UNPKG

@opentiny/vue-runtime

Version:

An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.

1,278 lines 3.04 MB
import { defineComponent as M, props as re, setup as W, $setup as Q, $prefix as $, $props as q, createComponent as Js, appProperties as zh, hooks as bn, setupComponent as Hh, mergeClass as bg, parseVnode as XA, isEmptyVnode as QA, h as J, directive as zt, emitter as ZA, isVue3 as Uh, isVue2 as Ci, useBreakpoint as JA, Teleport as Dx, KeepAlive as wg } from "@opentiny/vue-common"; import { iconLoading as ac, IconClose as kn, iconChevronDown as Ix, iconWarning as rc, iconHelp as eE, iconError as Yo, iconSuccess as Wu, iconClose as An, IconMinscreen as tE, IconFullscreen as jh, IconEyeclose as nE, IconEyeopen as aE, IconError as Lx, iconPageWeaknet as rE, iconPageServererror as iE, iconPageNothing as oE, iconPageNoperm as sE, iconWeaknet as lE, iconNoResult as cE, iconNoPerm as uE, iconNoNews as dE, iconNoData as pE, IconChevronRight as En, iconHalfselect as el, iconCheckedSur as Ko, iconYes as Mx, iconCheck as Go, iconSearch as Nx, IconChevronUp as so, IconChevronDown as Dn, IconChevronLeft as ri, IconDoubleLeft as ic, IconDoubleRight as oc, iconDoubleLeft as fE, iconDoubleRight as vE, iconHelpCircle as qh, iconDownWard as hE, IconTime as mE, IconCalendar as gE, iconMobileRadioSelected as yE, iconMobileRadio as bE, iconRadioselected as wE, iconRadio as xE, IconCoin as CE, iconDone as kE, iconDoneMini as TE, iconExceptionO as SE, iconExceptionMiniO as AE, iconOnGoing as EE, iconOnGoingMini as DE, iconNotStarted as IE, iconNotStartedMini as LE, iconFinish as Ox, IconSearch as Yu, iconChevronUp as Wh, iconPutAway as ME, iconExpand as NE, iconPlusSquare as OE, iconDel as Yh, iconEdit as PE, iconArrowBottom as BE, iconLoadingShadow as _E, iconChevronRight as sc, iconMarkOn as VE, iconCopy as Px, iconChevronLeft as Kh, IconPlus as Gh, IconCheckedSur as Bx, IconMonthView as $E, IconAgendaView as FE, IconDayView as RE, iconEditor as zE, iconPopup as HE, IconArrowBottom as Xh, IconEllipsis as zl, iconGridNoData as UE, IconHalfselect as jE, IconLoading as _x, IconYes as Vx, IconCheck as qE, IconOperationfaild as WE, IconMic as $x, iconInfoSolid as Fx, iconHelpSolid as YE, iconOperationfaildL as KE, iconCueL as Rx, iconSuccessful as GE, iconInfoCircle as XE, iconMinscreenLeft as QE, iconFullscreenLeft as ZE, iconFileuploadPro as JE, iconZipType as e2, iconWordType as t2, iconVideoType as n2, iconTextType as a2, iconPptType as r2, iconPictureType as i2, iconPdfType as o2, iconOtherType as s2, iconFileType as l2, iconExcelType as c2, iconEllipsis as Iv, iconAudio as u2, iconPause as d2, iconRight as p2, iconRefres as zx, iconDownload as Hx, iconEyeopen as f2, IconHelpQuery as v2, IconStartCircle as h2, IconPicture as Ux, IconPlusCircle as m2, IconFileCloudupload as g2, IconDownload as y2, IconSuccessful as b2, IconAttachment as w2, IconSubScript as x2, IconUnfilter as jx, iconPlus as qx, iconPicture as Wx, iconEditorMenuRight as C2, iconArrowRight as k2, iconArrowLeft as T2, iconRepeat as S2, iconMinscreen as A2, iconFullscreen as E2, iconZoomIn as D2, iconZoomOut as I2, IconCloudUpload as L2, IconLink as M2, IconEditorVideo as N2, IconEditorUndo as O2, IconEditorUnderline as P2, IconEditorTitle as B2, IconEditorTextcolor as _2, IconEditorTable as V2, IconEditorSuper as $2, IconEditorSubtitle as F2, IconEditorSub as R2, IconEditorRightBorder as z2, IconEditorRedo as H2, IconEditorQuote as U2, IconEditorMenuRight as j2, IconEditorMenuLeft as q2, IconEditorListNum as W2, IconEditorListDot as Y2, IconEditorList as K2, IconEditorLeftBorder as G2, IconEditorItalic as X2, IconEditorEraser as Q2, IconEditorDeleteline as Z2, IconEditorCode as J2, IconEditorBold as eD, IconEditorBackground as tD, IconEditorAlignRight as nD, IconEditorAlignLeft as aD, IconEditorAlignCenter as rD, IconHelpCircle as iD, IconRightward as oD, iconMinus as sD, IconPopup as Qh, IconMeh as lD, IconFrown as cD, IconSmile as uD, IconStarDisable as dD, IconStarActive as pD, iconOperationfaild as fD, IconMinscreenRight as vD, IconUser as Yx, IconWarn as Kx, IconFinish as Gx, IconGroup as hD } from "@opentiny/vue-icon"; import { t as Me, language as mD } from "@opentiny/vue-locale"; function Lv(n, t) { (t == null || t > n.length) && (t = n.length); for (var e = 0, a = Array(t); e < t; e++) a[e] = n[e]; return a; } function Xx(n) { if (Array.isArray(n)) return n; } function gD(n) { if (Array.isArray(n)) return Lv(n); } function Qx(n) { if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return n; } function xg(n, t, e, a, r, i, o) { try { var s = n[i](o), l = s.value; } catch (c) { return void e(c); } s.done ? t(l) : Promise.resolve(l).then(a, r); } function lt(n) { return function() { var t = this, e = arguments; return new Promise(function(a, r) { var i = n.apply(t, e); function o(l) { xg(i, a, r, o, s, "next", l); } function s(l) { xg(i, a, r, o, s, "throw", l); } o(void 0); }); }; } function G(n, t, e) { return t = Vo(t), eC(n, Zh() ? Reflect.construct(t, e || [], Vo(n).constructor) : t.apply(n, e)); } function R(n, t) { if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function"); } function yD(n, t, e) { if (Zh()) return Reflect.construct.apply(null, arguments); var a = [null]; a.push.apply(a, t); var r = new (n.bind.apply(n, a))(); return e && Hl(r, e.prototype), r; } function Cg(n, t) { for (var e = 0; e < t.length; e++) { var a = t[e]; a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(n, nC(a.key), a); } } function z(n, t, e) { return t && Cg(n.prototype, t), e && Cg(n, e), Object.defineProperty(n, "prototype", { writable: !1 }), n; } function Xa(n, t) { var e = typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"]; if (!e) { if (Array.isArray(n) || (e = Ku(n)) || t) { e && (n = e); var a = 0, r = function() { }; return { s: r, n: function() { return a >= n.length ? { done: !0 } : { done: !1, value: n[a++] }; }, e: function(l) { throw l; }, f: r }; } throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } var i, o = !0, s = !1; return { s: function() { e = e.call(n); }, n: function() { var l = e.next(); return o = l.done, l; }, e: function(l) { s = !0, i = l; }, f: function() { try { o || e.return == null || e.return(); } finally { if (s) throw i; } } }; } function P(n, t, e) { return (t = nC(t)) in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n; } function Mv() { return Mv = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(n, t, e) { var a = TD(n, t); if (a) { var r = Object.getOwnPropertyDescriptor(a, t); return r.get ? r.get.call(arguments.length < 3 ? n : e) : r.value; } }, Mv.apply(null, arguments); } function Vo(n) { return Vo = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) { return t.__proto__ || Object.getPrototypeOf(t); }, Vo(n); } function X(n, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); n.prototype = Object.create(t && t.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), t && Hl(n, t); } function bD(n) { try { return Function.toString.call(n).indexOf("[native code]") !== -1; } catch { return typeof n == "function"; } } function Zh() { try { var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (Zh = function() { return !!n; })(); } function Zx(n) { if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n); } function wD(n, t) { var e = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"]; if (e != null) { var a, r, i, o, s = [], l = !0, c = !1; try { if (i = (e = e.call(n)).next, t === 0) { if (Object(e) !== e) return; l = !1; } else for (; !(l = (a = i.call(e)).done) && (s.push(a.value), s.length !== t); l = !0) ; } catch (u) { c = !0, r = u; } finally { try { if (!l && e.return != null && (o = e.return(), Object(o) !== o)) return; } finally { if (c) throw r; } } return s; } } function Jx() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function xD() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function kg(n, t) { var e = Object.keys(n); if (Object.getOwnPropertySymbols) { var a = Object.getOwnPropertySymbols(n); t && (a = a.filter(function(r) { return Object.getOwnPropertyDescriptor(n, r).enumerable; })), e.push.apply(e, a); } return e; } function S(n) { for (var t = 1; t < arguments.length; t++) { var e = arguments[t] != null ? arguments[t] : {}; t % 2 ? kg(Object(e), !0).forEach(function(a) { P(n, a, e[a]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)) : kg(Object(e)).forEach(function(a) { Object.defineProperty(n, a, Object.getOwnPropertyDescriptor(e, a)); }); } return n; } function yu(n, t) { if (n == null) return {}; var e, a, r = CD(n, t); if (Object.getOwnPropertySymbols) { var i = Object.getOwnPropertySymbols(n); for (a = 0; a < i.length; a++) e = i[a], t.indexOf(e) === -1 && {}.propertyIsEnumerable.call(n, e) && (r[e] = n[e]); } return r; } function CD(n, t) { if (n == null) return {}; var e = {}; for (var a in n) if ({}.hasOwnProperty.call(n, a)) { if (t.indexOf(a) !== -1) continue; e[a] = n[a]; } return e; } function eC(n, t) { if (t && (typeof t == "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return Qx(n); } function xe() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var n, t, e = typeof Symbol == "function" ? Symbol : {}, a = e.iterator || "@@iterator", r = e.toStringTag || "@@toStringTag"; function i(f, v, h, m) { var g = v && v.prototype instanceof s ? v : s, y = Object.create(g.prototype); return tn(y, "_invoke", (function(b, w, x) { var k, T, A, L = 0, I = x || [], _ = !1, H = { p: 0, n: 0, v: n, a: ee, f: ee.bind(n, 4), d: function(Z, te) { return k = Z, T = 0, A = n, H.n = te, o; } }; function ee(Z, te) { for (T = Z, A = te, t = 0; !_ && L && !se && t < I.length; t++) { var se, F = I[t], ae = H.p, oe = F[2]; Z > 3 ? (se = oe === te) && (A = F[(T = F[4]) ? 5 : (T = 3, 3)], F[4] = F[5] = n) : F[0] <= ae && ((se = Z < 2 && ae < F[1]) ? (T = 0, H.v = te, H.n = F[1]) : ae < oe && (se = Z < 3 || F[0] > te || te > oe) && (F[4] = Z, F[5] = te, H.n = oe, T = 0)); } if (se || Z > 1) return o; throw _ = !0, te; } return function(Z, te, se) { if (L > 1) throw TypeError("Generator is already running"); for (_ && te === 1 && ee(te, se), T = te, A = se; (t = T < 2 ? n : A) || !_; ) { k || (T ? T < 3 ? (T > 1 && (H.n = -1), ee(T, A)) : H.n = A : H.v = A); try { if (L = 2, k) { if (T || (Z = "next"), t = k[Z]) { if (!(t = t.call(k, A))) throw TypeError("iterator result is not an object"); if (!t.done) return t; A = t.value, T < 2 && (T = 0); } else T === 1 && (t = k.return) && t.call(k), T < 2 && (A = TypeError("The iterator does not provide a '" + Z + "' method"), T = 1); k = n; } else if ((t = (_ = H.n < 0) ? A : b.call(w, H)) !== o) break; } catch (F) { k = n, T = 1, A = F; } finally { L = 1; } } return { value: t, done: _ }; }; })(f, h, m), !0), y; } var o = {}; function s() { } function l() { } function c() { } t = Object.getPrototypeOf; var u = [][a] ? t(t([][a]())) : (tn(t = {}, a, function() { return this; }), t), d = c.prototype = s.prototype = Object.create(u); function p(f) { return Object.setPrototypeOf ? Object.setPrototypeOf(f, c) : (f.__proto__ = c, tn(f, r, "GeneratorFunction")), f.prototype = Object.create(d), f; } return l.prototype = c, tn(d, "constructor", c), tn(c, "constructor", l), l.displayName = "GeneratorFunction", tn(c, r, "GeneratorFunction"), tn(d), tn(d, r, "Generator"), tn(d, a, function() { return this; }), tn(d, "toString", function() { return "[object Generator]"; }), (xe = function() { return { w: i, m: p }; })(); } function tn(n, t, e, a) { var r = Object.defineProperty; try { r({}, "", {}); } catch { r = 0; } tn = function(i, o, s, l) { function c(u, d) { tn(i, u, function(p) { return this._invoke(u, d, p); }); } o ? r ? r(i, o, { value: s, enumerable: !l, configurable: !l, writable: !l }) : i[o] = s : (c("next", 0), c("throw", 1), c("return", 2)); }, tn(n, t, e, a); } function kD(n) { if (n != null) { var t = n[typeof Symbol == "function" && Symbol.iterator || "@@iterator"], e = 0; if (t) return t.call(n); if (typeof n.next == "function") return n; if (!isNaN(n.length)) return { next: function() { return n && e >= n.length && (n = void 0), { value: n && n[e++], done: !n }; } }; } throw new TypeError(typeof n + " is not iterable"); } function Hl(n, t) { return Hl = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, a) { return e.__proto__ = a, e; }, Hl(n, t); } function V(n, t) { return Xx(n) || wD(n, t) || Ku(n, t) || Jx(); } function TD(n, t) { for (; !{}.hasOwnProperty.call(n, t) && (n = Vo(n)) !== null; ) ; return n; } function j(n, t, e, a) { var r = Mv(Vo(1 & a ? n.prototype : n), t, e); return 2 & a && typeof r == "function" ? function(i) { return r.apply(e, i); } : r; } function tC(n) { return Xx(n) || Zx(n) || Ku(n) || Jx(); } function K(n) { return gD(n) || Zx(n) || Ku(n) || xD(); } function SD(n, t) { if (typeof n != "object" || !n) return n; var e = n[Symbol.toPrimitive]; if (e !== void 0) { var a = e.call(n, t); if (typeof a != "object") return a; throw new TypeError("@@toPrimitive must return a primitive value."); } return String(n); } function nC(n) { var t = SD(n, "string"); return typeof t == "symbol" ? t : t + ""; } function O(n) { "@babel/helpers - typeof"; return O = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, O(n); } function Ku(n, t) { if (n) { if (typeof n == "string") return Lv(n, t); var e = {}.toString.call(n).slice(8, -1); return e === "Object" && n.constructor && (e = n.constructor.name), e === "Map" || e === "Set" ? Array.from(n) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? Lv(n, t) : void 0; } } function Nv(n) { var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0; return Nv = function(e) { if (e === null || !bD(e)) return e; if (typeof e != "function") throw new TypeError("Super expression must either be null or a function"); if (t !== void 0) { if (t.has(e)) return t.get(e); t.set(e, a); } function a() { return yD(e, arguments, Vo(this).constructor); } return a.prototype = Object.create(e.prototype, { constructor: { value: a, enumerable: !1, writable: !0, configurable: !0 } }), Hl(a, e); }, Nv(n); } var AD = function(t) { var e = t.state, a = t.props; return function() { a.contentPosition ? (e.sheetMaskStyle = { position: "absolute" }, e.sheetContentStyle = { "max-height": a.height }) : (e.sheetMaskStyle = { position: "fixed" }, e.sheetContentStyle = { position: "fixed", "max-height": a.height }), e.contentStyle = a.contentStyle ? a.contentStyle : ""; }; }, ED = function(t) { var e = t.state, a = t.nextTick, r = t.refs, i = t.BScroll; return function() { a(function() { var o = r.scrollMenu; o && (e.scroll ? e.scroll.refresh() : e.scroll = new i(o, { probeType: 3, tap: "tap" })); }); }; }, DD = function(t) { var e = t.emit, a = t.state; return function() { a.scroll = null, e("update:visible", !1), e("close", !1); }; }, ID = function(t) { var e = t.emit, a = t.state; return function(r) { setTimeout(function() { a.toggle = r; }, 0), e("update:visible", r); }; }, LD = function(t) { var e = t.emit, a = t.state; return function(r) { a.active = r.id, a.scroll = null, e("update:visible", !1), e("update:modelValue", r.id), e("click", r); }; }, MD = function(t) { var e = t.api; return function() { e.handleClose("close", !1); }; }, ND = function(t) { var e = t.api; return function() { e.handleClose("hide", !1); }; }, OD = function(t) { var e = t.emit, a = t.props; return function(r) { var i = a.valueField; e("update:visible", !1), e("update:modelValue", r[i]), e("click", r); }; }, PD = function(t) { var e = t.state, a = t.api; return function() { a.handleClose("confirm", e); }; }, BD = function(t) { var e = t.emit; return function(a, r) { e("update:visible", !1), e("click", a, r); }; }, _D = function(t) { var e = t.vm, a = t.emit, r = t.props; return function(i, o) { typeof r.beforeClose == "function" && r.beforeClose(i) === !1 || (i === "close" ? e.$refs.drawer.close(!0) : a("update:visible", !1), a(i, o)); }; }, VD = ["state", "setSheetStyle", "initScrollMenu", "visibleHandle", "watchVisible", "menuHandle", "close", "selectOption", "confirm", "actionSelectOption", "hide"], $D = function(t, e, a, r) { var i = e.reactive, o = e.watch, s = a.emit, l = a.nextTick, c = a.refs, u = a.vm, d = r.BScroll, p = i({ toggle: !1, sheetMaskStyle: {}, sheetContentStyle: {}, scroll: null }), f = {}; return Object.assign(f, { state: p, setSheetStyle: AD({ state: p, props: t }), initScrollMenu: ED({ state: p, nextTick: l, refs: c, BScroll: d }), visibleHandle: DD({ emit: s, state: p }), watchVisible: ID({ emit: s, state: p }), menuHandle: LD({ state: p, emit: s }), confirm: PD({ state: p, api: f }), selectOption: OD({ emit: s, props: t }), actionSelectOption: BD({ emit: s }), hide: ND({ api: f }), close: MD({ api: f }), handleClose: _D({ vm: u, emit: s, props: t }) }), o(function() { return t.visible; }, function(v) { v && (f.setSheetStyle({ state: p, props: t }), f.initScrollMenu({ state: p, nextTick: l, refs: c, BScroll: d })), f.watchVisible(v); }), o(function() { return t.visible; }, f.watchVisible, { immediate: !0 }), f; }, Ti = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ov = { exports: {} }, Ye = {}, Pv = { exports: {} }, Xo = {}; function aC() { var n = {}; return n["align-content"] = !1, n["align-items"] = !1, n["align-self"] = !1, n["alignment-adjust"] = !1, n["alignment-baseline"] = !1, n.all = !1, n["anchor-point"] = !1, n.animation = !1, n["animation-delay"] = !1, n["animation-direction"] = !1, n["animation-duration"] = !1, n["animation-fill-mode"] = !1, n["animation-iteration-count"] = !1, n["animation-name"] = !1, n["animation-play-state"] = !1, n["animation-timing-function"] = !1, n.azimuth = !1, n["backface-visibility"] = !1, n.background = !0, n["background-attachment"] = !0, n["background-clip"] = !0, n["background-color"] = !0, n["background-image"] = !0, n["background-origin"] = !0, n["background-position"] = !0, n["background-repeat"] = !0, n["background-size"] = !0, n["baseline-shift"] = !1, n.binding = !1, n.bleed = !1, n["bookmark-label"] = !1, n["bookmark-level"] = !1, n["bookmark-state"] = !1, n.border = !0, n["border-bottom"] = !0, n["border-bottom-color"] = !0, n["border-bottom-left-radius"] = !0, n["border-bottom-right-radius"] = !0, n["border-bottom-style"] = !0, n["border-bottom-width"] = !0, n["border-collapse"] = !0, n["border-color"] = !0, n["border-image"] = !0, n["border-image-outset"] = !0, n["border-image-repeat"] = !0, n["border-image-slice"] = !0, n["border-image-source"] = !0, n["border-image-width"] = !0, n["border-left"] = !0, n["border-left-color"] = !0, n["border-left-style"] = !0, n["border-left-width"] = !0, n["border-radius"] = !0, n["border-right"] = !0, n["border-right-color"] = !0, n["border-right-style"] = !0, n["border-right-width"] = !0, n["border-spacing"] = !0, n["border-style"] = !0, n["border-top"] = !0, n["border-top-color"] = !0, n["border-top-left-radius"] = !0, n["border-top-right-radius"] = !0, n["border-top-style"] = !0, n["border-top-width"] = !0, n["border-width"] = !0, n.bottom = !1, n["box-decoration-break"] = !0, n["box-shadow"] = !0, n["box-sizing"] = !0, n["box-snap"] = !0, n["box-suppress"] = !0, n["break-after"] = !0, n["break-before"] = !0, n["break-inside"] = !0, n["caption-side"] = !1, n.chains = !1, n.clear = !0, n.clip = !1, n["clip-path"] = !1, n["clip-rule"] = !1, n.color = !0, n["color-interpolation-filters"] = !0, n["column-count"] = !1, n["column-fill"] = !1, n["column-gap"] = !1, n["column-rule"] = !1, n["column-rule-color"] = !1, n["column-rule-style"] = !1, n["column-rule-width"] = !1, n["column-span"] = !1, n["column-width"] = !1, n.columns = !1, n.contain = !1, n.content = !1, n["counter-increment"] = !1, n["counter-reset"] = !1, n["counter-set"] = !1, n.crop = !1, n.cue = !1, n["cue-after"] = !1, n["cue-before"] = !1, n.cursor = !1, n.direction = !1, n.display = !0, n["display-inside"] = !0, n["display-list"] = !0, n["display-outside"] = !0, n["dominant-baseline"] = !1, n.elevation = !1, n["empty-cells"] = !1, n.filter = !1, n.flex = !1, n["flex-basis"] = !1, n["flex-direction"] = !1, n["flex-flow"] = !1, n["flex-grow"] = !1, n["flex-shrink"] = !1, n["flex-wrap"] = !1, n.float = !1, n["float-offset"] = !1, n["flood-color"] = !1, n["flood-opacity"] = !1, n["flow-from"] = !1, n["flow-into"] = !1, n.font = !0, n["font-family"] = !0, n["font-feature-settings"] = !0, n["font-kerning"] = !0, n["font-language-override"] = !0, n["font-size"] = !0, n["font-size-adjust"] = !0, n["font-stretch"] = !0, n["font-style"] = !0, n["font-synthesis"] = !0, n["font-variant"] = !0, n["font-variant-alternates"] = !0, n["font-variant-caps"] = !0, n["font-variant-east-asian"] = !0, n["font-variant-ligatures"] = !0, n["font-variant-numeric"] = !0, n["font-variant-position"] = !0, n["font-weight"] = !0, n.grid = !1, n["grid-area"] = !1, n["grid-auto-columns"] = !1, n["grid-auto-flow"] = !1, n["grid-auto-rows"] = !1, n["grid-column"] = !1, n["grid-column-end"] = !1, n["grid-column-start"] = !1, n["grid-row"] = !1, n["grid-row-end"] = !1, n["grid-row-start"] = !1, n["grid-template"] = !1, n["grid-template-areas"] = !1, n["grid-template-columns"] = !1, n["grid-template-rows"] = !1, n["hanging-punctuation"] = !1, n.height = !0, n.hyphens = !1, n.icon = !1, n["image-orientation"] = !1, n["image-resolution"] = !1, n["ime-mode"] = !1, n["initial-letters"] = !1, n["inline-box-align"] = !1, n["justify-content"] = !1, n["justify-items"] = !1, n["justify-self"] = !1, n.left = !1, n["letter-spacing"] = !0, n["lighting-color"] = !0, n["line-box-contain"] = !1, n["line-break"] = !1, n["line-grid"] = !1, n["line-height"] = !1, n["line-snap"] = !1, n["line-stacking"] = !1, n["line-stacking-ruby"] = !1, n["line-stacking-shift"] = !1, n["line-stacking-strategy"] = !1, n["list-style"] = !0, n["list-style-image"] = !0, n["list-style-position"] = !0, n["list-style-type"] = !0, n.margin = !0, n["margin-bottom"] = !0, n["margin-left"] = !0, n["margin-right"] = !0, n["margin-top"] = !0, n["marker-offset"] = !1, n["marker-side"] = !1, n.marks = !1, n.mask = !1, n["mask-box"] = !1, n["mask-box-outset"] = !1, n["mask-box-repeat"] = !1, n["mask-box-slice"] = !1, n["mask-box-source"] = !1, n["mask-box-width"] = !1, n["mask-clip"] = !1, n["mask-image"] = !1, n["mask-origin"] = !1, n["mask-position"] = !1, n["mask-repeat"] = !1, n["mask-size"] = !1, n["mask-source-type"] = !1, n["mask-type"] = !1, n["max-height"] = !0, n["max-lines"] = !1, n["max-width"] = !0, n["min-height"] = !0, n["min-width"] = !0, n["move-to"] = !1, n["nav-down"] = !1, n["nav-index"] = !1, n["nav-left"] = !1, n["nav-right"] = !1, n["nav-up"] = !1, n["object-fit"] = !1, n["object-position"] = !1, n.opacity = !1, n.order = !1, n.orphans = !1, n.outline = !1, n["outline-color"] = !1, n["outline-offset"] = !1, n["outline-style"] = !1, n["outline-width"] = !1, n.overflow = !1, n["overflow-wrap"] = !1, n["overflow-x"] = !1, n["overflow-y"] = !1, n.padding = !0, n["padding-bottom"] = !0, n["padding-left"] = !0, n["padding-right"] = !0, n["padding-top"] = !0, n.page = !1, n["page-break-after"] = !1, n["page-break-before"] = !1, n["page-break-inside"] = !1, n["page-policy"] = !1, n.pause = !1, n["pause-after"] = !1, n["pause-before"] = !1, n.perspective = !1, n["perspective-origin"] = !1, n.pitch = !1, n["pitch-range"] = !1, n["play-during"] = !1, n.position = !1, n["presentation-level"] = !1, n.quotes = !1, n["region-fragment"] = !1, n.resize = !1, n.rest = !1, n["rest-after"] = !1, n["rest-before"] = !1, n.richness = !1, n.right = !1, n.rotation = !1, n["rotation-point"] = !1, n["ruby-align"] = !1, n["ruby-merge"] = !1, n["ruby-position"] = !1, n["shape-image-threshold"] = !1, n["shape-outside"] = !1, n["shape-margin"] = !1, n.size = !1, n.speak = !1, n["speak-as"] = !1, n["speak-header"] = !1, n["speak-numeral"] = !1, n["speak-punctuation"] = !1, n["speech-rate"] = !1, n.stress = !1, n["string-set"] = !1, n["tab-size"] = !1, n["table-layout"] = !1, n["text-align"] = !0, n["text-align-last"] = !0, n["text-combine-upright"] = !0, n["text-decoration"] = !0, n["text-decoration-color"] = !0, n["text-decoration-line"] = !0, n["text-decoration-skip"] = !0, n["text-decoration-style"] = !0, n["text-emphasis"] = !0, n["text-emphasis-color"] = !0, n["text-emphasis-position"] = !0, n["text-emphasis-style"] = !0, n["text-height"] = !0, n["text-indent"] = !0, n["text-justify"] = !0, n["text-orientation"] = !0, n["text-overflow"] = !0, n["text-shadow"] = !0, n["text-space-collapse"] = !0, n["text-transform"] = !0, n["text-underline-position"] = !0, n["text-wrap"] = !0, n.top = !1, n.transform = !1, n["transform-origin"] = !1, n["transform-style"] = !1, n.transition = !1, n["transition-delay"] = !1, n["transition-duration"] = !1, n["transition-property"] = !1, n["transition-timing-function"] = !1, n["unicode-bidi"] = !1, n["vertical-align"] = !1, n.visibility = !1, n["voice-balance"] = !1, n["voice-duration"] = !1, n["voice-family"] = !1, n["voice-pitch"] = !1, n["voice-range"] = !1, n["voice-rate"] = !1, n["voice-stress"] = !1, n["voice-volume"] = !1, n.volume = !1, n["white-space"] = !1, n.widows = !1, n.width = !0, n["will-change"] = !1, n["word-break"] = !0, n["word-spacing"] = !0, n["word-wrap"] = !0, n["wrap-flow"] = !1, n["wrap-through"] = !1, n["writing-mode"] = !1, n["z-index"] = !1, n; } function FD(n, t, e) { } function RD(n, t, e) { } var zD = /javascript\s*\:/img; function HD(n, t) { return zD.test(t) ? "" : t; } Xo.whiteList = aC(); Xo.getDefaultWhiteList = aC; Xo.onAttr = FD; Xo.onIgnoreAttr = RD; Xo.safeAttrValue = HD; var UD = { indexOf: function(t, e) { var a, r; if (Array.prototype.indexOf) return t.indexOf(e); for (a = 0, r = t.length; a < r; a++) if (t[a] === e) return a; return -1; }, forEach: function(t, e, a) { var r, i; if (Array.prototype.forEach) return t.forEach(e, a); for (r = 0, i = t.length; r < i; r++) e.call(a, t[r], r, t); }, trim: function(t) { return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, ""); }, trimRight: function(t) { return String.prototype.trimRight ? t.trimRight() : t.replace(/(\s*$)/g, ""); } }, xl = UD; function jD(n, t) { n = xl.trimRight(n), n[n.length - 1] !== ";" && (n += ";"); var e = n.length, a = !1, r = 0, i = 0, o = ""; function s() { if (!a) { var u = xl.trim(n.slice(r, i)), d = u.indexOf(":"); if (d !== -1) { var p = xl.trim(u.slice(0, d)), f = xl.trim(u.slice(d + 1)); if (p) { var v = t(r, o.length, p, f, u); v && (o += v + "; "); } } } r = i + 1; } for (; i < e; i++) { var l = n[i]; if (l === "/" && n[i + 1] === "*") { var c = n.indexOf("*/", i + 2); if (c === -1) break; i = c + 1, r = i + 1, a = !1; } else l === "(" ? a = !0 : l === ")" ? a = !1 : l === ";" ? a || s() : l === ` ` && s(); } return xl.trim(o); } var qD = jD, Ic = Xo, WD = qD; function Tg(n) { return n == null; } function YD(n) { var t = {}; for (var e in n) t[e] = n[e]; return t; } function rC(n) { n = YD(n || {}), n.whiteList = n.whiteList || Ic.whiteList, n.onAttr = n.onAttr || Ic.onAttr, n.onIgnoreAttr = n.onIgnoreAttr || Ic.onIgnoreAttr, n.safeAttrValue = n.safeAttrValue || Ic.safeAttrValue, this.options = n; } rC.prototype.process = function(n) { if (n = n || "", n = n.toString(), !n) return ""; var t = this, e = t.options, a = e.whiteList, r = e.onAttr, i = e.onIgnoreAttr, o = e.safeAttrValue, s = WD(n, function(l, c, u, d, p) { var f = a[u], v = !1; if (f === !0 ? v = f : typeof f == "function" ? v = f(d) : f instanceof RegExp && (v = f.test(d)), v !== !0 && (v = !1), d = o(u, d), !!d) { var h = { position: c, sourcePosition: l, source: p, isWhite: v }; if (v) { var m = r(u, d, h); return Tg(m) ? u + ":" + d : m; } else { var m = i(u, d, h); if (!Tg(m)) return m; } } }); return s; }; var KD = rC; (function(n, t) { var e = Xo, a = KD; function r(o, s) { var l = new a(s); return l.process(o); } t = n.exports = r, t.FilterCSS = a; for (var i in e) t[i] = e[i]; typeof window < "u" && (window.filterCSS = n.exports); })(Pv, Pv.exports); var Jh = Pv.exports, em = { indexOf: function(t, e) { var a, r; if (Array.prototype.indexOf) return t.indexOf(e); for (a = 0, r = t.length; a < r; a++) if (t[a] === e) return a; return -1; }, forEach: function(t, e, a) { var r, i; if (Array.prototype.forEach) return t.forEach(e, a); for (r = 0, i = t.length; r < i; r++) e.call(a, t[r], r, t); }, trim: function(t) { return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, ""); }, spaceIndex: function(t) { var e = /\s|\n|\t/, a = e.exec(t); return a ? a.index : -1; } }, GD = Jh.FilterCSS, XD = Jh.getDefaultWhiteList, bu = em; function iC() { 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"], ins: ["datetime"], 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"] }; } var oC = new GD(); function QD(n, t, e) { } function ZD(n, t, e) { } function JD(n, t, e) { } function eI(n, t, e) { } function sC(n) { return n.replace(nI, "&lt;").replace(aI, "&gt;"); } function tI(n, t, e, a) { if (e = fC(e), t === "href" || t === "src") { if (e = bu.trim(e), e === "#") return "#"; if (!(e.substr(0, 7) === "http://" || e.substr(0, 8) === "https://" || e.substr(0, 7) === "mailto:" || e.substr(0, 4) === "tel:" || e.substr(0, 11) === "data:image/" || e.substr(0, 6) === "ftp://" || e.substr(0, 2) === "./" || e.substr(0, 3) === "../" || e[0] === "#" || e[0] === "/")) return ""; } else if (t === "background") { if (Lc.lastIndex = 0, Lc.test(e)) return ""; } else if (t === "style") { if (Sg.lastIndex = 0, Sg.test(e) || (Ag.lastIndex = 0, Ag.test(e) && (Lc.lastIndex = 0, Lc.test(e)))) return ""; a !== !1 && (a = a || oC, e = a.process(e)); } return e = vC(e), e; } var nI = /</g, aI = />/g, rI = /"/g, iI = /&quot;/g, oI = /&#([a-zA-Z0-9]*);?/gim, sI = /&colon;?/gim, lI = /&newline;?/gim, Lc = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi, Sg = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, Ag = /u\s*r\s*l\s*\(.*/gi; function lC(n) { return n.replace(rI, "&quot;"); } function cC(n) { return n.replace(iI, '"'); } function uC(n) { return n.replace(oI, function(e, a) { return a[0] === "x" || a[0] === "X" ? String.fromCharCode(parseInt(a.substr(1), 16)) : String.fromCharCode(parseInt(a, 10)); }); } function dC(n) { return n.replace(sI, ":").replace(lI, " "); } function pC(n) { for (var t = "", e = 0, a = n.length; e < a; e++) t += n.charCodeAt(e) < 32 ? " " : n.charAt(e); return bu.trim(t); } function fC(n) { return n = cC(n), n = uC(n), n = dC(n), n = pC(n), n; } function vC(n) { return n = lC(n), n = sC(n), n; } function cI() { return ""; } function uI(n, t) { typeof t != "function" && (t = function() { }); var e = !Array.isArray(n); function a(o) { return e ? !0 : bu.indexOf(n, o) !== -1; } var r = [], i = !1; return { onIgnoreTag: function(s, l, c) { if (a(s)) if (c.isClosing) { var u = "[/removed]", d = c.position + u.length; return r.push([i !== !1 ? i : c.position, d]), i = !1, u; } else return i || (i = c.position), "[removed]"; else return t(s, l, c); }, remove: function(s) { var l = "", c = 0; return bu.forEach(r, function(u) { l += s.slice(c, u[0]), c = u[1]; }), l += s.slice(c), l; } }; } function dI(n) { for (var t = "", e = 0; e < n.length; ) { var a = n.indexOf("<!--", e); if (a === -1) { t += n.slice(e); break; } t += n.slice(e, a); var r = n.indexOf("-->", a); if (r === -1) break; e = r + 3; } return t; } function pI(n) { var t = n.split(""); return t = t.filter(function(e) { var a = e.charCodeAt(0); return a === 127 ? !1 : a <= 31 ? a === 10 || a === 13 : !0; }), t.join(""); } Ye.whiteList = iC(); Ye.getDefaultWhiteList = iC; Ye.onTag = QD; Ye.onIgnoreTag = ZD; Ye.onTagAttr = JD; Ye.onIgnoreTagAttr = eI; Ye.safeAttrValue = tI; Ye.escapeHtml = sC; Ye.escapeQuote = lC; Ye.unescapeQuote = cC; Ye.escapeHtmlEntities = uC; Ye.escapeDangerHtml5Entities = dC; Ye.clearNonPrintableCharacter = pC; Ye.friendlyAttrValue = fC; Ye.escapeAttrValue = vC; Ye.onIgnoreTagStripAll = cI; Ye.StripTagBody = uI; Ye.stripCommentTag = dI; Ye.stripBlankChar = pI; Ye.cssFilter = oC; Ye.getDefaultCSSWhiteList = XD; var Gu = {}, ki = em; function fI(n) { var t = ki.spaceIndex(n), e; return t === -1 ? e = n.slice(1, -1) : e = n.slice(1, t + 1), e = ki.trim(e).toLowerCase(), e.slice(0, 1) === "/" && (e = e.slice(1)), e.slice(-1) === "/" && (e = e.slice(0, -1)), e; } function vI(n) { return n.slice(0, 2) === "</"; } function hI(n, t, e) { var a = "", r = 0, i = !1, o = !1, s = 0, l = n.length, c = "", u = ""; e: for (s = 0; s < l; s++) { var d = n.charAt(s); if (i === !1) { if (d === "<") { i = s; continue; } } else if (o === !1) { if (d === "<") { a += e(n.slice(r, s)), i = s, r = s; continue; } if (d === ">" || s === l - 1) { a += e(n.slice(r, i)), u = n.slice(i, s + 1), c = fI(u), a += t(i, a.length, c, u, vI(u)), r = s + 1, i = !1; continue; } if (d === '"' || d === "'") for (var p = 1, f = n.charAt(s - p); f.trim() === "" || f === "="; ) { if (f === "=") { o = d; continue e; } f = n.charAt(s - ++p); } } else if (d === o) { o = !1; continue; } } return r < l && (a += e(n.substr(r))), a; } var mI = /[^a-zA-Z0-9\\_:.-]/gim; function gI(n, t) { var e = 0, a = 0, r = [], i = !1, o = n.length; function s(p, f) { if (p = ki.trim(p), p = p.replace(mI, "").toLowerCase(), !(p.length < 1)) { var v = t(p, f || ""); v && r.push(v); } } for (var l = 0; l < o; l++) { var c = n.charAt(l), u, d; if (i === !1 && c === "=") { i = n.slice(e, l), e = l + 1, a = n.charAt(e) === '"' || n.charAt(e) === "'" ? e : bI(n, l + 1); continue; } if (i !== !1 && l === a) { if (d = n.indexOf(c, l + 1), d === -1) break; u = ki.trim(n.slice(a + 1, d)), s(i, u), i = !1, l = d, e = l + 1; continue; } if (/\s|\n|\t/.test(c)) if (n = n.replace(/\s|\n|\t/g, " "), i === !1) if (d = yI(n, l), d === -1) { u = ki.trim(n.slice(e, l)), s(u), i = !1, e = l + 1; continue; } else { l = d - 1; continue; } else if (d = wI(n, l - 1), d === -1) { u = ki.trim(n.slice(e, l)), u = Eg(u), s(i, u), i = !1, e = l + 1; continue; } else continue; } return e < n.length && (i === !1 ? s(n.slice(e)) : s(i, Eg(ki.trim(n.slice(e))))), ki.trim(r.join(" ")); } function yI(n, t) { for (; t < n.length; t++) { var e = n[t]; if (e !== " ") return e === "=" ? t : -1; } } function bI(n, t) { for (; t < n.length; t++) { var e = n[t]; if (e !== " ") return e === "'" || e === '"' ? t : -1; } } function wI(n, t) { for (; t > 0; t--) { var e = n[t]; if (e !== " ") return e === "=" ? t : -1; } } function xI(n) { return n[0] === '"' && n[n.length - 1] === '"' || n[0] === "'" && n[n.length - 1] === "'"; } function Eg(n) { return xI(n) ? n.substr(1, n.length - 2) : n; } Gu.parseTag = hI; Gu.parseAttr = gI; var CI = Jh.FilterCSS, Bn = Ye, hC = Gu, kI = hC.parseTag, TI = hC.parseAttr, ou = em; function Mc(n) { return n == null; } function SI(n) { var t = ou.spaceIndex(n); if (t === -1) return { html: "", closing: n[n.length - 2] === "/" }; n = ou.trim(n.slice(t + 1, -1)); var e = n[n.length - 1] === "/"; return e && (n = ou.trim(n.slice(0, -1))), { html: n, closing: e }; } function AI(n) { var t = {}; for (var e in n) t[e] = n[e]; return t; } function EI(n) { var t = {}; for (var e in n) Array.isArray(n[e]) ? t[e.toLowerCase()] = n[e].map(function(a) { return a.toLowerCase(); }) : t[e.toLowerCase()] = n[e]; return t; } function mC(n) { n = AI(n || {}), n.stripIgnoreTag && (n.onIgnoreTag && console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'), n.onIgnoreTag = Bn.onIgnoreTagStripAll), n.whiteList || n.allowList ? n.whiteList = EI(n.whiteList || n.allowList) : n.whiteList = Bn.whiteList, n.onTag = n.onTag || Bn.onTag, n.onTagAttr = n.onTagAttr || Bn.onTagAttr, n.onIgnoreTag = n.onIgnoreTag || Bn.onIgnoreTag, n.onIgnoreTagAttr = n.onIgnoreTagAttr || Bn.onIgnoreTagAttr, n.safeAttrValue = n.safeAttrValue || Bn.safeAttrValue, n.escapeHtml = n.escapeHtml || Bn.escapeHtml, this.options = n, n.css === !1 ? this.cssFilter = !1 : (n.css = n.css || {}, this.cssFilter = new CI(n.css)); } mC.prototype.process = function(n) { if (n = n || "", n = n.toString(), !n) return ""; var t = this, e = t.options, a = e.whiteList, r = e.onTag, i = e.onIgnoreTag, o = e.onTagAttr, s = e.onIgnoreTagAttr, l = e.safeAttrValue, c = e.escapeHtml, u = t.cssFilter; e.stripBlankChar && (n = Bn.stripBlankChar(n)), e.allowCommentTag || (n = Bn.stripCommentTag(n)); var d = !1; e.stripIgnoreTagBody && (d = Bn.StripTagBody(e.stripIgnoreTagBody, i), i = d.onIgnoreTag); var p = kI(n, function(f, v, h, m, g) { var y = { sourcePosition: f, position: v, isClosing: g, isWhite: Object.prototype.hasOwnProperty.call(a, h) }, b = r(h, m, y); if (!Mc(b)) return b; if (y.isWhite) { if (y.isClosing) return "</" + h + ">"; var w = SI(m), x = a[h], k = TI(w.html, function(T, A) { var L = ou.indexOf(x, T) !== -1, I = o(h, T, A, L); return Mc(I) ? L ? (A = l(h, T, A, u), A ? T + '="' + A + '"' : T) : (I = s(h, T, A, L), Mc(I) ? void 0 : I) : I; }); return m = "<" + h, k && (m += " " + k), w.closing && (m += " /"), m += ">", m; } else return b = i(h, m, y), Mc(b) ? c(m) : b; }, c); return d && (p = d.remove(p)), p; }; var DI = mC; (function(n, t) { var e = Ye, a = Gu, r = DI; function i(s, l) { var c = new r(l); return c.process(s); } t = n.exports = i, t.filterXSS = i, t.FilterXSS = r, (function() { for (var s in e) t[s] = e[s]; for (var l in a) t[l] = a[l]; })(), typeof window < "u" && (window.filterXSS = n.exports); function o() { return typeof self < "u" && typeof DedicatedWorkerGlobalScope < "u" && self instanceof DedicatedWorkerGlobalScope; } o() && (self.filterXSS = n.exports); })(Ov, Ov.exports); var wu = Ov.exports, yn = { enableAttrs: !0, enableHtml: !0, enableUrl: !0, html: { whiteList: { a: ["class", "style", "contenteditable", "data-id", "data-title", "data-size", "href", "data-last-modified"], address: ["class", "style"], area: ["class", "style"], article: ["class", "style"], aside: ["class", "style"], audio: ["class", "style"], b: ["class", "style"], bdi: ["class", "style"], bdo: ["class", "style"], big: ["class", "style"], blockquote: ["class", "style"], br: ["class", "style"], caption: ["class", "style"], center: ["class", "style"], cite: ["class", "style"], code: ["class", "style"], col: ["class", "style"], colgroup: ["class", "style"], dd: ["class", "style"], del: ["class", "style"], details: ["class", "style"], div: ["class", "style", "spellcheck", "data-gramm", "spellcheck", "data-mode", "data-position", "data-row", "data-cell", "data-rowspan", "data-colspan", "data-cell-bg", "data-parent-bg"], dl: ["class", "style"], dt: ["class", "style"], em: ["class", "style"], figcaption: ["class", "style"], figure: ["class", "style"], font: ["class", "style"], footer: ["class", "style"], h1: ["class", "style"], h2: ["class", "style"], h3: ["class", "style"], h4: ["class", "style"], h5: ["class", "style"], h6: ["class", "style"], header: ["class", "style"], hr: ["class", "style"], i: ["class", "style", "data-image-id", "data-image"], img: ["class", "style", "data-image-id", "src"], input: ["class", "style", "data-formula", "data-link", "data-video"], ins: ["class", "style"], li: ["class", "style"], mark: ["class", "style"], nav: ["class", "style"], ol: ["class", "style"], p: ["class", "style"], pre: ["class", "style"], s: ["class", "style"], section: ["class", "style"], small: ["class", "style"], span: ["class", "style", "contenteditable", "color", "style"], sub: ["class", "style"], summary: ["class", "style"], sup: ["class", "style"], strong: ["class", "style"], strike: ["class", "style"], svg: ["class", "style", "t", "viewBox", "viewbox", "version", "xmlns", "p-id", "xmlns:xlink"], path: ["d", "p-id"], table: ["class", "style"], tbody: ["class", "style"], td: ["class", "style", "data-row", "data-cell", "data-cell-bg", "data-parent-bg"], tfoot: ["class", "style"], th: ["class", "style"], thead: ["class", "style"], tr: ["class", "style", "data-row"], tt: ["class", "style"], u: ["class", "style"], ul: ["class", "style"], video: ["class", "style"] } } }, II = wu.getDefaultWhiteList && wu.getDefaultWhiteList() || {}; yn.html.whiteList = Object.assign(II, yn.html.whiteList); var gC = new wu.FilterXSS(yn.html), LI = function() { return yn; }, MI = function(t) { var e, a; t != null && (e = t.html) !== null && e !== void 0 && e.whiteList && (a = Object.assign(yn.html.whiteList, t.html.whiteList)), yn = Object.assign(yn, t), a && (yn.html.whiteList = a), gC = new wu.FilterXSS(yn.html); }, yC = function(t) { return !yn.enableHtml || typeof t != "string" ? t : gC.process(t); }, NI = function(t) { yC = t; }, bC = function(t) { return !yn.enableAttrs || typeof t != "string" ? t : t.replace(/<.*?>/gi, "").replace(/on[a-z]+=/gi, ""); }, OI = function(t) { bC = t; }, wC = function(t) { if (!yn.enableUrl || typeof t != "string") return t; var e = t.replace(/&#(\w+)(^\w|;)?/g, function(r, i) { return String.fromCharCode(i); }).replace(/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim, "").trim(); if (!e) return ""; if ([".", "/"].includes(e[0])) return e; var a = e.match(/^([^:]+):/gm); return a && /^([^\w]*)(javascript|data|vbscript)/im.test(a[0]) ? "" : e; }, PI = function(t) { wC = t; }; const Oe = { getXssOption: LI, setXssOption: MI, filterHtml: yC, setFilterHtml: NI, filterAttrs: bC, setFilterAttrs: OI, filterUrl: wC, setFilterUrl: PI }; var BI = globalThis, Qr = BI.console, xC = Object.prototype.toString, Re = Object.prototype.hasOwnProperty, _I = Object.getPrototypeOf, CC = Re.toString, VI = CC.call(Object), $I = { "[object Error]": "error", "[object Object]": "object", "[object RegExp]": "regExp", "[object Date]": "date", "[object Array]": "array", "[object Function]": "function", "[object AsyncFunction]": "asyncFunction", "[object String]": "string", "[object Number]": "number", "[object Boolean]": "boolean" }, Te = function(t) { return t == null; }, wt = function(t) { return Te(t) ? String(t) : $I[xC.call(t)] || "object"; }, Ot = function(t) { return wt(t) === "object"; }, FI = function(t) { return ["asyncFunction", "function"].includes(wt(t)); }, $o = function(t) { if (!t || xC.call(t) !== "[object Object]") return !1; var e = _I(t); if (!e) return !0; var a = Re.call(e, "constructor") && e.constructor; return typeof a == "function" && CC.call(a) === VI; }, Ul = function(t) { var e = wt(t); if (e === "object" || e === "array") { for (var a in t) if (Re.call(t, a)) return !1; } return !0; }, _e = function(t) { return typeof t == "number" && isFinite(t); }, su = function(t) { return t - parseFloat(t) >= 0; }, Qo = function(t) { return wt(t) === "date"; }, RI = function(t, e) { return t === e || typeof t == "number" && typeof e == "number" && isNaN(t) && isNaN(e); }, kC = function() { return window; }, me = typeof window > "u", zI = function() { var t = 8; return document.addEventListener && window.performance && (t = 9, window.atob && window.matchMedia && (t = 10, !window.attachEvent && !document.all && (t = 11))), t; }, HI = function(t) { t.chrome && ~navigator.userAgent.indexOf("Edg") ? (t.name = "edge", t.edge = !0, delete t.chrome) : !document.documentMode && window.StyleMedia && (t.name = "edge", t.edge = !0); }, Bv = (function() { if (me) return null; var n = { name: "", version: 0, isDoc: typeof document < "u", isMobile: !1, isPC: !0, isNode: me, chrome: !1, ie: !1, firefox: !1, safari: !1, opera: !1, edge: !1 }, t = /(Andr