Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@api.video/video-uploader

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@api.video/video-uploader - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

dist/index.js

@@ -1,1 +0,1 @@

!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=60)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(64))},function(t,e,n){var r=n(0),o=n(42),i=n(3),u=n(43),c=n(49),a=n(79),s=o("wks"),f=r.Symbol,l=a?f:f&&f.withoutSetter||u;t.exports=function(t){return i(s,t)&&(c||"string"==typeof s[t])||(c&&i(f,t)?s[t]=f[t]:s[t]=l("Symbol."+t)),s[t]}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(40),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(r(t),e)}},function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(9),o=n(10),i=n(15);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(44),o=n(0),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},function(t,e,n){var r=n(0),o=n(20).f,i=n(5),u=n(11),c=n(24),a=n(68),s=n(47);t.exports=function(t,e){var n,f,l,p,v,h=t.target,d=t.global,y=t.stat;if(n=d?r:y?r[h]||c(h,{}):(r[h]||{}).prototype)for(f in e){if(p=e[f],l=t.noTargetGet?(v=o(n,f))&&v.value:n[f],!s(d?f:h+(y?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(n,f,p,t)}}},function(t,e,n){var r=n(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(9),o=n(41),i=n(4),u=n(39),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=u(e,!0),i(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(0),o=n(5),i=n(3),u=n(24),c=n(25),a=n(17),s=a.get,f=a.enforce,l=String(String).split("String");(t.exports=function(t,e,n,c){var a,s=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,v=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),(a=f(n)).source||(a.source=l.join("string"==typeof e?e:""))),t!==r?(s?!v&&t[e]&&(p=!0):delete t[e],p?t[e]=n:o(t,e,n)):p?t[e]=n:u(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e){t.exports=!1},function(t,e){t.exports={}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(66),o=n(22);t.exports=function(t){return r(o(t))}},function(t,e,n){var r,o,i,u=n(67),c=n(0),a=n(6),s=n(5),f=n(3),l=n(26),p=n(27),v=n(28),h=c.WeakMap;if(u||l.state){var d=l.state||(l.state=new h),y=d.get,g=d.has,m=d.set;r=function(t,e){if(g.call(d,t))throw new TypeError("Object already initialized");return e.facade=t,m.call(d,t,e),e},o=function(t){return y.call(d,t)||{}},i=function(t){return g.call(d,t)}}else{var x=p("state");v[x]=!0,r=function(t,e){if(f(t,x))throw new TypeError("Object already initialized");return e.facade=t,s(t,x,e),e},o=function(t){return f(t,x)?t[x]:{}},i=function(t){return f(t,x)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!a(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(4),o=n(78),i=n(46),u=n(51),c=n(80),a=n(81),s=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var f,l,p,v,h,d,y,g=n&&n.that,m=!(!n||!n.AS_ENTRIES),x=!(!n||!n.IS_ITERATOR),b=!(!n||!n.INTERRUPTED),w=u(e,g,1+m+b),S=function(t){return f&&a(f),new s(!0,t)},j=function(t){return m?(r(t),b?w(t[0],t[1],S):w(t[0],t[1])):b?w(t,S):w(t)};if(x)f=t;else{if("function"!=typeof(l=c(t)))throw TypeError("Target is not iterable");if(o(l)){for(p=0,v=i(t.length);v>p;p++)if((h=j(t[p]))&&h instanceof s)return h;return new s(!1)}f=l.call(t)}for(d=f.next;!(y=d.call(f)).done;){try{h=j(y.value)}catch(t){throw a(f),t}if("object"==typeof h&&h&&h instanceof s)return h}return new s(!1)}},function(t,e,n){"use strict";var r=n(12),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(9),o=n(65),i=n(15),u=n(16),c=n(39),a=n(3),s=n(41),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=u(t),e=c(e,!0),s)try{return f(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(0),o=n(6),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,n){var r=n(0),o=n(5);t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(26),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,e,n){var r=n(0),o=n(24),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(42),o=n(43),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports={}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(3),o=n(40),i=n(27),u=n(74),c=i("IE_PROTO"),a=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(4),o=n(75);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){var r,o=n(4),i=n(76),u=n(30),c=n(28),a=n(48),s=n(23),f=n(27),l=f("IE_PROTO"),p=function(){},v=function(t){return"<script>"+t+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;h=r?function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e}(r):((e=s("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F);for(var n=u.length;n--;)delete h.prototype[u[n]];return h()};c[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[l]=t):n=h(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(7);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r={};r[n(1)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(10).f,o=n(3),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(21),o=n(0);t.exports="process"==r(o.process)},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(22);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(9),o=n(2),i=n(23);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(13),o=n(26);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.15.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r=n(0);t.exports=r},function(t,e,n){var r=n(3),o=n(16),i=n(71).indexOf,u=n(28);t.exports=function(t,e){var n,c=o(t),a=0,s=[];for(n in c)!r(u,n)&&r(c,n)&&s.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){var r=n(29),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(2),o=/#|\.prototype\./,i=function(t,e){var n=c[u(t)];return n==s||n!=a&&("function"==typeof e?r(e):!!e)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},function(t,e,n){var r=n(7);t.exports=r("document","documentElement")},function(t,e,n){var r=n(50),o=n(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r,o,i=n(0),u=n(34),c=i.process,a=c&&c.versions,s=a&&a.v8;s?o=(r=s.split("."))[0]<4?1:r[0]+r[1]:u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},function(t,e,n){var r=n(12);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(35),o=n(21),i=n(1)("toStringTag"),u="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:u?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var r=n(0);t.exports=r.Promise},function(t,e,n){var r=n(4),o=n(12),i=n(1)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||null==(n=r(u)[i])?e:o(n)}},function(t,e,n){var r,o,i,u=n(0),c=n(2),a=n(51),s=n(48),f=n(23),l=n(56),p=n(37),v=u.location,h=u.setImmediate,d=u.clearImmediate,y=u.process,g=u.MessageChannel,m=u.Dispatch,x=0,b={},w=function(t){if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},S=function(t){return function(){w(t)}},j=function(t){w(t.data)},O=function(t){u.postMessage(t+"",v.protocol+"//"+v.host)};h&&d||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return b[++x]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(x),x},d=function(t){delete b[t]},p?r=function(t){y.nextTick(S(t))}:m&&m.now?r=function(t){m.now(S(t))}:g&&!l?(i=(o=new g).port2,o.port1.onmessage=j,r=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts&&v&&"file:"!==v.protocol&&!c(O)?(r=O,u.addEventListener("message",j,!1)):r="onreadystatechange"in f("script")?function(t){s.appendChild(f("script")).onreadystatechange=function(){s.removeChild(this),w(t)}}:function(t){setTimeout(S(t),0)}),t.exports={set:h,clear:d}},function(t,e,n){var r=n(34);t.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},function(t,e,n){var r=n(4),o=n(6),i=n(19);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(8),o=n(98),i=n(31),u=n(32),c=n(36),a=n(5),s=n(11),f=n(1),l=n(13),p=n(14),v=n(59),h=v.IteratorPrototype,d=v.BUGGY_SAFARI_ITERATORS,y=f("iterator"),g=function(){return this};t.exports=function(t,e,n,f,v,m,x){o(n,e,f);var b,w,S,j=function(t){if(t===v&&E)return E;if(!d&&t in k)return k[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},O=e+" Iterator",T=!1,k=t.prototype,P=k[y]||k["@@iterator"]||v&&k[v],E=!d&&P||j(v),_="Array"==e&&k.entries||P;if(_&&(b=i(_.call(new t)),h!==Object.prototype&&b.next&&(l||i(b)===h||(u?u(b,h):"function"!=typeof b[y]&&a(b,y,g)),c(b,O,!0,!0),l&&(p[O]=g))),"values"==v&&P&&"values"!==P.name&&(T=!0,E=function(){return P.call(this)}),l&&!x||k[y]===E||a(k,y,E),p[e]=E,v)if(w={values:j("values"),keys:m?E:j("keys"),entries:j("entries")},x)for(S in w)(d||T||!(S in k))&&s(k,S,w[S]);else r({target:e,proto:!0,forced:d||T},w);return w}},function(t,e,n){"use strict";var r,o,i,u=n(2),c=n(31),a=n(5),s=n(3),f=n(1),l=n(13),p=f("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):v=!0);var h=null==r||u((function(){var t={};return r[p].call(t)!==t}));h&&(r={}),l&&!h||s(r,p)||a(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},function(t,e,n){n(61),t.exports=n(103)},function(t,e,n){var r=n(62);t.exports=r},function(t,e,n){n(63),n(82),n(84),n(93),n(94),n(95),n(96),n(99);var r=n(44);t.exports=r.Promise},function(t,e,n){"use strict";var r=n(8),o=n(31),i=n(32),u=n(33),c=n(5),a=n(15),s=n(18),f=function(t,e){var n=this;if(!(n instanceof f))return new f(t,e);i&&(n=i(new Error(void 0),o(n))),void 0!==e&&c(n,"message",String(e));var r=[];return s(t,r.push,{that:r}),c(n,"errors",r),n};f.prototype=u(Error.prototype,{constructor:a(5,f),message:a(5,""),name:a(5,"AggregateError")}),r({global:!0},{AggregateError:f})},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(2),o=n(21),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(0),o=n(25),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,n){var r=n(3),o=n(69),i=n(20),u=n(10);t.exports=function(t,e){for(var n=o(e),c=u.f,a=i.f,s=0;s<n.length;s++){var f=n[s];r(t,f)||c(t,f,a(e,f))}}},function(t,e,n){var r=n(7),o=n(70),i=n(73),u=n(4);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(u(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(45),o=n(30).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(16),o=n(46),i=n(72),u=function(t){return function(e,n,u){var c,a=r(e),s=o(a.length),f=i(u,s);if(t&&n!=n){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,n){var r=n(29),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(2);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){var r=n(9),o=n(10),i=n(4),u=n(77);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),c=r.length,a=0;c>a;)o.f(t,n=r[a++],e[n]);return t}},function(t,e,n){var r=n(45),o=n(30);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(1),o=n(14),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,e,n){var r=n(49);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(52),o=n(14),i=n(1)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(4);t.exports=function(t){var e=t.return;if(void 0!==e)return r(e.call(t)).value}},function(t,e,n){var r=n(35),o=n(11),i=n(83);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){"use strict";var r=n(35),o=n(52);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){"use strict";var r,o,i,u,c=n(8),a=n(13),s=n(0),f=n(7),l=n(53),p=n(11),v=n(85),h=n(32),d=n(36),y=n(86),g=n(6),m=n(12),x=n(87),b=n(25),w=n(18),S=n(88),j=n(54),O=n(55).set,T=n(89),k=n(57),P=n(91),E=n(19),_=n(38),A=n(17),C=n(47),I=n(1),L=n(92),M=n(37),R=n(50),z=I("species"),F="Promise",N=A.get,D=A.set,G=A.getterFor(F),V=l&&l.prototype,B=l,H=V,U=s.TypeError,q=s.document,W=s.process,Y=E.f,K=Y,X=!!(q&&q.createEvent&&s.dispatchEvent),J="function"==typeof PromiseRejectionEvent,Q=!1,Z=C(F,(function(){var t=b(B)!==String(B);if(!t&&66===R)return!0;if(a&&!H.finally)return!0;if(R>=51&&/native code/.test(B))return!1;var e=new B((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(e.constructor={})[z]=n,!(Q=e.then((function(){}))instanceof n)||!t&&L&&!J})),$=Z||!S((function(t){B.all(t).catch((function(){}))})),tt=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},et=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;T((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var u,c,a,s=n[i++],f=o?s.ok:s.fail,l=s.resolve,p=s.reject,v=s.domain;try{f?(o||(2===t.rejection&&it(t),t.rejection=1),!0===f?u=r:(v&&v.enter(),u=f(r),v&&(v.exit(),a=!0)),u===s.promise?p(U("Promise-chain cycle")):(c=tt(u))?c.call(u,l,p):l(u)):p(r)}catch(t){v&&!a&&v.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&rt(t)}))}},nt=function(t,e,n){var r,o;X?((r=q.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!J&&(o=s["on"+t])?o(r):"unhandledrejection"===t&&P("Unhandled promise rejection",n)},rt=function(t){O.call(s,(function(){var e,n=t.facade,r=t.value;if(ot(t)&&(e=_((function(){M?W.emit("unhandledRejection",r,n):nt("unhandledrejection",n,r)})),t.rejection=M||ot(t)?2:1,e.error))throw e.value}))},ot=function(t){return 1!==t.rejection&&!t.parent},it=function(t){O.call(s,(function(){var e=t.facade;M?W.emit("rejectionHandled",e):nt("rejectionhandled",e,t.value)}))},ut=function(t,e,n){return function(r){t(e,r,n)}},ct=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,et(t,!0))},at=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw U("Promise can't be resolved itself");var r=tt(e);r?T((function(){var n={done:!1};try{r.call(e,ut(at,n,t),ut(ct,n,t))}catch(e){ct(n,e,t)}})):(t.value=e,t.state=1,et(t,!1))}catch(e){ct({done:!1},e,t)}}};if(Z&&(H=(B=function(t){x(this,B,F),m(t),r.call(this);var e=N(this);try{t(ut(at,e),ut(ct,e))}catch(t){ct(e,t)}}).prototype,(r=function(t){D(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=v(H,{then:function(t,e){var n=G(this),r=Y(j(this,B));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=M?W.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&et(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=N(t);this.promise=t,this.resolve=ut(at,e),this.reject=ut(ct,e)},E.f=Y=function(t){return t===B||t===i?new o(t):K(t)},!a&&"function"==typeof l&&V!==Object.prototype)){u=V.then,Q||(p(V,"then",(function(t,e){var n=this;return new B((function(t,e){u.call(n,t,e)})).then(t,e)}),{unsafe:!0}),p(V,"catch",H.catch,{unsafe:!0}));try{delete V.constructor}catch(t){}h&&h(V,H)}c({global:!0,wrap:!0,forced:Z},{Promise:B}),d(B,F,!1,!0),y(F),i=f(F),c({target:F,stat:!0,forced:Z},{reject:function(t){var e=Y(this);return e.reject.call(void 0,t),e.promise}}),c({target:F,stat:!0,forced:a||Z},{resolve:function(t){return k(a&&this===i?B:this,t)}}),c({target:F,stat:!0,forced:$},{all:function(t){var e=this,n=Y(e),r=n.resolve,o=n.reject,i=_((function(){var n=m(e.resolve),i=[],u=0,c=1;w(t,(function(t){var a=u++,s=!1;i.push(void 0),c++,n.call(e,t).then((function(t){s||(s=!0,i[a]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Y(e),r=n.reject,o=_((function(){var o=m(e.resolve);w(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(t,e,n){var r=n(11);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(7),o=n(10),i=n(1),u=n(9),c=i("species");t.exports=function(t){var e=r(t),n=o.f;u&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){var r,o,i,u,c,a,s,f,l=n(0),p=n(20).f,v=n(55).set,h=n(56),d=n(90),y=n(37),g=l.MutationObserver||l.WebKitMutationObserver,m=l.document,x=l.process,b=l.Promise,w=p(l,"queueMicrotask"),S=w&&w.value;S||(r=function(){var t,e;for(y&&(t=x.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?u():i=void 0,t}}i=void 0,t&&t.enter()},h||y||d||!g||!m?b&&b.resolve?((s=b.resolve(void 0)).constructor=b,f=s.then,u=function(){f.call(s,r)}):u=y?function(){x.nextTick(r)}:function(){v.call(l,r)}:(c=!0,a=m.createTextNode(""),new g(r).observe(a,{characterData:!0}),u=function(){a.data=c=!c})),t.exports=S||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,u()),i=e}},function(t,e,n){var r=n(34);t.exports=/web0s(?!.*chrome)/i.test(r)},function(t,e,n){var r=n(0);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports="object"==typeof window},function(t,e,n){"use strict";var r=n(8),o=n(12),i=n(19),u=n(38),c=n(18);r({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=i.f(e),r=n.resolve,a=n.reject,s=u((function(){var n=o(e.resolve),i=[],u=0,a=1;c(t,(function(t){var o=u++,c=!1;i.push(void 0),a++,n.call(e,t).then((function(t){c||(c=!0,i[o]={status:"fulfilled",value:t},--a||r(i))}),(function(t){c||(c=!0,i[o]={status:"rejected",reason:t},--a||r(i))}))})),--a||r(i)}));return s.error&&a(s.value),n.promise}})},function(t,e,n){"use strict";var r=n(8),o=n(12),i=n(7),u=n(19),c=n(38),a=n(18);r({target:"Promise",stat:!0},{any:function(t){var e=this,n=u.f(e),r=n.resolve,s=n.reject,f=c((function(){var n=o(e.resolve),u=[],c=0,f=1,l=!1;a(t,(function(t){var o=c++,a=!1;u.push(void 0),f++,n.call(e,t).then((function(t){a||l||(l=!0,r(t))}),(function(t){a||l||(a=!0,u[o]=t,--f||s(new(i("AggregateError"))(u,"No one promise resolved")))}))})),--f||s(new(i("AggregateError"))(u,"No one promise resolved"))}));return f.error&&s(f.value),n.promise}})},function(t,e,n){"use strict";var r=n(8),o=n(13),i=n(53),u=n(2),c=n(7),a=n(54),s=n(57),f=n(11);if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&u((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=a(this,c("Promise")),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}}),!o&&"function"==typeof i){var l=c("Promise").prototype.finally;i.prototype.finally!==l&&f(i.prototype,"finally",l,{unsafe:!0})}},function(t,e,n){"use strict";var r=n(97).charAt,o=n(17),i=n(58),u=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(t){u(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=c(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(29),o=n(22),i=function(t){return function(e,n){var i,u,c=String(o(e)),a=r(n),s=c.length;return a<0||a>=s?t?"":void 0:(i=c.charCodeAt(a))<55296||i>56319||a+1===s||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,n){"use strict";var r=n(59).IteratorPrototype,o=n(33),i=n(15),u=n(36),c=n(14),a=function(){return this};t.exports=function(t,e,n){var s=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),u(t,s,!1,!0),c[s]=a,t}},function(t,e,n){var r=n(0),o=n(100),i=n(101),u=n(5),c=n(1),a=c("iterator"),s=c("toStringTag"),f=i.values;for(var l in o){var p=r[l],v=p&&p.prototype;if(v){if(v[a]!==f)try{u(v,a,f)}catch(t){v[a]=f}if(v[s]||u(v,s,l),o[l])for(var h in i)if(v[h]!==i[h])try{u(v,h,i[h])}catch(t){v[h]=i[h]}}}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){"use strict";var r=n(16),o=n(102),i=n(14),u=n(17),c=n(58),a=u.set,s=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){a(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){var r=n(1),o=n(33),i=n(10),u=r("unscopables"),c=Array.prototype;null==c[u]&&i.f(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,c)}a((r=r.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};e.__esModule=!0,e.VideoUploader=void 0;var i=function(){function t(t){this.currentChunk=0,this.onProgressCallbacks=[],this.headers={};var e=t.apiHost||"ws.api.video";if(!t.file)throw new Error("'file' is missing");if(t.hasOwnProperty("uploadToken")){var n=t;this.uploadEndpoint="https://"+e+"/upload?token="+n.uploadToken}else{if(!t.hasOwnProperty("accessToken"))throw new Error("You must provide either an accessToken or an uploadToken");var r=t;if(!r.videoId)throw new Error("'videoId' is missing");this.uploadEndpoint="https://"+e+"/videos/"+r.videoId+"/source",this.headers.Authorization="Bearer "+r.accessToken}this.chunkSize=t.chunkSize||1048576,this.retries=t.retries||5,this.file=t.file,this.fileSize=this.file.size,this.fileName=this.file.name,this.chunksCount=Math.ceil(this.fileSize/this.chunkSize)}return t.prototype.onProgress=function(t){this.onProgressCallbacks.push(t)},t.prototype.upload=function(){var t=this;return new Promise((function(e,n){return r(t,void 0,void 0,(function(){var t,r,i;return o(this,(function(o){switch(o.label){case 0:r=0,o.label=1;case 1:if(!(this.currentChunk<this.chunksCount))return[3,7];o.label=2;case 2:return o.trys.push([2,4,,6]),[4,this.uploadCurrentChunk()];case 3:return t=o.sent(),this.videoId=t.videoId,this.currentChunk++,[3,6];case 4:return i=o.sent(),r>=this.retries?(n(i),[3,7]):[4,this.sleep(200+500*r)];case 5:return o.sent(),r++,[3,6];case 6:return[3,1];case 7:return e(t),[2]}}))}))}))},t.prototype.sleep=function(t){return new Promise((function(e,n){setTimeout((function(){return e()}),t)}))},t.prototype.createFormData=function(t,e){var n=this.file.slice(t,e),r=new FormData;return this.videoId&&r.append("videoId",this.videoId),r.append("file",n,this.fileName),r},t.prototype.uploadCurrentChunk=function(){var t=this;return new Promise((function(e,n){var r=t.currentChunk*t.chunkSize,o=(t.currentChunk+1)*t.chunkSize,i=o>t.fileSize?t.fileSize:o,u="bytes "+r+"-"+(i-1)+"/"+t.fileSize,c=new window.XMLHttpRequest;c.open("POST",""+t.uploadEndpoint,!0),c.setRequestHeader("Content-Range",u);for(var a=0,s=Object.keys(t.headers);a<s.length;a++){var f=s[a];c.setRequestHeader(f,t.headers[f])}c.onreadystatechange=function(t){4===c.readyState&&c.status>=400&&n({status:c.status,message:c.response})},c.onload=function(t){return e(JSON.parse(c.response))},c.onprogress=function(e){return t.onProgressCallbacks.forEach((function(n){return n({uploadedBytes:e.loaded+r,totalBytes:t.fileSize,chunksCount:t.chunksCount,chunksBytes:t.chunkSize,currentChunk:t.currentChunk+1,currentChunkUploadedBytes:e.loaded})}))},c.send(t.createFormData(r,i))}))},t}();e.VideoUploader=i}])}));
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=60)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(64))},function(t,e,n){var r=n(0),o=n(42),i=n(3),u=n(43),c=n(49),a=n(79),s=o("wks"),f=r.Symbol,l=a?f:f&&f.withoutSetter||u;t.exports=function(t){return i(s,t)&&(c||"string"==typeof s[t])||(c&&i(f,t)?s[t]=f[t]:s[t]=l("Symbol."+t)),s[t]}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(40),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(r(t),e)}},function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(9),o=n(10),i=n(15);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(44),o=n(0),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},function(t,e,n){var r=n(0),o=n(20).f,i=n(5),u=n(11),c=n(24),a=n(68),s=n(47);t.exports=function(t,e){var n,f,l,p,v,h=t.target,d=t.global,y=t.stat;if(n=d?r:y?r[h]||c(h,{}):(r[h]||{}).prototype)for(f in e){if(p=e[f],l=t.noTargetGet?(v=o(n,f))&&v.value:n[f],!s(d?f:h+(y?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(n,f,p,t)}}},function(t,e,n){var r=n(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(9),o=n(41),i=n(4),u=n(39),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=u(e,!0),i(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(0),o=n(5),i=n(3),u=n(24),c=n(25),a=n(17),s=a.get,f=a.enforce,l=String(String).split("String");(t.exports=function(t,e,n,c){var a,s=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,v=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),(a=f(n)).source||(a.source=l.join("string"==typeof e?e:""))),t!==r?(s?!v&&t[e]&&(p=!0):delete t[e],p?t[e]=n:o(t,e,n)):p?t[e]=n:u(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e){t.exports=!1},function(t,e){t.exports={}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(66),o=n(22);t.exports=function(t){return r(o(t))}},function(t,e,n){var r,o,i,u=n(67),c=n(0),a=n(6),s=n(5),f=n(3),l=n(26),p=n(27),v=n(28),h=c.WeakMap;if(u||l.state){var d=l.state||(l.state=new h),y=d.get,g=d.has,m=d.set;r=function(t,e){if(g.call(d,t))throw new TypeError("Object already initialized");return e.facade=t,m.call(d,t,e),e},o=function(t){return y.call(d,t)||{}},i=function(t){return g.call(d,t)}}else{var x=p("state");v[x]=!0,r=function(t,e){if(f(t,x))throw new TypeError("Object already initialized");return e.facade=t,s(t,x,e),e},o=function(t){return f(t,x)?t[x]:{}},i=function(t){return f(t,x)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!a(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(4),o=n(78),i=n(46),u=n(51),c=n(80),a=n(81),s=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var f,l,p,v,h,d,y,g=n&&n.that,m=!(!n||!n.AS_ENTRIES),x=!(!n||!n.IS_ITERATOR),b=!(!n||!n.INTERRUPTED),w=u(e,g,1+m+b),S=function(t){return f&&a(f),new s(!0,t)},j=function(t){return m?(r(t),b?w(t[0],t[1],S):w(t[0],t[1])):b?w(t,S):w(t)};if(x)f=t;else{if("function"!=typeof(l=c(t)))throw TypeError("Target is not iterable");if(o(l)){for(p=0,v=i(t.length);v>p;p++)if((h=j(t[p]))&&h instanceof s)return h;return new s(!1)}f=l.call(t)}for(d=f.next;!(y=d.call(f)).done;){try{h=j(y.value)}catch(t){throw a(f),t}if("object"==typeof h&&h&&h instanceof s)return h}return new s(!1)}},function(t,e,n){"use strict";var r=n(12),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(9),o=n(65),i=n(15),u=n(16),c=n(39),a=n(3),s=n(41),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=u(t),e=c(e,!0),s)try{return f(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(0),o=n(6),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,n){var r=n(0),o=n(5);t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(26),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,e,n){var r=n(0),o=n(24),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(42),o=n(43),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports={}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(3),o=n(40),i=n(27),u=n(74),c=i("IE_PROTO"),a=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(4),o=n(75);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){var r,o=n(4),i=n(76),u=n(30),c=n(28),a=n(48),s=n(23),f=n(27),l=f("IE_PROTO"),p=function(){},v=function(t){return"<script>"+t+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;h=r?function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e}(r):((e=s("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F);for(var n=u.length;n--;)delete h.prototype[u[n]];return h()};c[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[l]=t):n=h(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(7);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r={};r[n(1)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(10).f,o=n(3),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(21),o=n(0);t.exports="process"==r(o.process)},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(22);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(9),o=n(2),i=n(23);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(13),o=n(26);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.15.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r=n(0);t.exports=r},function(t,e,n){var r=n(3),o=n(16),i=n(71).indexOf,u=n(28);t.exports=function(t,e){var n,c=o(t),a=0,s=[];for(n in c)!r(u,n)&&r(c,n)&&s.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){var r=n(29),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(2),o=/#|\.prototype\./,i=function(t,e){var n=c[u(t)];return n==s||n!=a&&("function"==typeof e?r(e):!!e)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},function(t,e,n){var r=n(7);t.exports=r("document","documentElement")},function(t,e,n){var r=n(50),o=n(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r,o,i=n(0),u=n(34),c=i.process,a=c&&c.versions,s=a&&a.v8;s?o=(r=s.split("."))[0]<4?1:r[0]+r[1]:u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},function(t,e,n){var r=n(12);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(35),o=n(21),i=n(1)("toStringTag"),u="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:u?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var r=n(0);t.exports=r.Promise},function(t,e,n){var r=n(4),o=n(12),i=n(1)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||null==(n=r(u)[i])?e:o(n)}},function(t,e,n){var r,o,i,u=n(0),c=n(2),a=n(51),s=n(48),f=n(23),l=n(56),p=n(37),v=u.location,h=u.setImmediate,d=u.clearImmediate,y=u.process,g=u.MessageChannel,m=u.Dispatch,x=0,b={},w=function(t){if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},S=function(t){return function(){w(t)}},j=function(t){w(t.data)},O=function(t){u.postMessage(t+"",v.protocol+"//"+v.host)};h&&d||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return b[++x]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(x),x},d=function(t){delete b[t]},p?r=function(t){y.nextTick(S(t))}:m&&m.now?r=function(t){m.now(S(t))}:g&&!l?(i=(o=new g).port2,o.port1.onmessage=j,r=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts&&v&&"file:"!==v.protocol&&!c(O)?(r=O,u.addEventListener("message",j,!1)):r="onreadystatechange"in f("script")?function(t){s.appendChild(f("script")).onreadystatechange=function(){s.removeChild(this),w(t)}}:function(t){setTimeout(S(t),0)}),t.exports={set:h,clear:d}},function(t,e,n){var r=n(34);t.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},function(t,e,n){var r=n(4),o=n(6),i=n(19);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(8),o=n(98),i=n(31),u=n(32),c=n(36),a=n(5),s=n(11),f=n(1),l=n(13),p=n(14),v=n(59),h=v.IteratorPrototype,d=v.BUGGY_SAFARI_ITERATORS,y=f("iterator"),g=function(){return this};t.exports=function(t,e,n,f,v,m,x){o(n,e,f);var b,w,S,j=function(t){if(t===v&&E)return E;if(!d&&t in k)return k[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},O=e+" Iterator",T=!1,k=t.prototype,P=k[y]||k["@@iterator"]||v&&k[v],E=!d&&P||j(v),_="Array"==e&&k.entries||P;if(_&&(b=i(_.call(new t)),h!==Object.prototype&&b.next&&(l||i(b)===h||(u?u(b,h):"function"!=typeof b[y]&&a(b,y,g)),c(b,O,!0,!0),l&&(p[O]=g))),"values"==v&&P&&"values"!==P.name&&(T=!0,E=function(){return P.call(this)}),l&&!x||k[y]===E||a(k,y,E),p[e]=E,v)if(w={values:j("values"),keys:m?E:j("keys"),entries:j("entries")},x)for(S in w)(d||T||!(S in k))&&s(k,S,w[S]);else r({target:e,proto:!0,forced:d||T},w);return w}},function(t,e,n){"use strict";var r,o,i,u=n(2),c=n(31),a=n(5),s=n(3),f=n(1),l=n(13),p=f("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):v=!0);var h=null==r||u((function(){var t={};return r[p].call(t)!==t}));h&&(r={}),l&&!h||s(r,p)||a(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},function(t,e,n){n(61),t.exports=n(103)},function(t,e,n){var r=n(62);t.exports=r},function(t,e,n){n(63),n(82),n(84),n(93),n(94),n(95),n(96),n(99);var r=n(44);t.exports=r.Promise},function(t,e,n){"use strict";var r=n(8),o=n(31),i=n(32),u=n(33),c=n(5),a=n(15),s=n(18),f=function(t,e){var n=this;if(!(n instanceof f))return new f(t,e);i&&(n=i(new Error(void 0),o(n))),void 0!==e&&c(n,"message",String(e));var r=[];return s(t,r.push,{that:r}),c(n,"errors",r),n};f.prototype=u(Error.prototype,{constructor:a(5,f),message:a(5,""),name:a(5,"AggregateError")}),r({global:!0},{AggregateError:f})},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(2),o=n(21),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(0),o=n(25),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,n){var r=n(3),o=n(69),i=n(20),u=n(10);t.exports=function(t,e){for(var n=o(e),c=u.f,a=i.f,s=0;s<n.length;s++){var f=n[s];r(t,f)||c(t,f,a(e,f))}}},function(t,e,n){var r=n(7),o=n(70),i=n(73),u=n(4);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(u(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(45),o=n(30).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(16),o=n(46),i=n(72),u=function(t){return function(e,n,u){var c,a=r(e),s=o(a.length),f=i(u,s);if(t&&n!=n){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,n){var r=n(29),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(2);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){var r=n(9),o=n(10),i=n(4),u=n(77);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),c=r.length,a=0;c>a;)o.f(t,n=r[a++],e[n]);return t}},function(t,e,n){var r=n(45),o=n(30);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(1),o=n(14),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,e,n){var r=n(49);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(52),o=n(14),i=n(1)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(4);t.exports=function(t){var e=t.return;if(void 0!==e)return r(e.call(t)).value}},function(t,e,n){var r=n(35),o=n(11),i=n(83);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){"use strict";var r=n(35),o=n(52);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){"use strict";var r,o,i,u,c=n(8),a=n(13),s=n(0),f=n(7),l=n(53),p=n(11),v=n(85),h=n(32),d=n(36),y=n(86),g=n(6),m=n(12),x=n(87),b=n(25),w=n(18),S=n(88),j=n(54),O=n(55).set,T=n(89),k=n(57),P=n(91),E=n(19),_=n(38),A=n(17),I=n(47),C=n(1),L=n(92),M=n(37),R=n(50),z=C("species"),F="Promise",N=A.get,D=A.set,G=A.getterFor(F),V=l&&l.prototype,B=l,H=V,U=s.TypeError,q=s.document,W=s.process,Y=E.f,K=Y,X=!!(q&&q.createEvent&&s.dispatchEvent),J="function"==typeof PromiseRejectionEvent,Q=!1,Z=I(F,(function(){var t=b(B)!==String(B);if(!t&&66===R)return!0;if(a&&!H.finally)return!0;if(R>=51&&/native code/.test(B))return!1;var e=new B((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(e.constructor={})[z]=n,!(Q=e.then((function(){}))instanceof n)||!t&&L&&!J})),$=Z||!S((function(t){B.all(t).catch((function(){}))})),tt=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},et=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;T((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var u,c,a,s=n[i++],f=o?s.ok:s.fail,l=s.resolve,p=s.reject,v=s.domain;try{f?(o||(2===t.rejection&&it(t),t.rejection=1),!0===f?u=r:(v&&v.enter(),u=f(r),v&&(v.exit(),a=!0)),u===s.promise?p(U("Promise-chain cycle")):(c=tt(u))?c.call(u,l,p):l(u)):p(r)}catch(t){v&&!a&&v.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&rt(t)}))}},nt=function(t,e,n){var r,o;X?((r=q.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!J&&(o=s["on"+t])?o(r):"unhandledrejection"===t&&P("Unhandled promise rejection",n)},rt=function(t){O.call(s,(function(){var e,n=t.facade,r=t.value;if(ot(t)&&(e=_((function(){M?W.emit("unhandledRejection",r,n):nt("unhandledrejection",n,r)})),t.rejection=M||ot(t)?2:1,e.error))throw e.value}))},ot=function(t){return 1!==t.rejection&&!t.parent},it=function(t){O.call(s,(function(){var e=t.facade;M?W.emit("rejectionHandled",e):nt("rejectionhandled",e,t.value)}))},ut=function(t,e,n){return function(r){t(e,r,n)}},ct=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,et(t,!0))},at=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw U("Promise can't be resolved itself");var r=tt(e);r?T((function(){var n={done:!1};try{r.call(e,ut(at,n,t),ut(ct,n,t))}catch(e){ct(n,e,t)}})):(t.value=e,t.state=1,et(t,!1))}catch(e){ct({done:!1},e,t)}}};if(Z&&(H=(B=function(t){x(this,B,F),m(t),r.call(this);var e=N(this);try{t(ut(at,e),ut(ct,e))}catch(t){ct(e,t)}}).prototype,(r=function(t){D(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=v(H,{then:function(t,e){var n=G(this),r=Y(j(this,B));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=M?W.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&et(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=N(t);this.promise=t,this.resolve=ut(at,e),this.reject=ut(ct,e)},E.f=Y=function(t){return t===B||t===i?new o(t):K(t)},!a&&"function"==typeof l&&V!==Object.prototype)){u=V.then,Q||(p(V,"then",(function(t,e){var n=this;return new B((function(t,e){u.call(n,t,e)})).then(t,e)}),{unsafe:!0}),p(V,"catch",H.catch,{unsafe:!0}));try{delete V.constructor}catch(t){}h&&h(V,H)}c({global:!0,wrap:!0,forced:Z},{Promise:B}),d(B,F,!1,!0),y(F),i=f(F),c({target:F,stat:!0,forced:Z},{reject:function(t){var e=Y(this);return e.reject.call(void 0,t),e.promise}}),c({target:F,stat:!0,forced:a||Z},{resolve:function(t){return k(a&&this===i?B:this,t)}}),c({target:F,stat:!0,forced:$},{all:function(t){var e=this,n=Y(e),r=n.resolve,o=n.reject,i=_((function(){var n=m(e.resolve),i=[],u=0,c=1;w(t,(function(t){var a=u++,s=!1;i.push(void 0),c++,n.call(e,t).then((function(t){s||(s=!0,i[a]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Y(e),r=n.reject,o=_((function(){var o=m(e.resolve);w(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(t,e,n){var r=n(11);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(7),o=n(10),i=n(1),u=n(9),c=i("species");t.exports=function(t){var e=r(t),n=o.f;u&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){var r,o,i,u,c,a,s,f,l=n(0),p=n(20).f,v=n(55).set,h=n(56),d=n(90),y=n(37),g=l.MutationObserver||l.WebKitMutationObserver,m=l.document,x=l.process,b=l.Promise,w=p(l,"queueMicrotask"),S=w&&w.value;S||(r=function(){var t,e;for(y&&(t=x.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?u():i=void 0,t}}i=void 0,t&&t.enter()},h||y||d||!g||!m?b&&b.resolve?((s=b.resolve(void 0)).constructor=b,f=s.then,u=function(){f.call(s,r)}):u=y?function(){x.nextTick(r)}:function(){v.call(l,r)}:(c=!0,a=m.createTextNode(""),new g(r).observe(a,{characterData:!0}),u=function(){a.data=c=!c})),t.exports=S||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,u()),i=e}},function(t,e,n){var r=n(34);t.exports=/web0s(?!.*chrome)/i.test(r)},function(t,e,n){var r=n(0);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports="object"==typeof window},function(t,e,n){"use strict";var r=n(8),o=n(12),i=n(19),u=n(38),c=n(18);r({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=i.f(e),r=n.resolve,a=n.reject,s=u((function(){var n=o(e.resolve),i=[],u=0,a=1;c(t,(function(t){var o=u++,c=!1;i.push(void 0),a++,n.call(e,t).then((function(t){c||(c=!0,i[o]={status:"fulfilled",value:t},--a||r(i))}),(function(t){c||(c=!0,i[o]={status:"rejected",reason:t},--a||r(i))}))})),--a||r(i)}));return s.error&&a(s.value),n.promise}})},function(t,e,n){"use strict";var r=n(8),o=n(12),i=n(7),u=n(19),c=n(38),a=n(18);r({target:"Promise",stat:!0},{any:function(t){var e=this,n=u.f(e),r=n.resolve,s=n.reject,f=c((function(){var n=o(e.resolve),u=[],c=0,f=1,l=!1;a(t,(function(t){var o=c++,a=!1;u.push(void 0),f++,n.call(e,t).then((function(t){a||l||(l=!0,r(t))}),(function(t){a||l||(a=!0,u[o]=t,--f||s(new(i("AggregateError"))(u,"No one promise resolved")))}))})),--f||s(new(i("AggregateError"))(u,"No one promise resolved"))}));return f.error&&s(f.value),n.promise}})},function(t,e,n){"use strict";var r=n(8),o=n(13),i=n(53),u=n(2),c=n(7),a=n(54),s=n(57),f=n(11);if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&u((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=a(this,c("Promise")),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}}),!o&&"function"==typeof i){var l=c("Promise").prototype.finally;i.prototype.finally!==l&&f(i.prototype,"finally",l,{unsafe:!0})}},function(t,e,n){"use strict";var r=n(97).charAt,o=n(17),i=n(58),u=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(t){u(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=c(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(29),o=n(22),i=function(t){return function(e,n){var i,u,c=String(o(e)),a=r(n),s=c.length;return a<0||a>=s?t?"":void 0:(i=c.charCodeAt(a))<55296||i>56319||a+1===s||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,n){"use strict";var r=n(59).IteratorPrototype,o=n(33),i=n(15),u=n(36),c=n(14),a=function(){return this};t.exports=function(t,e,n){var s=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),u(t,s,!1,!0),c[s]=a,t}},function(t,e,n){var r=n(0),o=n(100),i=n(101),u=n(5),c=n(1),a=c("iterator"),s=c("toStringTag"),f=i.values;for(var l in o){var p=r[l],v=p&&p.prototype;if(v){if(v[a]!==f)try{u(v,a,f)}catch(t){v[a]=f}if(v[s]||u(v,s,l),o[l])for(var h in i)if(v[h]!==i[h])try{u(v,h,i[h])}catch(t){v[h]=i[h]}}}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){"use strict";var r=n(16),o=n(102),i=n(14),u=n(17),c=n(58),a=u.set,s=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){a(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){var r=n(1),o=n(33),i=n(10),u=r("unscopables"),c=Array.prototype;null==c[u]&&i.f(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,c)}a((r=r.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};e.__esModule=!0,e.VideoUploader=void 0;var i=function(){function t(t){this.currentChunk=0,this.onProgressCallbacks=[],this.headers={};var e=t.apiHost||"ws.api.video";if(!t.file)throw new Error("'file' is missing");if(t.hasOwnProperty("uploadToken")){var n=t;n.videoId&&(this.videoId=n.videoId),this.uploadEndpoint="https://"+e+"/upload?token="+n.uploadToken}else{if(!t.hasOwnProperty("accessToken"))throw new Error("You must provide either an accessToken or an uploadToken");var r=t;if(!r.videoId)throw new Error("'videoId' is missing");this.uploadEndpoint="https://"+e+"/videos/"+r.videoId+"/source",this.headers.Authorization="Bearer "+r.accessToken}this.chunkSize=t.chunkSize||1048576,this.retries=t.retries||5,this.file=t.file,this.fileSize=this.file.size,this.fileName=this.file.name,this.chunksCount=Math.ceil(this.fileSize/this.chunkSize)}return t.prototype.onProgress=function(t){this.onProgressCallbacks.push(t)},t.prototype.upload=function(){var t=this;return new Promise((function(e,n){return r(t,void 0,void 0,(function(){var t,r,i;return o(this,(function(o){switch(o.label){case 0:r=0,o.label=1;case 1:if(!(this.currentChunk<this.chunksCount))return[3,7];o.label=2;case 2:return o.trys.push([2,4,,6]),[4,this.uploadCurrentChunk()];case 3:return t=o.sent(),this.videoId=t.videoId,this.currentChunk++,[3,6];case 4:return i=o.sent(),r>=this.retries?(n(i),[3,7]):[4,this.sleep(200+500*r)];case 5:return o.sent(),r++,[3,6];case 6:return[3,1];case 7:return e(t),[2]}}))}))}))},t.prototype.sleep=function(t){return new Promise((function(e,n){setTimeout((function(){return e()}),t)}))},t.prototype.createFormData=function(t,e){var n=this.file.slice(t,e),r=new FormData;return this.videoId&&r.append("videoId",this.videoId),r.append("file",n,this.fileName),r},t.prototype.uploadCurrentChunk=function(){var t=this;return new Promise((function(e,n){var r=t.currentChunk*t.chunkSize,o=(t.currentChunk+1)*t.chunkSize,i=o>t.fileSize?t.fileSize:o,u="bytes "+r+"-"+(i-1)+"/"+t.fileSize,c=new window.XMLHttpRequest;c.open("POST",""+t.uploadEndpoint,!0),c.setRequestHeader("Content-Range",u);for(var a=0,s=Object.keys(t.headers);a<s.length;a++){var f=s[a];c.setRequestHeader(f,t.headers[f])}c.onreadystatechange=function(t){4===c.readyState&&c.status>=400&&n({status:c.status,message:c.response})},c.onload=function(t){return e(JSON.parse(c.response))},c.onprogress=function(e){return t.onProgressCallbacks.forEach((function(n){return n({uploadedBytes:e.loaded+r,totalBytes:t.fileSize,chunksCount:t.chunksCount,chunksBytes:t.chunkSize,currentChunk:t.currentChunk+1,currentChunkUploadedBytes:e.loaded})}))},c.send(t.createFormData(r,i))}))},t}();e.VideoUploader=i}])}));
interface OptionsWithUploadToken extends Options {
uploadToken: string;
videoId?: string;
}

@@ -4,0 +5,0 @@ interface OptionsWithAccessToken extends Options {

{
"name": "@api.video/video-uploader",
"version": "0.0.2",
"version": "0.0.3",
"description": "api.video video uploader",

@@ -5,0 +5,0 @@ "repository": {

@@ -23,3 +23,3 @@ ![](https://github.com/apivideo/API_OAS_file/blob/master/apivideo_banner.png)

var uploader = new VideoUploader("#target", {
var uploader = new VideoUploader({
file: files[0],

@@ -44,3 +44,3 @@ uploadToken: "YOUR_DELEGATED_TOKEN"

const uploader = new VideoUploader("#target", {
const uploader = new VideoUploader({
file: files[0],

@@ -91,6 +91,7 @@ uploadToken: "YOUR_DELEGATED_TOKEN"

| Option name | Mandatory | Type | Description |
| ----------------------------: | --------- | ------ | ----------------- |
| uploadToken | **yes** | string | your upload token |
| _common options (see bellow)_ | | | |
| Option name | Mandatory | Type | Description |
| ----------------------------: | --------- | ------ | ----------------------- |
| uploadToken | **yes** | string | your upload token |
| videoId | no | string | id of an existing video |
| _common options (see bellow)_ | | | |

@@ -97,0 +98,0 @@ ### Using an access token (discouraged):

interface OptionsWithUploadToken extends Options {
uploadToken: string;
videoId?: string;
}

@@ -50,2 +51,5 @@ interface OptionsWithAccessToken extends Options {

const optionsWithUploadToken = options as OptionsWithUploadToken;
if (optionsWithUploadToken.videoId) {
this.videoId = optionsWithUploadToken.videoId;
}
this.uploadEndpoint = `https://${apiHost}/upload?token=${optionsWithUploadToken.uploadToken}`;

@@ -52,0 +56,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc