iking-web-ui-pro 1.0.33 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/IkApprovalProcess/ik.index.es.js +91 -64
  2. package/dist/IkApprovalProcess/iking-web-ui-pro.css +1 -1
  3. package/dist/IkApprovalProcessDetail/ik.index.es.js +7661 -6388
  4. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
  5. package/dist/IkAutoCard/ik.index.es.js +13 -13
  6. package/dist/IkBaseDialog/ik.index.es.js +72 -72
  7. package/dist/IkBottomOperate/ik.index.es.js +43 -19
  8. package/dist/IkBtnContent/ik.index.es.js +2 -2
  9. package/dist/IkBtnSetting/ik.index.es.js +54 -50
  10. package/dist/IkCalendar/ik.index.es.js +103 -71
  11. package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
  12. package/dist/IkCollapseCard/ik.index.es.js +30 -30
  13. package/dist/IkCurrencyInput/ik.index.es.js +2 -2
  14. package/dist/IkDescription/ik.index.es.js +7486 -6213
  15. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  16. package/dist/IkDetailPreviewFiles/ik.index.es.js +7423 -6154
  17. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  18. package/dist/IkDragList/ik.index.es.js +1 -1
  19. package/dist/IkExpandCollapse/ik.index.es.js +40 -40
  20. package/dist/IkFileIcon/ik.index.es.js +45 -45
  21. package/dist/IkHorizontalStepBar/ik.index.es.js +12 -12
  22. package/dist/IkIconPicker/ik.index.es.js +78 -78
  23. package/dist/IkImageUploadEditor/ik.index.es.js +2263 -2582
  24. package/dist/IkImageViewer/ik.index.es.js +26 -26
  25. package/dist/IkMonacoEditor/ik.index.es.js +74 -74
  26. package/dist/IkOnlyOffice/ik.index.es.js +1397 -139
  27. package/dist/IkPageFull/ik.index.es.js +289 -243
  28. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  29. package/dist/IkPageTabs/ik.index.es.js +1 -1
  30. package/dist/IkPickerUser/ik.index.es.js +82 -58
  31. package/dist/IkPickerUser/iking-web-ui-pro.css +1 -1
  32. package/dist/IkPlayer/ik.index.es.js +3548 -3537
  33. package/dist/IkPlayer/iking-web-ui-pro.css +1 -1
  34. package/dist/IkPreviewFile/ik.index.es.js +7444 -6175
  35. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  36. package/dist/IkPreviewFileDialog/ik.index.es.js +7375 -6106
  37. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  38. package/dist/IkPrint/{html2canvas.esm-DgdJBc_o.mjs → html2canvas.esm-dgT_1dIT.mjs} +78 -78
  39. package/dist/IkPrint/ik.index.es.js +132 -104
  40. package/dist/IkPrint/{index.es-CKOlDLRQ.mjs → index.es-DzGIwinU.mjs} +1800 -1762
  41. package/dist/IkPrint/jspdf.es.min-ByQMz4Ps.mjs +9956 -0
  42. package/dist/IkPrint/purify.es-Bb-cVdCo.mjs +536 -0
  43. package/dist/IkPrintConfig/ik.index.es.js +3 -3
  44. package/dist/IkPrintView/ik.index.es.js +1 -1
  45. package/dist/IkRadioGroup/ik.index.es.js +45 -45
  46. package/dist/IkSearch/ik.index.es.js +81 -57
  47. package/dist/IkSearch/iking-web-ui-pro.css +1 -1
  48. package/dist/IkSearchHead/ik.index.es.js +5 -5
  49. package/dist/IkSelectTag/ik.index.es.js +8 -10
  50. package/dist/IkSideText/ik.index.es.js +61 -61
  51. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  52. package/dist/IkStatu/ik.index.es.js +1 -1
  53. package/dist/IkStatuOver/ik.index.es.js +5 -7
  54. package/dist/IkSvgIcon/ik.index.es.js +52 -52
  55. package/dist/IkTemplateOfficeConfig/ik.index.es.js +1562 -304
  56. package/dist/IkTinymce/ik.index.es.js +29099 -29715
  57. package/dist/IkTooltip/ik.index.es.js +2 -2
  58. package/dist/IkTree/ik.index.es.js +4 -4
  59. package/dist/IkTree/iking-web-ui-pro.css +1 -1
  60. package/dist/IkUploadFile/ik.index.es.js +7646 -6377
  61. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  62. package/dist/IkUploadImage/ik.index.es.js +205 -205
  63. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  64. package/dist/IkVerticalStepBar/ik.index.es.js +66 -66
  65. package/dist/{html2canvas.esm-DgdJBc_o.mjs → html2canvas.esm-dgT_1dIT.mjs} +78 -78
  66. package/dist/iking-web-ui-pro.css +2 -2
  67. package/dist/{index-CAKmb_Mu.mjs → index-DVuuvdy2.mjs} +42838 -42389
  68. package/dist/{index.es-CGVvoq4d.mjs → index.es-vFpIYezf.mjs} +1799 -1761
  69. package/dist/index.es.js +1 -1
  70. package/dist/index.umd.js +271 -266
  71. package/dist/jspdf.es.min-DeyzL-gl.mjs +9956 -0
  72. package/dist/purify.es-Bb-cVdCo.mjs +536 -0
  73. package/dist/src/components/IkDescription/index.d.ts +15 -0
  74. package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +9 -0
  75. package/dist/src/components/IkPageFull/src/IkDialog.d.ts +1 -1
  76. package/dist/src/components/IkPickerUser/index.d.ts +1 -1
  77. package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +1 -1
  78. package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +1 -1
  79. package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +1 -1
  80. package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +1 -1
  81. package/dist/src/components/IkPreviewFile/index.d.ts +3 -3
  82. package/dist/src/components/IkPreviewFile/src/IkPreviewFile.vue.d.ts +2 -2
  83. package/package.json +1 -1
  84. package/dist/IkPrint/jspdf.es.min-CTJMR-3s.mjs +0 -10596
  85. package/dist/IkPrint/purify.es-ofLoJV2y.mjs +0 -537
  86. package/dist/jspdf.es.min-XzfyGVex.mjs +0 -10596
  87. package/dist/purify.es-ofLoJV2y.mjs +0 -537
@@ -1,537 +0,0 @@
1
- /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
2
- const {
3
- entries: Tt,
4
- setPrototypeOf: rt,
5
- isFrozen: Bt,
6
- getPrototypeOf: Yt,
7
- getOwnPropertyDescriptor: Xt
8
- } = Object;
9
- let {
10
- freeze: S,
11
- seal: O,
12
- create: _t
13
- } = Object, {
14
- apply: we,
15
- construct: xe
16
- } = typeof Reflect < "u" && Reflect;
17
- S || (S = function(o) {
18
- return o;
19
- });
20
- O || (O = function(o) {
21
- return o;
22
- });
23
- we || (we = function(o, l, s) {
24
- return o.apply(l, s);
25
- });
26
- xe || (xe = function(o, l) {
27
- return new o(...l);
28
- });
29
- const le = R(Array.prototype.forEach), jt = R(Array.prototype.lastIndexOf), st = R(Array.prototype.pop), $ = R(Array.prototype.push), Vt = R(Array.prototype.splice), fe = R(String.prototype.toLowerCase), Ne = R(String.prototype.toString), lt = R(String.prototype.match), q = R(String.prototype.replace), $t = R(String.prototype.indexOf), qt = R(String.prototype.trim), L = R(Object.prototype.hasOwnProperty), A = R(RegExp.prototype.test), K = Kt(TypeError);
30
- function R(r) {
31
- return function(o) {
32
- o instanceof RegExp && (o.lastIndex = 0);
33
- for (var l = arguments.length, s = new Array(l > 1 ? l - 1 : 0), T = 1; T < l; T++)
34
- s[T - 1] = arguments[T];
35
- return we(r, o, s);
36
- };
37
- }
38
- function Kt(r) {
39
- return function() {
40
- for (var o = arguments.length, l = new Array(o), s = 0; s < o; s++)
41
- l[s] = arguments[s];
42
- return xe(r, l);
43
- };
44
- }
45
- function a(r, o) {
46
- let l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : fe;
47
- rt && rt(r, null);
48
- let s = o.length;
49
- for (; s--; ) {
50
- let T = o[s];
51
- if (typeof T == "string") {
52
- const N = l(T);
53
- N !== T && (Bt(o) || (o[s] = N), T = N);
54
- }
55
- r[T] = !0;
56
- }
57
- return r;
58
- }
59
- function Zt(r) {
60
- for (let o = 0; o < r.length; o++)
61
- L(r, o) || (r[o] = null);
62
- return r;
63
- }
64
- function C(r) {
65
- const o = _t(null);
66
- for (const [l, s] of Tt(r))
67
- L(r, l) && (Array.isArray(s) ? o[l] = Zt(s) : s && typeof s == "object" && s.constructor === Object ? o[l] = C(s) : o[l] = s);
68
- return o;
69
- }
70
- function Z(r, o) {
71
- for (; r !== null; ) {
72
- const s = Xt(r, o);
73
- if (s) {
74
- if (s.get)
75
- return R(s.get);
76
- if (typeof s.value == "function")
77
- return R(s.value);
78
- }
79
- r = Yt(r);
80
- }
81
- function l() {
82
- return null;
83
- }
84
- return l;
85
- }
86
- const ct = S(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), be = S(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ie = S(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Jt = S(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Me = S(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Qt = S(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ft = S(["#text"]), ut = S(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ce = S(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), mt = S(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), ce = S(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), en = O(/\{\{[\w\W]*|[\w\W]*\}\}/gm), tn = O(/<%[\w\W]*|[\w\W]*%>/gm), nn = O(/\$\{[\w\W]*/gm), on = O(/^data-[\-\w.\u00B7-\uFFFF]+$/), an = O(/^aria-[\-\w]+$/), Et = O(
87
- /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
88
- // eslint-disable-line no-useless-escape
89
- ), rn = O(/^(?:\w+script|data):/i), sn = O(
90
- /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
91
- // eslint-disable-line no-control-regex
92
- ), gt = O(/^html$/i), ln = O(/^[a-z][.\w]*(-[.\w]+)+$/i);
93
- var pt = /* @__PURE__ */ Object.freeze({
94
- __proto__: null,
95
- ARIA_ATTR: an,
96
- ATTR_WHITESPACE: sn,
97
- CUSTOM_ELEMENT: ln,
98
- DATA_ATTR: on,
99
- DOCTYPE_NAME: gt,
100
- ERB_EXPR: tn,
101
- IS_ALLOWED_URI: Et,
102
- IS_SCRIPT_OR_DATA: rn,
103
- MUSTACHE_EXPR: en,
104
- TMPLIT_EXPR: nn
105
- });
106
- const J = {
107
- element: 1,
108
- attribute: 2,
109
- text: 3,
110
- cdataSection: 4,
111
- entityReference: 5,
112
- // Deprecated
113
- entityNode: 6,
114
- // Deprecated
115
- progressingInstruction: 7,
116
- comment: 8,
117
- document: 9,
118
- documentType: 10,
119
- documentFragment: 11,
120
- notation: 12
121
- // Deprecated
122
- }, cn = function() {
123
- return typeof window > "u" ? null : window;
124
- }, fn = function(o, l) {
125
- if (typeof o != "object" || typeof o.createPolicy != "function")
126
- return null;
127
- let s = null;
128
- const T = "data-tt-policy-suffix";
129
- l && l.hasAttribute(T) && (s = l.getAttribute(T));
130
- const N = "dompurify" + (s ? "#" + s : "");
131
- try {
132
- return o.createPolicy(N, {
133
- createHTML(x) {
134
- return x;
135
- },
136
- createScriptURL(x) {
137
- return x;
138
- }
139
- });
140
- } catch {
141
- return console.warn("TrustedTypes policy " + N + " could not be created."), null;
142
- }
143
- }, dt = function() {
144
- return {
145
- afterSanitizeAttributes: [],
146
- afterSanitizeElements: [],
147
- afterSanitizeShadowDOM: [],
148
- beforeSanitizeAttributes: [],
149
- beforeSanitizeElements: [],
150
- beforeSanitizeShadowDOM: [],
151
- uponSanitizeAttribute: [],
152
- uponSanitizeElement: [],
153
- uponSanitizeShadowNode: []
154
- };
155
- };
156
- function ht() {
157
- let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : cn();
158
- const o = (i) => ht(i);
159
- if (o.version = "3.2.6", o.removed = [], !r || !r.document || r.document.nodeType !== J.document || !r.Element)
160
- return o.isSupported = !1, o;
161
- let {
162
- document: l
163
- } = r;
164
- const s = l, T = s.currentScript, {
165
- DocumentFragment: N,
166
- HTMLTemplateElement: x,
167
- Node: ue,
168
- Element: Pe,
169
- NodeFilter: G,
170
- NamedNodeMap: At = r.NamedNodeMap || r.MozNamedAttrMap,
171
- HTMLFormElement: St,
172
- DOMParser: Rt,
173
- trustedTypes: Q
174
- } = r, W = Pe.prototype, yt = Z(W, "cloneNode"), Ot = Z(W, "remove"), Lt = Z(W, "nextSibling"), Dt = Z(W, "childNodes"), ee = Z(W, "parentNode");
175
- if (typeof x == "function") {
176
- const i = l.createElement("template");
177
- i.content && i.content.ownerDocument && (l = i.content.ownerDocument);
178
- }
179
- let g, B = "";
180
- const {
181
- implementation: me,
182
- createNodeIterator: Nt,
183
- createDocumentFragment: bt,
184
- getElementsByTagName: It
185
- } = l, {
186
- importNode: Mt
187
- } = s;
188
- let h = dt();
189
- o.isSupported = typeof Tt == "function" && typeof ee == "function" && me && me.createHTMLDocument !== void 0;
190
- const {
191
- MUSTACHE_EXPR: pe,
192
- ERB_EXPR: de,
193
- TMPLIT_EXPR: Te,
194
- DATA_ATTR: Ct,
195
- ARIA_ATTR: wt,
196
- IS_SCRIPT_OR_DATA: xt,
197
- ATTR_WHITESPACE: ve,
198
- CUSTOM_ELEMENT: Pt
199
- } = pt;
200
- let {
201
- IS_ALLOWED_URI: ke
202
- } = pt, m = null;
203
- const Ue = a({}, [...ct, ...be, ...Ie, ...Me, ...ft]);
204
- let d = null;
205
- const Fe = a({}, [...ut, ...Ce, ...mt, ...ce]);
206
- let f = Object.seal(_t(null, {
207
- tagNameCheck: {
208
- writable: !0,
209
- configurable: !1,
210
- enumerable: !0,
211
- value: null
212
- },
213
- attributeNameCheck: {
214
- writable: !0,
215
- configurable: !1,
216
- enumerable: !0,
217
- value: null
218
- },
219
- allowCustomizedBuiltInElements: {
220
- writable: !0,
221
- configurable: !1,
222
- enumerable: !0,
223
- value: !1
224
- }
225
- })), Y = null, _e = null, He = !0, Ee = !0, ze = !1, Ge = !0, P = !1, te = !0, w = !1, ge = !1, he = !1, v = !1, ne = !1, oe = !1, We = !0, Be = !1;
226
- const vt = "user-content-";
227
- let Ae = !0, X = !1, k = {}, U = null;
228
- const Ye = a({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
229
- let Xe = null;
230
- const je = a({}, ["audio", "video", "img", "source", "image", "track"]);
231
- let Se = null;
232
- const Ve = a({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ie = "http://www.w3.org/1998/Math/MathML", ae = "http://www.w3.org/2000/svg", b = "http://www.w3.org/1999/xhtml";
233
- let F = b, Re = !1, ye = null;
234
- const kt = a({}, [ie, ae, b], Ne);
235
- let re = a({}, ["mi", "mo", "mn", "ms", "mtext"]), se = a({}, ["annotation-xml"]);
236
- const Ut = a({}, ["title", "style", "font", "a", "script"]);
237
- let j = null;
238
- const Ft = ["application/xhtml+xml", "text/html"], Ht = "text/html";
239
- let p = null, H = null;
240
- const zt = l.createElement("form"), $e = function(e) {
241
- return e instanceof RegExp || e instanceof Function;
242
- }, Oe = function() {
243
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
244
- if (!(H && H === e)) {
245
- if ((!e || typeof e != "object") && (e = {}), e = C(e), j = // eslint-disable-next-line unicorn/prefer-includes
246
- Ft.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Ht : e.PARSER_MEDIA_TYPE, p = j === "application/xhtml+xml" ? Ne : fe, m = L(e, "ALLOWED_TAGS") ? a({}, e.ALLOWED_TAGS, p) : Ue, d = L(e, "ALLOWED_ATTR") ? a({}, e.ALLOWED_ATTR, p) : Fe, ye = L(e, "ALLOWED_NAMESPACES") ? a({}, e.ALLOWED_NAMESPACES, Ne) : kt, Se = L(e, "ADD_URI_SAFE_ATTR") ? a(C(Ve), e.ADD_URI_SAFE_ATTR, p) : Ve, Xe = L(e, "ADD_DATA_URI_TAGS") ? a(C(je), e.ADD_DATA_URI_TAGS, p) : je, U = L(e, "FORBID_CONTENTS") ? a({}, e.FORBID_CONTENTS, p) : Ye, Y = L(e, "FORBID_TAGS") ? a({}, e.FORBID_TAGS, p) : C({}), _e = L(e, "FORBID_ATTR") ? a({}, e.FORBID_ATTR, p) : C({}), k = L(e, "USE_PROFILES") ? e.USE_PROFILES : !1, He = e.ALLOW_ARIA_ATTR !== !1, Ee = e.ALLOW_DATA_ATTR !== !1, ze = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ge = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = e.SAFE_FOR_TEMPLATES || !1, te = e.SAFE_FOR_XML !== !1, w = e.WHOLE_DOCUMENT || !1, v = e.RETURN_DOM || !1, ne = e.RETURN_DOM_FRAGMENT || !1, oe = e.RETURN_TRUSTED_TYPE || !1, he = e.FORCE_BODY || !1, We = e.SANITIZE_DOM !== !1, Be = e.SANITIZE_NAMED_PROPS || !1, Ae = e.KEEP_CONTENT !== !1, X = e.IN_PLACE || !1, ke = e.ALLOWED_URI_REGEXP || Et, F = e.NAMESPACE || b, re = e.MATHML_TEXT_INTEGRATION_POINTS || re, se = e.HTML_INTEGRATION_POINTS || se, f = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && $e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (f.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && $e(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (f.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (f.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (Ee = !1), ne && (v = !0), k && (m = a({}, ft), d = [], k.html === !0 && (a(m, ct), a(d, ut)), k.svg === !0 && (a(m, be), a(d, Ce), a(d, ce)), k.svgFilters === !0 && (a(m, Ie), a(d, Ce), a(d, ce)), k.mathMl === !0 && (a(m, Me), a(d, mt), a(d, ce))), e.ADD_TAGS && (m === Ue && (m = C(m)), a(m, e.ADD_TAGS, p)), e.ADD_ATTR && (d === Fe && (d = C(d)), a(d, e.ADD_ATTR, p)), e.ADD_URI_SAFE_ATTR && a(Se, e.ADD_URI_SAFE_ATTR, p), e.FORBID_CONTENTS && (U === Ye && (U = C(U)), a(U, e.FORBID_CONTENTS, p)), Ae && (m["#text"] = !0), w && a(m, ["html", "head", "body"]), m.table && (a(m, ["tbody"]), delete Y.tbody), e.TRUSTED_TYPES_POLICY) {
247
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
248
- throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
249
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
250
- throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
251
- g = e.TRUSTED_TYPES_POLICY, B = g.createHTML("");
252
- } else
253
- g === void 0 && (g = fn(Q, T)), g !== null && typeof B == "string" && (B = g.createHTML(""));
254
- S && S(e), H = e;
255
- }
256
- }, qe = a({}, [...be, ...Ie, ...Jt]), Ke = a({}, [...Me, ...Qt]), Gt = function(e) {
257
- let t = ee(e);
258
- (!t || !t.tagName) && (t = {
259
- namespaceURI: F,
260
- tagName: "template"
261
- });
262
- const n = fe(e.tagName), c = fe(t.tagName);
263
- return ye[e.namespaceURI] ? e.namespaceURI === ae ? t.namespaceURI === b ? n === "svg" : t.namespaceURI === ie ? n === "svg" && (c === "annotation-xml" || re[c]) : !!qe[n] : e.namespaceURI === ie ? t.namespaceURI === b ? n === "math" : t.namespaceURI === ae ? n === "math" && se[c] : !!Ke[n] : e.namespaceURI === b ? t.namespaceURI === ae && !se[c] || t.namespaceURI === ie && !re[c] ? !1 : !Ke[n] && (Ut[n] || !qe[n]) : !!(j === "application/xhtml+xml" && ye[e.namespaceURI]) : !1;
264
- }, D = function(e) {
265
- $(o.removed, {
266
- element: e
267
- });
268
- try {
269
- ee(e).removeChild(e);
270
- } catch {
271
- Ot(e);
272
- }
273
- }, z = function(e, t) {
274
- try {
275
- $(o.removed, {
276
- attribute: t.getAttributeNode(e),
277
- from: t
278
- });
279
- } catch {
280
- $(o.removed, {
281
- attribute: null,
282
- from: t
283
- });
284
- }
285
- if (t.removeAttribute(e), e === "is")
286
- if (v || ne)
287
- try {
288
- D(t);
289
- } catch {
290
- }
291
- else
292
- try {
293
- t.setAttribute(e, "");
294
- } catch {
295
- }
296
- }, Ze = function(e) {
297
- let t = null, n = null;
298
- if (he)
299
- e = "<remove></remove>" + e;
300
- else {
301
- const u = lt(e, /^[\r\n\t ]+/);
302
- n = u && u[0];
303
- }
304
- j === "application/xhtml+xml" && F === b && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
305
- const c = g ? g.createHTML(e) : e;
306
- if (F === b)
307
- try {
308
- t = new Rt().parseFromString(c, j);
309
- } catch {
310
- }
311
- if (!t || !t.documentElement) {
312
- t = me.createDocument(F, "template", null);
313
- try {
314
- t.documentElement.innerHTML = Re ? B : c;
315
- } catch {
316
- }
317
- }
318
- const _ = t.body || t.documentElement;
319
- return e && n && _.insertBefore(l.createTextNode(n), _.childNodes[0] || null), F === b ? It.call(t, w ? "html" : "body")[0] : w ? t.documentElement : _;
320
- }, Je = function(e) {
321
- return Nt.call(
322
- e.ownerDocument || e,
323
- e,
324
- // eslint-disable-next-line no-bitwise
325
- G.SHOW_ELEMENT | G.SHOW_COMMENT | G.SHOW_TEXT | G.SHOW_PROCESSING_INSTRUCTION | G.SHOW_CDATA_SECTION,
326
- null
327
- );
328
- }, Le = function(e) {
329
- return e instanceof St && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof At) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
330
- }, Qe = function(e) {
331
- return typeof ue == "function" && e instanceof ue;
332
- };
333
- function I(i, e, t) {
334
- le(i, (n) => {
335
- n.call(o, e, t, H);
336
- });
337
- }
338
- const et = function(e) {
339
- let t = null;
340
- if (I(h.beforeSanitizeElements, e, null), Le(e))
341
- return D(e), !0;
342
- const n = p(e.nodeName);
343
- if (I(h.uponSanitizeElement, e, {
344
- tagName: n,
345
- allowedTags: m
346
- }), te && e.hasChildNodes() && !Qe(e.firstElementChild) && A(/<[/\w!]/g, e.innerHTML) && A(/<[/\w!]/g, e.textContent) || e.nodeType === J.progressingInstruction || te && e.nodeType === J.comment && A(/<[/\w]/g, e.data))
347
- return D(e), !0;
348
- if (!m[n] || Y[n]) {
349
- if (!Y[n] && nt(n) && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, n) || f.tagNameCheck instanceof Function && f.tagNameCheck(n)))
350
- return !1;
351
- if (Ae && !U[n]) {
352
- const c = ee(e) || e.parentNode, _ = Dt(e) || e.childNodes;
353
- if (_ && c) {
354
- const u = _.length;
355
- for (let y = u - 1; y >= 0; --y) {
356
- const M = yt(_[y], !0);
357
- M.__removalCount = (e.__removalCount || 0) + 1, c.insertBefore(M, Lt(e));
358
- }
359
- }
360
- }
361
- return D(e), !0;
362
- }
363
- return e instanceof Pe && !Gt(e) || (n === "noscript" || n === "noembed" || n === "noframes") && A(/<\/no(script|embed|frames)/i, e.innerHTML) ? (D(e), !0) : (P && e.nodeType === J.text && (t = e.textContent, le([pe, de, Te], (c) => {
364
- t = q(t, c, " ");
365
- }), e.textContent !== t && ($(o.removed, {
366
- element: e.cloneNode()
367
- }), e.textContent = t)), I(h.afterSanitizeElements, e, null), !1);
368
- }, tt = function(e, t, n) {
369
- if (We && (t === "id" || t === "name") && (n in l || n in zt))
370
- return !1;
371
- if (!(Ee && !_e[t] && A(Ct, t))) {
372
- if (!(He && A(wt, t))) {
373
- if (!d[t] || _e[t]) {
374
- if (
375
- // First condition does a very basic check if a) it's basically a valid custom element tagname AND
376
- // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
377
- // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
378
- !(nt(e) && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, e) || f.tagNameCheck instanceof Function && f.tagNameCheck(e)) && (f.attributeNameCheck instanceof RegExp && A(f.attributeNameCheck, t) || f.attributeNameCheck instanceof Function && f.attributeNameCheck(t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
379
- // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
380
- t === "is" && f.allowCustomizedBuiltInElements && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, n) || f.tagNameCheck instanceof Function && f.tagNameCheck(n)))
381
- ) return !1;
382
- } else if (!Se[t]) {
383
- if (!A(ke, q(n, ve, ""))) {
384
- if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && $t(n, "data:") === 0 && Xe[e])) {
385
- if (!(ze && !A(xt, q(n, ve, "")))) {
386
- if (n)
387
- return !1;
388
- }
389
- }
390
- }
391
- }
392
- }
393
- }
394
- return !0;
395
- }, nt = function(e) {
396
- return e !== "annotation-xml" && lt(e, Pt);
397
- }, ot = function(e) {
398
- I(h.beforeSanitizeAttributes, e, null);
399
- const {
400
- attributes: t
401
- } = e;
402
- if (!t || Le(e))
403
- return;
404
- const n = {
405
- attrName: "",
406
- attrValue: "",
407
- keepAttr: !0,
408
- allowedAttributes: d,
409
- forceKeepAttr: void 0
410
- };
411
- let c = t.length;
412
- for (; c--; ) {
413
- const _ = t[c], {
414
- name: u,
415
- namespaceURI: y,
416
- value: M
417
- } = _, V = p(u), De = M;
418
- let E = u === "value" ? De : qt(De);
419
- if (n.attrName = V, n.attrValue = E, n.keepAttr = !0, n.forceKeepAttr = void 0, I(h.uponSanitizeAttribute, e, n), E = n.attrValue, Be && (V === "id" || V === "name") && (z(u, e), E = vt + E), te && A(/((--!?|])>)|<\/(style|title)/i, E)) {
420
- z(u, e);
421
- continue;
422
- }
423
- if (n.forceKeepAttr)
424
- continue;
425
- if (!n.keepAttr) {
426
- z(u, e);
427
- continue;
428
- }
429
- if (!Ge && A(/\/>/i, E)) {
430
- z(u, e);
431
- continue;
432
- }
433
- P && le([pe, de, Te], (at) => {
434
- E = q(E, at, " ");
435
- });
436
- const it = p(e.nodeName);
437
- if (!tt(it, V, E)) {
438
- z(u, e);
439
- continue;
440
- }
441
- if (g && typeof Q == "object" && typeof Q.getAttributeType == "function" && !y)
442
- switch (Q.getAttributeType(it, V)) {
443
- case "TrustedHTML": {
444
- E = g.createHTML(E);
445
- break;
446
- }
447
- case "TrustedScriptURL": {
448
- E = g.createScriptURL(E);
449
- break;
450
- }
451
- }
452
- if (E !== De)
453
- try {
454
- y ? e.setAttributeNS(y, u, E) : e.setAttribute(u, E), Le(e) ? D(e) : st(o.removed);
455
- } catch {
456
- z(u, e);
457
- }
458
- }
459
- I(h.afterSanitizeAttributes, e, null);
460
- }, Wt = function i(e) {
461
- let t = null;
462
- const n = Je(e);
463
- for (I(h.beforeSanitizeShadowDOM, e, null); t = n.nextNode(); )
464
- I(h.uponSanitizeShadowNode, t, null), et(t), ot(t), t.content instanceof N && i(t.content);
465
- I(h.afterSanitizeShadowDOM, e, null);
466
- };
467
- return o.sanitize = function(i) {
468
- let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, n = null, c = null, _ = null;
469
- if (Re = !i, Re && (i = "<!-->"), typeof i != "string" && !Qe(i))
470
- if (typeof i.toString == "function") {
471
- if (i = i.toString(), typeof i != "string")
472
- throw K("dirty is not a string, aborting");
473
- } else
474
- throw K("toString is not a function");
475
- if (!o.isSupported)
476
- return i;
477
- if (ge || Oe(e), o.removed = [], typeof i == "string" && (X = !1), X) {
478
- if (i.nodeName) {
479
- const M = p(i.nodeName);
480
- if (!m[M] || Y[M])
481
- throw K("root node is forbidden and cannot be sanitized in-place");
482
- }
483
- } else if (i instanceof ue)
484
- t = Ze("<!---->"), n = t.ownerDocument.importNode(i, !0), n.nodeType === J.element && n.nodeName === "BODY" || n.nodeName === "HTML" ? t = n : t.appendChild(n);
485
- else {
486
- if (!v && !P && !w && // eslint-disable-next-line unicorn/prefer-includes
487
- i.indexOf("<") === -1)
488
- return g && oe ? g.createHTML(i) : i;
489
- if (t = Ze(i), !t)
490
- return v ? null : oe ? B : "";
491
- }
492
- t && he && D(t.firstChild);
493
- const u = Je(X ? i : t);
494
- for (; c = u.nextNode(); )
495
- et(c), ot(c), c.content instanceof N && Wt(c.content);
496
- if (X)
497
- return i;
498
- if (v) {
499
- if (ne)
500
- for (_ = bt.call(t.ownerDocument); t.firstChild; )
501
- _.appendChild(t.firstChild);
502
- else
503
- _ = t;
504
- return (d.shadowroot || d.shadowrootmode) && (_ = Mt.call(s, _, !0)), _;
505
- }
506
- let y = w ? t.outerHTML : t.innerHTML;
507
- return w && m["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && A(gt, t.ownerDocument.doctype.name) && (y = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
508
- ` + y), P && le([pe, de, Te], (M) => {
509
- y = q(y, M, " ");
510
- }), g && oe ? g.createHTML(y) : y;
511
- }, o.setConfig = function() {
512
- let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
513
- Oe(i), ge = !0;
514
- }, o.clearConfig = function() {
515
- H = null, ge = !1;
516
- }, o.isValidAttribute = function(i, e, t) {
517
- H || Oe({});
518
- const n = p(i), c = p(e);
519
- return tt(n, c, t);
520
- }, o.addHook = function(i, e) {
521
- typeof e == "function" && $(h[i], e);
522
- }, o.removeHook = function(i, e) {
523
- if (e !== void 0) {
524
- const t = jt(h[i], e);
525
- return t === -1 ? void 0 : Vt(h[i], t, 1)[0];
526
- }
527
- return st(h[i]);
528
- }, o.removeHooks = function(i) {
529
- h[i] = [];
530
- }, o.removeAllHooks = function() {
531
- h = dt();
532
- }, o;
533
- }
534
- var un = ht();
535
- export {
536
- un as default
537
- };