!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}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=83)}([function(t,e,n){(function(e){var n="object",r=function(t){return t&&t.Math==Math&&t};t.exports=r(typeof globalThis==n&&globalThis)||r(typeof window==n&&window)||r(typeof self==n&&self)||r(typeof e==n&&e)||Function("return this")()}).call(this,n(34))},function(t,e,n){var r=n(0),o=n(27),i=n(50),s=n(89),a=r.Symbol,c=o("wks");t.exports=function(t){return c[t]||(c[t]=s&&a[t]||(s?a:i)("Symbol."+t))}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(10);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){"use strict";var r=n(26),o=n(100),i=n(22),s=n(16),a=n(66),c=s.set,u=s.getterFor("Array Iterator");t.exports=a(Array,"Array",function(t,e){c(this,{type:"Array Iterator",target:r(t),index:0,kind:e})},function(){var t=u(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){"use strict";var r=n(72),o=n(117),i=Object.prototype.toString;function s(t){return"[object Array]"===i.call(t)}function a(t){return null!==t&&"object"==typeof t}function c(t){return"[object Function]"===i.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),s(t))for(var n=0,r=t.length;ns;){var a,c,u,l=r[s++],p=i?l.ok:l.fail,f=l.resolve,h=l.reject,d=l.domain;try{p?(i||(2===e.rejection&&Y(t,e),e.rejection=1),!0===p?a=o:(d&&d.enter(),a=p(o),d&&(d.exit(),u=!0)),a===l.promise?h(M("Promise-chain cycle")):(c=V(a))?c.call(a,f,h):f(a)):h(o)}catch(t){d&&!u&&d.exit(),h(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&K(t,e)})}},H=function(t,e,n){var r,o;G?((r=R.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},(o=c["on"+t])?o(r):"unhandledrejection"===t&&j("Unhandled promise rejection",n)},K=function(t,e){y.call(c,function(){var n,r=e.value;if(Z(e)&&(n=S(function(){W?$.emit("unhandledRejection",r,t):H("unhandledrejection",t,r)}),e.rejection=W||Z(e)?2:1,n.error))throw n.value})},Z=function(t){return 1!==t.rejection&&!t.parent},Y=function(t,e){y.call(c,function(){W?$.emit("rejectionHandled",t):H("rejectionhandled",t,e.value)})},Q=function(t,e,n,r){return function(o){t(e,n,o,r)}},tt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,X(t,e,!0))},et=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw M("Promise can't be resolved itself");var o=V(n);o?x(function(){var r={done:!1};try{o.call(n,Q(et,t,r,e),Q(tt,t,r,e))}catch(n){tt(t,r,n,e)}}):(e.value=n,e.state=1,X(t,e,!1))}catch(n){tt(t,{done:!1},n,e)}}};q&&(N=function(t){b(this,N,P),d(t),r.call(this);var e=C(this);try{t(Q(et,this,e),Q(tt,this,e))}catch(t){tt(this,e,t)}},(r=function(t){F(this,{type:P,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=l(N.prototype,{then:function(t,e){var n=_(this),r=z(w(this,N));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=W?$.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&X(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=C(t);this.promise=t,this.resolve=Q(et,t,e),this.reject=Q(tt,t,e)},k.f=z=function(t){return t===N||t===i?new o(t):U(t)},a||"function"!=typeof D||s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return O(N,D.apply(c,arguments))}})),s({global:!0,wrap:!0,forced:q},{Promise:N}),p(N,P,!1,!0),f(P),i=u.Promise,s({target:P,stat:!0,forced:q},{reject:function(t){var e=z(this);return e.reject.call(void 0,t),e.promise}}),s({target:P,stat:!0,forced:a||q},{resolve:function(t){return O(a&&this===i?N:this,t)}}),s({target:P,stat:!0,forced:J},{all:function(t){var e=this,n=z(e),r=n.resolve,o=n.reject,i=S(function(){var n=d(e.resolve),i=[],s=0,a=1;m(t,function(t){var c=s++,u=!1;i.push(void 0),a++,n.call(e,t).then(function(t){u||(u=!0,i[c]=t,--a||r(i))},o)}),--a||r(i)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=z(e),r=n.reject,o=S(function(){var o=d(e.resolve);m(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(2);t.exports=!r(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(9),o=n(13),i=n(25);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,n){var r=n(0),o=n(35).f,i=n(11),s=n(15),a=n(38),c=n(51),u=n(55);t.exports=function(t,e){var n,l,p,f,h,d=t.target,b=t.global,g=t.stat;if(n=b?r:g?r[d]||a(d,{}):(r[d]||{}).prototype)for(l in e){if(f=e[l],p=t.noTargetGet?(h=o(n,l))&&h.value:n[l],!u(b?l:d+(g?".":"#")+l,t.forced)&&void 0!==p){if(typeof f==typeof p)continue;c(f,p)}(t.sham||p&&p.sham)&&i(f,"sham",!0),s(n,l,f,t)}}},function(t,e,n){var r=n(9),o=n(48),i=n(3),s=n(36),a=Object.defineProperty;e.f=r?a:function(t,e,n){if(i(t),e=s(e,!0),i(n),o)try{return a(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){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(0),o=n(27),i=n(11),s=n(6),a=n(38),c=n(49),u=n(16),l=u.get,p=u.enforce,f=String(c).split("toString");o("inspectSource",function(t){return c.call(t)}),(t.exports=function(t,e,n,o){var c=!!o&&!!o.unsafe,u=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof e||s(n,"name")||i(n,"name",e),p(n).source=f.join("string"==typeof e?e:"")),t!==r?(c?!l&&t[e]&&(u=!0):delete t[e],u?t[e]=n:i(t,e,n)):u?t[e]=n:a(e,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&l(this).source||c.call(this)})},function(t,e,n){var r,o,i,s=n(84),a=n(0),c=n(10),u=n(11),l=n(6),p=n(39),f=n(40),h=a.WeakMap;if(s){var d=new h,b=d.get,g=d.has,m=d.set;r=function(t,e){return m.call(d,t,e),e},o=function(t){return b.call(d,t)||{}},i=function(t){return g.call(d,t)}}else{var v=p("state");f[v]=!0,r=function(t,e){return u(t,v,e),e},o=function(t){return l(t,v)?t[v]:{}},i=function(t){return l(t,v)}}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(!c(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){n(4),n(8),n(109),n(7),(()=>{const e=new class{constructor(){const t=n(114),e=n(115);function r(t){e.defaults.headers.delete["X-CSRFToken"]=t,e.defaults.headers.patch["X-CSRFToken"]=t,e.defaults.headers.post["X-CSRFToken"]=t,e.defaults.headers.put["X-CSRFToken"]=t,e.defaults.withCredentials=!0}async function o(t=""){const{backendAPI:n}=window.cvat.config;let r=null;try{r=await e.get(`${n}/tasks?${t}`,{proxy:window.cvat.config.proxy})}catch(t){const e=t.response?t.response.status:t.code;throw new window.cvat.exceptions.ServerError("Could not get tasks from a server",e)}return r.data.results.count=r.data.count,r.data.results}async function i(t){const{backendAPI:n}=window.cvat.config;try{await e.delete(`${n}/tasks/${t}`)}catch(t){const e=t.response?t.response.status:t.code;throw new window.cvat.exceptions.ServerError("Could not delete the task from the server",e)}}const s=t.get("csrftoken");s&&r(s),Object.defineProperties(this,Object.freeze({server:{value:Object.freeze({about:async function(){const{backendAPI:t}=window.cvat.config;let n=null;try{n=await e.get(`${t}/server/about`,{proxy:window.cvat.config.proxy})}catch(t){const e=t.response?t.response.status:t.code;throw new window.cvat.exceptions.ServerError('Could not get "about" information from the server',e)}return n.data},share:async function(t){const{backendAPI:n}=window.cvat.config;t=encodeURIComponent(t);let r=null;try{r=await e.get(`${n}/server/share?directory=${t}`,{proxy:window.cvat.config.proxy})}catch(t){const e=t.response?t.response.status:t.code;throw new window.cvat.exceptions.ServerError('Could not get "share" information from the server',e)}return r.data},exception:async function(t){const{backendAPI:n}=window.cvat.config;try{await e.post(`${n}/server/exception`,JSON.stringify(t),{proxy:window.cvat.config.proxy,headers:{"Content-Type":"application/json"}})}catch(t){const e=t.response?t.response.status:t.code;throw new window.cvat.exceptions.ServerError("Could not send an exception to the server",e)}},login:async function(n,o){function i(n){if(n.headers["set-cookie"]){let o="";for(let e of n.headers["set-cookie"]){[e]=e.split(";");const n=e.split("=")[0],i=e.split("=")[1];"csrftoken"===n&&r(i),t.set(n,i),o+=`${e};`}e.defaults.headers.common.Cookie=o}else{let e=n.data.csrf;if(e)r(e),t.set("csrftoken",e);else{if(!(e=t.get("csrftoken")))throw new window.cvat.exceptions.ScriptingError("An environment has been detected as a browser, but CSRF token has not been found in cookies");r(e)}}}const s=window.cvat.config.backendAPI.slice(0,-7);let a=null;try{a=await e.get(`${s}/auth/csrf`,{proxy:window.cvat.config.proxy})}catch(t){const e=t.response?t.response.status:t.code;throw new window.cvat.exceptions.ServerError("Could not get CSRF token from a server",e)}i(a);const c=[`${encodeURIComponent("username")}=${encodeURIComponent(n)}`,`${encodeURIComponent("password")}=${encodeURIComponent(o)}`].join("&").replace(/%20/g,"+");let u=null;try{u=await e.post(`${s}/auth/login`,c,{"Content-Type":"application/x-www-form-urlencoded",proxy:window.cvat.config.proxy,maxRedirects:0})}catch(t){if(302!==t.response.status){const e=t.response?t.response.status:t.code;throw new window.cvat.exceptions.ServerError("Could not login on a server",e)}u=t.response}if(u.data.includes("didn't match"))throw new window.cvat.exceptions.ServerError("The pair login/password is invalid",403);i(u)},logout:async function(){const t=window.cvat.config.backendAPI.slice(0,-7);try{await e.get(`${t}/auth/logout`,{proxy:window.cvat.config.proxy})}catch(t){const e=t.response?t.response.status:t.code;throw new window.cvat.exceptions.ServerError("Could not logout from the server",e)}}}),writable:!1},tasks:{value:Object.freeze({getTasks:o,saveTask:async function(t,n){const{backendAPI:r}=window.cvat.config;try{await e.patch(`${r}/tasks/${t}`,JSON.stringify(n),{proxy:window.cvat.config.proxy,headers:{"Content-Type":"application/json"}})}catch(t){const e=t.response?t.response.status:t.code;throw new window.cvat.exceptions.ServerError("Could not save the task on the server",e)}},createTask:async function(t,n,r){const{backendAPI:s}=window.cvat.config,a=new window.FormData;for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t))for(let e=0;e{setTimeout(async function i(){try{const a=await e.get(`${s}/tasks/${t}/status`);["Queued","Started"].includes(a.data.state)?(""!==a.data.message&&r(a.data.message),setTimeout(i,1e3)):"Finished"===a.data.state?n():"Failed"===a.data.state?o(new window.cvat.exceptions.ServerError("Could not create the task on the server",400)):o(new window.cvat.exceptions.ServerError(`Unknown task state has been recieved: ${a.data.state}`,500))}catch(t){const e=t.response?t.response.status:t.code;o(new window.cvat.exceptions.ServerError("Data uploading error occured",e))}},1e3)})}(c.data.id)}catch(t){throw await i(c.data.id),t}return(await o(`?id=${c.id}`))[0]},deleteTask:i}),writable:!1},jobs:{value:Object.freeze({getJob:async function(t){const{backendAPI:n}=window.cvat.config;let r=null;try{r=await e.get(`${n}/jobs/${t}`,{proxy:window.cvat.config.proxy})}catch(t){const e=t.response?t.response.status:t.code;throw new window.cvat.exceptions.ServerError("Could not get jobs from a server",e)}return r.data},saveJob:async function(t,n){const{backendAPI:r}=window.cvat.config;try{await e.patch(`${r}/jobs/${t}`,JSON.stringify(n),{proxy:window.cvat.config.proxy,headers:{"Content-Type":"application/json"}})}catch(t){const e=t.response?t.response.status:t.code;throw new window.cvat.exceptions.ServerError("Could not save the job on the server",e)}}}),writable:!1},users:{value:Object.freeze({getUsers:async function(){const{backendAPI:t}=window.cvat.config;let n=null;try{n=await e.get(`${t}/users`,{proxy:window.cvat.config.proxy})}catch(t){const e=t.response?t.response.status:t.code;throw new window.cvat.exceptions.ServerError("Could not get users from the server",e)}return n.data.results},getSelf:async function(){const{backendAPI:t}=window.cvat.config;let n=null;try{n=await e.get(`${t}/users/self`,{proxy:window.cvat.config.proxy})}catch(t){const e=t.response?t.response.status:t.code;throw new window.cvat.exceptions.ServerError("Could not get users from the server",e)}return n.data}}),writable:!1},frames:{value:Object.freeze({getData:async function(t,n){const{backendAPI:r}=window.cvat.config;let o=null;try{o=await e.get(`${r}/tasks/${t}/frames/${n}`,{proxy:window.cvat.config.proxy,responseType:"blob"})}catch(e){const r=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError(`Could not get frame ${n} for the task ${t} from the server`,r)}return o.data},getMeta:async function(t){const{backendAPI:n}=window.cvat.config;let r=null;try{r=await e.get(`${n}/tasks/${t}/frames/meta`,{proxy:window.cvat.config.proxy})}catch(e){const n=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError(`Could not get frame meta info for the task ${t} from the server`,n)}return r.data}}),writable:!1},annotations:{value:Object.freeze({updateAnnotations:async function(t,n,r,o){const{backendAPI:i}=window.cvat.config;let s=null,a=null;"PUT"===o.toUpperCase()?(s=e.put.bind(e),a=`${i}/${t}s/${n}/annotations`):(s=e.patch.bind(e),a=`${i}/${t}s/${n}/annotations?action=${o}`);let c=null;try{c=await s(a,JSON.stringify(r),{proxy:window.cvat.config.proxy,headers:{"Content-Type":"application/json"}})}catch(e){const r=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError(`Could not updated annotations for the ${t} ${n} on the server`,r)}return c.data},getAnnotations:async function(t,n){const{backendAPI:r}=window.cvat.config;let o=null;try{o=await e.get(`${r}/${t}s/${n}/annotations`,{proxy:window.cvat.config.proxy})}catch(e){const r=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError(`Could not get annotations for the ${t} ${n} from the server`,r)}return o.data},dumpAnnotations:async function(t,n,r){const{backendAPI:o}=window.cvat.config,i=n.replace(/\//g,"_");let s=`${o}/tasks/${t}/annotations/${i}?dump_format=${r}`;return new Promise((n,r)=>{setTimeout(async function o(){try{202===(await e.get(`${s}`,{proxy:window.cvat.config.proxy})).status?setTimeout(o,3e3):n(s=`${s}&action=download`)}catch(e){const n=e.response?e.response.status:e.code,o=new window.cvat.exceptions.ServerError(`Could not dump annotations for the task ${t} from the server`,n);r(o)}})})},uploadAnnotations:async function(t,n,r,o){const{backendAPI:i}=window.cvat.config;let s=new FormData;return s.append("annotation_file",r),new Promise((r,a)=>{setTimeout(async function c(){try{202===(await e.post(`${i}/${t}s/${n}/annotations?upload_format=${o}`,s,{proxy:window.cvat.config.proxy})).status?(s=new FormData,setTimeout(c,3e3)):r()}catch(e){const r=e.response?e.response.status:e.code,o=new window.cvat.exceptions.ServerError(`Could not upload annotations for the ${t} ${n}`,r);a(o)}})})}}),writable:!1}}))}};t.exports=e})()},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=!1},function(t,e,n){var r=n(13).f,o=n(6),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){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e){t.exports={}},function(t,e,n){n(99),n(4),n(8),n(7),(()=>{const{PluginError:e}=n(70),r=[];t.exports=class{static async apiWrapper(t,...n){const r=await window.cvat.plugins.list.implementation();for(const o of r){const r=o.functions.filter(e=>e.callback===t)[0];if(r&&r.enter)try{await r.enter.call(this,o,...n)}catch(t){throw t instanceof e?t:new e(`Exception in plugin ${o.name}: ${t.toString()}`)}}let o=await t.implementation.call(this,...n);for(const i of r){const r=i.functions.filter(e=>e.callback===t)[0];if(r&&r.leave)try{o=await r.leave.call(this,i,o,...n)}catch(t){throw t instanceof e?t:new e(`Exception in plugin ${i.name}: ${t.toString()}`)}}return o}static async register(t){const n=[];if("object"!=typeof t)throw new e(`Plugin should be an object, but got "${typeof t}"`);if(!("name"in t)||"string"!=typeof t.name)throw new e('Plugin must contain a "name" field and it must be a string');if(!("description"in t)||"string"!=typeof t.description)throw new e('Plugin must contain a "description" field and it must be a string');if("functions"in t)throw new e('Plugin must not contain a "functions" field');!function t(e,r){const o={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&("object"==typeof e[n]?Object.prototype.hasOwnProperty.call(r,n)&&t(e[n],r[n]):["enter","leave"].includes(n)&&"function"==typeof r&&(e[n],1)&&(o.callback=r,o[n]=e[n]));Object.keys(o).length&&n.push(o)}(t,{cvat:window.cvat}),Object.defineProperty(t,"functions",{value:n,writable:!1}),r.push(t)}static async list(){return r}}})()},function(t,e,n){var r=n(18);t.exports=function(t){return Object(r(t))}},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(47),o=n(18);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(0),o=n(38),i=n(19),s=r["__core-js_shared__"]||o("__core-js_shared__",{});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.1.3",mode:i?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(52),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(30),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},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,n){var r=n(21);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(92),o=n(22),i=n(1)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e){(()=>{t.exports={isBoolean:function(t){return"boolean"==typeof t},isInteger:function(t){return"number"==typeof t&&Number.isInteger(t)},isEnum:function(t){for(const e in this)if(Object.prototype.hasOwnProperty.call(this,e)&&this[e]===t)return!0;return!1},isString:function(t){return"string"==typeof t},checkFilter:function(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(!(n in e))throw new window.cvat.exceptions.ArgumentError(`Unsupported filter property has been recieved: "${n}"`);if(!e[n](t[n]))throw new window.cvat.exceptions.ArgumentError(`Received filter property "${n}" is not satisfied for checker`)}},checkObjectType:function(t,e,n,r){if(n){if(typeof e!==n){if("integer"===n&&Number.isInteger(e))return;throw new window.cvat.exceptions.ArgumentError(`"${t}" is expected to be "${n}", but "${typeof e}" has been got.`)}}else if(r&&!(e instanceof r)){if(void 0!==e)throw new window.cvat.exceptions.ArgumentError(`"${t}" is expected to be ${r.name}, but `+`"${e.constructor.name}" has been got`);throw new window.cvat.exceptions.ArgumentError(`"${t}" is expected to be ${r.name}, but "undefined" has been got.`)}}}})()},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){var r=n(9),o=n(46),i=n(25),s=n(26),a=n(36),c=n(6),u=n(48),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=s(t),e=a(e,!0),u)try{return l(t,e)}catch(t){}if(c(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,n){var r=n(10);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(0),o=n(10),i=r.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},function(t,e,n){var r=n(0),o=n(11);t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(27),o=n(50),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports={}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},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(30),o=n(18),i=function(t){return function(e,n){var i,s,a=String(o(e)),c=r(n),u=a.length;return c<0||c>=u?t?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):i:t?a.slice(c,c+2):s-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,n){"use strict";(function(e){var r=n(5),o=n(120),i={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,c={adapter:("undefined"!=typeof XMLHttpRequest?a=n(73):void 0!==e&&(a=n(73)),a),transformRequest:[function(t,e){return o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(t){c.headers[t]={}}),r.forEach(["post","put","patch"],function(t){c.headers[t]=r.merge(i)}),t.exports=c}).call(this,n(119))},function(t,e,n){"use strict";n(12)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},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(14),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(9),o=n(2),i=n(37);t.exports=!r&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(27);t.exports=r("native-function-to-string",Function.toString)},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(6),o=n(85),i=n(35),s=n(13);t.exports=function(t,e){for(var n=o(e),a=s.f,c=i.f,u=0;uc;)r(a,n=e[c++])&&(~i(u,n)||u.push(n));return u}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(2),o=/#|\.prototype\./,i=function(t,e){var n=a[s(t)];return n==u||n!=c&&("function"==typeof e?r(e):!!e)},s=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";t.exports=i},function(t,e,n){var r=n(15);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(1),o=n(22),i=r("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||s[i]===t)}},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r,o,i,s=n(0),a=n(2),c=n(14),u=n(31),l=n(60),p=n(37),f=s.location,h=s.setImmediate,d=s.clearImmediate,b=s.process,g=s.MessageChannel,m=s.Dispatch,v=0,w={},y=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},x=function(t){return function(){y(t)}},O=function(t){y(t.data)},j=function(t){s.postMessage(t+"",f.protocol+"//"+f.host)};h&&d||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return w[++v]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(v),v},d=function(t){delete w[t]},"process"==c(b)?r=function(t){b.nextTick(x(t))}:m&&m.now?r=function(t){m.now(x(t))}:g?(i=(o=new g).port2,o.port1.onmessage=O,r=u(i.postMessage,i,1)):!s.addEventListener||"function"!=typeof postMessage||s.importScripts||a(j)?r="onreadystatechange"in p("script")?function(t){l.appendChild(p("script")).onreadystatechange=function(){l.removeChild(this),y(t)}}:function(t){setTimeout(x(t),0)}:(r=j,s.addEventListener("message",O,!1))),t.exports={set:h,clear:d}},function(t,e,n){var r=n(28);t.exports=r("document","documentElement")},function(t,e,n){var r=n(28);t.exports=r("navigator","userAgent")||""},function(t,e,n){"use strict";var r=n(21),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(3),o=n(64),i=n(41),s=n(40),a=n(60),c=n(37),u=n(39)("IE_PROTO"),l=function(){},p=function(){var t,e=c("iframe"),n=i.length;for(e.style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("