@ututrust/web-components 1.1.20 → 1.1.21
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 +562 -978
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/CHANGELOG.md +0 -23
package/dist/index.js
CHANGED
|
@@ -129,11 +129,11 @@
|
|
|
129
129
|
return classofRaw(it) == 'String' ? split$1(it, '') : Object$5(it);
|
|
130
130
|
} : Object$5;
|
|
131
131
|
|
|
132
|
-
var TypeError$
|
|
132
|
+
var TypeError$h = global$1.TypeError; // `RequireObjectCoercible` abstract operation
|
|
133
133
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
134
134
|
|
|
135
135
|
var requireObjectCoercible = function (it) {
|
|
136
|
-
if (it == undefined) throw TypeError$
|
|
136
|
+
if (it == undefined) throw TypeError$h("Can't call method on " + it);
|
|
137
137
|
return it;
|
|
138
138
|
};
|
|
139
139
|
|
|
@@ -229,11 +229,11 @@
|
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
231
|
|
|
232
|
-
var TypeError$
|
|
232
|
+
var TypeError$g = global$1.TypeError; // `Assert: IsCallable(argument) is true`
|
|
233
233
|
|
|
234
234
|
var aCallable = function (argument) {
|
|
235
235
|
if (isCallable(argument)) return argument;
|
|
236
|
-
throw TypeError$
|
|
236
|
+
throw TypeError$g(tryToString(argument) + ' is not a function');
|
|
237
237
|
};
|
|
238
238
|
|
|
239
239
|
// `GetMethod` abstract operation
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
return func == null ? undefined : aCallable(func);
|
|
246
246
|
};
|
|
247
247
|
|
|
248
|
-
var TypeError$
|
|
248
|
+
var TypeError$f = global$1.TypeError; // `OrdinaryToPrimitive` abstract operation
|
|
249
249
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
250
250
|
|
|
251
251
|
var ordinaryToPrimitive = function (input, pref) {
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
if (pref === 'string' && isCallable(fn = input.toString) && !isObject$2(val = functionCall(fn, input))) return val;
|
|
254
254
|
if (isCallable(fn = input.valueOf) && !isObject$2(val = functionCall(fn, input))) return val;
|
|
255
255
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject$2(val = functionCall(fn, input))) return val;
|
|
256
|
-
throw TypeError$
|
|
256
|
+
throw TypeError$f("Can't convert object to primitive value");
|
|
257
257
|
};
|
|
258
258
|
|
|
259
259
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
@@ -283,10 +283,10 @@
|
|
|
283
283
|
(module.exports = function (key, value) {
|
|
284
284
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
285
285
|
})('versions', []).push({
|
|
286
|
-
version: '3.
|
|
286
|
+
version: '3.20.3',
|
|
287
287
|
mode: 'global',
|
|
288
288
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
289
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
289
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE',
|
|
290
290
|
source: 'https://github.com/zloirock/core-js'
|
|
291
291
|
});
|
|
292
292
|
});
|
|
@@ -334,7 +334,7 @@
|
|
|
334
334
|
return WellKnownSymbolsStore[name];
|
|
335
335
|
};
|
|
336
336
|
|
|
337
|
-
var TypeError$
|
|
337
|
+
var TypeError$e = global$1.TypeError;
|
|
338
338
|
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); // `ToPrimitive` abstract operation
|
|
339
339
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
340
340
|
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
if (pref === undefined) pref = 'default';
|
|
348
348
|
result = functionCall(exoticToPrim, input, pref);
|
|
349
349
|
if (!isObject$2(result) || isSymbol$1(result)) return result;
|
|
350
|
-
throw TypeError$
|
|
350
|
+
throw TypeError$e("Can't convert object to primitive value");
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
if (pref === undefined) pref = 'number';
|
|
@@ -419,14 +419,14 @@
|
|
|
419
419
|
});
|
|
420
420
|
|
|
421
421
|
var String$4 = global$1.String;
|
|
422
|
-
var TypeError$
|
|
422
|
+
var TypeError$d = global$1.TypeError; // `Assert: Type(argument) is Object`
|
|
423
423
|
|
|
424
424
|
var anObject = function (argument) {
|
|
425
425
|
if (isObject$2(argument)) return argument;
|
|
426
|
-
throw TypeError$
|
|
426
|
+
throw TypeError$d(String$4(argument) + ' is not an object');
|
|
427
427
|
};
|
|
428
428
|
|
|
429
|
-
var TypeError$
|
|
429
|
+
var TypeError$c = global$1.TypeError; // eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
430
430
|
|
|
431
431
|
var $defineProperty = Object.defineProperty; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
432
432
|
|
|
@@ -464,7 +464,7 @@
|
|
|
464
464
|
} catch (error) {
|
|
465
465
|
/* empty */
|
|
466
466
|
}
|
|
467
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$
|
|
467
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$c('Accessors not supported');
|
|
468
468
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
469
469
|
return O;
|
|
470
470
|
};
|
|
@@ -502,7 +502,7 @@
|
|
|
502
502
|
var hiddenKeys$1 = {};
|
|
503
503
|
|
|
504
504
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
505
|
-
var TypeError$
|
|
505
|
+
var TypeError$b = global$1.TypeError;
|
|
506
506
|
var WeakMap$1 = global$1.WeakMap;
|
|
507
507
|
var set$2, get$1, has$8;
|
|
508
508
|
|
|
@@ -515,7 +515,7 @@
|
|
|
515
515
|
var state;
|
|
516
516
|
|
|
517
517
|
if (!isObject$2(it) || (state = get$1(it)).type !== TYPE) {
|
|
518
|
-
throw TypeError$
|
|
518
|
+
throw TypeError$b('Incompatible receiver, ' + TYPE + ' required');
|
|
519
519
|
}
|
|
520
520
|
|
|
521
521
|
return state;
|
|
@@ -529,7 +529,7 @@
|
|
|
529
529
|
var wmset = functionUncurryThis(store.set);
|
|
530
530
|
|
|
531
531
|
set$2 = function (it, metadata) {
|
|
532
|
-
if (wmhas(store, it)) throw new TypeError$
|
|
532
|
+
if (wmhas(store, it)) throw new TypeError$b(OBJECT_ALREADY_INITIALIZED);
|
|
533
533
|
metadata.facade = it;
|
|
534
534
|
wmset(store, it, metadata);
|
|
535
535
|
return metadata;
|
|
@@ -547,7 +547,7 @@
|
|
|
547
547
|
hiddenKeys$1[STATE] = true;
|
|
548
548
|
|
|
549
549
|
set$2 = function (it, metadata) {
|
|
550
|
-
if (hasOwnProperty_1(it, STATE)) throw new TypeError$
|
|
550
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$b(OBJECT_ALREADY_INITIALIZED);
|
|
551
551
|
metadata.facade = it;
|
|
552
552
|
createNonEnumerableProperty(it, STATE, metadata);
|
|
553
553
|
return metadata;
|
|
@@ -898,7 +898,7 @@
|
|
|
898
898
|
});
|
|
899
899
|
}
|
|
900
900
|
|
|
901
|
-
var n$2,l$3,u$4,t$3,o$4,r$5,f$3,e$3={},c$4=[],s$4=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function a$3(n,l){for(var u in l)n[u]=l[u];return n}function h$2(n){var l=n.parentNode;l&&l.removeChild(n);}function v$2(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n$2.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return y$1(l,f,t,o,null)}function y$1(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$4:r};return null==r&&null!=l$3.vnode&&l$3.vnode(f),f}function d$2(n){return n.children}function _(n,l){this.props=n,this.context=l;}function k$1(n,l){if(null==l)return n.__?k$1(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?k$1(n):null}function b$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return b$1(n)}}function m$1(n){(!n.__d&&(n.__d=!0)&&t$3.push(n)&&!g$1.__r++||r$5!==l$3.debounceRendering)&&((r$5=l$3.debounceRendering)||o$4)(g$1);}function g$1(){for(var n;g$1.__r=t$3.length;)n=t$3.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$3=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=a$3({},t)).__v=t.__v+1,j$3(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?k$1(t):o,t.__h),z$2(u,t),t.__e!=o&&b$1(t)));});}function w$2(n,l,u,i,t,o,r,f,s,a){var h,v,p,_,b,m,g,w=i&&i.__k||c$4,A=w.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(_=u.__k[h]=null==(_=l[h])||"boolean"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?y$1(null,_,null,null,_):Array.isArray(_)?y$1(d$2,{children:_},null,null,null):_.__b>0?y$1(_.type,_.props,_.key,null,_.__v):_)){if(_.__=u,_.__b=u.__b+1,null===(p=w[h])||p&&_.key==p.key&&_.type===p.type)w[h]=void 0;else for(v=0;v<A;v++){if((p=w[v])&&_.key==p.key&&_.type===p.type){w[v]=void 0;break}p=null;}j$3(n,_,p=p||e$3,t,o,r,f,s,a),b=_.__e,(v=_.ref)&&p.ref!=v&&(g||(g=[]),p.ref&&g.push(p.ref,null,_),g.push(v,_.__c||b,_)),null!=b?(null==m&&(m=b),"function"==typeof _.type&&_.__k===p.__k?_.__d=s=x$2(_,s,n):s=P$1(n,_,p,w,b,s),"function"==typeof u.type&&(u.__d=s)):s&&p.__e==s&&s.parentNode!=n&&(s=k$1(p));}for(u.__e=m,h=A;h--;)null!=w[h]&&("function"==typeof u.type&&null!=w[h].__e&&w[h].__e==u.__d&&(u.__d=k$1(i,h+1)),N(w[h],w[h]));if(g)for(h=0;h<g.length;h++)M$1(g[h],g[++h],g[++h]);}function x$2(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?x$2(i,l,u):P$1(u,i,i,t,i.__e,l));return l}function A$2(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){A$2(n,l);}):l.push(n)),l}function P$1(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C$1(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H$1(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H$1(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||s$4.test(l)?u:u+"px";}function H$1(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T$1:I,o):n.removeEventListener(l,o?T$1:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function I(n){this.l[n.type+!1](l$3.event?l$3.event(n):n);}function T$1(n){this.l[n.type+!0](l$3.event?l$3.event(n):n);}function j$3(n,u,i,t,o,r,f,e,c){var s,h,v,y,p,k,b,m,g,x,A,P=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(s=l$3.__b)&&s(u);try{n:if("function"==typeof P){if(m=u.props,g=(s=P.contextType)&&t[s.__c],x=s?g?g.props.value:s.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in P&&P.prototype.render?u.__c=h=new P(m,x):(u.__c=h=new _(m,x),h.constructor=P,h.render=O$1),g&&g.sub(h),h.props=m,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=P.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=a$3({},h.__s)),a$3(h.__s,P.getDerivedStateFromProps(m,h.__s))),y=h.props,p=h.state,v)null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==P.getDerivedStateFromProps&&m!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,x)||u.__v===i.__v){h.props=m,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,p,k);});}h.context=x,h.props=m,h.state=h.__s,(s=l$3.__r)&&s(u),h.__d=!1,h.__v=u,h.__P=n,s=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(t=a$3(a$3({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,p)),A=null!=s&&s.type===d$2&&null==s.key?s.props.children:s,w$2(n,Array.isArray(A)?A:[A],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L$1(i.__e,u,i,t,o,r,f,c);(s=l$3.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$3.__e(n,u,i);}}function z$2(n,u){l$3.__c&&l$3.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$3.__e(n,u.__v);}});}function L$1(l,u,i,t,o,r,f,c){var s,a,v,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(o=!0),null!=r)for(;_<r.length;_++)if((s=r[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n$2.call(l.childNodes),a=(y=i.props||e$3).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(v||a)&&(v&&(a&&v.__html==a.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C$1(l,p,y,o,c),v)u.__k=[];else if(_=u.props.children,w$2(l,Array.isArray(_)?_:[_],u,i,t,o&&"foreignObject"!==d,r,f,r?r[0]:i.__k&&k$1(i,0),c),null!=r)for(_=r.length;_--;)null!=r[_]&&h$2(r[_]);c||("value"in p&&void 0!==(_=p.value)&&(_!==l.value||"progress"===d&&!_||"option"===d&&_!==y.value)&&H$1(l,"value",_,y.value,!1),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&H$1(l,"checked",_,y.checked,!1));}return l}function M$1(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$3.__e(n,i);}}function N(n,u,i){var t,o;if(l$3.unmount&&l$3.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M$1(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$3.__e(n,u);}t.base=t.__P=null;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,"function"!=typeof n.type);i||null==n.__e||h$2(n.__e),n.__e=n.__d=void 0;}function O$1(n,l,u){return this.constructor(n,u)}function S$1(u,i,t){var o,r,f;l$3.__&&l$3.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,f=[],j$3(i,u=(!o&&t||i).__k=v$2(d$2,null,[u]),r||e$3,e$3,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n$2.call(i.childNodes):null,f,!o&&t?t:r?r.__e:i.firstChild,o),z$2(f,u);}function q$1(n,l){S$1(n,l,q$1);}function B(l,u,i){var t,o,r,f=a$3({},l.props);for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];return arguments.length>2&&(f.children=arguments.length>3?n$2.call(arguments,2):i),y$1(l.type,f,t||l.key,o||l.ref,null)}function D(n,l){var u={__c:l="__cC"+f$3++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(m$1);},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n$2=c$4.slice,l$3={__e:function(n,l){for(var u,i,t;l=l.__;)if((u=l.__c)&&!u.__)try{if((i=u.constructor)&&null!=i.getDerivedStateFromError&&(u.setState(i.getDerivedStateFromError(n)),t=u.__d),null!=u.componentDidCatch&&(u.componentDidCatch(n),t=u.__d),t)return u.__E=u}catch(l){n=l;}throw n}},u$4=0,_.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=a$3({},this.state),"function"==typeof n&&(n=n(a$3({},u),this.props)),n&&a$3(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),m$1(this));},_.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),m$1(this));},_.prototype.render=d$2,t$3=[],o$4="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g$1.__r=0,f$3=0;
|
|
901
|
+
var n$2,l$3,u$4,t$3,r$5,o$4,f$3,e$3={},c$4=[],s$4=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function a$3(n,l){for(var u in l)n[u]=l[u];return n}function h$2(n){var l=n.parentNode;l&&l.removeChild(n);}function v$2(l,u,i){var t,r,o,f={};for(o in u)"key"==o?t=u[o]:"ref"==o?r=u[o]:f[o]=u[o];if(arguments.length>2&&(f.children=arguments.length>3?n$2.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===f[o]&&(f[o]=l.defaultProps[o]);return y$1(l,f,t,r,null)}function y$1(n,i,t,r,o){var f={type:n,props:i,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++u$4:o};return null==o&&null!=l$3.vnode&&l$3.vnode(f),f}function d$2(n){return n.children}function _(n,l){this.props=n,this.context=l;}function k$1(n,l){if(null==l)return n.__?k$1(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?k$1(n):null}function b$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return b$1(n)}}function m$1(n){(!n.__d&&(n.__d=!0)&&t$3.push(n)&&!g$1.__r++||o$4!==l$3.debounceRendering)&&((o$4=l$3.debounceRendering)||r$5)(g$1);}function g$1(){for(var n;g$1.__r=t$3.length;)n=t$3.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$3=[],n.some(function(n){var l,u,i,t,r,o;n.__d&&(r=(t=(l=n).__v).__e,(o=l.__P)&&(u=[],(i=a$3({},t)).__v=t.__v+1,j$3(o,t,i,l.__n,void 0!==o.ownerSVGElement,null!=t.__h?[r]:null,u,null==r?k$1(t):r,t.__h),z$2(u,t),t.__e!=r&&b$1(t)));});}function w$2(n,l,u,i,t,r,o,f,s,a){var h,v,p,_,b,m,g,w=i&&i.__k||c$4,A=w.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(_=u.__k[h]=null==(_=l[h])||"boolean"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?y$1(null,_,null,null,_):Array.isArray(_)?y$1(d$2,{children:_},null,null,null):_.__b>0?y$1(_.type,_.props,_.key,null,_.__v):_)){if(_.__=u,_.__b=u.__b+1,null===(p=w[h])||p&&_.key==p.key&&_.type===p.type)w[h]=void 0;else for(v=0;v<A;v++){if((p=w[v])&&_.key==p.key&&_.type===p.type){w[v]=void 0;break}p=null;}j$3(n,_,p=p||e$3,t,r,o,f,s,a),b=_.__e,(v=_.ref)&&p.ref!=v&&(g||(g=[]),p.ref&&g.push(p.ref,null,_),g.push(v,_.__c||b,_)),null!=b?(null==m&&(m=b),"function"==typeof _.type&&_.__k===p.__k?_.__d=s=x$2(_,s,n):s=P$1(n,_,p,w,b,s),"function"==typeof u.type&&(u.__d=s)):s&&p.__e==s&&s.parentNode!=n&&(s=k$1(p));}for(u.__e=m,h=A;h--;)null!=w[h]&&("function"==typeof u.type&&null!=w[h].__e&&w[h].__e==u.__d&&(u.__d=k$1(i,h+1)),N(w[h],w[h]));if(g)for(h=0;h<g.length;h++)M$1(g[h],g[++h],g[++h]);}function x$2(n,l,u){for(var i,t=n.__k,r=0;t&&r<t.length;r++)(i=t[r])&&(i.__=n,l="function"==typeof i.type?x$2(i,l,u):P$1(u,i,i,t,i.__e,l));return l}function A$2(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){A$2(n,l);}):l.push(n)),l}function P$1(n,l,u,i,t,r){var o,f,e;if(void 0!==l.__d)o=l.__d,l.__d=void 0;else if(null==u||t!=r||null==t.parentNode)n:if(null==r||r.parentNode!==n)n.appendChild(t),o=null;else {for(f=r,e=0;(f=f.nextSibling)&&e<i.length;e+=2)if(f==t)break n;n.insertBefore(t,r),o=r;}return void 0!==o?o:t.nextSibling}function C$1(n,l,u,i,t){var r;for(r in u)"children"===r||"key"===r||r in l||H$1(n,r,null,u[r],i);for(r in l)t&&"function"!=typeof l[r]||"children"===r||"key"===r||"value"===r||"checked"===r||u[r]===l[r]||H$1(n,r,l[r],u[r],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||s$4.test(l)?u:u+"px";}function H$1(n,l,u,i,t){var r;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])r=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?i||n.addEventListener(l,r?T$1:I,r):n.removeEventListener(l,r?T$1:I,r);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function I(n){this.l[n.type+!1](l$3.event?l$3.event(n):n);}function T$1(n){this.l[n.type+!0](l$3.event?l$3.event(n):n);}function j$3(n,u,i,t,r,o,f,e,c){var s,h,v,y,p,k,b,m,g,x,A,P=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,o=[e]),(s=l$3.__b)&&s(u);try{n:if("function"==typeof P){if(m=u.props,g=(s=P.contextType)&&t[s.__c],x=s?g?g.props.value:s.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in P&&P.prototype.render?u.__c=h=new P(m,x):(u.__c=h=new _(m,x),h.constructor=P,h.render=O$1),g&&g.sub(h),h.props=m,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=P.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=a$3({},h.__s)),a$3(h.__s,P.getDerivedStateFromProps(m,h.__s))),y=h.props,p=h.state,v)null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==P.getDerivedStateFromProps&&m!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,x)||u.__v===i.__v){h.props=m,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,p,k);});}h.context=x,h.props=m,h.state=h.__s,(s=l$3.__r)&&s(u),h.__d=!1,h.__v=u,h.__P=n,s=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(t=a$3(a$3({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,p)),A=null!=s&&s.type===d$2&&null==s.key?s.props.children:s,w$2(n,Array.isArray(A)?A:[A],u,i,t,r,o,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==o&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L$1(i.__e,u,i,t,r,o,f,c);(s=l$3.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=o)&&(u.__e=e,u.__h=!!c,o[o.indexOf(e)]=null),l$3.__e(n,u,i);}}function z$2(n,u){l$3.__c&&l$3.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$3.__e(n,u.__v);}});}function L$1(l,u,i,t,r,o,f,c){var s,a,v,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(r=!0),null!=o)for(;_<o.length;_++)if((s=o[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,o[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),o=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(o=o&&n$2.call(l.childNodes),a=(y=i.props||e$3).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=o)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(v||a)&&(v&&(a&&v.__html==a.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C$1(l,p,y,r,c),v)u.__k=[];else if(_=u.props.children,w$2(l,Array.isArray(_)?_:[_],u,i,t,r&&"foreignObject"!==d,o,f,o?o[0]:i.__k&&k$1(i,0),c),null!=o)for(_=o.length;_--;)null!=o[_]&&h$2(o[_]);c||("value"in p&&void 0!==(_=p.value)&&(_!==y.value||_!==l.value||"progress"===d&&!_)&&H$1(l,"value",_,y.value,!1),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&H$1(l,"checked",_,y.checked,!1));}return l}function M$1(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$3.__e(n,i);}}function N(n,u,i){var t,r;if(l$3.unmount&&l$3.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M$1(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$3.__e(n,u);}t.base=t.__P=null;}if(t=n.__k)for(r=0;r<t.length;r++)t[r]&&N(t[r],u,"function"!=typeof n.type);i||null==n.__e||h$2(n.__e),n.__e=n.__d=void 0;}function O$1(n,l,u){return this.constructor(n,u)}function S$1(u,i,t){var r,o,f;l$3.__&&l$3.__(u,i),o=(r="function"==typeof t)?null:t&&t.__k||i.__k,f=[],j$3(i,u=(!r&&t||i).__k=v$2(d$2,null,[u]),o||e$3,e$3,void 0!==i.ownerSVGElement,!r&&t?[t]:o?null:i.firstChild?n$2.call(i.childNodes):null,f,!r&&t?t:o?o.__e:i.firstChild,r),z$2(f,u);}function q$1(n,l){S$1(n,l,q$1);}function B(l,u,i){var t,r,o,f=a$3({},l.props);for(o in u)"key"==o?t=u[o]:"ref"==o?r=u[o]:f[o]=u[o];return arguments.length>2&&(f.children=arguments.length>3?n$2.call(arguments,2):i),y$1(l.type,f,t||l.key,r||l.ref,null)}function D(n,l){var u={__c:l="__cC"+f$3++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(m$1);},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n$2=c$4.slice,l$3={__e:function(n,l){for(var u,i,t;l=l.__;)if((u=l.__c)&&!u.__)try{if((i=u.constructor)&&null!=i.getDerivedStateFromError&&(u.setState(i.getDerivedStateFromError(n)),t=u.__d),null!=u.componentDidCatch&&(u.componentDidCatch(n),t=u.__d),t)return u.__E=u}catch(l){n=l;}throw n}},u$4=0,_.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=a$3({},this.state),"function"==typeof n&&(n=n(a$3({},u),this.props)),n&&a$3(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),m$1(this));},_.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),m$1(this));},_.prototype.render=d$2,t$3=[],r$5="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g$1.__r=0,f$3=0;
|
|
902
902
|
|
|
903
903
|
function r$4() {
|
|
904
904
|
return (r$4 = Object.assign || function (t) {
|
|
@@ -1015,7 +1015,7 @@
|
|
|
1015
1015
|
}), customElements.define(e || t.tagName || t.displayName || t.name, r);
|
|
1016
1016
|
}
|
|
1017
1017
|
|
|
1018
|
-
var t$2,u$2,r$3,o$3=0,i$2=[],c$2=l$3.__b,f$2=l$3.__r,e$2=l$3.diffed,a$1=l$3.__c,v$1=l$3.unmount;function m(t,r){l$3.__h&&l$3.__h(u$2,t,o$3||r),o$3=0;var i=u$2.__H||(u$2.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function l$1(n){return o$3=1,p(w$1,n)}function p(n,r,o){var i=m(t$2++,2);return i.t=n,i.__c||(i.__=[o?o(r):w$1(void 0,r),function(n){var t=i.t(i.__[0],n);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}));}],i.__c=u$2),i.__}function y(r,o){var i=m(t$2++,3);!l$3.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u$2.__H.__h.push(i));}function h$1(r,o){var i=m(t$2++,4);!l$3.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u$2.__h.push(i));}function s$2(n){return o$3=5,d$1(function(){return {current:n}},[])}function d$1(n,u){var r=m(t$2++,7);return k(r.__H,u)&&(r.__=n(),r.__H=u,r.__h=n),r.__}function A$1(n,t){return o$3=8,d$1(function(){return n},t)}function x$1(){for(
|
|
1018
|
+
var t$2,u$2,r$3,o$3=0,i$2=[],c$2=l$3.__b,f$2=l$3.__r,e$2=l$3.diffed,a$1=l$3.__c,v$1=l$3.unmount;function m(t,r){l$3.__h&&l$3.__h(u$2,t,o$3||r),o$3=0;var i=u$2.__H||(u$2.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function l$1(n){return o$3=1,p(w$1,n)}function p(n,r,o){var i=m(t$2++,2);return i.t=n,i.__c||(i.__=[o?o(r):w$1(void 0,r),function(n){var t=i.t(i.__[0],n);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}));}],i.__c=u$2),i.__}function y(r,o){var i=m(t$2++,3);!l$3.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u$2.__H.__h.push(i));}function h$1(r,o){var i=m(t$2++,4);!l$3.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u$2.__h.push(i));}function s$2(n){return o$3=5,d$1(function(){return {current:n}},[])}function d$1(n,u){var r=m(t$2++,7);return k(r.__H,u)&&(r.__=n(),r.__H=u,r.__h=n),r.__}function A$1(n,t){return o$3=8,d$1(function(){return n},t)}function x$1(){var t;for(i$2.sort(function(n,t){return n.__v.__b-t.__v.__b});t=i$2.pop();)if(t.__P)try{t.__H.__h.forEach(g),t.__H.__h.forEach(j$2),t.__H.__h=[];}catch(u){t.__H.__h=[],l$3.__e(u,t.__v);}}l$3.__b=function(n){u$2=null,c$2&&c$2(n);},l$3.__r=function(n){f$2&&f$2(n),t$2=0;var r=(u$2=n.__c).__H;r&&(r.__h.forEach(g),r.__h.forEach(j$2),r.__h=[]);},l$3.diffed=function(t){e$2&&e$2(t);var o=t.__c;o&&o.__H&&o.__H.__h.length&&(1!==i$2.push(o)&&r$3===l$3.requestAnimationFrame||((r$3=l$3.requestAnimationFrame)||function(n){var t,u=function(){clearTimeout(r),b&&cancelAnimationFrame(t),setTimeout(n);},r=setTimeout(u,100);b&&(t=requestAnimationFrame(u));})(x$1)),u$2=null;},l$3.__c=function(t,u){u.some(function(t){try{t.__h.forEach(g),t.__h=t.__h.filter(function(n){return !n.__||j$2(n)});}catch(r){u.some(function(n){n.__h&&(n.__h=[]);}),u=[],l$3.__e(r,t.__v);}}),a$1&&a$1(t,u);},l$3.unmount=function(t){v$1&&v$1(t);var u,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{g(n);}catch(n){u=n;}}),u&&l$3.__e(u,r.__v));};var b="function"==typeof requestAnimationFrame;function g(n){var t=u$2,r=n.__c;"function"==typeof r&&(n.__c=void 0,r()),u$2=t;}function j$2(n){var t=u$2;n.__c=n.__(),u$2=t;}function k(n,t){return !n||n.length!==t.length||t.some(function(t,u){return t!==n[u]})}function w$1(n,t){return "function"==typeof t?t(n):t}
|
|
1019
1019
|
|
|
1020
1020
|
function ownKeys$2(object, enumerableOnly) {
|
|
1021
1021
|
var keys = Object.keys(object);
|
|
@@ -2077,7 +2077,7 @@
|
|
|
2077
2077
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
|
2078
2078
|
var MAX_SAFE_INTEGER$2 = 0x1FFFFFFFFFFFFF;
|
|
2079
2079
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
|
2080
|
-
var TypeError$
|
|
2080
|
+
var TypeError$a = global$1.TypeError; // We can't use this feature detection in V8 since it causes
|
|
2081
2081
|
// deoptimization and serious performance degradation
|
|
2082
2082
|
// https://github.com/zloirock/core-js/issues/679
|
|
2083
2083
|
|
|
@@ -2115,11 +2115,11 @@
|
|
|
2115
2115
|
|
|
2116
2116
|
if (isConcatSpreadable(E)) {
|
|
2117
2117
|
len = lengthOfArrayLike(E);
|
|
2118
|
-
if (n + len > MAX_SAFE_INTEGER$2) throw TypeError$
|
|
2118
|
+
if (n + len > MAX_SAFE_INTEGER$2) throw TypeError$a(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
2119
2119
|
|
|
2120
2120
|
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
|
2121
2121
|
} else {
|
|
2122
|
-
if (n >= MAX_SAFE_INTEGER$2) throw TypeError$
|
|
2122
|
+
if (n >= MAX_SAFE_INTEGER$2) throw TypeError$a(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
2123
2123
|
createProperty(A, n++, E);
|
|
2124
2124
|
}
|
|
2125
2125
|
}
|
|
@@ -2535,19 +2535,19 @@
|
|
|
2535
2535
|
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
2536
2536
|
};
|
|
2537
2537
|
|
|
2538
|
-
var MATCH = wellKnownSymbol('match'); // `IsRegExp` abstract operation
|
|
2538
|
+
var MATCH$1 = wellKnownSymbol('match'); // `IsRegExp` abstract operation
|
|
2539
2539
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
2540
2540
|
|
|
2541
2541
|
var isRegexp = function (it) {
|
|
2542
2542
|
var isRegExp;
|
|
2543
|
-
return isObject$2(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
|
|
2543
|
+
return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
|
|
2544
2544
|
};
|
|
2545
2545
|
|
|
2546
|
-
var TypeError$
|
|
2546
|
+
var TypeError$9 = global$1.TypeError; // `Assert: IsConstructor(argument) is true`
|
|
2547
2547
|
|
|
2548
2548
|
var aConstructor = function (argument) {
|
|
2549
2549
|
if (isConstructor(argument)) return argument;
|
|
2550
|
-
throw TypeError$
|
|
2550
|
+
throw TypeError$9(tryToString(argument) + ' is not a constructor');
|
|
2551
2551
|
};
|
|
2552
2552
|
|
|
2553
2553
|
var SPECIES$1 = wellKnownSymbol('species'); // `SpeciesConstructor` abstract operation
|
|
@@ -2607,7 +2607,7 @@
|
|
|
2607
2607
|
return result;
|
|
2608
2608
|
};
|
|
2609
2609
|
|
|
2610
|
-
var TypeError$
|
|
2610
|
+
var TypeError$8 = global$1.TypeError; // `RegExpExec` abstract operation
|
|
2611
2611
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
2612
2612
|
|
|
2613
2613
|
var regexpExecAbstract = function (R, S) {
|
|
@@ -2620,7 +2620,7 @@
|
|
|
2620
2620
|
}
|
|
2621
2621
|
|
|
2622
2622
|
if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
|
|
2623
|
-
throw TypeError$
|
|
2623
|
+
throw TypeError$8('RegExp#exec called on incompatible receiver');
|
|
2624
2624
|
};
|
|
2625
2625
|
|
|
2626
2626
|
var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y;
|
|
@@ -3958,7 +3958,13 @@
|
|
|
3958
3958
|
return config;
|
|
3959
3959
|
};
|
|
3960
3960
|
|
|
3961
|
-
var
|
|
3961
|
+
var _args = [
|
|
3962
|
+
[
|
|
3963
|
+
"axios@0.21.4",
|
|
3964
|
+
"/Users/yannick/Projects/utu/utu-trust-sdk/packages/utu-web-components"
|
|
3965
|
+
]
|
|
3966
|
+
];
|
|
3967
|
+
var _from = "axios@0.21.4";
|
|
3962
3968
|
var _id = "axios@0.21.4";
|
|
3963
3969
|
var _inBundle = false;
|
|
3964
3970
|
var _integrity = "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==";
|
|
@@ -3966,23 +3972,22 @@
|
|
|
3966
3972
|
var _phantomChildren = {
|
|
3967
3973
|
};
|
|
3968
3974
|
var _requested = {
|
|
3969
|
-
type: "
|
|
3975
|
+
type: "version",
|
|
3970
3976
|
registry: true,
|
|
3971
|
-
raw: "axios
|
|
3977
|
+
raw: "axios@0.21.4",
|
|
3972
3978
|
name: "axios",
|
|
3973
3979
|
escapedName: "axios",
|
|
3974
|
-
rawSpec: "
|
|
3980
|
+
rawSpec: "0.21.4",
|
|
3975
3981
|
saveSpec: null,
|
|
3976
|
-
fetchSpec: "
|
|
3982
|
+
fetchSpec: "0.21.4"
|
|
3977
3983
|
};
|
|
3978
3984
|
var _requiredBy = [
|
|
3979
3985
|
"/",
|
|
3980
3986
|
"/localtunnel"
|
|
3981
3987
|
];
|
|
3982
3988
|
var _resolved = "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz";
|
|
3983
|
-
var
|
|
3984
|
-
var
|
|
3985
|
-
var _where = "/home/kimiti/Desktop/work/utu-trust-sdk/packages/utu-web-components";
|
|
3989
|
+
var _spec = "0.21.4";
|
|
3990
|
+
var _where = "/Users/yannick/Projects/utu/utu-trust-sdk/packages/utu-web-components";
|
|
3986
3991
|
var author = {
|
|
3987
3992
|
name: "Matt Zabriskie"
|
|
3988
3993
|
};
|
|
@@ -3992,7 +3997,6 @@
|
|
|
3992
3997
|
var bugs = {
|
|
3993
3998
|
url: "https://github.com/axios/axios/issues"
|
|
3994
3999
|
};
|
|
3995
|
-
var bundleDependencies = false;
|
|
3996
4000
|
var bundlesize = [
|
|
3997
4001
|
{
|
|
3998
4002
|
path: "./dist/axios.min.js",
|
|
@@ -4002,7 +4006,6 @@
|
|
|
4002
4006
|
var dependencies = {
|
|
4003
4007
|
"follow-redirects": "^1.14.0"
|
|
4004
4008
|
};
|
|
4005
|
-
var deprecated = false;
|
|
4006
4009
|
var description = "Promise based HTTP client for the browser and node.js";
|
|
4007
4010
|
var devDependencies = {
|
|
4008
4011
|
coveralls: "^3.0.0",
|
|
@@ -4070,6 +4073,7 @@
|
|
|
4070
4073
|
var unpkg = "dist/axios.min.js";
|
|
4071
4074
|
var version$i = "0.21.4";
|
|
4072
4075
|
var pkg = {
|
|
4076
|
+
_args: _args,
|
|
4073
4077
|
_from: _from,
|
|
4074
4078
|
_id: _id,
|
|
4075
4079
|
_inBundle: _inBundle,
|
|
@@ -4079,16 +4083,13 @@
|
|
|
4079
4083
|
_requested: _requested,
|
|
4080
4084
|
_requiredBy: _requiredBy,
|
|
4081
4085
|
_resolved: _resolved,
|
|
4082
|
-
_shasum: _shasum,
|
|
4083
4086
|
_spec: _spec,
|
|
4084
4087
|
_where: _where,
|
|
4085
4088
|
author: author,
|
|
4086
4089
|
browser: browser,
|
|
4087
4090
|
bugs: bugs,
|
|
4088
|
-
bundleDependencies: bundleDependencies,
|
|
4089
4091
|
bundlesize: bundlesize,
|
|
4090
4092
|
dependencies: dependencies,
|
|
4091
|
-
deprecated: deprecated,
|
|
4092
4093
|
description: description,
|
|
4093
4094
|
devDependencies: devDependencies,
|
|
4094
4095
|
homepage: homepage,
|
|
@@ -7040,24 +7041,21 @@
|
|
|
7040
7041
|
parse: parse$1
|
|
7041
7042
|
};
|
|
7042
7043
|
|
|
7043
|
-
var
|
|
7044
|
-
CRHTLF = /[\n\r\t]/g,
|
|
7045
|
-
slashes = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//,
|
|
7046
|
-
port = /:\d+$/,
|
|
7044
|
+
var slashes = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//,
|
|
7047
7045
|
protocolre = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,
|
|
7048
|
-
windowsDriveLetter = /^[a-zA-Z]
|
|
7046
|
+
windowsDriveLetter = /^[a-zA-Z]:/,
|
|
7047
|
+
whitespace$1 = '[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]',
|
|
7048
|
+
left = new RegExp('^' + whitespace$1 + '+');
|
|
7049
7049
|
/**
|
|
7050
|
-
*
|
|
7050
|
+
* Trim a given string.
|
|
7051
7051
|
*
|
|
7052
|
-
* @param {
|
|
7053
|
-
* @returns {String} A new string representing `str` stripped of control
|
|
7054
|
-
* characters and whitespace from its beginning.
|
|
7052
|
+
* @param {String} str String to trim.
|
|
7055
7053
|
* @public
|
|
7056
7054
|
*/
|
|
7057
7055
|
|
|
7058
7056
|
|
|
7059
7057
|
function trimLeft(str) {
|
|
7060
|
-
return (str ? str : '').toString().replace(
|
|
7058
|
+
return (str ? str : '').toString().replace(left, '');
|
|
7061
7059
|
}
|
|
7062
7060
|
/**
|
|
7063
7061
|
* These are the parse rules for the URL parser, it informs the parser
|
|
@@ -7081,7 +7079,7 @@
|
|
|
7081
7079
|
}, ['/', 'pathname'], // Extract from the back.
|
|
7082
7080
|
['@', 'auth', 1], // Extract from the front.
|
|
7083
7081
|
[NaN, 'host', undefined, 1, 1], // Set left over value.
|
|
7084
|
-
[/:(\d
|
|
7082
|
+
[/:(\d+)$/, 'port', undefined, 1], // RegExp the back.
|
|
7085
7083
|
[NaN, 'hostname', undefined, 1, 1] // Set left over.
|
|
7086
7084
|
];
|
|
7087
7085
|
/**
|
|
@@ -7170,7 +7168,6 @@
|
|
|
7170
7168
|
|
|
7171
7169
|
function extractProtocol(address, location) {
|
|
7172
7170
|
address = trimLeft(address);
|
|
7173
|
-
address = address.replace(CRHTLF, '');
|
|
7174
7171
|
location = location || {};
|
|
7175
7172
|
var match = protocolre.exec(address);
|
|
7176
7173
|
var protocol = match[1] ? match[1].toLowerCase() : '';
|
|
@@ -7270,7 +7267,6 @@
|
|
|
7270
7267
|
|
|
7271
7268
|
function Url(address, location, parser) {
|
|
7272
7269
|
address = trimLeft(address);
|
|
7273
|
-
address = address.replace(CRHTLF, '');
|
|
7274
7270
|
|
|
7275
7271
|
if (!(this instanceof Url)) {
|
|
7276
7272
|
return new Url(address, location, parser);
|
|
@@ -7334,9 +7330,7 @@
|
|
|
7334
7330
|
if (parse !== parse) {
|
|
7335
7331
|
url[key] = address;
|
|
7336
7332
|
} else if ('string' === typeof parse) {
|
|
7337
|
-
index =
|
|
7338
|
-
|
|
7339
|
-
if (~index) {
|
|
7333
|
+
if (~(index = address.indexOf(parse))) {
|
|
7340
7334
|
if ('number' === typeof instruction[2]) {
|
|
7341
7335
|
url[key] = address.slice(0, index);
|
|
7342
7336
|
address = address.slice(index + instruction[2]);
|
|
@@ -7395,18 +7389,9 @@
|
|
|
7395
7389
|
url.username = url.password = '';
|
|
7396
7390
|
|
|
7397
7391
|
if (url.auth) {
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
url.username = url.auth.slice(0, index);
|
|
7402
|
-
url.username = encodeURIComponent(decodeURIComponent(url.username));
|
|
7403
|
-
url.password = url.auth.slice(index + 1);
|
|
7404
|
-
url.password = encodeURIComponent(decodeURIComponent(url.password));
|
|
7405
|
-
} else {
|
|
7406
|
-
url.username = encodeURIComponent(decodeURIComponent(url.auth));
|
|
7407
|
-
}
|
|
7408
|
-
|
|
7409
|
-
url.auth = url.password ? url.username + ':' + url.password : url.username;
|
|
7392
|
+
instruction = url.auth.split(':');
|
|
7393
|
+
url.username = instruction[0];
|
|
7394
|
+
url.password = instruction[1] || '';
|
|
7410
7395
|
}
|
|
7411
7396
|
|
|
7412
7397
|
url.origin = url.protocol !== 'file:' && isSpecial(url.protocol) && url.host ? url.protocol + '//' + url.host : 'null'; //
|
|
@@ -7463,7 +7448,7 @@
|
|
|
7463
7448
|
case 'host':
|
|
7464
7449
|
url[part] = value;
|
|
7465
7450
|
|
|
7466
|
-
if (
|
|
7451
|
+
if (/:\d+$/.test(value)) {
|
|
7467
7452
|
value = value.split(':');
|
|
7468
7453
|
url.port = value.pop();
|
|
7469
7454
|
url.hostname = value.join(':');
|
|
@@ -7496,17 +7481,9 @@
|
|
|
7496
7481
|
break;
|
|
7497
7482
|
|
|
7498
7483
|
case 'auth':
|
|
7499
|
-
var
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
url.username = value.slice(0, index);
|
|
7503
|
-
url.username = encodeURIComponent(decodeURIComponent(url.username));
|
|
7504
|
-
url.password = value.slice(index + 1);
|
|
7505
|
-
url.password = encodeURIComponent(decodeURIComponent(url.password));
|
|
7506
|
-
} else {
|
|
7507
|
-
url.username = encodeURIComponent(decodeURIComponent(value));
|
|
7508
|
-
}
|
|
7509
|
-
|
|
7484
|
+
var splits = value.split(':');
|
|
7485
|
+
url.username = splits[0];
|
|
7486
|
+
url.password = splits.length === 2 ? splits[1] : '';
|
|
7510
7487
|
}
|
|
7511
7488
|
|
|
7512
7489
|
for (var i = 0; i < rules.length; i++) {
|
|
@@ -7532,7 +7509,6 @@
|
|
|
7532
7509
|
if (!stringify || 'function' !== typeof stringify) stringify = querystringify_1.stringify;
|
|
7533
7510
|
var query,
|
|
7534
7511
|
url = this,
|
|
7535
|
-
host = url.host,
|
|
7536
7512
|
protocol = url.protocol;
|
|
7537
7513
|
if (protocol && protocol.charAt(protocol.length - 1) !== ':') protocol += ':';
|
|
7538
7514
|
var result = protocol + (url.protocol && url.slashes || isSpecial(url.protocol) ? '//' : '');
|
|
@@ -7544,24 +7520,9 @@
|
|
|
7544
7520
|
} else if (url.password) {
|
|
7545
7521
|
result += ':' + url.password;
|
|
7546
7522
|
result += '@';
|
|
7547
|
-
} else if (url.protocol !== 'file:' && isSpecial(url.protocol) && !host && url.pathname !== '/') {
|
|
7548
|
-
//
|
|
7549
|
-
// Add back the empty userinfo, otherwise the original invalid URL
|
|
7550
|
-
// might be transformed into a valid one with `url.pathname` as host.
|
|
7551
|
-
//
|
|
7552
|
-
result += '@';
|
|
7553
|
-
} //
|
|
7554
|
-
// Trailing colon is removed from `url.host` when it is parsed. If it still
|
|
7555
|
-
// ends with a colon, then add back the trailing colon that was removed. This
|
|
7556
|
-
// prevents an invalid URL from being transformed into a valid one.
|
|
7557
|
-
//
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
if (host[host.length - 1] === ':' || port.test(url.hostname) && !url.port) {
|
|
7561
|
-
host += ':';
|
|
7562
7523
|
}
|
|
7563
7524
|
|
|
7564
|
-
result += host + url.pathname;
|
|
7525
|
+
result += url.host + url.pathname;
|
|
7565
7526
|
query = 'object' === typeof url.query ? stringify(url.query) : url.query;
|
|
7566
7527
|
if (query) result += '?' !== query.charAt(0) ? '?' + query : query;
|
|
7567
7528
|
if (url.hash) result += url.hash;
|
|
@@ -7598,7 +7559,7 @@
|
|
|
7598
7559
|
return _typeof$1(obj);
|
|
7599
7560
|
}
|
|
7600
7561
|
|
|
7601
|
-
function _classCallCheck$
|
|
7562
|
+
function _classCallCheck$7(instance, Constructor) {
|
|
7602
7563
|
if (!(instance instanceof Constructor)) {
|
|
7603
7564
|
throw new TypeError("Cannot call a class as a function");
|
|
7604
7565
|
}
|
|
@@ -7620,13 +7581,11 @@
|
|
|
7620
7581
|
}
|
|
7621
7582
|
|
|
7622
7583
|
function _createSuper$1(Derived) {
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
return function _createSuperInternal() {
|
|
7584
|
+
return function () {
|
|
7626
7585
|
var Super = _getPrototypeOf$1(Derived),
|
|
7627
7586
|
result;
|
|
7628
7587
|
|
|
7629
|
-
if (
|
|
7588
|
+
if (_isNativeReflectConstruct$1()) {
|
|
7630
7589
|
var NewTarget = _getPrototypeOf$1(this).constructor;
|
|
7631
7590
|
|
|
7632
7591
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
@@ -7711,7 +7670,7 @@
|
|
|
7711
7670
|
if (typeof Proxy === "function") return true;
|
|
7712
7671
|
|
|
7713
7672
|
try {
|
|
7714
|
-
|
|
7673
|
+
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
|
7715
7674
|
return true;
|
|
7716
7675
|
} catch (e) {
|
|
7717
7676
|
return false;
|
|
@@ -7750,7 +7709,7 @@
|
|
|
7750
7709
|
var req = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
7751
7710
|
var res = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
7752
7711
|
|
|
7753
|
-
_classCallCheck$
|
|
7712
|
+
_classCallCheck$7(this, DetailedError);
|
|
7754
7713
|
|
|
7755
7714
|
_this = _super.call(this, message);
|
|
7756
7715
|
_this.originalRequest = req;
|
|
@@ -7796,8 +7755,8 @@
|
|
|
7796
7755
|
*/
|
|
7797
7756
|
function uuid() {
|
|
7798
7757
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
7799
|
-
var r = Math.random() * 16 | 0
|
|
7800
|
-
|
|
7758
|
+
var r = Math.random() * 16 | 0,
|
|
7759
|
+
v = c == 'x' ? r : r & 0x3 | 0x8;
|
|
7801
7760
|
return v.toString(16);
|
|
7802
7761
|
});
|
|
7803
7762
|
}
|
|
@@ -7851,13 +7810,13 @@
|
|
|
7851
7810
|
return obj;
|
|
7852
7811
|
}
|
|
7853
7812
|
|
|
7854
|
-
function _classCallCheck$
|
|
7813
|
+
function _classCallCheck$6(instance, Constructor) {
|
|
7855
7814
|
if (!(instance instanceof Constructor)) {
|
|
7856
7815
|
throw new TypeError("Cannot call a class as a function");
|
|
7857
7816
|
}
|
|
7858
7817
|
}
|
|
7859
7818
|
|
|
7860
|
-
function _defineProperties$
|
|
7819
|
+
function _defineProperties$5(target, props) {
|
|
7861
7820
|
for (var i = 0; i < props.length; i++) {
|
|
7862
7821
|
var descriptor = props[i];
|
|
7863
7822
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -7867,9 +7826,9 @@
|
|
|
7867
7826
|
}
|
|
7868
7827
|
}
|
|
7869
7828
|
|
|
7870
|
-
function _createClass$
|
|
7871
|
-
if (protoProps) _defineProperties$
|
|
7872
|
-
if (staticProps) _defineProperties$
|
|
7829
|
+
function _createClass$6(Constructor, protoProps, staticProps) {
|
|
7830
|
+
if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
|
|
7831
|
+
if (staticProps) _defineProperties$5(Constructor, staticProps);
|
|
7873
7832
|
return Constructor;
|
|
7874
7833
|
}
|
|
7875
7834
|
var defaultOptions$1 = {
|
|
@@ -7903,12 +7862,10 @@
|
|
|
7903
7862
|
|
|
7904
7863
|
var BaseUpload = /*#__PURE__*/function () {
|
|
7905
7864
|
function BaseUpload(file, options) {
|
|
7906
|
-
_classCallCheck$
|
|
7865
|
+
_classCallCheck$6(this, BaseUpload); // Warn about removed options from previous versions
|
|
7907
7866
|
|
|
7908
7867
|
|
|
7909
|
-
this.options = options; //
|
|
7910
|
-
|
|
7911
|
-
this.options.chunkSize = +this.options.chunkSize; // The storage module used to store URLs
|
|
7868
|
+
this.options = options; // The storage module used to store URLs
|
|
7912
7869
|
|
|
7913
7870
|
this._urlStorage = this.options.urlStorage; // The underlying File/Blob object
|
|
7914
7871
|
|
|
@@ -7956,7 +7913,7 @@
|
|
|
7956
7913
|
*/
|
|
7957
7914
|
|
|
7958
7915
|
|
|
7959
|
-
_createClass$
|
|
7916
|
+
_createClass$6(BaseUpload, [{
|
|
7960
7917
|
key: "findPreviousUploads",
|
|
7961
7918
|
value: function findPreviousUploads() {
|
|
7962
7919
|
var _this = this;
|
|
@@ -8059,7 +8016,7 @@
|
|
|
8059
8016
|
var value = _ref.value;
|
|
8060
8017
|
return new Promise(function (resolve, reject) {
|
|
8061
8018
|
// Merge with the user supplied options but overwrite some values.
|
|
8062
|
-
var options = _objectSpread$1(
|
|
8019
|
+
var options = _objectSpread$1({}, _this3.options, {
|
|
8063
8020
|
// If available, the partial upload should be resumed from a previous URL.
|
|
8064
8021
|
uploadUrl: part.uploadUrl || null,
|
|
8065
8022
|
// We take manually care of resuming for partial uploads, so they should
|
|
@@ -8070,7 +8027,7 @@
|
|
|
8070
8027
|
parallelUploads: 1,
|
|
8071
8028
|
metadata: {},
|
|
8072
8029
|
// Add the header to indicate the this is a partial upload.
|
|
8073
|
-
headers: _objectSpread$1(
|
|
8030
|
+
headers: _objectSpread$1({}, _this3.options.headers, {
|
|
8074
8031
|
'Upload-Concat': 'partial'
|
|
8075
8032
|
}),
|
|
8076
8033
|
// Reject or resolve the promise if the upload errors or completes.
|
|
@@ -8168,7 +8125,7 @@
|
|
|
8168
8125
|
this._size = this._source.size;
|
|
8169
8126
|
|
|
8170
8127
|
if (this._size == null) {
|
|
8171
|
-
this._emitError(new Error("tus: cannot automatically derive upload's size from input
|
|
8128
|
+
this._emitError(new Error("tus: cannot automatically derive upload's size from input and must be specified manually using the `uploadSize` option"));
|
|
8172
8129
|
|
|
8173
8130
|
return;
|
|
8174
8131
|
}
|
|
@@ -8189,7 +8146,7 @@
|
|
|
8189
8146
|
|
|
8190
8147
|
|
|
8191
8148
|
if (this.options.uploadUrl != null) {
|
|
8192
|
-
log$1("Resuming upload from provided URL: ".concat(this.options.
|
|
8149
|
+
log$1("Resuming upload from provided URL: ".concat(this.options.url));
|
|
8193
8150
|
this.url = this.options.uploadUrl;
|
|
8194
8151
|
|
|
8195
8152
|
this._resumeUpload();
|
|
@@ -8770,7 +8727,7 @@
|
|
|
8770
8727
|
var delay = options.retryDelays[0];
|
|
8771
8728
|
var remainingDelays = options.retryDelays.slice(1);
|
|
8772
8729
|
|
|
8773
|
-
var newOptions = _objectSpread$1(
|
|
8730
|
+
var newOptions = _objectSpread$1({}, options, {
|
|
8774
8731
|
retryDelays: remainingDelays
|
|
8775
8732
|
});
|
|
8776
8733
|
|
|
@@ -8943,13 +8900,13 @@
|
|
|
8943
8900
|
|
|
8944
8901
|
BaseUpload.defaultOptions = defaultOptions$1;
|
|
8945
8902
|
|
|
8946
|
-
function _classCallCheck$
|
|
8903
|
+
function _classCallCheck$5(instance, Constructor) {
|
|
8947
8904
|
if (!(instance instanceof Constructor)) {
|
|
8948
8905
|
throw new TypeError("Cannot call a class as a function");
|
|
8949
8906
|
}
|
|
8950
8907
|
}
|
|
8951
8908
|
|
|
8952
|
-
function _defineProperties$
|
|
8909
|
+
function _defineProperties$4(target, props) {
|
|
8953
8910
|
for (var i = 0; i < props.length; i++) {
|
|
8954
8911
|
var descriptor = props[i];
|
|
8955
8912
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8959,9 +8916,9 @@
|
|
|
8959
8916
|
}
|
|
8960
8917
|
}
|
|
8961
8918
|
|
|
8962
|
-
function _createClass$
|
|
8963
|
-
if (protoProps) _defineProperties$
|
|
8964
|
-
if (staticProps) _defineProperties$
|
|
8919
|
+
function _createClass$5(Constructor, protoProps, staticProps) {
|
|
8920
|
+
if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
|
|
8921
|
+
if (staticProps) _defineProperties$4(Constructor, staticProps);
|
|
8965
8922
|
return Constructor;
|
|
8966
8923
|
}
|
|
8967
8924
|
/* eslint no-unused-vars: "off" */
|
|
@@ -8969,10 +8926,10 @@
|
|
|
8969
8926
|
|
|
8970
8927
|
var NoopUrlStorage = /*#__PURE__*/function () {
|
|
8971
8928
|
function NoopUrlStorage() {
|
|
8972
|
-
_classCallCheck$
|
|
8929
|
+
_classCallCheck$5(this, NoopUrlStorage);
|
|
8973
8930
|
}
|
|
8974
8931
|
|
|
8975
|
-
_createClass$
|
|
8932
|
+
_createClass$5(NoopUrlStorage, [{
|
|
8976
8933
|
key: "listAllUploads",
|
|
8977
8934
|
value: function listAllUploads() {
|
|
8978
8935
|
return Promise.resolve([]);
|
|
@@ -8997,13 +8954,13 @@
|
|
|
8997
8954
|
return NoopUrlStorage;
|
|
8998
8955
|
}();
|
|
8999
8956
|
|
|
9000
|
-
function _classCallCheck$
|
|
8957
|
+
function _classCallCheck$4(instance, Constructor) {
|
|
9001
8958
|
if (!(instance instanceof Constructor)) {
|
|
9002
8959
|
throw new TypeError("Cannot call a class as a function");
|
|
9003
8960
|
}
|
|
9004
8961
|
}
|
|
9005
8962
|
|
|
9006
|
-
function _defineProperties$
|
|
8963
|
+
function _defineProperties$3(target, props) {
|
|
9007
8964
|
for (var i = 0; i < props.length; i++) {
|
|
9008
8965
|
var descriptor = props[i];
|
|
9009
8966
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9013,9 +8970,9 @@
|
|
|
9013
8970
|
}
|
|
9014
8971
|
}
|
|
9015
8972
|
|
|
9016
|
-
function _createClass$
|
|
9017
|
-
if (protoProps) _defineProperties$
|
|
9018
|
-
if (staticProps) _defineProperties$
|
|
8973
|
+
function _createClass$4(Constructor, protoProps, staticProps) {
|
|
8974
|
+
if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
|
|
8975
|
+
if (staticProps) _defineProperties$3(Constructor, staticProps);
|
|
9019
8976
|
return Constructor;
|
|
9020
8977
|
}
|
|
9021
8978
|
/* global window, localStorage */
|
|
@@ -9043,10 +9000,10 @@
|
|
|
9043
9000
|
var canStoreURLs = hasStorage;
|
|
9044
9001
|
var WebStorageUrlStorage = /*#__PURE__*/function () {
|
|
9045
9002
|
function WebStorageUrlStorage() {
|
|
9046
|
-
_classCallCheck$
|
|
9003
|
+
_classCallCheck$4(this, WebStorageUrlStorage);
|
|
9047
9004
|
}
|
|
9048
9005
|
|
|
9049
|
-
_createClass$
|
|
9006
|
+
_createClass$4(WebStorageUrlStorage, [{
|
|
9050
9007
|
key: "findAllUploads",
|
|
9051
9008
|
value: function findAllUploads() {
|
|
9052
9009
|
var results = this._findEntries('tus::');
|
|
@@ -9100,13 +9057,13 @@
|
|
|
9100
9057
|
return WebStorageUrlStorage;
|
|
9101
9058
|
}();
|
|
9102
9059
|
|
|
9103
|
-
function _classCallCheck$
|
|
9060
|
+
function _classCallCheck$3(instance, Constructor) {
|
|
9104
9061
|
if (!(instance instanceof Constructor)) {
|
|
9105
9062
|
throw new TypeError("Cannot call a class as a function");
|
|
9106
9063
|
}
|
|
9107
9064
|
}
|
|
9108
9065
|
|
|
9109
|
-
function _defineProperties$
|
|
9066
|
+
function _defineProperties$2(target, props) {
|
|
9110
9067
|
for (var i = 0; i < props.length; i++) {
|
|
9111
9068
|
var descriptor = props[i];
|
|
9112
9069
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9116,20 +9073,20 @@
|
|
|
9116
9073
|
}
|
|
9117
9074
|
}
|
|
9118
9075
|
|
|
9119
|
-
function _createClass$
|
|
9120
|
-
if (protoProps) _defineProperties$
|
|
9121
|
-
if (staticProps) _defineProperties$
|
|
9076
|
+
function _createClass$3(Constructor, protoProps, staticProps) {
|
|
9077
|
+
if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
|
|
9078
|
+
if (staticProps) _defineProperties$2(Constructor, staticProps);
|
|
9122
9079
|
return Constructor;
|
|
9123
9080
|
}
|
|
9124
|
-
/*
|
|
9081
|
+
/* global window */
|
|
9125
9082
|
|
|
9126
9083
|
|
|
9127
9084
|
var XHRHttpStack = /*#__PURE__*/function () {
|
|
9128
9085
|
function XHRHttpStack() {
|
|
9129
|
-
_classCallCheck$
|
|
9086
|
+
_classCallCheck$3(this, XHRHttpStack);
|
|
9130
9087
|
}
|
|
9131
9088
|
|
|
9132
|
-
_createClass$
|
|
9089
|
+
_createClass$3(XHRHttpStack, [{
|
|
9133
9090
|
key: "createRequest",
|
|
9134
9091
|
value: function createRequest(method, url) {
|
|
9135
9092
|
return new Request(method, url);
|
|
@@ -9146,7 +9103,7 @@
|
|
|
9146
9103
|
|
|
9147
9104
|
var Request = /*#__PURE__*/function () {
|
|
9148
9105
|
function Request(method, url) {
|
|
9149
|
-
_classCallCheck$
|
|
9106
|
+
_classCallCheck$3(this, Request);
|
|
9150
9107
|
|
|
9151
9108
|
this._xhr = new XMLHttpRequest();
|
|
9152
9109
|
|
|
@@ -9157,7 +9114,7 @@
|
|
|
9157
9114
|
this._headers = {};
|
|
9158
9115
|
}
|
|
9159
9116
|
|
|
9160
|
-
_createClass$
|
|
9117
|
+
_createClass$3(Request, [{
|
|
9161
9118
|
key: "getMethod",
|
|
9162
9119
|
value: function getMethod() {
|
|
9163
9120
|
return this._method;
|
|
@@ -9232,12 +9189,12 @@
|
|
|
9232
9189
|
|
|
9233
9190
|
var Response = /*#__PURE__*/function () {
|
|
9234
9191
|
function Response(xhr) {
|
|
9235
|
-
_classCallCheck$
|
|
9192
|
+
_classCallCheck$3(this, Response);
|
|
9236
9193
|
|
|
9237
9194
|
this._xhr = xhr;
|
|
9238
9195
|
}
|
|
9239
9196
|
|
|
9240
|
-
_createClass$
|
|
9197
|
+
_createClass$3(Response, [{
|
|
9241
9198
|
key: "getStatus",
|
|
9242
9199
|
value: function getStatus() {
|
|
9243
9200
|
return this._xhr.status;
|
|
@@ -9318,13 +9275,13 @@
|
|
|
9318
9275
|
});
|
|
9319
9276
|
}
|
|
9320
9277
|
|
|
9321
|
-
function _classCallCheck$
|
|
9278
|
+
function _classCallCheck$2(instance, Constructor) {
|
|
9322
9279
|
if (!(instance instanceof Constructor)) {
|
|
9323
9280
|
throw new TypeError("Cannot call a class as a function");
|
|
9324
9281
|
}
|
|
9325
9282
|
}
|
|
9326
9283
|
|
|
9327
|
-
function _defineProperties$
|
|
9284
|
+
function _defineProperties$1(target, props) {
|
|
9328
9285
|
for (var i = 0; i < props.length; i++) {
|
|
9329
9286
|
var descriptor = props[i];
|
|
9330
9287
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9334,22 +9291,22 @@
|
|
|
9334
9291
|
}
|
|
9335
9292
|
}
|
|
9336
9293
|
|
|
9337
|
-
function _createClass$
|
|
9338
|
-
if (protoProps) _defineProperties$
|
|
9339
|
-
if (staticProps) _defineProperties$
|
|
9294
|
+
function _createClass$2(Constructor, protoProps, staticProps) {
|
|
9295
|
+
if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
|
|
9296
|
+
if (staticProps) _defineProperties$1(Constructor, staticProps);
|
|
9340
9297
|
return Constructor;
|
|
9341
9298
|
}
|
|
9342
9299
|
|
|
9343
9300
|
var FileSource = /*#__PURE__*/function () {
|
|
9344
9301
|
// Make this.size a method
|
|
9345
9302
|
function FileSource(file) {
|
|
9346
|
-
_classCallCheck$
|
|
9303
|
+
_classCallCheck$2(this, FileSource);
|
|
9347
9304
|
|
|
9348
9305
|
this._file = file;
|
|
9349
9306
|
this.size = file.size;
|
|
9350
9307
|
}
|
|
9351
9308
|
|
|
9352
|
-
_createClass$
|
|
9309
|
+
_createClass$2(FileSource, [{
|
|
9353
9310
|
key: "slice",
|
|
9354
9311
|
value: function slice(start, end) {
|
|
9355
9312
|
// In Apache Cordova applications, a File must be resolved using
|
|
@@ -9374,65 +9331,9 @@
|
|
|
9374
9331
|
return FileSource;
|
|
9375
9332
|
}();
|
|
9376
9333
|
|
|
9377
|
-
function _classCallCheck$3(instance, Constructor) {
|
|
9378
|
-
if (!(instance instanceof Constructor)) {
|
|
9379
|
-
throw new TypeError("Cannot call a class as a function");
|
|
9380
|
-
}
|
|
9381
|
-
}
|
|
9382
|
-
|
|
9383
|
-
function _defineProperties$2(target, props) {
|
|
9384
|
-
for (var i = 0; i < props.length; i++) {
|
|
9385
|
-
var descriptor = props[i];
|
|
9386
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
9387
|
-
descriptor.configurable = true;
|
|
9388
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
9389
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9390
|
-
}
|
|
9391
|
-
}
|
|
9392
|
-
|
|
9393
|
-
function _createClass$3(Constructor, protoProps, staticProps) {
|
|
9394
|
-
if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
|
|
9395
|
-
if (staticProps) _defineProperties$2(Constructor, staticProps);
|
|
9396
|
-
return Constructor;
|
|
9397
|
-
}
|
|
9398
|
-
|
|
9399
|
-
function len(blobOrArray) {
|
|
9400
|
-
if (blobOrArray === undefined) return 0;
|
|
9401
|
-
if (blobOrArray.size !== undefined) return blobOrArray.size;
|
|
9402
|
-
return blobOrArray.length;
|
|
9403
|
-
}
|
|
9404
|
-
/*
|
|
9405
|
-
Typed arrays and blobs don't have a concat method.
|
|
9406
|
-
This function helps StreamSource accumulate data to reach chunkSize.
|
|
9407
|
-
*/
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
function concat$2(a, b) {
|
|
9411
|
-
if (a.concat) {
|
|
9412
|
-
// Is `a` an Array?
|
|
9413
|
-
return a.concat(b);
|
|
9414
|
-
}
|
|
9415
|
-
|
|
9416
|
-
if (a instanceof Blob) {
|
|
9417
|
-
return new Blob([a, b], {
|
|
9418
|
-
type: a.type
|
|
9419
|
-
});
|
|
9420
|
-
}
|
|
9421
|
-
|
|
9422
|
-
if (a.set) {
|
|
9423
|
-
// Is `a` a typed array?
|
|
9424
|
-
var c = new a.constructor(a.length + b.length);
|
|
9425
|
-
c.set(a);
|
|
9426
|
-
c.set(b, a.length);
|
|
9427
|
-
return c;
|
|
9428
|
-
}
|
|
9429
|
-
|
|
9430
|
-
throw new Error('Unknown data type');
|
|
9431
|
-
}
|
|
9432
|
-
|
|
9433
9334
|
var StreamSource = /*#__PURE__*/function () {
|
|
9434
9335
|
function StreamSource(reader, chunkSize) {
|
|
9435
|
-
_classCallCheck$
|
|
9336
|
+
_classCallCheck$2(this, StreamSource);
|
|
9436
9337
|
|
|
9437
9338
|
this._chunkSize = chunkSize;
|
|
9438
9339
|
this._buffer = undefined;
|
|
@@ -9441,7 +9342,7 @@
|
|
|
9441
9342
|
this._done = false;
|
|
9442
9343
|
}
|
|
9443
9344
|
|
|
9444
|
-
_createClass$
|
|
9345
|
+
_createClass$2(StreamSource, [{
|
|
9445
9346
|
key: "slice",
|
|
9446
9347
|
value: function slice(start, end) {
|
|
9447
9348
|
if (start < this._bufferOffset) {
|
|
@@ -9516,26 +9417,38 @@
|
|
|
9516
9417
|
return StreamSource;
|
|
9517
9418
|
}();
|
|
9518
9419
|
|
|
9519
|
-
function
|
|
9520
|
-
if (
|
|
9521
|
-
|
|
9522
|
-
|
|
9420
|
+
function len(blobOrArray) {
|
|
9421
|
+
if (blobOrArray === undefined) return 0;
|
|
9422
|
+
if (blobOrArray.size !== undefined) return blobOrArray.size;
|
|
9423
|
+
return blobOrArray.length;
|
|
9523
9424
|
}
|
|
9425
|
+
/*
|
|
9426
|
+
Typed arrays and blobs don't have a concat method.
|
|
9427
|
+
This function helps StreamSource accumulate data to reach chunkSize.
|
|
9428
|
+
*/
|
|
9524
9429
|
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
9531
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9430
|
+
|
|
9431
|
+
function concat$2(a, b) {
|
|
9432
|
+
if (a.concat) {
|
|
9433
|
+
// Is `a` an Array?
|
|
9434
|
+
return a.concat(b);
|
|
9532
9435
|
}
|
|
9533
|
-
}
|
|
9534
9436
|
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9437
|
+
if (a instanceof Blob) {
|
|
9438
|
+
return new Blob([a, b], {
|
|
9439
|
+
type: a.type
|
|
9440
|
+
});
|
|
9441
|
+
}
|
|
9442
|
+
|
|
9443
|
+
if (a.set) {
|
|
9444
|
+
// Is `a` a typed array?
|
|
9445
|
+
var c = new a.constructor(a.length + b.length);
|
|
9446
|
+
c.set(a);
|
|
9447
|
+
c.set(b, a.length);
|
|
9448
|
+
return c;
|
|
9449
|
+
}
|
|
9450
|
+
|
|
9451
|
+
throw new Error('Unknown data type');
|
|
9539
9452
|
}
|
|
9540
9453
|
|
|
9541
9454
|
var FileReader$1 = /*#__PURE__*/function () {
|
|
@@ -9685,13 +9598,11 @@
|
|
|
9685
9598
|
}
|
|
9686
9599
|
|
|
9687
9600
|
function _createSuper(Derived) {
|
|
9688
|
-
|
|
9689
|
-
|
|
9690
|
-
return function _createSuperInternal() {
|
|
9601
|
+
return function () {
|
|
9691
9602
|
var Super = _getPrototypeOf(Derived),
|
|
9692
9603
|
result;
|
|
9693
9604
|
|
|
9694
|
-
if (
|
|
9605
|
+
if (_isNativeReflectConstruct()) {
|
|
9695
9606
|
var NewTarget = _getPrototypeOf(this).constructor;
|
|
9696
9607
|
|
|
9697
9608
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
@@ -9725,7 +9636,7 @@
|
|
|
9725
9636
|
if (typeof Proxy === "function") return true;
|
|
9726
9637
|
|
|
9727
9638
|
try {
|
|
9728
|
-
|
|
9639
|
+
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
|
9729
9640
|
return true;
|
|
9730
9641
|
} catch (e) {
|
|
9731
9642
|
return false;
|
|
@@ -9788,7 +9699,7 @@
|
|
|
9788
9699
|
return obj;
|
|
9789
9700
|
}
|
|
9790
9701
|
|
|
9791
|
-
var defaultOptions = _objectSpread(
|
|
9702
|
+
var defaultOptions = _objectSpread({}, BaseUpload.defaultOptions, {
|
|
9792
9703
|
httpStack: new XHRHttpStack(),
|
|
9793
9704
|
fileReader: new FileReader$1(),
|
|
9794
9705
|
urlStorage: canStoreURLs ? new WebStorageUrlStorage() : new NoopUrlStorage(),
|
|
@@ -9806,14 +9717,14 @@
|
|
|
9806
9717
|
|
|
9807
9718
|
_classCallCheck$1(this, Upload);
|
|
9808
9719
|
|
|
9809
|
-
options = _objectSpread(
|
|
9720
|
+
options = _objectSpread({}, defaultOptions, {}, options);
|
|
9810
9721
|
return _super.call(this, file, options);
|
|
9811
9722
|
}
|
|
9812
9723
|
|
|
9813
9724
|
_createClass$1(Upload, null, [{
|
|
9814
9725
|
key: "terminate",
|
|
9815
9726
|
value: function terminate(url, options, cb) {
|
|
9816
|
-
options = _objectSpread(
|
|
9727
|
+
options = _objectSpread({}, defaultOptions, {}, options);
|
|
9817
9728
|
return BaseUpload.terminate(url, options, cb);
|
|
9818
9729
|
}
|
|
9819
9730
|
}]);
|
|
@@ -9843,6 +9754,7 @@
|
|
|
9843
9754
|
var UTU_API_BASE_URL_PRODUCTION = "https://api.ututrust.com/";
|
|
9844
9755
|
var UTU_API_BASE_URL_TEST = "https://stage-api.ututrust.com/";
|
|
9845
9756
|
var CORE_API_BASE = "core-api";
|
|
9757
|
+
var UPLOADER_API_BASE = "uploader-api";
|
|
9846
9758
|
var VIDEO_PUBLISHED_BASE = "published-video"; // API resource paths
|
|
9847
9759
|
|
|
9848
9760
|
var API_RANKING = "/ranking";
|
|
@@ -13394,7 +13306,7 @@
|
|
|
13394
13306
|
})(module, commonjsGlobal);
|
|
13395
13307
|
});
|
|
13396
13308
|
|
|
13397
|
-
const version$h = "logger/5.
|
|
13309
|
+
const version$h = "logger/5.5.0";
|
|
13398
13310
|
|
|
13399
13311
|
let _permanentCensorErrors = false;
|
|
13400
13312
|
let _censorErrors = false;
|
|
@@ -13600,48 +13512,6 @@
|
|
|
13600
13512
|
messageDetails.push(`code=${code}`);
|
|
13601
13513
|
messageDetails.push(`version=${this.version}`);
|
|
13602
13514
|
const reason = message;
|
|
13603
|
-
let url = "";
|
|
13604
|
-
|
|
13605
|
-
switch (code) {
|
|
13606
|
-
case ErrorCode.NUMERIC_FAULT:
|
|
13607
|
-
{
|
|
13608
|
-
url = "NUMERIC_FAULT";
|
|
13609
|
-
const fault = message;
|
|
13610
|
-
|
|
13611
|
-
switch (fault) {
|
|
13612
|
-
case "overflow":
|
|
13613
|
-
case "underflow":
|
|
13614
|
-
case "division-by-zero":
|
|
13615
|
-
url += "-" + fault;
|
|
13616
|
-
break;
|
|
13617
|
-
|
|
13618
|
-
case "negative-power":
|
|
13619
|
-
case "negative-width":
|
|
13620
|
-
url += "-unsupported";
|
|
13621
|
-
break;
|
|
13622
|
-
|
|
13623
|
-
case "unbound-bitwise-result":
|
|
13624
|
-
url += "-unbound-result";
|
|
13625
|
-
break;
|
|
13626
|
-
}
|
|
13627
|
-
|
|
13628
|
-
break;
|
|
13629
|
-
}
|
|
13630
|
-
|
|
13631
|
-
case ErrorCode.CALL_EXCEPTION:
|
|
13632
|
-
case ErrorCode.INSUFFICIENT_FUNDS:
|
|
13633
|
-
case ErrorCode.MISSING_NEW:
|
|
13634
|
-
case ErrorCode.NONCE_EXPIRED:
|
|
13635
|
-
case ErrorCode.REPLACEMENT_UNDERPRICED:
|
|
13636
|
-
case ErrorCode.TRANSACTION_REPLACED:
|
|
13637
|
-
case ErrorCode.UNPREDICTABLE_GAS_LIMIT:
|
|
13638
|
-
url = code;
|
|
13639
|
-
break;
|
|
13640
|
-
}
|
|
13641
|
-
|
|
13642
|
-
if (url) {
|
|
13643
|
-
message += " [ See: https:/\/links.ethers.org/v5-errors-" + url + " ]";
|
|
13644
|
-
}
|
|
13645
13515
|
|
|
13646
13516
|
if (messageDetails.length) {
|
|
13647
13517
|
message += " (" + messageDetails.join(", ") + ")";
|
|
@@ -13811,7 +13681,7 @@
|
|
|
13811
13681
|
Logger.errors = ErrorCode;
|
|
13812
13682
|
Logger.levels = LogLevel;
|
|
13813
13683
|
|
|
13814
|
-
const version$g = "bytes/5.
|
|
13684
|
+
const version$g = "bytes/5.5.0";
|
|
13815
13685
|
|
|
13816
13686
|
const logger$n = new Logger(version$g); ///////////////////////////////
|
|
13817
13687
|
|
|
@@ -14140,28 +14010,20 @@
|
|
|
14140
14010
|
s: "0x",
|
|
14141
14011
|
_vs: "0x",
|
|
14142
14012
|
recoveryParam: 0,
|
|
14143
|
-
v: 0
|
|
14144
|
-
yParityAndS: "0x",
|
|
14145
|
-
compact: "0x"
|
|
14013
|
+
v: 0
|
|
14146
14014
|
};
|
|
14147
14015
|
|
|
14148
14016
|
if (isBytesLike(signature)) {
|
|
14149
|
-
|
|
14150
|
-
|
|
14151
|
-
if (bytes.length === 64) {
|
|
14152
|
-
// EIP-2098; pull the v from the top bit of s and clear it
|
|
14153
|
-
result.v = 27 + (bytes[32] >> 7);
|
|
14154
|
-
bytes[32] &= 0x7f;
|
|
14155
|
-
result.r = hexlify(bytes.slice(0, 32));
|
|
14156
|
-
result.s = hexlify(bytes.slice(32, 64));
|
|
14157
|
-
} else if (bytes.length === 65) {
|
|
14158
|
-
result.r = hexlify(bytes.slice(0, 32));
|
|
14159
|
-
result.s = hexlify(bytes.slice(32, 64));
|
|
14160
|
-
result.v = bytes[64];
|
|
14161
|
-
} else {
|
|
14162
|
-
logger$n.throwArgumentError("invalid signature string", "signature", signature);
|
|
14163
|
-
} // Allow a recid to be used as the v
|
|
14017
|
+
const bytes = arrayify(signature);
|
|
14164
14018
|
|
|
14019
|
+
if (bytes.length !== 65) {
|
|
14020
|
+
logger$n.throwArgumentError("invalid signature string; must be 65 bytes", "signature", signature);
|
|
14021
|
+
} // Get the r, s and v
|
|
14022
|
+
|
|
14023
|
+
|
|
14024
|
+
result.r = hexlify(bytes.slice(0, 32));
|
|
14025
|
+
result.s = hexlify(bytes.slice(32, 64));
|
|
14026
|
+
result.v = bytes[64]; // Allow a recid to be used as the v
|
|
14165
14027
|
|
|
14166
14028
|
if (result.v < 27) {
|
|
14167
14029
|
if (result.v === 0 || result.v === 1) {
|
|
@@ -14271,12 +14133,10 @@
|
|
|
14271
14133
|
}
|
|
14272
14134
|
}
|
|
14273
14135
|
|
|
14274
|
-
result.yParityAndS = result._vs;
|
|
14275
|
-
result.compact = result.r + result.yParityAndS.substring(2);
|
|
14276
14136
|
return result;
|
|
14277
14137
|
}
|
|
14278
14138
|
|
|
14279
|
-
const version$f = "bignumber/5.
|
|
14139
|
+
const version$f = "bignumber/5.5.0";
|
|
14280
14140
|
|
|
14281
14141
|
var BN = bn.BN;
|
|
14282
14142
|
const logger$m = new Logger(version$f);
|
|
@@ -14327,7 +14187,7 @@
|
|
|
14327
14187
|
const o = BigNumber.from(other);
|
|
14328
14188
|
|
|
14329
14189
|
if (o.isZero()) {
|
|
14330
|
-
throwFault("division
|
|
14190
|
+
throwFault("division by zero", "div");
|
|
14331
14191
|
}
|
|
14332
14192
|
|
|
14333
14193
|
return toBigNumber(toBN(this).div(toBN(other)));
|
|
@@ -14341,7 +14201,7 @@
|
|
|
14341
14201
|
const value = toBN(other);
|
|
14342
14202
|
|
|
14343
14203
|
if (value.isNeg()) {
|
|
14344
|
-
throwFault("
|
|
14204
|
+
throwFault("cannot modulo negative values", "mod");
|
|
14345
14205
|
}
|
|
14346
14206
|
|
|
14347
14207
|
return toBigNumber(toBN(this).umod(value));
|
|
@@ -14351,7 +14211,7 @@
|
|
|
14351
14211
|
const value = toBN(other);
|
|
14352
14212
|
|
|
14353
14213
|
if (value.isNeg()) {
|
|
14354
|
-
throwFault("negative
|
|
14214
|
+
throwFault("cannot raise to negative values", "pow");
|
|
14355
14215
|
}
|
|
14356
14216
|
|
|
14357
14217
|
return toBigNumber(toBN(this).pow(value));
|
|
@@ -14361,7 +14221,7 @@
|
|
|
14361
14221
|
const value = toBN(other);
|
|
14362
14222
|
|
|
14363
14223
|
if (this.isNegative() || value.isNeg()) {
|
|
14364
|
-
throwFault("
|
|
14224
|
+
throwFault("cannot 'and' negative values", "and");
|
|
14365
14225
|
}
|
|
14366
14226
|
|
|
14367
14227
|
return toBigNumber(toBN(this).and(value));
|
|
@@ -14371,7 +14231,7 @@
|
|
|
14371
14231
|
const value = toBN(other);
|
|
14372
14232
|
|
|
14373
14233
|
if (this.isNegative() || value.isNeg()) {
|
|
14374
|
-
throwFault("
|
|
14234
|
+
throwFault("cannot 'or' negative values", "or");
|
|
14375
14235
|
}
|
|
14376
14236
|
|
|
14377
14237
|
return toBigNumber(toBN(this).or(value));
|
|
@@ -14381,7 +14241,7 @@
|
|
|
14381
14241
|
const value = toBN(other);
|
|
14382
14242
|
|
|
14383
14243
|
if (this.isNegative() || value.isNeg()) {
|
|
14384
|
-
throwFault("
|
|
14244
|
+
throwFault("cannot 'xor' negative values", "xor");
|
|
14385
14245
|
}
|
|
14386
14246
|
|
|
14387
14247
|
return toBigNumber(toBN(this).xor(value));
|
|
@@ -14389,7 +14249,7 @@
|
|
|
14389
14249
|
|
|
14390
14250
|
mask(value) {
|
|
14391
14251
|
if (this.isNegative() || value < 0) {
|
|
14392
|
-
throwFault("negative
|
|
14252
|
+
throwFault("cannot mask negative values", "mask");
|
|
14393
14253
|
}
|
|
14394
14254
|
|
|
14395
14255
|
return toBigNumber(toBN(this).maskn(value));
|
|
@@ -14397,7 +14257,7 @@
|
|
|
14397
14257
|
|
|
14398
14258
|
shl(value) {
|
|
14399
14259
|
if (this.isNegative() || value < 0) {
|
|
14400
|
-
throwFault("negative
|
|
14260
|
+
throwFault("cannot shift negative values", "shl");
|
|
14401
14261
|
}
|
|
14402
14262
|
|
|
14403
14263
|
return toBigNumber(toBN(this).shln(value));
|
|
@@ -14405,7 +14265,7 @@
|
|
|
14405
14265
|
|
|
14406
14266
|
shr(value) {
|
|
14407
14267
|
if (this.isNegative() || value < 0) {
|
|
14408
|
-
throwFault("negative
|
|
14268
|
+
throwFault("cannot shift negative values", "shr");
|
|
14409
14269
|
}
|
|
14410
14270
|
|
|
14411
14271
|
return toBigNumber(toBN(this).shrn(value));
|
|
@@ -14641,7 +14501,7 @@
|
|
|
14641
14501
|
return new BN(value, 36).toString(16);
|
|
14642
14502
|
} // value should have no prefix
|
|
14643
14503
|
|
|
14644
|
-
const version$e = "properties/5.
|
|
14504
|
+
const version$e = "properties/5.5.0";
|
|
14645
14505
|
|
|
14646
14506
|
var __awaiter$8 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
14647
14507
|
function adopt(value) {
|
|
@@ -14820,7 +14680,7 @@
|
|
|
14820
14680
|
|
|
14821
14681
|
}
|
|
14822
14682
|
|
|
14823
|
-
const version$d = "abi/5.
|
|
14683
|
+
const version$d = "abi/5.5.0";
|
|
14824
14684
|
|
|
14825
14685
|
const logger$k = new Logger(version$d);
|
|
14826
14686
|
const _constructorGuard$1 = {};
|
|
@@ -16808,7 +16668,7 @@
|
|
|
16808
16668
|
return '0x' + sha3$1.keccak_256(arrayify(data));
|
|
16809
16669
|
}
|
|
16810
16670
|
|
|
16811
|
-
const version$c = "rlp/5.
|
|
16671
|
+
const version$c = "rlp/5.5.0";
|
|
16812
16672
|
|
|
16813
16673
|
const logger$i = new Logger(version$c);
|
|
16814
16674
|
|
|
@@ -16971,7 +16831,7 @@
|
|
|
16971
16831
|
return decoded.result;
|
|
16972
16832
|
}
|
|
16973
16833
|
|
|
16974
|
-
const version$b = "address/5.
|
|
16834
|
+
const version$b = "address/5.5.0";
|
|
16975
16835
|
|
|
16976
16836
|
const logger$h = new Logger(version$b);
|
|
16977
16837
|
|
|
@@ -17554,7 +17414,7 @@
|
|
|
17554
17414
|
|
|
17555
17415
|
}
|
|
17556
17416
|
|
|
17557
|
-
const version$a = "strings/5.
|
|
17417
|
+
const version$a = "strings/5.5.0";
|
|
17558
17418
|
|
|
17559
17419
|
const logger$f = new Logger(version$a); ///////////////////////////////
|
|
17560
17420
|
|
|
@@ -18373,7 +18233,7 @@
|
|
|
18373
18233
|
return keccak256(toUtf8Bytes(text));
|
|
18374
18234
|
}
|
|
18375
18235
|
|
|
18376
|
-
const version$9 = "hash/5.
|
|
18236
|
+
const version$9 = "hash/5.5.0";
|
|
18377
18237
|
|
|
18378
18238
|
const logger$d = new Logger(version$9);
|
|
18379
18239
|
const Zeros = new Uint8Array(32);
|
|
@@ -18402,15 +18262,6 @@
|
|
|
18402
18262
|
|
|
18403
18263
|
return hexlify(result);
|
|
18404
18264
|
}
|
|
18405
|
-
function dnsEncode(name) {
|
|
18406
|
-
return hexlify(concat$1(name.split(".").map(comp => {
|
|
18407
|
-
// We jam in an _ prefix to fill in with the length later
|
|
18408
|
-
// Note: Nameprep throws if the component is over 63 bytes
|
|
18409
|
-
const bytes = toUtf8Bytes("_" + nameprep(comp));
|
|
18410
|
-
bytes[0] = bytes.length - 1;
|
|
18411
|
-
return bytes;
|
|
18412
|
-
}))) + "00";
|
|
18413
|
-
}
|
|
18414
18265
|
|
|
18415
18266
|
var __awaiter$7 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
18416
18267
|
function adopt(value) {
|
|
@@ -19690,7 +19541,7 @@
|
|
|
19690
19541
|
|
|
19691
19542
|
}
|
|
19692
19543
|
|
|
19693
|
-
const version$8 = "abstract-provider/5.
|
|
19544
|
+
const version$8 = "abstract-provider/5.5.1";
|
|
19694
19545
|
|
|
19695
19546
|
var __awaiter$6 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
19696
19547
|
function adopt(value) {
|
|
@@ -19761,7 +19612,7 @@
|
|
|
19761
19612
|
// We may want to compute this more accurately in the future,
|
|
19762
19613
|
// using the formula "check if the base fee is correct".
|
|
19763
19614
|
// See: https://eips.ethereum.org/EIPS/eip-1559
|
|
19764
|
-
maxPriorityFeePerGas = BigNumber.from("
|
|
19615
|
+
maxPriorityFeePerGas = BigNumber.from("2500000000");
|
|
19765
19616
|
maxFeePerGas = block.baseFeePerGas.mul(2).add(maxPriorityFeePerGas);
|
|
19766
19617
|
}
|
|
19767
19618
|
|
|
@@ -19789,7 +19640,7 @@
|
|
|
19789
19640
|
|
|
19790
19641
|
}
|
|
19791
19642
|
|
|
19792
|
-
const version$7 = "abstract-signer/5.
|
|
19643
|
+
const version$7 = "abstract-signer/5.5.0";
|
|
19793
19644
|
|
|
19794
19645
|
var __awaiter$5 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
19795
19646
|
function adopt(value) {
|
|
@@ -19823,7 +19674,7 @@
|
|
|
19823
19674
|
});
|
|
19824
19675
|
};
|
|
19825
19676
|
const logger$9 = new Logger(version$7);
|
|
19826
|
-
const allowedTransactionKeys$1 = ["accessList", "
|
|
19677
|
+
const allowedTransactionKeys$1 = ["accessList", "chainId", "customData", "data", "from", "gasLimit", "gasPrice", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "to", "type", "value"];
|
|
19827
19678
|
const forwardErrors = [Logger.errors.INSUFFICIENT_FUNDS, Logger.errors.NONCE_EXPIRED, Logger.errors.REPLACEMENT_UNDERPRICED];
|
|
19828
19679
|
class Signer {
|
|
19829
19680
|
///////////////////
|
|
@@ -23336,7 +23187,7 @@
|
|
|
23336
23187
|
});
|
|
23337
23188
|
var EC$1 = elliptic_1.ec;
|
|
23338
23189
|
|
|
23339
|
-
const version$6 = "signing-key/5.
|
|
23190
|
+
const version$6 = "signing-key/5.5.0";
|
|
23340
23191
|
|
|
23341
23192
|
const logger$8 = new Logger(version$6);
|
|
23342
23193
|
let _curve = null;
|
|
@@ -23430,7 +23281,7 @@
|
|
|
23430
23281
|
return logger$8.throwArgumentError("invalid public or private key", "key", "[REDACTED]");
|
|
23431
23282
|
}
|
|
23432
23283
|
|
|
23433
|
-
const version$5 = "transactions/5.
|
|
23284
|
+
const version$5 = "transactions/5.5.0";
|
|
23434
23285
|
|
|
23435
23286
|
const logger$7 = new Logger(version$5);
|
|
23436
23287
|
var TransactionTypes;
|
|
@@ -23740,7 +23591,7 @@
|
|
|
23740
23591
|
});
|
|
23741
23592
|
}
|
|
23742
23593
|
|
|
23743
|
-
const version$4 = "contracts/5.
|
|
23594
|
+
const version$4 = "contracts/5.5.0";
|
|
23744
23595
|
|
|
23745
23596
|
var __awaiter$4 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
23746
23597
|
function adopt(value) {
|
|
@@ -23958,10 +23809,6 @@
|
|
|
23958
23809
|
|
|
23959
23810
|
if (ro.customData) {
|
|
23960
23811
|
tx.customData = shallowCopy(ro.customData);
|
|
23961
|
-
}
|
|
23962
|
-
|
|
23963
|
-
if (ro.ccipReadEnabled) {
|
|
23964
|
-
tx.ccipReadEnabled = !!ro.ccipReadEnabled;
|
|
23965
23812
|
} // Remove the overrides
|
|
23966
23813
|
|
|
23967
23814
|
|
|
@@ -23974,8 +23821,7 @@
|
|
|
23974
23821
|
delete overrides.accessList;
|
|
23975
23822
|
delete overrides.maxFeePerGas;
|
|
23976
23823
|
delete overrides.maxPriorityFeePerGas;
|
|
23977
|
-
delete overrides.customData;
|
|
23978
|
-
delete overrides.ccipReadEnabled; // Make sure there are no stray overrides, which may indicate a
|
|
23824
|
+
delete overrides.customData; // Make sure there are no stray overrides, which may indicate a
|
|
23979
23825
|
// typo or using an unsupported key.
|
|
23980
23826
|
|
|
23981
23827
|
const leftovers = Object.keys(overrides).filter(key => overrides[key] != null);
|
|
@@ -24387,10 +24233,8 @@
|
|
|
24387
24233
|
operation: "new Contract"
|
|
24388
24234
|
});
|
|
24389
24235
|
}
|
|
24390
|
-
}
|
|
24391
|
-
|
|
24236
|
+
}
|
|
24392
24237
|
|
|
24393
|
-
this.resolvedAddress.catch(e => {});
|
|
24394
24238
|
const uniqueNames = {};
|
|
24395
24239
|
const uniqueSignatures = {};
|
|
24396
24240
|
Object.keys(this.interface.functions).forEach(signature => {
|
|
@@ -24979,14 +24823,14 @@
|
|
|
24979
24823
|
const Base58 = new BaseX("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");
|
|
24980
24824
|
//console.log(Base58.encode(Base58.decode("Qmd2V777o5XvJbYMeMb8k2nU5f8d3ciUQ5YpYuWhzv8iDj")))
|
|
24981
24825
|
|
|
24982
|
-
const version$3 = "sha2/5.
|
|
24826
|
+
const version$3 = "sha2/5.5.0";
|
|
24983
24827
|
|
|
24984
24828
|
new Logger(version$3);
|
|
24985
24829
|
function sha256(data) {
|
|
24986
24830
|
return "0x" + hash.sha256().update(arrayify(data)).digest("hex");
|
|
24987
24831
|
}
|
|
24988
24832
|
|
|
24989
|
-
const version$2 = "networks/5.
|
|
24833
|
+
const version$2 = "networks/5.5.2";
|
|
24990
24834
|
|
|
24991
24835
|
const logger$5 = new Logger(version$2);
|
|
24992
24836
|
|
|
@@ -25002,25 +24846,25 @@
|
|
|
25002
24846
|
|
|
25003
24847
|
const providerList = [];
|
|
25004
24848
|
|
|
25005
|
-
if (providers.InfuraProvider
|
|
24849
|
+
if (providers.InfuraProvider) {
|
|
25006
24850
|
try {
|
|
25007
24851
|
providerList.push(new providers.InfuraProvider(network, options.infura));
|
|
25008
24852
|
} catch (error) {}
|
|
25009
24853
|
}
|
|
25010
24854
|
|
|
25011
|
-
if (providers.EtherscanProvider
|
|
24855
|
+
if (providers.EtherscanProvider) {
|
|
25012
24856
|
try {
|
|
25013
24857
|
providerList.push(new providers.EtherscanProvider(network, options.etherscan));
|
|
25014
24858
|
} catch (error) {}
|
|
25015
24859
|
}
|
|
25016
24860
|
|
|
25017
|
-
if (providers.AlchemyProvider
|
|
24861
|
+
if (providers.AlchemyProvider) {
|
|
25018
24862
|
try {
|
|
25019
24863
|
providerList.push(new providers.AlchemyProvider(network, options.alchemy));
|
|
25020
24864
|
} catch (error) {}
|
|
25021
24865
|
}
|
|
25022
24866
|
|
|
25023
|
-
if (providers.PocketProvider
|
|
24867
|
+
if (providers.PocketProvider) {
|
|
25024
24868
|
// These networks are currently faulty on Pocket as their
|
|
25025
24869
|
// network does not handle the Berlin hardfork, which is
|
|
25026
24870
|
// live on these ones.
|
|
@@ -25036,7 +24880,7 @@
|
|
|
25036
24880
|
} catch (error) {}
|
|
25037
24881
|
}
|
|
25038
24882
|
|
|
25039
|
-
if (providers.CloudflareProvider
|
|
24883
|
+
if (providers.CloudflareProvider) {
|
|
25040
24884
|
try {
|
|
25041
24885
|
providerList.push(new providers.CloudflareProvider(network));
|
|
25042
24886
|
} catch (error) {}
|
|
@@ -25299,7 +25143,7 @@
|
|
|
25299
25143
|
return btoa(textData);
|
|
25300
25144
|
}
|
|
25301
25145
|
|
|
25302
|
-
const version$1 = "web/5.
|
|
25146
|
+
const version$1 = "web/5.5.1";
|
|
25303
25147
|
|
|
25304
25148
|
var __awaiter$3 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
25305
25149
|
function adopt(value) {
|
|
@@ -25452,7 +25296,6 @@
|
|
|
25452
25296
|
const throttleCallback = typeof connection === "object" ? connection.throttleCallback : null;
|
|
25453
25297
|
const throttleSlotInterval = typeof connection === "object" && typeof connection.throttleSlotInterval === "number" ? connection.throttleSlotInterval : 100;
|
|
25454
25298
|
logger$4.assertArgument(throttleSlotInterval > 0 && throttleSlotInterval % 1 === 0, "invalid connection throttle slot interval", "connection.throttleSlotInterval", throttleSlotInterval);
|
|
25455
|
-
const errorPassThrough = typeof connection === "object" ? !!connection.errorPassThrough : false;
|
|
25456
25299
|
const headers = {};
|
|
25457
25300
|
let url = null; // @TODO: Allow ConnectionInfo to override some of these values
|
|
25458
25301
|
|
|
@@ -25506,10 +25349,6 @@
|
|
|
25506
25349
|
value: "Basic " + encode$1(toUtf8Bytes(authorization))
|
|
25507
25350
|
};
|
|
25508
25351
|
}
|
|
25509
|
-
|
|
25510
|
-
if (connection.skipFetchSetup != null) {
|
|
25511
|
-
options.skipFetchSetup = !!connection.skipFetchSetup;
|
|
25512
|
-
}
|
|
25513
25352
|
}
|
|
25514
25353
|
|
|
25515
25354
|
const reData = new RegExp("^data:([a-z0-9-]+/[a-z0-9-]+);base64,(.*)$", "i");
|
|
@@ -25663,7 +25502,7 @@
|
|
|
25663
25502
|
|
|
25664
25503
|
if (allow304 && response.statusCode === 304) {
|
|
25665
25504
|
body = null;
|
|
25666
|
-
} else if (
|
|
25505
|
+
} else if (response.statusCode < 200 || response.statusCode >= 300) {
|
|
25667
25506
|
runningTimeout.cancel();
|
|
25668
25507
|
logger$4.throwError("bad response", Logger.errors.SERVER_ERROR, {
|
|
25669
25508
|
status: response.statusCode,
|
|
@@ -26044,7 +25883,7 @@
|
|
|
26044
25883
|
fromWords: fromWords
|
|
26045
25884
|
};
|
|
26046
25885
|
|
|
26047
|
-
const version = "providers/5.
|
|
25886
|
+
const version = "providers/5.5.2";
|
|
26048
25887
|
|
|
26049
25888
|
const logger$3 = new Logger(version);
|
|
26050
25889
|
class Formatter {
|
|
@@ -26136,7 +25975,7 @@
|
|
|
26136
25975
|
type: type
|
|
26137
25976
|
};
|
|
26138
25977
|
formats.block = {
|
|
26139
|
-
hash:
|
|
25978
|
+
hash: hash,
|
|
26140
25979
|
parentHash: hash,
|
|
26141
25980
|
number: number,
|
|
26142
25981
|
timestamp: number,
|
|
@@ -26144,7 +25983,7 @@
|
|
|
26144
25983
|
difficulty: this.difficulty.bind(this),
|
|
26145
25984
|
gasLimit: bigNumber,
|
|
26146
25985
|
gasUsed: bigNumber,
|
|
26147
|
-
miner:
|
|
25986
|
+
miner: address,
|
|
26148
25987
|
extraData: data,
|
|
26149
25988
|
transactions: Formatter.allowNull(Formatter.arrayOf(hash)),
|
|
26150
25989
|
baseFeePerGas: Formatter.allowNull(bigNumber)
|
|
@@ -26567,7 +26406,6 @@
|
|
|
26567
26406
|
});
|
|
26568
26407
|
};
|
|
26569
26408
|
const logger$2 = new Logger(version);
|
|
26570
|
-
const MAX_CCIP_REDIRECTS = 10; //////////////////////////////
|
|
26571
26409
|
// Event Serializeing
|
|
26572
26410
|
|
|
26573
26411
|
function checkTopic(topic) {
|
|
@@ -26680,8 +26518,6 @@
|
|
|
26680
26518
|
defineReadOnly(this, "tag", tag);
|
|
26681
26519
|
defineReadOnly(this, "listener", listener);
|
|
26682
26520
|
defineReadOnly(this, "once", once);
|
|
26683
|
-
this._lastBlockNumber = -2;
|
|
26684
|
-
this._inflight = false;
|
|
26685
26521
|
}
|
|
26686
26522
|
|
|
26687
26523
|
get event() {
|
|
@@ -26782,80 +26618,27 @@
|
|
|
26782
26618
|
const matcherIpfs = new RegExp("^(ipfs):/\/(.*)$", "i");
|
|
26783
26619
|
const matchers = [new RegExp("^(https):/\/(.*)$", "i"), new RegExp("^(data):(.*)$", "i"), matcherIpfs, new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$", "i")];
|
|
26784
26620
|
|
|
26785
|
-
function _parseString(result
|
|
26621
|
+
function _parseString(result) {
|
|
26786
26622
|
try {
|
|
26787
|
-
return toUtf8String(_parseBytes(result
|
|
26623
|
+
return toUtf8String(_parseBytes(result));
|
|
26788
26624
|
} catch (error) {}
|
|
26789
26625
|
|
|
26790
26626
|
return null;
|
|
26791
26627
|
}
|
|
26792
26628
|
|
|
26793
|
-
function _parseBytes(result
|
|
26629
|
+
function _parseBytes(result) {
|
|
26794
26630
|
if (result === "0x") {
|
|
26795
26631
|
return null;
|
|
26796
26632
|
}
|
|
26797
26633
|
|
|
26798
|
-
const offset = BigNumber.from(hexDataSlice(result,
|
|
26634
|
+
const offset = BigNumber.from(hexDataSlice(result, 0, 32)).toNumber();
|
|
26799
26635
|
const length = BigNumber.from(hexDataSlice(result, offset, offset + 32)).toNumber();
|
|
26800
26636
|
return hexDataSlice(result, offset + 32, offset + 32 + length);
|
|
26801
26637
|
} // Trim off the ipfs:// prefix and return the default gateway URL
|
|
26802
26638
|
|
|
26803
26639
|
|
|
26804
26640
|
function getIpfsLink(link) {
|
|
26805
|
-
|
|
26806
|
-
link = link.substring(12);
|
|
26807
|
-
} else if (link.match(/^ipfs:\/\//i)) {
|
|
26808
|
-
link = link.substring(7);
|
|
26809
|
-
} else {
|
|
26810
|
-
logger$2.throwArgumentError("unsupported IPFS format", "link", link);
|
|
26811
|
-
}
|
|
26812
|
-
|
|
26813
|
-
return `https:/\/gateway.ipfs.io/ipfs/${link}`;
|
|
26814
|
-
}
|
|
26815
|
-
|
|
26816
|
-
function numPad(value) {
|
|
26817
|
-
const result = arrayify(value);
|
|
26818
|
-
|
|
26819
|
-
if (result.length > 32) {
|
|
26820
|
-
throw new Error("internal; should not happen");
|
|
26821
|
-
}
|
|
26822
|
-
|
|
26823
|
-
const padded = new Uint8Array(32);
|
|
26824
|
-
padded.set(result, 32 - result.length);
|
|
26825
|
-
return padded;
|
|
26826
|
-
}
|
|
26827
|
-
|
|
26828
|
-
function bytesPad(value) {
|
|
26829
|
-
if (value.length % 32 === 0) {
|
|
26830
|
-
return value;
|
|
26831
|
-
}
|
|
26832
|
-
|
|
26833
|
-
const result = new Uint8Array(Math.ceil(value.length / 32) * 32);
|
|
26834
|
-
result.set(value);
|
|
26835
|
-
return result;
|
|
26836
|
-
} // ABI Encodes a series of (bytes, bytes, ...)
|
|
26837
|
-
|
|
26838
|
-
|
|
26839
|
-
function encodeBytes(datas) {
|
|
26840
|
-
const result = [];
|
|
26841
|
-
let byteCount = 0; // Add place-holders for pointers as we add items
|
|
26842
|
-
|
|
26843
|
-
for (let i = 0; i < datas.length; i++) {
|
|
26844
|
-
result.push(null);
|
|
26845
|
-
byteCount += 32;
|
|
26846
|
-
}
|
|
26847
|
-
|
|
26848
|
-
for (let i = 0; i < datas.length; i++) {
|
|
26849
|
-
const data = arrayify(datas[i]); // Update the bytes offset
|
|
26850
|
-
|
|
26851
|
-
result[i] = numPad(byteCount); // The length and padded value of data
|
|
26852
|
-
|
|
26853
|
-
result.push(numPad(data.length));
|
|
26854
|
-
result.push(bytesPad(data));
|
|
26855
|
-
byteCount += 32 + Math.ceil(data.length / 32) * 32;
|
|
26856
|
-
}
|
|
26857
|
-
|
|
26858
|
-
return hexConcat(result);
|
|
26641
|
+
return `https:/\/gateway.ipfs.io/ipfs/${link.substring(7)}`;
|
|
26859
26642
|
}
|
|
26860
26643
|
|
|
26861
26644
|
class Resolver {
|
|
@@ -26867,79 +26650,23 @@
|
|
|
26867
26650
|
defineReadOnly(this, "_resolvedAddress", resolvedAddress);
|
|
26868
26651
|
}
|
|
26869
26652
|
|
|
26870
|
-
|
|
26871
|
-
if (!this._supportsEip2544) {
|
|
26872
|
-
// supportsInterface(bytes4 = selector("resolve(bytes,bytes)"))
|
|
26873
|
-
this._supportsEip2544 = this.provider.call({
|
|
26874
|
-
to: this.address,
|
|
26875
|
-
data: "0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"
|
|
26876
|
-
}).then(result => {
|
|
26877
|
-
return BigNumber.from(result).eq(1);
|
|
26878
|
-
}).catch(error => {
|
|
26879
|
-
if (error.code === Logger.errors.CALL_EXCEPTION) {
|
|
26880
|
-
return false;
|
|
26881
|
-
} // Rethrow the error: link is down, etc. Let future attempts retry.
|
|
26882
|
-
|
|
26883
|
-
|
|
26884
|
-
this._supportsEip2544 = null;
|
|
26885
|
-
throw error;
|
|
26886
|
-
});
|
|
26887
|
-
}
|
|
26888
|
-
|
|
26889
|
-
return this._supportsEip2544;
|
|
26890
|
-
}
|
|
26891
|
-
|
|
26892
|
-
_fetch(selector, parameters) {
|
|
26653
|
+
_fetchBytes(selector, parameters) {
|
|
26893
26654
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
26894
26655
|
// e.g. keccak256("addr(bytes32,uint256)")
|
|
26895
26656
|
const tx = {
|
|
26896
26657
|
to: this.address,
|
|
26897
|
-
ccipReadEnabled: true,
|
|
26898
26658
|
data: hexConcat([selector, namehash(this.name), parameters || "0x"])
|
|
26899
|
-
};
|
|
26900
|
-
|
|
26901
|
-
let parseBytes = false;
|
|
26902
|
-
|
|
26903
|
-
if (yield this.supportsWildcard()) {
|
|
26904
|
-
parseBytes = true; // selector("resolve(bytes,bytes)")
|
|
26905
|
-
|
|
26906
|
-
tx.data = hexConcat(["0x9061b923", encodeBytes([dnsEncode(this.name), tx.data])]);
|
|
26907
|
-
}
|
|
26659
|
+
};
|
|
26908
26660
|
|
|
26909
26661
|
try {
|
|
26910
|
-
|
|
26911
|
-
|
|
26912
|
-
if (arrayify(result).length % 32 === 4) {
|
|
26913
|
-
logger$2.throwError("resolver threw error", Logger.errors.CALL_EXCEPTION, {
|
|
26914
|
-
transaction: tx,
|
|
26915
|
-
data: result
|
|
26916
|
-
});
|
|
26917
|
-
}
|
|
26918
|
-
|
|
26919
|
-
if (parseBytes) {
|
|
26920
|
-
result = _parseBytes(result, 0);
|
|
26921
|
-
}
|
|
26922
|
-
|
|
26923
|
-
return result;
|
|
26662
|
+
return _parseBytes(yield this.provider.call(tx));
|
|
26924
26663
|
} catch (error) {
|
|
26925
26664
|
if (error.code === Logger.errors.CALL_EXCEPTION) {
|
|
26926
26665
|
return null;
|
|
26927
26666
|
}
|
|
26928
26667
|
|
|
26929
|
-
|
|
26930
|
-
}
|
|
26931
|
-
});
|
|
26932
|
-
}
|
|
26933
|
-
|
|
26934
|
-
_fetchBytes(selector, parameters) {
|
|
26935
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
26936
|
-
const result = yield this._fetch(selector, parameters);
|
|
26937
|
-
|
|
26938
|
-
if (result != null) {
|
|
26939
|
-
return _parseBytes(result, 0);
|
|
26668
|
+
return null;
|
|
26940
26669
|
}
|
|
26941
|
-
|
|
26942
|
-
return null;
|
|
26943
26670
|
});
|
|
26944
26671
|
}
|
|
26945
26672
|
|
|
@@ -27017,13 +26744,17 @@
|
|
|
27017
26744
|
if (coinType === 60) {
|
|
27018
26745
|
try {
|
|
27019
26746
|
// keccak256("addr(bytes32)")
|
|
27020
|
-
const
|
|
26747
|
+
const transaction = {
|
|
26748
|
+
to: this.address,
|
|
26749
|
+
data: "0x3b3b57de" + namehash(this.name).substring(2)
|
|
26750
|
+
};
|
|
26751
|
+
const hexBytes = yield this.provider.call(transaction); // No address
|
|
27021
26752
|
|
|
27022
|
-
if (
|
|
26753
|
+
if (hexBytes === "0x" || hexBytes === HashZero) {
|
|
27023
26754
|
return null;
|
|
27024
26755
|
}
|
|
27025
26756
|
|
|
27026
|
-
return this.provider.formatter.callAddress(
|
|
26757
|
+
return this.provider.formatter.callAddress(hexBytes);
|
|
27027
26758
|
} catch (error) {
|
|
27028
26759
|
if (error.code === Logger.errors.CALL_EXCEPTION) {
|
|
27029
26760
|
return null;
|
|
@@ -27169,14 +26900,14 @@
|
|
|
27169
26900
|
data: hexConcat([selector, tokenId])
|
|
27170
26901
|
};
|
|
27171
26902
|
|
|
27172
|
-
let metadataUrl = _parseString(yield this.provider.call(tx)
|
|
26903
|
+
let metadataUrl = _parseString(yield this.provider.call(tx));
|
|
27173
26904
|
|
|
27174
26905
|
if (metadataUrl == null) {
|
|
27175
26906
|
return null;
|
|
27176
26907
|
}
|
|
27177
26908
|
|
|
27178
26909
|
linkage.push({
|
|
27179
|
-
type: "metadata-url
|
|
26910
|
+
type: "metadata-url",
|
|
27180
26911
|
content: metadataUrl
|
|
27181
26912
|
}); // ERC-1155 allows a generic {id} in the URL
|
|
27182
26913
|
|
|
@@ -27186,17 +26917,8 @@
|
|
|
27186
26917
|
type: "metadata-url-expanded",
|
|
27187
26918
|
content: metadataUrl
|
|
27188
26919
|
});
|
|
27189
|
-
} //
|
|
27190
|
-
|
|
27191
|
-
|
|
27192
|
-
if (metadataUrl.match(/^ipfs:/i)) {
|
|
27193
|
-
metadataUrl = getIpfsLink(metadataUrl);
|
|
27194
|
-
}
|
|
26920
|
+
} // Get the token metadata
|
|
27195
26921
|
|
|
27196
|
-
linkage.push({
|
|
27197
|
-
type: "metadata-url",
|
|
27198
|
-
content: metadataUrl
|
|
27199
|
-
}); // Get the token metadata
|
|
27200
26922
|
|
|
27201
26923
|
const metadata = yield fetchJson(metadataUrl);
|
|
27202
26924
|
|
|
@@ -27327,7 +27049,6 @@
|
|
|
27327
27049
|
this._emitted = {
|
|
27328
27050
|
block: -2
|
|
27329
27051
|
};
|
|
27330
|
-
this.disableCcipRead = false;
|
|
27331
27052
|
this.formatter = new.target.getFormatter(); // If network is any, this Provider allows the underlying
|
|
27332
27053
|
// network to change dynamically, and we auto-detect the
|
|
27333
27054
|
// current network
|
|
@@ -27357,7 +27078,6 @@
|
|
|
27357
27078
|
|
|
27358
27079
|
this._maxInternalBlockNumber = -1024;
|
|
27359
27080
|
this._lastBlockNumber = -2;
|
|
27360
|
-
this._maxFilterBlockRange = 10;
|
|
27361
27081
|
this._pollingInterval = 4000;
|
|
27362
27082
|
this._fastQueryDate = 0;
|
|
27363
27083
|
}
|
|
@@ -27430,57 +27150,6 @@
|
|
|
27430
27150
|
|
|
27431
27151
|
static getNetwork(network) {
|
|
27432
27152
|
return getNetwork(network == null ? "homestead" : network);
|
|
27433
|
-
}
|
|
27434
|
-
|
|
27435
|
-
ccipReadFetch(tx, calldata, urls) {
|
|
27436
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
27437
|
-
if (this.disableCcipRead || urls.length === 0) {
|
|
27438
|
-
return null;
|
|
27439
|
-
}
|
|
27440
|
-
|
|
27441
|
-
const sender = tx.to.toLowerCase();
|
|
27442
|
-
const data = calldata.toLowerCase();
|
|
27443
|
-
const errorMessages = [];
|
|
27444
|
-
|
|
27445
|
-
for (let i = 0; i < urls.length; i++) {
|
|
27446
|
-
const url = urls[i]; // URL expansion
|
|
27447
|
-
|
|
27448
|
-
const href = url.replace("{sender}", sender).replace("{data}", data); // If no {data} is present, use POST; otherwise GET
|
|
27449
|
-
|
|
27450
|
-
const json = url.indexOf("{data}") >= 0 ? null : JSON.stringify({
|
|
27451
|
-
data,
|
|
27452
|
-
sender
|
|
27453
|
-
});
|
|
27454
|
-
const result = yield fetchJson({
|
|
27455
|
-
url: href,
|
|
27456
|
-
errorPassThrough: true
|
|
27457
|
-
}, json, (value, response) => {
|
|
27458
|
-
value.status = response.statusCode;
|
|
27459
|
-
return value;
|
|
27460
|
-
});
|
|
27461
|
-
|
|
27462
|
-
if (result.data) {
|
|
27463
|
-
return result.data;
|
|
27464
|
-
}
|
|
27465
|
-
|
|
27466
|
-
const errorMessage = result.message || "unknown error"; // 4xx indicates the result is not present; stop
|
|
27467
|
-
|
|
27468
|
-
if (result.status >= 400 && result.status < 500) {
|
|
27469
|
-
return logger$2.throwError(`response not found during CCIP fetch: ${errorMessage}`, Logger.errors.SERVER_ERROR, {
|
|
27470
|
-
url,
|
|
27471
|
-
errorMessage
|
|
27472
|
-
});
|
|
27473
|
-
} // 5xx indicates server issue; try the next url
|
|
27474
|
-
|
|
27475
|
-
|
|
27476
|
-
errorMessages.push(errorMessage);
|
|
27477
|
-
}
|
|
27478
|
-
|
|
27479
|
-
return logger$2.throwError(`error encountered during CCIP fetch: ${errorMessages.map(m => JSON.stringify(m)).join(", ")}`, Logger.errors.SERVER_ERROR, {
|
|
27480
|
-
urls,
|
|
27481
|
-
errorMessages
|
|
27482
|
-
});
|
|
27483
|
-
});
|
|
27484
27153
|
} // Fetches the blockNumber, but will reuse any result that is less
|
|
27485
27154
|
// than maxAge old or has been requested since the last request
|
|
27486
27155
|
|
|
@@ -27662,49 +27331,23 @@
|
|
|
27662
27331
|
|
|
27663
27332
|
case "filter":
|
|
27664
27333
|
{
|
|
27665
|
-
|
|
27666
|
-
|
|
27667
|
-
|
|
27668
|
-
|
|
27669
|
-
|
|
27670
|
-
|
|
27671
|
-
|
|
27672
|
-
const filter = event.filter;
|
|
27673
|
-
filter.fromBlock = event._lastBlockNumber + 1;
|
|
27674
|
-
filter.toBlock = blockNumber; // Prevent fitler ranges from growing too wild
|
|
27675
|
-
|
|
27676
|
-
if (filter.toBlock - this._maxFilterBlockRange > filter.fromBlock) {
|
|
27677
|
-
filter.fromBlock = filter.toBlock - this._maxFilterBlockRange;
|
|
27334
|
+
const filter = event.filter;
|
|
27335
|
+
filter.fromBlock = this._lastBlockNumber + 1;
|
|
27336
|
+
filter.toBlock = blockNumber;
|
|
27337
|
+
const runner = this.getLogs(filter).then(logs => {
|
|
27338
|
+
if (logs.length === 0) {
|
|
27339
|
+
return;
|
|
27678
27340
|
}
|
|
27679
27341
|
|
|
27680
|
-
|
|
27681
|
-
|
|
27682
|
-
|
|
27683
|
-
|
|
27684
|
-
if (logs.length === 0) {
|
|
27685
|
-
return;
|
|
27686
|
-
}
|
|
27687
|
-
|
|
27688
|
-
logs.forEach(log => {
|
|
27689
|
-
// Only when we get an event for a given block number
|
|
27690
|
-
// can we trust the events are indexed
|
|
27691
|
-
if (log.blockNumber > event._lastBlockNumber) {
|
|
27692
|
-
event._lastBlockNumber = log.blockNumber;
|
|
27693
|
-
} // Make sure we stall requests to fetch blocks and txs
|
|
27694
|
-
|
|
27695
|
-
|
|
27696
|
-
this._emitted["b:" + log.blockHash] = log.blockNumber;
|
|
27697
|
-
this._emitted["t:" + log.transactionHash] = log.blockNumber;
|
|
27698
|
-
this.emit(filter, log);
|
|
27699
|
-
});
|
|
27700
|
-
}).catch(error => {
|
|
27701
|
-
this.emit("error", error); // Allow another getLogs (the range was not updated)
|
|
27702
|
-
|
|
27703
|
-
event._inflight = false;
|
|
27342
|
+
logs.forEach(log => {
|
|
27343
|
+
this._emitted["b:" + log.blockHash] = log.blockNumber;
|
|
27344
|
+
this._emitted["t:" + log.transactionHash] = log.blockNumber;
|
|
27345
|
+
this.emit(filter, log);
|
|
27704
27346
|
});
|
|
27705
|
-
|
|
27706
|
-
|
|
27707
|
-
|
|
27347
|
+
}).catch(error => {
|
|
27348
|
+
this.emit("error", error);
|
|
27349
|
+
});
|
|
27350
|
+
runners.push(runner);
|
|
27708
27351
|
break;
|
|
27709
27352
|
}
|
|
27710
27353
|
}
|
|
@@ -28332,106 +27975,21 @@
|
|
|
28332
27975
|
});
|
|
28333
27976
|
}
|
|
28334
27977
|
|
|
28335
|
-
|
|
27978
|
+
call(transaction, blockTag) {
|
|
28336
27979
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
28337
|
-
|
|
28338
|
-
|
|
28339
|
-
|
|
28340
|
-
|
|
28341
|
-
|
|
28342
|
-
|
|
28343
|
-
|
|
28344
|
-
const txSender = transaction.to;
|
|
28345
|
-
const result = yield this.perform("call", {
|
|
28346
|
-
transaction,
|
|
28347
|
-
blockTag
|
|
28348
|
-
}); // CCIP Read request via OffchainLookup(address,string[],bytes,bytes4,bytes)
|
|
28349
|
-
|
|
28350
|
-
if (attempt >= 0 && blockTag === "latest" && txSender != null && result.substring(0, 10) === "0x556f1830" && hexDataLength(result) % 32 === 4) {
|
|
28351
|
-
try {
|
|
28352
|
-
const data = hexDataSlice(result, 4); // Check the sender of the OffchainLookup matches the transaction
|
|
28353
|
-
|
|
28354
|
-
const sender = hexDataSlice(data, 0, 32);
|
|
28355
|
-
|
|
28356
|
-
if (!BigNumber.from(sender).eq(txSender)) {
|
|
28357
|
-
logger$2.throwError("CCIP Read sender did not match", Logger.errors.CALL_EXCEPTION, {
|
|
28358
|
-
name: "OffchainLookup",
|
|
28359
|
-
signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
|
|
28360
|
-
transaction,
|
|
28361
|
-
data: result
|
|
28362
|
-
});
|
|
28363
|
-
} // Read the URLs from the response
|
|
28364
|
-
|
|
28365
|
-
|
|
28366
|
-
const urls = [];
|
|
28367
|
-
const urlsOffset = BigNumber.from(hexDataSlice(data, 32, 64)).toNumber();
|
|
28368
|
-
const urlsLength = BigNumber.from(hexDataSlice(data, urlsOffset, urlsOffset + 32)).toNumber();
|
|
28369
|
-
const urlsData = hexDataSlice(data, urlsOffset + 32);
|
|
28370
|
-
|
|
28371
|
-
for (let u = 0; u < urlsLength; u++) {
|
|
28372
|
-
const url = _parseString(urlsData, u * 32);
|
|
28373
|
-
|
|
28374
|
-
if (url == null) {
|
|
28375
|
-
logger$2.throwError("CCIP Read contained corrupt URL string", Logger.errors.CALL_EXCEPTION, {
|
|
28376
|
-
name: "OffchainLookup",
|
|
28377
|
-
signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
|
|
28378
|
-
transaction,
|
|
28379
|
-
data: result
|
|
28380
|
-
});
|
|
28381
|
-
}
|
|
28382
|
-
|
|
28383
|
-
urls.push(url);
|
|
28384
|
-
} // Get the CCIP calldata to forward
|
|
28385
|
-
|
|
28386
|
-
|
|
28387
|
-
const calldata = _parseBytes(data, 64); // Get the callbackSelector (bytes4)
|
|
28388
|
-
|
|
28389
|
-
|
|
28390
|
-
if (!BigNumber.from(hexDataSlice(data, 100, 128)).isZero()) {
|
|
28391
|
-
logger$2.throwError("CCIP Read callback selector included junk", Logger.errors.CALL_EXCEPTION, {
|
|
28392
|
-
name: "OffchainLookup",
|
|
28393
|
-
signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
|
|
28394
|
-
transaction,
|
|
28395
|
-
data: result
|
|
28396
|
-
});
|
|
28397
|
-
}
|
|
28398
|
-
|
|
28399
|
-
const callbackSelector = hexDataSlice(data, 96, 100); // Get the extra data to send back to the contract as context
|
|
28400
|
-
|
|
28401
|
-
const extraData = _parseBytes(data, 128);
|
|
28402
|
-
|
|
28403
|
-
const ccipResult = yield this.ccipReadFetch(transaction, calldata, urls);
|
|
28404
|
-
|
|
28405
|
-
if (ccipResult == null) {
|
|
28406
|
-
logger$2.throwError("CCIP Read disabled or provided no URLs", Logger.errors.CALL_EXCEPTION, {
|
|
28407
|
-
name: "OffchainLookup",
|
|
28408
|
-
signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
|
|
28409
|
-
transaction,
|
|
28410
|
-
data: result
|
|
28411
|
-
});
|
|
28412
|
-
}
|
|
28413
|
-
|
|
28414
|
-
const tx = {
|
|
28415
|
-
to: txSender,
|
|
28416
|
-
data: hexConcat([callbackSelector, encodeBytes([ccipResult, extraData])])
|
|
28417
|
-
};
|
|
28418
|
-
return this._call(tx, blockTag, attempt + 1);
|
|
28419
|
-
} catch (error) {
|
|
28420
|
-
if (error.code === Logger.errors.SERVER_ERROR) {
|
|
28421
|
-
throw error;
|
|
28422
|
-
}
|
|
28423
|
-
}
|
|
28424
|
-
}
|
|
27980
|
+
yield this.getNetwork();
|
|
27981
|
+
const params = yield resolveProperties({
|
|
27982
|
+
transaction: this._getTransactionRequest(transaction),
|
|
27983
|
+
blockTag: this._getBlockTag(blockTag)
|
|
27984
|
+
});
|
|
27985
|
+
const result = yield this.perform("call", params);
|
|
28425
27986
|
|
|
28426
27987
|
try {
|
|
28427
27988
|
return hexlify(result);
|
|
28428
27989
|
} catch (error) {
|
|
28429
27990
|
return logger$2.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
|
|
28430
27991
|
method: "call",
|
|
28431
|
-
params
|
|
28432
|
-
transaction,
|
|
28433
|
-
blockTag
|
|
28434
|
-
},
|
|
27992
|
+
params,
|
|
28435
27993
|
result,
|
|
28436
27994
|
error
|
|
28437
27995
|
});
|
|
@@ -28439,18 +27997,6 @@
|
|
|
28439
27997
|
});
|
|
28440
27998
|
}
|
|
28441
27999
|
|
|
28442
|
-
call(transaction, blockTag) {
|
|
28443
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
28444
|
-
yield this.getNetwork();
|
|
28445
|
-
const resolved = yield resolveProperties({
|
|
28446
|
-
transaction: this._getTransactionRequest(transaction),
|
|
28447
|
-
blockTag: this._getBlockTag(blockTag),
|
|
28448
|
-
ccipReadEnabled: Promise.resolve(transaction.ccipReadEnabled)
|
|
28449
|
-
});
|
|
28450
|
-
return this._call(resolved.transaction, resolved.blockTag, resolved.ccipReadEnabled ? 0 : -1);
|
|
28451
|
-
});
|
|
28452
|
-
}
|
|
28453
|
-
|
|
28454
28000
|
estimateGas(transaction) {
|
|
28455
28001
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
28456
28002
|
yield this.getNetwork();
|
|
@@ -28720,64 +28266,51 @@
|
|
|
28720
28266
|
|
|
28721
28267
|
getResolver(name) {
|
|
28722
28268
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
28723
|
-
|
|
28269
|
+
try {
|
|
28270
|
+
const address = yield this._getResolver(name);
|
|
28724
28271
|
|
|
28725
|
-
|
|
28726
|
-
if (currentName === "" || currentName === ".") {
|
|
28272
|
+
if (address == null) {
|
|
28727
28273
|
return null;
|
|
28728
|
-
}
|
|
28729
|
-
// not have a wildcar resolver
|
|
28730
|
-
|
|
28274
|
+
}
|
|
28731
28275
|
|
|
28732
|
-
|
|
28276
|
+
return new Resolver(this, address, name);
|
|
28277
|
+
} catch (error) {
|
|
28278
|
+
if (error.code === Logger.errors.CALL_EXCEPTION) {
|
|
28733
28279
|
return null;
|
|
28734
|
-
}
|
|
28735
|
-
|
|
28736
|
-
|
|
28737
|
-
const addr = yield this._getResolver(currentName, "getResolver"); // Found a resolver!
|
|
28738
|
-
|
|
28739
|
-
if (addr != null) {
|
|
28740
|
-
const resolver = new Resolver(this, addr, name); // Legacy resolver found, using EIP-2544 so it isn't safe to use
|
|
28741
|
-
|
|
28742
|
-
if (currentName !== name && !(yield resolver.supportsWildcard())) {
|
|
28743
|
-
return null;
|
|
28744
|
-
}
|
|
28745
|
-
|
|
28746
|
-
return resolver;
|
|
28747
|
-
} // Get the parent node
|
|
28748
|
-
|
|
28280
|
+
}
|
|
28749
28281
|
|
|
28750
|
-
|
|
28282
|
+
throw error;
|
|
28751
28283
|
}
|
|
28752
28284
|
});
|
|
28753
28285
|
}
|
|
28754
28286
|
|
|
28755
|
-
_getResolver(name
|
|
28287
|
+
_getResolver(name) {
|
|
28756
28288
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
28757
|
-
|
|
28758
|
-
operation = "ENS";
|
|
28759
|
-
}
|
|
28760
|
-
|
|
28289
|
+
// Get the resolver from the blockchain
|
|
28761
28290
|
const network = yield this.getNetwork(); // No ENS...
|
|
28762
28291
|
|
|
28763
28292
|
if (!network.ensAddress) {
|
|
28764
28293
|
logger$2.throwError("network does not support ENS", Logger.errors.UNSUPPORTED_OPERATION, {
|
|
28765
|
-
operation,
|
|
28294
|
+
operation: "ENS",
|
|
28766
28295
|
network: network.name
|
|
28767
28296
|
});
|
|
28768
|
-
}
|
|
28297
|
+
} // keccak256("resolver(bytes32)")
|
|
28298
|
+
|
|
28299
|
+
|
|
28300
|
+
const transaction = {
|
|
28301
|
+
to: network.ensAddress,
|
|
28302
|
+
data: "0x0178b8bf" + namehash(name).substring(2)
|
|
28303
|
+
};
|
|
28769
28304
|
|
|
28770
28305
|
try {
|
|
28771
|
-
|
|
28772
|
-
|
|
28773
|
-
|
|
28774
|
-
|
|
28775
|
-
}
|
|
28776
|
-
return this.formatter.callAddress(addrData);
|
|
28777
|
-
} catch (error) {// ENS registry cannot throw errors on resolver(bytes32)
|
|
28778
|
-
}
|
|
28306
|
+
return this.formatter.callAddress(yield this.call(transaction));
|
|
28307
|
+
} catch (error) {
|
|
28308
|
+
if (error.code === Logger.errors.CALL_EXCEPTION) {
|
|
28309
|
+
return null;
|
|
28310
|
+
}
|
|
28779
28311
|
|
|
28780
|
-
|
|
28312
|
+
throw error;
|
|
28313
|
+
}
|
|
28781
28314
|
});
|
|
28782
28315
|
}
|
|
28783
28316
|
|
|
@@ -28813,18 +28346,38 @@
|
|
|
28813
28346
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
28814
28347
|
address = yield address;
|
|
28815
28348
|
address = this.formatter.address(address);
|
|
28816
|
-
const
|
|
28817
|
-
const
|
|
28349
|
+
const reverseName = address.substring(2).toLowerCase() + ".addr.reverse";
|
|
28350
|
+
const resolverAddress = yield this._getResolver(reverseName);
|
|
28818
28351
|
|
|
28819
|
-
if (
|
|
28352
|
+
if (!resolverAddress) {
|
|
28820
28353
|
return null;
|
|
28821
28354
|
} // keccak("name(bytes32)")
|
|
28822
28355
|
|
|
28823
28356
|
|
|
28824
|
-
|
|
28825
|
-
to:
|
|
28826
|
-
data: "0x691f3431" + namehash(
|
|
28827
|
-
})
|
|
28357
|
+
let bytes = arrayify(yield this.call({
|
|
28358
|
+
to: resolverAddress,
|
|
28359
|
+
data: "0x691f3431" + namehash(reverseName).substring(2)
|
|
28360
|
+
})); // Strip off the dynamic string pointer (0x20)
|
|
28361
|
+
|
|
28362
|
+
if (bytes.length < 32 || !BigNumber.from(bytes.slice(0, 32)).eq(32)) {
|
|
28363
|
+
return null;
|
|
28364
|
+
}
|
|
28365
|
+
|
|
28366
|
+
bytes = bytes.slice(32); // Not a length-prefixed string
|
|
28367
|
+
|
|
28368
|
+
if (bytes.length < 32) {
|
|
28369
|
+
return null;
|
|
28370
|
+
} // Get the length of the string (from the length-prefix)
|
|
28371
|
+
|
|
28372
|
+
|
|
28373
|
+
const length = BigNumber.from(bytes.slice(0, 32)).toNumber();
|
|
28374
|
+
bytes = bytes.slice(32); // Length longer than available data
|
|
28375
|
+
|
|
28376
|
+
if (length > bytes.length) {
|
|
28377
|
+
return null;
|
|
28378
|
+
}
|
|
28379
|
+
|
|
28380
|
+
const name = toUtf8String(bytes.slice(0, length)); // Make sure the reverse record matches the foward record
|
|
28828
28381
|
|
|
28829
28382
|
const addr = yield this.resolveName(name);
|
|
28830
28383
|
|
|
@@ -28843,46 +28396,16 @@
|
|
|
28843
28396
|
if (isHexString(nameOrAddress)) {
|
|
28844
28397
|
// Address; reverse lookup
|
|
28845
28398
|
const address = this.formatter.address(nameOrAddress);
|
|
28846
|
-
const
|
|
28847
|
-
const resolverAddress = yield this._getResolver(
|
|
28399
|
+
const reverseName = address.substring(2).toLowerCase() + ".addr.reverse";
|
|
28400
|
+
const resolverAddress = yield this._getResolver(reverseName);
|
|
28848
28401
|
|
|
28849
28402
|
if (!resolverAddress) {
|
|
28850
|
-
return null;
|
|
28851
|
-
} // Try resolving the avatar against the addr.reverse resolver
|
|
28852
|
-
|
|
28853
|
-
|
|
28854
|
-
resolver = new Resolver(this, resolverAddress, node);
|
|
28855
|
-
|
|
28856
|
-
try {
|
|
28857
|
-
const avatar = yield resolver.getAvatar();
|
|
28858
|
-
|
|
28859
|
-
if (avatar) {
|
|
28860
|
-
return avatar.url;
|
|
28861
|
-
}
|
|
28862
|
-
} catch (error) {
|
|
28863
|
-
if (error.code !== Logger.errors.CALL_EXCEPTION) {
|
|
28864
|
-
throw error;
|
|
28865
|
-
}
|
|
28866
|
-
} // Try getting the name and performing forward lookup; allowing wildcards
|
|
28867
|
-
|
|
28868
|
-
|
|
28869
|
-
try {
|
|
28870
|
-
// keccak("name(bytes32)")
|
|
28871
|
-
const name = _parseString(yield this.call({
|
|
28872
|
-
to: resolverAddress,
|
|
28873
|
-
data: "0x691f3431" + namehash(node).substring(2)
|
|
28874
|
-
}), 0);
|
|
28875
|
-
|
|
28876
|
-
resolver = yield this.getResolver(name);
|
|
28877
|
-
} catch (error) {
|
|
28878
|
-
if (error.code !== Logger.errors.CALL_EXCEPTION) {
|
|
28879
|
-
throw error;
|
|
28880
|
-
}
|
|
28881
|
-
|
|
28882
28403
|
return null;
|
|
28883
28404
|
}
|
|
28405
|
+
|
|
28406
|
+
resolver = new Resolver(this, resolverAddress, "_", address);
|
|
28884
28407
|
} else {
|
|
28885
|
-
// ENS name; forward lookup
|
|
28408
|
+
// ENS name; forward lookup
|
|
28886
28409
|
resolver = yield this.getResolver(nameOrAddress);
|
|
28887
28410
|
|
|
28888
28411
|
if (!resolver) {
|
|
@@ -29729,9 +29252,9 @@
|
|
|
29729
29252
|
}
|
|
29730
29253
|
|
|
29731
29254
|
checkProperties(transaction, allowed);
|
|
29732
|
-
const result = {}; //
|
|
29255
|
+
const result = {}; // Some nodes (INFURA ropsten; INFURA mainnet is fine) do not like leading zeros.
|
|
29733
29256
|
|
|
29734
|
-
["
|
|
29257
|
+
["gasLimit", "gasPrice", "type", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "value"].forEach(function (key) {
|
|
29735
29258
|
if (transaction[key] == null) {
|
|
29736
29259
|
return;
|
|
29737
29260
|
}
|
|
@@ -30206,7 +29729,7 @@
|
|
|
30206
29729
|
};
|
|
30207
29730
|
var options = {
|
|
30208
29731
|
resume: false,
|
|
30209
|
-
endpoint: "
|
|
29732
|
+
endpoint: "".concat(apiUrl).concat(UPLOADER_API_BASE),
|
|
30210
29733
|
headers: getAuthorizationHeader(accessToken),
|
|
30211
29734
|
chunkSize: 28 * 1024,
|
|
30212
29735
|
uploadLengthDeferred: true,
|
|
@@ -30253,7 +29776,7 @@
|
|
|
30253
29776
|
|
|
30254
29777
|
function getPublishedVideoUrl(apiUrl, uploadUrl) {
|
|
30255
29778
|
var videoId = uploadUrl.split("/").pop();
|
|
30256
|
-
var publishedUrl = "".concat(
|
|
29779
|
+
var publishedUrl = "".concat(undefined, "/").concat(videoId) || "".concat(apiUrl).concat(VIDEO_PUBLISHED_BASE).concat(videoId);
|
|
30257
29780
|
return publishedUrl;
|
|
30258
29781
|
}
|
|
30259
29782
|
|
|
@@ -30617,7 +30140,7 @@
|
|
|
30617
30140
|
|
|
30618
30141
|
|
|
30619
30142
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
30620
|
-
var TypeError$
|
|
30143
|
+
var TypeError$7 = global$1.TypeError;
|
|
30621
30144
|
|
|
30622
30145
|
var createMethod$1 = function (TYPE) {
|
|
30623
30146
|
var IS_TO_ARRAY = TYPE == 0;
|
|
@@ -30657,7 +30180,7 @@
|
|
|
30657
30180
|
var loop = function () {
|
|
30658
30181
|
try {
|
|
30659
30182
|
if (IS_TO_ARRAY && index > MAX_SAFE_INTEGER && MAPPING) {
|
|
30660
|
-
throw TypeError$
|
|
30183
|
+
throw TypeError$7('The allowed number of iterations has been exceeded');
|
|
30661
30184
|
}
|
|
30662
30185
|
|
|
30663
30186
|
Promise.resolve(anObject(functionCall(next, iterator))).then(function (step) {
|
|
@@ -30715,19 +30238,18 @@
|
|
|
30715
30238
|
_export({
|
|
30716
30239
|
target: 'AsyncIterator',
|
|
30717
30240
|
proto: true,
|
|
30718
|
-
real: true
|
|
30719
|
-
forced: true
|
|
30241
|
+
real: true
|
|
30720
30242
|
}, {
|
|
30721
30243
|
find: function find(fn) {
|
|
30722
30244
|
return $find(this, fn);
|
|
30723
30245
|
}
|
|
30724
30246
|
});
|
|
30725
30247
|
|
|
30726
|
-
var TypeError$
|
|
30248
|
+
var TypeError$6 = global$1.TypeError;
|
|
30727
30249
|
|
|
30728
30250
|
var anInstance = function (it, Prototype) {
|
|
30729
30251
|
if (objectIsPrototypeOf(Prototype, it)) return it;
|
|
30730
|
-
throw TypeError$
|
|
30252
|
+
throw TypeError$6('Incorrect invocation');
|
|
30731
30253
|
};
|
|
30732
30254
|
|
|
30733
30255
|
var correctPrototypeGetter = !fails(function () {
|
|
@@ -30839,12 +30361,12 @@
|
|
|
30839
30361
|
if (it != undefined) return getMethod(it, ITERATOR) || getMethod(it, '@@iterator') || iterators[classof(it)];
|
|
30840
30362
|
};
|
|
30841
30363
|
|
|
30842
|
-
var TypeError$
|
|
30364
|
+
var TypeError$5 = global$1.TypeError;
|
|
30843
30365
|
|
|
30844
30366
|
var getIterator = function (argument, usingIterator) {
|
|
30845
30367
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
|
|
30846
30368
|
if (aCallable(iteratorMethod)) return anObject(functionCall(iteratorMethod, argument));
|
|
30847
|
-
throw TypeError$
|
|
30369
|
+
throw TypeError$5(tryToString(argument) + ' is not iterable');
|
|
30848
30370
|
};
|
|
30849
30371
|
|
|
30850
30372
|
var iteratorClose = function (iterator, kind, value) {
|
|
@@ -30871,7 +30393,7 @@
|
|
|
30871
30393
|
return value;
|
|
30872
30394
|
};
|
|
30873
30395
|
|
|
30874
|
-
var TypeError$
|
|
30396
|
+
var TypeError$4 = global$1.TypeError;
|
|
30875
30397
|
|
|
30876
30398
|
var Result = function (stopped, result) {
|
|
30877
30399
|
this.stopped = stopped;
|
|
@@ -30906,7 +30428,7 @@
|
|
|
30906
30428
|
iterator = iterable;
|
|
30907
30429
|
} else {
|
|
30908
30430
|
iterFn = getIteratorMethod(iterable);
|
|
30909
|
-
if (!iterFn) throw TypeError$
|
|
30431
|
+
if (!iterFn) throw TypeError$4(tryToString(iterable) + ' is not iterable'); // optimisation for array iterators
|
|
30910
30432
|
|
|
30911
30433
|
if (isArrayIteratorMethod(iterFn)) {
|
|
30912
30434
|
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
@@ -30938,8 +30460,7 @@
|
|
|
30938
30460
|
_export({
|
|
30939
30461
|
target: 'Iterator',
|
|
30940
30462
|
proto: true,
|
|
30941
|
-
real: true
|
|
30942
|
-
forced: true
|
|
30463
|
+
real: true
|
|
30943
30464
|
}, {
|
|
30944
30465
|
find: function find(fn) {
|
|
30945
30466
|
anObject(this);
|
|
@@ -31101,8 +30622,7 @@
|
|
|
31101
30622
|
_export({
|
|
31102
30623
|
target: 'AsyncIterator',
|
|
31103
30624
|
proto: true,
|
|
31104
|
-
real: true
|
|
31105
|
-
forced: true
|
|
30625
|
+
real: true
|
|
31106
30626
|
}, {
|
|
31107
30627
|
map: function map(mapper) {
|
|
31108
30628
|
return new AsyncIteratorProxy({
|
|
@@ -31186,8 +30706,7 @@
|
|
|
31186
30706
|
_export({
|
|
31187
30707
|
target: 'Iterator',
|
|
31188
30708
|
proto: true,
|
|
31189
|
-
real: true
|
|
31190
|
-
forced: true
|
|
30709
|
+
real: true
|
|
31191
30710
|
}, {
|
|
31192
30711
|
map: function map(mapper) {
|
|
31193
30712
|
return new IteratorProxy({
|
|
@@ -31388,7 +30907,7 @@
|
|
|
31388
30907
|
}));
|
|
31389
30908
|
}
|
|
31390
30909
|
|
|
31391
|
-
function
|
|
30910
|
+
function S(n,t){for(var e in t)n[e]=t[e];return n}function C(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function E(n){this.props=n;}(E.prototype=new _).isPureReactComponent=!0,E.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var w=l$3.__b;l$3.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),w&&w(n);};var A=l$3.__e;l$3.__e=function(n,t,e){if(n.then)for(var r,u=t;u=u.__;)if((r=u.__c)&&r.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),r.__c(n,t);A(n,t,e);};var O=l$3.unmount;function L(){this.__u=0,this.t=null,this.__b=null;}function U(n){var t=n.__.__c;return t&&t.__e&&t.__e(n)}function M(){this.u=null,this.o=null;}l$3.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),O&&O(n);},(L.prototype=new _).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=U(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l());};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__e){var n=r.state.__e;r.__v.__k[0]=function n(t,e,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return n(t,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate();}},c=!0===t.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),n.then(i,i);},L.prototype.componentWillUnmount=function(){this.t=[];},L.prototype.render=function(n,t){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function n(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),t.__c.__H=null),null!=(t=S({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return n(t,e,r)})),t}(this.__b,e,r.__O=r.__P);}this.__b=null;}var u=t.__e&&v$2(d$2,null,n.fallback);return u&&(u.__h=null),[v$2(d$2,null,t.__e?null:n.children),u]};var T=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};(M.prototype=new _).__e=function(n){var t=this,e=U(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),T(t,n,r)):u();};e?e(o):o();}},M.prototype.render=function(n){this.u=null,this.o=new Map;var t=A$2(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},M.prototype.componentDidUpdate=M.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){T(n,e,t);});};var j$1="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,P=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,V="undefined"!=typeof document,z=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};_.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(_.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(t){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:t});}});});var H=l$3.event;function Z(){}function Y(){return this.cancelBubble}function q(){return this.defaultPrevented}l$3.event=function(n){return H&&(n=H(n)),n.persist=Z,n.isPropagationStopped=Y,n.isDefaultPrevented=q,n.nativeEvent=n};var J={configurable:!0,get:function(){return this.class}},K=l$3.vnode;l$3.vnode=function(n){var t=n.type,e=n.props,r=e;if("string"==typeof t){var u=-1===t.indexOf("-");for(var o in r={},e){var i=e[o];V&&"children"===o&&"noscript"===t||"value"===o&&"defaultValue"in e&&null==i||("defaultValue"===o&&"value"in e&&null==e.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!z(e.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():u&&P.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i);}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=A$2(e.children).forEach(function(n){n.props.selected=-1!=r.value.indexOf(n.props.value);})),"select"==t&&null!=r.defaultValue&&(r.value=A$2(e.children).forEach(function(n){n.props.selected=r.multiple?-1!=r.defaultValue.indexOf(n.props.value):r.defaultValue==n.props.value;})),n.props=r,e.class!=e.className&&(J.enumerable="className"in e,null!=e.className&&(r.class=e.className),Object.defineProperty(r,"className",J));}n.$$typeof=j$1,K&&K(n);};var Q=l$3.__r;l$3.__r=function(n){Q&&Q(n);};function en(n){return !!n&&n.$$typeof===j$1}
|
|
31392
30911
|
|
|
31393
30912
|
var isHTMLElement = value => value instanceof HTMLElement;
|
|
31394
30913
|
|
|
@@ -33046,6 +32565,69 @@
|
|
|
33046
32565
|
}
|
|
33047
32566
|
});
|
|
33048
32567
|
|
|
32568
|
+
var $includes = arrayIncludes.includes;
|
|
32569
|
+
|
|
32570
|
+
// `Array.prototype.includes` method
|
|
32571
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
32572
|
+
|
|
32573
|
+
|
|
32574
|
+
_export({
|
|
32575
|
+
target: 'Array',
|
|
32576
|
+
proto: true
|
|
32577
|
+
}, {
|
|
32578
|
+
includes: function includes(el
|
|
32579
|
+
/* , fromIndex = 0 */
|
|
32580
|
+
) {
|
|
32581
|
+
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
32582
|
+
}
|
|
32583
|
+
}); // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
32584
|
+
|
|
32585
|
+
addToUnscopables('includes');
|
|
32586
|
+
|
|
32587
|
+
var TypeError$3 = global$1.TypeError;
|
|
32588
|
+
|
|
32589
|
+
var notARegexp = function (it) {
|
|
32590
|
+
if (isRegexp(it)) {
|
|
32591
|
+
throw TypeError$3("The method doesn't accept regular expressions");
|
|
32592
|
+
}
|
|
32593
|
+
|
|
32594
|
+
return it;
|
|
32595
|
+
};
|
|
32596
|
+
|
|
32597
|
+
var MATCH = wellKnownSymbol('match');
|
|
32598
|
+
|
|
32599
|
+
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
32600
|
+
var regexp = /./;
|
|
32601
|
+
|
|
32602
|
+
try {
|
|
32603
|
+
'/./'[METHOD_NAME](regexp);
|
|
32604
|
+
} catch (error1) {
|
|
32605
|
+
try {
|
|
32606
|
+
regexp[MATCH] = false;
|
|
32607
|
+
return '/./'[METHOD_NAME](regexp);
|
|
32608
|
+
} catch (error2) {
|
|
32609
|
+
/* empty */
|
|
32610
|
+
}
|
|
32611
|
+
}
|
|
32612
|
+
|
|
32613
|
+
return false;
|
|
32614
|
+
};
|
|
32615
|
+
|
|
32616
|
+
var stringIndexOf = functionUncurryThis(''.indexOf); // `String.prototype.includes` method
|
|
32617
|
+
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
32618
|
+
|
|
32619
|
+
_export({
|
|
32620
|
+
target: 'String',
|
|
32621
|
+
proto: true,
|
|
32622
|
+
forced: !correctIsRegexpLogic('includes')
|
|
32623
|
+
}, {
|
|
32624
|
+
includes: function includes(searchString
|
|
32625
|
+
/* , position = 0 */
|
|
32626
|
+
) {
|
|
32627
|
+
return !!~stringIndexOf(toString$2(requireObjectCoercible(this)), toString$2(notARegexp(searchString)), arguments.length > 1 ? arguments[1] : undefined);
|
|
32628
|
+
}
|
|
32629
|
+
});
|
|
32630
|
+
|
|
33049
32631
|
var abi = [
|
|
33050
32632
|
{
|
|
33051
32633
|
inputs: [
|
|
@@ -33920,14 +33502,14 @@
|
|
|
33920
33502
|
mumbai: {
|
|
33921
33503
|
chainId: 80001,
|
|
33922
33504
|
// 80001
|
|
33923
|
-
chainName: "
|
|
33505
|
+
chainName: "Mumbai",
|
|
33924
33506
|
nativeCurrency: {
|
|
33925
|
-
name: "
|
|
33926
|
-
symbol: "
|
|
33507
|
+
name: "MATIC",
|
|
33508
|
+
symbol: "MATIC",
|
|
33927
33509
|
decimals: 18
|
|
33928
33510
|
},
|
|
33929
33511
|
rpcUrls: ["https://rpc-mumbai.maticvigil.com"],
|
|
33930
|
-
blockExplorerUrls: ["https://mumbai.polygonscan.com
|
|
33512
|
+
blockExplorerUrls: ["https://mumbai.polygonscan.com"]
|
|
33931
33513
|
},
|
|
33932
33514
|
goerli: {
|
|
33933
33515
|
chainId: 5
|
|
@@ -33963,7 +33545,13 @@
|
|
|
33963
33545
|
// @ts-ignore
|
|
33964
33546
|
|
|
33965
33547
|
|
|
33966
|
-
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;
|
|
33548
|
+
if (!((_window = window) !== null && _window !== void 0 && _window.ethereum || (_window2 = window) !== null && _window2 !== void 0 && _window2.web3 || window.utuWeb3Provider) || !props[ATTR_TARGET_UUID] || !isAddress(props[ATTR_TARGET_UUID]) || !props[ATTR_TRANSACTION_ID]) return null;
|
|
33549
|
+
|
|
33550
|
+
var getProvider = function getProvider() {
|
|
33551
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
33552
|
+
// @ts-ignore
|
|
33553
|
+
return window.utuWeb3Provider || window.ethereum;
|
|
33554
|
+
};
|
|
33967
33555
|
|
|
33968
33556
|
var requestNetworkChange = /*#__PURE__*/function () {
|
|
33969
33557
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(provider, selectedNetwork) {
|
|
@@ -34028,7 +33616,7 @@
|
|
|
34028
33616
|
case 0:
|
|
34029
33617
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
34030
33618
|
// @ts-ignore
|
|
34031
|
-
provider =
|
|
33619
|
+
provider = getProvider();
|
|
34032
33620
|
network = String(props[ATTR_ENDORSEMENT_NETWORK]).toLowerCase().trim() || DEFAULT_NETWORK;
|
|
34033
33621
|
selectedNetwork = networks[network] || networks[DEFAULT_NETWORK];
|
|
34034
33622
|
_context3.prev = 3;
|
|
@@ -34036,26 +33624,27 @@
|
|
|
34036
33624
|
return requestNetworkChange(provider, selectedNetwork);
|
|
34037
33625
|
|
|
34038
33626
|
case 6:
|
|
34039
|
-
_context3.next =
|
|
33627
|
+
_context3.next = 16;
|
|
34040
33628
|
break;
|
|
34041
33629
|
|
|
34042
33630
|
case 8:
|
|
34043
33631
|
_context3.prev = 8;
|
|
34044
33632
|
_context3.t0 = _context3["catch"](3);
|
|
33633
|
+
console.log(_context3.t0, _context3.t0.message);
|
|
34045
33634
|
|
|
34046
|
-
if (!(_context3.t0.code === 4902)) {
|
|
34047
|
-
_context3.next =
|
|
33635
|
+
if (!(_context3.t0.code === 4902 || _context3.t0.message.toLowerCase().includes("unrecognized"))) {
|
|
33636
|
+
_context3.next = 16;
|
|
34048
33637
|
break;
|
|
34049
33638
|
}
|
|
34050
33639
|
|
|
34051
|
-
_context3.next =
|
|
33640
|
+
_context3.next = 14;
|
|
34052
33641
|
return addNetwork(provider, selectedNetwork);
|
|
34053
33642
|
|
|
34054
|
-
case
|
|
34055
|
-
_context3.next =
|
|
33643
|
+
case 14:
|
|
33644
|
+
_context3.next = 16;
|
|
34056
33645
|
return requestNetworkChange(provider, selectedNetwork);
|
|
34057
33646
|
|
|
34058
|
-
case
|
|
33647
|
+
case 16:
|
|
34059
33648
|
case "end":
|
|
34060
33649
|
return _context3.stop();
|
|
34061
33650
|
}
|
|
@@ -34079,23 +33668,25 @@
|
|
|
34079
33668
|
return switchNetwork();
|
|
34080
33669
|
|
|
34081
33670
|
case 2:
|
|
34082
|
-
|
|
34083
|
-
|
|
34084
|
-
|
|
33671
|
+
_context4.next = 4;
|
|
33672
|
+
return new Web3Provider(getProvider());
|
|
33673
|
+
|
|
33674
|
+
case 4:
|
|
33675
|
+
web3Provider = _context4.sent;
|
|
34085
33676
|
signer = web3Provider.getSigner();
|
|
34086
33677
|
contract = new Contract(UTT_CONTRACT_ADDRESS, abi, signer);
|
|
34087
|
-
_context4.next =
|
|
33678
|
+
_context4.next = 9;
|
|
34088
33679
|
return contract.endorse(address, String(amount), transactionId);
|
|
34089
33680
|
|
|
34090
|
-
case
|
|
33681
|
+
case 9:
|
|
34091
33682
|
transaction = _context4.sent;
|
|
34092
|
-
_context4.next =
|
|
33683
|
+
_context4.next = 12;
|
|
34093
33684
|
return transaction.wait();
|
|
34094
33685
|
|
|
34095
|
-
case
|
|
33686
|
+
case 12:
|
|
34096
33687
|
return _context4.abrupt("return", transaction);
|
|
34097
33688
|
|
|
34098
|
-
case
|
|
33689
|
+
case 13:
|
|
34099
33690
|
case "end":
|
|
34100
33691
|
return _context4.stop();
|
|
34101
33692
|
}
|
|
@@ -34228,8 +33819,8 @@
|
|
|
34228
33819
|
u,
|
|
34229
33820
|
t,
|
|
34230
33821
|
i,
|
|
34231
|
-
o,
|
|
34232
33822
|
r,
|
|
33823
|
+
o,
|
|
34233
33824
|
f,
|
|
34234
33825
|
e = {},
|
|
34235
33826
|
c = [],
|
|
@@ -34241,29 +33832,29 @@
|
|
|
34241
33832
|
return n;
|
|
34242
33833
|
}
|
|
34243
33834
|
|
|
34244
|
-
function
|
|
33835
|
+
function v(n) {
|
|
34245
33836
|
var l = n.parentNode;
|
|
34246
33837
|
l && l.removeChild(n);
|
|
34247
33838
|
}
|
|
34248
33839
|
|
|
34249
|
-
function
|
|
33840
|
+
function h(l, u, t) {
|
|
34250
33841
|
var i,
|
|
34251
|
-
o,
|
|
34252
33842
|
r,
|
|
33843
|
+
o,
|
|
34253
33844
|
f = {};
|
|
34254
33845
|
|
|
34255
|
-
for (
|
|
33846
|
+
for (o in u) "key" == o ? i = u[o] : "ref" == o ? r = u[o] : f[o] = u[o];
|
|
34256
33847
|
|
|
34257
|
-
if (arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : t), "function" == typeof l && null != l.defaultProps) for (
|
|
34258
|
-
return
|
|
33848
|
+
if (arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : t), "function" == typeof l && null != l.defaultProps) for (o in l.defaultProps) void 0 === f[o] && (f[o] = l.defaultProps[o]);
|
|
33849
|
+
return p(l, f, i, r, null);
|
|
34259
33850
|
}
|
|
34260
33851
|
|
|
34261
|
-
function
|
|
33852
|
+
function p(n, t, i, r, o) {
|
|
34262
33853
|
var f = {
|
|
34263
33854
|
type: n,
|
|
34264
33855
|
props: t,
|
|
34265
33856
|
key: i,
|
|
34266
|
-
ref:
|
|
33857
|
+
ref: r,
|
|
34267
33858
|
__k: null,
|
|
34268
33859
|
__: null,
|
|
34269
33860
|
__b: 0,
|
|
@@ -34272,9 +33863,9 @@
|
|
|
34272
33863
|
__c: null,
|
|
34273
33864
|
__h: null,
|
|
34274
33865
|
constructor: void 0,
|
|
34275
|
-
__v: null ==
|
|
33866
|
+
__v: null == o ? ++u : o
|
|
34276
33867
|
};
|
|
34277
|
-
return null ==
|
|
33868
|
+
return null == o && null != l.vnode && l.vnode(f), f;
|
|
34278
33869
|
}
|
|
34279
33870
|
|
|
34280
33871
|
function y(n) {
|
|
@@ -34307,21 +33898,21 @@
|
|
|
34307
33898
|
}
|
|
34308
33899
|
|
|
34309
33900
|
function x(n) {
|
|
34310
|
-
(!n.__d && (n.__d = !0) && i.push(n) && !b.__r++ ||
|
|
33901
|
+
(!n.__d && (n.__d = !0) && i.push(n) && !b.__r++ || o !== l.debounceRendering) && ((o = l.debounceRendering) || r)(b);
|
|
34311
33902
|
}
|
|
34312
33903
|
|
|
34313
33904
|
function b() {
|
|
34314
33905
|
for (var n; b.__r = i.length;) n = i.sort(function (n, l) {
|
|
34315
33906
|
return n.__v.__b - l.__v.__b;
|
|
34316
33907
|
}), i = [], n.some(function (n) {
|
|
34317
|
-
var l, u, t, i,
|
|
34318
|
-
n.__d && (
|
|
33908
|
+
var l, u, t, i, r, o;
|
|
33909
|
+
n.__d && (r = (i = (l = n).__v).__e, (o = l.__P) && (u = [], (t = a({}, i)).__v = i.__v + 1, I(o, i, t, l.__n, void 0 !== o.ownerSVGElement, null != i.__h ? [r] : null, u, null == r ? _(i) : r, i.__h), T(u, i), i.__e != r && k(i)));
|
|
34319
33910
|
});
|
|
34320
33911
|
}
|
|
34321
33912
|
|
|
34322
|
-
function m(n, l, u, t, i,
|
|
34323
|
-
var
|
|
34324
|
-
|
|
33913
|
+
function m(n, l, u, t, i, r, o, f, s, a) {
|
|
33914
|
+
var v,
|
|
33915
|
+
h,
|
|
34325
33916
|
d,
|
|
34326
33917
|
k,
|
|
34327
33918
|
x,
|
|
@@ -34330,47 +33921,47 @@
|
|
|
34330
33921
|
A = t && t.__k || c,
|
|
34331
33922
|
P = A.length;
|
|
34332
33923
|
|
|
34333
|
-
for (u.__k = [],
|
|
33924
|
+
for (u.__k = [], v = 0; v < l.length; v++) if (null != (k = u.__k[v] = null == (k = l[v]) || "boolean" == typeof k ? null : "string" == typeof k || "number" == typeof k || "bigint" == typeof k ? p(null, k, null, null, k) : Array.isArray(k) ? p(y, {
|
|
34334
33925
|
children: k
|
|
34335
|
-
}, null, null, null) : k.__b > 0 ?
|
|
34336
|
-
if (k.__ = u, k.__b = u.__b + 1, null === (d = A[
|
|
34337
|
-
if ((d = A[
|
|
34338
|
-
A[
|
|
33926
|
+
}, null, null, null) : k.__b > 0 ? p(k.type, k.props, k.key, null, k.__v) : k)) {
|
|
33927
|
+
if (k.__ = u, k.__b = u.__b + 1, null === (d = A[v]) || d && k.key == d.key && k.type === d.type) A[v] = void 0;else for (h = 0; h < P; h++) {
|
|
33928
|
+
if ((d = A[h]) && k.key == d.key && k.type === d.type) {
|
|
33929
|
+
A[h] = void 0;
|
|
34339
33930
|
break;
|
|
34340
33931
|
}
|
|
34341
33932
|
|
|
34342
33933
|
d = null;
|
|
34343
33934
|
}
|
|
34344
|
-
I(n, k, d = d || e, i,
|
|
33935
|
+
I(n, k, d = d || e, i, r, o, f, s, a), x = k.__e, (h = k.ref) && d.ref != h && (m || (m = []), d.ref && m.push(d.ref, null, k), m.push(h, k.__c || x, k)), null != x ? (null == b && (b = x), "function" == typeof k.type && k.__k === d.__k ? k.__d = s = g(k, s, n) : s = w(n, k, d, A, x, s), "function" == typeof u.type && (u.__d = s)) : s && d.__e == s && s.parentNode != n && (s = _(d));
|
|
34345
33936
|
}
|
|
34346
33937
|
|
|
34347
|
-
for (u.__e = b,
|
|
33938
|
+
for (u.__e = b, v = P; v--;) null != A[v] && ("function" == typeof u.type && null != A[v].__e && A[v].__e == u.__d && (u.__d = _(t, v + 1)), L(A[v], A[v]));
|
|
34348
33939
|
|
|
34349
|
-
if (m) for (
|
|
33940
|
+
if (m) for (v = 0; v < m.length; v++) z(m[v], m[++v], m[++v]);
|
|
34350
33941
|
}
|
|
34351
33942
|
|
|
34352
33943
|
function g(n, l, u) {
|
|
34353
|
-
for (var t, i = n.__k,
|
|
33944
|
+
for (var t, i = n.__k, r = 0; i && r < i.length; r++) (t = i[r]) && (t.__ = n, l = "function" == typeof t.type ? g(t, l, u) : w(u, t, t, i, t.__e, l));
|
|
34354
33945
|
|
|
34355
33946
|
return l;
|
|
34356
33947
|
}
|
|
34357
33948
|
|
|
34358
|
-
function w(n, l, u, t, i,
|
|
34359
|
-
var
|
|
34360
|
-
if (void 0 !== l.__d)
|
|
34361
|
-
for (f =
|
|
33949
|
+
function w(n, l, u, t, i, r) {
|
|
33950
|
+
var o, f, e;
|
|
33951
|
+
if (void 0 !== l.__d) o = l.__d, l.__d = void 0;else if (null == u || i != r || null == i.parentNode) n: if (null == r || r.parentNode !== n) n.appendChild(i), o = null;else {
|
|
33952
|
+
for (f = r, e = 0; (f = f.nextSibling) && e < t.length; e += 2) if (f == i) break n;
|
|
34362
33953
|
|
|
34363
|
-
n.insertBefore(i,
|
|
33954
|
+
n.insertBefore(i, r), o = r;
|
|
34364
33955
|
}
|
|
34365
|
-
return void 0 !==
|
|
33956
|
+
return void 0 !== o ? o : i.nextSibling;
|
|
34366
33957
|
}
|
|
34367
33958
|
|
|
34368
33959
|
function A(n, l, u, t, i) {
|
|
34369
|
-
var
|
|
33960
|
+
var r;
|
|
34370
33961
|
|
|
34371
|
-
for (
|
|
33962
|
+
for (r in u) "children" === r || "key" === r || r in l || C(n, r, null, u[r], t);
|
|
34372
33963
|
|
|
34373
|
-
for (
|
|
33964
|
+
for (r in l) i && "function" != typeof l[r] || "children" === r || "key" === r || "value" === r || "checked" === r || u[r] === l[r] || C(n, r, l[r], u[r], t);
|
|
34374
33965
|
}
|
|
34375
33966
|
|
|
34376
33967
|
function P(n, l, u) {
|
|
@@ -34378,14 +33969,14 @@
|
|
|
34378
33969
|
}
|
|
34379
33970
|
|
|
34380
33971
|
function C(n, l, u, t, i) {
|
|
34381
|
-
var
|
|
33972
|
+
var r;
|
|
34382
33973
|
|
|
34383
33974
|
n: if ("style" === l) {
|
|
34384
33975
|
if ("string" == typeof u) n.style.cssText = u;else {
|
|
34385
33976
|
if ("string" == typeof t && (n.style.cssText = t = ""), t) for (l in t) u && l in u || P(n.style, l, "");
|
|
34386
33977
|
if (u) for (l in u) t && u[l] === t[l] || P(n.style, l, u[l]);
|
|
34387
33978
|
}
|
|
34388
|
-
} else if ("o" === l[0] && "n" === l[1])
|
|
33979
|
+
} else if ("o" === l[0] && "n" === l[1]) r = l !== (l = l.replace(/Capture$/, "")), l = l.toLowerCase() in n ? l.toLowerCase().slice(2) : l.slice(2), n.l || (n.l = {}), n.l[l + r] = u, u ? t || n.addEventListener(l, r ? H : $, r) : n.removeEventListener(l, r ? H : $, r);else if ("dangerouslySetInnerHTML" !== l) {
|
|
34389
33980
|
if (i) l = l.replace(/xlink[H:h]/, "h").replace(/sName$/, "s");else if ("href" !== l && "list" !== l && "form" !== l && "tabIndex" !== l && "download" !== l && l in n) try {
|
|
34390
33981
|
n[l] = null == u ? "" : u;
|
|
34391
33982
|
break n;
|
|
@@ -34402,11 +33993,11 @@
|
|
|
34402
33993
|
this.l[n.type + !0](l.event ? l.event(n) : n);
|
|
34403
33994
|
}
|
|
34404
33995
|
|
|
34405
|
-
function I(n, u, t, i,
|
|
33996
|
+
function I(n, u, t, i, r, o, f, e, c) {
|
|
34406
33997
|
var s,
|
|
34407
|
-
p,
|
|
34408
33998
|
v,
|
|
34409
33999
|
h,
|
|
34000
|
+
p,
|
|
34410
34001
|
_,
|
|
34411
34002
|
k,
|
|
34412
34003
|
x,
|
|
@@ -34417,28 +34008,28 @@
|
|
|
34417
34008
|
P = u.type;
|
|
34418
34009
|
|
|
34419
34010
|
if (void 0 !== u.constructor) return null;
|
|
34420
|
-
null != t.__h && (c = t.__h, e = u.__e = t.__e, u.__h = null,
|
|
34011
|
+
null != t.__h && (c = t.__h, e = u.__e = t.__e, u.__h = null, o = [e]), (s = l.__b) && s(u);
|
|
34421
34012
|
|
|
34422
34013
|
try {
|
|
34423
34014
|
n: if ("function" == typeof P) {
|
|
34424
|
-
if (b = u.props, g = (s = P.contextType) && i[s.__c], w = s ? g ? g.props.value : s.__ : i, t.__c ? x = (
|
|
34425
|
-
if (null == P.getDerivedStateFromProps && b !==
|
|
34426
|
-
|
|
34015
|
+
if (b = u.props, g = (s = P.contextType) && i[s.__c], w = s ? g ? g.props.value : s.__ : i, t.__c ? x = (v = u.__c = t.__c).__ = v.__E : ("prototype" in P && P.prototype.render ? u.__c = v = new P(b, w) : (u.__c = v = new d(b, w), v.constructor = P, v.render = M), g && g.sub(v), v.props = b, v.state || (v.state = {}), v.context = w, v.__n = i, h = v.__d = !0, v.__h = []), null == v.__s && (v.__s = v.state), null != P.getDerivedStateFromProps && (v.__s == v.state && (v.__s = a({}, v.__s)), a(v.__s, P.getDerivedStateFromProps(b, v.__s))), p = v.props, _ = v.state, h) null == P.getDerivedStateFromProps && null != v.componentWillMount && v.componentWillMount(), null != v.componentDidMount && v.__h.push(v.componentDidMount);else {
|
|
34016
|
+
if (null == P.getDerivedStateFromProps && b !== p && null != v.componentWillReceiveProps && v.componentWillReceiveProps(b, w), !v.__e && null != v.shouldComponentUpdate && !1 === v.shouldComponentUpdate(b, v.__s, w) || u.__v === t.__v) {
|
|
34017
|
+
v.props = b, v.state = v.__s, u.__v !== t.__v && (v.__d = !1), v.__v = u, u.__e = t.__e, u.__k = t.__k, u.__k.forEach(function (n) {
|
|
34427
34018
|
n && (n.__ = u);
|
|
34428
|
-
}),
|
|
34019
|
+
}), v.__h.length && f.push(v);
|
|
34429
34020
|
break n;
|
|
34430
34021
|
}
|
|
34431
34022
|
|
|
34432
|
-
null !=
|
|
34433
|
-
|
|
34023
|
+
null != v.componentWillUpdate && v.componentWillUpdate(b, v.__s, w), null != v.componentDidUpdate && v.__h.push(function () {
|
|
34024
|
+
v.componentDidUpdate(p, _, k);
|
|
34434
34025
|
});
|
|
34435
34026
|
}
|
|
34436
|
-
|
|
34437
|
-
} else null ==
|
|
34027
|
+
v.context = w, v.props = b, v.state = v.__s, (s = l.__r) && s(u), v.__d = !1, v.__v = u, v.__P = n, s = v.render(v.props, v.state, v.context), v.state = v.__s, null != v.getChildContext && (i = a(a({}, i), v.getChildContext())), h || null == v.getSnapshotBeforeUpdate || (k = v.getSnapshotBeforeUpdate(p, _)), A = null != s && s.type === y && null == s.key ? s.props.children : s, m(n, Array.isArray(A) ? A : [A], u, t, i, r, o, f, e, c), v.base = u.__e, u.__h = null, v.__h.length && f.push(v), x && (v.__E = v.__ = null), v.__e = !1;
|
|
34028
|
+
} else null == o && u.__v === t.__v ? (u.__k = t.__k, u.__e = t.__e) : u.__e = j(t.__e, u, t, i, r, o, f, c);
|
|
34438
34029
|
|
|
34439
34030
|
(s = l.diffed) && s(u);
|
|
34440
34031
|
} catch (n) {
|
|
34441
|
-
u.__v = null, (c || null !=
|
|
34032
|
+
u.__v = null, (c || null != o) && (u.__e = e, u.__h = !!c, o[o.indexOf(e)] = null), l.__e(n, u, t);
|
|
34442
34033
|
}
|
|
34443
34034
|
}
|
|
34444
34035
|
|
|
@@ -34454,32 +34045,32 @@
|
|
|
34454
34045
|
});
|
|
34455
34046
|
}
|
|
34456
34047
|
|
|
34457
|
-
function j(l, u, t, i,
|
|
34048
|
+
function j(l, u, t, i, r, o, f, c) {
|
|
34458
34049
|
var s,
|
|
34459
34050
|
a,
|
|
34460
|
-
|
|
34461
|
-
|
|
34051
|
+
h,
|
|
34052
|
+
p = t.props,
|
|
34462
34053
|
y = u.props,
|
|
34463
34054
|
d = u.type,
|
|
34464
34055
|
k = 0;
|
|
34465
|
-
if ("svg" === d && (
|
|
34466
|
-
l = s,
|
|
34056
|
+
if ("svg" === d && (r = !0), null != o) for (; k < o.length; k++) if ((s = o[k]) && "setAttribute" in s == !!d && (d ? s.localName === d : 3 === s.nodeType)) {
|
|
34057
|
+
l = s, o[k] = null;
|
|
34467
34058
|
break;
|
|
34468
34059
|
}
|
|
34469
34060
|
|
|
34470
34061
|
if (null == l) {
|
|
34471
34062
|
if (null === d) return document.createTextNode(y);
|
|
34472
|
-
l =
|
|
34063
|
+
l = r ? document.createElementNS("http://www.w3.org/2000/svg", d) : document.createElement(d, y.is && y), o = null, c = !1;
|
|
34473
34064
|
}
|
|
34474
34065
|
|
|
34475
|
-
if (null === d)
|
|
34476
|
-
if (
|
|
34477
|
-
if (null !=
|
|
34478
|
-
(
|
|
34066
|
+
if (null === d) p === y || c && l.data === y || (l.data = y);else {
|
|
34067
|
+
if (o = o && n.call(l.childNodes), a = (p = t.props || e).dangerouslySetInnerHTML, h = y.dangerouslySetInnerHTML, !c) {
|
|
34068
|
+
if (null != o) for (p = {}, k = 0; k < l.attributes.length; k++) p[l.attributes[k].name] = l.attributes[k].value;
|
|
34069
|
+
(h || a) && (h && (a && h.__html == a.__html || h.__html === l.innerHTML) || (l.innerHTML = h && h.__html || ""));
|
|
34479
34070
|
}
|
|
34480
34071
|
|
|
34481
|
-
if (A(l, y,
|
|
34482
|
-
c || ("value" in y && void 0 !== (k = y.value) && (k !==
|
|
34072
|
+
if (A(l, y, p, r, c), h) u.__k = [];else if (k = u.props.children, m(l, Array.isArray(k) ? k : [k], u, t, i, r && "foreignObject" !== d, o, f, o ? o[0] : t.__k && _(t, 0), c), null != o) for (k = o.length; k--;) null != o[k] && v(o[k]);
|
|
34073
|
+
c || ("value" in y && void 0 !== (k = y.value) && (k !== p.value || k !== l.value || "progress" === d && !k) && C(l, "value", k, p.value, !1), "checked" in y && void 0 !== (k = y.checked) && k !== l.checked && C(l, "checked", k, p.checked, !1));
|
|
34483
34074
|
}
|
|
34484
34075
|
return l;
|
|
34485
34076
|
}
|
|
@@ -34493,7 +34084,7 @@
|
|
|
34493
34084
|
}
|
|
34494
34085
|
|
|
34495
34086
|
function L(n, u, t) {
|
|
34496
|
-
var i,
|
|
34087
|
+
var i, r;
|
|
34497
34088
|
|
|
34498
34089
|
if (l.unmount && l.unmount(n), (i = n.ref) && (i.current && i.current !== n.__e || z(i, null, u)), null != (i = n.__c)) {
|
|
34499
34090
|
if (i.componentWillUnmount) try {
|
|
@@ -34504,8 +34095,8 @@
|
|
|
34504
34095
|
i.base = i.__P = null;
|
|
34505
34096
|
}
|
|
34506
34097
|
|
|
34507
|
-
if (i = n.__k) for (
|
|
34508
|
-
t || null == n.__e ||
|
|
34098
|
+
if (i = n.__k) for (r = 0; r < i.length; r++) i[r] && L(i[r], u, "function" != typeof n.type);
|
|
34099
|
+
t || null == n.__e || v(n.__e), n.__e = n.__d = void 0;
|
|
34509
34100
|
}
|
|
34510
34101
|
|
|
34511
34102
|
function M(n, l, u) {
|
|
@@ -34513,8 +34104,8 @@
|
|
|
34513
34104
|
}
|
|
34514
34105
|
|
|
34515
34106
|
function N(u, t, i) {
|
|
34516
|
-
var
|
|
34517
|
-
l.__ && l.__(u, t),
|
|
34107
|
+
var r, o, f;
|
|
34108
|
+
l.__ && l.__(u, t), o = (r = "function" == typeof i) ? null : i && i.__k || t.__k, f = [], I(t, u = (!r && i || t).__k = h(y, null, [u]), o || e, e, void 0 !== t.ownerSVGElement, !r && i ? [i] : o ? null : t.firstChild ? n.call(t.childNodes) : null, f, !r && i ? i : o ? o.__e : t.firstChild, r), T(f, u);
|
|
34518
34109
|
}
|
|
34519
34110
|
|
|
34520
34111
|
n = c.slice, l = {
|
|
@@ -34534,21 +34125,21 @@
|
|
|
34534
34125
|
u = null != this.__s && this.__s !== this.state ? this.__s : this.__s = a({}, this.state), "function" == typeof n && (n = n(a({}, u), this.props)), n && a(u, n), null != n && this.__v && (l && this.__h.push(l), x(this));
|
|
34535
34126
|
}, d.prototype.forceUpdate = function (n) {
|
|
34536
34127
|
this.__v && (this.__e = !0, n && this.__h.push(n), x(this));
|
|
34537
|
-
}, d.prototype.render = y, i = [],
|
|
34128
|
+
}, d.prototype.render = y, i = [], r = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, b.__r = 0, f = 0, exports.render = N, exports.hydrate = function n(l, u) {
|
|
34538
34129
|
N(l, u, n);
|
|
34539
|
-
}, exports.createElement =
|
|
34130
|
+
}, exports.createElement = h, exports.h = h, exports.Fragment = y, exports.createRef = function () {
|
|
34540
34131
|
return {
|
|
34541
34132
|
current: null
|
|
34542
34133
|
};
|
|
34543
34134
|
}, exports.isValidElement = t, exports.Component = d, exports.cloneElement = function (l, u, t) {
|
|
34544
34135
|
var i,
|
|
34545
|
-
o,
|
|
34546
34136
|
r,
|
|
34137
|
+
o,
|
|
34547
34138
|
f = a({}, l.props);
|
|
34548
34139
|
|
|
34549
|
-
for (
|
|
34140
|
+
for (o in u) "key" == o ? i = u[o] : "ref" == o ? r = u[o] : f[o] = u[o];
|
|
34550
34141
|
|
|
34551
|
-
return arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : t),
|
|
34142
|
+
return arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : t), p(l.type, f, i || l.key, r || l.ref, null);
|
|
34552
34143
|
}, exports.createContext = function (n, l) {
|
|
34553
34144
|
var u = {
|
|
34554
34145
|
__c: l = "__cC" + f++,
|
|
@@ -34584,7 +34175,7 @@
|
|
|
34584
34175
|
var n,
|
|
34585
34176
|
t,
|
|
34586
34177
|
r,
|
|
34587
|
-
|
|
34178
|
+
o = 0,
|
|
34588
34179
|
i = [],
|
|
34589
34180
|
c = preact.options.__b,
|
|
34590
34181
|
e = preact.options.__r,
|
|
@@ -34593,7 +34184,7 @@
|
|
|
34593
34184
|
v = preact.options.unmount;
|
|
34594
34185
|
|
|
34595
34186
|
function p(n, r) {
|
|
34596
|
-
preact.options.__h && preact.options.__h(t, n,
|
|
34187
|
+
preact.options.__h && preact.options.__h(t, n, o || r), o = 0;
|
|
34597
34188
|
var i = t.__H || (t.__H = {
|
|
34598
34189
|
__: [],
|
|
34599
34190
|
__h: []
|
|
@@ -34602,29 +34193,33 @@
|
|
|
34602
34193
|
}
|
|
34603
34194
|
|
|
34604
34195
|
function s(n) {
|
|
34605
|
-
return
|
|
34196
|
+
return o = 1, x(A, n);
|
|
34606
34197
|
}
|
|
34607
34198
|
|
|
34608
|
-
function x(r,
|
|
34199
|
+
function x(r, u, o) {
|
|
34609
34200
|
var i = p(n++, 2);
|
|
34610
|
-
return i.t = r, i.__c || (i.__ = [
|
|
34201
|
+
return i.t = r, i.__c || (i.__ = [o ? o(u) : A(void 0, u), function (n) {
|
|
34611
34202
|
var t = i.t(i.__[0], n);
|
|
34612
34203
|
i.__[0] !== t && (i.__ = [t, i.__[1]], i.__c.setState({}));
|
|
34613
34204
|
}], i.__c = t), i.__;
|
|
34614
34205
|
}
|
|
34615
34206
|
|
|
34616
|
-
function l(r,
|
|
34207
|
+
function l(r, o) {
|
|
34617
34208
|
var i = p(n++, 4);
|
|
34618
|
-
!preact.options.__s && q(i.__H,
|
|
34209
|
+
!preact.options.__s && q(i.__H, o) && (i.__ = r, i.__H = o, t.__h.push(i));
|
|
34619
34210
|
}
|
|
34620
34211
|
|
|
34621
34212
|
function m(t, r) {
|
|
34622
|
-
var
|
|
34623
|
-
return q(
|
|
34213
|
+
var u = p(n++, 7);
|
|
34214
|
+
return q(u.__H, r) && (u.__ = t(), u.__H = r, u.__h = t), u.__;
|
|
34624
34215
|
}
|
|
34625
34216
|
|
|
34626
34217
|
function y() {
|
|
34627
|
-
|
|
34218
|
+
var n;
|
|
34219
|
+
|
|
34220
|
+
for (i.sort(function (n, t) {
|
|
34221
|
+
return n.__v.__b - t.__v.__b;
|
|
34222
|
+
}); n = i.pop();) if (n.__P) try {
|
|
34628
34223
|
n.__H.__h.forEach(_), n.__H.__h.forEach(d), n.__H.__h = [];
|
|
34629
34224
|
} catch (t) {
|
|
34630
34225
|
n.__H.__h = [], preact.options.__e(t, n.__v);
|
|
@@ -34635,17 +34230,17 @@
|
|
|
34635
34230
|
t = null, c && c(n);
|
|
34636
34231
|
}, preact.options.__r = function (r) {
|
|
34637
34232
|
e && e(r), n = 0;
|
|
34638
|
-
var
|
|
34639
|
-
|
|
34233
|
+
var u = (t = r.__c).__H;
|
|
34234
|
+
u && (u.__h.forEach(_), u.__h.forEach(d), u.__h = []);
|
|
34640
34235
|
}, preact.options.diffed = function (n) {
|
|
34641
34236
|
f && f(n);
|
|
34642
|
-
var
|
|
34643
|
-
|
|
34237
|
+
var o = n.__c;
|
|
34238
|
+
o && o.__H && o.__H.__h.length && (1 !== i.push(o) && r === preact.options.requestAnimationFrame || ((r = preact.options.requestAnimationFrame) || function (n) {
|
|
34644
34239
|
var t,
|
|
34645
34240
|
r = function () {
|
|
34646
|
-
clearTimeout(
|
|
34241
|
+
clearTimeout(u), h && cancelAnimationFrame(t), setTimeout(n);
|
|
34647
34242
|
},
|
|
34648
|
-
|
|
34243
|
+
u = setTimeout(r, 100);
|
|
34649
34244
|
|
|
34650
34245
|
h && (t = requestAnimationFrame(r));
|
|
34651
34246
|
})(y)), t = null;
|
|
@@ -34677,8 +34272,8 @@
|
|
|
34677
34272
|
|
|
34678
34273
|
function _(n) {
|
|
34679
34274
|
var r = t,
|
|
34680
|
-
|
|
34681
|
-
"function" == typeof
|
|
34275
|
+
u = n.__c;
|
|
34276
|
+
"function" == typeof u && (n.__c = void 0, u()), t = r;
|
|
34682
34277
|
}
|
|
34683
34278
|
|
|
34684
34279
|
function d(n) {
|
|
@@ -34696,36 +34291,36 @@
|
|
|
34696
34291
|
return "function" == typeof t ? t(n) : t;
|
|
34697
34292
|
}
|
|
34698
34293
|
|
|
34699
|
-
exports.useState = s, exports.useReducer = x, exports.useEffect = function (r,
|
|
34294
|
+
exports.useState = s, exports.useReducer = x, exports.useEffect = function (r, o) {
|
|
34700
34295
|
var i = p(n++, 3);
|
|
34701
|
-
!preact.options.__s && q(i.__H,
|
|
34296
|
+
!preact.options.__s && q(i.__H, o) && (i.__ = r, i.__H = o, t.__H.__h.push(i));
|
|
34702
34297
|
}, exports.useLayoutEffect = l, exports.useRef = function (n) {
|
|
34703
|
-
return
|
|
34298
|
+
return o = 5, m(function () {
|
|
34704
34299
|
return {
|
|
34705
34300
|
current: n
|
|
34706
34301
|
};
|
|
34707
34302
|
}, []);
|
|
34708
34303
|
}, exports.useImperativeHandle = function (n, t, r) {
|
|
34709
|
-
|
|
34304
|
+
o = 6, l(function () {
|
|
34710
34305
|
"function" == typeof n ? n(t()) : n && (n.current = t());
|
|
34711
34306
|
}, null == r ? r : r.concat(n));
|
|
34712
34307
|
}, exports.useMemo = m, exports.useCallback = function (n, t) {
|
|
34713
|
-
return
|
|
34308
|
+
return o = 8, m(function () {
|
|
34714
34309
|
return n;
|
|
34715
34310
|
}, t);
|
|
34716
34311
|
}, exports.useContext = function (r) {
|
|
34717
|
-
var
|
|
34718
|
-
|
|
34719
|
-
return
|
|
34312
|
+
var u = t.context[r.__c],
|
|
34313
|
+
o = p(n++, 9);
|
|
34314
|
+
return o.c = r, u ? (null == o.__ && (o.__ = !0, u.sub(t)), u.props.value) : r.__;
|
|
34720
34315
|
}, exports.useDebugValue = function (n, t) {
|
|
34721
34316
|
preact.options.useDebugValue && preact.options.useDebugValue(t ? t(n) : n);
|
|
34722
34317
|
}, exports.useErrorBoundary = function (r) {
|
|
34723
|
-
var
|
|
34724
|
-
|
|
34725
|
-
return
|
|
34726
|
-
|
|
34727
|
-
}), [
|
|
34728
|
-
|
|
34318
|
+
var u = p(n++, 10),
|
|
34319
|
+
o = s();
|
|
34320
|
+
return u.__ = r, t.componentDidCatch || (t.componentDidCatch = function (n) {
|
|
34321
|
+
u.__ && u.__(n), o[1](n);
|
|
34322
|
+
}), [o[0], function () {
|
|
34323
|
+
o[1](void 0);
|
|
34729
34324
|
}];
|
|
34730
34325
|
};
|
|
34731
34326
|
});
|
|
@@ -34976,8 +34571,8 @@
|
|
|
34976
34571
|
};
|
|
34977
34572
|
|
|
34978
34573
|
var S = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103,
|
|
34979
|
-
|
|
34980
|
-
|
|
34574
|
+
w = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,
|
|
34575
|
+
C = "undefined" != typeof document,
|
|
34981
34576
|
g = function (n) {
|
|
34982
34577
|
return ("undefined" != typeof Symbol && "symbol" == typeof Symbol() ? /fil|che|rad/i : /fil|che|ra/i).test(n);
|
|
34983
34578
|
};
|
|
@@ -35040,7 +34635,7 @@
|
|
|
35040
34635
|
|
|
35041
34636
|
for (var i in o = {}, r) {
|
|
35042
34637
|
var l = r[i];
|
|
35043
|
-
|
|
34638
|
+
C && "children" === i && "noscript" === e || "value" === i && "defaultValue" in r && null == l || ("defaultValue" === i && "value" in r && null == r.value ? i = "value" : "download" === i && !0 === l ? l = "" : /ondoubleclick/i.test(i) ? i = "ondblclick" : /^onchange(textarea|input)/i.test(i + e) && !g(r.type) ? i = "oninput" : /^onfocus$/i.test(i) ? i = "onfocusin" : /^onblur$/i.test(i) ? i = "onfocusout" : /^on(Ani|Tra|Tou|BeforeInp)/.test(i) ? i = i.toLowerCase() : u && w.test(i) ? i = i.replace(/[A-Z0-9]/, "-$&").toLowerCase() : null === l && (l = void 0), o[i] = l);
|
|
35044
34639
|
}
|
|
35045
34640
|
|
|
35046
34641
|
"select" == e && o.multiple && Array.isArray(o.value) && (o.value = t.toChildArray(r.children).forEach(function (n) {
|
|
@@ -37680,11 +37275,7 @@
|
|
|
37680
37275
|
|
|
37681
37276
|
// const minLength = 5;
|
|
37682
37277
|
function EndorsementsList(props) {
|
|
37683
|
-
|
|
37684
|
-
apiUrl = _getBaseProps.apiUrl;
|
|
37685
|
-
|
|
37686
|
-
var targetUuid = props[ATTR_TARGET_UUID]; // environments
|
|
37687
|
-
|
|
37278
|
+
// environments
|
|
37688
37279
|
var _useState = l$1(false),
|
|
37689
37280
|
_useState2 = _slicedToArray(_useState, 2),
|
|
37690
37281
|
isDark = _useState2[0],
|
|
@@ -37697,14 +37288,11 @@
|
|
|
37697
37288
|
|
|
37698
37289
|
var envCondition = isDark ? "dark" : "light";
|
|
37699
37290
|
|
|
37700
|
-
|
|
37701
|
-
feedbackSummary = _useFeedbackSummaryAp.feedbackSummary;
|
|
37702
|
-
|
|
37703
|
-
if (!feedbackSummary) {
|
|
37291
|
+
if (!props.feedbackSummary) {
|
|
37704
37292
|
return v$2(d$2, null);
|
|
37705
37293
|
}
|
|
37706
37294
|
|
|
37707
|
-
var endorsements = feedbackSummary.endorsements;
|
|
37295
|
+
var endorsements = props.feedbackSummary.endorsements;
|
|
37708
37296
|
|
|
37709
37297
|
if (!endorsements) {
|
|
37710
37298
|
return v$2(d$2, null);
|
|
@@ -37790,20 +37378,12 @@
|
|
|
37790
37378
|
setIsDark(true);
|
|
37791
37379
|
}
|
|
37792
37380
|
|
|
37793
|
-
|
|
37794
|
-
apiUrl = _getBaseProps.apiUrl;
|
|
37795
|
-
|
|
37796
|
-
var targetUuid = props[ATTR_TARGET_UUID];
|
|
37797
|
-
|
|
37798
|
-
var _useFeedbackSummaryAp = useFeedbackSummaryApi(apiUrl, targetUuid),
|
|
37799
|
-
feedbackSummary = _useFeedbackSummaryAp.feedbackSummary;
|
|
37800
|
-
|
|
37801
|
-
if (!feedbackSummary) {
|
|
37381
|
+
if (!props.feedbackSummary) {
|
|
37802
37382
|
return v$2(d$2, null);
|
|
37803
37383
|
} // star rating
|
|
37804
37384
|
|
|
37805
37385
|
|
|
37806
|
-
var stars = feedbackSummary.stars.avg;
|
|
37386
|
+
var stars = props.feedbackSummary.stars.avg;
|
|
37807
37387
|
return v$2(BaseComponent, {
|
|
37808
37388
|
style: css_248z$5
|
|
37809
37389
|
}, v$2("section", {
|
|
@@ -37852,20 +37432,12 @@
|
|
|
37852
37432
|
setIsDark(true);
|
|
37853
37433
|
}
|
|
37854
37434
|
|
|
37855
|
-
|
|
37856
|
-
apiUrl = _getBaseProps.apiUrl;
|
|
37857
|
-
|
|
37858
|
-
var targetUuid = props[ATTR_TARGET_UUID];
|
|
37859
|
-
|
|
37860
|
-
var _useFeedbackSummaryAp = useFeedbackSummaryApi(apiUrl, targetUuid),
|
|
37861
|
-
feedbackSummary = _useFeedbackSummaryAp.feedbackSummary;
|
|
37862
|
-
|
|
37863
|
-
if (!feedbackSummary) {
|
|
37435
|
+
if (!props.feedbackSummary) {
|
|
37864
37436
|
return v$2(d$2, null);
|
|
37865
37437
|
} // fet badges and keys
|
|
37866
37438
|
|
|
37867
37439
|
|
|
37868
|
-
var fbBadges = feedbackSummary.badges;
|
|
37440
|
+
var fbBadges = props.feedbackSummary.badges;
|
|
37869
37441
|
var keys = Object.keys(fbBadges); // returns the badge with image, counter and title
|
|
37870
37442
|
|
|
37871
37443
|
var badgeGroup = keys.map(function (key, i) {
|
|
@@ -37949,15 +37521,7 @@
|
|
|
37949
37521
|
setIsDark(true);
|
|
37950
37522
|
}
|
|
37951
37523
|
|
|
37952
|
-
|
|
37953
|
-
apiUrl = _getBaseProps.apiUrl;
|
|
37954
|
-
|
|
37955
|
-
var targetUuid = props[ATTR_TARGET_UUID];
|
|
37956
|
-
|
|
37957
|
-
var _useFeedbackSummaryAp = useFeedbackSummaryApi(apiUrl, targetUuid),
|
|
37958
|
-
feedbackSummary = _useFeedbackSummaryAp.feedbackSummary;
|
|
37959
|
-
|
|
37960
|
-
if (!feedbackSummary) {
|
|
37524
|
+
if (!props.feedbackSummary) {
|
|
37961
37525
|
return v$2(d$2, null);
|
|
37962
37526
|
} // top image and video
|
|
37963
37527
|
|
|
@@ -37992,7 +37556,7 @@
|
|
|
37992
37556
|
}, v$2(Logo, null)))));
|
|
37993
37557
|
};
|
|
37994
37558
|
|
|
37995
|
-
var video = feedbackSummary.video;
|
|
37559
|
+
var video = props.feedbackSummary.video;
|
|
37996
37560
|
return v$2(BaseComponent, {
|
|
37997
37561
|
style: css_248z$2,
|
|
37998
37562
|
className: "video-section utu-section-no-border-".concat(isDark ? "dark" : "light"),
|
|
@@ -38014,7 +37578,7 @@
|
|
|
38014
37578
|
styleInject(css_248z$1);
|
|
38015
37579
|
|
|
38016
37580
|
function BadgesShow(props) {
|
|
38017
|
-
var
|
|
37581
|
+
var _props$feedbackSummar, _props$feedbackSummar2;
|
|
38018
37582
|
|
|
38019
37583
|
// environments
|
|
38020
37584
|
var _useState = l$1(false),
|
|
@@ -38029,21 +37593,13 @@
|
|
|
38029
37593
|
setIsDark(true);
|
|
38030
37594
|
}
|
|
38031
37595
|
|
|
38032
|
-
|
|
38033
|
-
apiUrl = _getBaseProps.apiUrl;
|
|
38034
|
-
|
|
38035
|
-
var targetUuid = props[ATTR_TARGET_UUID];
|
|
38036
|
-
|
|
38037
|
-
var _useFeedbackSummaryAp = useFeedbackSummaryApi(apiUrl, targetUuid),
|
|
38038
|
-
feedbackSummary = _useFeedbackSummaryAp.feedbackSummary;
|
|
38039
|
-
|
|
38040
|
-
if (!feedbackSummary) {
|
|
37596
|
+
if (!props.feedbackSummary) {
|
|
38041
37597
|
return v$2(d$2, null);
|
|
38042
37598
|
} // review
|
|
38043
37599
|
|
|
38044
37600
|
|
|
38045
|
-
var fbReviewImg = (
|
|
38046
|
-
var fbReviewContent = (
|
|
37601
|
+
var fbReviewImg = (_props$feedbackSummar = props.feedbackSummary.review) === null || _props$feedbackSummar === void 0 ? void 0 : _props$feedbackSummar.image;
|
|
37602
|
+
var fbReviewContent = (_props$feedbackSummar2 = props.feedbackSummary.review) === null || _props$feedbackSummar2 === void 0 ? void 0 : _props$feedbackSummar2.content;
|
|
38047
37603
|
return v$2(BaseComponent, {
|
|
38048
37604
|
style: css_248z$1,
|
|
38049
37605
|
className: "review-section utu-section-no-border-".concat(isDark ? "dark" : "light"),
|
|
@@ -38073,12 +37629,30 @@
|
|
|
38073
37629
|
setIsDark(true);
|
|
38074
37630
|
}
|
|
38075
37631
|
|
|
37632
|
+
var _getBaseProps = getBaseProps(props, TAG_FEEDBACK_DETAILS_POPUP),
|
|
37633
|
+
apiUrl = _getBaseProps.apiUrl;
|
|
37634
|
+
|
|
37635
|
+
var targetUuid = props[ATTR_TARGET_UUID];
|
|
37636
|
+
|
|
37637
|
+
var _useFeedbackSummaryAp = useFeedbackSummaryApi(apiUrl, targetUuid),
|
|
37638
|
+
feedbackSummary = _useFeedbackSummaryAp.feedbackSummary;
|
|
37639
|
+
|
|
38076
37640
|
return v$2(BaseComponent, {
|
|
38077
37641
|
style: css_248z$7,
|
|
38078
37642
|
className: "utu-feedback-details"
|
|
38079
37643
|
}, v$2("div", {
|
|
38080
37644
|
className: "mobile-view"
|
|
38081
|
-
}, v$2(VideoShow,
|
|
37645
|
+
}, v$2(VideoShow, _extends$1({}, props, {
|
|
37646
|
+
feedbackSummary: feedbackSummary
|
|
37647
|
+
})), v$2(StarRatingShow, _extends$1({}, props, {
|
|
37648
|
+
feedbackSummary: feedbackSummary
|
|
37649
|
+
})), v$2(BadgesShow$1, _extends$1({}, props, {
|
|
37650
|
+
feedbackSummary: feedbackSummary
|
|
37651
|
+
})), v$2(EndorsementsList, _extends$1({}, props, {
|
|
37652
|
+
feedbackSummary: feedbackSummary
|
|
37653
|
+
})), v$2(BadgesShow, _extends$1({}, props, {
|
|
37654
|
+
feedbackSummary: feedbackSummary
|
|
37655
|
+
})), v$2("section", {
|
|
38082
37656
|
className: "logo-section"
|
|
38083
37657
|
}, v$2("div", {
|
|
38084
37658
|
className: "logo-position"
|
|
@@ -38086,9 +37660,19 @@
|
|
|
38086
37660
|
className: "desktop-view"
|
|
38087
37661
|
}, v$2("div", {
|
|
38088
37662
|
className: "desktop-view-block-1 desktop-view-block-1-".concat(isDark ? "dark" : "light")
|
|
38089
|
-
}, v$2(VideoShow,
|
|
37663
|
+
}, v$2(VideoShow, _extends$1({}, props, {
|
|
37664
|
+
feedbackSummary: feedbackSummary
|
|
37665
|
+
})), v$2(StarRatingShow, _extends$1({}, props, {
|
|
37666
|
+
feedbackSummary: feedbackSummary
|
|
37667
|
+
})), v$2(BadgesShow, _extends$1({}, props, {
|
|
37668
|
+
feedbackSummary: feedbackSummary
|
|
37669
|
+
}))), v$2("div", {
|
|
38090
37670
|
className: "desktop-view-block-2 desktop-view-block-2-".concat(isDark ? "dark" : "light")
|
|
38091
|
-
}, v$2(BadgesShow$1,
|
|
37671
|
+
}, v$2(BadgesShow$1, _extends$1({}, props, {
|
|
37672
|
+
feedbackSummary: feedbackSummary
|
|
37673
|
+
})), v$2(EndorsementsList, _extends$1({}, props, {
|
|
37674
|
+
feedbackSummary: feedbackSummary
|
|
37675
|
+
}))), v$2("section", {
|
|
38092
37676
|
className: "logo-section"
|
|
38093
37677
|
}, v$2("div", {
|
|
38094
37678
|
className: "logo-position-details"
|