limitListTo\">\n" +
+ "Only the first {{limitListTo}} projects are displayed. Filter by keyword or change sort options to see other projects.\n" +
+ "
\n" +
"\n" +
"
\n" +
"
\n" +
diff --git a/dist/scripts/vendor.js b/dist/scripts/vendor.js
index 0397d10b1c..3397b4e76d 100644
--- a/dist/scripts/vendor.js
+++ b/dist/scripts/vendor.js
@@ -52335,7 +52335,7 @@ return e.charAt(0).toLowerCase() + e.substr(1);
};
}), function(e, t) {
"use strict";
-"object" == typeof exports ? module.exports = t(require("./punycode"), require("./IPv6"), require("./SecondLevelDomains")) : "function" == typeof define && define.amd ? define([ "./punycode", "./IPv6", "./SecondLevelDomains" ], t) : e.URI = t(e.punycode, e.IPv6, e.SecondLevelDomains, e);
+"object" == typeof module && module.exports ? module.exports = t(require("./punycode"), require("./IPv6"), require("./SecondLevelDomains")) : "function" == typeof define && define.amd ? define([ "./punycode", "./IPv6", "./SecondLevelDomains" ], t) : e.URI = t(e.punycode, e.IPv6, e.SecondLevelDomains, e);
}(this, function(e, t, n, i) {
"use strict";
function r(e, t) {
@@ -52345,65 +52345,69 @@ if (void 0 === e) {
if (n) throw new TypeError("undefined is not a valid argument for URI");
e = "undefined" != typeof location ? location.href + "" : "";
}
+if (null === e && n) throw new TypeError("null is not a valid argument for URI");
return this.href(e), void 0 !== t ? this.absoluteTo(t) : this;
}
function o(e) {
-return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g, "\\$1");
+return /^[0-9]+$/.test(e);
}
function a(e) {
-return void 0 === e ? "Undefined" : String(Object.prototype.toString.call(e)).slice(8, -1);
+return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g, "\\$1");
}
function s(e) {
-return "Array" === a(e);
+return void 0 === e ? "Undefined" : String(Object.prototype.toString.call(e)).slice(8, -1);
}
-function l(e, t) {
+function l(e) {
+return "Array" === s(e);
+}
+function c(e, t) {
var n, i, r = {};
-if ("RegExp" === a(t)) r = null; else if (s(t)) for (n = 0, i = t.length; n < i; n++) r[t[n]] = !0; else r[t] = !0;
+if ("RegExp" === s(t)) r = null; else if (l(t)) for (n = 0, i = t.length; n < i; n++) r[t[n]] = !0; else r[t] = !0;
for (n = 0, i = e.length; n < i; n++) (r && void 0 !== r[e[n]] || !r && t.test(e[n])) && (e.splice(n, 1), i--, n--);
return e;
}
-function c(e, t) {
+function u(e, t) {
var n, i;
-if (s(t)) {
-for (n = 0, i = t.length; n < i; n++) if (!c(e, t[n])) return !1;
+if (l(t)) {
+for (n = 0, i = t.length; n < i; n++) if (!u(e, t[n])) return !1;
return !0;
}
-var r = a(t);
+var r = s(t);
for (n = 0, i = e.length; n < i; n++) if ("RegExp" === r) {
if ("string" == typeof e[n] && e[n].match(t)) return !0;
} else if (e[n] === t) return !0;
return !1;
}
-function u(e, t) {
-if (!s(e) || !s(t)) return !1;
+function d(e, t) {
+if (!l(e) || !l(t)) return !1;
if (e.length !== t.length) return !1;
e.sort(), t.sort();
for (var n = 0, i = e.length; n < i; n++) if (e[n] !== t[n]) return !1;
return !0;
}
-function d(e) {
+function h(e) {
var t = /^\/+|\/+$/g;
return e.replace(t, "");
}
-function h(e) {
-return escape(e);
-}
function f(e) {
-return encodeURIComponent(e).replace(/[!'()*]/g, h).replace(/\*/g, "%2A");
+return escape(e);
}
function p(e) {
+return encodeURIComponent(e).replace(/[!'()*]/g, f).replace(/\*/g, "%2A");
+}
+function g(e) {
return function(t, n) {
return void 0 === t ? this._parts[e] || "" : (this._parts[e] = t || null, this.build(!n), this);
};
}
-function g(e, t) {
+function m(e, t) {
return function(n, i) {
return void 0 === n ? this._parts[e] || "" : (null !== n && (n += "").charAt(0) === t && (n = n.substring(1)), this._parts[e] = n, this.build(!i), this);
};
}
-var m = i && i.URI;
-r.version = "1.18.0";
-var v = r.prototype, b = Object.prototype.hasOwnProperty;
+var v = i && i.URI;
+r.version = "1.18.12";
+var b = r.prototype, y = Object.prototype.hasOwnProperty;
r._parts = function() {
return {
protocol: null,
@@ -52418,11 +52422,12 @@ fragment: null,
duplicateQueryParameters: r.duplicateQueryParameters,
escapeQuerySpace: r.escapeQuerySpace
};
-}, r.duplicateQueryParameters = !1, r.escapeQuerySpace = !0, r.protocol_expression = /^[a-z][a-z0-9.+-]*$/i, r.idn_expression = /[^a-z0-9\.-]/i, r.punycode_expression = /(xn--)/i, r.ip4_expression = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, r.ip6_expression = /^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,
+}, r.duplicateQueryParameters = !1, r.escapeQuerySpace = !0, r.protocol_expression = /^[a-z][a-z0-9.+-]*$/i, r.idn_expression = /[^a-z0-9\._-]/i, r.punycode_expression = /(xn--)/i, r.ip4_expression = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, r.ip6_expression = /^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,
r.find_uri_expression = /\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi, r.findUri = {
start: /\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,
end: /[\s\r\n]|$/,
-trim: /[`!()\[\]{};:'".,<>?«»“”„‘’]+$/
+trim: /[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,
+parens: /(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g
}, r.defaultPorts = {
http: "80",
https: "443",
@@ -52430,7 +52435,7 @@ ftp: "21",
gopher: "70",
ws: "80",
wss: "443"
-}, r.invalid_hostname_characters = /[^a-zA-Z0-9\.-]/, r.domAttributes = {
+}, r.hostProtocols = [ "http", "https" ], r.invalid_hostname_characters = /[^a-zA-Z0-9\.\-:_]/, r.domAttributes = {
a: "href",
blockquote: "cite",
link: "href",
@@ -52451,10 +52456,10 @@ if (e && e.nodeName) {
var t = e.nodeName.toLowerCase();
if ("input" !== t || "image" === e.type) return r.domAttributes[t];
}
-}, r.encode = f, r.decode = decodeURIComponent, r.iso8859 = function() {
+}, r.encode = p, r.decode = decodeURIComponent, r.iso8859 = function() {
r.encode = escape, r.decode = unescape;
}, r.unicode = function() {
-r.encode = f, r.decode = decodeURIComponent;
+r.encode = p, r.decode = decodeURIComponent;
}, r.characters = {
pathname: {
encode: {
@@ -52542,10 +52547,10 @@ return r.decode(t ? e.replace(/\+/g, "%20") : e);
return e;
}
};
-var y, w = {
+var w, x = {
encode: "encode",
decode: "decode"
-}, x = function(e, t) {
+}, _ = function(e, t) {
return function(n) {
try {
return r[t](n + "").replace(r.characters[e][t].expression, function(n) {
@@ -52556,8 +52561,8 @@ return n;
}
};
};
-for (y in w) r[y + "PathSegment"] = x("pathname", w[y]), r[y + "UrnPathSegment"] = x("urnpath", w[y]);
-var _ = function(e, t, n) {
+for (w in x) r[w + "PathSegment"] = _("pathname", x[w]), r[w + "UrnPathSegment"] = _("urnpath", x[w]);
+var C = function(e, t, n) {
return function(i) {
var o;
o = n ? function(e) {
@@ -52567,16 +52572,16 @@ for (var a = (i + "").split(e), s = 0, l = a.length; s < l; s++) a[s] = o(a[s]);
return a.join(e);
};
};
-r.decodePath = _("/", "decodePathSegment"), r.decodeUrnPath = _(":", "decodeUrnPathSegment"), r.recodePath = _("/", "encodePathSegment", "decode"), r.recodeUrnPath = _(":", "encodeUrnPathSegment", "decode"), r.encodeReserved = x("reserved", "encode"), r.parse = function(e, t) {
+r.decodePath = C("/", "decodePathSegment"), r.decodeUrnPath = C(":", "decodeUrnPathSegment"), r.recodePath = C("/", "encodePathSegment", "decode"), r.recodeUrnPath = C(":", "encodeUrnPathSegment", "decode"), r.encodeReserved = _("reserved", "encode"), r.parse = function(e, t) {
var n;
return t || (t = {}), (n = e.indexOf("#")) > -1 && (t.fragment = e.substring(n + 1) || null, e = e.substring(0, n)), (n = e.indexOf("?")) > -1 && (t.query = e.substring(n + 1) || null, e = e.substring(0, n)), "//" === e.substring(0, 2) ? (t.protocol = null, e = e.substring(2), e = r.parseAuthority(e, t)) : (n = e.indexOf(":")) > -1 && (t.protocol = e.substring(0, n) || null, t.protocol && !t.protocol.match(r.protocol_expression) ? t.protocol = void 0 : "//" === e.substring(n + 1, n + 3) ? (e = e.substring(n + 3), e = r.parseAuthority(e, t)) : (e = e.substring(n + 1), t.urn = !0)), t.path = e, t;
}, r.parseHost = function(e, t) {
-var n, i, r = (e = e.replace(/\\/g, "/")).indexOf("/");
-if (-1 === r && (r = e.length), "[" === e.charAt(0)) n = e.indexOf("]"), t.hostname = e.substring(1, n) || null, t.port = e.substring(n + 2, r) || null, "/" === t.port && (t.port = null); else {
-var o = e.indexOf(":"), a = e.indexOf("/"), s = e.indexOf(":", o + 1);
--1 !== s && (-1 === a || s < a) ? (t.hostname = e.substring(0, r) || null, t.port = null) : (i = e.substring(0, r).split(":"), t.hostname = i[0] || null, t.port = i[1] || null);
+var n, i, o = (e = e.replace(/\\/g, "/")).indexOf("/");
+if (-1 === o && (o = e.length), "[" === e.charAt(0)) n = e.indexOf("]"), t.hostname = e.substring(1, n) || null, t.port = e.substring(n + 2, o) || null, "/" === t.port && (t.port = null); else {
+var a = e.indexOf(":"), s = e.indexOf("/"), l = e.indexOf(":", a + 1);
+-1 !== l && (-1 === s || l < s) ? (t.hostname = e.substring(0, o) || null, t.port = null) : (i = e.substring(0, o).split(":"), t.hostname = i[0] || null, t.port = i[1] || null);
}
-return t.hostname && "/" !== e.substring(r).charAt(0) && (r++, e = "/" + e), e.substring(r) || "/";
+return t.hostname && "/" !== e.substring(o).charAt(0) && (o++, e = "/" + e), r.ensureValidHostname(t.hostname, t.protocol), t.port && r.ensureValidPort(t.port), e.substring(o) || "/";
}, r.parseAuthority = function(e, t) {
return e = r.parseUserinfo(e, t), r.parseHost(e, t);
}, r.parseUserinfo = function(e, t) {
@@ -52585,7 +52590,7 @@ return o > -1 && (-1 === i || o < i) ? (n = e.substring(0, o).split(":"), t.user
}, r.parseQuery = function(e, t) {
if (!e) return {};
if (!(e = e.replace(/&+/g, "&").replace(/^\?*&*|&+$/g, ""))) return {};
-for (var n, i, o, a = {}, s = e.split("&"), l = s.length, c = 0; c < l; c++) n = s[c].split("="), i = r.decodeQuery(n.shift(), t), o = n.length ? r.decodeQuery(n.join("="), t) : null, b.call(a, i) ? ("string" != typeof a[i] && null !== a[i] || (a[i] = [ a[i] ]), a[i].push(o)) : a[i] = o;
+for (var n, i, o, a = {}, s = e.split("&"), l = s.length, c = 0; c < l; c++) n = s[c].split("="), i = r.decodeQuery(n.shift(), t), o = n.length ? r.decodeQuery(n.join("="), t) : null, y.call(a, i) ? ("string" != typeof a[i] && null !== a[i] || (a[i] = [ a[i] ]), a[i].push(o)) : a[i] = o;
return a;
}, r.build = function(e) {
var t = "";
@@ -52599,60 +52604,60 @@ return r.buildUserinfo(e) + r.buildHost(e);
var t = "";
return e.username && (t += r.encode(e.username)), e.password && (t += ":" + r.encode(e.password)), t && (t += "@"), t;
}, r.buildQuery = function(e, t, n) {
-var i, o, a, l, c = "";
-for (o in e) if (b.call(e, o) && o) if (s(e[o])) for (i = {}, a = 0, l = e[o].length; a < l; a++) void 0 !== e[o][a] && void 0 === i[e[o][a] + ""] && (c += "&" + r.buildQueryParameter(o, e[o][a], n), !0 !== t && (i[e[o][a] + ""] = !0)); else void 0 !== e[o] && (c += "&" + r.buildQueryParameter(o, e[o], n));
+var i, o, a, s, c = "";
+for (o in e) if (y.call(e, o) && o) if (l(e[o])) for (i = {}, a = 0, s = e[o].length; a < s; a++) void 0 !== e[o][a] && void 0 === i[e[o][a] + ""] && (c += "&" + r.buildQueryParameter(o, e[o][a], n), !0 !== t && (i[e[o][a] + ""] = !0)); else void 0 !== e[o] && (c += "&" + r.buildQueryParameter(o, e[o], n));
return c.substring(1);
}, r.buildQueryParameter = function(e, t, n) {
return r.encodeQuery(e, n) + (null !== t ? "=" + r.encodeQuery(t, n) : "");
}, r.addQuery = function(e, t, n) {
-if ("object" == typeof t) for (var i in t) b.call(t, i) && r.addQuery(e, i, t[i]); else {
+if ("object" == typeof t) for (var i in t) y.call(t, i) && r.addQuery(e, i, t[i]); else {
if ("string" != typeof t) throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");
if (void 0 === e[t]) return void (e[t] = n);
-"string" == typeof e[t] && (e[t] = [ e[t] ]), s(n) || (n = [ n ]), e[t] = (e[t] || []).concat(n);
+"string" == typeof e[t] && (e[t] = [ e[t] ]), l(n) || (n = [ n ]), e[t] = (e[t] || []).concat(n);
}
}, r.removeQuery = function(e, t, n) {
-var i, o, c;
-if (s(t)) for (i = 0, o = t.length; i < o; i++) e[t[i]] = void 0; else if ("RegExp" === a(t)) for (c in e) t.test(c) && (e[c] = void 0); else if ("object" == typeof t) for (c in t) b.call(t, c) && r.removeQuery(e, c, t[c]); else {
+var i, o, a;
+if (l(t)) for (i = 0, o = t.length; i < o; i++) e[t[i]] = void 0; else if ("RegExp" === s(t)) for (a in e) t.test(a) && (e[a] = void 0); else if ("object" == typeof t) for (a in t) y.call(t, a) && r.removeQuery(e, a, t[a]); else {
if ("string" != typeof t) throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");
-void 0 !== n ? "RegExp" === a(n) ? !s(e[t]) && n.test(e[t]) ? e[t] = void 0 : e[t] = l(e[t], n) : e[t] !== String(n) || s(n) && 1 !== n.length ? s(e[t]) && (e[t] = l(e[t], n)) : e[t] = void 0 : e[t] = void 0;
+void 0 !== n ? "RegExp" === s(n) ? !l(e[t]) && n.test(e[t]) ? e[t] = void 0 : e[t] = c(e[t], n) : e[t] !== String(n) || l(n) && 1 !== n.length ? l(e[t]) && (e[t] = c(e[t], n)) : e[t] = void 0 : e[t] = void 0;
}
}, r.hasQuery = function(e, t, n, i) {
-switch (a(t)) {
+switch (s(t)) {
case "String":
break;
case "RegExp":
-for (var o in e) if (b.call(e, o) && t.test(o) && (void 0 === n || r.hasQuery(e, o, n))) return !0;
+for (var o in e) if (y.call(e, o) && t.test(o) && (void 0 === n || r.hasQuery(e, o, n))) return !0;
return !1;
case "Object":
-for (var l in t) if (b.call(t, l) && !r.hasQuery(e, l, t[l])) return !1;
+for (var a in t) if (y.call(t, a) && !r.hasQuery(e, a, t[a])) return !1;
return !0;
default:
throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter");
}
-switch (a(n)) {
+switch (s(n)) {
case "Undefined":
return t in e;
case "Boolean":
-return n === Boolean(s(e[t]) ? e[t].length : e[t]);
+return n === Boolean(l(e[t]) ? e[t].length : e[t]);
case "Function":
return !!n(e[t], t, e);
case "Array":
-return !!s(e[t]) && (i ? c : u)(e[t], n);
+return !!l(e[t]) && (i ? u : d)(e[t], n);
case "RegExp":
-return s(e[t]) ? !!i && c(e[t], n) : Boolean(e[t] && e[t].match(n));
+return l(e[t]) ? !!i && u(e[t], n) : Boolean(e[t] && e[t].match(n));
case "Number":
n = String(n);
case "String":
-return s(e[t]) ? !!i && c(e[t], n) : e[t] === n;
+return l(e[t]) ? !!i && u(e[t], n) : e[t] === n;
default:
throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter");
@@ -52675,26 +52680,38 @@ break;
return n < 1 ? e.charAt(0) === t.charAt(0) && "/" === e.charAt(0) ? "/" : "" : ("/" === e.charAt(n) && "/" === t.charAt(n) || (n = e.substring(0, n).lastIndexOf("/")), e.substring(0, n + 1));
}, r.withinString = function(e, t, n) {
n || (n = {});
-var i = n.start || r.findUri.start, o = n.end || r.findUri.end, a = n.trim || r.findUri.trim, s = /[a-z0-9-]=["']?$/i;
+var i = n.start || r.findUri.start, o = n.end || r.findUri.end, a = n.trim || r.findUri.trim, s = n.parens || r.findUri.parens, l = /[a-z0-9-]=["']?$/i;
for (i.lastIndex = 0; ;) {
-var l = i.exec(e);
-if (!l) break;
-var c = l.index;
+var c = i.exec(e);
+if (!c) break;
+var u = c.index;
if (n.ignoreHtml) {
-var u = e.slice(Math.max(c - 3, 0), c);
-if (u && s.test(u)) continue;
+var d = e.slice(Math.max(u - 3, 0), u);
+if (d && l.test(d)) continue;
}
-var d = c + e.slice(c).search(o), h = e.slice(c, d).replace(a, "");
-if (!n.ignore || !n.ignore.test(h)) {
-var f = t(h, c, d = c + h.length, e);
-e = e.slice(0, c) + f + e.slice(d), i.lastIndex = c + f.length;
+for (var h = u + e.slice(u).search(o), f = e.slice(u, h), p = -1; ;) {
+var g = s.exec(f);
+if (!g) break;
+var m = g.index + g[0].length;
+p = Math.max(p, m);
+}
+if (!((f = p > -1 ? f.slice(0, p) + f.slice(p).replace(a, "") : f.replace(a, "")).length <= c[0].length || n.ignore && n.ignore.test(f))) {
+var v = t(f, u, h = u + f.length, e);
+void 0 !== v ? (v = String(v), e = e.slice(0, u) + v + e.slice(h), i.lastIndex = u + v.length) : i.lastIndex = h;
}
}
return i.lastIndex = 0, e;
-}, r.ensureValidHostname = function(t) {
-if (t.match(r.invalid_hostname_characters)) {
-if (!e) throw new TypeError('Hostname "' + t + '" contains characters other than [A-Z0-9.-] and Punycode.js is not available');
-if (e.toASCII(t).match(r.invalid_hostname_characters)) throw new TypeError('Hostname "' + t + '" contains characters other than [A-Z0-9.-]');
+}, r.ensureValidHostname = function(t, n) {
+var i = !!t, o = !1;
+if (!!n && (o = u(r.hostProtocols, n)), o && !i) throw new TypeError("Hostname cannot be empty, if protocol is " + n);
+if (t && t.match(r.invalid_hostname_characters)) {
+if (!e) throw new TypeError('Hostname "' + t + '" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');
+if (e.toASCII(t).match(r.invalid_hostname_characters)) throw new TypeError('Hostname "' + t + '" contains characters other than [A-Z0-9.-:_]');
+}
+}, r.ensureValidPort = function(e) {
+if (e) {
+var t = Number(e);
+if (!(o(t) && t > 0 && t < 65536)) throw new TypeError('Port "' + e + '" is not a valid port');
}
}, r.noConflict = function(e) {
if (e) {
@@ -52703,26 +52720,26 @@ URI: this.noConflict()
};
return i.URITemplate && "function" == typeof i.URITemplate.noConflict && (t.URITemplate = i.URITemplate.noConflict()), i.IPv6 && "function" == typeof i.IPv6.noConflict && (t.IPv6 = i.IPv6.noConflict()), i.SecondLevelDomains && "function" == typeof i.SecondLevelDomains.noConflict && (t.SecondLevelDomains = i.SecondLevelDomains.noConflict()), t;
}
-return i.URI === this && (i.URI = m), this;
-}, v.build = function(e) {
+return i.URI === this && (i.URI = v), this;
+}, b.build = function(e) {
return !0 === e ? this._deferred_build = !0 : (void 0 === e || this._deferred_build) && (this._string = r.build(this._parts), this._deferred_build = !1), this;
-}, v.clone = function() {
+}, b.clone = function() {
return new r(this);
-}, v.valueOf = v.toString = function() {
+}, b.valueOf = b.toString = function() {
return this.build(!1)._string;
-}, v.protocol = p("protocol"), v.username = p("username"), v.password = p("password"), v.hostname = p("hostname"), v.port = p("port"), v.query = g("query", "?"), v.fragment = g("fragment", "#"), v.search = function(e, t) {
+}, b.protocol = g("protocol"), b.username = g("username"), b.password = g("password"), b.hostname = g("hostname"), b.port = g("port"), b.query = m("query", "?"), b.fragment = m("fragment", "#"), b.search = function(e, t) {
var n = this.query(e, t);
return "string" == typeof n && n.length ? "?" + n : n;
-}, v.hash = function(e, t) {
+}, b.hash = function(e, t) {
var n = this.fragment(e, t);
return "string" == typeof n && n.length ? "#" + n : n;
-}, v.pathname = function(e, t) {
+}, b.pathname = function(e, t) {
if (void 0 === e || !0 === e) {
var n = this._parts.path || (this._parts.hostname ? "/" : "");
return e ? (this._parts.urn ? r.decodeUrnPath : r.decodePath)(n) : n;
}
return this._parts.urn ? this._parts.path = e ? r.recodeUrnPath(e) : "" : this._parts.path = e ? r.recodePath(e) : "/", this.build(!t), this;
-}, v.path = v.pathname, v.href = function(e, t) {
+}, b.path = b.pathname, b.href = function(e, t) {
var n;
if (void 0 === e) return this.toString();
this._string = "", this._parts = r._parts();
@@ -52730,10 +52747,10 @@ var i = e instanceof r, o = "object" == typeof e && (e.hostname || e.path || e.p
if (e.nodeName && (e = e[r.getDomAttribute(e)] || "", o = !1), !i && o && void 0 !== e.pathname && (e = e.toString()), "string" == typeof e || e instanceof String) this._parts = r.parse(String(e), this._parts); else {
if (!i && !o) throw new TypeError("invalid input");
var a = i ? e._parts : e;
-for (n in a) b.call(this._parts, n) && (this._parts[n] = a[n]);
+for (n in a) y.call(this._parts, n) && (this._parts[n] = a[n]);
}
return this.build(!t), this;
-}, v.is = function(e) {
+}, b.is = function(e) {
var t = !1, i = !1, o = !1, a = !1, s = !1, l = !1, c = !1, u = !this._parts.urn;
switch (this._parts.hostname && (u = !1, i = r.ip4_expression.test(this._parts.hostname), o = r.ip6_expression.test(this._parts.hostname), s = (a = !(t = i || o)) && n && n.has(this._parts.hostname), l = a && r.idn_expression.test(this._parts.hostname), c = a && r.punycode_expression.test(this._parts.hostname)), e.toLowerCase()) {
case "relative":
@@ -52776,23 +52793,21 @@ return c;
}
return null;
};
-var C = v.protocol, S = v.port, $ = v.hostname;
-v.protocol = function(e, t) {
+var S = b.protocol, $ = b.port, A = b.hostname;
+b.protocol = function(e, t) {
if (void 0 !== e && e && !(e = e.replace(/:(\/\/)?$/, "")).match(r.protocol_expression)) throw new TypeError('Protocol "' + e + "\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");
-return C.call(this, e, t);
-}, v.scheme = v.protocol, v.port = function(e, t) {
-if (this._parts.urn) return void 0 === e ? "" : this;
-if (void 0 !== e && (0 === e && (e = null), e && (":" === (e += "").charAt(0) && (e = e.substring(1)), e.match(/[^0-9]/)))) throw new TypeError('Port "' + e + '" contains characters other than [0-9]');
return S.call(this, e, t);
-}, v.hostname = function(e, t) {
+}, b.scheme = b.protocol, b.port = function(e, t) {
+return this._parts.urn ? void 0 === e ? "" : this : (void 0 !== e && (0 === e && (e = null), e && (":" === (e += "").charAt(0) && (e = e.substring(1)), r.ensureValidPort(e))), $.call(this, e, t));
+}, b.hostname = function(e, t) {
if (this._parts.urn) return void 0 === e ? "" : this;
if (void 0 !== e) {
var n = {};
if ("/" !== r.parseHost(e, n)) throw new TypeError('Hostname "' + e + '" contains characters other than [A-Z0-9.-]');
-e = n.hostname;
+e = n.hostname, r.ensureValidHostname(e, this._parts.protocol);
}
-return $.call(this, e, t);
-}, v.origin = function(e, t) {
+return A.call(this, e, t);
+}, b.origin = function(e, t) {
if (this._parts.urn) return void 0 === e ? "" : this;
if (void 0 === e) {
var n = this.protocol();
@@ -52800,36 +52815,37 @@ return this.authority() ? (n ? n + "://" : "") + this.authority() : "";
}
var i = r(e);
return this.protocol(i.protocol()).authority(i.authority()).build(!t), this;
-}, v.host = function(e, t) {
+}, b.host = function(e, t) {
if (this._parts.urn) return void 0 === e ? "" : this;
if (void 0 === e) return this._parts.hostname ? r.buildHost(this._parts) : "";
if ("/" !== r.parseHost(e, this._parts)) throw new TypeError('Hostname "' + e + '" contains characters other than [A-Z0-9.-]');
return this.build(!t), this;
-}, v.authority = function(e, t) {
+}, b.authority = function(e, t) {
if (this._parts.urn) return void 0 === e ? "" : this;
if (void 0 === e) return this._parts.hostname ? r.buildAuthority(this._parts) : "";
if ("/" !== r.parseAuthority(e, this._parts)) throw new TypeError('Hostname "' + e + '" contains characters other than [A-Z0-9.-]');
return this.build(!t), this;
-}, v.userinfo = function(e, t) {
+}, b.userinfo = function(e, t) {
if (this._parts.urn) return void 0 === e ? "" : this;
if (void 0 === e) {
var n = r.buildUserinfo(this._parts);
return n ? n.substring(0, n.length - 1) : n;
}
return "@" !== e[e.length - 1] && (e += "@"), r.parseUserinfo(e, this._parts), this.build(!t), this;
-}, v.resource = function(e, t) {
+}, b.resource = function(e, t) {
var n;
return void 0 === e ? this.path() + this.search() + this.hash() : (n = r.parse(e), this._parts.path = n.path, this._parts.query = n.query, this._parts.fragment = n.fragment, this.build(!t), this);
-}, v.subdomain = function(e, t) {
+}, b.subdomain = function(e, t) {
if (this._parts.urn) return void 0 === e ? "" : this;
if (void 0 === e) {
if (!this._parts.hostname || this.is("IP")) return "";
var n = this._parts.hostname.length - this.domain().length - 1;
return this._parts.hostname.substring(0, n) || "";
}
-var i = this._parts.hostname.length - this.domain().length, a = this._parts.hostname.substring(0, i), s = new RegExp("^" + o(a));
-return e && "." !== e.charAt(e.length - 1) && (e += "."), e && r.ensureValidHostname(e), this._parts.hostname = this._parts.hostname.replace(s, e), this.build(!t), this;
-}, v.domain = function(e, t) {
+var i = this._parts.hostname.length - this.domain().length, o = this._parts.hostname.substring(0, i), s = new RegExp("^" + a(o));
+if (e && "." !== e.charAt(e.length - 1) && (e += "."), -1 !== e.indexOf(":")) throw new TypeError("Domains cannot contain colons");
+return e && r.ensureValidHostname(e, this._parts.protocol), this._parts.hostname = this._parts.hostname.replace(s, e), this.build(!t), this;
+}, b.domain = function(e, t) {
if (this._parts.urn) return void 0 === e ? "" : this;
if ("boolean" == typeof e && (t = e, e = void 0), void 0 === e) {
if (!this._parts.hostname || this.is("IP")) return "";
@@ -52839,29 +52855,30 @@ var i = this._parts.hostname.length - this.tld(t).length - 1;
return i = this._parts.hostname.lastIndexOf(".", i - 1) + 1, this._parts.hostname.substring(i) || "";
}
if (!e) throw new TypeError("cannot set domain empty");
-if (r.ensureValidHostname(e), !this._parts.hostname || this.is("IP")) this._parts.hostname = e; else {
-var a = new RegExp(o(this.domain()) + "$");
-this._parts.hostname = this._parts.hostname.replace(a, e);
+if (-1 !== e.indexOf(":")) throw new TypeError("Domains cannot contain colons");
+if (r.ensureValidHostname(e, this._parts.protocol), !this._parts.hostname || this.is("IP")) this._parts.hostname = e; else {
+var o = new RegExp(a(this.domain()) + "$");
+this._parts.hostname = this._parts.hostname.replace(o, e);
}
return this.build(!t), this;
-}, v.tld = function(e, t) {
+}, b.tld = function(e, t) {
if (this._parts.urn) return void 0 === e ? "" : this;
if ("boolean" == typeof e && (t = e, e = void 0), void 0 === e) {
if (!this._parts.hostname || this.is("IP")) return "";
var i = this._parts.hostname.lastIndexOf("."), r = this._parts.hostname.substring(i + 1);
return !0 !== t && n && n.list[r.toLowerCase()] ? n.get(this._parts.hostname) || r : r;
}
-var a;
+var o;
if (!e) throw new TypeError("cannot set TLD empty");
if (e.match(/[^a-zA-Z0-9-]/)) {
if (!n || !n.is(e)) throw new TypeError('TLD "' + e + '" contains characters other than [A-Z0-9]');
-a = new RegExp(o(this.tld()) + "$"), this._parts.hostname = this._parts.hostname.replace(a, e);
+o = new RegExp(a(this.tld()) + "$"), this._parts.hostname = this._parts.hostname.replace(o, e);
} else {
if (!this._parts.hostname || this.is("IP")) throw new ReferenceError("cannot set TLD on non-domain host");
-a = new RegExp(o(this.tld()) + "$"), this._parts.hostname = this._parts.hostname.replace(a, e);
+o = new RegExp(a(this.tld()) + "$"), this._parts.hostname = this._parts.hostname.replace(o, e);
}
return this.build(!t), this;
-}, v.directory = function(e, t) {
+}, b.directory = function(e, t) {
if (this._parts.urn) return void 0 === e ? "" : this;
if (void 0 === e || !0 === e) {
if (!this._parts.path && !this._parts.hostname) return "";
@@ -52869,84 +52886,84 @@ if ("/" === this._parts.path) return "/";
var n = this._parts.path.length - this.filename().length - 1, i = this._parts.path.substring(0, n) || (this._parts.hostname ? "/" : "");
return e ? r.decodePath(i) : i;
}
-var a = this._parts.path.length - this.filename().length, s = this._parts.path.substring(0, a), l = new RegExp("^" + o(s));
+var o = this._parts.path.length - this.filename().length, s = this._parts.path.substring(0, o), l = new RegExp("^" + a(s));
return this.is("relative") || (e || (e = "/"), "/" !== e.charAt(0) && (e = "/" + e)), e && "/" !== e.charAt(e.length - 1) && (e += "/"), e = r.recodePath(e), this._parts.path = this._parts.path.replace(l, e), this.build(!t), this;
-}, v.filename = function(e, t) {
+}, b.filename = function(e, t) {
if (this._parts.urn) return void 0 === e ? "" : this;
-if (void 0 === e || !0 === e) {
+if ("string" != typeof e) {
if (!this._parts.path || "/" === this._parts.path) return "";
var n = this._parts.path.lastIndexOf("/"), i = this._parts.path.substring(n + 1);
return e ? r.decodePathSegment(i) : i;
}
-var a = !1;
-"/" === e.charAt(0) && (e = e.substring(1)), e.match(/\.?\//) && (a = !0);
-var s = new RegExp(o(this.filename()) + "$");
-return e = r.recodePath(e), this._parts.path = this._parts.path.replace(s, e), a ? this.normalizePath(t) : this.build(!t), this;
-}, v.suffix = function(e, t) {
+var o = !1;
+"/" === e.charAt(0) && (e = e.substring(1)), e.match(/\.?\//) && (o = !0);
+var s = new RegExp(a(this.filename()) + "$");
+return e = r.recodePath(e), this._parts.path = this._parts.path.replace(s, e), o ? this.normalizePath(t) : this.build(!t), this;
+}, b.suffix = function(e, t) {
if (this._parts.urn) return void 0 === e ? "" : this;
if (void 0 === e || !0 === e) {
if (!this._parts.path || "/" === this._parts.path) return "";
-var n, i, a = this.filename(), s = a.lastIndexOf(".");
-return -1 === s ? "" : (n = a.substring(s + 1), i = /^[a-z0-9%]+$/i.test(n) ? n : "", e ? r.decodePathSegment(i) : i);
+var n, i, o = this.filename(), s = o.lastIndexOf(".");
+return -1 === s ? "" : (n = o.substring(s + 1), i = /^[a-z0-9%]+$/i.test(n) ? n : "", e ? r.decodePathSegment(i) : i);
}
"." === e.charAt(0) && (e = e.substring(1));
var l, c = this.suffix();
-if (c) l = e ? new RegExp(o(c) + "$") : new RegExp(o("." + c) + "$"); else {
+if (c) l = e ? new RegExp(a(c) + "$") : new RegExp(a("." + c) + "$"); else {
if (!e) return this;
this._parts.path += "." + r.recodePath(e);
}
return l && (e = r.recodePath(e), this._parts.path = this._parts.path.replace(l, e)), this.build(!t), this;
-}, v.segment = function(e, t, n) {
+}, b.segment = function(e, t, n) {
var i = this._parts.urn ? ":" : "/", r = this.path(), o = "/" === r.substring(0, 1), a = r.split(i);
if (void 0 !== e && "number" != typeof e && (n = t, t = e, e = void 0), void 0 !== e && "number" != typeof e) throw new Error('Bad segment "' + e + '", must be 0-based integer');
if (o && a.shift(), e < 0 && (e = Math.max(a.length + e, 0)), void 0 === t) return void 0 === e ? a : a[e];
-if (null === e || void 0 === a[e]) if (s(t)) {
+if (null === e || void 0 === a[e]) if (l(t)) {
a = [];
-for (var l = 0, c = t.length; l < c; l++) (t[l].length || a.length && a[a.length - 1].length) && (a.length && !a[a.length - 1].length && a.pop(), a.push(d(t[l])));
-} else (t || "string" == typeof t) && (t = d(t), "" === a[a.length - 1] ? a[a.length - 1] = t : a.push(t)); else t ? a[e] = d(t) : a.splice(e, 1);
+for (var s = 0, c = t.length; s < c; s++) (t[s].length || a.length && a[a.length - 1].length) && (a.length && !a[a.length - 1].length && a.pop(), a.push(h(t[s])));
+} else (t || "string" == typeof t) && (t = h(t), "" === a[a.length - 1] ? a[a.length - 1] = t : a.push(t)); else t ? a[e] = h(t) : a.splice(e, 1);
return o && a.unshift(""), this.path(a.join(i), n);
-}, v.segmentCoded = function(e, t, n) {
+}, b.segmentCoded = function(e, t, n) {
var i, o, a;
if ("number" != typeof e && (n = t, t = e, e = void 0), void 0 === t) {
-if (i = this.segment(e, t, n), s(i)) for (o = 0, a = i.length; o < a; o++) i[o] = r.decode(i[o]); else i = void 0 !== i ? r.decode(i) : void 0;
+if (i = this.segment(e, t, n), l(i)) for (o = 0, a = i.length; o < a; o++) i[o] = r.decode(i[o]); else i = void 0 !== i ? r.decode(i) : void 0;
return i;
}
-if (s(t)) for (o = 0, a = t.length; o < a; o++) t[o] = r.encode(t[o]); else t = "string" == typeof t || t instanceof String ? r.encode(t) : t;
+if (l(t)) for (o = 0, a = t.length; o < a; o++) t[o] = r.encode(t[o]); else t = "string" == typeof t || t instanceof String ? r.encode(t) : t;
return this.segment(e, t, n);
};
-var A = v.query;
-return v.query = function(e, t) {
+var k = b.query;
+return b.query = function(e, t) {
if (!0 === e) return r.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
if ("function" == typeof e) {
var n = r.parseQuery(this._parts.query, this._parts.escapeQuerySpace), i = e.call(this, n);
return this._parts.query = r.buildQuery(i || n, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace), this.build(!t), this;
}
-return void 0 !== e && "string" != typeof e ? (this._parts.query = r.buildQuery(e, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace), this.build(!t), this) : A.call(this, e, t);
-}, v.setQuery = function(e, t, n) {
+return void 0 !== e && "string" != typeof e ? (this._parts.query = r.buildQuery(e, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace), this.build(!t), this) : k.call(this, e, t);
+}, b.setQuery = function(e, t, n) {
var i = r.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
if ("string" == typeof e || e instanceof String) i[e] = void 0 !== t ? t : null; else {
if ("object" != typeof e) throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");
-for (var o in e) b.call(e, o) && (i[o] = e[o]);
+for (var o in e) y.call(e, o) && (i[o] = e[o]);
}
return this._parts.query = r.buildQuery(i, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace), "string" != typeof e && (n = t), this.build(!n), this;
-}, v.addQuery = function(e, t, n) {
+}, b.addQuery = function(e, t, n) {
var i = r.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
return r.addQuery(i, e, void 0 === t ? null : t), this._parts.query = r.buildQuery(i, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace), "string" != typeof e && (n = t), this.build(!n), this;
-}, v.removeQuery = function(e, t, n) {
+}, b.removeQuery = function(e, t, n) {
var i = r.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
return r.removeQuery(i, e, t), this._parts.query = r.buildQuery(i, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace), "string" != typeof e && (n = t), this.build(!n), this;
-}, v.hasQuery = function(e, t, n) {
+}, b.hasQuery = function(e, t, n) {
var i = r.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
return r.hasQuery(i, e, t, n);
-}, v.setSearch = v.setQuery, v.addSearch = v.addQuery, v.removeSearch = v.removeQuery, v.hasSearch = v.hasQuery, v.normalize = function() {
+}, b.setSearch = b.setQuery, b.addSearch = b.addQuery, b.removeSearch = b.removeQuery, b.hasSearch = b.hasQuery, b.normalize = function() {
return this._parts.urn ? this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build() : this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build();
-}, v.normalizeProtocol = function(e) {
+}, b.normalizeProtocol = function(e) {
return "string" == typeof this._parts.protocol && (this._parts.protocol = this._parts.protocol.toLowerCase(), this.build(!e)), this;
-}, v.normalizeHostname = function(n) {
+}, b.normalizeHostname = function(n) {
return this._parts.hostname && (this.is("IDN") && e ? this._parts.hostname = e.toASCII(this._parts.hostname) : this.is("IPv6") && t && (this._parts.hostname = t.best(this._parts.hostname)), this._parts.hostname = this._parts.hostname.toLowerCase(), this.build(!n)), this;
-}, v.normalizePort = function(e) {
+}, b.normalizePort = function(e) {
return "string" == typeof this._parts.protocol && this._parts.port === r.defaultPorts[this._parts.protocol] && (this._parts.port = null, this.build(!e)), this;
-}, v.normalizePath = function(e) {
+}, b.normalizePath = function(e) {
var t = this._parts.path;
if (!t) return this;
if (this._parts.urn) return this._parts.path = r.recodeUrnPath(this._parts.path), this.build(!e), this;
@@ -52957,11 +52974,11 @@ if (-1 === (i = t.search(/\/\.\.(\/|$)/))) break;
0 !== i ? (-1 === (o = t.substring(0, i).lastIndexOf("/")) && (o = i), t = t.substring(0, o) + t.substring(i + 3)) : t = t.substring(3);
}
return n && this.is("relative") && (t = a + t.substring(1)), this._parts.path = t, this.build(!e), this;
-}, v.normalizePathname = v.normalizePath, v.normalizeQuery = function(e) {
+}, b.normalizePathname = b.normalizePath, b.normalizeQuery = function(e) {
return "string" == typeof this._parts.query && (this._parts.query.length ? this.query(r.parseQuery(this._parts.query, this._parts.escapeQuerySpace)) : this._parts.query = null, this.build(!e)), this;
-}, v.normalizeFragment = function(e) {
+}, b.normalizeFragment = function(e) {
return this._parts.fragment || (this._parts.fragment = null, this.build(!e)), this;
-}, v.normalizeSearch = v.normalizeQuery, v.normalizeHash = v.normalizeFragment, v.iso8859 = function() {
+}, b.normalizeSearch = b.normalizeQuery, b.normalizeHash = b.normalizeFragment, b.iso8859 = function() {
var e = r.encode, t = r.decode;
r.encode = escape, r.decode = decodeURIComponent;
try {
@@ -52970,16 +52987,16 @@ this.normalize();
r.encode = e, r.decode = t;
}
return this;
-}, v.unicode = function() {
+}, b.unicode = function() {
var e = r.encode, t = r.decode;
-r.encode = f, r.decode = unescape;
+r.encode = p, r.decode = unescape;
try {
this.normalize();
} finally {
r.encode = e, r.decode = t;
}
return this;
-}, v.readable = function() {
+}, b.readable = function() {
var t = this.clone();
t.username("").password("").normalize();
var n = "";
@@ -52991,13 +53008,14 @@ i += "&" + r.decodeQuery(l[0], this._parts.escapeQuerySpace).replace(/&/g, "%26"
n += "?" + i.substring(1);
}
return n += r.decodeQuery(t.hash(), !0);
-}, v.absoluteTo = function(e) {
+}, b.absoluteTo = function(e) {
var t, n, i, o = this.clone(), a = [ "protocol", "username", "password", "hostname", "port" ];
if (this._parts.urn) throw new Error("URNs do not have any generally defined hierarchical components");
-if (e instanceof r || (e = new r(e)), o._parts.protocol || (o._parts.protocol = e._parts.protocol), this._parts.hostname) return o;
+if (e instanceof r || (e = new r(e)), o._parts.protocol) return o;
+if (o._parts.protocol = e._parts.protocol, this._parts.hostname) return o;
for (n = 0; i = a[n]; n++) o._parts[i] = e._parts[i];
-return o._parts.path ? ".." === o._parts.path.substring(-2) && (o._parts.path += "/") : (o._parts.path = e._parts.path, o._parts.query || (o._parts.query = e._parts.query)), "/" !== o.path().charAt(0) && (t = (t = e.directory()) || (0 === e.path().indexOf("/") ? "/" : ""), o._parts.path = (t ? t + "/" : "") + o._parts.path, o.normalizePath()), o.build(), o;
-}, v.relativeTo = function(e) {
+return o._parts.path ? (".." === o._parts.path.substring(-2) && (o._parts.path += "/"), "/" !== o.path().charAt(0) && (t = (t = e.directory()) || (0 === e.path().indexOf("/") ? "/" : ""), o._parts.path = (t ? t + "/" : "") + o._parts.path, o.normalizePath())) : (o._parts.path = e._parts.path, o._parts.query || (o._parts.query = e._parts.query)), o.build(), o;
+}, b.relativeTo = function(e) {
var t, n, i, o, a, s = this.clone().normalize();
if (s._parts.urn) throw new Error("URNs do not have any generally defined hierarchical components");
if (e = new r(e).normalize(), t = s._parts, n = e._parts, o = s.path(), a = e.path(), "/" !== o.charAt(0)) throw new Error("URI is already relative");
@@ -53009,28 +53027,28 @@ if (t.hostname = null, t.port = null, o === a) return t.path = "", s.build();
if (!(i = r.commonPath(o, a))) return s.build();
var l = n.path.substring(i.length).replace(/[^\/]*$/, "").replace(/.*?\//g, "../");
return t.path = l + t.path.substring(i.length) || "./", s.build();
-}, v.equals = function(e) {
-var t, n, i, o = this.clone(), a = new r(e), l = {}, c = {}, d = {};
+}, b.equals = function(e) {
+var t, n, i, o = this.clone(), a = new r(e), s = {}, c = {}, u = {};
if (o.normalize(), a.normalize(), o.toString() === a.toString()) return !0;
if (t = o.query(), n = a.query(), o.query(""), a.query(""), o.toString() !== a.toString()) return !1;
if (t.length !== n.length) return !1;
-l = r.parseQuery(t, this._parts.escapeQuerySpace), c = r.parseQuery(n, this._parts.escapeQuerySpace);
-for (i in l) if (b.call(l, i)) {
-if (s(l[i])) {
-if (!u(l[i], c[i])) return !1;
-} else if (l[i] !== c[i]) return !1;
-d[i] = !0;
-}
-for (i in c) if (b.call(c, i) && !d[i]) return !1;
+s = r.parseQuery(t, this._parts.escapeQuerySpace), c = r.parseQuery(n, this._parts.escapeQuerySpace);
+for (i in s) if (y.call(s, i)) {
+if (l(s[i])) {
+if (!d(s[i], c[i])) return !1;
+} else if (s[i] !== c[i]) return !1;
+u[i] = !0;
+}
+for (i in c) if (y.call(c, i) && !u[i]) return !1;
return !0;
-}, v.duplicateQueryParameters = function(e) {
+}, b.duplicateQueryParameters = function(e) {
return this._parts.duplicateQueryParameters = !!e, this;
-}, v.escapeQuerySpace = function(e) {
+}, b.escapeQuerySpace = function(e) {
return this._parts.escapeQuerySpace = !!e, this;
}, r;
}), function(e, t) {
"use strict";
-"object" == typeof exports ? module.exports = t(require("./URI")) : "function" == typeof define && define.amd ? define([ "./URI" ], t) : e.URITemplate = t(e.URI, e);
+"object" == typeof module && module.exports ? module.exports = t(require("./URI")) : "function" == typeof define && define.amd ? define([ "./URI" ], t) : e.URITemplate = t(e.URI, e);
}(this, function(e, t) {
"use strict";
function n(e) {
@@ -53097,13 +53115,16 @@ empty_name_separator: !0,
encode: "encode"
}
};
-return n._cache = {}, n.EXPRESSION_PATTERN = /\{([^a-zA-Z0-9%_]?)([^\}]+)(\}|$)/g, n.VARIABLE_PATTERN = /^([^*:.](?:\.?[^*:.])*)((\*)|:(\d+))?$/, n.VARIABLE_NAME_PATTERN = /[^a-zA-Z0-9%_.]/, n.LITERAL_PATTERN = /[<>{}'"`^| \\]/, n.expand = function(e, t) {
-var i, r, o, a = s[e.operator], l = a.named ? "Named" : "Unnamed", c = e.variables, u = [];
-for (o = 0; r = c[o]; o++) if ((i = t.get(r.name)).val.length) {
-if (i.type > 1 && r.maxlength) throw new Error('Invalid expression: Prefix modifier not applicable to variable "' + r.name + '"');
-u.push(n["expand" + l](i, a, r.explode, r.explode && a.separator || ",", r.maxlength, r.name));
-} else i.type && u.push("");
-return u.length ? a.prefix + u.join(a.separator) : "";
+return n._cache = {}, n.EXPRESSION_PATTERN = /\{([^a-zA-Z0-9%_]?)([^\}]+)(\}|$)/g, n.VARIABLE_PATTERN = /^([^*:.](?:\.?[^*:.])*)((\*)|:(\d+))?$/, n.VARIABLE_NAME_PATTERN = /[^a-zA-Z0-9%_.]/, n.LITERAL_PATTERN = /[<>{}"`^| \\]/, n.expand = function(e, t, i) {
+var r, o, a, l = s[e.operator], c = l.named ? "Named" : "Unnamed", u = e.variables, d = [];
+for (a = 0; o = u[a]; a++) {
+if (0 === (r = t.get(o.name)).type && i && i.strict) throw new Error('Missing expansion value for variable "' + o.name + '"');
+if (r.val.length) {
+if (r.type > 1 && o.maxlength) throw new Error('Invalid expression: Prefix modifier not applicable to variable "' + o.name + '"');
+d.push(n["expand" + c](r, l, o.explode, o.explode && l.separator || ",", o.maxlength, o.name));
+} else r.type && d.push("");
+}
+return d.length ? l.prefix + d.join(l.separator) : "";
}, n.expandNamed = function(t, n, i, r, o, a) {
var s, l, c, u = "", d = n.encode, h = n.empty_name_separator, f = !t[d].length, p = 2 === t.type ? "" : e[d](a);
for (l = 0, c = t.val.length; l < c; l++) o ? (s = e[d](t.val[l][1].substring(0, o)), 2 === t.type && (p = e[d](t.val[l][0].substring(0, o)))) : f ? (s = e[d](t.val[l][1]), 2 === t.type ? (p = e[d](t.val[l][0]), t[d].push([ p, s ])) : t[d].push([ void 0, s ])) : (s = t[d][l][1], 2 === t.type && (p = t[d][l][0])), u && (u += r), i ? u += p + (h || s ? "=" : "") + s : (l || (u += e[d](a) + (h || s ? "=" : "")), 2 === t.type && (u += p + ","), u += s);
@@ -53114,11 +53135,11 @@ for (s = 0, l = t.val.length; s < l; s++) o ? a = e[u](t.val[s][1].substring(0,
return c;
}, n.noConflict = function() {
return t.URITemplate === n && (t.URITemplate = r), n;
-}, a.expand = function(e) {
-var t = "";
+}, a.expand = function(e, t) {
+var r = "";
this.parts && this.parts.length || this.parse(), e instanceof i || (e = new i(e));
-for (var r = 0, o = this.parts.length; r < o; r++) t += "string" == typeof this.parts[r] ? this.parts[r] : n.expand(this.parts[r], e);
-return t;
+for (var o = 0, a = this.parts.length; o < a; o++) r += "string" == typeof this.parts[o] ? this.parts[o] : n.expand(this.parts[o], e, t);
+return r;
}, a.parse = function() {
var e, t, i, r = this.expression, o = n.EXPRESSION_PATTERN, a = n.VARIABLE_PATTERN, l = n.VARIABLE_NAME_PATTERN, c = n.LITERAL_PATTERN, u = [], d = 0, h = function(e) {
if (e.match(c)) throw new Error('Invalid Literal "' + e + '"');
@@ -53171,7 +53192,7 @@ return new e(r);
}, n;
}), function(e, t) {
"use strict";
-"object" == typeof exports ? module.exports = t(require("jquery", "./URI")) : "function" == typeof define && define.amd ? define([ "jquery", "./URI" ], t) : t(e.jQuery, e.URI);
+"object" == typeof module && module.exports ? module.exports = t(require("jquery"), require("./URI")) : "function" == typeof define && define.amd ? define([ "jquery", "./URI" ], t) : t(e.jQuery, e.URI);
}(this, function(e, t) {
"use strict";
function n(e) {
@@ -53255,7 +53276,7 @@ return o(e, n[3]);
}, e.expr[":"].uri = c, e;
}), function(e, t) {
"use strict";
-"object" == typeof exports ? module.exports = t(require("./URI")) : "function" == typeof define && define.amd ? define([ "./URI" ], t) : t(e.URI);
+"object" == typeof module && module.exports ? module.exports = t(require("./URI")) : "function" == typeof define && define.amd ? define([ "./URI" ], t) : t(e.URI);
}(this, function(e) {
"use strict";
var t = e.prototype, n = t.fragment, i = t.build;
@@ -72647,7 +72668,7 @@ e.put("src/components/binding/bindApplicationForm.html", '
\n
\n \n
\n Pending\n
The binding was created but is not ready yet.
\n
\n
\n
\n
\n \n Success\n
\n {{ctrl.serviceToBind}}\n has been bound\n to {{ctrl.applicationToBind}} successfully\n
\n
\n
\n The binding operation created the secret\n {{ctrl.binding.spec.secretName}}\n {{ctrl.binding.spec.secretName}}\n that you may need to reference in your application.\n Its data will be available to your application as environment variables.\n
\n
\n \n Info\n The binding secret will only be available to new pods. You will need to redeploy your application.\n
\n
\n
\n
\n
\n \n Error\n
\n Binding Failed\n
\n
\n
\n \n {{ctrl.error.data.message | upperFirst}}\n \n \n An error occurred creating the binding.\n \n
\n'),
e.put("src/components/truncate-long-text/truncateLongText.html", '\x3c!--\n Do not remove class `truncated-content` (here or below) even though it\'s not\n styled directly in origin-web-common. `truncated-content` is used by\n origin-web-console in certain contexts.\n--\x3e\n\n\n \n \n …\n \n See All\n \n \n