@progress/telerik-react-report-viewer 29.26.424 → 30.26.520

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.
@@ -1,6 +1,6 @@
1
1
  var $ = require("jquery");
2
2
  /*
3
- * TelerikReporting v20.0.26.424 (https://www.telerik.com/products/reporting.aspx)
3
+ * TelerikReporting v20.1.26.520 (https://www.telerik.com/products/reporting.aspx)
4
4
  * Copyright 2026 Progress Software EAD. All rights reserved.
5
5
  *
6
6
  * Telerik Reporting commercial licenses may be obtained at
@@ -14,7 +14,7 @@ var telerikReportViewer = (function (exports) {
14
14
 
15
15
  var dist = {exports: {}};
16
16
 
17
- /*! @license DOMPurify 3.3.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.2/LICENSE */
17
+ /*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */
18
18
 
19
19
  var purify_cjs;
20
20
  var hasRequiredPurify_cjs;
@@ -70,13 +70,19 @@ var telerikReportViewer = (function (exports) {
70
70
  const arrayPop = unapply(Array.prototype.pop);
71
71
  const arrayPush = unapply(Array.prototype.push);
72
72
  const arraySplice = unapply(Array.prototype.splice);
73
+ const arrayIsArray = Array.isArray;
73
74
  const stringToLowerCase = unapply(String.prototype.toLowerCase);
74
75
  const stringToString = unapply(String.prototype.toString);
75
76
  const stringMatch = unapply(String.prototype.match);
76
77
  const stringReplace = unapply(String.prototype.replace);
77
78
  const stringIndexOf = unapply(String.prototype.indexOf);
78
79
  const stringTrim = unapply(String.prototype.trim);
80
+ const numberToString = unapply(Number.prototype.toString);
81
+ const booleanToString = unapply(Boolean.prototype.toString);
82
+ const bigintToString = typeof BigInt === 'undefined' ? null : unapply(BigInt.prototype.toString);
83
+ const symbolToString = typeof Symbol === 'undefined' ? null : unapply(Symbol.prototype.toString);
79
84
  const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
85
+ const objectToString = unapply(Object.prototype.toString);
80
86
  const regExpTest = unapply(RegExp.prototype.test);
81
87
  const typeErrorCreate = unconstruct(TypeError);
82
88
  /**
@@ -126,6 +132,9 @@ var telerikReportViewer = (function (exports) {
126
132
  // Prevent prototype setters from intercepting set as a this value.
127
133
  setPrototypeOf(set, null);
128
134
  }
135
+ if (!arrayIsArray(array)) {
136
+ return set;
137
+ }
129
138
  let l = array.length;
130
139
  while (l--) {
131
140
  let element = array[l];
@@ -169,7 +178,7 @@ var telerikReportViewer = (function (exports) {
169
178
  for (const [property, value] of entries(object)) {
170
179
  const isPropertyExist = objectHasOwnProperty(object, property);
171
180
  if (isPropertyExist) {
172
- if (Array.isArray(value)) {
181
+ if (arrayIsArray(value)) {
173
182
  newObject[property] = cleanArray(value);
174
183
  } else if (value && typeof value === 'object' && value.constructor === Object) {
175
184
  newObject[property] = clone(value);
@@ -180,6 +189,58 @@ var telerikReportViewer = (function (exports) {
180
189
  }
181
190
  return newObject;
182
191
  }
192
+ /**
193
+ * Convert non-node values into strings without depending on direct property access.
194
+ *
195
+ * @param value - The value to stringify.
196
+ * @returns A string representation of the provided value.
197
+ */
198
+ function stringifyValue(value) {
199
+ switch (typeof value) {
200
+ case 'string':
201
+ {
202
+ return value;
203
+ }
204
+ case 'number':
205
+ {
206
+ return numberToString(value);
207
+ }
208
+ case 'boolean':
209
+ {
210
+ return booleanToString(value);
211
+ }
212
+ case 'bigint':
213
+ {
214
+ return bigintToString ? bigintToString(value) : '0';
215
+ }
216
+ case 'symbol':
217
+ {
218
+ return symbolToString ? symbolToString(value) : 'Symbol()';
219
+ }
220
+ case 'undefined':
221
+ {
222
+ return objectToString(value);
223
+ }
224
+ case 'function':
225
+ case 'object':
226
+ {
227
+ if (value === null) {
228
+ return objectToString(value);
229
+ }
230
+ const valueAsRecord = value;
231
+ const valueToString = lookupGetter(valueAsRecord, 'toString');
232
+ if (typeof valueToString === 'function') {
233
+ const stringified = valueToString(valueAsRecord);
234
+ return typeof stringified === 'string' ? stringified : objectToString(stringified);
235
+ }
236
+ return objectToString(value);
237
+ }
238
+ default:
239
+ {
240
+ return objectToString(value);
241
+ }
242
+ }
243
+ }
183
244
  /**
184
245
  * This method automatically checks if the prop is function or getter and behaves accordingly.
185
246
  *
@@ -205,6 +266,14 @@ var telerikReportViewer = (function (exports) {
205
266
  }
206
267
  return fallbackValue;
207
268
  }
269
+ function isRegex(value) {
270
+ try {
271
+ regExpTest(value, '');
272
+ return true;
273
+ } catch (_unused) {
274
+ return false;
275
+ }
276
+ }
208
277
 
209
278
  const html$1 = freeze(['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', 'search', 'section', 'select', 'shadow', 'slot', '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']);
210
279
  const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'enterkeyhint', 'exportparts', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'inputmode', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'part', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
@@ -220,9 +289,9 @@ var telerikReportViewer = (function (exports) {
220
289
  const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
221
290
  const text = freeze(['#text']);
222
291
 
223
- const html = freeze(['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', 'exportparts', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inert', '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', 'part', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
292
+ const html = freeze(['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', 'exportparts', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inert', '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', 'part', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns']);
224
293
  const svg = freeze(['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', 'mask-type', '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']);
225
- const mathMl = freeze(['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']);
294
+ const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnalign', 'columnlines', 'columnspacing', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lquote', 'lspace', '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']);
226
295
  const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
227
296
 
228
297
  // eslint-disable-next-line unicorn/better-regex
@@ -240,17 +309,17 @@ var telerikReportViewer = (function (exports) {
240
309
  const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
241
310
 
242
311
  var EXPRESSIONS = /*#__PURE__*/Object.freeze({
243
- __proto__: null,
244
- ARIA_ATTR: ARIA_ATTR,
245
- ATTR_WHITESPACE: ATTR_WHITESPACE,
246
- CUSTOM_ELEMENT: CUSTOM_ELEMENT,
247
- DATA_ATTR: DATA_ATTR,
248
- DOCTYPE_NAME: DOCTYPE_NAME,
249
- ERB_EXPR: ERB_EXPR,
250
- IS_ALLOWED_URI: IS_ALLOWED_URI,
251
- IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,
252
- MUSTACHE_EXPR: MUSTACHE_EXPR,
253
- TMPLIT_EXPR: TMPLIT_EXPR
312
+ __proto__: null,
313
+ ARIA_ATTR: ARIA_ATTR,
314
+ ATTR_WHITESPACE: ATTR_WHITESPACE,
315
+ CUSTOM_ELEMENT: CUSTOM_ELEMENT,
316
+ DATA_ATTR: DATA_ATTR,
317
+ DOCTYPE_NAME: DOCTYPE_NAME,
318
+ ERB_EXPR: ERB_EXPR,
319
+ IS_ALLOWED_URI: IS_ALLOWED_URI,
320
+ IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,
321
+ MUSTACHE_EXPR: MUSTACHE_EXPR,
322
+ TMPLIT_EXPR: TMPLIT_EXPR
254
323
  });
255
324
 
256
325
  /* eslint-disable @typescript-eslint/indent */
@@ -319,7 +388,7 @@ var telerikReportViewer = (function (exports) {
319
388
  function createDOMPurify() {
320
389
  let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
321
390
  const DOMPurify = root => createDOMPurify(root);
322
- DOMPurify.version = '3.3.2';
391
+ DOMPurify.version = '3.4.2';
323
392
  DOMPurify.removed = [];
324
393
  if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
325
394
  // Not running in a browser, provide a factory function
@@ -567,15 +636,15 @@ var telerikReportViewer = (function (exports) {
567
636
  // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
568
637
  transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;
569
638
  /* Set configuration parameters */
570
- ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
571
- ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
572
- ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
573
- URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
574
- DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
575
- FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
576
- FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
577
- FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
578
- USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;
639
+ ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') && arrayIsArray(cfg.ALLOWED_TAGS) ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
640
+ ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') && arrayIsArray(cfg.ALLOWED_ATTR) ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
641
+ ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') && arrayIsArray(cfg.ALLOWED_NAMESPACES) ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
642
+ URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') && arrayIsArray(cfg.ADD_URI_SAFE_ATTR) ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
643
+ DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') && arrayIsArray(cfg.ADD_DATA_URI_TAGS) ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
644
+ FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') && arrayIsArray(cfg.FORBID_CONTENTS) ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
645
+ FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') && arrayIsArray(cfg.FORBID_TAGS) ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
646
+ FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') && arrayIsArray(cfg.FORBID_ATTR) ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
647
+ USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES && typeof cfg.USE_PROFILES === 'object' ? clone(cfg.USE_PROFILES) : cfg.USE_PROFILES : false;
579
648
  ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
580
649
  ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
581
650
  ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false
@@ -591,19 +660,20 @@ var telerikReportViewer = (function (exports) {
591
660
  SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false
592
661
  KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true
593
662
  IN_PLACE = cfg.IN_PLACE || false; // Default false
594
- IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;
595
- NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
596
- MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
597
- HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
598
- CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
599
- if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
600
- CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
663
+ IS_ALLOWED_URI$1 = isRegex(cfg.ALLOWED_URI_REGEXP) ? cfg.ALLOWED_URI_REGEXP : IS_ALLOWED_URI; // Default regexp
664
+ NAMESPACE = typeof cfg.NAMESPACE === 'string' ? cfg.NAMESPACE : HTML_NAMESPACE; // Default HTML namespace
665
+ MATHML_TEXT_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'MATHML_TEXT_INTEGRATION_POINTS') && cfg.MATHML_TEXT_INTEGRATION_POINTS && typeof cfg.MATHML_TEXT_INTEGRATION_POINTS === 'object' ? clone(cfg.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']); // Default built-in map
666
+ HTML_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'HTML_INTEGRATION_POINTS') && cfg.HTML_INTEGRATION_POINTS && typeof cfg.HTML_INTEGRATION_POINTS === 'object' ? clone(cfg.HTML_INTEGRATION_POINTS) : addToSet({}, ['annotation-xml']); // Default built-in map
667
+ const customElementHandling = objectHasOwnProperty(cfg, 'CUSTOM_ELEMENT_HANDLING') && cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING === 'object' ? clone(cfg.CUSTOM_ELEMENT_HANDLING) : create(null);
668
+ CUSTOM_ELEMENT_HANDLING = create(null);
669
+ if (objectHasOwnProperty(customElementHandling, 'tagNameCheck') && isRegexOrFunction(customElementHandling.tagNameCheck)) {
670
+ CUSTOM_ELEMENT_HANDLING.tagNameCheck = customElementHandling.tagNameCheck; // Default undefined
601
671
  }
602
- if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {
603
- CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;
672
+ if (objectHasOwnProperty(customElementHandling, 'attributeNameCheck') && isRegexOrFunction(customElementHandling.attributeNameCheck)) {
673
+ CUSTOM_ELEMENT_HANDLING.attributeNameCheck = customElementHandling.attributeNameCheck; // Default undefined
604
674
  }
605
- if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {
606
- CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;
675
+ if (objectHasOwnProperty(customElementHandling, 'allowCustomizedBuiltInElements') && typeof customElementHandling.allowCustomizedBuiltInElements === 'boolean') {
676
+ CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = customElementHandling.allowCustomizedBuiltInElements; // Default undefined
607
677
  }
608
678
  if (SAFE_FOR_TEMPLATES) {
609
679
  ALLOW_DATA_ATTR = false;
@@ -635,44 +705,41 @@ var telerikReportViewer = (function (exports) {
635
705
  addToSet(ALLOWED_ATTR, xml);
636
706
  }
637
707
  }
638
- /* Prevent function-based ADD_ATTR / ADD_TAGS from leaking across calls */
639
- if (!objectHasOwnProperty(cfg, 'ADD_TAGS')) {
640
- EXTRA_ELEMENT_HANDLING.tagCheck = null;
641
- }
642
- if (!objectHasOwnProperty(cfg, 'ADD_ATTR')) {
643
- EXTRA_ELEMENT_HANDLING.attributeCheck = null;
644
- }
708
+ /* Always reset function-based ADD_TAGS / ADD_ATTR checks to prevent
709
+ * leaking across calls when switching from function to array config */
710
+ EXTRA_ELEMENT_HANDLING.tagCheck = null;
711
+ EXTRA_ELEMENT_HANDLING.attributeCheck = null;
645
712
  /* Merge configuration parameters */
646
- if (cfg.ADD_TAGS) {
713
+ if (objectHasOwnProperty(cfg, 'ADD_TAGS')) {
647
714
  if (typeof cfg.ADD_TAGS === 'function') {
648
715
  EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
649
- } else {
716
+ } else if (arrayIsArray(cfg.ADD_TAGS)) {
650
717
  if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
651
718
  ALLOWED_TAGS = clone(ALLOWED_TAGS);
652
719
  }
653
720
  addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
654
721
  }
655
722
  }
656
- if (cfg.ADD_ATTR) {
723
+ if (objectHasOwnProperty(cfg, 'ADD_ATTR')) {
657
724
  if (typeof cfg.ADD_ATTR === 'function') {
658
725
  EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
659
- } else {
726
+ } else if (arrayIsArray(cfg.ADD_ATTR)) {
660
727
  if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
661
728
  ALLOWED_ATTR = clone(ALLOWED_ATTR);
662
729
  }
663
730
  addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
664
731
  }
665
732
  }
666
- if (cfg.ADD_URI_SAFE_ATTR) {
733
+ if (objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') && arrayIsArray(cfg.ADD_URI_SAFE_ATTR)) {
667
734
  addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
668
735
  }
669
- if (cfg.FORBID_CONTENTS) {
736
+ if (objectHasOwnProperty(cfg, 'FORBID_CONTENTS') && arrayIsArray(cfg.FORBID_CONTENTS)) {
670
737
  if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
671
738
  FORBID_CONTENTS = clone(FORBID_CONTENTS);
672
739
  }
673
740
  addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
674
741
  }
675
- if (cfg.ADD_FORBID_CONTENTS) {
742
+ if (objectHasOwnProperty(cfg, 'ADD_FORBID_CONTENTS') && arrayIsArray(cfg.ADD_FORBID_CONTENTS)) {
676
743
  if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
677
744
  FORBID_CONTENTS = clone(FORBID_CONTENTS);
678
745
  }
@@ -964,6 +1031,11 @@ var telerikReportViewer = (function (exports) {
964
1031
  _forceRemove(currentNode);
965
1032
  return true;
966
1033
  }
1034
+ /* Remove risky CSS construction leading to mXSS */
1035
+ if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && tagName === 'style' && _isNode(currentNode.firstElementChild)) {
1036
+ _forceRemove(currentNode);
1037
+ return true;
1038
+ }
967
1039
  /* Remove any occurrence of processing instructions */
968
1040
  if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
969
1041
  _forceRemove(currentNode);
@@ -975,7 +1047,7 @@ var telerikReportViewer = (function (exports) {
975
1047
  return true;
976
1048
  }
977
1049
  /* Remove element if anything forbids its presence */
978
- if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])) {
1050
+ if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
979
1051
  /* Check if we have a custom element to handle */
980
1052
  if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
981
1053
  if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
@@ -993,7 +1065,6 @@ var telerikReportViewer = (function (exports) {
993
1065
  const childCount = childNodes.length;
994
1066
  for (let i = childCount - 1; i >= 0; --i) {
995
1067
  const childClone = cloneNode(childNodes[i], true);
996
- childClone.__removalCount = (currentNode.__removalCount || 0) + 1;
997
1068
  parentNode.insertBefore(childClone, getNextSibling(currentNode));
998
1069
  }
999
1070
  }
@@ -1047,11 +1118,12 @@ var telerikReportViewer = (function (exports) {
1047
1118
  if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
1048
1119
  return false;
1049
1120
  }
1121
+ const nameIsPermitted = ALLOWED_ATTR[lcName] || EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag);
1050
1122
  /* Allow valid data-* attributes: At least one character after "-"
1051
1123
  (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
1052
1124
  XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
1053
1125
  We don't need to check the value; it's always URI safe. */
1054
- if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
1126
+ if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!nameIsPermitted || FORBID_ATTR[lcName]) {
1055
1127
  if (
1056
1128
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
1057
1129
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
@@ -1068,6 +1140,10 @@ var telerikReportViewer = (function (exports) {
1068
1140
  } else ;
1069
1141
  return true;
1070
1142
  };
1143
+ /* Names the HTML spec reserves from valid-custom-element-name; these must
1144
+ * never be treated as basic custom elements even when a permissive
1145
+ * CUSTOM_ELEMENT_HANDLING.tagNameCheck is configured. */
1146
+ const RESERVED_CUSTOM_ELEMENT_NAMES = addToSet({}, ['annotation-xml', 'color-profile', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'missing-glyph']);
1071
1147
  /**
1072
1148
  * _isBasicCustomElement
1073
1149
  * checks if at least one dash is included in tagName, and it's not the first char
@@ -1077,7 +1153,7 @@ var telerikReportViewer = (function (exports) {
1077
1153
  * @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
1078
1154
  */
1079
1155
  const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
1080
- return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT);
1156
+ return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT, tagName);
1081
1157
  };
1082
1158
  /**
1083
1159
  * _sanitizeAttributes
@@ -1128,12 +1204,14 @@ var telerikReportViewer = (function (exports) {
1128
1204
  /* Full DOM Clobbering protection via namespace isolation,
1129
1205
  * Prefix id and name attributes with `user-content-`
1130
1206
  */
1131
- if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {
1207
+ if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name') && stringIndexOf(value, SANITIZE_NAMED_PROPS_PREFIX) !== 0) {
1132
1208
  // Remove the attribute with this value
1133
1209
  _removeAttribute(name, currentNode);
1134
1210
  // Prefix the value and later re-create the attribute with the sanitized value
1135
1211
  value = SANITIZE_NAMED_PROPS_PREFIX + value;
1136
1212
  }
1213
+ // Else: already prefixed, leave the attribute alone — the prefix is
1214
+ // itself the clobbering protection, and re-applying it is incorrect.
1137
1215
  /* Work around a security issue with comments inside attributes */
1138
1216
  if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
1139
1217
  _removeAttribute(name, currentNode);
@@ -1214,7 +1292,7 @@ var telerikReportViewer = (function (exports) {
1214
1292
  *
1215
1293
  * @param fragment to iterate over recursively
1216
1294
  */
1217
- const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {
1295
+ const _sanitizeShadowDOM2 = function _sanitizeShadowDOM(fragment) {
1218
1296
  let shadowNode = null;
1219
1297
  const shadowIterator = _createNodeIterator(fragment);
1220
1298
  /* Execute a hook if present */
@@ -1228,7 +1306,7 @@ var telerikReportViewer = (function (exports) {
1228
1306
  _sanitizeAttributes(shadowNode);
1229
1307
  /* Deep shadow DOM detected */
1230
1308
  if (shadowNode.content instanceof DocumentFragment) {
1231
- _sanitizeShadowDOM(shadowNode.content);
1309
+ _sanitizeShadowDOM2(shadowNode.content);
1232
1310
  }
1233
1311
  }
1234
1312
  /* Execute a hook if present */
@@ -1250,13 +1328,9 @@ var telerikReportViewer = (function (exports) {
1250
1328
  }
1251
1329
  /* Stringify, in case dirty is an object */
1252
1330
  if (typeof dirty !== 'string' && !_isNode(dirty)) {
1253
- if (typeof dirty.toString === 'function') {
1254
- dirty = dirty.toString();
1255
- if (typeof dirty !== 'string') {
1256
- throw typeErrorCreate('dirty is not a string, aborting');
1257
- }
1258
- } else {
1259
- throw typeErrorCreate('toString is not a function');
1331
+ dirty = stringifyValue(dirty);
1332
+ if (typeof dirty !== 'string') {
1333
+ throw typeErrorCreate('dirty is not a string, aborting');
1260
1334
  }
1261
1335
  }
1262
1336
  /* Return dirty HTML if DOMPurify cannot run */
@@ -1275,8 +1349,9 @@ var telerikReportViewer = (function (exports) {
1275
1349
  }
1276
1350
  if (IN_PLACE) {
1277
1351
  /* Do some early pre-sanitization to avoid unsafe root nodes */
1278
- if (dirty.nodeName) {
1279
- const tagName = transformCaseFunc(dirty.nodeName);
1352
+ const nn = dirty.nodeName;
1353
+ if (typeof nn === 'string') {
1354
+ const tagName = transformCaseFunc(nn);
1280
1355
  if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
1281
1356
  throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');
1282
1357
  }
@@ -1323,7 +1398,7 @@ var telerikReportViewer = (function (exports) {
1323
1398
  _sanitizeAttributes(currentNode);
1324
1399
  /* Shadow DOM detected, sanitize it */
1325
1400
  if (currentNode.content instanceof DocumentFragment) {
1326
- _sanitizeShadowDOM(currentNode.content);
1401
+ _sanitizeShadowDOM2(currentNode.content);
1327
1402
  }
1328
1403
  }
1329
1404
  /* If we sanitized `dirty` in-place, return it. */
@@ -1332,6 +1407,14 @@ var telerikReportViewer = (function (exports) {
1332
1407
  }
1333
1408
  /* Return sanitized string or DOM */
1334
1409
  if (RETURN_DOM) {
1410
+ if (SAFE_FOR_TEMPLATES) {
1411
+ body.normalize();
1412
+ let html = body.innerHTML;
1413
+ arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
1414
+ html = stringReplace(html, expr, ' ');
1415
+ });
1416
+ body.innerHTML = html;
1417
+ }
1335
1418
  if (RETURN_DOM_FRAGMENT) {
1336
1419
  returnNode = createDocumentFragment.call(body.ownerDocument);
1337
1420
  while (body.firstChild) {
@@ -1488,16 +1571,26 @@ var telerikReportViewer = (function (exports) {
1488
1571
  }
1489
1572
  }
1490
1573
  class u {
1574
+ constructor(e2, t2) {
1575
+ this.handled = false, this.deviceInfo = e2, this.format = t2;
1576
+ }
1577
+ }
1578
+ class p extends r {
1579
+ constructor(e2, t2, i2) {
1580
+ super(), this.handled = false, this.body = e2.body, this.cc = e2.cc, this.format = e2.format, this.from = e2.from, this.subject = e2.subject, this.to = e2.to, this.deviceInfo = t2, this.url = i2;
1581
+ }
1582
+ }
1583
+ class g {
1491
1584
  constructor(e2, t2) {
1492
1585
  this.page = e2, this.reportDocumentId = t2;
1493
1586
  }
1494
1587
  }
1495
- class p {
1588
+ class f {
1496
1589
  constructor(e2, t2, i2, n2 = null) {
1497
1590
  this.element = e2, this.text = t2, this.title = i2, this.eventArgs = n2;
1498
1591
  }
1499
1592
  }
1500
- class g {
1593
+ class m {
1501
1594
  constructor(e2, t2) {
1502
1595
  this._responseText = e2, this._error = t2;
1503
1596
  try {
@@ -1520,14 +1613,14 @@ var telerikReportViewer = (function (exports) {
1520
1613
  return (null === (e2 = this.responseJSON) || void 0 === e2 ? void 0 : e2.exceptionMessage) || (null === (t2 = this.responseJSON) || void 0 === t2 ? void 0 : t2.ExceptionMessage);
1521
1614
  }
1522
1615
  }
1523
- function m(e2, t2 = false, i2 = false) {
1616
+ function v(e2, t2 = false, i2 = false) {
1524
1617
  let n2 = { Accept: "application/json, text/javascript, */*; q=0.01" };
1525
1618
  return t2 && (n2["Content-Type"] = i2 ? "application/x-www-form-urlencoded; charset=UTF-8" : "application/json; charset=UTF-8"), e2 && (n2.authorization = "Bearer " + e2), n2;
1526
1619
  }
1527
- function f(e2) {
1620
+ function P(e2) {
1528
1621
  return i(this, void 0, void 0, function* () {
1529
1622
  if (!e2.ok) {
1530
- let t2 = yield e2.text(), i2 = new g(t2, e2.statusText);
1623
+ let t2 = yield e2.text(), i2 = new m(t2, e2.statusText);
1531
1624
  return Promise.reject(i2);
1532
1625
  }
1533
1626
  if (204 == e2.status)
@@ -1535,15 +1628,15 @@ var telerikReportViewer = (function (exports) {
1535
1628
  return (e2.headers.get("content-type") || "").includes("application/json") ? e2.json() : e2.text();
1536
1629
  });
1537
1630
  }
1538
- function v(e2, t2 = {}, i2 = "", n2 = false) {
1539
- return fetch(e2, { method: "POST", headers: m(i2, true, n2), body: n2 ? t2 : JSON.stringify(t2) }).then(f);
1631
+ function C(e2, t2 = {}, i2 = "", n2 = false) {
1632
+ return fetch(e2, { method: "POST", headers: v(i2, true, n2), body: n2 ? t2 : JSON.stringify(t2) }).then(P);
1540
1633
  }
1541
- class P {
1634
+ class y {
1542
1635
  authenticatePromise() {
1543
1636
  return Promise.resolve("");
1544
1637
  }
1545
1638
  }
1546
- class C {
1639
+ class S {
1547
1640
  constructor(e2) {
1548
1641
  this.connectionConfig = e2;
1549
1642
  }
@@ -1551,59 +1644,59 @@ var telerikReportViewer = (function (exports) {
1551
1644
  var e2, t2;
1552
1645
  if (this.connectionConfig && this.connectionConfig.tokenUrl && (this.connectionConfig.username || this.connectionConfig.password)) {
1553
1646
  let i2 = `grant_type=password&username=${encodeURIComponent((null === (e2 = this.connectionConfig) || void 0 === e2 ? void 0 : e2.username) || "")}&password=${encodeURIComponent((null === (t2 = this.connectionConfig) || void 0 === t2 ? void 0 : t2.password) || "")}`;
1554
- return v(this.connectionConfig.tokenUrl, i2, "", true).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3));
1647
+ return C(this.connectionConfig.tokenUrl, i2, "", true).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3));
1555
1648
  }
1556
1649
  return Promise.reject("Failed to connect to Report Server with user credentials. Are you missing the reportServer.url, reportServer.username or reportServer.password values?");
1557
1650
  }
1558
1651
  }
1559
- class y {
1652
+ class I {
1560
1653
  constructor(e2) {
1561
1654
  this.connectionConfig = e2;
1562
1655
  }
1563
1656
  authenticatePromise(e2, t2) {
1564
- return e2 ? v(this.connectionConfig.refreshTokenUrl, { RefreshToken: t2 }).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3)) : this.connectionConfig && this.connectionConfig.personalTokenUrl && this.connectionConfig.getPersonalAccessToken ? this.connectionConfig.getPersonalAccessToken().then((e3) => v(this.connectionConfig.personalTokenUrl, e3).then((e4) => (e4.expiresAt = Date.now() + 1e3 * e4.expiresIn, e4))) : Promise.reject("Failed to connect to Report Server with personal access token. Are you missing the reportServer.url or reportServer.getPersonalAccessToken values?");
1657
+ return e2 ? C(this.connectionConfig.refreshTokenUrl, { RefreshToken: t2 }).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3)) : this.connectionConfig && this.connectionConfig.personalTokenUrl && this.connectionConfig.getPersonalAccessToken ? this.connectionConfig.getPersonalAccessToken().then((e3) => C(this.connectionConfig.personalTokenUrl, e3).then((e4) => (e4.expiresAt = Date.now() + 1e3 * e4.expiresIn, e4))) : Promise.reject("Failed to connect to Report Server with personal access token. Are you missing the reportServer.url or reportServer.getPersonalAccessToken values?");
1565
1658
  }
1566
1659
  }
1567
- var S, I;
1568
- e.AuthType = void 0, (S = e.AuthType || (e.AuthType = {}))[S.None = 0] = "None", S[S.Basic = 1] = "Basic", S[S.PersonalToken = 2] = "PersonalToken";
1569
- class b {
1660
+ var b, w;
1661
+ e.AuthType = void 0, (b = e.AuthType || (e.AuthType = {}))[b.None = 0] = "None", b[b.Basic = 1] = "Basic", b[b.PersonalToken = 2] = "PersonalToken";
1662
+ class L {
1570
1663
  constructor(e2) {
1571
1664
  this.baseUrl = null == e2 ? void 0 : e2.replace(/\/$/, "");
1572
1665
  }
1573
1666
  }
1574
- class w extends b {
1667
+ class T extends L {
1575
1668
  constructor(t2) {
1576
1669
  super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl;
1577
1670
  }
1578
1671
  }
1579
- class T extends b {
1672
+ class A extends L {
1580
1673
  constructor(t2) {
1581
1674
  super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl + "/api/reports";
1582
1675
  }
1583
1676
  }
1584
- class A extends T {
1677
+ class R extends A {
1585
1678
  constructor(t2, i2, n2) {
1586
1679
  super(t2), this.authType = e.AuthType.Basic, this.username = i2, this.password = n2, this.tokenUrl = this.baseUrl + "/Token";
1587
1680
  }
1588
1681
  }
1589
- class R extends T {
1682
+ class E extends A {
1590
1683
  constructor(t2, i2) {
1591
1684
  super(t2), this.authType = e.AuthType.PersonalToken, this.getPersonalAccessToken = i2, this.personalTokenUrl = this.baseUrl + "/PersonalToken", this.refreshTokenUrl = this.baseUrl + "/refresh";
1592
1685
  }
1593
1686
  }
1594
- function E() {
1595
- }
1596
1687
  function M() {
1597
- M.init.call(this);
1688
+ }
1689
+ function k() {
1690
+ k.init.call(this);
1598
1691
  }
1599
1692
  function x(e2) {
1600
- return void 0 === e2._maxListeners ? M.defaultMaxListeners : e2._maxListeners;
1693
+ return void 0 === e2._maxListeners ? k.defaultMaxListeners : e2._maxListeners;
1601
1694
  }
1602
- function k(e2, t2, i2, n2) {
1695
+ function N(e2, t2, i2, n2) {
1603
1696
  var r2, s2, o2, a2;
1604
1697
  if ("function" != typeof i2)
1605
1698
  throw new TypeError('"listener" argument must be a function');
1606
- if ((s2 = e2._events) ? (s2.newListener && (e2.emit("newListener", t2, i2.listener ? i2.listener : i2), s2 = e2._events), o2 = s2[t2]) : (s2 = e2._events = new E(), e2._eventsCount = 0), o2) {
1699
+ if ((s2 = e2._events) ? (s2.newListener && (e2.emit("newListener", t2, i2.listener ? i2.listener : i2), s2 = e2._events), o2 = s2[t2]) : (s2 = e2._events = new M(), e2._eventsCount = 0), o2) {
1607
1700
  if ("function" == typeof o2 ? o2 = s2[t2] = n2 ? [i2, o2] : [o2, i2] : n2 ? o2.unshift(i2) : o2.push(i2), !o2.warned && (r2 = x(e2)) && r2 > 0 && o2.length > r2) {
1608
1701
  o2.warned = true;
1609
1702
  var l2 = new Error("Possible EventEmitter memory leak detected. " + o2.length + " " + t2 + " listeners added. Use emitter.setMaxListeners() to increase limit");
@@ -1613,14 +1706,14 @@ var telerikReportViewer = (function (exports) {
1613
1706
  o2 = s2[t2] = i2, ++e2._eventsCount;
1614
1707
  return e2;
1615
1708
  }
1616
- function L(e2, t2, i2) {
1709
+ function D(e2, t2, i2) {
1617
1710
  var n2 = false;
1618
1711
  function r2() {
1619
1712
  e2.removeListener(t2, r2), n2 || (n2 = true, i2.apply(e2, arguments));
1620
1713
  }
1621
1714
  return r2.listener = i2, r2;
1622
1715
  }
1623
- function N(e2) {
1716
+ function F(e2) {
1624
1717
  var t2 = this._events;
1625
1718
  if (t2) {
1626
1719
  var i2 = t2[e2];
@@ -1631,20 +1724,20 @@ var telerikReportViewer = (function (exports) {
1631
1724
  }
1632
1725
  return 0;
1633
1726
  }
1634
- function D(e2, t2) {
1727
+ function V(e2, t2) {
1635
1728
  for (var i2 = new Array(t2); t2--; )
1636
1729
  i2[t2] = e2[t2];
1637
1730
  return i2;
1638
1731
  }
1639
- E.prototype = /* @__PURE__ */ Object.create(null), M.EventEmitter = M, M.usingDomains = false, M.prototype.domain = void 0, M.prototype._events = void 0, M.prototype._maxListeners = void 0, M.defaultMaxListeners = 10, M.init = function() {
1640
- this.domain = null, M.usingDomains && (!I.active || this instanceof I.Domain || (this.domain = I.active)), this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new E(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
1641
- }, M.prototype.setMaxListeners = function(e2) {
1732
+ M.prototype = /* @__PURE__ */ Object.create(null), k.EventEmitter = k, k.usingDomains = false, k.prototype.domain = void 0, k.prototype._events = void 0, k.prototype._maxListeners = void 0, k.defaultMaxListeners = 10, k.init = function() {
1733
+ this.domain = null, k.usingDomains && (!w.active || this instanceof w.Domain || (this.domain = w.active)), this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new M(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
1734
+ }, k.prototype.setMaxListeners = function(e2) {
1642
1735
  if ("number" != typeof e2 || e2 < 0 || isNaN(e2))
1643
1736
  throw new TypeError('"n" argument must be a positive number');
1644
1737
  return this._maxListeners = e2, this;
1645
- }, M.prototype.getMaxListeners = function() {
1738
+ }, k.prototype.getMaxListeners = function() {
1646
1739
  return x(this);
1647
- }, M.prototype.emit = function(e2) {
1740
+ }, k.prototype.emit = function(e2) {
1648
1741
  var t2, i2, n2, r2, s2, o2, a2, l2 = "error" === e2;
1649
1742
  if (o2 = this._events)
1650
1743
  l2 = l2 && null == o2.error;
@@ -1668,7 +1761,7 @@ var telerikReportViewer = (function (exports) {
1668
1761
  if (t3)
1669
1762
  e3.call(i3);
1670
1763
  else
1671
- for (var n3 = e3.length, r3 = D(e3, n3), s3 = 0; s3 < n3; ++s3)
1764
+ for (var n3 = e3.length, r3 = V(e3, n3), s3 = 0; s3 < n3; ++s3)
1672
1765
  r3[s3].call(i3);
1673
1766
  }(i2, c2, this);
1674
1767
  break;
@@ -1677,7 +1770,7 @@ var telerikReportViewer = (function (exports) {
1677
1770
  if (t3)
1678
1771
  e3.call(i3, n3);
1679
1772
  else
1680
- for (var r3 = e3.length, s3 = D(e3, r3), o3 = 0; o3 < r3; ++o3)
1773
+ for (var r3 = e3.length, s3 = V(e3, r3), o3 = 0; o3 < r3; ++o3)
1681
1774
  s3[o3].call(i3, n3);
1682
1775
  }(i2, c2, this, arguments[1]);
1683
1776
  break;
@@ -1686,7 +1779,7 @@ var telerikReportViewer = (function (exports) {
1686
1779
  if (t3)
1687
1780
  e3.call(i3, n3, r3);
1688
1781
  else
1689
- for (var s3 = e3.length, o3 = D(e3, s3), a3 = 0; a3 < s3; ++a3)
1782
+ for (var s3 = e3.length, o3 = V(e3, s3), a3 = 0; a3 < s3; ++a3)
1690
1783
  o3[a3].call(i3, n3, r3);
1691
1784
  }(i2, c2, this, arguments[1], arguments[2]);
1692
1785
  break;
@@ -1695,7 +1788,7 @@ var telerikReportViewer = (function (exports) {
1695
1788
  if (t3)
1696
1789
  e3.call(i3, n3, r3, s3);
1697
1790
  else
1698
- for (var o3 = e3.length, a3 = D(e3, o3), l3 = 0; l3 < o3; ++l3)
1791
+ for (var o3 = e3.length, a3 = V(e3, o3), l3 = 0; l3 < o3; ++l3)
1699
1792
  a3[l3].call(i3, n3, r3, s3);
1700
1793
  }(i2, c2, this, arguments[1], arguments[2], arguments[3]);
1701
1794
  break;
@@ -1706,24 +1799,24 @@ var telerikReportViewer = (function (exports) {
1706
1799
  if (t3)
1707
1800
  e3.apply(i3, n3);
1708
1801
  else
1709
- for (var r3 = e3.length, s3 = D(e3, r3), o3 = 0; o3 < r3; ++o3)
1802
+ for (var r3 = e3.length, s3 = V(e3, r3), o3 = 0; o3 < r3; ++o3)
1710
1803
  s3[o3].apply(i3, n3);
1711
1804
  }(i2, c2, this, r2);
1712
1805
  }
1713
1806
  return true;
1714
- }, M.prototype.addListener = function(e2, t2) {
1715
- return k(this, e2, t2, false);
1716
- }, M.prototype.on = M.prototype.addListener, M.prototype.prependListener = function(e2, t2) {
1717
- return k(this, e2, t2, true);
1718
- }, M.prototype.once = function(e2, t2) {
1807
+ }, k.prototype.addListener = function(e2, t2) {
1808
+ return N(this, e2, t2, false);
1809
+ }, k.prototype.on = k.prototype.addListener, k.prototype.prependListener = function(e2, t2) {
1810
+ return N(this, e2, t2, true);
1811
+ }, k.prototype.once = function(e2, t2) {
1719
1812
  if ("function" != typeof t2)
1720
1813
  throw new TypeError('"listener" argument must be a function');
1721
- return this.on(e2, L(this, e2, t2)), this;
1722
- }, M.prototype.prependOnceListener = function(e2, t2) {
1814
+ return this.on(e2, D(this, e2, t2)), this;
1815
+ }, k.prototype.prependOnceListener = function(e2, t2) {
1723
1816
  if ("function" != typeof t2)
1724
1817
  throw new TypeError('"listener" argument must be a function');
1725
- return this.prependListener(e2, L(this, e2, t2)), this;
1726
- }, M.prototype.removeListener = function(e2, t2) {
1818
+ return this.prependListener(e2, D(this, e2, t2)), this;
1819
+ }, k.prototype.removeListener = function(e2, t2) {
1727
1820
  var i2, n2, r2, s2, o2;
1728
1821
  if ("function" != typeof t2)
1729
1822
  throw new TypeError('"listener" argument must be a function');
@@ -1732,7 +1825,7 @@ var telerikReportViewer = (function (exports) {
1732
1825
  if (!(i2 = n2[e2]))
1733
1826
  return this;
1734
1827
  if (i2 === t2 || i2.listener && i2.listener === t2)
1735
- 0 === --this._eventsCount ? this._events = new E() : (delete n2[e2], n2.removeListener && this.emit("removeListener", e2, i2.listener || t2));
1828
+ 0 === --this._eventsCount ? this._events = new M() : (delete n2[e2], n2.removeListener && this.emit("removeListener", e2, i2.listener || t2));
1736
1829
  else if ("function" != typeof i2) {
1737
1830
  for (r2 = -1, s2 = i2.length; s2-- > 0; )
1738
1831
  if (i2[s2] === t2 || i2[s2].listener && i2[s2].listener === t2) {
@@ -1743,7 +1836,7 @@ var telerikReportViewer = (function (exports) {
1743
1836
  return this;
1744
1837
  if (1 === i2.length) {
1745
1838
  if (i2[0] = void 0, 0 === --this._eventsCount)
1746
- return this._events = new E(), this;
1839
+ return this._events = new M(), this;
1747
1840
  delete n2[e2];
1748
1841
  } else
1749
1842
  !function(e3, t3) {
@@ -1754,18 +1847,18 @@ var telerikReportViewer = (function (exports) {
1754
1847
  n2.removeListener && this.emit("removeListener", e2, o2 || t2);
1755
1848
  }
1756
1849
  return this;
1757
- }, M.prototype.off = function(e2, t2) {
1850
+ }, k.prototype.off = function(e2, t2) {
1758
1851
  return this.removeListener(e2, t2);
1759
- }, M.prototype.removeAllListeners = function(e2) {
1852
+ }, k.prototype.removeAllListeners = function(e2) {
1760
1853
  var t2, i2;
1761
1854
  if (!(i2 = this._events))
1762
1855
  return this;
1763
1856
  if (!i2.removeListener)
1764
- return 0 === arguments.length ? (this._events = new E(), this._eventsCount = 0) : i2[e2] && (0 === --this._eventsCount ? this._events = new E() : delete i2[e2]), this;
1857
+ return 0 === arguments.length ? (this._events = new M(), this._eventsCount = 0) : i2[e2] && (0 === --this._eventsCount ? this._events = new M() : delete i2[e2]), this;
1765
1858
  if (0 === arguments.length) {
1766
1859
  for (var n2, r2 = Object.keys(i2), s2 = 0; s2 < r2.length; ++s2)
1767
1860
  "removeListener" !== (n2 = r2[s2]) && this.removeAllListeners(n2);
1768
- return this.removeAllListeners("removeListener"), this._events = new E(), this._eventsCount = 0, this;
1861
+ return this.removeAllListeners("removeListener"), this._events = new M(), this._eventsCount = 0, this;
1769
1862
  }
1770
1863
  if ("function" == typeof (t2 = i2[e2]))
1771
1864
  this.removeListener(e2, t2);
@@ -1774,34 +1867,34 @@ var telerikReportViewer = (function (exports) {
1774
1867
  this.removeListener(e2, t2[t2.length - 1]);
1775
1868
  } while (t2[0]);
1776
1869
  return this;
1777
- }, M.prototype.listeners = function(e2) {
1870
+ }, k.prototype.listeners = function(e2) {
1778
1871
  var t2, i2 = this._events;
1779
1872
  return i2 && (t2 = i2[e2]) ? "function" == typeof t2 ? [t2.listener || t2] : function(e3) {
1780
1873
  for (var t3 = new Array(e3.length), i3 = 0; i3 < t3.length; ++i3)
1781
1874
  t3[i3] = e3[i3].listener || e3[i3];
1782
1875
  return t3;
1783
1876
  }(t2) : [];
1784
- }, M.listenerCount = function(e2, t2) {
1785
- return "function" == typeof e2.listenerCount ? e2.listenerCount(t2) : N.call(e2, t2);
1786
- }, M.prototype.listenerCount = N, M.prototype.eventNames = function() {
1877
+ }, k.listenerCount = function(e2, t2) {
1878
+ return "function" == typeof e2.listenerCount ? e2.listenerCount(t2) : F.call(e2, t2);
1879
+ }, k.prototype.listenerCount = F, k.prototype.eventNames = function() {
1787
1880
  return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
1788
1881
  };
1789
- const F = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
1790
- function O(e2) {
1882
+ const O = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
1883
+ function z(e2) {
1791
1884
  if ("string" != typeof e2 && "symbol" != typeof e2)
1792
1885
  throw new TypeError("type is not type of string or symbol!");
1793
1886
  }
1794
- function V(e2) {
1887
+ function _(e2) {
1795
1888
  if ("function" != typeof e2)
1796
1889
  throw new TypeError("fn is not type of Function!");
1797
1890
  }
1798
- function z(e2) {
1799
- return { [F]: "always", fn: e2 };
1891
+ function H(e2) {
1892
+ return { [O]: "always", fn: e2 };
1800
1893
  }
1801
- function _(e2) {
1802
- return { [F]: "once", fn: e2 };
1894
+ function U(e2) {
1895
+ return { [O]: "once", fn: e2 };
1803
1896
  }
1804
- class U {
1897
+ class $ {
1805
1898
  constructor() {
1806
1899
  this._events = {};
1807
1900
  }
@@ -1809,25 +1902,25 @@ var telerikReportViewer = (function (exports) {
1809
1902
  return this.on(e2, t2);
1810
1903
  }
1811
1904
  on(e2, t2) {
1812
- return O(e2), V(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(z(t2)), this;
1905
+ return z(e2), _(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(H(t2)), this;
1813
1906
  }
1814
1907
  prependListener(e2, t2) {
1815
1908
  return this.prepend(e2, t2);
1816
1909
  }
1817
1910
  prepend(e2, t2) {
1818
- return O(e2), V(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(z(t2)), this;
1911
+ return z(e2), _(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(H(t2)), this;
1819
1912
  }
1820
1913
  prependOnceListener(e2, t2) {
1821
1914
  return this.prependOnce(e2, t2);
1822
1915
  }
1823
1916
  prependOnce(e2, t2) {
1824
- return O(e2), V(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(_(t2)), this;
1917
+ return z(e2), _(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(U(t2)), this;
1825
1918
  }
1826
1919
  listeners(e2) {
1827
1920
  return (this._events[e2] || []).map((e3) => e3.fn);
1828
1921
  }
1829
1922
  once(e2, t2) {
1830
- return O(e2), V(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(_(t2)), this;
1923
+ return z(e2), _(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(U(t2)), this;
1831
1924
  }
1832
1925
  removeAllListeners() {
1833
1926
  this._events = {};
@@ -1836,7 +1929,7 @@ var telerikReportViewer = (function (exports) {
1836
1929
  return this.removeListener(e2, t2);
1837
1930
  }
1838
1931
  removeListener(e2, t2) {
1839
- O(e2);
1932
+ z(e2);
1840
1933
  const i2 = this.listeners(e2);
1841
1934
  if ("function" == typeof t2) {
1842
1935
  let n2 = -1, r2 = false;
@@ -1848,12 +1941,12 @@ var telerikReportViewer = (function (exports) {
1848
1941
  }
1849
1942
  emit(e2, ...t2) {
1850
1943
  return i(this, void 0, void 0, function* () {
1851
- O(e2);
1944
+ z(e2);
1852
1945
  const i2 = this.listeners(e2), n2 = [];
1853
1946
  if (i2 && i2.length) {
1854
1947
  for (let r2 = 0; r2 < i2.length; r2++) {
1855
1948
  const s2 = i2[r2], o2 = s2.apply(this, t2);
1856
- o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][F] && n2.push(s2);
1949
+ o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][O] && n2.push(s2);
1857
1950
  }
1858
1951
  return n2.forEach((t3) => this.removeListener(e2, t3)), true;
1859
1952
  }
@@ -1861,21 +1954,21 @@ var telerikReportViewer = (function (exports) {
1861
1954
  });
1862
1955
  }
1863
1956
  emitSync(e2, ...t2) {
1864
- O(e2);
1957
+ z(e2);
1865
1958
  const i2 = this.listeners(e2), n2 = [];
1866
1959
  if (i2 && i2.length) {
1867
1960
  for (let r2 = 0; r2 < i2.length; r2++) {
1868
1961
  const s2 = i2[r2];
1869
- s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][F] && n2.push(s2);
1962
+ s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][O] && n2.push(s2);
1870
1963
  }
1871
1964
  return n2.forEach((t3) => this.removeListener(e2, t3)), true;
1872
1965
  }
1873
1966
  return false;
1874
1967
  }
1875
1968
  }
1876
- class $ {
1969
+ class B {
1877
1970
  constructor() {
1878
- this.eventEmitter = new M(), this.awaitEventEmitter = new U();
1971
+ this.eventEmitter = new k(), this.awaitEventEmitter = new $();
1879
1972
  }
1880
1973
  on(e2, t2) {
1881
1974
  return this.eventEmitter.on(e2, t2), this;
@@ -1892,7 +1985,7 @@ var telerikReportViewer = (function (exports) {
1892
1985
  });
1893
1986
  }
1894
1987
  }
1895
- class H {
1988
+ class q {
1896
1989
  hasPdfPlugin() {
1897
1990
  let e2 = ["AcroPDF.PDF.1", "PDF.PdfCtrl.6", "PDF.PdfCtrl.5"];
1898
1991
  for (let t2 of e2)
@@ -1905,7 +1998,7 @@ var telerikReportViewer = (function (exports) {
1905
1998
  return false;
1906
1999
  }
1907
2000
  }
1908
- class B {
2001
+ class W {
1909
2002
  hasPdfPlugin() {
1910
2003
  let e2 = /Firefox[/\s](\d+\.\d+)/.exec(navigator.userAgent);
1911
2004
  if (null !== e2 && e2.length > 1) {
@@ -1920,7 +2013,7 @@ var telerikReportViewer = (function (exports) {
1920
2013
  return false;
1921
2014
  }
1922
2015
  }
1923
- class q {
2016
+ class Z {
1924
2017
  constructor(e2) {
1925
2018
  this.defaultPlugin = e2;
1926
2019
  }
@@ -1931,22 +2024,22 @@ var telerikReportViewer = (function (exports) {
1931
2024
  return false;
1932
2025
  }
1933
2026
  }
1934
- class W {
2027
+ class j {
1935
2028
  hasPdfPlugin() {
1936
2029
  return false;
1937
2030
  }
1938
2031
  }
1939
- function j() {
2032
+ function J() {
1940
2033
  return window.navigator && window.navigator.msSaveOrOpenBlob;
1941
2034
  }
1942
- class J {
2035
+ class G {
1943
2036
  constructor() {
1944
2037
  this.hasPdfPlugin = false, this.iframe = null, this.hasPdfPlugin = function() {
1945
2038
  if (window.navigator) {
1946
2039
  let e2 = window.navigator.userAgent.toLowerCase();
1947
- return e2.indexOf("msie") > -1 || e2.indexOf("mozilla") > -1 && e2.indexOf("trident") > -1 ? new H() : e2.indexOf("firefox") > -1 ? new B() : e2.indexOf("edg/") > -1 ? new q("Microsoft Edge PDF Plugin") : e2.indexOf("chrome") > -1 ? new q("Chrome PDF Viewer") : e2.indexOf("safari") > -1 ? new q("WebKit built-in PDF") : new W();
2040
+ return e2.indexOf("msie") > -1 || e2.indexOf("mozilla") > -1 && e2.indexOf("trident") > -1 ? new q() : e2.indexOf("firefox") > -1 ? new W() : e2.indexOf("edg/") > -1 ? new Z("Microsoft Edge PDF Plugin") : e2.indexOf("chrome") > -1 ? new Z("Chrome PDF Viewer") : e2.indexOf("safari") > -1 ? new Z("WebKit built-in PDF") : new j();
1948
2041
  }
1949
- return new W();
2042
+ return new j();
1950
2043
  }().hasPdfPlugin(), this.isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
1951
2044
  }
1952
2045
  destroy() {
@@ -1964,13 +2057,13 @@ var telerikReportViewer = (function (exports) {
1964
2057
  }), function(e3) {
1965
2058
  let t3 = window.location, i3 = document.createElement("a");
1966
2059
  return i3.setAttribute("href", e3), "" == i3.host && (i3.href = i3.href), t3.hostname === i3.hostname && t3.protocol === i3.protocol && t3.port === i3.port;
1967
- }(e2) && j())
2060
+ }(e2) && J())
1968
2061
  return this.iframe.src = e2, void document.body.appendChild(this.iframe);
1969
2062
  let i2 = new XMLHttpRequest(), n2 = this;
1970
2063
  i2.open("GET", e2, true), i2.responseType = "arraybuffer", i2.onload = function() {
1971
2064
  if (200 === this.status) {
1972
2065
  let e3 = new Blob([this.response], { type: "application/pdf" });
1973
- j() ? window.navigator.msSaveOrOpenBlob(e3) : (t2 = (window.URL || window.webkitURL).createObjectURL(e3), null != n2.iframe && (n2.iframe.src = t2, document.body.appendChild(n2.iframe)));
2066
+ J() ? window.navigator.msSaveOrOpenBlob(e3) : (t2 = (window.URL || window.webkitURL).createObjectURL(e3), null != n2.iframe && (n2.iframe.src = t2, document.body.appendChild(n2.iframe)));
1974
2067
  } else
1975
2068
  console.log("Could not retrieve remote PDF document.");
1976
2069
  }, i2.send();
@@ -1985,10 +2078,10 @@ var telerikReportViewer = (function (exports) {
1985
2078
  return this.hasPdfPlugin;
1986
2079
  }
1987
2080
  }
1988
- function G(e2) {
2081
+ function K(e2) {
1989
2082
  return 1e3 * e2;
1990
2083
  }
1991
- class Z {
2084
+ class X {
1992
2085
  constructor(e2, t2, i2) {
1993
2086
  if (this.pingMilliseconds = 0, !e2)
1994
2087
  throw "Error";
@@ -1997,7 +2090,7 @@ var telerikReportViewer = (function (exports) {
1997
2090
  initSessionTimeout(e2) {
1998
2091
  if (!isFinite(e2))
1999
2092
  throw "sessionTimeoutSeconds must be finite";
2000
- this.pingMilliseconds = e2 <= 120 ? G(e2) / 2 : G(e2 - 60);
2093
+ this.pingMilliseconds = e2 <= 120 ? K(e2) / 2 : K(e2 - 60);
2001
2094
  }
2002
2095
  start() {
2003
2096
  this.pingMilliseconds <= 0 || (this.interval = setInterval(() => {
@@ -2008,33 +2101,33 @@ var telerikReportViewer = (function (exports) {
2008
2101
  this.interval && (clearInterval(this.interval), this.interval = null);
2009
2102
  }
2010
2103
  }
2011
- var K, X, Y, Q, ee;
2012
- function te(e2, t2 = "", i2 = "") {
2104
+ var Y, Q, ee, te, ie;
2105
+ function ne(e2, t2 = "", i2 = "") {
2013
2106
  let n2 = document.createElement(e2);
2014
- return t2 && (n2.id = t2), ie(n2, i2), n2;
2107
+ return t2 && (n2.id = t2), re(n2, i2), n2;
2015
2108
  }
2016
- function ie(e2, t2) {
2109
+ function re(e2, t2) {
2017
2110
  if ("" === t2 || !e2)
2018
2111
  return;
2019
2112
  let i2 = t2.trim().split(" ");
2020
2113
  i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.add(...i2);
2021
2114
  }
2022
- function ne(e2, t2) {
2115
+ function se(e2, t2) {
2023
2116
  if ("" === t2 || !e2)
2024
2117
  return;
2025
2118
  let i2 = t2.trim().split(" ");
2026
2119
  i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.remove(...i2);
2027
2120
  }
2028
- function re(e2, t2) {
2121
+ function oe(e2, t2) {
2029
2122
  return e2.classList.contains(t2);
2030
2123
  }
2031
- function se(e2) {
2124
+ function ae(e2) {
2032
2125
  return e2.offsetParent;
2033
2126
  }
2034
- function oe(e2) {
2127
+ function le(e2) {
2035
2128
  return parseInt(e2, 10) || 0;
2036
2129
  }
2037
- function ae(e2, t2, i2, n2 = 0, r2 = 0) {
2130
+ function he(e2, t2, i2, n2 = 0, r2 = 0) {
2038
2131
  let s2 = `${n2 = n2 || 0} ${r2 = r2 || 0}`;
2039
2132
  !function(e3, t3) {
2040
2133
  e3.style.setProperty("transform", t3), e3.style.setProperty("-moz-transform", t3), e3.style.setProperty("-ms-transform", t3), e3.style.setProperty("-webkit-transform", t3), e3.style.setProperty("-o-transform", t3);
@@ -2042,11 +2135,11 @@ var telerikReportViewer = (function (exports) {
2042
2135
  e3.style.setProperty("transform-origin", t3), e3.style.setProperty("-moz-transform-origin", t3), e3.style.setProperty("-ms-transform-origin", t3), e3.style.setProperty("-webkit-transform-origin", t3), e3.style.setProperty("-o-transform-origin", t3);
2043
2136
  }(e2, s2);
2044
2137
  }
2045
- function le(e2) {
2046
- let t2 = te("div");
2138
+ function ce(e2) {
2139
+ let t2 = ne("div");
2047
2140
  return t2.textContent = e2, t2.innerHTML;
2048
2141
  }
2049
- function he(e2) {
2142
+ function de(e2) {
2050
2143
  if (e2 && e2.length < 6) {
2051
2144
  let t3 = 1, i2 = e2.split("");
2052
2145
  for ("#" !== i2[0] && (t3 = 0); t3 < i2.length; t3++)
@@ -2056,16 +2149,16 @@ var telerikReportViewer = (function (exports) {
2056
2149
  let t2 = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e2);
2057
2150
  return t2 ? parseInt(t2[1], 16) + ", " + parseInt(t2[2], 16) + ", " + parseInt(t2[3], 16) : null;
2058
2151
  }
2059
- function ce(e2) {
2152
+ function ue(e2) {
2060
2153
  return !!e2 && e2.indexOf(",") > -1;
2061
2154
  }
2062
- function de(e2) {
2155
+ function pe(e2) {
2063
2156
  if ("transparent" === e2.toLowerCase())
2064
2157
  return 0;
2065
- if (!ce(e2))
2158
+ if (!ue(e2))
2066
2159
  return 1;
2067
2160
  if (-1 !== e2.indexOf("#")) {
2068
- let t3 = he(e2);
2161
+ let t3 = de(e2);
2069
2162
  if (null === t3)
2070
2163
  return 1;
2071
2164
  e2 = t3;
@@ -2075,34 +2168,34 @@ var telerikReportViewer = (function (exports) {
2075
2168
  });
2076
2169
  return 4 === t2.length ? parseFloat((parseFloat(t2[3].replace(/[()]/g, "")) / 255).toFixed(2)) : 1;
2077
2170
  }
2078
- function ue(e2, t2) {
2079
- let i2 = te("div");
2171
+ function ge(e2, t2) {
2172
+ let i2 = ne("div");
2080
2173
  for (i2.innerHTML = t2; i2.childNodes.length; )
2081
2174
  e2.appendChild(i2.childNodes[0]);
2082
2175
  }
2083
- function pe(e2, t2) {
2084
- let i2 = te("div");
2176
+ function fe(e2, t2) {
2177
+ let i2 = ne("div");
2085
2178
  for (i2.innerHTML = t2; i2.childNodes.length; )
2086
2179
  e2.prepend(i2.childNodes[i2.childNodes.length - 1]);
2087
2180
  }
2088
- function ge(e2, t2) {
2181
+ function me(e2, t2) {
2089
2182
  return e2 ? e2.querySelector(t2) : null;
2090
2183
  }
2091
- function me(e2, t2) {
2184
+ function ve(e2, t2) {
2092
2185
  var i2;
2093
2186
  return e2 && e2.attributes && (null === (i2 = e2.attributes[t2]) || void 0 === i2 ? void 0 : i2.value) || "";
2094
2187
  }
2095
- function fe(e2) {
2188
+ function Pe(e2) {
2096
2189
  let t2 = e2.parentElement;
2097
- return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : fe(t2) : null;
2190
+ return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : Pe(t2) : null;
2098
2191
  }
2099
- function ve(e2, t2 = 300) {
2192
+ function Ce(e2, t2 = 300) {
2100
2193
  let i2;
2101
2194
  return function(...n2) {
2102
2195
  clearTimeout(i2), i2 = setTimeout(() => e2.apply(this, n2), t2);
2103
2196
  };
2104
2197
  }
2105
- function Pe(e2, t2) {
2198
+ function ye(e2, t2) {
2106
2199
  let i2 = null;
2107
2200
  return function(n2, ...r2) {
2108
2201
  i2 || (i2 = setTimeout(function() {
@@ -2110,24 +2203,24 @@ var telerikReportViewer = (function (exports) {
2110
2203
  }, t2));
2111
2204
  };
2112
2205
  }
2113
- function Ce(e2, t2) {
2206
+ function Se(e2, t2) {
2114
2207
  return !!e2.responseJSON && e2.responseJSON.exceptionType === t2;
2115
2208
  }
2116
- function ye(e2) {
2117
- return Ce(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
2209
+ function Ie(e2) {
2210
+ return Se(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
2118
2211
  }
2119
- function Se(e2) {
2120
- return Ce(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
2212
+ function be(e2) {
2213
+ return Se(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
2121
2214
  }
2122
- function Ie(e2) {
2215
+ function we(e2) {
2123
2216
  return !!e2 && "internalservererror" === e2.split(" ").join("").toLowerCase();
2124
2217
  }
2125
- function be(e2, ...t2) {
2218
+ function Le(e2, ...t2) {
2126
2219
  return e2.replace(/{(\d+)}/g, (e3, i2) => t2[i2] || "");
2127
2220
  }
2128
- function we(e2, t2) {
2221
+ function Te(e2, t2) {
2129
2222
  let i2, n2;
2130
- if (Te(e2))
2223
+ if (Ae(e2))
2131
2224
  for (i2 = e2.length, n2 = 0; n2 < i2 && false !== t2.call(e2[n2], n2, e2[n2]); n2++)
2132
2225
  ;
2133
2226
  else
@@ -2136,40 +2229,30 @@ var telerikReportViewer = (function (exports) {
2136
2229
  break;
2137
2230
  return e2;
2138
2231
  }
2139
- function Te(e2) {
2232
+ function Ae(e2) {
2140
2233
  if (Array.isArray(e2))
2141
2234
  return true;
2142
2235
  return "number" == typeof (!!e2 && "length" in e2 && e2.length);
2143
2236
  }
2144
- function Ae(e2) {
2237
+ function Re(e2) {
2145
2238
  return /^(\-|\+)?([0-9]+)$/.test(e2) ? Number(e2) : NaN;
2146
2239
  }
2147
- function Re(e2) {
2240
+ function Ee(e2) {
2148
2241
  return /^(\-|\+)?([0-9]+(\.[0-9]+)?)$/.test(e2) ? Number(e2) : NaN;
2149
2242
  }
2150
- function Ee(e2) {
2243
+ function Me(e2) {
2151
2244
  return e2 instanceof Date ? e2 : (/Z|[\+\-]\d\d:?\d\d/i.test(e2) || (e2 += "Z"), new Date(e2));
2152
2245
  }
2153
- e.PageMode = void 0, (K = e.PageMode || (e.PageMode = {}))[K.ContinuousScroll = 0] = "ContinuousScroll", K[K.SinglePage = 1] = "SinglePage", e.PrintMode = void 0, (X = e.PrintMode || (e.PrintMode = {}))[X.AutoSelect = 0] = "AutoSelect", X[X.ForcePDFPlugin = 1] = "ForcePDFPlugin", X[X.ForcePDFFile = 2] = "ForcePDFFile", e.ScaleMode = void 0, (Y = e.ScaleMode || (e.ScaleMode = {}))[Y.FitPageWidth = 0] = "FitPageWidth", Y[Y.FitPage = 1] = "FitPage", Y[Y.Specific = 2] = "Specific", e.ServiceType = void 0, (Q = e.ServiceType || (e.ServiceType = {}))[Q.REST = 0] = "REST", Q[Q.ReportServer = 1] = "ReportServer", e.ViewMode = void 0, (ee = e.ViewMode || (e.ViewMode = {}))[ee.Interactive = 0] = "Interactive", ee[ee.PrintPreview = 1] = "PrintPreview";
2154
- class Me {
2155
- constructor(e2, t2) {
2156
- this.handled = false, this.deviceInfo = e2, this.format = t2;
2157
- }
2158
- }
2159
- class xe extends r {
2160
- constructor(e2, t2, i2) {
2161
- super(), this.handled = false, this.body = e2.body, this.cc = e2.cc, this.format = e2.format, this.from = e2.from, this.subject = e2.subject, this.to = e2.to, this.deviceInfo = t2, this.url = i2;
2162
- }
2163
- }
2164
- const ke = "System.Int64", Le = "System.Double", Ne = "System.String", De = "System.DateTime", Fe = "System.Boolean";
2165
- var Oe = function() {
2246
+ e.PageMode = void 0, (Y = e.PageMode || (e.PageMode = {}))[Y.ContinuousScroll = 0] = "ContinuousScroll", Y[Y.SinglePage = 1] = "SinglePage", e.PrintMode = void 0, (Q = e.PrintMode || (e.PrintMode = {}))[Q.AutoSelect = 0] = "AutoSelect", Q[Q.ForcePDFPlugin = 1] = "ForcePDFPlugin", Q[Q.ForcePDFFile = 2] = "ForcePDFFile", e.ScaleMode = void 0, (ee = e.ScaleMode || (e.ScaleMode = {}))[ee.FitPageWidth = 0] = "FitPageWidth", ee[ee.FitPage = 1] = "FitPage", ee[ee.Specific = 2] = "Specific", e.ServiceType = void 0, (te = e.ServiceType || (e.ServiceType = {}))[te.REST = 0] = "REST", te[te.ReportServer = 1] = "ReportServer", e.ViewMode = void 0, (ie = e.ViewMode || (e.ViewMode = {}))[ie.Interactive = 0] = "Interactive", ie[ie.PrintPreview = 1] = "PrintPreview";
2247
+ const ke = "System.Int64", xe = "System.Double", Ne = "System.String", De = "System.DateTime", Fe = "System.Boolean";
2248
+ var Ve = function() {
2166
2249
  var e2 = {};
2167
2250
  function t2(e3, t3, i3, n2) {
2168
2251
  var r2 = [].concat(t3).map(function(t4) {
2169
2252
  return function(e4, t5, i4) {
2170
2253
  if (e4.availableValues) {
2171
2254
  var n3 = false;
2172
- if (we(e4.availableValues, function(e5, r3) {
2255
+ if (Te(e4.availableValues, function(e5, r3) {
2173
2256
  return !(n3 = i4(t5, r3.value));
2174
2257
  }), !n3) {
2175
2258
  if (e4.allowNull && !t5)
@@ -2206,9 +2289,9 @@ var telerikReportViewer = (function (exports) {
2206
2289
  }, function(e4, t3) {
2207
2290
  return e4 == t3;
2208
2291
  });
2209
- } }, e2[Le] = { validate: function(e3, n2) {
2292
+ } }, e2[xe] = { validate: function(e3, n2) {
2210
2293
  return t2(e3, n2, function(t3) {
2211
- var n3 = Re(t3);
2294
+ var n3 = Ee(t3);
2212
2295
  if (isNaN(n3)) {
2213
2296
  if (i2(e3, t3))
2214
2297
  return null;
@@ -2216,11 +2299,11 @@ var telerikReportViewer = (function (exports) {
2216
2299
  }
2217
2300
  return n3;
2218
2301
  }, function(e4, t3) {
2219
- return Re(e4) == Re(t3);
2302
+ return Ee(e4) == Ee(t3);
2220
2303
  });
2221
2304
  } }, e2[ke] = { validate: function(e3, n2) {
2222
2305
  return t2(e3, n2, function(t3) {
2223
- var n3 = Ae(t3);
2306
+ var n3 = Re(t3);
2224
2307
  if (isNaN(n3)) {
2225
2308
  if (i2(e3, t3))
2226
2309
  return null;
@@ -2228,17 +2311,17 @@ var telerikReportViewer = (function (exports) {
2228
2311
  }
2229
2312
  return n3;
2230
2313
  }, function(e4, t3) {
2231
- return Ae(e4) == Re(t3);
2314
+ return Re(e4) == Ee(t3);
2232
2315
  });
2233
2316
  } }, e2[De] = { validate: function(e3, i3) {
2234
2317
  return t2(e3, i3, function(t3) {
2235
2318
  if (e3.allowNull && (null === t3 || "" === t3 || void 0 === t3))
2236
2319
  return null;
2237
2320
  if (!isNaN(Date.parse(t3)))
2238
- return e3.availableValues ? t3 : Ee(t3);
2321
+ return e3.availableValues ? t3 : Me(t3);
2239
2322
  throw "Please input a valid date.";
2240
2323
  }, function(e4, t3) {
2241
- return e4 = Ee(e4), t3 = Ee(t3), e4.getTime() == t3.getTime();
2324
+ return e4 = Me(e4), t3 = Me(t3), e4.getTime() == t3.getTime();
2242
2325
  });
2243
2326
  } }, e2[Fe] = { validate: function(e3, n2) {
2244
2327
  return t2(e3, n2, function(t3) {
@@ -2253,11 +2336,11 @@ var telerikReportViewer = (function (exports) {
2253
2336
  } }, { validate: function(t3, i3) {
2254
2337
  var n2 = e2[t3.type];
2255
2338
  if (!n2)
2256
- throw be("Cannot validate parameter of type {type}.", t3);
2339
+ throw Le("Cannot validate parameter of type {type}.", t3);
2257
2340
  return n2.validate(t3, i3);
2258
2341
  } };
2259
2342
  }();
2260
- function Ve(e2, t2, i2) {
2343
+ function Oe(e2, t2, i2) {
2261
2344
  try {
2262
2345
  const n2 = e2.availableValues.find((e3) => e3.value === t2);
2263
2346
  if (!n2) {
@@ -2273,7 +2356,7 @@ var telerikReportViewer = (function (exports) {
2273
2356
  function ze(e2, t2, i2) {
2274
2357
  const n2 = [];
2275
2358
  for (let r2 in t2)
2276
- n2.push(Ve(e2, t2[r2], i2));
2359
+ n2.push(Oe(e2, t2[r2], i2));
2277
2360
  return n2;
2278
2361
  }
2279
2362
  class _e {
@@ -2281,7 +2364,7 @@ var telerikReportViewer = (function (exports) {
2281
2364
  this.report = e2, this.parameters = t2;
2282
2365
  }
2283
2366
  }
2284
- class Ue extends $ {
2367
+ class He extends B {
2285
2368
  constructor(e2) {
2286
2369
  super(), this.resizeObserver = null, this.element = e2, this.initResizeObserver();
2287
2370
  }
@@ -2289,7 +2372,7 @@ var telerikReportViewer = (function (exports) {
2289
2372
  this.destroyResizeObserver();
2290
2373
  }
2291
2374
  initResizeObserver() {
2292
- this.debounceResize = ve(this.onResize.bind(this), 50), this.resizeObserver = new ResizeObserver(this.debounceResize), this.resizeObserver.observe(this.element);
2375
+ this.debounceResize = Ce(this.onResize.bind(this), 50), this.resizeObserver = new ResizeObserver(this.debounceResize), this.resizeObserver.observe(this.element);
2293
2376
  }
2294
2377
  destroyResizeObserver() {
2295
2378
  this.resizeObserver && this.resizeObserver.unobserve(this.element), this.resizeObserver = this.debounceResize = null;
@@ -2298,8 +2381,8 @@ var telerikReportViewer = (function (exports) {
2298
2381
  e2[0].target === this.element && this.emit("resize");
2299
2382
  }
2300
2383
  }
2301
- const $e = '<div class="trv-report-page trv-skeleton-page trv-skeleton-{0}" style="{1}" data-page="{0}"><div class="trv-skeleton-wrapper" style="{2}"></div></div>';
2302
- class He {
2384
+ const Ue = '<div class="trv-report-page trv-skeleton-page trv-skeleton-{0}" style="{1}" data-page="{0}"><div class="trv-skeleton-wrapper" style="{2}"></div></div>';
2385
+ class $e {
2303
2386
  constructor(t2, i2, n2) {
2304
2387
  this.enabled = false, this.viewMode = e.ViewMode.Interactive, this.scrollInProgress = false, this.additionalTopOffset = 130, this.onClickHandler = null, this.debounceScroll = null, this.throttleScroll = null, this.oldScrollTopPosition = 0, this.lastLoadedPage = null, this.placeholder = t2, this.pageContainer = t2.querySelector(".trv-page-container"), this.pageWrapper = t2.querySelector(".trv-page-wrapper"), this.contentArea = i2, this.controller = n2, this.controller.getPageMode() === e.PageMode.ContinuousScroll && this.enable(), this.controller.on("loadedReportChange", this.disable.bind(this)).on("viewModeChanged", this.disable.bind(this)).on("scaleChanged", this.onScaleChanged.bind(this)).on("interactiveActionExecuting", this.onInteractiveActionExecuting.bind(this)).on("pageLoaded", this.onPageLoaded.bind(this));
2305
2388
  }
@@ -2321,10 +2404,10 @@ var telerikReportViewer = (function (exports) {
2321
2404
  return this.enabled;
2322
2405
  }
2323
2406
  enable() {
2324
- this.enabled = true, ie(this.placeholder, "scrollable"), this.initEvents();
2407
+ this.enabled = true, re(this.placeholder, "scrollable"), this.initEvents();
2325
2408
  }
2326
2409
  disable() {
2327
- this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false, ne(this.placeholder, "scrollable"), this.unbind());
2410
+ this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false, se(this.placeholder, "scrollable"), this.unbind());
2328
2411
  }
2329
2412
  renderPage(e2) {
2330
2413
  let t2 = this.controller.getViewMode(), i2 = this.findPageElement(e2.pageNumber);
@@ -2339,7 +2422,7 @@ var telerikReportViewer = (function (exports) {
2339
2422
  this.enabled && this.currentPageNumber() > 0 && this.keepCurrentPageInToView();
2340
2423
  }
2341
2424
  setCurrentPage(e2) {
2342
- e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (ne(this.findElement(".k-state-default"), "k-state-default"), ie(this.findPageElement(e2), "k-state-default")), this.loadNextPreviousPage(e2);
2425
+ e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (se(this.findElement(".k-state-default"), "k-state-default"), re(this.findPageElement(e2), "k-state-default")), this.loadNextPreviousPage(e2);
2343
2426
  }
2344
2427
  updatePageArea(e2) {
2345
2428
  var t2;
@@ -2364,18 +2447,18 @@ var telerikReportViewer = (function (exports) {
2364
2447
  return this.controller.getCurrentPageNumber();
2365
2448
  }
2366
2449
  isSkeletonScreen(e2, t2) {
2367
- return !(!e2 && !(e2 = this.findPageElement(t2))) && re(e2, "trv-skeleton-" + t2);
2450
+ return !(!e2 && !(e2 = this.findPageElement(t2))) && oe(e2, "trv-skeleton-" + t2);
2368
2451
  }
2369
2452
  addSkeletonScreen(e2, t2) {
2370
- let i2 = e2 + (t2 ? 1 : -1), n2 = this.findPageElement(i2), r2 = me(n2, "style"), s2 = me(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = be($e, e2, r2, s2);
2371
- t2 ? pe(this.pageWrapper, o2) : ue(this.pageWrapper, o2);
2453
+ let i2 = e2 + (t2 ? 1 : -1), n2 = this.findPageElement(i2), r2 = ve(n2, "style"), s2 = ve(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = Le(Ue, e2, r2, s2);
2454
+ t2 ? fe(this.pageWrapper, o2) : ge(this.pageWrapper, o2);
2372
2455
  }
2373
2456
  generateSkeletonScreens(e2) {
2374
2457
  var t2;
2375
- let i2 = "", n2 = this.findPageElement(1), r2 = me(n2, "style"), s2 = me(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = null === (t2 = this.findLastElement(".trv-report-page")) || void 0 === t2 ? void 0 : t2.dataset.page, a2 = o2 ? parseInt(o2) + 1 : 1;
2458
+ let i2 = "", n2 = this.findPageElement(1), r2 = ve(n2, "style"), s2 = ve(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = null === (t2 = this.findLastElement(".trv-report-page")) || void 0 === t2 ? void 0 : t2.dataset.page, a2 = o2 ? parseInt(o2) + 1 : 1;
2376
2459
  for (; a2 < e2; a2++)
2377
- i2 += be($e, a2, r2, s2);
2378
- ue(this.pageWrapper, i2);
2460
+ i2 += Le(Ue, a2, r2, s2);
2461
+ ge(this.pageWrapper, i2);
2379
2462
  }
2380
2463
  loadMorePages() {
2381
2464
  var e2;
@@ -2426,10 +2509,10 @@ var telerikReportViewer = (function (exports) {
2426
2509
  }
2427
2510
  }
2428
2511
  initEvents() {
2429
- this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = ve(() => {
2512
+ this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = Ce(() => {
2430
2513
  let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
2431
2514
  !this.scrollInProgress && e2.length && this.oldScrollTopPosition !== t2 && this.advanceCurrentPage(Array.from(e2));
2432
- }, 250), this.throttleScroll = Pe(() => {
2515
+ }, 250), this.throttleScroll = ye(() => {
2433
2516
  let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
2434
2517
  this.scrollInProgress || this.oldScrollTopPosition === t2 || (this.oldScrollTopPosition > t2 ? this.scrollUp(Array.from(e2)) : this.scrollDown(Array.from(e2), t2)), this.oldScrollTopPosition = t2;
2435
2518
  }, 250), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("scroll", this.debounceScroll), this.pageContainer.addEventListener("scroll", this.throttleScroll);
@@ -2532,7 +2615,7 @@ var telerikReportViewer = (function (exports) {
2532
2615
  this.reset(e2), this.attachToScrollEvent();
2533
2616
  }
2534
2617
  reset(e2) {
2535
- this.placeholder = e2, this.scrollableContainer = ge(e2, ".trv-page-container"), this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} };
2618
+ this.placeholder = e2, this.scrollableContainer = me(e2, ".trv-page-container"), this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} };
2536
2619
  }
2537
2620
  setScaleFactor(e2) {
2538
2621
  this.scaleFactor = e2;
@@ -2555,7 +2638,7 @@ var telerikReportViewer = (function (exports) {
2555
2638
  saveFreezeItemsInitialState(e2) {
2556
2639
  var t2, i2, n2;
2557
2640
  let r2 = null === (t2 = this.placeholder) || void 0 === t2 ? void 0 : t2.querySelectorAll("[data-sticky-direction][data-sticky-id='" + e2 + "']"), s2 = null === (i2 = this.placeholder) || void 0 === i2 ? void 0 : i2.querySelectorAll("[data-reporting-action][data-sticky-id='" + e2 + "']"), o2 = null, a2 = null, l2 = null, h2 = null;
2558
- this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 = ge(this.placeholder, "[data-id='" + e2 + "']")) || void 0 === n2 ? void 0 : n2.dataset.stickyBgColor) || "", r2.forEach((t3) => {
2641
+ this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 = me(this.placeholder, "[data-id='" + e2 + "']")) || void 0 === n2 ? void 0 : n2.dataset.stickyBgColor) || "", r2.forEach((t3) => {
2559
2642
  var i3;
2560
2643
  let n3 = t3.dataset.stickyDirection, r3 = (null === (i3 = t3.dataset.id) || void 0 === i3 ? void 0 : i3.toString()) || "", s3 = t3.offsetLeft / this.scaleFactor, c2 = t3.offsetLeft + t3.offsetWidth * this.scaleFactor, d2 = t3.offsetTop / this.scaleFactor, u2 = t3.offsetTop + t3.offsetHeight * this.scaleFactor, p2 = (e3, t4) => null === e3 || t4 < e3 ? t4 : e3, g2 = (e3, t4) => null === e3 || t4 > e3 ? t4 : e3;
2561
2644
  switch (n3) {
@@ -2577,13 +2660,13 @@ var telerikReportViewer = (function (exports) {
2577
2660
  }
2578
2661
  updateFreezeItemsOnScroll(e2, t2, i2) {
2579
2662
  var n2, r2;
2580
- let s2 = ge(this.placeholder, "div[data-id='" + e2 + "']");
2663
+ let s2 = me(this.placeholder, "div[data-id='" + e2 + "']");
2581
2664
  if (!s2)
2582
2665
  return;
2583
2666
  let o2 = null === (n2 = this.placeholder) || void 0 === n2 ? void 0 : n2.querySelectorAll("[data-sticky-direction*='Horizontal'][data-sticky-id='" + e2 + "']"), a2 = null === (r2 = this.placeholder) || void 0 === r2 ? void 0 : r2.querySelectorAll("[data-sticky-direction*='Vertical'][data-sticky-id='" + e2 + "']");
2584
2667
  if (this.isInScrollVisibleArea(s2)) {
2585
- let n3 = s2.closest(".trv-report-page"), r3 = getComputedStyle(n3), l2 = parseFloat(r3.marginLeft), h2 = parseFloat(r3.paddingTop), c2 = parseFloat(r3.paddingLeft), d2 = parseFloat(r3.borderTopWidth), u2 = parseFloat(r3.borderLeftWidth), p2 = o2.length > 0, g2 = a2.length > 0, m2 = s2.offsetTop + ((null == n3 ? void 0 : n3.offsetTop) || 0) + l2 + h2 + d2, f2 = s2.offsetLeft + ((null == n3 ? void 0 : n3.offsetLeft) || 0) + c2 + u2, v2 = t2 - m2, P2 = i2 - f2;
2586
- g2 && v2 > 0 ? t2 <= s2.offsetHeight * this.scaleFactor + m2 - this.yFrozenAreasBounds[e2] && (this.currentlyFrozenContainer.vertical[e2] = true, this.updateUIElementsPosition(a2, "top", v2 / this.scaleFactor, e2)) : this.currentlyFrozenContainer.vertical[e2] && (delete this.currentlyFrozenContainer.vertical[e2], this.updateUIElementsPosition(a2, "top", -1, e2)), p2 && P2 > 0 ? i2 <= s2.offsetWidth * this.scaleFactor + f2 - this.xFrozenAreasBounds[e2] && (this.currentlyFrozenContainer.horizontal[e2] = true, this.updateUIElementsPosition(o2, "left", P2 / this.scaleFactor, e2)) : this.currentlyFrozenContainer.horizontal[e2] && (delete this.currentlyFrozenContainer.horizontal[e2], this.updateUIElementsPosition(o2, "left", -1, e2));
2668
+ let n3 = s2.closest(".trv-report-page"), r3 = getComputedStyle(n3), l2 = parseFloat(r3.marginLeft), h2 = parseFloat(r3.paddingTop), c2 = parseFloat(r3.paddingLeft), d2 = parseFloat(r3.borderTopWidth), u2 = parseFloat(r3.borderLeftWidth), p2 = o2.length > 0, g2 = a2.length > 0, f2 = s2.offsetTop + ((null == n3 ? void 0 : n3.offsetTop) || 0) + l2 + h2 + d2, m2 = s2.offsetLeft + ((null == n3 ? void 0 : n3.offsetLeft) || 0) + c2 + u2, v2 = t2 - f2, P2 = i2 - m2;
2669
+ g2 && v2 > 0 ? t2 <= s2.offsetHeight * this.scaleFactor + f2 - this.yFrozenAreasBounds[e2] && (this.currentlyFrozenContainer.vertical[e2] = true, this.updateUIElementsPosition(a2, "top", v2 / this.scaleFactor, e2)) : this.currentlyFrozenContainer.vertical[e2] && (delete this.currentlyFrozenContainer.vertical[e2], this.updateUIElementsPosition(a2, "top", -1, e2)), p2 && P2 > 0 ? i2 <= s2.offsetWidth * this.scaleFactor + m2 - this.xFrozenAreasBounds[e2] && (this.currentlyFrozenContainer.horizontal[e2] = true, this.updateUIElementsPosition(o2, "left", P2 / this.scaleFactor, e2)) : this.currentlyFrozenContainer.horizontal[e2] && (delete this.currentlyFrozenContainer.horizontal[e2], this.updateUIElementsPosition(o2, "left", -1, e2));
2587
2670
  } else
2588
2671
  (this.currentlyFrozenContainer.horizontal[e2] || this.currentlyFrozenContainer.vertical[e2]) && this.resetToDefaultPosition(e2, o2, a2);
2589
2672
  }
@@ -2602,7 +2685,7 @@ var telerikReportViewer = (function (exports) {
2602
2685
  "IMG" !== e2.tagName && (t2 && this.isFrozen(r2) && !i2 ? e2.style.backgroundColor = this.freezeBGColor[r2] : e2.style.backgroundColor = n2 ? this.freezeBGColor[r2] : "initial");
2603
2686
  }
2604
2687
  hasSetBgColor(e2) {
2605
- return de(e2) > 0;
2688
+ return pe(e2) > 0;
2606
2689
  }
2607
2690
  isFrozen(e2) {
2608
2691
  return this.currentlyFrozenContainer.horizontal[e2] || this.currentlyFrozenContainer.vertical[e2];
@@ -2623,20 +2706,20 @@ var telerikReportViewer = (function (exports) {
2623
2706
  }
2624
2707
  }
2625
2708
  const qe = /{(\w+?)}/g, We = "trv-initial-image-styles";
2626
- function je(e2, t2) {
2709
+ function Ze(e2, t2) {
2627
2710
  let i2 = Array.isArray(t2);
2628
2711
  return e2 ? e2.replace(qe, function(e3, n2) {
2629
2712
  return t2[i2 ? parseInt(n2) : n2];
2630
2713
  }) : "";
2631
2714
  }
2632
- const Je = "trv-search-dialog-shaded-result", Ge = "trv-search-dialog-highlighted-result";
2633
- e.BasicAuth = C, e.BookmarkNode = class {
2715
+ const je = "trv-search-dialog-shaded-result", Je = "trv-search-dialog-highlighted-result";
2716
+ e.BasicAuth = S, e.BookmarkNode = class {
2634
2717
  constructor() {
2635
2718
  this.id = "", this.text = "", this.page = 0, this.items = null;
2636
2719
  }
2637
- }, e.ConnectionConfig = b, e.ConnectionConfigNoAuth = w, e.ConnectionConfigServerCredentials = A, e.ConnectionConfigServerNoAuth = T, e.ConnectionConfigServerToken = R, e.ContentArea = class {
2720
+ }, e.ConnectionConfig = L, e.ConnectionConfigNoAuth = T, e.ConnectionConfigServerCredentials = R, e.ConnectionConfigServerNoAuth = A, e.ConnectionConfigServerToken = E, e.ContentArea = class {
2638
2721
  constructor(e2, t2, i2, n2 = {}) {
2639
- this.actions = [], this.pendingElement = null, this.documentReady = true, this.reportPageIsLoaded = false, this.navigateToPageOnDocReady = 0, this.navigateToElementOnDocReady = null, this.onClickHandler = null, this.onMouseEnterHandler = null, this.onMouseLeaveHandler = null, this.isNewReportSource = false, this.uiFreezeCoordinator = null, this.initialPageAreaImageUrl = "", this.showPageAreaImage = false, this.placeholder = e2.querySelector(".trv-pages-pane, .trv-pages-area"), this.pageContainer = e2.querySelector(".trv-page-container"), this.pageWrapper = e2.querySelector(".trv-page-wrapper"), this.parametersContainer = e2.querySelector(".trv-parameters-area"), this.notification = e2.querySelector(".trv-notification, .trv-error-pane"), this.scrollManager = new He(this.placeholder, this, t2), this.resizeService = new Ue(this.pageContainer), this.resizeService.on("resize", this.onResize.bind(this)), this.controller = t2, this.controller.on("pageReady", this.onPageReady.bind(this)).on("navigateToPage", this.navigateToPage.bind(this)).on("serverActionStarted", this.onServerActionStarted.bind(this)).on("reportSourceChanged", this.onReportSourceChanged.bind(this)).on("scaleChanged", this.updatePageDimensions.bind(this)).on("scaleModeChanged", this.updatePageDimensions.bind(this)).on("printStarted", this.onPrintStarted.bind(this)).on("printDocumentReady", this.onPrintDocumentReady.bind(this)).on("exportStarted", this.onExportStarted.bind(this)).on("exportDocumentReady", this.onExportDocumentReady.bind(this)).onAsync("beforeLoadReport", this.onBeforeLoadReport.bind(this)).on("beginLoadReport", this.onBeginLoadReport.bind(this)).on("reportLoadProgress", this.onReportLoadProgress.bind(this)).onAsync("reportLoadComplete", this.onReportLoadComplete.bind(this)).onAsync("reportAutoRunOff", this.onReportAutoRunOff.bind(this)).on("renderingStopped", this.onRenderingStopped.bind(this)).on("missingOrInvalidParameters", this.onMissingOrInvalidParameters.bind(this)).on("noReport", this.onNoReport.bind(this)).on("error", this.onError.bind(this)).on("showNotification", this.onShowNotification.bind(this)), this.messages = i2, this.enableAccessibility = n2.enableAccessibility || false, this.initialPageAreaImageUrl = n2.initialPageAreaImageUrl || "";
2722
+ this.actions = [], this.pendingElement = null, this.documentReady = true, this.reportPageIsLoaded = false, this.navigateToPageOnDocReady = 0, this.navigateToElementOnDocReady = null, this.onClickHandler = null, this.onMouseEnterHandler = null, this.onMouseLeaveHandler = null, this.isNewReportSource = false, this.uiFreezeCoordinator = null, this.initialPageAreaImageUrl = "", this.showPageAreaImage = false, this.placeholder = e2.querySelector(".trv-pages-pane, .trv-pages-area"), this.pageContainer = e2.querySelector(".trv-page-container"), this.pageWrapper = e2.querySelector(".trv-page-wrapper"), this.parametersContainer = e2.querySelector(".trv-parameters-area"), this.notification = e2.querySelector(".trv-notification, .trv-error-pane"), this.scrollManager = new $e(this.placeholder, this, t2), this.resizeService = new He(this.pageContainer), this.resizeService.on("resize", this.onResize.bind(this)), this.controller = t2, this.controller.on("pageReady", this.onPageReady.bind(this)).on("navigateToPage", this.navigateToPage.bind(this)).on("serverActionStarted", this.onServerActionStarted.bind(this)).on("reportSourceChanged", this.onReportSourceChanged.bind(this)).on("scaleChanged", this.updatePageDimensions.bind(this)).on("scaleModeChanged", this.updatePageDimensions.bind(this)).on("printStarted", this.onPrintStarted.bind(this)).on("printDocumentReady", this.onPrintDocumentReady.bind(this)).on("exportStarted", this.onExportStarted.bind(this)).on("exportDocumentReady", this.onExportDocumentReady.bind(this)).onAsync("beforeLoadReport", this.onBeforeLoadReport.bind(this)).on("beginLoadReport", this.onBeginLoadReport.bind(this)).on("reportLoadProgress", this.onReportLoadProgress.bind(this)).onAsync("reportLoadComplete", this.onReportLoadComplete.bind(this)).onAsync("reportAutoRunOff", this.onReportAutoRunOff.bind(this)).on("renderingStopped", this.onRenderingStopped.bind(this)).on("missingOrInvalidParameters", this.onMissingOrInvalidParameters.bind(this)).on("noReport", this.onNoReport.bind(this)).on("error", this.onError.bind(this)).on("showNotification", this.onShowNotification.bind(this)), this.messages = i2, this.enableAccessibility = n2.enableAccessibility || false, this.initialPageAreaImageUrl = n2.initialPageAreaImageUrl || "";
2640
2723
  }
2641
2724
  destroy() {
2642
2725
  this.resizeService && this.resizeService.destroy();
@@ -2663,10 +2746,10 @@ var telerikReportViewer = (function (exports) {
2663
2746
  this.documentReady = true, this.invalidateCurrentlyLoadedPage();
2664
2747
  }
2665
2748
  onReportLoadProgress(e2) {
2666
- this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(je(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
2749
+ this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(Ze(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
2667
2750
  }
2668
2751
  onReportLoadComplete(t2) {
2669
- 0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(je(this.messages.ReportViewer_LoadedReportPagesComplete, [t2.pageCount])), this.showNotificationTimeoutId = window.setTimeout(this.hideNotification.bind(this), 2e3), this.disableParametersArea(false), this.enableInteractivity()), t2.containsFrozenContent && null === this.uiFreezeCoordinator && (this.uiFreezeCoordinator = new Be(), this.controller.getViewMode() === e.ViewMode.Interactive && this.uiFreezeCoordinator.init(this.placeholder));
2752
+ 0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(Ze(this.messages.ReportViewer_LoadedReportPagesComplete, [t2.pageCount])), this.showNotificationTimeoutId = window.setTimeout(this.hideNotification.bind(this), 2e3), this.disableParametersArea(false), this.enableInteractivity()), t2.containsFrozenContent && null === this.uiFreezeCoordinator && (this.uiFreezeCoordinator = new Be(), this.controller.getViewMode() === e.ViewMode.Interactive && this.uiFreezeCoordinator.init(this.placeholder));
2670
2753
  }
2671
2754
  onReportAutoRunOff() {
2672
2755
  this.disableParametersArea(false), this.showNotification(this.messages.ReportViewer_AutoRunDisabled || "Please validate the report parameter values and press Preview to generate the report.");
@@ -2703,14 +2786,14 @@ var telerikReportViewer = (function (exports) {
2703
2786
  let t2 = this.controller.getScaleMode();
2704
2787
  return t2 === e.ScaleMode.FitPage || t2 === e.ScaleMode.FitPageWidth;
2705
2788
  }
2706
- onPrintStarted() {
2707
- this.showNotification(this.messages.ReportViewer_PreparingPrint);
2789
+ onPrintStarted(e2) {
2790
+ e2.handled || this.showNotification(this.messages.ReportViewer_PreparingPrint);
2708
2791
  }
2709
2792
  onPrintDocumentReady() {
2710
2793
  this.hideNotification();
2711
2794
  }
2712
- onExportStarted() {
2713
- this.showNotification(this.messages.ReportViewer_PreparingDownload);
2795
+ onExportStarted(e2) {
2796
+ e2.handled || this.showNotification(this.messages.ReportViewer_PreparingDownload);
2714
2797
  }
2715
2798
  onExportDocumentReady() {
2716
2799
  this.hideNotification();
@@ -2763,14 +2846,14 @@ var telerikReportViewer = (function (exports) {
2763
2846
  }
2764
2847
  let e3 = 0, i3 = 0;
2765
2848
  for (; n2 && n2 !== this.pageContainer; ) {
2766
- if (re(n2, "trv-page-wrapper")) {
2849
+ if (oe(n2, "trv-page-wrapper")) {
2767
2850
  let t3 = n2.dataset.pageScale;
2768
2851
  if ("string" == typeof t3) {
2769
2852
  let n3 = parseFloat(t3);
2770
2853
  e3 *= n3, i3 *= n3;
2771
2854
  }
2772
2855
  }
2773
- e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = se(n2);
2856
+ e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = ae(n2);
2774
2857
  }
2775
2858
  this.scrollManager.getEnabled() && t2 ? this.scrollManager.navigateToElement(e3, t2) : (this.pageContainer.scrollTop = e3, this.pageContainer.scrollLeft = i3);
2776
2859
  } else
@@ -2784,7 +2867,7 @@ var telerikReportViewer = (function (exports) {
2784
2867
  return !isNaN(t2) && t2 > -1 ? e2 : this.findNextFocusableElement(e2.nextElementSibling);
2785
2868
  }
2786
2869
  disablePagesArea(e2) {
2787
- e2 ? ie(this.placeholder, "trv-loading") : ne(this.placeholder, "trv-loading");
2870
+ e2 ? re(this.placeholder, "trv-loading") : se(this.placeholder, "trv-loading");
2788
2871
  }
2789
2872
  disableParametersArea(e2) {
2790
2873
  var t2, i2;
@@ -2795,13 +2878,13 @@ var telerikReportViewer = (function (exports) {
2795
2878
  }
2796
2879
  showNotification(e2 = "", t2 = "info") {
2797
2880
  let i2 = this.notification.dataset.type;
2798
- i2 && ne(this.notification, `k-notification-${i2}`), this.notification.dataset.type = t2;
2881
+ i2 && se(this.notification, `k-notification-${i2}`), this.notification.dataset.type = t2;
2799
2882
  let n2 = this.notification.querySelector(".k-notification-content, .trv-error-message"), r2 = null == e2 ? void 0 : e2.split(/\r?\n/);
2800
- n2.innerHTML = r2 && r2.length ? `${r2.join("<br>")}` : "Notification message not found.", ie(this.notification, `k-notification-${t2}`), ne(this.notification, "k-hidden");
2883
+ n2.innerHTML = r2 && r2.length ? `${r2.join("<br>")}` : "Notification message not found.", re(this.notification, `k-notification-${t2}`), se(this.notification, "k-hidden");
2801
2884
  }
2802
2885
  hideNotification() {
2803
2886
  let e2 = String(this.notification.dataset.type);
2804
- delete this.notification.dataset.type, ne(this.notification, `k-notification-${e2}`), ie(this.notification, "k-hidden");
2887
+ delete this.notification.dataset.type, se(this.notification, `k-notification-${e2}`), re(this.notification, "k-hidden");
2805
2888
  }
2806
2889
  pageNo(e2) {
2807
2890
  var t2;
@@ -2824,7 +2907,7 @@ var telerikReportViewer = (function (exports) {
2824
2907
  r2 = JSON.parse(n2.dataset.box);
2825
2908
  else {
2826
2909
  let e2 = getComputedStyle(n2), i3 = getComputedStyle(t2);
2827
- r2 = { padLeft: oe(i3.marginLeft) + oe(e2.borderLeftWidth) + oe(e2.paddingLeft), padRight: oe(i3.marginRight) + oe(e2.borderRightWidth) + oe(e2.paddingRight), padTop: oe(i3.marginTop) + oe(e2.borderTopWidth) + oe(e2.paddingTop), padBottom: oe(i3.marginBottom) + oe(e2.borderBottomWidth) + oe(e2.paddingBottom) }, n2.dataset.box = JSON.stringify(r2);
2910
+ r2 = { padLeft: le(i3.marginLeft) + le(e2.borderLeftWidth) + le(e2.paddingLeft), padRight: le(i3.marginRight) + le(e2.borderRightWidth) + le(e2.paddingRight), padTop: le(i3.marginTop) + le(e2.borderTopWidth) + le(e2.paddingTop), padBottom: le(i3.marginBottom) + le(e2.borderBottomWidth) + le(e2.paddingBottom) }, n2.dataset.box = JSON.stringify(r2);
2828
2911
  }
2829
2912
  let a2 = s2.offsetWidth, l2 = s2.offsetHeight;
2830
2913
  if (0 === a2) {
@@ -2833,13 +2916,13 @@ var telerikReportViewer = (function (exports) {
2833
2916
  }
2834
2917
  const h2 = this.controller.getScaleMode(), c2 = l2 > a2 && h2 === e.ScaleMode.FitPageWidth ? 20 : 0, d2 = (this.pageContainer.clientWidth - c2 - r2.padLeft - r2.padRight) / a2, u2 = (this.pageContainer.clientHeight - 1 - r2.padTop - r2.padBottom) / l2;
2835
2918
  let p2 = this.controller.getScale();
2836
- h2 === e.ScaleMode.FitPageWidth ? p2 = d2 : p2 && h2 !== e.ScaleMode.FitPage || (p2 = Math.min(d2, u2)), null !== this.uiFreezeCoordinator && this.uiFreezeCoordinator.setScaleFactor(p2), t2.dataset.pageScale = p2.toString(), n2.dataset.pageScale = p2.toString(), o2 || ae(s2, p2, p2), n2.style.height = p2 * l2 + "px", n2.style.width = p2 * a2 + "px", this.controller.setScale(p2, true);
2919
+ h2 === e.ScaleMode.FitPageWidth ? p2 = d2 : p2 && h2 !== e.ScaleMode.FitPage || (p2 = Math.min(d2, u2)), null !== this.uiFreezeCoordinator && this.uiFreezeCoordinator.setScaleFactor(p2), t2.dataset.pageScale = p2.toString(), n2.dataset.pageScale = p2.toString(), o2 || he(s2, p2, p2), n2.style.height = p2 * l2 + "px", n2.style.width = p2 * a2 + "px", this.controller.setScale(p2, true);
2837
2920
  }
2838
2921
  enableInteractivity() {
2839
- this.onClickHandler = this.onClick.bind(this), this.onMouseEnterHandler = this.onMouseEnter.bind(this), this.onMouseLeaveHandler = this.onMouseLeave.bind(this), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("mouseenter", this.onMouseEnterHandler, true), this.pageContainer.addEventListener("mouseleave", this.onMouseLeaveHandler, true);
2922
+ this.disableInteractivity(), this.onClickHandler = this.onClick.bind(this), this.onMouseEnterHandler = this.onMouseEnter.bind(this), this.onMouseLeaveHandler = this.onMouseLeave.bind(this), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("mouseenter", this.onMouseEnterHandler, true), this.pageContainer.addEventListener("mouseleave", this.onMouseLeaveHandler, true);
2840
2923
  }
2841
2924
  disableInteractivity() {
2842
- this.pageContainer.removeEventListener("click", this.onClickHandler), this.pageContainer.removeEventListener("mouseenter", this.onMouseEnterHandler), this.pageContainer.removeEventListener("mouseleave", this.onMouseLeaveHandler);
2925
+ this.onClickHandler && (this.pageContainer.removeEventListener("click", this.onClickHandler), this.onClickHandler = null), this.onMouseEnterHandler && (this.pageContainer.removeEventListener("mouseenter", this.onMouseEnterHandler, true), this.onMouseEnterHandler = null), this.onMouseLeaveHandler && (this.pageContainer.removeEventListener("mouseleave", this.onMouseLeaveHandler, true), this.onMouseLeaveHandler = null);
2843
2926
  }
2844
2927
  onClick(e2) {
2845
2928
  let t2 = e2.target.closest("[data-reporting-action]");
@@ -2870,10 +2953,10 @@ var telerikReportViewer = (function (exports) {
2870
2953
  }
2871
2954
  onToolTipItemEnter(e2, t2) {
2872
2955
  let i2 = e2.dataset.tooltipTitle, n2 = e2.dataset.tooltipText;
2873
- (i2 || n2) && this.controller.reportTooltipOpening(new p(e2, n2 || "", i2 || "", t2));
2956
+ (i2 || n2) && this.controller.reportTooltipOpening(new f(e2, n2 || "", i2 || "", t2));
2874
2957
  }
2875
2958
  onToolTipItemLeave(e2) {
2876
- this.controller.reportTooltipClosing(new p(e2, "", "", null));
2959
+ this.controller.reportTooltipClosing(new f(e2, "", "", null));
2877
2960
  }
2878
2961
  getNavigateToPageOnDocReady(e2, t2) {
2879
2962
  var i2;
@@ -2891,7 +2974,7 @@ var telerikReportViewer = (function (exports) {
2891
2974
  var t2;
2892
2975
  let i2 = "trv-" + this.controller.getClientId() + "-styles";
2893
2976
  null === (t2 = document.getElementById(i2)) || void 0 === t2 || t2.remove();
2894
- let n2 = te("style", i2);
2977
+ let n2 = ne("style", i2);
2895
2978
  n2.innerHTML = e2.pageStyles, document.head.appendChild(n2);
2896
2979
  }
2897
2980
  setPageContent(e2) {
@@ -2903,26 +2986,26 @@ var telerikReportViewer = (function (exports) {
2903
2986
  this.actions && this.actions.length ? this.actions = this.actions.concat(t2.pageActions) : this.actions = t2.pageActions, this.applyPlaceholderViewModeClass(), this.setPageDimensions(e2, t2.pageNumber);
2904
2987
  }
2905
2988
  renderPageElement(e2) {
2906
- let t2 = te("div");
2989
+ let t2 = ne("div");
2907
2990
  t2.innerHTML = e2.pageContent;
2908
2991
  let i2 = t2.querySelector("div.sheet");
2909
2992
  i2.style.margin = "0";
2910
- let n2 = te("div", "", "trv-report-page");
2911
- return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(te("div", "", "k-overlay trv-overlay trv-page-overlay")), n2;
2993
+ let n2 = ne("div", "", "trv-report-page");
2994
+ return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(ne("div", "", "k-overlay trv-overlay trv-page-overlay")), n2;
2912
2995
  }
2913
2996
  applyPlaceholderViewModeClass() {
2914
- this.controller.getViewMode() === e.ViewMode.Interactive ? (ne(this.placeholder, "printpreview"), ie(this.placeholder, "interactive")) : (ne(this.placeholder, "interactive"), ie(this.placeholder, "printpreview"));
2997
+ this.controller.getViewMode() === e.ViewMode.Interactive ? (se(this.placeholder, "printpreview"), re(this.placeholder, "interactive")) : (se(this.placeholder, "interactive"), re(this.placeholder, "printpreview"));
2915
2998
  }
2916
2999
  setPageAreaImage() {
2917
3000
  this.clearPageAreaImage();
2918
- let e2 = te("style", We);
2919
- e2.innerHTML = je('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}', [this.initialPageAreaImageUrl]), document.head.appendChild(e2), this.showPageAreaImage = true;
3001
+ let e2 = ne("style", We);
3002
+ e2.innerHTML = Ze('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}', [this.initialPageAreaImageUrl]), document.head.appendChild(e2), this.showPageAreaImage = true;
2920
3003
  }
2921
3004
  clearPageAreaImage() {
2922
3005
  var e2;
2923
3006
  null === (e2 = document.getElementById(We)) || void 0 === e2 || e2.remove();
2924
3007
  }
2925
- }, e.CurrentPageChangedEventArgs = u, e.DeviceInfo = n, e.DocumentInfo = class {
3008
+ }, e.CurrentPageChangedEventArgs = g, e.DeviceInfo = n, e.DocumentInfo = class {
2926
3009
  constructor() {
2927
3010
  this.documentReady = false, this.documentMapAvailable = false, this.containsFrozenContent = false, this.pageCount = 0, this.documentMapNodes = [], this.bookmarkNodes = [], this.renderingExtensions = [], this.autoRunEnabled = true;
2928
3011
  }
@@ -2930,7 +3013,7 @@ var telerikReportViewer = (function (exports) {
2930
3013
  constructor() {
2931
3014
  this.id = "", this.isExpanded = false, this.label = "", this.text = "", this.page = 0, this.items = [];
2932
3015
  }
2933
- }, e.EmailInfo = r, e.ExportDocumentReadyEventArgs = h, e.ExportStartEventArgs = a, e.ExportStartedEventArgs = l, e.KeepClientAliveSentinel = Z, e.NoAuth = P, e.PageAction = class {
3016
+ }, e.EmailInfo = r, e.ExportDocumentReadyEventArgs = h, e.ExportStartEventArgs = a, e.ExportStartedEventArgs = l, e.KeepClientAliveSentinel = X, e.NoAuth = y, e.PageAction = class {
2934
3017
  constructor() {
2935
3018
  this.Id = "", this.ReportItemName = "", this.Type = "", this.Value = {};
2936
3019
  }
@@ -2942,17 +3025,17 @@ var telerikReportViewer = (function (exports) {
2942
3025
  constructor() {
2943
3026
  this.name = "", this.type = "", this.text = "", this.multivalue = false, this.allowNull = false, this.allowBlank = false, this.isVisible = false, this.autoRefresh = false, this.hasChildParameters = false, this.childParameters = [], this.availableValues = [], this.value = "", this.id = "", this.label = "";
2944
3027
  }
2945
- }, e.ParameterValidators = Oe, e.ParameterValue = class {
3028
+ }, e.ParameterValidators = Ve, e.ParameterValue = class {
2946
3029
  constructor() {
2947
3030
  this.name = "", this.value = null;
2948
3031
  }
2949
- }, e.PersonalTokenAuth = y, e.PrintDocumentReadyEventArgs = d, e.PrintStartedEventArgs = c, e.RenderingExtension = class {
3032
+ }, e.PersonalTokenAuth = I, e.PrintDocumentReadyEventArgs = d, e.PrintStartedEventArgs = c, e.RenderingExtension = class {
2950
3033
  constructor() {
2951
3034
  this.name = "", this.localizedName = "";
2952
3035
  }
2953
- }, e.ReportController = class extends $ {
3036
+ }, e.ReportController = class extends B {
2954
3037
  constructor(e2, t2) {
2955
- super(), this.configurationInfo = null, this.keepClientAliveSentinel = null, this.registerClientPromise = null, this.registerInstancePromise = null, this.documentFormatsPromise = null, this.clientId = "", this.reportInstanceId = "", this.documentId = "", this.threadId = "", this.parameterValues = {}, this.bookmarkNodes = [], this.renderingExtensions = null, this.pageCount = 0, this.currentPageNumber = 0, this.clientHasExpired = false, this.cancelLoad = false, this.searchInitiated = false, this.aiPromptInitiated = false, this.contentTabIndex = 0, this.respectAutoRun = true, this.processedParameterValues = {}, this.options = t2, t2.reportSource && this.setParameters(t2.reportSource.parameters), this.printManager = new J(), this.serviceClient = e2, t2.authenticationToken && this.serviceClient.setAccessToken(t2.authenticationToken);
3038
+ super(), this.configurationInfo = null, this.keepClientAliveSentinel = null, this.registerClientPromise = null, this.registerInstancePromise = null, this.documentFormatsPromise = null, this.clientId = "", this.reportInstanceId = "", this.documentId = "", this.threadId = "", this.parameterValues = {}, this.bookmarkNodes = [], this.renderingExtensions = null, this.pageCount = 0, this.currentPageNumber = 0, this.clientHasExpired = false, this.cancelLoad = false, this.searchInitiated = false, this.aiPromptInitiated = false, this.contentTabIndex = 0, this.respectAutoRun = true, this.processedParameterValues = {}, this.options = t2, t2.reportSource && this.setParameters(t2.reportSource.parameters), this.printManager = new G(), this.serviceClient = e2, t2.authenticationToken && this.serviceClient.setAccessToken(t2.authenticationToken);
2956
3039
  }
2957
3040
  get autoRunEnabled() {
2958
3041
  var e2 = !this.parameterValues || !("trv_AutoRun" in this.parameterValues) || this.parameterValues.trv_AutoRun;
@@ -2996,7 +3079,7 @@ var telerikReportViewer = (function (exports) {
2996
3079
  let t2 = {}, i2 = [], n2 = false;
2997
3080
  for (let r2 of e2)
2998
3081
  try {
2999
- let e3 = Oe.validate(r2, r2.value);
3082
+ let e3 = Ve.validate(r2, r2.value);
3000
3083
  t2[r2.id] = e3;
3001
3084
  } catch (e3) {
3002
3085
  n2 = true, i2.push(r2);
@@ -3019,7 +3102,7 @@ var telerikReportViewer = (function (exports) {
3019
3102
  hasInvalidParameter(e2) {
3020
3103
  for (const t2 of e2)
3021
3104
  try {
3022
- Oe.validate(t2, t2.value);
3105
+ Ve.validate(t2, t2.value);
3023
3106
  } catch (e3) {
3024
3107
  return true;
3025
3108
  }
@@ -3096,7 +3179,7 @@ var telerikReportViewer = (function (exports) {
3096
3179
  return this.currentPageNumber;
3097
3180
  }
3098
3181
  setCurrentPageNumber(e2) {
3099
- this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new u(e2, this.documentId)));
3182
+ this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new g(e2, this.documentId)));
3100
3183
  }
3101
3184
  getPageCount() {
3102
3185
  return this.pageCount;
@@ -3106,8 +3189,13 @@ var telerikReportViewer = (function (exports) {
3106
3189
  }
3107
3190
  executeReportAction(e2) {
3108
3191
  let t2 = e2.action;
3109
- window.setTimeout(() => {
3110
- if (this.emit("interactiveActionExecuting", e2), !e2.cancel)
3192
+ window.setTimeout(() => i(this, void 0, void 0, function* () {
3193
+ try {
3194
+ yield this.emitAsync("interactiveActionExecuting", e2), this.emit("interactiveActionExecuting", e2);
3195
+ } catch (e3) {
3196
+ return void this.raiseError(e3 instanceof Error ? e3.message : String(e3));
3197
+ }
3198
+ if (!e2.cancel)
3111
3199
  if ("navigateToReport" === t2.Type) {
3112
3200
  this.emit("serverActionStarted");
3113
3201
  let e3 = t2.Value, i2 = this.fixDataContractJsonSerializer(e3.ParameterValues);
@@ -3124,7 +3212,7 @@ var telerikReportViewer = (function (exports) {
3124
3212
  window.open(e3.Url, e3.Target);
3125
3213
  } else
3126
3214
  t2.Type;
3127
- }, 0);
3215
+ }), 0);
3128
3216
  }
3129
3217
  reportActionEnter(e2) {
3130
3218
  this.emit("interactiveActionEnter", e2);
@@ -3133,7 +3221,13 @@ var telerikReportViewer = (function (exports) {
3133
3221
  this.emit("interactiveActionLeave", e2);
3134
3222
  }
3135
3223
  reportTooltipOpening(e2) {
3136
- this.emit("toolTipOpening", e2);
3224
+ return i(this, void 0, void 0, function* () {
3225
+ try {
3226
+ yield this.emitAsync("toolTipOpening", e2), this.emit("toolTipOpening", e2);
3227
+ } catch (e3) {
3228
+ this.raiseError(e3 instanceof Error ? e3.message : String(e3));
3229
+ }
3230
+ });
3137
3231
  }
3138
3232
  reportTooltipClosing(e2) {
3139
3233
  this.emit("toolTipClosing", e2);
@@ -3143,37 +3237,39 @@ var telerikReportViewer = (function (exports) {
3143
3237
  let e2 = this.createDeviceInfo();
3144
3238
  e2.ImmediatePrint = true;
3145
3239
  let t2 = new c(e2);
3146
- this.emit("printStarted", t2), t2.handled || (this.setUIState("PrintInProgress", true), this.exportAsync("PDF", e2).then((e3) => {
3240
+ yield this.emitAsync("printStarted", t2), this.emit("printStarted", t2), t2.handled || (this.setUIState("PrintInProgress", true), this.exportAsync("PDF", t2.deviceInfo).then((e3) => i(this, void 0, void 0, function* () {
3147
3241
  let t3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, e3);
3148
3242
  t3 += `?${"response-content-disposition=" + (this.getCanUsePlugin() ? "inline" : "attachment")}`;
3149
3243
  let i2 = new d(t3);
3150
- this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3);
3151
- }));
3244
+ yield this.emitAsync("printDocumentReady", i2), this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3);
3245
+ })));
3152
3246
  });
3153
3247
  }
3154
3248
  exportReport(e2) {
3155
3249
  return i(this, void 0, void 0, function* () {
3156
3250
  let t2 = this.createDeviceInfo(), n2 = new a(t2, e2);
3157
3251
  if (yield this.emitAsync("exportStart", n2), !n2.isCancelled) {
3158
- let r2 = new l(t2, e2);
3159
- if (this.emit("exportStarted", r2), r2.handled)
3252
+ let t3 = new l(n2.deviceInfo, n2.format);
3253
+ if (yield this.emitAsync("exportStarted", t3), this.emit("exportStarted", t3), t3.handled)
3160
3254
  return;
3161
- this.setUIState("ExportInProgress", true), this.exportAsync(e2, n2.deviceInfo).then((t3) => i(this, void 0, void 0, function* () {
3162
- let i2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t3);
3255
+ this.setUIState("ExportInProgress", true), this.exportAsync(t3.format, t3.deviceInfo).then((t4) => i(this, void 0, void 0, function* () {
3256
+ let i2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t4);
3163
3257
  i2 += "?response-content-disposition=attachment";
3164
3258
  let n3 = new h(i2, e2, "_self");
3165
- yield this.emitAsync("exportEnd", n3), this.emit("exportDocumentReady", n3), this.setUIState("ExportInProgress", false), n3.handled || window.open(i2, n3.windowOpenTarget);
3259
+ yield this.emitAsync("exportEnd", n3), yield this.emitAsync("exportDocumentReady", n3), this.emit("exportDocumentReady", n3), this.setUIState("ExportInProgress", false), n3.handled || window.open(i2, n3.windowOpenTarget);
3166
3260
  }));
3167
3261
  }
3168
3262
  });
3169
3263
  }
3170
3264
  sendReport(e2) {
3171
- let t2 = this.createDeviceInfo(), i2 = new Me(t2, e2.format);
3172
- this.emit("sendEmailStarted", i2), i2.handled || this.exportAsync(e2.format, t2).then((i3) => {
3173
- let n2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, i3);
3174
- n2 += "?response-content-disposition=attachment";
3175
- let r2 = new xe(e2, t2, n2);
3176
- this.emit("sendEmailDocumentReady", r2), r2.handled || this.sendDocumentAsync(i3, e2);
3265
+ return i(this, void 0, void 0, function* () {
3266
+ let t2 = this.createDeviceInfo(), n2 = new u(t2, e2.format);
3267
+ yield this.emitAsync("sendEmailStarted", n2), this.emit("sendEmailStarted", n2), n2.handled || this.exportAsync(e2.format, n2.deviceInfo).then((t3) => i(this, void 0, void 0, function* () {
3268
+ let i2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t3);
3269
+ i2 += "?response-content-disposition=attachment";
3270
+ let r2 = new p(e2, n2.deviceInfo, i2);
3271
+ yield this.emitAsync("sendEmailDocumentReady", r2), this.emit("sendEmailDocumentReady", r2), r2.handled || this.sendDocumentAsync(t3, r2);
3272
+ }));
3177
3273
  });
3178
3274
  }
3179
3275
  getSearchResults(e2) {
@@ -3197,7 +3293,7 @@ var telerikReportViewer = (function (exports) {
3197
3293
  }
3198
3294
  sendDocumentAsync(e2, t2) {
3199
3295
  return this.serviceClient.sendDocument(this.clientId, this.reportInstanceId, e2, t2).catch((e3) => {
3200
- this.handleRequestError(e3, be(this.options.messages.ReportViewer_ErrorSendingDocument, le(this.getReport())));
3296
+ this.handleRequestError(e3, Le(this.options.messages.ReportViewer_ErrorSendingDocument, ce(this.getReport())));
3201
3297
  });
3202
3298
  }
3203
3299
  loadParameters(e2 = void 0) {
@@ -3210,7 +3306,7 @@ var telerikReportViewer = (function (exports) {
3210
3306
  }
3211
3307
  initializeAndStartSentinel() {
3212
3308
  this.options.keepClientAlive && this.clientId && this.serviceClient.getClientsSessionTimeoutSeconds().then((e2) => {
3213
- this.keepClientAliveSentinel = new Z(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
3309
+ this.keepClientAliveSentinel = new X(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
3214
3310
  });
3215
3311
  }
3216
3312
  stopSentinel() {
@@ -3235,7 +3331,7 @@ var telerikReportViewer = (function (exports) {
3235
3331
  this.pageCount = 0, this.currentPageNumber = 0;
3236
3332
  }
3237
3333
  handleSearchRequestError(e2) {
3238
- if (!Ce(e2, "System.ArgumentException"))
3334
+ if (!Se(e2, "System.ArgumentException"))
3239
3335
  throw this.handleRequestError(e2, "", true), null;
3240
3336
  this.throwPromiseError(e2);
3241
3337
  }
@@ -3243,8 +3339,8 @@ var telerikReportViewer = (function (exports) {
3243
3339
  throw e2.exceptionMessage ? e2.exceptionMessage : this.options.messages.ReportViewer_PromisesChainStopError;
3244
3340
  }
3245
3341
  handleRequestError(e2, t2 = "", i2 = false) {
3246
- ye(e2) && this.onClientExpired();
3247
- let n2 = Ie(e2.error) ? "" : e2.error, r2 = this.formatRequestError(e2, n2, t2);
3342
+ Ie(e2) && this.onClientExpired();
3343
+ let n2 = we(e2.error) ? "" : e2.error, r2 = this.formatRequestError(e2, n2, t2);
3248
3344
  this.raiseError(r2), i2 || this.throwPromiseError(e2);
3249
3345
  }
3250
3346
  formatRequestError(e2, t2, i2) {
@@ -3252,14 +3348,14 @@ var telerikReportViewer = (function (exports) {
3252
3348
  if (n2) {
3253
3349
  if (401 == n2.status || 403 == n2.status)
3254
3350
  return this.options.messages.ReportViewer_ErrorUnauthorizedOrForbidden || "You don't have permission to access this report document.";
3255
- if (Se(e2))
3351
+ if (be(e2))
3256
3352
  return this.options.messages.ReportViewer_MissingOrInvalidParameter;
3257
- r2 = le(n2.message);
3258
- let t3 = le(n2.exceptionMessage || n2.ExceptionMessage || n2.error_description);
3353
+ r2 = ce(n2.message);
3354
+ let t3 = ce(n2.exceptionMessage || n2.ExceptionMessage || n2.error_description);
3259
3355
  t3 && (r2 ? r2 += " " + t3 : r2 = t3);
3260
3356
  } else
3261
- r2 = le(e2.responseText);
3262
- return (i2 || t2) && (r2 && (r2 = " " + r2), r2 = le(i2 || t2) + r2), ye(e2) && (r2 += "<br />" + this.options.messages.ReportViewer_ClientExpired), r2;
3357
+ r2 = ce(e2.responseText);
3358
+ return (i2 || t2) && (r2 && (r2 = " " + r2), r2 = ce(i2 || t2) + r2), Ie(e2) && (r2 += "<br />" + this.options.messages.ReportViewer_ClientExpired), r2;
3263
3359
  }
3264
3360
  raiseError(e2, t2 = true) {
3265
3361
  this.emit("error", e2, t2);
@@ -3272,7 +3368,7 @@ var telerikReportViewer = (function (exports) {
3272
3368
  }
3273
3369
  initializeClient() {
3274
3370
  return this.registerClientPromise || (this.registerClientPromise = this.serviceClient.registerClient().catch((e2) => {
3275
- const t2 = be(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
3371
+ const t2 = Le(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
3276
3372
  this.handleRequestError(e2, t2);
3277
3373
  }).then(this.setClientId.bind(this)).catch(this.clearClientId.bind(this))), this.registerClientPromise;
3278
3374
  }
@@ -3282,7 +3378,7 @@ var telerikReportViewer = (function (exports) {
3282
3378
  registerDocumentAsync(e2, t2, n2) {
3283
3379
  return i(this, arguments, void 0, function* (e3, t3, i2, n3 = "", r2 = "") {
3284
3380
  return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e3, t3, !i2, n3, r2).catch((t4) => {
3285
- this.handleRequestError(t4, be(this.options.messages.ReportViewer_ErrorCreatingReportDocument, le(this.getReport()), le(e3)));
3381
+ this.handleRequestError(t4, Le(this.options.messages.ReportViewer_ErrorCreatingReportDocument, ce(this.getReport()), ce(e3)));
3286
3382
  })) || "";
3287
3383
  });
3288
3384
  }
@@ -3320,7 +3416,7 @@ var telerikReportViewer = (function (exports) {
3320
3416
  const e2 = {}, t2 = this.getProcessedParameterValues();
3321
3417
  for (let i2 in t2) {
3322
3418
  const n2 = t2[i2], r2 = this.parameterValues[i2];
3323
- n2 && n2.availableValues ? n2.multivalue ? e2[i2] = ze(n2, r2, i2) : e2[i2] = Ve(n2, r2, i2) : e2[i2] = r2;
3419
+ n2 && n2.availableValues ? n2.multivalue ? e2[i2] = ze(n2, r2, i2) : e2[i2] = Oe(n2, r2, i2) : e2[i2] = r2;
3324
3420
  }
3325
3421
  return e2;
3326
3422
  }
@@ -3441,6 +3537,19 @@ ${e3.text} (${e3.id})`;
3441
3537
  var e2, t2;
3442
3538
  return !(null === (t2 = null === (e2 = this.configurationInfo) || void 0 === e2 ? void 0 : e2.license) || void 0 === t2 ? void 0 : t2.isValid);
3443
3539
  }
3540
+ getBannerIconFromId(e2) {
3541
+ switch (e2) {
3542
+ case 0:
3543
+ default:
3544
+ return '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path\n fillRule="evenodd"\n clipRule="evenodd"\n d="M22.702 2.1821C24.3149 2.51082 25.8077 3.27291 27.0199 4.38645C28.2321 5.49999 29.1179 6.92286 29.582 8.5021C30.012 9.9501 30.076 11.4821 29.768 12.9621C29.3228 14.9898 28.2025 16.8063 26.5904 18.1143C24.9783 19.4223 22.9699 20.1443 20.894 20.1621C20.018 20.1621 19.146 20.0361 18.308 19.7821L16.708 21.6581L15.95 22.0081H14V25.0081L13 26.0081H10V29.0081L9 30.0081H3L2 29.0081V24.3941L2.292 23.6881L12.24 13.7401C11.9577 12.8308 11.8226 11.8821 11.84 10.9301C11.8582 9.59817 12.1701 8.28666 12.7533 7.08907C13.3365 5.89147 14.1767 4.83728 15.214 4.00164C16.2514 3.166 17.4603 2.56949 18.7546 2.25464C20.0489 1.93978 21.3967 1.91633 22.702 2.1821ZM25.338 16.5821C26.5944 15.5647 27.4681 14.1509 27.816 12.5721L27.824 12.5821C28.0718 11.4277 28.0272 10.2297 27.6943 9.09691C27.3614 7.96412 26.7507 6.93248 25.9177 6.09572C25.0847 5.25896 24.0558 4.64361 22.9246 4.30557C21.7933 3.96753 20.5955 3.91753 19.44 4.1601C17.8816 4.506 16.4837 5.36334 15.4688 6.59561C14.454 7.82789 13.8806 9.36426 13.84 10.9601C13.82 11.8721 13.98 12.7761 14.318 13.6201L14.098 14.7061L4 24.8081V28.0081H8V25.0081L9 24.0081H12V21.0081L13 20.0081H15.49L17.242 17.9761L18.364 17.6961C19.1728 18.0121 20.0337 18.1736 20.902 18.1721C22.5181 18.1597 24.082 17.5991 25.338 16.5821ZM23.662 11.1181C23.8197 10.9002 23.9318 10.6527 23.9916 10.3905C24.0515 10.1283 24.0578 9.85665 24.0103 9.59192C23.9627 9.32718 23.8622 9.07476 23.7148 8.84975C23.5675 8.62474 23.3762 8.43177 23.1526 8.28238C22.9289 8.133 22.6774 8.03026 22.4131 7.98033C22.1488 7.93039 21.8771 7.93428 21.6144 7.99176C21.3516 8.04925 21.1031 8.15914 20.8838 8.31487C20.6645 8.4706 20.4789 8.66896 20.338 8.8981C20.067 9.33887 19.9774 9.86752 20.088 10.373C20.1985 10.8784 20.5007 11.3214 20.931 11.6087C21.3613 11.8961 21.8862 12.0055 22.3954 11.914C22.9047 11.8226 23.3587 11.5373 23.662 11.1181Z"\n fill="black"\n />\n <path\n d="M23.1299 16.0186L31.1387 31.0273L31.0068 31.25H14.9932L14.8604 31.0273L22.8955 16.0186H23.1299Z"\n fill="#FFC000"\n stroke="black"\n strokeWidth="1.5"\n />\n <rect x="22.25" y="21.2686" width="1.5" height="5" rx="0.75" fill="black" />\n <path\n d="M24 28.2686C24 27.7163 23.5523 27.2686 23 27.2686C22.4479 27.2687 22 27.7164 22 28.2686C22 28.8207 22.4479 29.2684 23 29.2686C23.5523 29.2686 24 28.8208 24 28.2686Z"\n fill="black"\n />\n </svg>';
3545
+ case 1:
3546
+ return '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path\n fillRule="evenodd"\n clipRule="evenodd"\n d="M18.5631 11.7812H10.4369L14.5 21.2619L18.5631 11.7812ZM18.5631 9.96875H10.4369L12.3788 5.4375H16.6212L18.5631 9.96875ZM20.5351 11.7812L17.2221 19.5116L23.9861 11.7812H20.5351ZM20.5351 9.96875L18.5931 5.4375H20.8437L24.2422 9.96875H20.5351ZM8.46492 9.96875L10.4069 5.4375H8.15625L4.75781 9.96875H8.46492ZM11.7779 19.5116L8.46492 11.7812H5.01386L11.7779 19.5116ZM27.1875 10.875L14.5 25.375L1.8125 10.875L7.25 3.625H21.75L27.1875 10.875Z"\n fill="black"\n />\n <path\n d="M23.0996 15.7998L31.0811 30.7578L30.9785 30.9316H15.0215L14.918 30.7578L22.9258 15.7998H23.0996Z"\n fill="#FFC000"\n stroke="black"\n strokeWidth="1.6"\n />\n <rect x="22.25" y="21" width="1.5" height="5" rx="0.75" fill="black" />\n <path\n d="M24 28C24 27.4477 23.5523 27 23 27C22.4479 27.0002 22 27.4478 22 28C22 28.5522 22.4479 28.9998 23 29C23.5523 29 24 28.5523 24 28Z"\n fill="black"\n />\n </svg>';
3547
+ case 2:
3548
+ return '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M27.8295 9.38659C28.8049 12.1653 28.7404 15.1391 27.774 17.7996C26.8014 20.4767 24.9215 22.8356 22.2691 24.367C19.7765 25.8061 16.9908 26.2908 14.3393 25.9323C11.6293 25.5682 9.06228 24.3215 7.08577 22.3155L8.23679 21.1826C9.95578 22.9294 12.1925 24.0142 14.5527 24.333C16.8583 24.6438 19.2821 24.2206 21.457 22.965C23.7719 21.6284 25.4118 19.5739 26.2565 17.2495C27.0643 15.0253 27.1474 12.5486 26.3976 10.2107L24.951 11.0459L25.5942 7.15112L29.2888 8.54145L27.8284 9.38462L27.8295 9.38659Z"\n fill="black"\n />\n <path\n fillRule="evenodd"\n clipRule="evenodd"\n d="M16.3594 8.08301C17.1842 8.16959 17.8382 8.41741 18.3281 8.8252C18.8135 9.2331 19.1263 9.78023 19.2607 10.4639L17.2939 10.6875C17.1732 10.1497 16.8607 9.78518 16.3594 9.59375V12.2617C17.6035 12.5557 18.4514 12.9408 18.9004 13.4102C19.3516 13.8819 19.5771 14.4863 19.5771 15.2246C19.5771 16.0494 19.2949 16.7425 18.7275 17.3076C18.1601 17.8728 17.3712 18.2233 16.3594 18.3623V19.6387H15.2334V18.3779C14.3448 18.2822 13.6246 17.9934 13.0664 17.5059C12.5081 17.0182 12.155 16.3275 12 15.4365L14.0127 15.2266C14.0947 15.5912 14.2497 15.9036 14.4775 16.168C14.7053 16.4321 14.9555 16.6218 15.2334 16.7402V13.8799C14.2264 13.6247 13.4906 13.2395 13.0234 12.7246C12.554 12.2073 12.3164 11.5801 12.3164 10.8418C12.3165 10.0946 12.5834 9.46575 13.1143 8.95996C13.6452 8.45184 14.3516 8.16053 15.2334 8.08301V7C15.6731 7 15.9197 7 16.3594 7V8.08301ZM16.3574 16.8535H16.3594C16.7467 16.7783 17.0661 16.6149 17.3076 16.3643C17.5537 16.1113 17.6738 15.8147 17.6738 15.4707C17.6738 15.1677 17.5715 14.9033 17.3643 14.6846C17.1615 14.4636 16.8267 14.2943 16.3574 14.1758V16.8535ZM15.2334 9.56836C14.9304 9.66408 14.6911 9.82132 14.5156 10.04C14.3379 10.2588 14.252 10.5004 14.252 10.7646C14.252 11.0062 14.3314 11.2301 14.4932 11.4375C14.655 11.6424 14.9038 11.8113 15.2363 11.9365V9.56836H15.2334Z"\n fill="black"\n />\n <path\n d="M2.71127 18.5075L4.18352 17.6575C3.21672 14.9028 3.27173 11.9581 4.21167 9.31563C5.17535 6.60942 7.06671 4.22018 9.74281 2.67513C12.0972 1.31581 14.709 0.807832 17.2232 1.05612C19.8041 1.3106 22.2798 2.36266 24.2693 4.10853L23.7361 4.71636L23.2029 5.32418C23.1532 5.27918 23.1016 5.23531 23.0511 5.19342C21.3484 3.75295 19.2504 2.88549 17.0678 2.66937C14.8802 2.45355 12.6065 2.89529 10.5561 4.07914C8.2194 5.42821 6.56974 7.50687 5.7328 9.85834C4.94555 12.068 4.87307 14.5175 5.61235 16.8326L6.69304 16.2087L6.98491 16.4014L6.40585 19.8979L2.71127 18.5075Z"\n fill="black"\n />\n <path\n d="M23.0996 15.7998L31.0811 30.7578L30.9785 30.9316H15.0215L14.918 30.7578L22.9258 15.7998H23.0996Z"\n fill="#FFC000"\n stroke="black"\n strokeWidth="1.6"\n />\n <rect x="22.25" y="21" width="1.5" height="5" rx="0.75" fill="black" />\n <path\n d="M24 28C24 27.4477 23.5523 27 23 27C22.4479 27.0002 22 27.4478 22 28C22 28.5522 22.4479 28.9998 23 29C23.5523 29 24 28.5523 24 28Z"\n fill="black"\n />\n </svg>';
3549
+ case 3:
3550
+ return '<svg width="38" height="38" viewBox="0 0 38 38" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clipPath="url(#clip0_1_5398)">\n <path\n d="M24.9056 7.60146L34.4998 10.1722L31.9299 19.7659L13.7653 30.2532L6.7419 18.0883L24.9056 7.60146Z"\n stroke="black"\n strokeWidth="1.75"\n />\n <path\n d="M13.0913 19.7635L15.4762 23.8942L14.6279 24.384L12.2431 20.2533L13.0913 19.7635ZM14.3623 19.0297L14.7473 19.6964L11.3769 21.6423L10.992 20.9756L14.3623 19.0297ZM14.8475 18.7496L16.388 17.8602C16.7038 17.6778 17.0025 17.5684 17.2841 17.532C17.5675 17.4944 17.8242 17.5328 18.0542 17.6472C18.2841 17.7616 18.4772 17.954 18.6333 18.2244C18.7611 18.4457 18.833 18.6576 18.8491 18.8602C18.866 19.0598 18.8369 19.2518 18.7619 19.4364C18.6876 19.6179 18.5778 19.7923 18.4322 19.9596L18.2446 20.257L16.9055 21.0301L16.5166 20.3695L17.5124 19.7946C17.6618 19.7083 17.7704 19.6103 17.8381 19.5006C17.9059 19.3909 17.9371 19.2745 17.9317 19.1516C17.9281 19.0275 17.8903 18.9031 17.8183 18.7782C17.7418 18.6458 17.6512 18.5456 17.5463 18.4775C17.4415 18.4095 17.3242 18.3788 17.1944 18.3857C17.0647 18.3925 16.9242 18.4395 16.7729 18.5269L16.0835 18.9249L18.0834 22.3889L17.2323 22.8803L14.8475 18.7496ZM19.5417 21.547L17.5367 20.2496L18.4328 19.7247L20.4294 20.9815L20.4523 21.0212L19.5417 21.547ZM19.4746 16.0781L21.8595 20.2088L21.0112 20.6986L18.6264 16.5679L19.4746 16.0781ZM22.4103 15.3251L23.2638 19.398L22.3588 19.9205L21.5088 14.9037L22.0847 14.5712L22.4103 15.3251ZM25.3207 18.2105L22.2174 15.4365L21.7187 14.7825L22.3003 14.4467L26.2285 17.6864L25.3207 18.2105ZM24.3818 16.7023L24.7668 17.369L22.5851 18.6286L22.2002 17.9619L24.3818 16.7023ZM28.8837 15.2683L29.267 15.9321L27.1874 17.1327L26.8041 16.4689L28.8837 15.2683ZM25.0778 12.8432L27.4626 16.9739L26.6115 17.4652L24.2267 13.3345L25.0778 12.8432Z"\n fill="black"\n />\n <circle cx="30.1049" cy="12.7084" r="1.12128" transform="rotate(15 30.1049 12.7084)" fill="black" />\n </g>\n <path\n d="M27.6201 19.7998L35.6016 34.7578L35.499 34.9316H19.542L19.4385 34.7578L27.4463 19.7998H27.6201Z"\n fill="#FFC000"\n stroke="black"\n strokeWidth="1.6"\n />\n <rect x="26.7705" y="25" width="1.5" height="5" rx="0.75" fill="black" />\n <path\n d="M28.5205 32C28.5205 31.4477 28.0728 31 27.5205 31C26.9684 31.0002 26.5205 31.4478 26.5205 32C26.5205 32.5522 26.9684 32.9998 27.5205 33C28.0728 33 28.5205 32.5523 28.5205 32Z"\n fill="black"\n />\n <defs>\n <clipPath id="clip0_1_5398">\n <rect width="30" height="31.1538" fill="white" transform="translate(8.06323) rotate(15)" />\n </clipPath>\n </defs>\n </svg>';
3551
+ }
3552
+ }
3444
3553
  saveToSessionStorage(e2, t2) {
3445
3554
  sessionStorage.setItem(e2, t2);
3446
3555
  }
@@ -3465,13 +3574,13 @@ ${e3.text} (${e3.id})`;
3465
3574
  constructor(e2, t2) {
3466
3575
  this.url = e2, this.getPersonalAccessToken = t2;
3467
3576
  }
3468
- }, e.ReportSourceOptions = _e, e.RequestError = g, e.SearchInfo = class {
3577
+ }, e.ReportSourceOptions = _e, e.RequestError = m, e.SearchInfo = class {
3469
3578
  constructor() {
3470
3579
  this.searchToken = "", this.matchCase = false, this.matchWholeWord = false, this.useRegularExpressions = false;
3471
3580
  }
3472
- }, e.SearchManager = class extends $ {
3581
+ }, e.SearchManager = class extends B {
3473
3582
  constructor(e2, t2) {
3474
- super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer = ge(e2, ".trv-page-container"), this.controller.on("applySearchColors", this.applySearchColors.bind(this)).on("pageReady", this.applySearchColors.bind(this));
3583
+ super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer = me(e2, ".trv-page-container"), this.controller.on("applySearchColors", this.applySearchColors.bind(this)).on("pageReady", this.applySearchColors.bind(this));
3475
3584
  }
3476
3585
  search(e2) {
3477
3586
  this.isActive = true, this.clearColoredItems(), this.searchResults = [], e2.searchToken && "" !== e2.searchToken ? this.controller.getSearchResults(e2).then(this.onSearchComplete.bind(this)) : this.onSearchComplete([]);
@@ -3480,15 +3589,15 @@ ${e3.text} (${e3.id})`;
3480
3589
  this.isActive = false, this.clearColoredItems(), this.searchResults = [];
3481
3590
  }
3482
3591
  highlightSearchItem(t2) {
3483
- t2 && (this.currentHighlightedElement && (ne(this.currentHighlightedElement, Ge), ie(this.currentHighlightedElement, Je)), t2.page === this.controller.getCurrentPageNumber() ? this.highlightItem(t2) : this.controller.getPageMode() === e.PageMode.SinglePage ? this.clearColoredItems() : this.highlightItem(t2), this.pendingHighlightItem = t2, this.navigateToPage(t2));
3592
+ t2 && (this.currentHighlightedElement && (se(this.currentHighlightedElement, Je), re(this.currentHighlightedElement, je)), t2.page === this.controller.getCurrentPageNumber() ? this.highlightItem(t2) : this.controller.getPageMode() === e.PageMode.SinglePage ? this.clearColoredItems() : this.highlightItem(t2), this.pendingHighlightItem = t2, this.navigateToPage(t2));
3484
3593
  }
3485
3594
  navigateToPage(e2) {
3486
3595
  this.controller.navigateToPage(e2.page, new o(e2.id, "search"));
3487
3596
  }
3488
3597
  colorPageElements(e2) {
3489
3598
  e2 && 0 !== e2.length && (e2.forEach((e3) => {
3490
- let t2 = ge(this.pageContainer, "[data-search-id=" + e3.id + "]");
3491
- t2 && (ie(t2, Je), this.highlightedElements.push(t2));
3599
+ let t2 = me(this.pageContainer, "[data-search-id=" + e3.id + "]");
3600
+ t2 && (re(t2, je), this.highlightedElements.push(t2));
3492
3601
  }), this.highlightItem(this.pendingHighlightItem));
3493
3602
  }
3494
3603
  highlightItem(e2) {
@@ -3496,13 +3605,13 @@ ${e3.text} (${e3.id})`;
3496
3605
  let t2 = this.highlightedElements.find(function(t3) {
3497
3606
  return t3.dataset.searchId === e2.id;
3498
3607
  });
3499
- t2 && (this.currentHighlightedElement = t2, ne(t2, Je), ie(t2, Ge));
3608
+ t2 && (this.currentHighlightedElement = t2, se(t2, je), re(t2, Je));
3500
3609
  }
3501
3610
  }
3502
3611
  clearColoredItems() {
3503
3612
  this.highlightedElements && this.highlightedElements.length > 0 && this.highlightedElements.forEach((e2) => {
3504
- ne(e2, Je);
3505
- }), this.currentHighlightedElement && ne(this.currentHighlightedElement, Ge), this.highlightedElements = [], this.currentHighlightedElement = null;
3613
+ se(e2, je);
3614
+ }), this.currentHighlightedElement && se(this.currentHighlightedElement, Je), this.highlightedElements = [], this.currentHighlightedElement = null;
3506
3615
  }
3507
3616
  applySearchColors() {
3508
3617
  this.isActive && this.colorPageElements(this.searchResults);
@@ -3514,23 +3623,23 @@ ${e3.text} (${e3.id})`;
3514
3623
  constructor() {
3515
3624
  this.description = "", this.id = "", this.page = 0;
3516
3625
  }
3517
- }, e.ServiceClient = class {
3626
+ }, e.SendEmailDocumentReadyEventArgs = p, e.SendEmailStartedEventArgs = u, e.ServiceClient = class {
3518
3627
  constructor(e2) {
3519
3628
  this.connectionConfig = this.getConnectionConfig(e2), this.authStrategy = this.getAuthStrategy(this.connectionConfig);
3520
3629
  }
3521
3630
  getConnectionConfig(e2) {
3522
- return e2.reportServer && e2.reportServer.url && e2.reportServer.username && e2.reportServer.password ? new A(e2.reportServer.url, e2.reportServer.username, e2.reportServer.password) : e2.reportServer && e2.reportServer.url && e2.reportServer.getPersonalAccessToken ? new R(e2.reportServer.url, e2.reportServer.getPersonalAccessToken) : e2.reportServer && e2.reportServer.url ? new T(e2.reportServer.url) : e2.serverPreview && e2.serverShareToken ? new R("", () => Promise.resolve(e2.serverShareToken)) : new w(e2.serviceUrl);
3631
+ return e2.reportServer && e2.reportServer.url && e2.reportServer.username && e2.reportServer.password ? new R(e2.reportServer.url, e2.reportServer.username, e2.reportServer.password) : e2.reportServer && e2.reportServer.url && e2.reportServer.getPersonalAccessToken ? new E(e2.reportServer.url, e2.reportServer.getPersonalAccessToken) : e2.reportServer && e2.reportServer.url ? new A(e2.reportServer.url) : e2.serverPreview && e2.serverShareToken ? new E("", () => Promise.resolve(e2.serverShareToken)) : new T(e2.serviceUrl);
3523
3632
  }
3524
3633
  getAuthStrategy(t2) {
3525
3634
  switch (t2.authType) {
3526
3635
  case e.AuthType.None:
3527
- return new P();
3636
+ return new y();
3528
3637
  case e.AuthType.Basic:
3529
- return new C(t2);
3638
+ return new S(t2);
3530
3639
  case e.AuthType.PersonalToken:
3531
- return new y(t2);
3640
+ return new I(t2);
3532
3641
  default:
3533
- return new P();
3642
+ return new y();
3534
3643
  }
3535
3644
  }
3536
3645
  validateClientID(e2) {
@@ -3539,15 +3648,15 @@ ${e3.text} (${e3.id})`;
3539
3648
  }
3540
3649
  authenticatedGet(e2) {
3541
3650
  return this.login().then((t2) => (null == t2 ? void 0 : t2.expiresAt) < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, t2.refreshToken), this.authenticatedGet(e2)) : function(e3, t3) {
3542
- return fetch(e3, { headers: m(t3) }).then(f);
3651
+ return fetch(e3, { headers: v(t3) }).then(P);
3543
3652
  }(e2, t2.access_token || t2.accessToken));
3544
3653
  }
3545
3654
  authenticatedPost(e2, t2) {
3546
- return this.login().then((i2) => (null == i2 ? void 0 : i2.expiresAt) < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, i2.refreshToken), this.authenticatedPost(e2, t2)) : v(e2, t2, i2.access_token || i2.accessToken));
3655
+ return this.login().then((i2) => (null == i2 ? void 0 : i2.expiresAt) < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, i2.refreshToken), this.authenticatedPost(e2, t2)) : C(e2, t2, i2.access_token || i2.accessToken));
3547
3656
  }
3548
3657
  authenticatedDelete(e2) {
3549
3658
  return this.login().then((t2) => t2.expiresAt < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, t2.refreshToken), this.authenticatedDelete(e2)) : function(e3, t3) {
3550
- return fetch(e3, { method: "DELETE", headers: m(t3) }).then(f);
3659
+ return fetch(e3, { method: "DELETE", headers: v(t3) }).then(P);
3551
3660
  }(e2, t2.access_token || t2.accessToken));
3552
3661
  }
3553
3662
  login() {
@@ -3631,15 +3740,15 @@ ${e3.text} (${e3.id})`;
3631
3740
  return e2.clientSessionTimeout;
3632
3741
  });
3633
3742
  }
3634
- }, e.TooltipEventArgs = p, e.addClass = ie, e.appendHtml = ue, e.createElement = te, e.debounce = ve, e.each = we, e.escapeHtml = le, e.findElement = ge, e.getColorAlphaValue = de, e.getElementAttributeValue = me, e.getElementScrollParent = fe, e.getOffsetParent = se, e.hasClass = re, e.isArray = Te, e.isExceptionOfType = Ce, e.isInternalServerError = Ie, e.isInvalidClientException = ye, e.isInvalidParameterException = Se, e.isRgbColor = ce, e.keepElementInView = function(e2) {
3743
+ }, e.TooltipEventArgs = f, e.addClass = re, e.appendHtml = ge, e.createElement = ne, e.debounce = Ce, e.each = Te, e.escapeHtml = ce, e.findElement = me, e.getColorAlphaValue = pe, e.getElementAttributeValue = ve, e.getElementScrollParent = Pe, e.getOffsetParent = ae, e.hasClass = oe, e.isArray = Ae, e.isExceptionOfType = Se, e.isInternalServerError = we, e.isInvalidClientException = Ie, e.isInvalidParameterException = be, e.isRgbColor = ue, e.keepElementInView = function(e2) {
3635
3744
  if (!e2)
3636
3745
  return;
3637
- let t2 = fe(e2);
3746
+ let t2 = Pe(e2);
3638
3747
  if (!t2)
3639
3748
  return;
3640
3749
  let i2 = e2.offsetTop, n2 = i2 + e2.offsetHeight, r2 = t2.scrollTop + t2.offsetHeight;
3641
3750
  i2 < t2.scrollTop ? t2.scrollTop = i2 : n2 > r2 && (t2.scrollTop += n2 - r2);
3642
- }, e.parseToLocalDate = Ee, e.prependHtml = pe, e.removeClass = ne, e.reportSourcesAreEqual = function(e2) {
3751
+ }, e.parseToLocalDate = Me, e.prependHtml = fe, e.removeClass = se, e.reportSourcesAreEqual = function(e2) {
3643
3752
  const t2 = e2.firstReportSource, i2 = e2.secondReportSource;
3644
3753
  if (t2 && i2 && t2.report === i2.report) {
3645
3754
  let e3 = "";
@@ -3648,7 +3757,7 @@ ${e3.text} (${e3.id})`;
3648
3757
  return i2.parameters && (n2 = JSON.stringify(i2.parameters)), e3 === n2;
3649
3758
  }
3650
3759
  return false;
3651
- }, e.scaleElement = ae, e.stringFormat = be, e.throttle = Pe, e.toPixel = oe, e.toRgbColor = he, e.tryParseFloat = Re, e.tryParseInt = Ae;
3760
+ }, e.scaleElement = he, e.stringFormat = Le, e.throttle = ye, e.toPixel = le, e.toRgbColor = de, e.tryParseFloat = Ee, e.tryParseInt = Re;
3652
3761
  });
3653
3762
  })(dist, dist.exports);
3654
3763
  var distExports = dist.exports;
@@ -7282,11 +7391,11 @@ ${e3.text} (${e3.id})`;
7282
7391
  navigatable: true,
7283
7392
  dataSource: [],
7284
7393
  contentElement: "",
7285
- template: `
7394
+ template: (data) => `
7286
7395
  <div class="k-list-item !k-align-items-start">
7287
- <span class="k-list-item-text">#: description #</span>
7396
+ <span class="k-list-item-text">${kendo.htmlEncode(data.description)}</span>
7288
7397
  <span class="k-flex"></span>
7289
- <span class="k-flex-none">${stringResources.searchDialogPageText} #:page#</span>
7398
+ <span class="k-flex-none">${stringResources.searchDialogPageText} ${kendo.htmlEncode(data.page)}</span>
7290
7399
  </div>
7291
7400
  `.trim(),
7292
7401
  change: (event) => {
@@ -9093,7 +9202,7 @@ ${e3.text} (${e3.id})`;
9093
9202
  if (!validateOptions(options)) {
9094
9203
  return;
9095
9204
  }
9096
- var version = "20.0.26.424";
9205
+ var version = "20.1.26.520";
9097
9206
  options = $.extend({}, getDefaultOptions(svcApiUrl, version), options);
9098
9207
  settings = new ReportViewerSettings(
9099
9208
  persistanceKey,