webui-aria2/build/app.js

1 line
325 KiB
JavaScript
Raw Normal View History

!function(e){function t(t){for(var a,r,s=t[0],l=t[1],c=t[2],u=0,p=[];u<s.length;u++)r=s[u],o[r]&&p.push(o[r][0]),o[r]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a]);for(d&&d(t);p.length;)p.shift()();return i.push.apply(i,c||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],a=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(a=!1)}a&&(i.splice(t--,1),e=r(r.s=n[0]))}return e}var a={},o={0:0},i=[];function r(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=a,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 a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));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="";var s=window.webpackJsonp=window.webpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var d=l;i.push([29,1]),n()}([,,function(e,t,n){"use strict";var a=n(0),o=n.n(a);t.a=o.a.module("webui.services.alerts",["webui.services.deps"]).factory("$alerts",["$_",function(e){var t=[];return{addAlert:function(){var n=Array.prototype.slice.call(arguments,0);setTimeout(function(){e.each(t,function(e){e.apply({},n)})},0)},addAlerter:function(e){t.push(e)},log:function(e){this.addAlert(e,"info")}}}]).name},function(e,t,n){"use strict";var a=n(0),o=n.n(a);t.a=o.a.module("webui.services.base64",[]).factory("$base64",[function(){var e={},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={indexOf:function(e){return e.charCodeAt(0)},charAt:String.fromCharCode};function a(e,t,n,a,o,i){var r,s,l,c=0,d="",u=1,p=1,h=(e=String(e)).length;for(r=0;r<h||!t&&p>1;r+=1){if(c*=o,u*=o,r<h){if((s=n.indexOf(e.charAt(r)))<=-1||s>=o)throw new RangeError;p*=o,c+=s}for(;u>=i;)u/=i,p>1&&(l=c,c%=u,d+=a.charAt((l-c)/u),p/=i)}return d}return e.btoa=function(e){return(e=a(e,!1,n,t,256,64))+"====".slice(e.length%4||4)},e.atob=function(e){var o;for(o=(e=String(e).split("=")).length-1;o>=0;o-=1){if(e[o].length%4==1)throw new RangeError;e[o]=a(e[o],!0,t,n,64,256)}return e.join("")},e}]).name},function(e,t,n){"use strict";var a=n(0),o=n.n(a);t.a=o.a.module("webui.services.configuration",[]).constant("$name","Aria2 WebUI").constant("$titlePattern","active: {active} - waiting: {waiting} - stopped: {stopped} — {name}").constant("$pageSize",11).constant("$authconf",{host:location.protocol.startsWith("http")?location.hostname:"localhost",path:"/jsonrpc",port:6800,encrypt:!1,auth:{},directURL:""}).constant("$enable",{torrent:!0,metalink:!0,sidebar:{show:!0,stats:!0,filters:!0,starredProps:!0}}).constant("$starredProps",["dir","conf-path","auto-file-renaming","max-connection-per-server"]).constant("$downloadProps",["header","http-user","http-passwd","pause","dir","max-connection-per-server"]).constant("$globalTimeout",1e3).name},function(e,t,n){"use strict";var a=n(0),o=n.n(a),i=n(1),r=n.n(i),s=n(6),l=n.n(s);t.a=o.a.module("webui.services.deps",[]).value("$",r.a).value("$_",l.a).value("$json",JSON).name},,function(e,t,n){"use strict";var a=n(0),o=n.n(a);t.a=o.a.module("webui.services.errors",[]).value("$getErrorStatus",function(e){switch(e-=1){case 0:return"download was unsuccessful";case 1:return"unknown error occurred";case 2:return"time out occurred";case 3:return"resource was not found";case 4:return'aria2 saw the specified number of "resource not found" error. See --max-file-not-found option';case 5:return"download aborted because download speed was too slow. See --lowest-speed-limit option";case 6:return"there were unfinished