|
|
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=79)}([function(e,t,r){(function(t){var r="object",n=function(e){return e&&e.Math==Math&&e};e.exports=n(typeof globalThis==r&&globalThis)||n(typeof window==r&&window)||n(typeof self==r&&self)||n(typeof t==r&&t)||Function("return this")()}).call(this,r(33))},function(e,t,r){var n=r(0),o=r(24),i=r(48),a=r(85),s=n.Symbol,c=o("wks");e.exports=function(e){return c[e]||(c[e]=a&&s[e]||(a?s:i)("Symbol."+e))}},function(e,t,r){var n=r(7);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,r){"use strict";var n=r(70),o=r(113),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e){return null!==e&&"object"==typeof e}function c(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:o,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function e(){var t={};function r(r,n){"object"==typeof t[n]&&"object"==typeof r?t[n]=e(t[n],r):t[n]=r}for(var n=0,o=arguments.length;n<o;n++)u(arguments[n],r);return t},extend:function(e,t,r){return u(t,function(t,o){e[o]=r&&"function"==typeof t?n(t,r):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(4);e.exports=!n(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){var n=r(6),o=r(12),i=r(22);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){"use strict";var n=r(23),o=r(96),i=r(20),a=r(16),s=r(64),c=a.set,u=a.getterFor("Array Iterator");e.exports=s(Array,"Array",function(e,t){c(this,{type:"Array Iterator",target:n(e),index:0,kind:t})},function(){var e=u(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,r){"use strict";var n,o,i,a=r(11),s=r(18),c=r(0),u=r(50),l=r(54),f=r(19),p=r(86),h=r(7),d=r(28),v=r(41),g=r(14),m=r(87),b=r(89),w=r(90),y=r(57).set,x=r(91),S=r(92),O=r(93),j=r(60),k=r(94),E=r(59),A=r(16),T=r(53),P=r(1)("species"),I="Promise",R=A.get,C=A.set,L=A.getterFor(I),N=c.Promise,$=c.TypeError,_=c.document,M=c.process,F=c.fetch,U=M&&M.versions,B=U&&U.v8||"",z=j.f,D=z,W="process"==g(M),q=!!(_&&_.createEvent&&c.dispatchEvent),G=T(I,function(){var e=N.resolve(1),t=function(){},r=(e.constructor={})[P]=function(e){e(t,t)};return!((W||"function"==typeof PromiseRejectionEvent)&&(!s||e.finally)&&e.then(t)instanceof r&&0!==B.indexOf("6.6")&&-1===E.indexOf("Chrome/66"))}),J=G||!b(function(e){N.all(e).catch(function(){})}),V=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},X=function(e,t,r){if(!t.notified){t.notified=!0;var n=t.reactions;x(function(){for(var o=t.value,i=1==t.state,a=0;n.length>a;){var s,c,u,l=n[a++],f=i?l.ok:l.fail,p=l.resolve,h=l.reject,d=l.domain;try{f?(i||(2===t.rejection&&Z(e,t),t.rejection=1),!0===f?s=o:(d&&d.enter(),s=f(o),d&&(d.exit(),u=!0)),s===l.promise?h($("Promise-chain cycle")):(c=V(s))?c.call(s,p,h):p(s)):h(o)}catch(e){d&&!u&&d.exit(),h(e)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&H(e,t)})}},K=function(e,t,r){var n,o;q?((n=_.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},(o=c["on"+e])?o(n):"unhandledrejection"===e&&O("Unhandled promise rejection",r)},H=function(e,t){y.call(c,function(){var r,n=t.value;if(Y(t)&&(r=k(function(){W?M.emit("unhandledRejection",n,e):K("unhandledrejection",e,n)}),t.rejection=W||Y(t)?2:1,r.error))throw r.value})},Y=function(e){return 1!==e.rejection&&!e.parent},Z=function(e,t){y.call(c,function(){W?M.emit("rejectionHandled",e):K("rejectionhandled",e,t.value)})},Q=function(e,t,r,n){return function(o){e(t,r,o,n)}},ee=function(e,t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,X(e,t,!0))},te=function(e,t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(e===r)throw $("Promise can't be resolved itself");var o=V(r);o?x(function(){var n={done:!1};try{o.call(r,Q(te,e,n,t),Q(ee,e,n,t))}catch(r){ee(e,n,r,t)}}):(t.value=r,t.state=1,X(e,t,!1))}catch(r){ee(e,{done:!1},r,t)}}};G&&(N=function(e){v(this,N,I),d(e),n.call(this);var t=R(this);try{e(Q(te,this,t),Q(ee,this,t))}catch(e){ee(this,t,e)}},(n=function(e){C(this,{type:I,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=l(N.prototype,{then:function(e,t){var r=L(this),n=z(w(this,N));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=W?M.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&X(this,r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n,t=R(e);this.promise=e,this.resolve=Q(te,e,t),this.reject=Q(ee,e,t)},j.f=z=function(e){return e===N||e===i?new o(e):D(e)},s||"function"!=typeof F||a({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return S(N,F.apply(c,arguments))}})),a({global:!0,wrap:!0,forced:G},{Promise:N}),f(N,I,!1,!0),p(I),i=u.Promise,a({target:I,stat:!0,forced:G},{reject:function(e){var t=z(this);return t.reject.call(void 0,e),t.promise}}),a({target:I,stat:!0,forced:s||G},{resolve:function(e){return S(s&&this===i?N:this,e)}}),a({target:I,stat:!0,forced:J},{all:function(e){var t=this,r=z(t),n=r.resolve,o=r.reject,i=k(function(){var r=d(t.resolve),i=[],a=0,s=1;m(e,function(e){var c=a++,u=!1;i.push(void 0),s++,r.call(t,e).then(function(e){u||(u=!0,i[c]=e,--s||n(i))},o)}),--s||n(i)});return i.error&&o(i.value),r.promise},race:function(e){var t=this,r=z(t),n=r.reject,o=k(function(){var o=d(t.resolve);m(e,function(e){o.call(t,e).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}})},function(e,t,r){var n=r(0),o=r(34).f,i=r(8),a=r(15),s=r(37),c=r(49),u=r(53);e.exports=function(e,t){var r,l,f,p,h,d=e.target,v=e.global,g=e.stat;if(r=v?n:g?n[d]||s(d,{}):(n[d]||{}).prototype)for(l in t){if(p=t[l],f=e.noTargetGet?(h=o(r,l))&&h.value:r[l],!u(v?l:d+(g?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;c(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(r,l,p,e)}}},function(e,t,r){var n=r(6),o=r(46),i=r(2),a=r(35),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(i(e),t=a(t,!0),i(r),o)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(0),o=r(100),i=r(9),a=r(8),s=r(1),c=s("iterator"),u=s("toStringTag"),l=i.values;for(var f in o){var p=n[f],h=p&&p.prototype;if(h){if(h[c]!==l)try{a(h,c,l)}catch(e){h[c]=l}if(h[u]||a(h,u,f),o[f])for(var d in i)if(h[d]!==i[d])try{a(h,d,i[d])}catch(e){h[d]=i[d]}}}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(0),o=r(24),i=r(8),a=r(5),s=r(37),c=r(47),u=r(16),l=u.get,f=u.enforce,p=String(c).split("toString");o("inspectSource",function(e){return c.call(e)}),(e.exports=function(e,t,r,o){var c=!!o&&!!o.unsafe,u=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;"function"==typeof r&&("string"!=typeof t||a(r,"name")||i(r,"name",t),f(r).source=p.join("string"==typeof t?t:"")),e!==n?(c?!l&&e[t]&&(u=!0):delete e[t],u?e[t]=r:i(e,t,r)):u?e[t]=r:s(t,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&l(this).source||c.call(this)})},function(e,t,r){var n,o,i,a=r(80),s=r(0),c=r(7),u=r(8),l=r(5),f=r(38),p=r(39),h=s.WeakMap;if(a){var d=new h,v=d.get,g=d.has,m=d.set;n=function(e,t){return m.call(d,e,t),t},o=function(e){return v.call(d,e)||{}},i=function(e){return g.call(d,e)}}else{var b=f("state");p[b]=!0,n=function(e,t){return u(e,b,t),t},o=function(e){return l(e,b)?e[b]:{}},i=function(e){return l(e,b)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=!1},function(e,t,r){var n=r(12).f,o=r(5),i=r(1)("toStringTag");e.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},function(e,t){e.exports={}},function(e,t,r){r(95),r(9),r(10),r(13),(()=>{const{PluginError:t}=r(68),n=[];e.exports=class{static async apiWrapper(e,...r){const n=await window.cvat.plugins.list.implementation();for(const o of n){const n=o.functions.filter(t=>t.callback===e)[0];if(n&&n.enter)try{await n.enter.call(this,o,...r)}catch(e){throw e instanceof t?e:new t(`Exception in plugin ${o.name}: ${e.toString()}`)}}let o=await e.implementation.call(this,...r);for(const i of n){const n=i.functions.filter(t=>t.callback===e)[0];if(n&&n.leave)try{o=await n.leave.call(this,i,o,...r)}catch(e){throw e instanceof t?e:new t(`Exception in plugin ${i.name}: ${e.toString()}`)}}return o}static async register(e){const r=[];if("object"!=typeof e)throw new t(`Plugin should be an object, but got "${typeof e}"`);if(!("name"in e)||"string"!=typeof e.name)throw new t('Plugin must contain a "name" field and it must be a string');if(!("description"in e)||"string"!=typeof e.description)throw new t('Plugin must contain a "description" field and it must be a string');if("functions"in e)throw new t('Plugin must not contain a "functions" field');!function e(t,n){const o={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&("object"==typeof t[r]?Object.prototype.hasOwnProperty.call(n,r)&&e(t[r],n[r]):["enter","leave"].includes(r)&&"function"==typeof n&&(t[r],1)&&(o.callback=n,o[r]=t[r]));Object.keys(o).length&&r.push(o)}(e,{cvat:window.cvat}),Object.defineProperty(e,"functions",{value:r,writable:!1}),n.push(e)}static async list(){return n}}})()},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(45),o=r(17);e.exports=function(e){return n(o(e))}},function(e,t,r){var n=r(0),o=r(37),i=r(18),a=n["__core-js_shared__"]||o("__core-js_shared__",{});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.1.3",mode:i?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(50),o=r(0),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e])||i(o[e]):n[e]&&n[e][t]||o[e]&&o[e][t]}},function(e,t,r){var n=r(27),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,r){var n=r(28);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(88),o=r(20),i=r(1)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},function(e,t,r){var n=r(17);e.exports=function(e){return Object(n(e))}},function(e,t,r){r(9),r(10),r(105),r(13),(()=>{const t=new class{constructor(){const e=r(110),t=r(111);function n(e){t.defaults.headers.delete["X-CSRFToken"]=e,t.defaults.headers.patch["X-CSRFToken"]=e,t.defaults.headers.post["X-CSRFToken"]=e,t.defaults.headers.put["X-CSRFToken"]=e}async function o(e=""){const{backendAPI:r}=window.cvat.config;let n=null;try{n=await t.get(`${r}/tasks?${e}`,{proxy:window.cvat.config.proxy})}catch(e){const t=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError("Could not get tasks from a server",t)}return n.data.results.count=n.data.count,n.data.results}async function i(e){const{backendAPI:r}=window.cvat.config;try{await t.delete(`${r}/tasks/${e}`)}catch(e){const t=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError("Could not delete the task from the server",t)}}const a=e.get("csrftoken");a&&n(a),Object.defineProperties(this,Object.freeze({server:{value:Object.freeze({about:async function(){const{backendAPI:e}=window.cvat.config;let r=null;try{r=await t.get(`${e}/server/about`,{proxy:window.cvat.config.proxy})}catch(e){const t=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError('Could not get "about" information from the server',t)}return r.data},share:async function(e){const{backendAPI:r}=window.cvat.config;let n=null;try{n=await t.get(`${r}/server/share?directory=${e}`,{proxy:window.cvat.config.proxy})}catch(e){const t=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError('Could not get "share" information from the server',t)}return n.data},exception:async function(e){const{backendAPI:r}=window.cvat.config;try{await t.post(`${r}/server/exception`,JSON.stringify(e),{proxy:window.cvat.config.proxy,headers:{"Content-Type":"application/json"}})}catch(e){const t=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError("Could not send an exception to the server",t)}},login:async function(r,o){function i(r){if(r.headers["set-cookie"]){let o="";for(let t of r.headers["set-cookie"]){[t]=t.split(";");const r=t.split("=")[0],i=t.split("=")[1];"csrftoken"===r&&n(i),e.set(r,i),o+=`${t};`}t.defaults.headers.common.Cookie=o}else{const t=e.get("csrftoken");if(!t)throw new window.cvat.exceptions.ScriptingError("An environment has been detected as a browser, but CSRF token has not been found in cookies");n(t)}}const a=window.cvat.config.backendAPI.slice(0,-7);let s=null;try{s=await t.get(`${a}/auth/login`,{proxy:window.cvat.config.proxy})}catch(e){const t=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError("Could not get CSRF token from a server",t)}i(s);const c=[`${encodeURIComponent("username")}=${encodeURIComponent(r)}`,`${encodeURIComponent("password")}=${encodeURIComponent(o)}`].join("&").replace(/%20/g,"+");let u=null;try{u=await t.post(`${a}/auth/login`,c,{"Content-Type":"application/x-www-form-urlencoded",proxy:window.cvat.config.proxy,maxRedirects:0})}catch(e){if(302!==e.response.status){const t=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError("Could not login on a server",t)}u=e.response}if(u.data.includes("didn't match"))throw new window.cvat.exceptions.ServerError("The pair login/password is invalid",403);i(u)}}),writable:!1},tasks:{value:Object.freeze({getTasks:o,saveTask:async function(e,r){const{backendAPI:n}=window.cvat.config;try{await t.patch(`${n}/tasks/${e}`,JSON.stringify(r),{proxy:window.cvat.config.proxy,headers:{"Content-Type":"application/json"}})}catch(e){const t=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError("Could not save the task on the server",t)}},createTask:async function(e,r,n){const{backendAPI:a}=window.cvat.config,s=new window.FormData;for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e))for(let t=0;t<r[e].length;t++)s.append(`${e}[${t}]`,r[e][t]);let c=null;n("The task is being created on the server..");try{c=await t.post(`${a}/tasks`,JSON.stringify(e),{proxy:window.cvat.config.proxy,headers:{"Content-Type":"application/json"}})}catch(e){const t=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError("Could not put task to the server",t)}n("The data is being uploaded to the server..");try{await t.post(`${a}/tasks/${c.data.id}/data`,s,{proxy:window.cvat.config.proxy})}catch(e){i(c.data.id);const t=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError("Could not put data to the server",t)}try{await async function(e){return new Promise((r,o)=>{setTimeout(async function i(){try{const s=await t.get(`${a}/tasks/${e}/status`);["Queued","Started"].includes(s.data.state)?(""!==s.data.message&&n(s.data.message),setTimeout(i,1e3)):"Finished"===s.data.state?r():"Failed"===s.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: ${s.data.state}`,500))}catch(e){const t=e.response?e.response.status:e.code;o(new window.cvat.exceptions.ServerError("Data uploading error occured",t))}},1e3)})}(c.data.id)}catch(e){throw i(c.data.id),e}return(await o(`?id=${c.id}`))[0]},deleteTask:i}),writable:!1},jobs:{value:Object.freeze({getJob:async function(e){const{backendAPI:r}=window.cvat.config;let n=null;try{n=await t.get(`${r}/jobs/${e}`,{proxy:window.cvat.config.proxy})}catch(e){const t=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError("Could not get jobs from a server",t)}return n.data},saveJob:async function(e,r){const{backendAPI:n}=window.cvat.config;try{await t.patch(`${n}/jobs/${e}`,JSON.stringify(r),{proxy:window.cvat.config.proxy,headers:{"Content-Type":"application/json"}})}catch(e){const t=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError("Could not save the job on the server",t)}}}),writable:!1},users:{value:Object.freeze({getUsers:async function(){const{backendAPI:e}=window.cvat.config;let r=null;try{r=await t.get(`${e}/users`,{proxy:window.cvat.config.proxy})}catch(e){const t=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError("Could not get users from a server",t)}return r.data.results},getSelf:async function(){const{backendAPI:e}=window.cvat.config;let r=null;try{r=await t.get(`${e}/users/self`,{proxy:window.cvat.config.proxy})}catch(e){const t=e.response?e.response.status:e.code;throw new window.cvat.exceptions.ServerError("Could not get users from a server",t)}return r.data}}),writable:!1},frames:{value:Object.freeze({getFrame:async function(e,r){const{backendAPI:n}=window.cvat.config;let o=null;try{o=await t.get(`${n}/tasks/${e}/frames/${r}`,{proxy:window.cvat.config.proxy,responseType:"blob"})}catch(t){const n=t.response?t.response.status:t.code;throw new window.cvat.exceptions.ServerError(`Could not get frame ${r} for a task ${e} from a server`,n)}return o.data},getMeta:async function(e){const{backendAPI:r}=window.cvat.config;let n=null;try{n=await t.get(`${r}/tasks/${e}/frames/meta`,{proxy:window.cvat.config.proxy})}catch(t){const r=t.response?t.response.status:t.code;throw new window.cvat.exceptions.ServerError(`Could not get frame meta info for a task ${e} from a server`,r)}return n.data}}),writable:!1}}))}};e.exports=t})()},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var n=r(6),o=r(44),i=r(22),a=r(23),s=r(35),c=r(5),u=r(46),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=a(e),t=s(t,!0),u)try{return l(e,t)}catch(e){}if(c(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,r){var n=r(7);e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(0),o=r(7),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,r){var n=r(0),o=r(8);e.exports=function(e,t){try{o(n,e,t)}catch(r){n[e]=t}return t}},function(e,t,r){var n=r(24),o=r(48),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t){e.exports={}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},function(e,t,r){var n=r(27),o=r(17),i=function(e){return function(t,r){var i,a,s=String(o(t)),c=n(r),u=s.length;return c<0||c>=u?e?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,r){"use strict";(function(t){var n=r(3),o=r(116),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,c={adapter:("undefined"!=typeof XMLHttpRequest?s=r(71):void 0!==t&&(s=r(71)),s),transformRequest:[function(e,t){return o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){c.headers[e]={}}),n.forEach(["post","put","patch"],function(e){c.headers[e]=n.merge(i)}),e.exports=c}).call(this,r(115))},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},function(e,t,r){var n=r(4),o=r(14),i="".split;e.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t,r){var n=r(6),o=r(4),i=r(36);e.exports=!n&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(24);e.exports=n("native-function-to-string",Function.toString)},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t,r){var n=r(5),o=r(81),i=r(34),a=r(12);e.exports=function(e,t){for(var r=o(t),s=a.f,c=i.f,u=0;u<r.length;u++){var l=r[u];n(e,l)||s(e,l,c(t,l))}}},function(e,t,r){e.exports=r(0)},function(e,t,r){var n=r(5),o=r(23),i=r(83).indexOf,a=r(39);e.exports=function(e,t){var r,s=o(e),c=0,u=[];for(r in s)!n(a,r)&&n(s,r)&&u.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~i(u,r)||u.push(r));return u}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(4),o=/#|\.prototype\./,i=function(e,t){var r=s[a(e)];return r==u||r!=c&&("function"==typeof t?n(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},function(e,t,r){var n=r(15);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},function(e,t,r){var n=r(1),o=r(20),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,r){var n=r(2);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&n(i.call(e)),t}}},function(e,t,r){var n,o,i,a=r(0),s=r(4),c=r(14),u=r(29),l=r(58),f=r(36),p=a.location,h=a.setImmediate,d=a.clearImmediate,v=a.process,g=a.MessageChannel,m=a.Dispatch,b=0,w={},y=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},x=function(e){return function(){y(e)}},S=function(e){y(e.data)},O=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};h&&d||(h=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return w[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(b),b},d=function(e){delete w[e]},"process"==c(v)?n=function(e){v.nextTick(x(e))}:m&&m.now?n=function(e){m.now(x(e))}:g?(i=(o=new g).port2,o.port1.onmessage=S,n=u(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(O)?n="onreadystatechange"in f("script")?function(e){l.appendChild(f("script")).onreadystatechange=function(){l.removeChild(this),y(e)}}:function(e){setTimeout(x(e),0)}:(n=O,a.addEventListener("message",S,!1))),e.exports={set:h,clear:d}},function(e,t,r){var n=r(25);e.exports=n("document","documentElement")},function(e,t,r){var n=r(25);e.exports=n("navigator","userAgent")||""},function(e,t,r){"use strict";var n=r(28),o=function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new o(e)}},function(e,t,r){var n=r(2),o=r(62),i=r(40),a=r(39),s=r(58),c=r(36),u=r(38)("IE_PROTO"),l=function(){},f=function(){var e,t=c("iframe"),r=i.length;for(t.style.display="none",s.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),f=e.F;r--;)delete f.prototype[i[r]];return f()};e.exports=Object.create||function(e,t){var r;return null!==e?(l.prototype=n(e),r=new l,l.prototype=null,r[u]=e):r=f(),void 0===t?r:o(r,t)},a[u]=!0},function(e,t,r){var n=r(6),o=r(12),i=r(2),a=r(63);e.exports=n?Object.defineProperties:function(e,t){i(e);for(var r,n=a(t),s=n.length,c=0;s>c;)o.f(e,r=n[c++],t[r]);return e}},function(e,t,r){var n=r(51),o=r(40);e.exports=Object.keys||function(e){return n(e,o)}},function(e,t,r){"use strict";var n=r(11),o=r(65),i=r(67),a=r(98),s=r(19),c=r(8),u=r(15),l=r(1),f=r(18),p=r(20),h=r(66),d=h.IteratorPrototype,v=h.BUGGY_SAFARI_ITERATORS,g=l("iterator"),m=function(){return this};e.exports=function(e,t,r,l,h,b,w){o(r,t,l);var y,x,S,O=function(e){if(e===h&&T)return T;if(!v&&e in E)return E[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},j=t+" Iterator",k=!1,E=e.prototype,A=E[g]||E["@@iterator"]||h&&E[h],T=!v&&A||O(h),P="Array"==t&&E.entries||A;if(P&&(y=i(P.call(new e)),d!==Object.prototype&&y.next&&(f||i(y)===d||(a?a(y,d):"function"!=typeof y[g]&&c(y,g,m)),s(y,j,!0,!0),f&&(p[j]=m))),"values"==h&&A&&"values"!==A.name&&(k=!0,T=function(){return A.call(this)}),f&&!w||E[g]===T||c(E,g,T),p[t]=T,h)if(x={values:O("values"),keys:b?T:O("keys"),entries:O("entries")},w)for(S in x)!v&&!k&&S in E||u(E,S,x[S]);else n({target:t,proto:!0,forced:v||k},x);return x}},function(e,t,r){"use strict";var n=r(66).IteratorPrototype,o=r(61),i=r(22),a=r(19),s=r(20),c=function(){return this};e.exports=function(e,t,r){var u=t+" Iterator";return e.prototype=o(n,{next:i(1,r)}),a(e,u,!1,!0),s[u]=c,e}},function(e,t,r){"use strict";var n,o,i,a=r(67),s=r(8),c=r(5),u=r(1),l=r(18),f=u("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(n=o):p=!0),null==n&&(n={}),l||c(n,f)||s(n,f,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},function(e,t,r){var n=r(5),o=r(31),i=r(38),a=r(97),s=i("IE_PROTO"),c=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),n(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,r){r(10),(()=>{const t=r(101),n=r(103);class o extends Error{constructor(e){super(e);const r=(new Date).toISOString(),o=t.os.toString(),i=`${t.name} ${t.version}`,a=n.parse(this)[0],s=`${a.fileName}`,c=a.lineNumber,u=a.columnNumber,{jobID:l,taskID:f,clientID:p}=window.cvat.config;Object.defineProperties(this,Object.freeze({system:{get:()=>o},client:{get:()=>i},time:{get:()=>r},jobID:{get:()=>l},taskID:{get:()=>f},projID:{get:()=>void 0},clientID:{get:()=>p},filename:{get:()=>s},line:{get:()=>c},column:{get:()=>u}}))}async save(){const e={system:this.system,client:this.client,time:this.time,job_id:this.jobID,task_id:this.taskID,proj_id:this.projID,client_id:this.clientID,message:this.message,filename:this.filename,line:this.line,column:this.column,stack:this.stack};try{const t=r(32);await t.server.exception(e)}catch(e){}}}e.exports={Exception:o,ArgumentError:class extends o{constructor(e){super(e)}},ScriptingError:class extends o{constructor(e){super(e)}},PluginError:class extends o{constructor(e){super(e)}},ServerError:class extends o{constructor(e,t){super(e),Object.defineProperties(this,Object.freeze({code:{get:()=>t}}))}}}})()},function(e,t,r){"use strict";var n,o,i=r(107),a=RegExp.prototype.exec,s=String.prototype.replace,c=a,u=(n=/a/,o=/b*/g,a.call(n,"a"),a.call(o,"a"),0!==n.lastIndex||0!==o.lastIndex),l=void 0!==/()??/.exec("")[1];(u||l)&&(c=function(e){var t,r,n,o,c=this;return l&&(r=new RegExp("^"+c.source+"$(?!\\s)",i.call(c))),u&&(t=c.lastIndex),n=a.call(c,e),u&&n&&(c.lastIndex=c.global?n.index+n[0].length:t),l&&n&&n.length>1&&s.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)}),n}),e.exports=c},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},function(e,t,r){"use strict";var n=r(3),o=r(117),i=r(119),a=r(120),s=r(121),c=r(72);e.exports=function(e){return new Promise(function(t,u){var l=e.data,f=e.headers;n.isFormData(l)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",d=e.auth.password||"";f.Authorization="Basic "+btoa(h+":"+d)}if(p.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};o(t,u,n),p=null}},p.onerror=function(){u(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){u(c("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",p)),p=null},n.isStandardBrowserEnv()){var v=r(122),g=(e.withCredentials||s(e.url))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;g&&(f[e.xsrfHeaderName]=g)}if("setRequestHeader"in p&&n.forEach(f,function(e,t){void 0===l&&"content-type"===t.toLowerCase()?delete f[t]:p.setRequestHeader(t,e)}),e.withCredentials&&(p.withCredentials=!0),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),u(e),p=null)}),void 0===l&&(l=null),p.send(l)})}},function(e,t,r){"use strict";var n=r(118);e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,r){"use strict";r(11)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,r){"use strict";r(138);var n,o=r(11),i=r(6),a=r(78),s=r(0),c=r(62),u=r(15),l=r(41),f=r(5),p=r(139),h=r(140),d=r(42).codeAt,v=r(142),g=r(19),m=r(143),b=r(16),w=s.URL,y=m.URLSearchParams,x=m.getState,S=b.set,O=b.getterFor("URL"),j=Math.floor,k=Math.pow,E=/[A-Za-z]/,A=/[\d+\-.A-Za-z]/,T=/\d/,P=/^(0x|0X)/,I=/^[0-7]+$/,R=/^\d+$/,C=/^[\dA-Fa-f]+$/,L=/[\u0000\u0009\u000A\u000D #%\/:?@[\\]]/,N=/[\u0000\u0009\u000A\u000D #\/:?@[\\]]/,$=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,_=/[\u0009\u000A\u000D]/g,M=function(e,t){var r,n,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(r=U(t.slice(1,-1))))return"Invalid host";e.host=r}else if(V(e)){if(t=v(t),L.test(t))return"Invalid host";if(null===(r=F(t)))return"Invalid host";e.host=r}else{if(N.test(t))return"Invalid host";for(r="",n=h(t),o=0;o<n.length;o++)r+=G(n[o],z);e.host=r}},F=function(e){var t,r,n,o,i,a,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=c[n]))return e;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=P.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?R:8==i?I:C).test(o))return e;a=parseInt(o,i)}r.push(a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=k(256,5-t))return null}else if(a>255)return null;for(s=r.pop(),n=0;n<r.length;n++)s+=r[n]*k(256,3-n);return s},U=function(e){var t,r,n,o,i,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,p=function(){return e.charAt(f)};if(":"==p()){if(":"!=e.charAt(1))return;f+=2,l=++u}for(;p();){if(8==u)return;if(":"!=p()){for(t=r=0;r<4&&C.test(p());)t=16*t+parseInt(p(),16),f++,r++;if("."==p()){if(0==r)return;if(f-=r,u>6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;f++}if(!T.test(p()))return;for(;T.test(p());){if(i=parseInt(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}c[u]=256*c[u]+o,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;c[u++]=t}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c},B=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)t.unshift(e%256),e=j(e/256);return t.join(".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=e[r].toString(16),r<7&&(t+=":")));return"["+t+"]"}return e},z={},D=p({},z,{" ":1,'"':1,"<":1,">":1,"`":1}),W=p({},D,{"#":1,"?":1,"{":1,"}":1}),q=p({},W,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),G=function(e,t){var r=d(e,0);return r>32&&r<127&&!f(t,e)?e:encodeURIComponent(e)},J={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},V=function(e){return f(J,e.scheme)},X=function(e){return""!=e.username||""!=e.password},K=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},H=function(e,t){var r;return 2==e.length&&E.test(e.charAt(0))&&(":"==(r=e.charAt(1))||!t&&"|"==r)},Y=function(e){var t;return e.length>1&&H(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},Z=function(e){var t=e.path,r=t.length;!r||"file"==e.scheme&&1==r&&H(t[0],!0)||t.pop()},Q=function(e){return"."===e||"%2e"===e.toLowerCase()},ee={},te={},re={},ne={},oe={},ie={},ae={},se={},ce={},ue={},le={},fe={},pe={},he={},de={},ve={},ge={},me={},be={},we={},ye={},xe=function(e,t,r,o){var i,a,s,c,u,l=r||ee,p=0,d="",v=!1,g=!1,m=!1;for(r||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace($,"")),t=t.replace(_,""),i=h(t);p<=i.length;){switch(a=i[p],l){case ee:if(!a||!E.test(a)){if(r)return"Invalid scheme";l=re;continue}d+=a.toLowerCase(),l=te;break;case te:if(a&&(A.test(a)||"+"==a||"-"==a||"."==a))d+=a.toLowerCase();else{if(":"!=a){if(r)return"Invalid scheme";d="",l=re,p=0;continue}if(r&&(V(e)!=f(J,d)||"file"==d&&(X(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,r)return void(V(e)&&J[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?l=he:V(e)&&o&&o.scheme==e.scheme?l=ne:V(e)?l=se:"/"==i[p+1]?(l=oe,p++):(e.cannotBeABaseURL=!0,e.path.push(""),l=be)}break;case re:if(!o||o.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(o.cannotBeABaseURL&&"#"==a){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,l=ye;break}l="file"==o.scheme?he:ie;continue;case ne:if("/"!=a||"/"!=i[p+1]){l=ie;continue}l=ce,p++;break;case oe:if("/"==a){l=ue;break}l=me;continue;case ie:if(e.scheme=o.scheme,a==n)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==a||"\\"==a&&V(e))l=ae;else if("?"==a)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",l=we;else{if("#"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),l=me;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",l=ye}break;case ae:if(!V(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,l=me;continue}l=ue}else l=ce;break;case se:if(l=ce,"/"!=a||"/"!=d.charAt(p+1))continue;p++;break;case ce:if("/"!=a&&"\\"!=a){l=ue;continue}break;case ue:if("@"==a){v&&(d="%40"+d),v=!0,s=h(d);for(var b=0;b<s.length;b++){var w=s[b];if(":"!=w||m){var y=G(w,q);m?e.password+=y:e.username+=y}else m=!0}d=""}else if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&V(e)){if(v&&""==d)return"Invalid authority";p-=h(d).length+1,d="",l=le}else d+=a;break;case le:case fe:if(r&&"file"==e.scheme){l=ve;continue}if(":"!=a||g){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&V(e)){if(V(e)&&""==d)return"Invalid host";if(r&&""==d&&(X(e)||null!==e.port))return;if(c=M(e,d))return c;if(d="",l=ge,r)return;continue}"["==a?g=!0:"]"==a&&(g=!1),d+=a}else{if(""==d)return"Invalid host";if(c=M(e,d))return c;if(d="",l=pe,r==fe)return}break;case pe:if(!T.test(a)){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&V(e)||r){if(""!=d){var x=parseInt(d,10);if(x>65535)return"Invalid port";e.port=V(e)&&x===J[e.scheme]?null:x,d=""}if(r)return;l=ge;continue}return"Invalid port"}d+=a;break;case he:if(e.scheme="file","/"==a||"\\"==a)l=de;else{if(!o||"file"!=o.scheme){l=me;continue}if(a==n)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==a)e.host=o.host,e.path=o.path.slice(),e.query="",l=we;else{if("#"!=a){Y(i.slice(p).join(""))||(e.host=o.host,e.path=o.path.slice(),Z(e)),l=me;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",l=ye}}break;case de:if("/"==a||"\\"==a){l=ve;break}o&&"file"==o.scheme&&!Y(i.slice(p).join(""))&&(H(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),l=me;continue;case ve:if(a==n||"/"==a||"\\"==a||"?"==a||"#"==a){if(!r&&H(d))l=me;else if(""==d){if(e.host="",r)return;l=ge}else{if(c=M(e,d))return c;if("localhost"==e.host&&(e.host=""),r)return;d="",l=ge}continue}d+=a;break;case ge:if(V(e)){if(l=me,"/"!=a&&"\\"!=a)continue}else if(r||"?"!=a)if(r||"#"!=a){if(a!=n&&(l=me,"/"!=a))continue}else e.fragment="",l=ye;else e.query="",l=we;break;case me:if(a==n||"/"==a||"\\"==a&&V(e)||!r&&("?"==a||"#"==a)){if(".."===(u=(u=d).toLowerCase())||"%2e."===u||".%2e"===u||"%2e%2e"===u?(Z(e),"/"==a||"\\"==a&&V(e)||e.path.push("")):Q(d)?"/"==a||"\\"==a&&V(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&H(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(a==n||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",l=we):"#"==a&&(e.fragment="",l=ye)}else d+=G(a,W);break;case be:"?"==a?(e.query="",l=we):"#"==a?(e.fragment="",l=ye):a!=n&&(e.path[0]+=G(a,z));break;case we:r||"#"!=a?a!=n&&("'"==a&&V(e)?e.query+="%27":e.query+="#"==a?"%23":G(a,z)):(e.fragment="",l=ye);break;case ye:a!=n&&(e.fragment+=G(a,D))}p++}},Se=function(e){var t,r,n=l(this,Se,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(e),s=S(n,{type:"URL"});if(void 0!==o)if(o instanceof Se)t=O(o);else if(r=xe(t={},String(o)))throw TypeError(r);if(r=xe(s,a,null,t))throw TypeError(r);var c=s.searchParams=new y,u=x(c);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(c)||null},i||(n.href=je.call(n),n.origin=ke.call(n),n.protocol=Ee.call(n),n.username=Ae.call(n),n.password=Te.call(n),n.host=Pe.call(n),n.hostname=Ie.call(n),n.port=Re.call(n),n.pathname=Ce.call(n),n.search=Le.call(n),n.searchParams=Ne.call(n),n.hash=$e.call(n))},Oe=Se.prototype,je=function(){var e=O(this),t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",X(e)&&(u+=r+(n?":"+n:"")+"@"),u+=B(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},ke=function(){var e=O(this),t=e.scheme,r=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&V(e)?t+"://"+B(e.host)+(null!==r?":"+r:""):"null"},Ee=function(){return O(this).scheme+":"},Ae=function(){return O(this).username},Te=function(){return O(this).password},Pe=function(){var e=O(this),t=e.host,r=e.port;return null===t?"":null===r?B(t):B(t)+":"+r},Ie=function(){var e=O(this).host;return null===e?"":B(e)},Re=function(){var e=O(this).port;return null===e?"":String(e)},Ce=function(){var e=O(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Le=function(){var e=O(this).query;return e?"?"+e:""},Ne=function(){return O(this).searchParams},$e=function(){var e=O(this).fragment;return e?"#"+e:""},_e=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&c(Oe,{href:_e(je,function(e){var t=O(this),r=String(e),n=xe(t,r);if(n)throw TypeError(n);x(t.searchParams).updateSearchParams(t.query)}),origin:_e(ke),protocol:_e(Ee,function(e){var t=O(this);xe(t,String(e)+":",ee)}),username:_e(Ae,function(e){var t=O(this),r=h(String(e));if(!K(t)){t.username="";for(var n=0;n<r.length;n++)t.username+=G(r[n],q)}}),password:_e(Te,function(e){var t=O(this),r=h(String(e));if(!K(t)){t.password="";for(var n=0;n<r.length;n++)t.password+=G(r[n],q)}}),host:_e(Pe,function(e){var t=O(this);t.cannotBeABaseURL||xe(t,String(e),le)}),hostname:_e(Ie,function(e){var t=O(this);t.cannotBeABaseURL||xe(t,String(e),fe)}),port:_e(Re,function(e){var t=O(this);K(t)||(""==(e=String(e))?t.port=null:xe(t,e,pe))}),pathname:_e(Ce,function(e){var t=O(this);t.cannotBeABaseURL||(t.path=[],xe(t,e+"",ge))}),search:_e(Le,function(e){var t=O(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",xe(t,e,we)),x(t.searchParams).updateSearchParams(t.query)}),searchParams:_e(Ne),hash:_e($e,function(e){var t=O(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",xe(t,e,ye)):t.fragment=null})}),u(Oe,"toJSON",function(){return je.call(this)},{enumerable:!0}),u(Oe,"toString",function(){return je.call(this)},{enumerable:!0}),w){var Me=w.createObjectURL,Fe=w.revokeObjectURL;Me&&u(Se,"createObjectURL",function(e){return Me.apply(w,arguments)}),Fe&&u(Se,"revokeObjectURL",function(e){return Fe.apply(w,arguments)})}g(Se,"URL"),o({global:!0,forced:!a,sham:!i},{URL:Se})},function(e,t,r){var n=r(4),o=r(1),i=r(18),a=o("iterator");e.exports=!n(function(){var e=new URL("b?e=1","http://a"),t=e.searchParams;return e.pathname="c%20d",i&&!e.toJSON||!t.sort||"http://a/c%20d?e=1"!==e.href||"1"!==t.get("e")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash})},function(e,t,r){r(10),(()=>{const e=r(21),t=r(130),n=r(131),o=r(132),{Job:i,Task:a}=r(133),{Attribute:s,Label:c}=r(145),{ShareFileType:u,TaskStatus:l,TaskMode:f,AttributeType:p,ObjectType:h,ObjectShape:d,LogType:v,EventType:g}=r(146),{Exception:m,ArgumentError:b,ScriptingError:w,PluginError:y,ServerError:x}=r(68),S=r(147),O=+Date.now().toString().substr(-6),j={server:{about:async()=>await e.apiWrapper(j.server.about),share:async(t="/")=>await e.apiWrapper(j.server.share,t),login:async(t,r)=>await e.apiWrapper(j.server.login,t,r)},tasks:{get:async(t={})=>await e.apiWrapper(j.tasks.get,t)},jobs:{get:async(t={})=>await e.apiWrapper(j.jobs.get,t)},users:{get:async(t={})=>await e.apiWrapper(j.users.get,t)},plugins:{list:async()=>await e.apiWrapper(j.plugins.list),register:async t=>await e.apiWrapper(j.plugins.register,t)},config:{preloadFrames:300,backendAPI:"http://localhost:7000/api/v1",proxy:!1,taskID:void 0,jobID:void 0,clientID:{get:()=>O}},client:{version:`${S.version}`},enums:{ShareFileType:u,TaskStatus:l,TaskMode:f,AttributeType:p,ObjectType:h,ObjectShape:d,LogType:v,EventType:g},exceptions:{Exception:m,ArgumentError:b,ScriptingError:w,PluginError:y,ServerError:x},classes:{Task:a,User:t,Job:i,Attribute:s,Label:c,Statistics:o,ObjectState:n}};j.server=Object.freeze(j.server),j.tasks=Object.freeze(j.tasks),j.jobs=Object.freeze(j.jobs),j.users=Object.freeze(j.users),j.plugins=Object.freeze(j.plugins),j.client=Object.freeze(j.client),j.enums=Object.freeze(j.enums),j.Job=Object.freeze(j.Job),j.Task=Object.freeze(j.Task);const k=r(148);"undefined"==typeof window&&r(!function(){var e=new Error("Cannot find module 'browser-env'");throw e.code="MODULE_NOT_FOUND",e}())(),window.cvat=Object.freeze(k(j))})()},function(e,t,r){var n=r(0),o=r(47),i=n.WeakMap;e.exports="function"==typeof i&&/native code/.test(o.call(i))},function(e,t,r){var n=r(25),o=r(82),i=r(52),a=r(2);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(a(e)),r=i.f;return r?t.concat(r(e)):t}},function(e,t,r){var n=r(51),o=r(40).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},function(e,t,r){var n=r(23),o=r(26),i=r(84),a=function(e){return function(t,r,a){var s,c=n(t),u=o(c.length),l=i(a,u);if(e&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,r){var n=r(27),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},function(e,t,r){var n=r(4);e.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},function(e,t,r){"use strict";var n=r(25),o=r(12),i=r(1),a=r(6),s=i("species");e.exports=function(e){var t=n(e),r=o.f;a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(2),o=r(55),i=r(26),a=r(29),s=r(30),c=r(56),u=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,r,l,f){var p,h,d,v,g,m,b=a(t,r,l?2:1);if(f)p=e;else{if("function"!=typeof(h=s(e)))throw TypeError("Target is not iterable");if(o(h)){for(d=0,v=i(e.length);v>d;d++)if((g=l?b(n(m=e[d])[0],m[1]):b(e[d]))&&g instanceof u)return g;return new u(!1)}p=h.call(e)}for(;!(m=p.next()).done;)if((g=c(p,b,m.value,l))&&g instanceof u)return g;return new u(!1)}).stop=function(e){return new u(!0,e)}},function(e,t,r){var n=r(14),o=r(1)("toStringTag"),i="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?r:i?n(t):"Object"==(a=n(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,r){var n=r(1)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},function(e,t,r){var n=r(2),o=r(28),i=r(1)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[i])?t:o(r)}},function(e,t,r){var n,o,i,a,s,c,u,l=r(0),f=r(34).f,p=r(14),h=r(57).set,d=r(59),v=l.MutationObserver||l.WebKitMutationObserver,g=l.process,m=l.Promise,b="process"==p(g),w=f(l,"queueMicrotask"),y=w&&w.value;y||(n=function(){var e,t;for(b&&(e=g.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},b?a=function(){g.nextTick(n)}:v&&!/(iphone|ipod|ipad).*applewebkit/i.test(d)?(s=!0,c=document.createTextNode(""),new v(n).observe(c,{characterData:!0}),a=function(){c.data=s=!s}):m&&m.resolve?(u=m.resolve(void 0),a=function(){u.then(n)}):a=function(){h.call(l,n)}),e.exports=y||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},function(e,t,r){var n=r(2),o=r(7),i=r(60);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){var n=r(0);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,r){"use strict";var n=r(11),o=r(6),i=r(0),a=r(5),s=r(7),c=r(12).f,u=r(49),l=i.Symbol;if(o&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var f={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof p?new l(e):void 0===e?l():l(e);return""===e&&(f[t]=!0),t};u(p,l);var h=p.prototype=l.prototype;h.constructor=p;var d=h.toString,v="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;c(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=d.call(e);if(a(f,e))return"";var r=v?t.slice(7,-1):t.replace(g,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:p})}},function(e,t,r){var n=r(1),o=r(61),i=r(8),a=n("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,o(null)),e.exports=function(e){s[a][e]=!0}},function(e,t,r){var n=r(4);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,r){var n=r(2),o=r(99);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return n(r),o(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},function(e,t,r){var n=r(7);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t){e.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(e,t,r){(function(e,n){var o;
|
|
|
*/(function(){"use strict";var i={function:!0,object:!0},a=i[typeof window]&&window||this,s=i[typeof t]&&t,c=i[typeof e]&&e&&!e.nodeType&&e,u=s&&c&&"object"==typeof n&&n;!u||u.global!==u&&u.window!==u&&u.self!==u||(a=u);var l=Math.pow(2,53)-1,f=/\bOpera/,p=Object.prototype,h=p.hasOwnProperty,d=p.toString;function v(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function g(e){return e=x(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:v(e)}function m(e,t){for(var r in e)h.call(e,r)&&t(e[r],r,e)}function b(e){return null==e?v(e):d.call(e).slice(8,-1)}function w(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function y(e,t){var r=null;return function(e,t){var r=-1,n=e?e.length:0;if("number"==typeof n&&n>-1&&n<=l)for(;++r<n;)t(e[r],r,e);else m(e,t)}(e,function(n,o){r=t(r,n,o,e)}),r}function x(e){return String(e).replace(/^ +| +$/g,"")}var S=function e(t){var r=a,n=t&&"object"==typeof t&&"String"!=b(t);n&&(r=t,t=null);var o=r.navigator||{},i=o.userAgent||"";t||(t=i);var s,c,u,l,p,h=n?!!o.likeChrome:/\bChrome\b/.test(t)&&!/internal|\n/i.test(d.toString()),v=n?"Object":"ScriptBridgingProxyObject",S=n?"Object":"Environment",O=n&&r.java?"JavaPackage":b(r.java),j=n?"Object":"RuntimeObject",k=/\bJava/.test(O)&&r.java,E=k&&b(r.environment)==S,A=k?"a":"α",T=k?"b":"β",P=r.document||{},I=r.operamini||r.opera,R=f.test(R=n&&I?I["[[Class]]"]:b(I))?R:I=null,C=t,L=[],N=null,$=t==i,_=$&&I&&"function"==typeof I.version&&I.version(),M=y([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],function(e,r){return e||RegExp("\\b"+(r.pattern||w(r))+"\\b","i").exec(t)&&(r.label||r)}),F=function(e){return y(e,function(e,r){return e||RegExp("\\b"+(r.pattern||w(r))+"\\b","i").exec(t)&&(r.label||r)})}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),U=D([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),B=function(e){return y(e,function(e,r,n){return e||(r[U]||r[/^[a-z]+(?: +[a-z]+\b)*/i.exec(U)]||RegExp("\\b"+w(n)+"(?:\\b|\\w*\\d)","i").exec(t))&&n})}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),z=function(e){return y(e,function(e,r){var n=r.pattern||w(r);return!e&&(e=RegExp("\\b"+n+"(?:/[\\d.]+|[ \\w.]*)","i").exec(t))&&(e=function(e,t,r){var n={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&r&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(n=n[/[\d.]+$/.exec(e)])&&(e="Windows "+n),e=String(e),t&&r&&(e=e.replace(RegExp(t,"i"),r)),e=g(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}(e,n,r.label||r)),e})}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function D(e){return y(e,function(e,r){var n=r.pattern||w(r);return!e&&(e=RegExp("\\b"+n+" *\\d+[.\\w_]*","i").exec(t)||RegExp("\\b"+n+" *\\w+-[\\w]*","i").exec(t)||RegExp("\\b"+n+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(t))&&((e=String(r.label&&!RegExp(n,"i").test(r.label)?r.label:e).split("/"))[1]&&!/[\d.]+/.test(e[0])&&(e[0]+=" "+e[1]),r=r.label||r,e=g(e[0].replace(RegExp(n,"i"),r).replace(RegExp("; *(?:"+r+"[_-])?","i")," ").replace(RegExp("("+r+")[-_.]?(\\w)","i"),"$1 $2"))),e})}if(M&&(M=[M]),B&&!U&&(U=D([B])),(s=/\bGoogle TV\b/.exec(U))&&(U=s[0]),/\bSimulator\b/i.test(t)&&(U=(U?U+" ":"")+"Simulator"),"Opera Mini"==F&&/\bOPiOS\b/.test(t)&&L.push("running in Turbo/Uncompressed mode"),"IE"==F&&/\blike iPhone OS\b/.test(t)?(B=(s=e(t.replace(/like iPhone OS/,""))).manufacturer,U=s.product):/^iP/.test(U)?(F||(F="Safari"),z="iOS"+((s=/ OS ([\d_]+)/i.exec(t))?" "+s[1].replace(/_/g,"."):"")):"Konqueror"!=F||/buntu/i.test(z)?B&&"Google"!=B&&(/Chrome/.test(F)&&!/\bMobile Safari\b/i.test(t)||/\bVita\b/.test(U))||/\bAndroid\b/.test(z)&&/^Chrome/.test(F)&&/\bVersion\//i.test(t)?(F="Android Browser",z=/\bAndroid\b/.test(z)?z:"Android"):"Silk"==F?(/\bMobi/i.test(t)||(z="Android",L.unshift("desktop mode")),/Accelerated *= *true/i.test(t)&&L.unshift("accelerated")):"PaleMoon"==F&&(s=/\bFirefox\/([\d.]+)\b/.exec(t))?L.push("identifying as Firefox "+s[1]):"Firefox"==F&&(s=/\b(Mobile|Tablet|TV)\b/i.exec(t))?(z||(z="Firefox OS"),U||(U=s[1])):!F||(s=!/\bMinefield\b/i.test(t)&&/\b(?:Firefox|Safari)\b/.exec(F))?(F&&!U&&/[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(s+"/")+8))&&(F=null),(s=U||B||z)&&(U||B||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(z))&&(F=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(z)?z:s)+" Browser")):"Electron"==F&&(s=(/\bChrome\/([\d.]+)\b/.exec(t)||0)[1])&&L.push("Chromium "+s):z="Kubuntu",_||(_=y(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",w(F),"(?:Firefox|Minefield|NetFront)"],function(e,r){return e||(RegExp(r+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(t)||0)[1]||null})),(s=("iCab"==M&&parseFloat(_)>3?"WebKit":/\bOpera\b/.test(F)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(M)&&"WebKit"||!M&&/\bMSIE\b/i.test(t)&&("Mac OS"==z?"Tasman":"Trident")||"WebKit"==M&&/\bPlayStation\b(?! Vita\b)/i.test(F)&&"NetFront")&&(M=[s]),"IE"==F&&(s=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(F+=" Mobile",z="Windows Phone "+(/\+$/.test(s)?s:s+".x"),L.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(F="IE Mobile",z="Windows Phone 8.x",L.unshift("desktop mode"),_||(_=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=F&&"Trident"==M&&(s=/\brv:([\d.]+)/.exec(t))&&(F&&L.push("identifying as "+F+(_?" "+_:"")),F="IE",_=s[1]),$){if(l="global",p=null!=(u=r)?typeof u[l]:"number",/^(?:boolean|number|string|undefined)$/.test(p)||"object"==p&&!u[l])b(s=r.runtime)==v?(F="Adobe AIR",z=s.flash.system.Capabilities.os):b(s=r.phantom)==j?(F="PhantomJS",_=(s=s.version||null)&&s.major+"."+s.minor+"."+s.patch):"number"==typeof P.documentMode&&(s=/\bTrident\/(\d+)/i.exec(t))?(_=[_,P.documentMode],(s=+s[1]+4)!=_[1]&&(L.push("IE "+_[1]+" mode"),M&&(M[1]=""),_[1]=s),_="IE"==F?String(_[1].toFixed(1)):_[0]):"number"==typeof P.documentMode&&/^(?:Chrome|Firefox)\b/.test(F)&&(L.push("masking as "+F+" "+_),F="IE",_="11.0",M=["Trident"],z="Windows");else if(k&&(C=(s=k.lang.System).getProperty("os.arch"),z=z||s.getProperty("os.name")+" "+s.getProperty("os.version")),E){try{_=r.require("ringo/engine").version.join("."),F="RingoJS"}catch(e){(s=r.system)&&s.global.system==r.system&&(F="Narwhal",z||(z=s[0].os||null))}F||(F="Rhino")}else"object"==typeof r.process&&!r.process.browser&&(s=r.process)&&("object"==typeof s.versions&&("string"==typeof s.versions.electron?(L.push("Node "+s.versions.node),F="Electron",_=s.versions.electron):"string"==typeof s.versions.nw&&(L.push("Chromium "+_,"Node "+s.versions.node),F="NW.js",_=s.versions.nw)),F||(F="Node.js",C=s.arch,z=s.platform,_=(_=/[\d.]+/.exec(s.version))?_[0]:null));z=z&&g(z)}if(_&&(s=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(_)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+($&&o.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(N=/b/i.test(s)?"beta":"alpha",_=_.replace(RegExp(s+"\\+?$"),"")+("beta"==N?T:A)+(/\d+\+?/.exec(s)||"")),"Fennec"==F||"Firefox"==F&&/\b(?:Android|Firefox OS)\b/.test(z))F="Firefox Mobile";else if("Maxthon"==F&&_)_=_.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(U))"Xbox 360"==U&&(z=null),"Xbox 360"==U&&/\bIEMobile\b/.test(t)&&L.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(F)&&(!F||U||/Browser|Mobi/.test(F))||"Windows CE"!=z&&!/Mobi/i.test(t))if("IE"==F&&$)try{null===r.external&&L.unshift("platform preview")}catch(e){L.unshift("embedded")}else(/\bBlackBerry\b/.test(U)||/\bBB10\b/.test(t))&&(s=(RegExp(U.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||_)?(z=((s=[s,/BB10/.test(t)])[1]?(U=null,B="BlackBerry"):"Device Software")+" "+s[0],_=null):this!=m&&"Wii"!=U&&($&&I||/Opera/.test(F)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==F&&/\bOS X (?:\d+\.){2,}/.test(z)||"IE"==F&&(z&&!/^Win/.test(z)&&_>5.5||/\bWindows XP\b/.test(z)&&_>8||8==_&&!/\bTrident\b/.test(t)))&&!f.test(s=e.call(m,t.replace(f,"")+";"))&&s.name&&(s="ing as "+s.name+((s=s.version)?" "+s:""),f.test(F)?(/\bIE\b/.test(s)&&"Mac OS"==z&&(z=null),s="identify"+s):(s="mask"+s,F=R?g(R.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(s)&&(z=null),$||(_=null)),M=["Presto"],L.push(s));else F+=" Mobile";(s=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(s=[parseFloat(s.replace(/\.(\d)$/,".0$1")),s],"Safari"==F&&"+"==s[1].slice(-1)?(F="WebKit Nightly",N="alpha",_=s[1].slice(0,-1)):_!=s[1]&&_!=(s[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(_=null),s[1]=(/\bChrome\/([\d.]+)/i.exec(t)||0)[1],537.36==s[0]&&537.36==s[2]&&parseFloat(s[1])>=28&&"WebKit"==M&&(M=["Blink"]),$&&(h||s[1])?(M&&(M[1]="like Chrome"),s=s[1]||((s=s[0])<530?1:s<532?2:s<532.05?3:s<533?4:s<534.03?5:s<534.07?6:s<534.1?7:s<534.13?8:s<534.16?9:s<534.24?10:s<534.3?11:s<535.01?12:s<535.02?"13+":s<535.07?15:s<535.11?16:s<535.19?17:s<536.05?18:s<536.1?19:s<537.01?20:s<537.11?"21+":s<537.13?23:s<537.18?24:s<537.24?25:s<537.36?26:"Blink"!=M?"27":"28")):(M&&(M[1]="like Safari"),s=(s=s[0])<400?1:s<500?2:s<526?3:s<533?4:s<534?"4+":s<535?5:s<537?6:s<538?7:s<601?8:"8"),M&&(M[1]+=" "+(s+="number"==typeof s?".x":/[.+]/.test(s)?"":"+")),"Safari"==F&&(!_||parseInt(_)>45)&&(_=s)),"Opera"==F&&(s=/\bzbov|zvav$/.exec(z))?(F+=" ",L.unshift("desktop mode"),"zvav"==s?(F+="Mini",_=null):F+="Mobile",z=z.replace(RegExp(" *"+s+"$"),"")):"Safari"==F&&/\bChrome\b/.exec(M&&M[1])&&(L.unshift("desktop mode"),F="Chrome Mobile",_=null,/\bOS X\b/.test(z)?(B="Apple",z="iOS 4.3+"):z=null),_&&0==_.indexOf(s=/[\d.]+$/.exec(z))&&t.indexOf("/"+s+"-")>-1&&(z=x(z.replace(s,""))),M&&!/\b(?:Avant|Nook)\b/.test(F)&&(/Browser|Lunascape|Maxthon/.test(F)||"Safari"!=F&&/^iOS/.test(z)&&/\bSafari\b/.test(M[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(F)&&M[1])&&(s=M[M.length-1])&&L.push(s),L.length&&(L=["("+L.join("; ")+")"]),B&&U&&U.indexOf(B)<0&&L.push("on "+B),U&&L.push((/^on /.test(L[L.length-1])?"":"on ")+U),z&&(s=/ ([\d.+]+)$/.exec(z),c=s&&"/"==z.charAt(z.length-s[0].length-1),z={architecture:32,family:s&&!c?z.replace(s[0],""):z,version:s?s[1]:null,toString:function(){var e=this.version;return this.family+(e&&!c?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(s=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(C))&&!/\bi686\b/i.test(C)?(z&&(z.architecture=64,z.family=z.family.replace(RegExp(" *"+s),"")),F&&(/\bWOW64\b/i.test(t)||$&&/\w(?:86|32)$/.test(o.cpuClass||o.platform)&&!/\bWin64; x64\b/i.test(t))&&L.unshift("32-bit")):z&&/^OS X/.test(z.family)&&"Chrome"==F&&parseFloat(_)>=39&&(z.architecture=64),t||(t=null);var W={};return W.description=t,W.layout=M&&M[0],W.manufacturer=B,W.name=F,W.prerelease=N,W.product=U,W.ua=t,W.version=F&&_,W.os=z||{architecture:null,family:null,version:null,toString:function(){return"null"}},W.parse=e,W.toString=function(){return this.description||""},W.version&&L.unshift(_),W.name&&L.unshift(F),z&&F&&(z!=String(z).split(" ")[0]||z!=F.split(" ")[0]&&!U)&&L.push(U?"("+z+")":"on "+z),L.length&&(W.description=L.join(" ")),W}();a.platform=S,void 0===(o=function(){return S}.call(t,r,t,e))||(e.exports=o)}).call(this)}).call(this,r(102)(e),r(33))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){var n,o,i;!function(a,s){"use strict";o=[r(104)],void 0===(i="function"==typeof(n=function(e){var t=/(^|@)\S+\:\d+/,r=/^\s*at .*(\S+\:\d+|\(native\))/m,n=/^(eval@)?(\[native code\])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(r))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(e.replace(/[\(\)]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){var n=t.stack.split("\n").filter(function(e){return!!e.match(r)},this);return n.map(function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),n=this.extractLocation(r.pop()),o=r.join(" ")||void 0,i=["eval","<anonymous>"].indexOf(n[0])>-1?void 0:n[0];return new e({functionName:o,fileName:i,lineNumber:n[1],columnNumber:n[2],source:t})},this)},parseFFOrSafari:function(t){var r=t.stack.split("\n").filter(function(e){return!e.match(n)},this);return r.map(function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=t.match(r),o=n&&n[1]?n[1]:void 0,i=this.extractLocation(t.replace(r,""));return new e({functionName:o,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:t})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var r=/Line (\d+).*script (?:in )?(\S+)/i,n=t.message.split("\n"),o=[],i=2,a=n.length;i<a;i+=2){var s=r.exec(n[i]);s&&o.push(new e({fileName:s[2],lineNumber:s[1],source:n[i]}))}return o},parseOpera10:function(t){for(var r=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=t.stacktrace.split("\n"),o=[],i=0,a=n.length;i<a;i+=2){var s=r.exec(n[i]);s&&o.push(new e({functionName:s[3]||void 0,fileName:s[2],lineNumber:s[1],source:n[i]}))}return o},parseOpera11:function(r){var n=r.stack.split("\n").filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this);return n.map(function(t){var r,n=t.split("@"),o=this.extractLocation(n.pop()),i=n.shift()||"",a=i.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||void 0;i.match(/\(([^\)]*)\)/)&&(r=i.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var s=void 0===r||"[arguments not available]"===r?void 0:r.split(",");return new e({functionName:a,args:s,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})},this)}}})?n.apply(t,o):n)||(e.exports=i)}()},function(e,t,r){var n,o,i;!function(r,a){"use strict";o=[],void 0===(i="function"==typeof(n=function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function r(e){return function(){return this[e]}}var n=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],i=["fileName","functionName","source"],a=n.concat(o,i,["args"]);function s(e){if(e instanceof Object)for(var r=0;r<a.length;r++)e.hasOwnProperty(a[r])&&void 0!==e[a[r]]&&this["set"+t(a[r])](e[a[r]])}s.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof s)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new s(e)}},toString:function(){var t=this.getFunctionName()||"{anonymous}",r="("+(this.getArgs()||[]).join(",")+")",n=this.getFileName()?"@"+this.getFileName():"",o=e(this.getLineNumber())?":"+this.getLineNumber():"",i=e(this.getColumnNumber())?":"+this.getColumnNumber():"";return t+r+n+o+i}};for(var c=0;c<n.length;c++)s.prototype["get"+t(n[c])]=r(n[c]),s.prototype["set"+t(n[c])]=function(e){return function(t){this[e]=Boolean(t)}}(n[c]);for(var u=0;u<o.length;u++)s.prototype["get"+t(o[u])]=r(o[u]),s.prototype["set"+t(o[u])]=function(t){return function(r){if(!e(r))throw new TypeError(t+" must be a Number");this[t]=Number(r)}}(o[u]);for(var l=0;l<i.length;l++)s.prototype["get"+t(i[l])]=r(i[l]),s.prototype["set"+t(i[l])]=function(e){return function(t){this[e]=String(t)}}(i[l]);return s})?n.apply(t,o):n)||(e.exports=i)}()},function(e,t,r){"use strict";var n=r(106),o=r(2),i=r(31),a=r(26),s=r(27),c=r(17),u=r(108),l=r(109),f=Math.max,p=Math.min,h=Math.floor,d=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g;n("replace",2,function(e,t,r){return[function(r,n){var o=c(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,o,n):t.call(String(o),r,n)},function(e,i){var c=r(t,e,this,i);if(c.done)return c.value;var h=o(e),d=String(this),v="function"==typeof i;v||(i=String(i));var g=h.global;if(g){var m=h.unicode;h.lastIndex=0}for(var b=[];;){var w=l(h,d);if(null===w)break;if(b.push(w),!g)break;""===String(w[0])&&(h.lastIndex=u(d,a(h.lastIndex),m))}for(var y,x="",S=0,O=0;O<b.length;O++){w=b[O];for(var j=String(w[0]),k=f(p(s(w.index),d.length),0),E=[],A=1;A<w.length;A++)E.push(void 0===(y=w[A])?y:String(y));var T=w.groups;if(v){var P=[j].concat(E,k,d);void 0!==T&&P.push(T);var I=String(i.apply(void 0,P))}else I=n(j,d,k,E,T,i);k>=S&&(x+=d.slice(S,k)+I,S=k+j.length)}return x+d.slice(S)}];function n(e,r,n,o,a,s){var c=n+e.length,u=o.length,l=v;return void 0!==a&&(a=i(a),l=d),t.call(s,l,function(t,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return r.slice(0,n);case"'":return r.slice(c);case"<":s=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return t;if(l>u){var f=h(l/10);return 0===f?t:f<=u?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):t}s=o[l-1]}return void 0===s?"":s})}})},function(e,t,r){"use strict";var n=r(8),o=r(15),i=r(4),a=r(1),s=r(69),c=a("species"),u=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),l=!i(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]});e.exports=function(e,t,r,f){var p=a(e),h=!i(function(){var t={};return t[p]=function(){return 7},7!=""[e](t)}),d=h&&!i(function(){var t=!1,r=/a/;return r.exec=function(){return t=!0,null},"split"===e&&(r.constructor={},r.constructor[c]=function(){return r}),r[p](""),!t});if(!h||!d||"replace"===e&&!u||"split"===e&&!l){var v=/./[p],g=r(p,""[e],function(e,t,r,n,o){return t.exec===s?h&&!o?{done:!0,value:v.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),m=g[0],b=g[1];o(String.prototype,e,m),o(RegExp.prototype,p,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)}),f&&n(RegExp.prototype[p],"sham",!0)}}},function(e,t,r){"use strict";var n=r(2);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,r){"use strict";var n=r(42).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},function(e,t,r){var n=r(14),o=r(69);e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var i=r.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,r){var n,o;
|
|
|
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,r){"use strict";var n=r(43),o=r(3),i=r(123),a=r(124);function s(e){this.defaults=e,this.interceptors={request:new i,response:new i}}s.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),(e=o.merge(n,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var t=[a,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},o.forEach(["delete","get","head","options"],function(e){s.prototype[e]=function(t,r){return this.request(o.merge(r||{},{method:e,url:t}))}}),o.forEach(["post","put","patch"],function(e){s.prototype[e]=function(t,r,n){return this.request(o.merge(n||{},{method:e,url:t,data:r}))}}),e.exports=s},function(e,t){var r,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c,u=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new d(e,t)),1!==u.length||l||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,r){"use strict";var n=r(3);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},function(e,t,r){"use strict";var n=r(72);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e}},function(e,t,r){"use strict";var n=r(3);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))}))}),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e,t,r){"use strict";var n=r(3),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e?(n.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}}),a):a}},function(e,t,r){"use strict";var n=r(3);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},function(e,t,r){"use strict";var n=r(3);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,r){"use strict";var n=r(3);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},function(e,t,r){"use strict";var n=r(3),o=r(125),i=r(73),a=r(43),s=r(126),c=r(127);function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return u(e),e.baseURL&&!s(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return u(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,r){"use strict";var n=r(3);e.exports=function(e,t,r){return n.forEach(r,function(r){e=r(e,t)}),e}},function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,r){"use strict";var n=r(74);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o(function(t){e=t}),cancel:e}},e.exports=o},function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t){(()=>{e.exports=class{constructor(e){const t={id:null,username:null,email:null,first_name:null,last_name:null,groups:null,last_login:null,date_joined:null,is_staff:null,is_superuser:null,is_active:null};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&r in e&&(t[r]=e[r]);Object.defineProperties(this,Object.freeze({id:{get:()=>t.id},username:{get:()=>t.username},email:{get:()=>t.email},firstName:{get:()=>t.first_name},lastName:{get:()=>t.last_name},groups:{get:()=>JSON.parse(JSON.stringify(t.groups))},lastLogin:{get:()=>t.last_login},dateJoined:{get:()=>t.date_joined},isStaff:{get:()=>t.is_staff},isSuperuser:{get:()=>t.is_superuser},isActive:{get:()=>t.is_active}}))}}})()},function(e,t,r){r(9),r(10),r(13),(()=>{const t=r(21);class n{constructor(e,t,r){const n={position:null,group:null,zOrder:null,outside:!1,occluded:!1,attributes:null,lock:!1,type:e,shape:t,label:r};Object.defineProperties(this,Object.freeze({type:{get:()=>n.type},shape:{get:()=>n.shape},label:{get:()=>n.label,set:e=>{if(!(e instanceof window.cvat.classes.Label))throw new window.cvat.exceptions.ArgumentException(`Expected Label instance, but got "${typeof e.constructor.name}"`);n.label=e}},position:{get:()=>n.position,set:e=>{if(!Array.isArray(e))throw new window.cvat.exceptions.ArgumentException(`Got invalid type "${typeof e.constructor.name}"`);for(const t of e)if(!("object"==typeof t&&"x"in t&&"y"in t))throw new window.cvat.exceptions.ArgumentException(`Got invalid point ${t}`);n.position=e}},group:{get:()=>n.group,set:e=>{if(!Number.isInteger(e))throw new window.cvat.exceptions.ArgumentException(`Expected integer, but got ${e.constructor.name}`);n.group=e}},zOrder:{get:()=>n.zOrder,set:e=>{if(!Number.isInteger(e))throw new window.cvat.exceptions.ArgumentException(`Expected integer, but got ${e.constructor.name}`);n.zOrder=e}},outside:{get:()=>n.outside,set:e=>{if("boolean"==typeof e)throw new window.cvat.exceptions.ArgumentException(`Expected integer, but got ${e.constructor.name}`);n.outside=e}},occluded:{get:()=>n.occluded,set:e=>{if("boolean"==typeof e)throw new window.cvat.exceptions.ArgumentException(`Expected integer, but got ${e.constructor.name}`);n.occluded=e}},lock:{get:()=>n.lock,set:e=>{if("boolean"==typeof e)throw new window.cvat.exceptions.ArgumentException(`Expected integer, but got ${e.constructor.name}`);n.lock=e}},attributes:{get:()=>n.attributes,set:e=>{if("object"!=typeof e)throw new window.cvat.exceptions.ArgumentException(`Expected object, but got ${e.constructor.name}`);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){if(t=+t,!Number.isInteger(t))throw new window.cvat.exceptions.ArgumentException(`Expected integer attribute id, but got ${t.constructor.name}`);n.attributes[t]=e[t]}}}}))}async save(){return await t.apiWrapper.call(this,n.prototype.save)}async delete(){return await t.apiWrapper.call(this,n.prototype.delete)}}e.exports=n})()},function(e,t){(()=>{e.exports=class{constructor(e,t){Object.defineProperties(this,Object.freeze({label:{get:()=>JSON.parse(JSON.stringify(e))},total:{get:()=>JSON.parse(JSON.stringify(t))}}))}}})()},function(e,t,r){r(9),r(10),r(134),r(13),r(76),(()=>{const t=r(21),n=r(32),{getFrame:o}=r(137);function i(){const e=Object.freeze({value:{async upload(r){return await t.apiWrapper.call(this,e.value.upload,r)},async save(){return await t.apiWrapper.call(this,e.value.save)},async clear(){return await t.apiWrapper.call(this,e.value.clear)},async dump(){return await t.apiWrapper.call(this,e.value.dump)},async statistics(){return await t.apiWrapper.call(this,e.value.statistics)},async put(r=[]){return await t.apiWrapper.call(this,e.value.put,r)},async get(r,n={}){return await t.apiWrapper.call(this,e.value.get,r,n)},async search(r,n,o){return await t.apiWrapper.call(this,e.value.search,r,n,o)},async select(r,n,o){return await t.apiWrapper.call(this,e.value.select,r,n,o)}}}),r=Object.freeze({value:{async get(e){return await t.apiWrapper.call(this,r.value.get,e)}}}),n=Object.freeze({value:{async put(e,r){return await t.apiWrapper.call(this,n.value.put,e,r)},async save(){return await t.apiWrapper.call(this,n.value.save)}}}),o=Object.freeze({value:{async undo(e){return await t.apiWrapper.call(this,o.value.undo,e)},async redo(e){return await t.apiWrapper.call(this,o.value.redo,e)},async clear(){return await t.apiWrapper.call(this,o.value.clear)}}}),i=Object.freeze({value:{async subscribe(e,r){return await t.apiWrapper.call(this,i.value.subscribe,e,r)},async unsubscribe(e,r=null){return await t.apiWrapper.call(this,i.value.unsubscribe,e,r)}}});return Object.freeze({annotations:e,frames:r,logs:n,actions:o,events:i})}class a{constructor(){}}class s extends a{constructor(e){super();const t={id:void 0,assignee:void 0,status:void 0,start_frame:void 0,stop_frame:void 0,task:void 0};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&(r in e&&(t[r]=e[r]),void 0===t[r]))throw new window.cvat.exceptions.ArgumentError(`Job field "${r}" was not initialized`);Object.defineProperties(this,Object.freeze({id:{get:()=>t.id},assignee:{get:()=>t.assignee,set:()=>e=>{if(!Number.isInteger(e)||e<0)throw new window.cvat.exceptions.ArgumentError("Value must be a non negative integer");t.assignee=e}},status:{get:()=>t.status,set:e=>{const r=window.cvat.enums.TaskStatus;let n=!1;for(const t in r)if(r[t]===e){n=!0;break}if(!n)throw new window.cvat.exceptions.ArgumentError("Value must be a value from the enumeration cvat.enums.TaskStatus");t.status=e}},startFrame:{get:()=>t.start_frame},stopFrame:{get:()=>t.stop_frame},task:{get:()=>t.task}})),this.frames.get.implementation=this.frames.get.implementation.bind(this)}async save(){return await t.apiWrapper.call(this,s.prototype.save)}}Object.defineProperties(s.prototype,i()),s.prototype.save.implementation=async function(){if(this.id){const e={status:this.status};return await n.jobs.saveJob(this.id,e),this}throw window.cvat.exceptions.ArgumentError("Can not save job without and id")},s.prototype.frames.get.implementation=async function(e){if(e<this.startFrame||e>this.stopFrame)throw new window.cvat.exceptions.ArgumentError(`Frame ${e} does not exist in the job`);return await o(this.task.id,this.task.mode,e)};class c extends a{constructor(e){super();const t={id:void 0,name:void 0,status:void 0,size:void 0,mode:void 0,owner:void 0,assignee:void 0,created_date:void 0,updated_date:void 0,bug_tracker:void 0,overlap:void 0,segment_size:void 0,z_order:void 0,image_quality:void 0};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&r in e&&(t[r]=e[r]);if(t.labels=[],t.jobs=[],t.files=Object.freeze({server_files:[],client_files:[],remote_files:[]}),Array.isArray(e.segments))for(const r of e.segments)if(Array.isArray(r.jobs))for(const e of r.jobs){const n=new window.cvat.classes.Job({url:e.url,id:e.id,assignee:e.assignee,status:e.status,start_frame:r.start_frame,stop_frame:r.stop_frame,task:this});t.jobs.push(n)}if(Array.isArray(e.labels))for(const r of e.labels){const e=new window.cvat.classes.Label(r);t.labels.push(e)}Object.defineProperties(this,Object.freeze({id:{get:()=>t.id},name:{get:()=>t.name,set:e=>{if(!e.trim().length)throw new window.cvat.exceptions.ArgumentError("Value must not be empty");t.name=e}},status:{get:()=>t.status},size:{get:()=>t.size},mode:{get:()=>t.mode},owner:{get:()=>t.owner},assignee:{get:()=>t.assignee,set:()=>e=>{if(!Number.isInteger(e)||e<0)throw new window.cvat.exceptions.ArgumentError("Value must be a non negative integer");t.assignee=e}},createdDate:{get:()=>t.created_date},updatedDate:{get:()=>t.updated_date},bugTracker:{get:()=>t.bug_tracker,set:e=>{t.bug_tracker=e}},overlap:{get:()=>t.overlap,set:e=>{if(!Number.isInteger(e)||e<0)throw new window.cvat.exceptions.ArgumentError("Value must be a non negative integer");t.overlap=e}},segmentSize:{get:()=>t.segment_size,set:e=>{if(!Number.isInteger(e)||e<0)throw new window.cvat.exceptions.ArgumentError("Value must be a positive integer");t.segment_size=e}},zOrder:{get:()=>t.z_order,set:e=>{if("boolean"!=typeof e)throw new window.cvat.exceptions.ArgumentError("Value must be a boolean");t.z_order=e}},imageQuality:{get:()=>t.image_quality,set:e=>{if(!Number.isInteger(e)||e<0)throw new window.cvat.exceptions.ArgumentError("Value must be a positive integer");t.image_quality=e}},labels:{get:()=>[...t.labels],set:e=>{if(!Array.isArray(e))throw new window.cvat.exceptions.ArgumentError("Value must be an array of Labels");for(const t of e)if(!(t instanceof window.cvat.classes.Label))throw new window.cvat.exceptions.ArgumentError("Each array value must be an instance of Label. "+`${typeof t} was found`);void 0===t.id?t.labels=[...e]:t.labels=t.labels.concat([...e])}},jobs:{get:()=>[...t.jobs]},serverFiles:{get:()=>[...t.files.server_files],set:e=>{if(!Array.isArray(e))throw new window.cvat.exceptions.ArgumentError(`Value must be an array. But ${typeof e} has been got.`);for(const t of e)if("string"!=typeof t)throw new window.cvat.exceptions.ArgumentError(`Array values must be a string. But ${typeof t} has been got.`);Array.prototype.push.apply(t.files.server_files,e)}},clientFiles:{get:()=>[...t.files.client_files],set:e=>{if(!Array.isArray(e))throw new window.cvat.exceptions.ArgumentError(`Value must be an array. But ${typeof e} has been got.`);for(const t of e)if(!(t instanceof window.File))throw new window.cvat.exceptions.ArgumentError(`Array values must be a File. But ${t.constructor.name} has been got.`);Array.prototype.push.apply(t.files.client_files,e)}}})),this.frames.get.implementation=this.frames.get.implementation.bind(this)}async save(e=(()=>{})){return await t.apiWrapper.call(this,c.prototype.save,e)}async delete(){return await t.apiWrapper.call(this,c.prototype.delete)}}Object.defineProperties(c.prototype,i()),c.prototype.save.implementation=async function(e){if(void 0!==this.id){const e={name:this.name,bug_tracker:this.bugTracker,z_order:this.zOrder,labels:[...this.labels.map(e=>e.toJSON())]};return await n.tasks.saveTask(this.id,e),this}const t={name:this.name,labels:this.labels.map(e=>e.toJSON()),image_quality:this.imageQuality,z_order:Boolean(this.zOrder)};this.bugTracker&&(t.bug_tracker=this.bugTracker),this.segmentSize&&(t.segment_size=this.segmentSize),this.overlap&&(t.overlap=this.overlap);const r={client_files:this.clientFiles,server_files:this.serverFiles,remote_files:[]},o=await n.tasks.createTask(t,r,e);return new c(o)},c.prototype.delete.implementation=async function(){n.tasks.deleteTask(this.id)},c.prototype.frames.get.implementation=async function(e){if(e>=this.size)throw new window.cvat.exceptions.ArgumentError(`Frame ${e} does not exist in the task`);return await o(this.id,this.mode,e)},e.exports={Job:s,Task:c}})()},function(e,t,r){"use strict";var n=r(11),o=r(135).trim;n({target:"String",proto:!0,forced:r(136)("trim")},{trim:function(){return o(this)}})},function(e,t,r){var n=r(17),o="["+r(75)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),s=function(e){return function(t){var r=String(n(t));return 1&e&&(r=r.replace(i,"")),2&e&&(r=r.replace(a,"")),r}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t,r){var n=r(4),o=r(75);e.exports=function(e){return n(function(){return!!o[e]()||"
"!="
"[e]()||o[e].name!==e})}},function(e,t,r){(function(t){r(9),r(10),r(13),r(77),(()=>{const n=r(21),o=r(32),i={},a={};class s{constructor(e,t,r,n){Object.defineProperties(this,Object.freeze({width:{value:e,writable:!1},height:{value:t,writable:!1},tid:{value:r,writable:!1},number:{value:n,writable:!1}}))}async frame(){return await n.apiWrapper.call(this,s.prototype.frame)}}s.prototype.frame.implementation=async function(){if(!(this.number in a[this.tid])){const e=await o.frames.getFrame(this.tid,this.number);if(window.URL.createObjectURL){const t=window.URL.createObjectURL(new Blob([e]));a[this.tid][this.number]=t}else a[this.tid][this.number]=t.Buffer.from(e,"binary").toString("base64")}return a[this.tid][this.number]},e.exports={FrameData:s,getFrame:async function(e,t,r){if(e in i||(i[e]={},i[e].meta=await o.frames.getMeta(e),a[e]={}),!(r in i[e])){let n=null;if("interpolation"===t)[n]=i[e].meta;else{if("annotation"!==t)throw new window.cvat.exceptions.ArgumentError(`Invalid mode is specified ${t}`);if(r>=i[e].meta.length)throw new window.cvat.exceptions.ArgumentError(`Meta information about frame ${r} can't be received from the server`);n=i[e].meta[r]}i[e][r]=new s(n.width,n.height,e,r)}return i[e][r]}}})()}).call(this,r(33))},function(e,t,r){"use strict";var n=r(42).charAt,o=r(16),i=r(64),a=o.set,s=o.getterFor("String Iterator");i(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),r=t.string,o=t.index;return o>=r.length?{value:void 0,done:!0}:(e=n(r,o),t.index+=e.length,{value:e,done:!1})})},function(e,t,r){"use strict";var n=r(6),o=r(4),i=r(63),a=r(52),s=r(44),c=r(31),u=r(45),l=Object.assign;e.exports=!l||o(function(){var e={},t={},r=Symbol();return e[r]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=l({},e)[r]||"abcdefghijklmnopqrst"!=i(l({},t)).join("")})?function(e,t){for(var r=c(e),o=arguments.length,l=1,f=a.f,p=s.f;o>l;)for(var h,d=u(arguments[l++]),v=f?i(d).concat(f(d)):i(d),g=v.length,m=0;g>m;)h=v[m++],n&&!p.call(d,h)||(r[h]=d[h]);return r}:l},function(e,t,r){"use strict";var n=r(29),o=r(31),i=r(56),a=r(55),s=r(26),c=r(141),u=r(30);e.exports=function(e){var t,r,l,f,p=o(e),h="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,g=void 0!==v,m=0,b=u(p);if(g&&(v=n(v,d>2?arguments[2]:void 0,2)),null==b||h==Array&&a(b))for(r=new h(t=s(p.length));t>m;m++)c(r,m,g?v(p[m],m):p[m]);else for(f=b.call(p),r=new h;!(l=f.next()).done;m++)c(r,m,g?i(f,v,[l.value,m],!0):l.value);return r.length=m,r}},function(e,t,r){"use strict";var n=r(35),o=r(12),i=r(22);e.exports=function(e,t,r){var a=n(t);a in e?o.f(e,a,i(0,r)):e[a]=r}},function(e,t,r){"use strict";var n=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,c=function(e){return e+22+75*(e<26)},u=function(e,t,r){var n=0;for(e=r?a(e/700):e>>1,e+=a(e/t);e>455;n+=36)e=a(e/35);return a(n+36*e/(e+38))},l=function(e){var t,r,n=[],o=(e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=e.charCodeAt(r++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),r--)}else t.push(o)}return t}(e)).length,l=128,f=0,p=72;for(t=0;t<e.length;t++)(r=e[t])<128&&n.push(s(r));var h=n.length,d=h;for(h&&n.push("-");d<o;){var v=2147483647;for(t=0;t<e.length;t++)(r=e[t])>=l&&r<v&&(v=r);var g=d+1;if(v-l>a((2147483647-f)/g))throw RangeError(i);for(f+=(v-l)*g,l=v,t=0;t<e.length;t++){if((r=e[t])<l&&++f>2147483647)throw RangeError(i);if(r==l){for(var m=f,b=36;;b+=36){var w=b<=p?1:b>=p+26?26:b-p;if(m<w)break;var y=m-w,x=36-w;n.push(s(c(w+y%x))),m=a(y/x)}n.push(s(c(m))),p=u(f,g,d==h),f=0,++d}}++f,++l}return n.join("")};e.exports=function(e){var t,r,i=[],a=e.toLowerCase().replace(o,".").split(".");for(t=0;t<a.length;t++)r=a[t],i.push(n.test(r)?"xn--"+l(r):r);return i.join(".")}},function(e,t,r){"use strict";r(9);var n=r(11),o=r(78),i=r(15),a=r(54),s=r(19),c=r(65),u=r(16),l=r(41),f=r(5),p=r(29),h=r(2),d=r(7),v=r(144),g=r(30),m=r(1)("iterator"),b=u.set,w=u.getterFor("URLSearchParams"),y=u.getterFor("URLSearchParamsIterator"),x=/\+/g,S=Array(4),O=function(e){return S[e-1]||(S[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},j=function(e){try{return decodeURIComponent(e)}catch(t){return e}},k=function(e){var t=e.replace(x," "),r=4;try{return decodeURIComponent(t)}catch(e){for(;r;)t=t.replace(O(r--),j);return t}},E=/[!'()~]|%20/g,A={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},T=function(e){return A[e]},P=function(e){return encodeURIComponent(e).replace(E,T)},I=function(e,t){if(t)for(var r,n,o=t.split("&"),i=0;i<o.length;)(r=o[i++]).length&&(n=r.split("="),e.push({key:k(n.shift()),value:k(n.join("="))}))},R=function(e){this.entries.length=0,I(this.entries,e)},C=function(e,t){if(e<t)throw TypeError("Not enough arguments")},L=c(function(e,t){b(this,{type:"URLSearchParamsIterator",iterator:v(w(e).entries),kind:t})},"Iterator",function(){var e=y(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),N=function(){l(this,N,"URLSearchParams");var e,t,r,n,o,i,a,s=arguments.length>0?arguments[0]:void 0,c=[];if(b(this,{type:"URLSearchParams",entries:c,updateURL:function(){},updateSearchParams:R}),void 0!==s)if(d(s))if("function"==typeof(e=g(s)))for(t=e.call(s);!(r=t.next()).done;){if((o=(n=v(h(r.value))).next()).done||(i=n.next()).done||!n.next().done)throw TypeError("Expected sequence with length 2");c.push({key:o.value+"",value:i.value+""})}else for(a in s)f(s,a)&&c.push({key:a,value:s[a]+""});else I(c,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},$=N.prototype;a($,{append:function(e,t){C(arguments.length,2);var r=w(this);r.entries.push({key:e+"",value:t+""}),r.updateURL()},delete:function(e){C(arguments.length,1);for(var t=w(this),r=t.entries,n=e+"",o=0;o<r.length;)r[o].key===n?r.splice(o,1):o++;t.updateURL()},get:function(e){C(arguments.length,1);for(var t=w(this).entries,r=e+"",n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){C(arguments.length,1);for(var t=w(this).entries,r=e+"",n=[],o=0;o<t.length;o++)t[o].key===r&&n.push(t[o].value);return n},has:function(e){C(arguments.length,1);for(var t=w(this).entries,r=e+"",n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){C(arguments.length,1);for(var r,n=w(this),o=n.entries,i=!1,a=e+"",s=t+"",c=0;c<o.length;c++)(r=o[c]).key===a&&(i?o.splice(c--,1):(i=!0,r.value=s));i||o.push({key:a,value:s}),n.updateURL()},sort:function(){var e,t,r,n=w(this),o=n.entries,i=o.slice();for(o.length=0,r=0;r<i.length;r++){for(e=i[r],t=0;t<r;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===r&&o.push(e)}n.updateURL()},forEach:function(e){for(var t,r=w(this).entries,n=p(e,arguments.length>1?arguments[1]:void 0,3),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new L(this,"keys")},values:function(){return new L(this,"values")},entries:function(){return new L(this,"entries")}},{enumerable:!0}),i($,m,$.entries),i($,"toString",function(){for(var e,t=w(this).entries,r=[],n=0;n<t.length;)e=t[n++],r.push(P(e.key)+"="+P(e.value));return r.join("&")},{enumerable:!0}),s(N,"URLSearchParams"),n({global:!0,forced:!o},{URLSearchParams:N}),e.exports={URLSearchParams:N,getState:w}},function(e,t,r){var n=r(2),o=r(30);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return n(t.call(e))}},function(e,t,r){r(9),r(13),r(76),(()=>{e.exports={Attribute:class{constructor(e){const t={id:void 0,default_value:void 0,input_type:void 0,mutable:void 0,name:void 0,values:void 0};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.prototype.hasOwnProperty.call(e,r)&&(Array.isArray(e[r])?t[r]=[...e[r]]:t[r]=e[r]);if(!Object.values(window.cvat.enums.AttributeType).includes(t.input_type))throw new window.cvat.exceptions.ArgumentError(`Got invalid attribute type ${t.input_type}`);Object.defineProperties(this,Object.freeze({id:{get:()=>t.id},defaultValue:{get:()=>t.default_value},inputType:{get:()=>t.input_type},mutable:{get:()=>t.mutable},name:{get:()=>t.name},values:{get:()=>[...t.values]}}))}toJSON(){const e={name:this.name,mutable:this.mutable,input_type:this.inputType,default_value:this.defaultValue,values:this.values};return void 0!==this.id&&(e.id=this.id),e}},Label:class{constructor(e){const t={id:void 0,name:void 0};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);if(t.attributes=[],Object.prototype.hasOwnProperty.call(e,"attributes")&&Array.isArray(e.attributes))for(const r of e.attributes)t.attributes.push(new window.cvat.classes.Attribute(r));Object.defineProperties(this,Object.freeze({id:{get:()=>t.id},name:{get:()=>t.name},attributes:{get:()=>[...t.attributes]}}))}toJSON(){const e={name:this.name,attributes:[...this.attributes.map(e=>e.toJSON())]};return void 0!==this.id&&(e.id=this.id),e}}}})()},function(e,t){(()=>{const t=Object.freeze({DIR:"DIR",REG:"REG"}),r=Object.freeze({ANNOTATION:"annotation",VALIDATION:"validation",COMPLETED:"completed"}),n=Object.freeze({ANNOTATION:"annotation",INTERPOLATION:"interpolation"}),o=Object.freeze({CHECKBOX:"checkbox",RADIO:"radio",SELECT:"select",NUMBER:"number",TEXT:"text"}),i=Object.freeze({TAG:"tag",SHAPE:"shape",TRACK:"track"}),a=Object.freeze({RECTANGLE:"rectangle",POLYGON:"polygon",POLYLINE:"polyline",POINTS:"points"}),s=Object.freeze({frameDownloaded:0});e.exports={ShareFileType:t,TaskStatus:r,TaskMode:n,AttributeType:o,ObjectType:i,ObjectShape:a,LogType:{pasteObject:0,changeAttribute:1,dragObject:2,deleteObject:3,pressShortcut:4,resizeObject:5,sendLogs:6,saveJob:7,jumpFrame:8,drawObject:9,changeLabel:10,sendTaskInfo:11,loadJob:12,moveImage:13,zoomImage:14,lockObject:15,mergeObjects:16,copyObject:17,propagateObject:18,undoAction:19,redoAction:20,sendUserActivity:21,sendException:22,changeFrame:23,debugInfo:24,fitImage:25,rotateImage:26},EventType:s}})()},function(e){e.exports={name:"cvat.js",version:"1.0.0",description:"Part of Computer Vision Tool which presents an interface for client-side integration",main:"babel.config.js",scripts:{build:"webpack",test:"jest --config=jest.config.js",docs:"jsdoc --readme README.md src/*.js -p -c jsdoc.config.js -d docs"},author:"Intel",license:"MIT",devDependencies:{"@babel/cli":"^7.4.4","@babel/core":"^7.4.4","@babel/preset-env":"^7.4.4","babel-eslint":"^10.0.1","babel-loader":"^8.0.6","core-js":"^3.0.1",jest:"^24.8.0","jest-junit":"^6.4.0",jsdoc:"^3.6.2",webpack:"^4.31.0","webpack-cli":"^3.3.2"},dependencies:{axios:"^0.18.0","browser-env":"^3.2.6","error-stack-parser":"^2.0.2","jest-config":"^24.8.0","js-cookie":"^2.2.0",platform:"^1.3.5","stacktrace-gps":"^3.0.2"}}},function(e,t,r){r(9),r(10),r(13),r(77),(()=>{const t=r(21),n=r(32);function o(e){return"boolean"==typeof e}function i(e){return"number"==typeof e&&Number.isInteger(e)}function a(e){for(const t in this)if(Object.prototype.hasOwnProperty.call(this,t)&&this[t]===e)return!0;return!1}function s(e){return"string"==typeof e}function c(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(!(r in t))throw new window.cvat.exceptions.ArgumentError(`Unsupported filter property has been recieved: "${r}"`);if(!t[r](e[r]))throw new window.cvat.exceptions.ArgumentError(`Received filter property ${r} is not satisfied for checker`)}}e.exports=function(e){return e.plugins.list.implementation=t.list,e.plugins.register.implementation=t.register,e.server.about.implementation=async()=>await n.server.about(),e.server.share.implementation=async e=>await n.server.share(e),e.server.login.implementation=async(e,t)=>{await n.server.login(e,t)},e.users.get.implementation=async e=>{c(e,{self:o});let t=null;return t=(t="self"in e&&e.self?[t=await n.users.getSelf()]:await n.users.getUsers()).map(e=>new window.cvat.classes.User(e))},e.jobs.get.implementation=async e=>{if(c(e,{taskID:i,jobID:i}),"taskID"in e&&"jobID"in e)throw new window.cvat.exceptions.ArgumentError('Only one of fields "taskID" and "jobID" allowed simultaneously');if(!Object.keys(e).length)throw new window.cvat.exceptions.ArgumentError("Job filter must not be empty");let t=null;if("taskID"in e)t=await n.tasks.getTasks(`id=${e.taskID}`);else{const[r]=await n.jobs.getJob(e.jobID);t=await n.tasks.getTasks(`id=${r.task_id}`)}return t.length?(t=new window.cvat.classes.Task(t[0]),e.jobID?t.jobs.filter(t=>t.id===e.jobID):t.jobs):[]},e.tasks.get.implementation=async e=>{if(c(e,{page:i,name:s,id:i,owner:s,assignee:s,search:s,status:a.bind(window.cvat.enums.TaskStatus),mode:a.bind(window.cvat.enums.TaskMode)}),"search"in e&&Object.keys(e).length>1&&!("page"in e&&2===Object.keys(e).length))throw new window.cvat.exceptions.ArgumentError('Do not use the filter field "search" with others');if("id"in e&&Object.keys(e).length>1&&!("page"in e&&2===Object.keys(e).length))throw new window.cvat.exceptions.ArgumentError('Do not use the filter field "id" with others');const t=new URLSearchParams;for(const r of["name","owner","assignee","search","status","mode","id","page"])Object.prototype.hasOwnProperty.call(e,r)&&t.set(r,e[r]);const r=await n.tasks.getTasks(t.toString()),o=r.map(e=>new window.cvat.classes.Task(e));return o.count=r.count,o},e}})()}]);
|