Files
weiyu/deploy/server/notebase/assets/js/5.15.3/isv-parser.js

11 lines
146 KiB
JavaScript
Raw Normal View History

!function (e, t) { "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = e || self).isvParser = t() }(this, (function () {
"use strict"; var e = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}; function t(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e } function r(e, t) { return e(t = { exports: {} }, t.exports), t.exports } var n, o, i = function (e) { return e && e.Math === Math && e }, a = i("object" == typeof globalThis && globalThis) || i("object" == typeof window && window) || i("object" == typeof self && self) || i("object" == typeof e && e) || function () { return this }() || e || Function("return this")(), u = function (e) { try { return !!e() } catch (e) { return !0 } }, c = !u((function () { var e = function () { }.bind(); return "function" != typeof e || e.hasOwnProperty("prototype") })), s = Function.prototype, l = s.apply, f = s.call, p = "object" == typeof Reflect && Reflect.apply || (c ? f.bind(l) : function () { return f.apply(l, arguments) }), h = Function.prototype, d = h.call, v = c && h.bind.bind(d, d), y = c ? v : function (e) { return function () { return d.apply(e, arguments) } }, g = y({}.toString), m = y("".slice), b = function (e) { return m(g(e), 8, -1) }, w = function (e) { if ("Function" === b(e)) return y(e) }, S = "object" == typeof document && document.all, x = { all: S, IS_HTMLDDA: void 0 === S && void 0 !== S }, O = x.all, A = x.IS_HTMLDDA ? function (e) { return "function" == typeof e || e === O } : function (e) { return "function" == typeof e }, j = !u((function () { return 7 !== Object.defineProperty({}, 1, { get: function () { return 7 } })[1] })), P = Function.prototype.call, E = c ? P.bind(P) : function () { return P.apply(P, arguments) }, _ = {}.propertyIsEnumerable, T = Object.getOwnPropertyDescriptor, k = { f: T && !_.call({ 1: 2 }, 1) ? function (e) { var t = T(this, e); return !!t && t.enumerable } : _ }, L = function (e, t) { return { enumerable: !(1 & e), configurable: !(2 & e), writable: !(4 & e), value: t } }, M = Object, C = y("".split), I = u((function () { return !M("z").propertyIsEnumerable(0) })) ? function (e) { return "String" === b(e) ? C(e, "") : M(e) } : M, R = function (e) { return null == e }, N = TypeError, F = function (e) { if (R(e)) throw N("Can't call method on " + e); return e }, z = function (e) { return I(F(e)) }, U = x.all, D = x.IS_HTMLDDA ? function (e) { return "object" == typeof e ? null !== e : A(e) || e === U } : function (e) { return "object" == typeof e ? null !== e : A(e) }, G = {}, B = function (e) { return A(e) ? e : void 0 }, W = function (e, t) { return arguments.length < 2 ? B(G[e]) || B(a[e]) : G[e] && G[e][t] || a[e] && a[e][t] }, H = y({}.isPrototypeOf), q = "undefined" != typeof navigator && String(navigator.userAgent) || "", $ = a.process, J = a.Deno, K = $ && $.versions || J && J.version, V = K && K.v8; V && (o = (n = V.split("."))[0] > 0 && n[0] < 4 ? 1 : +(n[0] + n[1])), !o && q && (!(n = q.match(/Edge\/(\d+)/)) || n[1] >= 74) && (n = q.match(/Chrome\/(\d+)/)) && (o = +n[1]); var Y = o, Q = a.String, X = !!Object.getOwnPropertySymbols && !u((function () { var e = Symbol("symbol detection"); return !Q(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && Y && Y < 41 })), Z = X && !Symbol.sham && "symbol" == typeof Symbol.iterator, ee = Object, te = Z ? function (e) { return "symbol" == typeof e } : function (e) { var t = W("Symbol"); return A(t) && H(t.prototype, ee(e)) }, re = String, ne = function (e) { try { return re(e) } catch (e) { return "Object" } }, oe = TypeError, ie = function (e) { if (A(e)) return e; throw oe(ne(e) + " is not a function") }, ae = function (e, t) { var r = e[t]; return R(r) ? void 0 : ie(r) }, ue = TypeError, ce = Object.defineProperty, se = a["__core-js_shared__"] || function (e, t) { try { ce(a, e, { value: t, configurable: !0, writable: !0 }) } catch (r) { a[e] = t } return t }("__core-js_shared__", {}), le = r((function (e) { (e.exports = function (e, t) { return se[e] || (se[e] = void 0 !== t ? t : {}) })("versions", []).push({ version: "3.32
Object.defineProperty(t, "__esModule", { value: !0 }), t.get = i, t.set = o, t.getJSON = u, t.remove = a, t.default = void 0; var r, n = function (e) { if (e && e.__esModule) return e; var t = {}; if (null != e) for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { var n = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(e, r) : {}; n.get || n.set ? Object.defineProperty(t, r, n) : t[r] = e[r] } return t.default = e, t }(Pv); function o(e, t) {
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, n = r.path, o = void 0 === n ? "/" : n, i = r.domain, a = r.expires, u = r.maxAge, c = void 0 === u ? 1512e3 : u, s = r.secure, l = r.sameSite; if (e) {
t = encodeURIComponent(String(t)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), e = (e = (e = encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)).replace(/[()]/g, escape); var f = []; o && f.push("path=".concat(o)), i && f.push("domain=".concat(i)), a && f.push("expires=".concat(a)),//! important:"max-age" is not supported by IE6/7/8
c && f.push("max-age=".concat(c)), s && f.push("secure"), l && f.push("samesite=".concat(l)), document.cookie = "".concat(e, "=").concat(t, ";").concat(f.join(";"))
}
} function i(e) { for (var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, r = "; ", n = "=", o = e ? void 0 : {}, i = document.cookie ? document.cookie.split(r) : [], a = /(%[0-9A-Z]{2})+/g, u = 0; u < i.length; u++) { var c = i[u].split(n), s = c.slice(1).join(n); t.json || '"' !== s.charAt(0) || (s = s.slice(1, -1)); try { var l = c[0].replace(a, decodeURIComponent); if (s = s.replace(a, decodeURIComponent), t.json) try { s = JSON.parse(s) } catch (e) { } if (e === l) { o = s; break } e || (o[l] = s) } catch (e) { } } return o } function a(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; o(e, "", n.assign(t, { expires: "Thu, 01 Jan 1970 00:00:00 GMT", maxAge: -1 })) } function u() { return i(void 0, { json: !0 }) } !function (e) { e.strict = "strict", e.lax = "lax" }(r || (r = {})); var c = { set: o, get: i, getJSON: u, remove: a }; t.default = c
})); t(Ev); Ev.get, Ev.set, Ev.getJSON, Ev.remove; var _v = r((function (e, t) { Object.defineProperty(t, "__esModule", { value: !0 }), t.default = t.LOCALE_KEY_NAME = void 0; var r, n = i(Ev), o = i(Pv); function i(e) { if (e && e.__esModule) return e; var t = {}; if (null != e) for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { var n = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(e, r) : {}; n.get || n.set ? Object.defineProperty(t, r, n) : t[r] = e[r] } return t.default = e, t } function a(e) { return (a = "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 })(e) } function u(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } function c(e, t) { for (var r = 0; r < t.length; r++) { var n = t[r]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n) } } function s(e, t, r) { return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e } t.LOCALE_KEY_NAME = r, function (e) { e.region = "region", e.lang = "lang", e.currency = "currency", e.tz = "tz" }(r || (t.LOCALE_KEY_NAME = r = {})); var l = function () { function e() { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; u(this, e), s(this, "key", void 0), s(this, "maxAge", void 0), s(this, "domain", void 0), s(this, "path", void 0), s(this, "container", void 0), this.key = t.key || "", this.maxAge = t.maxAge, this.domain = t.domain, this.path = t.path, this.container = o.getContainerType() } return function (e, t, r) { t && c(e.prototype, t), r && c(e, r) }(e, [{ key: "getKey", value: function () { return this.key } }, { key: "getPureLocale", value: function () { return this[this.container] ? this[this.container]() : "" } }, { key: "getLocale", value: function (e) { var t = this.getPureLocale(); if (e && e.short && t[r.lang]) { var n = t[r.lang].split("-")[0]; t[r.lang] = n } return t.region && (t.regionID = t.region), t.lang && (t.language = t.lang), t } }, { key: "getEnv", value: function (e) { var t = o.assign({}, { short: !0 }, e); return this.getLocale(t) } }, { key: "getLocaleString", value: function () { var e = this.getPureLocale(); return o.stringifyToQueryString(e) } }, { key: "setLocale", value: function (e, t) { if (e) { var r = s({}, e, t); this.setLocaleWithObject(r) } } }, { key: "setRegion", value: function (e) { e && this.setLocale(r.region, e) } }, { key: "setLang", value: function (e) { e && this.setLocale(r.lang, e) } }, { key: "setCurrency", value: function (e) { e && this.setLocale(r.currency, e) } }, { key: "setTimeZone", value: function (e) { e && this.setLocale(r.tz, e) } }, { key: "setLocaleWithObject", value: function (e) { if (this.container !== o.ContainerType.weex) { var t = this.getLocale(), r = o.assign({}, t, e); delete r.language; var i = o.stringifyToQueryString(r); n.set(this.key, i, { path: this.path || "/", maxAge: this.maxAge, domain: this.domain }) } } }, { key: "weex", value: function () { var e = ""; return "object" === ("undefined" == typeof WXEnvironment ? "undefined" : a(WXEnvironment)) && (e = WXEnvironment && WXEnvironment[this.key] || ""), o.parseQueryString(e) } }, { key: "web", value: function () { var e = "", t = {}; if (location && location.search) { var i = location.search.replace(/^[?#&]/, ""), u = o.parseQueryString(i), c = o.objectValues(r); Object.keys(u).forEach((function (e) { c.indexOf(e) >= 0 && (t[e] = u[e]) })) } if ("object" === ("undefined" == typeof window ? "undefined" : a(window))) { var s = window; if (e = window[this.key]) { var l = o.parseQueryString(e); t = o.assign({}, l, t) } else if ("object" === a(s.g_config)) { var f = s.g_config, p = f.regionID, h = f.language, d = {}; p && (d[r.region] = p), h && (d[r.lang] = h), t = o.assign({}, d, t) } } if (!e) { var v
}));