o-bed
Version:
1,418 lines • 280 kB
JavaScript
/*!
* Valine v1.5.3
* (c) 2017-2024 xCss
* Released under the GPL-2.0 License.
* Last Update: 15/12/2024 下午3:03:31
*/
!function (e, t) {
"object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.Valine = t() : e.Valine = t()
}(this, function () {
return function (e) {
function t(r) {
if (n[r])
return n[r].exports;
var i = n[r] = {
i: r,
l: !1,
exports: {}
};
return e[r].call(i.exports, i, i.exports, t),
i.l = !0,
i.exports
}
var n = {};
return t.m = e,
t.c = n,
t.i = function (e) {
return e
}
,
t.d = function (e, n, r) {
t.o(e, n) || Object.defineProperty(e, n, {
configurable: !1,
enumerable: !0,
get: r
})
}
,
t.n = function (e) {
var n = e && e.__esModule ? function () {
return e.default
}
: function () {
return e
}
;
return t.d(n, "a", n),
n
}
,
t.o = function (e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}
,
t.p = "",
t(t.s = 74)
}([function (e, t, n) {
"use strict";
e.exports = TypeError
}
, function (e, t, n) {
"use strict";
var r = n(42)
, i = n(41)
, o = n(43)
, a = n(44)
, u = n(15)
, s = n(0)
, l = n(45)
, c = Function
, d = function (e) {
try {
return c('"use strict"; return (' + e + ").constructor;")()
} catch (e) { }
}
, p = Object.getOwnPropertyDescriptor;
if (p)
try {
p({}, "")
} catch (e) {
p = null
}
var f = function () {
throw new s
}
, h = p ? function () {
try {
return arguments.callee,
f
} catch (e) {
try {
return p(arguments, "callee").get
} catch (e) {
return f
}
}
}() : f
, v = n(50)()
, g = n(49)()
, m = Object.getPrototypeOf || (g ? function (e) {
return e.__proto__
}
: null)
, b = {}
, y = "undefined" != typeof Uint8Array && m ? m(Uint8Array) : void 0
, D = {
__proto__: null,
"%AggregateError%": "undefined" == typeof AggregateError ? void 0 : AggregateError,
"%Array%": Array,
"%ArrayBuffer%": "undefined" == typeof ArrayBuffer ? void 0 : ArrayBuffer,
"%ArrayIteratorPrototype%": v && m ? m([][Symbol.iterator]()) : void 0,
"%AsyncFromSyncIteratorPrototype%": void 0,
"%AsyncFunction%": b,
"%AsyncGenerator%": b,
"%AsyncGeneratorFunction%": b,
"%AsyncIteratorPrototype%": b,
"%Atomics%": "undefined" == typeof Atomics ? void 0 : Atomics,
"%BigInt%": "undefined" == typeof BigInt ? void 0 : BigInt,
"%BigInt64Array%": "undefined" == typeof BigInt64Array ? void 0 : BigInt64Array,
"%BigUint64Array%": "undefined" == typeof BigUint64Array ? void 0 : BigUint64Array,
"%Boolean%": Boolean,
"%DataView%": "undefined" == typeof DataView ? void 0 : DataView,
"%Date%": Date,
"%decodeURI%": decodeURI,
"%decodeURIComponent%": decodeURIComponent,
"%encodeURI%": encodeURI,
"%encodeURIComponent%": encodeURIComponent,
"%Error%": r,
"%eval%": eval,
"%EvalError%": i,
"%Float32Array%": "undefined" == typeof Float32Array ? void 0 : Float32Array,
"%Float64Array%": "undefined" == typeof Float64Array ? void 0 : Float64Array,
"%FinalizationRegistry%": "undefined" == typeof FinalizationRegistry ? void 0 : FinalizationRegistry,
"%Function%": c,
"%GeneratorFunction%": b,
"%Int8Array%": "undefined" == typeof Int8Array ? void 0 : Int8Array,
"%Int16Array%": "undefined" == typeof Int16Array ? void 0 : Int16Array,
"%Int32Array%": "undefined" == typeof Int32Array ? void 0 : Int32Array,
"%isFinite%": isFinite,
"%isNaN%": isNaN,
"%IteratorPrototype%": v && m ? m(m([][Symbol.iterator]())) : void 0,
"%JSON%": "object" == typeof JSON ? JSON : void 0,
"%Map%": "undefined" == typeof Map ? void 0 : Map,
"%MapIteratorPrototype%": "undefined" != typeof Map && v && m ? m((new Map)[Symbol.iterator]()) : void 0,
"%Math%": Math,
"%Number%": Number,
"%Object%": Object,
"%parseFloat%": parseFloat,
"%parseInt%": parseInt,
"%Promise%": "undefined" == typeof Promise ? void 0 : Promise,
"%Proxy%": "undefined" == typeof Proxy ? void 0 : Proxy,
"%RangeError%": o,
"%ReferenceError%": a,
"%Reflect%": "undefined" == typeof Reflect ? void 0 : Reflect,
"%RegExp%": RegExp,
"%Set%": "undefined" == typeof Set ? void 0 : Set,
"%SetIteratorPrototype%": "undefined" != typeof Set && v && m ? m((new Set)[Symbol.iterator]()) : void 0,
"%SharedArrayBuffer%": "undefined" == typeof SharedArrayBuffer ? void 0 : SharedArrayBuffer,
"%String%": String,
"%StringIteratorPrototype%": v && m ? m(""[Symbol.iterator]()) : void 0,
"%Symbol%": v ? Symbol : void 0,
"%SyntaxError%": u,
"%ThrowTypeError%": h,
"%TypedArray%": y,
"%TypeError%": s,
"%Uint8Array%": "undefined" == typeof Uint8Array ? void 0 : Uint8Array,
"%Uint8ClampedArray%": "undefined" == typeof Uint8ClampedArray ? void 0 : Uint8ClampedArray,
"%Uint16Array%": "undefined" == typeof Uint16Array ? void 0 : Uint16Array,
"%Uint32Array%": "undefined" == typeof Uint32Array ? void 0 : Uint32Array,
"%URIError%": l,
"%WeakMap%": "undefined" == typeof WeakMap ? void 0 : WeakMap,
"%WeakRef%": "undefined" == typeof WeakRef ? void 0 : WeakRef,
"%WeakSet%": "undefined" == typeof WeakSet ? void 0 : WeakSet
};
if (m)
try {
null.error
} catch (e) {
var w = m(m(e));
D["%Error.prototype%"] = w
}
var x = function e(t) {
var n;
if ("%AsyncFunction%" === t)
n = d("async function () {}");
else if ("%GeneratorFunction%" === t)
n = d("function* () {}");
else if ("%AsyncGeneratorFunction%" === t)
n = d("async function* () {}");
else if ("%AsyncGenerator%" === t) {
var r = e("%AsyncGeneratorFunction%");
r && (n = r.prototype)
} else if ("%AsyncIteratorPrototype%" === t) {
var i = e("%AsyncGenerator%");
i && m && (n = m(i.prototype))
}
return D[t] = n,
n
}
, k = {
__proto__: null,
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
"%ArrayPrototype%": ["Array", "prototype"],
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
"%ArrayProto_values%": ["Array", "prototype", "values"],
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
"%BooleanPrototype%": ["Boolean", "prototype"],
"%DataViewPrototype%": ["DataView", "prototype"],
"%DatePrototype%": ["Date", "prototype"],
"%ErrorPrototype%": ["Error", "prototype"],
"%EvalErrorPrototype%": ["EvalError", "prototype"],
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
"%FunctionPrototype%": ["Function", "prototype"],
"%Generator%": ["GeneratorFunction", "prototype"],
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
"%JSONParse%": ["JSON", "parse"],
"%JSONStringify%": ["JSON", "stringify"],
"%MapPrototype%": ["Map", "prototype"],
"%NumberPrototype%": ["Number", "prototype"],
"%ObjectPrototype%": ["Object", "prototype"],
"%ObjProto_toString%": ["Object", "prototype", "toString"],
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
"%PromisePrototype%": ["Promise", "prototype"],
"%PromiseProto_then%": ["Promise", "prototype", "then"],
"%Promise_all%": ["Promise", "all"],
"%Promise_reject%": ["Promise", "reject"],
"%Promise_resolve%": ["Promise", "resolve"],
"%RangeErrorPrototype%": ["RangeError", "prototype"],
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
"%RegExpPrototype%": ["RegExp", "prototype"],
"%SetPrototype%": ["Set", "prototype"],
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
"%StringPrototype%": ["String", "prototype"],
"%SymbolPrototype%": ["Symbol", "prototype"],
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
"%TypeErrorPrototype%": ["TypeError", "prototype"],
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
"%URIErrorPrototype%": ["URIError", "prototype"],
"%WeakMapPrototype%": ["WeakMap", "prototype"],
"%WeakSetPrototype%": ["WeakSet", "prototype"]
}
, A = n(6)
, E = n(18)
, F = A.call(Function.call, Array.prototype.concat)
, C = A.call(Function.apply, Array.prototype.splice)
, _ = A.call(Function.call, String.prototype.replace)
, B = A.call(Function.call, String.prototype.slice)
, S = A.call(Function.call, RegExp.prototype.exec)
, O = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g
, $ = /\\(\\)?/g
, j = function (e) {
var t = B(e, 0, 1)
, n = B(e, -1);
if ("%" === t && "%" !== n)
throw new u("invalid intrinsic syntax, expected closing `%`");
if ("%" === n && "%" !== t)
throw new u("invalid intrinsic syntax, expected opening `%`");
var r = [];
return _(e, O, function (e, t, n, i) {
r[r.length] = n ? _(i, $, "$1") : t || e
}),
r
}
, z = function (e, t) {
var n, r = e;
if (E(k, r) && (n = k[r],
r = "%" + n[0] + "%"),
E(D, r)) {
var i = D[r];
if (i === b && (i = x(r)),
void 0 === i && !t)
throw new s("intrinsic " + e + " exists, but is not available. Please file an issue!");
return {
alias: n,
name: r,
value: i
}
}
throw new u("intrinsic " + e + " does not exist!")
};
e.exports = function (e, t) {
if ("string" != typeof e || 0 === e.length)
throw new s("intrinsic name must be a non-empty string");
if (arguments.length > 1 && "boolean" != typeof t)
throw new s('"allowMissing" argument must be a boolean');
if (null === S(/^%?[^%]*%?$/, e))
throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
var n = j(e)
, r = n.length > 0 ? n[0] : ""
, i = z("%" + r + "%", t)
, o = i.name
, a = i.value
, l = !1
, c = i.alias;
c && (r = c[0],
C(n, F([0, 1], c)));
for (var d = 1, f = !0; d < n.length; d += 1) {
var h = n[d]
, v = B(h, 0, 1)
, g = B(h, -1);
if (('"' === v || "'" === v || "`" === v || '"' === g || "'" === g || "`" === g) && v !== g)
throw new u("property names with quotes must have matching quotes");
if ("constructor" !== h && f || (l = !0),
r += "." + h,
o = "%" + r + "%",
E(D, o))
a = D[o];
else if (null != a) {
if (!(h in a)) {
if (!t)
throw new s("base intrinsic for " + e + " exists, but the property is not available.");
return
}
if (p && d + 1 >= n.length) {
var m = p(a, h);
f = !!m,
a = f && "get" in m && !("originalValue" in m.get) ? m.get : a[h]
} else
f = E(a, h),
a = a[h];
f && !l && (D[o] = a)
}
}
return a
}
}
, function (e, t, n) {
"use strict";
function r(e) {
return e && e.__esModule ? e : {
default: e
}
}
function i(e) {
var t = null == e ? String(e) : {}.toString.call(e) || "object";
return "[object Object]" == t && (t = "object"),
"[object Function]" == t && (t = "function"),
t
}
function o(e) {
return "function" == i(e)
}
function a(e) {
return null != e && e == e.window
}
function u(e) {
return null != e && e.nodeType == e.DOCUMENT_NODE
}
function s(e) {
return "object" == i(e)
}
function l(e) {
return s(e) && !a(e) && Object.getPrototypeOf(e) == Object.prototype
}
t.__esModule = !0;
var c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
return typeof e
}
: function (e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
}
, d = n(54)
, p = r(d)
, f = n(37)
, h = r(f)
, v = n(34)
, g = r(v)
, m = n(36)
, b = r(m)
, y = n(33)
, D = r(y)
, w = document
, x = navigator
, k = /[&<>"'`\\]/g
, A = RegExp(k.source)
, E = /&(?:amp|lt|gt|quot|#39|#x60|#x5c);/g
, F = RegExp(E.source)
, C = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'",
"`": "`",
"\\": "\"
}
, _ = {};
for (var B in C)
_[C[B]] = B;
var S = null;
Array.prototype.forEach || (Array.prototype.forEach = function (e, t) {
var n, r;
if (null == this)
throw new TypeError(" this is null or not defined");
var i = Object(this)
, o = i.length >>> 0;
if ("function" != typeof e)
throw new TypeError(e + " is not a function");
for (arguments.length > 1 && (n = t),
r = 0; r < o;) {
var a;
r in i && (a = i[r],
e.call(n, a, r, i)),
r++
}
}
),
window.NodeList && !NodeList.prototype.forEach && (NodeList.prototype.forEach = Array.prototype.forEach),
String.prototype.trim || (String.prototype.trim = function () {
return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "")
}
),
(0,
p.default)(h.default.fn, {
prepend: function (e) {
return e instanceof HTMLElement || (e = e[0]),
this.forEach(function (t) {
t.insertAdjacentElement("afterBegin", e)
}),
this
},
append: function (e) {
return e instanceof HTMLElement || (e = e[0]),
this.forEach(function (t) {
t.insertAdjacentElement("beforeEnd", e)
}),
this
},
remove: function () {
return this.forEach(function (e) {
try {
e.parentNode.removeChild(e)
} catch (e) { }
}),
this
},
find: function (e) {
return (0,
h.default)(e, this)
},
show: function () {
return this.forEach(function (e) {
e.style.display = "block"
}),
this
},
hide: function () {
return this.forEach(function (e) {
e.style.display = "none"
}),
this
},
on: function (e, t, n) {
return h.default.fn.off(e, t, n),
this.forEach(function (r) {
e.split(" ").forEach(function (e) {
r.addEventListener ? r.addEventListener(e, t, n || !1) : r.attachEvent ? r.attachEvent("on" + e, t) : r["on" + e] = t
})
}),
this
},
off: function (e, t, n) {
return this.forEach(function (r) {
e.split(" ").forEach(function (e) {
r.removeEventListener ? r.removeEventListener(e, t, n || !1) : r.detachEvent ? r.detachEvent("on" + e, t) : r["on" + e] = null
})
}),
this
},
html: function (e) {
return void 0 !== e ? (this.forEach(function (t) {
t.innerHTML = e
}),
this) : this[0].innerHTML
},
text: function (e) {
return void 0 !== e ? (this.forEach(function (t) {
t.innerText = e
}),
this) : this[0].innerText
},
empty: function (e) {
return e = e || 0,
this.forEach(function (t) {
setTimeout(function (e) {
t.innerText = ""
}, e)
}),
this
},
val: function (e) {
return void 0 !== e ? (this.forEach(function (t) {
t.value = e
}),
this) : this[0].value || ""
},
attr: function () {
var e = arguments;
if ("object" == c(arguments[0])) {
var t = arguments[0]
, n = this;
return Object.keys(t).forEach(function (e) {
n.forEach(function (n) {
n.setAttribute(e, t[e])
})
}),
this
}
return "string" == typeof arguments[0] && arguments.length < 2 ? this[0].getAttribute(arguments[0]) || "" : (this.forEach(function (t) {
t.setAttribute(e[0], e[1])
}),
this)
},
removeAttr: function (e) {
return this.forEach(function (t) {
var n, r = 0, i = e && e.match(/[^\x20\t\r\n\f\*\/\\]+/g);
if (i && 1 === t.nodeType)
for (; n = i[r++];)
t.removeAttribute(n)
}),
this
},
hasClass: function (e) {
return !!this[0] && new RegExp("(\\s|^)" + e + "(\\s|$)").test(this[0].getAttribute("class"))
},
addClass: function (e) {
return this.forEach(function (t) {
var n = (0,
h.default)(t)
, r = n.attr("class");
n.hasClass(e) || n.attr("class", r += " " + e)
}),
this
},
removeClass: function (e) {
return this.forEach(function (t) {
var n = (0,
h.default)(t)
, r = n.attr("class");
if (n.hasClass(e)) {
var i = new RegExp("(\\s|^)" + e + "(\\s|$)");
n.attr("class", r.replace(i, ""))
}
}),
this
}
}),
(0,
p.default)(h.default, {
isFunction: o,
isWindow: a,
isDocument: u,
isObject: s,
isPlainObject: l,
extend: p.default,
noop: function () { },
navi: x,
ua: x.userAgent,
lang: x.language || x.languages[0],
detect: g.default,
store: b.default,
escape: function (e) {
return e && A.test(e) ? e.replace(k, function (e) {
return C[e]
}) : e
},
unescape: function (e) {
return e && F.test(e) ? e.replace(E, function (e) {
return _[e]
}) : e
},
dynamicLoadSource: function (e, t) {
if ((0,
h.default)('script[src="' + e + '"]').length)
t && t();
else {
var n = w.createElement("script");
n.onload = n.onreadystatechange = function () {
var e = this;
e.onload = e.onreadystatechange = null,
t && t(),
(0,
h.default)(n).remove()
}
,
n.async = !0,
n.setAttribute("referrerPolicy", "no-referrer");
(0,
h.default)("head")[0].appendChild(n),
n.src = e
}
},
sdkLoader: function (e, t, n) {
t in window && window[t] ? (S && clearTimeout(S),
n && n()) : h.default.dynamicLoadSource(e, function () {
S = setTimeout(h.default.sdkLoader(e, t, n), 100)
})
},
deleteInWin: function (e, t) {
var n = function (t) {
if (e in window)
try {
delete window[e]
} catch (t) {
window[e] = null
}
};
0 === t ? n() : setTimeout(n, t || 500)
},
ajax: D.default
}),
t.default = h.default
}
, function (e, t, n) {
"use strict";
t.__esModule = !0;
t.DEFAULT_EMOJI_CDN = "//img.t.sinajs.cn/t4/appstyle/expression/ext/normal/",
t.DB_NAME = "Comment",
t.CONFIG = {
lang: "zh-CN",
langMode: null,
appId: "",
appKey: "",
clazzName: "Comment",
meta: ["nick", "mail", "link"],
path: location.pathname,
placeholder: "Just Go Go",
pageSize: 10,
recordIP: !0,
serverURLs: "",
visitor: !1,
mathJax: !1,
emojiCDN: "",
emojiMaps: void 0,
enableQQ: !1,
requiredFields: []
},
t.defaultMeta = ["nick", "mail", "link"],
t.QQCacheKey = "_v_Cache_Q",
t.MetaCacheKey = "_v_Cache_Meta",
t.RandomStr = function (e) {
return (Date.now() + Math.round(1e3 * Math.random())).toString(32)
}
,
t.VERSION = "1.5.2"
}
, function (e, t, n) {
function r(e, t) {
return new o(t).process(e)
}
var i = n(11)
, o = n(39);
t = e.exports = r,
t.FilterCSS = o;
for (var a in i)
t[a] = i[a];
"undefined" != typeof window && (window.filterCSS = e.exports)
}
, function (e, t, n) {
"use strict";
var r = n(1)
, i = r("%Object.defineProperty%", !0) || !1;
if (i)
try {
i({}, "a", {
value: 1
})
} catch (e) {
i = !1
}
e.exports = i
}
, function (e, t, n) {
"use strict";
var r = n(47);
e.exports = Function.prototype.bind || r
}
, function (e, t) {
e.exports = {
indexOf: function (e, t) {
var n, r;
if (Array.prototype.indexOf)
return e.indexOf(t);
for (n = 0,
r = e.length; n < r; n++)
if (e[n] === t)
return n;
return -1
},
forEach: function (e, t, n) {
var r, i;
if (Array.prototype.forEach)
return e.forEach(t, n);
for (r = 0,
i = e.length; r < i; r++)
t.call(n, e[r], r, e)
},
trim: function (e) {
return String.prototype.trim ? e.trim() : e.replace(/(^\s*)|(\s*$)/g, "")
},
spaceIndex: function (e) {
var t = /\s|\n|\t/
, n = t.exec(e);
return n ? n.index : -1
}
}
}
, function (e, t, n) {
"use strict";
t.__esModule = !0;
var r = n(3)
, i = {
cdn: r.DEFAULT_EMOJI_CDN,
maps: n(64),
parse: function (e, t) {
return String(e).replace(new RegExp(":(" + Object.keys(i.maps).join("|") + "):", "ig"), function (e, n) {
return i.maps[n] ? i.build(n, t) : e
})
},
build: function (e, t) {
var n = /^(https?:)?\/\//i
, r = i.maps[e]
, o = n.test(r) ? r : i.cdn + r
, a = ' <img alt="' + e + '" referrerpolicy="no-referrer" class="vemoji" src="' + o + '" />';
return n.test(o) ? a : ""
}
};
t.default = i
}
, function (e, t, n) {
"use strict";
t.__esModule = !0;
var r = n(62)
, i = function (e) {
return e && e.__esModule ? e : {
default: e
}
}(r);
t.default = function (e) {
return (0,
i.default)(e, {
onTagAttr: function (e, t, n, r) {
return o(e, t, n, r)
},
onIgnoreTagAttr: function (e, t, n, r) {
return o(e, t, n, r)
}
}).replace(/\<\/?div\>/gi, "")
}
;
var o = function (e, t, n, r) {
if (/video|audio/i.test(e))
return "";
if (/code|pre|span/i.test(e)) {
if ("style" == t) {
var o = n.match(/color:([#a-z0-9]{3,7}|\s+[#a-z0-9]{3,8})/gi);
return o && o.length ? 'style="' + o[0] + '"' : ""
}
if ("class" == t)
return t + "='" + i.default.escapeAttrValue(n) + "'"
}
return "a" === e && "class" == t && "at" === n ? t + "='" + i.default.escapeAttrValue(n) + "'" : "img" === e && /src|class/i.test(t) ? t + "='" + i.default.escapeAttrValue(n) + "' referrerPolicy='no-referrer'" : void 0
}
}
, function (e, t, n) {
"use strict";
var r = n(6)
, i = n(1)
, o = n(60)
, a = n(0)
, u = i("%Function.prototype.apply%")
, s = i("%Function.prototype.call%")
, l = i("%Reflect.apply%", !0) || r.call(s, u)
, c = n(5)
, d = i("%Math.max%");
e.exports = function (e) {
if ("function" != typeof e)
throw new a("a function is required");
var t = l(r, s, arguments);
return o(t, 1 + d(0, e.length - (arguments.length - 1)), !0)
}
;
var p = function () {
return l(r, u, arguments)
};
c ? c(e.exports, "apply", {
value: p
}) : e.exports.apply = p
}
, function (e, t) {
function n() {
var e = {};
return e["align-content"] = !1,
e["align-items"] = !1,
e["align-self"] = !1,
e["alignment-adjust"] = !1,
e["alignment-baseline"] = !1,
e.all = !1,
e["anchor-point"] = !1,
e.animation = !1,
e["animation-delay"] = !1,
e["animation-direction"] = !1,
e["animation-duration"] = !1,
e["animation-fill-mode"] = !1,
e["animation-iteration-count"] = !1,
e["animation-name"] = !1,
e["animation-play-state"] = !1,
e["animation-timing-function"] = !1,
e.azimuth = !1,
e["backface-visibility"] = !1,
e.background = !0,
e["background-attachment"] = !0,
e["background-clip"] = !0,
e["background-color"] = !0,
e["background-image"] = !0,
e["background-origin"] = !0,
e["background-position"] = !0,
e["background-repeat"] = !0,
e["background-size"] = !0,
e["baseline-shift"] = !1,
e.binding = !1,
e.bleed = !1,
e["bookmark-label"] = !1,
e["bookmark-level"] = !1,
e["bookmark-state"] = !1,
e.border = !0,
e["border-bottom"] = !0,
e["border-bottom-color"] = !0,
e["border-bottom-left-radius"] = !0,
e["border-bottom-right-radius"] = !0,
e["border-bottom-style"] = !0,
e["border-bottom-width"] = !0,
e["border-collapse"] = !0,
e["border-color"] = !0,
e["border-image"] = !0,
e["border-image-outset"] = !0,
e["border-image-repeat"] = !0,
e["border-image-slice"] = !0,
e["border-image-source"] = !0,
e["border-image-width"] = !0,
e["border-left"] = !0,
e["border-left-color"] = !0,
e["border-left-style"] = !0,
e["border-left-width"] = !0,
e["border-radius"] = !0,
e["border-right"] = !0,
e["border-right-color"] = !0,
e["border-right-style"] = !0,
e["border-right-width"] = !0,
e["border-spacing"] = !0,
e["border-style"] = !0,
e["border-top"] = !0,
e["border-top-color"] = !0,
e["border-top-left-radius"] = !0,
e["border-top-right-radius"] = !0,
e["border-top-style"] = !0,
e["border-top-width"] = !0,
e["border-width"] = !0,
e.bottom = !1,
e["box-decoration-break"] = !0,
e["box-shadow"] = !0,
e["box-sizing"] = !0,
e["box-snap"] = !0,
e["box-suppress"] = !0,
e["break-after"] = !0,
e["break-before"] = !0,
e["break-inside"] = !0,
e["caption-side"] = !1,
e.chains = !1,
e.clear = !0,
e.clip = !1,
e["clip-path"] = !1,
e["clip-rule"] = !1,
e.color = !0,
e["color-interpolation-filters"] = !0,
e["column-count"] = !1,
e["column-fill"] = !1,
e["column-gap"] = !1,
e["column-rule"] = !1,
e["column-rule-color"] = !1,
e["column-rule-style"] = !1,
e["column-rule-width"] = !1,
e["column-span"] = !1,
e["column-width"] = !1,
e.columns = !1,
e.contain = !1,
e.content = !1,
e["counter-increment"] = !1,
e["counter-reset"] = !1,
e["counter-set"] = !1,
e.crop = !1,
e.cue = !1,
e["cue-after"] = !1,
e["cue-before"] = !1,
e.cursor = !1,
e.direction = !1,
e.display = !0,
e["display-inside"] = !0,
e["display-list"] = !0,
e["display-outside"] = !0,
e["dominant-baseline"] = !1,
e.elevation = !1,
e["empty-cells"] = !1,
e.filter = !1,
e.flex = !1,
e["flex-basis"] = !1,
e["flex-direction"] = !1,
e["flex-flow"] = !1,
e["flex-grow"] = !1,
e["flex-shrink"] = !1,
e["flex-wrap"] = !1,
e.float = !1,
e["float-offset"] = !1,
e["flood-color"] = !1,
e["flood-opacity"] = !1,
e["flow-from"] = !1,
e["flow-into"] = !1,
e.font = !0,
e["font-family"] = !0,
e["font-feature-settings"] = !0,
e["font-kerning"] = !0,
e["font-language-override"] = !0,
e["font-size"] = !0,
e["font-size-adjust"] = !0,
e["font-stretch"] = !0,
e["font-style"] = !0,
e["font-synthesis"] = !0,
e["font-variant"] = !0,
e["font-variant-alternates"] = !0,
e["font-variant-caps"] = !0,
e["font-variant-east-asian"] = !0,
e["font-variant-ligatures"] = !0,
e["font-variant-numeric"] = !0,
e["font-variant-position"] = !0,
e["font-weight"] = !0,
e.grid = !1,
e["grid-area"] = !1,
e["grid-auto-columns"] = !1,
e["grid-auto-flow"] = !1,
e["grid-auto-rows"] = !1,
e["grid-column"] = !1,
e["grid-column-end"] = !1,
e["grid-column-start"] = !1,
e["grid-row"] = !1,
e["grid-row-end"] = !1,
e["grid-row-start"] = !1,
e["grid-template"] = !1,
e["grid-template-areas"] = !1,
e["grid-template-columns"] = !1,
e["grid-template-rows"] = !1,
e["hanging-punctuation"] = !1,
e.height = !0,
e.hyphens = !1,
e.icon = !1,
e["image-orientation"] = !1,
e["image-resolution"] = !1,
e["ime-mode"] = !1,
e["initial-letters"] = !1,
e["inline-box-align"] = !1,
e["justify-content"] = !1,
e["justify-items"] = !1,
e["justify-self"] = !1,
e.left = !1,
e["letter-spacing"] = !0,
e["lighting-color"] = !0,
e["line-box-contain"] = !1,
e["line-break"] = !1,
e["line-grid"] = !1,
e["line-height"] = !1,
e["line-snap"] = !1,
e["line-stacking"] = !1,
e["line-stacking-ruby"] = !1,
e["line-stacking-shift"] = !1,
e["line-stacking-strategy"] = !1,
e["list-style"] = !0,
e["list-style-image"] = !0,
e["list-style-position"] = !0,
e["list-style-type"] = !0,
e.margin = !0,
e["margin-bottom"] = !0,
e["margin-left"] = !0,
e["margin-right"] = !0,
e["margin-top"] = !0,
e["marker-offset"] = !1,
e["marker-side"] = !1,
e.marks = !1,
e.mask = !1,
e["mask-box"] = !1,
e["mask-box-outset"] = !1,
e["mask-box-repeat"] = !1,
e["mask-box-slice"] = !1,
e["mask-box-source"] = !1,
e["mask-box-width"] = !1,
e["mask-clip"] = !1,
e["mask-image"] = !1,
e["mask-origin"] = !1,
e["mask-position"] = !1,
e["mask-repeat"] = !1,
e["mask-size"] = !1,
e["mask-source-type"] = !1,
e["mask-type"] = !1,
e["max-height"] = !0,
e["max-lines"] = !1,
e["max-width"] = !0,
e["min-height"] = !0,
e["min-width"] = !0,
e["move-to"] = !1,
e["nav-down"] = !1,
e["nav-index"] = !1,
e["nav-left"] = !1,
e["nav-right"] = !1,
e["nav-up"] = !1,
e["object-fit"] = !1,
e["object-position"] = !1,
e.opacity = !1,
e.order = !1,
e.orphans = !1,
e.outline = !1,
e["outline-color"] = !1,
e["outline-offset"] = !1,
e["outline-style"] = !1,
e["outline-width"] = !1,
e.overflow = !1,
e["overflow-wrap"] = !1,
e["overflow-x"] = !1,
e["overflow-y"] = !1,
e.padding = !0,
e["padding-bottom"] = !0,
e["padding-left"] = !0,
e["padding-right"] = !0,
e["padding-top"] = !0,
e.page = !1,
e["page-break-after"] = !1,
e["page-break-before"] = !1,
e["page-break-inside"] = !1,
e["page-policy"] = !1,
e.pause = !1,
e["pause-after"] = !1,
e["pause-before"] = !1,
e.perspective = !1,
e["perspective-origin"] = !1,
e.pitch = !1,
e["pitch-range"] = !1,
e["play-during"] = !1,
e.position = !1,
e["presentation-level"] = !1,
e.quotes = !1,
e["region-fragment"] = !1,
e.resize = !1,
e.rest = !1,
e["rest-after"] = !1,
e["rest-before"] = !1,
e.richness = !1,
e.right = !1,
e.rotation = !1,
e["rotation-point"] = !1,
e["ruby-align"] = !1,
e["ruby-merge"] = !1,
e["ruby-position"] = !1,
e["shape-image-threshold"] = !1,
e["shape-outside"] = !1,
e["shape-margin"] = !1,
e.size = !1,
e.speak = !1,
e["speak-as"] = !1,
e["speak-header"] = !1,
e["speak-numeral"] = !1,
e["speak-punctuation"] = !1,
e["speech-rate"] = !1,
e.stress = !1,
e["string-set"] = !1,
e["tab-size"] = !1,
e["table-layout"] = !1,
e["text-align"] = !0,
e["text-align-last"] = !0,
e["text-combine-upright"] = !0,
e["text-decoration"] = !0,
e["text-decoration-color"] = !0,
e["text-decoration-line"] = !0,
e["text-decoration-skip"] = !0,
e["text-decoration-style"] = !0,
e["text-emphasis"] = !0,
e["text-emphasis-color"] = !0,
e["text-emphasis-position"] = !0,
e["text-emphasis-style"] = !0,
e["text-height"] = !0,
e["text-indent"] = !0,
e["text-justify"] = !0,
e["text-orientation"] = !0,
e["text-overflow"] = !0,
e["text-shadow"] = !0,
e["text-space-collapse"] = !0,
e["text-transform"] = !0,
e["text-underline-position"] = !0,
e["text-wrap"] = !0,
e.top = !1,
e.transform = !1,
e["transform-origin"] = !1,
e["transform-style"] = !1,
e.transition = !1,
e["transition-delay"] = !1,
e["transition-duration"] = !1,
e["transition-property"] = !1,
e["transition-timing-function"] = !1,
e["unicode-bidi"] = !1,
e["vertical-align"] = !1,
e.visibility = !1,
e["voice-balance"] = !1,
e["voice-duration"] = !1,
e["voice-family"] = !1,
e["voice-pitch"] = !1,
e["voice-range"] = !1,
e["voice-rate"] = !1,
e["voice-stress"] = !1,
e["voice-volume"] = !1,
e.volume = !1,
e["white-space"] = !1,
e.widows = !1,
e.width = !0,
e["will-change"] = !1,
e["word-break"] = !0,
e["word-spacing"] = !0,
e["word-wrap"] = !0,
e["wrap-flow"] = !1,
e["wrap-through"] = !1,
e["writing-mode"] = !1,
e["z-index"] = !1,
e
}
function r(e, t, n) { }
function i(e, t, n) { }
function o(e, t) {
return a.test(t) ? "" : t
}
var a = /javascript\s*\:/gim;
t.whiteList = n(),
t.getDefaultWhiteList = n,
t.onAttr = r,
t.onIgnoreAttr = i,
t.safeAttrValue = o
}
, function (e, t) {
e.exports = {
indexOf: function (e, t) {
var n, r;
if (Array.prototype.indexOf)
return e.indexOf(t);
for (n = 0,
r = e.length; n < r; n++)
if (e[n] === t)
return n;
return -1
},
forEach: function (e, t, n) {
var r, i;
if (Array.prototype.forEach)
return e.forEach(t, n);
for (r = 0,
i = e.length; r < i; r++)
t.call(n, e[r], r, e)
},
trim: function (e) {
return String.prototype.trim ? e.trim() : e.replace(/(^\s*)|(\s*$)/g, "")
},
trimRight: function (e) {
return String.prototype.trimRight ? e.trimRight() : e.replace(/(\s*$)/g, "")
}
}
}
, function (e, t, n) {
"use strict";
var r = n(5)
, i = n(15)
, o = n(0)
, a = n(16);
e.exports = function (e, t, n) {
if (!e || "object" != typeof e && "function" != typeof e)
throw new o("`obj` must be an object or a function`");
if ("string" != typeof t && "symbol" != typeof t)
throw new o("`property` must be a string or a symbol`");
if (arguments.length > 3 && "boolean" != typeof arguments[3] && null !== arguments[3])
throw new o("`nonEnumerable`, if provided, must be a boolean or null");
if (arguments.length > 4 && "boolean" != typeof arguments[4] && null !== arguments[4])
throw new o("`nonWritable`, if provided, must be a boolean or null");
if (arguments.length > 5 && "boolean" != typeof arguments[5] && null !== arguments[5])
throw new o("`nonConfigurable`, if provided, must be a boolean or null");
if (arguments.length > 6 && "boolean" != typeof arguments[6])
throw new o("`loose`, if provided, must be a boolean");
var u = arguments.length > 3 ? arguments[3] : null
, s = arguments.length > 4 ? arguments[4] : null
, l = arguments.length > 5 ? arguments[5] : null
, c = arguments.length > 6 && arguments[6]
, d = !!a && a(e, t);
if (r)
r(e, t, {
configurable: null === l && d ? d.configurable : !l,
enumerable: null === u && d ? d.enumerable : !u,
value: n,
writable: null === s && d ? d.writable : !s
});
else {
if (!c && (u || s || l))
throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
e[t] = n
}
}
}
, function (e, t, n) {
"use strict";
var r = n(56)
, i = "function" == typeof Symbol && "symbol" == typeof Symbol("foo")
, o = Object.prototype.toString
, a = Array.prototype.concat
, u = n(13)
, s = function (e) {
return "function" == typeof e && "[object Function]" === o.call(e)
}
, l = n(17)()
, c = function (e, t, n, r) {
if (t in e)
if (!0 === r) {
if (e[t] === n)
return
} else if (!s(r) || !r())
return;
l ? u(e, t, n, !0) : u(e, t, n)
}
, d = function (e, t) {
var n = arguments.length > 2 ? arguments[2] : {}
, o = r(t);
i && (o = a.call(o, Object.getOwnPropertySymbols(t)));
for (var u = 0; u < o.length; u += 1)
c(e, o[u], t[o[u]], n[o[u]])
};
d.supportsDescriptors = !!l,
e.exports = d
}
, function (e, t, n) {
"use strict";
e.exports = SyntaxError
}
, function (e, t, n) {
"use strict";
var r = n(1)
, i = r("%Object.getOwnPropertyDescriptor%", !0);
if (i)
try {
i([], "length")
} catch (e) {
i = null
}
e.exports = i
}
, function (e, t, n) {
"use strict";
var r = n(5)
, i = function () {
return !!r
};
i.hasArrayLengthDefineBug = function () {
if (!r)
return null;
try {
return 1 !== r([], "length", {
value: 1
}).length
} catch (e) {
return !0
}
}
,
e.exports = i
}
, function (e, t, n) {
"use strict";
var r = Function.prototype.call
, i = Object.prototype.hasOwnProperty
, o = n(6);
e.exports = o.call(r, i)
}
, function (e, t, n) {
"use strict";
var r = Object.prototype.toString;
e.exports = function (e) {
var t = r.call(e)
, n = "[object Arguments]" === t;
return n || (n = "[object Array]" !== t && null !== e && "object" == typeof e && "number" == typeof e.length && e.length >= 0 && "[object Function]" === r.call(e.callee)),
n
}
}
, function (e, t, n) {
"use strict";
var r = n(46)
, i = n(38)
, o = i("Object.prototype.propertyIsEnumerable")
, a = i("Array.prototype.push");
e.exports = function (e) {
var t = r(e)
, n = [];
for (var i in t)
o(t, i) && a(n, [i, t[i]]);
return n
}
}
, function (e, t, n) {
"use strict";
var r = n(20);
e.exports = function () {
return "function" == typeof Object.entries ? Object.entries : r
}
}
, function (e, t, n) {
function r() {
return {
a: ["target", "href", "title"],
abbr: ["title"],
address: [],
area: ["shape", "coords", "href", "alt"],
article: [],
aside: [],
audio: ["autoplay", "controls", "crossorigin", "loop", "muted", "preload", "src"],
b: [],
bdi: ["dir"],
bdo: ["dir"],
big: [],
blockquote: ["cite"],
br: [],
caption: [],
center: [],
cite: [],
code: [],
col: ["align", "valign", "span", "width"],
colgroup: ["align", "valign", "span", "width"],
dd: [],
del: ["datetime"],
details: ["open"],
div: [],
dl: [],
dt: [],
em: [],
figcaption: [],
figure: [],
font: ["color", "size", "face"],
footer: [],
h1: [],
h2: [],
h3: [],
h4: [],
h5: [],
h6: [],
header: [],
hr: [],
i: [],
img: ["src", "alt", "title", "width", "height", "loading"],
ins: ["datetime"],
kbd: [],
li: [],
mark: [],
nav: [],
ol: [],
p: [],
pre: [],
s: [],
section: [],
small: [],
span: [],
sub: [],
summary: [],
sup: [],
strong: [],
strike: [],
table: ["width", "border", "align", "valign"],
tbody: ["align", "valign"],
td: ["width", "rowspan", "colspan", "align", "valign"],
tfoot: ["align", "valign"],
th: ["width", "rowspan", "colspan", "align", "valign"],
thead: ["align", "valign"],
tr: ["rowspan", "align", "valign"],
tt: [],
u: [],
ul: [],
video: ["autoplay", "controls", "crossorigin", "loop", "muted", "playsinline", "poster", "preload", "src", "height", "width"]
}
}
function i(e, t, n) { }
function o(e, t, n) { }
function a(e, t, n) { }
function u(e, t, n) { }
function s(e) {
return e.replace(E, "<").replace(F, ">")
}
function l(e, t, n, r) {
if (n = v(n),
"href" === t || "src" === t) {
if ("#" === (n = k.trim(n)))
return "#";
if ("http://" !== n.substr(0, 7) && "https://" !== n.substr(0, 8) && "mailto:" !== n.substr(0, 7) && "tel:" !== n.substr(0, 4) && "data:image/" !== n.substr(0, 11) && "ftp://" !== n.substr(0, 6) && "./" !== n.substr(0, 2) && "../" !== n.substr(0, 3) && "#" !== n[0] && "/" !== n[0])
return ""
} else if ("background" === t) {
if ($.lastIndex = 0,
$.test(n))
return ""
} else if ("style" === t) {
if (j.lastIndex = 0,
j.test(n))
return "";
if