@ututrust/web-components 1.1.17 → 1.1.20
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/CHANGELOG.md +23 -0
- package/dist/index.js +1240 -660
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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.21.1',
|
|
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.21.1/LICENSE',
|
|
290
290
|
source: 'https://github.com/zloirock/core-js'
|
|
291
291
|
});
|
|
292
292
|
});
|
|
@@ -898,7 +898,7 @@
|
|
|
898
898
|
});
|
|
899
899
|
}
|
|
900
900
|
|
|
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;
|
|
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;
|
|
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(){
|
|
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(var t;t=i$2.shift();)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);
|
|
@@ -3958,38 +3958,52 @@
|
|
|
3958
3958
|
return config;
|
|
3959
3959
|
};
|
|
3960
3960
|
|
|
3961
|
-
var
|
|
3962
|
-
var
|
|
3963
|
-
var
|
|
3964
|
-
var
|
|
3965
|
-
var
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3961
|
+
var _from = "axios@^0.21.1";
|
|
3962
|
+
var _id = "axios@0.21.4";
|
|
3963
|
+
var _inBundle = false;
|
|
3964
|
+
var _integrity = "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==";
|
|
3965
|
+
var _location = "/axios";
|
|
3966
|
+
var _phantomChildren = {
|
|
3967
|
+
};
|
|
3968
|
+
var _requested = {
|
|
3969
|
+
type: "range",
|
|
3970
|
+
registry: true,
|
|
3971
|
+
raw: "axios@^0.21.1",
|
|
3972
|
+
name: "axios",
|
|
3973
|
+
escapedName: "axios",
|
|
3974
|
+
rawSpec: "^0.21.1",
|
|
3975
|
+
saveSpec: null,
|
|
3976
|
+
fetchSpec: "^0.21.1"
|
|
3977
|
+
};
|
|
3978
|
+
var _requiredBy = [
|
|
3979
|
+
"/",
|
|
3980
|
+
"/localtunnel"
|
|
3981
|
+
];
|
|
3982
|
+
var _resolved = "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz";
|
|
3983
|
+
var _shasum = "c67b90dc0568e5c1cf2b0b858c43ba28e2eda575";
|
|
3984
|
+
var _spec = "axios@^0.21.1";
|
|
3985
|
+
var _where = "/home/kimiti/Desktop/work/utu-trust-sdk/packages/utu-web-components";
|
|
3986
|
+
var author = {
|
|
3987
|
+
name: "Matt Zabriskie"
|
|
3975
3988
|
};
|
|
3976
|
-
var
|
|
3977
|
-
|
|
3978
|
-
url: "https://github.com/axios/axios.git"
|
|
3989
|
+
var browser = {
|
|
3990
|
+
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
|
|
3979
3991
|
};
|
|
3980
|
-
var keywords = [
|
|
3981
|
-
"xhr",
|
|
3982
|
-
"http",
|
|
3983
|
-
"ajax",
|
|
3984
|
-
"promise",
|
|
3985
|
-
"node"
|
|
3986
|
-
];
|
|
3987
|
-
var author = "Matt Zabriskie";
|
|
3988
|
-
var license = "MIT";
|
|
3989
3992
|
var bugs = {
|
|
3990
3993
|
url: "https://github.com/axios/axios/issues"
|
|
3991
3994
|
};
|
|
3992
|
-
var
|
|
3995
|
+
var bundleDependencies = false;
|
|
3996
|
+
var bundlesize = [
|
|
3997
|
+
{
|
|
3998
|
+
path: "./dist/axios.min.js",
|
|
3999
|
+
threshold: "5kB"
|
|
4000
|
+
}
|
|
4001
|
+
];
|
|
4002
|
+
var dependencies = {
|
|
4003
|
+
"follow-redirects": "^1.14.0"
|
|
4004
|
+
};
|
|
4005
|
+
var deprecated = false;
|
|
4006
|
+
var description = "Promise based HTTP client for the browser and node.js";
|
|
3993
4007
|
var devDependencies = {
|
|
3994
4008
|
coveralls: "^3.0.0",
|
|
3995
4009
|
"es6-promise": "^4.2.4",
|
|
@@ -4025,40 +4039,69 @@
|
|
|
4025
4039
|
webpack: "^4.44.2",
|
|
4026
4040
|
"webpack-dev-server": "^3.11.0"
|
|
4027
4041
|
};
|
|
4028
|
-
var
|
|
4029
|
-
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
|
|
4030
|
-
};
|
|
4042
|
+
var homepage = "https://axios-http.com";
|
|
4031
4043
|
var jsdelivr = "dist/axios.min.js";
|
|
4032
|
-
var
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
"
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
{
|
|
4039
|
-
path: "./dist/axios.min.js",
|
|
4040
|
-
threshold: "5kB"
|
|
4041
|
-
}
|
|
4044
|
+
var keywords = [
|
|
4045
|
+
"xhr",
|
|
4046
|
+
"http",
|
|
4047
|
+
"ajax",
|
|
4048
|
+
"promise",
|
|
4049
|
+
"node"
|
|
4042
4050
|
];
|
|
4051
|
+
var license = "MIT";
|
|
4052
|
+
var main = "index.js";
|
|
4053
|
+
var name = "axios";
|
|
4054
|
+
var repository = {
|
|
4055
|
+
type: "git",
|
|
4056
|
+
url: "git+https://github.com/axios/axios.git"
|
|
4057
|
+
};
|
|
4058
|
+
var scripts = {
|
|
4059
|
+
build: "NODE_ENV=production grunt build",
|
|
4060
|
+
coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
|
4061
|
+
examples: "node ./examples/server.js",
|
|
4062
|
+
fix: "eslint --fix lib/**/*.js",
|
|
4063
|
+
postversion: "git push && git push --tags",
|
|
4064
|
+
preversion: "npm test",
|
|
4065
|
+
start: "node ./sandbox/server.js",
|
|
4066
|
+
test: "grunt test",
|
|
4067
|
+
version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"
|
|
4068
|
+
};
|
|
4069
|
+
var typings = "./index.d.ts";
|
|
4070
|
+
var unpkg = "dist/axios.min.js";
|
|
4071
|
+
var version$i = "0.21.4";
|
|
4043
4072
|
var pkg = {
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4073
|
+
_from: _from,
|
|
4074
|
+
_id: _id,
|
|
4075
|
+
_inBundle: _inBundle,
|
|
4076
|
+
_integrity: _integrity,
|
|
4077
|
+
_location: _location,
|
|
4078
|
+
_phantomChildren: _phantomChildren,
|
|
4079
|
+
_requested: _requested,
|
|
4080
|
+
_requiredBy: _requiredBy,
|
|
4081
|
+
_resolved: _resolved,
|
|
4082
|
+
_shasum: _shasum,
|
|
4083
|
+
_spec: _spec,
|
|
4084
|
+
_where: _where,
|
|
4051
4085
|
author: author,
|
|
4052
|
-
|
|
4086
|
+
browser: browser,
|
|
4053
4087
|
bugs: bugs,
|
|
4054
|
-
|
|
4088
|
+
bundleDependencies: bundleDependencies,
|
|
4089
|
+
bundlesize: bundlesize,
|
|
4090
|
+
dependencies: dependencies,
|
|
4091
|
+
deprecated: deprecated,
|
|
4092
|
+
description: description,
|
|
4055
4093
|
devDependencies: devDependencies,
|
|
4056
|
-
|
|
4094
|
+
homepage: homepage,
|
|
4057
4095
|
jsdelivr: jsdelivr,
|
|
4058
|
-
|
|
4096
|
+
keywords: keywords,
|
|
4097
|
+
license: license,
|
|
4098
|
+
main: main,
|
|
4099
|
+
name: name,
|
|
4100
|
+
repository: repository,
|
|
4101
|
+
scripts: scripts,
|
|
4059
4102
|
typings: typings,
|
|
4060
|
-
|
|
4061
|
-
|
|
4103
|
+
unpkg: unpkg,
|
|
4104
|
+
version: version$i
|
|
4062
4105
|
};
|
|
4063
4106
|
|
|
4064
4107
|
var validators$1 = {}; // eslint-disable-next-line func-names
|
|
@@ -6997,21 +7040,24 @@
|
|
|
6997
7040
|
parse: parse$1
|
|
6998
7041
|
};
|
|
6999
7042
|
|
|
7000
|
-
var
|
|
7043
|
+
var controlOrWhitespace = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,
|
|
7044
|
+
CRHTLF = /[\n\r\t]/g,
|
|
7045
|
+
slashes = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//,
|
|
7046
|
+
port = /:\d+$/,
|
|
7001
7047
|
protocolre = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,
|
|
7002
|
-
windowsDriveLetter = /^[a-zA-Z]
|
|
7003
|
-
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]',
|
|
7004
|
-
left = new RegExp('^' + whitespace$1 + '+');
|
|
7048
|
+
windowsDriveLetter = /^[a-zA-Z]:/;
|
|
7005
7049
|
/**
|
|
7006
|
-
*
|
|
7050
|
+
* Remove control characters and whitespace from the beginning of a string.
|
|
7007
7051
|
*
|
|
7008
|
-
* @param {String} str String to trim.
|
|
7052
|
+
* @param {Object|String} str String to trim.
|
|
7053
|
+
* @returns {String} A new string representing `str` stripped of control
|
|
7054
|
+
* characters and whitespace from its beginning.
|
|
7009
7055
|
* @public
|
|
7010
7056
|
*/
|
|
7011
7057
|
|
|
7012
7058
|
|
|
7013
7059
|
function trimLeft(str) {
|
|
7014
|
-
return (str ? str : '').toString().replace(
|
|
7060
|
+
return (str ? str : '').toString().replace(controlOrWhitespace, '');
|
|
7015
7061
|
}
|
|
7016
7062
|
/**
|
|
7017
7063
|
* These are the parse rules for the URL parser, it informs the parser
|
|
@@ -7035,7 +7081,7 @@
|
|
|
7035
7081
|
}, ['/', 'pathname'], // Extract from the back.
|
|
7036
7082
|
['@', 'auth', 1], // Extract from the front.
|
|
7037
7083
|
[NaN, 'host', undefined, 1, 1], // Set left over value.
|
|
7038
|
-
[/:(\d
|
|
7084
|
+
[/:(\d*)$/, 'port', undefined, 1], // RegExp the back.
|
|
7039
7085
|
[NaN, 'hostname', undefined, 1, 1] // Set left over.
|
|
7040
7086
|
];
|
|
7041
7087
|
/**
|
|
@@ -7124,6 +7170,7 @@
|
|
|
7124
7170
|
|
|
7125
7171
|
function extractProtocol(address, location) {
|
|
7126
7172
|
address = trimLeft(address);
|
|
7173
|
+
address = address.replace(CRHTLF, '');
|
|
7127
7174
|
location = location || {};
|
|
7128
7175
|
var match = protocolre.exec(address);
|
|
7129
7176
|
var protocol = match[1] ? match[1].toLowerCase() : '';
|
|
@@ -7223,6 +7270,7 @@
|
|
|
7223
7270
|
|
|
7224
7271
|
function Url(address, location, parser) {
|
|
7225
7272
|
address = trimLeft(address);
|
|
7273
|
+
address = address.replace(CRHTLF, '');
|
|
7226
7274
|
|
|
7227
7275
|
if (!(this instanceof Url)) {
|
|
7228
7276
|
return new Url(address, location, parser);
|
|
@@ -7286,7 +7334,9 @@
|
|
|
7286
7334
|
if (parse !== parse) {
|
|
7287
7335
|
url[key] = address;
|
|
7288
7336
|
} else if ('string' === typeof parse) {
|
|
7289
|
-
|
|
7337
|
+
index = parse === '@' ? address.lastIndexOf(parse) : address.indexOf(parse);
|
|
7338
|
+
|
|
7339
|
+
if (~index) {
|
|
7290
7340
|
if ('number' === typeof instruction[2]) {
|
|
7291
7341
|
url[key] = address.slice(0, index);
|
|
7292
7342
|
address = address.slice(index + instruction[2]);
|
|
@@ -7345,9 +7395,18 @@
|
|
|
7345
7395
|
url.username = url.password = '';
|
|
7346
7396
|
|
|
7347
7397
|
if (url.auth) {
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7398
|
+
index = url.auth.indexOf(':');
|
|
7399
|
+
|
|
7400
|
+
if (~index) {
|
|
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;
|
|
7351
7410
|
}
|
|
7352
7411
|
|
|
7353
7412
|
url.origin = url.protocol !== 'file:' && isSpecial(url.protocol) && url.host ? url.protocol + '//' + url.host : 'null'; //
|
|
@@ -7404,7 +7463,7 @@
|
|
|
7404
7463
|
case 'host':
|
|
7405
7464
|
url[part] = value;
|
|
7406
7465
|
|
|
7407
|
-
if (
|
|
7466
|
+
if (port.test(value)) {
|
|
7408
7467
|
value = value.split(':');
|
|
7409
7468
|
url.port = value.pop();
|
|
7410
7469
|
url.hostname = value.join(':');
|
|
@@ -7437,9 +7496,17 @@
|
|
|
7437
7496
|
break;
|
|
7438
7497
|
|
|
7439
7498
|
case 'auth':
|
|
7440
|
-
var
|
|
7441
|
-
|
|
7442
|
-
|
|
7499
|
+
var index = value.indexOf(':');
|
|
7500
|
+
|
|
7501
|
+
if (~index) {
|
|
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
|
+
|
|
7443
7510
|
}
|
|
7444
7511
|
|
|
7445
7512
|
for (var i = 0; i < rules.length; i++) {
|
|
@@ -7465,6 +7532,7 @@
|
|
|
7465
7532
|
if (!stringify || 'function' !== typeof stringify) stringify = querystringify_1.stringify;
|
|
7466
7533
|
var query,
|
|
7467
7534
|
url = this,
|
|
7535
|
+
host = url.host,
|
|
7468
7536
|
protocol = url.protocol;
|
|
7469
7537
|
if (protocol && protocol.charAt(protocol.length - 1) !== ':') protocol += ':';
|
|
7470
7538
|
var result = protocol + (url.protocol && url.slashes || isSpecial(url.protocol) ? '//' : '');
|
|
@@ -7476,9 +7544,24 @@
|
|
|
7476
7544
|
} else if (url.password) {
|
|
7477
7545
|
result += ':' + url.password;
|
|
7478
7546
|
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 += ':';
|
|
7479
7562
|
}
|
|
7480
7563
|
|
|
7481
|
-
result +=
|
|
7564
|
+
result += host + url.pathname;
|
|
7482
7565
|
query = 'object' === typeof url.query ? stringify(url.query) : url.query;
|
|
7483
7566
|
if (query) result += '?' !== query.charAt(0) ? '?' + query : query;
|
|
7484
7567
|
if (url.hash) result += url.hash;
|
|
@@ -7515,7 +7598,7 @@
|
|
|
7515
7598
|
return _typeof$1(obj);
|
|
7516
7599
|
}
|
|
7517
7600
|
|
|
7518
|
-
function _classCallCheck$
|
|
7601
|
+
function _classCallCheck$9(instance, Constructor) {
|
|
7519
7602
|
if (!(instance instanceof Constructor)) {
|
|
7520
7603
|
throw new TypeError("Cannot call a class as a function");
|
|
7521
7604
|
}
|
|
@@ -7537,11 +7620,13 @@
|
|
|
7537
7620
|
}
|
|
7538
7621
|
|
|
7539
7622
|
function _createSuper$1(Derived) {
|
|
7540
|
-
|
|
7623
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct$1();
|
|
7624
|
+
|
|
7625
|
+
return function _createSuperInternal() {
|
|
7541
7626
|
var Super = _getPrototypeOf$1(Derived),
|
|
7542
7627
|
result;
|
|
7543
7628
|
|
|
7544
|
-
if (
|
|
7629
|
+
if (hasNativeReflectConstruct) {
|
|
7545
7630
|
var NewTarget = _getPrototypeOf$1(this).constructor;
|
|
7546
7631
|
|
|
7547
7632
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
@@ -7626,7 +7711,7 @@
|
|
|
7626
7711
|
if (typeof Proxy === "function") return true;
|
|
7627
7712
|
|
|
7628
7713
|
try {
|
|
7629
|
-
|
|
7714
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
7630
7715
|
return true;
|
|
7631
7716
|
} catch (e) {
|
|
7632
7717
|
return false;
|
|
@@ -7665,7 +7750,7 @@
|
|
|
7665
7750
|
var req = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
7666
7751
|
var res = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
7667
7752
|
|
|
7668
|
-
_classCallCheck$
|
|
7753
|
+
_classCallCheck$9(this, DetailedError);
|
|
7669
7754
|
|
|
7670
7755
|
_this = _super.call(this, message);
|
|
7671
7756
|
_this.originalRequest = req;
|
|
@@ -7711,8 +7796,8 @@
|
|
|
7711
7796
|
*/
|
|
7712
7797
|
function uuid() {
|
|
7713
7798
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
7714
|
-
var r = Math.random() * 16 | 0
|
|
7715
|
-
|
|
7799
|
+
var r = Math.random() * 16 | 0;
|
|
7800
|
+
var v = c == 'x' ? r : r & 0x3 | 0x8;
|
|
7716
7801
|
return v.toString(16);
|
|
7717
7802
|
});
|
|
7718
7803
|
}
|
|
@@ -7766,13 +7851,13 @@
|
|
|
7766
7851
|
return obj;
|
|
7767
7852
|
}
|
|
7768
7853
|
|
|
7769
|
-
function _classCallCheck$
|
|
7854
|
+
function _classCallCheck$8(instance, Constructor) {
|
|
7770
7855
|
if (!(instance instanceof Constructor)) {
|
|
7771
7856
|
throw new TypeError("Cannot call a class as a function");
|
|
7772
7857
|
}
|
|
7773
7858
|
}
|
|
7774
7859
|
|
|
7775
|
-
function _defineProperties$
|
|
7860
|
+
function _defineProperties$7(target, props) {
|
|
7776
7861
|
for (var i = 0; i < props.length; i++) {
|
|
7777
7862
|
var descriptor = props[i];
|
|
7778
7863
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -7782,9 +7867,9 @@
|
|
|
7782
7867
|
}
|
|
7783
7868
|
}
|
|
7784
7869
|
|
|
7785
|
-
function _createClass$
|
|
7786
|
-
if (protoProps) _defineProperties$
|
|
7787
|
-
if (staticProps) _defineProperties$
|
|
7870
|
+
function _createClass$8(Constructor, protoProps, staticProps) {
|
|
7871
|
+
if (protoProps) _defineProperties$7(Constructor.prototype, protoProps);
|
|
7872
|
+
if (staticProps) _defineProperties$7(Constructor, staticProps);
|
|
7788
7873
|
return Constructor;
|
|
7789
7874
|
}
|
|
7790
7875
|
var defaultOptions$1 = {
|
|
@@ -7818,10 +7903,12 @@
|
|
|
7818
7903
|
|
|
7819
7904
|
var BaseUpload = /*#__PURE__*/function () {
|
|
7820
7905
|
function BaseUpload(file, options) {
|
|
7821
|
-
_classCallCheck$
|
|
7906
|
+
_classCallCheck$8(this, BaseUpload); // Warn about removed options from previous versions
|
|
7907
|
+
|
|
7822
7908
|
|
|
7909
|
+
this.options = options; // Cast chunkSize to integer
|
|
7823
7910
|
|
|
7824
|
-
this.options = options; // The storage module used to store URLs
|
|
7911
|
+
this.options.chunkSize = +this.options.chunkSize; // The storage module used to store URLs
|
|
7825
7912
|
|
|
7826
7913
|
this._urlStorage = this.options.urlStorage; // The underlying File/Blob object
|
|
7827
7914
|
|
|
@@ -7869,7 +7956,7 @@
|
|
|
7869
7956
|
*/
|
|
7870
7957
|
|
|
7871
7958
|
|
|
7872
|
-
_createClass$
|
|
7959
|
+
_createClass$8(BaseUpload, [{
|
|
7873
7960
|
key: "findPreviousUploads",
|
|
7874
7961
|
value: function findPreviousUploads() {
|
|
7875
7962
|
var _this = this;
|
|
@@ -7972,7 +8059,7 @@
|
|
|
7972
8059
|
var value = _ref.value;
|
|
7973
8060
|
return new Promise(function (resolve, reject) {
|
|
7974
8061
|
// Merge with the user supplied options but overwrite some values.
|
|
7975
|
-
var options = _objectSpread$1({}, _this3.options, {
|
|
8062
|
+
var options = _objectSpread$1(_objectSpread$1({}, _this3.options), {}, {
|
|
7976
8063
|
// If available, the partial upload should be resumed from a previous URL.
|
|
7977
8064
|
uploadUrl: part.uploadUrl || null,
|
|
7978
8065
|
// We take manually care of resuming for partial uploads, so they should
|
|
@@ -7983,7 +8070,7 @@
|
|
|
7983
8070
|
parallelUploads: 1,
|
|
7984
8071
|
metadata: {},
|
|
7985
8072
|
// Add the header to indicate the this is a partial upload.
|
|
7986
|
-
headers: _objectSpread$1({}, _this3.options.headers, {
|
|
8073
|
+
headers: _objectSpread$1(_objectSpread$1({}, _this3.options.headers), {}, {
|
|
7987
8074
|
'Upload-Concat': 'partial'
|
|
7988
8075
|
}),
|
|
7989
8076
|
// Reject or resolve the promise if the upload errors or completes.
|
|
@@ -8081,7 +8168,7 @@
|
|
|
8081
8168
|
this._size = this._source.size;
|
|
8082
8169
|
|
|
8083
8170
|
if (this._size == null) {
|
|
8084
|
-
this._emitError(new Error("tus: cannot automatically derive upload's size from input
|
|
8171
|
+
this._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));
|
|
8085
8172
|
|
|
8086
8173
|
return;
|
|
8087
8174
|
}
|
|
@@ -8102,7 +8189,7 @@
|
|
|
8102
8189
|
|
|
8103
8190
|
|
|
8104
8191
|
if (this.options.uploadUrl != null) {
|
|
8105
|
-
log$1("Resuming upload from provided URL: ".concat(this.options.
|
|
8192
|
+
log$1("Resuming upload from provided URL: ".concat(this.options.uploadUrl));
|
|
8106
8193
|
this.url = this.options.uploadUrl;
|
|
8107
8194
|
|
|
8108
8195
|
this._resumeUpload();
|
|
@@ -8683,7 +8770,7 @@
|
|
|
8683
8770
|
var delay = options.retryDelays[0];
|
|
8684
8771
|
var remainingDelays = options.retryDelays.slice(1);
|
|
8685
8772
|
|
|
8686
|
-
var newOptions = _objectSpread$1({}, options, {
|
|
8773
|
+
var newOptions = _objectSpread$1(_objectSpread$1({}, options), {}, {
|
|
8687
8774
|
retryDelays: remainingDelays
|
|
8688
8775
|
});
|
|
8689
8776
|
|
|
@@ -8856,13 +8943,13 @@
|
|
|
8856
8943
|
|
|
8857
8944
|
BaseUpload.defaultOptions = defaultOptions$1;
|
|
8858
8945
|
|
|
8859
|
-
function _classCallCheck$
|
|
8946
|
+
function _classCallCheck$7(instance, Constructor) {
|
|
8860
8947
|
if (!(instance instanceof Constructor)) {
|
|
8861
8948
|
throw new TypeError("Cannot call a class as a function");
|
|
8862
8949
|
}
|
|
8863
8950
|
}
|
|
8864
8951
|
|
|
8865
|
-
function _defineProperties$
|
|
8952
|
+
function _defineProperties$6(target, props) {
|
|
8866
8953
|
for (var i = 0; i < props.length; i++) {
|
|
8867
8954
|
var descriptor = props[i];
|
|
8868
8955
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8872,9 +8959,9 @@
|
|
|
8872
8959
|
}
|
|
8873
8960
|
}
|
|
8874
8961
|
|
|
8875
|
-
function _createClass$
|
|
8876
|
-
if (protoProps) _defineProperties$
|
|
8877
|
-
if (staticProps) _defineProperties$
|
|
8962
|
+
function _createClass$7(Constructor, protoProps, staticProps) {
|
|
8963
|
+
if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
|
|
8964
|
+
if (staticProps) _defineProperties$6(Constructor, staticProps);
|
|
8878
8965
|
return Constructor;
|
|
8879
8966
|
}
|
|
8880
8967
|
/* eslint no-unused-vars: "off" */
|
|
@@ -8882,10 +8969,10 @@
|
|
|
8882
8969
|
|
|
8883
8970
|
var NoopUrlStorage = /*#__PURE__*/function () {
|
|
8884
8971
|
function NoopUrlStorage() {
|
|
8885
|
-
_classCallCheck$
|
|
8972
|
+
_classCallCheck$7(this, NoopUrlStorage);
|
|
8886
8973
|
}
|
|
8887
8974
|
|
|
8888
|
-
_createClass$
|
|
8975
|
+
_createClass$7(NoopUrlStorage, [{
|
|
8889
8976
|
key: "listAllUploads",
|
|
8890
8977
|
value: function listAllUploads() {
|
|
8891
8978
|
return Promise.resolve([]);
|
|
@@ -8910,13 +8997,13 @@
|
|
|
8910
8997
|
return NoopUrlStorage;
|
|
8911
8998
|
}();
|
|
8912
8999
|
|
|
8913
|
-
function _classCallCheck$
|
|
9000
|
+
function _classCallCheck$6(instance, Constructor) {
|
|
8914
9001
|
if (!(instance instanceof Constructor)) {
|
|
8915
9002
|
throw new TypeError("Cannot call a class as a function");
|
|
8916
9003
|
}
|
|
8917
9004
|
}
|
|
8918
9005
|
|
|
8919
|
-
function _defineProperties$
|
|
9006
|
+
function _defineProperties$5(target, props) {
|
|
8920
9007
|
for (var i = 0; i < props.length; i++) {
|
|
8921
9008
|
var descriptor = props[i];
|
|
8922
9009
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8926,9 +9013,9 @@
|
|
|
8926
9013
|
}
|
|
8927
9014
|
}
|
|
8928
9015
|
|
|
8929
|
-
function _createClass$
|
|
8930
|
-
if (protoProps) _defineProperties$
|
|
8931
|
-
if (staticProps) _defineProperties$
|
|
9016
|
+
function _createClass$6(Constructor, protoProps, staticProps) {
|
|
9017
|
+
if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
|
|
9018
|
+
if (staticProps) _defineProperties$5(Constructor, staticProps);
|
|
8932
9019
|
return Constructor;
|
|
8933
9020
|
}
|
|
8934
9021
|
/* global window, localStorage */
|
|
@@ -8956,10 +9043,10 @@
|
|
|
8956
9043
|
var canStoreURLs = hasStorage;
|
|
8957
9044
|
var WebStorageUrlStorage = /*#__PURE__*/function () {
|
|
8958
9045
|
function WebStorageUrlStorage() {
|
|
8959
|
-
_classCallCheck$
|
|
9046
|
+
_classCallCheck$6(this, WebStorageUrlStorage);
|
|
8960
9047
|
}
|
|
8961
9048
|
|
|
8962
|
-
_createClass$
|
|
9049
|
+
_createClass$6(WebStorageUrlStorage, [{
|
|
8963
9050
|
key: "findAllUploads",
|
|
8964
9051
|
value: function findAllUploads() {
|
|
8965
9052
|
var results = this._findEntries('tus::');
|
|
@@ -9013,13 +9100,13 @@
|
|
|
9013
9100
|
return WebStorageUrlStorage;
|
|
9014
9101
|
}();
|
|
9015
9102
|
|
|
9016
|
-
function _classCallCheck$
|
|
9103
|
+
function _classCallCheck$5(instance, Constructor) {
|
|
9017
9104
|
if (!(instance instanceof Constructor)) {
|
|
9018
9105
|
throw new TypeError("Cannot call a class as a function");
|
|
9019
9106
|
}
|
|
9020
9107
|
}
|
|
9021
9108
|
|
|
9022
|
-
function _defineProperties$
|
|
9109
|
+
function _defineProperties$4(target, props) {
|
|
9023
9110
|
for (var i = 0; i < props.length; i++) {
|
|
9024
9111
|
var descriptor = props[i];
|
|
9025
9112
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9029,20 +9116,20 @@
|
|
|
9029
9116
|
}
|
|
9030
9117
|
}
|
|
9031
9118
|
|
|
9032
|
-
function _createClass$
|
|
9033
|
-
if (protoProps) _defineProperties$
|
|
9034
|
-
if (staticProps) _defineProperties$
|
|
9119
|
+
function _createClass$5(Constructor, protoProps, staticProps) {
|
|
9120
|
+
if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
|
|
9121
|
+
if (staticProps) _defineProperties$4(Constructor, staticProps);
|
|
9035
9122
|
return Constructor;
|
|
9036
9123
|
}
|
|
9037
|
-
/*
|
|
9124
|
+
/* eslint-disable max-classes-per-file */
|
|
9038
9125
|
|
|
9039
9126
|
|
|
9040
9127
|
var XHRHttpStack = /*#__PURE__*/function () {
|
|
9041
9128
|
function XHRHttpStack() {
|
|
9042
|
-
_classCallCheck$
|
|
9129
|
+
_classCallCheck$5(this, XHRHttpStack);
|
|
9043
9130
|
}
|
|
9044
9131
|
|
|
9045
|
-
_createClass$
|
|
9132
|
+
_createClass$5(XHRHttpStack, [{
|
|
9046
9133
|
key: "createRequest",
|
|
9047
9134
|
value: function createRequest(method, url) {
|
|
9048
9135
|
return new Request(method, url);
|
|
@@ -9059,7 +9146,7 @@
|
|
|
9059
9146
|
|
|
9060
9147
|
var Request = /*#__PURE__*/function () {
|
|
9061
9148
|
function Request(method, url) {
|
|
9062
|
-
_classCallCheck$
|
|
9149
|
+
_classCallCheck$5(this, Request);
|
|
9063
9150
|
|
|
9064
9151
|
this._xhr = new XMLHttpRequest();
|
|
9065
9152
|
|
|
@@ -9070,7 +9157,7 @@
|
|
|
9070
9157
|
this._headers = {};
|
|
9071
9158
|
}
|
|
9072
9159
|
|
|
9073
|
-
_createClass$
|
|
9160
|
+
_createClass$5(Request, [{
|
|
9074
9161
|
key: "getMethod",
|
|
9075
9162
|
value: function getMethod() {
|
|
9076
9163
|
return this._method;
|
|
@@ -9145,12 +9232,12 @@
|
|
|
9145
9232
|
|
|
9146
9233
|
var Response = /*#__PURE__*/function () {
|
|
9147
9234
|
function Response(xhr) {
|
|
9148
|
-
_classCallCheck$
|
|
9235
|
+
_classCallCheck$5(this, Response);
|
|
9149
9236
|
|
|
9150
9237
|
this._xhr = xhr;
|
|
9151
9238
|
}
|
|
9152
9239
|
|
|
9153
|
-
_createClass$
|
|
9240
|
+
_createClass$5(Response, [{
|
|
9154
9241
|
key: "getStatus",
|
|
9155
9242
|
value: function getStatus() {
|
|
9156
9243
|
return this._xhr.status;
|
|
@@ -9231,13 +9318,13 @@
|
|
|
9231
9318
|
});
|
|
9232
9319
|
}
|
|
9233
9320
|
|
|
9234
|
-
function _classCallCheck$
|
|
9321
|
+
function _classCallCheck$4(instance, Constructor) {
|
|
9235
9322
|
if (!(instance instanceof Constructor)) {
|
|
9236
9323
|
throw new TypeError("Cannot call a class as a function");
|
|
9237
9324
|
}
|
|
9238
9325
|
}
|
|
9239
9326
|
|
|
9240
|
-
function _defineProperties$
|
|
9327
|
+
function _defineProperties$3(target, props) {
|
|
9241
9328
|
for (var i = 0; i < props.length; i++) {
|
|
9242
9329
|
var descriptor = props[i];
|
|
9243
9330
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9247,22 +9334,22 @@
|
|
|
9247
9334
|
}
|
|
9248
9335
|
}
|
|
9249
9336
|
|
|
9250
|
-
function _createClass$
|
|
9251
|
-
if (protoProps) _defineProperties$
|
|
9252
|
-
if (staticProps) _defineProperties$
|
|
9337
|
+
function _createClass$4(Constructor, protoProps, staticProps) {
|
|
9338
|
+
if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
|
|
9339
|
+
if (staticProps) _defineProperties$3(Constructor, staticProps);
|
|
9253
9340
|
return Constructor;
|
|
9254
9341
|
}
|
|
9255
9342
|
|
|
9256
9343
|
var FileSource = /*#__PURE__*/function () {
|
|
9257
9344
|
// Make this.size a method
|
|
9258
9345
|
function FileSource(file) {
|
|
9259
|
-
_classCallCheck$
|
|
9346
|
+
_classCallCheck$4(this, FileSource);
|
|
9260
9347
|
|
|
9261
9348
|
this._file = file;
|
|
9262
9349
|
this.size = file.size;
|
|
9263
9350
|
}
|
|
9264
9351
|
|
|
9265
|
-
_createClass$
|
|
9352
|
+
_createClass$4(FileSource, [{
|
|
9266
9353
|
key: "slice",
|
|
9267
9354
|
value: function slice(start, end) {
|
|
9268
9355
|
// In Apache Cordova applications, a File must be resolved using
|
|
@@ -9287,9 +9374,65 @@
|
|
|
9287
9374
|
return FileSource;
|
|
9288
9375
|
}();
|
|
9289
9376
|
|
|
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
|
+
|
|
9290
9433
|
var StreamSource = /*#__PURE__*/function () {
|
|
9291
9434
|
function StreamSource(reader, chunkSize) {
|
|
9292
|
-
_classCallCheck$
|
|
9435
|
+
_classCallCheck$3(this, StreamSource);
|
|
9293
9436
|
|
|
9294
9437
|
this._chunkSize = chunkSize;
|
|
9295
9438
|
this._buffer = undefined;
|
|
@@ -9298,7 +9441,7 @@
|
|
|
9298
9441
|
this._done = false;
|
|
9299
9442
|
}
|
|
9300
9443
|
|
|
9301
|
-
_createClass$
|
|
9444
|
+
_createClass$3(StreamSource, [{
|
|
9302
9445
|
key: "slice",
|
|
9303
9446
|
value: function slice(start, end) {
|
|
9304
9447
|
if (start < this._bufferOffset) {
|
|
@@ -9373,38 +9516,26 @@
|
|
|
9373
9516
|
return StreamSource;
|
|
9374
9517
|
}();
|
|
9375
9518
|
|
|
9376
|
-
function
|
|
9377
|
-
if (
|
|
9378
|
-
|
|
9379
|
-
return blobOrArray.length;
|
|
9380
|
-
}
|
|
9381
|
-
/*
|
|
9382
|
-
Typed arrays and blobs don't have a concat method.
|
|
9383
|
-
This function helps StreamSource accumulate data to reach chunkSize.
|
|
9384
|
-
*/
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
function concat$2(a, b) {
|
|
9388
|
-
if (a.concat) {
|
|
9389
|
-
// Is `a` an Array?
|
|
9390
|
-
return a.concat(b);
|
|
9391
|
-
}
|
|
9392
|
-
|
|
9393
|
-
if (a instanceof Blob) {
|
|
9394
|
-
return new Blob([a, b], {
|
|
9395
|
-
type: a.type
|
|
9396
|
-
});
|
|
9519
|
+
function _classCallCheck$2(instance, Constructor) {
|
|
9520
|
+
if (!(instance instanceof Constructor)) {
|
|
9521
|
+
throw new TypeError("Cannot call a class as a function");
|
|
9397
9522
|
}
|
|
9523
|
+
}
|
|
9398
9524
|
|
|
9399
|
-
|
|
9400
|
-
|
|
9401
|
-
var
|
|
9402
|
-
|
|
9403
|
-
|
|
9404
|
-
|
|
9525
|
+
function _defineProperties$1(target, props) {
|
|
9526
|
+
for (var i = 0; i < props.length; i++) {
|
|
9527
|
+
var descriptor = props[i];
|
|
9528
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
9529
|
+
descriptor.configurable = true;
|
|
9530
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
9531
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9405
9532
|
}
|
|
9533
|
+
}
|
|
9406
9534
|
|
|
9407
|
-
|
|
9535
|
+
function _createClass$2(Constructor, protoProps, staticProps) {
|
|
9536
|
+
if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
|
|
9537
|
+
if (staticProps) _defineProperties$1(Constructor, staticProps);
|
|
9538
|
+
return Constructor;
|
|
9408
9539
|
}
|
|
9409
9540
|
|
|
9410
9541
|
var FileReader$1 = /*#__PURE__*/function () {
|
|
@@ -9554,11 +9685,13 @@
|
|
|
9554
9685
|
}
|
|
9555
9686
|
|
|
9556
9687
|
function _createSuper(Derived) {
|
|
9557
|
-
|
|
9688
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
9689
|
+
|
|
9690
|
+
return function _createSuperInternal() {
|
|
9558
9691
|
var Super = _getPrototypeOf(Derived),
|
|
9559
9692
|
result;
|
|
9560
9693
|
|
|
9561
|
-
if (
|
|
9694
|
+
if (hasNativeReflectConstruct) {
|
|
9562
9695
|
var NewTarget = _getPrototypeOf(this).constructor;
|
|
9563
9696
|
|
|
9564
9697
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
@@ -9592,7 +9725,7 @@
|
|
|
9592
9725
|
if (typeof Proxy === "function") return true;
|
|
9593
9726
|
|
|
9594
9727
|
try {
|
|
9595
|
-
|
|
9728
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
9596
9729
|
return true;
|
|
9597
9730
|
} catch (e) {
|
|
9598
9731
|
return false;
|
|
@@ -9655,7 +9788,7 @@
|
|
|
9655
9788
|
return obj;
|
|
9656
9789
|
}
|
|
9657
9790
|
|
|
9658
|
-
var defaultOptions = _objectSpread({}, BaseUpload.defaultOptions, {
|
|
9791
|
+
var defaultOptions = _objectSpread(_objectSpread({}, BaseUpload.defaultOptions), {}, {
|
|
9659
9792
|
httpStack: new XHRHttpStack(),
|
|
9660
9793
|
fileReader: new FileReader$1(),
|
|
9661
9794
|
urlStorage: canStoreURLs ? new WebStorageUrlStorage() : new NoopUrlStorage(),
|
|
@@ -9673,14 +9806,14 @@
|
|
|
9673
9806
|
|
|
9674
9807
|
_classCallCheck$1(this, Upload);
|
|
9675
9808
|
|
|
9676
|
-
options = _objectSpread({}, defaultOptions,
|
|
9809
|
+
options = _objectSpread(_objectSpread({}, defaultOptions), options);
|
|
9677
9810
|
return _super.call(this, file, options);
|
|
9678
9811
|
}
|
|
9679
9812
|
|
|
9680
9813
|
_createClass$1(Upload, null, [{
|
|
9681
9814
|
key: "terminate",
|
|
9682
9815
|
value: function terminate(url, options, cb) {
|
|
9683
|
-
options = _objectSpread({}, defaultOptions,
|
|
9816
|
+
options = _objectSpread(_objectSpread({}, defaultOptions), options);
|
|
9684
9817
|
return BaseUpload.terminate(url, options, cb);
|
|
9685
9818
|
}
|
|
9686
9819
|
}]);
|
|
@@ -9707,8 +9840,10 @@
|
|
|
9707
9840
|
var ATTR_ENDORSEMENT_NETWORK = 'endorsement-network';
|
|
9708
9841
|
var ATTR_TRANSACTION_ID = "transaction-id"; // API BASE URLs
|
|
9709
9842
|
|
|
9710
|
-
var UTU_API_BASE_URL_PRODUCTION = "https://api.ututrust.com/
|
|
9711
|
-
var UTU_API_BASE_URL_TEST = "https://stage-api.ututrust.com/
|
|
9843
|
+
var UTU_API_BASE_URL_PRODUCTION = "https://api.ututrust.com/";
|
|
9844
|
+
var UTU_API_BASE_URL_TEST = "https://stage-api.ututrust.com/";
|
|
9845
|
+
var CORE_API_BASE = "core-api";
|
|
9846
|
+
var VIDEO_PUBLISHED_BASE = "published-video"; // API resource paths
|
|
9712
9847
|
|
|
9713
9848
|
var API_RANKING = "/ranking";
|
|
9714
9849
|
var API_FEEDBACK = "/feedback";
|
|
@@ -9721,7 +9856,7 @@
|
|
|
9721
9856
|
|
|
9722
9857
|
var LOCAL_STORAGE_KEY_UTU_IDENTITY_DATA = "utu-identity-data"; // UTT Endorsement
|
|
9723
9858
|
|
|
9724
|
-
var UTT_CONTRACT_ADDRESS = "
|
|
9859
|
+
var UTT_CONTRACT_ADDRESS = "0x155A7ec2C100108921855E612e98A50a13118777";
|
|
9725
9860
|
|
|
9726
9861
|
function e$1(e) {
|
|
9727
9862
|
this.message = e;
|
|
@@ -13259,7 +13394,7 @@
|
|
|
13259
13394
|
})(module, commonjsGlobal);
|
|
13260
13395
|
});
|
|
13261
13396
|
|
|
13262
|
-
const version$h = "logger/5.
|
|
13397
|
+
const version$h = "logger/5.6.0";
|
|
13263
13398
|
|
|
13264
13399
|
let _permanentCensorErrors = false;
|
|
13265
13400
|
let _censorErrors = false;
|
|
@@ -13465,6 +13600,48 @@
|
|
|
13465
13600
|
messageDetails.push(`code=${code}`);
|
|
13466
13601
|
messageDetails.push(`version=${this.version}`);
|
|
13467
13602
|
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
|
+
}
|
|
13468
13645
|
|
|
13469
13646
|
if (messageDetails.length) {
|
|
13470
13647
|
message += " (" + messageDetails.join(", ") + ")";
|
|
@@ -13634,7 +13811,7 @@
|
|
|
13634
13811
|
Logger.errors = ErrorCode;
|
|
13635
13812
|
Logger.levels = LogLevel;
|
|
13636
13813
|
|
|
13637
|
-
const version$g = "bytes/5.
|
|
13814
|
+
const version$g = "bytes/5.6.0";
|
|
13638
13815
|
|
|
13639
13816
|
const logger$n = new Logger(version$g); ///////////////////////////////
|
|
13640
13817
|
|
|
@@ -13963,20 +14140,28 @@
|
|
|
13963
14140
|
s: "0x",
|
|
13964
14141
|
_vs: "0x",
|
|
13965
14142
|
recoveryParam: 0,
|
|
13966
|
-
v: 0
|
|
14143
|
+
v: 0,
|
|
14144
|
+
yParityAndS: "0x",
|
|
14145
|
+
compact: "0x"
|
|
13967
14146
|
};
|
|
13968
14147
|
|
|
13969
14148
|
if (isBytesLike(signature)) {
|
|
13970
|
-
|
|
13971
|
-
|
|
13972
|
-
if (bytes.length
|
|
13973
|
-
|
|
13974
|
-
|
|
13975
|
-
|
|
14149
|
+
let bytes = arrayify(signature); // Get the r, s and v
|
|
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
|
|
13976
14164
|
|
|
13977
|
-
result.r = hexlify(bytes.slice(0, 32));
|
|
13978
|
-
result.s = hexlify(bytes.slice(32, 64));
|
|
13979
|
-
result.v = bytes[64]; // Allow a recid to be used as the v
|
|
13980
14165
|
|
|
13981
14166
|
if (result.v < 27) {
|
|
13982
14167
|
if (result.v === 0 || result.v === 1) {
|
|
@@ -14086,10 +14271,12 @@
|
|
|
14086
14271
|
}
|
|
14087
14272
|
}
|
|
14088
14273
|
|
|
14274
|
+
result.yParityAndS = result._vs;
|
|
14275
|
+
result.compact = result.r + result.yParityAndS.substring(2);
|
|
14089
14276
|
return result;
|
|
14090
14277
|
}
|
|
14091
14278
|
|
|
14092
|
-
const version$f = "bignumber/5.
|
|
14279
|
+
const version$f = "bignumber/5.6.0";
|
|
14093
14280
|
|
|
14094
14281
|
var BN = bn.BN;
|
|
14095
14282
|
const logger$m = new Logger(version$f);
|
|
@@ -14140,7 +14327,7 @@
|
|
|
14140
14327
|
const o = BigNumber.from(other);
|
|
14141
14328
|
|
|
14142
14329
|
if (o.isZero()) {
|
|
14143
|
-
throwFault("division
|
|
14330
|
+
throwFault("division-by-zero", "div");
|
|
14144
14331
|
}
|
|
14145
14332
|
|
|
14146
14333
|
return toBigNumber(toBN(this).div(toBN(other)));
|
|
@@ -14154,7 +14341,7 @@
|
|
|
14154
14341
|
const value = toBN(other);
|
|
14155
14342
|
|
|
14156
14343
|
if (value.isNeg()) {
|
|
14157
|
-
throwFault("
|
|
14344
|
+
throwFault("division-by-zero", "mod");
|
|
14158
14345
|
}
|
|
14159
14346
|
|
|
14160
14347
|
return toBigNumber(toBN(this).umod(value));
|
|
@@ -14164,7 +14351,7 @@
|
|
|
14164
14351
|
const value = toBN(other);
|
|
14165
14352
|
|
|
14166
14353
|
if (value.isNeg()) {
|
|
14167
|
-
throwFault("
|
|
14354
|
+
throwFault("negative-power", "pow");
|
|
14168
14355
|
}
|
|
14169
14356
|
|
|
14170
14357
|
return toBigNumber(toBN(this).pow(value));
|
|
@@ -14174,7 +14361,7 @@
|
|
|
14174
14361
|
const value = toBN(other);
|
|
14175
14362
|
|
|
14176
14363
|
if (this.isNegative() || value.isNeg()) {
|
|
14177
|
-
throwFault("
|
|
14364
|
+
throwFault("unbound-bitwise-result", "and");
|
|
14178
14365
|
}
|
|
14179
14366
|
|
|
14180
14367
|
return toBigNumber(toBN(this).and(value));
|
|
@@ -14184,7 +14371,7 @@
|
|
|
14184
14371
|
const value = toBN(other);
|
|
14185
14372
|
|
|
14186
14373
|
if (this.isNegative() || value.isNeg()) {
|
|
14187
|
-
throwFault("
|
|
14374
|
+
throwFault("unbound-bitwise-result", "or");
|
|
14188
14375
|
}
|
|
14189
14376
|
|
|
14190
14377
|
return toBigNumber(toBN(this).or(value));
|
|
@@ -14194,7 +14381,7 @@
|
|
|
14194
14381
|
const value = toBN(other);
|
|
14195
14382
|
|
|
14196
14383
|
if (this.isNegative() || value.isNeg()) {
|
|
14197
|
-
throwFault("
|
|
14384
|
+
throwFault("unbound-bitwise-result", "xor");
|
|
14198
14385
|
}
|
|
14199
14386
|
|
|
14200
14387
|
return toBigNumber(toBN(this).xor(value));
|
|
@@ -14202,7 +14389,7 @@
|
|
|
14202
14389
|
|
|
14203
14390
|
mask(value) {
|
|
14204
14391
|
if (this.isNegative() || value < 0) {
|
|
14205
|
-
throwFault("
|
|
14392
|
+
throwFault("negative-width", "mask");
|
|
14206
14393
|
}
|
|
14207
14394
|
|
|
14208
14395
|
return toBigNumber(toBN(this).maskn(value));
|
|
@@ -14210,7 +14397,7 @@
|
|
|
14210
14397
|
|
|
14211
14398
|
shl(value) {
|
|
14212
14399
|
if (this.isNegative() || value < 0) {
|
|
14213
|
-
throwFault("
|
|
14400
|
+
throwFault("negative-width", "shl");
|
|
14214
14401
|
}
|
|
14215
14402
|
|
|
14216
14403
|
return toBigNumber(toBN(this).shln(value));
|
|
@@ -14218,7 +14405,7 @@
|
|
|
14218
14405
|
|
|
14219
14406
|
shr(value) {
|
|
14220
14407
|
if (this.isNegative() || value < 0) {
|
|
14221
|
-
throwFault("
|
|
14408
|
+
throwFault("negative-width", "shr");
|
|
14222
14409
|
}
|
|
14223
14410
|
|
|
14224
14411
|
return toBigNumber(toBN(this).shrn(value));
|
|
@@ -14454,7 +14641,7 @@
|
|
|
14454
14641
|
return new BN(value, 36).toString(16);
|
|
14455
14642
|
} // value should have no prefix
|
|
14456
14643
|
|
|
14457
|
-
const version$e = "properties/5.
|
|
14644
|
+
const version$e = "properties/5.6.0";
|
|
14458
14645
|
|
|
14459
14646
|
var __awaiter$8 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
14460
14647
|
function adopt(value) {
|
|
@@ -14633,7 +14820,7 @@
|
|
|
14633
14820
|
|
|
14634
14821
|
}
|
|
14635
14822
|
|
|
14636
|
-
const version$d = "abi/5.
|
|
14823
|
+
const version$d = "abi/5.6.0";
|
|
14637
14824
|
|
|
14638
14825
|
const logger$k = new Logger(version$d);
|
|
14639
14826
|
const _constructorGuard$1 = {};
|
|
@@ -16621,7 +16808,7 @@
|
|
|
16621
16808
|
return '0x' + sha3$1.keccak_256(arrayify(data));
|
|
16622
16809
|
}
|
|
16623
16810
|
|
|
16624
|
-
const version$c = "rlp/5.
|
|
16811
|
+
const version$c = "rlp/5.6.0";
|
|
16625
16812
|
|
|
16626
16813
|
const logger$i = new Logger(version$c);
|
|
16627
16814
|
|
|
@@ -16784,7 +16971,7 @@
|
|
|
16784
16971
|
return decoded.result;
|
|
16785
16972
|
}
|
|
16786
16973
|
|
|
16787
|
-
const version$b = "address/5.
|
|
16974
|
+
const version$b = "address/5.6.0";
|
|
16788
16975
|
|
|
16789
16976
|
const logger$h = new Logger(version$b);
|
|
16790
16977
|
|
|
@@ -17367,7 +17554,7 @@
|
|
|
17367
17554
|
|
|
17368
17555
|
}
|
|
17369
17556
|
|
|
17370
|
-
const version$a = "strings/5.
|
|
17557
|
+
const version$a = "strings/5.6.0";
|
|
17371
17558
|
|
|
17372
17559
|
const logger$f = new Logger(version$a); ///////////////////////////////
|
|
17373
17560
|
|
|
@@ -18186,7 +18373,7 @@
|
|
|
18186
18373
|
return keccak256(toUtf8Bytes(text));
|
|
18187
18374
|
}
|
|
18188
18375
|
|
|
18189
|
-
const version$9 = "hash/5.
|
|
18376
|
+
const version$9 = "hash/5.6.0";
|
|
18190
18377
|
|
|
18191
18378
|
const logger$d = new Logger(version$9);
|
|
18192
18379
|
const Zeros = new Uint8Array(32);
|
|
@@ -18215,6 +18402,15 @@
|
|
|
18215
18402
|
|
|
18216
18403
|
return hexlify(result);
|
|
18217
18404
|
}
|
|
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
|
+
}
|
|
18218
18414
|
|
|
18219
18415
|
var __awaiter$7 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
18220
18416
|
function adopt(value) {
|
|
@@ -19494,7 +19690,7 @@
|
|
|
19494
19690
|
|
|
19495
19691
|
}
|
|
19496
19692
|
|
|
19497
|
-
const version$8 = "abstract-provider/5.
|
|
19693
|
+
const version$8 = "abstract-provider/5.6.0";
|
|
19498
19694
|
|
|
19499
19695
|
var __awaiter$6 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
19500
19696
|
function adopt(value) {
|
|
@@ -19565,7 +19761,7 @@
|
|
|
19565
19761
|
// We may want to compute this more accurately in the future,
|
|
19566
19762
|
// using the formula "check if the base fee is correct".
|
|
19567
19763
|
// See: https://eips.ethereum.org/EIPS/eip-1559
|
|
19568
|
-
maxPriorityFeePerGas = BigNumber.from("
|
|
19764
|
+
maxPriorityFeePerGas = BigNumber.from("1500000000");
|
|
19569
19765
|
maxFeePerGas = block.baseFeePerGas.mul(2).add(maxPriorityFeePerGas);
|
|
19570
19766
|
}
|
|
19571
19767
|
|
|
@@ -19593,7 +19789,7 @@
|
|
|
19593
19789
|
|
|
19594
19790
|
}
|
|
19595
19791
|
|
|
19596
|
-
const version$7 = "abstract-signer/5.
|
|
19792
|
+
const version$7 = "abstract-signer/5.6.0";
|
|
19597
19793
|
|
|
19598
19794
|
var __awaiter$5 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
19599
19795
|
function adopt(value) {
|
|
@@ -19627,7 +19823,7 @@
|
|
|
19627
19823
|
});
|
|
19628
19824
|
};
|
|
19629
19825
|
const logger$9 = new Logger(version$7);
|
|
19630
|
-
const allowedTransactionKeys$1 = ["accessList", "chainId", "customData", "data", "from", "gasLimit", "gasPrice", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "to", "type", "value"];
|
|
19826
|
+
const allowedTransactionKeys$1 = ["accessList", "ccipReadEnabled", "chainId", "customData", "data", "from", "gasLimit", "gasPrice", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "to", "type", "value"];
|
|
19631
19827
|
const forwardErrors = [Logger.errors.INSUFFICIENT_FUNDS, Logger.errors.NONCE_EXPIRED, Logger.errors.REPLACEMENT_UNDERPRICED];
|
|
19632
19828
|
class Signer {
|
|
19633
19829
|
///////////////////
|
|
@@ -23140,7 +23336,7 @@
|
|
|
23140
23336
|
});
|
|
23141
23337
|
var EC$1 = elliptic_1.ec;
|
|
23142
23338
|
|
|
23143
|
-
const version$6 = "signing-key/5.
|
|
23339
|
+
const version$6 = "signing-key/5.6.0";
|
|
23144
23340
|
|
|
23145
23341
|
const logger$8 = new Logger(version$6);
|
|
23146
23342
|
let _curve = null;
|
|
@@ -23234,7 +23430,7 @@
|
|
|
23234
23430
|
return logger$8.throwArgumentError("invalid public or private key", "key", "[REDACTED]");
|
|
23235
23431
|
}
|
|
23236
23432
|
|
|
23237
|
-
const version$5 = "transactions/5.
|
|
23433
|
+
const version$5 = "transactions/5.6.0";
|
|
23238
23434
|
|
|
23239
23435
|
const logger$7 = new Logger(version$5);
|
|
23240
23436
|
var TransactionTypes;
|
|
@@ -23544,7 +23740,7 @@
|
|
|
23544
23740
|
});
|
|
23545
23741
|
}
|
|
23546
23742
|
|
|
23547
|
-
const version$4 = "contracts/5.
|
|
23743
|
+
const version$4 = "contracts/5.6.0";
|
|
23548
23744
|
|
|
23549
23745
|
var __awaiter$4 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
23550
23746
|
function adopt(value) {
|
|
@@ -23762,6 +23958,10 @@
|
|
|
23762
23958
|
|
|
23763
23959
|
if (ro.customData) {
|
|
23764
23960
|
tx.customData = shallowCopy(ro.customData);
|
|
23961
|
+
}
|
|
23962
|
+
|
|
23963
|
+
if (ro.ccipReadEnabled) {
|
|
23964
|
+
tx.ccipReadEnabled = !!ro.ccipReadEnabled;
|
|
23765
23965
|
} // Remove the overrides
|
|
23766
23966
|
|
|
23767
23967
|
|
|
@@ -23774,7 +23974,8 @@
|
|
|
23774
23974
|
delete overrides.accessList;
|
|
23775
23975
|
delete overrides.maxFeePerGas;
|
|
23776
23976
|
delete overrides.maxPriorityFeePerGas;
|
|
23777
|
-
delete overrides.customData;
|
|
23977
|
+
delete overrides.customData;
|
|
23978
|
+
delete overrides.ccipReadEnabled; // Make sure there are no stray overrides, which may indicate a
|
|
23778
23979
|
// typo or using an unsupported key.
|
|
23779
23980
|
|
|
23780
23981
|
const leftovers = Object.keys(overrides).filter(key => overrides[key] != null);
|
|
@@ -24186,8 +24387,10 @@
|
|
|
24186
24387
|
operation: "new Contract"
|
|
24187
24388
|
});
|
|
24188
24389
|
}
|
|
24189
|
-
}
|
|
24390
|
+
} // Swallow bad ENS names to prevent Unhandled Exceptions
|
|
24190
24391
|
|
|
24392
|
+
|
|
24393
|
+
this.resolvedAddress.catch(e => {});
|
|
24191
24394
|
const uniqueNames = {};
|
|
24192
24395
|
const uniqueSignatures = {};
|
|
24193
24396
|
Object.keys(this.interface.functions).forEach(signature => {
|
|
@@ -24776,14 +24979,14 @@
|
|
|
24776
24979
|
const Base58 = new BaseX("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");
|
|
24777
24980
|
//console.log(Base58.encode(Base58.decode("Qmd2V777o5XvJbYMeMb8k2nU5f8d3ciUQ5YpYuWhzv8iDj")))
|
|
24778
24981
|
|
|
24779
|
-
const version$3 = "sha2/5.
|
|
24982
|
+
const version$3 = "sha2/5.6.0";
|
|
24780
24983
|
|
|
24781
24984
|
new Logger(version$3);
|
|
24782
24985
|
function sha256(data) {
|
|
24783
24986
|
return "0x" + hash.sha256().update(arrayify(data)).digest("hex");
|
|
24784
24987
|
}
|
|
24785
24988
|
|
|
24786
|
-
const version$2 = "networks/5.
|
|
24989
|
+
const version$2 = "networks/5.6.0";
|
|
24787
24990
|
|
|
24788
24991
|
const logger$5 = new Logger(version$2);
|
|
24789
24992
|
|
|
@@ -24799,25 +25002,25 @@
|
|
|
24799
25002
|
|
|
24800
25003
|
const providerList = [];
|
|
24801
25004
|
|
|
24802
|
-
if (providers.InfuraProvider) {
|
|
25005
|
+
if (providers.InfuraProvider && options.infura !== "-") {
|
|
24803
25006
|
try {
|
|
24804
25007
|
providerList.push(new providers.InfuraProvider(network, options.infura));
|
|
24805
25008
|
} catch (error) {}
|
|
24806
25009
|
}
|
|
24807
25010
|
|
|
24808
|
-
if (providers.EtherscanProvider) {
|
|
25011
|
+
if (providers.EtherscanProvider && options.etherscan !== "-") {
|
|
24809
25012
|
try {
|
|
24810
25013
|
providerList.push(new providers.EtherscanProvider(network, options.etherscan));
|
|
24811
25014
|
} catch (error) {}
|
|
24812
25015
|
}
|
|
24813
25016
|
|
|
24814
|
-
if (providers.AlchemyProvider) {
|
|
25017
|
+
if (providers.AlchemyProvider && options.alchemy !== "-") {
|
|
24815
25018
|
try {
|
|
24816
25019
|
providerList.push(new providers.AlchemyProvider(network, options.alchemy));
|
|
24817
25020
|
} catch (error) {}
|
|
24818
25021
|
}
|
|
24819
25022
|
|
|
24820
|
-
if (providers.PocketProvider) {
|
|
25023
|
+
if (providers.PocketProvider && options.pocket !== "-") {
|
|
24821
25024
|
// These networks are currently faulty on Pocket as their
|
|
24822
25025
|
// network does not handle the Berlin hardfork, which is
|
|
24823
25026
|
// live on these ones.
|
|
@@ -24833,7 +25036,7 @@
|
|
|
24833
25036
|
} catch (error) {}
|
|
24834
25037
|
}
|
|
24835
25038
|
|
|
24836
|
-
if (providers.CloudflareProvider) {
|
|
25039
|
+
if (providers.CloudflareProvider && options.cloudflare !== "-") {
|
|
24837
25040
|
try {
|
|
24838
25041
|
providerList.push(new providers.CloudflareProvider(network));
|
|
24839
25042
|
} catch (error) {}
|
|
@@ -25096,7 +25299,7 @@
|
|
|
25096
25299
|
return btoa(textData);
|
|
25097
25300
|
}
|
|
25098
25301
|
|
|
25099
|
-
const version$1 = "web/5.
|
|
25302
|
+
const version$1 = "web/5.6.0";
|
|
25100
25303
|
|
|
25101
25304
|
var __awaiter$3 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
25102
25305
|
function adopt(value) {
|
|
@@ -25249,6 +25452,7 @@
|
|
|
25249
25452
|
const throttleCallback = typeof connection === "object" ? connection.throttleCallback : null;
|
|
25250
25453
|
const throttleSlotInterval = typeof connection === "object" && typeof connection.throttleSlotInterval === "number" ? connection.throttleSlotInterval : 100;
|
|
25251
25454
|
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;
|
|
25252
25456
|
const headers = {};
|
|
25253
25457
|
let url = null; // @TODO: Allow ConnectionInfo to override some of these values
|
|
25254
25458
|
|
|
@@ -25302,6 +25506,10 @@
|
|
|
25302
25506
|
value: "Basic " + encode$1(toUtf8Bytes(authorization))
|
|
25303
25507
|
};
|
|
25304
25508
|
}
|
|
25509
|
+
|
|
25510
|
+
if (connection.skipFetchSetup != null) {
|
|
25511
|
+
options.skipFetchSetup = !!connection.skipFetchSetup;
|
|
25512
|
+
}
|
|
25305
25513
|
}
|
|
25306
25514
|
|
|
25307
25515
|
const reData = new RegExp("^data:([a-z0-9-]+/[a-z0-9-]+);base64,(.*)$", "i");
|
|
@@ -25455,7 +25663,7 @@
|
|
|
25455
25663
|
|
|
25456
25664
|
if (allow304 && response.statusCode === 304) {
|
|
25457
25665
|
body = null;
|
|
25458
|
-
} else if (response.statusCode < 200 || response.statusCode >= 300) {
|
|
25666
|
+
} else if (!errorPassThrough && (response.statusCode < 200 || response.statusCode >= 300)) {
|
|
25459
25667
|
runningTimeout.cancel();
|
|
25460
25668
|
logger$4.throwError("bad response", Logger.errors.SERVER_ERROR, {
|
|
25461
25669
|
status: response.statusCode,
|
|
@@ -25836,7 +26044,7 @@
|
|
|
25836
26044
|
fromWords: fromWords
|
|
25837
26045
|
};
|
|
25838
26046
|
|
|
25839
|
-
const version = "providers/5.
|
|
26047
|
+
const version = "providers/5.6.1";
|
|
25840
26048
|
|
|
25841
26049
|
const logger$3 = new Logger(version);
|
|
25842
26050
|
class Formatter {
|
|
@@ -25928,7 +26136,7 @@
|
|
|
25928
26136
|
type: type
|
|
25929
26137
|
};
|
|
25930
26138
|
formats.block = {
|
|
25931
|
-
hash: hash,
|
|
26139
|
+
hash: Formatter.allowNull(hash),
|
|
25932
26140
|
parentHash: hash,
|
|
25933
26141
|
number: number,
|
|
25934
26142
|
timestamp: number,
|
|
@@ -25936,7 +26144,7 @@
|
|
|
25936
26144
|
difficulty: this.difficulty.bind(this),
|
|
25937
26145
|
gasLimit: bigNumber,
|
|
25938
26146
|
gasUsed: bigNumber,
|
|
25939
|
-
miner: address,
|
|
26147
|
+
miner: Formatter.allowNull(address),
|
|
25940
26148
|
extraData: data,
|
|
25941
26149
|
transactions: Formatter.allowNull(Formatter.arrayOf(hash)),
|
|
25942
26150
|
baseFeePerGas: Formatter.allowNull(bigNumber)
|
|
@@ -26359,6 +26567,7 @@
|
|
|
26359
26567
|
});
|
|
26360
26568
|
};
|
|
26361
26569
|
const logger$2 = new Logger(version);
|
|
26570
|
+
const MAX_CCIP_REDIRECTS = 10; //////////////////////////////
|
|
26362
26571
|
// Event Serializeing
|
|
26363
26572
|
|
|
26364
26573
|
function checkTopic(topic) {
|
|
@@ -26471,6 +26680,8 @@
|
|
|
26471
26680
|
defineReadOnly(this, "tag", tag);
|
|
26472
26681
|
defineReadOnly(this, "listener", listener);
|
|
26473
26682
|
defineReadOnly(this, "once", once);
|
|
26683
|
+
this._lastBlockNumber = -2;
|
|
26684
|
+
this._inflight = false;
|
|
26474
26685
|
}
|
|
26475
26686
|
|
|
26476
26687
|
get event() {
|
|
@@ -26571,27 +26782,80 @@
|
|
|
26571
26782
|
const matcherIpfs = new RegExp("^(ipfs):/\/(.*)$", "i");
|
|
26572
26783
|
const matchers = [new RegExp("^(https):/\/(.*)$", "i"), new RegExp("^(data):(.*)$", "i"), matcherIpfs, new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$", "i")];
|
|
26573
26784
|
|
|
26574
|
-
function _parseString(result) {
|
|
26785
|
+
function _parseString(result, start) {
|
|
26575
26786
|
try {
|
|
26576
|
-
return toUtf8String(_parseBytes(result));
|
|
26787
|
+
return toUtf8String(_parseBytes(result, start));
|
|
26577
26788
|
} catch (error) {}
|
|
26578
26789
|
|
|
26579
26790
|
return null;
|
|
26580
26791
|
}
|
|
26581
26792
|
|
|
26582
|
-
function _parseBytes(result) {
|
|
26793
|
+
function _parseBytes(result, start) {
|
|
26583
26794
|
if (result === "0x") {
|
|
26584
26795
|
return null;
|
|
26585
26796
|
}
|
|
26586
26797
|
|
|
26587
|
-
const offset = BigNumber.from(hexDataSlice(result,
|
|
26798
|
+
const offset = BigNumber.from(hexDataSlice(result, start, start + 32)).toNumber();
|
|
26588
26799
|
const length = BigNumber.from(hexDataSlice(result, offset, offset + 32)).toNumber();
|
|
26589
26800
|
return hexDataSlice(result, offset + 32, offset + 32 + length);
|
|
26590
26801
|
} // Trim off the ipfs:// prefix and return the default gateway URL
|
|
26591
26802
|
|
|
26592
26803
|
|
|
26593
26804
|
function getIpfsLink(link) {
|
|
26594
|
-
|
|
26805
|
+
if (link.match(/^ipfs:\/\/ipfs\//i)) {
|
|
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);
|
|
26595
26859
|
}
|
|
26596
26860
|
|
|
26597
26861
|
class Resolver {
|
|
@@ -26603,26 +26867,82 @@
|
|
|
26603
26867
|
defineReadOnly(this, "_resolvedAddress", resolvedAddress);
|
|
26604
26868
|
}
|
|
26605
26869
|
|
|
26606
|
-
|
|
26870
|
+
supportsWildcard() {
|
|
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) {
|
|
26607
26893
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
26608
26894
|
// e.g. keccak256("addr(bytes32,uint256)")
|
|
26609
26895
|
const tx = {
|
|
26610
26896
|
to: this.address,
|
|
26897
|
+
ccipReadEnabled: true,
|
|
26611
26898
|
data: hexConcat([selector, namehash(this.name), parameters || "0x"])
|
|
26612
|
-
};
|
|
26899
|
+
}; // Wildcard support; use EIP-2544 to resolve the request
|
|
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
|
+
}
|
|
26613
26908
|
|
|
26614
26909
|
try {
|
|
26615
|
-
|
|
26910
|
+
let result = yield this.provider.call(tx);
|
|
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;
|
|
26616
26924
|
} catch (error) {
|
|
26617
26925
|
if (error.code === Logger.errors.CALL_EXCEPTION) {
|
|
26618
26926
|
return null;
|
|
26619
26927
|
}
|
|
26620
26928
|
|
|
26621
|
-
|
|
26929
|
+
throw error;
|
|
26622
26930
|
}
|
|
26623
26931
|
});
|
|
26624
26932
|
}
|
|
26625
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);
|
|
26940
|
+
}
|
|
26941
|
+
|
|
26942
|
+
return null;
|
|
26943
|
+
});
|
|
26944
|
+
}
|
|
26945
|
+
|
|
26626
26946
|
_getAddress(coinType, hexBytes) {
|
|
26627
26947
|
const coinInfo = coinInfos[String(coinType)];
|
|
26628
26948
|
|
|
@@ -26697,17 +27017,13 @@
|
|
|
26697
27017
|
if (coinType === 60) {
|
|
26698
27018
|
try {
|
|
26699
27019
|
// keccak256("addr(bytes32)")
|
|
26700
|
-
const
|
|
26701
|
-
to: this.address,
|
|
26702
|
-
data: "0x3b3b57de" + namehash(this.name).substring(2)
|
|
26703
|
-
};
|
|
26704
|
-
const hexBytes = yield this.provider.call(transaction); // No address
|
|
27020
|
+
const result = yield this._fetch("0x3b3b57de"); // No address
|
|
26705
27021
|
|
|
26706
|
-
if (
|
|
27022
|
+
if (result === "0x" || result === HashZero) {
|
|
26707
27023
|
return null;
|
|
26708
27024
|
}
|
|
26709
27025
|
|
|
26710
|
-
return this.provider.formatter.callAddress(
|
|
27026
|
+
return this.provider.formatter.callAddress(result);
|
|
26711
27027
|
} catch (error) {
|
|
26712
27028
|
if (error.code === Logger.errors.CALL_EXCEPTION) {
|
|
26713
27029
|
return null;
|
|
@@ -26853,14 +27169,14 @@
|
|
|
26853
27169
|
data: hexConcat([selector, tokenId])
|
|
26854
27170
|
};
|
|
26855
27171
|
|
|
26856
|
-
let metadataUrl = _parseString(yield this.provider.call(tx));
|
|
27172
|
+
let metadataUrl = _parseString(yield this.provider.call(tx), 0);
|
|
26857
27173
|
|
|
26858
27174
|
if (metadataUrl == null) {
|
|
26859
27175
|
return null;
|
|
26860
27176
|
}
|
|
26861
27177
|
|
|
26862
27178
|
linkage.push({
|
|
26863
|
-
type: "metadata-url",
|
|
27179
|
+
type: "metadata-url-base",
|
|
26864
27180
|
content: metadataUrl
|
|
26865
27181
|
}); // ERC-1155 allows a generic {id} in the URL
|
|
26866
27182
|
|
|
@@ -26870,8 +27186,17 @@
|
|
|
26870
27186
|
type: "metadata-url-expanded",
|
|
26871
27187
|
content: metadataUrl
|
|
26872
27188
|
});
|
|
26873
|
-
} //
|
|
27189
|
+
} // Transform IPFS metadata links
|
|
27190
|
+
|
|
27191
|
+
|
|
27192
|
+
if (metadataUrl.match(/^ipfs:/i)) {
|
|
27193
|
+
metadataUrl = getIpfsLink(metadataUrl);
|
|
27194
|
+
}
|
|
26874
27195
|
|
|
27196
|
+
linkage.push({
|
|
27197
|
+
type: "metadata-url",
|
|
27198
|
+
content: metadataUrl
|
|
27199
|
+
}); // Get the token metadata
|
|
26875
27200
|
|
|
26876
27201
|
const metadata = yield fetchJson(metadataUrl);
|
|
26877
27202
|
|
|
@@ -27002,6 +27327,7 @@
|
|
|
27002
27327
|
this._emitted = {
|
|
27003
27328
|
block: -2
|
|
27004
27329
|
};
|
|
27330
|
+
this.disableCcipRead = false;
|
|
27005
27331
|
this.formatter = new.target.getFormatter(); // If network is any, this Provider allows the underlying
|
|
27006
27332
|
// network to change dynamically, and we auto-detect the
|
|
27007
27333
|
// current network
|
|
@@ -27031,6 +27357,7 @@
|
|
|
27031
27357
|
|
|
27032
27358
|
this._maxInternalBlockNumber = -1024;
|
|
27033
27359
|
this._lastBlockNumber = -2;
|
|
27360
|
+
this._maxFilterBlockRange = 10;
|
|
27034
27361
|
this._pollingInterval = 4000;
|
|
27035
27362
|
this._fastQueryDate = 0;
|
|
27036
27363
|
}
|
|
@@ -27103,6 +27430,57 @@
|
|
|
27103
27430
|
|
|
27104
27431
|
static getNetwork(network) {
|
|
27105
27432
|
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
|
+
});
|
|
27106
27484
|
} // Fetches the blockNumber, but will reuse any result that is less
|
|
27107
27485
|
// than maxAge old or has been requested since the last request
|
|
27108
27486
|
|
|
@@ -27284,23 +27662,49 @@
|
|
|
27284
27662
|
|
|
27285
27663
|
case "filter":
|
|
27286
27664
|
{
|
|
27287
|
-
|
|
27288
|
-
|
|
27289
|
-
|
|
27290
|
-
|
|
27291
|
-
|
|
27292
|
-
|
|
27665
|
+
// We only allow a single getLogs to be in-flight at a time
|
|
27666
|
+
if (!event._inflight) {
|
|
27667
|
+
event._inflight = true; // Filter from the last known event; due to load-balancing
|
|
27668
|
+
// and some nodes returning updated block numbers before
|
|
27669
|
+
// indexing events, a logs result with 0 entries cannot be
|
|
27670
|
+
// trusted and we must retry a range which includes it again
|
|
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;
|
|
27293
27678
|
}
|
|
27294
27679
|
|
|
27295
|
-
|
|
27296
|
-
|
|
27297
|
-
|
|
27298
|
-
|
|
27680
|
+
const runner = this.getLogs(filter).then(logs => {
|
|
27681
|
+
// Allow the next getLogs
|
|
27682
|
+
event._inflight = false;
|
|
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;
|
|
27299
27704
|
});
|
|
27300
|
-
|
|
27301
|
-
|
|
27302
|
-
|
|
27303
|
-
runners.push(runner);
|
|
27705
|
+
runners.push(runner);
|
|
27706
|
+
}
|
|
27707
|
+
|
|
27304
27708
|
break;
|
|
27305
27709
|
}
|
|
27306
27710
|
}
|
|
@@ -27928,21 +28332,106 @@
|
|
|
27928
28332
|
});
|
|
27929
28333
|
}
|
|
27930
28334
|
|
|
27931
|
-
|
|
28335
|
+
_call(transaction, blockTag, attempt) {
|
|
27932
28336
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
27933
|
-
|
|
27934
|
-
|
|
27935
|
-
|
|
27936
|
-
|
|
27937
|
-
|
|
27938
|
-
|
|
28337
|
+
if (attempt >= MAX_CCIP_REDIRECTS) {
|
|
28338
|
+
logger$2.throwError("CCIP read exceeded maximum redirections", Logger.errors.SERVER_ERROR, {
|
|
28339
|
+
redirects: attempt,
|
|
28340
|
+
transaction
|
|
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
|
+
}
|
|
27939
28425
|
|
|
27940
28426
|
try {
|
|
27941
28427
|
return hexlify(result);
|
|
27942
28428
|
} catch (error) {
|
|
27943
28429
|
return logger$2.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
|
|
27944
28430
|
method: "call",
|
|
27945
|
-
params
|
|
28431
|
+
params: {
|
|
28432
|
+
transaction,
|
|
28433
|
+
blockTag
|
|
28434
|
+
},
|
|
27946
28435
|
result,
|
|
27947
28436
|
error
|
|
27948
28437
|
});
|
|
@@ -27950,6 +28439,18 @@
|
|
|
27950
28439
|
});
|
|
27951
28440
|
}
|
|
27952
28441
|
|
|
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
|
+
|
|
27953
28454
|
estimateGas(transaction) {
|
|
27954
28455
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
27955
28456
|
yield this.getNetwork();
|
|
@@ -28219,51 +28720,64 @@
|
|
|
28219
28720
|
|
|
28220
28721
|
getResolver(name) {
|
|
28221
28722
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
28222
|
-
|
|
28223
|
-
const address = yield this._getResolver(name);
|
|
28723
|
+
let currentName = name;
|
|
28224
28724
|
|
|
28225
|
-
|
|
28725
|
+
while (true) {
|
|
28726
|
+
if (currentName === "" || currentName === ".") {
|
|
28226
28727
|
return null;
|
|
28227
|
-
}
|
|
28728
|
+
} // Optimization since the eth node cannot change and does
|
|
28729
|
+
// not have a wildcar resolver
|
|
28228
28730
|
|
|
28229
|
-
|
|
28230
|
-
|
|
28231
|
-
if (error.code === Logger.errors.CALL_EXCEPTION) {
|
|
28731
|
+
|
|
28732
|
+
if (name !== "eth" && currentName === "eth") {
|
|
28232
28733
|
return null;
|
|
28233
|
-
}
|
|
28734
|
+
} // Check the current node for a resolver
|
|
28234
28735
|
|
|
28235
|
-
|
|
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
|
+
|
|
28749
|
+
|
|
28750
|
+
currentName = currentName.split(".").slice(1).join(".");
|
|
28236
28751
|
}
|
|
28237
28752
|
});
|
|
28238
28753
|
}
|
|
28239
28754
|
|
|
28240
|
-
_getResolver(name) {
|
|
28755
|
+
_getResolver(name, operation) {
|
|
28241
28756
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
28242
|
-
|
|
28757
|
+
if (operation == null) {
|
|
28758
|
+
operation = "ENS";
|
|
28759
|
+
}
|
|
28760
|
+
|
|
28243
28761
|
const network = yield this.getNetwork(); // No ENS...
|
|
28244
28762
|
|
|
28245
28763
|
if (!network.ensAddress) {
|
|
28246
28764
|
logger$2.throwError("network does not support ENS", Logger.errors.UNSUPPORTED_OPERATION, {
|
|
28247
|
-
operation
|
|
28765
|
+
operation,
|
|
28248
28766
|
network: network.name
|
|
28249
28767
|
});
|
|
28250
|
-
}
|
|
28251
|
-
|
|
28252
|
-
|
|
28253
|
-
const transaction = {
|
|
28254
|
-
to: network.ensAddress,
|
|
28255
|
-
data: "0x0178b8bf" + namehash(name).substring(2)
|
|
28256
|
-
};
|
|
28768
|
+
}
|
|
28257
28769
|
|
|
28258
28770
|
try {
|
|
28259
|
-
|
|
28260
|
-
|
|
28261
|
-
|
|
28262
|
-
|
|
28263
|
-
}
|
|
28264
|
-
|
|
28265
|
-
|
|
28771
|
+
// keccak256("resolver(bytes32)")
|
|
28772
|
+
const addrData = yield this.call({
|
|
28773
|
+
to: network.ensAddress,
|
|
28774
|
+
data: "0x0178b8bf" + namehash(name).substring(2)
|
|
28775
|
+
});
|
|
28776
|
+
return this.formatter.callAddress(addrData);
|
|
28777
|
+
} catch (error) {// ENS registry cannot throw errors on resolver(bytes32)
|
|
28266
28778
|
}
|
|
28779
|
+
|
|
28780
|
+
return null;
|
|
28267
28781
|
});
|
|
28268
28782
|
}
|
|
28269
28783
|
|
|
@@ -28299,38 +28813,18 @@
|
|
|
28299
28813
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
28300
28814
|
address = yield address;
|
|
28301
28815
|
address = this.formatter.address(address);
|
|
28302
|
-
const
|
|
28303
|
-
const
|
|
28816
|
+
const node = address.substring(2).toLowerCase() + ".addr.reverse";
|
|
28817
|
+
const resolverAddr = yield this._getResolver(node, "lookupAddress");
|
|
28304
28818
|
|
|
28305
|
-
if (
|
|
28819
|
+
if (resolverAddr == null) {
|
|
28306
28820
|
return null;
|
|
28307
28821
|
} // keccak("name(bytes32)")
|
|
28308
28822
|
|
|
28309
28823
|
|
|
28310
|
-
|
|
28311
|
-
to:
|
|
28312
|
-
data: "0x691f3431" + namehash(
|
|
28313
|
-
}));
|
|
28314
|
-
|
|
28315
|
-
if (bytes.length < 32 || !BigNumber.from(bytes.slice(0, 32)).eq(32)) {
|
|
28316
|
-
return null;
|
|
28317
|
-
}
|
|
28318
|
-
|
|
28319
|
-
bytes = bytes.slice(32); // Not a length-prefixed string
|
|
28320
|
-
|
|
28321
|
-
if (bytes.length < 32) {
|
|
28322
|
-
return null;
|
|
28323
|
-
} // Get the length of the string (from the length-prefix)
|
|
28324
|
-
|
|
28325
|
-
|
|
28326
|
-
const length = BigNumber.from(bytes.slice(0, 32)).toNumber();
|
|
28327
|
-
bytes = bytes.slice(32); // Length longer than available data
|
|
28328
|
-
|
|
28329
|
-
if (length > bytes.length) {
|
|
28330
|
-
return null;
|
|
28331
|
-
}
|
|
28332
|
-
|
|
28333
|
-
const name = toUtf8String(bytes.slice(0, length)); // Make sure the reverse record matches the foward record
|
|
28824
|
+
const name = _parseString(yield this.call({
|
|
28825
|
+
to: resolverAddr,
|
|
28826
|
+
data: "0x691f3431" + namehash(node).substring(2)
|
|
28827
|
+
}), 0);
|
|
28334
28828
|
|
|
28335
28829
|
const addr = yield this.resolveName(name);
|
|
28336
28830
|
|
|
@@ -28349,16 +28843,46 @@
|
|
|
28349
28843
|
if (isHexString(nameOrAddress)) {
|
|
28350
28844
|
// Address; reverse lookup
|
|
28351
28845
|
const address = this.formatter.address(nameOrAddress);
|
|
28352
|
-
const
|
|
28353
|
-
const resolverAddress = yield this._getResolver(
|
|
28846
|
+
const node = address.substring(2).toLowerCase() + ".addr.reverse";
|
|
28847
|
+
const resolverAddress = yield this._getResolver(node, "getAvatar");
|
|
28354
28848
|
|
|
28355
28849
|
if (!resolverAddress) {
|
|
28356
28850
|
return null;
|
|
28357
|
-
}
|
|
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
|
+
|
|
28358
28868
|
|
|
28359
|
-
|
|
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
|
+
return null;
|
|
28883
|
+
}
|
|
28360
28884
|
} else {
|
|
28361
|
-
// ENS name; forward lookup
|
|
28885
|
+
// ENS name; forward lookup with wildcard
|
|
28362
28886
|
resolver = yield this.getResolver(nameOrAddress);
|
|
28363
28887
|
|
|
28364
28888
|
if (!resolver) {
|
|
@@ -29205,9 +29729,9 @@
|
|
|
29205
29729
|
}
|
|
29206
29730
|
|
|
29207
29731
|
checkProperties(transaction, allowed);
|
|
29208
|
-
const result = {}; //
|
|
29732
|
+
const result = {}; // JSON-RPC now requires numeric values to be "quantity" values
|
|
29209
29733
|
|
|
29210
|
-
["gasLimit", "gasPrice", "type", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "value"].forEach(function (key) {
|
|
29734
|
+
["chainId", "gasLimit", "gasPrice", "type", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "value"].forEach(function (key) {
|
|
29211
29735
|
if (transaction[key] == null) {
|
|
29212
29736
|
return;
|
|
29213
29737
|
}
|
|
@@ -29444,7 +29968,7 @@
|
|
|
29444
29968
|
case 8:
|
|
29445
29969
|
address = _context.sent;
|
|
29446
29970
|
_context.next = 11;
|
|
29447
|
-
return signer.signMessage("
|
|
29971
|
+
return signer.signMessage("Sign in at UTU");
|
|
29448
29972
|
|
|
29449
29973
|
case 11:
|
|
29450
29974
|
signature = _context.sent;
|
|
@@ -29523,7 +30047,7 @@
|
|
|
29523
30047
|
switch (_context.prev = _context.next) {
|
|
29524
30048
|
case 0:
|
|
29525
30049
|
_context.next = 2;
|
|
29526
|
-
return axios.get("".concat(apiUrl).concat(API_RANKING, "?").concat(queryParams), withAuthorizationHeader(accessToken));
|
|
30050
|
+
return axios.get("".concat(apiUrl).concat(CORE_API_BASE).concat(API_RANKING, "?").concat(queryParams), withAuthorizationHeader(accessToken));
|
|
29527
30051
|
|
|
29528
30052
|
case 2:
|
|
29529
30053
|
response = _context.sent;
|
|
@@ -29553,7 +30077,7 @@
|
|
|
29553
30077
|
var targetCriteria = createEntityCriteria(targetUuid);
|
|
29554
30078
|
|
|
29555
30079
|
var sendFeedback = function sendFeedback(feedbackData) {
|
|
29556
|
-
return axios.post("".concat(apiUrl).concat(API_FEEDBACK), {
|
|
30080
|
+
return axios.post("".concat(apiUrl).concat(CORE_API_BASE).concat(API_FEEDBACK), {
|
|
29557
30081
|
sourceCriteria: sourceCriteria,
|
|
29558
30082
|
targetCriteria: targetCriteria,
|
|
29559
30083
|
transactionId: transactionId,
|
|
@@ -29565,6 +30089,7 @@
|
|
|
29565
30089
|
});
|
|
29566
30090
|
};
|
|
29567
30091
|
|
|
30092
|
+
console.log("".concat(apiUrl).concat(CORE_API_BASE).concat(API_FEEDBACK));
|
|
29568
30093
|
return {
|
|
29569
30094
|
sendFeedback: sendFeedback
|
|
29570
30095
|
};
|
|
@@ -29591,7 +30116,7 @@
|
|
|
29591
30116
|
switch (_context2.prev = _context2.next) {
|
|
29592
30117
|
case 0:
|
|
29593
30118
|
_context2.next = 2;
|
|
29594
|
-
return axios.get("".concat(apiUrl).concat(API_BADGES), withAuthorizationHeader(accessToken));
|
|
30119
|
+
return axios.get("".concat(apiUrl).concat(CORE_API_BASE).concat(API_BADGES), withAuthorizationHeader(accessToken));
|
|
29595
30120
|
|
|
29596
30121
|
case 2:
|
|
29597
30122
|
response = _context2.sent;
|
|
@@ -29638,7 +30163,7 @@
|
|
|
29638
30163
|
switch (_context3.prev = _context3.next) {
|
|
29639
30164
|
case 0:
|
|
29640
30165
|
_context3.next = 2;
|
|
29641
|
-
return axios.get("".concat(apiUrl).concat(API_FEEDBACK_SUMMARY, "?").concat(queryParams), withAuthorizationHeader(accessToken));
|
|
30166
|
+
return axios.get("".concat(apiUrl).concat(CORE_API_BASE).concat(API_FEEDBACK_SUMMARY, "?").concat(queryParams), withAuthorizationHeader(accessToken));
|
|
29642
30167
|
|
|
29643
30168
|
case 2:
|
|
29644
30169
|
response = _context3.sent;
|
|
@@ -29660,7 +30185,7 @@
|
|
|
29660
30185
|
feedbackSummary: feedbackSummary
|
|
29661
30186
|
};
|
|
29662
30187
|
}
|
|
29663
|
-
function useUploadVideoApi(source) {
|
|
30188
|
+
function useUploadVideoApi(apiUrl, source) {
|
|
29664
30189
|
var _useAuth5 = useAuth(),
|
|
29665
30190
|
accessToken = _useAuth5.accessToken;
|
|
29666
30191
|
|
|
@@ -29681,7 +30206,7 @@
|
|
|
29681
30206
|
};
|
|
29682
30207
|
var options = {
|
|
29683
30208
|
resume: false,
|
|
29684
|
-
endpoint: "
|
|
30209
|
+
endpoint: "https://stage-ca.ututrust.com/files" ,
|
|
29685
30210
|
headers: getAuthorizationHeader(accessToken),
|
|
29686
30211
|
chunkSize: 28 * 1024,
|
|
29687
30212
|
uploadLengthDeferred: true,
|
|
@@ -29697,7 +30222,7 @@
|
|
|
29697
30222
|
});
|
|
29698
30223
|
},
|
|
29699
30224
|
onSuccess: function onSuccess() {
|
|
29700
|
-
var publishedVideoUrl = getPublishedVideoUrl(upload.url);
|
|
30225
|
+
var publishedVideoUrl = getPublishedVideoUrl(apiUrl, upload.url);
|
|
29701
30226
|
var checkVideoInterval = setInterval(function () {
|
|
29702
30227
|
axios.head(publishedVideoUrl).then(function () {
|
|
29703
30228
|
setStatus({
|
|
@@ -29726,9 +30251,10 @@
|
|
|
29726
30251
|
return status;
|
|
29727
30252
|
}
|
|
29728
30253
|
|
|
29729
|
-
function getPublishedVideoUrl(uploadUrl) {
|
|
30254
|
+
function getPublishedVideoUrl(apiUrl, uploadUrl) {
|
|
29730
30255
|
var videoId = uploadUrl.split("/").pop();
|
|
29731
|
-
|
|
30256
|
+
var publishedUrl = "".concat("https://tus-test-dev-003.s3.eu-central-1.amazonaws.com", "/").concat(videoId) || "".concat(apiUrl).concat(VIDEO_PUBLISHED_BASE).concat(videoId);
|
|
30257
|
+
return publishedUrl;
|
|
29732
30258
|
}
|
|
29733
30259
|
|
|
29734
30260
|
function createEntityCriteria(uuid) {
|
|
@@ -30189,7 +30715,8 @@
|
|
|
30189
30715
|
_export({
|
|
30190
30716
|
target: 'AsyncIterator',
|
|
30191
30717
|
proto: true,
|
|
30192
|
-
real: true
|
|
30718
|
+
real: true,
|
|
30719
|
+
forced: true
|
|
30193
30720
|
}, {
|
|
30194
30721
|
find: function find(fn) {
|
|
30195
30722
|
return $find(this, fn);
|
|
@@ -30411,7 +30938,8 @@
|
|
|
30411
30938
|
_export({
|
|
30412
30939
|
target: 'Iterator',
|
|
30413
30940
|
proto: true,
|
|
30414
|
-
real: true
|
|
30941
|
+
real: true,
|
|
30942
|
+
forced: true
|
|
30415
30943
|
}, {
|
|
30416
30944
|
find: function find(fn) {
|
|
30417
30945
|
anObject(this);
|
|
@@ -30573,7 +31101,8 @@
|
|
|
30573
31101
|
_export({
|
|
30574
31102
|
target: 'AsyncIterator',
|
|
30575
31103
|
proto: true,
|
|
30576
|
-
real: true
|
|
31104
|
+
real: true,
|
|
31105
|
+
forced: true
|
|
30577
31106
|
}, {
|
|
30578
31107
|
map: function map(mapper) {
|
|
30579
31108
|
return new AsyncIteratorProxy({
|
|
@@ -30657,7 +31186,8 @@
|
|
|
30657
31186
|
_export({
|
|
30658
31187
|
target: 'Iterator',
|
|
30659
31188
|
proto: true,
|
|
30660
|
-
real: true
|
|
31189
|
+
real: true,
|
|
31190
|
+
forced: true
|
|
30661
31191
|
}, {
|
|
30662
31192
|
map: function map(mapper) {
|
|
30663
31193
|
return new IteratorProxy({
|
|
@@ -30858,7 +31388,7 @@
|
|
|
30858
31388
|
}));
|
|
30859
31389
|
}
|
|
30860
31390
|
|
|
30861
|
-
function
|
|
31391
|
+
function C(n,t){for(var e in t)n[e]=t[e];return n}function S(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 S(this.props,n)||S(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=C({},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|Compo)/.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}
|
|
30862
31392
|
|
|
30863
31393
|
var isHTMLElement = value => value instanceof HTMLElement;
|
|
30864
31394
|
|
|
@@ -32516,161 +33046,6 @@
|
|
|
32516
33046
|
}
|
|
32517
33047
|
});
|
|
32518
33048
|
|
|
32519
|
-
var String$2 = global$1.String;
|
|
32520
|
-
var TypeError$2 = global$1.TypeError;
|
|
32521
|
-
|
|
32522
|
-
var aPossiblePrototype = function (argument) {
|
|
32523
|
-
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
32524
|
-
throw TypeError$2("Can't set " + String$2(argument) + ' as a prototype');
|
|
32525
|
-
};
|
|
32526
|
-
|
|
32527
|
-
/* eslint-disable no-proto -- safe */
|
|
32528
|
-
|
|
32529
|
-
// `Object.setPrototypeOf` method
|
|
32530
|
-
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
32531
|
-
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
32532
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
32533
|
-
|
|
32534
|
-
|
|
32535
|
-
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
32536
|
-
var CORRECT_SETTER = false;
|
|
32537
|
-
var test = {};
|
|
32538
|
-
var setter;
|
|
32539
|
-
|
|
32540
|
-
try {
|
|
32541
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
32542
|
-
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
32543
|
-
setter(test, []);
|
|
32544
|
-
CORRECT_SETTER = test instanceof Array;
|
|
32545
|
-
} catch (error) {
|
|
32546
|
-
/* empty */
|
|
32547
|
-
}
|
|
32548
|
-
|
|
32549
|
-
return function setPrototypeOf(O, proto) {
|
|
32550
|
-
anObject(O);
|
|
32551
|
-
aPossiblePrototype(proto);
|
|
32552
|
-
if (CORRECT_SETTER) setter(O, proto);else O.__proto__ = proto;
|
|
32553
|
-
return O;
|
|
32554
|
-
};
|
|
32555
|
-
}() : undefined);
|
|
32556
|
-
|
|
32557
|
-
// makes subclassing work correct for wrapped built-ins
|
|
32558
|
-
|
|
32559
|
-
|
|
32560
|
-
var inheritIfRequired = function ($this, dummy, Wrapper) {
|
|
32561
|
-
var NewTarget, NewTargetPrototype;
|
|
32562
|
-
if ( // it can work only with native `setPrototypeOf`
|
|
32563
|
-
objectSetPrototypeOf && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
32564
|
-
isCallable(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$2(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype) objectSetPrototypeOf($this, NewTargetPrototype);
|
|
32565
|
-
return $this;
|
|
32566
|
-
};
|
|
32567
|
-
|
|
32568
|
-
// `thisNumberValue` abstract operation
|
|
32569
|
-
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
32570
|
-
|
|
32571
|
-
|
|
32572
|
-
var thisNumberValue = functionUncurryThis(1.0.valueOf);
|
|
32573
|
-
|
|
32574
|
-
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
32575
|
-
|
|
32576
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
32577
|
-
|
|
32578
|
-
var defineProperty$1 = objectDefineProperty.f;
|
|
32579
|
-
|
|
32580
|
-
|
|
32581
|
-
|
|
32582
|
-
var trim = stringTrim.trim;
|
|
32583
|
-
|
|
32584
|
-
var NUMBER = 'Number';
|
|
32585
|
-
var NativeNumber = global$1[NUMBER];
|
|
32586
|
-
var NumberPrototype = NativeNumber.prototype;
|
|
32587
|
-
var TypeError$1 = global$1.TypeError;
|
|
32588
|
-
var arraySlice$1 = functionUncurryThis(''.slice);
|
|
32589
|
-
var charCodeAt = functionUncurryThis(''.charCodeAt); // `ToNumeric` abstract operation
|
|
32590
|
-
// https://tc39.es/ecma262/#sec-tonumeric
|
|
32591
|
-
|
|
32592
|
-
var toNumeric = function (value) {
|
|
32593
|
-
var primValue = toPrimitive(value, 'number');
|
|
32594
|
-
return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
|
|
32595
|
-
}; // `ToNumber` abstract operation
|
|
32596
|
-
// https://tc39.es/ecma262/#sec-tonumber
|
|
32597
|
-
|
|
32598
|
-
|
|
32599
|
-
var toNumber = function (argument) {
|
|
32600
|
-
var it = toPrimitive(argument, 'number');
|
|
32601
|
-
var first, third, radix, maxCode, digits, length, index, code;
|
|
32602
|
-
if (isSymbol$1(it)) throw TypeError$1('Cannot convert a Symbol value to a number');
|
|
32603
|
-
|
|
32604
|
-
if (typeof it == 'string' && it.length > 2) {
|
|
32605
|
-
it = trim(it);
|
|
32606
|
-
first = charCodeAt(it, 0);
|
|
32607
|
-
|
|
32608
|
-
if (first === 43 || first === 45) {
|
|
32609
|
-
third = charCodeAt(it, 2);
|
|
32610
|
-
if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
|
|
32611
|
-
} else if (first === 48) {
|
|
32612
|
-
switch (charCodeAt(it, 1)) {
|
|
32613
|
-
case 66:
|
|
32614
|
-
case 98:
|
|
32615
|
-
radix = 2;
|
|
32616
|
-
maxCode = 49;
|
|
32617
|
-
break;
|
|
32618
|
-
// fast equal of /^0b[01]+$/i
|
|
32619
|
-
|
|
32620
|
-
case 79:
|
|
32621
|
-
case 111:
|
|
32622
|
-
radix = 8;
|
|
32623
|
-
maxCode = 55;
|
|
32624
|
-
break;
|
|
32625
|
-
// fast equal of /^0o[0-7]+$/i
|
|
32626
|
-
|
|
32627
|
-
default:
|
|
32628
|
-
return +it;
|
|
32629
|
-
}
|
|
32630
|
-
|
|
32631
|
-
digits = arraySlice$1(it, 2);
|
|
32632
|
-
length = digits.length;
|
|
32633
|
-
|
|
32634
|
-
for (index = 0; index < length; index++) {
|
|
32635
|
-
code = charCodeAt(digits, index); // parseInt parses a string to a first unavailable symbol
|
|
32636
|
-
// but ToNumber should return NaN if a string contains unavailable symbols
|
|
32637
|
-
|
|
32638
|
-
if (code < 48 || code > maxCode) return NaN;
|
|
32639
|
-
}
|
|
32640
|
-
|
|
32641
|
-
return parseInt(digits, radix);
|
|
32642
|
-
}
|
|
32643
|
-
}
|
|
32644
|
-
|
|
32645
|
-
return +it;
|
|
32646
|
-
}; // `Number` constructor
|
|
32647
|
-
// https://tc39.es/ecma262/#sec-number-constructor
|
|
32648
|
-
|
|
32649
|
-
|
|
32650
|
-
if (isForced_1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
|
|
32651
|
-
var NumberWrapper = function Number(value) {
|
|
32652
|
-
var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
|
|
32653
|
-
var dummy = this; // check on 1..constructor(foo) case
|
|
32654
|
-
|
|
32655
|
-
return objectIsPrototypeOf(NumberPrototype, dummy) && fails(function () {
|
|
32656
|
-
thisNumberValue(dummy);
|
|
32657
|
-
}) ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
|
|
32658
|
-
};
|
|
32659
|
-
|
|
32660
|
-
for (var keys = descriptors ? getOwnPropertyNames(NativeNumber) : ( // ES3:
|
|
32661
|
-
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + // ES2015 (in case, if modules with ES2015 Number statics required before):
|
|
32662
|
-
'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' + // ESNext
|
|
32663
|
-
'fromString,range').split(','), j = 0, key; keys.length > j; j++) {
|
|
32664
|
-
if (hasOwnProperty_1(NativeNumber, key = keys[j]) && !hasOwnProperty_1(NumberWrapper, key)) {
|
|
32665
|
-
defineProperty$1(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
|
|
32666
|
-
}
|
|
32667
|
-
}
|
|
32668
|
-
|
|
32669
|
-
NumberWrapper.prototype = NumberPrototype;
|
|
32670
|
-
NumberPrototype.constructor = NumberWrapper;
|
|
32671
|
-
redefine(global$1, NUMBER, NumberWrapper);
|
|
32672
|
-
}
|
|
32673
|
-
|
|
32674
33049
|
var abi = [
|
|
32675
33050
|
{
|
|
32676
33051
|
inputs: [
|
|
@@ -33588,27 +33963,42 @@
|
|
|
33588
33963
|
// @ts-ignore
|
|
33589
33964
|
|
|
33590
33965
|
|
|
33591
|
-
if (!((_window = window) !== null && _window !== void 0 && _window.ethereum || (_window2 = window) !== null && _window2 !== void 0 && _window2.web3) || !props[ATTR_TARGET_UUID] || !isAddress(props[ATTR_TARGET_UUID]) || props[ATTR_TRANSACTION_ID]) return null;
|
|
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;
|
|
33592
33967
|
|
|
33593
|
-
var
|
|
33594
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
33595
|
-
var provider, network, selectedNetwork;
|
|
33968
|
+
var requestNetworkChange = /*#__PURE__*/function () {
|
|
33969
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(provider, selectedNetwork) {
|
|
33596
33970
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
33597
33971
|
while (1) {
|
|
33598
33972
|
switch (_context.prev = _context.next) {
|
|
33599
33973
|
case 0:
|
|
33600
|
-
|
|
33601
|
-
|
|
33602
|
-
|
|
33603
|
-
|
|
33604
|
-
|
|
33974
|
+
_context.next = 2;
|
|
33975
|
+
return provider.request({
|
|
33976
|
+
method: "wallet_switchEthereumChain",
|
|
33977
|
+
params: [{
|
|
33978
|
+
chainId: hexStripZeros(hexlify(selectedNetwork.chainId))
|
|
33979
|
+
}]
|
|
33980
|
+
});
|
|
33605
33981
|
|
|
33606
|
-
|
|
33607
|
-
|
|
33608
|
-
|
|
33609
|
-
|
|
33982
|
+
case 2:
|
|
33983
|
+
case "end":
|
|
33984
|
+
return _context.stop();
|
|
33985
|
+
}
|
|
33986
|
+
}
|
|
33987
|
+
}, _callee);
|
|
33988
|
+
}));
|
|
33989
|
+
|
|
33990
|
+
return function requestNetworkChange(_x, _x2) {
|
|
33991
|
+
return _ref.apply(this, arguments);
|
|
33992
|
+
};
|
|
33993
|
+
}();
|
|
33610
33994
|
|
|
33611
|
-
|
|
33995
|
+
var addNetwork = /*#__PURE__*/function () {
|
|
33996
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(provider, selectedNetwork) {
|
|
33997
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
33998
|
+
while (1) {
|
|
33999
|
+
switch (_context2.prev = _context2.next) {
|
|
34000
|
+
case 0:
|
|
34001
|
+
_context2.next = 2;
|
|
33612
34002
|
return provider.request({
|
|
33613
34003
|
method: "wallet_addEthereumChain",
|
|
33614
34004
|
params: [_objectSpread2(_objectSpread2({}, selectedNetwork), {}, {
|
|
@@ -33616,117 +34006,156 @@
|
|
|
33616
34006
|
})]
|
|
33617
34007
|
});
|
|
33618
34008
|
|
|
34009
|
+
case 2:
|
|
34010
|
+
case "end":
|
|
34011
|
+
return _context2.stop();
|
|
34012
|
+
}
|
|
34013
|
+
}
|
|
34014
|
+
}, _callee2);
|
|
34015
|
+
}));
|
|
34016
|
+
|
|
34017
|
+
return function addNetwork(_x3, _x4) {
|
|
34018
|
+
return _ref2.apply(this, arguments);
|
|
34019
|
+
};
|
|
34020
|
+
}();
|
|
34021
|
+
|
|
34022
|
+
var switchNetwork = /*#__PURE__*/function () {
|
|
34023
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
34024
|
+
var provider, network, selectedNetwork;
|
|
34025
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
34026
|
+
while (1) {
|
|
34027
|
+
switch (_context3.prev = _context3.next) {
|
|
34028
|
+
case 0:
|
|
34029
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
34030
|
+
// @ts-ignore
|
|
34031
|
+
provider = window.ethereum;
|
|
34032
|
+
network = String(props[ATTR_ENDORSEMENT_NETWORK]).toLowerCase().trim() || DEFAULT_NETWORK;
|
|
34033
|
+
selectedNetwork = networks[network] || networks[DEFAULT_NETWORK];
|
|
34034
|
+
_context3.prev = 3;
|
|
34035
|
+
_context3.next = 6;
|
|
34036
|
+
return requestNetworkChange(provider, selectedNetwork);
|
|
34037
|
+
|
|
33619
34038
|
case 6:
|
|
33620
|
-
|
|
33621
|
-
|
|
33622
|
-
method: "wallet_switchEthereumChain",
|
|
33623
|
-
params: [{
|
|
33624
|
-
chainId: hexStripZeros(hexlify(selectedNetwork.chainId))
|
|
33625
|
-
}]
|
|
33626
|
-
});
|
|
34039
|
+
_context3.next = 15;
|
|
34040
|
+
break;
|
|
33627
34041
|
|
|
33628
34042
|
case 8:
|
|
34043
|
+
_context3.prev = 8;
|
|
34044
|
+
_context3.t0 = _context3["catch"](3);
|
|
34045
|
+
|
|
34046
|
+
if (!(_context3.t0.code === 4902)) {
|
|
34047
|
+
_context3.next = 15;
|
|
34048
|
+
break;
|
|
34049
|
+
}
|
|
34050
|
+
|
|
34051
|
+
_context3.next = 13;
|
|
34052
|
+
return addNetwork(provider, selectedNetwork);
|
|
34053
|
+
|
|
34054
|
+
case 13:
|
|
34055
|
+
_context3.next = 15;
|
|
34056
|
+
return requestNetworkChange(provider, selectedNetwork);
|
|
34057
|
+
|
|
34058
|
+
case 15:
|
|
33629
34059
|
case "end":
|
|
33630
|
-
return
|
|
34060
|
+
return _context3.stop();
|
|
33631
34061
|
}
|
|
33632
34062
|
}
|
|
33633
|
-
},
|
|
34063
|
+
}, _callee3, null, [[3, 8]]);
|
|
33634
34064
|
}));
|
|
33635
34065
|
|
|
33636
34066
|
return function switchNetwork() {
|
|
33637
|
-
return
|
|
34067
|
+
return _ref3.apply(this, arguments);
|
|
33638
34068
|
};
|
|
33639
34069
|
}();
|
|
33640
34070
|
|
|
33641
34071
|
var sendTransaction = /*#__PURE__*/function () {
|
|
33642
|
-
var
|
|
33643
|
-
var web3Provider, signer,
|
|
33644
|
-
return regeneratorRuntime.wrap(function
|
|
34072
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(address, amount, transactionId) {
|
|
34073
|
+
var web3Provider, signer, contract, transaction;
|
|
34074
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
33645
34075
|
while (1) {
|
|
33646
|
-
switch (
|
|
34076
|
+
switch (_context4.prev = _context4.next) {
|
|
33647
34077
|
case 0:
|
|
33648
|
-
|
|
34078
|
+
_context4.next = 2;
|
|
33649
34079
|
return switchNetwork();
|
|
33650
34080
|
|
|
33651
34081
|
case 2:
|
|
33652
34082
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
33653
34083
|
// @ts-ignore
|
|
33654
34084
|
web3Provider = new Web3Provider(window.ethereum);
|
|
33655
|
-
signer = web3Provider.getSigner();
|
|
33656
|
-
|
|
33657
|
-
wei = String(Number(amount) * 10e17);
|
|
34085
|
+
signer = web3Provider.getSigner();
|
|
33658
34086
|
contract = new Contract(UTT_CONTRACT_ADDRESS, abi, signer);
|
|
33659
|
-
|
|
33660
|
-
return contract.endorse(address, String(
|
|
34087
|
+
_context4.next = 7;
|
|
34088
|
+
return contract.endorse(address, String(amount), transactionId);
|
|
33661
34089
|
|
|
33662
|
-
case
|
|
33663
|
-
transaction =
|
|
33664
|
-
|
|
34090
|
+
case 7:
|
|
34091
|
+
transaction = _context4.sent;
|
|
34092
|
+
_context4.next = 10;
|
|
33665
34093
|
return transaction.wait();
|
|
33666
34094
|
|
|
33667
|
-
case
|
|
33668
|
-
return
|
|
34095
|
+
case 10:
|
|
34096
|
+
return _context4.abrupt("return", transaction);
|
|
33669
34097
|
|
|
33670
|
-
case
|
|
34098
|
+
case 11:
|
|
33671
34099
|
case "end":
|
|
33672
|
-
return
|
|
34100
|
+
return _context4.stop();
|
|
33673
34101
|
}
|
|
33674
34102
|
}
|
|
33675
|
-
},
|
|
34103
|
+
}, _callee4);
|
|
33676
34104
|
}));
|
|
33677
34105
|
|
|
33678
|
-
return function sendTransaction(
|
|
33679
|
-
return
|
|
34106
|
+
return function sendTransaction(_x5, _x6, _x7) {
|
|
34107
|
+
return _ref4.apply(this, arguments);
|
|
33680
34108
|
};
|
|
33681
34109
|
}();
|
|
33682
34110
|
|
|
33683
|
-
function onSubmit(
|
|
34111
|
+
function onSubmit(_x8) {
|
|
33684
34112
|
return _onSubmit.apply(this, arguments);
|
|
33685
34113
|
}
|
|
33686
34114
|
|
|
33687
34115
|
function _onSubmit() {
|
|
33688
|
-
_onSubmit = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
34116
|
+
_onSubmit = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(_ref5) {
|
|
33689
34117
|
var amount;
|
|
33690
|
-
return regeneratorRuntime.wrap(function
|
|
34118
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
33691
34119
|
while (1) {
|
|
33692
|
-
switch (
|
|
34120
|
+
switch (_context5.prev = _context5.next) {
|
|
33693
34121
|
case 0:
|
|
33694
|
-
amount =
|
|
34122
|
+
amount = _ref5.amount;
|
|
33695
34123
|
|
|
33696
34124
|
if (amount) {
|
|
33697
|
-
|
|
34125
|
+
_context5.next = 3;
|
|
33698
34126
|
break;
|
|
33699
34127
|
}
|
|
33700
34128
|
|
|
33701
|
-
return
|
|
34129
|
+
return _context5.abrupt("return");
|
|
33702
34130
|
|
|
33703
34131
|
case 3:
|
|
33704
34132
|
setTxError("");
|
|
33705
|
-
|
|
33706
|
-
|
|
34133
|
+
_context5.prev = 4;
|
|
34134
|
+
_context5.next = 7;
|
|
33707
34135
|
return sendTransaction(props[ATTR_TARGET_UUID], amount, props[ATTR_TRANSACTION_ID]);
|
|
33708
34136
|
|
|
33709
34137
|
case 7:
|
|
33710
|
-
|
|
34138
|
+
_context5.next = 13;
|
|
33711
34139
|
break;
|
|
33712
34140
|
|
|
33713
34141
|
case 9:
|
|
33714
|
-
|
|
33715
|
-
|
|
33716
|
-
|
|
34142
|
+
_context5.prev = 9;
|
|
34143
|
+
_context5.t0 = _context5["catch"](4);
|
|
34144
|
+
console.log(_context5.t0);
|
|
34145
|
+
setTxError(_context5.t0.data ? _context5.t0.data.message : _context5.t0.message);
|
|
33717
34146
|
|
|
33718
|
-
case
|
|
34147
|
+
case 13:
|
|
33719
34148
|
case "end":
|
|
33720
|
-
return
|
|
34149
|
+
return _context5.stop();
|
|
33721
34150
|
}
|
|
33722
34151
|
}
|
|
33723
|
-
},
|
|
34152
|
+
}, _callee5, null, [[4, 9]]);
|
|
33724
34153
|
}));
|
|
33725
34154
|
return _onSubmit.apply(this, arguments);
|
|
33726
34155
|
}
|
|
33727
34156
|
|
|
33728
|
-
var showError = function showError(
|
|
33729
|
-
var amount =
|
|
34157
|
+
var showError = function showError(_ref6) {
|
|
34158
|
+
var amount = _ref6.amount;
|
|
33730
34159
|
|
|
33731
34160
|
switch (amount === null || amount === void 0 ? void 0 : amount.type) {
|
|
33732
34161
|
case "required":
|
|
@@ -33799,8 +34228,8 @@
|
|
|
33799
34228
|
u,
|
|
33800
34229
|
t,
|
|
33801
34230
|
i,
|
|
33802
|
-
r,
|
|
33803
34231
|
o,
|
|
34232
|
+
r,
|
|
33804
34233
|
f,
|
|
33805
34234
|
e = {},
|
|
33806
34235
|
c = [],
|
|
@@ -33812,29 +34241,29 @@
|
|
|
33812
34241
|
return n;
|
|
33813
34242
|
}
|
|
33814
34243
|
|
|
33815
|
-
function
|
|
34244
|
+
function p(n) {
|
|
33816
34245
|
var l = n.parentNode;
|
|
33817
34246
|
l && l.removeChild(n);
|
|
33818
34247
|
}
|
|
33819
34248
|
|
|
33820
|
-
function
|
|
34249
|
+
function v(l, u, t) {
|
|
33821
34250
|
var i,
|
|
33822
|
-
r,
|
|
33823
34251
|
o,
|
|
34252
|
+
r,
|
|
33824
34253
|
f = {};
|
|
33825
34254
|
|
|
33826
|
-
for (
|
|
34255
|
+
for (r in u) "key" == r ? i = u[r] : "ref" == r ? o = u[r] : f[r] = u[r];
|
|
33827
34256
|
|
|
33828
|
-
if (arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : t), "function" == typeof l && null != l.defaultProps) for (
|
|
33829
|
-
return
|
|
34257
|
+
if (arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : t), "function" == typeof l && null != l.defaultProps) for (r in l.defaultProps) void 0 === f[r] && (f[r] = l.defaultProps[r]);
|
|
34258
|
+
return h(l, f, i, o, null);
|
|
33830
34259
|
}
|
|
33831
34260
|
|
|
33832
|
-
function
|
|
34261
|
+
function h(n, t, i, o, r) {
|
|
33833
34262
|
var f = {
|
|
33834
34263
|
type: n,
|
|
33835
34264
|
props: t,
|
|
33836
34265
|
key: i,
|
|
33837
|
-
ref:
|
|
34266
|
+
ref: o,
|
|
33838
34267
|
__k: null,
|
|
33839
34268
|
__: null,
|
|
33840
34269
|
__b: 0,
|
|
@@ -33843,9 +34272,9 @@
|
|
|
33843
34272
|
__c: null,
|
|
33844
34273
|
__h: null,
|
|
33845
34274
|
constructor: void 0,
|
|
33846
|
-
__v: null ==
|
|
34275
|
+
__v: null == r ? ++u : r
|
|
33847
34276
|
};
|
|
33848
|
-
return null ==
|
|
34277
|
+
return null == r && null != l.vnode && l.vnode(f), f;
|
|
33849
34278
|
}
|
|
33850
34279
|
|
|
33851
34280
|
function y(n) {
|
|
@@ -33878,21 +34307,21 @@
|
|
|
33878
34307
|
}
|
|
33879
34308
|
|
|
33880
34309
|
function x(n) {
|
|
33881
|
-
(!n.__d && (n.__d = !0) && i.push(n) && !b.__r++ ||
|
|
34310
|
+
(!n.__d && (n.__d = !0) && i.push(n) && !b.__r++ || r !== l.debounceRendering) && ((r = l.debounceRendering) || o)(b);
|
|
33882
34311
|
}
|
|
33883
34312
|
|
|
33884
34313
|
function b() {
|
|
33885
34314
|
for (var n; b.__r = i.length;) n = i.sort(function (n, l) {
|
|
33886
34315
|
return n.__v.__b - l.__v.__b;
|
|
33887
34316
|
}), i = [], n.some(function (n) {
|
|
33888
|
-
var l, u, t, i,
|
|
33889
|
-
n.__d && (
|
|
34317
|
+
var l, u, t, i, o, r;
|
|
34318
|
+
n.__d && (o = (i = (l = n).__v).__e, (r = l.__P) && (u = [], (t = a({}, i)).__v = i.__v + 1, I(r, i, t, l.__n, void 0 !== r.ownerSVGElement, null != i.__h ? [o] : null, u, null == o ? _(i) : o, i.__h), T(u, i), i.__e != o && k(i)));
|
|
33890
34319
|
});
|
|
33891
34320
|
}
|
|
33892
34321
|
|
|
33893
|
-
function m(n, l, u, t, i,
|
|
33894
|
-
var
|
|
33895
|
-
|
|
34322
|
+
function m(n, l, u, t, i, o, r, f, s, a) {
|
|
34323
|
+
var p,
|
|
34324
|
+
v,
|
|
33896
34325
|
d,
|
|
33897
34326
|
k,
|
|
33898
34327
|
x,
|
|
@@ -33901,47 +34330,47 @@
|
|
|
33901
34330
|
A = t && t.__k || c,
|
|
33902
34331
|
P = A.length;
|
|
33903
34332
|
|
|
33904
|
-
for (u.__k = [],
|
|
34333
|
+
for (u.__k = [], p = 0; p < l.length; p++) if (null != (k = u.__k[p] = null == (k = l[p]) || "boolean" == typeof k ? null : "string" == typeof k || "number" == typeof k || "bigint" == typeof k ? h(null, k, null, null, k) : Array.isArray(k) ? h(y, {
|
|
33905
34334
|
children: k
|
|
33906
|
-
}, null, null, null) : k.__b > 0 ?
|
|
33907
|
-
if (k.__ = u, k.__b = u.__b + 1, null === (d = A[
|
|
33908
|
-
if ((d = A[
|
|
33909
|
-
A[
|
|
34335
|
+
}, null, null, null) : k.__b > 0 ? h(k.type, k.props, k.key, null, k.__v) : k)) {
|
|
34336
|
+
if (k.__ = u, k.__b = u.__b + 1, null === (d = A[p]) || d && k.key == d.key && k.type === d.type) A[p] = void 0;else for (v = 0; v < P; v++) {
|
|
34337
|
+
if ((d = A[v]) && k.key == d.key && k.type === d.type) {
|
|
34338
|
+
A[v] = void 0;
|
|
33910
34339
|
break;
|
|
33911
34340
|
}
|
|
33912
34341
|
|
|
33913
34342
|
d = null;
|
|
33914
34343
|
}
|
|
33915
|
-
I(n, k, d = d || e, i,
|
|
34344
|
+
I(n, k, d = d || e, i, o, r, f, s, a), x = k.__e, (v = k.ref) && d.ref != v && (m || (m = []), d.ref && m.push(d.ref, null, k), m.push(v, 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));
|
|
33916
34345
|
}
|
|
33917
34346
|
|
|
33918
|
-
for (u.__e = b,
|
|
34347
|
+
for (u.__e = b, p = P; p--;) null != A[p] && ("function" == typeof u.type && null != A[p].__e && A[p].__e == u.__d && (u.__d = _(t, p + 1)), L(A[p], A[p]));
|
|
33919
34348
|
|
|
33920
|
-
if (m) for (
|
|
34349
|
+
if (m) for (p = 0; p < m.length; p++) z(m[p], m[++p], m[++p]);
|
|
33921
34350
|
}
|
|
33922
34351
|
|
|
33923
34352
|
function g(n, l, u) {
|
|
33924
|
-
for (var t, i = n.__k,
|
|
34353
|
+
for (var t, i = n.__k, o = 0; i && o < i.length; o++) (t = i[o]) && (t.__ = n, l = "function" == typeof t.type ? g(t, l, u) : w(u, t, t, i, t.__e, l));
|
|
33925
34354
|
|
|
33926
34355
|
return l;
|
|
33927
34356
|
}
|
|
33928
34357
|
|
|
33929
|
-
function w(n, l, u, t, i,
|
|
33930
|
-
var
|
|
33931
|
-
if (void 0 !== l.__d)
|
|
33932
|
-
for (f =
|
|
34358
|
+
function w(n, l, u, t, i, o) {
|
|
34359
|
+
var r, f, e;
|
|
34360
|
+
if (void 0 !== l.__d) r = l.__d, l.__d = void 0;else if (null == u || i != o || null == i.parentNode) n: if (null == o || o.parentNode !== n) n.appendChild(i), r = null;else {
|
|
34361
|
+
for (f = o, e = 0; (f = f.nextSibling) && e < t.length; e += 2) if (f == i) break n;
|
|
33933
34362
|
|
|
33934
|
-
n.insertBefore(i,
|
|
34363
|
+
n.insertBefore(i, o), r = o;
|
|
33935
34364
|
}
|
|
33936
|
-
return void 0 !==
|
|
34365
|
+
return void 0 !== r ? r : i.nextSibling;
|
|
33937
34366
|
}
|
|
33938
34367
|
|
|
33939
34368
|
function A(n, l, u, t, i) {
|
|
33940
|
-
var
|
|
34369
|
+
var o;
|
|
33941
34370
|
|
|
33942
|
-
for (
|
|
34371
|
+
for (o in u) "children" === o || "key" === o || o in l || C(n, o, null, u[o], t);
|
|
33943
34372
|
|
|
33944
|
-
for (
|
|
34373
|
+
for (o in l) i && "function" != typeof l[o] || "children" === o || "key" === o || "value" === o || "checked" === o || u[o] === l[o] || C(n, o, l[o], u[o], t);
|
|
33945
34374
|
}
|
|
33946
34375
|
|
|
33947
34376
|
function P(n, l, u) {
|
|
@@ -33949,14 +34378,14 @@
|
|
|
33949
34378
|
}
|
|
33950
34379
|
|
|
33951
34380
|
function C(n, l, u, t, i) {
|
|
33952
|
-
var
|
|
34381
|
+
var o;
|
|
33953
34382
|
|
|
33954
34383
|
n: if ("style" === l) {
|
|
33955
34384
|
if ("string" == typeof u) n.style.cssText = u;else {
|
|
33956
34385
|
if ("string" == typeof t && (n.style.cssText = t = ""), t) for (l in t) u && l in u || P(n.style, l, "");
|
|
33957
34386
|
if (u) for (l in u) t && u[l] === t[l] || P(n.style, l, u[l]);
|
|
33958
34387
|
}
|
|
33959
|
-
} else if ("o" === l[0] && "n" === l[1])
|
|
34388
|
+
} 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 ? t || n.addEventListener(l, o ? H : $, o) : n.removeEventListener(l, o ? H : $, o);else if ("dangerouslySetInnerHTML" !== l) {
|
|
33960
34389
|
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 {
|
|
33961
34390
|
n[l] = null == u ? "" : u;
|
|
33962
34391
|
break n;
|
|
@@ -33973,11 +34402,11 @@
|
|
|
33973
34402
|
this.l[n.type + !0](l.event ? l.event(n) : n);
|
|
33974
34403
|
}
|
|
33975
34404
|
|
|
33976
|
-
function I(n, u, t, i,
|
|
34405
|
+
function I(n, u, t, i, o, r, f, e, c) {
|
|
33977
34406
|
var s,
|
|
34407
|
+
p,
|
|
33978
34408
|
v,
|
|
33979
34409
|
h,
|
|
33980
|
-
p,
|
|
33981
34410
|
_,
|
|
33982
34411
|
k,
|
|
33983
34412
|
x,
|
|
@@ -33988,28 +34417,28 @@
|
|
|
33988
34417
|
P = u.type;
|
|
33989
34418
|
|
|
33990
34419
|
if (void 0 !== u.constructor) return null;
|
|
33991
|
-
null != t.__h && (c = t.__h, e = u.__e = t.__e, u.__h = null,
|
|
34420
|
+
null != t.__h && (c = t.__h, e = u.__e = t.__e, u.__h = null, r = [e]), (s = l.__b) && s(u);
|
|
33992
34421
|
|
|
33993
34422
|
try {
|
|
33994
34423
|
n: if ("function" == typeof P) {
|
|
33995
|
-
if (b = u.props, g = (s = P.contextType) && i[s.__c], w = s ? g ? g.props.value : s.__ : i, t.__c ? x = (
|
|
33996
|
-
if (null == P.getDerivedStateFromProps && b !==
|
|
33997
|
-
|
|
34424
|
+
if (b = u.props, g = (s = P.contextType) && i[s.__c], w = s ? g ? g.props.value : s.__ : i, t.__c ? x = (p = u.__c = t.__c).__ = p.__E : ("prototype" in P && P.prototype.render ? u.__c = p = new P(b, w) : (u.__c = p = new d(b, w), p.constructor = P, p.render = M), g && g.sub(p), p.props = b, p.state || (p.state = {}), p.context = w, p.__n = i, v = p.__d = !0, p.__h = []), null == p.__s && (p.__s = p.state), null != P.getDerivedStateFromProps && (p.__s == p.state && (p.__s = a({}, p.__s)), a(p.__s, P.getDerivedStateFromProps(b, p.__s))), h = p.props, _ = p.state, v) null == P.getDerivedStateFromProps && null != p.componentWillMount && p.componentWillMount(), null != p.componentDidMount && p.__h.push(p.componentDidMount);else {
|
|
34425
|
+
if (null == P.getDerivedStateFromProps && b !== h && null != p.componentWillReceiveProps && p.componentWillReceiveProps(b, w), !p.__e && null != p.shouldComponentUpdate && !1 === p.shouldComponentUpdate(b, p.__s, w) || u.__v === t.__v) {
|
|
34426
|
+
p.props = b, p.state = p.__s, u.__v !== t.__v && (p.__d = !1), p.__v = u, u.__e = t.__e, u.__k = t.__k, u.__k.forEach(function (n) {
|
|
33998
34427
|
n && (n.__ = u);
|
|
33999
|
-
}),
|
|
34428
|
+
}), p.__h.length && f.push(p);
|
|
34000
34429
|
break n;
|
|
34001
34430
|
}
|
|
34002
34431
|
|
|
34003
|
-
null !=
|
|
34004
|
-
|
|
34432
|
+
null != p.componentWillUpdate && p.componentWillUpdate(b, p.__s, w), null != p.componentDidUpdate && p.__h.push(function () {
|
|
34433
|
+
p.componentDidUpdate(h, _, k);
|
|
34005
34434
|
});
|
|
34006
34435
|
}
|
|
34007
|
-
|
|
34008
|
-
} else null ==
|
|
34436
|
+
p.context = w, p.props = b, p.state = p.__s, (s = l.__r) && s(u), p.__d = !1, p.__v = u, p.__P = n, s = p.render(p.props, p.state, p.context), p.state = p.__s, null != p.getChildContext && (i = a(a({}, i), p.getChildContext())), v || null == p.getSnapshotBeforeUpdate || (k = p.getSnapshotBeforeUpdate(h, _)), A = null != s && s.type === y && null == s.key ? s.props.children : s, m(n, Array.isArray(A) ? A : [A], u, t, i, o, r, f, e, c), p.base = u.__e, u.__h = null, p.__h.length && f.push(p), x && (p.__E = p.__ = null), p.__e = !1;
|
|
34437
|
+
} else null == r && u.__v === t.__v ? (u.__k = t.__k, u.__e = t.__e) : u.__e = j(t.__e, u, t, i, o, r, f, c);
|
|
34009
34438
|
|
|
34010
34439
|
(s = l.diffed) && s(u);
|
|
34011
34440
|
} catch (n) {
|
|
34012
|
-
u.__v = null, (c || null !=
|
|
34441
|
+
u.__v = null, (c || null != r) && (u.__e = e, u.__h = !!c, r[r.indexOf(e)] = null), l.__e(n, u, t);
|
|
34013
34442
|
}
|
|
34014
34443
|
}
|
|
34015
34444
|
|
|
@@ -34025,32 +34454,32 @@
|
|
|
34025
34454
|
});
|
|
34026
34455
|
}
|
|
34027
34456
|
|
|
34028
|
-
function j(l, u, t, i,
|
|
34457
|
+
function j(l, u, t, i, o, r, f, c) {
|
|
34029
34458
|
var s,
|
|
34030
34459
|
a,
|
|
34031
|
-
|
|
34032
|
-
|
|
34460
|
+
v,
|
|
34461
|
+
h = t.props,
|
|
34033
34462
|
y = u.props,
|
|
34034
34463
|
d = u.type,
|
|
34035
34464
|
k = 0;
|
|
34036
|
-
if ("svg" === d && (
|
|
34037
|
-
l = s,
|
|
34465
|
+
if ("svg" === d && (o = !0), null != r) for (; k < r.length; k++) if ((s = r[k]) && "setAttribute" in s == !!d && (d ? s.localName === d : 3 === s.nodeType)) {
|
|
34466
|
+
l = s, r[k] = null;
|
|
34038
34467
|
break;
|
|
34039
34468
|
}
|
|
34040
34469
|
|
|
34041
34470
|
if (null == l) {
|
|
34042
34471
|
if (null === d) return document.createTextNode(y);
|
|
34043
|
-
l =
|
|
34472
|
+
l = o ? document.createElementNS("http://www.w3.org/2000/svg", d) : document.createElement(d, y.is && y), r = null, c = !1;
|
|
34044
34473
|
}
|
|
34045
34474
|
|
|
34046
|
-
if (null === d)
|
|
34047
|
-
if (
|
|
34048
|
-
if (null !=
|
|
34049
|
-
(
|
|
34475
|
+
if (null === d) h === y || c && l.data === y || (l.data = y);else {
|
|
34476
|
+
if (r = r && n.call(l.childNodes), a = (h = t.props || e).dangerouslySetInnerHTML, v = y.dangerouslySetInnerHTML, !c) {
|
|
34477
|
+
if (null != r) for (h = {}, k = 0; k < l.attributes.length; k++) h[l.attributes[k].name] = l.attributes[k].value;
|
|
34478
|
+
(v || a) && (v && (a && v.__html == a.__html || v.__html === l.innerHTML) || (l.innerHTML = v && v.__html || ""));
|
|
34050
34479
|
}
|
|
34051
34480
|
|
|
34052
|
-
if (A(l, y,
|
|
34053
|
-
c || ("value" in y && void 0 !== (k = y.value) && (k !==
|
|
34481
|
+
if (A(l, y, h, o, c), v) u.__k = [];else if (k = u.props.children, m(l, Array.isArray(k) ? k : [k], u, t, i, o && "foreignObject" !== d, r, f, r ? r[0] : t.__k && _(t, 0), c), null != r) for (k = r.length; k--;) null != r[k] && p(r[k]);
|
|
34482
|
+
c || ("value" in y && void 0 !== (k = y.value) && (k !== l.value || "progress" === d && !k || "option" === d && k !== h.value) && C(l, "value", k, h.value, !1), "checked" in y && void 0 !== (k = y.checked) && k !== l.checked && C(l, "checked", k, h.checked, !1));
|
|
34054
34483
|
}
|
|
34055
34484
|
return l;
|
|
34056
34485
|
}
|
|
@@ -34064,7 +34493,7 @@
|
|
|
34064
34493
|
}
|
|
34065
34494
|
|
|
34066
34495
|
function L(n, u, t) {
|
|
34067
|
-
var i,
|
|
34496
|
+
var i, o;
|
|
34068
34497
|
|
|
34069
34498
|
if (l.unmount && l.unmount(n), (i = n.ref) && (i.current && i.current !== n.__e || z(i, null, u)), null != (i = n.__c)) {
|
|
34070
34499
|
if (i.componentWillUnmount) try {
|
|
@@ -34075,8 +34504,8 @@
|
|
|
34075
34504
|
i.base = i.__P = null;
|
|
34076
34505
|
}
|
|
34077
34506
|
|
|
34078
|
-
if (i = n.__k) for (
|
|
34079
|
-
t || null == n.__e ||
|
|
34507
|
+
if (i = n.__k) for (o = 0; o < i.length; o++) i[o] && L(i[o], u, "function" != typeof n.type);
|
|
34508
|
+
t || null == n.__e || p(n.__e), n.__e = n.__d = void 0;
|
|
34080
34509
|
}
|
|
34081
34510
|
|
|
34082
34511
|
function M(n, l, u) {
|
|
@@ -34084,8 +34513,8 @@
|
|
|
34084
34513
|
}
|
|
34085
34514
|
|
|
34086
34515
|
function N(u, t, i) {
|
|
34087
|
-
var
|
|
34088
|
-
l.__ && l.__(u, t),
|
|
34516
|
+
var o, r, f;
|
|
34517
|
+
l.__ && l.__(u, t), r = (o = "function" == typeof i) ? null : i && i.__k || t.__k, f = [], I(t, u = (!o && i || t).__k = v(y, null, [u]), r || e, e, void 0 !== t.ownerSVGElement, !o && i ? [i] : r ? null : t.firstChild ? n.call(t.childNodes) : null, f, !o && i ? i : r ? r.__e : t.firstChild, o), T(f, u);
|
|
34089
34518
|
}
|
|
34090
34519
|
|
|
34091
34520
|
n = c.slice, l = {
|
|
@@ -34105,21 +34534,21 @@
|
|
|
34105
34534
|
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));
|
|
34106
34535
|
}, d.prototype.forceUpdate = function (n) {
|
|
34107
34536
|
this.__v && (this.__e = !0, n && this.__h.push(n), x(this));
|
|
34108
|
-
}, d.prototype.render = y, i = [],
|
|
34537
|
+
}, d.prototype.render = y, i = [], o = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, b.__r = 0, f = 0, exports.render = N, exports.hydrate = function n(l, u) {
|
|
34109
34538
|
N(l, u, n);
|
|
34110
|
-
}, exports.createElement =
|
|
34539
|
+
}, exports.createElement = v, exports.h = v, exports.Fragment = y, exports.createRef = function () {
|
|
34111
34540
|
return {
|
|
34112
34541
|
current: null
|
|
34113
34542
|
};
|
|
34114
34543
|
}, exports.isValidElement = t, exports.Component = d, exports.cloneElement = function (l, u, t) {
|
|
34115
34544
|
var i,
|
|
34116
|
-
r,
|
|
34117
34545
|
o,
|
|
34546
|
+
r,
|
|
34118
34547
|
f = a({}, l.props);
|
|
34119
34548
|
|
|
34120
|
-
for (
|
|
34549
|
+
for (r in u) "key" == r ? i = u[r] : "ref" == r ? o = u[r] : f[r] = u[r];
|
|
34121
34550
|
|
|
34122
|
-
return arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : t),
|
|
34551
|
+
return arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : t), h(l.type, f, i || l.key, o || l.ref, null);
|
|
34123
34552
|
}, exports.createContext = function (n, l) {
|
|
34124
34553
|
var u = {
|
|
34125
34554
|
__c: l = "__cC" + f++,
|
|
@@ -34155,7 +34584,7 @@
|
|
|
34155
34584
|
var n,
|
|
34156
34585
|
t,
|
|
34157
34586
|
r,
|
|
34158
|
-
|
|
34587
|
+
u = 0,
|
|
34159
34588
|
i = [],
|
|
34160
34589
|
c = preact.options.__b,
|
|
34161
34590
|
e = preact.options.__r,
|
|
@@ -34164,7 +34593,7 @@
|
|
|
34164
34593
|
v = preact.options.unmount;
|
|
34165
34594
|
|
|
34166
34595
|
function p(n, r) {
|
|
34167
|
-
preact.options.__h && preact.options.__h(t, n,
|
|
34596
|
+
preact.options.__h && preact.options.__h(t, n, u || r), u = 0;
|
|
34168
34597
|
var i = t.__H || (t.__H = {
|
|
34169
34598
|
__: [],
|
|
34170
34599
|
__h: []
|
|
@@ -34173,33 +34602,29 @@
|
|
|
34173
34602
|
}
|
|
34174
34603
|
|
|
34175
34604
|
function s(n) {
|
|
34176
|
-
return
|
|
34605
|
+
return u = 1, x(A, n);
|
|
34177
34606
|
}
|
|
34178
34607
|
|
|
34179
|
-
function x(r,
|
|
34608
|
+
function x(r, o, u) {
|
|
34180
34609
|
var i = p(n++, 2);
|
|
34181
|
-
return i.t = r, i.__c || (i.__ = [
|
|
34610
|
+
return i.t = r, i.__c || (i.__ = [u ? u(o) : A(void 0, o), function (n) {
|
|
34182
34611
|
var t = i.t(i.__[0], n);
|
|
34183
34612
|
i.__[0] !== t && (i.__ = [t, i.__[1]], i.__c.setState({}));
|
|
34184
34613
|
}], i.__c = t), i.__;
|
|
34185
34614
|
}
|
|
34186
34615
|
|
|
34187
|
-
function l(r,
|
|
34616
|
+
function l(r, u) {
|
|
34188
34617
|
var i = p(n++, 4);
|
|
34189
|
-
!preact.options.__s && q(i.__H,
|
|
34618
|
+
!preact.options.__s && q(i.__H, u) && (i.__ = r, i.__H = u, t.__h.push(i));
|
|
34190
34619
|
}
|
|
34191
34620
|
|
|
34192
34621
|
function m(t, r) {
|
|
34193
|
-
var
|
|
34194
|
-
return q(
|
|
34622
|
+
var o = p(n++, 7);
|
|
34623
|
+
return q(o.__H, r) && (o.__ = t(), o.__H = r, o.__h = t), o.__;
|
|
34195
34624
|
}
|
|
34196
34625
|
|
|
34197
34626
|
function y() {
|
|
34198
|
-
var n;
|
|
34199
|
-
|
|
34200
|
-
for (i.sort(function (n, t) {
|
|
34201
|
-
return n.__v.__b - t.__v.__b;
|
|
34202
|
-
}); n = i.pop();) if (n.__P) try {
|
|
34627
|
+
for (var n; n = i.shift();) if (n.__P) try {
|
|
34203
34628
|
n.__H.__h.forEach(_), n.__H.__h.forEach(d), n.__H.__h = [];
|
|
34204
34629
|
} catch (t) {
|
|
34205
34630
|
n.__H.__h = [], preact.options.__e(t, n.__v);
|
|
@@ -34210,17 +34635,17 @@
|
|
|
34210
34635
|
t = null, c && c(n);
|
|
34211
34636
|
}, preact.options.__r = function (r) {
|
|
34212
34637
|
e && e(r), n = 0;
|
|
34213
|
-
var
|
|
34214
|
-
|
|
34638
|
+
var o = (t = r.__c).__H;
|
|
34639
|
+
o && (o.__h.forEach(_), o.__h.forEach(d), o.__h = []);
|
|
34215
34640
|
}, preact.options.diffed = function (n) {
|
|
34216
34641
|
f && f(n);
|
|
34217
|
-
var
|
|
34218
|
-
|
|
34642
|
+
var u = n.__c;
|
|
34643
|
+
u && u.__H && u.__H.__h.length && (1 !== i.push(u) && r === preact.options.requestAnimationFrame || ((r = preact.options.requestAnimationFrame) || function (n) {
|
|
34219
34644
|
var t,
|
|
34220
34645
|
r = function () {
|
|
34221
|
-
clearTimeout(
|
|
34646
|
+
clearTimeout(o), h && cancelAnimationFrame(t), setTimeout(n);
|
|
34222
34647
|
},
|
|
34223
|
-
|
|
34648
|
+
o = setTimeout(r, 100);
|
|
34224
34649
|
|
|
34225
34650
|
h && (t = requestAnimationFrame(r));
|
|
34226
34651
|
})(y)), t = null;
|
|
@@ -34252,8 +34677,8 @@
|
|
|
34252
34677
|
|
|
34253
34678
|
function _(n) {
|
|
34254
34679
|
var r = t,
|
|
34255
|
-
|
|
34256
|
-
"function" == typeof
|
|
34680
|
+
o = n.__c;
|
|
34681
|
+
"function" == typeof o && (n.__c = void 0, o()), t = r;
|
|
34257
34682
|
}
|
|
34258
34683
|
|
|
34259
34684
|
function d(n) {
|
|
@@ -34271,36 +34696,36 @@
|
|
|
34271
34696
|
return "function" == typeof t ? t(n) : t;
|
|
34272
34697
|
}
|
|
34273
34698
|
|
|
34274
|
-
exports.useState = s, exports.useReducer = x, exports.useEffect = function (r,
|
|
34699
|
+
exports.useState = s, exports.useReducer = x, exports.useEffect = function (r, u) {
|
|
34275
34700
|
var i = p(n++, 3);
|
|
34276
|
-
!preact.options.__s && q(i.__H,
|
|
34701
|
+
!preact.options.__s && q(i.__H, u) && (i.__ = r, i.__H = u, t.__H.__h.push(i));
|
|
34277
34702
|
}, exports.useLayoutEffect = l, exports.useRef = function (n) {
|
|
34278
|
-
return
|
|
34703
|
+
return u = 5, m(function () {
|
|
34279
34704
|
return {
|
|
34280
34705
|
current: n
|
|
34281
34706
|
};
|
|
34282
34707
|
}, []);
|
|
34283
34708
|
}, exports.useImperativeHandle = function (n, t, r) {
|
|
34284
|
-
|
|
34709
|
+
u = 6, l(function () {
|
|
34285
34710
|
"function" == typeof n ? n(t()) : n && (n.current = t());
|
|
34286
34711
|
}, null == r ? r : r.concat(n));
|
|
34287
34712
|
}, exports.useMemo = m, exports.useCallback = function (n, t) {
|
|
34288
|
-
return
|
|
34713
|
+
return u = 8, m(function () {
|
|
34289
34714
|
return n;
|
|
34290
34715
|
}, t);
|
|
34291
34716
|
}, exports.useContext = function (r) {
|
|
34292
|
-
var
|
|
34293
|
-
|
|
34294
|
-
return
|
|
34717
|
+
var o = t.context[r.__c],
|
|
34718
|
+
u = p(n++, 9);
|
|
34719
|
+
return u.c = r, o ? (null == u.__ && (u.__ = !0, o.sub(t)), o.props.value) : r.__;
|
|
34295
34720
|
}, exports.useDebugValue = function (n, t) {
|
|
34296
34721
|
preact.options.useDebugValue && preact.options.useDebugValue(t ? t(n) : n);
|
|
34297
34722
|
}, exports.useErrorBoundary = function (r) {
|
|
34298
|
-
var
|
|
34299
|
-
|
|
34300
|
-
return
|
|
34301
|
-
|
|
34302
|
-
}), [
|
|
34303
|
-
|
|
34723
|
+
var o = p(n++, 10),
|
|
34724
|
+
u = s();
|
|
34725
|
+
return o.__ = r, t.componentDidCatch || (t.componentDidCatch = function (n) {
|
|
34726
|
+
o.__ && o.__(n), u[1](n);
|
|
34727
|
+
}), [u[0], function () {
|
|
34728
|
+
u[1](void 0);
|
|
34304
34729
|
}];
|
|
34305
34730
|
};
|
|
34306
34731
|
});
|
|
@@ -34551,8 +34976,8 @@
|
|
|
34551
34976
|
};
|
|
34552
34977
|
|
|
34553
34978
|
var S = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103,
|
|
34554
|
-
|
|
34555
|
-
|
|
34979
|
+
C = /^(?: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]/,
|
|
34980
|
+
w = "undefined" != typeof document,
|
|
34556
34981
|
g = function (n) {
|
|
34557
34982
|
return ("undefined" != typeof Symbol && "symbol" == typeof Symbol() ? /fil|che|rad/i : /fil|che|ra/i).test(n);
|
|
34558
34983
|
};
|
|
@@ -34615,7 +35040,7 @@
|
|
|
34615
35040
|
|
|
34616
35041
|
for (var i in o = {}, r) {
|
|
34617
35042
|
var l = r[i];
|
|
34618
|
-
|
|
35043
|
+
w && "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|Compo)/.test(i) ? i = i.toLowerCase() : u && C.test(i) ? i = i.replace(/[A-Z0-9]/, "-$&").toLowerCase() : null === l && (l = void 0), o[i] = l);
|
|
34619
35044
|
}
|
|
34620
35045
|
|
|
34621
35046
|
"select" == e && o.multiple && Array.isArray(o.value) && (o.value = t.toChildArray(r.children).forEach(function (n) {
|
|
@@ -36197,9 +36622,164 @@
|
|
|
36197
36622
|
|
|
36198
36623
|
var e=0;function t(t){return "__private_"+e+++"_"+t}function i(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var r=function(e){this.value=e;},n=t("head"),o=t("end"),u=function(){function e(){Object.defineProperty(this,n,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0});}var t=e.prototype;return t.enqueue=function(e){var t=new r(e);i(this,o)[o]?(i(this,o)[o].next=t,i(this,o)[o]=t):i(this,n)[n]=i(this,o)[o]=t;},t.dequeue=function(){var e=i(this,n)[n];return i(this,n)[n]=null==e?void 0:e.next,i(this,n)[n]||(i(this,o)[o]=void 0),null==e?void 0:e.value},e}();function s(e){return {done:!1,value:e}}var h={done:!0},a=t("chunkQueue"),l=t("resolveQueue"),v=t("isInProgress"),c=t("isLocked"),d=function(){function e(){Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),this.url=null,i(this,a)[a]=new u,i(this,l)[l]=new u,i(this,v)[v]=!0,i(this,c)[c]=!1;}var t=e.prototype;return t.setUrl=function(e){this.url=e;},t.setBlobProperties=function(e){this.blobProperties=e;},t.storeChunk=function(e){i(this,v)[v]=!0;var t=i(this,l)[l].dequeue();t?t(s(e)):i(this,a)[a].enqueue(e);},t.stop=function(){i(this,v)[v]=!1;},t.reset=function(){i(this,v)[v]=!0,i(this,a)[a]=new u,i(this,l)[l]=new u,i(this,c)[c]=!1;},t.getUrl=function(){return this.url},t.getBlob=function(){},t.getReader=function(){if(i(this,c)[c])throw new Error("ReadableStorage is locked.");i(this,c)[c]=!0;var e=this;return {read:function(){var t=i(e,a)[a].dequeue();return t?Promise.resolve(s(t)):i(e,v)[v]?new Promise(function(t){return i(e,l)[l].enqueue(t)}):Promise.resolve(h)}}},e}();
|
|
36199
36624
|
|
|
36200
|
-
var css_248z$c = "@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css);\nbody {\n overflow: scroll;\n}\n\nh3 {\n text-transform: capitalize;\n font-weight: 500;\n font-size: 14px;\n}\n\n.error {\n color: #e80054;\n}\n\n:host {\n margin: 0;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 14px;\n font-weight: 300;\n line-height: 1.5;\n color: #000000;\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: #000000;\n}\n\n.utu-section-light {\n border-bottom: 1px solid #9b9898;\n background: #fdfdfd;\n}\n.utu-section-dark {\n border-bottom: 1px solid #ebe8e8;\n background: #242323;\n}\n.utu-section-no-border-light {\n background: #fdfdfd;\n}\n.utu-section-no-border-dark {\n background: #242323;\n}\n.utu-section-no-border-mid-light {\n background: #e5e5e5;\n}\n.utu-section-no-border-mid-dark {\n background: #494949;\n}\n\n.btn {\n padding: 12px;\n border: none;\n font-size: 14px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n}\n.btn-light {\n background-color: #fbc93d;\n color: #000000 !important;\n}\n.btn-dark {\n background-color: #fbc93d;\n color: #000000 !important;\n}\n.btn-round {\n color: \"white\" !important;\n}\n.btn-round-text {\n color: \"white\" !important;\n}\n\n.icon-btn {\n border: none;\n background: none;\n padding: 0;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-weight: 500;\n font-size: 14px;\n}\n.icon-btn svg {\n width: 60px;\n height: 60px;\n}\n\nbutton.p {\n color: \"white\";\n}\n\n.logo-position {\n position: absolute;\n top: -1rem;\n right: 6rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-details {\n position: absolute;\n top: -2rem;\n right: 6rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-video {\n position: absolute;\n top: 41.2rem;\n left: 21rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-player {\n position: absolute;\n bottom: -0.5rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-section {\n position: relative;\n}\n.logo-size {\n width: 3rem;\n}\n\n.text-area {\n resize: vertical;\n min-height: 8rem;\n border-radius: 10px;\n border: none;\n padding: 16px;\n font-weight: 300;\n font-size: 0.9rem;\n background-color: #fcf8e5;\n}\n\nsvg.video-icon {\n width: 1.5rem;\n height: 2.4rem;\n padding-top: 0.3rem;\n}\nsvg.video-icon-dark {\n fill: #000000;\n}\nsvg.video-icon-light {\n fill: #000000;\n}\n\n/* ----------- Large screens ----------- */\n@media only screen and (min-width: 768px) {\n .utu-section-light {\n border-bottom: 0px;\n background-color: #fcf8e5;\n }\n .utu-section-dark {\n border-bottom: 0px;\n background: #242323;\n background-color: #3d3d3c;\n }\n .utu-section-no-border-light {\n background-color: #fcf8e5;\n }\n .utu-section-no-border-dark {\n background-color: #3d3d3c;\n }\n .utu-section-no-border-mid-light {\n background-color: #fcf8e5;\n }\n .utu-section-no-border-mid-dark {\n background-color: #3d3d3c;\n }\n\n .text-area {\n background-color: #fdfdfd;\n }\n}\n.trust-video {\n left: 0;\n border: none;\n max-width: 100%;\n bottom: 1.4rem;\n position: relative;\n border-top-left-radius: 2%;\n border-top-right-radius: 2%;\n}\n.trust-video-wrapper {\n display: flex;\n align-items: center;\n}\n.trust-video-wrapper:hover .trust-video-controls {\n visibility: visible;\n opacity: 1;\n}\n.trust-video-msg {\n display: flex;\n align-items: center;\n}\n.trust-video-controls {\n position: absolute;\n bottom: 14px;\n padding-left: 36px;\n left: 14px;\n width: calc(100% - 28px);\n right: 0;\n border-radius: 10px;\n height: 4em;\n align-items: center;\n justify-content: space-between;\n visibility: hidden;\n opacity: 0;\n transition: all 0.25s ease-out;\n display: none;\n}\n.trust-video-controls.show {\n display: flex;\n}\n.trust-video-play {\n border-color: transparent;\n transition: 0.3s;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 3em;\n display: block;\n position: absolute;\n padding: 0;\n cursor: pointer;\n opacity: 1;\n background-color: #FFDD33;\n border-radius: 50%;\n font: normal normal normal 18px/1 FontAwesome;\n}\n.trust-video-play:before {\n content: \"\\f04b\";\n}\n.trust-video-play.paused:before {\n content: \"\\f04c\";\n}\n.trust-video-volume {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 2em;\n height: 1.5em;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n left: 20px;\n}\n.trust-video-volume:before {\n content: \"\\f028\";\n}\n.trust-video-volume.off:before {\n content: \"\\f026\";\n}\n.trust-video-fullscreen {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 1.5rem;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n right: 20px;\n}\n.trust-video-fullscreen:before {\n content: \"\\f065\";\n}\n\n.utu-screen-recording {\n max-height: 80rem;\n min-width: 20rem;\n width: 27rem;\n height: 43rem;\n position: relative;\n z-index: 1;\n justify-content: center;\n border-bottom-left-radius: 2%;\n border-bottom-right-radius: 2%;\n border-bottom: 13px #fbc93d solid;\n}\n\n.btn-round {\n border: none;\n margin: 5px 0;\n width: 6rem;\n height: 6rem;\n border-radius: 90px;\n border: none;\n font-size: 9px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n z-index: 1;\n}\n.btn-round-light {\n background-color: #fbc93d;\n}\n.btn-round-dark {\n background-color: #fbc93d;\n}\n.btn-round-loading {\n position: absolute;\n bottom: 2.5rem;\n}\n.btn-round-spinner-light {\n fill: #000000;\n}\n.btn-round-spinner-dark {\n fill: #000000;\n}\n.btn-round-stop {\n position: absolute;\n bottom: 2.5rem;\n}\n.btn-round-stop-light {\n fill: #000000;\n}\n.btn-round-stop-dark {\n fill: #000000;\n}\n.btn-round-text-light {\n color: #000000;\n}\n.btn-round-text-dark {\n color: #000000;\n}\n.btn-container {\n display: flex;\n justify-content: center;\n}\n.btn-stop-icon {\n width: 30px;\n height: 30px;\n border-radius: 5px;\n}\n.btn-stop-icon-light {\n background: #000000;\n}\n.btn-stop-icon-dark {\n background: #000000;\n}\n\n.video-container {\n padding-top: 4rem;\n padding-bottom: 4rem;\n}\n\n.response-message {\n height: 3rem;\n line-height: 3rem;\n width: 100%;\n}\n\n/* ----------- Large screens ----------- */\n@media only screen and (min-width: 768px) {\n .video-container {\n padding-top: 4rem;\n padding-bottom: 4rem;\n }\n}";
|
|
36625
|
+
var css_248z$c = "@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css);\nbody {\n overflow: scroll;\n}\n\nh3 {\n text-transform: capitalize;\n font-weight: 500;\n font-size: 14px;\n}\n\n.error {\n color: #e80054;\n}\n\n:host {\n margin: 0;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 14px;\n font-weight: 300;\n line-height: 1.5;\n color: #000000;\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: #000000;\n}\n\n.utu-section-light {\n border-bottom: 1px solid #9b9898;\n background: #fdfdfd;\n}\n.utu-section-dark {\n border-bottom: 1px solid #ebe8e8;\n background: #242323;\n}\n.utu-section-no-border-light {\n background: #fdfdfd;\n}\n.utu-section-no-border-dark {\n background: #242323;\n}\n.utu-section-no-border-mid-light {\n background: #e5e5e5;\n}\n.utu-section-no-border-mid-dark {\n background: #494949;\n}\n\n.btn {\n padding: 12px;\n border: none;\n font-size: 14px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n}\n.btn-light {\n background-color: #fbc93d;\n color: #000000 !important;\n}\n.btn-dark {\n background-color: #fbc93d;\n color: #000000 !important;\n}\n.btn-round {\n color: \"white\" !important;\n}\n.btn-round-text {\n color: \"white\" !important;\n}\n\n.icon-btn {\n border: none;\n background: none;\n padding: 0;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-weight: 500;\n font-size: 14px;\n}\n.icon-btn svg {\n width: 60px;\n height: 60px;\n}\n\nbutton.p {\n color: \"white\";\n}\n\n.logo-position {\n position: absolute;\n top: -1rem;\n right: 6rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-details {\n position: absolute;\n top: -2rem;\n right: 6rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-video {\n position: absolute;\n top: 41.2rem;\n left: 21rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-player {\n position: absolute;\n bottom: -0.5rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-section {\n position: relative;\n}\n.logo-size {\n width: 3rem;\n}\n\n.text-area {\n resize: vertical;\n min-height: 8rem;\n border-radius: 10px;\n border: none;\n padding: 16px;\n font-weight: 300;\n font-size: 0.9rem;\n background-color: #fcf8e5;\n}\n\nsvg.video-icon {\n width: 1.5rem;\n height: 2.4rem;\n padding-top: 0.3rem;\n}\nsvg.video-icon-dark {\n fill: #000000;\n}\nsvg.video-icon-light {\n fill: #000000;\n}\n\n/* ----------- Large screens ----------- */\n@media only screen and (min-width: 768px) {\n .utu-section-light {\n border-bottom: 0px;\n background-color: #fcf8e5;\n }\n .utu-section-dark {\n border-bottom: 0px;\n background: #242323;\n background-color: #3d3d3c;\n }\n .utu-section-no-border-light {\n background-color: #fcf8e5;\n }\n .utu-section-no-border-dark {\n background-color: #3d3d3c;\n }\n .utu-section-no-border-mid-light {\n background-color: #fcf8e5;\n }\n .utu-section-no-border-mid-dark {\n background-color: #3d3d3c;\n }\n\n .text-area {\n background-color: #fdfdfd;\n }\n}\n.trust-video {\n left: 0;\n border: none;\n max-width: 100%;\n bottom: 1.4rem;\n position: relative;\n border-top-left-radius: 2%;\n border-top-right-radius: 2%;\n}\n.trust-video-wrapper {\n display: flex;\n align-items: center;\n}\n.trust-video-wrapper:hover .trust-video-controls {\n visibility: visible;\n opacity: 1;\n}\n.trust-video-msg {\n display: flex;\n align-items: center;\n}\n.trust-video-controls {\n position: absolute;\n bottom: 14px;\n padding-left: 36px;\n left: 14px;\n width: calc(100% - 28px);\n right: 0;\n border-radius: 10px;\n height: 4em;\n align-items: center;\n justify-content: space-between;\n visibility: hidden;\n opacity: 0;\n transition: all 0.25s ease-out;\n display: none;\n}\n.trust-video-controls.show {\n display: flex;\n}\n.trust-video-play {\n border-color: transparent;\n transition: 0.3s;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 3em;\n display: block;\n position: absolute;\n padding: 0;\n cursor: pointer;\n opacity: 1;\n background-color: #FFDD33;\n border-radius: 50%;\n font: normal normal normal 18px/1 FontAwesome;\n}\n.trust-video-play:before {\n content: \"\\f04b\";\n}\n.trust-video-play.paused:before {\n content: \"\\f04c\";\n}\n.trust-video-volume {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 2em;\n height: 1.5em;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n left: 20px;\n}\n.trust-video-volume:before {\n content: \"\\f028\";\n}\n.trust-video-volume.off:before {\n content: \"\\f026\";\n}\n.trust-video-fullscreen {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 1.5rem;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n right: 20px;\n}\n.trust-video-fullscreen:before {\n content: \"\\f065\";\n}\n\n.utu-screen-recording {\n max-height: 80rem;\n min-width: 20rem;\n width: 27rem;\n height: 43rem;\n margin: 5% auto 0;\n position: relative;\n z-index: 1;\n justify-content: center;\n border-bottom-left-radius: 2%;\n border-bottom-right-radius: 2%;\n border-bottom: 13px #fbc93d solid;\n}\n\n.btn-round {\n border: none;\n margin: 5px 0;\n width: 6rem;\n height: 6rem;\n border-radius: 90px;\n border: none;\n font-size: 9px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n z-index: 1;\n}\n.btn-round-light {\n background-color: #fbc93d;\n}\n.btn-round-dark {\n background-color: #fbc93d;\n}\n.btn-round-loading {\n position: absolute;\n bottom: 2.5rem;\n}\n.btn-round-spinner-light {\n fill: #000000;\n}\n.btn-round-spinner-dark {\n fill: #000000;\n}\n.btn-round-stop {\n position: absolute;\n bottom: 2.5rem;\n}\n.btn-round-stop-light {\n fill: #000000;\n}\n.btn-round-stop-dark {\n fill: #000000;\n}\n.btn-round-text-light {\n color: #000000;\n}\n.btn-round-text-dark {\n color: #000000;\n}\n.btn-container {\n display: flex;\n justify-content: center;\n}\n.btn-stop-icon {\n width: 30px;\n height: 30px;\n border-radius: 5px;\n}\n.btn-stop-icon-light {\n background: #000000;\n}\n.btn-stop-icon-dark {\n background: #000000;\n}\n\n.video-container {\n padding-top: 4rem;\n padding-bottom: 4rem;\n}\n\n.response-message {\n height: 3rem;\n line-height: 3rem;\n width: 100%;\n}\n\n/* ----------- Large screens ----------- */\n@media only screen and (min-width: 768px) {\n .video-container {\n padding-top: 4rem;\n padding-bottom: 4rem;\n }\n}";
|
|
36201
36626
|
styleInject(css_248z$c);
|
|
36202
36627
|
|
|
36628
|
+
var String$2 = global$1.String;
|
|
36629
|
+
var TypeError$2 = global$1.TypeError;
|
|
36630
|
+
|
|
36631
|
+
var aPossiblePrototype = function (argument) {
|
|
36632
|
+
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
36633
|
+
throw TypeError$2("Can't set " + String$2(argument) + ' as a prototype');
|
|
36634
|
+
};
|
|
36635
|
+
|
|
36636
|
+
/* eslint-disable no-proto -- safe */
|
|
36637
|
+
|
|
36638
|
+
// `Object.setPrototypeOf` method
|
|
36639
|
+
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
36640
|
+
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
36641
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
36642
|
+
|
|
36643
|
+
|
|
36644
|
+
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
36645
|
+
var CORRECT_SETTER = false;
|
|
36646
|
+
var test = {};
|
|
36647
|
+
var setter;
|
|
36648
|
+
|
|
36649
|
+
try {
|
|
36650
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
36651
|
+
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
36652
|
+
setter(test, []);
|
|
36653
|
+
CORRECT_SETTER = test instanceof Array;
|
|
36654
|
+
} catch (error) {
|
|
36655
|
+
/* empty */
|
|
36656
|
+
}
|
|
36657
|
+
|
|
36658
|
+
return function setPrototypeOf(O, proto) {
|
|
36659
|
+
anObject(O);
|
|
36660
|
+
aPossiblePrototype(proto);
|
|
36661
|
+
if (CORRECT_SETTER) setter(O, proto);else O.__proto__ = proto;
|
|
36662
|
+
return O;
|
|
36663
|
+
};
|
|
36664
|
+
}() : undefined);
|
|
36665
|
+
|
|
36666
|
+
// makes subclassing work correct for wrapped built-ins
|
|
36667
|
+
|
|
36668
|
+
|
|
36669
|
+
var inheritIfRequired = function ($this, dummy, Wrapper) {
|
|
36670
|
+
var NewTarget, NewTargetPrototype;
|
|
36671
|
+
if ( // it can work only with native `setPrototypeOf`
|
|
36672
|
+
objectSetPrototypeOf && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
36673
|
+
isCallable(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$2(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype) objectSetPrototypeOf($this, NewTargetPrototype);
|
|
36674
|
+
return $this;
|
|
36675
|
+
};
|
|
36676
|
+
|
|
36677
|
+
// `thisNumberValue` abstract operation
|
|
36678
|
+
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
36679
|
+
|
|
36680
|
+
|
|
36681
|
+
var thisNumberValue = functionUncurryThis(1.0.valueOf);
|
|
36682
|
+
|
|
36683
|
+
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
36684
|
+
|
|
36685
|
+
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
36686
|
+
|
|
36687
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
36688
|
+
|
|
36689
|
+
|
|
36690
|
+
|
|
36691
|
+
var trim = stringTrim.trim;
|
|
36692
|
+
|
|
36693
|
+
var NUMBER = 'Number';
|
|
36694
|
+
var NativeNumber = global$1[NUMBER];
|
|
36695
|
+
var NumberPrototype = NativeNumber.prototype;
|
|
36696
|
+
var TypeError$1 = global$1.TypeError;
|
|
36697
|
+
var arraySlice$1 = functionUncurryThis(''.slice);
|
|
36698
|
+
var charCodeAt = functionUncurryThis(''.charCodeAt); // `ToNumeric` abstract operation
|
|
36699
|
+
// https://tc39.es/ecma262/#sec-tonumeric
|
|
36700
|
+
|
|
36701
|
+
var toNumeric = function (value) {
|
|
36702
|
+
var primValue = toPrimitive(value, 'number');
|
|
36703
|
+
return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
|
|
36704
|
+
}; // `ToNumber` abstract operation
|
|
36705
|
+
// https://tc39.es/ecma262/#sec-tonumber
|
|
36706
|
+
|
|
36707
|
+
|
|
36708
|
+
var toNumber = function (argument) {
|
|
36709
|
+
var it = toPrimitive(argument, 'number');
|
|
36710
|
+
var first, third, radix, maxCode, digits, length, index, code;
|
|
36711
|
+
if (isSymbol$1(it)) throw TypeError$1('Cannot convert a Symbol value to a number');
|
|
36712
|
+
|
|
36713
|
+
if (typeof it == 'string' && it.length > 2) {
|
|
36714
|
+
it = trim(it);
|
|
36715
|
+
first = charCodeAt(it, 0);
|
|
36716
|
+
|
|
36717
|
+
if (first === 43 || first === 45) {
|
|
36718
|
+
third = charCodeAt(it, 2);
|
|
36719
|
+
if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
|
|
36720
|
+
} else if (first === 48) {
|
|
36721
|
+
switch (charCodeAt(it, 1)) {
|
|
36722
|
+
case 66:
|
|
36723
|
+
case 98:
|
|
36724
|
+
radix = 2;
|
|
36725
|
+
maxCode = 49;
|
|
36726
|
+
break;
|
|
36727
|
+
// fast equal of /^0b[01]+$/i
|
|
36728
|
+
|
|
36729
|
+
case 79:
|
|
36730
|
+
case 111:
|
|
36731
|
+
radix = 8;
|
|
36732
|
+
maxCode = 55;
|
|
36733
|
+
break;
|
|
36734
|
+
// fast equal of /^0o[0-7]+$/i
|
|
36735
|
+
|
|
36736
|
+
default:
|
|
36737
|
+
return +it;
|
|
36738
|
+
}
|
|
36739
|
+
|
|
36740
|
+
digits = arraySlice$1(it, 2);
|
|
36741
|
+
length = digits.length;
|
|
36742
|
+
|
|
36743
|
+
for (index = 0; index < length; index++) {
|
|
36744
|
+
code = charCodeAt(digits, index); // parseInt parses a string to a first unavailable symbol
|
|
36745
|
+
// but ToNumber should return NaN if a string contains unavailable symbols
|
|
36746
|
+
|
|
36747
|
+
if (code < 48 || code > maxCode) return NaN;
|
|
36748
|
+
}
|
|
36749
|
+
|
|
36750
|
+
return parseInt(digits, radix);
|
|
36751
|
+
}
|
|
36752
|
+
}
|
|
36753
|
+
|
|
36754
|
+
return +it;
|
|
36755
|
+
}; // `Number` constructor
|
|
36756
|
+
// https://tc39.es/ecma262/#sec-number-constructor
|
|
36757
|
+
|
|
36758
|
+
|
|
36759
|
+
if (isForced_1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
|
|
36760
|
+
var NumberWrapper = function Number(value) {
|
|
36761
|
+
var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
|
|
36762
|
+
var dummy = this; // check on 1..constructor(foo) case
|
|
36763
|
+
|
|
36764
|
+
return objectIsPrototypeOf(NumberPrototype, dummy) && fails(function () {
|
|
36765
|
+
thisNumberValue(dummy);
|
|
36766
|
+
}) ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
|
|
36767
|
+
};
|
|
36768
|
+
|
|
36769
|
+
for (var keys = descriptors ? getOwnPropertyNames(NativeNumber) : ( // ES3:
|
|
36770
|
+
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + // ES2015 (in case, if modules with ES2015 Number statics required before):
|
|
36771
|
+
'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' + // ESNext
|
|
36772
|
+
'fromString,range').split(','), j = 0, key; keys.length > j; j++) {
|
|
36773
|
+
if (hasOwnProperty_1(NativeNumber, key = keys[j]) && !hasOwnProperty_1(NumberWrapper, key)) {
|
|
36774
|
+
defineProperty$1(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
|
|
36775
|
+
}
|
|
36776
|
+
}
|
|
36777
|
+
|
|
36778
|
+
NumberWrapper.prototype = NumberPrototype;
|
|
36779
|
+
NumberPrototype.constructor = NumberWrapper;
|
|
36780
|
+
redefine(global$1, NUMBER, NumberWrapper);
|
|
36781
|
+
}
|
|
36782
|
+
|
|
36203
36783
|
var RangeError$2 = global$1.RangeError; // `String.prototype.repeat` method implementation
|
|
36204
36784
|
// https://tc39.es/ecma262/#sec-string.prototype.repeat
|
|
36205
36785
|
|
|
@@ -36888,7 +37468,7 @@
|
|
|
36888
37468
|
facingMode: "user"
|
|
36889
37469
|
};
|
|
36890
37470
|
|
|
36891
|
-
var _useUploadVideoApi = useUploadVideoApi(activeReader),
|
|
37471
|
+
var _useUploadVideoApi = useUploadVideoApi(apiUrl, activeReader),
|
|
36892
37472
|
publishedVideoUrl = _useUploadVideoApi.publishedVideoUrl,
|
|
36893
37473
|
successMessage = _useUploadVideoApi.successMessage,
|
|
36894
37474
|
errorMessage = _useUploadVideoApi.errorMessage;
|