diff --git a/src/web/templates/base.html b/src/web/templates/base.html
index 79bb96f5..da316687 100644
--- a/src/web/templates/base.html
+++ b/src/web/templates/base.html
@@ -34,5503 +34,10 @@
document.getElementById("flash").innerHTML = "
" + Notification + "{{ _(" The Web Interface will become unresponsive momentarily. Reload this page after the Pi has started up again.") }}
";
window.scrollTo(0,0);
}
-
-/*
-dropzone.min.js v5.9.3
-
-Slightly modified for the RaSCSI project to work with jinja2 templatization and pybabel:
- - Placeholder symbols changed to avoid interfering with the jinja2 template syntax
- - Curly braces removed
- - filesize -> FILE_SIZE
- - maxFilesize -> MAX_FILE_SIZE
- - UI strings enclosed in gettext calls and slightly reformatted to be easier to translate
-
-LICENSE
-
-(The MIT License)
-
-Copyright (c) 2021 Matias Meno
-Logo (c) 2015 "1910" www.weare1910.com
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-
-! function(e, t) {
- if ("object" == typeof exports && "object" == typeof module) module.exports = t();
- else if ("function" == typeof define && define.amd) define([], t);
- else {
- var n = t();
- for (var r in n)("object" == typeof exports ? exports : e)[r] = n[r]
- }
-}(self, (function() {
- return function() {
- var e = {
- 3099: function(e) {
- e.exports = function(e) {
- if ("function" != typeof e) throw TypeError(String(e) + " is not a function");
- return e
- }
- },
- 6077: function(e, t, n) {
- var r = n(111);
- e.exports = function(e) {
- if (!r(e) && null !== e) throw TypeError("Can't set " + String(e) + " as a prototype");
- return e
- }
- },
- 1223: function(e, t, n) {
- var r = n(5112),
- i = n(30),
- o = n(3070),
- a = r("unscopables"),
- u = Array.prototype;
- null == u[a] && o.f(u, a, {
- configurable: !0,
- value: i(null)
- }), e.exports = function(e) {
- u[a][e] = !0
- }
- },
- 1530: function(e, t, n) {
- "use strict";
- var r = n(8710).charAt;
- e.exports = function(e, t, n) {
- return t + (n ? r(e, t).length : 1)
- }
- },
- 5787: function(e) {
- e.exports = function(e, t, n) {
- if (!(e instanceof t)) throw TypeError("Incorrect " + (n ? n + " " : "") + "invocation");
- return e
- }
- },
- 9670: function(e, t, n) {
- var r = n(111);
- e.exports = function(e) {
- if (!r(e)) throw TypeError(String(e) + " is not an object");
- return e
- }
- },
- 4019: function(e) {
- e.exports = "undefined" != typeof ArrayBuffer && "undefined" != typeof DataView
- },
- 260: function(e, t, n) {
- "use strict";
- var r, i = n(4019),
- o = n(9781),
- a = n(7854),
- u = n(111),
- s = n(6656),
- l = n(648),
- c = n(8880),
- f = n(1320),
- p = n(3070).f,
- h = n(9518),
- d = n(7674),
- v = n(5112),
- y = n(9711),
- g = a.Int8Array,
- m = g && g.prototype,
- b = a.Uint8ClampedArray,
- x = b && b.prototype,
- w = g && h(g),
- E = m && h(m),
- k = Object.prototype,
- A = k.isPrototypeOf,
- S = v("toStringTag"),
- F = y("TYPED_ARRAY_TAG"),
- T = i && !!d && "Opera" !== l(a.opera),
- C = !1,
- L = {
- Int8Array: 1,
- Uint8Array: 1,
- Uint8ClampedArray: 1,
- Int16Array: 2,
- Uint16Array: 2,
- Int32Array: 4,
- Uint32Array: 4,
- Float32Array: 4,
- Float64Array: 8
- },
- R = {
- BigInt64Array: 8,
- BigUint64Array: 8
- },
- I = function(e) {
- if (!u(e)) return !1;
- var t = l(e);
- return s(L, t) || s(R, t)
- };
- for (r in L) a[r] || (T = !1);
- if ((!T || "function" != typeof w || w === Function.prototype) && (w = function() {
- throw TypeError("Incorrect invocation")
- }, T))
- for (r in L) a[r] && d(a[r], w);
- if ((!T || !E || E === k) && (E = w.prototype, T))
- for (r in L) a[r] && d(a[r].prototype, E);
- if (T && h(x) !== E && d(x, E), o && !s(E, S))
- for (r in C = !0, p(E, S, {
- get: function() {
- return u(this) ? this[F] : void 0
- }
- }), L) a[r] && c(a[r], F, r);
- e.exports = {
- NATIVE_ARRAY_BUFFER_VIEWS: T,
- TYPED_ARRAY_TAG: C && F,
- aTypedArray: function(e) {
- if (I(e)) return e;
- throw TypeError("Target is not a typed array")
- },
- aTypedArrayConstructor: function(e) {
- if (d) {
- if (A.call(w, e)) return e
- } else
- for (var t in L)
- if (s(L, r)) {
- var n = a[t];
- if (n && (e === n || A.call(n, e))) return e
- } throw TypeError("Target is not a typed array constructor")
- },
- exportTypedArrayMethod: function(e, t, n) {
- if (o) {
- if (n)
- for (var r in L) {
- var i = a[r];
- i && s(i.prototype, e) && delete i.prototype[e]
- }
- E[e] && !n || f(E, e, n ? t : T && m[e] || t)
- }
- },
- exportTypedArrayStaticMethod: function(e, t, n) {
- var r, i;
- if (o) {
- if (d) {
- if (n)
- for (r in L)(i = a[r]) && s(i, e) && delete i[e];
- if (w[e] && !n) return;
- try {
- return f(w, e, n ? t : T && g[e] || t)
- } catch (e) {}
- }
- for (r in L) !(i = a[r]) || i[e] && !n || f(i, e, t)
- }
- },
- isView: function(e) {
- if (!u(e)) return !1;
- var t = l(e);
- return "DataView" === t || s(L, t) || s(R, t)
- },
- isTypedArray: I,
- TypedArray: w,
- TypedArrayPrototype: E
- }
- },
- 3331: function(e, t, n) {
- "use strict";
- var r = n(7854),
- i = n(9781),
- o = n(4019),
- a = n(8880),
- u = n(2248),
- s = n(7293),
- l = n(5787),
- c = n(9958),
- f = n(7466),
- p = n(7067),
- h = n(1179),
- d = n(9518),
- v = n(7674),
- y = n(8006).f,
- g = n(3070).f,
- m = n(1285),
- b = n(8003),
- x = n(9909),
- w = x.get,
- E = x.set,
- k = "ArrayBuffer",
- A = "DataView",
- S = "Wrong index",
- F = r.ArrayBuffer,
- T = F,
- C = r.DataView,
- L = C && C.prototype,
- R = Object.prototype,
- I = r.RangeError,
- U = h.pack,
- O = h.unpack,
- _ = function(e) {
- return [255 & e]
- },
- M = function(e) {
- return [255 & e, e >> 8 & 255]
- },
- z = function(e) {
- return [255 & e, e >> 8 & 255, e >> 16 & 255, e >> 24 & 255]
- },
- P = function(e) {
- return e[3] << 24 | e[2] << 16 | e[1] << 8 | e[0]
- },
- j = function(e) {
- return U(e, 23, 4)
- },
- D = function(e) {
- return U(e, 52, 8)
- },
- N = function(e, t) {
- g(e.prototype, t, {
- get: function() {
- return w(this)[t]
- }
- })
- },
- B = function(e, t, n, r) {
- var i = p(n),
- o = w(e);
- if (i + t > o.byteLength) throw I(S);
- var a = w(o.buffer).bytes,
- u = i + o.byteOffset,
- s = a.slice(u, u + t);
- return r ? s : s.reverse()
- },
- q = function(e, t, n, r, i, o) {
- var a = p(n),
- u = w(e);
- if (a + t > u.byteLength) throw I(S);
- for (var s = w(u.buffer).bytes, l = a + u.byteOffset, c = r(+i), f = 0; f < t; f++) s[l + f] = c[o ? f : t - f - 1]
- };
- if (o) {
- if (!s((function() {
- F(1)
- })) || !s((function() {
- new F(-1)
- })) || s((function() {
- return new F, new F(1.5), new F(NaN), F.name != k
- }))) {
- for (var W, H = (T = function(e) {
- return l(this, T), new F(p(e))
- }).prototype = F.prototype, Y = y(F), G = 0; Y.length > G;)(W = Y[G++]) in T || a(T, W, F[W]);
- H.constructor = T
- }
- v && d(L) !== R && v(L, R);
- var Q = new C(new T(2)),
- $ = L.setInt8;
- Q.setInt8(0, 2147483648), Q.setInt8(1, 2147483649), !Q.getInt8(0) && Q.getInt8(1) || u(L, {
- setInt8: function(e, t) {
- $.call(this, e, t << 24 >> 24)
- },
- setUint8: function(e, t) {
- $.call(this, e, t << 24 >> 24)
- }
- }, {
- unsafe: !0
- })
- } else T = function(e) {
- l(this, T, k);
- var t = p(e);
- E(this, {
- bytes: m.call(new Array(t), 0),
- byteLength: t
- }), i || (this.byteLength = t)
- }, C = function(e, t, n) {
- l(this, C, A), l(e, T, A);
- var r = w(e).byteLength,
- o = c(t);
- if (o < 0 || o > r) throw I("Wrong offset");
- if (o + (n = void 0 === n ? r - o : f(n)) > r) throw I("Wrong length");
- E(this, {
- buffer: e,
- byteLength: n,
- byteOffset: o
- }), i || (this.buffer = e, this.byteLength = n, this.byteOffset = o)
- }, i && (N(T, "byteLength"), N(C, "buffer"), N(C, "byteLength"), N(C, "byteOffset")), u(C.prototype, {
- getInt8: function(e) {
- return B(this, 1, e)[0] << 24 >> 24
- },
- getUint8: function(e) {
- return B(this, 1, e)[0]
- },
- getInt16: function(e) {
- var t = B(this, 2, e, arguments.length > 1 ? arguments[1] : void 0);
- return (t[1] << 8 | t[0]) << 16 >> 16
- },
- getUint16: function(e) {
- var t = B(this, 2, e, arguments.length > 1 ? arguments[1] : void 0);
- return t[1] << 8 | t[0]
- },
- getInt32: function(e) {
- return P(B(this, 4, e, arguments.length > 1 ? arguments[1] : void 0))
- },
- getUint32: function(e) {
- return P(B(this, 4, e, arguments.length > 1 ? arguments[1] : void 0)) >>> 0
- },
- getFloat32: function(e) {
- return O(B(this, 4, e, arguments.length > 1 ? arguments[1] : void 0), 23)
- },
- getFloat64: function(e) {
- return O(B(this, 8, e, arguments.length > 1 ? arguments[1] : void 0), 52)
- },
- setInt8: function(e, t) {
- q(this, 1, e, _, t)
- },
- setUint8: function(e, t) {
- q(this, 1, e, _, t)
- },
- setInt16: function(e, t) {
- q(this, 2, e, M, t, arguments.length > 2 ? arguments[2] : void 0)
- },
- setUint16: function(e, t) {
- q(this, 2, e, M, t, arguments.length > 2 ? arguments[2] : void 0)
- },
- setInt32: function(e, t) {
- q(this, 4, e, z, t, arguments.length > 2 ? arguments[2] : void 0)
- },
- setUint32: function(e, t) {
- q(this, 4, e, z, t, arguments.length > 2 ? arguments[2] : void 0)
- },
- setFloat32: function(e, t) {
- q(this, 4, e, j, t, arguments.length > 2 ? arguments[2] : void 0)
- },
- setFloat64: function(e, t) {
- q(this, 8, e, D, t, arguments.length > 2 ? arguments[2] : void 0)
- }
- });
- b(T, k), b(C, A), e.exports = {
- ArrayBuffer: T,
- DataView: C
- }
- },
- 1048: function(e, t, n) {
- "use strict";
- var r = n(7908),
- i = n(1400),
- o = n(7466),
- a = Math.min;
- e.exports = [].copyWithin || function(e, t) {
- var n = r(this),
- u = o(n.length),
- s = i(e, u),
- l = i(t, u),
- c = arguments.length > 2 ? arguments[2] : void 0,
- f = a((void 0 === c ? u : i(c, u)) - l, u - s),
- p = 1;
- for (l < s && s < l + f && (p = -1, l += f - 1, s += f - 1); f-- > 0;) l in n ? n[s] = n[l] : delete n[s], s += p, l += p;
- return n
- }
- },
- 1285: function(e, t, n) {
- "use strict";
- var r = n(7908),
- i = n(1400),
- o = n(7466);
- e.exports = function(e) {
- for (var t = r(this), n = o(t.length), a = arguments.length, u = i(a > 1 ? arguments[1] : void 0, n), s = a > 2 ? arguments[2] : void 0, l = void 0 === s ? n : i(s, n); l > u;) t[u++] = e;
- return t
- }
- },
- 8533: function(e, t, n) {
- "use strict";
- var r = n(2092).forEach,
- i = n(9341)("forEach");
- e.exports = i ? [].forEach : function(e) {
- return r(this, e, arguments.length > 1 ? arguments[1] : void 0)
- }
- },
- 8457: function(e, t, n) {
- "use strict";
- var r = n(9974),
- i = n(7908),
- o = n(3411),
- a = n(7659),
- u = n(7466),
- s = n(6135),
- l = n(1246);
- e.exports = function(e) {
- var t, n, c, f, p, h, d = i(e),
- v = "function" == typeof this ? this : Array,
- y = arguments.length,
- g = y > 1 ? arguments[1] : void 0,
- m = void 0 !== g,
- b = l(d),
- x = 0;
- if (m && (g = r(g, y > 2 ? arguments[2] : void 0, 2)), null == b || v == Array && a(b))
- for (n = new v(t = u(d.length)); t > x; x++) h = m ? g(d[x], x) : d[x], s(n, x, h);
- else
- for (p = (f = b.call(d)).next, n = new v; !(c = p.call(f)).done; x++) h = m ? o(f, g, [c.value, x], !0) : c.value, s(n, x, h);
- return n.length = x, n
- }
- },
- 1318: function(e, t, n) {
- var r = n(5656),
- i = n(7466),
- o = n(1400),
- a = function(e) {
- return function(t, n, a) {
- var u, s = r(t),
- l = i(s.length),
- c = o(a, l);
- if (e && n != n) {
- for (; l > c;)
- if ((u = s[c++]) != u) return !0
- } else
- for (; l > c; c++)
- if ((e || c in s) && s[c] === n) return e || c || 0;
- return !e && -1
- }
- };
- e.exports = {
- includes: a(!0),
- indexOf: a(!1)
- }
- },
- 2092: function(e, t, n) {
- var r = n(9974),
- i = n(8361),
- o = n(7908),
- a = n(7466),
- u = n(5417),
- s = [].push,
- l = function(e) {
- var t = 1 == e,
- n = 2 == e,
- l = 3 == e,
- c = 4 == e,
- f = 6 == e,
- p = 7 == e,
- h = 5 == e || f;
- return function(d, v, y, g) {
- for (var m, b, x = o(d), w = i(x), E = r(v, y, 3), k = a(w.length), A = 0, S = g || u, F = t ? S(d, k) : n || p ? S(d, 0) : void 0; k > A; A++)
- if ((h || A in w) && (b = E(m = w[A], A, x), e))
- if (t) F[A] = b;
- else if (b) switch (e) {
- case 3:
- return !0;
- case 5:
- return m;
- case 6:
- return A;
- case 2:
- s.call(F, m)
- } else switch (e) {
- case 4:
- return !1;
- case 7:
- s.call(F, m)
- }
- return f ? -1 : l || c ? c : F
- }
- };
- e.exports = {
- forEach: l(0),
- map: l(1),
- filter: l(2),
- some: l(3),
- every: l(4),
- find: l(5),
- findIndex: l(6),
- filterOut: l(7)
- }
- },
- 6583: function(e, t, n) {
- "use strict";
- var r = n(5656),
- i = n(9958),
- o = n(7466),
- a = n(9341),
- u = Math.min,
- s = [].lastIndexOf,
- l = !!s && 1 / [1].lastIndexOf(1, -0) < 0,
- c = a("lastIndexOf"),
- f = l || !c;
- e.exports = f ? function(e) {
- if (l) return s.apply(this, arguments) || 0;
- var t = r(this),
- n = o(t.length),
- a = n - 1;
- for (arguments.length > 1 && (a = u(a, i(arguments[1]))), a < 0 && (a = n + a); a >= 0; a--)
- if (a in t && t[a] === e) return a || 0;
- return -1
- } : s
- },
- 1194: function(e, t, n) {
- var r = n(7293),
- i = n(5112),
- o = n(7392),
- a = i("species");
- e.exports = function(e) {
- return o >= 51 || !r((function() {
- var t = [];
- return (t.constructor = {})[a] = function() {
- return {
- foo: 1
- }
- }, 1 !== t[e](Boolean).foo
- }))
- }
- },
- 9341: function(e, t, n) {
- "use strict";
- var r = n(7293);
- e.exports = function(e, t) {
- var n = [][e];
- return !!n && r((function() {
- n.call(null, t || function() {
- throw 1
- }, 1)
- }))
- }
- },
- 3671: function(e, t, n) {
- var r = n(3099),
- i = n(7908),
- o = n(8361),
- a = n(7466),
- u = function(e) {
- return function(t, n, u, s) {
- r(n);
- var l = i(t),
- c = o(l),
- f = a(l.length),
- p = e ? f - 1 : 0,
- h = e ? -1 : 1;
- if (u < 2)
- for (;;) {
- if (p in c) {
- s = c[p], p += h;
- break
- }
- if (p += h, e ? p < 0 : f <= p) throw TypeError("Reduce of empty array with no initial value")
- }
- for (; e ? p >= 0 : f > p; p += h) p in c && (s = n(s, c[p], p, l));
- return s
- }
- };
- e.exports = {
- left: u(!1),
- right: u(!0)
- }
- },
- 5417: function(e, t, n) {
- var r = n(111),
- i = n(3157),
- o = n(5112)("species");
- e.exports = function(e, t) {
- var n;
- return i(e) && ("function" != typeof(n = e.constructor) || n !== Array && !i(n.prototype) ? r(n) && null === (n = n[o]) && (n = void 0) : n = void 0), new(void 0 === n ? Array : n)(0 === t ? 0 : t)
- }
- },
- 3411: function(e, t, n) {
- var r = n(9670),
- i = n(9212);
- e.exports = function(e, t, n, o) {
- try {
- return o ? t(r(n)[0], n[1]) : t(n)
- } catch (t) {
- throw i(e), t
- }
- }
- },
- 7072: function(e, t, n) {
- var r = n(5112)("iterator"),
- i = !1;
- try {
- var o = 0,
- a = {
- next: function() {
- return {
- done: !!o++
- }
- },
- return: function() {
- i = !0
- }
- };
- a[r] = function() {
- return this
- }, Array.from(a, (function() {
- throw 2
- }))
- } catch (e) {}
- e.exports = function(e, t) {
- if (!t && !i) return !1;
- var n = !1;
- try {
- var o = {};
- o[r] = function() {
- return {
- next: function() {
- return {
- done: n = !0
- }
- }
- }
- }, e(o)
- } catch (e) {}
- return n
- }
- },
- 4326: function(e) {
- var t = {}.toString;
- e.exports = function(e) {
- return t.call(e).slice(8, -1)
- }
- },
- 648: function(e, t, n) {
- var r = n(1694),
- i = n(4326),
- o = n(5112)("toStringTag"),
- a = "Arguments" == i(function() {
- return arguments
- }());
- e.exports = r ? i : function(e) {
- var t, n, r;
- return void 0 === e ? "Undefined" : null === e ? "Null" : "string" == typeof(n = function(e, t) {
- try {
- return e[t]
- } catch (e) {}
- }(t = Object(e), o)) ? n : a ? i(t) : "Object" == (r = i(t)) && "function" == typeof t.callee ? "Arguments" : r
- }
- },
- 9920: function(e, t, n) {
- var r = n(6656),
- i = n(3887),
- o = n(1236),
- a = n(3070);
- e.exports = function(e, t) {
- for (var n = i(t), u = a.f, s = o.f, l = 0; l < n.length; l++) {
- var c = n[l];
- r(e, c) || u(e, c, s(t, c))
- }
- }
- },
- 8544: function(e, t, n) {
- var r = n(7293);
- e.exports = !r((function() {
- function e() {}
- return e.prototype.constructor = null, Object.getPrototypeOf(new e) !== e.prototype
- }))
- },
- 4994: function(e, t, n) {
- "use strict";
- var r = n(3383).IteratorPrototype,
- i = n(30),
- o = n(9114),
- a = n(8003),
- u = n(7497),
- s = function() {
- return this
- };
- e.exports = function(e, t, n) {
- var l = t + " Iterator";
- return e.prototype = i(r, {
- next: o(1, n)
- }), a(e, l, !1, !0), u[l] = s, e
- }
- },
- 8880: function(e, t, n) {
- var r = n(9781),
- i = n(3070),
- o = n(9114);
- e.exports = r ? function(e, t, n) {
- return i.f(e, t, o(1, n))
- } : function(e, t, n) {
- return e[t] = n, e
- }
- },
- 9114: function(e) {
- e.exports = function(e, t) {
- return {
- enumerable: !(1 & e),
- configurable: !(2 & e),
- writable: !(4 & e),
- value: t
- }
- }
- },
- 6135: function(e, t, n) {
- "use strict";
- var r = n(7593),
- i = n(3070),
- o = n(9114);
- e.exports = function(e, t, n) {
- var a = r(t);
- a in e ? i.f(e, a, o(0, n)) : e[a] = n
- }
- },
- 654: function(e, t, n) {
- "use strict";
- var r = n(2109),
- i = n(4994),
- o = n(9518),
- a = n(7674),
- u = n(8003),
- s = n(8880),
- l = n(1320),
- c = n(5112),
- f = n(1913),
- p = n(7497),
- h = n(3383),
- d = h.IteratorPrototype,
- v = h.BUGGY_SAFARI_ITERATORS,
- y = c("iterator"),
- g = "keys",
- m = "values",
- b = "entries",
- x = function() {
- return this
- };
- e.exports = function(e, t, n, c, h, w, E) {
- i(n, t, c);
- var k, A, S, F = function(e) {
- if (e === h && I) return I;
- if (!v && e in L) return L[e];
- switch (e) {
- case g:
- case m:
- case b:
- return function() {
- return new n(this, e)
- }
- }
- return function() {
- return new n(this)
- }
- },
- T = t + " Iterator",
- C = !1,
- L = e.prototype,
- R = L[y] || L["@@iterator"] || h && L[h],
- I = !v && R || F(h),
- U = "Array" == t && L.entries || R;
- if (U && (k = o(U.call(new e)), d !== Object.prototype && k.next && (f || o(k) === d || (a ? a(k, d) : "function" != typeof k[y] && s(k, y, x)), u(k, T, !0, !0), f && (p[T] = x))), h == m && R && R.name !== m && (C = !0, I = function() {
- return R.call(this)
- }), f && !E || L[y] === I || s(L, y, I), p[t] = I, h)
- if (A = {
- values: F(m),
- keys: w ? I : F(g),
- entries: F(b)
- }, E)
- for (S in A)(v || C || !(S in L)) && l(L, S, A[S]);
- else r({
- target: t,
- proto: !0,
- forced: v || C
- }, A);
- return A
- }
- },
- 9781: function(e, t, n) {
- var r = n(7293);
- e.exports = !r((function() {
- return 7 != Object.defineProperty({}, 1, {
- get: function() {
- return 7
- }
- })[1]
- }))
- },
- 317: function(e, t, n) {
- var r = n(7854),
- i = n(111),
- o = r.document,
- a = i(o) && i(o.createElement);
- e.exports = function(e) {
- return a ? o.createElement(e) : {}
- }
- },
- 8324: function(e) {
- 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
- }
- },
- 8113: function(e, t, n) {
- var r = n(5005);
- e.exports = r("navigator", "userAgent") || ""
- },
- 7392: function(e, t, n) {
- var r, i, o = n(7854),
- a = n(8113),
- u = o.process,
- s = u && u.versions,
- l = s && s.v8;
- l ? i = (r = l.split("."))[0] + r[1] : a && (!(r = a.match(/Edge\/(\d+)/)) || r[1] >= 74) && (r = a.match(/Chrome\/(\d+)/)) && (i = r[1]), e.exports = i && +i
- },
- 748: function(e) {
- e.exports = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"]
- },
- 2109: function(e, t, n) {
- var r = n(7854),
- i = n(1236).f,
- o = n(8880),
- a = n(1320),
- u = n(3505),
- s = n(9920),
- l = n(4705);
- e.exports = function(e, t) {
- var n, c, f, p, h, d = e.target,
- v = e.global,
- y = e.stat;
- if (n = v ? r : y ? r[d] || u(d, {}) : (r[d] || {}).prototype)
- for (c in t) {
- if (p = t[c], f = e.noTargetGet ? (h = i(n, c)) && h.value : n[c], !l(v ? c : d + (y ? "." : "#") + c, e.forced) && void 0 !== f) {
- if (typeof p == typeof f) continue;
- s(p, f)
- }(e.sham || f && f.sham) && o(p, "sham", !0), a(n, c, p, e)
- }
- }
- },
- 7293: function(e) {
- e.exports = function(e) {
- try {
- return !!e()
- } catch (e) {
- return !0
- }
- }
- },
- 7007: function(e, t, n) {
- "use strict";
- n(4916);
- var r = n(1320),
- i = n(7293),
- o = n(5112),
- a = n(2261),
- u = n(8880),
- s = o("species"),
- l = !i((function() {
- var e = /./;
- return e.exec = function() {
- var e = [];
- return e.groups = {
- a: "7"
- }, e
- }, "7" !== "".replace(e, "$")
- })),
- c = "$0" === "a".replace(/./, "$0"),
- f = o("replace"),
- p = !!/./ [f] && "" === /./ [f]("a", "$0"),
- h = !i((function() {
- var e = /(?:)/,
- t = e.exec;
- e.exec = function() {
- return t.apply(this, arguments)
- };
- var n = "ab".split(e);
- return 2 !== n.length || "a" !== n[0] || "b" !== n[1]
- }));
- e.exports = function(e, t, n, f) {
- var d = o(e),
- v = !i((function() {
- var t = {};
- return t[d] = function() {
- return 7
- }, 7 != "" [e](t)
- })),
- y = v && !i((function() {
- var t = !1,
- n = /a/;
- return "split" === e && ((n = {}).constructor = {}, n.constructor[s] = function() {
- return n
- }, n.flags = "", n[d] = /./ [d]), n.exec = function() {
- return t = !0, null
- }, n[d](""), !t
- }));
- if (!v || !y || "replace" === e && (!l || !c || p) || "split" === e && !h) {
- var g = /./ [d],
- m = n(d, "" [e], (function(e, t, n, r, i) {
- return t.exec === a ? v && !i ? {
- done: !0,
- value: g.call(t, n, r)
- } : {
- done: !0,
- value: e.call(n, t, r)
- } : {
- done: !1
- }
- }), {
- REPLACE_KEEPS_$0: c,
- REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: p
- }),
- b = m[0],
- x = m[1];
- r(String.prototype, e, b), r(RegExp.prototype, d, 2 == t ? function(e, t) {
- return x.call(e, this, t)
- } : function(e) {
- return x.call(e, this)
- })
- }
- f && u(RegExp.prototype[d], "sham", !0)
- }
- },
- 9974: function(e, t, n) {
- var r = n(3099);
- e.exports = function(e, t, n) {
- if (r(e), void 0 === t) return e;
- switch (n) {
- case 0:
- return function() {
- return e.call(t)
- };
- case 1:
- return function(n) {
- return e.call(t, n)
- };
- case 2:
- return function(n, r) {
- return e.call(t, n, r)
- };
- case 3:
- return function(n, r, i) {
- return e.call(t, n, r, i)
- }
- }
- return function() {
- return e.apply(t, arguments)
- }
- }
- },
- 5005: function(e, t, n) {
- var r = n(857),
- i = n(7854),
- o = function(e) {
- return "function" == typeof e ? e : void 0
- };
- e.exports = function(e, t) {
- return arguments.length < 2 ? o(r[e]) || o(i[e]) : r[e] && r[e][t] || i[e] && i[e][t]
- }
- },
- 1246: function(e, t, n) {
- var r = n(648),
- i = n(7497),
- o = n(5112)("iterator");
- e.exports = function(e) {
- if (null != e) return e[o] || e["@@iterator"] || i[r(e)]
- }
- },
- 8554: function(e, t, n) {
- var r = n(9670),
- i = n(1246);
- e.exports = function(e) {
- var t = i(e);
- if ("function" != typeof t) throw TypeError(String(e) + " is not iterable");
- return r(t.call(e))
- }
- },
- 647: function(e, t, n) {
- var r = n(7908),
- i = Math.floor,
- o = "".replace,
- a = /\$([$&'`]|\d\d?|<[^>]*>)/g,
- u = /\$([$&'`]|\d\d?)/g;
- e.exports = function(e, t, n, s, l, c) {
- var f = n + e.length,
- p = s.length,
- h = u;
- return void 0 !== l && (l = r(l), h = a), o.call(c, h, (function(r, o) {
- var a;
- switch (o.charAt(0)) {
- case "$":
- return "$";
- case "&":
- return e;
- case "`":
- return t.slice(0, n);
- case "'":
- return t.slice(f);
- case "<":
- a = l[o.slice(1, -1)];
- break;
- default:
- var u = +o;
- if (0 === u) return r;
- if (u > p) {
- var c = i(u / 10);
- return 0 === c ? r : c <= p ? void 0 === s[c - 1] ? o.charAt(1) : s[c - 1] + o.charAt(1) : r
- }
- a = s[u - 1]
- }
- return void 0 === a ? "" : a
- }))
- }
- },
- 7854: function(e, t, n) {
- var r = function(e) {
- return e && e.Math == Math && e
- };
- e.exports = r("object" == typeof globalThis && globalThis) || r("object" == typeof window && window) || r("object" == typeof self && self) || r("object" == typeof n.g && n.g) || function() {
- return this
- }() || Function("return this")()
- },
- 6656: function(e) {
- var t = {}.hasOwnProperty;
- e.exports = function(e, n) {
- return t.call(e, n)
- }
- },
- 3501: function(e) {
- e.exports = {}
- },
- 490: function(e, t, n) {
- var r = n(5005);
- e.exports = r("document", "documentElement")
- },
- 4664: function(e, t, n) {
- var r = n(9781),
- i = n(7293),
- o = n(317);
- e.exports = !r && !i((function() {
- return 7 != Object.defineProperty(o("div"), "a", {
- get: function() {
- return 7
- }
- }).a
- }))
- },
- 1179: function(e) {
- var t = Math.abs,
- n = Math.pow,
- r = Math.floor,
- i = Math.log,
- o = Math.LN2;
- e.exports = {
- pack: function(e, a, u) {
- var s, l, c, f = new Array(u),
- p = 8 * u - a - 1,
- h = (1 << p) - 1,
- d = h >> 1,
- v = 23 === a ? n(2, -24) - n(2, -77) : 0,
- y = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0,
- g = 0;
- for ((e = t(e)) != e || e === 1 / 0 ? (l = e != e ? 1 : 0, s = h) : (s = r(i(e) / o), e * (c = n(2, -s)) < 1 && (s--, c *= 2), (e += s + d >= 1 ? v / c : v * n(2, 1 - d)) * c >= 2 && (s++, c /= 2), s + d >= h ? (l = 0, s = h) : s + d >= 1 ? (l = (e * c - 1) * n(2, a), s += d) : (l = e * n(2, d - 1) * n(2, a), s = 0)); a >= 8; f[g++] = 255 & l, l /= 256, a -= 8);
- for (s = s << a | l, p += a; p > 0; f[g++] = 255 & s, s /= 256, p -= 8);
- return f[--g] |= 128 * y, f
- },
- unpack: function(e, t) {
- var r, i = e.length,
- o = 8 * i - t - 1,
- a = (1 << o) - 1,
- u = a >> 1,
- s = o - 7,
- l = i - 1,
- c = e[l--],
- f = 127 & c;
- for (c >>= 7; s > 0; f = 256 * f + e[l], l--, s -= 8);
- for (r = f & (1 << -s) - 1, f >>= -s, s += t; s > 0; r = 256 * r + e[l], l--, s -= 8);
- if (0 === f) f = 1 - u;
- else {
- if (f === a) return r ? NaN : c ? -1 / 0 : 1 / 0;
- r += n(2, t), f -= u
- }
- return (c ? -1 : 1) * r * n(2, f - t)
- }
- }
- },
- 8361: function(e, t, n) {
- var r = n(7293),
- i = n(4326),
- o = "".split;
- e.exports = r((function() {
- return !Object("z").propertyIsEnumerable(0)
- })) ? function(e) {
- return "String" == i(e) ? o.call(e, "") : Object(e)
- } : Object
- },
- 9587: function(e, t, n) {
- var r = n(111),
- i = n(7674);
- e.exports = function(e, t, n) {
- var o, a;
- return i && "function" == typeof(o = t.constructor) && o !== n && r(a = o.prototype) && a !== n.prototype && i(e, a), e
- }
- },
- 2788: function(e, t, n) {
- var r = n(5465),
- i = Function.toString;
- "function" != typeof r.inspectSource && (r.inspectSource = function(e) {
- return i.call(e)
- }), e.exports = r.inspectSource
- },
- 9909: function(e, t, n) {
- var r, i, o, a = n(8536),
- u = n(7854),
- s = n(111),
- l = n(8880),
- c = n(6656),
- f = n(5465),
- p = n(6200),
- h = n(3501),
- d = u.WeakMap;
- if (a) {
- var v = f.state || (f.state = new d),
- y = v.get,
- g = v.has,
- m = v.set;
- r = function(e, t) {
- return t.facade = e, m.call(v, e, t), t
- }, i = function(e) {
- return y.call(v, e) || {}
- }, o = function(e) {
- return g.call(v, e)
- }
- } else {
- var b = p("state");
- h[b] = !0, r = function(e, t) {
- return t.facade = e, l(e, b, t), t
- }, i = function(e) {
- return c(e, b) ? e[b] : {}
- }, o = function(e) {
- return c(e, b)
- }
- }
- e.exports = {
- set: r,
- get: i,
- has: o,
- enforce: function(e) {
- return o(e) ? i(e) : r(e, {})
- },
- getterFor: function(e) {
- return function(t) {
- var n;
- if (!s(t) || (n = i(t)).type !== e) throw TypeError("Incompatible receiver, " + e + " required");
- return n
- }
- }
- }
- },
- 7659: function(e, t, n) {
- var r = n(5112),
- i = n(7497),
- o = r("iterator"),
- a = Array.prototype;
- e.exports = function(e) {
- return void 0 !== e && (i.Array === e || a[o] === e)
- }
- },
- 3157: function(e, t, n) {
- var r = n(4326);
- e.exports = Array.isArray || function(e) {
- return "Array" == r(e)
- }
- },
- 4705: function(e, t, n) {
- var r = n(7293),
- i = /#|\.prototype\./,
- o = function(e, t) {
- var n = u[a(e)];
- return n == l || n != s && ("function" == typeof t ? r(t) : !!t)
- },
- a = o.normalize = function(e) {
- return String(e).replace(i, ".").toLowerCase()
- },
- u = o.data = {},
- s = o.NATIVE = "N",
- l = o.POLYFILL = "P";
- e.exports = o
- },
- 111: function(e) {
- e.exports = function(e) {
- return "object" == typeof e ? null !== e : "function" == typeof e
- }
- },
- 1913: function(e) {
- e.exports = !1
- },
- 7850: function(e, t, n) {
- var r = n(111),
- i = n(4326),
- o = n(5112)("match");
- e.exports = function(e) {
- var t;
- return r(e) && (void 0 !== (t = e[o]) ? !!t : "RegExp" == i(e))
- }
- },
- 9212: function(e, t, n) {
- var r = n(9670);
- e.exports = function(e) {
- var t = e.return;
- if (void 0 !== t) return r(t.call(e)).value
- }
- },
- 3383: function(e, t, n) {
- "use strict";
- var r, i, o, a = n(7293),
- u = n(9518),
- s = n(8880),
- l = n(6656),
- c = n(5112),
- f = n(1913),
- p = c("iterator"),
- h = !1;
- [].keys && ("next" in (o = [].keys()) ? (i = u(u(o))) !== Object.prototype && (r = i) : h = !0);
- var d = null == r || a((function() {
- var e = {};
- return r[p].call(e) !== e
- }));
- d && (r = {}), f && !d || l(r, p) || s(r, p, (function() {
- return this
- })), e.exports = {
- IteratorPrototype: r,
- BUGGY_SAFARI_ITERATORS: h
- }
- },
- 7497: function(e) {
- e.exports = {}
- },
- 133: function(e, t, n) {
- var r = n(7293);
- e.exports = !!Object.getOwnPropertySymbols && !r((function() {
- return !String(Symbol())
- }))
- },
- 590: function(e, t, n) {
- var r = n(7293),
- i = n(5112),
- o = n(1913),
- a = i("iterator");
- e.exports = !r((function() {
- var e = new URL("b?a=1&b=2&c=3", "http://a"),
- t = e.searchParams,
- n = "";
- return e.pathname = "c%20d", t.forEach((function(e, r) {
- t.delete("b"), n += r + e
- })), o && !e.toJSON || !t.sort || "http://a/c%20d?a=1&c=3" !== e.href || "3" !== t.get("c") || "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 || "a1c3" !== n || "x" !== new URL("http://x", void 0).host
- }))
- },
- 8536: function(e, t, n) {
- var r = n(7854),
- i = n(2788),
- o = r.WeakMap;
- e.exports = "function" == typeof o && /native code/.test(i(o))
- },
- 1574: function(e, t, n) {
- "use strict";
- var r = n(9781),
- i = n(7293),
- o = n(1956),
- a = n(5181),
- u = n(5296),
- s = n(7908),
- l = n(8361),
- c = Object.assign,
- f = Object.defineProperty;
- e.exports = !c || i((function() {
- if (r && 1 !== c({
- b: 1
- }, c(f({}, "a", {
- enumerable: !0,
- get: function() {
- f(this, "b", {
- value: 3,
- enumerable: !1
- })
- }
- }), {
- b: 2
- })).b) return !0;
- var e = {},
- t = {},
- n = Symbol(),
- i = "abcdefghijklmnopqrst";
- return e[n] = 7, i.split("").forEach((function(e) {
- t[e] = e
- })), 7 != c({}, e)[n] || o(c({}, t)).join("") != i
- })) ? function(e, t) {
- for (var n = s(e), i = arguments.length, c = 1, f = a.f, p = u.f; i > c;)
- for (var h, d = l(arguments[c++]), v = f ? o(d).concat(f(d)) : o(d), y = v.length, g = 0; y > g;) h = v[g++], r && !p.call(d, h) || (n[h] = d[h]);
- return n
- } : c
- },
- 30: function(e, t, n) {
- var r, i = n(9670),
- o = n(6048),
- a = n(748),
- u = n(3501),
- s = n(490),
- l = n(317),
- c = n(6200)("IE_PROTO"),
- f = function() {},
- p = function(e) {
- return "
+
+
diff --git a/src/web/templates/index.html b/src/web/templates/index.html
index 283e8b3b..7820afdc 100644
--- a/src/web/templates/index.html
+++ b/src/web/templates/index.html
@@ -372,7 +372,25 @@
forceChunking: true,
url: '/files/upload',
maxFilesize: {{ max_file_size }}, // MB
- chunkSize: 1000000 // bytes
+ chunkSize: 1000000, // bytes
+ dictDefaultMessage: "{{ _("Drop files here to upload") }}",
+ dictFallbackMessage: "{{ _("Your browser does not support drag'n'drop file uploads.") }}",
+ dictFallbackText: "{{ _("Please use the fallback form below to upload your files like in the olden days.") }}",
+ dictFileTooBig: "{{ _("File is too big: {{filesize}}MB. Max filesize: {{maxFilesize}}MB.") }}",
+ dictInvalidFileType: "{{ _("You can't upload files of this type.") }}",
+ dictResponseError: "{{ _("Server responded with code: {{statusCode}}") }}",
+ dictCancelUpload:" {{ _("Cancel upload") }}",
+ dictUploadCanceled: "{{ _("Upload canceled.") }}",
+ dictCancelUploadConfirmation: "{{ _("Are you sure you want to cancel this upload?") }}",
+ dictRemoveFile: "{{ _("Remove file") }}",
+ dictMaxFilesExceeded: "{{ _("You can not upload any more files.") }}",
+ dictFileSizeUnits: {
+ tb: "{{ _("TB") }}",
+ gb: "{{ _("GB") }}",
+ mb: "{{ _("MB") }}",
+ kb: "{{ _("KB") }}",
+ b: "{{ _("b") }}"
+ }
}