@ututrust/web-components 1.1.16 → 1.1.19
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/index.js +186 -183
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9707,8 +9707,10 @@
|
|
|
9707
9707
|
var ATTR_ENDORSEMENT_NETWORK = 'endorsement-network';
|
|
9708
9708
|
var ATTR_TRANSACTION_ID = "transaction-id"; // API BASE URLs
|
|
9709
9709
|
|
|
9710
|
-
var UTU_API_BASE_URL_PRODUCTION = "https://api.ututrust.com/
|
|
9711
|
-
var UTU_API_BASE_URL_TEST = "https://stage-api.ututrust.com/
|
|
9710
|
+
var UTU_API_BASE_URL_PRODUCTION = "https://api.ututrust.com/";
|
|
9711
|
+
var UTU_API_BASE_URL_TEST = "https://stage-api.ututrust.com/";
|
|
9712
|
+
var CORE_API_BASE = "core-api";
|
|
9713
|
+
var VIDEO_PUBLISHED_BASE = "published-video"; // API resource paths
|
|
9712
9714
|
|
|
9713
9715
|
var API_RANKING = "/ranking";
|
|
9714
9716
|
var API_FEEDBACK = "/feedback";
|
|
@@ -9721,7 +9723,7 @@
|
|
|
9721
9723
|
|
|
9722
9724
|
var LOCAL_STORAGE_KEY_UTU_IDENTITY_DATA = "utu-identity-data"; // UTT Endorsement
|
|
9723
9725
|
|
|
9724
|
-
var UTT_CONTRACT_ADDRESS = "
|
|
9726
|
+
var UTT_CONTRACT_ADDRESS = "0x155A7ec2C100108921855E612e98A50a13118777";
|
|
9725
9727
|
|
|
9726
9728
|
function e$1(e) {
|
|
9727
9729
|
this.message = e;
|
|
@@ -29444,7 +29446,7 @@
|
|
|
29444
29446
|
case 8:
|
|
29445
29447
|
address = _context.sent;
|
|
29446
29448
|
_context.next = 11;
|
|
29447
|
-
return signer.signMessage("
|
|
29449
|
+
return signer.signMessage("Sign in at UTU");
|
|
29448
29450
|
|
|
29449
29451
|
case 11:
|
|
29450
29452
|
signature = _context.sent;
|
|
@@ -29523,7 +29525,7 @@
|
|
|
29523
29525
|
switch (_context.prev = _context.next) {
|
|
29524
29526
|
case 0:
|
|
29525
29527
|
_context.next = 2;
|
|
29526
|
-
return axios.get("".concat(apiUrl).concat(API_RANKING, "?").concat(queryParams), withAuthorizationHeader(accessToken));
|
|
29528
|
+
return axios.get("".concat(apiUrl).concat(CORE_API_BASE).concat(API_RANKING, "?").concat(queryParams), withAuthorizationHeader(accessToken));
|
|
29527
29529
|
|
|
29528
29530
|
case 2:
|
|
29529
29531
|
response = _context.sent;
|
|
@@ -29553,7 +29555,7 @@
|
|
|
29553
29555
|
var targetCriteria = createEntityCriteria(targetUuid);
|
|
29554
29556
|
|
|
29555
29557
|
var sendFeedback = function sendFeedback(feedbackData) {
|
|
29556
|
-
return axios.post("".concat(apiUrl).concat(API_FEEDBACK), {
|
|
29558
|
+
return axios.post("".concat(apiUrl).concat(CORE_API_BASE).concat(API_FEEDBACK), {
|
|
29557
29559
|
sourceCriteria: sourceCriteria,
|
|
29558
29560
|
targetCriteria: targetCriteria,
|
|
29559
29561
|
transactionId: transactionId,
|
|
@@ -29565,6 +29567,7 @@
|
|
|
29565
29567
|
});
|
|
29566
29568
|
};
|
|
29567
29569
|
|
|
29570
|
+
console.log("".concat(apiUrl).concat(CORE_API_BASE).concat(API_FEEDBACK));
|
|
29568
29571
|
return {
|
|
29569
29572
|
sendFeedback: sendFeedback
|
|
29570
29573
|
};
|
|
@@ -29591,7 +29594,7 @@
|
|
|
29591
29594
|
switch (_context2.prev = _context2.next) {
|
|
29592
29595
|
case 0:
|
|
29593
29596
|
_context2.next = 2;
|
|
29594
|
-
return axios.get("".concat(apiUrl).concat(API_BADGES), withAuthorizationHeader(accessToken));
|
|
29597
|
+
return axios.get("".concat(apiUrl).concat(CORE_API_BASE).concat(API_BADGES), withAuthorizationHeader(accessToken));
|
|
29595
29598
|
|
|
29596
29599
|
case 2:
|
|
29597
29600
|
response = _context2.sent;
|
|
@@ -29638,7 +29641,7 @@
|
|
|
29638
29641
|
switch (_context3.prev = _context3.next) {
|
|
29639
29642
|
case 0:
|
|
29640
29643
|
_context3.next = 2;
|
|
29641
|
-
return axios.get("".concat(apiUrl).concat(API_FEEDBACK_SUMMARY, "?").concat(queryParams), withAuthorizationHeader(accessToken));
|
|
29644
|
+
return axios.get("".concat(apiUrl).concat(CORE_API_BASE).concat(API_FEEDBACK_SUMMARY, "?").concat(queryParams), withAuthorizationHeader(accessToken));
|
|
29642
29645
|
|
|
29643
29646
|
case 2:
|
|
29644
29647
|
response = _context3.sent;
|
|
@@ -29660,7 +29663,7 @@
|
|
|
29660
29663
|
feedbackSummary: feedbackSummary
|
|
29661
29664
|
};
|
|
29662
29665
|
}
|
|
29663
|
-
function useUploadVideoApi(source) {
|
|
29666
|
+
function useUploadVideoApi(apiUrl, source) {
|
|
29664
29667
|
var _useAuth5 = useAuth(),
|
|
29665
29668
|
accessToken = _useAuth5.accessToken;
|
|
29666
29669
|
|
|
@@ -29681,7 +29684,7 @@
|
|
|
29681
29684
|
};
|
|
29682
29685
|
var options = {
|
|
29683
29686
|
resume: false,
|
|
29684
|
-
endpoint: "http://localhost:2080/uploads",
|
|
29687
|
+
endpoint: "http://localhost:2080/uploads" ,
|
|
29685
29688
|
headers: getAuthorizationHeader(accessToken),
|
|
29686
29689
|
chunkSize: 28 * 1024,
|
|
29687
29690
|
uploadLengthDeferred: true,
|
|
@@ -29697,7 +29700,7 @@
|
|
|
29697
29700
|
});
|
|
29698
29701
|
},
|
|
29699
29702
|
onSuccess: function onSuccess() {
|
|
29700
|
-
var publishedVideoUrl = getPublishedVideoUrl(upload.url);
|
|
29703
|
+
var publishedVideoUrl = getPublishedVideoUrl(apiUrl, upload.url);
|
|
29701
29704
|
var checkVideoInterval = setInterval(function () {
|
|
29702
29705
|
axios.head(publishedVideoUrl).then(function () {
|
|
29703
29706
|
setStatus({
|
|
@@ -29726,9 +29729,10 @@
|
|
|
29726
29729
|
return status;
|
|
29727
29730
|
}
|
|
29728
29731
|
|
|
29729
|
-
function getPublishedVideoUrl(uploadUrl) {
|
|
29732
|
+
function getPublishedVideoUrl(apiUrl, uploadUrl) {
|
|
29730
29733
|
var videoId = uploadUrl.split("/").pop();
|
|
29731
|
-
|
|
29734
|
+
var publishedUrl = "".concat("http://localhost:2080/files", "/").concat(videoId) || "".concat(apiUrl).concat(VIDEO_PUBLISHED_BASE).concat(videoId);
|
|
29735
|
+
return publishedUrl;
|
|
29732
29736
|
}
|
|
29733
29737
|
|
|
29734
29738
|
function createEntityCriteria(uuid) {
|
|
@@ -32516,161 +32520,6 @@
|
|
|
32516
32520
|
}
|
|
32517
32521
|
});
|
|
32518
32522
|
|
|
32519
|
-
var String$2 = global$1.String;
|
|
32520
|
-
var TypeError$2 = global$1.TypeError;
|
|
32521
|
-
|
|
32522
|
-
var aPossiblePrototype = function (argument) {
|
|
32523
|
-
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
32524
|
-
throw TypeError$2("Can't set " + String$2(argument) + ' as a prototype');
|
|
32525
|
-
};
|
|
32526
|
-
|
|
32527
|
-
/* eslint-disable no-proto -- safe */
|
|
32528
|
-
|
|
32529
|
-
// `Object.setPrototypeOf` method
|
|
32530
|
-
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
32531
|
-
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
32532
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
32533
|
-
|
|
32534
|
-
|
|
32535
|
-
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
32536
|
-
var CORRECT_SETTER = false;
|
|
32537
|
-
var test = {};
|
|
32538
|
-
var setter;
|
|
32539
|
-
|
|
32540
|
-
try {
|
|
32541
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
32542
|
-
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
32543
|
-
setter(test, []);
|
|
32544
|
-
CORRECT_SETTER = test instanceof Array;
|
|
32545
|
-
} catch (error) {
|
|
32546
|
-
/* empty */
|
|
32547
|
-
}
|
|
32548
|
-
|
|
32549
|
-
return function setPrototypeOf(O, proto) {
|
|
32550
|
-
anObject(O);
|
|
32551
|
-
aPossiblePrototype(proto);
|
|
32552
|
-
if (CORRECT_SETTER) setter(O, proto);else O.__proto__ = proto;
|
|
32553
|
-
return O;
|
|
32554
|
-
};
|
|
32555
|
-
}() : undefined);
|
|
32556
|
-
|
|
32557
|
-
// makes subclassing work correct for wrapped built-ins
|
|
32558
|
-
|
|
32559
|
-
|
|
32560
|
-
var inheritIfRequired = function ($this, dummy, Wrapper) {
|
|
32561
|
-
var NewTarget, NewTargetPrototype;
|
|
32562
|
-
if ( // it can work only with native `setPrototypeOf`
|
|
32563
|
-
objectSetPrototypeOf && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
32564
|
-
isCallable(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$2(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype) objectSetPrototypeOf($this, NewTargetPrototype);
|
|
32565
|
-
return $this;
|
|
32566
|
-
};
|
|
32567
|
-
|
|
32568
|
-
// `thisNumberValue` abstract operation
|
|
32569
|
-
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
32570
|
-
|
|
32571
|
-
|
|
32572
|
-
var thisNumberValue = functionUncurryThis(1.0.valueOf);
|
|
32573
|
-
|
|
32574
|
-
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
32575
|
-
|
|
32576
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
32577
|
-
|
|
32578
|
-
var defineProperty$1 = objectDefineProperty.f;
|
|
32579
|
-
|
|
32580
|
-
|
|
32581
|
-
|
|
32582
|
-
var trim = stringTrim.trim;
|
|
32583
|
-
|
|
32584
|
-
var NUMBER = 'Number';
|
|
32585
|
-
var NativeNumber = global$1[NUMBER];
|
|
32586
|
-
var NumberPrototype = NativeNumber.prototype;
|
|
32587
|
-
var TypeError$1 = global$1.TypeError;
|
|
32588
|
-
var arraySlice$1 = functionUncurryThis(''.slice);
|
|
32589
|
-
var charCodeAt = functionUncurryThis(''.charCodeAt); // `ToNumeric` abstract operation
|
|
32590
|
-
// https://tc39.es/ecma262/#sec-tonumeric
|
|
32591
|
-
|
|
32592
|
-
var toNumeric = function (value) {
|
|
32593
|
-
var primValue = toPrimitive(value, 'number');
|
|
32594
|
-
return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
|
|
32595
|
-
}; // `ToNumber` abstract operation
|
|
32596
|
-
// https://tc39.es/ecma262/#sec-tonumber
|
|
32597
|
-
|
|
32598
|
-
|
|
32599
|
-
var toNumber = function (argument) {
|
|
32600
|
-
var it = toPrimitive(argument, 'number');
|
|
32601
|
-
var first, third, radix, maxCode, digits, length, index, code;
|
|
32602
|
-
if (isSymbol$1(it)) throw TypeError$1('Cannot convert a Symbol value to a number');
|
|
32603
|
-
|
|
32604
|
-
if (typeof it == 'string' && it.length > 2) {
|
|
32605
|
-
it = trim(it);
|
|
32606
|
-
first = charCodeAt(it, 0);
|
|
32607
|
-
|
|
32608
|
-
if (first === 43 || first === 45) {
|
|
32609
|
-
third = charCodeAt(it, 2);
|
|
32610
|
-
if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
|
|
32611
|
-
} else if (first === 48) {
|
|
32612
|
-
switch (charCodeAt(it, 1)) {
|
|
32613
|
-
case 66:
|
|
32614
|
-
case 98:
|
|
32615
|
-
radix = 2;
|
|
32616
|
-
maxCode = 49;
|
|
32617
|
-
break;
|
|
32618
|
-
// fast equal of /^0b[01]+$/i
|
|
32619
|
-
|
|
32620
|
-
case 79:
|
|
32621
|
-
case 111:
|
|
32622
|
-
radix = 8;
|
|
32623
|
-
maxCode = 55;
|
|
32624
|
-
break;
|
|
32625
|
-
// fast equal of /^0o[0-7]+$/i
|
|
32626
|
-
|
|
32627
|
-
default:
|
|
32628
|
-
return +it;
|
|
32629
|
-
}
|
|
32630
|
-
|
|
32631
|
-
digits = arraySlice$1(it, 2);
|
|
32632
|
-
length = digits.length;
|
|
32633
|
-
|
|
32634
|
-
for (index = 0; index < length; index++) {
|
|
32635
|
-
code = charCodeAt(digits, index); // parseInt parses a string to a first unavailable symbol
|
|
32636
|
-
// but ToNumber should return NaN if a string contains unavailable symbols
|
|
32637
|
-
|
|
32638
|
-
if (code < 48 || code > maxCode) return NaN;
|
|
32639
|
-
}
|
|
32640
|
-
|
|
32641
|
-
return parseInt(digits, radix);
|
|
32642
|
-
}
|
|
32643
|
-
}
|
|
32644
|
-
|
|
32645
|
-
return +it;
|
|
32646
|
-
}; // `Number` constructor
|
|
32647
|
-
// https://tc39.es/ecma262/#sec-number-constructor
|
|
32648
|
-
|
|
32649
|
-
|
|
32650
|
-
if (isForced_1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
|
|
32651
|
-
var NumberWrapper = function Number(value) {
|
|
32652
|
-
var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
|
|
32653
|
-
var dummy = this; // check on 1..constructor(foo) case
|
|
32654
|
-
|
|
32655
|
-
return objectIsPrototypeOf(NumberPrototype, dummy) && fails(function () {
|
|
32656
|
-
thisNumberValue(dummy);
|
|
32657
|
-
}) ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
|
|
32658
|
-
};
|
|
32659
|
-
|
|
32660
|
-
for (var keys = descriptors ? getOwnPropertyNames(NativeNumber) : ( // ES3:
|
|
32661
|
-
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + // ES2015 (in case, if modules with ES2015 Number statics required before):
|
|
32662
|
-
'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' + // ESNext
|
|
32663
|
-
'fromString,range').split(','), j = 0, key; keys.length > j; j++) {
|
|
32664
|
-
if (hasOwnProperty_1(NativeNumber, key = keys[j]) && !hasOwnProperty_1(NumberWrapper, key)) {
|
|
32665
|
-
defineProperty$1(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
|
|
32666
|
-
}
|
|
32667
|
-
}
|
|
32668
|
-
|
|
32669
|
-
NumberWrapper.prototype = NumberPrototype;
|
|
32670
|
-
NumberPrototype.constructor = NumberWrapper;
|
|
32671
|
-
redefine(global$1, NUMBER, NumberWrapper);
|
|
32672
|
-
}
|
|
32673
|
-
|
|
32674
32523
|
var abi = [
|
|
32675
32524
|
{
|
|
32676
32525
|
inputs: [
|
|
@@ -33588,7 +33437,7 @@
|
|
|
33588
33437
|
// @ts-ignore
|
|
33589
33438
|
|
|
33590
33439
|
|
|
33591
|
-
if (!((_window = window) !== null && _window !== void 0 && _window.ethereum || (_window2 = window) !== null && _window2 !== void 0 && _window2.web3) || !props[ATTR_TARGET_UUID] || !isAddress(props[ATTR_TARGET_UUID])) return null;
|
|
33440
|
+
if (!((_window = window) !== null && _window !== void 0 && _window.ethereum || (_window2 = window) !== null && _window2 !== void 0 && _window2.web3) || !props[ATTR_TARGET_UUID] || !isAddress(props[ATTR_TARGET_UUID]) || !props[ATTR_TRANSACTION_ID]) return null;
|
|
33592
33441
|
|
|
33593
33442
|
var switchNetwork = /*#__PURE__*/function () {
|
|
33594
33443
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -33639,8 +33488,8 @@
|
|
|
33639
33488
|
}();
|
|
33640
33489
|
|
|
33641
33490
|
var sendTransaction = /*#__PURE__*/function () {
|
|
33642
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(address, amount) {
|
|
33643
|
-
var web3Provider, signer,
|
|
33491
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(address, amount, transactionId) {
|
|
33492
|
+
var web3Provider, signer, contract, transaction;
|
|
33644
33493
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
33645
33494
|
while (1) {
|
|
33646
33495
|
switch (_context2.prev = _context2.next) {
|
|
@@ -33654,20 +33503,19 @@
|
|
|
33654
33503
|
web3Provider = new Web3Provider(window.ethereum);
|
|
33655
33504
|
signer = web3Provider.getSigner(); // Accounts now exposed
|
|
33656
33505
|
|
|
33657
|
-
wei = String(Number(amount) * 10e17);
|
|
33658
33506
|
contract = new Contract(UTT_CONTRACT_ADDRESS, abi, signer);
|
|
33659
|
-
_context2.next =
|
|
33660
|
-
return contract.endorse(address, String(
|
|
33507
|
+
_context2.next = 7;
|
|
33508
|
+
return contract.endorse(address, String(amount), transactionId);
|
|
33661
33509
|
|
|
33662
|
-
case
|
|
33510
|
+
case 7:
|
|
33663
33511
|
transaction = _context2.sent;
|
|
33664
|
-
_context2.next =
|
|
33512
|
+
_context2.next = 10;
|
|
33665
33513
|
return transaction.wait();
|
|
33666
33514
|
|
|
33667
|
-
case
|
|
33515
|
+
case 10:
|
|
33668
33516
|
return _context2.abrupt("return", transaction);
|
|
33669
33517
|
|
|
33670
|
-
case
|
|
33518
|
+
case 11:
|
|
33671
33519
|
case "end":
|
|
33672
33520
|
return _context2.stop();
|
|
33673
33521
|
}
|
|
@@ -33675,12 +33523,12 @@
|
|
|
33675
33523
|
}, _callee2);
|
|
33676
33524
|
}));
|
|
33677
33525
|
|
|
33678
|
-
return function sendTransaction(_x, _x2) {
|
|
33526
|
+
return function sendTransaction(_x, _x2, _x3) {
|
|
33679
33527
|
return _ref2.apply(this, arguments);
|
|
33680
33528
|
};
|
|
33681
33529
|
}();
|
|
33682
33530
|
|
|
33683
|
-
function onSubmit(
|
|
33531
|
+
function onSubmit(_x4) {
|
|
33684
33532
|
return _onSubmit.apply(this, arguments);
|
|
33685
33533
|
}
|
|
33686
33534
|
|
|
@@ -33704,7 +33552,7 @@
|
|
|
33704
33552
|
setTxError("");
|
|
33705
33553
|
_context3.prev = 4;
|
|
33706
33554
|
_context3.next = 7;
|
|
33707
|
-
return sendTransaction(props[ATTR_TARGET_UUID], amount);
|
|
33555
|
+
return sendTransaction(props[ATTR_TARGET_UUID], amount, props[ATTR_TRANSACTION_ID]);
|
|
33708
33556
|
|
|
33709
33557
|
case 7:
|
|
33710
33558
|
_context3.next = 12;
|
|
@@ -36197,9 +36045,164 @@
|
|
|
36197
36045
|
|
|
36198
36046
|
var e=0;function t(t){return "__private_"+e+++"_"+t}function i(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var r=function(e){this.value=e;},n=t("head"),o=t("end"),u=function(){function e(){Object.defineProperty(this,n,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0});}var t=e.prototype;return t.enqueue=function(e){var t=new r(e);i(this,o)[o]?(i(this,o)[o].next=t,i(this,o)[o]=t):i(this,n)[n]=i(this,o)[o]=t;},t.dequeue=function(){var e=i(this,n)[n];return i(this,n)[n]=null==e?void 0:e.next,i(this,n)[n]||(i(this,o)[o]=void 0),null==e?void 0:e.value},e}();function s(e){return {done:!1,value:e}}var h={done:!0},a=t("chunkQueue"),l=t("resolveQueue"),v=t("isInProgress"),c=t("isLocked"),d=function(){function e(){Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),this.url=null,i(this,a)[a]=new u,i(this,l)[l]=new u,i(this,v)[v]=!0,i(this,c)[c]=!1;}var t=e.prototype;return t.setUrl=function(e){this.url=e;},t.setBlobProperties=function(e){this.blobProperties=e;},t.storeChunk=function(e){i(this,v)[v]=!0;var t=i(this,l)[l].dequeue();t?t(s(e)):i(this,a)[a].enqueue(e);},t.stop=function(){i(this,v)[v]=!1;},t.reset=function(){i(this,v)[v]=!0,i(this,a)[a]=new u,i(this,l)[l]=new u,i(this,c)[c]=!1;},t.getUrl=function(){return this.url},t.getBlob=function(){},t.getReader=function(){if(i(this,c)[c])throw new Error("ReadableStorage is locked.");i(this,c)[c]=!0;var e=this;return {read:function(){var t=i(e,a)[a].dequeue();return t?Promise.resolve(s(t)):i(e,v)[v]?new Promise(function(t){return i(e,l)[l].enqueue(t)}):Promise.resolve(h)}}},e}();
|
|
36199
36047
|
|
|
36200
|
-
var css_248z$c = "@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css);\nbody {\n overflow: scroll;\n}\n\nh3 {\n text-transform: capitalize;\n font-weight: 500;\n font-size: 14px;\n}\n\n.error {\n color: #e80054;\n}\n\n:host {\n margin: 0;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 14px;\n font-weight: 300;\n line-height: 1.5;\n color: #000000;\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: #000000;\n}\n\n.utu-section-light {\n border-bottom: 1px solid #9b9898;\n background: #fdfdfd;\n}\n.utu-section-dark {\n border-bottom: 1px solid #ebe8e8;\n background: #242323;\n}\n.utu-section-no-border-light {\n background: #fdfdfd;\n}\n.utu-section-no-border-dark {\n background: #242323;\n}\n.utu-section-no-border-mid-light {\n background: #e5e5e5;\n}\n.utu-section-no-border-mid-dark {\n background: #494949;\n}\n\n.btn {\n padding: 12px;\n border: none;\n font-size: 14px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n}\n.btn-light {\n background-color: #fbc93d;\n color: #000000 !important;\n}\n.btn-dark {\n background-color: #fbc93d;\n color: #000000 !important;\n}\n.btn-round {\n color: \"white\" !important;\n}\n.btn-round-text {\n color: \"white\" !important;\n}\n\n.icon-btn {\n border: none;\n background: none;\n padding: 0;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-weight: 500;\n font-size: 14px;\n}\n.icon-btn svg {\n width: 60px;\n height: 60px;\n}\n\nbutton.p {\n color: \"white\";\n}\n\n.logo-position {\n position: absolute;\n top: -1rem;\n right: 6rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-details {\n position: absolute;\n top: -2rem;\n right: 6rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-video {\n position: absolute;\n top: 41.2rem;\n left: 21rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-player {\n position: absolute;\n bottom: -0.5rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-section {\n position: relative;\n}\n.logo-size {\n width: 3rem;\n}\n\n.text-area {\n resize: vertical;\n min-height: 8rem;\n border-radius: 10px;\n border: none;\n padding: 16px;\n font-weight: 300;\n font-size: 0.9rem;\n background-color: #fcf8e5;\n}\n\nsvg.video-icon {\n width: 1.5rem;\n height: 2.4rem;\n padding-top: 0.3rem;\n}\nsvg.video-icon-dark {\n fill: #000000;\n}\nsvg.video-icon-light {\n fill: #000000;\n}\n\n/* ----------- Large screens ----------- */\n@media only screen and (min-width: 768px) {\n .utu-section-light {\n border-bottom: 0px;\n background-color: #fcf8e5;\n }\n .utu-section-dark {\n border-bottom: 0px;\n background: #242323;\n background-color: #3d3d3c;\n }\n .utu-section-no-border-light {\n background-color: #fcf8e5;\n }\n .utu-section-no-border-dark {\n background-color: #3d3d3c;\n }\n .utu-section-no-border-mid-light {\n background-color: #fcf8e5;\n }\n .utu-section-no-border-mid-dark {\n background-color: #3d3d3c;\n }\n\n .text-area {\n background-color: #fdfdfd;\n }\n}\n.trust-video {\n left: 0;\n border: none;\n max-width: 100%;\n bottom: 1.4rem;\n position: relative;\n border-top-left-radius: 2%;\n border-top-right-radius: 2%;\n}\n.trust-video-wrapper {\n display: flex;\n align-items: center;\n}\n.trust-video-wrapper:hover .trust-video-controls {\n visibility: visible;\n opacity: 1;\n}\n.trust-video-msg {\n display: flex;\n align-items: center;\n}\n.trust-video-controls {\n position: absolute;\n bottom: 14px;\n padding-left: 36px;\n left: 14px;\n width: calc(100% - 28px);\n right: 0;\n border-radius: 10px;\n height: 4em;\n align-items: center;\n justify-content: space-between;\n visibility: hidden;\n opacity: 0;\n transition: all 0.25s ease-out;\n display: none;\n}\n.trust-video-controls.show {\n display: flex;\n}\n.trust-video-play {\n border-color: transparent;\n transition: 0.3s;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 3em;\n display: block;\n position: absolute;\n padding: 0;\n cursor: pointer;\n opacity: 1;\n background-color: #FFDD33;\n border-radius: 50%;\n font: normal normal normal 18px/1 FontAwesome;\n}\n.trust-video-play:before {\n content: \"\\f04b\";\n}\n.trust-video-play.paused:before {\n content: \"\\f04c\";\n}\n.trust-video-volume {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 2em;\n height: 1.5em;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n left: 20px;\n}\n.trust-video-volume:before {\n content: \"\\f028\";\n}\n.trust-video-volume.off:before {\n content: \"\\f026\";\n}\n.trust-video-fullscreen {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 1.5rem;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n right: 20px;\n}\n.trust-video-fullscreen:before {\n content: \"\\f065\";\n}\n\n.utu-screen-recording {\n max-height: 80rem;\n min-width: 20rem;\n width: 27rem;\n height: 43rem;\n position: relative;\n z-index: 1;\n justify-content: center;\n border-bottom-left-radius: 2%;\n border-bottom-right-radius: 2%;\n border-bottom: 13px #fbc93d solid;\n}\n\n.btn-round {\n border: none;\n margin: 5px 0;\n width: 6rem;\n height: 6rem;\n border-radius: 90px;\n border: none;\n font-size: 9px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n z-index: 1;\n}\n.btn-round-light {\n background-color: #fbc93d;\n}\n.btn-round-dark {\n background-color: #fbc93d;\n}\n.btn-round-loading {\n position: absolute;\n bottom: 2.5rem;\n}\n.btn-round-spinner-light {\n fill: #000000;\n}\n.btn-round-spinner-dark {\n fill: #000000;\n}\n.btn-round-stop {\n position: absolute;\n bottom: 2.5rem;\n}\n.btn-round-stop-light {\n fill: #000000;\n}\n.btn-round-stop-dark {\n fill: #000000;\n}\n.btn-round-text-light {\n color: #000000;\n}\n.btn-round-text-dark {\n color: #000000;\n}\n.btn-container {\n display: flex;\n justify-content: center;\n}\n.btn-stop-icon {\n width: 30px;\n height: 30px;\n border-radius: 5px;\n}\n.btn-stop-icon-light {\n background: #000000;\n}\n.btn-stop-icon-dark {\n background: #000000;\n}\n\n.video-container {\n padding-top: 4rem;\n padding-bottom: 4rem;\n}\n\n.response-message {\n height: 3rem;\n line-height: 3rem;\n width: 100%;\n}\n\n/* ----------- Large screens ----------- */\n@media only screen and (min-width: 768px) {\n .video-container {\n padding-top: 4rem;\n padding-bottom: 4rem;\n }\n}";
|
|
36048
|
+
var css_248z$c = "@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css);\nbody {\n overflow: scroll;\n}\n\nh3 {\n text-transform: capitalize;\n font-weight: 500;\n font-size: 14px;\n}\n\n.error {\n color: #e80054;\n}\n\n:host {\n margin: 0;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 14px;\n font-weight: 300;\n line-height: 1.5;\n color: #000000;\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: #000000;\n}\n\n.utu-section-light {\n border-bottom: 1px solid #9b9898;\n background: #fdfdfd;\n}\n.utu-section-dark {\n border-bottom: 1px solid #ebe8e8;\n background: #242323;\n}\n.utu-section-no-border-light {\n background: #fdfdfd;\n}\n.utu-section-no-border-dark {\n background: #242323;\n}\n.utu-section-no-border-mid-light {\n background: #e5e5e5;\n}\n.utu-section-no-border-mid-dark {\n background: #494949;\n}\n\n.btn {\n padding: 12px;\n border: none;\n font-size: 14px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n}\n.btn-light {\n background-color: #fbc93d;\n color: #000000 !important;\n}\n.btn-dark {\n background-color: #fbc93d;\n color: #000000 !important;\n}\n.btn-round {\n color: \"white\" !important;\n}\n.btn-round-text {\n color: \"white\" !important;\n}\n\n.icon-btn {\n border: none;\n background: none;\n padding: 0;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-weight: 500;\n font-size: 14px;\n}\n.icon-btn svg {\n width: 60px;\n height: 60px;\n}\n\nbutton.p {\n color: \"white\";\n}\n\n.logo-position {\n position: absolute;\n top: -1rem;\n right: 6rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-details {\n position: absolute;\n top: -2rem;\n right: 6rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-video {\n position: absolute;\n top: 41.2rem;\n left: 21rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-player {\n position: absolute;\n bottom: -0.5rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-section {\n position: relative;\n}\n.logo-size {\n width: 3rem;\n}\n\n.text-area {\n resize: vertical;\n min-height: 8rem;\n border-radius: 10px;\n border: none;\n padding: 16px;\n font-weight: 300;\n font-size: 0.9rem;\n background-color: #fcf8e5;\n}\n\nsvg.video-icon {\n width: 1.5rem;\n height: 2.4rem;\n padding-top: 0.3rem;\n}\nsvg.video-icon-dark {\n fill: #000000;\n}\nsvg.video-icon-light {\n fill: #000000;\n}\n\n/* ----------- Large screens ----------- */\n@media only screen and (min-width: 768px) {\n .utu-section-light {\n border-bottom: 0px;\n background-color: #fcf8e5;\n }\n .utu-section-dark {\n border-bottom: 0px;\n background: #242323;\n background-color: #3d3d3c;\n }\n .utu-section-no-border-light {\n background-color: #fcf8e5;\n }\n .utu-section-no-border-dark {\n background-color: #3d3d3c;\n }\n .utu-section-no-border-mid-light {\n background-color: #fcf8e5;\n }\n .utu-section-no-border-mid-dark {\n background-color: #3d3d3c;\n }\n\n .text-area {\n background-color: #fdfdfd;\n }\n}\n.trust-video {\n left: 0;\n border: none;\n max-width: 100%;\n bottom: 1.4rem;\n position: relative;\n border-top-left-radius: 2%;\n border-top-right-radius: 2%;\n}\n.trust-video-wrapper {\n display: flex;\n align-items: center;\n}\n.trust-video-wrapper:hover .trust-video-controls {\n visibility: visible;\n opacity: 1;\n}\n.trust-video-msg {\n display: flex;\n align-items: center;\n}\n.trust-video-controls {\n position: absolute;\n bottom: 14px;\n padding-left: 36px;\n left: 14px;\n width: calc(100% - 28px);\n right: 0;\n border-radius: 10px;\n height: 4em;\n align-items: center;\n justify-content: space-between;\n visibility: hidden;\n opacity: 0;\n transition: all 0.25s ease-out;\n display: none;\n}\n.trust-video-controls.show {\n display: flex;\n}\n.trust-video-play {\n border-color: transparent;\n transition: 0.3s;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 3em;\n display: block;\n position: absolute;\n padding: 0;\n cursor: pointer;\n opacity: 1;\n background-color: #FFDD33;\n border-radius: 50%;\n font: normal normal normal 18px/1 FontAwesome;\n}\n.trust-video-play:before {\n content: \"\\f04b\";\n}\n.trust-video-play.paused:before {\n content: \"\\f04c\";\n}\n.trust-video-volume {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 2em;\n height: 1.5em;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n left: 20px;\n}\n.trust-video-volume:before {\n content: \"\\f028\";\n}\n.trust-video-volume.off:before {\n content: \"\\f026\";\n}\n.trust-video-fullscreen {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 1.5rem;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n right: 20px;\n}\n.trust-video-fullscreen:before {\n content: \"\\f065\";\n}\n\n.utu-screen-recording {\n max-height: 80rem;\n min-width: 20rem;\n width: 27rem;\n height: 43rem;\n margin: 5% auto 0;\n position: relative;\n z-index: 1;\n justify-content: center;\n border-bottom-left-radius: 2%;\n border-bottom-right-radius: 2%;\n border-bottom: 13px #fbc93d solid;\n}\n\n.btn-round {\n border: none;\n margin: 5px 0;\n width: 6rem;\n height: 6rem;\n border-radius: 90px;\n border: none;\n font-size: 9px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n z-index: 1;\n}\n.btn-round-light {\n background-color: #fbc93d;\n}\n.btn-round-dark {\n background-color: #fbc93d;\n}\n.btn-round-loading {\n position: absolute;\n bottom: 2.5rem;\n}\n.btn-round-spinner-light {\n fill: #000000;\n}\n.btn-round-spinner-dark {\n fill: #000000;\n}\n.btn-round-stop {\n position: absolute;\n bottom: 2.5rem;\n}\n.btn-round-stop-light {\n fill: #000000;\n}\n.btn-round-stop-dark {\n fill: #000000;\n}\n.btn-round-text-light {\n color: #000000;\n}\n.btn-round-text-dark {\n color: #000000;\n}\n.btn-container {\n display: flex;\n justify-content: center;\n}\n.btn-stop-icon {\n width: 30px;\n height: 30px;\n border-radius: 5px;\n}\n.btn-stop-icon-light {\n background: #000000;\n}\n.btn-stop-icon-dark {\n background: #000000;\n}\n\n.video-container {\n padding-top: 4rem;\n padding-bottom: 4rem;\n}\n\n.response-message {\n height: 3rem;\n line-height: 3rem;\n width: 100%;\n}\n\n/* ----------- Large screens ----------- */\n@media only screen and (min-width: 768px) {\n .video-container {\n padding-top: 4rem;\n padding-bottom: 4rem;\n }\n}";
|
|
36201
36049
|
styleInject(css_248z$c);
|
|
36202
36050
|
|
|
36051
|
+
var String$2 = global$1.String;
|
|
36052
|
+
var TypeError$2 = global$1.TypeError;
|
|
36053
|
+
|
|
36054
|
+
var aPossiblePrototype = function (argument) {
|
|
36055
|
+
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
36056
|
+
throw TypeError$2("Can't set " + String$2(argument) + ' as a prototype');
|
|
36057
|
+
};
|
|
36058
|
+
|
|
36059
|
+
/* eslint-disable no-proto -- safe */
|
|
36060
|
+
|
|
36061
|
+
// `Object.setPrototypeOf` method
|
|
36062
|
+
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
36063
|
+
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
36064
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
36065
|
+
|
|
36066
|
+
|
|
36067
|
+
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
36068
|
+
var CORRECT_SETTER = false;
|
|
36069
|
+
var test = {};
|
|
36070
|
+
var setter;
|
|
36071
|
+
|
|
36072
|
+
try {
|
|
36073
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
36074
|
+
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
36075
|
+
setter(test, []);
|
|
36076
|
+
CORRECT_SETTER = test instanceof Array;
|
|
36077
|
+
} catch (error) {
|
|
36078
|
+
/* empty */
|
|
36079
|
+
}
|
|
36080
|
+
|
|
36081
|
+
return function setPrototypeOf(O, proto) {
|
|
36082
|
+
anObject(O);
|
|
36083
|
+
aPossiblePrototype(proto);
|
|
36084
|
+
if (CORRECT_SETTER) setter(O, proto);else O.__proto__ = proto;
|
|
36085
|
+
return O;
|
|
36086
|
+
};
|
|
36087
|
+
}() : undefined);
|
|
36088
|
+
|
|
36089
|
+
// makes subclassing work correct for wrapped built-ins
|
|
36090
|
+
|
|
36091
|
+
|
|
36092
|
+
var inheritIfRequired = function ($this, dummy, Wrapper) {
|
|
36093
|
+
var NewTarget, NewTargetPrototype;
|
|
36094
|
+
if ( // it can work only with native `setPrototypeOf`
|
|
36095
|
+
objectSetPrototypeOf && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
36096
|
+
isCallable(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$2(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype) objectSetPrototypeOf($this, NewTargetPrototype);
|
|
36097
|
+
return $this;
|
|
36098
|
+
};
|
|
36099
|
+
|
|
36100
|
+
// `thisNumberValue` abstract operation
|
|
36101
|
+
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
36102
|
+
|
|
36103
|
+
|
|
36104
|
+
var thisNumberValue = functionUncurryThis(1.0.valueOf);
|
|
36105
|
+
|
|
36106
|
+
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
36107
|
+
|
|
36108
|
+
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
36109
|
+
|
|
36110
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
36111
|
+
|
|
36112
|
+
|
|
36113
|
+
|
|
36114
|
+
var trim = stringTrim.trim;
|
|
36115
|
+
|
|
36116
|
+
var NUMBER = 'Number';
|
|
36117
|
+
var NativeNumber = global$1[NUMBER];
|
|
36118
|
+
var NumberPrototype = NativeNumber.prototype;
|
|
36119
|
+
var TypeError$1 = global$1.TypeError;
|
|
36120
|
+
var arraySlice$1 = functionUncurryThis(''.slice);
|
|
36121
|
+
var charCodeAt = functionUncurryThis(''.charCodeAt); // `ToNumeric` abstract operation
|
|
36122
|
+
// https://tc39.es/ecma262/#sec-tonumeric
|
|
36123
|
+
|
|
36124
|
+
var toNumeric = function (value) {
|
|
36125
|
+
var primValue = toPrimitive(value, 'number');
|
|
36126
|
+
return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
|
|
36127
|
+
}; // `ToNumber` abstract operation
|
|
36128
|
+
// https://tc39.es/ecma262/#sec-tonumber
|
|
36129
|
+
|
|
36130
|
+
|
|
36131
|
+
var toNumber = function (argument) {
|
|
36132
|
+
var it = toPrimitive(argument, 'number');
|
|
36133
|
+
var first, third, radix, maxCode, digits, length, index, code;
|
|
36134
|
+
if (isSymbol$1(it)) throw TypeError$1('Cannot convert a Symbol value to a number');
|
|
36135
|
+
|
|
36136
|
+
if (typeof it == 'string' && it.length > 2) {
|
|
36137
|
+
it = trim(it);
|
|
36138
|
+
first = charCodeAt(it, 0);
|
|
36139
|
+
|
|
36140
|
+
if (first === 43 || first === 45) {
|
|
36141
|
+
third = charCodeAt(it, 2);
|
|
36142
|
+
if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
|
|
36143
|
+
} else if (first === 48) {
|
|
36144
|
+
switch (charCodeAt(it, 1)) {
|
|
36145
|
+
case 66:
|
|
36146
|
+
case 98:
|
|
36147
|
+
radix = 2;
|
|
36148
|
+
maxCode = 49;
|
|
36149
|
+
break;
|
|
36150
|
+
// fast equal of /^0b[01]+$/i
|
|
36151
|
+
|
|
36152
|
+
case 79:
|
|
36153
|
+
case 111:
|
|
36154
|
+
radix = 8;
|
|
36155
|
+
maxCode = 55;
|
|
36156
|
+
break;
|
|
36157
|
+
// fast equal of /^0o[0-7]+$/i
|
|
36158
|
+
|
|
36159
|
+
default:
|
|
36160
|
+
return +it;
|
|
36161
|
+
}
|
|
36162
|
+
|
|
36163
|
+
digits = arraySlice$1(it, 2);
|
|
36164
|
+
length = digits.length;
|
|
36165
|
+
|
|
36166
|
+
for (index = 0; index < length; index++) {
|
|
36167
|
+
code = charCodeAt(digits, index); // parseInt parses a string to a first unavailable symbol
|
|
36168
|
+
// but ToNumber should return NaN if a string contains unavailable symbols
|
|
36169
|
+
|
|
36170
|
+
if (code < 48 || code > maxCode) return NaN;
|
|
36171
|
+
}
|
|
36172
|
+
|
|
36173
|
+
return parseInt(digits, radix);
|
|
36174
|
+
}
|
|
36175
|
+
}
|
|
36176
|
+
|
|
36177
|
+
return +it;
|
|
36178
|
+
}; // `Number` constructor
|
|
36179
|
+
// https://tc39.es/ecma262/#sec-number-constructor
|
|
36180
|
+
|
|
36181
|
+
|
|
36182
|
+
if (isForced_1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
|
|
36183
|
+
var NumberWrapper = function Number(value) {
|
|
36184
|
+
var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
|
|
36185
|
+
var dummy = this; // check on 1..constructor(foo) case
|
|
36186
|
+
|
|
36187
|
+
return objectIsPrototypeOf(NumberPrototype, dummy) && fails(function () {
|
|
36188
|
+
thisNumberValue(dummy);
|
|
36189
|
+
}) ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
|
|
36190
|
+
};
|
|
36191
|
+
|
|
36192
|
+
for (var keys = descriptors ? getOwnPropertyNames(NativeNumber) : ( // ES3:
|
|
36193
|
+
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + // ES2015 (in case, if modules with ES2015 Number statics required before):
|
|
36194
|
+
'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' + // ESNext
|
|
36195
|
+
'fromString,range').split(','), j = 0, key; keys.length > j; j++) {
|
|
36196
|
+
if (hasOwnProperty_1(NativeNumber, key = keys[j]) && !hasOwnProperty_1(NumberWrapper, key)) {
|
|
36197
|
+
defineProperty$1(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
|
|
36198
|
+
}
|
|
36199
|
+
}
|
|
36200
|
+
|
|
36201
|
+
NumberWrapper.prototype = NumberPrototype;
|
|
36202
|
+
NumberPrototype.constructor = NumberWrapper;
|
|
36203
|
+
redefine(global$1, NUMBER, NumberWrapper);
|
|
36204
|
+
}
|
|
36205
|
+
|
|
36203
36206
|
var RangeError$2 = global$1.RangeError; // `String.prototype.repeat` method implementation
|
|
36204
36207
|
// https://tc39.es/ecma262/#sec-string.prototype.repeat
|
|
36205
36208
|
|
|
@@ -36888,7 +36891,7 @@
|
|
|
36888
36891
|
facingMode: "user"
|
|
36889
36892
|
};
|
|
36890
36893
|
|
|
36891
|
-
var _useUploadVideoApi = useUploadVideoApi(activeReader),
|
|
36894
|
+
var _useUploadVideoApi = useUploadVideoApi(apiUrl, activeReader),
|
|
36892
36895
|
publishedVideoUrl = _useUploadVideoApi.publishedVideoUrl,
|
|
36893
36896
|
successMessage = _useUploadVideoApi.successMessage,
|
|
36894
36897
|
errorMessage = _useUploadVideoApi.errorMessage;
|