@monei-js/components 1.7.7 → 1.7.9
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/api.d.ts +2 -2
- package/dist/bizum/types.d.ts +1 -1
- package/dist/components.cjs.development.js +2455 -186
- package/dist/components.cjs.development.js.map +1 -1
- package/dist/components.cjs.production.min.js +1 -1
- package/dist/components.cjs.production.min.js.map +1 -1
- package/dist/components.esm.js +2455 -186
- package/dist/components.esm.js.map +1 -1
- package/dist/paymentRequest/index.d.ts +1 -1
- package/dist/paymentRequest/types.d.ts +1 -1
- package/dist/paypal/types.d.ts +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/utils.d.ts +1 -0
- package/package.json +3 -2
package/dist/components.esm.js
CHANGED
|
@@ -52,6 +52,105 @@ function _extends() {
|
|
|
52
52
|
return _extends.apply(this, arguments);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
function _inherits(subClass, superClass) {
|
|
56
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
57
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
61
|
+
constructor: {
|
|
62
|
+
value: subClass,
|
|
63
|
+
writable: true,
|
|
64
|
+
configurable: true
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function _getPrototypeOf(o) {
|
|
71
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
72
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
73
|
+
};
|
|
74
|
+
return _getPrototypeOf(o);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function _setPrototypeOf(o, p) {
|
|
78
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
79
|
+
o.__proto__ = p;
|
|
80
|
+
return o;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
return _setPrototypeOf(o, p);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function _isNativeReflectConstruct() {
|
|
87
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
88
|
+
if (Reflect.construct.sham) return false;
|
|
89
|
+
if (typeof Proxy === "function") return true;
|
|
90
|
+
|
|
91
|
+
try {
|
|
92
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
93
|
+
return true;
|
|
94
|
+
} catch (e) {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function _construct(Parent, args, Class) {
|
|
100
|
+
if (_isNativeReflectConstruct()) {
|
|
101
|
+
_construct = Reflect.construct;
|
|
102
|
+
} else {
|
|
103
|
+
_construct = function _construct(Parent, args, Class) {
|
|
104
|
+
var a = [null];
|
|
105
|
+
a.push.apply(a, args);
|
|
106
|
+
var Constructor = Function.bind.apply(Parent, a);
|
|
107
|
+
var instance = new Constructor();
|
|
108
|
+
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
109
|
+
return instance;
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return _construct.apply(null, arguments);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function _isNativeFunction(fn) {
|
|
117
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function _wrapNativeSuper(Class) {
|
|
121
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
122
|
+
|
|
123
|
+
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
124
|
+
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
125
|
+
|
|
126
|
+
if (typeof Class !== "function") {
|
|
127
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (typeof _cache !== "undefined") {
|
|
131
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
132
|
+
|
|
133
|
+
_cache.set(Class, Wrapper);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function Wrapper() {
|
|
137
|
+
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
|
141
|
+
constructor: {
|
|
142
|
+
value: Wrapper,
|
|
143
|
+
enumerable: false,
|
|
144
|
+
writable: true,
|
|
145
|
+
configurable: true
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
return _setPrototypeOf(Wrapper, Class);
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
return _wrapNativeSuper(Class);
|
|
152
|
+
}
|
|
153
|
+
|
|
55
154
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
56
155
|
if (source == null) return {};
|
|
57
156
|
var target = {};
|
|
@@ -67,6 +166,113 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
67
166
|
return target;
|
|
68
167
|
}
|
|
69
168
|
|
|
169
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
170
|
+
if (!o) return;
|
|
171
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
172
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
173
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
174
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
175
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
function _arrayLikeToArray(arr, len) {
|
|
179
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
180
|
+
|
|
181
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
182
|
+
|
|
183
|
+
return arr2;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
187
|
+
var it;
|
|
188
|
+
|
|
189
|
+
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
|
|
190
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
191
|
+
if (it) o = it;
|
|
192
|
+
var i = 0;
|
|
193
|
+
return function () {
|
|
194
|
+
if (i >= o.length) return {
|
|
195
|
+
done: true
|
|
196
|
+
};
|
|
197
|
+
return {
|
|
198
|
+
done: false,
|
|
199
|
+
value: o[i++]
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
it = o[Symbol.iterator]();
|
|
208
|
+
return it.next.bind(it);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
function _wrapRegExp(re, groups) {
|
|
212
|
+
_wrapRegExp = function (re, groups) {
|
|
213
|
+
return new BabelRegExp(re, undefined, groups);
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
var _RegExp = _wrapNativeSuper(RegExp);
|
|
217
|
+
|
|
218
|
+
var _super = RegExp.prototype;
|
|
219
|
+
|
|
220
|
+
var _groups = new WeakMap();
|
|
221
|
+
|
|
222
|
+
function BabelRegExp(re, flags, groups) {
|
|
223
|
+
var _this = _RegExp.call(this, re, flags);
|
|
224
|
+
|
|
225
|
+
_groups.set(_this, groups || _groups.get(re));
|
|
226
|
+
|
|
227
|
+
return _this;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
_inherits(BabelRegExp, _RegExp);
|
|
231
|
+
|
|
232
|
+
BabelRegExp.prototype.exec = function (str) {
|
|
233
|
+
var result = _super.exec.call(this, str);
|
|
234
|
+
|
|
235
|
+
if (result) result.groups = buildGroups(result, this);
|
|
236
|
+
return result;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
|
|
240
|
+
if (typeof substitution === "string") {
|
|
241
|
+
var groups = _groups.get(this);
|
|
242
|
+
|
|
243
|
+
return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
|
|
244
|
+
return "$" + groups[name];
|
|
245
|
+
}));
|
|
246
|
+
} else if (typeof substitution === "function") {
|
|
247
|
+
var _this = this;
|
|
248
|
+
|
|
249
|
+
return _super[Symbol.replace].call(this, str, function () {
|
|
250
|
+
var args = [];
|
|
251
|
+
args.push.apply(args, arguments);
|
|
252
|
+
|
|
253
|
+
if (typeof args[args.length - 1] !== "object") {
|
|
254
|
+
args.push(buildGroups(args, _this));
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
return substitution.apply(this, args);
|
|
258
|
+
});
|
|
259
|
+
} else {
|
|
260
|
+
return _super[Symbol.replace].call(this, str, substitution);
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
function buildGroups(result, re) {
|
|
265
|
+
var g = _groups.get(re);
|
|
266
|
+
|
|
267
|
+
return Object.keys(g).reduce(function (groups, name) {
|
|
268
|
+
groups[name] = result[g[name]];
|
|
269
|
+
return groups;
|
|
270
|
+
}, Object.create(null));
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
return _wrapRegExp.apply(this, arguments);
|
|
274
|
+
}
|
|
275
|
+
|
|
70
276
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
71
277
|
|
|
72
278
|
function unwrapExports (x) {
|
|
@@ -651,159 +857,2123 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
|
|
|
651
857
|
return !!caught;
|
|
652
858
|
}
|
|
653
859
|
|
|
654
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
655
|
-
var entry = this.tryEntries[i];
|
|
656
|
-
var record = entry.completion;
|
|
860
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
861
|
+
var entry = this.tryEntries[i];
|
|
862
|
+
var record = entry.completion;
|
|
863
|
+
|
|
864
|
+
if (entry.tryLoc === "root") {
|
|
865
|
+
// Exception thrown outside of any try block that could handle
|
|
866
|
+
// it, so set the completion value of the entire function to
|
|
867
|
+
// throw the exception.
|
|
868
|
+
return handle("end");
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
if (entry.tryLoc <= this.prev) {
|
|
872
|
+
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
873
|
+
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
874
|
+
|
|
875
|
+
if (hasCatch && hasFinally) {
|
|
876
|
+
if (this.prev < entry.catchLoc) {
|
|
877
|
+
return handle(entry.catchLoc, true);
|
|
878
|
+
} else if (this.prev < entry.finallyLoc) {
|
|
879
|
+
return handle(entry.finallyLoc);
|
|
880
|
+
}
|
|
881
|
+
} else if (hasCatch) {
|
|
882
|
+
if (this.prev < entry.catchLoc) {
|
|
883
|
+
return handle(entry.catchLoc, true);
|
|
884
|
+
}
|
|
885
|
+
} else if (hasFinally) {
|
|
886
|
+
if (this.prev < entry.finallyLoc) {
|
|
887
|
+
return handle(entry.finallyLoc);
|
|
888
|
+
}
|
|
889
|
+
} else {
|
|
890
|
+
throw new Error("try statement without catch or finally");
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
},
|
|
895
|
+
abrupt: function abrupt(type, arg) {
|
|
896
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
897
|
+
var entry = this.tryEntries[i];
|
|
898
|
+
|
|
899
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
900
|
+
var finallyEntry = entry;
|
|
901
|
+
break;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {
|
|
906
|
+
// Ignore the finally entry if control is not jumping to a
|
|
907
|
+
// location outside the try/catch block.
|
|
908
|
+
finallyEntry = null;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
912
|
+
record.type = type;
|
|
913
|
+
record.arg = arg;
|
|
914
|
+
|
|
915
|
+
if (finallyEntry) {
|
|
916
|
+
this.method = "next";
|
|
917
|
+
this.next = finallyEntry.finallyLoc;
|
|
918
|
+
return ContinueSentinel;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
return this.complete(record);
|
|
922
|
+
},
|
|
923
|
+
complete: function complete(record, afterLoc) {
|
|
924
|
+
if (record.type === "throw") {
|
|
925
|
+
throw record.arg;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
if (record.type === "break" || record.type === "continue") {
|
|
929
|
+
this.next = record.arg;
|
|
930
|
+
} else if (record.type === "return") {
|
|
931
|
+
this.rval = this.arg = record.arg;
|
|
932
|
+
this.method = "return";
|
|
933
|
+
this.next = "end";
|
|
934
|
+
} else if (record.type === "normal" && afterLoc) {
|
|
935
|
+
this.next = afterLoc;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
return ContinueSentinel;
|
|
939
|
+
},
|
|
940
|
+
finish: function finish(finallyLoc) {
|
|
941
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
942
|
+
var entry = this.tryEntries[i];
|
|
943
|
+
|
|
944
|
+
if (entry.finallyLoc === finallyLoc) {
|
|
945
|
+
this.complete(entry.completion, entry.afterLoc);
|
|
946
|
+
resetTryEntry(entry);
|
|
947
|
+
return ContinueSentinel;
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
"catch": function _catch(tryLoc) {
|
|
952
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
953
|
+
var entry = this.tryEntries[i];
|
|
954
|
+
|
|
955
|
+
if (entry.tryLoc === tryLoc) {
|
|
956
|
+
var record = entry.completion;
|
|
957
|
+
|
|
958
|
+
if (record.type === "throw") {
|
|
959
|
+
var thrown = record.arg;
|
|
960
|
+
resetTryEntry(entry);
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
return thrown;
|
|
964
|
+
}
|
|
965
|
+
} // The context.catch method must only be called with a location
|
|
966
|
+
// argument that corresponds to a known catch block.
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
throw new Error("illegal catch attempt");
|
|
970
|
+
},
|
|
971
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
972
|
+
this.delegate = {
|
|
973
|
+
iterator: values(iterable),
|
|
974
|
+
resultName: resultName,
|
|
975
|
+
nextLoc: nextLoc
|
|
976
|
+
};
|
|
977
|
+
|
|
978
|
+
if (this.method === "next") {
|
|
979
|
+
// Deliberately forget the last sent value so that we don't
|
|
980
|
+
// accidentally pass it on to the delegate.
|
|
981
|
+
this.arg = undefined$1;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
return ContinueSentinel;
|
|
985
|
+
}
|
|
986
|
+
}; // Regardless of whether this script is executing as a CommonJS module
|
|
987
|
+
// or not, return the runtime object so that we can declare the variable
|
|
988
|
+
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
989
|
+
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
990
|
+
|
|
991
|
+
return exports;
|
|
992
|
+
}( // If this script is executing as a CommonJS module, use module.exports
|
|
993
|
+
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
994
|
+
// object. Either way, the resulting object will be used to initialize
|
|
995
|
+
// the regeneratorRuntime variable at the top of this file.
|
|
996
|
+
module.exports );
|
|
997
|
+
|
|
998
|
+
try {
|
|
999
|
+
regeneratorRuntime = runtime;
|
|
1000
|
+
} catch (accidentalStrictMode) {
|
|
1001
|
+
// This module should not be running in strict mode, so the above
|
|
1002
|
+
// assignment should always work unless something is misconfigured. Just
|
|
1003
|
+
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
1004
|
+
// strict mode using a global Function call. This could conceivably fail
|
|
1005
|
+
// if a Content Security Policy forbids using Function, but in that case
|
|
1006
|
+
// the proper solution is to fix the accidental strict mode problem. If
|
|
1007
|
+
// you've misconfigured your bundler to force strict mode and applied a
|
|
1008
|
+
// CSP to forbid Function, and you're not willing to fix either of those
|
|
1009
|
+
// problems, please detail your unique predicament in a GitHub issue.
|
|
1010
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
1011
|
+
}
|
|
1012
|
+
});
|
|
1013
|
+
|
|
1014
|
+
var e = 2592e5,
|
|
1015
|
+
t = "thumbmark",
|
|
1016
|
+
n = "https://api.thumbmarkjs.com",
|
|
1017
|
+
o = {
|
|
1018
|
+
exclude: [],
|
|
1019
|
+
include: [],
|
|
1020
|
+
stabilize: ["private", "iframe"],
|
|
1021
|
+
logging: !0,
|
|
1022
|
+
timeout: 5e3,
|
|
1023
|
+
cache_api_call: !0,
|
|
1024
|
+
cache_lifetime_in_ms: 0,
|
|
1025
|
+
performance: !1,
|
|
1026
|
+
experimental: !1,
|
|
1027
|
+
property_name_factory: function property_name_factory(e) {
|
|
1028
|
+
return t + "_" + e;
|
|
1029
|
+
}
|
|
1030
|
+
};
|
|
1031
|
+
|
|
1032
|
+
var a = {
|
|
1033
|
+
"private": [{
|
|
1034
|
+
exclude: ["canvas"],
|
|
1035
|
+
browsers: ["firefox", "safari>=17", "brave"]
|
|
1036
|
+
}, {
|
|
1037
|
+
exclude: ["audio"],
|
|
1038
|
+
browsers: ["samsungbrowser", "safari"]
|
|
1039
|
+
}, {
|
|
1040
|
+
exclude: ["fonts"],
|
|
1041
|
+
browsers: ["firefox"]
|
|
1042
|
+
}, {
|
|
1043
|
+
exclude: ["audio.sampleHash", "hardware.deviceMemory", "header.acceptLanguage.q", "system.hardwareConcurrency", "plugins"],
|
|
1044
|
+
browsers: ["brave"]
|
|
1045
|
+
}, {
|
|
1046
|
+
exclude: ["tls.extensions"],
|
|
1047
|
+
browsers: ["firefox", "chrome", "safari"]
|
|
1048
|
+
}, {
|
|
1049
|
+
exclude: ["header.acceptLanguage"],
|
|
1050
|
+
browsers: ["edge", "chrome"]
|
|
1051
|
+
}],
|
|
1052
|
+
iframe: [{
|
|
1053
|
+
exclude: ["system.applePayVersion", "system.cookieEnabled"],
|
|
1054
|
+
browsers: ["safari"]
|
|
1055
|
+
}, {
|
|
1056
|
+
exclude: ["permissions"]
|
|
1057
|
+
}],
|
|
1058
|
+
vpn: [{
|
|
1059
|
+
exclude: ["ip"]
|
|
1060
|
+
}],
|
|
1061
|
+
always: [{
|
|
1062
|
+
exclude: ["speech"],
|
|
1063
|
+
browsers: ["brave", "firefox"]
|
|
1064
|
+
}]
|
|
1065
|
+
},
|
|
1066
|
+
s = "undefined" != typeof window ? window.OfflineAudioContext || window.webkitOfflineAudioContext : null;
|
|
1067
|
+
|
|
1068
|
+
function c(e) {
|
|
1069
|
+
var t = 0;
|
|
1070
|
+
|
|
1071
|
+
for (var _n = 0; _n < e.length; ++_n) {
|
|
1072
|
+
t += Math.abs(e[_n]);
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
return t;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
function u(e, t, n) {
|
|
1079
|
+
var o = [];
|
|
1080
|
+
|
|
1081
|
+
for (var _t = 0; _t < e[0].data.length; _t++) {
|
|
1082
|
+
var _n2 = [];
|
|
1083
|
+
|
|
1084
|
+
for (var _o = 0; _o < e.length; _o++) {
|
|
1085
|
+
_n2.push(e[_o].data[_t]);
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
o.push(l(_n2));
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
var r = new Uint8ClampedArray(o);
|
|
1092
|
+
return new ImageData(r, t, n);
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
function l(e) {
|
|
1096
|
+
if (0 === e.length) return 0;
|
|
1097
|
+
var t = {};
|
|
1098
|
+
|
|
1099
|
+
for (var _iterator = _createForOfIteratorHelperLoose(e), _step; !(_step = _iterator()).done;) {
|
|
1100
|
+
var _n3 = _step.value;
|
|
1101
|
+
t[_n3] = (t[_n3] || 0) + 1;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
var n = e[0];
|
|
1105
|
+
|
|
1106
|
+
for (var _e in t) {
|
|
1107
|
+
t[_e] > t[n] && (n = parseInt(_e, 10));
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
return n;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
function d(e) {
|
|
1114
|
+
return e ^= e >>> 16, e = Math.imul(e, 2246822507), e ^= e >>> 13, e = Math.imul(e, 3266489909), (e ^= e >>> 16) >>> 0;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
var m = /*#__PURE__*/new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
|
|
1118
|
+
|
|
1119
|
+
function p(e, t) {
|
|
1120
|
+
return e << t | e >>> 32 - t;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
function f(e, t) {
|
|
1124
|
+
if (t === void 0) {
|
|
1125
|
+
t = 0;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
if (t = t ? 0 | t : 0, "string" == typeof e && (e = function (e) {
|
|
1129
|
+
if ("undefined" != typeof TextEncoder) return new TextEncoder().encode(e).buffer;
|
|
1130
|
+
var t = [];
|
|
1131
|
+
|
|
1132
|
+
for (var _n4 = 0; _n4 < e.length; _n4++) {
|
|
1133
|
+
var _o2 = e.charCodeAt(_n4);
|
|
1134
|
+
|
|
1135
|
+
_o2 < 128 ? t.push(_o2) : _o2 < 2048 ? t.push(192 | _o2 >> 6, 128 | 63 & _o2) : _o2 < 55296 || _o2 >= 57344 ? t.push(224 | _o2 >> 12, 128 | _o2 >> 6 & 63, 128 | 63 & _o2) : (_n4++, _o2 = 65536 + ((1023 & _o2) << 10 | 1023 & e.charCodeAt(_n4)), t.push(240 | _o2 >> 18, 128 | _o2 >> 12 & 63, 128 | _o2 >> 6 & 63, 128 | 63 & _o2));
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
return new Uint8Array(t).buffer;
|
|
1139
|
+
}(e)), !(e instanceof ArrayBuffer)) throw new TypeError("Expected key to be ArrayBuffer or string");
|
|
1140
|
+
var n = new Uint32Array([t, t, t, t]);
|
|
1141
|
+
!function (e, t) {
|
|
1142
|
+
var n = e.byteLength / 16 | 0,
|
|
1143
|
+
o = new Uint32Array(e, 0, 4 * n);
|
|
1144
|
+
|
|
1145
|
+
for (var _e2 = 0; _e2 < n; _e2++) {
|
|
1146
|
+
var _n5 = o.subarray(4 * _e2, 4 * (_e2 + 1));
|
|
1147
|
+
|
|
1148
|
+
_n5[0] = Math.imul(_n5[0], m[0]), _n5[0] = p(_n5[0], 15), _n5[0] = Math.imul(_n5[0], m[1]), t[0] = t[0] ^ _n5[0], t[0] = p(t[0], 19), t[0] = t[0] + t[1], t[0] = Math.imul(t[0], 5) + 1444728091, _n5[1] = Math.imul(_n5[1], m[1]), _n5[1] = p(_n5[1], 16), _n5[1] = Math.imul(_n5[1], m[2]), t[1] = t[1] ^ _n5[1], t[1] = p(t[1], 17), t[1] = t[1] + t[2], t[1] = Math.imul(t[1], 5) + 197830471, _n5[2] = Math.imul(_n5[2], m[2]), _n5[2] = p(_n5[2], 17), _n5[2] = Math.imul(_n5[2], m[3]), t[2] = t[2] ^ _n5[2], t[2] = p(t[2], 15), t[2] = t[2] + t[3], t[2] = Math.imul(t[2], 5) + 2530024501, _n5[3] = Math.imul(_n5[3], m[3]), _n5[3] = p(_n5[3], 18), _n5[3] = Math.imul(_n5[3], m[0]), t[3] = t[3] ^ _n5[3], t[3] = p(t[3], 13), t[3] = t[3] + t[0], t[3] = Math.imul(t[3], 5) + 850148119;
|
|
1149
|
+
}
|
|
1150
|
+
}(e, n), function (e, t) {
|
|
1151
|
+
var n = e.byteLength / 16 | 0,
|
|
1152
|
+
o = e.byteLength % 16,
|
|
1153
|
+
r = new Uint32Array(4),
|
|
1154
|
+
i = new Uint8Array(e, 16 * n, o);
|
|
1155
|
+
|
|
1156
|
+
switch (o) {
|
|
1157
|
+
case 15:
|
|
1158
|
+
r[3] = r[3] ^ i[14] << 16;
|
|
1159
|
+
|
|
1160
|
+
case 14:
|
|
1161
|
+
r[3] = r[3] ^ i[13] << 8;
|
|
1162
|
+
|
|
1163
|
+
case 13:
|
|
1164
|
+
r[3] = r[3] ^ i[12], r[3] = Math.imul(r[3], m[3]), r[3] = p(r[3], 18), r[3] = Math.imul(r[3], m[0]), t[3] = t[3] ^ r[3];
|
|
1165
|
+
|
|
1166
|
+
case 12:
|
|
1167
|
+
r[2] = r[2] ^ i[11] << 24;
|
|
1168
|
+
|
|
1169
|
+
case 11:
|
|
1170
|
+
r[2] = r[2] ^ i[10] << 16;
|
|
1171
|
+
|
|
1172
|
+
case 10:
|
|
1173
|
+
r[2] = r[2] ^ i[9] << 8;
|
|
1174
|
+
|
|
1175
|
+
case 9:
|
|
1176
|
+
r[2] = r[2] ^ i[8], r[2] = Math.imul(r[2], m[2]), r[2] = p(r[2], 17), r[2] = Math.imul(r[2], m[3]), t[2] = t[2] ^ r[2];
|
|
1177
|
+
|
|
1178
|
+
case 8:
|
|
1179
|
+
r[1] = r[1] ^ i[7] << 24;
|
|
1180
|
+
|
|
1181
|
+
case 7:
|
|
1182
|
+
r[1] = r[1] ^ i[6] << 16;
|
|
1183
|
+
|
|
1184
|
+
case 6:
|
|
1185
|
+
r[1] = r[1] ^ i[5] << 8;
|
|
1186
|
+
|
|
1187
|
+
case 5:
|
|
1188
|
+
r[1] = r[1] ^ i[4], r[1] = Math.imul(r[1], m[1]), r[1] = p(r[1], 16), r[1] = Math.imul(r[1], m[2]), t[1] = t[1] ^ r[1];
|
|
1189
|
+
|
|
1190
|
+
case 4:
|
|
1191
|
+
r[0] = r[0] ^ i[3] << 24;
|
|
1192
|
+
|
|
1193
|
+
case 3:
|
|
1194
|
+
r[0] = r[0] ^ i[2] << 16;
|
|
1195
|
+
|
|
1196
|
+
case 2:
|
|
1197
|
+
r[0] = r[0] ^ i[1] << 8;
|
|
1198
|
+
|
|
1199
|
+
case 1:
|
|
1200
|
+
r[0] = r[0] ^ i[0], r[0] = Math.imul(r[0], m[0]), r[0] = p(r[0], 15), r[0] = Math.imul(r[0], m[1]), t[0] = t[0] ^ r[0];
|
|
1201
|
+
}
|
|
1202
|
+
}(e, n), function (e, t) {
|
|
1203
|
+
t[0] = t[0] ^ e.byteLength, t[1] = t[1] ^ e.byteLength, t[2] = t[2] ^ e.byteLength, t[3] = t[3] ^ e.byteLength, t[0] = t[0] + t[1] | 0, t[0] = t[0] + t[2] | 0, t[0] = t[0] + t[3] | 0, t[1] = t[1] + t[0] | 0, t[2] = t[2] + t[0] | 0, t[3] = t[3] + t[0] | 0, t[0] = d(t[0]), t[1] = d(t[1]), t[2] = d(t[2]), t[3] = d(t[3]), t[0] = t[0] + t[1] | 0, t[0] = t[0] + t[2] | 0, t[0] = t[0] + t[3] | 0, t[1] = t[1] + t[0] | 0, t[2] = t[2] + t[0] | 0, t[3] = t[3] + t[0] | 0;
|
|
1204
|
+
}(e, n);
|
|
1205
|
+
var o = new Uint8Array(n.buffer);
|
|
1206
|
+
return Array.from(o).map(function (e) {
|
|
1207
|
+
return e.toString(16).padStart(2, "0");
|
|
1208
|
+
}).join("");
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
var h = 280;
|
|
1212
|
+
|
|
1213
|
+
function g(_x) {
|
|
1214
|
+
return _g.apply(this, arguments);
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
function _g() {
|
|
1218
|
+
_g = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee16(e) {
|
|
1219
|
+
var t, n, o, r;
|
|
1220
|
+
return runtime_1.wrap(function _callee16$(_context16) {
|
|
1221
|
+
while (1) {
|
|
1222
|
+
switch (_context16.prev = _context16.next) {
|
|
1223
|
+
case 0:
|
|
1224
|
+
if (document.body) {
|
|
1225
|
+
_context16.next = 5;
|
|
1226
|
+
break;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
_context16.next = 3;
|
|
1230
|
+
return w(50);
|
|
1231
|
+
|
|
1232
|
+
case 3:
|
|
1233
|
+
_context16.next = 0;
|
|
1234
|
+
break;
|
|
1235
|
+
|
|
1236
|
+
case 5:
|
|
1237
|
+
n = document.createElement("iframe");
|
|
1238
|
+
n.setAttribute("frameBorder", "0");
|
|
1239
|
+
o = n.style;
|
|
1240
|
+
o.setProperty("position", "fixed"), o.setProperty("display", "block", "important"), o.setProperty("visibility", "visible"), o.setProperty("border", "0"), o.setProperty("opacity", "0"), n.src = "about:blank", document.body.appendChild(n);
|
|
1241
|
+
r = n.contentDocument || (null === (t = n.contentWindow) || void 0 === t ? void 0 : t.document);
|
|
1242
|
+
|
|
1243
|
+
if (r) {
|
|
1244
|
+
_context16.next = 12;
|
|
1245
|
+
break;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
throw new Error("Iframe document is not accessible");
|
|
1249
|
+
|
|
1250
|
+
case 12:
|
|
1251
|
+
e({
|
|
1252
|
+
iframe: r
|
|
1253
|
+
}), setTimeout(function () {
|
|
1254
|
+
document.body.removeChild(n);
|
|
1255
|
+
}, 0);
|
|
1256
|
+
|
|
1257
|
+
case 13:
|
|
1258
|
+
case "end":
|
|
1259
|
+
return _context16.stop();
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
}, _callee16);
|
|
1263
|
+
}));
|
|
1264
|
+
return _g.apply(this, arguments);
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
function w(e, t) {
|
|
1268
|
+
return new Promise(function (n) {
|
|
1269
|
+
return setTimeout(n, e, t);
|
|
1270
|
+
});
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
var v = ["Arial", "Arial Black", "Arial Narrow", "Arial Rounded MT", "Arimo", "Archivo", "Barlow", "Bebas Neue", "Bitter", "Bookman", "Calibri", "Cabin", "Candara", "Century", "Century Gothic", "Comic Sans MS", "Constantia", "Courier", "Courier New", "Crimson Text", "DM Mono", "DM Sans", "DM Serif Display", "DM Serif Text", "Dosis", "Droid Sans", "Exo", "Fira Code", "Fira Sans", "Franklin Gothic Medium", "Garamond", "Geneva", "Georgia", "Gill Sans", "Helvetica", "Impact", "Inconsolata", "Indie Flower", "Inter", "Josefin Sans", "Karla", "Lato", "Lexend", "Lucida Bright", "Lucida Console", "Lucida Sans Unicode", "Manrope", "Merriweather", "Merriweather Sans", "Montserrat", "Myriad", "Noto Sans", "Nunito", "Nunito Sans", "Open Sans", "Optima", "Orbitron", "Oswald", "Pacifico", "Palatino", "Perpetua", "PT Sans", "PT Serif", "Poppins", "Prompt", "Public Sans", "Quicksand", "Rajdhani", "Recursive", "Roboto", "Roboto Condensed", "Rockwell", "Rubik", "Segoe Print", "Segoe Script", "Segoe UI", "Sora", "Source Sans Pro", "Space Mono", "Tahoma", "Taviraj", "Times", "Times New Roman", "Titillium Web", "Trebuchet MS", "Ubuntu", "Varela Round", "Verdana", "Work Sans"],
|
|
1274
|
+
y = ["monospace", "sans-serif", "serif"];
|
|
1275
|
+
|
|
1276
|
+
function S(e, t) {
|
|
1277
|
+
return e.font = "72px " + t, e.measureText("WwMmLli0Oo").width;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
function b() {
|
|
1281
|
+
var e;
|
|
1282
|
+
var t = document.createElement("canvas"),
|
|
1283
|
+
n = null !== (e = t.getContext("webgl")) && void 0 !== e ? e : t.getContext("experimental-webgl");
|
|
1284
|
+
if (n && "getParameter" in n) try {
|
|
1285
|
+
var _e3 = (n.getParameter(n.VENDOR) || "").toString(),
|
|
1286
|
+
_t2 = (n.getParameter(n.RENDERER) || "").toString();
|
|
1287
|
+
|
|
1288
|
+
var _o3 = {
|
|
1289
|
+
vendor: _e3,
|
|
1290
|
+
renderer: _t2,
|
|
1291
|
+
version: (n.getParameter(n.VERSION) || "").toString(),
|
|
1292
|
+
shadingLanguageVersion: (n.getParameter(n.SHADING_LANGUAGE_VERSION) || "").toString()
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1295
|
+
if (!_t2.length || !_e3.length) {
|
|
1296
|
+
var _e4 = n.getExtension("WEBGL_debug_renderer_info");
|
|
1297
|
+
|
|
1298
|
+
if (_e4) {
|
|
1299
|
+
var _t3 = (n.getParameter(_e4.UNMASKED_VENDOR_WEBGL) || "").toString(),
|
|
1300
|
+
_r = (n.getParameter(_e4.UNMASKED_RENDERER_WEBGL) || "").toString();
|
|
1301
|
+
|
|
1302
|
+
_t3 && (_o3.vendorUnmasked = _t3), _r && (_o3.rendererUnmasked = _r);
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
return _o3;
|
|
1307
|
+
} catch (e) {}
|
|
1308
|
+
return "undefined";
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
function E() {
|
|
1312
|
+
var e = new Float32Array(1),
|
|
1313
|
+
t = new Uint8Array(e.buffer);
|
|
1314
|
+
return e[0] = 1 / 0, e[0] = e[0] - e[0], t[3];
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
var M = function M(e, t, n, o) {
|
|
1318
|
+
var r = (n - t) / o;
|
|
1319
|
+
var i = 0;
|
|
1320
|
+
|
|
1321
|
+
for (var _n6 = 0; _n6 < o; _n6++) {
|
|
1322
|
+
i += e(t + (_n6 + .5) * r);
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
return i * r;
|
|
1326
|
+
};
|
|
1327
|
+
|
|
1328
|
+
function P(e, t) {
|
|
1329
|
+
var n = {};
|
|
1330
|
+
return t.forEach(function (t) {
|
|
1331
|
+
var o = function (e) {
|
|
1332
|
+
if (0 === e.length) return null;
|
|
1333
|
+
var t = {};
|
|
1334
|
+
e.forEach(function (e) {
|
|
1335
|
+
var n = String(e);
|
|
1336
|
+
t[n] = (t[n] || 0) + 1;
|
|
1337
|
+
});
|
|
1338
|
+
var n = e[0],
|
|
1339
|
+
o = 1;
|
|
1340
|
+
return Object.keys(t).forEach(function (e) {
|
|
1341
|
+
t[e] > o && (n = e, o = t[e]);
|
|
1342
|
+
}), n;
|
|
1343
|
+
}(e.map(function (e) {
|
|
1344
|
+
return t in e ? e[t] : void 0;
|
|
1345
|
+
}).filter(function (e) {
|
|
1346
|
+
return void 0 !== e;
|
|
1347
|
+
}));
|
|
1348
|
+
|
|
1349
|
+
o && (n[t] = o);
|
|
1350
|
+
}), n;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
var x = ["accelerometer", "accessibility", "accessibility-events", "ambient-light-sensor", "background-fetch", "background-sync", "bluetooth", "camera", "clipboard-read", "clipboard-write", "device-info", "display-capture", "gyroscope", "geolocation", "local-fonts", "magnetometer", "microphone", "midi", "nfc", "notifications", "payment-handler", "persistent-storage", "push", "speaker", "storage-access", "top-level-storage-access", "window-management", "query"];
|
|
1354
|
+
|
|
1355
|
+
function C() {
|
|
1356
|
+
if ("undefined" == typeof navigator) return {
|
|
1357
|
+
name: "unknown",
|
|
1358
|
+
version: "unknown"
|
|
1359
|
+
};
|
|
1360
|
+
var e = [{
|
|
1361
|
+
name: "Brave",
|
|
1362
|
+
detect: function detect() {
|
|
1363
|
+
return !!navigator.brave;
|
|
1364
|
+
}
|
|
1365
|
+
}];
|
|
1366
|
+
|
|
1367
|
+
for (var _i = 0, _e5 = e; _i < _e5.length; _i++) {
|
|
1368
|
+
var _t4 = _e5[_i];
|
|
1369
|
+
|
|
1370
|
+
if (_t4.detect()) {
|
|
1371
|
+
var _e6 = A(navigator.userAgent);
|
|
1372
|
+
|
|
1373
|
+
return {
|
|
1374
|
+
name: _t4.name,
|
|
1375
|
+
version: _e6.version
|
|
1376
|
+
};
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
return A(navigator.userAgent);
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
function A(e) {
|
|
1384
|
+
var t, n, o, r, i, a;
|
|
1385
|
+
var s = [/*#__PURE__*/_wrapRegExp(/(SamsungBrowser)\/([0-9]+(?:\.[0-9]+)+)/, {
|
|
1386
|
+
name: 1,
|
|
1387
|
+
version: 2
|
|
1388
|
+
}), /*#__PURE__*/_wrapRegExp(/(EdgA|EdgiOS|Edg)\/([0-9]+(?:\.[0-9]+)+)/, {
|
|
1389
|
+
name: 1,
|
|
1390
|
+
version: 2
|
|
1391
|
+
}), /*#__PURE__*/_wrapRegExp(/(OPR|OPX)\/([0-9]+(?:\.[0-9]+)+)/, {
|
|
1392
|
+
name: 1,
|
|
1393
|
+
version: 2
|
|
1394
|
+
}), /*#__PURE__*/_wrapRegExp(/Opera[\t-\r \/\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]([0-9]+(?:\.[0-9]+)+)/, {
|
|
1395
|
+
version: 1
|
|
1396
|
+
}), /*#__PURE__*/_wrapRegExp(/Opera Mini\/([0-9]+(?:\.[0-9]+)+)/, {
|
|
1397
|
+
version: 1
|
|
1398
|
+
}), /*#__PURE__*/_wrapRegExp(/Opera Mobi\/([0-9]+(?:\.[0-9]+)+)/, {
|
|
1399
|
+
version: 1
|
|
1400
|
+
}), /*#__PURE__*/_wrapRegExp(/(Vivaldi)\/([0-9]+(?:\.[0-9]+)+)/, {
|
|
1401
|
+
name: 1,
|
|
1402
|
+
version: 2
|
|
1403
|
+
}), /*#__PURE__*/_wrapRegExp(/(CriOS)\/([0-9]+(?:\.[0-9]+)+)/, {
|
|
1404
|
+
name: 1,
|
|
1405
|
+
version: 2
|
|
1406
|
+
}), /*#__PURE__*/_wrapRegExp(/(FxiOS)\/([0-9]+(?:\.[0-9]+)+)/, {
|
|
1407
|
+
name: 1,
|
|
1408
|
+
version: 2
|
|
1409
|
+
}), /*#__PURE__*/_wrapRegExp(/(Chrome|Chromium)\/([0-9]+(?:\.[0-9]+)+)/, {
|
|
1410
|
+
name: 1,
|
|
1411
|
+
version: 2
|
|
1412
|
+
}), /*#__PURE__*/_wrapRegExp(/(Firefox|Waterfox|Iceweasel|IceCat)\/([0-9]+(?:\.[0-9]+)+)/, {
|
|
1413
|
+
name: 1,
|
|
1414
|
+
version: 2
|
|
1415
|
+
}), /*#__PURE__*/_wrapRegExp(/Version\/([\.0-9]+).*Safari\/[\.0-9]+|(Safari)\/([\.0-9]+)/, {
|
|
1416
|
+
version1: 1,
|
|
1417
|
+
name: 2,
|
|
1418
|
+
version2: 3
|
|
1419
|
+
}), /*#__PURE__*/_wrapRegExp(/(MSIE|Trident|IEMobile).+?([0-9]+(?:\.[0-9]+)+)/, {
|
|
1420
|
+
name: 1,
|
|
1421
|
+
version: 2
|
|
1422
|
+
}), /*#__PURE__*/_wrapRegExp(/([A-Za-z]+)\/([0-9]+(?:\.[0-9]+)+)/, {
|
|
1423
|
+
name: 1,
|
|
1424
|
+
version: 2
|
|
1425
|
+
})],
|
|
1426
|
+
c = {
|
|
1427
|
+
edg: "Edge",
|
|
1428
|
+
edga: "Edge",
|
|
1429
|
+
edgios: "Edge",
|
|
1430
|
+
opr: "Opera",
|
|
1431
|
+
opx: "Opera",
|
|
1432
|
+
crios: "Chrome",
|
|
1433
|
+
fxios: "Firefox",
|
|
1434
|
+
samsung: "SamsungBrowser",
|
|
1435
|
+
vivaldi: "Vivaldi"
|
|
1436
|
+
};
|
|
1437
|
+
|
|
1438
|
+
for (var _i2 = 0, _s = s; _i2 < _s.length; _i2++) {
|
|
1439
|
+
var _u = _s[_i2];
|
|
1440
|
+
|
|
1441
|
+
var _s2 = e.match(_u);
|
|
1442
|
+
|
|
1443
|
+
if (_s2) {
|
|
1444
|
+
var _e7 = null === (t = _s2.groups) || void 0 === t ? void 0 : t.name,
|
|
1445
|
+
_l = (null === (n = _s2.groups) || void 0 === n ? void 0 : n.version) || (null === (o = _s2.groups) || void 0 === o ? void 0 : o.version1) || (null === (r = _s2.groups) || void 0 === r ? void 0 : r.version2);
|
|
1446
|
+
|
|
1447
|
+
if (_e7 || !(null === (i = _s2.groups) || void 0 === i ? void 0 : i.version1) && !(null === (a = _s2.groups) || void 0 === a ? void 0 : a.version2) || (_e7 = "Safari"), !_e7 && _u.source.includes("Opera Mini") && (_e7 = "Opera Mini"), !_e7 && _u.source.includes("Opera Mobi") && (_e7 = "Opera Mobi"), !_e7 && _u.source.includes("Opera") && (_e7 = "Opera"), !_e7 && _s2[1] && (_e7 = _s2[1]), !_l && _s2[2] && (_l = _s2[2]), _e7) {
|
|
1448
|
+
return {
|
|
1449
|
+
name: c[_e7.toLowerCase()] || _e7,
|
|
1450
|
+
version: _l || "unknown"
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
return {
|
|
1457
|
+
name: "unknown",
|
|
1458
|
+
version: "unknown"
|
|
1459
|
+
};
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
function _() {
|
|
1463
|
+
if ("undefined" == typeof navigator || !navigator.userAgent) return !1;
|
|
1464
|
+
var e = navigator.userAgent;
|
|
1465
|
+
return /Mobi|Android|iPhone|iPod|IEMobile|Opera Mini|Opera Mobi|webOS|BlackBerry|Windows Phone/i.test(e) && !/iPad/i.test(e);
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
function I() {
|
|
1469
|
+
var e = [];
|
|
1470
|
+
var t = {
|
|
1471
|
+
"prefers-contrast": ["high", "more", "low", "less", "forced", "no-preference"],
|
|
1472
|
+
"any-hover": ["hover", "none"],
|
|
1473
|
+
"any-pointer": ["none", "coarse", "fine"],
|
|
1474
|
+
pointer: ["none", "coarse", "fine"],
|
|
1475
|
+
hover: ["hover", "none"],
|
|
1476
|
+
update: ["fast", "slow"],
|
|
1477
|
+
"inverted-colors": ["inverted", "none"],
|
|
1478
|
+
"prefers-reduced-motion": ["reduce", "no-preference"],
|
|
1479
|
+
"prefers-reduced-transparency": ["reduce", "no-preference"],
|
|
1480
|
+
scripting: ["none", "initial-only", "enabled"],
|
|
1481
|
+
"forced-colors": ["active", "none"]
|
|
1482
|
+
};
|
|
1483
|
+
return Object.keys(t).forEach(function (n) {
|
|
1484
|
+
t[n].forEach(function (t) {
|
|
1485
|
+
matchMedia("(" + n + ": " + t + ")").matches && e.push(n + ": " + t);
|
|
1486
|
+
});
|
|
1487
|
+
}), e;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
function T() {
|
|
1491
|
+
if ("https:" === window.location.protocol && "function" == typeof window.ApplePaySession) try {
|
|
1492
|
+
var _e8 = window.ApplePaySession.supportsVersion;
|
|
1493
|
+
|
|
1494
|
+
for (var _t5 = 15; _t5 > 0; _t5--) {
|
|
1495
|
+
if (_e8(_t5)) return _t5;
|
|
1496
|
+
}
|
|
1497
|
+
} catch (e) {
|
|
1498
|
+
return 0;
|
|
1499
|
+
}
|
|
1500
|
+
return 0;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
var R = "SamsungBrowser" !== /*#__PURE__*/C().name ? 1 : 3;
|
|
1504
|
+
var k,
|
|
1505
|
+
O = null;
|
|
1506
|
+
|
|
1507
|
+
function L(e) {
|
|
1508
|
+
var t = [];
|
|
1509
|
+
return function e(n) {
|
|
1510
|
+
if (n && n.toJSON && "function" == typeof n.toJSON && (n = n.toJSON()), void 0 === n) return;
|
|
1511
|
+
if ("number" == typeof n) return isFinite(n) ? "" + n : "null";
|
|
1512
|
+
if ("object" != typeof n) return JSON.stringify(n);
|
|
1513
|
+
var o, r;
|
|
1514
|
+
|
|
1515
|
+
if (Array.isArray(n)) {
|
|
1516
|
+
for (r = "[", o = 0; o < n.length; o++) {
|
|
1517
|
+
o && (r += ","), r += e(n[o]) || "null";
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
return r + "]";
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
if (null === n) return "null";
|
|
1524
|
+
if (-1 !== t.indexOf(n)) throw new TypeError("Converting circular structure to JSON");
|
|
1525
|
+
var i = t.push(n) - 1,
|
|
1526
|
+
a = Object.keys(n).sort();
|
|
1527
|
+
|
|
1528
|
+
for (r = "", o = 0; o < a.length; o++) {
|
|
1529
|
+
var _t6 = a[o],
|
|
1530
|
+
_i3 = e(n[_t6]);
|
|
1531
|
+
|
|
1532
|
+
_i3 && (r && (r += ","), r += JSON.stringify(_t6) + ":" + _i3);
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
return t.splice(i, 1), "{" + r + "}";
|
|
1536
|
+
}(e) || "";
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
var N = ["𝔄", "𝔅", "ℭ", "𝔇", "𝔈", "𝔉", "𝔸", "𝔹", "ℂ", "𝔻", "𝔼", "𝔽"],
|
|
1540
|
+
B = ["β", "ψ", "λ", "ε", "ζ", "α", "ξ", "μ", "ρ", "φ", "κ", "τ", "η", "σ", "ι", "ω", "γ", "ν", "χ", "δ", "θ", "π", "υ", "ο"];
|
|
1541
|
+
|
|
1542
|
+
function D(e, t) {
|
|
1543
|
+
return "<math><mrow>" + t + "</mrow></math>";
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
function $() {
|
|
1547
|
+
var e = "<mo>∏</mo>";
|
|
1548
|
+
return N.forEach(function (t, n) {
|
|
1549
|
+
var o = 2 * n,
|
|
1550
|
+
r = B.slice(o, o + 2);
|
|
1551
|
+
2 === r.length && (e += "<mmultiscripts><mi>" + t + "</mi><none/><mi>" + r[1] + "</mi><mprescripts></mprescripts><mi>" + r[0] + "</mi><none/></mmultiscripts>");
|
|
1552
|
+
}), D(0, "<munderover><mmultiscripts>" + e + "</mmultiscripts></munderover>");
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
function F() {
|
|
1556
|
+
var e = [];
|
|
1557
|
+
return N.forEach(function (t, n) {
|
|
1558
|
+
var o = 2 * n,
|
|
1559
|
+
r = B.slice(o, o + 2);
|
|
1560
|
+
2 === r.length && e.push(D(0, "<mmultiscripts><mi>" + t + "</mi><none/><mi>" + r[1] + "</mi><mprescripts></mprescripts><mi>" + r[0] + "</mi><none/></mmultiscripts>"));
|
|
1561
|
+
}), e;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
var V = {
|
|
1565
|
+
audio: /*#__PURE__*/function () {
|
|
1566
|
+
var _audio = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2() {
|
|
1567
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
|
1568
|
+
while (1) {
|
|
1569
|
+
switch (_context2.prev = _context2.next) {
|
|
1570
|
+
case 0:
|
|
1571
|
+
return _context2.abrupt("return", s ? _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee() {
|
|
1572
|
+
return runtime_1.wrap(function _callee$(_context) {
|
|
1573
|
+
while (1) {
|
|
1574
|
+
switch (_context.prev = _context.next) {
|
|
1575
|
+
case 0:
|
|
1576
|
+
return _context.abrupt("return", new Promise(function (e, t) {
|
|
1577
|
+
try {
|
|
1578
|
+
var _t7 = new s(1, 5e3, 44100),
|
|
1579
|
+
_n7 = _t7.createBufferSource(),
|
|
1580
|
+
_o4 = _t7.createOscillator();
|
|
1581
|
+
|
|
1582
|
+
_o4.frequency.value = 1e3;
|
|
1583
|
+
|
|
1584
|
+
var _r2 = _t7.createDynamicsCompressor();
|
|
1585
|
+
|
|
1586
|
+
var _i4;
|
|
1587
|
+
|
|
1588
|
+
_r2.threshold.value = -50, _r2.knee.value = 40, _r2.ratio.value = 12, _r2.attack.value = 0, _r2.release.value = .2, _o4.connect(_r2), _r2.connect(_t7.destination), _o4.start(), _t7.oncomplete = function (o) {
|
|
1589
|
+
_i4 = o.renderedBuffer.getChannelData(0), e({
|
|
1590
|
+
sampleHash: c(_i4),
|
|
1591
|
+
maxChannels: _t7.destination.maxChannelCount,
|
|
1592
|
+
channelCountMode: _n7.channelCountMode
|
|
1593
|
+
});
|
|
1594
|
+
}, _t7.startRendering();
|
|
1595
|
+
} catch (e) {
|
|
1596
|
+
console.error("Error creating audio fingerprint:", e), t(e);
|
|
1597
|
+
}
|
|
1598
|
+
}));
|
|
1599
|
+
|
|
1600
|
+
case 1:
|
|
1601
|
+
case "end":
|
|
1602
|
+
return _context.stop();
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
}, _callee);
|
|
1606
|
+
}))() : null);
|
|
1607
|
+
|
|
1608
|
+
case 1:
|
|
1609
|
+
case "end":
|
|
1610
|
+
return _context2.stop();
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
}, _callee2);
|
|
1614
|
+
}));
|
|
1615
|
+
|
|
1616
|
+
function audio() {
|
|
1617
|
+
return _audio.apply(this, arguments);
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
return audio;
|
|
1621
|
+
}(),
|
|
1622
|
+
canvas: /*#__PURE__*/function () {
|
|
1623
|
+
var _canvas = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3() {
|
|
1624
|
+
return runtime_1.wrap(function _callee3$(_context3) {
|
|
1625
|
+
while (1) {
|
|
1626
|
+
switch (_context3.prev = _context3.next) {
|
|
1627
|
+
case 0:
|
|
1628
|
+
return _context3.abrupt("return", new Promise(function (e) {
|
|
1629
|
+
var t = Array.from({
|
|
1630
|
+
length: 3
|
|
1631
|
+
}, function () {
|
|
1632
|
+
return function () {
|
|
1633
|
+
var e = document.createElement("canvas"),
|
|
1634
|
+
t = e.getContext("2d");
|
|
1635
|
+
if (!t) return null;
|
|
1636
|
+
e.width = h, e.height = 20;
|
|
1637
|
+
var n = t.createLinearGradient(0, 0, e.width, e.height);
|
|
1638
|
+
n.addColorStop(0, "red"), n.addColorStop(1 / 6, "orange"), n.addColorStop(2 / 6, "yellow"), n.addColorStop(.5, "green"), n.addColorStop(4 / 6, "blue"), n.addColorStop(5 / 6, "indigo"), n.addColorStop(1, "violet"), t.fillStyle = n, t.fillRect(0, 0, e.width, e.height);
|
|
1639
|
+
var o = "Random Text WMwmil10Oo";
|
|
1640
|
+
t.font = "23.123px Arial", t.fillStyle = "black", t.fillText(o, -5, 15), t.fillStyle = "rgba(0, 0, 255, 0.5)", t.fillText(o, -3.3, 17.7), t.beginPath(), t.moveTo(0, 0), t.lineTo(2 * e.width / 7, e.height), t.strokeStyle = "white", t.lineWidth = 2, t.stroke();
|
|
1641
|
+
var r = t.getImageData(0, 0, e.width, e.height);
|
|
1642
|
+
return r;
|
|
1643
|
+
}();
|
|
1644
|
+
}).filter(function (e) {
|
|
1645
|
+
return null !== e;
|
|
1646
|
+
});
|
|
1647
|
+
0 !== t.length ? e({
|
|
1648
|
+
commonPixelsHash: f(u(t, h, 20).data.toString()).toString()
|
|
1649
|
+
}) : e(null);
|
|
1650
|
+
}));
|
|
1651
|
+
|
|
1652
|
+
case 1:
|
|
1653
|
+
case "end":
|
|
1654
|
+
return _context3.stop();
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
}, _callee3);
|
|
1658
|
+
}));
|
|
1659
|
+
|
|
1660
|
+
function canvas() {
|
|
1661
|
+
return _canvas.apply(this, arguments);
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
return canvas;
|
|
1665
|
+
}(),
|
|
1666
|
+
fonts: /*#__PURE__*/function () {
|
|
1667
|
+
var _fonts = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(e) {
|
|
1668
|
+
return runtime_1.wrap(function _callee5$(_context5) {
|
|
1669
|
+
while (1) {
|
|
1670
|
+
switch (_context5.prev = _context5.next) {
|
|
1671
|
+
case 0:
|
|
1672
|
+
return _context5.abrupt("return", new Promise(function (e) {
|
|
1673
|
+
try {
|
|
1674
|
+
g( /*#__PURE__*/function () {
|
|
1675
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(_ref2) {
|
|
1676
|
+
var t, n, o, r;
|
|
1677
|
+
return runtime_1.wrap(function _callee4$(_context4) {
|
|
1678
|
+
while (1) {
|
|
1679
|
+
switch (_context4.prev = _context4.next) {
|
|
1680
|
+
case 0:
|
|
1681
|
+
t = _ref2.iframe;
|
|
1682
|
+
n = t.createElement("canvas").getContext("2d");
|
|
1683
|
+
|
|
1684
|
+
if (n) {
|
|
1685
|
+
_context4.next = 4;
|
|
1686
|
+
break;
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
return _context4.abrupt("return", void e(null));
|
|
1690
|
+
|
|
1691
|
+
case 4:
|
|
1692
|
+
o = y.map(function (e) {
|
|
1693
|
+
return S(n, e);
|
|
1694
|
+
});
|
|
1695
|
+
r = {};
|
|
1696
|
+
v.forEach(function (e) {
|
|
1697
|
+
var t = S(n, e);
|
|
1698
|
+
o.includes(t) || (r[e] = t);
|
|
1699
|
+
}), e(r);
|
|
1700
|
+
|
|
1701
|
+
case 7:
|
|
1702
|
+
case "end":
|
|
1703
|
+
return _context4.stop();
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
}, _callee4);
|
|
1707
|
+
}));
|
|
1708
|
+
|
|
1709
|
+
return function (_x3) {
|
|
1710
|
+
return _ref3.apply(this, arguments);
|
|
1711
|
+
};
|
|
1712
|
+
}());
|
|
1713
|
+
} catch (t) {
|
|
1714
|
+
e(null);
|
|
1715
|
+
}
|
|
1716
|
+
}));
|
|
1717
|
+
|
|
1718
|
+
case 1:
|
|
1719
|
+
case "end":
|
|
1720
|
+
return _context5.stop();
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
}, _callee5);
|
|
1724
|
+
}));
|
|
1725
|
+
|
|
1726
|
+
function fonts(_x2) {
|
|
1727
|
+
return _fonts.apply(this, arguments);
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
return fonts;
|
|
1731
|
+
}(),
|
|
1732
|
+
hardware: function hardware() {
|
|
1733
|
+
return new Promise(function (e, t) {
|
|
1734
|
+
var n = void 0 !== navigator.deviceMemory ? navigator.deviceMemory : 0,
|
|
1735
|
+
o = window.performance && window.performance.memory ? window.performance.memory : 0;
|
|
1736
|
+
e({
|
|
1737
|
+
videocard: b(),
|
|
1738
|
+
architecture: E(),
|
|
1739
|
+
deviceMemory: n.toString() || "undefined",
|
|
1740
|
+
jsHeapSizeLimit: o.jsHeapSizeLimit || 0
|
|
1741
|
+
});
|
|
1742
|
+
});
|
|
1743
|
+
},
|
|
1744
|
+
locales: function locales() {
|
|
1745
|
+
return new Promise(function (e) {
|
|
1746
|
+
e({
|
|
1747
|
+
languages: navigator.language,
|
|
1748
|
+
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
1749
|
+
});
|
|
1750
|
+
});
|
|
1751
|
+
},
|
|
1752
|
+
math: function math() {
|
|
1753
|
+
return new Promise(function (e) {
|
|
1754
|
+
e({
|
|
1755
|
+
acos: Math.acos(.5),
|
|
1756
|
+
asin: M(Math.asin, -1, 1, 97),
|
|
1757
|
+
cos: M(Math.cos, 0, Math.PI, 97),
|
|
1758
|
+
largeCos: Math.cos(1e20),
|
|
1759
|
+
largeSin: Math.sin(1e20),
|
|
1760
|
+
largeTan: Math.tan(1e20),
|
|
1761
|
+
sin: M(Math.sin, -Math.PI, Math.PI, 97),
|
|
1762
|
+
tan: M(Math.tan, 0, 2 * Math.PI, 97)
|
|
1763
|
+
});
|
|
1764
|
+
});
|
|
1765
|
+
},
|
|
1766
|
+
permissions: /*#__PURE__*/function () {
|
|
1767
|
+
var _permissions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(e) {
|
|
1768
|
+
var t;
|
|
1769
|
+
return runtime_1.wrap(function _callee7$(_context7) {
|
|
1770
|
+
while (1) {
|
|
1771
|
+
switch (_context7.prev = _context7.next) {
|
|
1772
|
+
case 0:
|
|
1773
|
+
t = (null == e ? void 0 : e.permissions_to_check) || x;
|
|
1774
|
+
_context7.t0 = P;
|
|
1775
|
+
_context7.next = 4;
|
|
1776
|
+
return Promise.all(Array.from({
|
|
1777
|
+
length: 3
|
|
1778
|
+
}, function () {
|
|
1779
|
+
return function () {
|
|
1780
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(e) {
|
|
1781
|
+
var t, _iterator2, _step2, _n8, _e9;
|
|
1782
|
+
|
|
1783
|
+
return runtime_1.wrap(function _callee6$(_context6) {
|
|
1784
|
+
while (1) {
|
|
1785
|
+
switch (_context6.prev = _context6.next) {
|
|
1786
|
+
case 0:
|
|
1787
|
+
t = {};
|
|
1788
|
+
_iterator2 = _createForOfIteratorHelperLoose(e);
|
|
1789
|
+
|
|
1790
|
+
case 2:
|
|
1791
|
+
if ((_step2 = _iterator2()).done) {
|
|
1792
|
+
_context6.next = 15;
|
|
1793
|
+
break;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
_n8 = _step2.value;
|
|
1797
|
+
_context6.prev = 4;
|
|
1798
|
+
_context6.next = 7;
|
|
1799
|
+
return navigator.permissions.query({
|
|
1800
|
+
name: _n8
|
|
1801
|
+
});
|
|
1802
|
+
|
|
1803
|
+
case 7:
|
|
1804
|
+
_e9 = _context6.sent;
|
|
1805
|
+
t[_n8] = _e9.state.toString();
|
|
1806
|
+
_context6.next = 13;
|
|
1807
|
+
break;
|
|
1808
|
+
|
|
1809
|
+
case 11:
|
|
1810
|
+
_context6.prev = 11;
|
|
1811
|
+
_context6.t0 = _context6["catch"](4);
|
|
1812
|
+
|
|
1813
|
+
case 13:
|
|
1814
|
+
_context6.next = 2;
|
|
1815
|
+
break;
|
|
1816
|
+
|
|
1817
|
+
case 15:
|
|
1818
|
+
return _context6.abrupt("return", t);
|
|
1819
|
+
|
|
1820
|
+
case 16:
|
|
1821
|
+
case "end":
|
|
1822
|
+
return _context6.stop();
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
}, _callee6, null, [[4, 11]]);
|
|
1826
|
+
}));
|
|
1827
|
+
|
|
1828
|
+
return function (_x5) {
|
|
1829
|
+
return _ref4.apply(this, arguments);
|
|
1830
|
+
};
|
|
1831
|
+
}()(t);
|
|
1832
|
+
}));
|
|
1833
|
+
|
|
1834
|
+
case 4:
|
|
1835
|
+
_context7.t1 = _context7.sent;
|
|
1836
|
+
_context7.t2 = t;
|
|
1837
|
+
return _context7.abrupt("return", (0, _context7.t0)(_context7.t1, _context7.t2));
|
|
1838
|
+
|
|
1839
|
+
case 7:
|
|
1840
|
+
case "end":
|
|
1841
|
+
return _context7.stop();
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
}, _callee7);
|
|
1845
|
+
}));
|
|
1846
|
+
|
|
1847
|
+
function permissions(_x4) {
|
|
1848
|
+
return _permissions.apply(this, arguments);
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
return permissions;
|
|
1852
|
+
}(),
|
|
1853
|
+
plugins: /*#__PURE__*/function () {
|
|
1854
|
+
var _plugins = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8() {
|
|
1855
|
+
var e, _t8, _n9;
|
|
1856
|
+
|
|
1857
|
+
return runtime_1.wrap(function _callee8$(_context8) {
|
|
1858
|
+
while (1) {
|
|
1859
|
+
switch (_context8.prev = _context8.next) {
|
|
1860
|
+
case 0:
|
|
1861
|
+
e = [];
|
|
1862
|
+
if (navigator.plugins) for (_t8 = 0; _t8 < navigator.plugins.length; _t8++) {
|
|
1863
|
+
_n9 = navigator.plugins[_t8];
|
|
1864
|
+
e.push([_n9.name, _n9.filename, _n9.description].join("|"));
|
|
1865
|
+
}
|
|
1866
|
+
return _context8.abrupt("return", new Promise(function (t) {
|
|
1867
|
+
t({
|
|
1868
|
+
plugins: e
|
|
1869
|
+
});
|
|
1870
|
+
}));
|
|
1871
|
+
|
|
1872
|
+
case 3:
|
|
1873
|
+
case "end":
|
|
1874
|
+
return _context8.stop();
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
}, _callee8);
|
|
1878
|
+
}));
|
|
1879
|
+
|
|
1880
|
+
function plugins() {
|
|
1881
|
+
return _plugins.apply(this, arguments);
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
return plugins;
|
|
1885
|
+
}(),
|
|
1886
|
+
screen: /*#__PURE__*/function (_screen) {
|
|
1887
|
+
function screen() {
|
|
1888
|
+
return _screen.apply(this, arguments);
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
screen.toString = function () {
|
|
1892
|
+
return _screen.toString();
|
|
1893
|
+
};
|
|
1894
|
+
|
|
1895
|
+
return screen;
|
|
1896
|
+
}(function () {
|
|
1897
|
+
return new Promise(function (e) {
|
|
1898
|
+
if ("undefined" == typeof matchMedia || "undefined" == typeof screen) return void e(null);
|
|
1899
|
+
var t = {
|
|
1900
|
+
is_touchscreen: navigator.maxTouchPoints > 0,
|
|
1901
|
+
maxTouchPoints: navigator.maxTouchPoints,
|
|
1902
|
+
colorDepth: screen.colorDepth,
|
|
1903
|
+
mediaMatches: I()
|
|
1904
|
+
};
|
|
1905
|
+
_() && navigator.maxTouchPoints > 0 && (t.resolution = function () {
|
|
1906
|
+
var e = window.screen.width,
|
|
1907
|
+
t = window.screen.height,
|
|
1908
|
+
n = Math.max(e, t).toString(),
|
|
1909
|
+
o = Math.min(e, t).toString();
|
|
1910
|
+
return n + "x" + o;
|
|
1911
|
+
}()), e(t);
|
|
1912
|
+
});
|
|
1913
|
+
}),
|
|
1914
|
+
system: function system() {
|
|
1915
|
+
return new Promise(function (e) {
|
|
1916
|
+
var t = C();
|
|
1917
|
+
e({
|
|
1918
|
+
platform: window.navigator.platform,
|
|
1919
|
+
productSub: navigator.productSub,
|
|
1920
|
+
product: navigator.product,
|
|
1921
|
+
useragent: navigator.userAgent,
|
|
1922
|
+
hardwareConcurrency: navigator.hardwareConcurrency,
|
|
1923
|
+
browser: {
|
|
1924
|
+
name: t.name,
|
|
1925
|
+
version: t.version
|
|
1926
|
+
},
|
|
1927
|
+
mobile: _(),
|
|
1928
|
+
applePayVersion: T(),
|
|
1929
|
+
cookieEnabled: window.navigator.cookieEnabled
|
|
1930
|
+
});
|
|
1931
|
+
});
|
|
1932
|
+
},
|
|
1933
|
+
webgl: /*#__PURE__*/function () {
|
|
1934
|
+
var _webgl = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9() {
|
|
1935
|
+
var _e10;
|
|
1936
|
+
|
|
1937
|
+
return runtime_1.wrap(function _callee9$(_context9) {
|
|
1938
|
+
while (1) {
|
|
1939
|
+
switch (_context9.prev = _context9.next) {
|
|
1940
|
+
case 0:
|
|
1941
|
+
"undefined" != typeof document && (k = document.createElement("canvas"), k.width = 200, k.height = 100, O = k.getContext("webgl"));
|
|
1942
|
+
_context9.prev = 1;
|
|
1943
|
+
|
|
1944
|
+
if (O) {
|
|
1945
|
+
_context9.next = 4;
|
|
1946
|
+
break;
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
throw new Error("WebGL not supported");
|
|
1950
|
+
|
|
1951
|
+
case 4:
|
|
1952
|
+
_e10 = Array.from({
|
|
1953
|
+
length: R
|
|
1954
|
+
}, function () {
|
|
1955
|
+
return function () {
|
|
1956
|
+
try {
|
|
1957
|
+
if (!O) throw new Error("WebGL not supported");
|
|
1958
|
+
|
|
1959
|
+
var _e11 = "\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n ",
|
|
1960
|
+
_t9 = "\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n ",
|
|
1961
|
+
_n10 = O.createShader(O.VERTEX_SHADER),
|
|
1962
|
+
_o5 = O.createShader(O.FRAGMENT_SHADER);
|
|
1963
|
+
|
|
1964
|
+
if (!_n10 || !_o5) throw new Error("Failed to create shaders");
|
|
1965
|
+
if (O.shaderSource(_n10, _e11), O.shaderSource(_o5, _t9), O.compileShader(_n10), !O.getShaderParameter(_n10, O.COMPILE_STATUS)) throw new Error("Vertex shader compilation failed: " + O.getShaderInfoLog(_n10));
|
|
1966
|
+
if (O.compileShader(_o5), !O.getShaderParameter(_o5, O.COMPILE_STATUS)) throw new Error("Fragment shader compilation failed: " + O.getShaderInfoLog(_o5));
|
|
1967
|
+
|
|
1968
|
+
var _r3 = O.createProgram();
|
|
1969
|
+
|
|
1970
|
+
if (!_r3) throw new Error("Failed to create shader program");
|
|
1971
|
+
if (O.attachShader(_r3, _n10), O.attachShader(_r3, _o5), O.linkProgram(_r3), !O.getProgramParameter(_r3, O.LINK_STATUS)) throw new Error("Shader program linking failed: " + O.getProgramInfoLog(_r3));
|
|
1972
|
+
O.useProgram(_r3);
|
|
1973
|
+
|
|
1974
|
+
var _i5 = 137,
|
|
1975
|
+
_a = new Float32Array(4 * _i5),
|
|
1976
|
+
_s3 = 2 * Math.PI / _i5;
|
|
1977
|
+
|
|
1978
|
+
for (var _e12 = 0; _e12 < _i5; _e12++) {
|
|
1979
|
+
var _t10 = _e12 * _s3;
|
|
1980
|
+
|
|
1981
|
+
_a[4 * _e12] = 0, _a[4 * _e12 + 1] = 0, _a[4 * _e12 + 2] = Math.cos(_t10) * (k.width / 2), _a[4 * _e12 + 3] = Math.sin(_t10) * (k.height / 2);
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
var _c = O.createBuffer();
|
|
1985
|
+
|
|
1986
|
+
O.bindBuffer(O.ARRAY_BUFFER, _c), O.bufferData(O.ARRAY_BUFFER, _a, O.STATIC_DRAW);
|
|
1987
|
+
|
|
1988
|
+
var _u2 = O.getAttribLocation(_r3, "position");
|
|
1989
|
+
|
|
1990
|
+
O.enableVertexAttribArray(_u2), O.vertexAttribPointer(_u2, 2, O.FLOAT, !1, 0, 0), O.viewport(0, 0, k.width, k.height), O.clearColor(0, 0, 0, 1), O.clear(O.COLOR_BUFFER_BIT), O.drawArrays(O.LINES, 0, 2 * _i5);
|
|
1991
|
+
|
|
1992
|
+
var _l2 = new Uint8ClampedArray(k.width * k.height * 4);
|
|
1993
|
+
|
|
1994
|
+
O.readPixels(0, 0, k.width, k.height, O.RGBA, O.UNSIGNED_BYTE, _l2);
|
|
1995
|
+
return new ImageData(_l2, k.width, k.height);
|
|
1996
|
+
} catch (e) {
|
|
1997
|
+
return new ImageData(1, 1);
|
|
1998
|
+
} finally {
|
|
1999
|
+
O && (O.bindBuffer(O.ARRAY_BUFFER, null), O.useProgram(null), O.viewport(0, 0, O.drawingBufferWidth, O.drawingBufferHeight), O.clearColor(0, 0, 0, 0));
|
|
2000
|
+
}
|
|
2001
|
+
}();
|
|
2002
|
+
});
|
|
2003
|
+
return _context9.abrupt("return", {
|
|
2004
|
+
commonPixelsHash: f(u(_e10, k.width, k.height).data.toString()).toString()
|
|
2005
|
+
});
|
|
2006
|
+
|
|
2007
|
+
case 8:
|
|
2008
|
+
_context9.prev = 8;
|
|
2009
|
+
_context9.t0 = _context9["catch"](1);
|
|
2010
|
+
return _context9.abrupt("return", {
|
|
2011
|
+
webgl: "unsupported"
|
|
2012
|
+
});
|
|
2013
|
+
|
|
2014
|
+
case 11:
|
|
2015
|
+
case "end":
|
|
2016
|
+
return _context9.stop();
|
|
2017
|
+
}
|
|
2018
|
+
}
|
|
2019
|
+
}, _callee9, null, [[1, 8]]);
|
|
2020
|
+
}));
|
|
2021
|
+
|
|
2022
|
+
function webgl() {
|
|
2023
|
+
return _webgl.apply(this, arguments);
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
return webgl;
|
|
2027
|
+
}(),
|
|
2028
|
+
webrtc: /*#__PURE__*/function () {
|
|
2029
|
+
var _webrtc = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(e) {
|
|
2030
|
+
return runtime_1.wrap(function _callee11$(_context11) {
|
|
2031
|
+
while (1) {
|
|
2032
|
+
switch (_context11.prev = _context11.next) {
|
|
2033
|
+
case 0:
|
|
2034
|
+
return _context11.abrupt("return", new Promise(function (t) {
|
|
2035
|
+
try {
|
|
2036
|
+
var _n11 = window.RTCPeerConnection || window.webkitRTCPeerConnection || window.mozRTCPeerConnection;
|
|
2037
|
+
|
|
2038
|
+
if (!_n11) return void t({
|
|
2039
|
+
supported: !1,
|
|
2040
|
+
error: "WebRTC not supported"
|
|
2041
|
+
});
|
|
2042
|
+
|
|
2043
|
+
var _o6 = new _n11({
|
|
2044
|
+
iceCandidatePoolSize: 1,
|
|
2045
|
+
iceServers: []
|
|
2046
|
+
});
|
|
2047
|
+
|
|
2048
|
+
_o6.createDataChannel("");
|
|
2049
|
+
|
|
2050
|
+
_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10() {
|
|
2051
|
+
var _n12, _r4, _i6, _a2, _s4, _c2, _u3, _l3, _d, _m, _p, _h;
|
|
2052
|
+
|
|
2053
|
+
return runtime_1.wrap(function _callee10$(_context10) {
|
|
2054
|
+
while (1) {
|
|
2055
|
+
switch (_context10.prev = _context10.next) {
|
|
2056
|
+
case 0:
|
|
2057
|
+
_context10.prev = 0;
|
|
2058
|
+
_n12 = {
|
|
2059
|
+
offerToReceiveAudio: !0,
|
|
2060
|
+
offerToReceiveVideo: !0
|
|
2061
|
+
};
|
|
2062
|
+
_context10.next = 4;
|
|
2063
|
+
return _o6.createOffer(_n12);
|
|
2064
|
+
|
|
2065
|
+
case 4:
|
|
2066
|
+
_r4 = _context10.sent;
|
|
2067
|
+
_context10.next = 7;
|
|
2068
|
+
return _o6.setLocalDescription(_r4);
|
|
2069
|
+
|
|
2070
|
+
case 7:
|
|
2071
|
+
_i6 = _r4.sdp || "";
|
|
2072
|
+
_a2 = [].concat(new Set((_i6.match(/extmap:\d+ [^\n\r]+/g) || []).map(function (e) {
|
|
2073
|
+
return e.replace(/extmap:\d+ /, "");
|
|
2074
|
+
}))).sort();
|
|
2075
|
+
|
|
2076
|
+
_s4 = function _s4(e) {
|
|
2077
|
+
var t = _i6.match(new RegExp("m=" + e + " [^\\s]+ [^\\s]+ ([^\\n\\r]+)"));
|
|
2078
|
+
|
|
2079
|
+
return t ? t[1].split(" ") : [];
|
|
2080
|
+
};
|
|
2081
|
+
|
|
2082
|
+
_c2 = function _c2(e, t) {
|
|
2083
|
+
return t.map(function (t) {
|
|
2084
|
+
var n = new RegExp("(rtpmap|fmtp|rtcp-fb):" + t + " (.+)", "g"),
|
|
2085
|
+
o = [].concat(_i6.matchAll(n));
|
|
2086
|
+
if (!o.length) return null;
|
|
2087
|
+
var r = {};
|
|
2088
|
+
return o.forEach(function (t) {
|
|
2089
|
+
var n = t[0],
|
|
2090
|
+
o = t[1],
|
|
2091
|
+
i = t[2],
|
|
2092
|
+
a = i.split("/");
|
|
2093
|
+
"rtpmap" === o ? (r.mimeType = e + "/" + a[0], r.clockRate = +a[1], "audio" === e && (r.channels = +a[2] || 1)) : "rtcp-fb" === o ? (r.feedbackSupport = r.feedbackSupport || [], r.feedbackSupport.push(i)) : "fmtp" === o && (r.sdpFmtpLine = i);
|
|
2094
|
+
}), r;
|
|
2095
|
+
}).filter(Boolean);
|
|
2096
|
+
};
|
|
2097
|
+
|
|
2098
|
+
_u3 = _c2("audio", _s4("audio"));
|
|
2099
|
+
_l3 = _c2("video", _s4("video"));
|
|
2100
|
+
_d = {
|
|
2101
|
+
audio: {
|
|
2102
|
+
count: _u3.length,
|
|
2103
|
+
hash: f(L(_u3))
|
|
2104
|
+
},
|
|
2105
|
+
video: {
|
|
2106
|
+
count: _l3.length,
|
|
2107
|
+
hash: f(L(_l3))
|
|
2108
|
+
},
|
|
2109
|
+
extensionsHash: f(L(_a2))
|
|
2110
|
+
};
|
|
2111
|
+
_m = (null == e ? void 0 : e.timeout) || 5e3;
|
|
2112
|
+
_p = Math.floor(.9 * _m);
|
|
2113
|
+
_context10.next = 18;
|
|
2114
|
+
return new Promise(function (e) {
|
|
2115
|
+
var t = setTimeout(function () {
|
|
2116
|
+
_o6.removeEventListener("icecandidate", n), _o6.close(), e(_extends({
|
|
2117
|
+
supported: !0
|
|
2118
|
+
}, _d, {
|
|
2119
|
+
timeout: !0
|
|
2120
|
+
}));
|
|
2121
|
+
}, _p),
|
|
2122
|
+
n = function n(r) {
|
|
2123
|
+
var i = r.candidate;
|
|
2124
|
+
i && i.candidate && (clearTimeout(t), _o6.removeEventListener("icecandidate", n), _o6.close(), e(_extends({
|
|
2125
|
+
supported: !0
|
|
2126
|
+
}, _d, {
|
|
2127
|
+
candidateType: i.type || ""
|
|
2128
|
+
})));
|
|
2129
|
+
};
|
|
2130
|
+
|
|
2131
|
+
_o6.addEventListener("icecandidate", n);
|
|
2132
|
+
});
|
|
2133
|
+
|
|
2134
|
+
case 18:
|
|
2135
|
+
_h = _context10.sent;
|
|
2136
|
+
t({
|
|
2137
|
+
details: _h,
|
|
2138
|
+
hash: f(L(_h))
|
|
2139
|
+
});
|
|
2140
|
+
_context10.next = 25;
|
|
2141
|
+
break;
|
|
2142
|
+
|
|
2143
|
+
case 22:
|
|
2144
|
+
_context10.prev = 22;
|
|
2145
|
+
_context10.t0 = _context10["catch"](0);
|
|
2146
|
+
_o6.close(), t({
|
|
2147
|
+
supported: !0,
|
|
2148
|
+
error: "WebRTC offer failed: " + _context10.t0.message
|
|
2149
|
+
});
|
|
2150
|
+
|
|
2151
|
+
case 25:
|
|
2152
|
+
case "end":
|
|
2153
|
+
return _context10.stop();
|
|
2154
|
+
}
|
|
2155
|
+
}
|
|
2156
|
+
}, _callee10, null, [[0, 22]]);
|
|
2157
|
+
}))();
|
|
2158
|
+
} catch (e) {
|
|
2159
|
+
t({
|
|
2160
|
+
supported: !1,
|
|
2161
|
+
error: "WebRTC error: " + e.message
|
|
2162
|
+
});
|
|
2163
|
+
}
|
|
2164
|
+
}));
|
|
2165
|
+
|
|
2166
|
+
case 1:
|
|
2167
|
+
case "end":
|
|
2168
|
+
return _context11.stop();
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
}, _callee11);
|
|
2172
|
+
}));
|
|
2173
|
+
|
|
2174
|
+
function webrtc(_x6) {
|
|
2175
|
+
return _webrtc.apply(this, arguments);
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
return webrtc;
|
|
2179
|
+
}(),
|
|
2180
|
+
speech: /*#__PURE__*/function () {
|
|
2181
|
+
var _speech = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12() {
|
|
2182
|
+
return runtime_1.wrap(function _callee12$(_context12) {
|
|
2183
|
+
while (1) {
|
|
2184
|
+
switch (_context12.prev = _context12.next) {
|
|
2185
|
+
case 0:
|
|
2186
|
+
return _context12.abrupt("return", new Promise(function (e) {
|
|
2187
|
+
try {
|
|
2188
|
+
if ("undefined" == typeof window || !window.speechSynthesis || "function" != typeof window.speechSynthesis.getVoices) return void e({
|
|
2189
|
+
supported: !1,
|
|
2190
|
+
error: "Speech Synthesis API not supported"
|
|
2191
|
+
});
|
|
2192
|
+
|
|
2193
|
+
var _t11 = !1,
|
|
2194
|
+
_n13 = null;
|
|
2195
|
+
|
|
2196
|
+
var _o7 = function _o7(o) {
|
|
2197
|
+
if (!_t11) {
|
|
2198
|
+
_t11 = !0, _n13 && clearTimeout(_n13);
|
|
2199
|
+
|
|
2200
|
+
try {
|
|
2201
|
+
var _t12 = o.map(function (e) {
|
|
2202
|
+
var t = function t(e) {
|
|
2203
|
+
return e.replace(/\\/g, "\\\\").replace(/,/g, "\\,");
|
|
2204
|
+
};
|
|
2205
|
+
|
|
2206
|
+
return [t(e.voiceURI || ""), t(e.name || ""), t(e.lang || ""), e.localService ? "1" : "0", e["default"] ? "1" : "0"].join(",");
|
|
2207
|
+
});
|
|
2208
|
+
|
|
2209
|
+
_t12.sort();
|
|
2210
|
+
|
|
2211
|
+
var _n14 = {
|
|
2212
|
+
voiceCount: o.length,
|
|
2213
|
+
voicesHash: f(L(_t12))
|
|
2214
|
+
};
|
|
2215
|
+
e({
|
|
2216
|
+
details: _n14,
|
|
2217
|
+
hash: f(L(_n14))
|
|
2218
|
+
});
|
|
2219
|
+
} catch (t) {
|
|
2220
|
+
e({
|
|
2221
|
+
supported: !0,
|
|
2222
|
+
error: "Voice processing failed: " + t.message
|
|
2223
|
+
});
|
|
2224
|
+
}
|
|
2225
|
+
}
|
|
2226
|
+
},
|
|
2227
|
+
_r5 = window.speechSynthesis.getVoices();
|
|
2228
|
+
|
|
2229
|
+
if (_r5.length > 0) return void _o7(_r5);
|
|
2230
|
+
_n13 = setTimeout(function () {
|
|
2231
|
+
var e = window.speechSynthesis.getVoices();
|
|
2232
|
+
|
|
2233
|
+
_o7(e);
|
|
2234
|
+
}, 800);
|
|
2235
|
+
|
|
2236
|
+
var _i7 = function _i7() {
|
|
2237
|
+
window.speechSynthesis.removeEventListener("voiceschanged", _i7);
|
|
2238
|
+
var e = window.speechSynthesis.getVoices();
|
|
2239
|
+
|
|
2240
|
+
_o7(e);
|
|
2241
|
+
};
|
|
2242
|
+
|
|
2243
|
+
window.speechSynthesis.addEventListener("voiceschanged", _i7);
|
|
2244
|
+
} catch (t) {
|
|
2245
|
+
e({
|
|
2246
|
+
supported: !1,
|
|
2247
|
+
error: "Speech Synthesis error: " + t.message
|
|
2248
|
+
});
|
|
2249
|
+
}
|
|
2250
|
+
}));
|
|
2251
|
+
|
|
2252
|
+
case 1:
|
|
2253
|
+
case "end":
|
|
2254
|
+
return _context12.stop();
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
}, _callee12);
|
|
2258
|
+
}));
|
|
2259
|
+
|
|
2260
|
+
function speech() {
|
|
2261
|
+
return _speech.apply(this, arguments);
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
return speech;
|
|
2265
|
+
}()
|
|
2266
|
+
},
|
|
2267
|
+
U = {
|
|
2268
|
+
mathml: /*#__PURE__*/function () {
|
|
2269
|
+
var _mathml = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee14() {
|
|
2270
|
+
return runtime_1.wrap(function _callee14$(_context14) {
|
|
2271
|
+
while (1) {
|
|
2272
|
+
switch (_context14.prev = _context14.next) {
|
|
2273
|
+
case 0:
|
|
2274
|
+
return _context14.abrupt("return", new Promise(function (e) {
|
|
2275
|
+
try {
|
|
2276
|
+
g( /*#__PURE__*/function () {
|
|
2277
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee13(_ref6) {
|
|
2278
|
+
var t, _n15, _o8, _r6, _i8;
|
|
2279
|
+
|
|
2280
|
+
return runtime_1.wrap(function _callee13$(_context13) {
|
|
2281
|
+
while (1) {
|
|
2282
|
+
switch (_context13.prev = _context13.next) {
|
|
2283
|
+
case 0:
|
|
2284
|
+
t = _ref6.iframe;
|
|
2285
|
+
_context13.prev = 1;
|
|
2286
|
+
|
|
2287
|
+
if (function (e) {
|
|
2288
|
+
try {
|
|
2289
|
+
var _t13 = e.createElement("math");
|
|
2290
|
+
|
|
2291
|
+
_t13.innerHTML = "<mrow><mi>x</mi></mrow>", _t13.style.position = "absolute", _t13.style.visibility = "hidden", e.body.appendChild(_t13);
|
|
2292
|
+
|
|
2293
|
+
var _n16 = _t13.getBoundingClientRect();
|
|
2294
|
+
|
|
2295
|
+
return e.body.removeChild(_t13), _n16.width > 0 && _n16.height > 0;
|
|
2296
|
+
} catch (e) {
|
|
2297
|
+
return !1;
|
|
2298
|
+
}
|
|
2299
|
+
}(t)) {
|
|
2300
|
+
_context13.next = 4;
|
|
2301
|
+
break;
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2304
|
+
return _context13.abrupt("return", void e({
|
|
2305
|
+
supported: !1,
|
|
2306
|
+
error: "MathML not supported"
|
|
2307
|
+
}));
|
|
2308
|
+
|
|
2309
|
+
case 4:
|
|
2310
|
+
_n15 = [D("integral", "<msubsup><mo>∫</mo><mi>a</mi><mi>b</mi></msubsup><mfrac><mrow><mi>f</mi><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mrow><mi>g</mi><mo>(</mo><mi>x</mi><mo>)</mo></mrow></mfrac><mi>dx</mi>"), D("fraction", "<mfrac><mrow><mi>π</mi><mo>×</mo><msup><mi>r</mi><mn>2</mn></msup></mrow><mrow><mn>2</mn><mi>σ</mi></mrow></mfrac>"), D("matrix", "<mo>[</mo><mtable><mtr><mtd><mi>α</mi></mtd><mtd><mi>β</mi></mtd></mtr><mtr><mtd><mi>γ</mi></mtd><mtd><mi>δ</mi></mtd></mtr></mtable><mo>]</mo>"), $()].concat(F()), _o8 = [];
|
|
2311
|
+
_r6 = "";
|
|
2312
|
+
|
|
2313
|
+
_n15.forEach(function (e, n) {
|
|
2314
|
+
var i = function (e, t) {
|
|
2315
|
+
try {
|
|
2316
|
+
var _n17 = t.createElement("math");
|
|
2317
|
+
|
|
2318
|
+
_n17.innerHTML = e.replace(/<\/?math>/g, ""), _n17.style.whiteSpace = "nowrap", _n17.style.position = "absolute", _n17.style.visibility = "hidden", _n17.style.top = "-9999px", t.body.appendChild(_n17);
|
|
2319
|
+
|
|
2320
|
+
var _o9 = _n17.getBoundingClientRect(),
|
|
2321
|
+
_r7 = (t.defaultView || window).getComputedStyle(_n17),
|
|
2322
|
+
_i9 = {
|
|
2323
|
+
dimensions: {
|
|
2324
|
+
width: _o9.width,
|
|
2325
|
+
height: _o9.height
|
|
2326
|
+
},
|
|
2327
|
+
fontInfo: {
|
|
2328
|
+
fontFamily: _r7.fontFamily,
|
|
2329
|
+
fontSize: _r7.fontSize,
|
|
2330
|
+
fontWeight: _r7.fontWeight,
|
|
2331
|
+
fontStyle: _r7.fontStyle,
|
|
2332
|
+
lineHeight: _r7.lineHeight,
|
|
2333
|
+
fontVariant: _r7.fontVariant || "normal",
|
|
2334
|
+
fontStretch: _r7.fontStretch || "normal",
|
|
2335
|
+
fontSizeAdjust: _r7.fontSizeAdjust || "none",
|
|
2336
|
+
textRendering: _r7.textRendering || "auto",
|
|
2337
|
+
fontFeatureSettings: _r7.fontFeatureSettings || "normal",
|
|
2338
|
+
fontVariantNumeric: _r7.fontVariantNumeric || "normal",
|
|
2339
|
+
fontKerning: _r7.fontKerning || "auto"
|
|
2340
|
+
}
|
|
2341
|
+
};
|
|
2342
|
+
|
|
2343
|
+
return t.body.removeChild(_n17), _i9;
|
|
2344
|
+
} catch (e) {
|
|
2345
|
+
return {
|
|
2346
|
+
error: e.message
|
|
2347
|
+
};
|
|
2348
|
+
}
|
|
2349
|
+
}(e, t);
|
|
2350
|
+
|
|
2351
|
+
_o8.push({
|
|
2352
|
+
width: i.dimensions.width,
|
|
2353
|
+
height: i.dimensions.height
|
|
2354
|
+
}), 0 === n && i.fontInfo && (_r6 = f(L(i.fontInfo)));
|
|
2355
|
+
});
|
|
2356
|
+
|
|
2357
|
+
_i8 = {
|
|
2358
|
+
fontStyleHash: _r6,
|
|
2359
|
+
dimensions: _o8
|
|
2360
|
+
};
|
|
2361
|
+
e({
|
|
2362
|
+
details: _i8,
|
|
2363
|
+
hash: f(L(_i8))
|
|
2364
|
+
});
|
|
2365
|
+
_context13.next = 14;
|
|
2366
|
+
break;
|
|
2367
|
+
|
|
2368
|
+
case 11:
|
|
2369
|
+
_context13.prev = 11;
|
|
2370
|
+
_context13.t0 = _context13["catch"](1);
|
|
2371
|
+
e({
|
|
2372
|
+
supported: !1,
|
|
2373
|
+
error: "MathML error: " + _context13.t0.message
|
|
2374
|
+
});
|
|
2375
|
+
|
|
2376
|
+
case 14:
|
|
2377
|
+
case "end":
|
|
2378
|
+
return _context13.stop();
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
}, _callee13, null, [[1, 11]]);
|
|
2382
|
+
}));
|
|
2383
|
+
|
|
2384
|
+
return function (_x7) {
|
|
2385
|
+
return _ref7.apply(this, arguments);
|
|
2386
|
+
};
|
|
2387
|
+
}());
|
|
2388
|
+
} catch (t) {
|
|
2389
|
+
e({
|
|
2390
|
+
supported: !1,
|
|
2391
|
+
error: "MathML error: " + t.message
|
|
2392
|
+
});
|
|
2393
|
+
}
|
|
2394
|
+
}));
|
|
2395
|
+
|
|
2396
|
+
case 1:
|
|
2397
|
+
case "end":
|
|
2398
|
+
return _context14.stop();
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
}, _callee14);
|
|
2402
|
+
}));
|
|
2403
|
+
|
|
2404
|
+
function mathml() {
|
|
2405
|
+
return _mathml.apply(this, arguments);
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2408
|
+
return mathml;
|
|
2409
|
+
}()
|
|
2410
|
+
},
|
|
2411
|
+
j = {},
|
|
2412
|
+
W = {
|
|
2413
|
+
timeout: "true"
|
|
2414
|
+
},
|
|
2415
|
+
H = function H(e, t, n) {
|
|
2416
|
+
j[e] = t;
|
|
2417
|
+
};
|
|
2418
|
+
|
|
2419
|
+
function z(e, t) {
|
|
2420
|
+
var n, o;
|
|
2421
|
+
var r = C();
|
|
2422
|
+
|
|
2423
|
+
if ("unknown" === r.name && t) {
|
|
2424
|
+
var _e13 = null === (n = t.system) || void 0 === n ? void 0 : n.browser;
|
|
2425
|
+
|
|
2426
|
+
(null == _e13 ? void 0 : _e13.name) && (r = {
|
|
2427
|
+
name: String(_e13.name),
|
|
2428
|
+
version: String(_e13.version || "unknown")
|
|
2429
|
+
});
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
var i = r.name.toLowerCase(),
|
|
2433
|
+
s = parseInt(r.version.split(".")[0] || "0", 10),
|
|
2434
|
+
c = [].concat((null == e ? void 0 : e.exclude) || []),
|
|
2435
|
+
u = [].concat(new Set([].concat((null == e ? void 0 : e.stabilize) || [], ["always"])));
|
|
2436
|
+
|
|
2437
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose(u), _step3; !(_step3 = _iterator3()).done;) {
|
|
2438
|
+
var _e14 = _step3.value;
|
|
2439
|
+
var _t14 = a[_e14];
|
|
2440
|
+
|
|
2441
|
+
if (_t14) {
|
|
2442
|
+
for (var _iterator4 = _createForOfIteratorHelperLoose(_t14), _step4; !(_step4 = _iterator4()).done;) {
|
|
2443
|
+
var _e15 = _step4.value;
|
|
2444
|
+
"browsers" in _e15 && !(null === (o = _e15.browsers) || void 0 === o ? void 0 : o.some(function (e) {
|
|
2445
|
+
var t = e.match(/(.+?)(>=)(\d+)/);
|
|
2446
|
+
return t ? i === t[1] && s >= +t[3] : i === e;
|
|
2447
|
+
})) || c.push.apply(c, _e15.exclude);
|
|
2448
|
+
}
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
return c;
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
function J(e, t) {
|
|
2456
|
+
var n = z(t, e),
|
|
2457
|
+
o = (null == t ? void 0 : t.include) || [];
|
|
2458
|
+
return function e(t, r) {
|
|
2459
|
+
if (r === void 0) {
|
|
2460
|
+
r = "";
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
var i = {};
|
|
2464
|
+
|
|
2465
|
+
var _loop = function _loop() {
|
|
2466
|
+
var _Object$entries$_i = _Object$entries[_i10],
|
|
2467
|
+
a = _Object$entries$_i[0],
|
|
2468
|
+
s = _Object$entries$_i[1];
|
|
2469
|
+
var t = r ? r + "." + a : a;
|
|
2470
|
+
|
|
2471
|
+
if ("object" != typeof s || Array.isArray(s) || null === s) {
|
|
2472
|
+
var _e16 = n.some(function (e) {
|
|
2473
|
+
return t.startsWith(e);
|
|
2474
|
+
}),
|
|
2475
|
+
_r8 = o.some(function (e) {
|
|
2476
|
+
return t.startsWith(e);
|
|
2477
|
+
});
|
|
2478
|
+
|
|
2479
|
+
_e16 && !_r8 || (i[a] = s);
|
|
2480
|
+
} else {
|
|
2481
|
+
var _n18 = e(s, t);
|
|
2482
|
+
|
|
2483
|
+
Object.keys(_n18).length > 0 && (i[a] = _n18);
|
|
2484
|
+
}
|
|
2485
|
+
};
|
|
2486
|
+
|
|
2487
|
+
for (var _i10 = 0, _Object$entries = Object.entries(t); _i10 < _Object$entries.length; _i10++) {
|
|
2488
|
+
_loop();
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
return i;
|
|
2492
|
+
}(e);
|
|
2493
|
+
}
|
|
2494
|
+
|
|
2495
|
+
var q = "visitor_id";
|
|
2496
|
+
|
|
2497
|
+
function K(e) {
|
|
2498
|
+
return e.storage_property_name ? e.storage_property_name : e.property_name_factory(q);
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
var Y = t + "_" + q;
|
|
2502
|
+
|
|
2503
|
+
function X(e, t) {
|
|
2504
|
+
try {
|
|
2505
|
+
localStorage.setItem(K(t), e);
|
|
2506
|
+
} catch (e) {}
|
|
2507
|
+
}
|
|
2508
|
+
|
|
2509
|
+
var Z = "cache";
|
|
2510
|
+
|
|
2511
|
+
function Q(e) {
|
|
2512
|
+
try {
|
|
2513
|
+
var _t15 = localStorage.getItem(e.property_name_factory(Z)),
|
|
2514
|
+
_n19 = JSON.parse(_t15);
|
|
2515
|
+
|
|
2516
|
+
return _n19 || {};
|
|
2517
|
+
} catch (e) {}
|
|
2518
|
+
|
|
2519
|
+
return {};
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
function ee(t) {
|
|
2523
|
+
return t.cache_lifetime_in_ms > e ? Date.now() + e : Date.now() + t.cache_lifetime_in_ms;
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
var te = null,
|
|
2527
|
+
ne = null;
|
|
2528
|
+
|
|
2529
|
+
var oe = function oe(e, t) {
|
|
2530
|
+
if (e.cache_api_call) {
|
|
2531
|
+
if (ne) return Promise.resolve(ne);
|
|
2532
|
+
|
|
2533
|
+
var _t16 = function (e) {
|
|
2534
|
+
var t = Q(e);
|
|
2535
|
+
if (t && t.apiResponse && t.apiResponseExpiry && Date.now() <= t.apiResponseExpiry) return t.apiResponse;
|
|
2536
|
+
return;
|
|
2537
|
+
}(e);
|
|
2538
|
+
|
|
2539
|
+
if (_t16) return Promise.resolve(_t16);
|
|
2540
|
+
if (te) return te;
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2543
|
+
var o = (e.api_endpoint || n) + "/thumbmark",
|
|
2544
|
+
r = function (e) {
|
|
2545
|
+
try {
|
|
2546
|
+
var _t17 = K(e);
|
|
2547
|
+
|
|
2548
|
+
var _n20 = localStorage.getItem(_t17);
|
|
2549
|
+
|
|
2550
|
+
return _n20 || _t17 === Y || (_n20 = localStorage.getItem(Y), _n20 && X(_n20, e)), _n20;
|
|
2551
|
+
} catch (e) {
|
|
2552
|
+
return null;
|
|
2553
|
+
}
|
|
2554
|
+
}(e),
|
|
2555
|
+
i = {
|
|
2556
|
+
components: t,
|
|
2557
|
+
options: e,
|
|
2558
|
+
clientHash: f(L(t)),
|
|
2559
|
+
version: "1.7.4"
|
|
2560
|
+
};
|
|
2561
|
+
|
|
2562
|
+
if (r && (i.visitorId = r), e.metadata) {
|
|
2563
|
+
var _t18 = "function" == typeof e.metadata ? e.metadata() : e.metadata;
|
|
2564
|
+
|
|
2565
|
+
if (_t18) {
|
|
2566
|
+
("string" == typeof _t18 ? _t18.length : JSON.stringify(_t18).length) > 1e3 ? console.error("ThumbmarkJS: Metadata exceeds 1000 characters. Skipping metadata.") : i.metadata = _t18;
|
|
2567
|
+
}
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
var a = fetch(o, {
|
|
2571
|
+
method: "POST",
|
|
2572
|
+
headers: {
|
|
2573
|
+
"x-api-key": e.api_key,
|
|
2574
|
+
Authorization: "custom-authorized",
|
|
2575
|
+
"Content-Type": "application/json"
|
|
2576
|
+
},
|
|
2577
|
+
body: JSON.stringify(i)
|
|
2578
|
+
}).then(function (e) {
|
|
2579
|
+
if (!e.ok) {
|
|
2580
|
+
if (403 === e.status) throw new Error("INVALID_API_KEY");
|
|
2581
|
+
throw new Error("HTTP error! status: " + e.status);
|
|
2582
|
+
}
|
|
2583
|
+
|
|
2584
|
+
return e.json();
|
|
2585
|
+
}).then(function (t) {
|
|
2586
|
+
return t.visitorId && t.visitorId !== r && X(t.visitorId, e), ne = t, function (e, t) {
|
|
2587
|
+
if (!e.cache_api_call || !e.cache_lifetime_in_ms) return;
|
|
2588
|
+
!function (e, t) {
|
|
2589
|
+
var n = _extends({}, Q(e), t);
|
|
2590
|
+
|
|
2591
|
+
try {
|
|
2592
|
+
localStorage.setItem(e.property_name_factory(Z), JSON.stringify(n));
|
|
2593
|
+
} catch (e) {}
|
|
2594
|
+
}(e, {
|
|
2595
|
+
apiResponseExpiry: ee(e),
|
|
2596
|
+
apiResponse: t
|
|
2597
|
+
});
|
|
2598
|
+
}(e, t), te = null, t;
|
|
2599
|
+
})["catch"](function (e) {
|
|
2600
|
+
throw te = null, e;
|
|
2601
|
+
}),
|
|
2602
|
+
s = e.timeout || 5e3,
|
|
2603
|
+
c = new Promise(function (t) {
|
|
2604
|
+
setTimeout(function () {
|
|
2605
|
+
var n = Q(e);
|
|
2606
|
+
n && n.apiResponse ? t(n.apiResponse) : t(_extends({
|
|
2607
|
+
info: {
|
|
2608
|
+
timed_out: !0
|
|
2609
|
+
}
|
|
2610
|
+
}, r && {
|
|
2611
|
+
visitorId: r
|
|
2612
|
+
}));
|
|
2613
|
+
}, s);
|
|
2614
|
+
});
|
|
2615
|
+
return te = Promise.race([a, c]), te;
|
|
2616
|
+
};
|
|
2617
|
+
|
|
2618
|
+
function re(_x8) {
|
|
2619
|
+
return _re.apply(this, arguments);
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
function _re() {
|
|
2623
|
+
_re = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee18(e) {
|
|
2624
|
+
var t, r, _i11, _a3, _s5, _c3, _yield$ie, _u4, _l4, _d2, _m2, _p2, _yield$ie2, _e17, _t19, _n21, _h2, _g2, _w, _v, _y, _S, _b, _E, _M;
|
|
2625
|
+
|
|
2626
|
+
return runtime_1.wrap(function _callee18$(_context18) {
|
|
2627
|
+
while (1) {
|
|
2628
|
+
switch (_context18.prev = _context18.next) {
|
|
2629
|
+
case 0:
|
|
2630
|
+
if (!("undefined" == typeof document || "undefined" == typeof window)) {
|
|
2631
|
+
_context18.next = 2;
|
|
2632
|
+
break;
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
return _context18.abrupt("return", {
|
|
2636
|
+
thumbmark: "",
|
|
2637
|
+
components: {},
|
|
2638
|
+
info: {},
|
|
2639
|
+
version: "1.7.4",
|
|
2640
|
+
error: [{
|
|
2641
|
+
type: "fatal",
|
|
2642
|
+
message: "Browser environment required"
|
|
2643
|
+
}]
|
|
2644
|
+
});
|
|
2645
|
+
|
|
2646
|
+
case 2:
|
|
2647
|
+
_context18.prev = 2;
|
|
2648
|
+
_i11 = _extends({}, o, e);
|
|
2649
|
+
_a3 = [];
|
|
2650
|
+
_s5 = _i11.logging && !sessionStorage.getItem("_tmjs_l") && Math.random() < 1e-4;
|
|
2651
|
+
_c3 = _extends({}, V, j);
|
|
2652
|
+
_context18.next = 9;
|
|
2653
|
+
return ie(_c3, _i11);
|
|
2654
|
+
|
|
2655
|
+
case 9:
|
|
2656
|
+
_yield$ie = _context18.sent;
|
|
2657
|
+
_u4 = _yield$ie.elapsed;
|
|
2658
|
+
_l4 = _yield$ie.resolvedComponents;
|
|
2659
|
+
_d2 = _yield$ie.errors;
|
|
2660
|
+
|
|
2661
|
+
_a3.push.apply(_a3, _d2);
|
|
2662
|
+
|
|
2663
|
+
_m2 = {}, _p2 = {};
|
|
2664
|
+
|
|
2665
|
+
if (!(_s5 || _i11.experimental)) {
|
|
2666
|
+
_context18.next = 23;
|
|
2667
|
+
break;
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
_context18.next = 18;
|
|
2671
|
+
return ie(U, _i11);
|
|
2672
|
+
|
|
2673
|
+
case 18:
|
|
2674
|
+
_yield$ie2 = _context18.sent;
|
|
2675
|
+
_e17 = _yield$ie2.elapsed;
|
|
2676
|
+
_t19 = _yield$ie2.resolvedComponents;
|
|
2677
|
+
_n21 = _yield$ie2.errors;
|
|
2678
|
+
_m2 = _t19, _p2 = _e17, _a3.push.apply(_a3, _n21);
|
|
2679
|
+
|
|
2680
|
+
case 23:
|
|
2681
|
+
_h2 = _i11.api_key ? oe(_i11, _l4) : null;
|
|
2682
|
+
_g2 = null;
|
|
2683
|
+
|
|
2684
|
+
if (!_h2) {
|
|
2685
|
+
_context18.next = 37;
|
|
2686
|
+
break;
|
|
2687
|
+
}
|
|
2688
|
+
|
|
2689
|
+
_context18.prev = 26;
|
|
2690
|
+
_context18.next = 29;
|
|
2691
|
+
return _h2;
|
|
2692
|
+
|
|
2693
|
+
case 29:
|
|
2694
|
+
_g2 = _context18.sent;
|
|
2695
|
+
_context18.next = 37;
|
|
2696
|
+
break;
|
|
2697
|
+
|
|
2698
|
+
case 32:
|
|
2699
|
+
_context18.prev = 32;
|
|
2700
|
+
_context18.t0 = _context18["catch"](26);
|
|
2701
|
+
|
|
2702
|
+
if (!(_context18.t0 instanceof Error && "INVALID_API_KEY" === _context18.t0.message)) {
|
|
2703
|
+
_context18.next = 36;
|
|
2704
|
+
break;
|
|
2705
|
+
}
|
|
657
2706
|
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
2707
|
+
return _context18.abrupt("return", {
|
|
2708
|
+
error: [{
|
|
2709
|
+
type: "api_unauthorized",
|
|
2710
|
+
message: "Invalid API key or quota exceeded"
|
|
2711
|
+
}],
|
|
2712
|
+
components: {},
|
|
2713
|
+
info: {},
|
|
2714
|
+
version: "1.7.4",
|
|
2715
|
+
thumbmark: ""
|
|
2716
|
+
});
|
|
664
2717
|
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
2718
|
+
case 36:
|
|
2719
|
+
_a3.push({
|
|
2720
|
+
type: "api_error",
|
|
2721
|
+
message: _context18.t0 instanceof Error ? _context18.t0.message : String(_context18.t0)
|
|
2722
|
+
});
|
|
668
2723
|
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
} else if (hasFinally) {
|
|
680
|
-
if (this.prev < entry.finallyLoc) {
|
|
681
|
-
return handle(entry.finallyLoc);
|
|
2724
|
+
case 37:
|
|
2725
|
+
(null === (t = null == _g2 ? void 0 : _g2.info) || void 0 === t ? void 0 : t.timed_out) && _a3.push({
|
|
2726
|
+
type: "api_timeout",
|
|
2727
|
+
message: "API request timed out"
|
|
2728
|
+
});
|
|
2729
|
+
_w = _extends({}, _u4, _p2), _v = _i11.performance ? {
|
|
2730
|
+
elapsed: _w
|
|
2731
|
+
} : {}, _y = J((null == _g2 ? void 0 : _g2.components) || {}, _i11), _S = _extends({}, _l4, _y), _b = (null == _g2 ? void 0 : _g2.info) || {
|
|
2732
|
+
uniqueness: {
|
|
2733
|
+
score: "api only"
|
|
682
2734
|
}
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
2735
|
+
}, _E = null !== (r = null == _g2 ? void 0 : _g2.thumbmark) && void 0 !== r ? r : f(L(_S)), _M = "1.7.4";
|
|
2736
|
+
_s5 && function () {
|
|
2737
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee17(e, t, o, r, i) {
|
|
2738
|
+
var a, s, c;
|
|
2739
|
+
return runtime_1.wrap(function _callee17$(_context17) {
|
|
2740
|
+
while (1) {
|
|
2741
|
+
switch (_context17.prev = _context17.next) {
|
|
2742
|
+
case 0:
|
|
2743
|
+
if (r === void 0) {
|
|
2744
|
+
r = {};
|
|
2745
|
+
}
|
|
692
2746
|
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
}
|
|
697
|
-
}
|
|
2747
|
+
if (i === void 0) {
|
|
2748
|
+
i = [];
|
|
2749
|
+
}
|
|
698
2750
|
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
2751
|
+
s = n + "/log", c = _extends({
|
|
2752
|
+
thumbmark: e,
|
|
2753
|
+
components: t,
|
|
2754
|
+
experimental: r,
|
|
2755
|
+
version: "1.7.4",
|
|
2756
|
+
options: o,
|
|
2757
|
+
path: null === (a = null === window || void 0 === window ? void 0 : window.location) || void 0 === a ? void 0 : a.pathname
|
|
2758
|
+
}, i.length > 0 && {
|
|
2759
|
+
errors: i
|
|
2760
|
+
});
|
|
2761
|
+
sessionStorage.setItem("_tmjs_l", "1");
|
|
2762
|
+
_context17.prev = 4;
|
|
2763
|
+
_context17.next = 7;
|
|
2764
|
+
return fetch(s, {
|
|
2765
|
+
method: "POST",
|
|
2766
|
+
headers: {
|
|
2767
|
+
"Content-Type": "application/json"
|
|
2768
|
+
},
|
|
2769
|
+
body: JSON.stringify(c)
|
|
2770
|
+
});
|
|
704
2771
|
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
2772
|
+
case 7:
|
|
2773
|
+
_context17.next = 11;
|
|
2774
|
+
break;
|
|
708
2775
|
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
return ContinueSentinel;
|
|
713
|
-
}
|
|
2776
|
+
case 9:
|
|
2777
|
+
_context17.prev = 9;
|
|
2778
|
+
_context17.t0 = _context17["catch"](4);
|
|
714
2779
|
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
2780
|
+
case 11:
|
|
2781
|
+
case "end":
|
|
2782
|
+
return _context17.stop();
|
|
2783
|
+
}
|
|
2784
|
+
}
|
|
2785
|
+
}, _callee17, null, [[4, 9]]);
|
|
2786
|
+
}));
|
|
721
2787
|
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
2788
|
+
return function (_x13, _x14, _x15, _x16, _x17) {
|
|
2789
|
+
return _ref8.apply(this, arguments);
|
|
2790
|
+
};
|
|
2791
|
+
}()(_E, _S, _i11, _m2, _a3)["catch"](function () {});
|
|
2792
|
+
return _context18.abrupt("return", _extends({}, (null == _g2 ? void 0 : _g2.visitorId) && {
|
|
2793
|
+
visitorId: _g2.visitorId
|
|
2794
|
+
}, {
|
|
2795
|
+
thumbmark: _E,
|
|
2796
|
+
components: _S,
|
|
2797
|
+
info: _b,
|
|
2798
|
+
version: _M
|
|
2799
|
+
}, _v, _a3.length > 0 && {
|
|
2800
|
+
error: _a3
|
|
2801
|
+
}, Object.keys(_m2).length > 0 && _i11.experimental && {
|
|
2802
|
+
experimental: _m2
|
|
2803
|
+
}, (null == _g2 ? void 0 : _g2.requestId) && {
|
|
2804
|
+
requestId: _g2.requestId
|
|
2805
|
+
}, (null == _g2 ? void 0 : _g2.metadata) && {
|
|
2806
|
+
metadata: _g2.metadata
|
|
2807
|
+
}));
|
|
731
2808
|
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
2809
|
+
case 43:
|
|
2810
|
+
_context18.prev = 43;
|
|
2811
|
+
_context18.t1 = _context18["catch"](2);
|
|
2812
|
+
return _context18.abrupt("return", {
|
|
2813
|
+
thumbmark: "",
|
|
2814
|
+
components: {},
|
|
2815
|
+
info: {},
|
|
2816
|
+
version: "1.7.4",
|
|
2817
|
+
error: [{
|
|
2818
|
+
type: "fatal",
|
|
2819
|
+
message: _context18.t1 instanceof Error ? _context18.t1.message : String(_context18.t1)
|
|
2820
|
+
}]
|
|
2821
|
+
});
|
|
737
2822
|
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
return ContinueSentinel;
|
|
742
|
-
}
|
|
2823
|
+
case 46:
|
|
2824
|
+
case "end":
|
|
2825
|
+
return _context18.stop();
|
|
743
2826
|
}
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
2827
|
+
}
|
|
2828
|
+
}, _callee18, null, [[2, 43], [26, 32]]);
|
|
2829
|
+
}));
|
|
2830
|
+
return _re.apply(this, arguments);
|
|
2831
|
+
}
|
|
748
2832
|
|
|
749
|
-
|
|
750
|
-
|
|
2833
|
+
function ie(_x9, _x10) {
|
|
2834
|
+
return _ie.apply(this, arguments);
|
|
2835
|
+
}
|
|
751
2836
|
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
2837
|
+
function _ie() {
|
|
2838
|
+
_ie = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee19(e, t) {
|
|
2839
|
+
var n, r, i, a, s, c, u, l, d, m;
|
|
2840
|
+
return runtime_1.wrap(function _callee19$(_context19) {
|
|
2841
|
+
while (1) {
|
|
2842
|
+
switch (_context19.prev = _context19.next) {
|
|
2843
|
+
case 0:
|
|
2844
|
+
n = _extends({}, o, t);
|
|
2845
|
+
r = z(n).filter(function (e) {
|
|
2846
|
+
return !e.includes(".");
|
|
2847
|
+
});
|
|
2848
|
+
i = Object.entries(e).filter(function (_ref9) {
|
|
2849
|
+
var e = _ref9[0];
|
|
2850
|
+
var t;
|
|
2851
|
+
return !(null === (t = null == n ? void 0 : n.exclude) || void 0 === t ? void 0 : t.includes(e));
|
|
2852
|
+
}).filter(function (_ref10) {
|
|
2853
|
+
var e = _ref10[0];
|
|
2854
|
+
return !r.includes(e);
|
|
2855
|
+
}).filter(function (_ref11) {
|
|
2856
|
+
var e = _ref11[0];
|
|
2857
|
+
var t, o, r, i;
|
|
2858
|
+
return (null === (t = null == n ? void 0 : n.include) || void 0 === t ? void 0 : t.some(function (e) {
|
|
2859
|
+
return e.includes(".");
|
|
2860
|
+
})) ? null === (o = null == n ? void 0 : n.include) || void 0 === o ? void 0 : o.some(function (t) {
|
|
2861
|
+
return t.startsWith(e);
|
|
2862
|
+
}) : 0 === (null === (r = null == n ? void 0 : n.include) || void 0 === r ? void 0 : r.length) || (null === (i = null == n ? void 0 : n.include) || void 0 === i ? void 0 : i.includes(e));
|
|
2863
|
+
});
|
|
2864
|
+
a = i.map(function (_ref12) {
|
|
2865
|
+
var e = _ref12[0];
|
|
2866
|
+
return e;
|
|
2867
|
+
});
|
|
2868
|
+
s = i.map(function (_ref13) {
|
|
2869
|
+
var n = _ref13[1];
|
|
2870
|
+
return n(t);
|
|
2871
|
+
});
|
|
2872
|
+
_context19.next = 7;
|
|
2873
|
+
return function (e, t, n) {
|
|
2874
|
+
return Promise.all(e.map(function (e) {
|
|
2875
|
+
var o = performance.now();
|
|
2876
|
+
return Promise.race([e.then(function (e) {
|
|
2877
|
+
return {
|
|
2878
|
+
value: e,
|
|
2879
|
+
elapsed: performance.now() - o
|
|
2880
|
+
};
|
|
2881
|
+
})["catch"](function (e) {
|
|
2882
|
+
return {
|
|
2883
|
+
value: n,
|
|
2884
|
+
elapsed: performance.now() - o,
|
|
2885
|
+
error: e instanceof Error ? e.message : String(e)
|
|
2886
|
+
};
|
|
2887
|
+
}), (r = t, i = n, new Promise(function (e) {
|
|
2888
|
+
setTimeout(function () {
|
|
2889
|
+
return e(i);
|
|
2890
|
+
}, r);
|
|
2891
|
+
})).then(function (e) {
|
|
2892
|
+
return {
|
|
2893
|
+
value: e,
|
|
2894
|
+
elapsed: performance.now() - o,
|
|
2895
|
+
error: "timeout"
|
|
2896
|
+
};
|
|
2897
|
+
})]);
|
|
2898
|
+
var r, i;
|
|
2899
|
+
}));
|
|
2900
|
+
}(s, (null == n ? void 0 : n.timeout) || 5e3, W);
|
|
756
2901
|
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
2902
|
+
case 7:
|
|
2903
|
+
c = _context19.sent;
|
|
2904
|
+
u = {};
|
|
2905
|
+
l = {};
|
|
2906
|
+
d = [];
|
|
2907
|
+
c.forEach(function (e, t) {
|
|
2908
|
+
var n;
|
|
2909
|
+
var o = a[t];
|
|
2910
|
+
u[o] = null !== (n = e.elapsed) && void 0 !== n ? n : 0, "timeout" === e.error ? d.push({
|
|
2911
|
+
type: "component_timeout",
|
|
2912
|
+
message: "Component '" + o + "' timed out",
|
|
2913
|
+
component: o
|
|
2914
|
+
}) : e.error && d.push({
|
|
2915
|
+
type: "component_error",
|
|
2916
|
+
message: e.error,
|
|
2917
|
+
component: o
|
|
2918
|
+
}), null != e.value && (l[o] = e.value);
|
|
2919
|
+
});
|
|
2920
|
+
m = J(l, n);
|
|
2921
|
+
return _context19.abrupt("return", {
|
|
2922
|
+
elapsed: u,
|
|
2923
|
+
resolvedComponents: m,
|
|
2924
|
+
errors: d
|
|
2925
|
+
});
|
|
761
2926
|
|
|
2927
|
+
case 14:
|
|
2928
|
+
case "end":
|
|
2929
|
+
return _context19.stop();
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2932
|
+
}, _callee19);
|
|
2933
|
+
}));
|
|
2934
|
+
return _ie.apply(this, arguments);
|
|
2935
|
+
}
|
|
762
2936
|
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
iterator: values(iterable),
|
|
768
|
-
resultName: resultName,
|
|
769
|
-
nextLoc: nextLoc
|
|
770
|
-
};
|
|
2937
|
+
var ue = /*#__PURE__*/function () {
|
|
2938
|
+
function ue(e) {
|
|
2939
|
+
this.options = _extends({}, o, e);
|
|
2940
|
+
}
|
|
771
2941
|
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
2942
|
+
var _proto = ue.prototype;
|
|
2943
|
+
|
|
2944
|
+
_proto.get = /*#__PURE__*/function () {
|
|
2945
|
+
var _get = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee15(e) {
|
|
2946
|
+
return runtime_1.wrap(function _callee15$(_context15) {
|
|
2947
|
+
while (1) {
|
|
2948
|
+
switch (_context15.prev = _context15.next) {
|
|
2949
|
+
case 0:
|
|
2950
|
+
return _context15.abrupt("return", re(_extends({}, this.options, e)));
|
|
2951
|
+
|
|
2952
|
+
case 1:
|
|
2953
|
+
case "end":
|
|
2954
|
+
return _context15.stop();
|
|
2955
|
+
}
|
|
776
2956
|
}
|
|
2957
|
+
}, _callee15, this);
|
|
2958
|
+
}));
|
|
777
2959
|
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
}
|
|
781
|
-
// or not, return the runtime object so that we can declare the variable
|
|
782
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
783
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
2960
|
+
function get(_x12) {
|
|
2961
|
+
return _get.apply(this, arguments);
|
|
2962
|
+
}
|
|
784
2963
|
|
|
785
|
-
return
|
|
786
|
-
}(
|
|
787
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
788
|
-
// object. Either way, the resulting object will be used to initialize
|
|
789
|
-
// the regeneratorRuntime variable at the top of this file.
|
|
790
|
-
module.exports );
|
|
2964
|
+
return get;
|
|
2965
|
+
}();
|
|
791
2966
|
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
803
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
804
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
805
|
-
}
|
|
806
|
-
});
|
|
2967
|
+
_proto.getVersion = function getVersion() {
|
|
2968
|
+
return "1.7.4";
|
|
2969
|
+
};
|
|
2970
|
+
|
|
2971
|
+
_proto.includeComponent = function includeComponent(e, t) {
|
|
2972
|
+
H(e, t);
|
|
2973
|
+
};
|
|
2974
|
+
|
|
2975
|
+
return ue;
|
|
2976
|
+
}();
|
|
807
2977
|
|
|
808
2978
|
var transformStyle = function transformStyle(style) {
|
|
809
2979
|
return Object.keys(style).reduce(function (result, prop) {
|
|
@@ -914,40 +3084,99 @@ var getLanguage = function getLanguage() {
|
|
|
914
3084
|
return '';
|
|
915
3085
|
};
|
|
916
3086
|
|
|
3087
|
+
var safe = function safe(fn) {
|
|
3088
|
+
try {
|
|
3089
|
+
var _fn;
|
|
3090
|
+
|
|
3091
|
+
return String((_fn = fn()) != null ? _fn : '');
|
|
3092
|
+
} catch (_unused) {
|
|
3093
|
+
return '';
|
|
3094
|
+
}
|
|
3095
|
+
};
|
|
3096
|
+
|
|
917
3097
|
var getClientEnv = function getClientEnv() {
|
|
918
|
-
var env = [window.screen.colorDepth, window.screen.height, window.screen.width, new Date().getTimezoneOffset(), getLanguage()
|
|
3098
|
+
var env = [window.screen.colorDepth, window.screen.height, window.screen.width, new Date().getTimezoneOffset(), getLanguage(), safe(function () {
|
|
3099
|
+
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3100
|
+
}), safe(function () {
|
|
3101
|
+
return window.devicePixelRatio;
|
|
3102
|
+
}), safe(function () {
|
|
3103
|
+
return navigator.hardwareConcurrency;
|
|
3104
|
+
}), safe(function () {
|
|
3105
|
+
return navigator.deviceMemory;
|
|
3106
|
+
}), safe(function () {
|
|
3107
|
+
return navigator.maxTouchPoints;
|
|
3108
|
+
}), safe(function () {
|
|
3109
|
+
return navigator.platform;
|
|
3110
|
+
}), safe(function () {
|
|
3111
|
+
var _navigator$languages;
|
|
3112
|
+
|
|
3113
|
+
return (_navigator$languages = navigator.languages) == null ? void 0 : _navigator$languages.join(',');
|
|
3114
|
+
})].join('|');
|
|
919
3115
|
return window.btoa(env);
|
|
920
3116
|
};
|
|
921
|
-
var
|
|
922
|
-
|
|
3117
|
+
var thumbmark = /*#__PURE__*/new ue({
|
|
3118
|
+
stabilize: []
|
|
3119
|
+
});
|
|
3120
|
+
var getClientFingerprint = /*#__PURE__*/function () {
|
|
3121
|
+
var _ref = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee() {
|
|
3122
|
+
var _result$thumbmark;
|
|
3123
|
+
|
|
3124
|
+
var _yield$withError, result;
|
|
3125
|
+
|
|
923
3126
|
return runtime_1.wrap(function _callee$(_context) {
|
|
924
3127
|
while (1) {
|
|
925
3128
|
switch (_context.prev = _context.next) {
|
|
926
3129
|
case 0:
|
|
927
|
-
_context.
|
|
928
|
-
|
|
929
|
-
|
|
3130
|
+
_context.next = 2;
|
|
3131
|
+
return withError(thumbmark.get());
|
|
3132
|
+
|
|
3133
|
+
case 2:
|
|
3134
|
+
_yield$withError = _context.sent;
|
|
3135
|
+
result = _yield$withError[1];
|
|
3136
|
+
return _context.abrupt("return", (_result$thumbmark = result == null ? void 0 : result.thumbmark) != null ? _result$thumbmark : '');
|
|
3137
|
+
|
|
3138
|
+
case 5:
|
|
3139
|
+
case "end":
|
|
3140
|
+
return _context.stop();
|
|
3141
|
+
}
|
|
3142
|
+
}
|
|
3143
|
+
}, _callee);
|
|
3144
|
+
}));
|
|
3145
|
+
|
|
3146
|
+
return function getClientFingerprint() {
|
|
3147
|
+
return _ref.apply(this, arguments);
|
|
3148
|
+
};
|
|
3149
|
+
}();
|
|
3150
|
+
var withError = /*#__PURE__*/function () {
|
|
3151
|
+
var _ref2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(p) {
|
|
3152
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
|
3153
|
+
while (1) {
|
|
3154
|
+
switch (_context2.prev = _context2.next) {
|
|
3155
|
+
case 0:
|
|
3156
|
+
_context2.prev = 0;
|
|
3157
|
+
_context2.t0 = undefined;
|
|
3158
|
+
_context2.next = 4;
|
|
930
3159
|
return p;
|
|
931
3160
|
|
|
932
3161
|
case 4:
|
|
933
|
-
|
|
934
|
-
return
|
|
3162
|
+
_context2.t1 = _context2.sent;
|
|
3163
|
+
return _context2.abrupt("return", [_context2.t0, _context2.t1]);
|
|
935
3164
|
|
|
936
3165
|
case 8:
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
return
|
|
3166
|
+
_context2.prev = 8;
|
|
3167
|
+
_context2.t2 = _context2["catch"](0);
|
|
3168
|
+
return _context2.abrupt("return", [_context2.t2, undefined]);
|
|
940
3169
|
|
|
941
3170
|
case 11:
|
|
942
3171
|
case "end":
|
|
943
|
-
return
|
|
3172
|
+
return _context2.stop();
|
|
944
3173
|
}
|
|
945
3174
|
}
|
|
946
|
-
},
|
|
3175
|
+
}, _callee2, null, [[0, 8]]);
|
|
947
3176
|
}));
|
|
948
3177
|
|
|
949
3178
|
return function withError(_x) {
|
|
950
|
-
return
|
|
3179
|
+
return _ref2.apply(this, arguments);
|
|
951
3180
|
};
|
|
952
3181
|
}();
|
|
953
3182
|
var isMethodSupported = function isMethodSupported(config, paymentMethod) {
|
|
@@ -966,6 +3195,7 @@ var _utils = {
|
|
|
966
3195
|
stringify: stringify,
|
|
967
3196
|
fixLocalstorage: fixLocalstorage,
|
|
968
3197
|
getClientEnv: getClientEnv,
|
|
3198
|
+
getClientFingerprint: getClientFingerprint,
|
|
969
3199
|
withError: withError,
|
|
970
3200
|
isMethodSupported: isMethodSupported,
|
|
971
3201
|
validateComponentProps: validateComponentProps
|
|
@@ -1016,14 +3246,14 @@ var stageConfig = {
|
|
|
1016
3246
|
cofidisLoanUrl: "http://localhost:3013/" + version + "/inner-cofidis-loan/",
|
|
1017
3247
|
cofidisLoanButtonUrl: "http://localhost:3014/" + version + "/inner-cofidis-loan-button/",
|
|
1018
3248
|
cofidisLoanWidgetUrl: "http://localhost:3015/" + version + "/inner-cofidis-loan-widget/",
|
|
1019
|
-
apiUrl: 'https://api.monei.com/v1',
|
|
1020
|
-
secureDomain: 'https://secure.monei.com',
|
|
1021
|
-
rootDomain: 'monei.com'
|
|
3249
|
+
apiUrl: 'https://api.monei-dev.com/v1',
|
|
3250
|
+
secureDomain: 'https://secure.monei-dev.com',
|
|
3251
|
+
rootDomain: 'monei-dev.com'
|
|
1022
3252
|
},
|
|
1023
3253
|
dev: {
|
|
1024
|
-
apiUrl: 'https://api.
|
|
1025
|
-
secureDomain: 'https://secure.
|
|
1026
|
-
rootDomain: '
|
|
3254
|
+
apiUrl: 'https://api.monei-dev.com/v1',
|
|
3255
|
+
secureDomain: 'https://secure.monei-dev.com',
|
|
3256
|
+
rootDomain: 'monei-dev.com'
|
|
1027
3257
|
},
|
|
1028
3258
|
prod: {
|
|
1029
3259
|
apiUrl: 'https://api.monei.com/v1',
|
|
@@ -1123,7 +3353,7 @@ var getPaymentMethods = /*#__PURE__*/function () {
|
|
|
1123
3353
|
case 10:
|
|
1124
3354
|
query = stringify(params);
|
|
1125
3355
|
|
|
1126
|
-
if (!pmCache
|
|
3356
|
+
if (!(query in pmCache)) {
|
|
1127
3357
|
_context2.next = 13;
|
|
1128
3358
|
break;
|
|
1129
3359
|
}
|
|
@@ -1149,12 +3379,12 @@ var getPaymentMethods = /*#__PURE__*/function () {
|
|
|
1149
3379
|
}();
|
|
1150
3380
|
var createToken = /*#__PURE__*/function () {
|
|
1151
3381
|
var _ref6 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(_ref5) {
|
|
1152
|
-
var paymentMethod, paymentId, sessionId, amount, currency, accountId, body;
|
|
3382
|
+
var paymentMethod, paymentId, sessionId, amount, currency, accountId, transactionType, body;
|
|
1153
3383
|
return runtime_1.wrap(function _callee3$(_context3) {
|
|
1154
3384
|
while (1) {
|
|
1155
3385
|
switch (_context3.prev = _context3.next) {
|
|
1156
3386
|
case 0:
|
|
1157
|
-
paymentMethod = _ref5.paymentMethod, paymentId = _ref5.paymentId, sessionId = _ref5.sessionId, amount = _ref5.amount, currency = _ref5.currency, accountId = _ref5.accountId;
|
|
3387
|
+
paymentMethod = _ref5.paymentMethod, paymentId = _ref5.paymentId, sessionId = _ref5.sessionId, amount = _ref5.amount, currency = _ref5.currency, accountId = _ref5.accountId, transactionType = _ref5.transactionType;
|
|
1158
3388
|
|
|
1159
3389
|
if (!paymentId) {
|
|
1160
3390
|
_context3.next = 5;
|
|
@@ -1179,7 +3409,8 @@ var createToken = /*#__PURE__*/function () {
|
|
|
1179
3409
|
paymentMethod: paymentMethod,
|
|
1180
3410
|
sessionId: sessionId,
|
|
1181
3411
|
amount: amount,
|
|
1182
|
-
currency: currency
|
|
3412
|
+
currency: currency,
|
|
3413
|
+
transactionType: transactionType
|
|
1183
3414
|
};
|
|
1184
3415
|
_context3.next = 10;
|
|
1185
3416
|
break;
|
|
@@ -1188,15 +3419,26 @@ var createToken = /*#__PURE__*/function () {
|
|
|
1188
3419
|
throw new Error('You need to provide paymentId or accountId');
|
|
1189
3420
|
|
|
1190
3421
|
case 10:
|
|
1191
|
-
|
|
3422
|
+
_context3.t0 = request;
|
|
3423
|
+
_context3.t1 = getClientEnv();
|
|
3424
|
+
_context3.next = 14;
|
|
3425
|
+
return getClientFingerprint();
|
|
3426
|
+
|
|
3427
|
+
case 14:
|
|
3428
|
+
_context3.t2 = _context3.sent;
|
|
3429
|
+
_context3.t3 = {
|
|
3430
|
+
'X-Client-Env': _context3.t1,
|
|
3431
|
+
'X-Client-Fingerprint': _context3.t2
|
|
3432
|
+
};
|
|
3433
|
+
_context3.t4 = body;
|
|
3434
|
+
_context3.t5 = {
|
|
1192
3435
|
method: 'POST',
|
|
1193
|
-
headers:
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
}));
|
|
3436
|
+
headers: _context3.t3,
|
|
3437
|
+
body: _context3.t4
|
|
3438
|
+
};
|
|
3439
|
+
return _context3.abrupt("return", (0, _context3.t0)('/tokens', _context3.t5));
|
|
1198
3440
|
|
|
1199
|
-
case
|
|
3441
|
+
case 19:
|
|
1200
3442
|
case "end":
|
|
1201
3443
|
return _context3.stop();
|
|
1202
3444
|
}
|
|
@@ -1236,15 +3478,27 @@ var confirmPayment = /*#__PURE__*/function () {
|
|
|
1236
3478
|
switch (_context5.prev = _context5.next) {
|
|
1237
3479
|
case 0:
|
|
1238
3480
|
paymentId = _ref8.paymentId, body = /*#__PURE__*/_objectWithoutPropertiesLoose(_ref8, ["paymentId"]);
|
|
1239
|
-
|
|
3481
|
+
_context5.t0 = request;
|
|
3482
|
+
_context5.t1 = "/payments/" + paymentId + "/client-confirm";
|
|
3483
|
+
_context5.t2 = getClientEnv();
|
|
3484
|
+
_context5.next = 6;
|
|
3485
|
+
return getClientFingerprint();
|
|
3486
|
+
|
|
3487
|
+
case 6:
|
|
3488
|
+
_context5.t3 = _context5.sent;
|
|
3489
|
+
_context5.t4 = {
|
|
3490
|
+
'X-Client-Env': _context5.t2,
|
|
3491
|
+
'X-Client-Fingerprint': _context5.t3
|
|
3492
|
+
};
|
|
3493
|
+
_context5.t5 = body;
|
|
3494
|
+
_context5.t6 = {
|
|
1240
3495
|
method: 'POST',
|
|
1241
|
-
headers:
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
}));
|
|
3496
|
+
headers: _context5.t4,
|
|
3497
|
+
body: _context5.t5
|
|
3498
|
+
};
|
|
3499
|
+
return _context5.abrupt("return", (0, _context5.t0)(_context5.t1, _context5.t6));
|
|
1246
3500
|
|
|
1247
|
-
case
|
|
3501
|
+
case 11:
|
|
1248
3502
|
case "end":
|
|
1249
3503
|
return _context5.stop();
|
|
1250
3504
|
}
|
|
@@ -1264,16 +3518,28 @@ var createPayment = /*#__PURE__*/function () {
|
|
|
1264
3518
|
switch (_context6.prev = _context6.next) {
|
|
1265
3519
|
case 0:
|
|
1266
3520
|
signature = _ref10.signature, body = /*#__PURE__*/_objectWithoutPropertiesLoose(_ref10, ["signature"]);
|
|
1267
|
-
|
|
3521
|
+
_context6.t0 = request;
|
|
3522
|
+
_context6.t1 = getClientEnv();
|
|
3523
|
+
_context6.next = 5;
|
|
3524
|
+
return getClientFingerprint();
|
|
3525
|
+
|
|
3526
|
+
case 5:
|
|
3527
|
+
_context6.t2 = _context6.sent;
|
|
3528
|
+
_context6.t3 = signature;
|
|
3529
|
+
_context6.t4 = {
|
|
3530
|
+
'X-Client-Env': _context6.t1,
|
|
3531
|
+
'X-Client-Fingerprint': _context6.t2,
|
|
3532
|
+
'Client-Signature': _context6.t3
|
|
3533
|
+
};
|
|
3534
|
+
_context6.t5 = body;
|
|
3535
|
+
_context6.t6 = {
|
|
1268
3536
|
method: 'POST',
|
|
1269
|
-
headers:
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
body: body
|
|
1274
|
-
}));
|
|
3537
|
+
headers: _context6.t4,
|
|
3538
|
+
body: _context6.t5
|
|
3539
|
+
};
|
|
3540
|
+
return _context6.abrupt("return", (0, _context6.t0)('/client-payments', _context6.t6));
|
|
1275
3541
|
|
|
1276
|
-
case
|
|
3542
|
+
case 11:
|
|
1277
3543
|
case "end":
|
|
1278
3544
|
return _context6.stop();
|
|
1279
3545
|
}
|
|
@@ -15161,7 +17427,7 @@ var namespace = 'monei-paypal';
|
|
|
15161
17427
|
|
|
15162
17428
|
var onLoadPaypal = /*#__PURE__*/function () {
|
|
15163
17429
|
var _ref = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(props, state, src) {
|
|
15164
|
-
var script, defaultStyle, token;
|
|
17430
|
+
var script, defaultStyle, style, token;
|
|
15165
17431
|
return runtime_1.wrap(function _callee2$(_context2) {
|
|
15166
17432
|
while (1) {
|
|
15167
17433
|
switch (_context2.prev = _context2.next) {
|
|
@@ -15179,8 +17445,14 @@ var onLoadPaypal = /*#__PURE__*/function () {
|
|
|
15179
17445
|
layout: 'horizontal',
|
|
15180
17446
|
tagline: false
|
|
15181
17447
|
};
|
|
17448
|
+
style = _extends({}, defaultStyle, props.style);
|
|
17449
|
+
|
|
17450
|
+
if (typeof style.height === 'string') {
|
|
17451
|
+
style.height = parseInt(style.height.replace('px', ''));
|
|
17452
|
+
}
|
|
17453
|
+
|
|
15182
17454
|
props.onLoad == null ? void 0 : props.onLoad(true);
|
|
15183
|
-
_context2.next =
|
|
17455
|
+
_context2.next = 10;
|
|
15184
17456
|
return window[namespace].Buttons({
|
|
15185
17457
|
createOrder: function () {
|
|
15186
17458
|
var _createOrder = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee() {
|
|
@@ -15198,6 +17470,7 @@ var onLoadPaypal = /*#__PURE__*/function () {
|
|
|
15198
17470
|
sessionId: props.sessionId,
|
|
15199
17471
|
amount: props.amount,
|
|
15200
17472
|
currency: props.currency,
|
|
17473
|
+
transactionType: props.transactionType,
|
|
15201
17474
|
paymentMethod: {
|
|
15202
17475
|
paypal: {}
|
|
15203
17476
|
}
|
|
@@ -15246,10 +17519,10 @@ var onLoadPaypal = /*#__PURE__*/function () {
|
|
|
15246
17519
|
|
|
15247
17520
|
if (!shouldOpen) return actions.reject();
|
|
15248
17521
|
},
|
|
15249
|
-
style:
|
|
17522
|
+
style: style
|
|
15250
17523
|
}).render(state.__container);
|
|
15251
17524
|
|
|
15252
|
-
case
|
|
17525
|
+
case 10:
|
|
15253
17526
|
case "end":
|
|
15254
17527
|
return _context2.stop();
|
|
15255
17528
|
}
|
|
@@ -15277,9 +17550,6 @@ var options$2 = {
|
|
|
15277
17550
|
return undefined;
|
|
15278
17551
|
},
|
|
15279
17552
|
containerTemplate: function containerTemplate$1(params) {
|
|
15280
|
-
console.log({
|
|
15281
|
-
params: params
|
|
15282
|
-
});
|
|
15283
17553
|
params.state.__container = params.container;
|
|
15284
17554
|
|
|
15285
17555
|
if (!params.props.accountId && !params.props.paymentId) {
|
|
@@ -15289,7 +17559,6 @@ var options$2 = {
|
|
|
15289
17559
|
var container = containerTemplate(params);
|
|
15290
17560
|
|
|
15291
17561
|
params.event.on(zoid.EVENT.DESTROY, function () {
|
|
15292
|
-
console.log('destroy');
|
|
15293
17562
|
window[namespace].Buttons.instances.forEach(function (instance) {
|
|
15294
17563
|
instance.close();
|
|
15295
17564
|
});
|
|
@@ -15553,7 +17822,7 @@ var options$4 = {
|
|
|
15553
17822
|
url: config.bizumButtonUrl,
|
|
15554
17823
|
dimensions: {
|
|
15555
17824
|
width: '100%',
|
|
15556
|
-
height: '
|
|
17825
|
+
height: 'auto'
|
|
15557
17826
|
},
|
|
15558
17827
|
autoResize: {
|
|
15559
17828
|
width: false,
|
|
@@ -16505,7 +18774,7 @@ var options$c = {
|
|
|
16505
18774
|
url: config.paymentRequestUrl,
|
|
16506
18775
|
dimensions: {
|
|
16507
18776
|
width: '100%',
|
|
16508
|
-
height: '
|
|
18777
|
+
height: 'auto'
|
|
16509
18778
|
},
|
|
16510
18779
|
autoResize: {
|
|
16511
18780
|
width: false,
|