/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
(self["webpackChunknocode_component"] = self["webpackChunknocode_component"] || []).push([[856],{

/***/ "../../node_modules/core-js/internals/array-method-has-species-support.js":
/*!********************************************************************************!*\
  !*** ../../node_modules/core-js/internals/array-method-has-species-support.js ***!
  \********************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var fails = __webpack_require__(/*! ../internals/fails */ \"../../node_modules/core-js/internals/fails.js\");\nvar wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ \"../../node_modules/core-js/internals/well-known-symbol.js\");\nvar V8_VERSION = __webpack_require__(/*! ../internals/engine-v8-version */ \"../../node_modules/core-js/internals/engine-v8-version.js\");\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n  // We can't use this feature detection in V8 since it causes\n  // deoptimization and serious performance degradation\n  // https://github.com/zloirock/core-js/issues/677\n  return V8_VERSION >= 51 || !fails(function () {\n    var array = [];\n    var constructor = array.constructor = {};\n    constructor[SPECIES] = function () {\n      return { foo: 1 };\n    };\n    return array[METHOD_NAME](Boolean).foo !== 1;\n  });\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/internals/array-method-has-species-support.js?");

/***/ }),

/***/ "../../node_modules/core-js/internals/collection-strong.js":
/*!*****************************************************************!*\
  !*** ../../node_modules/core-js/internals/collection-strong.js ***!
  \*****************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar defineProperty = (__webpack_require__(/*! ../internals/object-define-property */ \"../../node_modules/core-js/internals/object-define-property.js\").f);\nvar create = __webpack_require__(/*! ../internals/object-create */ \"../../node_modules/core-js/internals/object-create.js\");\nvar redefineAll = __webpack_require__(/*! ../internals/redefine-all */ \"../../node_modules/core-js/internals/redefine-all.js\");\nvar bind = __webpack_require__(/*! ../internals/function-bind-context */ \"../../node_modules/core-js/internals/function-bind-context.js\");\nvar anInstance = __webpack_require__(/*! ../internals/an-instance */ \"../../node_modules/core-js/internals/an-instance.js\");\nvar iterate = __webpack_require__(/*! ../internals/iterate */ \"../../node_modules/core-js/internals/iterate.js\");\nvar defineIterator = __webpack_require__(/*! ../internals/define-iterator */ \"../../node_modules/core-js/internals/define-iterator.js\");\nvar setSpecies = __webpack_require__(/*! ../internals/set-species */ \"../../node_modules/core-js/internals/set-species.js\");\nvar DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"../../node_modules/core-js/internals/descriptors.js\");\nvar fastKey = (__webpack_require__(/*! ../internals/internal-metadata */ \"../../node_modules/core-js/internals/internal-metadata.js\").fastKey);\nvar InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ \"../../node_modules/core-js/internals/internal-state.js\");\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = {\n  getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n    var C = wrapper(function (that, iterable) {\n      anInstance(that, C, CONSTRUCTOR_NAME);\n      setInternalState(that, {\n        type: CONSTRUCTOR_NAME,\n        index: create(null),\n        first: undefined,\n        last: undefined,\n        size: 0\n      });\n      if (!DESCRIPTORS) that.size = 0;\n      if (iterable != undefined) iterate(iterable, that[ADDER], that, IS_MAP);\n    });\n\n    var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n    var define = function (that, key, value) {\n      var state = getInternalState(that);\n      var entry = getEntry(that, key);\n      var previous, index;\n      // change existing entry\n      if (entry) {\n        entry.value = value;\n      // create new entry\n      } else {\n        state.last = entry = {\n          index: index = fastKey(key, true),\n          key: key,\n          value: value,\n          previous: previous = state.last,\n          next: undefined,\n          removed: false\n        };\n        if (!state.first) state.first = entry;\n        if (previous) previous.next = entry;\n        if (DESCRIPTORS) state.size++;\n        else that.size++;\n        // add to index\n        if (index !== 'F') state.index[index] = entry;\n      } return that;\n    };\n\n    var getEntry = function (that, key) {\n      var state = getInternalState(that);\n      // fast case\n      var index = fastKey(key);\n      var entry;\n      if (index !== 'F') return state.index[index];\n      // frozen object case\n      for (entry = state.first; entry; entry = entry.next) {\n        if (entry.key == key) return entry;\n      }\n    };\n\n    redefineAll(C.prototype, {\n      // 23.1.3.1 Map.prototype.clear()\n      // 23.2.3.2 Set.prototype.clear()\n      clear: function clear() {\n        var that = this;\n        var state = getInternalState(that);\n        var data = state.index;\n        var entry = state.first;\n        while (entry) {\n          entry.removed = true;\n          if (entry.previous) entry.previous = entry.previous.next = undefined;\n          delete data[entry.index];\n          entry = entry.next;\n        }\n        state.first = state.last = undefined;\n        if (DESCRIPTORS) state.size = 0;\n        else that.size = 0;\n      },\n      // 23.1.3.3 Map.prototype.delete(key)\n      // 23.2.3.4 Set.prototype.delete(value)\n      'delete': function (key) {\n        var that = this;\n        var state = getInternalState(that);\n        var entry = getEntry(that, key);\n        if (entry) {\n          var next = entry.next;\n          var prev = entry.previous;\n          delete state.index[entry.index];\n          entry.removed = true;\n          if (prev) prev.next = next;\n          if (next) next.previous = prev;\n          if (state.first == entry) state.first = next;\n          if (state.last == entry) state.last = prev;\n          if (DESCRIPTORS) state.size--;\n          else that.size--;\n        } return !!entry;\n      },\n      // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n      // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n      forEach: function forEach(callbackfn /* , that = undefined */) {\n        var state = getInternalState(this);\n        var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);\n        var entry;\n        while (entry = entry ? entry.next : state.first) {\n          boundFunction(entry.value, entry.key, this);\n          // revert to the last existing entry\n          while (entry && entry.removed) entry = entry.previous;\n        }\n      },\n      // 23.1.3.7 Map.prototype.has(key)\n      // 23.2.3.7 Set.prototype.has(value)\n      has: function has(key) {\n        return !!getEntry(this, key);\n      }\n    });\n\n    redefineAll(C.prototype, IS_MAP ? {\n      // 23.1.3.6 Map.prototype.get(key)\n      get: function get(key) {\n        var entry = getEntry(this, key);\n        return entry && entry.value;\n      },\n      // 23.1.3.9 Map.prototype.set(key, value)\n      set: function set(key, value) {\n        return define(this, key === 0 ? 0 : key, value);\n      }\n    } : {\n      // 23.2.3.1 Set.prototype.add(value)\n      add: function add(value) {\n        return define(this, value = value === 0 ? 0 : value, value);\n      }\n    });\n    if (DESCRIPTORS) defineProperty(C.prototype, 'size', {\n      get: function () {\n        return getInternalState(this).size;\n      }\n    });\n    return C;\n  },\n  setStrong: function (C, CONSTRUCTOR_NAME, IS_MAP) {\n    var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n    var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n    var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n    // add .keys, .values, .entries, [@@iterator]\n    // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n    defineIterator(C, CONSTRUCTOR_NAME, function (iterated, kind) {\n      setInternalState(this, {\n        type: ITERATOR_NAME,\n        target: iterated,\n        state: getInternalCollectionState(iterated),\n        kind: kind,\n        last: undefined\n      });\n    }, function () {\n      var state = getInternalIteratorState(this);\n      var kind = state.kind;\n      var entry = state.last;\n      // revert to the last existing entry\n      while (entry && entry.removed) entry = entry.previous;\n      // get next entry\n      if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n        // or finish the iteration\n        state.target = undefined;\n        return { value: undefined, done: true };\n      }\n      // return step by kind\n      if (kind == 'keys') return { value: entry.key, done: false };\n      if (kind == 'values') return { value: entry.value, done: false };\n      return { value: [entry.key, entry.value], done: false };\n    }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n    // add [@@species], 23.1.2.2, 23.2.2.2\n    setSpecies(CONSTRUCTOR_NAME);\n  }\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/internals/collection-strong.js?");

/***/ }),

/***/ "../../node_modules/core-js/internals/collection.js":
/*!**********************************************************!*\
  !*** ../../node_modules/core-js/internals/collection.js ***!
  \**********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js/internals/export.js\");\nvar global = __webpack_require__(/*! ../internals/global */ \"../../node_modules/core-js/internals/global.js\");\nvar isForced = __webpack_require__(/*! ../internals/is-forced */ \"../../node_modules/core-js/internals/is-forced.js\");\nvar redefine = __webpack_require__(/*! ../internals/redefine */ \"../../node_modules/core-js/internals/redefine.js\");\nvar InternalMetadataModule = __webpack_require__(/*! ../internals/internal-metadata */ \"../../node_modules/core-js/internals/internal-metadata.js\");\nvar iterate = __webpack_require__(/*! ../internals/iterate */ \"../../node_modules/core-js/internals/iterate.js\");\nvar anInstance = __webpack_require__(/*! ../internals/an-instance */ \"../../node_modules/core-js/internals/an-instance.js\");\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"../../node_modules/core-js/internals/is-object.js\");\nvar fails = __webpack_require__(/*! ../internals/fails */ \"../../node_modules/core-js/internals/fails.js\");\nvar checkCorrectnessOfIteration = __webpack_require__(/*! ../internals/check-correctness-of-iteration */ \"../../node_modules/core-js/internals/check-correctness-of-iteration.js\");\nvar setToStringTag = __webpack_require__(/*! ../internals/set-to-string-tag */ \"../../node_modules/core-js/internals/set-to-string-tag.js\");\nvar inheritIfRequired = __webpack_require__(/*! ../internals/inherit-if-required */ \"../../node_modules/core-js/internals/inherit-if-required.js\");\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n  var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n  var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n  var ADDER = IS_MAP ? 'set' : 'add';\n  var NativeConstructor = global[CONSTRUCTOR_NAME];\n  var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n  var Constructor = NativeConstructor;\n  var exported = {};\n\n  var fixMethod = function (KEY) {\n    var nativeMethod = NativePrototype[KEY];\n    redefine(NativePrototype, KEY,\n      KEY == 'add' ? function add(value) {\n        nativeMethod.call(this, value === 0 ? 0 : value);\n        return this;\n      } : KEY == 'delete' ? function (key) {\n        return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);\n      } : KEY == 'get' ? function get(key) {\n        return IS_WEAK && !isObject(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key);\n      } : KEY == 'has' ? function has(key) {\n        return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);\n      } : function set(key, value) {\n        nativeMethod.call(this, key === 0 ? 0 : key, value);\n        return this;\n      }\n    );\n  };\n\n  // eslint-disable-next-line max-len\n  if (isForced(CONSTRUCTOR_NAME, typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n    new NativeConstructor().entries().next();\n  })))) {\n    // create collection constructor\n    Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n    InternalMetadataModule.REQUIRED = true;\n  } else if (isForced(CONSTRUCTOR_NAME, true)) {\n    var instance = new Constructor();\n    // early implementations not supports chaining\n    var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n    // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n    var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n    // most early implementations doesn't supports iterables, most modern - not close it correctly\n    // eslint-disable-next-line no-new\n    var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });\n    // for early implementations -0 and +0 not the same\n    var BUGGY_ZERO = !IS_WEAK && fails(function () {\n      // V8 ~ Chromium 42- fails only with 5+ elements\n      var $instance = new NativeConstructor();\n      var index = 5;\n      while (index--) $instance[ADDER](index, index);\n      return !$instance.has(-0);\n    });\n\n    if (!ACCEPT_ITERABLES) {\n      Constructor = wrapper(function (dummy, iterable) {\n        anInstance(dummy, Constructor, CONSTRUCTOR_NAME);\n        var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);\n        if (iterable != undefined) iterate(iterable, that[ADDER], that, IS_MAP);\n        return that;\n      });\n      Constructor.prototype = NativePrototype;\n      NativePrototype.constructor = Constructor;\n    }\n\n    if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n      fixMethod('delete');\n      fixMethod('has');\n      IS_MAP && fixMethod('get');\n    }\n\n    if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n\n    // weak collections should not contains .clear method\n    if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;\n  }\n\n  exported[CONSTRUCTOR_NAME] = Constructor;\n  $({ global: true, forced: Constructor != NativeConstructor }, exported);\n\n  setToStringTag(Constructor, CONSTRUCTOR_NAME);\n\n  if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n  return Constructor;\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/internals/collection.js?");

/***/ }),

/***/ "../../node_modules/core-js/internals/freezing.js":
/*!********************************************************!*\
  !*** ../../node_modules/core-js/internals/freezing.js ***!
  \********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var fails = __webpack_require__(/*! ../internals/fails */ \"../../node_modules/core-js/internals/fails.js\");\n\nmodule.exports = !fails(function () {\n  return Object.isExtensible(Object.preventExtensions({}));\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/internals/freezing.js?");

/***/ }),

/***/ "../../node_modules/core-js/internals/internal-metadata.js":
/*!*****************************************************************!*\
  !*** ../../node_modules/core-js/internals/internal-metadata.js ***!
  \*****************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ \"../../node_modules/core-js/internals/hidden-keys.js\");\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"../../node_modules/core-js/internals/is-object.js\");\nvar has = __webpack_require__(/*! ../internals/has */ \"../../node_modules/core-js/internals/has.js\");\nvar defineProperty = (__webpack_require__(/*! ../internals/object-define-property */ \"../../node_modules/core-js/internals/object-define-property.js\").f);\nvar uid = __webpack_require__(/*! ../internals/uid */ \"../../node_modules/core-js/internals/uid.js\");\nvar FREEZING = __webpack_require__(/*! ../internals/freezing */ \"../../node_modules/core-js/internals/freezing.js\");\n\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar isExtensible = Object.isExtensible || function () {\n  return true;\n};\n\nvar setMetadata = function (it) {\n  defineProperty(it, METADATA, { value: {\n    objectID: 'O' + ++id, // object ID\n    weakData: {}          // weak collections IDs\n  } });\n};\n\nvar fastKey = function (it, create) {\n  // return a primitive with prefix\n  if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n  if (!has(it, METADATA)) {\n    // can't set metadata to uncaught frozen object\n    if (!isExtensible(it)) return 'F';\n    // not necessary to add metadata\n    if (!create) return 'E';\n    // add missing metadata\n    setMetadata(it);\n  // return object ID\n  } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n  if (!has(it, METADATA)) {\n    // can't set metadata to uncaught frozen object\n    if (!isExtensible(it)) return true;\n    // not necessary to add metadata\n    if (!create) return false;\n    // add missing metadata\n    setMetadata(it);\n  // return the store of weak collections IDs\n  } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n  if (FREEZING && meta.REQUIRED && isExtensible(it) && !has(it, METADATA)) setMetadata(it);\n  return it;\n};\n\nvar meta = module.exports = {\n  REQUIRED: false,\n  fastKey: fastKey,\n  getWeakData: getWeakData,\n  onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/internals/internal-metadata.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.array-buffer.constructor.js":
/*!*************************************************************************!*\
  !*** ../../node_modules/core-js/modules/es.array-buffer.constructor.js ***!
  \*************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js/internals/export.js\");\nvar global = __webpack_require__(/*! ../internals/global */ \"../../node_modules/core-js/internals/global.js\");\nvar arrayBufferModule = __webpack_require__(/*! ../internals/array-buffer */ \"../../node_modules/core-js/internals/array-buffer.js\");\nvar setSpecies = __webpack_require__(/*! ../internals/set-species */ \"../../node_modules/core-js/internals/set-species.js\");\n\nvar ARRAY_BUFFER = 'ArrayBuffer';\nvar ArrayBuffer = arrayBufferModule[ARRAY_BUFFER];\nvar NativeArrayBuffer = global[ARRAY_BUFFER];\n\n// `ArrayBuffer` constructor\n// https://tc39.github.io/ecma262/#sec-arraybuffer-constructor\n$({ global: true, forced: NativeArrayBuffer !== ArrayBuffer }, {\n  ArrayBuffer: ArrayBuffer\n});\n\nsetSpecies(ARRAY_BUFFER);\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.array-buffer.constructor.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.array.fill.js":
/*!***********************************************************!*\
  !*** ../../node_modules/core-js/modules/es.array.fill.js ***!
  \***********************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("var $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js/internals/export.js\");\nvar fill = __webpack_require__(/*! ../internals/array-fill */ \"../../node_modules/core-js/internals/array-fill.js\");\nvar addToUnscopables = __webpack_require__(/*! ../internals/add-to-unscopables */ \"../../node_modules/core-js/internals/add-to-unscopables.js\");\n\n// `Array.prototype.fill` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.fill\n$({ target: 'Array', proto: true }, {\n  fill: fill\n});\n\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('fill');\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.array.fill.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.array.filter.js":
/*!*************************************************************!*\
  !*** ../../node_modules/core-js/modules/es.array.filter.js ***!
  \*************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js/internals/export.js\");\nvar $filter = (__webpack_require__(/*! ../internals/array-iteration */ \"../../node_modules/core-js/internals/array-iteration.js\").filter);\nvar arrayMethodHasSpeciesSupport = __webpack_require__(/*! ../internals/array-method-has-species-support */ \"../../node_modules/core-js/internals/array-method-has-species-support.js\");\nvar arrayMethodUsesToLength = __webpack_require__(/*! ../internals/array-method-uses-to-length */ \"../../node_modules/core-js/internals/array-method-uses-to-length.js\");\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n// Edge 14- issue\nvar USES_TO_LENGTH = arrayMethodUsesToLength('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n  filter: function filter(callbackfn /* , thisArg */) {\n    return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n  }\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.array.filter.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.array.map.js":
/*!**********************************************************!*\
  !*** ../../node_modules/core-js/modules/es.array.map.js ***!
  \**********************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js/internals/export.js\");\nvar $map = (__webpack_require__(/*! ../internals/array-iteration */ \"../../node_modules/core-js/internals/array-iteration.js\").map);\nvar arrayMethodHasSpeciesSupport = __webpack_require__(/*! ../internals/array-method-has-species-support */ \"../../node_modules/core-js/internals/array-method-has-species-support.js\");\nvar arrayMethodUsesToLength = __webpack_require__(/*! ../internals/array-method-uses-to-length */ \"../../node_modules/core-js/internals/array-method-uses-to-length.js\");\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n// FF49- issue\nvar USES_TO_LENGTH = arrayMethodUsesToLength('map');\n\n// `Array.prototype.map` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n  map: function map(callbackfn /* , thisArg */) {\n    return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n  }\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.array.map.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.data-view.js":
/*!**********************************************************!*\
  !*** ../../node_modules/core-js/modules/es.data-view.js ***!
  \**********************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("var $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js/internals/export.js\");\nvar ArrayBufferModule = __webpack_require__(/*! ../internals/array-buffer */ \"../../node_modules/core-js/internals/array-buffer.js\");\nvar NATIVE_ARRAY_BUFFER = __webpack_require__(/*! ../internals/array-buffer-native */ \"../../node_modules/core-js/internals/array-buffer-native.js\");\n\n// `DataView` constructor\n// https://tc39.github.io/ecma262/#sec-dataview-constructor\n$({ global: true, forced: !NATIVE_ARRAY_BUFFER }, {\n  DataView: ArrayBufferModule.DataView\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.data-view.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.map.js":
/*!****************************************************!*\
  !*** ../../node_modules/core-js/modules/es.map.js ***!
  \****************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar collection = __webpack_require__(/*! ../internals/collection */ \"../../node_modules/core-js/internals/collection.js\");\nvar collectionStrong = __webpack_require__(/*! ../internals/collection-strong */ \"../../node_modules/core-js/internals/collection-strong.js\");\n\n// `Map` constructor\n// https://tc39.github.io/ecma262/#sec-map-objects\nmodule.exports = collection('Map', function (init) {\n  return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.map.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.promise.all-settled.js":
/*!********************************************************************!*\
  !*** ../../node_modules/core-js/modules/es.promise.all-settled.js ***!
  \********************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js/internals/export.js\");\nvar aFunction = __webpack_require__(/*! ../internals/a-function */ \"../../node_modules/core-js/internals/a-function.js\");\nvar newPromiseCapabilityModule = __webpack_require__(/*! ../internals/new-promise-capability */ \"../../node_modules/core-js/internals/new-promise-capability.js\");\nvar perform = __webpack_require__(/*! ../internals/perform */ \"../../node_modules/core-js/internals/perform.js\");\nvar iterate = __webpack_require__(/*! ../internals/iterate */ \"../../node_modules/core-js/internals/iterate.js\");\n\n// `Promise.allSettled` method\n// https://github.com/tc39/proposal-promise-allSettled\n$({ target: 'Promise', stat: true }, {\n  allSettled: function allSettled(iterable) {\n    var C = this;\n    var capability = newPromiseCapabilityModule.f(C);\n    var resolve = capability.resolve;\n    var reject = capability.reject;\n    var result = perform(function () {\n      var promiseResolve = aFunction(C.resolve);\n      var values = [];\n      var counter = 0;\n      var remaining = 1;\n      iterate(iterable, function (promise) {\n        var index = counter++;\n        var alreadyCalled = false;\n        values.push(undefined);\n        remaining++;\n        promiseResolve.call(C, promise).then(function (value) {\n          if (alreadyCalled) return;\n          alreadyCalled = true;\n          values[index] = { status: 'fulfilled', value: value };\n          --remaining || resolve(values);\n        }, function (e) {\n          if (alreadyCalled) return;\n          alreadyCalled = true;\n          values[index] = { status: 'rejected', reason: e };\n          --remaining || resolve(values);\n        });\n      });\n      --remaining || resolve(values);\n    });\n    if (result.error) reject(result.value);\n    return capability.promise;\n  }\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.promise.all-settled.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.promise.finally.js":
/*!****************************************************************!*\
  !*** ../../node_modules/core-js/modules/es.promise.finally.js ***!
  \****************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js/internals/export.js\");\nvar IS_PURE = __webpack_require__(/*! ../internals/is-pure */ \"../../node_modules/core-js/internals/is-pure.js\");\nvar NativePromise = __webpack_require__(/*! ../internals/native-promise-constructor */ \"../../node_modules/core-js/internals/native-promise-constructor.js\");\nvar fails = __webpack_require__(/*! ../internals/fails */ \"../../node_modules/core-js/internals/fails.js\");\nvar getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ \"../../node_modules/core-js/internals/get-built-in.js\");\nvar speciesConstructor = __webpack_require__(/*! ../internals/species-constructor */ \"../../node_modules/core-js/internals/species-constructor.js\");\nvar promiseResolve = __webpack_require__(/*! ../internals/promise-resolve */ \"../../node_modules/core-js/internals/promise-resolve.js\");\nvar redefine = __webpack_require__(/*! ../internals/redefine */ \"../../node_modules/core-js/internals/redefine.js\");\n\n// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829\nvar NON_GENERIC = !!NativePromise && fails(function () {\n  NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });\n});\n\n// `Promise.prototype.finally` method\n// https://tc39.github.io/ecma262/#sec-promise.prototype.finally\n$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {\n  'finally': function (onFinally) {\n    var C = speciesConstructor(this, getBuiltIn('Promise'));\n    var isFunction = typeof onFinally == 'function';\n    return this.then(\n      isFunction ? function (x) {\n        return promiseResolve(C, onFinally()).then(function () { return x; });\n      } : onFinally,\n      isFunction ? function (e) {\n        return promiseResolve(C, onFinally()).then(function () { throw e; });\n      } : onFinally\n    );\n  }\n});\n\n// patch native Promise.prototype for native async functions\nif (!IS_PURE && typeof NativePromise == 'function' && !NativePromise.prototype['finally']) {\n  redefine(NativePromise.prototype, 'finally', getBuiltIn('Promise').prototype['finally']);\n}\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.promise.finally.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.regexp.flags.js":
/*!*************************************************************!*\
  !*** ../../node_modules/core-js/modules/es.regexp.flags.js ***!
  \*************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"../../node_modules/core-js/internals/descriptors.js\");\nvar objectDefinePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ \"../../node_modules/core-js/internals/object-define-property.js\");\nvar regExpFlags = __webpack_require__(/*! ../internals/regexp-flags */ \"../../node_modules/core-js/internals/regexp-flags.js\");\nvar UNSUPPORTED_Y = (__webpack_require__(/*! ../internals/regexp-sticky-helpers */ \"../../node_modules/core-js/internals/regexp-sticky-helpers.js\").UNSUPPORTED_Y);\n\n// `RegExp.prototype.flags` getter\n// https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags\nif (DESCRIPTORS && (/./g.flags != 'g' || UNSUPPORTED_Y)) {\n  objectDefinePropertyModule.f(RegExp.prototype, 'flags', {\n    configurable: true,\n    get: regExpFlags\n  });\n}\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.regexp.flags.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.set.js":
/*!****************************************************!*\
  !*** ../../node_modules/core-js/modules/es.set.js ***!
  \****************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar collection = __webpack_require__(/*! ../internals/collection */ \"../../node_modules/core-js/internals/collection.js\");\nvar collectionStrong = __webpack_require__(/*! ../internals/collection-strong */ \"../../node_modules/core-js/internals/collection-strong.js\");\n\n// `Set` constructor\n// https://tc39.github.io/ecma262/#sec-set-objects\nmodule.exports = collection('Set', function (init) {\n  return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.set.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.string.bold.js":
/*!************************************************************!*\
  !*** ../../node_modules/core-js/modules/es.string.bold.js ***!
  \************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js/internals/export.js\");\nvar createHTML = __webpack_require__(/*! ../internals/create-html */ \"../../node_modules/core-js/internals/create-html.js\");\nvar forcedStringHTMLMethod = __webpack_require__(/*! ../internals/string-html-forced */ \"../../node_modules/core-js/internals/string-html-forced.js\");\n\n// `String.prototype.bold` method\n// https://tc39.github.io/ecma262/#sec-string.prototype.bold\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('bold') }, {\n  bold: function bold() {\n    return createHTML(this, 'b', '', '');\n  }\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.string.bold.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.string.italics.js":
/*!***************************************************************!*\
  !*** ../../node_modules/core-js/modules/es.string.italics.js ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js/internals/export.js\");\nvar createHTML = __webpack_require__(/*! ../internals/create-html */ \"../../node_modules/core-js/internals/create-html.js\");\nvar forcedStringHTMLMethod = __webpack_require__(/*! ../internals/string-html-forced */ \"../../node_modules/core-js/internals/string-html-forced.js\");\n\n// `String.prototype.italics` method\n// https://tc39.github.io/ecma262/#sec-string.prototype.italics\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('italics') }, {\n  italics: function italics() {\n    return createHTML(this, 'i', '', '');\n  }\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.string.italics.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.typed-array.float32-array.js":
/*!**************************************************************************!*\
  !*** ../../node_modules/core-js/modules/es.typed-array.float32-array.js ***!
  \**************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("var createTypedArrayConstructor = __webpack_require__(/*! ../internals/typed-array-constructor */ \"../../node_modules/core-js/internals/typed-array-constructor.js\");\n\n// `Float32Array` constructor\n// https://tc39.github.io/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Float32', function (init) {\n  return function Float32Array(data, byteOffset, length) {\n    return init(this, data, byteOffset, length);\n  };\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.typed-array.float32-array.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.typed-array.float64-array.js":
/*!**************************************************************************!*\
  !*** ../../node_modules/core-js/modules/es.typed-array.float64-array.js ***!
  \**************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("var createTypedArrayConstructor = __webpack_require__(/*! ../internals/typed-array-constructor */ \"../../node_modules/core-js/internals/typed-array-constructor.js\");\n\n// `Float64Array` constructor\n// https://tc39.github.io/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Float64', function (init) {\n  return function Float64Array(data, byteOffset, length) {\n    return init(this, data, byteOffset, length);\n  };\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.typed-array.float64-array.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.typed-array.int16-array.js":
/*!************************************************************************!*\
  !*** ../../node_modules/core-js/modules/es.typed-array.int16-array.js ***!
  \************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("var createTypedArrayConstructor = __webpack_require__(/*! ../internals/typed-array-constructor */ \"../../node_modules/core-js/internals/typed-array-constructor.js\");\n\n// `Int16Array` constructor\n// https://tc39.github.io/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Int16', function (init) {\n  return function Int16Array(data, byteOffset, length) {\n    return init(this, data, byteOffset, length);\n  };\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.typed-array.int16-array.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.typed-array.int32-array.js":
/*!************************************************************************!*\
  !*** ../../node_modules/core-js/modules/es.typed-array.int32-array.js ***!
  \************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("var createTypedArrayConstructor = __webpack_require__(/*! ../internals/typed-array-constructor */ \"../../node_modules/core-js/internals/typed-array-constructor.js\");\n\n// `Int32Array` constructor\n// https://tc39.github.io/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Int32', function (init) {\n  return function Int32Array(data, byteOffset, length) {\n    return init(this, data, byteOffset, length);\n  };\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.typed-array.int32-array.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.typed-array.int8-array.js":
/*!***********************************************************************!*\
  !*** ../../node_modules/core-js/modules/es.typed-array.int8-array.js ***!
  \***********************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("var createTypedArrayConstructor = __webpack_require__(/*! ../internals/typed-array-constructor */ \"../../node_modules/core-js/internals/typed-array-constructor.js\");\n\n// `Int8Array` constructor\n// https://tc39.github.io/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Int8', function (init) {\n  return function Int8Array(data, byteOffset, length) {\n    return init(this, data, byteOffset, length);\n  };\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.typed-array.int8-array.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.typed-array.uint16-array.js":
/*!*************************************************************************!*\
  !*** ../../node_modules/core-js/modules/es.typed-array.uint16-array.js ***!
  \*************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("var createTypedArrayConstructor = __webpack_require__(/*! ../internals/typed-array-constructor */ \"../../node_modules/core-js/internals/typed-array-constructor.js\");\n\n// `Uint16Array` constructor\n// https://tc39.github.io/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Uint16', function (init) {\n  return function Uint16Array(data, byteOffset, length) {\n    return init(this, data, byteOffset, length);\n  };\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.typed-array.uint16-array.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.typed-array.uint8-array.js":
/*!************************************************************************!*\
  !*** ../../node_modules/core-js/modules/es.typed-array.uint8-array.js ***!
  \************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("var createTypedArrayConstructor = __webpack_require__(/*! ../internals/typed-array-constructor */ \"../../node_modules/core-js/internals/typed-array-constructor.js\");\n\n// `Uint8Array` constructor\n// https://tc39.github.io/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Uint8', function (init) {\n  return function Uint8Array(data, byteOffset, length) {\n    return init(this, data, byteOffset, length);\n  };\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.typed-array.uint8-array.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/es.typed-array.uint8-clamped-array.js":
/*!********************************************************************************!*\
  !*** ../../node_modules/core-js/modules/es.typed-array.uint8-clamped-array.js ***!
  \********************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("var createTypedArrayConstructor = __webpack_require__(/*! ../internals/typed-array-constructor */ \"../../node_modules/core-js/internals/typed-array-constructor.js\");\n\n// `Uint8ClampedArray` constructor\n// https://tc39.github.io/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Uint8', function (init) {\n  return function Uint8ClampedArray(data, byteOffset, length) {\n    return init(this, data, byteOffset, length);\n  };\n}, true);\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/es.typed-array.uint8-clamped-array.js?");

/***/ }),

/***/ "../../node_modules/core-js/modules/esnext.promise.all-settled.js":
/*!************************************************************************!*\
  !*** ../../node_modules/core-js/modules/esnext.promise.all-settled.js ***!
  \************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("// TODO: Remove from `core-js@4`\n__webpack_require__(/*! ./es.promise.all-settled.js */ \"../../node_modules/core-js/modules/es.promise.all-settled.js\");\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js/modules/esnext.promise.all-settled.js?");

/***/ }),

/***/ "../../node_modules/dommatrix/dist/dommatrix.js":
/*!******************************************************!*\
  !*** ../../node_modules/dommatrix/dist/dommatrix.js ***!
  \******************************************************/
/***/ (function(module) {

eval("/*!\n* DOMMatrix v1.0.3 (https://thednp.github.io/dommatrix/)\n* Copyright 2022 © thednp\n* Licensed under MIT (https://github.com/thednp/DOMMatrix/blob/master/LICENSE)\n*/\n(function (global, factory) {\n   true ? module.exports = factory() :\n  0;\n})(this, (function () { 'use strict';\n\n  // DOMMatrix Static methods\n  // * `fromArray` is a more simple implementation, should also accept Float[32/64]Array;\n  // * `fromMatrix` load values from another CSSMatrix/DOMMatrix instance or JSON object;\n  // * `fromString` parses and loads values from any valid CSS transform string (TransformList).\n\n  /**\n   * Creates a new mutable `CSSMatrix` instance given an array of 16/6 floating point values.\n   * This static method invalidates arrays that contain non-number elements.\n   *\n   * If the array has six values, the result is a 2D matrix; if the array has 16 values,\n   * the result is a 3D matrix. Otherwise, a TypeError exception is thrown.\n   *\n   * @param {CSSM.matrix | CSSM.matrix3d} array an `Array` to feed values from.\n   * @return {CSSMatrix} the resulted matrix.\n   */\n  function fromArray(array) {\n    var m = new CSSMatrix();\n    var a = Array.from(array);\n\n    if (!a.every(function (n) { return !Number.isNaN(n); })) {\n      throw TypeError((\"CSSMatrix: \\\"\" + array + \"\\\" must only have numbers.\"));\n    }\n    if (a.length === 16) {\n      var m11 = a[0];\n      var m12 = a[1];\n      var m13 = a[2];\n      var m14 = a[3];\n      var m21 = a[4];\n      var m22 = a[5];\n      var m23 = a[6];\n      var m24 = a[7];\n      var m31 = a[8];\n      var m32 = a[9];\n      var m33 = a[10];\n      var m34 = a[11];\n      var m41 = a[12];\n      var m42 = a[13];\n      var m43 = a[14];\n      var m44 = a[15];\n\n      m.m11 = m11;\n      m.a = m11;\n\n      m.m21 = m21;\n      m.c = m21;\n\n      m.m31 = m31;\n\n      m.m41 = m41;\n      m.e = m41;\n\n      m.m12 = m12;\n      m.b = m12;\n\n      m.m22 = m22;\n      m.d = m22;\n\n      m.m32 = m32;\n\n      m.m42 = m42;\n      m.f = m42;\n\n      m.m13 = m13;\n      m.m23 = m23;\n      m.m33 = m33;\n      m.m43 = m43;\n      m.m14 = m14;\n      m.m24 = m24;\n      m.m34 = m34;\n      m.m44 = m44;\n    } else if (a.length === 6) {\n      var M11 = a[0];\n      var M12 = a[1];\n      var M21 = a[2];\n      var M22 = a[3];\n      var M41 = a[4];\n      var M42 = a[5];\n\n      m.m11 = M11;\n      m.a = M11;\n\n      m.m12 = M12;\n      m.b = M12;\n\n      m.m21 = M21;\n      m.c = M21;\n\n      m.m22 = M22;\n      m.d = M22;\n\n      m.m41 = M41;\n      m.e = M41;\n\n      m.m42 = M42;\n      m.f = M42;\n    } else {\n      throw new TypeError('CSSMatrix: expecting an Array of 6/16 values.');\n    }\n    return m;\n  }\n\n  /**\n   * Creates a new mutable `CSSMatrix` instance given an existing matrix or a\n   * `DOMMatrix` instance which provides the values for its properties.\n   *\n   * @param {CSSMatrix | DOMMatrix | CSSM.JSONMatrix} m the source matrix to feed values from.\n   * @return {CSSMatrix} the resulted matrix.\n   */\n  function fromMatrix(m) {\n    var keys = Object.keys(new CSSMatrix());\n    if (typeof m === 'object' && keys.every(function (k) { return k in m; })) {\n      return fromArray(\n        [m.m11, m.m12, m.m13, m.m14,\n          m.m21, m.m22, m.m23, m.m24,\n          m.m31, m.m32, m.m33, m.m34,\n          m.m41, m.m42, m.m43, m.m44]\n      );\n    }\n    throw TypeError((\"CSSMatrix: \\\"\" + (JSON.stringify(m)) + \"\\\" is not a DOMMatrix / CSSMatrix / JSON compatible object.\"));\n  }\n\n  /**\n   * Creates a new mutable `CSSMatrix` given any valid CSS transform string,\n   * or what we call `TransformList`:\n   *\n   * * `matrix(a, b, c, d, e, f)` - valid matrix() transform function\n   * * `matrix3d(m11, m12, m13, ...m44)` - valid matrix3d() transform function\n   * * `translate(tx, ty) rotateX(alpha)` - any valid transform function(s)\n   *\n   * @copyright thednp © 2021\n   *\n   * @param {string} source valid CSS transform string syntax.\n   * @return {CSSMatrix} the resulted matrix.\n   */\n  function fromString(source) {\n    if (typeof source !== 'string') {\n      throw TypeError((\"CSSMatrix: \\\"\" + source + \"\\\" is not a string.\"));\n    }\n    var str = String(source).replace(/\\s/g, '');\n    var m = new CSSMatrix();\n    var invalidStringError = \"CSSMatrix: invalid transform string \\\"\" + source + \"\\\"\";\n\n    // const px = ['perspective'];\n    // const length = ['translate', 'translate3d', 'translateX', 'translateY', 'translateZ'];\n    // const deg = ['rotate', 'rotate3d', 'rotateX', 'rotateY', 'rotateZ', 'skew', 'skewX', 'skewY'];\n    // const abs = ['scale', 'scale3d', 'matrix', 'matrix3d'];\n    // const transformFunctions = px.concat(length, deg, abs);\n\n    str.split(')').filter(function (f) { return f; }).forEach(function (tf) {\n      var ref = tf.split('(');\n      var prop = ref[0];\n      var value = ref[1];\n\n      // invalidate empty string\n      if (!value) { throw TypeError(invalidStringError); }\n\n      var components = value.split(',')\n        .map(function (n) { return (n.includes('rad') ? parseFloat(n) * (180 / Math.PI) : parseFloat(n)); });\n\n      var x = components[0];\n      var y = components[1];\n      var z = components[2];\n      var a = components[3];\n      var xyz = [x, y, z];\n      var xyza = [x, y, z, a];\n\n      // single number value expected\n      if (prop === 'perspective' && x && [y, z].every(function (n) { return n === undefined; })) {\n        m.m34 = -1 / x;\n      // 6/16 number values expected\n      } else if (prop.includes('matrix') && [6, 16].includes(components.length)\n        && components.every(function (n) { return !Number.isNaN(+n); })) {\n        var values = components.map(function (n) { return (Math.abs(n) < 1e-6 ? 0 : n); });\n        // @ts-ignore -- conditions should suffice\n        m = m.multiply(fromArray(values));\n      // 3 values expected\n      } else if (prop === 'translate3d' && xyz.every(function (n) { return !Number.isNaN(+n); })) {\n        m = m.translate(x, y, z);\n      // single/double number value(s) expected\n      } else if (prop === 'translate' && x && z === undefined) {\n        m = m.translate(x, y || 0, 0);\n      // all 4 values expected\n      } else if (prop === 'rotate3d' && xyza.every(function (n) { return !Number.isNaN(+n); }) && a) {\n        m = m.rotateAxisAngle(x, y, z, a);\n      // single value expected\n      } else if (prop === 'rotate' && x && [y, z].every(function (n) { return n === undefined; })) {\n        m = m.rotate(0, 0, x);\n      // 3 values expected\n      } else if (prop === 'scale3d' && xyz.every(function (n) { return !Number.isNaN(+n); }) && xyz.some(function (n) { return n !== 1; })) {\n        m = m.scale(x, y, z);\n      // single value expected\n      } else if (prop === 'scale' && !Number.isNaN(x) && x !== 1 && z === undefined) {\n        var nosy = Number.isNaN(+y);\n        var sy = nosy ? x : y;\n        m = m.scale(x, sy, 1);\n      // single/double value expected\n      } else if (prop === 'skew' && (x || (!Number.isNaN(x) && y)) && z === undefined) {\n        m = m.skew(x, y || 0);\n      } else if (/[XYZ]/.test(prop) && x && [y, z].every(function (n) { return n === undefined; }) // a single value expected\n        && ['translate', 'rotate', 'scale', 'skew'].some(function (p) { return prop.includes(p); })) {\n        if (['skewX', 'skewY'].includes(prop)) {\n          // @ts-ignore unfortunately\n          m = m[prop](x);\n        } else {\n          var fn = prop.replace(/[XYZ]/, '');\n          var axis = prop.replace(fn, '');\n          var idx = ['X', 'Y', 'Z'].indexOf(axis);\n          var def = fn === 'scale' ? 1 : 0;\n          var axeValues = [\n            idx === 0 ? x : def,\n            idx === 1 ? x : def,\n            idx === 2 ? x : def];\n          // @ts-ignore unfortunately\n          m = m[fn].apply(m, axeValues);\n        }\n      } else {\n        throw TypeError(invalidStringError);\n      }\n    });\n\n    return m;\n  }\n\n  /**\n   * Returns an *Array* containing elements which comprise the matrix.\n   * The method can return either the 16 elements or the 6 elements\n   * depending on the value of the `is2D` parameter.\n   *\n   * @param {CSSMatrix | DOMMatrix | CSSM.JSONMatrix} m the source matrix to feed values from.\n   * @param {boolean=} is2D *Array* representation of the matrix\n   * @return {CSSM.matrix | CSSM.matrix3d} an *Array* representation of the matrix\n   */\n  function toArray(m, is2D) {\n    if (is2D) {\n      return [m.a, m.b, m.c, m.d, m.e, m.f];\n    }\n    return [m.m11, m.m12, m.m13, m.m14,\n      m.m21, m.m22, m.m23, m.m24,\n      m.m31, m.m32, m.m33, m.m34,\n      m.m41, m.m42, m.m43, m.m44];\n  }\n\n  // Transform Functions\n  // https://www.w3.org/TR/css-transforms-1/#transform-functions\n\n  /**\n   * Creates a new `CSSMatrix` for the translation matrix and returns it.\n   * This method is equivalent to the CSS `translate3d()` function.\n   *\n   * https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/translate3d\n   *\n   * @param {number} x the `x-axis` position.\n   * @param {number} y the `y-axis` position.\n   * @param {number} z the `z-axis` position.\n   * @return {CSSMatrix} the resulted matrix.\n   */\n  function Translate(x, y, z) {\n    var m = new CSSMatrix();\n    m.m41 = x;\n    m.e = x;\n    m.m42 = y;\n    m.f = y;\n    m.m43 = z;\n    return m;\n  }\n\n  /**\n   * Creates a new `CSSMatrix` for the rotation matrix and returns it.\n   *\n   * http://en.wikipedia.org/wiki/Rotation_matrix\n   *\n   * @param {number} rx the `x-axis` rotation.\n   * @param {number} ry the `y-axis` rotation.\n   * @param {number} rz the `z-axis` rotation.\n   * @return {CSSMatrix} the resulted matrix.\n   */\n  function Rotate(rx, ry, rz) {\n    var m = new CSSMatrix();\n    var degToRad = Math.PI / 180;\n    var radX = rx * degToRad;\n    var radY = ry * degToRad;\n    var radZ = rz * degToRad;\n\n    // minus sin() because of right-handed system\n    var cosx = Math.cos(radX);\n    var sinx = -Math.sin(radX);\n    var cosy = Math.cos(radY);\n    var siny = -Math.sin(radY);\n    var cosz = Math.cos(radZ);\n    var sinz = -Math.sin(radZ);\n\n    var m11 = cosy * cosz;\n    var m12 = -cosy * sinz;\n\n    m.m11 = m11;\n    m.a = m11;\n\n    m.m12 = m12;\n    m.b = m12;\n\n    m.m13 = siny;\n\n    var m21 = sinx * siny * cosz + cosx * sinz;\n    m.m21 = m21;\n    m.c = m21;\n\n    var m22 = cosx * cosz - sinx * siny * sinz;\n    m.m22 = m22;\n    m.d = m22;\n\n    m.m23 = -sinx * cosy;\n\n    m.m31 = sinx * sinz - cosx * siny * cosz;\n    m.m32 = sinx * cosz + cosx * siny * sinz;\n    m.m33 = cosx * cosy;\n\n    return m;\n  }\n\n  /**\n   * Creates a new `CSSMatrix` for the rotation matrix and returns it.\n   * This method is equivalent to the CSS `rotate3d()` function.\n   *\n   * https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/rotate3d\n   *\n   * @param {number} x the `x-axis` vector length.\n   * @param {number} y the `y-axis` vector length.\n   * @param {number} z the `z-axis` vector length.\n   * @param {number} alpha the value in degrees of the rotation.\n   * @return {CSSMatrix} the resulted matrix.\n   */\n  function RotateAxisAngle(x, y, z, alpha) {\n    var m = new CSSMatrix();\n    var length = Math.sqrt(x * x + y * y + z * z);\n\n    if (length === 0) {\n      // bad vector length, return identity\n      return m;\n    }\n\n    var X = x / length;\n    var Y = y / length;\n    var Z = z / length;\n\n    var angle = alpha * (Math.PI / 360);\n    var sinA = Math.sin(angle);\n    var cosA = Math.cos(angle);\n    var sinA2 = sinA * sinA;\n    var x2 = X * X;\n    var y2 = Y * Y;\n    var z2 = Z * Z;\n\n    var m11 = 1 - 2 * (y2 + z2) * sinA2;\n    m.m11 = m11;\n    m.a = m11;\n\n    var m12 = 2 * (X * Y * sinA2 + Z * sinA * cosA);\n    m.m12 = m12;\n    m.b = m12;\n\n    m.m13 = 2 * (X * Z * sinA2 - Y * sinA * cosA);\n\n    var m21 = 2 * (Y * X * sinA2 - Z * sinA * cosA);\n    m.m21 = m21;\n    m.c = m21;\n\n    var m22 = 1 - 2 * (z2 + x2) * sinA2;\n    m.m22 = m22;\n    m.d = m22;\n\n    m.m23 = 2 * (Y * Z * sinA2 + X * sinA * cosA);\n    m.m31 = 2 * (Z * X * sinA2 + Y * sinA * cosA);\n    m.m32 = 2 * (Z * Y * sinA2 - X * sinA * cosA);\n    m.m33 = 1 - 2 * (x2 + y2) * sinA2;\n\n    return m;\n  }\n\n  /**\n   * Creates a new `CSSMatrix` for the scale matrix and returns it.\n   * This method is equivalent to the CSS `scale3d()` function, except it doesn't\n   * accept {x, y, z} transform origin parameters.\n   *\n   * https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/scale3d\n   *\n   * @param {number} x the `x-axis` scale.\n   * @param {number} y the `y-axis` scale.\n   * @param {number} z the `z-axis` scale.\n   * @return {CSSMatrix} the resulted matrix.\n   */\n  function Scale(x, y, z) {\n    var m = new CSSMatrix();\n    m.m11 = x;\n    m.a = x;\n\n    m.m22 = y;\n    m.d = y;\n\n    m.m33 = z;\n    return m;\n  }\n\n  /**\n   * Creates a new `CSSMatrix` for the shear of both the `x-axis` and`y-axis`\n   * matrix and returns it. This method is equivalent to the CSS `skew()` function.\n   *\n   * https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/skew\n   *\n   * @param {number} angleX the X-angle in degrees.\n   * @param {number} angleY the Y-angle in degrees.\n   * @return {CSSMatrix} the resulted matrix.\n   */\n  function Skew(angleX, angleY) {\n    var m = new CSSMatrix();\n    if (angleX) {\n      var radX = (angleX * Math.PI) / 180;\n      var tX = Math.tan(radX);\n      m.m21 = tX;\n      m.c = tX;\n    }\n    if (angleY) {\n      var radY = (angleY * Math.PI) / 180;\n      var tY = Math.tan(radY);\n      m.m12 = tY;\n      m.b = tY;\n    }\n    return m;\n  }\n\n  /**\n   * Creates a new `CSSMatrix` for the shear of the `x-axis` rotation matrix and\n   * returns it. This method is equivalent to the CSS `skewX()` function.\n   *\n   * https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/skewX\n   *\n   * @param {number} angle the angle in degrees.\n   * @return {CSSMatrix} the resulted matrix.\n   */\n  function SkewX(angle) {\n    return Skew(angle, 0);\n  }\n\n  /**\n   * Creates a new `CSSMatrix` for the shear of the `y-axis` rotation matrix and\n   * returns it. This method is equivalent to the CSS `skewY()` function.\n   *\n   * https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/skewY\n   *\n   * @param {number} angle the angle in degrees.\n   * @return {CSSMatrix} the resulted matrix.\n   */\n  function SkewY(angle) {\n    return Skew(0, angle);\n  }\n\n  /**\n   * Creates a new `CSSMatrix` resulted from the multiplication of two matrixes\n   * and returns it. Both matrixes are not changed.\n   *\n   * @param {CSSMatrix | DOMMatrix | CSSM.JSONMatrix} m1 the first matrix.\n   * @param {CSSMatrix | DOMMatrix | CSSM.JSONMatrix} m2 the second matrix.\n   * @return {CSSMatrix} the resulted matrix.\n   */\n  function Multiply(m1, m2) {\n    var m11 = m2.m11 * m1.m11 + m2.m12 * m1.m21 + m2.m13 * m1.m31 + m2.m14 * m1.m41;\n    var m12 = m2.m11 * m1.m12 + m2.m12 * m1.m22 + m2.m13 * m1.m32 + m2.m14 * m1.m42;\n    var m13 = m2.m11 * m1.m13 + m2.m12 * m1.m23 + m2.m13 * m1.m33 + m2.m14 * m1.m43;\n    var m14 = m2.m11 * m1.m14 + m2.m12 * m1.m24 + m2.m13 * m1.m34 + m2.m14 * m1.m44;\n\n    var m21 = m2.m21 * m1.m11 + m2.m22 * m1.m21 + m2.m23 * m1.m31 + m2.m24 * m1.m41;\n    var m22 = m2.m21 * m1.m12 + m2.m22 * m1.m22 + m2.m23 * m1.m32 + m2.m24 * m1.m42;\n    var m23 = m2.m21 * m1.m13 + m2.m22 * m1.m23 + m2.m23 * m1.m33 + m2.m24 * m1.m43;\n    var m24 = m2.m21 * m1.m14 + m2.m22 * m1.m24 + m2.m23 * m1.m34 + m2.m24 * m1.m44;\n\n    var m31 = m2.m31 * m1.m11 + m2.m32 * m1.m21 + m2.m33 * m1.m31 + m2.m34 * m1.m41;\n    var m32 = m2.m31 * m1.m12 + m2.m32 * m1.m22 + m2.m33 * m1.m32 + m2.m34 * m1.m42;\n    var m33 = m2.m31 * m1.m13 + m2.m32 * m1.m23 + m2.m33 * m1.m33 + m2.m34 * m1.m43;\n    var m34 = m2.m31 * m1.m14 + m2.m32 * m1.m24 + m2.m33 * m1.m34 + m2.m34 * m1.m44;\n\n    var m41 = m2.m41 * m1.m11 + m2.m42 * m1.m21 + m2.m43 * m1.m31 + m2.m44 * m1.m41;\n    var m42 = m2.m41 * m1.m12 + m2.m42 * m1.m22 + m2.m43 * m1.m32 + m2.m44 * m1.m42;\n    var m43 = m2.m41 * m1.m13 + m2.m42 * m1.m23 + m2.m43 * m1.m33 + m2.m44 * m1.m43;\n    var m44 = m2.m41 * m1.m14 + m2.m42 * m1.m24 + m2.m43 * m1.m34 + m2.m44 * m1.m44;\n\n    return fromArray(\n      [m11, m12, m13, m14,\n        m21, m22, m23, m24,\n        m31, m32, m33, m34,\n        m41, m42, m43, m44]\n    );\n  }\n\n  /**\n   * Creates and returns a new `DOMMatrix` compatible instance\n   * with equivalent instance.\n   * @class CSSMatrix\n   *\n   * @author thednp <https://github.com/thednp/DOMMatrix/>\n   * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix\n   */\n\n  var CSSMatrix = function CSSMatrix() {\n    var args = [], len = arguments.length;\n    while ( len-- ) args[ len ] = arguments[ len ];\n\n    var m = this;\n    // array 6\n    m.a = 1; m.b = 0;\n    m.c = 0; m.d = 1;\n    m.e = 0; m.f = 0;\n    // array 16\n    m.m11 = 1; m.m12 = 0; m.m13 = 0; m.m14 = 0;\n    m.m21 = 0; m.m22 = 1; m.m23 = 0; m.m24 = 0;\n    m.m31 = 0; m.m32 = 0; m.m33 = 1; m.m34 = 0;\n    m.m41 = 0; m.m42 = 0; m.m43 = 0; m.m44 = 1;\n\n    if (args.length) {\n      var ARGS = [16, 6].some(function (l) { return l === args.length; }) ? args : args[0];\n\n      return m.setMatrixValue(ARGS);\n    }\n    return m;\n  };\n\n  var prototypeAccessors = { isIdentity: { configurable: true },is2D: { configurable: true } };\n\n  /**\n   * A `Boolean` whose value is `true` if the matrix is the identity matrix. The identity\n   * matrix is one in which every value is 0 except those on the main diagonal from top-left\n   * to bottom-right corner (in other words, where the offsets in each direction are equal).\n   *\n   * @return {boolean} the current property value\n   */\n  prototypeAccessors.isIdentity.get = function () {\n    var m = this;\n    return (m.m11 === 1 && m.m12 === 0 && m.m13 === 0 && m.m14 === 0\n            && m.m21 === 0 && m.m22 === 1 && m.m23 === 0 && m.m24 === 0\n            && m.m31 === 0 && m.m32 === 0 && m.m33 === 1 && m.m34 === 0\n            && m.m41 === 0 && m.m42 === 0 && m.m43 === 0 && m.m44 === 1);\n  };\n\n  /**\n   * A `Boolean` flag whose value is `true` if the matrix was initialized as a 2D matrix\n   * and `false` if the matrix is 3D.\n   *\n   * @return {boolean} the current property value\n   */\n  prototypeAccessors.is2D.get = function () {\n    var m = this;\n    return (m.m31 === 0 && m.m32 === 0 && m.m33 === 1 && m.m34 === 0 && m.m43 === 0 && m.m44 === 1);\n  };\n\n  /**\n   * The `setMatrixValue` method replaces the existing matrix with one computed\n   * in the browser. EG: `matrix(1,0.25,-0.25,1,0,0)`\n   *\n   * The method accepts any *Array* values, the result of\n   * `DOMMatrix` instance method `toFloat64Array()` / `toFloat32Array()` calls\n   *or `CSSMatrix` instance method `toArray()`.\n   *\n   * This method expects valid *matrix()* / *matrix3d()* string values, as well\n   * as other transform functions like *translateX(10px)*.\n   *\n   * @param {string | CSSM.matrix | CSSM.matrix3d | CSSMatrix | DOMMatrix | CSSM.JSONMatrix} source\n   * @return {CSSMatrix} the matrix instance\n   */\n  CSSMatrix.prototype.setMatrixValue = function setMatrixValue (source) {\n    var m = this;\n\n    // CSS transform string source - TransformList first\n    if (typeof source === 'string' && source.length && source !== 'none') {\n      return fromString(source);\n    }\n    // [Arguments list | Array] come second\n    if ([Array, Float64Array, Float32Array].some(function (a) { return source instanceof a; })) {\n      // @ts-ignore\n      return fromArray(source);\n    }\n    // new CSSMatrix(CSSMatrix | DOMMatrix | JSON) last\n    if ([CSSMatrix, DOMMatrix, Object].some(function (a) { return source instanceof a; })) {\n      // @ts-ignore\n      return fromMatrix(source);\n    }\n\n    return m;\n  };\n\n  /**\n   * Returns a *Float32Array* containing elements which comprise the matrix.\n   * The method can return either the 16 elements or the 6 elements\n   * depending on the value of the `is2D` parameter.\n   *\n   * @param {boolean=} is2D *Array* representation of the matrix\n   * @return {Float32Array} an *Array* representation of the matrix\n   */\n  CSSMatrix.prototype.toFloat32Array = function toFloat32Array (is2D) {\n    return Float32Array.from(toArray(this, is2D));\n  };\n\n  /**\n   * Returns a *Float64Array* containing elements which comprise the matrix.\n   * The method can return either the 16 elements or the 6 elements\n   * depending on the value of the `is2D` parameter.\n   *\n   * @param {boolean=} is2D *Array* representation of the matrix\n   * @return {Float64Array} an *Array* representation of the matrix\n   */\n  CSSMatrix.prototype.toFloat64Array = function toFloat64Array (is2D) {\n    return Float64Array.from(toArray(this, is2D));\n  };\n\n  /**\n   * Creates and returns a string representation of the matrix in `CSS` matrix syntax,\n   * using the appropriate `CSS` matrix notation.\n   *\n   * matrix3d *matrix3d(m11, m12, m13, m14, m21, ...)*\n   * matrix *matrix(a, b, c, d, e, f)*\n   *\n   * @return {string} a string representation of the matrix\n   */\n  CSSMatrix.prototype.toString = function toString () {\n    var m = this;\n    var is2D = m.is2D;\n    var values = m.toFloat64Array(is2D).join(', ');\n    var type = is2D ? 'matrix' : 'matrix3d';\n    return (type + \"(\" + values + \")\");\n  };\n\n  /**\n   * Returns a JSON representation of the `CSSMatrix` instance, a standard *Object*\n   * that includes `{a,b,c,d,e,f}` and `{m11,m12,m13,..m44}` properties as well\n   * as the `is2D` & `isIdentity` properties.\n   *\n   * The result can also be used as a second parameter for the `fromMatrix` static method\n   * to load values into another matrix instance.\n   *\n   * @return {CSSM.JSONMatrix} an *Object* with all matrix values.\n   */\n  CSSMatrix.prototype.toJSON = function toJSON () {\n    var m = this;\n    var is2D = m.is2D;\n      var isIdentity = m.isIdentity;\n    return Object.assign({}, m, {is2D: is2D, isIdentity: isIdentity});\n  };\n\n  /**\n   * The Multiply method returns a new CSSMatrix which is the result of this\n   * matrix multiplied by the passed matrix, with the passed matrix to the right.\n   * This matrix is not modified.\n   *\n   * @param {CSSMatrix | DOMMatrix | CSSM.JSONMatrix} m2 CSSMatrix\n   * @return {CSSMatrix} The resulted matrix.\n   */\n  CSSMatrix.prototype.multiply = function multiply (m2) {\n    return Multiply(this, m2);\n  };\n\n  /**\n   * The translate method returns a new matrix which is this matrix post\n   * multiplied by a translation matrix containing the passed values. If the z\n   * component is undefined, a 0 value is used in its place. This matrix is not\n   * modified.\n   *\n   * @param {number} x X component of the translation value.\n   * @param {number=} y Y component of the translation value.\n   * @param {number=} z Z component of the translation value.\n   * @return {CSSMatrix} The resulted matrix\n   */\n  CSSMatrix.prototype.translate = function translate (x, y, z) {\n    var X = x;\n    var Y = y;\n    var Z = z;\n    if (Y === undefined) { Y = 0; }\n    if (Z === undefined) { Z = 0; }\n    return Multiply(this, Translate(X, Y, Z));\n  };\n\n  /**\n   * The scale method returns a new matrix which is this matrix post multiplied by\n   * a scale matrix containing the passed values. If the z component is undefined,\n   * a 1 value is used in its place. If the y component is undefined, the x\n   * component value is used in its place. This matrix is not modified.\n   *\n   * @param {number} x The X component of the scale value.\n   * @param {number=} y The Y component of the scale value.\n   * @param {number=} z The Z component of the scale value.\n   * @return {CSSMatrix} The resulted matrix\n   */\n  CSSMatrix.prototype.scale = function scale (x, y, z) {\n    var X = x;\n    var Y = y;\n    var Z = z;\n    if (Y === undefined) { Y = x; }\n    if (Z === undefined) { Z = 1; } // Z must be 1 if undefined\n\n    return Multiply(this, Scale(X, Y, Z));\n  };\n\n  /**\n   * The rotate method returns a new matrix which is this matrix post multiplied\n   * by each of 3 rotation matrices about the major axes, first X, then Y, then Z.\n   * If the y and z components are undefined, the x value is used to rotate the\n   * object about the z axis, as though the vector (0,0,x) were passed. All\n   * rotation values are in degrees. This matrix is not modified.\n   *\n   * @param {number} rx The X component of the rotation, or Z if Y and Z are null.\n   * @param {number=} ry The (optional) Y component of the rotation value.\n   * @param {number=} rz The (optional) Z component of the rotation value.\n   * @return {CSSMatrix} The resulted matrix\n   */\n  CSSMatrix.prototype.rotate = function rotate (rx, ry, rz) {\n    var RX = rx;\n    var RY = ry || 0;\n    var RZ = rz || 0;\n\n    if (typeof rx === 'number' && ry === undefined && rz === undefined) {\n      RZ = RX; RX = 0; RY = 0;\n    }\n\n    return Multiply(this, Rotate(RX, RY, RZ));\n  };\n\n  /**\n   * The rotateAxisAngle method returns a new matrix which is this matrix post\n   * multiplied by a rotation matrix with the given axis and `angle`. The right-hand\n   * rule is used to determine the direction of rotation. All rotation values are\n   * in degrees. This matrix is not modified.\n   *\n   * @param {number} x The X component of the axis vector.\n   * @param {number} y The Y component of the axis vector.\n   * @param {number} z The Z component of the axis vector.\n   * @param {number} angle The angle of rotation about the axis vector, in degrees.\n   * @return {CSSMatrix} The resulted matrix\n   */\n  CSSMatrix.prototype.rotateAxisAngle = function rotateAxisAngle (x, y, z, angle) {\n    if ([x, y, z, angle].some(function (n) { return Number.isNaN(+n); })) {\n      throw new TypeError('CSSMatrix: expecting 4 values');\n    }\n    return Multiply(this, RotateAxisAngle(x, y, z, angle));\n  };\n\n  /**\n   * Specifies a skew transformation along the `x-axis` by the given angle.\n   * This matrix is not modified.\n   *\n   * @param {number} angle The angle amount in degrees to skew.\n   * @return {CSSMatrix} The resulted matrix\n   */\n  CSSMatrix.prototype.skewX = function skewX (angle) {\n    return Multiply(this, SkewX(angle));\n  };\n\n  /**\n   * Specifies a skew transformation along the `y-axis` by the given angle.\n   * This matrix is not modified.\n   *\n   * @param {number} angle The angle amount in degrees to skew.\n   * @return {CSSMatrix} The resulted matrix\n   */\n  CSSMatrix.prototype.skewY = function skewY (angle) {\n    return Multiply(this, SkewY(angle));\n  };\n\n  /**\n   * Specifies a skew transformation along both the `x-axis` and `y-axis`.\n   * This matrix is not modified.\n   *\n   * @param {number} angleX The X-angle amount in degrees to skew.\n   * @param {number} angleY The angle amount in degrees to skew.\n   * @return {CSSMatrix} The resulted matrix\n   */\n  CSSMatrix.prototype.skew = function skew (angleX, angleY) {\n    return Multiply(this, Skew(angleX, angleY));\n  };\n\n  /**\n   * Transforms a specified vector using the matrix, returning a new\n   * {x,y,z,w} Tuple *Object* comprising the transformed vector.\n   * Neither the matrix nor the original vector are altered.\n   *\n   * The method is equivalent with `transformPoint()` method\n   * of the `DOMMatrix` constructor.\n   *\n   * @param {CSSM.PointTuple | DOMPoint} t Tuple with `{x,y,z,w}` components\n   * @return {CSSM.PointTuple | DOMPoint} the resulting Tuple\n   */\n  CSSMatrix.prototype.transformPoint = function transformPoint (t) {\n    var m = this;\n\n    var x = m.m11 * t.x + m.m21 * t.y + m.m31 * t.z + m.m41 * t.w;\n    var y = m.m12 * t.x + m.m22 * t.y + m.m32 * t.z + m.m42 * t.w;\n    var z = m.m13 * t.x + m.m23 * t.y + m.m33 * t.z + m.m43 * t.w;\n    var w = m.m14 * t.x + m.m24 * t.y + m.m34 * t.z + m.m44 * t.w;\n\n    return t instanceof DOMPoint\n      ? new DOMPoint(x, y, z, w)\n      : {\n        x: x, y: y, z: z, w: w,\n      };\n  };\n\n  Object.defineProperties( CSSMatrix.prototype, prototypeAccessors );\n\n  // Add Transform Functions to CSSMatrix object\n  // without creating a TypeScript namespace.\n  Object.assign(CSSMatrix, {\n    Translate: Translate,\n    Rotate: Rotate,\n    RotateAxisAngle: RotateAxisAngle,\n    Scale: Scale,\n    SkewX: SkewX,\n    SkewY: SkewY,\n    Skew: Skew,\n    Multiply: Multiply,\n    fromArray: fromArray,\n    fromMatrix: fromMatrix,\n    fromString: fromString,\n    toArray: toArray,\n  });\n\n  var version = \"1.0.3\";\n\n  /**\n   * A global namespace for library version.\n   * @type {string}\n   */\n  var Version = version;\n\n  /** @typedef {import('../types/index')} */\n\n  Object.assign(CSSMatrix, { Version: Version });\n\n  return CSSMatrix;\n\n}));\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/dommatrix/dist/dommatrix.js?");

/***/ }),

/***/ "../../node_modules/pdfjs-dist216/legacy/build/pdf.js":
/*!************************************************************!*\
  !*** ../../node_modules/pdfjs-dist216/legacy/build/pdf.js ***!
  \************************************************************/
/***/ (function(module, exports, __webpack_require__) {

eval("/* module decorator */ module = __webpack_require__.nmd(module);\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _defineProperty2=__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\");var _get=__webpack_require__(/*! @babel/runtime-corejs3/helpers/get */ \"../../node_modules/@babel/runtime-corejs3/helpers/get.js\");var _assertThisInitialized=__webpack_require__(/*! @babel/runtime-corejs3/helpers/assertThisInitialized */ \"../../node_modules/@babel/runtime-corejs3/helpers/assertThisInitialized.js\");var _extends=__webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.js\");var _regeneratorRuntime=__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\");var _asyncToGenerator=__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\");var _toConsumableArray=__webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js\");var _slicedToArray=__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\");var _createClass=__webpack_require__(/*! @babel/runtime-corejs3/helpers/createClass */ \"../../node_modules/@babel/runtime-corejs3/helpers/createClass.js\");var _classCallCheck=__webpack_require__(/*! @babel/runtime-corejs3/helpers/classCallCheck */ \"../../node_modules/@babel/runtime-corejs3/helpers/classCallCheck.js\");var _possibleConstructorReturn=__webpack_require__(/*! @babel/runtime-corejs3/helpers/possibleConstructorReturn */ \"../../node_modules/@babel/runtime-corejs3/helpers/possibleConstructorReturn.js\");var _getPrototypeOf=__webpack_require__(/*! @babel/runtime-corejs3/helpers/getPrototypeOf */ \"../../node_modules/@babel/runtime-corejs3/helpers/getPrototypeOf.js\");var _inherits=__webpack_require__(/*! @babel/runtime-corejs3/helpers/inherits */ \"../../node_modules/@babel/runtime-corejs3/helpers/inherits.js\");var _globalThis=__webpack_require__(/*! @babel/runtime-corejs3/core-js/global-this */ \"../../node_modules/@babel/runtime-corejs3/core-js/global-this.js\");var _Object$defineProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");var _Number$isInteger=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/number/is-integer */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/number/is-integer.js\");var _startsWithInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/starts-with */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/starts-with.js\");var _URL=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/url */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/url.js\");var _Object$keys=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");var _mapInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\");var _keysInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/keys.js\");var _padStartInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/pad-start */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/pad-start.js\");var _concatInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");var _sliceInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js\");var _Promise=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/promise */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.js\");var _Object$getOwnPropertyDescriptor=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");var _Symbol=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/symbol */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js\");var _Symbol$iterator=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/symbol/iterator */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol/iterator.js\");var _Object$getOwnPropertySymbols=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");var _Object$getOwnPropertyNames=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-names */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-names.js\");var _indexOfInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/index-of */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js\");var _Math$trunc=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/math/trunc */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/math/trunc.js\");var _Object$defineProperties=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");var _Object$getPrototypeOf=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-prototype-of */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-prototype-of.js\");var _Object$setPrototypeOf=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/set-prototype-of */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/set-prototype-of.js\");var _entriesInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/entries */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/entries.js\");var _spliceInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/splice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/splice.js\");var _Object$isExtensible=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/is-extensible */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/is-extensible.js\");var _Object$preventExtensions=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/prevent-extensions */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/prevent-extensions.js\");var _Array$from=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/array/from */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js\");var _flagsInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/flags */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/flags.js\");var _Set=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/set.js\");var _Map=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/map.js\");var _valuesInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/values */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/values.js\");var _setTimeout=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set-timeout */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/set-timeout.js\");var _WeakMap=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");var _Object$freeze=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/freeze */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/freeze.js\");var _WeakSet=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-set */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-set.js\");var _Object$entries2=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/entries */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/entries.js\");var _JSON$stringify=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/json/stringify */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/json/stringify.js\");var _includesInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\");var _filterInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");var _trimInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/trim */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim.js\");var _lastIndexOfInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/last-index-of */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/last-index-of.js\");var _padEndInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/pad-end */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/pad-end.js\");var _parseInt=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/parse-int */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.js\");var _Math$sign=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/math/sign */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/math/sign.js\");var _Math$hypot=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/math/hypot */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/math/hypot.js\");var _fillInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/fill */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/fill.js\");var _Math$fround=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/math/fround */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/math/fround.js\");var _trimEndInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/trim-end */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim-end.js\");var _parseFloat=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/parse-float */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/parse-float.js\");var _reduceInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/reduce */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce.js\");var _Object$values2=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/values */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/values.js\");var _findIndexInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find-index */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find-index.js\");var _sortInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/sort */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/sort.js\");var _Reflect$construct=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/reflect/construct */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/reflect/construct.js\");var _getIteratorMethod=__webpack_require__(/*! @babel/runtime-corejs3/core-js/get-iterator-method */ \"../../node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js\");var _Object$getOwnPropertyDescriptors=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");var _typeof=__webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");function ownKeys(e,r){var t=_Object$keys(e);if(_Object$getOwnPropertySymbols){var o=_Object$getOwnPropertySymbols(e);r&&(o=_filterInstanceProperty(o).call(o,function(r){return _Object$getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty2(e,r,t[r]);}):_Object$getOwnPropertyDescriptors?_Object$defineProperties(e,_Object$getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){_Object$defineProperty(e,r,_Object$getOwnPropertyDescriptor(t,r));});}return e;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof _Symbol!==\"undefined\"&&_getIteratorMethod(o)||o[\"@@iterator\"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length===\"number\"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){var _context144;if(!o)return;if(typeof o===\"string\")return _arrayLikeToArray(o,minLen);var n=_sliceInstanceProperty(_context144=Object.prototype.toString.call(o)).call(_context144,8,-1);if(n===\"Object\"&&o.constructor)n=o.constructor.name;if(n===\"Map\"||n===\"Set\")return _Array$from(o);if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?_Reflect$construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(_Reflect$construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");__webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");__webpack_require__(/*! core-js/modules/es.array-buffer.constructor.js */ \"../../node_modules/core-js/modules/es.array-buffer.constructor.js\");__webpack_require__(/*! core-js/modules/es.array-buffer.slice.js */ \"../../node_modules/core-js/modules/es.array-buffer.slice.js\");__webpack_require__(/*! core-js/modules/es.data-view.js */ \"../../node_modules/core-js/modules/es.data-view.js\");__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");__webpack_require__(/*! core-js/modules/es.map.js */ \"../../node_modules/core-js/modules/es.map.js\");__webpack_require__(/*! core-js/modules/es.number.to-fixed.js */ \"../../node_modules/core-js/modules/es.number.to-fixed.js\");__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");__webpack_require__(/*! core-js/modules/es.promise.js */ \"../../node_modules/core-js/modules/es.promise.js\");__webpack_require__(/*! core-js/modules/es.promise.finally.js */ \"../../node_modules/core-js/modules/es.promise.finally.js\");__webpack_require__(/*! core-js/modules/es.regexp.constructor.js */ \"../../node_modules/core-js/modules/es.regexp.constructor.js\");__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");__webpack_require__(/*! core-js/modules/es.regexp.flags.js */ \"../../node_modules/core-js/modules/es.regexp.flags.js\");__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");__webpack_require__(/*! core-js/modules/es.set.js */ \"../../node_modules/core-js/modules/es.set.js\");__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");__webpack_require__(/*! core-js/modules/es.string.match.js */ \"../../node_modules/core-js/modules/es.string.match.js\");__webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");__webpack_require__(/*! core-js/modules/es.string.bold.js */ \"../../node_modules/core-js/modules/es.string.bold.js\");__webpack_require__(/*! core-js/modules/es.string.italics.js */ \"../../node_modules/core-js/modules/es.string.italics.js\");__webpack_require__(/*! core-js/modules/es.typed-array.float64-array.js */ \"../../node_modules/core-js/modules/es.typed-array.float64-array.js\");__webpack_require__(/*! core-js/modules/es.typed-array.int32-array.js */ \"../../node_modules/core-js/modules/es.typed-array.int32-array.js\");__webpack_require__(/*! core-js/modules/es.typed-array.uint8-array.js */ \"../../node_modules/core-js/modules/es.typed-array.uint8-array.js\");__webpack_require__(/*! core-js/modules/es.typed-array.uint32-array.js */ \"../../node_modules/core-js/modules/es.typed-array.uint32-array.js\");__webpack_require__(/*! core-js/modules/es.typed-array.copy-within.js */ \"../../node_modules/core-js/modules/es.typed-array.copy-within.js\");__webpack_require__(/*! core-js/modules/es.typed-array.every.js */ \"../../node_modules/core-js/modules/es.typed-array.every.js\");__webpack_require__(/*! core-js/modules/es.typed-array.fill.js */ \"../../node_modules/core-js/modules/es.typed-array.fill.js\");__webpack_require__(/*! core-js/modules/es.typed-array.filter.js */ \"../../node_modules/core-js/modules/es.typed-array.filter.js\");__webpack_require__(/*! core-js/modules/es.typed-array.find.js */ \"../../node_modules/core-js/modules/es.typed-array.find.js\");__webpack_require__(/*! core-js/modules/es.typed-array.find-index.js */ \"../../node_modules/core-js/modules/es.typed-array.find-index.js\");__webpack_require__(/*! core-js/modules/es.typed-array.for-each.js */ \"../../node_modules/core-js/modules/es.typed-array.for-each.js\");__webpack_require__(/*! core-js/modules/es.typed-array.includes.js */ \"../../node_modules/core-js/modules/es.typed-array.includes.js\");__webpack_require__(/*! core-js/modules/es.typed-array.index-of.js */ \"../../node_modules/core-js/modules/es.typed-array.index-of.js\");__webpack_require__(/*! core-js/modules/es.typed-array.iterator.js */ \"../../node_modules/core-js/modules/es.typed-array.iterator.js\");__webpack_require__(/*! core-js/modules/es.typed-array.join.js */ \"../../node_modules/core-js/modules/es.typed-array.join.js\");__webpack_require__(/*! core-js/modules/es.typed-array.last-index-of.js */ \"../../node_modules/core-js/modules/es.typed-array.last-index-of.js\");__webpack_require__(/*! core-js/modules/es.typed-array.map.js */ \"../../node_modules/core-js/modules/es.typed-array.map.js\");__webpack_require__(/*! core-js/modules/es.typed-array.reduce.js */ \"../../node_modules/core-js/modules/es.typed-array.reduce.js\");__webpack_require__(/*! core-js/modules/es.typed-array.reduce-right.js */ \"../../node_modules/core-js/modules/es.typed-array.reduce-right.js\");__webpack_require__(/*! core-js/modules/es.typed-array.reverse.js */ \"../../node_modules/core-js/modules/es.typed-array.reverse.js\");__webpack_require__(/*! core-js/modules/es.typed-array.set.js */ \"../../node_modules/core-js/modules/es.typed-array.set.js\");__webpack_require__(/*! core-js/modules/es.typed-array.slice.js */ \"../../node_modules/core-js/modules/es.typed-array.slice.js\");__webpack_require__(/*! core-js/modules/es.typed-array.some.js */ \"../../node_modules/core-js/modules/es.typed-array.some.js\");__webpack_require__(/*! core-js/modules/es.typed-array.sort.js */ \"../../node_modules/core-js/modules/es.typed-array.sort.js\");__webpack_require__(/*! core-js/modules/es.typed-array.subarray.js */ \"../../node_modules/core-js/modules/es.typed-array.subarray.js\");__webpack_require__(/*! core-js/modules/es.typed-array.to-locale-string.js */ \"../../node_modules/core-js/modules/es.typed-array.to-locale-string.js\");__webpack_require__(/*! core-js/modules/es.typed-array.to-string.js */ \"../../node_modules/core-js/modules/es.typed-array.to-string.js\");__webpack_require__(/*! core-js/modules/esnext.promise.all-settled.js */ \"../../node_modules/core-js/modules/esnext.promise.all-settled.js\");__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");/**\n * @licstart The following is the entire license notice for the\n * JavaScript code in this page\n *\n * Copyright 2022 Mozilla Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * @licend The above is the entire license notice for the\n * JavaScript code in this page\n */(function webpackUniversalModuleDefinition(root,factory){if(( false?0:_typeof(exports))==='object'&&( false?0:_typeof(module))==='object')module.exports=factory();else if(true)!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}})(_globalThis,function(){return/******/function(){// webpackBootstrap\n/******/var __webpack_modules__=[/* 0 */,(/* 1 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";var _context,_context2;_Object$defineProperty(exports,\"__esModule\",{value:true});exports.VerbosityLevel=exports.Util=exports.UnknownErrorException=exports.UnexpectedResponseException=exports.UNSUPPORTED_FEATURES=exports.TextRenderingMode=exports.StreamType=exports.RenderingIntentFlag=exports.PermissionFlag=exports.PasswordResponses=exports.PasswordException=exports.PageActionEventType=exports.OPS=exports.MissingPDFException=exports.LINE_FACTOR=exports.LINE_DESCENT_FACTOR=exports.InvalidPDFException=exports.ImageKind=exports.IDENTITY_MATRIX=exports.FormatError=exports.FontType=exports.FeatureTest=exports.FONT_IDENTITY_MATRIX=exports.DocumentActionEventType=exports.CMapCompressionType=exports.BaseException=exports.AnnotationType=exports.AnnotationStateModelType=exports.AnnotationReviewState=exports.AnnotationReplyType=exports.AnnotationMode=exports.AnnotationMarkedState=exports.AnnotationFlag=exports.AnnotationFieldFlag=exports.AnnotationEditorType=exports.AnnotationEditorPrefix=exports.AnnotationEditorParamsType=exports.AnnotationBorderStyleType=exports.AnnotationActionEventType=exports.AbortException=void 0;exports.arrayByteLength=arrayByteLength;exports.arraysToBytes=arraysToBytes;exports.assert=assert;exports.bytesToString=bytesToString;exports.createPromiseCapability=createPromiseCapability;exports.createValidAbsoluteUrl=createValidAbsoluteUrl;exports.escapeString=escapeString;exports.getModificationDate=getModificationDate;exports.getVerbosityLevel=getVerbosityLevel;exports.info=info;exports.isArrayBuffer=isArrayBuffer;exports.isArrayEqual=isArrayEqual;exports.isAscii=isAscii;exports.objectFromMap=objectFromMap;exports.objectSize=objectSize;exports.setVerbosityLevel=setVerbosityLevel;exports.shadow=shadow;exports.string32=string32;exports.stringToBytes=stringToBytes;exports.stringToPDFString=stringToPDFString;exports.stringToUTF16BEString=stringToUTF16BEString;exports.stringToUTF8String=stringToUTF8String;exports.unreachable=unreachable;exports.utf8StringToString=utf8StringToString;exports.warn=warn;__w_pdfjs_require__(2);var IDENTITY_MATRIX=[1,0,0,1,0,0];exports.IDENTITY_MATRIX=IDENTITY_MATRIX;var FONT_IDENTITY_MATRIX=[0.001,0,0,0.001,0,0];exports.FONT_IDENTITY_MATRIX=FONT_IDENTITY_MATRIX;var LINE_FACTOR=1.35;exports.LINE_FACTOR=LINE_FACTOR;var LINE_DESCENT_FACTOR=0.35;exports.LINE_DESCENT_FACTOR=LINE_DESCENT_FACTOR;var RenderingIntentFlag={ANY:0x01,DISPLAY:0x02,PRINT:0x04,ANNOTATIONS_FORMS:0x10,ANNOTATIONS_STORAGE:0x20,ANNOTATIONS_DISABLE:0x40,OPLIST:0x100};exports.RenderingIntentFlag=RenderingIntentFlag;var AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};exports.AnnotationMode=AnnotationMode;var AnnotationEditorPrefix=\"pdfjs_internal_editor_\";exports.AnnotationEditorPrefix=AnnotationEditorPrefix;var AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,INK:15};exports.AnnotationEditorType=AnnotationEditorType;var AnnotationEditorParamsType={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13};exports.AnnotationEditorParamsType=AnnotationEditorParamsType;var PermissionFlag={PRINT:0x04,MODIFY_CONTENTS:0x08,COPY:0x10,MODIFY_ANNOTATIONS:0x20,FILL_INTERACTIVE_FORMS:0x100,COPY_FOR_ACCESSIBILITY:0x200,ASSEMBLE:0x400,PRINT_HIGH_QUALITY:0x800};exports.PermissionFlag=PermissionFlag;var TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};exports.TextRenderingMode=TextRenderingMode;var ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};exports.ImageKind=ImageKind;var AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};exports.AnnotationType=AnnotationType;var AnnotationStateModelType={MARKED:\"Marked\",REVIEW:\"Review\"};exports.AnnotationStateModelType=AnnotationStateModelType;var AnnotationMarkedState={MARKED:\"Marked\",UNMARKED:\"Unmarked\"};exports.AnnotationMarkedState=AnnotationMarkedState;var AnnotationReviewState={ACCEPTED:\"Accepted\",REJECTED:\"Rejected\",CANCELLED:\"Cancelled\",COMPLETED:\"Completed\",NONE:\"None\"};exports.AnnotationReviewState=AnnotationReviewState;var AnnotationReplyType={GROUP:\"Group\",REPLY:\"R\"};exports.AnnotationReplyType=AnnotationReplyType;var AnnotationFlag={INVISIBLE:0x01,HIDDEN:0x02,PRINT:0x04,NOZOOM:0x08,NOROTATE:0x10,NOVIEW:0x20,READONLY:0x40,LOCKED:0x80,TOGGLENOVIEW:0x100,LOCKEDCONTENTS:0x200};exports.AnnotationFlag=AnnotationFlag;var AnnotationFieldFlag={READONLY:0x0000001,REQUIRED:0x0000002,NOEXPORT:0x0000004,MULTILINE:0x0001000,PASSWORD:0x0002000,NOTOGGLETOOFF:0x0004000,RADIO:0x0008000,PUSHBUTTON:0x0010000,COMBO:0x0020000,EDIT:0x0040000,SORT:0x0080000,FILESELECT:0x0100000,MULTISELECT:0x0200000,DONOTSPELLCHECK:0x0400000,DONOTSCROLL:0x0800000,COMB:0x1000000,RICHTEXT:0x2000000,RADIOSINUNISON:0x2000000,COMMITONSELCHANGE:0x4000000};exports.AnnotationFieldFlag=AnnotationFieldFlag;var AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};exports.AnnotationBorderStyleType=AnnotationBorderStyleType;var AnnotationActionEventType={E:\"Mouse Enter\",X:\"Mouse Exit\",D:\"Mouse Down\",U:\"Mouse Up\",Fo:\"Focus\",Bl:\"Blur\",PO:\"PageOpen\",PC:\"PageClose\",PV:\"PageVisible\",PI:\"PageInvisible\",K:\"Keystroke\",F:\"Format\",V:\"Validate\",C:\"Calculate\"};exports.AnnotationActionEventType=AnnotationActionEventType;var DocumentActionEventType={WC:\"WillClose\",WS:\"WillSave\",DS:\"DidSave\",WP:\"WillPrint\",DP:\"DidPrint\"};exports.DocumentActionEventType=DocumentActionEventType;var PageActionEventType={O:\"PageOpen\",C:\"PageClose\"};exports.PageActionEventType=PageActionEventType;var StreamType={UNKNOWN:\"UNKNOWN\",FLATE:\"FLATE\",LZW:\"LZW\",DCT:\"DCT\",JPX:\"JPX\",JBIG:\"JBIG\",A85:\"A85\",AHX:\"AHX\",CCF:\"CCF\",RLX:\"RLX\"};exports.StreamType=StreamType;var FontType={UNKNOWN:\"UNKNOWN\",TYPE1:\"TYPE1\",TYPE1STANDARD:\"TYPE1STANDARD\",TYPE1C:\"TYPE1C\",CIDFONTTYPE0:\"CIDFONTTYPE0\",CIDFONTTYPE0C:\"CIDFONTTYPE0C\",TRUETYPE:\"TRUETYPE\",CIDFONTTYPE2:\"CIDFONTTYPE2\",TYPE3:\"TYPE3\",OPENTYPE:\"OPENTYPE\",TYPE0:\"TYPE0\",MMTYPE1:\"MMTYPE1\"};exports.FontType=FontType;var VerbosityLevel={ERRORS:0,WARNINGS:1,INFOS:5};exports.VerbosityLevel=VerbosityLevel;var CMapCompressionType={NONE:0,BINARY:1,STREAM:2};exports.CMapCompressionType=CMapCompressionType;var OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};exports.OPS=OPS;var UNSUPPORTED_FEATURES={unknown:\"unknown\",forms:\"forms\",javaScript:\"javaScript\",signatures:\"signatures\",smask:\"smask\",shadingPattern:\"shadingPattern\",font:\"font\",errorTilingPattern:\"errorTilingPattern\",errorExtGState:\"errorExtGState\",errorXObject:\"errorXObject\",errorFontLoadType3:\"errorFontLoadType3\",errorFontState:\"errorFontState\",errorFontMissing:\"errorFontMissing\",errorFontTranslate:\"errorFontTranslate\",errorColorSpace:\"errorColorSpace\",errorOperatorList:\"errorOperatorList\",errorFontToUnicode:\"errorFontToUnicode\",errorFontLoadNative:\"errorFontLoadNative\",errorFontBuildPath:\"errorFontBuildPath\",errorFontGetPath:\"errorFontGetPath\",errorMarkedContent:\"errorMarkedContent\",errorContentSubStream:\"errorContentSubStream\"};exports.UNSUPPORTED_FEATURES=UNSUPPORTED_FEATURES;var PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};exports.PasswordResponses=PasswordResponses;var verbosity=VerbosityLevel.WARNINGS;function setVerbosityLevel(level){if(_Number$isInteger(level)){verbosity=level;}}function getVerbosityLevel(){return verbosity;}function info(msg){if(verbosity>=VerbosityLevel.INFOS){console.log(\"Info: \".concat(msg));}}function warn(msg){if(verbosity>=VerbosityLevel.WARNINGS){console.log(\"Warning: \".concat(msg));}}function unreachable(msg){throw new Error(msg);}function assert(cond,msg){if(!cond){unreachable(msg);}}function _isValidProtocol(url){if(!url){return false;}switch(url.protocol){case\"http:\":case\"https:\":case\"ftp:\":case\"mailto:\":case\"tel:\":return true;default:return false;}}function createValidAbsoluteUrl(url){var baseUrl=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;if(!url){return null;}try{if(options&&typeof url===\"string\"){if(options.addDefaultProtocol&&_startsWithInstanceProperty(url).call(url,\"www.\")){var dots=url.match(/\\./g);if(dots&&dots.length>=2){url=\"http://\".concat(url);}}if(options.tryConvertEncoding){try{url=stringToUTF8String(url);}catch(ex){}}}var absoluteUrl=baseUrl?new _URL(url,baseUrl):new _URL(url);if(_isValidProtocol(absoluteUrl)){return absoluteUrl;}}catch(ex){}return null;}function shadow(obj,prop,value){_Object$defineProperty(obj,prop,{value:value,enumerable:true,configurable:true,writable:false});return value;}var BaseException=function BaseExceptionClosure(){function BaseException(message,name){if(this.constructor===BaseException){unreachable(\"Cannot initialize BaseException.\");}this.message=message;this.name=name;}BaseException.prototype=new Error();BaseException.constructor=BaseException;return BaseException;}();exports.BaseException=BaseException;var PasswordException=/*#__PURE__*/function(_BaseException){_inherits(PasswordException,_BaseException);function PasswordException(msg,code){var _this;_classCallCheck(this,PasswordException);_this=_callSuper(this,PasswordException,[msg,\"PasswordException\"]);_this.code=code;return _this;}return _createClass(PasswordException);}(BaseException);exports.PasswordException=PasswordException;var UnknownErrorException=/*#__PURE__*/function(_BaseException2){_inherits(UnknownErrorException,_BaseException2);function UnknownErrorException(msg,details){var _this2;_classCallCheck(this,UnknownErrorException);_this2=_callSuper(this,UnknownErrorException,[msg,\"UnknownErrorException\"]);_this2.details=details;return _this2;}return _createClass(UnknownErrorException);}(BaseException);exports.UnknownErrorException=UnknownErrorException;var InvalidPDFException=/*#__PURE__*/function(_BaseException3){_inherits(InvalidPDFException,_BaseException3);function InvalidPDFException(msg){_classCallCheck(this,InvalidPDFException);return _callSuper(this,InvalidPDFException,[msg,\"InvalidPDFException\"]);}return _createClass(InvalidPDFException);}(BaseException);exports.InvalidPDFException=InvalidPDFException;var MissingPDFException=/*#__PURE__*/function(_BaseException4){_inherits(MissingPDFException,_BaseException4);function MissingPDFException(msg){_classCallCheck(this,MissingPDFException);return _callSuper(this,MissingPDFException,[msg,\"MissingPDFException\"]);}return _createClass(MissingPDFException);}(BaseException);exports.MissingPDFException=MissingPDFException;var UnexpectedResponseException=/*#__PURE__*/function(_BaseException5){_inherits(UnexpectedResponseException,_BaseException5);function UnexpectedResponseException(msg,status){var _this3;_classCallCheck(this,UnexpectedResponseException);_this3=_callSuper(this,UnexpectedResponseException,[msg,\"UnexpectedResponseException\"]);_this3.status=status;return _this3;}return _createClass(UnexpectedResponseException);}(BaseException);exports.UnexpectedResponseException=UnexpectedResponseException;var FormatError=/*#__PURE__*/function(_BaseException6){_inherits(FormatError,_BaseException6);function FormatError(msg){_classCallCheck(this,FormatError);return _callSuper(this,FormatError,[msg,\"FormatError\"]);}return _createClass(FormatError);}(BaseException);exports.FormatError=FormatError;var AbortException=/*#__PURE__*/function(_BaseException7){_inherits(AbortException,_BaseException7);function AbortException(msg){_classCallCheck(this,AbortException);return _callSuper(this,AbortException,[msg,\"AbortException\"]);}return _createClass(AbortException);}(BaseException);exports.AbortException=AbortException;function bytesToString(bytes){if(_typeof(bytes)!==\"object\"||bytes===null||bytes.length===undefined){unreachable(\"Invalid argument for bytesToString\");}var length=bytes.length;var MAX_ARGUMENT_COUNT=8192;if(length<MAX_ARGUMENT_COUNT){return String.fromCharCode.apply(null,bytes);}var strBuf=[];for(var i=0;i<length;i+=MAX_ARGUMENT_COUNT){var chunkEnd=Math.min(i+MAX_ARGUMENT_COUNT,length);var chunk=bytes.subarray(i,chunkEnd);strBuf.push(String.fromCharCode.apply(null,chunk));}return strBuf.join(\"\");}function stringToBytes(str){if(typeof str!==\"string\"){unreachable(\"Invalid argument for stringToBytes\");}var length=str.length;var bytes=new Uint8Array(length);for(var i=0;i<length;++i){bytes[i]=str.charCodeAt(i)&0xff;}return bytes;}function arrayByteLength(arr){if(arr.length!==undefined){return arr.length;}if(arr.byteLength!==undefined){return arr.byteLength;}unreachable(\"Invalid argument for arrayByteLength\");}function arraysToBytes(arr){var length=arr.length;if(length===1&&arr[0]instanceof Uint8Array){return arr[0];}var resultLength=0;for(var i=0;i<length;i++){resultLength+=arrayByteLength(arr[i]);}var pos=0;var data=new Uint8Array(resultLength);for(var _i=0;_i<length;_i++){var item=arr[_i];if(!(item instanceof Uint8Array)){if(typeof item===\"string\"){item=stringToBytes(item);}else{item=new Uint8Array(item);}}var itemLength=item.byteLength;data.set(item,pos);pos+=itemLength;}return data;}function string32(value){return String.fromCharCode(value>>24&0xff,value>>16&0xff,value>>8&0xff,value&0xff);}function objectSize(obj){return _Object$keys(obj).length;}function objectFromMap(map){var obj=Object.create(null);var _iterator=_createForOfIteratorHelper(map),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),key=_step$value[0],value=_step$value[1];obj[key]=value;}}catch(err){_iterator.e(err);}finally{_iterator.f();}return obj;}function isLittleEndian(){var buffer8=new Uint8Array(4);buffer8[0]=1;var view32=new Uint32Array(buffer8.buffer,0,1);return view32[0]===1;}function isEvalSupported(){try{new Function(\"\");return true;}catch(e){return false;}}var FeatureTest=/*#__PURE__*/function(){function FeatureTest(){_classCallCheck(this,FeatureTest);}_createClass(FeatureTest,null,[{key:\"isLittleEndian\",get:function get(){return shadow(this,\"isLittleEndian\",isLittleEndian());}},{key:\"isEvalSupported\",get:function get(){return shadow(this,\"isEvalSupported\",isEvalSupported());}},{key:\"isOffscreenCanvasSupported\",get:function get(){return shadow(this,\"isOffscreenCanvasSupported\",typeof OffscreenCanvas!==\"undefined\");}}]);return FeatureTest;}();exports.FeatureTest=FeatureTest;var hexNumbers=_mapInstanceProperty(_context=_toConsumableArray(_keysInstanceProperty(_context2=Array(256)).call(_context2))).call(_context,function(n){var _context3;return _padStartInstanceProperty(_context3=n.toString(16)).call(_context3,2,\"0\");});var Util=/*#__PURE__*/function(){function Util(){_classCallCheck(this,Util);}_createClass(Util,null,[{key:\"makeHexColor\",value:function makeHexColor(r,g,b){var _context4,_context5;return _concatInstanceProperty(_context4=_concatInstanceProperty(_context5=\"#\".concat(hexNumbers[r])).call(_context5,hexNumbers[g])).call(_context4,hexNumbers[b]);}},{key:\"scaleMinMax\",value:function scaleMinMax(transform,minMax){var temp;if(transform[0]){if(transform[0]<0){temp=minMax[0];minMax[0]=minMax[1];minMax[1]=temp;}minMax[0]*=transform[0];minMax[1]*=transform[0];if(transform[3]<0){temp=minMax[2];minMax[2]=minMax[3];minMax[3]=temp;}minMax[2]*=transform[3];minMax[3]*=transform[3];}else{temp=minMax[0];minMax[0]=minMax[2];minMax[2]=temp;temp=minMax[1];minMax[1]=minMax[3];minMax[3]=temp;if(transform[1]<0){temp=minMax[2];minMax[2]=minMax[3];minMax[3]=temp;}minMax[2]*=transform[1];minMax[3]*=transform[1];if(transform[2]<0){temp=minMax[0];minMax[0]=minMax[1];minMax[1]=temp;}minMax[0]*=transform[2];minMax[1]*=transform[2];}minMax[0]+=transform[4];minMax[1]+=transform[4];minMax[2]+=transform[5];minMax[3]+=transform[5];}},{key:\"transform\",value:function transform(m1,m2){return[m1[0]*m2[0]+m1[2]*m2[1],m1[1]*m2[0]+m1[3]*m2[1],m1[0]*m2[2]+m1[2]*m2[3],m1[1]*m2[2]+m1[3]*m2[3],m1[0]*m2[4]+m1[2]*m2[5]+m1[4],m1[1]*m2[4]+m1[3]*m2[5]+m1[5]];}},{key:\"applyTransform\",value:function applyTransform(p,m){var xt=p[0]*m[0]+p[1]*m[2]+m[4];var yt=p[0]*m[1]+p[1]*m[3]+m[5];return[xt,yt];}},{key:\"applyInverseTransform\",value:function applyInverseTransform(p,m){var d=m[0]*m[3]-m[1]*m[2];var xt=(p[0]*m[3]-p[1]*m[2]+m[2]*m[5]-m[4]*m[3])/d;var yt=(-p[0]*m[1]+p[1]*m[0]+m[4]*m[1]-m[5]*m[0])/d;return[xt,yt];}},{key:\"getAxialAlignedBoundingBox\",value:function getAxialAlignedBoundingBox(r,m){var p1=Util.applyTransform(r,m);var p2=Util.applyTransform(_sliceInstanceProperty(r).call(r,2,4),m);var p3=Util.applyTransform([r[0],r[3]],m);var p4=Util.applyTransform([r[2],r[1]],m);return[Math.min(p1[0],p2[0],p3[0],p4[0]),Math.min(p1[1],p2[1],p3[1],p4[1]),Math.max(p1[0],p2[0],p3[0],p4[0]),Math.max(p1[1],p2[1],p3[1],p4[1])];}},{key:\"inverseTransform\",value:function inverseTransform(m){var d=m[0]*m[3]-m[1]*m[2];return[m[3]/d,-m[1]/d,-m[2]/d,m[0]/d,(m[2]*m[5]-m[4]*m[3])/d,(m[4]*m[1]-m[5]*m[0])/d];}},{key:\"apply3dTransform\",value:function apply3dTransform(m,v){return[m[0]*v[0]+m[1]*v[1]+m[2]*v[2],m[3]*v[0]+m[4]*v[1]+m[5]*v[2],m[6]*v[0]+m[7]*v[1]+m[8]*v[2]];}},{key:\"singularValueDecompose2dScale\",value:function singularValueDecompose2dScale(m){var transpose=[m[0],m[2],m[1],m[3]];var a=m[0]*transpose[0]+m[1]*transpose[2];var b=m[0]*transpose[1]+m[1]*transpose[3];var c=m[2]*transpose[0]+m[3]*transpose[2];var d=m[2]*transpose[1]+m[3]*transpose[3];var first=(a+d)/2;var second=Math.sqrt(Math.pow(a+d,2)-4*(a*d-c*b))/2;var sx=first+second||1;var sy=first-second||1;return[Math.sqrt(sx),Math.sqrt(sy)];}},{key:\"normalizeRect\",value:function normalizeRect(rect){var r=_sliceInstanceProperty(rect).call(rect,0);if(rect[0]>rect[2]){r[0]=rect[2];r[2]=rect[0];}if(rect[1]>rect[3]){r[1]=rect[3];r[3]=rect[1];}return r;}},{key:\"intersect\",value:function intersect(rect1,rect2){var xLow=Math.max(Math.min(rect1[0],rect1[2]),Math.min(rect2[0],rect2[2]));var xHigh=Math.min(Math.max(rect1[0],rect1[2]),Math.max(rect2[0],rect2[2]));if(xLow>xHigh){return null;}var yLow=Math.max(Math.min(rect1[1],rect1[3]),Math.min(rect2[1],rect2[3]));var yHigh=Math.min(Math.max(rect1[1],rect1[3]),Math.max(rect2[1],rect2[3]));if(yLow>yHigh){return null;}return[xLow,yLow,xHigh,yHigh];}},{key:\"bezierBoundingBox\",value:function bezierBoundingBox(x0,y0,x1,y1,x2,y2,x3,y3){var tvalues=[],bounds=[[],[]];var a,b,c,t,t1,t2,b2ac,sqrtb2ac;for(var i=0;i<2;++i){if(i===0){b=6*x0-12*x1+6*x2;a=-3*x0+9*x1-9*x2+3*x3;c=3*x1-3*x0;}else{b=6*y0-12*y1+6*y2;a=-3*y0+9*y1-9*y2+3*y3;c=3*y1-3*y0;}if(Math.abs(a)<1e-12){if(Math.abs(b)<1e-12){continue;}t=-c/b;if(0<t&&t<1){tvalues.push(t);}continue;}b2ac=b*b-4*c*a;sqrtb2ac=Math.sqrt(b2ac);if(b2ac<0){continue;}t1=(-b+sqrtb2ac)/(2*a);if(0<t1&&t1<1){tvalues.push(t1);}t2=(-b-sqrtb2ac)/(2*a);if(0<t2&&t2<1){tvalues.push(t2);}}var j=tvalues.length,mt;var jlen=j;while(j--){t=tvalues[j];mt=1-t;bounds[0][j]=mt*mt*mt*x0+3*mt*mt*t*x1+3*mt*t*t*x2+t*t*t*x3;bounds[1][j]=mt*mt*mt*y0+3*mt*mt*t*y1+3*mt*t*t*y2+t*t*t*y3;}bounds[0][jlen]=x0;bounds[1][jlen]=y0;bounds[0][jlen+1]=x3;bounds[1][jlen+1]=y3;bounds[0].length=bounds[1].length=jlen+2;return[Math.min.apply(Math,_toConsumableArray(bounds[0])),Math.min.apply(Math,_toConsumableArray(bounds[1])),Math.max.apply(Math,_toConsumableArray(bounds[0])),Math.max.apply(Math,_toConsumableArray(bounds[1]))];}}]);return Util;}();exports.Util=Util;var PDFStringTranslateTable=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x2d8,0x2c7,0x2c6,0x2d9,0x2dd,0x2db,0x2da,0x2dc,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x2022,0x2020,0x2021,0x2026,0x2014,0x2013,0x192,0x2044,0x2039,0x203a,0x2212,0x2030,0x201e,0x201c,0x201d,0x2018,0x2019,0x201a,0x2122,0xfb01,0xfb02,0x141,0x152,0x160,0x178,0x17d,0x131,0x142,0x153,0x161,0x17e,0,0x20ac];function stringToPDFString(str){if(str[0]>=\"\\xEF\"){var encoding;if(str[0]===\"\\xFE\"&&str[1]===\"\\xFF\"){encoding=\"utf-16be\";}else if(str[0]===\"\\xFF\"&&str[1]===\"\\xFE\"){encoding=\"utf-16le\";}else if(str[0]===\"\\xEF\"&&str[1]===\"\\xBB\"&&str[2]===\"\\xBF\"){encoding=\"utf-8\";}if(encoding){try{var decoder=new TextDecoder(encoding,{fatal:true});var buffer=stringToBytes(str);return decoder.decode(buffer);}catch(ex){warn(\"stringToPDFString: \\\"\".concat(ex,\"\\\".\"));}}}var strBuf=[];for(var i=0,ii=str.length;i<ii;i++){var code=PDFStringTranslateTable[str.charCodeAt(i)];strBuf.push(code?String.fromCharCode(code):str.charAt(i));}return strBuf.join(\"\");}function escapeString(str){return str.replace(/([()\\\\\\n\\r])/g,function(match){if(match===\"\\n\"){return\"\\\\n\";}else if(match===\"\\r\"){return\"\\\\r\";}return\"\\\\\".concat(match);});}function isAscii(str){return /^[\\x00-\\x7F]*$/.test(str);}function stringToUTF16BEString(str){var buf=[\"\\xFE\\xFF\"];for(var i=0,ii=str.length;i<ii;i++){var char=str.charCodeAt(i);buf.push(String.fromCharCode(char>>8&0xff),String.fromCharCode(char&0xff));}return buf.join(\"\");}function stringToUTF8String(str){return decodeURIComponent(escape(str));}function utf8StringToString(str){return unescape(encodeURIComponent(str));}function isArrayBuffer(v){return _typeof(v)===\"object\"&&v!==null&&v.byteLength!==undefined;}function isArrayEqual(arr1,arr2){if(arr1.length!==arr2.length){return false;}for(var i=0,ii=arr1.length;i<ii;i++){if(arr1[i]!==arr2[i]){return false;}}return true;}function getModificationDate(){var _context6,_context7,_context8,_context9,_context10;var date=arguments.length>0&&arguments[0]!==undefined?arguments[0]:new Date();var buffer=[date.getUTCFullYear().toString(),_padStartInstanceProperty(_context6=(date.getUTCMonth()+1).toString()).call(_context6,2,\"0\"),_padStartInstanceProperty(_context7=date.getUTCDate().toString()).call(_context7,2,\"0\"),_padStartInstanceProperty(_context8=date.getUTCHours().toString()).call(_context8,2,\"0\"),_padStartInstanceProperty(_context9=date.getUTCMinutes().toString()).call(_context9,2,\"0\"),_padStartInstanceProperty(_context10=date.getUTCSeconds().toString()).call(_context10,2,\"0\")];return buffer.join(\"\");}function createPromiseCapability(){var capability=Object.create(null);var isSettled=false;_Object$defineProperty(capability,\"settled\",{get:function get(){return isSettled;}});capability.promise=new _Promise(function(resolve,reject){capability.resolve=function(data){isSettled=true;resolve(data);};capability.reject=function(reason){isSettled=true;reject(reason);};});return capability;}/***/}),(/* 2 */ /***/function(__unused_webpack_module,__unused_webpack_exports,__w_pdfjs_require__){\"use strict\";var _is_node=__w_pdfjs_require__(3);if(!_globalThis._pdfjsCompatibilityChecked){_globalThis._pdfjsCompatibilityChecked=true;(function checkNodeBtoa(){if(_globalThis.btoa||!_is_node.isNodeJS){return;}_globalThis.btoa=function(chars){return Buffer.from(chars,\"binary\").toString(\"base64\");};})();(function checkNodeAtob(){if(_globalThis.atob||!_is_node.isNodeJS){return;}_globalThis.atob=function(input){return Buffer.from(input,\"base64\").toString(\"binary\");};})();(function checkDOMMatrix(){if(_globalThis.DOMMatrix||!_is_node.isNodeJS){return;}_globalThis.DOMMatrix=__webpack_require__(/*! dommatrix/dist/dommatrix.js */ \"../../node_modules/dommatrix/dist/dommatrix.js\");})();(function checkReadableStream(){if(_globalThis.ReadableStream||!_is_node.isNodeJS){return;}_globalThis.ReadableStream=(__webpack_require__(/*! web-streams-polyfill/dist/ponyfill.js */ \"../../node_modules/web-streams-polyfill/dist/ponyfill.js\").ReadableStream);})();(function checkArrayAt(){if(Array.prototype.at){return;}__w_pdfjs_require__(4);})();(function checkTypedArrayAt(){if(Uint8Array.prototype.at){return;}__w_pdfjs_require__(76);})();(function checkStructuredClone(){if(_globalThis.structuredClone){return;}__w_pdfjs_require__(86);})();}/***/}),(/* 3 */ /***/function(__unused_webpack_module,exports){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.isNodeJS=void 0;var isNodeJS=(typeof process===\"undefined\"?\"undefined\":_typeof(process))===\"object\"&&process+\"\"===\"[object process]\"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!==\"browser\");exports.isNodeJS=isNodeJS;/***/}),(/* 4 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){__w_pdfjs_require__(5);var entryUnbind=__w_pdfjs_require__(75);module.exports=entryUnbind('Array','at');/***/}),(/* 5 */ /***/function(__unused_webpack_module,__unused_webpack_exports,__w_pdfjs_require__){\"use strict\";var $=__w_pdfjs_require__(6);var toObject=__w_pdfjs_require__(41);var lengthOfArrayLike=__w_pdfjs_require__(65);var toIntegerOrInfinity=__w_pdfjs_require__(63);var addToUnscopables=__w_pdfjs_require__(70);$({target:'Array',proto:true},{at:function at(index){var O=toObject(this);var len=lengthOfArrayLike(O);var relativeIndex=toIntegerOrInfinity(index);var k=relativeIndex>=0?relativeIndex:len+relativeIndex;return k<0||k>=len?undefined:O[k];}});addToUnscopables('at');/***/}),(/* 6 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(7);var getOwnPropertyDescriptor=__w_pdfjs_require__(8).f;var createNonEnumerableProperty=__w_pdfjs_require__(45);var defineBuiltIn=__w_pdfjs_require__(49);var defineGlobalProperty=__w_pdfjs_require__(39);var copyConstructorProperties=__w_pdfjs_require__(57);var isForced=__w_pdfjs_require__(69);module.exports=function(options,source){var TARGET=options.target;var GLOBAL=options.global;var STATIC=options.stat;var FORCED,target,key,targetProperty,sourceProperty,descriptor;if(GLOBAL){target=global;}else if(STATIC){target=global[TARGET]||defineGlobalProperty(TARGET,{});}else{target=(global[TARGET]||{}).prototype;}if(target)for(key in source){sourceProperty=source[key];if(options.dontCallGetSet){descriptor=getOwnPropertyDescriptor(target,key);targetProperty=descriptor&&descriptor.value;}else targetProperty=target[key];FORCED=isForced(GLOBAL?key:TARGET+(STATIC?'.':'#')+key,options.forced);if(!FORCED&&targetProperty!==undefined){if(_typeof(sourceProperty)==_typeof(targetProperty))continue;copyConstructorProperties(sourceProperty,targetProperty);}if(options.sham||targetProperty&&targetProperty.sham){createNonEnumerableProperty(sourceProperty,'sham',true);}defineBuiltIn(target,key,sourceProperty,options);}};/***/}),(/* 7 */ /***/function(module){var check=function check(it){return it&&it.Math==Math&&it;};module.exports=check((typeof _globalThis===\"undefined\"?\"undefined\":_typeof(_globalThis))=='object'&&_globalThis)||check((typeof window===\"undefined\"?\"undefined\":_typeof(window))=='object'&&window)||check((typeof self===\"undefined\"?\"undefined\":_typeof(self))=='object'&&self)||check((typeof __webpack_require__.g===\"undefined\"?\"undefined\":_typeof(__webpack_require__.g))=='object'&&__webpack_require__.g)||function(){return this;}()||Function('return this')();/***/}),(/* 8 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){var DESCRIPTORS=__w_pdfjs_require__(9);var call=__w_pdfjs_require__(11);var propertyIsEnumerableModule=__w_pdfjs_require__(13);var createPropertyDescriptor=__w_pdfjs_require__(14);var toIndexedObject=__w_pdfjs_require__(15);var toPropertyKey=__w_pdfjs_require__(20);var hasOwn=__w_pdfjs_require__(40);var IE8_DOM_DEFINE=__w_pdfjs_require__(43);var $getOwnPropertyDescriptor=_Object$getOwnPropertyDescriptor;exports.f=DESCRIPTORS?$getOwnPropertyDescriptor:function getOwnPropertyDescriptor(O,P){O=toIndexedObject(O);P=toPropertyKey(P);if(IE8_DOM_DEFINE)try{return $getOwnPropertyDescriptor(O,P);}catch(error){}if(hasOwn(O,P))return createPropertyDescriptor(!call(propertyIsEnumerableModule.f,O,P),O[P]);};/***/}),(/* 9 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var fails=__w_pdfjs_require__(10);module.exports=!fails(function(){return _Object$defineProperty({},1,{get:function get(){return 7;}})[1]!=7;});/***/}),(/* 10 */ /***/function(module){module.exports=function(exec){try{return!!exec();}catch(error){return true;}};/***/}),(/* 11 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var NATIVE_BIND=__w_pdfjs_require__(12);var call=Function.prototype.call;module.exports=NATIVE_BIND?call.bind(call):function(){return call.apply(call,arguments);};/***/}),(/* 12 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var fails=__w_pdfjs_require__(10);module.exports=!fails(function(){var test=function(){}.bind();return typeof test!='function'||test.hasOwnProperty('prototype');});/***/}),(/* 13 */ /***/function(__unused_webpack_module,exports){\"use strict\";var $propertyIsEnumerable={}.propertyIsEnumerable;var getOwnPropertyDescriptor=_Object$getOwnPropertyDescriptor;var NASHORN_BUG=getOwnPropertyDescriptor&&!$propertyIsEnumerable.call({1:2},1);exports.f=NASHORN_BUG?function propertyIsEnumerable(V){var descriptor=getOwnPropertyDescriptor(this,V);return!!descriptor&&descriptor.enumerable;}:$propertyIsEnumerable;/***/}),(/* 14 */ /***/function(module){module.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value};};/***/}),(/* 15 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var IndexedObject=__w_pdfjs_require__(16);var requireObjectCoercible=__w_pdfjs_require__(19);module.exports=function(it){return IndexedObject(requireObjectCoercible(it));};/***/}),(/* 16 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var uncurryThis=__w_pdfjs_require__(17);var fails=__w_pdfjs_require__(10);var classof=__w_pdfjs_require__(18);var $Object=Object;var split=uncurryThis(''.split);module.exports=fails(function(){return!$Object('z').propertyIsEnumerable(0);})?function(it){return classof(it)=='String'?split(it,''):$Object(it);}:$Object;/***/}),(/* 17 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var NATIVE_BIND=__w_pdfjs_require__(12);var FunctionPrototype=Function.prototype;var bind=FunctionPrototype.bind;var call=FunctionPrototype.call;var uncurryThis=NATIVE_BIND&&bind.bind(call,call);module.exports=NATIVE_BIND?function(fn){return fn&&uncurryThis(fn);}:function(fn){return fn&&function(){return call.apply(fn,arguments);};};/***/}),(/* 18 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var uncurryThis=__w_pdfjs_require__(17);var toString=uncurryThis({}.toString);var stringSlice=uncurryThis(_sliceInstanceProperty(''));module.exports=function(it){return stringSlice(toString(it),8,-1);};/***/}),(/* 19 */ /***/function(module){var $TypeError=TypeError;module.exports=function(it){if(it==undefined)throw $TypeError(\"Can't call method on \"+it);return it;};/***/}),(/* 20 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var toPrimitive=__w_pdfjs_require__(21);var isSymbol=__w_pdfjs_require__(24);module.exports=function(argument){var key=toPrimitive(argument,'string');return isSymbol(key)?key:key+'';};/***/}),(/* 21 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var call=__w_pdfjs_require__(11);var isObject=__w_pdfjs_require__(22);var isSymbol=__w_pdfjs_require__(24);var getMethod=__w_pdfjs_require__(31);var ordinaryToPrimitive=__w_pdfjs_require__(34);var wellKnownSymbol=__w_pdfjs_require__(35);var $TypeError=TypeError;var TO_PRIMITIVE=wellKnownSymbol('toPrimitive');module.exports=function(input,pref){if(!isObject(input)||isSymbol(input))return input;var exoticToPrim=getMethod(input,TO_PRIMITIVE);var result;if(exoticToPrim){if(pref===undefined)pref='default';result=call(exoticToPrim,input,pref);if(!isObject(result)||isSymbol(result))return result;throw $TypeError(\"Can't convert object to primitive value\");}if(pref===undefined)pref='number';return ordinaryToPrimitive(input,pref);};/***/}),(/* 22 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var isCallable=__w_pdfjs_require__(23);module.exports=function(it){return _typeof(it)=='object'?it!==null:isCallable(it);};/***/}),(/* 23 */ /***/function(module){module.exports=function(argument){return typeof argument=='function';};/***/}),(/* 24 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var getBuiltIn=__w_pdfjs_require__(25);var isCallable=__w_pdfjs_require__(23);var isPrototypeOf=__w_pdfjs_require__(26);var USE_SYMBOL_AS_UID=__w_pdfjs_require__(27);var $Object=Object;module.exports=USE_SYMBOL_AS_UID?function(it){return _typeof(it)=='symbol';}:function(it){var $Symbol=getBuiltIn('Symbol');return isCallable($Symbol)&&isPrototypeOf($Symbol.prototype,$Object(it));};/***/}),(/* 25 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(7);var isCallable=__w_pdfjs_require__(23);var aFunction=function aFunction(argument){return isCallable(argument)?argument:undefined;};module.exports=function(namespace,method){return arguments.length<2?aFunction(global[namespace]):global[namespace]&&global[namespace][method];};/***/}),(/* 26 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var uncurryThis=__w_pdfjs_require__(17);module.exports=uncurryThis({}.isPrototypeOf);/***/}),(/* 27 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var NATIVE_SYMBOL=__w_pdfjs_require__(28);module.exports=NATIVE_SYMBOL&&!_Symbol.sham&&_typeof(_Symbol$iterator)=='symbol';/***/}),(/* 28 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var V8_VERSION=__w_pdfjs_require__(29);var fails=__w_pdfjs_require__(10);module.exports=!!_Object$getOwnPropertySymbols&&!fails(function(){var symbol=_Symbol();return!String(symbol)||!(Object(symbol)instanceof _Symbol)||!_Symbol.sham&&V8_VERSION&&V8_VERSION<41;});/***/}),(/* 29 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(7);var userAgent=__w_pdfjs_require__(30);var process=global.process;var Deno=global.Deno;var versions=process&&process.versions||Deno&&Deno.version;var v8=versions&&versions.v8;var match,version;if(v8){match=v8.split('.');version=match[0]>0&&match[0]<4?1:+(match[0]+match[1]);}if(!version&&userAgent){match=userAgent.match(/Edge\\/(\\d+)/);if(!match||match[1]>=74){match=userAgent.match(/Chrome\\/(\\d+)/);if(match)version=+match[1];}}module.exports=version;/***/}),(/* 30 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var getBuiltIn=__w_pdfjs_require__(25);module.exports=getBuiltIn('navigator','userAgent')||'';/***/}),(/* 31 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var aCallable=__w_pdfjs_require__(32);module.exports=function(V,P){var func=V[P];return func==null?undefined:aCallable(func);};/***/}),(/* 32 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var isCallable=__w_pdfjs_require__(23);var tryToString=__w_pdfjs_require__(33);var $TypeError=TypeError;module.exports=function(argument){if(isCallable(argument))return argument;throw $TypeError(tryToString(argument)+' is not a function');};/***/}),(/* 33 */ /***/function(module){var $String=String;module.exports=function(argument){try{return $String(argument);}catch(error){return'Object';}};/***/}),(/* 34 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var call=__w_pdfjs_require__(11);var isCallable=__w_pdfjs_require__(23);var isObject=__w_pdfjs_require__(22);var $TypeError=TypeError;module.exports=function(input,pref){var fn,val;if(pref==='string'&&isCallable(fn=input.toString)&&!isObject(val=call(fn,input)))return val;if(isCallable(fn=input.valueOf)&&!isObject(val=call(fn,input)))return val;if(pref!=='string'&&isCallable(fn=input.toString)&&!isObject(val=call(fn,input)))return val;throw $TypeError(\"Can't convert object to primitive value\");};/***/}),(/* 35 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(7);var shared=__w_pdfjs_require__(36);var hasOwn=__w_pdfjs_require__(40);var uid=__w_pdfjs_require__(42);var NATIVE_SYMBOL=__w_pdfjs_require__(28);var USE_SYMBOL_AS_UID=__w_pdfjs_require__(27);var WellKnownSymbolsStore=shared('wks');var _Symbol2=global.Symbol;var symbolFor=_Symbol2&&_Symbol2['for'];var createWellKnownSymbol=USE_SYMBOL_AS_UID?_Symbol2:_Symbol2&&_Symbol2.withoutSetter||uid;module.exports=function(name){if(!hasOwn(WellKnownSymbolsStore,name)||!(NATIVE_SYMBOL||typeof WellKnownSymbolsStore[name]=='string')){var description='Symbol.'+name;if(NATIVE_SYMBOL&&hasOwn(_Symbol2,name)){WellKnownSymbolsStore[name]=_Symbol2[name];}else if(USE_SYMBOL_AS_UID&&symbolFor){WellKnownSymbolsStore[name]=symbolFor(description);}else{WellKnownSymbolsStore[name]=createWellKnownSymbol(description);}}return WellKnownSymbolsStore[name];};/***/}),(/* 36 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var IS_PURE=__w_pdfjs_require__(37);var store=__w_pdfjs_require__(38);(module.exports=function(key,value){return store[key]||(store[key]=value!==undefined?value:{});})('versions',[]).push({version:'3.24.1',mode:IS_PURE?'pure':'global',copyright:'© 2014-2022 Denis Pushkarev (zloirock.ru)',license:'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',source:'https://github.com/zloirock/core-js'});/***/}),(/* 37 */ /***/function(module){module.exports=false;/***/}),(/* 38 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(7);var defineGlobalProperty=__w_pdfjs_require__(39);var SHARED='__core-js_shared__';var store=global[SHARED]||defineGlobalProperty(SHARED,{});module.exports=store;/***/}),(/* 39 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(7);var defineProperty=_Object$defineProperty;module.exports=function(key,value){try{defineProperty(global,key,{value:value,configurable:true,writable:true});}catch(error){global[key]=value;}return value;};/***/}),(/* 40 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var uncurryThis=__w_pdfjs_require__(17);var toObject=__w_pdfjs_require__(41);var hasOwnProperty=uncurryThis({}.hasOwnProperty);module.exports=Object.hasOwn||function hasOwn(it,key){return hasOwnProperty(toObject(it),key);};/***/}),(/* 41 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var requireObjectCoercible=__w_pdfjs_require__(19);var $Object=Object;module.exports=function(argument){return $Object(requireObjectCoercible(argument));};/***/}),(/* 42 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var uncurryThis=__w_pdfjs_require__(17);var id=0;var postfix=Math.random();var toString=uncurryThis(1.0.toString);module.exports=function(key){return'Symbol('+(key===undefined?'':key)+')_'+toString(++id+postfix,36);};/***/}),(/* 43 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var DESCRIPTORS=__w_pdfjs_require__(9);var fails=__w_pdfjs_require__(10);var createElement=__w_pdfjs_require__(44);module.exports=!DESCRIPTORS&&!fails(function(){return _Object$defineProperty(createElement('div'),'a',{get:function get(){return 7;}}).a!=7;});/***/}),(/* 44 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(7);var isObject=__w_pdfjs_require__(22);var document=global.document;var EXISTS=isObject(document)&&isObject(document.createElement);module.exports=function(it){return EXISTS?document.createElement(it):{};};/***/}),(/* 45 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var DESCRIPTORS=__w_pdfjs_require__(9);var definePropertyModule=__w_pdfjs_require__(46);var createPropertyDescriptor=__w_pdfjs_require__(14);module.exports=DESCRIPTORS?function(object,key,value){return definePropertyModule.f(object,key,createPropertyDescriptor(1,value));}:function(object,key,value){object[key]=value;return object;};/***/}),(/* 46 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){var DESCRIPTORS=__w_pdfjs_require__(9);var IE8_DOM_DEFINE=__w_pdfjs_require__(43);var V8_PROTOTYPE_DEFINE_BUG=__w_pdfjs_require__(47);var anObject=__w_pdfjs_require__(48);var toPropertyKey=__w_pdfjs_require__(20);var $TypeError=TypeError;var $defineProperty=_Object$defineProperty;var $getOwnPropertyDescriptor=_Object$getOwnPropertyDescriptor;var ENUMERABLE='enumerable';var CONFIGURABLE='configurable';var WRITABLE='writable';exports.f=DESCRIPTORS?V8_PROTOTYPE_DEFINE_BUG?function defineProperty(O,P,Attributes){anObject(O);P=toPropertyKey(P);anObject(Attributes);if(typeof O==='function'&&P==='prototype'&&'value'in Attributes&&WRITABLE in Attributes&&!Attributes[WRITABLE]){var current=$getOwnPropertyDescriptor(O,P);if(current&&current[WRITABLE]){O[P]=Attributes.value;Attributes={configurable:CONFIGURABLE in Attributes?Attributes[CONFIGURABLE]:current[CONFIGURABLE],enumerable:ENUMERABLE in Attributes?Attributes[ENUMERABLE]:current[ENUMERABLE],writable:false};}}return $defineProperty(O,P,Attributes);}:$defineProperty:function defineProperty(O,P,Attributes){anObject(O);P=toPropertyKey(P);anObject(Attributes);if(IE8_DOM_DEFINE)try{return $defineProperty(O,P,Attributes);}catch(error){}if('get'in Attributes||'set'in Attributes)throw $TypeError('Accessors not supported');if('value'in Attributes)O[P]=Attributes.value;return O;};/***/}),(/* 47 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var DESCRIPTORS=__w_pdfjs_require__(9);var fails=__w_pdfjs_require__(10);module.exports=DESCRIPTORS&&fails(function(){return _Object$defineProperty(function(){},'prototype',{value:42,writable:false}).prototype!=42;});/***/}),(/* 48 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(22);var $String=String;var $TypeError=TypeError;module.exports=function(argument){if(isObject(argument))return argument;throw $TypeError($String(argument)+' is not an object');};/***/}),(/* 49 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var isCallable=__w_pdfjs_require__(23);var definePropertyModule=__w_pdfjs_require__(46);var makeBuiltIn=__w_pdfjs_require__(50);var defineGlobalProperty=__w_pdfjs_require__(39);module.exports=function(O,key,value,options){if(!options)options={};var simple=options.enumerable;var name=options.name!==undefined?options.name:key;if(isCallable(value))makeBuiltIn(value,name,options);if(options.global){if(simple)O[key]=value;else defineGlobalProperty(key,value);}else{try{if(!options.unsafe)delete O[key];else if(O[key])simple=true;}catch(error){}if(simple)O[key]=value;else definePropertyModule.f(O,key,{value:value,enumerable:false,configurable:!options.nonConfigurable,writable:!options.nonWritable});}return O;};/***/}),(/* 50 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var fails=__w_pdfjs_require__(10);var isCallable=__w_pdfjs_require__(23);var hasOwn=__w_pdfjs_require__(40);var DESCRIPTORS=__w_pdfjs_require__(9);var CONFIGURABLE_FUNCTION_NAME=__w_pdfjs_require__(51).CONFIGURABLE;var inspectSource=__w_pdfjs_require__(52);var InternalStateModule=__w_pdfjs_require__(53);var enforceInternalState=InternalStateModule.enforce;var getInternalState=InternalStateModule.get;var defineProperty=_Object$defineProperty;var CONFIGURABLE_LENGTH=DESCRIPTORS&&!fails(function(){return defineProperty(function(){},'length',{value:8}).length!==8;});var TEMPLATE=String(String).split('String');var makeBuiltIn=module.exports=function(value,name,options){var _context11;if(_sliceInstanceProperty(_context11=String(name)).call(_context11,0,7)==='Symbol('){name='['+String(name).replace(/^Symbol\\(([^)]*)\\)/,'$1')+']';}if(options&&options.getter)name='get '+name;if(options&&options.setter)name='set '+name;if(!hasOwn(value,'name')||CONFIGURABLE_FUNCTION_NAME&&value.name!==name){if(DESCRIPTORS)defineProperty(value,'name',{value:name,configurable:true});else value.name=name;}if(CONFIGURABLE_LENGTH&&options&&hasOwn(options,'arity')&&value.length!==options.arity){defineProperty(value,'length',{value:options.arity});}try{if(options&&hasOwn(options,'constructor')&&options.constructor){if(DESCRIPTORS)defineProperty(value,'prototype',{writable:false});}else if(value.prototype)value.prototype=undefined;}catch(error){}var state=enforceInternalState(value);if(!hasOwn(state,'source')){state.source=TEMPLATE.join(typeof name=='string'?name:'');}return value;};Function.prototype.toString=makeBuiltIn(function toString(){return isCallable(this)&&getInternalState(this).source||inspectSource(this);},'toString');/***/}),(/* 51 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var DESCRIPTORS=__w_pdfjs_require__(9);var hasOwn=__w_pdfjs_require__(40);var FunctionPrototype=Function.prototype;var getDescriptor=DESCRIPTORS&&_Object$getOwnPropertyDescriptor;var EXISTS=hasOwn(FunctionPrototype,'name');var PROPER=EXISTS&&function something(){}.name==='something';var CONFIGURABLE=EXISTS&&(!DESCRIPTORS||DESCRIPTORS&&getDescriptor(FunctionPrototype,'name').configurable);module.exports={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE};/***/}),(/* 52 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var uncurryThis=__w_pdfjs_require__(17);var isCallable=__w_pdfjs_require__(23);var store=__w_pdfjs_require__(38);var functionToString=uncurryThis(Function.toString);if(!isCallable(store.inspectSource)){store.inspectSource=function(it){return functionToString(it);};}module.exports=store.inspectSource;/***/}),(/* 53 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var NATIVE_WEAK_MAP=__w_pdfjs_require__(54);var global=__w_pdfjs_require__(7);var uncurryThis=__w_pdfjs_require__(17);var isObject=__w_pdfjs_require__(22);var createNonEnumerableProperty=__w_pdfjs_require__(45);var hasOwn=__w_pdfjs_require__(40);var shared=__w_pdfjs_require__(38);var sharedKey=__w_pdfjs_require__(55);var hiddenKeys=__w_pdfjs_require__(56);var OBJECT_ALREADY_INITIALIZED='Object already initialized';var TypeError=global.TypeError;var WeakMap=global.WeakMap;var set,get,has;var enforce=function enforce(it){return has(it)?get(it):set(it,{});};var getterFor=function getterFor(TYPE){return function(it){var state;if(!isObject(it)||(state=get(it)).type!==TYPE){throw TypeError('Incompatible receiver, '+TYPE+' required');}return state;};};if(NATIVE_WEAK_MAP||shared.state){var store=shared.state||(shared.state=new WeakMap());var wmget=uncurryThis(store.get);var wmhas=uncurryThis(store.has);var wmset=uncurryThis(store.set);set=function set(it,metadata){if(wmhas(store,it))throw new TypeError(OBJECT_ALREADY_INITIALIZED);metadata.facade=it;wmset(store,it,metadata);return metadata;};get=function get(it){return wmget(store,it)||{};};has=function has(it){return wmhas(store,it);};}else{var STATE=sharedKey('state');hiddenKeys[STATE]=true;set=function set(it,metadata){if(hasOwn(it,STATE))throw new TypeError(OBJECT_ALREADY_INITIALIZED);metadata.facade=it;createNonEnumerableProperty(it,STATE,metadata);return metadata;};get=function get(it){return hasOwn(it,STATE)?it[STATE]:{};};has=function has(it){return hasOwn(it,STATE);};}module.exports={set:set,get:get,has:has,enforce:enforce,getterFor:getterFor};/***/}),(/* 54 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(7);var isCallable=__w_pdfjs_require__(23);var inspectSource=__w_pdfjs_require__(52);var WeakMap=global.WeakMap;module.exports=isCallable(WeakMap)&&/native code/.test(inspectSource(WeakMap));/***/}),(/* 55 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var shared=__w_pdfjs_require__(36);var uid=__w_pdfjs_require__(42);var keys=shared('keys');module.exports=function(key){return keys[key]||(keys[key]=uid(key));};/***/}),(/* 56 */ /***/function(module){module.exports={};/***/}),(/* 57 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var hasOwn=__w_pdfjs_require__(40);var ownKeys=__w_pdfjs_require__(58);var getOwnPropertyDescriptorModule=__w_pdfjs_require__(8);var definePropertyModule=__w_pdfjs_require__(46);module.exports=function(target,source,exceptions){var keys=ownKeys(source);var defineProperty=definePropertyModule.f;var getOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f;for(var i=0;i<keys.length;i++){var key=keys[i];if(!hasOwn(target,key)&&!(exceptions&&hasOwn(exceptions,key))){defineProperty(target,key,getOwnPropertyDescriptor(source,key));}}};/***/}),(/* 58 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var getBuiltIn=__w_pdfjs_require__(25);var uncurryThis=__w_pdfjs_require__(17);var getOwnPropertyNamesModule=__w_pdfjs_require__(59);var getOwnPropertySymbolsModule=__w_pdfjs_require__(68);var anObject=__w_pdfjs_require__(48);var concat=uncurryThis(_concatInstanceProperty([]));module.exports=getBuiltIn('Reflect','ownKeys')||function ownKeys(it){var keys=getOwnPropertyNamesModule.f(anObject(it));var getOwnPropertySymbols=getOwnPropertySymbolsModule.f;return getOwnPropertySymbols?concat(keys,getOwnPropertySymbols(it)):keys;};/***/}),(/* 59 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){var internalObjectKeys=__w_pdfjs_require__(60);var enumBugKeys=__w_pdfjs_require__(67);var hiddenKeys=_concatInstanceProperty(enumBugKeys).call(enumBugKeys,'length','prototype');exports.f=_Object$getOwnPropertyNames||function getOwnPropertyNames(O){return internalObjectKeys(O,hiddenKeys);};/***/}),(/* 60 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var uncurryThis=__w_pdfjs_require__(17);var hasOwn=__w_pdfjs_require__(40);var toIndexedObject=__w_pdfjs_require__(15);var indexOf=_indexOfInstanceProperty(__w_pdfjs_require__(61));var hiddenKeys=__w_pdfjs_require__(56);var push=uncurryThis([].push);module.exports=function(object,names){var O=toIndexedObject(object);var i=0;var result=[];var key;for(key in O)!hasOwn(hiddenKeys,key)&&hasOwn(O,key)&&push(result,key);while(names.length>i)if(hasOwn(O,key=names[i++])){~indexOf(result,key)||push(result,key);}return result;};/***/}),(/* 61 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var toIndexedObject=__w_pdfjs_require__(15);var toAbsoluteIndex=__w_pdfjs_require__(62);var lengthOfArrayLike=__w_pdfjs_require__(65);var createMethod=function createMethod(IS_INCLUDES){return function($this,el,fromIndex){var O=toIndexedObject($this);var length=lengthOfArrayLike(O);var index=toAbsoluteIndex(fromIndex,length);var value;if(IS_INCLUDES&&el!=el)while(length>index){value=O[index++];if(value!=value)return true;}else for(;length>index;index++){if((IS_INCLUDES||index in O)&&O[index]===el)return IS_INCLUDES||index||0;}return!IS_INCLUDES&&-1;};};module.exports={includes:createMethod(true),indexOf:createMethod(false)};/***/}),(/* 62 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var toIntegerOrInfinity=__w_pdfjs_require__(63);var max=Math.max;var min=Math.min;module.exports=function(index,length){var integer=toIntegerOrInfinity(index);return integer<0?max(integer+length,0):min(integer,length);};/***/}),(/* 63 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var trunc=__w_pdfjs_require__(64);module.exports=function(argument){var number=+argument;return number!==number||number===0?0:trunc(number);};/***/}),(/* 64 */ /***/function(module){var ceil=Math.ceil;var floor=Math.floor;module.exports=_Math$trunc||function trunc(x){var n=+x;return(n>0?floor:ceil)(n);};/***/}),(/* 65 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var toLength=__w_pdfjs_require__(66);module.exports=function(obj){return toLength(obj.length);};/***/}),(/* 66 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var toIntegerOrInfinity=__w_pdfjs_require__(63);var min=Math.min;module.exports=function(argument){return argument>0?min(toIntegerOrInfinity(argument),0x1FFFFFFFFFFFFF):0;};/***/}),(/* 67 */ /***/function(module){module.exports=['constructor','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','toLocaleString','toString','valueOf'];/***/}),(/* 68 */ /***/function(__unused_webpack_module,exports){exports.f=_Object$getOwnPropertySymbols;/***/}),(/* 69 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var fails=__w_pdfjs_require__(10);var isCallable=__w_pdfjs_require__(23);var replacement=/#|\\.prototype\\./;var isForced=function isForced(feature,detection){var value=data[normalize(feature)];return value==POLYFILL?true:value==NATIVE?false:isCallable(detection)?fails(detection):!!detection;};var normalize=isForced.normalize=function(string){return String(string).replace(replacement,'.').toLowerCase();};var data=isForced.data={};var NATIVE=isForced.NATIVE='N';var POLYFILL=isForced.POLYFILL='P';module.exports=isForced;/***/}),(/* 70 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var wellKnownSymbol=__w_pdfjs_require__(35);var create=__w_pdfjs_require__(71);var defineProperty=__w_pdfjs_require__(46).f;var UNSCOPABLES=wellKnownSymbol('unscopables');var ArrayPrototype=Array.prototype;if(ArrayPrototype[UNSCOPABLES]==undefined){defineProperty(ArrayPrototype,UNSCOPABLES,{configurable:true,value:create(null)});}module.exports=function(key){ArrayPrototype[UNSCOPABLES][key]=true;};/***/}),(/* 71 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(48);var definePropertiesModule=__w_pdfjs_require__(72);var enumBugKeys=__w_pdfjs_require__(67);var hiddenKeys=__w_pdfjs_require__(56);var html=__w_pdfjs_require__(74);var documentCreateElement=__w_pdfjs_require__(44);var sharedKey=__w_pdfjs_require__(55);var GT='>';var LT='<';var PROTOTYPE='prototype';var SCRIPT='script';var IE_PROTO=sharedKey('IE_PROTO');var EmptyConstructor=function EmptyConstructor(){};var scriptTag=function scriptTag(content){return LT+SCRIPT+GT+content+LT+'/'+SCRIPT+GT;};var NullProtoObjectViaActiveX=function NullProtoObjectViaActiveX(activeXDocument){activeXDocument.write(scriptTag(''));activeXDocument.close();var temp=activeXDocument.parentWindow.Object;activeXDocument=null;return temp;};var NullProtoObjectViaIFrame=function NullProtoObjectViaIFrame(){var iframe=documentCreateElement('iframe');var JS='java'+SCRIPT+':';var iframeDocument;iframe.style.display='none';html.appendChild(iframe);iframe.src=String(JS);iframeDocument=iframe.contentWindow.document;iframeDocument.open();iframeDocument.write(scriptTag('document.F=Object'));iframeDocument.close();return iframeDocument.F;};var activeXDocument;var _NullProtoObject=function NullProtoObject(){try{activeXDocument=new ActiveXObject('htmlfile');}catch(error){}_NullProtoObject=typeof document!='undefined'?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);var length=enumBugKeys.length;while(length--)delete _NullProtoObject[PROTOTYPE][enumBugKeys[length]];return _NullProtoObject();};hiddenKeys[IE_PROTO]=true;module.exports=Object.create||function create(O,Properties){var result;if(O!==null){EmptyConstructor[PROTOTYPE]=anObject(O);result=new EmptyConstructor();EmptyConstructor[PROTOTYPE]=null;result[IE_PROTO]=O;}else result=_NullProtoObject();return Properties===undefined?result:definePropertiesModule.f(result,Properties);};/***/}),(/* 72 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){var DESCRIPTORS=__w_pdfjs_require__(9);var V8_PROTOTYPE_DEFINE_BUG=__w_pdfjs_require__(47);var definePropertyModule=__w_pdfjs_require__(46);var anObject=__w_pdfjs_require__(48);var toIndexedObject=__w_pdfjs_require__(15);var objectKeys=__w_pdfjs_require__(73);exports.f=DESCRIPTORS&&!V8_PROTOTYPE_DEFINE_BUG?_Object$defineProperties:function defineProperties(O,Properties){anObject(O);var props=toIndexedObject(Properties);var keys=objectKeys(Properties);var length=keys.length;var index=0;var key;while(length>index)definePropertyModule.f(O,key=keys[index++],props[key]);return O;};/***/}),(/* 73 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var internalObjectKeys=__w_pdfjs_require__(60);var enumBugKeys=__w_pdfjs_require__(67);module.exports=_Object$keys||function keys(O){return internalObjectKeys(O,enumBugKeys);};/***/}),(/* 74 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var getBuiltIn=__w_pdfjs_require__(25);module.exports=getBuiltIn('document','documentElement');/***/}),(/* 75 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(7);var uncurryThis=__w_pdfjs_require__(17);module.exports=function(CONSTRUCTOR,METHOD){return uncurryThis(global[CONSTRUCTOR].prototype[METHOD]);};/***/}),(/* 76 */ /***/function(__unused_webpack_module,__unused_webpack_exports,__w_pdfjs_require__){__w_pdfjs_require__(77);/***/}),(/* 77 */ /***/function(__unused_webpack_module,__unused_webpack_exports,__w_pdfjs_require__){\"use strict\";var ArrayBufferViewCore=__w_pdfjs_require__(78);var lengthOfArrayLike=__w_pdfjs_require__(65);var toIntegerOrInfinity=__w_pdfjs_require__(63);var aTypedArray=ArrayBufferViewCore.aTypedArray;var exportTypedArrayMethod=ArrayBufferViewCore.exportTypedArrayMethod;exportTypedArrayMethod('at',function at(index){var O=aTypedArray(this);var len=lengthOfArrayLike(O);var relativeIndex=toIntegerOrInfinity(index);var k=relativeIndex>=0?relativeIndex:len+relativeIndex;return k<0||k>=len?undefined:O[k];});/***/}),(/* 78 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){\"use strict\";var NATIVE_ARRAY_BUFFER=__w_pdfjs_require__(79);var DESCRIPTORS=__w_pdfjs_require__(9);var global=__w_pdfjs_require__(7);var isCallable=__w_pdfjs_require__(23);var isObject=__w_pdfjs_require__(22);var hasOwn=__w_pdfjs_require__(40);var classof=__w_pdfjs_require__(80);var tryToString=__w_pdfjs_require__(33);var createNonEnumerableProperty=__w_pdfjs_require__(45);var defineBuiltIn=__w_pdfjs_require__(49);var defineProperty=__w_pdfjs_require__(46).f;var isPrototypeOf=__w_pdfjs_require__(26);var getPrototypeOf=__w_pdfjs_require__(82);var setPrototypeOf=__w_pdfjs_require__(84);var wellKnownSymbol=__w_pdfjs_require__(35);var uid=__w_pdfjs_require__(42);var InternalStateModule=__w_pdfjs_require__(53);var enforceInternalState=InternalStateModule.enforce;var getInternalState=InternalStateModule.get;var Int8Array=global.Int8Array;var Int8ArrayPrototype=Int8Array&&Int8Array.prototype;var Uint8ClampedArray=global.Uint8ClampedArray;var Uint8ClampedArrayPrototype=Uint8ClampedArray&&Uint8ClampedArray.prototype;var TypedArray=Int8Array&&getPrototypeOf(Int8Array);var TypedArrayPrototype=Int8ArrayPrototype&&getPrototypeOf(Int8ArrayPrototype);var ObjectPrototype=Object.prototype;var TypeError=global.TypeError;var TO_STRING_TAG=wellKnownSymbol('toStringTag');var TYPED_ARRAY_TAG=uid('TYPED_ARRAY_TAG');var TYPED_ARRAY_CONSTRUCTOR='TypedArrayConstructor';var NATIVE_ARRAY_BUFFER_VIEWS=NATIVE_ARRAY_BUFFER&&!!setPrototypeOf&&classof(global.opera)!=='Opera';var TYPED_ARRAY_TAG_REQUIRED=false;var NAME,Constructor,Prototype;var TypedArrayConstructorsList={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8};var BigIntArrayConstructorsList={BigInt64Array:8,BigUint64Array:8};var isView=function isView(it){if(!isObject(it))return false;var klass=classof(it);return klass==='DataView'||hasOwn(TypedArrayConstructorsList,klass)||hasOwn(BigIntArrayConstructorsList,klass);};var getTypedArrayConstructor=function getTypedArrayConstructor(it){var proto=getPrototypeOf(it);if(!isObject(proto))return;var state=getInternalState(proto);return state&&hasOwn(state,TYPED_ARRAY_CONSTRUCTOR)?state[TYPED_ARRAY_CONSTRUCTOR]:getTypedArrayConstructor(proto);};var isTypedArray=function isTypedArray(it){if(!isObject(it))return false;var klass=classof(it);return hasOwn(TypedArrayConstructorsList,klass)||hasOwn(BigIntArrayConstructorsList,klass);};var aTypedArray=function aTypedArray(it){if(isTypedArray(it))return it;throw TypeError('Target is not a typed array');};var aTypedArrayConstructor=function aTypedArrayConstructor(C){if(isCallable(C)&&(!setPrototypeOf||isPrototypeOf(TypedArray,C)))return C;throw TypeError(tryToString(C)+' is not a typed array constructor');};var exportTypedArrayMethod=function exportTypedArrayMethod(KEY,property,forced,options){if(!DESCRIPTORS)return;if(forced)for(var ARRAY in TypedArrayConstructorsList){var TypedArrayConstructor=global[ARRAY];if(TypedArrayConstructor&&hasOwn(TypedArrayConstructor.prototype,KEY))try{delete TypedArrayConstructor.prototype[KEY];}catch(error){try{TypedArrayConstructor.prototype[KEY]=property;}catch(error2){}}}if(!TypedArrayPrototype[KEY]||forced){defineBuiltIn(TypedArrayPrototype,KEY,forced?property:NATIVE_ARRAY_BUFFER_VIEWS&&Int8ArrayPrototype[KEY]||property,options);}};var exportTypedArrayStaticMethod=function exportTypedArrayStaticMethod(KEY,property,forced){var ARRAY,TypedArrayConstructor;if(!DESCRIPTORS)return;if(setPrototypeOf){if(forced)for(ARRAY in TypedArrayConstructorsList){TypedArrayConstructor=global[ARRAY];if(TypedArrayConstructor&&hasOwn(TypedArrayConstructor,KEY))try{delete TypedArrayConstructor[KEY];}catch(error){}}if(!TypedArray[KEY]||forced){try{return defineBuiltIn(TypedArray,KEY,forced?property:NATIVE_ARRAY_BUFFER_VIEWS&&TypedArray[KEY]||property);}catch(error){}}else return;}for(ARRAY in TypedArrayConstructorsList){TypedArrayConstructor=global[ARRAY];if(TypedArrayConstructor&&(!TypedArrayConstructor[KEY]||forced)){defineBuiltIn(TypedArrayConstructor,KEY,property);}}};for(NAME in TypedArrayConstructorsList){Constructor=global[NAME];Prototype=Constructor&&Constructor.prototype;if(Prototype)enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR]=Constructor;else NATIVE_ARRAY_BUFFER_VIEWS=false;}for(NAME in BigIntArrayConstructorsList){Constructor=global[NAME];Prototype=Constructor&&Constructor.prototype;if(Prototype)enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR]=Constructor;}if(!NATIVE_ARRAY_BUFFER_VIEWS||!isCallable(TypedArray)||TypedArray===Function.prototype){TypedArray=function TypedArray(){throw TypeError('Incorrect invocation');};if(NATIVE_ARRAY_BUFFER_VIEWS)for(NAME in TypedArrayConstructorsList){if(global[NAME])setPrototypeOf(global[NAME],TypedArray);}}if(!NATIVE_ARRAY_BUFFER_VIEWS||!TypedArrayPrototype||TypedArrayPrototype===ObjectPrototype){TypedArrayPrototype=TypedArray.prototype;if(NATIVE_ARRAY_BUFFER_VIEWS)for(NAME in TypedArrayConstructorsList){if(global[NAME])setPrototypeOf(global[NAME].prototype,TypedArrayPrototype);}}if(NATIVE_ARRAY_BUFFER_VIEWS&&getPrototypeOf(Uint8ClampedArrayPrototype)!==TypedArrayPrototype){setPrototypeOf(Uint8ClampedArrayPrototype,TypedArrayPrototype);}if(DESCRIPTORS&&!hasOwn(TypedArrayPrototype,TO_STRING_TAG)){TYPED_ARRAY_TAG_REQUIRED=true;defineProperty(TypedArrayPrototype,TO_STRING_TAG,{get:function get(){return isObject(this)?this[TYPED_ARRAY_TAG]:undefined;}});for(NAME in TypedArrayConstructorsList)if(global[NAME]){createNonEnumerableProperty(global[NAME],TYPED_ARRAY_TAG,NAME);}}module.exports={NATIVE_ARRAY_BUFFER_VIEWS:NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG:TYPED_ARRAY_TAG_REQUIRED&&TYPED_ARRAY_TAG,aTypedArray:aTypedArray,aTypedArrayConstructor:aTypedArrayConstructor,exportTypedArrayMethod:exportTypedArrayMethod,exportTypedArrayStaticMethod:exportTypedArrayStaticMethod,getTypedArrayConstructor:getTypedArrayConstructor,isView:isView,isTypedArray:isTypedArray,TypedArray:TypedArray,TypedArrayPrototype:TypedArrayPrototype};/***/}),(/* 79 */ /***/function(module){module.exports=typeof ArrayBuffer!='undefined'&&typeof DataView!='undefined';/***/}),(/* 80 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var TO_STRING_TAG_SUPPORT=__w_pdfjs_require__(81);var isCallable=__w_pdfjs_require__(23);var classofRaw=__w_pdfjs_require__(18);var wellKnownSymbol=__w_pdfjs_require__(35);var TO_STRING_TAG=wellKnownSymbol('toStringTag');var $Object=Object;var CORRECT_ARGUMENTS=classofRaw(function(){return arguments;}())=='Arguments';var tryGet=function tryGet(it,key){try{return it[key];}catch(error){}};module.exports=TO_STRING_TAG_SUPPORT?classofRaw:function(it){var O,tag,result;return it===undefined?'Undefined':it===null?'Null':typeof(tag=tryGet(O=$Object(it),TO_STRING_TAG))=='string'?tag:CORRECT_ARGUMENTS?classofRaw(O):(result=classofRaw(O))=='Object'&&isCallable(O.callee)?'Arguments':result;};/***/}),(/* 81 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var wellKnownSymbol=__w_pdfjs_require__(35);var TO_STRING_TAG=wellKnownSymbol('toStringTag');var test={};test[TO_STRING_TAG]='z';module.exports=String(test)==='[object z]';/***/}),(/* 82 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var hasOwn=__w_pdfjs_require__(40);var isCallable=__w_pdfjs_require__(23);var toObject=__w_pdfjs_require__(41);var sharedKey=__w_pdfjs_require__(55);var CORRECT_PROTOTYPE_GETTER=__w_pdfjs_require__(83);var IE_PROTO=sharedKey('IE_PROTO');var $Object=Object;var ObjectPrototype=$Object.prototype;module.exports=CORRECT_PROTOTYPE_GETTER?_Object$getPrototypeOf:function(O){var object=toObject(O);if(hasOwn(object,IE_PROTO))return object[IE_PROTO];var constructor=object.constructor;if(isCallable(constructor)&&object instanceof constructor){return constructor.prototype;}return object instanceof $Object?ObjectPrototype:null;};/***/}),(/* 83 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var fails=__w_pdfjs_require__(10);module.exports=!fails(function(){function F(){}F.prototype.constructor=null;return _Object$getPrototypeOf(new F())!==F.prototype;});/***/}),(/* 84 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var uncurryThis=__w_pdfjs_require__(17);var anObject=__w_pdfjs_require__(48);var aPossiblePrototype=__w_pdfjs_require__(85);module.exports=_Object$setPrototypeOf||('__proto__'in{}?function(){var CORRECT_SETTER=false;var test={};var setter;try{setter=uncurryThis(_Object$getOwnPropertyDescriptor(Object.prototype,'__proto__').set);setter(test,[]);CORRECT_SETTER=test instanceof Array;}catch(error){}return function setPrototypeOf(O,proto){anObject(O);aPossiblePrototype(proto);if(CORRECT_SETTER)setter(O,proto);else O.__proto__=proto;return O;};}():undefined);/***/}),(/* 85 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var isCallable=__w_pdfjs_require__(23);var $String=String;var $TypeError=TypeError;module.exports=function(argument){if(_typeof(argument)=='object'||isCallable(argument))return argument;throw $TypeError(\"Can't set \"+$String(argument)+' as a prototype');};/***/}),(/* 86 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){__w_pdfjs_require__(87);__w_pdfjs_require__(93);__w_pdfjs_require__(95);__w_pdfjs_require__(117);__w_pdfjs_require__(119);var path=__w_pdfjs_require__(128);module.exports=path.structuredClone;/***/}),(/* 87 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){\"use strict\";var toIndexedObject=__w_pdfjs_require__(15);var addToUnscopables=__w_pdfjs_require__(70);var Iterators=__w_pdfjs_require__(88);var InternalStateModule=__w_pdfjs_require__(53);var defineProperty=__w_pdfjs_require__(46).f;var defineIterator=__w_pdfjs_require__(89);var IS_PURE=__w_pdfjs_require__(37);var DESCRIPTORS=__w_pdfjs_require__(9);var ARRAY_ITERATOR='Array Iterator';var setInternalState=InternalStateModule.set;var getInternalState=InternalStateModule.getterFor(ARRAY_ITERATOR);module.exports=defineIterator(Array,'Array',function(iterated,kind){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(iterated),index:0,kind:kind});},function(){var state=getInternalState(this);var target=state.target;var kind=state.kind;var index=state.index++;if(!target||index>=target.length){state.target=undefined;return{value:undefined,done:true};}if(kind=='keys')return{value:index,done:false};if(kind=='values')return{value:target[index],done:false};return{value:[index,target[index]],done:false};},'values');var values=Iterators.Arguments=Iterators.Array;addToUnscopables('keys');addToUnscopables('values');addToUnscopables('entries');if(!IS_PURE&&DESCRIPTORS&&values.name!=='values')try{defineProperty(values,'name',{value:'values'});}catch(error){}/***/}),(/* 88 */ /***/function(module){module.exports={};/***/}),(/* 89 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){\"use strict\";var $=__w_pdfjs_require__(6);var call=__w_pdfjs_require__(11);var IS_PURE=__w_pdfjs_require__(37);var FunctionName=__w_pdfjs_require__(51);var isCallable=__w_pdfjs_require__(23);var createIteratorConstructor=__w_pdfjs_require__(90);var getPrototypeOf=__w_pdfjs_require__(82);var setPrototypeOf=__w_pdfjs_require__(84);var setToStringTag=__w_pdfjs_require__(92);var createNonEnumerableProperty=__w_pdfjs_require__(45);var defineBuiltIn=__w_pdfjs_require__(49);var wellKnownSymbol=__w_pdfjs_require__(35);var Iterators=__w_pdfjs_require__(88);var IteratorsCore=__w_pdfjs_require__(91);var PROPER_FUNCTION_NAME=FunctionName.PROPER;var CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE;var IteratorPrototype=IteratorsCore.IteratorPrototype;var BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS;var ITERATOR=wellKnownSymbol('iterator');var KEYS='keys';var VALUES='values';var ENTRIES='entries';var returnThis=function returnThis(){return this;};module.exports=function(Iterable,NAME,IteratorConstructor,next,DEFAULT,IS_SET,FORCED){createIteratorConstructor(IteratorConstructor,NAME,next);var getIterationMethod=function getIterationMethod(KIND){if(KIND===DEFAULT&&defaultIterator)return defaultIterator;if(!BUGGY_SAFARI_ITERATORS&&KIND in IterablePrototype)return IterablePrototype[KIND];switch(KIND){case KEYS:return function keys(){return new IteratorConstructor(this,KIND);};case VALUES:return function values(){return new IteratorConstructor(this,KIND);};case ENTRIES:return function entries(){return new IteratorConstructor(this,KIND);};}return function(){return new IteratorConstructor(this);};};var TO_STRING_TAG=NAME+' Iterator';var INCORRECT_VALUES_NAME=false;var IterablePrototype=Iterable.prototype;var nativeIterator=IterablePrototype[ITERATOR]||IterablePrototype['@@iterator']||DEFAULT&&IterablePrototype[DEFAULT];var defaultIterator=!BUGGY_SAFARI_ITERATORS&&nativeIterator||getIterationMethod(DEFAULT);var anyNativeIterator=NAME=='Array'?_entriesInstanceProperty(IterablePrototype)||nativeIterator:nativeIterator;var CurrentIteratorPrototype,methods,KEY;if(anyNativeIterator){CurrentIteratorPrototype=getPrototypeOf(anyNativeIterator.call(new Iterable()));if(CurrentIteratorPrototype!==Object.prototype&&CurrentIteratorPrototype.next){if(!IS_PURE&&getPrototypeOf(CurrentIteratorPrototype)!==IteratorPrototype){if(setPrototypeOf){setPrototypeOf(CurrentIteratorPrototype,IteratorPrototype);}else if(!isCallable(CurrentIteratorPrototype[ITERATOR])){defineBuiltIn(CurrentIteratorPrototype,ITERATOR,returnThis);}}setToStringTag(CurrentIteratorPrototype,TO_STRING_TAG,true,true);if(IS_PURE)Iterators[TO_STRING_TAG]=returnThis;}}if(PROPER_FUNCTION_NAME&&DEFAULT==VALUES&&nativeIterator&&nativeIterator.name!==VALUES){if(!IS_PURE&&CONFIGURABLE_FUNCTION_NAME){createNonEnumerableProperty(IterablePrototype,'name',VALUES);}else{INCORRECT_VALUES_NAME=true;defaultIterator=function values(){return call(nativeIterator,this);};}}if(DEFAULT){methods={values:getIterationMethod(VALUES),keys:IS_SET?defaultIterator:getIterationMethod(KEYS),entries:getIterationMethod(ENTRIES)};if(FORCED)for(KEY in methods){if(BUGGY_SAFARI_ITERATORS||INCORRECT_VALUES_NAME||!(KEY in IterablePrototype)){defineBuiltIn(IterablePrototype,KEY,methods[KEY]);}}else $({target:NAME,proto:true,forced:BUGGY_SAFARI_ITERATORS||INCORRECT_VALUES_NAME},methods);}if((!IS_PURE||FORCED)&&IterablePrototype[ITERATOR]!==defaultIterator){defineBuiltIn(IterablePrototype,ITERATOR,defaultIterator,{name:DEFAULT});}Iterators[NAME]=defaultIterator;return methods;};/***/}),(/* 90 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){\"use strict\";var IteratorPrototype=__w_pdfjs_require__(91).IteratorPrototype;var create=__w_pdfjs_require__(71);var createPropertyDescriptor=__w_pdfjs_require__(14);var setToStringTag=__w_pdfjs_require__(92);var Iterators=__w_pdfjs_require__(88);var returnThis=function returnThis(){return this;};module.exports=function(IteratorConstructor,NAME,next,ENUMERABLE_NEXT){var TO_STRING_TAG=NAME+' Iterator';IteratorConstructor.prototype=create(IteratorPrototype,{next:createPropertyDescriptor(+!ENUMERABLE_NEXT,next)});setToStringTag(IteratorConstructor,TO_STRING_TAG,false,true);Iterators[TO_STRING_TAG]=returnThis;return IteratorConstructor;};/***/}),(/* 91 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){\"use strict\";var fails=__w_pdfjs_require__(10);var isCallable=__w_pdfjs_require__(23);var create=__w_pdfjs_require__(71);var getPrototypeOf=__w_pdfjs_require__(82);var defineBuiltIn=__w_pdfjs_require__(49);var wellKnownSymbol=__w_pdfjs_require__(35);var IS_PURE=__w_pdfjs_require__(37);var ITERATOR=wellKnownSymbol('iterator');var BUGGY_SAFARI_ITERATORS=false;var IteratorPrototype,PrototypeOfArrayIteratorPrototype,arrayIterator;if(_keysInstanceProperty([])){var _context12;arrayIterator=_keysInstanceProperty(_context12=[]).call(_context12);if(!('next'in arrayIterator))BUGGY_SAFARI_ITERATORS=true;else{PrototypeOfArrayIteratorPrototype=getPrototypeOf(getPrototypeOf(arrayIterator));if(PrototypeOfArrayIteratorPrototype!==Object.prototype)IteratorPrototype=PrototypeOfArrayIteratorPrototype;}}var NEW_ITERATOR_PROTOTYPE=IteratorPrototype==undefined||fails(function(){var test={};return IteratorPrototype[ITERATOR].call(test)!==test;});if(NEW_ITERATOR_PROTOTYPE)IteratorPrototype={};else if(IS_PURE)IteratorPrototype=create(IteratorPrototype);if(!isCallable(IteratorPrototype[ITERATOR])){defineBuiltIn(IteratorPrototype,ITERATOR,function(){return this;});}module.exports={IteratorPrototype:IteratorPrototype,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS};/***/}),(/* 92 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var defineProperty=__w_pdfjs_require__(46).f;var hasOwn=__w_pdfjs_require__(40);var wellKnownSymbol=__w_pdfjs_require__(35);var TO_STRING_TAG=wellKnownSymbol('toStringTag');module.exports=function(target,TAG,STATIC){if(target&&!STATIC)target=target.prototype;if(target&&!hasOwn(target,TO_STRING_TAG)){defineProperty(target,TO_STRING_TAG,{configurable:true,value:TAG});}};/***/}),(/* 93 */ /***/function(__unused_webpack_module,__unused_webpack_exports,__w_pdfjs_require__){var TO_STRING_TAG_SUPPORT=__w_pdfjs_require__(81);var defineBuiltIn=__w_pdfjs_require__(49);var toString=__w_pdfjs_require__(94);if(!TO_STRING_TAG_SUPPORT){defineBuiltIn(Object.prototype,'toString',toString,{unsafe:true});}/***/}),(/* 94 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){\"use strict\";var TO_STRING_TAG_SUPPORT=__w_pdfjs_require__(81);var classof=__w_pdfjs_require__(80);module.exports=TO_STRING_TAG_SUPPORT?{}.toString:function toString(){return'[object '+classof(this)+']';};/***/}),(/* 95 */ /***/function(__unused_webpack_module,__unused_webpack_exports,__w_pdfjs_require__){__w_pdfjs_require__(96);/***/}),(/* 96 */ /***/function(__unused_webpack_module,__unused_webpack_exports,__w_pdfjs_require__){\"use strict\";var collection=__w_pdfjs_require__(97);var collectionStrong=__w_pdfjs_require__(114);collection('Map',function(init){return function Map(){return init(this,arguments.length?arguments[0]:undefined);};},collectionStrong);/***/}),(/* 97 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){\"use strict\";var $=__w_pdfjs_require__(6);var global=__w_pdfjs_require__(7);var uncurryThis=__w_pdfjs_require__(17);var isForced=__w_pdfjs_require__(69);var defineBuiltIn=__w_pdfjs_require__(49);var InternalMetadataModule=__w_pdfjs_require__(98);var iterate=__w_pdfjs_require__(105);var anInstance=__w_pdfjs_require__(111);var isCallable=__w_pdfjs_require__(23);var isObject=__w_pdfjs_require__(22);var fails=__w_pdfjs_require__(10);var checkCorrectnessOfIteration=__w_pdfjs_require__(112);var setToStringTag=__w_pdfjs_require__(92);var inheritIfRequired=__w_pdfjs_require__(113);module.exports=function(CONSTRUCTOR_NAME,wrapper,common){var IS_MAP=_indexOfInstanceProperty(CONSTRUCTOR_NAME).call(CONSTRUCTOR_NAME,'Map')!==-1;var IS_WEAK=_indexOfInstanceProperty(CONSTRUCTOR_NAME).call(CONSTRUCTOR_NAME,'Weak')!==-1;var ADDER=IS_MAP?'set':'add';var NativeConstructor=global[CONSTRUCTOR_NAME];var NativePrototype=NativeConstructor&&NativeConstructor.prototype;var Constructor=NativeConstructor;var exported={};var fixMethod=function fixMethod(KEY){var uncurriedNativeMethod=uncurryThis(NativePrototype[KEY]);defineBuiltIn(NativePrototype,KEY,KEY=='add'?function add(value){uncurriedNativeMethod(this,value===0?0:value);return this;}:KEY=='delete'?function(key){return IS_WEAK&&!isObject(key)?false:uncurriedNativeMethod(this,key===0?0:key);}:KEY=='get'?function get(key){return IS_WEAK&&!isObject(key)?undefined:uncurriedNativeMethod(this,key===0?0:key);}:KEY=='has'?function has(key){return IS_WEAK&&!isObject(key)?false:uncurriedNativeMethod(this,key===0?0:key);}:function set(key,value){uncurriedNativeMethod(this,key===0?0:key,value);return this;});};var REPLACE=isForced(CONSTRUCTOR_NAME,!isCallable(NativeConstructor)||!(IS_WEAK||NativePrototype.forEach&&!fails(function(){var _context13;_entriesInstanceProperty(_context13=new NativeConstructor()).call(_context13).next();})));if(REPLACE){Constructor=common.getConstructor(wrapper,CONSTRUCTOR_NAME,IS_MAP,ADDER);InternalMetadataModule.enable();}else if(isForced(CONSTRUCTOR_NAME,true)){var instance=new Constructor();var HASNT_CHAINING=instance[ADDER](IS_WEAK?{}:-0,1)!=instance;var THROWS_ON_PRIMITIVES=fails(function(){instance.has(1);});var ACCEPT_ITERABLES=checkCorrectnessOfIteration(function(iterable){new NativeConstructor(iterable);});var BUGGY_ZERO=!IS_WEAK&&fails(function(){var $instance=new NativeConstructor();var index=5;while(index--)$instance[ADDER](index,index);return!$instance.has(-0);});if(!ACCEPT_ITERABLES){Constructor=wrapper(function(dummy,iterable){anInstance(dummy,NativePrototype);var that=inheritIfRequired(new NativeConstructor(),dummy,Constructor);if(iterable!=undefined)iterate(iterable,that[ADDER],{that:that,AS_ENTRIES:IS_MAP});return that;});Constructor.prototype=NativePrototype;NativePrototype.constructor=Constructor;}if(THROWS_ON_PRIMITIVES||BUGGY_ZERO){fixMethod('delete');fixMethod('has');IS_MAP&&fixMethod('get');}if(BUGGY_ZERO||HASNT_CHAINING)fixMethod(ADDER);if(IS_WEAK&&NativePrototype.clear)delete NativePrototype.clear;}exported[CONSTRUCTOR_NAME]=Constructor;$({global:true,constructor:true,forced:Constructor!=NativeConstructor},exported);setToStringTag(Constructor,CONSTRUCTOR_NAME);if(!IS_WEAK)common.setStrong(Constructor,CONSTRUCTOR_NAME,IS_MAP);return Constructor;};/***/}),(/* 98 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var $=__w_pdfjs_require__(6);var uncurryThis=__w_pdfjs_require__(17);var hiddenKeys=__w_pdfjs_require__(56);var isObject=__w_pdfjs_require__(22);var hasOwn=__w_pdfjs_require__(40);var defineProperty=__w_pdfjs_require__(46).f;var getOwnPropertyNamesModule=__w_pdfjs_require__(59);var getOwnPropertyNamesExternalModule=__w_pdfjs_require__(99);var isExtensible=__w_pdfjs_require__(102);var uid=__w_pdfjs_require__(42);var FREEZING=__w_pdfjs_require__(104);var REQUIRED=false;var METADATA=uid('meta');var id=0;var setMetadata=function setMetadata(it){defineProperty(it,METADATA,{value:{objectID:'O'+id++,weakData:{}}});};var fastKey=function fastKey(it,create){if(!isObject(it))return _typeof(it)=='symbol'?it:(typeof it=='string'?'S':'P')+it;if(!hasOwn(it,METADATA)){if(!isExtensible(it))return'F';if(!create)return'E';setMetadata(it);}return it[METADATA].objectID;};var getWeakData=function getWeakData(it,create){if(!hasOwn(it,METADATA)){if(!isExtensible(it))return true;if(!create)return false;setMetadata(it);}return it[METADATA].weakData;};var onFreeze=function onFreeze(it){if(FREEZING&&REQUIRED&&isExtensible(it)&&!hasOwn(it,METADATA))setMetadata(it);return it;};var enable=function enable(){meta.enable=function(){};REQUIRED=true;var getOwnPropertyNames=getOwnPropertyNamesModule.f;var splice=uncurryThis(_spliceInstanceProperty([]));var test={};test[METADATA]=1;if(getOwnPropertyNames(test).length){getOwnPropertyNamesModule.f=function(it){var result=getOwnPropertyNames(it);for(var i=0,length=result.length;i<length;i++){if(result[i]===METADATA){splice(result,i,1);break;}}return result;};$({target:'Object',stat:true,forced:true},{getOwnPropertyNames:getOwnPropertyNamesExternalModule.f});}};var meta=module.exports={enable:enable,fastKey:fastKey,getWeakData:getWeakData,onFreeze:onFreeze};hiddenKeys[METADATA]=true;/***/}),(/* 99 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var classof=__w_pdfjs_require__(18);var toIndexedObject=__w_pdfjs_require__(15);var $getOwnPropertyNames=__w_pdfjs_require__(59).f;var arraySlice=__w_pdfjs_require__(100);var windowNames=(typeof window===\"undefined\"?\"undefined\":_typeof(window))=='object'&&window&&_Object$getOwnPropertyNames?_Object$getOwnPropertyNames(window):[];var getWindowNames=function getWindowNames(it){try{return $getOwnPropertyNames(it);}catch(error){return arraySlice(windowNames);}};module.exports.f=function getOwnPropertyNames(it){return windowNames&&classof(it)=='Window'?getWindowNames(it):$getOwnPropertyNames(toIndexedObject(it));};/***/}),(/* 100 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var toAbsoluteIndex=__w_pdfjs_require__(62);var lengthOfArrayLike=__w_pdfjs_require__(65);var createProperty=__w_pdfjs_require__(101);var $Array=Array;var max=Math.max;module.exports=function(O,start,end){var length=lengthOfArrayLike(O);var k=toAbsoluteIndex(start,length);var fin=toAbsoluteIndex(end===undefined?length:end,length);var result=$Array(max(fin-k,0));for(var n=0;k<fin;k++,n++)createProperty(result,n,O[k]);result.length=n;return result;};/***/}),(/* 101 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){\"use strict\";var toPropertyKey=__w_pdfjs_require__(20);var definePropertyModule=__w_pdfjs_require__(46);var createPropertyDescriptor=__w_pdfjs_require__(14);module.exports=function(object,key,value){var propertyKey=toPropertyKey(key);if(propertyKey in object)definePropertyModule.f(object,propertyKey,createPropertyDescriptor(0,value));else object[propertyKey]=value;};/***/}),(/* 102 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var fails=__w_pdfjs_require__(10);var isObject=__w_pdfjs_require__(22);var classof=__w_pdfjs_require__(18);var ARRAY_BUFFER_NON_EXTENSIBLE=__w_pdfjs_require__(103);var $isExtensible=_Object$isExtensible;var FAILS_ON_PRIMITIVES=fails(function(){$isExtensible(1);});module.exports=FAILS_ON_PRIMITIVES||ARRAY_BUFFER_NON_EXTENSIBLE?function isExtensible(it){if(!isObject(it))return false;if(ARRAY_BUFFER_NON_EXTENSIBLE&&classof(it)=='ArrayBuffer')return false;return $isExtensible?$isExtensible(it):true;}:$isExtensible;/***/}),(/* 103 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var fails=__w_pdfjs_require__(10);module.exports=fails(function(){if(typeof ArrayBuffer=='function'){var buffer=new ArrayBuffer(8);if(_Object$isExtensible(buffer))_Object$defineProperty(buffer,'a',{value:8});}});/***/}),(/* 104 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var fails=__w_pdfjs_require__(10);module.exports=!fails(function(){return _Object$isExtensible(_Object$preventExtensions({}));});/***/}),(/* 105 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var bind=__w_pdfjs_require__(106);var call=__w_pdfjs_require__(11);var anObject=__w_pdfjs_require__(48);var tryToString=__w_pdfjs_require__(33);var isArrayIteratorMethod=__w_pdfjs_require__(107);var lengthOfArrayLike=__w_pdfjs_require__(65);var isPrototypeOf=__w_pdfjs_require__(26);var getIterator=__w_pdfjs_require__(108);var getIteratorMethod=__w_pdfjs_require__(109);var iteratorClose=__w_pdfjs_require__(110);var $TypeError=TypeError;var Result=function Result(stopped,result){this.stopped=stopped;this.result=result;};var ResultPrototype=Result.prototype;module.exports=function(iterable,unboundFunction,options){var that=options&&options.that;var AS_ENTRIES=!!(options&&options.AS_ENTRIES);var IS_RECORD=!!(options&&options.IS_RECORD);var IS_ITERATOR=!!(options&&options.IS_ITERATOR);var INTERRUPTED=!!(options&&options.INTERRUPTED);var fn=bind(unboundFunction,that);var iterator,iterFn,index,length,result,next,step;var stop=function stop(condition){if(iterator)iteratorClose(iterator,'normal',condition);return new Result(true,condition);};var callFn=function callFn(value){if(AS_ENTRIES){anObject(value);return INTERRUPTED?fn(value[0],value[1],stop):fn(value[0],value[1]);}return INTERRUPTED?fn(value,stop):fn(value);};if(IS_RECORD){iterator=iterable.iterator;}else if(IS_ITERATOR){iterator=iterable;}else{iterFn=getIteratorMethod(iterable);if(!iterFn)throw $TypeError(tryToString(iterable)+' is not iterable');if(isArrayIteratorMethod(iterFn)){for(index=0,length=lengthOfArrayLike(iterable);length>index;index++){result=callFn(iterable[index]);if(result&&isPrototypeOf(ResultPrototype,result))return result;}return new Result(false);}iterator=getIterator(iterable,iterFn);}next=IS_RECORD?iterable.next:iterator.next;while(!(step=call(next,iterator)).done){try{result=callFn(step.value);}catch(error){iteratorClose(iterator,'throw',error);}if(_typeof(result)=='object'&&result&&isPrototypeOf(ResultPrototype,result))return result;}return new Result(false);};/***/}),(/* 106 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var uncurryThis=__w_pdfjs_require__(17);var aCallable=__w_pdfjs_require__(32);var NATIVE_BIND=__w_pdfjs_require__(12);var bind=uncurryThis(uncurryThis.bind);module.exports=function(fn,that){aCallable(fn);return that===undefined?fn:NATIVE_BIND?bind(fn,that):function(){return fn.apply(that,arguments);};};/***/}),(/* 107 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var wellKnownSymbol=__w_pdfjs_require__(35);var Iterators=__w_pdfjs_require__(88);var ITERATOR=wellKnownSymbol('iterator');var ArrayPrototype=Array.prototype;module.exports=function(it){return it!==undefined&&(Iterators.Array===it||ArrayPrototype[ITERATOR]===it);};/***/}),(/* 108 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var call=__w_pdfjs_require__(11);var aCallable=__w_pdfjs_require__(32);var anObject=__w_pdfjs_require__(48);var tryToString=__w_pdfjs_require__(33);var getIteratorMethod=__w_pdfjs_require__(109);var $TypeError=TypeError;module.exports=function(argument,usingIterator){var iteratorMethod=arguments.length<2?getIteratorMethod(argument):usingIterator;if(aCallable(iteratorMethod))return anObject(call(iteratorMethod,argument));throw $TypeError(tryToString(argument)+' is not iterable');};/***/}),(/* 109 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var classof=__w_pdfjs_require__(80);var getMethod=__w_pdfjs_require__(31);var Iterators=__w_pdfjs_require__(88);var wellKnownSymbol=__w_pdfjs_require__(35);var ITERATOR=wellKnownSymbol('iterator');module.exports=function(it){if(it!=undefined)return getMethod(it,ITERATOR)||getMethod(it,'@@iterator')||Iterators[classof(it)];};/***/}),(/* 110 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var call=__w_pdfjs_require__(11);var anObject=__w_pdfjs_require__(48);var getMethod=__w_pdfjs_require__(31);module.exports=function(iterator,kind,value){var innerResult,innerError;anObject(iterator);try{innerResult=getMethod(iterator,'return');if(!innerResult){if(kind==='throw')throw value;return value;}innerResult=call(innerResult,iterator);}catch(error){innerError=true;innerResult=error;}if(kind==='throw')throw value;if(innerError)throw innerResult;anObject(innerResult);return value;};/***/}),(/* 111 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var isPrototypeOf=__w_pdfjs_require__(26);var $TypeError=TypeError;module.exports=function(it,Prototype){if(isPrototypeOf(Prototype,it))return it;throw $TypeError('Incorrect invocation');};/***/}),(/* 112 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var wellKnownSymbol=__w_pdfjs_require__(35);var ITERATOR=wellKnownSymbol('iterator');var SAFE_CLOSING=false;try{var called=0;var iteratorWithReturn={next:function next(){return{done:!!called++};},'return':function _return(){SAFE_CLOSING=true;}};iteratorWithReturn[ITERATOR]=function(){return this;};_Array$from(iteratorWithReturn,function(){throw 2;});}catch(error){}module.exports=function(exec,SKIP_CLOSING){if(!SKIP_CLOSING&&!SAFE_CLOSING)return false;var ITERATION_SUPPORT=false;try{var object={};object[ITERATOR]=function(){return{next:function next(){return{done:ITERATION_SUPPORT=true};}};};exec(object);}catch(error){}return ITERATION_SUPPORT;};/***/}),(/* 113 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var isCallable=__w_pdfjs_require__(23);var isObject=__w_pdfjs_require__(22);var setPrototypeOf=__w_pdfjs_require__(84);module.exports=function($this,dummy,Wrapper){var NewTarget,NewTargetPrototype;if(setPrototypeOf&&isCallable(NewTarget=dummy.constructor)&&NewTarget!==Wrapper&&isObject(NewTargetPrototype=NewTarget.prototype)&&NewTargetPrototype!==Wrapper.prototype)setPrototypeOf($this,NewTargetPrototype);return $this;};/***/}),(/* 114 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){\"use strict\";var defineProperty=__w_pdfjs_require__(46).f;var create=__w_pdfjs_require__(71);var defineBuiltIns=__w_pdfjs_require__(115);var bind=__w_pdfjs_require__(106);var anInstance=__w_pdfjs_require__(111);var iterate=__w_pdfjs_require__(105);var defineIterator=__w_pdfjs_require__(89);var setSpecies=__w_pdfjs_require__(116);var DESCRIPTORS=__w_pdfjs_require__(9);var fastKey=__w_pdfjs_require__(98).fastKey;var InternalStateModule=__w_pdfjs_require__(53);var setInternalState=InternalStateModule.set;var internalStateGetterFor=InternalStateModule.getterFor;module.exports={getConstructor:function getConstructor(wrapper,CONSTRUCTOR_NAME,IS_MAP,ADDER){var Constructor=wrapper(function(that,iterable){anInstance(that,Prototype);setInternalState(that,{type:CONSTRUCTOR_NAME,index:create(null),first:undefined,last:undefined,size:0});if(!DESCRIPTORS)that.size=0;if(iterable!=undefined)iterate(iterable,that[ADDER],{that:that,AS_ENTRIES:IS_MAP});});var Prototype=Constructor.prototype;var getInternalState=internalStateGetterFor(CONSTRUCTOR_NAME);var define=function define(that,key,value){var state=getInternalState(that);var entry=getEntry(that,key);var previous,index;if(entry){entry.value=value;}else{state.last=entry={index:index=fastKey(key,true),key:key,value:value,previous:previous=state.last,next:undefined,removed:false};if(!state.first)state.first=entry;if(previous)previous.next=entry;if(DESCRIPTORS)state.size++;else that.size++;if(index!=='F')state.index[index]=entry;}return that;};var getEntry=function getEntry(that,key){var state=getInternalState(that);var index=fastKey(key);var entry;if(index!=='F')return state.index[index];for(entry=state.first;entry;entry=entry.next){if(entry.key==key)return entry;}};defineBuiltIns(Prototype,{clear:function clear(){var that=this;var state=getInternalState(that);var data=state.index;var entry=state.first;while(entry){entry.removed=true;if(entry.previous)entry.previous=entry.previous.next=undefined;delete data[entry.index];entry=entry.next;}state.first=state.last=undefined;if(DESCRIPTORS)state.size=0;else that.size=0;},'delete':function _delete(key){var that=this;var state=getInternalState(that);var entry=getEntry(that,key);if(entry){var next=entry.next;var prev=entry.previous;delete state.index[entry.index];entry.removed=true;if(prev)prev.next=next;if(next)next.previous=prev;if(state.first==entry)state.first=next;if(state.last==entry)state.last=prev;if(DESCRIPTORS)state.size--;else that.size--;}return!!entry;},forEach:function forEach(callbackfn){var state=getInternalState(this);var boundFunction=bind(callbackfn,arguments.length>1?arguments[1]:undefined);var entry;while(entry=entry?entry.next:state.first){boundFunction(entry.value,entry.key,this);while(entry&&entry.removed)entry=entry.previous;}},has:function has(key){return!!getEntry(this,key);}});defineBuiltIns(Prototype,IS_MAP?{get:function get(key){var entry=getEntry(this,key);return entry&&entry.value;},set:function set(key,value){return define(this,key===0?0:key,value);}}:{add:function add(value){return define(this,value=value===0?0:value,value);}});if(DESCRIPTORS)defineProperty(Prototype,'size',{get:function get(){return getInternalState(this).size;}});return Constructor;},setStrong:function setStrong(Constructor,CONSTRUCTOR_NAME,IS_MAP){var ITERATOR_NAME=CONSTRUCTOR_NAME+' Iterator';var getInternalCollectionState=internalStateGetterFor(CONSTRUCTOR_NAME);var getInternalIteratorState=internalStateGetterFor(ITERATOR_NAME);defineIterator(Constructor,CONSTRUCTOR_NAME,function(iterated,kind){setInternalState(this,{type:ITERATOR_NAME,target:iterated,state:getInternalCollectionState(iterated),kind:kind,last:undefined});},function(){var state=getInternalIteratorState(this);var kind=state.kind;var entry=state.last;while(entry&&entry.removed)entry=entry.previous;if(!state.target||!(state.last=entry=entry?entry.next:state.state.first)){state.target=undefined;return{value:undefined,done:true};}if(kind=='keys')return{value:entry.key,done:false};if(kind=='values')return{value:entry.value,done:false};return{value:[entry.key,entry.value],done:false};},IS_MAP?'entries':'values',!IS_MAP,true);setSpecies(CONSTRUCTOR_NAME);}};/***/}),(/* 115 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var defineBuiltIn=__w_pdfjs_require__(49);module.exports=function(target,src,options){for(var key in src)defineBuiltIn(target,key,src[key],options);return target;};/***/}),(/* 116 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){\"use strict\";var getBuiltIn=__w_pdfjs_require__(25);var definePropertyModule=__w_pdfjs_require__(46);var wellKnownSymbol=__w_pdfjs_require__(35);var DESCRIPTORS=__w_pdfjs_require__(9);var SPECIES=wellKnownSymbol('species');module.exports=function(CONSTRUCTOR_NAME){var Constructor=getBuiltIn(CONSTRUCTOR_NAME);var defineProperty=definePropertyModule.f;if(DESCRIPTORS&&Constructor&&!Constructor[SPECIES]){defineProperty(Constructor,SPECIES,{configurable:true,get:function get(){return this;}});}};/***/}),(/* 117 */ /***/function(__unused_webpack_module,__unused_webpack_exports,__w_pdfjs_require__){__w_pdfjs_require__(118);/***/}),(/* 118 */ /***/function(__unused_webpack_module,__unused_webpack_exports,__w_pdfjs_require__){\"use strict\";var collection=__w_pdfjs_require__(97);var collectionStrong=__w_pdfjs_require__(114);collection('Set',function(init){return function Set(){return init(this,arguments.length?arguments[0]:undefined);};},collectionStrong);/***/}),(/* 119 */ /***/function(__unused_webpack_module,__unused_webpack_exports,__w_pdfjs_require__){var IS_PURE=__w_pdfjs_require__(37);var $=__w_pdfjs_require__(6);var global=__w_pdfjs_require__(7);var getBuiltin=__w_pdfjs_require__(25);var uncurryThis=__w_pdfjs_require__(17);var fails=__w_pdfjs_require__(10);var uid=__w_pdfjs_require__(42);var isCallable=__w_pdfjs_require__(23);var isConstructor=__w_pdfjs_require__(120);var isObject=__w_pdfjs_require__(22);var isSymbol=__w_pdfjs_require__(24);var iterate=__w_pdfjs_require__(105);var anObject=__w_pdfjs_require__(48);var classof=__w_pdfjs_require__(80);var hasOwn=__w_pdfjs_require__(40);var createProperty=__w_pdfjs_require__(101);var createNonEnumerableProperty=__w_pdfjs_require__(45);var lengthOfArrayLike=__w_pdfjs_require__(65);var validateArgumentsLength=__w_pdfjs_require__(121);var getRegExpFlags=__w_pdfjs_require__(122);var ERROR_STACK_INSTALLABLE=__w_pdfjs_require__(124);var V8=__w_pdfjs_require__(29);var IS_BROWSER=__w_pdfjs_require__(125);var IS_DENO=__w_pdfjs_require__(126);var IS_NODE=__w_pdfjs_require__(127);var Object=global.Object;var Date=global.Date;var Error=global.Error;var EvalError=global.EvalError;var RangeError=global.RangeError;var ReferenceError=global.ReferenceError;var SyntaxError=global.SyntaxError;var TypeError=global.TypeError;var URIError=global.URIError;var PerformanceMark=global.PerformanceMark;var WebAssembly=global.WebAssembly;var CompileError=WebAssembly&&WebAssembly.CompileError||Error;var LinkError=WebAssembly&&WebAssembly.LinkError||Error;var RuntimeError=WebAssembly&&WebAssembly.RuntimeError||Error;var DOMException=getBuiltin('DOMException');var Set=getBuiltin('Set');var Map=getBuiltin('Map');var MapPrototype=Map.prototype;var mapHas=uncurryThis(MapPrototype.has);var mapGet=uncurryThis(MapPrototype.get);var mapSet=uncurryThis(MapPrototype.set);var setAdd=uncurryThis(Set.prototype.add);var objectKeys=getBuiltin('Object','keys');var push=uncurryThis([].push);var booleanValueOf=uncurryThis(true.valueOf);var numberValueOf=uncurryThis(1.0.valueOf);var stringValueOf=uncurryThis(''.valueOf);var getTime=uncurryThis(Date.prototype.getTime);var PERFORMANCE_MARK=uid('structuredClone');var DATA_CLONE_ERROR='DataCloneError';var TRANSFERRING='Transferring';var checkBasicSemantic=function checkBasicSemantic(structuredCloneImplementation){return!fails(function(){var set1=new global.Set([7]);var set2=structuredCloneImplementation(set1);var number=structuredCloneImplementation(Object(7));return set2==set1||!set2.has(7)||_typeof(number)!='object'||number!=7;})&&structuredCloneImplementation;};var checkErrorsCloning=function checkErrorsCloning(structuredCloneImplementation,$Error){return!fails(function(){var error=new $Error();var test=structuredCloneImplementation({a:error,b:error});return!(test&&test.a===test.b&&test.a instanceof $Error&&test.a.stack===error.stack);});};var checkNewErrorsCloningSemantic=function checkNewErrorsCloningSemantic(structuredCloneImplementation){return!fails(function(){var test=structuredCloneImplementation(new global.AggregateError([1],PERFORMANCE_MARK,{cause:3}));return test.name!='AggregateError'||test.errors[0]!=1||test.message!=PERFORMANCE_MARK||test.cause!=3;});};var nativeStructuredClone=global.structuredClone;var FORCED_REPLACEMENT=IS_PURE||!checkErrorsCloning(nativeStructuredClone,Error)||!checkErrorsCloning(nativeStructuredClone,DOMException)||!checkNewErrorsCloningSemantic(nativeStructuredClone);var structuredCloneFromMark=!nativeStructuredClone&&checkBasicSemantic(function(value){return new PerformanceMark(PERFORMANCE_MARK,{detail:value}).detail;});var nativeRestrictedStructuredClone=checkBasicSemantic(nativeStructuredClone)||structuredCloneFromMark;var throwUncloneable=function throwUncloneable(type){throw new DOMException('Uncloneable type: '+type,DATA_CLONE_ERROR);};var throwUnpolyfillable=function throwUnpolyfillable(type,kind){throw new DOMException((kind||'Cloning')+' of '+type+' cannot be properly polyfilled in this engine',DATA_CLONE_ERROR);};var structuredCloneInternal=function structuredCloneInternal(value,map){if(isSymbol(value))throwUncloneable('Symbol');if(!isObject(value))return value;if(map){if(mapHas(map,value))return mapGet(map,value);}else map=new Map();var type=classof(value);var deep=false;var C,name,cloned,dataTransfer,i,length,keys,key,source,target;switch(type){case'Array':cloned=[];deep=true;break;case'Object':cloned={};deep=true;break;case'Map':cloned=new Map();deep=true;break;case'Set':cloned=new Set();deep=true;break;case'RegExp':cloned=new RegExp(value.source,getRegExpFlags(value));break;case'Error':name=value.name;switch(name){case'AggregateError':cloned=getBuiltin('AggregateError')([]);break;case'EvalError':cloned=EvalError();break;case'RangeError':cloned=RangeError();break;case'ReferenceError':cloned=ReferenceError();break;case'SyntaxError':cloned=SyntaxError();break;case'TypeError':cloned=TypeError();break;case'URIError':cloned=URIError();break;case'CompileError':cloned=CompileError();break;case'LinkError':cloned=LinkError();break;case'RuntimeError':cloned=RuntimeError();break;default:cloned=Error();}deep=true;break;case'DOMException':cloned=new DOMException(value.message,value.name);deep=true;break;case'DataView':case'Int8Array':case'Uint8Array':case'Uint8ClampedArray':case'Int16Array':case'Uint16Array':case'Int32Array':case'Uint32Array':case'Float32Array':case'Float64Array':case'BigInt64Array':case'BigUint64Array':C=global[type];if(!isObject(C))throwUnpolyfillable(type);cloned=new C(structuredCloneInternal(value.buffer,map),value.byteOffset,type==='DataView'?value.byteLength:value.length);break;case'DOMQuad':try{cloned=new DOMQuad(structuredCloneInternal(value.p1,map),structuredCloneInternal(value.p2,map),structuredCloneInternal(value.p3,map),structuredCloneInternal(value.p4,map));}catch(error){if(nativeRestrictedStructuredClone){cloned=nativeRestrictedStructuredClone(value);}else throwUnpolyfillable(type);}break;case'FileList':C=global.DataTransfer;if(isConstructor(C)){dataTransfer=new C();for(i=0,length=lengthOfArrayLike(value);i<length;i++){dataTransfer.items.add(structuredCloneInternal(value[i],map));}cloned=dataTransfer.files;}else if(nativeRestrictedStructuredClone){cloned=nativeRestrictedStructuredClone(value);}else throwUnpolyfillable(type);break;case'ImageData':try{cloned=new ImageData(structuredCloneInternal(value.data,map),value.width,value.height,{colorSpace:value.colorSpace});}catch(error){if(nativeRestrictedStructuredClone){cloned=nativeRestrictedStructuredClone(value);}else throwUnpolyfillable(type);}break;default:if(nativeRestrictedStructuredClone){cloned=nativeRestrictedStructuredClone(value);}else switch(type){case'BigInt':cloned=Object(value.valueOf());break;case'Boolean':cloned=Object(booleanValueOf(value));break;case'Number':cloned=Object(numberValueOf(value));break;case'String':cloned=Object(stringValueOf(value));break;case'Date':cloned=new Date(getTime(value));break;case'ArrayBuffer':C=global.DataView;if(!C&&typeof _sliceInstanceProperty(value)!='function')throwUnpolyfillable(type);try{if(typeof _sliceInstanceProperty(value)=='function'){cloned=_sliceInstanceProperty(value).call(value,0);}else{length=value.byteLength;cloned=new ArrayBuffer(length);source=new C(value);target=new C(cloned);for(i=0;i<length;i++){target.setUint8(i,source.getUint8(i));}}}catch(error){throw new DOMException('ArrayBuffer is detached',DATA_CLONE_ERROR);}break;case'SharedArrayBuffer':cloned=value;break;case'Blob':try{cloned=_sliceInstanceProperty(value).call(value,0,value.size,value.type);}catch(error){throwUnpolyfillable(type);}break;case'DOMPoint':case'DOMPointReadOnly':C=global[type];try{cloned=C.fromPoint?C.fromPoint(value):new C(value.x,value.y,value.z,value.w);}catch(error){throwUnpolyfillable(type);}break;case'DOMRect':case'DOMRectReadOnly':C=global[type];try{cloned=C.fromRect?C.fromRect(value):new C(value.x,value.y,value.width,value.height);}catch(error){throwUnpolyfillable(type);}break;case'DOMMatrix':case'DOMMatrixReadOnly':C=global[type];try{cloned=C.fromMatrix?C.fromMatrix(value):new C(value);}catch(error){throwUnpolyfillable(type);}break;case'AudioData':case'VideoFrame':if(!isCallable(value.clone))throwUnpolyfillable(type);try{cloned=value.clone();}catch(error){throwUncloneable(type);}break;case'File':try{cloned=new File([value],value.name,value);}catch(error){throwUnpolyfillable(type);}break;case'CryptoKey':case'GPUCompilationMessage':case'GPUCompilationInfo':case'ImageBitmap':case'RTCCertificate':case'WebAssembly.Module':throwUnpolyfillable(type);default:throwUncloneable(type);}}mapSet(map,value,cloned);if(deep)switch(type){case'Array':case'Object':keys=objectKeys(value);for(i=0,length=lengthOfArrayLike(keys);i<length;i++){key=keys[i];createProperty(cloned,key,structuredCloneInternal(value[key],map));}break;case'Map':value.forEach(function(v,k){mapSet(cloned,structuredCloneInternal(k,map),structuredCloneInternal(v,map));});break;case'Set':value.forEach(function(v){setAdd(cloned,structuredCloneInternal(v,map));});break;case'Error':createNonEnumerableProperty(cloned,'message',structuredCloneInternal(value.message,map));if(hasOwn(value,'cause')){createNonEnumerableProperty(cloned,'cause',structuredCloneInternal(value.cause,map));}if(name=='AggregateError'){cloned.errors=structuredCloneInternal(value.errors,map);}case'DOMException':if(ERROR_STACK_INSTALLABLE){createNonEnumerableProperty(cloned,'stack',structuredCloneInternal(value.stack,map));}}return cloned;};var PROPER_TRANSFER=nativeStructuredClone&&!fails(function(){if(IS_DENO&&V8>92||IS_NODE&&V8>94||IS_BROWSER&&V8>97)return false;var buffer=new ArrayBuffer(8);var clone=nativeStructuredClone(buffer,{transfer:[buffer]});return buffer.byteLength!=0||clone.byteLength!=8;});var tryToTransfer=function tryToTransfer(rawTransfer,map){if(!isObject(rawTransfer))throw TypeError('Transfer option cannot be converted to a sequence');var transfer=[];iterate(rawTransfer,function(value){push(transfer,anObject(value));});var i=0;var length=lengthOfArrayLike(transfer);var value,type,C,transferredArray,transferred,canvas,context;if(PROPER_TRANSFER){transferredArray=nativeStructuredClone(transfer,{transfer:transfer});while(i<length)mapSet(map,transfer[i],transferredArray[i++]);}else while(i<length){value=transfer[i++];if(mapHas(map,value))throw new DOMException('Duplicate transferable',DATA_CLONE_ERROR);type=classof(value);switch(type){case'ImageBitmap':C=global.OffscreenCanvas;if(!isConstructor(C))throwUnpolyfillable(type,TRANSFERRING);try{canvas=new C(value.width,value.height);context=canvas.getContext('bitmaprenderer');context.transferFromImageBitmap(value);transferred=canvas.transferToImageBitmap();}catch(error){}break;case'AudioData':case'VideoFrame':if(!isCallable(value.clone)||!isCallable(value.close))throwUnpolyfillable(type,TRANSFERRING);try{transferred=value.clone();value.close();}catch(error){}break;case'ArrayBuffer':case'MessagePort':case'OffscreenCanvas':case'ReadableStream':case'TransformStream':case'WritableStream':throwUnpolyfillable(type,TRANSFERRING);}if(transferred===undefined)throw new DOMException('This object cannot be transferred: '+type,DATA_CLONE_ERROR);mapSet(map,value,transferred);}};$({global:true,enumerable:true,sham:!PROPER_TRANSFER,forced:FORCED_REPLACEMENT},{structuredClone:function structuredClone(value){var options=validateArgumentsLength(arguments.length,1)>1&&arguments[1]!=null?anObject(arguments[1]):undefined;var transfer=options?options.transfer:undefined;var map;if(transfer!==undefined){map=new Map();tryToTransfer(transfer,map);}return structuredCloneInternal(value,map);}});/***/}),(/* 120 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var uncurryThis=__w_pdfjs_require__(17);var fails=__w_pdfjs_require__(10);var isCallable=__w_pdfjs_require__(23);var classof=__w_pdfjs_require__(80);var getBuiltIn=__w_pdfjs_require__(25);var inspectSource=__w_pdfjs_require__(52);var noop=function noop(){};var empty=[];var construct=getBuiltIn('Reflect','construct');var constructorRegExp=/^\\s*(?:class|function)\\b/;var exec=uncurryThis(constructorRegExp.exec);var INCORRECT_TO_STRING=!constructorRegExp.exec(noop);var isConstructorModern=function isConstructor(argument){if(!isCallable(argument))return false;try{construct(noop,empty,argument);return true;}catch(error){return false;}};var isConstructorLegacy=function isConstructor(argument){if(!isCallable(argument))return false;switch(classof(argument)){case'AsyncFunction':case'GeneratorFunction':case'AsyncGeneratorFunction':return false;}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource(argument));}catch(error){return true;}};isConstructorLegacy.sham=true;module.exports=!construct||fails(function(){var called;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){called=true;})||called;})?isConstructorLegacy:isConstructorModern;/***/}),(/* 121 */ /***/function(module){var $TypeError=TypeError;module.exports=function(passed,required){if(passed<required)throw $TypeError('Not enough arguments');return passed;};/***/}),(/* 122 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var call=__w_pdfjs_require__(11);var hasOwn=__w_pdfjs_require__(40);var isPrototypeOf=__w_pdfjs_require__(26);var regExpFlags=__w_pdfjs_require__(123);var RegExpPrototype=RegExp.prototype;module.exports=function(R){var flags=_flagsInstanceProperty(R);return flags===undefined&&!('flags'in RegExpPrototype)&&!hasOwn(R,'flags')&&isPrototypeOf(RegExpPrototype,R)?call(regExpFlags,R):flags;};/***/}),(/* 123 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){\"use strict\";var anObject=__w_pdfjs_require__(48);module.exports=function(){var that=anObject(this);var result='';if(that.hasIndices)result+='d';if(that.global)result+='g';if(that.ignoreCase)result+='i';if(that.multiline)result+='m';if(that.dotAll)result+='s';if(that.unicode)result+='u';if(that.unicodeSets)result+='v';if(that.sticky)result+='y';return result;};/***/}),(/* 124 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var fails=__w_pdfjs_require__(10);var createPropertyDescriptor=__w_pdfjs_require__(14);module.exports=!fails(function(){var error=Error('a');if(!('stack'in error))return true;_Object$defineProperty(error,'stack',createPropertyDescriptor(1,7));return error.stack!==7;});/***/}),(/* 125 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var IS_DENO=__w_pdfjs_require__(126);var IS_NODE=__w_pdfjs_require__(127);module.exports=!IS_DENO&&!IS_NODE&&(typeof window===\"undefined\"?\"undefined\":_typeof(window))=='object'&&(typeof document===\"undefined\"?\"undefined\":_typeof(document))=='object';/***/}),(/* 126 */ /***/function(module){module.exports=(typeof Deno===\"undefined\"?\"undefined\":_typeof(Deno))=='object'&&Deno&&_typeof(Deno.version)=='object';/***/}),(/* 127 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var classof=__w_pdfjs_require__(18);var global=__w_pdfjs_require__(7);module.exports=classof(global.process)=='process';/***/}),(/* 128 */ /***/function(module,__unused_webpack_exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(7);module.exports=global;/***/}),(/* 129 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.build=exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0;exports.getDocument=getDocument;exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory;exports.version=void 0;var _util=__w_pdfjs_require__(1);var _annotation_storage=__w_pdfjs_require__(130);var _display_utils=__w_pdfjs_require__(133);var _font_loader=__w_pdfjs_require__(136);var _canvas=__w_pdfjs_require__(137);var _worker_options=__w_pdfjs_require__(140);var _is_node=__w_pdfjs_require__(3);var _message_handler=__w_pdfjs_require__(141);var _metadata=__w_pdfjs_require__(142);var _optional_content_config=__w_pdfjs_require__(143);var _transport_stream=__w_pdfjs_require__(144);var _xfa_text=__w_pdfjs_require__(145);function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError(\"attempted to get private field on non-instance\");}return fn;}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError(\"Cannot initialize the same private elements twice on an object\");}}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"set\");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"get\");return _classApplyDescriptorGet(receiver,descriptor);}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError(\"attempted to \"+action+\" private field on non-instance\");}return privateMap.get(receiver);}function _classStaticPrivateFieldSpecSet(receiver,classConstructor,descriptor,value){_classCheckPrivateStaticAccess(receiver,classConstructor);_classCheckPrivateStaticFieldDescriptor(descriptor,\"set\");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError(\"attempted to set read only private field\");}descriptor.value=value;}}function _classStaticPrivateFieldSpecGet(receiver,classConstructor,descriptor){_classCheckPrivateStaticAccess(receiver,classConstructor);_classCheckPrivateStaticFieldDescriptor(descriptor,\"get\");return _classApplyDescriptorGet(receiver,descriptor);}function _classCheckPrivateStaticFieldDescriptor(descriptor,action){if(descriptor===undefined){throw new TypeError(\"attempted to \"+action+\" private static field before its declaration\");}}function _classCheckPrivateStaticAccess(receiver,classConstructor){if(receiver!==classConstructor){throw new TypeError(\"Private static access of wrong provenance\");}}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}var DEFAULT_RANGE_CHUNK_SIZE=65536;var RENDERING_CANCELLED_TIMEOUT=100;var DefaultCanvasFactory=_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;var DefaultCMapReaderFactory=_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;var DefaultStandardFontDataFactory=_display_utils.DOMStandardFontDataFactory;exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;if(_is_node.isNodeJS){var _w_pdfjs_require__=__w_pdfjs_require__(146),NodeCanvasFactory=_w_pdfjs_require__.NodeCanvasFactory,NodeCMapReaderFactory=_w_pdfjs_require__.NodeCMapReaderFactory,NodeStandardFontDataFactory=_w_pdfjs_require__.NodeStandardFontDataFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory=NodeCanvasFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory=NodeCMapReaderFactory;exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=NodeStandardFontDataFactory;}var createPDFNetworkStream;function setPDFNetworkStreamFactory(pdfNetworkStreamFactory){createPDFNetworkStream=pdfNetworkStreamFactory;}function getDocument(src){var task=new PDFDocumentLoadingTask();var source;if(typeof src===\"string\"||src instanceof _URL){source={url:src};}else if((0,_util.isArrayBuffer)(src)){source={data:src};}else if(src instanceof PDFDataRangeTransport){source={range:src};}else{if(_typeof(src)!==\"object\"){throw new Error(\"Invalid parameter in getDocument, \"+\"need either string, URL, TypedArray, or parameter object.\");}if(!src.url&&!src.data&&!src.range){throw new Error(\"Invalid parameter object: need either .data, .range or .url\");}source=src;}var params=Object.create(null);var rangeTransport=null,worker=null;for(var key in source){var value=source[key];switch(key){case\"url\":if(typeof window!==\"undefined\"){try{params[key]=new _URL(value,window.location).href;continue;}catch(ex){(0,_util.warn)(\"Cannot create valid URL: \\\"\".concat(ex,\"\\\".\"));}}else if(typeof value===\"string\"||value instanceof _URL){params[key]=value.toString();continue;}throw new Error(\"Invalid PDF url data: \"+\"either string or URL-object is expected in the url property.\");case\"range\":rangeTransport=value;continue;case\"worker\":worker=value;continue;case\"data\":if(_is_node.isNodeJS&&typeof Buffer!==\"undefined\"&&value instanceof Buffer){params[key]=new Uint8Array(value);}else if(value instanceof Uint8Array){break;}else if(typeof value===\"string\"){params[key]=(0,_util.stringToBytes)(value);}else if(_typeof(value)===\"object\"&&value!==null&&!isNaN(value.length)){params[key]=new Uint8Array(value);}else if((0,_util.isArrayBuffer)(value)){params[key]=new Uint8Array(value);}else{throw new Error(\"Invalid PDF binary data: either TypedArray, \"+\"string, or array-like object is expected in the data property.\");}continue;}params[key]=value;}params.CMapReaderFactory=params.CMapReaderFactory||DefaultCMapReaderFactory;params.StandardFontDataFactory=params.StandardFontDataFactory||DefaultStandardFontDataFactory;params.ignoreErrors=params.stopAtErrors!==true;params.fontExtraProperties=params.fontExtraProperties===true;params.pdfBug=params.pdfBug===true;params.enableXfa=params.enableXfa===true;if(!_Number$isInteger(params.rangeChunkSize)||params.rangeChunkSize<1){params.rangeChunkSize=DEFAULT_RANGE_CHUNK_SIZE;}if(typeof params.docBaseUrl!==\"string\"||(0,_display_utils.isDataScheme)(params.docBaseUrl)){params.docBaseUrl=null;}if(!_Number$isInteger(params.maxImageSize)||params.maxImageSize<-1){params.maxImageSize=-1;}if(typeof params.cMapUrl!==\"string\"){params.cMapUrl=null;}if(typeof params.standardFontDataUrl!==\"string\"){params.standardFontDataUrl=null;}if(typeof params.useWorkerFetch!==\"boolean\"){params.useWorkerFetch=params.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&params.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory;}if(typeof params.isEvalSupported!==\"boolean\"){params.isEvalSupported=true;}if(typeof params.disableFontFace!==\"boolean\"){params.disableFontFace=_is_node.isNodeJS;}if(typeof params.useSystemFonts!==\"boolean\"){params.useSystemFonts=!_is_node.isNodeJS&&!params.disableFontFace;}if(_typeof(params.ownerDocument)!==\"object\"||params.ownerDocument===null){params.ownerDocument=_globalThis.document;}if(typeof params.disableRange!==\"boolean\"){params.disableRange=false;}if(typeof params.disableStream!==\"boolean\"){params.disableStream=false;}if(typeof params.disableAutoFetch!==\"boolean\"){params.disableAutoFetch=false;}(0,_util.setVerbosityLevel)(params.verbosity);if(!worker){var workerParams={verbosity:params.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};worker=workerParams.port?PDFWorker.fromPort(workerParams):new PDFWorker(workerParams);task._worker=worker;}var docId=task.docId;worker.promise.then(function(){if(task.destroyed){throw new Error(\"Loading aborted\");}var workerIdPromise=_fetchDocument(worker,params,rangeTransport,docId);var networkStreamPromise=new _Promise(function(resolve){var networkStream;if(rangeTransport){networkStream=new _transport_stream.PDFDataTransportStream({length:params.length,initialData:params.initialData,progressiveDone:params.progressiveDone,contentDispositionFilename:params.contentDispositionFilename,disableRange:params.disableRange,disableStream:params.disableStream},rangeTransport);}else if(!params.data){networkStream=createPDFNetworkStream({url:params.url,length:params.length,httpHeaders:params.httpHeaders,withCredentials:params.withCredentials,rangeChunkSize:params.rangeChunkSize,disableRange:params.disableRange,disableStream:params.disableStream});}resolve(networkStream);});return _Promise.all([workerIdPromise,networkStreamPromise]).then(function(_ref){var _ref16=_slicedToArray(_ref,2),workerId=_ref16[0],networkStream=_ref16[1];if(task.destroyed){throw new Error(\"Loading aborted\");}var messageHandler=new _message_handler.MessageHandler(docId,workerId,worker.port);var transport=new WorkerTransport(messageHandler,task,networkStream,params);task._transport=transport;messageHandler.send(\"Ready\",null);});}).catch(task._capability.reject);return task;}function _fetchDocument(_x,_x2,_x3,_x4){return _fetchDocument2.apply(this,arguments);}function _fetchDocument2(){_fetchDocument2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(worker,source,pdfDataRangeTransport,docId){var workerId;return _regeneratorRuntime.wrap(function _callee7$(_context27){while(1)switch(_context27.prev=_context27.next){case 0:if(!worker.destroyed){_context27.next=2;break;}throw new Error(\"Worker was destroyed\");case 2:if(pdfDataRangeTransport){source.length=pdfDataRangeTransport.length;source.initialData=pdfDataRangeTransport.initialData;source.progressiveDone=pdfDataRangeTransport.progressiveDone;source.contentDispositionFilename=pdfDataRangeTransport.contentDispositionFilename;}_context27.next=5;return worker.messageHandler.sendWithPromise(\"GetDocRequest\",{docId:docId,apiVersion:'2.16.105',source:{data:source.data,url:source.url,password:source.password,disableAutoFetch:source.disableAutoFetch,rangeChunkSize:source.rangeChunkSize,length:source.length},maxImageSize:source.maxImageSize,disableFontFace:source.disableFontFace,docBaseUrl:source.docBaseUrl,ignoreErrors:source.ignoreErrors,isEvalSupported:source.isEvalSupported,fontExtraProperties:source.fontExtraProperties,enableXfa:source.enableXfa,useSystemFonts:source.useSystemFonts,cMapUrl:source.useWorkerFetch?source.cMapUrl:null,standardFontDataUrl:source.useWorkerFetch?source.standardFontDataUrl:null});case 5:workerId=_context27.sent;if(source.data){source.data=null;}if(!worker.destroyed){_context27.next=9;break;}throw new Error(\"Worker was destroyed\");case 9:return _context27.abrupt(\"return\",workerId);case 10:case\"end\":return _context27.stop();}},_callee7);}));return _fetchDocument2.apply(this,arguments);}var PDFDocumentLoadingTask=/*#__PURE__*/function(){function PDFDocumentLoadingTask(){_classCallCheck(this,PDFDocumentLoadingTask);var _PDFDocumentLoadingTa,_PDFDocumentLoadingTa2;this._capability=(0,_util.createPromiseCapability)();this._transport=null;this._worker=null;this.docId=\"d\".concat((_classStaticPrivateFieldSpecSet(PDFDocumentLoadingTask,PDFDocumentLoadingTask,_docId,(_PDFDocumentLoadingTa=_classStaticPrivateFieldSpecGet(PDFDocumentLoadingTask,PDFDocumentLoadingTask,_docId),_PDFDocumentLoadingTa2=_PDFDocumentLoadingTa++,_PDFDocumentLoadingTa)),_PDFDocumentLoadingTa2));this.destroyed=false;this.onPassword=null;this.onProgress=null;this.onUnsupportedFeature=null;}_createClass(PDFDocumentLoadingTask,[{key:\"promise\",get:function get(){return this._capability.promise;}},{key:\"destroy\",value:function(){var _destroy=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(){var _this$_transport;return _regeneratorRuntime.wrap(function _callee$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:this.destroyed=true;_context14.next=3;return(_this$_transport=this._transport)===null||_this$_transport===void 0?void 0:_this$_transport.destroy();case 3:this._transport=null;if(this._worker){this._worker.destroy();this._worker=null;}case 5:case\"end\":return _context14.stop();}},_callee,this);}));function destroy(){return _destroy.apply(this,arguments);}return destroy;}()}]);return PDFDocumentLoadingTask;}();exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;var _docId={writable:true,value:0};var PDFDataRangeTransport=/*#__PURE__*/function(){function PDFDataRangeTransport(length,initialData){_classCallCheck(this,PDFDataRangeTransport);var progressiveDone=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var contentDispositionFilename=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;this.length=length;this.initialData=initialData;this.progressiveDone=progressiveDone;this.contentDispositionFilename=contentDispositionFilename;this._rangeListeners=[];this._progressListeners=[];this._progressiveReadListeners=[];this._progressiveDoneListeners=[];this._readyCapability=(0,_util.createPromiseCapability)();}_createClass(PDFDataRangeTransport,[{key:\"addRangeListener\",value:function addRangeListener(listener){this._rangeListeners.push(listener);}},{key:\"addProgressListener\",value:function addProgressListener(listener){this._progressListeners.push(listener);}},{key:\"addProgressiveReadListener\",value:function addProgressiveReadListener(listener){this._progressiveReadListeners.push(listener);}},{key:\"addProgressiveDoneListener\",value:function addProgressiveDoneListener(listener){this._progressiveDoneListeners.push(listener);}},{key:\"onDataRange\",value:function onDataRange(begin,chunk){var _iterator2=_createForOfIteratorHelper(this._rangeListeners),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var listener=_step2.value;listener(begin,chunk);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}},{key:\"onDataProgress\",value:function onDataProgress(loaded,total){var _this4=this;this._readyCapability.promise.then(function(){var _iterator3=_createForOfIteratorHelper(_this4._progressListeners),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var listener=_step3.value;listener(loaded,total);}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}});}},{key:\"onDataProgressiveRead\",value:function onDataProgressiveRead(chunk){var _this5=this;this._readyCapability.promise.then(function(){var _iterator4=_createForOfIteratorHelper(_this5._progressiveReadListeners),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var listener=_step4.value;listener(chunk);}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}});}},{key:\"onDataProgressiveDone\",value:function onDataProgressiveDone(){var _this6=this;this._readyCapability.promise.then(function(){var _iterator5=_createForOfIteratorHelper(_this6._progressiveDoneListeners),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var listener=_step5.value;listener();}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}});}},{key:\"transportReady\",value:function transportReady(){this._readyCapability.resolve();}},{key:\"requestDataRange\",value:function requestDataRange(begin,end){(0,_util.unreachable)(\"Abstract method PDFDataRangeTransport.requestDataRange\");}},{key:\"abort\",value:function abort(){}}]);return PDFDataRangeTransport;}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=/*#__PURE__*/function(){function PDFDocumentProxy(pdfInfo,transport){var _this7=this;_classCallCheck(this,PDFDocumentProxy);this._pdfInfo=pdfInfo;this._transport=transport;_Object$defineProperty(this,\"fingerprint\",{get:function get(){(0,_display_utils.deprecated)(\"`PDFDocumentProxy.fingerprint`, \"+\"please use `PDFDocumentProxy.fingerprints` instead.\");return this.fingerprints[0];}});_Object$defineProperty(this,\"getStats\",{value:function(){var _value=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(){return _regeneratorRuntime.wrap(function _callee2$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:(0,_display_utils.deprecated)(\"`PDFDocumentProxy.getStats`, \"+\"please use the `PDFDocumentProxy.stats`-getter instead.\");return _context15.abrupt(\"return\",_this7.stats||{streamTypes:{},fontTypes:{}});case 2:case\"end\":return _context15.stop();}},_callee2);}));function value(){return _value.apply(this,arguments);}return value;}()});}_createClass(PDFDocumentProxy,[{key:\"annotationStorage\",get:function get(){return this._transport.annotationStorage;}},{key:\"numPages\",get:function get(){return this._pdfInfo.numPages;}},{key:\"fingerprints\",get:function get(){return this._pdfInfo.fingerprints;}},{key:\"stats\",get:function get(){return this._transport.stats;}},{key:\"isPureXfa\",get:function get(){return!!this._transport._htmlForXfa;}},{key:\"allXfaHtml\",get:function get(){return this._transport._htmlForXfa;}},{key:\"getPage\",value:function getPage(pageNumber){return this._transport.getPage(pageNumber);}},{key:\"getPageIndex\",value:function getPageIndex(ref){return this._transport.getPageIndex(ref);}},{key:\"getDestinations\",value:function getDestinations(){return this._transport.getDestinations();}},{key:\"getDestination\",value:function getDestination(id){return this._transport.getDestination(id);}},{key:\"getPageLabels\",value:function getPageLabels(){return this._transport.getPageLabels();}},{key:\"getPageLayout\",value:function getPageLayout(){return this._transport.getPageLayout();}},{key:\"getPageMode\",value:function getPageMode(){return this._transport.getPageMode();}},{key:\"getViewerPreferences\",value:function getViewerPreferences(){return this._transport.getViewerPreferences();}},{key:\"getOpenAction\",value:function getOpenAction(){return this._transport.getOpenAction();}},{key:\"getAttachments\",value:function getAttachments(){return this._transport.getAttachments();}},{key:\"getJavaScript\",value:function getJavaScript(){return this._transport.getJavaScript();}},{key:\"getJSActions\",value:function getJSActions(){return this._transport.getDocJSActions();}},{key:\"getOutline\",value:function getOutline(){return this._transport.getOutline();}},{key:\"getOptionalContentConfig\",value:function getOptionalContentConfig(){return this._transport.getOptionalContentConfig();}},{key:\"getPermissions\",value:function getPermissions(){return this._transport.getPermissions();}},{key:\"getMetadata\",value:function getMetadata(){return this._transport.getMetadata();}},{key:\"getMarkInfo\",value:function getMarkInfo(){return this._transport.getMarkInfo();}},{key:\"getData\",value:function getData(){return this._transport.getData();}},{key:\"getDownloadInfo\",value:function getDownloadInfo(){return this._transport.downloadInfoCapability.promise;}},{key:\"cleanup\",value:function cleanup(){var keepLoadedFonts=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;return this._transport.startCleanup(keepLoadedFonts||this.isPureXfa);}},{key:\"destroy\",value:function destroy(){return this.loadingTask.destroy();}},{key:\"loadingParams\",get:function get(){return this._transport.loadingParams;}},{key:\"loadingTask\",get:function get(){return this._transport.loadingTask;}},{key:\"saveDocument\",value:function saveDocument(){if(this._transport.annotationStorage.size<=0){(0,_display_utils.deprecated)(\"saveDocument called while `annotationStorage` is empty, \"+\"please use the getData-method instead.\");}return this._transport.saveDocument();}},{key:\"getFieldObjects\",value:function getFieldObjects(){return this._transport.getFieldObjects();}},{key:\"hasJSActions\",value:function hasJSActions(){return this._transport.hasJSActions();}},{key:\"getCalculationOrderIds\",value:function getCalculationOrderIds(){return this._transport.getCalculationOrderIds();}}]);return PDFDocumentProxy;}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=/*#__PURE__*/function(){function PDFPageProxy(pageIndex,pageInfo,transport,ownerDocument){_classCallCheck(this,PDFPageProxy);var pdfBug=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;this._pageIndex=pageIndex;this._pageInfo=pageInfo;this._ownerDocument=ownerDocument;this._transport=transport;this._stats=pdfBug?new _display_utils.StatTimer():null;this._pdfBug=pdfBug;this.commonObjs=transport.commonObjs;this.objs=new PDFObjects();this._bitmaps=new _Set();this.cleanupAfterRender=false;this.pendingCleanup=false;this._intentStates=new _Map();this._annotationPromises=new _Map();this.destroyed=false;}_createClass(PDFPageProxy,[{key:\"pageNumber\",get:function get(){return this._pageIndex+1;}},{key:\"rotate\",get:function get(){return this._pageInfo.rotate;}},{key:\"ref\",get:function get(){return this._pageInfo.ref;}},{key:\"userUnit\",get:function get(){return this._pageInfo.userUnit;}},{key:\"view\",get:function get(){return this._pageInfo.view;}},{key:\"getViewport\",value:function getViewport(){var _ref17=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},scale=_ref17.scale,_ref17$rotation=_ref17.rotation,rotation=_ref17$rotation===void 0?this.rotate:_ref17$rotation,_ref17$offsetX=_ref17.offsetX,offsetX=_ref17$offsetX===void 0?0:_ref17$offsetX,_ref17$offsetY=_ref17.offsetY,offsetY=_ref17$offsetY===void 0?0:_ref17$offsetY,_ref17$dontFlip=_ref17.dontFlip,dontFlip=_ref17$dontFlip===void 0?false:_ref17$dontFlip;return new _display_utils.PageViewport({viewBox:this.view,scale:scale,rotation:rotation,offsetX:offsetX,offsetY:offsetY,dontFlip:dontFlip});}},{key:\"getAnnotations\",value:function getAnnotations(){var _ref18=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref18$intent=_ref18.intent,intent=_ref18$intent===void 0?\"display\":_ref18$intent;var intentArgs=this._transport.getRenderingIntent(intent);var promise=this._annotationPromises.get(intentArgs.cacheKey);if(!promise){promise=this._transport.getAnnotations(this._pageIndex,intentArgs.renderingIntent);this._annotationPromises.set(intentArgs.cacheKey,promise);promise=promise.then(function(annotations){var _iterator6=_createForOfIteratorHelper(annotations),_step6;try{var _loop=function _loop(){var annotation=_step6.value;if(annotation.titleObj!==undefined){_Object$defineProperty(annotation,\"title\",{get:function get(){(0,_display_utils.deprecated)(\"`title`-property on annotation, please use `titleObj` instead.\");return annotation.titleObj.str;}});}if(annotation.contentsObj!==undefined){_Object$defineProperty(annotation,\"contents\",{get:function get(){(0,_display_utils.deprecated)(\"`contents`-property on annotation, please use `contentsObj` instead.\");return annotation.contentsObj.str;}});}};for(_iterator6.s();!(_step6=_iterator6.n()).done;){_loop();}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}return annotations;});}return promise;}},{key:\"getJSActions\",value:function getJSActions(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex));}},{key:\"getXfa\",value:function(){var _getXfa=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(){var _this$_transport$_htm;return _regeneratorRuntime.wrap(function _callee3$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:return _context16.abrupt(\"return\",((_this$_transport$_htm=this._transport._htmlForXfa)===null||_this$_transport$_htm===void 0?void 0:_this$_transport$_htm.children[this._pageIndex])||null);case 1:case\"end\":return _context16.stop();}},_callee3,this);}));function getXfa(){return _getXfa.apply(this,arguments);}return getXfa;}()},{key:\"render\",value:function render(_ref2){var _this8=this;var _arguments$,_arguments$2,_intentState;var canvasContext=_ref2.canvasContext,viewport=_ref2.viewport,_ref2$intent=_ref2.intent,intent=_ref2$intent===void 0?\"display\":_ref2$intent,_ref2$annotationMode=_ref2.annotationMode,annotationMode=_ref2$annotationMode===void 0?_util.AnnotationMode.ENABLE:_ref2$annotationMode,_ref2$transform=_ref2.transform,transform=_ref2$transform===void 0?null:_ref2$transform,_ref2$imageLayer=_ref2.imageLayer,imageLayer=_ref2$imageLayer===void 0?null:_ref2$imageLayer,_ref2$canvasFactory=_ref2.canvasFactory,canvasFactory=_ref2$canvasFactory===void 0?null:_ref2$canvasFactory,_ref2$background=_ref2.background,background=_ref2$background===void 0?null:_ref2$background,_ref2$optionalContent=_ref2.optionalContentConfigPromise,optionalContentConfigPromise=_ref2$optionalContent===void 0?null:_ref2$optionalContent,_ref2$annotationCanva=_ref2.annotationCanvasMap,annotationCanvasMap=_ref2$annotationCanva===void 0?null:_ref2$annotationCanva,_ref2$pageColors=_ref2.pageColors,pageColors=_ref2$pageColors===void 0?null:_ref2$pageColors,_ref2$printAnnotation=_ref2.printAnnotationStorage,printAnnotationStorage=_ref2$printAnnotation===void 0?null:_ref2$printAnnotation;if(((_arguments$=arguments[0])===null||_arguments$===void 0?void 0:_arguments$.renderInteractiveForms)!==undefined){(0,_display_utils.deprecated)(\"render no longer accepts the `renderInteractiveForms`-option, \"+\"please use the `annotationMode`-option instead.\");if(arguments[0].renderInteractiveForms===true&&annotationMode===_util.AnnotationMode.ENABLE){annotationMode=_util.AnnotationMode.ENABLE_FORMS;}}if(((_arguments$2=arguments[0])===null||_arguments$2===void 0?void 0:_arguments$2.includeAnnotationStorage)!==undefined){(0,_display_utils.deprecated)(\"render no longer accepts the `includeAnnotationStorage`-option, \"+\"please use the `annotationMode`-option instead.\");if(arguments[0].includeAnnotationStorage===true&&annotationMode===_util.AnnotationMode.ENABLE){annotationMode=_util.AnnotationMode.ENABLE_STORAGE;}}if(this._stats){this._stats.time(\"Overall\");}var intentArgs=this._transport.getRenderingIntent(intent,annotationMode,printAnnotationStorage);this.pendingCleanup=false;if(!optionalContentConfigPromise){optionalContentConfigPromise=this._transport.getOptionalContentConfig();}var intentState=this._intentStates.get(intentArgs.cacheKey);if(!intentState){intentState=Object.create(null);this._intentStates.set(intentArgs.cacheKey,intentState);}if(intentState.streamReaderCancelTimeout){clearTimeout(intentState.streamReaderCancelTimeout);intentState.streamReaderCancelTimeout=null;}var canvasFactoryInstance=canvasFactory||new DefaultCanvasFactory({ownerDocument:this._ownerDocument});var intentPrint=!!(intentArgs.renderingIntent&_util.RenderingIntentFlag.PRINT);if(!intentState.displayReadyCapability){intentState.displayReadyCapability=(0,_util.createPromiseCapability)();intentState.operatorList={fnArray:[],argsArray:[],lastChunk:false,separateAnnots:null};if(this._stats){this._stats.time(\"Page Request\");}this._pumpOperatorList(intentArgs);}var complete=function complete(error){intentState.renderTasks.delete(internalRenderTask);if(_this8.cleanupAfterRender||intentPrint){_this8.pendingCleanup=true;}_this8._tryCleanup();if(error){internalRenderTask.capability.reject(error);_this8._abortOperatorList({intentState:intentState,reason:error instanceof Error?error:new Error(error)});}else{internalRenderTask.capability.resolve();}if(_this8._stats){_this8._stats.timeEnd(\"Rendering\");_this8._stats.timeEnd(\"Overall\");}};var internalRenderTask=new InternalRenderTask({callback:complete,params:{canvasContext:canvasContext,viewport:viewport,transform:transform,imageLayer:imageLayer,background:background},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:annotationCanvasMap,operatorList:intentState.operatorList,pageIndex:this._pageIndex,canvasFactory:canvasFactoryInstance,useRequestAnimationFrame:!intentPrint,pdfBug:this._pdfBug,pageColors:pageColors});((_intentState=intentState).renderTasks||(_intentState.renderTasks=new _Set())).add(internalRenderTask);var renderTask=internalRenderTask.task;_Promise.all([intentState.displayReadyCapability.promise,optionalContentConfigPromise]).then(function(_ref3){var _ref19=_slicedToArray(_ref3,2),transparency=_ref19[0],optionalContentConfig=_ref19[1];if(_this8.pendingCleanup){complete();return;}if(_this8._stats){_this8._stats.time(\"Rendering\");}internalRenderTask.initializeGraphics({transparency:transparency,optionalContentConfig:optionalContentConfig});internalRenderTask.operatorListChanged();}).catch(complete);return renderTask;}},{key:\"getOperatorList\",value:function getOperatorList(){var _ref20=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref20$intent=_ref20.intent,intent=_ref20$intent===void 0?\"display\":_ref20$intent,_ref20$annotationMode=_ref20.annotationMode,annotationMode=_ref20$annotationMode===void 0?_util.AnnotationMode.ENABLE:_ref20$annotationMode,_ref20$printAnnotatio=_ref20.printAnnotationStorage,printAnnotationStorage=_ref20$printAnnotatio===void 0?null:_ref20$printAnnotatio;function operatorListChanged(){if(intentState.operatorList.lastChunk){intentState.opListReadCapability.resolve(intentState.operatorList);intentState.renderTasks.delete(opListTask);}}var intentArgs=this._transport.getRenderingIntent(intent,annotationMode,printAnnotationStorage,true);var intentState=this._intentStates.get(intentArgs.cacheKey);if(!intentState){intentState=Object.create(null);this._intentStates.set(intentArgs.cacheKey,intentState);}var opListTask;if(!intentState.opListReadCapability){var _intentState2;opListTask=Object.create(null);opListTask.operatorListChanged=operatorListChanged;intentState.opListReadCapability=(0,_util.createPromiseCapability)();((_intentState2=intentState).renderTasks||(_intentState2.renderTasks=new _Set())).add(opListTask);intentState.operatorList={fnArray:[],argsArray:[],lastChunk:false,separateAnnots:null};if(this._stats){this._stats.time(\"Page Request\");}this._pumpOperatorList(intentArgs);}return intentState.opListReadCapability.promise;}},{key:\"streamTextContent\",value:function streamTextContent(){var _ref21=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref21$disableCombine=_ref21.disableCombineTextItems,disableCombineTextItems=_ref21$disableCombine===void 0?false:_ref21$disableCombine,_ref21$includeMarkedC=_ref21.includeMarkedContent,includeMarkedContent=_ref21$includeMarkedC===void 0?false:_ref21$includeMarkedC;var TEXT_CONTENT_CHUNK_SIZE=100;return this._transport.messageHandler.sendWithStream(\"GetTextContent\",{pageIndex:this._pageIndex,combineTextItems:disableCombineTextItems!==true,includeMarkedContent:includeMarkedContent===true},{highWaterMark:TEXT_CONTENT_CHUNK_SIZE,size:function size(textContent){return textContent.items.length;}});}},{key:\"getTextContent\",value:function getTextContent(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(this._transport._htmlForXfa){return this.getXfa().then(function(xfa){return _xfa_text.XfaText.textContent(xfa);});}var readableStream=this.streamTextContent(params);return new _Promise(function(resolve,reject){function pump(){reader.read().then(function(_ref4){var _textContent$items;var value=_ref4.value,done=_ref4.done;if(done){resolve(textContent);return;}_extends(textContent.styles,value.styles);(_textContent$items=textContent.items).push.apply(_textContent$items,_toConsumableArray(value.items));pump();},reject);}var reader=readableStream.getReader();var textContent={items:[],styles:Object.create(null)};pump();});}},{key:\"getStructTree\",value:function getStructTree(){return this._structTreePromise||(this._structTreePromise=this._transport.getStructTree(this._pageIndex));}},{key:\"_destroy\",value:function _destroy(){var _context17;this.destroyed=true;var waitOn=[];var _iterator7=_createForOfIteratorHelper(_valuesInstanceProperty(_context17=this._intentStates).call(_context17)),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var intentState=_step7.value;this._abortOperatorList({intentState:intentState,reason:new Error(\"Page was destroyed.\"),force:true});if(intentState.opListReadCapability){continue;}var _iterator9=_createForOfIteratorHelper(intentState.renderTasks),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var internalRenderTask=_step9.value;waitOn.push(internalRenderTask.completed);internalRenderTask.cancel();}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}this.objs.clear();var _iterator8=_createForOfIteratorHelper(this._bitmaps),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var bitmap=_step8.value;bitmap.close();}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}this._bitmaps.clear();this._annotationPromises.clear();this._jsActionsPromise=null;this._structTreePromise=null;this.pendingCleanup=false;return _Promise.all(waitOn);}},{key:\"cleanup\",value:function cleanup(){var resetStats=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;this.pendingCleanup=true;return this._tryCleanup(resetStats);}},{key:\"_tryCleanup\",value:function _tryCleanup(){var _context18;var resetStats=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(!this.pendingCleanup){return false;}var _iterator10=_createForOfIteratorHelper(_valuesInstanceProperty(_context18=this._intentStates).call(_context18)),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _step10$value=_step10.value,renderTasks=_step10$value.renderTasks,operatorList=_step10$value.operatorList;if(renderTasks.size>0||!operatorList.lastChunk){return false;}}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}this._intentStates.clear();this.objs.clear();this._annotationPromises.clear();this._jsActionsPromise=null;this._structTreePromise=null;if(resetStats&&this._stats){this._stats=new _display_utils.StatTimer();}var _iterator11=_createForOfIteratorHelper(this._bitmaps),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var bitmap=_step11.value;bitmap.close();}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}this._bitmaps.clear();this.pendingCleanup=false;return true;}},{key:\"_startRenderPage\",value:function _startRenderPage(transparency,cacheKey){var intentState=this._intentStates.get(cacheKey);if(!intentState){return;}if(this._stats){this._stats.timeEnd(\"Page Request\");}if(intentState.displayReadyCapability){intentState.displayReadyCapability.resolve(transparency);}}},{key:\"_renderPageChunk\",value:function _renderPageChunk(operatorListChunk,intentState){for(var i=0,ii=operatorListChunk.length;i<ii;i++){intentState.operatorList.fnArray.push(operatorListChunk.fnArray[i]);intentState.operatorList.argsArray.push(operatorListChunk.argsArray[i]);}intentState.operatorList.lastChunk=operatorListChunk.lastChunk;intentState.operatorList.separateAnnots=operatorListChunk.separateAnnots;var _iterator12=_createForOfIteratorHelper(intentState.renderTasks),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var internalRenderTask=_step12.value;internalRenderTask.operatorListChanged();}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}if(operatorListChunk.lastChunk){this._tryCleanup();}}},{key:\"_pumpOperatorList\",value:function _pumpOperatorList(_ref5){var _this9=this;var renderingIntent=_ref5.renderingIntent,cacheKey=_ref5.cacheKey,annotationStorageMap=_ref5.annotationStorageMap;var readableStream=this._transport.messageHandler.sendWithStream(\"GetOperatorList\",{pageIndex:this._pageIndex,intent:renderingIntent,cacheKey:cacheKey,annotationStorage:annotationStorageMap});var reader=readableStream.getReader();var intentState=this._intentStates.get(cacheKey);intentState.streamReader=reader;var pump=function pump(){reader.read().then(function(_ref6){var value=_ref6.value,done=_ref6.done;if(done){intentState.streamReader=null;return;}if(_this9._transport.destroyed){return;}_this9._renderPageChunk(value,intentState);pump();},function(reason){intentState.streamReader=null;if(_this9._transport.destroyed){return;}if(intentState.operatorList){intentState.operatorList.lastChunk=true;var _iterator13=_createForOfIteratorHelper(intentState.renderTasks),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var internalRenderTask=_step13.value;internalRenderTask.operatorListChanged();}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}_this9._tryCleanup();}if(intentState.displayReadyCapability){intentState.displayReadyCapability.reject(reason);}else if(intentState.opListReadCapability){intentState.opListReadCapability.reject(reason);}else{throw reason;}});};pump();}},{key:\"_abortOperatorList\",value:function _abortOperatorList(_ref7){var _this10=this;var intentState=_ref7.intentState,reason=_ref7.reason,_ref7$force=_ref7.force,force=_ref7$force===void 0?false:_ref7$force;if(!intentState.streamReader){return;}if(!force){if(intentState.renderTasks.size>0){return;}if(reason instanceof _display_utils.RenderingCancelledException){intentState.streamReaderCancelTimeout=_setTimeout(function(){_this10._abortOperatorList({intentState:intentState,reason:reason,force:true});intentState.streamReaderCancelTimeout=null;},RENDERING_CANCELLED_TIMEOUT);return;}}intentState.streamReader.cancel(new _util.AbortException(reason.message)).catch(function(){});intentState.streamReader=null;if(this._transport.destroyed){return;}var _iterator14=_createForOfIteratorHelper(this._intentStates),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var _step14$value=_slicedToArray(_step14.value,2),curCacheKey=_step14$value[0],curIntentState=_step14$value[1];if(curIntentState===intentState){this._intentStates.delete(curCacheKey);break;}}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}this.cleanup();}},{key:\"stats\",get:function get(){return this._stats;}}]);return PDFPageProxy;}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=/*#__PURE__*/function(){function LoopbackPort(){_classCallCheck(this,LoopbackPort);this._listeners=[];this._deferred=_Promise.resolve();}_createClass(LoopbackPort,[{key:\"postMessage\",value:function postMessage(obj,transfers){var _this11=this;var event={data:structuredClone(obj,transfers)};this._deferred.then(function(){var _iterator15=_createForOfIteratorHelper(_this11._listeners),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var listener=_step15.value;listener.call(_this11,event);}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}});}},{key:\"addEventListener\",value:function addEventListener(name,listener){this._listeners.push(listener);}},{key:\"removeEventListener\",value:function removeEventListener(name,listener){var _context19,_context20;var i=_indexOfInstanceProperty(_context19=this._listeners).call(_context19,listener);_spliceInstanceProperty(_context20=this._listeners).call(_context20,i,1);}},{key:\"terminate\",value:function terminate(){this._listeners.length=0;}}]);return LoopbackPort;}();exports.LoopbackPort=LoopbackPort;var PDFWorkerUtil={isWorkerDisabled:false,fallbackWorkerSrc:null,fakeWorkerId:0};exports.PDFWorkerUtil=PDFWorkerUtil;{if(_is_node.isNodeJS&&\"function\"===\"function\"){PDFWorkerUtil.isWorkerDisabled=true;PDFWorkerUtil.fallbackWorkerSrc=\"./pdf.worker.js\";}else if((typeof document===\"undefined\"?\"undefined\":_typeof(document))===\"object\"){var _document,_document$currentScri;var pdfjsFilePath=(_document=document)===null||_document===void 0?void 0:(_document$currentScri=_document.currentScript)===null||_document$currentScri===void 0?void 0:_document$currentScri.src;if(pdfjsFilePath){PDFWorkerUtil.fallbackWorkerSrc=pdfjsFilePath.replace(/(\\.(?:min\\.)?js)(\\?.*)?$/i,\".worker$1$2\");}}PDFWorkerUtil.isSameOrigin=function(baseUrl,otherUrl){var base;try{base=new _URL(baseUrl);if(!base.origin||base.origin===\"null\"){return false;}}catch(e){return false;}var other=new _URL(otherUrl,base);return base.origin===other.origin;};PDFWorkerUtil.createCDNWrapper=function(url){var wrapper=\"importScripts(\\\"\".concat(url,\"\\\");\");return _URL.createObjectURL(new Blob([wrapper]));};}var PDFWorker=/*#__PURE__*/function(){function PDFWorker(){_classCallCheck(this,PDFWorker);var _ref22=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref22$name=_ref22.name,name=_ref22$name===void 0?null:_ref22$name,_ref22$port=_ref22.port,port=_ref22$port===void 0?null:_ref22$port,_ref22$verbosity=_ref22.verbosity,verbosity=_ref22$verbosity===void 0?(0,_util.getVerbosityLevel)():_ref22$verbosity;if(port&&_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts).has(port)){throw new Error(\"Cannot use more than one PDFWorker per port.\");}this.name=name;this.destroyed=false;this.verbosity=verbosity;this._readyCapability=(0,_util.createPromiseCapability)();this._port=null;this._webWorker=null;this._messageHandler=null;if(port){_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts).set(port,this);this._initializeFromPort(port);return;}this._initialize();}_createClass(PDFWorker,[{key:\"promise\",get:function get(){return this._readyCapability.promise;}},{key:\"port\",get:function get(){return this._port;}},{key:\"messageHandler\",get:function get(){return this._messageHandler;}},{key:\"_initializeFromPort\",value:function _initializeFromPort(port){this._port=port;this._messageHandler=new _message_handler.MessageHandler(\"main\",\"worker\",port);this._messageHandler.on(\"ready\",function(){});this._readyCapability.resolve();}},{key:\"_initialize\",value:function _initialize(){var _this12=this;if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){var workerSrc=PDFWorker.workerSrc;try{if(!PDFWorkerUtil.isSameOrigin(window.location.href,workerSrc)){workerSrc=PDFWorkerUtil.createCDNWrapper(new _URL(workerSrc,window.location).href);}var worker=new Worker(workerSrc);var messageHandler=new _message_handler.MessageHandler(\"main\",\"worker\",worker);var terminateEarly=function terminateEarly(){worker.removeEventListener(\"error\",onWorkerError);messageHandler.destroy();worker.terminate();if(_this12.destroyed){_this12._readyCapability.reject(new Error(\"Worker was destroyed\"));}else{_this12._setupFakeWorker();}};var onWorkerError=function onWorkerError(){if(!_this12._webWorker){terminateEarly();}};worker.addEventListener(\"error\",onWorkerError);messageHandler.on(\"test\",function(data){worker.removeEventListener(\"error\",onWorkerError);if(_this12.destroyed){terminateEarly();return;}if(data){_this12._messageHandler=messageHandler;_this12._port=worker;_this12._webWorker=worker;_this12._readyCapability.resolve();messageHandler.send(\"configure\",{verbosity:_this12.verbosity});}else{_this12._setupFakeWorker();messageHandler.destroy();worker.terminate();}});messageHandler.on(\"ready\",function(data){worker.removeEventListener(\"error\",onWorkerError);if(_this12.destroyed){terminateEarly();return;}try{sendTest();}catch(e){_this12._setupFakeWorker();}});var sendTest=function sendTest(){var testObj=new Uint8Array();messageHandler.send(\"test\",testObj,[testObj.buffer]);};sendTest();return;}catch(e){(0,_util.info)(\"The worker has been disabled.\");}}this._setupFakeWorker();}},{key:\"_setupFakeWorker\",value:function _setupFakeWorker(){var _this13=this;if(!PDFWorkerUtil.isWorkerDisabled){(0,_util.warn)(\"Setting up fake worker.\");PDFWorkerUtil.isWorkerDisabled=true;}PDFWorker._setupFakeWorkerGlobal.then(function(WorkerMessageHandler){if(_this13.destroyed){_this13._readyCapability.reject(new Error(\"Worker was destroyed\"));return;}var port=new LoopbackPort();_this13._port=port;var id=\"fake\".concat(PDFWorkerUtil.fakeWorkerId++);var workerHandler=new _message_handler.MessageHandler(id+\"_worker\",id,port);WorkerMessageHandler.setup(workerHandler,port);var messageHandler=new _message_handler.MessageHandler(id,id+\"_worker\",port);_this13._messageHandler=messageHandler;_this13._readyCapability.resolve();messageHandler.send(\"configure\",{verbosity:_this13.verbosity});}).catch(function(reason){_this13._readyCapability.reject(new Error(\"Setting up fake worker failed: \\\"\".concat(reason.message,\"\\\".\")));});}},{key:\"destroy\",value:function destroy(){this.destroyed=true;if(this._webWorker){this._webWorker.terminate();this._webWorker=null;}_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts).delete(this._port);this._port=null;if(this._messageHandler){this._messageHandler.destroy();this._messageHandler=null;}}}],[{key:\"fromPort\",value:function fromPort(params){if(!(params!==null&&params!==void 0&&params.port)){throw new Error(\"PDFWorker.fromPort - invalid method signature.\");}if(_classStaticPrivateFieldSpecGet(this,PDFWorker,_workerPorts).has(params.port)){return _classStaticPrivateFieldSpecGet(this,PDFWorker,_workerPorts).get(params.port);}return new PDFWorker(params);}},{key:\"workerSrc\",get:function get(){if(_worker_options.GlobalWorkerOptions.workerSrc){return _worker_options.GlobalWorkerOptions.workerSrc;}if(PDFWorkerUtil.fallbackWorkerSrc!==null){if(!_is_node.isNodeJS){(0,_display_utils.deprecated)('No \"GlobalWorkerOptions.workerSrc\" specified.');}return PDFWorkerUtil.fallbackWorkerSrc;}throw new Error('No \"GlobalWorkerOptions.workerSrc\" specified.');}},{key:\"_mainThreadWorkerMessageHandler\",get:function get(){try{var _globalThis$pdfjsWork;return((_globalThis$pdfjsWork=_globalThis.pdfjsWorker)===null||_globalThis$pdfjsWork===void 0?void 0:_globalThis$pdfjsWork.WorkerMessageHandler)||null;}catch(ex){return null;}}},{key:\"_setupFakeWorkerGlobal\",get:function get(){var _this14=this;var loader=/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(){var mainWorkerMessageHandler,worker;return _regeneratorRuntime.wrap(function _callee4$(_context21){while(1)switch(_context21.prev=_context21.next){case 0:mainWorkerMessageHandler=_this14._mainThreadWorkerMessageHandler;if(!mainWorkerMessageHandler){_context21.next=3;break;}return _context21.abrupt(\"return\",mainWorkerMessageHandler);case 3:if(!(_is_node.isNodeJS&&\"function\"===\"function\")){_context21.next=6;break;}worker=eval(\"require\")(_this14.workerSrc);return _context21.abrupt(\"return\",worker.WorkerMessageHandler);case 6:_context21.next=8;return(0,_display_utils.loadScript)(_this14.workerSrc);case 8:return _context21.abrupt(\"return\",window.pdfjsWorker.WorkerMessageHandler);case 9:case\"end\":return _context21.stop();}},_callee4);}));return function loader(){return _ref23.apply(this,arguments);};}();return(0,_util.shadow)(this,\"_setupFakeWorkerGlobal\",loader());}}]);return PDFWorker;}();exports.PDFWorker=PDFWorker;var _workerPorts={writable:true,value:new _WeakMap()};{PDFWorker.getWorkerSrc=function(){(0,_display_utils.deprecated)(\"`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead.\");return this.workerSrc;};}var _docStats=/*#__PURE__*/new _WeakMap();var _pageCache=/*#__PURE__*/new _WeakMap();var _pagePromises=/*#__PURE__*/new _WeakMap();var _metadataPromise=/*#__PURE__*/new _WeakMap();var WorkerTransport=/*#__PURE__*/function(){function WorkerTransport(messageHandler,loadingTask,networkStream,params){_classCallCheck(this,WorkerTransport);_classPrivateFieldInitSpec(this,_docStats,{writable:true,value:null});_classPrivateFieldInitSpec(this,_pageCache,{writable:true,value:new _Map()});_classPrivateFieldInitSpec(this,_pagePromises,{writable:true,value:new _Map()});_classPrivateFieldInitSpec(this,_metadataPromise,{writable:true,value:null});this.messageHandler=messageHandler;this.loadingTask=loadingTask;this.commonObjs=new PDFObjects();this.fontLoader=new _font_loader.FontLoader({docId:loadingTask.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:params.ownerDocument,styleElement:params.styleElement});this._params=params;if(!params.useWorkerFetch){this.CMapReaderFactory=new params.CMapReaderFactory({baseUrl:params.cMapUrl,isCompressed:params.cMapPacked});this.StandardFontDataFactory=new params.StandardFontDataFactory({baseUrl:params.standardFontDataUrl});}this.destroyed=false;this.destroyCapability=null;this._passwordCapability=null;this._networkStream=networkStream;this._fullReader=null;this._lastProgress=null;this.downloadInfoCapability=(0,_util.createPromiseCapability)();this.setupMessageHandler();}_createClass(WorkerTransport,[{key:\"annotationStorage\",get:function get(){return(0,_util.shadow)(this,\"annotationStorage\",new _annotation_storage.AnnotationStorage());}},{key:\"stats\",get:function get(){return _classPrivateFieldGet(this,_docStats);}},{key:\"getRenderingIntent\",value:function getRenderingIntent(intent){var _context22;var annotationMode=arguments.length>1&&arguments[1]!==undefined?arguments[1]:_util.AnnotationMode.ENABLE;var printAnnotationStorage=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var isOpList=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;var renderingIntent=_util.RenderingIntentFlag.DISPLAY;var annotationMap=null;switch(intent){case\"any\":renderingIntent=_util.RenderingIntentFlag.ANY;break;case\"display\":break;case\"print\":renderingIntent=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(\"getRenderingIntent - invalid intent: \".concat(intent));}switch(annotationMode){case _util.AnnotationMode.DISABLE:renderingIntent+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:renderingIntent+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:renderingIntent+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE;var annotationStorage=renderingIntent&_util.RenderingIntentFlag.PRINT&&printAnnotationStorage instanceof _annotation_storage.PrintAnnotationStorage?printAnnotationStorage:this.annotationStorage;annotationMap=annotationStorage.serializable;break;default:(0,_util.warn)(\"getRenderingIntent - invalid annotationMode: \".concat(annotationMode));}if(isOpList){renderingIntent+=_util.RenderingIntentFlag.OPLIST;}return{renderingIntent:renderingIntent,cacheKey:_concatInstanceProperty(_context22=\"\".concat(renderingIntent,\"_\")).call(_context22,_annotation_storage.AnnotationStorage.getHash(annotationMap)),annotationStorageMap:annotationMap};}},{key:\"destroy\",value:function destroy(){var _this15=this,_context23;if(this.destroyCapability){return this.destroyCapability.promise;}this.destroyed=true;this.destroyCapability=(0,_util.createPromiseCapability)();if(this._passwordCapability){this._passwordCapability.reject(new Error(\"Worker was destroyed during onPassword callback\"));}var waitOn=[];var _iterator16=_createForOfIteratorHelper(_valuesInstanceProperty(_context23=_classPrivateFieldGet(this,_pageCache)).call(_context23)),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var page=_step16.value;waitOn.push(page._destroy());}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}_classPrivateFieldGet(this,_pageCache).clear();_classPrivateFieldGet(this,_pagePromises).clear();if(this.hasOwnProperty(\"annotationStorage\")){this.annotationStorage.resetModified();}var terminated=this.messageHandler.sendWithPromise(\"Terminate\",null);waitOn.push(terminated);_Promise.all(waitOn).then(function(){_this15.commonObjs.clear();_this15.fontLoader.clear();_classPrivateFieldSet(_this15,_metadataPromise,null);_this15._getFieldObjectsPromise=null;_this15._hasJSActionsPromise=null;if(_this15._networkStream){_this15._networkStream.cancelAllRequests(new _util.AbortException(\"Worker was terminated.\"));}if(_this15.messageHandler){_this15.messageHandler.destroy();_this15.messageHandler=null;}_this15.destroyCapability.resolve();},this.destroyCapability.reject);return this.destroyCapability.promise;}},{key:\"setupMessageHandler\",value:function setupMessageHandler(){var _this16=this;var messageHandler=this.messageHandler,loadingTask=this.loadingTask;messageHandler.on(\"GetReader\",function(data,sink){(0,_util.assert)(_this16._networkStream,\"GetReader - no `IPDFStream` instance available.\");_this16._fullReader=_this16._networkStream.getFullReader();_this16._fullReader.onProgress=function(evt){_this16._lastProgress={loaded:evt.loaded,total:evt.total};};sink.onPull=function(){_this16._fullReader.read().then(function(_ref8){var value=_ref8.value,done=_ref8.done;if(done){sink.close();return;}(0,_util.assert)((0,_util.isArrayBuffer)(value),\"GetReader - expected an ArrayBuffer.\");sink.enqueue(new Uint8Array(value),1,[value]);}).catch(function(reason){sink.error(reason);});};sink.onCancel=function(reason){_this16._fullReader.cancel(reason);sink.ready.catch(function(readyReason){if(_this16.destroyed){return;}throw readyReason;});};});messageHandler.on(\"ReaderHeadersReady\",function(data){var headersCapability=(0,_util.createPromiseCapability)();var fullReader=_this16._fullReader;fullReader.headersReady.then(function(){if(!fullReader.isStreamingSupported||!fullReader.isRangeSupported){if(_this16._lastProgress){var _loadingTask$onProgre;(_loadingTask$onProgre=loadingTask.onProgress)===null||_loadingTask$onProgre===void 0?void 0:_loadingTask$onProgre.call(loadingTask,_this16._lastProgress);}fullReader.onProgress=function(evt){var _loadingTask$onProgre2;(_loadingTask$onProgre2=loadingTask.onProgress)===null||_loadingTask$onProgre2===void 0?void 0:_loadingTask$onProgre2.call(loadingTask,{loaded:evt.loaded,total:evt.total});};}headersCapability.resolve({isStreamingSupported:fullReader.isStreamingSupported,isRangeSupported:fullReader.isRangeSupported,contentLength:fullReader.contentLength});},headersCapability.reject);return headersCapability.promise;});messageHandler.on(\"GetRangeReader\",function(data,sink){(0,_util.assert)(_this16._networkStream,\"GetRangeReader - no `IPDFStream` instance available.\");var rangeReader=_this16._networkStream.getRangeReader(data.begin,data.end);if(!rangeReader){sink.close();return;}sink.onPull=function(){rangeReader.read().then(function(_ref9){var value=_ref9.value,done=_ref9.done;if(done){sink.close();return;}(0,_util.assert)((0,_util.isArrayBuffer)(value),\"GetRangeReader - expected an ArrayBuffer.\");sink.enqueue(new Uint8Array(value),1,[value]);}).catch(function(reason){sink.error(reason);});};sink.onCancel=function(reason){rangeReader.cancel(reason);sink.ready.catch(function(readyReason){if(_this16.destroyed){return;}throw readyReason;});};});messageHandler.on(\"GetDoc\",function(_ref10){var pdfInfo=_ref10.pdfInfo;_this16._numPages=pdfInfo.numPages;_this16._htmlForXfa=pdfInfo.htmlForXfa;delete pdfInfo.htmlForXfa;loadingTask._capability.resolve(new PDFDocumentProxy(pdfInfo,_this16));});messageHandler.on(\"DocException\",function(ex){var reason;switch(ex.name){case\"PasswordException\":reason=new _util.PasswordException(ex.message,ex.code);break;case\"InvalidPDFException\":reason=new _util.InvalidPDFException(ex.message);break;case\"MissingPDFException\":reason=new _util.MissingPDFException(ex.message);break;case\"UnexpectedResponseException\":reason=new _util.UnexpectedResponseException(ex.message,ex.status);break;case\"UnknownErrorException\":reason=new _util.UnknownErrorException(ex.message,ex.details);break;default:(0,_util.unreachable)(\"DocException - expected a valid Error.\");}loadingTask._capability.reject(reason);});messageHandler.on(\"PasswordRequest\",function(exception){_this16._passwordCapability=(0,_util.createPromiseCapability)();if(loadingTask.onPassword){var updatePassword=function updatePassword(password){if(password instanceof Error){_this16._passwordCapability.reject(password);}else{_this16._passwordCapability.resolve({password:password});}};try{loadingTask.onPassword(updatePassword,exception.code);}catch(ex){_this16._passwordCapability.reject(ex);}}else{_this16._passwordCapability.reject(new _util.PasswordException(exception.message,exception.code));}return _this16._passwordCapability.promise;});messageHandler.on(\"DataLoaded\",function(data){var _loadingTask$onProgre3;(_loadingTask$onProgre3=loadingTask.onProgress)===null||_loadingTask$onProgre3===void 0?void 0:_loadingTask$onProgre3.call(loadingTask,{loaded:data.length,total:data.length});_this16.downloadInfoCapability.resolve(data);});messageHandler.on(\"StartRenderPage\",function(data){if(_this16.destroyed){return;}var page=_classPrivateFieldGet(_this16,_pageCache).get(data.pageIndex);page._startRenderPage(data.transparency,data.cacheKey);});messageHandler.on(\"commonobj\",function(_ref11){var _globalThis$FontInspe;var _ref24=_slicedToArray(_ref11,3),id=_ref24[0],type=_ref24[1],exportedData=_ref24[2];if(_this16.destroyed){return;}if(_this16.commonObjs.has(id)){return;}switch(type){case\"Font\":var params=_this16._params;if(\"error\"in exportedData){var exportedError=exportedData.error;(0,_util.warn)(\"Error during font loading: \".concat(exportedError));_this16.commonObjs.resolve(id,exportedError);break;}var fontRegistry=null;if(params.pdfBug&&(_globalThis$FontInspe=_globalThis.FontInspector)!==null&&_globalThis$FontInspe!==void 0&&_globalThis$FontInspe.enabled){fontRegistry={registerFont:function registerFont(font,url){_globalThis.FontInspector.fontAdded(font,url);}};}var font=new _font_loader.FontFaceObject(exportedData,{isEvalSupported:params.isEvalSupported,disableFontFace:params.disableFontFace,ignoreErrors:params.ignoreErrors,onUnsupportedFeature:_this16._onUnsupportedFeature.bind(_this16),fontRegistry:fontRegistry});_this16.fontLoader.bind(font).catch(function(reason){return messageHandler.sendWithPromise(\"FontFallback\",{id:id});}).finally(function(){if(!params.fontExtraProperties&&font.data){font.data=null;}_this16.commonObjs.resolve(id,font);});break;case\"FontPath\":case\"Image\":_this16.commonObjs.resolve(id,exportedData);break;default:throw new Error(\"Got unknown common object type \".concat(type));}});messageHandler.on(\"obj\",function(_ref12){var _ref25=_slicedToArray(_ref12,4),id=_ref25[0],pageIndex=_ref25[1],type=_ref25[2],imageData=_ref25[3];if(_this16.destroyed){return;}var pageProxy=_classPrivateFieldGet(_this16,_pageCache).get(pageIndex);if(pageProxy.objs.has(id)){return;}switch(type){case\"Image\":pageProxy.objs.resolve(id,imageData);var MAX_IMAGE_SIZE_TO_STORE=8000000;if(imageData){var length;if(imageData.bitmap){var bitmap=imageData.bitmap,width=imageData.width,height=imageData.height;length=width*height*4;pageProxy._bitmaps.add(bitmap);}else{var _imageData$data;length=((_imageData$data=imageData.data)===null||_imageData$data===void 0?void 0:_imageData$data.length)||0;}if(length>MAX_IMAGE_SIZE_TO_STORE){pageProxy.cleanupAfterRender=true;}}break;case\"Pattern\":pageProxy.objs.resolve(id,imageData);break;default:throw new Error(\"Got unknown object type \".concat(type));}});messageHandler.on(\"DocProgress\",function(data){var _loadingTask$onProgre4;if(_this16.destroyed){return;}(_loadingTask$onProgre4=loadingTask.onProgress)===null||_loadingTask$onProgre4===void 0?void 0:_loadingTask$onProgre4.call(loadingTask,{loaded:data.loaded,total:data.total});});messageHandler.on(\"DocStats\",function(data){if(_this16.destroyed){return;}_classPrivateFieldSet(_this16,_docStats,_Object$freeze({streamTypes:_Object$freeze(data.streamTypes),fontTypes:_Object$freeze(data.fontTypes)}));});messageHandler.on(\"UnsupportedFeature\",this._onUnsupportedFeature.bind(this));messageHandler.on(\"FetchBuiltInCMap\",function(data){if(_this16.destroyed){return _Promise.reject(new Error(\"Worker was destroyed.\"));}if(!_this16.CMapReaderFactory){return _Promise.reject(new Error(\"CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.\"));}return _this16.CMapReaderFactory.fetch(data);});messageHandler.on(\"FetchStandardFontData\",function(data){if(_this16.destroyed){return _Promise.reject(new Error(\"Worker was destroyed.\"));}if(!_this16.StandardFontDataFactory){return _Promise.reject(new Error(\"StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.\"));}return _this16.StandardFontDataFactory.fetch(data);});}},{key:\"_onUnsupportedFeature\",value:function _onUnsupportedFeature(_ref13){var _this$loadingTask$onU,_this$loadingTask;var featureId=_ref13.featureId;if(this.destroyed){return;}(_this$loadingTask$onU=(_this$loadingTask=this.loadingTask).onUnsupportedFeature)===null||_this$loadingTask$onU===void 0?void 0:_this$loadingTask$onU.call(_this$loadingTask,featureId);}},{key:\"getData\",value:function getData(){return this.messageHandler.sendWithPromise(\"GetData\",null);}},{key:\"getPage\",value:function getPage(pageNumber){var _this17=this;if(!_Number$isInteger(pageNumber)||pageNumber<=0||pageNumber>this._numPages){return _Promise.reject(new Error(\"Invalid page request.\"));}var pageIndex=pageNumber-1,cachedPromise=_classPrivateFieldGet(this,_pagePromises).get(pageIndex);if(cachedPromise){return cachedPromise;}var promise=this.messageHandler.sendWithPromise(\"GetPage\",{pageIndex:pageIndex}).then(function(pageInfo){if(_this17.destroyed){throw new Error(\"Transport destroyed\");}var page=new PDFPageProxy(pageIndex,pageInfo,_this17,_this17._params.ownerDocument,_this17._params.pdfBug);_classPrivateFieldGet(_this17,_pageCache).set(pageIndex,page);return page;});_classPrivateFieldGet(this,_pagePromises).set(pageIndex,promise);return promise;}},{key:\"getPageIndex\",value:function getPageIndex(ref){if(_typeof(ref)!==\"object\"||ref===null||!_Number$isInteger(ref.num)||ref.num<0||!_Number$isInteger(ref.gen)||ref.gen<0){return _Promise.reject(new Error(\"Invalid pageIndex request.\"));}return this.messageHandler.sendWithPromise(\"GetPageIndex\",{num:ref.num,gen:ref.gen});}},{key:\"getAnnotations\",value:function getAnnotations(pageIndex,intent){return this.messageHandler.sendWithPromise(\"GetAnnotations\",{pageIndex:pageIndex,intent:intent});}},{key:\"saveDocument\",value:function saveDocument(){var _this18=this;var _this$_fullReader$fil,_this$_fullReader;return this.messageHandler.sendWithPromise(\"SaveDocument\",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:(_this$_fullReader$fil=(_this$_fullReader=this._fullReader)===null||_this$_fullReader===void 0?void 0:_this$_fullReader.filename)!==null&&_this$_fullReader$fil!==void 0?_this$_fullReader$fil:null}).finally(function(){_this18.annotationStorage.resetModified();});}},{key:\"getFieldObjects\",value:function getFieldObjects(){return this._getFieldObjectsPromise||(this._getFieldObjectsPromise=this.messageHandler.sendWithPromise(\"GetFieldObjects\",null));}},{key:\"hasJSActions\",value:function hasJSActions(){return this._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise(\"HasJSActions\",null));}},{key:\"getCalculationOrderIds\",value:function getCalculationOrderIds(){return this.messageHandler.sendWithPromise(\"GetCalculationOrderIds\",null);}},{key:\"getDestinations\",value:function getDestinations(){return this.messageHandler.sendWithPromise(\"GetDestinations\",null);}},{key:\"getDestination\",value:function getDestination(id){if(typeof id!==\"string\"){return _Promise.reject(new Error(\"Invalid destination request.\"));}return this.messageHandler.sendWithPromise(\"GetDestination\",{id:id});}},{key:\"getPageLabels\",value:function getPageLabels(){return this.messageHandler.sendWithPromise(\"GetPageLabels\",null);}},{key:\"getPageLayout\",value:function getPageLayout(){return this.messageHandler.sendWithPromise(\"GetPageLayout\",null);}},{key:\"getPageMode\",value:function getPageMode(){return this.messageHandler.sendWithPromise(\"GetPageMode\",null);}},{key:\"getViewerPreferences\",value:function getViewerPreferences(){return this.messageHandler.sendWithPromise(\"GetViewerPreferences\",null);}},{key:\"getOpenAction\",value:function getOpenAction(){return this.messageHandler.sendWithPromise(\"GetOpenAction\",null);}},{key:\"getAttachments\",value:function getAttachments(){return this.messageHandler.sendWithPromise(\"GetAttachments\",null);}},{key:\"getJavaScript\",value:function getJavaScript(){return this.messageHandler.sendWithPromise(\"GetJavaScript\",null);}},{key:\"getDocJSActions\",value:function getDocJSActions(){return this.messageHandler.sendWithPromise(\"GetDocJSActions\",null);}},{key:\"getPageJSActions\",value:function getPageJSActions(pageIndex){return this.messageHandler.sendWithPromise(\"GetPageJSActions\",{pageIndex:pageIndex});}},{key:\"getStructTree\",value:function getStructTree(pageIndex){return this.messageHandler.sendWithPromise(\"GetStructTree\",{pageIndex:pageIndex});}},{key:\"getOutline\",value:function getOutline(){return this.messageHandler.sendWithPromise(\"GetOutline\",null);}},{key:\"getOptionalContentConfig\",value:function getOptionalContentConfig(){return this.messageHandler.sendWithPromise(\"GetOptionalContentConfig\",null).then(function(results){return new _optional_content_config.OptionalContentConfig(results);});}},{key:\"getPermissions\",value:function getPermissions(){return this.messageHandler.sendWithPromise(\"GetPermissions\",null);}},{key:\"getMetadata\",value:function getMetadata(){var _this19=this;return _classPrivateFieldGet(this,_metadataPromise)||_classPrivateFieldSet(this,_metadataPromise,this.messageHandler.sendWithPromise(\"GetMetadata\",null).then(function(results){var _this$_fullReader$fil2,_this$_fullReader2,_this$_fullReader$con,_this$_fullReader3;return{info:results[0],metadata:results[1]?new _metadata.Metadata(results[1]):null,contentDispositionFilename:(_this$_fullReader$fil2=(_this$_fullReader2=_this19._fullReader)===null||_this$_fullReader2===void 0?void 0:_this$_fullReader2.filename)!==null&&_this$_fullReader$fil2!==void 0?_this$_fullReader$fil2:null,contentLength:(_this$_fullReader$con=(_this$_fullReader3=_this19._fullReader)===null||_this$_fullReader3===void 0?void 0:_this$_fullReader3.contentLength)!==null&&_this$_fullReader$con!==void 0?_this$_fullReader$con:null};}));}},{key:\"getMarkInfo\",value:function getMarkInfo(){return this.messageHandler.sendWithPromise(\"GetMarkInfo\",null);}},{key:\"startCleanup\",value:function(){var _startCleanup=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(){var _context24;var keepLoadedFonts,_iterator17,_step17,page,cleanupSuccessful,_args5=arguments;return _regeneratorRuntime.wrap(function _callee5$(_context25){while(1)switch(_context25.prev=_context25.next){case 0:keepLoadedFonts=_args5.length>0&&_args5[0]!==undefined?_args5[0]:false;_context25.next=3;return this.messageHandler.sendWithPromise(\"Cleanup\",null);case 3:if(!this.destroyed){_context25.next=5;break;}return _context25.abrupt(\"return\");case 5:_iterator17=_createForOfIteratorHelper(_valuesInstanceProperty(_context24=_classPrivateFieldGet(this,_pageCache)).call(_context24));_context25.prev=6;_iterator17.s();case 8:if((_step17=_iterator17.n()).done){_context25.next=15;break;}page=_step17.value;cleanupSuccessful=page.cleanup();if(cleanupSuccessful){_context25.next=13;break;}throw new Error(\"startCleanup: Page \".concat(page.pageNumber,\" is currently rendering.\"));case 13:_context25.next=8;break;case 15:_context25.next=20;break;case 17:_context25.prev=17;_context25.t0=_context25[\"catch\"](6);_iterator17.e(_context25.t0);case 20:_context25.prev=20;_iterator17.f();return _context25.finish(20);case 23:this.commonObjs.clear();if(!keepLoadedFonts){this.fontLoader.clear();}_classPrivateFieldSet(this,_metadataPromise,null);this._getFieldObjectsPromise=null;this._hasJSActionsPromise=null;case 28:case\"end\":return _context25.stop();}},_callee5,this,[[6,17,20,23]]);}));function startCleanup(){return _startCleanup.apply(this,arguments);}return startCleanup;}()},{key:\"loadingParams\",get:function get(){var params=this._params;return(0,_util.shadow)(this,\"loadingParams\",{disableAutoFetch:params.disableAutoFetch,enableXfa:params.enableXfa});}}]);return WorkerTransport;}();var _objs=/*#__PURE__*/new _WeakMap();var _ensureObj=/*#__PURE__*/new _WeakSet();var PDFObjects=/*#__PURE__*/function(){function PDFObjects(){_classCallCheck(this,PDFObjects);_classPrivateMethodInitSpec(this,_ensureObj);_classPrivateFieldInitSpec(this,_objs,{writable:true,value:Object.create(null)});}_createClass(PDFObjects,[{key:\"get\",value:function get(objId){var callback=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(callback){var _obj=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,objId);_obj.capability.promise.then(function(){return callback(_obj.data);});return null;}var obj=_classPrivateFieldGet(this,_objs)[objId];if(!(obj!==null&&obj!==void 0&&obj.capability.settled)){throw new Error(\"Requesting object that isn't resolved yet \".concat(objId,\".\"));}return obj.data;}},{key:\"has\",value:function has(objId){var obj=_classPrivateFieldGet(this,_objs)[objId];return(obj===null||obj===void 0?void 0:obj.capability.settled)||false;}},{key:\"resolve\",value:function resolve(objId){var data=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var obj=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,objId);obj.data=data;obj.capability.resolve();}},{key:\"clear\",value:function clear(){_classPrivateFieldSet(this,_objs,Object.create(null));}}]);return PDFObjects;}();function _ensureObj2(objId){var obj=_classPrivateFieldGet(this,_objs)[objId];if(obj){return obj;}return _classPrivateFieldGet(this,_objs)[objId]={capability:(0,_util.createPromiseCapability)(),data:null};}var _internalRenderTask=/*#__PURE__*/new _WeakMap();var RenderTask=/*#__PURE__*/function(){function RenderTask(internalRenderTask){_classCallCheck(this,RenderTask);_classPrivateFieldInitSpec(this,_internalRenderTask,{writable:true,value:null});_classPrivateFieldSet(this,_internalRenderTask,internalRenderTask);this.onContinue=null;}_createClass(RenderTask,[{key:\"promise\",get:function get(){return _classPrivateFieldGet(this,_internalRenderTask).capability.promise;}},{key:\"cancel\",value:function cancel(){_classPrivateFieldGet(this,_internalRenderTask).cancel();}},{key:\"separateAnnots\",get:function get(){var separateAnnots=_classPrivateFieldGet(this,_internalRenderTask).operatorList.separateAnnots;if(!separateAnnots){return false;}var _classPrivateFieldGet6=_classPrivateFieldGet(this,_internalRenderTask),annotationCanvasMap=_classPrivateFieldGet6.annotationCanvasMap;return separateAnnots.form||separateAnnots.canvas&&(annotationCanvasMap===null||annotationCanvasMap===void 0?void 0:annotationCanvasMap.size)>0;}}]);return RenderTask;}();exports.RenderTask=RenderTask;var InternalRenderTask=/*#__PURE__*/function(){function InternalRenderTask(_ref14){_classCallCheck(this,InternalRenderTask);var callback=_ref14.callback,params=_ref14.params,objs=_ref14.objs,commonObjs=_ref14.commonObjs,annotationCanvasMap=_ref14.annotationCanvasMap,operatorList=_ref14.operatorList,pageIndex=_ref14.pageIndex,canvasFactory=_ref14.canvasFactory,_ref14$useRequestAnim=_ref14.useRequestAnimationFrame,useRequestAnimationFrame=_ref14$useRequestAnim===void 0?false:_ref14$useRequestAnim,_ref14$pdfBug=_ref14.pdfBug,pdfBug=_ref14$pdfBug===void 0?false:_ref14$pdfBug,_ref14$pageColors=_ref14.pageColors,pageColors=_ref14$pageColors===void 0?null:_ref14$pageColors;this.callback=callback;this.params=params;this.objs=objs;this.commonObjs=commonObjs;this.annotationCanvasMap=annotationCanvasMap;this.operatorListIdx=null;this.operatorList=operatorList;this._pageIndex=pageIndex;this.canvasFactory=canvasFactory;this._pdfBug=pdfBug;this.pageColors=pageColors;this.running=false;this.graphicsReadyCallback=null;this.graphicsReady=false;this._useRequestAnimationFrame=useRequestAnimationFrame===true&&typeof window!==\"undefined\";this.cancelled=false;this.capability=(0,_util.createPromiseCapability)();this.task=new RenderTask(this);this._cancelBound=this.cancel.bind(this);this._continueBound=this._continue.bind(this);this._scheduleNextBound=this._scheduleNext.bind(this);this._nextBound=this._next.bind(this);this._canvas=params.canvasContext.canvas;}_createClass(InternalRenderTask,[{key:\"completed\",get:function get(){return this.capability.promise.catch(function(){});}},{key:\"initializeGraphics\",value:function initializeGraphics(_ref15){var _globalThis$StepperMa;var _ref15$transparency=_ref15.transparency,transparency=_ref15$transparency===void 0?false:_ref15$transparency,optionalContentConfig=_ref15.optionalContentConfig;if(this.cancelled){return;}if(this._canvas){if(_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).has(this._canvas)){throw new Error(\"Cannot use the same canvas during multiple render() operations. \"+\"Use different canvas or ensure previous operations were \"+\"cancelled or completed.\");}_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).add(this._canvas);}if(this._pdfBug&&(_globalThis$StepperMa=_globalThis.StepperManager)!==null&&_globalThis$StepperMa!==void 0&&_globalThis$StepperMa.enabled){this.stepper=_globalThis.StepperManager.create(this._pageIndex);this.stepper.init(this.operatorList);this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint();}var _this$params=this.params,canvasContext=_this$params.canvasContext,viewport=_this$params.viewport,transform=_this$params.transform,imageLayer=_this$params.imageLayer,background=_this$params.background;this.gfx=new _canvas.CanvasGraphics(canvasContext,this.commonObjs,this.objs,this.canvasFactory,imageLayer,optionalContentConfig,this.annotationCanvasMap,this.pageColors);this.gfx.beginDrawing({transform:transform,viewport:viewport,transparency:transparency,background:background});this.operatorListIdx=0;this.graphicsReady=true;if(this.graphicsReadyCallback){this.graphicsReadyCallback();}}},{key:\"cancel\",value:function cancel(){var error=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;this.running=false;this.cancelled=true;if(this.gfx){this.gfx.endDrawing();}if(this._canvas){_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).delete(this._canvas);}this.callback(error||new _display_utils.RenderingCancelledException(\"Rendering cancelled, page \".concat(this._pageIndex+1),\"canvas\"));}},{key:\"operatorListChanged\",value:function operatorListChanged(){if(!this.graphicsReady){if(!this.graphicsReadyCallback){this.graphicsReadyCallback=this._continueBound;}return;}if(this.stepper){this.stepper.updateOperatorList(this.operatorList);}if(this.running){return;}this._continue();}},{key:\"_continue\",value:function _continue(){this.running=true;if(this.cancelled){return;}if(this.task.onContinue){this.task.onContinue(this._scheduleNextBound);}else{this._scheduleNext();}}},{key:\"_scheduleNext\",value:function _scheduleNext(){var _this20=this;if(this._useRequestAnimationFrame){window.requestAnimationFrame(function(){_this20._nextBound().catch(_this20._cancelBound);});}else{_Promise.resolve().then(this._nextBound).catch(this._cancelBound);}}},{key:\"_next\",value:function(){var _next2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(){return _regeneratorRuntime.wrap(function _callee6$(_context26){while(1)switch(_context26.prev=_context26.next){case 0:if(!this.cancelled){_context26.next=2;break;}return _context26.abrupt(\"return\");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper);if(this.operatorListIdx===this.operatorList.argsArray.length){this.running=false;if(this.operatorList.lastChunk){this.gfx.endDrawing();if(this._canvas){_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).delete(this._canvas);}this.callback();}}case 4:case\"end\":return _context26.stop();}},_callee6,this);}));function _next(){return _next2.apply(this,arguments);}return _next;}()}]);return InternalRenderTask;}();var _canvasInUse={writable:true,value:new _WeakSet()};var version='2.16.105';exports.version=version;var build='172ccdbe5';exports.build=build;/***/}),(/* 130 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.PrintAnnotationStorage=exports.AnnotationStorage=void 0;var _util=__w_pdfjs_require__(1);var _editor=__w_pdfjs_require__(131);var _murmurhash=__w_pdfjs_require__(135);function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"get\");return _classApplyDescriptorGet(receiver,descriptor);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"set\");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError(\"attempted to \"+action+\" private field on non-instance\");}return privateMap.get(receiver);}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError(\"attempted to set read only private field\");}descriptor.value=value;}}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError(\"Cannot initialize the same private elements twice on an object\");}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError(\"attempted to get private field on non-instance\");}return fn;}var _setModified=/*#__PURE__*/new _WeakSet();var AnnotationStorage=/*#__PURE__*/function(){function AnnotationStorage(){_classCallCheck(this,AnnotationStorage);_classPrivateMethodInitSpec(this,_setModified);this._storage=new _Map();this._modified=false;this.onSetModified=null;this.onResetModified=null;this.onAnnotationEditor=null;}_createClass(AnnotationStorage,[{key:\"getValue\",value:function getValue(key,defaultValue){var value=this._storage.get(key);if(value===undefined){return defaultValue;}return _extends(defaultValue,value);}},{key:\"getRawValue\",value:function getRawValue(key){return this._storage.get(key);}},{key:\"remove\",value:function remove(key){this._storage.delete(key);if(this._storage.size===0){this.resetModified();}if(typeof this.onAnnotationEditor===\"function\"){var _context28;var _iterator18=_createForOfIteratorHelper(_valuesInstanceProperty(_context28=this._storage).call(_context28)),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var value=_step18.value;if(value instanceof _editor.AnnotationEditor){return;}}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}this.onAnnotationEditor(null);}}},{key:\"setValue\",value:function setValue(key,value){var obj=this._storage.get(key);var modified=false;if(obj!==undefined){for(var _i2=0,_Object$entries=_Object$entries2(value);_i2<_Object$entries.length;_i2++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i2],2),entry=_Object$entries$_i[0],val=_Object$entries$_i[1];if(obj[entry]!==val){modified=true;obj[entry]=val;}}}else{modified=true;this._storage.set(key,value);}if(modified){_classPrivateMethodGet(this,_setModified,_setModified2).call(this);}if(value instanceof _editor.AnnotationEditor&&typeof this.onAnnotationEditor===\"function\"){this.onAnnotationEditor(value.constructor._type);}}},{key:\"has\",value:function has(key){return this._storage.has(key);}},{key:\"getAll\",value:function getAll(){return this._storage.size>0?(0,_util.objectFromMap)(this._storage):null;}},{key:\"size\",get:function get(){return this._storage.size;}},{key:\"resetModified\",value:function resetModified(){if(this._modified){this._modified=false;if(typeof this.onResetModified===\"function\"){this.onResetModified();}}}},{key:\"print\",get:function get(){return new PrintAnnotationStorage(this);}},{key:\"serializable\",get:function get(){if(this._storage.size===0){return null;}var clone=new _Map();var _iterator19=_createForOfIteratorHelper(this._storage),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var _step19$value=_slicedToArray(_step19.value,2),key=_step19$value[0],val=_step19$value[1];var serialized=val instanceof _editor.AnnotationEditor?val.serialize():val;if(serialized){clone.set(key,serialized);}}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}return clone;}}],[{key:\"getHash\",value:function getHash(map){if(!map){return\"\";}var hash=new _murmurhash.MurmurHash3_64();var _iterator20=_createForOfIteratorHelper(map),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var _context29;var _step20$value=_slicedToArray(_step20.value,2),key=_step20$value[0],val=_step20$value[1];hash.update(_concatInstanceProperty(_context29=\"\".concat(key,\":\")).call(_context29,_JSON$stringify(val)));}}catch(err){_iterator20.e(err);}finally{_iterator20.f();}return hash.hexdigest();}}]);return AnnotationStorage;}();exports.AnnotationStorage=AnnotationStorage;function _setModified2(){if(!this._modified){this._modified=true;if(typeof this.onSetModified===\"function\"){this.onSetModified();}}}var _serializable=/*#__PURE__*/new _WeakMap();var PrintAnnotationStorage=/*#__PURE__*/function(_AnnotationStorage){_inherits(PrintAnnotationStorage,_AnnotationStorage);function PrintAnnotationStorage(parent){var _this21;_classCallCheck(this,PrintAnnotationStorage);_this21=_callSuper(this,PrintAnnotationStorage);_classPrivateFieldInitSpec(_assertThisInitialized(_this21),_serializable,{writable:true,value:null});_classPrivateFieldSet(_assertThisInitialized(_this21),_serializable,structuredClone(parent.serializable));return _this21;}_createClass(PrintAnnotationStorage,[{key:\"print\",get:function get(){(0,_util.unreachable)(\"Should not call PrintAnnotationStorage.print\");}},{key:\"serializable\",get:function get(){return _classPrivateFieldGet(this,_serializable);}}]);return PrintAnnotationStorage;}(AnnotationStorage);exports.PrintAnnotationStorage=PrintAnnotationStorage;/***/}),(/* 131 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.AnnotationEditor=void 0;var _tools=__w_pdfjs_require__(132);var _util=__w_pdfjs_require__(1);function _defineProperty(obj,key,value){if(key in obj){_Object$defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError(\"Cannot initialize the same private elements twice on an object\");}}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"set\");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError(\"attempted to set read only private field\");}descriptor.value=value;}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"get\");return _classApplyDescriptorGet(receiver,descriptor);}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError(\"attempted to \"+action+\" private field on non-instance\");}return privateMap.get(receiver);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}var _boundFocusin=/*#__PURE__*/new _WeakMap();var _boundFocusout=/*#__PURE__*/new _WeakMap();var _hasBeenSelected=/*#__PURE__*/new _WeakMap();var _isEditing=/*#__PURE__*/new _WeakMap();var _isInEditMode=/*#__PURE__*/new _WeakMap();var _zIndex=/*#__PURE__*/new _WeakMap();var AnnotationEditor=/*#__PURE__*/function(){function AnnotationEditor(parameters){_classCallCheck(this,AnnotationEditor);_classPrivateFieldInitSpec(this,_boundFocusin,{writable:true,value:this.focusin.bind(this)});_classPrivateFieldInitSpec(this,_boundFocusout,{writable:true,value:this.focusout.bind(this)});_classPrivateFieldInitSpec(this,_hasBeenSelected,{writable:true,value:false});_classPrivateFieldInitSpec(this,_isEditing,{writable:true,value:false});_classPrivateFieldInitSpec(this,_isInEditMode,{writable:true,value:false});_classPrivateFieldInitSpec(this,_zIndex,{writable:true,value:AnnotationEditor._zIndex++});if(this.constructor===AnnotationEditor){(0,_util.unreachable)(\"Cannot initialize AnnotationEditor.\");}this.parent=parameters.parent;this.id=parameters.id;this.width=this.height=null;this.pageIndex=parameters.parent.pageIndex;this.name=parameters.name;this.div=null;var _this$parent$viewport=_slicedToArray(this.parent.viewportBaseDimensions,2),width=_this$parent$viewport[0],height=_this$parent$viewport[1];this.x=parameters.x/width;this.y=parameters.y/height;this.rotation=this.parent.viewport.rotation;this.isAttachedToDOM=false;}_createClass(AnnotationEditor,[{key:\"setInBackground\",value:function setInBackground(){this.div.style.zIndex=0;}},{key:\"setInForeground\",value:function setInForeground(){this.div.style.zIndex=_classPrivateFieldGet(this,_zIndex);}},{key:\"focusin\",value:function focusin(event){if(!_classPrivateFieldGet(this,_hasBeenSelected)){this.parent.setSelected(this);}else{_classPrivateFieldSet(this,_hasBeenSelected,false);}}},{key:\"focusout\",value:function focusout(event){if(!this.isAttachedToDOM){return;}var target=event.relatedTarget;if(target!==null&&target!==void 0&&target.closest(\"#\".concat(this.id))){return;}event.preventDefault();if(!this.parent.isMultipleSelection){this.commitOrRemove();}}},{key:\"commitOrRemove\",value:function commitOrRemove(){if(this.isEmpty()){this.remove();}else{this.commit();}}},{key:\"commit\",value:function commit(){this.parent.addToAnnotationStorage(this);}},{key:\"dragstart\",value:function dragstart(event){var rect=this.parent.div.getBoundingClientRect();this.startX=event.clientX-rect.x;this.startY=event.clientY-rect.y;event.dataTransfer.setData(\"text/plain\",this.id);event.dataTransfer.effectAllowed=\"move\";}},{key:\"setAt\",value:function setAt(x,y,tx,ty){var _this$parent$viewport2=_slicedToArray(this.parent.viewportBaseDimensions,2),width=_this$parent$viewport2[0],height=_this$parent$viewport2[1];var _this$screenToPageTra=this.screenToPageTranslation(tx,ty);var _this$screenToPageTra2=_slicedToArray(_this$screenToPageTra,2);tx=_this$screenToPageTra2[0];ty=_this$screenToPageTra2[1];this.x=(x+tx)/width;this.y=(y+ty)/height;this.div.style.left=\"\".concat(100*this.x,\"%\");this.div.style.top=\"\".concat(100*this.y,\"%\");}},{key:\"translate\",value:function translate(x,y){var _this$parent$viewport3=_slicedToArray(this.parent.viewportBaseDimensions,2),width=_this$parent$viewport3[0],height=_this$parent$viewport3[1];var _this$screenToPageTra3=this.screenToPageTranslation(x,y);var _this$screenToPageTra4=_slicedToArray(_this$screenToPageTra3,2);x=_this$screenToPageTra4[0];y=_this$screenToPageTra4[1];this.x+=x/width;this.y+=y/height;this.div.style.left=\"\".concat(100*this.x,\"%\");this.div.style.top=\"\".concat(100*this.y,\"%\");}},{key:\"screenToPageTranslation\",value:function screenToPageTranslation(x,y){var rotation=this.parent.viewport.rotation;switch(rotation){case 90:return[y,-x];case 180:return[-x,-y];case 270:return[-y,x];default:return[x,y];}}},{key:\"setDims\",value:function setDims(width,height){var _this$parent$viewport4=_slicedToArray(this.parent.viewportBaseDimensions,2),parentWidth=_this$parent$viewport4[0],parentHeight=_this$parent$viewport4[1];this.div.style.width=\"\".concat(100*width/parentWidth,\"%\");this.div.style.height=\"\".concat(100*height/parentHeight,\"%\");}},{key:\"getInitialTranslation\",value:function getInitialTranslation(){return[0,0];}},{key:\"render\",value:function render(){this.div=document.createElement(\"div\");this.div.setAttribute(\"data-editor-rotation\",(360-this.rotation)%360);this.div.className=this.name;this.div.setAttribute(\"id\",this.id);this.div.setAttribute(\"tabIndex\",0);this.setInForeground();this.div.addEventListener(\"focusin\",_classPrivateFieldGet(this,_boundFocusin));this.div.addEventListener(\"focusout\",_classPrivateFieldGet(this,_boundFocusout));var _this$getInitialTrans=this.getInitialTranslation(),_this$getInitialTrans2=_slicedToArray(_this$getInitialTrans,2),tx=_this$getInitialTrans2[0],ty=_this$getInitialTrans2[1];this.translate(tx,ty);(0,_tools.bindEvents)(this,this.div,[\"dragstart\",\"pointerdown\"]);return this.div;}},{key:\"pointerdown\",value:function pointerdown(event){var isMac=_tools.KeyboardManager.platform.isMac;if(event.button!==0||event.ctrlKey&&isMac){event.preventDefault();return;}if(event.ctrlKey&&!isMac||event.shiftKey||event.metaKey&&isMac){this.parent.toggleSelected(this);}else{this.parent.setSelected(this);}_classPrivateFieldSet(this,_hasBeenSelected,true);}},{key:\"getRect\",value:function getRect(tx,ty){var _this$parent$viewport5=_slicedToArray(this.parent.viewportBaseDimensions,2),parentWidth=_this$parent$viewport5[0],parentHeight=_this$parent$viewport5[1];var _this$parent$pageDime=_slicedToArray(this.parent.pageDimensions,2),pageWidth=_this$parent$pageDime[0],pageHeight=_this$parent$pageDime[1];var shiftX=pageWidth*tx/parentWidth;var shiftY=pageHeight*ty/parentHeight;var x=this.x*pageWidth;var y=this.y*pageHeight;var width=this.width*pageWidth;var height=this.height*pageHeight;switch(this.rotation){case 0:return[x+shiftX,pageHeight-y-shiftY-height,x+shiftX+width,pageHeight-y-shiftY];case 90:return[x+shiftY,pageHeight-y+shiftX,x+shiftY+height,pageHeight-y+shiftX+width];case 180:return[x-shiftX-width,pageHeight-y+shiftY,x-shiftX,pageHeight-y+shiftY+height];case 270:return[x-shiftY-height,pageHeight-y-shiftX-width,x-shiftY,pageHeight-y-shiftX];default:throw new Error(\"Invalid rotation\");}}},{key:\"getRectInCurrentCoords\",value:function getRectInCurrentCoords(rect,pageHeight){var _rect=_slicedToArray(rect,4),x1=_rect[0],y1=_rect[1],x2=_rect[2],y2=_rect[3];var width=x2-x1;var height=y2-y1;switch(this.rotation){case 0:return[x1,pageHeight-y2,width,height];case 90:return[x1,pageHeight-y1,height,width];case 180:return[x2,pageHeight-y1,width,height];case 270:return[x2,pageHeight-y2,height,width];default:throw new Error(\"Invalid rotation\");}}},{key:\"onceAdded\",value:function onceAdded(){}},{key:\"isEmpty\",value:function isEmpty(){return false;}},{key:\"enableEditMode\",value:function enableEditMode(){_classPrivateFieldSet(this,_isInEditMode,true);}},{key:\"disableEditMode\",value:function disableEditMode(){_classPrivateFieldSet(this,_isInEditMode,false);}},{key:\"isInEditMode\",value:function isInEditMode(){return _classPrivateFieldGet(this,_isInEditMode);}},{key:\"shouldGetKeyboardEvents\",value:function shouldGetKeyboardEvents(){return false;}},{key:\"needsToBeRebuilt\",value:function needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM;}},{key:\"rebuild\",value:function rebuild(){var _this$div;(_this$div=this.div)===null||_this$div===void 0?void 0:_this$div.addEventListener(\"focusin\",_classPrivateFieldGet(this,_boundFocusin));}},{key:\"serialize\",value:function serialize(){(0,_util.unreachable)(\"An editor must be serializable\");}},{key:\"remove\",value:function remove(){this.div.removeEventListener(\"focusin\",_classPrivateFieldGet(this,_boundFocusin));this.div.removeEventListener(\"focusout\",_classPrivateFieldGet(this,_boundFocusout));if(!this.isEmpty()){this.commit();}this.parent.remove(this);}},{key:\"select\",value:function select(){var _this$div2;(_this$div2=this.div)===null||_this$div2===void 0?void 0:_this$div2.classList.add(\"selectedEditor\");}},{key:\"unselect\",value:function unselect(){var _this$div3;(_this$div3=this.div)===null||_this$div3===void 0?void 0:_this$div3.classList.remove(\"selectedEditor\");}},{key:\"updateParams\",value:function updateParams(type,value){}},{key:\"disableEditing\",value:function disableEditing(){}},{key:\"enableEditing\",value:function enableEditing(){}},{key:\"propertiesToUpdate\",get:function get(){return{};}},{key:\"contentDiv\",get:function get(){return this.div;}},{key:\"isEditing\",get:function get(){return _classPrivateFieldGet(this,_isEditing);},set:function set(value){_classPrivateFieldSet(this,_isEditing,value);if(value){this.parent.setSelected(this);this.parent.setActiveEditor(this);}else{this.parent.setActiveEditor(null);}}}],[{key:\"_defaultLineColor\",get:function get(){return(0,_util.shadow)(this,\"_defaultLineColor\",this._colorManager.getHexCode(\"CanvasText\"));}},{key:\"deserialize\",value:function deserialize(data,parent){var editor=new this.prototype.constructor({parent:parent,id:parent.getNextId()});editor.rotation=data.rotation;var _parent$pageDimension=_slicedToArray(parent.pageDimensions,2),pageWidth=_parent$pageDimension[0],pageHeight=_parent$pageDimension[1];var _editor$getRectInCurr=editor.getRectInCurrentCoords(data.rect,pageHeight),_editor$getRectInCurr2=_slicedToArray(_editor$getRectInCurr,4),x=_editor$getRectInCurr2[0],y=_editor$getRectInCurr2[1],width=_editor$getRectInCurr2[2],height=_editor$getRectInCurr2[3];editor.x=x/pageWidth;editor.y=y/pageHeight;editor.width=width/pageWidth;editor.height=height/pageHeight;return editor;}}]);return AnnotationEditor;}();exports.AnnotationEditor=AnnotationEditor;_defineProperty(AnnotationEditor,\"_colorManager\",new _tools.ColorManager());_defineProperty(AnnotationEditor,\"_zIndex\",1);/***/}),(/* 132 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.KeyboardManager=exports.CommandManager=exports.ColorManager=exports.AnnotationEditorUIManager=void 0;exports.bindEvents=bindEvents;exports.opacityToHex=opacityToHex;var _util=__w_pdfjs_require__(1);var _display_utils=__w_pdfjs_require__(133);function _defineProperty(obj,key,value){if(key in obj){_Object$defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError(\"attempted to get private field on non-instance\");}return fn;}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError(\"Cannot initialize the same private elements twice on an object\");}}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"set\");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError(\"attempted to set read only private field\");}descriptor.value=value;}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"get\");return _classApplyDescriptorGet(receiver,descriptor);}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError(\"attempted to \"+action+\" private field on non-instance\");}return privateMap.get(receiver);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function bindEvents(obj,element,names){var _iterator21=_createForOfIteratorHelper(names),_step21;try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){var name=_step21.value;element.addEventListener(name,obj[name].bind(obj));}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}}function opacityToHex(opacity){var _context30;return _padStartInstanceProperty(_context30=Math.round(Math.min(255,Math.max(1,255*opacity))).toString(16)).call(_context30,2,\"0\");}var _id=/*#__PURE__*/new _WeakMap();var IdManager=/*#__PURE__*/function(){function IdManager(){_classCallCheck(this,IdManager);_classPrivateFieldInitSpec(this,_id,{writable:true,value:0});}_createClass(IdManager,[{key:\"getId\",value:function getId(){var _context31;var _this$id,_this$id2;return _concatInstanceProperty(_context31=\"\".concat(_util.AnnotationEditorPrefix)).call(_context31,(_classPrivateFieldSet(this,_id,(_this$id=_classPrivateFieldGet(this,_id),_this$id2=_this$id++,_this$id)),_this$id2));}}]);return IdManager;}();var _commands=/*#__PURE__*/new _WeakMap();var _locked=/*#__PURE__*/new _WeakMap();var _maxSize=/*#__PURE__*/new _WeakMap();var _position=/*#__PURE__*/new _WeakMap();var CommandManager=/*#__PURE__*/function(){function CommandManager(){_classCallCheck(this,CommandManager);var maxSize=arguments.length>0&&arguments[0]!==undefined?arguments[0]:128;_classPrivateFieldInitSpec(this,_commands,{writable:true,value:[]});_classPrivateFieldInitSpec(this,_locked,{writable:true,value:false});_classPrivateFieldInitSpec(this,_maxSize,{writable:true,value:void 0});_classPrivateFieldInitSpec(this,_position,{writable:true,value:-1});_classPrivateFieldSet(this,_maxSize,maxSize);}_createClass(CommandManager,[{key:\"add\",value:function add(_ref){var cmd=_ref.cmd,undo=_ref.undo,mustExec=_ref.mustExec,_ref$type=_ref.type,type=_ref$type===void 0?NaN:_ref$type,_ref$overwriteIfSameT=_ref.overwriteIfSameType,overwriteIfSameType=_ref$overwriteIfSameT===void 0?false:_ref$overwriteIfSameT,_ref$keepUndo=_ref.keepUndo,keepUndo=_ref$keepUndo===void 0?false:_ref$keepUndo;if(mustExec){cmd();}if(_classPrivateFieldGet(this,_locked)){return;}var save={cmd:cmd,undo:undo,type:type};if(_classPrivateFieldGet(this,_position)===-1){if(_classPrivateFieldGet(this,_commands).length>0){_classPrivateFieldGet(this,_commands).length=0;}_classPrivateFieldSet(this,_position,0);_classPrivateFieldGet(this,_commands).push(save);return;}if(overwriteIfSameType&&_classPrivateFieldGet(this,_commands)[_classPrivateFieldGet(this,_position)].type===type){if(keepUndo){save.undo=_classPrivateFieldGet(this,_commands)[_classPrivateFieldGet(this,_position)].undo;}_classPrivateFieldGet(this,_commands)[_classPrivateFieldGet(this,_position)]=save;return;}var next=_classPrivateFieldGet(this,_position)+1;if(next===_classPrivateFieldGet(this,_maxSize)){var _context32;_spliceInstanceProperty(_context32=_classPrivateFieldGet(this,_commands)).call(_context32,0,1);}else{_classPrivateFieldSet(this,_position,next);if(next<_classPrivateFieldGet(this,_commands).length){var _context33;_spliceInstanceProperty(_context33=_classPrivateFieldGet(this,_commands)).call(_context33,next);}}_classPrivateFieldGet(this,_commands).push(save);}},{key:\"undo\",value:function undo(){if(_classPrivateFieldGet(this,_position)===-1){return;}_classPrivateFieldSet(this,_locked,true);_classPrivateFieldGet(this,_commands)[_classPrivateFieldGet(this,_position)].undo();_classPrivateFieldSet(this,_locked,false);_classPrivateFieldSet(this,_position,_classPrivateFieldGet(this,_position)-1);}},{key:\"redo\",value:function redo(){if(_classPrivateFieldGet(this,_position)<_classPrivateFieldGet(this,_commands).length-1){_classPrivateFieldSet(this,_position,_classPrivateFieldGet(this,_position)+1);_classPrivateFieldSet(this,_locked,true);_classPrivateFieldGet(this,_commands)[_classPrivateFieldGet(this,_position)].cmd();_classPrivateFieldSet(this,_locked,false);}}},{key:\"hasSomethingToUndo\",value:function hasSomethingToUndo(){return _classPrivateFieldGet(this,_position)!==-1;}},{key:\"hasSomethingToRedo\",value:function hasSomethingToRedo(){return _classPrivateFieldGet(this,_position)<_classPrivateFieldGet(this,_commands).length-1;}},{key:\"destroy\",value:function destroy(){_classPrivateFieldSet(this,_commands,null);}}]);return CommandManager;}();exports.CommandManager=CommandManager;var _serialize=/*#__PURE__*/new _WeakSet();var KeyboardManager=/*#__PURE__*/function(){function KeyboardManager(callbacks){_classCallCheck(this,KeyboardManager);_classPrivateMethodInitSpec(this,_serialize);this.buffer=[];this.callbacks=new _Map();this.allKeys=new _Set();var isMac=KeyboardManager.platform.isMac;var _iterator22=_createForOfIteratorHelper(callbacks),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var _step22$value=_slicedToArray(_step22.value,2),keys=_step22$value[0],callback=_step22$value[1];var _iterator23=_createForOfIteratorHelper(keys),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var key=_step23.value;var isMacKey=_startsWithInstanceProperty(key).call(key,\"mac+\");if(isMac&&isMacKey){this.callbacks.set(_sliceInstanceProperty(key).call(key,4),callback);this.allKeys.add(key.split(\"+\").at(-1));}else if(!isMac&&!isMacKey){this.callbacks.set(key,callback);this.allKeys.add(key.split(\"+\").at(-1));}}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}}}catch(err){_iterator22.e(err);}finally{_iterator22.f();}}_createClass(KeyboardManager,[{key:\"exec\",value:function exec(self,event){if(!this.allKeys.has(event.key)){return;}var callback=this.callbacks.get(_classPrivateMethodGet(this,_serialize,_serialize2).call(this,event));if(!callback){return;}callback.bind(self)();event.stopPropagation();event.preventDefault();}}],[{key:\"platform\",get:function get(){var platform=typeof navigator!==\"undefined\"?navigator.platform:\"\";return(0,_util.shadow)(this,\"platform\",{isWin:_includesInstanceProperty(platform).call(platform,\"Win\"),isMac:_includesInstanceProperty(platform).call(platform,\"Mac\")});}}]);return KeyboardManager;}();exports.KeyboardManager=KeyboardManager;function _serialize2(event){if(event.altKey){this.buffer.push(\"alt\");}if(event.ctrlKey){this.buffer.push(\"ctrl\");}if(event.metaKey){this.buffer.push(\"meta\");}if(event.shiftKey){this.buffer.push(\"shift\");}this.buffer.push(event.key);var str=this.buffer.join(\"+\");this.buffer.length=0;return str;}var _elements=/*#__PURE__*/new _WeakMap();var ClipboardManager=/*#__PURE__*/function(){function ClipboardManager(){_classCallCheck(this,ClipboardManager);_classPrivateFieldInitSpec(this,_elements,{writable:true,value:null});}_createClass(ClipboardManager,[{key:\"copy\",value:function copy(element){var _context34;if(!element){return;}if(Array.isArray(element)){_classPrivateFieldSet(this,_elements,_mapInstanceProperty(element).call(element,function(el){return el.serialize();}));}else{_classPrivateFieldSet(this,_elements,[element.serialize()]);}_classPrivateFieldSet(this,_elements,_filterInstanceProperty(_context34=_classPrivateFieldGet(this,_elements)).call(_context34,function(el){return!!el;}));if(_classPrivateFieldGet(this,_elements).length===0){_classPrivateFieldSet(this,_elements,null);}}},{key:\"paste\",value:function paste(){return _classPrivateFieldGet(this,_elements);}},{key:\"isEmpty\",value:function isEmpty(){return _classPrivateFieldGet(this,_elements)===null;}},{key:\"destroy\",value:function destroy(){_classPrivateFieldSet(this,_elements,null);}}]);return ClipboardManager;}();var ColorManager=/*#__PURE__*/function(){function ColorManager(){_classCallCheck(this,ColorManager);}_createClass(ColorManager,[{key:\"_colors\",get:function get(){var colors=new _Map([[\"CanvasText\",null],[\"Canvas\",null]]);(0,_display_utils.getColorValues)(colors);return(0,_util.shadow)(this,\"_colors\",colors);}},{key:\"convert\",value:function convert(color){var rgb=(0,_display_utils.getRGB)(color);if(!window.matchMedia(\"(forced-colors: active)\").matches){return rgb;}var _iterator24=_createForOfIteratorHelper(this._colors),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var _step24$value=_slicedToArray(_step24.value,2),name=_step24$value[0],RGB=_step24$value[1];if(RGB.every(function(x,i){return x===rgb[i];})){return ColorManager._colorsMapping.get(name);}}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}return rgb;}},{key:\"getHexCode\",value:function getHexCode(name){var _util$Util;var rgb=this._colors.get(name);if(!rgb){return name;}return(_util$Util=_util.Util).makeHexColor.apply(_util$Util,_toConsumableArray(rgb));}}]);return ColorManager;}();exports.ColorManager=ColorManager;_defineProperty(ColorManager,\"_colorsMapping\",new _Map([[\"CanvasText\",[0,0,0]],[\"Canvas\",[255,255,255]]]));var _activeEditor=/*#__PURE__*/new _WeakMap();var _allEditors=/*#__PURE__*/new _WeakMap();var _allLayers=/*#__PURE__*/new _WeakMap();var _clipboardManager=/*#__PURE__*/new _WeakMap();var _commandManager=/*#__PURE__*/new _WeakMap();var _currentPageIndex=/*#__PURE__*/new _WeakMap();var _editorTypes=/*#__PURE__*/new _WeakMap();var _eventBus=/*#__PURE__*/new _WeakMap();var _idManager=/*#__PURE__*/new _WeakMap();var _isEnabled=/*#__PURE__*/new _WeakMap();var _mode=/*#__PURE__*/new _WeakMap();var _selectedEditors=/*#__PURE__*/new _WeakMap();var _boundKeydown=/*#__PURE__*/new _WeakMap();var _boundOnEditingAction=/*#__PURE__*/new _WeakMap();var _boundOnPageChanging=/*#__PURE__*/new _WeakMap();var _previousStates=/*#__PURE__*/new _WeakMap();var _container=/*#__PURE__*/new _WeakMap();var _addKeyboardManager=/*#__PURE__*/new _WeakSet();var _removeKeyboardManager=/*#__PURE__*/new _WeakSet();var _dispatchUpdateStates=/*#__PURE__*/new _WeakSet();var _dispatchUpdateUI=/*#__PURE__*/new _WeakSet();var _enableAll=/*#__PURE__*/new _WeakSet();var _disableAll=/*#__PURE__*/new _WeakSet();var _addEditorToLayer=/*#__PURE__*/new _WeakSet();var _isEmpty=/*#__PURE__*/new _WeakSet();var _selectEditors=/*#__PURE__*/new _WeakSet();var AnnotationEditorUIManager=/*#__PURE__*/function(){function AnnotationEditorUIManager(container,eventBus){_classCallCheck(this,AnnotationEditorUIManager);_classPrivateMethodInitSpec(this,_selectEditors);_classPrivateMethodInitSpec(this,_isEmpty);_classPrivateMethodInitSpec(this,_addEditorToLayer);_classPrivateMethodInitSpec(this,_disableAll);_classPrivateMethodInitSpec(this,_enableAll);_classPrivateMethodInitSpec(this,_dispatchUpdateUI);_classPrivateMethodInitSpec(this,_dispatchUpdateStates);_classPrivateMethodInitSpec(this,_removeKeyboardManager);_classPrivateMethodInitSpec(this,_addKeyboardManager);_classPrivateFieldInitSpec(this,_activeEditor,{writable:true,value:null});_classPrivateFieldInitSpec(this,_allEditors,{writable:true,value:new _Map()});_classPrivateFieldInitSpec(this,_allLayers,{writable:true,value:new _Map()});_classPrivateFieldInitSpec(this,_clipboardManager,{writable:true,value:new ClipboardManager()});_classPrivateFieldInitSpec(this,_commandManager,{writable:true,value:new CommandManager()});_classPrivateFieldInitSpec(this,_currentPageIndex,{writable:true,value:0});_classPrivateFieldInitSpec(this,_editorTypes,{writable:true,value:null});_classPrivateFieldInitSpec(this,_eventBus,{writable:true,value:null});_classPrivateFieldInitSpec(this,_idManager,{writable:true,value:new IdManager()});_classPrivateFieldInitSpec(this,_isEnabled,{writable:true,value:false});_classPrivateFieldInitSpec(this,_mode,{writable:true,value:_util.AnnotationEditorType.NONE});_classPrivateFieldInitSpec(this,_selectedEditors,{writable:true,value:new _Set()});_classPrivateFieldInitSpec(this,_boundKeydown,{writable:true,value:this.keydown.bind(this)});_classPrivateFieldInitSpec(this,_boundOnEditingAction,{writable:true,value:this.onEditingAction.bind(this)});_classPrivateFieldInitSpec(this,_boundOnPageChanging,{writable:true,value:this.onPageChanging.bind(this)});_classPrivateFieldInitSpec(this,_previousStates,{writable:true,value:{isEditing:false,isEmpty:true,hasEmptyClipboard:true,hasSomethingToUndo:false,hasSomethingToRedo:false,hasSelectedEditor:false}});_classPrivateFieldInitSpec(this,_container,{writable:true,value:null});_classPrivateFieldSet(this,_container,container);_classPrivateFieldSet(this,_eventBus,eventBus);_classPrivateFieldGet(this,_eventBus)._on(\"editingaction\",_classPrivateFieldGet(this,_boundOnEditingAction));_classPrivateFieldGet(this,_eventBus)._on(\"pagechanging\",_classPrivateFieldGet(this,_boundOnPageChanging));}_createClass(AnnotationEditorUIManager,[{key:\"destroy\",value:function destroy(){var _context35;_classPrivateMethodGet(this,_removeKeyboardManager,_removeKeyboardManager2).call(this);_classPrivateFieldGet(this,_eventBus)._off(\"editingaction\",_classPrivateFieldGet(this,_boundOnEditingAction));_classPrivateFieldGet(this,_eventBus)._off(\"pagechanging\",_classPrivateFieldGet(this,_boundOnPageChanging));var _iterator25=_createForOfIteratorHelper(_valuesInstanceProperty(_context35=_classPrivateFieldGet(this,_allLayers)).call(_context35)),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var layer=_step25.value;layer.destroy();}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}_classPrivateFieldGet(this,_allLayers).clear();_classPrivateFieldGet(this,_allEditors).clear();_classPrivateFieldSet(this,_activeEditor,null);_classPrivateFieldGet(this,_selectedEditors).clear();_classPrivateFieldGet(this,_clipboardManager).destroy();_classPrivateFieldGet(this,_commandManager).destroy();}},{key:\"onPageChanging\",value:function onPageChanging(_ref2){var pageNumber=_ref2.pageNumber;_classPrivateFieldSet(this,_currentPageIndex,pageNumber-1);}},{key:\"focusMainContainer\",value:function focusMainContainer(){_classPrivateFieldGet(this,_container).focus();}},{key:\"keydown\",value:function keydown(event){var _this$getActive;if(!((_this$getActive=this.getActive())!==null&&_this$getActive!==void 0&&_this$getActive.shouldGetKeyboardEvents())){AnnotationEditorUIManager._keyboardManager.exec(this,event);}}},{key:\"onEditingAction\",value:function onEditingAction(details){var _context36;if(_includesInstanceProperty(_context36=[\"undo\",\"redo\",\"cut\",\"copy\",\"paste\",\"delete\",\"selectAll\"]).call(_context36,details.name)){this[details.name]();}}},{key:\"setEditingState\",value:function setEditingState(isEditing){if(isEditing){_classPrivateMethodGet(this,_addKeyboardManager,_addKeyboardManager2).call(this);_classPrivateMethodGet(this,_dispatchUpdateStates,_dispatchUpdateStates2).call(this,{isEditing:_classPrivateFieldGet(this,_mode)!==_util.AnnotationEditorType.NONE,isEmpty:_classPrivateMethodGet(this,_isEmpty,_isEmpty2).call(this),hasSomethingToUndo:_classPrivateFieldGet(this,_commandManager).hasSomethingToUndo(),hasSomethingToRedo:_classPrivateFieldGet(this,_commandManager).hasSomethingToRedo(),hasSelectedEditor:false,hasEmptyClipboard:_classPrivateFieldGet(this,_clipboardManager).isEmpty()});}else{_classPrivateMethodGet(this,_removeKeyboardManager,_removeKeyboardManager2).call(this);_classPrivateMethodGet(this,_dispatchUpdateStates,_dispatchUpdateStates2).call(this,{isEditing:false});}}},{key:\"registerEditorTypes\",value:function registerEditorTypes(types){_classPrivateFieldSet(this,_editorTypes,types);var _iterator26=_createForOfIteratorHelper(_classPrivateFieldGet(this,_editorTypes)),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var editorType=_step26.value;_classPrivateMethodGet(this,_dispatchUpdateUI,_dispatchUpdateUI2).call(this,editorType.defaultPropertiesToUpdate);}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}}},{key:\"getId\",value:function getId(){return _classPrivateFieldGet(this,_idManager).getId();}},{key:\"addLayer\",value:function addLayer(layer){_classPrivateFieldGet(this,_allLayers).set(layer.pageIndex,layer);if(_classPrivateFieldGet(this,_isEnabled)){layer.enable();}else{layer.disable();}}},{key:\"removeLayer\",value:function removeLayer(layer){_classPrivateFieldGet(this,_allLayers).delete(layer.pageIndex);}},{key:\"updateMode\",value:function updateMode(mode){_classPrivateFieldSet(this,_mode,mode);if(mode===_util.AnnotationEditorType.NONE){this.setEditingState(false);_classPrivateMethodGet(this,_disableAll,_disableAll2).call(this);}else{var _context37;this.setEditingState(true);_classPrivateMethodGet(this,_enableAll,_enableAll2).call(this);var _iterator27=_createForOfIteratorHelper(_valuesInstanceProperty(_context37=_classPrivateFieldGet(this,_allLayers)).call(_context37)),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var layer=_step27.value;layer.updateMode(mode);}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}}}},{key:\"updateToolbar\",value:function updateToolbar(mode){if(mode===_classPrivateFieldGet(this,_mode)){return;}_classPrivateFieldGet(this,_eventBus).dispatch(\"switchannotationeditormode\",{source:this,mode:mode});}},{key:\"updateParams\",value:function updateParams(type,value){var _iterator28=_createForOfIteratorHelper(_classPrivateFieldGet(this,_selectedEditors)),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var editor=_step28.value;editor.updateParams(type,value);}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}var _iterator29=_createForOfIteratorHelper(_classPrivateFieldGet(this,_editorTypes)),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var editorType=_step29.value;editorType.updateDefaultParams(type,value);}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}}},{key:\"getEditors\",value:function getEditors(pageIndex){var _context38;var editors=[];var _iterator30=_createForOfIteratorHelper(_valuesInstanceProperty(_context38=_classPrivateFieldGet(this,_allEditors)).call(_context38)),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var editor=_step30.value;if(editor.pageIndex===pageIndex){editors.push(editor);}}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}return editors;}},{key:\"getEditor\",value:function getEditor(id){return _classPrivateFieldGet(this,_allEditors).get(id);}},{key:\"addEditor\",value:function addEditor(editor){_classPrivateFieldGet(this,_allEditors).set(editor.id,editor);}},{key:\"removeEditor\",value:function removeEditor(editor){_classPrivateFieldGet(this,_allEditors).delete(editor.id);this.unselect(editor);}},{key:\"setActiveEditor\",value:function setActiveEditor(editor){if(_classPrivateFieldGet(this,_activeEditor)===editor){return;}_classPrivateFieldSet(this,_activeEditor,editor);if(editor){_classPrivateMethodGet(this,_dispatchUpdateUI,_dispatchUpdateUI2).call(this,editor.propertiesToUpdate);}}},{key:\"toggleSelected\",value:function toggleSelected(editor){if(_classPrivateFieldGet(this,_selectedEditors).has(editor)){_classPrivateFieldGet(this,_selectedEditors).delete(editor);editor.unselect();_classPrivateMethodGet(this,_dispatchUpdateStates,_dispatchUpdateStates2).call(this,{hasSelectedEditor:this.hasSelection});return;}_classPrivateFieldGet(this,_selectedEditors).add(editor);editor.select();_classPrivateMethodGet(this,_dispatchUpdateUI,_dispatchUpdateUI2).call(this,editor.propertiesToUpdate);_classPrivateMethodGet(this,_dispatchUpdateStates,_dispatchUpdateStates2).call(this,{hasSelectedEditor:true});}},{key:\"setSelected\",value:function setSelected(editor){var _iterator31=_createForOfIteratorHelper(_classPrivateFieldGet(this,_selectedEditors)),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var ed=_step31.value;if(ed!==editor){ed.unselect();}}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}_classPrivateFieldGet(this,_selectedEditors).clear();_classPrivateFieldGet(this,_selectedEditors).add(editor);editor.select();_classPrivateMethodGet(this,_dispatchUpdateUI,_dispatchUpdateUI2).call(this,editor.propertiesToUpdate);_classPrivateMethodGet(this,_dispatchUpdateStates,_dispatchUpdateStates2).call(this,{hasSelectedEditor:true});}},{key:\"isSelected\",value:function isSelected(editor){return _classPrivateFieldGet(this,_selectedEditors).has(editor);}},{key:\"unselect\",value:function unselect(editor){editor.unselect();_classPrivateFieldGet(this,_selectedEditors).delete(editor);_classPrivateMethodGet(this,_dispatchUpdateStates,_dispatchUpdateStates2).call(this,{hasSelectedEditor:this.hasSelection});}},{key:\"hasSelection\",get:function get(){return _classPrivateFieldGet(this,_selectedEditors).size!==0;}},{key:\"undo\",value:function undo(){_classPrivateFieldGet(this,_commandManager).undo();_classPrivateMethodGet(this,_dispatchUpdateStates,_dispatchUpdateStates2).call(this,{hasSomethingToUndo:_classPrivateFieldGet(this,_commandManager).hasSomethingToUndo(),hasSomethingToRedo:true,isEmpty:_classPrivateMethodGet(this,_isEmpty,_isEmpty2).call(this)});}},{key:\"redo\",value:function redo(){_classPrivateFieldGet(this,_commandManager).redo();_classPrivateMethodGet(this,_dispatchUpdateStates,_dispatchUpdateStates2).call(this,{hasSomethingToUndo:true,hasSomethingToRedo:_classPrivateFieldGet(this,_commandManager).hasSomethingToRedo(),isEmpty:_classPrivateMethodGet(this,_isEmpty,_isEmpty2).call(this)});}},{key:\"addCommands\",value:function addCommands(params){_classPrivateFieldGet(this,_commandManager).add(params);_classPrivateMethodGet(this,_dispatchUpdateStates,_dispatchUpdateStates2).call(this,{hasSomethingToUndo:true,hasSomethingToRedo:false,isEmpty:_classPrivateMethodGet(this,_isEmpty,_isEmpty2).call(this)});}},{key:\"delete\",value:function _delete(){var _this22=this;if(_classPrivateFieldGet(this,_activeEditor)){_classPrivateFieldGet(this,_activeEditor).commitOrRemove();}if(!this.hasSelection){return;}var editors=_toConsumableArray(_classPrivateFieldGet(this,_selectedEditors));var cmd=function cmd(){var _iterator32=_createForOfIteratorHelper(editors),_step32;try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var editor=_step32.value;editor.remove();}}catch(err){_iterator32.e(err);}finally{_iterator32.f();}};var undo=function undo(){var _iterator33=_createForOfIteratorHelper(editors),_step33;try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var editor=_step33.value;_classPrivateMethodGet(_this22,_addEditorToLayer,_addEditorToLayer2).call(_this22,editor);}}catch(err){_iterator33.e(err);}finally{_iterator33.f();}};this.addCommands({cmd:cmd,undo:undo,mustExec:true});}},{key:\"copy\",value:function copy(){if(_classPrivateFieldGet(this,_activeEditor)){_classPrivateFieldGet(this,_activeEditor).commitOrRemove();}if(this.hasSelection){var editors=[];var _iterator34=_createForOfIteratorHelper(_classPrivateFieldGet(this,_selectedEditors)),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var editor=_step34.value;if(!editor.isEmpty()){editors.push(editor);}}}catch(err){_iterator34.e(err);}finally{_iterator34.f();}if(editors.length===0){return;}_classPrivateFieldGet(this,_clipboardManager).copy(editors);_classPrivateMethodGet(this,_dispatchUpdateStates,_dispatchUpdateStates2).call(this,{hasEmptyClipboard:false});}}},{key:\"cut\",value:function cut(){this.copy();this.delete();}},{key:\"paste\",value:function paste(){var _context39,_this23=this;if(_classPrivateFieldGet(this,_clipboardManager).isEmpty()){return;}this.unselectAll();var layer=_classPrivateFieldGet(this,_allLayers).get(_classPrivateFieldGet(this,_currentPageIndex));var newEditors=_mapInstanceProperty(_context39=_classPrivateFieldGet(this,_clipboardManager).paste()).call(_context39,function(data){return layer.deserialize(data);});var cmd=function cmd(){var _iterator35=_createForOfIteratorHelper(newEditors),_step35;try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var editor=_step35.value;_classPrivateMethodGet(_this23,_addEditorToLayer,_addEditorToLayer2).call(_this23,editor);}}catch(err){_iterator35.e(err);}finally{_iterator35.f();}_classPrivateMethodGet(_this23,_selectEditors,_selectEditors2).call(_this23,newEditors);};var undo=function undo(){var _iterator36=_createForOfIteratorHelper(newEditors),_step36;try{for(_iterator36.s();!(_step36=_iterator36.n()).done;){var editor=_step36.value;editor.remove();}}catch(err){_iterator36.e(err);}finally{_iterator36.f();}};this.addCommands({cmd:cmd,undo:undo,mustExec:true});}},{key:\"selectAll\",value:function selectAll(){var _context40;var _iterator37=_createForOfIteratorHelper(_classPrivateFieldGet(this,_selectedEditors)),_step37;try{for(_iterator37.s();!(_step37=_iterator37.n()).done;){var editor=_step37.value;editor.commit();}}catch(err){_iterator37.e(err);}finally{_iterator37.f();}_classPrivateMethodGet(this,_selectEditors,_selectEditors2).call(this,_valuesInstanceProperty(_context40=_classPrivateFieldGet(this,_allEditors)).call(_context40));}},{key:\"unselectAll\",value:function unselectAll(){if(_classPrivateFieldGet(this,_activeEditor)){_classPrivateFieldGet(this,_activeEditor).commitOrRemove();return;}if(_classPrivateMethodGet(this,_selectEditors,_selectEditors2).size===0){return;}var _iterator38=_createForOfIteratorHelper(_classPrivateFieldGet(this,_selectedEditors)),_step38;try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){var editor=_step38.value;editor.unselect();}}catch(err){_iterator38.e(err);}finally{_iterator38.f();}_classPrivateFieldGet(this,_selectedEditors).clear();_classPrivateMethodGet(this,_dispatchUpdateStates,_dispatchUpdateStates2).call(this,{hasSelectedEditor:false});}},{key:\"isActive\",value:function isActive(editor){return _classPrivateFieldGet(this,_activeEditor)===editor;}},{key:\"getActive\",value:function getActive(){return _classPrivateFieldGet(this,_activeEditor);}},{key:\"getMode\",value:function getMode(){return _classPrivateFieldGet(this,_mode);}}]);return AnnotationEditorUIManager;}();exports.AnnotationEditorUIManager=AnnotationEditorUIManager;function _addKeyboardManager2(){_classPrivateFieldGet(this,_container).addEventListener(\"keydown\",_classPrivateFieldGet(this,_boundKeydown));}function _removeKeyboardManager2(){_classPrivateFieldGet(this,_container).removeEventListener(\"keydown\",_classPrivateFieldGet(this,_boundKeydown));}function _dispatchUpdateStates2(details){var _this24=this;var hasChanged=_Object$entries2(details).some(function(_ref3){var _ref26=_slicedToArray(_ref3,2),key=_ref26[0],value=_ref26[1];return _classPrivateFieldGet(_this24,_previousStates)[key]!==value;});if(hasChanged){_classPrivateFieldGet(this,_eventBus).dispatch(\"annotationeditorstateschanged\",{source:this,details:_extends(_classPrivateFieldGet(this,_previousStates),details)});}}function _dispatchUpdateUI2(details){_classPrivateFieldGet(this,_eventBus).dispatch(\"annotationeditorparamschanged\",{source:this,details:details});}function _enableAll2(){if(!_classPrivateFieldGet(this,_isEnabled)){var _context41;_classPrivateFieldSet(this,_isEnabled,true);var _iterator39=_createForOfIteratorHelper(_valuesInstanceProperty(_context41=_classPrivateFieldGet(this,_allLayers)).call(_context41)),_step39;try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var layer=_step39.value;layer.enable();}}catch(err){_iterator39.e(err);}finally{_iterator39.f();}}}function _disableAll2(){this.unselectAll();if(_classPrivateFieldGet(this,_isEnabled)){var _context42;_classPrivateFieldSet(this,_isEnabled,false);var _iterator40=_createForOfIteratorHelper(_valuesInstanceProperty(_context42=_classPrivateFieldGet(this,_allLayers)).call(_context42)),_step40;try{for(_iterator40.s();!(_step40=_iterator40.n()).done;){var layer=_step40.value;layer.disable();}}catch(err){_iterator40.e(err);}finally{_iterator40.f();}}}function _addEditorToLayer2(editor){var layer=_classPrivateFieldGet(this,_allLayers).get(editor.pageIndex);if(layer){layer.addOrRebuild(editor);}else{this.addEditor(editor);}}function _isEmpty2(){if(_classPrivateFieldGet(this,_allEditors).size===0){return true;}if(_classPrivateFieldGet(this,_allEditors).size===1){var _context43;var _iterator41=_createForOfIteratorHelper(_valuesInstanceProperty(_context43=_classPrivateFieldGet(this,_allEditors)).call(_context43)),_step41;try{for(_iterator41.s();!(_step41=_iterator41.n()).done;){var editor=_step41.value;return editor.isEmpty();}}catch(err){_iterator41.e(err);}finally{_iterator41.f();}}return false;}function _selectEditors2(editors){_classPrivateFieldGet(this,_selectedEditors).clear();var _iterator42=_createForOfIteratorHelper(editors),_step42;try{for(_iterator42.s();!(_step42=_iterator42.n()).done;){var editor=_step42.value;if(editor.isEmpty()){continue;}_classPrivateFieldGet(this,_selectedEditors).add(editor);editor.select();}}catch(err){_iterator42.e(err);}finally{_iterator42.f();}_classPrivateMethodGet(this,_dispatchUpdateStates,_dispatchUpdateStates2).call(this,{hasSelectedEditor:true});}_defineProperty(AnnotationEditorUIManager,\"_keyboardManager\",new KeyboardManager([[[\"ctrl+a\",\"mac+meta+a\"],AnnotationEditorUIManager.prototype.selectAll],[[\"ctrl+c\",\"mac+meta+c\"],AnnotationEditorUIManager.prototype.copy],[[\"ctrl+v\",\"mac+meta+v\"],AnnotationEditorUIManager.prototype.paste],[[\"ctrl+x\",\"mac+meta+x\"],AnnotationEditorUIManager.prototype.cut],[[\"ctrl+z\",\"mac+meta+z\"],AnnotationEditorUIManager.prototype.undo],[[\"ctrl+y\",\"ctrl+shift+Z\",\"mac+meta+shift+Z\"],AnnotationEditorUIManager.prototype.redo],[[\"Backspace\",\"alt+Backspace\",\"ctrl+Backspace\",\"shift+Backspace\",\"mac+Backspace\",\"mac+alt+Backspace\",\"mac+ctrl+Backspace\",\"Delete\",\"ctrl+Delete\",\"shift+Delete\"],AnnotationEditorUIManager.prototype.delete],[[\"Escape\",\"mac+Escape\"],AnnotationEditorUIManager.prototype.unselectAll]]));/***/}),(/* 133 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.StatTimer=exports.RenderingCancelledException=exports.PixelsPerInch=exports.PageViewport=exports.PDFDateString=exports.DOMStandardFontDataFactory=exports.DOMSVGFactory=exports.DOMCanvasFactory=exports.DOMCMapReaderFactory=exports.AnnotationPrefix=void 0;exports.deprecated=deprecated;exports.getColorValues=getColorValues;exports.getCurrentTransform=getCurrentTransform;exports.getCurrentTransformInverse=getCurrentTransformInverse;exports.getFilenameFromUrl=getFilenameFromUrl;exports.getPdfFilenameFromUrl=getPdfFilenameFromUrl;exports.getRGB=getRGB;exports.getXfaPageViewport=getXfaPageViewport;exports.isDataScheme=isDataScheme;exports.isPdfFile=isPdfFile;exports.isValidFetchUrl=isValidFetchUrl;exports.loadScript=loadScript;var _base_factory=__w_pdfjs_require__(134);var _util=__w_pdfjs_require__(1);function _defineProperty(obj,key,value){if(key in obj){_Object$defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}var SVG_NS=\"http://www.w3.org/2000/svg\";var AnnotationPrefix=\"pdfjs_internal_id_\";exports.AnnotationPrefix=AnnotationPrefix;var PixelsPerInch=/*#__PURE__*/_createClass(function PixelsPerInch(){_classCallCheck(this,PixelsPerInch);});exports.PixelsPerInch=PixelsPerInch;_defineProperty(PixelsPerInch,\"CSS\",96.0);_defineProperty(PixelsPerInch,\"PDF\",72.0);_defineProperty(PixelsPerInch,\"PDF_TO_CSS_UNITS\",PixelsPerInch.CSS/PixelsPerInch.PDF);var DOMCanvasFactory=/*#__PURE__*/function(_base_factory$BaseCan){_inherits(DOMCanvasFactory,_base_factory$BaseCan);function DOMCanvasFactory(){var _this25;_classCallCheck(this,DOMCanvasFactory);var _ref27=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref27$ownerDocument=_ref27.ownerDocument,ownerDocument=_ref27$ownerDocument===void 0?_globalThis.document:_ref27$ownerDocument;_this25=_callSuper(this,DOMCanvasFactory);_this25._document=ownerDocument;return _this25;}_createClass(DOMCanvasFactory,[{key:\"_createCanvas\",value:function _createCanvas(width,height){var canvas=this._document.createElement(\"canvas\");canvas.width=width;canvas.height=height;return canvas;}}]);return DOMCanvasFactory;}(_base_factory.BaseCanvasFactory);exports.DOMCanvasFactory=DOMCanvasFactory;function fetchData(_x5){return _fetchData.apply(this,arguments);}function _fetchData(){_fetchData=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(url){var asTypedArray,response,_args8=arguments;return _regeneratorRuntime.wrap(function _callee8$(_context51){while(1)switch(_context51.prev=_context51.next){case 0:asTypedArray=_args8.length>1&&_args8[1]!==undefined?_args8[1]:false;if(!isValidFetchUrl(url,document.baseURI)){_context51.next=21;break;}_context51.next=4;return fetch(url);case 4:response=_context51.sent;if(response.ok){_context51.next=7;break;}throw new Error(response.statusText);case 7:if(!asTypedArray){_context51.next=15;break;}_context51.t1=Uint8Array;_context51.next=11;return response.arrayBuffer();case 11:_context51.t2=_context51.sent;_context51.t0=new _context51.t1(_context51.t2);_context51.next=20;break;case 15:_context51.t3=(0,_util.stringToBytes);_context51.next=18;return response.text();case 18:_context51.t4=_context51.sent;_context51.t0=(0,_context51.t3)(_context51.t4);case 20:return _context51.abrupt(\"return\",_context51.t0);case 21:return _context51.abrupt(\"return\",new _Promise(function(resolve,reject){var request=new XMLHttpRequest();request.open(\"GET\",url,true);if(asTypedArray){request.responseType=\"arraybuffer\";}request.onreadystatechange=function(){if(request.readyState!==XMLHttpRequest.DONE){return;}if(request.status===200||request.status===0){var data;if(asTypedArray&&request.response){data=new Uint8Array(request.response);}else if(!asTypedArray&&request.responseText){data=(0,_util.stringToBytes)(request.responseText);}if(data){resolve(data);return;}}reject(new Error(request.statusText));};request.send(null);}));case 22:case\"end\":return _context51.stop();}},_callee8);}));return _fetchData.apply(this,arguments);}var DOMCMapReaderFactory=/*#__PURE__*/function(_base_factory$BaseCMa){_inherits(DOMCMapReaderFactory,_base_factory$BaseCMa);function DOMCMapReaderFactory(){_classCallCheck(this,DOMCMapReaderFactory);return _callSuper(this,DOMCMapReaderFactory,arguments);}_createClass(DOMCMapReaderFactory,[{key:\"_fetchData\",value:function _fetchData(url,compressionType){return fetchData(url,this.isCompressed).then(function(data){return{cMapData:data,compressionType:compressionType};});}}]);return DOMCMapReaderFactory;}(_base_factory.BaseCMapReaderFactory);exports.DOMCMapReaderFactory=DOMCMapReaderFactory;var DOMStandardFontDataFactory=/*#__PURE__*/function(_base_factory$BaseSta){_inherits(DOMStandardFontDataFactory,_base_factory$BaseSta);function DOMStandardFontDataFactory(){_classCallCheck(this,DOMStandardFontDataFactory);return _callSuper(this,DOMStandardFontDataFactory,arguments);}_createClass(DOMStandardFontDataFactory,[{key:\"_fetchData\",value:function _fetchData(url){return fetchData(url,true);}}]);return DOMStandardFontDataFactory;}(_base_factory.BaseStandardFontDataFactory);exports.DOMStandardFontDataFactory=DOMStandardFontDataFactory;var DOMSVGFactory=/*#__PURE__*/function(_base_factory$BaseSVG){_inherits(DOMSVGFactory,_base_factory$BaseSVG);function DOMSVGFactory(){_classCallCheck(this,DOMSVGFactory);return _callSuper(this,DOMSVGFactory,arguments);}_createClass(DOMSVGFactory,[{key:\"_createSVG\",value:function _createSVG(type){return document.createElementNS(SVG_NS,type);}}]);return DOMSVGFactory;}(_base_factory.BaseSVGFactory);exports.DOMSVGFactory=DOMSVGFactory;var PageViewport=/*#__PURE__*/function(){function PageViewport(_ref){_classCallCheck(this,PageViewport);var viewBox=_ref.viewBox,scale=_ref.scale,rotation=_ref.rotation,_ref$offsetX=_ref.offsetX,offsetX=_ref$offsetX===void 0?0:_ref$offsetX,_ref$offsetY=_ref.offsetY,offsetY=_ref$offsetY===void 0?0:_ref$offsetY,_ref$dontFlip=_ref.dontFlip,dontFlip=_ref$dontFlip===void 0?false:_ref$dontFlip;this.viewBox=viewBox;this.scale=scale;this.rotation=rotation;this.offsetX=offsetX;this.offsetY=offsetY;var centerX=(viewBox[2]+viewBox[0])/2;var centerY=(viewBox[3]+viewBox[1])/2;var rotateA,rotateB,rotateC,rotateD;rotation%=360;if(rotation<0){rotation+=360;}switch(rotation){case 180:rotateA=-1;rotateB=0;rotateC=0;rotateD=1;break;case 90:rotateA=0;rotateB=1;rotateC=1;rotateD=0;break;case 270:rotateA=0;rotateB=-1;rotateC=-1;rotateD=0;break;case 0:rotateA=1;rotateB=0;rotateC=0;rotateD=-1;break;default:throw new Error(\"PageViewport: Invalid rotation, must be a multiple of 90 degrees.\");}if(dontFlip){rotateC=-rotateC;rotateD=-rotateD;}var offsetCanvasX,offsetCanvasY;var width,height;if(rotateA===0){offsetCanvasX=Math.abs(centerY-viewBox[1])*scale+offsetX;offsetCanvasY=Math.abs(centerX-viewBox[0])*scale+offsetY;width=Math.abs(viewBox[3]-viewBox[1])*scale;height=Math.abs(viewBox[2]-viewBox[0])*scale;}else{offsetCanvasX=Math.abs(centerX-viewBox[0])*scale+offsetX;offsetCanvasY=Math.abs(centerY-viewBox[1])*scale+offsetY;width=Math.abs(viewBox[2]-viewBox[0])*scale;height=Math.abs(viewBox[3]-viewBox[1])*scale;}this.transform=[rotateA*scale,rotateB*scale,rotateC*scale,rotateD*scale,offsetCanvasX-rotateA*scale*centerX-rotateC*scale*centerY,offsetCanvasY-rotateB*scale*centerX-rotateD*scale*centerY];this.width=width;this.height=height;}_createClass(PageViewport,[{key:\"clone\",value:function clone(){var _context44;var _ref28=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref28$scale=_ref28.scale,scale=_ref28$scale===void 0?this.scale:_ref28$scale,_ref28$rotation=_ref28.rotation,rotation=_ref28$rotation===void 0?this.rotation:_ref28$rotation,_ref28$offsetX=_ref28.offsetX,offsetX=_ref28$offsetX===void 0?this.offsetX:_ref28$offsetX,_ref28$offsetY=_ref28.offsetY,offsetY=_ref28$offsetY===void 0?this.offsetY:_ref28$offsetY,_ref28$dontFlip=_ref28.dontFlip,dontFlip=_ref28$dontFlip===void 0?false:_ref28$dontFlip;return new PageViewport({viewBox:_sliceInstanceProperty(_context44=this.viewBox).call(_context44),scale:scale,rotation:rotation,offsetX:offsetX,offsetY:offsetY,dontFlip:dontFlip});}},{key:\"convertToViewportPoint\",value:function convertToViewportPoint(x,y){return _util.Util.applyTransform([x,y],this.transform);}},{key:\"convertToViewportRectangle\",value:function convertToViewportRectangle(rect){var topLeft=_util.Util.applyTransform([rect[0],rect[1]],this.transform);var bottomRight=_util.Util.applyTransform([rect[2],rect[3]],this.transform);return[topLeft[0],topLeft[1],bottomRight[0],bottomRight[1]];}},{key:\"convertToPdfPoint\",value:function convertToPdfPoint(x,y){return _util.Util.applyInverseTransform([x,y],this.transform);}}]);return PageViewport;}();exports.PageViewport=PageViewport;var RenderingCancelledException=/*#__PURE__*/function(_util$BaseException){_inherits(RenderingCancelledException,_util$BaseException);function RenderingCancelledException(msg,type){var _this26;_classCallCheck(this,RenderingCancelledException);_this26=_callSuper(this,RenderingCancelledException,[msg,\"RenderingCancelledException\"]);_this26.type=type;return _this26;}return _createClass(RenderingCancelledException);}(_util.BaseException);exports.RenderingCancelledException=RenderingCancelledException;function isDataScheme(url){var ii=url.length;var i=0;while(i<ii&&_trimInstanceProperty(_context45=url[i]).call(_context45)===\"\"){var _context45;i++;}return url.substring(i,i+5).toLowerCase()===\"data:\";}function isPdfFile(filename){return typeof filename===\"string\"&&/\\.pdf$/i.test(filename);}function getFilenameFromUrl(url){var anchor=_indexOfInstanceProperty(url).call(url,\"#\");var query=_indexOfInstanceProperty(url).call(url,\"?\");var end=Math.min(anchor>0?anchor:url.length,query>0?query:url.length);return url.substring(_lastIndexOfInstanceProperty(url).call(url,\"/\",end)+1,end);}function getPdfFilenameFromUrl(url){var defaultFilename=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"document.pdf\";if(typeof url!==\"string\"){return defaultFilename;}if(isDataScheme(url)){(0,_util.warn)('getPdfFilenameFromUrl: ignore \"data:\"-URL for performance reasons.');return defaultFilename;}var reURI=/^(?:(?:[^:]+:)?\\/\\/[^/]+)?([^?#]*)(\\?[^#]*)?(#.*)?$/;var reFilename=/[^/?#=]+\\.pdf\\b(?!.*\\.pdf\\b)/i;var splitURI=reURI.exec(url);var suggestedFilename=reFilename.exec(splitURI[1])||reFilename.exec(splitURI[2])||reFilename.exec(splitURI[3]);if(suggestedFilename){suggestedFilename=suggestedFilename[0];if(_includesInstanceProperty(suggestedFilename).call(suggestedFilename,\"%\")){try{suggestedFilename=reFilename.exec(decodeURIComponent(suggestedFilename))[0];}catch(ex){}}}return suggestedFilename||defaultFilename;}var StatTimer=/*#__PURE__*/function(){function StatTimer(){_classCallCheck(this,StatTimer);this.started=Object.create(null);this.times=[];}_createClass(StatTimer,[{key:\"time\",value:function time(name){if(name in this.started){(0,_util.warn)(\"Timer is already running for \".concat(name));}this.started[name]=Date.now();}},{key:\"timeEnd\",value:function timeEnd(name){if(!(name in this.started)){(0,_util.warn)(\"Timer has not been started for \".concat(name));}this.times.push({name:name,start:this.started[name],end:Date.now()});delete this.started[name];}},{key:\"toString\",value:function toString(){var outBuf=[];var longest=0;var _iterator43=_createForOfIteratorHelper(this.times),_step43;try{for(_iterator43.s();!(_step43=_iterator43.n()).done;){var time=_step43.value;var name=time.name;if(name.length>longest){longest=name.length;}}}catch(err){_iterator43.e(err);}finally{_iterator43.f();}var _iterator44=_createForOfIteratorHelper(this.times),_step44;try{for(_iterator44.s();!(_step44=_iterator44.n()).done;){var _context46,_context47;var _time=_step44.value;var duration=_time.end-_time.start;outBuf.push(_concatInstanceProperty(_context46=\"\".concat(_padEndInstanceProperty(_context47=_time.name).call(_context47,longest),\" \")).call(_context46,duration,\"ms\\n\"));}}catch(err){_iterator44.e(err);}finally{_iterator44.f();}return outBuf.join(\"\");}}]);return StatTimer;}();exports.StatTimer=StatTimer;function isValidFetchUrl(url,baseUrl){try{var _ref29=baseUrl?new _URL(url,baseUrl):new _URL(url),protocol=_ref29.protocol;return protocol===\"http:\"||protocol===\"https:\";}catch(ex){return false;}}function loadScript(src){var removeScriptElement=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;return new _Promise(function(resolve,reject){var script=document.createElement(\"script\");script.src=src;script.onload=function(evt){if(removeScriptElement){script.remove();}resolve(evt);};script.onerror=function(){reject(new Error(\"Cannot load script at: \".concat(script.src)));};(document.head||document.documentElement).append(script);});}function deprecated(details){console.log(\"Deprecated API usage: \"+details);}var pdfDateStringRegex;var PDFDateString=/*#__PURE__*/function(){function PDFDateString(){_classCallCheck(this,PDFDateString);}_createClass(PDFDateString,null,[{key:\"toDateObject\",value:function toDateObject(input){if(!input||typeof input!==\"string\"){return null;}if(!pdfDateStringRegex){pdfDateStringRegex=new RegExp(\"^D:\"+\"(\\\\d{4})\"+\"(\\\\d{2})?\"+\"(\\\\d{2})?\"+\"(\\\\d{2})?\"+\"(\\\\d{2})?\"+\"(\\\\d{2})?\"+\"([Z|+|-])?\"+\"(\\\\d{2})?\"+\"'?\"+\"(\\\\d{2})?\"+\"'?\");}var matches=pdfDateStringRegex.exec(input);if(!matches){return null;}var year=_parseInt(matches[1],10);var month=_parseInt(matches[2],10);month=month>=1&&month<=12?month-1:0;var day=_parseInt(matches[3],10);day=day>=1&&day<=31?day:1;var hour=_parseInt(matches[4],10);hour=hour>=0&&hour<=23?hour:0;var minute=_parseInt(matches[5],10);minute=minute>=0&&minute<=59?minute:0;var second=_parseInt(matches[6],10);second=second>=0&&second<=59?second:0;var universalTimeRelation=matches[7]||\"Z\";var offsetHour=_parseInt(matches[8],10);offsetHour=offsetHour>=0&&offsetHour<=23?offsetHour:0;var offsetMinute=_parseInt(matches[9],10)||0;offsetMinute=offsetMinute>=0&&offsetMinute<=59?offsetMinute:0;if(universalTimeRelation===\"-\"){hour+=offsetHour;minute+=offsetMinute;}else if(universalTimeRelation===\"+\"){hour-=offsetHour;minute-=offsetMinute;}return new Date(Date.UTC(year,month,day,hour,minute,second));}}]);return PDFDateString;}();exports.PDFDateString=PDFDateString;function getXfaPageViewport(xfaPage,_ref2){var _ref2$scale=_ref2.scale,scale=_ref2$scale===void 0?1:_ref2$scale,_ref2$rotation=_ref2.rotation,rotation=_ref2$rotation===void 0?0:_ref2$rotation;var _xfaPage$attributes$s=xfaPage.attributes.style,width=_xfaPage$attributes$s.width,height=_xfaPage$attributes$s.height;var viewBox=[0,0,_parseInt(width),_parseInt(height)];return new PageViewport({viewBox:viewBox,scale:scale,rotation:rotation});}function getRGB(color){if(_startsWithInstanceProperty(color).call(color,\"#\")){var colorRGB=_parseInt(_sliceInstanceProperty(color).call(color,1),16);return[(colorRGB&0xff0000)>>16,(colorRGB&0x00ff00)>>8,colorRGB&0x0000ff];}if(_startsWithInstanceProperty(color).call(color,\"rgb(\")){var _context48;return _mapInstanceProperty(_context48=_sliceInstanceProperty(color).call(color,4,-1).split(\",\")).call(_context48,function(x){return _parseInt(x);});}if(_startsWithInstanceProperty(color).call(color,\"rgba(\")){var _context49,_context50;return _sliceInstanceProperty(_context49=_mapInstanceProperty(_context50=_sliceInstanceProperty(color).call(color,5,-1).split(\",\")).call(_context50,function(x){return _parseInt(x);})).call(_context49,0,3);}(0,_util.warn)(\"Not a valid color format: \\\"\".concat(color,\"\\\"\"));return[0,0,0];}function getColorValues(colors){var span=document.createElement(\"span\");span.style.visibility=\"hidden\";document.body.append(span);var _iterator45=_createForOfIteratorHelper(_keysInstanceProperty(colors).call(colors)),_step45;try{for(_iterator45.s();!(_step45=_iterator45.n()).done;){var name=_step45.value;span.style.color=name;var computedColor=window.getComputedStyle(span).color;colors.set(name,getRGB(computedColor));}}catch(err){_iterator45.e(err);}finally{_iterator45.f();}span.remove();}function getCurrentTransform(ctx){var _ctx$getTransform=ctx.getTransform(),a=_ctx$getTransform.a,b=_ctx$getTransform.b,c=_ctx$getTransform.c,d=_ctx$getTransform.d,e=_ctx$getTransform.e,f=_ctx$getTransform.f;return[a,b,c,d,e,f];}function getCurrentTransformInverse(ctx){var _ctx$getTransform$inv=ctx.getTransform().invertSelf(),a=_ctx$getTransform$inv.a,b=_ctx$getTransform$inv.b,c=_ctx$getTransform$inv.c,d=_ctx$getTransform$inv.d,e=_ctx$getTransform$inv.e,f=_ctx$getTransform$inv.f;return[a,b,c,d,e,f];}/***/}),(/* 134 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.BaseStandardFontDataFactory=exports.BaseSVGFactory=exports.BaseCanvasFactory=exports.BaseCMapReaderFactory=void 0;var _util=__w_pdfjs_require__(1);var BaseCanvasFactory=/*#__PURE__*/function(){function BaseCanvasFactory(){_classCallCheck(this,BaseCanvasFactory);if(this.constructor===BaseCanvasFactory){(0,_util.unreachable)(\"Cannot initialize BaseCanvasFactory.\");}}_createClass(BaseCanvasFactory,[{key:\"create\",value:function create(width,height){if(width<=0||height<=0){throw new Error(\"Invalid canvas size\");}var canvas=this._createCanvas(width,height);return{canvas:canvas,context:canvas.getContext(\"2d\")};}},{key:\"reset\",value:function reset(canvasAndContext,width,height){if(!canvasAndContext.canvas){throw new Error(\"Canvas is not specified\");}if(width<=0||height<=0){throw new Error(\"Invalid canvas size\");}canvasAndContext.canvas.width=width;canvasAndContext.canvas.height=height;}},{key:\"destroy\",value:function destroy(canvasAndContext){if(!canvasAndContext.canvas){throw new Error(\"Canvas is not specified\");}canvasAndContext.canvas.width=0;canvasAndContext.canvas.height=0;canvasAndContext.canvas=null;canvasAndContext.context=null;}},{key:\"_createCanvas\",value:function _createCanvas(width,height){(0,_util.unreachable)(\"Abstract method `_createCanvas` called.\");}}]);return BaseCanvasFactory;}();exports.BaseCanvasFactory=BaseCanvasFactory;var BaseCMapReaderFactory=/*#__PURE__*/function(){function BaseCMapReaderFactory(_ref){_classCallCheck(this,BaseCMapReaderFactory);var _ref$baseUrl=_ref.baseUrl,baseUrl=_ref$baseUrl===void 0?null:_ref$baseUrl,_ref$isCompressed=_ref.isCompressed,isCompressed=_ref$isCompressed===void 0?false:_ref$isCompressed;if(this.constructor===BaseCMapReaderFactory){(0,_util.unreachable)(\"Cannot initialize BaseCMapReaderFactory.\");}this.baseUrl=baseUrl;this.isCompressed=isCompressed;}_createClass(BaseCMapReaderFactory,[{key:\"fetch\",value:function(){var _fetch=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(_ref2){var _this27=this;var name,url,compressionType;return _regeneratorRuntime.wrap(function _callee9$(_context53){while(1)switch(_context53.prev=_context53.next){case 0:name=_ref2.name;if(this.baseUrl){_context53.next=3;break;}throw new Error('The CMap \"baseUrl\" parameter must be specified, ensure that '+'the \"cMapUrl\" and \"cMapPacked\" API parameters are provided.');case 3:if(name){_context53.next=5;break;}throw new Error(\"CMap name must be specified.\");case 5:url=this.baseUrl+name+(this.isCompressed?\".bcmap\":\"\");compressionType=this.isCompressed?_util.CMapCompressionType.BINARY:_util.CMapCompressionType.NONE;return _context53.abrupt(\"return\",this._fetchData(url,compressionType).catch(function(reason){var _context52;throw new Error(_concatInstanceProperty(_context52=\"Unable to load \".concat(_this27.isCompressed?\"binary \":\"\",\"CMap at: \")).call(_context52,url));}));case 8:case\"end\":return _context53.stop();}},_callee9,this);}));function fetch(_x6){return _fetch.apply(this,arguments);}return fetch;}()},{key:\"_fetchData\",value:function _fetchData(url,compressionType){(0,_util.unreachable)(\"Abstract method `_fetchData` called.\");}}]);return BaseCMapReaderFactory;}();exports.BaseCMapReaderFactory=BaseCMapReaderFactory;var BaseStandardFontDataFactory=/*#__PURE__*/function(){function BaseStandardFontDataFactory(_ref3){_classCallCheck(this,BaseStandardFontDataFactory);var _ref3$baseUrl=_ref3.baseUrl,baseUrl=_ref3$baseUrl===void 0?null:_ref3$baseUrl;if(this.constructor===BaseStandardFontDataFactory){(0,_util.unreachable)(\"Cannot initialize BaseStandardFontDataFactory.\");}this.baseUrl=baseUrl;}_createClass(BaseStandardFontDataFactory,[{key:\"fetch\",value:function(){var _fetch2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(_ref4){var _context54;var filename,url;return _regeneratorRuntime.wrap(function _callee10$(_context55){while(1)switch(_context55.prev=_context55.next){case 0:filename=_ref4.filename;if(this.baseUrl){_context55.next=3;break;}throw new Error('The standard font \"baseUrl\" parameter must be specified, ensure that '+'the \"standardFontDataUrl\" API parameter is provided.');case 3:if(filename){_context55.next=5;break;}throw new Error(\"Font filename must be specified.\");case 5:url=_concatInstanceProperty(_context54=\"\".concat(this.baseUrl)).call(_context54,filename);return _context55.abrupt(\"return\",this._fetchData(url).catch(function(reason){throw new Error(\"Unable to load font data at: \".concat(url));}));case 7:case\"end\":return _context55.stop();}},_callee10,this);}));function fetch(_x7){return _fetch2.apply(this,arguments);}return fetch;}()},{key:\"_fetchData\",value:function _fetchData(url){(0,_util.unreachable)(\"Abstract method `_fetchData` called.\");}}]);return BaseStandardFontDataFactory;}();exports.BaseStandardFontDataFactory=BaseStandardFontDataFactory;var BaseSVGFactory=/*#__PURE__*/function(){function BaseSVGFactory(){_classCallCheck(this,BaseSVGFactory);if(this.constructor===BaseSVGFactory){(0,_util.unreachable)(\"Cannot initialize BaseSVGFactory.\");}}_createClass(BaseSVGFactory,[{key:\"create\",value:function create(width,height){var _context56;var skipDimensions=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(width<=0||height<=0){throw new Error(\"Invalid SVG dimensions\");}var svg=this._createSVG(\"svg:svg\");svg.setAttribute(\"version\",\"1.1\");if(!skipDimensions){svg.setAttribute(\"width\",\"\".concat(width,\"px\"));svg.setAttribute(\"height\",\"\".concat(height,\"px\"));}svg.setAttribute(\"preserveAspectRatio\",\"none\");svg.setAttribute(\"viewBox\",_concatInstanceProperty(_context56=\"0 0 \".concat(width,\" \")).call(_context56,height));return svg;}},{key:\"createElement\",value:function createElement(type){if(typeof type!==\"string\"){throw new Error(\"Invalid SVG element type\");}return this._createSVG(type);}},{key:\"_createSVG\",value:function _createSVG(type){(0,_util.unreachable)(\"Abstract method `_createSVG` called.\");}}]);return BaseSVGFactory;}();exports.BaseSVGFactory=BaseSVGFactory;/***/}),(/* 135 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.MurmurHash3_64=void 0;var _util=__w_pdfjs_require__(1);var SEED=0xc3d2e1f0;var MASK_HIGH=0xffff0000;var MASK_LOW=0xffff;var MurmurHash3_64=/*#__PURE__*/function(){function MurmurHash3_64(seed){_classCallCheck(this,MurmurHash3_64);this.h1=seed?seed&0xffffffff:SEED;this.h2=seed?seed&0xffffffff:SEED;}_createClass(MurmurHash3_64,[{key:\"update\",value:function update(input){var data,length;if(typeof input===\"string\"){data=new Uint8Array(input.length*2);length=0;for(var i=0,ii=input.length;i<ii;i++){var code=input.charCodeAt(i);if(code<=0xff){data[length++]=code;}else{data[length++]=code>>>8;data[length++]=code&0xff;}}}else if((0,_util.isArrayBuffer)(input)){data=_sliceInstanceProperty(input).call(input);length=data.byteLength;}else{throw new Error(\"Wrong data format in MurmurHash3_64_update. \"+\"Input must be a string or array.\");}var blockCounts=length>>2;var tailLength=length-blockCounts*4;var dataUint32=new Uint32Array(data.buffer,0,blockCounts);var k1=0,k2=0;var h1=this.h1,h2=this.h2;var C1=0xcc9e2d51,C2=0x1b873593;var C1_LOW=C1&MASK_LOW,C2_LOW=C2&MASK_LOW;for(var _i3=0;_i3<blockCounts;_i3++){if(_i3&1){k1=dataUint32[_i3];k1=k1*C1&MASK_HIGH|k1*C1_LOW&MASK_LOW;k1=k1<<15|k1>>>17;k1=k1*C2&MASK_HIGH|k1*C2_LOW&MASK_LOW;h1^=k1;h1=h1<<13|h1>>>19;h1=h1*5+0xe6546b64;}else{k2=dataUint32[_i3];k2=k2*C1&MASK_HIGH|k2*C1_LOW&MASK_LOW;k2=k2<<15|k2>>>17;k2=k2*C2&MASK_HIGH|k2*C2_LOW&MASK_LOW;h2^=k2;h2=h2<<13|h2>>>19;h2=h2*5+0xe6546b64;}}k1=0;switch(tailLength){case 3:k1^=data[blockCounts*4+2]<<16;case 2:k1^=data[blockCounts*4+1]<<8;case 1:k1^=data[blockCounts*4];k1=k1*C1&MASK_HIGH|k1*C1_LOW&MASK_LOW;k1=k1<<15|k1>>>17;k1=k1*C2&MASK_HIGH|k1*C2_LOW&MASK_LOW;if(blockCounts&1){h1^=k1;}else{h2^=k1;}}this.h1=h1;this.h2=h2;}},{key:\"hexdigest\",value:function hexdigest(){var h1=this.h1,h2=this.h2;h1^=h2>>>1;h1=h1*0xed558ccd&MASK_HIGH|h1*0x8ccd&MASK_LOW;h2=h2*0xff51afd7&MASK_HIGH|((h2<<16|h1>>>16)*0xafd7ed55&MASK_HIGH)>>>16;h1^=h2>>>1;h1=h1*0x1a85ec53&MASK_HIGH|h1*0xec53&MASK_LOW;h2=h2*0xc4ceb9fe&MASK_HIGH|((h2<<16|h1>>>16)*0xb9fe1a85&MASK_HIGH)>>>16;h1^=h2>>>1;var hex1=(h1>>>0).toString(16),hex2=(h2>>>0).toString(16);return _padStartInstanceProperty(hex1).call(hex1,8,\"0\")+_padStartInstanceProperty(hex2).call(hex2,8,\"0\");}}]);return MurmurHash3_64;}();exports.MurmurHash3_64=MurmurHash3_64;/***/}),(/* 136 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.FontLoader=exports.FontFaceObject=void 0;var _util=__w_pdfjs_require__(1);var BaseFontLoader=/*#__PURE__*/function(){function BaseFontLoader(_ref){_classCallCheck(this,BaseFontLoader);var docId=_ref.docId,onUnsupportedFeature=_ref.onUnsupportedFeature,_ref$ownerDocument=_ref.ownerDocument,ownerDocument=_ref$ownerDocument===void 0?_globalThis.document:_ref$ownerDocument,_ref$styleElement=_ref.styleElement,styleElement=_ref$styleElement===void 0?null:_ref$styleElement;if(this.constructor===BaseFontLoader){(0,_util.unreachable)(\"Cannot initialize BaseFontLoader.\");}this.docId=docId;this._onUnsupportedFeature=onUnsupportedFeature;this._document=ownerDocument;this.nativeFontFaces=[];this.styleElement=null;}_createClass(BaseFontLoader,[{key:\"addNativeFontFace\",value:function addNativeFontFace(nativeFontFace){this.nativeFontFaces.push(nativeFontFace);this._document.fonts.add(nativeFontFace);}},{key:\"insertRule\",value:function insertRule(rule){var styleElement=this.styleElement;if(!styleElement){styleElement=this.styleElement=this._document.createElement(\"style\");styleElement.id=\"PDFJS_FONT_STYLE_TAG_\".concat(this.docId);this._document.documentElement.getElementsByTagName(\"head\")[0].append(styleElement);}var styleSheet=styleElement.sheet;styleSheet.insertRule(rule,styleSheet.cssRules.length);}},{key:\"clear\",value:function clear(){var _iterator46=_createForOfIteratorHelper(this.nativeFontFaces),_step46;try{for(_iterator46.s();!(_step46=_iterator46.n()).done;){var nativeFontFace=_step46.value;this._document.fonts.delete(nativeFontFace);}}catch(err){_iterator46.e(err);}finally{_iterator46.f();}this.nativeFontFaces.length=0;if(this.styleElement){this.styleElement.remove();this.styleElement=null;}}},{key:\"bind\",value:function(){var _bind=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(font){var _this28=this;var nativeFontFace,_context57,rule;return _regeneratorRuntime.wrap(function _callee11$(_context58){while(1)switch(_context58.prev=_context58.next){case 0:if(!(font.attached||font.missingFile)){_context58.next=2;break;}return _context58.abrupt(\"return\");case 2:font.attached=true;if(!this.isFontLoadingAPISupported){_context58.next=19;break;}nativeFontFace=font.createNativeFontFace();if(!nativeFontFace){_context58.next=18;break;}this.addNativeFontFace(nativeFontFace);_context58.prev=7;_context58.next=10;return nativeFontFace.loaded;case 10:_context58.next=18;break;case 12:_context58.prev=12;_context58.t0=_context58[\"catch\"](7);this._onUnsupportedFeature({featureId:_util.UNSUPPORTED_FEATURES.errorFontLoadNative});(0,_util.warn)(_concatInstanceProperty(_context57=\"Failed to load font '\".concat(nativeFontFace.family,\"': '\")).call(_context57,_context58.t0,\"'.\"));font.disableFontFace=true;throw _context58.t0;case 18:return _context58.abrupt(\"return\");case 19:rule=font.createFontFaceRule();if(!rule){_context58.next=26;break;}this.insertRule(rule);if(!this.isSyncFontLoadingSupported){_context58.next=24;break;}return _context58.abrupt(\"return\");case 24:_context58.next=26;return new _Promise(function(resolve){var request=_this28._queueLoadingCallback(resolve);_this28._prepareFontLoadEvent([rule],[font],request);});case 26:case\"end\":return _context58.stop();}},_callee11,this,[[7,12]]);}));function bind(_x8){return _bind.apply(this,arguments);}return bind;}()},{key:\"_queueLoadingCallback\",value:function _queueLoadingCallback(callback){(0,_util.unreachable)(\"Abstract method `_queueLoadingCallback`.\");}},{key:\"isFontLoadingAPISupported\",get:function get(){var _this$_document;var hasFonts=!!((_this$_document=this._document)!==null&&_this$_document!==void 0&&_this$_document.fonts);return(0,_util.shadow)(this,\"isFontLoadingAPISupported\",hasFonts);}},{key:\"isSyncFontLoadingSupported\",get:function get(){(0,_util.unreachable)(\"Abstract method `isSyncFontLoadingSupported`.\");}},{key:\"_loadTestFont\",get:function get(){(0,_util.unreachable)(\"Abstract method `_loadTestFont`.\");}},{key:\"_prepareFontLoadEvent\",value:function _prepareFontLoadEvent(rules,fontsToLoad,request){(0,_util.unreachable)(\"Abstract method `_prepareFontLoadEvent`.\");}}]);return BaseFontLoader;}();var FontLoader;exports.FontLoader=FontLoader;{exports.FontLoader=FontLoader=/*#__PURE__*/function(_BaseFontLoader){_inherits(GenericFontLoader,_BaseFontLoader);function GenericFontLoader(params){var _this29;_classCallCheck(this,GenericFontLoader);_this29=_callSuper(this,GenericFontLoader,[params]);_this29.loadingContext={requests:[],nextRequestId:0};_this29.loadTestFontId=0;return _this29;}_createClass(GenericFontLoader,[{key:\"isSyncFontLoadingSupported\",get:function get(){var supported=false;if(typeof navigator===\"undefined\"){supported=true;}else{var m=/Mozilla\\/5.0.*?rv:(\\d+).*? Gecko/.exec(navigator.userAgent);if((m===null||m===void 0?void 0:m[1])>=14){supported=true;}}return(0,_util.shadow)(this,\"isSyncFontLoadingSupported\",supported);}},{key:\"_queueLoadingCallback\",value:function _queueLoadingCallback(callback){function completeRequest(){(0,_util.assert)(!request.done,\"completeRequest() cannot be called twice.\");request.done=true;while(context.requests.length>0&&context.requests[0].done){var otherRequest=context.requests.shift();_setTimeout(otherRequest.callback,0);}}var context=this.loadingContext;var request={id:\"pdfjs-font-loading-\".concat(context.nextRequestId++),done:false,complete:completeRequest,callback:callback};context.requests.push(request);return request;}},{key:\"_loadTestFont\",get:function get(){var getLoadTestFont=function getLoadTestFont(){return atob(\"T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQA\"+\"FQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAA\"+\"ALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgA\"+\"AAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1\"+\"AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD\"+\"6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACM\"+\"AooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4D\"+\"IP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAA\"+\"AAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUA\"+\"AQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgAB\"+\"AAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABY\"+\"AAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAA\"+\"AC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\"+\"AAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\"+\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\"+\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\"+\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\"+\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAA\"+\"AAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQAC\"+\"AQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3\"+\"Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTj\"+\"FQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==\");};return(0,_util.shadow)(this,\"_loadTestFont\",getLoadTestFont());}},{key:\"_prepareFontLoadEvent\",value:function _prepareFontLoadEvent(rules,fonts,request){var _context59,_context60;function int32(data,offset){return data.charCodeAt(offset)<<24|data.charCodeAt(offset+1)<<16|data.charCodeAt(offset+2)<<8|data.charCodeAt(offset+3)&0xff;}function spliceString(s,offset,remove,insert){var chunk1=s.substring(0,offset);var chunk2=s.substring(offset+remove);return chunk1+insert+chunk2;}var i,ii;var canvas=this._document.createElement(\"canvas\");canvas.width=1;canvas.height=1;var ctx=canvas.getContext(\"2d\");var called=0;function isFontReady(name,callback){called++;if(called>30){(0,_util.warn)(\"Load test font never loaded.\");callback();return;}ctx.font=\"30px \"+name;ctx.fillText(\".\",0,20);var imageData=ctx.getImageData(0,0,1,1);if(imageData.data[3]>0){callback();return;}_setTimeout(isFontReady.bind(null,name,callback));}var loadTestFontId=_concatInstanceProperty(_context59=\"lt\".concat(Date.now())).call(_context59,this.loadTestFontId++);var data=this._loadTestFont;var COMMENT_OFFSET=976;data=spliceString(data,COMMENT_OFFSET,loadTestFontId.length,loadTestFontId);var CFF_CHECKSUM_OFFSET=16;var XXXX_VALUE=0x58585858;var checksum=int32(data,CFF_CHECKSUM_OFFSET);for(i=0,ii=loadTestFontId.length-3;i<ii;i+=4){checksum=checksum-XXXX_VALUE+int32(loadTestFontId,i)|0;}if(i<loadTestFontId.length){checksum=checksum-XXXX_VALUE+int32(loadTestFontId+\"XXX\",i)|0;}data=spliceString(data,CFF_CHECKSUM_OFFSET,4,(0,_util.string32)(checksum));var url=\"url(data:font/opentype;base64,\".concat(btoa(data),\");\");var rule=_concatInstanceProperty(_context60=\"@font-face {font-family:\\\"\".concat(loadTestFontId,\"\\\";src:\")).call(_context60,url,\"}\");this.insertRule(rule);var names=[];var _iterator47=_createForOfIteratorHelper(fonts),_step47;try{for(_iterator47.s();!(_step47=_iterator47.n()).done;){var font=_step47.value;names.push(font.loadedName);}}catch(err){_iterator47.e(err);}finally{_iterator47.f();}names.push(loadTestFontId);var div=this._document.createElement(\"div\");div.style.visibility=\"hidden\";div.style.width=div.style.height=\"10px\";div.style.position=\"absolute\";div.style.top=div.style.left=\"0px\";for(var _i4=0,_names=names;_i4<_names.length;_i4++){var name=_names[_i4];var span=this._document.createElement(\"span\");span.textContent=\"Hi\";span.style.fontFamily=name;div.append(span);}this._document.body.append(div);isFontReady(loadTestFontId,function(){div.remove();request.complete();});}}]);return GenericFontLoader;}(BaseFontLoader);}var FontFaceObject=/*#__PURE__*/function(){function FontFaceObject(translatedData,_ref2){_classCallCheck(this,FontFaceObject);var _ref2$isEvalSupported=_ref2.isEvalSupported,isEvalSupported=_ref2$isEvalSupported===void 0?true:_ref2$isEvalSupported,_ref2$disableFontFace=_ref2.disableFontFace,disableFontFace=_ref2$disableFontFace===void 0?false:_ref2$disableFontFace,_ref2$ignoreErrors=_ref2.ignoreErrors,ignoreErrors=_ref2$ignoreErrors===void 0?false:_ref2$ignoreErrors,onUnsupportedFeature=_ref2.onUnsupportedFeature,_ref2$fontRegistry=_ref2.fontRegistry,fontRegistry=_ref2$fontRegistry===void 0?null:_ref2$fontRegistry;this.compiledGlyphs=Object.create(null);for(var i in translatedData){this[i]=translatedData[i];}this.isEvalSupported=isEvalSupported!==false;this.disableFontFace=disableFontFace===true;this.ignoreErrors=ignoreErrors===true;this._onUnsupportedFeature=onUnsupportedFeature;this.fontRegistry=fontRegistry;}_createClass(FontFaceObject,[{key:\"createNativeFontFace\",value:function createNativeFontFace(){if(!this.data||this.disableFontFace){return null;}var nativeFontFace;if(!this.cssFontInfo){nativeFontFace=new FontFace(this.loadedName,this.data,{});}else{var css={weight:this.cssFontInfo.fontWeight};if(this.cssFontInfo.italicAngle){css.style=\"oblique \".concat(this.cssFontInfo.italicAngle,\"deg\");}nativeFontFace=new FontFace(this.cssFontInfo.fontFamily,this.data,css);}if(this.fontRegistry){this.fontRegistry.registerFont(this);}return nativeFontFace;}},{key:\"createFontFaceRule\",value:function createFontFaceRule(){var _context61;if(!this.data||this.disableFontFace){return null;}var data=(0,_util.bytesToString)(this.data);var url=_concatInstanceProperty(_context61=\"url(data:\".concat(this.mimetype,\";base64,\")).call(_context61,btoa(data),\");\");var rule;if(!this.cssFontInfo){var _context62;rule=_concatInstanceProperty(_context62=\"@font-face {font-family:\\\"\".concat(this.loadedName,\"\\\";src:\")).call(_context62,url,\"}\");}else{var _context63,_context64;var css=\"font-weight: \".concat(this.cssFontInfo.fontWeight,\";\");if(this.cssFontInfo.italicAngle){css+=\"font-style: oblique \".concat(this.cssFontInfo.italicAngle,\"deg;\");}rule=_concatInstanceProperty(_context63=_concatInstanceProperty(_context64=\"@font-face {font-family:\\\"\".concat(this.cssFontInfo.fontFamily,\"\\\";\")).call(_context64,css,\"src:\")).call(_context63,url,\"}\");}if(this.fontRegistry){this.fontRegistry.registerFont(this,url);}return rule;}},{key:\"getPathGenerator\",value:function getPathGenerator(objs,character){if(this.compiledGlyphs[character]!==undefined){return this.compiledGlyphs[character];}var cmds;try{cmds=objs.get(this.loadedName+\"_path_\"+character);}catch(ex){if(!this.ignoreErrors){throw ex;}this._onUnsupportedFeature({featureId:_util.UNSUPPORTED_FEATURES.errorFontGetPath});(0,_util.warn)(\"getPathGenerator - ignoring character: \\\"\".concat(ex,\"\\\".\"));return this.compiledGlyphs[character]=function(c,size){};}if(this.isEvalSupported&&_util.FeatureTest.isEvalSupported){var jsBuf=[];var _iterator48=_createForOfIteratorHelper(cmds),_step48;try{for(_iterator48.s();!(_step48=_iterator48.n()).done;){var current=_step48.value;var args=current.args!==undefined?current.args.join(\",\"):\"\";jsBuf.push(\"c.\",current.cmd,\"(\",args,\");\\n\");}}catch(err){_iterator48.e(err);}finally{_iterator48.f();}return this.compiledGlyphs[character]=new Function(\"c\",\"size\",jsBuf.join(\"\"));}return this.compiledGlyphs[character]=function(c,size){var _iterator49=_createForOfIteratorHelper(cmds),_step49;try{for(_iterator49.s();!(_step49=_iterator49.n()).done;){var _current=_step49.value;if(_current.cmd===\"scale\"){_current.args=[size,-size];}c[_current.cmd].apply(c,_current.args);}}catch(err){_iterator49.e(err);}finally{_iterator49.f();}};}}]);return FontFaceObject;}();exports.FontFaceObject=FontFaceObject;/***/}),(/* 137 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.CanvasGraphics=void 0;var _display_utils=__w_pdfjs_require__(133);var _util=__w_pdfjs_require__(1);var _pattern_helper=__w_pdfjs_require__(138);var _image_utils=__w_pdfjs_require__(139);var _is_node=__w_pdfjs_require__(3);function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError(\"Cannot initialize the same private elements twice on an object\");}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError(\"attempted to get private field on non-instance\");}return fn;}var MIN_FONT_SIZE=16;var MAX_FONT_SIZE=100;var MAX_GROUP_SIZE=4096;var EXECUTION_TIME=15;var EXECUTION_STEPS=10;var MAX_SIZE_TO_COMPILE=_is_node.isNodeJS&&typeof Path2D===\"undefined\"?-1:1000;var FULL_CHUNK_HEIGHT=16;function mirrorContextOperations(ctx,destCtx){if(ctx._removeMirroring){throw new Error(\"Context is already forwarding operations.\");}ctx.__originalSave=ctx.save;ctx.__originalRestore=ctx.restore;ctx.__originalRotate=ctx.rotate;ctx.__originalScale=ctx.scale;ctx.__originalTranslate=ctx.translate;ctx.__originalTransform=ctx.transform;ctx.__originalSetTransform=ctx.setTransform;ctx.__originalResetTransform=ctx.resetTransform;ctx.__originalClip=ctx.clip;ctx.__originalMoveTo=ctx.moveTo;ctx.__originalLineTo=ctx.lineTo;ctx.__originalBezierCurveTo=ctx.bezierCurveTo;ctx.__originalRect=ctx.rect;ctx.__originalClosePath=ctx.closePath;ctx.__originalBeginPath=ctx.beginPath;ctx._removeMirroring=function(){ctx.save=ctx.__originalSave;ctx.restore=ctx.__originalRestore;ctx.rotate=ctx.__originalRotate;ctx.scale=ctx.__originalScale;ctx.translate=ctx.__originalTranslate;ctx.transform=ctx.__originalTransform;ctx.setTransform=ctx.__originalSetTransform;ctx.resetTransform=ctx.__originalResetTransform;ctx.clip=ctx.__originalClip;ctx.moveTo=ctx.__originalMoveTo;ctx.lineTo=ctx.__originalLineTo;ctx.bezierCurveTo=ctx.__originalBezierCurveTo;ctx.rect=ctx.__originalRect;ctx.closePath=ctx.__originalClosePath;ctx.beginPath=ctx.__originalBeginPath;delete ctx._removeMirroring;};ctx.save=function ctxSave(){destCtx.save();this.__originalSave();};ctx.restore=function ctxRestore(){destCtx.restore();this.__originalRestore();};ctx.translate=function ctxTranslate(x,y){destCtx.translate(x,y);this.__originalTranslate(x,y);};ctx.scale=function ctxScale(x,y){destCtx.scale(x,y);this.__originalScale(x,y);};ctx.transform=function ctxTransform(a,b,c,d,e,f){destCtx.transform(a,b,c,d,e,f);this.__originalTransform(a,b,c,d,e,f);};ctx.setTransform=function ctxSetTransform(a,b,c,d,e,f){destCtx.setTransform(a,b,c,d,e,f);this.__originalSetTransform(a,b,c,d,e,f);};ctx.resetTransform=function ctxResetTransform(){destCtx.resetTransform();this.__originalResetTransform();};ctx.rotate=function ctxRotate(angle){destCtx.rotate(angle);this.__originalRotate(angle);};ctx.clip=function ctxRotate(rule){destCtx.clip(rule);this.__originalClip(rule);};ctx.moveTo=function(x,y){destCtx.moveTo(x,y);this.__originalMoveTo(x,y);};ctx.lineTo=function(x,y){destCtx.lineTo(x,y);this.__originalLineTo(x,y);};ctx.bezierCurveTo=function(cp1x,cp1y,cp2x,cp2y,x,y){destCtx.bezierCurveTo(cp1x,cp1y,cp2x,cp2y,x,y);this.__originalBezierCurveTo(cp1x,cp1y,cp2x,cp2y,x,y);};ctx.rect=function(x,y,width,height){destCtx.rect(x,y,width,height);this.__originalRect(x,y,width,height);};ctx.closePath=function(){destCtx.closePath();this.__originalClosePath();};ctx.beginPath=function(){destCtx.beginPath();this.__originalBeginPath();};}var CachedCanvases=/*#__PURE__*/function(){function CachedCanvases(canvasFactory){_classCallCheck(this,CachedCanvases);this.canvasFactory=canvasFactory;this.cache=Object.create(null);}_createClass(CachedCanvases,[{key:\"getCanvas\",value:function getCanvas(id,width,height){var canvasEntry;if(this.cache[id]!==undefined){canvasEntry=this.cache[id];this.canvasFactory.reset(canvasEntry,width,height);}else{canvasEntry=this.canvasFactory.create(width,height);this.cache[id]=canvasEntry;}return canvasEntry;}},{key:\"delete\",value:function _delete(id){delete this.cache[id];}},{key:\"clear\",value:function clear(){for(var id in this.cache){var canvasEntry=this.cache[id];this.canvasFactory.destroy(canvasEntry);delete this.cache[id];}}}]);return CachedCanvases;}();function drawImageAtIntegerCoords(ctx,srcImg,srcX,srcY,srcW,srcH,destX,destY,destW,destH){var _ref30=(0,_display_utils.getCurrentTransform)(ctx),_ref31=_slicedToArray(_ref30,6),a=_ref31[0],b=_ref31[1],c=_ref31[2],d=_ref31[3],tx=_ref31[4],ty=_ref31[5];if(b===0&&c===0){var tlX=destX*a+tx;var rTlX=Math.round(tlX);var tlY=destY*d+ty;var rTlY=Math.round(tlY);var brX=(destX+destW)*a+tx;var rWidth=Math.abs(Math.round(brX)-rTlX)||1;var brY=(destY+destH)*d+ty;var rHeight=Math.abs(Math.round(brY)-rTlY)||1;ctx.setTransform(_Math$sign(a),0,0,_Math$sign(d),rTlX,rTlY);ctx.drawImage(srcImg,srcX,srcY,srcW,srcH,0,0,rWidth,rHeight);ctx.setTransform(a,b,c,d,tx,ty);return[rWidth,rHeight];}if(a===0&&d===0){var _tlX=destY*c+tx;var _rTlX=Math.round(_tlX);var _tlY=destX*b+ty;var _rTlY=Math.round(_tlY);var _brX=(destY+destH)*c+tx;var _rWidth=Math.abs(Math.round(_brX)-_rTlX)||1;var _brY=(destX+destW)*b+ty;var _rHeight=Math.abs(Math.round(_brY)-_rTlY)||1;ctx.setTransform(0,_Math$sign(b),_Math$sign(c),0,_rTlX,_rTlY);ctx.drawImage(srcImg,srcX,srcY,srcW,srcH,0,0,_rHeight,_rWidth);ctx.setTransform(a,b,c,d,tx,ty);return[_rHeight,_rWidth];}ctx.drawImage(srcImg,srcX,srcY,srcW,srcH,destX,destY,destW,destH);var scaleX=_Math$hypot(a,b);var scaleY=_Math$hypot(c,d);return[scaleX*destW,scaleY*destH];}function compileType3Glyph(imgData){var width=imgData.width,height=imgData.height;if(width>MAX_SIZE_TO_COMPILE||height>MAX_SIZE_TO_COMPILE){return null;}var POINT_TO_PROCESS_LIMIT=1000;var POINT_TYPES=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]);var width1=width+1;var points=new Uint8Array(width1*(height+1));var i,j,j0;var lineSize=width+7&~7;var data=new Uint8Array(lineSize*height),pos=0;var _iterator50=_createForOfIteratorHelper(imgData.data),_step50;try{for(_iterator50.s();!(_step50=_iterator50.n()).done;){var elem=_step50.value;var mask=128;while(mask>0){data[pos++]=elem&mask?0:255;mask>>=1;}}}catch(err){_iterator50.e(err);}finally{_iterator50.f();}var count=0;pos=0;if(data[pos]!==0){points[0]=1;++count;}for(j=1;j<width;j++){if(data[pos]!==data[pos+1]){points[j]=data[pos]?2:1;++count;}pos++;}if(data[pos]!==0){points[j]=2;++count;}for(i=1;i<height;i++){pos=i*lineSize;j0=i*width1;if(data[pos-lineSize]!==data[pos]){points[j0]=data[pos]?1:8;++count;}var sum=(data[pos]?4:0)+(data[pos-lineSize]?8:0);for(j=1;j<width;j++){sum=(sum>>2)+(data[pos+1]?4:0)+(data[pos-lineSize+1]?8:0);if(POINT_TYPES[sum]){points[j0+j]=POINT_TYPES[sum];++count;}pos++;}if(data[pos-lineSize]!==data[pos]){points[j0+j]=data[pos]?2:4;++count;}if(count>POINT_TO_PROCESS_LIMIT){return null;}}pos=lineSize*(height-1);j0=i*width1;if(data[pos]!==0){points[j0]=8;++count;}for(j=1;j<width;j++){if(data[pos]!==data[pos+1]){points[j0+j]=data[pos]?4:8;++count;}pos++;}if(data[pos]!==0){points[j0+j]=4;++count;}if(count>POINT_TO_PROCESS_LIMIT){return null;}var steps=new Int32Array([0,width1,-1,0,-width1,0,0,0,1]);var path=new Path2D();for(i=0;count&&i<=height;i++){var p=i*width1;var end=p+width;while(p<end&&!points[p]){p++;}if(p===end){continue;}path.moveTo(p%width1,i);var p0=p;var type=points[p];do{var step=steps[type];do{p+=step;}while(!points[p]);var pp=points[p];if(pp!==5&&pp!==10){type=pp;points[p]=0;}else{type=pp&0x33*type>>4;points[p]&=type>>2|type<<2;}path.lineTo(p%width1,p/width1|0);if(!points[p]){--count;}}while(p0!==p);--i;}data=null;points=null;var drawOutline=function drawOutline(c){c.save();c.scale(1/width,-1/height);c.translate(0,-height);_fillInstanceProperty(c).call(c,path);c.beginPath();c.restore();};return drawOutline;}var CanvasExtraState=/*#__PURE__*/function(){function CanvasExtraState(width,height){_classCallCheck(this,CanvasExtraState);this.alphaIsShape=false;this.fontSize=0;this.fontSizeScale=1;this.textMatrix=_util.IDENTITY_MATRIX;this.textMatrixScale=1;this.fontMatrix=_util.FONT_IDENTITY_MATRIX;this.leading=0;this.x=0;this.y=0;this.lineX=0;this.lineY=0;this.charSpacing=0;this.wordSpacing=0;this.textHScale=1;this.textRenderingMode=_util.TextRenderingMode.FILL;this.textRise=0;this.fillColor=\"#000000\";this.strokeColor=\"#000000\";this.patternFill=false;this.fillAlpha=1;this.strokeAlpha=1;this.lineWidth=1;this.activeSMask=null;this.transferMaps=null;this.startNewPathAndClipBox([0,0,width,height]);}_createClass(CanvasExtraState,[{key:\"clone\",value:function clone(){var _context65;var clone=Object.create(this);clone.clipBox=_sliceInstanceProperty(_context65=this.clipBox).call(_context65);return clone;}},{key:\"setCurrentPoint\",value:function setCurrentPoint(x,y){this.x=x;this.y=y;}},{key:\"updatePathMinMax\",value:function updatePathMinMax(transform,x,y){var _util$Util$applyTrans=_util.Util.applyTransform([x,y],transform);var _util$Util$applyTrans2=_slicedToArray(_util$Util$applyTrans,2);x=_util$Util$applyTrans2[0];y=_util$Util$applyTrans2[1];this.minX=Math.min(this.minX,x);this.minY=Math.min(this.minY,y);this.maxX=Math.max(this.maxX,x);this.maxY=Math.max(this.maxY,y);}},{key:\"updateRectMinMax\",value:function updateRectMinMax(transform,rect){var p1=_util.Util.applyTransform(rect,transform);var p2=_util.Util.applyTransform(_sliceInstanceProperty(rect).call(rect,2),transform);this.minX=Math.min(this.minX,p1[0],p2[0]);this.minY=Math.min(this.minY,p1[1],p2[1]);this.maxX=Math.max(this.maxX,p1[0],p2[0]);this.maxY=Math.max(this.maxY,p1[1],p2[1]);}},{key:\"updateScalingPathMinMax\",value:function updateScalingPathMinMax(transform,minMax){_util.Util.scaleMinMax(transform,minMax);this.minX=Math.min(this.minX,minMax[0]);this.maxX=Math.max(this.maxX,minMax[1]);this.minY=Math.min(this.minY,minMax[2]);this.maxY=Math.max(this.maxY,minMax[3]);}},{key:\"updateCurvePathMinMax\",value:function updateCurvePathMinMax(transform,x0,y0,x1,y1,x2,y2,x3,y3,minMax){var box=_util.Util.bezierBoundingBox(x0,y0,x1,y1,x2,y2,x3,y3);if(minMax){minMax[0]=Math.min(minMax[0],box[0],box[2]);minMax[1]=Math.max(minMax[1],box[0],box[2]);minMax[2]=Math.min(minMax[2],box[1],box[3]);minMax[3]=Math.max(minMax[3],box[1],box[3]);return;}this.updateRectMinMax(transform,box);}},{key:\"getPathBoundingBox\",value:function getPathBoundingBox(){var pathType=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_pattern_helper.PathType.FILL;var transform=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var box=[this.minX,this.minY,this.maxX,this.maxY];if(pathType===_pattern_helper.PathType.STROKE){if(!transform){(0,_util.unreachable)(\"Stroke bounding box must include transform.\");}var scale=_util.Util.singularValueDecompose2dScale(transform);var xStrokePad=scale[0]*this.lineWidth/2;var yStrokePad=scale[1]*this.lineWidth/2;box[0]-=xStrokePad;box[1]-=yStrokePad;box[2]+=xStrokePad;box[3]+=yStrokePad;}return box;}},{key:\"updateClipFromPath\",value:function updateClipFromPath(){var intersect=_util.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(intersect||[0,0,0,0]);}},{key:\"isEmptyClip\",value:function isEmptyClip(){return this.minX===Infinity;}},{key:\"startNewPathAndClipBox\",value:function startNewPathAndClipBox(box){this.clipBox=box;this.minX=Infinity;this.minY=Infinity;this.maxX=0;this.maxY=0;}},{key:\"getClippedPathBoundingBox\",value:function getClippedPathBoundingBox(){var pathType=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_pattern_helper.PathType.FILL;var transform=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;return _util.Util.intersect(this.clipBox,this.getPathBoundingBox(pathType,transform));}}]);return CanvasExtraState;}();function putBinaryImageData(ctx,imgData){var transferMaps=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;if(typeof ImageData!==\"undefined\"&&imgData instanceof ImageData){ctx.putImageData(imgData,0,0);return;}var height=imgData.height,width=imgData.width;var partialChunkHeight=height%FULL_CHUNK_HEIGHT;var fullChunks=(height-partialChunkHeight)/FULL_CHUNK_HEIGHT;var totalChunks=partialChunkHeight===0?fullChunks:fullChunks+1;var chunkImgData=ctx.createImageData(width,FULL_CHUNK_HEIGHT);var srcPos=0,destPos;var src=imgData.data;var dest=chunkImgData.data;var i,j,thisChunkHeight,elemsInThisChunk;var transferMapRed,transferMapGreen,transferMapBlue,transferMapGray;if(transferMaps){switch(transferMaps.length){case 1:transferMapRed=transferMaps[0];transferMapGreen=transferMaps[0];transferMapBlue=transferMaps[0];transferMapGray=transferMaps[0];break;case 4:transferMapRed=transferMaps[0];transferMapGreen=transferMaps[1];transferMapBlue=transferMaps[2];transferMapGray=transferMaps[3];break;}}if(imgData.kind===_util.ImageKind.GRAYSCALE_1BPP){var srcLength=src.byteLength;var dest32=new Uint32Array(dest.buffer,0,dest.byteLength>>2);var dest32DataLength=dest32.length;var fullSrcDiff=width+7>>3;var white=0xffffffff;var black=_util.FeatureTest.isLittleEndian?0xff000000:0x000000ff;if(transferMapGray){if(transferMapGray[0]===0xff&&transferMapGray[0xff]===0){var _ref32=[black,white];white=_ref32[0];black=_ref32[1];}}for(i=0;i<totalChunks;i++){thisChunkHeight=i<fullChunks?FULL_CHUNK_HEIGHT:partialChunkHeight;destPos=0;for(j=0;j<thisChunkHeight;j++){var srcDiff=srcLength-srcPos;var k=0;var kEnd=srcDiff>fullSrcDiff?width:srcDiff*8-7;var kEndUnrolled=kEnd&~7;var mask=0;var srcByte=0;for(;k<kEndUnrolled;k+=8){srcByte=src[srcPos++];dest32[destPos++]=srcByte&128?white:black;dest32[destPos++]=srcByte&64?white:black;dest32[destPos++]=srcByte&32?white:black;dest32[destPos++]=srcByte&16?white:black;dest32[destPos++]=srcByte&8?white:black;dest32[destPos++]=srcByte&4?white:black;dest32[destPos++]=srcByte&2?white:black;dest32[destPos++]=srcByte&1?white:black;}for(;k<kEnd;k++){if(mask===0){srcByte=src[srcPos++];mask=128;}dest32[destPos++]=srcByte&mask?white:black;mask>>=1;}}while(destPos<dest32DataLength){dest32[destPos++]=0;}ctx.putImageData(chunkImgData,0,i*FULL_CHUNK_HEIGHT);}}else if(imgData.kind===_util.ImageKind.RGBA_32BPP){var hasTransferMaps=!!(transferMapRed||transferMapGreen||transferMapBlue);j=0;elemsInThisChunk=width*FULL_CHUNK_HEIGHT*4;for(i=0;i<fullChunks;i++){dest.set(src.subarray(srcPos,srcPos+elemsInThisChunk));srcPos+=elemsInThisChunk;if(hasTransferMaps){for(var _k=0;_k<elemsInThisChunk;_k+=4){if(transferMapRed){dest[_k+0]=transferMapRed[dest[_k+0]];}if(transferMapGreen){dest[_k+1]=transferMapGreen[dest[_k+1]];}if(transferMapBlue){dest[_k+2]=transferMapBlue[dest[_k+2]];}}}ctx.putImageData(chunkImgData,0,j);j+=FULL_CHUNK_HEIGHT;}if(i<totalChunks){elemsInThisChunk=width*partialChunkHeight*4;dest.set(src.subarray(srcPos,srcPos+elemsInThisChunk));if(hasTransferMaps){for(var _k2=0;_k2<elemsInThisChunk;_k2+=4){if(transferMapRed){dest[_k2+0]=transferMapRed[dest[_k2+0]];}if(transferMapGreen){dest[_k2+1]=transferMapGreen[dest[_k2+1]];}if(transferMapBlue){dest[_k2+2]=transferMapBlue[dest[_k2+2]];}}}ctx.putImageData(chunkImgData,0,j);}}else if(imgData.kind===_util.ImageKind.RGB_24BPP){var _hasTransferMaps=!!(transferMapRed||transferMapGreen||transferMapBlue);thisChunkHeight=FULL_CHUNK_HEIGHT;elemsInThisChunk=width*thisChunkHeight;for(i=0;i<totalChunks;i++){if(i>=fullChunks){thisChunkHeight=partialChunkHeight;elemsInThisChunk=width*thisChunkHeight;}destPos=0;for(j=elemsInThisChunk;j--;){dest[destPos++]=src[srcPos++];dest[destPos++]=src[srcPos++];dest[destPos++]=src[srcPos++];dest[destPos++]=255;}if(_hasTransferMaps){for(var _k3=0;_k3<destPos;_k3+=4){if(transferMapRed){dest[_k3+0]=transferMapRed[dest[_k3+0]];}if(transferMapGreen){dest[_k3+1]=transferMapGreen[dest[_k3+1]];}if(transferMapBlue){dest[_k3+2]=transferMapBlue[dest[_k3+2]];}}}ctx.putImageData(chunkImgData,0,i*FULL_CHUNK_HEIGHT);}}else{throw new Error(\"bad image kind: \".concat(imgData.kind));}}function putBinaryImageMask(ctx,imgData){if(imgData.bitmap){ctx.drawImage(imgData.bitmap,0,0);return;}var height=imgData.height,width=imgData.width;var partialChunkHeight=height%FULL_CHUNK_HEIGHT;var fullChunks=(height-partialChunkHeight)/FULL_CHUNK_HEIGHT;var totalChunks=partialChunkHeight===0?fullChunks:fullChunks+1;var chunkImgData=ctx.createImageData(width,FULL_CHUNK_HEIGHT);var srcPos=0;var src=imgData.data;var dest=chunkImgData.data;for(var i=0;i<totalChunks;i++){var thisChunkHeight=i<fullChunks?FULL_CHUNK_HEIGHT:partialChunkHeight;var _ref33=(0,_image_utils.applyMaskImageData)({src:src,srcPos:srcPos,dest:dest,width:width,height:thisChunkHeight});srcPos=_ref33.srcPos;ctx.putImageData(chunkImgData,0,i*FULL_CHUNK_HEIGHT);}}function copyCtxState(sourceCtx,destCtx){var properties=[\"strokeStyle\",\"fillStyle\",\"fillRule\",\"globalAlpha\",\"lineWidth\",\"lineCap\",\"lineJoin\",\"miterLimit\",\"globalCompositeOperation\",\"font\"];for(var i=0,ii=properties.length;i<ii;i++){var property=properties[i];if(sourceCtx[property]!==undefined){destCtx[property]=sourceCtx[property];}}if(sourceCtx.setLineDash!==undefined){destCtx.setLineDash(sourceCtx.getLineDash());destCtx.lineDashOffset=sourceCtx.lineDashOffset;}}function resetCtxToDefault(ctx,foregroundColor){ctx.strokeStyle=ctx.fillStyle=foregroundColor||\"#000000\";ctx.fillRule=\"nonzero\";ctx.globalAlpha=1;ctx.lineWidth=1;ctx.lineCap=\"butt\";ctx.lineJoin=\"miter\";ctx.miterLimit=10;ctx.globalCompositeOperation=\"source-over\";ctx.font=\"10px sans-serif\";if(ctx.setLineDash!==undefined){ctx.setLineDash([]);ctx.lineDashOffset=0;}}function composeSMaskBackdrop(bytes,r0,g0,b0){var length=bytes.length;for(var i=3;i<length;i+=4){var alpha=bytes[i];if(alpha===0){bytes[i-3]=r0;bytes[i-2]=g0;bytes[i-1]=b0;}else if(alpha<255){var alpha_=255-alpha;bytes[i-3]=bytes[i-3]*alpha+r0*alpha_>>8;bytes[i-2]=bytes[i-2]*alpha+g0*alpha_>>8;bytes[i-1]=bytes[i-1]*alpha+b0*alpha_>>8;}}}function composeSMaskAlpha(maskData,layerData,transferMap){var length=maskData.length;var scale=1/255;for(var i=3;i<length;i+=4){var alpha=transferMap?transferMap[maskData[i]]:maskData[i];layerData[i]=layerData[i]*alpha*scale|0;}}function composeSMaskLuminosity(maskData,layerData,transferMap){var length=maskData.length;for(var i=3;i<length;i+=4){var y=maskData[i-3]*77+maskData[i-2]*152+maskData[i-1]*28;layerData[i]=transferMap?layerData[i]*transferMap[y>>8]>>8:layerData[i]*y>>16;}}function genericComposeSMask(maskCtx,layerCtx,width,height,subtype,backdrop,transferMap,layerOffsetX,layerOffsetY,maskOffsetX,maskOffsetY){var hasBackdrop=!!backdrop;var r0=hasBackdrop?backdrop[0]:0;var g0=hasBackdrop?backdrop[1]:0;var b0=hasBackdrop?backdrop[2]:0;var composeFn;if(subtype===\"Luminosity\"){composeFn=composeSMaskLuminosity;}else{composeFn=composeSMaskAlpha;}var PIXELS_TO_PROCESS=1048576;var chunkSize=Math.min(height,Math.ceil(PIXELS_TO_PROCESS/width));for(var row=0;row<height;row+=chunkSize){var chunkHeight=Math.min(chunkSize,height-row);var maskData=maskCtx.getImageData(layerOffsetX-maskOffsetX,row+(layerOffsetY-maskOffsetY),width,chunkHeight);var layerData=layerCtx.getImageData(layerOffsetX,row+layerOffsetY,width,chunkHeight);if(hasBackdrop){composeSMaskBackdrop(maskData.data,r0,g0,b0);}composeFn(maskData.data,layerData.data,transferMap);layerCtx.putImageData(layerData,layerOffsetX,row+layerOffsetY);}}function composeSMask(ctx,smask,layerCtx,layerBox){var layerOffsetX=layerBox[0];var layerOffsetY=layerBox[1];var layerWidth=layerBox[2]-layerOffsetX;var layerHeight=layerBox[3]-layerOffsetY;if(layerWidth===0||layerHeight===0){return;}genericComposeSMask(smask.context,layerCtx,layerWidth,layerHeight,smask.subtype,smask.backdrop,smask.transferMap,layerOffsetX,layerOffsetY,smask.offsetX,smask.offsetY);ctx.save();ctx.globalAlpha=1;ctx.globalCompositeOperation=\"source-over\";ctx.setTransform(1,0,0,1,0,0);ctx.drawImage(layerCtx.canvas,0,0);ctx.restore();}function getImageSmoothingEnabled(transform,interpolate){var scale=_util.Util.singularValueDecompose2dScale(transform);scale[0]=_Math$fround(scale[0]);scale[1]=_Math$fround(scale[1]);var actualScale=_Math$fround((_globalThis.devicePixelRatio||1)*_display_utils.PixelsPerInch.PDF_TO_CSS_UNITS);if(interpolate!==undefined){return interpolate;}else if(scale[0]<=actualScale||scale[1]<=actualScale){return true;}return false;}var LINE_CAP_STYLES=[\"butt\",\"round\",\"square\"];var LINE_JOIN_STYLES=[\"miter\",\"round\",\"bevel\"];var NORMAL_CLIP={};var EO_CLIP={};var _restoreInitialState=/*#__PURE__*/new _WeakSet();var CanvasGraphics=/*#__PURE__*/function(){function CanvasGraphics(canvasCtx,commonObjs,objs,canvasFactory,imageLayer,optionalContentConfig,annotationCanvasMap,pageColors){_classCallCheck(this,CanvasGraphics);_classPrivateMethodInitSpec(this,_restoreInitialState);this.ctx=canvasCtx;this.current=new CanvasExtraState(this.ctx.canvas.width,this.ctx.canvas.height);this.stateStack=[];this.pendingClip=null;this.pendingEOFill=false;this.res=null;this.xobjs=null;this.commonObjs=commonObjs;this.objs=objs;this.canvasFactory=canvasFactory;this.imageLayer=imageLayer;this.groupStack=[];this.processingType3=null;this.baseTransform=null;this.baseTransformStack=[];this.groupLevel=0;this.smaskStack=[];this.smaskCounter=0;this.tempSMask=null;this.suspendedCtx=null;this.contentVisible=true;this.markedContentStack=[];this.optionalContentConfig=optionalContentConfig;this.cachedCanvases=new CachedCanvases(this.canvasFactory);this.cachedPatterns=new _Map();this.annotationCanvasMap=annotationCanvasMap;this.viewportScale=1;this.outputScaleX=1;this.outputScaleY=1;this.backgroundColor=(pageColors===null||pageColors===void 0?void 0:pageColors.background)||null;this.foregroundColor=(pageColors===null||pageColors===void 0?void 0:pageColors.foreground)||null;this._cachedScaleForStroking=null;this._cachedGetSinglePixelWidth=null;this._cachedBitmapsMap=new _Map();}_createClass(CanvasGraphics,[{key:\"getObject\",value:function getObject(data){var fallback=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(typeof data===\"string\"){return _startsWithInstanceProperty(data).call(data,\"g_\")?this.commonObjs.get(data):this.objs.get(data);}return fallback;}},{key:\"beginDrawing\",value:function beginDrawing(_ref){var _this$ctx3;var transform=_ref.transform,viewport=_ref.viewport,_ref$transparency=_ref.transparency,transparency=_ref$transparency===void 0?false:_ref$transparency,_ref$background=_ref.background,background=_ref$background===void 0?null:_ref$background;var width=this.ctx.canvas.width;var height=this.ctx.canvas.height;var defaultBackgroundColor=background||\"#ffffff\";this.ctx.save();if(this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;var fg=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;var bg=this.backgroundColor=this.ctx.fillStyle;var isValidDefaultBg=true;var defaultBg=defaultBackgroundColor;this.ctx.fillStyle=defaultBackgroundColor;defaultBg=this.ctx.fillStyle;isValidDefaultBg=typeof defaultBg===\"string\"&&/^#[0-9A-Fa-f]{6}$/.test(defaultBg);if(fg===\"#000000\"&&bg===\"#ffffff\"||fg===bg||!isValidDefaultBg){this.foregroundColor=this.backgroundColor=null;}else{var _ref34=(0,_display_utils.getRGB)(defaultBg),_ref35=_slicedToArray(_ref34,3),rB=_ref35[0],gB=_ref35[1],bB=_ref35[2];var newComp=function newComp(x){x/=255;return x<=0.03928?x/12.92:Math.pow((x+0.055)/1.055,2.4);};var lumB=Math.round(0.2126*newComp(rB)+0.7152*newComp(gB)+0.0722*newComp(bB));this.selectColor=function(r,g,b){var lumC=0.2126*newComp(r)+0.7152*newComp(g)+0.0722*newComp(b);return Math.round(lumC)===lumB?bg:fg;};}}this.ctx.fillStyle=this.backgroundColor||defaultBackgroundColor;this.ctx.fillRect(0,0,width,height);this.ctx.restore();if(transparency){var _this$ctx;var transparentCanvas=this.cachedCanvases.getCanvas(\"transparent\",width,height);this.compositeCtx=this.ctx;this.transparentCanvas=transparentCanvas.canvas;this.ctx=transparentCanvas.context;this.ctx.save();(_this$ctx=this.ctx).transform.apply(_this$ctx,_toConsumableArray((0,_display_utils.getCurrentTransform)(this.compositeCtx)));}this.ctx.save();resetCtxToDefault(this.ctx,this.foregroundColor);if(transform){var _this$ctx2;(_this$ctx2=this.ctx).transform.apply(_this$ctx2,_toConsumableArray(transform));this.outputScaleX=transform[0];this.outputScaleY=transform[0];}(_this$ctx3=this.ctx).transform.apply(_this$ctx3,_toConsumableArray(viewport.transform));this.viewportScale=viewport.scale;this.baseTransform=(0,_display_utils.getCurrentTransform)(this.ctx);if(this.imageLayer){(0,_display_utils.deprecated)(\"The `imageLayer` functionality will be removed in the future.\");this.imageLayer.beginLayout();}}},{key:\"executeOperatorList\",value:function executeOperatorList(operatorList,executionStartIdx,continueCallback,stepper){var argsArray=operatorList.argsArray;var fnArray=operatorList.fnArray;var i=executionStartIdx||0;var argsArrayLen=argsArray.length;if(argsArrayLen===i){return i;}var chunkOperations=argsArrayLen-i>EXECUTION_STEPS&&typeof continueCallback===\"function\";var endTime=chunkOperations?Date.now()+EXECUTION_TIME:0;var steps=0;var commonObjs=this.commonObjs;var objs=this.objs;var fnId;while(true){if(stepper!==undefined&&i===stepper.nextBreakPoint){stepper.breakIt(i,continueCallback);return i;}fnId=fnArray[i];if(fnId!==_util.OPS.dependency){this[fnId].apply(this,argsArray[i]);}else{var _iterator51=_createForOfIteratorHelper(argsArray[i]),_step51;try{for(_iterator51.s();!(_step51=_iterator51.n()).done;){var depObjId=_step51.value;var objsPool=_startsWithInstanceProperty(depObjId).call(depObjId,\"g_\")?commonObjs:objs;if(!objsPool.has(depObjId)){objsPool.get(depObjId,continueCallback);return i;}}}catch(err){_iterator51.e(err);}finally{_iterator51.f();}}i++;if(i===argsArrayLen){return i;}if(chunkOperations&&++steps>EXECUTION_STEPS){if(Date.now()>endTime){continueCallback();return i;}steps=0;}}}},{key:\"endDrawing\",value:function endDrawing(){var _context66;_classPrivateMethodGet(this,_restoreInitialState,_restoreInitialState2).call(this);this.cachedCanvases.clear();this.cachedPatterns.clear();var _iterator52=_createForOfIteratorHelper(_valuesInstanceProperty(_context66=this._cachedBitmapsMap).call(_context66)),_step52;try{for(_iterator52.s();!(_step52=_iterator52.n()).done;){var cache=_step52.value;var _iterator53=_createForOfIteratorHelper(_valuesInstanceProperty(cache).call(cache)),_step53;try{for(_iterator53.s();!(_step53=_iterator53.n()).done;){var canvas=_step53.value;if(typeof HTMLCanvasElement!==\"undefined\"&&canvas instanceof HTMLCanvasElement){canvas.width=canvas.height=0;}}}catch(err){_iterator53.e(err);}finally{_iterator53.f();}cache.clear();}}catch(err){_iterator52.e(err);}finally{_iterator52.f();}this._cachedBitmapsMap.clear();if(this.imageLayer){this.imageLayer.endLayout();}}},{key:\"_scaleImage\",value:function _scaleImage(img,inverseTransform){var width=img.width;var height=img.height;var widthScale=Math.max(_Math$hypot(inverseTransform[0],inverseTransform[1]),1);var heightScale=Math.max(_Math$hypot(inverseTransform[2],inverseTransform[3]),1);var paintWidth=width,paintHeight=height;var tmpCanvasId=\"prescale1\";var tmpCanvas,tmpCtx;while(widthScale>2&&paintWidth>1||heightScale>2&&paintHeight>1){var newWidth=paintWidth,newHeight=paintHeight;if(widthScale>2&&paintWidth>1){newWidth=Math.ceil(paintWidth/2);widthScale/=paintWidth/newWidth;}if(heightScale>2&&paintHeight>1){newHeight=Math.ceil(paintHeight/2);heightScale/=paintHeight/newHeight;}tmpCanvas=this.cachedCanvases.getCanvas(tmpCanvasId,newWidth,newHeight);tmpCtx=tmpCanvas.context;tmpCtx.clearRect(0,0,newWidth,newHeight);tmpCtx.drawImage(img,0,0,paintWidth,paintHeight,0,0,newWidth,newHeight);img=tmpCanvas.canvas;paintWidth=newWidth;paintHeight=newHeight;tmpCanvasId=tmpCanvasId===\"prescale1\"?\"prescale2\":\"prescale1\";}return{img:img,paintWidth:paintWidth,paintHeight:paintHeight};}},{key:\"_createMaskCanvas\",value:function _createMaskCanvas(img){var ctx=this.ctx;var width=img.width,height=img.height;var fillColor=this.current.fillColor;var isPatternFill=this.current.patternFill;var currentTransform=(0,_display_utils.getCurrentTransform)(ctx);var cache,cacheKey,scaled,maskCanvas;if((img.bitmap||img.data)&&img.count>1){var mainKey=img.bitmap||img.data.buffer;var withoutTranslation=_sliceInstanceProperty(currentTransform).call(currentTransform,0,4);cacheKey=_JSON$stringify(isPatternFill?withoutTranslation:[withoutTranslation,fillColor]);cache=this._cachedBitmapsMap.get(mainKey);if(!cache){cache=new _Map();this._cachedBitmapsMap.set(mainKey,cache);}var cachedImage=cache.get(cacheKey);if(cachedImage&&!isPatternFill){var _offsetX=Math.round(Math.min(currentTransform[0],currentTransform[2])+currentTransform[4]);var _offsetY=Math.round(Math.min(currentTransform[1],currentTransform[3])+currentTransform[5]);return{canvas:cachedImage,offsetX:_offsetX,offsetY:_offsetY};}scaled=cachedImage;}if(!scaled){maskCanvas=this.cachedCanvases.getCanvas(\"maskCanvas\",width,height);putBinaryImageMask(maskCanvas.context,img);}var maskToCanvas=_util.Util.transform(currentTransform,[1/width,0,0,-1/height,0,0]);maskToCanvas=_util.Util.transform(maskToCanvas,[1,0,0,1,0,-height]);var cord1=_util.Util.applyTransform([0,0],maskToCanvas);var cord2=_util.Util.applyTransform([width,height],maskToCanvas);var rect=_util.Util.normalizeRect([cord1[0],cord1[1],cord2[0],cord2[1]]);var drawnWidth=Math.round(rect[2]-rect[0])||1;var drawnHeight=Math.round(rect[3]-rect[1])||1;var fillCanvas=this.cachedCanvases.getCanvas(\"fillCanvas\",drawnWidth,drawnHeight);var fillCtx=fillCanvas.context;var offsetX=Math.min(cord1[0],cord2[0]);var offsetY=Math.min(cord1[1],cord2[1]);fillCtx.translate(-offsetX,-offsetY);fillCtx.transform.apply(fillCtx,_toConsumableArray(maskToCanvas));if(!scaled){scaled=this._scaleImage(maskCanvas.canvas,(0,_display_utils.getCurrentTransformInverse)(fillCtx));scaled=scaled.img;if(cache&&isPatternFill){cache.set(cacheKey,scaled);}}fillCtx.imageSmoothingEnabled=getImageSmoothingEnabled((0,_display_utils.getCurrentTransform)(fillCtx),img.interpolate);drawImageAtIntegerCoords(fillCtx,scaled,0,0,scaled.width,scaled.height,0,0,width,height);fillCtx.globalCompositeOperation=\"source-in\";var inverse=_util.Util.transform((0,_display_utils.getCurrentTransformInverse)(fillCtx),[1,0,0,1,-offsetX,-offsetY]);fillCtx.fillStyle=isPatternFill?fillColor.getPattern(ctx,this,inverse,_pattern_helper.PathType.FILL):fillColor;fillCtx.fillRect(0,0,width,height);if(cache&&!isPatternFill){this.cachedCanvases.delete(\"fillCanvas\");cache.set(cacheKey,fillCanvas.canvas);}return{canvas:fillCanvas.canvas,offsetX:Math.round(offsetX),offsetY:Math.round(offsetY)};}},{key:\"setLineWidth\",value:function setLineWidth(width){if(width!==this.current.lineWidth){this._cachedScaleForStroking=null;}this.current.lineWidth=width;this.ctx.lineWidth=width;}},{key:\"setLineCap\",value:function setLineCap(style){this.ctx.lineCap=LINE_CAP_STYLES[style];}},{key:\"setLineJoin\",value:function setLineJoin(style){this.ctx.lineJoin=LINE_JOIN_STYLES[style];}},{key:\"setMiterLimit\",value:function setMiterLimit(limit){this.ctx.miterLimit=limit;}},{key:\"setDash\",value:function setDash(dashArray,dashPhase){var ctx=this.ctx;if(ctx.setLineDash!==undefined){ctx.setLineDash(dashArray);ctx.lineDashOffset=dashPhase;}}},{key:\"setRenderingIntent\",value:function setRenderingIntent(intent){}},{key:\"setFlatness\",value:function setFlatness(flatness){}},{key:\"setGState\",value:function setGState(states){for(var i=0,ii=states.length;i<ii;i++){var state=states[i];var key=state[0];var value=state[1];switch(key){case\"LW\":this.setLineWidth(value);break;case\"LC\":this.setLineCap(value);break;case\"LJ\":this.setLineJoin(value);break;case\"ML\":this.setMiterLimit(value);break;case\"D\":this.setDash(value[0],value[1]);break;case\"RI\":this.setRenderingIntent(value);break;case\"FL\":this.setFlatness(value);break;case\"Font\":this.setFont(value[0],value[1]);break;case\"CA\":this.current.strokeAlpha=state[1];break;case\"ca\":this.current.fillAlpha=state[1];this.ctx.globalAlpha=state[1];break;case\"BM\":this.ctx.globalCompositeOperation=value;break;case\"SMask\":this.current.activeSMask=value?this.tempSMask:null;this.tempSMask=null;this.checkSMaskState();break;case\"TR\":this.current.transferMaps=value;}}}},{key:\"inSMaskMode\",get:function get(){return!!this.suspendedCtx;}},{key:\"checkSMaskState\",value:function checkSMaskState(){var inSMaskMode=this.inSMaskMode;if(this.current.activeSMask&&!inSMaskMode){this.beginSMaskMode();}else if(!this.current.activeSMask&&inSMaskMode){this.endSMaskMode();}}},{key:\"beginSMaskMode\",value:function beginSMaskMode(){if(this.inSMaskMode){throw new Error(\"beginSMaskMode called while already in smask mode\");}var drawnWidth=this.ctx.canvas.width;var drawnHeight=this.ctx.canvas.height;var cacheId=\"smaskGroupAt\"+this.groupLevel;var scratchCanvas=this.cachedCanvases.getCanvas(cacheId,drawnWidth,drawnHeight);this.suspendedCtx=this.ctx;this.ctx=scratchCanvas.context;var ctx=this.ctx;ctx.setTransform.apply(ctx,_toConsumableArray((0,_display_utils.getCurrentTransform)(this.suspendedCtx)));copyCtxState(this.suspendedCtx,ctx);mirrorContextOperations(ctx,this.suspendedCtx);this.setGState([[\"BM\",\"source-over\"],[\"ca\",1],[\"CA\",1]]);}},{key:\"endSMaskMode\",value:function endSMaskMode(){if(!this.inSMaskMode){throw new Error(\"endSMaskMode called while not in smask mode\");}this.ctx._removeMirroring();copyCtxState(this.ctx,this.suspendedCtx);this.ctx=this.suspendedCtx;this.suspendedCtx=null;}},{key:\"compose\",value:function compose(dirtyBox){if(!this.current.activeSMask){return;}if(!dirtyBox){dirtyBox=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];}else{dirtyBox[0]=Math.floor(dirtyBox[0]);dirtyBox[1]=Math.floor(dirtyBox[1]);dirtyBox[2]=Math.ceil(dirtyBox[2]);dirtyBox[3]=Math.ceil(dirtyBox[3]);}var smask=this.current.activeSMask;var suspendedCtx=this.suspendedCtx;composeSMask(suspendedCtx,smask,this.ctx,dirtyBox);this.ctx.save();this.ctx.setTransform(1,0,0,1,0,0);this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height);this.ctx.restore();}},{key:\"save\",value:function save(){if(this.inSMaskMode){copyCtxState(this.ctx,this.suspendedCtx);this.suspendedCtx.save();}else{this.ctx.save();}var old=this.current;this.stateStack.push(old);this.current=old.clone();}},{key:\"restore\",value:function restore(){if(this.stateStack.length===0&&this.inSMaskMode){this.endSMaskMode();}if(this.stateStack.length!==0){this.current=this.stateStack.pop();if(this.inSMaskMode){this.suspendedCtx.restore();copyCtxState(this.suspendedCtx,this.ctx);}else{this.ctx.restore();}this.checkSMaskState();this.pendingClip=null;this._cachedScaleForStroking=null;this._cachedGetSinglePixelWidth=null;}}},{key:\"transform\",value:function transform(a,b,c,d,e,f){this.ctx.transform(a,b,c,d,e,f);this._cachedScaleForStroking=null;this._cachedGetSinglePixelWidth=null;}},{key:\"constructPath\",value:function constructPath(ops,args,minMax){var ctx=this.ctx;var current=this.current;var x=current.x,y=current.y;var startX,startY;var currentTransform=(0,_display_utils.getCurrentTransform)(ctx);var isScalingMatrix=currentTransform[0]===0&&currentTransform[3]===0||currentTransform[1]===0&&currentTransform[2]===0;var minMaxForBezier=isScalingMatrix?_sliceInstanceProperty(minMax).call(minMax,0):null;for(var i=0,j=0,ii=ops.length;i<ii;i++){switch(ops[i]|0){case _util.OPS.rectangle:x=args[j++];y=args[j++];var width=args[j++];var height=args[j++];var xw=x+width;var yh=y+height;ctx.moveTo(x,y);if(width===0||height===0){ctx.lineTo(xw,yh);}else{ctx.lineTo(xw,y);ctx.lineTo(xw,yh);ctx.lineTo(x,yh);}if(!isScalingMatrix){current.updateRectMinMax(currentTransform,[x,y,xw,yh]);}ctx.closePath();break;case _util.OPS.moveTo:x=args[j++];y=args[j++];ctx.moveTo(x,y);if(!isScalingMatrix){current.updatePathMinMax(currentTransform,x,y);}break;case _util.OPS.lineTo:x=args[j++];y=args[j++];ctx.lineTo(x,y);if(!isScalingMatrix){current.updatePathMinMax(currentTransform,x,y);}break;case _util.OPS.curveTo:startX=x;startY=y;x=args[j+4];y=args[j+5];ctx.bezierCurveTo(args[j],args[j+1],args[j+2],args[j+3],x,y);current.updateCurvePathMinMax(currentTransform,startX,startY,args[j],args[j+1],args[j+2],args[j+3],x,y,minMaxForBezier);j+=6;break;case _util.OPS.curveTo2:startX=x;startY=y;ctx.bezierCurveTo(x,y,args[j],args[j+1],args[j+2],args[j+3]);current.updateCurvePathMinMax(currentTransform,startX,startY,x,y,args[j],args[j+1],args[j+2],args[j+3],minMaxForBezier);x=args[j+2];y=args[j+3];j+=4;break;case _util.OPS.curveTo3:startX=x;startY=y;x=args[j+2];y=args[j+3];ctx.bezierCurveTo(args[j],args[j+1],x,y,x,y);current.updateCurvePathMinMax(currentTransform,startX,startY,args[j],args[j+1],x,y,x,y,minMaxForBezier);j+=4;break;case _util.OPS.closePath:ctx.closePath();break;}}if(isScalingMatrix){current.updateScalingPathMinMax(currentTransform,minMaxForBezier);}current.setCurrentPoint(x,y);}},{key:\"closePath\",value:function closePath(){this.ctx.closePath();}},{key:\"stroke\",value:function stroke(consumePath){consumePath=typeof consumePath!==\"undefined\"?consumePath:true;var ctx=this.ctx;var strokeColor=this.current.strokeColor;ctx.globalAlpha=this.current.strokeAlpha;if(this.contentVisible){if(_typeof(strokeColor)===\"object\"&&strokeColor!==null&&strokeColor!==void 0&&strokeColor.getPattern){ctx.save();ctx.strokeStyle=strokeColor.getPattern(ctx,this,(0,_display_utils.getCurrentTransformInverse)(ctx),_pattern_helper.PathType.STROKE);this.rescaleAndStroke(false);ctx.restore();}else{this.rescaleAndStroke(true);}}if(consumePath){this.consumePath(this.current.getClippedPathBoundingBox());}ctx.globalAlpha=this.current.fillAlpha;}},{key:\"closeStroke\",value:function closeStroke(){this.closePath();this.stroke();}},{key:\"fill\",value:function fill(consumePath){consumePath=typeof consumePath!==\"undefined\"?consumePath:true;var ctx=this.ctx;var fillColor=this.current.fillColor;var isPatternFill=this.current.patternFill;var needRestore=false;if(isPatternFill){ctx.save();ctx.fillStyle=fillColor.getPattern(ctx,this,(0,_display_utils.getCurrentTransformInverse)(ctx),_pattern_helper.PathType.FILL);needRestore=true;}var intersect=this.current.getClippedPathBoundingBox();if(this.contentVisible&&intersect!==null){if(this.pendingEOFill){_fillInstanceProperty(ctx).call(ctx,\"evenodd\");this.pendingEOFill=false;}else{_fillInstanceProperty(ctx).call(ctx);}}if(needRestore){ctx.restore();}if(consumePath){this.consumePath(intersect);}}},{key:\"eoFill\",value:function eoFill(){var _context67;this.pendingEOFill=true;_fillInstanceProperty(_context67=this).call(_context67);}},{key:\"fillStroke\",value:function fillStroke(){var _context68;_fillInstanceProperty(_context68=this).call(_context68,false);this.stroke(false);this.consumePath();}},{key:\"eoFillStroke\",value:function eoFillStroke(){this.pendingEOFill=true;this.fillStroke();}},{key:\"closeFillStroke\",value:function closeFillStroke(){this.closePath();this.fillStroke();}},{key:\"closeEOFillStroke\",value:function closeEOFillStroke(){this.pendingEOFill=true;this.closePath();this.fillStroke();}},{key:\"endPath\",value:function endPath(){this.consumePath();}},{key:\"clip\",value:function clip(){this.pendingClip=NORMAL_CLIP;}},{key:\"eoClip\",value:function eoClip(){this.pendingClip=EO_CLIP;}},{key:\"beginText\",value:function beginText(){this.current.textMatrix=_util.IDENTITY_MATRIX;this.current.textMatrixScale=1;this.current.x=this.current.lineX=0;this.current.y=this.current.lineY=0;}},{key:\"endText\",value:function endText(){var paths=this.pendingTextPaths;var ctx=this.ctx;if(paths===undefined){ctx.beginPath();return;}ctx.save();ctx.beginPath();var _iterator54=_createForOfIteratorHelper(paths),_step54;try{for(_iterator54.s();!(_step54=_iterator54.n()).done;){var path=_step54.value;ctx.setTransform.apply(ctx,_toConsumableArray(path.transform));ctx.translate(path.x,path.y);path.addToPath(ctx,path.fontSize);}}catch(err){_iterator54.e(err);}finally{_iterator54.f();}ctx.restore();ctx.clip();ctx.beginPath();delete this.pendingTextPaths;}},{key:\"setCharSpacing\",value:function setCharSpacing(spacing){this.current.charSpacing=spacing;}},{key:\"setWordSpacing\",value:function setWordSpacing(spacing){this.current.wordSpacing=spacing;}},{key:\"setHScale\",value:function setHScale(scale){this.current.textHScale=scale/100;}},{key:\"setLeading\",value:function setLeading(leading){this.current.leading=-leading;}},{key:\"setFont\",value:function setFont(fontRefName,size){var _context69,_context70,_context71,_context72;var fontObj=this.commonObjs.get(fontRefName);var current=this.current;if(!fontObj){throw new Error(\"Can't find font for \".concat(fontRefName));}current.fontMatrix=fontObj.fontMatrix||_util.FONT_IDENTITY_MATRIX;if(current.fontMatrix[0]===0||current.fontMatrix[3]===0){(0,_util.warn)(\"Invalid font matrix for font \"+fontRefName);}if(size<0){size=-size;current.fontDirection=-1;}else{current.fontDirection=1;}this.current.font=fontObj;this.current.fontSize=size;if(fontObj.isType3Font){return;}var name=fontObj.loadedName||\"sans-serif\";var bold=\"normal\";if(fontObj.black){bold=\"900\";}else if(fontObj.bold){bold=\"bold\";}var italic=fontObj.italic?\"italic\":\"normal\";var typeface=_concatInstanceProperty(_context69=\"\\\"\".concat(name,\"\\\", \")).call(_context69,fontObj.fallbackName);var browserFontSize=size;if(size<MIN_FONT_SIZE){browserFontSize=MIN_FONT_SIZE;}else if(size>MAX_FONT_SIZE){browserFontSize=MAX_FONT_SIZE;}this.current.fontSizeScale=size/browserFontSize;this.ctx.font=_concatInstanceProperty(_context70=_concatInstanceProperty(_context71=_concatInstanceProperty(_context72=\"\".concat(italic,\" \")).call(_context72,bold,\" \")).call(_context71,browserFontSize,\"px \")).call(_context70,typeface);}},{key:\"setTextRenderingMode\",value:function setTextRenderingMode(mode){this.current.textRenderingMode=mode;}},{key:\"setTextRise\",value:function setTextRise(rise){this.current.textRise=rise;}},{key:\"moveText\",value:function moveText(x,y){this.current.x=this.current.lineX+=x;this.current.y=this.current.lineY+=y;}},{key:\"setLeadingMoveText\",value:function setLeadingMoveText(x,y){this.setLeading(-y);this.moveText(x,y);}},{key:\"setTextMatrix\",value:function setTextMatrix(a,b,c,d,e,f){this.current.textMatrix=[a,b,c,d,e,f];this.current.textMatrixScale=_Math$hypot(a,b);this.current.x=this.current.lineX=0;this.current.y=this.current.lineY=0;}},{key:\"nextLine\",value:function nextLine(){this.moveText(0,this.current.leading);}},{key:\"paintChar\",value:function paintChar(character,x,y,patternTransform){var ctx=this.ctx;var current=this.current;var font=current.font;var textRenderingMode=current.textRenderingMode;var fontSize=current.fontSize/current.fontSizeScale;var fillStrokeMode=textRenderingMode&_util.TextRenderingMode.FILL_STROKE_MASK;var isAddToPathSet=!!(textRenderingMode&_util.TextRenderingMode.ADD_TO_PATH_FLAG);var patternFill=current.patternFill&&!font.missingFile;var addToPath;if(font.disableFontFace||isAddToPathSet||patternFill){addToPath=font.getPathGenerator(this.commonObjs,character);}if(font.disableFontFace||patternFill){ctx.save();ctx.translate(x,y);ctx.beginPath();addToPath(ctx,fontSize);if(patternTransform){ctx.setTransform.apply(ctx,_toConsumableArray(patternTransform));}if(fillStrokeMode===_util.TextRenderingMode.FILL||fillStrokeMode===_util.TextRenderingMode.FILL_STROKE){_fillInstanceProperty(ctx).call(ctx);}if(fillStrokeMode===_util.TextRenderingMode.STROKE||fillStrokeMode===_util.TextRenderingMode.FILL_STROKE){ctx.stroke();}ctx.restore();}else{if(fillStrokeMode===_util.TextRenderingMode.FILL||fillStrokeMode===_util.TextRenderingMode.FILL_STROKE){ctx.fillText(character,x,y);}if(fillStrokeMode===_util.TextRenderingMode.STROKE||fillStrokeMode===_util.TextRenderingMode.FILL_STROKE){ctx.strokeText(character,x,y);}}if(isAddToPathSet){var paths=this.pendingTextPaths||(this.pendingTextPaths=[]);paths.push({transform:(0,_display_utils.getCurrentTransform)(ctx),x:x,y:y,fontSize:fontSize,addToPath:addToPath});}}},{key:\"isFontSubpixelAAEnabled\",get:function get(){var _this$cachedCanvases$=this.cachedCanvases.getCanvas(\"isFontSubpixelAAEnabled\",10,10),ctx=_this$cachedCanvases$.context;ctx.scale(1.5,1);ctx.fillText(\"I\",0,10);var data=ctx.getImageData(0,0,10,10).data;var enabled=false;for(var i=3;i<data.length;i+=4){if(data[i]>0&&data[i]<255){enabled=true;break;}}return(0,_util.shadow)(this,\"isFontSubpixelAAEnabled\",enabled);}},{key:\"showText\",value:function showText(glyphs){var current=this.current;var font=current.font;if(font.isType3Font){return this.showType3Text(glyphs);}var fontSize=current.fontSize;if(fontSize===0){return undefined;}var ctx=this.ctx;var fontSizeScale=current.fontSizeScale;var charSpacing=current.charSpacing;var wordSpacing=current.wordSpacing;var fontDirection=current.fontDirection;var textHScale=current.textHScale*fontDirection;var glyphsLength=glyphs.length;var vertical=font.vertical;var spacingDir=vertical?1:-1;var defaultVMetrics=font.defaultVMetrics;var widthAdvanceScale=fontSize*current.fontMatrix[0];var simpleFillText=current.textRenderingMode===_util.TextRenderingMode.FILL&&!font.disableFontFace&&!current.patternFill;ctx.save();ctx.transform.apply(ctx,_toConsumableArray(current.textMatrix));ctx.translate(current.x,current.y+current.textRise);if(fontDirection>0){ctx.scale(textHScale,-1);}else{ctx.scale(textHScale,1);}var patternTransform;if(current.patternFill){ctx.save();var pattern=current.fillColor.getPattern(ctx,this,(0,_display_utils.getCurrentTransformInverse)(ctx),_pattern_helper.PathType.FILL);patternTransform=(0,_display_utils.getCurrentTransform)(ctx);ctx.restore();ctx.fillStyle=pattern;}var lineWidth=current.lineWidth;var scale=current.textMatrixScale;if(scale===0||lineWidth===0){var fillStrokeMode=current.textRenderingMode&_util.TextRenderingMode.FILL_STROKE_MASK;if(fillStrokeMode===_util.TextRenderingMode.STROKE||fillStrokeMode===_util.TextRenderingMode.FILL_STROKE){lineWidth=this.getSinglePixelWidth();}}else{lineWidth/=scale;}if(fontSizeScale!==1.0){ctx.scale(fontSizeScale,fontSizeScale);lineWidth/=fontSizeScale;}ctx.lineWidth=lineWidth;var x=0,i;for(i=0;i<glyphsLength;++i){var glyph=glyphs[i];if(typeof glyph===\"number\"){x+=spacingDir*glyph*fontSize/1000;continue;}var restoreNeeded=false;var spacing=(glyph.isSpace?wordSpacing:0)+charSpacing;var character=glyph.fontChar;var accent=glyph.accent;var scaledX=void 0,scaledY=void 0;var width=glyph.width;if(vertical){var vmetric=glyph.vmetric||defaultVMetrics;var vx=-(glyph.vmetric?vmetric[1]:width*0.5)*widthAdvanceScale;var vy=vmetric[2]*widthAdvanceScale;width=vmetric?-vmetric[0]:width;scaledX=vx/fontSizeScale;scaledY=(x+vy)/fontSizeScale;}else{scaledX=x/fontSizeScale;scaledY=0;}if(font.remeasure&&width>0){var measuredWidth=ctx.measureText(character).width*1000/fontSize*fontSizeScale;if(width<measuredWidth&&this.isFontSubpixelAAEnabled){var characterScaleX=width/measuredWidth;restoreNeeded=true;ctx.save();ctx.scale(characterScaleX,1);scaledX/=characterScaleX;}else if(width!==measuredWidth){scaledX+=(width-measuredWidth)/2000*fontSize/fontSizeScale;}}if(this.contentVisible&&(glyph.isInFont||font.missingFile)){if(simpleFillText&&!accent){ctx.fillText(character,scaledX,scaledY);}else{this.paintChar(character,scaledX,scaledY,patternTransform);if(accent){var scaledAccentX=scaledX+fontSize*accent.offset.x/fontSizeScale;var scaledAccentY=scaledY-fontSize*accent.offset.y/fontSizeScale;this.paintChar(accent.fontChar,scaledAccentX,scaledAccentY,patternTransform);}}}var charWidth=void 0;if(vertical){charWidth=width*widthAdvanceScale-spacing*fontDirection;}else{charWidth=width*widthAdvanceScale+spacing*fontDirection;}x+=charWidth;if(restoreNeeded){ctx.restore();}}if(vertical){current.y-=x;}else{current.x+=x*textHScale;}ctx.restore();this.compose();return undefined;}},{key:\"showType3Text\",value:function showType3Text(glyphs){var ctx=this.ctx;var current=this.current;var font=current.font;var fontSize=current.fontSize;var fontDirection=current.fontDirection;var spacingDir=font.vertical?1:-1;var charSpacing=current.charSpacing;var wordSpacing=current.wordSpacing;var textHScale=current.textHScale*fontDirection;var fontMatrix=current.fontMatrix||_util.FONT_IDENTITY_MATRIX;var glyphsLength=glyphs.length;var isTextInvisible=current.textRenderingMode===_util.TextRenderingMode.INVISIBLE;var i,glyph,width,spacingLength;if(isTextInvisible||fontSize===0){return;}this._cachedScaleForStroking=null;this._cachedGetSinglePixelWidth=null;ctx.save();ctx.transform.apply(ctx,_toConsumableArray(current.textMatrix));ctx.translate(current.x,current.y);ctx.scale(textHScale,fontDirection);for(i=0;i<glyphsLength;++i){glyph=glyphs[i];if(typeof glyph===\"number\"){spacingLength=spacingDir*glyph*fontSize/1000;this.ctx.translate(spacingLength,0);current.x+=spacingLength*textHScale;continue;}var spacing=(glyph.isSpace?wordSpacing:0)+charSpacing;var operatorList=font.charProcOperatorList[glyph.operatorListId];if(!operatorList){(0,_util.warn)(\"Type3 character \\\"\".concat(glyph.operatorListId,\"\\\" is not available.\"));continue;}if(this.contentVisible){this.processingType3=glyph;this.save();ctx.scale(fontSize,fontSize);ctx.transform.apply(ctx,_toConsumableArray(fontMatrix));this.executeOperatorList(operatorList);this.restore();}var transformed=_util.Util.applyTransform([glyph.width,0],fontMatrix);width=transformed[0]*fontSize+spacing;ctx.translate(width,0);current.x+=width*textHScale;}ctx.restore();this.processingType3=null;}},{key:\"setCharWidth\",value:function setCharWidth(xWidth,yWidth){}},{key:\"setCharWidthAndBounds\",value:function setCharWidthAndBounds(xWidth,yWidth,llx,lly,urx,ury){this.ctx.rect(llx,lly,urx-llx,ury-lly);this.ctx.clip();this.endPath();}},{key:\"getColorN_Pattern\",value:function getColorN_Pattern(IR){var _this30=this;var pattern;if(IR[0]===\"TilingPattern\"){var color=IR[1];var baseTransform=this.baseTransform||(0,_display_utils.getCurrentTransform)(this.ctx);var canvasGraphicsFactory={createCanvasGraphics:function createCanvasGraphics(ctx){return new CanvasGraphics(ctx,_this30.commonObjs,_this30.objs,_this30.canvasFactory);}};pattern=new _pattern_helper.TilingPattern(IR,color,this.ctx,canvasGraphicsFactory,baseTransform);}else{pattern=this._getPattern(IR[1],IR[2]);}return pattern;}},{key:\"setStrokeColorN\",value:function setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments);}},{key:\"setFillColorN\",value:function setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments);this.current.patternFill=true;}},{key:\"setStrokeRGBColor\",value:function setStrokeRGBColor(r,g,b){var _this$selectColor;var color=((_this$selectColor=this.selectColor)===null||_this$selectColor===void 0?void 0:_this$selectColor.call(this,r,g,b))||_util.Util.makeHexColor(r,g,b);this.ctx.strokeStyle=color;this.current.strokeColor=color;}},{key:\"setFillRGBColor\",value:function setFillRGBColor(r,g,b){var _this$selectColor2;var color=((_this$selectColor2=this.selectColor)===null||_this$selectColor2===void 0?void 0:_this$selectColor2.call(this,r,g,b))||_util.Util.makeHexColor(r,g,b);this.ctx.fillStyle=color;this.current.fillColor=color;this.current.patternFill=false;}},{key:\"_getPattern\",value:function _getPattern(objId){var matrix=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var pattern;if(this.cachedPatterns.has(objId)){pattern=this.cachedPatterns.get(objId);}else{pattern=(0,_pattern_helper.getShadingPattern)(this.objs.get(objId));this.cachedPatterns.set(objId,pattern);}if(matrix){pattern.matrix=matrix;}return pattern;}},{key:\"shadingFill\",value:function shadingFill(objId){if(!this.contentVisible){return;}var ctx=this.ctx;this.save();var pattern=this._getPattern(objId);ctx.fillStyle=pattern.getPattern(ctx,this,(0,_display_utils.getCurrentTransformInverse)(ctx),_pattern_helper.PathType.SHADING);var inv=(0,_display_utils.getCurrentTransformInverse)(ctx);if(inv){var canvas=ctx.canvas;var width=canvas.width;var height=canvas.height;var bl=_util.Util.applyTransform([0,0],inv);var br=_util.Util.applyTransform([0,height],inv);var ul=_util.Util.applyTransform([width,0],inv);var ur=_util.Util.applyTransform([width,height],inv);var x0=Math.min(bl[0],br[0],ul[0],ur[0]);var y0=Math.min(bl[1],br[1],ul[1],ur[1]);var x1=Math.max(bl[0],br[0],ul[0],ur[0]);var y1=Math.max(bl[1],br[1],ul[1],ur[1]);this.ctx.fillRect(x0,y0,x1-x0,y1-y0);}else{this.ctx.fillRect(-1e10,-1e10,2e10,2e10);}this.compose(this.current.getClippedPathBoundingBox());this.restore();}},{key:\"beginInlineImage\",value:function beginInlineImage(){(0,_util.unreachable)(\"Should not call beginInlineImage\");}},{key:\"beginImageData\",value:function beginImageData(){(0,_util.unreachable)(\"Should not call beginImageData\");}},{key:\"paintFormXObjectBegin\",value:function paintFormXObjectBegin(matrix,bbox){if(!this.contentVisible){return;}this.save();this.baseTransformStack.push(this.baseTransform);if(Array.isArray(matrix)&&matrix.length===6){this.transform.apply(this,_toConsumableArray(matrix));}this.baseTransform=(0,_display_utils.getCurrentTransform)(this.ctx);if(bbox){var width=bbox[2]-bbox[0];var height=bbox[3]-bbox[1];this.ctx.rect(bbox[0],bbox[1],width,height);this.current.updateRectMinMax((0,_display_utils.getCurrentTransform)(this.ctx),bbox);this.clip();this.endPath();}}},{key:\"paintFormXObjectEnd\",value:function paintFormXObjectEnd(){if(!this.contentVisible){return;}this.restore();this.baseTransform=this.baseTransformStack.pop();}},{key:\"beginGroup\",value:function beginGroup(group){if(!this.contentVisible){return;}this.save();if(this.inSMaskMode){this.endSMaskMode();this.current.activeSMask=null;}var currentCtx=this.ctx;if(!group.isolated){(0,_util.info)(\"TODO: Support non-isolated groups.\");}if(group.knockout){(0,_util.warn)(\"Knockout groups not supported.\");}var currentTransform=(0,_display_utils.getCurrentTransform)(currentCtx);if(group.matrix){currentCtx.transform.apply(currentCtx,_toConsumableArray(group.matrix));}if(!group.bbox){throw new Error(\"Bounding box is required.\");}var bounds=_util.Util.getAxialAlignedBoundingBox(group.bbox,(0,_display_utils.getCurrentTransform)(currentCtx));var canvasBounds=[0,0,currentCtx.canvas.width,currentCtx.canvas.height];bounds=_util.Util.intersect(bounds,canvasBounds)||[0,0,0,0];var offsetX=Math.floor(bounds[0]);var offsetY=Math.floor(bounds[1]);var drawnWidth=Math.max(Math.ceil(bounds[2])-offsetX,1);var drawnHeight=Math.max(Math.ceil(bounds[3])-offsetY,1);var scaleX=1,scaleY=1;if(drawnWidth>MAX_GROUP_SIZE){scaleX=drawnWidth/MAX_GROUP_SIZE;drawnWidth=MAX_GROUP_SIZE;}if(drawnHeight>MAX_GROUP_SIZE){scaleY=drawnHeight/MAX_GROUP_SIZE;drawnHeight=MAX_GROUP_SIZE;}this.current.startNewPathAndClipBox([0,0,drawnWidth,drawnHeight]);var cacheId=\"groupAt\"+this.groupLevel;if(group.smask){cacheId+=\"_smask_\"+this.smaskCounter++%2;}var scratchCanvas=this.cachedCanvases.getCanvas(cacheId,drawnWidth,drawnHeight);var groupCtx=scratchCanvas.context;groupCtx.scale(1/scaleX,1/scaleY);groupCtx.translate(-offsetX,-offsetY);groupCtx.transform.apply(groupCtx,_toConsumableArray(currentTransform));if(group.smask){this.smaskStack.push({canvas:scratchCanvas.canvas,context:groupCtx,offsetX:offsetX,offsetY:offsetY,scaleX:scaleX,scaleY:scaleY,subtype:group.smask.subtype,backdrop:group.smask.backdrop,transferMap:group.smask.transferMap||null,startTransformInverse:null});}else{currentCtx.setTransform(1,0,0,1,0,0);currentCtx.translate(offsetX,offsetY);currentCtx.scale(scaleX,scaleY);currentCtx.save();}copyCtxState(currentCtx,groupCtx);this.ctx=groupCtx;this.setGState([[\"BM\",\"source-over\"],[\"ca\",1],[\"CA\",1]]);this.groupStack.push(currentCtx);this.groupLevel++;}},{key:\"endGroup\",value:function endGroup(group){if(!this.contentVisible){return;}this.groupLevel--;var groupCtx=this.ctx;var ctx=this.groupStack.pop();this.ctx=ctx;this.ctx.imageSmoothingEnabled=false;if(group.smask){this.tempSMask=this.smaskStack.pop();this.restore();}else{var _this$ctx4;this.ctx.restore();var currentMtx=(0,_display_utils.getCurrentTransform)(this.ctx);this.restore();this.ctx.save();(_this$ctx4=this.ctx).setTransform.apply(_this$ctx4,_toConsumableArray(currentMtx));var dirtyBox=_util.Util.getAxialAlignedBoundingBox([0,0,groupCtx.canvas.width,groupCtx.canvas.height],currentMtx);this.ctx.drawImage(groupCtx.canvas,0,0);this.ctx.restore();this.compose(dirtyBox);}}},{key:\"beginAnnotation\",value:function beginAnnotation(id,rect,transform,matrix,hasOwnCanvas){_classPrivateMethodGet(this,_restoreInitialState,_restoreInitialState2).call(this);resetCtxToDefault(this.ctx,this.foregroundColor);this.ctx.save();this.save();if(this.baseTransform){var _this$ctx5;(_this$ctx5=this.ctx).setTransform.apply(_this$ctx5,_toConsumableArray(this.baseTransform));}if(Array.isArray(rect)&&rect.length===4){var width=rect[2]-rect[0];var height=rect[3]-rect[1];if(hasOwnCanvas&&this.annotationCanvasMap){transform=_sliceInstanceProperty(transform).call(transform);transform[4]-=rect[0];transform[5]-=rect[1];rect=_sliceInstanceProperty(rect).call(rect);rect[0]=rect[1]=0;rect[2]=width;rect[3]=height;var _util$Util$singularVa=_util.Util.singularValueDecompose2dScale((0,_display_utils.getCurrentTransform)(this.ctx)),_util$Util$singularVa2=_slicedToArray(_util$Util$singularVa,2),scaleX=_util$Util$singularVa2[0],scaleY=_util$Util$singularVa2[1];var viewportScale=this.viewportScale;var canvasWidth=Math.ceil(width*this.outputScaleX*viewportScale);var canvasHeight=Math.ceil(height*this.outputScaleY*viewportScale);this.annotationCanvas=this.canvasFactory.create(canvasWidth,canvasHeight);var _this$annotationCanva=this.annotationCanvas,canvas=_this$annotationCanva.canvas,context=_this$annotationCanva.context;this.annotationCanvasMap.set(id,canvas);this.annotationCanvas.savedCtx=this.ctx;this.ctx=context;this.ctx.setTransform(scaleX,0,0,-scaleY,0,height*scaleY);resetCtxToDefault(this.ctx,this.foregroundColor);}else{resetCtxToDefault(this.ctx,this.foregroundColor);this.ctx.rect(rect[0],rect[1],width,height);this.ctx.clip();this.endPath();}}this.current=new CanvasExtraState(this.ctx.canvas.width,this.ctx.canvas.height);this.transform.apply(this,_toConsumableArray(transform));this.transform.apply(this,_toConsumableArray(matrix));}},{key:\"endAnnotation\",value:function endAnnotation(){if(this.annotationCanvas){this.ctx=this.annotationCanvas.savedCtx;delete this.annotationCanvas.savedCtx;delete this.annotationCanvas;}}},{key:\"paintImageMaskXObject\",value:function paintImageMaskXObject(img){if(!this.contentVisible){return;}var count=img.count;img=this.getObject(img.data,img);img.count=count;var ctx=this.ctx;var glyph=this.processingType3;if(glyph){if(glyph.compiled===undefined){glyph.compiled=compileType3Glyph(img);}if(glyph.compiled){glyph.compiled(ctx);return;}}var mask=this._createMaskCanvas(img);var maskCanvas=mask.canvas;ctx.save();ctx.setTransform(1,0,0,1,0,0);ctx.drawImage(maskCanvas,mask.offsetX,mask.offsetY);ctx.restore();this.compose();}},{key:\"paintImageMaskXObjectRepeat\",value:function paintImageMaskXObjectRepeat(img,scaleX){var skewX=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var skewY=arguments.length>3&&arguments[3]!==undefined?arguments[3]:0;var scaleY=arguments.length>4?arguments[4]:undefined;var positions=arguments.length>5?arguments[5]:undefined;if(!this.contentVisible){return;}img=this.getObject(img.data,img);var ctx=this.ctx;ctx.save();var currentTransform=(0,_display_utils.getCurrentTransform)(ctx);ctx.transform(scaleX,skewX,skewY,scaleY,0,0);var mask=this._createMaskCanvas(img);ctx.setTransform(1,0,0,1,0,0);for(var i=0,ii=positions.length;i<ii;i+=2){var trans=_util.Util.transform(currentTransform,[scaleX,skewX,skewY,scaleY,positions[i],positions[i+1]]);var _util$Util$applyTrans3=_util.Util.applyTransform([0,0],trans),_util$Util$applyTrans4=_slicedToArray(_util$Util$applyTrans3,2),x=_util$Util$applyTrans4[0],y=_util$Util$applyTrans4[1];ctx.drawImage(mask.canvas,x,y);}ctx.restore();this.compose();}},{key:\"paintImageMaskXObjectGroup\",value:function paintImageMaskXObjectGroup(images){if(!this.contentVisible){return;}var ctx=this.ctx;var fillColor=this.current.fillColor;var isPatternFill=this.current.patternFill;var _iterator55=_createForOfIteratorHelper(images),_step55;try{for(_iterator55.s();!(_step55=_iterator55.n()).done;){var image=_step55.value;var data=image.data,width=image.width,height=image.height,transform=image.transform;var maskCanvas=this.cachedCanvases.getCanvas(\"maskCanvas\",width,height);var maskCtx=maskCanvas.context;maskCtx.save();var img=this.getObject(data,image);putBinaryImageMask(maskCtx,img);maskCtx.globalCompositeOperation=\"source-in\";maskCtx.fillStyle=isPatternFill?fillColor.getPattern(maskCtx,this,(0,_display_utils.getCurrentTransformInverse)(ctx),_pattern_helper.PathType.FILL):fillColor;maskCtx.fillRect(0,0,width,height);maskCtx.restore();ctx.save();ctx.transform.apply(ctx,_toConsumableArray(transform));ctx.scale(1,-1);drawImageAtIntegerCoords(ctx,maskCanvas.canvas,0,0,width,height,0,-1,1,1);ctx.restore();}}catch(err){_iterator55.e(err);}finally{_iterator55.f();}this.compose();}},{key:\"paintImageXObject\",value:function paintImageXObject(objId){if(!this.contentVisible){return;}var imgData=this.getObject(objId);if(!imgData){(0,_util.warn)(\"Dependent image isn't ready yet\");return;}this.paintInlineImageXObject(imgData);}},{key:\"paintImageXObjectRepeat\",value:function paintImageXObjectRepeat(objId,scaleX,scaleY,positions){if(!this.contentVisible){return;}var imgData=this.getObject(objId);if(!imgData){(0,_util.warn)(\"Dependent image isn't ready yet\");return;}var width=imgData.width;var height=imgData.height;var map=[];for(var i=0,ii=positions.length;i<ii;i+=2){map.push({transform:[scaleX,0,0,scaleY,positions[i],positions[i+1]],x:0,y:0,w:width,h:height});}this.paintInlineImageXObjectGroup(imgData,map);}},{key:\"paintInlineImageXObject\",value:function paintInlineImageXObject(imgData){if(!this.contentVisible){return;}var width=imgData.width;var height=imgData.height;var ctx=this.ctx;this.save();ctx.scale(1/width,-1/height);var imgToPaint;if(typeof HTMLElement===\"function\"&&imgData instanceof HTMLElement||!imgData.data){imgToPaint=imgData;}else{var tmpCanvas=this.cachedCanvases.getCanvas(\"inlineImage\",width,height);var tmpCtx=tmpCanvas.context;putBinaryImageData(tmpCtx,imgData,this.current.transferMaps);imgToPaint=tmpCanvas.canvas;}var scaled=this._scaleImage(imgToPaint,(0,_display_utils.getCurrentTransformInverse)(ctx));ctx.imageSmoothingEnabled=getImageSmoothingEnabled((0,_display_utils.getCurrentTransform)(ctx),imgData.interpolate);var _drawImageAtIntegerCo=drawImageAtIntegerCoords(ctx,scaled.img,0,0,scaled.paintWidth,scaled.paintHeight,0,-height,width,height),_drawImageAtIntegerCo2=_slicedToArray(_drawImageAtIntegerCo,2),rWidth=_drawImageAtIntegerCo2[0],rHeight=_drawImageAtIntegerCo2[1];if(this.imageLayer){var _util$Util$applyTrans5=_util.Util.applyTransform([0,-height],(0,_display_utils.getCurrentTransform)(this.ctx)),_util$Util$applyTrans6=_slicedToArray(_util$Util$applyTrans5,2),left=_util$Util$applyTrans6[0],top=_util$Util$applyTrans6[1];this.imageLayer.appendImage({imgData:imgData,left:left,top:top,width:rWidth,height:rHeight});}this.compose();this.restore();}},{key:\"paintInlineImageXObjectGroup\",value:function paintInlineImageXObjectGroup(imgData,map){if(!this.contentVisible){return;}var ctx=this.ctx;var w=imgData.width;var h=imgData.height;var tmpCanvas=this.cachedCanvases.getCanvas(\"inlineImage\",w,h);var tmpCtx=tmpCanvas.context;putBinaryImageData(tmpCtx,imgData,this.current.transferMaps);var _iterator56=_createForOfIteratorHelper(map),_step56;try{for(_iterator56.s();!(_step56=_iterator56.n()).done;){var entry=_step56.value;ctx.save();ctx.transform.apply(ctx,_toConsumableArray(entry.transform));ctx.scale(1,-1);drawImageAtIntegerCoords(ctx,tmpCanvas.canvas,entry.x,entry.y,entry.w,entry.h,0,-1,1,1);if(this.imageLayer){var _util$Util$applyTrans7=_util.Util.applyTransform([entry.x,entry.y],(0,_display_utils.getCurrentTransform)(this.ctx)),_util$Util$applyTrans8=_slicedToArray(_util$Util$applyTrans7,2),left=_util$Util$applyTrans8[0],top=_util$Util$applyTrans8[1];this.imageLayer.appendImage({imgData:imgData,left:left,top:top,width:w,height:h});}ctx.restore();}}catch(err){_iterator56.e(err);}finally{_iterator56.f();}this.compose();}},{key:\"paintSolidColorImageMask\",value:function paintSolidColorImageMask(){if(!this.contentVisible){return;}this.ctx.fillRect(0,0,1,1);this.compose();}},{key:\"markPoint\",value:function markPoint(tag){}},{key:\"markPointProps\",value:function markPointProps(tag,properties){}},{key:\"beginMarkedContent\",value:function beginMarkedContent(tag){this.markedContentStack.push({visible:true});}},{key:\"beginMarkedContentProps\",value:function beginMarkedContentProps(tag,properties){if(tag===\"OC\"){this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(properties)});}else{this.markedContentStack.push({visible:true});}this.contentVisible=this.isContentVisible();}},{key:\"endMarkedContent\",value:function endMarkedContent(){this.markedContentStack.pop();this.contentVisible=this.isContentVisible();}},{key:\"beginCompat\",value:function beginCompat(){}},{key:\"endCompat\",value:function endCompat(){}},{key:\"consumePath\",value:function consumePath(clipBox){var isEmpty=this.current.isEmptyClip();if(this.pendingClip){this.current.updateClipFromPath();}if(!this.pendingClip){this.compose(clipBox);}var ctx=this.ctx;if(this.pendingClip){if(!isEmpty){if(this.pendingClip===EO_CLIP){ctx.clip(\"evenodd\");}else{ctx.clip();}}this.pendingClip=null;}this.current.startNewPathAndClipBox(this.current.clipBox);ctx.beginPath();}},{key:\"getSinglePixelWidth\",value:function getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){var m=(0,_display_utils.getCurrentTransform)(this.ctx);if(m[1]===0&&m[2]===0){this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(m[0]),Math.abs(m[3]));}else{var absDet=Math.abs(m[0]*m[3]-m[2]*m[1]);var normX=_Math$hypot(m[0],m[2]);var normY=_Math$hypot(m[1],m[3]);this._cachedGetSinglePixelWidth=Math.max(normX,normY)/absDet;}}return this._cachedGetSinglePixelWidth;}},{key:\"getScaleForStroking\",value:function getScaleForStroking(){if(!this._cachedScaleForStroking){var lineWidth=this.current.lineWidth;var m=(0,_display_utils.getCurrentTransform)(this.ctx);var scaleX,scaleY;if(m[1]===0&&m[2]===0){var normX=Math.abs(m[0]);var normY=Math.abs(m[3]);if(lineWidth===0){scaleX=1/normX;scaleY=1/normY;}else{var scaledXLineWidth=normX*lineWidth;var scaledYLineWidth=normY*lineWidth;scaleX=scaledXLineWidth<1?1/scaledXLineWidth:1;scaleY=scaledYLineWidth<1?1/scaledYLineWidth:1;}}else{var absDet=Math.abs(m[0]*m[3]-m[2]*m[1]);var _normX=_Math$hypot(m[0],m[1]);var _normY=_Math$hypot(m[2],m[3]);if(lineWidth===0){scaleX=_normY/absDet;scaleY=_normX/absDet;}else{var baseArea=lineWidth*absDet;scaleX=_normY>baseArea?_normY/baseArea:1;scaleY=_normX>baseArea?_normX/baseArea:1;}}this._cachedScaleForStroking=[scaleX,scaleY];}return this._cachedScaleForStroking;}},{key:\"rescaleAndStroke\",value:function rescaleAndStroke(saveRestore){var _context74;var ctx=this.ctx;var lineWidth=this.current.lineWidth;var _this$getScaleForStro=this.getScaleForStroking(),_this$getScaleForStro2=_slicedToArray(_this$getScaleForStro,2),scaleX=_this$getScaleForStro2[0],scaleY=_this$getScaleForStro2[1];ctx.lineWidth=lineWidth||1;if(scaleX===1&&scaleY===1){ctx.stroke();return;}var savedMatrix,savedDashes,savedDashOffset;if(saveRestore){var _context73;savedMatrix=(0,_display_utils.getCurrentTransform)(ctx);savedDashes=_sliceInstanceProperty(_context73=ctx.getLineDash()).call(_context73);savedDashOffset=ctx.lineDashOffset;}ctx.scale(scaleX,scaleY);var scale=Math.max(scaleX,scaleY);ctx.setLineDash(_mapInstanceProperty(_context74=ctx.getLineDash()).call(_context74,function(x){return x/scale;}));ctx.lineDashOffset/=scale;ctx.stroke();if(saveRestore){ctx.setTransform.apply(ctx,_toConsumableArray(savedMatrix));ctx.setLineDash(savedDashes);ctx.lineDashOffset=savedDashOffset;}}},{key:\"isContentVisible\",value:function isContentVisible(){for(var i=this.markedContentStack.length-1;i>=0;i--){if(!this.markedContentStack[i].visible){return false;}}return true;}}]);return CanvasGraphics;}();exports.CanvasGraphics=CanvasGraphics;function _restoreInitialState2(){while(this.stateStack.length||this.inSMaskMode){this.restore();}this.ctx.restore();if(this.transparentCanvas){this.ctx=this.compositeCtx;this.ctx.save();this.ctx.setTransform(1,0,0,1,0,0);this.ctx.drawImage(this.transparentCanvas,0,0);this.ctx.restore();this.transparentCanvas=null;}}for(var op in _util.OPS){if(CanvasGraphics.prototype[op]!==undefined){CanvasGraphics.prototype[_util.OPS[op]]=CanvasGraphics.prototype[op];}}/***/}),(/* 138 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.TilingPattern=exports.PathType=void 0;exports.getShadingPattern=getShadingPattern;var _util=__w_pdfjs_require__(1);var _display_utils=__w_pdfjs_require__(133);var _is_node=__w_pdfjs_require__(3);var PathType={FILL:\"Fill\",STROKE:\"Stroke\",SHADING:\"Shading\"};exports.PathType=PathType;function applyBoundingBox(ctx,bbox){if(!bbox||_is_node.isNodeJS){return;}var width=bbox[2]-bbox[0];var height=bbox[3]-bbox[1];var region=new Path2D();region.rect(bbox[0],bbox[1],width,height);ctx.clip(region);}var BaseShadingPattern=/*#__PURE__*/function(){function BaseShadingPattern(){_classCallCheck(this,BaseShadingPattern);if(this.constructor===BaseShadingPattern){(0,_util.unreachable)(\"Cannot initialize BaseShadingPattern.\");}}_createClass(BaseShadingPattern,[{key:\"getPattern\",value:function getPattern(){(0,_util.unreachable)(\"Abstract method `getPattern` called.\");}}]);return BaseShadingPattern;}();var RadialAxialShadingPattern=/*#__PURE__*/function(_BaseShadingPattern){_inherits(RadialAxialShadingPattern,_BaseShadingPattern);function RadialAxialShadingPattern(IR){var _this31;_classCallCheck(this,RadialAxialShadingPattern);_this31=_callSuper(this,RadialAxialShadingPattern);_this31._type=IR[1];_this31._bbox=IR[2];_this31._colorStops=IR[3];_this31._p0=IR[4];_this31._p1=IR[5];_this31._r0=IR[6];_this31._r1=IR[7];_this31.matrix=null;return _this31;}_createClass(RadialAxialShadingPattern,[{key:\"_createGradient\",value:function _createGradient(ctx){var grad;if(this._type===\"axial\"){grad=ctx.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]);}else if(this._type===\"radial\"){grad=ctx.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1);}var _iterator57=_createForOfIteratorHelper(this._colorStops),_step57;try{for(_iterator57.s();!(_step57=_iterator57.n()).done;){var colorStop=_step57.value;grad.addColorStop(colorStop[0],colorStop[1]);}}catch(err){_iterator57.e(err);}finally{_iterator57.f();}return grad;}},{key:\"getPattern\",value:function getPattern(ctx,owner,inverse,pathType){var pattern;if(pathType===PathType.STROKE||pathType===PathType.FILL){var ownerBBox=owner.current.getClippedPathBoundingBox(pathType,(0,_display_utils.getCurrentTransform)(ctx))||[0,0,0,0];var width=Math.ceil(ownerBBox[2]-ownerBBox[0])||1;var height=Math.ceil(ownerBBox[3]-ownerBBox[1])||1;var tmpCanvas=owner.cachedCanvases.getCanvas(\"pattern\",width,height,true);var tmpCtx=tmpCanvas.context;tmpCtx.clearRect(0,0,tmpCtx.canvas.width,tmpCtx.canvas.height);tmpCtx.beginPath();tmpCtx.rect(0,0,tmpCtx.canvas.width,tmpCtx.canvas.height);tmpCtx.translate(-ownerBBox[0],-ownerBBox[1]);inverse=_util.Util.transform(inverse,[1,0,0,1,ownerBBox[0],ownerBBox[1]]);tmpCtx.transform.apply(tmpCtx,_toConsumableArray(owner.baseTransform));if(this.matrix){tmpCtx.transform.apply(tmpCtx,_toConsumableArray(this.matrix));}applyBoundingBox(tmpCtx,this._bbox);tmpCtx.fillStyle=this._createGradient(tmpCtx);_fillInstanceProperty(tmpCtx).call(tmpCtx);pattern=ctx.createPattern(tmpCanvas.canvas,\"no-repeat\");var domMatrix=new DOMMatrix(inverse);try{pattern.setTransform(domMatrix);}catch(ex){(0,_util.warn)(\"RadialAxialShadingPattern.getPattern: \\\"\".concat(ex===null||ex===void 0?void 0:ex.message,\"\\\".\"));}}else{applyBoundingBox(ctx,this._bbox);pattern=this._createGradient(ctx);}return pattern;}}]);return RadialAxialShadingPattern;}(BaseShadingPattern);function drawTriangle(data,context,p1,p2,p3,c1,c2,c3){var coords=context.coords,colors=context.colors;var bytes=data.data,rowSize=data.width*4;var tmp;if(coords[p1+1]>coords[p2+1]){tmp=p1;p1=p2;p2=tmp;tmp=c1;c1=c2;c2=tmp;}if(coords[p2+1]>coords[p3+1]){tmp=p2;p2=p3;p3=tmp;tmp=c2;c2=c3;c3=tmp;}if(coords[p1+1]>coords[p2+1]){tmp=p1;p1=p2;p2=tmp;tmp=c1;c1=c2;c2=tmp;}var x1=(coords[p1]+context.offsetX)*context.scaleX;var y1=(coords[p1+1]+context.offsetY)*context.scaleY;var x2=(coords[p2]+context.offsetX)*context.scaleX;var y2=(coords[p2+1]+context.offsetY)*context.scaleY;var x3=(coords[p3]+context.offsetX)*context.scaleX;var y3=(coords[p3+1]+context.offsetY)*context.scaleY;if(y1>=y3){return;}var c1r=colors[c1],c1g=colors[c1+1],c1b=colors[c1+2];var c2r=colors[c2],c2g=colors[c2+1],c2b=colors[c2+2];var c3r=colors[c3],c3g=colors[c3+1],c3b=colors[c3+2];var minY=Math.round(y1),maxY=Math.round(y3);var xa,car,cag,cab;var xb,cbr,cbg,cbb;for(var y=minY;y<=maxY;y++){if(y<y2){var _k4=void 0;if(y<y1){_k4=0;}else{_k4=(y1-y)/(y1-y2);}xa=x1-(x1-x2)*_k4;car=c1r-(c1r-c2r)*_k4;cag=c1g-(c1g-c2g)*_k4;cab=c1b-(c1b-c2b)*_k4;}else{var _k5=void 0;if(y>y3){_k5=1;}else if(y2===y3){_k5=0;}else{_k5=(y2-y)/(y2-y3);}xa=x2-(x2-x3)*_k5;car=c2r-(c2r-c3r)*_k5;cag=c2g-(c2g-c3g)*_k5;cab=c2b-(c2b-c3b)*_k5;}var k=void 0;if(y<y1){k=0;}else if(y>y3){k=1;}else{k=(y1-y)/(y1-y3);}xb=x1-(x1-x3)*k;cbr=c1r-(c1r-c3r)*k;cbg=c1g-(c1g-c3g)*k;cbb=c1b-(c1b-c3b)*k;var x1_=Math.round(Math.min(xa,xb));var x2_=Math.round(Math.max(xa,xb));var j=rowSize*y+x1_*4;for(var x=x1_;x<=x2_;x++){k=(xa-x)/(xa-xb);if(k<0){k=0;}else if(k>1){k=1;}bytes[j++]=car-(car-cbr)*k|0;bytes[j++]=cag-(cag-cbg)*k|0;bytes[j++]=cab-(cab-cbb)*k|0;bytes[j++]=255;}}}function drawFigure(data,figure,context){var ps=figure.coords;var cs=figure.colors;var i,ii;switch(figure.type){case\"lattice\":var verticesPerRow=figure.verticesPerRow;var rows=Math.floor(ps.length/verticesPerRow)-1;var cols=verticesPerRow-1;for(i=0;i<rows;i++){var q=i*verticesPerRow;for(var j=0;j<cols;j++,q++){drawTriangle(data,context,ps[q],ps[q+1],ps[q+verticesPerRow],cs[q],cs[q+1],cs[q+verticesPerRow]);drawTriangle(data,context,ps[q+verticesPerRow+1],ps[q+1],ps[q+verticesPerRow],cs[q+verticesPerRow+1],cs[q+1],cs[q+verticesPerRow]);}}break;case\"triangles\":for(i=0,ii=ps.length;i<ii;i+=3){drawTriangle(data,context,ps[i],ps[i+1],ps[i+2],cs[i],cs[i+1],cs[i+2]);}break;default:throw new Error(\"illegal figure\");}}var MeshShadingPattern=/*#__PURE__*/function(_BaseShadingPattern2){_inherits(MeshShadingPattern,_BaseShadingPattern2);function MeshShadingPattern(IR){var _this32;_classCallCheck(this,MeshShadingPattern);_this32=_callSuper(this,MeshShadingPattern);_this32._coords=IR[2];_this32._colors=IR[3];_this32._figures=IR[4];_this32._bounds=IR[5];_this32._bbox=IR[7];_this32._background=IR[8];_this32.matrix=null;return _this32;}_createClass(MeshShadingPattern,[{key:\"_createMeshCanvas\",value:function _createMeshCanvas(combinedScale,backgroundColor,cachedCanvases){var EXPECTED_SCALE=1.1;var MAX_PATTERN_SIZE=3000;var BORDER_SIZE=2;var offsetX=Math.floor(this._bounds[0]);var offsetY=Math.floor(this._bounds[1]);var boundsWidth=Math.ceil(this._bounds[2])-offsetX;var boundsHeight=Math.ceil(this._bounds[3])-offsetY;var width=Math.min(Math.ceil(Math.abs(boundsWidth*combinedScale[0]*EXPECTED_SCALE)),MAX_PATTERN_SIZE);var height=Math.min(Math.ceil(Math.abs(boundsHeight*combinedScale[1]*EXPECTED_SCALE)),MAX_PATTERN_SIZE);var scaleX=boundsWidth/width;var scaleY=boundsHeight/height;var context={coords:this._coords,colors:this._colors,offsetX:-offsetX,offsetY:-offsetY,scaleX:1/scaleX,scaleY:1/scaleY};var paddedWidth=width+BORDER_SIZE*2;var paddedHeight=height+BORDER_SIZE*2;var tmpCanvas=cachedCanvases.getCanvas(\"mesh\",paddedWidth,paddedHeight,false);var tmpCtx=tmpCanvas.context;var data=tmpCtx.createImageData(width,height);if(backgroundColor){var bytes=data.data;for(var i=0,ii=bytes.length;i<ii;i+=4){bytes[i]=backgroundColor[0];bytes[i+1]=backgroundColor[1];bytes[i+2]=backgroundColor[2];bytes[i+3]=255;}}var _iterator58=_createForOfIteratorHelper(this._figures),_step58;try{for(_iterator58.s();!(_step58=_iterator58.n()).done;){var figure=_step58.value;drawFigure(data,figure,context);}}catch(err){_iterator58.e(err);}finally{_iterator58.f();}tmpCtx.putImageData(data,BORDER_SIZE,BORDER_SIZE);var canvas=tmpCanvas.canvas;return{canvas:canvas,offsetX:offsetX-BORDER_SIZE*scaleX,offsetY:offsetY-BORDER_SIZE*scaleY,scaleX:scaleX,scaleY:scaleY};}},{key:\"getPattern\",value:function getPattern(ctx,owner,inverse,pathType){applyBoundingBox(ctx,this._bbox);var scale;if(pathType===PathType.SHADING){scale=_util.Util.singularValueDecompose2dScale((0,_display_utils.getCurrentTransform)(ctx));}else{scale=_util.Util.singularValueDecompose2dScale(owner.baseTransform);if(this.matrix){var matrixScale=_util.Util.singularValueDecompose2dScale(this.matrix);scale=[scale[0]*matrixScale[0],scale[1]*matrixScale[1]];}}var temporaryPatternCanvas=this._createMeshCanvas(scale,pathType===PathType.SHADING?null:this._background,owner.cachedCanvases);if(pathType!==PathType.SHADING){ctx.setTransform.apply(ctx,_toConsumableArray(owner.baseTransform));if(this.matrix){ctx.transform.apply(ctx,_toConsumableArray(this.matrix));}}ctx.translate(temporaryPatternCanvas.offsetX,temporaryPatternCanvas.offsetY);ctx.scale(temporaryPatternCanvas.scaleX,temporaryPatternCanvas.scaleY);return ctx.createPattern(temporaryPatternCanvas.canvas,\"no-repeat\");}}]);return MeshShadingPattern;}(BaseShadingPattern);var DummyShadingPattern=/*#__PURE__*/function(_BaseShadingPattern3){_inherits(DummyShadingPattern,_BaseShadingPattern3);function DummyShadingPattern(){_classCallCheck(this,DummyShadingPattern);return _callSuper(this,DummyShadingPattern,arguments);}_createClass(DummyShadingPattern,[{key:\"getPattern\",value:function getPattern(){return\"hotpink\";}}]);return DummyShadingPattern;}(BaseShadingPattern);function getShadingPattern(IR){switch(IR[0]){case\"RadialAxial\":return new RadialAxialShadingPattern(IR);case\"Mesh\":return new MeshShadingPattern(IR);case\"Dummy\":return new DummyShadingPattern();}throw new Error(\"Unknown IR type: \".concat(IR[0]));}var PaintType={COLORED:1,UNCOLORED:2};var TilingPattern=/*#__PURE__*/function(){function TilingPattern(IR,color,ctx,canvasGraphicsFactory,baseTransform){_classCallCheck(this,TilingPattern);this.operatorList=IR[2];this.matrix=IR[3]||[1,0,0,1,0,0];this.bbox=IR[4];this.xstep=IR[5];this.ystep=IR[6];this.paintType=IR[7];this.tilingType=IR[8];this.color=color;this.ctx=ctx;this.canvasGraphicsFactory=canvasGraphicsFactory;this.baseTransform=baseTransform;}_createClass(TilingPattern,[{key:\"createPatternCanvas\",value:function createPatternCanvas(owner){var operatorList=this.operatorList;var bbox=this.bbox;var xstep=this.xstep;var ystep=this.ystep;var paintType=this.paintType;var tilingType=this.tilingType;var color=this.color;var canvasGraphicsFactory=this.canvasGraphicsFactory;(0,_util.info)(\"TilingType: \"+tilingType);var x0=bbox[0],y0=bbox[1],x1=bbox[2],y1=bbox[3];var matrixScale=_util.Util.singularValueDecompose2dScale(this.matrix);var curMatrixScale=_util.Util.singularValueDecompose2dScale(this.baseTransform);var combinedScale=[matrixScale[0]*curMatrixScale[0],matrixScale[1]*curMatrixScale[1]];var dimx=this.getSizeAndScale(xstep,this.ctx.canvas.width,combinedScale[0]);var dimy=this.getSizeAndScale(ystep,this.ctx.canvas.height,combinedScale[1]);var tmpCanvas=owner.cachedCanvases.getCanvas(\"pattern\",dimx.size,dimy.size,true);var tmpCtx=tmpCanvas.context;var graphics=canvasGraphicsFactory.createCanvasGraphics(tmpCtx);graphics.groupLevel=owner.groupLevel;this.setFillAndStrokeStyleToContext(graphics,paintType,color);var adjustedX0=x0;var adjustedY0=y0;var adjustedX1=x1;var adjustedY1=y1;if(x0<0){adjustedX0=0;adjustedX1+=Math.abs(x0);}if(y0<0){adjustedY0=0;adjustedY1+=Math.abs(y0);}tmpCtx.translate(-(dimx.scale*adjustedX0),-(dimy.scale*adjustedY0));graphics.transform(dimx.scale,0,0,dimy.scale,0,0);tmpCtx.save();this.clipBbox(graphics,adjustedX0,adjustedY0,adjustedX1,adjustedY1);graphics.baseTransform=(0,_display_utils.getCurrentTransform)(graphics.ctx);graphics.executeOperatorList(operatorList);graphics.endDrawing();return{canvas:tmpCanvas.canvas,scaleX:dimx.scale,scaleY:dimy.scale,offsetX:adjustedX0,offsetY:adjustedY0};}},{key:\"getSizeAndScale\",value:function getSizeAndScale(step,realOutputSize,scale){step=Math.abs(step);var maxSize=Math.max(TilingPattern.MAX_PATTERN_SIZE,realOutputSize);var size=Math.ceil(step*scale);if(size>=maxSize){size=maxSize;}else{scale=size/step;}return{scale:scale,size:size};}},{key:\"clipBbox\",value:function clipBbox(graphics,x0,y0,x1,y1){var bboxWidth=x1-x0;var bboxHeight=y1-y0;graphics.ctx.rect(x0,y0,bboxWidth,bboxHeight);graphics.current.updateRectMinMax((0,_display_utils.getCurrentTransform)(graphics.ctx),[x0,y0,x1,y1]);graphics.clip();graphics.endPath();}},{key:\"setFillAndStrokeStyleToContext\",value:function setFillAndStrokeStyleToContext(graphics,paintType,color){var context=graphics.ctx,current=graphics.current;switch(paintType){case PaintType.COLORED:var ctx=this.ctx;context.fillStyle=ctx.fillStyle;context.strokeStyle=ctx.strokeStyle;current.fillColor=ctx.fillStyle;current.strokeColor=ctx.strokeStyle;break;case PaintType.UNCOLORED:var cssColor=_util.Util.makeHexColor(color[0],color[1],color[2]);context.fillStyle=cssColor;context.strokeStyle=cssColor;current.fillColor=cssColor;current.strokeColor=cssColor;break;default:throw new _util.FormatError(\"Unsupported paint type: \".concat(paintType));}}},{key:\"getPattern\",value:function getPattern(ctx,owner,inverse,pathType){var matrix=inverse;if(pathType!==PathType.SHADING){matrix=_util.Util.transform(matrix,owner.baseTransform);if(this.matrix){matrix=_util.Util.transform(matrix,this.matrix);}}var temporaryPatternCanvas=this.createPatternCanvas(owner);var domMatrix=new DOMMatrix(matrix);domMatrix=domMatrix.translate(temporaryPatternCanvas.offsetX,temporaryPatternCanvas.offsetY);domMatrix=domMatrix.scale(1/temporaryPatternCanvas.scaleX,1/temporaryPatternCanvas.scaleY);var pattern=ctx.createPattern(temporaryPatternCanvas.canvas,\"repeat\");try{pattern.setTransform(domMatrix);}catch(ex){(0,_util.warn)(\"TilingPattern.getPattern: \\\"\".concat(ex===null||ex===void 0?void 0:ex.message,\"\\\".\"));}return pattern;}}],[{key:\"MAX_PATTERN_SIZE\",get:function get(){return(0,_util.shadow)(this,\"MAX_PATTERN_SIZE\",3000);}}]);return TilingPattern;}();exports.TilingPattern=TilingPattern;/***/}),(/* 139 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.applyMaskImageData=applyMaskImageData;var _util=__w_pdfjs_require__(1);function applyMaskImageData(_ref){var src=_ref.src,_ref$srcPos=_ref.srcPos,srcPos=_ref$srcPos===void 0?0:_ref$srcPos,dest=_ref.dest,_ref$destPos=_ref.destPos,destPos=_ref$destPos===void 0?0:_ref$destPos,width=_ref.width,height=_ref.height,_ref$inverseDecode=_ref.inverseDecode,inverseDecode=_ref$inverseDecode===void 0?false:_ref$inverseDecode;var opaque=_util.FeatureTest.isLittleEndian?0xff000000:0x000000ff;var _ref36=!inverseDecode?[opaque,0]:[0,opaque],_ref37=_slicedToArray(_ref36,2),zeroMapping=_ref37[0],oneMapping=_ref37[1];var widthInSource=width>>3;var widthRemainder=width&7;var srcLength=src.length;dest=new Uint32Array(dest.buffer);for(var i=0;i<height;i++){for(var max=srcPos+widthInSource;srcPos<max;srcPos++){var _elem=srcPos<srcLength?src[srcPos]:255;dest[destPos++]=_elem&128?oneMapping:zeroMapping;dest[destPos++]=_elem&64?oneMapping:zeroMapping;dest[destPos++]=_elem&32?oneMapping:zeroMapping;dest[destPos++]=_elem&16?oneMapping:zeroMapping;dest[destPos++]=_elem&8?oneMapping:zeroMapping;dest[destPos++]=_elem&4?oneMapping:zeroMapping;dest[destPos++]=_elem&2?oneMapping:zeroMapping;dest[destPos++]=_elem&1?oneMapping:zeroMapping;}if(widthRemainder===0){continue;}var elem=srcPos<srcLength?src[srcPos++]:255;for(var j=0;j<widthRemainder;j++){dest[destPos++]=elem&1<<7-j?oneMapping:zeroMapping;}}return{srcPos:srcPos,destPos:destPos};}/***/}),(/* 140 */ /***/function(__unused_webpack_module,exports){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.GlobalWorkerOptions=void 0;var GlobalWorkerOptions=Object.create(null);exports.GlobalWorkerOptions=GlobalWorkerOptions;GlobalWorkerOptions.workerPort=GlobalWorkerOptions.workerPort===undefined?null:GlobalWorkerOptions.workerPort;GlobalWorkerOptions.workerSrc=GlobalWorkerOptions.workerSrc===undefined?\"\":GlobalWorkerOptions.workerSrc;/***/}),(/* 141 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.MessageHandler=void 0;var _util=__w_pdfjs_require__(1);var CallbackKind={UNKNOWN:0,DATA:1,ERROR:2};var StreamKind={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function wrapReason(reason){if(!(reason instanceof Error||_typeof(reason)===\"object\"&&reason!==null)){(0,_util.unreachable)('wrapReason: Expected \"reason\" to be a (possibly cloned) Error.');}switch(reason.name){case\"AbortException\":return new _util.AbortException(reason.message);case\"MissingPDFException\":return new _util.MissingPDFException(reason.message);case\"PasswordException\":return new _util.PasswordException(reason.message,reason.code);case\"UnexpectedResponseException\":return new _util.UnexpectedResponseException(reason.message,reason.status);case\"UnknownErrorException\":return new _util.UnknownErrorException(reason.message,reason.details);default:return new _util.UnknownErrorException(reason.message,reason.toString());}}var MessageHandler=/*#__PURE__*/function(){function MessageHandler(sourceName,targetName,comObj){var _this33=this;_classCallCheck(this,MessageHandler);this.sourceName=sourceName;this.targetName=targetName;this.comObj=comObj;this.callbackId=1;this.streamId=1;this.streamSinks=Object.create(null);this.streamControllers=Object.create(null);this.callbackCapabilities=Object.create(null);this.actionHandler=Object.create(null);this._onComObjOnMessage=function(event){var data=event.data;if(data.targetName!==_this33.sourceName){return;}if(data.stream){_this33._processStreamMessage(data);return;}if(data.callback){var callbackId=data.callbackId;var capability=_this33.callbackCapabilities[callbackId];if(!capability){throw new Error(\"Cannot resolve callback \".concat(callbackId));}delete _this33.callbackCapabilities[callbackId];if(data.callback===CallbackKind.DATA){capability.resolve(data.data);}else if(data.callback===CallbackKind.ERROR){capability.reject(wrapReason(data.reason));}else{throw new Error(\"Unexpected callback case\");}return;}var action=_this33.actionHandler[data.action];if(!action){throw new Error(\"Unknown action from worker: \".concat(data.action));}if(data.callbackId){var cbSourceName=_this33.sourceName;var cbTargetName=data.sourceName;new _Promise(function(resolve){resolve(action(data.data));}).then(function(result){comObj.postMessage({sourceName:cbSourceName,targetName:cbTargetName,callback:CallbackKind.DATA,callbackId:data.callbackId,data:result});},function(reason){comObj.postMessage({sourceName:cbSourceName,targetName:cbTargetName,callback:CallbackKind.ERROR,callbackId:data.callbackId,reason:wrapReason(reason)});});return;}if(data.streamId){_this33._createStreamSink(data);return;}action(data.data);};comObj.addEventListener(\"message\",this._onComObjOnMessage);}_createClass(MessageHandler,[{key:\"on\",value:function on(actionName,handler){var ah=this.actionHandler;if(ah[actionName]){throw new Error(\"There is already an actionName called \\\"\".concat(actionName,\"\\\"\"));}ah[actionName]=handler;}},{key:\"send\",value:function send(actionName,data,transfers){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:actionName,data:data},transfers);}},{key:\"sendWithPromise\",value:function sendWithPromise(actionName,data,transfers){var callbackId=this.callbackId++;var capability=(0,_util.createPromiseCapability)();this.callbackCapabilities[callbackId]=capability;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:actionName,callbackId:callbackId,data:data},transfers);}catch(ex){capability.reject(ex);}return capability.promise;}},{key:\"sendWithStream\",value:function sendWithStream(actionName,data,queueingStrategy,transfers){var _this34=this;var streamId=this.streamId++,sourceName=this.sourceName,targetName=this.targetName,comObj=this.comObj;return new ReadableStream({start:function start(controller){var startCapability=(0,_util.createPromiseCapability)();_this34.streamControllers[streamId]={controller:controller,startCall:startCapability,pullCall:null,cancelCall:null,isClosed:false};comObj.postMessage({sourceName:sourceName,targetName:targetName,action:actionName,streamId:streamId,data:data,desiredSize:controller.desiredSize},transfers);return startCapability.promise;},pull:function pull(controller){var pullCapability=(0,_util.createPromiseCapability)();_this34.streamControllers[streamId].pullCall=pullCapability;comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:StreamKind.PULL,streamId:streamId,desiredSize:controller.desiredSize});return pullCapability.promise;},cancel:function cancel(reason){(0,_util.assert)(reason instanceof Error,\"cancel must have a valid reason\");var cancelCapability=(0,_util.createPromiseCapability)();_this34.streamControllers[streamId].cancelCall=cancelCapability;_this34.streamControllers[streamId].isClosed=true;comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:StreamKind.CANCEL,streamId:streamId,reason:wrapReason(reason)});return cancelCapability.promise;}},queueingStrategy);}},{key:\"_createStreamSink\",value:function _createStreamSink(data){var streamId=data.streamId,sourceName=this.sourceName,targetName=data.sourceName,comObj=this.comObj;var self=this,action=this.actionHandler[data.action];var streamSink={enqueue:function enqueue(chunk){var size=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var transfers=arguments.length>2?arguments[2]:undefined;if(this.isCancelled){return;}var lastDesiredSize=this.desiredSize;this.desiredSize-=size;if(lastDesiredSize>0&&this.desiredSize<=0){this.sinkCapability=(0,_util.createPromiseCapability)();this.ready=this.sinkCapability.promise;}comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:StreamKind.ENQUEUE,streamId:streamId,chunk:chunk},transfers);},close:function close(){if(this.isCancelled){return;}this.isCancelled=true;comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:StreamKind.CLOSE,streamId:streamId});delete self.streamSinks[streamId];},error:function error(reason){(0,_util.assert)(reason instanceof Error,\"error must have a valid reason\");if(this.isCancelled){return;}this.isCancelled=true;comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:StreamKind.ERROR,streamId:streamId,reason:wrapReason(reason)});},sinkCapability:(0,_util.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:false,desiredSize:data.desiredSize,ready:null};streamSink.sinkCapability.resolve();streamSink.ready=streamSink.sinkCapability.promise;this.streamSinks[streamId]=streamSink;new _Promise(function(resolve){resolve(action(data.data,streamSink));}).then(function(){comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:StreamKind.START_COMPLETE,streamId:streamId,success:true});},function(reason){comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:StreamKind.START_COMPLETE,streamId:streamId,reason:wrapReason(reason)});});}},{key:\"_processStreamMessage\",value:function _processStreamMessage(data){var streamId=data.streamId,sourceName=this.sourceName,targetName=data.sourceName,comObj=this.comObj;var streamController=this.streamControllers[streamId],streamSink=this.streamSinks[streamId];switch(data.stream){case StreamKind.START_COMPLETE:if(data.success){streamController.startCall.resolve();}else{streamController.startCall.reject(wrapReason(data.reason));}break;case StreamKind.PULL_COMPLETE:if(data.success){streamController.pullCall.resolve();}else{streamController.pullCall.reject(wrapReason(data.reason));}break;case StreamKind.PULL:if(!streamSink){comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:StreamKind.PULL_COMPLETE,streamId:streamId,success:true});break;}if(streamSink.desiredSize<=0&&data.desiredSize>0){streamSink.sinkCapability.resolve();}streamSink.desiredSize=data.desiredSize;new _Promise(function(resolve){resolve(streamSink.onPull&&streamSink.onPull());}).then(function(){comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:StreamKind.PULL_COMPLETE,streamId:streamId,success:true});},function(reason){comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:StreamKind.PULL_COMPLETE,streamId:streamId,reason:wrapReason(reason)});});break;case StreamKind.ENQUEUE:(0,_util.assert)(streamController,\"enqueue should have stream controller\");if(streamController.isClosed){break;}streamController.controller.enqueue(data.chunk);break;case StreamKind.CLOSE:(0,_util.assert)(streamController,\"close should have stream controller\");if(streamController.isClosed){break;}streamController.isClosed=true;streamController.controller.close();this._deleteStreamController(streamController,streamId);break;case StreamKind.ERROR:(0,_util.assert)(streamController,\"error should have stream controller\");streamController.controller.error(wrapReason(data.reason));this._deleteStreamController(streamController,streamId);break;case StreamKind.CANCEL_COMPLETE:if(data.success){streamController.cancelCall.resolve();}else{streamController.cancelCall.reject(wrapReason(data.reason));}this._deleteStreamController(streamController,streamId);break;case StreamKind.CANCEL:if(!streamSink){break;}new _Promise(function(resolve){resolve(streamSink.onCancel&&streamSink.onCancel(wrapReason(data.reason)));}).then(function(){comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:StreamKind.CANCEL_COMPLETE,streamId:streamId,success:true});},function(reason){comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:StreamKind.CANCEL_COMPLETE,streamId:streamId,reason:wrapReason(reason)});});streamSink.sinkCapability.reject(wrapReason(data.reason));streamSink.isCancelled=true;delete this.streamSinks[streamId];break;default:throw new Error(\"Unexpected stream case\");}}},{key:\"_deleteStreamController\",value:function(){var _deleteStreamController2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(streamController,streamId){return _regeneratorRuntime.wrap(function _callee12$(_context75){while(1)switch(_context75.prev=_context75.next){case 0:_context75.next=2;return _Promise.allSettled([streamController.startCall&&streamController.startCall.promise,streamController.pullCall&&streamController.pullCall.promise,streamController.cancelCall&&streamController.cancelCall.promise]);case 2:delete this.streamControllers[streamId];case 3:case\"end\":return _context75.stop();}},_callee12,this);}));function _deleteStreamController(_x9,_x10){return _deleteStreamController2.apply(this,arguments);}return _deleteStreamController;}()},{key:\"destroy\",value:function destroy(){this.comObj.removeEventListener(\"message\",this._onComObjOnMessage);}}]);return MessageHandler;}();exports.MessageHandler=MessageHandler;/***/}),(/* 142 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.Metadata=void 0;var _util=__w_pdfjs_require__(1);function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError(\"Cannot initialize the same private elements twice on an object\");}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"get\");return _classApplyDescriptorGet(receiver,descriptor);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"set\");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError(\"attempted to \"+action+\" private field on non-instance\");}return privateMap.get(receiver);}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError(\"attempted to set read only private field\");}descriptor.value=value;}}var _metadataMap=/*#__PURE__*/new _WeakMap();var _data=/*#__PURE__*/new _WeakMap();var Metadata=/*#__PURE__*/function(){function Metadata(_ref){_classCallCheck(this,Metadata);var parsedData=_ref.parsedData,rawData=_ref.rawData;_classPrivateFieldInitSpec(this,_metadataMap,{writable:true,value:void 0});_classPrivateFieldInitSpec(this,_data,{writable:true,value:void 0});_classPrivateFieldSet(this,_metadataMap,parsedData);_classPrivateFieldSet(this,_data,rawData);}_createClass(Metadata,[{key:\"getRaw\",value:function getRaw(){return _classPrivateFieldGet(this,_data);}},{key:\"get\",value:function get(name){var _classPrivateFieldGet2;return(_classPrivateFieldGet2=_classPrivateFieldGet(this,_metadataMap).get(name))!==null&&_classPrivateFieldGet2!==void 0?_classPrivateFieldGet2:null;}},{key:\"getAll\",value:function getAll(){return(0,_util.objectFromMap)(_classPrivateFieldGet(this,_metadataMap));}},{key:\"has\",value:function has(name){return _classPrivateFieldGet(this,_metadataMap).has(name);}}]);return Metadata;}();exports.Metadata=Metadata;/***/}),(/* 143 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.OptionalContentConfig=void 0;var _util=__w_pdfjs_require__(1);function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError(\"attempted to get private field on non-instance\");}return fn;}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError(\"Cannot initialize the same private elements twice on an object\");}}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"set\");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError(\"attempted to set read only private field\");}descriptor.value=value;}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"get\");return _classApplyDescriptorGet(receiver,descriptor);}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError(\"attempted to \"+action+\" private field on non-instance\");}return privateMap.get(receiver);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}var INTERNAL=_Symbol(\"INTERNAL\");var _visible=/*#__PURE__*/new _WeakMap();var OptionalContentGroup=/*#__PURE__*/function(){function OptionalContentGroup(name,intent){_classCallCheck(this,OptionalContentGroup);_classPrivateFieldInitSpec(this,_visible,{writable:true,value:true});this.name=name;this.intent=intent;}_createClass(OptionalContentGroup,[{key:\"visible\",get:function get(){return _classPrivateFieldGet(this,_visible);}},{key:\"_setVisible\",value:function _setVisible(internal,visible){if(internal!==INTERNAL){(0,_util.unreachable)(\"Internal method `_setVisible` called.\");}_classPrivateFieldSet(this,_visible,visible);}}]);return OptionalContentGroup;}();var _cachedHasInitialVisibility=/*#__PURE__*/new _WeakMap();var _groups=/*#__PURE__*/new _WeakMap();var _initialVisibility=/*#__PURE__*/new _WeakMap();var _order=/*#__PURE__*/new _WeakMap();var _evaluateVisibilityExpression=/*#__PURE__*/new _WeakSet();var OptionalContentConfig=/*#__PURE__*/function(){function OptionalContentConfig(data){_classCallCheck(this,OptionalContentConfig);_classPrivateMethodInitSpec(this,_evaluateVisibilityExpression);_classPrivateFieldInitSpec(this,_cachedHasInitialVisibility,{writable:true,value:true});_classPrivateFieldInitSpec(this,_groups,{writable:true,value:new _Map()});_classPrivateFieldInitSpec(this,_initialVisibility,{writable:true,value:null});_classPrivateFieldInitSpec(this,_order,{writable:true,value:null});this.name=null;this.creator=null;if(data===null){return;}this.name=data.name;this.creator=data.creator;_classPrivateFieldSet(this,_order,data.order);var _iterator59=_createForOfIteratorHelper(data.groups),_step59;try{for(_iterator59.s();!(_step59=_iterator59.n()).done;){var _group=_step59.value;_classPrivateFieldGet(this,_groups).set(_group.id,new OptionalContentGroup(_group.name,_group.intent));}}catch(err){_iterator59.e(err);}finally{_iterator59.f();}if(data.baseState===\"OFF\"){var _context76;var _iterator60=_createForOfIteratorHelper(_valuesInstanceProperty(_context76=_classPrivateFieldGet(this,_groups)).call(_context76)),_step60;try{for(_iterator60.s();!(_step60=_iterator60.n()).done;){var group=_step60.value;group._setVisible(INTERNAL,false);}}catch(err){_iterator60.e(err);}finally{_iterator60.f();}}var _iterator61=_createForOfIteratorHelper(data.on),_step61;try{for(_iterator61.s();!(_step61=_iterator61.n()).done;){var on=_step61.value;_classPrivateFieldGet(this,_groups).get(on)._setVisible(INTERNAL,true);}}catch(err){_iterator61.e(err);}finally{_iterator61.f();}var _iterator62=_createForOfIteratorHelper(data.off),_step62;try{for(_iterator62.s();!(_step62=_iterator62.n()).done;){var off=_step62.value;_classPrivateFieldGet(this,_groups).get(off)._setVisible(INTERNAL,false);}}catch(err){_iterator62.e(err);}finally{_iterator62.f();}_classPrivateFieldSet(this,_initialVisibility,new _Map());var _iterator63=_createForOfIteratorHelper(_classPrivateFieldGet(this,_groups)),_step63;try{for(_iterator63.s();!(_step63=_iterator63.n()).done;){var _step63$value=_slicedToArray(_step63.value,2),id=_step63$value[0],_group2=_step63$value[1];_classPrivateFieldGet(this,_initialVisibility).set(id,_group2.visible);}}catch(err){_iterator63.e(err);}finally{_iterator63.f();}}_createClass(OptionalContentConfig,[{key:\"isVisible\",value:function isVisible(group){if(_classPrivateFieldGet(this,_groups).size===0){return true;}if(!group){(0,_util.warn)(\"Optional content group not defined.\");return true;}if(group.type===\"OCG\"){if(!_classPrivateFieldGet(this,_groups).has(group.id)){(0,_util.warn)(\"Optional content group not found: \".concat(group.id));return true;}return _classPrivateFieldGet(this,_groups).get(group.id).visible;}else if(group.type===\"OCMD\"){if(group.expression){return _classPrivateMethodGet(this,_evaluateVisibilityExpression,_evaluateVisibilityExpression2).call(this,group.expression);}if(!group.policy||group.policy===\"AnyOn\"){var _iterator64=_createForOfIteratorHelper(group.ids),_step64;try{for(_iterator64.s();!(_step64=_iterator64.n()).done;){var id=_step64.value;if(!_classPrivateFieldGet(this,_groups).has(id)){(0,_util.warn)(\"Optional content group not found: \".concat(id));return true;}if(_classPrivateFieldGet(this,_groups).get(id).visible){return true;}}}catch(err){_iterator64.e(err);}finally{_iterator64.f();}return false;}else if(group.policy===\"AllOn\"){var _iterator65=_createForOfIteratorHelper(group.ids),_step65;try{for(_iterator65.s();!(_step65=_iterator65.n()).done;){var _id2=_step65.value;if(!_classPrivateFieldGet(this,_groups).has(_id2)){(0,_util.warn)(\"Optional content group not found: \".concat(_id2));return true;}if(!_classPrivateFieldGet(this,_groups).get(_id2).visible){return false;}}}catch(err){_iterator65.e(err);}finally{_iterator65.f();}return true;}else if(group.policy===\"AnyOff\"){var _iterator66=_createForOfIteratorHelper(group.ids),_step66;try{for(_iterator66.s();!(_step66=_iterator66.n()).done;){var _id3=_step66.value;if(!_classPrivateFieldGet(this,_groups).has(_id3)){(0,_util.warn)(\"Optional content group not found: \".concat(_id3));return true;}if(!_classPrivateFieldGet(this,_groups).get(_id3).visible){return true;}}}catch(err){_iterator66.e(err);}finally{_iterator66.f();}return false;}else if(group.policy===\"AllOff\"){var _iterator67=_createForOfIteratorHelper(group.ids),_step67;try{for(_iterator67.s();!(_step67=_iterator67.n()).done;){var _id4=_step67.value;if(!_classPrivateFieldGet(this,_groups).has(_id4)){(0,_util.warn)(\"Optional content group not found: \".concat(_id4));return true;}if(_classPrivateFieldGet(this,_groups).get(_id4).visible){return false;}}}catch(err){_iterator67.e(err);}finally{_iterator67.f();}return true;}(0,_util.warn)(\"Unknown optional content policy \".concat(group.policy,\".\"));return true;}(0,_util.warn)(\"Unknown group type \".concat(group.type,\".\"));return true;}},{key:\"setVisibility\",value:function setVisibility(id){var visible=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(!_classPrivateFieldGet(this,_groups).has(id)){(0,_util.warn)(\"Optional content group not found: \".concat(id));return;}_classPrivateFieldGet(this,_groups).get(id)._setVisible(INTERNAL,!!visible);_classPrivateFieldSet(this,_cachedHasInitialVisibility,null);}},{key:\"hasInitialVisibility\",get:function get(){if(_classPrivateFieldGet(this,_cachedHasInitialVisibility)!==null){return _classPrivateFieldGet(this,_cachedHasInitialVisibility);}var _iterator68=_createForOfIteratorHelper(_classPrivateFieldGet(this,_groups)),_step68;try{for(_iterator68.s();!(_step68=_iterator68.n()).done;){var _step68$value=_slicedToArray(_step68.value,2),id=_step68$value[0],group=_step68$value[1];var visible=_classPrivateFieldGet(this,_initialVisibility).get(id);if(group.visible!==visible){return _classPrivateFieldSet(this,_cachedHasInitialVisibility,false);}}}catch(err){_iterator68.e(err);}finally{_iterator68.f();}return _classPrivateFieldSet(this,_cachedHasInitialVisibility,true);}},{key:\"getOrder\",value:function getOrder(){var _context78;if(!_classPrivateFieldGet(this,_groups).size){return null;}if(_classPrivateFieldGet(this,_order)){var _context77;return _sliceInstanceProperty(_context77=_classPrivateFieldGet(this,_order)).call(_context77);}return _toConsumableArray(_keysInstanceProperty(_context78=_classPrivateFieldGet(this,_groups)).call(_context78));}},{key:\"getGroups\",value:function getGroups(){return _classPrivateFieldGet(this,_groups).size>0?(0,_util.objectFromMap)(_classPrivateFieldGet(this,_groups)):null;}},{key:\"getGroup\",value:function getGroup(id){return _classPrivateFieldGet(this,_groups).get(id)||null;}}]);return OptionalContentConfig;}();exports.OptionalContentConfig=OptionalContentConfig;function _evaluateVisibilityExpression2(array){var length=array.length;if(length<2){return true;}var operator=array[0];for(var i=1;i<length;i++){var element=array[i];var state=void 0;if(Array.isArray(element)){state=_classPrivateMethodGet(this,_evaluateVisibilityExpression,_evaluateVisibilityExpression2).call(this,element);}else if(_classPrivateFieldGet(this,_groups).has(element)){state=_classPrivateFieldGet(this,_groups).get(element).visible;}else{(0,_util.warn)(\"Optional content group not found: \".concat(element));return true;}switch(operator){case\"And\":if(!state){return false;}break;case\"Or\":if(state){return true;}break;case\"Not\":return!state;default:return true;}}return operator===\"And\";}/***/}),(/* 144 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.PDFDataTransportStream=void 0;var _util=__w_pdfjs_require__(1);var _display_utils=__w_pdfjs_require__(133);var PDFDataTransportStream=/*#__PURE__*/function(){function PDFDataTransportStream(params,pdfDataRangeTransport){var _this35=this;_classCallCheck(this,PDFDataTransportStream);(0,_util.assert)(pdfDataRangeTransport,'PDFDataTransportStream - missing required \"pdfDataRangeTransport\" argument.');this._queuedChunks=[];this._progressiveDone=params.progressiveDone||false;this._contentDispositionFilename=params.contentDispositionFilename||null;var initialData=params.initialData;if((initialData===null||initialData===void 0?void 0:initialData.length)>0){var buffer=new Uint8Array(initialData).buffer;this._queuedChunks.push(buffer);}this._pdfDataRangeTransport=pdfDataRangeTransport;this._isStreamingSupported=!params.disableStream;this._isRangeSupported=!params.disableRange;this._contentLength=params.length;this._fullRequestReader=null;this._rangeReaders=[];this._pdfDataRangeTransport.addRangeListener(function(begin,chunk){_this35._onReceiveData({begin:begin,chunk:chunk});});this._pdfDataRangeTransport.addProgressListener(function(loaded,total){_this35._onProgress({loaded:loaded,total:total});});this._pdfDataRangeTransport.addProgressiveReadListener(function(chunk){_this35._onReceiveData({chunk:chunk});});this._pdfDataRangeTransport.addProgressiveDoneListener(function(){_this35._onProgressiveDone();});this._pdfDataRangeTransport.transportReady();}_createClass(PDFDataTransportStream,[{key:\"_onReceiveData\",value:function _onReceiveData(args){var buffer=new Uint8Array(args.chunk).buffer;if(args.begin===undefined){if(this._fullRequestReader){this._fullRequestReader._enqueue(buffer);}else{this._queuedChunks.push(buffer);}}else{var found=this._rangeReaders.some(function(rangeReader){if(rangeReader._begin!==args.begin){return false;}rangeReader._enqueue(buffer);return true;});(0,_util.assert)(found,\"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.\");}}},{key:\"_progressiveDataLength\",get:function get(){var _this$_fullRequestRea,_this$_fullRequestRea2;return(_this$_fullRequestRea=(_this$_fullRequestRea2=this._fullRequestReader)===null||_this$_fullRequestRea2===void 0?void 0:_this$_fullRequestRea2._loaded)!==null&&_this$_fullRequestRea!==void 0?_this$_fullRequestRea:0;}},{key:\"_onProgress\",value:function _onProgress(evt){if(evt.total===undefined){var firstReader=this._rangeReaders[0];if(firstReader!==null&&firstReader!==void 0&&firstReader.onProgress){firstReader.onProgress({loaded:evt.loaded});}}else{var fullReader=this._fullRequestReader;if(fullReader!==null&&fullReader!==void 0&&fullReader.onProgress){fullReader.onProgress({loaded:evt.loaded,total:evt.total});}}}},{key:\"_onProgressiveDone\",value:function _onProgressiveDone(){if(this._fullRequestReader){this._fullRequestReader.progressiveDone();}this._progressiveDone=true;}},{key:\"_removeRangeReader\",value:function _removeRangeReader(reader){var _context79;var i=_indexOfInstanceProperty(_context79=this._rangeReaders).call(_context79,reader);if(i>=0){var _context80;_spliceInstanceProperty(_context80=this._rangeReaders).call(_context80,i,1);}}},{key:\"getFullReader\",value:function getFullReader(){(0,_util.assert)(!this._fullRequestReader,\"PDFDataTransportStream.getFullReader can only be called once.\");var queuedChunks=this._queuedChunks;this._queuedChunks=null;return new PDFDataTransportStreamReader(this,queuedChunks,this._progressiveDone,this._contentDispositionFilename);}},{key:\"getRangeReader\",value:function getRangeReader(begin,end){if(end<=this._progressiveDataLength){return null;}var reader=new PDFDataTransportStreamRangeReader(this,begin,end);this._pdfDataRangeTransport.requestDataRange(begin,end);this._rangeReaders.push(reader);return reader;}},{key:\"cancelAllRequests\",value:function cancelAllRequests(reason){var _context81;if(this._fullRequestReader){this._fullRequestReader.cancel(reason);}var _iterator69=_createForOfIteratorHelper(_sliceInstanceProperty(_context81=this._rangeReaders).call(_context81,0)),_step69;try{for(_iterator69.s();!(_step69=_iterator69.n()).done;){var reader=_step69.value;reader.cancel(reason);}}catch(err){_iterator69.e(err);}finally{_iterator69.f();}this._pdfDataRangeTransport.abort();}}]);return PDFDataTransportStream;}();exports.PDFDataTransportStream=PDFDataTransportStream;var PDFDataTransportStreamReader=/*#__PURE__*/function(){function PDFDataTransportStreamReader(stream,queuedChunks){_classCallCheck(this,PDFDataTransportStreamReader);var progressiveDone=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var contentDispositionFilename=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;this._stream=stream;this._done=progressiveDone||false;this._filename=(0,_display_utils.isPdfFile)(contentDispositionFilename)?contentDispositionFilename:null;this._queuedChunks=queuedChunks||[];this._loaded=0;var _iterator70=_createForOfIteratorHelper(this._queuedChunks),_step70;try{for(_iterator70.s();!(_step70=_iterator70.n()).done;){var chunk=_step70.value;this._loaded+=chunk.byteLength;}}catch(err){_iterator70.e(err);}finally{_iterator70.f();}this._requests=[];this._headersReady=_Promise.resolve();stream._fullRequestReader=this;this.onProgress=null;}_createClass(PDFDataTransportStreamReader,[{key:\"_enqueue\",value:function _enqueue(chunk){if(this._done){return;}if(this._requests.length>0){var requestCapability=this._requests.shift();requestCapability.resolve({value:chunk,done:false});}else{this._queuedChunks.push(chunk);}this._loaded+=chunk.byteLength;}},{key:\"headersReady\",get:function get(){return this._headersReady;}},{key:\"filename\",get:function get(){return this._filename;}},{key:\"isRangeSupported\",get:function get(){return this._stream._isRangeSupported;}},{key:\"isStreamingSupported\",get:function get(){return this._stream._isStreamingSupported;}},{key:\"contentLength\",get:function get(){return this._stream._contentLength;}},{key:\"read\",value:function(){var _read=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(){var chunk,requestCapability;return _regeneratorRuntime.wrap(function _callee13$(_context82){while(1)switch(_context82.prev=_context82.next){case 0:if(!(this._queuedChunks.length>0)){_context82.next=3;break;}chunk=this._queuedChunks.shift();return _context82.abrupt(\"return\",{value:chunk,done:false});case 3:if(!this._done){_context82.next=5;break;}return _context82.abrupt(\"return\",{value:undefined,done:true});case 5:requestCapability=(0,_util.createPromiseCapability)();this._requests.push(requestCapability);return _context82.abrupt(\"return\",requestCapability.promise);case 8:case\"end\":return _context82.stop();}},_callee13,this);}));function read(){return _read.apply(this,arguments);}return read;}()},{key:\"cancel\",value:function cancel(reason){this._done=true;var _iterator71=_createForOfIteratorHelper(this._requests),_step71;try{for(_iterator71.s();!(_step71=_iterator71.n()).done;){var requestCapability=_step71.value;requestCapability.resolve({value:undefined,done:true});}}catch(err){_iterator71.e(err);}finally{_iterator71.f();}this._requests.length=0;}},{key:\"progressiveDone\",value:function progressiveDone(){if(this._done){return;}this._done=true;}}]);return PDFDataTransportStreamReader;}();var PDFDataTransportStreamRangeReader=/*#__PURE__*/function(){function PDFDataTransportStreamRangeReader(stream,begin,end){_classCallCheck(this,PDFDataTransportStreamRangeReader);this._stream=stream;this._begin=begin;this._end=end;this._queuedChunk=null;this._requests=[];this._done=false;this.onProgress=null;}_createClass(PDFDataTransportStreamRangeReader,[{key:\"_enqueue\",value:function _enqueue(chunk){if(this._done){return;}if(this._requests.length===0){this._queuedChunk=chunk;}else{var requestsCapability=this._requests.shift();requestsCapability.resolve({value:chunk,done:false});var _iterator72=_createForOfIteratorHelper(this._requests),_step72;try{for(_iterator72.s();!(_step72=_iterator72.n()).done;){var requestCapability=_step72.value;requestCapability.resolve({value:undefined,done:true});}}catch(err){_iterator72.e(err);}finally{_iterator72.f();}this._requests.length=0;}this._done=true;this._stream._removeRangeReader(this);}},{key:\"isStreamingSupported\",get:function get(){return false;}},{key:\"read\",value:function(){var _read2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(){var chunk,requestCapability;return _regeneratorRuntime.wrap(function _callee14$(_context83){while(1)switch(_context83.prev=_context83.next){case 0:if(!this._queuedChunk){_context83.next=4;break;}chunk=this._queuedChunk;this._queuedChunk=null;return _context83.abrupt(\"return\",{value:chunk,done:false});case 4:if(!this._done){_context83.next=6;break;}return _context83.abrupt(\"return\",{value:undefined,done:true});case 6:requestCapability=(0,_util.createPromiseCapability)();this._requests.push(requestCapability);return _context83.abrupt(\"return\",requestCapability.promise);case 9:case\"end\":return _context83.stop();}},_callee14,this);}));function read(){return _read2.apply(this,arguments);}return read;}()},{key:\"cancel\",value:function cancel(reason){this._done=true;var _iterator73=_createForOfIteratorHelper(this._requests),_step73;try{for(_iterator73.s();!(_step73=_iterator73.n()).done;){var requestCapability=_step73.value;requestCapability.resolve({value:undefined,done:true});}}catch(err){_iterator73.e(err);}finally{_iterator73.f();}this._requests.length=0;this._stream._removeRangeReader(this);}}]);return PDFDataTransportStreamRangeReader;}();/***/}),(/* 145 */ /***/function(__unused_webpack_module,exports){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.XfaText=void 0;var XfaText=/*#__PURE__*/function(){function XfaText(){_classCallCheck(this,XfaText);}_createClass(XfaText,null,[{key:\"textContent\",value:function textContent(xfa){var items=[];var output={items:items,styles:Object.create(null)};function walk(node){var _node$attributes;if(!node){return;}var str=null;var name=node.name;if(name===\"#text\"){str=node.value;}else if(!XfaText.shouldBuildText(name)){return;}else if(node!==null&&node!==void 0&&(_node$attributes=node.attributes)!==null&&_node$attributes!==void 0&&_node$attributes.textContent){str=node.attributes.textContent;}else if(node.value){str=node.value;}if(str!==null){items.push({str:str});}if(!node.children){return;}var _iterator74=_createForOfIteratorHelper(node.children),_step74;try{for(_iterator74.s();!(_step74=_iterator74.n()).done;){var child=_step74.value;walk(child);}}catch(err){_iterator74.e(err);}finally{_iterator74.f();}}walk(xfa);return output;}},{key:\"shouldBuildText\",value:function shouldBuildText(name){return!(name===\"textarea\"||name===\"input\"||name===\"option\"||name===\"select\");}}]);return XfaText;}();exports.XfaText=XfaText;/***/}),(/* 146 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.NodeStandardFontDataFactory=exports.NodeCanvasFactory=exports.NodeCMapReaderFactory=void 0;var _base_factory=__w_pdfjs_require__(134);;var fetchData=function fetchData(url){return new _Promise(function(resolve,reject){var fs=__webpack_require__(/*! fs */ \"?022b\");fs.readFile(url,function(error,data){if(error||!data){reject(new Error(error));return;}resolve(new Uint8Array(data));});});};var NodeCanvasFactory=/*#__PURE__*/function(_base_factory$BaseCan2){_inherits(NodeCanvasFactory,_base_factory$BaseCan2);function NodeCanvasFactory(){_classCallCheck(this,NodeCanvasFactory);return _callSuper(this,NodeCanvasFactory,arguments);}_createClass(NodeCanvasFactory,[{key:\"_createCanvas\",value:function _createCanvas(width,height){var Canvas=__webpack_require__(/*! canvas */ \"?1b85\");return Canvas.createCanvas(width,height);}}]);return NodeCanvasFactory;}(_base_factory.BaseCanvasFactory);exports.NodeCanvasFactory=NodeCanvasFactory;var NodeCMapReaderFactory=/*#__PURE__*/function(_base_factory$BaseCMa2){_inherits(NodeCMapReaderFactory,_base_factory$BaseCMa2);function NodeCMapReaderFactory(){_classCallCheck(this,NodeCMapReaderFactory);return _callSuper(this,NodeCMapReaderFactory,arguments);}_createClass(NodeCMapReaderFactory,[{key:\"_fetchData\",value:function _fetchData(url,compressionType){return fetchData(url).then(function(data){return{cMapData:data,compressionType:compressionType};});}}]);return NodeCMapReaderFactory;}(_base_factory.BaseCMapReaderFactory);exports.NodeCMapReaderFactory=NodeCMapReaderFactory;var NodeStandardFontDataFactory=/*#__PURE__*/function(_base_factory$BaseSta2){_inherits(NodeStandardFontDataFactory,_base_factory$BaseSta2);function NodeStandardFontDataFactory(){_classCallCheck(this,NodeStandardFontDataFactory);return _callSuper(this,NodeStandardFontDataFactory,arguments);}_createClass(NodeStandardFontDataFactory,[{key:\"_fetchData\",value:function _fetchData(url){return fetchData(url);}}]);return NodeStandardFontDataFactory;}(_base_factory.BaseStandardFontDataFactory);exports.NodeStandardFontDataFactory=NodeStandardFontDataFactory;/***/}),(/* 147 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.AnnotationEditorLayer=void 0;var _tools=__w_pdfjs_require__(132);var _util=__w_pdfjs_require__(1);var _freetext=__w_pdfjs_require__(148);var _ink=__w_pdfjs_require__(149);function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _defineProperty(obj,key,value){if(key in obj){_Object$defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError(\"Cannot initialize the same private elements twice on an object\");}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError(\"attempted to get private field on non-instance\");}return fn;}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"get\");return _classApplyDescriptorGet(receiver,descriptor);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"set\");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError(\"attempted to \"+action+\" private field on non-instance\");}return privateMap.get(receiver);}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError(\"attempted to set read only private field\");}descriptor.value=value;}}var _accessibilityManager=/*#__PURE__*/new _WeakMap();var _allowClick=/*#__PURE__*/new _WeakMap();var _boundPointerup=/*#__PURE__*/new _WeakMap();var _boundPointerdown=/*#__PURE__*/new _WeakMap();var _editors=/*#__PURE__*/new _WeakMap();var _hadPointerDown=/*#__PURE__*/new _WeakMap();var _isCleaningUp=/*#__PURE__*/new _WeakMap();var _uiManager=/*#__PURE__*/new _WeakMap();var _changeParent=/*#__PURE__*/new _WeakSet();var _createNewEditor=/*#__PURE__*/new _WeakSet();var _createAndAddNewEditor=/*#__PURE__*/new _WeakSet();var _cleanup=/*#__PURE__*/new _WeakSet();var AnnotationEditorLayer=/*#__PURE__*/function(){function AnnotationEditorLayer(options){_classCallCheck(this,AnnotationEditorLayer);_classPrivateMethodInitSpec(this,_cleanup);_classPrivateMethodInitSpec(this,_createAndAddNewEditor);_classPrivateMethodInitSpec(this,_createNewEditor);_classPrivateMethodInitSpec(this,_changeParent);_classPrivateFieldInitSpec(this,_accessibilityManager,{writable:true,value:void 0});_classPrivateFieldInitSpec(this,_allowClick,{writable:true,value:false});_classPrivateFieldInitSpec(this,_boundPointerup,{writable:true,value:this.pointerup.bind(this)});_classPrivateFieldInitSpec(this,_boundPointerdown,{writable:true,value:this.pointerdown.bind(this)});_classPrivateFieldInitSpec(this,_editors,{writable:true,value:new _Map()});_classPrivateFieldInitSpec(this,_hadPointerDown,{writable:true,value:false});_classPrivateFieldInitSpec(this,_isCleaningUp,{writable:true,value:false});_classPrivateFieldInitSpec(this,_uiManager,{writable:true,value:void 0});if(!AnnotationEditorLayer._initialized){AnnotationEditorLayer._initialized=true;_freetext.FreeTextEditor.initialize(options.l10n);_ink.InkEditor.initialize(options.l10n);options.uiManager.registerEditorTypes([_freetext.FreeTextEditor,_ink.InkEditor]);}_classPrivateFieldSet(this,_uiManager,options.uiManager);this.annotationStorage=options.annotationStorage;this.pageIndex=options.pageIndex;this.div=options.div;_classPrivateFieldSet(this,_accessibilityManager,options.accessibilityManager);_classPrivateFieldGet(this,_uiManager).addLayer(this);}_createClass(AnnotationEditorLayer,[{key:\"updateToolbar\",value:function updateToolbar(mode){_classPrivateFieldGet(this,_uiManager).updateToolbar(mode);}},{key:\"updateMode\",value:function updateMode(){var mode=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_classPrivateFieldGet(this,_uiManager).getMode();_classPrivateMethodGet(this,_cleanup,_cleanup2).call(this);if(mode===_util.AnnotationEditorType.INK){this.addInkEditorIfNeeded(false);this.disableClick();}else{this.enableClick();}_classPrivateFieldGet(this,_uiManager).unselectAll();}},{key:\"addInkEditorIfNeeded\",value:function addInkEditorIfNeeded(isCommitting){if(!isCommitting&&_classPrivateFieldGet(this,_uiManager).getMode()!==_util.AnnotationEditorType.INK){return;}if(!isCommitting){var _context84;var _iterator75=_createForOfIteratorHelper(_valuesInstanceProperty(_context84=_classPrivateFieldGet(this,_editors)).call(_context84)),_step75;try{for(_iterator75.s();!(_step75=_iterator75.n()).done;){var _editor2=_step75.value;if(_editor2.isEmpty()){_editor2.setInBackground();return;}}}catch(err){_iterator75.e(err);}finally{_iterator75.f();}}var editor=_classPrivateMethodGet(this,_createAndAddNewEditor,_createAndAddNewEditor2).call(this,{offsetX:0,offsetY:0});editor.setInBackground();}},{key:\"setEditingState\",value:function setEditingState(isEditing){_classPrivateFieldGet(this,_uiManager).setEditingState(isEditing);}},{key:\"addCommands\",value:function addCommands(params){_classPrivateFieldGet(this,_uiManager).addCommands(params);}},{key:\"enable\",value:function enable(){var _context85;this.div.style.pointerEvents=\"auto\";var _iterator76=_createForOfIteratorHelper(_valuesInstanceProperty(_context85=_classPrivateFieldGet(this,_editors)).call(_context85)),_step76;try{for(_iterator76.s();!(_step76=_iterator76.n()).done;){var editor=_step76.value;editor.enableEditing();}}catch(err){_iterator76.e(err);}finally{_iterator76.f();}}},{key:\"disable\",value:function disable(){var _context86;this.div.style.pointerEvents=\"none\";var _iterator77=_createForOfIteratorHelper(_valuesInstanceProperty(_context86=_classPrivateFieldGet(this,_editors)).call(_context86)),_step77;try{for(_iterator77.s();!(_step77=_iterator77.n()).done;){var editor=_step77.value;editor.disableEditing();}}catch(err){_iterator77.e(err);}finally{_iterator77.f();}}},{key:\"setActiveEditor\",value:function setActiveEditor(editor){var currentActive=_classPrivateFieldGet(this,_uiManager).getActive();if(currentActive===editor){return;}_classPrivateFieldGet(this,_uiManager).setActiveEditor(editor);}},{key:\"enableClick\",value:function enableClick(){this.div.addEventListener(\"pointerdown\",_classPrivateFieldGet(this,_boundPointerdown));this.div.addEventListener(\"pointerup\",_classPrivateFieldGet(this,_boundPointerup));}},{key:\"disableClick\",value:function disableClick(){this.div.removeEventListener(\"pointerdown\",_classPrivateFieldGet(this,_boundPointerdown));this.div.removeEventListener(\"pointerup\",_classPrivateFieldGet(this,_boundPointerup));}},{key:\"attach\",value:function attach(editor){_classPrivateFieldGet(this,_editors).set(editor.id,editor);}},{key:\"detach\",value:function detach(editor){var _classPrivateFieldGet2;_classPrivateFieldGet(this,_editors).delete(editor.id);(_classPrivateFieldGet2=_classPrivateFieldGet(this,_accessibilityManager))===null||_classPrivateFieldGet2===void 0?void 0:_classPrivateFieldGet2.removePointerInTextLayer(editor.contentDiv);}},{key:\"remove\",value:function remove(editor){var _this36=this;_classPrivateFieldGet(this,_uiManager).removeEditor(editor);this.detach(editor);this.annotationStorage.remove(editor.id);editor.div.style.display=\"none\";_setTimeout(function(){editor.div.style.display=\"\";editor.div.remove();editor.isAttachedToDOM=false;if(document.activeElement===document.body){_classPrivateFieldGet(_this36,_uiManager).focusMainContainer();}},0);if(!_classPrivateFieldGet(this,_isCleaningUp)){this.addInkEditorIfNeeded(false);}}},{key:\"add\",value:function add(editor){_classPrivateMethodGet(this,_changeParent,_changeParent2).call(this,editor);_classPrivateFieldGet(this,_uiManager).addEditor(editor);this.attach(editor);if(!editor.isAttachedToDOM){var div=editor.render();this.div.append(div);editor.isAttachedToDOM=true;}this.moveEditorInDOM(editor);editor.onceAdded();this.addToAnnotationStorage(editor);}},{key:\"moveEditorInDOM\",value:function moveEditorInDOM(editor){var _classPrivateFieldGet3;(_classPrivateFieldGet3=_classPrivateFieldGet(this,_accessibilityManager))===null||_classPrivateFieldGet3===void 0?void 0:_classPrivateFieldGet3.moveElementInDOM(this.div,editor.div,editor.contentDiv,true);}},{key:\"addToAnnotationStorage\",value:function addToAnnotationStorage(editor){if(!editor.isEmpty()&&!this.annotationStorage.has(editor.id)){this.annotationStorage.setValue(editor.id,editor);}}},{key:\"addOrRebuild\",value:function addOrRebuild(editor){if(editor.needsToBeRebuilt()){editor.rebuild();}else{this.add(editor);}}},{key:\"addANewEditor\",value:function addANewEditor(editor){var _this37=this;var cmd=function cmd(){_this37.addOrRebuild(editor);};var undo=function undo(){editor.remove();};this.addCommands({cmd:cmd,undo:undo,mustExec:true});}},{key:\"addUndoableEditor\",value:function addUndoableEditor(editor){var _this38=this;var cmd=function cmd(){_this38.addOrRebuild(editor);};var undo=function undo(){editor.remove();};this.addCommands({cmd:cmd,undo:undo,mustExec:false});}},{key:\"getNextId\",value:function getNextId(){return _classPrivateFieldGet(this,_uiManager).getId();}},{key:\"deserialize\",value:function deserialize(data){switch(data.annotationType){case _util.AnnotationEditorType.FREETEXT:return _freetext.FreeTextEditor.deserialize(data,this);case _util.AnnotationEditorType.INK:return _ink.InkEditor.deserialize(data,this);}return null;}},{key:\"setSelected\",value:function setSelected(editor){_classPrivateFieldGet(this,_uiManager).setSelected(editor);}},{key:\"toggleSelected\",value:function toggleSelected(editor){_classPrivateFieldGet(this,_uiManager).toggleSelected(editor);}},{key:\"isSelected\",value:function isSelected(editor){return _classPrivateFieldGet(this,_uiManager).isSelected(editor);}},{key:\"unselect\",value:function unselect(editor){_classPrivateFieldGet(this,_uiManager).unselect(editor);}},{key:\"pointerup\",value:function pointerup(event){var isMac=_tools.KeyboardManager.platform.isMac;if(event.button!==0||event.ctrlKey&&isMac){return;}if(event.target!==this.div){return;}if(!_classPrivateFieldGet(this,_hadPointerDown)){return;}_classPrivateFieldSet(this,_hadPointerDown,false);if(!_classPrivateFieldGet(this,_allowClick)){_classPrivateFieldSet(this,_allowClick,true);return;}_classPrivateMethodGet(this,_createAndAddNewEditor,_createAndAddNewEditor2).call(this,event);}},{key:\"pointerdown\",value:function pointerdown(event){var isMac=_tools.KeyboardManager.platform.isMac;if(event.button!==0||event.ctrlKey&&isMac){return;}if(event.target!==this.div){return;}_classPrivateFieldSet(this,_hadPointerDown,true);var editor=_classPrivateFieldGet(this,_uiManager).getActive();_classPrivateFieldSet(this,_allowClick,!editor||editor.isEmpty());}},{key:\"drop\",value:function drop(event){var id=event.dataTransfer.getData(\"text/plain\");var editor=_classPrivateFieldGet(this,_uiManager).getEditor(id);if(!editor){return;}event.preventDefault();event.dataTransfer.dropEffect=\"move\";_classPrivateMethodGet(this,_changeParent,_changeParent2).call(this,editor);var rect=this.div.getBoundingClientRect();var endX=event.clientX-rect.x;var endY=event.clientY-rect.y;editor.translate(endX-editor.startX,endY-editor.startY);this.moveEditorInDOM(editor);editor.div.focus();}},{key:\"dragover\",value:function dragover(event){event.preventDefault();}},{key:\"destroy\",value:function destroy(){var _context87;var _classPrivateFieldGet4;if(((_classPrivateFieldGet4=_classPrivateFieldGet(this,_uiManager).getActive())===null||_classPrivateFieldGet4===void 0?void 0:_classPrivateFieldGet4.parent)===this){_classPrivateFieldGet(this,_uiManager).setActiveEditor(null);}var _iterator78=_createForOfIteratorHelper(_valuesInstanceProperty(_context87=_classPrivateFieldGet(this,_editors)).call(_context87)),_step78;try{for(_iterator78.s();!(_step78=_iterator78.n()).done;){var editor=_step78.value;var _classPrivateFieldGet5;(_classPrivateFieldGet5=_classPrivateFieldGet(this,_accessibilityManager))===null||_classPrivateFieldGet5===void 0?void 0:_classPrivateFieldGet5.removePointerInTextLayer(editor.contentDiv);editor.isAttachedToDOM=false;editor.div.remove();editor.parent=null;}}catch(err){_iterator78.e(err);}finally{_iterator78.f();}this.div=null;_classPrivateFieldGet(this,_editors).clear();_classPrivateFieldGet(this,_uiManager).removeLayer(this);}},{key:\"render\",value:function render(parameters){this.viewport=parameters.viewport;(0,_tools.bindEvents)(this,this.div,[\"dragover\",\"drop\"]);this.setDimensions();var _iterator79=_createForOfIteratorHelper(_classPrivateFieldGet(this,_uiManager).getEditors(this.pageIndex)),_step79;try{for(_iterator79.s();!(_step79=_iterator79.n()).done;){var editor=_step79.value;this.add(editor);}}catch(err){_iterator79.e(err);}finally{_iterator79.f();}this.updateMode();}},{key:\"update\",value:function update(parameters){this.viewport=parameters.viewport;this.setDimensions();this.updateMode();}},{key:\"scaleFactor\",get:function get(){return this.viewport.scale;}},{key:\"pageDimensions\",get:function get(){var _this$viewport$viewBo=_slicedToArray(this.viewport.viewBox,4),pageLLx=_this$viewport$viewBo[0],pageLLy=_this$viewport$viewBo[1],pageURx=_this$viewport$viewBo[2],pageURy=_this$viewport$viewBo[3];var width=pageURx-pageLLx;var height=pageURy-pageLLy;return[width,height];}},{key:\"viewportBaseDimensions\",get:function get(){var _this$viewport=this.viewport,width=_this$viewport.width,height=_this$viewport.height,rotation=_this$viewport.rotation;return rotation%180===0?[width,height]:[height,width];}},{key:\"setDimensions\",value:function setDimensions(){var _this$viewport2=this.viewport,width=_this$viewport2.width,height=_this$viewport2.height,rotation=_this$viewport2.rotation;var flipOrientation=rotation%180!==0,widthStr=Math.floor(width)+\"px\",heightStr=Math.floor(height)+\"px\";this.div.style.width=flipOrientation?heightStr:widthStr;this.div.style.height=flipOrientation?widthStr:heightStr;this.div.setAttribute(\"data-main-rotation\",rotation);}}]);return AnnotationEditorLayer;}();exports.AnnotationEditorLayer=AnnotationEditorLayer;function _changeParent2(editor){var _editor$parent;if(editor.parent===this){return;}this.attach(editor);editor.pageIndex=this.pageIndex;(_editor$parent=editor.parent)===null||_editor$parent===void 0?void 0:_editor$parent.detach(editor);editor.parent=this;if(editor.div&&editor.isAttachedToDOM){editor.div.remove();this.div.append(editor.div);}}function _createNewEditor2(params){switch(_classPrivateFieldGet(this,_uiManager).getMode()){case _util.AnnotationEditorType.FREETEXT:return new _freetext.FreeTextEditor(params);case _util.AnnotationEditorType.INK:return new _ink.InkEditor(params);}return null;}function _createAndAddNewEditor2(event){var id=this.getNextId();var editor=_classPrivateMethodGet(this,_createNewEditor,_createNewEditor2).call(this,{parent:this,id:id,x:event.offsetX,y:event.offsetY});if(editor){this.add(editor);}return editor;}function _cleanup2(){var _context88;_classPrivateFieldSet(this,_isCleaningUp,true);var _iterator80=_createForOfIteratorHelper(_valuesInstanceProperty(_context88=_classPrivateFieldGet(this,_editors)).call(_context88)),_step80;try{for(_iterator80.s();!(_step80=_iterator80.n()).done;){var editor=_step80.value;if(editor.isEmpty()){editor.remove();}}}catch(err){_iterator80.e(err);}finally{_iterator80.f();}_classPrivateFieldSet(this,_isCleaningUp,false);}_defineProperty(AnnotationEditorLayer,\"_initialized\",false);/***/}),(/* 148 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.FreeTextEditor=void 0;var _util=__w_pdfjs_require__(1);var _tools=__w_pdfjs_require__(132);var _editor=__w_pdfjs_require__(131);function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _defineProperty(obj,key,value){if(key in obj){_Object$defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError(\"Cannot initialize the same private elements twice on an object\");}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"get\");return _classApplyDescriptorGet(receiver,descriptor);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError(\"attempted to get private field on non-instance\");}return fn;}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"set\");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError(\"attempted to \"+action+\" private field on non-instance\");}return privateMap.get(receiver);}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError(\"attempted to set read only private field\");}descriptor.value=value;}}var _boundEditorDivBlur=/*#__PURE__*/new _WeakMap();var _boundEditorDivFocus=/*#__PURE__*/new _WeakMap();var _boundEditorDivKeydown=/*#__PURE__*/new _WeakMap();var _color=/*#__PURE__*/new _WeakMap();var _content=/*#__PURE__*/new _WeakMap();var _hasAlreadyBeenCommitted=/*#__PURE__*/new _WeakMap();var _fontSize=/*#__PURE__*/new _WeakMap();var _updateFontSize=/*#__PURE__*/new _WeakSet();var _updateColor=/*#__PURE__*/new _WeakSet();var _extractText=/*#__PURE__*/new _WeakSet();var _setEditorDimensions=/*#__PURE__*/new _WeakSet();var FreeTextEditor=/*#__PURE__*/function(_editor$AnnotationEdi){_inherits(FreeTextEditor,_editor$AnnotationEdi);function FreeTextEditor(params){var _this39;_classCallCheck(this,FreeTextEditor);_this39=_callSuper(this,FreeTextEditor,[_objectSpread(_objectSpread({},params),{},{name:\"freeTextEditor\"})]);_classPrivateMethodInitSpec(_assertThisInitialized(_this39),_setEditorDimensions);_classPrivateMethodInitSpec(_assertThisInitialized(_this39),_extractText);_classPrivateMethodInitSpec(_assertThisInitialized(_this39),_updateColor);_classPrivateMethodInitSpec(_assertThisInitialized(_this39),_updateFontSize);_classPrivateFieldInitSpec(_assertThisInitialized(_this39),_boundEditorDivBlur,{writable:true,value:_this39.editorDivBlur.bind(_assertThisInitialized(_this39))});_classPrivateFieldInitSpec(_assertThisInitialized(_this39),_boundEditorDivFocus,{writable:true,value:_this39.editorDivFocus.bind(_assertThisInitialized(_this39))});_classPrivateFieldInitSpec(_assertThisInitialized(_this39),_boundEditorDivKeydown,{writable:true,value:_this39.editorDivKeydown.bind(_assertThisInitialized(_this39))});_classPrivateFieldInitSpec(_assertThisInitialized(_this39),_color,{writable:true,value:void 0});_classPrivateFieldInitSpec(_assertThisInitialized(_this39),_content,{writable:true,value:\"\"});_classPrivateFieldInitSpec(_assertThisInitialized(_this39),_hasAlreadyBeenCommitted,{writable:true,value:false});_classPrivateFieldInitSpec(_assertThisInitialized(_this39),_fontSize,{writable:true,value:void 0});_classPrivateFieldSet(_assertThisInitialized(_this39),_color,params.color||FreeTextEditor._defaultColor||_editor.AnnotationEditor._defaultLineColor);_classPrivateFieldSet(_assertThisInitialized(_this39),_fontSize,params.fontSize||FreeTextEditor._defaultFontSize);return _this39;}_createClass(FreeTextEditor,[{key:\"updateParams\",value:function updateParams(type,value){switch(type){case _util.AnnotationEditorParamsType.FREETEXT_SIZE:_classPrivateMethodGet(this,_updateFontSize,_updateFontSize2).call(this,value);break;case _util.AnnotationEditorParamsType.FREETEXT_COLOR:_classPrivateMethodGet(this,_updateColor,_updateColor2).call(this,value);break;}}},{key:\"propertiesToUpdate\",get:function get(){return[[_util.AnnotationEditorParamsType.FREETEXT_SIZE,_classPrivateFieldGet(this,_fontSize)],[_util.AnnotationEditorParamsType.FREETEXT_COLOR,_classPrivateFieldGet(this,_color)]];}},{key:\"getInitialTranslation\",value:function getInitialTranslation(){return[-FreeTextEditor._internalPadding*this.parent.scaleFactor,-(FreeTextEditor._internalPadding+_classPrivateFieldGet(this,_fontSize))*this.parent.scaleFactor];}},{key:\"rebuild\",value:function rebuild(){_get(_getPrototypeOf(FreeTextEditor.prototype),\"rebuild\",this).call(this);if(this.div===null){return;}if(!this.isAttachedToDOM){this.parent.add(this);}}},{key:\"enableEditMode\",value:function enableEditMode(){if(this.isInEditMode()){return;}this.parent.setEditingState(false);this.parent.updateToolbar(_util.AnnotationEditorType.FREETEXT);_get(_getPrototypeOf(FreeTextEditor.prototype),\"enableEditMode\",this).call(this);this.enableEditing();this.overlayDiv.classList.remove(\"enabled\");this.editorDiv.contentEditable=true;this.div.draggable=false;this.editorDiv.addEventListener(\"keydown\",_classPrivateFieldGet(this,_boundEditorDivKeydown));this.editorDiv.addEventListener(\"focus\",_classPrivateFieldGet(this,_boundEditorDivFocus));this.editorDiv.addEventListener(\"blur\",_classPrivateFieldGet(this,_boundEditorDivBlur));}},{key:\"disableEditMode\",value:function disableEditMode(){if(!this.isInEditMode()){return;}this.parent.setEditingState(true);_get(_getPrototypeOf(FreeTextEditor.prototype),\"disableEditMode\",this).call(this);this.disableEditing();this.overlayDiv.classList.add(\"enabled\");this.editorDiv.contentEditable=false;this.div.draggable=true;this.editorDiv.removeEventListener(\"keydown\",_classPrivateFieldGet(this,_boundEditorDivKeydown));this.editorDiv.removeEventListener(\"focus\",_classPrivateFieldGet(this,_boundEditorDivFocus));this.editorDiv.removeEventListener(\"blur\",_classPrivateFieldGet(this,_boundEditorDivBlur));this.div.focus();this.isEditing=false;}},{key:\"focusin\",value:function focusin(event){_get(_getPrototypeOf(FreeTextEditor.prototype),\"focusin\",this).call(this,event);if(event.target!==this.editorDiv){this.editorDiv.focus();}}},{key:\"onceAdded\",value:function onceAdded(){if(this.width){return;}this.enableEditMode();this.editorDiv.focus();}},{key:\"isEmpty\",value:function isEmpty(){var _context89;return!this.editorDiv||_trimInstanceProperty(_context89=this.editorDiv.innerText).call(_context89)===\"\";}},{key:\"remove\",value:function remove(){this.isEditing=false;this.parent.setEditingState(true);_get(_getPrototypeOf(FreeTextEditor.prototype),\"remove\",this).call(this);}},{key:\"commit\",value:function commit(){var _context90;_get(_getPrototypeOf(FreeTextEditor.prototype),\"commit\",this).call(this);if(!_classPrivateFieldGet(this,_hasAlreadyBeenCommitted)){_classPrivateFieldSet(this,_hasAlreadyBeenCommitted,true);this.parent.addUndoableEditor(this);}this.disableEditMode();_classPrivateFieldSet(this,_content,_trimEndInstanceProperty(_context90=_classPrivateMethodGet(this,_extractText,_extractText2).call(this)).call(_context90));_classPrivateMethodGet(this,_setEditorDimensions,_setEditorDimensions2).call(this);}},{key:\"shouldGetKeyboardEvents\",value:function shouldGetKeyboardEvents(){return this.isInEditMode();}},{key:\"dblclick\",value:function dblclick(event){this.enableEditMode();this.editorDiv.focus();}},{key:\"keydown\",value:function keydown(event){if(event.target===this.div&&event.key===\"Enter\"){this.enableEditMode();this.editorDiv.focus();}}},{key:\"editorDivKeydown\",value:function editorDivKeydown(event){FreeTextEditor._keyboardManager.exec(this,event);}},{key:\"editorDivFocus\",value:function editorDivFocus(event){this.isEditing=true;}},{key:\"editorDivBlur\",value:function editorDivBlur(event){this.isEditing=false;}},{key:\"disableEditing\",value:function disableEditing(){this.editorDiv.setAttribute(\"role\",\"comment\");this.editorDiv.removeAttribute(\"aria-multiline\");}},{key:\"enableEditing\",value:function enableEditing(){this.editorDiv.setAttribute(\"role\",\"textbox\");this.editorDiv.setAttribute(\"aria-multiline\",true);}},{key:\"render\",value:function render(){var _this40=this;if(this.div){return this.div;}var baseX,baseY;if(this.width){baseX=this.x;baseY=this.y;}_get(_getPrototypeOf(FreeTextEditor.prototype),\"render\",this).call(this);this.editorDiv=document.createElement(\"div\");this.editorDiv.className=\"internal\";this.editorDiv.setAttribute(\"id\",\"\".concat(this.id,\"-editor\"));this.enableEditing();FreeTextEditor._l10nPromise.get(\"editor_free_text_aria_label\").then(function(msg){var _this$editorDiv;return(_this$editorDiv=_this40.editorDiv)===null||_this$editorDiv===void 0?void 0:_this$editorDiv.setAttribute(\"aria-label\",msg);});FreeTextEditor._l10nPromise.get(\"free_text_default_content\").then(function(msg){var _this$editorDiv2;return(_this$editorDiv2=_this40.editorDiv)===null||_this$editorDiv2===void 0?void 0:_this$editorDiv2.setAttribute(\"default-content\",msg);});this.editorDiv.contentEditable=true;var style=this.editorDiv.style;style.fontSize=\"calc(\".concat(_classPrivateFieldGet(this,_fontSize),\"px * var(--scale-factor))\");style.color=_classPrivateFieldGet(this,_color);this.div.append(this.editorDiv);this.overlayDiv=document.createElement(\"div\");this.overlayDiv.classList.add(\"overlay\",\"enabled\");this.div.append(this.overlayDiv);(0,_tools.bindEvents)(this,this.div,[\"dblclick\",\"keydown\"]);if(this.width){var _this$parent$viewport6=_slicedToArray(this.parent.viewportBaseDimensions,2),parentWidth=_this$parent$viewport6[0],parentHeight=_this$parent$viewport6[1];this.setAt(baseX*parentWidth,baseY*parentHeight,this.width*parentWidth,this.height*parentHeight);var _iterator81=_createForOfIteratorHelper(_classPrivateFieldGet(this,_content).split(\"\\n\")),_step81;try{for(_iterator81.s();!(_step81=_iterator81.n()).done;){var line=_step81.value;var div=document.createElement(\"div\");div.append(line?document.createTextNode(line):document.createElement(\"br\"));this.editorDiv.append(div);}}catch(err){_iterator81.e(err);}finally{_iterator81.f();}this.div.draggable=true;this.editorDiv.contentEditable=false;}else{this.div.draggable=false;this.editorDiv.contentEditable=true;}return this.div;}},{key:\"contentDiv\",get:function get(){return this.editorDiv;}},{key:\"serialize\",value:function serialize(){if(this.isEmpty()){return null;}var padding=FreeTextEditor._internalPadding*this.parent.scaleFactor;var rect=this.getRect(padding,padding);var color=_editor.AnnotationEditor._colorManager.convert(getComputedStyle(this.editorDiv).color);return{annotationType:_util.AnnotationEditorType.FREETEXT,color:color,fontSize:_classPrivateFieldGet(this,_fontSize),value:_classPrivateFieldGet(this,_content),pageIndex:this.parent.pageIndex,rect:rect,rotation:this.rotation};}}],[{key:\"initialize\",value:function initialize(l10n){var _context91;this._l10nPromise=new _Map(_mapInstanceProperty(_context91=[\"free_text_default_content\",\"editor_free_text_aria_label\"]).call(_context91,function(str){return[str,l10n.get(str)];}));var style=getComputedStyle(document.documentElement);this._internalPadding=_parseFloat(style.getPropertyValue(\"--freetext-padding\"));}},{key:\"updateDefaultParams\",value:function updateDefaultParams(type,value){switch(type){case _util.AnnotationEditorParamsType.FREETEXT_SIZE:FreeTextEditor._defaultFontSize=value;break;case _util.AnnotationEditorParamsType.FREETEXT_COLOR:FreeTextEditor._defaultColor=value;break;}}},{key:\"defaultPropertiesToUpdate\",get:function get(){return[[_util.AnnotationEditorParamsType.FREETEXT_SIZE,FreeTextEditor._defaultFontSize],[_util.AnnotationEditorParamsType.FREETEXT_COLOR,FreeTextEditor._defaultColor||_editor.AnnotationEditor._defaultLineColor]];}},{key:\"deserialize\",value:function deserialize(data,parent){var _util$Util2;var editor=_get(_getPrototypeOf(FreeTextEditor),\"deserialize\",this).call(this,data,parent);_classPrivateFieldSet(editor,_fontSize,data.fontSize);_classPrivateFieldSet(editor,_color,(_util$Util2=_util.Util).makeHexColor.apply(_util$Util2,_toConsumableArray(data.color)));_classPrivateFieldSet(editor,_content,data.value);return editor;}}]);return FreeTextEditor;}(_editor.AnnotationEditor);exports.FreeTextEditor=FreeTextEditor;function _updateFontSize2(fontSize){var _this41=this;var setFontsize=function setFontsize(size){_this41.editorDiv.style.fontSize=\"calc(\".concat(size,\"px * var(--scale-factor))\");_this41.translate(0,-(size-_classPrivateFieldGet(_this41,_fontSize))*_this41.parent.scaleFactor);_classPrivateFieldSet(_this41,_fontSize,size);_classPrivateMethodGet(_this41,_setEditorDimensions,_setEditorDimensions2).call(_this41);};var savedFontsize=_classPrivateFieldGet(this,_fontSize);this.parent.addCommands({cmd:function cmd(){setFontsize(fontSize);},undo:function undo(){setFontsize(savedFontsize);},mustExec:true,type:_util.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:true,keepUndo:true});}function _updateColor2(color){var _this42=this;var savedColor=_classPrivateFieldGet(this,_color);this.parent.addCommands({cmd:function cmd(){_classPrivateFieldSet(_this42,_color,color);_this42.editorDiv.style.color=color;},undo:function undo(){_classPrivateFieldSet(_this42,_color,savedColor);_this42.editorDiv.style.color=savedColor;},mustExec:true,type:_util.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:true,keepUndo:true});}function _extractText2(){var divs=this.editorDiv.getElementsByTagName(\"div\");if(divs.length===0){return this.editorDiv.innerText;}var buffer=[];for(var i=0,ii=divs.length;i<ii;i++){var div=divs[i];var first=div.firstChild;if((first===null||first===void 0?void 0:first.nodeName)===\"#text\"){buffer.push(first.data);}else{buffer.push(\"\");}}return buffer.join(\"\\n\");}function _setEditorDimensions2(){var _this$parent$viewport7=_slicedToArray(this.parent.viewportBaseDimensions,2),parentWidth=_this$parent$viewport7[0],parentHeight=_this$parent$viewport7[1];var rect=this.div.getBoundingClientRect();this.width=rect.width/parentWidth;this.height=rect.height/parentHeight;}_defineProperty(FreeTextEditor,\"_freeTextDefaultContent\",\"\");_defineProperty(FreeTextEditor,\"_l10nPromise\",void 0);_defineProperty(FreeTextEditor,\"_internalPadding\",0);_defineProperty(FreeTextEditor,\"_defaultColor\",null);_defineProperty(FreeTextEditor,\"_defaultFontSize\",10);_defineProperty(FreeTextEditor,\"_keyboardManager\",new _tools.KeyboardManager([[[\"ctrl+Enter\",\"mac+meta+Enter\",\"Escape\",\"mac+Escape\"],FreeTextEditor.prototype.commitOrRemove]]));_defineProperty(FreeTextEditor,\"_type\",\"freetext\");/***/}),(/* 149 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.InkEditor=void 0;_Object$defineProperty(exports,\"fitCurve\",{enumerable:true,get:function get(){return _pdfjsFitCurve.fitCurve;}});var _util=__w_pdfjs_require__(1);var _editor=__w_pdfjs_require__(131);var _pdfjsFitCurve=__w_pdfjs_require__(150);var _tools=__w_pdfjs_require__(132);function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _defineProperty(obj,key,value){if(key in obj){_Object$defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError(\"Cannot initialize the same private elements twice on an object\");}}function _classStaticPrivateMethodGet(receiver,classConstructor,method){_classCheckPrivateStaticAccess(receiver,classConstructor);return method;}function _classCheckPrivateStaticAccess(receiver,classConstructor){if(receiver!==classConstructor){throw new TypeError(\"Private static access of wrong provenance\");}}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"set\");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError(\"attempted to set read only private field\");}descriptor.value=value;}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,\"get\");return _classApplyDescriptorGet(receiver,descriptor);}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError(\"attempted to \"+action+\" private field on non-instance\");}return privateMap.get(receiver);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError(\"attempted to get private field on non-instance\");}return fn;}var RESIZER_SIZE=16;var _aspectRatio=/*#__PURE__*/new _WeakMap();var _baseHeight=/*#__PURE__*/new _WeakMap();var _baseWidth=/*#__PURE__*/new _WeakMap();var _boundCanvasPointermove=/*#__PURE__*/new _WeakMap();var _boundCanvasPointerleave=/*#__PURE__*/new _WeakMap();var _boundCanvasPointerup=/*#__PURE__*/new _WeakMap();var _boundCanvasPointerdown=/*#__PURE__*/new _WeakMap();var _disableEditing=/*#__PURE__*/new _WeakMap();var _isCanvasInitialized=/*#__PURE__*/new _WeakMap();var _lastPoint=/*#__PURE__*/new _WeakMap();var _observer=/*#__PURE__*/new _WeakMap();var _realWidth=/*#__PURE__*/new _WeakMap();var _realHeight=/*#__PURE__*/new _WeakMap();var _requestFrameCallback=/*#__PURE__*/new _WeakMap();var _updateThickness=/*#__PURE__*/new _WeakSet();var _updateColor=/*#__PURE__*/new _WeakSet();var _updateOpacity=/*#__PURE__*/new _WeakSet();var _getInitialBBox=/*#__PURE__*/new _WeakSet();var _setStroke=/*#__PURE__*/new _WeakSet();var _startDrawing=/*#__PURE__*/new _WeakSet();var _draw=/*#__PURE__*/new _WeakSet();var _stopDrawing=/*#__PURE__*/new _WeakSet();var _redraw=/*#__PURE__*/new _WeakSet();var _endDrawing=/*#__PURE__*/new _WeakSet();var _createCanvas=/*#__PURE__*/new _WeakSet();var _createObserver=/*#__PURE__*/new _WeakSet();var _setCanvasDims=/*#__PURE__*/new _WeakSet();var _setScaleFactor=/*#__PURE__*/new _WeakSet();var _updateTransform=/*#__PURE__*/new _WeakSet();var _serializePaths=/*#__PURE__*/new _WeakSet();var _extractPointsOnBezier=/*#__PURE__*/new _WeakSet();var _isAlmostFlat=/*#__PURE__*/new _WeakSet();var _getBbox=/*#__PURE__*/new _WeakSet();var _getPadding=/*#__PURE__*/new _WeakSet();var _fitToContent=/*#__PURE__*/new _WeakSet();var _setMinDims=/*#__PURE__*/new _WeakSet();var InkEditor=/*#__PURE__*/function(_editor$AnnotationEdi2){_inherits(InkEditor,_editor$AnnotationEdi2);function InkEditor(params){var _this43;_classCallCheck(this,InkEditor);_this43=_callSuper(this,InkEditor,[_objectSpread(_objectSpread({},params),{},{name:\"inkEditor\"})]);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_setMinDims);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_fitToContent);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_getPadding);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_getBbox);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_isAlmostFlat);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_extractPointsOnBezier);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_serializePaths);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_updateTransform);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_setScaleFactor);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_setCanvasDims);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_createObserver);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_createCanvas);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_endDrawing);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_redraw);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_stopDrawing);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_draw);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_startDrawing);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_setStroke);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_getInitialBBox);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_updateOpacity);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_updateColor);_classPrivateMethodInitSpec(_assertThisInitialized(_this43),_updateThickness);_classPrivateFieldInitSpec(_assertThisInitialized(_this43),_aspectRatio,{writable:true,value:0});_classPrivateFieldInitSpec(_assertThisInitialized(_this43),_baseHeight,{writable:true,value:0});_classPrivateFieldInitSpec(_assertThisInitialized(_this43),_baseWidth,{writable:true,value:0});_classPrivateFieldInitSpec(_assertThisInitialized(_this43),_boundCanvasPointermove,{writable:true,value:_this43.canvasPointermove.bind(_assertThisInitialized(_this43))});_classPrivateFieldInitSpec(_assertThisInitialized(_this43),_boundCanvasPointerleave,{writable:true,value:_this43.canvasPointerleave.bind(_assertThisInitialized(_this43))});_classPrivateFieldInitSpec(_assertThisInitialized(_this43),_boundCanvasPointerup,{writable:true,value:_this43.canvasPointerup.bind(_assertThisInitialized(_this43))});_classPrivateFieldInitSpec(_assertThisInitialized(_this43),_boundCanvasPointerdown,{writable:true,value:_this43.canvasPointerdown.bind(_assertThisInitialized(_this43))});_classPrivateFieldInitSpec(_assertThisInitialized(_this43),_disableEditing,{writable:true,value:false});_classPrivateFieldInitSpec(_assertThisInitialized(_this43),_isCanvasInitialized,{writable:true,value:false});_classPrivateFieldInitSpec(_assertThisInitialized(_this43),_lastPoint,{writable:true,value:null});_classPrivateFieldInitSpec(_assertThisInitialized(_this43),_observer,{writable:true,value:null});_classPrivateFieldInitSpec(_assertThisInitialized(_this43),_realWidth,{writable:true,value:0});_classPrivateFieldInitSpec(_assertThisInitialized(_this43),_realHeight,{writable:true,value:0});_classPrivateFieldInitSpec(_assertThisInitialized(_this43),_requestFrameCallback,{writable:true,value:null});_this43.color=params.color||null;_this43.thickness=params.thickness||null;_this43.opacity=params.opacity||null;_this43.paths=[];_this43.bezierPath2D=[];_this43.currentPath=[];_this43.scaleFactor=1;_this43.translationX=_this43.translationY=0;_this43.x=0;_this43.y=0;return _this43;}_createClass(InkEditor,[{key:\"updateParams\",value:function updateParams(type,value){switch(type){case _util.AnnotationEditorParamsType.INK_THICKNESS:_classPrivateMethodGet(this,_updateThickness,_updateThickness2).call(this,value);break;case _util.AnnotationEditorParamsType.INK_COLOR:_classPrivateMethodGet(this,_updateColor,_updateColor2).call(this,value);break;case _util.AnnotationEditorParamsType.INK_OPACITY:_classPrivateMethodGet(this,_updateOpacity,_updateOpacity2).call(this,value);break;}}},{key:\"propertiesToUpdate\",get:function get(){var _this$opacity;return[[_util.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||InkEditor._defaultThickness],[_util.AnnotationEditorParamsType.INK_COLOR,this.color||InkEditor._defaultColor||_editor.AnnotationEditor._defaultLineColor],[_util.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*((_this$opacity=this.opacity)!==null&&_this$opacity!==void 0?_this$opacity:InkEditor._defaultOpacity))]];}},{key:\"rebuild\",value:function rebuild(){_get(_getPrototypeOf(InkEditor.prototype),\"rebuild\",this).call(this);if(this.div===null){return;}if(!this.canvas){_classPrivateMethodGet(this,_createCanvas,_createCanvas2).call(this);_classPrivateMethodGet(this,_createObserver,_createObserver2).call(this);}if(!this.isAttachedToDOM){this.parent.add(this);_classPrivateMethodGet(this,_setCanvasDims,_setCanvasDims2).call(this);}_classPrivateMethodGet(this,_fitToContent,_fitToContent2).call(this);}},{key:\"remove\",value:function remove(){if(this.canvas===null){return;}if(!this.isEmpty()){this.commit();}this.canvas.width=this.canvas.height=0;this.canvas.remove();this.canvas=null;_classPrivateFieldGet(this,_observer).disconnect();_classPrivateFieldSet(this,_observer,null);_get(_getPrototypeOf(InkEditor.prototype),\"remove\",this).call(this);}},{key:\"enableEditMode\",value:function enableEditMode(){if(_classPrivateFieldGet(this,_disableEditing)||this.canvas===null){return;}_get(_getPrototypeOf(InkEditor.prototype),\"enableEditMode\",this).call(this);this.div.draggable=false;this.canvas.addEventListener(\"pointerdown\",_classPrivateFieldGet(this,_boundCanvasPointerdown));this.canvas.addEventListener(\"pointerup\",_classPrivateFieldGet(this,_boundCanvasPointerup));}},{key:\"disableEditMode\",value:function disableEditMode(){if(!this.isInEditMode()||this.canvas===null){return;}_get(_getPrototypeOf(InkEditor.prototype),\"disableEditMode\",this).call(this);this.div.draggable=!this.isEmpty();this.div.classList.remove(\"editing\");this.canvas.removeEventListener(\"pointerdown\",_classPrivateFieldGet(this,_boundCanvasPointerdown));this.canvas.removeEventListener(\"pointerup\",_classPrivateFieldGet(this,_boundCanvasPointerup));}},{key:\"onceAdded\",value:function onceAdded(){this.div.draggable=!this.isEmpty();}},{key:\"isEmpty\",value:function isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0;}},{key:\"commit\",value:function commit(){if(_classPrivateFieldGet(this,_disableEditing)){return;}_get(_getPrototypeOf(InkEditor.prototype),\"commit\",this).call(this);this.isEditing=false;this.disableEditMode();this.setInForeground();_classPrivateFieldSet(this,_disableEditing,true);this.div.classList.add(\"disabled\");_classPrivateMethodGet(this,_fitToContent,_fitToContent2).call(this,true);this.parent.addInkEditorIfNeeded(true);this.parent.moveEditorInDOM(this);this.div.focus();}},{key:\"focusin\",value:function focusin(event){_get(_getPrototypeOf(InkEditor.prototype),\"focusin\",this).call(this,event);this.enableEditMode();}},{key:\"canvasPointerdown\",value:function canvasPointerdown(event){if(event.button!==0||!this.isInEditMode()||_classPrivateFieldGet(this,_disableEditing)){return;}this.setInForeground();if(event.type!==\"mouse\"){this.div.focus();}event.stopPropagation();this.canvas.addEventListener(\"pointerleave\",_classPrivateFieldGet(this,_boundCanvasPointerleave));this.canvas.addEventListener(\"pointermove\",_classPrivateFieldGet(this,_boundCanvasPointermove));_classPrivateMethodGet(this,_startDrawing,_startDrawing2).call(this,event.offsetX,event.offsetY);}},{key:\"canvasPointermove\",value:function canvasPointermove(event){event.stopPropagation();_classPrivateMethodGet(this,_draw,_draw2).call(this,event.offsetX,event.offsetY);}},{key:\"canvasPointerup\",value:function canvasPointerup(event){if(event.button!==0){return;}if(this.isInEditMode()&&this.currentPath.length!==0){event.stopPropagation();_classPrivateMethodGet(this,_endDrawing,_endDrawing2).call(this,event);this.setInBackground();}}},{key:\"canvasPointerleave\",value:function canvasPointerleave(event){_classPrivateMethodGet(this,_endDrawing,_endDrawing2).call(this,event);this.setInBackground();}},{key:\"render\",value:function render(){var _this44=this;if(this.div){return this.div;}var baseX,baseY;if(this.width){baseX=this.x;baseY=this.y;}_get(_getPrototypeOf(InkEditor.prototype),\"render\",this).call(this);InkEditor._l10nPromise.get(\"editor_ink_aria_label\").then(function(msg){var _this$div;return(_this$div=_this44.div)===null||_this$div===void 0?void 0:_this$div.setAttribute(\"aria-label\",msg);});var _classPrivateMethodGe=_classPrivateMethodGet(this,_getInitialBBox,_getInitialBBox2).call(this),_classPrivateMethodGe2=_slicedToArray(_classPrivateMethodGe,4),x=_classPrivateMethodGe2[0],y=_classPrivateMethodGe2[1],w=_classPrivateMethodGe2[2],h=_classPrivateMethodGe2[3];this.setAt(x,y,0,0);this.setDims(w,h);_classPrivateMethodGet(this,_createCanvas,_createCanvas2).call(this);if(this.width){var _this$parent$viewport8=_slicedToArray(this.parent.viewportBaseDimensions,2),parentWidth=_this$parent$viewport8[0],parentHeight=_this$parent$viewport8[1];this.setAt(baseX*parentWidth,baseY*parentHeight,this.width*parentWidth,this.height*parentHeight);_classPrivateFieldSet(this,_isCanvasInitialized,true);_classPrivateMethodGet(this,_setCanvasDims,_setCanvasDims2).call(this);this.setDims(this.width*parentWidth,this.height*parentHeight);_classPrivateMethodGet(this,_redraw,_redraw2).call(this);_classPrivateMethodGet(this,_setMinDims,_setMinDims2).call(this);this.div.classList.add(\"disabled\");}else{this.div.classList.add(\"editing\");this.enableEditMode();}_classPrivateMethodGet(this,_createObserver,_createObserver2).call(this);return this.div;}},{key:\"setDimensions\",value:function setDimensions(width,height){var roundedWidth=Math.round(width);var roundedHeight=Math.round(height);if(_classPrivateFieldGet(this,_realWidth)===roundedWidth&&_classPrivateFieldGet(this,_realHeight)===roundedHeight){return;}_classPrivateFieldSet(this,_realWidth,roundedWidth);_classPrivateFieldSet(this,_realHeight,roundedHeight);this.canvas.style.visibility=\"hidden\";if(_classPrivateFieldGet(this,_aspectRatio)&&Math.abs(_classPrivateFieldGet(this,_aspectRatio)-width/height)>1e-2){height=Math.ceil(width/_classPrivateFieldGet(this,_aspectRatio));this.setDims(width,height);}var _this$parent$viewport9=_slicedToArray(this.parent.viewportBaseDimensions,2),parentWidth=_this$parent$viewport9[0],parentHeight=_this$parent$viewport9[1];this.width=width/parentWidth;this.height=height/parentHeight;if(_classPrivateFieldGet(this,_disableEditing)){_classPrivateMethodGet(this,_setScaleFactor,_setScaleFactor2).call(this,width,height);}_classPrivateMethodGet(this,_setCanvasDims,_setCanvasDims2).call(this);_classPrivateMethodGet(this,_redraw,_redraw2).call(this);this.canvas.style.visibility=\"visible\";}},{key:\"serialize\",value:function serialize(){if(this.isEmpty()){return null;}var rect=this.getRect(0,0);var height=this.rotation%180===0?rect[3]-rect[1]:rect[2]-rect[0];var color=_editor.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:_util.AnnotationEditorType.INK,color:color,thickness:this.thickness,opacity:this.opacity,paths:_classPrivateMethodGet(this,_serializePaths,_serializePaths2).call(this,this.scaleFactor/this.parent.scaleFactor,this.translationX,this.translationY,height),pageIndex:this.parent.pageIndex,rect:rect,rotation:this.rotation};}}],[{key:\"initialize\",value:function initialize(l10n){var _context92;this._l10nPromise=new _Map(_mapInstanceProperty(_context92=[\"editor_ink_canvas_aria_label\",\"editor_ink_aria_label\"]).call(_context92,function(str){return[str,l10n.get(str)];}));}},{key:\"updateDefaultParams\",value:function updateDefaultParams(type,value){switch(type){case _util.AnnotationEditorParamsType.INK_THICKNESS:InkEditor._defaultThickness=value;break;case _util.AnnotationEditorParamsType.INK_COLOR:InkEditor._defaultColor=value;break;case _util.AnnotationEditorParamsType.INK_OPACITY:InkEditor._defaultOpacity=value/100;break;}}},{key:\"defaultPropertiesToUpdate\",get:function get(){return[[_util.AnnotationEditorParamsType.INK_THICKNESS,InkEditor._defaultThickness],[_util.AnnotationEditorParamsType.INK_COLOR,InkEditor._defaultColor||_editor.AnnotationEditor._defaultLineColor],[_util.AnnotationEditorParamsType.INK_OPACITY,Math.round(InkEditor._defaultOpacity*100)]];}},{key:\"deserialize\",value:function deserialize(data,parent){var _util$Util3;var editor=_get(_getPrototypeOf(InkEditor),\"deserialize\",this).call(this,data,parent);editor.thickness=data.thickness;editor.color=(_util$Util3=_util.Util).makeHexColor.apply(_util$Util3,_toConsumableArray(data.color));editor.opacity=data.opacity;var _parent$pageDimension2=_slicedToArray(parent.pageDimensions,2),pageWidth=_parent$pageDimension2[0],pageHeight=_parent$pageDimension2[1];var width=editor.width*pageWidth;var height=editor.height*pageHeight;var scaleFactor=parent.scaleFactor;var padding=data.thickness/2;_classPrivateFieldSet(editor,_aspectRatio,width/height);_classPrivateFieldSet(editor,_disableEditing,true);_classPrivateFieldSet(editor,_realWidth,Math.round(width));_classPrivateFieldSet(editor,_realHeight,Math.round(height));var _iterator82=_createForOfIteratorHelper(data.paths),_step82;try{for(_iterator82.s();!(_step82=_iterator82.n()).done;){var bezier=_step82.value.bezier;var path=[];editor.paths.push(path);var p0=scaleFactor*(bezier[0]-padding);var p1=scaleFactor*(height-bezier[1]-padding);for(var i=2,ii=bezier.length;i<ii;i+=6){var p10=scaleFactor*(bezier[i]-padding);var p11=scaleFactor*(height-bezier[i+1]-padding);var p20=scaleFactor*(bezier[i+2]-padding);var p21=scaleFactor*(height-bezier[i+3]-padding);var p30=scaleFactor*(bezier[i+4]-padding);var p31=scaleFactor*(height-bezier[i+5]-padding);path.push([[p0,p1],[p10,p11],[p20,p21],[p30,p31]]);p0=p30;p1=p31;}var path2D=_classStaticPrivateMethodGet(this,InkEditor,_buildPath2D).call(this,path);editor.bezierPath2D.push(path2D);}}catch(err){_iterator82.e(err);}finally{_iterator82.f();}var bbox=_classPrivateMethodGet(editor,_getBbox,_getBbox2).call(editor);_classPrivateFieldSet(editor,_baseWidth,Math.max(RESIZER_SIZE,bbox[2]-bbox[0]));_classPrivateFieldSet(editor,_baseHeight,Math.max(RESIZER_SIZE,bbox[3]-bbox[1]));_classPrivateMethodGet(editor,_setScaleFactor,_setScaleFactor2).call(editor,width,height);return editor;}}]);return InkEditor;}(_editor.AnnotationEditor);exports.InkEditor=InkEditor;function _updateThickness2(thickness){var _this45=this;var savedThickness=this.thickness;this.parent.addCommands({cmd:function cmd(){_this45.thickness=thickness;_classPrivateMethodGet(_this45,_fitToContent,_fitToContent2).call(_this45);},undo:function undo(){_this45.thickness=savedThickness;_classPrivateMethodGet(_this45,_fitToContent,_fitToContent2).call(_this45);},mustExec:true,type:_util.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:true,keepUndo:true});}function _updateColor2(color){var _this46=this;var savedColor=this.color;this.parent.addCommands({cmd:function cmd(){_this46.color=color;_classPrivateMethodGet(_this46,_redraw,_redraw2).call(_this46);},undo:function undo(){_this46.color=savedColor;_classPrivateMethodGet(_this46,_redraw,_redraw2).call(_this46);},mustExec:true,type:_util.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:true,keepUndo:true});}function _updateOpacity2(opacity){var _this47=this;opacity/=100;var savedOpacity=this.opacity;this.parent.addCommands({cmd:function cmd(){_this47.opacity=opacity;_classPrivateMethodGet(_this47,_redraw,_redraw2).call(_this47);},undo:function undo(){_this47.opacity=savedOpacity;_classPrivateMethodGet(_this47,_redraw,_redraw2).call(_this47);},mustExec:true,type:_util.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:true,keepUndo:true});}function _getInitialBBox2(){var _this$parent$viewport10=this.parent.viewport,width=_this$parent$viewport10.width,height=_this$parent$viewport10.height,rotation=_this$parent$viewport10.rotation;switch(rotation){case 90:return[0,width,width,height];case 180:return[width,height,width,height];case 270:return[height,0,width,height];default:return[0,0,width,height];}}function _setStroke2(){var _context93;this.ctx.lineWidth=this.thickness*this.parent.scaleFactor/this.scaleFactor;this.ctx.lineCap=\"round\";this.ctx.lineJoin=\"round\";this.ctx.miterLimit=10;this.ctx.strokeStyle=_concatInstanceProperty(_context93=\"\".concat(this.color)).call(_context93,(0,_tools.opacityToHex)(this.opacity));}function _startDrawing2(x,y){var _this48=this;this.isEditing=true;if(!_classPrivateFieldGet(this,_isCanvasInitialized)){var _this$opacity2;_classPrivateFieldSet(this,_isCanvasInitialized,true);_classPrivateMethodGet(this,_setCanvasDims,_setCanvasDims2).call(this);this.thickness||(this.thickness=InkEditor._defaultThickness);this.color||(this.color=InkEditor._defaultColor||_editor.AnnotationEditor._defaultLineColor);(_this$opacity2=this.opacity)!==null&&_this$opacity2!==void 0?_this$opacity2:this.opacity=InkEditor._defaultOpacity;}this.currentPath.push([x,y]);_classPrivateFieldSet(this,_lastPoint,null);_classPrivateMethodGet(this,_setStroke,_setStroke2).call(this);this.ctx.beginPath();this.ctx.moveTo(x,y);_classPrivateFieldSet(this,_requestFrameCallback,function(){if(!_classPrivateFieldGet(_this48,_requestFrameCallback)){return;}if(_classPrivateFieldGet(_this48,_lastPoint)){var _this48$ctx;if(_this48.isEmpty()){_this48.ctx.setTransform(1,0,0,1,0,0);_this48.ctx.clearRect(0,0,_this48.canvas.width,_this48.canvas.height);}else{_classPrivateMethodGet(_this48,_redraw,_redraw2).call(_this48);}(_this48$ctx=_this48.ctx).lineTo.apply(_this48$ctx,_toConsumableArray(_classPrivateFieldGet(_this48,_lastPoint)));_classPrivateFieldSet(_this48,_lastPoint,null);_this48.ctx.stroke();}window.requestAnimationFrame(_classPrivateFieldGet(_this48,_requestFrameCallback));});window.requestAnimationFrame(_classPrivateFieldGet(this,_requestFrameCallback));}function _draw2(x,y){var _this$currentPath$at=this.currentPath.at(-1),_this$currentPath$at2=_slicedToArray(_this$currentPath$at,2),lastX=_this$currentPath$at2[0],lastY=_this$currentPath$at2[1];if(x===lastX&&y===lastY){return;}this.currentPath.push([x,y]);_classPrivateFieldSet(this,_lastPoint,[x,y]);}function _stopDrawing2(x,y){var _this49=this;this.ctx.closePath();_classPrivateFieldSet(this,_requestFrameCallback,null);x=Math.min(Math.max(x,0),this.canvas.width);y=Math.min(Math.max(y,0),this.canvas.height);var _this$currentPath$at3=this.currentPath.at(-1),_this$currentPath$at4=_slicedToArray(_this$currentPath$at3,2),lastX=_this$currentPath$at4[0],lastY=_this$currentPath$at4[1];if(x!==lastX||y!==lastY){this.currentPath.push([x,y]);}var bezier;if(this.currentPath.length!==1){bezier=(0,_pdfjsFitCurve.fitCurve)(this.currentPath,30,null);}else{var xy=[x,y];bezier=[[xy,_sliceInstanceProperty(xy).call(xy),_sliceInstanceProperty(xy).call(xy),xy]];}var path2D=_classStaticPrivateMethodGet(InkEditor,InkEditor,_buildPath2D).call(InkEditor,bezier);this.currentPath.length=0;var cmd=function cmd(){_this49.paths.push(bezier);_this49.bezierPath2D.push(path2D);_this49.rebuild();};var undo=function undo(){_this49.paths.pop();_this49.bezierPath2D.pop();if(_this49.paths.length===0){_this49.remove();}else{if(!_this49.canvas){_classPrivateMethodGet(_this49,_createCanvas,_createCanvas2).call(_this49);_classPrivateMethodGet(_this49,_createObserver,_createObserver2).call(_this49);}_classPrivateMethodGet(_this49,_fitToContent,_fitToContent2).call(_this49);}};this.parent.addCommands({cmd:cmd,undo:undo,mustExec:true});}function _redraw2(){if(this.isEmpty()){_classPrivateMethodGet(this,_updateTransform,_updateTransform2).call(this);return;}_classPrivateMethodGet(this,_setStroke,_setStroke2).call(this);var canvas=this.canvas,ctx=this.ctx;ctx.setTransform(1,0,0,1,0,0);ctx.clearRect(0,0,canvas.width,canvas.height);_classPrivateMethodGet(this,_updateTransform,_updateTransform2).call(this);var _iterator83=_createForOfIteratorHelper(this.bezierPath2D),_step83;try{for(_iterator83.s();!(_step83=_iterator83.n()).done;){var path=_step83.value;ctx.stroke(path);}}catch(err){_iterator83.e(err);}finally{_iterator83.f();}}function _endDrawing2(event){_classPrivateMethodGet(this,_stopDrawing,_stopDrawing2).call(this,event.offsetX,event.offsetY);this.canvas.removeEventListener(\"pointerleave\",_classPrivateFieldGet(this,_boundCanvasPointerleave));this.canvas.removeEventListener(\"pointermove\",_classPrivateFieldGet(this,_boundCanvasPointermove));this.parent.addToAnnotationStorage(this);}function _createCanvas2(){var _this50=this;this.canvas=document.createElement(\"canvas\");this.canvas.width=this.canvas.height=0;this.canvas.className=\"inkEditorCanvas\";InkEditor._l10nPromise.get(\"editor_ink_canvas_aria_label\").then(function(msg){var _this$canvas;return(_this$canvas=_this50.canvas)===null||_this$canvas===void 0?void 0:_this$canvas.setAttribute(\"aria-label\",msg);});this.div.append(this.canvas);this.ctx=this.canvas.getContext(\"2d\");}function _createObserver2(){var _this51=this;_classPrivateFieldSet(this,_observer,new ResizeObserver(function(entries){var rect=entries[0].contentRect;if(rect.width&&rect.height){_this51.setDimensions(rect.width,rect.height);}}));_classPrivateFieldGet(this,_observer).observe(this.div);}function _setCanvasDims2(){if(!_classPrivateFieldGet(this,_isCanvasInitialized)){return;}var _this$parent$viewport11=_slicedToArray(this.parent.viewportBaseDimensions,2),parentWidth=_this$parent$viewport11[0],parentHeight=_this$parent$viewport11[1];this.canvas.width=Math.ceil(this.width*parentWidth);this.canvas.height=Math.ceil(this.height*parentHeight);_classPrivateMethodGet(this,_updateTransform,_updateTransform2).call(this);}function _setScaleFactor2(width,height){var padding=_classPrivateMethodGet(this,_getPadding,_getPadding2).call(this);var scaleFactorW=(width-padding)/_classPrivateFieldGet(this,_baseWidth);var scaleFactorH=(height-padding)/_classPrivateFieldGet(this,_baseHeight);this.scaleFactor=Math.min(scaleFactorW,scaleFactorH);}function _updateTransform2(){var padding=_classPrivateMethodGet(this,_getPadding,_getPadding2).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+padding,this.translationY*this.scaleFactor+padding);}function _buildPath2D(bezier){var path2D=new Path2D();for(var i=0,ii=bezier.length;i<ii;i++){var _bezier$i=_slicedToArray(bezier[i],4),first=_bezier$i[0],control1=_bezier$i[1],control2=_bezier$i[2],second=_bezier$i[3];if(i===0){path2D.moveTo.apply(path2D,_toConsumableArray(first));}path2D.bezierCurveTo(control1[0],control1[1],control2[0],control2[1],second[0],second[1]);}return path2D;}function _serializePaths2(s,tx,ty,h){var NUMBER_OF_POINTS_ON_BEZIER_CURVE=4;var paths=[];var padding=this.thickness/2;var buffer,points;var _iterator84=_createForOfIteratorHelper(this.paths),_step84;try{for(_iterator84.s();!(_step84=_iterator84.n()).done;){var bezier=_step84.value;buffer=[];points=[];for(var i=0,ii=bezier.length;i<ii;i++){var _bezier$i2=_slicedToArray(bezier[i],4),first=_bezier$i2[0],control1=_bezier$i2[1],control2=_bezier$i2[2],second=_bezier$i2[3];var p10=s*(first[0]+tx)+padding;var p11=h-s*(first[1]+ty)-padding;var p20=s*(control1[0]+tx)+padding;var p21=h-s*(control1[1]+ty)-padding;var p30=s*(control2[0]+tx)+padding;var p31=h-s*(control2[1]+ty)-padding;var p40=s*(second[0]+tx)+padding;var p41=h-s*(second[1]+ty)-padding;if(i===0){buffer.push(p10,p11);points.push(p10,p11);}buffer.push(p20,p21,p30,p31,p40,p41);_classPrivateMethodGet(this,_extractPointsOnBezier,_extractPointsOnBezier2).call(this,p10,p11,p20,p21,p30,p31,p40,p41,NUMBER_OF_POINTS_ON_BEZIER_CURVE,points);}paths.push({bezier:buffer,points:points});}}catch(err){_iterator84.e(err);}finally{_iterator84.f();}return paths;}function _extractPointsOnBezier2(p10,p11,p20,p21,p30,p31,p40,p41,n,points){if(_classPrivateMethodGet(this,_isAlmostFlat,_isAlmostFlat2).call(this,p10,p11,p20,p21,p30,p31,p40,p41)){points.push(p40,p41);return;}for(var i=1;i<n-1;i++){var t=i/n;var mt=1-t;var q10=t*p10+mt*p20;var q11=t*p11+mt*p21;var q20=t*p20+mt*p30;var q21=t*p21+mt*p31;var q30=t*p30+mt*p40;var q31=t*p31+mt*p41;q10=t*q10+mt*q20;q11=t*q11+mt*q21;q20=t*q20+mt*q30;q21=t*q21+mt*q31;q10=t*q10+mt*q20;q11=t*q11+mt*q21;points.push(q10,q11);}points.push(p40,p41);}function _isAlmostFlat2(p10,p11,p20,p21,p30,p31,p40,p41){var tol=10;var ax=Math.pow(3*p20-2*p10-p40,2);var ay=Math.pow(3*p21-2*p11-p41,2);var bx=Math.pow(3*p30-p10-2*p40,2);var by=Math.pow(3*p31-p11-2*p41,2);return Math.max(ax,bx)+Math.max(ay,by)<=tol;}function _getBbox2(){var xMin=Infinity;var xMax=-Infinity;var yMin=Infinity;var yMax=-Infinity;var _iterator85=_createForOfIteratorHelper(this.paths),_step85;try{for(_iterator85.s();!(_step85=_iterator85.n()).done;){var path=_step85.value;var _iterator86=_createForOfIteratorHelper(path),_step86;try{for(_iterator86.s();!(_step86=_iterator86.n()).done;){var _util$Util4,_context94;var _step86$value=_slicedToArray(_step86.value,4),first=_step86$value[0],control1=_step86$value[1],control2=_step86$value[2],second=_step86$value[3];var bbox=(_util$Util4=_util.Util).bezierBoundingBox.apply(_util$Util4,_concatInstanceProperty(_context94=_toConsumableArray(first)).call(_context94,_toConsumableArray(control1),_toConsumableArray(control2),_toConsumableArray(second)));xMin=Math.min(xMin,bbox[0]);yMin=Math.min(yMin,bbox[1]);xMax=Math.max(xMax,bbox[2]);yMax=Math.max(yMax,bbox[3]);}}catch(err){_iterator86.e(err);}finally{_iterator86.f();}}}catch(err){_iterator85.e(err);}finally{_iterator85.f();}return[xMin,yMin,xMax,yMax];}function _getPadding2(){return _classPrivateFieldGet(this,_disableEditing)?Math.ceil(this.thickness*this.parent.scaleFactor):0;}function _fitToContent2(){var firstTime=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(this.isEmpty()){return;}if(!_classPrivateFieldGet(this,_disableEditing)){_classPrivateMethodGet(this,_redraw,_redraw2).call(this);return;}var bbox=_classPrivateMethodGet(this,_getBbox,_getBbox2).call(this);var padding=_classPrivateMethodGet(this,_getPadding,_getPadding2).call(this);_classPrivateFieldSet(this,_baseWidth,Math.max(RESIZER_SIZE,bbox[2]-bbox[0]));_classPrivateFieldSet(this,_baseHeight,Math.max(RESIZER_SIZE,bbox[3]-bbox[1]));var width=Math.ceil(padding+_classPrivateFieldGet(this,_baseWidth)*this.scaleFactor);var height=Math.ceil(padding+_classPrivateFieldGet(this,_baseHeight)*this.scaleFactor);var _this$parent$viewport12=_slicedToArray(this.parent.viewportBaseDimensions,2),parentWidth=_this$parent$viewport12[0],parentHeight=_this$parent$viewport12[1];this.width=width/parentWidth;this.height=height/parentHeight;_classPrivateFieldSet(this,_aspectRatio,width/height);_classPrivateMethodGet(this,_setMinDims,_setMinDims2).call(this);var prevTranslationX=this.translationX;var prevTranslationY=this.translationY;this.translationX=-bbox[0];this.translationY=-bbox[1];_classPrivateMethodGet(this,_setCanvasDims,_setCanvasDims2).call(this);_classPrivateMethodGet(this,_redraw,_redraw2).call(this);_classPrivateFieldSet(this,_realWidth,width);_classPrivateFieldSet(this,_realHeight,height);this.setDims(width,height);var unscaledPadding=firstTime?padding/this.scaleFactor/2:0;this.translate(prevTranslationX-this.translationX-unscaledPadding,prevTranslationY-this.translationY-unscaledPadding);}function _setMinDims2(){var style=this.div.style;if(_classPrivateFieldGet(this,_aspectRatio)>=1){style.minHeight=\"\".concat(RESIZER_SIZE,\"px\");style.minWidth=\"\".concat(Math.round(_classPrivateFieldGet(this,_aspectRatio)*RESIZER_SIZE),\"px\");}else{style.minWidth=\"\".concat(RESIZER_SIZE,\"px\");style.minHeight=\"\".concat(Math.round(RESIZER_SIZE/_classPrivateFieldGet(this,_aspectRatio)),\"px\");}}_defineProperty(InkEditor,\"_defaultColor\",null);_defineProperty(InkEditor,\"_defaultOpacity\",1);_defineProperty(InkEditor,\"_defaultThickness\",1);_defineProperty(InkEditor,\"_l10nPromise\",void 0);_defineProperty(InkEditor,\"_type\",\"ink\");/***/}),(/* 150 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.fitCurve=void 0;var fitCurve=__w_pdfjs_require__(151);exports.fitCurve=fitCurve;/***/}),(/* 151 */ /***/function(module){\"use strict\";function fitCurve(points,maxError,progressCallback){if(!Array.isArray(points)){throw new TypeError(\"First argument should be an array\");}points.forEach(function(point){if(!Array.isArray(point)||point.some(function(item){return typeof item!=='number';})||point.length!==points[0].length){throw Error(\"Each point should be an array of numbers. Each point should have the same amount of numbers.\");}});points=_filterInstanceProperty(points).call(points,function(point,i){return i===0||!point.every(function(val,j){return val===points[i-1][j];});});if(points.length<2){return[];}var len=points.length;var leftTangent=createTangent(points[1],points[0]);var rightTangent=createTangent(points[len-2],points[len-1]);return fitCubic(points,leftTangent,rightTangent,maxError,progressCallback);}function fitCubic(points,leftTangent,rightTangent,error,progressCallback){var MaxIterations=20;var bezCurve,u,uPrime,maxError,prevErr,splitPoint,prevSplit,centerVector,toCenterTangent,fromCenterTangent,beziers,dist,i;if(points.length===2){dist=maths.vectorLen(maths.subtract(points[0],points[1]))/3.0;bezCurve=[points[0],maths.addArrays(points[0],maths.mulItems(leftTangent,dist)),maths.addArrays(points[1],maths.mulItems(rightTangent,dist)),points[1]];return[bezCurve];}u=chordLengthParameterize(points);var _generateAndReport=generateAndReport(points,u,u,leftTangent,rightTangent,progressCallback);var _generateAndReport2=_slicedToArray(_generateAndReport,3);bezCurve=_generateAndReport2[0];maxError=_generateAndReport2[1];splitPoint=_generateAndReport2[2];if(maxError===0||maxError<error){return[bezCurve];}if(maxError<error*error){uPrime=u;prevErr=maxError;prevSplit=splitPoint;for(i=0;i<MaxIterations;i++){uPrime=reparameterize(bezCurve,points,uPrime);var _generateAndReport3=generateAndReport(points,u,uPrime,leftTangent,rightTangent,progressCallback);var _generateAndReport4=_slicedToArray(_generateAndReport3,3);bezCurve=_generateAndReport4[0];maxError=_generateAndReport4[1];splitPoint=_generateAndReport4[2];if(maxError<error){return[bezCurve];}else if(splitPoint===prevSplit){var errChange=maxError/prevErr;if(errChange>.9999&&errChange<1.0001){break;}}prevErr=maxError;prevSplit=splitPoint;}}beziers=[];centerVector=maths.subtract(points[splitPoint-1],points[splitPoint+1]);if(centerVector.every(function(val){return val===0;})){centerVector=maths.subtract(points[splitPoint-1],points[splitPoint]);var _ref38=[-centerVector[1],centerVector[0]];centerVector[0]=_ref38[0];centerVector[1]=_ref38[1];}toCenterTangent=maths.normalize(centerVector);fromCenterTangent=maths.mulItems(toCenterTangent,-1);beziers=_concatInstanceProperty(beziers).call(beziers,fitCubic(_sliceInstanceProperty(points).call(points,0,splitPoint+1),leftTangent,toCenterTangent,error,progressCallback));beziers=_concatInstanceProperty(beziers).call(beziers,fitCubic(_sliceInstanceProperty(points).call(points,splitPoint),fromCenterTangent,rightTangent,error,progressCallback));return beziers;};function generateAndReport(points,paramsOrig,paramsPrime,leftTangent,rightTangent,progressCallback){var bezCurve,maxError,splitPoint;bezCurve=generateBezier(points,paramsPrime,leftTangent,rightTangent,progressCallback);var _computeMaxError=computeMaxError(points,bezCurve,paramsOrig);var _computeMaxError2=_slicedToArray(_computeMaxError,2);maxError=_computeMaxError2[0];splitPoint=_computeMaxError2[1];if(progressCallback){progressCallback({bez:bezCurve,points:points,params:paramsOrig,maxErr:maxError,maxPoint:splitPoint});}return[bezCurve,maxError,splitPoint];}function generateBezier(points,parameters,leftTangent,rightTangent){var bezCurve,A,a,C,X,det_C0_C1,det_C0_X,det_X_C1,alpha_l,alpha_r,epsilon,segLength,i,len,tmp,u,ux,firstPoint=points[0],lastPoint=points[points.length-1];bezCurve=[firstPoint,null,null,lastPoint];A=maths.zeros_Xx2x2(parameters.length);for(i=0,len=parameters.length;i<len;i++){u=parameters[i];ux=1-u;a=A[i];a[0]=maths.mulItems(leftTangent,3*u*(ux*ux));a[1]=maths.mulItems(rightTangent,3*ux*(u*u));}C=[[0,0],[0,0]];X=[0,0];for(i=0,len=points.length;i<len;i++){u=parameters[i];a=A[i];C[0][0]+=maths.dot(a[0],a[0]);C[0][1]+=maths.dot(a[0],a[1]);C[1][0]+=maths.dot(a[0],a[1]);C[1][1]+=maths.dot(a[1],a[1]);tmp=maths.subtract(points[i],bezier.q([firstPoint,firstPoint,lastPoint,lastPoint],u));X[0]+=maths.dot(a[0],tmp);X[1]+=maths.dot(a[1],tmp);}det_C0_C1=C[0][0]*C[1][1]-C[1][0]*C[0][1];det_C0_X=C[0][0]*X[1]-C[1][0]*X[0];det_X_C1=X[0]*C[1][1]-X[1]*C[0][1];alpha_l=det_C0_C1===0?0:det_X_C1/det_C0_C1;alpha_r=det_C0_C1===0?0:det_C0_X/det_C0_C1;segLength=maths.vectorLen(maths.subtract(firstPoint,lastPoint));epsilon=1.0e-6*segLength;if(alpha_l<epsilon||alpha_r<epsilon){bezCurve[1]=maths.addArrays(firstPoint,maths.mulItems(leftTangent,segLength/3.0));bezCurve[2]=maths.addArrays(lastPoint,maths.mulItems(rightTangent,segLength/3.0));}else{bezCurve[1]=maths.addArrays(firstPoint,maths.mulItems(leftTangent,alpha_l));bezCurve[2]=maths.addArrays(lastPoint,maths.mulItems(rightTangent,alpha_r));}return bezCurve;};function reparameterize(bezier,points,parameters){return _mapInstanceProperty(parameters).call(parameters,function(p,i){return newtonRaphsonRootFind(bezier,points[i],p);});};function newtonRaphsonRootFind(bez,point,u){var d=maths.subtract(bezier.q(bez,u),point),qprime=bezier.qprime(bez,u),numerator=maths.mulMatrix(d,qprime),denominator=maths.sum(maths.squareItems(qprime))+2*maths.mulMatrix(d,bezier.qprimeprime(bez,u));if(denominator===0){return u;}else{return u-numerator/denominator;}};function chordLengthParameterize(points){var u=[],currU,prevU,prevP;points.forEach(function(p,i){currU=i?prevU+maths.vectorLen(maths.subtract(p,prevP)):0;u.push(currU);prevU=currU;prevP=p;});u=_mapInstanceProperty(u).call(u,function(x){return x/prevU;});return u;};function computeMaxError(points,bez,parameters){var dist,maxDist,splitPoint,v,i,count,point,t;maxDist=0;splitPoint=Math.floor(points.length/2);var t_distMap=mapTtoRelativeDistances(bez,10);for(i=0,count=points.length;i<count;i++){point=points[i];t=find_t(bez,parameters[i],t_distMap,10);v=maths.subtract(bezier.q(bez,t),point);dist=v[0]*v[0]+v[1]*v[1];if(dist>maxDist){maxDist=dist;splitPoint=i;}}return[maxDist,splitPoint];};var mapTtoRelativeDistances=function mapTtoRelativeDistances(bez,B_parts){var B_t_curr;var B_t_dist=[0];var B_t_prev=bez[0];var sumLen=0;for(var i=1;i<=B_parts;i++){B_t_curr=bezier.q(bez,i/B_parts);sumLen+=maths.vectorLen(maths.subtract(B_t_curr,B_t_prev));B_t_dist.push(sumLen);B_t_prev=B_t_curr;}B_t_dist=_mapInstanceProperty(B_t_dist).call(B_t_dist,function(x){return x/sumLen;});return B_t_dist;};function find_t(bez,param,t_distMap,B_parts){if(param<0){return 0;}if(param>1){return 1;}var lenMax,lenMin,tMax,tMin,t;for(var i=1;i<=B_parts;i++){if(param<=t_distMap[i]){tMin=(i-1)/B_parts;tMax=i/B_parts;lenMin=t_distMap[i-1];lenMax=t_distMap[i];t=(param-lenMin)/(lenMax-lenMin)*(tMax-tMin)+tMin;break;}}return t;}function createTangent(pointA,pointB){return maths.normalize(maths.subtract(pointA,pointB));}var maths=/*#__PURE__*/function(){function maths(){_classCallCheck(this,maths);}_createClass(maths,null,[{key:\"zeros_Xx2x2\",value:function zeros_Xx2x2(x){var zs=[];while(x--){zs.push([0,0]);}return zs;}},{key:\"mulItems\",value:function mulItems(items,multiplier){return _mapInstanceProperty(items).call(items,function(x){return x*multiplier;});}},{key:\"mulMatrix\",value:function mulMatrix(m1,m2){return _reduceInstanceProperty(m1).call(m1,function(sum,x1,i){return sum+x1*m2[i];},0);}},{key:\"subtract\",value:function subtract(arr1,arr2){return _mapInstanceProperty(arr1).call(arr1,function(x1,i){return x1-arr2[i];});}},{key:\"addArrays\",value:function addArrays(arr1,arr2){return _mapInstanceProperty(arr1).call(arr1,function(x1,i){return x1+arr2[i];});}},{key:\"addItems\",value:function addItems(items,addition){return _mapInstanceProperty(items).call(items,function(x){return x+addition;});}},{key:\"sum\",value:function sum(items){return _reduceInstanceProperty(items).call(items,function(sum,x){return sum+x;});}},{key:\"dot\",value:function dot(m1,m2){return maths.mulMatrix(m1,m2);}},{key:\"vectorLen\",value:function vectorLen(v){return _Math$hypot.apply(Math,_toConsumableArray(v));}},{key:\"divItems\",value:function divItems(items,divisor){return _mapInstanceProperty(items).call(items,function(x){return x/divisor;});}},{key:\"squareItems\",value:function squareItems(items){return _mapInstanceProperty(items).call(items,function(x){return x*x;});}},{key:\"normalize\",value:function normalize(v){return this.divItems(v,this.vectorLen(v));}}]);return maths;}();var bezier=/*#__PURE__*/function(){function bezier(){_classCallCheck(this,bezier);}_createClass(bezier,null,[{key:\"q\",value:function q(ctrlPoly,t){var tx=1.0-t;var pA=maths.mulItems(ctrlPoly[0],tx*tx*tx),pB=maths.mulItems(ctrlPoly[1],3*tx*tx*t),pC=maths.mulItems(ctrlPoly[2],3*tx*t*t),pD=maths.mulItems(ctrlPoly[3],t*t*t);return maths.addArrays(maths.addArrays(pA,pB),maths.addArrays(pC,pD));}},{key:\"qprime\",value:function qprime(ctrlPoly,t){var tx=1.0-t;var pA=maths.mulItems(maths.subtract(ctrlPoly[1],ctrlPoly[0]),3*tx*tx),pB=maths.mulItems(maths.subtract(ctrlPoly[2],ctrlPoly[1]),6*tx*t),pC=maths.mulItems(maths.subtract(ctrlPoly[3],ctrlPoly[2]),3*t*t);return maths.addArrays(maths.addArrays(pA,pB),pC);}},{key:\"qprimeprime\",value:function qprimeprime(ctrlPoly,t){return maths.addArrays(maths.mulItems(maths.addArrays(maths.subtract(ctrlPoly[2],maths.mulItems(ctrlPoly[1],2)),ctrlPoly[0]),6*(1.0-t)),maths.mulItems(maths.addArrays(maths.subtract(ctrlPoly[3],maths.mulItems(ctrlPoly[2],2)),ctrlPoly[1]),6*t));}}]);return bezier;}();module.exports=fitCurve;module.exports.fitCubic=fitCubic;module.exports.createTangent=createTangent;/***/}),(/* 152 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.AnnotationLayer=void 0;var _util=__w_pdfjs_require__(1);var _display_utils=__w_pdfjs_require__(133);var _annotation_storage=__w_pdfjs_require__(130);var _scripting_utils=__w_pdfjs_require__(153);var _xfa_layer=__w_pdfjs_require__(154);function _classStaticPrivateMethodGet(receiver,classConstructor,method){_classCheckPrivateStaticAccess(receiver,classConstructor);return method;}function _classCheckPrivateStaticAccess(receiver,classConstructor){if(receiver!==classConstructor){throw new TypeError(\"Private static access of wrong provenance\");}}var DEFAULT_TAB_INDEX=1000;var DEFAULT_FONT_SIZE=9;var GetElementsByNameSet=new _WeakSet();function getRectDims(rect){return{width:rect[2]-rect[0],height:rect[3]-rect[1]};}var AnnotationElementFactory=/*#__PURE__*/function(){function AnnotationElementFactory(){_classCallCheck(this,AnnotationElementFactory);}_createClass(AnnotationElementFactory,null,[{key:\"create\",value:function create(parameters){var subtype=parameters.data.annotationType;switch(subtype){case _util.AnnotationType.LINK:return new LinkAnnotationElement(parameters);case _util.AnnotationType.TEXT:return new TextAnnotationElement(parameters);case _util.AnnotationType.WIDGET:var fieldType=parameters.data.fieldType;switch(fieldType){case\"Tx\":return new TextWidgetAnnotationElement(parameters);case\"Btn\":if(parameters.data.radioButton){return new RadioButtonWidgetAnnotationElement(parameters);}else if(parameters.data.checkBox){return new CheckboxWidgetAnnotationElement(parameters);}return new PushButtonWidgetAnnotationElement(parameters);case\"Ch\":return new ChoiceWidgetAnnotationElement(parameters);}return new WidgetAnnotationElement(parameters);case _util.AnnotationType.POPUP:return new PopupAnnotationElement(parameters);case _util.AnnotationType.FREETEXT:return new FreeTextAnnotationElement(parameters);case _util.AnnotationType.LINE:return new LineAnnotationElement(parameters);case _util.AnnotationType.SQUARE:return new SquareAnnotationElement(parameters);case _util.AnnotationType.CIRCLE:return new CircleAnnotationElement(parameters);case _util.AnnotationType.POLYLINE:return new PolylineAnnotationElement(parameters);case _util.AnnotationType.CARET:return new CaretAnnotationElement(parameters);case _util.AnnotationType.INK:return new InkAnnotationElement(parameters);case _util.AnnotationType.POLYGON:return new PolygonAnnotationElement(parameters);case _util.AnnotationType.HIGHLIGHT:return new HighlightAnnotationElement(parameters);case _util.AnnotationType.UNDERLINE:return new UnderlineAnnotationElement(parameters);case _util.AnnotationType.SQUIGGLY:return new SquigglyAnnotationElement(parameters);case _util.AnnotationType.STRIKEOUT:return new StrikeOutAnnotationElement(parameters);case _util.AnnotationType.STAMP:return new StampAnnotationElement(parameters);case _util.AnnotationType.FILEATTACHMENT:return new FileAttachmentAnnotationElement(parameters);default:return new AnnotationElement(parameters);}}}]);return AnnotationElementFactory;}();var AnnotationElement=/*#__PURE__*/function(){function AnnotationElement(parameters){_classCallCheck(this,AnnotationElement);var _ref39=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref39$isRenderable=_ref39.isRenderable,isRenderable=_ref39$isRenderable===void 0?false:_ref39$isRenderable,_ref39$ignoreBorder=_ref39.ignoreBorder,ignoreBorder=_ref39$ignoreBorder===void 0?false:_ref39$ignoreBorder,_ref39$createQuadrila=_ref39.createQuadrilaterals,createQuadrilaterals=_ref39$createQuadrila===void 0?false:_ref39$createQuadrila;this.isRenderable=isRenderable;this.data=parameters.data;this.layer=parameters.layer;this.page=parameters.page;this.viewport=parameters.viewport;this.linkService=parameters.linkService;this.downloadManager=parameters.downloadManager;this.imageResourcesPath=parameters.imageResourcesPath;this.renderForms=parameters.renderForms;this.svgFactory=parameters.svgFactory;this.annotationStorage=parameters.annotationStorage;this.enableScripting=parameters.enableScripting;this.hasJSActions=parameters.hasJSActions;this._fieldObjects=parameters.fieldObjects;this._mouseState=parameters.mouseState;if(isRenderable){this.container=this._createContainer(ignoreBorder);}if(createQuadrilaterals){this.quadrilaterals=this._createQuadrilaterals(ignoreBorder);}}_createClass(AnnotationElement,[{key:\"_createContainer\",value:function _createContainer(){var ignoreBorder=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var data=this.data,page=this.page,viewport=this.viewport;var container=document.createElement(\"section\");var _getRectDims=getRectDims(data.rect),width=_getRectDims.width,height=_getRectDims.height;var _viewport$viewBox=_slicedToArray(viewport.viewBox,4),pageLLx=_viewport$viewBox[0],pageLLy=_viewport$viewBox[1],pageURx=_viewport$viewBox[2],pageURy=_viewport$viewBox[3];var pageWidth=pageURx-pageLLx;var pageHeight=pageURy-pageLLy;container.setAttribute(\"data-annotation-id\",data.id);var rect=_util.Util.normalizeRect([data.rect[0],page.view[3]-data.rect[1]+page.view[1],data.rect[2],page.view[3]-data.rect[3]+page.view[1]]);if(!ignoreBorder&&data.borderStyle.width>0){container.style.borderWidth=\"\".concat(data.borderStyle.width,\"px\");var horizontalRadius=data.borderStyle.horizontalCornerRadius;var verticalRadius=data.borderStyle.verticalCornerRadius;if(horizontalRadius>0||verticalRadius>0){var _context95;var radius=_concatInstanceProperty(_context95=\"calc(\".concat(horizontalRadius,\"px * var(--scale-factor)) / calc(\")).call(_context95,verticalRadius,\"px * var(--scale-factor))\");container.style.borderRadius=radius;}else if(this instanceof RadioButtonWidgetAnnotationElement){var _context96;var _radius=_concatInstanceProperty(_context96=\"calc(\".concat(width,\"px * var(--scale-factor)) / calc(\")).call(_context96,height,\"px * var(--scale-factor))\");container.style.borderRadius=_radius;}switch(data.borderStyle.style){case _util.AnnotationBorderStyleType.SOLID:container.style.borderStyle=\"solid\";break;case _util.AnnotationBorderStyleType.DASHED:container.style.borderStyle=\"dashed\";break;case _util.AnnotationBorderStyleType.BEVELED:(0,_util.warn)(\"Unimplemented border style: beveled\");break;case _util.AnnotationBorderStyleType.INSET:(0,_util.warn)(\"Unimplemented border style: inset\");break;case _util.AnnotationBorderStyleType.UNDERLINE:container.style.borderBottomStyle=\"solid\";break;default:break;}var borderColor=data.borderColor||null;if(borderColor){container.style.borderColor=_util.Util.makeHexColor(borderColor[0]|0,borderColor[1]|0,borderColor[2]|0);}else{container.style.borderWidth=0;}}container.style.left=\"\".concat(100*(rect[0]-pageLLx)/pageWidth,\"%\");container.style.top=\"\".concat(100*(rect[1]-pageLLy)/pageHeight,\"%\");var rotation=data.rotation;if(data.hasOwnCanvas||rotation===0){container.style.width=\"\".concat(100*width/pageWidth,\"%\");container.style.height=\"\".concat(100*height/pageHeight,\"%\");}else{this.setRotation(rotation,container);}return container;}},{key:\"setRotation\",value:function setRotation(angle){var container=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.container;var _this$viewport$viewBo2=_slicedToArray(this.viewport.viewBox,4),pageLLx=_this$viewport$viewBo2[0],pageLLy=_this$viewport$viewBo2[1],pageURx=_this$viewport$viewBo2[2],pageURy=_this$viewport$viewBo2[3];var pageWidth=pageURx-pageLLx;var pageHeight=pageURy-pageLLy;var _getRectDims2=getRectDims(this.data.rect),width=_getRectDims2.width,height=_getRectDims2.height;var elementWidth,elementHeight;if(angle%180===0){elementWidth=100*width/pageWidth;elementHeight=100*height/pageHeight;}else{elementWidth=100*height/pageWidth;elementHeight=100*width/pageHeight;}container.style.width=\"\".concat(elementWidth,\"%\");container.style.height=\"\".concat(elementHeight,\"%\");container.setAttribute(\"data-main-rotation\",(360-angle)%360);}},{key:\"_commonActions\",get:function get(){var _this52=this;var setColor=function setColor(jsName,styleName,event){var color=event.detail[jsName];event.target.style[styleName]=_scripting_utils.ColorConverters[\"\".concat(color[0],\"_HTML\")](_sliceInstanceProperty(color).call(color,1));};return(0,_util.shadow)(this,\"_commonActions\",{display:function display(event){var hidden=event.detail.display%2===1;_this52.container.style.visibility=hidden?\"hidden\":\"visible\";_this52.annotationStorage.setValue(_this52.data.id,{hidden:hidden,print:event.detail.display===0||event.detail.display===3});},print:function print(event){_this52.annotationStorage.setValue(_this52.data.id,{print:event.detail.print});},hidden:function hidden(event){_this52.container.style.visibility=event.detail.hidden?\"hidden\":\"visible\";_this52.annotationStorage.setValue(_this52.data.id,{hidden:event.detail.hidden});},focus:function focus(event){_setTimeout(function(){return event.target.focus({preventScroll:false});},0);},userName:function userName(event){event.target.title=event.detail.userName;},readonly:function readonly(event){if(event.detail.readonly){event.target.setAttribute(\"readonly\",\"\");}else{event.target.removeAttribute(\"readonly\");}},required:function required(event){_this52._setRequired(event.target,event.detail.required);},bgColor:function bgColor(event){setColor(\"bgColor\",\"backgroundColor\",event);},fillColor:function fillColor(event){setColor(\"fillColor\",\"backgroundColor\",event);},fgColor:function fgColor(event){setColor(\"fgColor\",\"color\",event);},textColor:function textColor(event){setColor(\"textColor\",\"color\",event);},borderColor:function borderColor(event){setColor(\"borderColor\",\"borderColor\",event);},strokeColor:function strokeColor(event){setColor(\"strokeColor\",\"borderColor\",event);},rotation:function rotation(event){var angle=event.detail.rotation;_this52.setRotation(angle);_this52.annotationStorage.setValue(_this52.data.id,{rotation:angle});}});}},{key:\"_dispatchEventFromSandbox\",value:function _dispatchEventFromSandbox(actions,jsEvent){var commonActions=this._commonActions;for(var _i5=0,_Object$keys2=_Object$keys(jsEvent.detail);_i5<_Object$keys2.length;_i5++){var name=_Object$keys2[_i5];var action=actions[name]||commonActions[name];if(action){action(jsEvent);}}}},{key:\"_setDefaultPropertiesFromJS\",value:function _setDefaultPropertiesFromJS(element){if(!this.enableScripting){return;}var storedData=this.annotationStorage.getRawValue(this.data.id);if(!storedData){return;}var commonActions=this._commonActions;for(var _i6=0,_Object$entries3=_Object$entries2(storedData);_i6<_Object$entries3.length;_i6++){var _Object$entries3$_i=_slicedToArray(_Object$entries3[_i6],2),actionName=_Object$entries3$_i[0],detail=_Object$entries3$_i[1];var action=commonActions[actionName];if(action){var eventProxy={detail:_defineProperty2({},actionName,detail),target:element};action(eventProxy);delete storedData[actionName];}}}},{key:\"_createQuadrilaterals\",value:function _createQuadrilaterals(){var ignoreBorder=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(!this.data.quadPoints){return null;}var quadrilaterals=[];var savedRect=this.data.rect;var _iterator87=_createForOfIteratorHelper(this.data.quadPoints),_step87;try{for(_iterator87.s();!(_step87=_iterator87.n()).done;){var quadPoint=_step87.value;this.data.rect=[quadPoint[2].x,quadPoint[2].y,quadPoint[1].x,quadPoint[1].y];quadrilaterals.push(this._createContainer(ignoreBorder));}}catch(err){_iterator87.e(err);}finally{_iterator87.f();}this.data.rect=savedRect;return quadrilaterals;}},{key:\"_createPopup\",value:function _createPopup(trigger,data){var container=this.container;if(this.quadrilaterals){trigger=trigger||this.quadrilaterals;container=this.quadrilaterals[0];}if(!trigger){trigger=document.createElement(\"div\");trigger.className=\"popupTriggerArea\";container.append(trigger);}var popupElement=new PopupElement({container:container,trigger:trigger,color:data.color,titleObj:data.titleObj,modificationDate:data.modificationDate,contentsObj:data.contentsObj,richText:data.richText,hideWrapper:true});var popup=popupElement.render();popup.style.left=\"100%\";container.append(popup);}},{key:\"_renderQuadrilaterals\",value:function _renderQuadrilaterals(className){var _iterator88=_createForOfIteratorHelper(this.quadrilaterals),_step88;try{for(_iterator88.s();!(_step88=_iterator88.n()).done;){var quadrilateral=_step88.value;quadrilateral.className=className;}}catch(err){_iterator88.e(err);}finally{_iterator88.f();}return this.quadrilaterals;}},{key:\"render\",value:function render(){(0,_util.unreachable)(\"Abstract method `AnnotationElement.render` called\");}},{key:\"_getElementsByName\",value:function _getElementsByName(name){var skipId=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var fields=[];if(this._fieldObjects){var fieldObj=this._fieldObjects[name];if(fieldObj){var _iterator89=_createForOfIteratorHelper(fieldObj),_step89;try{for(_iterator89.s();!(_step89=_iterator89.n()).done;){var _step89$value=_step89.value,page=_step89$value.page,id=_step89$value.id,exportValues=_step89$value.exportValues;if(page===-1){continue;}if(id===skipId){continue;}var exportValue=typeof exportValues===\"string\"?exportValues:null;var domElement=document.querySelector(\"[data-element-id=\\\"\".concat(id,\"\\\"]\"));if(domElement&&!GetElementsByNameSet.has(domElement)){(0,_util.warn)(\"_getElementsByName - element not allowed: \".concat(id));continue;}fields.push({id:id,exportValue:exportValue,domElement:domElement});}}catch(err){_iterator89.e(err);}finally{_iterator89.f();}}return fields;}var _iterator90=_createForOfIteratorHelper(document.getElementsByName(name)),_step90;try{for(_iterator90.s();!(_step90=_iterator90.n()).done;){var _domElement=_step90.value;var _id5=_domElement.id,_exportValue=_domElement.exportValue;if(_id5===skipId){continue;}if(!GetElementsByNameSet.has(_domElement)){continue;}fields.push({id:_id5,exportValue:_exportValue,domElement:_domElement});}}catch(err){_iterator90.e(err);}finally{_iterator90.f();}return fields;}}],[{key:\"platform\",get:function get(){var platform=typeof navigator!==\"undefined\"?navigator.platform:\"\";return(0,_util.shadow)(this,\"platform\",{isWin:_includesInstanceProperty(platform).call(platform,\"Win\"),isMac:_includesInstanceProperty(platform).call(platform,\"Mac\")});}}]);return AnnotationElement;}();var LinkAnnotationElement=/*#__PURE__*/function(_AnnotationElement){_inherits(LinkAnnotationElement,_AnnotationElement);function LinkAnnotationElement(parameters){var _this53;_classCallCheck(this,LinkAnnotationElement);var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;_this53=_callSuper(this,LinkAnnotationElement,[parameters,{isRenderable:true,ignoreBorder:!!(options!==null&&options!==void 0&&options.ignoreBorder),createQuadrilaterals:true}]);_this53.isTooltipOnly=parameters.data.isTooltipOnly;return _this53;}_createClass(LinkAnnotationElement,[{key:\"render\",value:function render(){var data=this.data,linkService=this.linkService;var link=document.createElement(\"a\");link.setAttribute(\"data-element-id\",data.id);var isBound=false;if(data.url){linkService.addLinkAttributes(link,data.url,data.newWindow);isBound=true;}else if(data.action){this._bindNamedAction(link,data.action);isBound=true;}else if(data.dest){this._bindLink(link,data.dest);isBound=true;}else{if(data.actions&&(data.actions.Action||data.actions[\"Mouse Up\"]||data.actions[\"Mouse Down\"])&&this.enableScripting&&this.hasJSActions){this._bindJSAction(link,data);isBound=true;}if(data.resetForm){this._bindResetFormAction(link,data.resetForm);isBound=true;}else if(this.isTooltipOnly&&!isBound){this._bindLink(link,\"\");isBound=true;}}if(this.quadrilaterals){var _context97;return _mapInstanceProperty(_context97=this._renderQuadrilaterals(\"linkAnnotation\")).call(_context97,function(quadrilateral,index){var linkElement=index===0?link:link.cloneNode();quadrilateral.append(linkElement);return quadrilateral;});}this.container.className=\"linkAnnotation\";if(isBound){this.container.append(link);}return this.container;}},{key:\"_bindLink\",value:function _bindLink(link,destination){var _this54=this;link.href=this.linkService.getDestinationHash(destination);link.onclick=function(){if(destination){_this54.linkService.goToDestination(destination);}return false;};if(destination||destination===\"\"){link.className=\"internalLink\";}}},{key:\"_bindNamedAction\",value:function _bindNamedAction(link,action){var _this55=this;link.href=this.linkService.getAnchorUrl(\"\");link.onclick=function(){_this55.linkService.executeNamedAction(action);return false;};link.className=\"internalLink\";}},{key:\"_bindJSAction\",value:function _bindJSAction(link,data){var _this56=this;link.href=this.linkService.getAnchorUrl(\"\");var map=new _Map([[\"Action\",\"onclick\"],[\"Mouse Up\",\"onmouseup\"],[\"Mouse Down\",\"onmousedown\"]]);var _loop2=function _loop2(){var name=_Object$keys3[_i7];var jsName=map.get(name);if(!jsName){return 1;// continue\n}link[jsName]=function(){var _this$linkService$eve;(_this$linkService$eve=_this56.linkService.eventBus)===null||_this$linkService$eve===void 0?void 0:_this$linkService$eve.dispatch(\"dispatcheventinsandbox\",{source:_this56,detail:{id:data.id,name:name}});return false;};};for(var _i7=0,_Object$keys3=_Object$keys(data.actions);_i7<_Object$keys3.length;_i7++){if(_loop2())continue;}if(!link.onclick){link.onclick=function(){return false;};}link.className=\"internalLink\";}},{key:\"_bindResetFormAction\",value:function _bindResetFormAction(link,resetForm){var _this57=this;var otherClickAction=link.onclick;if(!otherClickAction){link.href=this.linkService.getAnchorUrl(\"\");}link.className=\"internalLink\";if(!this._fieldObjects){(0,_util.warn)(\"_bindResetFormAction - \\\"resetForm\\\" action not supported, \"+\"ensure that the `fieldObjects` parameter is provided.\");if(!otherClickAction){link.onclick=function(){return false;};}return;}link.onclick=function(){if(otherClickAction){otherClickAction();}var resetFormFields=resetForm.fields,resetFormRefs=resetForm.refs,include=resetForm.include;var allFields=[];if(resetFormFields.length!==0||resetFormRefs.length!==0){var fieldIds=new _Set(resetFormRefs);var _iterator91=_createForOfIteratorHelper(resetFormFields),_step91;try{for(_iterator91.s();!(_step91=_iterator91.n()).done;){var fieldName=_step91.value;var _fields=_this57._fieldObjects[fieldName]||[];var _iterator93=_createForOfIteratorHelper(_fields),_step93;try{for(_iterator93.s();!(_step93=_iterator93.n()).done;){var id=_step93.value.id;fieldIds.add(id);}}catch(err){_iterator93.e(err);}finally{_iterator93.f();}}}catch(err){_iterator91.e(err);}finally{_iterator91.f();}for(var _i8=0,_Object$values=_Object$values2(_this57._fieldObjects);_i8<_Object$values.length;_i8++){var fields=_Object$values[_i8];var _iterator92=_createForOfIteratorHelper(fields),_step92;try{for(_iterator92.s();!(_step92=_iterator92.n()).done;){var field=_step92.value;if(fieldIds.has(field.id)===include){allFields.push(field);}}}catch(err){_iterator92.e(err);}finally{_iterator92.f();}}}else{for(var _i9=0,_Object$values3=_Object$values2(_this57._fieldObjects);_i9<_Object$values3.length;_i9++){var _fields2=_Object$values3[_i9];allFields.push.apply(allFields,_toConsumableArray(_fields2));}}var storage=_this57.annotationStorage;var allIds=[];for(var _i10=0,_allFields=allFields;_i10<_allFields.length;_i10++){var _field=_allFields[_i10];var _id6=_field.id;allIds.push(_id6);switch(_field.type){case\"text\":{var value=_field.defaultValue||\"\";storage.setValue(_id6,{value:value});break;}case\"checkbox\":case\"radiobutton\":{var _value2=_field.defaultValue===_field.exportValues;storage.setValue(_id6,{value:_value2});break;}case\"combobox\":case\"listbox\":{var _value3=_field.defaultValue||\"\";storage.setValue(_id6,{value:_value3});break;}default:continue;}var domElement=document.querySelector(\"[data-element-id=\\\"\".concat(_id6,\"\\\"]\"));if(!domElement){continue;}else if(!GetElementsByNameSet.has(domElement)){(0,_util.warn)(\"_bindResetFormAction - element not allowed: \".concat(_id6));continue;}domElement.dispatchEvent(new Event(\"resetform\"));}if(_this57.enableScripting){var _this$linkService$eve2;(_this$linkService$eve2=_this57.linkService.eventBus)===null||_this$linkService$eve2===void 0?void 0:_this$linkService$eve2.dispatch(\"dispatcheventinsandbox\",{source:_this57,detail:{id:\"app\",ids:allIds,name:\"ResetForm\"}});}return false;};}}]);return LinkAnnotationElement;}(AnnotationElement);var TextAnnotationElement=/*#__PURE__*/function(_AnnotationElement2){_inherits(TextAnnotationElement,_AnnotationElement2);function TextAnnotationElement(parameters){_classCallCheck(this,TextAnnotationElement);var _parameters$data$titl,_parameters$data$cont,_parameters$data$rich;var isRenderable=!!(parameters.data.hasPopup||(_parameters$data$titl=parameters.data.titleObj)!==null&&_parameters$data$titl!==void 0&&_parameters$data$titl.str||(_parameters$data$cont=parameters.data.contentsObj)!==null&&_parameters$data$cont!==void 0&&_parameters$data$cont.str||(_parameters$data$rich=parameters.data.richText)!==null&&_parameters$data$rich!==void 0&&_parameters$data$rich.str);return _callSuper(this,TextAnnotationElement,[parameters,{isRenderable:isRenderable}]);}_createClass(TextAnnotationElement,[{key:\"render\",value:function render(){this.container.className=\"textAnnotation\";var image=document.createElement(\"img\");image.src=this.imageResourcesPath+\"annotation-\"+this.data.name.toLowerCase()+\".svg\";image.alt=\"[{{type}} Annotation]\";image.dataset.l10nId=\"text_annotation_type\";image.dataset.l10nArgs=_JSON$stringify({type:this.data.name});if(!this.data.hasPopup){this._createPopup(image,this.data);}this.container.append(image);return this.container;}}]);return TextAnnotationElement;}(AnnotationElement);var WidgetAnnotationElement=/*#__PURE__*/function(_AnnotationElement3){_inherits(WidgetAnnotationElement,_AnnotationElement3);function WidgetAnnotationElement(){_classCallCheck(this,WidgetAnnotationElement);return _callSuper(this,WidgetAnnotationElement,arguments);}_createClass(WidgetAnnotationElement,[{key:\"render\",value:function render(){if(this.data.alternativeText){this.container.title=this.data.alternativeText;}return this.container;}},{key:\"_getKeyModifier\",value:function _getKeyModifier(event){var _AnnotationElement$pl=AnnotationElement.platform,isWin=_AnnotationElement$pl.isWin,isMac=_AnnotationElement$pl.isMac;return isWin&&event.ctrlKey||isMac&&event.metaKey;}},{key:\"_setEventListener\",value:function _setEventListener(element,baseName,eventName,valueGetter){var _this58=this;if(_includesInstanceProperty(baseName).call(baseName,\"mouse\")){element.addEventListener(baseName,function(event){var _this$linkService$eve3;(_this$linkService$eve3=_this58.linkService.eventBus)===null||_this$linkService$eve3===void 0?void 0:_this$linkService$eve3.dispatch(\"dispatcheventinsandbox\",{source:_this58,detail:{id:_this58.data.id,name:eventName,value:valueGetter(event),shift:event.shiftKey,modifier:_this58._getKeyModifier(event)}});});}else{element.addEventListener(baseName,function(event){var _this$linkService$eve4;(_this$linkService$eve4=_this58.linkService.eventBus)===null||_this$linkService$eve4===void 0?void 0:_this$linkService$eve4.dispatch(\"dispatcheventinsandbox\",{source:_this58,detail:{id:_this58.data.id,name:eventName,value:valueGetter(event)}});});}}},{key:\"_setEventListeners\",value:function _setEventListeners(element,names,getter){var _iterator94=_createForOfIteratorHelper(names),_step94;try{for(_iterator94.s();!(_step94=_iterator94.n()).done;){var _step94$value=_slicedToArray(_step94.value,2),baseName=_step94$value[0],eventName=_step94$value[1];var _this$data$actions;if(eventName===\"Action\"||(_this$data$actions=this.data.actions)!==null&&_this$data$actions!==void 0&&_this$data$actions[eventName]){this._setEventListener(element,baseName,eventName,getter);}}}catch(err){_iterator94.e(err);}finally{_iterator94.f();}}},{key:\"_setBackgroundColor\",value:function _setBackgroundColor(element){var color=this.data.backgroundColor||null;element.style.backgroundColor=color===null?\"transparent\":_util.Util.makeHexColor(color[0],color[1],color[2]);}},{key:\"_setTextStyle\",value:function _setTextStyle(element){var TEXT_ALIGNMENT=[\"left\",\"center\",\"right\"];var fontColor=this.data.defaultAppearanceData.fontColor;var fontSize=this.data.defaultAppearanceData.fontSize||DEFAULT_FONT_SIZE;var style=element.style;var computedFontSize;if(this.data.multiLine){var height=Math.abs(this.data.rect[3]-this.data.rect[1]);var numberOfLines=Math.round(height/(_util.LINE_FACTOR*fontSize))||1;var lineHeight=height/numberOfLines;computedFontSize=Math.min(fontSize,Math.round(lineHeight/_util.LINE_FACTOR));}else{var _height=Math.abs(this.data.rect[3]-this.data.rect[1]);computedFontSize=Math.min(fontSize,Math.round(_height/_util.LINE_FACTOR));}style.fontSize=\"calc(\".concat(computedFontSize,\"px * var(--scale-factor))\");style.color=_util.Util.makeHexColor(fontColor[0],fontColor[1],fontColor[2]);if(this.data.textAlignment!==null){style.textAlign=TEXT_ALIGNMENT[this.data.textAlignment];}}},{key:\"_setRequired\",value:function _setRequired(element,isRequired){if(isRequired){element.setAttribute(\"required\",true);}else{element.removeAttribute(\"required\");}element.setAttribute(\"aria-required\",isRequired);}}]);return WidgetAnnotationElement;}(AnnotationElement);var TextWidgetAnnotationElement=/*#__PURE__*/function(_WidgetAnnotationElem){_inherits(TextWidgetAnnotationElement,_WidgetAnnotationElem);function TextWidgetAnnotationElement(parameters){_classCallCheck(this,TextWidgetAnnotationElement);var isRenderable=parameters.renderForms||!parameters.data.hasAppearance&&!!parameters.data.fieldValue;return _callSuper(this,TextWidgetAnnotationElement,[parameters,{isRenderable:isRenderable}]);}_createClass(TextWidgetAnnotationElement,[{key:\"setPropertyOnSiblings\",value:function setPropertyOnSiblings(base,key,value,keyInStorage){var storage=this.annotationStorage;var _iterator95=_createForOfIteratorHelper(this._getElementsByName(base.name,base.id)),_step95;try{for(_iterator95.s();!(_step95=_iterator95.n()).done;){var element=_step95.value;if(element.domElement){element.domElement[key]=value;}storage.setValue(element.id,_defineProperty2({},keyInStorage,value));}}catch(err){_iterator95.e(err);}finally{_iterator95.f();}}},{key:\"render\",value:function render(){var _this59=this;var storage=this.annotationStorage;var id=this.data.id;this.container.className=\"textWidgetAnnotation\";var element=null;if(this.renderForms){var storedData=storage.getValue(id,{value:this.data.fieldValue});var textContent=storedData.formattedValue||storedData.value||\"\";var maxLen=storage.getValue(id,{charLimit:this.data.maxLen}).charLimit;if(maxLen&&textContent.length>maxLen){textContent=_sliceInstanceProperty(textContent).call(textContent,0,maxLen);}var elementData={userValue:textContent,formattedValue:null,valueOnFocus:\"\"};if(this.data.multiLine){element=document.createElement(\"textarea\");element.textContent=textContent;if(this.data.doNotScroll){element.style.overflowY=\"hidden\";}}else{element=document.createElement(\"input\");element.type=\"text\";element.setAttribute(\"value\",textContent);if(this.data.doNotScroll){element.style.overflowX=\"hidden\";}}GetElementsByNameSet.add(element);element.setAttribute(\"data-element-id\",id);element.disabled=this.data.readOnly;element.name=this.data.fieldName;element.tabIndex=DEFAULT_TAB_INDEX;this._setRequired(element,this.data.required);if(maxLen){element.maxLength=maxLen;}element.addEventListener(\"input\",function(event){storage.setValue(id,{value:event.target.value});_this59.setPropertyOnSiblings(element,\"value\",event.target.value,\"value\");});element.addEventListener(\"resetform\",function(event){var _this$data$defaultFie;var defaultValue=(_this$data$defaultFie=_this59.data.defaultFieldValue)!==null&&_this$data$defaultFie!==void 0?_this$data$defaultFie:\"\";element.value=elementData.userValue=defaultValue;elementData.formattedValue=null;});var blurListener=function blurListener(event){var formattedValue=elementData.formattedValue;if(formattedValue!==null&&formattedValue!==undefined){event.target.value=formattedValue;}event.target.scrollLeft=0;};if(this.enableScripting&&this.hasJSActions){var _this$data$actions2;element.addEventListener(\"focus\",function(event){if(elementData.userValue){event.target.value=elementData.userValue;}elementData.valueOnFocus=event.target.value;});element.addEventListener(\"updatefromsandbox\",function(jsEvent){var actions={value:function value(event){var _event$detail$value;elementData.userValue=(_event$detail$value=event.detail.value)!==null&&_event$detail$value!==void 0?_event$detail$value:\"\";storage.setValue(id,{value:elementData.userValue.toString()});event.target.value=elementData.userValue;},formattedValue:function formattedValue(event){var formattedValue=event.detail.formattedValue;elementData.formattedValue=formattedValue;if(formattedValue!==null&&formattedValue!==undefined&&event.target!==document.activeElement){event.target.value=formattedValue;}storage.setValue(id,{formattedValue:formattedValue});},selRange:function selRange(event){var _event$target;(_event$target=event.target).setSelectionRange.apply(_event$target,_toConsumableArray(event.detail.selRange));},charLimit:function charLimit(event){var _this$linkService$eve5;var charLimit=event.detail.charLimit;var target=event.target;if(charLimit===0){target.removeAttribute(\"maxLength\");return;}target.setAttribute(\"maxLength\",charLimit);var value=elementData.userValue;if(!value||value.length<=charLimit){return;}value=_sliceInstanceProperty(value).call(value,0,charLimit);target.value=elementData.userValue=value;storage.setValue(id,{value:value});(_this$linkService$eve5=_this59.linkService.eventBus)===null||_this$linkService$eve5===void 0?void 0:_this$linkService$eve5.dispatch(\"dispatcheventinsandbox\",{source:_this59,detail:{id:id,name:\"Keystroke\",value:value,willCommit:true,commitKey:1,selStart:target.selectionStart,selEnd:target.selectionEnd}});}};_this59._dispatchEventFromSandbox(actions,jsEvent);});element.addEventListener(\"keydown\",function(event){var _this$linkService$eve6;var commitKey=-1;if(event.key===\"Escape\"){commitKey=0;}else if(event.key===\"Enter\"){commitKey=2;}else if(event.key===\"Tab\"){commitKey=3;}if(commitKey===-1){return;}var value=event.target.value;if(elementData.valueOnFocus===value){return;}elementData.userValue=value;(_this$linkService$eve6=_this59.linkService.eventBus)===null||_this$linkService$eve6===void 0?void 0:_this$linkService$eve6.dispatch(\"dispatcheventinsandbox\",{source:_this59,detail:{id:id,name:\"Keystroke\",value:value,willCommit:true,commitKey:commitKey,selStart:event.target.selectionStart,selEnd:event.target.selectionEnd}});});var _blurListener=blurListener;blurListener=null;element.addEventListener(\"blur\",function(event){var value=event.target.value;elementData.userValue=value;if(_this59._mouseState.isDown&&elementData.valueOnFocus!==value){var _this$linkService$eve7;(_this$linkService$eve7=_this59.linkService.eventBus)===null||_this$linkService$eve7===void 0?void 0:_this$linkService$eve7.dispatch(\"dispatcheventinsandbox\",{source:_this59,detail:{id:id,name:\"Keystroke\",value:value,willCommit:true,commitKey:1,selStart:event.target.selectionStart,selEnd:event.target.selectionEnd}});}_blurListener(event);});if((_this$data$actions2=this.data.actions)!==null&&_this$data$actions2!==void 0&&_this$data$actions2.Keystroke){element.addEventListener(\"beforeinput\",function(event){var _this$linkService$eve8;var data=event.data,target=event.target;var value=target.value,selectionStart=target.selectionStart,selectionEnd=target.selectionEnd;var selStart=selectionStart,selEnd=selectionEnd;switch(event.inputType){case\"deleteWordBackward\":{var match=value.substring(0,selectionStart).match(/\\w*[^\\w]*$/);if(match){selStart-=match[0].length;}break;}case\"deleteWordForward\":{var _match=value.substring(selectionStart).match(/^[^\\w]*\\w*/);if(_match){selEnd+=_match[0].length;}break;}case\"deleteContentBackward\":if(selectionStart===selectionEnd){selStart-=1;}break;case\"deleteContentForward\":if(selectionStart===selectionEnd){selEnd+=1;}break;}event.preventDefault();(_this$linkService$eve8=_this59.linkService.eventBus)===null||_this$linkService$eve8===void 0?void 0:_this$linkService$eve8.dispatch(\"dispatcheventinsandbox\",{source:_this59,detail:{id:id,name:\"Keystroke\",value:value,change:data||\"\",willCommit:false,selStart:selStart,selEnd:selEnd}});});}this._setEventListeners(element,[[\"focus\",\"Focus\"],[\"blur\",\"Blur\"],[\"mousedown\",\"Mouse Down\"],[\"mouseenter\",\"Mouse Enter\"],[\"mouseleave\",\"Mouse Exit\"],[\"mouseup\",\"Mouse Up\"]],function(event){return event.target.value;});}if(blurListener){element.addEventListener(\"blur\",blurListener);}if(this.data.comb){var fieldWidth=this.data.rect[2]-this.data.rect[0];var combWidth=fieldWidth/maxLen;element.classList.add(\"comb\");element.style.letterSpacing=\"calc(\".concat(combWidth,\"px * var(--scale-factor) - 1ch)\");}}else{element=document.createElement(\"div\");element.textContent=this.data.fieldValue;element.style.verticalAlign=\"middle\";element.style.display=\"table-cell\";}this._setTextStyle(element);this._setBackgroundColor(element);this._setDefaultPropertiesFromJS(element);this.container.append(element);return this.container;}}]);return TextWidgetAnnotationElement;}(WidgetAnnotationElement);var CheckboxWidgetAnnotationElement=/*#__PURE__*/function(_WidgetAnnotationElem2){_inherits(CheckboxWidgetAnnotationElement,_WidgetAnnotationElem2);function CheckboxWidgetAnnotationElement(parameters){_classCallCheck(this,CheckboxWidgetAnnotationElement);return _callSuper(this,CheckboxWidgetAnnotationElement,[parameters,{isRenderable:parameters.renderForms}]);}_createClass(CheckboxWidgetAnnotationElement,[{key:\"render\",value:function render(){var _this60=this;var storage=this.annotationStorage;var data=this.data;var id=data.id;var value=storage.getValue(id,{value:data.exportValue===data.fieldValue}).value;if(typeof value===\"string\"){value=value!==\"Off\";storage.setValue(id,{value:value});}this.container.className=\"buttonWidgetAnnotation checkBox\";var element=document.createElement(\"input\");GetElementsByNameSet.add(element);element.setAttribute(\"data-element-id\",id);element.disabled=data.readOnly;this._setRequired(element,this.data.required);element.type=\"checkbox\";element.name=data.fieldName;if(value){element.setAttribute(\"checked\",true);}element.setAttribute(\"exportValue\",data.exportValue);element.tabIndex=DEFAULT_TAB_INDEX;element.addEventListener(\"change\",function(event){var _event$target2=event.target,name=_event$target2.name,checked=_event$target2.checked;var _iterator96=_createForOfIteratorHelper(_this60._getElementsByName(name,id)),_step96;try{for(_iterator96.s();!(_step96=_iterator96.n()).done;){var checkbox=_step96.value;var curChecked=checked&&checkbox.exportValue===data.exportValue;if(checkbox.domElement){checkbox.domElement.checked=curChecked;}storage.setValue(checkbox.id,{value:curChecked});}}catch(err){_iterator96.e(err);}finally{_iterator96.f();}storage.setValue(id,{value:checked});});element.addEventListener(\"resetform\",function(event){var defaultValue=data.defaultFieldValue||\"Off\";event.target.checked=defaultValue===data.exportValue;});if(this.enableScripting&&this.hasJSActions){element.addEventListener(\"updatefromsandbox\",function(jsEvent){var actions={value:function value(event){event.target.checked=event.detail.value!==\"Off\";storage.setValue(id,{value:event.target.checked});}};_this60._dispatchEventFromSandbox(actions,jsEvent);});this._setEventListeners(element,[[\"change\",\"Validate\"],[\"change\",\"Action\"],[\"focus\",\"Focus\"],[\"blur\",\"Blur\"],[\"mousedown\",\"Mouse Down\"],[\"mouseenter\",\"Mouse Enter\"],[\"mouseleave\",\"Mouse Exit\"],[\"mouseup\",\"Mouse Up\"]],function(event){return event.target.checked;});}this._setBackgroundColor(element);this._setDefaultPropertiesFromJS(element);this.container.append(element);return this.container;}}]);return CheckboxWidgetAnnotationElement;}(WidgetAnnotationElement);var RadioButtonWidgetAnnotationElement=/*#__PURE__*/function(_WidgetAnnotationElem3){_inherits(RadioButtonWidgetAnnotationElement,_WidgetAnnotationElem3);function RadioButtonWidgetAnnotationElement(parameters){_classCallCheck(this,RadioButtonWidgetAnnotationElement);return _callSuper(this,RadioButtonWidgetAnnotationElement,[parameters,{isRenderable:parameters.renderForms}]);}_createClass(RadioButtonWidgetAnnotationElement,[{key:\"render\",value:function render(){var _this61=this;this.container.className=\"buttonWidgetAnnotation radioButton\";var storage=this.annotationStorage;var data=this.data;var id=data.id;var value=storage.getValue(id,{value:data.fieldValue===data.buttonValue}).value;if(typeof value===\"string\"){value=value!==data.buttonValue;storage.setValue(id,{value:value});}var element=document.createElement(\"input\");GetElementsByNameSet.add(element);element.setAttribute(\"data-element-id\",id);element.disabled=data.readOnly;this._setRequired(element,this.data.required);element.type=\"radio\";element.name=data.fieldName;if(value){element.setAttribute(\"checked\",true);}element.tabIndex=DEFAULT_TAB_INDEX;element.addEventListener(\"change\",function(event){var _event$target3=event.target,name=_event$target3.name,checked=_event$target3.checked;var _iterator97=_createForOfIteratorHelper(_this61._getElementsByName(name,id)),_step97;try{for(_iterator97.s();!(_step97=_iterator97.n()).done;){var radio=_step97.value;storage.setValue(radio.id,{value:false});}}catch(err){_iterator97.e(err);}finally{_iterator97.f();}storage.setValue(id,{value:checked});});element.addEventListener(\"resetform\",function(event){var defaultValue=data.defaultFieldValue;event.target.checked=defaultValue!==null&&defaultValue!==undefined&&defaultValue===data.buttonValue;});if(this.enableScripting&&this.hasJSActions){var pdfButtonValue=data.buttonValue;element.addEventListener(\"updatefromsandbox\",function(jsEvent){var actions={value:function value(event){var checked=pdfButtonValue===event.detail.value;var _iterator98=_createForOfIteratorHelper(_this61._getElementsByName(event.target.name)),_step98;try{for(_iterator98.s();!(_step98=_iterator98.n()).done;){var radio=_step98.value;var curChecked=checked&&radio.id===id;if(radio.domElement){radio.domElement.checked=curChecked;}storage.setValue(radio.id,{value:curChecked});}}catch(err){_iterator98.e(err);}finally{_iterator98.f();}}};_this61._dispatchEventFromSandbox(actions,jsEvent);});this._setEventListeners(element,[[\"change\",\"Validate\"],[\"change\",\"Action\"],[\"focus\",\"Focus\"],[\"blur\",\"Blur\"],[\"mousedown\",\"Mouse Down\"],[\"mouseenter\",\"Mouse Enter\"],[\"mouseleave\",\"Mouse Exit\"],[\"mouseup\",\"Mouse Up\"]],function(event){return event.target.checked;});}this._setBackgroundColor(element);this._setDefaultPropertiesFromJS(element);this.container.append(element);return this.container;}}]);return RadioButtonWidgetAnnotationElement;}(WidgetAnnotationElement);var PushButtonWidgetAnnotationElement=/*#__PURE__*/function(_LinkAnnotationElemen){_inherits(PushButtonWidgetAnnotationElement,_LinkAnnotationElemen);function PushButtonWidgetAnnotationElement(parameters){_classCallCheck(this,PushButtonWidgetAnnotationElement);return _callSuper(this,PushButtonWidgetAnnotationElement,[parameters,{ignoreBorder:parameters.data.hasAppearance}]);}_createClass(PushButtonWidgetAnnotationElement,[{key:\"render\",value:function render(){var _this62=this;var container=_get(_getPrototypeOf(PushButtonWidgetAnnotationElement.prototype),\"render\",this).call(this);container.className=\"buttonWidgetAnnotation pushButton\";if(this.data.alternativeText){container.title=this.data.alternativeText;}var linkElement=container.lastChild;if(this.enableScripting&&this.hasJSActions&&linkElement){this._setDefaultPropertiesFromJS(linkElement);linkElement.addEventListener(\"updatefromsandbox\",function(jsEvent){_this62._dispatchEventFromSandbox({},jsEvent);});}return container;}}]);return PushButtonWidgetAnnotationElement;}(LinkAnnotationElement);var ChoiceWidgetAnnotationElement=/*#__PURE__*/function(_WidgetAnnotationElem4){_inherits(ChoiceWidgetAnnotationElement,_WidgetAnnotationElem4);function ChoiceWidgetAnnotationElement(parameters){_classCallCheck(this,ChoiceWidgetAnnotationElement);return _callSuper(this,ChoiceWidgetAnnotationElement,[parameters,{isRenderable:parameters.renderForms}]);}_createClass(ChoiceWidgetAnnotationElement,[{key:\"render\",value:function render(){var _this63=this;this.container.className=\"choiceWidgetAnnotation\";var storage=this.annotationStorage;var id=this.data.id;var storedData=storage.getValue(id,{value:this.data.fieldValue});var selectElement=document.createElement(\"select\");GetElementsByNameSet.add(selectElement);selectElement.setAttribute(\"data-element-id\",id);selectElement.disabled=this.data.readOnly;this._setRequired(selectElement,this.data.required);selectElement.name=this.data.fieldName;selectElement.tabIndex=DEFAULT_TAB_INDEX;var addAnEmptyEntry=this.data.combo&&this.data.options.length>0;if(!this.data.combo){selectElement.size=this.data.options.length;if(this.data.multiSelect){selectElement.multiple=true;}}selectElement.addEventListener(\"resetform\",function(event){var defaultValue=_this63.data.defaultFieldValue;var _iterator99=_createForOfIteratorHelper(selectElement.options),_step99;try{for(_iterator99.s();!(_step99=_iterator99.n()).done;){var option=_step99.value;option.selected=option.value===defaultValue;}}catch(err){_iterator99.e(err);}finally{_iterator99.f();}});var _iterator100=_createForOfIteratorHelper(this.data.options),_step100;try{for(_iterator100.s();!(_step100=_iterator100.n()).done;){var _context99;var option=_step100.value;var optionElement=document.createElement(\"option\");optionElement.textContent=option.displayValue;optionElement.value=option.exportValue;if(_includesInstanceProperty(_context99=storedData.value).call(_context99,option.exportValue)){optionElement.setAttribute(\"selected\",true);addAnEmptyEntry=false;}selectElement.append(optionElement);}}catch(err){_iterator100.e(err);}finally{_iterator100.f();}var _removeEmptyEntry2=null;if(addAnEmptyEntry){var noneOptionElement=document.createElement(\"option\");noneOptionElement.value=\" \";noneOptionElement.setAttribute(\"hidden\",true);noneOptionElement.setAttribute(\"selected\",true);selectElement.prepend(noneOptionElement);_removeEmptyEntry2=function removeEmptyEntry(){noneOptionElement.remove();selectElement.removeEventListener(\"input\",_removeEmptyEntry2);_removeEmptyEntry2=null;};selectElement.addEventListener(\"input\",_removeEmptyEntry2);}var getValue=function getValue(event,isExport){var _context98;var name=isExport?\"value\":\"textContent\";var options=event.target.options;if(!event.target.multiple){return options.selectedIndex===-1?null:options[options.selectedIndex][name];}return _mapInstanceProperty(_context98=_filterInstanceProperty(Array.prototype).call(options,function(option){return option.selected;})).call(_context98,function(option){return option[name];});};var getItems=function getItems(event){var options=event.target.options;return _mapInstanceProperty(Array.prototype).call(options,function(option){return{displayValue:option.textContent,exportValue:option.value};});};if(this.enableScripting&&this.hasJSActions){selectElement.addEventListener(\"updatefromsandbox\",function(jsEvent){var actions={value:function value(event){var _removeEmptyEntry;(_removeEmptyEntry=_removeEmptyEntry2)===null||_removeEmptyEntry===void 0?void 0:_removeEmptyEntry();var value=event.detail.value;var values=new _Set(Array.isArray(value)?value:[value]);var _iterator101=_createForOfIteratorHelper(selectElement.options),_step101;try{for(_iterator101.s();!(_step101=_iterator101.n()).done;){var option=_step101.value;option.selected=values.has(option.value);}}catch(err){_iterator101.e(err);}finally{_iterator101.f();}storage.setValue(id,{value:getValue(event,true)});},multipleSelection:function multipleSelection(event){selectElement.multiple=true;},remove:function remove(event){var options=selectElement.options;var index=event.detail.remove;options[index].selected=false;selectElement.remove(index);if(options.length>0){var i=_findIndexInstanceProperty(Array.prototype).call(options,function(option){return option.selected;});if(i===-1){options[0].selected=true;}}storage.setValue(id,{value:getValue(event,true),items:getItems(event)});},clear:function clear(event){while(selectElement.length!==0){selectElement.remove(0);}storage.setValue(id,{value:null,items:[]});},insert:function insert(event){var _event$detail$insert=event.detail.insert,index=_event$detail$insert.index,displayValue=_event$detail$insert.displayValue,exportValue=_event$detail$insert.exportValue;var selectChild=selectElement.children[index];var optionElement=document.createElement(\"option\");optionElement.textContent=displayValue;optionElement.value=exportValue;if(selectChild){selectChild.before(optionElement);}else{selectElement.append(optionElement);}storage.setValue(id,{value:getValue(event,true),items:getItems(event)});},items:function items(event){var items=event.detail.items;while(selectElement.length!==0){selectElement.remove(0);}var _iterator102=_createForOfIteratorHelper(items),_step102;try{for(_iterator102.s();!(_step102=_iterator102.n()).done;){var item=_step102.value;var displayValue=item.displayValue,exportValue=item.exportValue;var optionElement=document.createElement(\"option\");optionElement.textContent=displayValue;optionElement.value=exportValue;selectElement.append(optionElement);}}catch(err){_iterator102.e(err);}finally{_iterator102.f();}if(selectElement.options.length>0){selectElement.options[0].selected=true;}storage.setValue(id,{value:getValue(event,true),items:getItems(event)});},indices:function indices(event){var indices=new _Set(event.detail.indices);var _iterator103=_createForOfIteratorHelper(event.target.options),_step103;try{for(_iterator103.s();!(_step103=_iterator103.n()).done;){var option=_step103.value;option.selected=indices.has(option.index);}}catch(err){_iterator103.e(err);}finally{_iterator103.f();}storage.setValue(id,{value:getValue(event,true)});},editable:function editable(event){event.target.disabled=!event.detail.editable;}};_this63._dispatchEventFromSandbox(actions,jsEvent);});selectElement.addEventListener(\"input\",function(event){var _this$linkService$eve9;var exportValue=getValue(event,true);var value=getValue(event,false);storage.setValue(id,{value:exportValue});(_this$linkService$eve9=_this63.linkService.eventBus)===null||_this$linkService$eve9===void 0?void 0:_this$linkService$eve9.dispatch(\"dispatcheventinsandbox\",{source:_this63,detail:{id:id,name:\"Keystroke\",value:value,changeEx:exportValue,willCommit:true,commitKey:1,keyDown:false}});});this._setEventListeners(selectElement,[[\"focus\",\"Focus\"],[\"blur\",\"Blur\"],[\"mousedown\",\"Mouse Down\"],[\"mouseenter\",\"Mouse Enter\"],[\"mouseleave\",\"Mouse Exit\"],[\"mouseup\",\"Mouse Up\"],[\"input\",\"Action\"]],function(event){return event.target.checked;});}else{selectElement.addEventListener(\"input\",function(event){storage.setValue(id,{value:getValue(event,true)});});}if(this.data.combo){this._setTextStyle(selectElement);}else{}this._setBackgroundColor(selectElement);this._setDefaultPropertiesFromJS(selectElement);this.container.append(selectElement);return this.container;}}]);return ChoiceWidgetAnnotationElement;}(WidgetAnnotationElement);var PopupAnnotationElement=/*#__PURE__*/function(_AnnotationElement4){_inherits(PopupAnnotationElement,_AnnotationElement4);function PopupAnnotationElement(parameters){_classCallCheck(this,PopupAnnotationElement);var _parameters$data$titl2,_parameters$data$cont2,_parameters$data$rich2;var isRenderable=!!((_parameters$data$titl2=parameters.data.titleObj)!==null&&_parameters$data$titl2!==void 0&&_parameters$data$titl2.str||(_parameters$data$cont2=parameters.data.contentsObj)!==null&&_parameters$data$cont2!==void 0&&_parameters$data$cont2.str||(_parameters$data$rich2=parameters.data.richText)!==null&&_parameters$data$rich2!==void 0&&_parameters$data$rich2.str);return _callSuper(this,PopupAnnotationElement,[parameters,{isRenderable:isRenderable}]);}_createClass(PopupAnnotationElement,[{key:\"render\",value:function render(){var IGNORE_TYPES=[\"Line\",\"Square\",\"Circle\",\"PolyLine\",\"Polygon\",\"Ink\"];this.container.className=\"popupAnnotation\";if(_includesInstanceProperty(IGNORE_TYPES).call(IGNORE_TYPES,this.data.parentType)){return this.container;}var selector=\"[data-annotation-id=\\\"\".concat(this.data.parentId,\"\\\"]\");var parentElements=this.layer.querySelectorAll(selector);if(parentElements.length===0){return this.container;}var popup=new PopupElement({container:this.container,trigger:_Array$from(parentElements),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText});var page=this.page;var rect=_util.Util.normalizeRect([this.data.parentRect[0],page.view[3]-this.data.parentRect[1]+page.view[1],this.data.parentRect[2],page.view[3]-this.data.parentRect[3]+page.view[1]]);var popupLeft=rect[0]+this.data.parentRect[2]-this.data.parentRect[0];var popupTop=rect[1];var _this$viewport$viewBo3=_slicedToArray(this.viewport.viewBox,4),pageLLx=_this$viewport$viewBo3[0],pageLLy=_this$viewport$viewBo3[1],pageURx=_this$viewport$viewBo3[2],pageURy=_this$viewport$viewBo3[3];var pageWidth=pageURx-pageLLx;var pageHeight=pageURy-pageLLy;this.container.style.left=\"\".concat(100*(popupLeft-pageLLx)/pageWidth,\"%\");this.container.style.top=\"\".concat(100*(popupTop-pageLLy)/pageHeight,\"%\");this.container.append(popup.render());return this.container;}}]);return PopupAnnotationElement;}(AnnotationElement);var PopupElement=/*#__PURE__*/function(){function PopupElement(parameters){_classCallCheck(this,PopupElement);this.container=parameters.container;this.trigger=parameters.trigger;this.color=parameters.color;this.titleObj=parameters.titleObj;this.modificationDate=parameters.modificationDate;this.contentsObj=parameters.contentsObj;this.richText=parameters.richText;this.hideWrapper=parameters.hideWrapper||false;this.pinned=false;}_createClass(PopupElement,[{key:\"render\",value:function render(){var _this$richText,_this$contentsObj;var BACKGROUND_ENLIGHT=0.7;var wrapper=document.createElement(\"div\");wrapper.className=\"popupWrapper\";this.hideElement=this.hideWrapper?wrapper:this.container;this.hideElement.hidden=true;var popup=document.createElement(\"div\");popup.className=\"popup\";var color=this.color;if(color){var r=BACKGROUND_ENLIGHT*(255-color[0])+color[0];var g=BACKGROUND_ENLIGHT*(255-color[1])+color[1];var b=BACKGROUND_ENLIGHT*(255-color[2])+color[2];popup.style.backgroundColor=_util.Util.makeHexColor(r|0,g|0,b|0);}var title=document.createElement(\"h1\");title.dir=this.titleObj.dir;title.textContent=this.titleObj.str;popup.append(title);var dateObject=_display_utils.PDFDateString.toDateObject(this.modificationDate);if(dateObject){var modificationDate=document.createElement(\"span\");modificationDate.className=\"popupDate\";modificationDate.textContent=\"{{date}}, {{time}}\";modificationDate.dataset.l10nId=\"annotation_date_string\";modificationDate.dataset.l10nArgs=_JSON$stringify({date:dateObject.toLocaleDateString(),time:dateObject.toLocaleTimeString()});popup.append(modificationDate);}if((_this$richText=this.richText)!==null&&_this$richText!==void 0&&_this$richText.str&&(!((_this$contentsObj=this.contentsObj)!==null&&_this$contentsObj!==void 0&&_this$contentsObj.str)||this.contentsObj.str===this.richText.str)){_xfa_layer.XfaLayer.render({xfaHtml:this.richText.html,intent:\"richText\",div:popup});popup.lastChild.className=\"richText popupContent\";}else{var contents=this._formatContents(this.contentsObj);popup.append(contents);}if(!Array.isArray(this.trigger)){this.trigger=[this.trigger];}var _iterator104=_createForOfIteratorHelper(this.trigger),_step104;try{for(_iterator104.s();!(_step104=_iterator104.n()).done;){var element=_step104.value;element.addEventListener(\"click\",this._toggle.bind(this));element.addEventListener(\"mouseover\",this._show.bind(this,false));element.addEventListener(\"mouseout\",this._hide.bind(this,false));}}catch(err){_iterator104.e(err);}finally{_iterator104.f();}popup.addEventListener(\"click\",this._hide.bind(this,true));wrapper.append(popup);return wrapper;}},{key:\"_formatContents\",value:function _formatContents(_ref){var str=_ref.str,dir=_ref.dir;var p=document.createElement(\"p\");p.className=\"popupContent\";p.dir=dir;var lines=str.split(/(?:\\r\\n?|\\n)/);for(var i=0,ii=lines.length;i<ii;++i){var line=lines[i];p.append(document.createTextNode(line));if(i<ii-1){p.append(document.createElement(\"br\"));}}return p;}},{key:\"_toggle\",value:function _toggle(){if(this.pinned){this._hide(true);}else{this._show(true);}}},{key:\"_show\",value:function _show(){var pin=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(pin){this.pinned=true;}if(this.hideElement.hidden){this.hideElement.hidden=false;this.container.style.zIndex=_parseInt(this.container.style.zIndex)+1000;}}},{key:\"_hide\",value:function _hide(){var unpin=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;if(unpin){this.pinned=false;}if(!this.hideElement.hidden&&!this.pinned){this.hideElement.hidden=true;this.container.style.zIndex=_parseInt(this.container.style.zIndex)-1000;}}}]);return PopupElement;}();var FreeTextAnnotationElement=/*#__PURE__*/function(_AnnotationElement5){_inherits(FreeTextAnnotationElement,_AnnotationElement5);function FreeTextAnnotationElement(parameters){var _this64;_classCallCheck(this,FreeTextAnnotationElement);var _parameters$data$titl3,_parameters$data$cont3,_parameters$data$rich3;var isRenderable=!!(parameters.data.hasPopup||(_parameters$data$titl3=parameters.data.titleObj)!==null&&_parameters$data$titl3!==void 0&&_parameters$data$titl3.str||(_parameters$data$cont3=parameters.data.contentsObj)!==null&&_parameters$data$cont3!==void 0&&_parameters$data$cont3.str||(_parameters$data$rich3=parameters.data.richText)!==null&&_parameters$data$rich3!==void 0&&_parameters$data$rich3.str);_this64=_callSuper(this,FreeTextAnnotationElement,[parameters,{isRenderable:isRenderable,ignoreBorder:true}]);_this64.textContent=parameters.data.textContent;return _this64;}_createClass(FreeTextAnnotationElement,[{key:\"render\",value:function render(){this.container.className=\"freeTextAnnotation\";if(this.textContent){var content=document.createElement(\"div\");content.className=\"annotationTextContent\";content.setAttribute(\"role\",\"comment\");var _iterator105=_createForOfIteratorHelper(this.textContent),_step105;try{for(_iterator105.s();!(_step105=_iterator105.n()).done;){var line=_step105.value;var lineSpan=document.createElement(\"span\");lineSpan.textContent=line;content.append(lineSpan);}}catch(err){_iterator105.e(err);}finally{_iterator105.f();}this.container.append(content);}if(!this.data.hasPopup){this._createPopup(null,this.data);}return this.container;}}]);return FreeTextAnnotationElement;}(AnnotationElement);var LineAnnotationElement=/*#__PURE__*/function(_AnnotationElement6){_inherits(LineAnnotationElement,_AnnotationElement6);function LineAnnotationElement(parameters){_classCallCheck(this,LineAnnotationElement);var _parameters$data$titl4,_parameters$data$cont4,_parameters$data$rich4;var isRenderable=!!(parameters.data.hasPopup||(_parameters$data$titl4=parameters.data.titleObj)!==null&&_parameters$data$titl4!==void 0&&_parameters$data$titl4.str||(_parameters$data$cont4=parameters.data.contentsObj)!==null&&_parameters$data$cont4!==void 0&&_parameters$data$cont4.str||(_parameters$data$rich4=parameters.data.richText)!==null&&_parameters$data$rich4!==void 0&&_parameters$data$rich4.str);return _callSuper(this,LineAnnotationElement,[parameters,{isRenderable:isRenderable,ignoreBorder:true}]);}_createClass(LineAnnotationElement,[{key:\"render\",value:function render(){this.container.className=\"lineAnnotation\";var data=this.data;var _getRectDims3=getRectDims(data.rect),width=_getRectDims3.width,height=_getRectDims3.height;var svg=this.svgFactory.create(width,height,true);var line=this.svgFactory.createElement(\"svg:line\");line.setAttribute(\"x1\",data.rect[2]-data.lineCoordinates[0]);line.setAttribute(\"y1\",data.rect[3]-data.lineCoordinates[1]);line.setAttribute(\"x2\",data.rect[2]-data.lineCoordinates[2]);line.setAttribute(\"y2\",data.rect[3]-data.lineCoordinates[3]);line.setAttribute(\"stroke-width\",data.borderStyle.width||1);line.setAttribute(\"stroke\",\"transparent\");line.setAttribute(\"fill\",\"transparent\");svg.append(line);this.container.append(svg);this._createPopup(line,data);return this.container;}}]);return LineAnnotationElement;}(AnnotationElement);var SquareAnnotationElement=/*#__PURE__*/function(_AnnotationElement7){_inherits(SquareAnnotationElement,_AnnotationElement7);function SquareAnnotationElement(parameters){_classCallCheck(this,SquareAnnotationElement);var _parameters$data$titl5,_parameters$data$cont5,_parameters$data$rich5;var isRenderable=!!(parameters.data.hasPopup||(_parameters$data$titl5=parameters.data.titleObj)!==null&&_parameters$data$titl5!==void 0&&_parameters$data$titl5.str||(_parameters$data$cont5=parameters.data.contentsObj)!==null&&_parameters$data$cont5!==void 0&&_parameters$data$cont5.str||(_parameters$data$rich5=parameters.data.richText)!==null&&_parameters$data$rich5!==void 0&&_parameters$data$rich5.str);return _callSuper(this,SquareAnnotationElement,[parameters,{isRenderable:isRenderable,ignoreBorder:true}]);}_createClass(SquareAnnotationElement,[{key:\"render\",value:function render(){this.container.className=\"squareAnnotation\";var data=this.data;var _getRectDims4=getRectDims(data.rect),width=_getRectDims4.width,height=_getRectDims4.height;var svg=this.svgFactory.create(width,height,true);var borderWidth=data.borderStyle.width;var square=this.svgFactory.createElement(\"svg:rect\");square.setAttribute(\"x\",borderWidth/2);square.setAttribute(\"y\",borderWidth/2);square.setAttribute(\"width\",width-borderWidth);square.setAttribute(\"height\",height-borderWidth);square.setAttribute(\"stroke-width\",borderWidth||1);square.setAttribute(\"stroke\",\"transparent\");square.setAttribute(\"fill\",\"transparent\");svg.append(square);this.container.append(svg);this._createPopup(square,data);return this.container;}}]);return SquareAnnotationElement;}(AnnotationElement);var CircleAnnotationElement=/*#__PURE__*/function(_AnnotationElement8){_inherits(CircleAnnotationElement,_AnnotationElement8);function CircleAnnotationElement(parameters){_classCallCheck(this,CircleAnnotationElement);var _parameters$data$titl6,_parameters$data$cont6,_parameters$data$rich6;var isRenderable=!!(parameters.data.hasPopup||(_parameters$data$titl6=parameters.data.titleObj)!==null&&_parameters$data$titl6!==void 0&&_parameters$data$titl6.str||(_parameters$data$cont6=parameters.data.contentsObj)!==null&&_parameters$data$cont6!==void 0&&_parameters$data$cont6.str||(_parameters$data$rich6=parameters.data.richText)!==null&&_parameters$data$rich6!==void 0&&_parameters$data$rich6.str);return _callSuper(this,CircleAnnotationElement,[parameters,{isRenderable:isRenderable,ignoreBorder:true}]);}_createClass(CircleAnnotationElement,[{key:\"render\",value:function render(){this.container.className=\"circleAnnotation\";var data=this.data;var _getRectDims5=getRectDims(data.rect),width=_getRectDims5.width,height=_getRectDims5.height;var svg=this.svgFactory.create(width,height,true);var borderWidth=data.borderStyle.width;var circle=this.svgFactory.createElement(\"svg:ellipse\");circle.setAttribute(\"cx\",width/2);circle.setAttribute(\"cy\",height/2);circle.setAttribute(\"rx\",width/2-borderWidth/2);circle.setAttribute(\"ry\",height/2-borderWidth/2);circle.setAttribute(\"stroke-width\",borderWidth||1);circle.setAttribute(\"stroke\",\"transparent\");circle.setAttribute(\"fill\",\"transparent\");svg.append(circle);this.container.append(svg);this._createPopup(circle,data);return this.container;}}]);return CircleAnnotationElement;}(AnnotationElement);var PolylineAnnotationElement=/*#__PURE__*/function(_AnnotationElement9){_inherits(PolylineAnnotationElement,_AnnotationElement9);function PolylineAnnotationElement(parameters){var _this65;_classCallCheck(this,PolylineAnnotationElement);var _parameters$data$titl7,_parameters$data$cont7,_parameters$data$rich7;var isRenderable=!!(parameters.data.hasPopup||(_parameters$data$titl7=parameters.data.titleObj)!==null&&_parameters$data$titl7!==void 0&&_parameters$data$titl7.str||(_parameters$data$cont7=parameters.data.contentsObj)!==null&&_parameters$data$cont7!==void 0&&_parameters$data$cont7.str||(_parameters$data$rich7=parameters.data.richText)!==null&&_parameters$data$rich7!==void 0&&_parameters$data$rich7.str);_this65=_callSuper(this,PolylineAnnotationElement,[parameters,{isRenderable:isRenderable,ignoreBorder:true}]);_this65.containerClassName=\"polylineAnnotation\";_this65.svgElementName=\"svg:polyline\";return _this65;}_createClass(PolylineAnnotationElement,[{key:\"render\",value:function render(){this.container.className=this.containerClassName;var data=this.data;var _getRectDims6=getRectDims(data.rect),width=_getRectDims6.width,height=_getRectDims6.height;var svg=this.svgFactory.create(width,height,true);var points=[];var _iterator106=_createForOfIteratorHelper(data.vertices),_step106;try{for(_iterator106.s();!(_step106=_iterator106.n()).done;){var coordinate=_step106.value;var x=coordinate.x-data.rect[0];var y=data.rect[3]-coordinate.y;points.push(x+\",\"+y);}}catch(err){_iterator106.e(err);}finally{_iterator106.f();}points=points.join(\" \");var polyline=this.svgFactory.createElement(this.svgElementName);polyline.setAttribute(\"points\",points);polyline.setAttribute(\"stroke-width\",data.borderStyle.width||1);polyline.setAttribute(\"stroke\",\"transparent\");polyline.setAttribute(\"fill\",\"transparent\");svg.append(polyline);this.container.append(svg);this._createPopup(polyline,data);return this.container;}}]);return PolylineAnnotationElement;}(AnnotationElement);var PolygonAnnotationElement=/*#__PURE__*/function(_PolylineAnnotationEl){_inherits(PolygonAnnotationElement,_PolylineAnnotationEl);function PolygonAnnotationElement(parameters){var _this66;_classCallCheck(this,PolygonAnnotationElement);_this66=_callSuper(this,PolygonAnnotationElement,[parameters]);_this66.containerClassName=\"polygonAnnotation\";_this66.svgElementName=\"svg:polygon\";return _this66;}return _createClass(PolygonAnnotationElement);}(PolylineAnnotationElement);var CaretAnnotationElement=/*#__PURE__*/function(_AnnotationElement10){_inherits(CaretAnnotationElement,_AnnotationElement10);function CaretAnnotationElement(parameters){_classCallCheck(this,CaretAnnotationElement);var _parameters$data$titl8,_parameters$data$cont8,_parameters$data$rich8;var isRenderable=!!(parameters.data.hasPopup||(_parameters$data$titl8=parameters.data.titleObj)!==null&&_parameters$data$titl8!==void 0&&_parameters$data$titl8.str||(_parameters$data$cont8=parameters.data.contentsObj)!==null&&_parameters$data$cont8!==void 0&&_parameters$data$cont8.str||(_parameters$data$rich8=parameters.data.richText)!==null&&_parameters$data$rich8!==void 0&&_parameters$data$rich8.str);return _callSuper(this,CaretAnnotationElement,[parameters,{isRenderable:isRenderable,ignoreBorder:true}]);}_createClass(CaretAnnotationElement,[{key:\"render\",value:function render(){this.container.className=\"caretAnnotation\";if(!this.data.hasPopup){this._createPopup(null,this.data);}return this.container;}}]);return CaretAnnotationElement;}(AnnotationElement);var InkAnnotationElement=/*#__PURE__*/function(_AnnotationElement11){_inherits(InkAnnotationElement,_AnnotationElement11);function InkAnnotationElement(parameters){var _this67;_classCallCheck(this,InkAnnotationElement);var _parameters$data$titl9,_parameters$data$cont9,_parameters$data$rich9;var isRenderable=!!(parameters.data.hasPopup||(_parameters$data$titl9=parameters.data.titleObj)!==null&&_parameters$data$titl9!==void 0&&_parameters$data$titl9.str||(_parameters$data$cont9=parameters.data.contentsObj)!==null&&_parameters$data$cont9!==void 0&&_parameters$data$cont9.str||(_parameters$data$rich9=parameters.data.richText)!==null&&_parameters$data$rich9!==void 0&&_parameters$data$rich9.str);_this67=_callSuper(this,InkAnnotationElement,[parameters,{isRenderable:isRenderable,ignoreBorder:true}]);_this67.containerClassName=\"inkAnnotation\";_this67.svgElementName=\"svg:polyline\";return _this67;}_createClass(InkAnnotationElement,[{key:\"render\",value:function render(){this.container.className=this.containerClassName;var data=this.data;var _getRectDims7=getRectDims(data.rect),width=_getRectDims7.width,height=_getRectDims7.height;var svg=this.svgFactory.create(width,height,true);var _iterator107=_createForOfIteratorHelper(data.inkLists),_step107;try{for(_iterator107.s();!(_step107=_iterator107.n()).done;){var inkList=_step107.value;var points=[];var _iterator108=_createForOfIteratorHelper(inkList),_step108;try{for(_iterator108.s();!(_step108=_iterator108.n()).done;){var _context100;var coordinate=_step108.value;var x=coordinate.x-data.rect[0];var y=data.rect[3]-coordinate.y;points.push(_concatInstanceProperty(_context100=\"\".concat(x,\",\")).call(_context100,y));}}catch(err){_iterator108.e(err);}finally{_iterator108.f();}points=points.join(\" \");var polyline=this.svgFactory.createElement(this.svgElementName);polyline.setAttribute(\"points\",points);polyline.setAttribute(\"stroke-width\",data.borderStyle.width||1);polyline.setAttribute(\"stroke\",\"transparent\");polyline.setAttribute(\"fill\",\"transparent\");this._createPopup(polyline,data);svg.append(polyline);}}catch(err){_iterator107.e(err);}finally{_iterator107.f();}this.container.append(svg);return this.container;}}]);return InkAnnotationElement;}(AnnotationElement);var HighlightAnnotationElement=/*#__PURE__*/function(_AnnotationElement12){_inherits(HighlightAnnotationElement,_AnnotationElement12);function HighlightAnnotationElement(parameters){_classCallCheck(this,HighlightAnnotationElement);var _parameters$data$titl10,_parameters$data$cont10,_parameters$data$rich10;var isRenderable=!!(parameters.data.hasPopup||(_parameters$data$titl10=parameters.data.titleObj)!==null&&_parameters$data$titl10!==void 0&&_parameters$data$titl10.str||(_parameters$data$cont10=parameters.data.contentsObj)!==null&&_parameters$data$cont10!==void 0&&_parameters$data$cont10.str||(_parameters$data$rich10=parameters.data.richText)!==null&&_parameters$data$rich10!==void 0&&_parameters$data$rich10.str);return _callSuper(this,HighlightAnnotationElement,[parameters,{isRenderable:isRenderable,ignoreBorder:true,createQuadrilaterals:true}]);}_createClass(HighlightAnnotationElement,[{key:\"render\",value:function render(){if(!this.data.hasPopup){this._createPopup(null,this.data);}if(this.quadrilaterals){return this._renderQuadrilaterals(\"highlightAnnotation\");}this.container.className=\"highlightAnnotation\";return this.container;}}]);return HighlightAnnotationElement;}(AnnotationElement);var UnderlineAnnotationElement=/*#__PURE__*/function(_AnnotationElement13){_inherits(UnderlineAnnotationElement,_AnnotationElement13);function UnderlineAnnotationElement(parameters){_classCallCheck(this,UnderlineAnnotationElement);var _parameters$data$titl11,_parameters$data$cont11,_parameters$data$rich11;var isRenderable=!!(parameters.data.hasPopup||(_parameters$data$titl11=parameters.data.titleObj)!==null&&_parameters$data$titl11!==void 0&&_parameters$data$titl11.str||(_parameters$data$cont11=parameters.data.contentsObj)!==null&&_parameters$data$cont11!==void 0&&_parameters$data$cont11.str||(_parameters$data$rich11=parameters.data.richText)!==null&&_parameters$data$rich11!==void 0&&_parameters$data$rich11.str);return _callSuper(this,UnderlineAnnotationElement,[parameters,{isRenderable:isRenderable,ignoreBorder:true,createQuadrilaterals:true}]);}_createClass(UnderlineAnnotationElement,[{key:\"render\",value:function render(){if(!this.data.hasPopup){this._createPopup(null,this.data);}if(this.quadrilaterals){return this._renderQuadrilaterals(\"underlineAnnotation\");}this.container.className=\"underlineAnnotation\";return this.container;}}]);return UnderlineAnnotationElement;}(AnnotationElement);var SquigglyAnnotationElement=/*#__PURE__*/function(_AnnotationElement14){_inherits(SquigglyAnnotationElement,_AnnotationElement14);function SquigglyAnnotationElement(parameters){_classCallCheck(this,SquigglyAnnotationElement);var _parameters$data$titl12,_parameters$data$cont12,_parameters$data$rich12;var isRenderable=!!(parameters.data.hasPopup||(_parameters$data$titl12=parameters.data.titleObj)!==null&&_parameters$data$titl12!==void 0&&_parameters$data$titl12.str||(_parameters$data$cont12=parameters.data.contentsObj)!==null&&_parameters$data$cont12!==void 0&&_parameters$data$cont12.str||(_parameters$data$rich12=parameters.data.richText)!==null&&_parameters$data$rich12!==void 0&&_parameters$data$rich12.str);return _callSuper(this,SquigglyAnnotationElement,[parameters,{isRenderable:isRenderable,ignoreBorder:true,createQuadrilaterals:true}]);}_createClass(SquigglyAnnotationElement,[{key:\"render\",value:function render(){if(!this.data.hasPopup){this._createPopup(null,this.data);}if(this.quadrilaterals){return this._renderQuadrilaterals(\"squigglyAnnotation\");}this.container.className=\"squigglyAnnotation\";return this.container;}}]);return SquigglyAnnotationElement;}(AnnotationElement);var StrikeOutAnnotationElement=/*#__PURE__*/function(_AnnotationElement15){_inherits(StrikeOutAnnotationElement,_AnnotationElement15);function StrikeOutAnnotationElement(parameters){_classCallCheck(this,StrikeOutAnnotationElement);var _parameters$data$titl13,_parameters$data$cont13,_parameters$data$rich13;var isRenderable=!!(parameters.data.hasPopup||(_parameters$data$titl13=parameters.data.titleObj)!==null&&_parameters$data$titl13!==void 0&&_parameters$data$titl13.str||(_parameters$data$cont13=parameters.data.contentsObj)!==null&&_parameters$data$cont13!==void 0&&_parameters$data$cont13.str||(_parameters$data$rich13=parameters.data.richText)!==null&&_parameters$data$rich13!==void 0&&_parameters$data$rich13.str);return _callSuper(this,StrikeOutAnnotationElement,[parameters,{isRenderable:isRenderable,ignoreBorder:true,createQuadrilaterals:true}]);}_createClass(StrikeOutAnnotationElement,[{key:\"render\",value:function render(){if(!this.data.hasPopup){this._createPopup(null,this.data);}if(this.quadrilaterals){return this._renderQuadrilaterals(\"strikeoutAnnotation\");}this.container.className=\"strikeoutAnnotation\";return this.container;}}]);return StrikeOutAnnotationElement;}(AnnotationElement);var StampAnnotationElement=/*#__PURE__*/function(_AnnotationElement16){_inherits(StampAnnotationElement,_AnnotationElement16);function StampAnnotationElement(parameters){_classCallCheck(this,StampAnnotationElement);var _parameters$data$titl14,_parameters$data$cont14,_parameters$data$rich14;var isRenderable=!!(parameters.data.hasPopup||(_parameters$data$titl14=parameters.data.titleObj)!==null&&_parameters$data$titl14!==void 0&&_parameters$data$titl14.str||(_parameters$data$cont14=parameters.data.contentsObj)!==null&&_parameters$data$cont14!==void 0&&_parameters$data$cont14.str||(_parameters$data$rich14=parameters.data.richText)!==null&&_parameters$data$rich14!==void 0&&_parameters$data$rich14.str);return _callSuper(this,StampAnnotationElement,[parameters,{isRenderable:isRenderable,ignoreBorder:true}]);}_createClass(StampAnnotationElement,[{key:\"render\",value:function render(){this.container.className=\"stampAnnotation\";if(!this.data.hasPopup){this._createPopup(null,this.data);}return this.container;}}]);return StampAnnotationElement;}(AnnotationElement);var FileAttachmentAnnotationElement=/*#__PURE__*/function(_AnnotationElement17){_inherits(FileAttachmentAnnotationElement,_AnnotationElement17);function FileAttachmentAnnotationElement(parameters){var _this68;_classCallCheck(this,FileAttachmentAnnotationElement);var _this$linkService$eve10;_this68=_callSuper(this,FileAttachmentAnnotationElement,[parameters,{isRenderable:true}]);var _this68$data$file=_this68.data.file,filename=_this68$data$file.filename,content=_this68$data$file.content;_this68.filename=(0,_display_utils.getFilenameFromUrl)(filename);_this68.content=content;(_this$linkService$eve10=_this68.linkService.eventBus)===null||_this$linkService$eve10===void 0?void 0:_this$linkService$eve10.dispatch(\"fileattachmentannotation\",{source:_assertThisInitialized(_this68),filename:filename,content:content});return _this68;}_createClass(FileAttachmentAnnotationElement,[{key:\"render\",value:function render(){var _this$data$titleObj,_this$data$contentsOb;this.container.className=\"fileAttachmentAnnotation\";var trigger=document.createElement(\"div\");trigger.className=\"popupTriggerArea\";trigger.addEventListener(\"dblclick\",this._download.bind(this));if(!this.data.hasPopup&&((_this$data$titleObj=this.data.titleObj)!==null&&_this$data$titleObj!==void 0&&_this$data$titleObj.str||(_this$data$contentsOb=this.data.contentsObj)!==null&&_this$data$contentsOb!==void 0&&_this$data$contentsOb.str||this.data.richText)){this._createPopup(trigger,this.data);}this.container.append(trigger);return this.container;}},{key:\"_download\",value:function _download(){var _this$downloadManager;(_this$downloadManager=this.downloadManager)===null||_this$downloadManager===void 0?void 0:_this$downloadManager.openOrDownloadData(this.container,this.content,this.filename);}}]);return FileAttachmentAnnotationElement;}(AnnotationElement);var AnnotationLayer=/*#__PURE__*/function(){function AnnotationLayer(){_classCallCheck(this,AnnotationLayer);}_createClass(AnnotationLayer,null,[{key:\"render\",value:function render(parameters){var annotations=parameters.annotations,div=parameters.div,viewport=parameters.viewport,accessibilityManager=parameters.accessibilityManager;_classStaticPrivateMethodGet(this,AnnotationLayer,_setDimensions).call(this,div,viewport);var zIndex=0;var _iterator109=_createForOfIteratorHelper(annotations),_step109;try{for(_iterator109.s();!(_step109=_iterator109.n()).done;){var data=_step109.value;if(data.annotationType!==_util.AnnotationType.POPUP){var _getRectDims8=getRectDims(data.rect),width=_getRectDims8.width,height=_getRectDims8.height;if(width<=0||height<=0){continue;}}var element=AnnotationElementFactory.create({data:data,layer:div,page:parameters.page,viewport:viewport,linkService:parameters.linkService,downloadManager:parameters.downloadManager,imageResourcesPath:parameters.imageResourcesPath||\"\",renderForms:parameters.renderForms!==false,svgFactory:new _display_utils.DOMSVGFactory(),annotationStorage:parameters.annotationStorage||new _annotation_storage.AnnotationStorage(),enableScripting:parameters.enableScripting,hasJSActions:parameters.hasJSActions,fieldObjects:parameters.fieldObjects,mouseState:parameters.mouseState||{isDown:false}});if(element.isRenderable){var rendered=element.render();if(data.hidden){rendered.style.visibility=\"hidden\";}if(Array.isArray(rendered)){var _iterator110=_createForOfIteratorHelper(rendered),_step110;try{for(_iterator110.s();!(_step110=_iterator110.n()).done;){var renderedElement=_step110.value;renderedElement.style.zIndex=zIndex++;_classStaticPrivateMethodGet(AnnotationLayer,AnnotationLayer,_appendElement).call(AnnotationLayer,renderedElement,data.id,div,accessibilityManager);}}catch(err){_iterator110.e(err);}finally{_iterator110.f();}}else{rendered.style.zIndex=zIndex++;if(element instanceof PopupAnnotationElement){div.prepend(rendered);}else{_classStaticPrivateMethodGet(AnnotationLayer,AnnotationLayer,_appendElement).call(AnnotationLayer,rendered,data.id,div,accessibilityManager);}}}}}catch(err){_iterator109.e(err);}finally{_iterator109.f();}_classStaticPrivateMethodGet(this,AnnotationLayer,_setAnnotationCanvasMap).call(this,div,parameters.annotationCanvasMap);}},{key:\"update\",value:function update(parameters){var annotationCanvasMap=parameters.annotationCanvasMap,div=parameters.div,viewport=parameters.viewport;_classStaticPrivateMethodGet(this,AnnotationLayer,_setDimensions).call(this,div,viewport);_classStaticPrivateMethodGet(this,AnnotationLayer,_setAnnotationCanvasMap).call(this,div,annotationCanvasMap);div.hidden=false;}}]);return AnnotationLayer;}();exports.AnnotationLayer=AnnotationLayer;function _appendElement(element,id,div,accessibilityManager){var _context101;var contentElement=element.firstChild||element;contentElement.id=_concatInstanceProperty(_context101=\"\".concat(_display_utils.AnnotationPrefix)).call(_context101,id);div.append(element);accessibilityManager===null||accessibilityManager===void 0?void 0:accessibilityManager.moveElementInDOM(div,element,contentElement,false);}function _setDimensions(div,_ref2){var width=_ref2.width,height=_ref2.height,rotation=_ref2.rotation;var style=div.style;var flipOrientation=rotation%180!==0,widthStr=Math.floor(width)+\"px\",heightStr=Math.floor(height)+\"px\";style.width=flipOrientation?heightStr:widthStr;style.height=flipOrientation?widthStr:heightStr;div.setAttribute(\"data-main-rotation\",rotation);}function _setAnnotationCanvasMap(div,annotationCanvasMap){if(!annotationCanvasMap){return;}var _iterator111=_createForOfIteratorHelper(annotationCanvasMap),_step111;try{for(_iterator111.s();!(_step111=_iterator111.n()).done;){var _step111$value=_slicedToArray(_step111.value,2),id=_step111$value[0],canvas=_step111$value[1];var element=div.querySelector(\"[data-annotation-id=\\\"\".concat(id,\"\\\"]\"));if(!element){continue;}var firstChild=element.firstChild;if(!firstChild){element.append(canvas);}else if(firstChild.nodeName===\"CANVAS\"){firstChild.replaceWith(canvas);}else{firstChild.before(canvas);}}}catch(err){_iterator111.e(err);}finally{_iterator111.f();}annotationCanvasMap.clear();}/***/}),(/* 153 */ /***/function(__unused_webpack_module,exports){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.ColorConverters=void 0;function makeColorComp(n){var _context102;return _padStartInstanceProperty(_context102=Math.floor(Math.max(0,Math.min(1,n))*255).toString(16)).call(_context102,2,\"0\");}var ColorConverters=/*#__PURE__*/function(){function ColorConverters(){_classCallCheck(this,ColorConverters);}_createClass(ColorConverters,null,[{key:\"CMYK_G\",value:function CMYK_G(_ref){var _ref40=_slicedToArray(_ref,4),c=_ref40[0],y=_ref40[1],m=_ref40[2],k=_ref40[3];return[\"G\",1-Math.min(1,0.3*c+0.59*m+0.11*y+k)];}},{key:\"G_CMYK\",value:function G_CMYK(_ref2){var _ref41=_slicedToArray(_ref2,1),g=_ref41[0];return[\"CMYK\",0,0,0,1-g];}},{key:\"G_RGB\",value:function G_RGB(_ref3){var _ref42=_slicedToArray(_ref3,1),g=_ref42[0];return[\"RGB\",g,g,g];}},{key:\"G_HTML\",value:function G_HTML(_ref4){var _context103,_context104;var _ref43=_slicedToArray(_ref4,1),g=_ref43[0];var G=makeColorComp(g);return _concatInstanceProperty(_context103=_concatInstanceProperty(_context104=\"#\".concat(G)).call(_context104,G)).call(_context103,G);}},{key:\"RGB_G\",value:function RGB_G(_ref5){var _ref44=_slicedToArray(_ref5,3),r=_ref44[0],g=_ref44[1],b=_ref44[2];return[\"G\",0.3*r+0.59*g+0.11*b];}},{key:\"RGB_HTML\",value:function RGB_HTML(_ref6){var _context105,_context106;var _ref45=_slicedToArray(_ref6,3),r=_ref45[0],g=_ref45[1],b=_ref45[2];var R=makeColorComp(r);var G=makeColorComp(g);var B=makeColorComp(b);return _concatInstanceProperty(_context105=_concatInstanceProperty(_context106=\"#\".concat(R)).call(_context106,G)).call(_context105,B);}},{key:\"T_HTML\",value:function T_HTML(){return\"#00000000\";}},{key:\"CMYK_RGB\",value:function CMYK_RGB(_ref7){var _ref46=_slicedToArray(_ref7,4),c=_ref46[0],y=_ref46[1],m=_ref46[2],k=_ref46[3];return[\"RGB\",1-Math.min(1,c+k),1-Math.min(1,m+k),1-Math.min(1,y+k)];}},{key:\"CMYK_HTML\",value:function CMYK_HTML(components){var _context107;var rgb=_sliceInstanceProperty(_context107=this.CMYK_RGB(components)).call(_context107,1);return this.RGB_HTML(rgb);}},{key:\"RGB_CMYK\",value:function RGB_CMYK(_ref8){var _ref47=_slicedToArray(_ref8,3),r=_ref47[0],g=_ref47[1],b=_ref47[2];var c=1-r;var m=1-g;var y=1-b;var k=Math.min(c,m,y);return[\"CMYK\",c,m,y,k];}}]);return ColorConverters;}();exports.ColorConverters=ColorConverters;/***/}),(/* 154 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.XfaLayer=void 0;var _xfa_text=__w_pdfjs_require__(145);var XfaLayer=/*#__PURE__*/function(){function XfaLayer(){_classCallCheck(this,XfaLayer);}_createClass(XfaLayer,null,[{key:\"setupStorage\",value:function setupStorage(html,id,element,storage,intent){var storedData=storage.getValue(id,{value:null});switch(element.name){case\"textarea\":if(storedData.value!==null){html.textContent=storedData.value;}if(intent===\"print\"){break;}html.addEventListener(\"input\",function(event){storage.setValue(id,{value:event.target.value});});break;case\"input\":if(element.attributes.type===\"radio\"||element.attributes.type===\"checkbox\"){if(storedData.value===element.attributes.xfaOn){html.setAttribute(\"checked\",true);}else if(storedData.value===element.attributes.xfaOff){html.removeAttribute(\"checked\");}if(intent===\"print\"){break;}html.addEventListener(\"change\",function(event){storage.setValue(id,{value:event.target.checked?event.target.getAttribute(\"xfaOn\"):event.target.getAttribute(\"xfaOff\")});});}else{if(storedData.value!==null){html.setAttribute(\"value\",storedData.value);}if(intent===\"print\"){break;}html.addEventListener(\"input\",function(event){storage.setValue(id,{value:event.target.value});});}break;case\"select\":if(storedData.value!==null){var _iterator112=_createForOfIteratorHelper(element.children),_step112;try{for(_iterator112.s();!(_step112=_iterator112.n()).done;){var option=_step112.value;if(option.attributes.value===storedData.value){option.attributes.selected=true;}}}catch(err){_iterator112.e(err);}finally{_iterator112.f();}}html.addEventListener(\"input\",function(event){var options=event.target.options;var value=options.selectedIndex===-1?\"\":options[options.selectedIndex].value;storage.setValue(id,{value:value});});break;}}},{key:\"setAttributes\",value:function setAttributes(_ref){var html=_ref.html,element=_ref.element,_ref$storage=_ref.storage,storage=_ref$storage===void 0?null:_ref$storage,intent=_ref.intent,linkService=_ref.linkService;var attributes=element.attributes;var isHTMLAnchorElement=html instanceof HTMLAnchorElement;if(attributes.type===\"radio\"){var _context108;attributes.name=_concatInstanceProperty(_context108=\"\".concat(attributes.name,\"-\")).call(_context108,intent);}for(var _i11=0,_Object$entries4=_Object$entries2(attributes);_i11<_Object$entries4.length;_i11++){var _Object$entries4$_i=_slicedToArray(_Object$entries4[_i11],2),key=_Object$entries4$_i[0],value=_Object$entries4$_i[1];if(value===null||value===undefined){continue;}switch(key){case\"class\":if(value.length){html.setAttribute(key,value.join(\" \"));}break;case\"dataId\":break;case\"id\":html.setAttribute(\"data-element-id\",value);break;case\"style\":_extends(html.style,value);break;case\"textContent\":html.textContent=value;break;default:if(!isHTMLAnchorElement||key!==\"href\"&&key!==\"newWindow\"){html.setAttribute(key,value);}}}if(isHTMLAnchorElement){linkService.addLinkAttributes(html,attributes.href,attributes.newWindow);}if(storage&&attributes.dataId){this.setupStorage(html,attributes.dataId,element,storage);}}},{key:\"render\",value:function render(parameters){var storage=parameters.annotationStorage;var linkService=parameters.linkService;var root=parameters.xfaHtml;var intent=parameters.intent||\"display\";var rootHtml=document.createElement(root.name);if(root.attributes){this.setAttributes({html:rootHtml,element:root,intent:intent,linkService:linkService});}var stack=[[root,-1,rootHtml]];var rootDiv=parameters.div;rootDiv.append(rootHtml);if(parameters.viewport){var transform=\"matrix(\".concat(parameters.viewport.transform.join(\",\"),\")\");rootDiv.style.transform=transform;}if(intent!==\"richText\"){rootDiv.setAttribute(\"class\",\"xfaLayer xfaFont\");}var textDivs=[];while(stack.length>0){var _child$attributes;var _stack$at=stack.at(-1),_stack$at2=_slicedToArray(_stack$at,3),parent=_stack$at2[0],i=_stack$at2[1],html=_stack$at2[2];if(i+1===parent.children.length){stack.pop();continue;}var child=parent.children[++stack.at(-1)[1]];if(child===null){continue;}var name=child.name;if(name===\"#text\"){var node=document.createTextNode(child.value);textDivs.push(node);html.append(node);continue;}var childHtml=void 0;if(child!==null&&child!==void 0&&(_child$attributes=child.attributes)!==null&&_child$attributes!==void 0&&_child$attributes.xmlns){childHtml=document.createElementNS(child.attributes.xmlns,name);}else{childHtml=document.createElement(name);}html.append(childHtml);if(child.attributes){this.setAttributes({html:childHtml,element:child,storage:storage,intent:intent,linkService:linkService});}if(child.children&&child.children.length>0){stack.push([child,-1,childHtml]);}else if(child.value){var _node=document.createTextNode(child.value);if(_xfa_text.XfaText.shouldBuildText(name)){textDivs.push(_node);}childHtml.append(_node);}}var _iterator113=_createForOfIteratorHelper(rootDiv.querySelectorAll(\".xfaNonInteractive input, .xfaNonInteractive textarea\")),_step113;try{for(_iterator113.s();!(_step113=_iterator113.n()).done;){var el=_step113.value;el.setAttribute(\"readOnly\",true);}}catch(err){_iterator113.e(err);}finally{_iterator113.f();}return{textDivs:textDivs};}},{key:\"update\",value:function update(parameters){var transform=\"matrix(\".concat(parameters.viewport.transform.join(\",\"),\")\");parameters.div.style.transform=transform;parameters.div.hidden=false;}}]);return XfaLayer;}();exports.XfaLayer=XfaLayer;/***/}),(/* 155 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.TextLayerRenderTask=void 0;exports.renderTextLayer=renderTextLayer;var _util=__w_pdfjs_require__(1);var _display_utils=__w_pdfjs_require__(133);var MAX_TEXT_DIVS_TO_RENDER=100000;var DEFAULT_FONT_SIZE=30;var DEFAULT_FONT_ASCENT=0.8;var ascentCache=new _Map();var AllWhitespaceRegexp=/^\\s+$/g;function getAscent(fontFamily,ctx){var _context109;var cachedAscent=ascentCache.get(fontFamily);if(cachedAscent){return cachedAscent;}ctx.save();ctx.font=_concatInstanceProperty(_context109=\"\".concat(DEFAULT_FONT_SIZE,\"px \")).call(_context109,fontFamily);var metrics=ctx.measureText(\"\");var ascent=metrics.fontBoundingBoxAscent;var descent=Math.abs(metrics.fontBoundingBoxDescent);if(ascent){ctx.restore();var ratio=ascent/(ascent+descent);ascentCache.set(fontFamily,ratio);return ratio;}ctx.strokeStyle=\"red\";ctx.clearRect(0,0,DEFAULT_FONT_SIZE,DEFAULT_FONT_SIZE);ctx.strokeText(\"g\",0,0);var pixels=ctx.getImageData(0,0,DEFAULT_FONT_SIZE,DEFAULT_FONT_SIZE).data;descent=0;for(var i=pixels.length-1-3;i>=0;i-=4){if(pixels[i]>0){descent=Math.ceil(i/4/DEFAULT_FONT_SIZE);break;}}ctx.clearRect(0,0,DEFAULT_FONT_SIZE,DEFAULT_FONT_SIZE);ctx.strokeText(\"A\",0,DEFAULT_FONT_SIZE);pixels=ctx.getImageData(0,0,DEFAULT_FONT_SIZE,DEFAULT_FONT_SIZE).data;ascent=0;for(var _i12=0,ii=pixels.length;_i12<ii;_i12+=4){if(pixels[_i12]>0){ascent=DEFAULT_FONT_SIZE-Math.floor(_i12/4/DEFAULT_FONT_SIZE);break;}}ctx.restore();if(ascent){var _ratio=ascent/(ascent+descent);ascentCache.set(fontFamily,_ratio);return _ratio;}ascentCache.set(fontFamily,DEFAULT_FONT_ASCENT);return DEFAULT_FONT_ASCENT;}function appendText(task,geom,styles,ctx){var textDiv=document.createElement(\"span\");var textDivProperties=task._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:geom.str!==\"\",hasEOL:geom.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1,fontSize:0}:{angle:0,canvasWidth:0,hasText:geom.str!==\"\",hasEOL:geom.hasEOL,fontSize:0};task._textDivs.push(textDiv);var tx=_util.Util.transform(task._viewport.transform,geom.transform);var angle=Math.atan2(tx[1],tx[0]);var style=styles[geom.fontName];if(style.vertical){angle+=Math.PI/2;}var fontHeight=_Math$hypot(tx[2],tx[3]);var fontAscent=fontHeight*getAscent(style.fontFamily,ctx);var left,top;if(angle===0){left=tx[4];top=tx[5]-fontAscent;}else{left=tx[4]+fontAscent*Math.sin(angle);top=tx[5]-fontAscent*Math.cos(angle);}textDiv.style.left=\"\".concat(left,\"px\");textDiv.style.top=\"\".concat(top,\"px\");textDiv.style.fontSize=\"\".concat(fontHeight,\"px\");textDiv.style.fontFamily=style.fontFamily;textDivProperties.fontSize=fontHeight;textDiv.setAttribute(\"role\",\"presentation\");textDiv.textContent=geom.str;textDiv.dir=geom.dir;if(task._fontInspectorEnabled){textDiv.dataset.fontName=geom.fontName;}if(angle!==0){textDivProperties.angle=angle*(180/Math.PI);}var shouldScaleText=false;if(geom.str.length>1||task._enhanceTextSelection&&AllWhitespaceRegexp.test(geom.str)){shouldScaleText=true;}else if(geom.str!==\" \"&&geom.transform[0]!==geom.transform[3]){var absScaleX=Math.abs(geom.transform[0]),absScaleY=Math.abs(geom.transform[3]);if(absScaleX!==absScaleY&&Math.max(absScaleX,absScaleY)/Math.min(absScaleX,absScaleY)>1.5){shouldScaleText=true;}}if(shouldScaleText){if(style.vertical){textDivProperties.canvasWidth=geom.height*task._viewport.scale;}else{textDivProperties.canvasWidth=geom.width*task._viewport.scale;}}task._textDivProperties.set(textDiv,textDivProperties);if(task._textContentStream){task._layoutText(textDiv);}if(task._enhanceTextSelection&&textDivProperties.hasText){var angleCos=1,angleSin=0;if(angle!==0){angleCos=Math.cos(angle);angleSin=Math.sin(angle);}var divWidth=(style.vertical?geom.height:geom.width)*task._viewport.scale;var divHeight=fontHeight;var m,b;if(angle!==0){m=[angleCos,angleSin,-angleSin,angleCos,left,top];b=_util.Util.getAxialAlignedBoundingBox([0,0,divWidth,divHeight],m);}else{b=[left,top,left+divWidth,top+divHeight];}task._bounds.push({left:b[0],top:b[1],right:b[2],bottom:b[3],div:textDiv,size:[divWidth,divHeight],m:m});}}function render(task){if(task._canceled){return;}var textDivs=task._textDivs;var capability=task._capability;var textDivsLength=textDivs.length;if(textDivsLength>MAX_TEXT_DIVS_TO_RENDER){task._renderingDone=true;capability.resolve();return;}if(!task._textContentStream){for(var i=0;i<textDivsLength;i++){task._layoutText(textDivs[i]);}}task._renderingDone=true;capability.resolve();}function findPositiveMin(ts,offset,count){var result=0;for(var i=0;i<count;i++){var t=ts[offset++];if(t>0){result=result?Math.min(t,result):t;}}return result;}function expand(task){var bounds=task._bounds;var viewport=task._viewport;var expanded=expandBounds(viewport.width,viewport.height,bounds);for(var i=0;i<expanded.length;i++){var div=bounds[i].div;var divProperties=task._textDivProperties.get(div);if(divProperties.angle===0){divProperties.paddingLeft=bounds[i].left-expanded[i].left;divProperties.paddingTop=bounds[i].top-expanded[i].top;divProperties.paddingRight=expanded[i].right-bounds[i].right;divProperties.paddingBottom=expanded[i].bottom-bounds[i].bottom;task._textDivProperties.set(div,divProperties);continue;}var e=expanded[i],b=bounds[i];var m=b.m,c=m[0],s=m[1];var points=[[0,0],[0,b.size[1]],[b.size[0],0],b.size];var ts=new Float64Array(64);for(var j=0,jj=points.length;j<jj;j++){var t=_util.Util.applyTransform(points[j],m);ts[j+0]=c&&(e.left-t[0])/c;ts[j+4]=s&&(e.top-t[1])/s;ts[j+8]=c&&(e.right-t[0])/c;ts[j+12]=s&&(e.bottom-t[1])/s;ts[j+16]=s&&(e.left-t[0])/-s;ts[j+20]=c&&(e.top-t[1])/c;ts[j+24]=s&&(e.right-t[0])/-s;ts[j+28]=c&&(e.bottom-t[1])/c;ts[j+32]=c&&(e.left-t[0])/-c;ts[j+36]=s&&(e.top-t[1])/-s;ts[j+40]=c&&(e.right-t[0])/-c;ts[j+44]=s&&(e.bottom-t[1])/-s;ts[j+48]=s&&(e.left-t[0])/s;ts[j+52]=c&&(e.top-t[1])/-c;ts[j+56]=s&&(e.right-t[0])/s;ts[j+60]=c&&(e.bottom-t[1])/-c;}var boxScale=1+Math.min(Math.abs(c),Math.abs(s));divProperties.paddingLeft=findPositiveMin(ts,32,16)/boxScale;divProperties.paddingTop=findPositiveMin(ts,48,16)/boxScale;divProperties.paddingRight=findPositiveMin(ts,0,16)/boxScale;divProperties.paddingBottom=findPositiveMin(ts,16,16)/boxScale;task._textDivProperties.set(div,divProperties);}}function expandBounds(width,height,boxes){var bounds=_mapInstanceProperty(boxes).call(boxes,function(box,i){return{x1:box.left,y1:box.top,x2:box.right,y2:box.bottom,index:i,x1New:undefined,x2New:undefined};});expandBoundsLTR(width,bounds);var expanded=new Array(boxes.length);var _iterator114=_createForOfIteratorHelper(bounds),_step114;try{for(_iterator114.s();!(_step114=_iterator114.n()).done;){var b=_step114.value;var i=b.index;expanded[i]={left:b.x1New,top:0,right:b.x2New,bottom:0};}}catch(err){_iterator114.e(err);}finally{_iterator114.f();}_mapInstanceProperty(boxes).call(boxes,function(box,i){var e=expanded[i],b=bounds[i];b.x1=box.top;b.y1=width-e.right;b.x2=box.bottom;b.y2=width-e.left;b.index=i;b.x1New=undefined;b.x2New=undefined;});expandBoundsLTR(height,bounds);var _iterator115=_createForOfIteratorHelper(bounds),_step115;try{for(_iterator115.s();!(_step115=_iterator115.n()).done;){var _b=_step115.value;var _i13=_b.index;expanded[_i13].top=_b.x1New;expanded[_i13].bottom=_b.x2New;}}catch(err){_iterator115.e(err);}finally{_iterator115.f();}return expanded;}function expandBoundsLTR(width,bounds){_sortInstanceProperty(bounds).call(bounds,function(a,b){return a.x1-b.x1||a.index-b.index;});var fakeBoundary={x1:-Infinity,y1:-Infinity,x2:0,y2:Infinity,index:-1,x1New:0,x2New:0};var horizon=[{start:-Infinity,end:Infinity,boundary:fakeBoundary}];var _iterator116=_createForOfIteratorHelper(bounds),_step116;try{for(_iterator116.s();!(_step116=_iterator116.n()).done;){var _context110;var boundary=_step116.value;var i=0;while(i<horizon.length&&horizon[i].end<=boundary.y1){i++;}var j=horizon.length-1;while(j>=0&&horizon[j].start>=boundary.y2){j--;}var _horizonPart=void 0,_affectedBoundary=void 0;var q=void 0,k=void 0,maxXNew=-Infinity;for(q=i;q<=j;q++){_horizonPart=horizon[q];_affectedBoundary=_horizonPart.boundary;var xNew=void 0;if(_affectedBoundary.x2>boundary.x1){xNew=_affectedBoundary.index>boundary.index?_affectedBoundary.x1New:boundary.x1;}else if(_affectedBoundary.x2New===undefined){xNew=(_affectedBoundary.x2+boundary.x1)/2;}else{xNew=_affectedBoundary.x2New;}if(xNew>maxXNew){maxXNew=xNew;}}boundary.x1New=maxXNew;for(q=i;q<=j;q++){_horizonPart=horizon[q];_affectedBoundary=_horizonPart.boundary;if(_affectedBoundary.x2New===undefined){if(_affectedBoundary.x2>boundary.x1){if(_affectedBoundary.index>boundary.index){_affectedBoundary.x2New=_affectedBoundary.x2;}}else{_affectedBoundary.x2New=maxXNew;}}else if(_affectedBoundary.x2New>maxXNew){_affectedBoundary.x2New=Math.max(maxXNew,_affectedBoundary.x2);}}var changedHorizon=[];var lastBoundary=null;for(q=i;q<=j;q++){_horizonPart=horizon[q];_affectedBoundary=_horizonPart.boundary;var useBoundary=_affectedBoundary.x2>boundary.x2?_affectedBoundary:boundary;if(lastBoundary===useBoundary){changedHorizon.at(-1).end=_horizonPart.end;}else{changedHorizon.push({start:_horizonPart.start,end:_horizonPart.end,boundary:useBoundary});lastBoundary=useBoundary;}}if(horizon[i].start<boundary.y1){changedHorizon[0].start=boundary.y1;changedHorizon.unshift({start:horizon[i].start,end:boundary.y1,boundary:horizon[i].boundary});}if(boundary.y2<horizon[j].end){changedHorizon.at(-1).end=boundary.y2;changedHorizon.push({start:boundary.y2,end:horizon[j].end,boundary:horizon[j].boundary});}for(q=i;q<=j;q++){_horizonPart=horizon[q];_affectedBoundary=_horizonPart.boundary;if(_affectedBoundary.x2New!==undefined){continue;}var used=false;for(k=i-1;!used&&k>=0&&horizon[k].start>=_affectedBoundary.y1;k--){used=horizon[k].boundary===_affectedBoundary;}for(k=j+1;!used&&k<horizon.length&&horizon[k].end<=_affectedBoundary.y2;k++){used=horizon[k].boundary===_affectedBoundary;}for(k=0;!used&&k<changedHorizon.length;k++){used=changedHorizon[k].boundary===_affectedBoundary;}if(!used){_affectedBoundary.x2New=maxXNew;}}_spliceInstanceProperty(Array.prototype).apply(horizon,_concatInstanceProperty(_context110=[i,j-i+1]).call(_context110,changedHorizon));}}catch(err){_iterator116.e(err);}finally{_iterator116.f();}for(var _i14=0,_horizon=horizon;_i14<_horizon.length;_i14++){var horizonPart=_horizon[_i14];var affectedBoundary=horizonPart.boundary;if(affectedBoundary.x2New===undefined){affectedBoundary.x2New=Math.max(width,affectedBoundary.x2);}}}var TextLayerRenderTask=/*#__PURE__*/function(){function TextLayerRenderTask(_ref){var _this69=this;_classCallCheck(this,TextLayerRenderTask);var _globalThis$FontInspe;var textContent=_ref.textContent,textContentStream=_ref.textContentStream,container=_ref.container,viewport=_ref.viewport,textDivs=_ref.textDivs,textContentItemsStr=_ref.textContentItemsStr,enhanceTextSelection=_ref.enhanceTextSelection;if(enhanceTextSelection){(0,_display_utils.deprecated)(\"The `enhanceTextSelection` functionality will be removed in the future.\");}this._textContent=textContent;this._textContentStream=textContentStream;this._container=container;this._document=container.ownerDocument;this._viewport=viewport;this._textDivs=textDivs||[];this._textContentItemsStr=textContentItemsStr||[];this._enhanceTextSelection=!!enhanceTextSelection;this._fontInspectorEnabled=!!((_globalThis$FontInspe=_globalThis.FontInspector)!==null&&_globalThis$FontInspe!==void 0&&_globalThis$FontInspe.enabled);this._reader=null;this._layoutTextLastFontSize=null;this._layoutTextLastFontFamily=null;this._layoutTextCtx=null;this._textDivProperties=new _WeakMap();this._renderingDone=false;this._canceled=false;this._capability=(0,_util.createPromiseCapability)();this._renderTimer=null;this._bounds=[];this._devicePixelRatio=_globalThis.devicePixelRatio||1;this._capability.promise.finally(function(){if(!_this69._enhanceTextSelection){_this69._textDivProperties=null;}if(_this69._layoutTextCtx){_this69._layoutTextCtx.canvas.width=0;_this69._layoutTextCtx.canvas.height=0;_this69._layoutTextCtx=null;}}).catch(function(){});}_createClass(TextLayerRenderTask,[{key:\"promise\",get:function get(){return this._capability.promise;}},{key:\"cancel\",value:function cancel(){this._canceled=true;if(this._reader){this._reader.cancel(new _util.AbortException(\"TextLayer task cancelled.\")).catch(function(){});this._reader=null;}if(this._renderTimer!==null){clearTimeout(this._renderTimer);this._renderTimer=null;}this._capability.reject(new Error(\"TextLayer task cancelled.\"));}},{key:\"_processItems\",value:function _processItems(items,styleCache){for(var i=0,len=items.length;i<len;i++){if(items[i].str===undefined){if(items[i].type===\"beginMarkedContentProps\"||items[i].type===\"beginMarkedContent\"){var parent=this._container;this._container=document.createElement(\"span\");this._container.classList.add(\"markedContent\");if(items[i].id!==null){this._container.setAttribute(\"id\",\"\".concat(items[i].id));}parent.append(this._container);}else if(items[i].type===\"endMarkedContent\"){this._container=this._container.parentNode;}continue;}this._textContentItemsStr.push(items[i].str);appendText(this,items[i],styleCache,this._layoutTextCtx);}}},{key:\"_layoutText\",value:function _layoutText(textDiv){var textDivProperties=this._textDivProperties.get(textDiv);var transform=\"\";if(textDivProperties.canvasWidth!==0&&textDivProperties.hasText){var fontFamily=textDiv.style.fontFamily;var fontSize=textDivProperties.fontSize;if(fontSize!==this._layoutTextLastFontSize||fontFamily!==this._layoutTextLastFontFamily){var _context111;this._layoutTextCtx.font=_concatInstanceProperty(_context111=\"\".concat(fontSize*this._devicePixelRatio,\"px \")).call(_context111,fontFamily);this._layoutTextLastFontSize=fontSize;this._layoutTextLastFontFamily=fontFamily;}var _this$_layoutTextCtx$=this._layoutTextCtx.measureText(textDiv.textContent),width=_this$_layoutTextCtx$.width;if(width>0){var scale=this._devicePixelRatio*textDivProperties.canvasWidth/width;if(this._enhanceTextSelection){textDivProperties.scale=scale;}transform=\"scaleX(\".concat(scale,\")\");}}if(textDivProperties.angle!==0){var _context112;transform=_concatInstanceProperty(_context112=\"rotate(\".concat(textDivProperties.angle,\"deg) \")).call(_context112,transform);}if(transform.length>0){if(this._enhanceTextSelection){textDivProperties.originalTransform=transform;}textDiv.style.transform=transform;}if(textDivProperties.hasText){this._container.append(textDiv);}if(textDivProperties.hasEOL){var br=document.createElement(\"br\");br.setAttribute(\"role\",\"presentation\");this._container.append(br);}}},{key:\"_render\",value:function _render(){var _this70=this;var timeout=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var capability=(0,_util.createPromiseCapability)();var styleCache=Object.create(null);var canvas=this._document.createElement(\"canvas\");canvas.height=canvas.width=DEFAULT_FONT_SIZE;this._layoutTextCtx=canvas.getContext(\"2d\",{alpha:false});if(this._textContent){var textItems=this._textContent.items;var textStyles=this._textContent.styles;this._processItems(textItems,textStyles);capability.resolve();}else if(this._textContentStream){var pump=function pump(){_this70._reader.read().then(function(_ref2){var value=_ref2.value,done=_ref2.done;if(done){capability.resolve();return;}_extends(styleCache,value.styles);_this70._processItems(value.items,styleCache);pump();},capability.reject);};this._reader=this._textContentStream.getReader();pump();}else{throw new Error('Neither \"textContent\" nor \"textContentStream\" parameters specified.');}capability.promise.then(function(){styleCache=null;if(!timeout){render(_this70);}else{_this70._renderTimer=_setTimeout(function(){render(_this70);_this70._renderTimer=null;},timeout);}},this._capability.reject);}},{key:\"expandTextDivs\",value:function expandTextDivs(){var expandDivs=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(!this._enhanceTextSelection||!this._renderingDone){return;}if(this._bounds!==null){expand(this);this._bounds=null;}var transformBuf=[],paddingBuf=[];for(var i=0,ii=this._textDivs.length;i<ii;i++){var div=this._textDivs[i];var divProps=this._textDivProperties.get(div);if(!divProps.hasText){continue;}if(expandDivs){transformBuf.length=0;paddingBuf.length=0;if(divProps.originalTransform){transformBuf.push(divProps.originalTransform);}if(divProps.paddingTop>0){paddingBuf.push(\"\".concat(divProps.paddingTop,\"px\"));transformBuf.push(\"translateY(\".concat(-divProps.paddingTop,\"px)\"));}else{paddingBuf.push(0);}if(divProps.paddingRight>0){paddingBuf.push(\"\".concat(divProps.paddingRight/divProps.scale,\"px\"));}else{paddingBuf.push(0);}if(divProps.paddingBottom>0){paddingBuf.push(\"\".concat(divProps.paddingBottom,\"px\"));}else{paddingBuf.push(0);}if(divProps.paddingLeft>0){paddingBuf.push(\"\".concat(divProps.paddingLeft/divProps.scale,\"px\"));transformBuf.push(\"translateX(\".concat(-divProps.paddingLeft/divProps.scale,\"px)\"));}else{paddingBuf.push(0);}div.style.padding=paddingBuf.join(\" \");if(transformBuf.length){div.style.transform=transformBuf.join(\" \");}}else{div.style.padding=null;div.style.transform=divProps.originalTransform;}}}}]);return TextLayerRenderTask;}();exports.TextLayerRenderTask=TextLayerRenderTask;function renderTextLayer(renderParameters){var task=new TextLayerRenderTask({textContent:renderParameters.textContent,textContentStream:renderParameters.textContentStream,container:renderParameters.container,viewport:renderParameters.viewport,textDivs:renderParameters.textDivs,textContentItemsStr:renderParameters.textContentItemsStr,enhanceTextSelection:renderParameters.enhanceTextSelection});task._render(renderParameters.timeout);return task;}/***/}),(/* 156 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.SVGGraphics=void 0;var _display_utils=__w_pdfjs_require__(133);var _util=__w_pdfjs_require__(1);var _is_node=__w_pdfjs_require__(3);var SVGGraphics=/*#__PURE__*/_createClass(function SVGGraphics(){_classCallCheck(this,SVGGraphics);(0,_util.unreachable)(\"Not implemented: SVGGraphics\");});exports.SVGGraphics=SVGGraphics;{var opListToTree=function opListToTree(opList){var opTree=[];var tmp=[];var _iterator117=_createForOfIteratorHelper(opList),_step117;try{for(_iterator117.s();!(_step117=_iterator117.n()).done;){var opListElement=_step117.value;if(opListElement.fn===\"save\"){opTree.push({fnId:92,fn:\"group\",items:[]});tmp.push(opTree);opTree=opTree.at(-1).items;continue;}if(opListElement.fn===\"restore\"){opTree=tmp.pop();}else{opTree.push(opListElement);}}}catch(err){_iterator117.e(err);}finally{_iterator117.f();}return opTree;};var pf=function pf(value){if(_Number$isInteger(value)){return value.toString();}var s=value.toFixed(10);var i=s.length-1;if(s[i]!==\"0\"){return s;}do{i--;}while(s[i]===\"0\");return s.substring(0,s[i]===\".\"?i:i+1);};var pm=function pm(m){var _context115,_context116,_context117,_context118;if(m[4]===0&&m[5]===0){if(m[1]===0&&m[2]===0){var _context113;if(m[0]===1&&m[3]===1){return\"\";}return _concatInstanceProperty(_context113=\"scale(\".concat(pf(m[0]),\" \")).call(_context113,pf(m[3]),\")\");}if(m[0]===m[3]&&m[1]===-m[2]){var a=Math.acos(m[0])*180/Math.PI;return\"rotate(\".concat(pf(a),\")\");}}else{if(m[0]===1&&m[1]===0&&m[2]===0&&m[3]===1){var _context114;return _concatInstanceProperty(_context114=\"translate(\".concat(pf(m[4]),\" \")).call(_context114,pf(m[5]),\")\");}}return _concatInstanceProperty(_context115=_concatInstanceProperty(_context116=_concatInstanceProperty(_context117=_concatInstanceProperty(_context118=\"matrix(\".concat(pf(m[0]),\" \")).call(_context118,pf(m[1]),\" \")).call(_context117,pf(m[2]),\" \")).call(_context116,pf(m[3]),\" \")).call(_context115,pf(m[4]),\" \")+\"\".concat(pf(m[5]),\")\");};var SVG_DEFAULTS={fontStyle:\"normal\",fontWeight:\"normal\",fillColor:\"#000000\"};var XML_NS=\"http://www.w3.org/XML/1998/namespace\";var XLINK_NS=\"http://www.w3.org/1999/xlink\";var LINE_CAP_STYLES=[\"butt\",\"round\",\"square\"];var LINE_JOIN_STYLES=[\"miter\",\"round\",\"bevel\"];var createObjectURL=function createObjectURL(data){var contentType=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"\";var forceDataSchema=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(_URL.createObjectURL&&typeof Blob!==\"undefined\"&&!forceDataSchema){return _URL.createObjectURL(new Blob([data],{type:contentType}));}var digits=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";var buffer=\"data:\".concat(contentType,\";base64,\");for(var i=0,ii=data.length;i<ii;i+=3){var b1=data[i]&0xff;var b2=data[i+1]&0xff;var b3=data[i+2]&0xff;var d1=b1>>2,d2=(b1&3)<<4|b2>>4;var d3=i+1<ii?(b2&0xf)<<2|b3>>6:64;var d4=i+2<ii?b3&0x3f:64;buffer+=digits[d1]+digits[d2]+digits[d3]+digits[d4];}return buffer;};var convertImgDataToPng=function(){var PNG_HEADER=new Uint8Array([0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a]);var CHUNK_WRAPPER_SIZE=12;var crcTable=new Int32Array(256);for(var i=0;i<256;i++){var c=i;for(var h=0;h<8;h++){if(c&1){c=0xedb88320^c>>1&0x7fffffff;}else{c=c>>1&0x7fffffff;}}crcTable[i]=c;}function crc32(data,start,end){var crc=-1;for(var _i15=start;_i15<end;_i15++){var a=(crc^data[_i15])&0xff;var b=crcTable[a];crc=crc>>>8^b;}return crc^-1;}function writePngChunk(type,body,data,offset){var p=offset;var len=body.length;data[p]=len>>24&0xff;data[p+1]=len>>16&0xff;data[p+2]=len>>8&0xff;data[p+3]=len&0xff;p+=4;data[p]=type.charCodeAt(0)&0xff;data[p+1]=type.charCodeAt(1)&0xff;data[p+2]=type.charCodeAt(2)&0xff;data[p+3]=type.charCodeAt(3)&0xff;p+=4;data.set(body,p);p+=body.length;var crc=crc32(data,offset+4,p);data[p]=crc>>24&0xff;data[p+1]=crc>>16&0xff;data[p+2]=crc>>8&0xff;data[p+3]=crc&0xff;}function adler32(data,start,end){var a=1;var b=0;for(var _i16=start;_i16<end;++_i16){a=(a+(data[_i16]&0xff))%65521;b=(b+a)%65521;}return b<<16|a;}function deflateSync(literals){if(!_is_node.isNodeJS){return deflateSyncUncompressed(literals);}try{var input;if(_parseInt(process.versions.node)>=8){input=literals;}else{input=Buffer.from(literals);}var output=(__webpack_require__(/*! zlib */ \"?dcf6\").deflateSync)(input,{level:9});return output instanceof Uint8Array?output:new Uint8Array(output);}catch(e){(0,_util.warn)(\"Not compressing PNG because zlib.deflateSync is unavailable: \"+e);}return deflateSyncUncompressed(literals);}function deflateSyncUncompressed(literals){var len=literals.length;var maxBlockLength=0xffff;var deflateBlocks=Math.ceil(len/maxBlockLength);var idat=new Uint8Array(2+len+deflateBlocks*5+4);var pi=0;idat[pi++]=0x78;idat[pi++]=0x9c;var pos=0;while(len>maxBlockLength){idat[pi++]=0x00;idat[pi++]=0xff;idat[pi++]=0xff;idat[pi++]=0x00;idat[pi++]=0x00;idat.set(literals.subarray(pos,pos+maxBlockLength),pi);pi+=maxBlockLength;pos+=maxBlockLength;len-=maxBlockLength;}idat[pi++]=0x01;idat[pi++]=len&0xff;idat[pi++]=len>>8&0xff;idat[pi++]=~len&0xffff&0xff;idat[pi++]=(~len&0xffff)>>8&0xff;idat.set(literals.subarray(pos),pi);pi+=literals.length-pos;var adler=adler32(literals,0,literals.length);idat[pi++]=adler>>24&0xff;idat[pi++]=adler>>16&0xff;idat[pi++]=adler>>8&0xff;idat[pi++]=adler&0xff;return idat;}function encode(imgData,kind,forceDataSchema,isMask){var width=imgData.width;var height=imgData.height;var bitDepth,colorType,lineSize;var bytes=imgData.data;switch(kind){case _util.ImageKind.GRAYSCALE_1BPP:colorType=0;bitDepth=1;lineSize=width+7>>3;break;case _util.ImageKind.RGB_24BPP:colorType=2;bitDepth=8;lineSize=width*3;break;case _util.ImageKind.RGBA_32BPP:colorType=6;bitDepth=8;lineSize=width*4;break;default:throw new Error(\"invalid format\");}var literals=new Uint8Array((1+lineSize)*height);var offsetLiterals=0,offsetBytes=0;for(var y=0;y<height;++y){literals[offsetLiterals++]=0;literals.set(bytes.subarray(offsetBytes,offsetBytes+lineSize),offsetLiterals);offsetBytes+=lineSize;offsetLiterals+=lineSize;}if(kind===_util.ImageKind.GRAYSCALE_1BPP&&isMask){offsetLiterals=0;for(var _y=0;_y<height;_y++){offsetLiterals++;for(var _i17=0;_i17<lineSize;_i17++){literals[offsetLiterals++]^=0xff;}}}var ihdr=new Uint8Array([width>>24&0xff,width>>16&0xff,width>>8&0xff,width&0xff,height>>24&0xff,height>>16&0xff,height>>8&0xff,height&0xff,bitDepth,colorType,0x00,0x00,0x00]);var idat=deflateSync(literals);var pngLength=PNG_HEADER.length+CHUNK_WRAPPER_SIZE*3+ihdr.length+idat.length;var data=new Uint8Array(pngLength);var offset=0;data.set(PNG_HEADER,offset);offset+=PNG_HEADER.length;writePngChunk(\"IHDR\",ihdr,data,offset);offset+=CHUNK_WRAPPER_SIZE+ihdr.length;writePngChunk(\"IDATA\",idat,data,offset);offset+=CHUNK_WRAPPER_SIZE+idat.length;writePngChunk(\"IEND\",new Uint8Array(0),data,offset);return createObjectURL(data,\"image/png\",forceDataSchema);}return function convertImgDataToPng(imgData,forceDataSchema,isMask){var kind=imgData.kind===undefined?_util.ImageKind.GRAYSCALE_1BPP:imgData.kind;return encode(imgData,kind,forceDataSchema,isMask);};}();var SVGExtraState=/*#__PURE__*/function(){function SVGExtraState(){_classCallCheck(this,SVGExtraState);this.fontSizeScale=1;this.fontWeight=SVG_DEFAULTS.fontWeight;this.fontSize=0;this.textMatrix=_util.IDENTITY_MATRIX;this.fontMatrix=_util.FONT_IDENTITY_MATRIX;this.leading=0;this.textRenderingMode=_util.TextRenderingMode.FILL;this.textMatrixScale=1;this.x=0;this.y=0;this.lineX=0;this.lineY=0;this.charSpacing=0;this.wordSpacing=0;this.textHScale=1;this.textRise=0;this.fillColor=SVG_DEFAULTS.fillColor;this.strokeColor=\"#000000\";this.fillAlpha=1;this.strokeAlpha=1;this.lineWidth=1;this.lineJoin=\"\";this.lineCap=\"\";this.miterLimit=0;this.dashArray=[];this.dashPhase=0;this.dependencies=[];this.activeClipUrl=null;this.clipGroup=null;this.maskId=\"\";}_createClass(SVGExtraState,[{key:\"clone\",value:function clone(){return Object.create(this);}},{key:\"setCurrentPoint\",value:function setCurrentPoint(x,y){this.x=x;this.y=y;}}]);return SVGExtraState;}();var clipCount=0;var maskCount=0;var shadingCount=0;exports.SVGGraphics=SVGGraphics=/*#__PURE__*/function(){function SVGGraphics(commonObjs,objs){_classCallCheck(this,SVGGraphics);var forceDataSchema=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;(0,_display_utils.deprecated)(\"The SVG back-end is no longer maintained and *may* be removed in the future.\");this.svgFactory=new _display_utils.DOMSVGFactory();this.current=new SVGExtraState();this.transformMatrix=_util.IDENTITY_MATRIX;this.transformStack=[];this.extraStack=[];this.commonObjs=commonObjs;this.objs=objs;this.pendingClip=null;this.pendingEOFill=false;this.embedFonts=false;this.embeddedFonts=Object.create(null);this.cssStyle=null;this.forceDataSchema=!!forceDataSchema;this._operatorIdMapping=[];for(var op in _util.OPS){this._operatorIdMapping[_util.OPS[op]]=op;}}_createClass(SVGGraphics,[{key:\"save\",value:function save(){this.transformStack.push(this.transformMatrix);var old=this.current;this.extraStack.push(old);this.current=old.clone();}},{key:\"restore\",value:function restore(){this.transformMatrix=this.transformStack.pop();this.current=this.extraStack.pop();this.pendingClip=null;this.tgrp=null;}},{key:\"group\",value:function group(items){this.save();this.executeOpTree(items);this.restore();}},{key:\"loadDependencies\",value:function loadDependencies(operatorList){var _this71=this;var fnArray=operatorList.fnArray;var argsArray=operatorList.argsArray;for(var i=0,ii=fnArray.length;i<ii;i++){if(fnArray[i]!==_util.OPS.dependency){continue;}var _iterator118=_createForOfIteratorHelper(argsArray[i]),_step118;try{var _loop3=function _loop3(){var obj=_step118.value;var objsPool=_startsWithInstanceProperty(obj).call(obj,\"g_\")?_this71.commonObjs:_this71.objs;var promise=new _Promise(function(resolve){objsPool.get(obj,resolve);});_this71.current.dependencies.push(promise);};for(_iterator118.s();!(_step118=_iterator118.n()).done;){_loop3();}}catch(err){_iterator118.e(err);}finally{_iterator118.f();}}return _Promise.all(this.current.dependencies);}},{key:\"transform\",value:function transform(a,b,c,d,e,f){var transformMatrix=[a,b,c,d,e,f];this.transformMatrix=_util.Util.transform(this.transformMatrix,transformMatrix);this.tgrp=null;}},{key:\"getSVG\",value:function getSVG(operatorList,viewport){var _this72=this;this.viewport=viewport;var svgElement=this._initialize(viewport);return this.loadDependencies(operatorList).then(function(){_this72.transformMatrix=_util.IDENTITY_MATRIX;_this72.executeOpTree(_this72.convertOpList(operatorList));return svgElement;});}},{key:\"convertOpList\",value:function convertOpList(operatorList){var operatorIdMapping=this._operatorIdMapping;var argsArray=operatorList.argsArray;var fnArray=operatorList.fnArray;var opList=[];for(var i=0,ii=fnArray.length;i<ii;i++){var fnId=fnArray[i];opList.push({fnId:fnId,fn:operatorIdMapping[fnId],args:argsArray[i]});}return opListToTree(opList);}},{key:\"executeOpTree\",value:function executeOpTree(opTree){var _context119;var _iterator119=_createForOfIteratorHelper(opTree),_step119;try{for(_iterator119.s();!(_step119=_iterator119.n()).done;){var opTreeElement=_step119.value;var fn=opTreeElement.fn;var fnId=opTreeElement.fnId;var args=opTreeElement.args;switch(fnId|0){case _util.OPS.beginText:this.beginText();break;case _util.OPS.dependency:break;case _util.OPS.setLeading:this.setLeading(args);break;case _util.OPS.setLeadingMoveText:this.setLeadingMoveText(args[0],args[1]);break;case _util.OPS.setFont:this.setFont(args);break;case _util.OPS.showText:this.showText(args[0]);break;case _util.OPS.showSpacedText:this.showText(args[0]);break;case _util.OPS.endText:this.endText();break;case _util.OPS.moveText:this.moveText(args[0],args[1]);break;case _util.OPS.setCharSpacing:this.setCharSpacing(args[0]);break;case _util.OPS.setWordSpacing:this.setWordSpacing(args[0]);break;case _util.OPS.setHScale:this.setHScale(args[0]);break;case _util.OPS.setTextMatrix:this.setTextMatrix(args[0],args[1],args[2],args[3],args[4],args[5]);break;case _util.OPS.setTextRise:this.setTextRise(args[0]);break;case _util.OPS.setTextRenderingMode:this.setTextRenderingMode(args[0]);break;case _util.OPS.setLineWidth:this.setLineWidth(args[0]);break;case _util.OPS.setLineJoin:this.setLineJoin(args[0]);break;case _util.OPS.setLineCap:this.setLineCap(args[0]);break;case _util.OPS.setMiterLimit:this.setMiterLimit(args[0]);break;case _util.OPS.setFillRGBColor:this.setFillRGBColor(args[0],args[1],args[2]);break;case _util.OPS.setStrokeRGBColor:this.setStrokeRGBColor(args[0],args[1],args[2]);break;case _util.OPS.setStrokeColorN:this.setStrokeColorN(args);break;case _util.OPS.setFillColorN:this.setFillColorN(args);break;case _util.OPS.shadingFill:this.shadingFill(args[0]);break;case _util.OPS.setDash:this.setDash(args[0],args[1]);break;case _util.OPS.setRenderingIntent:this.setRenderingIntent(args[0]);break;case _util.OPS.setFlatness:this.setFlatness(args[0]);break;case _util.OPS.setGState:this.setGState(args[0]);break;case _fillInstanceProperty(_util.OPS):_fillInstanceProperty(_context119=this).call(_context119);break;case _util.OPS.eoFill:this.eoFill();break;case _util.OPS.stroke:this.stroke();break;case _util.OPS.fillStroke:this.fillStroke();break;case _util.OPS.eoFillStroke:this.eoFillStroke();break;case _util.OPS.clip:this.clip(\"nonzero\");break;case _util.OPS.eoClip:this.clip(\"evenodd\");break;case _util.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case _util.OPS.paintImageXObject:this.paintImageXObject(args[0]);break;case _util.OPS.paintInlineImageXObject:this.paintInlineImageXObject(args[0]);break;case _util.OPS.paintImageMaskXObject:this.paintImageMaskXObject(args[0]);break;case _util.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(args[0],args[1]);break;case _util.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case _util.OPS.closePath:this.closePath();break;case _util.OPS.closeStroke:this.closeStroke();break;case _util.OPS.closeFillStroke:this.closeFillStroke();break;case _util.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case _util.OPS.nextLine:this.nextLine();break;case _util.OPS.transform:this.transform(args[0],args[1],args[2],args[3],args[4],args[5]);break;case _util.OPS.constructPath:this.constructPath(args[0],args[1]);break;case _util.OPS.endPath:this.endPath();break;case 92:this.group(opTreeElement.items);break;default:(0,_util.warn)(\"Unimplemented operator \".concat(fn));break;}}}catch(err){_iterator119.e(err);}finally{_iterator119.f();}}},{key:\"setWordSpacing\",value:function setWordSpacing(wordSpacing){this.current.wordSpacing=wordSpacing;}},{key:\"setCharSpacing\",value:function setCharSpacing(charSpacing){this.current.charSpacing=charSpacing;}},{key:\"nextLine\",value:function nextLine(){this.moveText(0,this.current.leading);}},{key:\"setTextMatrix\",value:function setTextMatrix(a,b,c,d,e,f){var current=this.current;current.textMatrix=current.lineMatrix=[a,b,c,d,e,f];current.textMatrixScale=_Math$hypot(a,b);current.x=current.lineX=0;current.y=current.lineY=0;current.xcoords=[];current.ycoords=[];current.tspan=this.svgFactory.createElement(\"svg:tspan\");current.tspan.setAttributeNS(null,\"font-family\",current.fontFamily);current.tspan.setAttributeNS(null,\"font-size\",\"\".concat(pf(current.fontSize),\"px\"));current.tspan.setAttributeNS(null,\"y\",pf(-current.y));current.txtElement=this.svgFactory.createElement(\"svg:text\");current.txtElement.append(current.tspan);}},{key:\"beginText\",value:function beginText(){var current=this.current;current.x=current.lineX=0;current.y=current.lineY=0;current.textMatrix=_util.IDENTITY_MATRIX;current.lineMatrix=_util.IDENTITY_MATRIX;current.textMatrixScale=1;current.tspan=this.svgFactory.createElement(\"svg:tspan\");current.txtElement=this.svgFactory.createElement(\"svg:text\");current.txtgrp=this.svgFactory.createElement(\"svg:g\");current.xcoords=[];current.ycoords=[];}},{key:\"moveText\",value:function moveText(x,y){var current=this.current;current.x=current.lineX+=x;current.y=current.lineY+=y;current.xcoords=[];current.ycoords=[];current.tspan=this.svgFactory.createElement(\"svg:tspan\");current.tspan.setAttributeNS(null,\"font-family\",current.fontFamily);current.tspan.setAttributeNS(null,\"font-size\",\"\".concat(pf(current.fontSize),\"px\"));current.tspan.setAttributeNS(null,\"y\",pf(-current.y));}},{key:\"showText\",value:function showText(glyphs){var _context120,_context122;var current=this.current;var font=current.font;var fontSize=current.fontSize;if(fontSize===0){return;}var fontSizeScale=current.fontSizeScale;var charSpacing=current.charSpacing;var wordSpacing=current.wordSpacing;var fontDirection=current.fontDirection;var textHScale=current.textHScale*fontDirection;var vertical=font.vertical;var spacingDir=vertical?1:-1;var defaultVMetrics=font.defaultVMetrics;var widthAdvanceScale=fontSize*current.fontMatrix[0];var x=0;var _iterator120=_createForOfIteratorHelper(glyphs),_step120;try{for(_iterator120.s();!(_step120=_iterator120.n()).done;){var glyph=_step120.value;if(glyph===null){x+=fontDirection*wordSpacing;continue;}else if(typeof glyph===\"number\"){x+=spacingDir*glyph*fontSize/1000;continue;}var spacing=(glyph.isSpace?wordSpacing:0)+charSpacing;var character=glyph.fontChar;var scaledX=void 0,scaledY=void 0;var width=glyph.width;if(vertical){var vx=void 0;var vmetric=glyph.vmetric||defaultVMetrics;vx=glyph.vmetric?vmetric[1]:width*0.5;vx=-vx*widthAdvanceScale;var vy=vmetric[2]*widthAdvanceScale;width=vmetric?-vmetric[0]:width;scaledX=vx/fontSizeScale;scaledY=(x+vy)/fontSizeScale;}else{scaledX=x/fontSizeScale;scaledY=0;}if(glyph.isInFont||font.missingFile){current.xcoords.push(current.x+scaledX);if(vertical){current.ycoords.push(-current.y+scaledY);}current.tspan.textContent+=character;}else{}var charWidth=void 0;if(vertical){charWidth=width*widthAdvanceScale-spacing*fontDirection;}else{charWidth=width*widthAdvanceScale+spacing*fontDirection;}x+=charWidth;}}catch(err){_iterator120.e(err);}finally{_iterator120.f();}current.tspan.setAttributeNS(null,\"x\",_mapInstanceProperty(_context120=current.xcoords).call(_context120,pf).join(\" \"));if(vertical){var _context121;current.tspan.setAttributeNS(null,\"y\",_mapInstanceProperty(_context121=current.ycoords).call(_context121,pf).join(\" \"));}else{current.tspan.setAttributeNS(null,\"y\",pf(-current.y));}if(vertical){current.y-=x;}else{current.x+=x*textHScale;}current.tspan.setAttributeNS(null,\"font-family\",current.fontFamily);current.tspan.setAttributeNS(null,\"font-size\",\"\".concat(pf(current.fontSize),\"px\"));if(current.fontStyle!==SVG_DEFAULTS.fontStyle){current.tspan.setAttributeNS(null,\"font-style\",current.fontStyle);}if(current.fontWeight!==SVG_DEFAULTS.fontWeight){current.tspan.setAttributeNS(null,\"font-weight\",current.fontWeight);}var fillStrokeMode=current.textRenderingMode&_util.TextRenderingMode.FILL_STROKE_MASK;if(fillStrokeMode===_util.TextRenderingMode.FILL||fillStrokeMode===_util.TextRenderingMode.FILL_STROKE){if(current.fillColor!==SVG_DEFAULTS.fillColor){current.tspan.setAttributeNS(null,\"fill\",current.fillColor);}if(current.fillAlpha<1){current.tspan.setAttributeNS(null,\"fill-opacity\",current.fillAlpha);}}else if(current.textRenderingMode===_util.TextRenderingMode.ADD_TO_PATH){current.tspan.setAttributeNS(null,\"fill\",\"transparent\");}else{current.tspan.setAttributeNS(null,\"fill\",\"none\");}if(fillStrokeMode===_util.TextRenderingMode.STROKE||fillStrokeMode===_util.TextRenderingMode.FILL_STROKE){var lineWidthScale=1/(current.textMatrixScale||1);this._setStrokeAttributes(current.tspan,lineWidthScale);}var textMatrix=current.textMatrix;if(current.textRise!==0){textMatrix=_sliceInstanceProperty(textMatrix).call(textMatrix);textMatrix[5]+=current.textRise;}current.txtElement.setAttributeNS(null,\"transform\",_concatInstanceProperty(_context122=\"\".concat(pm(textMatrix),\" scale(\")).call(_context122,pf(textHScale),\", -1)\"));current.txtElement.setAttributeNS(XML_NS,\"xml:space\",\"preserve\");current.txtElement.append(current.tspan);current.txtgrp.append(current.txtElement);this._ensureTransformGroup().append(current.txtElement);}},{key:\"setLeadingMoveText\",value:function setLeadingMoveText(x,y){this.setLeading(-y);this.moveText(x,y);}},{key:\"addFontStyle\",value:function addFontStyle(fontObj){if(!fontObj.data){throw new Error(\"addFontStyle: No font data available, \"+'ensure that the \"fontExtraProperties\" API parameter is set.');}if(!this.cssStyle){this.cssStyle=this.svgFactory.createElement(\"svg:style\");this.cssStyle.setAttributeNS(null,\"type\",\"text/css\");this.defs.append(this.cssStyle);}var url=createObjectURL(fontObj.data,fontObj.mimetype,this.forceDataSchema);this.cssStyle.textContent+=\"@font-face { font-family: \\\"\".concat(fontObj.loadedName,\"\\\";\")+\" src: url(\".concat(url,\"); }\\n\");}},{key:\"setFont\",value:function setFont(details){var current=this.current;var fontObj=this.commonObjs.get(details[0]);var size=details[1];current.font=fontObj;if(this.embedFonts&&!fontObj.missingFile&&!this.embeddedFonts[fontObj.loadedName]){this.addFontStyle(fontObj);this.embeddedFonts[fontObj.loadedName]=fontObj;}current.fontMatrix=fontObj.fontMatrix||_util.FONT_IDENTITY_MATRIX;var bold=\"normal\";if(fontObj.black){bold=\"900\";}else if(fontObj.bold){bold=\"bold\";}var italic=fontObj.italic?\"italic\":\"normal\";if(size<0){size=-size;current.fontDirection=-1;}else{current.fontDirection=1;}current.fontSize=size;current.fontFamily=fontObj.loadedName;current.fontWeight=bold;current.fontStyle=italic;current.tspan=this.svgFactory.createElement(\"svg:tspan\");current.tspan.setAttributeNS(null,\"y\",pf(-current.y));current.xcoords=[];current.ycoords=[];}},{key:\"endText\",value:function endText(){var _current$txtElement;var current=this.current;if(current.textRenderingMode&_util.TextRenderingMode.ADD_TO_PATH_FLAG&&(_current$txtElement=current.txtElement)!==null&&_current$txtElement!==void 0&&_current$txtElement.hasChildNodes()){current.element=current.txtElement;this.clip(\"nonzero\");this.endPath();}}},{key:\"setLineWidth\",value:function setLineWidth(width){if(width>0){this.current.lineWidth=width;}}},{key:\"setLineCap\",value:function setLineCap(style){this.current.lineCap=LINE_CAP_STYLES[style];}},{key:\"setLineJoin\",value:function setLineJoin(style){this.current.lineJoin=LINE_JOIN_STYLES[style];}},{key:\"setMiterLimit\",value:function setMiterLimit(limit){this.current.miterLimit=limit;}},{key:\"setStrokeAlpha\",value:function setStrokeAlpha(strokeAlpha){this.current.strokeAlpha=strokeAlpha;}},{key:\"setStrokeRGBColor\",value:function setStrokeRGBColor(r,g,b){this.current.strokeColor=_util.Util.makeHexColor(r,g,b);}},{key:\"setFillAlpha\",value:function setFillAlpha(fillAlpha){this.current.fillAlpha=fillAlpha;}},{key:\"setFillRGBColor\",value:function setFillRGBColor(r,g,b){this.current.fillColor=_util.Util.makeHexColor(r,g,b);this.current.tspan=this.svgFactory.createElement(\"svg:tspan\");this.current.xcoords=[];this.current.ycoords=[];}},{key:\"setStrokeColorN\",value:function setStrokeColorN(args){this.current.strokeColor=this._makeColorN_Pattern(args);}},{key:\"setFillColorN\",value:function setFillColorN(args){this.current.fillColor=this._makeColorN_Pattern(args);}},{key:\"shadingFill\",value:function shadingFill(args){var width=this.viewport.width;var height=this.viewport.height;var inv=_util.Util.inverseTransform(this.transformMatrix);var bl=_util.Util.applyTransform([0,0],inv);var br=_util.Util.applyTransform([0,height],inv);var ul=_util.Util.applyTransform([width,0],inv);var ur=_util.Util.applyTransform([width,height],inv);var x0=Math.min(bl[0],br[0],ul[0],ur[0]);var y0=Math.min(bl[1],br[1],ul[1],ur[1]);var x1=Math.max(bl[0],br[0],ul[0],ur[0]);var y1=Math.max(bl[1],br[1],ul[1],ur[1]);var rect=this.svgFactory.createElement(\"svg:rect\");rect.setAttributeNS(null,\"x\",x0);rect.setAttributeNS(null,\"y\",y0);rect.setAttributeNS(null,\"width\",x1-x0);rect.setAttributeNS(null,\"height\",y1-y0);rect.setAttributeNS(null,\"fill\",this._makeShadingPattern(args));if(this.current.fillAlpha<1){rect.setAttributeNS(null,\"fill-opacity\",this.current.fillAlpha);}this._ensureTransformGroup().append(rect);}},{key:\"_makeColorN_Pattern\",value:function _makeColorN_Pattern(args){if(args[0]===\"TilingPattern\"){return this._makeTilingPattern(args);}return this._makeShadingPattern(args);}},{key:\"_makeTilingPattern\",value:function _makeTilingPattern(args){var _context123;var color=args[1];var operatorList=args[2];var matrix=args[3]||_util.IDENTITY_MATRIX;var _args$=_slicedToArray(args[4],4),x0=_args$[0],y0=_args$[1],x1=_args$[2],y1=_args$[3];var xstep=args[5];var ystep=args[6];var paintType=args[7];var tilingId=\"shading\".concat(shadingCount++);var _util$Util$normalizeR=_util.Util.normalizeRect(_concatInstanceProperty(_context123=[]).call(_context123,_toConsumableArray(_util.Util.applyTransform([x0,y0],matrix)),_toConsumableArray(_util.Util.applyTransform([x1,y1],matrix)))),_util$Util$normalizeR2=_slicedToArray(_util$Util$normalizeR,4),tx0=_util$Util$normalizeR2[0],ty0=_util$Util$normalizeR2[1],tx1=_util$Util$normalizeR2[2],ty1=_util$Util$normalizeR2[3];var _util$Util$singularVa3=_util.Util.singularValueDecompose2dScale(matrix),_util$Util$singularVa4=_slicedToArray(_util$Util$singularVa3,2),xscale=_util$Util$singularVa4[0],yscale=_util$Util$singularVa4[1];var txstep=xstep*xscale;var tystep=ystep*yscale;var tiling=this.svgFactory.createElement(\"svg:pattern\");tiling.setAttributeNS(null,\"id\",tilingId);tiling.setAttributeNS(null,\"patternUnits\",\"userSpaceOnUse\");tiling.setAttributeNS(null,\"width\",txstep);tiling.setAttributeNS(null,\"height\",tystep);tiling.setAttributeNS(null,\"x\",\"\".concat(tx0));tiling.setAttributeNS(null,\"y\",\"\".concat(ty0));var svg=this.svg;var transformMatrix=this.transformMatrix;var fillColor=this.current.fillColor;var strokeColor=this.current.strokeColor;var bbox=this.svgFactory.create(tx1-tx0,ty1-ty0);this.svg=bbox;this.transformMatrix=matrix;if(paintType===2){var _util$Util5;var cssColor=(_util$Util5=_util.Util).makeHexColor.apply(_util$Util5,_toConsumableArray(color));this.current.fillColor=cssColor;this.current.strokeColor=cssColor;}this.executeOpTree(this.convertOpList(operatorList));this.svg=svg;this.transformMatrix=transformMatrix;this.current.fillColor=fillColor;this.current.strokeColor=strokeColor;tiling.append(bbox.childNodes[0]);this.defs.append(tiling);return\"url(#\".concat(tilingId,\")\");}},{key:\"_makeShadingPattern\",value:function _makeShadingPattern(args){if(typeof args===\"string\"){args=this.objs.get(args);}switch(args[0]){case\"RadialAxial\":var shadingId=\"shading\".concat(shadingCount++);var colorStops=args[3];var gradient;switch(args[1]){case\"axial\":var point0=args[4];var point1=args[5];gradient=this.svgFactory.createElement(\"svg:linearGradient\");gradient.setAttributeNS(null,\"id\",shadingId);gradient.setAttributeNS(null,\"gradientUnits\",\"userSpaceOnUse\");gradient.setAttributeNS(null,\"x1\",point0[0]);gradient.setAttributeNS(null,\"y1\",point0[1]);gradient.setAttributeNS(null,\"x2\",point1[0]);gradient.setAttributeNS(null,\"y2\",point1[1]);break;case\"radial\":var focalPoint=args[4];var circlePoint=args[5];var focalRadius=args[6];var circleRadius=args[7];gradient=this.svgFactory.createElement(\"svg:radialGradient\");gradient.setAttributeNS(null,\"id\",shadingId);gradient.setAttributeNS(null,\"gradientUnits\",\"userSpaceOnUse\");gradient.setAttributeNS(null,\"cx\",circlePoint[0]);gradient.setAttributeNS(null,\"cy\",circlePoint[1]);gradient.setAttributeNS(null,\"r\",circleRadius);gradient.setAttributeNS(null,\"fx\",focalPoint[0]);gradient.setAttributeNS(null,\"fy\",focalPoint[1]);gradient.setAttributeNS(null,\"fr\",focalRadius);break;default:throw new Error(\"Unknown RadialAxial type: \".concat(args[1]));}var _iterator121=_createForOfIteratorHelper(colorStops),_step121;try{for(_iterator121.s();!(_step121=_iterator121.n()).done;){var colorStop=_step121.value;var stop=this.svgFactory.createElement(\"svg:stop\");stop.setAttributeNS(null,\"offset\",colorStop[0]);stop.setAttributeNS(null,\"stop-color\",colorStop[1]);gradient.append(stop);}}catch(err){_iterator121.e(err);}finally{_iterator121.f();}this.defs.append(gradient);return\"url(#\".concat(shadingId,\")\");case\"Mesh\":(0,_util.warn)(\"Unimplemented pattern Mesh\");return null;case\"Dummy\":return\"hotpink\";default:throw new Error(\"Unknown IR type: \".concat(args[0]));}}},{key:\"setDash\",value:function setDash(dashArray,dashPhase){this.current.dashArray=dashArray;this.current.dashPhase=dashPhase;}},{key:\"constructPath\",value:function constructPath(ops,args){var current=this.current;var x=current.x,y=current.y;var d=[];var j=0;var _iterator122=_createForOfIteratorHelper(ops),_step122;try{for(_iterator122.s();!(_step122=_iterator122.n()).done;){var op=_step122.value;switch(op|0){case _util.OPS.rectangle:x=args[j++];y=args[j++];var width=args[j++];var height=args[j++];var xw=x+width;var yh=y+height;d.push(\"M\",pf(x),pf(y),\"L\",pf(xw),pf(y),\"L\",pf(xw),pf(yh),\"L\",pf(x),pf(yh),\"Z\");break;case _util.OPS.moveTo:x=args[j++];y=args[j++];d.push(\"M\",pf(x),pf(y));break;case _util.OPS.lineTo:x=args[j++];y=args[j++];d.push(\"L\",pf(x),pf(y));break;case _util.OPS.curveTo:x=args[j+4];y=args[j+5];d.push(\"C\",pf(args[j]),pf(args[j+1]),pf(args[j+2]),pf(args[j+3]),pf(x),pf(y));j+=6;break;case _util.OPS.curveTo2:d.push(\"C\",pf(x),pf(y),pf(args[j]),pf(args[j+1]),pf(args[j+2]),pf(args[j+3]));x=args[j+2];y=args[j+3];j+=4;break;case _util.OPS.curveTo3:x=args[j+2];y=args[j+3];d.push(\"C\",pf(args[j]),pf(args[j+1]),pf(x),pf(y),pf(x),pf(y));j+=4;break;case _util.OPS.closePath:d.push(\"Z\");break;}}}catch(err){_iterator122.e(err);}finally{_iterator122.f();}d=d.join(\" \");if(current.path&&ops.length>0&&ops[0]!==_util.OPS.rectangle&&ops[0]!==_util.OPS.moveTo){d=current.path.getAttributeNS(null,\"d\")+d;}else{current.path=this.svgFactory.createElement(\"svg:path\");this._ensureTransformGroup().append(current.path);}current.path.setAttributeNS(null,\"d\",d);current.path.setAttributeNS(null,\"fill\",\"none\");current.element=current.path;current.setCurrentPoint(x,y);}},{key:\"endPath\",value:function endPath(){var current=this.current;current.path=null;if(!this.pendingClip){return;}if(!current.element){this.pendingClip=null;return;}var clipId=\"clippath\".concat(clipCount++);var clipPath=this.svgFactory.createElement(\"svg:clipPath\");clipPath.setAttributeNS(null,\"id\",clipId);clipPath.setAttributeNS(null,\"transform\",pm(this.transformMatrix));var clipElement=current.element.cloneNode(true);if(this.pendingClip===\"evenodd\"){clipElement.setAttributeNS(null,\"clip-rule\",\"evenodd\");}else{clipElement.setAttributeNS(null,\"clip-rule\",\"nonzero\");}this.pendingClip=null;clipPath.append(clipElement);this.defs.append(clipPath);if(current.activeClipUrl){current.clipGroup=null;var _iterator123=_createForOfIteratorHelper(this.extraStack),_step123;try{for(_iterator123.s();!(_step123=_iterator123.n()).done;){var prev=_step123.value;prev.clipGroup=null;}}catch(err){_iterator123.e(err);}finally{_iterator123.f();}clipPath.setAttributeNS(null,\"clip-path\",current.activeClipUrl);}current.activeClipUrl=\"url(#\".concat(clipId,\")\");this.tgrp=null;}},{key:\"clip\",value:function clip(type){this.pendingClip=type;}},{key:\"closePath\",value:function closePath(){var current=this.current;if(current.path){var d=\"\".concat(current.path.getAttributeNS(null,\"d\"),\"Z\");current.path.setAttributeNS(null,\"d\",d);}}},{key:\"setLeading\",value:function setLeading(leading){this.current.leading=-leading;}},{key:\"setTextRise\",value:function setTextRise(textRise){this.current.textRise=textRise;}},{key:\"setTextRenderingMode\",value:function setTextRenderingMode(textRenderingMode){this.current.textRenderingMode=textRenderingMode;}},{key:\"setHScale\",value:function setHScale(scale){this.current.textHScale=scale/100;}},{key:\"setRenderingIntent\",value:function setRenderingIntent(intent){}},{key:\"setFlatness\",value:function setFlatness(flatness){}},{key:\"setGState\",value:function setGState(states){var _iterator124=_createForOfIteratorHelper(states),_step124;try{for(_iterator124.s();!(_step124=_iterator124.n()).done;){var _step124$value=_slicedToArray(_step124.value,2),key=_step124$value[0],value=_step124$value[1];switch(key){case\"LW\":this.setLineWidth(value);break;case\"LC\":this.setLineCap(value);break;case\"LJ\":this.setLineJoin(value);break;case\"ML\":this.setMiterLimit(value);break;case\"D\":this.setDash(value[0],value[1]);break;case\"RI\":this.setRenderingIntent(value);break;case\"FL\":this.setFlatness(value);break;case\"Font\":this.setFont(value);break;case\"CA\":this.setStrokeAlpha(value);break;case\"ca\":this.setFillAlpha(value);break;default:(0,_util.warn)(\"Unimplemented graphic state operator \".concat(key));break;}}}catch(err){_iterator124.e(err);}finally{_iterator124.f();}}},{key:\"fill\",value:function fill(){var current=this.current;if(current.element){current.element.setAttributeNS(null,\"fill\",current.fillColor);current.element.setAttributeNS(null,\"fill-opacity\",current.fillAlpha);this.endPath();}}},{key:\"stroke\",value:function stroke(){var current=this.current;if(current.element){this._setStrokeAttributes(current.element);current.element.setAttributeNS(null,\"fill\",\"none\");this.endPath();}}},{key:\"_setStrokeAttributes\",value:function _setStrokeAttributes(element){var lineWidthScale=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var current=this.current;var dashArray=current.dashArray;if(lineWidthScale!==1&&dashArray.length>0){dashArray=_mapInstanceProperty(dashArray).call(dashArray,function(value){return lineWidthScale*value;});}element.setAttributeNS(null,\"stroke\",current.strokeColor);element.setAttributeNS(null,\"stroke-opacity\",current.strokeAlpha);element.setAttributeNS(null,\"stroke-miterlimit\",pf(current.miterLimit));element.setAttributeNS(null,\"stroke-linecap\",current.lineCap);element.setAttributeNS(null,\"stroke-linejoin\",current.lineJoin);element.setAttributeNS(null,\"stroke-width\",pf(lineWidthScale*current.lineWidth)+\"px\");element.setAttributeNS(null,\"stroke-dasharray\",_mapInstanceProperty(dashArray).call(dashArray,pf).join(\" \"));element.setAttributeNS(null,\"stroke-dashoffset\",pf(lineWidthScale*current.dashPhase)+\"px\");}},{key:\"eoFill\",value:function eoFill(){var _context124;if(this.current.element){this.current.element.setAttributeNS(null,\"fill-rule\",\"evenodd\");}_fillInstanceProperty(_context124=this).call(_context124);}},{key:\"fillStroke\",value:function fillStroke(){var _context125;this.stroke();_fillInstanceProperty(_context125=this).call(_context125);}},{key:\"eoFillStroke\",value:function eoFillStroke(){if(this.current.element){this.current.element.setAttributeNS(null,\"fill-rule\",\"evenodd\");}this.fillStroke();}},{key:\"closeStroke\",value:function closeStroke(){this.closePath();this.stroke();}},{key:\"closeFillStroke\",value:function closeFillStroke(){this.closePath();this.fillStroke();}},{key:\"closeEOFillStroke\",value:function closeEOFillStroke(){this.closePath();this.eoFillStroke();}},{key:\"paintSolidColorImageMask\",value:function paintSolidColorImageMask(){var rect=this.svgFactory.createElement(\"svg:rect\");rect.setAttributeNS(null,\"x\",\"0\");rect.setAttributeNS(null,\"y\",\"0\");rect.setAttributeNS(null,\"width\",\"1px\");rect.setAttributeNS(null,\"height\",\"1px\");rect.setAttributeNS(null,\"fill\",this.current.fillColor);this._ensureTransformGroup().append(rect);}},{key:\"paintImageXObject\",value:function paintImageXObject(objId){var imgData=_startsWithInstanceProperty(objId).call(objId,\"g_\")?this.commonObjs.get(objId):this.objs.get(objId);if(!imgData){(0,_util.warn)(\"Dependent image with object ID \".concat(objId,\" is not ready yet\"));return;}this.paintInlineImageXObject(imgData);}},{key:\"paintInlineImageXObject\",value:function paintInlineImageXObject(imgData,mask){var _context126;var width=imgData.width;var height=imgData.height;var imgSrc=convertImgDataToPng(imgData,this.forceDataSchema,!!mask);var cliprect=this.svgFactory.createElement(\"svg:rect\");cliprect.setAttributeNS(null,\"x\",\"0\");cliprect.setAttributeNS(null,\"y\",\"0\");cliprect.setAttributeNS(null,\"width\",pf(width));cliprect.setAttributeNS(null,\"height\",pf(height));this.current.element=cliprect;this.clip(\"nonzero\");var imgEl=this.svgFactory.createElement(\"svg:image\");imgEl.setAttributeNS(XLINK_NS,\"xlink:href\",imgSrc);imgEl.setAttributeNS(null,\"x\",\"0\");imgEl.setAttributeNS(null,\"y\",pf(-height));imgEl.setAttributeNS(null,\"width\",pf(width)+\"px\");imgEl.setAttributeNS(null,\"height\",pf(height)+\"px\");imgEl.setAttributeNS(null,\"transform\",_concatInstanceProperty(_context126=\"scale(\".concat(pf(1/width),\" \")).call(_context126,pf(-1/height),\")\"));if(mask){mask.append(imgEl);}else{this._ensureTransformGroup().append(imgEl);}}},{key:\"paintImageMaskXObject\",value:function paintImageMaskXObject(imgData){var current=this.current;var width=imgData.width;var height=imgData.height;var fillColor=current.fillColor;current.maskId=\"mask\".concat(maskCount++);var mask=this.svgFactory.createElement(\"svg:mask\");mask.setAttributeNS(null,\"id\",current.maskId);var rect=this.svgFactory.createElement(\"svg:rect\");rect.setAttributeNS(null,\"x\",\"0\");rect.setAttributeNS(null,\"y\",\"0\");rect.setAttributeNS(null,\"width\",pf(width));rect.setAttributeNS(null,\"height\",pf(height));rect.setAttributeNS(null,\"fill\",fillColor);rect.setAttributeNS(null,\"mask\",\"url(#\".concat(current.maskId,\")\"));this.defs.append(mask);this._ensureTransformGroup().append(rect);this.paintInlineImageXObject(imgData,mask);}},{key:\"paintFormXObjectBegin\",value:function paintFormXObjectBegin(matrix,bbox){if(Array.isArray(matrix)&&matrix.length===6){this.transform(matrix[0],matrix[1],matrix[2],matrix[3],matrix[4],matrix[5]);}if(bbox){var width=bbox[2]-bbox[0];var height=bbox[3]-bbox[1];var cliprect=this.svgFactory.createElement(\"svg:rect\");cliprect.setAttributeNS(null,\"x\",bbox[0]);cliprect.setAttributeNS(null,\"y\",bbox[1]);cliprect.setAttributeNS(null,\"width\",pf(width));cliprect.setAttributeNS(null,\"height\",pf(height));this.current.element=cliprect;this.clip(\"nonzero\");this.endPath();}}},{key:\"paintFormXObjectEnd\",value:function paintFormXObjectEnd(){}},{key:\"_initialize\",value:function _initialize(viewport){var svg=this.svgFactory.create(viewport.width,viewport.height);var definitions=this.svgFactory.createElement(\"svg:defs\");svg.append(definitions);this.defs=definitions;var rootGroup=this.svgFactory.createElement(\"svg:g\");rootGroup.setAttributeNS(null,\"transform\",pm(viewport.transform));svg.append(rootGroup);this.svg=rootGroup;return svg;}},{key:\"_ensureClipGroup\",value:function _ensureClipGroup(){if(!this.current.clipGroup){var clipGroup=this.svgFactory.createElement(\"svg:g\");clipGroup.setAttributeNS(null,\"clip-path\",this.current.activeClipUrl);this.svg.append(clipGroup);this.current.clipGroup=clipGroup;}return this.current.clipGroup;}},{key:\"_ensureTransformGroup\",value:function _ensureTransformGroup(){if(!this.tgrp){this.tgrp=this.svgFactory.createElement(\"svg:g\");this.tgrp.setAttributeNS(null,\"transform\",pm(this.transformMatrix));if(this.current.activeClipUrl){this._ensureClipGroup().append(this.tgrp);}else{this.svg.append(this.tgrp);}}return this.tgrp;}}]);return SVGGraphics;}();}/***/}),(/* 157 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.PDFNodeStream=void 0;var _util=__w_pdfjs_require__(1);var _network_utils=__w_pdfjs_require__(158);;var fs=__webpack_require__(/*! fs */ \"?022b\");var http=__webpack_require__(/*! http */ \"?7c40\");var https=__webpack_require__(/*! https */ \"?3a13\");var url=__webpack_require__(/*! url */ \"?ea48\");var fileUriRegex=/^file:\\/\\/\\/[a-zA-Z]:\\//;function parseUrl(sourceUrl){var parsedUrl=url.parse(sourceUrl);if(parsedUrl.protocol===\"file:\"||parsedUrl.host){return parsedUrl;}if(/^[a-z]:[/\\\\]/i.test(sourceUrl)){return url.parse(\"file:///\".concat(sourceUrl));}if(!parsedUrl.host){parsedUrl.protocol=\"file:\";}return parsedUrl;}var PDFNodeStream=/*#__PURE__*/function(){function PDFNodeStream(source){_classCallCheck(this,PDFNodeStream);this.source=source;this.url=parseUrl(source.url);this.isHttp=this.url.protocol===\"http:\"||this.url.protocol===\"https:\";this.isFsUrl=this.url.protocol===\"file:\";this.httpHeaders=this.isHttp&&source.httpHeaders||{};this._fullRequestReader=null;this._rangeRequestReaders=[];}_createClass(PDFNodeStream,[{key:\"_progressiveDataLength\",get:function get(){var _this$_fullRequestRea,_this$_fullRequestRea2;return(_this$_fullRequestRea=(_this$_fullRequestRea2=this._fullRequestReader)===null||_this$_fullRequestRea2===void 0?void 0:_this$_fullRequestRea2._loaded)!==null&&_this$_fullRequestRea!==void 0?_this$_fullRequestRea:0;}},{key:\"getFullReader\",value:function getFullReader(){(0,_util.assert)(!this._fullRequestReader,\"PDFNodeStream.getFullReader can only be called once.\");this._fullRequestReader=this.isFsUrl?new PDFNodeStreamFsFullReader(this):new PDFNodeStreamFullReader(this);return this._fullRequestReader;}},{key:\"getRangeReader\",value:function getRangeReader(start,end){if(end<=this._progressiveDataLength){return null;}var rangeReader=this.isFsUrl?new PDFNodeStreamFsRangeReader(this,start,end):new PDFNodeStreamRangeReader(this,start,end);this._rangeRequestReaders.push(rangeReader);return rangeReader;}},{key:\"cancelAllRequests\",value:function cancelAllRequests(reason){var _context127;if(this._fullRequestReader){this._fullRequestReader.cancel(reason);}var _iterator125=_createForOfIteratorHelper(_sliceInstanceProperty(_context127=this._rangeRequestReaders).call(_context127,0)),_step125;try{for(_iterator125.s();!(_step125=_iterator125.n()).done;){var reader=_step125.value;reader.cancel(reason);}}catch(err){_iterator125.e(err);}finally{_iterator125.f();}}}]);return PDFNodeStream;}();exports.PDFNodeStream=PDFNodeStream;var BaseFullReader=/*#__PURE__*/function(){function BaseFullReader(stream){_classCallCheck(this,BaseFullReader);this._url=stream.url;this._done=false;this._storedError=null;this.onProgress=null;var source=stream.source;this._contentLength=source.length;this._loaded=0;this._filename=null;this._disableRange=source.disableRange||false;this._rangeChunkSize=source.rangeChunkSize;if(!this._rangeChunkSize&&!this._disableRange){this._disableRange=true;}this._isStreamingSupported=!source.disableStream;this._isRangeSupported=!source.disableRange;this._readableStream=null;this._readCapability=(0,_util.createPromiseCapability)();this._headersCapability=(0,_util.createPromiseCapability)();}_createClass(BaseFullReader,[{key:\"headersReady\",get:function get(){return this._headersCapability.promise;}},{key:\"filename\",get:function get(){return this._filename;}},{key:\"contentLength\",get:function get(){return this._contentLength;}},{key:\"isRangeSupported\",get:function get(){return this._isRangeSupported;}},{key:\"isStreamingSupported\",get:function get(){return this._isStreamingSupported;}},{key:\"read\",value:function(){var _read3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(){var chunk,buffer;return _regeneratorRuntime.wrap(function _callee15$(_context128){while(1)switch(_context128.prev=_context128.next){case 0:_context128.next=2;return this._readCapability.promise;case 2:if(!this._done){_context128.next=4;break;}return _context128.abrupt(\"return\",{value:undefined,done:true});case 4:if(!this._storedError){_context128.next=6;break;}throw this._storedError;case 6:chunk=this._readableStream.read();if(!(chunk===null)){_context128.next=10;break;}this._readCapability=(0,_util.createPromiseCapability)();return _context128.abrupt(\"return\",this.read());case 10:this._loaded+=chunk.length;if(this.onProgress){this.onProgress({loaded:this._loaded,total:this._contentLength});}buffer=new Uint8Array(chunk).buffer;return _context128.abrupt(\"return\",{value:buffer,done:false});case 14:case\"end\":return _context128.stop();}},_callee15,this);}));function read(){return _read3.apply(this,arguments);}return read;}()},{key:\"cancel\",value:function cancel(reason){if(!this._readableStream){this._error(reason);return;}this._readableStream.destroy(reason);}},{key:\"_error\",value:function _error(reason){this._storedError=reason;this._readCapability.resolve();}},{key:\"_setReadableStream\",value:function _setReadableStream(readableStream){var _this73=this;this._readableStream=readableStream;readableStream.on(\"readable\",function(){_this73._readCapability.resolve();});readableStream.on(\"end\",function(){readableStream.destroy();_this73._done=true;_this73._readCapability.resolve();});readableStream.on(\"error\",function(reason){_this73._error(reason);});if(!this._isStreamingSupported&&this._isRangeSupported){this._error(new _util.AbortException(\"streaming is disabled\"));}if(this._storedError){this._readableStream.destroy(this._storedError);}}}]);return BaseFullReader;}();var BaseRangeReader=/*#__PURE__*/function(){function BaseRangeReader(stream){_classCallCheck(this,BaseRangeReader);this._url=stream.url;this._done=false;this._storedError=null;this.onProgress=null;this._loaded=0;this._readableStream=null;this._readCapability=(0,_util.createPromiseCapability)();var source=stream.source;this._isStreamingSupported=!source.disableStream;}_createClass(BaseRangeReader,[{key:\"isStreamingSupported\",get:function get(){return this._isStreamingSupported;}},{key:\"read\",value:function(){var _read4=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(){var chunk,buffer;return _regeneratorRuntime.wrap(function _callee16$(_context129){while(1)switch(_context129.prev=_context129.next){case 0:_context129.next=2;return this._readCapability.promise;case 2:if(!this._done){_context129.next=4;break;}return _context129.abrupt(\"return\",{value:undefined,done:true});case 4:if(!this._storedError){_context129.next=6;break;}throw this._storedError;case 6:chunk=this._readableStream.read();if(!(chunk===null)){_context129.next=10;break;}this._readCapability=(0,_util.createPromiseCapability)();return _context129.abrupt(\"return\",this.read());case 10:this._loaded+=chunk.length;if(this.onProgress){this.onProgress({loaded:this._loaded});}buffer=new Uint8Array(chunk).buffer;return _context129.abrupt(\"return\",{value:buffer,done:false});case 14:case\"end\":return _context129.stop();}},_callee16,this);}));function read(){return _read4.apply(this,arguments);}return read;}()},{key:\"cancel\",value:function cancel(reason){if(!this._readableStream){this._error(reason);return;}this._readableStream.destroy(reason);}},{key:\"_error\",value:function _error(reason){this._storedError=reason;this._readCapability.resolve();}},{key:\"_setReadableStream\",value:function _setReadableStream(readableStream){var _this74=this;this._readableStream=readableStream;readableStream.on(\"readable\",function(){_this74._readCapability.resolve();});readableStream.on(\"end\",function(){readableStream.destroy();_this74._done=true;_this74._readCapability.resolve();});readableStream.on(\"error\",function(reason){_this74._error(reason);});if(this._storedError){this._readableStream.destroy(this._storedError);}}}]);return BaseRangeReader;}();function createRequestOptions(parsedUrl,headers){return{protocol:parsedUrl.protocol,auth:parsedUrl.auth,host:parsedUrl.hostname,port:parsedUrl.port,path:parsedUrl.path,method:\"GET\",headers:headers};}var PDFNodeStreamFullReader=/*#__PURE__*/function(_BaseFullReader){_inherits(PDFNodeStreamFullReader,_BaseFullReader);function PDFNodeStreamFullReader(stream){var _this75;_classCallCheck(this,PDFNodeStreamFullReader);_this75=_callSuper(this,PDFNodeStreamFullReader,[stream]);var handleResponse=function handleResponse(response){if(response.statusCode===404){var error=new _util.MissingPDFException(\"Missing PDF \\\"\".concat(_this75._url,\"\\\".\"));_this75._storedError=error;_this75._headersCapability.reject(error);return;}_this75._headersCapability.resolve();_this75._setReadableStream(response);var getResponseHeader=function getResponseHeader(name){return _this75._readableStream.headers[name.toLowerCase()];};var _ref48=(0,_network_utils.validateRangeRequestCapabilities)({getResponseHeader:getResponseHeader,isHttp:stream.isHttp,rangeChunkSize:_this75._rangeChunkSize,disableRange:_this75._disableRange}),allowRangeRequests=_ref48.allowRangeRequests,suggestedLength=_ref48.suggestedLength;_this75._isRangeSupported=allowRangeRequests;_this75._contentLength=suggestedLength||_this75._contentLength;_this75._filename=(0,_network_utils.extractFilenameFromHeader)(getResponseHeader);};_this75._request=null;if(_this75._url.protocol===\"http:\"){_this75._request=http.request(createRequestOptions(_this75._url,stream.httpHeaders),handleResponse);}else{_this75._request=https.request(createRequestOptions(_this75._url,stream.httpHeaders),handleResponse);}_this75._request.on(\"error\",function(reason){_this75._storedError=reason;_this75._headersCapability.reject(reason);});_this75._request.end();return _this75;}return _createClass(PDFNodeStreamFullReader);}(BaseFullReader);var PDFNodeStreamRangeReader=/*#__PURE__*/function(_BaseRangeReader){_inherits(PDFNodeStreamRangeReader,_BaseRangeReader);function PDFNodeStreamRangeReader(stream,start,end){var _context130;var _this76;_classCallCheck(this,PDFNodeStreamRangeReader);_this76=_callSuper(this,PDFNodeStreamRangeReader,[stream]);_this76._httpHeaders={};for(var property in stream.httpHeaders){var value=stream.httpHeaders[property];if(typeof value===\"undefined\"){continue;}_this76._httpHeaders[property]=value;}_this76._httpHeaders.Range=_concatInstanceProperty(_context130=\"bytes=\".concat(start,\"-\")).call(_context130,end-1);var handleResponse=function handleResponse(response){if(response.statusCode===404){var error=new _util.MissingPDFException(\"Missing PDF \\\"\".concat(_this76._url,\"\\\".\"));_this76._storedError=error;return;}_this76._setReadableStream(response);};_this76._request=null;if(_this76._url.protocol===\"http:\"){_this76._request=http.request(createRequestOptions(_this76._url,_this76._httpHeaders),handleResponse);}else{_this76._request=https.request(createRequestOptions(_this76._url,_this76._httpHeaders),handleResponse);}_this76._request.on(\"error\",function(reason){_this76._storedError=reason;});_this76._request.end();return _this76;}return _createClass(PDFNodeStreamRangeReader);}(BaseRangeReader);var PDFNodeStreamFsFullReader=/*#__PURE__*/function(_BaseFullReader2){_inherits(PDFNodeStreamFsFullReader,_BaseFullReader2);function PDFNodeStreamFsFullReader(stream){var _this77;_classCallCheck(this,PDFNodeStreamFsFullReader);_this77=_callSuper(this,PDFNodeStreamFsFullReader,[stream]);var path=decodeURIComponent(_this77._url.path);if(fileUriRegex.test(_this77._url.href)){path=path.replace(/^\\//,\"\");}fs.lstat(path,function(error,stat){if(error){if(error.code===\"ENOENT\"){error=new _util.MissingPDFException(\"Missing PDF \\\"\".concat(path,\"\\\".\"));}_this77._storedError=error;_this77._headersCapability.reject(error);return;}_this77._contentLength=stat.size;_this77._setReadableStream(fs.createReadStream(path));_this77._headersCapability.resolve();});return _this77;}return _createClass(PDFNodeStreamFsFullReader);}(BaseFullReader);var PDFNodeStreamFsRangeReader=/*#__PURE__*/function(_BaseRangeReader2){_inherits(PDFNodeStreamFsRangeReader,_BaseRangeReader2);function PDFNodeStreamFsRangeReader(stream,start,end){var _this78;_classCallCheck(this,PDFNodeStreamFsRangeReader);_this78=_callSuper(this,PDFNodeStreamFsRangeReader,[stream]);var path=decodeURIComponent(_this78._url.path);if(fileUriRegex.test(_this78._url.href)){path=path.replace(/^\\//,\"\");}_this78._setReadableStream(fs.createReadStream(path,{start:start,end:end-1}));return _this78;}return _createClass(PDFNodeStreamFsRangeReader);}(BaseRangeReader);/***/}),(/* 158 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.createResponseStatusError=createResponseStatusError;exports.extractFilenameFromHeader=extractFilenameFromHeader;exports.validateRangeRequestCapabilities=validateRangeRequestCapabilities;exports.validateResponseStatus=validateResponseStatus;var _util=__w_pdfjs_require__(1);var _content_disposition=__w_pdfjs_require__(159);var _display_utils=__w_pdfjs_require__(133);function validateRangeRequestCapabilities(_ref){var getResponseHeader=_ref.getResponseHeader,isHttp=_ref.isHttp,rangeChunkSize=_ref.rangeChunkSize,disableRange=_ref.disableRange;var returnValues={allowRangeRequests:false,suggestedLength:undefined};var length=_parseInt(getResponseHeader(\"Content-Length\"),10);if(!_Number$isInteger(length)){return returnValues;}returnValues.suggestedLength=length;if(length<=2*rangeChunkSize){return returnValues;}if(disableRange||!isHttp){return returnValues;}if(getResponseHeader(\"Accept-Ranges\")!==\"bytes\"){return returnValues;}var contentEncoding=getResponseHeader(\"Content-Encoding\")||\"identity\";if(contentEncoding!==\"identity\"){return returnValues;}returnValues.allowRangeRequests=true;return returnValues;}function extractFilenameFromHeader(getResponseHeader){var contentDisposition=getResponseHeader(\"Content-Disposition\");if(contentDisposition){var filename=(0,_content_disposition.getFilenameFromContentDispositionHeader)(contentDisposition);if(_includesInstanceProperty(filename).call(filename,\"%\")){try{filename=decodeURIComponent(filename);}catch(ex){}}if((0,_display_utils.isPdfFile)(filename)){return filename;}}return null;}function createResponseStatusError(status,url){var _context131;if(status===404||status===0&&_startsWithInstanceProperty(url).call(url,\"file:\")){return new _util.MissingPDFException('Missing PDF \"'+url+'\".');}return new _util.UnexpectedResponseException(_concatInstanceProperty(_context131=\"Unexpected server response (\".concat(status,\") while retrieving PDF \\\"\")).call(_context131,url,\"\\\".\"),status);}function validateResponseStatus(status){return status===200||status===206;}/***/}),(/* 159 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.getFilenameFromContentDispositionHeader=getFilenameFromContentDispositionHeader;var _util=__w_pdfjs_require__(1);function getFilenameFromContentDispositionHeader(contentDisposition){var needsEncodingFixup=true;var tmp=toParamRegExp(\"filename\\\\*\",\"i\").exec(contentDisposition);if(tmp){tmp=tmp[1];var filename=rfc2616unquote(tmp);filename=unescape(filename);filename=rfc5987decode(filename);filename=rfc2047decode(filename);return fixupEncoding(filename);}tmp=rfc2231getparam(contentDisposition);if(tmp){var _filename=rfc2047decode(tmp);return fixupEncoding(_filename);}tmp=toParamRegExp(\"filename\",\"i\").exec(contentDisposition);if(tmp){tmp=tmp[1];var _filename2=rfc2616unquote(tmp);_filename2=rfc2047decode(_filename2);return fixupEncoding(_filename2);}function toParamRegExp(attributePattern,flags){return new RegExp(\"(?:^|;)\\\\s*\"+attributePattern+\"\\\\s*=\\\\s*\"+\"(\"+'[^\";\\\\s][^;\\\\s]*'+\"|\"+'\"(?:[^\"\\\\\\\\]|\\\\\\\\\"?)+\"?'+\")\",flags);}function textdecode(encoding,value){if(encoding){if(!/^[\\x00-\\xFF]+$/.test(value)){return value;}try{var decoder=new TextDecoder(encoding,{fatal:true});var buffer=(0,_util.stringToBytes)(value);value=decoder.decode(buffer);needsEncodingFixup=false;}catch(e){}}return value;}function fixupEncoding(value){if(needsEncodingFixup&&/[\\x80-\\xff]/.test(value)){value=textdecode(\"utf-8\",value);if(needsEncodingFixup){value=textdecode(\"iso-8859-1\",value);}}return value;}function rfc2231getparam(contentDispositionStr){var matches=[];var match;var iter=toParamRegExp(\"filename\\\\*((?!0\\\\d)\\\\d+)(\\\\*?)\",\"ig\");while((match=iter.exec(contentDispositionStr))!==null){var _match2=match,_match3=_slicedToArray(_match2,4),n=_match3[1],quot=_match3[2],part=_match3[3];n=_parseInt(n,10);if(n in matches){if(n===0){break;}continue;}matches[n]=[quot,part];}var parts=[];for(var _n=0;_n<matches.length;++_n){if(!(_n in matches)){break;}var _matches$_n=_slicedToArray(matches[_n],2),_quot=_matches$_n[0],_part=_matches$_n[1];_part=rfc2616unquote(_part);if(_quot){_part=unescape(_part);if(_n===0){_part=rfc5987decode(_part);}}parts.push(_part);}return parts.join(\"\");}function rfc2616unquote(value){if(_startsWithInstanceProperty(value).call(value,'\"')){var parts=_sliceInstanceProperty(value).call(value,1).split('\\\\\"');for(var i=0;i<parts.length;++i){var _context132;var quotindex=_indexOfInstanceProperty(_context132=parts[i]).call(_context132,'\"');if(quotindex!==-1){var _context133;parts[i]=_sliceInstanceProperty(_context133=parts[i]).call(_context133,0,quotindex);parts.length=i+1;}parts[i]=parts[i].replace(/\\\\(.)/g,\"$1\");}value=parts.join('\"');}return value;}function rfc5987decode(extvalue){var encodingend=_indexOfInstanceProperty(extvalue).call(extvalue,\"'\");if(encodingend===-1){return extvalue;}var encoding=_sliceInstanceProperty(extvalue).call(extvalue,0,encodingend);var langvalue=_sliceInstanceProperty(extvalue).call(extvalue,encodingend+1);var value=langvalue.replace(/^[^']*'/,\"\");return textdecode(encoding,value);}function rfc2047decode(value){if(!_startsWithInstanceProperty(value).call(value,\"=?\")||/[\\x00-\\x19\\x80-\\xff]/.test(value)){return value;}return value.replace(/=\\?([\\w-]*)\\?([QqBb])\\?((?:[^?]|\\?(?!=))*)\\?=/g,function(matches,charset,encoding,text){if(encoding===\"q\"||encoding===\"Q\"){text=text.replace(/_/g,\" \");text=text.replace(/=([0-9a-fA-F]{2})/g,function(match,hex){return String.fromCharCode(_parseInt(hex,16));});return textdecode(charset,text);}try{text=atob(text);}catch(e){}return textdecode(charset,text);});}return\"\";}/***/}),(/* 160 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.PDFNetworkStream=void 0;var _util=__w_pdfjs_require__(1);var _network_utils=__w_pdfjs_require__(158);;var OK_RESPONSE=200;var PARTIAL_CONTENT_RESPONSE=206;function getArrayBuffer(xhr){var data=xhr.response;if(typeof data!==\"string\"){return data;}var array=(0,_util.stringToBytes)(data);return array.buffer;}var NetworkManager=/*#__PURE__*/function(){function NetworkManager(url){_classCallCheck(this,NetworkManager);var args=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this.url=url;this.isHttp=/^https?:/i.test(url);this.httpHeaders=this.isHttp&&args.httpHeaders||Object.create(null);this.withCredentials=args.withCredentials||false;this.getXhr=args.getXhr||function NetworkManager_getXhr(){return new XMLHttpRequest();};this.currXhrId=0;this.pendingRequests=Object.create(null);}_createClass(NetworkManager,[{key:\"requestRange\",value:function requestRange(begin,end,listeners){var args={begin:begin,end:end};for(var prop in listeners){args[prop]=listeners[prop];}return this.request(args);}},{key:\"requestFull\",value:function requestFull(listeners){return this.request(listeners);}},{key:\"request\",value:function request(args){var xhr=this.getXhr();var xhrId=this.currXhrId++;var pendingRequest=this.pendingRequests[xhrId]={xhr:xhr};xhr.open(\"GET\",this.url);xhr.withCredentials=this.withCredentials;for(var property in this.httpHeaders){var value=this.httpHeaders[property];if(typeof value===\"undefined\"){continue;}xhr.setRequestHeader(property,value);}if(this.isHttp&&\"begin\"in args&&\"end\"in args){var _context134;xhr.setRequestHeader(\"Range\",_concatInstanceProperty(_context134=\"bytes=\".concat(args.begin,\"-\")).call(_context134,args.end-1));pendingRequest.expectedStatus=PARTIAL_CONTENT_RESPONSE;}else{pendingRequest.expectedStatus=OK_RESPONSE;}xhr.responseType=\"arraybuffer\";if(args.onError){xhr.onerror=function(evt){args.onError(xhr.status);};}xhr.onreadystatechange=this.onStateChange.bind(this,xhrId);xhr.onprogress=this.onProgress.bind(this,xhrId);pendingRequest.onHeadersReceived=args.onHeadersReceived;pendingRequest.onDone=args.onDone;pendingRequest.onError=args.onError;pendingRequest.onProgress=args.onProgress;xhr.send(null);return xhrId;}},{key:\"onProgress\",value:function onProgress(xhrId,evt){var _pendingRequest$onPro;var pendingRequest=this.pendingRequests[xhrId];if(!pendingRequest){return;}(_pendingRequest$onPro=pendingRequest.onProgress)===null||_pendingRequest$onPro===void 0?void 0:_pendingRequest$onPro.call(pendingRequest,evt);}},{key:\"onStateChange\",value:function onStateChange(xhrId,evt){var pendingRequest=this.pendingRequests[xhrId];if(!pendingRequest){return;}var xhr=pendingRequest.xhr;if(xhr.readyState>=2&&pendingRequest.onHeadersReceived){pendingRequest.onHeadersReceived();delete pendingRequest.onHeadersReceived;}if(xhr.readyState!==4){return;}if(!(xhrId in this.pendingRequests)){return;}delete this.pendingRequests[xhrId];if(xhr.status===0&&this.isHttp){var _pendingRequest$onErr;(_pendingRequest$onErr=pendingRequest.onError)===null||_pendingRequest$onErr===void 0?void 0:_pendingRequest$onErr.call(pendingRequest,xhr.status);return;}var xhrStatus=xhr.status||OK_RESPONSE;var ok_response_on_range_request=xhrStatus===OK_RESPONSE&&pendingRequest.expectedStatus===PARTIAL_CONTENT_RESPONSE;if(!ok_response_on_range_request&&xhrStatus!==pendingRequest.expectedStatus){var _pendingRequest$onErr2;(_pendingRequest$onErr2=pendingRequest.onError)===null||_pendingRequest$onErr2===void 0?void 0:_pendingRequest$onErr2.call(pendingRequest,xhr.status);return;}var chunk=getArrayBuffer(xhr);if(xhrStatus===PARTIAL_CONTENT_RESPONSE){var rangeHeader=xhr.getResponseHeader(\"Content-Range\");var matches=/bytes (\\d+)-(\\d+)\\/(\\d+)/.exec(rangeHeader);pendingRequest.onDone({begin:_parseInt(matches[1],10),chunk:chunk});}else if(chunk){pendingRequest.onDone({begin:0,chunk:chunk});}else{var _pendingRequest$onErr3;(_pendingRequest$onErr3=pendingRequest.onError)===null||_pendingRequest$onErr3===void 0?void 0:_pendingRequest$onErr3.call(pendingRequest,xhr.status);}}},{key:\"getRequestXhr\",value:function getRequestXhr(xhrId){return this.pendingRequests[xhrId].xhr;}},{key:\"isPendingRequest\",value:function isPendingRequest(xhrId){return xhrId in this.pendingRequests;}},{key:\"abortRequest\",value:function abortRequest(xhrId){var xhr=this.pendingRequests[xhrId].xhr;delete this.pendingRequests[xhrId];xhr.abort();}}]);return NetworkManager;}();var PDFNetworkStream=/*#__PURE__*/function(){function PDFNetworkStream(source){_classCallCheck(this,PDFNetworkStream);this._source=source;this._manager=new NetworkManager(source.url,{httpHeaders:source.httpHeaders,withCredentials:source.withCredentials});this._rangeChunkSize=source.rangeChunkSize;this._fullRequestReader=null;this._rangeRequestReaders=[];}_createClass(PDFNetworkStream,[{key:\"_onRangeRequestReaderClosed\",value:function _onRangeRequestReaderClosed(reader){var _context135;var i=_indexOfInstanceProperty(_context135=this._rangeRequestReaders).call(_context135,reader);if(i>=0){var _context136;_spliceInstanceProperty(_context136=this._rangeRequestReaders).call(_context136,i,1);}}},{key:\"getFullReader\",value:function getFullReader(){(0,_util.assert)(!this._fullRequestReader,\"PDFNetworkStream.getFullReader can only be called once.\");this._fullRequestReader=new PDFNetworkStreamFullRequestReader(this._manager,this._source);return this._fullRequestReader;}},{key:\"getRangeReader\",value:function getRangeReader(begin,end){var reader=new PDFNetworkStreamRangeRequestReader(this._manager,begin,end);reader.onClosed=this._onRangeRequestReaderClosed.bind(this);this._rangeRequestReaders.push(reader);return reader;}},{key:\"cancelAllRequests\",value:function cancelAllRequests(reason){var _context137;var _this$_fullRequestRea;(_this$_fullRequestRea=this._fullRequestReader)===null||_this$_fullRequestRea===void 0?void 0:_this$_fullRequestRea.cancel(reason);var _iterator126=_createForOfIteratorHelper(_sliceInstanceProperty(_context137=this._rangeRequestReaders).call(_context137,0)),_step126;try{for(_iterator126.s();!(_step126=_iterator126.n()).done;){var reader=_step126.value;reader.cancel(reason);}}catch(err){_iterator126.e(err);}finally{_iterator126.f();}}}]);return PDFNetworkStream;}();exports.PDFNetworkStream=PDFNetworkStream;var PDFNetworkStreamFullRequestReader=/*#__PURE__*/function(){function PDFNetworkStreamFullRequestReader(manager,source){_classCallCheck(this,PDFNetworkStreamFullRequestReader);this._manager=manager;var args={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=source.url;this._fullRequestId=manager.requestFull(args);this._headersReceivedCapability=(0,_util.createPromiseCapability)();this._disableRange=source.disableRange||false;this._contentLength=source.length;this._rangeChunkSize=source.rangeChunkSize;if(!this._rangeChunkSize&&!this._disableRange){this._disableRange=true;}this._isStreamingSupported=false;this._isRangeSupported=false;this._cachedChunks=[];this._requests=[];this._done=false;this._storedError=undefined;this._filename=null;this.onProgress=null;}_createClass(PDFNetworkStreamFullRequestReader,[{key:\"_onHeadersReceived\",value:function _onHeadersReceived(){var fullRequestXhrId=this._fullRequestId;var fullRequestXhr=this._manager.getRequestXhr(fullRequestXhrId);var getResponseHeader=function getResponseHeader(name){return fullRequestXhr.getResponseHeader(name);};var _ref49=(0,_network_utils.validateRangeRequestCapabilities)({getResponseHeader:getResponseHeader,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),allowRangeRequests=_ref49.allowRangeRequests,suggestedLength=_ref49.suggestedLength;if(allowRangeRequests){this._isRangeSupported=true;}this._contentLength=suggestedLength||this._contentLength;this._filename=(0,_network_utils.extractFilenameFromHeader)(getResponseHeader);if(this._isRangeSupported){this._manager.abortRequest(fullRequestXhrId);}this._headersReceivedCapability.resolve();}},{key:\"_onDone\",value:function _onDone(data){if(data){if(this._requests.length>0){var requestCapability=this._requests.shift();requestCapability.resolve({value:data.chunk,done:false});}else{this._cachedChunks.push(data.chunk);}}this._done=true;if(this._cachedChunks.length>0){return;}var _iterator127=_createForOfIteratorHelper(this._requests),_step127;try{for(_iterator127.s();!(_step127=_iterator127.n()).done;){var _requestCapability=_step127.value;_requestCapability.resolve({value:undefined,done:true});}}catch(err){_iterator127.e(err);}finally{_iterator127.f();}this._requests.length=0;}},{key:\"_onError\",value:function _onError(status){this._storedError=(0,_network_utils.createResponseStatusError)(status,this._url);this._headersReceivedCapability.reject(this._storedError);var _iterator128=_createForOfIteratorHelper(this._requests),_step128;try{for(_iterator128.s();!(_step128=_iterator128.n()).done;){var requestCapability=_step128.value;requestCapability.reject(this._storedError);}}catch(err){_iterator128.e(err);}finally{_iterator128.f();}this._requests.length=0;this._cachedChunks.length=0;}},{key:\"_onProgress\",value:function _onProgress(evt){var _this$onProgress;(_this$onProgress=this.onProgress)===null||_this$onProgress===void 0?void 0:_this$onProgress.call(this,{loaded:evt.loaded,total:evt.lengthComputable?evt.total:this._contentLength});}},{key:\"filename\",get:function get(){return this._filename;}},{key:\"isRangeSupported\",get:function get(){return this._isRangeSupported;}},{key:\"isStreamingSupported\",get:function get(){return this._isStreamingSupported;}},{key:\"contentLength\",get:function get(){return this._contentLength;}},{key:\"headersReady\",get:function get(){return this._headersReceivedCapability.promise;}},{key:\"read\",value:function(){var _read5=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(){var chunk,requestCapability;return _regeneratorRuntime.wrap(function _callee17$(_context138){while(1)switch(_context138.prev=_context138.next){case 0:if(!this._storedError){_context138.next=2;break;}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){_context138.next=5;break;}chunk=this._cachedChunks.shift();return _context138.abrupt(\"return\",{value:chunk,done:false});case 5:if(!this._done){_context138.next=7;break;}return _context138.abrupt(\"return\",{value:undefined,done:true});case 7:requestCapability=(0,_util.createPromiseCapability)();this._requests.push(requestCapability);return _context138.abrupt(\"return\",requestCapability.promise);case 10:case\"end\":return _context138.stop();}},_callee17,this);}));function read(){return _read5.apply(this,arguments);}return read;}()},{key:\"cancel\",value:function cancel(reason){this._done=true;this._headersReceivedCapability.reject(reason);var _iterator129=_createForOfIteratorHelper(this._requests),_step129;try{for(_iterator129.s();!(_step129=_iterator129.n()).done;){var requestCapability=_step129.value;requestCapability.resolve({value:undefined,done:true});}}catch(err){_iterator129.e(err);}finally{_iterator129.f();}this._requests.length=0;if(this._manager.isPendingRequest(this._fullRequestId)){this._manager.abortRequest(this._fullRequestId);}this._fullRequestReader=null;}}]);return PDFNetworkStreamFullRequestReader;}();var PDFNetworkStreamRangeRequestReader=/*#__PURE__*/function(){function PDFNetworkStreamRangeRequestReader(manager,begin,end){_classCallCheck(this,PDFNetworkStreamRangeRequestReader);this._manager=manager;var args={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=manager.url;this._requestId=manager.requestRange(begin,end,args);this._requests=[];this._queuedChunk=null;this._done=false;this._storedError=undefined;this.onProgress=null;this.onClosed=null;}_createClass(PDFNetworkStreamRangeRequestReader,[{key:\"_close\",value:function _close(){var _this$onClosed;(_this$onClosed=this.onClosed)===null||_this$onClosed===void 0?void 0:_this$onClosed.call(this,this);}},{key:\"_onDone\",value:function _onDone(data){var chunk=data.chunk;if(this._requests.length>0){var requestCapability=this._requests.shift();requestCapability.resolve({value:chunk,done:false});}else{this._queuedChunk=chunk;}this._done=true;var _iterator130=_createForOfIteratorHelper(this._requests),_step130;try{for(_iterator130.s();!(_step130=_iterator130.n()).done;){var _requestCapability2=_step130.value;_requestCapability2.resolve({value:undefined,done:true});}}catch(err){_iterator130.e(err);}finally{_iterator130.f();}this._requests.length=0;this._close();}},{key:\"_onError\",value:function _onError(status){this._storedError=(0,_network_utils.createResponseStatusError)(status,this._url);var _iterator131=_createForOfIteratorHelper(this._requests),_step131;try{for(_iterator131.s();!(_step131=_iterator131.n()).done;){var requestCapability=_step131.value;requestCapability.reject(this._storedError);}}catch(err){_iterator131.e(err);}finally{_iterator131.f();}this._requests.length=0;this._queuedChunk=null;}},{key:\"_onProgress\",value:function _onProgress(evt){if(!this.isStreamingSupported){var _this$onProgress2;(_this$onProgress2=this.onProgress)===null||_this$onProgress2===void 0?void 0:_this$onProgress2.call(this,{loaded:evt.loaded});}}},{key:\"isStreamingSupported\",get:function get(){return false;}},{key:\"read\",value:function(){var _read6=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(){var chunk,requestCapability;return _regeneratorRuntime.wrap(function _callee18$(_context139){while(1)switch(_context139.prev=_context139.next){case 0:if(!this._storedError){_context139.next=2;break;}throw this._storedError;case 2:if(!(this._queuedChunk!==null)){_context139.next=6;break;}chunk=this._queuedChunk;this._queuedChunk=null;return _context139.abrupt(\"return\",{value:chunk,done:false});case 6:if(!this._done){_context139.next=8;break;}return _context139.abrupt(\"return\",{value:undefined,done:true});case 8:requestCapability=(0,_util.createPromiseCapability)();this._requests.push(requestCapability);return _context139.abrupt(\"return\",requestCapability.promise);case 11:case\"end\":return _context139.stop();}},_callee18,this);}));function read(){return _read6.apply(this,arguments);}return read;}()},{key:\"cancel\",value:function cancel(reason){this._done=true;var _iterator132=_createForOfIteratorHelper(this._requests),_step132;try{for(_iterator132.s();!(_step132=_iterator132.n()).done;){var requestCapability=_step132.value;requestCapability.resolve({value:undefined,done:true});}}catch(err){_iterator132.e(err);}finally{_iterator132.f();}this._requests.length=0;if(this._manager.isPendingRequest(this._requestId)){this._manager.abortRequest(this._requestId);}this._close();}}]);return PDFNetworkStreamRangeRequestReader;}();/***/}),(/* 161 */ /***/function(__unused_webpack_module,exports,__w_pdfjs_require__){\"use strict\";_Object$defineProperty(exports,\"__esModule\",{value:true});exports.PDFFetchStream=void 0;var _util=__w_pdfjs_require__(1);var _network_utils=__w_pdfjs_require__(158);;function createFetchOptions(headers,withCredentials,abortController){return{method:\"GET\",headers:headers,signal:abortController.signal,mode:\"cors\",credentials:withCredentials?\"include\":\"same-origin\",redirect:\"follow\"};}function createHeaders(httpHeaders){var headers=new Headers();for(var property in httpHeaders){var value=httpHeaders[property];if(typeof value===\"undefined\"){continue;}headers.append(property,value);}return headers;}var PDFFetchStream=/*#__PURE__*/function(){function PDFFetchStream(source){_classCallCheck(this,PDFFetchStream);this.source=source;this.isHttp=/^https?:/i.test(source.url);this.httpHeaders=this.isHttp&&source.httpHeaders||{};this._fullRequestReader=null;this._rangeRequestReaders=[];}_createClass(PDFFetchStream,[{key:\"_progressiveDataLength\",get:function get(){var _this$_fullRequestRea,_this$_fullRequestRea2;return(_this$_fullRequestRea=(_this$_fullRequestRea2=this._fullRequestReader)===null||_this$_fullRequestRea2===void 0?void 0:_this$_fullRequestRea2._loaded)!==null&&_this$_fullRequestRea!==void 0?_this$_fullRequestRea:0;}},{key:\"getFullReader\",value:function getFullReader(){(0,_util.assert)(!this._fullRequestReader,\"PDFFetchStream.getFullReader can only be called once.\");this._fullRequestReader=new PDFFetchStreamReader(this);return this._fullRequestReader;}},{key:\"getRangeReader\",value:function getRangeReader(begin,end){if(end<=this._progressiveDataLength){return null;}var reader=new PDFFetchStreamRangeReader(this,begin,end);this._rangeRequestReaders.push(reader);return reader;}},{key:\"cancelAllRequests\",value:function cancelAllRequests(reason){var _context140;if(this._fullRequestReader){this._fullRequestReader.cancel(reason);}var _iterator133=_createForOfIteratorHelper(_sliceInstanceProperty(_context140=this._rangeRequestReaders).call(_context140,0)),_step133;try{for(_iterator133.s();!(_step133=_iterator133.n()).done;){var reader=_step133.value;reader.cancel(reason);}}catch(err){_iterator133.e(err);}finally{_iterator133.f();}}}]);return PDFFetchStream;}();exports.PDFFetchStream=PDFFetchStream;var PDFFetchStreamReader=/*#__PURE__*/function(){function PDFFetchStreamReader(stream){var _this79=this;_classCallCheck(this,PDFFetchStreamReader);this._stream=stream;this._reader=null;this._loaded=0;this._filename=null;var source=stream.source;this._withCredentials=source.withCredentials||false;this._contentLength=source.length;this._headersCapability=(0,_util.createPromiseCapability)();this._disableRange=source.disableRange||false;this._rangeChunkSize=source.rangeChunkSize;if(!this._rangeChunkSize&&!this._disableRange){this._disableRange=true;}this._abortController=new AbortController();this._isStreamingSupported=!source.disableStream;this._isRangeSupported=!source.disableRange;this._headers=createHeaders(this._stream.httpHeaders);var url=source.url;fetch(url,createFetchOptions(this._headers,this._withCredentials,this._abortController)).then(function(response){if(!(0,_network_utils.validateResponseStatus)(response.status)){throw(0,_network_utils.createResponseStatusError)(response.status,url);}_this79._reader=response.body.getReader();_this79._headersCapability.resolve();var getResponseHeader=function getResponseHeader(name){return response.headers.get(name);};var _ref50=(0,_network_utils.validateRangeRequestCapabilities)({getResponseHeader:getResponseHeader,isHttp:_this79._stream.isHttp,rangeChunkSize:_this79._rangeChunkSize,disableRange:_this79._disableRange}),allowRangeRequests=_ref50.allowRangeRequests,suggestedLength=_ref50.suggestedLength;_this79._isRangeSupported=allowRangeRequests;_this79._contentLength=suggestedLength||_this79._contentLength;_this79._filename=(0,_network_utils.extractFilenameFromHeader)(getResponseHeader);if(!_this79._isStreamingSupported&&_this79._isRangeSupported){_this79.cancel(new _util.AbortException(\"Streaming is disabled.\"));}}).catch(this._headersCapability.reject);this.onProgress=null;}_createClass(PDFFetchStreamReader,[{key:\"headersReady\",get:function get(){return this._headersCapability.promise;}},{key:\"filename\",get:function get(){return this._filename;}},{key:\"contentLength\",get:function get(){return this._contentLength;}},{key:\"isRangeSupported\",get:function get(){return this._isRangeSupported;}},{key:\"isStreamingSupported\",get:function get(){return this._isStreamingSupported;}},{key:\"read\",value:function(){var _read7=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(){var _yield$this$_reader$r,value,done,buffer;return _regeneratorRuntime.wrap(function _callee19$(_context141){while(1)switch(_context141.prev=_context141.next){case 0:_context141.next=2;return this._headersCapability.promise;case 2:_context141.next=4;return this._reader.read();case 4:_yield$this$_reader$r=_context141.sent;value=_yield$this$_reader$r.value;done=_yield$this$_reader$r.done;if(!done){_context141.next=9;break;}return _context141.abrupt(\"return\",{value:value,done:done});case 9:this._loaded+=value.byteLength;if(this.onProgress){this.onProgress({loaded:this._loaded,total:this._contentLength});}buffer=new Uint8Array(value).buffer;return _context141.abrupt(\"return\",{value:buffer,done:false});case 13:case\"end\":return _context141.stop();}},_callee19,this);}));function read(){return _read7.apply(this,arguments);}return read;}()},{key:\"cancel\",value:function cancel(reason){if(this._reader){this._reader.cancel(reason);}this._abortController.abort();}}]);return PDFFetchStreamReader;}();var PDFFetchStreamRangeReader=/*#__PURE__*/function(){function PDFFetchStreamRangeReader(stream,begin,end){var _context142,_this80=this;_classCallCheck(this,PDFFetchStreamRangeReader);this._stream=stream;this._reader=null;this._loaded=0;var source=stream.source;this._withCredentials=source.withCredentials||false;this._readCapability=(0,_util.createPromiseCapability)();this._isStreamingSupported=!source.disableStream;this._abortController=new AbortController();this._headers=createHeaders(this._stream.httpHeaders);this._headers.append(\"Range\",_concatInstanceProperty(_context142=\"bytes=\".concat(begin,\"-\")).call(_context142,end-1));var url=source.url;fetch(url,createFetchOptions(this._headers,this._withCredentials,this._abortController)).then(function(response){if(!(0,_network_utils.validateResponseStatus)(response.status)){throw(0,_network_utils.createResponseStatusError)(response.status,url);}_this80._readCapability.resolve();_this80._reader=response.body.getReader();}).catch(this._readCapability.reject);this.onProgress=null;}_createClass(PDFFetchStreamRangeReader,[{key:\"isStreamingSupported\",get:function get(){return this._isStreamingSupported;}},{key:\"read\",value:function(){var _read8=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(){var _yield$this$_reader$r2,value,done,buffer;return _regeneratorRuntime.wrap(function _callee20$(_context143){while(1)switch(_context143.prev=_context143.next){case 0:_context143.next=2;return this._readCapability.promise;case 2:_context143.next=4;return this._reader.read();case 4:_yield$this$_reader$r2=_context143.sent;value=_yield$this$_reader$r2.value;done=_yield$this$_reader$r2.done;if(!done){_context143.next=9;break;}return _context143.abrupt(\"return\",{value:value,done:done});case 9:this._loaded+=value.byteLength;if(this.onProgress){this.onProgress({loaded:this._loaded});}buffer=new Uint8Array(value).buffer;return _context143.abrupt(\"return\",{value:buffer,done:false});case 13:case\"end\":return _context143.stop();}},_callee20,this);}));function read(){return _read8.apply(this,arguments);}return read;}()},{key:\"cancel\",value:function cancel(reason){if(this._reader){this._reader.cancel(reason);}this._abortController.abort();}}]);return PDFFetchStreamRangeReader;}();/***/}/******/)];/************************************************************************/ /******/ // The module cache\n/******/var __webpack_module_cache__={};/******/ /******/ // The require function\n/******/function __w_pdfjs_require__(moduleId){/******/ // Check if module is in cache\n/******/var cachedModule=__webpack_module_cache__[moduleId];/******/if(cachedModule!==undefined){/******/return cachedModule.exports;/******/}/******/ // Create a new module (and put it into the cache)\n/******/var module=__webpack_module_cache__[moduleId]={/******/ // no module.id needed\n/******/ // no module.loaded needed\n/******/exports:{}/******/};/******/ /******/ // Execute the module function\n/******/__webpack_modules__[moduleId](module,module.exports,__w_pdfjs_require__);/******/ /******/ // Return the exports of the module\n/******/return module.exports;/******/}/******/ /************************************************************************/var __nested_webpack_exports__={};// This entry need to be wrapped in an IIFE because it need to be in strict mode.\n(function(){\"use strict\";var exports=__nested_webpack_exports__;_Object$defineProperty(exports,\"__esModule\",{value:true});_Object$defineProperty(exports,\"AnnotationEditorLayer\",{enumerable:true,get:function get(){return _annotation_editor_layer.AnnotationEditorLayer;}});_Object$defineProperty(exports,\"AnnotationEditorParamsType\",{enumerable:true,get:function get(){return _util.AnnotationEditorParamsType;}});_Object$defineProperty(exports,\"AnnotationEditorType\",{enumerable:true,get:function get(){return _util.AnnotationEditorType;}});_Object$defineProperty(exports,\"AnnotationEditorUIManager\",{enumerable:true,get:function get(){return _tools.AnnotationEditorUIManager;}});_Object$defineProperty(exports,\"AnnotationLayer\",{enumerable:true,get:function get(){return _annotation_layer.AnnotationLayer;}});_Object$defineProperty(exports,\"AnnotationMode\",{enumerable:true,get:function get(){return _util.AnnotationMode;}});_Object$defineProperty(exports,\"CMapCompressionType\",{enumerable:true,get:function get(){return _util.CMapCompressionType;}});_Object$defineProperty(exports,\"GlobalWorkerOptions\",{enumerable:true,get:function get(){return _worker_options.GlobalWorkerOptions;}});_Object$defineProperty(exports,\"InvalidPDFException\",{enumerable:true,get:function get(){return _util.InvalidPDFException;}});_Object$defineProperty(exports,\"LoopbackPort\",{enumerable:true,get:function get(){return _api.LoopbackPort;}});_Object$defineProperty(exports,\"MissingPDFException\",{enumerable:true,get:function get(){return _util.MissingPDFException;}});_Object$defineProperty(exports,\"OPS\",{enumerable:true,get:function get(){return _util.OPS;}});_Object$defineProperty(exports,\"PDFDataRangeTransport\",{enumerable:true,get:function get(){return _api.PDFDataRangeTransport;}});_Object$defineProperty(exports,\"PDFDateString\",{enumerable:true,get:function get(){return _display_utils.PDFDateString;}});_Object$defineProperty(exports,\"PDFWorker\",{enumerable:true,get:function get(){return _api.PDFWorker;}});_Object$defineProperty(exports,\"PasswordResponses\",{enumerable:true,get:function get(){return _util.PasswordResponses;}});_Object$defineProperty(exports,\"PermissionFlag\",{enumerable:true,get:function get(){return _util.PermissionFlag;}});_Object$defineProperty(exports,\"PixelsPerInch\",{enumerable:true,get:function get(){return _display_utils.PixelsPerInch;}});_Object$defineProperty(exports,\"RenderingCancelledException\",{enumerable:true,get:function get(){return _display_utils.RenderingCancelledException;}});_Object$defineProperty(exports,\"SVGGraphics\",{enumerable:true,get:function get(){return _svg.SVGGraphics;}});_Object$defineProperty(exports,\"UNSUPPORTED_FEATURES\",{enumerable:true,get:function get(){return _util.UNSUPPORTED_FEATURES;}});_Object$defineProperty(exports,\"UnexpectedResponseException\",{enumerable:true,get:function get(){return _util.UnexpectedResponseException;}});_Object$defineProperty(exports,\"Util\",{enumerable:true,get:function get(){return _util.Util;}});_Object$defineProperty(exports,\"VerbosityLevel\",{enumerable:true,get:function get(){return _util.VerbosityLevel;}});_Object$defineProperty(exports,\"XfaLayer\",{enumerable:true,get:function get(){return _xfa_layer.XfaLayer;}});_Object$defineProperty(exports,\"build\",{enumerable:true,get:function get(){return _api.build;}});_Object$defineProperty(exports,\"createPromiseCapability\",{enumerable:true,get:function get(){return _util.createPromiseCapability;}});_Object$defineProperty(exports,\"createValidAbsoluteUrl\",{enumerable:true,get:function get(){return _util.createValidAbsoluteUrl;}});_Object$defineProperty(exports,\"getDocument\",{enumerable:true,get:function get(){return _api.getDocument;}});_Object$defineProperty(exports,\"getFilenameFromUrl\",{enumerable:true,get:function get(){return _display_utils.getFilenameFromUrl;}});_Object$defineProperty(exports,\"getPdfFilenameFromUrl\",{enumerable:true,get:function get(){return _display_utils.getPdfFilenameFromUrl;}});_Object$defineProperty(exports,\"getXfaPageViewport\",{enumerable:true,get:function get(){return _display_utils.getXfaPageViewport;}});_Object$defineProperty(exports,\"isPdfFile\",{enumerable:true,get:function get(){return _display_utils.isPdfFile;}});_Object$defineProperty(exports,\"loadScript\",{enumerable:true,get:function get(){return _display_utils.loadScript;}});_Object$defineProperty(exports,\"renderTextLayer\",{enumerable:true,get:function get(){return _text_layer.renderTextLayer;}});_Object$defineProperty(exports,\"shadow\",{enumerable:true,get:function get(){return _util.shadow;}});_Object$defineProperty(exports,\"version\",{enumerable:true,get:function get(){return _api.version;}});var _util=__w_pdfjs_require__(1);var _api=__w_pdfjs_require__(129);var _display_utils=__w_pdfjs_require__(133);var _annotation_editor_layer=__w_pdfjs_require__(147);var _tools=__w_pdfjs_require__(132);var _annotation_layer=__w_pdfjs_require__(152);var _worker_options=__w_pdfjs_require__(140);var _is_node=__w_pdfjs_require__(3);var _text_layer=__w_pdfjs_require__(155);var _svg=__w_pdfjs_require__(156);var _xfa_layer=__w_pdfjs_require__(154);var pdfjsVersion='2.16.105';var pdfjsBuild='172ccdbe5';{if(_is_node.isNodeJS){var _w_pdfjs_require__2=__w_pdfjs_require__(157),PDFNodeStream=_w_pdfjs_require__2.PDFNodeStream;(0,_api.setPDFNetworkStreamFactory)(function(params){return new PDFNodeStream(params);});}else{var _w_pdfjs_require__3=__w_pdfjs_require__(160),PDFNetworkStream=_w_pdfjs_require__3.PDFNetworkStream;var _w_pdfjs_require__4=__w_pdfjs_require__(161),PDFFetchStream=_w_pdfjs_require__4.PDFFetchStream;(0,_api.setPDFNetworkStreamFactory)(function(params){if((0,_display_utils.isValidFetchUrl)(params.url)){return new PDFFetchStream(params);}return new PDFNetworkStream(params);});}}})();/******/return __nested_webpack_exports__;/******/}();});\n\n//# sourceURL=webpack://nocode-component/../../node_modules/pdfjs-dist216/legacy/build/pdf.js?");

/***/ }),

/***/ "../../node_modules/pdfjs-dist216/legacy/build/pdf.worker.min.js":
/*!***********************************************************************!*\
  !*** ../../node_modules/pdfjs-dist216/legacy/build/pdf.worker.min.js ***!
  \***********************************************************************/
/***/ (function(module, exports, __webpack_require__) {

eval("/* module decorator */ module = __webpack_require__.nmd(module);\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _get=__webpack_require__(/*! @babel/runtime-corejs3/helpers/get */ \"../../node_modules/@babel/runtime-corejs3/helpers/get.js\");var _extends=__webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.js\");var _defineProperty=__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\");var _assertThisInitialized=__webpack_require__(/*! @babel/runtime-corejs3/helpers/assertThisInitialized */ \"../../node_modules/@babel/runtime-corejs3/helpers/assertThisInitialized.js\");var _toConsumableArray=__webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js\");var _possibleConstructorReturn=__webpack_require__(/*! @babel/runtime-corejs3/helpers/possibleConstructorReturn */ \"../../node_modules/@babel/runtime-corejs3/helpers/possibleConstructorReturn.js\");var _getPrototypeOf=__webpack_require__(/*! @babel/runtime-corejs3/helpers/getPrototypeOf */ \"../../node_modules/@babel/runtime-corejs3/helpers/getPrototypeOf.js\");var _inherits=__webpack_require__(/*! @babel/runtime-corejs3/helpers/inherits */ \"../../node_modules/@babel/runtime-corejs3/helpers/inherits.js\");var _regeneratorRuntime=__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\");var _toArray=__webpack_require__(/*! @babel/runtime-corejs3/helpers/toArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/toArray.js\");var _slicedToArray=__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\");var _asyncToGenerator=__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\");var _classCallCheck=__webpack_require__(/*! @babel/runtime-corejs3/helpers/classCallCheck */ \"../../node_modules/@babel/runtime-corejs3/helpers/classCallCheck.js\");var _createClass=__webpack_require__(/*! @babel/runtime-corejs3/helpers/createClass */ \"../../node_modules/@babel/runtime-corejs3/helpers/createClass.js\");var _globalThis=__webpack_require__(/*! @babel/runtime-corejs3/core-js/global-this */ \"../../node_modules/@babel/runtime-corejs3/core-js/global-this.js\");var _Object$defineProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");var _indexOfInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/index-of */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js\");var _spliceInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/splice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/splice.js\");var _Promise=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/promise */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.js\");var _sliceInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js\");var _flatInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/flat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/flat.js\");var _concatInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");var _startsWithInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/starts-with */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/starts-with.js\");var _URL=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/url */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/url.js\");var _padStartInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/pad-start */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/pad-start.js\");var _Object$keys=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");var _Number$isInteger=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/number/is-integer */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/number/is-integer.js\");var _mapInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\");var _keysInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/keys.js\");var _Object$getOwnPropertyDescriptor=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");var _Symbol=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/symbol */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js\");var _Symbol$iterator=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/symbol/iterator */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol/iterator.js\");var _Object$getOwnPropertySymbols=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");var _Object$getOwnPropertyNames=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-names */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-names.js\");var _Math$trunc=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/math/trunc */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/math/trunc.js\");var _Object$defineProperties=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");var _Object$getPrototypeOf=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-prototype-of */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-prototype-of.js\");var _Object$setPrototypeOf=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/set-prototype-of */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/set-prototype-of.js\");var _entriesInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/entries */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/entries.js\");var _Object$isExtensible=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/is-extensible */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/is-extensible.js\");var _Object$preventExtensions=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/prevent-extensions */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/prevent-extensions.js\");var _Array$from=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/array/from */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js\");var _flagsInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/flags */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/flags.js\");var _Object$values=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/values */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/values.js\");var _Map=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/map.js\");var _Object$entries2=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/entries */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/entries.js\");var _Set=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/set.js\");var _valuesInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/values */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/values.js\");var _codePointAtInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/code-point-at */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/code-point-at.js\");var _Math$log=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/math/log2 */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/math/log2.js\");var _parseInt=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/parse-int */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.js\");var _parseFloat=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/parse-float */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/parse-float.js\");var _sortInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/sort */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/sort.js\");var _includesInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\");var _filterInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");var _reduceInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/reduce */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce.js\");var _trimInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/trim */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim.js\");var _findInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js\");var _Object$freeze=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/freeze */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/freeze.js\");var _Math$hypot=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/math/hypot */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/math/hypot.js\");var _Math$sign=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/math/sign */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/math/sign.js\");var _Number$isNaN=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/number/is-nan */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/number/is-nan.js\");var _String$fromCodePoint=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/string/from-code-point */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/string/from-code-point.js\");var _fillInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/fill */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/fill.js\");var _repeatInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/repeat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/repeat.js\");var _JSON$stringify=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/json/stringify */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/json/stringify.js\");var _setTimeout=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set-timeout */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/set-timeout.js\");var _endsWithInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/ends-with */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/ends-with.js\");var _WeakMap=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");var _Reflect$construct=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/reflect/construct */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/reflect/construct.js\");var _replaceAllInstanceProperty=__webpack_require__(/*! @babel/runtime-corejs3/core-js/instance/replace-all */ \"../../node_modules/@babel/runtime-corejs3/core-js/instance/replace-all.js\");var _Symbol$toStringTag=__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/symbol/to-string-tag */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol/to-string-tag.js\");var _getIteratorMethod=__webpack_require__(/*! @babel/runtime-corejs3/core-js/get-iterator-method */ \"../../node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js\");var _typeof=__webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?_Reflect$construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(_Reflect$construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof _Symbol!==\"undefined\"&&_getIteratorMethod(o)||o[\"@@iterator\"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length===\"number\"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e609){throw _e609;},f:F};}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e610){didErr=true;err=_e610;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){var _context497;if(!o)return;if(typeof o===\"string\")return _arrayLikeToArray(o,minLen);var n=_sliceInstanceProperty(_context497=Object.prototype.toString.call(o)).call(_context497,8,-1);if(n===\"Object\"&&o.constructor)n=o.constructor.name;if(n===\"Map\"||n===\"Set\")return _Array$from(o);if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");__webpack_require__(/*! core-js/modules/es.array.fill.js */ \"../../node_modules/core-js/modules/es.array.fill.js\");__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");__webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");__webpack_require__(/*! core-js/modules/es.array-buffer.constructor.js */ \"../../node_modules/core-js/modules/es.array-buffer.constructor.js\");__webpack_require__(/*! core-js/modules/es.array-buffer.slice.js */ \"../../node_modules/core-js/modules/es.array-buffer.slice.js\");__webpack_require__(/*! core-js/modules/es.data-view.js */ \"../../node_modules/core-js/modules/es.data-view.js\");__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");__webpack_require__(/*! core-js/modules/es.map.js */ \"../../node_modules/core-js/modules/es.map.js\");__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");__webpack_require__(/*! core-js/modules/es.number.to-fixed.js */ \"../../node_modules/core-js/modules/es.number.to-fixed.js\");__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");__webpack_require__(/*! core-js/modules/es.promise.js */ \"../../node_modules/core-js/modules/es.promise.js\");__webpack_require__(/*! core-js/modules/es.promise.finally.js */ \"../../node_modules/core-js/modules/es.promise.finally.js\");__webpack_require__(/*! core-js/modules/es.regexp.constructor.js */ \"../../node_modules/core-js/modules/es.regexp.constructor.js\");__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");__webpack_require__(/*! core-js/modules/es.regexp.flags.js */ \"../../node_modules/core-js/modules/es.regexp.flags.js\");__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");__webpack_require__(/*! core-js/modules/es.set.js */ \"../../node_modules/core-js/modules/es.set.js\");__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");__webpack_require__(/*! core-js/modules/es.string.match.js */ \"../../node_modules/core-js/modules/es.string.match.js\");__webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");__webpack_require__(/*! core-js/modules/es.string.search.js */ \"../../node_modules/core-js/modules/es.string.search.js\");__webpack_require__(/*! core-js/modules/es.string.bold.js */ \"../../node_modules/core-js/modules/es.string.bold.js\");__webpack_require__(/*! core-js/modules/es.string.italics.js */ \"../../node_modules/core-js/modules/es.string.italics.js\");__webpack_require__(/*! core-js/modules/es.typed-array.float32-array.js */ \"../../node_modules/core-js/modules/es.typed-array.float32-array.js\");__webpack_require__(/*! core-js/modules/es.typed-array.float64-array.js */ \"../../node_modules/core-js/modules/es.typed-array.float64-array.js\");__webpack_require__(/*! core-js/modules/es.typed-array.int8-array.js */ \"../../node_modules/core-js/modules/es.typed-array.int8-array.js\");__webpack_require__(/*! core-js/modules/es.typed-array.int16-array.js */ \"../../node_modules/core-js/modules/es.typed-array.int16-array.js\");__webpack_require__(/*! core-js/modules/es.typed-array.int32-array.js */ \"../../node_modules/core-js/modules/es.typed-array.int32-array.js\");__webpack_require__(/*! core-js/modules/es.typed-array.uint8-array.js */ \"../../node_modules/core-js/modules/es.typed-array.uint8-array.js\");__webpack_require__(/*! core-js/modules/es.typed-array.uint8-clamped-array.js */ \"../../node_modules/core-js/modules/es.typed-array.uint8-clamped-array.js\");__webpack_require__(/*! core-js/modules/es.typed-array.uint16-array.js */ \"../../node_modules/core-js/modules/es.typed-array.uint16-array.js\");__webpack_require__(/*! core-js/modules/es.typed-array.uint32-array.js */ \"../../node_modules/core-js/modules/es.typed-array.uint32-array.js\");__webpack_require__(/*! core-js/modules/es.typed-array.copy-within.js */ \"../../node_modules/core-js/modules/es.typed-array.copy-within.js\");__webpack_require__(/*! core-js/modules/es.typed-array.every.js */ \"../../node_modules/core-js/modules/es.typed-array.every.js\");__webpack_require__(/*! core-js/modules/es.typed-array.fill.js */ \"../../node_modules/core-js/modules/es.typed-array.fill.js\");__webpack_require__(/*! core-js/modules/es.typed-array.filter.js */ \"../../node_modules/core-js/modules/es.typed-array.filter.js\");__webpack_require__(/*! core-js/modules/es.typed-array.find.js */ \"../../node_modules/core-js/modules/es.typed-array.find.js\");__webpack_require__(/*! core-js/modules/es.typed-array.find-index.js */ \"../../node_modules/core-js/modules/es.typed-array.find-index.js\");__webpack_require__(/*! core-js/modules/es.typed-array.for-each.js */ \"../../node_modules/core-js/modules/es.typed-array.for-each.js\");__webpack_require__(/*! core-js/modules/es.typed-array.includes.js */ \"../../node_modules/core-js/modules/es.typed-array.includes.js\");__webpack_require__(/*! core-js/modules/es.typed-array.index-of.js */ \"../../node_modules/core-js/modules/es.typed-array.index-of.js\");__webpack_require__(/*! core-js/modules/es.typed-array.iterator.js */ \"../../node_modules/core-js/modules/es.typed-array.iterator.js\");__webpack_require__(/*! core-js/modules/es.typed-array.join.js */ \"../../node_modules/core-js/modules/es.typed-array.join.js\");__webpack_require__(/*! core-js/modules/es.typed-array.last-index-of.js */ \"../../node_modules/core-js/modules/es.typed-array.last-index-of.js\");__webpack_require__(/*! core-js/modules/es.typed-array.map.js */ \"../../node_modules/core-js/modules/es.typed-array.map.js\");__webpack_require__(/*! core-js/modules/es.typed-array.reduce.js */ \"../../node_modules/core-js/modules/es.typed-array.reduce.js\");__webpack_require__(/*! core-js/modules/es.typed-array.reduce-right.js */ \"../../node_modules/core-js/modules/es.typed-array.reduce-right.js\");__webpack_require__(/*! core-js/modules/es.typed-array.reverse.js */ \"../../node_modules/core-js/modules/es.typed-array.reverse.js\");__webpack_require__(/*! core-js/modules/es.typed-array.set.js */ \"../../node_modules/core-js/modules/es.typed-array.set.js\");__webpack_require__(/*! core-js/modules/es.typed-array.slice.js */ \"../../node_modules/core-js/modules/es.typed-array.slice.js\");__webpack_require__(/*! core-js/modules/es.typed-array.some.js */ \"../../node_modules/core-js/modules/es.typed-array.some.js\");__webpack_require__(/*! core-js/modules/es.typed-array.sort.js */ \"../../node_modules/core-js/modules/es.typed-array.sort.js\");__webpack_require__(/*! core-js/modules/es.typed-array.subarray.js */ \"../../node_modules/core-js/modules/es.typed-array.subarray.js\");__webpack_require__(/*! core-js/modules/es.typed-array.to-locale-string.js */ \"../../node_modules/core-js/modules/es.typed-array.to-locale-string.js\");__webpack_require__(/*! core-js/modules/es.typed-array.to-string.js */ \"../../node_modules/core-js/modules/es.typed-array.to-string.js\");__webpack_require__(/*! core-js/modules/esnext.promise.all-settled.js */ \"../../node_modules/core-js/modules/esnext.promise.all-settled.js\");__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");/**\n * @licstart The following is the entire license notice for the\n * JavaScript code in this page\n *\n * Copyright 2022 Mozilla Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * @licend The above is the entire license notice for the\n * JavaScript code in this page\n */!function webpackUniversalModuleDefinition(e,t){\"object\"==( false?0:_typeof(exports))&&\"object\"==( false?0:_typeof(module))?module.exports=t(): true?!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (t),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)):0;}(_globalThis,function(){return function(){var e=[,function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.WorkerTask=t.WorkerMessageHandler=void 0;var a=r(2),n=r(130),i=r(131),s=r(133),o=r(196),c=r(190),l=r(4),h=r(227),u=r(228);var WorkerTask=/*#__PURE__*/function(){function WorkerTask(e){_classCallCheck(this,WorkerTask);this.name=e;this.terminated=!1;this._capability=(0,a.createPromiseCapability)();}_createClass(WorkerTask,[{key:\"finished\",get:function get(){return this._capability.promise;}},{key:\"finish\",value:function finish(){this._capability.resolve();}},{key:\"terminate\",value:function terminate(){this.terminated=!0;}},{key:\"ensureNotTerminated\",value:function ensureNotTerminated(){if(this.terminated)throw new Error(\"Worker task was terminated\");}}]);return WorkerTask;}();t.WorkerTask=WorkerTask;var WorkerMessageHandler=/*#__PURE__*/function(){function WorkerMessageHandler(){_classCallCheck(this,WorkerMessageHandler);}_createClass(WorkerMessageHandler,null,[{key:\"setup\",value:function setup(e,t){var r=!1;e.on(\"test\",function wphSetupTest(t){if(!r){r=!0;e.send(\"test\",t instanceof Uint8Array);}});e.on(\"configure\",function wphConfigure(e){(0,a.setVerbosityLevel)(e.verbosity);});e.on(\"GetDocRequest\",function wphSetupDoc(e){return WorkerMessageHandler.createDocumentHandler(e,t);});}},{key:\"createDocumentHandler\",value:function createDocumentHandler(e,t){var r,d=!1,f=null;var g=[],p=(0,a.getVerbosityLevel)(),m=e.apiVersion,b=\"2.16.105\";if(m!==b)throw new Error(\"The API version \\\"\".concat(m,\"\\\" does not match the Worker version \\\"2.16.105\\\".\"));var y=[];for(var _e2 in[])y.push(_e2);if(y.length)throw new Error(\"The `Array.prototype` contains unexpected enumerable properties: \"+y.join(\", \")+\"; thus breaking e.g. `for...in` iteration of `Array`s.\");if(\"undefined\"==typeof ReadableStream){var _e3=\"The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `ReadableStream`); \";if(l.isNodeJS)throw new Error(_e3+\"please use a `legacy`-build instead.\");throw new Error(_e3+\"please update to a supported browser.\");}var w=e.docId,S=e.docBaseUrl,x=e.docId+\"_worker\";var k=new h.MessageHandler(x,w,t);function ensureNotTerminated(){if(d)throw new Error(\"Worker was terminated\");}function startWorkerTask(e){g.push(e);}function finishWorkerTask(e){e.finish();var t=_indexOfInstanceProperty(g).call(g,e);_spliceInstanceProperty(g).call(g,t,1);}function loadDocument(_x){return _loadDocument.apply(this,arguments);}function _loadDocument(){_loadDocument=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(e){var t,_e12,_yield$Promise$all,_yield$Promise$all2,a,n;return _regeneratorRuntime.wrap(function _callee$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return r.ensureDoc(\"checkHeader\");case 2:_context3.next=4;return r.ensureDoc(\"parseStartXRef\");case 4:_context3.next=6;return r.ensureDoc(\"parse\",[e]);case 6:_context3.next=8;return r.ensureDoc(\"checkFirstPage\",[e]);case 8:_context3.next=10;return r.ensureDoc(\"checkLastPage\",[e]);case 10:_context3.next=12;return r.ensureDoc(\"isPureXfa\");case 12:t=_context3.sent;if(!t){_context3.next=18;break;}_e12=new WorkerTask(\"loadXfaFonts\");startWorkerTask(_e12);_context3.next=18;return _Promise.all([r.loadXfaFonts(k,_e12).catch(function(e){}).then(function(){return finishWorkerTask(_e12);}),r.loadXfaImages()]);case 18:_context3.next=20;return _Promise.all([r.ensureDoc(\"numPages\"),r.ensureDoc(\"fingerprints\")]);case 20:_yield$Promise$all=_context3.sent;_yield$Promise$all2=_slicedToArray(_yield$Promise$all,2);a=_yield$Promise$all2[0];n=_yield$Promise$all2[1];_context3.t0=a;_context3.t1=n;if(!t){_context3.next=32;break;}_context3.next=29;return r.ensureDoc(\"htmlForXfa\");case 29:_context3.t2=_context3.sent;_context3.next=33;break;case 32:_context3.t2=null;case 33:_context3.t3=_context3.t2;return _context3.abrupt(\"return\",{numPages:_context3.t0,fingerprints:_context3.t1,htmlForXfa:_context3.t3});case 35:case\"end\":return _context3.stop();}},_callee);}));return _loadDocument.apply(this,arguments);}function getPdfManager(e,t,r){var n=(0,a.createPromiseCapability)();var i;var o=e.source;if(o.data){try{i=new s.LocalPdfManager(w,o.data,o.password,k,t,r,S);n.resolve(i);}catch(e){n.reject(e);}return n.promise;}var c,l=[];try{c=new u.PDFWorkerStream(k);}catch(e){n.reject(e);return n.promise;}var h=c.getFullReader();h.headersReady.then(function(){if(!h.isRangeSupported)return;var e=o.disableAutoFetch||h.isStreamingSupported;i=new s.NetworkPdfManager(w,c,{msgHandler:k,password:o.password,length:h.contentLength,disableAutoFetch:e,rangeChunkSize:o.rangeChunkSize},t,r,S);for(var _i=0,_l=l;_i<_l.length;_i++){var _e4=_l[_i];i.sendProgressiveData(_e4);}l=[];n.resolve(i);f=null;}).catch(function(e){n.reject(e);f=null;});var d=0;new _Promise(function(e,c){var readChunk=function readChunk(e){var u=e.value,g=e.done;try{ensureNotTerminated();if(g){i||function(){var e=(0,a.arraysToBytes)(l);o.length&&e.length!==o.length&&(0,a.warn)(\"reported HTTP length is different from actual\");try{i=new s.LocalPdfManager(w,e,o.password,k,t,r,S);n.resolve(i);}catch(e){n.reject(e);}l=[];}();f=null;return;}d+=(0,a.arrayByteLength)(u);h.isStreamingSupported||k.send(\"DocProgress\",{loaded:d,total:Math.max(d,h.contentLength||0)});i?i.sendProgressiveData(u):l.push(u);h.read().then(readChunk,c);}catch(e){c(e);}};h.read().then(readChunk,c);}).catch(function(e){n.reject(e);f=null;});f=function f(e){c.cancelAllRequests(e);};return n.promise;}k.on(\"GetPage\",function wphSetupGetPage(e){return r.getPage(e.pageIndex).then(function(e){return _Promise.all([r.ensure(e,\"rotate\"),r.ensure(e,\"ref\"),r.ensure(e,\"userUnit\"),r.ensure(e,\"view\")]).then(function(e){var _e5=_slicedToArray(e,4),t=_e5[0],r=_e5[1],a=_e5[2],n=_e5[3];return{rotate:t,ref:r,userUnit:a,view:n};});});});k.on(\"GetPageIndex\",function wphSetupGetPageIndex(e){var t=n.Ref.get(e.num,e.gen);return r.ensureCatalog(\"getPageIndex\",[t]);});k.on(\"GetDestinations\",function wphSetupGetDestinations(e){return r.ensureCatalog(\"destinations\");});k.on(\"GetDestination\",function wphSetupGetDestination(e){return r.ensureCatalog(\"getDestination\",[e.id]);});k.on(\"GetPageLabels\",function wphSetupGetPageLabels(e){return r.ensureCatalog(\"pageLabels\");});k.on(\"GetPageLayout\",function wphSetupGetPageLayout(e){return r.ensureCatalog(\"pageLayout\");});k.on(\"GetPageMode\",function wphSetupGetPageMode(e){return r.ensureCatalog(\"pageMode\");});k.on(\"GetViewerPreferences\",function(e){return r.ensureCatalog(\"viewerPreferences\");});k.on(\"GetOpenAction\",function(e){return r.ensureCatalog(\"openAction\");});k.on(\"GetAttachments\",function wphSetupGetAttachments(e){return r.ensureCatalog(\"attachments\");});k.on(\"GetJavaScript\",function wphSetupGetJavaScript(e){return r.ensureCatalog(\"javaScript\");});k.on(\"GetDocJSActions\",function wphSetupGetDocJSActions(e){return r.ensureCatalog(\"jsActions\");});k.on(\"GetPageJSActions\",function(e){var t=e.pageIndex;return r.getPage(t).then(function(e){return r.ensure(e,\"jsActions\");});});k.on(\"GetOutline\",function wphSetupGetOutline(e){return r.ensureCatalog(\"documentOutline\");});k.on(\"GetOptionalContentConfig\",function(e){return r.ensureCatalog(\"optionalContentConfig\");});k.on(\"GetPermissions\",function(e){return r.ensureCatalog(\"permissions\");});k.on(\"GetMetadata\",function wphSetupGetMetadata(e){return _Promise.all([r.ensureDoc(\"documentInfo\"),r.ensureCatalog(\"metadata\")]);});k.on(\"GetMarkInfo\",function wphSetupGetMarkInfo(e){return r.ensureCatalog(\"markInfo\");});k.on(\"GetData\",function wphSetupGetData(e){r.requestLoadedStream();return r.onLoadedStream().then(function(e){return e.bytes;});});k.on(\"GetAnnotations\",function(e){var t=e.pageIndex,a=e.intent;return r.getPage(t).then(function(e){var r=new WorkerTask(\"GetAnnotations: page \".concat(t));startWorkerTask(r);return e.getAnnotationsData(k,r,a).then(function(e){finishWorkerTask(r);return e;},function(e){finishWorkerTask(r);});});});k.on(\"GetFieldObjects\",function(e){return r.ensureDoc(\"fieldObjects\");});k.on(\"HasJSActions\",function(e){return r.ensureDoc(\"hasJSActions\");});k.on(\"GetCalculationOrderIds\",function(e){return r.ensureDoc(\"calculationOrderIds\");});k.on(\"SaveDocument\",function(e){var t=e.isPureXfa,s=e.numPages,o=e.annotationStorage,l=e.filename;r.requestLoadedStream();var h=t?null:(0,i.getNewAnnotationsMap)(o),u=[r.onLoadedStream(),r.ensureCatalog(\"acroForm\"),r.ensureCatalog(\"acroFormRef\"),r.ensureDoc(\"xref\"),r.ensureDoc(\"startXRef\")];if(h){var _iterator=_createForOfIteratorHelper(h),_step;try{var _loop=function _loop(){var _step$value=_slicedToArray(_step.value,2),e=_step$value[0],t=_step$value[1];u.push(r.getPage(e).then(function(r){var a=new WorkerTask(\"Save (editor): page \".concat(e));return r.saveNewAnnotations(k,a,t).finally(function(){finishWorkerTask(a);});}));};for(_iterator.s();!(_step=_iterator.n()).done;){_loop();}}catch(err){_iterator.e(err);}finally{_iterator.f();}}if(t)u.push(r.serializeXfaData(o));else{var _loop2=function _loop2(_e6){u.push(r.getPage(_e6).then(function(t){var r=new WorkerTask(\"Save: page \".concat(_e6));return t.save(k,r,o).finally(function(){finishWorkerTask(r);});}));};for(var _e6=0;_e6<s;_e6++){_loop2(_e6);}}return _Promise.all(u).then(function(e){var _e7=_toArray(e),r=_e7[0],i=_e7[1],s=_e7[2],o=_e7[3],h=_e7[4],u=_sliceInstanceProperty(_e7).call(_e7,5),d=[],f=null;if(t){f=u[0];if(!f)return r.bytes;}else{d=_flatInstanceProperty(u).call(u,2);if(0===d.length)return r.bytes;}var g=i instanceof n.Dict&&i.get(\"XFA\")||null;var p=null,m=!1;if(Array.isArray(g)){for(var _e8=0,_t=g.length;_e8<_t;_e8+=2)if(\"datasets\"===g[_e8]){p=g[_e8+1];s=null;m=!0;}null===p&&(p=o.getNewRef());}else if(g){s=null;(0,a.warn)(\"Unsupported XFA type.\");}var b=Object.create(null);if(o.trailer){var _e9=Object.create(null),_t2=o.trailer.get(\"Info\")||null;_t2 instanceof n.Dict&&_t2.forEach(function(t,r){\"string\"==typeof r&&(_e9[t]=(0,a.stringToPDFString)(r));});b={rootRef:o.trailer.getRaw(\"Root\")||null,encryptRef:o.trailer.getRaw(\"Encrypt\")||null,newRef:o.getNewRef(),infoRef:o.trailer.getRaw(\"Info\")||null,info:_e9,fileIds:o.trailer.get(\"ID\")||null,startXRef:h,filename:l};}o.resetNewRef();return(0,c.incrementalUpdate)({originalData:r.bytes,xrefInfo:b,newRefs:d,xref:o,hasXfa:!!g,xfaDatasetsRef:p,hasXfaDatasetsEntry:m,acroFormRef:s,acroForm:i,xfaData:f});});});k.on(\"GetOperatorList\",function wphSetupRenderPage(e,t){var n=e.pageIndex;r.getPage(n).then(function(r){var i=new WorkerTask(\"GetOperatorList: page \".concat(n));startWorkerTask(i);var s=p>=a.VerbosityLevel.INFOS?Date.now():0;r.getOperatorList({handler:k,sink:t,task:i,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage}).then(function(e){var _context,_context2;finishWorkerTask(i);s&&(0,a.info)(_concatInstanceProperty(_context=_concatInstanceProperty(_context2=\"page=\".concat(n+1,\" - getOperatorList: time=\")).call(_context2,Date.now()-s,\"ms, len=\")).call(_context,e.length));t.close();},function(e){finishWorkerTask(i);if(!i.terminated){k.send(\"UnsupportedFeature\",{featureId:a.UNSUPPORTED_FEATURES.errorOperatorList});t.error(e);}});});});k.on(\"GetTextContent\",function wphExtractText(e,t){var n=e.pageIndex;r.getPage(n).then(function(r){var i=new WorkerTask(\"GetTextContent: page \"+n);startWorkerTask(i);var s=p>=a.VerbosityLevel.INFOS?Date.now():0;r.extractTextContent({handler:k,task:i,sink:t,includeMarkedContent:e.includeMarkedContent,combineTextItems:e.combineTextItems}).then(function(){finishWorkerTask(i);s&&(0,a.info)(\"page=\".concat(n+1,\" - getTextContent: time=\")+(Date.now()-s)+\"ms\");t.close();},function(e){finishWorkerTask(i);i.terminated||t.error(e);});});});k.on(\"GetStructTree\",function wphGetStructTree(e){return r.getPage(e.pageIndex).then(function(e){return r.ensure(e,\"getStructTree\");});});k.on(\"FontFallback\",function(e){return r.fontFallback(e.id,k);});k.on(\"Cleanup\",function wphCleanup(e){return r.cleanup(!0);});k.on(\"Terminate\",function wphTerminate(e){d=!0;var t=[];if(r){r.terminate(new a.AbortException(\"Worker was terminated.\"));var _e10=r.cleanup();t.push(_e10);r=null;}else(0,o.clearGlobalCaches)();f&&f(new a.AbortException(\"Worker was terminated.\"));for(var _i2=0,_g=g;_i2<_g.length;_i2++){var _e11=_g[_i2];t.push(_e11.finished);_e11.terminate();}return _Promise.all(t).then(function(){k.destroy();k=null;});});k.on(\"Ready\",function wphReady(t){!function setupDoc(e){function onSuccess(e){ensureNotTerminated();k.send(\"GetDoc\",{pdfInfo:e});}function onFailure(e){ensureNotTerminated();if(e instanceof a.PasswordException){var _t3=new WorkerTask(\"PasswordException: response \".concat(e.code));startWorkerTask(_t3);k.sendWithPromise(\"PasswordRequest\",e).then(function(e){var a=e.password;finishWorkerTask(_t3);r.updatePassword(a);pdfManagerReady();}).catch(function(){finishWorkerTask(_t3);k.send(\"DocException\",e);});}else e instanceof a.InvalidPDFException||e instanceof a.MissingPDFException||e instanceof a.UnexpectedResponseException||e instanceof a.UnknownErrorException?k.send(\"DocException\",e):k.send(\"DocException\",new a.UnknownErrorException(e.message,e.toString()));}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,function(e){ensureNotTerminated();if(e instanceof i.XRefParseException){r.requestLoadedStream();r.onLoadedStream().then(function(){ensureNotTerminated();loadDocument(!0).then(onSuccess,onFailure);});}else onFailure(e);});}ensureNotTerminated();getPdfManager(e,{maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported,fontExtraProperties:e.fontExtraProperties,useSystemFonts:e.useSystemFonts,cMapUrl:e.cMapUrl,standardFontDataUrl:e.standardFontDataUrl},e.enableXfa).then(function(e){if(d){e.terminate(new a.AbortException(\"Worker was terminated.\"));throw new Error(\"Worker was terminated\");}r=e;r.onLoadedStream().then(function(e){k.send(\"DataLoaded\",{length:e.bytes.byteLength});});}).then(pdfManagerReady,onFailure);}(e);e=null;});return x;}},{key:\"initializeFromPort\",value:function initializeFromPort(e){var t=new h.MessageHandler(\"worker\",\"main\",e);WorkerMessageHandler.setup(t,e);t.send(\"ready\",null);}}]);return WorkerMessageHandler;}();t.WorkerMessageHandler=WorkerMessageHandler;\"undefined\"==typeof window&&!l.isNodeJS&&\"undefined\"!=typeof self&&function isMessagePort(e){return\"function\"==typeof e.postMessage&&\"onmessage\"in e;}(self)&&WorkerMessageHandler.initializeFromPort(self);},function(e,t,r){\"use strict\";var _context9,_context10;_Object$defineProperty(t,\"__esModule\",{value:!0});t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.UNSUPPORTED_FEATURES=t.TextRenderingMode=t.StreamType=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FontType=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0;t.arrayByteLength=arrayByteLength;t.arraysToBytes=function arraysToBytes(e){var t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];var r=0;for(var _a=0;_a<t;_a++)r+=arrayByteLength(e[_a]);var a=0;var n=new Uint8Array(r);for(var _r=0;_r<t;_r++){var _t4=e[_r];_t4 instanceof Uint8Array||(_t4=\"string\"==typeof _t4?stringToBytes(_t4):new Uint8Array(_t4));var _i3=_t4.byteLength;n.set(_t4,a);a+=_i3;}return n;};t.assert=function assert(e,t){e||unreachable(t);};t.bytesToString=function bytesToString(e){\"object\"==_typeof(e)&&null!==e&&void 0!==e.length||unreachable(\"Invalid argument for bytesToString\");var t=e.length,r=8192;if(t<r)return String.fromCharCode.apply(null,e);var a=[];for(var _n=0;_n<t;_n+=r){var _i4=Math.min(_n+r,t),_s=e.subarray(_n,_i4);a.push(String.fromCharCode.apply(null,_s));}return a.join(\"\");};t.createPromiseCapability=function createPromiseCapability(){var e=Object.create(null);var t=!1;_Object$defineProperty(e,\"settled\",{get:function get(){return t;}});e.promise=new _Promise(function(r,a){e.resolve=function(e){t=!0;r(e);};e.reject=function(e){t=!0;a(e);};});return e;};t.createValidAbsoluteUrl=function createValidAbsoluteUrl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(r&&\"string\"==typeof e){if(r.addDefaultProtocol&&_startsWithInstanceProperty(e).call(e,\"www.\")){var _t5=e.match(/\\./g);_t5&&_t5.length>=2&&(e=\"http://\".concat(e));}if(r.tryConvertEncoding)try{e=stringToUTF8String(e);}catch(e){}}var _a2=t?new _URL(e,t):new _URL(e);if(_isValidProtocol(_a2))return _a2;}catch(e){}return null;};t.escapeString=function escapeString(e){return e.replace(/([()\\\\\\n\\r])/g,function(e){return\"\\n\"===e?\"\\\\n\":\"\\r\"===e?\"\\\\r\":\"\\\\\".concat(e);});};t.getModificationDate=function getModificationDate(){var _context4,_context5,_context6,_context7,_context8;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date();var t=[e.getUTCFullYear().toString(),_padStartInstanceProperty(_context4=(e.getUTCMonth()+1).toString()).call(_context4,2,\"0\"),_padStartInstanceProperty(_context5=e.getUTCDate().toString()).call(_context5,2,\"0\"),_padStartInstanceProperty(_context6=e.getUTCHours().toString()).call(_context6,2,\"0\"),_padStartInstanceProperty(_context7=e.getUTCMinutes().toString()).call(_context7,2,\"0\"),_padStartInstanceProperty(_context8=e.getUTCSeconds().toString()).call(_context8,2,\"0\")];return t.join(\"\");};t.getVerbosityLevel=function getVerbosityLevel(){return n;};t.info=function info(e){n>=a.INFOS&&console.log(\"Info: \".concat(e));};t.isArrayBuffer=function isArrayBuffer(e){return\"object\"==_typeof(e)&&null!==e&&void 0!==e.byteLength;};t.isArrayEqual=function isArrayEqual(e,t){if(e.length!==t.length)return!1;for(var _r2=0,_a3=e.length;_r2<_a3;_r2++)if(e[_r2]!==t[_r2])return!1;return!0;};t.isAscii=function isAscii(e){return /^[\\x00-\\x7F]*$/.test(e);};t.objectFromMap=function objectFromMap(e){var t=Object.create(null);var _iterator2=_createForOfIteratorHelper(e),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _step2$value=_slicedToArray(_step2.value,2),_r3=_step2$value[0],_a4=_step2$value[1];t[_r3]=_a4;}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}return t;};t.objectSize=function objectSize(e){return _Object$keys(e).length;};t.setVerbosityLevel=function setVerbosityLevel(e){_Number$isInteger(e)&&(n=e);};t.shadow=shadow;t.string32=function string32(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e);};t.stringToBytes=stringToBytes;t.stringToPDFString=function stringToPDFString(e){if(e[0]>=\"ï\"){var _t6;\"þ\"===e[0]&&\"ÿ\"===e[1]?_t6=\"utf-16be\":\"ÿ\"===e[0]&&\"þ\"===e[1]?_t6=\"utf-16le\":\"ï\"===e[0]&&\"»\"===e[1]&&\"¿\"===e[2]&&(_t6=\"utf-8\");if(_t6)try{var _r4=new TextDecoder(_t6,{fatal:!0}),_a5=stringToBytes(e);return _r4.decode(_a5);}catch(e){warn(\"stringToPDFString: \\\"\".concat(e,\"\\\".\"));}}var t=[];for(var _r5=0,_a6=e.length;_r5<_a6;_r5++){var _a7=o[e.charCodeAt(_r5)];t.push(_a7?String.fromCharCode(_a7):e.charAt(_r5));}return t.join(\"\");};t.stringToUTF16BEString=function stringToUTF16BEString(e){var t=[\"þÿ\"];for(var _r6=0,_a8=e.length;_r6<_a8;_r6++){var _a9=e.charCodeAt(_r6);t.push(String.fromCharCode(_a9>>8&255),String.fromCharCode(255&_a9));}return t.join(\"\");};t.stringToUTF8String=stringToUTF8String;t.unreachable=unreachable;t.utf8StringToString=function utf8StringToString(e){return unescape(encodeURIComponent(e));};t.warn=warn;r(3);t.IDENTITY_MATRIX=[1,0,0,1,0,0];t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];t.LINE_FACTOR=1.35;t.LINE_DESCENT_FACTOR=.35;t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};t.AnnotationEditorPrefix=\"pdfjs_internal_editor_\";t.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,INK:15};t.AnnotationEditorParamsType={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13};t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};t.AnnotationStateModelType={MARKED:\"Marked\",REVIEW:\"Review\"};t.AnnotationMarkedState={MARKED:\"Marked\",UNMARKED:\"Unmarked\"};t.AnnotationReviewState={ACCEPTED:\"Accepted\",REJECTED:\"Rejected\",CANCELLED:\"Cancelled\",COMPLETED:\"Completed\",NONE:\"None\"};t.AnnotationReplyType={GROUP:\"Group\",REPLY:\"R\"};t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationActionEventType={E:\"Mouse Enter\",X:\"Mouse Exit\",D:\"Mouse Down\",U:\"Mouse Up\",Fo:\"Focus\",Bl:\"Blur\",PO:\"PageOpen\",PC:\"PageClose\",PV:\"PageVisible\",PI:\"PageInvisible\",K:\"Keystroke\",F:\"Format\",V:\"Validate\",C:\"Calculate\"};t.DocumentActionEventType={WC:\"WillClose\",WS:\"WillSave\",DS:\"DidSave\",WP:\"WillPrint\",DP:\"DidPrint\"};t.PageActionEventType={O:\"PageOpen\",C:\"PageClose\"};t.StreamType={UNKNOWN:\"UNKNOWN\",FLATE:\"FLATE\",LZW:\"LZW\",DCT:\"DCT\",JPX:\"JPX\",JBIG:\"JBIG\",A85:\"A85\",AHX:\"AHX\",CCF:\"CCF\",RLX:\"RLX\"};t.FontType={UNKNOWN:\"UNKNOWN\",TYPE1:\"TYPE1\",TYPE1STANDARD:\"TYPE1STANDARD\",TYPE1C:\"TYPE1C\",CIDFONTTYPE0:\"CIDFONTTYPE0\",CIDFONTTYPE0C:\"CIDFONTTYPE0C\",TRUETYPE:\"TRUETYPE\",CIDFONTTYPE2:\"CIDFONTTYPE2\",TYPE3:\"TYPE3\",OPENTYPE:\"OPENTYPE\",TYPE0:\"TYPE0\",MMTYPE1:\"MMTYPE1\"};var a={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=a;t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2};t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.UNSUPPORTED_FEATURES={unknown:\"unknown\",forms:\"forms\",javaScript:\"javaScript\",signatures:\"signatures\",smask:\"smask\",shadingPattern:\"shadingPattern\",font:\"font\",errorTilingPattern:\"errorTilingPattern\",errorExtGState:\"errorExtGState\",errorXObject:\"errorXObject\",errorFontLoadType3:\"errorFontLoadType3\",errorFontState:\"errorFontState\",errorFontMissing:\"errorFontMissing\",errorFontTranslate:\"errorFontTranslate\",errorColorSpace:\"errorColorSpace\",errorOperatorList:\"errorOperatorList\",errorFontToUnicode:\"errorFontToUnicode\",errorFontLoadNative:\"errorFontLoadNative\",errorFontBuildPath:\"errorFontBuildPath\",errorFontGetPath:\"errorFontGetPath\",errorMarkedContent:\"errorMarkedContent\",errorContentSubStream:\"errorContentSubStream\"};t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var n=a.WARNINGS;function warn(e){n>=a.WARNINGS&&console.log(\"Warning: \".concat(e));}function unreachable(e){throw new Error(e);}function _isValidProtocol(e){if(!e)return!1;switch(e.protocol){case\"http:\":case\"https:\":case\"ftp:\":case\"mailto:\":case\"tel:\":return!0;default:return!1;}}function shadow(e,t,r){_Object$defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1});return r;}var i=function BaseExceptionClosure(){function BaseException(e,t){this.constructor===BaseException&&unreachable(\"Cannot initialize BaseException.\");this.message=e;this.name=t;}BaseException.prototype=new Error();BaseException.constructor=BaseException;return BaseException;}();t.BaseException=i;t.PasswordException=/*#__PURE__*/function(_i5){_inherits(PasswordException,_i5);function PasswordException(e,t){var _this;_classCallCheck(this,PasswordException);_this=_callSuper(this,PasswordException,[e,\"PasswordException\"]);_this.code=t;return _this;}return _createClass(PasswordException);}(i);t.UnknownErrorException=/*#__PURE__*/function(_i6){_inherits(UnknownErrorException,_i6);function UnknownErrorException(e,t){var _this2;_classCallCheck(this,UnknownErrorException);_this2=_callSuper(this,UnknownErrorException,[e,\"UnknownErrorException\"]);_this2.details=t;return _this2;}return _createClass(UnknownErrorException);}(i);t.InvalidPDFException=/*#__PURE__*/function(_i7){_inherits(InvalidPDFException,_i7);function InvalidPDFException(e){_classCallCheck(this,InvalidPDFException);return _callSuper(this,InvalidPDFException,[e,\"InvalidPDFException\"]);}return _createClass(InvalidPDFException);}(i);t.MissingPDFException=/*#__PURE__*/function(_i8){_inherits(MissingPDFException,_i8);function MissingPDFException(e){_classCallCheck(this,MissingPDFException);return _callSuper(this,MissingPDFException,[e,\"MissingPDFException\"]);}return _createClass(MissingPDFException);}(i);t.UnexpectedResponseException=/*#__PURE__*/function(_i9){_inherits(UnexpectedResponseException,_i9);function UnexpectedResponseException(e,t){var _this3;_classCallCheck(this,UnexpectedResponseException);_this3=_callSuper(this,UnexpectedResponseException,[e,\"UnexpectedResponseException\"]);_this3.status=t;return _this3;}return _createClass(UnexpectedResponseException);}(i);t.FormatError=/*#__PURE__*/function(_i10){_inherits(FormatError,_i10);function FormatError(e){_classCallCheck(this,FormatError);return _callSuper(this,FormatError,[e,\"FormatError\"]);}return _createClass(FormatError);}(i);t.AbortException=/*#__PURE__*/function(_i11){_inherits(AbortException,_i11);function AbortException(e){_classCallCheck(this,AbortException);return _callSuper(this,AbortException,[e,\"AbortException\"]);}return _createClass(AbortException);}(i);function stringToBytes(e){\"string\"!=typeof e&&unreachable(\"Invalid argument for stringToBytes\");var t=e.length,r=new Uint8Array(t);for(var _a10=0;_a10<t;++_a10)r[_a10]=255&e.charCodeAt(_a10);return r;}function arrayByteLength(e){if(void 0!==e.length)return e.length;if(void 0!==e.byteLength)return e.byteLength;unreachable(\"Invalid argument for arrayByteLength\");}t.FeatureTest=/*#__PURE__*/function(){function FeatureTest(){_classCallCheck(this,FeatureTest);}_createClass(FeatureTest,null,[{key:\"isLittleEndian\",get:function get(){return shadow(this,\"isLittleEndian\",function isLittleEndian(){var e=new Uint8Array(4);e[0]=1;return 1===new Uint32Array(e.buffer,0,1)[0];}());}},{key:\"isEvalSupported\",get:function get(){return shadow(this,\"isEvalSupported\",function isEvalSupported(){try{new Function(\"\");return!0;}catch(e){return!1;}}());}},{key:\"isOffscreenCanvasSupported\",get:function get(){return shadow(this,\"isOffscreenCanvasSupported\",\"undefined\"!=typeof OffscreenCanvas);}}]);return FeatureTest;}();var s=_mapInstanceProperty(_context9=_toConsumableArray(_keysInstanceProperty(_context10=Array(256)).call(_context10))).call(_context9,function(e){var _context11;return _padStartInstanceProperty(_context11=e.toString(16)).call(_context11,2,\"0\");});var Util=/*#__PURE__*/function(){function Util(){_classCallCheck(this,Util);}_createClass(Util,null,[{key:\"makeHexColor\",value:function makeHexColor(e,t,r){var _context12,_context13;return _concatInstanceProperty(_context12=_concatInstanceProperty(_context13=\"#\".concat(s[e])).call(_context13,s[t])).call(_context12,s[r]);}},{key:\"scaleMinMax\",value:function scaleMinMax(e,t){var r;if(e[0]){if(e[0]<0){r=t[0];t[0]=t[1];t[1]=r;}t[0]*=e[0];t[1]*=e[0];if(e[3]<0){r=t[2];t[2]=t[3];t[3]=r;}t[2]*=e[3];t[3]*=e[3];}else{r=t[0];t[0]=t[2];t[2]=r;r=t[1];t[1]=t[3];t[3]=r;if(e[1]<0){r=t[2];t[2]=t[3];t[3]=r;}t[2]*=e[1];t[3]*=e[1];if(e[2]<0){r=t[0];t[0]=t[1];t[1]=r;}t[0]*=e[2];t[1]*=e[2];}t[0]+=e[4];t[1]+=e[4];t[2]+=e[5];t[3]+=e[5];}},{key:\"transform\",value:function transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]];}},{key:\"applyTransform\",value:function applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]];}},{key:\"applyInverseTransform\",value:function applyInverseTransform(e,t){var r=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r];}},{key:\"getAxialAlignedBoundingBox\",value:function getAxialAlignedBoundingBox(e,t){var r=Util.applyTransform(e,t),a=Util.applyTransform(_sliceInstanceProperty(e).call(e,2,4),t),n=Util.applyTransform([e[0],e[3]],t),i=Util.applyTransform([e[2],e[1]],t);return[Math.min(r[0],a[0],n[0],i[0]),Math.min(r[1],a[1],n[1],i[1]),Math.max(r[0],a[0],n[0],i[0]),Math.max(r[1],a[1],n[1],i[1])];}},{key:\"inverseTransform\",value:function inverseTransform(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t];}},{key:\"apply3dTransform\",value:function apply3dTransform(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]];}},{key:\"singularValueDecompose2dScale\",value:function singularValueDecompose2dScale(e){var t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],a=e[0]*t[1]+e[1]*t[3],n=e[2]*t[0]+e[3]*t[2],i=e[2]*t[1]+e[3]*t[3],s=(r+i)/2,o=Math.sqrt(Math.pow(r+i,2)-4*(r*i-n*a))/2,c=s+o||1,l=s-o||1;return[Math.sqrt(c),Math.sqrt(l)];}},{key:\"normalizeRect\",value:function normalizeRect(e){var t=_sliceInstanceProperty(e).call(e,0);if(e[0]>e[2]){t[0]=e[2];t[2]=e[0];}if(e[1]>e[3]){t[1]=e[3];t[3]=e[1];}return t;}},{key:\"intersect\",value:function intersect(e,t){var r=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),a=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(r>a)return null;var n=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),i=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return n>i?null:[r,n,a,i];}},{key:\"bezierBoundingBox\",value:function bezierBoundingBox(e,t,r,a,n,i,s,o){var c=[],l=[[],[]];var h,u,d,f,g,p,m,b;for(var _l2=0;_l2<2;++_l2){if(0===_l2){u=6*e-12*r+6*n;h=-3*e+9*r-9*n+3*s;d=3*r-3*e;}else{u=6*t-12*a+6*i;h=-3*t+9*a-9*i+3*o;d=3*a-3*t;}if(Math.abs(h)<1e-12){if(Math.abs(u)<1e-12)continue;f=-d/u;0<f&&f<1&&c.push(f);}else{m=u*u-4*d*h;b=Math.sqrt(m);if(!(m<0)){g=(-u+b)/(2*h);0<g&&g<1&&c.push(g);p=(-u-b)/(2*h);0<p&&p<1&&c.push(p);}}}var y,w=c.length;var S=w;for(;w--;){f=c[w];y=1-f;l[0][w]=y*y*y*e+3*y*y*f*r+3*y*f*f*n+f*f*f*s;l[1][w]=y*y*y*t+3*y*y*f*a+3*y*f*f*i+f*f*f*o;}l[0][S]=e;l[1][S]=t;l[0][S+1]=s;l[1][S+1]=o;l[0].length=l[1].length=S+2;return[Math.min.apply(Math,_toConsumableArray(l[0])),Math.min.apply(Math,_toConsumableArray(l[1])),Math.max.apply(Math,_toConsumableArray(l[0])),Math.max.apply(Math,_toConsumableArray(l[1]))];}}]);return Util;}();t.Util=Util;var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function stringToUTF8String(e){return decodeURIComponent(escape(e));}},function(e,t,r){\"use strict\";var a=r(4);if(!_globalThis._pdfjsCompatibilityChecked){_globalThis._pdfjsCompatibilityChecked=!0;!function checkNodeBtoa(){!_globalThis.btoa&&a.isNodeJS&&(_globalThis.btoa=function(e){return Buffer.from(e,\"binary\").toString(\"base64\");});}();!function checkNodeAtob(){!_globalThis.atob&&a.isNodeJS&&(_globalThis.atob=function(e){return Buffer.from(e,\"base64\").toString(\"binary\");});}();!function checkDOMMatrix(){!_globalThis.DOMMatrix&&a.isNodeJS&&(_globalThis.DOMMatrix=__webpack_require__(/*! dommatrix/dist/dommatrix.js */ \"../../node_modules/dommatrix/dist/dommatrix.js\"));}();!function checkReadableStream(){!_globalThis.ReadableStream&&a.isNodeJS&&(_globalThis.ReadableStream=(__webpack_require__(/*! web-streams-polyfill/dist/ponyfill.js */ \"../../node_modules/web-streams-polyfill/dist/ponyfill.js\").ReadableStream));}();!function checkArrayAt(){Array.prototype.at||r(5);}();!function checkTypedArrayAt(){Uint8Array.prototype.at||r(77);}();!function checkStructuredClone(){_globalThis.structuredClone||r(87);}();}},function(e,t){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.isNodeJS=void 0;var r=!(\"object\"!=(typeof process===\"undefined\"?\"undefined\":_typeof(process))||process+\"\"!=\"[object process]\"||process.versions.nw||process.versions.electron&&process.type&&\"browser\"!==process.type);t.isNodeJS=r;},function(e,t,r){r(6);var a=r(76);e.exports=a(\"Array\",\"at\");},function(e,t,r){\"use strict\";var a=r(7),n=r(42),i=r(66),s=r(64),o=r(71);a({target:\"Array\",proto:!0},{at:function at(e){var t=n(this),r=i(t),a=s(e),o=a>=0?a:r+a;return o<0||o>=r?void 0:t[o];}});o(\"at\");},function(e,t,r){var a=r(8),n=r(9).f,i=r(46),s=r(50),o=r(40),c=r(58),l=r(70);e.exports=function(e,t){var r,h,u,d,f,g=e.target,p=e.global,m=e.stat;if(r=p?a:m?a[g]||o(g,{}):(a[g]||{}).prototype)for(h in t){d=t[h];u=e.dontCallGetSet?(f=n(r,h))&&f.value:r[h];if(!l(p?h:g+(m?\".\":\"#\")+h,e.forced)&&void 0!==u){if(_typeof(d)==_typeof(u))continue;c(d,u);}(e.sham||u&&u.sham)&&i(d,\"sham\",!0);s(r,h,d,e);}};},function(e){var check=function check(e){return e&&e.Math==Math&&e;};e.exports=check(\"object\"==(typeof _globalThis===\"undefined\"?\"undefined\":_typeof(_globalThis))&&_globalThis)||check(\"object\"==(typeof window===\"undefined\"?\"undefined\":_typeof(window))&&window)||check(\"object\"==(typeof self===\"undefined\"?\"undefined\":_typeof(self))&&self)||check(\"object\"==(typeof __webpack_require__.g===\"undefined\"?\"undefined\":_typeof(__webpack_require__.g))&&__webpack_require__.g)||function(){return this;}()||Function(\"return this\")();},function(e,t,r){var a=r(10),n=r(12),i=r(14),s=r(15),o=r(16),c=r(21),l=r(41),h=r(44),u=_Object$getOwnPropertyDescriptor;t.f=a?u:function getOwnPropertyDescriptor(e,t){e=o(e);t=c(t);if(h)try{return u(e,t);}catch(e){}if(l(e,t))return s(!n(i.f,e,t),e[t]);};},function(e,t,r){var a=r(11);e.exports=!a(function(){return 7!=_Object$defineProperty({},1,{get:function get(){return 7;}})[1];});},function(e){e.exports=function(e){try{return!!e();}catch(e){return!0;}};},function(e,t,r){var a=r(13),n=Function.prototype.call;e.exports=a?n.bind(n):function(){return n.apply(n,arguments);};},function(e,t,r){var a=r(11);e.exports=!a(function(){var e=function(){}.bind();return\"function\"!=typeof e||e.hasOwnProperty(\"prototype\");});},function(e,t){\"use strict\";var r={}.propertyIsEnumerable,a=_Object$getOwnPropertyDescriptor,n=a&&!r.call({1:2},1);t.f=n?function propertyIsEnumerable(e){var t=a(this,e);return!!t&&t.enumerable;}:r;},function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t};};},function(e,t,r){var a=r(17),n=r(20);e.exports=function(e){return a(n(e));};},function(e,t,r){var a=r(18),n=r(11),i=r(19),s=Object,o=a(\"\".split);e.exports=n(function(){return!s(\"z\").propertyIsEnumerable(0);})?function(e){return\"String\"==i(e)?o(e,\"\"):s(e);}:s;},function(e,t,r){var a=r(13),n=Function.prototype,i=n.bind,s=n.call,o=a&&i.bind(s,s);e.exports=a?function(e){return e&&o(e);}:function(e){return e&&function(){return s.apply(e,arguments);};};},function(e,t,r){var a=r(18),n=a({}.toString),i=a(_sliceInstanceProperty(\"\"));e.exports=function(e){return i(n(e),8,-1);};},function(e){var t=TypeError;e.exports=function(e){if(null==e)throw t(\"Can't call method on \"+e);return e;};},function(e,t,r){var a=r(22),n=r(25);e.exports=function(e){var t=a(e,\"string\");return n(t)?t:t+\"\";};},function(e,t,r){var a=r(12),n=r(23),i=r(25),s=r(32),o=r(35),c=r(36),l=TypeError,h=c(\"toPrimitive\");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,c=s(e,h);if(c){void 0===t&&(t=\"default\");r=a(c,e,t);if(!n(r)||i(r))return r;throw l(\"Can't convert object to primitive value\");}void 0===t&&(t=\"number\");return o(e,t);};},function(e,t,r){var a=r(24);e.exports=function(e){return\"object\"==_typeof(e)?null!==e:a(e);};},function(e){e.exports=function(e){return\"function\"==typeof e;};},function(e,t,r){var a=r(26),n=r(24),i=r(27),s=r(28),o=Object;e.exports=s?function(e){return\"symbol\"==_typeof(e);}:function(e){var t=a(\"Symbol\");return n(t)&&i(t.prototype,o(e));};},function(e,t,r){var a=r(8),n=r(24),aFunction=function aFunction(e){return n(e)?e:void 0;};e.exports=function(e,t){return arguments.length<2?aFunction(a[e]):a[e]&&a[e][t];};},function(e,t,r){var a=r(18);e.exports=a({}.isPrototypeOf);},function(e,t,r){var a=r(29);e.exports=a&&!_Symbol.sham&&\"symbol\"==_typeof(_Symbol$iterator);},function(e,t,r){var a=r(30),n=r(11);e.exports=!!_Object$getOwnPropertySymbols&&!n(function(){var e=_Symbol();return!String(e)||!(Object(e)instanceof _Symbol)||!_Symbol.sham&&a&&a<41;});},function(e,t,r){var a,n,i=r(8),s=r(31),o=i.process,c=i.Deno,l=o&&o.versions||c&&c.version,h=l&&l.v8;h&&(n=(a=h.split(\".\"))[0]>0&&a[0]<4?1:+(a[0]+a[1]));!n&&s&&(!(a=s.match(/Edge\\/(\\d+)/))||a[1]>=74)&&(a=s.match(/Chrome\\/(\\d+)/))&&(n=+a[1]);e.exports=n;},function(e,t,r){var a=r(26);e.exports=a(\"navigator\",\"userAgent\")||\"\";},function(e,t,r){var a=r(33);e.exports=function(e,t){var r=e[t];return null==r?void 0:a(r);};},function(e,t,r){var a=r(24),n=r(34),i=TypeError;e.exports=function(e){if(a(e))return e;throw i(n(e)+\" is not a function\");};},function(e){var t=String;e.exports=function(e){try{return t(e);}catch(e){return\"Object\";}};},function(e,t,r){var a=r(12),n=r(24),i=r(23),s=TypeError;e.exports=function(e,t){var r,o;if(\"string\"===t&&n(r=e.toString)&&!i(o=a(r,e)))return o;if(n(r=e.valueOf)&&!i(o=a(r,e)))return o;if(\"string\"!==t&&n(r=e.toString)&&!i(o=a(r,e)))return o;throw s(\"Can't convert object to primitive value\");};},function(e,t,r){var a=r(8),n=r(37),i=r(41),s=r(43),o=r(29),c=r(28),l=n(\"wks\"),h=a.Symbol,u=h&&h.for,d=c?h:h&&h.withoutSetter||s;e.exports=function(e){if(!i(l,e)||!o&&\"string\"!=typeof l[e]){var t=\"Symbol.\"+e;o&&i(h,e)?l[e]=h[e]:l[e]=c&&u?u(t):d(t);}return l[e];};},function(e,t,r){var a=r(38),n=r(39);(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{});})(\"versions\",[]).push({version:\"3.24.1\",mode:a?\"pure\":\"global\",copyright:\"© 2014-2022 Denis Pushkarev (zloirock.ru)\",license:\"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE\",source:\"https://github.com/zloirock/core-js\"});},function(e){e.exports=!1;},function(e,t,r){var a=r(8),n=r(40),i=\"__core-js_shared__\",s=a[i]||n(i,{});e.exports=s;},function(e,t,r){var a=r(8),n=_Object$defineProperty;e.exports=function(e,t){try{n(a,e,{value:t,configurable:!0,writable:!0});}catch(r){a[e]=t;}return t;};},function(e,t,r){var a=r(18),n=r(42),i=a({}.hasOwnProperty);e.exports=Object.hasOwn||function hasOwn(e,t){return i(n(e),t);};},function(e,t,r){var a=r(20),n=Object;e.exports=function(e){return n(a(e));};},function(e,t,r){var a=r(18),n=0,i=Math.random(),s=a(1..toString);e.exports=function(e){return\"Symbol(\"+(void 0===e?\"\":e)+\")_\"+s(++n+i,36);};},function(e,t,r){var a=r(10),n=r(11),i=r(45);e.exports=!a&&!n(function(){return 7!=_Object$defineProperty(i(\"div\"),\"a\",{get:function get(){return 7;}}).a;});},function(e,t,r){var a=r(8),n=r(23),i=a.document,s=n(i)&&n(i.createElement);e.exports=function(e){return s?i.createElement(e):{};};},function(e,t,r){var a=r(10),n=r(47),i=r(15);e.exports=a?function(e,t,r){return n.f(e,t,i(1,r));}:function(e,t,r){e[t]=r;return e;};},function(e,t,r){var a=r(10),n=r(44),i=r(48),s=r(49),o=r(21),c=TypeError,l=_Object$defineProperty,h=_Object$getOwnPropertyDescriptor,u=\"enumerable\",d=\"configurable\",f=\"writable\";t.f=a?i?function defineProperty(e,t,r){s(e);t=o(t);s(r);if(\"function\"==typeof e&&\"prototype\"===t&&\"value\"in r&&f in r&&!r.writable){var a=h(e,t);if(a&&a.writable){e[t]=r.value;r={configurable:d in r?r.configurable:a.configurable,enumerable:u in r?r.enumerable:a.enumerable,writable:!1};}}return l(e,t,r);}:l:function defineProperty(e,t,r){s(e);t=o(t);s(r);if(n)try{return l(e,t,r);}catch(e){}if(\"get\"in r||\"set\"in r)throw c(\"Accessors not supported\");\"value\"in r&&(e[t]=r.value);return e;};},function(e,t,r){var a=r(10),n=r(11);e.exports=a&&n(function(){return 42!=_Object$defineProperty(function(){},\"prototype\",{value:42,writable:!1}).prototype;});},function(e,t,r){var a=r(23),n=String,i=TypeError;e.exports=function(e){if(a(e))return e;throw i(n(e)+\" is not an object\");};},function(e,t,r){var a=r(24),n=r(47),i=r(51),s=r(40);e.exports=function(e,t,r,o){o||(o={});var c=o.enumerable,l=void 0!==o.name?o.name:t;a(r)&&i(r,l,o);if(o.global)c?e[t]=r:s(t,r);else{try{o.unsafe?e[t]&&(c=!0):delete e[t];}catch(e){}c?e[t]=r:n.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable});}return e;};},function(e,t,r){var a=r(11),n=r(24),i=r(41),s=r(10),o=r(52).CONFIGURABLE,c=r(53),l=r(54),h=l.enforce,u=l.get,d=_Object$defineProperty,f=s&&!a(function(){return 8!==d(function(){},\"length\",{value:8}).length;}),g=String(String).split(\"String\"),p=e.exports=function(e,t,r){var _context14;\"Symbol(\"===_sliceInstanceProperty(_context14=String(t)).call(_context14,0,7)&&(t=\"[\"+String(t).replace(/^Symbol\\(([^)]*)\\)/,\"$1\")+\"]\");r&&r.getter&&(t=\"get \"+t);r&&r.setter&&(t=\"set \"+t);(!i(e,\"name\")||o&&e.name!==t)&&(s?d(e,\"name\",{value:t,configurable:!0}):e.name=t);f&&r&&i(r,\"arity\")&&e.length!==r.arity&&d(e,\"length\",{value:r.arity});try{r&&i(r,\"constructor\")&&r.constructor?s&&d(e,\"prototype\",{writable:!1}):e.prototype&&(e.prototype=void 0);}catch(e){}var a=h(e);i(a,\"source\")||(a.source=g.join(\"string\"==typeof t?t:\"\"));return e;};Function.prototype.toString=p(function toString(){return n(this)&&u(this).source||c(this);},\"toString\");},function(e,t,r){var a=r(10),n=r(41),i=Function.prototype,s=a&&_Object$getOwnPropertyDescriptor,o=n(i,\"name\"),c=o&&\"something\"===function something(){}.name,l=o&&(!a||a&&s(i,\"name\").configurable);e.exports={EXISTS:o,PROPER:c,CONFIGURABLE:l};},function(e,t,r){var a=r(18),n=r(24),i=r(39),s=a(Function.toString);n(i.inspectSource)||(i.inspectSource=function(e){return s(e);});e.exports=i.inspectSource;},function(e,t,r){var a,n,i,s=r(55),o=r(8),c=r(18),l=r(23),h=r(46),u=r(41),d=r(39),f=r(56),g=r(57),p=\"Object already initialized\",m=o.TypeError,b=o.WeakMap;if(s||d.state){var y=d.state||(d.state=new b()),w=c(y.get),S=c(y.has),x=c(y.set);a=function a(e,t){if(S(y,e))throw new m(p);t.facade=e;x(y,e,t);return t;};n=function n(e){return w(y,e)||{};};i=function i(e){return S(y,e);};}else{var k=f(\"state\");g[k]=!0;a=function a(e,t){if(u(e,k))throw new m(p);t.facade=e;h(e,k,t);return t;};n=function n(e){return u(e,k)?e[k]:{};};i=function i(e){return u(e,k);};}e.exports={set:a,get:n,has:i,enforce:function enforce(e){return i(e)?n(e):a(e,{});},getterFor:function getterFor(e){return function(t){var r;if(!l(t)||(r=n(t)).type!==e)throw m(\"Incompatible receiver, \"+e+\" required\");return r;};}};},function(e,t,r){var a=r(8),n=r(24),i=r(53),s=a.WeakMap;e.exports=n(s)&&/native code/.test(i(s));},function(e,t,r){var a=r(37),n=r(43),i=a(\"keys\");e.exports=function(e){return i[e]||(i[e]=n(e));};},function(e){e.exports={};},function(e,t,r){var a=r(41),n=r(59),i=r(9),s=r(47);e.exports=function(e,t,r){for(var o=n(t),c=s.f,l=i.f,h=0;h<o.length;h++){var u=o[h];a(e,u)||r&&a(r,u)||c(e,u,l(t,u));}};},function(e,t,r){var a=r(26),n=r(18),i=r(60),s=r(69),o=r(49),c=n(_concatInstanceProperty([]));e.exports=a(\"Reflect\",\"ownKeys\")||function ownKeys(e){var t=i.f(o(e)),r=s.f;return r?c(t,r(e)):t;};},function(e,t,r){var _context15;var a=r(61),n=_concatInstanceProperty(_context15=r(68)).call(_context15,\"length\",\"prototype\");t.f=_Object$getOwnPropertyNames||function getOwnPropertyNames(e){return a(e,n);};},function(e,t,r){var a=r(18),n=r(41),i=r(16),s=_indexOfInstanceProperty(r(62)),o=r(57),c=a([].push);e.exports=function(e,t){var r,a=i(e),l=0,h=[];for(r in a)!n(o,r)&&n(a,r)&&c(h,r);for(;t.length>l;)n(a,r=t[l++])&&(~s(h,r)||c(h,r));return h;};},function(e,t,r){var a=r(16),n=r(63),i=r(66),createMethod=function createMethod(e){return function(t,r,s){var o,c=a(t),l=i(c),h=n(s,l);if(e&&r!=r){for(;l>h;)if((o=c[h++])!=o)return!0;}else for(;l>h;h++)if((e||h in c)&&c[h]===r)return e||h||0;return!e&&-1;};};e.exports={includes:createMethod(!0),indexOf:createMethod(!1)};},function(e,t,r){var a=r(64),n=Math.max,i=Math.min;e.exports=function(e,t){var r=a(e);return r<0?n(r+t,0):i(r,t);};},function(e,t,r){var a=r(65);e.exports=function(e){var t=+e;return t!=t||0===t?0:a(t);};},function(e){var t=Math.ceil,r=Math.floor;e.exports=_Math$trunc||function trunc(e){var a=+e;return(a>0?r:t)(a);};},function(e,t,r){var a=r(67);e.exports=function(e){return a(e.length);};},function(e,t,r){var a=r(64),n=Math.min;e.exports=function(e){return e>0?n(a(e),9007199254740991):0;};},function(e){e.exports=[\"constructor\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"toLocaleString\",\"toString\",\"valueOf\"];},function(e,t){t.f=_Object$getOwnPropertySymbols;},function(e,t,r){var a=r(11),n=r(24),i=/#|\\.prototype\\./,isForced=function isForced(e,t){var r=o[s(e)];return r==l||r!=c&&(n(t)?a(t):!!t);},s=isForced.normalize=function(e){return String(e).replace(i,\".\").toLowerCase();},o=isForced.data={},c=isForced.NATIVE=\"N\",l=isForced.POLYFILL=\"P\";e.exports=isForced;},function(e,t,r){var a=r(36),n=r(72),i=r(47).f,s=a(\"unscopables\"),o=Array.prototype;null==o[s]&&i(o,s,{configurable:!0,value:n(null)});e.exports=function(e){o[s][e]=!0;};},function(e,t,r){var a,n=r(49),i=r(73),s=r(68),o=r(57),c=r(75),l=r(45),h=r(56),u=h(\"IE_PROTO\"),EmptyConstructor=function EmptyConstructor(){},scriptTag=function scriptTag(e){return\"<script>\"+e+\"</\"+\"script>\";},NullProtoObjectViaActiveX=function NullProtoObjectViaActiveX(e){e.write(scriptTag(\"\"));e.close();var t=e.parentWindow.Object;e=null;return t;},_NullProtoObject=function NullProtoObject(){try{a=new ActiveXObject(\"htmlfile\");}catch(e){}_NullProtoObject=\"undefined\"!=typeof document?document.domain&&a?NullProtoObjectViaActiveX(a):function(){var e,t=l(\"iframe\");t.style.display=\"none\";c.appendChild(t);t.src=String(\"javascript:\");(e=t.contentWindow.document).open();e.write(scriptTag(\"document.F=Object\"));e.close();return e.F;}():NullProtoObjectViaActiveX(a);for(var e=s.length;e--;)delete _NullProtoObject.prototype[s[e]];return _NullProtoObject();};o[u]=!0;e.exports=Object.create||function create(e,t){var r;if(null!==e){EmptyConstructor.prototype=n(e);r=new EmptyConstructor();EmptyConstructor.prototype=null;r[u]=e;}else r=_NullProtoObject();return void 0===t?r:i.f(r,t);};},function(e,t,r){var a=r(10),n=r(48),i=r(47),s=r(49),o=r(16),c=r(74);t.f=a&&!n?_Object$defineProperties:function defineProperties(e,t){s(e);for(var r,a=o(t),n=c(t),l=n.length,h=0;l>h;)i.f(e,r=n[h++],a[r]);return e;};},function(e,t,r){var a=r(61),n=r(68);e.exports=_Object$keys||function keys(e){return a(e,n);};},function(e,t,r){var a=r(26);e.exports=a(\"document\",\"documentElement\");},function(e,t,r){var a=r(8),n=r(18);e.exports=function(e,t){return n(a[e].prototype[t]);};},function(e,t,r){r(78);},function(e,t,r){\"use strict\";var a=r(79),n=r(66),i=r(64),s=a.aTypedArray;(0,a.exportTypedArrayMethod)(\"at\",function at(e){var t=s(this),r=n(t),a=i(e),o=a>=0?a:r+a;return o<0||o>=r?void 0:t[o];});},function(e,t,r){\"use strict\";var a,n,i,s=r(80),o=r(10),c=r(8),l=r(24),h=r(23),u=r(41),d=r(81),f=r(34),g=r(46),p=r(50),m=r(47).f,b=r(27),y=r(83),w=r(85),S=r(36),x=r(43),k=r(54),C=k.enforce,v=k.get,O=c.Int8Array,T=O&&O.prototype,M=c.Uint8ClampedArray,E=M&&M.prototype,D=O&&y(O),N=T&&y(T),R=Object.prototype,L=c.TypeError,j=S(\"toStringTag\"),$=x(\"TYPED_ARRAY_TAG\"),_=\"TypedArrayConstructor\",U=s&&!!w&&\"Opera\"!==d(c.opera),X=!1,H={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},q={BigInt64Array:8,BigUint64Array:8},getTypedArrayConstructor=function getTypedArrayConstructor(e){var t=y(e);if(h(t)){var r=v(t);return r&&u(r,_)?r.TypedArrayConstructor:getTypedArrayConstructor(t);}},isTypedArray=function isTypedArray(e){if(!h(e))return!1;var t=d(e);return u(H,t)||u(q,t);};for(a in H)(i=(n=c[a])&&n.prototype)?C(i).TypedArrayConstructor=n:U=!1;for(a in q)(i=(n=c[a])&&n.prototype)&&(C(i).TypedArrayConstructor=n);if(!U||!l(D)||D===Function.prototype){D=function TypedArray(){throw L(\"Incorrect invocation\");};if(U)for(a in H)c[a]&&w(c[a],D);}if(!U||!N||N===R){N=D.prototype;if(U)for(a in H)c[a]&&w(c[a].prototype,N);}U&&y(E)!==N&&w(E,N);if(o&&!u(N,j)){X=!0;m(N,j,{get:function get(){return h(this)?this[$]:void 0;}});for(a in H)c[a]&&g(c[a],$,a);}e.exports={NATIVE_ARRAY_BUFFER_VIEWS:U,TYPED_ARRAY_TAG:X&&$,aTypedArray:function aTypedArray(e){if(isTypedArray(e))return e;throw L(\"Target is not a typed array\");},aTypedArrayConstructor:function aTypedArrayConstructor(e){if(l(e)&&(!w||b(D,e)))return e;throw L(f(e)+\" is not a typed array constructor\");},exportTypedArrayMethod:function exportTypedArrayMethod(e,t,r,a){if(o){if(r)for(var n in H){var i=c[n];if(i&&u(i.prototype,e))try{delete i.prototype[e];}catch(r){try{i.prototype[e]=t;}catch(e){}}}N[e]&&!r||p(N,e,r?t:U&&T[e]||t,a);}},exportTypedArrayStaticMethod:function exportTypedArrayStaticMethod(e,t,r){var a,n;if(o){if(w){if(r)for(a in H)if((n=c[a])&&u(n,e))try{delete n[e];}catch(e){}if(D[e]&&!r)return;try{return p(D,e,r?t:U&&D[e]||t);}catch(e){}}for(a in H)!(n=c[a])||n[e]&&!r||p(n,e,t);}},getTypedArrayConstructor:getTypedArrayConstructor,isView:function isView(e){if(!h(e))return!1;var t=d(e);return\"DataView\"===t||u(H,t)||u(q,t);},isTypedArray:isTypedArray,TypedArray:D,TypedArrayPrototype:N};},function(e){e.exports=\"undefined\"!=typeof ArrayBuffer&&\"undefined\"!=typeof DataView;},function(e,t,r){var a=r(82),n=r(24),i=r(19),s=r(36)(\"toStringTag\"),o=Object,c=\"Arguments\"==i(function(){return arguments;}());e.exports=a?i:function(e){var t,r,a;return void 0===e?\"Undefined\":null===e?\"Null\":\"string\"==typeof(r=function(e,t){try{return e[t];}catch(e){}}(t=o(e),s))?r:c?i(t):\"Object\"==(a=i(t))&&n(t.callee)?\"Arguments\":a;};},function(e,t,r){var a={};a[r(36)(\"toStringTag\")]=\"z\";e.exports=\"[object z]\"===String(a);},function(e,t,r){var a=r(41),n=r(24),i=r(42),s=r(56),o=r(84),c=s(\"IE_PROTO\"),l=Object,h=l.prototype;e.exports=o?_Object$getPrototypeOf:function(e){var t=i(e);if(a(t,c))return t[c];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof l?h:null;};},function(e,t,r){var a=r(11);e.exports=!a(function(){function F(){}F.prototype.constructor=null;return _Object$getPrototypeOf(new F())!==F.prototype;});},function(e,t,r){var a=r(18),n=r(49),i=r(86);e.exports=_Object$setPrototypeOf||(\"__proto__\"in{}?function(){var e,t=!1,r={};try{(e=a(_Object$getOwnPropertyDescriptor(Object.prototype,\"__proto__\").set))(r,[]);t=r instanceof Array;}catch(e){}return function setPrototypeOf(r,a){n(r);i(a);t?e(r,a):r.__proto__=a;return r;};}():void 0);},function(e,t,r){var a=r(24),n=String,i=TypeError;e.exports=function(e){if(\"object\"==_typeof(e)||a(e))return e;throw i(\"Can't set \"+n(e)+\" as a prototype\");};},function(e,t,r){r(88);r(94);r(96);r(118);r(120);var a=r(129);e.exports=a.structuredClone;},function(e,t,r){\"use strict\";var a=r(16),n=r(71),i=r(89),s=r(54),o=r(47).f,c=r(90),l=r(38),h=r(10),u=\"Array Iterator\",d=s.set,f=s.getterFor(u);e.exports=c(Array,\"Array\",function(e,t){d(this,{type:u,target:a(e),index:0,kind:t});},function(){var e=f(this),t=e.target,r=e.kind,a=e.index++;if(!t||a>=t.length){e.target=void 0;return{value:void 0,done:!0};}return\"keys\"==r?{value:a,done:!1}:\"values\"==r?{value:t[a],done:!1}:{value:[a,t[a]],done:!1};},\"values\");var g=i.Arguments=i.Array;n(\"keys\");n(\"values\");n(\"entries\");if(!l&&h&&\"values\"!==g.name)try{o(g,\"name\",{value:\"values\"});}catch(e){}},function(e){e.exports={};},function(e,t,r){\"use strict\";var a=r(7),n=r(12),i=r(38),s=r(52),o=r(24),c=r(91),l=r(83),h=r(85),u=r(93),d=r(46),f=r(50),g=r(36),p=r(89),m=r(92),b=s.PROPER,y=s.CONFIGURABLE,w=m.IteratorPrototype,S=m.BUGGY_SAFARI_ITERATORS,x=g(\"iterator\"),k=\"keys\",C=\"values\",v=\"entries\",returnThis=function returnThis(){return this;};e.exports=function(e,t,r,s,g,m,O){c(r,t,s);var T,M,E,getIterationMethod=function getIterationMethod(e){if(e===g&&j)return j;if(!S&&e in R)return R[e];switch(e){case k:return function keys(){return new r(this,e);};case C:return function values(){return new r(this,e);};case v:return function entries(){return new r(this,e);};}return function(){return new r(this);};},D=t+\" Iterator\",N=!1,R=e.prototype,L=R[x]||R[\"@@iterator\"]||g&&R[g],j=!S&&L||getIterationMethod(g),$=\"Array\"==t&&_entriesInstanceProperty(R)||L;if($&&(T=l($.call(new e())))!==Object.prototype&&T.next){i||l(T)===w||(h?h(T,w):o(T[x])||f(T,x,returnThis));u(T,D,!0,!0);i&&(p[D]=returnThis);}if(b&&g==C&&L&&L.name!==C)if(!i&&y)d(R,\"name\",C);else{N=!0;j=function values(){return n(L,this);};}if(g){M={values:getIterationMethod(C),keys:m?j:getIterationMethod(k),entries:getIterationMethod(v)};if(O)for(E in M)(S||N||!(E in R))&&f(R,E,M[E]);else a({target:t,proto:!0,forced:S||N},M);}i&&!O||R[x]===j||f(R,x,j,{name:g});p[t]=j;return M;};},function(e,t,r){\"use strict\";var a=r(92).IteratorPrototype,n=r(72),i=r(15),s=r(93),o=r(89),returnThis=function returnThis(){return this;};e.exports=function(e,t,r,c){var l=t+\" Iterator\";e.prototype=n(a,{next:i(+!c,r)});s(e,l,!1,!0);o[l]=returnThis;return e;};},function(e,t,r){\"use strict\";var _context16;var a,n,i,s=r(11),o=r(24),c=r(72),l=r(83),h=r(50),u=r(36),d=r(38),f=u(\"iterator\"),g=!1;_keysInstanceProperty([])&&(\"next\"in(i=_keysInstanceProperty(_context16=[]).call(_context16))?(n=l(l(i)))!==Object.prototype&&(a=n):g=!0);null==a||s(function(){var e={};return a[f].call(e)!==e;})?a={}:d&&(a=c(a));o(a[f])||h(a,f,function(){return this;});e.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:g};},function(e,t,r){var a=r(47).f,n=r(41),i=r(36)(\"toStringTag\");e.exports=function(e,t,r){e&&!r&&(e=e.prototype);e&&!n(e,i)&&a(e,i,{configurable:!0,value:t});};},function(e,t,r){var a=r(82),n=r(50),i=r(95);a||n(Object.prototype,\"toString\",i,{unsafe:!0});},function(e,t,r){\"use strict\";var a=r(82),n=r(81);e.exports=a?{}.toString:function toString(){return\"[object \"+n(this)+\"]\";};},function(e,t,r){r(97);},function(e,t,r){\"use strict\";r(98)(\"Map\",function(e){return function Map(){return e(this,arguments.length?arguments[0]:void 0);};},r(115));},function(e,t,r){\"use strict\";var a=r(7),n=r(8),i=r(18),s=r(70),o=r(50),c=r(99),l=r(106),h=r(112),u=r(24),d=r(23),f=r(11),g=r(113),p=r(93),m=r(114);e.exports=function(e,t,r){var b=-1!==_indexOfInstanceProperty(e).call(e,\"Map\"),y=-1!==_indexOfInstanceProperty(e).call(e,\"Weak\"),w=b?\"set\":\"add\",S=n[e],x=S&&S.prototype,k=S,C={},fixMethod=function fixMethod(e){var t=i(x[e]);o(x,e,\"add\"==e?function add(e){t(this,0===e?0:e);return this;}:\"delete\"==e?function(e){return!(y&&!d(e))&&t(this,0===e?0:e);}:\"get\"==e?function get(e){return y&&!d(e)?void 0:t(this,0===e?0:e);}:\"has\"==e?function has(e){return!(y&&!d(e))&&t(this,0===e?0:e);}:function set(e,r){t(this,0===e?0:e,r);return this;});};if(s(e,!u(S)||!(y||x.forEach&&!f(function(){var _context17;_entriesInstanceProperty(_context17=new S()).call(_context17).next();})))){k=r.getConstructor(t,e,b,w);c.enable();}else if(s(e,!0)){var v=new k(),O=v[w](y?{}:-0,1)!=v,T=f(function(){v.has(1);}),M=g(function(e){new S(e);}),E=!y&&f(function(){for(var e=new S(),t=5;t--;)e[w](t,t);return!e.has(-0);});if(!M){(k=t(function(e,t){h(e,x);var r=m(new S(),e,k);null!=t&&l(t,r[w],{that:r,AS_ENTRIES:b});return r;})).prototype=x;x.constructor=k;}if(T||E){fixMethod(\"delete\");fixMethod(\"has\");b&&fixMethod(\"get\");}(E||O)&&fixMethod(w);y&&x.clear&&delete x.clear;}C[e]=k;a({global:!0,constructor:!0,forced:k!=S},C);p(k,e);y||r.setStrong(k,e,b);return k;};},function(e,t,r){var a=r(7),n=r(18),i=r(57),s=r(23),o=r(41),c=r(47).f,l=r(60),h=r(100),u=r(103),d=r(43),f=r(105),g=!1,p=d(\"meta\"),m=0,setMetadata=function setMetadata(e){c(e,p,{value:{objectID:\"O\"+m++,weakData:{}}});},b=e.exports={enable:function enable(){b.enable=function(){};g=!0;var e=l.f,t=n(_spliceInstanceProperty([])),r={};r[p]=1;if(e(r).length){l.f=function(r){for(var a=e(r),n=0,i=a.length;n<i;n++)if(a[n]===p){t(a,n,1);break;}return a;};a({target:\"Object\",stat:!0,forced:!0},{getOwnPropertyNames:h.f});}},fastKey:function fastKey(e,t){if(!s(e))return\"symbol\"==_typeof(e)?e:(\"string\"==typeof e?\"S\":\"P\")+e;if(!o(e,p)){if(!u(e))return\"F\";if(!t)return\"E\";setMetadata(e);}return e[p].objectID;},getWeakData:function getWeakData(e,t){if(!o(e,p)){if(!u(e))return!0;if(!t)return!1;setMetadata(e);}return e[p].weakData;},onFreeze:function onFreeze(e){f&&g&&u(e)&&!o(e,p)&&setMetadata(e);return e;}};i[p]=!0;},function(e,t,r){var a=r(19),n=r(16),i=r(60).f,s=r(101),o=\"object\"==(typeof window===\"undefined\"?\"undefined\":_typeof(window))&&window&&_Object$getOwnPropertyNames?_Object$getOwnPropertyNames(window):[];e.exports.f=function getOwnPropertyNames(e){return o&&\"Window\"==a(e)?function(e){try{return i(e);}catch(e){return s(o);}}(e):i(n(e));};},function(e,t,r){var a=r(63),n=r(66),i=r(102),s=Array,o=Math.max;e.exports=function(e,t,r){for(var c=n(e),l=a(t,c),h=a(void 0===r?c:r,c),u=s(o(h-l,0)),d=0;l<h;l++,d++)i(u,d,e[l]);u.length=d;return u;};},function(e,t,r){\"use strict\";var a=r(21),n=r(47),i=r(15);e.exports=function(e,t,r){var s=a(t);s in e?n.f(e,s,i(0,r)):e[s]=r;};},function(e,t,r){var a=r(11),n=r(23),i=r(19),s=r(104),o=_Object$isExtensible,c=a(function(){o(1);});e.exports=c||s?function isExtensible(e){return!!n(e)&&(!s||\"ArrayBuffer\"!=i(e))&&(!o||o(e));}:o;},function(e,t,r){var a=r(11);e.exports=a(function(){if(\"function\"==typeof ArrayBuffer){var e=new ArrayBuffer(8);_Object$isExtensible(e)&&_Object$defineProperty(e,\"a\",{value:8});}});},function(e,t,r){var a=r(11);e.exports=!a(function(){return _Object$isExtensible(_Object$preventExtensions({}));});},function(e,t,r){var a=r(107),n=r(12),i=r(49),s=r(34),o=r(108),c=r(66),l=r(27),h=r(109),u=r(110),d=r(111),f=TypeError,Result=function Result(e,t){this.stopped=e;this.result=t;},g=Result.prototype;e.exports=function(e,t,r){var p,m,b,y,w,S,x,k=r&&r.that,C=!(!r||!r.AS_ENTRIES),v=!(!r||!r.IS_RECORD),O=!(!r||!r.IS_ITERATOR),T=!(!r||!r.INTERRUPTED),M=a(t,k),stop=function stop(e){p&&d(p,\"normal\",e);return new Result(!0,e);},callFn=function callFn(e){if(C){i(e);return T?M(e[0],e[1],stop):M(e[0],e[1]);}return T?M(e,stop):M(e);};if(v)p=e.iterator;else if(O)p=e;else{if(!(m=u(e)))throw f(s(e)+\" is not iterable\");if(o(m)){for(b=0,y=c(e);y>b;b++)if((w=callFn(e[b]))&&l(g,w))return w;return new Result(!1);}p=h(e,m);}S=v?e.next:p.next;for(;!(x=n(S,p)).done;){try{w=callFn(x.value);}catch(e){d(p,\"throw\",e);}if(\"object\"==_typeof(w)&&w&&l(g,w))return w;}return new Result(!1);};},function(e,t,r){var a=r(18),n=r(33),i=r(13),s=a(a.bind);e.exports=function(e,t){n(e);return void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments);};};},function(e,t,r){var a=r(36),n=r(89),i=a(\"iterator\"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||s[i]===e);};},function(e,t,r){var a=r(12),n=r(33),i=r(49),s=r(34),o=r(110),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?o(e):t;if(n(r))return i(a(r,e));throw c(s(e)+\" is not iterable\");};},function(e,t,r){var a=r(81),n=r(32),i=r(89),s=r(36)(\"iterator\");e.exports=function(e){if(null!=e)return n(e,s)||n(e,\"@@iterator\")||i[a(e)];};},function(e,t,r){var a=r(12),n=r(49),i=r(32);e.exports=function(e,t,r){var s,o;n(e);try{if(!(s=i(e,\"return\"))){if(\"throw\"===t)throw r;return r;}s=a(s,e);}catch(e){o=!0;s=e;}if(\"throw\"===t)throw r;if(o)throw s;n(s);return r;};},function(e,t,r){var a=r(27),n=TypeError;e.exports=function(e,t){if(a(t,e))return e;throw n(\"Incorrect invocation\");};},function(e,t,r){var a=r(36)(\"iterator\"),n=!1;try{var i=0,s={next:function next(){return{done:!!i++};},return:function _return(){n=!0;}};s[a]=function(){return this;};_Array$from(s,function(){throw 2;});}catch(e){}e.exports=function(e,t){if(!t&&!n)return!1;var r=!1;try{var i={};i[a]=function(){return{next:function next(){return{done:r=!0};}};};e(i);}catch(e){}return r;};},function(e,t,r){var a=r(24),n=r(23),i=r(85);e.exports=function(e,t,r){var s,o;i&&a(s=t.constructor)&&s!==r&&n(o=s.prototype)&&o!==r.prototype&&i(e,o);return e;};},function(e,t,r){\"use strict\";var a=r(47).f,n=r(72),i=r(116),s=r(107),o=r(112),c=r(106),l=r(90),h=r(117),u=r(10),d=r(99).fastKey,f=r(54),g=f.set,p=f.getterFor;e.exports={getConstructor:function getConstructor(e,t,r,l){var h=e(function(e,a){o(e,f);g(e,{type:t,index:n(null),first:void 0,last:void 0,size:0});u||(e.size=0);null!=a&&c(a,e[l],{that:e,AS_ENTRIES:r});}),f=h.prototype,m=p(t),define=function define(e,t,r){var a,n,i=m(e),s=getEntry(e,t);if(s)s.value=r;else{i.last=s={index:n=d(t,!0),key:t,value:r,previous:a=i.last,next:void 0,removed:!1};i.first||(i.first=s);a&&(a.next=s);u?i.size++:e.size++;\"F\"!==n&&(i.index[n]=s);}return e;},getEntry=function getEntry(e,t){var r,a=m(e),n=d(t);if(\"F\"!==n)return a.index[n];for(r=a.first;r;r=r.next)if(r.key==t)return r;};i(f,{clear:function clear(){for(var e=m(this),t=e.index,r=e.first;r;){r.removed=!0;r.previous&&(r.previous=r.previous.next=void 0);delete t[r.index];r=r.next;}e.first=e.last=void 0;u?e.size=0:this.size=0;},delete:function _delete(e){var t=this,r=m(t),a=getEntry(t,e);if(a){var n=a.next,i=a.previous;delete r.index[a.index];a.removed=!0;i&&(i.next=n);n&&(n.previous=i);r.first==a&&(r.first=n);r.last==a&&(r.last=i);u?r.size--:t.size--;}return!!a;},forEach:function forEach(e){for(var t,r=m(this),a=s(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;){a(t.value,t.key,this);for(;t&&t.removed;)t=t.previous;}},has:function has(e){return!!getEntry(this,e);}});i(f,r?{get:function get(e){var t=getEntry(this,e);return t&&t.value;},set:function set(e,t){return define(this,0===e?0:e,t);}}:{add:function add(e){return define(this,e=0===e?0:e,e);}});u&&a(f,\"size\",{get:function get(){return m(this).size;}});return h;},setStrong:function setStrong(e,t,r){var a=t+\" Iterator\",n=p(t),i=p(a);l(e,t,function(e,t){g(this,{type:a,target:e,state:n(e),kind:t,last:void 0});},function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;if(!e.target||!(e.last=r=r?r.next:e.state.first)){e.target=void 0;return{value:void 0,done:!0};}return\"keys\"==t?{value:r.key,done:!1}:\"values\"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1};},r?\"entries\":\"values\",!r,!0);h(t);}};},function(e,t,r){var a=r(50);e.exports=function(e,t,r){for(var n in t)a(e,n,t[n],r);return e;};},function(e,t,r){\"use strict\";var a=r(26),n=r(47),i=r(36),s=r(10),o=i(\"species\");e.exports=function(e){var t=a(e),r=n.f;s&&t&&!t[o]&&r(t,o,{configurable:!0,get:function get(){return this;}});};},function(e,t,r){r(119);},function(e,t,r){\"use strict\";r(98)(\"Set\",function(e){return function Set(){return e(this,arguments.length?arguments[0]:void 0);};},r(115));},function(e,t,r){var a,n=r(38),i=r(7),s=r(8),o=r(26),c=r(18),l=r(11),h=r(43),u=r(24),d=r(121),f=r(23),g=r(25),p=r(106),m=r(49),b=r(81),y=r(41),w=r(102),S=r(46),x=r(66),k=r(122),C=r(123),v=r(125),O=r(30),T=r(126),M=r(127),E=r(128),D=s.Object,N=s.Date,R=s.Error,L=s.EvalError,j=s.RangeError,$=s.ReferenceError,_=s.SyntaxError,U=s.TypeError,X=s.URIError,H=s.PerformanceMark,q=s.WebAssembly,z=q&&q.CompileError||R,W=q&&q.LinkError||R,G=q&&q.RuntimeError||R,V=o(\"DOMException\"),K=o(\"Set\"),Y=o(\"Map\"),J=Y.prototype,Z=c(J.has),Q=c(J.get),ee=c(J.set),te=c(K.prototype.add),re=o(\"Object\",\"keys\"),ae=c([].push),ne=c((!0).valueOf),ie=c(1..valueOf),se=c(\"\".valueOf),oe=c(N.prototype.getTime),ce=h(\"structuredClone\"),le=\"DataCloneError\",he=\"Transferring\",checkBasicSemantic=function checkBasicSemantic(e){return!l(function(){var t=new s.Set([7]),r=e(t),a=e(D(7));return r==t||!r.has(7)||\"object\"!=_typeof(a)||7!=a;})&&e;},checkErrorsCloning=function checkErrorsCloning(e,t){return!l(function(){var r=new t(),a=e({a:r,b:r});return!(a&&a.a===a.b&&a.a instanceof t&&a.a.stack===r.stack);});},ue=s.structuredClone,de=n||!checkErrorsCloning(ue,R)||!checkErrorsCloning(ue,V)||!(a=ue,!l(function(){var e=a(new s.AggregateError([1],ce,{cause:3}));return\"AggregateError\"!=e.name||1!=e.errors[0]||e.message!=ce||3!=e.cause;})),fe=!ue&&checkBasicSemantic(function(e){return new H(ce,{detail:e}).detail;}),ge=checkBasicSemantic(ue)||fe,throwUncloneable=function throwUncloneable(e){throw new V(\"Uncloneable type: \"+e,le);},throwUnpolyfillable=function throwUnpolyfillable(e,t){throw new V((t||\"Cloning\")+\" of \"+e+\" cannot be properly polyfilled in this engine\",le);},structuredCloneInternal=function structuredCloneInternal(e,t){g(e)&&throwUncloneable(\"Symbol\");if(!f(e))return e;if(t){if(Z(t,e))return Q(t,e);}else t=new Y();var r,a,n,i,c,l,h,p,m,k,O=b(e),T=!1;switch(O){case\"Array\":n=[];T=!0;break;case\"Object\":n={};T=!0;break;case\"Map\":n=new Y();T=!0;break;case\"Set\":n=new K();T=!0;break;case\"RegExp\":n=new RegExp(e.source,C(e));break;case\"Error\":switch(a=e.name){case\"AggregateError\":n=o(\"AggregateError\")([]);break;case\"EvalError\":n=L();break;case\"RangeError\":n=j();break;case\"ReferenceError\":n=$();break;case\"SyntaxError\":n=_();break;case\"TypeError\":n=U();break;case\"URIError\":n=X();break;case\"CompileError\":n=z();break;case\"LinkError\":n=W();break;case\"RuntimeError\":n=G();break;default:n=R();}T=!0;break;case\"DOMException\":n=new V(e.message,e.name);T=!0;break;case\"DataView\":case\"Int8Array\":case\"Uint8Array\":case\"Uint8ClampedArray\":case\"Int16Array\":case\"Uint16Array\":case\"Int32Array\":case\"Uint32Array\":case\"Float32Array\":case\"Float64Array\":case\"BigInt64Array\":case\"BigUint64Array\":r=s[O];f(r)||throwUnpolyfillable(O);n=new r(structuredCloneInternal(e.buffer,t),e.byteOffset,\"DataView\"===O?e.byteLength:e.length);break;case\"DOMQuad\":try{n=new DOMQuad(structuredCloneInternal(e.p1,t),structuredCloneInternal(e.p2,t),structuredCloneInternal(e.p3,t),structuredCloneInternal(e.p4,t));}catch(t){ge?n=ge(e):throwUnpolyfillable(O);}break;case\"FileList\":r=s.DataTransfer;if(d(r)){i=new r();for(c=0,l=x(e);c<l;c++)i.items.add(structuredCloneInternal(e[c],t));n=i.files;}else ge?n=ge(e):throwUnpolyfillable(O);break;case\"ImageData\":try{n=new ImageData(structuredCloneInternal(e.data,t),e.width,e.height,{colorSpace:e.colorSpace});}catch(t){ge?n=ge(e):throwUnpolyfillable(O);}break;default:if(ge)n=ge(e);else switch(O){case\"BigInt\":n=D(e.valueOf());break;case\"Boolean\":n=D(ne(e));break;case\"Number\":n=D(ie(e));break;case\"String\":n=D(se(e));break;case\"Date\":n=new N(oe(e));break;case\"ArrayBuffer\":(r=s.DataView)||\"function\"==typeof _sliceInstanceProperty(e)||throwUnpolyfillable(O);try{if(\"function\"==typeof _sliceInstanceProperty(e))n=_sliceInstanceProperty(e).call(e,0);else{l=e.byteLength;n=new ArrayBuffer(l);m=new r(e);k=new r(n);for(c=0;c<l;c++)k.setUint8(c,m.getUint8(c));}}catch(e){throw new V(\"ArrayBuffer is detached\",le);}break;case\"SharedArrayBuffer\":n=e;break;case\"Blob\":try{n=_sliceInstanceProperty(e).call(e,0,e.size,e.type);}catch(e){throwUnpolyfillable(O);}break;case\"DOMPoint\":case\"DOMPointReadOnly\":r=s[O];try{n=r.fromPoint?r.fromPoint(e):new r(e.x,e.y,e.z,e.w);}catch(e){throwUnpolyfillable(O);}break;case\"DOMRect\":case\"DOMRectReadOnly\":r=s[O];try{n=r.fromRect?r.fromRect(e):new r(e.x,e.y,e.width,e.height);}catch(e){throwUnpolyfillable(O);}break;case\"DOMMatrix\":case\"DOMMatrixReadOnly\":r=s[O];try{n=r.fromMatrix?r.fromMatrix(e):new r(e);}catch(e){throwUnpolyfillable(O);}break;case\"AudioData\":case\"VideoFrame\":u(e.clone)||throwUnpolyfillable(O);try{n=e.clone();}catch(e){throwUncloneable(O);}break;case\"File\":try{n=new File([e],e.name,e);}catch(e){throwUnpolyfillable(O);}break;case\"CryptoKey\":case\"GPUCompilationMessage\":case\"GPUCompilationInfo\":case\"ImageBitmap\":case\"RTCCertificate\":case\"WebAssembly.Module\":throwUnpolyfillable(O);default:throwUncloneable(O);}}ee(t,e,n);if(T)switch(O){case\"Array\":case\"Object\":h=re(e);for(c=0,l=x(h);c<l;c++){p=h[c];w(n,p,structuredCloneInternal(e[p],t));}break;case\"Map\":e.forEach(function(e,r){ee(n,structuredCloneInternal(r,t),structuredCloneInternal(e,t));});break;case\"Set\":e.forEach(function(e){te(n,structuredCloneInternal(e,t));});break;case\"Error\":S(n,\"message\",structuredCloneInternal(e.message,t));y(e,\"cause\")&&S(n,\"cause\",structuredCloneInternal(e.cause,t));\"AggregateError\"==a&&(n.errors=structuredCloneInternal(e.errors,t));case\"DOMException\":v&&S(n,\"stack\",structuredCloneInternal(e.stack,t));}return n;},pe=ue&&!l(function(){if(M&&O>92||E&&O>94||T&&O>97)return!1;var e=new ArrayBuffer(8),t=ue(e,{transfer:[e]});return 0!=e.byteLength||8!=t.byteLength;}),tryToTransfer=function tryToTransfer(e,t){if(!f(e))throw U(\"Transfer option cannot be converted to a sequence\");var r=[];p(e,function(e){ae(r,m(e));});var a,n,i,o,c,l,h=0,g=x(r);if(pe){o=ue(r,{transfer:r});for(;h<g;)ee(t,r[h],o[h++]);}else for(;h<g;){a=r[h++];if(Z(t,a))throw new V(\"Duplicate transferable\",le);switch(n=b(a)){case\"ImageBitmap\":i=s.OffscreenCanvas;d(i)||throwUnpolyfillable(n,he);try{(l=new i(a.width,a.height)).getContext(\"bitmaprenderer\").transferFromImageBitmap(a);c=l.transferToImageBitmap();}catch(e){}break;case\"AudioData\":case\"VideoFrame\":u(a.clone)&&u(a.close)||throwUnpolyfillable(n,he);try{c=a.clone();a.close();}catch(e){}break;case\"ArrayBuffer\":case\"MessagePort\":case\"OffscreenCanvas\":case\"ReadableStream\":case\"TransformStream\":case\"WritableStream\":throwUnpolyfillable(n,he);}if(void 0===c)throw new V(\"This object cannot be transferred: \"+n,le);ee(t,a,c);}};i({global:!0,enumerable:!0,sham:!pe,forced:de},{structuredClone:function structuredClone(e){var t,r=k(arguments.length,1)>1&&null!=arguments[1]?m(arguments[1]):void 0,a=r?r.transfer:void 0;if(void 0!==a){t=new Y();tryToTransfer(a,t);}return structuredCloneInternal(e,t);}});},function(e,t,r){var a=r(18),n=r(11),i=r(24),s=r(81),o=r(26),c=r(53),noop=function noop(){},l=[],h=o(\"Reflect\",\"construct\"),u=/^\\s*(?:class|function)\\b/,d=a(u.exec),f=!u.exec(noop),g=function isConstructor(e){if(!i(e))return!1;try{h(noop,l,e);return!0;}catch(e){return!1;}},p=function isConstructor(e){if(!i(e))return!1;switch(s(e)){case\"AsyncFunction\":case\"GeneratorFunction\":case\"AsyncGeneratorFunction\":return!1;}try{return f||!!d(u,c(e));}catch(e){return!0;}};p.sham=!0;e.exports=!h||n(function(){var e;return g(g.call)||!g(Object)||!g(function(){e=!0;})||e;})?p:g;},function(e){var t=TypeError;e.exports=function(e,r){if(e<r)throw t(\"Not enough arguments\");return e;};},function(e,t,r){var a=r(12),n=r(41),i=r(27),s=r(124),o=RegExp.prototype;e.exports=function(e){var t=_flagsInstanceProperty(e);return void 0!==t||\"flags\"in o||n(e,\"flags\")||!i(o,e)?t:a(s,e);};},function(e,t,r){\"use strict\";var a=r(49);e.exports=function(){var e=a(this),t=\"\";e.hasIndices&&(t+=\"d\");e.global&&(t+=\"g\");e.ignoreCase&&(t+=\"i\");e.multiline&&(t+=\"m\");e.dotAll&&(t+=\"s\");e.unicode&&(t+=\"u\");e.unicodeSets&&(t+=\"v\");e.sticky&&(t+=\"y\");return t;};},function(e,t,r){var a=r(11),n=r(15);e.exports=!a(function(){var e=Error(\"a\");if(!(\"stack\"in e))return!0;_Object$defineProperty(e,\"stack\",n(1,7));return 7!==e.stack;});},function(e,t,r){var a=r(127),n=r(128);e.exports=!a&&!n&&\"object\"==(typeof window===\"undefined\"?\"undefined\":_typeof(window))&&\"object\"==(typeof document===\"undefined\"?\"undefined\":_typeof(document));},function(e){e.exports=\"object\"==(typeof Deno===\"undefined\"?\"undefined\":_typeof(Deno))&&Deno&&\"object\"==_typeof(Deno.version);},function(e,t,r){var a=r(19),n=r(8);e.exports=\"process\"==a(n.process);},function(e,t,r){var a=r(8);e.exports=a;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.RefSetCache=t.RefSet=t.Ref=t.Name=t.EOF=t.Dict=t.Cmd=t.CIRCULAR_REF=void 0;t.clearPrimitiveCaches=function clearPrimitiveCaches(){o._clearCache();s._clearCache();l._clearCache();};t.isCmd=function isCmd(e,t){return e instanceof o&&(void 0===t||e.cmd===t);};t.isDict=function isDict(e,t){return e instanceof Dict&&(void 0===t||isName(e.get(\"Type\"),t));};t.isName=isName;t.isRefsEqual=function isRefsEqual(e,t){return e.num===t.num&&e.gen===t.gen;};var a=r(2);var n=_Symbol(\"CIRCULAR_REF\");t.CIRCULAR_REF=n;var i=_Symbol(\"EOF\");t.EOF=i;var s=function NameClosure(){var e=Object.create(null);var Name=/*#__PURE__*/function(){function Name(e){_classCallCheck(this,Name);this.name=e;}_createClass(Name,null,[{key:\"get\",value:function get(t){return e[t]||(e[t]=new Name(t));}},{key:\"_clearCache\",value:function _clearCache(){e=Object.create(null);}}]);return Name;}();return Name;}();t.Name=s;var o=function CmdClosure(){var e=Object.create(null);var Cmd=/*#__PURE__*/function(){function Cmd(e){_classCallCheck(this,Cmd);this.cmd=e;}_createClass(Cmd,null,[{key:\"get\",value:function get(t){return e[t]||(e[t]=new Cmd(t));}},{key:\"_clearCache\",value:function _clearCache(){e=Object.create(null);}}]);return Cmd;}();return Cmd;}();t.Cmd=o;var c=function nonSerializableClosure(){return c;};var Dict=/*#__PURE__*/function(){function Dict(){_classCallCheck(this,Dict);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._map=Object.create(null);this.xref=e;this.objId=null;this.suppressEncryption=!1;this.__nonSerializable__=c;}_createClass(Dict,[{key:\"assignXref\",value:function assignXref(e){this.xref=e;}},{key:\"size\",get:function get(){return _Object$keys(this._map).length;}},{key:\"get\",value:function get(e,t,r){var a=this._map[e];if(void 0===a&&void 0!==t){a=this._map[t];void 0===a&&void 0!==r&&(a=this._map[r]);}return a instanceof l&&this.xref?this.xref.fetch(a,this.suppressEncryption):a;}},{key:\"getAsync\",value:function(){var _getAsync=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(e,t,r){var a;return _regeneratorRuntime.wrap(function _callee2$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:a=this._map[e];if(void 0===a&&void 0!==t){a=this._map[t];void 0===a&&void 0!==r&&(a=this._map[r]);}return _context18.abrupt(\"return\",a instanceof l&&this.xref?this.xref.fetchAsync(a,this.suppressEncryption):a);case 3:case\"end\":return _context18.stop();}},_callee2,this);}));function getAsync(_x2,_x3,_x4){return _getAsync.apply(this,arguments);}return getAsync;}()},{key:\"getArray\",value:function getArray(e,t,r){var a=this._map[e];if(void 0===a&&void 0!==t){a=this._map[t];void 0===a&&void 0!==r&&(a=this._map[r]);}a instanceof l&&this.xref&&(a=this.xref.fetch(a,this.suppressEncryption));if(Array.isArray(a)){a=_sliceInstanceProperty(a).call(a);for(var _e13=0,_t7=a.length;_e13<_t7;_e13++)a[_e13]instanceof l&&this.xref&&(a[_e13]=this.xref.fetch(a[_e13],this.suppressEncryption));}return a;}},{key:\"getRaw\",value:function getRaw(e){return this._map[e];}},{key:\"getKeys\",value:function getKeys(){return _Object$keys(this._map);}},{key:\"getRawValues\",value:function getRawValues(){return _Object$values(this._map);}},{key:\"set\",value:function set(e,t){this._map[e]=t;}},{key:\"has\",value:function has(e){return void 0!==this._map[e];}},{key:\"forEach\",value:function forEach(e){for(var _t8 in this._map)e(_t8,this.get(_t8));}}],[{key:\"empty\",get:function get(){var e=new Dict(null);e.set=function(e,t){(0,a.unreachable)(\"Should not call `set` on the empty dictionary.\");};return(0,a.shadow)(this,\"empty\",e);}},{key:\"merge\",value:function merge(e){var t=e.xref,r=e.dictArray,_e$mergeSubDicts=e.mergeSubDicts,a=_e$mergeSubDicts===void 0?!1:_e$mergeSubDicts;var n=new Dict(t),i=new _Map();var _iterator3=_createForOfIteratorHelper(r),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _e14=_step3.value;if(_e14 instanceof Dict)for(var _i12=0,_Object$entries=_Object$entries2(_e14._map);_i12<_Object$entries.length;_i12++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i12],2),_t9=_Object$entries$_i[0],_r7=_Object$entries$_i[1];var _e15=i.get(_t9);if(void 0===_e15){_e15=[];i.set(_t9,_e15);}else if(!(a&&_r7 instanceof Dict))continue;_e15.push(_r7);}}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}var _iterator4=_createForOfIteratorHelper(i),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _step4$value=_slicedToArray(_step4.value,2),_e16=_step4$value[0],_r8=_step4$value[1];if(1===_r8.length||!(_r8[0]instanceof Dict)){n._map[_e16]=_r8[0];continue;}var _a11=new Dict(t);var _iterator5=_createForOfIteratorHelper(_r8),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var _e17=_step5.value;for(var _i13=0,_Object$entries3=_Object$entries2(_e17._map);_i13<_Object$entries3.length;_i13++){var _Object$entries3$_i=_slicedToArray(_Object$entries3[_i13],2),_t10=_Object$entries3$_i[0],_r9=_Object$entries3$_i[1];void 0===_a11._map[_t10]&&(_a11._map[_t10]=_r9);}}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}_a11.size>0&&(n._map[_e16]=_a11);}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}i.clear();return n.size>0?n:Dict.empty;}}]);return Dict;}();t.Dict=Dict;var l=function RefClosure(){var e=Object.create(null);var Ref=/*#__PURE__*/function(){function Ref(e,t){_classCallCheck(this,Ref);this.num=e;this.gen=t;}_createClass(Ref,[{key:\"toString\",value:function toString(){var _context19;return 0===this.gen?\"\".concat(this.num,\"R\"):_concatInstanceProperty(_context19=\"\".concat(this.num,\"R\")).call(_context19,this.gen);}}],[{key:\"get\",value:function get(t,r){var _context20;var a=0===r?\"\".concat(t,\"R\"):_concatInstanceProperty(_context20=\"\".concat(t,\"R\")).call(_context20,r);return e[a]||(e[a]=new Ref(t,r));}},{key:\"_clearCache\",value:function _clearCache(){e=Object.create(null);}}]);return Ref;}();return Ref;}();t.Ref=l;var RefSet=/*#__PURE__*/function(_Symbol$iterator2){function RefSet(){_classCallCheck(this,RefSet);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._set=new _Set(e&&e._set);}_createClass(RefSet,[{key:\"has\",value:function has(e){return this._set.has(e.toString());}},{key:\"put\",value:function put(e){this._set.add(e.toString());}},{key:\"remove\",value:function remove(e){this._set.delete(e.toString());}},{key:_Symbol$iterator2,value:function value(){var _context21;return _valuesInstanceProperty(_context21=this._set).call(_context21);}},{key:\"clear\",value:function clear(){this._set.clear();}}]);return RefSet;}(_Symbol$iterator);t.RefSet=RefSet;var RefSetCache=/*#__PURE__*/function(_Symbol$iterator3){function RefSetCache(){_classCallCheck(this,RefSetCache);this._map=new _Map();}_createClass(RefSetCache,[{key:\"size\",get:function get(){return this._map.size;}},{key:\"get\",value:function get(e){return this._map.get(e.toString());}},{key:\"has\",value:function has(e){return this._map.has(e.toString());}},{key:\"put\",value:function put(e,t){this._map.set(e.toString(),t);}},{key:\"putAlias\",value:function putAlias(e,t){this._map.set(e.toString(),this.get(t));}},{key:_Symbol$iterator3,value:function value(){var _context22;return _valuesInstanceProperty(_context22=this._map).call(_context22);}},{key:\"clear\",value:function clear(){this._map.clear();}}]);return RefSetCache;}(_Symbol$iterator);t.RefSetCache=RefSetCache;function isName(e,t){return e instanceof s&&(void 0===t||e.name===t);}},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.XRefParseException=t.XRefEntryException=t.ParserEOFException=t.MissingDataException=t.DocStats=void 0;t.collectActions=function collectActions(e,t,r){var i=Object.create(null),s=getInheritableProperty({dict:t,key:\"AA\",stopWhenFound:!1});if(s)for(var _t11=s.length-1;_t11>=0;_t11--){var _a12=s[_t11];if(_a12 instanceof n.Dict){var _iterator6=_createForOfIteratorHelper(_a12.getKeys()),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _t12=_step6.value;var _s2=r[_t12];if(!_s2)continue;var _o=_a12.getRaw(_t12),c=new n.RefSet(),l=[];_collectJS(_o,e,l,c);l.length>0&&(i[_s2]=l);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}}}if(t.has(\"A\")){var _r10=t.get(\"A\"),_a13=new n.RefSet(),_s3=[];_collectJS(_r10,e,_s3,_a13);_s3.length>0&&(i.Action=_s3);}return(0,a.objectSize)(i)>0?i:null;};t.encodeToXmlString=function encodeToXmlString(e){var t=[];var r=0;for(var _a14=0,_n2=e.length;_a14<_n2;_a14++){var _n3=_codePointAtInstanceProperty(e).call(e,_a14);if(32<=_n3&&_n3<=126){var _i14=o[_n3];if(_i14){r<_a14&&t.push(e.substring(r,_a14));t.push(_i14);r=_a14+1;}}else{r<_a14&&t.push(e.substring(r,_a14));t.push(\"&#x\".concat(_n3.toString(16).toUpperCase(),\";\"));_n3>55295&&(_n3<57344||_n3>65533)&&_a14++;r=_a14+1;}}if(0===t.length)return e;r<e.length&&t.push(e.substring(r,e.length));return t.join(\"\");};t.escapePDFName=function escapePDFName(e){var t=[];var r=0;for(var _a15=0,_n4=e.length;_a15<_n4;_a15++){var _n5=e.charCodeAt(_a15);if(_n5<33||_n5>126||35===_n5||40===_n5||41===_n5||60===_n5||62===_n5||91===_n5||93===_n5||123===_n5||125===_n5||47===_n5||37===_n5){r<_a15&&t.push(e.substring(r,_a15));t.push(\"#\".concat(_n5.toString(16)));r=_a15+1;}}if(0===t.length)return e;r<e.length&&t.push(e.substring(r,e.length));return t.join(\"\");};t.getArrayLookupTableFactory=function getArrayLookupTableFactory(e){var t;return function(){if(e){var _r11=e();e=null;t=Object.create(null);for(var _e18=0,_a16=_r11.length;_e18<_a16;_e18+=2)t[_r11[_e18]]=_r11[_e18+1];_r11=null;}return t;};};t.getInheritableProperty=getInheritableProperty;t.getLookupTableFactory=function getLookupTableFactory(e){var t;return function(){if(e){t=Object.create(null);e(t);e=null;}return t;};};t.getNewAnnotationsMap=function getNewAnnotationsMap(e){if(!e)return null;var t=new _Map();var _iterator7=_createForOfIteratorHelper(e),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _step7$value=_slicedToArray(_step7.value,2),_r12=_step7$value[0],_n6=_step7$value[1];if(!_startsWithInstanceProperty(_r12).call(_r12,a.AnnotationEditorPrefix))continue;var _e19=t.get(_n6.pageIndex);if(!_e19){_e19=[];t.set(_n6.pageIndex,_e19);}_e19.push(_n6);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}return t.size>0?t:null;};t.isWhiteSpace=function isWhiteSpace(e){return 32===e||9===e||13===e||10===e;};t.log2=function log2(e){if(e<=0)return 0;return Math.ceil(_Math$log(e));};t.numberToString=function numberToString(e){if(_Number$isInteger(e))return e.toString();var t=Math.round(100*e);if(t%100==0)return(t/100).toString();if(t%10==0)return e.toFixed(1);return e.toFixed(2);};t.parseXFAPath=function parseXFAPath(e){var _context23;var t=/(.+)\\[(\\d+)\\]$/;return _mapInstanceProperty(_context23=e.split(\".\")).call(_context23,function(e){var r=e.match(t);return r?{name:r[1],pos:_parseInt(r[2],10)}:{name:e,pos:0};});};t.readInt8=function readInt8(e,t){return e[t]<<24>>24;};t.readUint16=function readUint16(e,t){return e[t]<<8|e[t+1];};t.readUint32=function readUint32(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0;};t.recoverJsURL=function recoverJsURL(e){var t=new RegExp(\"^\\\\s*(\"+[\"app.launchURL\",\"window.open\",\"xfa.host.gotoURL\"].join(\"|\").split(\".\").join(\"\\\\.\")+\")\\\\((?:'|\\\")([^'\\\"]*)(?:'|\\\")(?:,\\\\s*(\\\\w+)\\\\)|\\\\))\",\"i\").exec(e);if(t&&t[2]){var _e20=t[2];var _r13=!1;\"true\"===t[3]&&\"app.launchURL\"===t[1]&&(_r13=!0);return{url:_e20,newWindow:_r13};}return null;};t.toRomanNumerals=function toRomanNumerals(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,a.assert)(_Number$isInteger(e)&&e>0,\"The number should be a positive integer.\");var r=[];var n;for(;e>=1e3;){e-=1e3;r.push(\"M\");}n=e/100|0;e%=100;r.push(s[n]);n=e/10|0;e%=10;r.push(s[10+n]);r.push(s[20+e]);var i=r.join(\"\");return t?i.toLowerCase():i;};t.validateCSSFont=function validateCSSFont(e){var t=new _Set([\"100\",\"200\",\"300\",\"400\",\"500\",\"600\",\"700\",\"800\",\"900\",\"1000\",\"normal\",\"bold\",\"bolder\",\"lighter\"]),r=e.fontFamily,n=e.fontWeight,i=e.italicAngle;if(/^\".*\"$/.test(r)){if(/[^\\\\]\"/.test(_sliceInstanceProperty(r).call(r,1,r.length-1))){(0,a.warn)(\"XFA - FontFamily contains some unescaped \\\": \".concat(r,\".\"));return!1;}}else if(/^'.*'$/.test(r)){if(/[^\\\\]'/.test(_sliceInstanceProperty(r).call(r,1,r.length-1))){(0,a.warn)(\"XFA - FontFamily contains some unescaped ': \".concat(r,\".\"));return!1;}}else{var _iterator8=_createForOfIteratorHelper(r.split(/[ \\t]+/)),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _e21=_step8.value;if(/^(\\d|(-(\\d|-)))/.test(_e21)||!/^[\\w-\\\\]+$/.test(_e21)){(0,a.warn)(\"XFA - FontFamily contains some invalid <custom-ident>: \".concat(r,\".\"));return!1;}}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}}var s=n?n.toString():\"\";e.fontWeight=t.has(s)?s:\"400\";var o=_parseFloat(i);e.italicAngle=isNaN(o)||o<-90||o>90?\"14\":i.toString();return!0;};var a=r(2),n=r(130),i=r(132);var MissingDataException=/*#__PURE__*/function(_a$BaseException){_inherits(MissingDataException,_a$BaseException);function MissingDataException(e,t){var _context24;var _this4;_classCallCheck(this,MissingDataException);_this4=_callSuper(this,MissingDataException,[_concatInstanceProperty(_context24=\"Missing data [\".concat(e,\", \")).call(_context24,t,\")\"),\"MissingDataException\"]);_this4.begin=e;_this4.end=t;return _this4;}return _createClass(MissingDataException);}(a.BaseException);t.MissingDataException=MissingDataException;var ParserEOFException=/*#__PURE__*/function(_a$BaseException2){_inherits(ParserEOFException,_a$BaseException2);function ParserEOFException(e){_classCallCheck(this,ParserEOFException);return _callSuper(this,ParserEOFException,[e,\"ParserEOFException\"]);}return _createClass(ParserEOFException);}(a.BaseException);t.ParserEOFException=ParserEOFException;var XRefEntryException=/*#__PURE__*/function(_a$BaseException3){_inherits(XRefEntryException,_a$BaseException3);function XRefEntryException(e){_classCallCheck(this,XRefEntryException);return _callSuper(this,XRefEntryException,[e,\"XRefEntryException\"]);}return _createClass(XRefEntryException);}(a.BaseException);t.XRefEntryException=XRefEntryException;var XRefParseException=/*#__PURE__*/function(_a$BaseException4){_inherits(XRefParseException,_a$BaseException4);function XRefParseException(e){_classCallCheck(this,XRefParseException);return _callSuper(this,XRefParseException,[e,\"XRefParseException\"]);}return _createClass(XRefParseException);}(a.BaseException);t.XRefParseException=XRefParseException;t.DocStats=/*#__PURE__*/function(){function DocStats(e){_classCallCheck(this,DocStats);this._handler=e;this._streamTypes=new _Set();this._fontTypes=new _Set();}_createClass(DocStats,[{key:\"_send\",value:function _send(){var e=Object.create(null),t=Object.create(null);var _iterator9=_createForOfIteratorHelper(this._streamTypes),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _t13=_step9.value;e[_t13]=!0;}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}var _iterator10=_createForOfIteratorHelper(this._fontTypes),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _e22=_step10.value;t[_e22]=!0;}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}this._handler.send(\"DocStats\",{streamTypes:e,fontTypes:t});}},{key:\"addStreamType\",value:function addStreamType(e){if(!this._streamTypes.has(e)){this._streamTypes.add(e);this._send();}}},{key:\"addFontType\",value:function addFontType(e){if(!this._fontTypes.has(e)){this._fontTypes.add(e);this._send();}}}]);return DocStats;}();function getInheritableProperty(e){var t,r=e.dict,a=e.key,_e$getArray=e.getArray,i=_e$getArray===void 0?!1:_e$getArray,_e$stopWhenFound=e.stopWhenFound,s=_e$stopWhenFound===void 0?!0:_e$stopWhenFound;var o=new n.RefSet();for(;r instanceof n.Dict&&(!r.objId||!o.has(r.objId));){r.objId&&o.put(r.objId);var _e23=i?r.getArray(a):r.get(a);if(void 0!==_e23){if(s)return _e23;t||(t=[]);t.push(_e23);}r=r.get(\"Parent\");}return t;}var s=[\"\",\"C\",\"CC\",\"CCC\",\"CD\",\"D\",\"DC\",\"DCC\",\"DCCC\",\"CM\",\"\",\"X\",\"XX\",\"XXX\",\"XL\",\"L\",\"LX\",\"LXX\",\"LXXX\",\"XC\",\"\",\"I\",\"II\",\"III\",\"IV\",\"V\",\"VI\",\"VII\",\"VIII\",\"IX\"];function _collectJS(e,t,r,s){if(!e)return;var o=null;if(e instanceof n.Ref){if(s.has(e))return;o=e;s.put(o);e=t.fetch(e);}if(Array.isArray(e)){var _iterator11=_createForOfIteratorHelper(e),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _a17=_step11.value;_collectJS(_a17,t,r,s);}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}}else if(e instanceof n.Dict){if((0,n.isName)(e.get(\"S\"),\"JavaScript\")){var _t14=e.get(\"JS\");var _n7;_t14 instanceof i.BaseStream?_n7=_t14.getString():\"string\"==typeof _t14&&(_n7=_t14);_n7=_n7&&(0,a.stringToPDFString)(_n7).replace(/\\u0000/g,\"\");_n7&&r.push(_n7);}_collectJS(e.getRaw(\"Next\"),t,r,s);}o&&s.remove(o);}var o={60:\"&lt;\",62:\"&gt;\",38:\"&amp;\",34:\"&quot;\",39:\"&apos;\"};},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.BaseStream=void 0;var a=r(2);var BaseStream=/*#__PURE__*/function(){function BaseStream(){_classCallCheck(this,BaseStream);this.constructor===BaseStream&&(0,a.unreachable)(\"Cannot initialize BaseStream.\");}_createClass(BaseStream,[{key:\"length\",get:function get(){(0,a.unreachable)(\"Abstract getter `length` accessed\");}},{key:\"isEmpty\",get:function get(){(0,a.unreachable)(\"Abstract getter `isEmpty` accessed\");}},{key:\"isDataLoaded\",get:function get(){return(0,a.shadow)(this,\"isDataLoaded\",!0);}},{key:\"getByte\",value:function getByte(){(0,a.unreachable)(\"Abstract method `getByte` called\");}},{key:\"getBytes\",value:function getBytes(e){(0,a.unreachable)(\"Abstract method `getBytes` called\");}},{key:\"peekByte\",value:function peekByte(){var e=this.getByte();-1!==e&&this.pos--;return e;}},{key:\"peekBytes\",value:function peekBytes(e){var t=this.getBytes(e);this.pos-=t.length;return t;}},{key:\"getUint16\",value:function getUint16(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t;}},{key:\"getInt32\",value:function getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte();}},{key:\"getByteRange\",value:function getByteRange(e,t){(0,a.unreachable)(\"Abstract method `getByteRange` called\");}},{key:\"getString\",value:function getString(e){return(0,a.bytesToString)(this.getBytes(e));}},{key:\"skip\",value:function skip(e){this.pos+=e||1;}},{key:\"reset\",value:function reset(){(0,a.unreachable)(\"Abstract method `reset` called\");}},{key:\"moveStart\",value:function moveStart(){(0,a.unreachable)(\"Abstract method `moveStart` called\");}},{key:\"makeSubStream\",value:function makeSubStream(e,t){(0,a.unreachable)(\"Abstract method `makeSubStream` called\");}},{key:\"getBaseStreams\",value:function getBaseStreams(){return null;}}]);return BaseStream;}();t.BaseStream=BaseStream;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.NetworkPdfManager=t.LocalPdfManager=void 0;var a=r(2),n=r(134),i=r(131),s=r(136),o=r(135);function parseDocBaseUrl(e){if(e){var _t15=(0,a.createValidAbsoluteUrl)(e);if(_t15)return _t15.href;(0,a.warn)(\"Invalid absolute docBaseUrl: \\\"\".concat(e,\"\\\".\"));}return null;}var BasePdfManager=/*#__PURE__*/function(){function BasePdfManager(){_classCallCheck(this,BasePdfManager);this.constructor===BasePdfManager&&(0,a.unreachable)(\"Cannot initialize BasePdfManager.\");}_createClass(BasePdfManager,[{key:\"docId\",get:function get(){return this._docId;}},{key:\"password\",get:function get(){return this._password;}},{key:\"docBaseUrl\",get:function get(){var e=this.pdfDocument.catalog;return(0,a.shadow)(this,\"docBaseUrl\",e.baseUrl||this._docBaseUrl);}},{key:\"onLoadedStream\",value:function onLoadedStream(){(0,a.unreachable)(\"Abstract method `onLoadedStream` called\");}},{key:\"ensureDoc\",value:function ensureDoc(e,t){return this.ensure(this.pdfDocument,e,t);}},{key:\"ensureXRef\",value:function ensureXRef(e,t){return this.ensure(this.pdfDocument.xref,e,t);}},{key:\"ensureCatalog\",value:function ensureCatalog(e,t){return this.ensure(this.pdfDocument.catalog,e,t);}},{key:\"getPage\",value:function getPage(e){return this.pdfDocument.getPage(e);}},{key:\"fontFallback\",value:function fontFallback(e,t){return this.pdfDocument.fontFallback(e,t);}},{key:\"loadXfaFonts\",value:function loadXfaFonts(e,t){return this.pdfDocument.loadXfaFonts(e,t);}},{key:\"loadXfaImages\",value:function loadXfaImages(){return this.pdfDocument.loadXfaImages();}},{key:\"serializeXfaData\",value:function serializeXfaData(e){return this.pdfDocument.serializeXfaData(e);}},{key:\"cleanup\",value:function cleanup(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pdfDocument.cleanup(e);}},{key:\"ensure\",value:function(){var _ensure=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(e,t,r){return _regeneratorRuntime.wrap(function _callee3$(_context25){while(1)switch(_context25.prev=_context25.next){case 0:(0,a.unreachable)(\"Abstract method `ensure` called\");case 1:case\"end\":return _context25.stop();}},_callee3);}));function ensure(_x5,_x6,_x7){return _ensure.apply(this,arguments);}return ensure;}()},{key:\"requestRange\",value:function requestRange(e,t){(0,a.unreachable)(\"Abstract method `requestRange` called\");}},{key:\"requestLoadedStream\",value:function requestLoadedStream(){(0,a.unreachable)(\"Abstract method `requestLoadedStream` called\");}},{key:\"sendProgressiveData\",value:function sendProgressiveData(e){(0,a.unreachable)(\"Abstract method `sendProgressiveData` called\");}},{key:\"updatePassword\",value:function updatePassword(e){this._password=e;}},{key:\"terminate\",value:function terminate(e){(0,a.unreachable)(\"Abstract method `terminate` called\");}}]);return BasePdfManager;}();t.LocalPdfManager=/*#__PURE__*/function(_BasePdfManager){_inherits(LocalPdfManager,_BasePdfManager);function LocalPdfManager(e,t,r,a,n,i,c){var _this5;_classCallCheck(this,LocalPdfManager);_this5=_callSuper(this,LocalPdfManager);_this5._docId=e;_this5._password=r;_this5._docBaseUrl=parseDocBaseUrl(c);_this5.msgHandler=a;_this5.evaluatorOptions=n;_this5.enableXfa=i;var l=new o.Stream(t);_this5.pdfDocument=new s.PDFDocument(_assertThisInitialized(_this5),l);_this5._loadedStreamPromise=_Promise.resolve(l);return _this5;}_createClass(LocalPdfManager,[{key:\"ensure\",value:function(){var _ensure2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(e,t,r){var a;return _regeneratorRuntime.wrap(function _callee4$(_context26){while(1)switch(_context26.prev=_context26.next){case 0:a=e[t];return _context26.abrupt(\"return\",\"function\"==typeof a?a.apply(e,r):a);case 2:case\"end\":return _context26.stop();}},_callee4);}));function ensure(_x8,_x9,_x10){return _ensure2.apply(this,arguments);}return ensure;}()},{key:\"requestRange\",value:function requestRange(e,t){return _Promise.resolve();}},{key:\"requestLoadedStream\",value:function requestLoadedStream(){}},{key:\"onLoadedStream\",value:function onLoadedStream(){return this._loadedStreamPromise;}},{key:\"terminate\",value:function terminate(e){}}]);return LocalPdfManager;}(BasePdfManager);t.NetworkPdfManager=/*#__PURE__*/function(_BasePdfManager2){_inherits(NetworkPdfManager,_BasePdfManager2);function NetworkPdfManager(e,t,r,a,i,o){var _this6;_classCallCheck(this,NetworkPdfManager);_this6=_callSuper(this,NetworkPdfManager);_this6._docId=e;_this6._password=r.password;_this6._docBaseUrl=parseDocBaseUrl(o);_this6.msgHandler=r.msgHandler;_this6.evaluatorOptions=a;_this6.enableXfa=i;_this6.streamManager=new n.ChunkedStreamManager(t,{msgHandler:r.msgHandler,length:r.length,disableAutoFetch:r.disableAutoFetch,rangeChunkSize:r.rangeChunkSize});_this6.pdfDocument=new s.PDFDocument(_assertThisInitialized(_this6),_this6.streamManager.getStream());return _this6;}_createClass(NetworkPdfManager,[{key:\"ensure\",value:function(){var _ensure3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(e,t,r){var _a18;return _regeneratorRuntime.wrap(function _callee5$(_context27){while(1)switch(_context27.prev=_context27.next){case 0:_context27.prev=0;_a18=e[t];return _context27.abrupt(\"return\",\"function\"==typeof _a18?_a18.apply(e,r):_a18);case 5:_context27.prev=5;_context27.t0=_context27[\"catch\"](0);if(_context27.t0 instanceof i.MissingDataException){_context27.next=9;break;}throw _context27.t0;case 9:_context27.next=11;return this.requestRange(_context27.t0.begin,_context27.t0.end);case 11:return _context27.abrupt(\"return\",this.ensure(e,t,r));case 12:case\"end\":return _context27.stop();}},_callee5,this,[[0,5]]);}));function ensure(_x11,_x12,_x13){return _ensure3.apply(this,arguments);}return ensure;}()},{key:\"requestRange\",value:function requestRange(e,t){return this.streamManager.requestRange(e,t);}},{key:\"requestLoadedStream\",value:function requestLoadedStream(){this.streamManager.requestAllChunks();}},{key:\"sendProgressiveData\",value:function sendProgressiveData(e){this.streamManager.onReceiveData({chunk:e});}},{key:\"onLoadedStream\",value:function onLoadedStream(){return this.streamManager.onLoadedStream();}},{key:\"terminate\",value:function terminate(e){this.streamManager.abort(e);}}]);return NetworkPdfManager;}(BasePdfManager);},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.ChunkedStreamManager=t.ChunkedStream=void 0;var a=r(2),n=r(131),i=r(135);var ChunkedStream=/*#__PURE__*/function(_i$Stream){_inherits(ChunkedStream,_i$Stream);function ChunkedStream(e,t,r){var _this7;_classCallCheck(this,ChunkedStream);_this7=_callSuper(this,ChunkedStream,[new Uint8Array(e),0,e,null]);_this7.chunkSize=t;_this7._loadedChunks=new _Set();_this7.numChunks=Math.ceil(e/t);_this7.manager=r;_this7.progressiveDataLength=0;_this7.lastSuccessfulEnsureByteChunk=-1;return _this7;}_createClass(ChunkedStream,[{key:\"getMissingChunks\",value:function getMissingChunks(){var e=[];for(var _t16=0,_r14=this.numChunks;_t16<_r14;++_t16)this._loadedChunks.has(_t16)||e.push(_t16);return e;}},{key:\"numChunksLoaded\",get:function get(){return this._loadedChunks.size;}},{key:\"isDataLoaded\",get:function get(){return this.numChunksLoaded===this.numChunks;}},{key:\"onReceiveData\",value:function onReceiveData(e,t){var r=this.chunkSize;if(e%r!=0)throw new Error(\"Bad begin offset: \".concat(e));var a=e+t.byteLength;if(a%r!=0&&a!==this.bytes.length)throw new Error(\"Bad end offset: \".concat(a));this.bytes.set(new Uint8Array(t),e);var n=Math.floor(e/r),i=Math.floor((a-1)/r)+1;for(var _e24=n;_e24<i;++_e24)this._loadedChunks.add(_e24);}},{key:\"onReceiveProgressiveData\",value:function onReceiveProgressiveData(e){var t=this.progressiveDataLength;var r=Math.floor(t/this.chunkSize);this.bytes.set(new Uint8Array(e),t);t+=e.byteLength;this.progressiveDataLength=t;var a=t>=this.end?this.numChunks:Math.floor(t/this.chunkSize);for(var _e25=r;_e25<a;++_e25)this._loadedChunks.add(_e25);}},{key:\"ensureByte\",value:function ensureByte(e){if(e<this.progressiveDataLength)return;var t=Math.floor(e/this.chunkSize);if(!(t>this.numChunks)&&t!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new n.MissingDataException(e,e+1);this.lastSuccessfulEnsureByteChunk=t;}}},{key:\"ensureRange\",value:function ensureRange(e,t){if(e>=t)return;if(t<=this.progressiveDataLength)return;var r=Math.floor(e/this.chunkSize);if(r>this.numChunks)return;var a=Math.min(Math.floor((t-1)/this.chunkSize)+1,this.numChunks);for(var _i15=r;_i15<a;++_i15)if(!this._loadedChunks.has(_i15))throw new n.MissingDataException(e,t);}},{key:\"nextEmptyChunk\",value:function nextEmptyChunk(e){var t=this.numChunks;for(var _r15=0;_r15<t;++_r15){var _a19=(e+_r15)%t;if(!this._loadedChunks.has(_a19))return _a19;}return null;}},{key:\"hasChunk\",value:function hasChunk(e){return this._loadedChunks.has(e);}},{key:\"getByte\",value:function getByte(){var e=this.pos;if(e>=this.end)return-1;e>=this.progressiveDataLength&&this.ensureByte(e);return this.bytes[this.pos++];}},{key:\"getBytes\",value:function getBytes(e){var t=this.bytes,r=this.pos,a=this.end;if(!e){a>this.progressiveDataLength&&this.ensureRange(r,a);return t.subarray(r,a);}var n=r+e;n>a&&(n=a);n>this.progressiveDataLength&&this.ensureRange(r,n);this.pos=n;return t.subarray(r,n);}},{key:\"getByteRange\",value:function getByteRange(e,t){e<0&&(e=0);t>this.end&&(t=this.end);t>this.progressiveDataLength&&this.ensureRange(e,t);return this.bytes.subarray(e,t);}},{key:\"makeSubStream\",value:function makeSubStream(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e);function ChunkedStreamSubstream(){}ChunkedStreamSubstream.prototype=Object.create(this);ChunkedStreamSubstream.prototype.getMissingChunks=function(){var e=this.chunkSize,t=Math.floor(this.start/e),r=Math.floor((this.end-1)/e)+1,a=[];for(var _e26=t;_e26<r;++_e26)this._loadedChunks.has(_e26)||a.push(_e26);return a;};_Object$defineProperty(ChunkedStreamSubstream.prototype,\"isDataLoaded\",{get:function get(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length;},configurable:!0});var a=new ChunkedStreamSubstream();a.pos=a.start=e;a.end=e+t||this.end;a.dict=r;return a;}},{key:\"getBaseStreams\",value:function getBaseStreams(){return[this];}}]);return ChunkedStream;}(i.Stream);t.ChunkedStream=ChunkedStream;t.ChunkedStreamManager=/*#__PURE__*/function(){function ChunkedStreamManager(e,t){_classCallCheck(this,ChunkedStreamManager);this.length=t.length;this.chunkSize=t.rangeChunkSize;this.stream=new ChunkedStream(this.length,this.chunkSize,this);this.pdfNetworkStream=e;this.disableAutoFetch=t.disableAutoFetch;this.msgHandler=t.msgHandler;this.currRequestId=0;this._chunksNeededByRequest=new _Map();this._requestsByChunk=new _Map();this._promisesByRequest=new _Map();this.progressiveDataLength=0;this.aborted=!1;this._loadedStreamCapability=(0,a.createPromiseCapability)();}_createClass(ChunkedStreamManager,[{key:\"onLoadedStream\",value:function onLoadedStream(){return this._loadedStreamCapability.promise;}},{key:\"sendRequest\",value:function sendRequest(e,t){var _this8=this;var r=this.pdfNetworkStream.getRangeReader(e,t);r.isStreamingSupported||(r.onProgress=this.onProgress.bind(this));var n=[],i=0;return new _Promise(function(e,t){var readChunk=function readChunk(s){try{if(!s.done){var _e27=s.value;n.push(_e27);i+=(0,a.arrayByteLength)(_e27);r.isStreamingSupported&&_this8.onProgress({loaded:i});r.read().then(readChunk,t);return;}var o=(0,a.arraysToBytes)(n);n=null;e(o);}catch(e){t(e);}};r.read().then(readChunk,t);}).then(function(t){_this8.aborted||_this8.onReceiveData({chunk:t,begin:e});});}},{key:\"requestAllChunks\",value:function requestAllChunks(){var e=this.stream.getMissingChunks();this._requestChunks(e);return this._loadedStreamCapability.promise;}},{key:\"_requestChunks\",value:function _requestChunks(e){var _this9=this;var t=this.currRequestId++,r=new _Set();this._chunksNeededByRequest.set(t,r);var _iterator12=_createForOfIteratorHelper(e),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var _t18=_step12.value;this.stream.hasChunk(_t18)||r.add(_t18);}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}if(0===r.size)return _Promise.resolve();var n=(0,a.createPromiseCapability)();this._promisesByRequest.set(t,n);var i=[];var _iterator13=_createForOfIteratorHelper(r),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var _e30=_step13.value;var _r17=this._requestsByChunk.get(_e30);if(!_r17){_r17=[];this._requestsByChunk.set(_e30,_r17);i.push(_e30);}_r17.push(t);}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}if(i.length>0){var _e28=this.groupChunks(i);var _iterator14=_createForOfIteratorHelper(_e28),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var _t17=_step14.value;var _e29=_t17.beginChunk*this.chunkSize,_r16=Math.min(_t17.endChunk*this.chunkSize,this.length);this.sendRequest(_e29,_r16).catch(n.reject);}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}}return n.promise.catch(function(e){if(!_this9.aborted)throw e;});}},{key:\"getStream\",value:function getStream(){return this.stream;}},{key:\"requestRange\",value:function requestRange(e,t){t=Math.min(t,this.length);var r=this.getBeginChunk(e),a=this.getEndChunk(t),n=[];for(var _e31=r;_e31<a;++_e31)n.push(_e31);return this._requestChunks(n);}},{key:\"requestRanges\",value:function requestRanges(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var t=[];var _iterator15=_createForOfIteratorHelper(e),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _r18=_step15.value;var _e32=this.getBeginChunk(_r18.begin),_a20=this.getEndChunk(_r18.end);for(var _r19=_e32;_r19<_a20;++_r19)_includesInstanceProperty(t).call(t,_r19)||t.push(_r19);}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}_sortInstanceProperty(t).call(t,function(e,t){return e-t;});return this._requestChunks(t);}},{key:\"groupChunks\",value:function groupChunks(e){var t=[];var r=-1,a=-1;for(var _n8=0,_i16=e.length;_n8<_i16;++_n8){var _i17=e[_n8];r<0&&(r=_i17);if(a>=0&&a+1!==_i17){t.push({beginChunk:r,endChunk:a+1});r=_i17;}_n8+1===e.length&&t.push({beginChunk:r,endChunk:_i17+1});a=_i17;}return t;}},{key:\"onProgress\",value:function onProgress(e){this.msgHandler.send(\"DocProgress\",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length});}},{key:\"onReceiveData\",value:function onReceiveData(e){var t=e.chunk,r=void 0===e.begin,a=r?this.progressiveDataLength:e.begin,n=a+t.byteLength,i=Math.floor(a/this.chunkSize),s=n<this.length?Math.floor(n/this.chunkSize):Math.ceil(n/this.chunkSize);if(r){this.stream.onReceiveProgressiveData(t);this.progressiveDataLength=n;}else this.stream.onReceiveData(a,t);this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);var o=[];for(var _e33=i;_e33<s;++_e33){var _t19=this._requestsByChunk.get(_e33);if(_t19){this._requestsByChunk.delete(_e33);var _iterator16=_createForOfIteratorHelper(_t19),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _r20=_step16.value;var _t20=this._chunksNeededByRequest.get(_r20);_t20.has(_e33)&&_t20.delete(_e33);_t20.size>0||o.push(_r20);}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){var _e34;if(1===this.stream.numChunksLoaded){var _t21=this.stream.numChunks-1;this.stream.hasChunk(_t21)||(_e34=_t21);}else _e34=this.stream.nextEmptyChunk(s);_Number$isInteger(_e34)&&this._requestChunks([_e34]);}for(var _i18=0,_o2=o;_i18<_o2.length;_i18++){var _e35=_o2[_i18];var _t22=this._promisesByRequest.get(_e35);this._promisesByRequest.delete(_e35);_t22.resolve();}this.msgHandler.send(\"DocProgress\",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length});}},{key:\"onError\",value:function onError(e){this._loadedStreamCapability.reject(e);}},{key:\"getBeginChunk\",value:function getBeginChunk(e){return Math.floor(e/this.chunkSize);}},{key:\"getEndChunk\",value:function getEndChunk(e){return Math.floor((e-1)/this.chunkSize)+1;}},{key:\"abort\",value:function abort(e){var _context28;this.aborted=!0;this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(e);var _iterator17=_createForOfIteratorHelper(_valuesInstanceProperty(_context28=this._promisesByRequest).call(_context28)),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var _t23=_step17.value;_t23.reject(e);}}catch(err){_iterator17.e(err);}finally{_iterator17.f();}}}]);return ChunkedStreamManager;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.StringStream=t.Stream=t.NullStream=void 0;var a=r(132),n=r(2);var Stream=/*#__PURE__*/function(_a$BaseStream){_inherits(Stream,_a$BaseStream);function Stream(e,t,r,a){var _this10;_classCallCheck(this,Stream);_this10=_callSuper(this,Stream);_this10.bytes=e instanceof Uint8Array?e:new Uint8Array(e);_this10.start=t||0;_this10.pos=_this10.start;_this10.end=t+r||_this10.bytes.length;_this10.dict=a;return _this10;}_createClass(Stream,[{key:\"length\",get:function get(){return this.end-this.start;}},{key:\"isEmpty\",get:function get(){return 0===this.length;}},{key:\"getByte\",value:function getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++];}},{key:\"getBytes\",value:function getBytes(e){var t=this.bytes,r=this.pos,a=this.end;if(!e)return t.subarray(r,a);var n=r+e;n>a&&(n=a);this.pos=n;return t.subarray(r,n);}},{key:\"getByteRange\",value:function getByteRange(e,t){e<0&&(e=0);t>this.end&&(t=this.end);return this.bytes.subarray(e,t);}},{key:\"reset\",value:function reset(){this.pos=this.start;}},{key:\"moveStart\",value:function moveStart(){this.start=this.pos;}},{key:\"makeSubStream\",value:function makeSubStream(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new Stream(this.bytes.buffer,e,t,r);}}]);return Stream;}(a.BaseStream);t.Stream=Stream;t.StringStream=/*#__PURE__*/function(_Stream){_inherits(StringStream,_Stream);function StringStream(e){_classCallCheck(this,StringStream);return _callSuper(this,StringStream,[(0,n.stringToBytes)(e)]);}return _createClass(StringStream);}(Stream);t.NullStream=/*#__PURE__*/function(_Stream2){_inherits(NullStream,_Stream2);function NullStream(){_classCallCheck(this,NullStream);return _callSuper(this,NullStream,[new Uint8Array(0)]);}return _createClass(NullStream);}(Stream);},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.Page=t.PDFDocument=void 0;var a=r(137),n=r(2),i=r(131),s=r(130),o=r(176),c=r(132),l=r(192),h=r(194),u=r(196),d=r(225),f=r(142),g=r(135),p=r(200),m=r(187),b=r(140),y=r(144),w=r(199),S=r(190),x=r(201),k=r(226);var C=[0,0,612,792];var Page=/*#__PURE__*/function(){function Page(e){_classCallCheck(this,Page);var t=e.pdfManager,r=e.xref,a=e.pageIndex,n=e.pageDict,i=e.ref,s=e.globalIdFactory,o=e.fontCache,c=e.builtInCMapCache,l=e.standardFontDataCache,h=e.globalImageCache,u=e.nonBlendModesSet,d=e.xfaFactory;this.pdfManager=t;this.pageIndex=a;this.pageDict=n;this.xref=r;this.ref=i;this.fontCache=o;this.builtInCMapCache=c;this.standardFontDataCache=l;this.globalImageCache=h;this.nonBlendModesSet=u;this.evaluatorOptions=t.evaluatorOptions;this.resourcesPromise=null;this.xfaFactory=d;var f={obj:0};this._localIdFactory=/*#__PURE__*/function(_s4){_inherits(_class,_s4);function _class(){_classCallCheck(this,_class);return _callSuper(this,_class,arguments);}_createClass(_class,null,[{key:\"createObjId\",value:function createObjId(){var _context29;return _concatInstanceProperty(_context29=\"p\".concat(a,\"_\")).call(_context29,++f.obj);}},{key:\"getPageObjId\",value:function getPageObjId(){return\"page\".concat(i.toString());}}]);return _class;}(s);}_createClass(Page,[{key:\"_getInheritableProperty\",value:function _getInheritableProperty(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var r=(0,i.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(r)?1!==r.length&&r[0]instanceof s.Dict?s.Dict.merge({xref:this.xref,dictArray:r}):r[0]:r;}},{key:\"content\",get:function get(){return this.pageDict.getArray(\"Contents\");}},{key:\"resources\",get:function get(){var e=this._getInheritableProperty(\"Resources\");return(0,n.shadow)(this,\"resources\",e instanceof s.Dict?e:s.Dict.empty);}},{key:\"_getBoundingBox\",value:function _getBoundingBox(e){if(this.xfaData)return this.xfaData.bbox;var t=this._getInheritableProperty(e,!0);if(Array.isArray(t)&&4===t.length){if(t[2]-t[0]!=0&&t[3]-t[1]!=0)return t;(0,n.warn)(\"Empty /\".concat(e,\" entry.\"));}return null;}},{key:\"mediaBox\",get:function get(){return(0,n.shadow)(this,\"mediaBox\",this._getBoundingBox(\"MediaBox\")||C);}},{key:\"cropBox\",get:function get(){return(0,n.shadow)(this,\"cropBox\",this._getBoundingBox(\"CropBox\")||this.mediaBox);}},{key:\"userUnit\",get:function get(){var e=this.pageDict.get(\"UserUnit\");(\"number\"!=typeof e||e<=0)&&(e=1);return(0,n.shadow)(this,\"userUnit\",e);}},{key:\"view\",get:function get(){var e=this.cropBox,t=this.mediaBox;var r;if(e===t||(0,n.isArrayEqual)(e,t))r=t;else{var _a21=n.Util.intersect(e,t);_a21&&_a21[2]-_a21[0]!=0&&_a21[3]-_a21[1]!=0?r=_a21:(0,n.warn)(\"Empty /CropBox and /MediaBox intersection.\");}return(0,n.shadow)(this,\"view\",r||t);}},{key:\"rotate\",get:function get(){var e=this._getInheritableProperty(\"Rotate\")||0;e%90!=0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360);return(0,n.shadow)(this,\"rotate\",e);}},{key:\"_onSubStreamError\",value:function _onSubStreamError(e,t,r){var _context30;if(!this.evaluatorOptions.ignoreErrors)throw t;e.send(\"UnsupportedFeature\",{featureId:n.UNSUPPORTED_FEATURES.errorContentSubStream});(0,n.warn)(_concatInstanceProperty(_context30=\"getContentStream - ignoring sub-stream (\".concat(r,\"): \\\"\")).call(_context30,t,\"\\\".\"));}},{key:\"getContentStream\",value:function getContentStream(e){var _this11=this;return this.pdfManager.ensure(this,\"content\").then(function(t){return t instanceof c.BaseStream?t:Array.isArray(t)?new y.StreamsSequenceStream(t,_this11._onSubStreamError.bind(_this11,e)):new g.NullStream();});}},{key:\"xfaData\",get:function get(){return(0,n.shadow)(this,\"xfaData\",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null);}},{key:\"saveNewAnnotations\",value:function(){var _saveNewAnnotations=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(e,t,r){var _context31,_context32;var n,i,s,o,_iterator18,_step18,_e36,c,l,h,u;return _regeneratorRuntime.wrap(function _callee6$(_context33){while(1)switch(_context33.prev=_context33.next){case 0:if(!this.xfaFactory){_context33.next=2;break;}throw new Error(\"XFA: Cannot save new annotations.\");case 2:n=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});i=this.pageDict;s=_sliceInstanceProperty(_context31=this.annotations).call(_context31);_context33.next=7;return a.AnnotationFactory.saveNewAnnotations(n,t,r);case 7:o=_context33.sent;_iterator18=_createForOfIteratorHelper(o.annotations);try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){_e36=_step18.value.ref;s.push(_e36);}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}c=i.get(\"Annots\");i.set(\"Annots\",s);l=[];h=null;this.xref.encrypt&&(h=this.xref.encrypt.createCipherTransform(this.ref.num,this.ref.gen));(0,S.writeObject)(this.ref,i,l,h);c&&i.set(\"Annots\",c);u=o.dependencies;u.push.apply(u,_concatInstanceProperty(_context32=[{ref:this.ref,data:l.join(\"\")}]).call(_context32,_toConsumableArray(o.annotations)));return _context33.abrupt(\"return\",u);case 20:case\"end\":return _context33.stop();}},_callee6,this);}));function saveNewAnnotations(_x14,_x15,_x16){return _saveNewAnnotations.apply(this,arguments);}return saveNewAnnotations;}()},{key:\"save\",value:function save(e,t,r){var a=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});return this._parsedAnnotations.then(function(e){var i=[];var _iterator19=_createForOfIteratorHelper(e),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var _s5=_step19.value;_s5.mustBePrinted(r)&&i.push(_s5.save(a,t,r).catch(function(e){var _context34;(0,n.warn)(_concatInstanceProperty(_context34=\"save - ignoring annotation data during \\\"\".concat(t.name,\"\\\" task: \\\"\")).call(_context34,e,\"\\\".\"));return null;}));}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}return _Promise.all(i).then(function(e){return _filterInstanceProperty(e).call(e,function(e){return!!e;});});});}},{key:\"loadResources\",value:function loadResources(e){var _this12=this;this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,\"resources\"));return this.resourcesPromise.then(function(){return new p.ObjectLoader(_this12.resources,e,_this12.xref).load();});}},{key:\"getOperatorList\",value:function getOperatorList(e){var _this13=this;var t=e.handler,r=e.sink,s=e.task,o=e.intent,c=e.cacheKey,_e$annotationStorage=e.annotationStorage,l=_e$annotationStorage===void 0?null:_e$annotationStorage;var h=this.getContentStream(t),u=this.loadResources([\"ColorSpace\",\"ExtGState\",\"Font\",\"Pattern\",\"Properties\",\"Shading\",\"XObject\"]),d=new b.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),f=this.xfaFactory?null:(0,i.getNewAnnotationsMap)(l);var g=_Promise.resolve(null);if(f){var _e37=f.get(this.pageIndex);_e37&&(g=a.AnnotationFactory.printNewAnnotations(d,s,_e37));}var p=_Promise.all([h,u]).then(function(e){var _e38=_slicedToArray(e,1),a=_e38[0];var n=new m.OperatorList(o,r);t.send(\"StartRenderPage\",{transparency:d.hasBlendModes(_this13.resources,_this13.nonBlendModesSet),pageIndex:_this13.pageIndex,cacheKey:c});return d.getOperatorList({stream:a,task:s,resources:_this13.resources,operatorList:n}).then(function(){return n;});});return _Promise.all([p,this._parsedAnnotations,g]).then(function(e){var _e39=_slicedToArray(e,3),t=_e39[0],r=_e39[1],a=_e39[2];a&&(r=_concatInstanceProperty(r).call(r,a));if(0===r.length||o&n.RenderingIntentFlag.ANNOTATIONS_DISABLE){t.flush(!0);return{length:t.totalLength};}var i=!!(o&n.RenderingIntentFlag.ANNOTATIONS_FORMS),c=!!(o&n.RenderingIntentFlag.ANY),h=!!(o&n.RenderingIntentFlag.DISPLAY),u=!!(o&n.RenderingIntentFlag.PRINT),f=[];var _iterator20=_createForOfIteratorHelper(r),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var _e40=_step20.value;(c||h&&_e40.mustBeViewed(l)||u&&_e40.mustBePrinted(l))&&f.push(_e40.getOperatorList(d,s,o,i,l).catch(function(e){var _context35;(0,n.warn)(_concatInstanceProperty(_context35=\"getOperatorList - ignoring annotation data during \\\"\".concat(s.name,\"\\\" task: \\\"\")).call(_context35,e,\"\\\".\"));return null;}));}}catch(err){_iterator20.e(err);}finally{_iterator20.f();}return _Promise.all(f).then(function(e){var r=!1,a=!1;var _iterator21=_createForOfIteratorHelper(e),_step21;try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){var _step21$value=_step21.value,_n9=_step21$value.opList,_i19=_step21$value.separateForm,_s6=_step21$value.separateCanvas;t.addOpList(_n9);_i19&&(r=_i19);_s6&&(a=_s6);}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}t.flush(!0,{form:r,canvas:a});return{length:t.totalLength};});});}},{key:\"extractTextContent\",value:function extractTextContent(e){var _this14=this;var t=e.handler,r=e.task,a=e.includeMarkedContent,n=e.sink,i=e.combineTextItems;var s=this.getContentStream(t),o=this.loadResources([\"ExtGState\",\"Font\",\"Properties\",\"XObject\"]);return _Promise.all([s,o]).then(function(e){var _e41=_slicedToArray(e,1),s=_e41[0];return new b.PartialEvaluator({xref:_this14.xref,handler:t,pageIndex:_this14.pageIndex,idFactory:_this14._localIdFactory,fontCache:_this14.fontCache,builtInCMapCache:_this14.builtInCMapCache,standardFontDataCache:_this14.standardFontDataCache,globalImageCache:_this14.globalImageCache,options:_this14.evaluatorOptions}).getTextContent({stream:s,task:r,resources:_this14.resources,includeMarkedContent:a,combineTextItems:i,sink:n,viewBox:_this14.view});});}},{key:\"getStructTree\",value:function(){var _getStructTree=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(){var e;return _regeneratorRuntime.wrap(function _callee7$(_context36){while(1)switch(_context36.prev=_context36.next){case 0:_context36.next=2;return this.pdfManager.ensureCatalog(\"structTreeRoot\");case 2:e=_context36.sent;if(e){_context36.next=5;break;}return _context36.abrupt(\"return\",null);case 5:_context36.next=7;return this.pdfManager.ensure(this,\"_parseStructTree\",[e]);case 7:return _context36.abrupt(\"return\",_context36.sent.serializable);case 8:case\"end\":return _context36.stop();}},_callee7,this);}));function getStructTree(){return _getStructTree.apply(this,arguments);}return getStructTree;}()},{key:\"_parseStructTree\",value:function _parseStructTree(e){var t=new w.StructTreePage(e,this.pageDict);t.parse();return t;}},{key:\"getAnnotationsData\",value:function(){var _getAnnotationsData=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(e,t,r){var a,i,s,o,c,l,h,_iterator22,_step22,_r21,_a22;return _regeneratorRuntime.wrap(function _callee8$(_context38){while(1)switch(_context38.prev=_context38.next){case 0:_context38.next=2;return this._parsedAnnotations;case 2:a=_context38.sent;if(!(0===a.length)){_context38.next=5;break;}return _context38.abrupt(\"return\",[]);case 5:i=[],s=[];c=!!(r&n.RenderingIntentFlag.ANY),l=!!(r&n.RenderingIntentFlag.DISPLAY),h=!!(r&n.RenderingIntentFlag.PRINT);_iterator22=_createForOfIteratorHelper(a);try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){_r21=_step22.value;_a22=c||l&&_r21.viewable;(_a22||h&&_r21.printable)&&s.push(_r21.data);if(_r21.hasTextContent&&_a22){o||(o=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}));i.push(_r21.extractTextContent(o,t,this.view).catch(function(e){var _context37;(0,n.warn)(_concatInstanceProperty(_context37=\"getAnnotationsData - ignoring textContent during \\\"\".concat(t.name,\"\\\" task: \\\"\")).call(_context37,e,\"\\\".\"));}));}}}catch(err){_iterator22.e(err);}finally{_iterator22.f();}_context38.next=11;return _Promise.all(i);case 11:return _context38.abrupt(\"return\",s);case 12:case\"end\":return _context38.stop();}},_callee8,this);}));function getAnnotationsData(_x17,_x18,_x19){return _getAnnotationsData.apply(this,arguments);}return getAnnotationsData;}()},{key:\"annotations\",get:function get(){var e=this._getInheritableProperty(\"Annots\");return(0,n.shadow)(this,\"annotations\",Array.isArray(e)?e:[]);}},{key:\"_parsedAnnotations\",get:function get(){var _this15=this;var e=this.pdfManager.ensure(this,\"annotations\").then(function(){var e=[];var _iterator23=_createForOfIteratorHelper(_this15.annotations),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var _t24=_step23.value;e.push(a.AnnotationFactory.create(_this15.xref,_t24,_this15.pdfManager,_this15._localIdFactory,!1).catch(function(e){(0,n.warn)(\"_parsedAnnotations: \\\"\".concat(e,\"\\\".\"));return null;}));}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}return _Promise.all(e).then(function(e){if(0===e.length)return e;var t=[];var r;var _iterator24=_createForOfIteratorHelper(e),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var _n10=_step24.value;if(_n10)if(_n10 instanceof a.PopupAnnotation){r||(r=[]);r.push(_n10);}else t.push(_n10);}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}r&&t.push.apply(t,_toConsumableArray(r));return t;});});return(0,n.shadow)(this,\"_parsedAnnotations\",e);}},{key:\"jsActions\",get:function get(){var e=(0,i.collectActions)(this.xref,this.pageDict,n.PageActionEventType);return(0,n.shadow)(this,\"jsActions\",e);}}]);return Page;}();t.Page=Page;var v=new Uint8Array([37,80,68,70,45]),O=new Uint8Array([115,116,97,114,116,120,114,101,102]),T=new Uint8Array([101,110,100,111,98,106]),M=/^[1-9]\\.\\d$/;function find(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var n=t.length,i=e.peekBytes(r),s=i.length-n;if(s<=0)return!1;if(a){var _r22=n-1;var _a23=i.length-1;for(;_a23>=_r22;){var _s7=0;for(;_s7<n&&i[_a23-_s7]===t[_r22-_s7];)_s7++;if(_s7>=n){e.pos+=_a23-_r22;return!0;}_a23--;}}else{var _r23=0;for(;_r23<=s;){var _a24=0;for(;_a24<n&&i[_r23+_a24]===t[_a24];)_a24++;if(_a24>=n){e.pos+=_r23;return!0;}_r23++;}}return!1;}t.PDFDocument=/*#__PURE__*/function(){function PDFDocument(e,t){_classCallCheck(this,PDFDocument);if(t.length<=0)throw new n.InvalidPDFException(\"The PDF file is empty, i.e. its size is zero bytes.\");this.pdfManager=e;this.stream=t;this.xref=new k.XRef(t,e);this._pagePromises=new _Map();this._version=null;var r={font:0};this._globalIdFactory=/*#__PURE__*/function(){function _class2(){_classCallCheck(this,_class2);}_createClass(_class2,null,[{key:\"getDocId\",value:function getDocId(){return\"g_\".concat(e.docId);}},{key:\"createFontId\",value:function createFontId(){return\"f\"+ ++r.font;}},{key:\"createObjId\",value:function createObjId(){(0,n.unreachable)(\"Abstract method `createObjId` called.\");}},{key:\"getPageObjId\",value:function getPageObjId(){(0,n.unreachable)(\"Abstract method `getPageObjId` called.\");}}]);return _class2;}();}_createClass(PDFDocument,[{key:\"parse\",value:function parse(e){this.xref.parse(e);this.catalog=new h.Catalog(this.pdfManager,this.xref);this.catalog.version&&(this._version=this.catalog.version);}},{key:\"linearization\",get:function get(){var e=null;try{e=f.Linearization.create(this.stream);}catch(e){if(e instanceof i.MissingDataException)throw e;(0,n.info)(e);}return(0,n.shadow)(this,\"linearization\",e);}},{key:\"startXRef\",get:function get(){var e=this.stream;var t=0;if(this.linearization){e.reset();find(e,T)&&(t=e.pos+6-e.start);}else{var _r24=1024,_a25=O.length;var _n11=!1,_s8=e.end;for(;!_n11&&_s8>0;){_s8-=_r24-_a25;_s8<0&&(_s8=0);e.pos=_s8;_n11=find(e,O,_r24,!0);}if(_n11){e.skip(9);var _r25;do{_r25=e.getByte();}while((0,i.isWhiteSpace)(_r25));var _a26=\"\";for(;_r25>=32&&_r25<=57;){_a26+=String.fromCharCode(_r25);_r25=e.getByte();}t=_parseInt(_a26,10);isNaN(t)&&(t=0);}}return(0,n.shadow)(this,\"startXRef\",t);}},{key:\"checkHeader\",value:function checkHeader(){var e=this.stream;e.reset();if(!find(e,v))return;e.moveStart();var t,r=\"\";for(;(t=e.getByte())>32&&!(r.length>=12);)r+=String.fromCharCode(t);this._version||(this._version=r.substring(5));}},{key:\"parseStartXRef\",value:function parseStartXRef(){this.xref.setStartXRef(this.startXRef);}},{key:\"numPages\",get:function get(){var e=0;e=this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages;return(0,n.shadow)(this,\"numPages\",e);}},{key:\"_hasOnlyDocumentSignatures\",value:function _hasOnlyDocumentSignatures(e){var _this16=this;var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return!!Array.isArray(e)&&e.every(function(e){if(!((e=_this16.xref.fetchIfRef(e))instanceof s.Dict))return!1;if(e.has(\"Kids\")){if(++t>10){(0,n.warn)(\"_hasOnlyDocumentSignatures: maximum recursion depth reached\");return!1;}return _this16._hasOnlyDocumentSignatures(e.get(\"Kids\"),t);}var r=(0,s.isName)(e.get(\"FT\"),\"Sig\"),a=e.get(\"Rect\"),i=Array.isArray(a)&&a.every(function(e){return 0===e;});return r&&i;});}},{key:\"_xfaStreams\",get:function get(){var e=this.catalog.acroForm;if(!e)return null;var t=e.get(\"XFA\"),r={\"xdp:xdp\":\"\",template:\"\",datasets:\"\",config:\"\",connectionSet:\"\",localeSet:\"\",stylesheet:\"\",\"/xdp:xdp\":\"\"};if(t instanceof c.BaseStream&&!t.isEmpty){r[\"xdp:xdp\"]=t;return r;}if(!Array.isArray(t)||0===t.length)return null;for(var _e42=0,_a27=t.length;_e42<_a27;_e42+=2){var _n12=void 0;_n12=0===_e42?\"xdp:xdp\":_e42===_a27-2?\"/xdp:xdp\":t[_e42];if(!r.hasOwnProperty(_n12))continue;var _i20=this.xref.fetchIfRef(t[_e42+1]);_i20 instanceof c.BaseStream&&!_i20.isEmpty&&(r[_n12]=_i20);}return r;}},{key:\"xfaDatasets\",get:function get(){var e=this._xfaStreams;if(!e)return(0,n.shadow)(this,\"xfaDatasets\",null);for(var _i21=0,_arr=[\"datasets\",\"xdp:xdp\"];_i21<_arr.length;_i21++){var _t25=_arr[_i21];var _r26=e[_t25];if(_r26)try{var _e43=_defineProperty({},_t25,(0,n.stringToUTF8String)(_r26.getString()));return(0,n.shadow)(this,\"xfaDatasets\",new d.DatasetReader(_e43));}catch(e){(0,n.warn)(\"XFA - Invalid utf-8 string.\");break;}}return(0,n.shadow)(this,\"xfaDatasets\",null);}},{key:\"xfaData\",get:function get(){var e=this._xfaStreams;if(!e)return null;var t=Object.create(null);for(var _i22=0,_Object$entries4=_Object$entries2(e);_i22<_Object$entries4.length;_i22++){var _Object$entries4$_i=_slicedToArray(_Object$entries4[_i22],2),_r27=_Object$entries4$_i[0],_a28=_Object$entries4$_i[1];if(_a28)try{t[_r27]=(0,n.stringToUTF8String)(_a28.getString());}catch(e){(0,n.warn)(\"XFA - Invalid utf-8 string.\");return null;}}return t;}},{key:\"xfaFactory\",get:function get(){var e;this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(e=this.xfaData);return(0,n.shadow)(this,\"xfaFactory\",e?new x.XFAFactory(e):null);}},{key:\"isPureXfa\",get:function get(){return!!this.xfaFactory&&this.xfaFactory.isValid();}},{key:\"htmlForXfa\",get:function get(){return this.xfaFactory?this.xfaFactory.getPages():null;}},{key:\"loadXfaImages\",value:function(){var _loadXfaImages=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(){var e,t,r,a,_iterator25,_step25,_r28,_t26;return _regeneratorRuntime.wrap(function _callee9$(_context39){while(1)switch(_context39.prev=_context39.next){case 0:_context39.next=2;return this.pdfManager.ensureCatalog(\"xfaImages\");case 2:e=_context39.sent;if(e){_context39.next=5;break;}return _context39.abrupt(\"return\");case 5:t=e.getKeys(),r=new p.ObjectLoader(e,t,this.xref);_context39.next=8;return r.load();case 8:a=new _Map();_iterator25=_createForOfIteratorHelper(t);try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){_r28=_step25.value;_t26=e.get(_r28);_t26 instanceof c.BaseStream&&a.set(_r28,_t26.getBytes());}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}this.xfaFactory.setImages(a);case 12:case\"end\":return _context39.stop();}},_callee9,this);}));function loadXfaImages(){return _loadXfaImages.apply(this,arguments);}return loadXfaImages;}()},{key:\"loadXfaFonts\",value:function(){var _loadXfaFonts=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(e,t){var r,a,c,l,h,u,d,f,g,y,w,_iterator26,_step26,_step26$value,_e45,_r29,_o3,_c,_l3,S,x,_iterator27,_step27,_e46,_iterator28,_step28,_e47,_i23,_arr2,_context40,_r30,_i24,_c2;return _regeneratorRuntime.wrap(function _callee10$(_context41){while(1)switch(_context41.prev=_context41.next){case 0:_context41.next=2;return this.pdfManager.ensureCatalog(\"acroForm\");case 2:r=_context41.sent;if(r){_context41.next=5;break;}return _context41.abrupt(\"return\");case 5:_context41.next=7;return r.getAsync(\"DR\");case 7:a=_context41.sent;if(a instanceof s.Dict){_context41.next=10;break;}return _context41.abrupt(\"return\");case 10:c=new p.ObjectLoader(a,[\"Font\"],this.xref);_context41.next=13;return c.load();case 13:l=a.get(\"Font\");if(l instanceof s.Dict){_context41.next=16;break;}return _context41.abrupt(\"return\");case 16:h=_extends(Object.create(null),this.pdfManager.evaluatorOptions);h.useSystemFonts=!1;u=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:this.catalog.fontCache,builtInCMapCache:this.catalog.builtInCMapCache,standardFontDataCache:this.catalog.standardFontDataCache,options:h});d=new m.OperatorList();f=[];_context41.t0=function clone(){return this;};g={get font(){return f.at(-1);},set font(e){f.push(e);},clone:_context41.t0};y=new _Map();l.forEach(function(e,t){y.set(e,t);});w=[];_iterator26=_createForOfIteratorHelper(y);_context41.prev=27;_iterator26.s();case 29:if((_step26=_iterator26.n()).done){_context41.next=40;break;}_step26$value=_slicedToArray(_step26.value,2),_e45=_step26$value[0],_r29=_step26$value[1];_o3=_r29.get(\"FontDescriptor\");if(_o3 instanceof s.Dict){_context41.next=34;break;}return _context41.abrupt(\"continue\",38);case 34:_c=_o3.get(\"FontFamily\");_c=_c.replace(/[ ]+(\\d)/g,\"$1\");_l3={fontFamily:_c,fontWeight:_o3.get(\"FontWeight\"),italicAngle:-_o3.get(\"ItalicAngle\")};(0,i.validateCSSFont)(_l3)&&w.push(u.handleSetFont(a,[s.Name.get(_e45),1],null,d,t,g,null,_l3).catch(function(e){(0,n.warn)(\"loadXfaFonts: \\\"\".concat(e,\"\\\".\"));return null;}));case 38:_context41.next=29;break;case 40:_context41.next=45;break;case 42:_context41.prev=42;_context41.t1=_context41[\"catch\"](27);_iterator26.e(_context41.t1);case 45:_context41.prev=45;_iterator26.f();return _context41.finish(45);case 48:_context41.next=50;return _Promise.all(w);case 50:S=this.xfaFactory.setFonts(f);if(S){_context41.next=53;break;}return _context41.abrupt(\"return\");case 53:h.ignoreErrors=!0;w.length=0;f.length=0;x=new _Set();_iterator27=_createForOfIteratorHelper(S);try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){_e46=_step27.value;(0,o.getXfaFontName)(\"\".concat(_e46,\"-Regular\"))||x.add(_e46);}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}x.size&&S.push(\"PdfJS-Fallback\");_iterator28=_createForOfIteratorHelper(S);try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){_e47=_step28.value;if(!x.has(_e47))for(_i23=0,_arr2=[{name:\"Regular\",fontWeight:400,italicAngle:0},{name:\"Bold\",fontWeight:700,italicAngle:0},{name:\"Italic\",fontWeight:400,italicAngle:12},{name:\"BoldItalic\",fontWeight:700,italicAngle:12}];_i23<_arr2.length;_i23++){_r30=_arr2[_i23];_i24=_concatInstanceProperty(_context40=\"\".concat(_e47,\"-\")).call(_context40,_r30.name),_c2=(0,o.getXfaFontDict)(_i24);w.push(u.handleSetFont(a,[s.Name.get(_i24),1],null,d,t,g,_c2,{fontFamily:_e47,fontWeight:_r30.fontWeight,italicAngle:_r30.italicAngle}).catch(function(e){(0,n.warn)(\"loadXfaFonts: \\\"\".concat(e,\"\\\".\"));return null;}));}}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}_context41.next=64;return _Promise.all(w);case 64:this.xfaFactory.appendFonts(f,x);case 65:case\"end\":return _context41.stop();}},_callee10,this,[[27,42,45,48]]);}));function loadXfaFonts(_x20,_x21){return _loadXfaFonts.apply(this,arguments);}return loadXfaFonts;}()},{key:\"serializeXfaData\",value:function(){var _serializeXfaData=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(e){return _regeneratorRuntime.wrap(function _callee11$(_context42){while(1)switch(_context42.prev=_context42.next){case 0:return _context42.abrupt(\"return\",this.xfaFactory?this.xfaFactory.serializeData(e):null);case 1:case\"end\":return _context42.stop();}},_callee11,this);}));function serializeXfaData(_x22){return _serializeXfaData.apply(this,arguments);}return serializeXfaData;}()},{key:\"formInfo\",get:function get(){var e={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},t=this.catalog.acroForm;if(!t)return(0,n.shadow)(this,\"formInfo\",e);try{var _r31=t.get(\"Fields\"),_a29=Array.isArray(_r31)&&_r31.length>0;e.hasFields=_a29;var _n13=t.get(\"XFA\");e.hasXfa=Array.isArray(_n13)&&_n13.length>0||_n13 instanceof c.BaseStream&&!_n13.isEmpty;var _i25=!!(1&t.get(\"SigFlags\")),_s9=_i25&&this._hasOnlyDocumentSignatures(_r31);e.hasAcroForm=_a29&&!_s9;e.hasSignatures=_i25;}catch(e){if(e instanceof i.MissingDataException)throw e;(0,n.warn)(\"Cannot fetch form information: \\\"\".concat(e,\"\\\".\"));}return(0,n.shadow)(this,\"formInfo\",e);}},{key:\"documentInfo\",get:function get(){var e=this._version;if(\"string\"!=typeof e||!M.test(e)){(0,n.warn)(\"Invalid PDF header version number: \".concat(e));e=null;}var t={PDFFormatVersion:e,Language:this.catalog.lang,EncryptFilterName:this.xref.encrypt?this.xref.encrypt.filterName:null,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};var r;try{r=this.xref.trailer.get(\"Info\");}catch(e){if(e instanceof i.MissingDataException)throw e;(0,n.info)(\"The document information dictionary is invalid.\");}if(!(r instanceof s.Dict))return(0,n.shadow)(this,\"documentInfo\",t);var _iterator29=_createForOfIteratorHelper(r.getKeys()),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var _context44;var _e48=_step29.value;var _a30=r.get(_e48);switch(_e48){case\"Title\":case\"Author\":case\"Subject\":case\"Keywords\":case\"Creator\":case\"Producer\":case\"CreationDate\":case\"ModDate\":if(\"string\"==typeof _a30){t[_e48]=(0,n.stringToPDFString)(_a30);continue;}break;case\"Trapped\":if(_a30 instanceof s.Name){t[_e48]=_a30;continue;}break;default:var _r32=void 0;switch(_typeof(_a30)){case\"string\":_r32=(0,n.stringToPDFString)(_a30);break;case\"number\":case\"boolean\":_r32=_a30;break;default:_a30 instanceof s.Name&&(_r32=_a30);}if(void 0===_r32){var _context43;(0,n.warn)(_concatInstanceProperty(_context43=\"Bad value, for custom key \\\"\".concat(_e48,\"\\\", in Info: \")).call(_context43,_a30,\".\"));continue;}t.Custom||(t.Custom=Object.create(null));t.Custom[_e48]=_r32;continue;}(0,n.warn)(_concatInstanceProperty(_context44=\"Bad value, for key \\\"\".concat(_e48,\"\\\", in Info: \")).call(_context44,_a30,\".\"));}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}return(0,n.shadow)(this,\"documentInfo\",t);}},{key:\"fingerprints\",get:function get(){function validate(e){return\"string\"==typeof e&&e.length>0&&\"\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\"!==e;}function hexString(e){var t=[];for(var _r33=0,_a31=e.length;_r33<_a31;_r33++){var _a32=e[_r33].toString(16);t.push(_padStartInstanceProperty(_a32).call(_a32,2,\"0\"));}return t.join(\"\");}var e=this.xref.trailer.get(\"ID\");var t,r;if(Array.isArray(e)&&validate(e[0])){t=(0,n.stringToBytes)(e[0]);e[1]!==e[0]&&validate(e[1])&&(r=(0,n.stringToBytes)(e[1]));}else t=(0,l.calculateMD5)(this.stream.getByteRange(0,1024),0,1024);return(0,n.shadow)(this,\"fingerprints\",[hexString(t),r?hexString(r):null]);}},{key:\"_getLinearizationPage\",value:function(){var _getLinearizationPage2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(e){var t,r,a,i,_e49,_r34;return _regeneratorRuntime.wrap(function _callee12$(_context45){while(1)switch(_context45.prev=_context45.next){case 0:t=this.catalog,r=this.linearization,a=this.xref,i=s.Ref.get(r.objectNumberFirst,0);_context45.prev=1;_context45.next=4;return a.fetchAsync(i);case 4:_e49=_context45.sent;if(!(_e49 instanceof s.Dict)){_context45.next=16;break;}_r34=_e49.getRaw(\"Type\");_context45.t0=_r34 instanceof s.Ref;if(!_context45.t0){_context45.next=12;break;}_context45.next=11;return a.fetchAsync(_r34);case 11:_r34=_context45.sent;case 12:if(!((0,s.isName)(_r34,\"Page\")||!_e49.has(\"Type\")&&!_e49.has(\"Kids\"))){_context45.next=16;break;}t.pageKidsCountCache.has(i)||t.pageKidsCountCache.put(i,1);t.pageIndexCache.has(i)||t.pageIndexCache.put(i,0);return _context45.abrupt(\"return\",[_e49,i]);case 16:throw new n.FormatError(\"The Linearization dictionary doesn't point to a valid Page dictionary.\");case 19:_context45.prev=19;_context45.t1=_context45[\"catch\"](1);(0,n.warn)(\"_getLinearizationPage: \\\"\".concat(_context45.t1.message,\"\\\".\"));return _context45.abrupt(\"return\",t.getPageDict(e));case 23:case\"end\":return _context45.stop();}},_callee12,this,[[1,19]]);}));function _getLinearizationPage(_x23){return _getLinearizationPage2.apply(this,arguments);}return _getLinearizationPage;}()},{key:\"getPage\",value:function getPage(e){var _this17=this;var t=this._pagePromises.get(e);if(t)return t;var r=this.catalog,a=this.linearization,n=this.xfaFactory;var i;i=n?_Promise.resolve([s.Dict.empty,null]):a&&a.pageFirst===e?this._getLinearizationPage(e):r.getPageDict(e);i=i.then(function(t){var _t27=_slicedToArray(t,2),a=_t27[0],i=_t27[1];return new Page({pdfManager:_this17.pdfManager,xref:_this17.xref,pageIndex:e,pageDict:a,ref:i,globalIdFactory:_this17._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalImageCache:r.globalImageCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:n});});this._pagePromises.set(e,i);return i;}},{key:\"checkFirstPage\",value:function(){var _checkFirstPage=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(){var _args13=arguments;return _regeneratorRuntime.wrap(function _callee13$(_context46){while(1)switch(_context46.prev=_context46.next){case 0:if(_args13.length>0&&void 0!==_args13[0]&&_args13[0]){_context46.next=13;break;}_context46.prev=1;_context46.next=4;return this.getPage(0);case 4:_context46.next=13;break;case 6:_context46.prev=6;_context46.t0=_context46[\"catch\"](1);if(!(_context46.t0 instanceof i.XRefEntryException)){_context46.next=13;break;}this._pagePromises.delete(0);_context46.next=12;return this.cleanup();case 12:throw new i.XRefParseException();case 13:case\"end\":return _context46.stop();}},_callee13,this,[[1,6]]);}));function checkFirstPage(){return _checkFirstPage.apply(this,arguments);}return checkFirstPage;}()},{key:\"checkLastPage\",value:function(){var _checkLastPage=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(){var e,t,r,a,_o4,_iterator30,_step30,_step30$value,_e50,_step30$value$,_a33,_n14,_i26,_args14=arguments;return _regeneratorRuntime.wrap(function _callee14$(_context47){while(1)switch(_context47.prev=_context47.next){case 0:e=_args14.length>0&&void 0!==_args14[0]&&_args14[0];t=this.catalog,r=this.pdfManager;t.setActualNumPages();_context47.prev=3;_context47.next=6;return _Promise.all([r.ensureDoc(\"xfaFactory\"),r.ensureDoc(\"linearization\"),r.ensureCatalog(\"numPages\")]);case 6:if(!this.xfaFactory){_context47.next=8;break;}return _context47.abrupt(\"return\");case 8:a=this.linearization?this.linearization.numPages:t.numPages;if(_Number$isInteger(a)){_context47.next=11;break;}throw new n.FormatError(\"Page count is not an integer.\");case 11:if(!(a<=1)){_context47.next=13;break;}return _context47.abrupt(\"return\");case 13:_context47.next=15;return this.getPage(a-1);case 15:_context47.next=40;break;case 17:_context47.prev=17;_context47.t0=_context47[\"catch\"](3);this._pagePromises.delete(a-1);_context47.next=22;return this.cleanup();case 22:if(!(_context47.t0 instanceof i.XRefEntryException&&!e)){_context47.next=24;break;}throw new i.XRefParseException();case 24:(0,n.warn)(\"checkLastPage - invalid /Pages tree /Count: \".concat(a,\".\"));_context47.prev=25;_context47.next=28;return t.getAllPageDicts(e);case 28:_o4=_context47.sent;_context47.next=37;break;case 31:_context47.prev=31;_context47.t1=_context47[\"catch\"](25);if(!(_context47.t1 instanceof i.XRefEntryException&&!e)){_context47.next=35;break;}throw new i.XRefParseException();case 35:t.setActualNumPages(1);return _context47.abrupt(\"return\");case 37:_iterator30=_createForOfIteratorHelper(_o4);try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){_step30$value=_slicedToArray(_step30.value,2),_e50=_step30$value[0],_step30$value$=_slicedToArray(_step30$value[1],2),_a33=_step30$value$[0],_n14=_step30$value$[1];_i26=void 0;if(_a33 instanceof Error){_i26=_Promise.reject(_a33);_i26.catch(function(){});}else _i26=_Promise.resolve(new Page({pdfManager:r,xref:this.xref,pageIndex:_e50,pageDict:_a33,ref:_n14,globalIdFactory:this._globalIdFactory,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,standardFontDataCache:t.standardFontDataCache,globalImageCache:t.globalImageCache,nonBlendModesSet:t.nonBlendModesSet,xfaFactory:null}));this._pagePromises.set(_e50,_i26);}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}t.setActualNumPages(_o4.size);case 40:case\"end\":return _context47.stop();}},_callee14,this,[[3,17],[25,31]]);}));function checkLastPage(){return _checkLastPage.apply(this,arguments);}return checkLastPage;}()},{key:\"fontFallback\",value:function fontFallback(e,t){return this.catalog.fontFallback(e,t);}},{key:\"cleanup\",value:function(){var _cleanup=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(){var e,_args15=arguments;return _regeneratorRuntime.wrap(function _callee15$(_context48){while(1)switch(_context48.prev=_context48.next){case 0:e=_args15.length>0&&void 0!==_args15[0]&&_args15[0];return _context48.abrupt(\"return\",this.catalog?this.catalog.cleanup(e):(0,u.clearGlobalCaches)());case 2:case\"end\":return _context48.stop();}},_callee15,this);}));function cleanup(){return _cleanup.apply(this,arguments);}return cleanup;}()},{key:\"_collectFieldObjects\",value:function _collectFieldObjects(e,t,r){var i=this.xref.fetchIfRef(t);if(i.has(\"T\")){var _context49;var _t28=(0,n.stringToPDFString)(i.get(\"T\"));e=\"\"===e?_t28:_concatInstanceProperty(_context49=\"\".concat(e,\".\")).call(_context49,_t28);}r.has(e)||r.set(e,[]);r.get(e).push(a.AnnotationFactory.create(this.xref,t,this.pdfManager,this._localIdFactory,!0).then(function(e){return e&&e.getFieldObject();}).catch(function(e){(0,n.warn)(\"_collectFieldObjects: \\\"\".concat(e,\"\\\".\"));return null;}));if(i.has(\"Kids\")){var _t29=i.get(\"Kids\");var _iterator31=_createForOfIteratorHelper(_t29),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var a=_step31.value;this._collectFieldObjects(e,a,r);}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}}}},{key:\"fieldObjects\",get:function get(){if(!this.formInfo.hasFields)return(0,n.shadow)(this,\"fieldObjects\",_Promise.resolve(null));var e=Object.create(null),t=new _Map();var _iterator32=_createForOfIteratorHelper(this.catalog.acroForm.get(\"Fields\")),_step32;try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var _e51=_step32.value;this._collectFieldObjects(\"\",_e51,t);}}catch(err){_iterator32.e(err);}finally{_iterator32.f();}var r=[];var _iterator33=_createForOfIteratorHelper(t),_step33;try{var _loop3=function _loop3(){var _step33$value=_slicedToArray(_step33.value,2),a=_step33$value[0],n=_step33$value[1];r.push(_Promise.all(n).then(function(t){(t=_filterInstanceProperty(t).call(t,function(e){return!!e;})).length>0&&(e[a]=t);}));};for(_iterator33.s();!(_step33=_iterator33.n()).done;){_loop3();}}catch(err){_iterator33.e(err);}finally{_iterator33.f();}return(0,n.shadow)(this,\"fieldObjects\",_Promise.all(r).then(function(){return e;}));}},{key:\"hasJSActions\",get:function get(){var e=this.pdfManager.ensureDoc(\"_parseHasJSActions\");return(0,n.shadow)(this,\"hasJSActions\",e);}},{key:\"_parseHasJSActions\",value:function(){var _parseHasJSActions2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(){var _yield$Promise$all3,_yield$Promise$all4,e,t;return _regeneratorRuntime.wrap(function _callee16$(_context50){while(1)switch(_context50.prev=_context50.next){case 0:_context50.next=2;return _Promise.all([this.pdfManager.ensureCatalog(\"jsActions\"),this.pdfManager.ensureDoc(\"fieldObjects\")]);case 2:_yield$Promise$all3=_context50.sent;_yield$Promise$all4=_slicedToArray(_yield$Promise$all3,2);e=_yield$Promise$all4[0];t=_yield$Promise$all4[1];return _context50.abrupt(\"return\",!!e||!!t&&_Object$values(t).some(function(e){return e.some(function(e){return null!==e.actions;});}));case 7:case\"end\":return _context50.stop();}},_callee16,this);}));function _parseHasJSActions(){return _parseHasJSActions2.apply(this,arguments);}return _parseHasJSActions;}()},{key:\"calculationOrderIds\",get:function get(){var e=this.catalog.acroForm;if(!e||!e.has(\"CO\"))return(0,n.shadow)(this,\"calculationOrderIds\",null);var t=e.get(\"CO\");if(!Array.isArray(t)||0===t.length)return(0,n.shadow)(this,\"calculationOrderIds\",null);var r=[];var _iterator34=_createForOfIteratorHelper(t),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var _e52=_step34.value;_e52 instanceof s.Ref&&r.push(_e52.toString());}}catch(err){_iterator34.e(err);}finally{_iterator34.f();}return 0===r.length?(0,n.shadow)(this,\"calculationOrderIds\",null):(0,n.shadow)(this,\"calculationOrderIds\",r);}}]);return PDFDocument;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.PopupAnnotation=t.MarkupAnnotation=t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0;t.getQuadPoints=getQuadPoints;var a=r(2),n=r(131),i=r(138),s=r(130),o=r(190),c=r(132),l=r(185),h=r(194),u=r(139),d=r(197),f=r(200),g=r(187),p=r(135),m=r(201);t.AnnotationFactory=/*#__PURE__*/function(){function AnnotationFactory(){_classCallCheck(this,AnnotationFactory);}_createClass(AnnotationFactory,null,[{key:\"create\",value:function create(e,t,r,a,n){var _this18=this;return _Promise.all([r.ensureCatalog(\"acroForm\"),r.ensureCatalog(\"baseUrl\"),r.ensureDoc(\"xfaDatasets\"),n?this._getPageIndex(e,t,r):-1]).then(function(i){var _i27=_slicedToArray(i,4),s=_i27[0],o=_i27[1],c=_i27[2],l=_i27[3];return r.ensure(_this18,\"_create\",[e,t,r,a,s,c,n,l]);});}},{key:\"_create\",value:function _create(e,t,r,i,o,c,l){var h=arguments.length>7&&void 0!==arguments[7]?arguments[7]:-1;var u=e.fetchIfRef(t);if(!(u instanceof s.Dict))return;var d=t instanceof s.Ref?t.toString():\"annot_\".concat(i.createObjId());var f=u.get(\"Subtype\");f=f instanceof s.Name?f.name:null;var g={xref:e,ref:t,dict:u,subtype:f,id:d,pdfManager:r,acroForm:o instanceof s.Dict?o:s.Dict.empty,xfaDatasets:c,collectFields:l,pageIndex:h};switch(f){case\"Link\":return new LinkAnnotation(g);case\"Text\":return new TextAnnotation(g);case\"Widget\":var _e53=(0,n.getInheritableProperty)({dict:u,key:\"FT\"});_e53=_e53 instanceof s.Name?_e53.name:null;switch(_e53){case\"Tx\":return new TextWidgetAnnotation(g);case\"Btn\":return new ButtonWidgetAnnotation(g);case\"Ch\":return new ChoiceWidgetAnnotation(g);case\"Sig\":return new SignatureWidgetAnnotation(g);}(0,a.warn)(\"Unimplemented widget field type \\\"\".concat(_e53,\"\\\", falling back to base field type.\"));return new WidgetAnnotation(g);case\"Popup\":return new PopupAnnotation(g);case\"FreeText\":return new FreeTextAnnotation(g);case\"Line\":return new LineAnnotation(g);case\"Square\":return new SquareAnnotation(g);case\"Circle\":return new CircleAnnotation(g);case\"PolyLine\":return new PolylineAnnotation(g);case\"Polygon\":return new PolygonAnnotation(g);case\"Caret\":return new CaretAnnotation(g);case\"Ink\":return new InkAnnotation(g);case\"Highlight\":return new HighlightAnnotation(g);case\"Underline\":return new UnderlineAnnotation(g);case\"Squiggly\":return new SquigglyAnnotation(g);case\"StrikeOut\":return new StrikeOutAnnotation(g);case\"Stamp\":return new StampAnnotation(g);case\"FileAttachment\":return new FileAttachmentAnnotation(g);default:l||(f?(0,a.warn)(\"Unimplemented annotation type \\\"\".concat(f,\"\\\", falling back to base annotation.\")):(0,a.warn)(\"Annotation is missing the required /Subtype.\"));return new Annotation(g);}}},{key:\"_getPageIndex\",value:function(){var _getPageIndex2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(e,t,r){var _a34,_n15;return _regeneratorRuntime.wrap(function _callee17$(_context51){while(1)switch(_context51.prev=_context51.next){case 0:_context51.prev=0;_context51.next=3;return e.fetchIfRefAsync(t);case 3:_a34=_context51.sent;if(_a34 instanceof s.Dict){_context51.next=6;break;}return _context51.abrupt(\"return\",-1);case 6:_n15=_a34.getRaw(\"P\");if(_n15 instanceof s.Ref){_context51.next=9;break;}return _context51.abrupt(\"return\",-1);case 9:_context51.next=11;return r.ensureCatalog(\"getPageIndex\",[_n15]);case 11:return _context51.abrupt(\"return\",_context51.sent);case 14:_context51.prev=14;_context51.t0=_context51[\"catch\"](0);(0,a.warn)(\"_getPageIndex: \\\"\".concat(_context51.t0,\"\\\".\"));return _context51.abrupt(\"return\",-1);case 18:case\"end\":return _context51.stop();}},_callee17,null,[[0,14]]);}));function _getPageIndex(_x24,_x25,_x26){return _getPageIndex2.apply(this,arguments);}return _getPageIndex;}()},{key:\"saveNewAnnotations\",value:function(){var _saveNewAnnotations2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(e,t,r){var n,i,c,l,_iterator35,_step35,_h,_e54,_t30;return _regeneratorRuntime.wrap(function _callee18$(_context52){while(1)switch(_context52.prev=_context52.next){case 0:n=e.xref;c=[],l=[];_iterator35=_createForOfIteratorHelper(r);_context52.prev=3;_iterator35.s();case 5:if((_step35=_iterator35.n()).done){_context52.next=16;break;}_h=_step35.value;_context52.t0=_h.annotationType;_context52.next=_context52.t0===a.AnnotationEditorType.FREETEXT?10:_context52.t0===a.AnnotationEditorType.INK?13:14;break;case 10:if(!i){_e54=new s.Dict(n);_e54.set(\"BaseFont\",s.Name.get(\"Helvetica\"));_e54.set(\"Type\",s.Name.get(\"Font\"));_e54.set(\"Subtype\",s.Name.get(\"Type1\"));_e54.set(\"Encoding\",s.Name.get(\"WinAnsiEncoding\"));_t30=[];i=n.getNewRef();(0,o.writeObject)(i,_e54,_t30,null);c.push({ref:i,data:_t30.join(\"\")});}l.push(FreeTextAnnotation.createNewAnnotation(n,_h,c,{evaluator:e,task:t,baseFontRef:i}));return _context52.abrupt(\"break\",14);case 13:l.push(InkAnnotation.createNewAnnotation(n,_h,c));case 14:_context52.next=5;break;case 16:_context52.next=21;break;case 18:_context52.prev=18;_context52.t1=_context52[\"catch\"](3);_iterator35.e(_context52.t1);case 21:_context52.prev=21;_iterator35.f();return _context52.finish(21);case 24:_context52.next=26;return _Promise.all(l);case 26:_context52.t2=_context52.sent;_context52.t3=c;return _context52.abrupt(\"return\",{annotations:_context52.t2,dependencies:_context52.t3});case 29:case\"end\":return _context52.stop();}},_callee18,null,[[3,18,21,24]]);}));function saveNewAnnotations(_x27,_x28,_x29){return _saveNewAnnotations2.apply(this,arguments);}return saveNewAnnotations;}()},{key:\"printNewAnnotations\",value:function(){var _printNewAnnotations=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(e,t,r){var n,i,_iterator36,_step36,_s10;return _regeneratorRuntime.wrap(function _callee19$(_context53){while(1)switch(_context53.prev=_context53.next){case 0:if(r){_context53.next=2;break;}return _context53.abrupt(\"return\",null);case 2:n=e.xref,i=[];_iterator36=_createForOfIteratorHelper(r);_context53.prev=4;_iterator36.s();case 6:if((_step36=_iterator36.n()).done){_context53.next=16;break;}_s10=_step36.value;_context53.t0=_s10.annotationType;_context53.next=_context53.t0===a.AnnotationEditorType.FREETEXT?11:_context53.t0===a.AnnotationEditorType.INK?13:14;break;case 11:i.push(FreeTextAnnotation.createNewPrintAnnotation(n,_s10,{evaluator:e,task:t}));return _context53.abrupt(\"break\",14);case 13:i.push(InkAnnotation.createNewPrintAnnotation(n,_s10));case 14:_context53.next=6;break;case 16:_context53.next=21;break;case 18:_context53.prev=18;_context53.t1=_context53[\"catch\"](4);_iterator36.e(_context53.t1);case 21:_context53.prev=21;_iterator36.f();return _context53.finish(21);case 24:return _context53.abrupt(\"return\",_Promise.all(i));case 25:case\"end\":return _context53.stop();}},_callee19,null,[[4,18,21,24]]);}));function printNewAnnotations(_x30,_x31,_x32){return _printNewAnnotations.apply(this,arguments);}return printNewAnnotations;}()}]);return AnnotationFactory;}();function getRgbColor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8ClampedArray(3);if(!Array.isArray(e))return t;var r=t||new Uint8ClampedArray(3);switch(e.length){case 0:return null;case 1:u.ColorSpace.singletons.gray.getRgbItem(e,0,r,0);return r;case 3:u.ColorSpace.singletons.rgb.getRgbItem(e,0,r,0);return r;case 4:u.ColorSpace.singletons.cmyk.getRgbItem(e,0,r,0);return r;default:return t;}}function getQuadPoints(e,t){if(!e.has(\"QuadPoints\"))return null;var r=e.getArray(\"QuadPoints\");if(!Array.isArray(r)||0===r.length||r.length%8>0)return null;var a=[];for(var _e55=0,_n16=r.length/8;_e55<_n16;_e55++){a.push([]);for(var _n17=8*_e55,i=8*_e55+8;_n17<i;_n17+=2){var _i28=r[_n17],_s11=r[_n17+1];if(null!==t&&(_i28<t[0]||_i28>t[2]||_s11<t[1]||_s11>t[3]))return null;a[_e55].push({x:_i28,y:_s11});}}return _mapInstanceProperty(a).call(a,function(e){var _e$reduce=_reduceInstanceProperty(e).call(e,function(e,t){var _e56=_slicedToArray(e,4),r=_e56[0],a=_e56[1],n=_e56[2],i=_e56[3];return[Math.min(r,t.x),Math.max(a,t.x),Math.min(n,t.y),Math.max(i,t.y)];},[Number.MAX_VALUE,Number.MIN_VALUE,Number.MAX_VALUE,Number.MIN_VALUE]),_e$reduce2=_slicedToArray(_e$reduce,4),t=_e$reduce2[0],r=_e$reduce2[1],a=_e$reduce2[2],n=_e$reduce2[3];return[{x:t,y:n},{x:r,y:n},{x:t,y:a},{x:r,y:a}];});}function getTransformMatrix(e,t,r){var _a$Util$getAxialAlign=a.Util.getAxialAlignedBoundingBox(t,r),_a$Util$getAxialAlign2=_slicedToArray(_a$Util$getAxialAlign,4),n=_a$Util$getAxialAlign2[0],i=_a$Util$getAxialAlign2[1],s=_a$Util$getAxialAlign2[2],o=_a$Util$getAxialAlign2[3];if(n===s||i===o)return[1,0,0,1,e[0],e[1]];var c=(e[2]-e[0])/(s-n),l=(e[3]-e[1])/(o-i);return[c,0,0,l,e[0]-n*c,e[1]-i*l];}var Annotation=/*#__PURE__*/function(){function Annotation(e){_classCallCheck(this,Annotation);var t=e.dict;this.setTitle(t.get(\"T\"));this.setContents(t.get(\"Contents\"));this.setModificationDate(t.get(\"M\"));this.setFlags(t.get(\"F\"));this.setRectangle(t.getArray(\"Rect\"));this.setColor(t.getArray(\"C\"));this.setBorderStyle(t);this.setAppearance(t);this.setOptionalContent(t);var r=t.get(\"MK\");this.setBorderAndBackgroundColors(r);this.setRotation(r);this._streams=[];this.appearance&&this._streams.push(this.appearance);this.data={annotationFlags:_flagsInstanceProperty(this),borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:e.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:e.subtype,hasOwnCanvas:!1};if(e.collectFields){var _r35=t.get(\"Kids\");if(Array.isArray(_r35)){var _e57=[];var _iterator37=_createForOfIteratorHelper(_r35),_step37;try{for(_iterator37.s();!(_step37=_iterator37.n()).done;){var _t31=_step37.value;_t31 instanceof s.Ref&&_e57.push(_t31.toString());}}catch(err){_iterator37.e(err);}finally{_iterator37.f();}0!==_e57.length&&(this.data.kidIds=_e57);}this.data.actions=(0,n.collectActions)(e.xref,t,a.AnnotationActionEventType);this.data.fieldName=this._constructFieldName(t);this.data.pageIndex=e.pageIndex;}this._fallbackFontDict=null;}_createClass(Annotation,[{key:\"_hasFlag\",value:function _hasFlag(e,t){return!!(e&t);}},{key:\"_isViewable\",value:function _isViewable(e){return!this._hasFlag(e,a.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,a.AnnotationFlag.NOVIEW);}},{key:\"_isPrintable\",value:function _isPrintable(e){return this._hasFlag(e,a.AnnotationFlag.PRINT)&&!this._hasFlag(e,a.AnnotationFlag.INVISIBLE);}},{key:\"mustBeViewed\",value:function mustBeViewed(e){var t=e&&e.get(this.data.id);return t&&void 0!==t.hidden?!t.hidden:this.viewable&&!this._hasFlag(_flagsInstanceProperty(this),a.AnnotationFlag.HIDDEN);}},{key:\"mustBePrinted\",value:function mustBePrinted(e){var t=e&&e.get(this.data.id);return t&&void 0!==t.print?t.print:this.printable;}},{key:\"viewable\",get:function get(){return null!==this.data.quadPoints&&(0===_flagsInstanceProperty(this)||this._isViewable(_flagsInstanceProperty(this)));}},{key:\"printable\",get:function get(){return null!==this.data.quadPoints&&0!==_flagsInstanceProperty(this)&&this._isPrintable(_flagsInstanceProperty(this));}},{key:\"_parseStringHelper\",value:function _parseStringHelper(e){var t=\"string\"==typeof e?(0,a.stringToPDFString)(e):\"\";return{str:t,dir:t&&\"rtl\"===(0,l.bidi)(t).dir?\"rtl\":\"ltr\"};}},{key:\"setTitle\",value:function setTitle(e){this._title=this._parseStringHelper(e);}},{key:\"setContents\",value:function setContents(e){this._contents=this._parseStringHelper(e);}},{key:\"setModificationDate\",value:function setModificationDate(e){this.modificationDate=\"string\"==typeof e?e:null;}},{key:\"setFlags\",value:function setFlags(e){this.flags=_Number$isInteger(e)&&e>0?e:0;}},{key:\"hasFlag\",value:function hasFlag(e){return this._hasFlag(_flagsInstanceProperty(this),e);}},{key:\"setRectangle\",value:function setRectangle(e){Array.isArray(e)&&4===e.length?this.rectangle=a.Util.normalizeRect(e):this.rectangle=[0,0,0,0];}},{key:\"setColor\",value:function setColor(e){this.color=getRgbColor(e);}},{key:\"setLineEndings\",value:function setLineEndings(e){this.lineEndings=[\"None\",\"None\"];if(Array.isArray(e)&&2===e.length)for(var _t32=0;_t32<2;_t32++){var _r36=e[_t32];if(_r36 instanceof s.Name)switch(_r36.name){case\"None\":continue;case\"Square\":case\"Circle\":case\"Diamond\":case\"OpenArrow\":case\"ClosedArrow\":case\"Butt\":case\"ROpenArrow\":case\"RClosedArrow\":case\"Slash\":this.lineEndings[_t32]=_r36.name;continue;}(0,a.warn)(\"Ignoring invalid lineEnding: \".concat(_r36));}}},{key:\"setRotation\",value:function setRotation(e){this.rotation=0;if(e instanceof s.Dict){var _t33=e.get(\"R\")||0;if(_Number$isInteger(_t33)&&0!==_t33){_t33%=360;_t33<0&&(_t33+=360);_t33%90==0&&(this.rotation=_t33);}}}},{key:\"setBorderAndBackgroundColors\",value:function setBorderAndBackgroundColors(e){if(e instanceof s.Dict){this.borderColor=getRgbColor(e.getArray(\"BC\"),null);this.backgroundColor=getRgbColor(e.getArray(\"BG\"),null);}else this.borderColor=this.backgroundColor=null;}},{key:\"setBorderStyle\",value:function setBorderStyle(e){this.borderStyle=new AnnotationBorderStyle();if(e instanceof s.Dict)if(e.has(\"BS\")){var _t34=e.get(\"BS\"),_r37=_t34.get(\"Type\");if(!_r37||(0,s.isName)(_r37,\"Border\")){this.borderStyle.setWidth(_t34.get(\"W\"),this.rectangle);this.borderStyle.setStyle(_t34.get(\"S\"));this.borderStyle.setDashArray(_t34.getArray(\"D\"));}}else if(e.has(\"Border\")){var _t35=e.getArray(\"Border\");if(Array.isArray(_t35)&&_t35.length>=3){this.borderStyle.setHorizontalCornerRadius(_t35[0]);this.borderStyle.setVerticalCornerRadius(_t35[1]);this.borderStyle.setWidth(_t35[2],this.rectangle);4===_t35.length&&this.borderStyle.setDashArray(_t35[3],!0);}}else this.borderStyle.setWidth(0);}},{key:\"setAppearance\",value:function setAppearance(e){this.appearance=null;var t=e.get(\"AP\");if(!(t instanceof s.Dict))return;var r=t.get(\"N\");if(r instanceof c.BaseStream){this.appearance=r;return;}if(!(r instanceof s.Dict))return;var a=e.get(\"AS\");a instanceof s.Name&&r.has(a.name)&&(this.appearance=r.get(a.name));}},{key:\"setOptionalContent\",value:function setOptionalContent(e){this.oc=null;var t=e.get(\"OC\");t instanceof s.Name?(0,a.warn)(\"setOptionalContent: Support for /Name-entry is not implemented.\"):t instanceof s.Dict&&(this.oc=t);}},{key:\"loadResources\",value:function loadResources(e,t){return t.dict.getAsync(\"Resources\").then(function(t){if(!t)return;return new f.ObjectLoader(t,e,t.xref).load().then(function(){return t;});});}},{key:\"getOperatorList\",value:function(){var _getOperatorList=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(e,t,r,n,i){var o,c,l,h,u,d,f,m,b,y;return _regeneratorRuntime.wrap(function _callee20$(_context54){while(1)switch(_context54.prev=_context54.next){case 0:o=this.data;c=this.appearance;l=!!(this.data.hasOwnCanvas&&r&a.RenderingIntentFlag.DISPLAY);if(c){_context54.next=8;break;}if(l){_context54.next=6;break;}return _context54.abrupt(\"return\",{opList:new g.OperatorList(),separateForm:!1,separateCanvas:!1});case 6:c=new p.StringStream(\"\");c.dict=new s.Dict();case 8:h=c.dict;_context54.next=11;return this.loadResources([\"ExtGState\",\"ColorSpace\",\"Pattern\",\"Shading\",\"XObject\",\"Font\"],c);case 11:u=_context54.sent;d=h.getArray(\"BBox\")||[0,0,1,1];f=h.getArray(\"Matrix\")||[1,0,0,1,0,0];m=getTransformMatrix(o.rect,d,f);b=new g.OperatorList();_context54.t0=this.oc;if(!_context54.t0){_context54.next=21;break;}_context54.next=20;return e.parseMarkedContentProps(this.oc,null);case 20:y=_context54.sent;case 21:void 0!==y&&b.addOp(a.OPS.beginMarkedContentProps,[\"OC\",y]);b.addOp(a.OPS.beginAnnotation,[o.id,o.rect,m,f,l]);_context54.next=25;return e.getOperatorList({stream:c,task:t,resources:u,operatorList:b,fallbackFontDict:this._fallbackFontDict});case 25:b.addOp(a.OPS.endAnnotation,[]);void 0!==y&&b.addOp(a.OPS.endMarkedContent,[]);this.reset();return _context54.abrupt(\"return\",{opList:b,separateForm:!1,separateCanvas:l});case 29:case\"end\":return _context54.stop();}},_callee20,this);}));function getOperatorList(_x33,_x34,_x35,_x36,_x37){return _getOperatorList.apply(this,arguments);}return getOperatorList;}()},{key:\"save\",value:function(){var _save=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(e,t,r){return _regeneratorRuntime.wrap(function _callee21$(_context55){while(1)switch(_context55.prev=_context55.next){case 0:return _context55.abrupt(\"return\",null);case 1:case\"end\":return _context55.stop();}},_callee21);}));function save(_x38,_x39,_x40){return _save.apply(this,arguments);}return save;}()},{key:\"hasTextContent\",get:function get(){return!1;}},{key:\"extractTextContent\",value:function(){var _extractTextContent=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(e,t,r){var a,n,i,s;return _regeneratorRuntime.wrap(function _callee22$(_context56){while(1)switch(_context56.prev=_context56.next){case 0:if(this.appearance){_context56.next=2;break;}return _context56.abrupt(\"return\");case 2:_context56.next=4;return this.loadResources([\"ExtGState\",\"Font\",\"Properties\",\"XObject\"],this.appearance);case 4:a=_context56.sent;n=[];i=[];s={desiredSize:Math.Infinity,ready:!0,enqueue:function enqueue(e,t){var _iterator38=_createForOfIteratorHelper(e.items),_step38;try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){var _t36=_step38.value;i.push(_t36.str);if(_t36.hasEOL){n.push(i.join(\"\"));i.length=0;}}}catch(err){_iterator38.e(err);}finally{_iterator38.f();}}};_context56.next=10;return e.getTextContent({stream:this.appearance,task:t,resources:a,includeMarkedContent:!0,combineTextItems:!0,sink:s,viewBox:r});case 10:this.reset();i.length&&n.push(i.join(\"\"));n.length>0&&(this.data.textContent=n);case 13:case\"end\":return _context56.stop();}},_callee22,this);}));function extractTextContent(_x41,_x42,_x43){return _extractTextContent.apply(this,arguments);}return extractTextContent;}()},{key:\"getFieldObject\",value:function getFieldObject(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:\"\",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null;}},{key:\"reset\",value:function reset(){var _iterator39=_createForOfIteratorHelper(this._streams),_step39;try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var _e58=_step39.value;_e58.reset();}}catch(err){_iterator39.e(err);}finally{_iterator39.f();}}},{key:\"_constructFieldName\",value:function _constructFieldName(e){if(!e.has(\"T\")&&!e.has(\"Parent\")){(0,a.warn)(\"Unknown field name, falling back to empty field name.\");return\"\";}if(!e.has(\"Parent\"))return(0,a.stringToPDFString)(e.get(\"T\"));var t=[];e.has(\"T\")&&t.unshift((0,a.stringToPDFString)(e.get(\"T\")));var r=e;var n=new s.RefSet();e.objId&&n.put(e.objId);for(;r.has(\"Parent\");){r=r.get(\"Parent\");if(!(r instanceof s.Dict)||r.objId&&n.has(r.objId))break;r.objId&&n.put(r.objId);r.has(\"T\")&&t.unshift((0,a.stringToPDFString)(r.get(\"T\")));}return t.join(\".\");}}]);return Annotation;}();t.Annotation=Annotation;var AnnotationBorderStyle=/*#__PURE__*/function(){function AnnotationBorderStyle(){_classCallCheck(this,AnnotationBorderStyle);this.width=1;this.style=a.AnnotationBorderStyleType.SOLID;this.dashArray=[3];this.horizontalCornerRadius=0;this.verticalCornerRadius=0;}_createClass(AnnotationBorderStyle,[{key:\"setWidth\",value:function setWidth(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if(e instanceof s.Name)this.width=0;else if(\"number\"==typeof e){if(e>0){var _r38=(t[2]-t[0])/2,_n18=(t[3]-t[1])/2;if(_r38>0&&_n18>0&&(e>_r38||e>_n18)){(0,a.warn)(\"AnnotationBorderStyle.setWidth - ignoring width: \".concat(e));e=1;}}this.width=e;}}},{key:\"setStyle\",value:function setStyle(e){if(e instanceof s.Name)switch(e.name){case\"S\":this.style=a.AnnotationBorderStyleType.SOLID;break;case\"D\":this.style=a.AnnotationBorderStyleType.DASHED;break;case\"B\":this.style=a.AnnotationBorderStyleType.BEVELED;break;case\"I\":this.style=a.AnnotationBorderStyleType.INSET;break;case\"U\":this.style=a.AnnotationBorderStyleType.UNDERLINE;}}},{key:\"setDashArray\",value:function setDashArray(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)&&e.length>0){var _r39=!0,_a35=!0;var _iterator40=_createForOfIteratorHelper(e),_step40;try{for(_iterator40.s();!(_step40=_iterator40.n()).done;){var _t37=_step40.value;if(!(+_t37>=0)){_r39=!1;break;}_t37>0&&(_a35=!1);}}catch(err){_iterator40.e(err);}finally{_iterator40.f();}if(_r39&&!_a35){this.dashArray=e;t&&this.setStyle(s.Name.get(\"D\"));}else this.width=0;}else e&&(this.width=0);}},{key:\"setHorizontalCornerRadius\",value:function setHorizontalCornerRadius(e){_Number$isInteger(e)&&(this.horizontalCornerRadius=e);}},{key:\"setVerticalCornerRadius\",value:function setVerticalCornerRadius(e){_Number$isInteger(e)&&(this.verticalCornerRadius=e);}}]);return AnnotationBorderStyle;}();t.AnnotationBorderStyle=AnnotationBorderStyle;var MarkupAnnotation=/*#__PURE__*/function(_Annotation){_inherits(MarkupAnnotation,_Annotation);function MarkupAnnotation(e){var _this19;_classCallCheck(this,MarkupAnnotation);_this19=_callSuper(this,MarkupAnnotation,[e]);var t=e.dict;if(t.has(\"IRT\")){var _e59=t.getRaw(\"IRT\");_this19.data.inReplyTo=_e59 instanceof s.Ref?_e59.toString():null;var _r40=t.get(\"RT\");_this19.data.replyType=_r40 instanceof s.Name?_r40.name:a.AnnotationReplyType.REPLY;}if(_this19.data.replyType===a.AnnotationReplyType.GROUP){var _e60=t.get(\"IRT\");_this19.setTitle(_e60.get(\"T\"));_this19.data.titleObj=_this19._title;_this19.setContents(_e60.get(\"Contents\"));_this19.data.contentsObj=_this19._contents;if(_e60.has(\"CreationDate\")){_this19.setCreationDate(_e60.get(\"CreationDate\"));_this19.data.creationDate=_this19.creationDate;}else _this19.data.creationDate=null;if(_e60.has(\"M\")){_this19.setModificationDate(_e60.get(\"M\"));_this19.data.modificationDate=_this19.modificationDate;}else _this19.data.modificationDate=null;_this19.data.hasPopup=_e60.has(\"Popup\");if(_e60.has(\"C\")){_this19.setColor(_e60.getArray(\"C\"));_this19.data.color=_this19.color;}else _this19.data.color=null;}else{_this19.data.titleObj=_this19._title;_this19.setCreationDate(t.get(\"CreationDate\"));_this19.data.creationDate=_this19.creationDate;_this19.data.hasPopup=t.has(\"Popup\");t.has(\"C\")||(_this19.data.color=null);}t.has(\"RC\")&&(_this19.data.richText=m.XFAFactory.getRichTextAsHtml(t.get(\"RC\")));return _this19;}_createClass(MarkupAnnotation,[{key:\"setCreationDate\",value:function setCreationDate(e){this.creationDate=\"string\"==typeof e?e:null;}},{key:\"_setDefaultAppearance\",value:function _setDefaultAppearance(e){var _context57,_context58,_context59,_context60;var t=e.xref,r=e.extra,a=e.strokeColor,n=e.fillColor,i=e.blendMode,o=e.strokeAlpha,c=e.fillAlpha,l=e.pointsCallback,h=Number.MAX_VALUE,u=Number.MAX_VALUE,d=Number.MIN_VALUE,f=Number.MIN_VALUE;var g=[\"q\"];r&&g.push(r);a&&g.push(_concatInstanceProperty(_context57=_concatInstanceProperty(_context58=\"\".concat(a[0],\" \")).call(_context58,a[1],\" \")).call(_context57,a[2],\" RG\"));n&&g.push(_concatInstanceProperty(_context59=_concatInstanceProperty(_context60=\"\".concat(n[0],\" \")).call(_context60,n[1],\" \")).call(_context59,n[2],\" rg\"));var m=this.data.quadPoints;m||(m=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]]);var _iterator41=_createForOfIteratorHelper(m),_step41;try{for(_iterator41.s();!(_step41=_iterator41.n()).done;){var _e61=_step41.value;var _l4=l(g,_e61),_l5=_slicedToArray(_l4,4),_t38=_l5[0],_r41=_l5[1],_a36=_l5[2],_n19=_l5[3];h=Math.min(h,_t38);d=Math.max(d,_r41);u=Math.min(u,_a36);f=Math.max(f,_n19);}}catch(err){_iterator41.e(err);}finally{_iterator41.f();}g.push(\"Q\");var b=new s.Dict(t),y=new s.Dict(t);y.set(\"Subtype\",s.Name.get(\"Form\"));var w=new p.StringStream(g.join(\" \"));w.dict=y;b.set(\"Fm0\",w);var S=new s.Dict(t);i&&S.set(\"BM\",s.Name.get(i));\"number\"==typeof o&&S.set(\"CA\",o);\"number\"==typeof c&&S.set(\"ca\",c);var x=new s.Dict(t);x.set(\"GS0\",S);var k=new s.Dict(t);k.set(\"ExtGState\",x);k.set(\"XObject\",b);var C=new s.Dict(t);C.set(\"Resources\",k);var v=this.data.rect=[h,u,d,f];C.set(\"BBox\",v);this.appearance=new p.StringStream(\"/GS0 gs /Fm0 Do\");this.appearance.dict=C;this._streams.push(this.appearance,w);}}],[{key:\"createNewAnnotation\",value:function(){var _createNewAnnotation=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(e,t,r,a){var n,i,s,c,l,h;return _regeneratorRuntime.wrap(function _callee23$(_context61){while(1)switch(_context61.prev=_context61.next){case 0:n=e.getNewRef();i=e.getNewRef();s=this.createNewDict(t,e,{apRef:i});_context61.next=5;return this.createNewAppearanceStream(t,e,a);case 5:c=_context61.sent;l=[];h=e.encrypt?e.encrypt.createCipherTransform(i.num,i.gen):null;(0,o.writeObject)(i,c,l,h);r.push({ref:i,data:l.join(\"\")});l.length=0;h=e.encrypt?e.encrypt.createCipherTransform(n.num,n.gen):null;(0,o.writeObject)(n,s,l,h);return _context61.abrupt(\"return\",{ref:n,data:l.join(\"\")});case 14:case\"end\":return _context61.stop();}},_callee23,this);}));function createNewAnnotation(_x44,_x45,_x46,_x47){return _createNewAnnotation.apply(this,arguments);}return createNewAnnotation;}()},{key:\"createNewPrintAnnotation\",value:function(){var _createNewPrintAnnotation=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(e,t,r){var a,n;return _regeneratorRuntime.wrap(function _callee24$(_context62){while(1)switch(_context62.prev=_context62.next){case 0:_context62.next=2;return this.createNewAppearanceStream(t,e,r);case 2:a=_context62.sent;n=this.createNewDict(t,e,{ap:a});return _context62.abrupt(\"return\",new this.prototype.constructor({dict:n,xref:e}));case 5:case\"end\":return _context62.stop();}},_callee24,this);}));function createNewPrintAnnotation(_x48,_x49,_x50){return _createNewPrintAnnotation.apply(this,arguments);}return createNewPrintAnnotation;}()}]);return MarkupAnnotation;}(Annotation);t.MarkupAnnotation=MarkupAnnotation;var WidgetAnnotation=/*#__PURE__*/function(_Annotation2){_inherits(WidgetAnnotation,_Annotation2);function WidgetAnnotation(e){var _this20;_classCallCheck(this,WidgetAnnotation);_this20=_callSuper(this,WidgetAnnotation,[e]);var t=e.dict,r=_this20.data;_this20.ref=e.ref;r.annotationType=a.AnnotationType.WIDGET;void 0===r.fieldName&&(r.fieldName=_this20._constructFieldName(t));void 0===r.actions&&(r.actions=(0,n.collectActions)(e.xref,t,a.AnnotationActionEventType));var o=(0,n.getInheritableProperty)({dict:t,key:\"V\",getArray:!0});r.fieldValue=_this20._decodeFormValue(o);var c=(0,n.getInheritableProperty)({dict:t,key:\"DV\",getArray:!0});r.defaultFieldValue=_this20._decodeFormValue(c);if(void 0===o&&e.xfaDatasets){var _t39=_this20._title.str;if(_t39){_this20._hasValueFromXFA=!0;r.fieldValue=o=e.xfaDatasets.getValue(_t39);}}void 0===o&&null!==r.defaultFieldValue&&(r.fieldValue=r.defaultFieldValue);r.alternativeText=(0,a.stringToPDFString)(t.get(\"TU\")||\"\");var l=(0,n.getInheritableProperty)({dict:t,key:\"DA\"})||e.acroForm.get(\"DA\");_this20._defaultAppearance=\"string\"==typeof l?l:\"\";r.defaultAppearanceData=(0,i.parseDefaultAppearance)(_this20._defaultAppearance);var h=(0,n.getInheritableProperty)({dict:t,key:\"FT\"});r.fieldType=h instanceof s.Name?h.name:null;var u=(0,n.getInheritableProperty)({dict:t,key:\"DR\"}),d=e.acroForm.get(\"DR\"),f=_this20.appearance&&_this20.appearance.dict.get(\"Resources\");_this20._fieldResources={localResources:u,acroFormResources:d,appearanceResources:f,mergedResources:s.Dict.merge({xref:e.xref,dictArray:[u,f,d],mergeSubDicts:!0})};r.fieldFlags=(0,n.getInheritableProperty)({dict:t,key:\"Ff\"});(!_Number$isInteger(r.fieldFlags)||r.fieldFlags<0)&&(r.fieldFlags=0);r.readOnly=_this20.hasFieldFlag(a.AnnotationFieldFlag.READONLY);r.required=_this20.hasFieldFlag(a.AnnotationFieldFlag.REQUIRED);r.hidden=_this20._hasFlag(r.annotationFlags,a.AnnotationFlag.HIDDEN);return _this20;}_createClass(WidgetAnnotation,[{key:\"_decodeFormValue\",value:function _decodeFormValue(e){var _context63;return Array.isArray(e)?_mapInstanceProperty(_context63=_filterInstanceProperty(e).call(e,function(e){return\"string\"==typeof e;})).call(_context63,function(e){return(0,a.stringToPDFString)(e);}):e instanceof s.Name?(0,a.stringToPDFString)(e.name):\"string\"==typeof e?(0,a.stringToPDFString)(e):null;}},{key:\"hasFieldFlag\",value:function hasFieldFlag(e){return!!(this.data.fieldFlags&e);}},{key:\"getRotationMatrix\",value:function getRotationMatrix(e){var t=e?e.get(this.data.id):void 0;var r=t&&t.rotation;void 0===r&&(r=this.rotation);if(0===r)return a.IDENTITY_MATRIX;var n=this.data.rect[2]-this.data.rect[0],i=this.data.rect[3]-this.data.rect[1];return WidgetAnnotation._getRotationMatrix(r,n,i);}},{key:\"getBorderAndBackgroundAppearances\",value:function getBorderAndBackgroundAppearances(e){var _context64,_context65,_context66;var t=e?e.get(this.data.id):void 0;var r=t&&t.rotation;void 0===r&&(r=this.rotation);if(!this.backgroundColor&&!this.borderColor)return\"\";var a=this.data.rect[2]-this.data.rect[0],n=this.data.rect[3]-this.data.rect[1],s=0===r||180===r?_concatInstanceProperty(_context64=\"0 0 \".concat(a,\" \")).call(_context64,n,\" re\"):_concatInstanceProperty(_context65=\"0 0 \".concat(n,\" \")).call(_context65,a,\" re\");var o=\"\";this.backgroundColor&&(o=_concatInstanceProperty(_context66=\"\".concat((0,i.getPdfColor)(this.backgroundColor,!0),\" \")).call(_context66,s,\" f \"));if(this.borderColor){var _context67,_context68;o+=_concatInstanceProperty(_context67=_concatInstanceProperty(_context68=\"\".concat(this.borderStyle.width||1,\" w \")).call(_context68,(0,i.getPdfColor)(this.borderColor,!1),\" \")).call(_context67,s,\" S \");}return o;}},{key:\"getOperatorList\",value:function(){var _getOperatorList2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(e,t,r,n,i){var s,o,c,l,h,u;return _regeneratorRuntime.wrap(function _callee25$(_context69){while(1)switch(_context69.prev=_context69.next){case 0:if(!(n&&!(this instanceof SignatureWidgetAnnotation))){_context69.next=2;break;}return _context69.abrupt(\"return\",{opList:new g.OperatorList(),separateForm:!0,separateCanvas:!1});case 2:if(this._hasText){_context69.next=4;break;}return _context69.abrupt(\"return\",_get(_getPrototypeOf(WidgetAnnotation.prototype),\"getOperatorList\",this).call(this,e,t,r,n,i));case 4:_context69.next=6;return this._getAppearance(e,t,i);case 6:s=_context69.sent;if(!(this.appearance&&null===s)){_context69.next=9;break;}return _context69.abrupt(\"return\",_get(_getPrototypeOf(WidgetAnnotation.prototype),\"getOperatorList\",this).call(this,e,t,r,n,i));case 9:o=new g.OperatorList();if(!(!this._defaultAppearance||null===s)){_context69.next=12;break;}return _context69.abrupt(\"return\",{opList:o,separateForm:!1,separateCanvas:!1});case 12:c=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],l=getTransformMatrix(this.data.rect,c,[1,0,0,1,0,0]);_context69.t0=this.oc;if(!_context69.t0){_context69.next=18;break;}_context69.next=17;return e.parseMarkedContentProps(this.oc,null);case 17:h=_context69.sent;case 18:void 0!==h&&o.addOp(a.OPS.beginMarkedContentProps,[\"OC\",h]);o.addOp(a.OPS.beginAnnotation,[this.data.id,this.data.rect,l,this.getRotationMatrix(i),!1]);u=new p.StringStream(s);_context69.next=23;return e.getOperatorList({stream:u,task:t,resources:this._fieldResources.mergedResources,operatorList:o});case 23:o.addOp(a.OPS.endAnnotation,[]);void 0!==h&&o.addOp(a.OPS.endMarkedContent,[]);return _context69.abrupt(\"return\",{opList:o,separateForm:!1,separateCanvas:!1});case 26:case\"end\":return _context69.stop();}},_callee25,this);}));function getOperatorList(_x51,_x52,_x53,_x54,_x55){return _getOperatorList2.apply(this,arguments);}return getOperatorList;}()},{key:\"_getMKDict\",value:function _getMKDict(e){var _context70,_context71;var t=new s.Dict(null);e&&t.set(\"R\",e);this.borderColor&&t.set(\"BC\",_mapInstanceProperty(_context70=_Array$from(this.borderColor)).call(_context70,function(e){return e/255;}));this.backgroundColor&&t.set(\"BG\",_mapInstanceProperty(_context71=_Array$from(this.backgroundColor)).call(_context71,function(e){return e/255;}));return t.size>0?t:null;}},{key:\"save\",value:function(){var _save2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(e,t,r){var _this21=this,_context72,_context73;var n,i,c,l,h,u,d,f,g,p,m,b,y,encoder,w,S,x,k,C;return _regeneratorRuntime.wrap(function _callee26$(_context74){while(1)switch(_context74.prev=_context74.next){case 0:n=r?r.get(this.data.id):void 0;i=n&&n.value,c=n&&n.rotation;if(!(i===this.data.fieldValue||void 0===i)){_context74.next=6;break;}if(!(!this._hasValueFromXFA&&void 0===c)){_context74.next=5;break;}return _context74.abrupt(\"return\",null);case 5:i=i||this.data.fieldValue;case 6:if(!(void 0===c&&!this._hasValueFromXFA&&Array.isArray(i)&&Array.isArray(this.data.fieldValue)&&i.length===this.data.fieldValue.length&&i.every(function(e,t){return e===_this21.data.fieldValue[t];}))){_context74.next=8;break;}return _context74.abrupt(\"return\",null);case 8:void 0===c&&(c=this.rotation);_context74.next=11;return this._getAppearance(e,t,r);case 11:l=_context74.sent;if(!(null===l)){_context74.next=14;break;}return _context74.abrupt(\"return\",null);case 14:h=e.xref,u=h.fetchIfRef(this.ref);if(u instanceof s.Dict){_context74.next=17;break;}return _context74.abrupt(\"return\",null);case 17:d=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],f={path:(0,a.stringToPDFString)(u.get(\"T\")||\"\"),value:i},g=h.getNewRef(),p=new s.Dict(h);p.set(\"N\",g);m=h.encrypt;b=null,y=null;if(m){b=m.createCipherTransform(this.ref.num,this.ref.gen);y=m.createCipherTransform(g.num,g.gen);l=y.encryptString(l);}encoder=function encoder(e){return(0,a.isAscii)(e)?e:(0,a.stringToUTF16BEString)(e);};u.set(\"V\",Array.isArray(i)?_mapInstanceProperty(i).call(i,encoder):encoder(i));u.set(\"AP\",p);u.set(\"M\",\"D:\".concat((0,a.getModificationDate)()));w=this._getMKDict(c);w&&u.set(\"MK\",w);S=new s.Dict(h);S.set(\"Length\",l.length);S.set(\"Subtype\",s.Name.get(\"Form\"));S.set(\"Resources\",this._getSaveFieldResources(h));S.set(\"BBox\",d);x=this.getRotationMatrix(r);x!==a.IDENTITY_MATRIX&&S.set(\"Matrix\",x);k=[_concatInstanceProperty(_context72=\"\".concat(this.ref.num,\" \")).call(_context72,this.ref.gen,\" obj\\n\")];(0,o.writeDict)(u,k,b);k.push(\"\\nendobj\\n\");C=[_concatInstanceProperty(_context73=\"\".concat(g.num,\" \")).call(_context73,g.gen,\" obj\\n\")];(0,o.writeDict)(S,C,y);C.push(\" stream\\n\",l,\"\\nendstream\\nendobj\\n\");return _context74.abrupt(\"return\",[{ref:this.ref,data:k.join(\"\"),xfa:f},{ref:g,data:C.join(\"\"),xfa:null}]);case 42:case\"end\":return _context74.stop();}},_callee26,this);}));function save(_x56,_x57,_x58){return _save2.apply(this,arguments);}return save;}()},{key:\"_getAppearance\",value:function(){var _getAppearance2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(e,t,r){var _ref,_context75;var n,s,o,c,l,h,u,_this$_computeFontSiz,_this$_computeFontSiz2,d,f,g,p,m,b,y;return _regeneratorRuntime.wrap(function _callee27$(_context76){while(1)switch(_context76.prev=_context76.next){case 0:if(!this.hasFieldFlag(a.AnnotationFieldFlag.PASSWORD)){_context76.next=2;break;}return _context76.abrupt(\"return\",null);case 2:n=r?r.get(this.data.id):void 0;if(n){s=n.formattedValue||n.value;o=n.rotation;}if(!(void 0===o&&void 0===s&&(!this._hasValueFromXFA||this.appearance))){_context76.next=6;break;}return _context76.abrupt(\"return\",null);case 6:if(!(void 0===s)){_context76.next=10;break;}s=this.data.fieldValue;if(s){_context76.next=10;break;}return _context76.abrupt(\"return\",\"\");case 10:Array.isArray(s)&&1===s.length&&(s=s[0]);(0,a.assert)(\"string\"==typeof s,\"Expected `value` to be a string.\");s=_trimInstanceProperty(s).call(s);if(!(\"\"===s)){_context76.next=15;break;}return _context76.abrupt(\"return\",\"\");case 15:void 0===o&&(o=this.rotation);c=-1;this.data.multiLine&&(c=s.split(/\\r\\n|\\r|\\n/).length);l=this.data.rect[3]-this.data.rect[1],h=this.data.rect[2]-this.data.rect[0];90!==o&&270!==o||(_ref=[l,h],h=_ref[0],l=_ref[1],_ref);this._defaultAppearance||(this.data.defaultAppearanceData=(0,i.parseDefaultAppearance)(this._defaultAppearance=\"/Helvetica 0 Tf 0 g\"));_context76.next=23;return WidgetAnnotation._getFontData(e,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources);case 23:u=_context76.sent;_this$_computeFontSiz=this._computeFontSize(l-2,h-4,s,u,c);_this$_computeFontSiz2=_slicedToArray(_this$_computeFontSiz,2);d=_this$_computeFontSiz2[0];f=_this$_computeFontSiz2[1];g=u.descent;isNaN(g)&&(g=0);p=Math.min(Math.floor((l-f)/2),2)+Math.abs(g)*f,m=this.data.textAlignment;if(!this.data.multiLine){_context76.next=33;break;}return _context76.abrupt(\"return\",this._getMultilineAppearance(d,s,u,f,h,l,m,2,p,r));case 33:b=u.encodeString(s).join(\"\");if(!this.data.comb){_context76.next=36;break;}return _context76.abrupt(\"return\",this._getCombAppearance(d,u,b,h,2,p,r));case 36:y=this.getBorderAndBackgroundAppearances(r);if(!(0===m||m>2)){_context76.next=39;break;}return _context76.abrupt(\"return\",\"/Tx BMC q \".concat(y,\"BT \")+d+_concatInstanceProperty(_context75=\" 1 0 0 1 2 \".concat(p,\" Tm (\")).call(_context75,(0,a.escapeString)(b),\") Tj ET Q EMC\"));case 39:return _context76.abrupt(\"return\",\"/Tx BMC q \".concat(y,\"BT \")+d+\" 1 0 0 1 0 0 Tm \".concat(this._renderText(b,u,f,h,m,2,p),\" ET Q EMC\"));case 40:case\"end\":return _context76.stop();}},_callee27,this);}));function _getAppearance(_x59,_x60,_x61){return _getAppearance2.apply(this,arguments);}return _getAppearance;}()},{key:\"_getTextWidth\",value:function _getTextWidth(e,t){var _context77;return _reduceInstanceProperty(_context77=t.charsToGlyphs(e)).call(_context77,function(e,t){return e+t.width;},0)/1e3;}},{key:\"_computeFontSize\",value:function _computeFontSize(e,t,r,n,s){var _this22=this;var o=this.data.defaultAppearanceData.fontSize;if(!o){var roundWithTwoDigits=function roundWithTwoDigits(e){return Math.floor(100*e)/100;};if(-1===s){var _i29=this._getTextWidth(r,n);o=roundWithTwoDigits(Math.min(e/a.LINE_FACTOR,t/_i29));}else{var _i30=r.split(/\\r\\n?|\\n/),_c3=[];var _iterator42=_createForOfIteratorHelper(_i30),_step42;try{for(_iterator42.s();!(_step42=_iterator42.n()).done;){var _e62=_step42.value;var _t40=n.encodeString(_e62).join(\"\"),_r42=n.charsToGlyphs(_t40),_a37=n.getCharPositions(_t40);_c3.push({line:_t40,glyphs:_r42,positions:_a37});}}catch(err){_iterator42.e(err);}finally{_iterator42.f();}var isTooBig=function isTooBig(r){var a=0;for(var _i31=0,_c4=_c3;_i31<_c4.length;_i31++){var _i32=_c4[_i31];a+=_this22._splitLine(null,n,r,t,_i32).length*r;if(a>e)return!0;}return!1;};o=12;var _l6=o*a.LINE_FACTOR,h=Math.round(e/_l6);h=Math.max(h,s);for(;;){_l6=e/h;o=roundWithTwoDigits(_l6/a.LINE_FACTOR);if(!isTooBig(o))break;h++;}}var _this$data$defaultApp=this.data.defaultAppearanceData,_c5=_this$data$defaultApp.fontName,_l7=_this$data$defaultApp.fontColor;this._defaultAppearance=(0,i.createDefaultAppearance)({fontSize:o,fontName:_c5,fontColor:_l7});}return[this._defaultAppearance,o];}},{key:\"_renderText\",value:function _renderText(e,t,r,i,s,o,c){var _context78,_context79;var l;if(1===s){l=(i-this._getTextWidth(e,t)*r)/2;}else if(2===s){l=i-this._getTextWidth(e,t)*r-o;}else l=o;l=(0,n.numberToString)(l);return _concatInstanceProperty(_context78=_concatInstanceProperty(_context79=\"\".concat(l,\" \")).call(_context79,c=(0,n.numberToString)(c),\" Td (\")).call(_context78,(0,a.escapeString)(e),\") Tj\");}},{key:\"_getSaveFieldResources\",value:function _getSaveFieldResources(e){var _this$_fieldResources=this._fieldResources,t=_this$_fieldResources.localResources,r=_this$_fieldResources.appearanceResources,a=_this$_fieldResources.acroFormResources,n=this.data.defaultAppearanceData&&this.data.defaultAppearanceData.fontName;if(!n)return t||s.Dict.empty;for(var _i33=0,_arr3=[t,r];_i33<_arr3.length;_i33++){var _e63=_arr3[_i33];if(_e63 instanceof s.Dict){var _t41=_e63.get(\"Font\");if(_t41 instanceof s.Dict&&_t41.has(n))return _e63;}}if(a instanceof s.Dict){var _r43=a.get(\"Font\");if(_r43 instanceof s.Dict&&_r43.has(n)){var _a38=new s.Dict(e);_a38.set(n,_r43.getRaw(n));var _i34=new s.Dict(e);_i34.set(\"Font\",_a38);return s.Dict.merge({xref:e,dictArray:[_i34,t],mergeSubDicts:!0});}}return t||s.Dict.empty;}},{key:\"getFieldObject\",value:function getFieldObject(){return null;}}],[{key:\"_getRotationMatrix\",value:function _getRotationMatrix(e,t,r){switch(e){case 90:return[0,1,-1,0,t,0];case 180:return[-1,0,0,-1,t,r];case 270:return[0,-1,1,0,0,r];default:throw new Error(\"Invalid rotation\");}}},{key:\"_getFontData\",value:function(){var _getFontData2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(e,t,r,a){var n,i,o,c;return _regeneratorRuntime.wrap(function _callee28$(_context80){while(1)switch(_context80.prev=_context80.next){case 0:n=new g.OperatorList(),i={font:null,clone:function clone(){return this;}},o=r.fontName,c=r.fontSize;_context80.next=3;return e.handleSetFont(a,[o&&s.Name.get(o),c],null,n,t,i,null);case 3:return _context80.abrupt(\"return\",i.font);case 4:case\"end\":return _context80.stop();}},_callee28);}));function _getFontData(_x62,_x63,_x64,_x65){return _getFontData2.apply(this,arguments);}return _getFontData;}()}]);return WidgetAnnotation;}(Annotation);var TextWidgetAnnotation=/*#__PURE__*/function(_WidgetAnnotation){_inherits(TextWidgetAnnotation,_WidgetAnnotation);function TextWidgetAnnotation(e){var _this23;_classCallCheck(this,TextWidgetAnnotation);_this23=_callSuper(this,TextWidgetAnnotation,[e]);_this23._hasText=!0;var t=e.dict;\"string\"!=typeof _this23.data.fieldValue&&(_this23.data.fieldValue=\"\");var r=(0,n.getInheritableProperty)({dict:t,key:\"Q\"});(!_Number$isInteger(r)||r<0||r>2)&&(r=null);_this23.data.textAlignment=r;var i=(0,n.getInheritableProperty)({dict:t,key:\"MaxLen\"});(!_Number$isInteger(i)||i<0)&&(i=0);_this23.data.maxLen=i;_this23.data.multiLine=_this23.hasFieldFlag(a.AnnotationFieldFlag.MULTILINE);_this23.data.comb=_this23.hasFieldFlag(a.AnnotationFieldFlag.COMB)&&!_this23.hasFieldFlag(a.AnnotationFieldFlag.MULTILINE)&&!_this23.hasFieldFlag(a.AnnotationFieldFlag.PASSWORD)&&!_this23.hasFieldFlag(a.AnnotationFieldFlag.FILESELECT)&&0!==_this23.data.maxLen;_this23.data.doNotScroll=_this23.hasFieldFlag(a.AnnotationFieldFlag.DONOTSCROLL);return _this23;}_createClass(TextWidgetAnnotation,[{key:\"_getCombAppearance\",value:function _getCombAppearance(e,t,r,i,s,o,c){var _context81,_context82;var l=(0,n.numberToString)(i/this.data.maxLen),h=[],u=t.getCharPositions(r);var _iterator43=_createForOfIteratorHelper(u),_step43;try{for(_iterator43.s();!(_step43=_iterator43.n()).done;){var _step43$value=_slicedToArray(_step43.value,2),_e64=_step43$value[0],_t42=_step43$value[1];h.push(\"(\".concat((0,a.escapeString)(r.substring(_e64,_t42)),\") Tj\"));}}catch(err){_iterator43.e(err);}finally{_iterator43.f();}return\"/Tx BMC q \".concat(this.getBorderAndBackgroundAppearances(c),\"BT \")+e+_concatInstanceProperty(_context81=_concatInstanceProperty(_context82=\" 1 0 0 1 \".concat(s,\" \")).call(_context82,o,\" Tm \")).call(_context81,h.join(\" \".concat(l,\" 0 Td \")),\" ET Q EMC\");}},{key:\"_getMultilineAppearance\",value:function _getMultilineAppearance(e,t,r,a,n,i,s,o,c,l){var _context83;var h=t.split(/\\r\\n?|\\n/),u=[],d=n-2*o;var _iterator44=_createForOfIteratorHelper(h),_step44;try{for(_iterator44.s();!(_step44=_iterator44.n()).done;){var _e65=_step44.value;var _t43=this._splitLine(_e65,r,a,d);var _iterator45=_createForOfIteratorHelper(_t43),_step45;try{for(_iterator45.s();!(_step45=_iterator45.n()).done;){var _e66=_step45.value;var _t44=0===u.length?o:0;u.push(this._renderText(_e66,r,a,n,s,_t44,-a));}}catch(err){_iterator45.e(err);}finally{_iterator45.f();}}}catch(err){_iterator44.e(err);}finally{_iterator44.f();}var f=u.join(\"\\n\");return\"/Tx BMC q \".concat(this.getBorderAndBackgroundAppearances(l),\"BT \")+e+_concatInstanceProperty(_context83=\" 1 0 0 1 0 \".concat(i,\" Tm \")).call(_context83,f,\" ET Q EMC\");}},{key:\"_splitLine\",value:function _splitLine(e,t,r,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};e=n.line||t.encodeString(e).join(\"\");var i=n.glyphs||t.charsToGlyphs(e);if(i.length<=1)return[e];var s=n.positions||t.getCharPositions(e),o=r/1e3,c=[];var l=-1,h=-1,u=-1,d=0,f=0;for(var _t45=0,_r44=i.length;_t45<_r44;_t45++){var _s$_t=_slicedToArray(s[_t45],2),_r45=_s$_t[0],_n20=_s$_t[1],_g2=i[_t45],_p=_g2.width*o;if(\" \"===_g2.unicode){if(f+_p>a){c.push(e.substring(d,_r45));d=_r45;f=_p;l=-1;u=-1;}else{f+=_p;l=_r45;h=_n20;u=_t45;}}else if(f+_p>a){if(-1!==l){c.push(e.substring(d,h));d=h;_t45=u+1;l=-1;f=0;}else{c.push(e.substring(d,_r45));d=_r45;f=_p;}}else f+=_p;}d<e.length&&c.push(e.substring(d,e.length));return c;}},{key:\"getFieldObject\",value:function getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||\"\",multiline:this.data.multiLine,password:this.hasFieldFlag(a.AnnotationFieldFlag.PASSWORD),charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:\"text\"};}}]);return TextWidgetAnnotation;}(WidgetAnnotation);var ButtonWidgetAnnotation=/*#__PURE__*/function(_WidgetAnnotation2){_inherits(ButtonWidgetAnnotation,_WidgetAnnotation2);function ButtonWidgetAnnotation(e){var _this24;_classCallCheck(this,ButtonWidgetAnnotation);_this24=_callSuper(this,ButtonWidgetAnnotation,[e]);_this24.checkedAppearance=null;_this24.uncheckedAppearance=null;_this24.data.checkBox=!_this24.hasFieldFlag(a.AnnotationFieldFlag.RADIO)&&!_this24.hasFieldFlag(a.AnnotationFieldFlag.PUSHBUTTON);_this24.data.radioButton=_this24.hasFieldFlag(a.AnnotationFieldFlag.RADIO)&&!_this24.hasFieldFlag(a.AnnotationFieldFlag.PUSHBUTTON);_this24.data.pushButton=_this24.hasFieldFlag(a.AnnotationFieldFlag.PUSHBUTTON);_this24.data.isTooltipOnly=!1;if(_this24.data.checkBox)_this24._processCheckBox(e);else if(_this24.data.radioButton)_this24._processRadioButton(e);else if(_this24.data.pushButton){_this24.data.hasOwnCanvas=!0;_this24._processPushButton(e);}else(0,a.warn)(\"Invalid field flags for button widget annotation\");return _this24;}_createClass(ButtonWidgetAnnotation,[{key:\"getOperatorList\",value:function(){var _getOperatorList3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(e,t,r,n,i){var s,o,_e67,c,_s12,_l8,_h2;return _regeneratorRuntime.wrap(function _callee29$(_context84){while(1)switch(_context84.prev=_context84.next){case 0:if(!this.data.pushButton){_context84.next=2;break;}return _context84.abrupt(\"return\",_get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),\"getOperatorList\",this).call(this,e,t,r,!1,i));case 2:s=null,o=null;if(i){_e67=i.get(this.data.id);s=_e67?_e67.value:null;o=_e67?_e67.rotation:null;}if(!(null===s&&this.appearance)){_context84.next=6;break;}return _context84.abrupt(\"return\",_get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),\"getOperatorList\",this).call(this,e,t,r,n,i));case 6:null==s&&(s=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue);c=s?this.checkedAppearance:this.uncheckedAppearance;if(!c){_context84.next=16;break;}_s12=this.appearance,_l8=c.dict.getArray(\"Matrix\")||a.IDENTITY_MATRIX;o&&c.dict.set(\"Matrix\",this.getRotationMatrix(i));this.appearance=c;_h2=_get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),\"getOperatorList\",this).call(this,e,t,r,n,i);this.appearance=_s12;c.dict.set(\"Matrix\",_l8);return _context84.abrupt(\"return\",_h2);case 16:return _context84.abrupt(\"return\",{opList:new g.OperatorList(),separateForm:!1,separateCanvas:!1});case 17:case\"end\":return _context84.stop();}},_callee29,this);}));function getOperatorList(_x66,_x67,_x68,_x69,_x70){return _getOperatorList3.apply(this,arguments);}return getOperatorList;}()},{key:\"save\",value:function(){var _save3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(e,t,r){return _regeneratorRuntime.wrap(function _callee30$(_context85){while(1)switch(_context85.prev=_context85.next){case 0:return _context85.abrupt(\"return\",this.data.checkBox?this._saveCheckbox(e,t,r):this.data.radioButton?this._saveRadioButton(e,t,r):null);case 1:case\"end\":return _context85.stop();}},_callee30,this);}));function save(_x71,_x72,_x73){return _save3.apply(this,arguments);}return save;}()},{key:\"_saveCheckbox\",value:function(){var _saveCheckbox2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(e,t,r){var _context86;var n,i,c,l,h,u,d,f,g,p;return _regeneratorRuntime.wrap(function _callee31$(_context87){while(1)switch(_context87.prev=_context87.next){case 0:if(r){_context87.next=2;break;}return _context87.abrupt(\"return\",null);case 2:n=r.get(this.data.id);i=n&&n.rotation,c=n&&n.value;if(!(void 0===i)){_context87.next=9;break;}if(!(void 0===c)){_context87.next=7;break;}return _context87.abrupt(\"return\",null);case 7:if(!(this.data.fieldValue===this.data.exportValue===c)){_context87.next=9;break;}return _context87.abrupt(\"return\",null);case 9:l=e.xref.fetchIfRef(this.ref);if(l instanceof s.Dict){_context87.next=12;break;}return _context87.abrupt(\"return\",null);case 12:void 0===i&&(i=this.rotation);void 0===c&&(c=this.data.fieldValue===this.data.exportValue);h={path:(0,a.stringToPDFString)(l.get(\"T\")||\"\"),value:c?this.data.exportValue:\"\"},u=s.Name.get(c?this.data.exportValue:\"Off\");l.set(\"V\",u);l.set(\"AS\",u);l.set(\"M\",\"D:\".concat((0,a.getModificationDate)()));d=this._getMKDict(i);d&&l.set(\"MK\",d);f=e.xref.encrypt;g=null;f&&(g=f.createCipherTransform(this.ref.num,this.ref.gen));p=[_concatInstanceProperty(_context86=\"\".concat(this.ref.num,\" \")).call(_context86,this.ref.gen,\" obj\\n\")];(0,o.writeDict)(l,p,g);p.push(\"\\nendobj\\n\");return _context87.abrupt(\"return\",[{ref:this.ref,data:p.join(\"\"),xfa:h}]);case 27:case\"end\":return _context87.stop();}},_callee31,this);}));function _saveCheckbox(_x74,_x75,_x76){return _saveCheckbox2.apply(this,arguments);}return _saveCheckbox;}()},{key:\"_saveRadioButton\",value:function(){var _saveRadioButton2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(e,t,r){var _context89;var n,i,c,l,h,u,d,f,_context88,_t46,_r46,g,p,m,b;return _regeneratorRuntime.wrap(function _callee32$(_context90){while(1)switch(_context90.prev=_context90.next){case 0:if(r){_context90.next=2;break;}return _context90.abrupt(\"return\",null);case 2:n=r.get(this.data.id);i=n&&n.rotation,c=n&&n.value;if(!(void 0===i)){_context90.next=9;break;}if(!(void 0===c)){_context90.next=7;break;}return _context90.abrupt(\"return\",null);case 7:if(!(this.data.fieldValue===this.data.buttonValue===c)){_context90.next=9;break;}return _context90.abrupt(\"return\",null);case 9:l=e.xref.fetchIfRef(this.ref);if(l instanceof s.Dict){_context90.next=12;break;}return _context90.abrupt(\"return\",null);case 12:void 0===c&&(c=this.data.fieldValue===this.data.buttonValue);void 0===i&&(i=this.rotation);h={path:(0,a.stringToPDFString)(l.get(\"T\")||\"\"),value:c?this.data.buttonValue:\"\"},u=s.Name.get(c?this.data.buttonValue:\"Off\");d=null;f=e.xref.encrypt;if(c)if(this.parent instanceof s.Ref){_t46=e.xref.fetch(this.parent);_r46=null;f&&(_r46=f.createCipherTransform(this.parent.num,this.parent.gen));_t46.set(\"V\",u);d=[_concatInstanceProperty(_context88=\"\".concat(this.parent.num,\" \")).call(_context88,this.parent.gen,\" obj\\n\")];(0,o.writeDict)(_t46,d,_r46);d.push(\"\\nendobj\\n\");}else this.parent instanceof s.Dict&&this.parent.set(\"V\",u);l.set(\"AS\",u);l.set(\"M\",\"D:\".concat((0,a.getModificationDate)()));g=this._getMKDict(i);g&&l.set(\"MK\",g);p=null;f&&(p=f.createCipherTransform(this.ref.num,this.ref.gen));m=[_concatInstanceProperty(_context89=\"\".concat(this.ref.num,\" \")).call(_context89,this.ref.gen,\" obj\\n\")];(0,o.writeDict)(l,m,p);m.push(\"\\nendobj\\n\");b=[{ref:this.ref,data:m.join(\"\"),xfa:h}];null!==d&&b.push({ref:this.parent,data:d.join(\"\"),xfa:null});return _context90.abrupt(\"return\",b);case 30:case\"end\":return _context90.stop();}},_callee32,this);}));function _saveRadioButton(_x77,_x78,_x79){return _saveRadioButton2.apply(this,arguments);}return _saveRadioButton;}()},{key:\"_getDefaultCheckedAppearance\",value:function _getDefaultCheckedAppearance(e,t){var _context91,_context92,_context93;var r=this.data.rect[2]-this.data.rect[0],i=this.data.rect[3]-this.data.rect[1],o=[0,0,r,i],c=.8*Math.min(r,i);var l,h;if(\"check\"===t){l={width:.755*c,height:.705*c};h=\"3\";}else if(\"disc\"===t){l={width:.791*c,height:.705*c};h=\"l\";}else(0,a.unreachable)(\"_getDefaultCheckedAppearance - unsupported type: \".concat(t));var u=_concatInstanceProperty(_context91=_concatInstanceProperty(_context92=_concatInstanceProperty(_context93=\"q BT /PdfJsZaDb \".concat(c,\" Tf 0 g \")).call(_context93,(0,n.numberToString)((r-l.width)/2),\" \")).call(_context92,(0,n.numberToString)((i-l.height)/2),\" Td (\")).call(_context91,h,\") Tj ET Q\"),d=new s.Dict(e.xref);d.set(\"FormType\",1);d.set(\"Subtype\",s.Name.get(\"Form\"));d.set(\"Type\",s.Name.get(\"XObject\"));d.set(\"BBox\",o);d.set(\"Matrix\",[1,0,0,1,0,0]);d.set(\"Length\",u.length);var f=new s.Dict(e.xref),g=new s.Dict(e.xref);g.set(\"PdfJsZaDb\",this.fallbackFontDict);f.set(\"Font\",g);d.set(\"Resources\",f);this.checkedAppearance=new p.StringStream(u);this.checkedAppearance.dict=d;this._streams.push(this.checkedAppearance);}},{key:\"_processCheckBox\",value:function _processCheckBox(e){var t=e.dict.get(\"AP\");if(!(t instanceof s.Dict))return;var r=t.get(\"N\");if(!(r instanceof s.Dict))return;var a=this._decodeFormValue(e.dict.get(\"AS\"));\"string\"==typeof a&&(this.data.fieldValue=a);var n=null!==this.data.fieldValue&&\"Off\"!==this.data.fieldValue?this.data.fieldValue:\"Yes\",i=r.getKeys();if(0===i.length)i.push(\"Off\",n);else if(1===i.length)\"Off\"===i[0]?i.push(n):i.unshift(\"Off\");else if(_includesInstanceProperty(i).call(i,n)){i.length=0;i.push(\"Off\",n);}else{var _e68=_findInstanceProperty(i).call(i,function(e){return\"Off\"!==e;});i.length=0;i.push(\"Off\",_e68);}_includesInstanceProperty(i).call(i,this.data.fieldValue)||(this.data.fieldValue=\"Off\");this.data.exportValue=i[1];this.checkedAppearance=r.get(this.data.exportValue)||null;this.uncheckedAppearance=r.get(\"Off\")||null;this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,\"check\");this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance);this._fallbackFontDict=this.fallbackFontDict;}},{key:\"_processRadioButton\",value:function _processRadioButton(e){this.data.fieldValue=this.data.buttonValue=null;var t=e.dict.get(\"Parent\");if(t instanceof s.Dict){this.parent=e.dict.getRaw(\"Parent\");var _r47=t.get(\"V\");_r47 instanceof s.Name&&(this.data.fieldValue=this._decodeFormValue(_r47));}var r=e.dict.get(\"AP\");if(!(r instanceof s.Dict))return;var a=r.get(\"N\");if(a instanceof s.Dict){var _iterator46=_createForOfIteratorHelper(a.getKeys()),_step46;try{for(_iterator46.s();!(_step46=_iterator46.n()).done;){var _e69=_step46.value;if(\"Off\"!==_e69){this.data.buttonValue=this._decodeFormValue(_e69);break;}}}catch(err){_iterator46.e(err);}finally{_iterator46.f();}this.checkedAppearance=a.get(this.data.buttonValue)||null;this.uncheckedAppearance=a.get(\"Off\")||null;this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,\"disc\");this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance);this._fallbackFontDict=this.fallbackFontDict;}}},{key:\"_processPushButton\",value:function _processPushButton(e){if(e.dict.has(\"A\")||e.dict.has(\"AA\")||this.data.alternativeText){this.data.isTooltipOnly=!e.dict.has(\"A\")&&!e.dict.has(\"AA\");h.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl});}else(0,a.warn)(\"Push buttons without action dictionaries are not supported\");}},{key:\"getFieldObject\",value:function getFieldObject(){var e,t=\"button\";if(this.data.checkBox){t=\"checkbox\";e=this.data.exportValue;}else if(this.data.radioButton){t=\"radiobutton\";e=this.data.buttonValue;}return{id:this.data.id,value:this.data.fieldValue||\"Off\",defaultValue:this.data.defaultFieldValue,exportValues:e,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t};}},{key:\"fallbackFontDict\",get:function get(){var e=new s.Dict();e.set(\"BaseFont\",s.Name.get(\"ZapfDingbats\"));e.set(\"Type\",s.Name.get(\"FallbackType\"));e.set(\"Subtype\",s.Name.get(\"FallbackType\"));e.set(\"Encoding\",s.Name.get(\"ZapfDingbatsEncoding\"));return(0,a.shadow)(this,\"fallbackFontDict\",e);}}]);return ButtonWidgetAnnotation;}(WidgetAnnotation);var ChoiceWidgetAnnotation=/*#__PURE__*/function(_WidgetAnnotation3){_inherits(ChoiceWidgetAnnotation,_WidgetAnnotation3);function ChoiceWidgetAnnotation(e){var _this25;_classCallCheck(this,ChoiceWidgetAnnotation);_this25=_callSuper(this,ChoiceWidgetAnnotation,[e]);_this25.data.options=[];var t=(0,n.getInheritableProperty)({dict:e.dict,key:\"Opt\"});if(Array.isArray(t)){var _r48=e.xref;for(var _e70=0,_a39=t.length;_e70<_a39;_e70++){var _a40=_r48.fetchIfRef(t[_e70]),_n21=Array.isArray(_a40);_this25.data.options[_e70]={exportValue:_this25._decodeFormValue(_n21?_r48.fetchIfRef(_a40[0]):_a40),displayValue:_this25._decodeFormValue(_n21?_r48.fetchIfRef(_a40[1]):_a40)};}}\"string\"==typeof _this25.data.fieldValue?_this25.data.fieldValue=[_this25.data.fieldValue]:_this25.data.fieldValue||(_this25.data.fieldValue=[]);_this25.data.combo=_this25.hasFieldFlag(a.AnnotationFieldFlag.COMBO);_this25.data.multiSelect=_this25.hasFieldFlag(a.AnnotationFieldFlag.MULTISELECT);_this25._hasText=!0;return _this25;}_createClass(ChoiceWidgetAnnotation,[{key:\"getFieldObject\",value:function getFieldObject(){var e=this.data.combo?\"combobox\":\"listbox\",t=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:t,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:e};}},{key:\"_getAppearance\",value:function(){var _getAppearance3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(e,t,r){var _ref2,_context94;var n,s,o,c,l,h,u,_e71,_t47,d,f,g,_e72,_t48,_r49,_iterator47,_step47,_e73,_a41,_this$_computeFontSiz3,_this$_computeFontSiz4,p,m,b,y,_e74,w,S,_iterator48,_step48,_context95,_context96,_e75,_e76,_t49,_r50,_a42;return _regeneratorRuntime.wrap(function _callee33$(_context97){while(1)switch(_context97.prev=_context97.next){case 0:if(!this.data.combo){_context97.next=2;break;}return _context97.abrupt(\"return\",_get(_getPrototypeOf(ChoiceWidgetAnnotation.prototype),\"_getAppearance\",this).call(this,e,t,r));case 2:if(r){_context97.next=4;break;}return _context97.abrupt(\"return\",null);case 4:n=r.get(this.data.id);if(n){_context97.next=7;break;}return _context97.abrupt(\"return\",null);case 7:s=n.rotation;o=n.value;if(!(void 0===s&&void 0===o)){_context97.next=11;break;}return _context97.abrupt(\"return\",null);case 11:void 0===o?o=this.data.fieldValue:Array.isArray(o)||(o=[o]);c=this.data.rect[3]-this.data.rect[1],l=this.data.rect[2]-this.data.rect[0];90!==s&&270!==s||(_ref2=[c,l],l=_ref2[0],c=_ref2[1],_ref2);h=this.data.options.length,u=[];for(_e71=0;_e71<h;_e71++){_t47=this.data.options[_e71].exportValue;_includesInstanceProperty(o).call(o,_t47)&&u.push(_e71);}this._defaultAppearance||(this.data.defaultAppearanceData=(0,i.parseDefaultAppearance)(this._defaultAppearance=\"/Helvetica 0 Tf 0 g\"));_context97.next=19;return WidgetAnnotation._getFontData(e,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources);case 19:d=_context97.sent;g=this.data.defaultAppearanceData.fontSize;if(g)f=this._defaultAppearance;else{_e72=(c-2)/h;_r49=-1;_iterator47=_createForOfIteratorHelper(this.data.options);try{for(_iterator47.s();!(_step47=_iterator47.n()).done;){_e73=_step47.value.displayValue;_a41=this._getTextWidth(_e73,d);if(_a41>_r49){_r49=_a41;_t48=_e73;}}}catch(err){_iterator47.e(err);}finally{_iterator47.f();}_this$_computeFontSiz3=this._computeFontSize(_e72,l-4,_t48,d,-1);_this$_computeFontSiz4=_slicedToArray(_this$_computeFontSiz3,2);f=_this$_computeFontSiz4[0];g=_this$_computeFontSiz4[1];}p=g*a.LINE_FACTOR,m=(p-g)/2,b=Math.floor(c/p);if(1===u.length){_e74=u[0];y=_e74-_e74%b;}else y=u.length?u[0]:0;w=Math.min(y+b+1,h),S=[\"/Tx BMC q\",_concatInstanceProperty(_context94=\"1 1 \".concat(l,\" \")).call(_context94,c,\" re W n\")];if(u.length){S.push(\"0.600006 0.756866 0.854904 rg\");_iterator48=_createForOfIteratorHelper(u);try{for(_iterator48.s();!(_step48=_iterator48.n()).done;){_e75=_step48.value;y<=_e75&&_e75<w&&S.push(_concatInstanceProperty(_context95=_concatInstanceProperty(_context96=\"1 \".concat(c-(_e75-y+1)*p,\" \")).call(_context96,l,\" \")).call(_context95,p,\" re f\"));}}catch(err){_iterator48.e(err);}finally{_iterator48.f();}}S.push(\"BT\",f,\"1 0 0 1 0 \".concat(c,\" Tm\"));for(_e76=y;_e76<w;_e76++){_t49=this.data.options[_e76].displayValue,_r50=_e76===y?2:0,_a42=_e76===y?m:0;S.push(this._renderText(_t49,d,g,l,0,_r50,-p+_a42));}S.push(\"ET Q EMC\");return _context97.abrupt(\"return\",S.join(\"\\n\"));case 30:case\"end\":return _context97.stop();}},_callee33,this);}));function _getAppearance(_x80,_x81,_x82){return _getAppearance3.apply(this,arguments);}return _getAppearance;}()}]);return ChoiceWidgetAnnotation;}(WidgetAnnotation);var SignatureWidgetAnnotation=/*#__PURE__*/function(_WidgetAnnotation4){_inherits(SignatureWidgetAnnotation,_WidgetAnnotation4);function SignatureWidgetAnnotation(e){var _this26;_classCallCheck(this,SignatureWidgetAnnotation);_this26=_callSuper(this,SignatureWidgetAnnotation,[e]);_this26.data.fieldValue=null;return _this26;}_createClass(SignatureWidgetAnnotation,[{key:\"getFieldObject\",value:function getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:\"signature\"};}}]);return SignatureWidgetAnnotation;}(WidgetAnnotation);var TextAnnotation=/*#__PURE__*/function(_MarkupAnnotation){_inherits(TextAnnotation,_MarkupAnnotation);function TextAnnotation(e){var _this27;_classCallCheck(this,TextAnnotation);_this27=_callSuper(this,TextAnnotation,[e]);var t=e.dict;_this27.data.annotationType=a.AnnotationType.TEXT;if(_this27.data.hasAppearance)_this27.data.name=\"NoIcon\";else{_this27.data.rect[1]=_this27.data.rect[3]-22;_this27.data.rect[2]=_this27.data.rect[0]+22;_this27.data.name=t.has(\"Name\")?t.get(\"Name\").name:\"Note\";}if(t.has(\"State\")){_this27.data.state=t.get(\"State\")||null;_this27.data.stateModel=t.get(\"StateModel\")||null;}else{_this27.data.state=null;_this27.data.stateModel=null;}return _this27;}return _createClass(TextAnnotation);}(MarkupAnnotation);var LinkAnnotation=/*#__PURE__*/function(_Annotation3){_inherits(LinkAnnotation,_Annotation3);function LinkAnnotation(e){var _this28;_classCallCheck(this,LinkAnnotation);_this28=_callSuper(this,LinkAnnotation,[e]);_this28.data.annotationType=a.AnnotationType.LINK;var t=getQuadPoints(e.dict,_this28.rectangle);t&&(_this28.data.quadPoints=t);_this28.data.borderColor=_this28.data.borderColor||_this28.data.color;h.Catalog.parseDestDictionary({destDict:e.dict,resultObj:_this28.data,docBaseUrl:e.pdfManager.docBaseUrl});return _this28;}return _createClass(LinkAnnotation);}(Annotation);var PopupAnnotation=/*#__PURE__*/function(_Annotation4){_inherits(PopupAnnotation,_Annotation4);function PopupAnnotation(e){var _this29;_classCallCheck(this,PopupAnnotation);_this29=_callSuper(this,PopupAnnotation,[e]);_this29.data.annotationType=a.AnnotationType.POPUP;var t=e.dict.get(\"Parent\");if(!t){(0,a.warn)(\"Popup annotation has a missing or invalid parent annotation.\");return _possibleConstructorReturn(_this29);}var r=t.get(\"Subtype\");_this29.data.parentType=r instanceof s.Name?r.name:null;var n=e.dict.getRaw(\"Parent\");_this29.data.parentId=n instanceof s.Ref?n.toString():null;var i=t.getArray(\"Rect\");Array.isArray(i)&&4===i.length?_this29.data.parentRect=a.Util.normalizeRect(i):_this29.data.parentRect=[0,0,0,0];var o=t.get(\"RT\");(0,s.isName)(o,a.AnnotationReplyType.GROUP)&&(t=t.get(\"IRT\"));if(t.has(\"M\")){_this29.setModificationDate(t.get(\"M\"));_this29.data.modificationDate=_this29.modificationDate;}else _this29.data.modificationDate=null;if(t.has(\"C\")){_this29.setColor(t.getArray(\"C\"));_this29.data.color=_this29.color;}else _this29.data.color=null;if(!_this29.viewable){var _e77=t.get(\"F\");_this29._isViewable(_e77)&&_this29.setFlags(_e77);}_this29.setTitle(t.get(\"T\"));_this29.data.titleObj=_this29._title;_this29.setContents(t.get(\"Contents\"));_this29.data.contentsObj=_this29._contents;t.has(\"RC\")&&(_this29.data.richText=m.XFAFactory.getRichTextAsHtml(t.get(\"RC\")));return _this29;}return _createClass(PopupAnnotation);}(Annotation);t.PopupAnnotation=PopupAnnotation;var FreeTextAnnotation=/*#__PURE__*/function(_MarkupAnnotation2){_inherits(FreeTextAnnotation,_MarkupAnnotation2);function FreeTextAnnotation(e){var _this30;_classCallCheck(this,FreeTextAnnotation);_this30=_callSuper(this,FreeTextAnnotation,[e]);_this30.data.annotationType=a.AnnotationType.FREETEXT;return _this30;}_createClass(FreeTextAnnotation,[{key:\"hasTextContent\",get:function get(){return!!this.appearance;}}],[{key:\"createNewDict\",value:function createNewDict(e,t,r){var _context98;var n=r.apRef,o=r.ap;var c=e.color,l=e.fontSize,h=e.rect,u=e.rotation,d=e.user,f=e.value,g=new s.Dict(t);g.set(\"Type\",s.Name.get(\"Annot\"));g.set(\"Subtype\",s.Name.get(\"FreeText\"));g.set(\"CreationDate\",\"D:\".concat((0,a.getModificationDate)()));g.set(\"Rect\",h);var p=_concatInstanceProperty(_context98=\"/Helv \".concat(l,\" Tf \")).call(_context98,(0,i.getPdfColor)(c,!0));g.set(\"DA\",p);g.set(\"Contents\",f);g.set(\"F\",4);g.set(\"Border\",[0,0,0]);g.set(\"Rotate\",u);d&&g.set(\"T\",(0,a.stringToUTF8String)(d));var m=new s.Dict(t);g.set(\"AP\",m);n?m.set(\"N\",n):m.set(\"N\",o);return g;}},{key:\"createNewAppearanceStream\",value:function(){var _createNewAppearanceStream=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(e,t,r){var _ref3,_context99,_context100;var o,c,l,h,u,d,f,g,m,b,_e78,y,_d,w,S,x,k,C,v,O,T,M,E,_iterator49,_step49,_e81,_t50,_r51,_iterator50,_step50,_e82,D,N,R,L,j,$,_,U,_i35,_E,_context101,_e79,X,H,_e80,q;return _regeneratorRuntime.wrap(function _callee34$(_context102){while(1)switch(_context102.prev=_context102.next){case 0:o=r.baseFontRef,c=r.evaluator,l=r.task,h=e.color,u=e.fontSize,d=e.rect,f=e.rotation,g=e.value,m=new s.Dict(t),b=new s.Dict(t);if(o)b.set(\"Helv\",o);else{_e78=new s.Dict(t);_e78.set(\"BaseFont\",s.Name.get(\"Helvetica\"));_e78.set(\"Type\",s.Name.get(\"Font\"));_e78.set(\"Subtype\",s.Name.get(\"Type1\"));_e78.set(\"Encoding\",s.Name.get(\"WinAnsiEncoding\"));b.set(\"Helv\",_e78);}m.set(\"Font\",b);_context102.next=5;return WidgetAnnotation._getFontData(c,l,{fontName:\"Helvetica\",fontSize:u},m);case 5:y=_context102.sent;_d=_slicedToArray(d,4);w=_d[0];S=_d[1];x=_d[2];k=_d[3];C=x-w,v=k-S;f%180!=0&&(_ref3=[v,C],C=_ref3[0],v=_ref3[1],_ref3);O=g.split(\"\\n\"),T=u/1e3;M=-1/0;E=[];_iterator49=_createForOfIteratorHelper(O);try{for(_iterator49.s();!(_step49=_iterator49.n()).done;){_e81=_step49.value;_e81=y.encodeString(_e81).join(\"\");E.push(_e81);_t50=0;_r51=y.charsToGlyphs(_e81);_iterator50=_createForOfIteratorHelper(_r51);try{for(_iterator50.s();!(_step50=_iterator50.n()).done;){_e82=_step50.value;_t50+=_e82.width*T;}}catch(err){_iterator50.e(err);}finally{_iterator50.f();}M=Math.max(M,_t50);}}catch(err){_iterator49.e(err);}finally{_iterator49.f();}D=1;M>C&&(D=C/M);N=1;R=a.LINE_FACTOR*u,L=a.LINE_DESCENT_FACTOR*u,j=R*O.length;j>v&&(N=v/j);$=u*Math.min(D,N),_=[\"q\",_concatInstanceProperty(_context99=\"0 0 \".concat((0,n.numberToString)(C),\" \")).call(_context99,(0,n.numberToString)(v),\" re W n\"),\"BT\",_concatInstanceProperty(_context100=\"1 0 0 1 0 \".concat((0,n.numberToString)(v+L),\" Tm 0 Tc \")).call(_context100,(0,i.getPdfColor)(h,!0)),\"/Helv \".concat((0,n.numberToString)($),\" Tf\")],U=(0,n.numberToString)(R);for(_i35=0,_E=E;_i35<_E.length;_i35++){_e79=_E[_i35];_.push(_concatInstanceProperty(_context101=\"0 -\".concat(U,\" Td (\")).call(_context101,(0,a.escapeString)(_e79),\") Tj\"));}_.push(\"ET\",\"Q\");X=_.join(\"\\n\"),H=new s.Dict(t);H.set(\"FormType\",1);H.set(\"Subtype\",s.Name.get(\"Form\"));H.set(\"Type\",s.Name.get(\"XObject\"));H.set(\"BBox\",[0,0,C,v]);H.set(\"Length\",X.length);H.set(\"Resources\",m);if(f){_e80=WidgetAnnotation._getRotationMatrix(f,C,v);H.set(\"Matrix\",_e80);}q=new p.StringStream(X);q.dict=H;return _context102.abrupt(\"return\",q);case 37:case\"end\":return _context102.stop();}},_callee34);}));function createNewAppearanceStream(_x83,_x84,_x85){return _createNewAppearanceStream.apply(this,arguments);}return createNewAppearanceStream;}()}]);return FreeTextAnnotation;}(MarkupAnnotation);var LineAnnotation=/*#__PURE__*/function(_MarkupAnnotation3){_inherits(LineAnnotation,_MarkupAnnotation3);function LineAnnotation(e){var _this31;_classCallCheck(this,LineAnnotation);_this31=_callSuper(this,LineAnnotation,[e]);var t=e.dict;_this31.data.annotationType=a.AnnotationType.LINE;var r=t.getArray(\"L\");_this31.data.lineCoordinates=a.Util.normalizeRect(r);_this31.setLineEndings(t.getArray(\"LE\"));_this31.data.lineEndings=_this31.lineEndings;if(!_this31.appearance){var _context103;var _n22=_this31.color?_mapInstanceProperty(_context103=_Array$from(_this31.color)).call(_context103,function(e){return e/255;}):[0,0,0],_i36=t.get(\"CA\");var _s13=null,_o5=t.getArray(\"IC\");if(_o5){var _context104;_o5=getRgbColor(_o5,null);_s13=_o5?_mapInstanceProperty(_context104=_Array$from(_o5)).call(_context104,function(e){return e/255;}):null;}var _c6=_s13?_i36:null,_l9=_this31.borderStyle.width||1,_h3=2*_l9,_u=[_this31.data.lineCoordinates[0]-_h3,_this31.data.lineCoordinates[1]-_h3,_this31.data.lineCoordinates[2]+_h3,_this31.data.lineCoordinates[3]+_h3];a.Util.intersect(_this31.rectangle,_u)||(_this31.rectangle=_u);_this31._setDefaultAppearance({xref:e.xref,extra:\"\".concat(_l9,\" w\"),strokeColor:_n22,fillColor:_s13,strokeAlpha:_i36,fillAlpha:_c6,pointsCallback:function pointsCallback(e,t){var _context105,_context106;e.push(_concatInstanceProperty(_context105=\"\".concat(r[0],\" \")).call(_context105,r[1],\" m\"),_concatInstanceProperty(_context106=\"\".concat(r[2],\" \")).call(_context106,r[3],\" l\"),\"S\");return[t[0].x-_l9,t[1].x+_l9,t[3].y-_l9,t[1].y+_l9];}});}return _this31;}return _createClass(LineAnnotation);}(MarkupAnnotation);var SquareAnnotation=/*#__PURE__*/function(_MarkupAnnotation4){_inherits(SquareAnnotation,_MarkupAnnotation4);function SquareAnnotation(e){var _this32;_classCallCheck(this,SquareAnnotation);_this32=_callSuper(this,SquareAnnotation,[e]);_this32.data.annotationType=a.AnnotationType.SQUARE;if(!_this32.appearance){var _context107;var _t51=_this32.color?_mapInstanceProperty(_context107=_Array$from(_this32.color)).call(_context107,function(e){return e/255;}):[0,0,0],_r52=e.dict.get(\"CA\");var _a43=null,_n23=e.dict.getArray(\"IC\");if(_n23){var _context108;_n23=getRgbColor(_n23,null);_a43=_n23?_mapInstanceProperty(_context108=_Array$from(_n23)).call(_context108,function(e){return e/255;}):null;}var _i37=_a43?_r52:null;if(0===_this32.borderStyle.width&&!_a43)return _possibleConstructorReturn(_this32);_this32._setDefaultAppearance({xref:e.xref,extra:\"\".concat(_this32.borderStyle.width,\" w\"),strokeColor:_t51,fillColor:_a43,strokeAlpha:_r52,fillAlpha:_i37,pointsCallback:function pointsCallback(e,t){var _context109,_context110,_context111;var r=t[2].x+_this32.borderStyle.width/2,n=t[2].y+_this32.borderStyle.width/2,i=t[3].x-t[2].x-_this32.borderStyle.width,s=t[1].y-t[3].y-_this32.borderStyle.width;e.push(_concatInstanceProperty(_context109=_concatInstanceProperty(_context110=_concatInstanceProperty(_context111=\"\".concat(r,\" \")).call(_context111,n,\" \")).call(_context110,i,\" \")).call(_context109,s,\" re\"));_a43?e.push(\"B\"):e.push(\"S\");return[t[0].x,t[1].x,t[3].y,t[1].y];}});}return _this32;}return _createClass(SquareAnnotation);}(MarkupAnnotation);var CircleAnnotation=/*#__PURE__*/function(_MarkupAnnotation5){_inherits(CircleAnnotation,_MarkupAnnotation5);function CircleAnnotation(e){var _this33;_classCallCheck(this,CircleAnnotation);_this33=_callSuper(this,CircleAnnotation,[e]);_this33.data.annotationType=a.AnnotationType.CIRCLE;if(!_this33.appearance){var _context112;var _t52=_this33.color?_mapInstanceProperty(_context112=_Array$from(_this33.color)).call(_context112,function(e){return e/255;}):[0,0,0],_r53=e.dict.get(\"CA\");var _a44=null,_n24=e.dict.getArray(\"IC\");if(_n24){var _context113;_n24=getRgbColor(_n24,null);_a44=_n24?_mapInstanceProperty(_context113=_Array$from(_n24)).call(_context113,function(e){return e/255;}):null;}var _i38=_a44?_r53:null;if(0===_this33.borderStyle.width&&!_a44)return _possibleConstructorReturn(_this33);var _s14=4/3*Math.tan(Math.PI/8);_this33._setDefaultAppearance({xref:e.xref,extra:\"\".concat(_this33.borderStyle.width,\" w\"),strokeColor:_t52,fillColor:_a44,strokeAlpha:_r53,fillAlpha:_i38,pointsCallback:function pointsCallback(e,t){var _context114,_context115,_context116,_context117,_context118,_context119,_context120,_context121,_context122,_context123,_context124,_context125,_context126,_context127,_context128,_context129,_context130,_context131,_context132,_context133,_context134;var r=t[0].x+_this33.borderStyle.width/2,n=t[0].y-_this33.borderStyle.width/2,i=t[3].x-_this33.borderStyle.width/2,o=t[3].y+_this33.borderStyle.width/2,c=r+(i-r)/2,l=n+(o-n)/2,h=(i-r)/2*_s14,u=(o-n)/2*_s14;e.push(_concatInstanceProperty(_context114=\"\".concat(c,\" \")).call(_context114,o,\" m\"),_concatInstanceProperty(_context115=_concatInstanceProperty(_context116=_concatInstanceProperty(_context117=_concatInstanceProperty(_context118=_concatInstanceProperty(_context119=\"\".concat(c+h,\" \")).call(_context119,o,\" \")).call(_context118,i,\" \")).call(_context117,l+u,\" \")).call(_context116,i,\" \")).call(_context115,l,\" c\"),_concatInstanceProperty(_context120=_concatInstanceProperty(_context121=_concatInstanceProperty(_context122=_concatInstanceProperty(_context123=_concatInstanceProperty(_context124=\"\".concat(i,\" \")).call(_context124,l-u,\" \")).call(_context123,c+h,\" \")).call(_context122,n,\" \")).call(_context121,c,\" \")).call(_context120,n,\" c\"),_concatInstanceProperty(_context125=_concatInstanceProperty(_context126=_concatInstanceProperty(_context127=_concatInstanceProperty(_context128=_concatInstanceProperty(_context129=\"\".concat(c-h,\" \")).call(_context129,n,\" \")).call(_context128,r,\" \")).call(_context127,l-u,\" \")).call(_context126,r,\" \")).call(_context125,l,\" c\"),_concatInstanceProperty(_context130=_concatInstanceProperty(_context131=_concatInstanceProperty(_context132=_concatInstanceProperty(_context133=_concatInstanceProperty(_context134=\"\".concat(r,\" \")).call(_context134,l+u,\" \")).call(_context133,c-h,\" \")).call(_context132,o,\" \")).call(_context131,c,\" \")).call(_context130,o,\" c\"),\"h\");_a44?e.push(\"B\"):e.push(\"S\");return[t[0].x,t[1].x,t[3].y,t[1].y];}});}return _this33;}return _createClass(CircleAnnotation);}(MarkupAnnotation);var PolylineAnnotation=/*#__PURE__*/function(_MarkupAnnotation6){_inherits(PolylineAnnotation,_MarkupAnnotation6);function PolylineAnnotation(e){var _this34;_classCallCheck(this,PolylineAnnotation);_this34=_callSuper(this,PolylineAnnotation,[e]);var t=e.dict;_this34.data.annotationType=a.AnnotationType.POLYLINE;_this34.data.vertices=[];if(!(_assertThisInitialized(_this34)instanceof PolygonAnnotation)){_this34.setLineEndings(t.getArray(\"LE\"));_this34.data.lineEndings=_this34.lineEndings;}var r=t.getArray(\"Vertices\");if(Array.isArray(r)){for(var _e83=0,_t53=r.length;_e83<_t53;_e83+=2)_this34.data.vertices.push({x:r[_e83],y:r[_e83+1]});if(!_this34.appearance){var _context135;var _r54=_this34.color?_mapInstanceProperty(_context135=_Array$from(_this34.color)).call(_context135,function(e){return e/255;}):[0,0,0],_n25=t.get(\"CA\"),_i39=_this34.borderStyle.width||1,_s15=2*_i39,_o6=[1/0,1/0,-1/0,-1/0];var _iterator51=_createForOfIteratorHelper(_this34.data.vertices),_step51;try{for(_iterator51.s();!(_step51=_iterator51.n()).done;){var _e84=_step51.value;_o6[0]=Math.min(_o6[0],_e84.x-_s15);_o6[1]=Math.min(_o6[1],_e84.y-_s15);_o6[2]=Math.max(_o6[2],_e84.x+_s15);_o6[3]=Math.max(_o6[3],_e84.y+_s15);}}catch(err){_iterator51.e(err);}finally{_iterator51.f();}a.Util.intersect(_this34.rectangle,_o6)||(_this34.rectangle=_o6);_this34._setDefaultAppearance({xref:e.xref,extra:\"\".concat(_i39,\" w\"),strokeColor:_r54,strokeAlpha:_n25,pointsCallback:function pointsCallback(e,t){var r=_this34.data.vertices;for(var _t54=0,_a45=r.length;_t54<_a45;_t54++){var _context136,_context137;e.push(_concatInstanceProperty(_context136=_concatInstanceProperty(_context137=\"\".concat(r[_t54].x,\" \")).call(_context137,r[_t54].y,\" \")).call(_context136,0===_t54?\"m\":\"l\"));}e.push(\"S\");return[t[0].x,t[1].x,t[3].y,t[1].y];}});}}return _this34;}return _createClass(PolylineAnnotation);}(MarkupAnnotation);var PolygonAnnotation=/*#__PURE__*/function(_PolylineAnnotation){_inherits(PolygonAnnotation,_PolylineAnnotation);function PolygonAnnotation(e){var _this35;_classCallCheck(this,PolygonAnnotation);_this35=_callSuper(this,PolygonAnnotation,[e]);_this35.data.annotationType=a.AnnotationType.POLYGON;return _this35;}return _createClass(PolygonAnnotation);}(PolylineAnnotation);var CaretAnnotation=/*#__PURE__*/function(_MarkupAnnotation7){_inherits(CaretAnnotation,_MarkupAnnotation7);function CaretAnnotation(e){var _this36;_classCallCheck(this,CaretAnnotation);_this36=_callSuper(this,CaretAnnotation,[e]);_this36.data.annotationType=a.AnnotationType.CARET;return _this36;}return _createClass(CaretAnnotation);}(MarkupAnnotation);var InkAnnotation=/*#__PURE__*/function(_MarkupAnnotation8){_inherits(InkAnnotation,_MarkupAnnotation8);function InkAnnotation(e){var _this37;_classCallCheck(this,InkAnnotation);_this37=_callSuper(this,InkAnnotation,[e]);_this37.data.annotationType=a.AnnotationType.INK;_this37.data.inkLists=[];var t=e.dict.getArray(\"InkList\");if(!Array.isArray(t))return _possibleConstructorReturn(_this37);var r=e.xref;for(var _e85=0,_a46=t.length;_e85<_a46;++_e85){_this37.data.inkLists.push([]);for(var _a47=0,_n26=t[_e85].length;_a47<_n26;_a47+=2)_this37.data.inkLists[_e85].push({x:r.fetchIfRef(t[_e85][_a47]),y:r.fetchIfRef(t[_e85][_a47+1])});}if(!_this37.appearance){var _context138;var _t55=_this37.color?_mapInstanceProperty(_context138=_Array$from(_this37.color)).call(_context138,function(e){return e/255;}):[0,0,0],_r55=e.dict.get(\"CA\"),_n27=_this37.borderStyle.width||1,_i40=2*_n27,_s16=[1/0,1/0,-1/0,-1/0];var _iterator52=_createForOfIteratorHelper(_this37.data.inkLists),_step52;try{for(_iterator52.s();!(_step52=_iterator52.n()).done;){var _e86=_step52.value;var _iterator54=_createForOfIteratorHelper(_e86),_step54;try{for(_iterator54.s();!(_step54=_iterator54.n()).done;){var _t57=_step54.value;_s16[0]=Math.min(_s16[0],_t57.x-_i40);_s16[1]=Math.min(_s16[1],_t57.y-_i40);_s16[2]=Math.max(_s16[2],_t57.x+_i40);_s16[3]=Math.max(_s16[3],_t57.y+_i40);}}catch(err){_iterator54.e(err);}finally{_iterator54.f();}}}catch(err){_iterator52.e(err);}finally{_iterator52.f();}a.Util.intersect(_this37.rectangle,_s16)||(_this37.rectangle=_s16);_this37._setDefaultAppearance({xref:e.xref,extra:\"\".concat(_n27,\" w\"),strokeColor:_t55,strokeAlpha:_r55,pointsCallback:function pointsCallback(e,t){var _iterator53=_createForOfIteratorHelper(_this37.data.inkLists),_step53;try{for(_iterator53.s();!(_step53=_iterator53.n()).done;){var _t56=_step53.value;for(var _r56=0,_a48=_t56.length;_r56<_a48;_r56++){var _context139,_context140;e.push(_concatInstanceProperty(_context139=_concatInstanceProperty(_context140=\"\".concat(_t56[_r56].x,\" \")).call(_context140,_t56[_r56].y,\" \")).call(_context139,0===_r56?\"m\":\"l\"));}e.push(\"S\");}}catch(err){_iterator53.e(err);}finally{_iterator53.f();}return[t[0].x,t[1].x,t[3].y,t[1].y];}});}return _this37;}_createClass(InkAnnotation,null,[{key:\"createNewDict\",value:function createNewDict(e,t,r){var n=r.apRef,i=r.ap;var o=e.paths,c=e.rect,l=e.rotation,h=new s.Dict(t);h.set(\"Type\",s.Name.get(\"Annot\"));h.set(\"Subtype\",s.Name.get(\"Ink\"));h.set(\"CreationDate\",\"D:\".concat((0,a.getModificationDate)()));h.set(\"Rect\",c);h.set(\"InkList\",_mapInstanceProperty(o).call(o,function(e){return e.points;}));h.set(\"F\",4);h.set(\"Border\",[0,0,0]);h.set(\"Rotate\",l);var u=new s.Dict(t);h.set(\"AP\",u);n?u.set(\"N\",n):u.set(\"N\",i);return h;}},{key:\"createNewAppearanceStream\",value:function(){var _createNewAppearanceStream2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(e,t,r){var _ref4;var a,o,c,l,h,u,_o7,d,f,g,m,b,y,w,S,_iterator55,_step55,_context141,_e89,_t58,_r58,_context142,_r59,x,k,_e87,_e88,_r57,_a49,C;return _regeneratorRuntime.wrap(function _callee35$(_context143){while(1)switch(_context143.prev=_context143.next){case 0:a=e.color,o=e.rect,c=e.rotation,l=e.paths,h=e.thickness,u=e.opacity,_o7=_slicedToArray(o,4),d=_o7[0],f=_o7[1],g=_o7[2],m=_o7[3];b=g-d,y=m-f;c%180!=0&&(_ref4=[y,b],b=_ref4[0],y=_ref4[1],_ref4);w=[\"\".concat(h,\" w 1 J 1 j\"),\"\".concat((0,i.getPdfColor)(a,!1))];1!==u&&w.push(\"/R0 gs\");S=[];_iterator55=_createForOfIteratorHelper(l);try{for(_iterator55.s();!(_step55=_iterator55.n()).done;){_e89=_step55.value.bezier;S.length=0;S.push(_concatInstanceProperty(_context141=\"\".concat((0,n.numberToString)(_e89[0]),\" \")).call(_context141,(0,n.numberToString)(_e89[1]),\" m\"));for(_t58=2,_r58=_e89.length;_t58<_r58;_t58+=6){_r59=_mapInstanceProperty(_context142=_sliceInstanceProperty(_e89).call(_e89,_t58,_t58+6)).call(_context142,n.numberToString).join(\" \");S.push(\"\".concat(_r59,\" c\"));}S.push(\"S\");w.push(S.join(\"\\n\"));}}catch(err){_iterator55.e(err);}finally{_iterator55.f();}x=w.join(\"\\n\"),k=new s.Dict(t);k.set(\"FormType\",1);k.set(\"Subtype\",s.Name.get(\"Form\"));k.set(\"Type\",s.Name.get(\"XObject\"));k.set(\"BBox\",[0,0,b,y]);k.set(\"Length\",x.length);if(c){_e87=WidgetAnnotation._getRotationMatrix(c,b,y);k.set(\"Matrix\",_e87);}if(1!==u){_e88=new s.Dict(t),_r57=new s.Dict(t),_a49=new s.Dict(t);_a49.set(\"CA\",u);_a49.set(\"Type\",s.Name.get(\"ExtGState\"));_r57.set(\"R0\",_a49);_e88.set(\"ExtGState\",_r57);k.set(\"Resources\",_e88);}C=new p.StringStream(x);C.dict=k;return _context143.abrupt(\"return\",C);case 19:case\"end\":return _context143.stop();}},_callee35);}));function createNewAppearanceStream(_x86,_x87,_x88){return _createNewAppearanceStream2.apply(this,arguments);}return createNewAppearanceStream;}()}]);return InkAnnotation;}(MarkupAnnotation);var HighlightAnnotation=/*#__PURE__*/function(_MarkupAnnotation9){_inherits(HighlightAnnotation,_MarkupAnnotation9);function HighlightAnnotation(e){var _this38;_classCallCheck(this,HighlightAnnotation);_this38=_callSuper(this,HighlightAnnotation,[e]);_this38.data.annotationType=a.AnnotationType.HIGHLIGHT;if(_this38.data.quadPoints=getQuadPoints(e.dict,null)){var _t59=_this38.appearance&&_this38.appearance.dict.get(\"Resources\");if(!_this38.appearance||!_t59||!_t59.has(\"ExtGState\")){var _context144;_this38.appearance&&(0,a.warn)(\"HighlightAnnotation - ignoring built-in appearance stream.\");var _t60=_this38.color?_mapInstanceProperty(_context144=_Array$from(_this38.color)).call(_context144,function(e){return e/255;}):[1,1,0],_r60=e.dict.get(\"CA\");_this38._setDefaultAppearance({xref:e.xref,fillColor:_t60,blendMode:\"Multiply\",fillAlpha:_r60,pointsCallback:function pointsCallback(e,t){var _context145,_context146,_context147,_context148;e.push(_concatInstanceProperty(_context145=\"\".concat(t[0].x,\" \")).call(_context145,t[0].y,\" m\"),_concatInstanceProperty(_context146=\"\".concat(t[1].x,\" \")).call(_context146,t[1].y,\" l\"),_concatInstanceProperty(_context147=\"\".concat(t[3].x,\" \")).call(_context147,t[3].y,\" l\"),_concatInstanceProperty(_context148=\"\".concat(t[2].x,\" \")).call(_context148,t[2].y,\" l\"),\"f\");return[t[0].x,t[1].x,t[3].y,t[1].y];}});}}else _this38.data.hasPopup=!1;return _this38;}return _createClass(HighlightAnnotation);}(MarkupAnnotation);var UnderlineAnnotation=/*#__PURE__*/function(_MarkupAnnotation10){_inherits(UnderlineAnnotation,_MarkupAnnotation10);function UnderlineAnnotation(e){var _this39;_classCallCheck(this,UnderlineAnnotation);_this39=_callSuper(this,UnderlineAnnotation,[e]);_this39.data.annotationType=a.AnnotationType.UNDERLINE;if(_this39.data.quadPoints=getQuadPoints(e.dict,null)){if(!_this39.appearance){var _context149;var _t61=_this39.color?_mapInstanceProperty(_context149=_Array$from(_this39.color)).call(_context149,function(e){return e/255;}):[0,0,0],_r61=e.dict.get(\"CA\");_this39._setDefaultAppearance({xref:e.xref,extra:\"[] 0 d 1 w\",strokeColor:_t61,strokeAlpha:_r61,pointsCallback:function pointsCallback(e,t){var _context150,_context151;e.push(_concatInstanceProperty(_context150=\"\".concat(t[2].x,\" \")).call(_context150,t[2].y,\" m\"),_concatInstanceProperty(_context151=\"\".concat(t[3].x,\" \")).call(_context151,t[3].y,\" l\"),\"S\");return[t[0].x,t[1].x,t[3].y,t[1].y];}});}}else _this39.data.hasPopup=!1;return _this39;}return _createClass(UnderlineAnnotation);}(MarkupAnnotation);var SquigglyAnnotation=/*#__PURE__*/function(_MarkupAnnotation11){_inherits(SquigglyAnnotation,_MarkupAnnotation11);function SquigglyAnnotation(e){var _this40;_classCallCheck(this,SquigglyAnnotation);_this40=_callSuper(this,SquigglyAnnotation,[e]);_this40.data.annotationType=a.AnnotationType.SQUIGGLY;if(_this40.data.quadPoints=getQuadPoints(e.dict,null)){if(!_this40.appearance){var _context152;var _t62=_this40.color?_mapInstanceProperty(_context152=_Array$from(_this40.color)).call(_context152,function(e){return e/255;}):[0,0,0],_r62=e.dict.get(\"CA\");_this40._setDefaultAppearance({xref:e.xref,extra:\"[] 0 d 1 w\",strokeColor:_t62,strokeAlpha:_r62,pointsCallback:function pointsCallback(e,t){var _context153;var r=(t[0].y-t[2].y)/6;var a=r,n=t[2].x;var i=t[2].y,s=t[3].x;e.push(_concatInstanceProperty(_context153=\"\".concat(n,\" \")).call(_context153,i+a,\" m\"));do{var _context154;n+=2;a=0===a?r:0;e.push(_concatInstanceProperty(_context154=\"\".concat(n,\" \")).call(_context154,i+a,\" l\"));}while(n<s);e.push(\"S\");return[t[2].x,s,i-2*r,i+2*r];}});}}else _this40.data.hasPopup=!1;return _this40;}return _createClass(SquigglyAnnotation);}(MarkupAnnotation);var StrikeOutAnnotation=/*#__PURE__*/function(_MarkupAnnotation12){_inherits(StrikeOutAnnotation,_MarkupAnnotation12);function StrikeOutAnnotation(e){var _this41;_classCallCheck(this,StrikeOutAnnotation);_this41=_callSuper(this,StrikeOutAnnotation,[e]);_this41.data.annotationType=a.AnnotationType.STRIKEOUT;if(_this41.data.quadPoints=getQuadPoints(e.dict,null)){if(!_this41.appearance){var _context155;var _t63=_this41.color?_mapInstanceProperty(_context155=_Array$from(_this41.color)).call(_context155,function(e){return e/255;}):[0,0,0],_r63=e.dict.get(\"CA\");_this41._setDefaultAppearance({xref:e.xref,extra:\"[] 0 d 1 w\",strokeColor:_t63,strokeAlpha:_r63,pointsCallback:function pointsCallback(e,t){e.push((t[0].x+t[2].x)/2+\" \"+(t[0].y+t[2].y)/2+\" m\",(t[1].x+t[3].x)/2+\" \"+(t[1].y+t[3].y)/2+\" l\",\"S\");return[t[0].x,t[1].x,t[3].y,t[1].y];}});}}else _this41.data.hasPopup=!1;return _this41;}return _createClass(StrikeOutAnnotation);}(MarkupAnnotation);var StampAnnotation=/*#__PURE__*/function(_MarkupAnnotation13){_inherits(StampAnnotation,_MarkupAnnotation13);function StampAnnotation(e){var _this42;_classCallCheck(this,StampAnnotation);_this42=_callSuper(this,StampAnnotation,[e]);_this42.data.annotationType=a.AnnotationType.STAMP;return _this42;}return _createClass(StampAnnotation);}(MarkupAnnotation);var FileAttachmentAnnotation=/*#__PURE__*/function(_MarkupAnnotation14){_inherits(FileAttachmentAnnotation,_MarkupAnnotation14);function FileAttachmentAnnotation(e){var _this43;_classCallCheck(this,FileAttachmentAnnotation);_this43=_callSuper(this,FileAttachmentAnnotation,[e]);var t=new d.FileSpec(e.dict.get(\"FS\"),e.xref);_this43.data.annotationType=a.AnnotationType.FILEATTACHMENT;_this43.data.file=t.serializable;return _this43;}return _createClass(FileAttachmentAnnotation);}(MarkupAnnotation);},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.createDefaultAppearance=function createDefaultAppearance(e){var _context156,_context157;var t=e.fontSize,r=e.fontName,n=e.fontColor;return _concatInstanceProperty(_context156=_concatInstanceProperty(_context157=\"/\".concat((0,a.escapePDFName)(r),\" \")).call(_context157,t,\" Tf \")).call(_context156,getPdfColor(n,!0));};t.getPdfColor=getPdfColor;t.parseDefaultAppearance=function parseDefaultAppearance(e){return new DefaultAppearanceEvaluator(e).parse();};var a=r(131),n=r(2),i=r(139),s=r(140),o=r(130),c=r(135);var DefaultAppearanceEvaluator=/*#__PURE__*/function(_s$EvaluatorPreproces){_inherits(DefaultAppearanceEvaluator,_s$EvaluatorPreproces);function DefaultAppearanceEvaluator(e){_classCallCheck(this,DefaultAppearanceEvaluator);return _callSuper(this,DefaultAppearanceEvaluator,[new c.StringStream(e)]);}_createClass(DefaultAppearanceEvaluator,[{key:\"parse\",value:function parse(){var e={fn:0,args:[]},t={fontSize:0,fontName:\"\",fontColor:new Uint8ClampedArray(3)};try{for(;;){e.args.length=0;if(!this.read(e))break;if(0!==this.savedStatesDepth)continue;var _r64=e.fn,_a50=e.args;switch(0|r){case n.OPS.setFont:var _a51=_slicedToArray(_a50,2),_e90=_a51[0],_r65=_a51[1];_e90 instanceof o.Name&&(t.fontName=_e90.name);\"number\"==typeof _r65&&_r65>0&&(t.fontSize=_r65);break;case n.OPS.setFillRGBColor:i.ColorSpace.singletons.rgb.getRgbItem(_a50,0,t.fontColor,0);break;case n.OPS.setFillGray:i.ColorSpace.singletons.gray.getRgbItem(_a50,0,t.fontColor,0);break;case n.OPS.setFillColorSpace:i.ColorSpace.singletons.cmyk.getRgbItem(_a50,0,t.fontColor,0);}}}catch(e){(0,n.warn)(\"parseDefaultAppearance - ignoring errors: \\\"\".concat(e,\"\\\".\"));}return t;}}]);return DefaultAppearanceEvaluator;}(s.EvaluatorPreprocessor);function getPdfColor(e,t){var _context159;if(e[0]===e[1]&&e[1]===e[2]){var _context158;var _r66=e[0]/255;return _concatInstanceProperty(_context158=\"\".concat((0,a.numberToString)(_r66),\" \")).call(_context158,t?\"g\":\"G\");}return _mapInstanceProperty(_context159=_Array$from(e)).call(_context159,function(e){return(0,a.numberToString)(e/255);}).join(\" \")+\" \"+(t?\"rg\":\"RG\");}},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.ColorSpace=void 0;var a=r(2),n=r(130),i=r(132),s=r(131);var ColorSpace=/*#__PURE__*/function(){function ColorSpace(e,t){_classCallCheck(this,ColorSpace);this.constructor===ColorSpace&&(0,a.unreachable)(\"Cannot initialize ColorSpace.\");this.name=e;this.numComps=t;}_createClass(ColorSpace,[{key:\"getRgb\",value:function getRgb(e,t){var r=new Uint8ClampedArray(3);this.getRgbItem(e,t,r,0);return r;}},{key:\"getRgbItem\",value:function getRgbItem(e,t,r,n){(0,a.unreachable)(\"Should not call ColorSpace.getRgbItem\");}},{key:\"getRgbBuffer\",value:function getRgbBuffer(e,t,r,n,i,s,o){(0,a.unreachable)(\"Should not call ColorSpace.getRgbBuffer\");}},{key:\"getOutputLength\",value:function getOutputLength(e,t){(0,a.unreachable)(\"Should not call ColorSpace.getOutputLength\");}},{key:\"isPassthrough\",value:function isPassthrough(e){return!1;}},{key:\"isDefaultDecode\",value:function isDefaultDecode(e,t){return ColorSpace.isDefaultDecode(e,this.numComps);}},{key:\"fillRgb\",value:function fillRgb(e,t,r,a,n,i,s,o,c){var l=t*r;var h=null;var u=1<<s,d=r!==n||t!==a;if(this.isPassthrough(s))h=o;else if(1===this.numComps&&l>u&&\"DeviceGray\"!==this.name&&\"DeviceRGB\"!==this.name){var _t64=s<=8?new Uint8Array(u):new Uint16Array(u);for(var _e91=0;_e91<u;_e91++)_t64[_e91]=_e91;var _r67=new Uint8ClampedArray(3*u);this.getRgbBuffer(_t64,0,u,_r67,0,s,0);if(d){h=new Uint8Array(3*l);var _e92=0;for(var _t65=0;_t65<l;++_t65){var _a52=3*o[_t65];h[_e92++]=_r67[_a52];h[_e92++]=_r67[_a52+1];h[_e92++]=_r67[_a52+2];}}else{var _t66=0;for(var _a53=0;_a53<l;++_a53){var _n28=3*o[_a53];e[_t66++]=_r67[_n28];e[_t66++]=_r67[_n28+1];e[_t66++]=_r67[_n28+2];_t66+=c;}}}else if(d){h=new Uint8ClampedArray(3*l);this.getRgbBuffer(o,0,l,h,0,s,0);}else this.getRgbBuffer(o,0,a*i,e,0,s,c);if(h)if(d)!function resizeRgbImage(e,t,r,a,n,i,s){s=1!==s?0:s;var o=r/n,c=a/i;var l,h=0;var u=new Uint16Array(n),d=3*r;for(var _e93=0;_e93<n;_e93++)u[_e93]=3*Math.floor(_e93*o);for(var _r68=0;_r68<i;_r68++){var _a54=Math.floor(_r68*c)*d;for(var _r69=0;_r69<n;_r69++){l=_a54+u[_r69];t[h++]=e[l++];t[h++]=e[l++];t[h++]=e[l++];h+=s;}}}(h,e,t,r,a,n,c);else{var _t67=0,_r70=0;for(var _n29=0,_s17=a*i;_n29<_s17;_n29++){e[_t67++]=h[_r70++];e[_t67++]=h[_r70++];e[_t67++]=h[_r70++];_t67+=c;}}}},{key:\"usesZeroToOneRange\",get:function get(){return(0,a.shadow)(this,\"usesZeroToOneRange\",!0);}}],[{key:\"_cache\",value:function _cache(e,t,r,a){if(!r)throw new Error('ColorSpace._cache - expected \"localColorSpaceCache\" argument.');if(!a)throw new Error('ColorSpace._cache - expected \"parsedColorSpace\" argument.');var i,s;if(e instanceof n.Ref){s=e;e=t.fetch(e);}e instanceof n.Name&&(i=e.name);(i||s)&&r.set(i,s,a);}},{key:\"getCached\",value:function getCached(e,t,r){if(!r)throw new Error('ColorSpace.getCached - expected \"localColorSpaceCache\" argument.');if(e instanceof n.Ref){var _a55=r.getByRef(e);if(_a55)return _a55;try{e=t.fetch(e);}catch(e){if(e instanceof s.MissingDataException)throw e;}}if(e instanceof n.Name){var _t68=r.getByName(e.name);if(_t68)return _t68;}return null;}},{key:\"parseAsync\",value:function(){var _parseAsync=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee36(e){var t,r,_e$resources,a,n,i,s;return _regeneratorRuntime.wrap(function _callee36$(_context160){while(1)switch(_context160.prev=_context160.next){case 0:t=e.cs,r=e.xref,_e$resources=e.resources,a=_e$resources===void 0?null:_e$resources,n=e.pdfFunctionFactory,i=e.localColorSpaceCache;s=this._parse(t,r,a,n);this._cache(t,r,i,s);return _context160.abrupt(\"return\",s);case 4:case\"end\":return _context160.stop();}},_callee36,this);}));function parseAsync(_x89){return _parseAsync.apply(this,arguments);}return parseAsync;}()},{key:\"parse\",value:function parse(e){var t=e.cs,r=e.xref,_e$resources2=e.resources,a=_e$resources2===void 0?null:_e$resources2,n=e.pdfFunctionFactory,i=e.localColorSpaceCache;var s=this.getCached(t,r,i);if(s)return s;var o=this._parse(t,r,a,n);this._cache(t,r,i,o);return o;}},{key:\"_parse\",value:function _parse(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;if((e=t.fetchIfRef(e))instanceof n.Name)switch(e.name){case\"G\":case\"DeviceGray\":return this.singletons.gray;case\"RGB\":case\"DeviceRGB\":return this.singletons.rgb;case\"CMYK\":case\"DeviceCMYK\":return this.singletons.cmyk;case\"Pattern\":return new PatternCS(null);default:if(r instanceof n.Dict){var _a56=r.get(\"ColorSpace\");if(_a56 instanceof n.Dict){var _s18=_a56.get(e.name);if(_s18){if(_s18 instanceof n.Name)return this._parse(_s18,t,r,i);e=_s18;break;}}}throw new a.FormatError(\"Unrecognized ColorSpace: \".concat(e.name));}if(Array.isArray(e)){var _n30=t.fetchIfRef(e[0]).name;var _s19,_o8,u,d,f,g;switch(_n30){case\"G\":case\"DeviceGray\":return this.singletons.gray;case\"RGB\":case\"DeviceRGB\":return this.singletons.rgb;case\"CMYK\":case\"DeviceCMYK\":return this.singletons.cmyk;case\"CalGray\":_s19=t.fetchIfRef(e[1]);d=_s19.getArray(\"WhitePoint\");f=_s19.getArray(\"BlackPoint\");g=_s19.get(\"Gamma\");return new c(d,f,g);case\"CalRGB\":_s19=t.fetchIfRef(e[1]);d=_s19.getArray(\"WhitePoint\");f=_s19.getArray(\"BlackPoint\");g=_s19.getArray(\"Gamma\");var p=_s19.getArray(\"Matrix\");return new l(d,f,g,p);case\"ICCBased\":var m=t.fetchIfRef(e[1]).dict;_o8=m.get(\"N\");var b=m.get(\"Alternate\");if(b){var _e94=this._parse(b,t,r,i);if(_e94.numComps===_o8)return _e94;(0,a.warn)(\"ICCBased color space: Ignoring incorrect /Alternate entry.\");}if(1===_o8)return this.singletons.gray;if(3===_o8)return this.singletons.rgb;if(4===_o8)return this.singletons.cmyk;break;case\"Pattern\":u=e[1]||null;u&&(u=this._parse(u,t,r,i));return new PatternCS(u);case\"I\":case\"Indexed\":u=this._parse(e[1],t,r,i);var y=t.fetchIfRef(e[2])+1,w=t.fetchIfRef(e[3]);return new IndexedCS(u,y,w);case\"Separation\":case\"DeviceN\":var S=t.fetchIfRef(e[1]);_o8=Array.isArray(S)?S.length:1;u=this._parse(e[2],t,r,i);var x=i.create(e[3]);return new AlternateCS(_o8,u,x);case\"Lab\":_s19=t.fetchIfRef(e[1]);d=_s19.getArray(\"WhitePoint\");f=_s19.getArray(\"BlackPoint\");var k=_s19.getArray(\"Range\");return new h(d,f,k);default:throw new a.FormatError(\"Unimplemented ColorSpace object: \".concat(_n30));}}throw new a.FormatError(\"Unrecognized ColorSpace object: \".concat(e));}},{key:\"isDefaultDecode\",value:function isDefaultDecode(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length){(0,a.warn)(\"The decode map is not the correct length\");return!0;}for(var _t69=0,_r71=e.length;_t69<_r71;_t69+=2)if(0!==e[_t69]||1!==e[_t69+1])return!1;return!0;}},{key:\"singletons\",get:function get(){return(0,a.shadow)(this,\"singletons\",{get gray(){return(0,a.shadow)(this,\"gray\",new DeviceGrayCS());},get rgb(){return(0,a.shadow)(this,\"rgb\",new DeviceRgbCS());},get cmyk(){return(0,a.shadow)(this,\"cmyk\",new o());}});}}]);return ColorSpace;}();t.ColorSpace=ColorSpace;var AlternateCS=/*#__PURE__*/function(_ColorSpace){_inherits(AlternateCS,_ColorSpace);function AlternateCS(e,t,r){var _this44;_classCallCheck(this,AlternateCS);_this44=_callSuper(this,AlternateCS,[\"Alternate\",e]);_this44.base=t;_this44.tintFn=r;_this44.tmpBuf=new Float32Array(t.numComps);return _this44;}_createClass(AlternateCS,[{key:\"getRgbItem\",value:function getRgbItem(e,t,r,a){var n=this.tmpBuf;this.tintFn(e,t,n,0);this.base.getRgbItem(n,0,r,a);}},{key:\"getRgbBuffer\",value:function getRgbBuffer(e,t,r,a,n,i,s){var o=this.tintFn,c=this.base,l=1/((1<<i)-1),h=c.numComps,u=c.usesZeroToOneRange,d=(c.isPassthrough(8)||!u)&&0===s;var f=d?n:0;var g=d?a:new Uint8ClampedArray(h*r),p=this.numComps,m=new Float32Array(p),b=new Float32Array(h);var y,w;for(y=0;y<r;y++){for(w=0;w<p;w++)m[w]=e[t++]*l;o(m,0,b,0);if(u)for(w=0;w<h;w++)g[f++]=255*b[w];else{c.getRgbItem(b,0,g,f);f+=h;}}d||c.getRgbBuffer(g,0,r,a,n,8,s);}},{key:\"getOutputLength\",value:function getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t);}}]);return AlternateCS;}(ColorSpace);var PatternCS=/*#__PURE__*/function(_ColorSpace2){_inherits(PatternCS,_ColorSpace2);function PatternCS(e){var _this45;_classCallCheck(this,PatternCS);_this45=_callSuper(this,PatternCS,[\"Pattern\",null]);_this45.base=e;return _this45;}_createClass(PatternCS,[{key:\"isDefaultDecode\",value:function isDefaultDecode(e,t){(0,a.unreachable)(\"Should not call PatternCS.isDefaultDecode\");}}]);return PatternCS;}(ColorSpace);var IndexedCS=/*#__PURE__*/function(_ColorSpace3){_inherits(IndexedCS,_ColorSpace3);function IndexedCS(e,t,r){var _this46;_classCallCheck(this,IndexedCS);_this46=_callSuper(this,IndexedCS,[\"Indexed\",1]);_this46.base=e;_this46.highVal=t;var n=e.numComps*t;_this46.lookup=new Uint8Array(n);if(r instanceof i.BaseStream){var _e95=r.getBytes(n);_this46.lookup.set(_e95);}else{if(\"string\"!=typeof r)throw new a.FormatError(\"IndexedCS - unrecognized lookup table: \".concat(r));for(var _e96=0;_e96<n;++_e96)_this46.lookup[_e96]=255&r.charCodeAt(_e96);}return _this46;}_createClass(IndexedCS,[{key:\"getRgbItem\",value:function getRgbItem(e,t,r,a){var n=this.base.numComps,i=e[t]*n;this.base.getRgbBuffer(this.lookup,i,1,r,a,8,0);}},{key:\"getRgbBuffer\",value:function getRgbBuffer(e,t,r,a,n,i,s){var o=this.base,c=o.numComps,l=o.getOutputLength(c,s),h=this.lookup;for(var _i41=0;_i41<r;++_i41){var _r72=e[t++]*c;o.getRgbBuffer(h,_r72,1,a,n,8,s);n+=l;}}},{key:\"getOutputLength\",value:function getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps,t);}},{key:\"isDefaultDecode\",value:function isDefaultDecode(e,t){if(!Array.isArray(e))return!0;if(2!==e.length){(0,a.warn)(\"Decode map length is not correct\");return!0;}if(!_Number$isInteger(t)||t<1){(0,a.warn)(\"Bits per component is not correct\");return!0;}return 0===e[0]&&e[1]===(1<<t)-1;}}]);return IndexedCS;}(ColorSpace);var DeviceGrayCS=/*#__PURE__*/function(_ColorSpace4){_inherits(DeviceGrayCS,_ColorSpace4);function DeviceGrayCS(){_classCallCheck(this,DeviceGrayCS);return _callSuper(this,DeviceGrayCS,[\"DeviceGray\",1]);}_createClass(DeviceGrayCS,[{key:\"getRgbItem\",value:function getRgbItem(e,t,r,a){var n=255*e[t];r[a]=r[a+1]=r[a+2]=n;}},{key:\"getRgbBuffer\",value:function getRgbBuffer(e,t,r,a,n,i,s){var o=255/((1<<i)-1);var c=t,l=n;for(var _t70=0;_t70<r;++_t70){var _t71=o*e[c++];a[l++]=_t71;a[l++]=_t71;a[l++]=_t71;l+=s;}}},{key:\"getOutputLength\",value:function getOutputLength(e,t){return e*(3+t);}}]);return DeviceGrayCS;}(ColorSpace);var DeviceRgbCS=/*#__PURE__*/function(_ColorSpace5){_inherits(DeviceRgbCS,_ColorSpace5);function DeviceRgbCS(){_classCallCheck(this,DeviceRgbCS);return _callSuper(this,DeviceRgbCS,[\"DeviceRGB\",3]);}_createClass(DeviceRgbCS,[{key:\"getRgbItem\",value:function getRgbItem(e,t,r,a){r[a]=255*e[t];r[a+1]=255*e[t+1];r[a+2]=255*e[t+2];}},{key:\"getRgbBuffer\",value:function getRgbBuffer(e,t,r,a,n,i,s){if(8===i&&0===s){a.set(e.subarray(t,t+3*r),n);return;}var o=255/((1<<i)-1);var c=t,l=n;for(var _t72=0;_t72<r;++_t72){a[l++]=o*e[c++];a[l++]=o*e[c++];a[l++]=o*e[c++];l+=s;}}},{key:\"getOutputLength\",value:function getOutputLength(e,t){return e*(3+t)/3|0;}},{key:\"isPassthrough\",value:function isPassthrough(e){return 8===e;}}]);return DeviceRgbCS;}(ColorSpace);var o=function DeviceCmykCSClosure(){function convertToRgb(e,t,r,a,n){var i=e[t]*r,s=e[t+1]*r,o=e[t+2]*r,c=e[t+3]*r;a[n]=255+i*(-4.387332384609988*i+54.48615194189176*s+18.82290502165302*o+212.25662451639585*c-285.2331026137004)+s*(1.7149763477362134*s-5.6096736904047315*o+-17.873870861415444*c-5.497006427196366)+o*(-2.5217340131683033*o-21.248923337353073*c+17.5119270841813)+c*(-21.86122147463605*c-189.48180835922747);a[n+1]=255+i*(8.841041422036149*i+60.118027045597366*s+6.871425592049007*o+31.159100130055922*c-79.2970844816548)+s*(-15.310361306967817*s+17.575251261109482*o+131.35250912493976*c-190.9453302588951)+o*(4.444339102852739*o+9.8632861493405*c-24.86741582555878)+c*(-20.737325471181034*c-187.80453709719578);a[n+2]=255+i*(.8842522430003296*i+8.078677503112928*s+30.89978309703729*o-.23883238689178934*c-14.183576799673286)+s*(10.49593273432072*s+63.02378494754052*o+50.606957656360734*c-112.23884253719248)+o*(.03296041114873217*o+115.60384449646641*c-193.58209356861505)+c*(-22.33816807309886*c-180.12613974708367);}return/*#__PURE__*/function(_ColorSpace6){_inherits(DeviceCmykCS,_ColorSpace6);function DeviceCmykCS(){_classCallCheck(this,DeviceCmykCS);return _callSuper(this,DeviceCmykCS,[\"DeviceCMYK\",4]);}_createClass(DeviceCmykCS,[{key:\"getRgbItem\",value:function getRgbItem(e,t,r,a){convertToRgb(e,t,1,r,a);}},{key:\"getRgbBuffer\",value:function getRgbBuffer(e,t,r,a,n,i,s){var o=1/((1<<i)-1);for(var _i42=0;_i42<r;_i42++){convertToRgb(e,t,o,a,n);t+=4;n+=3+s;}}},{key:\"getOutputLength\",value:function getOutputLength(e,t){return e/4*(3+t)|0;}}]);return DeviceCmykCS;}(ColorSpace);}(),c=function CalGrayCSClosure(){function convertToRgb(e,t,r,a,n,i){var s=Math.pow(t[r]*i,e.G),o=e.YW*s,c=Math.max(295.8*Math.pow(o,.3333333333333333)-40.8,0);a[n]=c;a[n+1]=c;a[n+2]=c;}return/*#__PURE__*/function(_ColorSpace7){_inherits(CalGrayCS,_ColorSpace7);function CalGrayCS(e,t,r){var _context161,_context162,_context163;var _this47;_classCallCheck(this,CalGrayCS);_this47=_callSuper(this,CalGrayCS,[\"CalGray\",1]);if(!e)throw new a.FormatError(\"WhitePoint missing - required for color space CalGray\");t=t||[0,0,0];r=r||1;_this47.XW=e[0];_this47.YW=e[1];_this47.ZW=e[2];_this47.XB=t[0];_this47.YB=t[1];_this47.ZB=t[2];_this47.G=r;if(_this47.XW<0||_this47.ZW<0||1!==_this47.YW)throw new a.FormatError(\"Invalid WhitePoint components for \".concat(_this47.name,\", no fallback available\"));if(_this47.XB<0||_this47.YB<0||_this47.ZB<0){(0,a.info)(\"Invalid BlackPoint for \".concat(_this47.name,\", falling back to default.\"));_this47.XB=_this47.YB=_this47.ZB=0;}0===_this47.XB&&0===_this47.YB&&0===_this47.ZB||(0,a.warn)(_concatInstanceProperty(_context161=_concatInstanceProperty(_context162=_concatInstanceProperty(_context163=\"\".concat(_this47.name,\", BlackPoint: XB: \")).call(_context163,_this47.XB,\", YB: \")).call(_context162,_this47.YB,\", ZB: \")).call(_context161,_this47.ZB,\", only default values are supported.\"));if(_this47.G<1){var _context164;(0,a.info)(_concatInstanceProperty(_context164=\"Invalid Gamma: \".concat(_this47.G,\" for \")).call(_context164,_this47.name,\", falling back to default.\"));_this47.G=1;}return _this47;}_createClass(CalGrayCS,[{key:\"getRgbItem\",value:function getRgbItem(e,t,r,a){convertToRgb(this,e,t,r,a,1);}},{key:\"getRgbBuffer\",value:function getRgbBuffer(e,t,r,a,n,i,s){var o=1/((1<<i)-1);for(var _i43=0;_i43<r;++_i43){convertToRgb(this,e,t,a,n,o);t+=1;n+=3+s;}}},{key:\"getOutputLength\",value:function getOutputLength(e,t){return e*(3+t);}}]);return CalGrayCS;}(ColorSpace);}(),l=function CalRGBCSClosure(){var e=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),t=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),r=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),n=new Float32Array([1,1,1]),i=new Float32Array(3),s=new Float32Array(3),o=new Float32Array(3);function matrixProduct(e,t,r){r[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2];r[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2];r[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2];}function sRGBTransferFunction(e){return e<=.0031308?adjustToRange(0,1,12.92*e):e>=.99554525?1:adjustToRange(0,1,1.055*Math.pow(e,1/2.4)-.055);}function adjustToRange(e,t,r){return Math.max(e,Math.min(t,r));}function decodeL(e){return e<0?-decodeL(-e):e>8?Math.pow((e+16)/116,3):.0011070564598794539*e;}function convertToRgb(a,c,l,h,u,d){var f=adjustToRange(0,1,c[l]*d),g=adjustToRange(0,1,c[l+1]*d),p=adjustToRange(0,1,c[l+2]*d),m=1===f?1:Math.pow(f,a.GR),b=1===g?1:Math.pow(g,a.GG),y=1===p?1:Math.pow(p,a.GB),w=a.MXA*m+a.MXB*b+a.MXC*y,S=a.MYA*m+a.MYB*b+a.MYC*y,x=a.MZA*m+a.MZB*b+a.MZC*y,k=s;k[0]=w;k[1]=S;k[2]=x;var C=o;!function normalizeWhitePointToFlat(r,a,n){if(1===r[0]&&1===r[2]){n[0]=a[0];n[1]=a[1];n[2]=a[2];return;}var s=n;matrixProduct(e,a,s);var o=i;!function convertToFlat(e,t,r){r[0]=1*t[0]/e[0];r[1]=1*t[1]/e[1];r[2]=1*t[2]/e[2];}(r,s,o);matrixProduct(t,o,n);}(a.whitePoint,k,C);var v=s;!function compensateBlackPoint(e,t,r){if(0===e[0]&&0===e[1]&&0===e[2]){r[0]=t[0];r[1]=t[1];r[2]=t[2];return;}var a=decodeL(0),n=(1-a)/(1-decodeL(e[0])),i=1-n,s=(1-a)/(1-decodeL(e[1])),o=1-s,c=(1-a)/(1-decodeL(e[2])),l=1-c;r[0]=t[0]*n+i;r[1]=t[1]*s+o;r[2]=t[2]*c+l;}(a.blackPoint,C,v);var O=o;!function normalizeWhitePointToD65(r,a,n){var s=n;matrixProduct(e,a,s);var o=i;!function convertToD65(e,t,r){r[0]=.95047*t[0]/e[0];r[1]=1*t[1]/e[1];r[2]=1.08883*t[2]/e[2];}(r,s,o);matrixProduct(t,o,n);}(n,v,O);var T=s;matrixProduct(r,O,T);h[u]=255*sRGBTransferFunction(T[0]);h[u+1]=255*sRGBTransferFunction(T[1]);h[u+2]=255*sRGBTransferFunction(T[2]);}return/*#__PURE__*/function(_ColorSpace8){_inherits(CalRGBCS,_ColorSpace8);function CalRGBCS(e,t,r,n){var _this48;_classCallCheck(this,CalRGBCS);_this48=_callSuper(this,CalRGBCS,[\"CalRGB\",3]);if(!e)throw new a.FormatError(\"WhitePoint missing - required for color space CalRGB\");t=t||new Float32Array(3);r=r||new Float32Array([1,1,1]);n=n||new Float32Array([1,0,0,0,1,0,0,0,1]);var i=e[0],s=e[1],o=e[2];_this48.whitePoint=e;var c=t[0],l=t[1],h=t[2];_this48.blackPoint=t;_this48.GR=r[0];_this48.GG=r[1];_this48.GB=r[2];_this48.MXA=n[0];_this48.MYA=n[1];_this48.MZA=n[2];_this48.MXB=n[3];_this48.MYB=n[4];_this48.MZB=n[5];_this48.MXC=n[6];_this48.MYC=n[7];_this48.MZC=n[8];if(i<0||o<0||1!==s)throw new a.FormatError(\"Invalid WhitePoint components for \".concat(_this48.name,\", no fallback available\"));if(c<0||l<0||h<0){var _context165,_context166,_context167;(0,a.info)(_concatInstanceProperty(_context165=_concatInstanceProperty(_context166=_concatInstanceProperty(_context167=\"Invalid BlackPoint for \".concat(_this48.name,\" [\")).call(_context167,c,\", \")).call(_context166,l,\", \")).call(_context165,h,\"], falling back to default.\"));_this48.blackPoint=new Float32Array(3);}if(_this48.GR<0||_this48.GG<0||_this48.GB<0){var _context168,_context169,_context170;(0,a.info)(_concatInstanceProperty(_context168=_concatInstanceProperty(_context169=_concatInstanceProperty(_context170=\"Invalid Gamma [\".concat(_this48.GR,\", \")).call(_context170,_this48.GG,\", \")).call(_context169,_this48.GB,\"] for \")).call(_context168,_this48.name,\", falling back to default.\"));_this48.GR=_this48.GG=_this48.GB=1;}return _this48;}_createClass(CalRGBCS,[{key:\"getRgbItem\",value:function getRgbItem(e,t,r,a){convertToRgb(this,e,t,r,a,1);}},{key:\"getRgbBuffer\",value:function getRgbBuffer(e,t,r,a,n,i,s){var o=1/((1<<i)-1);for(var _i44=0;_i44<r;++_i44){convertToRgb(this,e,t,a,n,o);t+=3;n+=3+s;}}},{key:\"getOutputLength\",value:function getOutputLength(e,t){return e*(3+t)/3|0;}}]);return CalRGBCS;}(ColorSpace);}(),h=function LabCSClosure(){function fn_g(e){var t;t=e>=6/29?Math.pow(e,3):108/841*(e-4/29);return t;}function decode(e,t,r,a){return r+e*(a-r)/t;}function convertToRgb(e,t,r,a,n,i){var s=t[r],o=t[r+1],c=t[r+2];if(!1!==a){s=decode(s,a,0,100);o=decode(o,a,e.amin,e.amax);c=decode(c,a,e.bmin,e.bmax);}o>e.amax?o=e.amax:o<e.amin&&(o=e.amin);c>e.bmax?c=e.bmax:c<e.bmin&&(c=e.bmin);var l=(s+16)/116,h=l+o/500,u=l-c/200,d=e.XW*fn_g(h),f=e.YW*fn_g(l),g=e.ZW*fn_g(u);var p,m,b;if(e.ZW<1){p=3.1339*d+-1.617*f+-.4906*g;m=-.9785*d+1.916*f+.0333*g;b=.072*d+-.229*f+1.4057*g;}else{p=3.2406*d+-1.5372*f+-.4986*g;m=-.9689*d+1.8758*f+.0415*g;b=.0557*d+-.204*f+1.057*g;}n[i]=255*Math.sqrt(p);n[i+1]=255*Math.sqrt(m);n[i+2]=255*Math.sqrt(b);}return/*#__PURE__*/function(_ColorSpace9){_inherits(LabCS,_ColorSpace9);function LabCS(e,t,r){var _this49;_classCallCheck(this,LabCS);_this49=_callSuper(this,LabCS,[\"Lab\",3]);if(!e)throw new a.FormatError(\"WhitePoint missing - required for color space Lab\");t=t||[0,0,0];r=r||[-100,100,-100,100];_this49.XW=e[0];_this49.YW=e[1];_this49.ZW=e[2];_this49.amin=r[0];_this49.amax=r[1];_this49.bmin=r[2];_this49.bmax=r[3];_this49.XB=t[0];_this49.YB=t[1];_this49.ZB=t[2];if(_this49.XW<0||_this49.ZW<0||1!==_this49.YW)throw new a.FormatError(\"Invalid WhitePoint components, no fallback available\");if(_this49.XB<0||_this49.YB<0||_this49.ZB<0){(0,a.info)(\"Invalid BlackPoint, falling back to default\");_this49.XB=_this49.YB=_this49.ZB=0;}if(_this49.amin>_this49.amax||_this49.bmin>_this49.bmax){(0,a.info)(\"Invalid Range, falling back to defaults\");_this49.amin=-100;_this49.amax=100;_this49.bmin=-100;_this49.bmax=100;}return _this49;}_createClass(LabCS,[{key:\"getRgbItem\",value:function getRgbItem(e,t,r,a){convertToRgb(this,e,t,!1,r,a);}},{key:\"getRgbBuffer\",value:function getRgbBuffer(e,t,r,a,n,i,s){var o=(1<<i)-1;for(var _i45=0;_i45<r;_i45++){convertToRgb(this,e,t,o,a,n);t+=3;n+=3+s;}}},{key:\"getOutputLength\",value:function getOutputLength(e,t){return e*(3+t)/3|0;}},{key:\"isDefaultDecode\",value:function isDefaultDecode(e,t){return!0;}},{key:\"usesZeroToOneRange\",get:function get(){return(0,a.shadow)(this,\"usesZeroToOneRange\",!1);}}]);return LabCS;}(ColorSpace);}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.PartialEvaluator=t.EvaluatorPreprocessor=void 0;var a=r(2),n=r(141),i=r(130),s=r(159),o=r(163),c=r(162),l=r(166),h=r(165),u=r(175),d=r(176),f=r(167),g=r(182),p=r(142),m=r(184),b=r(135),y=r(132),w=r(185),S=r(139),x=r(144),k=r(164),C=r(131),v=r(170),O=r(186),T=r(187),M=r(188);var E=_Object$freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),D=1,N=2,R=_Promise.resolve();function normalizeBlendMode(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)){for(var _t73=0,_r73=e.length;_t73<_r73;_t73++){var _r74=normalizeBlendMode(e[_t73],!0);if(_r74)return _r74;}(0,a.warn)(\"Unsupported blend mode Array: \".concat(e));return\"source-over\";}if(!(e instanceof i.Name))return t?null:\"source-over\";switch(e.name){case\"Normal\":case\"Compatible\":return\"source-over\";case\"Multiply\":return\"multiply\";case\"Screen\":return\"screen\";case\"Overlay\":return\"overlay\";case\"Darken\":return\"darken\";case\"Lighten\":return\"lighten\";case\"ColorDodge\":return\"color-dodge\";case\"ColorBurn\":return\"color-burn\";case\"HardLight\":return\"hard-light\";case\"SoftLight\":return\"soft-light\";case\"Difference\":return\"difference\";case\"Exclusion\":return\"exclusion\";case\"Hue\":return\"hue\";case\"Saturation\":return\"saturation\";case\"Color\":return\"color\";case\"Luminosity\":return\"luminosity\";}if(t)return null;(0,a.warn)(\"Unsupported blend mode: \".concat(e.name));return\"source-over\";}function incrementCachedImageMaskCount(e){e.fn===a.OPS.paintImageMaskXObject&&e.args[0]&&e.args[0].count>0&&e.args[0].count++;}var TimeSlotManager=/*#__PURE__*/function(){function TimeSlotManager(){_classCallCheck(this,TimeSlotManager);this.reset();}_createClass(TimeSlotManager,[{key:\"check\",value:function check(){if(++this.checked<TimeSlotManager.CHECK_TIME_EVERY)return!1;this.checked=0;return this.endTime<=Date.now();}},{key:\"reset\",value:function reset(){this.endTime=Date.now()+TimeSlotManager.TIME_SLOT_DURATION_MS;this.checked=0;}}],[{key:\"TIME_SLOT_DURATION_MS\",get:function get(){return(0,a.shadow)(this,\"TIME_SLOT_DURATION_MS\",20);}},{key:\"CHECK_TIME_EVERY\",get:function get(){return(0,a.shadow)(this,\"CHECK_TIME_EVERY\",100);}}]);return TimeSlotManager;}();var PartialEvaluator=/*#__PURE__*/function(){function PartialEvaluator(e){_classCallCheck(this,PartialEvaluator);var t=e.xref,r=e.handler,a=e.pageIndex,n=e.idFactory,i=e.fontCache,s=e.builtInCMapCache,o=e.standardFontDataCache,c=e.globalImageCache,_e$options=e.options,l=_e$options===void 0?null:_e$options;this.xref=t;this.handler=r;this.pageIndex=a;this.idFactory=n;this.fontCache=i;this.builtInCMapCache=s;this.standardFontDataCache=o;this.globalImageCache=c;this.options=l||E;this.parsingType3Font=!1;this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this);}_createClass(PartialEvaluator,[{key:\"_pdfFunctionFactory\",get:function get(){var e=new g.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,a.shadow)(this,\"_pdfFunctionFactory\",e);}},{key:\"clone\",value:function clone(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;var t=Object.create(this);t.options=_extends(Object.create(null),this.options,e);return t;}},{key:\"hasBlendModes\",value:function hasBlendModes(e,t){if(!(e instanceof i.Dict))return!1;if(e.objId&&t.has(e.objId))return!1;var r=new i.RefSet(t);e.objId&&r.put(e.objId);var n=[e],s=this.xref;for(;n.length;){var _e97=n.shift(),_t74=_e97.get(\"ExtGState\");if(_t74 instanceof i.Dict){var _iterator56=_createForOfIteratorHelper(_t74.getRawValues()),_step56;try{for(_iterator56.s();!(_step56=_iterator56.n()).done;){var _e98=_step56.value;if(_e98 instanceof i.Ref){if(r.has(_e98))continue;try{_e98=s.fetch(_e98);}catch(t){r.put(_e98);(0,a.info)(\"hasBlendModes - ignoring ExtGState: \\\"\".concat(t,\"\\\".\"));continue;}}if(!(_e98 instanceof i.Dict))continue;_e98.objId&&r.put(_e98.objId);var _t75=_e98.get(\"BM\");if(_t75 instanceof i.Name){if(\"Normal\"!==_t75.name)return!0;}else if(void 0!==_t75&&Array.isArray(_t75)){var _iterator57=_createForOfIteratorHelper(_t75),_step57;try{for(_iterator57.s();!(_step57=_iterator57.n()).done;){var _e99=_step57.value;if(_e99 instanceof i.Name&&\"Normal\"!==_e99.name)return!0;}}catch(err){_iterator57.e(err);}finally{_iterator57.f();}}}}catch(err){_iterator56.e(err);}finally{_iterator56.f();}}var _o9=_e97.get(\"XObject\");if(_o9 instanceof i.Dict){var _iterator58=_createForOfIteratorHelper(_o9.getRawValues()),_step58;try{for(_iterator58.s();!(_step58=_iterator58.n()).done;){var _e100=_step58.value;if(_e100 instanceof i.Ref){if(r.has(_e100))continue;try{_e100=s.fetch(_e100);}catch(t){r.put(_e100);(0,a.info)(\"hasBlendModes - ignoring XObject: \\\"\".concat(t,\"\\\".\"));continue;}}if(!(_e100 instanceof y.BaseStream))continue;_e100.dict.objId&&r.put(_e100.dict.objId);var _t76=_e100.dict.get(\"Resources\");if(_t76 instanceof i.Dict&&(!_t76.objId||!r.has(_t76.objId))){n.push(_t76);_t76.objId&&r.put(_t76.objId);}}}catch(err){_iterator58.e(err);}finally{_iterator58.f();}}}var _iterator59=_createForOfIteratorHelper(r),_step59;try{for(_iterator59.s();!(_step59=_iterator59.n()).done;){var _e101=_step59.value;t.put(_e101);}}catch(err){_iterator59.e(err);}finally{_iterator59.f();}return!1;}},{key:\"fetchBuiltInCMap\",value:function(){var _fetchBuiltInCMap=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee37(e){var t,r,_context171,_context172,_t77,_n31;return _regeneratorRuntime.wrap(function _callee37$(_context173){while(1)switch(_context173.prev=_context173.next){case 0:t=this.builtInCMapCache.get(e);if(!t){_context173.next=3;break;}return _context173.abrupt(\"return\",t);case 3:if(!(null!==this.options.cMapUrl)){_context173.next=19;break;}_t77=_concatInstanceProperty(_context171=\"\".concat(this.options.cMapUrl)).call(_context171,e,\".bcmap\");_context173.next=7;return fetch(_t77);case 7:_n31=_context173.sent;if(_n31.ok){_context173.next=10;break;}throw new Error(_concatInstanceProperty(_context172=\"fetchBuiltInCMap: failed to fetch file \\\"\".concat(_t77,\"\\\" with \\\"\")).call(_context172,_n31.statusText,\"\\\".\"));case 10:_context173.t0=Uint8Array;_context173.next=13;return _n31.arrayBuffer();case 13:_context173.t1=_context173.sent;_context173.t2=new _context173.t0(_context173.t1);_context173.t3=a.CMapCompressionType.BINARY;r={cMapData:_context173.t2,compressionType:_context173.t3};_context173.next=22;break;case 19:_context173.next=21;return this.handler.sendWithPromise(\"FetchBuiltInCMap\",{name:e});case 21:r=_context173.sent;case 22:r.compressionType!==a.CMapCompressionType.NONE&&this.builtInCMapCache.set(e,r);return _context173.abrupt(\"return\",r);case 24:case\"end\":return _context173.stop();}},_callee37,this);}));function fetchBuiltInCMap(_x90){return _fetchBuiltInCMap.apply(this,arguments);}return fetchBuiltInCMap;}()},{key:\"fetchStandardFontData\",value:function(){var _fetchStandardFontData=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee38(e){var t,r,n,_context174,_context175,_e102,_t78,_context176;return _regeneratorRuntime.wrap(function _callee38$(_context177){while(1)switch(_context177.prev=_context177.next){case 0:t=this.standardFontDataCache.get(e);if(!t){_context177.next=3;break;}return _context177.abrupt(\"return\",new b.Stream(t));case 3:if(!(this.options.useSystemFonts&&\"Symbol\"!==e&&\"ZapfDingbats\"!==e)){_context177.next=5;break;}return _context177.abrupt(\"return\",null);case 5:r=(0,l.getFontNameToFileMap)()[e];if(!(null!==this.options.standardFontDataUrl)){_context177.next=20;break;}_e102=_concatInstanceProperty(_context174=\"\".concat(this.options.standardFontDataUrl)).call(_context174,r);_context177.next=10;return fetch(_e102);case 10:_t78=_context177.sent;if(!_t78.ok){_context177.next=17;break;}_context177.next=14;return _t78.arrayBuffer();case 14:n=_context177.sent;_context177.next=18;break;case 17:(0,a.warn)(_concatInstanceProperty(_context175=\"fetchStandardFontData: failed to fetch file \\\"\".concat(_e102,\"\\\" with \\\"\")).call(_context175,_t78.statusText,\"\\\".\"));case 18:_context177.next=29;break;case 20:_context177.prev=20;_context177.next=23;return this.handler.sendWithPromise(\"FetchStandardFontData\",{filename:r});case 23:n=_context177.sent;_context177.next=29;break;case 26:_context177.prev=26;_context177.t0=_context177[\"catch\"](20);(0,a.warn)(_concatInstanceProperty(_context176=\"fetchStandardFontData: failed to fetch file \\\"\".concat(r,\"\\\" with \\\"\")).call(_context176,_context177.t0,\"\\\".\"));case 29:if(n){_context177.next=31;break;}return _context177.abrupt(\"return\",null);case 31:this.standardFontDataCache.set(e,n);return _context177.abrupt(\"return\",new b.Stream(n));case 33:case\"end\":return _context177.stop();}},_callee38,this,[[20,26]]);}));function fetchStandardFontData(_x91){return _fetchStandardFontData.apply(this,arguments);}return fetchStandardFontData;}()},{key:\"buildFormXObject\",value:function(){var _buildFormXObject=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee39(e,t,r,n,s,o,c){var l,h,u,d,f,g,_t79,_s20,_t80,_r75,p;return _regeneratorRuntime.wrap(function _callee39$(_context178){while(1)switch(_context178.prev=_context178.next){case 0:l=t.dict,h=l.getArray(\"Matrix\");f=l.getArray(\"BBox\");f=Array.isArray(f)&&4===f.length?a.Util.normalizeRect(f):null;_context178.t0=l.has(\"OC\");if(!_context178.t0){_context178.next=8;break;}_context178.next=7;return this.parseMarkedContentProps(l.get(\"OC\"),e);case 7:u=_context178.sent;case 8:void 0!==u&&n.addOp(a.OPS.beginMarkedContentProps,[\"OC\",u]);g=l.get(\"Group\");if(!g){_context178.next=27;break;}d={matrix:h,bbox:f,smask:r,isolated:!1,knockout:!1};_t79=g.get(\"S\");_s20=null;if(!(0,i.isName)(_t79,\"Transparency\")){_context178.next=25;break;}d.isolated=g.get(\"I\")||!1;d.knockout=g.get(\"K\")||!1;if(!g.has(\"CS\")){_context178.next=25;break;}_t80=g.getRaw(\"CS\"),_r75=S.ColorSpace.getCached(_t80,this.xref,c);_context178.t1=_r75;if(_context178.t1){_context178.next=24;break;}_context178.next=23;return this.parseColorSpace({cs:_t80,resources:e,localColorSpaceCache:c});case 23:_context178.t1=_context178.sent;case 24:_s20=_context178.t1;case 25:if(r&&r.backdrop){_s20=_s20||S.ColorSpace.singletons.rgb;r.backdrop=_s20.getRgb(r.backdrop,0);}n.addOp(a.OPS.beginGroup,[d]);case 27:p=g?[h,null]:[h,f];n.addOp(a.OPS.paintFormXObjectBegin,p);return _context178.abrupt(\"return\",this.getOperatorList({stream:t,task:s,resources:l.get(\"Resources\")||e,operatorList:n,initialState:o}).then(function(){n.addOp(a.OPS.paintFormXObjectEnd,[]);g&&n.addOp(a.OPS.endGroup,[d]);void 0!==u&&n.addOp(a.OPS.endMarkedContent,[]);}));case 30:case\"end\":return _context178.stop();}},_callee39,this);}));function buildFormXObject(_x92,_x93,_x94,_x95,_x96,_x97,_x98){return _buildFormXObject.apply(this,arguments);}return buildFormXObject;}()},{key:\"_sendImgData\",value:function _sendImgData(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var a=t?[t.bitmap||t.data.buffer]:null;return this.parsingType3Font||r?this.handler.send(\"commonobj\",[e,\"Image\",t],a):this.handler.send(\"obj\",[e,this.pageIndex,\"Image\",t],a);}},{key:\"buildPaintImageXObject\",value:function(){var _buildPaintImageXObject=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee40(e){var _context179,_this50=this;var t,r,_e$isInline,n,i,s,o,c,l,h,u,d,f,_e103,g,p,m,_e104,_t81,_n32,_c7,_f,b,y,_e105,w,S,_context180;return _regeneratorRuntime.wrap(function _callee40$(_context182){while(1)switch(_context182.prev=_context182.next){case 0:t=e.resources,r=e.image,_e$isInline=e.isInline,n=_e$isInline===void 0?!1:_e$isInline,i=e.operatorList,s=e.cacheKey,o=e.localImageCache,c=e.localColorSpaceCache;l=r.dict,h=l.objId,u=l.get(\"W\",\"Width\"),d=l.get(\"H\",\"Height\");if(!(!u||\"number\"!=typeof u||!d||\"number\"!=typeof d)){_context182.next=5;break;}(0,a.warn)(\"Image dimensions are missing, or not numbers.\");return _context182.abrupt(\"return\");case 5:f=this.options.maxImageSize;if(!(-1!==f&&u*d>f)){_context182.next=12;break;}_e103=\"Image exceeded maximum allowed size and was removed.\";if(!this.options.ignoreErrors){_context182.next=11;break;}(0,a.warn)(_e103);return _context182.abrupt(\"return\");case 11:throw new Error(_e103);case 12:_context182.t0=l.has(\"OC\");if(!_context182.t0){_context182.next=17;break;}_context182.next=16;return this.parseMarkedContentProps(l.get(\"OC\"),t);case 16:g=_context182.sent;case 17:if(!(l.get(\"IM\",\"ImageMask\")||!1)){_context182.next=38;break;}_e104=l.get(\"I\",\"Interpolate\"),_t81=u+7>>3,_n32=r.getBytes(_t81*d),_c7=l.getArray(\"D\",\"Decode\");if(!this.parsingType3Font){_context182.next=26;break;}p=M.PDFImage.createRawMask({imgArray:_n32,width:u,height:d,imageIsFromDecodeStream:r instanceof x.DecodeStream,inverseDecode:!!_c7&&_c7[0]>0,interpolate:_e104});p.cached=!!s;m=[p];i.addImageOps(a.OPS.paintImageMaskXObject,m,g);s&&o.set(s,h,{fn:a.OPS.paintImageMaskXObject,args:m,optionalContent:g});return _context182.abrupt(\"return\");case 26:p=M.PDFImage.createMask({imgArray:_n32,width:u,height:d,imageIsFromDecodeStream:r instanceof x.DecodeStream,inverseDecode:!!_c7&&_c7[0]>0,interpolate:_e104});if(!p.isSingleOpaquePixel){_context182.next=31;break;}i.addImageOps(a.OPS.paintSolidColorImageMask,[],g);s&&o.set(s,h,{fn:a.OPS.paintSolidColorImageMask,args:[],optionalContent:g});return _context182.abrupt(\"return\");case 31:_f=\"mask_\".concat(this.idFactory.createObjId());i.addDependency(_f);this._sendImgData(_f,p);m=[{data:_f,width:p.width,height:p.height,interpolate:p.interpolate,count:1}];i.addImageOps(a.OPS.paintImageMaskXObject,m,g);s&&o.set(s,h,{fn:a.OPS.paintImageMaskXObject,args:m,optionalContent:g});return _context182.abrupt(\"return\");case 38:b=l.get(\"SM\",\"SMask\")||!1,y=l.get(\"Mask\")||!1;if(!(n&&!b&&!y&&u+d<200)){_context182.next=44;break;}_e105=new M.PDFImage({xref:this.xref,res:t,image:r,isInline:n,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:c});p=_e105.createImageData(!0);i.addImageOps(a.OPS.paintInlineImageXObject,[p],g);return _context182.abrupt(\"return\");case 44:w=\"img_\".concat(this.idFactory.createObjId()),S=!1;if(this.parsingType3Font)w=_concatInstanceProperty(_context179=\"\".concat(this.idFactory.getDocId(),\"_type3_\")).call(_context179,w);else if(h){S=this.globalImageCache.shouldCache(h,this.pageIndex);S&&(w=_concatInstanceProperty(_context180=\"\".concat(this.idFactory.getDocId(),\"_\")).call(_context180,w));}i.addDependency(w);m=[w,u,d];M.PDFImage.buildImage({xref:this.xref,res:t,image:r,isInline:n,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:c}).then(function(e){p=e.createImageData(!1);s&&h&&S&&_this50.globalImageCache.addByteSize(h,p.data.length);return _this50._sendImgData(w,p,S);}).catch(function(e){var _context181;(0,a.warn)(_concatInstanceProperty(_context181=\"Unable to decode image \\\"\".concat(w,\"\\\": \\\"\")).call(_context181,e,\"\\\".\"));return _this50._sendImgData(w,null,S);});i.addImageOps(a.OPS.paintImageXObject,m,g);if(s){o.set(s,h,{fn:a.OPS.paintImageXObject,args:m,optionalContent:g});if(h){(0,a.assert)(!n,\"Cannot cache an inline image globally.\");this.globalImageCache.addPageIndex(h,this.pageIndex);S&&this.globalImageCache.setData(h,{objId:w,fn:a.OPS.paintImageXObject,args:m,optionalContent:g,byteSize:0});}}case 51:case\"end\":return _context182.stop();}},_callee40,this);}));function buildPaintImageXObject(_x99){return _buildPaintImageXObject.apply(this,arguments);}return buildPaintImageXObject;}()},{key:\"handleSMask\",value:function handleSMask(e,t,r,a,n,i){var s=e.get(\"G\"),o={subtype:e.get(\"S\").name,backdrop:e.get(\"BC\")},c=e.get(\"TR\");if((0,g.isPDFFunction)(c)){var _e106=this._pdfFunctionFactory.create(c),_t82=new Uint8Array(256),_r76=new Float32Array(1);for(var _a57=0;_a57<256;_a57++){_r76[0]=_a57/255;_e106(_r76,0,_r76,0);_t82[_a57]=255*_r76[0]|0;}o.transferMap=_t82;}return this.buildFormXObject(t,s,o,r,a,n.state.clone(),i);}},{key:\"handleTransferFunction\",value:function handleTransferFunction(e){var t;if(Array.isArray(e))t=e;else{if(!(0,g.isPDFFunction)(e))return null;t=[e];}var r=[];var a=0,n=0;var _iterator60=_createForOfIteratorHelper(t),_step60;try{for(_iterator60.s();!(_step60=_iterator60.n()).done;){var _e107=_step60.value;var _t83=this.xref.fetchIfRef(_e107);a++;if((0,i.isName)(_t83,\"Identity\")){r.push(null);continue;}if(!(0,g.isPDFFunction)(_t83))return null;var _s21=this._pdfFunctionFactory.create(_t83),_o10=new Uint8Array(256),_c8=new Float32Array(1);for(var _e108=0;_e108<256;_e108++){_c8[0]=_e108/255;_s21(_c8,0,_c8,0);_o10[_e108]=255*_c8[0]|0;}r.push(_o10);n++;}}catch(err){_iterator60.e(err);}finally{_iterator60.f();}return 1!==a&&4!==a||0===n?null:r;}},{key:\"handleTilingType\",value:function handleTilingType(e,t,r,n,s,o,c,l){var _this51=this;var h=new T.OperatorList(),d=i.Dict.merge({xref:this.xref,dictArray:[s.get(\"Resources\"),r]});return this.getOperatorList({stream:n,task:c,resources:d,operatorList:h}).then(function(){var r=h.getIR(),a=(0,u.getTilingPatternIR)(r,s,t);o.addDependencies(h.dependencies);o.addOp(e,a);s.objId&&l.set(null,s.objId,{operatorListIR:r,dict:s});}).catch(function(e){if(!(e instanceof a.AbortException)){if(!_this51.options.ignoreErrors)throw e;_this51.handler.send(\"UnsupportedFeature\",{featureId:a.UNSUPPORTED_FEATURES.errorTilingPattern});(0,a.warn)(\"handleTilingType - ignoring pattern: \\\"\".concat(e,\"\\\".\"));}});}},{key:\"handleSetFont\",value:function handleSetFont(e,t,r,n,o,c){var _this52=this;var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,h=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;var u=t&&t[0]instanceof i.Name?t[0].name:null;return this.loadFont(u,r,e,l,h).then(function(t){return t.font.isType3Font?t.loadType3Data(_this52,e,o).then(function(){n.addDependencies(t.type3Dependencies);return t;}).catch(function(e){_this52.handler.send(\"UnsupportedFeature\",{featureId:a.UNSUPPORTED_FEATURES.errorFontLoadType3});return new TranslatedFont({loadedName:\"g_font_error\",font:new s.ErrorFont(\"Type3 font load error: \".concat(e)),dict:t.font,evaluatorOptions:_this52.options});}):t;}).then(function(e){c.font=e.font;e.send(_this52.handler);return e.loadedName;});}},{key:\"handleText\",value:function handleText(e,t){var r=t.font,n=r.charsToGlyphs(e);if(r.data){(!!(t.textRenderingMode&a.TextRenderingMode.ADD_TO_PATH_FLAG)||\"Pattern\"===t.fillColorSpace.name||r.disableFontFace||this.options.disableFontFace)&&PartialEvaluator.buildFontPaths(r,n,this.handler,this.options);}return n;}},{key:\"ensureStateFont\",value:function ensureStateFont(e){if(e.font)return;var t=new a.FormatError(\"Missing setFont (Tf) operator before text rendering operator.\");if(!this.options.ignoreErrors)throw t;this.handler.send(\"UnsupportedFeature\",{featureId:a.UNSUPPORTED_FEATURES.errorFontState});(0,a.warn)(\"ensureStateFont: \\\"\".concat(t,\"\\\".\"));}},{key:\"setGState\",value:function(){var _setGState=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee41(e){var _this53=this;var t,r,n,s,o,c,l,h,u,d,f,g,p,_loop4,_e109,_s22;return _regeneratorRuntime.wrap(function _callee41$(_context184){while(1)switch(_context184.prev=_context184.next){case 0:t=e.resources,r=e.gState,n=e.operatorList,s=e.cacheKey,o=e.task,c=e.stateManager,l=e.localGStateCache,h=e.localColorSpaceCache;u=r.objId;d=!0;f=[],g=r.getKeys();p=_Promise.resolve();_loop4=/*#__PURE__*/_regeneratorRuntime.mark(function _loop4(){var s,l,_e110;return _regeneratorRuntime.wrap(function _loop4$(_context183){while(1)switch(_context183.prev=_context183.next){case 0:s=g[_e109],l=r.get(s);_context183.t0=s;_context183.next=_context183.t0===\"Type\"?4:_context183.t0===\"LW\"?5:_context183.t0===\"LC\"?5:_context183.t0===\"LJ\"?5:_context183.t0===\"ML\"?5:_context183.t0===\"D\"?5:_context183.t0===\"RI\"?5:_context183.t0===\"FL\"?5:_context183.t0===\"CA\"?5:_context183.t0===\"ca\"?5:_context183.t0===\"Font\"?7:_context183.t0===\"BM\"?10:_context183.t0===\"SMask\"?12:_context183.t0===\"TR\"?17:_context183.t0===\"OP\"?20:_context183.t0===\"op\"?20:_context183.t0===\"OPM\"?20:_context183.t0===\"BG\"?20:_context183.t0===\"BG2\"?20:_context183.t0===\"UCR\"?20:_context183.t0===\"UCR2\"?20:_context183.t0===\"TR2\"?20:_context183.t0===\"HT\"?20:_context183.t0===\"SM\"?20:_context183.t0===\"SA\"?20:_context183.t0===\"AIS\"?20:_context183.t0===\"TK\"?20:22;break;case 4:return _context183.abrupt(\"break\",23);case 5:f.push([s,l]);return _context183.abrupt(\"break\",23);case 7:d=!1;p=p.then(function(){return _this53.handleSetFont(t,null,l[0],n,o,c.state).then(function(e){n.addDependency(e);f.push([s,[e,l[1]]]);});});return _context183.abrupt(\"break\",23);case 10:f.push([s,normalizeBlendMode(l)]);return _context183.abrupt(\"break\",23);case 12:if(!(0,i.isName)(l,\"None\")){_context183.next=15;break;}f.push([s,!1]);return _context183.abrupt(\"break\",23);case 15:if(l instanceof i.Dict){d=!1;p=p.then(function(){return _this53.handleSMask(l,t,n,o,c,h);});f.push([s,!0]);}else(0,a.warn)(\"Unsupported SMask type\");return _context183.abrupt(\"break\",23);case 17:_e110=_this53.handleTransferFunction(l);f.push([s,_e110]);return _context183.abrupt(\"break\",23);case 20:(0,a.info)(\"graphic state operator \"+s);return _context183.abrupt(\"break\",23);case 22:(0,a.info)(\"Unknown graphic state operator \"+s);case 23:case\"end\":return _context183.stop();}},_loop4);});_e109=0,_s22=g.length;case 7:if(!(_e109<_s22)){_context184.next=12;break;}return _context184.delegateYield(_loop4(),\"t0\",9);case 9:_e109++;_context184.next=7;break;case 12:return _context184.abrupt(\"return\",p.then(function(){f.length>0&&n.addOp(a.OPS.setGState,[f]);d&&l.set(s,u,f);}));case 13:case\"end\":return _context184.stop();}},_callee41);}));function setGState(_x100){return _setGState.apply(this,arguments);}return setGState;}()},{key:\"loadFont\",value:function loadFont(e,t,r){var _this54=this,_context186;var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;var errorFont=/*#__PURE__*/function(){var _ref5=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee42(){return _regeneratorRuntime.wrap(function _callee42$(_context185){while(1)switch(_context185.prev=_context185.next){case 0:return _context185.abrupt(\"return\",new TranslatedFont({loadedName:\"g_font_error\",font:new s.ErrorFont(\"Font \\\"\".concat(e,\"\\\" is not available.\")),dict:t,evaluatorOptions:_this54.options}));case 1:case\"end\":return _context185.stop();}},_callee42);}));return function errorFont(){return _ref5.apply(this,arguments);};}(),l=this.xref;var h;if(t)t instanceof i.Ref&&(h=t);else{var _t84=r.get(\"Font\");_t84&&(h=_t84.getRaw(e));}if(!h){var _r77=\"Font \\\"\".concat(e||t&&t.toString(),\"\\\" is not available\");if(!this.options.ignoreErrors&&!this.parsingType3Font){(0,a.warn)(\"\".concat(_r77,\".\"));return errorFont();}this.handler.send(\"UnsupportedFeature\",{featureId:a.UNSUPPORTED_FEATURES.errorFontMissing});(0,a.warn)(\"\".concat(_r77,\" -- attempting to fallback to a default font.\"));h=n||PartialEvaluator.fallbackFontDict;}if(this.parsingType3Font&&this.type3FontRefs.has(h))return errorFont();if(this.fontCache.has(h))return this.fontCache.get(h);if(!((t=l.fetchIfRef(h))instanceof i.Dict))return errorFont();if(t.cacheKey&&this.fontCache.has(t.cacheKey))return this.fontCache.get(t.cacheKey);var u=(0,a.createPromiseCapability)();var d;try{d=this.preEvaluateFont(t);d.cssFontInfo=c;}catch(e){(0,a.warn)(\"loadFont - preEvaluateFont failed: \\\"\".concat(e,\"\\\".\"));return errorFont();}var _d2=d,f=_d2.descriptor,g=_d2.hash,p=h instanceof i.Ref;var m;p&&(m=\"f\".concat(h.toString()));if(g&&f instanceof i.Dict){f.fontAliases||(f.fontAliases=Object.create(null));var _e111=f.fontAliases;if(_e111[g]){var _t85=_e111[g].aliasRef;if(p&&_t85&&this.fontCache.has(_t85)){this.fontCache.putAlias(h,_t85);return this.fontCache.get(h);}}else _e111[g]={fontID:this.idFactory.createFontId()};p&&(_e111[g].aliasRef=h);m=_e111[g].fontID;}if(p)this.fontCache.put(h,u.promise);else{m||(m=this.idFactory.createFontId());t.cacheKey=\"cacheKey_\".concat(m);this.fontCache.put(t.cacheKey,u.promise);}(0,a.assert)(m&&_startsWithInstanceProperty(m).call(m,\"f\"),'The \"fontID\" must be (correctly) defined.');t.loadedName=_concatInstanceProperty(_context186=\"\".concat(this.idFactory.getDocId(),\"_\")).call(_context186,m);this.translateFont(d).then(function(e){void 0!==e.fontType&&l.stats.addFontType(e.fontType);u.resolve(new TranslatedFont({loadedName:t.loadedName,font:e,dict:t,evaluatorOptions:_this54.options}));}).catch(function(e){_this54.handler.send(\"UnsupportedFeature\",{featureId:a.UNSUPPORTED_FEATURES.errorFontTranslate});(0,a.warn)(\"loadFont - translateFont failed: \\\"\".concat(e,\"\\\".\"));try{var _e112=f&&f.get(\"FontFile3\"),_t86=_e112&&_e112.get(\"Subtype\"),_r78=(0,o.getFontType)(d.type,_t86&&_t86.name);void 0!==_r78&&l.stats.addFontType(_r78);}catch(e){}u.resolve(new TranslatedFont({loadedName:t.loadedName,font:new s.ErrorFont(e instanceof Error?e.message:e),dict:t,evaluatorOptions:_this54.options}));});return u.promise;}},{key:\"buildPath\",value:function buildPath(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var i=e.length-1;r||(r=[]);var s;if(i<0||e.fnArray[i]!==a.OPS.constructPath){if(n){(0,a.warn)(\"Encountered path operator \\\"\".concat(t,\"\\\" inside of a text object.\"));e.addOp(a.OPS.save,null);}s=[1/0,-1/0,1/0,-1/0];e.addOp(a.OPS.constructPath,[[t],r,s]);n&&e.addOp(a.OPS.restore,null);}else{var _a58=e.argsArray[i];_a58[0].push(t);Array.prototype.push.apply(_a58[1],r);s=_a58[2];}switch(t){case a.OPS.rectangle:s[0]=Math.min(s[0],r[0],r[0]+r[2]);s[1]=Math.max(s[1],r[0],r[0]+r[2]);s[2]=Math.min(s[2],r[1],r[1]+r[3]);s[3]=Math.max(s[3],r[1],r[1]+r[3]);break;case a.OPS.moveTo:case a.OPS.lineTo:s[0]=Math.min(s[0],r[0]);s[1]=Math.max(s[1],r[0]);s[2]=Math.min(s[2],r[1]);s[3]=Math.max(s[3],r[1]);}}},{key:\"parseColorSpace\",value:function parseColorSpace(e){var _this55=this;var t=e.cs,r=e.resources,n=e.localColorSpaceCache;return S.ColorSpace.parseAsync({cs:t,xref:this.xref,resources:r,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:n}).catch(function(e){if(e instanceof a.AbortException)return null;if(_this55.options.ignoreErrors){_this55.handler.send(\"UnsupportedFeature\",{featureId:a.UNSUPPORTED_FEATURES.errorColorSpace});(0,a.warn)(\"parseColorSpace - ignoring ColorSpace: \\\"\".concat(e,\"\\\".\"));return null;}throw e;});}},{key:\"parseShading\",value:function parseShading(e){var t=e.shading,r=e.resources,a=e.localColorSpaceCache,n=e.localShadingPatternCache,i=n.get(t);if(!i){var _e113=u.Pattern.parseShading(t,this.xref,r,this.handler,this._pdfFunctionFactory,a).getIR();i=\"pattern_\".concat(this.idFactory.createObjId());n.set(t,i);this.handler.send(\"obj\",[i,this.pageIndex,\"Pattern\",_e113]);}return i;}},{key:\"handleColorN\",value:function handleColorN(e,t,r,n,s,o,c,l,h,d){var f=r.pop();if(f instanceof i.Name){var _g3=s.getRaw(f.name),p=_g3 instanceof i.Ref&&h.getByRef(_g3);if(p)try{var _a59=n.base?n.base.getRgb(r,0):null,_i46=(0,u.getTilingPatternIR)(p.operatorListIR,p.dict,_a59);e.addOp(t,_i46);return;}catch(e){}var m=this.xref.fetchIfRef(_g3);if(m){var _i47=m instanceof y.BaseStream?m.dict:m,_s23=_i47.get(\"PatternType\");if(_s23===D){var _a60=n.base?n.base.getRgb(r,0):null;return this.handleTilingType(t,_a60,o,m,_i47,e,c,h);}if(_s23===N){var _r79=_i47.get(\"Shading\"),_a61=_i47.getArray(\"Matrix\"),_n33=this.parseShading({shading:_r79,resources:o,localColorSpaceCache:l,localShadingPatternCache:d});e.addOp(t,[\"Shading\",_n33,_a61]);return;}throw new a.FormatError(\"Unknown PatternType: \".concat(_s23));}}throw new a.FormatError(\"Unknown PatternName: \".concat(f));}},{key:\"_parseVisibilityExpression\",value:function _parseVisibilityExpression(e,t,r){if(++t>10){(0,a.warn)(\"Visibility expression is too deeply nested\");return;}var n=e.length,s=this.xref.fetchIfRef(e[0]);if(!(n<2)&&s instanceof i.Name){switch(s.name){case\"And\":case\"Or\":case\"Not\":r.push(s.name);break;default:(0,a.warn)(\"Invalid operator \".concat(s.name,\" in visibility expression\"));return;}for(var _a62=1;_a62<n;_a62++){var _n34=e[_a62],_s24=this.xref.fetchIfRef(_n34);if(Array.isArray(_s24)){var _e114=[];r.push(_e114);this._parseVisibilityExpression(_s24,t,_e114);}else _n34 instanceof i.Ref&&r.push(_n34.toString());}}else(0,a.warn)(\"Invalid visibility expression\");}},{key:\"parseMarkedContentProps\",value:function(){var _parseMarkedContentProps=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee43(e,t){var r,n,_e115,_t87,_t88,_e116,_iterator61,_step61,_r80;return _regeneratorRuntime.wrap(function _callee43$(_context187){while(1)switch(_context187.prev=_context187.next){case 0:if(!(e instanceof i.Name)){_context187.next=4;break;}r=t.get(\"Properties\").get(e.name);_context187.next=7;break;case 4:if(e instanceof i.Dict){_context187.next=6;break;}throw new a.FormatError(\"Optional content properties malformed.\");case 6:r=e;case 7:n=r.get(\"Type\").name;if(!(\"OCG\"===n)){_context187.next=10;break;}return _context187.abrupt(\"return\",{type:n,id:r.objId});case 10:if(!(\"OCMD\"===n)){_context187.next=24;break;}_e115=r.get(\"VE\");if(!Array.isArray(_e115)){_context187.next=17;break;}_t87=[];this._parseVisibilityExpression(_e115,0,_t87);if(!(_t87.length>0)){_context187.next=17;break;}return _context187.abrupt(\"return\",{type:\"OCMD\",expression:_t87});case 17:_t88=r.get(\"OCGs\");if(!(Array.isArray(_t88)||_t88 instanceof i.Dict)){_context187.next=22;break;}_e116=[];if(Array.isArray(_t88)){_iterator61=_createForOfIteratorHelper(_t88);try{for(_iterator61.s();!(_step61=_iterator61.n()).done;){_r80=_step61.value;_e116.push(_r80.toString());}}catch(err){_iterator61.e(err);}finally{_iterator61.f();}}else _e116.push(_t88.objId);return _context187.abrupt(\"return\",{type:n,ids:_e116,policy:r.get(\"P\")instanceof i.Name?r.get(\"P\").name:null,expression:null});case 22:if(!(_t88 instanceof i.Ref)){_context187.next=24;break;}return _context187.abrupt(\"return\",{type:n,id:_t88.toString()});case 24:return _context187.abrupt(\"return\",null);case 25:case\"end\":return _context187.stop();}},_callee43,this);}));function parseMarkedContentProps(_x101,_x102){return _parseMarkedContentProps.apply(this,arguments);}return parseMarkedContentProps;}()},{key:\"getOperatorList\",value:function getOperatorList(e){var _this56=this;var t=e.stream,r=e.task,n=e.resources,s=e.operatorList,_e$initialState=e.initialState,o=_e$initialState===void 0?null:_e$initialState,_e$fallbackFontDict=e.fallbackFontDict,c=_e$fallbackFontDict===void 0?null:_e$fallbackFontDict;n=n||i.Dict.empty;o=o||new EvalState();if(!s)throw new Error('getOperatorList: missing \"operatorList\" parameter');var l=this,h=this.xref;var u=!1;var d=new m.LocalImageCache(),f=new m.LocalColorSpaceCache(),g=new m.LocalGStateCache(),p=new m.LocalTilingPatternCache(),b=new _Map(),w=n.get(\"XObject\")||i.Dict.empty,x=n.get(\"Pattern\")||i.Dict.empty,k=new StateManager(o),C=new EvaluatorPreprocessor(t,h,k),v=new TimeSlotManager();function closePendingRestoreOPS(e){for(var _e117=0,_t89=C.savedStatesDepth;_e117<_t89;_e117++)s.addOp(a.OPS.restore,[]);}return new _Promise(function promiseBody(e,t){var next=function next(r){_Promise.all([r,s.ready]).then(function(){try{promiseBody(e,t);}catch(e){t(e);}},t);};r.ensureNotTerminated();v.reset();var o={};var m,O,T,M,E,D;for(;!(m=v.check());){o.args=null;if(!C.read(o))break;var _e118=o.args,_t90=o.fn;switch(0|_t90){case a.OPS.paintXObject:D=_e118[0]instanceof i.Name;E=_e118[0].name;if(D){var _t91=d.getByName(E);if(_t91){s.addImageOps(_t91.fn,_t91.args,_t91.optionalContent);incrementCachedImageMaskCount(_t91);_e118=null;continue;}}next(new _Promise(function(e,t){if(!D)throw new a.FormatError(\"XObject must be referred to by name.\");var o=w.getRaw(E);if(o instanceof i.Ref){var _t92=d.getByRef(o);if(_t92){s.addImageOps(_t92.fn,_t92.args,_t92.optionalContent);incrementCachedImageMaskCount(_t92);e();return;}var _r81=l.globalImageCache.getData(o,l.pageIndex);if(_r81){s.addDependency(_r81.objId);s.addImageOps(_r81.fn,_r81.args,_r81.optionalContent);e();return;}o=h.fetch(o);}if(!(o instanceof y.BaseStream))throw new a.FormatError(\"XObject should be a stream\");var c=o.dict.get(\"Subtype\");if(!(c instanceof i.Name))throw new a.FormatError(\"XObject should have a Name subtype\");if(\"Form\"!==c.name){if(\"Image\"!==c.name){if(\"PS\"!==c.name)throw new a.FormatError(\"Unhandled XObject subtype \".concat(c.name));(0,a.info)(\"Ignored XObject subtype PS\");e();}else l.buildPaintImageXObject({resources:n,image:o,operatorList:s,cacheKey:E,localImageCache:d,localColorSpaceCache:f}).then(e,t);}else{k.save();l.buildFormXObject(n,o,null,s,r,k.state.clone(),f).then(function(){k.restore();e();},t);}}).catch(function(e){if(!(e instanceof a.AbortException)){if(!l.options.ignoreErrors)throw e;l.handler.send(\"UnsupportedFeature\",{featureId:a.UNSUPPORTED_FEATURES.errorXObject});(0,a.warn)(\"getOperatorList - ignoring XObject: \\\"\".concat(e,\"\\\".\"));}}));return;case a.OPS.setFont:var N=_e118[1];next(l.handleSetFont(n,_e118,null,s,r,k.state,c).then(function(e){s.addDependency(e);s.addOp(a.OPS.setFont,[e,N]);}));return;case a.OPS.beginText:u=!0;break;case a.OPS.endText:u=!1;break;case a.OPS.endInlineImage:var L=_e118[0].cacheKey;if(L){var _t93=d.getByName(L);if(_t93){s.addImageOps(_t93.fn,_t93.args,_t93.optionalContent);incrementCachedImageMaskCount(_t93);_e118=null;continue;}}next(l.buildPaintImageXObject({resources:n,image:_e118[0],isInline:!0,operatorList:s,cacheKey:L,localImageCache:d,localColorSpaceCache:f}));return;case a.OPS.showText:if(!k.state.font){l.ensureStateFont(k.state);continue;}_e118[0]=l.handleText(_e118[0],k.state);break;case a.OPS.showSpacedText:if(!k.state.font){l.ensureStateFont(k.state);continue;}var j=_e118[0],$=[],_=j.length,U=k.state;for(O=0;O<_;++O){var _e119=j[O];\"string\"==typeof _e119?Array.prototype.push.apply($,l.handleText(_e119,U)):\"number\"==typeof _e119&&$.push(_e119);}_e118[0]=$;_t90=a.OPS.showText;break;case a.OPS.nextLineShowText:if(!k.state.font){l.ensureStateFont(k.state);continue;}s.addOp(a.OPS.nextLine);_e118[0]=l.handleText(_e118[0],k.state);_t90=a.OPS.showText;break;case a.OPS.nextLineSetSpacingShowText:if(!k.state.font){l.ensureStateFont(k.state);continue;}s.addOp(a.OPS.nextLine);s.addOp(a.OPS.setWordSpacing,[_e118.shift()]);s.addOp(a.OPS.setCharSpacing,[_e118.shift()]);_e118[0]=l.handleText(_e118[0],k.state);_t90=a.OPS.showText;break;case a.OPS.setTextRenderingMode:k.state.textRenderingMode=_e118[0];break;case a.OPS.setFillColorSpace:{var _t94=S.ColorSpace.getCached(_e118[0],h,f);if(_t94){k.state.fillColorSpace=_t94;continue;}next(l.parseColorSpace({cs:_e118[0],resources:n,localColorSpaceCache:f}).then(function(e){e&&(k.state.fillColorSpace=e);}));return;}case a.OPS.setStrokeColorSpace:{var _t95=S.ColorSpace.getCached(_e118[0],h,f);if(_t95){k.state.strokeColorSpace=_t95;continue;}next(l.parseColorSpace({cs:_e118[0],resources:n,localColorSpaceCache:f}).then(function(e){e&&(k.state.strokeColorSpace=e);}));return;}case a.OPS.setFillColor:M=k.state.fillColorSpace;_e118=M.getRgb(_e118,0);_t90=a.OPS.setFillRGBColor;break;case a.OPS.setStrokeColor:M=k.state.strokeColorSpace;_e118=M.getRgb(_e118,0);_t90=a.OPS.setStrokeRGBColor;break;case a.OPS.setFillGray:k.state.fillColorSpace=S.ColorSpace.singletons.gray;_e118=S.ColorSpace.singletons.gray.getRgb(_e118,0);_t90=a.OPS.setFillRGBColor;break;case a.OPS.setStrokeGray:k.state.strokeColorSpace=S.ColorSpace.singletons.gray;_e118=S.ColorSpace.singletons.gray.getRgb(_e118,0);_t90=a.OPS.setStrokeRGBColor;break;case a.OPS.setFillCMYKColor:k.state.fillColorSpace=S.ColorSpace.singletons.cmyk;_e118=S.ColorSpace.singletons.cmyk.getRgb(_e118,0);_t90=a.OPS.setFillRGBColor;break;case a.OPS.setStrokeCMYKColor:k.state.strokeColorSpace=S.ColorSpace.singletons.cmyk;_e118=S.ColorSpace.singletons.cmyk.getRgb(_e118,0);_t90=a.OPS.setStrokeRGBColor;break;case a.OPS.setFillRGBColor:k.state.fillColorSpace=S.ColorSpace.singletons.rgb;_e118=S.ColorSpace.singletons.rgb.getRgb(_e118,0);break;case a.OPS.setStrokeRGBColor:k.state.strokeColorSpace=S.ColorSpace.singletons.rgb;_e118=S.ColorSpace.singletons.rgb.getRgb(_e118,0);break;case a.OPS.setFillColorN:M=k.state.fillColorSpace;if(\"Pattern\"===M.name){next(l.handleColorN(s,a.OPS.setFillColorN,_e118,M,x,n,r,f,p,b));return;}_e118=M.getRgb(_e118,0);_t90=a.OPS.setFillRGBColor;break;case a.OPS.setStrokeColorN:M=k.state.strokeColorSpace;if(\"Pattern\"===M.name){next(l.handleColorN(s,a.OPS.setStrokeColorN,_e118,M,x,n,r,f,p,b));return;}_e118=M.getRgb(_e118,0);_t90=a.OPS.setStrokeRGBColor;break;case a.OPS.shadingFill:var X=n.get(\"Shading\");if(!X)throw new a.FormatError(\"No shading resource found\");var H=X.get(_e118[0].name);if(!H)throw new a.FormatError(\"No shading object found\");_e118=[l.parseShading({shading:H,resources:n,localColorSpaceCache:f,localShadingPatternCache:b})];_t90=a.OPS.shadingFill;break;case a.OPS.setGState:D=_e118[0]instanceof i.Name;E=_e118[0].name;if(D){var _t96=g.getByName(E);if(_t96){_t96.length>0&&s.addOp(a.OPS.setGState,[_t96]);_e118=null;continue;}}next(new _Promise(function(e,t){if(!D)throw new a.FormatError(\"GState must be referred to by name.\");var o=n.get(\"ExtGState\");if(!(o instanceof i.Dict))throw new a.FormatError(\"ExtGState should be a dictionary.\");var c=o.get(E);if(!(c instanceof i.Dict))throw new a.FormatError(\"GState should be a dictionary.\");l.setGState({resources:n,gState:c,operatorList:s,cacheKey:E,task:r,stateManager:k,localGStateCache:g,localColorSpaceCache:f}).then(e,t);}).catch(function(e){if(!(e instanceof a.AbortException)){if(!l.options.ignoreErrors)throw e;l.handler.send(\"UnsupportedFeature\",{featureId:a.UNSUPPORTED_FEATURES.errorExtGState});(0,a.warn)(\"getOperatorList - ignoring ExtGState: \\\"\".concat(e,\"\\\".\"));}}));return;case a.OPS.moveTo:case a.OPS.lineTo:case a.OPS.curveTo:case a.OPS.curveTo2:case a.OPS.curveTo3:case a.OPS.closePath:case a.OPS.rectangle:l.buildPath(s,_t90,_e118,u);continue;case a.OPS.markPoint:case a.OPS.markPointProps:case a.OPS.beginCompat:case a.OPS.endCompat:continue;case a.OPS.beginMarkedContentProps:if(!(_e118[0]instanceof i.Name)){(0,a.warn)(\"Expected name for beginMarkedContentProps arg0=\".concat(_e118[0]));continue;}if(\"OC\"===_e118[0].name){next(l.parseMarkedContentProps(_e118[1],n).then(function(e){s.addOp(a.OPS.beginMarkedContentProps,[\"OC\",e]);}).catch(function(e){if(!(e instanceof a.AbortException)){if(!l.options.ignoreErrors)throw e;l.handler.send(\"UnsupportedFeature\",{featureId:a.UNSUPPORTED_FEATURES.errorMarkedContent});(0,a.warn)(\"getOperatorList - ignoring beginMarkedContentProps: \\\"\".concat(e,\"\\\".\"));}}));return;}_e118=[_e118[0].name,_e118[1]instanceof i.Dict?_e118[1].get(\"MCID\"):null];break;case a.OPS.beginMarkedContent:case a.OPS.endMarkedContent:default:if(null!==_e118){for(O=0,T=_e118.length;O<T&&!(_e118[O]instanceof i.Dict);O++);if(O<T){(0,a.warn)(\"getOperatorList - ignoring operator: \"+_t90);continue;}}}s.addOp(_t90,_e118);}if(m)next(R);else{closePendingRestoreOPS();e();}}).catch(function(e){if(!(e instanceof a.AbortException)){var _context188;if(!_this56.options.ignoreErrors)throw e;_this56.handler.send(\"UnsupportedFeature\",{featureId:a.UNSUPPORTED_FEATURES.errorOperatorList});(0,a.warn)(_concatInstanceProperty(_context188=\"getOperatorList - ignoring errors during \\\"\".concat(r.name,\"\\\" task: \\\"\")).call(_context188,e,\"\\\".\"));closePendingRestoreOPS();}});}},{key:\"getTextContent\",value:function getTextContent(e){var _this57=this;var t=e.stream,r=e.task,n=e.resources,_e$stateManager=e.stateManager,s=_e$stateManager===void 0?null:_e$stateManager,_e$combineTextItems=e.combineTextItems,o=_e$combineTextItems===void 0?!1:_e$combineTextItems,_e$includeMarkedConte=e.includeMarkedContent,c=_e$includeMarkedConte===void 0?!1:_e$includeMarkedConte,l=e.sink,_e$seenStyles=e.seenStyles,u=_e$seenStyles===void 0?new _Set():_e$seenStyles,d=e.viewBox;n=n||i.Dict.empty;s=s||new StateManager(new TextState());var f=(0,h.getNormalizedUnicodes)(),g={items:[],styles:Object.create(null)},p={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},b=[\" \",\" \"];var S=0;function saveLastChar(e){var t=(S+1)%2,r=\" \"!==b[S]&&\" \"===b[t];b[S]=e;S=t;return r;}function resetLastChars(){b[0]=b[1]=\" \";S=0;}var x=this,k=this.xref,C=[];var v=null;var O=new m.LocalImageCache(),T=new m.LocalGStateCache(),M=new EvaluatorPreprocessor(t,k,s);var E;function getCurrentTextTransform(){var e=E.font,t=[E.fontSize*E.textHScale,0,0,E.fontSize,0,E.textRise];if(e.isType3Font&&(E.fontSize<=1||e.isCharBBox)&&!(0,a.isArrayEqual)(E.fontMatrix,a.FONT_IDENTITY_MATRIX)){var _r82=e.bbox[3]-e.bbox[1];_r82>0&&(t[3]*=_r82*E.fontMatrix[3]);}return a.Util.transform(E.ctm,a.Util.transform(E.textMatrix,t));}function ensureTextContentItem(){if(p.initialized)return p;var e=E.font,t=e.loadedName;if(!u.has(t)){u.add(t);g.styles[t]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:e.vertical};}p.fontName=t;var r=p.transform=getCurrentTextTransform();if(e.vertical){p.width=p.totalWidth=_Math$hypot(r[0],r[1]);p.height=p.totalHeight=0;p.vertical=!0;}else{p.width=p.totalWidth=0;p.height=p.totalHeight=_Math$hypot(r[2],r[3]);p.vertical=!1;}var a=_Math$hypot(E.textLineMatrix[0],E.textLineMatrix[1]),n=_Math$hypot(E.ctm[0],E.ctm[1]);p.textAdvanceScale=n*a;p.trackingSpaceMin=.1*E.fontSize;p.notASpace=.03*E.fontSize;p.negativeSpaceMax=-.2*E.fontSize;p.spaceInFlowMin=.1*E.fontSize;p.spaceInFlowMax=.6*E.fontSize;p.hasEOL=!1;p.initialized=!0;return p;}function updateAdvanceScale(){if(!p.initialized)return;var e=_Math$hypot(E.textLineMatrix[0],E.textLineMatrix[1]),t=_Math$hypot(E.ctm[0],E.ctm[1])*e;if(t!==p.textAdvanceScale){if(p.vertical){p.totalHeight+=p.height*p.textAdvanceScale;p.height=0;}else{p.totalWidth+=p.width*p.textAdvanceScale;p.width=0;}p.textAdvanceScale=t;}}function handleSetFont(e,t){return x.loadFont(e,t,n).then(function(e){return e.font.isType3Font?e.loadType3Data(x,n,r).catch(function(){}).then(function(){return e;}):e;}).then(function(e){E.font=e.font;E.fontMatrix=e.font.fontMatrix||a.FONT_IDENTITY_MATRIX;});}function applyInverseRotation(e,t,r){var a=_Math$hypot(r[0],r[1]);return[(r[0]*e+r[1]*t)/a,(r[2]*e+r[3]*t)/a];}function compareWithLastPosition(){var e=getCurrentTextTransform();var t=e[4],r=e[5];var a=t-d[0],n=r-d[1];if(a<0||a>d[2]||n<0||n>d[3])return!1;if(!o||!E.font||!p.prevTransform)return!0;var i=p.prevTransform[4],s=p.prevTransform[5];if(i===t&&s===r)return!0;var c=-1;e[0]&&0===e[1]&&0===e[2]?c=e[0]>0?0:180:e[1]&&0===e[0]&&0===e[3]&&(c=e[1]>0?90:270);switch(c){case 0:break;case 90:var _ref6=[r,t];t=_ref6[0];r=_ref6[1];var _ref7=[s,i];i=_ref7[0];s=_ref7[1];break;case 180:var _ref8=[-t,-r,-i,-s];t=_ref8[0];r=_ref8[1];i=_ref8[2];s=_ref8[3];break;case 270:var _ref9=[-r,-t];t=_ref9[0];r=_ref9[1];var _ref10=[-s,-i];i=_ref10[0];s=_ref10[1];break;default:var _applyInverseRotation=applyInverseRotation(t,r,e);var _applyInverseRotation2=_slicedToArray(_applyInverseRotation,2);t=_applyInverseRotation2[0];r=_applyInverseRotation2[1];var _applyInverseRotation3=applyInverseRotation(i,s,p.prevTransform);var _applyInverseRotation4=_slicedToArray(_applyInverseRotation3,2);i=_applyInverseRotation4[0];s=_applyInverseRotation4[1];}if(E.font.vertical){var _e120=(s-r)/p.textAdvanceScale,_a63=t-i,_n35=_Math$sign(p.height);if(_e120<_n35*p.negativeSpaceMax){if(Math.abs(_a63)>.5*p.width){appendEOL();return!0;}resetLastChars();flushTextContentItem();return!0;}if(Math.abs(_a63)>p.width){appendEOL();return!0;}_e120<=_n35*p.notASpace&&resetLastChars();if(_e120<=_n35*p.trackingSpaceMin)p.height+=_e120;else if(!addFakeSpaces(_e120,p.prevTransform,_n35))if(0===p.str.length){resetLastChars();g.items.push({str:\" \",dir:\"ltr\",width:0,height:Math.abs(_e120),transform:p.prevTransform,fontName:p.fontName,hasEOL:!1});}else p.height+=_e120;return!0;}var l=(t-i)/p.textAdvanceScale,h=r-s,u=_Math$sign(p.width);if(l<u*p.negativeSpaceMax){if(Math.abs(h)>.5*p.height){appendEOL();return!0;}resetLastChars();flushTextContentItem();return!0;}if(Math.abs(h)>p.height){appendEOL();return!0;}l<=u*p.notASpace&&resetLastChars();if(l<=u*p.trackingSpaceMin)p.width+=l;else if(!addFakeSpaces(l,p.prevTransform,u))if(0===p.str.length){resetLastChars();g.items.push({str:\" \",dir:\"ltr\",width:Math.abs(l),height:0,transform:p.prevTransform,fontName:p.fontName,hasEOL:!1});}else p.width+=l;return!0;}function buildTextContentItem(e){var t=e.chars,r=e.extraSpacing;var a=E.font;if(!t){var _e121=E.charSpacing+r;_e121&&(a.vertical?E.translateTextMatrix(0,-_e121):E.translateTextMatrix(_e121*E.textHScale,0));return;}var n=a.charsToGlyphs(t),i=E.fontMatrix[0]*E.fontSize;for(var _e122=0,_t97=n.length;_e122<_t97;_e122++){var _s25=n[_e122];if(_s25.isInvisibleFormatMark)continue;var _o11=E.charSpacing+(_e122+1===_t97?r:0),_c9=_s25.width;a.vertical&&(_c9=_s25.vmetric?_s25.vmetric[0]:-_c9);var _l10=_c9*i;if(_s25.isWhitespace){if(a.vertical){_o11+=-_l10+E.wordSpacing;E.translateTextMatrix(0,-_o11);}else{_o11+=_l10+E.wordSpacing;E.translateTextMatrix(_o11*E.textHScale,0);}saveLastChar(\" \");continue;}if(!compareWithLastPosition())continue;var _u2=ensureTextContentItem();_s25.isZeroWidthDiacritic&&(_l10=0);if(a.vertical){E.translateTextMatrix(0,_l10);_l10=Math.abs(_l10);_u2.height+=_l10;}else{_l10*=E.textHScale;E.translateTextMatrix(_l10,0);_u2.width+=_l10;}_l10&&(_u2.prevTransform=getCurrentTextTransform());var _d3=_s25.unicode;_d3=f[_d3]||_d3;_d3=(0,h.reverseIfRtl)(_d3);saveLastChar(_d3)&&_u2.str.push(\" \");_u2.str.push(_d3);_o11&&(a.vertical?E.translateTextMatrix(0,-_o11):E.translateTextMatrix(_o11*E.textHScale,0));}}function appendEOL(){resetLastChars();if(p.initialized){p.hasEOL=!0;flushTextContentItem();}else g.items.push({str:\"\",dir:\"ltr\",width:0,height:0,transform:getCurrentTextTransform(),fontName:E.font.loadedName,hasEOL:!0});}function addFakeSpaces(e,t,r){if(r*p.spaceInFlowMin<=e&&e<=r*p.spaceInFlowMax){if(p.initialized){resetLastChars();p.str.push(\" \");}return!1;}var a=p.fontName;var n=0;if(p.vertical){n=e;e=0;}flushTextContentItem();resetLastChars();g.items.push({str:\" \",dir:\"ltr\",width:Math.abs(e),height:Math.abs(n),transform:t||getCurrentTextTransform(),fontName:a,hasEOL:!1});return!0;}function flushTextContentItem(){if(p.initialized&&p.str){p.vertical?p.totalHeight+=p.height*p.textAdvanceScale:p.totalWidth+=p.width*p.textAdvanceScale;g.items.push(function runBidiTransform(e){var t=e.str.join(\"\"),r=(0,w.bidi)(t,-1,e.vertical);return{str:r.str,dir:r.dir,width:Math.abs(e.totalWidth),height:Math.abs(e.totalHeight),transform:e.transform,fontName:e.fontName,hasEOL:e.hasEOL};}(p));p.initialized=!1;p.str.length=0;}}function enqueueChunk(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t=g.items.length;if(0!==t&&!(e&&t<10)){l.enqueue(g,t);g.items=[];g.styles=Object.create(null);}}var D=new TimeSlotManager();return new _Promise(function promiseBody(e,t){var _context189,_context190,_context191,_context192;var next=function next(r){enqueueChunk(!0);_Promise.all([r,l.ready]).then(function(){try{promiseBody(e,t);}catch(e){t(e);}},t);};r.ensureNotTerminated();D.reset();var h={};var f,p=[];for(;!(f=D.check());){p.length=0;h.args=p;if(!M.read(h))break;E=s.state;var _e123=h.fn;p=h.args;switch(0|e){case a.OPS.setFont:var m=p[0].name,b=p[1];if(E.font&&m===E.fontName&&b===E.fontSize)break;flushTextContentItem();E.fontName=m;E.fontSize=b;next(handleSetFont(m,null));return;case a.OPS.setTextRise:E.textRise=p[0];break;case a.OPS.setHScale:E.textHScale=p[0]/100;break;case a.OPS.setLeading:E.leading=p[0];break;case a.OPS.moveText:E.translateTextLineMatrix(p[0],p[1]);E.textMatrix=_sliceInstanceProperty(_context189=E.textLineMatrix).call(_context189);break;case a.OPS.setLeadingMoveText:E.leading=-p[1];E.translateTextLineMatrix(p[0],p[1]);E.textMatrix=_sliceInstanceProperty(_context190=E.textLineMatrix).call(_context190);break;case a.OPS.nextLine:E.carriageReturn();break;case a.OPS.setTextMatrix:E.setTextMatrix(p[0],p[1],p[2],p[3],p[4],p[5]);E.setTextLineMatrix(p[0],p[1],p[2],p[3],p[4],p[5]);updateAdvanceScale();break;case a.OPS.setCharSpacing:E.charSpacing=p[0];break;case a.OPS.setWordSpacing:E.wordSpacing=p[0];break;case a.OPS.beginText:E.textMatrix=_sliceInstanceProperty(_context191=a.IDENTITY_MATRIX).call(_context191);E.textLineMatrix=_sliceInstanceProperty(_context192=a.IDENTITY_MATRIX).call(_context192);break;case a.OPS.showSpacedText:if(!s.state.font){x.ensureStateFont(s.state);continue;}var _e124=(E.font.vertical?1:-1)*E.fontSize/1e3,_t98=p[0];for(var _r83=0,_a64=_t98.length;_r83<_a64-1;_r83++){var _a65=_t98[_r83];if(\"string\"==typeof _a65)C.push(_a65);else if(\"number\"==typeof _a65&&0!==_a65){var _t99=C.join(\"\");C.length=0;buildTextContentItem({chars:_t99,extraSpacing:_a65*_e124});}}var _h4=_t98.at(-1);\"string\"==typeof _h4&&C.push(_h4);if(C.length>0){var _e125=C.join(\"\");C.length=0;buildTextContentItem({chars:_e125,extraSpacing:0});}break;case a.OPS.showText:if(!s.state.font){x.ensureStateFont(s.state);continue;}buildTextContentItem({chars:p[0],extraSpacing:0});break;case a.OPS.nextLineShowText:if(!s.state.font){x.ensureStateFont(s.state);continue;}E.carriageReturn();buildTextContentItem({chars:p[0],extraSpacing:0});break;case a.OPS.nextLineSetSpacingShowText:if(!s.state.font){x.ensureStateFont(s.state);continue;}E.wordSpacing=p[0];E.charSpacing=p[1];E.carriageReturn();buildTextContentItem({chars:p[2],extraSpacing:0});break;case a.OPS.paintXObject:flushTextContentItem();v||(v=n.get(\"XObject\")||i.Dict.empty);var w=p[0]instanceof i.Name,S=p[0].name;if(w&&O.getByName(S))break;next(new _Promise(function(e,t){if(!w)throw new a.FormatError(\"XObject must be referred to by name.\");var h=v.getRaw(S);if(h instanceof i.Ref){if(O.getByRef(h)){e();return;}if(x.globalImageCache.getData(h,x.pageIndex)){e();return;}h=k.fetch(h);}if(!(h instanceof y.BaseStream))throw new a.FormatError(\"XObject should be a stream\");var f=h.dict.get(\"Subtype\");if(!(f instanceof i.Name))throw new a.FormatError(\"XObject should have a Name subtype\");if(\"Form\"!==f.name){O.set(S,h.dict.objId,!0);e();return;}var g=s.state.clone(),p=new StateManager(g),m=h.dict.getArray(\"Matrix\");Array.isArray(m)&&6===m.length&&p.transform(m);enqueueChunk();var b={enqueueInvoked:!1,enqueue:function enqueue(e,t){this.enqueueInvoked=!0;l.enqueue(e,t);},get desiredSize(){return l.desiredSize;},get ready(){return l.ready;}};x.getTextContent({stream:h,task:r,resources:h.dict.get(\"Resources\")||n,stateManager:p,combineTextItems:o,includeMarkedContent:c,sink:b,seenStyles:u,viewBox:d}).then(function(){b.enqueueInvoked||O.set(S,h.dict.objId,!0);e();},t);}).catch(function(e){if(!(e instanceof a.AbortException)){if(!x.options.ignoreErrors)throw e;(0,a.warn)(\"getTextContent - ignoring XObject: \\\"\".concat(e,\"\\\".\"));}}));return;case a.OPS.setGState:w=p[0]instanceof i.Name;S=p[0].name;if(w&&T.getByName(S))break;next(new _Promise(function(e,t){if(!w)throw new a.FormatError(\"GState must be referred to by name.\");var r=n.get(\"ExtGState\");if(!(r instanceof i.Dict))throw new a.FormatError(\"ExtGState should be a dictionary.\");var s=r.get(S);if(!(s instanceof i.Dict))throw new a.FormatError(\"GState should be a dictionary.\");var o=s.get(\"Font\");if(o){flushTextContentItem();E.fontName=null;E.fontSize=o[1];handleSetFont(null,o[0]).then(e,t);}else{T.set(S,s.objId,!0);e();}}).catch(function(e){if(!(e instanceof a.AbortException)){if(!x.options.ignoreErrors)throw e;(0,a.warn)(\"getTextContent - ignoring ExtGState: \\\"\".concat(e,\"\\\".\"));}}));return;case a.OPS.beginMarkedContent:flushTextContentItem();c&&g.items.push({type:\"beginMarkedContent\",tag:p[0]instanceof i.Name?p[0].name:null});break;case a.OPS.beginMarkedContentProps:flushTextContentItem();if(c){var _context193;var _e126=null;p[1]instanceof i.Dict&&(_e126=p[1].get(\"MCID\"));g.items.push({type:\"beginMarkedContentProps\",id:_Number$isInteger(_e126)?_concatInstanceProperty(_context193=\"\".concat(x.idFactory.getPageObjId(),\"_mcid\")).call(_context193,_e126):null,tag:p[0]instanceof i.Name?p[0].name:null});}break;case a.OPS.endMarkedContent:flushTextContentItem();c&&g.items.push({type:\"endMarkedContent\"});}if(g.items.length>=l.desiredSize){f=!0;break;}}if(f)next(R);else{flushTextContentItem();enqueueChunk();e();}}).catch(function(e){if(!(e instanceof a.AbortException)){var _context194;if(!_this57.options.ignoreErrors)throw e;(0,a.warn)(_concatInstanceProperty(_context194=\"getTextContent - ignoring errors during \\\"\".concat(r.name,\"\\\" task: \\\"\")).call(_context194,e,\"\\\".\"));flushTextContentItem();enqueueChunk();}});}},{key:\"extractDataStructures\",value:function extractDataStructures(e,t,r){var _this58=this;var n=this.xref;var s;var l=this.readToUnicode(r.toUnicode||e.get(\"ToUnicode\")||t.get(\"ToUnicode\"));if(r.composite){var _t100=e.get(\"CIDSystemInfo\");_t100 instanceof i.Dict&&(r.cidSystemInfo={registry:(0,a.stringToPDFString)(_t100.get(\"Registry\")),ordering:(0,a.stringToPDFString)(_t100.get(\"Ordering\")),supplement:_t100.get(\"Supplement\")});try{var _t101=e.get(\"CIDToGIDMap\");_t101 instanceof y.BaseStream&&(s=_t101.getBytes());}catch(e){if(!this.options.ignoreErrors)throw e;(0,a.warn)(\"extractDataStructures - ignoring CIDToGIDMap data: \\\"\".concat(e,\"\\\".\"));}}var h=[];var u,d=null;if(e.has(\"Encoding\")){u=e.get(\"Encoding\");if(u instanceof i.Dict){d=u.get(\"BaseEncoding\");d=d instanceof i.Name?d.name:null;if(u.has(\"Differences\")){var _e127=u.get(\"Differences\");var _t102=0;for(var _r84=0,_s26=_e127.length;_r84<_s26;_r84++){var _s27=n.fetchIfRef(_e127[_r84]);if(\"number\"==typeof _s27)_t102=_s27;else{if(!(_s27 instanceof i.Name))throw new a.FormatError(\"Invalid entry in 'Differences' array: \".concat(_s27));h[_t102++]=_s27.name;}}}}else if(u instanceof i.Name)d=u.name;else{var _e128=\"Encoding is not a Name nor a Dict\";if(!this.options.ignoreErrors)throw new a.FormatError(_e128);(0,a.warn)(_e128);}\"MacRomanEncoding\"!==d&&\"MacExpertEncoding\"!==d&&\"WinAnsiEncoding\"!==d&&(d=null);}if(d)r.defaultEncoding=(0,c.getEncoding)(d);else{var _e129=!!(_flagsInstanceProperty(r)&o.FontFlags.Symbolic),_t103=!!(_flagsInstanceProperty(r)&o.FontFlags.Nonsymbolic);u=c.StandardEncoding;\"TrueType\"!==r.type||_t103||(u=c.WinAnsiEncoding);if(_e129){u=c.MacRomanEncoding;r.file&&!r.isInternalFont||(/Symbol/i.test(r.name)?u=c.SymbolSetEncoding:/Dingbats|Wingdings/i.test(r.name)&&(u=c.ZapfDingbatsEncoding));}r.defaultEncoding=u;}r.differences=h;r.baseEncodingName=d;r.hasEncoding=!!d||h.length>0;r.dict=e;return l.then(function(e){r.toUnicode=e;return _this58.buildToUnicode(r);}).then(function(e){r.toUnicode=e;s&&(r.cidToGidMap=_this58.readCidToGidMap(s,e));return r;});}},{key:\"_simpleFontToUnicode\",value:function _simpleFontToUnicode(e){var _context195;var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,a.assert)(!e.composite,\"Must be a simple font.\");var r=[],n=_sliceInstanceProperty(_context195=e.defaultEncoding).call(_context195),i=e.baseEncodingName,s=e.differences;for(var _e130 in s){var _t104=s[_e130];\".notdef\"!==_t104&&(n[_e130]=_t104);}var o=(0,k.getGlyphsUnicode)();for(var _a66 in n){var _s28=n[_a66];if(\"\"!==_s28)if(void 0!==o[_s28])r[_a66]=String.fromCharCode(o[_s28]);else{var _n36=0;switch(_s28[0]){case\"G\":3===_s28.length&&(_n36=_parseInt(_s28.substring(1),16));break;case\"g\":5===_s28.length&&(_n36=_parseInt(_s28.substring(1),16));break;case\"C\":case\"c\":if(_s28.length>=3&&_s28.length<=4){var _r85=_s28.substring(1);if(t){_n36=_parseInt(_r85,16);break;}_n36=+_r85;if(_Number$isNaN(_n36)&&_Number$isInteger(_parseInt(_r85,16)))return this._simpleFontToUnicode(e,!0);}break;default:var _r86=(0,h.getUnicodeForGlyph)(_s28,o);-1!==_r86&&(_n36=_r86);}if(_n36>0&&_n36<=1114111&&_Number$isInteger(_n36)){if(i&&_n36===+_a66){var _e131=(0,c.getEncoding)(i);if(_e131&&(_s28=_e131[_a66])){r[_a66]=String.fromCharCode(o[_s28]);continue;}}r[_a66]=_String$fromCodePoint(_n36);}}}return r;}},{key:\"buildToUnicode\",value:function(){var _buildToUnicode=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee44(e){var _context196,_e$cidSystemInfo,_t105,r,_s29,_o12,_c10;return _regeneratorRuntime.wrap(function _callee44$(_context197){while(1)switch(_context197.prev=_context197.next){case 0:e.hasIncludedToUnicodeMap=!!e.toUnicode&&e.toUnicode.length>0;if(!e.hasIncludedToUnicodeMap){_context197.next=4;break;}!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._simpleFontToUnicode(e));return _context197.abrupt(\"return\",e.toUnicode);case 4:if(e.composite){_context197.next=6;break;}return _context197.abrupt(\"return\",new f.ToUnicodeMap(this._simpleFontToUnicode(e)));case 6:if(!(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof n.IdentityCMap)||\"Adobe\"===e.cidSystemInfo.registry&&(\"GB1\"===e.cidSystemInfo.ordering||\"CNS1\"===e.cidSystemInfo.ordering||\"Japan1\"===e.cidSystemInfo.ordering||\"Korea1\"===e.cidSystemInfo.ordering)))){_context197.next=17;break;}_e$cidSystemInfo=e.cidSystemInfo;_t105=_e$cidSystemInfo.registry;r=_e$cidSystemInfo.ordering;_s29=i.Name.get(_concatInstanceProperty(_context196=\"\".concat(_t105,\"-\")).call(_context196,r,\"-UCS2\"));_context197.next=13;return n.CMapFactory.create({encoding:_s29,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 13:_o12=_context197.sent;_c10=[];e.cMap.forEach(function(e,t){if(t>65535)throw new a.FormatError(\"Max size of CID is 65,535\");var r=_o12.lookup(t);r&&(_c10[e]=String.fromCharCode((r.charCodeAt(0)<<8)+r.charCodeAt(1)));});return _context197.abrupt(\"return\",new f.ToUnicodeMap(_c10));case 17:return _context197.abrupt(\"return\",new f.IdentityToUnicodeMap(e.firstChar,e.lastChar));case 18:case\"end\":return _context197.stop();}},_callee44,this);}));function buildToUnicode(_x103){return _buildToUnicode.apply(this,arguments);}return buildToUnicode;}()},{key:\"readToUnicode\",value:function readToUnicode(e){var _this59=this;return e?e instanceof i.Name?n.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then(function(e){return e instanceof n.IdentityCMap?new f.IdentityToUnicodeMap(0,65535):new f.ToUnicodeMap(e.getMap());}):e instanceof y.BaseStream?n.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then(function(e){if(e instanceof n.IdentityCMap)return new f.IdentityToUnicodeMap(0,65535);var t=new Array(e.length);e.forEach(function(e,r){if(\"number\"==typeof r){t[e]=_String$fromCodePoint(r);return;}var a=[];for(var _e132=0;_e132<r.length;_e132+=2){var _t106=r.charCodeAt(_e132)<<8|r.charCodeAt(_e132+1);if(55296!=(63488&_t106)){a.push(_t106);continue;}_e132+=2;var _n37=r.charCodeAt(_e132)<<8|r.charCodeAt(_e132+1);a.push(((1023&_t106)<<10)+(1023&_n37)+65536);}t[e]=_String$fromCodePoint.apply(String,a);});return new f.ToUnicodeMap(t);},function(e){if(e instanceof a.AbortException)return null;if(_this59.options.ignoreErrors){_this59.handler.send(\"UnsupportedFeature\",{featureId:a.UNSUPPORTED_FEATURES.errorFontToUnicode});(0,a.warn)(\"readToUnicode - ignoring ToUnicode data: \\\"\".concat(e,\"\\\".\"));return null;}throw e;}):_Promise.resolve(null):_Promise.resolve(null);}},{key:\"readCidToGidMap\",value:function readCidToGidMap(e,t){var r=[];for(var _a67=0,_n38=e.length;_a67<_n38;_a67++){var _n39=e[_a67++]<<8|e[_a67],_i48=_a67>>1;(0!==_n39||t.has(_i48))&&(r[_i48]=_n39);}return r;}},{key:\"extractWidths\",value:function extractWidths(e,t,r){var a=this.xref;var n=[],s=0;var c=[];var l,h,u,d,f,g,p,m;if(r.composite){s=e.has(\"DW\")?e.get(\"DW\"):1e3;m=e.get(\"W\");if(m)for(h=0,u=m.length;h<u;h++){g=a.fetchIfRef(m[h++]);p=a.fetchIfRef(m[h]);if(Array.isArray(p))for(d=0,f=p.length;d<f;d++)n[g++]=a.fetchIfRef(p[d]);else{var _e133=a.fetchIfRef(m[++h]);for(d=g;d<=p;d++)n[d]=_e133;}}if(r.vertical){var _t107=e.getArray(\"DW2\")||[880,-1e3];l=[_t107[1],.5*s,_t107[0]];_t107=e.get(\"W2\");if(_t107)for(h=0,u=_t107.length;h<u;h++){g=a.fetchIfRef(_t107[h++]);p=a.fetchIfRef(_t107[h]);if(Array.isArray(p))for(d=0,f=p.length;d<f;d++)c[g++]=[a.fetchIfRef(p[d++]),a.fetchIfRef(p[d++]),a.fetchIfRef(p[d])];else{var _e134=[a.fetchIfRef(_t107[++h]),a.fetchIfRef(_t107[++h]),a.fetchIfRef(_t107[++h])];for(d=g;d<=p;d++)c[d]=_e134;}}}}else{var _o13=r.firstChar;m=e.get(\"Widths\");if(m){d=_o13;for(h=0,u=m.length;h<u;h++)n[d++]=a.fetchIfRef(m[h]);s=_parseFloat(t.get(\"MissingWidth\"))||0;}else{var _t108=e.get(\"BaseFont\");if(_t108 instanceof i.Name){var _e135=this.getBaseFontMetrics(_t108.name);n=this.buildCharCodeToWidth(_e135.widths,r);s=_e135.defaultWidth;}}}var b=!0,y=s;for(var _e136 in n){var _t109=n[_e136];if(_t109)if(y){if(y!==_t109){b=!1;break;}}else y=_t109;}b&&(r.flags|=o.FontFlags.FixedPitch);r.defaultWidth=s;r.widths=n;r.defaultVMetrics=l;r.vmetrics=c;}},{key:\"isSerifFont\",value:function isSerifFont(e){var t=e.split(\"-\")[0];return t in(0,l.getSerifFonts)()||-1!==t.search(/serif/gi);}},{key:\"getBaseFontMetrics\",value:function getBaseFontMetrics(e){var t=0,r=Object.create(null),a=!1;var n=(0,l.getStdFontMap)()[e]||e;var i=(0,v.getMetrics)();n in i||(n=this.isSerifFont(e)?\"Times-Roman\":\"Helvetica\");var s=i[n];if(\"number\"==typeof s){t=s;a=!0;}else r=s();return{defaultWidth:t,monospace:a,widths:r};}},{key:\"buildCharCodeToWidth\",value:function buildCharCodeToWidth(e,t){var r=Object.create(null),a=t.differences,n=t.defaultEncoding;for(var _t110=0;_t110<256;_t110++)_t110 in a&&e[a[_t110]]?r[_t110]=e[a[_t110]]:_t110 in n&&e[n[_t110]]&&(r[_t110]=e[n[_t110]]);return r;}},{key:\"preEvaluateFont\",value:function preEvaluateFont(e){var t=e;var r=e.get(\"Subtype\");if(!(r instanceof i.Name))throw new a.FormatError(\"invalid font Subtype\");var n,s,o=!1;if(\"Type0\"===r.name){var _t111=e.get(\"DescendantFonts\");if(!_t111)throw new a.FormatError(\"Descendant fonts are not specified\");if(!((e=Array.isArray(_t111)?this.xref.fetchIfRef(_t111[0]):_t111)instanceof i.Dict))throw new a.FormatError(\"Descendant font is not a dictionary.\");r=e.get(\"Subtype\");if(!(r instanceof i.Name))throw new a.FormatError(\"invalid font Subtype\");o=!0;}var c=e.get(\"FirstChar\")||0,l=e.get(\"LastChar\")||(o?65535:255),h=e.get(\"FontDescriptor\");if(h){var _context198;n=new O.MurmurHash3_64();var _r87=t.getRaw(\"Encoding\");if(_r87 instanceof i.Name)n.update(_r87.name);else if(_r87 instanceof i.Ref)n.update(_r87.toString());else if(_r87 instanceof i.Dict){var _iterator62=_createForOfIteratorHelper(_r87.getRawValues()),_step62;try{for(_iterator62.s();!(_step62=_iterator62.n()).done;){var _e137=_step62.value;if(_e137 instanceof i.Name)n.update(_e137.name);else if(_e137 instanceof i.Ref)n.update(_e137.toString());else if(Array.isArray(_e137)){var _t112=_e137.length,_r88=new Array(_t112);for(var _a68=0;_a68<_t112;_a68++){var _t113=_e137[_a68];_t113 instanceof i.Name?_r88[_a68]=_t113.name:(\"number\"==typeof _t113||_t113 instanceof i.Ref)&&(_r88[_a68]=_t113.toString());}n.update(_r88.join());}}}catch(err){_iterator62.e(err);}finally{_iterator62.f();}}n.update(_concatInstanceProperty(_context198=\"\".concat(c,\"-\")).call(_context198,l));s=e.get(\"ToUnicode\")||t.get(\"ToUnicode\");if(s instanceof y.BaseStream){var _e138=s.str||s,_t114=_e138.buffer?new Uint8Array(_e138.buffer.buffer,0,_e138.bufferLength):new Uint8Array(_e138.bytes.buffer,_e138.start,_e138.end-_e138.start);n.update(_t114);}else s instanceof i.Name&&n.update(s.name);var _a69=e.get(\"Widths\")||t.get(\"Widths\");if(Array.isArray(_a69)){var _e139=[];var _iterator63=_createForOfIteratorHelper(_a69),_step63;try{for(_iterator63.s();!(_step63=_iterator63.n()).done;){var _t115=_step63.value;(\"number\"==typeof _t115||_t115 instanceof i.Ref)&&_e139.push(_t115.toString());}}catch(err){_iterator63.e(err);}finally{_iterator63.f();}n.update(_e139.join());}if(o){n.update(\"compositeFont\");var _r89=e.get(\"W\")||t.get(\"W\");if(Array.isArray(_r89)){var _e140=[];var _iterator64=_createForOfIteratorHelper(_r89),_step64;try{for(_iterator64.s();!(_step64=_iterator64.n()).done;){var _t116=_step64.value;if(\"number\"==typeof _t116||_t116 instanceof i.Ref)_e140.push(_t116.toString());else if(Array.isArray(_t116)){var _r90=[];var _iterator65=_createForOfIteratorHelper(_t116),_step65;try{for(_iterator65.s();!(_step65=_iterator65.n()).done;){var _e141=_step65.value;(\"number\"==typeof _e141||_e141 instanceof i.Ref)&&_r90.push(_e141.toString());}}catch(err){_iterator65.e(err);}finally{_iterator65.f();}_e140.push(\"[\".concat(_r90.join(),\"]\"));}}}catch(err){_iterator64.e(err);}finally{_iterator64.f();}n.update(_e140.join());}var _a70=e.getRaw(\"CIDToGIDMap\")||t.getRaw(\"CIDToGIDMap\");_a70 instanceof i.Name?n.update(_a70.name):_a70 instanceof i.Ref?n.update(_a70.toString()):_a70 instanceof y.BaseStream&&n.update(_a70.peekBytes());}}return{descriptor:h,dict:e,baseDict:t,composite:o,type:r.name,firstChar:c,lastChar:l,toUnicode:s,hash:n?n.hexdigest():\"\"};}},{key:\"translateFont\",value:function(){var _translateFont=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee45(e){var _this60=this;var t,r,c,h,u,f,g,p,m,y,w,_e142,_t117,_n40,_h5,_d4,_m,_b,S,x,k,C,v,O,T,_e144,_t119,_context199,_context200,M,E,D,_e145,_e146,_e147,_e148,_t120;return _regeneratorRuntime.wrap(function _callee45$(_context201){while(1)switch(_context201.prev=_context201.next){case 0:t=e.descriptor,r=e.dict,c=e.baseDict,h=e.composite,u=e.type,f=e.firstChar,g=e.lastChar,p=e.toUnicode,m=e.cssFontInfo;y=\"Type3\"===u;if(t){_context201.next=22;break;}if(y){_context201.next=19;break;}_e142=r.get(\"BaseFont\");if(_e142 instanceof i.Name){_context201.next=7;break;}throw new a.FormatError(\"Base font is not specified\");case 7:_e142=_e142.name.replace(/[,_]/g,\"-\");_t117=this.getBaseFontMetrics(_e142),_n40=_e142.split(\"-\")[0],_h5=(this.isSerifFont(_n40)?o.FontFlags.Serif:0)|(_t117.monospace?o.FontFlags.FixedPitch:0)|((0,l.getSymbolsFonts)()[_n40]?o.FontFlags.Symbolic:o.FontFlags.Nonsymbolic);w={type:u,name:_e142,loadedName:c.loadedName,widths:_t117.widths,defaultWidth:_t117.defaultWidth,isSimulatedFlags:!0,flags:_h5,firstChar:f,lastChar:g,toUnicode:p,xHeight:0,capHeight:0,italicAngle:0,isType3Font:y};_d4=r.get(\"Widths\"),_m=(0,l.getStandardFontName)(_e142);_b=null;if(!_m){_context201.next=18;break;}w.isStandardFont=!0;_context201.next=16;return this.fetchStandardFontData(_m);case 16:_b=_context201.sent;w.isInternalFont=!!_b;case 18:return _context201.abrupt(\"return\",this.extractDataStructures(r,r,w).then(function(r){if(_d4){var _e143=[];var _t118=f;for(var _r91=0,_a71=_d4.length;_r91<_a71;_r91++)_e143[_t118++]=_this60.xref.fetchIfRef(_d4[_r91]);r.widths=_e143;}else r.widths=_this60.buildCharCodeToWidth(_t117.widths,r);return new s.Font(_e142,_b,r);}));case 19:t=new i.Dict(null);t.set(\"FontName\",i.Name.get(u));t.set(\"FontBBox\",r.getArray(\"FontBBox\")||[0,0,0,0]);case 22:O=t.get(\"FontName\"),T=r.get(\"BaseFont\");\"string\"==typeof O&&(O=i.Name.get(O));\"string\"==typeof T&&(T=i.Name.get(T));if(!y){_e144=O&&O.name,_t119=T&&T.name;if(_e144!==_t119){(0,a.info)(_concatInstanceProperty(_context199=\"The FontDescriptor's FontName is \\\"\".concat(_e144,\"\\\" but should be the same as the Font's BaseFont \\\"\")).call(_context199,_t119,\"\\\".\"));_e144&&_t119&&_startsWithInstanceProperty(_t119).call(_t119,_e144)&&(O=T);}}O=O||T;if(O instanceof i.Name){_context201.next=29;break;}throw new a.FormatError(\"invalid font name\");case 29:_context201.prev=29;S=t.get(\"FontFile\",\"FontFile2\",\"FontFile3\");_context201.next=39;break;case 33:_context201.prev=33;_context201.t0=_context201[\"catch\"](29);if(this.options.ignoreErrors){_context201.next=37;break;}throw _context201.t0;case 37:(0,a.warn)(_concatInstanceProperty(_context200=\"translateFont - fetching \\\"\".concat(O.name,\"\\\" font file: \\\"\")).call(_context200,_context201.t0,\"\\\".\"));S=new b.NullStream();case 39:M=!1,E=!1,D=null;if(!S){_context201.next=44;break;}if(S.dict){_e145=S.dict.get(\"Subtype\");_e145 instanceof i.Name&&(x=_e145.name);k=S.dict.get(\"Length1\");C=S.dict.get(\"Length2\");v=S.dict.get(\"Length3\");}_context201.next=66;break;case 44:if(!m){_context201.next=58;break;}_e146=(0,d.getXfaFontName)(O.name);if(!_e146){_context201.next=56;break;}m.fontFamily=\"\".concat(m.fontFamily,\"-PdfJS-XFA\");m.metrics=_e146.metrics||null;D=_e146.factors||null;_context201.next=52;return this.fetchStandardFontData(_e146.name);case 52:S=_context201.sent;E=!!S;c=r=(0,d.getXfaFontDict)(O.name);h=!0;case 56:_context201.next=66;break;case 58:if(y){_context201.next=66;break;}_e147=(0,l.getStandardFontName)(O.name);if(!_e147){_context201.next=66;break;}M=!0;_context201.next=64;return this.fetchStandardFontData(_e147);case 64:S=_context201.sent;E=!!S;case 66:w={type:u,name:O.name,subtype:x,file:S,length1:k,length2:C,length3:v,isStandardFont:M,isInternalFont:E,loadedName:c.loadedName,composite:h,fixedPitch:!1,fontMatrix:r.getArray(\"FontMatrix\")||a.FONT_IDENTITY_MATRIX,firstChar:f,lastChar:g,toUnicode:p,bbox:t.getArray(\"FontBBox\")||r.getArray(\"FontBBox\"),ascent:t.get(\"Ascent\"),descent:t.get(\"Descent\"),xHeight:t.get(\"XHeight\")||0,capHeight:t.get(\"CapHeight\")||0,flags:t.get(\"Flags\"),italicAngle:t.get(\"ItalicAngle\")||0,isType3Font:y,cssFontInfo:m,scaleFactors:D};if(!h){_context201.next=75;break;}_e148=c.get(\"Encoding\");_e148 instanceof i.Name&&(w.cidEncoding=_e148.name);_context201.next=72;return n.CMapFactory.create({encoding:_e148,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 72:_t120=_context201.sent;w.cMap=_t120;w.vertical=w.cMap.vertical;case 75:return _context201.abrupt(\"return\",this.extractDataStructures(r,c,w).then(function(e){_this60.extractWidths(r,t,e);return new s.Font(O.name,S,e);}));case 76:case\"end\":return _context201.stop();}},_callee45,this,[[29,33]]);}));function translateFont(_x104){return _translateFont.apply(this,arguments);}return translateFont;}()}],[{key:\"buildFontPaths\",value:function buildFontPaths(e,t,r,n){function buildPath(t){var _context202;var i=_concatInstanceProperty(_context202=\"\".concat(e.loadedName,\"_path_\")).call(_context202,t);try{if(e.renderer.hasBuiltPath(t))return;r.send(\"commonobj\",[i,\"FontPath\",e.renderer.getPathJs(t)]);}catch(e){if(n.ignoreErrors){var _context203;r.send(\"UnsupportedFeature\",{featureId:a.UNSUPPORTED_FEATURES.errorFontBuildPath});(0,a.warn)(_concatInstanceProperty(_context203=\"buildFontPaths - ignoring \".concat(i,\" glyph: \\\"\")).call(_context203,e,\"\\\".\"));return;}throw e;}}var _iterator66=_createForOfIteratorHelper(t),_step66;try{for(_iterator66.s();!(_step66=_iterator66.n()).done;){var _e149=_step66.value;buildPath(_e149.fontChar);var _t121=_e149.accent;_t121&&_t121.fontChar&&buildPath(_t121.fontChar);}}catch(err){_iterator66.e(err);}finally{_iterator66.f();}}},{key:\"fallbackFontDict\",get:function get(){var e=new i.Dict();e.set(\"BaseFont\",i.Name.get(\"PDFJS-FallbackFont\"));e.set(\"Type\",i.Name.get(\"FallbackType\"));e.set(\"Subtype\",i.Name.get(\"FallbackType\"));e.set(\"Encoding\",i.Name.get(\"WinAnsiEncoding\"));return(0,a.shadow)(this,\"fallbackFontDict\",e);}}]);return PartialEvaluator;}();t.PartialEvaluator=PartialEvaluator;var TranslatedFont=/*#__PURE__*/function(){function TranslatedFont(e){_classCallCheck(this,TranslatedFont);var t=e.loadedName,r=e.font,a=e.dict,n=e.evaluatorOptions;this.loadedName=t;this.font=r;this.dict=a;this._evaluatorOptions=n||E;this.type3Loaded=null;this.type3Dependencies=r.isType3Font?new _Set():null;this.sent=!1;}_createClass(TranslatedFont,[{key:\"send\",value:function send(e){if(!this.sent){this.sent=!0;e.send(\"commonobj\",[this.loadedName,\"Font\",this.font.exportData(this._evaluatorOptions.fontExtraProperties)]);}}},{key:\"fallback\",value:function fallback(e){if(this.font.data){this.font.disableFontFace=!0;PartialEvaluator.buildFontPaths(this.font,this.font.glyphCacheValues,e,this._evaluatorOptions);}}},{key:\"loadType3Data\",value:function loadType3Data(e,t,r){var _this61=this;if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error(\"Must be a Type3 font.\");var n=e.clone({ignoreErrors:!1});n.parsingType3Font=!0;var s=new i.RefSet(e.type3FontRefs);this.dict.objId&&!s.has(this.dict.objId)&&s.put(this.dict.objId);n.type3FontRefs=s;var o=this.font,c=this.type3Dependencies;var l=_Promise.resolve();var h=this.dict.get(\"CharProcs\"),u=this.dict.get(\"Resources\")||t,d=Object.create(null),f=a.Util.normalizeRect(o.bbox||[0,0,0,0]),g=f[2]-f[0],p=f[3]-f[1],m=_Math$hypot(g,p);var _iterator67=_createForOfIteratorHelper(h.getKeys()),_step67;try{var _loop5=function _loop5(){var e=_step67.value;l=l.then(function(){var t=h.get(e),i=new T.OperatorList();return n.getOperatorList({stream:t,task:r,resources:u,operatorList:i}).then(function(){i.fnArray[0]===a.OPS.setCharWidthAndBounds&&_this61._removeType3ColorOperators(i,m);d[e]=i.getIR();var _iterator68=_createForOfIteratorHelper(i.dependencies),_step68;try{for(_iterator68.s();!(_step68=_iterator68.n()).done;){var _e150=_step68.value;c.add(_e150);}}catch(err){_iterator68.e(err);}finally{_iterator68.f();}}).catch(function(t){(0,a.warn)(\"Type3 font resource \\\"\".concat(e,\"\\\" is not available.\"));var r=new T.OperatorList();d[e]=r.getIR();});});};for(_iterator67.s();!(_step67=_iterator67.n()).done;){_loop5();}}catch(err){_iterator67.e(err);}finally{_iterator67.f();}this.type3Loaded=l.then(function(){o.charProcOperatorList=d;if(_this61._bbox){o.isCharBBox=!0;o.bbox=_this61._bbox;}});return this.type3Loaded;}},{key:\"_removeType3ColorOperators\",value:function _removeType3ColorOperators(e){var _context204,_context207,_context208;var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN;var r=a.Util.normalizeRect(_sliceInstanceProperty(_context204=e.argsArray[0]).call(_context204,2)),n=r[2]-r[0],i=r[3]-r[1],s=_Math$hypot(n,i);if(0===n||0===i){var _context205,_context206;_spliceInstanceProperty(_context205=e.fnArray).call(_context205,0,1);_spliceInstanceProperty(_context206=e.argsArray).call(_context206,0,1);}else if(0===t||Math.round(s/t)>=10){this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]);this._bbox[0]=Math.min(this._bbox[0],r[0]);this._bbox[1]=Math.min(this._bbox[1],r[1]);this._bbox[2]=Math.max(this._bbox[2],r[2]);this._bbox[3]=Math.max(this._bbox[3],r[3]);}var o=0,c=e.length;for(;o<c;){switch(e.fnArray[o]){case a.OPS.setCharWidthAndBounds:break;case a.OPS.setStrokeColorSpace:case a.OPS.setFillColorSpace:case a.OPS.setStrokeColor:case a.OPS.setStrokeColorN:case a.OPS.setFillColor:case a.OPS.setFillColorN:case a.OPS.setStrokeGray:case a.OPS.setFillGray:case a.OPS.setStrokeRGBColor:case a.OPS.setFillRGBColor:case a.OPS.setStrokeCMYKColor:case a.OPS.setFillCMYKColor:case a.OPS.shadingFill:case a.OPS.setRenderingIntent:_spliceInstanceProperty(_context207=e.fnArray).call(_context207,o,1);_spliceInstanceProperty(_context208=e.argsArray).call(_context208,o,1);c--;continue;case a.OPS.setGState:var _e$argsArray$o=_slicedToArray(e.argsArray[o],1),_t122=_e$argsArray$o[0];var _r92=0,_n41=_t122.length;for(;_r92<_n41;){var _t122$_r=_slicedToArray(_t122[_r92],1),_e151=_t122$_r[0];switch(_e151){case\"TR\":case\"TR2\":case\"HT\":case\"BG\":case\"BG2\":case\"UCR\":case\"UCR2\":_spliceInstanceProperty(_t122).call(_t122,_r92,1);_n41--;continue;}_r92++;}}o++;}}}]);return TranslatedFont;}();var StateManager=/*#__PURE__*/function(){function StateManager(){_classCallCheck(this,StateManager);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new EvalState();this.state=e;this.stateStack=[];}_createClass(StateManager,[{key:\"save\",value:function save(){var e=this.state;this.stateStack.push(this.state);this.state=e.clone();}},{key:\"restore\",value:function restore(){var e=this.stateStack.pop();e&&(this.state=e);}},{key:\"transform\",value:function transform(e){this.state.ctm=a.Util.transform(this.state.ctm,e);}}]);return StateManager;}();var TextState=/*#__PURE__*/function(){function TextState(){var _context209,_context210;_classCallCheck(this,TextState);this.ctm=new Float32Array(a.IDENTITY_MATRIX);this.fontName=null;this.fontSize=0;this.font=null;this.fontMatrix=a.FONT_IDENTITY_MATRIX;this.textMatrix=_sliceInstanceProperty(_context209=a.IDENTITY_MATRIX).call(_context209);this.textLineMatrix=_sliceInstanceProperty(_context210=a.IDENTITY_MATRIX).call(_context210);this.charSpacing=0;this.wordSpacing=0;this.leading=0;this.textHScale=1;this.textRise=0;}_createClass(TextState,[{key:\"setTextMatrix\",value:function setTextMatrix(e,t,r,a,n,i){var s=this.textMatrix;s[0]=e;s[1]=t;s[2]=r;s[3]=a;s[4]=n;s[5]=i;}},{key:\"setTextLineMatrix\",value:function setTextLineMatrix(e,t,r,a,n,i){var s=this.textLineMatrix;s[0]=e;s[1]=t;s[2]=r;s[3]=a;s[4]=n;s[5]=i;}},{key:\"translateTextMatrix\",value:function translateTextMatrix(e,t){var r=this.textMatrix;r[4]=r[0]*e+r[2]*t+r[4];r[5]=r[1]*e+r[3]*t+r[5];}},{key:\"translateTextLineMatrix\",value:function translateTextLineMatrix(e,t){var r=this.textLineMatrix;r[4]=r[0]*e+r[2]*t+r[4];r[5]=r[1]*e+r[3]*t+r[5];}},{key:\"carriageReturn\",value:function carriageReturn(){var _context211;this.translateTextLineMatrix(0,-this.leading);this.textMatrix=_sliceInstanceProperty(_context211=this.textLineMatrix).call(_context211);}},{key:\"clone\",value:function clone(){var _context212,_context213,_context214;var e=Object.create(this);e.textMatrix=_sliceInstanceProperty(_context212=this.textMatrix).call(_context212);e.textLineMatrix=_sliceInstanceProperty(_context213=this.textLineMatrix).call(_context213);e.fontMatrix=_sliceInstanceProperty(_context214=this.fontMatrix).call(_context214);return e;}}]);return TextState;}();var EvalState=/*#__PURE__*/function(){function EvalState(){_classCallCheck(this,EvalState);this.ctm=new Float32Array(a.IDENTITY_MATRIX);this.font=null;this.textRenderingMode=a.TextRenderingMode.FILL;this.fillColorSpace=S.ColorSpace.singletons.gray;this.strokeColorSpace=S.ColorSpace.singletons.gray;}_createClass(EvalState,[{key:\"clone\",value:function clone(){return Object.create(this);}}]);return EvalState;}();var EvaluatorPreprocessor=/*#__PURE__*/function(){function EvaluatorPreprocessor(e,t){_classCallCheck(this,EvaluatorPreprocessor);var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new StateManager();this.parser=new p.Parser({lexer:new p.Lexer(e,EvaluatorPreprocessor.opMap),xref:t});this.stateManager=r;this.nonProcessedArgs=[];this._isPathOp=!1;this._numInvalidPathOPS=0;}_createClass(EvaluatorPreprocessor,[{key:\"savedStatesDepth\",get:function get(){return this.stateManager.stateStack.length;}},{key:\"read\",value:function read(e){var t=e.args;for(;;){var r=this.parser.getObj();if(r instanceof i.Cmd){var _context215,_context216;var _n42=r.cmd,_i49=EvaluatorPreprocessor.opMap[_n42];if(!_i49){(0,a.warn)(\"Unknown command \\\"\".concat(_n42,\"\\\".\"));continue;}var _s30=_i49.id,_o14=_i49.numArgs;var _c11=null!==t?t.length:0;this._isPathOp||(this._numInvalidPathOPS=0);this._isPathOp=_s30>=a.OPS.moveTo&&_s30<=a.OPS.endPath;if(_i49.variableArgs)_c11>_o14&&(0,a.info)(_concatInstanceProperty(_context215=_concatInstanceProperty(_context216=\"Command \".concat(_n42,\": expected [0, \")).call(_context216,_o14,\"] args, but received \")).call(_context215,_c11,\" args.\"));else{if(_c11!==_o14){var _e152=this.nonProcessedArgs;for(;_c11>_o14;){_e152.push(t.shift());_c11--;}for(;_c11<_o14&&0!==_e152.length;){null===t&&(t=[]);t.unshift(_e152.pop());_c11++;}}if(_c11<_o14){var _context217,_context218;var _e153=_concatInstanceProperty(_context217=_concatInstanceProperty(_context218=\"command \".concat(_n42,\": expected \")).call(_context218,_o14,\" args, but received \")).call(_context217,_c11,\" args.\");if(this._isPathOp&&++this._numInvalidPathOPS>EvaluatorPreprocessor.MAX_INVALID_PATH_OPS)throw new a.FormatError(\"Invalid \".concat(_e153));(0,a.warn)(\"Skipping \".concat(_e153));null!==t&&(t.length=0);continue;}}this.preprocessCommand(_s30,t);e.fn=_s30;e.args=t;return!0;}if(r===i.EOF)return!1;if(null!==r){null===t&&(t=[]);t.push(r);if(t.length>33)throw new a.FormatError(\"Too many arguments\");}}}},{key:\"preprocessCommand\",value:function preprocessCommand(e,t){switch(0|e){case a.OPS.save:this.stateManager.save();break;case a.OPS.restore:this.stateManager.restore();break;case a.OPS.transform:this.stateManager.transform(t);}}}],[{key:\"opMap\",get:function get(){var e=(0,C.getLookupTableFactory)(function(e){e.w={id:a.OPS.setLineWidth,numArgs:1,variableArgs:!1};e.J={id:a.OPS.setLineCap,numArgs:1,variableArgs:!1};e.j={id:a.OPS.setLineJoin,numArgs:1,variableArgs:!1};e.M={id:a.OPS.setMiterLimit,numArgs:1,variableArgs:!1};e.d={id:a.OPS.setDash,numArgs:2,variableArgs:!1};e.ri={id:a.OPS.setRenderingIntent,numArgs:1,variableArgs:!1};e.i={id:a.OPS.setFlatness,numArgs:1,variableArgs:!1};e.gs={id:a.OPS.setGState,numArgs:1,variableArgs:!1};e.q={id:a.OPS.save,numArgs:0,variableArgs:!1};e.Q={id:a.OPS.restore,numArgs:0,variableArgs:!1};e.cm={id:a.OPS.transform,numArgs:6,variableArgs:!1};e.m={id:a.OPS.moveTo,numArgs:2,variableArgs:!1};e.l={id:a.OPS.lineTo,numArgs:2,variableArgs:!1};e.c={id:a.OPS.curveTo,numArgs:6,variableArgs:!1};e.v={id:a.OPS.curveTo2,numArgs:4,variableArgs:!1};e.y={id:a.OPS.curveTo3,numArgs:4,variableArgs:!1};e.h={id:a.OPS.closePath,numArgs:0,variableArgs:!1};e.re={id:a.OPS.rectangle,numArgs:4,variableArgs:!1};e.S={id:a.OPS.stroke,numArgs:0,variableArgs:!1};e.s={id:a.OPS.closeStroke,numArgs:0,variableArgs:!1};e.f={id:_fillInstanceProperty(a.OPS),numArgs:0,variableArgs:!1};e.F={id:_fillInstanceProperty(a.OPS),numArgs:0,variableArgs:!1};e[\"f*\"]={id:a.OPS.eoFill,numArgs:0,variableArgs:!1};e.B={id:a.OPS.fillStroke,numArgs:0,variableArgs:!1};e[\"B*\"]={id:a.OPS.eoFillStroke,numArgs:0,variableArgs:!1};e.b={id:a.OPS.closeFillStroke,numArgs:0,variableArgs:!1};e[\"b*\"]={id:a.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1};e.n={id:a.OPS.endPath,numArgs:0,variableArgs:!1};e.W={id:a.OPS.clip,numArgs:0,variableArgs:!1};e[\"W*\"]={id:a.OPS.eoClip,numArgs:0,variableArgs:!1};e.BT={id:a.OPS.beginText,numArgs:0,variableArgs:!1};e.ET={id:a.OPS.endText,numArgs:0,variableArgs:!1};e.Tc={id:a.OPS.setCharSpacing,numArgs:1,variableArgs:!1};e.Tw={id:a.OPS.setWordSpacing,numArgs:1,variableArgs:!1};e.Tz={id:a.OPS.setHScale,numArgs:1,variableArgs:!1};e.TL={id:a.OPS.setLeading,numArgs:1,variableArgs:!1};e.Tf={id:a.OPS.setFont,numArgs:2,variableArgs:!1};e.Tr={id:a.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1};e.Ts={id:a.OPS.setTextRise,numArgs:1,variableArgs:!1};e.Td={id:a.OPS.moveText,numArgs:2,variableArgs:!1};e.TD={id:a.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1};e.Tm={id:a.OPS.setTextMatrix,numArgs:6,variableArgs:!1};e[\"T*\"]={id:a.OPS.nextLine,numArgs:0,variableArgs:!1};e.Tj={id:a.OPS.showText,numArgs:1,variableArgs:!1};e.TJ={id:a.OPS.showSpacedText,numArgs:1,variableArgs:!1};e[\"'\"]={id:a.OPS.nextLineShowText,numArgs:1,variableArgs:!1};e['\"']={id:a.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1};e.d0={id:a.OPS.setCharWidth,numArgs:2,variableArgs:!1};e.d1={id:a.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1};e.CS={id:a.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1};e.cs={id:a.OPS.setFillColorSpace,numArgs:1,variableArgs:!1};e.SC={id:a.OPS.setStrokeColor,numArgs:4,variableArgs:!0};e.SCN={id:a.OPS.setStrokeColorN,numArgs:33,variableArgs:!0};e.sc={id:a.OPS.setFillColor,numArgs:4,variableArgs:!0};e.scn={id:a.OPS.setFillColorN,numArgs:33,variableArgs:!0};e.G={id:a.OPS.setStrokeGray,numArgs:1,variableArgs:!1};e.g={id:a.OPS.setFillGray,numArgs:1,variableArgs:!1};e.RG={id:a.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1};e.rg={id:a.OPS.setFillRGBColor,numArgs:3,variableArgs:!1};e.K={id:a.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1};e.k={id:a.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1};e.sh={id:a.OPS.shadingFill,numArgs:1,variableArgs:!1};e.BI={id:a.OPS.beginInlineImage,numArgs:0,variableArgs:!1};e.ID={id:a.OPS.beginImageData,numArgs:0,variableArgs:!1};e.EI={id:a.OPS.endInlineImage,numArgs:1,variableArgs:!1};e.Do={id:a.OPS.paintXObject,numArgs:1,variableArgs:!1};e.MP={id:a.OPS.markPoint,numArgs:1,variableArgs:!1};e.DP={id:a.OPS.markPointProps,numArgs:2,variableArgs:!1};e.BMC={id:a.OPS.beginMarkedContent,numArgs:1,variableArgs:!1};e.BDC={id:a.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1};e.EMC={id:a.OPS.endMarkedContent,numArgs:0,variableArgs:!1};e.BX={id:a.OPS.beginCompat,numArgs:0,variableArgs:!1};e.EX={id:a.OPS.endCompat,numArgs:0,variableArgs:!1};e.BM=null;e.BD=null;e.true=null;e.fa=null;e.fal=null;e.fals=null;e.false=null;e.nu=null;e.nul=null;e.null=null;});return(0,a.shadow)(this,\"opMap\",e());}},{key:\"MAX_INVALID_PATH_OPS\",get:function get(){return(0,a.shadow)(this,\"MAX_INVALID_PATH_OPS\",10);}}]);return EvaluatorPreprocessor;}();t.EvaluatorPreprocessor=EvaluatorPreprocessor;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.IdentityCMap=t.CMapFactory=t.CMap=void 0;var a=r(2),n=r(130),i=r(132),s=r(142),o=r(131),c=r(135);var l=[\"Adobe-GB1-UCS2\",\"Adobe-CNS1-UCS2\",\"Adobe-Japan1-UCS2\",\"Adobe-Korea1-UCS2\",\"78-EUC-H\",\"78-EUC-V\",\"78-H\",\"78-RKSJ-H\",\"78-RKSJ-V\",\"78-V\",\"78ms-RKSJ-H\",\"78ms-RKSJ-V\",\"83pv-RKSJ-H\",\"90ms-RKSJ-H\",\"90ms-RKSJ-V\",\"90msp-RKSJ-H\",\"90msp-RKSJ-V\",\"90pv-RKSJ-H\",\"90pv-RKSJ-V\",\"Add-H\",\"Add-RKSJ-H\",\"Add-RKSJ-V\",\"Add-V\",\"Adobe-CNS1-0\",\"Adobe-CNS1-1\",\"Adobe-CNS1-2\",\"Adobe-CNS1-3\",\"Adobe-CNS1-4\",\"Adobe-CNS1-5\",\"Adobe-CNS1-6\",\"Adobe-GB1-0\",\"Adobe-GB1-1\",\"Adobe-GB1-2\",\"Adobe-GB1-3\",\"Adobe-GB1-4\",\"Adobe-GB1-5\",\"Adobe-Japan1-0\",\"Adobe-Japan1-1\",\"Adobe-Japan1-2\",\"Adobe-Japan1-3\",\"Adobe-Japan1-4\",\"Adobe-Japan1-5\",\"Adobe-Japan1-6\",\"Adobe-Korea1-0\",\"Adobe-Korea1-1\",\"Adobe-Korea1-2\",\"B5-H\",\"B5-V\",\"B5pc-H\",\"B5pc-V\",\"CNS-EUC-H\",\"CNS-EUC-V\",\"CNS1-H\",\"CNS1-V\",\"CNS2-H\",\"CNS2-V\",\"ETHK-B5-H\",\"ETHK-B5-V\",\"ETen-B5-H\",\"ETen-B5-V\",\"ETenms-B5-H\",\"ETenms-B5-V\",\"EUC-H\",\"EUC-V\",\"Ext-H\",\"Ext-RKSJ-H\",\"Ext-RKSJ-V\",\"Ext-V\",\"GB-EUC-H\",\"GB-EUC-V\",\"GB-H\",\"GB-V\",\"GBK-EUC-H\",\"GBK-EUC-V\",\"GBK2K-H\",\"GBK2K-V\",\"GBKp-EUC-H\",\"GBKp-EUC-V\",\"GBT-EUC-H\",\"GBT-EUC-V\",\"GBT-H\",\"GBT-V\",\"GBTpc-EUC-H\",\"GBTpc-EUC-V\",\"GBpc-EUC-H\",\"GBpc-EUC-V\",\"H\",\"HKdla-B5-H\",\"HKdla-B5-V\",\"HKdlb-B5-H\",\"HKdlb-B5-V\",\"HKgccs-B5-H\",\"HKgccs-B5-V\",\"HKm314-B5-H\",\"HKm314-B5-V\",\"HKm471-B5-H\",\"HKm471-B5-V\",\"HKscs-B5-H\",\"HKscs-B5-V\",\"Hankaku\",\"Hiragana\",\"KSC-EUC-H\",\"KSC-EUC-V\",\"KSC-H\",\"KSC-Johab-H\",\"KSC-Johab-V\",\"KSC-V\",\"KSCms-UHC-H\",\"KSCms-UHC-HW-H\",\"KSCms-UHC-HW-V\",\"KSCms-UHC-V\",\"KSCpc-EUC-H\",\"KSCpc-EUC-V\",\"Katakana\",\"NWP-H\",\"NWP-V\",\"RKSJ-H\",\"RKSJ-V\",\"Roman\",\"UniCNS-UCS2-H\",\"UniCNS-UCS2-V\",\"UniCNS-UTF16-H\",\"UniCNS-UTF16-V\",\"UniCNS-UTF32-H\",\"UniCNS-UTF32-V\",\"UniCNS-UTF8-H\",\"UniCNS-UTF8-V\",\"UniGB-UCS2-H\",\"UniGB-UCS2-V\",\"UniGB-UTF16-H\",\"UniGB-UTF16-V\",\"UniGB-UTF32-H\",\"UniGB-UTF32-V\",\"UniGB-UTF8-H\",\"UniGB-UTF8-V\",\"UniJIS-UCS2-H\",\"UniJIS-UCS2-HW-H\",\"UniJIS-UCS2-HW-V\",\"UniJIS-UCS2-V\",\"UniJIS-UTF16-H\",\"UniJIS-UTF16-V\",\"UniJIS-UTF32-H\",\"UniJIS-UTF32-V\",\"UniJIS-UTF8-H\",\"UniJIS-UTF8-V\",\"UniJIS2004-UTF16-H\",\"UniJIS2004-UTF16-V\",\"UniJIS2004-UTF32-H\",\"UniJIS2004-UTF32-V\",\"UniJIS2004-UTF8-H\",\"UniJIS2004-UTF8-V\",\"UniJISPro-UCS2-HW-V\",\"UniJISPro-UCS2-V\",\"UniJISPro-UTF8-V\",\"UniJISX0213-UTF32-H\",\"UniJISX0213-UTF32-V\",\"UniJISX02132004-UTF32-H\",\"UniJISX02132004-UTF32-V\",\"UniKS-UCS2-H\",\"UniKS-UCS2-V\",\"UniKS-UTF16-H\",\"UniKS-UTF16-V\",\"UniKS-UTF32-H\",\"UniKS-UTF32-V\",\"UniKS-UTF8-H\",\"UniKS-UTF8-V\",\"V\",\"WP-Symbol\"],h=Math.pow(2,24)-1;var CMap=/*#__PURE__*/function(){function CMap(){_classCallCheck(this,CMap);var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.codespaceRanges=[[],[],[],[]];this.numCodespaceRanges=0;this._map=[];this.name=\"\";this.vertical=!1;this.useCMap=null;this.builtInCMap=e;}_createClass(CMap,[{key:\"addCodespaceRange\",value:function addCodespaceRange(e,t,r){this.codespaceRanges[e-1].push(t,r);this.numCodespaceRanges++;}},{key:\"mapCidRange\",value:function mapCidRange(e,t,r){if(t-e>h)throw new Error(\"mapCidRange - ignoring data above MAX_MAP_RANGE.\");for(;e<=t;)this._map[e++]=r++;}},{key:\"mapBfRange\",value:function mapBfRange(e,t,r){if(t-e>h)throw new Error(\"mapBfRange - ignoring data above MAX_MAP_RANGE.\");var a=r.length-1;for(;e<=t;){this._map[e++]=r;var _t123=r.charCodeAt(a)+1;_t123>255?r=r.substring(0,a-1)+String.fromCharCode(r.charCodeAt(a-1)+1)+\"\\0\":r=r.substring(0,a)+String.fromCharCode(_t123);}}},{key:\"mapBfRangeToArray\",value:function mapBfRangeToArray(e,t,r){if(t-e>h)throw new Error(\"mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.\");var a=r.length;var n=0;for(;e<=t&&n<a;){this._map[e]=r[n++];++e;}}},{key:\"mapOne\",value:function mapOne(e,t){this._map[e]=t;}},{key:\"lookup\",value:function lookup(e){return this._map[e];}},{key:\"contains\",value:function contains(e){return void 0!==this._map[e];}},{key:\"forEach\",value:function forEach(e){var t=this._map,r=t.length;if(r<=65536)for(var _a72=0;_a72<r;_a72++)void 0!==t[_a72]&&e(_a72,t[_a72]);else for(var _r93 in t)e(_r93,t[_r93]);}},{key:\"charCodeOf\",value:function charCodeOf(e){var t=this._map;if(t.length<=65536)return _indexOfInstanceProperty(t).call(t,e);for(var _r94 in t)if(t[_r94]===e)return 0|_r94;return-1;}},{key:\"getMap\",value:function getMap(){return this._map;}},{key:\"readCharCode\",value:function readCharCode(e,t,r){var a=0;var n=this.codespaceRanges;for(var _i50=0,_s31=n.length;_i50<_s31;_i50++){a=(a<<8|e.charCodeAt(t+_i50))>>>0;var _s32=n[_i50];for(var _e154=0,_t124=_s32.length;_e154<_t124;){var _t125=_s32[_e154++],_n43=_s32[_e154++];if(a>=_t125&&a<=_n43){r.charcode=a;r.length=_i50+1;return;}}}r.charcode=0;r.length=1;}},{key:\"getCharCodeLength\",value:function getCharCodeLength(e){var t=this.codespaceRanges;for(var _r95=0,_a73=t.length;_r95<_a73;_r95++){var _a74=t[_r95];for(var _t126=0,_n44=_a74.length;_t126<_n44;){var _n45=_a74[_t126++],_i51=_a74[_t126++];if(e>=_n45&&e<=_i51)return _r95+1;}}return 1;}},{key:\"length\",get:function get(){return this._map.length;}},{key:\"isIdentityCMap\",get:function get(){if(\"Identity-H\"!==this.name&&\"Identity-V\"!==this.name)return!1;if(65536!==this._map.length)return!1;for(var _e155=0;_e155<65536;_e155++)if(this._map[_e155]!==_e155)return!1;return!0;}}]);return CMap;}();t.CMap=CMap;var IdentityCMap=/*#__PURE__*/function(_CMap){_inherits(IdentityCMap,_CMap);function IdentityCMap(e,t){var _this62;_classCallCheck(this,IdentityCMap);_this62=_callSuper(this,IdentityCMap);_this62.vertical=e;_this62.addCodespaceRange(t,0,65535);return _this62;}_createClass(IdentityCMap,[{key:\"mapCidRange\",value:function mapCidRange(e,t,r){(0,a.unreachable)(\"should not call mapCidRange\");}},{key:\"mapBfRange\",value:function mapBfRange(e,t,r){(0,a.unreachable)(\"should not call mapBfRange\");}},{key:\"mapBfRangeToArray\",value:function mapBfRangeToArray(e,t,r){(0,a.unreachable)(\"should not call mapBfRangeToArray\");}},{key:\"mapOne\",value:function mapOne(e,t){(0,a.unreachable)(\"should not call mapCidOne\");}},{key:\"lookup\",value:function lookup(e){return _Number$isInteger(e)&&e<=65535?e:void 0;}},{key:\"contains\",value:function contains(e){return _Number$isInteger(e)&&e<=65535;}},{key:\"forEach\",value:function forEach(e){for(var _t127=0;_t127<=65535;_t127++)e(_t127,_t127);}},{key:\"charCodeOf\",value:function charCodeOf(e){return _Number$isInteger(e)&&e<=65535?e:-1;}},{key:\"getMap\",value:function getMap(){var e=new Array(65536);for(var _t128=0;_t128<=65535;_t128++)e[_t128]=_t128;return e;}},{key:\"length\",get:function get(){return 65536;}},{key:\"isIdentityCMap\",get:function get(){(0,a.unreachable)(\"should not access .isIdentityCMap\");}}]);return IdentityCMap;}(CMap);t.IdentityCMap=IdentityCMap;var u=function BinaryCMapReaderClosure(){function hexToInt(e,t){var r=0;for(var _a75=0;_a75<=t;_a75++)r=r<<8|e[_a75];return r>>>0;}function hexToStr(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(null,e.subarray(0,t+1));}function addHex(e,t,r){var a=0;for(var _n46=r;_n46>=0;_n46--){a+=e[_n46]+t[_n46];e[_n46]=255&a;a>>=8;}}function incHex(e,t){var r=1;for(var _a76=t;_a76>=0&&r>0;_a76--){r+=e[_a76];e[_a76]=255&r;r>>=8;}}var e=16;var BinaryCMapStream=/*#__PURE__*/function(){function BinaryCMapStream(e){_classCallCheck(this,BinaryCMapStream);this.buffer=e;this.pos=0;this.end=e.length;this.tmpBuf=new Uint8Array(19);}_createClass(BinaryCMapStream,[{key:\"readByte\",value:function readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++];}},{key:\"readNumber\",value:function readNumber(){var e,t=0;do{var _r96=this.readByte();if(_r96<0)throw new a.FormatError(\"unexpected EOF in bcmap\");e=!(128&_r96);t=t<<7|127&_r96;}while(!e);return t;}},{key:\"readSigned\",value:function readSigned(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1;}},{key:\"readHex\",value:function readHex(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1));this.pos+=t+1;}},{key:\"readHexNumber\",value:function readHexNumber(e,t){var r;var n=this.tmpBuf;var i=0;do{var _e156=this.readByte();if(_e156<0)throw new a.FormatError(\"unexpected EOF in bcmap\");r=!(128&_e156);n[i++]=127&_e156;}while(!r);var s=t,o=0,c=0;for(;s>=0;){for(;c<8&&n.length>0;){o|=n[--i]<<c;c+=7;}e[s]=255&o;s--;o>>=8;c-=8;}}},{key:\"readHexSigned\",value:function readHexSigned(e,t){this.readHexNumber(e,t);var r=1&e[t]?255:0;var a=0;for(var _n47=0;_n47<=t;_n47++){a=(1&a)<<8|e[_n47];e[_n47]=a>>1^r;}}},{key:\"readString\",value:function readString(){var e=this.readNumber();var t=\"\";for(var _r97=0;_r97<e;_r97++)t+=String.fromCharCode(this.readNumber());return t;}}]);return BinaryCMapStream;}();return/*#__PURE__*/function(){function BinaryCMapReader(){_classCallCheck(this,BinaryCMapReader);}_createClass(BinaryCMapReader,[{key:\"process\",value:function(){var _process=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee46(t,r,a){var n,i,s,o,c,l,h,u,d,f,_t129,_a77,_i52,_g4,_p2,_e157,_e158,_e159,_e160,_e161,_e162;return _regeneratorRuntime.wrap(function _callee46$(_context219){while(1)switch(_context219.prev=_context219.next){case 0:n=new BinaryCMapStream(t),i=n.readByte();r.vertical=!!(1&i);s=null;o=new Uint8Array(e),c=new Uint8Array(e),l=new Uint8Array(e),h=new Uint8Array(e),u=new Uint8Array(e);case 4:if(!((f=n.readByte())>=0)){_context219.next=60;break;}_t129=f>>5;if(!(7===_t129)){_context219.next=14;break;}_context219.t0=31&f;_context219.next=_context219.t0===0?10:_context219.t0===1?12:13;break;case 10:n.readString();return _context219.abrupt(\"break\",13);case 12:s=n.readString();case 13:return _context219.abrupt(\"continue\",58);case 14:_a77=!!(16&f),_i52=15&f;if(!(_i52+1>e)){_context219.next=17;break;}throw new Error(\"BinaryCMapReader.process: Invalid dataSize.\");case 17:_g4=1,_p2=n.readNumber();_context219.t1=_t129;_context219.next=_context219.t1===0?21:_context219.t1===1?27:_context219.t1===2?33:_context219.t1===3?38:_context219.t1===4?45:_context219.t1===5?50:57;break;case 21:n.readHex(o,_i52);n.readHexNumber(c,_i52);addHex(c,o,_i52);r.addCodespaceRange(_i52+1,hexToInt(o,_i52),hexToInt(c,_i52));for(_e157=1;_e157<_p2;_e157++){incHex(c,_i52);n.readHexNumber(o,_i52);addHex(o,c,_i52);n.readHexNumber(c,_i52);addHex(c,o,_i52);r.addCodespaceRange(_i52+1,hexToInt(o,_i52),hexToInt(c,_i52));}return _context219.abrupt(\"break\",58);case 27:n.readHex(o,_i52);n.readHexNumber(c,_i52);addHex(c,o,_i52);n.readNumber();for(_e158=1;_e158<_p2;_e158++){incHex(c,_i52);n.readHexNumber(o,_i52);addHex(o,c,_i52);n.readHexNumber(c,_i52);addHex(c,o,_i52);n.readNumber();}return _context219.abrupt(\"break\",58);case 33:n.readHex(l,_i52);d=n.readNumber();r.mapOne(hexToInt(l,_i52),d);for(_e159=1;_e159<_p2;_e159++){incHex(l,_i52);if(!_a77){n.readHexNumber(u,_i52);addHex(l,u,_i52);}d=n.readSigned()+(d+1);r.mapOne(hexToInt(l,_i52),d);}return _context219.abrupt(\"break\",58);case 38:n.readHex(o,_i52);n.readHexNumber(c,_i52);addHex(c,o,_i52);d=n.readNumber();r.mapCidRange(hexToInt(o,_i52),hexToInt(c,_i52),d);for(_e160=1;_e160<_p2;_e160++){incHex(c,_i52);if(_a77)o.set(c);else{n.readHexNumber(o,_i52);addHex(o,c,_i52);}n.readHexNumber(c,_i52);addHex(c,o,_i52);d=n.readNumber();r.mapCidRange(hexToInt(o,_i52),hexToInt(c,_i52),d);}return _context219.abrupt(\"break\",58);case 45:n.readHex(l,_g4);n.readHex(h,_i52);r.mapOne(hexToInt(l,_g4),hexToStr(h,_i52));for(_e161=1;_e161<_p2;_e161++){incHex(l,_g4);if(!_a77){n.readHexNumber(u,_g4);addHex(l,u,_g4);}incHex(h,_i52);n.readHexSigned(u,_i52);addHex(h,u,_i52);r.mapOne(hexToInt(l,_g4),hexToStr(h,_i52));}return _context219.abrupt(\"break\",58);case 50:n.readHex(o,_g4);n.readHexNumber(c,_g4);addHex(c,o,_g4);n.readHex(h,_i52);r.mapBfRange(hexToInt(o,_g4),hexToInt(c,_g4),hexToStr(h,_i52));for(_e162=1;_e162<_p2;_e162++){incHex(c,_g4);if(_a77)o.set(c);else{n.readHexNumber(o,_g4);addHex(o,c,_g4);}n.readHexNumber(c,_g4);addHex(c,o,_g4);n.readHex(h,_i52);r.mapBfRange(hexToInt(o,_g4),hexToInt(c,_g4),hexToStr(h,_i52));}return _context219.abrupt(\"break\",58);case 57:throw new Error(\"BinaryCMapReader.process - unknown type: \".concat(_t129));case 58:_context219.next=4;break;case 60:return _context219.abrupt(\"return\",s?a(s):r);case 61:case\"end\":return _context219.stop();}},_callee46);}));function process(_x105,_x106,_x107){return _process.apply(this,arguments);}return process;}()}]);return BinaryCMapReader;}();}(),d=function CMapFactoryClosure(){function strToInt(e){var t=0;for(var _r98=0;_r98<e.length;_r98++)t=t<<8|e.charCodeAt(_r98);return t>>>0;}function expectString(e){if(\"string\"!=typeof e)throw new a.FormatError(\"Malformed CMap: expected string.\");}function expectInt(e){if(!_Number$isInteger(e))throw new a.FormatError(\"Malformed CMap: expected int.\");}function parseBfChar(e,t){for(;;){var _r99=t.getObj();if(_r99===n.EOF)break;if((0,n.isCmd)(_r99,\"endbfchar\"))return;expectString(_r99);var _a78=strToInt(_r99);_r99=t.getObj();expectString(_r99);var _i53=_r99;e.mapOne(_a78,_i53);}}function parseBfRange(e,t){for(;;){var _r100=t.getObj();if(_r100===n.EOF)break;if((0,n.isCmd)(_r100,\"endbfrange\"))return;expectString(_r100);var _a79=strToInt(_r100);_r100=t.getObj();expectString(_r100);var _i54=strToInt(_r100);_r100=t.getObj();if(_Number$isInteger(_r100)||\"string\"==typeof _r100){var _t130=_Number$isInteger(_r100)?String.fromCharCode(_r100):_r100;e.mapBfRange(_a79,_i54,_t130);}else{if(!(0,n.isCmd)(_r100,\"[\"))break;{_r100=t.getObj();var _s33=[];for(;!(0,n.isCmd)(_r100,\"]\")&&_r100!==n.EOF;){_s33.push(_r100);_r100=t.getObj();}e.mapBfRangeToArray(_a79,_i54,_s33);}}}throw new a.FormatError(\"Invalid bf range.\");}function parseCidChar(e,t){for(;;){var _r101=t.getObj();if(_r101===n.EOF)break;if((0,n.isCmd)(_r101,\"endcidchar\"))return;expectString(_r101);var _a80=strToInt(_r101);_r101=t.getObj();expectInt(_r101);var _i55=_r101;e.mapOne(_a80,_i55);}}function parseCidRange(e,t){for(;;){var _r102=t.getObj();if(_r102===n.EOF)break;if((0,n.isCmd)(_r102,\"endcidrange\"))return;expectString(_r102);var _a81=strToInt(_r102);_r102=t.getObj();expectString(_r102);var _i56=strToInt(_r102);_r102=t.getObj();expectInt(_r102);var _s34=_r102;e.mapCidRange(_a81,_i56,_s34);}}function parseCodespaceRange(e,t){for(;;){var _r103=t.getObj();if(_r103===n.EOF)break;if((0,n.isCmd)(_r103,\"endcodespacerange\"))return;if(\"string\"!=typeof _r103)break;var _a82=strToInt(_r103);_r103=t.getObj();if(\"string\"!=typeof _r103)break;var _i57=strToInt(_r103);e.addCodespaceRange(_r103.length,_a82,_i57);}throw new a.FormatError(\"Invalid codespace range.\");}function parseWMode(e,t){var r=t.getObj();_Number$isInteger(r)&&(e.vertical=!!r);}function parseCMapName(e,t){var r=t.getObj();r instanceof n.Name&&(e.name=r.name);}function parseCMap(_x108,_x109,_x110,_x111){return _parseCMap.apply(this,arguments);}function _parseCMap(){_parseCMap=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee48(e,t,r,i){var s,c,_r104;return _regeneratorRuntime.wrap(function _callee48$(_context221){while(1)switch(_context221.prev=_context221.next){case 0:_context221.prev=0;_r104=t.getObj();if(!(_r104===n.EOF)){_context221.next=4;break;}return _context221.abrupt(\"break\",35);case 4:if(!(_r104 instanceof n.Name)){_context221.next=9;break;}\"WMode\"===_r104.name?parseWMode(e,t):\"CMapName\"===_r104.name&&parseCMapName(e,t);s=_r104;_context221.next=25;break;case 9:if(!(_r104 instanceof n.Cmd)){_context221.next=25;break;}_context221.t0=_r104.cmd;_context221.next=_context221.t0===\"endcmap\"?13:_context221.t0===\"usecmap\"?14:_context221.t0===\"begincodespacerange\"?16:_context221.t0===\"beginbfchar\"?18:_context221.t0===\"begincidchar\"?20:_context221.t0===\"beginbfrange\"?22:_context221.t0===\"begincidrange\"?24:25;break;case 13:return _context221.abrupt(\"break\",35);case 14:s instanceof n.Name&&(c=s.name);return _context221.abrupt(\"break\",25);case 16:parseCodespaceRange(e,t);return _context221.abrupt(\"break\",25);case 18:parseBfChar(e,t);return _context221.abrupt(\"break\",25);case 20:parseCidChar(e,t);return _context221.abrupt(\"break\",25);case 22:parseBfRange(e,t);return _context221.abrupt(\"break\",25);case 24:parseCidRange(e,t);case 25:_context221.next=33;break;case 27:_context221.prev=27;_context221.t1=_context221[\"catch\"](0);if(!(_context221.t1 instanceof o.MissingDataException)){_context221.next=31;break;}throw _context221.t1;case 31:(0,a.warn)(\"Invalid cMap data: \"+_context221.t1);return _context221.abrupt(\"continue\",33);case 33:_context221.next=0;break;case 35:!i&&c&&(i=c);return _context221.abrupt(\"return\",i?extendCMap(e,r,i):e);case 37:case\"end\":return _context221.stop();}},_callee48,null,[[0,27]]);}));return _parseCMap.apply(this,arguments);}function extendCMap(_x112,_x113,_x114){return _extendCMap.apply(this,arguments);}function _extendCMap(){_extendCMap=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee49(e,t,r){var _t131,_r105,_context222;return _regeneratorRuntime.wrap(function _callee49$(_context223){while(1)switch(_context223.prev=_context223.next){case 0:_context223.next=2;return createBuiltInCMap(r,t);case 2:e.useCMap=_context223.sent;if(0===e.numCodespaceRanges){_t131=e.useCMap.codespaceRanges;for(_r105=0;_r105<_t131.length;_r105++){e.codespaceRanges[_r105]=_sliceInstanceProperty(_context222=_t131[_r105]).call(_context222);}e.numCodespaceRanges=e.useCMap.numCodespaceRanges;}e.useCMap.forEach(function(t,r){e.contains(t)||e.mapOne(t,e.useCMap.lookup(t));});return _context223.abrupt(\"return\",e);case 6:case\"end\":return _context223.stop();}},_callee49);}));return _extendCMap.apply(this,arguments);}function createBuiltInCMap(_x115,_x116){return _createBuiltInCMap.apply(this,arguments);}function _createBuiltInCMap(){_createBuiltInCMap=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee50(e,t){var _yield$t,r,n,i,_e164;return _regeneratorRuntime.wrap(function _callee50$(_context224){while(1)switch(_context224.prev=_context224.next){case 0:if(!(\"Identity-H\"===e)){_context224.next=2;break;}return _context224.abrupt(\"return\",new IdentityCMap(!1,2));case 2:if(!(\"Identity-V\"===e)){_context224.next=4;break;}return _context224.abrupt(\"return\",new IdentityCMap(!0,2));case 4:if(_includesInstanceProperty(l).call(l,e)){_context224.next=6;break;}throw new Error(\"Unknown CMap name: \"+e);case 6:if(t){_context224.next=8;break;}throw new Error(\"Built-in CMap parameters are not provided.\");case 8:_context224.next=10;return t(e);case 10:_yield$t=_context224.sent;r=_yield$t.cMapData;n=_yield$t.compressionType;i=new CMap(!0);if(!(n===a.CMapCompressionType.BINARY)){_context224.next=16;break;}return _context224.abrupt(\"return\",new u().process(r,i,function(e){return extendCMap(i,t,e);}));case 16:if(!(n===a.CMapCompressionType.NONE)){_context224.next=19;break;}_e164=new s.Lexer(new c.Stream(r));return _context224.abrupt(\"return\",parseCMap(i,_e164,t,null));case 19:throw new Error(\"TODO: Only BINARY/NONE CMap compression is currently supported.\");case 20:case\"end\":return _context224.stop();}},_callee50);}));return _createBuiltInCMap.apply(this,arguments);}return{create:function create(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee47(){var t,r,a,_e163;return _regeneratorRuntime.wrap(function _callee47$(_context220){while(1)switch(_context220.prev=_context220.next){case 0:t=e.encoding,r=e.fetchBuiltInCMap,a=e.useCMap;if(!(t instanceof n.Name)){_context220.next=3;break;}return _context220.abrupt(\"return\",createBuiltInCMap(t.name,r));case 3:if(!(t instanceof i.BaseStream)){_context220.next=8;break;}_context220.next=6;return parseCMap(new CMap(),new s.Lexer(t),r,a);case 6:_e163=_context220.sent;return _context220.abrupt(\"return\",_e163.isIdentityCMap?createBuiltInCMap(_e163.name,r):_e163);case 8:throw new Error(\"Encoding required.\");case 9:case\"end\":return _context220.stop();}},_callee47);}))();}};}();t.CMapFactory=d;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.Parser=t.Linearization=t.Lexer=void 0;var a=r(2),n=r(130),i=r(131),s=r(143),o=r(145),c=r(146),l=r(148),h=r(149),u=r(152),d=r(154),f=r(156),g=r(135),p=r(157),m=r(158);function computeAdler32(e){var t=e.length;var r=1,a=0;for(var _n48=0;_n48<t;++_n48){r+=255&e[_n48];a+=r;}return a%65521<<16|r%65521;}var Parser=/*#__PURE__*/function(){function Parser(e){_classCallCheck(this,Parser);var t=e.lexer,r=e.xref,_e$allowStreams=e.allowStreams,a=_e$allowStreams===void 0?!1:_e$allowStreams,_e$recoveryMode=e.recoveryMode,n=_e$recoveryMode===void 0?!1:_e$recoveryMode;this.lexer=t;this.xref=r;this.allowStreams=a;this.recoveryMode=n;this.imageCache=Object.create(null);this.refill();}_createClass(Parser,[{key:\"refill\",value:function refill(){this.buf1=this.lexer.getObj();this.buf2=this.lexer.getObj();}},{key:\"shift\",value:function shift(){if(this.buf2 instanceof n.Cmd&&\"ID\"===this.buf2.cmd){this.buf1=this.buf2;this.buf2=null;}else{this.buf1=this.buf2;this.buf2=this.lexer.getObj();}}},{key:\"tryShift\",value:function tryShift(){try{this.shift();return!0;}catch(e){if(e instanceof i.MissingDataException)throw e;return!1;}}},{key:\"getObj\",value:function getObj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;var t=this.buf1;this.shift();if(t instanceof n.Cmd)switch(t.cmd){case\"BI\":return this.makeInlineImage(e);case\"[\":var _r106=[];for(;!(0,n.isCmd)(this.buf1,\"]\")&&this.buf1!==n.EOF;)_r106.push(this.getObj(e));if(this.buf1===n.EOF){if(this.recoveryMode)return _r106;throw new i.ParserEOFException(\"End of file inside array.\");}this.shift();return _r106;case\"<<\":var _s35=new n.Dict(this.xref);for(;!(0,n.isCmd)(this.buf1,\">>\")&&this.buf1!==n.EOF;){if(!(this.buf1 instanceof n.Name)){(0,a.info)(\"Malformed dictionary: key must be a name object\");this.shift();continue;}var _t132=this.buf1.name;this.shift();if(this.buf1===n.EOF)break;_s35.set(_t132,this.getObj(e));}if(this.buf1===n.EOF){if(this.recoveryMode)return _s35;throw new i.ParserEOFException(\"End of file inside dictionary.\");}if((0,n.isCmd)(this.buf2,\"stream\"))return this.allowStreams?this.makeStream(_s35,e):_s35;this.shift();return _s35;default:return t;}if(_Number$isInteger(t)){if(_Number$isInteger(this.buf1)&&(0,n.isCmd)(this.buf2,\"R\")){var _e165=n.Ref.get(t,this.buf1);this.shift();this.shift();return _e165;}return t;}return\"string\"==typeof t&&e?e.decryptString(t):t;}},{key:\"findDefaultInlineStreamEnd\",value:function findDefaultInlineStreamEnd(e){var t=this.lexer,r=e.pos;var s,o,c=0;for(;-1!==(s=e.getByte());)if(0===c)c=69===s?1:0;else if(1===c)c=73===s?2:0;else{(0,a.assert)(2===c,\"findDefaultInlineStreamEnd - invalid state.\");if(32===s||10===s||13===s){o=e.pos;var _r107=e.peekBytes(10);for(var _e166=0,_t133=_r107.length;_e166<_t133;_e166++){s=_r107[_e166];if((0!==s||0===_r107[_e166+1])&&10!==s&&13!==s&&(s<32||s>127)){c=0;break;}}if(2!==c)continue;if(t.knownCommands){var _e167=t.peekObj();_e167 instanceof n.Cmd&&!t.knownCommands[_e167.cmd]&&(c=0);}else(0,a.warn)(\"findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.\");if(2===c)break;}else c=0;}if(-1===s){(0,a.warn)(\"findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker\");if(o){(0,a.warn)('... trying to recover by using the last \"EI\" occurrence.');e.skip(-(e.pos-o));}}var l=4;e.skip(-l);s=e.peekByte();e.skip(l);(0,i.isWhiteSpace)(s)||l--;return e.pos-l-r;}},{key:\"findDCTDecodeInlineStreamEnd\",value:function findDCTDecodeInlineStreamEnd(e){var t=e.pos;var r,n,i=!1;for(;-1!==(r=e.getByte());)if(255===r){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:i=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:n=e.getUint16();n>2?e.skip(n-2):e.skip(-2);}if(i)break;}var s=e.pos-t;if(-1===r){(0,a.warn)(\"Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead.\");e.skip(-s);return this.findDefaultInlineStreamEnd(e);}this.inlineStreamSkipEI(e);return s;}},{key:\"findASCII85DecodeInlineStreamEnd\",value:function findASCII85DecodeInlineStreamEnd(e){var t=e.pos;var r;for(;-1!==(r=e.getByte());)if(126===r){var _t134=e.pos;r=e.peekByte();for(;(0,i.isWhiteSpace)(r);){e.skip();r=e.peekByte();}if(62===r){e.skip();break;}if(e.pos>_t134){var _t135=e.peekBytes(2);if(69===_t135[0]&&73===_t135[1])break;}}var n=e.pos-t;if(-1===r){(0,a.warn)(\"Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead.\");e.skip(-n);return this.findDefaultInlineStreamEnd(e);}this.inlineStreamSkipEI(e);return n;}},{key:\"findASCIIHexDecodeInlineStreamEnd\",value:function findASCIIHexDecodeInlineStreamEnd(e){var t=e.pos;var r;for(;-1!==(r=e.getByte())&&62!==r;);var n=e.pos-t;if(-1===r){(0,a.warn)(\"Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead.\");e.skip(-n);return this.findDefaultInlineStreamEnd(e);}this.inlineStreamSkipEI(e);return n;}},{key:\"inlineStreamSkipEI\",value:function inlineStreamSkipEI(e){var t,r=0;for(;-1!==(t=e.getByte());)if(0===r)r=69===t?1:0;else if(1===r)r=73===t?2:0;else if(2===r)break;}},{key:\"makeInlineImage\",value:function makeInlineImage(e){var _context225;var t=this.lexer,r=t.stream,i=new n.Dict(this.xref);var s;for(;!(0,n.isCmd)(this.buf1,\"ID\")&&this.buf1!==n.EOF;){if(!(this.buf1 instanceof n.Name))throw new a.FormatError(\"Dictionary key must be a name object\");var _t136=this.buf1.name;this.shift();if(this.buf1===n.EOF)break;i.set(_t136,this.getObj(e));}-1!==t.beginInlineImagePos&&(s=r.pos-t.beginInlineImagePos);var o=i.get(\"F\",\"Filter\");var c;if(o instanceof n.Name)c=o.name;else if(Array.isArray(o)){var _e168=this.xref.fetchIfRef(o[0]);_e168 instanceof n.Name&&(c=_e168.name);}var l=r.pos;var h;switch(c){case\"DCT\":case\"DCTDecode\":h=this.findDCTDecodeInlineStreamEnd(r);break;case\"A85\":case\"ASCII85Decode\":h=this.findASCII85DecodeInlineStreamEnd(r);break;case\"AHx\":case\"ASCIIHexDecode\":h=this.findASCIIHexDecodeInlineStreamEnd(r);break;default:h=this.findDefaultInlineStreamEnd(r);}var u,d=r.makeSubStream(l,h,i);if(h<1e3&&s<5552){var _e169=d.getBytes();d.reset();var _a83=r.pos;r.pos=t.beginInlineImagePos;var _i58=r.getBytes(s);r.pos=_a83;u=computeAdler32(_e169)+\"_\"+computeAdler32(_i58);var _o15=this.imageCache[u];if(void 0!==_o15){this.buf2=n.Cmd.get(\"EI\");this.shift();_o15.reset();return _o15;}}e&&(d=e.createStream(d,h));d=_filterInstanceProperty(_context225=this).call(_context225,d,i,h);d.dict=i;if(void 0!==u){var _context226;d.cacheKey=_concatInstanceProperty(_context226=\"inline_\".concat(h,\"_\")).call(_context226,u);this.imageCache[u]=d;}this.buf2=n.Cmd.get(\"EI\");this.shift();return d;}},{key:\"_findStreamLength\",value:function _findStreamLength(e,t){var r=this.lexer.stream;r.pos=e;var a=t.length;for(;r.pos<r.end;){var _n49=r.peekBytes(2048),_i59=_n49.length-a;if(_i59<=0)break;var _s36=0;for(;_s36<_i59;){var _i60=0;for(;_i60<a&&_n49[_s36+_i60]===t[_i60];)_i60++;if(_i60>=a){r.pos+=_s36;return r.pos-e;}_s36++;}r.pos+=_i59;}return-1;}},{key:\"makeStream\",value:function makeStream(e,t){var _context227;var r=this.lexer;var s=r.stream;r.skipToNextLine();var o=s.pos-1;var c=e.get(\"Length\");if(!_Number$isInteger(c)){(0,a.info)(\"Bad length \\\"\".concat(c&&c.toString(),\"\\\" in stream.\"));c=0;}s.pos=o+c;r.nextChar();if(this.tryShift()&&(0,n.isCmd)(this.buf2,\"endstream\"))this.shift();else{var _e170=new Uint8Array([101,110,100,115,116,114,101,97,109]);var _t137=this._findStreamLength(o,_e170);if(_t137<0){var _r108=1;for(var _n50=1;_n50<=_r108;_n50++){var _r109=_e170.length-_n50,_c12=_sliceInstanceProperty(_e170).call(_e170,0,_r109),_l11=this._findStreamLength(o,_c12);if(_l11>=0){var _e171=s.peekBytes(_r109+1)[_r109];if(!(0,i.isWhiteSpace)(_e171))break;(0,a.info)(\"Found \\\"\".concat((0,a.bytesToString)(_c12),\"\\\" when searching for endstream command.\"));_t137=_l11;break;}}if(_t137<0)throw new a.FormatError(\"Missing endstream command.\");}c=_t137;r.nextChar();this.shift();this.shift();}this.shift();s=s.makeSubStream(o,c,e);t&&(s=t.createStream(s,c));s=_filterInstanceProperty(_context227=this).call(_context227,s,e,c);s.dict=e;return s;}},{key:\"filter\",value:function filter(e,t,r){var i=t.get(\"F\",\"Filter\"),s=t.get(\"DP\",\"DecodeParms\");if(i instanceof n.Name){Array.isArray(s)&&(0,a.warn)(\"/DecodeParms should not be an Array, when /Filter is a Name.\");return this.makeFilter(e,i.name,r,s);}var o=r;if(Array.isArray(i)){var _t138=i,_r110=s;for(var _c13=0,_l12=_t138.length;_c13<_l12;++_c13){i=this.xref.fetchIfRef(_t138[_c13]);if(!(i instanceof n.Name))throw new a.FormatError(\"Bad filter name \\\"\".concat(i,\"\\\"\"));s=null;Array.isArray(_r110)&&_c13 in _r110&&(s=this.xref.fetchIfRef(_r110[_c13]));e=this.makeFilter(e,i.name,o,s);o=null;}}return e;}},{key:\"makeFilter\",value:function makeFilter(e,t,r,n){if(0===r){(0,a.warn)(\"Empty \\\"\".concat(t,\"\\\" stream.\"));return new g.NullStream();}var b=this.xref.stats;try{switch(t){case\"Fl\":case\"FlateDecode\":b.addStreamType(a.StreamType.FLATE);return n?new p.PredictorStream(new l.FlateStream(e,r),r,n):new l.FlateStream(e,r);case\"LZW\":case\"LZWDecode\":b.addStreamType(a.StreamType.LZW);var _t139=1;if(n){n.has(\"EarlyChange\")&&(_t139=n.get(\"EarlyChange\"));return new p.PredictorStream(new f.LZWStream(e,r,_t139),r,n);}return new f.LZWStream(e,r,_t139);case\"DCT\":case\"DCTDecode\":b.addStreamType(a.StreamType.DCT);return new u.JpegStream(e,r,n);case\"JPX\":case\"JPXDecode\":b.addStreamType(a.StreamType.JPX);return new d.JpxStream(e,r,n);case\"A85\":case\"ASCII85Decode\":b.addStreamType(a.StreamType.A85);return new s.Ascii85Stream(e,r);case\"AHx\":case\"ASCIIHexDecode\":b.addStreamType(a.StreamType.AHX);return new o.AsciiHexStream(e,r);case\"CCF\":case\"CCITTFaxDecode\":b.addStreamType(a.StreamType.CCF);return new c.CCITTFaxStream(e,r,n);case\"RL\":case\"RunLengthDecode\":b.addStreamType(a.StreamType.RLX);return new m.RunLengthStream(e,r);case\"JBIG2Decode\":b.addStreamType(a.StreamType.JBIG);return new h.Jbig2Stream(e,r,n);}(0,a.warn)(\"Filter \\\"\".concat(t,\"\\\" is not supported.\"));return e;}catch(e){if(e instanceof i.MissingDataException)throw e;(0,a.warn)(\"Invalid stream: \\\"\".concat(e,\"\\\"\"));return new g.NullStream();}}}]);return Parser;}();t.Parser=Parser;var b=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function toHexDigit(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1;}var Lexer=/*#__PURE__*/function(){function Lexer(e){_classCallCheck(this,Lexer);var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.stream=e;this.nextChar();this.strBuf=[];this.knownCommands=t;this._hexStringNumWarn=0;this.beginInlineImagePos=-1;}_createClass(Lexer,[{key:\"nextChar\",value:function nextChar(){return this.currentChar=this.stream.getByte();}},{key:\"peekChar\",value:function peekChar(){return this.stream.peekByte();}},{key:\"getNumber\",value:function getNumber(){var e=this.currentChar,t=!1,r=0,n=0;if(45===e){n=-1;e=this.nextChar();45===e&&(e=this.nextChar());}else if(43===e){n=1;e=this.nextChar();}if(10===e||13===e)do{e=this.nextChar();}while(10===e||13===e);if(46===e){r=10;e=this.nextChar();}if(e<48||e>57){var _context228;if((0,i.isWhiteSpace)(e)||-1===e){if(10===r&&0===n){(0,a.warn)(\"Lexer.getNumber - treating a single decimal point as zero.\");return 0;}if(0===r&&-1===n){(0,a.warn)(\"Lexer.getNumber - treating a single minus sign as zero.\");return 0;}}throw new a.FormatError(_concatInstanceProperty(_context228=\"Invalid number: \".concat(String.fromCharCode(e),\" (charCode \")).call(_context228,e,\")\"));}n=n||1;var s=e-48,o=0,c=1;for(;(e=this.nextChar())>=0;)if(e>=48&&e<=57){var _a84=e-48;if(t)o=10*o+_a84;else{0!==r&&(r*=10);s=10*s+_a84;}}else if(46===e){if(0!==r)break;r=1;}else if(45===e)(0,a.warn)(\"Badly formatted number: minus sign in the middle\");else{if(69!==e&&101!==e)break;e=this.peekChar();if(43===e||45===e){c=45===e?-1:1;this.nextChar();}else if(e<48||e>57)break;t=!0;}0!==r&&(s/=r);t&&(s*=Math.pow(10,c*o));return n*s;}},{key:\"getString\",value:function getString(){var e=1,t=!1;var r=this.strBuf;r.length=0;var n=this.nextChar();for(;;){var _i61=!1;switch(0|n){case-1:(0,a.warn)(\"Unterminated string\");t=!0;break;case 40:++e;r.push(\"(\");break;case 41:if(0==--e){this.nextChar();t=!0;}else r.push(\")\");break;case 92:n=this.nextChar();switch(n){case-1:(0,a.warn)(\"Unterminated string\");t=!0;break;case 110:r.push(\"\\n\");break;case 114:r.push(\"\\r\");break;case 116:r.push(\"\\t\");break;case 98:r.push(\"\\b\");break;case 102:r.push(\"\\f\");break;case 92:case 40:case 41:r.push(String.fromCharCode(n));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var _e172=15&n;n=this.nextChar();_i61=!0;if(n>=48&&n<=55){_e172=(_e172<<3)+(15&n);n=this.nextChar();if(n>=48&&n<=55){_i61=!1;_e172=(_e172<<3)+(15&n);}}r.push(String.fromCharCode(_e172));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:r.push(String.fromCharCode(n));}break;default:r.push(String.fromCharCode(n));}if(t)break;_i61||(n=this.nextChar());}return r.join(\"\");}},{key:\"getName\",value:function getName(){var e,t;var r=this.strBuf;r.length=0;for(;(e=this.nextChar())>=0&&!b[e];)if(35===e){e=this.nextChar();if(b[e]){(0,a.warn)(\"Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number.\");r.push(\"#\");break;}var _n51=toHexDigit(e);if(-1!==_n51){t=e;e=this.nextChar();var _i62=toHexDigit(e);if(-1===_i62){(0,a.warn)(\"Lexer_getName: Illegal digit (\".concat(String.fromCharCode(e),\") in hexadecimal number.\"));r.push(\"#\",String.fromCharCode(t));if(b[e])break;r.push(String.fromCharCode(e));continue;}r.push(String.fromCharCode(_n51<<4|_i62));}else r.push(\"#\",String.fromCharCode(e));}else r.push(String.fromCharCode(e));r.length>127&&(0,a.warn)(\"Name token is longer than allowed by the spec: \".concat(r.length));return n.Name.get(r.join(\"\"));}},{key:\"_hexStringWarn\",value:function _hexStringWarn(e){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,a.warn)(\"getHexString - ignoring invalid character: \".concat(e)):(0,a.warn)(\"getHexString - ignoring additional invalid characters.\");}},{key:\"getHexString\",value:function getHexString(){var e=this.strBuf;e.length=0;var t,r,n=this.currentChar,i=!0;this._hexStringNumWarn=0;for(;;){if(n<0){(0,a.warn)(\"Unterminated hex string\");break;}if(62===n){this.nextChar();break;}if(1!==b[n]){if(i){t=toHexDigit(n);if(-1===t){this._hexStringWarn(n);n=this.nextChar();continue;}}else{r=toHexDigit(n);if(-1===r){this._hexStringWarn(n);n=this.nextChar();continue;}e.push(String.fromCharCode(t<<4|r));}i=!i;n=this.nextChar();}else n=this.nextChar();}return e.join(\"\");}},{key:\"getObj\",value:function getObj(){var e=!1,t=this.currentChar;for(;;){if(t<0)return n.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==b[t])break;t=this.nextChar();}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:this.nextChar();return n.Cmd.get(\"[\");case 93:this.nextChar();return n.Cmd.get(\"]\");case 60:t=this.nextChar();if(60===t){this.nextChar();return n.Cmd.get(\"<<\");}return this.getHexString();case 62:t=this.nextChar();if(62===t){this.nextChar();return n.Cmd.get(\">>\");}return n.Cmd.get(\">\");case 123:this.nextChar();return n.Cmd.get(\"{\");case 125:this.nextChar();return n.Cmd.get(\"}\");case 41:this.nextChar();throw new a.FormatError(\"Illegal character: \".concat(t));}var r=String.fromCharCode(t);if(t<32||t>127){var _e173=this.peekChar();if(_e173>=32&&_e173<=127){this.nextChar();return n.Cmd.get(r);}}var i=this.knownCommands;var s=i&&void 0!==i[r];for(;(t=this.nextChar())>=0&&!b[t];){var _e174=r+String.fromCharCode(t);if(s&&void 0===i[_e174])break;if(128===r.length)throw new a.FormatError(\"Command token too long: \".concat(r.length));r=_e174;s=i&&void 0!==i[r];}if(\"true\"===r)return!0;if(\"false\"===r)return!1;if(\"null\"===r)return null;\"BI\"===r&&(this.beginInlineImagePos=this.stream.pos);return n.Cmd.get(r);}},{key:\"peekObj\",value:function peekObj(){var e=this.stream.pos,t=this.currentChar,r=this.beginInlineImagePos;var n;try{n=this.getObj();}catch(e){if(e instanceof i.MissingDataException)throw e;(0,a.warn)(\"peekObj: \".concat(e));}this.stream.pos=e;this.currentChar=t;this.beginInlineImagePos=r;return n;}},{key:\"skipToNextLine\",value:function skipToNextLine(){var e=this.currentChar;for(;e>=0;){if(13===e){e=this.nextChar();10===e&&this.nextChar();break;}if(10===e){this.nextChar();break;}e=this.nextChar();}}}]);return Lexer;}();t.Lexer=Lexer;t.Linearization=/*#__PURE__*/function(){function Linearization(){_classCallCheck(this,Linearization);}_createClass(Linearization,null,[{key:\"create\",value:function create(e){function getInt(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var a=e.get(t);if(_Number$isInteger(a)&&(r?a>=0:a>0))return a;throw new Error(\"The \\\"\".concat(t,\"\\\" parameter in the linearization dictionary is invalid.\"));}var t=new Parser({lexer:new Lexer(e),xref:null}),r=t.getObj(),a=t.getObj(),i=t.getObj(),s=t.getObj();var o,c;if(!(_Number$isInteger(r)&&_Number$isInteger(a)&&(0,n.isCmd)(i,\"obj\")&&s instanceof n.Dict&&\"number\"==typeof(o=s.get(\"Linearized\"))&&o>0))return null;if((c=getInt(s,\"L\"))!==e.length)throw new Error('The \"L\" parameter in the linearization dictionary does not equal the stream length.');return{length:c,hints:function getHints(e){var t=e.get(\"H\");var r;if(Array.isArray(t)&&(2===(r=t.length)||4===r)){for(var _e175=0;_e175<r;_e175++){var _r111=t[_e175];if(!(_Number$isInteger(_r111)&&_r111>0))throw new Error(\"Hint (\".concat(_e175,\") in the linearization dictionary is invalid.\"));}return t;}throw new Error(\"Hint array in the linearization dictionary is invalid.\");}(s),objectNumberFirst:getInt(s,\"O\"),endFirst:getInt(s,\"E\"),numPages:getInt(s,\"N\"),mainXRefEntriesOffset:getInt(s,\"T\"),pageFirst:s.has(\"P\")?getInt(s,\"P\",!0):0};}}]);return Linearization;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.Ascii85Stream=void 0;var a=r(144),n=r(131);var Ascii85Stream=/*#__PURE__*/function(_a$DecodeStream){_inherits(Ascii85Stream,_a$DecodeStream);function Ascii85Stream(e,t){var _this63;_classCallCheck(this,Ascii85Stream);t&&(t*=.8);_this63=_callSuper(this,Ascii85Stream,[t]);_this63.str=e;_this63.dict=e.dict;_this63.input=new Uint8Array(5);return _this63;}_createClass(Ascii85Stream,[{key:\"readBlock\",value:function readBlock(){var e=this.str;var t=e.getByte();for(;(0,n.isWhiteSpace)(t);)t=e.getByte();if(-1===t||126===t){this.eof=!0;return;}var r=this.bufferLength;var a,i;if(122===t){a=this.ensureBuffer(r+4);for(i=0;i<4;++i)a[r+i]=0;this.bufferLength+=4;}else{var _s37=this.input;_s37[0]=t;for(i=1;i<5;++i){t=e.getByte();for(;(0,n.isWhiteSpace)(t);)t=e.getByte();_s37[i]=t;if(-1===t||126===t)break;}a=this.ensureBuffer(r+i-1);this.bufferLength+=i-1;if(i<5){for(;i<5;++i)_s37[i]=117;this.eof=!0;}var _o16=0;for(i=0;i<5;++i)_o16=85*_o16+(_s37[i]-33);for(i=3;i>=0;--i){a[r+i]=255&_o16;_o16>>=8;}}}}]);return Ascii85Stream;}(a.DecodeStream);t.Ascii85Stream=Ascii85Stream;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.StreamsSequenceStream=t.DecodeStream=void 0;var a=r(132),n=r(135);var i=new Uint8Array(0);var DecodeStream=/*#__PURE__*/function(_a$BaseStream2){_inherits(DecodeStream,_a$BaseStream2);function DecodeStream(e){var _this64;_classCallCheck(this,DecodeStream);_this64=_callSuper(this,DecodeStream);_this64._rawMinBufferLength=e||0;_this64.pos=0;_this64.bufferLength=0;_this64.eof=!1;_this64.buffer=i;_this64.minBufferLength=512;if(e)for(;_this64.minBufferLength<e;)_this64.minBufferLength*=2;return _this64;}_createClass(DecodeStream,[{key:\"isEmpty\",get:function get(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength;}},{key:\"ensureBuffer\",value:function ensureBuffer(e){var t=this.buffer;if(e<=t.byteLength)return t;var r=this.minBufferLength;for(;r<e;)r*=2;var a=new Uint8Array(r);a.set(t);return this.buffer=a;}},{key:\"getByte\",value:function getByte(){var e=this.pos;for(;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock();}return this.buffer[this.pos++];}},{key:\"getBytes\",value:function getBytes(e){var t=this.pos;var r;if(e){this.ensureBuffer(t+e);r=t+e;for(;!this.eof&&this.bufferLength<r;)this.readBlock();var _a85=this.bufferLength;r>_a85&&(r=_a85);}else{for(;!this.eof;)this.readBlock();r=this.bufferLength;}this.pos=r;return this.buffer.subarray(t,r);}},{key:\"reset\",value:function reset(){this.pos=0;}},{key:\"makeSubStream\",value:function makeSubStream(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(void 0===t)for(;!this.eof;)this.readBlock();else{var _r112=e+t;for(;this.bufferLength<=_r112&&!this.eof;)this.readBlock();}return new n.Stream(this.buffer,e,t,r);}},{key:\"getBaseStreams\",value:function getBaseStreams(){return this.str?this.str.getBaseStreams():null;}}]);return DecodeStream;}(a.BaseStream);t.DecodeStream=DecodeStream;t.StreamsSequenceStream=/*#__PURE__*/function(_DecodeStream){_inherits(StreamsSequenceStream,_DecodeStream);function StreamsSequenceStream(e){var _this65;_classCallCheck(this,StreamsSequenceStream);var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=0;var _iterator69=_createForOfIteratorHelper(e),_step69;try{for(_iterator69.s();!(_step69=_iterator69.n()).done;){var _t140=_step69.value;r+=_t140 instanceof DecodeStream?_t140._rawMinBufferLength:_t140.length;}}catch(err){_iterator69.e(err);}finally{_iterator69.f();}_this65=_callSuper(this,StreamsSequenceStream,[r]);_this65.streams=e;_this65._onError=t;return _this65;}_createClass(StreamsSequenceStream,[{key:\"readBlock\",value:function readBlock(){var e=this.streams;if(0===e.length){this.eof=!0;return;}var t=e.shift();var r;try{r=t.getBytes();}catch(e){if(this._onError){this._onError(e,t.dict&&t.dict.objId);return;}throw e;}var a=this.bufferLength,n=a+r.length;this.ensureBuffer(n).set(r,a);this.bufferLength=n;}},{key:\"getBaseStreams\",value:function getBaseStreams(){var e=[];var _iterator70=_createForOfIteratorHelper(this.streams),_step70;try{for(_iterator70.s();!(_step70=_iterator70.n()).done;){var _t141=_step70.value;var _r113=_t141.getBaseStreams();_r113&&e.push.apply(e,_toConsumableArray(_r113));}}catch(err){_iterator70.e(err);}finally{_iterator70.f();}return e.length>0?e:null;}}]);return StreamsSequenceStream;}(DecodeStream);},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.AsciiHexStream=void 0;var a=r(144);var AsciiHexStream=/*#__PURE__*/function(_a$DecodeStream2){_inherits(AsciiHexStream,_a$DecodeStream2);function AsciiHexStream(e,t){var _this66;_classCallCheck(this,AsciiHexStream);t&&(t*=.5);_this66=_callSuper(this,AsciiHexStream,[t]);_this66.str=e;_this66.dict=e.dict;_this66.firstDigit=-1;return _this66;}_createClass(AsciiHexStream,[{key:\"readBlock\",value:function readBlock(){var e=this.str.getBytes(8e3);if(!e.length){this.eof=!0;return;}var t=e.length+1>>1,r=this.ensureBuffer(this.bufferLength+t);var a=this.bufferLength,n=this.firstDigit;var _iterator71=_createForOfIteratorHelper(e),_step71;try{for(_iterator71.s();!(_step71=_iterator71.n()).done;){var _t142=_step71.value;var _e176=void 0;if(_t142>=48&&_t142<=57)_e176=15&_t142;else{if(!(_t142>=65&&_t142<=70||_t142>=97&&_t142<=102)){if(62===_t142){this.eof=!0;break;}continue;}_e176=9+(15&_t142);}if(n<0)n=_e176;else{r[a++]=n<<4|_e176;n=-1;}}}catch(err){_iterator71.e(err);}finally{_iterator71.f();}if(n>=0&&this.eof){r[a++]=n<<4;n=-1;}this.firstDigit=n;this.bufferLength=a;}}]);return AsciiHexStream;}(a.DecodeStream);t.AsciiHexStream=AsciiHexStream;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.CCITTFaxStream=void 0;var a=r(147),n=r(144),i=r(130);var CCITTFaxStream=/*#__PURE__*/function(_n$DecodeStream){_inherits(CCITTFaxStream,_n$DecodeStream);function CCITTFaxStream(e,t,r){var _this67;_classCallCheck(this,CCITTFaxStream);_this67=_callSuper(this,CCITTFaxStream,[t]);_this67.str=e;_this67.dict=e.dict;r instanceof i.Dict||(r=i.Dict.empty);var n={next:function next(){return e.getByte();}};_this67.ccittFaxDecoder=new a.CCITTFaxDecoder(n,{K:r.get(\"K\"),EndOfLine:r.get(\"EndOfLine\"),EncodedByteAlign:r.get(\"EncodedByteAlign\"),Columns:r.get(\"Columns\"),Rows:r.get(\"Rows\"),EndOfBlock:r.get(\"EndOfBlock\"),BlackIs1:r.get(\"BlackIs1\")});return _this67;}_createClass(CCITTFaxStream,[{key:\"readBlock\",value:function readBlock(){for(;!this.eof;){var _e177=this.ccittFaxDecoder.readNextChar();if(-1===_e177){this.eof=!0;return;}this.ensureBuffer(this.bufferLength+1);this.buffer[this.bufferLength++]=_e177;}}}]);return CCITTFaxStream;}(n.DecodeStream);t.CCITTFaxStream=CCITTFaxStream;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.CCITTFaxDecoder=void 0;var a=r(2);var n=-1,i=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],s=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],o=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],c=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],l=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],h=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];t.CCITTFaxDecoder=/*#__PURE__*/function(){function CCITTFaxDecoder(e){_classCallCheck(this,CCITTFaxDecoder);var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||\"function\"!=typeof e.next)throw new Error('CCITTFaxDecoder - invalid \"source\" parameter.');this.source=e;this.eof=!1;this.encoding=t.K||0;this.eoline=t.EndOfLine||!1;this.byteAlign=t.EncodedByteAlign||!1;this.columns=t.Columns||1728;this.rows=t.Rows||0;var r,a=t.EndOfBlock;null==a&&(a=!0);this.eoblock=a;this.black=t.BlackIs1||!1;this.codingLine=new Uint32Array(this.columns+1);this.refLine=new Uint32Array(this.columns+2);this.codingLine[0]=this.columns;this.codingPos=0;this.row=0;this.nextLine2D=this.encoding<0;this.inputBits=0;this.inputBuf=0;this.outputBits=0;this.rowsDone=!1;for(;0===(r=this._lookBits(12));)this._eatBits(1);1===r&&this._eatBits(12);if(this.encoding>0){this.nextLine2D=!this._lookBits(1);this._eatBits(1);}}_createClass(CCITTFaxDecoder,[{key:\"readNextChar\",value:function readNextChar(){if(this.eof)return-1;var e=this.refLine,t=this.codingLine,r=this.columns;var i,s,o,c,l;if(0===this.outputBits){this.rowsDone&&(this.eof=!0);if(this.eof)return-1;this.err=!1;var _o17,_l13,_h6;if(this.nextLine2D){for(c=0;t[c]<r;++c)e[c]=t[c];e[c++]=r;e[c]=r;t[0]=0;this.codingPos=0;i=0;s=0;for(;t[this.codingPos]<r;){_o17=this._getTwoDimCode();switch(_o17){case 0:this._addPixels(e[i+1],s);e[i+1]<r&&(i+=2);break;case 1:_o17=_l13=0;if(s){do{_o17+=_h6=this._getBlackCode();}while(_h6>=64);do{_l13+=_h6=this._getWhiteCode();}while(_h6>=64);}else{do{_o17+=_h6=this._getWhiteCode();}while(_h6>=64);do{_l13+=_h6=this._getBlackCode();}while(_h6>=64);}this._addPixels(t[this.codingPos]+_o17,s);t[this.codingPos]<r&&this._addPixels(t[this.codingPos]+_l13,1^s);for(;e[i]<=t[this.codingPos]&&e[i]<r;)i+=2;break;case 7:this._addPixels(e[i]+3,s);s^=1;if(t[this.codingPos]<r){++i;for(;e[i]<=t[this.codingPos]&&e[i]<r;)i+=2;}break;case 5:this._addPixels(e[i]+2,s);s^=1;if(t[this.codingPos]<r){++i;for(;e[i]<=t[this.codingPos]&&e[i]<r;)i+=2;}break;case 3:this._addPixels(e[i]+1,s);s^=1;if(t[this.codingPos]<r){++i;for(;e[i]<=t[this.codingPos]&&e[i]<r;)i+=2;}break;case 2:this._addPixels(e[i],s);s^=1;if(t[this.codingPos]<r){++i;for(;e[i]<=t[this.codingPos]&&e[i]<r;)i+=2;}break;case 8:this._addPixelsNeg(e[i]-3,s);s^=1;if(t[this.codingPos]<r){i>0?--i:++i;for(;e[i]<=t[this.codingPos]&&e[i]<r;)i+=2;}break;case 6:this._addPixelsNeg(e[i]-2,s);s^=1;if(t[this.codingPos]<r){i>0?--i:++i;for(;e[i]<=t[this.codingPos]&&e[i]<r;)i+=2;}break;case 4:this._addPixelsNeg(e[i]-1,s);s^=1;if(t[this.codingPos]<r){i>0?--i:++i;for(;e[i]<=t[this.codingPos]&&e[i]<r;)i+=2;}break;case n:this._addPixels(r,0);this.eof=!0;break;default:(0,a.info)(\"bad 2d code\");this._addPixels(r,0);this.err=!0;}}}else{t[0]=0;this.codingPos=0;s=0;for(;t[this.codingPos]<r;){_o17=0;if(s)do{_o17+=_h6=this._getBlackCode();}while(_h6>=64);else do{_o17+=_h6=this._getWhiteCode();}while(_h6>=64);this._addPixels(t[this.codingPos]+_o17,s);s^=1;}}var u=!1;this.byteAlign&&(this.inputBits&=-8);if(this.eoblock||this.row!==this.rows-1){_o17=this._lookBits(12);if(this.eoline)for(;_o17!==n&&1!==_o17;){this._eatBits(1);_o17=this._lookBits(12);}else for(;0===_o17;){this._eatBits(1);_o17=this._lookBits(12);}if(1===_o17){this._eatBits(12);u=!0;}else _o17===n&&(this.eof=!0);}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone){this.nextLine2D=!this._lookBits(1);this._eatBits(1);}if(this.eoblock&&u&&this.byteAlign){_o17=this._lookBits(12);if(1===_o17){this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1);}if(this.encoding>=0)for(c=0;c<4;++c){_o17=this._lookBits(12);1!==_o17&&(0,a.info)(\"bad rtc code: \"+_o17);this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1);}}this.eof=!0;}}else if(this.err&&this.eoline){for(;;){_o17=this._lookBits(13);if(_o17===n){this.eof=!0;return-1;}if(_o17>>1==1)break;this._eatBits(1);}this._eatBits(12);if(this.encoding>0){this._eatBits(1);this.nextLine2D=!(1&_o17);}}t[0]>0?this.outputBits=t[this.codingPos=0]:this.outputBits=t[this.codingPos=1];this.row++;}if(this.outputBits>=8){l=1&this.codingPos?0:255;this.outputBits-=8;if(0===this.outputBits&&t[this.codingPos]<r){this.codingPos++;this.outputBits=t[this.codingPos]-t[this.codingPos-1];}}else{o=8;l=0;do{if(\"number\"!=typeof this.outputBits)throw new a.FormatError('Invalid /CCITTFaxDecode data, \"outputBits\" must be a number.');if(this.outputBits>o){l<<=o;1&this.codingPos||(l|=255>>8-o);this.outputBits-=o;o=0;}else{l<<=this.outputBits;1&this.codingPos||(l|=255>>8-this.outputBits);o-=this.outputBits;this.outputBits=0;if(t[this.codingPos]<r){this.codingPos++;this.outputBits=t[this.codingPos]-t[this.codingPos-1];}else if(o>0){l<<=o;o=0;}}}while(o);}this.black&&(l^=255);return l;}},{key:\"_addPixels\",value:function _addPixels(e,t){var r=this.codingLine;var n=this.codingPos;if(e>r[n]){if(e>this.columns){(0,a.info)(\"row is wrong length\");this.err=!0;e=this.columns;}1&n^t&&++n;r[n]=e;}this.codingPos=n;}},{key:\"_addPixelsNeg\",value:function _addPixelsNeg(e,t){var r=this.codingLine;var n=this.codingPos;if(e>r[n]){if(e>this.columns){(0,a.info)(\"row is wrong length\");this.err=!0;e=this.columns;}1&n^t&&++n;r[n]=e;}else if(e<r[n]){if(e<0){(0,a.info)(\"invalid code\");this.err=!0;e=0;}for(;n>0&&e<r[n-1];)--n;r[n]=e;}this.codingPos=n;}},{key:\"_findTableCode\",value:function _findTableCode(e,t,r,a){var i=a||0;for(var _a86=e;_a86<=t;++_a86){var _e178=this._lookBits(_a86);if(_e178===n)return[!0,1,!1];_a86<t&&(_e178<<=t-_a86);if(!i||_e178>=i){var _t143=r[_e178-i];if(_t143[0]===_a86){this._eatBits(_a86);return[!0,_t143[1],!0];}}}return[!1,0,!1];}},{key:\"_getTwoDimCode\",value:function _getTwoDimCode(){var e,t=0;if(this.eoblock){t=this._lookBits(7);e=i[t];if(e&&e[0]>0){this._eatBits(e[0]);return e[1];}}else{var _e179=this._findTableCode(1,7,i);if(_e179[0]&&_e179[2])return _e179[1];}(0,a.info)(\"Bad two dim code\");return n;}},{key:\"_getWhiteCode\",value:function _getWhiteCode(){var e,t=0;if(this.eoblock){t=this._lookBits(12);if(t===n)return 1;e=t>>5==0?s[t]:o[t>>3];if(e[0]>0){this._eatBits(e[0]);return e[1];}}else{var _e180=this._findTableCode(1,9,o);if(_e180[0])return _e180[1];_e180=this._findTableCode(11,12,s);if(_e180[0])return _e180[1];}(0,a.info)(\"bad white code\");this._eatBits(1);return 1;}},{key:\"_getBlackCode\",value:function _getBlackCode(){var e,t;if(this.eoblock){e=this._lookBits(13);if(e===n)return 1;t=e>>7==0?c[e]:e>>9==0&&e>>7!=0?l[(e>>1)-64]:h[e>>7];if(t[0]>0){this._eatBits(t[0]);return t[1];}}else{var _e181=this._findTableCode(2,6,h);if(_e181[0])return _e181[1];_e181=this._findTableCode(7,12,l,64);if(_e181[0])return _e181[1];_e181=this._findTableCode(10,13,c);if(_e181[0])return _e181[1];}(0,a.info)(\"bad black code\");this._eatBits(1);return 1;}},{key:\"_lookBits\",value:function _lookBits(e){var t;for(;this.inputBits<e;){if(-1===(t=this.source.next()))return 0===this.inputBits?n:this.inputBuf<<e-this.inputBits&65535>>16-e;this.inputBuf=this.inputBuf<<8|t;this.inputBits+=8;}return this.inputBuf>>this.inputBits-e&65535>>16-e;}},{key:\"_eatBits\",value:function _eatBits(e){(this.inputBits-=e)<0&&(this.inputBits=0);}}]);return CCITTFaxDecoder;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.FlateStream=void 0;var a=r(144),n=r(2);var i=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),o=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),c=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],l=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];var FlateStream=/*#__PURE__*/function(_a$DecodeStream3){_inherits(FlateStream,_a$DecodeStream3);function FlateStream(e,t){var _context229,_context230,_context231,_context232;var _this68;_classCallCheck(this,FlateStream);_this68=_callSuper(this,FlateStream,[t]);_this68.str=e;_this68.dict=e.dict;var r=e.getByte(),a=e.getByte();if(-1===r||-1===a)throw new n.FormatError(_concatInstanceProperty(_context229=\"Invalid header in flate stream: \".concat(r,\", \")).call(_context229,a));if(8!=(15&r))throw new n.FormatError(_concatInstanceProperty(_context230=\"Unknown compression method in flate stream: \".concat(r,\", \")).call(_context230,a));if(((r<<8)+a)%31!=0)throw new n.FormatError(_concatInstanceProperty(_context231=\"Bad FCHECK in flate stream: \".concat(r,\", \")).call(_context231,a));if(32&a)throw new n.FormatError(_concatInstanceProperty(_context232=\"FDICT bit set in flate stream: \".concat(r,\", \")).call(_context232,a));_this68.codeSize=0;_this68.codeBuf=0;return _this68;}_createClass(FlateStream,[{key:\"getBits\",value:function getBits(e){var t=this.str;var r,a=this.codeSize,i=this.codeBuf;for(;a<e;){if(-1===(r=t.getByte()))throw new n.FormatError(\"Bad encoding in flate stream\");i|=r<<a;a+=8;}r=i&(1<<e)-1;this.codeBuf=i>>e;this.codeSize=a-=e;return r;}},{key:\"getCode\",value:function getCode(e){var t=this.str,r=e[0],a=e[1];var i,s=this.codeSize,o=this.codeBuf;for(;s<a&&-1!==(i=t.getByte());){o|=i<<s;s+=8;}var c=r[o&(1<<a)-1],l=c>>16,h=65535&c;if(l<1||s<l)throw new n.FormatError(\"Bad encoding in flate stream\");this.codeBuf=o>>l;this.codeSize=s-l;return h;}},{key:\"generateHuffmanTable\",value:function generateHuffmanTable(e){var t=e.length;var r,a=0;for(r=0;r<t;++r)e[r]>a&&(a=e[r]);var n=1<<a,i=new Int32Array(n);for(var _s38=1,_o18=0,_c14=2;_s38<=a;++_s38,_o18<<=1,_c14<<=1)for(var _a87=0;_a87<t;++_a87)if(e[_a87]===_s38){var _e182=0,_t144=_o18;for(r=0;r<_s38;++r){_e182=_e182<<1|1&_t144;_t144>>=1;}for(r=_e182;r<n;r+=_c14)i[r]=_s38<<16|_a87;++_o18;}return[i,a];}},{key:\"readBlock\",value:function readBlock(){var e,t;var r=this.str;var a,h,u=this.getBits(3);1&u&&(this.eof=!0);u>>=1;if(0===u){var _t145;if(-1===(_t145=r.getByte()))throw new n.FormatError(\"Bad block header in flate stream\");var _a88=_t145;if(-1===(_t145=r.getByte()))throw new n.FormatError(\"Bad block header in flate stream\");_a88|=_t145<<8;if(-1===(_t145=r.getByte()))throw new n.FormatError(\"Bad block header in flate stream\");var _i63=_t145;if(-1===(_t145=r.getByte()))throw new n.FormatError(\"Bad block header in flate stream\");_i63|=_t145<<8;if(_i63!==(65535&~_a88)&&(0!==_a88||0!==_i63))throw new n.FormatError(\"Bad uncompressed block length in flate stream\");this.codeBuf=0;this.codeSize=0;var _s39=this.bufferLength,_o19=_s39+_a88;e=this.ensureBuffer(_o19);this.bufferLength=_o19;if(0===_a88)-1===r.peekByte()&&(this.eof=!0);else{var _t146=r.getBytes(_a88);e.set(_t146,_s39);_t146.length<_a88&&(this.eof=!0);}return;}if(1===u){a=c;h=l;}else{if(2!==u)throw new n.FormatError(\"Unknown block type in flate stream\");{var _e183=this.getBits(5)+257,_r114=this.getBits(5)+1,_n52=this.getBits(4)+4,_s40=new Uint8Array(i.length);var _o20;for(_o20=0;_o20<_n52;++_o20)_s40[i[_o20]]=this.getBits(3);var _c15=this.generateHuffmanTable(_s40);t=0;_o20=0;var _l14=_e183+_r114,_u3=new Uint8Array(_l14);var _d5,_f2,_g5;for(;_o20<_l14;){var _e184=this.getCode(_c15);if(16===_e184){_d5=2;_f2=3;_g5=t;}else if(17===_e184){_d5=3;_f2=3;_g5=t=0;}else{if(18!==_e184){_u3[_o20++]=t=_e184;continue;}_d5=7;_f2=11;_g5=t=0;}var _r115=this.getBits(_d5)+_f2;for(;_r115-->0;)_u3[_o20++]=_g5;}a=this.generateHuffmanTable(_u3.subarray(0,_e183));h=this.generateHuffmanTable(_u3.subarray(_e183,_l14));}}e=this.buffer;var d=e?e.length:0,f=this.bufferLength;for(;;){var _r116=this.getCode(a);if(_r116<256){if(f+1>=d){e=this.ensureBuffer(f+1);d=e.length;}e[f++]=_r116;continue;}if(256===_r116){this.bufferLength=f;return;}_r116-=257;_r116=s[_r116];var _n53=_r116>>16;_n53>0&&(_n53=this.getBits(_n53));t=(65535&_r116)+_n53;_r116=this.getCode(h);_r116=o[_r116];_n53=_r116>>16;_n53>0&&(_n53=this.getBits(_n53));var _i64=(65535&_r116)+_n53;if(f+t>=d){e=this.ensureBuffer(f+t);d=e.length;}for(var _r117=0;_r117<t;++_r117,++f)e[f]=e[f-_i64];}}}]);return FlateStream;}(a.DecodeStream);t.FlateStream=FlateStream;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.Jbig2Stream=void 0;var a=r(132),n=r(144),i=r(130),s=r(150),o=r(2);var Jbig2Stream=/*#__PURE__*/function(_n$DecodeStream2){_inherits(Jbig2Stream,_n$DecodeStream2);function Jbig2Stream(e,t,r){var _this69;_classCallCheck(this,Jbig2Stream);_this69=_callSuper(this,Jbig2Stream,[t]);_this69.stream=e;_this69.dict=e.dict;_this69.maybeLength=t;_this69.params=r;return _this69;}_createClass(Jbig2Stream,[{key:\"bytes\",get:function get(){return(0,o.shadow)(this,\"bytes\",this.stream.getBytes(this.maybeLength));}},{key:\"ensureBuffer\",value:function ensureBuffer(e){}},{key:\"readBlock\",value:function readBlock(){if(this.eof)return;var e=new s.Jbig2Image(),t=[];if(this.params instanceof i.Dict){var _e185=this.params.get(\"JBIG2Globals\");if(_e185 instanceof a.BaseStream){var _r118=_e185.getBytes();t.push({data:_r118,start:0,end:_r118.length});}}t.push({data:this.bytes,start:0,end:this.bytes.length});var r=e.parseChunks(t),n=r.length;for(var _e186=0;_e186<n;_e186++)r[_e186]^=255;this.buffer=r;this.bufferLength=n;this.eof=!0;}}]);return Jbig2Stream;}(n.DecodeStream);t.Jbig2Stream=Jbig2Stream;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.Jbig2Image=void 0;var a=r(2),n=r(131),i=r(151),s=r(147);var Jbig2Error=/*#__PURE__*/function(_a$BaseException5){_inherits(Jbig2Error,_a$BaseException5);function Jbig2Error(e){_classCallCheck(this,Jbig2Error);return _callSuper(this,Jbig2Error,[\"JBIG2 error: \".concat(e),\"Jbig2Error\"]);}return _createClass(Jbig2Error);}(a.BaseException);var ContextCache=/*#__PURE__*/function(){function ContextCache(){_classCallCheck(this,ContextCache);}_createClass(ContextCache,[{key:\"getContexts\",value:function getContexts(e){return e in this?this[e]:this[e]=new Int8Array(65536);}}]);return ContextCache;}();var DecodingContext=/*#__PURE__*/function(){function DecodingContext(e,t,r){_classCallCheck(this,DecodingContext);this.data=e;this.start=t;this.end=r;}_createClass(DecodingContext,[{key:\"decoder\",get:function get(){var e=new i.ArithmeticDecoder(this.data,this.start,this.end);return(0,a.shadow)(this,\"decoder\",e);}},{key:\"contextCache\",get:function get(){var e=new ContextCache();return(0,a.shadow)(this,\"contextCache\",e);}}]);return DecodingContext;}();function decodeInteger(e,t,r){var a=e.getContexts(t);var n=1;function readBits(e){var t=0;for(var _i65=0;_i65<e;_i65++){var _e187=r.readBit(a,n);n=n<256?n<<1|_e187:511&(n<<1|_e187)|256;t=t<<1|_e187;}return t>>>0;}var i=readBits(1),s=readBits(1)?readBits(1)?readBits(1)?readBits(1)?readBits(1)?readBits(32)+4436:readBits(12)+340:readBits(8)+84:readBits(6)+20:readBits(4)+4:readBits(2);return 0===i?s:s>0?-s:null;}function decodeIAID(e,t,r){var a=e.getContexts(\"IAID\");var n=1;for(var _e188=0;_e188<r;_e188++){n=n<<1|t.readBit(a,n);}return r<31?n&(1<<r)-1:2147483647&n;}var o=[\"SymbolDictionary\",null,null,null,\"IntermediateTextRegion\",null,\"ImmediateTextRegion\",\"ImmediateLosslessTextRegion\",null,null,null,null,null,null,null,null,\"PatternDictionary\",null,null,null,\"IntermediateHalftoneRegion\",null,\"ImmediateHalftoneRegion\",\"ImmediateLosslessHalftoneRegion\",null,null,null,null,null,null,null,null,null,null,null,null,\"IntermediateGenericRegion\",null,\"ImmediateGenericRegion\",\"ImmediateLosslessGenericRegion\",\"IntermediateGenericRefinementRegion\",null,\"ImmediateGenericRefinementRegion\",\"ImmediateLosslessGenericRefinementRegion\",null,null,null,null,\"PageInformation\",\"EndOfPage\",\"EndOfStripe\",\"EndOfFile\",\"Profiles\",\"Tables\",null,null,null,null,null,null,null,null,\"Extension\"],c=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],l=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],h=[39717,1941,229,405],u=[32,8];function decodeBitmap(e,t,r,a,n,i,s,o){var _context233;if(e){return decodeMMRBitmap(new Reader(o.data,o.start,o.end),t,r,!1);}if(0===a&&!i&&!n&&4===s.length&&3===s[0].x&&-1===s[0].y&&-3===s[1].x&&-1===s[1].y&&2===s[2].x&&-2===s[2].y&&-2===s[3].x&&-2===s[3].y)return function decodeBitmapTemplate0(e,t,r){var a=r.decoder,n=r.contextCache.getContexts(\"GB\"),i=[];var s,o,c,l,h,u,d;for(o=0;o<t;o++){h=i[o]=new Uint8Array(e);u=o<1?h:i[o-1];d=o<2?h:i[o-2];s=d[0]<<13|d[1]<<12|d[2]<<11|u[0]<<7|u[1]<<6|u[2]<<5|u[3]<<4;for(c=0;c<e;c++){h[c]=l=a.readBit(n,s);s=(31735&s)<<1|(c+3<e?d[c+3]<<11:0)|(c+4<e?u[c+4]<<4:0)|l;}}return i;}(t,r,o);var l=!!i,u=_concatInstanceProperty(_context233=c[a]).call(_context233,s);_sortInstanceProperty(u).call(u,function(e,t){return e.y-t.y||e.x-t.x;});var d=u.length,f=new Int8Array(d),g=new Int8Array(d),p=[];var m,b,y=0,w=0,S=0,x=0;for(b=0;b<d;b++){f[b]=u[b].x;g[b]=u[b].y;w=Math.min(w,u[b].x);S=Math.max(S,u[b].x);x=Math.min(x,u[b].y);b<d-1&&u[b].y===u[b+1].y&&u[b].x===u[b+1].x-1?y|=1<<d-1-b:p.push(b);}var k=p.length,C=new Int8Array(k),v=new Int8Array(k),O=new Uint16Array(k);for(m=0;m<k;m++){b=p[m];C[m]=u[b].x;v[m]=u[b].y;O[m]=1<<d-1-b;}var T=-w,M=-x,E=t-S,D=h[a];var N=new Uint8Array(t);var R=[],L=o.decoder,j=o.contextCache.getContexts(\"GB\");var $,_,U,X,H,q=0,z=0;for(var _e189=0;_e189<r;_e189++){if(n){q^=L.readBit(j,D);if(q){R.push(N);continue;}}N=new Uint8Array(N);R.push(N);for($=0;$<t;$++){if(l&&i[_e189][$]){N[$]=0;continue;}if($>=T&&$<E&&_e189>=M){z=z<<1&y;for(b=0;b<k;b++){_=_e189+v[b];U=$+C[b];X=R[_][U];if(X){X=O[b];z|=X;}}}else{z=0;H=d-1;for(b=0;b<d;b++,H--){U=$+f[b];if(U>=0&&U<t){_=_e189+g[b];if(_>=0){X=R[_][U];X&&(z|=X<<H);}}}}var _r119=L.readBit(j,z);N[$]=_r119;}}return R;}function decodeRefinement(e,t,r,a,n,i,s,o,c){var h=l[r].coding;0===r&&(h=_concatInstanceProperty(h).call(h,[o[0]]));var d=h.length,f=new Int32Array(d),g=new Int32Array(d);var p;for(p=0;p<d;p++){f[p]=h[p].x;g[p]=h[p].y;}var m=l[r].reference;0===r&&(m=_concatInstanceProperty(m).call(m,[o[1]]));var b=m.length,y=new Int32Array(b),w=new Int32Array(b);for(p=0;p<b;p++){y[p]=m[p].x;w[p]=m[p].y;}var S=a[0].length,x=a.length,k=u[r],C=[],v=c.decoder,O=c.contextCache.getContexts(\"GR\");var T=0;for(var _r120=0;_r120<t;_r120++){if(s){T^=v.readBit(O,k);if(T)throw new Jbig2Error(\"prediction is not supported\");}var _t147=new Uint8Array(e);C.push(_t147);for(var _s41=0;_s41<e;_s41++){var _o21=void 0,_c16=void 0,_l15=0;for(p=0;p<d;p++){_o21=_r120+g[p];_c16=_s41+f[p];_o21<0||_c16<0||_c16>=e?_l15<<=1:_l15=_l15<<1|C[_o21][_c16];}for(p=0;p<b;p++){_o21=_r120+w[p]-i;_c16=_s41+y[p]-n;_o21<0||_o21>=x||_c16<0||_c16>=S?_l15<<=1:_l15=_l15<<1|a[_o21][_c16];}var _h7=v.readBit(O,_l15);_t147[_s41]=_h7;}}return C;}function decodeTextRegion(e,t,r,a,n,i,s,o,c,l,h,u,d,f,g,p,m,b,y){if(e&&t)throw new Jbig2Error(\"refinement with Huffman is not supported\");var w=[];var S,x;for(S=0;S<a;S++){x=new Uint8Array(r);if(n)for(var _e190=0;_e190<r;_e190++)x[_e190]=n;w.push(x);}var k=m.decoder,C=m.contextCache;var v=e?-f.tableDeltaT.decode(y):-decodeInteger(C,\"IADT\",k),O=0;S=0;for(;S<i;){v+=e?f.tableDeltaT.decode(y):decodeInteger(C,\"IADT\",k);O+=e?f.tableFirstS.decode(y):decodeInteger(C,\"IAFS\",k);var _a89=O;for(;;){var _n54=0;s>1&&(_n54=e?y.readBits(b):decodeInteger(C,\"IAIT\",k));var _i66=s*v+_n54,_O=e?f.symbolIDTable.decode(y):decodeIAID(C,k,c),T=t&&(e?y.readBit():decodeInteger(C,\"IARI\",k));var M=o[_O],E=M[0].length,D=M.length;if(T){var _e191=decodeInteger(C,\"IARDW\",k),_t148=decodeInteger(C,\"IARDH\",k),_r121=decodeInteger(C,\"IARDX\",k),_a90=decodeInteger(C,\"IARDY\",k);E+=_e191;D+=_t148;M=decodeRefinement(E,D,g,M,(_e191>>1)+_r121,(_t148>>1)+_a90,!1,p,m);}var N=_i66-(1&u?0:D-1),R=_a89-(2&u?E-1:0);var L=void 0,j=void 0,$=void 0;if(l){for(L=0;L<D;L++){x=w[R+L];if(!x)continue;$=M[L];var _e192=Math.min(r-N,E);switch(d){case 0:for(j=0;j<_e192;j++)x[N+j]|=$[j];break;case 2:for(j=0;j<_e192;j++)x[N+j]^=$[j];break;default:throw new Jbig2Error(\"operator \".concat(d,\" is not supported\"));}}_a89+=D-1;}else{for(j=0;j<D;j++){x=w[N+j];if(x){$=M[j];switch(d){case 0:for(L=0;L<E;L++)x[R+L]|=$[L];break;case 2:for(L=0;L<E;L++)x[R+L]^=$[L];break;default:throw new Jbig2Error(\"operator \".concat(d,\" is not supported\"));}}}_a89+=E-1;}S++;var _=e?f.tableDeltaS.decode(y):decodeInteger(C,\"IADS\",k);if(null===_)break;_a89+=_+h;}}return w;}function readSegmentHeader(e,t){var r={};r.number=(0,n.readUint32)(e,t);var a=e[t+4],i=63&a;if(!o[i])throw new Jbig2Error(\"invalid segment type: \"+i);r.type=i;r.typeName=o[i];r.deferredNonRetain=!!(128&a);var s=!!(64&a),c=e[t+5];var l=c>>5&7;var h=[31&c];var u=t+6;if(7===c){l=536870911&(0,n.readUint32)(e,u-1);u+=3;var _t149=l+7>>3;h[0]=e[u++];for(;--_t149>0;)h.push(e[u++]);}else if(5===c||6===c)throw new Jbig2Error(\"invalid referred-to flags\");r.retainBits=h;var f=4;r.number<=256?f=1:r.number<=65536&&(f=2);var g=[];var p,m;for(p=0;p<l;p++){var _t150=void 0;_t150=1===f?e[u]:2===f?(0,n.readUint16)(e,u):(0,n.readUint32)(e,u);g.push(_t150);u+=f;}r.referredTo=g;if(s){r.pageAssociation=(0,n.readUint32)(e,u);u+=4;}else r.pageAssociation=e[u++];r.length=(0,n.readUint32)(e,u);u+=4;if(4294967295===r.length){if(38!==i)throw new Jbig2Error(\"invalid unknown segment length\");{var _t151=readRegionSegmentInformation(e,u),_a91=!!(1&e[u+d]),_n55=6,_i67=new Uint8Array(_n55);if(!_a91){_i67[0]=255;_i67[1]=172;}_i67[2]=_t151.height>>>24&255;_i67[3]=_t151.height>>16&255;_i67[4]=_t151.height>>8&255;_i67[5]=255&_t151.height;for(p=u,m=e.length;p<m;p++){var _t152=0;for(;_t152<_n55&&_i67[_t152]===e[p+_t152];)_t152++;if(_t152===_n55){r.length=p+_n55;break;}}if(4294967295===r.length)throw new Jbig2Error(\"segment end was not found\");}}r.headerEnd=u;return r;}function readSegments(e,t,r,a){var n=[];var i=r;for(;i<a;){var _r122=readSegmentHeader(t,i);i=_r122.headerEnd;var _a92={header:_r122,data:t};if(!e.randomAccess){_a92.start=i;i+=_r122.length;_a92.end=i;}n.push(_a92);if(51===_r122.type)break;}if(e.randomAccess)for(var _e193=0,_t153=n.length;_e193<_t153;_e193++){n[_e193].start=i;i+=n[_e193].header.length;n[_e193].end=i;}return n;}function readRegionSegmentInformation(e,t){return{width:(0,n.readUint32)(e,t),height:(0,n.readUint32)(e,t+4),x:(0,n.readUint32)(e,t+8),y:(0,n.readUint32)(e,t+12),combinationOperator:7&e[t+16]};}var d=17;function processSegment(e,t){var _context234;var r=e.header,a=e.data,i=e.end;var s,o,c,l,h=e.start;switch(r.type){case 0:var _e194={},_t154=(0,n.readUint16)(a,h);_e194.huffman=!!(1&_t154);_e194.refinement=!!(2&_t154);_e194.huffmanDHSelector=_t154>>2&3;_e194.huffmanDWSelector=_t154>>4&3;_e194.bitmapSizeSelector=_t154>>6&1;_e194.aggregationInstancesSelector=_t154>>7&1;_e194.bitmapCodingContextUsed=!!(256&_t154);_e194.bitmapCodingContextRetained=!!(512&_t154);_e194.template=_t154>>10&3;_e194.refinementTemplate=_t154>>12&1;h+=2;if(!_e194.huffman){l=0===_e194.template?4:1;o=[];for(c=0;c<l;c++){o.push({x:(0,n.readInt8)(a,h),y:(0,n.readInt8)(a,h+1)});h+=2;}_e194.at=o;}if(_e194.refinement&&!_e194.refinementTemplate){o=[];for(c=0;c<2;c++){o.push({x:(0,n.readInt8)(a,h),y:(0,n.readInt8)(a,h+1)});h+=2;}_e194.refinementAt=o;}_e194.numberOfExportedSymbols=(0,n.readUint32)(a,h);h+=4;_e194.numberOfNewSymbols=(0,n.readUint32)(a,h);h+=4;s=[_e194,r.number,r.referredTo,a,h,i];break;case 6:case 7:var _u4={};_u4.info=readRegionSegmentInformation(a,h);h+=d;var _f3=(0,n.readUint16)(a,h);h+=2;_u4.huffman=!!(1&_f3);_u4.refinement=!!(2&_f3);_u4.logStripSize=_f3>>2&3;_u4.stripSize=1<<_u4.logStripSize;_u4.referenceCorner=_f3>>4&3;_u4.transposed=!!(64&_f3);_u4.combinationOperator=_f3>>7&3;_u4.defaultPixelValue=_f3>>9&1;_u4.dsOffset=_f3<<17>>27;_u4.refinementTemplate=_f3>>15&1;if(_u4.huffman){var _e195=(0,n.readUint16)(a,h);h+=2;_u4.huffmanFS=3&_e195;_u4.huffmanDS=_e195>>2&3;_u4.huffmanDT=_e195>>4&3;_u4.huffmanRefinementDW=_e195>>6&3;_u4.huffmanRefinementDH=_e195>>8&3;_u4.huffmanRefinementDX=_e195>>10&3;_u4.huffmanRefinementDY=_e195>>12&3;_u4.huffmanRefinementSizeSelector=!!(16384&_e195);}if(_u4.refinement&&!_u4.refinementTemplate){o=[];for(c=0;c<2;c++){o.push({x:(0,n.readInt8)(a,h),y:(0,n.readInt8)(a,h+1)});h+=2;}_u4.refinementAt=o;}_u4.numberOfSymbolInstances=(0,n.readUint32)(a,h);h+=4;s=[_u4,r.referredTo,a,h,i];break;case 16:var _g6={},_p3=a[h++];_g6.mmr=!!(1&_p3);_g6.template=_p3>>1&3;_g6.patternWidth=a[h++];_g6.patternHeight=a[h++];_g6.maxPatternIndex=(0,n.readUint32)(a,h);h+=4;s=[_g6,r.number,a,h,i];break;case 22:case 23:var _m2={};_m2.info=readRegionSegmentInformation(a,h);h+=d;var b=a[h++];_m2.mmr=!!(1&b);_m2.template=b>>1&3;_m2.enableSkip=!!(8&b);_m2.combinationOperator=b>>4&7;_m2.defaultPixelValue=b>>7&1;_m2.gridWidth=(0,n.readUint32)(a,h);h+=4;_m2.gridHeight=(0,n.readUint32)(a,h);h+=4;_m2.gridOffsetX=4294967295&(0,n.readUint32)(a,h);h+=4;_m2.gridOffsetY=4294967295&(0,n.readUint32)(a,h);h+=4;_m2.gridVectorX=(0,n.readUint16)(a,h);h+=2;_m2.gridVectorY=(0,n.readUint16)(a,h);h+=2;s=[_m2,r.referredTo,a,h,i];break;case 38:case 39:var y={};y.info=readRegionSegmentInformation(a,h);h+=d;var w=a[h++];y.mmr=!!(1&w);y.template=w>>1&3;y.prediction=!!(8&w);if(!y.mmr){l=0===y.template?4:1;o=[];for(c=0;c<l;c++){o.push({x:(0,n.readInt8)(a,h),y:(0,n.readInt8)(a,h+1)});h+=2;}y.at=o;}s=[y,a,h,i];break;case 48:var S={width:(0,n.readUint32)(a,h),height:(0,n.readUint32)(a,h+4),resolutionX:(0,n.readUint32)(a,h+8),resolutionY:(0,n.readUint32)(a,h+12)};4294967295===S.height&&delete S.height;var x=a[h+16];(0,n.readUint16)(a,h+17);S.lossless=!!(1&x);S.refinement=!!(2&x);S.defaultPixelValue=x>>2&1;S.combinationOperator=x>>3&3;S.requiresBuffer=!!(32&x);S.combinationOperatorOverride=!!(64&x);s=[S];break;case 49:case 50:case 51:case 62:break;case 53:s=[r.number,a,h,i];break;default:throw new Jbig2Error(_concatInstanceProperty(_context234=\"segment type \".concat(r.typeName,\"(\")).call(_context234,r.type,\") is not implemented\"));}var u=\"on\"+r.typeName;u in t&&t[u].apply(t,s);}function processSegments(e,t){for(var _r123=0,_a93=e.length;_r123<_a93;_r123++)processSegment(e[_r123],t);}var SimpleSegmentVisitor=/*#__PURE__*/function(){function SimpleSegmentVisitor(){_classCallCheck(this,SimpleSegmentVisitor);}_createClass(SimpleSegmentVisitor,[{key:\"onPageInformation\",value:function onPageInformation(e){this.currentPageInfo=e;var t=e.width+7>>3,r=new Uint8ClampedArray(t*e.height);e.defaultPixelValue&&_fillInstanceProperty(r).call(r,255);this.buffer=r;}},{key:\"drawBitmap\",value:function drawBitmap(e,t){var r=this.currentPageInfo,a=e.width,n=e.height,i=r.width+7>>3,s=r.combinationOperatorOverride?e.combinationOperator:r.combinationOperator,o=this.buffer,c=128>>(7&e.x);var l,h,u,d,f=e.y*i+(e.x>>3);switch(s){case 0:for(l=0;l<n;l++){u=c;d=f;for(h=0;h<a;h++){t[l][h]&&(o[d]|=u);u>>=1;if(!u){u=128;d++;}}f+=i;}break;case 2:for(l=0;l<n;l++){u=c;d=f;for(h=0;h<a;h++){t[l][h]&&(o[d]^=u);u>>=1;if(!u){u=128;d++;}}f+=i;}break;default:throw new Jbig2Error(\"operator \".concat(s,\" is not supported\"));}}},{key:\"onImmediateGenericRegion\",value:function onImmediateGenericRegion(e,t,r,a){var n=e.info,i=new DecodingContext(t,r,a),s=decodeBitmap(e.mmr,n.width,n.height,e.template,e.prediction,null,e.at,i);this.drawBitmap(n,s);}},{key:\"onImmediateLosslessGenericRegion\",value:function onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion.apply(this,arguments);}},{key:\"onSymbolDictionary\",value:function onSymbolDictionary(e,t,r,a,i,s){var o,c;if(e.huffman){o=function getSymbolDictionaryHuffmanTables(e,t,r){var a,n,i,s,o=0;switch(e.huffmanDHSelector){case 0:case 1:a=getStandardTable(e.huffmanDHSelector+4);break;case 3:a=getCustomHuffmanTable(o,t,r);o++;break;default:throw new Jbig2Error(\"invalid Huffman DH selector\");}switch(e.huffmanDWSelector){case 0:case 1:n=getStandardTable(e.huffmanDWSelector+2);break;case 3:n=getCustomHuffmanTable(o,t,r);o++;break;default:throw new Jbig2Error(\"invalid Huffman DW selector\");}if(e.bitmapSizeSelector){i=getCustomHuffmanTable(o,t,r);o++;}else i=getStandardTable(1);s=e.aggregationInstancesSelector?getCustomHuffmanTable(o,t,r):getStandardTable(1);return{tableDeltaHeight:a,tableDeltaWidth:n,tableBitmapSize:i,tableAggregateInstances:s};}(e,r,this.customTables);c=new Reader(a,i,s);}var l=this.symbols;l||(this.symbols=l={});var h=[];var _iterator72=_createForOfIteratorHelper(r),_step72;try{for(_iterator72.s();!(_step72=_iterator72.n()).done;){var _e200=_step72.value;var _t158=l[_e200];_t158&&h.push.apply(h,_toConsumableArray(_t158));}}catch(err){_iterator72.e(err);}finally{_iterator72.f();}var u=new DecodingContext(a,i,s);l[t]=function decodeSymbolDictionary(e,t,r,a,i,s,o,c,l,h,u,d){if(e&&t)throw new Jbig2Error(\"symbol refinement with Huffman is not supported\");var f=[];var g=0,p=(0,n.log2)(r.length+a);var m=u.decoder,b=u.contextCache;var y,w;if(e){y=getStandardTable(1);w=[];p=Math.max(p,1);}for(;f.length<a;){g+=e?s.tableDeltaHeight.decode(d):decodeInteger(b,\"IADH\",m);var _a94=0,_n56=0;var _i68=e?w.length:0;for(;;){var _i69=e?s.tableDeltaWidth.decode(d):decodeInteger(b,\"IADW\",m);if(null===_i69)break;_a94+=_i69;_n56+=_a94;var _y=void 0;if(t){var _n57=decodeInteger(b,\"IAAI\",m);if(_n57>1)_y=decodeTextRegion(e,t,_a94,g,0,_n57,1,_concatInstanceProperty(r).call(r,f),p,0,0,1,0,s,l,h,u,0,d);else{var _e196=decodeIAID(b,m,p),_t155=decodeInteger(b,\"IARDX\",m),_n58=decodeInteger(b,\"IARDY\",m);_y=decodeRefinement(_a94,g,l,_e196<r.length?r[_e196]:f[_e196-r.length],_t155,_n58,!1,h,u);}f.push(_y);}else if(e)w.push(_a94);else{_y=decodeBitmap(!1,_a94,g,o,!1,null,c,u);f.push(_y);}}if(e&&!t){var _e197=s.tableBitmapSize.decode(d);d.byteAlign();var _t156=void 0;if(0===_e197)_t156=readUncompressedBitmap(d,_n56,g);else{var _r124=d.end,_a95=d.position+_e197;d.end=_a95;_t156=decodeMMRBitmap(d,_n56,g,!1);d.end=_r124;d.position=_a95;}var _r125=w.length;if(_i68===_r125-1)f.push(_t156);else{var _e198=void 0,_a96=void 0,_n59=void 0,_s42=void 0,_o22=void 0,_c17=0;for(_e198=_i68;_e198<_r125;_e198++){_s42=w[_e198];_n59=_c17+_s42;_o22=[];for(_a96=0;_a96<g;_a96++)_o22.push(_t156[_a96].subarray(_c17,_n59));f.push(_o22);_c17=_n59;}}}}var S=[],x=[];var k,C,v=!1;var O=r.length+a;for(;x.length<O;){var _t157=e?y.decode(d):decodeInteger(b,\"IAEX\",m);for(;_t157--;)x.push(v);v=!v;}for(k=0,C=r.length;k<C;k++)x[k]&&S.push(r[k]);for(var _e199=0;_e199<a;k++,_e199++)x[k]&&S.push(f[_e199]);return S;}(e.huffman,e.refinement,h,e.numberOfNewSymbols,e.numberOfExportedSymbols,o,e.template,e.at,e.refinementTemplate,e.refinementAt,u,c);}},{key:\"onImmediateTextRegion\",value:function onImmediateTextRegion(e,t,r,a,i){var s=e.info;var o,c;var l=this.symbols,h=[];var _iterator73=_createForOfIteratorHelper(t),_step73;try{for(_iterator73.s();!(_step73=_iterator73.n()).done;){var _e203=_step73.value;var _t161=l[_e203];_t161&&h.push.apply(h,_toConsumableArray(_t161));}}catch(err){_iterator73.e(err);}finally{_iterator73.f();}var u=(0,n.log2)(h.length);if(e.huffman){c=new Reader(r,a,i);o=function getTextRegionHuffmanTables(e,t,r,a,n){var i=[];for(var _e201=0;_e201<=34;_e201++){var _t159=n.readBits(4);i.push(new HuffmanLine([_e201,_t159,0,0]));}var s=new HuffmanTable(i,!1);i.length=0;for(var _e202=0;_e202<a;){var _t160=s.decode(n);if(_t160>=32){var _r126=void 0,_a97=void 0,_s43=void 0;switch(_t160){case 32:if(0===_e202)throw new Jbig2Error(\"no previous value in symbol ID table\");_a97=n.readBits(2)+3;_r126=i[_e202-1].prefixLength;break;case 33:_a97=n.readBits(3)+3;_r126=0;break;case 34:_a97=n.readBits(7)+11;_r126=0;break;default:throw new Jbig2Error(\"invalid code length in symbol ID table\");}for(_s43=0;_s43<_a97;_s43++){i.push(new HuffmanLine([_e202,_r126,0,0]));_e202++;}}else{i.push(new HuffmanLine([_e202,_t160,0,0]));_e202++;}}n.byteAlign();var o=new HuffmanTable(i,!1);var c,l,h,u=0;switch(e.huffmanFS){case 0:case 1:c=getStandardTable(e.huffmanFS+6);break;case 3:c=getCustomHuffmanTable(u,t,r);u++;break;default:throw new Jbig2Error(\"invalid Huffman FS selector\");}switch(e.huffmanDS){case 0:case 1:case 2:l=getStandardTable(e.huffmanDS+8);break;case 3:l=getCustomHuffmanTable(u,t,r);u++;break;default:throw new Jbig2Error(\"invalid Huffman DS selector\");}switch(e.huffmanDT){case 0:case 1:case 2:h=getStandardTable(e.huffmanDT+11);break;case 3:h=getCustomHuffmanTable(u,t,r);u++;break;default:throw new Jbig2Error(\"invalid Huffman DT selector\");}if(e.refinement)throw new Jbig2Error(\"refinement with Huffman is not supported\");return{symbolIDTable:o,tableFirstS:c,tableDeltaS:l,tableDeltaT:h};}(e,t,this.customTables,h.length,c);}var d=new DecodingContext(r,a,i),f=decodeTextRegion(e.huffman,e.refinement,s.width,s.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,h,u,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,o,e.refinementTemplate,e.refinementAt,d,e.logStripSize,c);this.drawBitmap(s,f);}},{key:\"onImmediateLosslessTextRegion\",value:function onImmediateLosslessTextRegion(){this.onImmediateTextRegion.apply(this,arguments);}},{key:\"onPatternDictionary\",value:function onPatternDictionary(e,t,r,a,n){var i=this.patterns;i||(this.patterns=i={});var s=new DecodingContext(r,a,n);i[t]=function decodePatternDictionary(e,t,r,a,n,i){var s=[];if(!e){s.push({x:-t,y:0});0===n&&s.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2});}var o=decodeBitmap(e,(a+1)*t,r,n,!1,null,s,i),c=[];for(var _e204=0;_e204<=a;_e204++){var _a98=[],_n60=t*_e204,_i70=_n60+t;for(var _e205=0;_e205<r;_e205++)_a98.push(o[_e205].subarray(_n60,_i70));c.push(_a98);}return c;}(e.mmr,e.patternWidth,e.patternHeight,e.maxPatternIndex,e.template,s);}},{key:\"onImmediateHalftoneRegion\",value:function onImmediateHalftoneRegion(e,t,r,a,i){var s=this.patterns[t[0]],o=e.info,c=new DecodingContext(r,a,i),l=function decodeHalftoneRegion(e,t,r,a,i,s,o,c,l,h,u,d,f,g,p){if(o)throw new Jbig2Error(\"skip is not supported\");if(0!==c)throw new Jbig2Error(\"operator \\\"\".concat(c,\"\\\" is not supported in halftone region\"));var m=[];var b,y,w;for(b=0;b<i;b++){w=new Uint8Array(a);if(s)for(y=0;y<a;y++)w[y]=s;m.push(w);}var S=t.length,x=t[0],k=x[0].length,C=x.length,v=(0,n.log2)(S),O=[];if(!e){O.push({x:r<=1?3:2,y:-1});0===r&&O.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2});}var T=[];var M,E,D,N,R,L,j,$,_,U,X;e&&(M=new Reader(p.data,p.start,p.end));for(b=v-1;b>=0;b--){E=e?decodeMMRBitmap(M,l,h,!0):decodeBitmap(!1,l,h,r,!1,null,O,p);T[b]=E;}for(D=0;D<h;D++)for(N=0;N<l;N++){R=0;L=0;for(y=v-1;y>=0;y--){R^=T[y][D][N];L|=R<<y;}j=t[L];$=u+D*g+N*f>>8;_=d+D*f-N*g>>8;if($>=0&&$+k<=a&&_>=0&&_+C<=i)for(b=0;b<C;b++){X=m[_+b];U=j[b];for(y=0;y<k;y++)X[$+y]|=U[y];}else{var _e206=void 0,_t162=void 0;for(b=0;b<C;b++){_t162=_+b;if(!(_t162<0||_t162>=i)){X=m[_t162];U=j[b];for(y=0;y<k;y++){_e206=$+y;_e206>=0&&_e206<a&&(X[_e206]|=U[y]);}}}}}return m;}(e.mmr,s,e.template,o.width,o.height,e.defaultPixelValue,e.enableSkip,e.combinationOperator,e.gridWidth,e.gridHeight,e.gridOffsetX,e.gridOffsetY,e.gridVectorX,e.gridVectorY,c);this.drawBitmap(o,l);}},{key:\"onImmediateLosslessHalftoneRegion\",value:function onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion.apply(this,arguments);}},{key:\"onTables\",value:function onTables(e,t,r,a){var i=this.customTables;i||(this.customTables=i={});i[e]=function decodeTablesSegment(e,t,r){var a=e[t],i=4294967295&(0,n.readUint32)(e,t+1),s=4294967295&(0,n.readUint32)(e,t+5),o=new Reader(e,t+9,r),c=1+(a>>1&7),l=1+(a>>4&7),h=[];var u,d,f=i;do{u=o.readBits(c);d=o.readBits(l);h.push(new HuffmanLine([f,u,d,0]));f+=1<<d;}while(f<s);u=o.readBits(c);h.push(new HuffmanLine([i-1,u,32,0,\"lower\"]));u=o.readBits(c);h.push(new HuffmanLine([s,u,32,0]));if(1&a){u=o.readBits(c);h.push(new HuffmanLine([u,0]));}return new HuffmanTable(h,!1);}(t,r,a);}}]);return SimpleSegmentVisitor;}();var HuffmanLine=/*#__PURE__*/_createClass(function HuffmanLine(e){_classCallCheck(this,HuffmanLine);if(2===e.length){this.isOOB=!0;this.rangeLow=0;this.prefixLength=e[0];this.rangeLength=0;this.prefixCode=e[1];this.isLowerRange=!1;}else{this.isOOB=!1;this.rangeLow=e[0];this.prefixLength=e[1];this.rangeLength=e[2];this.prefixCode=e[3];this.isLowerRange=\"lower\"===e[4];}});var HuffmanTreeNode=/*#__PURE__*/function(){function HuffmanTreeNode(e){_classCallCheck(this,HuffmanTreeNode);this.children=[];if(e){this.isLeaf=!0;this.rangeLength=e.rangeLength;this.rangeLow=e.rangeLow;this.isLowerRange=e.isLowerRange;this.isOOB=e.isOOB;}else this.isLeaf=!1;}_createClass(HuffmanTreeNode,[{key:\"buildTree\",value:function buildTree(e,t){var r=e.prefixCode>>t&1;if(t<=0)this.children[r]=new HuffmanTreeNode(e);else{var _a99=this.children[r];_a99||(this.children[r]=_a99=new HuffmanTreeNode(null));_a99.buildTree(e,t-1);}}},{key:\"decodeNode\",value:function decodeNode(e){if(this.isLeaf){if(this.isOOB)return null;var _t163=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-_t163:_t163);}var t=this.children[e.readBit()];if(!t)throw new Jbig2Error(\"invalid Huffman data\");return t.decodeNode(e);}}]);return HuffmanTreeNode;}();var HuffmanTable=/*#__PURE__*/function(){function HuffmanTable(e,t){_classCallCheck(this,HuffmanTable);t||this.assignPrefixCodes(e);this.rootNode=new HuffmanTreeNode(null);for(var _t164=0,_r127=e.length;_t164<_r127;_t164++){var _r128=e[_t164];_r128.prefixLength>0&&this.rootNode.buildTree(_r128,_r128.prefixLength-1);}}_createClass(HuffmanTable,[{key:\"decode\",value:function decode(e){return this.rootNode.decodeNode(e);}},{key:\"assignPrefixCodes\",value:function assignPrefixCodes(e){var t=e.length;var r=0;for(var _a100=0;_a100<t;_a100++)r=Math.max(r,e[_a100].prefixLength);var a=new Uint32Array(r+1);for(var _r129=0;_r129<t;_r129++)a[e[_r129].prefixLength]++;var n,i,s,o=1,c=0;a[0]=0;for(;o<=r;){c=c+a[o-1]<<1;n=c;i=0;for(;i<t;){s=e[i];if(s.prefixLength===o){s.prefixCode=n;n++;}i++;}o++;}}}]);return HuffmanTable;}();var f={};function getStandardTable(e){var t,r=f[e];if(r)return r;switch(e){case 1:t=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:t=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:t=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,\"lower\"],[75,7,32,126],[6,62]];break;case 4:t=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:t=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,\"lower\"],[76,6,32,62]];break;case 6:t=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,\"lower\"],[2048,6,32,63]];break;case 7:t=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,\"lower\"],[2048,5,32,31]];break;case 8:t=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,\"lower\"],[1670,9,32,511],[2,1]];break;case 9:t=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,\"lower\"],[3339,9,32,511],[2,0]];break;case 10:t=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,\"lower\"],[4166,8,32,255],[2,2]];break;case 11:t=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:t=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:t=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:t=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:t=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,\"lower\"],[25,7,32,127]];break;default:throw new Jbig2Error(\"standard table B.\".concat(e,\" does not exist\"));}for(var _e207=0,_r130=t.length;_e207<_r130;_e207++)t[_e207]=new HuffmanLine(t[_e207]);r=new HuffmanTable(t,!0);f[e]=r;return r;}var Reader=/*#__PURE__*/function(){function Reader(e,t,r){_classCallCheck(this,Reader);this.data=e;this.start=t;this.end=r;this.position=t;this.shift=-1;this.currentByte=0;}_createClass(Reader,[{key:\"readBit\",value:function readBit(){if(this.shift<0){if(this.position>=this.end)throw new Jbig2Error(\"end of data while reading bit\");this.currentByte=this.data[this.position++];this.shift=7;}var e=this.currentByte>>this.shift&1;this.shift--;return e;}},{key:\"readBits\",value:function readBits(e){var t,r=0;for(t=e-1;t>=0;t--)r|=this.readBit()<<t;return r;}},{key:\"byteAlign\",value:function byteAlign(){this.shift=-1;}},{key:\"next\",value:function next(){return this.position>=this.end?-1:this.data[this.position++];}}]);return Reader;}();function getCustomHuffmanTable(e,t,r){var a=0;for(var _n61=0,_i71=t.length;_n61<_i71;_n61++){var _i72=r[t[_n61]];if(_i72){if(e===a)return _i72;a++;}}throw new Jbig2Error(\"can't find custom Huffman table\");}function readUncompressedBitmap(e,t,r){var a=[];for(var _n62=0;_n62<r;_n62++){var _r131=new Uint8Array(t);a.push(_r131);for(var _a101=0;_a101<t;_a101++)_r131[_a101]=e.readBit();e.byteAlign();}return a;}function decodeMMRBitmap(e,t,r,a){var n={K:-1,Columns:t,Rows:r,BlackIs1:!0,EndOfBlock:a},i=new s.CCITTFaxDecoder(e,n),o=[];var c,l=!1;for(var _e208=0;_e208<r;_e208++){var _e209=new Uint8Array(t);o.push(_e209);var _r132=-1;for(var _a102=0;_a102<t;_a102++){if(_r132<0){c=i.readNextChar();if(-1===c){c=0;l=!0;}_r132=7;}_e209[_a102]=c>>_r132&1;_r132--;}}if(a&&!l){var _e210=5;for(var _t165=0;_t165<_e210&&-1!==i.readNextChar();_t165++);}return o;}t.Jbig2Image=/*#__PURE__*/function(){function Jbig2Image(){_classCallCheck(this,Jbig2Image);}_createClass(Jbig2Image,[{key:\"parseChunks\",value:function parseChunks(e){return function parseJbig2Chunks(e){var t=new SimpleSegmentVisitor();for(var _r133=0,_a103=e.length;_r133<_a103;_r133++){var _a104=e[_r133];processSegments(readSegments({},_a104.data,_a104.start,_a104.end),t);}return t.buffer;}(e);}},{key:\"parse\",value:function parse(e){throw new Error(\"Not implemented: Jbig2Image.parse\");}}]);return Jbig2Image;}();},function(e,t){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.ArithmeticDecoder=void 0;var r=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];t.ArithmeticDecoder=/*#__PURE__*/function(){function ArithmeticDecoder(e,t,r){_classCallCheck(this,ArithmeticDecoder);this.data=e;this.bp=t;this.dataEnd=r;this.chigh=e[t];this.clow=0;this.byteIn();this.chigh=this.chigh<<7&65535|this.clow>>9&127;this.clow=this.clow<<7&65535;this.ct-=7;this.a=32768;}_createClass(ArithmeticDecoder,[{key:\"byteIn\",value:function byteIn(){var e=this.data;var t=this.bp;if(255===e[t]){if(e[t+1]>143){this.clow+=65280;this.ct=8;}else{t++;this.clow+=e[t]<<9;this.ct=7;this.bp=t;}}else{t++;this.clow+=t<this.dataEnd?e[t]<<8:65280;this.ct=8;this.bp=t;}if(this.clow>65535){this.chigh+=this.clow>>16;this.clow&=65535;}}},{key:\"readBit\",value:function readBit(e,t){var a=e[t]>>1,n=1&e[t];var i=r[a],s=i.qe;var o,c=this.a-s;if(this.chigh<s){if(c<s){c=s;o=n;a=i.nmps;}else{c=s;o=1^n;1===i.switchFlag&&(n=o);a=i.nlps;}}else{this.chigh-=s;if(0!=(32768&c)){this.a=c;return n;}if(c<s){o=1^n;1===i.switchFlag&&(n=o);a=i.nlps;}else{o=n;a=i.nmps;}}do{0===this.ct&&this.byteIn();c<<=1;this.chigh=this.chigh<<1&65535|this.clow>>15&1;this.clow=this.clow<<1&65535;this.ct--;}while(0==(32768&c));this.a=c;e[t]=a<<1|n;return o;}}]);return ArithmeticDecoder;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.JpegStream=void 0;var a=r(144),n=r(130),i=r(153),s=r(2);var JpegStream=/*#__PURE__*/function(_a$DecodeStream4){_inherits(JpegStream,_a$DecodeStream4);function JpegStream(e,t,r){var _this70;_classCallCheck(this,JpegStream);var a;for(;-1!==(a=e.getByte());)if(255===a){e.skip(-1);break;}_this70=_callSuper(this,JpegStream,[t]);_this70.stream=e;_this70.dict=e.dict;_this70.maybeLength=t;_this70.params=r;return _this70;}_createClass(JpegStream,[{key:\"bytes\",get:function get(){return(0,s.shadow)(this,\"bytes\",this.stream.getBytes(this.maybeLength));}},{key:\"ensureBuffer\",value:function ensureBuffer(e){}},{key:\"readBlock\",value:function readBlock(){if(this.eof)return;var e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray(\"D\",\"Decode\");if(this.forceRGB&&Array.isArray(t)){var _r134=this.dict.get(\"BPC\",\"BitsPerComponent\")||8,_a105=t.length,_n63=new Int32Array(_a105);var _i73=!1;var _s44=(1<<_r134)-1;for(var _e211=0;_e211<_a105;_e211+=2){_n63[_e211]=256*(t[_e211+1]-t[_e211])|0;_n63[_e211+1]=t[_e211]*_s44|0;256===_n63[_e211]&&0===_n63[_e211+1]||(_i73=!0);}_i73&&(e.decodeTransform=_n63);}if(this.params instanceof n.Dict){var _t166=this.params.get(\"ColorTransform\");_Number$isInteger(_t166)&&(e.colorTransform=_t166);}var r=new i.JpegImage(e);r.parse(this.bytes);var a=r.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=a;this.bufferLength=a.length;this.eof=!0;}}]);return JpegStream;}(a.DecodeStream);t.JpegStream=JpegStream;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.JpegImage=void 0;var a=r(2),n=r(131);var JpegError=/*#__PURE__*/function(_a$BaseException6){_inherits(JpegError,_a$BaseException6);function JpegError(e){_classCallCheck(this,JpegError);return _callSuper(this,JpegError,[\"JPEG error: \".concat(e),\"JpegError\"]);}return _createClass(JpegError);}(a.BaseException);var DNLMarkerError=/*#__PURE__*/function(_a$BaseException7){_inherits(DNLMarkerError,_a$BaseException7);function DNLMarkerError(e,t){var _this71;_classCallCheck(this,DNLMarkerError);_this71=_callSuper(this,DNLMarkerError,[e,\"DNLMarkerError\"]);_this71.scanLines=t;return _this71;}return _createClass(DNLMarkerError);}(a.BaseException);var EOIMarkerError=/*#__PURE__*/function(_a$BaseException8){_inherits(EOIMarkerError,_a$BaseException8);function EOIMarkerError(e){_classCallCheck(this,EOIMarkerError);return _callSuper(this,EOIMarkerError,[e,\"EOIMarkerError\"]);}return _createClass(EOIMarkerError);}(a.BaseException);var i=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),s=4017,o=799,c=3406,l=2276,h=1567,u=3784,d=5793,f=2896;function buildHuffmanTable(e,t){var r,a,n=0,i=16;for(;i>0&&!e[i-1];)i--;var s=[{children:[],index:0}];var o,c=s[0];for(r=0;r<i;r++){for(a=0;a<e[r];a++){c=s.pop();c.children[c.index]=t[n];for(;c.index>0;)c=s.pop();c.index++;s.push(c);for(;s.length<=r;){s.push(o={children:[],index:0});c.children[c.index]=o.children;c=o;}n++;}if(r+1<i){s.push(o={children:[],index:0});c.children[c.index]=o.children;c=o;}}return s[0].children;}function getBlockBufferOffset(e,t,r){return 64*((e.blocksPerLine+1)*t+r);}function decodeScan(e,t,r,s,o,c,l,h,u){var d=arguments.length>9&&void 0!==arguments[9]&&arguments[9];var f=r.mcusPerLine,g=r.progressive,p=t;var m=0,b=0;function readBit(){if(b>0){b--;return m>>b&1;}m=e[t++];if(255===m){var _a106=e[t++];if(_a106){if(220===_a106&&d){t+=2;var _a107=(0,n.readUint16)(e,t);t+=2;if(_a107>0&&_a107!==r.scanLines)throw new DNLMarkerError(\"Found DNL marker (0xFFDC) while parsing scan data\",_a107);}else if(217===_a106){if(d){var _e212=x*(8===r.precision?8:0);if(_e212>0&&Math.round(r.scanLines/_e212)>=10)throw new DNLMarkerError(\"Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter\",_e212);}throw new EOIMarkerError(\"Found EOI marker (0xFFD9) while parsing scan data\");}throw new JpegError(\"unexpected marker \".concat((m<<8|_a106).toString(16)));}}b=7;return m>>>7;}function decodeHuffman(e){var t=e;for(;;){t=t[readBit()];switch(_typeof(t)){case\"number\":return t;case\"object\":continue;}throw new JpegError(\"invalid huffman sequence\");}}function receive(e){var t=0;for(;e>0;){t=t<<1|readBit();e--;}return t;}function receiveAndExtend(e){if(1===e)return 1===readBit()?1:-1;var t=receive(e);return t>=1<<e-1?t:t+(-1<<e)+1;}function decodeBaseline(e,t){var r=decodeHuffman(e.huffmanTableDC),a=0===r?0:receiveAndExtend(r);e.blockData[t]=e.pred+=a;var n=1;for(;n<64;){var _r135=decodeHuffman(e.huffmanTableAC),_a108=15&_r135,_s45=_r135>>4;if(0===_a108){if(_s45<15)break;n+=16;continue;}n+=_s45;var _o23=i[n];e.blockData[t+_o23]=receiveAndExtend(_a108);n++;}}function decodeDCFirst(e,t){var r=decodeHuffman(e.huffmanTableDC),a=0===r?0:receiveAndExtend(r)<<u;e.blockData[t]=e.pred+=a;}function decodeDCSuccessive(e,t){e.blockData[t]|=readBit()<<u;}var y=0;function decodeACFirst(e,t){if(y>0){y--;return;}var r=c;var a=l;for(;r<=a;){var _a109=decodeHuffman(e.huffmanTableAC),_n64=15&_a109,_s46=_a109>>4;if(0===_n64){if(_s46<15){y=receive(_s46)+(1<<_s46)-1;break;}r+=16;continue;}r+=_s46;var _o24=i[r];e.blockData[t+_o24]=receiveAndExtend(_n64)*(1<<u);r++;}}var w,S=0;function decodeACSuccessive(e,t){var r=c;var a=l;var n,s,o=0;for(;r<=a;){var _a110=t+i[r],_c18=e.blockData[_a110]<0?-1:1;switch(S){case 0:s=decodeHuffman(e.huffmanTableAC);n=15&s;o=s>>4;if(0===n){if(o<15){y=receive(o)+(1<<o);S=4;}else{o=16;S=1;}}else{if(1!==n)throw new JpegError(\"invalid ACn encoding\");w=receiveAndExtend(n);S=o?2:3;}continue;case 1:case 2:if(e.blockData[_a110])e.blockData[_a110]+=_c18*(readBit()<<u);else{o--;0===o&&(S=2===S?3:0);}break;case 3:if(e.blockData[_a110])e.blockData[_a110]+=_c18*(readBit()<<u);else{e.blockData[_a110]=w<<u;S=0;}break;case 4:e.blockData[_a110]&&(e.blockData[_a110]+=_c18*(readBit()<<u));}r++;}if(4===S){y--;0===y&&(S=0);}}var x=0;function decodeMcu(e,t,r,a,n){var i=r%f;x=(r/f|0)*e.v+a;var s=i*e.h+n;t(e,getBlockBufferOffset(e,x,s));}function decodeBlock(e,t,r){x=r/e.blocksPerLine|0;var a=r%e.blocksPerLine;t(e,getBlockBufferOffset(e,x,a));}var k=s.length;var C,v,O,T,M,E;E=g?0===c?0===h?decodeDCFirst:decodeDCSuccessive:0===h?decodeACFirst:decodeACSuccessive:decodeBaseline;var D,N,R,L,j=0;N=1===k?s[0].blocksPerLine*s[0].blocksPerColumn:f*r.mcusPerColumn;for(;j<=N;){var _r136=o?Math.min(N-j,o):N;if(_r136>0){for(v=0;v<k;v++)s[v].pred=0;y=0;if(1===k){C=s[0];for(M=0;M<_r136;M++){decodeBlock(C,E,j);j++;}}else for(M=0;M<_r136;M++){for(v=0;v<k;v++){C=s[v];R=C.h;L=C.v;for(O=0;O<L;O++)for(T=0;T<R;T++)decodeMcu(C,E,j,O,T);}j++;}}b=0;D=findNextFileMarker(e,t);if(!D)break;if(D.invalid){var _context235;var _e213=_r136>0?\"unexpected\":\"excessive\";(0,a.warn)(_concatInstanceProperty(_context235=\"decodeScan - \".concat(_e213,\" MCU data, current marker is: \")).call(_context235,D.invalid));t=D.offset;}if(!(D.marker>=65488&&D.marker<=65495))break;t+=2;}return t-p;}function quantizeAndInverse(e,t,r){var a=e.quantizationTable,n=e.blockData;var i,g,p,m,b,y,w,S,x,k,C,v,O,T,M,E,D;if(!a)throw new JpegError(\"missing required Quantization Table.\");for(var _e214=0;_e214<64;_e214+=8){x=n[t+_e214];k=n[t+_e214+1];C=n[t+_e214+2];v=n[t+_e214+3];O=n[t+_e214+4];T=n[t+_e214+5];M=n[t+_e214+6];E=n[t+_e214+7];x*=a[_e214];if(0!=(k|C|v|O|T|M|E)){k*=a[_e214+1];C*=a[_e214+2];v*=a[_e214+3];O*=a[_e214+4];T*=a[_e214+5];M*=a[_e214+6];E*=a[_e214+7];i=d*x+128>>8;g=d*O+128>>8;p=C;m=M;b=f*(k-E)+128>>8;S=f*(k+E)+128>>8;y=v<<4;w=T<<4;i=i+g+1>>1;g=i-g;D=p*u+m*h+128>>8;p=p*h-m*u+128>>8;m=D;b=b+w+1>>1;w=b-w;S=S+y+1>>1;y=S-y;i=i+m+1>>1;m=i-m;g=g+p+1>>1;p=g-p;D=b*l+S*c+2048>>12;b=b*c-S*l+2048>>12;S=D;D=y*o+w*s+2048>>12;y=y*s-w*o+2048>>12;w=D;r[_e214]=i+S;r[_e214+7]=i-S;r[_e214+1]=g+w;r[_e214+6]=g-w;r[_e214+2]=p+y;r[_e214+5]=p-y;r[_e214+3]=m+b;r[_e214+4]=m-b;}else{D=d*x+512>>10;r[_e214]=D;r[_e214+1]=D;r[_e214+2]=D;r[_e214+3]=D;r[_e214+4]=D;r[_e214+5]=D;r[_e214+6]=D;r[_e214+7]=D;}}for(var _e215=0;_e215<8;++_e215){x=r[_e215];k=r[_e215+8];C=r[_e215+16];v=r[_e215+24];O=r[_e215+32];T=r[_e215+40];M=r[_e215+48];E=r[_e215+56];if(0!=(k|C|v|O|T|M|E)){i=d*x+2048>>12;g=d*O+2048>>12;p=C;m=M;b=f*(k-E)+2048>>12;S=f*(k+E)+2048>>12;y=v;w=T;i=4112+(i+g+1>>1);g=i-g;D=p*u+m*h+2048>>12;p=p*h-m*u+2048>>12;m=D;b=b+w+1>>1;w=b-w;S=S+y+1>>1;y=S-y;i=i+m+1>>1;m=i-m;g=g+p+1>>1;p=g-p;D=b*l+S*c+2048>>12;b=b*c-S*l+2048>>12;S=D;D=y*o+w*s+2048>>12;y=y*s-w*o+2048>>12;w=D;x=i+S;E=i-S;k=g+w;M=g-w;C=p+y;T=p-y;v=m+b;O=m-b;x<16?x=0:x>=4080?x=255:x>>=4;k<16?k=0:k>=4080?k=255:k>>=4;C<16?C=0:C>=4080?C=255:C>>=4;v<16?v=0:v>=4080?v=255:v>>=4;O<16?O=0:O>=4080?O=255:O>>=4;T<16?T=0:T>=4080?T=255:T>>=4;M<16?M=0:M>=4080?M=255:M>>=4;E<16?E=0:E>=4080?E=255:E>>=4;n[t+_e215]=x;n[t+_e215+8]=k;n[t+_e215+16]=C;n[t+_e215+24]=v;n[t+_e215+32]=O;n[t+_e215+40]=T;n[t+_e215+48]=M;n[t+_e215+56]=E;}else{D=d*x+8192>>14;D=D<-2040?0:D>=2024?255:D+2056>>4;n[t+_e215]=D;n[t+_e215+8]=D;n[t+_e215+16]=D;n[t+_e215+24]=D;n[t+_e215+32]=D;n[t+_e215+40]=D;n[t+_e215+48]=D;n[t+_e215+56]=D;}}}function buildComponentData(e,t){var r=t.blocksPerLine,a=t.blocksPerColumn,n=new Int16Array(64);for(var _e216=0;_e216<a;_e216++)for(var _a111=0;_a111<r;_a111++){quantizeAndInverse(t,getBlockBufferOffset(t,_e216,_a111),n);}return t.blockData;}function findNextFileMarker(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;var a=e.length-1;var i=r<t?r:t;if(t>=a)return null;var s=(0,n.readUint16)(e,t);if(s>=65472&&s<=65534)return{invalid:null,marker:s,offset:t};var o=(0,n.readUint16)(e,i);for(;!(o>=65472&&o<=65534);){if(++i>=a)return null;o=(0,n.readUint16)(e,i);}return{invalid:s.toString(16),marker:o,offset:i};}t.JpegImage=/*#__PURE__*/function(){function JpegImage(){_classCallCheck(this,JpegImage);var _ref11=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref11$decodeTransfor=_ref11.decodeTransform,e=_ref11$decodeTransfor===void 0?null:_ref11$decodeTransfor,_ref11$colorTransform=_ref11.colorTransform,t=_ref11$colorTransform===void 0?-1:_ref11$colorTransform;this._decodeTransform=e;this._colorTransform=t;}_createClass(JpegImage,[{key:\"parse\",value:function parse(e){var _ref12=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},_ref12$dnlScanLines=_ref12.dnlScanLines,t=_ref12$dnlScanLines===void 0?null:_ref12$dnlScanLines;function readDataBlock(){var t=(0,n.readUint16)(e,o);o+=2;var r=o+t-2;var i=findNextFileMarker(e,r,o);if(i&&i.invalid){(0,a.warn)(\"readDataBlock - incorrect length, current marker is: \"+i.invalid);r=i.offset;}var s=e.subarray(o,r);o+=s.length;return s;}function prepareComponents(e){var t=Math.ceil(e.samplesPerLine/8/e.maxH),r=Math.ceil(e.scanLines/8/e.maxV);for(var _a112=0,_n65=e.components.length;_a112<_n65;_a112++){var _n66=e.components[_a112],_i74=Math.ceil(Math.ceil(e.samplesPerLine/8)*_n66.h/e.maxH),_s47=Math.ceil(Math.ceil(e.scanLines/8)*_n66.v/e.maxV),_o25=t*_n66.h,_c19=64*(r*_n66.v)*(_o25+1);_n66.blockData=new Int16Array(_c19);_n66.blocksPerLine=_i74;_n66.blocksPerColumn=_s47;}e.mcusPerLine=t;e.mcusPerColumn=r;}var r,s,o=0,c=null,l=null,h=0;var u=[],d=[],f=[];var g=(0,n.readUint16)(e,o);o+=2;if(65496!==g)throw new JpegError(\"SOI not found\");g=(0,n.readUint16)(e,o);o+=2;e:for(;65497!==g;){var _p4=void 0,_m3=void 0,b=void 0;switch(g){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var y=readDataBlock();65504===g&&74===y[0]&&70===y[1]&&73===y[2]&&70===y[3]&&0===y[4]&&(c={version:{major:y[5],minor:y[6]},densityUnits:y[7],xDensity:y[8]<<8|y[9],yDensity:y[10]<<8|y[11],thumbWidth:y[12],thumbHeight:y[13],thumbData:y.subarray(14,14+3*y[12]*y[13])});65518===g&&65===y[0]&&100===y[1]&&111===y[2]&&98===y[3]&&101===y[4]&&(l={version:y[5]<<8|y[6],flags0:y[7]<<8|y[8],flags1:y[9]<<8|y[10],transformCode:y[11]});break;case 65499:var w=(0,n.readUint16)(e,o);o+=2;var S=w+o-2;var x=void 0;for(;o<S;){var _t167=e[o++],_r137=new Uint16Array(64);if(_t167>>4==0)for(_m3=0;_m3<64;_m3++){x=i[_m3];_r137[x]=e[o++];}else{if(_t167>>4!=1)throw new JpegError(\"DQT - invalid table spec\");for(_m3=0;_m3<64;_m3++){x=i[_m3];_r137[x]=(0,n.readUint16)(e,o);o+=2;}}u[15&_t167]=_r137;}break;case 65472:case 65473:case 65474:if(r)throw new JpegError(\"Only single frame JPEGs supported\");o+=2;r={};r.extended=65473===g;r.progressive=65474===g;r.precision=e[o++];var k=(0,n.readUint16)(e,o);o+=2;r.scanLines=t||k;r.samplesPerLine=(0,n.readUint16)(e,o);o+=2;r.components=[];r.componentIds={};var C=e[o++];var v=0,O=0;for(_p4=0;_p4<C;_p4++){var _t168=e[o],_a113=e[o+1]>>4,_n67=15&e[o+1];v<_a113&&(v=_a113);O<_n67&&(O=_n67);var _i75=e[o+2];b=r.components.push({h:_a113,v:_n67,quantizationId:_i75,quantizationTable:null});r.componentIds[_t168]=b-1;o+=3;}r.maxH=v;r.maxV=O;prepareComponents(r);break;case 65476:var T=(0,n.readUint16)(e,o);o+=2;for(_p4=2;_p4<T;){var _t169=e[o++],_r138=new Uint8Array(16);var _a114=0;for(_m3=0;_m3<16;_m3++,o++)_a114+=_r138[_m3]=e[o];var _n68=new Uint8Array(_a114);for(_m3=0;_m3<_a114;_m3++,o++)_n68[_m3]=e[o];_p4+=17+_a114;(_t169>>4==0?f:d)[15&_t169]=buildHuffmanTable(_r138,_n68);}break;case 65501:o+=2;s=(0,n.readUint16)(e,o);o+=2;break;case 65498:var M=1==++h&&!t;o+=2;var E=e[o++],D=[];for(_p4=0;_p4<E;_p4++){var _t170=e[o++],_a115=r.componentIds[_t170],_n69=r.components[_a115];_n69.index=_t170;var _i76=e[o++];_n69.huffmanTableDC=f[_i76>>4];_n69.huffmanTableAC=d[15&_i76];D.push(_n69);}var N=e[o++],R=e[o++],L=e[o++];try{var _t171=decodeScan(e,o,r,D,s,N,R,L>>4,15&L,M);o+=_t171;}catch(t){if(t instanceof DNLMarkerError){(0,a.warn)(\"\".concat(t.message,\" -- attempting to re-parse the JPEG image.\"));return this.parse(e,{dnlScanLines:t.scanLines});}if(t instanceof EOIMarkerError){(0,a.warn)(\"\".concat(t.message,\" -- ignoring the rest of the image data.\"));break e;}throw t;}break;case 65500:o+=4;break;case 65535:255!==e[o]&&o--;break;default:var j=findNextFileMarker(e,o-2,o-3);if(j&&j.invalid){(0,a.warn)(\"JpegImage.parse - unexpected data, current marker is: \"+j.invalid);o=j.offset;break;}if(!j||o>=e.length-1){(0,a.warn)(\"JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).\");break e;}throw new JpegError(\"JpegImage.parse - unknown marker: \"+g.toString(16));}g=(0,n.readUint16)(e,o);o+=2;}this.width=r.samplesPerLine;this.height=r.scanLines;this.jfif=c;this.adobe=l;this.components=[];for(var _e217=0,_t172=r.components.length;_e217<_t172;_e217++){var _t173=r.components[_e217],_a116=u[_t173.quantizationId];_a116&&(_t173.quantizationTable=_a116);this.components.push({index:_t173.index,output:buildComponentData(0,_t173),scaleX:_t173.h/r.maxH,scaleY:_t173.v/r.maxV,blocksPerLine:_t173.blocksPerLine,blocksPerColumn:_t173.blocksPerColumn});}this.numComponents=this.components.length;}},{key:\"_getLinearizedBlockData\",value:function _getLinearizedBlockData(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var a=this.width/e,n=this.height/t;var i,s,o,c,l,h,u,d,f,g,p,m=0;var b=this.components.length,y=e*t*b,w=new Uint8ClampedArray(y),S=new Uint32Array(e),x=4294967288;var k;for(u=0;u<b;u++){i=this.components[u];s=i.scaleX*a;o=i.scaleY*n;m=u;p=i.output;c=i.blocksPerLine+1<<3;if(s!==k){for(l=0;l<e;l++){d=0|l*s;S[l]=(d&x)<<3|7&d;}k=s;}for(h=0;h<t;h++){d=0|h*o;g=c*(d&x)|(7&d)<<3;for(l=0;l<e;l++){w[m]=p[g+S[l]];m+=b;}}}var C=this._decodeTransform;r||4!==b||C||(C=new Int32Array([-256,255,-256,255,-256,255,-256,255]));if(C)for(u=0;u<y;)for(d=0,f=0;d<b;d++,u++,f+=2)w[u]=(w[u]*C[f]>>8)+C[f+1];return w;}},{key:\"_isColorConversionNeeded\",get:function get(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform;}},{key:\"_convertYccToRgb\",value:function _convertYccToRgb(e){var t,r,a;for(var _n70=0,_i77=e.length;_n70<_i77;_n70+=3){t=e[_n70];r=e[_n70+1];a=e[_n70+2];e[_n70]=t-179.456+1.402*a;e[_n70+1]=t+135.459-.344*r-.714*a;e[_n70+2]=t-226.816+1.772*r;}return e;}},{key:\"_convertYcckToRgb\",value:function _convertYcckToRgb(e){var t,r,a,n,i=0;for(var _s48=0,_o26=e.length;_s48<_o26;_s48+=4){t=e[_s48];r=e[_s48+1];a=e[_s48+2];n=e[_s48+3];e[i++]=r*(-660635669420364e-19*r+.000437130475926232*a-54080610064599e-18*t+.00048449797120281*n-.154362151871126)-122.67195406894+a*(-.000957964378445773*a+.000817076911346625*t-.00477271405408747*n+1.53380253221734)+t*(.000961250184130688*t-.00266257332283933*n+.48357088451265)+n*(-.000336197177618394*n+.484791561490776);e[i++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*a+.000659397001245577*t+.000426105652938837*n-.176491792462875)+a*(-.000778269941513683*a+.00130872261408275*t+.000770482631801132*n-.151051492775562)+t*(.00126935368114843*t-.00265090189010898*n+.25802910206845)+n*(-.000318913117588328*n-.213742400323665);e[i++]=r*(-.000570115196973677*r-263409051004589e-19*a+.0020741088115012*t-.00288260236853442*n+.814272968359295)-20.810012546947+a*(-153496057440975e-19*a-.000132689043961446*t+.000560833691242812*n-.195152027534049)+t*(.00174418132927582*t-.00255243321439347*n+.116935020465145)+n*(-.000343531996510555*n+.24165260232407);}return e.subarray(0,i);}},{key:\"_convertYcckToCmyk\",value:function _convertYcckToCmyk(e){var t,r,a;for(var _n71=0,_i78=e.length;_n71<_i78;_n71+=4){t=e[_n71];r=e[_n71+1];a=e[_n71+2];e[_n71]=434.456-t-1.402*a;e[_n71+1]=119.541-t+.344*r+.714*a;e[_n71+2]=481.816-t-1.772*r;}return e;}},{key:\"_convertCmykToRgb\",value:function _convertCmykToRgb(e){var t,r,a,n,i=0;for(var _s49=0,_o27=e.length;_s49<_o27;_s49+=4){t=e[_s49];r=e[_s49+1];a=e[_s49+2];n=e[_s49+3];e[i++]=255+t*(-6747147073602441e-20*t+.0008379262121013727*r+.0002894718188643294*a+.003264231057537806*n-1.1185611867203937)+r*(26374107616089405e-21*r-8626949158638572e-20*a-.0002748769067499491*n-.02155688794978967)+a*(-3878099212869363e-20*a-.0003267808279485286*n+.0686742238595345)-n*(.0003361971776183937*n+.7430659151342254);e[i++]=255+t*(.00013596372813588848*t+.000924537132573585*r+.00010567359618683593*a+.0004791864687436512*n-.3109689587515875)+r*(-.00023545346108370344*r+.0002702845253534714*a+.0020200308977307156*n-.7488052167015494)+a*(6834815998235662e-20*a+.00015168452363460973*n-.09751927774728933)-n*(.0003189131175883281*n+.7364883807733168);e[i++]=255+t*(13598650411385307e-21*t+.00012423956175490851*r+.0004751985097583589*a-36729317476630422e-22*n-.05562186980264034)+r*(.00016141380598724676*r+.0009692239130725186*a+.0007782692450036253*n-.44015232367526463)+a*(5.068882914068769e-7*a+.0017778369011375071*n-.7591454649749609)-n*(.0003435319965105553*n+.7063770186160144);}return e.subarray(0,i);}},{key:\"getData\",value:function getData(e){var t=e.width,r=e.height,_e$forceRGB=e.forceRGB,a=_e$forceRGB===void 0?!1:_e$forceRGB,_e$isSourcePDF=e.isSourcePDF,n=_e$isSourcePDF===void 0?!1:_e$isSourcePDF;if(this.numComponents>4)throw new JpegError(\"Unsupported color mode\");var i=this._getLinearizedBlockData(t,r,n);if(1===this.numComponents&&a){var _e218=i.length,_t174=new Uint8ClampedArray(3*_e218);var _r139=0;for(var _a117=0;_a117<_e218;_a117++){var _e219=i[_a117];_t174[_r139++]=_e219;_t174[_r139++]=_e219;_t174[_r139++]=_e219;}return _t174;}if(3===this.numComponents&&this._isColorConversionNeeded)return this._convertYccToRgb(i);if(4===this.numComponents){if(this._isColorConversionNeeded)return a?this._convertYcckToRgb(i):this._convertYcckToCmyk(i);if(a)return this._convertCmykToRgb(i);}return i;}}]);return JpegImage;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.JpxStream=void 0;var a=r(144),n=r(155),i=r(2);var JpxStream=/*#__PURE__*/function(_a$DecodeStream5){_inherits(JpxStream,_a$DecodeStream5);function JpxStream(e,t,r){var _this72;_classCallCheck(this,JpxStream);_this72=_callSuper(this,JpxStream,[t]);_this72.stream=e;_this72.dict=e.dict;_this72.maybeLength=t;_this72.params=r;return _this72;}_createClass(JpxStream,[{key:\"bytes\",get:function get(){return(0,i.shadow)(this,\"bytes\",this.stream.getBytes(this.maybeLength));}},{key:\"ensureBuffer\",value:function ensureBuffer(e){}},{key:\"readBlock\",value:function readBlock(){if(this.eof)return;var e=new n.JpxImage();e.parse(this.bytes);var t=e.width,r=e.height,a=e.componentsCount,i=e.tiles.length;if(1===i)this.buffer=e.tiles[0].items;else{var _n72=new Uint8ClampedArray(t*r*a);for(var _r140=0;_r140<i;_r140++){var _i79=e.tiles[_r140],_s50=_i79.width,_o28=_i79.height,_c20=_i79.left,l=_i79.top,_h8=_i79.items;var u=0,d=(t*l+_c20)*a;var f=t*a,_g7=_s50*a;for(var _e220=0;_e220<_o28;_e220++){var _e221=_h8.subarray(u,u+_g7);_n72.set(_e221,d);u+=_g7;d+=f;}}this.buffer=_n72;}this.bufferLength=this.buffer.length;this.eof=!0;}}]);return JpxStream;}(a.DecodeStream);t.JpxStream=JpxStream;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.JpxImage=void 0;var a=r(2),n=r(131),i=r(151);var JpxError=/*#__PURE__*/function(_a$BaseException9){_inherits(JpxError,_a$BaseException9);function JpxError(e){_classCallCheck(this,JpxError);return _callSuper(this,JpxError,[\"JPX error: \".concat(e),\"JpxError\"]);}return _createClass(JpxError);}(a.BaseException);var s={LL:0,LH:1,HL:1,HH:2};t.JpxImage=/*#__PURE__*/function(){function JpxImage(){_classCallCheck(this,JpxImage);this.failOnCorruptedImage=!1;}_createClass(JpxImage,[{key:\"parse\",value:function parse(e){var _context236;if(65359===(0,n.readUint16)(e,0)){this.parseCodestream(e,0,e.length);return;}var t=e.length;var r=0;for(;r<t;){var _i80=8,_s51=(0,n.readUint32)(e,r);var _o29=(0,n.readUint32)(e,r+4);r+=_i80;if(1===_s51){_s51=4294967296*(0,n.readUint32)(e,r)+(0,n.readUint32)(e,r+4);r+=8;_i80+=8;}0===_s51&&(_s51=t-r+_i80);if(_s51<_i80)throw new JpxError(\"Invalid box field size\");var _c21=_s51-_i80;var l=!0;switch(_o29){case 1785737832:l=!1;break;case 1668246642:var _t175=e[r];if(1===_t175){var _t176=(0,n.readUint32)(e,r+3);switch(_t176){case 16:case 17:case 18:break;default:(0,a.warn)(\"Unknown colorspace \"+_t176);}}else 2===_t175&&(0,a.info)(\"ICC profile not supported\");break;case 1785737827:this.parseCodestream(e,r,r+_c21);break;case 1783636e3:218793738!==(0,n.readUint32)(e,r)&&(0,a.warn)(\"Invalid JP2 signature\");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var _i81=String.fromCharCode(_o29>>24&255,_o29>>16&255,_o29>>8&255,255&_o29);(0,a.warn)(_concatInstanceProperty(_context236=\"Unsupported header type \".concat(_o29,\" (\")).call(_context236,_i81,\").\"));}l&&(r+=_c21);}}},{key:\"parseImageProperties\",value:function parseImageProperties(e){var t=e.getByte();for(;t>=0;){var _r141=t;t=e.getByte();if(65361===(_r141<<8|t)){e.skip(4);var _t177=e.getInt32()>>>0,_r142=e.getInt32()>>>0,_a118=e.getInt32()>>>0,_n73=e.getInt32()>>>0;e.skip(16);var _i82=e.getUint16();this.width=_t177-_a118;this.height=_r142-_n73;this.componentsCount=_i82;this.bitsPerComponent=8;return;}}throw new JpxError(\"No size marker found in JPX stream\");}},{key:\"parseCodestream\",value:function parseCodestream(e,t,r){var i={};var s=!1;try{var _o30=t;for(;_o30+1<r;){var _t178=(0,n.readUint16)(e,_o30);_o30+=2;var _r143=void 0,_c22=void 0,l=void 0,_h9=void 0,u=void 0,d=void 0,f=0;switch(_t178){case 65359:i.mainHeader=!0;break;case 65497:break;case 65361:f=(0,n.readUint16)(e,_o30);var _g8={};_g8.Xsiz=(0,n.readUint32)(e,_o30+4);_g8.Ysiz=(0,n.readUint32)(e,_o30+8);_g8.XOsiz=(0,n.readUint32)(e,_o30+12);_g8.YOsiz=(0,n.readUint32)(e,_o30+16);_g8.XTsiz=(0,n.readUint32)(e,_o30+20);_g8.YTsiz=(0,n.readUint32)(e,_o30+24);_g8.XTOsiz=(0,n.readUint32)(e,_o30+28);_g8.YTOsiz=(0,n.readUint32)(e,_o30+32);var _p5=(0,n.readUint16)(e,_o30+36);_g8.Csiz=_p5;var _m4=[];_r143=_o30+38;for(var _t179=0;_t179<_p5;_t179++){var _t180={precision:1+(127&e[_r143]),isSigned:!!(128&e[_r143]),XRsiz:e[_r143+1],YRsiz:e[_r143+2]};_r143+=3;calculateComponentDimensions(_t180,_g8);_m4.push(_t180);}i.SIZ=_g8;i.components=_m4;calculateTileGrids(i,_m4);i.QCC=[];i.COC=[];break;case 65372:f=(0,n.readUint16)(e,_o30);var b={};_r143=_o30+2;_c22=e[_r143++];switch(31&_c22){case 0:_h9=8;u=!0;break;case 1:_h9=16;u=!1;break;case 2:_h9=16;u=!0;break;default:throw new Error(\"Invalid SQcd value \"+_c22);}b.noQuantization=8===_h9;b.scalarExpounded=u;b.guardBits=_c22>>5;l=[];for(;_r143<f+_o30;){var _t181={};if(8===_h9){_t181.epsilon=e[_r143++]>>3;_t181.mu=0;}else{_t181.epsilon=e[_r143]>>3;_t181.mu=(7&e[_r143])<<8|e[_r143+1];_r143+=2;}l.push(_t181);}b.SPqcds=l;if(i.mainHeader)i.QCD=b;else{i.currentTile.QCD=b;i.currentTile.QCC=[];}break;case 65373:f=(0,n.readUint16)(e,_o30);var y={};_r143=_o30+2;var w=void 0;if(i.SIZ.Csiz<257)w=e[_r143++];else{w=(0,n.readUint16)(e,_r143);_r143+=2;}_c22=e[_r143++];switch(31&_c22){case 0:_h9=8;u=!0;break;case 1:_h9=16;u=!1;break;case 2:_h9=16;u=!0;break;default:throw new Error(\"Invalid SQcd value \"+_c22);}y.noQuantization=8===_h9;y.scalarExpounded=u;y.guardBits=_c22>>5;l=[];for(;_r143<f+_o30;){var _t182={};if(8===_h9){_t182.epsilon=e[_r143++]>>3;_t182.mu=0;}else{_t182.epsilon=e[_r143]>>3;_t182.mu=(7&e[_r143])<<8|e[_r143+1];_r143+=2;}l.push(_t182);}y.SPqcds=l;i.mainHeader?i.QCC[w]=y:i.currentTile.QCC[w]=y;break;case 65362:f=(0,n.readUint16)(e,_o30);var S={};_r143=_o30+2;var x=e[_r143++];S.entropyCoderWithCustomPrecincts=!!(1&x);S.sopMarkerUsed=!!(2&x);S.ephMarkerUsed=!!(4&x);S.progressionOrder=e[_r143++];S.layersCount=(0,n.readUint16)(e,_r143);_r143+=2;S.multipleComponentTransform=e[_r143++];S.decompositionLevelsCount=e[_r143++];S.xcb=2+(15&e[_r143++]);S.ycb=2+(15&e[_r143++]);var k=e[_r143++];S.selectiveArithmeticCodingBypass=!!(1&k);S.resetContextProbabilities=!!(2&k);S.terminationOnEachCodingPass=!!(4&k);S.verticallyStripe=!!(8&k);S.predictableTermination=!!(16&k);S.segmentationSymbolUsed=!!(32&k);S.reversibleTransformation=e[_r143++];if(S.entropyCoderWithCustomPrecincts){var _t183=[];for(;_r143<f+_o30;){var _a119=e[_r143++];_t183.push({PPx:15&_a119,PPy:_a119>>4});}S.precinctsSizes=_t183;}var C=[];S.selectiveArithmeticCodingBypass&&C.push(\"selectiveArithmeticCodingBypass\");S.terminationOnEachCodingPass&&C.push(\"terminationOnEachCodingPass\");S.verticallyStripe&&C.push(\"verticallyStripe\");S.predictableTermination&&C.push(\"predictableTermination\");if(C.length>0){s=!0;(0,a.warn)(\"JPX: Unsupported COD options (\".concat(C.join(\", \"),\").\"));}if(i.mainHeader)i.COD=S;else{i.currentTile.COD=S;i.currentTile.COC=[];}break;case 65424:f=(0,n.readUint16)(e,_o30);d={};d.index=(0,n.readUint16)(e,_o30+2);d.length=(0,n.readUint32)(e,_o30+4);d.dataEnd=d.length+_o30-2;d.partIndex=e[_o30+8];d.partsCount=e[_o30+9];i.mainHeader=!1;if(0===d.partIndex){var _context237,_context238;d.COD=i.COD;d.COC=_sliceInstanceProperty(_context237=i.COC).call(_context237,0);d.QCD=i.QCD;d.QCC=_sliceInstanceProperty(_context238=i.QCC).call(_context238,0);}i.currentTile=d;break;case 65427:d=i.currentTile;if(0===d.partIndex){initializeTile(i,d.index);buildPackets(i);}f=d.dataEnd-_o30;parseTilePackets(i,e,_o30,f);break;case 65363:(0,a.warn)(\"JPX: Codestream code 0xFF53 (COC) is not implemented.\");case 65365:case 65367:case 65368:case 65380:f=(0,n.readUint16)(e,_o30);break;default:throw new Error(\"Unknown codestream code: \"+_t178.toString(16));}_o30+=f;}}catch(e){if(s||this.failOnCorruptedImage)throw new JpxError(e.message);(0,a.warn)(\"JPX: Trying to recover from: \\\"\".concat(e.message,\"\\\".\"));}this.tiles=function transformComponents(e){var t=e.SIZ,r=e.components,a=t.Csiz,n=[];for(var _t184=0,_i83=e.tiles.length;_t184<_i83;_t184++){var _i84=e.tiles[_t184],_s52=[];for(var _t185=0;_t185<a;_t185++)_s52[_t185]=transformTile(e,_i84,_t185);var _o31=_s52[0],_c23=new Uint8ClampedArray(_o31.items.length*a),_l16={left:_o31.left,top:_o31.top,width:_o31.width,height:_o31.height,items:_c23};var _h10=void 0,_u5=void 0,_d6=void 0,_f4=void 0,_g9=void 0,_p6=void 0,_m5=void 0,_b2=0;if(_i84.codingStyleDefaultParameters.multipleComponentTransform){var _e222=4===a,_t186=_s52[0].items,_n74=_s52[1].items,_o32=_s52[2].items,_l17=_e222?_s52[3].items:null;_h10=r[0].precision-8;_u5=.5+(128<<_h10);var _y2=_i84.components[0],_w=a-3;_f4=_t186.length;if(_y2.codingStyleParameters.reversibleTransformation)for(_d6=0;_d6<_f4;_d6++,_b2+=_w){_g9=_t186[_d6]+_u5;_p6=_n74[_d6];_m5=_o32[_d6];var _e223=_g9-(_m5+_p6>>2);_c23[_b2++]=_e223+_m5>>_h10;_c23[_b2++]=_e223>>_h10;_c23[_b2++]=_e223+_p6>>_h10;}else for(_d6=0;_d6<_f4;_d6++,_b2+=_w){_g9=_t186[_d6]+_u5;_p6=_n74[_d6];_m5=_o32[_d6];_c23[_b2++]=_g9+1.402*_m5>>_h10;_c23[_b2++]=_g9-.34413*_p6-.71414*_m5>>_h10;_c23[_b2++]=_g9+1.772*_p6>>_h10;}if(_e222)for(_d6=0,_b2=3;_d6<_f4;_d6++,_b2+=4)_c23[_b2]=_l17[_d6]+_u5>>_h10;}else for(var _e224=0;_e224<a;_e224++){var _t187=_s52[_e224].items;_h10=r[_e224].precision-8;_u5=.5+(128<<_h10);for(_b2=_e224,_d6=0,_f4=_t187.length;_d6<_f4;_d6++){_c23[_b2]=_t187[_d6]+_u5>>_h10;_b2+=a;}}n.push(_l16);}return n;}(i);this.width=i.SIZ.Xsiz-i.SIZ.XOsiz;this.height=i.SIZ.Ysiz-i.SIZ.YOsiz;this.componentsCount=i.SIZ.Csiz;}}]);return JpxImage;}();function calculateComponentDimensions(e,t){e.x0=Math.ceil(t.XOsiz/e.XRsiz);e.x1=Math.ceil(t.Xsiz/e.XRsiz);e.y0=Math.ceil(t.YOsiz/e.YRsiz);e.y1=Math.ceil(t.Ysiz/e.YRsiz);e.width=e.x1-e.x0;e.height=e.y1-e.y0;}function calculateTileGrids(e,t){var r=e.SIZ,a=[];var n;var i=Math.ceil((r.Xsiz-r.XTOsiz)/r.XTsiz),s=Math.ceil((r.Ysiz-r.YTOsiz)/r.YTsiz);for(var _e225=0;_e225<s;_e225++)for(var _t188=0;_t188<i;_t188++){n={};n.tx0=Math.max(r.XTOsiz+_t188*r.XTsiz,r.XOsiz);n.ty0=Math.max(r.YTOsiz+_e225*r.YTsiz,r.YOsiz);n.tx1=Math.min(r.XTOsiz+(_t188+1)*r.XTsiz,r.Xsiz);n.ty1=Math.min(r.YTOsiz+(_e225+1)*r.YTsiz,r.Ysiz);n.width=n.tx1-n.tx0;n.height=n.ty1-n.ty0;n.components=[];a.push(n);}e.tiles=a;for(var _e226=0,_i85=r.Csiz;_e226<_i85;_e226++){var _r144=t[_e226];for(var _t189=0,_i86=a.length;_t189<_i86;_t189++){var _i87={};n=a[_t189];_i87.tcx0=Math.ceil(n.tx0/_r144.XRsiz);_i87.tcy0=Math.ceil(n.ty0/_r144.YRsiz);_i87.tcx1=Math.ceil(n.tx1/_r144.XRsiz);_i87.tcy1=Math.ceil(n.ty1/_r144.YRsiz);_i87.width=_i87.tcx1-_i87.tcx0;_i87.height=_i87.tcy1-_i87.tcy0;n.components[_e226]=_i87;}}}function getBlocksDimensions(e,t,r){var a=t.codingStyleParameters,n={};if(a.entropyCoderWithCustomPrecincts){n.PPx=a.precinctsSizes[r].PPx;n.PPy=a.precinctsSizes[r].PPy;}else{n.PPx=15;n.PPy=15;}n.xcb_=r>0?Math.min(a.xcb,n.PPx-1):Math.min(a.xcb,n.PPx);n.ycb_=r>0?Math.min(a.ycb,n.PPy-1):Math.min(a.ycb,n.PPy);return n;}function buildPrecincts(e,t,r){var a=1<<r.PPx,n=1<<r.PPy,i=0===t.resLevel,s=1<<r.PPx+(i?0:-1),o=1<<r.PPy+(i?0:-1),c=t.trx1>t.trx0?Math.ceil(t.trx1/a)-Math.floor(t.trx0/a):0,l=t.try1>t.try0?Math.ceil(t.try1/n)-Math.floor(t.try0/n):0,h=c*l;t.precinctParameters={precinctWidth:a,precinctHeight:n,numprecinctswide:c,numprecinctshigh:l,numprecincts:h,precinctWidthInSubband:s,precinctHeightInSubband:o};}function buildCodeblocks(e,t,r){var a=r.xcb_,n=r.ycb_,i=1<<a,s=1<<n,o=t.tbx0>>a,c=t.tby0>>n,l=t.tbx1+i-1>>a,h=t.tby1+s-1>>n,u=t.resolution.precinctParameters,d=[],f=[];var g,p,m,b;for(p=c;p<h;p++)for(g=o;g<l;g++){m={cbx:g,cby:p,tbx0:i*g,tby0:s*p,tbx1:i*(g+1),tby1:s*(p+1)};m.tbx0_=Math.max(t.tbx0,m.tbx0);m.tby0_=Math.max(t.tby0,m.tby0);m.tbx1_=Math.min(t.tbx1,m.tbx1);m.tby1_=Math.min(t.tby1,m.tby1);b=Math.floor((m.tbx0_-t.tbx0)/u.precinctWidthInSubband)+Math.floor((m.tby0_-t.tby0)/u.precinctHeightInSubband)*u.numprecinctswide;m.precinctNumber=b;m.subbandType=t.type;m.Lblock=3;if(m.tbx1_<=m.tbx0_||m.tby1_<=m.tby0_)continue;d.push(m);var _e227=f[b];if(void 0!==_e227){g<_e227.cbxMin?_e227.cbxMin=g:g>_e227.cbxMax&&(_e227.cbxMax=g);p<_e227.cbyMin?_e227.cbxMin=p:p>_e227.cbyMax&&(_e227.cbyMax=p);}else f[b]=_e227={cbxMin:g,cbyMin:p,cbxMax:g,cbyMax:p};m.precinct=_e227;}t.codeblockParameters={codeblockWidth:a,codeblockHeight:n,numcodeblockwide:l-o+1,numcodeblockhigh:h-c+1};t.codeblocks=d;t.precincts=f;}function createPacket(e,t,r){var a=[],n=e.subbands;for(var _e228=0,_r145=n.length;_e228<_r145;_e228++){var _r146=n[_e228].codeblocks;for(var _e229=0,_n75=_r146.length;_e229<_n75;_e229++){var _n76=_r146[_e229];_n76.precinctNumber===t&&a.push(_n76);}}return{layerNumber:r,codeblocks:a};}function LayerResolutionComponentPositionIterator(e){var t=e.SIZ,r=e.currentTile.index,a=e.tiles[r],n=a.codingStyleDefaultParameters.layersCount,i=t.Csiz;var s=0;for(var _e230=0;_e230<i;_e230++)s=Math.max(s,a.components[_e230].codingStyleParameters.decompositionLevelsCount);var o=0,c=0,l=0,h=0;this.nextPacket=function JpxImage_nextPacket(){for(;o<n;o++){for(;c<=s;c++){for(;l<i;l++){var _e231=a.components[l];if(c>_e231.codingStyleParameters.decompositionLevelsCount)continue;var _t190=_e231.resolutions[c],_r147=_t190.precinctParameters.numprecincts;for(;h<_r147;){var _e232=createPacket(_t190,h,o);h++;return _e232;}h=0;}l=0;}c=0;}throw new JpxError(\"Out of packets\");};}function ResolutionLayerComponentPositionIterator(e){var t=e.SIZ,r=e.currentTile.index,a=e.tiles[r],n=a.codingStyleDefaultParameters.layersCount,i=t.Csiz;var s=0;for(var _e233=0;_e233<i;_e233++)s=Math.max(s,a.components[_e233].codingStyleParameters.decompositionLevelsCount);var o=0,c=0,l=0,h=0;this.nextPacket=function JpxImage_nextPacket(){for(;o<=s;o++){for(;c<n;c++){for(;l<i;l++){var _e234=a.components[l];if(o>_e234.codingStyleParameters.decompositionLevelsCount)continue;var _t191=_e234.resolutions[o],_r148=_t191.precinctParameters.numprecincts;for(;h<_r148;){var _e235=createPacket(_t191,h,c);h++;return _e235;}h=0;}l=0;}c=0;}throw new JpxError(\"Out of packets\");};}function ResolutionPositionComponentLayerIterator(e){var t=e.SIZ,r=e.currentTile.index,a=e.tiles[r],n=a.codingStyleDefaultParameters.layersCount,i=t.Csiz;var s,o,c,l,h=0;for(c=0;c<i;c++){var _e236=a.components[c];h=Math.max(h,_e236.codingStyleParameters.decompositionLevelsCount);}var u=new Int32Array(h+1);for(o=0;o<=h;++o){var _e237=0;for(c=0;c<i;++c){var _t192=a.components[c].resolutions;o<_t192.length&&(_e237=Math.max(_e237,_t192[o].precinctParameters.numprecincts));}u[o]=_e237;}s=0;o=0;c=0;l=0;this.nextPacket=function JpxImage_nextPacket(){for(;o<=h;o++){for(;l<u[o];l++){for(;c<i;c++){var _e238=a.components[c];if(o>_e238.codingStyleParameters.decompositionLevelsCount)continue;var _t193=_e238.resolutions[o],_r149=_t193.precinctParameters.numprecincts;if(!(l>=_r149)){for(;s<n;){var _e239=createPacket(_t193,l,s);s++;return _e239;}s=0;}}c=0;}l=0;}throw new JpxError(\"Out of packets\");};}function PositionComponentResolutionLayerIterator(e){var t=e.SIZ,r=e.currentTile.index,a=e.tiles[r],n=a.codingStyleDefaultParameters.layersCount,i=t.Csiz,s=getPrecinctSizesInImageScale(a),o=s;var c=0,l=0,h=0,u=0,d=0;this.nextPacket=function JpxImage_nextPacket(){for(;d<o.maxNumHigh;d++){for(;u<o.maxNumWide;u++){for(;h<i;h++){var _e240=a.components[h],_t194=_e240.codingStyleParameters.decompositionLevelsCount;for(;l<=_t194;l++){var _t195=_e240.resolutions[l],_r150=s.components[h].resolutions[l],_a120=getPrecinctIndexIfExist(u,d,_r150,o,_t195);if(null!==_a120){for(;c<n;){var _e241=createPacket(_t195,_a120,c);c++;return _e241;}c=0;}}l=0;}h=0;}u=0;}throw new JpxError(\"Out of packets\");};}function ComponentPositionResolutionLayerIterator(e){var t=e.SIZ,r=e.currentTile.index,a=e.tiles[r],n=a.codingStyleDefaultParameters.layersCount,i=t.Csiz,s=getPrecinctSizesInImageScale(a);var o=0,c=0,l=0,h=0,u=0;this.nextPacket=function JpxImage_nextPacket(){for(;l<i;++l){var _e242=a.components[l],_t196=s.components[l],_r151=_e242.codingStyleParameters.decompositionLevelsCount;for(;u<_t196.maxNumHigh;u++){for(;h<_t196.maxNumWide;h++){for(;c<=_r151;c++){var _r152=_e242.resolutions[c],_a121=_t196.resolutions[c],_i88=getPrecinctIndexIfExist(h,u,_a121,_t196,_r152);if(null!==_i88){for(;o<n;){var _e243=createPacket(_r152,_i88,o);o++;return _e243;}o=0;}}c=0;}h=0;}u=0;}throw new JpxError(\"Out of packets\");};}function getPrecinctIndexIfExist(e,t,r,a,n){var i=e*a.minWidth,s=t*a.minHeight;if(i%r.width!=0||s%r.height!=0)return null;var o=s/r.width*n.precinctParameters.numprecinctswide;return i/r.height+o;}function getPrecinctSizesInImageScale(e){var t=e.components.length;var r=Number.MAX_VALUE,a=Number.MAX_VALUE,n=0,i=0;var s=new Array(t);for(var _o33=0;_o33<t;_o33++){var _t197=e.components[_o33],_c24=_t197.codingStyleParameters.decompositionLevelsCount,l=new Array(_c24+1);var _h11=Number.MAX_VALUE,u=Number.MAX_VALUE,d=0,f=0,_g10=1;for(var _e244=_c24;_e244>=0;--_e244){var _r153=_t197.resolutions[_e244],_a122=_g10*_r153.precinctParameters.precinctWidth,_n77=_g10*_r153.precinctParameters.precinctHeight;_h11=Math.min(_h11,_a122);u=Math.min(u,_n77);d=Math.max(d,_r153.precinctParameters.numprecinctswide);f=Math.max(f,_r153.precinctParameters.numprecinctshigh);l[_e244]={width:_a122,height:_n77};_g10<<=1;}r=Math.min(r,_h11);a=Math.min(a,u);n=Math.max(n,d);i=Math.max(i,f);s[_o33]={resolutions:l,minWidth:_h11,minHeight:u,maxNumWide:d,maxNumHigh:f};}return{components:s,minWidth:r,minHeight:a,maxNumWide:n,maxNumHigh:i};}function buildPackets(e){var t=e.SIZ,r=e.currentTile.index,a=e.tiles[r],n=t.Csiz;for(var _e245=0;_e245<n;_e245++){var _t198=a.components[_e245],_r154=_t198.codingStyleParameters.decompositionLevelsCount,_n78=[],_i89=[];for(var _e246=0;_e246<=_r154;_e246++){var _a123=getBlocksDimensions(0,_t198,_e246),_s53={},_o34=1<<_r154-_e246;_s53.trx0=Math.ceil(_t198.tcx0/_o34);_s53.try0=Math.ceil(_t198.tcy0/_o34);_s53.trx1=Math.ceil(_t198.tcx1/_o34);_s53.try1=Math.ceil(_t198.tcy1/_o34);_s53.resLevel=_e246;buildPrecincts(0,_s53,_a123);_n78.push(_s53);var _c25=void 0;if(0===_e246){_c25={};_c25.type=\"LL\";_c25.tbx0=Math.ceil(_t198.tcx0/_o34);_c25.tby0=Math.ceil(_t198.tcy0/_o34);_c25.tbx1=Math.ceil(_t198.tcx1/_o34);_c25.tby1=Math.ceil(_t198.tcy1/_o34);_c25.resolution=_s53;buildCodeblocks(0,_c25,_a123);_i89.push(_c25);_s53.subbands=[_c25];}else{var _n79=1<<_r154-_e246+1,_o35=[];_c25={};_c25.type=\"HL\";_c25.tbx0=Math.ceil(_t198.tcx0/_n79-.5);_c25.tby0=Math.ceil(_t198.tcy0/_n79);_c25.tbx1=Math.ceil(_t198.tcx1/_n79-.5);_c25.tby1=Math.ceil(_t198.tcy1/_n79);_c25.resolution=_s53;buildCodeblocks(0,_c25,_a123);_i89.push(_c25);_o35.push(_c25);_c25={};_c25.type=\"LH\";_c25.tbx0=Math.ceil(_t198.tcx0/_n79);_c25.tby0=Math.ceil(_t198.tcy0/_n79-.5);_c25.tbx1=Math.ceil(_t198.tcx1/_n79);_c25.tby1=Math.ceil(_t198.tcy1/_n79-.5);_c25.resolution=_s53;buildCodeblocks(0,_c25,_a123);_i89.push(_c25);_o35.push(_c25);_c25={};_c25.type=\"HH\";_c25.tbx0=Math.ceil(_t198.tcx0/_n79-.5);_c25.tby0=Math.ceil(_t198.tcy0/_n79-.5);_c25.tbx1=Math.ceil(_t198.tcx1/_n79-.5);_c25.tby1=Math.ceil(_t198.tcy1/_n79-.5);_c25.resolution=_s53;buildCodeblocks(0,_c25,_a123);_i89.push(_c25);_o35.push(_c25);_s53.subbands=_o35;}}_t198.resolutions=_n78;_t198.subbands=_i89;}var i=a.codingStyleDefaultParameters.progressionOrder;switch(i){case 0:a.packetsIterator=new LayerResolutionComponentPositionIterator(e);break;case 1:a.packetsIterator=new ResolutionLayerComponentPositionIterator(e);break;case 2:a.packetsIterator=new ResolutionPositionComponentLayerIterator(e);break;case 3:a.packetsIterator=new PositionComponentResolutionLayerIterator(e);break;case 4:a.packetsIterator=new ComponentPositionResolutionLayerIterator(e);break;default:throw new JpxError(\"Unsupported progression order \".concat(i));}}function parseTilePackets(e,t,r,a){var i,s=0,o=0,c=!1;function readBits(e){for(;o<e;){var _e247=t[r+s];s++;if(c){i=i<<7|_e247;o+=7;c=!1;}else{i=i<<8|_e247;o+=8;}255===_e247&&(c=!0);}o-=e;return i>>>o&(1<<e)-1;}function skipMarkerIfEqual(e){if(255===t[r+s-1]&&t[r+s]===e){skipBytes(1);return!0;}if(255===t[r+s]&&t[r+s+1]===e){skipBytes(2);return!0;}return!1;}function skipBytes(e){s+=e;}function alignToByte(){o=0;if(c){s++;c=!1;}}function readCodingpasses(){if(0===readBits(1))return 1;if(0===readBits(1))return 2;var e=readBits(2);if(e<3)return e+3;e=readBits(5);if(e<31)return e+6;e=readBits(7);return e+37;}var l=e.currentTile.index,h=e.tiles[l],u=e.COD.sopMarkerUsed,d=e.COD.ephMarkerUsed,f=h.packetsIterator;for(;s<a;){alignToByte();u&&skipMarkerIfEqual(145)&&skipBytes(4);var _e248=f.nextPacket();if(!readBits(1))continue;var _a124=_e248.layerNumber,_i90=[];var _o36=void 0;for(var _t199=0,_r155=_e248.codeblocks.length;_t199<_r155;_t199++){_o36=_e248.codeblocks[_t199];var _r156=_o36.precinct;var _s54=_o36.cbx-_r156.cbxMin,_c26=_o36.cby-_r156.cbyMin;var _l18=void 0,_h12=void 0,_u6=!1,_d7=!1;if(void 0!==_o36.included)_u6=!!readBits(1);else{_r156=_o36.precinct;var _e249=void 0;if(void 0!==_r156.inclusionTree)_e249=_r156.inclusionTree;else{var _t200=_r156.cbxMax-_r156.cbxMin+1,_n80=_r156.cbyMax-_r156.cbyMin+1;_e249=new InclusionTree(_t200,_n80,_a124);_h12=new TagTree(_t200,_n80);_r156.inclusionTree=_e249;_r156.zeroBitPlanesTree=_h12;for(var _e250=0;_e250<_a124;_e250++)if(0!==readBits(1))throw new JpxError(\"Invalid tag tree\");}if(_e249.reset(_s54,_c26,_a124))for(;;){if(!readBits(1)){_e249.incrementValue(_a124);break;}_l18=!_e249.nextLevel();if(_l18){_o36.included=!0;_u6=_d7=!0;break;}}}if(!_u6)continue;if(_d7){_h12=_r156.zeroBitPlanesTree;_h12.reset(_s54,_c26);for(;;)if(readBits(1)){_l18=!_h12.nextLevel();if(_l18)break;}else _h12.incrementValue();_o36.zeroBitPlanes=_h12.value;}var _f5=readCodingpasses();for(;readBits(1);)_o36.Lblock++;var _g11=(0,n.log2)(_f5),_p7=readBits((_f5<1<<_g11?_g11-1:_g11)+_o36.Lblock);_i90.push({codeblock:_o36,codingpasses:_f5,dataLength:_p7});}alignToByte();d&&skipMarkerIfEqual(146);for(;_i90.length>0;){var _e251=_i90.shift();_o36=_e251.codeblock;void 0===_o36.data&&(_o36.data=[]);_o36.data.push({data:t,start:r+s,end:r+s+_e251.dataLength,codingpasses:_e251.codingpasses});s+=_e251.dataLength;}}return s;}function copyCoefficients(e,t,r,a,n,s,c,l,h){var u=a.tbx0,d=a.tby0,f=a.tbx1-a.tbx0,g=a.codeblocks,p=\"H\"===a.type.charAt(0)?1:0,m=\"H\"===a.type.charAt(1)?t:0;for(var _r157=0,b=g.length;_r157<b;++_r157){var _b3=g[_r157],y=_b3.tbx1_-_b3.tbx0_,w=_b3.tby1_-_b3.tby0_;if(0===y||0===w)continue;if(void 0===_b3.data)continue;var S=new o(y,w,_b3.subbandType,_b3.zeroBitPlanes,s);var x=2;var k=_b3.data;var C=void 0,v=void 0,O=void 0,T=0,M=0;for(C=0,v=k.length;C<v;C++){O=k[C];T+=O.end-O.start;M+=O.codingpasses;}var E=new Uint8Array(T);var D=0;for(C=0,v=k.length;C<v;C++){O=k[C];var _e252=O.data.subarray(O.start,O.end);E.set(_e252,D);D+=_e252.length;}var N=new i.ArithmeticDecoder(E,0,T);S.setDecoder(N);for(C=0;C<M;C++){switch(x){case 0:S.runSignificancePropagationPass();break;case 1:S.runMagnitudeRefinementPass();break;case 2:S.runCleanupPass();l&&S.checkSegmentationSymbol();}h&&S.reset();x=(x+1)%3;}var R=_b3.tbx0_-u+(_b3.tby0_-d)*f;var L=S.coefficentsSign,j=S.coefficentsMagnitude,$=S.bitsDecoded,_=c?0:.5;var U=void 0,X=void 0,H=void 0;D=0;var q=\"LL\"!==a.type;for(C=0;C<w;C++){var _r158=2*(R/f|0)*(t-f)+p+m;for(U=0;U<y;U++){X=j[D];if(0!==X){X=(X+_)*n;0!==L[D]&&(X=-X);H=$[D];var _t201=q?_r158+(R<<1):R;e[_t201]=c&&H>=s?X:X*(1<<s-H);}R++;D++;}R+=f-y;}}}function transformTile(e,t,r){var a=t.components[r],n=a.codingStyleParameters,i=a.quantizationParameters,o=n.decompositionLevelsCount,c=i.SPqcds,l=i.scalarExpounded,h=i.guardBits,u=n.segmentationSymbolUsed,d=n.resetContextProbabilities,f=e.components[r].precision,g=n.reversibleTransformation,p=g?new ReversibleTransform():new IrreversibleTransform(),m=[];var b=0;for(var _e253=0;_e253<=o;_e253++){var _t202=a.resolutions[_e253],_r159=_t202.trx1-_t202.trx0,_n81=_t202.try1-_t202.try0,_i91=new Float32Array(_r159*_n81);for(var _a125=0,_n82=_t202.subbands.length;_a125<_n82;_a125++){var _n83=void 0,_o37=void 0;if(l){_n83=c[b].mu;_o37=c[b].epsilon;b++;}else{_n83=c[0].mu;_o37=c[0].epsilon+(_e253>0?1-_e253:0);}var _p8=_t202.subbands[_a125],_m6=s[_p8.type];copyCoefficients(_i91,_r159,0,_p8,g?1:Math.pow(2,f+_m6-_o37)*(1+_n83/2048),h+_o37-1,g,u,d);}m.push({width:_r159,height:_n81,items:_i91});}var y=p.calculate(m,a.tcx0,a.tcy0);return{left:a.tcx0,top:a.tcy0,width:y.width,height:y.height,items:y.items};}function initializeTile(e,t){var r=e.SIZ.Csiz,a=e.tiles[t];for(var _t203=0;_t203<r;_t203++){var _r160=a.components[_t203],_n84=void 0!==e.currentTile.QCC[_t203]?e.currentTile.QCC[_t203]:e.currentTile.QCD;_r160.quantizationParameters=_n84;var _i92=void 0!==e.currentTile.COC[_t203]?e.currentTile.COC[_t203]:e.currentTile.COD;_r160.codingStyleParameters=_i92;}a.codingStyleDefaultParameters=e.currentTile.COD;}var TagTree=/*#__PURE__*/function(){function TagTree(e,t){_classCallCheck(this,TagTree);var r=(0,n.log2)(Math.max(e,t))+1;this.levels=[];for(var _a126=0;_a126<r;_a126++){var _r161={width:e,height:t,items:[]};this.levels.push(_r161);e=Math.ceil(e/2);t=Math.ceil(t/2);}}_createClass(TagTree,[{key:\"reset\",value:function reset(e,t){var r,a=0,n=0;for(;a<this.levels.length;){r=this.levels[a];var _i93=e+t*r.width;if(void 0!==r.items[_i93]){n=r.items[_i93];break;}r.index=_i93;e>>=1;t>>=1;a++;}a--;r=this.levels[a];r.items[r.index]=n;this.currentLevel=a;delete this.value;}},{key:\"incrementValue\",value:function incrementValue(){var e=this.levels[this.currentLevel];e.items[e.index]++;}},{key:\"nextLevel\",value:function nextLevel(){var e=this.currentLevel,t=this.levels[e];var r=t.items[t.index];e--;if(e<0){this.value=r;return!1;}this.currentLevel=e;t=this.levels[e];t.items[t.index]=r;return!0;}}]);return TagTree;}();var InclusionTree=/*#__PURE__*/function(){function InclusionTree(e,t,r){_classCallCheck(this,InclusionTree);var a=(0,n.log2)(Math.max(e,t))+1;this.levels=[];for(var _n85=0;_n85<a;_n85++){var _a127=new Uint8Array(e*t);for(var _e254=0,_t204=_a127.length;_e254<_t204;_e254++)_a127[_e254]=r;var _n86={width:e,height:t,items:_a127};this.levels.push(_n86);e=Math.ceil(e/2);t=Math.ceil(t/2);}}_createClass(InclusionTree,[{key:\"reset\",value:function reset(e,t,r){var a=0;for(;a<this.levels.length;){var _n87=this.levels[a],_i94=e+t*_n87.width;_n87.index=_i94;var _s55=_n87.items[_i94];if(255===_s55)break;if(_s55>r){this.currentLevel=a;this.propagateValues();return!1;}e>>=1;t>>=1;a++;}this.currentLevel=a-1;return!0;}},{key:\"incrementValue\",value:function incrementValue(e){var t=this.levels[this.currentLevel];t.items[t.index]=e+1;this.propagateValues();}},{key:\"propagateValues\",value:function propagateValues(){var e=this.currentLevel,t=this.levels[e];var r=t.items[t.index];for(;--e>=0;){t=this.levels[e];t.items[t.index]=r;}}},{key:\"nextLevel\",value:function nextLevel(){var e=this.currentLevel,t=this.levels[e];var r=t.items[t.index];t.items[t.index]=255;e--;if(e<0)return!1;this.currentLevel=e;t=this.levels[e];t.items[t.index]=r;return!0;}}]);return InclusionTree;}();var o=function BitModelClosure(){var e=17,t=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]),r=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]),a=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]);return/*#__PURE__*/function(){function BitModel(e,n,i,s,o){_classCallCheck(this,BitModel);this.width=e;this.height=n;var c;c=\"HH\"===i?a:\"HL\"===i?r:t;this.contextLabelTable=c;var l=e*n;this.neighborsSignificance=new Uint8Array(l);this.coefficentsSign=new Uint8Array(l);var h;h=o>14?new Uint32Array(l):o>6?new Uint16Array(l):new Uint8Array(l);this.coefficentsMagnitude=h;this.processingFlags=new Uint8Array(l);var u=new Uint8Array(l);if(0!==s)for(var _e255=0;_e255<l;_e255++)u[_e255]=s;this.bitsDecoded=u;this.reset();}_createClass(BitModel,[{key:\"setDecoder\",value:function setDecoder(e){this.decoder=e;}},{key:\"reset\",value:function reset(){this.contexts=new Int8Array(19);this.contexts[0]=8;this.contexts[17]=92;this.contexts[18]=6;}},{key:\"setNeighborsSignificance\",value:function setNeighborsSignificance(e,t,r){var a=this.neighborsSignificance,n=this.width,i=this.height,s=t>0,o=t+1<n;var c;if(e>0){c=r-n;s&&(a[c-1]+=16);o&&(a[c+1]+=16);a[c]+=4;}if(e+1<i){c=r+n;s&&(a[c-1]+=16);o&&(a[c+1]+=16);a[c]+=4;}s&&(a[r-1]+=1);o&&(a[r+1]+=1);a[r]|=128;}},{key:\"runSignificancePropagationPass\",value:function runSignificancePropagationPass(){var e=this.decoder,t=this.width,r=this.height,a=this.coefficentsMagnitude,n=this.coefficentsSign,i=this.neighborsSignificance,s=this.processingFlags,o=this.contexts,c=this.contextLabelTable,l=this.bitsDecoded;for(var _h13=0;_h13<r;_h13+=4)for(var u=0;u<t;u++){var d=_h13*t+u;for(var f=0;f<4;f++,d+=t){var _t205=_h13+f;if(_t205>=r)break;s[d]&=-2;if(a[d]||!i[d])continue;var _g12=c[i[d]];if(e.readBit(o,_g12)){var _e256=this.decodeSignBit(_t205,u,d);n[d]=_e256;a[d]=1;this.setNeighborsSignificance(_t205,u,d);s[d]|=2;}l[d]++;s[d]|=1;}}}},{key:\"decodeSignBit\",value:function decodeSignBit(e,t,r){var a=this.width,n=this.height,i=this.coefficentsMagnitude,s=this.coefficentsSign;var o,c,l,h,u,d;h=t>0&&0!==i[r-1];if(t+1<a&&0!==i[r+1]){l=s[r+1];if(h){c=s[r-1];o=1-l-c;}else o=1-l-l;}else if(h){c=s[r-1];o=1-c-c;}else o=0;var f=3*o;h=e>0&&0!==i[r-a];if(e+1<n&&0!==i[r+a]){l=s[r+a];if(h){c=s[r-a];o=1-l-c+f;}else o=1-l-l+f;}else if(h){c=s[r-a];o=1-c-c+f;}else o=f;if(o>=0){u=9+o;d=this.decoder.readBit(this.contexts,u);}else{u=9-o;d=1^this.decoder.readBit(this.contexts,u);}return d;}},{key:\"runMagnitudeRefinementPass\",value:function runMagnitudeRefinementPass(){var e=this.decoder,t=this.width,r=this.height,a=this.coefficentsMagnitude,n=this.neighborsSignificance,i=this.contexts,s=this.bitsDecoded,o=this.processingFlags,c=t*r,l=4*t;for(var _r162,_h14=0;_h14<c;_h14=_r162){_r162=Math.min(c,_h14+l);for(var _c27=0;_c27<t;_c27++)for(var _l19=_h14+_c27;_l19<_r162;_l19+=t){if(!a[_l19]||0!=(1&o[_l19]))continue;var _t206=16;if(0!=(2&o[_l19])){o[_l19]^=2;_t206=0===(127&n[_l19])?15:14;}var _r163=e.readBit(i,_t206);a[_l19]=a[_l19]<<1|_r163;s[_l19]++;o[_l19]|=1;}}}},{key:\"runCleanupPass\",value:function runCleanupPass(){var t=this.decoder,r=this.width,a=this.height,n=this.neighborsSignificance,i=this.coefficentsMagnitude,s=this.coefficentsSign,o=this.contexts,c=this.contextLabelTable,l=this.bitsDecoded,h=this.processingFlags,u=r,d=2*r,f=3*r;var g;for(var _p9=0;_p9<a;_p9=g){g=Math.min(_p9+4,a);var _m7=_p9*r,b=_p9+3<a;for(var _a128=0;_a128<r;_a128++){var y=_m7+_a128;var w=void 0,S=0,x=y,k=_p9;if(b&&0===h[y]&&0===h[y+u]&&0===h[y+d]&&0===h[y+f]&&0===n[y]&&0===n[y+u]&&0===n[y+d]&&0===n[y+f]){if(!t.readBit(o,18)){l[y]++;l[y+u]++;l[y+d]++;l[y+f]++;continue;}S=t.readBit(o,e)<<1|t.readBit(o,e);if(0!==S){k=_p9+S;x+=S*r;}w=this.decodeSignBit(k,_a128,x);s[x]=w;i[x]=1;this.setNeighborsSignificance(k,_a128,x);h[x]|=2;x=y;for(var _e257=_p9;_e257<=k;_e257++,x+=r)l[x]++;S++;}for(k=_p9+S;k<g;k++,x+=r){if(i[x]||0!=(1&h[x]))continue;var _e258=c[n[x]];if(1===t.readBit(o,_e258)){w=this.decodeSignBit(k,_a128,x);s[x]=w;i[x]=1;this.setNeighborsSignificance(k,_a128,x);h[x]|=2;}l[x]++;}}}}},{key:\"checkSegmentationSymbol\",value:function checkSegmentationSymbol(){var t=this.decoder,r=this.contexts;if(10!==(t.readBit(r,e)<<3|t.readBit(r,e)<<2|t.readBit(r,e)<<1|t.readBit(r,e)))throw new JpxError(\"Invalid segmentation symbol\");}}]);return BitModel;}();}();var Transform=/*#__PURE__*/function(){function Transform(){_classCallCheck(this,Transform);this.constructor===Transform&&(0,a.unreachable)(\"Cannot initialize Transform.\");}_createClass(Transform,[{key:\"calculate\",value:function calculate(e,t,r){var a=e[0];for(var _n88=1,_i95=e.length;_n88<_i95;_n88++)a=this.iterate(a,e[_n88],t,r);return a;}},{key:\"extend\",value:function extend(e,t,r){var a=t-1,n=t+1,i=t+r-2,s=t+r;e[a--]=e[n++];e[s++]=e[i--];e[a--]=e[n++];e[s++]=e[i--];e[a--]=e[n++];e[s++]=e[i--];e[a]=e[n];e[s]=e[i];}},{key:\"filter\",value:function filter(e,t,r){(0,a.unreachable)(\"Abstract method `filter` called\");}},{key:\"iterate\",value:function iterate(e,t,r,a){var n=e.width,i=e.height;var s=e.items;var o=t.width,c=t.height,l=t.items;var h,u,d,f,g,p;for(d=0,h=0;h<i;h++){f=2*h*o;for(u=0;u<n;u++,d++,f+=2)l[f]=s[d];}s=e.items=null;var m=new Float32Array(o+8);if(1===o){if(0!=(1&r))for(p=0,d=0;p<c;p++,d+=o)l[d]*=.5;}else for(p=0,d=0;p<c;p++,d+=o){var _context239;m.set(l.subarray(d,d+o),4);this.extend(m,4,o);_filterInstanceProperty(_context239=this).call(_context239,m,4,o);l.set(m.subarray(4,4+o),d);}var b=16;var y=[];for(h=0;h<b;h++)y.push(new Float32Array(c+8));var w,S=0;e=4+c;if(1===c){if(0!=(1&a))for(g=0;g<o;g++)l[g]*=.5;}else for(g=0;g<o;g++){var _context240;if(0===S){b=Math.min(o-g,b);for(d=g,f=4;f<e;d+=o,f++)for(w=0;w<b;w++)y[w][f]=l[d+w];S=b;}S--;var _t207=y[S];this.extend(_t207,4,c);_filterInstanceProperty(_context240=this).call(_context240,_t207,4,c);if(0===S){d=g-b+1;for(f=4;f<e;d+=o,f++)for(w=0;w<b;w++)l[d+w]=y[w][f];}}return{width:o,height:c,items:l};}}]);return Transform;}();var IrreversibleTransform=/*#__PURE__*/function(_Transform){_inherits(IrreversibleTransform,_Transform);function IrreversibleTransform(){_classCallCheck(this,IrreversibleTransform);return _callSuper(this,IrreversibleTransform,arguments);}_createClass(IrreversibleTransform,[{key:\"filter\",value:function filter(e,t,r){var a=r>>1;var n,i,s,o;var c=-1.586134342059924,l=-.052980118572961,h=.882911075530934,u=.443506852043971,d=1.230174104914001;n=(t|=0)-3;for(i=a+4;i--;n+=2)e[n]*=.8128930661159609;n=t-2;s=u*e[n-1];for(i=a+3;i--;n+=2){o=u*e[n+1];e[n]=d*e[n]-s-o;if(!i--)break;n+=2;s=u*e[n+1];e[n]=d*e[n]-s-o;}n=t-1;s=h*e[n-1];for(i=a+2;i--;n+=2){o=h*e[n+1];e[n]-=s+o;if(!i--)break;n+=2;s=h*e[n+1];e[n]-=s+o;}n=t;s=l*e[n-1];for(i=a+1;i--;n+=2){o=l*e[n+1];e[n]-=s+o;if(!i--)break;n+=2;s=l*e[n+1];e[n]-=s+o;}if(0!==a){n=t+1;s=c*e[n-1];for(i=a;i--;n+=2){o=c*e[n+1];e[n]-=s+o;if(!i--)break;n+=2;s=c*e[n+1];e[n]-=s+o;}}}}]);return IrreversibleTransform;}(Transform);var ReversibleTransform=/*#__PURE__*/function(_Transform2){_inherits(ReversibleTransform,_Transform2);function ReversibleTransform(){_classCallCheck(this,ReversibleTransform);return _callSuper(this,ReversibleTransform,arguments);}_createClass(ReversibleTransform,[{key:\"filter\",value:function filter(e,t,r){var a=r>>1;var n,i;for(n=t|=0,i=a+1;i--;n+=2)e[n]-=e[n-1]+e[n+1]+2>>2;for(n=t+1,i=a;i--;n+=2)e[n]+=e[n-1]+e[n+1]>>1;}}]);return ReversibleTransform;}(Transform);},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.LZWStream=void 0;var a=r(144);var LZWStream=/*#__PURE__*/function(_a$DecodeStream6){_inherits(LZWStream,_a$DecodeStream6);function LZWStream(e,t,r){var _this73;_classCallCheck(this,LZWStream);_this73=_callSuper(this,LZWStream,[t]);_this73.str=e;_this73.dict=e.dict;_this73.cachedData=0;_this73.bitsCached=0;var a=4096,n={earlyChange:r,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(a),dictionaryLengths:new Uint16Array(a),dictionaryPrevCodes:new Uint16Array(a),currentSequence:new Uint8Array(a),currentSequenceLength:0};for(var _e259=0;_e259<256;++_e259){n.dictionaryValues[_e259]=_e259;n.dictionaryLengths[_e259]=1;}_this73.lzwState=n;return _this73;}_createClass(LZWStream,[{key:\"readBits\",value:function readBits(e){var t=this.bitsCached,r=this.cachedData;for(;t<e;){var _e260=this.str.getByte();if(-1===_e260){this.eof=!0;return null;}r=r<<8|_e260;t+=8;}this.bitsCached=t-=e;this.cachedData=r;this.lastCode=null;return r>>>t&(1<<e)-1;}},{key:\"readBlock\",value:function readBlock(){var e,t,r,a=1024;var n=this.lzwState;if(!n)return;var i=n.earlyChange;var s=n.nextCode;var o=n.dictionaryValues,c=n.dictionaryLengths,l=n.dictionaryPrevCodes;var h=n.codeLength,u=n.prevCode;var d=n.currentSequence;var f=n.currentSequenceLength,g=0,p=this.bufferLength,m=this.ensureBuffer(this.bufferLength+a);for(e=0;e<512;e++){var _e261=this.readBits(h),_n89=f>0;if(_e261<256){d[0]=_e261;f=1;}else{if(!(_e261>=258)){if(256===_e261){h=9;s=258;f=0;continue;}this.eof=!0;delete this.lzwState;break;}if(_e261<s){f=c[_e261];for(t=f-1,r=_e261;t>=0;t--){d[t]=o[r];r=l[r];}}else d[f++]=d[0];}if(_n89){l[s]=u;c[s]=c[u]+1;o[s]=d[0];s++;h=s+i&s+i-1?h:0|Math.min(Math.log(s+i)/.6931471805599453+1,12);}u=_e261;g+=f;if(a<g){do{a+=512;}while(a<g);m=this.ensureBuffer(this.bufferLength+a);}for(t=0;t<f;t++)m[p++]=d[t];}n.nextCode=s;n.codeLength=h;n.prevCode=u;n.currentSequenceLength=f;this.bufferLength=p;}}]);return LZWStream;}(a.DecodeStream);t.LZWStream=LZWStream;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.PredictorStream=void 0;var a=r(144),n=r(130),i=r(2);var PredictorStream=/*#__PURE__*/function(_a$DecodeStream7){_inherits(PredictorStream,_a$DecodeStream7);function PredictorStream(e,t,r){var _this74;_classCallCheck(this,PredictorStream);_this74=_callSuper(this,PredictorStream,[t]);if(!(r instanceof n.Dict))return _possibleConstructorReturn(_this74,e);var a=_this74.predictor=r.get(\"Predictor\")||1;if(a<=1)return _possibleConstructorReturn(_this74,e);if(2!==a&&(a<10||a>15))throw new i.FormatError(\"Unsupported predictor: \".concat(a));_this74.readBlock=2===a?_this74.readBlockTiff:_this74.readBlockPng;_this74.str=e;_this74.dict=e.dict;var s=_this74.colors=r.get(\"Colors\")||1,o=_this74.bits=r.get(\"BPC\",\"BitsPerComponent\")||8,c=_this74.columns=r.get(\"Columns\")||1;_this74.pixBytes=s*o+7>>3;_this74.rowBytes=c*s*o+7>>3;return _possibleConstructorReturn(_this74,_assertThisInitialized(_this74));}_createClass(PredictorStream,[{key:\"readBlockTiff\",value:function readBlockTiff(){var e=this.rowBytes,t=this.bufferLength,r=this.ensureBuffer(t+e),a=this.bits,n=this.colors,i=this.str.getBytes(e);this.eof=!i.length;if(this.eof)return;var s,o=0,c=0,l=0,h=0,u=t;if(1===a&&1===n)for(s=0;s<e;++s){var _e262=i[s]^o;_e262^=_e262>>1;_e262^=_e262>>2;_e262^=_e262>>4;o=(1&_e262)<<7;r[u++]=_e262;}else if(8===a){for(s=0;s<n;++s)r[u++]=i[s];for(;s<e;++s){r[u]=r[u-n]+i[s];u++;}}else if(16===a){var _t208=2*n;for(s=0;s<_t208;++s)r[u++]=i[s];for(;s<e;s+=2){var _e263=((255&i[s])<<8)+(255&i[s+1])+((255&r[u-_t208])<<8)+(255&r[u-_t208+1]);r[u++]=_e263>>8&255;r[u++]=255&_e263;}}else{var _e264=new Uint8Array(n+1),_u7=(1<<a)-1;var d=0,f=t;var _g13=this.columns;for(s=0;s<_g13;++s)for(var _t209=0;_t209<n;++_t209){if(l<a){o=o<<8|255&i[d++];l+=8;}_e264[_t209]=_e264[_t209]+(o>>l-a)&_u7;l-=a;c=c<<a|_e264[_t209];h+=a;if(h>=8){r[f++]=c>>h-8&255;h-=8;}}h>0&&(r[f++]=(c<<8-h)+(o&(1<<8-h)-1));}this.bufferLength+=e;}},{key:\"readBlockPng\",value:function readBlockPng(){var e=this.rowBytes,t=this.pixBytes,r=this.str.getByte(),a=this.str.getBytes(e);this.eof=!a.length;if(this.eof)return;var n=this.bufferLength,s=this.ensureBuffer(n+e);var o=s.subarray(n-e,n);0===o.length&&(o=new Uint8Array(e));var c,l,h,u=n;switch(r){case 0:for(c=0;c<e;++c)s[u++]=a[c];break;case 1:for(c=0;c<t;++c)s[u++]=a[c];for(;c<e;++c){s[u]=s[u-t]+a[c]&255;u++;}break;case 2:for(c=0;c<e;++c)s[u++]=o[c]+a[c]&255;break;case 3:for(c=0;c<t;++c)s[u++]=(o[c]>>1)+a[c];for(;c<e;++c){s[u]=(o[c]+s[u-t]>>1)+a[c]&255;u++;}break;case 4:for(c=0;c<t;++c){l=o[c];h=a[c];s[u++]=l+h;}for(;c<e;++c){l=o[c];var _e265=o[c-t],_r164=s[u-t],_n90=_r164+l-_e265;var _i96=_n90-_r164;_i96<0&&(_i96=-_i96);var d=_n90-l;d<0&&(d=-d);var f=_n90-_e265;f<0&&(f=-f);h=a[c];s[u++]=_i96<=d&&_i96<=f?_r164+h:d<=f?l+h:_e265+h;}break;default:throw new i.FormatError(\"Unsupported predictor: \".concat(r));}this.bufferLength+=e;}}]);return PredictorStream;}(a.DecodeStream);t.PredictorStream=PredictorStream;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.RunLengthStream=void 0;var a=r(144);var RunLengthStream=/*#__PURE__*/function(_a$DecodeStream8){_inherits(RunLengthStream,_a$DecodeStream8);function RunLengthStream(e,t){var _this75;_classCallCheck(this,RunLengthStream);_this75=_callSuper(this,RunLengthStream,[t]);_this75.str=e;_this75.dict=e.dict;return _this75;}_createClass(RunLengthStream,[{key:\"readBlock\",value:function readBlock(){var e=this.str.getBytes(2);if(!e||e.length<2||128===e[0]){this.eof=!0;return;}var t,r=this.bufferLength,a=e[0];if(a<128){t=this.ensureBuffer(r+a+1);t[r++]=e[1];if(a>0){var _e266=this.str.getBytes(a);t.set(_e266,r);r+=a;}}else{a=257-a;var _n91=e[1];t=this.ensureBuffer(r+a+1);for(var _e267=0;_e267<a;_e267++)t[r++]=_n91;}this.bufferLength=r;}}]);return RunLengthStream;}(a.DecodeStream);t.RunLengthStream=RunLengthStream;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.Font=t.ErrorFont=void 0;var a=r(2),n=r(160),i=r(163),s=r(165),o=r(164),c=r(162),l=r(166),h=r(167),u=r(168),d=r(169),f=r(170),g=r(171),p=r(141),m=r(172),b=r(131),y=r(135),w=r(173);var S=[[57344,63743],[1048576,1114109]],x=1e3,k=[\"ascent\",\"bbox\",\"black\",\"bold\",\"charProcOperatorList\",\"composite\",\"cssFontInfo\",\"data\",\"defaultVMetrics\",\"defaultWidth\",\"descent\",\"fallbackName\",\"fontMatrix\",\"fontType\",\"isType3Font\",\"italic\",\"loadedName\",\"mimetype\",\"missingFile\",\"name\",\"remeasure\",\"subtype\",\"type\",\"vertical\"],C=[\"cMap\",\"defaultEncoding\",\"differences\",\"isMonospace\",\"isSerifFont\",\"isSymbolicFont\",\"seacMap\",\"toFontChar\",\"toUnicode\",\"vmetrics\",\"widths\"];function adjustWidths(e){if(!e.fontMatrix)return;if(e.fontMatrix[0]===a.FONT_IDENTITY_MATRIX[0])return;var t=.001/e.fontMatrix[0],r=e.widths;for(var _e268 in r)r[_e268]*=t;e.defaultWidth*=t;}function amendFallbackToUnicode(e){if(!e.fallbackToUnicode)return;if(e.toUnicode instanceof h.IdentityToUnicodeMap)return;var t=[];for(var _r165 in e.fallbackToUnicode)e.toUnicode.has(_r165)||(t[_r165]=e.fallbackToUnicode[_r165]);t.length>0&&e.toUnicode.amend(t);}var Glyph=/*#__PURE__*/function(){function Glyph(e,t,r,a,n,i,o,c,l){_classCallCheck(this,Glyph);this.originalCharCode=e;this.fontChar=t;this.unicode=r;this.accent=a;this.width=n;this.vmetric=i;this.operatorListId=o;this.isSpace=c;this.isInFont=l;var h=(0,s.getCharUnicodeCategory)(r);this.isWhitespace=h.isWhitespace;this.isZeroWidthDiacritic=h.isZeroWidthDiacritic;this.isInvisibleFormatMark=h.isInvisibleFormatMark;}_createClass(Glyph,[{key:\"matchesForCache\",value:function matchesForCache(e,t,r,a,n,i,s,o,c){return this.originalCharCode===e&&this.fontChar===t&&this.unicode===r&&this.accent===a&&this.width===n&&this.vmetric===i&&this.operatorListId===s&&this.isSpace===o&&this.isInFont===c;}}]);return Glyph;}();function int16(e,t){return(e<<8)+t;}function writeSignedInt16(e,t,r){e[t+1]=r;e[t]=r>>>8;}function signedInt16(e,t){var r=(e<<8)+t;return 32768&r?r-65536:r;}function string16(e){return String.fromCharCode(e>>8&255,255&e);}function safeString16(e){e>32767?e=32767:e<-32768&&(e=-32768);return String.fromCharCode(e>>8&255,255&e);}function isTrueTypeCollectionFile(e){var t=e.peekBytes(4);return\"ttcf\"===(0,a.bytesToString)(t);}function getFontFileType(e,t){var r,n,i=t.type,s=t.subtype,o=t.composite;if(function isTrueTypeFile(e){var t=e.peekBytes(4);return 65536===(0,b.readUint32)(t,0)||\"true\"===(0,a.bytesToString)(t);}(e)||isTrueTypeCollectionFile(e))r=o?\"CIDFontType2\":\"TrueType\";else if(function isOpenTypeFile(e){var t=e.peekBytes(4);return\"OTTO\"===(0,a.bytesToString)(t);}(e))r=o?\"CIDFontType2\":\"OpenType\";else if(function isType1File(e){var t=e.peekBytes(2);return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1];}(e))r=o?\"CIDFontType0\":\"MMType1\"===i?\"MMType1\":\"Type1\";else if(function isCFFFile(e){var t=e.peekBytes(4);return t[0]>=1&&t[3]>=1&&t[3]<=4;}(e)){if(o){r=\"CIDFontType0\";n=\"CIDFontType0C\";}else{r=\"MMType1\"===i?\"MMType1\":\"Type1\";n=\"Type1C\";}}else{(0,a.warn)(\"getFontFileType: Unable to detect correct font file Type/Subtype.\");r=i;n=s;}return[r,n];}function applyStandardFontGlyphMap(e,t){for(var _r166 in t)e[+_r166]=t[_r166];}function buildToFontChar(e,t,r){var a=[];var n;for(var _r167=0,_i97=e.length;_r167<_i97;_r167++){n=(0,s.getUnicodeForGlyph)(e[_r167],t);-1!==n&&(a[_r167]=n);}for(var _e269 in r){n=(0,s.getUnicodeForGlyph)(r[_e269],t);-1!==n&&(a[+_e269]=n);}return a;}function convertCidString(e,t){var _context241;var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];switch(t.length){case 1:return t.charCodeAt(0);case 2:return t.charCodeAt(0)<<8|t.charCodeAt(1);}var n=_concatInstanceProperty(_context241=\"Unsupported CID string (charCode \".concat(e,\"): \\\"\")).call(_context241,t,\"\\\".\");if(r)throw new a.FormatError(n);(0,a.warn)(n);return t;}function adjustMapping(e,t,r,n){var i=Object.create(null),s=new _Map(),o=[],c=new _Set();var l=0;var h=S[l][0];var u=h,d=S[l][1];for(var _f6 in e){_f6|=0;var _g14=e[_f6];if(!t(_g14))continue;if(u>d){l++;if(l>=S.length){(0,a.warn)(\"Ran out of space in font private use area.\");break;}u=S[l][0];d=S[l][1];}var _p10=u++;0===_g14&&(_g14=r);var _m8=n.get(_f6);\"string\"==typeof _m8&&(_m8=_codePointAtInstanceProperty(_m8).call(_m8,0));if(_m8&&_m8<h&&!c.has(_g14)){s.set(_m8,_g14);c.add(_g14);}i[_p10]=_g14;o[_f6]=_p10;}return{toFontChar:o,charCodeToGlyphId:i,toUnicodeExtraMap:s,nextAvailableFontCharCode:u};}function createCmapTable(e,t,r){var n=function getRanges(e,t,r){var a=[];for(var _t210 in e)e[_t210]>=r||a.push({fontCharCode:0|_t210,glyphId:e[_t210]});if(t){var _iterator74=_createForOfIteratorHelper(t),_step74;try{for(_iterator74.s();!(_step74=_iterator74.n()).done;){var _step74$value=_slicedToArray(_step74.value,2),_e270=_step74$value[0],_n92=_step74$value[1];_n92>=r||a.push({fontCharCode:_e270,glyphId:_n92});}}catch(err){_iterator74.e(err);}finally{_iterator74.f();}}0===a.length&&a.push({fontCharCode:0,glyphId:0});_sortInstanceProperty(a).call(a,function fontGetRangesSort(e,t){return e.fontCharCode-t.fontCharCode;});var n=[],i=a.length;for(var _e271=0;_e271<i;){var _t211=a[_e271].fontCharCode,_r168=[a[_e271].glyphId];++_e271;var _s56=_t211;for(;_e271<i&&_s56+1===a[_e271].fontCharCode;){_r168.push(a[_e271].glyphId);++_s56;++_e271;if(65535===_s56)break;}n.push([_t211,_s56,_r168]);}return n;}(e,t,r),i=n.at(-1)[1]>65535?2:1;var s,o,c,l,h=\"\\0\\0\"+string16(i)+\"\\0\u0003\\0\u0001\"+(0,a.string32)(4+8*i);for(s=n.length-1;s>=0&&!(n[s][0]<=65535);--s);var u=s+1;n[s][0]<65535&&65535===n[s][1]&&(n[s][1]=65534);var d=n[s][1]<65535?1:0,f=u+d,g=m.OpenTypeFileBuilder.getSearchParams(f,2);var p,b,y,w,S=\"\",x=\"\",k=\"\",C=\"\",v=\"\",O=0;for(s=0,o=u;s<o;s++){p=n[s];b=p[0];y=p[1];S+=string16(b);x+=string16(y);w=p[2];var _e272=!0;for(c=1,l=w.length;c<l;++c)if(w[c]!==w[c-1]+1){_e272=!1;break;}if(_e272){k+=string16(w[0]-b&65535);C+=string16(0);}else{var _e273=2*(f-s)+2*O;O+=y-b+1;k+=string16(0);C+=string16(_e273);for(c=0,l=w.length;c<l;++c)v+=string16(w[c]);}}if(d>0){x+=\"ÿÿ\";S+=\"ÿÿ\";k+=\"\\0\u0001\";C+=\"\\0\\0\";}var T=\"\\0\\0\"+string16(2*f)+string16(g.range)+string16(g.entry)+string16(g.rangeShift)+x+\"\\0\\0\"+S+k+C+v;var M=\"\",E=\"\";if(i>1){h+=\"\\0\u0003\\0\\n\"+(0,a.string32)(4+8*i+4+T.length);M=\"\";for(s=0,o=n.length;s<o;s++){p=n[s];b=p[0];w=p[2];var _e274=w[0];for(c=1,l=w.length;c<l;++c)if(w[c]!==w[c-1]+1){y=p[0]+c-1;M+=(0,a.string32)(b)+(0,a.string32)(y)+(0,a.string32)(_e274);b=y+1;_e274=w[c];}M+=(0,a.string32)(b)+(0,a.string32)(p[1])+(0,a.string32)(_e274);}E=\"\\0\\f\\0\\0\"+(0,a.string32)(M.length+16)+\"\\0\\0\\0\\0\"+(0,a.string32)(M.length/12);}return h+\"\\0\u0004\"+string16(T.length+4)+T+E+M;}function createOS2Table(e,t,r){r=r||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var n=0,i=0,o=0,c=0,l=null,h=0;if(t){for(var _e275 in t){_e275|=0;(l>_e275||!l)&&(l=_e275);h<_e275&&(h=_e275);var _t212=(0,s.getUnicodeRangeFor)(_e275);if(_t212<32)n|=1<<_t212;else if(_t212<64)i|=1<<_t212-32;else if(_t212<96)o|=1<<_t212-64;else{if(!(_t212<123))throw new a.FormatError(\"Unicode ranges Bits > 123 are reserved for internal usage\");c|=1<<_t212-96;}}h>65535&&(h=65535);}else{l=0;h=255;}var u=e.bbox||[0,0,0,0],d=r.unitsPerEm||1/(e.fontMatrix||a.FONT_IDENTITY_MATRIX)[0],f=e.ascentScaled?1:d/x,g=r.ascent||Math.round(f*(e.ascent||u[3]));var p=r.descent||Math.round(f*(e.descent||u[1]));p>0&&e.descent>0&&u[1]<0&&(p=-p);var m=r.yMax||g,b=-r.yMin||-p;return\"\\0\u0003\u0002$\u0001ô\\0\u0005\\0\\0\u0002\u0002»\\0\\0\\0\u0002\u0002»\\0\\0\u0001ß\\x001\u0001\u0002\\0\\0\\0\\0\u0006\"+String.fromCharCode(e.fixedPitch?9:0)+\"\\0\\0\\0\\0\\0\\0\"+(0,a.string32)(n)+(0,a.string32)(i)+(0,a.string32)(o)+(0,a.string32)(c)+\"*21*\"+string16(e.italicAngle?1:0)+string16(l||e.firstChar)+string16(h||e.lastChar)+string16(g)+string16(p)+\"\\0d\"+string16(m)+string16(b)+\"\\0\\0\\0\\0\\0\\0\\0\\0\"+string16(e.xHeight)+string16(e.capHeight)+string16(0)+string16(l||e.firstChar)+\"\\0\u0003\";}function createPostTable(e){var t=Math.floor(65536*e.italicAngle);return\"\\0\u0003\\0\\0\"+(0,a.string32)(t)+\"\\0\\0\\0\\0\"+(0,a.string32)(e.fixedPitch?1:0)+\"\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\";}function createPostscriptName(e){var _context242;return _sliceInstanceProperty(_context242=e.replace(/[^\\x21-\\x7E]|[[\\](){}<>/%]/g,\"\")).call(_context242,0,63);}function createNameTable(e,t){t||(t=[[],[]]);var r=[t[0][0]||\"Original licence\",t[0][1]||e,t[0][2]||\"Unknown\",t[0][3]||\"uniqueID\",t[0][4]||e,t[0][5]||\"Version 0.11\",t[0][6]||createPostscriptName(e),t[0][7]||\"Unknown\",t[0][8]||\"Unknown\",t[0][9]||\"Unknown\"],a=[];var n,i,s,o,c;for(n=0,i=r.length;n<i;n++){c=t[1][n]||r[n];var _e276=[];for(s=0,o=c.length;s<o;s++)_e276.push(string16(c.charCodeAt(s)));a.push(_e276.join(\"\"));}var l=[r,a],h=[\"\\0\u0001\",\"\\0\u0003\"],u=[\"\\0\\0\",\"\\0\u0001\"],d=[\"\\0\\0\",\"\u0004\\t\"],f=r.length*h.length;var g=\"\\0\\0\"+string16(f)+string16(12*f+6),p=0;for(n=0,i=h.length;n<i;n++){var _e277=l[n];for(s=0,o=_e277.length;s<o;s++){c=_e277[s];g+=h[n]+u[n]+d[n]+string16(s)+string16(c.length)+string16(p);p+=c.length;}}g+=r.join(\"\")+a.join(\"\");return g;}t.Font=/*#__PURE__*/function(){function Font(e,t,r){_classCallCheck(this,Font);this.name=e;this.psName=null;this.mimetype=null;this.disableFontFace=!1;this.loadedName=r.loadedName;this.isType3Font=r.isType3Font;this.missingFile=!1;this.cssFontInfo=r.cssFontInfo;this._charsCache=Object.create(null);this._glyphCache=Object.create(null);var n=!!(_flagsInstanceProperty(r)&i.FontFlags.Serif);if(!n&&!r.isSimulatedFlags){var _t213=e.replace(/[,_]/g,\"-\").split(\"-\")[0],_r169=(0,l.getSerifFonts)();var _iterator75=_createForOfIteratorHelper(_t213.split(\"+\")),_step75;try{for(_iterator75.s();!(_step75=_iterator75.n()).done;){var _e278=_step75.value;if(_r169[_e278]){n=!0;break;}}}catch(err){_iterator75.e(err);}finally{_iterator75.f();}}this.isSerifFont=n;this.isSymbolicFont=!!(_flagsInstanceProperty(r)&i.FontFlags.Symbolic);this.isMonospace=!!(_flagsInstanceProperty(r)&i.FontFlags.FixedPitch);var s=r.type,o=r.subtype;this.type=s;this.subtype=o;var c,h=\"sans-serif\";this.isMonospace?h=\"monospace\":this.isSerifFont&&(h=\"serif\");this.fallbackName=h;this.differences=r.differences;this.widths=r.widths;this.defaultWidth=r.defaultWidth;this.composite=r.composite;this.cMap=r.cMap;this.capHeight=r.capHeight/x;this.ascent=r.ascent/x;this.descent=r.descent/x;this.lineHeight=this.ascent-this.descent;this.fontMatrix=r.fontMatrix;this.bbox=r.bbox;this.defaultEncoding=r.defaultEncoding;this.toUnicode=r.toUnicode;this.toFontChar=[];if(\"Type3\"!==r.type){this.cidEncoding=r.cidEncoding||\"\";this.vertical=!!r.vertical;if(this.vertical){this.vmetrics=r.vmetrics;this.defaultVMetrics=r.defaultVMetrics;}if(t&&!t.isEmpty){var _context243,_context244,_context245;var _getFontFileType=getFontFileType(t,r);var _getFontFileType2=_slicedToArray(_getFontFileType,2);s=_getFontFileType2[0];o=_getFontFileType2[1];s===this.type&&o===this.subtype||(0,a.info)(_concatInstanceProperty(_context243=_concatInstanceProperty(_context244=_concatInstanceProperty(_context245=\"Inconsistent font file Type/SubType, expected: \".concat(this.type,\"/\")).call(_context245,this.subtype,\" but found: \")).call(_context244,s,\"/\")).call(_context243,o,\".\"));try{switch(s){case\"MMType1\":(0,a.info)(\"MMType1 font (\"+e+\"), falling back to Type1.\");case\"Type1\":case\"CIDFontType0\":this.mimetype=\"font/opentype\";var _n93=\"Type1C\"===o||\"CIDFontType0C\"===o?new u.CFFFont(t,r):new w.Type1Font(e,t,r);adjustWidths(r);c=this.convert(e,_n93,r);break;case\"OpenType\":case\"TrueType\":case\"CIDFontType2\":this.mimetype=\"font/opentype\";c=this.checkAndRepair(e,t,r);if(this.isOpenType){adjustWidths(r);s=\"OpenType\";}break;default:throw new a.FormatError(\"Font \".concat(s,\" is not supported\"));}}catch(e){(0,a.warn)(e);this.fallbackToSystemFont(r);return;}amendFallbackToUnicode(r);this.data=c;this.fontType=(0,i.getFontType)(s,o,r.isStandardFont);this.fontMatrix=r.fontMatrix;this.widths=r.widths;this.defaultWidth=r.defaultWidth;this.toUnicode=r.toUnicode;this.seacMap=r.seacMap;}else{t&&(0,a.warn)('Font file is empty in \"'+e+'\" ('+this.loadedName+\")\");this.fallbackToSystemFont(r);}}else{for(var _e279=0;_e279<256;_e279++)this.toFontChar[_e279]=this.differences[_e279]||r.defaultEncoding[_e279];this.fontType=a.FontType.TYPE3;}}_createClass(Font,[{key:\"renderer\",get:function get(){var e=d.FontRendererFactory.create(this,i.SEAC_ANALYSIS_ENABLED);return(0,a.shadow)(this,\"renderer\",e);}},{key:\"exportData\",value:function exportData(){var _context246;var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?_concatInstanceProperty(_context246=[]).call(_context246,k,C):k,t=Object.create(null);var r,a;var _iterator76=_createForOfIteratorHelper(e),_step76;try{for(_iterator76.s();!(_step76=_iterator76.n()).done;){r=_step76.value;a=this[r];void 0!==a&&(t[r]=a);}}catch(err){_iterator76.e(err);}finally{_iterator76.f();}return t;}},{key:\"fallbackToSystemFont\",value:function fallbackToSystemFont(e){var _context247,_this76=this;this.missingFile=!0;var t=this.name,r=this.type,n=this.subtype;var u=(0,i.normalizeFontName)(t);var d=(0,l.getStdFontMap)(),g=(0,l.getNonStdFontMap)(),p=!!d[u],m=!(!g[u]||!d[g[u]]);u=d[u]||g[u]||u;var b=(0,f.getFontBasicMetrics)()[u];if(b){isNaN(this.ascent)&&(this.ascent=b.ascent/x);isNaN(this.descent)&&(this.descent=b.descent/x);isNaN(this.capHeight)&&(this.capHeight=b.capHeight/x);}this.bold=-1!==u.search(/bold/gi);this.italic=-1!==u.search(/oblique/gi)||-1!==u.search(/italic/gi);this.black=-1!==t.search(/Black/g);var y=-1!==t.search(/Narrow/g);this.remeasure=(!p||y)&&_Object$keys(this.widths).length>0;if((p||m)&&\"CIDFontType2\"===r&&_startsWithInstanceProperty(_context247=this.cidEncoding).call(_context247,\"Identity-\")){var _r170=e.cidToGidMap,_a129=[];applyStandardFontGlyphMap(_a129,(0,l.getGlyphMapForStandardFonts)());/Arial-?Black/i.test(t)?applyStandardFontGlyphMap(_a129,(0,l.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(t)&&applyStandardFontGlyphMap(_a129,(0,l.getSupplementalGlyphMapForCalibri)());if(_r170){for(var _e280 in _a129){var _t214=_a129[_e280];void 0!==_r170[_t214]&&(_a129[+_e280]=_r170[_t214]);}_r170.length!==this.toUnicode.length&&e.hasIncludedToUnicodeMap&&this.toUnicode instanceof h.IdentityToUnicodeMap&&this.toUnicode.forEach(function(e,t){var n=_a129[e];void 0===_r170[n]&&(_a129[+e]=t);});}this.toUnicode instanceof h.IdentityToUnicodeMap||this.toUnicode.forEach(function(e,t){_a129[+e]=t;});this.toFontChar=_a129;this.toUnicode=new h.ToUnicodeMap(_a129);}else if(/Symbol/i.test(u))this.toFontChar=buildToFontChar(c.SymbolSetEncoding,(0,o.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(u)){/Wingdings/i.test(t)&&(0,a.warn)(\"Non-embedded Wingdings font, falling back to ZapfDingbats.\");this.toFontChar=buildToFontChar(c.ZapfDingbatsEncoding,(0,o.getDingbatsGlyphsUnicode)(),this.differences);}else if(p){var _context248;var _e281=buildToFontChar(this.defaultEncoding,(0,o.getGlyphsUnicode)(),this.differences);\"CIDFontType2\"!==r||_startsWithInstanceProperty(_context248=this.cidEncoding).call(_context248,\"Identity-\")||this.toUnicode instanceof h.IdentityToUnicodeMap||this.toUnicode.forEach(function(t,r){_e281[+t]=r;});this.toFontChar=_e281;}else{var _e282=(0,o.getGlyphsUnicode)(),_r171=[];this.toUnicode.forEach(function(t,a){if(!_this76.composite){var _r172=_this76.differences[t]||_this76.defaultEncoding[t],_n94=(0,s.getUnicodeForGlyph)(_r172,_e282);-1!==_n94&&(a=_n94);}_r171[+t]=a;});this.composite&&this.toUnicode instanceof h.IdentityToUnicodeMap&&/Verdana/i.test(t)&&applyStandardFontGlyphMap(_r171,(0,l.getGlyphMapForStandardFonts)());this.toFontChar=_r171;}amendFallbackToUnicode(e);this.loadedName=u.split(\"-\")[0];this.fontType=(0,i.getFontType)(r,n,e.isStandardFont);}},{key:\"checkAndRepair\",value:function checkAndRepair(e,t,r){var s=[\"OS/2\",\"cmap\",\"head\",\"hhea\",\"hmtx\",\"maxp\",\"name\",\"post\",\"loca\",\"glyf\",\"fpgm\",\"prep\",\"cvt \",\"CFF \"];function readTables(e,t){var r=Object.create(null);r[\"OS/2\"]=null;r.cmap=null;r.head=null;r.hhea=null;r.hmtx=null;r.maxp=null;r.name=null;r.post=null;for(var _a130=0;_a130<t;_a130++){var _t215=readTableEntry(e);_includesInstanceProperty(s).call(s,_t215.tag)&&0!==_t215.length&&(r[_t215.tag]=_t215);}return r;}function readTableEntry(e){var t=e.getString(4),r=e.getInt32()>>>0,a=e.getInt32()>>>0,n=e.getInt32()>>>0,i=e.pos;e.pos=e.start||0;e.skip(a);var s=e.getBytes(n);e.pos=i;if(\"head\"===t){s[8]=s[9]=s[10]=s[11]=0;s[17]|=32;}return{tag:t,checksum:r,length:n,offset:a,data:s};}function readOpenTypeHeader(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()};}function sanitizeGlyph(e,t,r,a,n,i){var s={length:0,sizeOfInstructions:0};if(r-t<=12)return s;var o=e.subarray(t,r);var c=signedInt16(o[0],o[1]);if(c<0){c=-1;writeSignedInt16(o,0,c);a.set(o,n);s.length=o.length;return s;}var l,h=10,u=0;for(l=0;l<c;l++){u=(o[h]<<8|o[h+1])+1;h+=2;}var d=h,f=o[h]<<8|o[h+1];s.sizeOfInstructions=f;h+=2+f;var g=h;var p=0;for(l=0;l<u;l++){var _e283=o[h++];192&_e283&&(o[h-1]=63&_e283);var _t216=2;2&_e283?_t216=1:16&_e283&&(_t216=0);var _r173=2;4&_e283?_r173=1:32&_e283&&(_r173=0);var _a131=_t216+_r173;p+=_a131;if(8&_e283){var _e284=o[h++];l+=_e284;p+=_e284*_a131;}}if(0===p)return s;var m=h+p;if(m>o.length)return s;if(!i&&f>0){a.set(o.subarray(0,d),n);a.set([0,0],n+d);a.set(o.subarray(g,m),n+d+2);m-=f;o.length-m>3&&(m=m+3&-4);s.length=m;return s;}if(o.length-m>3){m=m+3&-4;a.set(o.subarray(0,m),n);s.length=m;return s;}a.set(o,n);s.length=o.length;return s;}function readNameTable(e){var r=(t.start||0)+e.offset;t.pos=r;var a=[[],[]],n=e.length,i=r+n;if(0!==t.getUint16()||n<6)return a;var s=t.getUint16(),o=t.getUint16(),c=[];var l,h;for(l=0;l<s&&t.pos+12<=i;l++){var _e285={platform:t.getUint16(),encoding:t.getUint16(),language:t.getUint16(),name:t.getUint16(),length:t.getUint16(),offset:t.getUint16()};(1===_e285.platform&&0===_e285.encoding&&0===_e285.language||3===_e285.platform&&1===_e285.encoding&&1033===_e285.language)&&c.push(_e285);}for(l=0,h=c.length;l<h;l++){var _e286=c[l];if(_e286.length<=0)continue;var _n95=r+o+_e286.offset;if(_n95+_e286.length>i)continue;t.pos=_n95;var _s57=_e286.name;if(_e286.encoding){var _r174=\"\";for(var _a132=0,_n96=_e286.length;_a132<_n96;_a132+=2)_r174+=String.fromCharCode(t.getUint16());a[1][_s57]=_r174;}else a[0][_s57]=t.getString(_e286.length);}return a;}var l=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function sanitizeTTProgram(e,t){var r,n,i,s,o,c=e.data,h=0,u=0,d=0;var f=[],g=[],p=[];var m=t.tooComplexToFollowFunctions,b=!1,y=0,w=0;for(var _e287=c.length;h<_e287;){var _e288=c[h++];if(64===_e288){n=c[h++];if(b||w)h+=n;else for(r=0;r<n;r++)f.push(c[h++]);}else if(65===_e288){n=c[h++];if(b||w)h+=2*n;else for(r=0;r<n;r++){i=c[h++];f.push(i<<8|c[h++]);}}else if(176==(248&_e288)){n=_e288-176+1;if(b||w)h+=n;else for(r=0;r<n;r++)f.push(c[h++]);}else if(184==(248&_e288)){n=_e288-184+1;if(b||w)h+=2*n;else for(r=0;r<n;r++){i=c[h++];f.push(i<<8|c[h++]);}}else if(43!==_e288||m){if(44!==_e288||m){if(45===_e288){if(b){b=!1;u=h;}else{o=g.pop();if(!o){(0,a.warn)(\"TT: ENDF bad stack\");t.hintsValid=!1;return;}s=p.pop();c=o.data;h=o.i;t.functionsStackDeltas[s]=f.length-o.stackTop;}}else if(137===_e288){if(b||w){(0,a.warn)(\"TT: nested IDEFs not allowed\");m=!0;}b=!0;d=h;}else if(88===_e288)++y;else if(27===_e288)w=y;else if(89===_e288){w===y&&(w=0);--y;}else if(28===_e288&&!b&&!w){var _e289=f.at(-1);_e289>0&&(h+=_e289-1);}}else{if(b||w){(0,a.warn)(\"TT: nested FDEFs not allowed\");m=!0;}b=!0;d=h;s=f.pop();t.functionsDefined[s]={data:c,i:h};}}else if(!b&&!w){s=f.at(-1);if(isNaN(s))(0,a.info)(\"TT: CALL empty stack (or invalid entry).\");else{t.functionsUsed[s]=!0;if(s in t.functionsStackDeltas){var _e290=f.length+t.functionsStackDeltas[s];if(_e290<0){(0,a.warn)(\"TT: CALL invalid functions stack delta.\");t.hintsValid=!1;return;}f.length=_e290;}else if(s in t.functionsDefined&&!_includesInstanceProperty(p).call(p,s)){g.push({data:c,i:h,stackTop:f.length-1});p.push(s);o=t.functionsDefined[s];if(!o){(0,a.warn)(\"TT: CALL non-existent function\");t.hintsValid=!1;return;}c=o.data;h=o.i;}}}if(!b&&!w){var _t217=0;_e288<=142?_t217=l[_e288]:_e288>=192&&_e288<=223?_t217=-1:_e288>=224&&(_t217=-2);if(_e288>=113&&_e288<=117){n=f.pop();isNaN(n)||(_t217=2*-n);}for(;_t217<0&&f.length>0;){f.pop();_t217++;}for(;_t217>0;){f.push(NaN);_t217--;}}}t.tooComplexToFollowFunctions=m;var S=[c];h>c.length&&S.push(new Uint8Array(h-c.length));if(d>u){(0,a.warn)(\"TT: complementing a missing function tail\");S.push(new Uint8Array([34,45]));}!function foldTTTable(e,t){if(t.length>1){var _r175,_a133,_n97=0;for(_r175=0,_a133=t.length;_r175<_a133;_r175++)_n97+=t[_r175].length;_n97=_n97+3&-4;var _i98=new Uint8Array(_n97);var _s58=0;for(_r175=0,_a133=t.length;_r175<_a133;_r175++){_i98.set(t[_r175],_s58);_s58+=t[_r175].length;}e.data=_i98;e.length=_n97;}}(e,S);}var d,f,b,w;if(isTrueTypeCollectionFile(t=new y.Stream(new Uint8Array(t.getBytes())))){var _e291=function readTrueTypeCollectionData(e,t){var _readTrueTypeCollecti=function readTrueTypeCollectionHeader(e){var t=e.getString(4);(0,a.assert)(\"ttcf\"===t,\"Must be a TrueType Collection font.\");var r=e.getUint16(),n=e.getUint16(),i=e.getInt32()>>>0,s=[];for(var _t218=0;_t218<i;_t218++)s.push(e.getInt32()>>>0);var o={ttcTag:t,majorVersion:r,minorVersion:n,numFonts:i,offsetTable:s};switch(r){case 1:return o;case 2:o.dsigTag=e.getInt32()>>>0;o.dsigLength=e.getInt32()>>>0;o.dsigOffset=e.getInt32()>>>0;return o;}throw new a.FormatError(\"Invalid TrueType Collection majorVersion: \".concat(r,\".\"));}(e),r=_readTrueTypeCollecti.numFonts,n=_readTrueTypeCollecti.offsetTable,i=t.split(\"+\");var s;for(var _o38=0;_o38<r;_o38++){e.pos=(e.start||0)+n[_o38];var _r176=readOpenTypeHeader(e),_c28=readTables(e,_r176.numTables);if(!_c28.name)throw new a.FormatError('TrueType Collection font must contain a \"name\" table.');var _l20=readNameTable(_c28.name);for(var _e292=0,_a134=_l20.length;_e292<_a134;_e292++)for(var _a135=0,_n98=_l20[_e292].length;_a135<_n98;_a135++){var _n99=_l20[_e292][_a135]&&_l20[_e292][_a135].replace(/\\s/g,\"\");if(_n99){if(_n99===t)return{header:_r176,tables:_c28};if(!(i.length<2)){var _iterator77=_createForOfIteratorHelper(i),_step77;try{for(_iterator77.s();!(_step77=_iterator77.n()).done;){var _e293=_step77.value;_n99===_e293&&(s={name:_e293,header:_r176,tables:_c28});}}catch(err){_iterator77.e(err);}finally{_iterator77.f();}}}}}if(s){var _context249;(0,a.warn)(_concatInstanceProperty(_context249=\"TrueType Collection does not contain \\\"\".concat(t,\"\\\" font, falling back to \\\"\")).call(_context249,s.name,\"\\\" font instead.\"));return{header:s.header,tables:s.tables};}throw new a.FormatError(\"TrueType Collection does not contain \\\"\".concat(t,\"\\\" font.\"));}(t,this.name);d=_e291.header;f=_e291.tables;}else{d=readOpenTypeHeader(t);f=readTables(t,d.numTables);}var S=!f[\"CFF \"];if(S){if(!f.loca)throw new a.FormatError('Required \"loca\" table is not found');if(!f.glyf){(0,a.warn)('Required \"glyf\" table is not found -- trying to recover.');f.glyf={tag:\"glyf\",data:new Uint8Array(0)};}this.isOpenType=!1;}else{var _t219=r.composite&&((r.cidToGidMap||[]).length>0||!(r.cMap instanceof p.IdentityCMap));if(\"OTTO\"===d.version&&!_t219||!f.head||!f.hhea||!f.maxp||!f.post){w=new y.Stream(f[\"CFF \"].data);b=new u.CFFFont(w,r);adjustWidths(r);return this.convert(e,b,r);}delete f.glyf;delete f.loca;delete f.fpgm;delete f.prep;delete f[\"cvt \"];this.isOpenType=!0;}if(!f.maxp)throw new a.FormatError('Required \"maxp\" table is not found');t.pos=(t.start||0)+f.maxp.offset;var x=t.getInt32(),k=t.getUint16();if(r.scaleFactors&&r.scaleFactors.length===k&&S){var _e294=r.scaleFactors,_t220=int16(f.head.data[50],f.head.data[51]),_a136=new g.GlyfTable({glyfTable:f.glyf.data,isGlyphLocationsLong:_t220,locaTable:f.loca.data,numGlyphs:k});_a136.scale(_e294);var _a136$write=_a136.write(),_n100=_a136$write.glyf,_i99=_a136$write.loca,_s59=_a136$write.isLocationLong;f.glyf.data=_n100;f.loca.data=_i99;if(_s59!==!!_t220){f.head.data[50]=0;f.head.data[51]=_s59?1:0;}var _o39=f.hmtx.data;for(var _t221=0;_t221<k;_t221++){var _r177=4*_t221,_a137=Math.round(_e294[_t221]*int16(_o39[_r177],_o39[_r177+1]));_o39[_r177]=_a137>>8&255;_o39[_r177+1]=255&_a137;writeSignedInt16(_o39,_r177+2,Math.round(_e294[_t221]*signedInt16(_o39[_r177+2],_o39[_r177+3])));}}var C=k+1,v=!0;if(C>65535){v=!1;C=k;(0,a.warn)(\"Not enough space in glyfs to duplicate first glyph.\");}var O=0,T=0;if(x>=65536&&f.maxp.length>=22){t.pos+=8;if(t.getUint16()>2){f.maxp.data[14]=0;f.maxp.data[15]=2;}t.pos+=4;O=t.getUint16();t.pos+=4;T=t.getUint16();}f.maxp.data[4]=C>>8;f.maxp.data[5]=255&C;var M=function sanitizeTTPrograms(e,t,r,n){var i={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};e&&sanitizeTTProgram(e,i);t&&sanitizeTTProgram(t,i);e&&function checkInvalidFunctions(e,t){if(!e.tooComplexToFollowFunctions)if(e.functionsDefined.length>t){(0,a.warn)(\"TT: more functions defined than expected\");e.hintsValid=!1;}else for(var _r178=0,_n101=e.functionsUsed.length;_r178<_n101;_r178++){if(_r178>t){(0,a.warn)(\"TT: invalid function id: \"+_r178);e.hintsValid=!1;return;}if(e.functionsUsed[_r178]&&!e.functionsDefined[_r178]){(0,a.warn)(\"TT: undefined function: \"+_r178);e.hintsValid=!1;return;}}}(i,n);if(r&&1&r.length){var _e295=new Uint8Array(r.length+1);_e295.set(r.data);r.data=_e295;}return i.hintsValid;}(f.fpgm,f.prep,f[\"cvt \"],O);if(!M){delete f.fpgm;delete f.prep;delete f[\"cvt \"];}!function sanitizeMetrics(e,t,r,n,i,s){if(!t){r&&(r.data=null);return;}e.pos=(e.start||0)+t.offset;e.pos+=4;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;var o=e.getUint16();e.pos+=8;e.pos+=2;var c=e.getUint16();if(0!==o){if(!(2&int16(n.data[44],n.data[45]))){t.data[22]=0;t.data[23]=0;}}if(c>i){var _context250;(0,a.info)(_concatInstanceProperty(_context250=\"The numOfMetrics (\".concat(c,\") should not be greater than the numGlyphs (\")).call(_context250,i,\").\"));c=i;t.data[34]=(65280&c)>>8;t.data[35]=255&c;}var l=i-c-(r.length-4*c>>1);if(l>0){var _e296=new Uint8Array(r.length+2*l);_e296.set(r.data);if(s){_e296[r.length]=r.data[2];_e296[r.length+1]=r.data[3];}r.data=_e296;}}(t,f.hhea,f.hmtx,f.head,C,v);if(!f.head)throw new a.FormatError('Required \"head\" table is not found');!function sanitizeHead(e,t,r){var n=e.data,i=function int32(e,t,r,a){return(e<<24)+(t<<16)+(r<<8)+a;}(n[0],n[1],n[2],n[3]);if(i>>16!=1){(0,a.info)(\"Attempting to fix invalid version in head table: \"+i);n[0]=0;n[1]=1;n[2]=0;n[3]=0;}var s=int16(n[50],n[51]);if(s<0||s>1){(0,a.info)(\"Attempting to fix invalid indexToLocFormat in head table: \"+s);var _e297=t+1;if(r===_e297<<1){n[50]=0;n[51]=0;}else{if(r!==_e297<<2)throw new a.FormatError(\"Could not fix indexToLocFormat: \"+s);n[50]=0;n[51]=1;}}}(f.head,k,S?f.loca.length:0);var E=Object.create(null);if(S){var _e298=int16(f.head.data[50],f.head.data[51]),_t222=function sanitizeGlyphLocations(e,t,r,a,n,i,s){var o,c,l;if(a){o=4;c=function fontItemDecodeLong(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3];};l=function fontItemEncodeLong(e,t,r){e[t]=r>>>24&255;e[t+1]=r>>16&255;e[t+2]=r>>8&255;e[t+3]=255&r;};}else{o=2;c=function fontItemDecode(e,t){return e[t]<<9|e[t+1]<<1;};l=function fontItemEncode(e,t,r){e[t]=r>>9&255;e[t+1]=r>>1&255;};}var h=i?r+1:r,u=o*(1+h),d=new Uint8Array(u);d.set(e.data.subarray(0,u));e.data=d;var f=t.data,g=f.length,p=new Uint8Array(g);var m,b;var y=[];for(m=0,b=0;m<r+1;m++,b+=o){var _e299=c(d,b);_e299>g&&(_e299=g);y.push({index:m,offset:_e299,endOffset:0});}_sortInstanceProperty(y).call(y,function(e,t){return e.offset-t.offset;});for(m=0;m<r;m++)y[m].endOffset=y[m+1].offset;_sortInstanceProperty(y).call(y,function(e,t){return e.index-t.index;});for(m=0;m<r;m++){var _y$m=y[m],_e300=_y$m.offset,_t223=_y$m.endOffset;if(0!==_e300||0!==_t223)break;var _r179=y[m+1].offset;if(0!==_r179){y[m].endOffset=_r179;break;}}var w=Object.create(null);var S=0;l(d,0,S);for(m=0,b=o;m<r;m++,b+=o){var _e301=sanitizeGlyph(f,y[m].offset,y[m].endOffset,p,S,n),_t224=_e301.length;0===_t224&&(w[m]=!0);_e301.sizeOfInstructions>s&&(s=_e301.sizeOfInstructions);S+=_t224;l(d,b,S);}if(0===S){var _e302=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(m=0,b=o;m<h;m++,b+=o)l(d,b,_e302.length);t.data=_e302;}else if(i){var _r180=c(d,o);if(p.length>_r180+S)t.data=p.subarray(0,_r180+S);else{t.data=new Uint8Array(_r180+S);t.data.set(p.subarray(0,S));}t.data.set(p.subarray(0,_r180),S);l(e.data,d.length-o,S+_r180);}else t.data=p.subarray(0,S);return{missingGlyphs:w,maxSizeOfInstructions:s};}(f.loca,f.glyf,k,_e298,M,v,T);E=_t222.missingGlyphs;if(x>=65536&&f.maxp.length>=22){f.maxp.data[26]=_t222.maxSizeOfInstructions>>8;f.maxp.data[27]=255&_t222.maxSizeOfInstructions;}}if(!f.hhea)throw new a.FormatError('Required \"hhea\" table is not found');if(0===f.hhea.data[10]&&0===f.hhea.data[11]){f.hhea.data[10]=255;f.hhea.data[11]=255;}var D={unitsPerEm:int16(f.head.data[18],f.head.data[19]),yMax:int16(f.head.data[42],f.head.data[43]),yMin:signedInt16(f.head.data[38],f.head.data[39]),ascent:signedInt16(f.hhea.data[4],f.hhea.data[5]),descent:signedInt16(f.hhea.data[6],f.hhea.data[7]),lineGap:signedInt16(f.hhea.data[8],f.hhea.data[9])};this.ascent=D.ascent/D.unitsPerEm;this.descent=D.descent/D.unitsPerEm;this.lineGap=D.lineGap/D.unitsPerEm;if(this.cssFontInfo&&this.cssFontInfo.lineHeight){this.lineHeight=this.cssFontInfo.metrics.lineHeight;this.lineGap=this.cssFontInfo.metrics.lineGap;}else this.lineHeight=this.ascent-this.descent+this.lineGap;f.post&&function readPostScriptTable(e,r,n){var s=(t.start||0)+e.offset;t.pos=s;var o=s+e.length,c=t.getInt32();t.skip(28);var l,h,u=!0;switch(c){case 65536:l=i.MacStandardGlyphOrdering;break;case 131072:var _e303=t.getUint16();if(_e303!==n){u=!1;break;}var _s60=[];for(h=0;h<_e303;++h){var _e304=t.getUint16();if(_e304>=32768){u=!1;break;}_s60.push(_e304);}if(!u)break;var _d8=[],_f7=[];for(;t.pos<o;){var _e305=t.getByte();_f7.length=_e305;for(h=0;h<_e305;++h)_f7[h]=String.fromCharCode(t.getByte());_d8.push(_f7.join(\"\"));}l=[];for(h=0;h<_e303;++h){var _e306=_s60[h];_e306<258?l.push(i.MacStandardGlyphOrdering[_e306]):l.push(_d8[_e306-258]);}break;case 196608:break;default:(0,a.warn)(\"Unknown/unsupported post table version \"+c);u=!1;r.defaultEncoding&&(l=r.defaultEncoding);}r.glyphNames=l;return u;}(f.post,r,k);f.post={tag:\"post\",data:createPostTable(r)};var N=[];function hasGlyph(e){return!E[e];}if(r.composite){var _e307=r.cidToGidMap||[],_t225=0===_e307.length;r.cMap.forEach(function(r,n){\"string\"==typeof n&&(n=convertCidString(r,n,!0));if(n>65535)throw new a.FormatError(\"Max size of CID is 65,535\");var i=-1;_t225?i=n:void 0!==_e307[n]&&(i=_e307[n]);i>=0&&i<k&&hasGlyph(i)&&(N[r]=i);});}else{var _e308=function readCmapTable(e,t,r,n){if(!e){(0,a.warn)(\"No cmap table available.\");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};}var i,s=(t.start||0)+e.offset;t.pos=s;t.skip(2);var o=t.getUint16();var c,l=!1;for(var _e309=0;_e309<o;_e309++){var _a138=t.getUint16(),_i100=t.getUint16(),_s62=t.getInt32()>>>0;var _h15=!1;if(!c||c.platformId!==_a138||c.encodingId!==_i100){if(0!==_a138||0!==_i100&&1!==_i100&&3!==_i100){if(1===_a138&&0===_i100)_h15=!0;else if(3!==_a138||1!==_i100||!n&&c){if(r&&3===_a138&&0===_i100){_h15=!0;var _r181=!0;if(_e309<o-1){var _e310=t.peekBytes(2);int16(_e310[0],_e310[1])<_a138&&(_r181=!1);}_r181&&(l=!0);}}else{_h15=!0;r||(l=!0);}}else _h15=!0;_h15&&(c={platformId:_a138,encodingId:_i100,offset:_s62});if(l)break;}}c&&(t.pos=s+c.offset);if(!c||-1===t.peekByte()){(0,a.warn)(\"Could not find a preferred cmap table.\");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};}var h=t.getUint16();var u=!1;var d=[];var f,g;if(0===h){t.skip(4);for(f=0;f<256;f++){var _e311=t.getByte();_e311&&d.push({charCode:f,glyphId:_e311});}u=!0;}else if(2===h){t.skip(4);var _e312=[];var _r182=0;for(var _a139=0;_a139<256;_a139++){var _a140=t.getUint16()>>3;_e312.push(_a140);_r182=Math.max(_a140,_r182);}var _a141=[];for(var _e313=0;_e313<=_r182;_e313++)_a141.push({firstCode:t.getUint16(),entryCount:t.getUint16(),idDelta:signedInt16(t.getByte(),t.getByte()),idRangePos:t.pos+t.getUint16()});for(var _r183=0;_r183<256;_r183++)if(0===_e312[_r183]){t.pos=_a141[0].idRangePos+2*_r183;g=t.getUint16();d.push({charCode:_r183,glyphId:g});}else{var _n103=_a141[_e312[_r183]];for(f=0;f<_n103.entryCount;f++){var _e314=(_r183<<8)+f+_n103.firstCode;t.pos=_n103.idRangePos+2*f;g=t.getUint16();0!==g&&(g=(g+_n103.idDelta)%65536);d.push({charCode:_e314,glyphId:g});}}}else if(4===h){t.skip(4);var _e315=t.getUint16()>>1;t.skip(6);var _r184=[];var _a142;for(_a142=0;_a142<_e315;_a142++)_r184.push({end:t.getUint16()});t.skip(2);for(_a142=0;_a142<_e315;_a142++)_r184[_a142].start=t.getUint16();for(_a142=0;_a142<_e315;_a142++)_r184[_a142].delta=t.getUint16();var _n104,_o40=0;for(_a142=0;_a142<_e315;_a142++){i=_r184[_a142];var _s63=t.getUint16();if(_s63){_n104=(_s63>>1)-(_e315-_a142);i.offsetIndex=_n104;_o40=Math.max(_o40,_n104+i.end-i.start+1);}else i.offsetIndex=-1;}var _c29=[];for(f=0;f<_o40;f++)_c29.push(t.getUint16());for(_a142=0;_a142<_e315;_a142++){i=_r184[_a142];s=i.start;var _e316=i.end,_t226=i.delta;_n104=i.offsetIndex;for(f=s;f<=_e316;f++)if(65535!==f){g=_n104<0?f:_c29[_n104+f-s];g=g+_t226&65535;d.push({charCode:f,glyphId:g});}}}else if(6===h){t.skip(4);var _e317=t.getUint16(),_r185=t.getUint16();for(f=0;f<_r185;f++){g=t.getUint16();var _r186=_e317+f;d.push({charCode:_r186,glyphId:g});}}else{if(12!==h){(0,a.warn)(\"cmap table has unsupported format: \"+h);return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};}{t.skip(10);var _e318=t.getInt32()>>>0;for(f=0;f<_e318;f++){var _e319=t.getInt32()>>>0,_r187=t.getInt32()>>>0;var _a143=t.getInt32()>>>0;for(var _t227=_e319;_t227<=_r187;_t227++)d.push({charCode:_t227,glyphId:_a143++});}}}_sortInstanceProperty(d).call(d,function(e,t){return e.charCode-t.charCode;});for(var _e320=1;_e320<d.length;_e320++)if(d[_e320-1].charCode===d[_e320].charCode){_spliceInstanceProperty(d).call(d,_e320,1);_e320--;}return{platformId:c.platformId,encodingId:c.encodingId,mappings:d,hasShortCmap:u};}(f.cmap,t,this.isSymbolicFont,r.hasEncoding),_n102=_e308.platformId,_s61=_e308.encodingId,_l21=_e308.mappings,_u8=_l21.length;var _d9=[],_g15=!1;!r.hasEncoding||\"MacRomanEncoding\"!==r.baseEncodingName&&\"WinAnsiEncoding\"!==r.baseEncodingName||(_d9=(0,c.getEncoding)(r.baseEncodingName));if(r.hasEncoding&&!this.isSymbolicFont&&(3===_n102&&1===_s61||1===_n102&&0===_s61)){var _e321=(0,o.getGlyphsUnicode)();for(var _t228=0;_t228<256;_t228++){var _context251;var _a144=void 0;_a144=void 0!==this.differences[_t228]?this.differences[_t228]:_d9.length&&\"\"!==_d9[_t228]?_d9[_t228]:c.StandardEncoding[_t228];if(!_a144)continue;var _o41=(0,i.recoverGlyphName)(_a144,_e321);var _f8=void 0;3===_n102&&1===_s61?_f8=_e321[_o41]:1===_n102&&0===_s61&&(_f8=_indexOfInstanceProperty(_context251=c.MacRomanEncoding).call(_context251,_o41));if(void 0===_f8){if(!r.glyphNames&&r.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof h.IdentityToUnicodeMap)){var _e322=this.toUnicode.get(_t228);_e322&&(_f8=_codePointAtInstanceProperty(_e322).call(_e322,0));}if(void 0===_f8)continue;}for(var _e323=0;_e323<_u8;++_e323)if(_l21[_e323].charCode===_f8){N[_t228]=_l21[_e323].glyphId;break;}}}else if(0===_n102){for(var _e324=0;_e324<_u8;++_e324)N[_l21[_e324].charCode]=_l21[_e324].glyphId;_g15=!0;}else for(var _e325=0;_e325<_u8;++_e325){var _t229=_l21[_e325].charCode;3===_n102&&_t229>=61440&&_t229<=61695&&(_t229&=255);N[_t229]=_l21[_e325].glyphId;}if(r.glyphNames&&(_d9.length||this.differences.length))for(var _e326=0;_e326<256;++_e326){var _context252;if(!_g15&&void 0!==N[_e326])continue;var _t230=this.differences[_e326]||_d9[_e326];if(!_t230)continue;var _a145=_indexOfInstanceProperty(_context252=r.glyphNames).call(_context252,_t230);_a145>0&&hasGlyph(_a145)&&(N[_e326]=_a145);}}0===N.length&&(N[0]=0);var R=C-1;v||(R=0);if(!r.cssFontInfo){var _e327=adjustMapping(N,hasGlyph,R,this.toUnicode);this.toFontChar=_e327.toFontChar;f.cmap={tag:\"cmap\",data:createCmapTable(_e327.charCodeToGlyphId,_e327.toUnicodeExtraMap,C)};f[\"OS/2\"]&&function validateOS2Table(e,t){t.pos=(t.start||0)+e.offset;var r=t.getUint16();t.skip(60);var a=t.getUint16();if(r<4&&768&a)return!1;if(t.getUint16()>t.getUint16())return!1;t.skip(6);if(0===t.getUint16())return!1;e.data[8]=e.data[9]=0;return!0;}(f[\"OS/2\"],t)||(f[\"OS/2\"]={tag:\"OS/2\",data:createOS2Table(r,_e327.charCodeToGlyphId,D)});}if(!S)try{w=new y.Stream(f[\"CFF \"].data);b=new n.CFFParser(w,r,i.SEAC_ANALYSIS_ENABLED).parse();b.duplicateFirstGlyph();var _e328=new n.CFFCompiler(b);f[\"CFF \"].data=_e328.compile();}catch(e){(0,a.warn)(\"Failed to compile font \"+r.loadedName);}if(f.name){var _t231=readNameTable(f.name);f.name.data=createNameTable(e,_t231);this.psName=_t231[0][6]||null;}else f.name={tag:\"name\",data:createNameTable(this.name)};var L=new m.OpenTypeFileBuilder(d.version);for(var _e329 in f)L.addTable(_e329,f[_e329].data);return L.toArray();}},{key:\"convert\",value:function convert(e,t,r){r.fixedPitch=!1;r.builtInEncoding&&function adjustToUnicode(e,t){if(e.isInternalFont)return;if(t===e.defaultEncoding)return;if(e.toUnicode instanceof h.IdentityToUnicodeMap)return;var r=[],a=(0,o.getGlyphsUnicode)();for(var _n105 in t){if(e.hasIncludedToUnicodeMap){if(e.toUnicode.has(_n105))continue;}else if(e.hasEncoding&&(0===e.differences.length||void 0!==e.differences[_n105]))continue;var _i101=t[_n105],_o42=(0,s.getUnicodeForGlyph)(_i101,a);-1!==_o42&&(r[_n105]=String.fromCharCode(_o42));}r.length>0&&e.toUnicode.amend(r);}(r,r.builtInEncoding);var n=1;t instanceof u.CFFFont&&(n=t.numGlyphs-1);var l=t.getGlyphMapping(r);var d=null,f=l,g=null;if(!r.cssFontInfo){d=adjustMapping(l,t.hasGlyphId.bind(t),n,this.toUnicode);this.toFontChar=d.toFontChar;f=d.charCodeToGlyphId;g=d.toUnicodeExtraMap;}var p=t.numGlyphs;function getCharCodes(e,t){var r=null;for(var _a146 in e)if(t===e[_a146]){r||(r=[]);r.push(0|_a146);}return r;}function createCharCode(e,t){for(var _r188 in e)if(t===e[_r188])return 0|_r188;d.charCodeToGlyphId[d.nextAvailableFontCharCode]=t;return d.nextAvailableFontCharCode++;}var b=t.seacs;if(d&&i.SEAC_ANALYSIS_ENABLED&&b&&b.length){var _e330=r.fontMatrix||a.FONT_IDENTITY_MATRIX,_n106=t.getCharset(),_i102=Object.create(null);for(var _t232 in b){_t232|=0;var _r189=b[_t232],_a147=c.StandardEncoding[_r189[2]],_s64=c.StandardEncoding[_r189[3]],_o43=_indexOfInstanceProperty(_n106).call(_n106,_a147),_h16=_indexOfInstanceProperty(_n106).call(_n106,_s64);if(_o43<0||_h16<0)continue;var _u9={x:_r189[0]*_e330[0]+_r189[1]*_e330[2]+_e330[4],y:_r189[0]*_e330[1]+_r189[1]*_e330[3]+_e330[5]},_f9=getCharCodes(l,_t232);if(_f9)for(var _e331=0,_t233=_f9.length;_e331<_t233;_e331++){var _t234=_f9[_e331],_r190=d.charCodeToGlyphId,_a148=createCharCode(_r190,_o43),_n107=createCharCode(_r190,_h16);_i102[_t234]={baseFontCharCode:_a148,accentFontCharCode:_n107,accentOffset:_u9};}}r.seacMap=_i102;}var y=1/(r.fontMatrix||a.FONT_IDENTITY_MATRIX)[0],w=new m.OpenTypeFileBuilder(\"OTTO\");w.addTable(\"CFF \",t.data);w.addTable(\"OS/2\",createOS2Table(r,f));w.addTable(\"cmap\",createCmapTable(f,g,p));w.addTable(\"head\",\"\\0\u0001\\0\\0\\0\\0\u0010\\0\\0\\0\\0\\0_\u000f<õ\\0\\0\"+safeString16(y)+\"\\0\\0\\0\\0\\v~'\\0\\0\\0\\0\\v~'\\0\\0\"+safeString16(r.descent)+\"\u000fÿ\"+safeString16(r.ascent)+string16(r.italicAngle?2:0)+\"\\0\u0011\\0\\0\\0\\0\\0\\0\");w.addTable(\"hhea\",\"\\0\u0001\\0\\0\"+safeString16(r.ascent)+safeString16(r.descent)+\"\\0\\0ÿÿ\\0\\0\\0\\0\\0\\0\"+safeString16(r.capHeight)+safeString16(Math.tan(r.italicAngle)*r.xHeight)+\"\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\"+string16(p));w.addTable(\"hmtx\",function fontFieldsHmtx(){var e=t.charstrings,r=t.cff?t.cff.widths:null;var a=\"\\0\\0\\0\\0\";for(var _t235=1,_n108=p;_t235<_n108;_t235++){var _n109=0;if(e){var _r191=e[_t235-1];_n109=\"width\"in _r191?_r191.width:0;}else r&&(_n109=Math.ceil(r[_t235]||0));a+=string16(_n109)+string16(0);}return a;}());w.addTable(\"maxp\",\"\\0\\0P\\0\"+string16(p));w.addTable(\"name\",createNameTable(e));w.addTable(\"post\",createPostTable(r));return w.toArray();}},{key:\"spaceWidth\",get:function get(){var e=[\"space\",\"minus\",\"one\",\"i\",\"I\"];var t;for(var _r192=0,_a149=e.length;_r192<_a149;_r192++){var _a150=e[_r192];if(_a150 in this.widths){t=this.widths[_a150];break;}var _n110=(0,o.getGlyphsUnicode)()[_a150];var _i103=0;if(this.composite&&this.cMap.contains(_n110)){_i103=this.cMap.lookup(_n110);\"string\"==typeof _i103&&(_i103=convertCidString(_n110,_i103));}!_i103&&this.toUnicode&&(_i103=this.toUnicode.charCodeOf(_n110));_i103<=0&&(_i103=_n110);t=this.widths[_i103];if(t)break;}t=t||this.defaultWidth;return(0,a.shadow)(this,\"spaceWidth\",t);}},{key:\"_charToGlyph\",value:function _charToGlyph(e){var t,r,n,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=e;if(this.cMap&&this.cMap.contains(e)){o=this.cMap.lookup(e);\"string\"==typeof o&&(o=convertCidString(e,o));}r=this.widths[o];\"number\"!=typeof r&&(r=this.defaultWidth);var c=this.vmetrics&&this.vmetrics[o];var l=this.toUnicode.get(e)||e;\"number\"==typeof l&&(l=String.fromCharCode(l));var h=void 0!==this.toFontChar[e];t=this.toFontChar[e]||e;if(this.missingFile){var _r193=this.differences[e]||this.defaultEncoding[e];\".notdef\"!==_r193&&\"\"!==_r193||\"Type1\"!==this.type||(t=32);t=(0,s.mapSpecialUnicodeValues)(t);}this.isType3Font&&(n=t);var u=null;if(this.seacMap&&this.seacMap[e]){h=!0;var _r194=this.seacMap[e];t=_r194.baseFontCharCode;u={fontChar:_String$fromCodePoint(_r194.accentFontCharCode),offset:_r194.accentOffset};}var d=\"\";\"number\"==typeof t&&(t<=1114111?d=_String$fromCodePoint(t):(0,a.warn)(\"charToGlyph - invalid fontCharCode: \".concat(t)));var f=this._glyphCache[e];if(!f||!f.matchesForCache(e,d,l,u,r,c,n,i,h)){f=new Glyph(e,d,l,u,r,c,n,i,h);this._glyphCache[e]=f;}return f;}},{key:\"charsToGlyphs\",value:function charsToGlyphs(e){var t=this._charsCache[e];if(t)return t;t=[];if(this.cMap){var _r195=Object.create(null),_a151=e.length;var _n111=0;for(;_n111<_a151;){this.cMap.readCharCode(e,_n111,_r195);var _a152=_r195.charcode,_i104=_r195.length;_n111+=_i104;var _s65=this._charToGlyph(_a152,1===_i104&&32===e.charCodeAt(_n111-1));t.push(_s65);}}else for(var _r196=0,_a153=e.length;_r196<_a153;++_r196){var _a154=e.charCodeAt(_r196),_n112=this._charToGlyph(_a154,32===_a154);t.push(_n112);}return this._charsCache[e]=t;}},{key:\"getCharPositions\",value:function getCharPositions(e){var t=[];if(this.cMap){var _r197=Object.create(null);var _a155=0;for(;_a155<e.length;){this.cMap.readCharCode(e,_a155,_r197);var _n113=_r197.length;t.push([_a155,_a155+_n113]);_a155+=_n113;}}else for(var _r198=0,_a156=e.length;_r198<_a156;++_r198)t.push([_r198,_r198+1]);return t;}},{key:\"glyphCacheValues\",get:function get(){return _Object$values(this._glyphCache);}},{key:\"encodeString\",value:function encodeString(e){var _this77=this;var t=[],r=[],hasCurrentBufErrors=function hasCurrentBufErrors(){return t.length%2==1;},a=this.toUnicode instanceof h.IdentityToUnicodeMap?function(e){return _this77.toUnicode.charCodeOf(e);}:function(e){return _this77.toUnicode.charCodeOf(_String$fromCodePoint(e));};for(var _n114=0,_i105=e.length;_n114<_i105;_n114++){var _i106=_codePointAtInstanceProperty(e).call(e,_n114);_i106>55295&&(_i106<57344||_i106>65533)&&_n114++;if(this.toUnicode){var _e332=a(_i106);if(-1!==_e332){if(hasCurrentBufErrors()){t.push(r.join(\"\"));r.length=0;}for(var _t236=(this.cMap?this.cMap.getCharCodeLength(_e332):1)-1;_t236>=0;_t236--)r.push(String.fromCharCode(_e332>>8*_t236&255));continue;}}if(!hasCurrentBufErrors()){t.push(r.join(\"\"));r.length=0;}r.push(_String$fromCodePoint(_i106));}t.push(r.join(\"\"));return t;}}]);return Font;}();t.ErrorFont=/*#__PURE__*/function(){function ErrorFont(e){_classCallCheck(this,ErrorFont);this.error=e;this.loadedName=\"g_font_error\";this.missingFile=!0;}_createClass(ErrorFont,[{key:\"charsToGlyphs\",value:function charsToGlyphs(){return[];}},{key:\"encodeString\",value:function encodeString(e){return[e];}},{key:\"exportData\",value:function exportData(){return{error:this.error};}}]);return ErrorFont;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.CFFTopDict=t.CFFStrings=t.CFFStandardStrings=t.CFFPrivateDict=t.CFFParser=t.CFFIndex=t.CFFHeader=t.CFFFDSelect=t.CFFCompiler=t.CFFCharset=t.CFF=void 0;var a=r(2),n=r(161),i=r(162);var s=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"];t.CFFStandardStrings=s;var o=391,c=[null,{id:\"hstem\",min:2,stackClearing:!0,stem:!0},null,{id:\"vstem\",min:2,stackClearing:!0,stem:!0},{id:\"vmoveto\",min:1,stackClearing:!0},{id:\"rlineto\",min:2,resetStack:!0},{id:\"hlineto\",min:1,resetStack:!0},{id:\"vlineto\",min:1,resetStack:!0},{id:\"rrcurveto\",min:6,resetStack:!0},null,{id:\"callsubr\",min:1,undefStack:!0},{id:\"return\",min:0,undefStack:!0},null,null,{id:\"endchar\",min:0,stackClearing:!0},null,null,null,{id:\"hstemhm\",min:2,stackClearing:!0,stem:!0},{id:\"hintmask\",min:0,stackClearing:!0},{id:\"cntrmask\",min:0,stackClearing:!0},{id:\"rmoveto\",min:2,stackClearing:!0},{id:\"hmoveto\",min:1,stackClearing:!0},{id:\"vstemhm\",min:2,stackClearing:!0,stem:!0},{id:\"rcurveline\",min:8,resetStack:!0},{id:\"rlinecurve\",min:8,resetStack:!0},{id:\"vvcurveto\",min:4,resetStack:!0},{id:\"hhcurveto\",min:4,resetStack:!0},null,{id:\"callgsubr\",min:1,undefStack:!0},{id:\"vhcurveto\",min:4,resetStack:!0},{id:\"hvcurveto\",min:4,resetStack:!0}],l=[null,null,null,{id:\"and\",min:2,stackDelta:-1},{id:\"or\",min:2,stackDelta:-1},{id:\"not\",min:1,stackDelta:0},null,null,null,{id:\"abs\",min:1,stackDelta:0},{id:\"add\",min:2,stackDelta:-1,stackFn:function stackFn(e,t){e[t-2]=e[t-2]+e[t-1];}},{id:\"sub\",min:2,stackDelta:-1,stackFn:function stackFn(e,t){e[t-2]=e[t-2]-e[t-1];}},{id:\"div\",min:2,stackDelta:-1,stackFn:function stackFn(e,t){e[t-2]=e[t-2]/e[t-1];}},null,{id:\"neg\",min:1,stackDelta:0,stackFn:function stackFn(e,t){e[t-1]=-e[t-1];}},{id:\"eq\",min:2,stackDelta:-1},null,null,{id:\"drop\",min:1,stackDelta:-1},null,{id:\"put\",min:2,stackDelta:-2},{id:\"get\",min:1,stackDelta:0},{id:\"ifelse\",min:4,stackDelta:-3},{id:\"random\",min:0,stackDelta:1},{id:\"mul\",min:2,stackDelta:-1,stackFn:function stackFn(e,t){e[t-2]=e[t-2]*e[t-1];}},null,{id:\"sqrt\",min:1,stackDelta:0},{id:\"dup\",min:1,stackDelta:1},{id:\"exch\",min:2,stackDelta:0},{id:\"index\",min:2,stackDelta:0},{id:\"roll\",min:3,stackDelta:-2},null,null,null,{id:\"hflex\",min:7,resetStack:!0},{id:\"flex\",min:13,resetStack:!0},{id:\"hflex1\",min:9,resetStack:!0},{id:\"flex1\",min:11,resetStack:!0}];t.CFFParser=/*#__PURE__*/function(){function CFFParser(e,t,r){_classCallCheck(this,CFFParser);this.bytes=e.getBytes();this.properties=t;this.seacAnalysisEnabled=!!r;}_createClass(CFFParser,[{key:\"parse\",value:function parse(){var e=this.properties,t=new CFF();this.cff=t;var r=this.parseHeader(),a=this.parseIndex(r.endPos),n=this.parseIndex(a.endPos),i=this.parseIndex(n.endPos),s=this.parseIndex(i.endPos),o=this.parseDict(n.obj.get(0)),c=this.createDict(CFFTopDict,o,t.strings);t.header=r.obj;t.names=this.parseNameIndex(a.obj);t.strings=this.parseStringIndex(i.obj);t.topDict=c;t.globalSubrIndex=s.obj;this.parsePrivateDict(t.topDict);t.isCIDFont=c.hasName(\"ROS\");var l=c.getByName(\"CharStrings\"),h=this.parseIndex(l).obj,u=c.getByName(\"FontMatrix\");u&&(e.fontMatrix=u);var d=c.getByName(\"FontBBox\");if(d){e.ascent=Math.max(d[3],d[1]);e.descent=Math.min(d[1],d[3]);e.ascentScaled=!0;}var f,g;if(t.isCIDFont){var _e333=this.parseIndex(c.getByName(\"FDArray\")).obj;for(var _r199=0,_a157=_e333.count;_r199<_a157;++_r199){var _a158=_e333.get(_r199),_n115=this.createDict(CFFTopDict,this.parseDict(_a158),t.strings);this.parsePrivateDict(_n115);t.fdArray.push(_n115);}g=null;f=this.parseCharsets(c.getByName(\"charset\"),h.count,t.strings,!0);t.fdSelect=this.parseFDSelect(c.getByName(\"FDSelect\"),h.count);}else{f=this.parseCharsets(c.getByName(\"charset\"),h.count,t.strings,!1);g=this.parseEncoding(c.getByName(\"Encoding\"),e,t.strings,f.charset);}t.charset=f;t.encoding=g;var p=this.parseCharStrings({charStrings:h,localSubrIndex:c.privateDict.subrsIndex,globalSubrIndex:s.obj,fdSelect:t.fdSelect,fdArray:t.fdArray,privateDict:c.privateDict});t.charStrings=p.charStrings;t.seacs=p.seacs;t.widths=p.widths;return t;}},{key:\"parseHeader\",value:function parseHeader(){var e=this.bytes;var t=e.length;var r=0;for(;r<t&&1!==e[r];)++r;if(r>=t)throw new a.FormatError(\"Invalid CFF header\");if(0!==r){(0,a.info)(\"cff data is shifted\");e=e.subarray(r);this.bytes=e;}var n=e[0],i=e[1],s=e[2],o=e[3];return{obj:new CFFHeader(n,i,s,o),endPos:s};}},{key:\"parseDict\",value:function parseDict(e){var t=0;function parseOperand(){var r=e[t++];if(30===r)return function parseFloatOperand(){var r=\"\";var a=15,n=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"],i=e.length;for(;t<i;){var _i107=e[t++],_s66=_i107>>4,_o44=15&_i107;if(_s66===a)break;r+=n[_s66];if(_o44===a)break;r+=n[_o44];}return _parseFloat(r);}();if(28===r){r=e[t++];r=(r<<24|e[t++]<<16)>>16;return r;}if(29===r){r=e[t++];r=r<<8|e[t++];r=r<<8|e[t++];r=r<<8|e[t++];return r;}if(r>=32&&r<=246)return r-139;if(r>=247&&r<=250)return 256*(r-247)+e[t++]+108;if(r>=251&&r<=254)return-256*(r-251)-e[t++]-108;(0,a.warn)('CFFParser_parseDict: \"'+r+'\" is a reserved command.');return NaN;}var r=[];var n=[];t=0;var i=e.length;for(;t<i;){var _a159=e[t];if(_a159<=21){12===_a159&&(_a159=_a159<<8|e[++t]);n.push([_a159,r]);r=[];++t;}else r.push(parseOperand());}return n;}},{key:\"parseIndex\",value:function parseIndex(e){var t=new CFFIndex(),r=this.bytes,a=r[e++]<<8|r[e++],n=[];var i,s,o=e;if(0!==a){var _t237=r[e++],_c30=e+(a+1)*_t237-1;for(i=0,s=a+1;i<s;++i){var _a160=0;for(var _n116=0;_n116<_t237;++_n116){_a160<<=8;_a160+=r[e++];}n.push(_c30+_a160);}o=n[a];}for(i=0,s=n.length-1;i<s;++i){var _e334=n[i],_a161=n[i+1];t.add(r.subarray(_e334,_a161));}return{obj:t,endPos:o};}},{key:\"parseNameIndex\",value:function parseNameIndex(e){var t=[];for(var _r200=0,_n117=e.count;_r200<_n117;++_r200){var _n118=e.get(_r200);t.push((0,a.bytesToString)(_n118));}return t;}},{key:\"parseStringIndex\",value:function parseStringIndex(e){var t=new CFFStrings();for(var _r201=0,_n119=e.count;_r201<_n119;++_r201){var _n120=e.get(_r201);t.add((0,a.bytesToString)(_n120));}return t;}},{key:\"createDict\",value:function createDict(e,t,r){var a=new e(r);for(var _e335=0,_r202=t.length;_e335<_r202;++_e335){var _r203=t[_e335],_n121=_r203[0],_i108=_r203[1];a.setByKey(_n121,_i108);}return a;}},{key:\"parseCharString\",value:function parseCharString(e,t,r,n){if(!t||e.callDepth>10)return!1;var i=e.stackSize;var s=e.stack,o=t.length;for(var _h17=0;_h17<o;){var _o45=t[_h17++];var _u10=null;if(12===_o45){var _e336=t[_h17++];if(0===_e336){t[_h17-2]=139;t[_h17-1]=22;i=0;}else _u10=l[_e336];}else if(28===_o45){s[i]=(t[_h17]<<24|t[_h17+1]<<16)>>16;_h17+=2;i++;}else if(14===_o45){if(i>=4){i-=4;if(this.seacAnalysisEnabled){e.seac=_sliceInstanceProperty(s).call(s,i,i+4);return!1;}}_u10=c[_o45];}else if(_o45>=32&&_o45<=246){s[i]=_o45-139;i++;}else if(_o45>=247&&_o45<=254){s[i]=_o45<251?(_o45-247<<8)+t[_h17]+108:-(_o45-251<<8)-t[_h17]-108;_h17++;i++;}else if(255===_o45){s[i]=(t[_h17]<<24|t[_h17+1]<<16|t[_h17+2]<<8|t[_h17+3])/65536;_h17+=4;i++;}else if(19===_o45||20===_o45){e.hints+=i>>1;_h17+=e.hints+7>>3;i%=2;_u10=c[_o45];}else{if(10===_o45||29===_o45){var _t238=void 0;_t238=10===_o45?r:n;if(!_t238){_u10=c[_o45];(0,a.warn)(\"Missing subrsIndex for \"+_u10.id);return!1;}var _l22=32768;_t238.count<1240?_l22=107:_t238.count<33900&&(_l22=1131);var _h18=s[--i]+_l22;if(_h18<0||_h18>=_t238.count||isNaN(_h18)){_u10=c[_o45];(0,a.warn)(\"Out of bounds subrIndex for \"+_u10.id);return!1;}e.stackSize=i;e.callDepth++;if(!this.parseCharString(e,_t238.get(_h18),r,n))return!1;e.callDepth--;i=e.stackSize;continue;}if(11===_o45){e.stackSize=i;return!0;}if(0===_o45&&_h17===t.length){t[_h17-1]=14;_u10=c[14];}else _u10=c[_o45];}if(_u10){if(_u10.stem){e.hints+=i>>1;if(3===_o45||23===_o45)e.hasVStems=!0;else if(e.hasVStems&&(1===_o45||18===_o45)){(0,a.warn)(\"CFF stem hints are in wrong order\");t[_h17-1]=1===_o45?3:23;}}if(\"min\"in _u10&&!e.undefStack&&i<_u10.min){(0,a.warn)(\"Not enough parameters for \"+_u10.id+\"; actual: \"+i+\", expected: \"+_u10.min);if(0===i){t[_h17-1]=14;return!0;}return!1;}if(e.firstStackClearing&&_u10.stackClearing){e.firstStackClearing=!1;i-=_u10.min;i>=2&&_u10.stem?i%=2:i>1&&(0,a.warn)(\"Found too many parameters for stack-clearing command\");i>0&&(e.width=s[i-1]);}if(\"stackDelta\"in _u10){\"stackFn\"in _u10&&_u10.stackFn(s,i);i+=_u10.stackDelta;}else if(_u10.stackClearing)i=0;else if(_u10.resetStack){i=0;e.undefStack=!1;}else if(_u10.undefStack){i=0;e.undefStack=!0;e.firstStackClearing=!1;}}}e.stackSize=i;return!0;}},{key:\"parseCharStrings\",value:function parseCharStrings(e){var t=e.charStrings,r=e.localSubrIndex,n=e.globalSubrIndex,i=e.fdSelect,s=e.fdArray,o=e.privateDict;var c=[],l=[],h=t.count;for(var _e337=0;_e337<h;_e337++){var _h19=t.get(_e337),_u11={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1};var _d10=!0,f=null,_g16=o;if(i&&s.length){var _t239=i.getFDIndex(_e337);if(-1===_t239){(0,a.warn)(\"Glyph index is not in fd select.\");_d10=!1;}if(_t239>=s.length){(0,a.warn)(\"Invalid fd index for glyph index.\");_d10=!1;}if(_d10){_g16=s[_t239].privateDict;f=_g16.subrsIndex;}}else r&&(f=r);_d10&&(_d10=this.parseCharString(_u11,_h19,f,n));if(null!==_u11.width){var _t240=_g16.getByName(\"nominalWidthX\");l[_e337]=_t240+_u11.width;}else{var _t241=_g16.getByName(\"defaultWidthX\");l[_e337]=_t241;}null!==_u11.seac&&(c[_e337]=_u11.seac);_d10||t.set(_e337,new Uint8Array([14]));}return{charStrings:t,seacs:c,widths:l};}},{key:\"emptyPrivateDictionary\",value:function emptyPrivateDictionary(e){var t=this.createDict(CFFPrivateDict,[],e.strings);e.setByKey(18,[0,0]);e.privateDict=t;}},{key:\"parsePrivateDict\",value:function parsePrivateDict(e){if(!e.hasName(\"Private\")){this.emptyPrivateDictionary(e);return;}var t=e.getByName(\"Private\");if(!Array.isArray(t)||2!==t.length){e.removeByName(\"Private\");return;}var r=t[0],a=t[1];if(0===r||a>=this.bytes.length){this.emptyPrivateDictionary(e);return;}var n=a+r,i=this.bytes.subarray(a,n),s=this.parseDict(i),o=this.createDict(CFFPrivateDict,s,e.strings);e.privateDict=o;if(!o.getByName(\"Subrs\"))return;var c=o.getByName(\"Subrs\"),l=a+c;if(0===c||l>=this.bytes.length){this.emptyPrivateDictionary(e);return;}var h=this.parseIndex(l);o.subrsIndex=h.obj;}},{key:\"parseCharsets\",value:function parseCharsets(e,t,r,i){if(0===e)return new CFFCharset(!0,d.ISO_ADOBE,n.ISOAdobeCharset);if(1===e)return new CFFCharset(!0,d.EXPERT,n.ExpertCharset);if(2===e)return new CFFCharset(!0,d.EXPERT_SUBSET,n.ExpertSubsetCharset);var s=this.bytes,o=e,c=s[e++],l=[i?0:\".notdef\"];var h,u,f;t-=1;switch(c){case 0:for(f=0;f<t;f++){h=s[e++]<<8|s[e++];l.push(i?h:r.get(h));}break;case 1:for(;l.length<=t;){h=s[e++]<<8|s[e++];u=s[e++];for(f=0;f<=u;f++)l.push(i?h++:r.get(h++));}break;case 2:for(;l.length<=t;){h=s[e++]<<8|s[e++];u=s[e++]<<8|s[e++];for(f=0;f<=u;f++)l.push(i?h++:r.get(h++));}break;default:throw new a.FormatError(\"Unknown charset format\");}var g=e,p=s.subarray(o,g);return new CFFCharset(!1,c,l,p);}},{key:\"parseEncoding\",value:function parseEncoding(e,t,r,n){var s=Object.create(null),o=this.bytes;var c,l,h,u=!1,d=null;if(0===e||1===e){u=!0;c=e;var _t242=e?i.ExpertEncoding:i.StandardEncoding;for(l=0,h=n.length;l<h;l++){var _e338=_indexOfInstanceProperty(_t242).call(_t242,n[l]);-1!==_e338&&(s[_e338]=l);}}else{var _t243=e;c=o[e++];switch(127&c){case 0:var _t244=o[e++];for(l=1;l<=_t244;l++)s[o[e++]]=l;break;case 1:var _r204=o[e++];var _n122=1;for(l=0;l<_r204;l++){var _t245=o[e++],_r205=o[e++];for(var _e339=_t245;_e339<=_t245+_r205;_e339++)s[_e339]=_n122++;}break;default:throw new a.FormatError(\"Unknown encoding format: \".concat(c,\" in CFF\"));}var _i109=e;if(128&c){o[_t243]&=127;!function readSupplement(){var t=o[e++];for(l=0;l<t;l++){var _t246=o[e++],_a162=(o[e++]<<8)+(255&o[e++]);s[_t246]=_indexOfInstanceProperty(n).call(n,r.get(_a162));}}();}d=o.subarray(_t243,_i109);}c&=127;return new CFFEncoding(u,c,s,d);}},{key:\"parseFDSelect\",value:function parseFDSelect(e,t){var r=this.bytes,n=r[e++],i=[];var s;switch(n){case 0:for(s=0;s<t;++s){var _t247=r[e++];i.push(_t247);}break;case 3:var _o46=r[e++]<<8|r[e++];for(s=0;s<_o46;++s){var _t248=r[e++]<<8|r[e++];if(0===s&&0!==_t248){(0,a.warn)(\"parseFDSelect: The first range must have a first GID of 0 -- trying to recover.\");_t248=0;}var _n123=r[e++],_o47=r[e]<<8|r[e+1];for(var _e340=_t248;_e340<_o47;++_e340)i.push(_n123);}e+=2;break;default:throw new a.FormatError(\"parseFDSelect: Unknown format \\\"\".concat(n,\"\\\".\"));}if(i.length!==t)throw new a.FormatError(\"parseFDSelect: Invalid font data.\");return new CFFFDSelect(n,i);}}]);return CFFParser;}();var CFF=/*#__PURE__*/function(){function CFF(){_classCallCheck(this,CFF);this.header=null;this.names=[];this.topDict=null;this.strings=new CFFStrings();this.globalSubrIndex=null;this.encoding=null;this.charset=null;this.charStrings=null;this.fdArray=[];this.fdSelect=null;this.isCIDFont=!1;}_createClass(CFF,[{key:\"duplicateFirstGlyph\",value:function duplicateFirstGlyph(){if(this.charStrings.count>=65535){(0,a.warn)(\"Not enough space in charstrings to duplicate first glyph.\");return;}var e=this.charStrings.get(0);this.charStrings.add(e);this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0]);}},{key:\"hasGlyphId\",value:function hasGlyphId(e){if(e<0||e>=this.charStrings.count)return!1;return this.charStrings.get(e).length>0;}}]);return CFF;}();t.CFF=CFF;var CFFHeader=/*#__PURE__*/_createClass(function CFFHeader(e,t,r,a){_classCallCheck(this,CFFHeader);this.major=e;this.minor=t;this.hdrSize=r;this.offSize=a;});t.CFFHeader=CFFHeader;var CFFStrings=/*#__PURE__*/function(){function CFFStrings(){_classCallCheck(this,CFFStrings);this.strings=[];}_createClass(CFFStrings,[{key:\"get\",value:function get(e){return e>=0&&e<=390?s[e]:e-o<=this.strings.length?this.strings[e-o]:s[0];}},{key:\"getSID\",value:function getSID(e){var _context253;var t=_indexOfInstanceProperty(s).call(s,e);if(-1!==t)return t;t=_indexOfInstanceProperty(_context253=this.strings).call(_context253,e);return-1!==t?t+o:-1;}},{key:\"add\",value:function add(e){this.strings.push(e);}},{key:\"count\",get:function get(){return this.strings.length;}}]);return CFFStrings;}();t.CFFStrings=CFFStrings;var CFFIndex=/*#__PURE__*/function(){function CFFIndex(){_classCallCheck(this,CFFIndex);this.objects=[];this.length=0;}_createClass(CFFIndex,[{key:\"add\",value:function add(e){this.length+=e.length;this.objects.push(e);}},{key:\"set\",value:function set(e,t){this.length+=t.length-this.objects[e].length;this.objects[e]=t;}},{key:\"get\",value:function get(e){return this.objects[e];}},{key:\"count\",get:function get(){return this.objects.length;}}]);return CFFIndex;}();t.CFFIndex=CFFIndex;var CFFDict=/*#__PURE__*/function(){function CFFDict(e,t){_classCallCheck(this,CFFDict);this.keyToNameMap=e.keyToNameMap;this.nameToKeyMap=e.nameToKeyMap;this.defaults=e.defaults;this.types=e.types;this.opcodes=e.opcodes;this.order=e.order;this.strings=t;this.values=Object.create(null);}_createClass(CFFDict,[{key:\"setByKey\",value:function setByKey(e,t){if(!(e in this.keyToNameMap))return!1;var r=t.length;if(0===r)return!0;for(var _n124=0;_n124<r;_n124++)if(isNaN(t[_n124])){(0,a.warn)('Invalid CFFDict value: \"'+t+'\" for key \"'+e+'\".');return!0;}var n=this.types[e];\"num\"!==n&&\"sid\"!==n&&\"offset\"!==n||(t=t[0]);_valuesInstanceProperty(this)[e]=t;return!0;}},{key:\"setByName\",value:function setByName(e,t){if(!(e in this.nameToKeyMap))throw new a.FormatError(\"Invalid dictionary name \\\"\".concat(e,\"\\\"\"));_valuesInstanceProperty(this)[this.nameToKeyMap[e]]=t;}},{key:\"hasName\",value:function hasName(e){return this.nameToKeyMap[e]in _valuesInstanceProperty(this);}},{key:\"getByName\",value:function getByName(e){if(!(e in this.nameToKeyMap))throw new a.FormatError(\"Invalid dictionary name \".concat(e,\"\\\"\"));var t=this.nameToKeyMap[e];return t in _valuesInstanceProperty(this)?_valuesInstanceProperty(this)[t]:this.defaults[t];}},{key:\"removeByName\",value:function removeByName(e){delete _valuesInstanceProperty(this)[this.nameToKeyMap[e]];}}],[{key:\"createTables\",value:function createTables(e){var t={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(var _r206=0,_a163=e.length;_r206<_a163;++_r206){var _a164=e[_r206],_n125=Array.isArray(_a164[0])?(_a164[0][0]<<8)+_a164[0][1]:_a164[0];t.keyToNameMap[_n125]=_a164[1];t.nameToKeyMap[_a164[1]]=_n125;t.types[_n125]=_a164[2];t.defaults[_n125]=_a164[3];t.opcodes[_n125]=Array.isArray(_a164[0])?_a164[0]:[_a164[0]];t.order.push(_n125);}return t;}}]);return CFFDict;}();var h=[[[12,30],\"ROS\",[\"sid\",\"sid\",\"num\"],null],[[12,20],\"SyntheticBase\",\"num\",null],[0,\"version\",\"sid\",null],[1,\"Notice\",\"sid\",null],[[12,0],\"Copyright\",\"sid\",null],[2,\"FullName\",\"sid\",null],[3,\"FamilyName\",\"sid\",null],[4,\"Weight\",\"sid\",null],[[12,1],\"isFixedPitch\",\"num\",0],[[12,2],\"ItalicAngle\",\"num\",0],[[12,3],\"UnderlinePosition\",\"num\",-100],[[12,4],\"UnderlineThickness\",\"num\",50],[[12,5],\"PaintType\",\"num\",0],[[12,6],\"CharstringType\",\"num\",2],[[12,7],\"FontMatrix\",[\"num\",\"num\",\"num\",\"num\",\"num\",\"num\"],[.001,0,0,.001,0,0]],[13,\"UniqueID\",\"num\",null],[5,\"FontBBox\",[\"num\",\"num\",\"num\",\"num\"],[0,0,0,0]],[[12,8],\"StrokeWidth\",\"num\",0],[14,\"XUID\",\"array\",null],[15,\"charset\",\"offset\",0],[16,\"Encoding\",\"offset\",0],[17,\"CharStrings\",\"offset\",0],[18,\"Private\",[\"offset\",\"offset\"],null],[[12,21],\"PostScript\",\"sid\",null],[[12,22],\"BaseFontName\",\"sid\",null],[[12,23],\"BaseFontBlend\",\"delta\",null],[[12,31],\"CIDFontVersion\",\"num\",0],[[12,32],\"CIDFontRevision\",\"num\",0],[[12,33],\"CIDFontType\",\"num\",0],[[12,34],\"CIDCount\",\"num\",8720],[[12,35],\"UIDBase\",\"num\",null],[[12,37],\"FDSelect\",\"offset\",null],[[12,36],\"FDArray\",\"offset\",null],[[12,38],\"FontName\",\"sid\",null]];var CFFTopDict=/*#__PURE__*/function(_CFFDict){_inherits(CFFTopDict,_CFFDict);function CFFTopDict(e){var _this78;_classCallCheck(this,CFFTopDict);_this78=_callSuper(this,CFFTopDict,[CFFTopDict.tables,e]);_this78.privateDict=null;return _this78;}_createClass(CFFTopDict,null,[{key:\"tables\",get:function get(){return(0,a.shadow)(this,\"tables\",this.createTables(h));}}]);return CFFTopDict;}(CFFDict);t.CFFTopDict=CFFTopDict;var u=[[6,\"BlueValues\",\"delta\",null],[7,\"OtherBlues\",\"delta\",null],[8,\"FamilyBlues\",\"delta\",null],[9,\"FamilyOtherBlues\",\"delta\",null],[[12,9],\"BlueScale\",\"num\",.039625],[[12,10],\"BlueShift\",\"num\",7],[[12,11],\"BlueFuzz\",\"num\",1],[10,\"StdHW\",\"num\",null],[11,\"StdVW\",\"num\",null],[[12,12],\"StemSnapH\",\"delta\",null],[[12,13],\"StemSnapV\",\"delta\",null],[[12,14],\"ForceBold\",\"num\",0],[[12,17],\"LanguageGroup\",\"num\",0],[[12,18],\"ExpansionFactor\",\"num\",.06],[[12,19],\"initialRandomSeed\",\"num\",0],[20,\"defaultWidthX\",\"num\",0],[21,\"nominalWidthX\",\"num\",0],[19,\"Subrs\",\"offset\",null]];var CFFPrivateDict=/*#__PURE__*/function(_CFFDict2){_inherits(CFFPrivateDict,_CFFDict2);function CFFPrivateDict(e){var _this79;_classCallCheck(this,CFFPrivateDict);_this79=_callSuper(this,CFFPrivateDict,[CFFPrivateDict.tables,e]);_this79.subrsIndex=null;return _this79;}_createClass(CFFPrivateDict,null,[{key:\"tables\",get:function get(){return(0,a.shadow)(this,\"tables\",this.createTables(u));}}]);return CFFPrivateDict;}(CFFDict);t.CFFPrivateDict=CFFPrivateDict;var d={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};var CFFCharset=/*#__PURE__*/_createClass(function CFFCharset(e,t,r,a){_classCallCheck(this,CFFCharset);this.predefined=e;this.format=t;this.charset=r;this.raw=a;});t.CFFCharset=CFFCharset;var CFFEncoding=/*#__PURE__*/_createClass(function CFFEncoding(e,t,r,a){_classCallCheck(this,CFFEncoding);this.predefined=e;this.format=t;this.encoding=r;this.raw=a;});var CFFFDSelect=/*#__PURE__*/function(){function CFFFDSelect(e,t){_classCallCheck(this,CFFFDSelect);this.format=e;this.fdSelect=t;}_createClass(CFFFDSelect,[{key:\"getFDIndex\",value:function getFDIndex(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e];}}]);return CFFFDSelect;}();t.CFFFDSelect=CFFFDSelect;var CFFOffsetTracker=/*#__PURE__*/function(){function CFFOffsetTracker(){_classCallCheck(this,CFFOffsetTracker);this.offsets=Object.create(null);}_createClass(CFFOffsetTracker,[{key:\"isTracking\",value:function isTracking(e){return e in this.offsets;}},{key:\"track\",value:function track(e,t){if(e in this.offsets)throw new a.FormatError(\"Already tracking location of \".concat(e));this.offsets[e]=t;}},{key:\"offset\",value:function offset(e){for(var _t249 in this.offsets)this.offsets[_t249]+=e;}},{key:\"setEntryLocation\",value:function setEntryLocation(e,t,r){if(!(e in this.offsets))throw new a.FormatError(\"Not tracking location of \".concat(e));var n=r.data,i=this.offsets[e];for(var _e341=0,_r207=t.length;_e341<_r207;++_e341){var _r208=5*_e341+i,_s67=_r208+1,_o48=_r208+2,_c31=_r208+3,_l23=_r208+4;if(29!==n[_r208]||0!==n[_s67]||0!==n[_o48]||0!==n[_c31]||0!==n[_l23])throw new a.FormatError(\"writing to an offset that is not empty\");var _h20=t[_e341];n[_r208]=29;n[_s67]=_h20>>24&255;n[_o48]=_h20>>16&255;n[_c31]=_h20>>8&255;n[_l23]=255&_h20;}}}]);return CFFOffsetTracker;}();var CFFCompiler=/*#__PURE__*/function(){function CFFCompiler(e){_classCallCheck(this,CFFCompiler);this.cff=e;}_createClass(CFFCompiler,[{key:\"compile\",value:function compile(){var e=this.cff,t={data:[],length:0,add:function add(e){var _context254;this.data=_concatInstanceProperty(_context254=this.data).call(_context254,e);this.length=this.data.length;}},r=this.compileHeader(e.header);t.add(r);var n=this.compileNameIndex(e.names);t.add(n);if(e.isCIDFont&&e.topDict.hasName(\"FontMatrix\")){var _t250=e.topDict.getByName(\"FontMatrix\");e.topDict.removeByName(\"FontMatrix\");for(var _r209=0,_n126=e.fdArray.length;_r209<_n126;_r209++){var _n127=e.fdArray[_r209];var _i110=_sliceInstanceProperty(_t250).call(_t250,0);_n127.hasName(\"FontMatrix\")&&(_i110=a.Util.transform(_i110,_n127.getByName(\"FontMatrix\")));_n127.setByName(\"FontMatrix\",_i110);}}var i=e.topDict.getByName(\"XUID\");i&&i.length>16&&e.topDict.removeByName(\"XUID\");e.topDict.setByName(\"charset\",0);var s=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.add(s.output);var o=s.trackers[0],c=this.compileStringIndex(e.strings.strings);t.add(c);var l=this.compileIndex(e.globalSubrIndex);t.add(l);if(e.encoding&&e.topDict.hasName(\"Encoding\"))if(e.encoding.predefined)o.setEntryLocation(\"Encoding\",[e.encoding.format],t);else{var _r210=this.compileEncoding(e.encoding);o.setEntryLocation(\"Encoding\",[t.length],t);t.add(_r210);}var h=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);o.setEntryLocation(\"charset\",[t.length],t);t.add(h);var u=this.compileCharStrings(e.charStrings);o.setEntryLocation(\"CharStrings\",[t.length],t);t.add(u);if(e.isCIDFont){o.setEntryLocation(\"FDSelect\",[t.length],t);var _r211=this.compileFDSelect(e.fdSelect);t.add(_r211);s=this.compileTopDicts(e.fdArray,t.length,!0);o.setEntryLocation(\"FDArray\",[t.length],t);t.add(s.output);var _a165=s.trackers;this.compilePrivateDicts(e.fdArray,_a165,t);}this.compilePrivateDicts([e.topDict],[o],t);t.add([0]);return t.data;}},{key:\"encodeNumber\",value:function encodeNumber(e){return _Number$isInteger(e)?this.encodeInteger(e):this.encodeFloat(e);}},{key:\"encodeFloat\",value:function encodeFloat(e){var t=e.toString();var r=CFFCompiler.EncodeFloatRegExp.exec(t);if(r){var _a166=_parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*_a166)/_a166).toString();}var a,n,i=\"\";for(a=0,n=t.length;a<n;++a){var _e342=t[a];i+=\"e\"===_e342?\"-\"===t[++a]?\"c\":\"b\":\".\"===_e342?\"a\":\"-\"===_e342?\"e\":_e342;}i+=1&i.length?\"f\":\"ff\";var s=[30];for(a=0,n=i.length;a<n;a+=2)s.push(_parseInt(i.substring(a,a+2),16));return s;}},{key:\"encodeInteger\",value:function encodeInteger(e){var t;t=e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e];return t;}},{key:\"compileHeader\",value:function compileHeader(e){return[e.major,e.minor,4,e.offSize];}},{key:\"compileNameIndex\",value:function compileNameIndex(e){var t=new CFFIndex();for(var _r212=0,_n128=e.length;_r212<_n128;++_r212){var _n129=e[_r212],_i111=Math.min(_n129.length,127);var _s68=new Array(_i111);for(var _e343=0;_e343<_i111;_e343++){var _t251=_n129[_e343];(_t251<\"!\"||_t251>\"~\"||\"[\"===_t251||\"]\"===_t251||\"(\"===_t251||\")\"===_t251||\"{\"===_t251||\"}\"===_t251||\"<\"===_t251||\">\"===_t251||\"/\"===_t251||\"%\"===_t251)&&(_t251=\"_\");_s68[_e343]=_t251;}_s68=_s68.join(\"\");\"\"===_s68&&(_s68=\"Bad_Font_Name\");t.add((0,a.stringToBytes)(_s68));}return this.compileIndex(t);}},{key:\"compileTopDicts\",value:function compileTopDicts(e,t,r){var a=[];var n=new CFFIndex();for(var _i112=0,_s69=e.length;_i112<_s69;++_i112){var _s70=e[_i112];if(r){_s70.removeByName(\"CIDFontVersion\");_s70.removeByName(\"CIDFontRevision\");_s70.removeByName(\"CIDFontType\");_s70.removeByName(\"CIDCount\");_s70.removeByName(\"UIDBase\");}var _o49=new CFFOffsetTracker(),_c32=this.compileDict(_s70,_o49);a.push(_o49);n.add(_c32);_o49.offset(t);}n=this.compileIndex(n,a);return{trackers:a,output:n};}},{key:\"compilePrivateDicts\",value:function compilePrivateDicts(e,t,r){for(var _n130=0,_i113=e.length;_n130<_i113;++_n130){var _i114=e[_n130],_s71=_i114.privateDict;if(!_s71||!_i114.hasName(\"Private\"))throw new a.FormatError(\"There must be a private dictionary.\");var _o50=new CFFOffsetTracker(),_c33=this.compileDict(_s71,_o50);var _l24=r.length;_o50.offset(_l24);_c33.length||(_l24=0);t[_n130].setEntryLocation(\"Private\",[_c33.length,_l24],r);r.add(_c33);if(_s71.subrsIndex&&_s71.hasName(\"Subrs\")){var _e344=this.compileIndex(_s71.subrsIndex);_o50.setEntryLocation(\"Subrs\",[_c33.length],r);r.add(_e344);}}}},{key:\"compileDict\",value:function compileDict(e,t){var r=[];var _iterator78=_createForOfIteratorHelper(e.order),_step78;try{for(_iterator78.s();!(_step78=_iterator78.n()).done;){var _n131=_step78.value;if(!(_n131 in _valuesInstanceProperty(e)))continue;var _i115=_valuesInstanceProperty(e)[_n131],_s72=e.types[_n131];Array.isArray(_s72)||(_s72=[_s72]);Array.isArray(_i115)||(_i115=[_i115]);if(0!==_i115.length){for(var _o51=0,_c34=_s72.length;_o51<_c34;++_o51){var _c35=_s72[_o51],_l25=_i115[_o51];switch(_c35){case\"num\":case\"sid\":r.push.apply(r,_toConsumableArray(this.encodeNumber(_l25)));break;case\"offset\":var _s73=e.keyToNameMap[_n131];t.isTracking(_s73)||t.track(_s73,r.length);r.push(29,0,0,0,0);break;case\"array\":case\"delta\":r.push.apply(r,_toConsumableArray(this.encodeNumber(_l25)));for(var _e345=1,_t252=_i115.length;_e345<_t252;++_e345)r.push.apply(r,_toConsumableArray(this.encodeNumber(_i115[_e345])));break;default:throw new a.FormatError(\"Unknown data type of \".concat(_c35));}}r.push.apply(r,_toConsumableArray(e.opcodes[_n131]));}}}catch(err){_iterator78.e(err);}finally{_iterator78.f();}return r;}},{key:\"compileStringIndex\",value:function compileStringIndex(e){var t=new CFFIndex();for(var _r213=0,_n132=e.length;_r213<_n132;++_r213)t.add((0,a.stringToBytes)(e[_r213]));return this.compileIndex(t);}},{key:\"compileGlobalSubrIndex\",value:function compileGlobalSubrIndex(){var e=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(e));}},{key:\"compileCharStrings\",value:function compileCharStrings(e){var t=new CFFIndex();for(var _r214=0;_r214<e.count;_r214++){var _a167=e.get(_r214);0!==_a167.length?t.add(_a167):t.add(new Uint8Array([139,14]));}return this.compileIndex(t);}},{key:\"compileCharset\",value:function compileCharset(e,t,r,n){var i;var s=t-1;if(n)i=new Uint8Array([2,0,0,s>>8&255,255&s]);else{i=new Uint8Array(1+2*s);i[0]=0;var _t253=0;var _n133=e.charset.length;var _o52=!1;for(var _s74=1;_s74<i.length;_s74+=2){var _c36=0;if(_t253<_n133){var _n134=e.charset[_t253++];_c36=r.getSID(_n134);if(-1===_c36){_c36=0;if(!_o52){_o52=!0;(0,a.warn)(\"Couldn't find \".concat(_n134,\" in CFF strings\"));}}}i[_s74]=_c36>>8&255;i[_s74+1]=255&_c36;}}return this.compileTypedArray(i);}},{key:\"compileEncoding\",value:function compileEncoding(e){return this.compileTypedArray(e.raw);}},{key:\"compileFDSelect\",value:function compileFDSelect(e){var t=e.format;var r,a;switch(t){case 0:r=new Uint8Array(1+e.fdSelect.length);r[0]=t;for(a=0;a<e.fdSelect.length;a++)r[a+1]=e.fdSelect[a];break;case 3:var _n135=0;var _i116=e.fdSelect[0];var _s75=[t,0,0,_n135>>8&255,255&_n135,_i116];for(a=1;a<e.fdSelect.length;a++){var _t254=e.fdSelect[a];if(_t254!==_i116){_s75.push(a>>8&255,255&a,_t254);_i116=_t254;}}var _o53=(_s75.length-3)/3;_s75[1]=_o53>>8&255;_s75[2]=255&_o53;_s75.push(a>>8&255,255&a);r=new Uint8Array(_s75);}return this.compileTypedArray(r);}},{key:\"compileTypedArray\",value:function compileTypedArray(e){var t=[];for(var _r215=0,_a168=e.length;_r215<_a168;++_r215)t[_r215]=e[_r215];return t;}},{key:\"compileIndex\",value:function compileIndex(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];var r=e.objects,a=r.length;if(0===a)return[0,0];var n=[a>>8&255,255&a];var i,s,o=1;for(i=0;i<a;++i)o+=r[i].length;s=o<256?1:o<65536?2:o<16777216?3:4;n.push(s);var c=1;for(i=0;i<a+1;i++){1===s?n.push(255&c):2===s?n.push(c>>8&255,255&c):3===s?n.push(c>>16&255,c>>8&255,255&c):n.push(c>>>24&255,c>>16&255,c>>8&255,255&c);r[i]&&(c+=r[i].length);}for(i=0;i<a;i++){t[i]&&t[i].offset(n.length);for(var _e346=0,_t255=r[i].length;_e346<_t255;_e346++)n.push(r[i][_e346]);}return n;}}],[{key:\"EncodeFloatRegExp\",get:function get(){return(0,a.shadow)(this,\"EncodeFloatRegExp\",/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/);}}]);return CFFCompiler;}();t.CFFCompiler=CFFCompiler;},function(e,t){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.ISOAdobeCharset=t.ExpertSubsetCharset=t.ExpertCharset=void 0;t.ISOAdobeCharset=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\"];t.ExpertCharset=[\".notdef\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"];t.ExpertSubsetCharset=[\".notdef\",\"space\",\"dollaroldstyle\",\"dollarsuperior\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"hyphensuperior\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"centoldstyle\",\"figuredash\",\"hypheninferior\",\"onequarter\",\"onehalf\",\"threequarters\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\"];},function(e,t){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.ZapfDingbatsEncoding=t.WinAnsiEncoding=t.SymbolSetEncoding=t.StandardEncoding=t.MacRomanEncoding=t.ExpertEncoding=void 0;t.getEncoding=function getEncoding(e){switch(e){case\"WinAnsiEncoding\":return s;case\"StandardEncoding\":return i;case\"MacRomanEncoding\":return n;case\"SymbolSetEncoding\":return o;case\"ZapfDingbatsEncoding\":return c;case\"ExpertEncoding\":return r;case\"MacExpertEncoding\":return a;default:return null;}};var r=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"];t.ExpertEncoding=r;var a=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"centoldstyle\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"\",\"threequartersemdash\",\"\",\"questionsmall\",\"\",\"\",\"\",\"\",\"Ethsmall\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"\",\"\",\"\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hypheninferior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"asuperior\",\"centsuperior\",\"\",\"\",\"\",\"\",\"Aacutesmall\",\"Agravesmall\",\"Acircumflexsmall\",\"Adieresissmall\",\"Atildesmall\",\"Aringsmall\",\"Ccedillasmall\",\"Eacutesmall\",\"Egravesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Iacutesmall\",\"Igravesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ntildesmall\",\"Oacutesmall\",\"Ogravesmall\",\"Ocircumflexsmall\",\"Odieresissmall\",\"Otildesmall\",\"Uacutesmall\",\"Ugravesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"\",\"eightsuperior\",\"fourinferior\",\"threeinferior\",\"sixinferior\",\"eightinferior\",\"seveninferior\",\"Scaronsmall\",\"\",\"centinferior\",\"twoinferior\",\"\",\"Dieresissmall\",\"\",\"Caronsmall\",\"osuperior\",\"fiveinferior\",\"\",\"commainferior\",\"periodinferior\",\"Yacutesmall\",\"\",\"dollarinferior\",\"\",\"\",\"Thornsmall\",\"\",\"nineinferior\",\"zeroinferior\",\"Zcaronsmall\",\"AEsmall\",\"Oslashsmall\",\"questiondownsmall\",\"oneinferior\",\"Lslashsmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"Cedillasmall\",\"\",\"\",\"\",\"\",\"\",\"OEsmall\",\"figuredash\",\"hyphensuperior\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"\",\"Ydieresissmall\",\"\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"ninesuperior\",\"zerosuperior\",\"\",\"esuperior\",\"rsuperior\",\"tsuperior\",\"\",\"\",\"isuperior\",\"ssuperior\",\"dsuperior\",\"\",\"\",\"\",\"\",\"\",\"lsuperior\",\"Ogoneksmall\",\"Brevesmall\",\"Macronsmall\",\"bsuperior\",\"nsuperior\",\"msuperior\",\"commasuperior\",\"periodsuperior\",\"Dotaccentsmall\",\"Ringsmall\",\"\",\"\",\"\",\"\"],n=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"space\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\"];t.MacRomanEncoding=n;var i=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"\",\"\",\"\",\"\"];t.StandardEncoding=i;var s=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"bullet\",\"Euro\",\"bullet\",\"quotesinglbase\",\"florin\",\"quotedblbase\",\"ellipsis\",\"dagger\",\"daggerdbl\",\"circumflex\",\"perthousand\",\"Scaron\",\"guilsinglleft\",\"OE\",\"bullet\",\"Zcaron\",\"bullet\",\"bullet\",\"quoteleft\",\"quoteright\",\"quotedblleft\",\"quotedblright\",\"bullet\",\"endash\",\"emdash\",\"tilde\",\"trademark\",\"scaron\",\"guilsinglright\",\"oe\",\"bullet\",\"zcaron\",\"Ydieresis\",\"space\",\"exclamdown\",\"cent\",\"sterling\",\"currency\",\"yen\",\"brokenbar\",\"section\",\"dieresis\",\"copyright\",\"ordfeminine\",\"guillemotleft\",\"logicalnot\",\"hyphen\",\"registered\",\"macron\",\"degree\",\"plusminus\",\"twosuperior\",\"threesuperior\",\"acute\",\"mu\",\"paragraph\",\"periodcentered\",\"cedilla\",\"onesuperior\",\"ordmasculine\",\"guillemotright\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondown\",\"Agrave\",\"Aacute\",\"Acircumflex\",\"Atilde\",\"Adieresis\",\"Aring\",\"AE\",\"Ccedilla\",\"Egrave\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Igrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Eth\",\"Ntilde\",\"Ograve\",\"Oacute\",\"Ocircumflex\",\"Otilde\",\"Odieresis\",\"multiply\",\"Oslash\",\"Ugrave\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Yacute\",\"Thorn\",\"germandbls\",\"agrave\",\"aacute\",\"acircumflex\",\"atilde\",\"adieresis\",\"aring\",\"ae\",\"ccedilla\",\"egrave\",\"eacute\",\"ecircumflex\",\"edieresis\",\"igrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"eth\",\"ntilde\",\"ograve\",\"oacute\",\"ocircumflex\",\"otilde\",\"odieresis\",\"divide\",\"oslash\",\"ugrave\",\"uacute\",\"ucircumflex\",\"udieresis\",\"yacute\",\"thorn\",\"ydieresis\"];t.WinAnsiEncoding=s;var o=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"universal\",\"numbersign\",\"existential\",\"percent\",\"ampersand\",\"suchthat\",\"parenleft\",\"parenright\",\"asteriskmath\",\"plus\",\"comma\",\"minus\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"congruent\",\"Alpha\",\"Beta\",\"Chi\",\"Delta\",\"Epsilon\",\"Phi\",\"Gamma\",\"Eta\",\"Iota\",\"theta1\",\"Kappa\",\"Lambda\",\"Mu\",\"Nu\",\"Omicron\",\"Pi\",\"Theta\",\"Rho\",\"Sigma\",\"Tau\",\"Upsilon\",\"sigma1\",\"Omega\",\"Xi\",\"Psi\",\"Zeta\",\"bracketleft\",\"therefore\",\"bracketright\",\"perpendicular\",\"underscore\",\"radicalex\",\"alpha\",\"beta\",\"chi\",\"delta\",\"epsilon\",\"phi\",\"gamma\",\"eta\",\"iota\",\"phi1\",\"kappa\",\"lambda\",\"mu\",\"nu\",\"omicron\",\"pi\",\"theta\",\"rho\",\"sigma\",\"tau\",\"upsilon\",\"omega1\",\"omega\",\"xi\",\"psi\",\"zeta\",\"braceleft\",\"bar\",\"braceright\",\"similar\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"Euro\",\"Upsilon1\",\"minute\",\"lessequal\",\"fraction\",\"infinity\",\"florin\",\"club\",\"diamond\",\"heart\",\"spade\",\"arrowboth\",\"arrowleft\",\"arrowup\",\"arrowright\",\"arrowdown\",\"degree\",\"plusminus\",\"second\",\"greaterequal\",\"multiply\",\"proportional\",\"partialdiff\",\"bullet\",\"divide\",\"notequal\",\"equivalence\",\"approxequal\",\"ellipsis\",\"arrowvertex\",\"arrowhorizex\",\"carriagereturn\",\"aleph\",\"Ifraktur\",\"Rfraktur\",\"weierstrass\",\"circlemultiply\",\"circleplus\",\"emptyset\",\"intersection\",\"union\",\"propersuperset\",\"reflexsuperset\",\"notsubset\",\"propersubset\",\"reflexsubset\",\"element\",\"notelement\",\"angle\",\"gradient\",\"registerserif\",\"copyrightserif\",\"trademarkserif\",\"product\",\"radical\",\"dotmath\",\"logicalnot\",\"logicaland\",\"logicalor\",\"arrowdblboth\",\"arrowdblleft\",\"arrowdblup\",\"arrowdblright\",\"arrowdbldown\",\"lozenge\",\"angleleft\",\"registersans\",\"copyrightsans\",\"trademarksans\",\"summation\",\"parenlefttp\",\"parenleftex\",\"parenleftbt\",\"bracketlefttp\",\"bracketleftex\",\"bracketleftbt\",\"bracelefttp\",\"braceleftmid\",\"braceleftbt\",\"braceex\",\"\",\"angleright\",\"integral\",\"integraltp\",\"integralex\",\"integralbt\",\"parenrighttp\",\"parenrightex\",\"parenrightbt\",\"bracketrighttp\",\"bracketrightex\",\"bracketrightbt\",\"bracerighttp\",\"bracerightmid\",\"bracerightbt\",\"\"];t.SymbolSetEncoding=o;var c=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"a1\",\"a2\",\"a202\",\"a3\",\"a4\",\"a5\",\"a119\",\"a118\",\"a117\",\"a11\",\"a12\",\"a13\",\"a14\",\"a15\",\"a16\",\"a105\",\"a17\",\"a18\",\"a19\",\"a20\",\"a21\",\"a22\",\"a23\",\"a24\",\"a25\",\"a26\",\"a27\",\"a28\",\"a6\",\"a7\",\"a8\",\"a9\",\"a10\",\"a29\",\"a30\",\"a31\",\"a32\",\"a33\",\"a34\",\"a35\",\"a36\",\"a37\",\"a38\",\"a39\",\"a40\",\"a41\",\"a42\",\"a43\",\"a44\",\"a45\",\"a46\",\"a47\",\"a48\",\"a49\",\"a50\",\"a51\",\"a52\",\"a53\",\"a54\",\"a55\",\"a56\",\"a57\",\"a58\",\"a59\",\"a60\",\"a61\",\"a62\",\"a63\",\"a64\",\"a65\",\"a66\",\"a67\",\"a68\",\"a69\",\"a70\",\"a71\",\"a72\",\"a73\",\"a74\",\"a203\",\"a75\",\"a204\",\"a76\",\"a77\",\"a78\",\"a79\",\"a81\",\"a82\",\"a83\",\"a84\",\"a97\",\"a98\",\"a99\",\"a100\",\"\",\"a89\",\"a90\",\"a93\",\"a94\",\"a91\",\"a92\",\"a205\",\"a85\",\"a206\",\"a86\",\"a87\",\"a88\",\"a95\",\"a96\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"a101\",\"a102\",\"a103\",\"a104\",\"a106\",\"a107\",\"a108\",\"a112\",\"a111\",\"a110\",\"a109\",\"a120\",\"a121\",\"a122\",\"a123\",\"a124\",\"a125\",\"a126\",\"a127\",\"a128\",\"a129\",\"a130\",\"a131\",\"a132\",\"a133\",\"a134\",\"a135\",\"a136\",\"a137\",\"a138\",\"a139\",\"a140\",\"a141\",\"a142\",\"a143\",\"a144\",\"a145\",\"a146\",\"a147\",\"a148\",\"a149\",\"a150\",\"a151\",\"a152\",\"a153\",\"a154\",\"a155\",\"a156\",\"a157\",\"a158\",\"a159\",\"a160\",\"a161\",\"a163\",\"a164\",\"a196\",\"a165\",\"a192\",\"a166\",\"a167\",\"a168\",\"a169\",\"a170\",\"a171\",\"a172\",\"a173\",\"a162\",\"a174\",\"a175\",\"a176\",\"a177\",\"a178\",\"a179\",\"a193\",\"a180\",\"a199\",\"a181\",\"a200\",\"a182\",\"\",\"a201\",\"a183\",\"a184\",\"a197\",\"a185\",\"a194\",\"a198\",\"a186\",\"a195\",\"a187\",\"a188\",\"a189\",\"a190\",\"a191\",\"\"];t.ZapfDingbatsEncoding=c;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.SEAC_ANALYSIS_ENABLED=t.MacStandardGlyphOrdering=t.FontFlags=void 0;t.getFontType=function getFontType(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];switch(e){case\"Type1\":return r?a.FontType.TYPE1STANDARD:\"Type1C\"===t?a.FontType.TYPE1C:a.FontType.TYPE1;case\"CIDFontType0\":return\"CIDFontType0C\"===t?a.FontType.CIDFONTTYPE0C:a.FontType.CIDFONTTYPE0;case\"OpenType\":return a.FontType.OPENTYPE;case\"TrueType\":return a.FontType.TRUETYPE;case\"CIDFontType2\":return a.FontType.CIDFONTTYPE2;case\"MMType1\":return a.FontType.MMTYPE1;case\"Type0\":return a.FontType.TYPE0;default:return a.FontType.UNKNOWN;}};t.normalizeFontName=function normalizeFontName(e){return e.replace(/[,_]/g,\"-\").replace(/\\s/g,\"\");};t.recoverGlyphName=recoverGlyphName;t.type1FontGlyphMapping=function type1FontGlyphMapping(e,t,r){var a=Object.create(null);var s,c,l;var h=!!(_flagsInstanceProperty(e)&o.Symbolic);if(e.isInternalFont){l=t;for(c=0;c<l.length;c++){s=_indexOfInstanceProperty(r).call(r,l[c]);a[c]=s>=0?s:0;}}else if(e.baseEncodingName){l=(0,n.getEncoding)(e.baseEncodingName);for(c=0;c<l.length;c++){s=_indexOfInstanceProperty(r).call(r,l[c]);a[c]=s>=0?s:0;}}else if(h)for(c in t)a[c]=t[c];else{l=n.StandardEncoding;for(c=0;c<l.length;c++){s=_indexOfInstanceProperty(r).call(r,l[c]);a[c]=s>=0?s:0;}}var u=e.differences;var d;if(u)for(c in u){var _e347=u[c];s=_indexOfInstanceProperty(r).call(r,_e347);if(-1===s){d||(d=(0,i.getGlyphsUnicode)());var _t256=recoverGlyphName(_e347,d);_t256!==_e347&&(s=_indexOfInstanceProperty(r).call(r,_t256));}a[c]=s>=0?s:0;}return a;};var a=r(2),n=r(162),i=r(164),s=r(165);t.SEAC_ANALYSIS_ENABLED=!0;var o={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};t.FontFlags=o;t.MacStandardGlyphOrdering=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function recoverGlyphName(e,t){if(void 0!==t[e])return e;var r=(0,s.getUnicodeForGlyph)(e,t);if(-1!==r)for(var _e348 in t)if(t[_e348]===r)return _e348;(0,a.info)(\"Unable to recover a standard glyph name for: \"+e);return e;}},function(e,t,r){\"use strict\";r.r(t);r.d(t,{getDingbatsGlyphsUnicode:function getDingbatsGlyphsUnicode(){return i;},getGlyphsUnicode:function getGlyphsUnicode(){return n;}});var a=r(131);var n=(0,a.getArrayLookupTableFactory)(function(){return[\"A\",65,\"AE\",198,\"AEacute\",508,\"AEmacron\",482,\"AEsmall\",63462,\"Aacute\",193,\"Aacutesmall\",63457,\"Abreve\",258,\"Abreveacute\",7854,\"Abrevecyrillic\",1232,\"Abrevedotbelow\",7862,\"Abrevegrave\",7856,\"Abrevehookabove\",7858,\"Abrevetilde\",7860,\"Acaron\",461,\"Acircle\",9398,\"Acircumflex\",194,\"Acircumflexacute\",7844,\"Acircumflexdotbelow\",7852,\"Acircumflexgrave\",7846,\"Acircumflexhookabove\",7848,\"Acircumflexsmall\",63458,\"Acircumflextilde\",7850,\"Acute\",63177,\"Acutesmall\",63412,\"Acyrillic\",1040,\"Adblgrave\",512,\"Adieresis\",196,\"Adieresiscyrillic\",1234,\"Adieresismacron\",478,\"Adieresissmall\",63460,\"Adotbelow\",7840,\"Adotmacron\",480,\"Agrave\",192,\"Agravesmall\",63456,\"Ahookabove\",7842,\"Aiecyrillic\",1236,\"Ainvertedbreve\",514,\"Alpha\",913,\"Alphatonos\",902,\"Amacron\",256,\"Amonospace\",65313,\"Aogonek\",260,\"Aring\",197,\"Aringacute\",506,\"Aringbelow\",7680,\"Aringsmall\",63461,\"Asmall\",63329,\"Atilde\",195,\"Atildesmall\",63459,\"Aybarmenian\",1329,\"B\",66,\"Bcircle\",9399,\"Bdotaccent\",7682,\"Bdotbelow\",7684,\"Becyrillic\",1041,\"Benarmenian\",1330,\"Beta\",914,\"Bhook\",385,\"Blinebelow\",7686,\"Bmonospace\",65314,\"Brevesmall\",63220,\"Bsmall\",63330,\"Btopbar\",386,\"C\",67,\"Caarmenian\",1342,\"Cacute\",262,\"Caron\",63178,\"Caronsmall\",63221,\"Ccaron\",268,\"Ccedilla\",199,\"Ccedillaacute\",7688,\"Ccedillasmall\",63463,\"Ccircle\",9400,\"Ccircumflex\",264,\"Cdot\",266,\"Cdotaccent\",266,\"Cedillasmall\",63416,\"Chaarmenian\",1353,\"Cheabkhasiancyrillic\",1212,\"Checyrillic\",1063,\"Chedescenderabkhasiancyrillic\",1214,\"Chedescendercyrillic\",1206,\"Chedieresiscyrillic\",1268,\"Cheharmenian\",1347,\"Chekhakassiancyrillic\",1227,\"Cheverticalstrokecyrillic\",1208,\"Chi\",935,\"Chook\",391,\"Circumflexsmall\",63222,\"Cmonospace\",65315,\"Coarmenian\",1361,\"Csmall\",63331,\"D\",68,\"DZ\",497,\"DZcaron\",452,\"Daarmenian\",1332,\"Dafrican\",393,\"Dcaron\",270,\"Dcedilla\",7696,\"Dcircle\",9401,\"Dcircumflexbelow\",7698,\"Dcroat\",272,\"Ddotaccent\",7690,\"Ddotbelow\",7692,\"Decyrillic\",1044,\"Deicoptic\",1006,\"Delta\",8710,\"Deltagreek\",916,\"Dhook\",394,\"Dieresis\",63179,\"DieresisAcute\",63180,\"DieresisGrave\",63181,\"Dieresissmall\",63400,\"Digammagreek\",988,\"Djecyrillic\",1026,\"Dlinebelow\",7694,\"Dmonospace\",65316,\"Dotaccentsmall\",63223,\"Dslash\",272,\"Dsmall\",63332,\"Dtopbar\",395,\"Dz\",498,\"Dzcaron\",453,\"Dzeabkhasiancyrillic\",1248,\"Dzecyrillic\",1029,\"Dzhecyrillic\",1039,\"E\",69,\"Eacute\",201,\"Eacutesmall\",63465,\"Ebreve\",276,\"Ecaron\",282,\"Ecedillabreve\",7708,\"Echarmenian\",1333,\"Ecircle\",9402,\"Ecircumflex\",202,\"Ecircumflexacute\",7870,\"Ecircumflexbelow\",7704,\"Ecircumflexdotbelow\",7878,\"Ecircumflexgrave\",7872,\"Ecircumflexhookabove\",7874,\"Ecircumflexsmall\",63466,\"Ecircumflextilde\",7876,\"Ecyrillic\",1028,\"Edblgrave\",516,\"Edieresis\",203,\"Edieresissmall\",63467,\"Edot\",278,\"Edotaccent\",278,\"Edotbelow\",7864,\"Efcyrillic\",1060,\"Egrave\",200,\"Egravesmall\",63464,\"Eharmenian\",1335,\"Ehookabove\",7866,\"Eightroman\",8551,\"Einvertedbreve\",518,\"Eiotifiedcyrillic\",1124,\"Elcyrillic\",1051,\"Elevenroman\",8554,\"Emacron\",274,\"Emacronacute\",7702,\"Emacrongrave\",7700,\"Emcyrillic\",1052,\"Emonospace\",65317,\"Encyrillic\",1053,\"Endescendercyrillic\",1186,\"Eng\",330,\"Enghecyrillic\",1188,\"Enhookcyrillic\",1223,\"Eogonek\",280,\"Eopen\",400,\"Epsilon\",917,\"Epsilontonos\",904,\"Ercyrillic\",1056,\"Ereversed\",398,\"Ereversedcyrillic\",1069,\"Escyrillic\",1057,\"Esdescendercyrillic\",1194,\"Esh\",425,\"Esmall\",63333,\"Eta\",919,\"Etarmenian\",1336,\"Etatonos\",905,\"Eth\",208,\"Ethsmall\",63472,\"Etilde\",7868,\"Etildebelow\",7706,\"Euro\",8364,\"Ezh\",439,\"Ezhcaron\",494,\"Ezhreversed\",440,\"F\",70,\"Fcircle\",9403,\"Fdotaccent\",7710,\"Feharmenian\",1366,\"Feicoptic\",996,\"Fhook\",401,\"Fitacyrillic\",1138,\"Fiveroman\",8548,\"Fmonospace\",65318,\"Fourroman\",8547,\"Fsmall\",63334,\"G\",71,\"GBsquare\",13191,\"Gacute\",500,\"Gamma\",915,\"Gammaafrican\",404,\"Gangiacoptic\",1002,\"Gbreve\",286,\"Gcaron\",486,\"Gcedilla\",290,\"Gcircle\",9404,\"Gcircumflex\",284,\"Gcommaaccent\",290,\"Gdot\",288,\"Gdotaccent\",288,\"Gecyrillic\",1043,\"Ghadarmenian\",1346,\"Ghemiddlehookcyrillic\",1172,\"Ghestrokecyrillic\",1170,\"Gheupturncyrillic\",1168,\"Ghook\",403,\"Gimarmenian\",1331,\"Gjecyrillic\",1027,\"Gmacron\",7712,\"Gmonospace\",65319,\"Grave\",63182,\"Gravesmall\",63328,\"Gsmall\",63335,\"Gsmallhook\",667,\"Gstroke\",484,\"H\",72,\"H18533\",9679,\"H18543\",9642,\"H18551\",9643,\"H22073\",9633,\"HPsquare\",13259,\"Haabkhasiancyrillic\",1192,\"Hadescendercyrillic\",1202,\"Hardsigncyrillic\",1066,\"Hbar\",294,\"Hbrevebelow\",7722,\"Hcedilla\",7720,\"Hcircle\",9405,\"Hcircumflex\",292,\"Hdieresis\",7718,\"Hdotaccent\",7714,\"Hdotbelow\",7716,\"Hmonospace\",65320,\"Hoarmenian\",1344,\"Horicoptic\",1e3,\"Hsmall\",63336,\"Hungarumlaut\",63183,\"Hungarumlautsmall\",63224,\"Hzsquare\",13200,\"I\",73,\"IAcyrillic\",1071,\"IJ\",306,\"IUcyrillic\",1070,\"Iacute\",205,\"Iacutesmall\",63469,\"Ibreve\",300,\"Icaron\",463,\"Icircle\",9406,\"Icircumflex\",206,\"Icircumflexsmall\",63470,\"Icyrillic\",1030,\"Idblgrave\",520,\"Idieresis\",207,\"Idieresisacute\",7726,\"Idieresiscyrillic\",1252,\"Idieresissmall\",63471,\"Idot\",304,\"Idotaccent\",304,\"Idotbelow\",7882,\"Iebrevecyrillic\",1238,\"Iecyrillic\",1045,\"Ifraktur\",8465,\"Igrave\",204,\"Igravesmall\",63468,\"Ihookabove\",7880,\"Iicyrillic\",1048,\"Iinvertedbreve\",522,\"Iishortcyrillic\",1049,\"Imacron\",298,\"Imacroncyrillic\",1250,\"Imonospace\",65321,\"Iniarmenian\",1339,\"Iocyrillic\",1025,\"Iogonek\",302,\"Iota\",921,\"Iotaafrican\",406,\"Iotadieresis\",938,\"Iotatonos\",906,\"Ismall\",63337,\"Istroke\",407,\"Itilde\",296,\"Itildebelow\",7724,\"Izhitsacyrillic\",1140,\"Izhitsadblgravecyrillic\",1142,\"J\",74,\"Jaarmenian\",1345,\"Jcircle\",9407,\"Jcircumflex\",308,\"Jecyrillic\",1032,\"Jheharmenian\",1355,\"Jmonospace\",65322,\"Jsmall\",63338,\"K\",75,\"KBsquare\",13189,\"KKsquare\",13261,\"Kabashkircyrillic\",1184,\"Kacute\",7728,\"Kacyrillic\",1050,\"Kadescendercyrillic\",1178,\"Kahookcyrillic\",1219,\"Kappa\",922,\"Kastrokecyrillic\",1182,\"Kaverticalstrokecyrillic\",1180,\"Kcaron\",488,\"Kcedilla\",310,\"Kcircle\",9408,\"Kcommaaccent\",310,\"Kdotbelow\",7730,\"Keharmenian\",1364,\"Kenarmenian\",1343,\"Khacyrillic\",1061,\"Kheicoptic\",998,\"Khook\",408,\"Kjecyrillic\",1036,\"Klinebelow\",7732,\"Kmonospace\",65323,\"Koppacyrillic\",1152,\"Koppagreek\",990,\"Ksicyrillic\",1134,\"Ksmall\",63339,\"L\",76,\"LJ\",455,\"LL\",63167,\"Lacute\",313,\"Lambda\",923,\"Lcaron\",317,\"Lcedilla\",315,\"Lcircle\",9409,\"Lcircumflexbelow\",7740,\"Lcommaaccent\",315,\"Ldot\",319,\"Ldotaccent\",319,\"Ldotbelow\",7734,\"Ldotbelowmacron\",7736,\"Liwnarmenian\",1340,\"Lj\",456,\"Ljecyrillic\",1033,\"Llinebelow\",7738,\"Lmonospace\",65324,\"Lslash\",321,\"Lslashsmall\",63225,\"Lsmall\",63340,\"M\",77,\"MBsquare\",13190,\"Macron\",63184,\"Macronsmall\",63407,\"Macute\",7742,\"Mcircle\",9410,\"Mdotaccent\",7744,\"Mdotbelow\",7746,\"Menarmenian\",1348,\"Mmonospace\",65325,\"Msmall\",63341,\"Mturned\",412,\"Mu\",924,\"N\",78,\"NJ\",458,\"Nacute\",323,\"Ncaron\",327,\"Ncedilla\",325,\"Ncircle\",9411,\"Ncircumflexbelow\",7754,\"Ncommaaccent\",325,\"Ndotaccent\",7748,\"Ndotbelow\",7750,\"Nhookleft\",413,\"Nineroman\",8552,\"Nj\",459,\"Njecyrillic\",1034,\"Nlinebelow\",7752,\"Nmonospace\",65326,\"Nowarmenian\",1350,\"Nsmall\",63342,\"Ntilde\",209,\"Ntildesmall\",63473,\"Nu\",925,\"O\",79,\"OE\",338,\"OEsmall\",63226,\"Oacute\",211,\"Oacutesmall\",63475,\"Obarredcyrillic\",1256,\"Obarreddieresiscyrillic\",1258,\"Obreve\",334,\"Ocaron\",465,\"Ocenteredtilde\",415,\"Ocircle\",9412,\"Ocircumflex\",212,\"Ocircumflexacute\",7888,\"Ocircumflexdotbelow\",7896,\"Ocircumflexgrave\",7890,\"Ocircumflexhookabove\",7892,\"Ocircumflexsmall\",63476,\"Ocircumflextilde\",7894,\"Ocyrillic\",1054,\"Odblacute\",336,\"Odblgrave\",524,\"Odieresis\",214,\"Odieresiscyrillic\",1254,\"Odieresissmall\",63478,\"Odotbelow\",7884,\"Ogoneksmall\",63227,\"Ograve\",210,\"Ogravesmall\",63474,\"Oharmenian\",1365,\"Ohm\",8486,\"Ohookabove\",7886,\"Ohorn\",416,\"Ohornacute\",7898,\"Ohorndotbelow\",7906,\"Ohorngrave\",7900,\"Ohornhookabove\",7902,\"Ohorntilde\",7904,\"Ohungarumlaut\",336,\"Oi\",418,\"Oinvertedbreve\",526,\"Omacron\",332,\"Omacronacute\",7762,\"Omacrongrave\",7760,\"Omega\",8486,\"Omegacyrillic\",1120,\"Omegagreek\",937,\"Omegaroundcyrillic\",1146,\"Omegatitlocyrillic\",1148,\"Omegatonos\",911,\"Omicron\",927,\"Omicrontonos\",908,\"Omonospace\",65327,\"Oneroman\",8544,\"Oogonek\",490,\"Oogonekmacron\",492,\"Oopen\",390,\"Oslash\",216,\"Oslashacute\",510,\"Oslashsmall\",63480,\"Osmall\",63343,\"Ostrokeacute\",510,\"Otcyrillic\",1150,\"Otilde\",213,\"Otildeacute\",7756,\"Otildedieresis\",7758,\"Otildesmall\",63477,\"P\",80,\"Pacute\",7764,\"Pcircle\",9413,\"Pdotaccent\",7766,\"Pecyrillic\",1055,\"Peharmenian\",1354,\"Pemiddlehookcyrillic\",1190,\"Phi\",934,\"Phook\",420,\"Pi\",928,\"Piwrarmenian\",1363,\"Pmonospace\",65328,\"Psi\",936,\"Psicyrillic\",1136,\"Psmall\",63344,\"Q\",81,\"Qcircle\",9414,\"Qmonospace\",65329,\"Qsmall\",63345,\"R\",82,\"Raarmenian\",1356,\"Racute\",340,\"Rcaron\",344,\"Rcedilla\",342,\"Rcircle\",9415,\"Rcommaaccent\",342,\"Rdblgrave\",528,\"Rdotaccent\",7768,\"Rdotbelow\",7770,\"Rdotbelowmacron\",7772,\"Reharmenian\",1360,\"Rfraktur\",8476,\"Rho\",929,\"Ringsmall\",63228,\"Rinvertedbreve\",530,\"Rlinebelow\",7774,\"Rmonospace\",65330,\"Rsmall\",63346,\"Rsmallinverted\",641,\"Rsmallinvertedsuperior\",694,\"S\",83,\"SF010000\",9484,\"SF020000\",9492,\"SF030000\",9488,\"SF040000\",9496,\"SF050000\",9532,\"SF060000\",9516,\"SF070000\",9524,\"SF080000\",9500,\"SF090000\",9508,\"SF100000\",9472,\"SF110000\",9474,\"SF190000\",9569,\"SF200000\",9570,\"SF210000\",9558,\"SF220000\",9557,\"SF230000\",9571,\"SF240000\",9553,\"SF250000\",9559,\"SF260000\",9565,\"SF270000\",9564,\"SF280000\",9563,\"SF360000\",9566,\"SF370000\",9567,\"SF380000\",9562,\"SF390000\",9556,\"SF400000\",9577,\"SF410000\",9574,\"SF420000\",9568,\"SF430000\",9552,\"SF440000\",9580,\"SF450000\",9575,\"SF460000\",9576,\"SF470000\",9572,\"SF480000\",9573,\"SF490000\",9561,\"SF500000\",9560,\"SF510000\",9554,\"SF520000\",9555,\"SF530000\",9579,\"SF540000\",9578,\"Sacute\",346,\"Sacutedotaccent\",7780,\"Sampigreek\",992,\"Scaron\",352,\"Scarondotaccent\",7782,\"Scaronsmall\",63229,\"Scedilla\",350,\"Schwa\",399,\"Schwacyrillic\",1240,\"Schwadieresiscyrillic\",1242,\"Scircle\",9416,\"Scircumflex\",348,\"Scommaaccent\",536,\"Sdotaccent\",7776,\"Sdotbelow\",7778,\"Sdotbelowdotaccent\",7784,\"Seharmenian\",1357,\"Sevenroman\",8550,\"Shaarmenian\",1351,\"Shacyrillic\",1064,\"Shchacyrillic\",1065,\"Sheicoptic\",994,\"Shhacyrillic\",1210,\"Shimacoptic\",1004,\"Sigma\",931,\"Sixroman\",8549,\"Smonospace\",65331,\"Softsigncyrillic\",1068,\"Ssmall\",63347,\"Stigmagreek\",986,\"T\",84,\"Tau\",932,\"Tbar\",358,\"Tcaron\",356,\"Tcedilla\",354,\"Tcircle\",9417,\"Tcircumflexbelow\",7792,\"Tcommaaccent\",354,\"Tdotaccent\",7786,\"Tdotbelow\",7788,\"Tecyrillic\",1058,\"Tedescendercyrillic\",1196,\"Tenroman\",8553,\"Tetsecyrillic\",1204,\"Theta\",920,\"Thook\",428,\"Thorn\",222,\"Thornsmall\",63486,\"Threeroman\",8546,\"Tildesmall\",63230,\"Tiwnarmenian\",1359,\"Tlinebelow\",7790,\"Tmonospace\",65332,\"Toarmenian\",1337,\"Tonefive\",444,\"Tonesix\",388,\"Tonetwo\",423,\"Tretroflexhook\",430,\"Tsecyrillic\",1062,\"Tshecyrillic\",1035,\"Tsmall\",63348,\"Twelveroman\",8555,\"Tworoman\",8545,\"U\",85,\"Uacute\",218,\"Uacutesmall\",63482,\"Ubreve\",364,\"Ucaron\",467,\"Ucircle\",9418,\"Ucircumflex\",219,\"Ucircumflexbelow\",7798,\"Ucircumflexsmall\",63483,\"Ucyrillic\",1059,\"Udblacute\",368,\"Udblgrave\",532,\"Udieresis\",220,\"Udieresisacute\",471,\"Udieresisbelow\",7794,\"Udieresiscaron\",473,\"Udieresiscyrillic\",1264,\"Udieresisgrave\",475,\"Udieresismacron\",469,\"Udieresissmall\",63484,\"Udotbelow\",7908,\"Ugrave\",217,\"Ugravesmall\",63481,\"Uhookabove\",7910,\"Uhorn\",431,\"Uhornacute\",7912,\"Uhorndotbelow\",7920,\"Uhorngrave\",7914,\"Uhornhookabove\",7916,\"Uhorntilde\",7918,\"Uhungarumlaut\",368,\"Uhungarumlautcyrillic\",1266,\"Uinvertedbreve\",534,\"Ukcyrillic\",1144,\"Umacron\",362,\"Umacroncyrillic\",1262,\"Umacrondieresis\",7802,\"Umonospace\",65333,\"Uogonek\",370,\"Upsilon\",933,\"Upsilon1\",978,\"Upsilonacutehooksymbolgreek\",979,\"Upsilonafrican\",433,\"Upsilondieresis\",939,\"Upsilondieresishooksymbolgreek\",980,\"Upsilonhooksymbol\",978,\"Upsilontonos\",910,\"Uring\",366,\"Ushortcyrillic\",1038,\"Usmall\",63349,\"Ustraightcyrillic\",1198,\"Ustraightstrokecyrillic\",1200,\"Utilde\",360,\"Utildeacute\",7800,\"Utildebelow\",7796,\"V\",86,\"Vcircle\",9419,\"Vdotbelow\",7806,\"Vecyrillic\",1042,\"Vewarmenian\",1358,\"Vhook\",434,\"Vmonospace\",65334,\"Voarmenian\",1352,\"Vsmall\",63350,\"Vtilde\",7804,\"W\",87,\"Wacute\",7810,\"Wcircle\",9420,\"Wcircumflex\",372,\"Wdieresis\",7812,\"Wdotaccent\",7814,\"Wdotbelow\",7816,\"Wgrave\",7808,\"Wmonospace\",65335,\"Wsmall\",63351,\"X\",88,\"Xcircle\",9421,\"Xdieresis\",7820,\"Xdotaccent\",7818,\"Xeharmenian\",1341,\"Xi\",926,\"Xmonospace\",65336,\"Xsmall\",63352,\"Y\",89,\"Yacute\",221,\"Yacutesmall\",63485,\"Yatcyrillic\",1122,\"Ycircle\",9422,\"Ycircumflex\",374,\"Ydieresis\",376,\"Ydieresissmall\",63487,\"Ydotaccent\",7822,\"Ydotbelow\",7924,\"Yericyrillic\",1067,\"Yerudieresiscyrillic\",1272,\"Ygrave\",7922,\"Yhook\",435,\"Yhookabove\",7926,\"Yiarmenian\",1349,\"Yicyrillic\",1031,\"Yiwnarmenian\",1362,\"Ymonospace\",65337,\"Ysmall\",63353,\"Ytilde\",7928,\"Yusbigcyrillic\",1130,\"Yusbigiotifiedcyrillic\",1132,\"Yuslittlecyrillic\",1126,\"Yuslittleiotifiedcyrillic\",1128,\"Z\",90,\"Zaarmenian\",1334,\"Zacute\",377,\"Zcaron\",381,\"Zcaronsmall\",63231,\"Zcircle\",9423,\"Zcircumflex\",7824,\"Zdot\",379,\"Zdotaccent\",379,\"Zdotbelow\",7826,\"Zecyrillic\",1047,\"Zedescendercyrillic\",1176,\"Zedieresiscyrillic\",1246,\"Zeta\",918,\"Zhearmenian\",1338,\"Zhebrevecyrillic\",1217,\"Zhecyrillic\",1046,\"Zhedescendercyrillic\",1174,\"Zhedieresiscyrillic\",1244,\"Zlinebelow\",7828,\"Zmonospace\",65338,\"Zsmall\",63354,\"Zstroke\",437,\"a\",97,\"aabengali\",2438,\"aacute\",225,\"aadeva\",2310,\"aagujarati\",2694,\"aagurmukhi\",2566,\"aamatragurmukhi\",2622,\"aarusquare\",13059,\"aavowelsignbengali\",2494,\"aavowelsigndeva\",2366,\"aavowelsigngujarati\",2750,\"abbreviationmarkarmenian\",1375,\"abbreviationsigndeva\",2416,\"abengali\",2437,\"abopomofo\",12570,\"abreve\",259,\"abreveacute\",7855,\"abrevecyrillic\",1233,\"abrevedotbelow\",7863,\"abrevegrave\",7857,\"abrevehookabove\",7859,\"abrevetilde\",7861,\"acaron\",462,\"acircle\",9424,\"acircumflex\",226,\"acircumflexacute\",7845,\"acircumflexdotbelow\",7853,\"acircumflexgrave\",7847,\"acircumflexhookabove\",7849,\"acircumflextilde\",7851,\"acute\",180,\"acutebelowcmb\",791,\"acutecmb\",769,\"acutecomb\",769,\"acutedeva\",2388,\"acutelowmod\",719,\"acutetonecmb\",833,\"acyrillic\",1072,\"adblgrave\",513,\"addakgurmukhi\",2673,\"adeva\",2309,\"adieresis\",228,\"adieresiscyrillic\",1235,\"adieresismacron\",479,\"adotbelow\",7841,\"adotmacron\",481,\"ae\",230,\"aeacute\",509,\"aekorean\",12624,\"aemacron\",483,\"afii00208\",8213,\"afii08941\",8356,\"afii10017\",1040,\"afii10018\",1041,\"afii10019\",1042,\"afii10020\",1043,\"afii10021\",1044,\"afii10022\",1045,\"afii10023\",1025,\"afii10024\",1046,\"afii10025\",1047,\"afii10026\",1048,\"afii10027\",1049,\"afii10028\",1050,\"afii10029\",1051,\"afii10030\",1052,\"afii10031\",1053,\"afii10032\",1054,\"afii10033\",1055,\"afii10034\",1056,\"afii10035\",1057,\"afii10036\",1058,\"afii10037\",1059,\"afii10038\",1060,\"afii10039\",1061,\"afii10040\",1062,\"afii10041\",1063,\"afii10042\",1064,\"afii10043\",1065,\"afii10044\",1066,\"afii10045\",1067,\"afii10046\",1068,\"afii10047\",1069,\"afii10048\",1070,\"afii10049\",1071,\"afii10050\",1168,\"afii10051\",1026,\"afii10052\",1027,\"afii10053\",1028,\"afii10054\",1029,\"afii10055\",1030,\"afii10056\",1031,\"afii10057\",1032,\"afii10058\",1033,\"afii10059\",1034,\"afii10060\",1035,\"afii10061\",1036,\"afii10062\",1038,\"afii10063\",63172,\"afii10064\",63173,\"afii10065\",1072,\"afii10066\",1073,\"afii10067\",1074,\"afii10068\",1075,\"afii10069\",1076,\"afii10070\",1077,\"afii10071\",1105,\"afii10072\",1078,\"afii10073\",1079,\"afii10074\",1080,\"afii10075\",1081,\"afii10076\",1082,\"afii10077\",1083,\"afii10078\",1084,\"afii10079\",1085,\"afii10080\",1086,\"afii10081\",1087,\"afii10082\",1088,\"afii10083\",1089,\"afii10084\",1090,\"afii10085\",1091,\"afii10086\",1092,\"afii10087\",1093,\"afii10088\",1094,\"afii10089\",1095,\"afii10090\",1096,\"afii10091\",1097,\"afii10092\",1098,\"afii10093\",1099,\"afii10094\",1100,\"afii10095\",1101,\"afii10096\",1102,\"afii10097\",1103,\"afii10098\",1169,\"afii10099\",1106,\"afii10100\",1107,\"afii10101\",1108,\"afii10102\",1109,\"afii10103\",1110,\"afii10104\",1111,\"afii10105\",1112,\"afii10106\",1113,\"afii10107\",1114,\"afii10108\",1115,\"afii10109\",1116,\"afii10110\",1118,\"afii10145\",1039,\"afii10146\",1122,\"afii10147\",1138,\"afii10148\",1140,\"afii10192\",63174,\"afii10193\",1119,\"afii10194\",1123,\"afii10195\",1139,\"afii10196\",1141,\"afii10831\",63175,\"afii10832\",63176,\"afii10846\",1241,\"afii299\",8206,\"afii300\",8207,\"afii301\",8205,\"afii57381\",1642,\"afii57388\",1548,\"afii57392\",1632,\"afii57393\",1633,\"afii57394\",1634,\"afii57395\",1635,\"afii57396\",1636,\"afii57397\",1637,\"afii57398\",1638,\"afii57399\",1639,\"afii57400\",1640,\"afii57401\",1641,\"afii57403\",1563,\"afii57407\",1567,\"afii57409\",1569,\"afii57410\",1570,\"afii57411\",1571,\"afii57412\",1572,\"afii57413\",1573,\"afii57414\",1574,\"afii57415\",1575,\"afii57416\",1576,\"afii57417\",1577,\"afii57418\",1578,\"afii57419\",1579,\"afii57420\",1580,\"afii57421\",1581,\"afii57422\",1582,\"afii57423\",1583,\"afii57424\",1584,\"afii57425\",1585,\"afii57426\",1586,\"afii57427\",1587,\"afii57428\",1588,\"afii57429\",1589,\"afii57430\",1590,\"afii57431\",1591,\"afii57432\",1592,\"afii57433\",1593,\"afii57434\",1594,\"afii57440\",1600,\"afii57441\",1601,\"afii57442\",1602,\"afii57443\",1603,\"afii57444\",1604,\"afii57445\",1605,\"afii57446\",1606,\"afii57448\",1608,\"afii57449\",1609,\"afii57450\",1610,\"afii57451\",1611,\"afii57452\",1612,\"afii57453\",1613,\"afii57454\",1614,\"afii57455\",1615,\"afii57456\",1616,\"afii57457\",1617,\"afii57458\",1618,\"afii57470\",1607,\"afii57505\",1700,\"afii57506\",1662,\"afii57507\",1670,\"afii57508\",1688,\"afii57509\",1711,\"afii57511\",1657,\"afii57512\",1672,\"afii57513\",1681,\"afii57514\",1722,\"afii57519\",1746,\"afii57534\",1749,\"afii57636\",8362,\"afii57645\",1470,\"afii57658\",1475,\"afii57664\",1488,\"afii57665\",1489,\"afii57666\",1490,\"afii57667\",1491,\"afii57668\",1492,\"afii57669\",1493,\"afii57670\",1494,\"afii57671\",1495,\"afii57672\",1496,\"afii57673\",1497,\"afii57674\",1498,\"afii57675\",1499,\"afii57676\",1500,\"afii57677\",1501,\"afii57678\",1502,\"afii57679\",1503,\"afii57680\",1504,\"afii57681\",1505,\"afii57682\",1506,\"afii57683\",1507,\"afii57684\",1508,\"afii57685\",1509,\"afii57686\",1510,\"afii57687\",1511,\"afii57688\",1512,\"afii57689\",1513,\"afii57690\",1514,\"afii57694\",64298,\"afii57695\",64299,\"afii57700\",64331,\"afii57705\",64287,\"afii57716\",1520,\"afii57717\",1521,\"afii57718\",1522,\"afii57723\",64309,\"afii57793\",1460,\"afii57794\",1461,\"afii57795\",1462,\"afii57796\",1467,\"afii57797\",1464,\"afii57798\",1463,\"afii57799\",1456,\"afii57800\",1458,\"afii57801\",1457,\"afii57802\",1459,\"afii57803\",1474,\"afii57804\",1473,\"afii57806\",1465,\"afii57807\",1468,\"afii57839\",1469,\"afii57841\",1471,\"afii57842\",1472,\"afii57929\",700,\"afii61248\",8453,\"afii61289\",8467,\"afii61352\",8470,\"afii61573\",8236,\"afii61574\",8237,\"afii61575\",8238,\"afii61664\",8204,\"afii63167\",1645,\"afii64937\",701,\"agrave\",224,\"agujarati\",2693,\"agurmukhi\",2565,\"ahiragana\",12354,\"ahookabove\",7843,\"aibengali\",2448,\"aibopomofo\",12574,\"aideva\",2320,\"aiecyrillic\",1237,\"aigujarati\",2704,\"aigurmukhi\",2576,\"aimatragurmukhi\",2632,\"ainarabic\",1593,\"ainfinalarabic\",65226,\"aininitialarabic\",65227,\"ainmedialarabic\",65228,\"ainvertedbreve\",515,\"aivowelsignbengali\",2504,\"aivowelsigndeva\",2376,\"aivowelsigngujarati\",2760,\"akatakana\",12450,\"akatakanahalfwidth\",65393,\"akorean\",12623,\"alef\",1488,\"alefarabic\",1575,\"alefdageshhebrew\",64304,\"aleffinalarabic\",65166,\"alefhamzaabovearabic\",1571,\"alefhamzaabovefinalarabic\",65156,\"alefhamzabelowarabic\",1573,\"alefhamzabelowfinalarabic\",65160,\"alefhebrew\",1488,\"aleflamedhebrew\",64335,\"alefmaddaabovearabic\",1570,\"alefmaddaabovefinalarabic\",65154,\"alefmaksuraarabic\",1609,\"alefmaksurafinalarabic\",65264,\"alefmaksurainitialarabic\",65267,\"alefmaksuramedialarabic\",65268,\"alefpatahhebrew\",64302,\"alefqamatshebrew\",64303,\"aleph\",8501,\"allequal\",8780,\"alpha\",945,\"alphatonos\",940,\"amacron\",257,\"amonospace\",65345,\"ampersand\",38,\"ampersandmonospace\",65286,\"ampersandsmall\",63270,\"amsquare\",13250,\"anbopomofo\",12578,\"angbopomofo\",12580,\"angbracketleft\",12296,\"angbracketright\",12297,\"angkhankhuthai\",3674,\"angle\",8736,\"anglebracketleft\",12296,\"anglebracketleftvertical\",65087,\"anglebracketright\",12297,\"anglebracketrightvertical\",65088,\"angleleft\",9001,\"angleright\",9002,\"angstrom\",8491,\"anoteleia\",903,\"anudattadeva\",2386,\"anusvarabengali\",2434,\"anusvaradeva\",2306,\"anusvaragujarati\",2690,\"aogonek\",261,\"apaatosquare\",13056,\"aparen\",9372,\"apostrophearmenian\",1370,\"apostrophemod\",700,\"apple\",63743,\"approaches\",8784,\"approxequal\",8776,\"approxequalorimage\",8786,\"approximatelyequal\",8773,\"araeaekorean\",12686,\"araeakorean\",12685,\"arc\",8978,\"arighthalfring\",7834,\"aring\",229,\"aringacute\",507,\"aringbelow\",7681,\"arrowboth\",8596,\"arrowdashdown\",8675,\"arrowdashleft\",8672,\"arrowdashright\",8674,\"arrowdashup\",8673,\"arrowdblboth\",8660,\"arrowdbldown\",8659,\"arrowdblleft\",8656,\"arrowdblright\",8658,\"arrowdblup\",8657,\"arrowdown\",8595,\"arrowdownleft\",8601,\"arrowdownright\",8600,\"arrowdownwhite\",8681,\"arrowheaddownmod\",709,\"arrowheadleftmod\",706,\"arrowheadrightmod\",707,\"arrowheadupmod\",708,\"arrowhorizex\",63719,\"arrowleft\",8592,\"arrowleftdbl\",8656,\"arrowleftdblstroke\",8653,\"arrowleftoverright\",8646,\"arrowleftwhite\",8678,\"arrowright\",8594,\"arrowrightdblstroke\",8655,\"arrowrightheavy\",10142,\"arrowrightoverleft\",8644,\"arrowrightwhite\",8680,\"arrowtableft\",8676,\"arrowtabright\",8677,\"arrowup\",8593,\"arrowupdn\",8597,\"arrowupdnbse\",8616,\"arrowupdownbase\",8616,\"arrowupleft\",8598,\"arrowupleftofdown\",8645,\"arrowupright\",8599,\"arrowupwhite\",8679,\"arrowvertex\",63718,\"asciicircum\",94,\"asciicircummonospace\",65342,\"asciitilde\",126,\"asciitildemonospace\",65374,\"ascript\",593,\"ascriptturned\",594,\"asmallhiragana\",12353,\"asmallkatakana\",12449,\"asmallkatakanahalfwidth\",65383,\"asterisk\",42,\"asteriskaltonearabic\",1645,\"asteriskarabic\",1645,\"asteriskmath\",8727,\"asteriskmonospace\",65290,\"asterisksmall\",65121,\"asterism\",8258,\"asuperior\",63209,\"asymptoticallyequal\",8771,\"at\",64,\"atilde\",227,\"atmonospace\",65312,\"atsmall\",65131,\"aturned\",592,\"aubengali\",2452,\"aubopomofo\",12576,\"audeva\",2324,\"augujarati\",2708,\"augurmukhi\",2580,\"aulengthmarkbengali\",2519,\"aumatragurmukhi\",2636,\"auvowelsignbengali\",2508,\"auvowelsigndeva\",2380,\"auvowelsigngujarati\",2764,\"avagrahadeva\",2365,\"aybarmenian\",1377,\"ayin\",1506,\"ayinaltonehebrew\",64288,\"ayinhebrew\",1506,\"b\",98,\"babengali\",2476,\"backslash\",92,\"backslashmonospace\",65340,\"badeva\",2348,\"bagujarati\",2732,\"bagurmukhi\",2604,\"bahiragana\",12400,\"bahtthai\",3647,\"bakatakana\",12496,\"bar\",124,\"barmonospace\",65372,\"bbopomofo\",12549,\"bcircle\",9425,\"bdotaccent\",7683,\"bdotbelow\",7685,\"beamedsixteenthnotes\",9836,\"because\",8757,\"becyrillic\",1073,\"beharabic\",1576,\"behfinalarabic\",65168,\"behinitialarabic\",65169,\"behiragana\",12409,\"behmedialarabic\",65170,\"behmeeminitialarabic\",64671,\"behmeemisolatedarabic\",64520,\"behnoonfinalarabic\",64621,\"bekatakana\",12505,\"benarmenian\",1378,\"bet\",1489,\"beta\",946,\"betasymbolgreek\",976,\"betdagesh\",64305,\"betdageshhebrew\",64305,\"bethebrew\",1489,\"betrafehebrew\",64332,\"bhabengali\",2477,\"bhadeva\",2349,\"bhagujarati\",2733,\"bhagurmukhi\",2605,\"bhook\",595,\"bihiragana\",12403,\"bikatakana\",12499,\"bilabialclick\",664,\"bindigurmukhi\",2562,\"birusquare\",13105,\"blackcircle\",9679,\"blackdiamond\",9670,\"blackdownpointingtriangle\",9660,\"blackleftpointingpointer\",9668,\"blackleftpointingtriangle\",9664,\"blacklenticularbracketleft\",12304,\"blacklenticularbracketleftvertical\",65083,\"blacklenticularbracketright\",12305,\"blacklenticularbracketrightvertical\",65084,\"blacklowerlefttriangle\",9699,\"blacklowerrighttriangle\",9698,\"blackrectangle\",9644,\"blackrightpointingpointer\",9658,\"blackrightpointingtriangle\",9654,\"blacksmallsquare\",9642,\"blacksmilingface\",9787,\"blacksquare\",9632,\"blackstar\",9733,\"blackupperlefttriangle\",9700,\"blackupperrighttriangle\",9701,\"blackuppointingsmalltriangle\",9652,\"blackuppointingtriangle\",9650,\"blank\",9251,\"blinebelow\",7687,\"block\",9608,\"bmonospace\",65346,\"bobaimaithai\",3610,\"bohiragana\",12412,\"bokatakana\",12508,\"bparen\",9373,\"bqsquare\",13251,\"braceex\",63732,\"braceleft\",123,\"braceleftbt\",63731,\"braceleftmid\",63730,\"braceleftmonospace\",65371,\"braceleftsmall\",65115,\"bracelefttp\",63729,\"braceleftvertical\",65079,\"braceright\",125,\"bracerightbt\",63742,\"bracerightmid\",63741,\"bracerightmonospace\",65373,\"bracerightsmall\",65116,\"bracerighttp\",63740,\"bracerightvertical\",65080,\"bracketleft\",91,\"bracketleftbt\",63728,\"bracketleftex\",63727,\"bracketleftmonospace\",65339,\"bracketlefttp\",63726,\"bracketright\",93,\"bracketrightbt\",63739,\"bracketrightex\",63738,\"bracketrightmonospace\",65341,\"bracketrighttp\",63737,\"breve\",728,\"brevebelowcmb\",814,\"brevecmb\",774,\"breveinvertedbelowcmb\",815,\"breveinvertedcmb\",785,\"breveinverteddoublecmb\",865,\"bridgebelowcmb\",810,\"bridgeinvertedbelowcmb\",826,\"brokenbar\",166,\"bstroke\",384,\"bsuperior\",63210,\"btopbar\",387,\"buhiragana\",12406,\"bukatakana\",12502,\"bullet\",8226,\"bulletinverse\",9688,\"bulletoperator\",8729,\"bullseye\",9678,\"c\",99,\"caarmenian\",1390,\"cabengali\",2458,\"cacute\",263,\"cadeva\",2330,\"cagujarati\",2714,\"cagurmukhi\",2586,\"calsquare\",13192,\"candrabindubengali\",2433,\"candrabinducmb\",784,\"candrabindudeva\",2305,\"candrabindugujarati\",2689,\"capslock\",8682,\"careof\",8453,\"caron\",711,\"caronbelowcmb\",812,\"caroncmb\",780,\"carriagereturn\",8629,\"cbopomofo\",12568,\"ccaron\",269,\"ccedilla\",231,\"ccedillaacute\",7689,\"ccircle\",9426,\"ccircumflex\",265,\"ccurl\",597,\"cdot\",267,\"cdotaccent\",267,\"cdsquare\",13253,\"cedilla\",184,\"cedillacmb\",807,\"cent\",162,\"centigrade\",8451,\"centinferior\",63199,\"centmonospace\",65504,\"centoldstyle\",63394,\"centsuperior\",63200,\"chaarmenian\",1401,\"chabengali\",2459,\"chadeva\",2331,\"chagujarati\",2715,\"chagurmukhi\",2587,\"chbopomofo\",12564,\"cheabkhasiancyrillic\",1213,\"checkmark\",10003,\"checyrillic\",1095,\"chedescenderabkhasiancyrillic\",1215,\"chedescendercyrillic\",1207,\"chedieresiscyrillic\",1269,\"cheharmenian\",1395,\"chekhakassiancyrillic\",1228,\"cheverticalstrokecyrillic\",1209,\"chi\",967,\"chieuchacirclekorean\",12919,\"chieuchaparenkorean\",12823,\"chieuchcirclekorean\",12905,\"chieuchkorean\",12618,\"chieuchparenkorean\",12809,\"chochangthai\",3594,\"chochanthai\",3592,\"chochingthai\",3593,\"chochoethai\",3596,\"chook\",392,\"cieucacirclekorean\",12918,\"cieucaparenkorean\",12822,\"cieuccirclekorean\",12904,\"cieuckorean\",12616,\"cieucparenkorean\",12808,\"cieucuparenkorean\",12828,\"circle\",9675,\"circlecopyrt\",169,\"circlemultiply\",8855,\"circleot\",8857,\"circleplus\",8853,\"circlepostalmark\",12342,\"circlewithlefthalfblack\",9680,\"circlewithrighthalfblack\",9681,\"circumflex\",710,\"circumflexbelowcmb\",813,\"circumflexcmb\",770,\"clear\",8999,\"clickalveolar\",450,\"clickdental\",448,\"clicklateral\",449,\"clickretroflex\",451,\"club\",9827,\"clubsuitblack\",9827,\"clubsuitwhite\",9831,\"cmcubedsquare\",13220,\"cmonospace\",65347,\"cmsquaredsquare\",13216,\"coarmenian\",1409,\"colon\",58,\"colonmonetary\",8353,\"colonmonospace\",65306,\"colonsign\",8353,\"colonsmall\",65109,\"colontriangularhalfmod\",721,\"colontriangularmod\",720,\"comma\",44,\"commaabovecmb\",787,\"commaaboverightcmb\",789,\"commaaccent\",63171,\"commaarabic\",1548,\"commaarmenian\",1373,\"commainferior\",63201,\"commamonospace\",65292,\"commareversedabovecmb\",788,\"commareversedmod\",701,\"commasmall\",65104,\"commasuperior\",63202,\"commaturnedabovecmb\",786,\"commaturnedmod\",699,\"compass\",9788,\"congruent\",8773,\"contourintegral\",8750,\"control\",8963,\"controlACK\",6,\"controlBEL\",7,\"controlBS\",8,\"controlCAN\",24,\"controlCR\",13,\"controlDC1\",17,\"controlDC2\",18,\"controlDC3\",19,\"controlDC4\",20,\"controlDEL\",127,\"controlDLE\",16,\"controlEM\",25,\"controlENQ\",5,\"controlEOT\",4,\"controlESC\",27,\"controlETB\",23,\"controlETX\",3,\"controlFF\",12,\"controlFS\",28,\"controlGS\",29,\"controlHT\",9,\"controlLF\",10,\"controlNAK\",21,\"controlNULL\",0,\"controlRS\",30,\"controlSI\",15,\"controlSO\",14,\"controlSOT\",2,\"controlSTX\",1,\"controlSUB\",26,\"controlSYN\",22,\"controlUS\",31,\"controlVT\",11,\"copyright\",169,\"copyrightsans\",63721,\"copyrightserif\",63193,\"cornerbracketleft\",12300,\"cornerbracketlefthalfwidth\",65378,\"cornerbracketleftvertical\",65089,\"cornerbracketright\",12301,\"cornerbracketrighthalfwidth\",65379,\"cornerbracketrightvertical\",65090,\"corporationsquare\",13183,\"cosquare\",13255,\"coverkgsquare\",13254,\"cparen\",9374,\"cruzeiro\",8354,\"cstretched\",663,\"curlyand\",8911,\"curlyor\",8910,\"currency\",164,\"cyrBreve\",63185,\"cyrFlex\",63186,\"cyrbreve\",63188,\"cyrflex\",63189,\"d\",100,\"daarmenian\",1380,\"dabengali\",2470,\"dadarabic\",1590,\"dadeva\",2342,\"dadfinalarabic\",65214,\"dadinitialarabic\",65215,\"dadmedialarabic\",65216,\"dagesh\",1468,\"dageshhebrew\",1468,\"dagger\",8224,\"daggerdbl\",8225,\"dagujarati\",2726,\"dagurmukhi\",2598,\"dahiragana\",12384,\"dakatakana\",12480,\"dalarabic\",1583,\"dalet\",1491,\"daletdagesh\",64307,\"daletdageshhebrew\",64307,\"dalethebrew\",1491,\"dalfinalarabic\",65194,\"dammaarabic\",1615,\"dammalowarabic\",1615,\"dammatanaltonearabic\",1612,\"dammatanarabic\",1612,\"danda\",2404,\"dargahebrew\",1447,\"dargalefthebrew\",1447,\"dasiapneumatacyrilliccmb\",1157,\"dblGrave\",63187,\"dblanglebracketleft\",12298,\"dblanglebracketleftvertical\",65085,\"dblanglebracketright\",12299,\"dblanglebracketrightvertical\",65086,\"dblarchinvertedbelowcmb\",811,\"dblarrowleft\",8660,\"dblarrowright\",8658,\"dbldanda\",2405,\"dblgrave\",63190,\"dblgravecmb\",783,\"dblintegral\",8748,\"dbllowline\",8215,\"dbllowlinecmb\",819,\"dbloverlinecmb\",831,\"dblprimemod\",698,\"dblverticalbar\",8214,\"dblverticallineabovecmb\",782,\"dbopomofo\",12553,\"dbsquare\",13256,\"dcaron\",271,\"dcedilla\",7697,\"dcircle\",9427,\"dcircumflexbelow\",7699,\"dcroat\",273,\"ddabengali\",2465,\"ddadeva\",2337,\"ddagujarati\",2721,\"ddagurmukhi\",2593,\"ddalarabic\",1672,\"ddalfinalarabic\",64393,\"dddhadeva\",2396,\"ddhabengali\",2466,\"ddhadeva\",2338,\"ddhagujarati\",2722,\"ddhagurmukhi\",2594,\"ddotaccent\",7691,\"ddotbelow\",7693,\"decimalseparatorarabic\",1643,\"decimalseparatorpersian\",1643,\"decyrillic\",1076,\"degree\",176,\"dehihebrew\",1453,\"dehiragana\",12391,\"deicoptic\",1007,\"dekatakana\",12487,\"deleteleft\",9003,\"deleteright\",8998,\"delta\",948,\"deltaturned\",397,\"denominatorminusonenumeratorbengali\",2552,\"dezh\",676,\"dhabengali\",2471,\"dhadeva\",2343,\"dhagujarati\",2727,\"dhagurmukhi\",2599,\"dhook\",599,\"dialytikatonos\",901,\"dialytikatonoscmb\",836,\"diamond\",9830,\"diamondsuitwhite\",9826,\"dieresis\",168,\"dieresisacute\",63191,\"dieresisbelowcmb\",804,\"dieresiscmb\",776,\"dieresisgrave\",63192,\"dieresistonos\",901,\"dihiragana\",12386,\"dikatakana\",12482,\"dittomark\",12291,\"divide\",247,\"divides\",8739,\"divisionslash\",8725,\"djecyrillic\",1106,\"dkshade\",9619,\"dlinebelow\",7695,\"dlsquare\",13207,\"dmacron\",273,\"dmonospace\",65348,\"dnblock\",9604,\"dochadathai\",3598,\"dodekthai\",3604,\"dohiragana\",12393,\"dokatakana\",12489,\"dollar\",36,\"dollarinferior\",63203,\"dollarmonospace\",65284,\"dollaroldstyle\",63268,\"dollarsmall\",65129,\"dollarsuperior\",63204,\"dong\",8363,\"dorusquare\",13094,\"dotaccent\",729,\"dotaccentcmb\",775,\"dotbelowcmb\",803,\"dotbelowcomb\",803,\"dotkatakana\",12539,\"dotlessi\",305,\"dotlessj\",63166,\"dotlessjstrokehook\",644,\"dotmath\",8901,\"dottedcircle\",9676,\"doubleyodpatah\",64287,\"doubleyodpatahhebrew\",64287,\"downtackbelowcmb\",798,\"downtackmod\",725,\"dparen\",9375,\"dsuperior\",63211,\"dtail\",598,\"dtopbar\",396,\"duhiragana\",12389,\"dukatakana\",12485,\"dz\",499,\"dzaltone\",675,\"dzcaron\",454,\"dzcurl\",677,\"dzeabkhasiancyrillic\",1249,\"dzecyrillic\",1109,\"dzhecyrillic\",1119,\"e\",101,\"eacute\",233,\"earth\",9793,\"ebengali\",2447,\"ebopomofo\",12572,\"ebreve\",277,\"ecandradeva\",2317,\"ecandragujarati\",2701,\"ecandravowelsigndeva\",2373,\"ecandravowelsigngujarati\",2757,\"ecaron\",283,\"ecedillabreve\",7709,\"echarmenian\",1381,\"echyiwnarmenian\",1415,\"ecircle\",9428,\"ecircumflex\",234,\"ecircumflexacute\",7871,\"ecircumflexbelow\",7705,\"ecircumflexdotbelow\",7879,\"ecircumflexgrave\",7873,\"ecircumflexhookabove\",7875,\"ecircumflextilde\",7877,\"ecyrillic\",1108,\"edblgrave\",517,\"edeva\",2319,\"edieresis\",235,\"edot\",279,\"edotaccent\",279,\"edotbelow\",7865,\"eegurmukhi\",2575,\"eematragurmukhi\",2631,\"efcyrillic\",1092,\"egrave\",232,\"egujarati\",2703,\"eharmenian\",1383,\"ehbopomofo\",12573,\"ehiragana\",12360,\"ehookabove\",7867,\"eibopomofo\",12575,\"eight\",56,\"eightarabic\",1640,\"eightbengali\",2542,\"eightcircle\",9319,\"eightcircleinversesansserif\",10129,\"eightdeva\",2414,\"eighteencircle\",9329,\"eighteenparen\",9349,\"eighteenperiod\",9369,\"eightgujarati\",2798,\"eightgurmukhi\",2670,\"eighthackarabic\",1640,\"eighthangzhou\",12328,\"eighthnotebeamed\",9835,\"eightideographicparen\",12839,\"eightinferior\",8328,\"eightmonospace\",65304,\"eightoldstyle\",63288,\"eightparen\",9339,\"eightperiod\",9359,\"eightpersian\",1784,\"eightroman\",8567,\"eightsuperior\",8312,\"eightthai\",3672,\"einvertedbreve\",519,\"eiotifiedcyrillic\",1125,\"ekatakana\",12456,\"ekatakanahalfwidth\",65396,\"ekonkargurmukhi\",2676,\"ekorean\",12628,\"elcyrillic\",1083,\"element\",8712,\"elevencircle\",9322,\"elevenparen\",9342,\"elevenperiod\",9362,\"elevenroman\",8570,\"ellipsis\",8230,\"ellipsisvertical\",8942,\"emacron\",275,\"emacronacute\",7703,\"emacrongrave\",7701,\"emcyrillic\",1084,\"emdash\",8212,\"emdashvertical\",65073,\"emonospace\",65349,\"emphasismarkarmenian\",1371,\"emptyset\",8709,\"enbopomofo\",12579,\"encyrillic\",1085,\"endash\",8211,\"endashvertical\",65074,\"endescendercyrillic\",1187,\"eng\",331,\"engbopomofo\",12581,\"enghecyrillic\",1189,\"enhookcyrillic\",1224,\"enspace\",8194,\"eogonek\",281,\"eokorean\",12627,\"eopen\",603,\"eopenclosed\",666,\"eopenreversed\",604,\"eopenreversedclosed\",606,\"eopenreversedhook\",605,\"eparen\",9376,\"epsilon\",949,\"epsilontonos\",941,\"equal\",61,\"equalmonospace\",65309,\"equalsmall\",65126,\"equalsuperior\",8316,\"equivalence\",8801,\"erbopomofo\",12582,\"ercyrillic\",1088,\"ereversed\",600,\"ereversedcyrillic\",1101,\"escyrillic\",1089,\"esdescendercyrillic\",1195,\"esh\",643,\"eshcurl\",646,\"eshortdeva\",2318,\"eshortvowelsigndeva\",2374,\"eshreversedloop\",426,\"eshsquatreversed\",645,\"esmallhiragana\",12359,\"esmallkatakana\",12455,\"esmallkatakanahalfwidth\",65386,\"estimated\",8494,\"esuperior\",63212,\"eta\",951,\"etarmenian\",1384,\"etatonos\",942,\"eth\",240,\"etilde\",7869,\"etildebelow\",7707,\"etnahtafoukhhebrew\",1425,\"etnahtafoukhlefthebrew\",1425,\"etnahtahebrew\",1425,\"etnahtalefthebrew\",1425,\"eturned\",477,\"eukorean\",12641,\"euro\",8364,\"evowelsignbengali\",2503,\"evowelsigndeva\",2375,\"evowelsigngujarati\",2759,\"exclam\",33,\"exclamarmenian\",1372,\"exclamdbl\",8252,\"exclamdown\",161,\"exclamdownsmall\",63393,\"exclammonospace\",65281,\"exclamsmall\",63265,\"existential\",8707,\"ezh\",658,\"ezhcaron\",495,\"ezhcurl\",659,\"ezhreversed\",441,\"ezhtail\",442,\"f\",102,\"fadeva\",2398,\"fagurmukhi\",2654,\"fahrenheit\",8457,\"fathaarabic\",1614,\"fathalowarabic\",1614,\"fathatanarabic\",1611,\"fbopomofo\",12552,\"fcircle\",9429,\"fdotaccent\",7711,\"feharabic\",1601,\"feharmenian\",1414,\"fehfinalarabic\",65234,\"fehinitialarabic\",65235,\"fehmedialarabic\",65236,\"feicoptic\",997,\"female\",9792,\"ff\",64256,\"f_f\",64256,\"ffi\",64259,\"ffl\",64260,\"fi\",64257,\"fifteencircle\",9326,\"fifteenparen\",9346,\"fifteenperiod\",9366,\"figuredash\",8210,\"filledbox\",9632,\"filledrect\",9644,\"finalkaf\",1498,\"finalkafdagesh\",64314,\"finalkafdageshhebrew\",64314,\"finalkafhebrew\",1498,\"finalmem\",1501,\"finalmemhebrew\",1501,\"finalnun\",1503,\"finalnunhebrew\",1503,\"finalpe\",1507,\"finalpehebrew\",1507,\"finaltsadi\",1509,\"finaltsadihebrew\",1509,\"firsttonechinese\",713,\"fisheye\",9673,\"fitacyrillic\",1139,\"five\",53,\"fivearabic\",1637,\"fivebengali\",2539,\"fivecircle\",9316,\"fivecircleinversesansserif\",10126,\"fivedeva\",2411,\"fiveeighths\",8541,\"fivegujarati\",2795,\"fivegurmukhi\",2667,\"fivehackarabic\",1637,\"fivehangzhou\",12325,\"fiveideographicparen\",12836,\"fiveinferior\",8325,\"fivemonospace\",65301,\"fiveoldstyle\",63285,\"fiveparen\",9336,\"fiveperiod\",9356,\"fivepersian\",1781,\"fiveroman\",8564,\"fivesuperior\",8309,\"fivethai\",3669,\"fl\",64258,\"florin\",402,\"fmonospace\",65350,\"fmsquare\",13209,\"fofanthai\",3615,\"fofathai\",3613,\"fongmanthai\",3663,\"forall\",8704,\"four\",52,\"fourarabic\",1636,\"fourbengali\",2538,\"fourcircle\",9315,\"fourcircleinversesansserif\",10125,\"fourdeva\",2410,\"fourgujarati\",2794,\"fourgurmukhi\",2666,\"fourhackarabic\",1636,\"fourhangzhou\",12324,\"fourideographicparen\",12835,\"fourinferior\",8324,\"fourmonospace\",65300,\"fournumeratorbengali\",2551,\"fouroldstyle\",63284,\"fourparen\",9335,\"fourperiod\",9355,\"fourpersian\",1780,\"fourroman\",8563,\"foursuperior\",8308,\"fourteencircle\",9325,\"fourteenparen\",9345,\"fourteenperiod\",9365,\"fourthai\",3668,\"fourthtonechinese\",715,\"fparen\",9377,\"fraction\",8260,\"franc\",8355,\"g\",103,\"gabengali\",2455,\"gacute\",501,\"gadeva\",2327,\"gafarabic\",1711,\"gaffinalarabic\",64403,\"gafinitialarabic\",64404,\"gafmedialarabic\",64405,\"gagujarati\",2711,\"gagurmukhi\",2583,\"gahiragana\",12364,\"gakatakana\",12460,\"gamma\",947,\"gammalatinsmall\",611,\"gammasuperior\",736,\"gangiacoptic\",1003,\"gbopomofo\",12557,\"gbreve\",287,\"gcaron\",487,\"gcedilla\",291,\"gcircle\",9430,\"gcircumflex\",285,\"gcommaaccent\",291,\"gdot\",289,\"gdotaccent\",289,\"gecyrillic\",1075,\"gehiragana\",12370,\"gekatakana\",12466,\"geometricallyequal\",8785,\"gereshaccenthebrew\",1436,\"gereshhebrew\",1523,\"gereshmuqdamhebrew\",1437,\"germandbls\",223,\"gershayimaccenthebrew\",1438,\"gershayimhebrew\",1524,\"getamark\",12307,\"ghabengali\",2456,\"ghadarmenian\",1394,\"ghadeva\",2328,\"ghagujarati\",2712,\"ghagurmukhi\",2584,\"ghainarabic\",1594,\"ghainfinalarabic\",65230,\"ghaininitialarabic\",65231,\"ghainmedialarabic\",65232,\"ghemiddlehookcyrillic\",1173,\"ghestrokecyrillic\",1171,\"gheupturncyrillic\",1169,\"ghhadeva\",2394,\"ghhagurmukhi\",2650,\"ghook\",608,\"ghzsquare\",13203,\"gihiragana\",12366,\"gikatakana\",12462,\"gimarmenian\",1379,\"gimel\",1490,\"gimeldagesh\",64306,\"gimeldageshhebrew\",64306,\"gimelhebrew\",1490,\"gjecyrillic\",1107,\"glottalinvertedstroke\",446,\"glottalstop\",660,\"glottalstopinverted\",662,\"glottalstopmod\",704,\"glottalstopreversed\",661,\"glottalstopreversedmod\",705,\"glottalstopreversedsuperior\",740,\"glottalstopstroke\",673,\"glottalstopstrokereversed\",674,\"gmacron\",7713,\"gmonospace\",65351,\"gohiragana\",12372,\"gokatakana\",12468,\"gparen\",9378,\"gpasquare\",13228,\"gradient\",8711,\"grave\",96,\"gravebelowcmb\",790,\"gravecmb\",768,\"gravecomb\",768,\"gravedeva\",2387,\"gravelowmod\",718,\"gravemonospace\",65344,\"gravetonecmb\",832,\"greater\",62,\"greaterequal\",8805,\"greaterequalorless\",8923,\"greatermonospace\",65310,\"greaterorequivalent\",8819,\"greaterorless\",8823,\"greateroverequal\",8807,\"greatersmall\",65125,\"gscript\",609,\"gstroke\",485,\"guhiragana\",12368,\"guillemotleft\",171,\"guillemotright\",187,\"guilsinglleft\",8249,\"guilsinglright\",8250,\"gukatakana\",12464,\"guramusquare\",13080,\"gysquare\",13257,\"h\",104,\"haabkhasiancyrillic\",1193,\"haaltonearabic\",1729,\"habengali\",2489,\"hadescendercyrillic\",1203,\"hadeva\",2361,\"hagujarati\",2745,\"hagurmukhi\",2617,\"haharabic\",1581,\"hahfinalarabic\",65186,\"hahinitialarabic\",65187,\"hahiragana\",12399,\"hahmedialarabic\",65188,\"haitusquare\",13098,\"hakatakana\",12495,\"hakatakanahalfwidth\",65418,\"halantgurmukhi\",2637,\"hamzaarabic\",1569,\"hamzalowarabic\",1569,\"hangulfiller\",12644,\"hardsigncyrillic\",1098,\"harpoonleftbarbup\",8636,\"harpoonrightbarbup\",8640,\"hasquare\",13258,\"hatafpatah\",1458,\"hatafpatah16\",1458,\"hatafpatah23\",1458,\"hatafpatah2f\",1458,\"hatafpatahhebrew\",1458,\"hatafpatahnarrowhebrew\",1458,\"hatafpatahquarterhebrew\",1458,\"hatafpatahwidehebrew\",1458,\"hatafqamats\",1459,\"hatafqamats1b\",1459,\"hatafqamats28\",1459,\"hatafqamats34\",1459,\"hatafqamatshebrew\",1459,\"hatafqamatsnarrowhebrew\",1459,\"hatafqamatsquarterhebrew\",1459,\"hatafqamatswidehebrew\",1459,\"hatafsegol\",1457,\"hatafsegol17\",1457,\"hatafsegol24\",1457,\"hatafsegol30\",1457,\"hatafsegolhebrew\",1457,\"hatafsegolnarrowhebrew\",1457,\"hatafsegolquarterhebrew\",1457,\"hatafsegolwidehebrew\",1457,\"hbar\",295,\"hbopomofo\",12559,\"hbrevebelow\",7723,\"hcedilla\",7721,\"hcircle\",9431,\"hcircumflex\",293,\"hdieresis\",7719,\"hdotaccent\",7715,\"hdotbelow\",7717,\"he\",1492,\"heart\",9829,\"heartsuitblack\",9829,\"heartsuitwhite\",9825,\"hedagesh\",64308,\"hedageshhebrew\",64308,\"hehaltonearabic\",1729,\"heharabic\",1607,\"hehebrew\",1492,\"hehfinalaltonearabic\",64423,\"hehfinalalttwoarabic\",65258,\"hehfinalarabic\",65258,\"hehhamzaabovefinalarabic\",64421,\"hehhamzaaboveisolatedarabic\",64420,\"hehinitialaltonearabic\",64424,\"hehinitialarabic\",65259,\"hehiragana\",12408,\"hehmedialaltonearabic\",64425,\"hehmedialarabic\",65260,\"heiseierasquare\",13179,\"hekatakana\",12504,\"hekatakanahalfwidth\",65421,\"hekutaarusquare\",13110,\"henghook\",615,\"herutusquare\",13113,\"het\",1495,\"hethebrew\",1495,\"hhook\",614,\"hhooksuperior\",689,\"hieuhacirclekorean\",12923,\"hieuhaparenkorean\",12827,\"hieuhcirclekorean\",12909,\"hieuhkorean\",12622,\"hieuhparenkorean\",12813,\"hihiragana\",12402,\"hikatakana\",12498,\"hikatakanahalfwidth\",65419,\"hiriq\",1460,\"hiriq14\",1460,\"hiriq21\",1460,\"hiriq2d\",1460,\"hiriqhebrew\",1460,\"hiriqnarrowhebrew\",1460,\"hiriqquarterhebrew\",1460,\"hiriqwidehebrew\",1460,\"hlinebelow\",7830,\"hmonospace\",65352,\"hoarmenian\",1392,\"hohipthai\",3627,\"hohiragana\",12411,\"hokatakana\",12507,\"hokatakanahalfwidth\",65422,\"holam\",1465,\"holam19\",1465,\"holam26\",1465,\"holam32\",1465,\"holamhebrew\",1465,\"holamnarrowhebrew\",1465,\"holamquarterhebrew\",1465,\"holamwidehebrew\",1465,\"honokhukthai\",3630,\"hookabovecomb\",777,\"hookcmb\",777,\"hookpalatalizedbelowcmb\",801,\"hookretroflexbelowcmb\",802,\"hoonsquare\",13122,\"horicoptic\",1001,\"horizontalbar\",8213,\"horncmb\",795,\"hotsprings\",9832,\"house\",8962,\"hparen\",9379,\"hsuperior\",688,\"hturned\",613,\"huhiragana\",12405,\"huiitosquare\",13107,\"hukatakana\",12501,\"hukatakanahalfwidth\",65420,\"hungarumlaut\",733,\"hungarumlautcmb\",779,\"hv\",405,\"hyphen\",45,\"hypheninferior\",63205,\"hyphenmonospace\",65293,\"hyphensmall\",65123,\"hyphensuperior\",63206,\"hyphentwo\",8208,\"i\",105,\"iacute\",237,\"iacyrillic\",1103,\"ibengali\",2439,\"ibopomofo\",12583,\"ibreve\",301,\"icaron\",464,\"icircle\",9432,\"icircumflex\",238,\"icyrillic\",1110,\"idblgrave\",521,\"ideographearthcircle\",12943,\"ideographfirecircle\",12939,\"ideographicallianceparen\",12863,\"ideographiccallparen\",12858,\"ideographiccentrecircle\",12965,\"ideographicclose\",12294,\"ideographiccomma\",12289,\"ideographiccommaleft\",65380,\"ideographiccongratulationparen\",12855,\"ideographiccorrectcircle\",12963,\"ideographicearthparen\",12847,\"ideographicenterpriseparen\",12861,\"ideographicexcellentcircle\",12957,\"ideographicfestivalparen\",12864,\"ideographicfinancialcircle\",12950,\"ideographicfinancialparen\",12854,\"ideographicfireparen\",12843,\"ideographichaveparen\",12850,\"ideographichighcircle\",12964,\"ideographiciterationmark\",12293,\"ideographiclaborcircle\",12952,\"ideographiclaborparen\",12856,\"ideographicleftcircle\",12967,\"ideographiclowcircle\",12966,\"ideographicmedicinecircle\",12969,\"ideographicmetalparen\",12846,\"ideographicmoonparen\",12842,\"ideographicnameparen\",12852,\"ideographicperiod\",12290,\"ideographicprintcircle\",12958,\"ideographicreachparen\",12867,\"ideographicrepresentparen\",12857,\"ideographicresourceparen\",12862,\"ideographicrightcircle\",12968,\"ideographicsecretcircle\",12953,\"ideographicselfparen\",12866,\"ideographicsocietyparen\",12851,\"ideographicspace\",12288,\"ideographicspecialparen\",12853,\"ideographicstockparen\",12849,\"ideographicstudyparen\",12859,\"ideographicsunparen\",12848,\"ideographicsuperviseparen\",12860,\"ideographicwaterparen\",12844,\"ideographicwoodparen\",12845,\"ideographiczero\",12295,\"ideographmetalcircle\",12942,\"ideographmooncircle\",12938,\"ideographnamecircle\",12948,\"ideographsuncircle\",12944,\"ideographwatercircle\",12940,\"ideographwoodcircle\",12941,\"ideva\",2311,\"idieresis\",239,\"idieresisacute\",7727,\"idieresiscyrillic\",1253,\"idotbelow\",7883,\"iebrevecyrillic\",1239,\"iecyrillic\",1077,\"ieungacirclekorean\",12917,\"ieungaparenkorean\",12821,\"ieungcirclekorean\",12903,\"ieungkorean\",12615,\"ieungparenkorean\",12807,\"igrave\",236,\"igujarati\",2695,\"igurmukhi\",2567,\"ihiragana\",12356,\"ihookabove\",7881,\"iibengali\",2440,\"iicyrillic\",1080,\"iideva\",2312,\"iigujarati\",2696,\"iigurmukhi\",2568,\"iimatragurmukhi\",2624,\"iinvertedbreve\",523,\"iishortcyrillic\",1081,\"iivowelsignbengali\",2496,\"iivowelsigndeva\",2368,\"iivowelsigngujarati\",2752,\"ij\",307,\"ikatakana\",12452,\"ikatakanahalfwidth\",65394,\"ikorean\",12643,\"ilde\",732,\"iluyhebrew\",1452,\"imacron\",299,\"imacroncyrillic\",1251,\"imageorapproximatelyequal\",8787,\"imatragurmukhi\",2623,\"imonospace\",65353,\"increment\",8710,\"infinity\",8734,\"iniarmenian\",1387,\"integral\",8747,\"integralbottom\",8993,\"integralbt\",8993,\"integralex\",63733,\"integraltop\",8992,\"integraltp\",8992,\"intersection\",8745,\"intisquare\",13061,\"invbullet\",9688,\"invcircle\",9689,\"invsmileface\",9787,\"iocyrillic\",1105,\"iogonek\",303,\"iota\",953,\"iotadieresis\",970,\"iotadieresistonos\",912,\"iotalatin\",617,\"iotatonos\",943,\"iparen\",9380,\"irigurmukhi\",2674,\"ismallhiragana\",12355,\"ismallkatakana\",12451,\"ismallkatakanahalfwidth\",65384,\"issharbengali\",2554,\"istroke\",616,\"isuperior\",63213,\"iterationhiragana\",12445,\"iterationkatakana\",12541,\"itilde\",297,\"itildebelow\",7725,\"iubopomofo\",12585,\"iucyrillic\",1102,\"ivowelsignbengali\",2495,\"ivowelsigndeva\",2367,\"ivowelsigngujarati\",2751,\"izhitsacyrillic\",1141,\"izhitsadblgravecyrillic\",1143,\"j\",106,\"jaarmenian\",1393,\"jabengali\",2460,\"jadeva\",2332,\"jagujarati\",2716,\"jagurmukhi\",2588,\"jbopomofo\",12560,\"jcaron\",496,\"jcircle\",9433,\"jcircumflex\",309,\"jcrossedtail\",669,\"jdotlessstroke\",607,\"jecyrillic\",1112,\"jeemarabic\",1580,\"jeemfinalarabic\",65182,\"jeeminitialarabic\",65183,\"jeemmedialarabic\",65184,\"jeharabic\",1688,\"jehfinalarabic\",64395,\"jhabengali\",2461,\"jhadeva\",2333,\"jhagujarati\",2717,\"jhagurmukhi\",2589,\"jheharmenian\",1403,\"jis\",12292,\"jmonospace\",65354,\"jparen\",9381,\"jsuperior\",690,\"k\",107,\"kabashkircyrillic\",1185,\"kabengali\",2453,\"kacute\",7729,\"kacyrillic\",1082,\"kadescendercyrillic\",1179,\"kadeva\",2325,\"kaf\",1499,\"kafarabic\",1603,\"kafdagesh\",64315,\"kafdageshhebrew\",64315,\"kaffinalarabic\",65242,\"kafhebrew\",1499,\"kafinitialarabic\",65243,\"kafmedialarabic\",65244,\"kafrafehebrew\",64333,\"kagujarati\",2709,\"kagurmukhi\",2581,\"kahiragana\",12363,\"kahookcyrillic\",1220,\"kakatakana\",12459,\"kakatakanahalfwidth\",65398,\"kappa\",954,\"kappasymbolgreek\",1008,\"kapyeounmieumkorean\",12657,\"kapyeounphieuphkorean\",12676,\"kapyeounpieupkorean\",12664,\"kapyeounssangpieupkorean\",12665,\"karoriisquare\",13069,\"kashidaautoarabic\",1600,\"kashidaautonosidebearingarabic\",1600,\"kasmallkatakana\",12533,\"kasquare\",13188,\"kasraarabic\",1616,\"kasratanarabic\",1613,\"kastrokecyrillic\",1183,\"katahiraprolongmarkhalfwidth\",65392,\"kaverticalstrokecyrillic\",1181,\"kbopomofo\",12558,\"kcalsquare\",13193,\"kcaron\",489,\"kcedilla\",311,\"kcircle\",9434,\"kcommaaccent\",311,\"kdotbelow\",7731,\"keharmenian\",1412,\"kehiragana\",12369,\"kekatakana\",12465,\"kekatakanahalfwidth\",65401,\"kenarmenian\",1391,\"kesmallkatakana\",12534,\"kgreenlandic\",312,\"khabengali\",2454,\"khacyrillic\",1093,\"khadeva\",2326,\"khagujarati\",2710,\"khagurmukhi\",2582,\"khaharabic\",1582,\"khahfinalarabic\",65190,\"khahinitialarabic\",65191,\"khahmedialarabic\",65192,\"kheicoptic\",999,\"khhadeva\",2393,\"khhagurmukhi\",2649,\"khieukhacirclekorean\",12920,\"khieukhaparenkorean\",12824,\"khieukhcirclekorean\",12906,\"khieukhkorean\",12619,\"khieukhparenkorean\",12810,\"khokhaithai\",3586,\"khokhonthai\",3589,\"khokhuatthai\",3587,\"khokhwaithai\",3588,\"khomutthai\",3675,\"khook\",409,\"khorakhangthai\",3590,\"khzsquare\",13201,\"kihiragana\",12365,\"kikatakana\",12461,\"kikatakanahalfwidth\",65399,\"kiroguramusquare\",13077,\"kiromeetorusquare\",13078,\"kirosquare\",13076,\"kiyeokacirclekorean\",12910,\"kiyeokaparenkorean\",12814,\"kiyeokcirclekorean\",12896,\"kiyeokkorean\",12593,\"kiyeokparenkorean\",12800,\"kiyeoksioskorean\",12595,\"kjecyrillic\",1116,\"klinebelow\",7733,\"klsquare\",13208,\"kmcubedsquare\",13222,\"kmonospace\",65355,\"kmsquaredsquare\",13218,\"kohiragana\",12371,\"kohmsquare\",13248,\"kokaithai\",3585,\"kokatakana\",12467,\"kokatakanahalfwidth\",65402,\"kooposquare\",13086,\"koppacyrillic\",1153,\"koreanstandardsymbol\",12927,\"koroniscmb\",835,\"kparen\",9382,\"kpasquare\",13226,\"ksicyrillic\",1135,\"ktsquare\",13263,\"kturned\",670,\"kuhiragana\",12367,\"kukatakana\",12463,\"kukatakanahalfwidth\",65400,\"kvsquare\",13240,\"kwsquare\",13246,\"l\",108,\"labengali\",2482,\"lacute\",314,\"ladeva\",2354,\"lagujarati\",2738,\"lagurmukhi\",2610,\"lakkhangyaothai\",3653,\"lamaleffinalarabic\",65276,\"lamalefhamzaabovefinalarabic\",65272,\"lamalefhamzaaboveisolatedarabic\",65271,\"lamalefhamzabelowfinalarabic\",65274,\"lamalefhamzabelowisolatedarabic\",65273,\"lamalefisolatedarabic\",65275,\"lamalefmaddaabovefinalarabic\",65270,\"lamalefmaddaaboveisolatedarabic\",65269,\"lamarabic\",1604,\"lambda\",955,\"lambdastroke\",411,\"lamed\",1500,\"lameddagesh\",64316,\"lameddageshhebrew\",64316,\"lamedhebrew\",1500,\"lamfinalarabic\",65246,\"lamhahinitialarabic\",64714,\"laminitialarabic\",65247,\"lamjeeminitialarabic\",64713,\"lamkhahinitialarabic\",64715,\"lamlamhehisolatedarabic\",65010,\"lammedialarabic\",65248,\"lammeemhahinitialarabic\",64904,\"lammeeminitialarabic\",64716,\"largecircle\",9711,\"lbar\",410,\"lbelt\",620,\"lbopomofo\",12556,\"lcaron\",318,\"lcedilla\",316,\"lcircle\",9435,\"lcircumflexbelow\",7741,\"lcommaaccent\",316,\"ldot\",320,\"ldotaccent\",320,\"ldotbelow\",7735,\"ldotbelowmacron\",7737,\"leftangleabovecmb\",794,\"lefttackbelowcmb\",792,\"less\",60,\"lessequal\",8804,\"lessequalorgreater\",8922,\"lessmonospace\",65308,\"lessorequivalent\",8818,\"lessorgreater\",8822,\"lessoverequal\",8806,\"lesssmall\",65124,\"lezh\",622,\"lfblock\",9612,\"lhookretroflex\",621,\"lira\",8356,\"liwnarmenian\",1388,\"lj\",457,\"ljecyrillic\",1113,\"ll\",63168,\"lladeva\",2355,\"llagujarati\",2739,\"llinebelow\",7739,\"llladeva\",2356,\"llvocalicbengali\",2529,\"llvocalicdeva\",2401,\"llvocalicvowelsignbengali\",2531,\"llvocalicvowelsigndeva\",2403,\"lmiddletilde\",619,\"lmonospace\",65356,\"lmsquare\",13264,\"lochulathai\",3628,\"logicaland\",8743,\"logicalnot\",172,\"logicalnotreversed\",8976,\"logicalor\",8744,\"lolingthai\",3621,\"longs\",383,\"lowlinecenterline\",65102,\"lowlinecmb\",818,\"lowlinedashed\",65101,\"lozenge\",9674,\"lparen\",9383,\"lslash\",322,\"lsquare\",8467,\"lsuperior\",63214,\"ltshade\",9617,\"luthai\",3622,\"lvocalicbengali\",2444,\"lvocalicdeva\",2316,\"lvocalicvowelsignbengali\",2530,\"lvocalicvowelsigndeva\",2402,\"lxsquare\",13267,\"m\",109,\"mabengali\",2478,\"macron\",175,\"macronbelowcmb\",817,\"macroncmb\",772,\"macronlowmod\",717,\"macronmonospace\",65507,\"macute\",7743,\"madeva\",2350,\"magujarati\",2734,\"magurmukhi\",2606,\"mahapakhhebrew\",1444,\"mahapakhlefthebrew\",1444,\"mahiragana\",12414,\"maichattawalowleftthai\",63637,\"maichattawalowrightthai\",63636,\"maichattawathai\",3659,\"maichattawaupperleftthai\",63635,\"maieklowleftthai\",63628,\"maieklowrightthai\",63627,\"maiekthai\",3656,\"maiekupperleftthai\",63626,\"maihanakatleftthai\",63620,\"maihanakatthai\",3633,\"maitaikhuleftthai\",63625,\"maitaikhuthai\",3655,\"maitholowleftthai\",63631,\"maitholowrightthai\",63630,\"maithothai\",3657,\"maithoupperleftthai\",63629,\"maitrilowleftthai\",63634,\"maitrilowrightthai\",63633,\"maitrithai\",3658,\"maitriupperleftthai\",63632,\"maiyamokthai\",3654,\"makatakana\",12510,\"makatakanahalfwidth\",65423,\"male\",9794,\"mansyonsquare\",13127,\"maqafhebrew\",1470,\"mars\",9794,\"masoracirclehebrew\",1455,\"masquare\",13187,\"mbopomofo\",12551,\"mbsquare\",13268,\"mcircle\",9436,\"mcubedsquare\",13221,\"mdotaccent\",7745,\"mdotbelow\",7747,\"meemarabic\",1605,\"meemfinalarabic\",65250,\"meeminitialarabic\",65251,\"meemmedialarabic\",65252,\"meemmeeminitialarabic\",64721,\"meemmeemisolatedarabic\",64584,\"meetorusquare\",13133,\"mehiragana\",12417,\"meizierasquare\",13182,\"mekatakana\",12513,\"mekatakanahalfwidth\",65426,\"mem\",1502,\"memdagesh\",64318,\"memdageshhebrew\",64318,\"memhebrew\",1502,\"menarmenian\",1396,\"merkhahebrew\",1445,\"merkhakefulahebrew\",1446,\"merkhakefulalefthebrew\",1446,\"merkhalefthebrew\",1445,\"mhook\",625,\"mhzsquare\",13202,\"middledotkatakanahalfwidth\",65381,\"middot\",183,\"mieumacirclekorean\",12914,\"mieumaparenkorean\",12818,\"mieumcirclekorean\",12900,\"mieumkorean\",12609,\"mieumpansioskorean\",12656,\"mieumparenkorean\",12804,\"mieumpieupkorean\",12654,\"mieumsioskorean\",12655,\"mihiragana\",12415,\"mikatakana\",12511,\"mikatakanahalfwidth\",65424,\"minus\",8722,\"minusbelowcmb\",800,\"minuscircle\",8854,\"minusmod\",727,\"minusplus\",8723,\"minute\",8242,\"miribaarusquare\",13130,\"mirisquare\",13129,\"mlonglegturned\",624,\"mlsquare\",13206,\"mmcubedsquare\",13219,\"mmonospace\",65357,\"mmsquaredsquare\",13215,\"mohiragana\",12418,\"mohmsquare\",13249,\"mokatakana\",12514,\"mokatakanahalfwidth\",65427,\"molsquare\",13270,\"momathai\",3617,\"moverssquare\",13223,\"moverssquaredsquare\",13224,\"mparen\",9384,\"mpasquare\",13227,\"mssquare\",13235,\"msuperior\",63215,\"mturned\",623,\"mu\",181,\"mu1\",181,\"muasquare\",13186,\"muchgreater\",8811,\"muchless\",8810,\"mufsquare\",13196,\"mugreek\",956,\"mugsquare\",13197,\"muhiragana\",12416,\"mukatakana\",12512,\"mukatakanahalfwidth\",65425,\"mulsquare\",13205,\"multiply\",215,\"mumsquare\",13211,\"munahhebrew\",1443,\"munahlefthebrew\",1443,\"musicalnote\",9834,\"musicalnotedbl\",9835,\"musicflatsign\",9837,\"musicsharpsign\",9839,\"mussquare\",13234,\"muvsquare\",13238,\"muwsquare\",13244,\"mvmegasquare\",13241,\"mvsquare\",13239,\"mwmegasquare\",13247,\"mwsquare\",13245,\"n\",110,\"nabengali\",2472,\"nabla\",8711,\"nacute\",324,\"nadeva\",2344,\"nagujarati\",2728,\"nagurmukhi\",2600,\"nahiragana\",12394,\"nakatakana\",12490,\"nakatakanahalfwidth\",65413,\"napostrophe\",329,\"nasquare\",13185,\"nbopomofo\",12555,\"nbspace\",160,\"ncaron\",328,\"ncedilla\",326,\"ncircle\",9437,\"ncircumflexbelow\",7755,\"ncommaaccent\",326,\"ndotaccent\",7749,\"ndotbelow\",7751,\"nehiragana\",12397,\"nekatakana\",12493,\"nekatakanahalfwidth\",65416,\"newsheqelsign\",8362,\"nfsquare\",13195,\"ngabengali\",2457,\"ngadeva\",2329,\"ngagujarati\",2713,\"ngagurmukhi\",2585,\"ngonguthai\",3591,\"nhiragana\",12435,\"nhookleft\",626,\"nhookretroflex\",627,\"nieunacirclekorean\",12911,\"nieunaparenkorean\",12815,\"nieuncieuckorean\",12597,\"nieuncirclekorean\",12897,\"nieunhieuhkorean\",12598,\"nieunkorean\",12596,\"nieunpansioskorean\",12648,\"nieunparenkorean\",12801,\"nieunsioskorean\",12647,\"nieuntikeutkorean\",12646,\"nihiragana\",12395,\"nikatakana\",12491,\"nikatakanahalfwidth\",65414,\"nikhahitleftthai\",63641,\"nikhahitthai\",3661,\"nine\",57,\"ninearabic\",1641,\"ninebengali\",2543,\"ninecircle\",9320,\"ninecircleinversesansserif\",10130,\"ninedeva\",2415,\"ninegujarati\",2799,\"ninegurmukhi\",2671,\"ninehackarabic\",1641,\"ninehangzhou\",12329,\"nineideographicparen\",12840,\"nineinferior\",8329,\"ninemonospace\",65305,\"nineoldstyle\",63289,\"nineparen\",9340,\"nineperiod\",9360,\"ninepersian\",1785,\"nineroman\",8568,\"ninesuperior\",8313,\"nineteencircle\",9330,\"nineteenparen\",9350,\"nineteenperiod\",9370,\"ninethai\",3673,\"nj\",460,\"njecyrillic\",1114,\"nkatakana\",12531,\"nkatakanahalfwidth\",65437,\"nlegrightlong\",414,\"nlinebelow\",7753,\"nmonospace\",65358,\"nmsquare\",13210,\"nnabengali\",2467,\"nnadeva\",2339,\"nnagujarati\",2723,\"nnagurmukhi\",2595,\"nnnadeva\",2345,\"nohiragana\",12398,\"nokatakana\",12494,\"nokatakanahalfwidth\",65417,\"nonbreakingspace\",160,\"nonenthai\",3603,\"nonuthai\",3609,\"noonarabic\",1606,\"noonfinalarabic\",65254,\"noonghunnaarabic\",1722,\"noonghunnafinalarabic\",64415,\"nooninitialarabic\",65255,\"noonjeeminitialarabic\",64722,\"noonjeemisolatedarabic\",64587,\"noonmedialarabic\",65256,\"noonmeeminitialarabic\",64725,\"noonmeemisolatedarabic\",64590,\"noonnoonfinalarabic\",64653,\"notcontains\",8716,\"notelement\",8713,\"notelementof\",8713,\"notequal\",8800,\"notgreater\",8815,\"notgreaternorequal\",8817,\"notgreaternorless\",8825,\"notidentical\",8802,\"notless\",8814,\"notlessnorequal\",8816,\"notparallel\",8742,\"notprecedes\",8832,\"notsubset\",8836,\"notsucceeds\",8833,\"notsuperset\",8837,\"nowarmenian\",1398,\"nparen\",9385,\"nssquare\",13233,\"nsuperior\",8319,\"ntilde\",241,\"nu\",957,\"nuhiragana\",12396,\"nukatakana\",12492,\"nukatakanahalfwidth\",65415,\"nuktabengali\",2492,\"nuktadeva\",2364,\"nuktagujarati\",2748,\"nuktagurmukhi\",2620,\"numbersign\",35,\"numbersignmonospace\",65283,\"numbersignsmall\",65119,\"numeralsigngreek\",884,\"numeralsignlowergreek\",885,\"numero\",8470,\"nun\",1504,\"nundagesh\",64320,\"nundageshhebrew\",64320,\"nunhebrew\",1504,\"nvsquare\",13237,\"nwsquare\",13243,\"nyabengali\",2462,\"nyadeva\",2334,\"nyagujarati\",2718,\"nyagurmukhi\",2590,\"o\",111,\"oacute\",243,\"oangthai\",3629,\"obarred\",629,\"obarredcyrillic\",1257,\"obarreddieresiscyrillic\",1259,\"obengali\",2451,\"obopomofo\",12571,\"obreve\",335,\"ocandradeva\",2321,\"ocandragujarati\",2705,\"ocandravowelsigndeva\",2377,\"ocandravowelsigngujarati\",2761,\"ocaron\",466,\"ocircle\",9438,\"ocircumflex\",244,\"ocircumflexacute\",7889,\"ocircumflexdotbelow\",7897,\"ocircumflexgrave\",7891,\"ocircumflexhookabove\",7893,\"ocircumflextilde\",7895,\"ocyrillic\",1086,\"odblacute\",337,\"odblgrave\",525,\"odeva\",2323,\"odieresis\",246,\"odieresiscyrillic\",1255,\"odotbelow\",7885,\"oe\",339,\"oekorean\",12634,\"ogonek\",731,\"ogonekcmb\",808,\"ograve\",242,\"ogujarati\",2707,\"oharmenian\",1413,\"ohiragana\",12362,\"ohookabove\",7887,\"ohorn\",417,\"ohornacute\",7899,\"ohorndotbelow\",7907,\"ohorngrave\",7901,\"ohornhookabove\",7903,\"ohorntilde\",7905,\"ohungarumlaut\",337,\"oi\",419,\"oinvertedbreve\",527,\"okatakana\",12458,\"okatakanahalfwidth\",65397,\"okorean\",12631,\"olehebrew\",1451,\"omacron\",333,\"omacronacute\",7763,\"omacrongrave\",7761,\"omdeva\",2384,\"omega\",969,\"omega1\",982,\"omegacyrillic\",1121,\"omegalatinclosed\",631,\"omegaroundcyrillic\",1147,\"omegatitlocyrillic\",1149,\"omegatonos\",974,\"omgujarati\",2768,\"omicron\",959,\"omicrontonos\",972,\"omonospace\",65359,\"one\",49,\"onearabic\",1633,\"onebengali\",2535,\"onecircle\",9312,\"onecircleinversesansserif\",10122,\"onedeva\",2407,\"onedotenleader\",8228,\"oneeighth\",8539,\"onefitted\",63196,\"onegujarati\",2791,\"onegurmukhi\",2663,\"onehackarabic\",1633,\"onehalf\",189,\"onehangzhou\",12321,\"oneideographicparen\",12832,\"oneinferior\",8321,\"onemonospace\",65297,\"onenumeratorbengali\",2548,\"oneoldstyle\",63281,\"oneparen\",9332,\"oneperiod\",9352,\"onepersian\",1777,\"onequarter\",188,\"oneroman\",8560,\"onesuperior\",185,\"onethai\",3665,\"onethird\",8531,\"oogonek\",491,\"oogonekmacron\",493,\"oogurmukhi\",2579,\"oomatragurmukhi\",2635,\"oopen\",596,\"oparen\",9386,\"openbullet\",9702,\"option\",8997,\"ordfeminine\",170,\"ordmasculine\",186,\"orthogonal\",8735,\"oshortdeva\",2322,\"oshortvowelsigndeva\",2378,\"oslash\",248,\"oslashacute\",511,\"osmallhiragana\",12361,\"osmallkatakana\",12457,\"osmallkatakanahalfwidth\",65387,\"ostrokeacute\",511,\"osuperior\",63216,\"otcyrillic\",1151,\"otilde\",245,\"otildeacute\",7757,\"otildedieresis\",7759,\"oubopomofo\",12577,\"overline\",8254,\"overlinecenterline\",65098,\"overlinecmb\",773,\"overlinedashed\",65097,\"overlinedblwavy\",65100,\"overlinewavy\",65099,\"overscore\",175,\"ovowelsignbengali\",2507,\"ovowelsigndeva\",2379,\"ovowelsigngujarati\",2763,\"p\",112,\"paampssquare\",13184,\"paasentosquare\",13099,\"pabengali\",2474,\"pacute\",7765,\"padeva\",2346,\"pagedown\",8671,\"pageup\",8670,\"pagujarati\",2730,\"pagurmukhi\",2602,\"pahiragana\",12401,\"paiyannoithai\",3631,\"pakatakana\",12497,\"palatalizationcyrilliccmb\",1156,\"palochkacyrillic\",1216,\"pansioskorean\",12671,\"paragraph\",182,\"parallel\",8741,\"parenleft\",40,\"parenleftaltonearabic\",64830,\"parenleftbt\",63725,\"parenleftex\",63724,\"parenleftinferior\",8333,\"parenleftmonospace\",65288,\"parenleftsmall\",65113,\"parenleftsuperior\",8317,\"parenlefttp\",63723,\"parenleftvertical\",65077,\"parenright\",41,\"parenrightaltonearabic\",64831,\"parenrightbt\",63736,\"parenrightex\",63735,\"parenrightinferior\",8334,\"parenrightmonospace\",65289,\"parenrightsmall\",65114,\"parenrightsuperior\",8318,\"parenrighttp\",63734,\"parenrightvertical\",65078,\"partialdiff\",8706,\"paseqhebrew\",1472,\"pashtahebrew\",1433,\"pasquare\",13225,\"patah\",1463,\"patah11\",1463,\"patah1d\",1463,\"patah2a\",1463,\"patahhebrew\",1463,\"patahnarrowhebrew\",1463,\"patahquarterhebrew\",1463,\"patahwidehebrew\",1463,\"pazerhebrew\",1441,\"pbopomofo\",12550,\"pcircle\",9439,\"pdotaccent\",7767,\"pe\",1508,\"pecyrillic\",1087,\"pedagesh\",64324,\"pedageshhebrew\",64324,\"peezisquare\",13115,\"pefinaldageshhebrew\",64323,\"peharabic\",1662,\"peharmenian\",1402,\"pehebrew\",1508,\"pehfinalarabic\",64343,\"pehinitialarabic\",64344,\"pehiragana\",12410,\"pehmedialarabic\",64345,\"pekatakana\",12506,\"pemiddlehookcyrillic\",1191,\"perafehebrew\",64334,\"percent\",37,\"percentarabic\",1642,\"percentmonospace\",65285,\"percentsmall\",65130,\"period\",46,\"periodarmenian\",1417,\"periodcentered\",183,\"periodhalfwidth\",65377,\"periodinferior\",63207,\"periodmonospace\",65294,\"periodsmall\",65106,\"periodsuperior\",63208,\"perispomenigreekcmb\",834,\"perpendicular\",8869,\"perthousand\",8240,\"peseta\",8359,\"pfsquare\",13194,\"phabengali\",2475,\"phadeva\",2347,\"phagujarati\",2731,\"phagurmukhi\",2603,\"phi\",966,\"phi1\",981,\"phieuphacirclekorean\",12922,\"phieuphaparenkorean\",12826,\"phieuphcirclekorean\",12908,\"phieuphkorean\",12621,\"phieuphparenkorean\",12812,\"philatin\",632,\"phinthuthai\",3642,\"phisymbolgreek\",981,\"phook\",421,\"phophanthai\",3614,\"phophungthai\",3612,\"phosamphaothai\",3616,\"pi\",960,\"pieupacirclekorean\",12915,\"pieupaparenkorean\",12819,\"pieupcieuckorean\",12662,\"pieupcirclekorean\",12901,\"pieupkiyeokkorean\",12658,\"pieupkorean\",12610,\"pieupparenkorean\",12805,\"pieupsioskiyeokkorean\",12660,\"pieupsioskorean\",12612,\"pieupsiostikeutkorean\",12661,\"pieupthieuthkorean\",12663,\"pieuptikeutkorean\",12659,\"pihiragana\",12404,\"pikatakana\",12500,\"pisymbolgreek\",982,\"piwrarmenian\",1411,\"plus\",43,\"plusbelowcmb\",799,\"pluscircle\",8853,\"plusminus\",177,\"plusmod\",726,\"plusmonospace\",65291,\"plussmall\",65122,\"plussuperior\",8314,\"pmonospace\",65360,\"pmsquare\",13272,\"pohiragana\",12413,\"pointingindexdownwhite\",9759,\"pointingindexleftwhite\",9756,\"pointingindexrightwhite\",9758,\"pointingindexupwhite\",9757,\"pokatakana\",12509,\"poplathai\",3611,\"postalmark\",12306,\"postalmarkface\",12320,\"pparen\",9387,\"precedes\",8826,\"prescription\",8478,\"primemod\",697,\"primereversed\",8245,\"product\",8719,\"projective\",8965,\"prolongedkana\",12540,\"propellor\",8984,\"propersubset\",8834,\"propersuperset\",8835,\"proportion\",8759,\"proportional\",8733,\"psi\",968,\"psicyrillic\",1137,\"psilipneumatacyrilliccmb\",1158,\"pssquare\",13232,\"puhiragana\",12407,\"pukatakana\",12503,\"pvsquare\",13236,\"pwsquare\",13242,\"q\",113,\"qadeva\",2392,\"qadmahebrew\",1448,\"qafarabic\",1602,\"qaffinalarabic\",65238,\"qafinitialarabic\",65239,\"qafmedialarabic\",65240,\"qamats\",1464,\"qamats10\",1464,\"qamats1a\",1464,\"qamats1c\",1464,\"qamats27\",1464,\"qamats29\",1464,\"qamats33\",1464,\"qamatsde\",1464,\"qamatshebrew\",1464,\"qamatsnarrowhebrew\",1464,\"qamatsqatanhebrew\",1464,\"qamatsqatannarrowhebrew\",1464,\"qamatsqatanquarterhebrew\",1464,\"qamatsqatanwidehebrew\",1464,\"qamatsquarterhebrew\",1464,\"qamatswidehebrew\",1464,\"qarneyparahebrew\",1439,\"qbopomofo\",12561,\"qcircle\",9440,\"qhook\",672,\"qmonospace\",65361,\"qof\",1511,\"qofdagesh\",64327,\"qofdageshhebrew\",64327,\"qofhebrew\",1511,\"qparen\",9388,\"quarternote\",9833,\"qubuts\",1467,\"qubuts18\",1467,\"qubuts25\",1467,\"qubuts31\",1467,\"qubutshebrew\",1467,\"qubutsnarrowhebrew\",1467,\"qubutsquarterhebrew\",1467,\"qubutswidehebrew\",1467,\"question\",63,\"questionarabic\",1567,\"questionarmenian\",1374,\"questiondown\",191,\"questiondownsmall\",63423,\"questiongreek\",894,\"questionmonospace\",65311,\"questionsmall\",63295,\"quotedbl\",34,\"quotedblbase\",8222,\"quotedblleft\",8220,\"quotedblmonospace\",65282,\"quotedblprime\",12318,\"quotedblprimereversed\",12317,\"quotedblright\",8221,\"quoteleft\",8216,\"quoteleftreversed\",8219,\"quotereversed\",8219,\"quoteright\",8217,\"quoterightn\",329,\"quotesinglbase\",8218,\"quotesingle\",39,\"quotesinglemonospace\",65287,\"r\",114,\"raarmenian\",1404,\"rabengali\",2480,\"racute\",341,\"radeva\",2352,\"radical\",8730,\"radicalex\",63717,\"radoverssquare\",13230,\"radoverssquaredsquare\",13231,\"radsquare\",13229,\"rafe\",1471,\"rafehebrew\",1471,\"ragujarati\",2736,\"ragurmukhi\",2608,\"rahiragana\",12425,\"rakatakana\",12521,\"rakatakanahalfwidth\",65431,\"ralowerdiagonalbengali\",2545,\"ramiddlediagonalbengali\",2544,\"ramshorn\",612,\"ratio\",8758,\"rbopomofo\",12566,\"rcaron\",345,\"rcedilla\",343,\"rcircle\",9441,\"rcommaaccent\",343,\"rdblgrave\",529,\"rdotaccent\",7769,\"rdotbelow\",7771,\"rdotbelowmacron\",7773,\"referencemark\",8251,\"reflexsubset\",8838,\"reflexsuperset\",8839,\"registered\",174,\"registersans\",63720,\"registerserif\",63194,\"reharabic\",1585,\"reharmenian\",1408,\"rehfinalarabic\",65198,\"rehiragana\",12428,\"rekatakana\",12524,\"rekatakanahalfwidth\",65434,\"resh\",1512,\"reshdageshhebrew\",64328,\"reshhebrew\",1512,\"reversedtilde\",8765,\"reviahebrew\",1431,\"reviamugrashhebrew\",1431,\"revlogicalnot\",8976,\"rfishhook\",638,\"rfishhookreversed\",639,\"rhabengali\",2525,\"rhadeva\",2397,\"rho\",961,\"rhook\",637,\"rhookturned\",635,\"rhookturnedsuperior\",693,\"rhosymbolgreek\",1009,\"rhotichookmod\",734,\"rieulacirclekorean\",12913,\"rieulaparenkorean\",12817,\"rieulcirclekorean\",12899,\"rieulhieuhkorean\",12608,\"rieulkiyeokkorean\",12602,\"rieulkiyeoksioskorean\",12649,\"rieulkorean\",12601,\"rieulmieumkorean\",12603,\"rieulpansioskorean\",12652,\"rieulparenkorean\",12803,\"rieulphieuphkorean\",12607,\"rieulpieupkorean\",12604,\"rieulpieupsioskorean\",12651,\"rieulsioskorean\",12605,\"rieulthieuthkorean\",12606,\"rieultikeutkorean\",12650,\"rieulyeorinhieuhkorean\",12653,\"rightangle\",8735,\"righttackbelowcmb\",793,\"righttriangle\",8895,\"rihiragana\",12426,\"rikatakana\",12522,\"rikatakanahalfwidth\",65432,\"ring\",730,\"ringbelowcmb\",805,\"ringcmb\",778,\"ringhalfleft\",703,\"ringhalfleftarmenian\",1369,\"ringhalfleftbelowcmb\",796,\"ringhalfleftcentered\",723,\"ringhalfright\",702,\"ringhalfrightbelowcmb\",825,\"ringhalfrightcentered\",722,\"rinvertedbreve\",531,\"rittorusquare\",13137,\"rlinebelow\",7775,\"rlongleg\",636,\"rlonglegturned\",634,\"rmonospace\",65362,\"rohiragana\",12429,\"rokatakana\",12525,\"rokatakanahalfwidth\",65435,\"roruathai\",3619,\"rparen\",9389,\"rrabengali\",2524,\"rradeva\",2353,\"rragurmukhi\",2652,\"rreharabic\",1681,\"rrehfinalarabic\",64397,\"rrvocalicbengali\",2528,\"rrvocalicdeva\",2400,\"rrvocalicgujarati\",2784,\"rrvocalicvowelsignbengali\",2500,\"rrvocalicvowelsigndeva\",2372,\"rrvocalicvowelsigngujarati\",2756,\"rsuperior\",63217,\"rtblock\",9616,\"rturned\",633,\"rturnedsuperior\",692,\"ruhiragana\",12427,\"rukatakana\",12523,\"rukatakanahalfwidth\",65433,\"rupeemarkbengali\",2546,\"rupeesignbengali\",2547,\"rupiah\",63197,\"ruthai\",3620,\"rvocalicbengali\",2443,\"rvocalicdeva\",2315,\"rvocalicgujarati\",2699,\"rvocalicvowelsignbengali\",2499,\"rvocalicvowelsigndeva\",2371,\"rvocalicvowelsigngujarati\",2755,\"s\",115,\"sabengali\",2488,\"sacute\",347,\"sacutedotaccent\",7781,\"sadarabic\",1589,\"sadeva\",2360,\"sadfinalarabic\",65210,\"sadinitialarabic\",65211,\"sadmedialarabic\",65212,\"sagujarati\",2744,\"sagurmukhi\",2616,\"sahiragana\",12373,\"sakatakana\",12469,\"sakatakanahalfwidth\",65403,\"sallallahoualayhewasallamarabic\",65018,\"samekh\",1505,\"samekhdagesh\",64321,\"samekhdageshhebrew\",64321,\"samekhhebrew\",1505,\"saraaathai\",3634,\"saraaethai\",3649,\"saraaimaimalaithai\",3652,\"saraaimaimuanthai\",3651,\"saraamthai\",3635,\"saraathai\",3632,\"saraethai\",3648,\"saraiileftthai\",63622,\"saraiithai\",3637,\"saraileftthai\",63621,\"saraithai\",3636,\"saraothai\",3650,\"saraueeleftthai\",63624,\"saraueethai\",3639,\"saraueleftthai\",63623,\"sarauethai\",3638,\"sarauthai\",3640,\"sarauuthai\",3641,\"sbopomofo\",12569,\"scaron\",353,\"scarondotaccent\",7783,\"scedilla\",351,\"schwa\",601,\"schwacyrillic\",1241,\"schwadieresiscyrillic\",1243,\"schwahook\",602,\"scircle\",9442,\"scircumflex\",349,\"scommaaccent\",537,\"sdotaccent\",7777,\"sdotbelow\",7779,\"sdotbelowdotaccent\",7785,\"seagullbelowcmb\",828,\"second\",8243,\"secondtonechinese\",714,\"section\",167,\"seenarabic\",1587,\"seenfinalarabic\",65202,\"seeninitialarabic\",65203,\"seenmedialarabic\",65204,\"segol\",1462,\"segol13\",1462,\"segol1f\",1462,\"segol2c\",1462,\"segolhebrew\",1462,\"segolnarrowhebrew\",1462,\"segolquarterhebrew\",1462,\"segoltahebrew\",1426,\"segolwidehebrew\",1462,\"seharmenian\",1405,\"sehiragana\",12379,\"sekatakana\",12475,\"sekatakanahalfwidth\",65406,\"semicolon\",59,\"semicolonarabic\",1563,\"semicolonmonospace\",65307,\"semicolonsmall\",65108,\"semivoicedmarkkana\",12444,\"semivoicedmarkkanahalfwidth\",65439,\"sentisquare\",13090,\"sentosquare\",13091,\"seven\",55,\"sevenarabic\",1639,\"sevenbengali\",2541,\"sevencircle\",9318,\"sevencircleinversesansserif\",10128,\"sevendeva\",2413,\"seveneighths\",8542,\"sevengujarati\",2797,\"sevengurmukhi\",2669,\"sevenhackarabic\",1639,\"sevenhangzhou\",12327,\"sevenideographicparen\",12838,\"seveninferior\",8327,\"sevenmonospace\",65303,\"sevenoldstyle\",63287,\"sevenparen\",9338,\"sevenperiod\",9358,\"sevenpersian\",1783,\"sevenroman\",8566,\"sevensuperior\",8311,\"seventeencircle\",9328,\"seventeenparen\",9348,\"seventeenperiod\",9368,\"seventhai\",3671,\"sfthyphen\",173,\"shaarmenian\",1399,\"shabengali\",2486,\"shacyrillic\",1096,\"shaddaarabic\",1617,\"shaddadammaarabic\",64609,\"shaddadammatanarabic\",64606,\"shaddafathaarabic\",64608,\"shaddakasraarabic\",64610,\"shaddakasratanarabic\",64607,\"shade\",9618,\"shadedark\",9619,\"shadelight\",9617,\"shademedium\",9618,\"shadeva\",2358,\"shagujarati\",2742,\"shagurmukhi\",2614,\"shalshelethebrew\",1427,\"shbopomofo\",12565,\"shchacyrillic\",1097,\"sheenarabic\",1588,\"sheenfinalarabic\",65206,\"sheeninitialarabic\",65207,\"sheenmedialarabic\",65208,\"sheicoptic\",995,\"sheqel\",8362,\"sheqelhebrew\",8362,\"sheva\",1456,\"sheva115\",1456,\"sheva15\",1456,\"sheva22\",1456,\"sheva2e\",1456,\"shevahebrew\",1456,\"shevanarrowhebrew\",1456,\"shevaquarterhebrew\",1456,\"shevawidehebrew\",1456,\"shhacyrillic\",1211,\"shimacoptic\",1005,\"shin\",1513,\"shindagesh\",64329,\"shindageshhebrew\",64329,\"shindageshshindot\",64300,\"shindageshshindothebrew\",64300,\"shindageshsindot\",64301,\"shindageshsindothebrew\",64301,\"shindothebrew\",1473,\"shinhebrew\",1513,\"shinshindot\",64298,\"shinshindothebrew\",64298,\"shinsindot\",64299,\"shinsindothebrew\",64299,\"shook\",642,\"sigma\",963,\"sigma1\",962,\"sigmafinal\",962,\"sigmalunatesymbolgreek\",1010,\"sihiragana\",12375,\"sikatakana\",12471,\"sikatakanahalfwidth\",65404,\"siluqhebrew\",1469,\"siluqlefthebrew\",1469,\"similar\",8764,\"sindothebrew\",1474,\"siosacirclekorean\",12916,\"siosaparenkorean\",12820,\"sioscieuckorean\",12670,\"sioscirclekorean\",12902,\"sioskiyeokkorean\",12666,\"sioskorean\",12613,\"siosnieunkorean\",12667,\"siosparenkorean\",12806,\"siospieupkorean\",12669,\"siostikeutkorean\",12668,\"six\",54,\"sixarabic\",1638,\"sixbengali\",2540,\"sixcircle\",9317,\"sixcircleinversesansserif\",10127,\"sixdeva\",2412,\"sixgujarati\",2796,\"sixgurmukhi\",2668,\"sixhackarabic\",1638,\"sixhangzhou\",12326,\"sixideographicparen\",12837,\"sixinferior\",8326,\"sixmonospace\",65302,\"sixoldstyle\",63286,\"sixparen\",9337,\"sixperiod\",9357,\"sixpersian\",1782,\"sixroman\",8565,\"sixsuperior\",8310,\"sixteencircle\",9327,\"sixteencurrencydenominatorbengali\",2553,\"sixteenparen\",9347,\"sixteenperiod\",9367,\"sixthai\",3670,\"slash\",47,\"slashmonospace\",65295,\"slong\",383,\"slongdotaccent\",7835,\"smileface\",9786,\"smonospace\",65363,\"sofpasuqhebrew\",1475,\"softhyphen\",173,\"softsigncyrillic\",1100,\"sohiragana\",12381,\"sokatakana\",12477,\"sokatakanahalfwidth\",65407,\"soliduslongoverlaycmb\",824,\"solidusshortoverlaycmb\",823,\"sorusithai\",3625,\"sosalathai\",3624,\"sosothai\",3595,\"sosuathai\",3626,\"space\",32,\"spacehackarabic\",32,\"spade\",9824,\"spadesuitblack\",9824,\"spadesuitwhite\",9828,\"sparen\",9390,\"squarebelowcmb\",827,\"squarecc\",13252,\"squarecm\",13213,\"squarediagonalcrosshatchfill\",9641,\"squarehorizontalfill\",9636,\"squarekg\",13199,\"squarekm\",13214,\"squarekmcapital\",13262,\"squareln\",13265,\"squarelog\",13266,\"squaremg\",13198,\"squaremil\",13269,\"squaremm\",13212,\"squaremsquared\",13217,\"squareorthogonalcrosshatchfill\",9638,\"squareupperlefttolowerrightfill\",9639,\"squareupperrighttolowerleftfill\",9640,\"squareverticalfill\",9637,\"squarewhitewithsmallblack\",9635,\"srsquare\",13275,\"ssabengali\",2487,\"ssadeva\",2359,\"ssagujarati\",2743,\"ssangcieuckorean\",12617,\"ssanghieuhkorean\",12677,\"ssangieungkorean\",12672,\"ssangkiyeokkorean\",12594,\"ssangnieunkorean\",12645,\"ssangpieupkorean\",12611,\"ssangsioskorean\",12614,\"ssangtikeutkorean\",12600,\"ssuperior\",63218,\"sterling\",163,\"sterlingmonospace\",65505,\"strokelongoverlaycmb\",822,\"strokeshortoverlaycmb\",821,\"subset\",8834,\"subsetnotequal\",8842,\"subsetorequal\",8838,\"succeeds\",8827,\"suchthat\",8715,\"suhiragana\",12377,\"sukatakana\",12473,\"sukatakanahalfwidth\",65405,\"sukunarabic\",1618,\"summation\",8721,\"sun\",9788,\"superset\",8835,\"supersetnotequal\",8843,\"supersetorequal\",8839,\"svsquare\",13276,\"syouwaerasquare\",13180,\"t\",116,\"tabengali\",2468,\"tackdown\",8868,\"tackleft\",8867,\"tadeva\",2340,\"tagujarati\",2724,\"tagurmukhi\",2596,\"taharabic\",1591,\"tahfinalarabic\",65218,\"tahinitialarabic\",65219,\"tahiragana\",12383,\"tahmedialarabic\",65220,\"taisyouerasquare\",13181,\"takatakana\",12479,\"takatakanahalfwidth\",65408,\"tatweelarabic\",1600,\"tau\",964,\"tav\",1514,\"tavdages\",64330,\"tavdagesh\",64330,\"tavdageshhebrew\",64330,\"tavhebrew\",1514,\"tbar\",359,\"tbopomofo\",12554,\"tcaron\",357,\"tccurl\",680,\"tcedilla\",355,\"tcheharabic\",1670,\"tchehfinalarabic\",64379,\"tchehinitialarabic\",64380,\"tchehmedialarabic\",64381,\"tcircle\",9443,\"tcircumflexbelow\",7793,\"tcommaaccent\",355,\"tdieresis\",7831,\"tdotaccent\",7787,\"tdotbelow\",7789,\"tecyrillic\",1090,\"tedescendercyrillic\",1197,\"teharabic\",1578,\"tehfinalarabic\",65174,\"tehhahinitialarabic\",64674,\"tehhahisolatedarabic\",64524,\"tehinitialarabic\",65175,\"tehiragana\",12390,\"tehjeeminitialarabic\",64673,\"tehjeemisolatedarabic\",64523,\"tehmarbutaarabic\",1577,\"tehmarbutafinalarabic\",65172,\"tehmedialarabic\",65176,\"tehmeeminitialarabic\",64676,\"tehmeemisolatedarabic\",64526,\"tehnoonfinalarabic\",64627,\"tekatakana\",12486,\"tekatakanahalfwidth\",65411,\"telephone\",8481,\"telephoneblack\",9742,\"telishagedolahebrew\",1440,\"telishaqetanahebrew\",1449,\"tencircle\",9321,\"tenideographicparen\",12841,\"tenparen\",9341,\"tenperiod\",9361,\"tenroman\",8569,\"tesh\",679,\"tet\",1496,\"tetdagesh\",64312,\"tetdageshhebrew\",64312,\"tethebrew\",1496,\"tetsecyrillic\",1205,\"tevirhebrew\",1435,\"tevirlefthebrew\",1435,\"thabengali\",2469,\"thadeva\",2341,\"thagujarati\",2725,\"thagurmukhi\",2597,\"thalarabic\",1584,\"thalfinalarabic\",65196,\"thanthakhatlowleftthai\",63640,\"thanthakhatlowrightthai\",63639,\"thanthakhatthai\",3660,\"thanthakhatupperleftthai\",63638,\"theharabic\",1579,\"thehfinalarabic\",65178,\"thehinitialarabic\",65179,\"thehmedialarabic\",65180,\"thereexists\",8707,\"therefore\",8756,\"theta\",952,\"theta1\",977,\"thetasymbolgreek\",977,\"thieuthacirclekorean\",12921,\"thieuthaparenkorean\",12825,\"thieuthcirclekorean\",12907,\"thieuthkorean\",12620,\"thieuthparenkorean\",12811,\"thirteencircle\",9324,\"thirteenparen\",9344,\"thirteenperiod\",9364,\"thonangmonthothai\",3601,\"thook\",429,\"thophuthaothai\",3602,\"thorn\",254,\"thothahanthai\",3607,\"thothanthai\",3600,\"thothongthai\",3608,\"thothungthai\",3606,\"thousandcyrillic\",1154,\"thousandsseparatorarabic\",1644,\"thousandsseparatorpersian\",1644,\"three\",51,\"threearabic\",1635,\"threebengali\",2537,\"threecircle\",9314,\"threecircleinversesansserif\",10124,\"threedeva\",2409,\"threeeighths\",8540,\"threegujarati\",2793,\"threegurmukhi\",2665,\"threehackarabic\",1635,\"threehangzhou\",12323,\"threeideographicparen\",12834,\"threeinferior\",8323,\"threemonospace\",65299,\"threenumeratorbengali\",2550,\"threeoldstyle\",63283,\"threeparen\",9334,\"threeperiod\",9354,\"threepersian\",1779,\"threequarters\",190,\"threequartersemdash\",63198,\"threeroman\",8562,\"threesuperior\",179,\"threethai\",3667,\"thzsquare\",13204,\"tihiragana\",12385,\"tikatakana\",12481,\"tikatakanahalfwidth\",65409,\"tikeutacirclekorean\",12912,\"tikeutaparenkorean\",12816,\"tikeutcirclekorean\",12898,\"tikeutkorean\",12599,\"tikeutparenkorean\",12802,\"tilde\",732,\"tildebelowcmb\",816,\"tildecmb\",771,\"tildecomb\",771,\"tildedoublecmb\",864,\"tildeoperator\",8764,\"tildeoverlaycmb\",820,\"tildeverticalcmb\",830,\"timescircle\",8855,\"tipehahebrew\",1430,\"tipehalefthebrew\",1430,\"tippigurmukhi\",2672,\"titlocyrilliccmb\",1155,\"tiwnarmenian\",1407,\"tlinebelow\",7791,\"tmonospace\",65364,\"toarmenian\",1385,\"tohiragana\",12392,\"tokatakana\",12488,\"tokatakanahalfwidth\",65412,\"tonebarextrahighmod\",741,\"tonebarextralowmod\",745,\"tonebarhighmod\",742,\"tonebarlowmod\",744,\"tonebarmidmod\",743,\"tonefive\",445,\"tonesix\",389,\"tonetwo\",424,\"tonos\",900,\"tonsquare\",13095,\"topatakthai\",3599,\"tortoiseshellbracketleft\",12308,\"tortoiseshellbracketleftsmall\",65117,\"tortoiseshellbracketleftvertical\",65081,\"tortoiseshellbracketright\",12309,\"tortoiseshellbracketrightsmall\",65118,\"tortoiseshellbracketrightvertical\",65082,\"totaothai\",3605,\"tpalatalhook\",427,\"tparen\",9391,\"trademark\",8482,\"trademarksans\",63722,\"trademarkserif\",63195,\"tretroflexhook\",648,\"triagdn\",9660,\"triaglf\",9668,\"triagrt\",9658,\"triagup\",9650,\"ts\",678,\"tsadi\",1510,\"tsadidagesh\",64326,\"tsadidageshhebrew\",64326,\"tsadihebrew\",1510,\"tsecyrillic\",1094,\"tsere\",1461,\"tsere12\",1461,\"tsere1e\",1461,\"tsere2b\",1461,\"tserehebrew\",1461,\"tserenarrowhebrew\",1461,\"tserequarterhebrew\",1461,\"tserewidehebrew\",1461,\"tshecyrillic\",1115,\"tsuperior\",63219,\"ttabengali\",2463,\"ttadeva\",2335,\"ttagujarati\",2719,\"ttagurmukhi\",2591,\"tteharabic\",1657,\"ttehfinalarabic\",64359,\"ttehinitialarabic\",64360,\"ttehmedialarabic\",64361,\"tthabengali\",2464,\"tthadeva\",2336,\"tthagujarati\",2720,\"tthagurmukhi\",2592,\"tturned\",647,\"tuhiragana\",12388,\"tukatakana\",12484,\"tukatakanahalfwidth\",65410,\"tusmallhiragana\",12387,\"tusmallkatakana\",12483,\"tusmallkatakanahalfwidth\",65391,\"twelvecircle\",9323,\"twelveparen\",9343,\"twelveperiod\",9363,\"twelveroman\",8571,\"twentycircle\",9331,\"twentyhangzhou\",21316,\"twentyparen\",9351,\"twentyperiod\",9371,\"two\",50,\"twoarabic\",1634,\"twobengali\",2536,\"twocircle\",9313,\"twocircleinversesansserif\",10123,\"twodeva\",2408,\"twodotenleader\",8229,\"twodotleader\",8229,\"twodotleadervertical\",65072,\"twogujarati\",2792,\"twogurmukhi\",2664,\"twohackarabic\",1634,\"twohangzhou\",12322,\"twoideographicparen\",12833,\"twoinferior\",8322,\"twomonospace\",65298,\"twonumeratorbengali\",2549,\"twooldstyle\",63282,\"twoparen\",9333,\"twoperiod\",9353,\"twopersian\",1778,\"tworoman\",8561,\"twostroke\",443,\"twosuperior\",178,\"twothai\",3666,\"twothirds\",8532,\"u\",117,\"uacute\",250,\"ubar\",649,\"ubengali\",2441,\"ubopomofo\",12584,\"ubreve\",365,\"ucaron\",468,\"ucircle\",9444,\"ucircumflex\",251,\"ucircumflexbelow\",7799,\"ucyrillic\",1091,\"udattadeva\",2385,\"udblacute\",369,\"udblgrave\",533,\"udeva\",2313,\"udieresis\",252,\"udieresisacute\",472,\"udieresisbelow\",7795,\"udieresiscaron\",474,\"udieresiscyrillic\",1265,\"udieresisgrave\",476,\"udieresismacron\",470,\"udotbelow\",7909,\"ugrave\",249,\"ugujarati\",2697,\"ugurmukhi\",2569,\"uhiragana\",12358,\"uhookabove\",7911,\"uhorn\",432,\"uhornacute\",7913,\"uhorndotbelow\",7921,\"uhorngrave\",7915,\"uhornhookabove\",7917,\"uhorntilde\",7919,\"uhungarumlaut\",369,\"uhungarumlautcyrillic\",1267,\"uinvertedbreve\",535,\"ukatakana\",12454,\"ukatakanahalfwidth\",65395,\"ukcyrillic\",1145,\"ukorean\",12636,\"umacron\",363,\"umacroncyrillic\",1263,\"umacrondieresis\",7803,\"umatragurmukhi\",2625,\"umonospace\",65365,\"underscore\",95,\"underscoredbl\",8215,\"underscoremonospace\",65343,\"underscorevertical\",65075,\"underscorewavy\",65103,\"union\",8746,\"universal\",8704,\"uogonek\",371,\"uparen\",9392,\"upblock\",9600,\"upperdothebrew\",1476,\"upsilon\",965,\"upsilondieresis\",971,\"upsilondieresistonos\",944,\"upsilonlatin\",650,\"upsilontonos\",973,\"uptackbelowcmb\",797,\"uptackmod\",724,\"uragurmukhi\",2675,\"uring\",367,\"ushortcyrillic\",1118,\"usmallhiragana\",12357,\"usmallkatakana\",12453,\"usmallkatakanahalfwidth\",65385,\"ustraightcyrillic\",1199,\"ustraightstrokecyrillic\",1201,\"utilde\",361,\"utildeacute\",7801,\"utildebelow\",7797,\"uubengali\",2442,\"uudeva\",2314,\"uugujarati\",2698,\"uugurmukhi\",2570,\"uumatragurmukhi\",2626,\"uuvowelsignbengali\",2498,\"uuvowelsigndeva\",2370,\"uuvowelsigngujarati\",2754,\"uvowelsignbengali\",2497,\"uvowelsigndeva\",2369,\"uvowelsigngujarati\",2753,\"v\",118,\"vadeva\",2357,\"vagujarati\",2741,\"vagurmukhi\",2613,\"vakatakana\",12535,\"vav\",1493,\"vavdagesh\",64309,\"vavdagesh65\",64309,\"vavdageshhebrew\",64309,\"vavhebrew\",1493,\"vavholam\",64331,\"vavholamhebrew\",64331,\"vavvavhebrew\",1520,\"vavyodhebrew\",1521,\"vcircle\",9445,\"vdotbelow\",7807,\"vecyrillic\",1074,\"veharabic\",1700,\"vehfinalarabic\",64363,\"vehinitialarabic\",64364,\"vehmedialarabic\",64365,\"vekatakana\",12537,\"venus\",9792,\"verticalbar\",124,\"verticallineabovecmb\",781,\"verticallinebelowcmb\",809,\"verticallinelowmod\",716,\"verticallinemod\",712,\"vewarmenian\",1406,\"vhook\",651,\"vikatakana\",12536,\"viramabengali\",2509,\"viramadeva\",2381,\"viramagujarati\",2765,\"visargabengali\",2435,\"visargadeva\",2307,\"visargagujarati\",2691,\"vmonospace\",65366,\"voarmenian\",1400,\"voicediterationhiragana\",12446,\"voicediterationkatakana\",12542,\"voicedmarkkana\",12443,\"voicedmarkkanahalfwidth\",65438,\"vokatakana\",12538,\"vparen\",9393,\"vtilde\",7805,\"vturned\",652,\"vuhiragana\",12436,\"vukatakana\",12532,\"w\",119,\"wacute\",7811,\"waekorean\",12633,\"wahiragana\",12431,\"wakatakana\",12527,\"wakatakanahalfwidth\",65436,\"wakorean\",12632,\"wasmallhiragana\",12430,\"wasmallkatakana\",12526,\"wattosquare\",13143,\"wavedash\",12316,\"wavyunderscorevertical\",65076,\"wawarabic\",1608,\"wawfinalarabic\",65262,\"wawhamzaabovearabic\",1572,\"wawhamzaabovefinalarabic\",65158,\"wbsquare\",13277,\"wcircle\",9446,\"wcircumflex\",373,\"wdieresis\",7813,\"wdotaccent\",7815,\"wdotbelow\",7817,\"wehiragana\",12433,\"weierstrass\",8472,\"wekatakana\",12529,\"wekorean\",12638,\"weokorean\",12637,\"wgrave\",7809,\"whitebullet\",9702,\"whitecircle\",9675,\"whitecircleinverse\",9689,\"whitecornerbracketleft\",12302,\"whitecornerbracketleftvertical\",65091,\"whitecornerbracketright\",12303,\"whitecornerbracketrightvertical\",65092,\"whitediamond\",9671,\"whitediamondcontainingblacksmalldiamond\",9672,\"whitedownpointingsmalltriangle\",9663,\"whitedownpointingtriangle\",9661,\"whiteleftpointingsmalltriangle\",9667,\"whiteleftpointingtriangle\",9665,\"whitelenticularbracketleft\",12310,\"whitelenticularbracketright\",12311,\"whiterightpointingsmalltriangle\",9657,\"whiterightpointingtriangle\",9655,\"whitesmallsquare\",9643,\"whitesmilingface\",9786,\"whitesquare\",9633,\"whitestar\",9734,\"whitetelephone\",9743,\"whitetortoiseshellbracketleft\",12312,\"whitetortoiseshellbracketright\",12313,\"whiteuppointingsmalltriangle\",9653,\"whiteuppointingtriangle\",9651,\"wihiragana\",12432,\"wikatakana\",12528,\"wikorean\",12639,\"wmonospace\",65367,\"wohiragana\",12434,\"wokatakana\",12530,\"wokatakanahalfwidth\",65382,\"won\",8361,\"wonmonospace\",65510,\"wowaenthai\",3623,\"wparen\",9394,\"wring\",7832,\"wsuperior\",695,\"wturned\",653,\"wynn\",447,\"x\",120,\"xabovecmb\",829,\"xbopomofo\",12562,\"xcircle\",9447,\"xdieresis\",7821,\"xdotaccent\",7819,\"xeharmenian\",1389,\"xi\",958,\"xmonospace\",65368,\"xparen\",9395,\"xsuperior\",739,\"y\",121,\"yaadosquare\",13134,\"yabengali\",2479,\"yacute\",253,\"yadeva\",2351,\"yaekorean\",12626,\"yagujarati\",2735,\"yagurmukhi\",2607,\"yahiragana\",12420,\"yakatakana\",12516,\"yakatakanahalfwidth\",65428,\"yakorean\",12625,\"yamakkanthai\",3662,\"yasmallhiragana\",12419,\"yasmallkatakana\",12515,\"yasmallkatakanahalfwidth\",65388,\"yatcyrillic\",1123,\"ycircle\",9448,\"ycircumflex\",375,\"ydieresis\",255,\"ydotaccent\",7823,\"ydotbelow\",7925,\"yeharabic\",1610,\"yehbarreearabic\",1746,\"yehbarreefinalarabic\",64431,\"yehfinalarabic\",65266,\"yehhamzaabovearabic\",1574,\"yehhamzaabovefinalarabic\",65162,\"yehhamzaaboveinitialarabic\",65163,\"yehhamzaabovemedialarabic\",65164,\"yehinitialarabic\",65267,\"yehmedialarabic\",65268,\"yehmeeminitialarabic\",64733,\"yehmeemisolatedarabic\",64600,\"yehnoonfinalarabic\",64660,\"yehthreedotsbelowarabic\",1745,\"yekorean\",12630,\"yen\",165,\"yenmonospace\",65509,\"yeokorean\",12629,\"yeorinhieuhkorean\",12678,\"yerahbenyomohebrew\",1450,\"yerahbenyomolefthebrew\",1450,\"yericyrillic\",1099,\"yerudieresiscyrillic\",1273,\"yesieungkorean\",12673,\"yesieungpansioskorean\",12675,\"yesieungsioskorean\",12674,\"yetivhebrew\",1434,\"ygrave\",7923,\"yhook\",436,\"yhookabove\",7927,\"yiarmenian\",1397,\"yicyrillic\",1111,\"yikorean\",12642,\"yinyang\",9775,\"yiwnarmenian\",1410,\"ymonospace\",65369,\"yod\",1497,\"yoddagesh\",64313,\"yoddageshhebrew\",64313,\"yodhebrew\",1497,\"yodyodhebrew\",1522,\"yodyodpatahhebrew\",64287,\"yohiragana\",12424,\"yoikorean\",12681,\"yokatakana\",12520,\"yokatakanahalfwidth\",65430,\"yokorean\",12635,\"yosmallhiragana\",12423,\"yosmallkatakana\",12519,\"yosmallkatakanahalfwidth\",65390,\"yotgreek\",1011,\"yoyaekorean\",12680,\"yoyakorean\",12679,\"yoyakthai\",3618,\"yoyingthai\",3597,\"yparen\",9396,\"ypogegrammeni\",890,\"ypogegrammenigreekcmb\",837,\"yr\",422,\"yring\",7833,\"ysuperior\",696,\"ytilde\",7929,\"yturned\",654,\"yuhiragana\",12422,\"yuikorean\",12684,\"yukatakana\",12518,\"yukatakanahalfwidth\",65429,\"yukorean\",12640,\"yusbigcyrillic\",1131,\"yusbigiotifiedcyrillic\",1133,\"yuslittlecyrillic\",1127,\"yuslittleiotifiedcyrillic\",1129,\"yusmallhiragana\",12421,\"yusmallkatakana\",12517,\"yusmallkatakanahalfwidth\",65389,\"yuyekorean\",12683,\"yuyeokorean\",12682,\"yyabengali\",2527,\"yyadeva\",2399,\"z\",122,\"zaarmenian\",1382,\"zacute\",378,\"zadeva\",2395,\"zagurmukhi\",2651,\"zaharabic\",1592,\"zahfinalarabic\",65222,\"zahinitialarabic\",65223,\"zahiragana\",12374,\"zahmedialarabic\",65224,\"zainarabic\",1586,\"zainfinalarabic\",65200,\"zakatakana\",12470,\"zaqefgadolhebrew\",1429,\"zaqefqatanhebrew\",1428,\"zarqahebrew\",1432,\"zayin\",1494,\"zayindagesh\",64310,\"zayindageshhebrew\",64310,\"zayinhebrew\",1494,\"zbopomofo\",12567,\"zcaron\",382,\"zcircle\",9449,\"zcircumflex\",7825,\"zcurl\",657,\"zdot\",380,\"zdotaccent\",380,\"zdotbelow\",7827,\"zecyrillic\",1079,\"zedescendercyrillic\",1177,\"zedieresiscyrillic\",1247,\"zehiragana\",12380,\"zekatakana\",12476,\"zero\",48,\"zeroarabic\",1632,\"zerobengali\",2534,\"zerodeva\",2406,\"zerogujarati\",2790,\"zerogurmukhi\",2662,\"zerohackarabic\",1632,\"zeroinferior\",8320,\"zeromonospace\",65296,\"zerooldstyle\",63280,\"zeropersian\",1776,\"zerosuperior\",8304,\"zerothai\",3664,\"zerowidthjoiner\",65279,\"zerowidthnonjoiner\",8204,\"zerowidthspace\",8203,\"zeta\",950,\"zhbopomofo\",12563,\"zhearmenian\",1386,\"zhebrevecyrillic\",1218,\"zhecyrillic\",1078,\"zhedescendercyrillic\",1175,\"zhedieresiscyrillic\",1245,\"zihiragana\",12376,\"zikatakana\",12472,\"zinorhebrew\",1454,\"zlinebelow\",7829,\"zmonospace\",65370,\"zohiragana\",12382,\"zokatakana\",12478,\"zparen\",9397,\"zretroflexhook\",656,\"zstroke\",438,\"zuhiragana\",12378,\"zukatakana\",12474,\".notdef\",0,\"angbracketleftbig\",9001,\"angbracketleftBig\",9001,\"angbracketleftbigg\",9001,\"angbracketleftBigg\",9001,\"angbracketrightBig\",9002,\"angbracketrightbig\",9002,\"angbracketrightBigg\",9002,\"angbracketrightbigg\",9002,\"arrowhookleft\",8618,\"arrowhookright\",8617,\"arrowlefttophalf\",8636,\"arrowleftbothalf\",8637,\"arrownortheast\",8599,\"arrownorthwest\",8598,\"arrowrighttophalf\",8640,\"arrowrightbothalf\",8641,\"arrowsoutheast\",8600,\"arrowsouthwest\",8601,\"backslashbig\",8726,\"backslashBig\",8726,\"backslashBigg\",8726,\"backslashbigg\",8726,\"bardbl\",8214,\"bracehtipdownleft\",65079,\"bracehtipdownright\",65079,\"bracehtipupleft\",65080,\"bracehtipupright\",65080,\"braceleftBig\",123,\"braceleftbig\",123,\"braceleftbigg\",123,\"braceleftBigg\",123,\"bracerightBig\",125,\"bracerightbig\",125,\"bracerightbigg\",125,\"bracerightBigg\",125,\"bracketleftbig\",91,\"bracketleftBig\",91,\"bracketleftbigg\",91,\"bracketleftBigg\",91,\"bracketrightBig\",93,\"bracketrightbig\",93,\"bracketrightbigg\",93,\"bracketrightBigg\",93,\"ceilingleftbig\",8968,\"ceilingleftBig\",8968,\"ceilingleftBigg\",8968,\"ceilingleftbigg\",8968,\"ceilingrightbig\",8969,\"ceilingrightBig\",8969,\"ceilingrightbigg\",8969,\"ceilingrightBigg\",8969,\"circledotdisplay\",8857,\"circledottext\",8857,\"circlemultiplydisplay\",8855,\"circlemultiplytext\",8855,\"circleplusdisplay\",8853,\"circleplustext\",8853,\"contintegraldisplay\",8750,\"contintegraltext\",8750,\"coproductdisplay\",8720,\"coproducttext\",8720,\"floorleftBig\",8970,\"floorleftbig\",8970,\"floorleftbigg\",8970,\"floorleftBigg\",8970,\"floorrightbig\",8971,\"floorrightBig\",8971,\"floorrightBigg\",8971,\"floorrightbigg\",8971,\"hatwide\",770,\"hatwider\",770,\"hatwidest\",770,\"intercal\",7488,\"integraldisplay\",8747,\"integraltext\",8747,\"intersectiondisplay\",8898,\"intersectiontext\",8898,\"logicalanddisplay\",8743,\"logicalandtext\",8743,\"logicalordisplay\",8744,\"logicalortext\",8744,\"parenleftBig\",40,\"parenleftbig\",40,\"parenleftBigg\",40,\"parenleftbigg\",40,\"parenrightBig\",41,\"parenrightbig\",41,\"parenrightBigg\",41,\"parenrightbigg\",41,\"prime\",8242,\"productdisplay\",8719,\"producttext\",8719,\"radicalbig\",8730,\"radicalBig\",8730,\"radicalBigg\",8730,\"radicalbigg\",8730,\"radicalbt\",8730,\"radicaltp\",8730,\"radicalvertex\",8730,\"slashbig\",47,\"slashBig\",47,\"slashBigg\",47,\"slashbigg\",47,\"summationdisplay\",8721,\"summationtext\",8721,\"tildewide\",732,\"tildewider\",732,\"tildewidest\",732,\"uniondisplay\",8899,\"unionmultidisplay\",8846,\"unionmultitext\",8846,\"unionsqdisplay\",8852,\"unionsqtext\",8852,\"uniontext\",8899,\"vextenddouble\",8741,\"vextendsingle\",8739];}),i=(0,a.getArrayLookupTableFactory)(function(){return[\"space\",32,\"a1\",9985,\"a2\",9986,\"a202\",9987,\"a3\",9988,\"a4\",9742,\"a5\",9990,\"a119\",9991,\"a118\",9992,\"a117\",9993,\"a11\",9755,\"a12\",9758,\"a13\",9996,\"a14\",9997,\"a15\",9998,\"a16\",9999,\"a105\",1e4,\"a17\",10001,\"a18\",10002,\"a19\",10003,\"a20\",10004,\"a21\",10005,\"a22\",10006,\"a23\",10007,\"a24\",10008,\"a25\",10009,\"a26\",10010,\"a27\",10011,\"a28\",10012,\"a6\",10013,\"a7\",10014,\"a8\",10015,\"a9\",10016,\"a10\",10017,\"a29\",10018,\"a30\",10019,\"a31\",10020,\"a32\",10021,\"a33\",10022,\"a34\",10023,\"a35\",9733,\"a36\",10025,\"a37\",10026,\"a38\",10027,\"a39\",10028,\"a40\",10029,\"a41\",10030,\"a42\",10031,\"a43\",10032,\"a44\",10033,\"a45\",10034,\"a46\",10035,\"a47\",10036,\"a48\",10037,\"a49\",10038,\"a50\",10039,\"a51\",10040,\"a52\",10041,\"a53\",10042,\"a54\",10043,\"a55\",10044,\"a56\",10045,\"a57\",10046,\"a58\",10047,\"a59\",10048,\"a60\",10049,\"a61\",10050,\"a62\",10051,\"a63\",10052,\"a64\",10053,\"a65\",10054,\"a66\",10055,\"a67\",10056,\"a68\",10057,\"a69\",10058,\"a70\",10059,\"a71\",9679,\"a72\",10061,\"a73\",9632,\"a74\",10063,\"a203\",10064,\"a75\",10065,\"a204\",10066,\"a76\",9650,\"a77\",9660,\"a78\",9670,\"a79\",10070,\"a81\",9687,\"a82\",10072,\"a83\",10073,\"a84\",10074,\"a97\",10075,\"a98\",10076,\"a99\",10077,\"a100\",10078,\"a101\",10081,\"a102\",10082,\"a103\",10083,\"a104\",10084,\"a106\",10085,\"a107\",10086,\"a108\",10087,\"a112\",9827,\"a111\",9830,\"a110\",9829,\"a109\",9824,\"a120\",9312,\"a121\",9313,\"a122\",9314,\"a123\",9315,\"a124\",9316,\"a125\",9317,\"a126\",9318,\"a127\",9319,\"a128\",9320,\"a129\",9321,\"a130\",10102,\"a131\",10103,\"a132\",10104,\"a133\",10105,\"a134\",10106,\"a135\",10107,\"a136\",10108,\"a137\",10109,\"a138\",10110,\"a139\",10111,\"a140\",10112,\"a141\",10113,\"a142\",10114,\"a143\",10115,\"a144\",10116,\"a145\",10117,\"a146\",10118,\"a147\",10119,\"a148\",10120,\"a149\",10121,\"a150\",10122,\"a151\",10123,\"a152\",10124,\"a153\",10125,\"a154\",10126,\"a155\",10127,\"a156\",10128,\"a157\",10129,\"a158\",10130,\"a159\",10131,\"a160\",10132,\"a161\",8594,\"a163\",8596,\"a164\",8597,\"a196\",10136,\"a165\",10137,\"a192\",10138,\"a166\",10139,\"a167\",10140,\"a168\",10141,\"a169\",10142,\"a170\",10143,\"a171\",10144,\"a172\",10145,\"a173\",10146,\"a162\",10147,\"a174\",10148,\"a175\",10149,\"a176\",10150,\"a177\",10151,\"a178\",10152,\"a179\",10153,\"a193\",10154,\"a180\",10155,\"a199\",10156,\"a181\",10157,\"a200\",10158,\"a182\",10159,\"a201\",10161,\"a183\",10162,\"a184\",10163,\"a197\",10164,\"a185\",10165,\"a194\",10166,\"a198\",10167,\"a186\",10168,\"a195\",10169,\"a187\",10170,\"a188\",10171,\"a189\",10172,\"a190\",10173,\"a191\",10174,\"a89\",10088,\"a90\",10089,\"a93\",10090,\"a94\",10091,\"a91\",10092,\"a92\",10093,\"a205\",10094,\"a85\",10095,\"a206\",10096,\"a86\",10097,\"a87\",10098,\"a88\",10099,\"a95\",10100,\"a96\",10101,\".notdef\",0];});},function(e,t,r){\"use strict\";r.r(t);r.d(t,{clearUnicodeCaches:function clearUnicodeCaches(){return _clearUnicodeCaches;},getCharUnicodeCategory:function getCharUnicodeCategory(){return _getCharUnicodeCategory;},getNormalizedUnicodes:function getNormalizedUnicodes(){return s;},getUnicodeForGlyph:function getUnicodeForGlyph(){return _getUnicodeForGlyph;},getUnicodeRangeFor:function getUnicodeRangeFor(){return _getUnicodeRangeFor;},mapSpecialUnicodeValues:function mapSpecialUnicodeValues(){return _mapSpecialUnicodeValues;},reverseIfRtl:function reverseIfRtl(){return _reverseIfRtl;}});var a=r(131);var n=(0,a.getLookupTableFactory)(function(e){e[63721]=169;e[63193]=169;e[63720]=174;e[63194]=174;e[63722]=8482;e[63195]=8482;e[63729]=9127;e[63730]=9128;e[63731]=9129;e[63740]=9131;e[63741]=9132;e[63742]=9133;e[63726]=9121;e[63727]=9122;e[63728]=9123;e[63737]=9124;e[63738]=9125;e[63739]=9126;e[63723]=9115;e[63724]=9116;e[63725]=9117;e[63734]=9118;e[63735]=9119;e[63736]=9120;});function _mapSpecialUnicodeValues(e){return e>=65520&&e<=65535?0:e>=62976&&e<=63743?n()[e]||e:173===e?45:e;}function _getUnicodeForGlyph(e,t){var r=t[e];if(void 0!==r)return r;if(!e)return-1;if(\"u\"===e[0]){var _t257=e.length;var _a169;if(7===_t257&&\"n\"===e[1]&&\"i\"===e[2])_a169=e.substring(3);else{if(!(_t257>=5&&_t257<=7))return-1;_a169=e.substring(1);}if(_a169===_a169.toUpperCase()){r=_parseInt(_a169,16);if(r>=0)return r;}}return-1;}var i=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];function _getUnicodeRangeFor(e){for(var _t258=0,_r216=i.length;_t258<_r216;_t258++){var _r217=i[_t258];if(e>=_r217.begin&&e<_r217.end)return _t258;}return-1;}var s=(0,a.getArrayLookupTableFactory)(function(){return[\"¨\",\" ̈\",\"¯\",\" ̄\",\"´\",\" ́\",\"µ\",\"μ\",\"¸\",\" ̧\",\"Ĳ\",\"IJ\",\"ĳ\",\"ij\",\"Ŀ\",\"L·\",\"ŀ\",\"l·\",\"ŉ\",\"ʼn\",\"ſ\",\"s\",\"Ǆ\",\"DŽ\",\"ǅ\",\"Dž\",\"ǆ\",\"dž\",\"Ǉ\",\"LJ\",\"ǈ\",\"Lj\",\"ǉ\",\"lj\",\"Ǌ\",\"NJ\",\"ǋ\",\"Nj\",\"ǌ\",\"nj\",\"Ǳ\",\"DZ\",\"ǲ\",\"Dz\",\"ǳ\",\"dz\",\"˘\",\" ̆\",\"˙\",\" ̇\",\"˚\",\" ̊\",\"˛\",\" ̨\",\"˜\",\" ̃\",\"˝\",\" ̋\",\"ͺ\",\" ͅ\",\"΄\",\" ́\",\"ϐ\",\"β\",\"ϑ\",\"θ\",\"ϒ\",\"Υ\",\"ϕ\",\"φ\",\"ϖ\",\"π\",\"ϰ\",\"κ\",\"ϱ\",\"ρ\",\"ϲ\",\"ς\",\"ϴ\",\"Θ\",\"ϵ\",\"ε\",\"Ϲ\",\"Σ\",\"և\",\"եւ\",\"ٵ\",\"اٴ\",\"ٶ\",\"وٴ\",\"ٷ\",\"ۇٴ\",\"ٸ\",\"يٴ\",\"ำ\",\"ํา\",\"ຳ\",\"ໍາ\",\"ໜ\",\"ຫນ\",\"ໝ\",\"ຫມ\",\"ཷ\",\"ྲཱྀ\",\"ཹ\",\"ླཱྀ\",\"ẚ\",\"aʾ\",\"᾽\",\" ̓\",\"᾿\",\" ̓\",\"῀\",\" ͂\",\"῾\",\" ̔\",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\"‗\",\" ̳\",\"․\",\".\",\"‥\",\"..\",\"…\",\"...\",\"″\",\"′′\",\"‴\",\"′′′\",\"‶\",\"‵‵\",\"‷\",\"‵‵‵\",\"‼\",\"!!\",\"‾\",\" ̅\",\"⁇\",\"??\",\"⁈\",\"?!\",\"⁉\",\"!?\",\"⁗\",\"′′′′\",\" \",\" \",\"₨\",\"Rs\",\"℀\",\"a/c\",\"℁\",\"a/s\",\"℃\",\"°C\",\"℅\",\"c/o\",\"℆\",\"c/u\",\"ℇ\",\"Ɛ\",\"℉\",\"°F\",\"№\",\"No\",\"℡\",\"TEL\",\"ℵ\",\"א\",\"ℶ\",\"ב\",\"ℷ\",\"ג\",\"ℸ\",\"ד\",\"℻\",\"FAX\",\"Ⅰ\",\"I\",\"Ⅱ\",\"II\",\"Ⅲ\",\"III\",\"Ⅳ\",\"IV\",\"Ⅴ\",\"V\",\"Ⅵ\",\"VI\",\"Ⅶ\",\"VII\",\"Ⅷ\",\"VIII\",\"Ⅸ\",\"IX\",\"Ⅹ\",\"X\",\"Ⅺ\",\"XI\",\"Ⅻ\",\"XII\",\"Ⅼ\",\"L\",\"Ⅽ\",\"C\",\"Ⅾ\",\"D\",\"Ⅿ\",\"M\",\"ⅰ\",\"i\",\"ⅱ\",\"ii\",\"ⅲ\",\"iii\",\"ⅳ\",\"iv\",\"ⅴ\",\"v\",\"ⅵ\",\"vi\",\"ⅶ\",\"vii\",\"ⅷ\",\"viii\",\"ⅸ\",\"ix\",\"ⅹ\",\"x\",\"ⅺ\",\"xi\",\"ⅻ\",\"xii\",\"ⅼ\",\"l\",\"ⅽ\",\"c\",\"ⅾ\",\"d\",\"ⅿ\",\"m\",\"∬\",\"∫∫\",\"∭\",\"∫∫∫\",\"∯\",\"∮∮\",\"∰\",\"∮∮∮\",\"⑴\",\"(1)\",\"⑵\",\"(2)\",\"⑶\",\"(3)\",\"⑷\",\"(4)\",\"⑸\",\"(5)\",\"⑹\",\"(6)\",\"⑺\",\"(7)\",\"⑻\",\"(8)\",\"⑼\",\"(9)\",\"⑽\",\"(10)\",\"⑾\",\"(11)\",\"⑿\",\"(12)\",\"⒀\",\"(13)\",\"⒁\",\"(14)\",\"⒂\",\"(15)\",\"⒃\",\"(16)\",\"⒄\",\"(17)\",\"⒅\",\"(18)\",\"⒆\",\"(19)\",\"⒇\",\"(20)\",\"⒈\",\"1.\",\"⒉\",\"2.\",\"⒊\",\"3.\",\"⒋\",\"4.\",\"⒌\",\"5.\",\"⒍\",\"6.\",\"⒎\",\"7.\",\"⒏\",\"8.\",\"⒐\",\"9.\",\"⒑\",\"10.\",\"⒒\",\"11.\",\"⒓\",\"12.\",\"⒔\",\"13.\",\"⒕\",\"14.\",\"⒖\",\"15.\",\"⒗\",\"16.\",\"⒘\",\"17.\",\"⒙\",\"18.\",\"⒚\",\"19.\",\"⒛\",\"20.\",\"⒜\",\"(a)\",\"⒝\",\"(b)\",\"⒞\",\"(c)\",\"⒟\",\"(d)\",\"⒠\",\"(e)\",\"⒡\",\"(f)\",\"⒢\",\"(g)\",\"⒣\",\"(h)\",\"⒤\",\"(i)\",\"⒥\",\"(j)\",\"⒦\",\"(k)\",\"⒧\",\"(l)\",\"⒨\",\"(m)\",\"⒩\",\"(n)\",\"⒪\",\"(o)\",\"⒫\",\"(p)\",\"⒬\",\"(q)\",\"⒭\",\"(r)\",\"⒮\",\"(s)\",\"⒯\",\"(t)\",\"⒰\",\"(u)\",\"⒱\",\"(v)\",\"⒲\",\"(w)\",\"⒳\",\"(x)\",\"⒴\",\"(y)\",\"⒵\",\"(z)\",\"⨌\",\"∫∫∫∫\",\"⩴\",\"::=\",\"⩵\",\"==\",\"⩶\",\"===\",\"⺟\",\"母\",\"⻳\",\"龟\",\"⼀\",\"一\",\"⼁\",\"丨\",\"⼂\",\"丶\",\"⼃\",\"丿\",\"⼄\",\"乙\",\"⼅\",\"亅\",\"⼆\",\"二\",\"⼇\",\"亠\",\"⼈\",\"人\",\"⼉\",\"儿\",\"⼊\",\"入\",\"⼋\",\"八\",\"⼌\",\"冂\",\"⼍\",\"冖\",\"⼎\",\"冫\",\"⼏\",\"几\",\"⼐\",\"凵\",\"⼑\",\"刀\",\"⼒\",\"力\",\"⼓\",\"勹\",\"⼔\",\"匕\",\"⼕\",\"匚\",\"⼖\",\"匸\",\"⼗\",\"十\",\"⼘\",\"卜\",\"⼙\",\"卩\",\"⼚\",\"厂\",\"⼛\",\"厶\",\"⼜\",\"又\",\"⼝\",\"口\",\"⼞\",\"囗\",\"⼟\",\"土\",\"⼠\",\"士\",\"⼡\",\"夂\",\"⼢\",\"夊\",\"⼣\",\"夕\",\"⼤\",\"大\",\"⼥\",\"女\",\"⼦\",\"子\",\"⼧\",\"宀\",\"⼨\",\"寸\",\"⼩\",\"小\",\"⼪\",\"尢\",\"⼫\",\"尸\",\"⼬\",\"屮\",\"⼭\",\"山\",\"⼮\",\"巛\",\"⼯\",\"工\",\"⼰\",\"己\",\"⼱\",\"巾\",\"⼲\",\"干\",\"⼳\",\"幺\",\"⼴\",\"广\",\"⼵\",\"廴\",\"⼶\",\"廾\",\"⼷\",\"弋\",\"⼸\",\"弓\",\"⼹\",\"彐\",\"⼺\",\"彡\",\"⼻\",\"彳\",\"⼼\",\"心\",\"⼽\",\"戈\",\"⼾\",\"戶\",\"⼿\",\"手\",\"⽀\",\"支\",\"⽁\",\"攴\",\"⽂\",\"文\",\"⽃\",\"斗\",\"⽄\",\"斤\",\"⽅\",\"方\",\"⽆\",\"无\",\"⽇\",\"日\",\"⽈\",\"曰\",\"⽉\",\"月\",\"⽊\",\"木\",\"⽋\",\"欠\",\"⽌\",\"止\",\"⽍\",\"歹\",\"⽎\",\"殳\",\"⽏\",\"毋\",\"⽐\",\"比\",\"⽑\",\"毛\",\"⽒\",\"氏\",\"⽓\",\"气\",\"⽔\",\"水\",\"⽕\",\"火\",\"⽖\",\"爪\",\"⽗\",\"父\",\"⽘\",\"爻\",\"⽙\",\"爿\",\"⽚\",\"片\",\"⽛\",\"牙\",\"⽜\",\"牛\",\"⽝\",\"犬\",\"⽞\",\"玄\",\"⽟\",\"玉\",\"⽠\",\"瓜\",\"⽡\",\"瓦\",\"⽢\",\"甘\",\"⽣\",\"生\",\"⽤\",\"用\",\"⽥\",\"田\",\"⽦\",\"疋\",\"⽧\",\"疒\",\"⽨\",\"癶\",\"⽩\",\"白\",\"⽪\",\"皮\",\"⽫\",\"皿\",\"⽬\",\"目\",\"⽭\",\"矛\",\"⽮\",\"矢\",\"⽯\",\"石\",\"⽰\",\"示\",\"⽱\",\"禸\",\"⽲\",\"禾\",\"⽳\",\"穴\",\"⽴\",\"立\",\"⽵\",\"竹\",\"⽶\",\"米\",\"⽷\",\"糸\",\"⽸\",\"缶\",\"⽹\",\"网\",\"⽺\",\"羊\",\"⽻\",\"羽\",\"⽼\",\"老\",\"⽽\",\"而\",\"⽾\",\"耒\",\"⽿\",\"耳\",\"⾀\",\"聿\",\"⾁\",\"肉\",\"⾂\",\"臣\",\"⾃\",\"自\",\"⾄\",\"至\",\"⾅\",\"臼\",\"⾆\",\"舌\",\"⾇\",\"舛\",\"⾈\",\"舟\",\"⾉\",\"艮\",\"⾊\",\"色\",\"⾋\",\"艸\",\"⾌\",\"虍\",\"⾍\",\"虫\",\"⾎\",\"血\",\"⾏\",\"行\",\"⾐\",\"衣\",\"⾑\",\"襾\",\"⾒\",\"見\",\"⾓\",\"角\",\"⾔\",\"言\",\"⾕\",\"谷\",\"⾖\",\"豆\",\"⾗\",\"豕\",\"⾘\",\"豸\",\"⾙\",\"貝\",\"⾚\",\"赤\",\"⾛\",\"走\",\"⾜\",\"足\",\"⾝\",\"身\",\"⾞\",\"車\",\"⾟\",\"辛\",\"⾠\",\"辰\",\"⾡\",\"辵\",\"⾢\",\"邑\",\"⾣\",\"酉\",\"⾤\",\"釆\",\"⾥\",\"里\",\"⾦\",\"金\",\"⾧\",\"長\",\"⾨\",\"門\",\"⾩\",\"阜\",\"⾪\",\"隶\",\"⾫\",\"隹\",\"⾬\",\"雨\",\"⾭\",\"靑\",\"⾮\",\"非\",\"⾯\",\"面\",\"⾰\",\"革\",\"⾱\",\"韋\",\"⾲\",\"韭\",\"⾳\",\"音\",\"⾴\",\"頁\",\"⾵\",\"風\",\"⾶\",\"飛\",\"⾷\",\"食\",\"⾸\",\"首\",\"⾹\",\"香\",\"⾺\",\"馬\",\"⾻\",\"骨\",\"⾼\",\"高\",\"⾽\",\"髟\",\"⾾\",\"鬥\",\"⾿\",\"鬯\",\"⿀\",\"鬲\",\"⿁\",\"鬼\",\"⿂\",\"魚\",\"⿃\",\"鳥\",\"⿄\",\"鹵\",\"⿅\",\"鹿\",\"⿆\",\"麥\",\"⿇\",\"麻\",\"⿈\",\"黃\",\"⿉\",\"黍\",\"⿊\",\"黑\",\"⿋\",\"黹\",\"⿌\",\"黽\",\"⿍\",\"鼎\",\"⿎\",\"鼓\",\"⿏\",\"鼠\",\"⿐\",\"鼻\",\"⿑\",\"齊\",\"⿒\",\"齒\",\"⿓\",\"龍\",\"⿔\",\"龜\",\"⿕\",\"龠\",\"〶\",\"〒\",\"〸\",\"十\",\"〹\",\"卄\",\"〺\",\"卅\",\"゛\",\" ゙\",\"゜\",\" ゚\",\"ㄱ\",\"ᄀ\",\"ㄲ\",\"ᄁ\",\"ㄳ\",\"ᆪ\",\"ㄴ\",\"ᄂ\",\"ㄵ\",\"ᆬ\",\"ㄶ\",\"ᆭ\",\"ㄷ\",\"ᄃ\",\"ㄸ\",\"ᄄ\",\"ㄹ\",\"ᄅ\",\"ㄺ\",\"ᆰ\",\"ㄻ\",\"ᆱ\",\"ㄼ\",\"ᆲ\",\"ㄽ\",\"ᆳ\",\"ㄾ\",\"ᆴ\",\"ㄿ\",\"ᆵ\",\"ㅀ\",\"ᄚ\",\"ㅁ\",\"ᄆ\",\"ㅂ\",\"ᄇ\",\"ㅃ\",\"ᄈ\",\"ㅄ\",\"ᄡ\",\"ㅅ\",\"ᄉ\",\"ㅆ\",\"ᄊ\",\"ㅇ\",\"ᄋ\",\"ㅈ\",\"ᄌ\",\"ㅉ\",\"ᄍ\",\"ㅊ\",\"ᄎ\",\"ㅋ\",\"ᄏ\",\"ㅌ\",\"ᄐ\",\"ㅍ\",\"ᄑ\",\"ㅎ\",\"ᄒ\",\"ㅏ\",\"ᅡ\",\"ㅐ\",\"ᅢ\",\"ㅑ\",\"ᅣ\",\"ㅒ\",\"ᅤ\",\"ㅓ\",\"ᅥ\",\"ㅔ\",\"ᅦ\",\"ㅕ\",\"ᅧ\",\"ㅖ\",\"ᅨ\",\"ㅗ\",\"ᅩ\",\"ㅘ\",\"ᅪ\",\"ㅙ\",\"ᅫ\",\"ㅚ\",\"ᅬ\",\"ㅛ\",\"ᅭ\",\"ㅜ\",\"ᅮ\",\"ㅝ\",\"ᅯ\",\"ㅞ\",\"ᅰ\",\"ㅟ\",\"ᅱ\",\"ㅠ\",\"ᅲ\",\"ㅡ\",\"ᅳ\",\"ㅢ\",\"ᅴ\",\"ㅣ\",\"ᅵ\",\"ㅤ\",\"ᅠ\",\"ㅥ\",\"ᄔ\",\"ㅦ\",\"ᄕ\",\"ㅧ\",\"ᇇ\",\"ㅨ\",\"ᇈ\",\"ㅩ\",\"ᇌ\",\"ㅪ\",\"ᇎ\",\"ㅫ\",\"ᇓ\",\"ㅬ\",\"ᇗ\",\"ㅭ\",\"ᇙ\",\"ㅮ\",\"ᄜ\",\"ㅯ\",\"ᇝ\",\"ㅰ\",\"ᇟ\",\"ㅱ\",\"ᄝ\",\"ㅲ\",\"ᄞ\",\"ㅳ\",\"ᄠ\",\"ㅴ\",\"ᄢ\",\"ㅵ\",\"ᄣ\",\"ㅶ\",\"ᄧ\",\"ㅷ\",\"ᄩ\",\"ㅸ\",\"ᄫ\",\"ㅹ\",\"ᄬ\",\"ㅺ\",\"ᄭ\",\"ㅻ\",\"ᄮ\",\"ㅼ\",\"ᄯ\",\"ㅽ\",\"ᄲ\",\"ㅾ\",\"ᄶ\",\"ㅿ\",\"ᅀ\",\"ㆀ\",\"ᅇ\",\"ㆁ\",\"ᅌ\",\"ㆂ\",\"ᇱ\",\"ㆃ\",\"ᇲ\",\"ㆄ\",\"ᅗ\",\"ㆅ\",\"ᅘ\",\"ㆆ\",\"ᅙ\",\"ㆇ\",\"ᆄ\",\"ㆈ\",\"ᆅ\",\"ㆉ\",\"ᆈ\",\"ㆊ\",\"ᆑ\",\"ㆋ\",\"ᆒ\",\"ㆌ\",\"ᆔ\",\"ㆍ\",\"ᆞ\",\"ㆎ\",\"ᆡ\",\"㈀\",\"(ᄀ)\",\"㈁\",\"(ᄂ)\",\"㈂\",\"(ᄃ)\",\"㈃\",\"(ᄅ)\",\"㈄\",\"(ᄆ)\",\"㈅\",\"(ᄇ)\",\"㈆\",\"(ᄉ)\",\"㈇\",\"(ᄋ)\",\"㈈\",\"(ᄌ)\",\"㈉\",\"(ᄎ)\",\"㈊\",\"(ᄏ)\",\"㈋\",\"(ᄐ)\",\"㈌\",\"(ᄑ)\",\"㈍\",\"(ᄒ)\",\"㈎\",\"(가)\",\"㈏\",\"(나)\",\"㈐\",\"(다)\",\"㈑\",\"(라)\",\"㈒\",\"(마)\",\"㈓\",\"(바)\",\"㈔\",\"(사)\",\"㈕\",\"(아)\",\"㈖\",\"(자)\",\"㈗\",\"(차)\",\"㈘\",\"(카)\",\"㈙\",\"(타)\",\"㈚\",\"(파)\",\"㈛\",\"(하)\",\"㈜\",\"(주)\",\"㈝\",\"(오전)\",\"㈞\",\"(오후)\",\"㈠\",\"(一)\",\"㈡\",\"(二)\",\"㈢\",\"(三)\",\"㈣\",\"(四)\",\"㈤\",\"(五)\",\"㈥\",\"(六)\",\"㈦\",\"(七)\",\"㈧\",\"(八)\",\"㈨\",\"(九)\",\"㈩\",\"(十)\",\"㈪\",\"(月)\",\"㈫\",\"(火)\",\"㈬\",\"(水)\",\"㈭\",\"(木)\",\"㈮\",\"(金)\",\"㈯\",\"(土)\",\"㈰\",\"(日)\",\"㈱\",\"(株)\",\"㈲\",\"(有)\",\"㈳\",\"(社)\",\"㈴\",\"(名)\",\"㈵\",\"(特)\",\"㈶\",\"(財)\",\"㈷\",\"(祝)\",\"㈸\",\"(労)\",\"㈹\",\"(代)\",\"㈺\",\"(呼)\",\"㈻\",\"(学)\",\"㈼\",\"(監)\",\"㈽\",\"(企)\",\"㈾\",\"(資)\",\"㈿\",\"(協)\",\"㉀\",\"(祭)\",\"㉁\",\"(休)\",\"㉂\",\"(自)\",\"㉃\",\"(至)\",\"㋀\",\"1月\",\"㋁\",\"2月\",\"㋂\",\"3月\",\"㋃\",\"4月\",\"㋄\",\"5月\",\"㋅\",\"6月\",\"㋆\",\"7月\",\"㋇\",\"8月\",\"㋈\",\"9月\",\"㋉\",\"10月\",\"㋊\",\"11月\",\"㋋\",\"12月\",\"㍘\",\"0点\",\"㍙\",\"1点\",\"㍚\",\"2点\",\"㍛\",\"3点\",\"㍜\",\"4点\",\"㍝\",\"5点\",\"㍞\",\"6点\",\"㍟\",\"7点\",\"㍠\",\"8点\",\"㍡\",\"9点\",\"㍢\",\"10点\",\"㍣\",\"11点\",\"㍤\",\"12点\",\"㍥\",\"13点\",\"㍦\",\"14点\",\"㍧\",\"15点\",\"㍨\",\"16点\",\"㍩\",\"17点\",\"㍪\",\"18点\",\"㍫\",\"19点\",\"㍬\",\"20点\",\"㍭\",\"21点\",\"㍮\",\"22点\",\"㍯\",\"23点\",\"㍰\",\"24点\",\"㏠\",\"1日\",\"㏡\",\"2日\",\"㏢\",\"3日\",\"㏣\",\"4日\",\"㏤\",\"5日\",\"㏥\",\"6日\",\"㏦\",\"7日\",\"㏧\",\"8日\",\"㏨\",\"9日\",\"㏩\",\"10日\",\"㏪\",\"11日\",\"㏫\",\"12日\",\"㏬\",\"13日\",\"㏭\",\"14日\",\"㏮\",\"15日\",\"㏯\",\"16日\",\"㏰\",\"17日\",\"㏱\",\"18日\",\"㏲\",\"19日\",\"㏳\",\"20日\",\"㏴\",\"21日\",\"㏵\",\"22日\",\"㏶\",\"23日\",\"㏷\",\"24日\",\"㏸\",\"25日\",\"㏹\",\"26日\",\"㏺\",\"27日\",\"㏻\",\"28日\",\"㏼\",\"29日\",\"㏽\",\"30日\",\"㏾\",\"31日\",\"ﬀ\",\"ff\",\"ﬁ\",\"fi\",\"ﬂ\",\"fl\",\"ﬃ\",\"ffi\",\"ﬄ\",\"ffl\",\"ﬅ\",\"ſt\",\"ﬆ\",\"st\",\"ﬓ\",\"մն\",\"ﬔ\",\"մե\",\"ﬕ\",\"մի\",\"ﬖ\",\"վն\",\"ﬗ\",\"մխ\",\"ﭏ\",\"אל\",\"ﭐ\",\"ٱ\",\"ﭑ\",\"ٱ\",\"ﭒ\",\"ٻ\",\"ﭓ\",\"ٻ\",\"ﭔ\",\"ٻ\",\"ﭕ\",\"ٻ\",\"ﭖ\",\"پ\",\"ﭗ\",\"پ\",\"ﭘ\",\"پ\",\"ﭙ\",\"پ\",\"ﭚ\",\"ڀ\",\"ﭛ\",\"ڀ\",\"ﭜ\",\"ڀ\",\"ﭝ\",\"ڀ\",\"ﭞ\",\"ٺ\",\"ﭟ\",\"ٺ\",\"ﭠ\",\"ٺ\",\"ﭡ\",\"ٺ\",\"ﭢ\",\"ٿ\",\"ﭣ\",\"ٿ\",\"ﭤ\",\"ٿ\",\"ﭥ\",\"ٿ\",\"ﭦ\",\"ٹ\",\"ﭧ\",\"ٹ\",\"ﭨ\",\"ٹ\",\"ﭩ\",\"ٹ\",\"ﭪ\",\"ڤ\",\"ﭫ\",\"ڤ\",\"ﭬ\",\"ڤ\",\"ﭭ\",\"ڤ\",\"ﭮ\",\"ڦ\",\"ﭯ\",\"ڦ\",\"ﭰ\",\"ڦ\",\"ﭱ\",\"ڦ\",\"ﭲ\",\"ڄ\",\"ﭳ\",\"ڄ\",\"ﭴ\",\"ڄ\",\"ﭵ\",\"ڄ\",\"ﭶ\",\"ڃ\",\"ﭷ\",\"ڃ\",\"ﭸ\",\"ڃ\",\"ﭹ\",\"ڃ\",\"ﭺ\",\"چ\",\"ﭻ\",\"چ\",\"ﭼ\",\"چ\",\"ﭽ\",\"چ\",\"ﭾ\",\"ڇ\",\"ﭿ\",\"ڇ\",\"ﮀ\",\"ڇ\",\"ﮁ\",\"ڇ\",\"ﮂ\",\"ڍ\",\"ﮃ\",\"ڍ\",\"ﮄ\",\"ڌ\",\"ﮅ\",\"ڌ\",\"ﮆ\",\"ڎ\",\"ﮇ\",\"ڎ\",\"ﮈ\",\"ڈ\",\"ﮉ\",\"ڈ\",\"ﮊ\",\"ژ\",\"ﮋ\",\"ژ\",\"ﮌ\",\"ڑ\",\"ﮍ\",\"ڑ\",\"ﮎ\",\"ک\",\"ﮏ\",\"ک\",\"ﮐ\",\"ک\",\"ﮑ\",\"ک\",\"ﮒ\",\"گ\",\"ﮓ\",\"گ\",\"ﮔ\",\"گ\",\"ﮕ\",\"گ\",\"ﮖ\",\"ڳ\",\"ﮗ\",\"ڳ\",\"ﮘ\",\"ڳ\",\"ﮙ\",\"ڳ\",\"ﮚ\",\"ڱ\",\"ﮛ\",\"ڱ\",\"ﮜ\",\"ڱ\",\"ﮝ\",\"ڱ\",\"ﮞ\",\"ں\",\"ﮟ\",\"ں\",\"ﮠ\",\"ڻ\",\"ﮡ\",\"ڻ\",\"ﮢ\",\"ڻ\",\"ﮣ\",\"ڻ\",\"ﮤ\",\"ۀ\",\"ﮥ\",\"ۀ\",\"ﮦ\",\"ہ\",\"ﮧ\",\"ہ\",\"ﮨ\",\"ہ\",\"ﮩ\",\"ہ\",\"ﮪ\",\"ھ\",\"ﮫ\",\"ھ\",\"ﮬ\",\"ھ\",\"ﮭ\",\"ھ\",\"ﮮ\",\"ے\",\"ﮯ\",\"ے\",\"ﮰ\",\"ۓ\",\"ﮱ\",\"ۓ\",\"ﯓ\",\"ڭ\",\"ﯔ\",\"ڭ\",\"ﯕ\",\"ڭ\",\"ﯖ\",\"ڭ\",\"ﯗ\",\"ۇ\",\"ﯘ\",\"ۇ\",\"ﯙ\",\"ۆ\",\"ﯚ\",\"ۆ\",\"ﯛ\",\"ۈ\",\"ﯜ\",\"ۈ\",\"ﯝ\",\"ٷ\",\"ﯞ\",\"ۋ\",\"ﯟ\",\"ۋ\",\"ﯠ\",\"ۅ\",\"ﯡ\",\"ۅ\",\"ﯢ\",\"ۉ\",\"ﯣ\",\"ۉ\",\"ﯤ\",\"ې\",\"ﯥ\",\"ې\",\"ﯦ\",\"ې\",\"ﯧ\",\"ې\",\"ﯨ\",\"ى\",\"ﯩ\",\"ى\",\"ﯪ\",\"ئا\",\"ﯫ\",\"ئا\",\"ﯬ\",\"ئە\",\"ﯭ\",\"ئە\",\"ﯮ\",\"ئو\",\"ﯯ\",\"ئو\",\"ﯰ\",\"ئۇ\",\"ﯱ\",\"ئۇ\",\"ﯲ\",\"ئۆ\",\"ﯳ\",\"ئۆ\",\"ﯴ\",\"ئۈ\",\"ﯵ\",\"ئۈ\",\"ﯶ\",\"ئې\",\"ﯷ\",\"ئې\",\"ﯸ\",\"ئې\",\"ﯹ\",\"ئى\",\"ﯺ\",\"ئى\",\"ﯻ\",\"ئى\",\"ﯼ\",\"ی\",\"ﯽ\",\"ی\",\"ﯾ\",\"ی\",\"ﯿ\",\"ی\",\"ﰀ\",\"ئج\",\"ﰁ\",\"ئح\",\"ﰂ\",\"ئم\",\"ﰃ\",\"ئى\",\"ﰄ\",\"ئي\",\"ﰅ\",\"بج\",\"ﰆ\",\"بح\",\"ﰇ\",\"بخ\",\"ﰈ\",\"بم\",\"ﰉ\",\"بى\",\"ﰊ\",\"بي\",\"ﰋ\",\"تج\",\"ﰌ\",\"تح\",\"ﰍ\",\"تخ\",\"ﰎ\",\"تم\",\"ﰏ\",\"تى\",\"ﰐ\",\"تي\",\"ﰑ\",\"ثج\",\"ﰒ\",\"ثم\",\"ﰓ\",\"ثى\",\"ﰔ\",\"ثي\",\"ﰕ\",\"جح\",\"ﰖ\",\"جم\",\"ﰗ\",\"حج\",\"ﰘ\",\"حم\",\"ﰙ\",\"خج\",\"ﰚ\",\"خح\",\"ﰛ\",\"خم\",\"ﰜ\",\"سج\",\"ﰝ\",\"سح\",\"ﰞ\",\"سخ\",\"ﰟ\",\"سم\",\"ﰠ\",\"صح\",\"ﰡ\",\"صم\",\"ﰢ\",\"ضج\",\"ﰣ\",\"ضح\",\"ﰤ\",\"ضخ\",\"ﰥ\",\"ضم\",\"ﰦ\",\"طح\",\"ﰧ\",\"طم\",\"ﰨ\",\"ظم\",\"ﰩ\",\"عج\",\"ﰪ\",\"عم\",\"ﰫ\",\"غج\",\"ﰬ\",\"غم\",\"ﰭ\",\"فج\",\"ﰮ\",\"فح\",\"ﰯ\",\"فخ\",\"ﰰ\",\"فم\",\"ﰱ\",\"فى\",\"ﰲ\",\"في\",\"ﰳ\",\"قح\",\"ﰴ\",\"قم\",\"ﰵ\",\"قى\",\"ﰶ\",\"قي\",\"ﰷ\",\"كا\",\"ﰸ\",\"كج\",\"ﰹ\",\"كح\",\"ﰺ\",\"كخ\",\"ﰻ\",\"كل\",\"ﰼ\",\"كم\",\"ﰽ\",\"كى\",\"ﰾ\",\"كي\",\"ﰿ\",\"لج\",\"ﱀ\",\"لح\",\"ﱁ\",\"لخ\",\"ﱂ\",\"لم\",\"ﱃ\",\"لى\",\"ﱄ\",\"لي\",\"ﱅ\",\"مج\",\"ﱆ\",\"مح\",\"ﱇ\",\"مخ\",\"ﱈ\",\"مم\",\"ﱉ\",\"مى\",\"ﱊ\",\"مي\",\"ﱋ\",\"نج\",\"ﱌ\",\"نح\",\"ﱍ\",\"نخ\",\"ﱎ\",\"نم\",\"ﱏ\",\"نى\",\"ﱐ\",\"ني\",\"ﱑ\",\"هج\",\"ﱒ\",\"هم\",\"ﱓ\",\"هى\",\"ﱔ\",\"هي\",\"ﱕ\",\"يج\",\"ﱖ\",\"يح\",\"ﱗ\",\"يخ\",\"ﱘ\",\"يم\",\"ﱙ\",\"يى\",\"ﱚ\",\"يي\",\"ﱛ\",\"ذٰ\",\"ﱜ\",\"رٰ\",\"ﱝ\",\"ىٰ\",\"ﱞ\",\" ٌّ\",\"ﱟ\",\" ٍّ\",\"ﱠ\",\" َّ\",\"ﱡ\",\" ُّ\",\"ﱢ\",\" ِّ\",\"ﱣ\",\" ّٰ\",\"ﱤ\",\"ئر\",\"ﱥ\",\"ئز\",\"ﱦ\",\"ئم\",\"ﱧ\",\"ئن\",\"ﱨ\",\"ئى\",\"ﱩ\",\"ئي\",\"ﱪ\",\"بر\",\"ﱫ\",\"بز\",\"ﱬ\",\"بم\",\"ﱭ\",\"بن\",\"ﱮ\",\"بى\",\"ﱯ\",\"بي\",\"ﱰ\",\"تر\",\"ﱱ\",\"تز\",\"ﱲ\",\"تم\",\"ﱳ\",\"تن\",\"ﱴ\",\"تى\",\"ﱵ\",\"تي\",\"ﱶ\",\"ثر\",\"ﱷ\",\"ثز\",\"ﱸ\",\"ثم\",\"ﱹ\",\"ثن\",\"ﱺ\",\"ثى\",\"ﱻ\",\"ثي\",\"ﱼ\",\"فى\",\"ﱽ\",\"في\",\"ﱾ\",\"قى\",\"ﱿ\",\"قي\",\"ﲀ\",\"كا\",\"ﲁ\",\"كل\",\"ﲂ\",\"كم\",\"ﲃ\",\"كى\",\"ﲄ\",\"كي\",\"ﲅ\",\"لم\",\"ﲆ\",\"لى\",\"ﲇ\",\"لي\",\"ﲈ\",\"ما\",\"ﲉ\",\"مم\",\"ﲊ\",\"نر\",\"ﲋ\",\"نز\",\"ﲌ\",\"نم\",\"ﲍ\",\"نن\",\"ﲎ\",\"نى\",\"ﲏ\",\"ني\",\"ﲐ\",\"ىٰ\",\"ﲑ\",\"ير\",\"ﲒ\",\"يز\",\"ﲓ\",\"يم\",\"ﲔ\",\"ين\",\"ﲕ\",\"يى\",\"ﲖ\",\"يي\",\"ﲗ\",\"ئج\",\"ﲘ\",\"ئح\",\"ﲙ\",\"ئخ\",\"ﲚ\",\"ئم\",\"ﲛ\",\"ئه\",\"ﲜ\",\"بج\",\"ﲝ\",\"بح\",\"ﲞ\",\"بخ\",\"ﲟ\",\"بم\",\"ﲠ\",\"به\",\"ﲡ\",\"تج\",\"ﲢ\",\"تح\",\"ﲣ\",\"تخ\",\"ﲤ\",\"تم\",\"ﲥ\",\"ته\",\"ﲦ\",\"ثم\",\"ﲧ\",\"جح\",\"ﲨ\",\"جم\",\"ﲩ\",\"حج\",\"ﲪ\",\"حم\",\"ﲫ\",\"خج\",\"ﲬ\",\"خم\",\"ﲭ\",\"سج\",\"ﲮ\",\"سح\",\"ﲯ\",\"سخ\",\"ﲰ\",\"سم\",\"ﲱ\",\"صح\",\"ﲲ\",\"صخ\",\"ﲳ\",\"صم\",\"ﲴ\",\"ضج\",\"ﲵ\",\"ضح\",\"ﲶ\",\"ضخ\",\"ﲷ\",\"ضم\",\"ﲸ\",\"طح\",\"ﲹ\",\"ظم\",\"ﲺ\",\"عج\",\"ﲻ\",\"عم\",\"ﲼ\",\"غج\",\"ﲽ\",\"غم\",\"ﲾ\",\"فج\",\"ﲿ\",\"فح\",\"ﳀ\",\"فخ\",\"ﳁ\",\"فم\",\"ﳂ\",\"قح\",\"ﳃ\",\"قم\",\"ﳄ\",\"كج\",\"ﳅ\",\"كح\",\"ﳆ\",\"كخ\",\"ﳇ\",\"كل\",\"ﳈ\",\"كم\",\"ﳉ\",\"لج\",\"ﳊ\",\"لح\",\"ﳋ\",\"لخ\",\"ﳌ\",\"لم\",\"ﳍ\",\"له\",\"ﳎ\",\"مج\",\"ﳏ\",\"مح\",\"ﳐ\",\"مخ\",\"ﳑ\",\"مم\",\"ﳒ\",\"نج\",\"ﳓ\",\"نح\",\"ﳔ\",\"نخ\",\"ﳕ\",\"نم\",\"ﳖ\",\"نه\",\"ﳗ\",\"هج\",\"ﳘ\",\"هم\",\"ﳙ\",\"هٰ\",\"ﳚ\",\"يج\",\"ﳛ\",\"يح\",\"ﳜ\",\"يخ\",\"ﳝ\",\"يم\",\"ﳞ\",\"يه\",\"ﳟ\",\"ئم\",\"ﳠ\",\"ئه\",\"ﳡ\",\"بم\",\"ﳢ\",\"به\",\"ﳣ\",\"تم\",\"ﳤ\",\"ته\",\"ﳥ\",\"ثم\",\"ﳦ\",\"ثه\",\"ﳧ\",\"سم\",\"ﳨ\",\"سه\",\"ﳩ\",\"شم\",\"ﳪ\",\"شه\",\"ﳫ\",\"كل\",\"ﳬ\",\"كم\",\"ﳭ\",\"لم\",\"ﳮ\",\"نم\",\"ﳯ\",\"نه\",\"ﳰ\",\"يم\",\"ﳱ\",\"يه\",\"ﳲ\",\"ـَّ\",\"ﳳ\",\"ـُّ\",\"ﳴ\",\"ـِّ\",\"ﳵ\",\"طى\",\"ﳶ\",\"طي\",\"ﳷ\",\"عى\",\"ﳸ\",\"عي\",\"ﳹ\",\"غى\",\"ﳺ\",\"غي\",\"ﳻ\",\"سى\",\"ﳼ\",\"سي\",\"ﳽ\",\"شى\",\"ﳾ\",\"شي\",\"ﳿ\",\"حى\",\"ﴀ\",\"حي\",\"ﴁ\",\"جى\",\"ﴂ\",\"جي\",\"ﴃ\",\"خى\",\"ﴄ\",\"خي\",\"ﴅ\",\"صى\",\"ﴆ\",\"صي\",\"ﴇ\",\"ضى\",\"ﴈ\",\"ضي\",\"ﴉ\",\"شج\",\"ﴊ\",\"شح\",\"ﴋ\",\"شخ\",\"ﴌ\",\"شم\",\"ﴍ\",\"شر\",\"ﴎ\",\"سر\",\"ﴏ\",\"صر\",\"ﴐ\",\"ضر\",\"ﴑ\",\"طى\",\"ﴒ\",\"طي\",\"ﴓ\",\"عى\",\"ﴔ\",\"عي\",\"ﴕ\",\"غى\",\"ﴖ\",\"غي\",\"ﴗ\",\"سى\",\"ﴘ\",\"سي\",\"ﴙ\",\"شى\",\"ﴚ\",\"شي\",\"ﴛ\",\"حى\",\"ﴜ\",\"حي\",\"ﴝ\",\"جى\",\"ﴞ\",\"جي\",\"ﴟ\",\"خى\",\"ﴠ\",\"خي\",\"ﴡ\",\"صى\",\"ﴢ\",\"صي\",\"ﴣ\",\"ضى\",\"ﴤ\",\"ضي\",\"ﴥ\",\"شج\",\"ﴦ\",\"شح\",\"ﴧ\",\"شخ\",\"ﴨ\",\"شم\",\"ﴩ\",\"شر\",\"ﴪ\",\"سر\",\"ﴫ\",\"صر\",\"ﴬ\",\"ضر\",\"ﴭ\",\"شج\",\"ﴮ\",\"شح\",\"ﴯ\",\"شخ\",\"ﴰ\",\"شم\",\"ﴱ\",\"سه\",\"ﴲ\",\"شه\",\"ﴳ\",\"طم\",\"ﴴ\",\"سج\",\"ﴵ\",\"سح\",\"ﴶ\",\"سخ\",\"ﴷ\",\"شج\",\"ﴸ\",\"شح\",\"ﴹ\",\"شخ\",\"ﴺ\",\"طم\",\"ﴻ\",\"ظم\",\"ﴼ\",\"اً\",\"ﴽ\",\"اً\",\"ﵐ\",\"تجم\",\"ﵑ\",\"تحج\",\"ﵒ\",\"تحج\",\"ﵓ\",\"تحم\",\"ﵔ\",\"تخم\",\"ﵕ\",\"تمج\",\"ﵖ\",\"تمح\",\"ﵗ\",\"تمخ\",\"ﵘ\",\"جمح\",\"ﵙ\",\"جمح\",\"ﵚ\",\"حمي\",\"ﵛ\",\"حمى\",\"ﵜ\",\"سحج\",\"ﵝ\",\"سجح\",\"ﵞ\",\"سجى\",\"ﵟ\",\"سمح\",\"ﵠ\",\"سمح\",\"ﵡ\",\"سمج\",\"ﵢ\",\"سمم\",\"ﵣ\",\"سمم\",\"ﵤ\",\"صحح\",\"ﵥ\",\"صحح\",\"ﵦ\",\"صمم\",\"ﵧ\",\"شحم\",\"ﵨ\",\"شحم\",\"ﵩ\",\"شجي\",\"ﵪ\",\"شمخ\",\"ﵫ\",\"شمخ\",\"ﵬ\",\"شمم\",\"ﵭ\",\"شمم\",\"ﵮ\",\"ضحى\",\"ﵯ\",\"ضخم\",\"ﵰ\",\"ضخم\",\"ﵱ\",\"طمح\",\"ﵲ\",\"طمح\",\"ﵳ\",\"طمم\",\"ﵴ\",\"طمي\",\"ﵵ\",\"عجم\",\"ﵶ\",\"عمم\",\"ﵷ\",\"عمم\",\"ﵸ\",\"عمى\",\"ﵹ\",\"غمم\",\"ﵺ\",\"غمي\",\"ﵻ\",\"غمى\",\"ﵼ\",\"فخم\",\"ﵽ\",\"فخم\",\"ﵾ\",\"قمح\",\"ﵿ\",\"قمم\",\"ﶀ\",\"لحم\",\"ﶁ\",\"لحي\",\"ﶂ\",\"لحى\",\"ﶃ\",\"لجج\",\"ﶄ\",\"لجج\",\"ﶅ\",\"لخم\",\"ﶆ\",\"لخم\",\"ﶇ\",\"لمح\",\"ﶈ\",\"لمح\",\"ﶉ\",\"محج\",\"ﶊ\",\"محم\",\"ﶋ\",\"محي\",\"ﶌ\",\"مجح\",\"ﶍ\",\"مجم\",\"ﶎ\",\"مخج\",\"ﶏ\",\"مخم\",\"ﶒ\",\"مجخ\",\"ﶓ\",\"همج\",\"ﶔ\",\"همم\",\"ﶕ\",\"نحم\",\"ﶖ\",\"نحى\",\"ﶗ\",\"نجم\",\"ﶘ\",\"نجم\",\"ﶙ\",\"نجى\",\"ﶚ\",\"نمي\",\"ﶛ\",\"نمى\",\"ﶜ\",\"يمم\",\"ﶝ\",\"يمم\",\"ﶞ\",\"بخي\",\"ﶟ\",\"تجي\",\"ﶠ\",\"تجى\",\"ﶡ\",\"تخي\",\"ﶢ\",\"تخى\",\"ﶣ\",\"تمي\",\"ﶤ\",\"تمى\",\"ﶥ\",\"جمي\",\"ﶦ\",\"جحى\",\"ﶧ\",\"جمى\",\"ﶨ\",\"سخى\",\"ﶩ\",\"صحي\",\"ﶪ\",\"شحي\",\"ﶫ\",\"ضحي\",\"ﶬ\",\"لجي\",\"ﶭ\",\"لمي\",\"ﶮ\",\"يحي\",\"ﶯ\",\"يجي\",\"ﶰ\",\"يمي\",\"ﶱ\",\"ممي\",\"ﶲ\",\"قمي\",\"ﶳ\",\"نحي\",\"ﶴ\",\"قمح\",\"ﶵ\",\"لحم\",\"ﶶ\",\"عمي\",\"ﶷ\",\"كمي\",\"ﶸ\",\"نجح\",\"ﶹ\",\"مخي\",\"ﶺ\",\"لجم\",\"ﶻ\",\"كمم\",\"ﶼ\",\"لجم\",\"ﶽ\",\"نجح\",\"ﶾ\",\"جحي\",\"ﶿ\",\"حجي\",\"ﷀ\",\"مجي\",\"ﷁ\",\"فمي\",\"ﷂ\",\"بحي\",\"ﷃ\",\"كمم\",\"ﷄ\",\"عجم\",\"ﷅ\",\"صمم\",\"ﷆ\",\"سخي\",\"ﷇ\",\"نجي\",\"﹉\",\"‾\",\"﹊\",\"‾\",\"﹋\",\"‾\",\"﹌\",\"‾\",\"﹍\",\"_\",\"﹎\",\"_\",\"﹏\",\"_\",\"ﺀ\",\"ء\",\"ﺁ\",\"آ\",\"ﺂ\",\"آ\",\"ﺃ\",\"أ\",\"ﺄ\",\"أ\",\"ﺅ\",\"ؤ\",\"ﺆ\",\"ؤ\",\"ﺇ\",\"إ\",\"ﺈ\",\"إ\",\"ﺉ\",\"ئ\",\"ﺊ\",\"ئ\",\"ﺋ\",\"ئ\",\"ﺌ\",\"ئ\",\"ﺍ\",\"ا\",\"ﺎ\",\"ا\",\"ﺏ\",\"ب\",\"ﺐ\",\"ب\",\"ﺑ\",\"ب\",\"ﺒ\",\"ب\",\"ﺓ\",\"ة\",\"ﺔ\",\"ة\",\"ﺕ\",\"ت\",\"ﺖ\",\"ت\",\"ﺗ\",\"ت\",\"ﺘ\",\"ت\",\"ﺙ\",\"ث\",\"ﺚ\",\"ث\",\"ﺛ\",\"ث\",\"ﺜ\",\"ث\",\"ﺝ\",\"ج\",\"ﺞ\",\"ج\",\"ﺟ\",\"ج\",\"ﺠ\",\"ج\",\"ﺡ\",\"ح\",\"ﺢ\",\"ح\",\"ﺣ\",\"ح\",\"ﺤ\",\"ح\",\"ﺥ\",\"خ\",\"ﺦ\",\"خ\",\"ﺧ\",\"خ\",\"ﺨ\",\"خ\",\"ﺩ\",\"د\",\"ﺪ\",\"د\",\"ﺫ\",\"ذ\",\"ﺬ\",\"ذ\",\"ﺭ\",\"ر\",\"ﺮ\",\"ر\",\"ﺯ\",\"ز\",\"ﺰ\",\"ز\",\"ﺱ\",\"س\",\"ﺲ\",\"س\",\"ﺳ\",\"س\",\"ﺴ\",\"س\",\"ﺵ\",\"ش\",\"ﺶ\",\"ش\",\"ﺷ\",\"ش\",\"ﺸ\",\"ش\",\"ﺹ\",\"ص\",\"ﺺ\",\"ص\",\"ﺻ\",\"ص\",\"ﺼ\",\"ص\",\"ﺽ\",\"ض\",\"ﺾ\",\"ض\",\"ﺿ\",\"ض\",\"ﻀ\",\"ض\",\"ﻁ\",\"ط\",\"ﻂ\",\"ط\",\"ﻃ\",\"ط\",\"ﻄ\",\"ط\",\"ﻅ\",\"ظ\",\"ﻆ\",\"ظ\",\"ﻇ\",\"ظ\",\"ﻈ\",\"ظ\",\"ﻉ\",\"ع\",\"ﻊ\",\"ع\",\"ﻋ\",\"ع\",\"ﻌ\",\"ع\",\"ﻍ\",\"غ\",\"ﻎ\",\"غ\",\"ﻏ\",\"غ\",\"ﻐ\",\"غ\",\"ﻑ\",\"ف\",\"ﻒ\",\"ف\",\"ﻓ\",\"ف\",\"ﻔ\",\"ف\",\"ﻕ\",\"ق\",\"ﻖ\",\"ق\",\"ﻗ\",\"ق\",\"ﻘ\",\"ق\",\"ﻙ\",\"ك\",\"ﻚ\",\"ك\",\"ﻛ\",\"ك\",\"ﻜ\",\"ك\",\"ﻝ\",\"ل\",\"ﻞ\",\"ل\",\"ﻟ\",\"ل\",\"ﻠ\",\"ل\",\"ﻡ\",\"م\",\"ﻢ\",\"م\",\"ﻣ\",\"م\",\"ﻤ\",\"م\",\"ﻥ\",\"ن\",\"ﻦ\",\"ن\",\"ﻧ\",\"ن\",\"ﻨ\",\"ن\",\"ﻩ\",\"ه\",\"ﻪ\",\"ه\",\"ﻫ\",\"ه\",\"ﻬ\",\"ه\",\"ﻭ\",\"و\",\"ﻮ\",\"و\",\"ﻯ\",\"ى\",\"ﻰ\",\"ى\",\"ﻱ\",\"ي\",\"ﻲ\",\"ي\",\"ﻳ\",\"ي\",\"ﻴ\",\"ي\",\"ﻵ\",\"لآ\",\"ﻶ\",\"لآ\",\"ﻷ\",\"لأ\",\"ﻸ\",\"لأ\",\"ﻹ\",\"لإ\",\"ﻺ\",\"لإ\",\"ﻻ\",\"لا\",\"ﻼ\",\"لا\"];});function _reverseIfRtl(e){var t=e.length;if(t<=1||!function isRTLRangeFor(e){var t=i[13];if(e>=t.begin&&e<t.end)return!0;t=i[11];return e>=t.begin&&e<t.end;}(e.charCodeAt(0)))return e;var r=[];for(var _a170=t-1;_a170>=0;_a170--)r.push(e[_a170]);return r.join(\"\");}var o=new RegExp(\"^(\\\\s)|(\\\\p{Mn})|(\\\\p{Cf})$\",\"u\"),c=new _Map();function _getCharUnicodeCategory(e){var t=c.get(e);if(t)return t;var r=e.match(o),a={isWhitespace:!(!r||!r[1]),isZeroWidthDiacritic:!(!r||!r[2]),isInvisibleFormatMark:!(!r||!r[3])};c.set(e,a);return a;}function _clearUnicodeCaches(){c.clear();}},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.getSerifFonts=t.getNonStdFontMap=t.getGlyphMapForStandardFonts=t.getFontNameToFileMap=void 0;t.getStandardFontName=function getStandardFontName(e){var t=(0,n.normalizeFontName)(e);return i()[t];};t.getSymbolsFonts=t.getSupplementalGlyphMapForCalibri=t.getSupplementalGlyphMapForArialBlack=t.getStdFontMap=void 0;var a=r(131),n=r(163);var i=(0,a.getLookupTableFactory)(function(e){e[\"Times-Roman\"]=\"Times-Roman\";e.Helvetica=\"Helvetica\";e.Courier=\"Courier\";e.Symbol=\"Symbol\";e[\"Times-Bold\"]=\"Times-Bold\";e[\"Helvetica-Bold\"]=\"Helvetica-Bold\";e[\"Courier-Bold\"]=\"Courier-Bold\";e.ZapfDingbats=\"ZapfDingbats\";e[\"Times-Italic\"]=\"Times-Italic\";e[\"Helvetica-Oblique\"]=\"Helvetica-Oblique\";e[\"Courier-Oblique\"]=\"Courier-Oblique\";e[\"Times-BoldItalic\"]=\"Times-BoldItalic\";e[\"Helvetica-BoldOblique\"]=\"Helvetica-BoldOblique\";e[\"Courier-BoldOblique\"]=\"Courier-BoldOblique\";e.ArialNarrow=\"Helvetica\";e[\"ArialNarrow-Bold\"]=\"Helvetica-Bold\";e[\"ArialNarrow-BoldItalic\"]=\"Helvetica-BoldOblique\";e[\"ArialNarrow-Italic\"]=\"Helvetica-Oblique\";e.ArialBlack=\"Helvetica\";e[\"ArialBlack-Bold\"]=\"Helvetica-Bold\";e[\"ArialBlack-BoldItalic\"]=\"Helvetica-BoldOblique\";e[\"ArialBlack-Italic\"]=\"Helvetica-Oblique\";e[\"Arial-Black\"]=\"Helvetica\";e[\"Arial-Black-Bold\"]=\"Helvetica-Bold\";e[\"Arial-Black-BoldItalic\"]=\"Helvetica-BoldOblique\";e[\"Arial-Black-Italic\"]=\"Helvetica-Oblique\";e.Arial=\"Helvetica\";e[\"Arial-Bold\"]=\"Helvetica-Bold\";e[\"Arial-BoldItalic\"]=\"Helvetica-BoldOblique\";e[\"Arial-Italic\"]=\"Helvetica-Oblique\";e.ArialMT=\"Helvetica\";e[\"Arial-BoldItalicMT\"]=\"Helvetica-BoldOblique\";e[\"Arial-BoldMT\"]=\"Helvetica-Bold\";e[\"Arial-ItalicMT\"]=\"Helvetica-Oblique\";e.ArialUnicodeMS=\"Helvetica\";e[\"ArialUnicodeMS-Bold\"]=\"Helvetica-Bold\";e[\"ArialUnicodeMS-BoldItalic\"]=\"Helvetica-BoldOblique\";e[\"ArialUnicodeMS-Italic\"]=\"Helvetica-Oblique\";e[\"Courier-BoldItalic\"]=\"Courier-BoldOblique\";e[\"Courier-Italic\"]=\"Courier-Oblique\";e.CourierNew=\"Courier\";e[\"CourierNew-Bold\"]=\"Courier-Bold\";e[\"CourierNew-BoldItalic\"]=\"Courier-BoldOblique\";e[\"CourierNew-Italic\"]=\"Courier-Oblique\";e[\"CourierNewPS-BoldItalicMT\"]=\"Courier-BoldOblique\";e[\"CourierNewPS-BoldMT\"]=\"Courier-Bold\";e[\"CourierNewPS-ItalicMT\"]=\"Courier-Oblique\";e.CourierNewPSMT=\"Courier\";e[\"Helvetica-BoldItalic\"]=\"Helvetica-BoldOblique\";e[\"Helvetica-Italic\"]=\"Helvetica-Oblique\";e[\"Symbol-Bold\"]=\"Symbol\";e[\"Symbol-BoldItalic\"]=\"Symbol\";e[\"Symbol-Italic\"]=\"Symbol\";e.TimesNewRoman=\"Times-Roman\";e[\"TimesNewRoman-Bold\"]=\"Times-Bold\";e[\"TimesNewRoman-BoldItalic\"]=\"Times-BoldItalic\";e[\"TimesNewRoman-Italic\"]=\"Times-Italic\";e.TimesNewRomanPS=\"Times-Roman\";e[\"TimesNewRomanPS-Bold\"]=\"Times-Bold\";e[\"TimesNewRomanPS-BoldItalic\"]=\"Times-BoldItalic\";e[\"TimesNewRomanPS-BoldItalicMT\"]=\"Times-BoldItalic\";e[\"TimesNewRomanPS-BoldMT\"]=\"Times-Bold\";e[\"TimesNewRomanPS-Italic\"]=\"Times-Italic\";e[\"TimesNewRomanPS-ItalicMT\"]=\"Times-Italic\";e.TimesNewRomanPSMT=\"Times-Roman\";e[\"TimesNewRomanPSMT-Bold\"]=\"Times-Bold\";e[\"TimesNewRomanPSMT-BoldItalic\"]=\"Times-BoldItalic\";e[\"TimesNewRomanPSMT-Italic\"]=\"Times-Italic\";});t.getStdFontMap=i;var s=(0,a.getLookupTableFactory)(function(e){e.Courier=\"FoxitFixed.pfb\";e[\"Courier-Bold\"]=\"FoxitFixedBold.pfb\";e[\"Courier-BoldOblique\"]=\"FoxitFixedBoldItalic.pfb\";e[\"Courier-Oblique\"]=\"FoxitFixedItalic.pfb\";e.Helvetica=\"FoxitSans.pfb\";e[\"Helvetica-Bold\"]=\"FoxitSansBold.pfb\";e[\"Helvetica-BoldOblique\"]=\"FoxitSansBoldItalic.pfb\";e[\"Helvetica-Oblique\"]=\"FoxitSansItalic.pfb\";e[\"Times-Roman\"]=\"FoxitSerif.pfb\";e[\"Times-Bold\"]=\"FoxitSerifBold.pfb\";e[\"Times-BoldItalic\"]=\"FoxitSerifBoldItalic.pfb\";e[\"Times-Italic\"]=\"FoxitSerifItalic.pfb\";e.Symbol=\"FoxitSymbol.pfb\";e.ZapfDingbats=\"FoxitDingbats.pfb\";e[\"LiberationSans-Regular\"]=\"LiberationSans-Regular.ttf\";e[\"LiberationSans-Bold\"]=\"LiberationSans-Bold.ttf\";e[\"LiberationSans-Italic\"]=\"LiberationSans-Italic.ttf\";e[\"LiberationSans-BoldItalic\"]=\"LiberationSans-BoldItalic.ttf\";});t.getFontNameToFileMap=s;var o=(0,a.getLookupTableFactory)(function(e){e.Calibri=\"Helvetica\";e[\"Calibri-Bold\"]=\"Helvetica-Bold\";e[\"Calibri-BoldItalic\"]=\"Helvetica-BoldOblique\";e[\"Calibri-Italic\"]=\"Helvetica-Oblique\";e.CenturyGothic=\"Helvetica\";e[\"CenturyGothic-Bold\"]=\"Helvetica-Bold\";e[\"CenturyGothic-BoldItalic\"]=\"Helvetica-BoldOblique\";e[\"CenturyGothic-Italic\"]=\"Helvetica-Oblique\";e.ComicSansMS=\"Comic Sans MS\";e[\"ComicSansMS-Bold\"]=\"Comic Sans MS-Bold\";e[\"ComicSansMS-BoldItalic\"]=\"Comic Sans MS-BoldItalic\";e[\"ComicSansMS-Italic\"]=\"Comic Sans MS-Italic\";e[\"ItcSymbol-Bold\"]=\"Helvetica-Bold\";e[\"ItcSymbol-BoldItalic\"]=\"Helvetica-BoldOblique\";e[\"ItcSymbol-Book\"]=\"Helvetica\";e[\"ItcSymbol-BookItalic\"]=\"Helvetica-Oblique\";e[\"ItcSymbol-Medium\"]=\"Helvetica\";e[\"ItcSymbol-MediumItalic\"]=\"Helvetica-Oblique\";e.LucidaConsole=\"Courier\";e[\"LucidaConsole-Bold\"]=\"Courier-Bold\";e[\"LucidaConsole-BoldItalic\"]=\"Courier-BoldOblique\";e[\"LucidaConsole-Italic\"]=\"Courier-Oblique\";e[\"LucidaSans-Demi\"]=\"Helvetica-Bold\";e[\"MS-Gothic\"]=\"MS Gothic\";e[\"MS-Gothic-Bold\"]=\"MS Gothic-Bold\";e[\"MS-Gothic-BoldItalic\"]=\"MS Gothic-BoldItalic\";e[\"MS-Gothic-Italic\"]=\"MS Gothic-Italic\";e[\"MS-Mincho\"]=\"MS Mincho\";e[\"MS-Mincho-Bold\"]=\"MS Mincho-Bold\";e[\"MS-Mincho-BoldItalic\"]=\"MS Mincho-BoldItalic\";e[\"MS-Mincho-Italic\"]=\"MS Mincho-Italic\";e[\"MS-PGothic\"]=\"MS PGothic\";e[\"MS-PGothic-Bold\"]=\"MS PGothic-Bold\";e[\"MS-PGothic-BoldItalic\"]=\"MS PGothic-BoldItalic\";e[\"MS-PGothic-Italic\"]=\"MS PGothic-Italic\";e[\"MS-PMincho\"]=\"MS PMincho\";e[\"MS-PMincho-Bold\"]=\"MS PMincho-Bold\";e[\"MS-PMincho-BoldItalic\"]=\"MS PMincho-BoldItalic\";e[\"MS-PMincho-Italic\"]=\"MS PMincho-Italic\";e.NuptialScript=\"Times-Italic\";e.SegoeUISymbol=\"Helvetica\";e.Wingdings=\"ZapfDingbats\";e[\"Wingdings-Regular\"]=\"ZapfDingbats\";});t.getNonStdFontMap=o;var c=(0,a.getLookupTableFactory)(function(e){e[\"Adobe Jenson\"]=!0;e[\"Adobe Text\"]=!0;e.Albertus=!0;e.Aldus=!0;e.Alexandria=!0;e.Algerian=!0;e[\"American Typewriter\"]=!0;e.Antiqua=!0;e.Apex=!0;e.Arno=!0;e.Aster=!0;e.Aurora=!0;e.Baskerville=!0;e.Bell=!0;e.Bembo=!0;e[\"Bembo Schoolbook\"]=!0;e.Benguiat=!0;e[\"Berkeley Old Style\"]=!0;e[\"Bernhard Modern\"]=!0;e[\"Berthold City\"]=!0;e.Bodoni=!0;e[\"Bauer Bodoni\"]=!0;e[\"Book Antiqua\"]=!0;e.Bookman=!0;e[\"Bordeaux Roman\"]=!0;e[\"Californian FB\"]=!0;e.Calisto=!0;e.Calvert=!0;e.Capitals=!0;e.Cambria=!0;e.Cartier=!0;e.Caslon=!0;e.Catull=!0;e.Centaur=!0;e[\"Century Old Style\"]=!0;e[\"Century Schoolbook\"]=!0;e.Chaparral=!0;e[\"Charis SIL\"]=!0;e.Cheltenham=!0;e[\"Cholla Slab\"]=!0;e.Clarendon=!0;e.Clearface=!0;e.Cochin=!0;e.Colonna=!0;e[\"Computer Modern\"]=!0;e[\"Concrete Roman\"]=!0;e.Constantia=!0;e[\"Cooper Black\"]=!0;e.Corona=!0;e.Ecotype=!0;e.Egyptienne=!0;e.Elephant=!0;e.Excelsior=!0;e.Fairfield=!0;e[\"FF Scala\"]=!0;e.Folkard=!0;e.Footlight=!0;e.FreeSerif=!0;e[\"Friz Quadrata\"]=!0;e.Garamond=!0;e.Gentium=!0;e.Georgia=!0;e.Gloucester=!0;e[\"Goudy Old Style\"]=!0;e[\"Goudy Schoolbook\"]=!0;e[\"Goudy Pro Font\"]=!0;e.Granjon=!0;e[\"Guardian Egyptian\"]=!0;e.Heather=!0;e.Hercules=!0;e[\"High Tower Text\"]=!0;e.Hiroshige=!0;e[\"Hoefler Text\"]=!0;e[\"Humana Serif\"]=!0;e.Imprint=!0;e[\"Ionic No. 5\"]=!0;e.Janson=!0;e.Joanna=!0;e.Korinna=!0;e.Lexicon=!0;e.LiberationSerif=!0;e[\"Liberation Serif\"]=!0;e[\"Linux Libertine\"]=!0;e.Literaturnaya=!0;e.Lucida=!0;e[\"Lucida Bright\"]=!0;e.Melior=!0;e.Memphis=!0;e.Miller=!0;e.Minion=!0;e.Modern=!0;e[\"Mona Lisa\"]=!0;e[\"Mrs Eaves\"]=!0;e[\"MS Serif\"]=!0;e[\"Museo Slab\"]=!0;e[\"New York\"]=!0;e[\"Nimbus Roman\"]=!0;e[\"NPS Rawlinson Roadway\"]=!0;e.NuptialScript=!0;e.Palatino=!0;e.Perpetua=!0;e.Plantin=!0;e[\"Plantin Schoolbook\"]=!0;e.Playbill=!0;e[\"Poor Richard\"]=!0;e[\"Rawlinson Roadway\"]=!0;e.Renault=!0;e.Requiem=!0;e.Rockwell=!0;e.Roman=!0;e[\"Rotis Serif\"]=!0;e.Sabon=!0;e.Scala=!0;e.Seagull=!0;e.Sistina=!0;e.Souvenir=!0;e.STIX=!0;e[\"Stone Informal\"]=!0;e[\"Stone Serif\"]=!0;e.Sylfaen=!0;e.Times=!0;e.Trajan=!0;e[\"Trinité\"]=!0;e[\"Trump Mediaeval\"]=!0;e.Utopia=!0;e[\"Vale Type\"]=!0;e[\"Bitstream Vera\"]=!0;e[\"Vera Serif\"]=!0;e.Versailles=!0;e.Wanted=!0;e.Weiss=!0;e[\"Wide Latin\"]=!0;e.Windsor=!0;e.XITS=!0;});t.getSerifFonts=c;var l=(0,a.getLookupTableFactory)(function(e){e.Dingbats=!0;e.Symbol=!0;e.ZapfDingbats=!0;});t.getSymbolsFonts=l;var h=(0,a.getLookupTableFactory)(function(e){e[2]=10;e[3]=32;e[4]=33;e[5]=34;e[6]=35;e[7]=36;e[8]=37;e[9]=38;e[10]=39;e[11]=40;e[12]=41;e[13]=42;e[14]=43;e[15]=44;e[16]=45;e[17]=46;e[18]=47;e[19]=48;e[20]=49;e[21]=50;e[22]=51;e[23]=52;e[24]=53;e[25]=54;e[26]=55;e[27]=56;e[28]=57;e[29]=58;e[30]=894;e[31]=60;e[32]=61;e[33]=62;e[34]=63;e[35]=64;e[36]=65;e[37]=66;e[38]=67;e[39]=68;e[40]=69;e[41]=70;e[42]=71;e[43]=72;e[44]=73;e[45]=74;e[46]=75;e[47]=76;e[48]=77;e[49]=78;e[50]=79;e[51]=80;e[52]=81;e[53]=82;e[54]=83;e[55]=84;e[56]=85;e[57]=86;e[58]=87;e[59]=88;e[60]=89;e[61]=90;e[62]=91;e[63]=92;e[64]=93;e[65]=94;e[66]=95;e[67]=96;e[68]=97;e[69]=98;e[70]=99;e[71]=100;e[72]=101;e[73]=102;e[74]=103;e[75]=104;e[76]=105;e[77]=106;e[78]=107;e[79]=108;e[80]=109;e[81]=110;e[82]=111;e[83]=112;e[84]=113;e[85]=114;e[86]=115;e[87]=116;e[88]=117;e[89]=118;e[90]=119;e[91]=120;e[92]=121;e[93]=122;e[94]=123;e[95]=124;e[96]=125;e[97]=126;e[98]=196;e[99]=197;e[100]=199;e[101]=201;e[102]=209;e[103]=214;e[104]=220;e[105]=225;e[106]=224;e[107]=226;e[108]=228;e[109]=227;e[110]=229;e[111]=231;e[112]=233;e[113]=232;e[114]=234;e[115]=235;e[116]=237;e[117]=236;e[118]=238;e[119]=239;e[120]=241;e[121]=243;e[122]=242;e[123]=244;e[124]=246;e[125]=245;e[126]=250;e[127]=249;e[128]=251;e[129]=252;e[130]=8224;e[131]=176;e[132]=162;e[133]=163;e[134]=167;e[135]=8226;e[136]=182;e[137]=223;e[138]=174;e[139]=169;e[140]=8482;e[141]=180;e[142]=168;e[143]=8800;e[144]=198;e[145]=216;e[146]=8734;e[147]=177;e[148]=8804;e[149]=8805;e[150]=165;e[151]=181;e[152]=8706;e[153]=8721;e[154]=8719;e[156]=8747;e[157]=170;e[158]=186;e[159]=8486;e[160]=230;e[161]=248;e[162]=191;e[163]=161;e[164]=172;e[165]=8730;e[166]=402;e[167]=8776;e[168]=8710;e[169]=171;e[170]=187;e[171]=8230;e[200]=193;e[203]=205;e[210]=218;e[223]=711;e[224]=321;e[225]=322;e[226]=352;e[227]=353;e[228]=381;e[229]=382;e[233]=221;e[234]=253;e[252]=263;e[253]=268;e[254]=269;e[258]=258;e[260]=260;e[261]=261;e[265]=280;e[266]=281;e[267]=282;e[268]=283;e[269]=313;e[275]=323;e[276]=324;e[278]=328;e[283]=344;e[284]=345;e[285]=346;e[286]=347;e[292]=367;e[295]=377;e[296]=378;e[298]=380;e[305]=963;e[306]=964;e[307]=966;e[308]=8215;e[309]=8252;e[310]=8319;e[311]=8359;e[312]=8592;e[313]=8593;e[337]=9552;e[493]=1039;e[494]=1040;e[672]=1488;e[673]=1489;e[674]=1490;e[675]=1491;e[676]=1492;e[677]=1493;e[678]=1494;e[679]=1495;e[680]=1496;e[681]=1497;e[682]=1498;e[683]=1499;e[684]=1500;e[685]=1501;e[686]=1502;e[687]=1503;e[688]=1504;e[689]=1505;e[690]=1506;e[691]=1507;e[692]=1508;e[693]=1509;e[694]=1510;e[695]=1511;e[696]=1512;e[697]=1513;e[698]=1514;e[705]=1524;e[706]=8362;e[710]=64288;e[711]=64298;e[759]=1617;e[761]=1776;e[763]=1778;e[775]=1652;e[777]=1764;e[778]=1780;e[779]=1781;e[780]=1782;e[782]=771;e[783]=64726;e[786]=8363;e[788]=8532;e[790]=768;e[791]=769;e[792]=768;e[795]=803;e[797]=64336;e[798]=64337;e[799]=64342;e[800]=64343;e[801]=64344;e[802]=64345;e[803]=64362;e[804]=64363;e[805]=64364;e[2424]=7821;e[2425]=7822;e[2426]=7823;e[2427]=7824;e[2428]=7825;e[2429]=7826;e[2430]=7827;e[2433]=7682;e[2678]=8045;e[2679]=8046;e[2830]=1552;e[2838]=686;e[2840]=751;e[2842]=753;e[2843]=754;e[2844]=755;e[2846]=757;e[2856]=767;e[2857]=848;e[2858]=849;e[2862]=853;e[2863]=854;e[2864]=855;e[2865]=861;e[2866]=862;e[2906]=7460;e[2908]=7462;e[2909]=7463;e[2910]=7464;e[2912]=7466;e[2913]=7467;e[2914]=7468;e[2916]=7470;e[2917]=7471;e[2918]=7472;e[2920]=7474;e[2921]=7475;e[2922]=7476;e[2924]=7478;e[2925]=7479;e[2926]=7480;e[2928]=7482;e[2929]=7483;e[2930]=7484;e[2932]=7486;e[2933]=7487;e[2934]=7488;e[2936]=7490;e[2937]=7491;e[2938]=7492;e[2940]=7494;e[2941]=7495;e[2942]=7496;e[2944]=7498;e[2946]=7500;e[2948]=7502;e[2950]=7504;e[2951]=7505;e[2952]=7506;e[2954]=7508;e[2955]=7509;e[2956]=7510;e[2958]=7512;e[2959]=7513;e[2960]=7514;e[2962]=7516;e[2963]=7517;e[2964]=7518;e[2966]=7520;e[2967]=7521;e[2968]=7522;e[2970]=7524;e[2971]=7525;e[2972]=7526;e[2974]=7528;e[2975]=7529;e[2976]=7530;e[2978]=1537;e[2979]=1538;e[2980]=1539;e[2982]=1549;e[2983]=1551;e[2984]=1552;e[2986]=1554;e[2987]=1555;e[2988]=1556;e[2990]=1623;e[2991]=1624;e[2995]=1775;e[2999]=1791;e[3002]=64290;e[3003]=64291;e[3004]=64292;e[3006]=64294;e[3007]=64295;e[3008]=64296;e[3011]=1900;e[3014]=8223;e[3015]=8244;e[3017]=7532;e[3018]=7533;e[3019]=7534;e[3075]=7590;e[3076]=7591;e[3079]=7594;e[3080]=7595;e[3083]=7598;e[3084]=7599;e[3087]=7602;e[3088]=7603;e[3091]=7606;e[3092]=7607;e[3095]=7610;e[3096]=7611;e[3099]=7614;e[3100]=7615;e[3103]=7618;e[3104]=7619;e[3107]=8337;e[3108]=8338;e[3116]=1884;e[3119]=1885;e[3120]=1885;e[3123]=1886;e[3124]=1886;e[3127]=1887;e[3128]=1887;e[3131]=1888;e[3132]=1888;e[3135]=1889;e[3136]=1889;e[3139]=1890;e[3140]=1890;e[3143]=1891;e[3144]=1891;e[3147]=1892;e[3148]=1892;e[3153]=580;e[3154]=581;e[3157]=584;e[3158]=585;e[3161]=588;e[3162]=589;e[3165]=891;e[3166]=892;e[3169]=1274;e[3170]=1275;e[3173]=1278;e[3174]=1279;e[3181]=7622;e[3182]=7623;e[3282]=11799;e[3316]=578;e[3379]=42785;e[3393]=1159;e[3416]=8377;});t.getGlyphMapForStandardFonts=h;var u=(0,a.getLookupTableFactory)(function(e){e[227]=322;e[264]=261;e[291]=346;});t.getSupplementalGlyphMapForArialBlack=u;var d=(0,a.getLookupTableFactory)(function(e){e[1]=32;e[4]=65;e[6]=193;e[17]=66;e[18]=67;e[21]=268;e[24]=68;e[28]=69;e[30]=201;e[32]=282;e[38]=70;e[39]=71;e[44]=72;e[47]=73;e[49]=205;e[58]=74;e[60]=75;e[62]=76;e[68]=77;e[69]=78;e[75]=79;e[87]=80;e[89]=81;e[90]=82;e[92]=344;e[94]=83;e[97]=352;e[100]=84;e[104]=85;e[115]=86;e[116]=87;e[121]=88;e[122]=89;e[124]=221;e[127]=90;e[129]=381;e[258]=97;e[260]=225;e[268]=261;e[271]=98;e[272]=99;e[273]=263;e[275]=269;e[282]=100;e[286]=101;e[288]=233;e[290]=283;e[295]=281;e[296]=102;e[336]=103;e[346]=104;e[349]=105;e[351]=237;e[361]=106;e[364]=107;e[367]=108;e[371]=322;e[373]=109;e[374]=110;e[381]=111;e[383]=243;e[393]=112;e[395]=113;e[396]=114;e[398]=345;e[400]=115;e[401]=347;e[403]=353;e[410]=116;e[437]=117;e[448]=118;e[449]=119;e[454]=120;e[455]=121;e[457]=253;e[460]=122;e[462]=382;e[463]=380;e[853]=44;e[855]=58;e[856]=46;e[876]=47;e[878]=45;e[882]=45;e[894]=40;e[895]=41;e[896]=91;e[897]=93;e[923]=64;e[1004]=48;e[1005]=49;e[1006]=50;e[1007]=51;e[1008]=52;e[1009]=53;e[1010]=54;e[1011]=55;e[1012]=56;e[1013]=57;e[1081]=37;e[1085]=43;e[1086]=45;});t.getSupplementalGlyphMapForCalibri=d;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.ToUnicodeMap=t.IdentityToUnicodeMap=void 0;var a=r(2);t.ToUnicodeMap=/*#__PURE__*/function(){function ToUnicodeMap(){_classCallCheck(this,ToUnicodeMap);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._map=e;}_createClass(ToUnicodeMap,[{key:\"length\",get:function get(){return this._map.length;}},{key:\"forEach\",value:function forEach(e){for(var _t259 in this._map)e(_t259,this._map[_t259].charCodeAt(0));}},{key:\"has\",value:function has(e){return void 0!==this._map[e];}},{key:\"get\",value:function get(e){return this._map[e];}},{key:\"charCodeOf\",value:function charCodeOf(e){var t=this._map;if(t.length<=65536)return _indexOfInstanceProperty(t).call(t,e);for(var _r218 in t)if(t[_r218]===e)return 0|_r218;return-1;}},{key:\"amend\",value:function amend(e){for(var _t260 in e)this._map[_t260]=e[_t260];}}]);return ToUnicodeMap;}();t.IdentityToUnicodeMap=/*#__PURE__*/function(){function IdentityToUnicodeMap(e,t){_classCallCheck(this,IdentityToUnicodeMap);this.firstChar=e;this.lastChar=t;}_createClass(IdentityToUnicodeMap,[{key:\"length\",get:function get(){return this.lastChar+1-this.firstChar;}},{key:\"forEach\",value:function forEach(e){for(var _t261=this.firstChar,_r219=this.lastChar;_t261<=_r219;_t261++)e(_t261,_t261);}},{key:\"has\",value:function has(e){return this.firstChar<=e&&e<=this.lastChar;}},{key:\"get\",value:function get(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e);}},{key:\"charCodeOf\",value:function charCodeOf(e){return _Number$isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1;}},{key:\"amend\",value:function amend(e){(0,a.unreachable)(\"Should not call amend()\");}}]);return IdentityToUnicodeMap;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.CFFFont=void 0;var a=r(160),n=r(163),i=r(2);t.CFFFont=/*#__PURE__*/function(){function CFFFont(e,t){_classCallCheck(this,CFFFont);this.properties=t;var r=new a.CFFParser(e,t,n.SEAC_ANALYSIS_ENABLED);this.cff=r.parse();this.cff.duplicateFirstGlyph();var s=new a.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=s.compile();}catch(r){(0,i.warn)(\"Failed to compile font \"+t.loadedName);this.data=e;}this._createBuiltInEncoding();}_createClass(CFFFont,[{key:\"numGlyphs\",get:function get(){return this.cff.charStrings.count;}},{key:\"getCharset\",value:function getCharset(){return this.cff.charset.charset;}},{key:\"getGlyphMapping\",value:function getGlyphMapping(){var e=this.cff,t=this.properties,r=e.charset.charset;var a,i;if(t.composite){a=Object.create(null);var _n136;if(e.isCIDFont)for(i=0;i<r.length;i++){var _e349=r[i];_n136=t.cMap.charCodeOf(_e349);a[_n136]=i;}else for(i=0;i<e.charStrings.count;i++){_n136=t.cMap.charCodeOf(i);a[_n136]=i;}return a;}var s=e.encoding?e.encoding.encoding:null;t.isInternalFont&&(s=t.defaultEncoding);a=(0,n.type1FontGlyphMapping)(t,s,r);return a;}},{key:\"hasGlyphId\",value:function hasGlyphId(e){return this.cff.hasGlyphId(e);}},{key:\"_createBuiltInEncoding\",value:function _createBuiltInEncoding(){var _this$cff=this.cff,e=_this$cff.charset,t=_this$cff.encoding;if(!e||!t)return;var r=e.charset,a=t.encoding,n=[];for(var _e350 in a){var _t262=a[_e350];if(_t262>=0){var _a171=r[_t262];_a171&&(n[_e350]=_a171);}}n.length>0&&(this.properties.builtInEncoding=n);}}]);return CFFFont;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.FontRendererFactory=void 0;var a=r(2),n=r(160),i=r(164),s=r(162),o=r(135);function getUint32(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0;}function getUint16(e,t){return e[t]<<8|e[t+1];}function getInt16(e,t){return(e[t]<<24|e[t+1]<<16)>>16;}function getInt8(e,t){return e[t]<<24>>24;}function getFloat214(e,t){return getInt16(e,t)/16384;}function getSubroutineBias(e){var t=e.length;var r=32768;t<1240?r=107:t<33900&&(r=1131);return r;}function parseCmap(e,t,r){var n=1===getUint16(e,t+2)?getUint32(e,t+8):getUint32(e,t+16),i=getUint16(e,t+n);var s,o,c;if(4===i){getUint16(e,t+n+2);var _r220=getUint16(e,t+n+6)>>1;o=t+n+14;s=[];for(c=0;c<_r220;c++,o+=2)s[c]={end:getUint16(e,o)};o+=2;for(c=0;c<_r220;c++,o+=2)s[c].start=getUint16(e,o);for(c=0;c<_r220;c++,o+=2)s[c].idDelta=getUint16(e,o);for(c=0;c<_r220;c++,o+=2){var _t263=getUint16(e,o);if(0!==_t263){s[c].ids=[];for(var _r221=0,_a172=s[c].end-s[c].start+1;_r221<_a172;_r221++){s[c].ids[_r221]=getUint16(e,o+_t263);_t263+=2;}}}return s;}if(12===i){var _r222=getUint32(e,t+n+12);o=t+n+16;s=[];for(c=0;c<_r222;c++){t=getUint32(e,o);s.push({start:t,end:getUint32(e,o+4),idDelta:getUint32(e,o+8)-t});o+=12;}return s;}throw new a.FormatError(\"unsupported cmap: \".concat(i));}function parseCff(e,t,r,a){var i=new n.CFFParser(new o.Stream(e,t,r-t),{},a).parse();return{glyphs:i.charStrings.objects,subrs:i.topDict.privateDict&&i.topDict.privateDict.subrsIndex&&i.topDict.privateDict.subrsIndex.objects,gsubrs:i.globalSubrIndex&&i.globalSubrIndex.objects,isCFFCIDFont:i.isCIDFont,fdSelect:i.fdSelect,fdArray:i.fdArray};}function lookupCmap(e,t){var r=_codePointAtInstanceProperty(t).call(t,0);var a=0,n=0,i=e.length-1;for(;n<i;){var _t264=n+i+1>>1;r<e[_t264].start?i=_t264-1:n=_t264;}e[n].start<=r&&r<=e[n].end&&(a=e[n].idDelta+(e[n].ids?e[n].ids[r-e[n].start]:r)&65535);return{charCode:r,glyphId:a};}function compileGlyf(e,t,r){function moveTo(e,r){t.push({cmd:\"moveTo\",args:[e,r]});}function lineTo(e,r){t.push({cmd:\"lineTo\",args:[e,r]});}function quadraticCurveTo(e,r,a,n){t.push({cmd:\"quadraticCurveTo\",args:[e,r,a,n]});}var a=0;var n=getInt16(e,a);var i,s=0,o=0;a+=10;if(n<0)do{i=getUint16(e,a);var _n137=getUint16(e,a+2);a+=4;var _c37=void 0,l=void 0;if(1&i){if(2&i){_c37=getInt16(e,a);l=getInt16(e,a+2);}else{_c37=getUint16(e,a);l=getUint16(e,a+2);}a+=4;}else if(2&i){_c37=getInt8(e,a++);l=getInt8(e,a++);}else{_c37=e[a++];l=e[a++];}if(2&i){s=_c37;o=l;}else{s=0;o=0;}var _h21=1,u=1,d=0,f=0;if(8&i){_h21=u=getFloat214(e,a);a+=2;}else if(64&i){_h21=getFloat214(e,a);u=getFloat214(e,a+2);a+=4;}else if(128&i){_h21=getFloat214(e,a);d=getFloat214(e,a+2);f=getFloat214(e,a+4);u=getFloat214(e,a+6);a+=8;}var _g17=r.glyphs[_n137];if(_g17){t.push({cmd:\"save\"},{cmd:\"transform\",args:[_h21,d,f,u,s,o]});compileGlyf(_g17,t,r);t.push({cmd:\"restore\"});}}while(32&i);else{var _t265=[];var _r223,_c38;for(_r223=0;_r223<n;_r223++){_t265.push(getUint16(e,a));a+=2;}a+=2+getUint16(e,a);var _l26=_t265.at(-1)+1,_h22=[];for(;_h22.length<_l26;){i=e[a++];var _t266=1;8&i&&(_t266+=e[a++]);for(;_t266-->0;)_h22.push({flags:i});}for(_r223=0;_r223<_l26;_r223++){switch(18&_flagsInstanceProperty(_h22[_r223])){case 0:s+=getInt16(e,a);a+=2;break;case 2:s-=e[a++];break;case 18:s+=e[a++];}_h22[_r223].x=s;}for(_r223=0;_r223<_l26;_r223++){switch(36&_flagsInstanceProperty(_h22[_r223])){case 0:o+=getInt16(e,a);a+=2;break;case 4:o-=e[a++];break;case 36:o+=e[a++];}_h22[_r223].y=o;}var _u12=0;for(a=0;a<n;a++){var _e351=_t265[a],_n138=_sliceInstanceProperty(_h22).call(_h22,_u12,_e351+1);if(1&_flagsInstanceProperty(_n138[0]))_n138.push(_n138[0]);else if(1&_flagsInstanceProperty(_n138.at(-1)))_n138.unshift(_n138.at(-1));else{var _e352={flags:1,x:(_n138[0].x+_n138.at(-1).x)/2,y:(_n138[0].y+_n138.at(-1).y)/2};_n138.unshift(_e352);_n138.push(_e352);}moveTo(_n138[0].x,_n138[0].y);for(_r223=1,_c38=_n138.length;_r223<_c38;_r223++)if(1&_flagsInstanceProperty(_n138[_r223]))lineTo(_n138[_r223].x,_n138[_r223].y);else if(1&_flagsInstanceProperty(_n138[_r223+1])){quadraticCurveTo(_n138[_r223].x,_n138[_r223].y,_n138[_r223+1].x,_n138[_r223+1].y);_r223++;}else quadraticCurveTo(_n138[_r223].x,_n138[_r223].y,(_n138[_r223].x+_n138[_r223+1].x)/2,(_n138[_r223].y+_n138[_r223+1].y)/2);_u12=_e351+1;}}}function compileCharString(e,t,r,n){function moveTo(e,r){t.push({cmd:\"moveTo\",args:[e,r]});}function lineTo(e,r){t.push({cmd:\"lineTo\",args:[e,r]});}function bezierCurveTo(e,r,a,n,i,s){t.push({cmd:\"bezierCurveTo\",args:[e,r,a,n,i,s]});}var i=[];var o=0,c=0,l=0;!function parse(e){var h=0;for(;h<e.length;){var u=void 0,d=void 0,f=void 0,_g18=void 0,_p11=void 0,_m9=void 0,b=void 0,y=void 0,w=void 0,S=!1,x=e[h++];switch(x){case 1:case 3:case 18:case 23:l+=i.length>>1;S=!0;break;case 4:c+=i.pop();moveTo(o,c);S=!0;break;case 5:for(;i.length>0;){o+=i.shift();c+=i.shift();lineTo(o,c);}break;case 6:for(;i.length>0;){o+=i.shift();lineTo(o,c);if(0===i.length)break;c+=i.shift();lineTo(o,c);}break;case 7:for(;i.length>0;){c+=i.shift();lineTo(o,c);if(0===i.length)break;o+=i.shift();lineTo(o,c);}break;case 8:for(;i.length>0;){u=o+i.shift();f=c+i.shift();d=u+i.shift();_g18=f+i.shift();o=d+i.shift();c=_g18+i.shift();bezierCurveTo(u,f,d,_g18,o,c);}break;case 10:y=i.pop();w=null;if(r.isCFFCIDFont){var _e353=r.fdSelect.getFDIndex(n);if(_e353>=0&&_e353<r.fdArray.length){var _t267=r.fdArray[_e353];var _a173=void 0;_t267.privateDict&&_t267.privateDict.subrsIndex&&(_a173=_t267.privateDict.subrsIndex.objects);if(_a173){y+=getSubroutineBias(_a173);w=_a173[y];}}else(0,a.warn)(\"Invalid fd index for glyph index.\");}else w=r.subrs[y+r.subrsBias];w&&parse(w);break;case 11:return;case 12:x=e[h++];switch(x){case 34:u=o+i.shift();d=u+i.shift();_p11=c+i.shift();o=d+i.shift();bezierCurveTo(u,c,d,_p11,o,_p11);u=o+i.shift();d=u+i.shift();o=d+i.shift();bezierCurveTo(u,_p11,d,c,o,c);break;case 35:u=o+i.shift();f=c+i.shift();d=u+i.shift();_g18=f+i.shift();o=d+i.shift();c=_g18+i.shift();bezierCurveTo(u,f,d,_g18,o,c);u=o+i.shift();f=c+i.shift();d=u+i.shift();_g18=f+i.shift();o=d+i.shift();c=_g18+i.shift();bezierCurveTo(u,f,d,_g18,o,c);i.pop();break;case 36:u=o+i.shift();_p11=c+i.shift();d=u+i.shift();_m9=_p11+i.shift();o=d+i.shift();bezierCurveTo(u,_p11,d,_m9,o,_m9);u=o+i.shift();d=u+i.shift();b=_m9+i.shift();o=d+i.shift();bezierCurveTo(u,_m9,d,b,o,c);break;case 37:var _e354=o,_t268=c;u=o+i.shift();f=c+i.shift();d=u+i.shift();_g18=f+i.shift();o=d+i.shift();c=_g18+i.shift();bezierCurveTo(u,f,d,_g18,o,c);u=o+i.shift();f=c+i.shift();d=u+i.shift();_g18=f+i.shift();o=d;c=_g18;Math.abs(o-_e354)>Math.abs(c-_t268)?o+=i.shift():c+=i.shift();bezierCurveTo(u,f,d,_g18,o,c);break;default:throw new a.FormatError(\"unknown operator: 12 \".concat(x));}break;case 14:if(i.length>=4){var _e355=i.pop(),_a174=i.pop();c=i.pop();o=i.pop();t.push({cmd:\"save\"},{cmd:\"translate\",args:[o,c]});var _n139=lookupCmap(r.cmap,String.fromCharCode(r.glyphNameMap[s.StandardEncoding[_e355]]));compileCharString(r.glyphs[_n139.glyphId],t,r,_n139.glyphId);t.push({cmd:\"restore\"});_n139=lookupCmap(r.cmap,String.fromCharCode(r.glyphNameMap[s.StandardEncoding[_a174]]));compileCharString(r.glyphs[_n139.glyphId],t,r,_n139.glyphId);}return;case 19:case 20:l+=i.length>>1;h+=l+7>>3;S=!0;break;case 21:c+=i.pop();o+=i.pop();moveTo(o,c);S=!0;break;case 22:o+=i.pop();moveTo(o,c);S=!0;break;case 24:for(;i.length>2;){u=o+i.shift();f=c+i.shift();d=u+i.shift();_g18=f+i.shift();o=d+i.shift();c=_g18+i.shift();bezierCurveTo(u,f,d,_g18,o,c);}o+=i.shift();c+=i.shift();lineTo(o,c);break;case 25:for(;i.length>6;){o+=i.shift();c+=i.shift();lineTo(o,c);}u=o+i.shift();f=c+i.shift();d=u+i.shift();_g18=f+i.shift();o=d+i.shift();c=_g18+i.shift();bezierCurveTo(u,f,d,_g18,o,c);break;case 26:i.length%2&&(o+=i.shift());for(;i.length>0;){u=o;f=c+i.shift();d=u+i.shift();_g18=f+i.shift();o=d;c=_g18+i.shift();bezierCurveTo(u,f,d,_g18,o,c);}break;case 27:i.length%2&&(c+=i.shift());for(;i.length>0;){u=o+i.shift();f=c;d=u+i.shift();_g18=f+i.shift();o=d+i.shift();c=_g18;bezierCurveTo(u,f,d,_g18,o,c);}break;case 28:i.push((e[h]<<24|e[h+1]<<16)>>16);h+=2;break;case 29:y=i.pop()+r.gsubrsBias;w=r.gsubrs[y];w&&parse(w);break;case 30:for(;i.length>0;){u=o;f=c+i.shift();d=u+i.shift();_g18=f+i.shift();o=d+i.shift();c=_g18+(1===i.length?i.shift():0);bezierCurveTo(u,f,d,_g18,o,c);if(0===i.length)break;u=o+i.shift();f=c;d=u+i.shift();_g18=f+i.shift();c=_g18+i.shift();o=d+(1===i.length?i.shift():0);bezierCurveTo(u,f,d,_g18,o,c);}break;case 31:for(;i.length>0;){u=o+i.shift();f=c;d=u+i.shift();_g18=f+i.shift();c=_g18+i.shift();o=d+(1===i.length?i.shift():0);bezierCurveTo(u,f,d,_g18,o,c);if(0===i.length)break;u=o;f=c+i.shift();d=u+i.shift();_g18=f+i.shift();o=d+i.shift();c=_g18+(1===i.length?i.shift():0);bezierCurveTo(u,f,d,_g18,o,c);}break;default:if(x<32)throw new a.FormatError(\"unknown operator: \".concat(x));if(x<247)i.push(x-139);else if(x<251)i.push(256*(x-247)+e[h++]+108);else if(x<255)i.push(256*-(x-251)-e[h++]-108);else{i.push((e[h]<<24|e[h+1]<<16|e[h+2]<<8|e[h+3])/65536);h+=4;}}S&&(i.length=0);}}(e);}var c=[];var CompiledFont=/*#__PURE__*/function(){function CompiledFont(e){_classCallCheck(this,CompiledFont);this.constructor===CompiledFont&&(0,a.unreachable)(\"Cannot initialize CompiledFont.\");this.fontMatrix=e;this.compiledGlyphs=Object.create(null);this.compiledCharCodeToGlyphId=Object.create(null);}_createClass(CompiledFont,[{key:\"getPathJs\",value:function getPathJs(e){var _lookupCmap=lookupCmap(this.cmap,e),t=_lookupCmap.charCode,r=_lookupCmap.glyphId;var a=this.compiledGlyphs[r];if(!a)try{a=this.compileGlyph(this.glyphs[r],r);this.compiledGlyphs[r]=a;}catch(e){this.compiledGlyphs[r]=c;void 0===this.compiledCharCodeToGlyphId[t]&&(this.compiledCharCodeToGlyphId[t]=r);throw e;}void 0===this.compiledCharCodeToGlyphId[t]&&(this.compiledCharCodeToGlyphId[t]=r);return a;}},{key:\"compileGlyph\",value:function compileGlyph(e,t){if(!e||0===e.length||14===e[0])return c;var r=this.fontMatrix;if(this.isCFFCIDFont){var _e356=this.fdSelect.getFDIndex(t);if(_e356>=0&&_e356<this.fdArray.length){r=this.fdArray[_e356].getByName(\"FontMatrix\")||a.FONT_IDENTITY_MATRIX;}else(0,a.warn)(\"Invalid fd index for glyph index.\");}var n=[{cmd:\"save\"},{cmd:\"transform\",args:_sliceInstanceProperty(r).call(r)},{cmd:\"scale\",args:[\"size\",\"-size\"]}];this.compileGlyphImpl(e,n,t);n.push({cmd:\"restore\"});return n;}},{key:\"compileGlyphImpl\",value:function compileGlyphImpl(){(0,a.unreachable)(\"Children classes should implement this.\");}},{key:\"hasBuiltPath\",value:function hasBuiltPath(e){var _lookupCmap2=lookupCmap(this.cmap,e),t=_lookupCmap2.charCode,r=_lookupCmap2.glyphId;return void 0!==this.compiledGlyphs[r]&&void 0!==this.compiledCharCodeToGlyphId[t];}}]);return CompiledFont;}();var TrueTypeCompiled=/*#__PURE__*/function(_CompiledFont){_inherits(TrueTypeCompiled,_CompiledFont);function TrueTypeCompiled(e,t,r){var _this80;_classCallCheck(this,TrueTypeCompiled);_this80=_callSuper(this,TrueTypeCompiled,[r||[488e-6,0,0,488e-6,0,0]]);_this80.glyphs=e;_this80.cmap=t;return _this80;}_createClass(TrueTypeCompiled,[{key:\"compileGlyphImpl\",value:function compileGlyphImpl(e,t){compileGlyf(e,t,this);}}]);return TrueTypeCompiled;}(CompiledFont);var Type2Compiled=/*#__PURE__*/function(_CompiledFont2){_inherits(Type2Compiled,_CompiledFont2);function Type2Compiled(e,t,r,a){var _this81;_classCallCheck(this,Type2Compiled);_this81=_callSuper(this,Type2Compiled,[r||[.001,0,0,.001,0,0]]);_this81.glyphs=e.glyphs;_this81.gsubrs=e.gsubrs||[];_this81.subrs=e.subrs||[];_this81.cmap=t;_this81.glyphNameMap=a||(0,i.getGlyphsUnicode)();_this81.gsubrsBias=getSubroutineBias(_this81.gsubrs);_this81.subrsBias=getSubroutineBias(_this81.subrs);_this81.isCFFCIDFont=e.isCFFCIDFont;_this81.fdSelect=e.fdSelect;_this81.fdArray=e.fdArray;return _this81;}_createClass(Type2Compiled,[{key:\"compileGlyphImpl\",value:function compileGlyphImpl(e,t,r){compileCharString(e,t,this,r);}}]);return Type2Compiled;}(CompiledFont);t.FontRendererFactory=/*#__PURE__*/function(){function FontRendererFactory(){_classCallCheck(this,FontRendererFactory);}_createClass(FontRendererFactory,null,[{key:\"create\",value:function create(e,t){var r=new Uint8Array(e.data);var n,i,s,o,c,l;var h=getUint16(r,4);for(var _e357=0,u=12;_e357<h;_e357++,u+=16){var _e358=(0,a.bytesToString)(r.subarray(u,u+4)),_h23=getUint32(r,u+8),d=getUint32(r,u+12);switch(_e358){case\"cmap\":n=parseCmap(r,_h23);break;case\"glyf\":i=r.subarray(_h23,_h23+d);break;case\"loca\":s=r.subarray(_h23,_h23+d);break;case\"head\":l=getUint16(r,_h23+18);c=getUint16(r,_h23+50);break;case\"CFF \":o=parseCff(r,_h23,_h23+d,t);}}if(i){var _t269=l?[1/l,0,0,1/l,0,0]:e.fontMatrix;return new TrueTypeCompiled(function parseGlyfTable(e,t,r){var a,n;if(r){a=4;n=getUint32;}else{a=2;n=function n(e,t){return 2*getUint16(e,t);};}var i=[];var s=n(t,0);for(var _r224=a;_r224<t.length;_r224+=a){var _a175=n(t,_r224);i.push(e.subarray(s,_a175));s=_a175;}return i;}(i,s,c),n,_t269);}return new Type2Compiled(o,n,e.fontMatrix,e.glyphNameMap);}}]);return FontRendererFactory;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.getMetrics=t.getFontBasicMetrics=void 0;var a=r(131);var n=(0,a.getLookupTableFactory)(function(e){e.Courier=600;e[\"Courier-Bold\"]=600;e[\"Courier-BoldOblique\"]=600;e[\"Courier-Oblique\"]=600;e.Helvetica=(0,a.getLookupTableFactory)(function(e){e.space=278;e.exclam=278;e.quotedbl=355;e.numbersign=556;e.dollar=556;e.percent=889;e.ampersand=667;e.quoteright=222;e.parenleft=333;e.parenright=333;e.asterisk=389;e.plus=584;e.comma=278;e.hyphen=333;e.period=278;e.slash=278;e.zero=556;e.one=556;e.two=556;e.three=556;e.four=556;e.five=556;e.six=556;e.seven=556;e.eight=556;e.nine=556;e.colon=278;e.semicolon=278;e.less=584;e.equal=584;e.greater=584;e.question=556;e.at=1015;e.A=667;e.B=667;e.C=722;e.D=722;e.E=667;e.F=611;e.G=778;e.H=722;e.I=278;e.J=500;e.K=667;e.L=556;e.M=833;e.N=722;e.O=778;e.P=667;e.Q=778;e.R=722;e.S=667;e.T=611;e.U=722;e.V=667;e.W=944;e.X=667;e.Y=667;e.Z=611;e.bracketleft=278;e.backslash=278;e.bracketright=278;e.asciicircum=469;e.underscore=556;e.quoteleft=222;e.a=556;e.b=556;e.c=500;e.d=556;e.e=556;e.f=278;e.g=556;e.h=556;e.i=222;e.j=222;e.k=500;e.l=222;e.m=833;e.n=556;e.o=556;e.p=556;e.q=556;e.r=333;e.s=500;e.t=278;e.u=556;e.v=500;e.w=722;e.x=500;e.y=500;e.z=500;e.braceleft=334;e.bar=260;e.braceright=334;e.asciitilde=584;e.exclamdown=333;e.cent=556;e.sterling=556;e.fraction=167;e.yen=556;e.florin=556;e.section=556;e.currency=556;e.quotesingle=191;e.quotedblleft=333;e.guillemotleft=556;e.guilsinglleft=333;e.guilsinglright=333;e.fi=500;e.fl=500;e.endash=556;e.dagger=556;e.daggerdbl=556;e.periodcentered=278;e.paragraph=537;e.bullet=350;e.quotesinglbase=222;e.quotedblbase=333;e.quotedblright=333;e.guillemotright=556;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=611;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=1e3;e.ordfeminine=370;e.Lslash=556;e.Oslash=778;e.OE=1e3;e.ordmasculine=365;e.ae=889;e.dotlessi=278;e.lslash=222;e.oslash=611;e.oe=944;e.germandbls=611;e.Idieresis=278;e.eacute=556;e.abreve=556;e.uhungarumlaut=556;e.ecaron=556;e.Ydieresis=667;e.divide=584;e.Yacute=667;e.Acircumflex=667;e.aacute=556;e.Ucircumflex=722;e.yacute=500;e.scommaaccent=500;e.ecircumflex=556;e.Uring=722;e.Udieresis=722;e.aogonek=556;e.Uacute=722;e.uogonek=556;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=737;e.Emacron=667;e.ccaron=500;e.aring=556;e.Ncommaaccent=722;e.lacute=222;e.agrave=556;e.Tcommaaccent=611;e.Cacute=722;e.atilde=556;e.Edotaccent=667;e.scaron=500;e.scedilla=500;e.iacute=278;e.lozenge=471;e.Rcaron=722;e.Gcommaaccent=778;e.ucircumflex=556;e.acircumflex=556;e.Amacron=667;e.rcaron=333;e.ccedilla=500;e.Zdotaccent=611;e.Thorn=667;e.Omacron=778;e.Racute=722;e.Sacute=667;e.dcaron=643;e.Umacron=722;e.uring=556;e.threesuperior=333;e.Ograve=778;e.Agrave=667;e.Abreve=667;e.multiply=584;e.uacute=556;e.Tcaron=611;e.partialdiff=476;e.ydieresis=500;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=556;e.edieresis=556;e.cacute=500;e.nacute=556;e.umacron=556;e.Ncaron=722;e.Iacute=278;e.plusminus=584;e.brokenbar=260;e.registered=737;e.Gbreve=778;e.Idotaccent=278;e.summation=600;e.Egrave=667;e.racute=333;e.omacron=556;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=722;e.lcommaaccent=222;e.tcaron=317;e.eogonek=556;e.Uogonek=722;e.Aacute=667;e.Adieresis=667;e.egrave=556;e.zacute=500;e.iogonek=222;e.Oacute=778;e.oacute=556;e.amacron=556;e.sacute=500;e.idieresis=278;e.Ocircumflex=778;e.Ugrave=722;e.Delta=612;e.thorn=556;e.twosuperior=333;e.Odieresis=778;e.mu=556;e.igrave=278;e.ohungarumlaut=556;e.Eogonek=667;e.dcroat=556;e.threequarters=834;e.Scedilla=667;e.lcaron=299;e.Kcommaaccent=667;e.Lacute=556;e.trademark=1e3;e.edotaccent=556;e.Igrave=278;e.Imacron=278;e.Lcaron=556;e.onehalf=834;e.lessequal=549;e.ocircumflex=556;e.ntilde=556;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=556;e.gbreve=556;e.onequarter=834;e.Scaron=667;e.Scommaaccent=667;e.Ohungarumlaut=778;e.degree=400;e.ograve=556;e.Ccaron=722;e.ugrave=556;e.radical=453;e.Dcaron=722;e.rcommaaccent=333;e.Ntilde=722;e.otilde=556;e.Rcommaaccent=722;e.Lcommaaccent=556;e.Atilde=667;e.Aogonek=667;e.Aring=667;e.Otilde=778;e.zdotaccent=500;e.Ecaron=667;e.Iogonek=278;e.kcommaaccent=500;e.minus=584;e.Icircumflex=278;e.ncaron=556;e.tcommaaccent=278;e.logicalnot=584;e.odieresis=556;e.udieresis=556;e.notequal=549;e.gcommaaccent=556;e.eth=556;e.zcaron=500;e.ncommaaccent=556;e.onesuperior=333;e.imacron=278;e.Euro=556;});e[\"Helvetica-Bold\"]=(0,a.getLookupTableFactory)(function(e){e.space=278;e.exclam=333;e.quotedbl=474;e.numbersign=556;e.dollar=556;e.percent=889;e.ampersand=722;e.quoteright=278;e.parenleft=333;e.parenright=333;e.asterisk=389;e.plus=584;e.comma=278;e.hyphen=333;e.period=278;e.slash=278;e.zero=556;e.one=556;e.two=556;e.three=556;e.four=556;e.five=556;e.six=556;e.seven=556;e.eight=556;e.nine=556;e.colon=333;e.semicolon=333;e.less=584;e.equal=584;e.greater=584;e.question=611;e.at=975;e.A=722;e.B=722;e.C=722;e.D=722;e.E=667;e.F=611;e.G=778;e.H=722;e.I=278;e.J=556;e.K=722;e.L=611;e.M=833;e.N=722;e.O=778;e.P=667;e.Q=778;e.R=722;e.S=667;e.T=611;e.U=722;e.V=667;e.W=944;e.X=667;e.Y=667;e.Z=611;e.bracketleft=333;e.backslash=278;e.bracketright=333;e.asciicircum=584;e.underscore=556;e.quoteleft=278;e.a=556;e.b=611;e.c=556;e.d=611;e.e=556;e.f=333;e.g=611;e.h=611;e.i=278;e.j=278;e.k=556;e.l=278;e.m=889;e.n=611;e.o=611;e.p=611;e.q=611;e.r=389;e.s=556;e.t=333;e.u=611;e.v=556;e.w=778;e.x=556;e.y=556;e.z=500;e.braceleft=389;e.bar=280;e.braceright=389;e.asciitilde=584;e.exclamdown=333;e.cent=556;e.sterling=556;e.fraction=167;e.yen=556;e.florin=556;e.section=556;e.currency=556;e.quotesingle=238;e.quotedblleft=500;e.guillemotleft=556;e.guilsinglleft=333;e.guilsinglright=333;e.fi=611;e.fl=611;e.endash=556;e.dagger=556;e.daggerdbl=556;e.periodcentered=278;e.paragraph=556;e.bullet=350;e.quotesinglbase=278;e.quotedblbase=500;e.quotedblright=500;e.guillemotright=556;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=611;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=1e3;e.ordfeminine=370;e.Lslash=611;e.Oslash=778;e.OE=1e3;e.ordmasculine=365;e.ae=889;e.dotlessi=278;e.lslash=278;e.oslash=611;e.oe=944;e.germandbls=611;e.Idieresis=278;e.eacute=556;e.abreve=556;e.uhungarumlaut=611;e.ecaron=556;e.Ydieresis=667;e.divide=584;e.Yacute=667;e.Acircumflex=722;e.aacute=556;e.Ucircumflex=722;e.yacute=556;e.scommaaccent=556;e.ecircumflex=556;e.Uring=722;e.Udieresis=722;e.aogonek=556;e.Uacute=722;e.uogonek=611;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=737;e.Emacron=667;e.ccaron=556;e.aring=556;e.Ncommaaccent=722;e.lacute=278;e.agrave=556;e.Tcommaaccent=611;e.Cacute=722;e.atilde=556;e.Edotaccent=667;e.scaron=556;e.scedilla=556;e.iacute=278;e.lozenge=494;e.Rcaron=722;e.Gcommaaccent=778;e.ucircumflex=611;e.acircumflex=556;e.Amacron=722;e.rcaron=389;e.ccedilla=556;e.Zdotaccent=611;e.Thorn=667;e.Omacron=778;e.Racute=722;e.Sacute=667;e.dcaron=743;e.Umacron=722;e.uring=611;e.threesuperior=333;e.Ograve=778;e.Agrave=722;e.Abreve=722;e.multiply=584;e.uacute=611;e.Tcaron=611;e.partialdiff=494;e.ydieresis=556;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=556;e.edieresis=556;e.cacute=556;e.nacute=611;e.umacron=611;e.Ncaron=722;e.Iacute=278;e.plusminus=584;e.brokenbar=280;e.registered=737;e.Gbreve=778;e.Idotaccent=278;e.summation=600;e.Egrave=667;e.racute=389;e.omacron=611;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=722;e.lcommaaccent=278;e.tcaron=389;e.eogonek=556;e.Uogonek=722;e.Aacute=722;e.Adieresis=722;e.egrave=556;e.zacute=500;e.iogonek=278;e.Oacute=778;e.oacute=611;e.amacron=556;e.sacute=556;e.idieresis=278;e.Ocircumflex=778;e.Ugrave=722;e.Delta=612;e.thorn=611;e.twosuperior=333;e.Odieresis=778;e.mu=611;e.igrave=278;e.ohungarumlaut=611;e.Eogonek=667;e.dcroat=611;e.threequarters=834;e.Scedilla=667;e.lcaron=400;e.Kcommaaccent=722;e.Lacute=611;e.trademark=1e3;e.edotaccent=556;e.Igrave=278;e.Imacron=278;e.Lcaron=611;e.onehalf=834;e.lessequal=549;e.ocircumflex=611;e.ntilde=611;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=556;e.gbreve=611;e.onequarter=834;e.Scaron=667;e.Scommaaccent=667;e.Ohungarumlaut=778;e.degree=400;e.ograve=611;e.Ccaron=722;e.ugrave=611;e.radical=549;e.Dcaron=722;e.rcommaaccent=389;e.Ntilde=722;e.otilde=611;e.Rcommaaccent=722;e.Lcommaaccent=611;e.Atilde=722;e.Aogonek=722;e.Aring=722;e.Otilde=778;e.zdotaccent=500;e.Ecaron=667;e.Iogonek=278;e.kcommaaccent=556;e.minus=584;e.Icircumflex=278;e.ncaron=611;e.tcommaaccent=333;e.logicalnot=584;e.odieresis=611;e.udieresis=611;e.notequal=549;e.gcommaaccent=611;e.eth=611;e.zcaron=500;e.ncommaaccent=611;e.onesuperior=333;e.imacron=278;e.Euro=556;});e[\"Helvetica-BoldOblique\"]=(0,a.getLookupTableFactory)(function(e){e.space=278;e.exclam=333;e.quotedbl=474;e.numbersign=556;e.dollar=556;e.percent=889;e.ampersand=722;e.quoteright=278;e.parenleft=333;e.parenright=333;e.asterisk=389;e.plus=584;e.comma=278;e.hyphen=333;e.period=278;e.slash=278;e.zero=556;e.one=556;e.two=556;e.three=556;e.four=556;e.five=556;e.six=556;e.seven=556;e.eight=556;e.nine=556;e.colon=333;e.semicolon=333;e.less=584;e.equal=584;e.greater=584;e.question=611;e.at=975;e.A=722;e.B=722;e.C=722;e.D=722;e.E=667;e.F=611;e.G=778;e.H=722;e.I=278;e.J=556;e.K=722;e.L=611;e.M=833;e.N=722;e.O=778;e.P=667;e.Q=778;e.R=722;e.S=667;e.T=611;e.U=722;e.V=667;e.W=944;e.X=667;e.Y=667;e.Z=611;e.bracketleft=333;e.backslash=278;e.bracketright=333;e.asciicircum=584;e.underscore=556;e.quoteleft=278;e.a=556;e.b=611;e.c=556;e.d=611;e.e=556;e.f=333;e.g=611;e.h=611;e.i=278;e.j=278;e.k=556;e.l=278;e.m=889;e.n=611;e.o=611;e.p=611;e.q=611;e.r=389;e.s=556;e.t=333;e.u=611;e.v=556;e.w=778;e.x=556;e.y=556;e.z=500;e.braceleft=389;e.bar=280;e.braceright=389;e.asciitilde=584;e.exclamdown=333;e.cent=556;e.sterling=556;e.fraction=167;e.yen=556;e.florin=556;e.section=556;e.currency=556;e.quotesingle=238;e.quotedblleft=500;e.guillemotleft=556;e.guilsinglleft=333;e.guilsinglright=333;e.fi=611;e.fl=611;e.endash=556;e.dagger=556;e.daggerdbl=556;e.periodcentered=278;e.paragraph=556;e.bullet=350;e.quotesinglbase=278;e.quotedblbase=500;e.quotedblright=500;e.guillemotright=556;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=611;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=1e3;e.ordfeminine=370;e.Lslash=611;e.Oslash=778;e.OE=1e3;e.ordmasculine=365;e.ae=889;e.dotlessi=278;e.lslash=278;e.oslash=611;e.oe=944;e.germandbls=611;e.Idieresis=278;e.eacute=556;e.abreve=556;e.uhungarumlaut=611;e.ecaron=556;e.Ydieresis=667;e.divide=584;e.Yacute=667;e.Acircumflex=722;e.aacute=556;e.Ucircumflex=722;e.yacute=556;e.scommaaccent=556;e.ecircumflex=556;e.Uring=722;e.Udieresis=722;e.aogonek=556;e.Uacute=722;e.uogonek=611;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=737;e.Emacron=667;e.ccaron=556;e.aring=556;e.Ncommaaccent=722;e.lacute=278;e.agrave=556;e.Tcommaaccent=611;e.Cacute=722;e.atilde=556;e.Edotaccent=667;e.scaron=556;e.scedilla=556;e.iacute=278;e.lozenge=494;e.Rcaron=722;e.Gcommaaccent=778;e.ucircumflex=611;e.acircumflex=556;e.Amacron=722;e.rcaron=389;e.ccedilla=556;e.Zdotaccent=611;e.Thorn=667;e.Omacron=778;e.Racute=722;e.Sacute=667;e.dcaron=743;e.Umacron=722;e.uring=611;e.threesuperior=333;e.Ograve=778;e.Agrave=722;e.Abreve=722;e.multiply=584;e.uacute=611;e.Tcaron=611;e.partialdiff=494;e.ydieresis=556;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=556;e.edieresis=556;e.cacute=556;e.nacute=611;e.umacron=611;e.Ncaron=722;e.Iacute=278;e.plusminus=584;e.brokenbar=280;e.registered=737;e.Gbreve=778;e.Idotaccent=278;e.summation=600;e.Egrave=667;e.racute=389;e.omacron=611;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=722;e.lcommaaccent=278;e.tcaron=389;e.eogonek=556;e.Uogonek=722;e.Aacute=722;e.Adieresis=722;e.egrave=556;e.zacute=500;e.iogonek=278;e.Oacute=778;e.oacute=611;e.amacron=556;e.sacute=556;e.idieresis=278;e.Ocircumflex=778;e.Ugrave=722;e.Delta=612;e.thorn=611;e.twosuperior=333;e.Odieresis=778;e.mu=611;e.igrave=278;e.ohungarumlaut=611;e.Eogonek=667;e.dcroat=611;e.threequarters=834;e.Scedilla=667;e.lcaron=400;e.Kcommaaccent=722;e.Lacute=611;e.trademark=1e3;e.edotaccent=556;e.Igrave=278;e.Imacron=278;e.Lcaron=611;e.onehalf=834;e.lessequal=549;e.ocircumflex=611;e.ntilde=611;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=556;e.gbreve=611;e.onequarter=834;e.Scaron=667;e.Scommaaccent=667;e.Ohungarumlaut=778;e.degree=400;e.ograve=611;e.Ccaron=722;e.ugrave=611;e.radical=549;e.Dcaron=722;e.rcommaaccent=389;e.Ntilde=722;e.otilde=611;e.Rcommaaccent=722;e.Lcommaaccent=611;e.Atilde=722;e.Aogonek=722;e.Aring=722;e.Otilde=778;e.zdotaccent=500;e.Ecaron=667;e.Iogonek=278;e.kcommaaccent=556;e.minus=584;e.Icircumflex=278;e.ncaron=611;e.tcommaaccent=333;e.logicalnot=584;e.odieresis=611;e.udieresis=611;e.notequal=549;e.gcommaaccent=611;e.eth=611;e.zcaron=500;e.ncommaaccent=611;e.onesuperior=333;e.imacron=278;e.Euro=556;});e[\"Helvetica-Oblique\"]=(0,a.getLookupTableFactory)(function(e){e.space=278;e.exclam=278;e.quotedbl=355;e.numbersign=556;e.dollar=556;e.percent=889;e.ampersand=667;e.quoteright=222;e.parenleft=333;e.parenright=333;e.asterisk=389;e.plus=584;e.comma=278;e.hyphen=333;e.period=278;e.slash=278;e.zero=556;e.one=556;e.two=556;e.three=556;e.four=556;e.five=556;e.six=556;e.seven=556;e.eight=556;e.nine=556;e.colon=278;e.semicolon=278;e.less=584;e.equal=584;e.greater=584;e.question=556;e.at=1015;e.A=667;e.B=667;e.C=722;e.D=722;e.E=667;e.F=611;e.G=778;e.H=722;e.I=278;e.J=500;e.K=667;e.L=556;e.M=833;e.N=722;e.O=778;e.P=667;e.Q=778;e.R=722;e.S=667;e.T=611;e.U=722;e.V=667;e.W=944;e.X=667;e.Y=667;e.Z=611;e.bracketleft=278;e.backslash=278;e.bracketright=278;e.asciicircum=469;e.underscore=556;e.quoteleft=222;e.a=556;e.b=556;e.c=500;e.d=556;e.e=556;e.f=278;e.g=556;e.h=556;e.i=222;e.j=222;e.k=500;e.l=222;e.m=833;e.n=556;e.o=556;e.p=556;e.q=556;e.r=333;e.s=500;e.t=278;e.u=556;e.v=500;e.w=722;e.x=500;e.y=500;e.z=500;e.braceleft=334;e.bar=260;e.braceright=334;e.asciitilde=584;e.exclamdown=333;e.cent=556;e.sterling=556;e.fraction=167;e.yen=556;e.florin=556;e.section=556;e.currency=556;e.quotesingle=191;e.quotedblleft=333;e.guillemotleft=556;e.guilsinglleft=333;e.guilsinglright=333;e.fi=500;e.fl=500;e.endash=556;e.dagger=556;e.daggerdbl=556;e.periodcentered=278;e.paragraph=537;e.bullet=350;e.quotesinglbase=222;e.quotedblbase=333;e.quotedblright=333;e.guillemotright=556;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=611;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=1e3;e.ordfeminine=370;e.Lslash=556;e.Oslash=778;e.OE=1e3;e.ordmasculine=365;e.ae=889;e.dotlessi=278;e.lslash=222;e.oslash=611;e.oe=944;e.germandbls=611;e.Idieresis=278;e.eacute=556;e.abreve=556;e.uhungarumlaut=556;e.ecaron=556;e.Ydieresis=667;e.divide=584;e.Yacute=667;e.Acircumflex=667;e.aacute=556;e.Ucircumflex=722;e.yacute=500;e.scommaaccent=500;e.ecircumflex=556;e.Uring=722;e.Udieresis=722;e.aogonek=556;e.Uacute=722;e.uogonek=556;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=737;e.Emacron=667;e.ccaron=500;e.aring=556;e.Ncommaaccent=722;e.lacute=222;e.agrave=556;e.Tcommaaccent=611;e.Cacute=722;e.atilde=556;e.Edotaccent=667;e.scaron=500;e.scedilla=500;e.iacute=278;e.lozenge=471;e.Rcaron=722;e.Gcommaaccent=778;e.ucircumflex=556;e.acircumflex=556;e.Amacron=667;e.rcaron=333;e.ccedilla=500;e.Zdotaccent=611;e.Thorn=667;e.Omacron=778;e.Racute=722;e.Sacute=667;e.dcaron=643;e.Umacron=722;e.uring=556;e.threesuperior=333;e.Ograve=778;e.Agrave=667;e.Abreve=667;e.multiply=584;e.uacute=556;e.Tcaron=611;e.partialdiff=476;e.ydieresis=500;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=556;e.edieresis=556;e.cacute=500;e.nacute=556;e.umacron=556;e.Ncaron=722;e.Iacute=278;e.plusminus=584;e.brokenbar=260;e.registered=737;e.Gbreve=778;e.Idotaccent=278;e.summation=600;e.Egrave=667;e.racute=333;e.omacron=556;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=722;e.lcommaaccent=222;e.tcaron=317;e.eogonek=556;e.Uogonek=722;e.Aacute=667;e.Adieresis=667;e.egrave=556;e.zacute=500;e.iogonek=222;e.Oacute=778;e.oacute=556;e.amacron=556;e.sacute=500;e.idieresis=278;e.Ocircumflex=778;e.Ugrave=722;e.Delta=612;e.thorn=556;e.twosuperior=333;e.Odieresis=778;e.mu=556;e.igrave=278;e.ohungarumlaut=556;e.Eogonek=667;e.dcroat=556;e.threequarters=834;e.Scedilla=667;e.lcaron=299;e.Kcommaaccent=667;e.Lacute=556;e.trademark=1e3;e.edotaccent=556;e.Igrave=278;e.Imacron=278;e.Lcaron=556;e.onehalf=834;e.lessequal=549;e.ocircumflex=556;e.ntilde=556;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=556;e.gbreve=556;e.onequarter=834;e.Scaron=667;e.Scommaaccent=667;e.Ohungarumlaut=778;e.degree=400;e.ograve=556;e.Ccaron=722;e.ugrave=556;e.radical=453;e.Dcaron=722;e.rcommaaccent=333;e.Ntilde=722;e.otilde=556;e.Rcommaaccent=722;e.Lcommaaccent=556;e.Atilde=667;e.Aogonek=667;e.Aring=667;e.Otilde=778;e.zdotaccent=500;e.Ecaron=667;e.Iogonek=278;e.kcommaaccent=500;e.minus=584;e.Icircumflex=278;e.ncaron=556;e.tcommaaccent=278;e.logicalnot=584;e.odieresis=556;e.udieresis=556;e.notequal=549;e.gcommaaccent=556;e.eth=556;e.zcaron=500;e.ncommaaccent=556;e.onesuperior=333;e.imacron=278;e.Euro=556;});e.Symbol=(0,a.getLookupTableFactory)(function(e){e.space=250;e.exclam=333;e.universal=713;e.numbersign=500;e.existential=549;e.percent=833;e.ampersand=778;e.suchthat=439;e.parenleft=333;e.parenright=333;e.asteriskmath=500;e.plus=549;e.comma=250;e.minus=549;e.period=250;e.slash=278;e.zero=500;e.one=500;e.two=500;e.three=500;e.four=500;e.five=500;e.six=500;e.seven=500;e.eight=500;e.nine=500;e.colon=278;e.semicolon=278;e.less=549;e.equal=549;e.greater=549;e.question=444;e.congruent=549;e.Alpha=722;e.Beta=667;e.Chi=722;e.Delta=612;e.Epsilon=611;e.Phi=763;e.Gamma=603;e.Eta=722;e.Iota=333;e.theta1=631;e.Kappa=722;e.Lambda=686;e.Mu=889;e.Nu=722;e.Omicron=722;e.Pi=768;e.Theta=741;e.Rho=556;e.Sigma=592;e.Tau=611;e.Upsilon=690;e.sigma1=439;e.Omega=768;e.Xi=645;e.Psi=795;e.Zeta=611;e.bracketleft=333;e.therefore=863;e.bracketright=333;e.perpendicular=658;e.underscore=500;e.radicalex=500;e.alpha=631;e.beta=549;e.chi=549;e.delta=494;e.epsilon=439;e.phi=521;e.gamma=411;e.eta=603;e.iota=329;e.phi1=603;e.kappa=549;e.lambda=549;e.mu=576;e.nu=521;e.omicron=549;e.pi=549;e.theta=521;e.rho=549;e.sigma=603;e.tau=439;e.upsilon=576;e.omega1=713;e.omega=686;e.xi=493;e.psi=686;e.zeta=494;e.braceleft=480;e.bar=200;e.braceright=480;e.similar=549;e.Euro=750;e.Upsilon1=620;e.minute=247;e.lessequal=549;e.fraction=167;e.infinity=713;e.florin=500;e.club=753;e.diamond=753;e.heart=753;e.spade=753;e.arrowboth=1042;e.arrowleft=987;e.arrowup=603;e.arrowright=987;e.arrowdown=603;e.degree=400;e.plusminus=549;e.second=411;e.greaterequal=549;e.multiply=549;e.proportional=713;e.partialdiff=494;e.bullet=460;e.divide=549;e.notequal=549;e.equivalence=549;e.approxequal=549;e.ellipsis=1e3;e.arrowvertex=603;e.arrowhorizex=1e3;e.carriagereturn=658;e.aleph=823;e.Ifraktur=686;e.Rfraktur=795;e.weierstrass=987;e.circlemultiply=768;e.circleplus=768;e.emptyset=823;e.intersection=768;e.union=768;e.propersuperset=713;e.reflexsuperset=713;e.notsubset=713;e.propersubset=713;e.reflexsubset=713;e.element=713;e.notelement=713;e.angle=768;e.gradient=713;e.registerserif=790;e.copyrightserif=790;e.trademarkserif=890;e.product=823;e.radical=549;e.dotmath=250;e.logicalnot=713;e.logicaland=603;e.logicalor=603;e.arrowdblboth=1042;e.arrowdblleft=987;e.arrowdblup=603;e.arrowdblright=987;e.arrowdbldown=603;e.lozenge=494;e.angleleft=329;e.registersans=790;e.copyrightsans=790;e.trademarksans=786;e.summation=713;e.parenlefttp=384;e.parenleftex=384;e.parenleftbt=384;e.bracketlefttp=384;e.bracketleftex=384;e.bracketleftbt=384;e.bracelefttp=494;e.braceleftmid=494;e.braceleftbt=494;e.braceex=494;e.angleright=329;e.integral=274;e.integraltp=686;e.integralex=686;e.integralbt=686;e.parenrighttp=384;e.parenrightex=384;e.parenrightbt=384;e.bracketrighttp=384;e.bracketrightex=384;e.bracketrightbt=384;e.bracerighttp=494;e.bracerightmid=494;e.bracerightbt=494;e.apple=790;});e[\"Times-Roman\"]=(0,a.getLookupTableFactory)(function(e){e.space=250;e.exclam=333;e.quotedbl=408;e.numbersign=500;e.dollar=500;e.percent=833;e.ampersand=778;e.quoteright=333;e.parenleft=333;e.parenright=333;e.asterisk=500;e.plus=564;e.comma=250;e.hyphen=333;e.period=250;e.slash=278;e.zero=500;e.one=500;e.two=500;e.three=500;e.four=500;e.five=500;e.six=500;e.seven=500;e.eight=500;e.nine=500;e.colon=278;e.semicolon=278;e.less=564;e.equal=564;e.greater=564;e.question=444;e.at=921;e.A=722;e.B=667;e.C=667;e.D=722;e.E=611;e.F=556;e.G=722;e.H=722;e.I=333;e.J=389;e.K=722;e.L=611;e.M=889;e.N=722;e.O=722;e.P=556;e.Q=722;e.R=667;e.S=556;e.T=611;e.U=722;e.V=722;e.W=944;e.X=722;e.Y=722;e.Z=611;e.bracketleft=333;e.backslash=278;e.bracketright=333;e.asciicircum=469;e.underscore=500;e.quoteleft=333;e.a=444;e.b=500;e.c=444;e.d=500;e.e=444;e.f=333;e.g=500;e.h=500;e.i=278;e.j=278;e.k=500;e.l=278;e.m=778;e.n=500;e.o=500;e.p=500;e.q=500;e.r=333;e.s=389;e.t=278;e.u=500;e.v=500;e.w=722;e.x=500;e.y=500;e.z=444;e.braceleft=480;e.bar=200;e.braceright=480;e.asciitilde=541;e.exclamdown=333;e.cent=500;e.sterling=500;e.fraction=167;e.yen=500;e.florin=500;e.section=500;e.currency=500;e.quotesingle=180;e.quotedblleft=444;e.guillemotleft=500;e.guilsinglleft=333;e.guilsinglright=333;e.fi=556;e.fl=556;e.endash=500;e.dagger=500;e.daggerdbl=500;e.periodcentered=250;e.paragraph=453;e.bullet=350;e.quotesinglbase=333;e.quotedblbase=444;e.quotedblright=444;e.guillemotright=500;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=444;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=889;e.ordfeminine=276;e.Lslash=611;e.Oslash=722;e.OE=889;e.ordmasculine=310;e.ae=667;e.dotlessi=278;e.lslash=278;e.oslash=500;e.oe=722;e.germandbls=500;e.Idieresis=333;e.eacute=444;e.abreve=444;e.uhungarumlaut=500;e.ecaron=444;e.Ydieresis=722;e.divide=564;e.Yacute=722;e.Acircumflex=722;e.aacute=444;e.Ucircumflex=722;e.yacute=500;e.scommaaccent=389;e.ecircumflex=444;e.Uring=722;e.Udieresis=722;e.aogonek=444;e.Uacute=722;e.uogonek=500;e.Edieresis=611;e.Dcroat=722;e.commaaccent=250;e.copyright=760;e.Emacron=611;e.ccaron=444;e.aring=444;e.Ncommaaccent=722;e.lacute=278;e.agrave=444;e.Tcommaaccent=611;e.Cacute=667;e.atilde=444;e.Edotaccent=611;e.scaron=389;e.scedilla=389;e.iacute=278;e.lozenge=471;e.Rcaron=667;e.Gcommaaccent=722;e.ucircumflex=500;e.acircumflex=444;e.Amacron=722;e.rcaron=333;e.ccedilla=444;e.Zdotaccent=611;e.Thorn=556;e.Omacron=722;e.Racute=667;e.Sacute=556;e.dcaron=588;e.Umacron=722;e.uring=500;e.threesuperior=300;e.Ograve=722;e.Agrave=722;e.Abreve=722;e.multiply=564;e.uacute=500;e.Tcaron=611;e.partialdiff=476;e.ydieresis=500;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=611;e.adieresis=444;e.edieresis=444;e.cacute=444;e.nacute=500;e.umacron=500;e.Ncaron=722;e.Iacute=333;e.plusminus=564;e.brokenbar=200;e.registered=760;e.Gbreve=722;e.Idotaccent=333;e.summation=600;e.Egrave=611;e.racute=333;e.omacron=500;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=667;e.lcommaaccent=278;e.tcaron=326;e.eogonek=444;e.Uogonek=722;e.Aacute=722;e.Adieresis=722;e.egrave=444;e.zacute=444;e.iogonek=278;e.Oacute=722;e.oacute=500;e.amacron=444;e.sacute=389;e.idieresis=278;e.Ocircumflex=722;e.Ugrave=722;e.Delta=612;e.thorn=500;e.twosuperior=300;e.Odieresis=722;e.mu=500;e.igrave=278;e.ohungarumlaut=500;e.Eogonek=611;e.dcroat=500;e.threequarters=750;e.Scedilla=556;e.lcaron=344;e.Kcommaaccent=722;e.Lacute=611;e.trademark=980;e.edotaccent=444;e.Igrave=333;e.Imacron=333;e.Lcaron=611;e.onehalf=750;e.lessequal=549;e.ocircumflex=500;e.ntilde=500;e.Uhungarumlaut=722;e.Eacute=611;e.emacron=444;e.gbreve=500;e.onequarter=750;e.Scaron=556;e.Scommaaccent=556;e.Ohungarumlaut=722;e.degree=400;e.ograve=500;e.Ccaron=667;e.ugrave=500;e.radical=453;e.Dcaron=722;e.rcommaaccent=333;e.Ntilde=722;e.otilde=500;e.Rcommaaccent=667;e.Lcommaaccent=611;e.Atilde=722;e.Aogonek=722;e.Aring=722;e.Otilde=722;e.zdotaccent=444;e.Ecaron=611;e.Iogonek=333;e.kcommaaccent=500;e.minus=564;e.Icircumflex=333;e.ncaron=500;e.tcommaaccent=278;e.logicalnot=564;e.odieresis=500;e.udieresis=500;e.notequal=549;e.gcommaaccent=500;e.eth=500;e.zcaron=444;e.ncommaaccent=500;e.onesuperior=300;e.imacron=278;e.Euro=500;});e[\"Times-Bold\"]=(0,a.getLookupTableFactory)(function(e){e.space=250;e.exclam=333;e.quotedbl=555;e.numbersign=500;e.dollar=500;e.percent=1e3;e.ampersand=833;e.quoteright=333;e.parenleft=333;e.parenright=333;e.asterisk=500;e.plus=570;e.comma=250;e.hyphen=333;e.period=250;e.slash=278;e.zero=500;e.one=500;e.two=500;e.three=500;e.four=500;e.five=500;e.six=500;e.seven=500;e.eight=500;e.nine=500;e.colon=333;e.semicolon=333;e.less=570;e.equal=570;e.greater=570;e.question=500;e.at=930;e.A=722;e.B=667;e.C=722;e.D=722;e.E=667;e.F=611;e.G=778;e.H=778;e.I=389;e.J=500;e.K=778;e.L=667;e.M=944;e.N=722;e.O=778;e.P=611;e.Q=778;e.R=722;e.S=556;e.T=667;e.U=722;e.V=722;e.W=1e3;e.X=722;e.Y=722;e.Z=667;e.bracketleft=333;e.backslash=278;e.bracketright=333;e.asciicircum=581;e.underscore=500;e.quoteleft=333;e.a=500;e.b=556;e.c=444;e.d=556;e.e=444;e.f=333;e.g=500;e.h=556;e.i=278;e.j=333;e.k=556;e.l=278;e.m=833;e.n=556;e.o=500;e.p=556;e.q=556;e.r=444;e.s=389;e.t=333;e.u=556;e.v=500;e.w=722;e.x=500;e.y=500;e.z=444;e.braceleft=394;e.bar=220;e.braceright=394;e.asciitilde=520;e.exclamdown=333;e.cent=500;e.sterling=500;e.fraction=167;e.yen=500;e.florin=500;e.section=500;e.currency=500;e.quotesingle=278;e.quotedblleft=500;e.guillemotleft=500;e.guilsinglleft=333;e.guilsinglright=333;e.fi=556;e.fl=556;e.endash=500;e.dagger=500;e.daggerdbl=500;e.periodcentered=250;e.paragraph=540;e.bullet=350;e.quotesinglbase=333;e.quotedblbase=500;e.quotedblright=500;e.guillemotright=500;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=500;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=1e3;e.ordfeminine=300;e.Lslash=667;e.Oslash=778;e.OE=1e3;e.ordmasculine=330;e.ae=722;e.dotlessi=278;e.lslash=278;e.oslash=500;e.oe=722;e.germandbls=556;e.Idieresis=389;e.eacute=444;e.abreve=500;e.uhungarumlaut=556;e.ecaron=444;e.Ydieresis=722;e.divide=570;e.Yacute=722;e.Acircumflex=722;e.aacute=500;e.Ucircumflex=722;e.yacute=500;e.scommaaccent=389;e.ecircumflex=444;e.Uring=722;e.Udieresis=722;e.aogonek=500;e.Uacute=722;e.uogonek=556;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=747;e.Emacron=667;e.ccaron=444;e.aring=500;e.Ncommaaccent=722;e.lacute=278;e.agrave=500;e.Tcommaaccent=667;e.Cacute=722;e.atilde=500;e.Edotaccent=667;e.scaron=389;e.scedilla=389;e.iacute=278;e.lozenge=494;e.Rcaron=722;e.Gcommaaccent=778;e.ucircumflex=556;e.acircumflex=500;e.Amacron=722;e.rcaron=444;e.ccedilla=444;e.Zdotaccent=667;e.Thorn=611;e.Omacron=778;e.Racute=722;e.Sacute=556;e.dcaron=672;e.Umacron=722;e.uring=556;e.threesuperior=300;e.Ograve=778;e.Agrave=722;e.Abreve=722;e.multiply=570;e.uacute=556;e.Tcaron=667;e.partialdiff=494;e.ydieresis=500;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=500;e.edieresis=444;e.cacute=444;e.nacute=556;e.umacron=556;e.Ncaron=722;e.Iacute=389;e.plusminus=570;e.brokenbar=220;e.registered=747;e.Gbreve=778;e.Idotaccent=389;e.summation=600;e.Egrave=667;e.racute=444;e.omacron=500;e.Zacute=667;e.Zcaron=667;e.greaterequal=549;e.Eth=722;e.Ccedilla=722;e.lcommaaccent=278;e.tcaron=416;e.eogonek=444;e.Uogonek=722;e.Aacute=722;e.Adieresis=722;e.egrave=444;e.zacute=444;e.iogonek=278;e.Oacute=778;e.oacute=500;e.amacron=500;e.sacute=389;e.idieresis=278;e.Ocircumflex=778;e.Ugrave=722;e.Delta=612;e.thorn=556;e.twosuperior=300;e.Odieresis=778;e.mu=556;e.igrave=278;e.ohungarumlaut=500;e.Eogonek=667;e.dcroat=556;e.threequarters=750;e.Scedilla=556;e.lcaron=394;e.Kcommaaccent=778;e.Lacute=667;e.trademark=1e3;e.edotaccent=444;e.Igrave=389;e.Imacron=389;e.Lcaron=667;e.onehalf=750;e.lessequal=549;e.ocircumflex=500;e.ntilde=556;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=444;e.gbreve=500;e.onequarter=750;e.Scaron=556;e.Scommaaccent=556;e.Ohungarumlaut=778;e.degree=400;e.ograve=500;e.Ccaron=722;e.ugrave=556;e.radical=549;e.Dcaron=722;e.rcommaaccent=444;e.Ntilde=722;e.otilde=500;e.Rcommaaccent=722;e.Lcommaaccent=667;e.Atilde=722;e.Aogonek=722;e.Aring=722;e.Otilde=778;e.zdotaccent=444;e.Ecaron=667;e.Iogonek=389;e.kcommaaccent=556;e.minus=570;e.Icircumflex=389;e.ncaron=556;e.tcommaaccent=333;e.logicalnot=570;e.odieresis=500;e.udieresis=556;e.notequal=549;e.gcommaaccent=500;e.eth=500;e.zcaron=444;e.ncommaaccent=556;e.onesuperior=300;e.imacron=278;e.Euro=500;});e[\"Times-BoldItalic\"]=(0,a.getLookupTableFactory)(function(e){e.space=250;e.exclam=389;e.quotedbl=555;e.numbersign=500;e.dollar=500;e.percent=833;e.ampersand=778;e.quoteright=333;e.parenleft=333;e.parenright=333;e.asterisk=500;e.plus=570;e.comma=250;e.hyphen=333;e.period=250;e.slash=278;e.zero=500;e.one=500;e.two=500;e.three=500;e.four=500;e.five=500;e.six=500;e.seven=500;e.eight=500;e.nine=500;e.colon=333;e.semicolon=333;e.less=570;e.equal=570;e.greater=570;e.question=500;e.at=832;e.A=667;e.B=667;e.C=667;e.D=722;e.E=667;e.F=667;e.G=722;e.H=778;e.I=389;e.J=500;e.K=667;e.L=611;e.M=889;e.N=722;e.O=722;e.P=611;e.Q=722;e.R=667;e.S=556;e.T=611;e.U=722;e.V=667;e.W=889;e.X=667;e.Y=611;e.Z=611;e.bracketleft=333;e.backslash=278;e.bracketright=333;e.asciicircum=570;e.underscore=500;e.quoteleft=333;e.a=500;e.b=500;e.c=444;e.d=500;e.e=444;e.f=333;e.g=500;e.h=556;e.i=278;e.j=278;e.k=500;e.l=278;e.m=778;e.n=556;e.o=500;e.p=500;e.q=500;e.r=389;e.s=389;e.t=278;e.u=556;e.v=444;e.w=667;e.x=500;e.y=444;e.z=389;e.braceleft=348;e.bar=220;e.braceright=348;e.asciitilde=570;e.exclamdown=389;e.cent=500;e.sterling=500;e.fraction=167;e.yen=500;e.florin=500;e.section=500;e.currency=500;e.quotesingle=278;e.quotedblleft=500;e.guillemotleft=500;e.guilsinglleft=333;e.guilsinglright=333;e.fi=556;e.fl=556;e.endash=500;e.dagger=500;e.daggerdbl=500;e.periodcentered=250;e.paragraph=500;e.bullet=350;e.quotesinglbase=333;e.quotedblbase=500;e.quotedblright=500;e.guillemotright=500;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=500;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=944;e.ordfeminine=266;e.Lslash=611;e.Oslash=722;e.OE=944;e.ordmasculine=300;e.ae=722;e.dotlessi=278;e.lslash=278;e.oslash=500;e.oe=722;e.germandbls=500;e.Idieresis=389;e.eacute=444;e.abreve=500;e.uhungarumlaut=556;e.ecaron=444;e.Ydieresis=611;e.divide=570;e.Yacute=611;e.Acircumflex=667;e.aacute=500;e.Ucircumflex=722;e.yacute=444;e.scommaaccent=389;e.ecircumflex=444;e.Uring=722;e.Udieresis=722;e.aogonek=500;e.Uacute=722;e.uogonek=556;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=747;e.Emacron=667;e.ccaron=444;e.aring=500;e.Ncommaaccent=722;e.lacute=278;e.agrave=500;e.Tcommaaccent=611;e.Cacute=667;e.atilde=500;e.Edotaccent=667;e.scaron=389;e.scedilla=389;e.iacute=278;e.lozenge=494;e.Rcaron=667;e.Gcommaaccent=722;e.ucircumflex=556;e.acircumflex=500;e.Amacron=667;e.rcaron=389;e.ccedilla=444;e.Zdotaccent=611;e.Thorn=611;e.Omacron=722;e.Racute=667;e.Sacute=556;e.dcaron=608;e.Umacron=722;e.uring=556;e.threesuperior=300;e.Ograve=722;e.Agrave=667;e.Abreve=667;e.multiply=570;e.uacute=556;e.Tcaron=611;e.partialdiff=494;e.ydieresis=444;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=500;e.edieresis=444;e.cacute=444;e.nacute=556;e.umacron=556;e.Ncaron=722;e.Iacute=389;e.plusminus=570;e.brokenbar=220;e.registered=747;e.Gbreve=722;e.Idotaccent=389;e.summation=600;e.Egrave=667;e.racute=389;e.omacron=500;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=667;e.lcommaaccent=278;e.tcaron=366;e.eogonek=444;e.Uogonek=722;e.Aacute=667;e.Adieresis=667;e.egrave=444;e.zacute=389;e.iogonek=278;e.Oacute=722;e.oacute=500;e.amacron=500;e.sacute=389;e.idieresis=278;e.Ocircumflex=722;e.Ugrave=722;e.Delta=612;e.thorn=500;e.twosuperior=300;e.Odieresis=722;e.mu=576;e.igrave=278;e.ohungarumlaut=500;e.Eogonek=667;e.dcroat=500;e.threequarters=750;e.Scedilla=556;e.lcaron=382;e.Kcommaaccent=667;e.Lacute=611;e.trademark=1e3;e.edotaccent=444;e.Igrave=389;e.Imacron=389;e.Lcaron=611;e.onehalf=750;e.lessequal=549;e.ocircumflex=500;e.ntilde=556;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=444;e.gbreve=500;e.onequarter=750;e.Scaron=556;e.Scommaaccent=556;e.Ohungarumlaut=722;e.degree=400;e.ograve=500;e.Ccaron=667;e.ugrave=556;e.radical=549;e.Dcaron=722;e.rcommaaccent=389;e.Ntilde=722;e.otilde=500;e.Rcommaaccent=667;e.Lcommaaccent=611;e.Atilde=667;e.Aogonek=667;e.Aring=667;e.Otilde=722;e.zdotaccent=389;e.Ecaron=667;e.Iogonek=389;e.kcommaaccent=500;e.minus=606;e.Icircumflex=389;e.ncaron=556;e.tcommaaccent=278;e.logicalnot=606;e.odieresis=500;e.udieresis=556;e.notequal=549;e.gcommaaccent=500;e.eth=500;e.zcaron=389;e.ncommaaccent=556;e.onesuperior=300;e.imacron=278;e.Euro=500;});e[\"Times-Italic\"]=(0,a.getLookupTableFactory)(function(e){e.space=250;e.exclam=333;e.quotedbl=420;e.numbersign=500;e.dollar=500;e.percent=833;e.ampersand=778;e.quoteright=333;e.parenleft=333;e.parenright=333;e.asterisk=500;e.plus=675;e.comma=250;e.hyphen=333;e.period=250;e.slash=278;e.zero=500;e.one=500;e.two=500;e.three=500;e.four=500;e.five=500;e.six=500;e.seven=500;e.eight=500;e.nine=500;e.colon=333;e.semicolon=333;e.less=675;e.equal=675;e.greater=675;e.question=500;e.at=920;e.A=611;e.B=611;e.C=667;e.D=722;e.E=611;e.F=611;e.G=722;e.H=722;e.I=333;e.J=444;e.K=667;e.L=556;e.M=833;e.N=667;e.O=722;e.P=611;e.Q=722;e.R=611;e.S=500;e.T=556;e.U=722;e.V=611;e.W=833;e.X=611;e.Y=556;e.Z=556;e.bracketleft=389;e.backslash=278;e.bracketright=389;e.asciicircum=422;e.underscore=500;e.quoteleft=333;e.a=500;e.b=500;e.c=444;e.d=500;e.e=444;e.f=278;e.g=500;e.h=500;e.i=278;e.j=278;e.k=444;e.l=278;e.m=722;e.n=500;e.o=500;e.p=500;e.q=500;e.r=389;e.s=389;e.t=278;e.u=500;e.v=444;e.w=667;e.x=444;e.y=444;e.z=389;e.braceleft=400;e.bar=275;e.braceright=400;e.asciitilde=541;e.exclamdown=389;e.cent=500;e.sterling=500;e.fraction=167;e.yen=500;e.florin=500;e.section=500;e.currency=500;e.quotesingle=214;e.quotedblleft=556;e.guillemotleft=500;e.guilsinglleft=333;e.guilsinglright=333;e.fi=500;e.fl=500;e.endash=500;e.dagger=500;e.daggerdbl=500;e.periodcentered=250;e.paragraph=523;e.bullet=350;e.quotesinglbase=333;e.quotedblbase=556;e.quotedblright=556;e.guillemotright=500;e.ellipsis=889;e.perthousand=1e3;e.questiondown=500;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=889;e.AE=889;e.ordfeminine=276;e.Lslash=556;e.Oslash=722;e.OE=944;e.ordmasculine=310;e.ae=667;e.dotlessi=278;e.lslash=278;e.oslash=500;e.oe=667;e.germandbls=500;e.Idieresis=333;e.eacute=444;e.abreve=500;e.uhungarumlaut=500;e.ecaron=444;e.Ydieresis=556;e.divide=675;e.Yacute=556;e.Acircumflex=611;e.aacute=500;e.Ucircumflex=722;e.yacute=444;e.scommaaccent=389;e.ecircumflex=444;e.Uring=722;e.Udieresis=722;e.aogonek=500;e.Uacute=722;e.uogonek=500;e.Edieresis=611;e.Dcroat=722;e.commaaccent=250;e.copyright=760;e.Emacron=611;e.ccaron=444;e.aring=500;e.Ncommaaccent=667;e.lacute=278;e.agrave=500;e.Tcommaaccent=556;e.Cacute=667;e.atilde=500;e.Edotaccent=611;e.scaron=389;e.scedilla=389;e.iacute=278;e.lozenge=471;e.Rcaron=611;e.Gcommaaccent=722;e.ucircumflex=500;e.acircumflex=500;e.Amacron=611;e.rcaron=389;e.ccedilla=444;e.Zdotaccent=556;e.Thorn=611;e.Omacron=722;e.Racute=611;e.Sacute=500;e.dcaron=544;e.Umacron=722;e.uring=500;e.threesuperior=300;e.Ograve=722;e.Agrave=611;e.Abreve=611;e.multiply=675;e.uacute=500;e.Tcaron=556;e.partialdiff=476;e.ydieresis=444;e.Nacute=667;e.icircumflex=278;e.Ecircumflex=611;e.adieresis=500;e.edieresis=444;e.cacute=444;e.nacute=500;e.umacron=500;e.Ncaron=667;e.Iacute=333;e.plusminus=675;e.brokenbar=275;e.registered=760;e.Gbreve=722;e.Idotaccent=333;e.summation=600;e.Egrave=611;e.racute=389;e.omacron=500;e.Zacute=556;e.Zcaron=556;e.greaterequal=549;e.Eth=722;e.Ccedilla=667;e.lcommaaccent=278;e.tcaron=300;e.eogonek=444;e.Uogonek=722;e.Aacute=611;e.Adieresis=611;e.egrave=444;e.zacute=389;e.iogonek=278;e.Oacute=722;e.oacute=500;e.amacron=500;e.sacute=389;e.idieresis=278;e.Ocircumflex=722;e.Ugrave=722;e.Delta=612;e.thorn=500;e.twosuperior=300;e.Odieresis=722;e.mu=500;e.igrave=278;e.ohungarumlaut=500;e.Eogonek=611;e.dcroat=500;e.threequarters=750;e.Scedilla=500;e.lcaron=300;e.Kcommaaccent=667;e.Lacute=556;e.trademark=980;e.edotaccent=444;e.Igrave=333;e.Imacron=333;e.Lcaron=611;e.onehalf=750;e.lessequal=549;e.ocircumflex=500;e.ntilde=500;e.Uhungarumlaut=722;e.Eacute=611;e.emacron=444;e.gbreve=500;e.onequarter=750;e.Scaron=500;e.Scommaaccent=500;e.Ohungarumlaut=722;e.degree=400;e.ograve=500;e.Ccaron=667;e.ugrave=500;e.radical=453;e.Dcaron=722;e.rcommaaccent=389;e.Ntilde=667;e.otilde=500;e.Rcommaaccent=611;e.Lcommaaccent=556;e.Atilde=611;e.Aogonek=611;e.Aring=611;e.Otilde=722;e.zdotaccent=389;e.Ecaron=611;e.Iogonek=333;e.kcommaaccent=444;e.minus=675;e.Icircumflex=333;e.ncaron=500;e.tcommaaccent=278;e.logicalnot=675;e.odieresis=500;e.udieresis=500;e.notequal=549;e.gcommaaccent=500;e.eth=500;e.zcaron=389;e.ncommaaccent=500;e.onesuperior=300;e.imacron=278;e.Euro=500;});e.ZapfDingbats=(0,a.getLookupTableFactory)(function(e){e.space=278;e.a1=974;e.a2=961;e.a202=974;e.a3=980;e.a4=719;e.a5=789;e.a119=790;e.a118=791;e.a117=690;e.a11=960;e.a12=939;e.a13=549;e.a14=855;e.a15=911;e.a16=933;e.a105=911;e.a17=945;e.a18=974;e.a19=755;e.a20=846;e.a21=762;e.a22=761;e.a23=571;e.a24=677;e.a25=763;e.a26=760;e.a27=759;e.a28=754;e.a6=494;e.a7=552;e.a8=537;e.a9=577;e.a10=692;e.a29=786;e.a30=788;e.a31=788;e.a32=790;e.a33=793;e.a34=794;e.a35=816;e.a36=823;e.a37=789;e.a38=841;e.a39=823;e.a40=833;e.a41=816;e.a42=831;e.a43=923;e.a44=744;e.a45=723;e.a46=749;e.a47=790;e.a48=792;e.a49=695;e.a50=776;e.a51=768;e.a52=792;e.a53=759;e.a54=707;e.a55=708;e.a56=682;e.a57=701;e.a58=826;e.a59=815;e.a60=789;e.a61=789;e.a62=707;e.a63=687;e.a64=696;e.a65=689;e.a66=786;e.a67=787;e.a68=713;e.a69=791;e.a70=785;e.a71=791;e.a72=873;e.a73=761;e.a74=762;e.a203=762;e.a75=759;e.a204=759;e.a76=892;e.a77=892;e.a78=788;e.a79=784;e.a81=438;e.a82=138;e.a83=277;e.a84=415;e.a97=392;e.a98=392;e.a99=668;e.a100=668;e.a89=390;e.a90=390;e.a93=317;e.a94=317;e.a91=276;e.a92=276;e.a205=509;e.a85=509;e.a206=410;e.a86=410;e.a87=234;e.a88=234;e.a95=334;e.a96=334;e.a101=732;e.a102=544;e.a103=544;e.a104=910;e.a106=667;e.a107=760;e.a108=760;e.a112=776;e.a111=595;e.a110=694;e.a109=626;e.a120=788;e.a121=788;e.a122=788;e.a123=788;e.a124=788;e.a125=788;e.a126=788;e.a127=788;e.a128=788;e.a129=788;e.a130=788;e.a131=788;e.a132=788;e.a133=788;e.a134=788;e.a135=788;e.a136=788;e.a137=788;e.a138=788;e.a139=788;e.a140=788;e.a141=788;e.a142=788;e.a143=788;e.a144=788;e.a145=788;e.a146=788;e.a147=788;e.a148=788;e.a149=788;e.a150=788;e.a151=788;e.a152=788;e.a153=788;e.a154=788;e.a155=788;e.a156=788;e.a157=788;e.a158=788;e.a159=788;e.a160=894;e.a161=838;e.a163=1016;e.a164=458;e.a196=748;e.a165=924;e.a192=748;e.a166=918;e.a167=927;e.a168=928;e.a169=928;e.a170=834;e.a171=873;e.a172=828;e.a173=924;e.a162=924;e.a174=917;e.a175=930;e.a176=931;e.a177=463;e.a178=883;e.a179=836;e.a193=836;e.a180=867;e.a199=867;e.a181=696;e.a200=696;e.a182=874;e.a201=874;e.a183=760;e.a184=946;e.a197=771;e.a185=865;e.a194=771;e.a198=888;e.a186=967;e.a195=888;e.a187=831;e.a188=873;e.a189=927;e.a190=970;e.a191=918;});});t.getMetrics=n;var i=(0,a.getLookupTableFactory)(function(e){e.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426};e[\"Courier-Bold\"]={ascent:629,descent:-157,capHeight:562,xHeight:439};e[\"Courier-Oblique\"]={ascent:629,descent:-157,capHeight:562,xHeight:426};e[\"Courier-BoldOblique\"]={ascent:629,descent:-157,capHeight:562,xHeight:426};e.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523};e[\"Helvetica-Bold\"]={ascent:718,descent:-207,capHeight:718,xHeight:532};e[\"Helvetica-Oblique\"]={ascent:718,descent:-207,capHeight:718,xHeight:523};e[\"Helvetica-BoldOblique\"]={ascent:718,descent:-207,capHeight:718,xHeight:532};e[\"Times-Roman\"]={ascent:683,descent:-217,capHeight:662,xHeight:450};e[\"Times-Bold\"]={ascent:683,descent:-217,capHeight:676,xHeight:461};e[\"Times-Italic\"]={ascent:683,descent:-217,capHeight:653,xHeight:441};e[\"Times-BoldItalic\"]={ascent:683,descent:-217,capHeight:669,xHeight:462};e.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN};e.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN};});t.getFontBasicMetrics=i;},function(e,t){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.GlyfTable=void 0;t.GlyfTable=/*#__PURE__*/function(){function GlyfTable(e){_classCallCheck(this,GlyfTable);var t=e.glyfTable,r=e.isGlyphLocationsLong,a=e.locaTable,n=e.numGlyphs;this.glyphs=[];var i=new DataView(a.buffer,a.byteOffset,a.byteLength),s=new DataView(t.buffer,t.byteOffset,t.byteLength),o=r?4:2;var c=r?i.getUint32(0):2*i.getUint16(0),l=0;for(var _e359=0;_e359<n;_e359++){l+=o;var _e360=r?i.getUint32(l):2*i.getUint16(l);if(_e360===c){this.glyphs.push(new Glyph({}));continue;}var _t270=Glyph.parse(c,s);this.glyphs.push(_t270);c=_e360;}}_createClass(GlyfTable,[{key:\"getSize\",value:function getSize(){var _context255;return _reduceInstanceProperty(_context255=this.glyphs).call(_context255,function(e,t){return e+(t.getSize()+3&-4);},0);}},{key:\"write\",value:function write(){var e=this.getSize(),t=new DataView(new ArrayBuffer(e)),r=e>131070,a=r?4:2,n=new DataView(new ArrayBuffer((this.glyphs.length+1)*a));r?n.setUint32(0,0):n.setUint16(0,0);var i=0,s=0;var _iterator79=_createForOfIteratorHelper(this.glyphs),_step79;try{for(_iterator79.s();!(_step79=_iterator79.n()).done;){var _e361=_step79.value;i+=_e361.write(i,t);i=i+3&-4;s+=a;r?n.setUint32(s,i):n.setUint16(s,i>>1);}}catch(err){_iterator79.e(err);}finally{_iterator79.f();}return{isLocationLong:r,loca:new Uint8Array(n.buffer),glyf:new Uint8Array(t.buffer)};}},{key:\"scale\",value:function scale(e){for(var _t271=0,r=this.glyphs.length;_t271<r;_t271++)this.glyphs[_t271].scale(e[_t271]);}}]);return GlyfTable;}();var Glyph=/*#__PURE__*/function(){function Glyph(e){_classCallCheck(this,Glyph);var _e$header=e.header,t=_e$header===void 0?null:_e$header,_e$simple=e.simple,r=_e$simple===void 0?null:_e$simple,_e$composites=e.composites,a=_e$composites===void 0?null:_e$composites;this.header=t;this.simple=r;this.composites=a;}_createClass(Glyph,[{key:\"getSize\",value:function getSize(){var _context256;if(!this.header)return 0;var e=this.simple?this.simple.getSize():_reduceInstanceProperty(_context256=this.composites).call(_context256,function(e,t){return e+t.getSize();},0);return this.header.getSize()+e;}},{key:\"write\",value:function write(e,t){if(!this.header)return 0;var r=e;e+=this.header.write(e,t);if(this.simple)e+=this.simple.write(e,t);else{var _iterator80=_createForOfIteratorHelper(this.composites),_step80;try{for(_iterator80.s();!(_step80=_iterator80.n()).done;){var _r225=_step80.value;e+=_r225.write(e,t);}}catch(err){_iterator80.e(err);}finally{_iterator80.f();}}return e-r;}},{key:\"scale\",value:function scale(e){if(!this.header)return;var t=(this.header.xMin+this.header.xMax)/2;this.header.scale(t,e);if(this.simple)this.simple.scale(t,e);else{var _iterator81=_createForOfIteratorHelper(this.composites),_step81;try{for(_iterator81.s();!(_step81=_iterator81.n()).done;){var r=_step81.value;r.scale(t,e);}}catch(err){_iterator81.e(err);}finally{_iterator81.f();}}}}],[{key:\"parse\",value:function parse(e,t){var _GlyphHeader$parse=GlyphHeader.parse(e,t),_GlyphHeader$parse2=_slicedToArray(_GlyphHeader$parse,2),r=_GlyphHeader$parse2[0],a=_GlyphHeader$parse2[1];e+=r;if(a.numberOfContours<0){var _r226=[];for(;;){var _CompositeGlyph$parse=CompositeGlyph.parse(e,t),_CompositeGlyph$parse2=_slicedToArray(_CompositeGlyph$parse,2),_a176=_CompositeGlyph$parse2[0],_n140=_CompositeGlyph$parse2[1];e+=_a176;_r226.push(_n140);if(!(32&_flagsInstanceProperty(_n140)))break;}return new Glyph({header:a,composites:_r226});}var n=SimpleGlyph.parse(e,t,a.numberOfContours);return new Glyph({header:a,simple:n});}}]);return Glyph;}();var GlyphHeader=/*#__PURE__*/function(){function GlyphHeader(e){_classCallCheck(this,GlyphHeader);var t=e.numberOfContours,r=e.xMin,a=e.yMin,n=e.xMax,i=e.yMax;this.numberOfContours=t;this.xMin=r;this.yMin=a;this.xMax=n;this.yMax=i;}_createClass(GlyphHeader,[{key:\"getSize\",value:function getSize(){return 10;}},{key:\"write\",value:function write(e,t){t.setInt16(e,this.numberOfContours);t.setInt16(e+2,this.xMin);t.setInt16(e+4,this.yMin);t.setInt16(e+6,this.xMax);t.setInt16(e+8,this.yMax);return 10;}},{key:\"scale\",value:function scale(e,t){this.xMin=Math.round(e+(this.xMin-e)*t);this.xMax=Math.round(e+(this.xMax-e)*t);}}],[{key:\"parse\",value:function parse(e,t){return[10,new GlyphHeader({numberOfContours:t.getInt16(e),xMin:t.getInt16(e+2),yMin:t.getInt16(e+4),xMax:t.getInt16(e+6),yMax:t.getInt16(e+8)})];}}]);return GlyphHeader;}();var Contour=/*#__PURE__*/_createClass(function Contour(e){_classCallCheck(this,Contour);var t=_flagsInstanceProperty(e),r=e.xCoordinates,a=e.yCoordinates;this.xCoordinates=r;this.yCoordinates=a;this.flags=t;});var SimpleGlyph=/*#__PURE__*/function(){function SimpleGlyph(e){_classCallCheck(this,SimpleGlyph);var t=e.contours,r=e.instructions;this.contours=t;this.instructions=r;}_createClass(SimpleGlyph,[{key:\"getSize\",value:function getSize(){var e=2*this.contours.length+2+this.instructions.length,t=0,r=0;var _iterator82=_createForOfIteratorHelper(this.contours),_step82;try{for(_iterator82.s();!(_step82=_iterator82.n()).done;){var a=_step82.value;e+=_flagsInstanceProperty(a).length;for(var _n141=0,_i117=a.xCoordinates.length;_n141<_i117;_n141++){var _i118=a.xCoordinates[_n141],_s76=a.yCoordinates[_n141];var _o54=Math.abs(_i118-t);_o54>255?e+=2:_o54>0&&(e+=1);t=_i118;_o54=Math.abs(_s76-r);_o54>255?e+=2:_o54>0&&(e+=1);r=_s76;}}}catch(err){_iterator82.e(err);}finally{_iterator82.f();}return e;}},{key:\"write\",value:function write(e,t){var r=e,a=[],n=[],i=[];var s=0,o=0;var _iterator83=_createForOfIteratorHelper(this.contours),_step83;try{for(_iterator83.s();!(_step83=_iterator83.n()).done;){var _r230=_step83.value;for(var _e362=0,_t272=_r230.xCoordinates.length;_e362<_t272;_e362++){var _t273=_flagsInstanceProperty(_r230)[_e362];var _c39=_r230.xCoordinates[_e362];var l=_c39-s;if(0===l){_t273|=16;a.push(0);}else{var _e363=Math.abs(l);if(_e363<=255){_t273|=l>=0?18:2;a.push(_e363);}else a.push(l);}s=_c39;var _h24=_r230.yCoordinates[_e362];l=_h24-o;if(0===l){_t273|=32;n.push(0);}else{var _e364=Math.abs(l);if(_e364<=255){_t273|=l>=0?36:4;n.push(_e364);}else n.push(l);}o=_h24;i.push(_t273);}t.setUint16(e,a.length-1);e+=2;}}catch(err){_iterator83.e(err);}finally{_iterator83.f();}t.setUint16(e,this.instructions.length);e+=2;if(this.instructions.length){new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e);e+=this.instructions.length;}for(var _i120=0,_i119=i;_i120<_i119.length;_i120++){var _r227=_i119[_i120];t.setUint8(e++,_r227);}for(var _r228=0,_n142=a.length;_r228<_n142;_r228++){var _n143=a[_r228],_s77=i[_r228];if(2&_s77)t.setUint8(e++,_n143);else if(!(16&_s77)){t.setInt16(e,_n143);e+=2;}}for(var _r229=0,_a177=n.length;_r229<_a177;_r229++){var _a178=n[_r229],_s78=i[_r229];if(4&_s78)t.setUint8(e++,_a178);else if(!(32&_s78)){t.setInt16(e,_a178);e+=2;}}return e-r;}},{key:\"scale\",value:function scale(e,t){var _iterator84=_createForOfIteratorHelper(this.contours),_step84;try{for(_iterator84.s();!(_step84=_iterator84.n()).done;){var r=_step84.value;if(0!==r.xCoordinates.length)for(var a=0,_n144=r.xCoordinates.length;a<_n144;a++)r.xCoordinates[a]=Math.round(e+(r.xCoordinates[a]-e)*t);}}catch(err){_iterator84.e(err);}finally{_iterator84.f();}}}],[{key:\"parse\",value:function parse(e,t,r){var _context257;var a=[];for(var _n145=0;_n145<r;_n145++){var _r231=t.getUint16(e);e+=2;a.push(_r231);}var n=a[r-1]+1,i=t.getUint16(e);e+=2;var s=_sliceInstanceProperty(_context257=new Uint8Array(t)).call(_context257,e,e+i);e+=i;var o=[];for(var _r232=0;_r232<n;e++,_r232++){var _a179=t.getUint8(e);o.push(_a179);if(8&_a179){var _n146=t.getUint8(++e);_a179^=8;for(var _e365=0;_e365<_n146;_e365++)o.push(_a179);_r232+=_n146;}}var c=[];var l=[],h=[],u=[];var d=[];var f=0,g=0;for(var _r233=0;_r233<n;_r233++){var _n147=o[_r233];if(2&_n147){var _r234=t.getUint8(e++);g+=16&_n147?_r234:-_r234;l.push(g);}else if(16&_n147)l.push(g);else{g+=t.getInt16(e);e+=2;l.push(g);}if(a[f]===_r233){f++;c.push(l);l=[];}}g=0;f=0;for(var _r235=0;_r235<n;_r235++){var _n148=o[_r235];if(4&_n148){var _r236=t.getUint8(e++);g+=32&_n148?_r236:-_r236;h.push(g);}else if(32&_n148)h.push(g);else{g+=t.getInt16(e);e+=2;h.push(g);}u.push(1&_n148|64&_n148);if(a[f]===_r235){l=c[f];f++;d.push(new Contour({flags:u,xCoordinates:l,yCoordinates:h}));h=[];u=[];}}return new SimpleGlyph({contours:d,instructions:s});}}]);return SimpleGlyph;}();var CompositeGlyph=/*#__PURE__*/function(){function CompositeGlyph(e){_classCallCheck(this,CompositeGlyph);var t=_flagsInstanceProperty(e),r=e.glyphIndex,a=e.argument1,n=e.argument2,i=e.transf,s=e.instructions;this.flags=t;this.glyphIndex=r;this.argument1=a;this.argument2=n;this.transf=i;this.instructions=s;}_createClass(CompositeGlyph,[{key:\"getSize\",value:function getSize(){var e=4+2*this.transf.length;256&_flagsInstanceProperty(this)&&(e+=2+this.instructions.length);e+=2;2&_flagsInstanceProperty(this)?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(e+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(e+=2);return e;}},{key:\"write\",value:function write(e,t){var r=e;2&_flagsInstanceProperty(this)?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=1):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=1);t.setUint16(e,_flagsInstanceProperty(this));t.setUint16(e+2,this.glyphIndex);e+=4;if(1&_flagsInstanceProperty(this)){if(2&_flagsInstanceProperty(this)){t.setInt16(e,this.argument1);t.setInt16(e+2,this.argument2);}else{t.setUint16(e,this.argument1);t.setUint16(e+2,this.argument2);}e+=4;}else{t.setUint8(e,this.argument1);t.setUint8(e+1,this.argument2);e+=2;}if(256&_flagsInstanceProperty(this)){t.setUint16(e,this.instructions.length);e+=2;if(this.instructions.length){new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e);e+=this.instructions.length;}}return e-r;}},{key:\"scale\",value:function scale(e,t){}}],[{key:\"parse\",value:function parse(e,t){var r=e,a=[];var n=t.getUint16(e);var i=t.getUint16(e+2);e+=4;var s,o;if(1&n){if(2&n){s=t.getInt16(e);o=t.getInt16(e+2);}else{s=t.getUint16(e);o=t.getUint16(e+2);}e+=4;n^=1;}else{if(2&n){s=t.getInt8(e);o=t.getInt8(e+1);}else{s=t.getUint8(e);o=t.getUint8(e+1);}e+=2;}if(8&n){a.push(t.getUint16(e));e+=2;}else if(64&n){a.push(t.getUint16(e),t.getUint16(e+2));e+=4;}else if(128&n){a.push(t.getUint16(e),t.getUint16(e+2),t.getUint16(e+4),t.getUint16(e+6));e+=8;}var c=null;if(256&n){var _context258;var _r237=t.getUint16(e);e+=2;c=_sliceInstanceProperty(_context258=new Uint8Array(t)).call(_context258,e,e+_r237);e+=_r237;}return[e-r,new CompositeGlyph({flags:n,glyphIndex:i,argument1:s,argument2:o,transf:a,instructions:c})];}}]);return CompositeGlyph;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.OpenTypeFileBuilder=void 0;var a=r(131),n=r(2);function writeInt16(e,t,r){e[t]=r>>8&255;e[t+1]=255&r;}function writeInt32(e,t,r){e[t]=r>>24&255;e[t+1]=r>>16&255;e[t+2]=r>>8&255;e[t+3]=255&r;}function writeData(e,t,r){if(r instanceof Uint8Array)e.set(r,t);else if(\"string\"==typeof r)for(var _a180=0,_n149=r.length;_a180<_n149;_a180++)e[t++]=255&r.charCodeAt(_a180);else for(var _a181=0,_n150=r.length;_a181<_n150;_a181++)e[t++]=255&r[_a181];}var OpenTypeFileBuilder=/*#__PURE__*/function(){function OpenTypeFileBuilder(e){_classCallCheck(this,OpenTypeFileBuilder);this.sfnt=e;this.tables=Object.create(null);}_createClass(OpenTypeFileBuilder,[{key:\"toArray\",value:function toArray(){var e=this.sfnt;var t=this.tables,r=_Object$keys(t);_sortInstanceProperty(r).call(r);var i=r.length;var s,o,c,l,h,u=12+16*i;var d=[u];for(s=0;s<i;s++){l=t[r[s]];u+=(l.length+3&-4)>>>0;d.push(u);}var f=new Uint8Array(u);for(s=0;s<i;s++){l=t[r[s]];writeData(f,d[s],l);}\"true\"===e&&(e=(0,n.string32)(65536));f[0]=255&e.charCodeAt(0);f[1]=255&e.charCodeAt(1);f[2]=255&e.charCodeAt(2);f[3]=255&e.charCodeAt(3);writeInt16(f,4,i);var g=OpenTypeFileBuilder.getSearchParams(i,16);writeInt16(f,6,g.range);writeInt16(f,8,g.entry);writeInt16(f,10,g.rangeShift);u=12;for(s=0;s<i;s++){h=r[s];f[u]=255&h.charCodeAt(0);f[u+1]=255&h.charCodeAt(1);f[u+2]=255&h.charCodeAt(2);f[u+3]=255&h.charCodeAt(3);var _e366=0;for(o=d[s],c=d[s+1];o<c;o+=4){_e366=_e366+(0,a.readUint32)(f,o)>>>0;}writeInt32(f,u+4,_e366);writeInt32(f,u+8,d[s]);writeInt32(f,u+12,t[h].length);u+=16;}return f;}},{key:\"addTable\",value:function addTable(e,t){if(e in this.tables)throw new Error(\"Table \"+e+\" already exists\");this.tables[e]=t;}}],[{key:\"getSearchParams\",value:function getSearchParams(e,t){var r=1,a=0;for(;(r^e)>r;){r<<=1;a++;}var n=r*t;return{range:n,entry:a,rangeShift:t*e-n};}}]);return OpenTypeFileBuilder;}();t.OpenTypeFileBuilder=OpenTypeFileBuilder;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.Type1Font=void 0;var a=r(160),n=r(163),i=r(131),s=r(135),o=r(174),c=r(2);function findBlock(e,t,r){var a=e.length,n=t.length,s=a-n;var o=r,c=!1;for(;o<s;){var _r238=0;for(;_r238<n&&e[o+_r238]===t[_r238];)_r238++;if(_r238>=n){o+=_r238;for(;o<a&&(0,i.isWhiteSpace)(e[o]);)o++;c=!0;break;}o++;}return{found:c,length:o};}t.Type1Font=/*#__PURE__*/function(){function Type1Font(e,t,r){_classCallCheck(this,Type1Font);var a=r.length1,i=r.length2,l=t.peekBytes(6);var h=128===l[0]&&1===l[1];if(h){t.skip(6);a=l[5]<<24|l[4]<<16|l[3]<<8|l[2];}var u=function getHeaderBlock(e,t){var r=[101,101,120,101,99],a=e.pos;var n,i,o,l;try{n=e.getBytes(t);i=n.length;}catch(e){}if(i===t){o=findBlock(n,r,t-2*r.length);if(o.found&&o.length===t)return{stream:new s.Stream(n),length:t};}(0,c.warn)('Invalid \"Length1\" property in Type1 font -- trying to recover.');e.pos=a;for(;;){o=findBlock(e.peekBytes(2048),r,0);if(0===o.length)break;e.pos+=o.length;if(o.found){l=e.pos-a;break;}}e.pos=a;if(l)return{stream:new s.Stream(e.getBytes(l)),length:l};(0,c.warn)('Unable to recover \"Length1\" property in Type1 font -- using as is.');return{stream:new s.Stream(e.getBytes(t)),length:t};}(t,a);new o.Type1Parser(u.stream,!1,n.SEAC_ANALYSIS_ENABLED).extractFontHeader(r);if(h){l=t.getBytes(6);i=l[5]<<24|l[4]<<16|l[3]<<8|l[2];}var d=function getEexecBlock(e,t){var r=e.getBytes();return{stream:new s.Stream(r),length:r.length};}(t),f=new o.Type1Parser(d.stream,!0,n.SEAC_ANALYSIS_ENABLED).extractFontProgram(r);for(var _e367 in f.properties)r[_e367]=f.properties[_e367];var g=f.charstrings,p=this.getType2Charstrings(g),m=this.getType2Subrs(f.subrs);this.charstrings=g;this.data=this.wrap(e,p,this.charstrings,m,r);this.seacs=this.getSeacs(f.charstrings);}_createClass(Type1Font,[{key:\"numGlyphs\",get:function get(){return this.charstrings.length+1;}},{key:\"getCharset\",value:function getCharset(){var e=[\".notdef\"];var _iterator85=_createForOfIteratorHelper(this.charstrings),_step85;try{for(_iterator85.s();!(_step85=_iterator85.n()).done;){var _t274=_step85.value.glyphName;e.push(_t274);}}catch(err){_iterator85.e(err);}finally{_iterator85.f();}return e;}},{key:\"getGlyphMapping\",value:function getGlyphMapping(e){var t=this.charstrings;if(e.composite){var _r239=Object.create(null);for(var _a182=0,_n151=t.length;_a182<_n151;_a182++){_r239[e.cMap.charCodeOf(_a182)]=_a182+1;}return _r239;}var r=[\".notdef\"];var a,i;for(i=0;i<t.length;i++)r.push(t[i].glyphName);var s=e.builtInEncoding;if(s){a=Object.create(null);for(var _e368 in s){i=_indexOfInstanceProperty(r).call(r,s[_e368]);i>=0&&(a[_e368]=i);}}return(0,n.type1FontGlyphMapping)(e,a,r);}},{key:\"hasGlyphId\",value:function hasGlyphId(e){if(e<0||e>=this.numGlyphs)return!1;if(0===e)return!0;return this.charstrings[e-1].charstring.length>0;}},{key:\"getSeacs\",value:function getSeacs(e){var t=[];for(var _r240=0,_a183=e.length;_r240<_a183;_r240++){var _a184=e[_r240];_a184.seac&&(t[_r240+1]=_a184.seac);}return t;}},{key:\"getType2Charstrings\",value:function getType2Charstrings(e){var t=[];for(var _r241=0,_a185=e.length;_r241<_a185;_r241++)t.push(e[_r241].charstring);return t;}},{key:\"getType2Subrs\",value:function getType2Subrs(e){var t=0;var r=e.length;t=r<1133?107:r<33769?1131:32768;var a=[];var n;for(n=0;n<t;n++)a.push([11]);for(n=0;n<r;n++)a.push(e[n]);return a;}},{key:\"wrap\",value:function wrap(e,t,r,n,i){var s=new a.CFF();s.header=new a.CFFHeader(1,0,4,4);s.names=[e];var o=new a.CFFTopDict();o.setByName(\"version\",391);o.setByName(\"Notice\",392);o.setByName(\"FullName\",393);o.setByName(\"FamilyName\",394);o.setByName(\"Weight\",395);o.setByName(\"Encoding\",null);o.setByName(\"FontMatrix\",i.fontMatrix);o.setByName(\"FontBBox\",i.bbox);o.setByName(\"charset\",null);o.setByName(\"CharStrings\",null);o.setByName(\"Private\",null);s.topDict=o;var c=new a.CFFStrings();c.add(\"Version 0.11\");c.add(\"See original notice\");c.add(e);c.add(e);c.add(\"Medium\");s.strings=c;s.globalSubrIndex=new a.CFFIndex();var l=t.length,h=[\".notdef\"];var u,d;for(u=0;u<l;u++){var _context259;var _e369=r[u].glyphName;-1===_indexOfInstanceProperty(_context259=a.CFFStandardStrings).call(_context259,_e369)&&c.add(_e369);h.push(_e369);}s.charset=new a.CFFCharset(!1,0,h);var f=new a.CFFIndex();f.add([139,14]);for(u=0;u<l;u++)f.add(t[u]);s.charStrings=f;var g=new a.CFFPrivateDict();g.setByName(\"Subrs\",null);var p=[\"BlueValues\",\"OtherBlues\",\"FamilyBlues\",\"FamilyOtherBlues\",\"StemSnapH\",\"StemSnapV\",\"BlueShift\",\"BlueFuzz\",\"BlueScale\",\"LanguageGroup\",\"ExpansionFactor\",\"ForceBold\",\"StdHW\",\"StdVW\"];for(u=0,d=p.length;u<d;u++){var _e370=p[u];if(!(_e370 in i.privateData))continue;var _t275=i.privateData[_e370];if(Array.isArray(_t275))for(var _e371=_t275.length-1;_e371>0;_e371--)_t275[_e371]-=_t275[_e371-1];g.setByName(_e370,_t275);}s.topDict.privateDict=g;var m=new a.CFFIndex();for(u=0,d=n.length;u<d;u++)m.add(n[u]);g.subrsIndex=m;return new a.CFFCompiler(s).compile();}}]);return Type1Font;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.Type1Parser=void 0;var a=r(162),n=r(131),i=r(135),s=r(2);var o=[4],c=[5],l=[6],h=[7],u=[8],d=[12,35],f=[14],g=[21],p=[22],m=[30],b=[31];var Type1CharString=/*#__PURE__*/function(){function Type1CharString(){_classCallCheck(this,Type1CharString);this.width=0;this.lsb=0;this.flexing=!1;this.output=[];this.stack=[];}_createClass(Type1CharString,[{key:\"convert\",value:function convert(e,t,r){var a=e.length;var n,i,y,w=!1;for(var S=0;S<a;S++){var _a186=e[S];if(_a186<32){12===_a186&&(_a186=(_a186<<8)+e[++S]);switch(_a186){case 1:case 3:case 9:case 3072:case 3073:case 3074:case 3105:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){w=!0;break;}var _e372=this.stack.pop();this.stack.push(0,_e372);break;}w=this.executeCommand(1,o);break;case 5:w=this.executeCommand(2,c);break;case 6:w=this.executeCommand(1,l);break;case 7:w=this.executeCommand(1,h);break;case 8:w=this.executeCommand(6,u);break;case 10:if(this.stack.length<1){w=!0;break;}y=this.stack.pop();if(!t[y]){w=!0;break;}w=this.convert(t[y],t,r);break;case 11:return w;case 13:if(this.stack.length<2){w=!0;break;}n=this.stack.pop();i=this.stack.pop();this.lsb=i;this.width=n;this.stack.push(n,i);w=this.executeCommand(2,p);break;case 14:this.output.push(f[0]);break;case 21:if(this.flexing)break;w=this.executeCommand(2,g);break;case 22:if(this.flexing){this.stack.push(0);break;}w=this.executeCommand(1,p);break;case 30:w=this.executeCommand(4,m);break;case 31:w=this.executeCommand(4,b);break;case 3078:if(r){var _context260;var _e373=this.stack.at(-5);this.seac=_spliceInstanceProperty(_context260=this.stack).call(_context260,-4,4);this.seac[0]+=this.lsb-_e373;w=this.executeCommand(0,f);}else w=this.executeCommand(4,f);break;case 3079:if(this.stack.length<4){w=!0;break;}this.stack.pop();n=this.stack.pop();var _e374=this.stack.pop();i=this.stack.pop();this.lsb=i;this.width=n;this.stack.push(n,i,_e374);w=this.executeCommand(3,g);break;case 3084:if(this.stack.length<2){w=!0;break;}var _S=this.stack.pop(),x=this.stack.pop();this.stack.push(x/_S);break;case 3088:if(this.stack.length<2){w=!0;break;}y=this.stack.pop();var k=this.stack.pop();if(0===y&&3===k){var _context261;var _e375=_spliceInstanceProperty(_context261=this.stack).call(_context261,this.stack.length-17,17);this.stack.push(_e375[2]+_e375[0],_e375[3]+_e375[1],_e375[4],_e375[5],_e375[6],_e375[7],_e375[8],_e375[9],_e375[10],_e375[11],_e375[12],_e375[13],_e375[14]);w=this.executeCommand(13,d,!0);this.flexing=!1;this.stack.push(_e375[15],_e375[16]);}else 1===y&&0===k&&(this.flexing=!0);break;case 3089:break;default:(0,s.warn)('Unknown type 1 charstring command of \"'+_a186+'\"');}if(w)break;}else{_a186<=246?_a186-=139:_a186=_a186<=250?256*(_a186-247)+e[++S]+108:_a186<=254?-256*(_a186-251)-e[++S]-108:(255&e[++S])<<24|(255&e[++S])<<16|(255&e[++S])<<8|(255&e[++S])<<0;this.stack.push(_a186);}}return w;}},{key:\"executeCommand\",value:function executeCommand(e,t,r){var _this$output,_context262;var a=this.stack.length;if(e>a)return!0;var n=a-e;for(var _e376=n;_e376<a;_e376++){var _t276=this.stack[_e376];if(_Number$isInteger(_t276))this.output.push(28,_t276>>8&255,255&_t276);else{_t276=65536*_t276|0;this.output.push(255,_t276>>24&255,_t276>>16&255,_t276>>8&255,255&_t276);}}(_this$output=this.output).push.apply(_this$output,_toConsumableArray(t));r?_spliceInstanceProperty(_context262=this.stack).call(_context262,n,e):this.stack.length=0;return!1;}}]);return Type1CharString;}();function isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102;}function decrypt(e,t,r){if(r>=e.length)return new Uint8Array(0);var a,n,i=0|t;for(a=0;a<r;a++)i=52845*(e[a]+i)+22719&65535;var s=e.length-r,o=new Uint8Array(s);for(a=r,n=0;n<s;a++,n++){var _t277=e[a];o[n]=_t277^i>>8;i=52845*(_t277+i)+22719&65535;}return o;}function isSpecial(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e;}t.Type1Parser=/*#__PURE__*/function(){function Type1Parser(e,t,r){_classCallCheck(this,Type1Parser);if(t){var _t278=e.getBytes(),_r242=!((isHexDigit(_t278[0])||(0,n.isWhiteSpace)(_t278[0]))&&isHexDigit(_t278[1])&&isHexDigit(_t278[2])&&isHexDigit(_t278[3])&&isHexDigit(_t278[4])&&isHexDigit(_t278[5])&&isHexDigit(_t278[6])&&isHexDigit(_t278[7]));e=new i.Stream(_r242?decrypt(_t278,55665,4):function decryptAscii(e,t,r){var a=0|t;var n=e.length,i=new Uint8Array(n>>>1);var s,o;for(s=0,o=0;s<n;s++){var _t279=e[s];if(!isHexDigit(_t279))continue;s++;var _r243=void 0;for(;s<n&&!isHexDigit(_r243=e[s]);)s++;if(s<n){var _e377=_parseInt(String.fromCharCode(_t279,_r243),16);i[o++]=_e377^a>>8;a=52845*(_e377+a)+22719&65535;}}return _sliceInstanceProperty(i).call(i,r,o);}(_t278,55665,4));}this.seacAnalysisEnabled=!!r;this.stream=e;this.nextChar();}_createClass(Type1Parser,[{key:\"readNumberArray\",value:function readNumberArray(){this.getToken();var e=[];for(;;){var _t280=this.getToken();if(null===_t280||\"]\"===_t280||\"}\"===_t280)break;e.push(_parseFloat(_t280||0));}return e;}},{key:\"readNumber\",value:function readNumber(){var e=this.getToken();return _parseFloat(e||0);}},{key:\"readInt\",value:function readInt(){var e=this.getToken();return 0|_parseInt(e||0,10);}},{key:\"readBoolean\",value:function readBoolean(){return\"true\"===this.getToken()?1:0;}},{key:\"nextChar\",value:function nextChar(){return this.currentChar=this.stream.getByte();}},{key:\"prevChar\",value:function prevChar(){this.stream.skip(-2);return this.currentChar=this.stream.getByte();}},{key:\"getToken\",value:function getToken(){var e=!1,t=this.currentChar;for(;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,n.isWhiteSpace)(t))break;t=this.nextChar();}if(isSpecial(t)){this.nextChar();return String.fromCharCode(t);}var r=\"\";do{r+=String.fromCharCode(t);t=this.nextChar();}while(t>=0&&!(0,n.isWhiteSpace)(t)&&!isSpecial(t));return r;}},{key:\"readCharStrings\",value:function readCharStrings(e,t){return-1===t?e:decrypt(e,4330,t);}},{key:\"extractFontProgram\",value:function extractFontProgram(e){var t=this.stream,r=[],a=[],n=Object.create(null);n.lenIV=4;var i={subrs:[],charstrings:[],properties:{privateData:n}};var s,o,c,l;for(;null!==(s=this.getToken());)if(\"/\"===s){s=this.getToken();switch(s){case\"CharStrings\":this.getToken();this.getToken();this.getToken();this.getToken();for(;;){s=this.getToken();if(null===s||\"end\"===s)break;if(\"/\"!==s)continue;var _e378=this.getToken();o=this.readInt();this.getToken();c=o>0?t.getBytes(o):new Uint8Array(0);l=i.properties.privateData.lenIV;var _r244=this.readCharStrings(c,l);this.nextChar();s=this.getToken();\"noaccess\"===s?this.getToken():\"/\"===s&&this.prevChar();a.push({glyph:_e378,encoded:_r244});}break;case\"Subrs\":this.readInt();this.getToken();for(;\"dup\"===this.getToken();){var _e379=this.readInt();o=this.readInt();this.getToken();c=o>0?t.getBytes(o):new Uint8Array(0);l=i.properties.privateData.lenIV;var _a187=this.readCharStrings(c,l);this.nextChar();s=this.getToken();\"noaccess\"===s&&this.getToken();r[_e379]=_a187;}break;case\"BlueValues\":case\"OtherBlues\":case\"FamilyBlues\":case\"FamilyOtherBlues\":var _e380=this.readNumberArray();_e380.length>0&&_e380.length,0;break;case\"StemSnapH\":case\"StemSnapV\":i.properties.privateData[s]=this.readNumberArray();break;case\"StdHW\":case\"StdVW\":i.properties.privateData[s]=this.readNumberArray()[0];break;case\"BlueShift\":case\"lenIV\":case\"BlueFuzz\":case\"BlueScale\":case\"LanguageGroup\":case\"ExpansionFactor\":i.properties.privateData[s]=this.readNumber();break;case\"ForceBold\":i.properties.privateData[s]=this.readBoolean();}}for(var _i121=0,_a188=a;_i121<_a188.length;_i121++){var _a188$_i=_a188[_i121],_t281=_a188$_i.encoded,_n152=_a188$_i.glyph;var _a189=new Type1CharString(),_s79=_a189.convert(_t281,r,this.seacAnalysisEnabled);var _o55=_a189.output;_s79&&(_o55=[14]);var _c40={glyphName:_n152,charstring:_o55,width:_a189.width,lsb:_a189.lsb,seac:_a189.seac};\".notdef\"===_n152?i.charstrings.unshift(_c40):i.charstrings.push(_c40);if(e.builtInEncoding){var _context263;var _t282=_indexOfInstanceProperty(_context263=e.builtInEncoding).call(_context263,_n152);_t282>-1&&void 0===e.widths[_t282]&&_t282>=e.firstChar&&_t282<=e.lastChar&&(e.widths[_t282]=_a189.width);}}return i;}},{key:\"extractFontHeader\",value:function extractFontHeader(e){var t;for(;null!==(t=this.getToken());)if(\"/\"===t){t=this.getToken();switch(t){case\"FontMatrix\":var _r245=this.readNumberArray();e.fontMatrix=_r245;break;case\"Encoding\":var _n153=this.getToken();var _i122=void 0;if(/^\\d+$/.test(_n153)){_i122=[];var _e381=0|_parseInt(_n153,10);this.getToken();for(var _r246=0;_r246<_e381;_r246++){t=this.getToken();for(;\"dup\"!==t&&\"def\"!==t;){t=this.getToken();if(null===t)return;}if(\"def\"===t)break;var _e382=this.readInt();this.getToken();var _r247=this.getToken();_i122[_e382]=_r247;this.getToken();}}else _i122=(0,a.getEncoding)(_n153);e.builtInEncoding=_i122;break;case\"FontBBox\":var _s80=this.readNumberArray();e.ascent=Math.max(_s80[3],_s80[1]);e.descent=Math.min(_s80[1],_s80[3]);e.ascentScaled=!0;}}}}]);return Type1Parser;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.Pattern=void 0;t.getTilingPatternIR=function getTilingPatternIR(e,t,r){var n=t.getArray(\"Matrix\"),i=a.Util.normalizeRect(t.getArray(\"BBox\")),s=t.get(\"XStep\"),o=t.get(\"YStep\"),c=t.get(\"PaintType\"),l=t.get(\"TilingType\");if(i[2]-i[0]==0||i[3]-i[1]==0)throw new a.FormatError(\"Invalid getTilingPatternIR /BBox array: [\".concat(i,\"].\"));return[\"TilingPattern\",r,e,n,i,s,o,c,l];};var a=r(2),n=r(132),i=r(139),s=r(131);var o=2,c=3,l=4,h=5,u=6,d=7;t.Pattern=/*#__PURE__*/function(){function Pattern(){_classCallCheck(this,Pattern);(0,a.unreachable)(\"Cannot initialize Pattern.\");}_createClass(Pattern,null,[{key:\"parseShading\",value:function parseShading(e,t,r,i,f,g){var p=e instanceof n.BaseStream?e.dict:e,m=p.get(\"ShadingType\");try{switch(m){case o:case c:return new RadialAxialShading(p,t,r,f,g);case l:case h:case u:case d:return new MeshShading(e,t,r,f,g);default:throw new a.FormatError(\"Unsupported ShadingType: \"+m);}}catch(e){if(e instanceof s.MissingDataException)throw e;i.send(\"UnsupportedFeature\",{featureId:a.UNSUPPORTED_FEATURES.shadingPattern});(0,a.warn)(e);return new DummyShading();}}}]);return Pattern;}();var BaseShading=/*#__PURE__*/function(){function BaseShading(){_classCallCheck(this,BaseShading);this.constructor===BaseShading&&(0,a.unreachable)(\"Cannot initialize BaseShading.\");}_createClass(BaseShading,[{key:\"getIR\",value:function getIR(){(0,a.unreachable)(\"Abstract method `getIR` called.\");}}],[{key:\"SMALL_NUMBER\",get:function get(){return(0,a.shadow)(this,\"SMALL_NUMBER\",1e-6);}}]);return BaseShading;}();var RadialAxialShading=/*#__PURE__*/function(_BaseShading){_inherits(RadialAxialShading,_BaseShading);function RadialAxialShading(e,t,r,n,s){var _this82;_classCallCheck(this,RadialAxialShading);_this82=_callSuper(this,RadialAxialShading);_this82.coordsArr=e.getArray(\"Coords\");_this82.shadingType=e.get(\"ShadingType\");var o=i.ColorSpace.parse({cs:e.getRaw(\"CS\")||e.getRaw(\"ColorSpace\"),xref:t,resources:r,pdfFunctionFactory:n,localColorSpaceCache:s}),l=e.getArray(\"BBox\");Array.isArray(l)&&4===l.length?_this82.bbox=a.Util.normalizeRect(l):_this82.bbox=null;var h=0,u=1;if(e.has(\"Domain\")){var _t283=e.getArray(\"Domain\");h=_t283[0];u=_t283[1];}var d=!1,f=!1;if(e.has(\"Extend\")){var _t284=e.getArray(\"Extend\");d=_t284[0];f=_t284[1];}if(!(_this82.shadingType!==c||d&&f)){var _this82$coordsArr=_slicedToArray(_this82.coordsArr,6),_e383=_this82$coordsArr[0],_t285=_this82$coordsArr[1],_r248=_this82$coordsArr[2],_n154=_this82$coordsArr[3],_i123=_this82$coordsArr[4],_s81=_this82$coordsArr[5],_o56=_Math$hypot(_e383-_n154,_t285-_i123);_r248<=_s81+_o56&&_s81<=_r248+_o56&&(0,a.warn)(\"Unsupported radial gradient.\");}_this82.extendStart=d;_this82.extendEnd=f;var g=e.getRaw(\"Function\"),p=n.createFromArray(g),m=(u-h)/10,b=_this82.colorStops=[];if(h>=u||m<=0){(0,a.info)(\"Bad shading domain.\");return _possibleConstructorReturn(_this82);}var y=new Float32Array(o.numComps),w=new Float32Array(1);var S;for(var _e384=0;_e384<=10;_e384++){w[0]=h+_e384*m;p(w,0,y,0);S=o.getRgb(y,0);var _t286=a.Util.makeHexColor(S[0],S[1],S[2]);b.push([_e384/10,_t286]);}var x=\"transparent\";if(e.has(\"Background\")){S=o.getRgb(e.get(\"Background\"),0);x=a.Util.makeHexColor(S[0],S[1],S[2]);}if(!d){b.unshift([0,x]);b[1][0]+=BaseShading.SMALL_NUMBER;}if(!f){b.at(-1)[0]-=BaseShading.SMALL_NUMBER;b.push([1,x]);}_this82.colorStops=b;return _this82;}_createClass(RadialAxialShading,[{key:\"getIR\",value:function getIR(){var e=this.coordsArr,t=this.shadingType;var r,n,i,s,l;if(t===o){n=[e[0],e[1]];i=[e[2],e[3]];s=null;l=null;r=\"axial\";}else if(t===c){n=[e[0],e[1]];i=[e[3],e[4]];s=e[2];l=e[5];r=\"radial\";}else(0,a.unreachable)(\"getPattern type unknown: \".concat(t));return[\"RadialAxial\",r,this.bbox,this.colorStops,n,i,s,l];}}]);return RadialAxialShading;}(BaseShading);var MeshStreamReader=/*#__PURE__*/function(){function MeshStreamReader(e,t){_classCallCheck(this,MeshStreamReader);this.stream=e;this.context=t;this.buffer=0;this.bufferLength=0;var r=t.numComps;this.tmpCompsBuf=new Float32Array(r);var a=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(a):this.tmpCompsBuf;}_createClass(MeshStreamReader,[{key:\"hasData\",get:function get(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;var e=this.stream.getByte();if(e<0)return!1;this.buffer=e;this.bufferLength=8;return!0;}},{key:\"readBits\",value:function readBits(e){var t=this.buffer,r=this.bufferLength;if(32===e){if(0===r)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var _e385=this.stream.getByte();this.buffer=_e385&(1<<r)-1;return(t<<8-r|(255&_e385)>>r)>>>0;}if(8===e&&0===r)return this.stream.getByte();for(;r<e;){t=t<<8|this.stream.getByte();r+=8;}r-=e;this.bufferLength=r;this.buffer=t&(1<<r)-1;return t>>r;}},{key:\"align\",value:function align(){this.buffer=0;this.bufferLength=0;}},{key:\"readFlag\",value:function readFlag(){return this.readBits(this.context.bitsPerFlag);}},{key:\"readCoordinate\",value:function readCoordinate(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),r=this.readBits(e),a=this.context.decode,n=e<32?1/((1<<e)-1):2.3283064365386963e-10;return[t*n*(a[1]-a[0])+a[0],r*n*(a[3]-a[2])+a[2]];}},{key:\"readComponents\",value:function readComponents(){var e=this.context.numComps,t=this.context.bitsPerComponent,r=t<32?1/((1<<t)-1):2.3283064365386963e-10,a=this.context.decode,n=this.tmpCompsBuf;for(var _i124=0,_s82=4;_i124<e;_i124++,_s82+=2){var _e386=this.readBits(t);n[_i124]=_e386*r*(a[_s82+1]-a[_s82])+a[_s82];}var i=this.tmpCsCompsBuf;this.context.colorFn&&this.context.colorFn(n,0,i,0);return this.context.colorSpace.getRgb(i,0);}}]);return MeshStreamReader;}();var f=function getBClosure(){var e=[];return function(t){e[t]||(e[t]=function buildB(e){var t=[];for(var _r249=0;_r249<=e;_r249++){var _a190=_r249/e,_n155=1-_a190;t.push(new Float32Array([_n155*_n155*_n155,3*_a190*_n155*_n155,3*_a190*_a190*_n155,_a190*_a190*_a190]));}return t;}(t));return e[t];};}();var MeshShading=/*#__PURE__*/function(_BaseShading2){_inherits(MeshShading,_BaseShading2);function MeshShading(e,t,r,s,o){var _this83;_classCallCheck(this,MeshShading);_this83=_callSuper(this,MeshShading);if(!(e instanceof n.BaseStream))throw new a.FormatError(\"Mesh data is not a stream\");var c=e.dict;_this83.shadingType=c.get(\"ShadingType\");var f=c.getArray(\"BBox\");Array.isArray(f)&&4===f.length?_this83.bbox=a.Util.normalizeRect(f):_this83.bbox=null;var g=i.ColorSpace.parse({cs:c.getRaw(\"CS\")||c.getRaw(\"ColorSpace\"),xref:t,resources:r,pdfFunctionFactory:s,localColorSpaceCache:o});_this83.background=c.has(\"Background\")?g.getRgb(c.get(\"Background\"),0):null;var p=c.getRaw(\"Function\"),m=p?s.createFromArray(p):null;_this83.coords=[];_this83.colors=[];_this83.figures=[];var b={bitsPerCoordinate:c.get(\"BitsPerCoordinate\"),bitsPerComponent:c.get(\"BitsPerComponent\"),bitsPerFlag:c.get(\"BitsPerFlag\"),decode:c.getArray(\"Decode\"),colorFn:m,colorSpace:g,numComps:m?1:g.numComps},y=new MeshStreamReader(e,b);var w=!1;switch(_this83.shadingType){case l:_this83._decodeType4Shading(y);break;case h:var _e387=0|c.get(\"VerticesPerRow\");if(_e387<2)throw new a.FormatError(\"Invalid VerticesPerRow\");_this83._decodeType5Shading(y,_e387);break;case u:_this83._decodeType6Shading(y);w=!0;break;case d:_this83._decodeType7Shading(y);w=!0;break;default:(0,a.unreachable)(\"Unsupported mesh type.\");}if(w){_this83._updateBounds();for(var _e388=0,_t287=_this83.figures.length;_e388<_t287;_e388++)_this83._buildFigureFromPatch(_e388);}_this83._updateBounds();_this83._packData();return _this83;}_createClass(MeshShading,[{key:\"_decodeType4Shading\",value:function _decodeType4Shading(e){var t=this.coords,r=this.colors,n=[],i=[];var s=0;for(;e.hasData;){var _o57=e.readFlag(),_c41=e.readCoordinate(),_l27=e.readComponents();if(0===s){if(!(0<=_o57&&_o57<=2))throw new a.FormatError(\"Unknown type4 flag\");switch(_o57){case 0:s=3;break;case 1:i.push(i.at(-2),i.at(-1));s=1;break;case 2:i.push(i.at(-3),i.at(-1));s=1;}n.push(_o57);}i.push(t.length);t.push(_c41);r.push(_l27);s--;e.align();}this.figures.push({type:\"triangles\",coords:new Int32Array(i),colors:new Int32Array(i)});}},{key:\"_decodeType5Shading\",value:function _decodeType5Shading(e,t){var r=this.coords,a=this.colors,n=[];for(;e.hasData;){var _t288=e.readCoordinate(),_i125=e.readComponents();n.push(r.length);r.push(_t288);a.push(_i125);}this.figures.push({type:\"lattice\",coords:new Int32Array(n),colors:new Int32Array(n),verticesPerRow:t});}},{key:\"_decodeType6Shading\",value:function _decodeType6Shading(e){var t=this.coords,r=this.colors,n=new Int32Array(16),i=new Int32Array(4);for(;e.hasData;){var _s83=e.readFlag();if(!(0<=_s83&&_s83<=3))throw new a.FormatError(\"Unknown type6 flag\");var _o58=t.length;for(var _r250=0,_a191=0!==_s83?8:12;_r250<_a191;_r250++)t.push(e.readCoordinate());var _c42=r.length;for(var _t289=0,_a192=0!==_s83?2:4;_t289<_a192;_t289++)r.push(e.readComponents());var _l28=void 0,_h25=void 0,_u13=void 0,_d11=void 0;switch(_s83){case 0:n[12]=_o58+3;n[13]=_o58+4;n[14]=_o58+5;n[15]=_o58+6;n[8]=_o58+2;n[11]=_o58+7;n[4]=_o58+1;n[7]=_o58+8;n[0]=_o58;n[1]=_o58+11;n[2]=_o58+10;n[3]=_o58+9;i[2]=_c42+1;i[3]=_c42+2;i[0]=_c42;i[1]=_c42+3;break;case 1:_l28=n[12];_h25=n[13];_u13=n[14];_d11=n[15];n[12]=_d11;n[13]=_o58+0;n[14]=_o58+1;n[15]=_o58+2;n[8]=_u13;n[11]=_o58+3;n[4]=_h25;n[7]=_o58+4;n[0]=_l28;n[1]=_o58+7;n[2]=_o58+6;n[3]=_o58+5;_l28=i[2];_h25=i[3];i[2]=_h25;i[3]=_c42;i[0]=_l28;i[1]=_c42+1;break;case 2:_l28=n[15];_h25=n[11];n[12]=n[3];n[13]=_o58+0;n[14]=_o58+1;n[15]=_o58+2;n[8]=n[7];n[11]=_o58+3;n[4]=_h25;n[7]=_o58+4;n[0]=_l28;n[1]=_o58+7;n[2]=_o58+6;n[3]=_o58+5;_l28=i[3];i[2]=i[1];i[3]=_c42;i[0]=_l28;i[1]=_c42+1;break;case 3:n[12]=n[0];n[13]=_o58+0;n[14]=_o58+1;n[15]=_o58+2;n[8]=n[1];n[11]=_o58+3;n[4]=n[2];n[7]=_o58+4;n[0]=n[3];n[1]=_o58+7;n[2]=_o58+6;n[3]=_o58+5;i[2]=i[0];i[3]=_c42;i[0]=i[1];i[1]=_c42+1;}n[5]=t.length;t.push([(-4*t[n[0]][0]-t[n[15]][0]+6*(t[n[4]][0]+t[n[1]][0])-2*(t[n[12]][0]+t[n[3]][0])+3*(t[n[13]][0]+t[n[7]][0]))/9,(-4*t[n[0]][1]-t[n[15]][1]+6*(t[n[4]][1]+t[n[1]][1])-2*(t[n[12]][1]+t[n[3]][1])+3*(t[n[13]][1]+t[n[7]][1]))/9]);n[6]=t.length;t.push([(-4*t[n[3]][0]-t[n[12]][0]+6*(t[n[2]][0]+t[n[7]][0])-2*(t[n[0]][0]+t[n[15]][0])+3*(t[n[4]][0]+t[n[14]][0]))/9,(-4*t[n[3]][1]-t[n[12]][1]+6*(t[n[2]][1]+t[n[7]][1])-2*(t[n[0]][1]+t[n[15]][1])+3*(t[n[4]][1]+t[n[14]][1]))/9]);n[9]=t.length;t.push([(-4*t[n[12]][0]-t[n[3]][0]+6*(t[n[8]][0]+t[n[13]][0])-2*(t[n[0]][0]+t[n[15]][0])+3*(t[n[11]][0]+t[n[1]][0]))/9,(-4*t[n[12]][1]-t[n[3]][1]+6*(t[n[8]][1]+t[n[13]][1])-2*(t[n[0]][1]+t[n[15]][1])+3*(t[n[11]][1]+t[n[1]][1]))/9]);n[10]=t.length;t.push([(-4*t[n[15]][0]-t[n[0]][0]+6*(t[n[11]][0]+t[n[14]][0])-2*(t[n[12]][0]+t[n[3]][0])+3*(t[n[2]][0]+t[n[8]][0]))/9,(-4*t[n[15]][1]-t[n[0]][1]+6*(t[n[11]][1]+t[n[14]][1])-2*(t[n[12]][1]+t[n[3]][1])+3*(t[n[2]][1]+t[n[8]][1]))/9]);this.figures.push({type:\"patch\",coords:new Int32Array(n),colors:new Int32Array(i)});}}},{key:\"_decodeType7Shading\",value:function _decodeType7Shading(e){var t=this.coords,r=this.colors,n=new Int32Array(16),i=new Int32Array(4);for(;e.hasData;){var _s84=e.readFlag();if(!(0<=_s84&&_s84<=3))throw new a.FormatError(\"Unknown type7 flag\");var _o59=t.length;for(var _r251=0,_a193=0!==_s84?12:16;_r251<_a193;_r251++)t.push(e.readCoordinate());var _c43=r.length;for(var _t290=0,_a194=0!==_s84?2:4;_t290<_a194;_t290++)r.push(e.readComponents());var _l29=void 0,_h26=void 0,_u14=void 0,_d12=void 0;switch(_s84){case 0:n[12]=_o59+3;n[13]=_o59+4;n[14]=_o59+5;n[15]=_o59+6;n[8]=_o59+2;n[9]=_o59+13;n[10]=_o59+14;n[11]=_o59+7;n[4]=_o59+1;n[5]=_o59+12;n[6]=_o59+15;n[7]=_o59+8;n[0]=_o59;n[1]=_o59+11;n[2]=_o59+10;n[3]=_o59+9;i[2]=_c43+1;i[3]=_c43+2;i[0]=_c43;i[1]=_c43+3;break;case 1:_l29=n[12];_h26=n[13];_u14=n[14];_d12=n[15];n[12]=_d12;n[13]=_o59+0;n[14]=_o59+1;n[15]=_o59+2;n[8]=_u14;n[9]=_o59+9;n[10]=_o59+10;n[11]=_o59+3;n[4]=_h26;n[5]=_o59+8;n[6]=_o59+11;n[7]=_o59+4;n[0]=_l29;n[1]=_o59+7;n[2]=_o59+6;n[3]=_o59+5;_l29=i[2];_h26=i[3];i[2]=_h26;i[3]=_c43;i[0]=_l29;i[1]=_c43+1;break;case 2:_l29=n[15];_h26=n[11];n[12]=n[3];n[13]=_o59+0;n[14]=_o59+1;n[15]=_o59+2;n[8]=n[7];n[9]=_o59+9;n[10]=_o59+10;n[11]=_o59+3;n[4]=_h26;n[5]=_o59+8;n[6]=_o59+11;n[7]=_o59+4;n[0]=_l29;n[1]=_o59+7;n[2]=_o59+6;n[3]=_o59+5;_l29=i[3];i[2]=i[1];i[3]=_c43;i[0]=_l29;i[1]=_c43+1;break;case 3:n[12]=n[0];n[13]=_o59+0;n[14]=_o59+1;n[15]=_o59+2;n[8]=n[1];n[9]=_o59+9;n[10]=_o59+10;n[11]=_o59+3;n[4]=n[2];n[5]=_o59+8;n[6]=_o59+11;n[7]=_o59+4;n[0]=n[3];n[1]=_o59+7;n[2]=_o59+6;n[3]=_o59+5;i[2]=i[0];i[3]=_c43;i[0]=i[1];i[1]=_c43+1;}this.figures.push({type:\"patch\",coords:new Int32Array(n),colors:new Int32Array(i)});}}},{key:\"_buildFigureFromPatch\",value:function _buildFigureFromPatch(e){var t=this.figures[e];(0,a.assert)(\"patch\"===t.type,\"Unexpected patch mesh figure\");var r=this.coords,n=this.colors,i=t.coords,s=t.colors,o=Math.min(r[i[0]][0],r[i[3]][0],r[i[12]][0],r[i[15]][0]),c=Math.min(r[i[0]][1],r[i[3]][1],r[i[12]][1],r[i[15]][1]),l=Math.max(r[i[0]][0],r[i[3]][0],r[i[12]][0],r[i[15]][0]),h=Math.max(r[i[0]][1],r[i[3]][1],r[i[12]][1],r[i[15]][1]);var u=Math.ceil((l-o)*MeshShading.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));u=Math.max(MeshShading.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(MeshShading.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,u));var d=Math.ceil((h-c)*MeshShading.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));d=Math.max(MeshShading.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(MeshShading.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,d));var g=u+1,p=new Int32Array((d+1)*g),m=new Int32Array((d+1)*g);var b=0;var y=new Uint8Array(3),w=new Uint8Array(3),S=n[s[0]],x=n[s[1]],k=n[s[2]],C=n[s[3]],v=f(d),O=f(u);for(var _e389=0;_e389<=d;_e389++){y[0]=(S[0]*(d-_e389)+k[0]*_e389)/d|0;y[1]=(S[1]*(d-_e389)+k[1]*_e389)/d|0;y[2]=(S[2]*(d-_e389)+k[2]*_e389)/d|0;w[0]=(x[0]*(d-_e389)+C[0]*_e389)/d|0;w[1]=(x[1]*(d-_e389)+C[1]*_e389)/d|0;w[2]=(x[2]*(d-_e389)+C[2]*_e389)/d|0;for(var _t291=0;_t291<=u;_t291++,b++){if(!(0!==_e389&&_e389!==d||0!==_t291&&_t291!==u))continue;var _a195=0,_s85=0,_o60=0;for(var _n156=0;_n156<=3;_n156++)for(var _c44=0;_c44<=3;_c44++,_o60++){var _l30=v[_e389][_n156]*O[_t291][_c44];_a195+=r[i[_o60]][0]*_l30;_s85+=r[i[_o60]][1]*_l30;}p[b]=r.length;r.push([_a195,_s85]);m[b]=n.length;var _c45=new Uint8Array(3);_c45[0]=(y[0]*(u-_t291)+w[0]*_t291)/u|0;_c45[1]=(y[1]*(u-_t291)+w[1]*_t291)/u|0;_c45[2]=(y[2]*(u-_t291)+w[2]*_t291)/u|0;n.push(_c45);}}p[0]=i[0];m[0]=s[0];p[u]=i[3];m[u]=s[1];p[g*d]=i[12];m[g*d]=s[2];p[g*d+u]=i[15];m[g*d+u]=s[3];this.figures[e]={type:\"lattice\",coords:p,colors:m,verticesPerRow:g};}},{key:\"_updateBounds\",value:function _updateBounds(){var e=this.coords[0][0],t=this.coords[0][1],r=e,a=t;for(var _n157=1,_i126=this.coords.length;_n157<_i126;_n157++){var _i127=this.coords[_n157][0],_s86=this.coords[_n157][1];e=e>_i127?_i127:e;t=t>_s86?_s86:t;r=r<_i127?_i127:r;a=a<_s86?_s86:a;}this.bounds=[e,t,r,a];}},{key:\"_packData\",value:function _packData(){var e,t,r,a;var n=this.coords,i=new Float32Array(2*n.length);for(e=0,r=0,t=n.length;e<t;e++){var _t292=n[e];i[r++]=_t292[0];i[r++]=_t292[1];}this.coords=i;var s=this.colors,o=new Uint8Array(3*s.length);for(e=0,r=0,t=s.length;e<t;e++){var _t293=s[e];o[r++]=_t293[0];o[r++]=_t293[1];o[r++]=_t293[2];}this.colors=o;var c=this.figures;for(e=0,t=c.length;e<t;e++){var _t294=c[e],_n158=_t294.coords,_i128=_t294.colors;for(r=0,a=_n158.length;r<a;r++){_n158[r]*=2;_i128[r]*=3;}}}},{key:\"getIR\",value:function getIR(){return[\"Mesh\",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.bbox,this.background];}}],[{key:\"MIN_SPLIT_PATCH_CHUNKS_AMOUNT\",get:function get(){return(0,a.shadow)(this,\"MIN_SPLIT_PATCH_CHUNKS_AMOUNT\",3);}},{key:\"MAX_SPLIT_PATCH_CHUNKS_AMOUNT\",get:function get(){return(0,a.shadow)(this,\"MAX_SPLIT_PATCH_CHUNKS_AMOUNT\",20);}},{key:\"TRIANGLE_DENSITY\",get:function get(){return(0,a.shadow)(this,\"TRIANGLE_DENSITY\",20);}}]);return MeshShading;}(BaseShading);var DummyShading=/*#__PURE__*/function(_BaseShading3){_inherits(DummyShading,_BaseShading3);function DummyShading(){_classCallCheck(this,DummyShading);return _callSuper(this,DummyShading,arguments);}_createClass(DummyShading,[{key:\"getIR\",value:function getIR(){return[\"Dummy\"];}}]);return DummyShading;}(BaseShading);},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.getXfaFontDict=function getXfaFontDict(e){var t=function getXfaFontWidths(e,_context264){var t=getXfaFontName(e);if(!t)return null;var r=t.baseWidths,a=t.baseMapping,n=t.factors;var i;i=n?_mapInstanceProperty(r).call(r,function(e,t){return e*n[t];}):r;var s,o=-2;var c=[];var _iterator86=_createForOfIteratorHelper(_sortInstanceProperty(_context264=_mapInstanceProperty(a).call(a,function(e,t){return[e,t];})).call(_context264,function(e,t){var _e390=_slicedToArray(e,1),r=_e390[0],_t295=_slicedToArray(t,1),a=_t295[0];return r-a;})),_step86;try{for(_iterator86.s();!(_step86=_iterator86.n()).done;){var _step86$value=_slicedToArray(_step86.value,2),_e391=_step86$value[0],_t296=_step86$value[1];if(-1!==_e391)if(_e391===o+1){s.push(i[_t296]);o+=1;}else{o=_e391;s=[i[_t296]];c.push(_e391,s);}}}catch(err){_iterator86.e(err);}finally{_iterator86.f();}return c;}(e),r=new n.Dict(null);r.set(\"BaseFont\",n.Name.get(e));r.set(\"Type\",n.Name.get(\"Font\"));r.set(\"Subtype\",n.Name.get(\"CIDFontType2\"));r.set(\"Encoding\",n.Name.get(\"Identity-H\"));r.set(\"CIDToGIDMap\",n.Name.get(\"Identity\"));r.set(\"W\",t);r.set(\"FirstChar\",t[0]);r.set(\"LastChar\",t.at(-2)+t.at(-1).length-1);var a=new n.Dict(null);r.set(\"FontDescriptor\",a);var i=new n.Dict(null);i.set(\"Ordering\",\"Identity\");i.set(\"Registry\",\"Adobe\");i.set(\"Supplement\",0);r.set(\"CIDSystemInfo\",i);return r;};t.getXfaFontName=getXfaFontName;var a=r(177),n=r(130),i=r(178),s=r(179),o=r(180),c=r(181),l=r(131),h=r(163);var u=(0,l.getLookupTableFactory)(function(e){e[\"MyriadPro-Regular\"]=e[\"PdfJS-Fallback-Regular\"]={name:\"LiberationSans-Regular\",factors:o.MyriadProRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:o.MyriadProRegularMetrics};e[\"MyriadPro-Bold\"]=e[\"PdfJS-Fallback-Bold\"]={name:\"LiberationSans-Bold\",factors:o.MyriadProBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:o.MyriadProBoldMetrics};e[\"MyriadPro-It\"]=e[\"MyriadPro-Italic\"]=e[\"PdfJS-Fallback-Italic\"]={name:\"LiberationSans-Italic\",factors:o.MyriadProItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:o.MyriadProItalicMetrics};e[\"MyriadPro-BoldIt\"]=e[\"MyriadPro-BoldItalic\"]=e[\"PdfJS-Fallback-BoldItalic\"]={name:\"LiberationSans-BoldItalic\",factors:o.MyriadProBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:o.MyriadProBoldItalicMetrics};e.ArialMT=e.Arial=e[\"Arial-Regular\"]={name:\"LiberationSans-Regular\",baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping};e[\"Arial-BoldMT\"]=e[\"Arial-Bold\"]={name:\"LiberationSans-Bold\",baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping};e[\"Arial-ItalicMT\"]=e[\"Arial-Italic\"]={name:\"LiberationSans-Italic\",baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping};e[\"Arial-BoldItalicMT\"]=e[\"Arial-BoldItalic\"]={name:\"LiberationSans-BoldItalic\",baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping};e[\"Calibri-Regular\"]={name:\"LiberationSans-Regular\",factors:a.CalibriRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:a.CalibriRegularMetrics};e[\"Calibri-Bold\"]={name:\"LiberationSans-Bold\",factors:a.CalibriBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:a.CalibriBoldMetrics};e[\"Calibri-Italic\"]={name:\"LiberationSans-Italic\",factors:a.CalibriItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:a.CalibriItalicMetrics};e[\"Calibri-BoldItalic\"]={name:\"LiberationSans-BoldItalic\",factors:a.CalibriBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:a.CalibriBoldItalicMetrics};e[\"Segoeui-Regular\"]={name:\"LiberationSans-Regular\",factors:c.SegoeuiRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:c.SegoeuiRegularMetrics};e[\"Segoeui-Bold\"]={name:\"LiberationSans-Bold\",factors:c.SegoeuiBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:c.SegoeuiBoldMetrics};e[\"Segoeui-Italic\"]={name:\"LiberationSans-Italic\",factors:c.SegoeuiItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:c.SegoeuiItalicMetrics};e[\"Segoeui-BoldItalic\"]={name:\"LiberationSans-BoldItalic\",factors:c.SegoeuiBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:c.SegoeuiBoldItalicMetrics};e[\"Helvetica-Regular\"]=e.Helvetica={name:\"LiberationSans-Regular\",factors:i.HelveticaRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:i.HelveticaRegularMetrics};e[\"Helvetica-Bold\"]={name:\"LiberationSans-Bold\",factors:i.HelveticaBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:i.HelveticaBoldMetrics};e[\"Helvetica-Italic\"]={name:\"LiberationSans-Italic\",factors:i.HelveticaItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:i.HelveticaItalicMetrics};e[\"Helvetica-BoldItalic\"]={name:\"LiberationSans-BoldItalic\",factors:i.HelveticaBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:i.HelveticaBoldItalicMetrics};});function getXfaFontName(e){var t=(0,h.normalizeFontName)(e);return u()[t];}},function(e,t){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.CalibriRegularMetrics=t.CalibriRegularFactors=t.CalibriItalicMetrics=t.CalibriItalicFactors=t.CalibriBoldMetrics=t.CalibriBoldItalicMetrics=t.CalibriBoldItalicFactors=t.CalibriBoldFactors=void 0;t.CalibriBoldFactors=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.CalibriBoldMetrics={lineHeight:1.2207,lineGap:.2207};t.CalibriBoldItalicFactors=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.CalibriBoldItalicMetrics={lineHeight:1.2207,lineGap:.2207};t.CalibriItalicFactors=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.CalibriItalicMetrics={lineHeight:1.2207,lineGap:.2207};t.CalibriRegularFactors=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1];t.CalibriRegularMetrics={lineHeight:1.2207,lineGap:.2207};},function(e,t){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.HelveticaRegularMetrics=t.HelveticaRegularFactors=t.HelveticaItalicMetrics=t.HelveticaItalicFactors=t.HelveticaBoldMetrics=t.HelveticaBoldItalicMetrics=t.HelveticaBoldItalicFactors=t.HelveticaBoldFactors=void 0;t.HelveticaBoldFactors=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,.99973,1.00052,1.00041,1.00119,1.00037,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];t.HelveticaBoldMetrics={lineHeight:1.2,lineGap:.2};t.HelveticaBoldItalicFactors=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99973,.99977,.99999,1.00058,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];t.HelveticaBoldItalicMetrics={lineHeight:1.35,lineGap:.2};t.HelveticaItalicFactors=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99973,1.00089,1.00005,.99967,1.00048,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];t.HelveticaItalicMetrics={lineHeight:1.35,lineGap:.2};t.HelveticaRegularFactors=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,.99973,1.00043,.99953,1.0007,.99915,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.HelveticaRegularMetrics={lineHeight:1.2,lineGap:.2};},function(e,t){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.LiberationSansRegularWidths=t.LiberationSansRegularMapping=t.LiberationSansItalicWidths=t.LiberationSansItalicMapping=t.LiberationSansBoldWidths=t.LiberationSansBoldMapping=t.LiberationSansBoldItalicWidths=t.LiberationSansBoldItalicMapping=void 0;t.LiberationSansBoldWidths=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];t.LiberationSansBoldMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];t.LiberationSansBoldItalicWidths=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];t.LiberationSansBoldItalicMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];t.LiberationSansItalicWidths=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];t.LiberationSansItalicMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];t.LiberationSansRegularWidths=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];t.LiberationSansRegularMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];},function(e,t){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.MyriadProRegularMetrics=t.MyriadProRegularFactors=t.MyriadProItalicMetrics=t.MyriadProItalicFactors=t.MyriadProBoldMetrics=t.MyriadProBoldItalicMetrics=t.MyriadProBoldItalicFactors=t.MyriadProBoldFactors=void 0;t.MyriadProBoldFactors=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.16161,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.MyriadProBoldMetrics={lineHeight:1.2,lineGap:.2};t.MyriadProBoldItalicFactors=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.MyriadProBoldItalicMetrics={lineHeight:1.2,lineGap:.2};t.MyriadProItalicFactors=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.MyriadProItalicMetrics={lineHeight:1.2,lineGap:.2};t.MyriadProRegularFactors=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05638,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.MyriadProRegularMetrics={lineHeight:1.2,lineGap:.2};},function(e,t){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.SegoeuiRegularMetrics=t.SegoeuiRegularFactors=t.SegoeuiItalicMetrics=t.SegoeuiItalicFactors=t.SegoeuiBoldMetrics=t.SegoeuiBoldItalicMetrics=t.SegoeuiBoldItalicFactors=t.SegoeuiBoldFactors=void 0;t.SegoeuiBoldFactors=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.SegoeuiBoldMetrics={lineHeight:1.33008,lineGap:0};t.SegoeuiBoldItalicFactors=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.SegoeuiBoldItalicMetrics={lineHeight:1.33008,lineGap:0};t.SegoeuiItalicFactors=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.SegoeuiItalicMetrics={lineHeight:1.33008,lineGap:0};t.SegoeuiRegularFactors=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1];t.SegoeuiRegularMetrics={lineHeight:1.33008,lineGap:0};},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.PostScriptEvaluator=t.PostScriptCompiler=t.PDFFunctionFactory=void 0;t.isPDFFunction=function isPDFFunction(e){var t;if(\"object\"!=_typeof(e))return!1;if(e instanceof a.Dict)t=e;else{if(!(e instanceof s.BaseStream))return!1;t=e.dict;}return t.has(\"FunctionType\");};var a=r(130),n=r(2),i=r(183),s=r(132),o=r(184);t.PDFFunctionFactory=/*#__PURE__*/function(){function PDFFunctionFactory(e){_classCallCheck(this,PDFFunctionFactory);var t=e.xref,_e$isEvalSupported=e.isEvalSupported,r=_e$isEvalSupported===void 0?!0:_e$isEvalSupported;this.xref=t;this.isEvalSupported=!1!==r;}_createClass(PDFFunctionFactory,[{key:\"create\",value:function create(e){var t=this.getCached(e);if(t)return t;var r=PDFFunction.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:e instanceof a.Ref?this.xref.fetch(e):e});this._cache(e,r);return r;}},{key:\"createFromArray\",value:function createFromArray(e){var t=this.getCached(e);if(t)return t;var r=PDFFunction.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:e instanceof a.Ref?this.xref.fetch(e):e});this._cache(e,r);return r;}},{key:\"getCached\",value:function getCached(e){var t;e instanceof a.Ref?t=e:e instanceof a.Dict?t=e.objId:e instanceof s.BaseStream&&(t=e.dict&&e.dict.objId);if(t){var _e392=this._localFunctionCache.getByRef(t);if(_e392)return _e392;}return null;}},{key:\"_cache\",value:function _cache(e,t){if(!t)throw new Error('PDFFunctionFactory._cache - expected \"parsedFunction\" argument.');var r;e instanceof a.Ref?r=e:e instanceof a.Dict?r=e.objId:e instanceof s.BaseStream&&(r=e.dict&&e.dict.objId);r&&this._localFunctionCache.set(null,r,t);}},{key:\"_localFunctionCache\",get:function get(){return(0,n.shadow)(this,\"_localFunctionCache\",new o.LocalFunctionCache());}}]);return PDFFunctionFactory;}();function toNumberArray(e){if(!Array.isArray(e))return null;var t=e.length;for(var _r252=0;_r252<t;_r252++)if(\"number\"!=typeof e[_r252]){var _r253=new Array(t);for(var _a196=0;_a196<t;_a196++)_r253[_a196]=+e[_a196];return _r253;}return e;}var PDFFunction=/*#__PURE__*/function(){function PDFFunction(){_classCallCheck(this,PDFFunction);}_createClass(PDFFunction,null,[{key:\"getSampleArray\",value:function getSampleArray(e,t,r,a){var n,i,s=1;for(n=0,i=e.length;n<i;n++)s*=e[n];s*=t;var o=new Array(s);var c=0,l=0;var h=1/(Math.pow(2,r)-1),u=a.getBytes((s*r+7)/8);var d=0;for(n=0;n<s;n++){for(;c<r;){l<<=8;l|=u[d++];c+=8;}c-=r;o[n]=(l>>c)*h;l&=(1<<c)-1;}return o;}},{key:\"parse\",value:function parse(e){var t=e.xref,r=e.isEvalSupported,a=e.fn;var i=a.dict||a;switch(i.get(\"FunctionType\")){case 0:return this.constructSampled({xref:t,isEvalSupported:r,fn:a,dict:i});case 1:break;case 2:return this.constructInterpolated({xref:t,isEvalSupported:r,dict:i});case 3:return this.constructStiched({xref:t,isEvalSupported:r,dict:i});case 4:return this.constructPostScript({xref:t,isEvalSupported:r,fn:a,dict:i});}throw new n.FormatError(\"Unknown type of function\");}},{key:\"parseArray\",value:function parseArray(e){var t=e.xref,r=e.isEvalSupported,a=e.fnObj;if(!Array.isArray(a))return this.parse({xref:t,isEvalSupported:r,fn:a});var n=[];for(var _e393=0,_i129=a.length;_e393<_i129;_e393++)n.push(this.parse({xref:t,isEvalSupported:r,fn:t.fetchIfRef(a[_e393])}));return function(e,t,r,a){for(var _i130=0,_s87=n.length;_i130<_s87;_i130++)n[_i130](e,t,r,a+_i130);};}},{key:\"constructSampled\",value:function constructSampled(e){var t=e.xref,r=e.isEvalSupported,a=e.fn,i=e.dict;function toMultiArray(e){var t=e.length,r=[];var a=0;for(var _n159=0;_n159<t;_n159+=2)r[a++]=[e[_n159],e[_n159+1]];return r;}function interpolate(e,t,r,a,n){return a+(n-a)/(r-t)*(e-t);}var s=toNumberArray(i.getArray(\"Domain\")),o=toNumberArray(i.getArray(\"Range\"));if(!s||!o)throw new n.FormatError(\"No domain or range\");var c=s.length/2,l=o.length/2;s=toMultiArray(s);o=toMultiArray(o);var h=toNumberArray(i.getArray(\"Size\")),u=i.get(\"BitsPerSample\"),d=i.get(\"Order\")||1;1!==d&&(0,n.info)(\"No support for cubic spline interpolation: \"+d);var f=toNumberArray(i.getArray(\"Encode\"));if(f)f=toMultiArray(f);else{f=[];for(var _e394=0;_e394<c;++_e394)f.push([0,h[_e394]-1]);}var g=toNumberArray(i.getArray(\"Decode\"));g=g?toMultiArray(g):o;var p=this.getSampleArray(h,l,u,a);return function constructSampledFn(e,t,r,a){var n=1<<c,i=new Float64Array(n),u=new Uint32Array(n);var d,m;for(m=0;m<n;m++)i[m]=1;var b=l,y=1;for(d=0;d<c;++d){var _r254=s[d][0],_a197=s[d][1];var _o61=interpolate(Math.min(Math.max(e[t+d],_r254),_a197),_r254,_a197,f[d][0],f[d][1]);var _c46=h[d];_o61=Math.min(Math.max(_o61,0),_c46-1);var _l31=_o61<_c46-1?Math.floor(_o61):_o61-1,_g19=_l31+1-_o61,_p12=_o61-_l31,w=_l31*b,S=w+b;for(m=0;m<n;m++)if(m&y){i[m]*=_p12;u[m]+=S;}else{i[m]*=_g19;u[m]+=w;}b*=_c46;y<<=1;}for(m=0;m<l;++m){var _e395=0;for(d=0;d<n;d++)_e395+=p[u[d]+m]*i[d];_e395=interpolate(_e395,0,1,g[m][0],g[m][1]);r[a+m]=Math.min(Math.max(_e395,o[m][0]),o[m][1]);}};}},{key:\"constructInterpolated\",value:function constructInterpolated(e){var t=e.xref,r=e.isEvalSupported,a=e.dict;var n=toNumberArray(a.getArray(\"C0\"))||[0],i=toNumberArray(a.getArray(\"C1\"))||[1],s=a.get(\"N\"),o=[];for(var _e396=0,_t297=n.length;_e396<_t297;++_e396)o.push(i[_e396]-n[_e396]);var c=o.length;return function constructInterpolatedFn(e,t,r,a){var i=1===s?e[t]:Math.pow(e[t],s);for(var _e397=0;_e397<c;++_e397)r[a+_e397]=n[_e397]+i*o[_e397];};}},{key:\"constructStiched\",value:function constructStiched(e){var t=e.xref,r=e.isEvalSupported,a=e.dict;var i=toNumberArray(a.getArray(\"Domain\"));if(!i)throw new n.FormatError(\"No domain\");if(1!==i.length/2)throw new n.FormatError(\"Bad domain for stiched function\");var s=a.get(\"Functions\"),o=[];for(var _e398=0,_a198=s.length;_e398<_a198;++_e398)o.push(this.parse({xref:t,isEvalSupported:r,fn:t.fetchIfRef(s[_e398])}));var c=toNumberArray(a.getArray(\"Bounds\")),l=toNumberArray(a.getArray(\"Encode\")),h=new Float32Array(1);return function constructStichedFn(e,t,r,a){var n=function constructStichedFromIRClip(e,t,r){e>r?e=r:e<t&&(e=t);return e;}(e[t],i[0],i[1]),s=c.length;var u;for(u=0;u<s&&!(n<c[u]);++u);var d=i[0];u>0&&(d=c[u-1]);var f=i[1];u<c.length&&(f=c[u]);var g=l[2*u],p=l[2*u+1];h[0]=d===f?g:g+(n-d)*(p-g)/(f-d);o[u](h,0,r,a);};}},{key:\"constructPostScript\",value:function constructPostScript(e){var t=e.xref,r=e.isEvalSupported,a=e.fn,s=e.dict;var o=toNumberArray(s.getArray(\"Domain\")),c=toNumberArray(s.getArray(\"Range\"));if(!o)throw new n.FormatError(\"No domain.\");if(!c)throw new n.FormatError(\"No range.\");var l=new i.PostScriptLexer(a),h=new i.PostScriptParser(l).parse();if(r&&n.FeatureTest.isEvalSupported){var _e399=new PostScriptCompiler().compile(h,o,c);if(_e399)return new Function(\"src\",\"srcOffset\",\"dest\",\"destOffset\",_e399);}(0,n.info)(\"Unable to compile PS function\");var u=c.length>>1,d=o.length>>1,f=new PostScriptEvaluator(h),g=Object.create(null);var p=8192;var m=new Float32Array(d);return function constructPostScriptFn(e,t,r,a){var n,i,s=\"\";var o=m;for(n=0;n<d;n++){i=e[t+n];o[n]=i;s+=i+\"_\";}var l=g[s];if(void 0!==l){r.set(l,a);return;}var h=new Float32Array(u),b=f.execute(o),y=b.length-u;for(n=0;n<u;n++){i=b[y+n];var _e400=c[2*n];if(i<_e400)i=_e400;else{_e400=c[2*n+1];i>_e400&&(i=_e400);}h[n]=i;}if(p>0){p--;g[s]=h;}r.set(h,a);};}}]);return PDFFunction;}();var PostScriptStack=/*#__PURE__*/function(){function PostScriptStack(e){_classCallCheck(this,PostScriptStack);this.stack=e?_sliceInstanceProperty(Array.prototype).call(e,0):[];}_createClass(PostScriptStack,[{key:\"push\",value:function push(e){if(this.stack.length>=PostScriptStack.MAX_STACK_SIZE)throw new Error(\"PostScript function stack overflow.\");this.stack.push(e);}},{key:\"pop\",value:function pop(){if(this.stack.length<=0)throw new Error(\"PostScript function stack underflow.\");return this.stack.pop();}},{key:\"copy\",value:function copy(e){if(this.stack.length+e>=PostScriptStack.MAX_STACK_SIZE)throw new Error(\"PostScript function stack overflow.\");var t=this.stack;for(var _r255=t.length-e,_a199=e-1;_a199>=0;_a199--,_r255++)t.push(t[_r255]);}},{key:\"index\",value:function index(e){this.push(this.stack[this.stack.length-e-1]);}},{key:\"roll\",value:function roll(e,t){var r=this.stack,a=r.length-e,n=r.length-1,i=a+(t-Math.floor(t/e)*e);for(var _e401=a,_t298=n;_e401<_t298;_e401++,_t298--){var _a200=r[_e401];r[_e401]=r[_t298];r[_t298]=_a200;}for(var _e402=a,_t299=i-1;_e402<_t299;_e402++,_t299--){var _a201=r[_e402];r[_e402]=r[_t299];r[_t299]=_a201;}for(var _e403=i,_t300=n;_e403<_t300;_e403++,_t300--){var _a202=r[_e403];r[_e403]=r[_t300];r[_t300]=_a202;}}}],[{key:\"MAX_STACK_SIZE\",get:function get(){return(0,n.shadow)(this,\"MAX_STACK_SIZE\",100);}}]);return PostScriptStack;}();var PostScriptEvaluator=/*#__PURE__*/function(){function PostScriptEvaluator(e){_classCallCheck(this,PostScriptEvaluator);this.operators=e;}_createClass(PostScriptEvaluator,[{key:\"execute\",value:function execute(e){var t=new PostScriptStack(e);var r=0;var a=this.operators,i=a.length;var s,o,c;for(;r<i;){s=a[r++];if(\"number\"!=typeof s)switch(s){case\"jz\":c=t.pop();o=t.pop();o||(r=c);break;case\"j\":o=t.pop();r=o;break;case\"abs\":o=t.pop();t.push(Math.abs(o));break;case\"add\":c=t.pop();o=t.pop();t.push(o+c);break;case\"and\":c=t.pop();o=t.pop();\"boolean\"==typeof o&&\"boolean\"==typeof c?t.push(o&&c):t.push(o&c);break;case\"atan\":o=t.pop();t.push(Math.atan(o));break;case\"bitshift\":c=t.pop();o=t.pop();o>0?t.push(o<<c):t.push(o>>c);break;case\"ceiling\":o=t.pop();t.push(Math.ceil(o));break;case\"copy\":o=t.pop();t.copy(o);break;case\"cos\":o=t.pop();t.push(Math.cos(o));break;case\"cvi\":o=0|t.pop();t.push(o);break;case\"cvr\":break;case\"div\":c=t.pop();o=t.pop();t.push(o/c);break;case\"dup\":t.copy(1);break;case\"eq\":c=t.pop();o=t.pop();t.push(o===c);break;case\"exch\":t.roll(2,1);break;case\"exp\":c=t.pop();o=t.pop();t.push(Math.pow(o,c));break;case\"false\":t.push(!1);break;case\"floor\":o=t.pop();t.push(Math.floor(o));break;case\"ge\":c=t.pop();o=t.pop();t.push(o>=c);break;case\"gt\":c=t.pop();o=t.pop();t.push(o>c);break;case\"idiv\":c=t.pop();o=t.pop();t.push(o/c|0);break;case\"index\":o=t.pop();t.index(o);break;case\"le\":c=t.pop();o=t.pop();t.push(o<=c);break;case\"ln\":o=t.pop();t.push(Math.log(o));break;case\"log\":o=t.pop();t.push(Math.log(o)/Math.LN10);break;case\"lt\":c=t.pop();o=t.pop();t.push(o<c);break;case\"mod\":c=t.pop();o=t.pop();t.push(o%c);break;case\"mul\":c=t.pop();o=t.pop();t.push(o*c);break;case\"ne\":c=t.pop();o=t.pop();t.push(o!==c);break;case\"neg\":o=t.pop();t.push(-o);break;case\"not\":o=t.pop();\"boolean\"==typeof o?t.push(!o):t.push(~o);break;case\"or\":c=t.pop();o=t.pop();\"boolean\"==typeof o&&\"boolean\"==typeof c?t.push(o||c):t.push(o|c);break;case\"pop\":t.pop();break;case\"roll\":c=t.pop();o=t.pop();t.roll(o,c);break;case\"round\":o=t.pop();t.push(Math.round(o));break;case\"sin\":o=t.pop();t.push(Math.sin(o));break;case\"sqrt\":o=t.pop();t.push(Math.sqrt(o));break;case\"sub\":c=t.pop();o=t.pop();t.push(o-c);break;case\"true\":t.push(!0);break;case\"truncate\":o=t.pop();o=o<0?Math.ceil(o):Math.floor(o);t.push(o);break;case\"xor\":c=t.pop();o=t.pop();\"boolean\"==typeof o&&\"boolean\"==typeof c?t.push(o!==c):t.push(o^c);break;default:throw new n.FormatError(\"Unknown operator \".concat(s));}else t.push(s);}return t.stack;}}]);return PostScriptEvaluator;}();t.PostScriptEvaluator=PostScriptEvaluator;var AstNode=/*#__PURE__*/function(){function AstNode(e){_classCallCheck(this,AstNode);this.type=e;}_createClass(AstNode,[{key:\"visit\",value:function visit(e){(0,n.unreachable)(\"abstract method\");}}]);return AstNode;}();var AstArgument=/*#__PURE__*/function(_AstNode){_inherits(AstArgument,_AstNode);function AstArgument(e,t,r){var _this84;_classCallCheck(this,AstArgument);_this84=_callSuper(this,AstArgument,[\"args\"]);_this84.index=e;_this84.min=t;_this84.max=r;return _this84;}_createClass(AstArgument,[{key:\"visit\",value:function visit(e){e.visitArgument(this);}}]);return AstArgument;}(AstNode);var AstLiteral=/*#__PURE__*/function(_AstNode2){_inherits(AstLiteral,_AstNode2);function AstLiteral(e){var _this85;_classCallCheck(this,AstLiteral);_this85=_callSuper(this,AstLiteral,[\"literal\"]);_this85.number=e;_this85.min=e;_this85.max=e;return _this85;}_createClass(AstLiteral,[{key:\"visit\",value:function visit(e){e.visitLiteral(this);}}]);return AstLiteral;}(AstNode);var AstBinaryOperation=/*#__PURE__*/function(_AstNode3){_inherits(AstBinaryOperation,_AstNode3);function AstBinaryOperation(e,t,r,a,n){var _this86;_classCallCheck(this,AstBinaryOperation);_this86=_callSuper(this,AstBinaryOperation,[\"binary\"]);_this86.op=e;_this86.arg1=t;_this86.arg2=r;_this86.min=a;_this86.max=n;return _this86;}_createClass(AstBinaryOperation,[{key:\"visit\",value:function visit(e){e.visitBinaryOperation(this);}}]);return AstBinaryOperation;}(AstNode);var AstMin=/*#__PURE__*/function(_AstNode4){_inherits(AstMin,_AstNode4);function AstMin(e,t){var _this87;_classCallCheck(this,AstMin);_this87=_callSuper(this,AstMin,[\"max\"]);_this87.arg=e;_this87.min=e.min;_this87.max=t;return _this87;}_createClass(AstMin,[{key:\"visit\",value:function visit(e){e.visitMin(this);}}]);return AstMin;}(AstNode);var AstVariable=/*#__PURE__*/function(_AstNode5){_inherits(AstVariable,_AstNode5);function AstVariable(e,t,r){var _this88;_classCallCheck(this,AstVariable);_this88=_callSuper(this,AstVariable,[\"var\"]);_this88.index=e;_this88.min=t;_this88.max=r;return _this88;}_createClass(AstVariable,[{key:\"visit\",value:function visit(e){e.visitVariable(this);}}]);return AstVariable;}(AstNode);var AstVariableDefinition=/*#__PURE__*/function(_AstNode6){_inherits(AstVariableDefinition,_AstNode6);function AstVariableDefinition(e,t){var _this89;_classCallCheck(this,AstVariableDefinition);_this89=_callSuper(this,AstVariableDefinition,[\"definition\"]);_this89.variable=e;_this89.arg=t;return _this89;}_createClass(AstVariableDefinition,[{key:\"visit\",value:function visit(e){e.visitVariableDefinition(this);}}]);return AstVariableDefinition;}(AstNode);var ExpressionBuilderVisitor=/*#__PURE__*/function(){function ExpressionBuilderVisitor(){_classCallCheck(this,ExpressionBuilderVisitor);this.parts=[];}_createClass(ExpressionBuilderVisitor,[{key:\"visitArgument\",value:function visitArgument(e){this.parts.push(\"Math.max(\",e.min,\", Math.min(\",e.max,\", src[srcOffset + \",e.index,\"]))\");}},{key:\"visitVariable\",value:function visitVariable(e){this.parts.push(\"v\",e.index);}},{key:\"visitLiteral\",value:function visitLiteral(e){this.parts.push(e.number);}},{key:\"visitBinaryOperation\",value:function visitBinaryOperation(e){this.parts.push(\"(\");e.arg1.visit(this);this.parts.push(\" \",e.op,\" \");e.arg2.visit(this);this.parts.push(\")\");}},{key:\"visitVariableDefinition\",value:function visitVariableDefinition(e){this.parts.push(\"var \");e.variable.visit(this);this.parts.push(\" = \");e.arg.visit(this);this.parts.push(\";\");}},{key:\"visitMin\",value:function visitMin(e){this.parts.push(\"Math.min(\");e.arg.visit(this);this.parts.push(\", \",e.max,\")\");}},{key:\"toString\",value:function toString(){return this.parts.join(\"\");}}]);return ExpressionBuilderVisitor;}();function buildAddOperation(e,t){return\"literal\"===t.type&&0===t.number?e:\"literal\"===e.type&&0===e.number?t:\"literal\"===t.type&&\"literal\"===e.type?new AstLiteral(e.number+t.number):new AstBinaryOperation(\"+\",e,t,e.min+t.min,e.max+t.max);}function buildMulOperation(e,t){if(\"literal\"===t.type){if(0===t.number)return new AstLiteral(0);if(1===t.number)return e;if(\"literal\"===e.type)return new AstLiteral(e.number*t.number);}if(\"literal\"===e.type){if(0===e.number)return new AstLiteral(0);if(1===e.number)return t;}var r=Math.min(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max),a=Math.max(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max);return new AstBinaryOperation(\"*\",e,t,r,a);}function buildSubOperation(e,t){if(\"literal\"===t.type){if(0===t.number)return e;if(\"literal\"===e.type)return new AstLiteral(e.number-t.number);}return\"binary\"===t.type&&\"-\"===t.op&&\"literal\"===e.type&&1===e.number&&\"literal\"===t.arg1.type&&1===t.arg1.number?t.arg2:new AstBinaryOperation(\"-\",e,t,e.min-t.max,e.max-t.min);}function buildMinOperation(e,t){return e.min>=t?new AstLiteral(t):e.max<=t?e:new AstMin(e,t);}var PostScriptCompiler=/*#__PURE__*/function(){function PostScriptCompiler(){_classCallCheck(this,PostScriptCompiler);}_createClass(PostScriptCompiler,[{key:\"compile\",value:function compile(e,t,r){var a=[],n=[],i=t.length>>1,s=r.length>>1;var o,c,l,h,u,d,f,g,p=0;for(var _e404=0;_e404<i;_e404++)a.push(new AstArgument(_e404,t[2*_e404],t[2*_e404+1]));for(var _t301=0,_r256=e.length;_t301<_r256;_t301++){g=e[_t301];if(\"number\"!=typeof g)switch(g){case\"add\":if(a.length<2)return null;h=a.pop();l=a.pop();a.push(buildAddOperation(l,h));break;case\"cvr\":if(a.length<1)return null;break;case\"mul\":if(a.length<2)return null;h=a.pop();l=a.pop();a.push(buildMulOperation(l,h));break;case\"sub\":if(a.length<2)return null;h=a.pop();l=a.pop();a.push(buildSubOperation(l,h));break;case\"exch\":if(a.length<2)return null;u=a.pop();d=a.pop();a.push(u,d);break;case\"pop\":if(a.length<1)return null;a.pop();break;case\"index\":if(a.length<1)return null;l=a.pop();if(\"literal\"!==l.type)return null;o=l.number;if(o<0||!_Number$isInteger(o)||a.length<o)return null;u=a[a.length-o-1];if(\"literal\"===u.type||\"var\"===u.type){a.push(u);break;}f=new AstVariable(p++,u.min,u.max);a[a.length-o-1]=f;a.push(f);n.push(new AstVariableDefinition(f,u));break;case\"dup\":if(a.length<1)return null;if(\"number\"==typeof e[_t301+1]&&\"gt\"===e[_t301+2]&&e[_t301+3]===_t301+7&&\"jz\"===e[_t301+4]&&\"pop\"===e[_t301+5]&&e[_t301+6]===e[_t301+1]){l=a.pop();a.push(buildMinOperation(l,e[_t301+1]));_t301+=6;break;}u=a.at(-1);if(\"literal\"===u.type||\"var\"===u.type){a.push(u);break;}f=new AstVariable(p++,u.min,u.max);a[a.length-1]=f;a.push(f);n.push(new AstVariableDefinition(f,u));break;case\"roll\":if(a.length<2)return null;h=a.pop();l=a.pop();if(\"literal\"!==h.type||\"literal\"!==l.type)return null;c=h.number;o=l.number;if(o<=0||!_Number$isInteger(o)||!_Number$isInteger(c)||a.length<o)return null;c=(c%o+o)%o;if(0===c)break;Array.prototype.push.apply(a,_spliceInstanceProperty(a).call(a,a.length-o,o-c));break;default:return null;}else a.push(new AstLiteral(g));}if(a.length!==s)return null;var m=[];for(var _i131=0,_n160=n;_i131<_n160.length;_i131++){var _e405=_n160[_i131];var _t302=new ExpressionBuilderVisitor();_e405.visit(_t302);m.push(_t302.toString());}for(var _e406=0,_t303=a.length;_e406<_t303;_e406++){var _t304=a[_e406],_n161=new ExpressionBuilderVisitor();_t304.visit(_n161);var _i132=r[2*_e406],_s88=r[2*_e406+1],_o62=[_n161.toString()];if(_i132>_t304.min){_o62.unshift(\"Math.max(\",_i132,\", \");_o62.push(\")\");}if(_s88<_t304.max){_o62.unshift(\"Math.min(\",_s88,\", \");_o62.push(\")\");}_o62.unshift(\"dest[destOffset + \",_e406,\"] = \");_o62.push(\";\");m.push(_o62.join(\"\"));}return m.join(\"\\n\");}}]);return PostScriptCompiler;}();t.PostScriptCompiler=PostScriptCompiler;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.PostScriptParser=t.PostScriptLexer=void 0;var a=r(2),n=r(130),i=r(131);t.PostScriptParser=/*#__PURE__*/function(){function PostScriptParser(e){_classCallCheck(this,PostScriptParser);this.lexer=e;this.operators=[];this.token=null;this.prev=null;}_createClass(PostScriptParser,[{key:\"nextToken\",value:function nextToken(){this.prev=this.token;this.token=this.lexer.getToken();}},{key:\"accept\",value:function accept(e){if(this.token.type===e){this.nextToken();return!0;}return!1;}},{key:\"expect\",value:function expect(e){var _context265;if(this.accept(e))return!0;throw new a.FormatError(_concatInstanceProperty(_context265=\"Unexpected symbol: found \".concat(this.token.type,\" expected \")).call(_context265,e,\".\"));}},{key:\"parse\",value:function parse(){this.nextToken();this.expect(s.LBRACE);this.parseBlock();this.expect(s.RBRACE);return this.operators;}},{key:\"parseBlock\",value:function parseBlock(){for(;;)if(this.accept(s.NUMBER))this.operators.push(this.prev.value);else if(this.accept(s.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(s.LBRACE))return;this.parseCondition();}}},{key:\"parseCondition\",value:function parseCondition(){var e=this.operators.length;this.operators.push(null,null);this.parseBlock();this.expect(s.RBRACE);if(this.accept(s.IF)){this.operators[e]=this.operators.length;this.operators[e+1]=\"jz\";}else{if(!this.accept(s.LBRACE))throw new a.FormatError(\"PS Function: error parsing conditional.\");{var _t305=this.operators.length;this.operators.push(null,null);var _r257=this.operators.length;this.parseBlock();this.expect(s.RBRACE);this.expect(s.IFELSE);this.operators[_t305]=this.operators.length;this.operators[_t305+1]=\"j\";this.operators[e]=_r257;this.operators[e+1]=\"jz\";}}}}]);return PostScriptParser;}();var s={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};var PostScriptToken=/*#__PURE__*/function(){function PostScriptToken(e,t){_classCallCheck(this,PostScriptToken);this.type=e;this.value=t;}_createClass(PostScriptToken,null,[{key:\"opCache\",get:function get(){return(0,a.shadow)(this,\"opCache\",Object.create(null));}},{key:\"getOperator\",value:function getOperator(e){var t=PostScriptToken.opCache[e];return t||(PostScriptToken.opCache[e]=new PostScriptToken(s.OPERATOR,e));}},{key:\"LBRACE\",get:function get(){return(0,a.shadow)(this,\"LBRACE\",new PostScriptToken(s.LBRACE,\"{\"));}},{key:\"RBRACE\",get:function get(){return(0,a.shadow)(this,\"RBRACE\",new PostScriptToken(s.RBRACE,\"}\"));}},{key:\"IF\",get:function get(){return(0,a.shadow)(this,\"IF\",new PostScriptToken(s.IF,\"IF\"));}},{key:\"IFELSE\",get:function get(){return(0,a.shadow)(this,\"IFELSE\",new PostScriptToken(s.IFELSE,\"IFELSE\"));}}]);return PostScriptToken;}();t.PostScriptLexer=/*#__PURE__*/function(){function PostScriptLexer(e){_classCallCheck(this,PostScriptLexer);this.stream=e;this.nextChar();this.strBuf=[];}_createClass(PostScriptLexer,[{key:\"nextChar\",value:function nextChar(){return this.currentChar=this.stream.getByte();}},{key:\"getToken\",value:function getToken(){var e=!1,t=this.currentChar;for(;;){if(t<0)return n.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,i.isWhiteSpace)(t))break;t=this.nextChar();}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new PostScriptToken(s.NUMBER,this.getNumber());case 123:this.nextChar();return PostScriptToken.LBRACE;case 125:this.nextChar();return PostScriptToken.RBRACE;}var r=this.strBuf;r.length=0;r[0]=String.fromCharCode(t);for(;(t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122);)r.push(String.fromCharCode(t));var a=r.join(\"\");switch(a.toLowerCase()){case\"if\":return PostScriptToken.IF;case\"ifelse\":return PostScriptToken.IFELSE;default:return PostScriptToken.getOperator(a);}}},{key:\"getNumber\",value:function getNumber(){var e=this.currentChar;var t=this.strBuf;t.length=0;t[0]=String.fromCharCode(e);for(;(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));var r=_parseFloat(t.join(\"\"));if(isNaN(r))throw new a.FormatError(\"Invalid floating point number: \".concat(r));return r;}}]);return PostScriptLexer;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.LocalTilingPatternCache=t.LocalImageCache=t.LocalGStateCache=t.LocalFunctionCache=t.LocalColorSpaceCache=t.GlobalImageCache=void 0;var a=r(2),n=r(130);var BaseLocalCache=/*#__PURE__*/function(){function BaseLocalCache(e){_classCallCheck(this,BaseLocalCache);this.constructor===BaseLocalCache&&(0,a.unreachable)(\"Cannot initialize BaseLocalCache.\");this._onlyRefs=!0===(e&&e.onlyRefs);if(!this._onlyRefs){this._nameRefMap=new _Map();this._imageMap=new _Map();}this._imageCache=new n.RefSetCache();}_createClass(BaseLocalCache,[{key:\"getByName\",value:function getByName(e){this._onlyRefs&&(0,a.unreachable)(\"Should not call `getByName` method.\");var t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null;}},{key:\"getByRef\",value:function getByRef(e){return this._imageCache.get(e)||null;}},{key:\"set\",value:function set(e,t,r){(0,a.unreachable)(\"Abstract method `set` called.\");}}]);return BaseLocalCache;}();t.LocalImageCache=/*#__PURE__*/function(_BaseLocalCache){_inherits(LocalImageCache,_BaseLocalCache);function LocalImageCache(){_classCallCheck(this,LocalImageCache);return _callSuper(this,LocalImageCache,arguments);}_createClass(LocalImageCache,[{key:\"set\",value:function set(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if(\"string\"!=typeof e)throw new Error('LocalImageCache.set - expected \"name\" argument.');if(t){if(this._imageCache.has(t))return;this._nameRefMap.set(e,t);this._imageCache.put(t,r);}else this._imageMap.has(e)||this._imageMap.set(e,r);}}]);return LocalImageCache;}(BaseLocalCache);t.LocalColorSpaceCache=/*#__PURE__*/function(_BaseLocalCache2){_inherits(LocalColorSpaceCache,_BaseLocalCache2);function LocalColorSpaceCache(){_classCallCheck(this,LocalColorSpaceCache);return _callSuper(this,LocalColorSpaceCache,arguments);}_createClass(LocalColorSpaceCache,[{key:\"set\",value:function set(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if(\"string\"!=typeof e&&!t)throw new Error('LocalColorSpaceCache.set - expected \"name\" and/or \"ref\" argument.');if(t){if(this._imageCache.has(t))return;null!==e&&this._nameRefMap.set(e,t);this._imageCache.put(t,r);}else this._imageMap.has(e)||this._imageMap.set(e,r);}}]);return LocalColorSpaceCache;}(BaseLocalCache);t.LocalFunctionCache=/*#__PURE__*/function(_BaseLocalCache3){_inherits(LocalFunctionCache,_BaseLocalCache3);function LocalFunctionCache(e){_classCallCheck(this,LocalFunctionCache);return _callSuper(this,LocalFunctionCache,[{onlyRefs:!0}]);}_createClass(LocalFunctionCache,[{key:\"set\",value:function set(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalFunctionCache.set - expected \"ref\" argument.');this._imageCache.has(e)||this._imageCache.put(e,t);}}]);return LocalFunctionCache;}(BaseLocalCache);t.LocalGStateCache=/*#__PURE__*/function(_BaseLocalCache4){_inherits(LocalGStateCache,_BaseLocalCache4);function LocalGStateCache(){_classCallCheck(this,LocalGStateCache);return _callSuper(this,LocalGStateCache,arguments);}_createClass(LocalGStateCache,[{key:\"set\",value:function set(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if(\"string\"!=typeof e)throw new Error('LocalGStateCache.set - expected \"name\" argument.');if(t){if(this._imageCache.has(t))return;this._nameRefMap.set(e,t);this._imageCache.put(t,r);}else this._imageMap.has(e)||this._imageMap.set(e,r);}}]);return LocalGStateCache;}(BaseLocalCache);t.LocalTilingPatternCache=/*#__PURE__*/function(_BaseLocalCache5){_inherits(LocalTilingPatternCache,_BaseLocalCache5);function LocalTilingPatternCache(e){_classCallCheck(this,LocalTilingPatternCache);return _callSuper(this,LocalTilingPatternCache,[{onlyRefs:!0}]);}_createClass(LocalTilingPatternCache,[{key:\"set\",value:function set(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalTilingPatternCache.set - expected \"ref\" argument.');this._imageCache.has(e)||this._imageCache.put(e,t);}}]);return LocalTilingPatternCache;}(BaseLocalCache);var GlobalImageCache=/*#__PURE__*/function(){function GlobalImageCache(){_classCallCheck(this,GlobalImageCache);this._refCache=new n.RefSetCache();this._imageCache=new n.RefSetCache();}_createClass(GlobalImageCache,[{key:\"_byteSize\",get:function get(){var e=0;var _iterator87=_createForOfIteratorHelper(this._imageCache),_step87;try{for(_iterator87.s();!(_step87=_iterator87.n()).done;){var _t306=_step87.value;e+=_t306.byteSize;}}catch(err){_iterator87.e(err);}finally{_iterator87.f();}return e;}},{key:\"_cacheLimitReached\",get:function get(){return!(this._imageCache.size<GlobalImageCache.MIN_IMAGES_TO_CACHE)&&!(this._byteSize<GlobalImageCache.MAX_BYTE_SIZE);}},{key:\"shouldCache\",value:function shouldCache(e,t){var r=this._refCache.get(e);return!((r?r.size+(r.has(t)?0:1):1)<GlobalImageCache.NUM_PAGES_THRESHOLD)&&!(!this._imageCache.has(e)&&this._cacheLimitReached);}},{key:\"addPageIndex\",value:function addPageIndex(e,t){var r=this._refCache.get(e);if(!r){r=new _Set();this._refCache.put(e,r);}r.add(t);}},{key:\"addByteSize\",value:function addByteSize(e,t){var r=this._imageCache.get(e);r&&(r.byteSize||(r.byteSize=t));}},{key:\"getData\",value:function getData(e,t){var r=this._refCache.get(e);if(!r)return null;if(r.size<GlobalImageCache.NUM_PAGES_THRESHOLD)return null;var a=this._imageCache.get(e);if(!a)return null;r.add(t);return a;}},{key:\"setData\",value:function setData(e,t){if(!this._refCache.has(e))throw new Error('GlobalImageCache.setData - expected \"addPageIndex\" to have been called.');this._imageCache.has(e)||(this._cacheLimitReached?(0,a.warn)(\"GlobalImageCache.setData - cache limit reached.\"):this._imageCache.put(e,t));}},{key:\"clear\",value:function clear(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this._refCache.clear();this._imageCache.clear();}}],[{key:\"NUM_PAGES_THRESHOLD\",get:function get(){return(0,a.shadow)(this,\"NUM_PAGES_THRESHOLD\",2);}},{key:\"MIN_IMAGES_TO_CACHE\",get:function get(){return(0,a.shadow)(this,\"MIN_IMAGES_TO_CACHE\",10);}},{key:\"MAX_BYTE_SIZE\",get:function get(){return(0,a.shadow)(this,\"MAX_BYTE_SIZE\",4e7);}}]);return GlobalImageCache;}();t.GlobalImageCache=GlobalImageCache;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.bidi=function bidi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=!0;var l=e.length;if(0===l||r)return createBidiText(e,c,r);s.length=l;o.length=l;var h,u,d=0;for(h=0;h<l;++h){s[h]=e.charAt(h);var _t307=e.charCodeAt(h);var _r258=\"L\";if(_t307<=255)_r258=n[_t307];else if(1424<=_t307&&_t307<=1524)_r258=\"R\";else if(1536<=_t307&&_t307<=1791){_r258=i[255&_t307];_r258||(0,a.warn)(\"Bidi: invalid Unicode character \"+_t307.toString(16));}else 1792<=_t307&&_t307<=2220&&(_r258=\"AL\");\"R\"!==_r258&&\"AL\"!==_r258&&\"AN\"!==_r258||d++;o[h]=_r258;}if(0===d){c=!0;return createBidiText(e,c);}if(-1===t)if(d/l<.3&&l>4){c=!0;t=0;}else{c=!1;t=1;}var f=[];for(h=0;h<l;++h)f[h]=t;var g=isOdd(t)?\"R\":\"L\",p=g,m=p;var b,y=p;for(h=0;h<l;++h)\"NSM\"===o[h]?o[h]=y:y=o[h];y=p;for(h=0;h<l;++h){b=o[h];\"EN\"===b?o[h]=\"AL\"===y?\"AN\":\"EN\":\"R\"!==b&&\"L\"!==b&&\"AL\"!==b||(y=b);}for(h=0;h<l;++h){b=o[h];\"AL\"===b&&(o[h]=\"R\");}for(h=1;h<l-1;++h){\"ES\"===o[h]&&\"EN\"===o[h-1]&&\"EN\"===o[h+1]&&(o[h]=\"EN\");\"CS\"!==o[h]||\"EN\"!==o[h-1]&&\"AN\"!==o[h-1]||o[h+1]!==o[h-1]||(o[h]=o[h-1]);}for(h=0;h<l;++h)if(\"EN\"===o[h]){for(var _e407=h-1;_e407>=0&&\"ET\"===o[_e407];--_e407)o[_e407]=\"EN\";for(var _e408=h+1;_e408<l&&\"ET\"===o[_e408];++_e408)o[_e408]=\"EN\";}for(h=0;h<l;++h){b=o[h];\"WS\"!==b&&\"ES\"!==b&&\"ET\"!==b&&\"CS\"!==b||(o[h]=\"ON\");}y=p;for(h=0;h<l;++h){b=o[h];\"EN\"===b?o[h]=\"L\"===y?\"L\":\"EN\":\"R\"!==b&&\"L\"!==b||(y=b);}for(h=0;h<l;++h)if(\"ON\"===o[h]){var _e409=findUnequal(o,h+1,\"ON\");var _t308=p;h>0&&(_t308=o[h-1]);var _r259=m;_e409+1<l&&(_r259=o[_e409+1]);\"L\"!==_t308&&(_t308=\"R\");\"L\"!==_r259&&(_r259=\"R\");_t308===_r259&&setValues(o,h,_e409,_t308);h=_e409-1;}for(h=0;h<l;++h)\"ON\"===o[h]&&(o[h]=g);for(h=0;h<l;++h){b=o[h];isEven(f[h])?\"R\"===b?f[h]+=1:\"AN\"!==b&&\"EN\"!==b||(f[h]+=2):\"L\"!==b&&\"AN\"!==b&&\"EN\"!==b||(f[h]+=1);}var w,S=-1,x=99;for(h=0,u=f.length;h<u;++h){w=f[h];S<w&&(S=w);x>w&&isOdd(w)&&(x=w);}for(w=S;w>=x;--w){var _e410=-1;for(h=0,u=f.length;h<u;++h)if(f[h]<w){if(_e410>=0){reverseValues(s,_e410,h);_e410=-1;}}else _e410<0&&(_e410=h);_e410>=0&&reverseValues(s,_e410,f.length);}for(h=0,u=s.length;h<u;++h){var _e411=s[h];\"<\"!==_e411&&\">\"!==_e411||(s[h]=\"\");}return createBidiText(s.join(\"\"),c);};var a=r(2);var n=[\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"S\",\"B\",\"S\",\"WS\",\"B\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"B\",\"B\",\"B\",\"S\",\"WS\",\"ON\",\"ON\",\"ET\",\"ET\",\"ET\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"ES\",\"CS\",\"ES\",\"CS\",\"CS\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"CS\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"ON\",\"ON\",\"ON\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"B\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"CS\",\"ON\",\"ET\",\"ET\",\"ET\",\"ET\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"ON\",\"ON\",\"BN\",\"ON\",\"ON\",\"ET\",\"ET\",\"EN\",\"EN\",\"ON\",\"L\",\"ON\",\"ON\",\"ON\",\"EN\",\"L\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\"],i=[\"AN\",\"AN\",\"AN\",\"AN\",\"AN\",\"AN\",\"ON\",\"ON\",\"AL\",\"ET\",\"ET\",\"AL\",\"CS\",\"AL\",\"ON\",\"ON\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"AL\",\"AL\",\"\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"AN\",\"AN\",\"AN\",\"AN\",\"AN\",\"AN\",\"AN\",\"AN\",\"AN\",\"AN\",\"ET\",\"AN\",\"AN\",\"AL\",\"AL\",\"AL\",\"NSM\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"AN\",\"ON\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"AL\",\"AL\",\"NSM\",\"NSM\",\"ON\",\"NSM\",\"NSM\",\"NSM\",\"NSM\",\"AL\",\"AL\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\",\"AL\"];function isOdd(e){return 0!=(1&e);}function isEven(e){return 0==(1&e);}function findUnequal(e,t,r){var a,n;for(a=t,n=e.length;a<n;++a)if(e[a]!==r)return a;return a;}function setValues(e,t,r,a){for(var _n162=t;_n162<r;++_n162)e[_n162]=a;}function reverseValues(e,t,r){for(var _a203=t,_n163=r-1;_a203<_n163;++_a203,--_n163){var _t309=e[_a203];e[_a203]=e[_n163];e[_n163]=_t309;}}function createBidiText(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=\"ltr\";r?a=\"ttb\":t||(a=\"rtl\");return{str:e,dir:a};}var s=[],o=[];},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.MurmurHash3_64=void 0;var a=r(2);var n=3285377520,i=4294901760,s=65535;t.MurmurHash3_64=/*#__PURE__*/function(){function MurmurHash3_64(e){_classCallCheck(this,MurmurHash3_64);this.h1=e?4294967295&e:n;this.h2=e?4294967295&e:n;}_createClass(MurmurHash3_64,[{key:\"update\",value:function update(e){var t,r;if(\"string\"==typeof e){t=new Uint8Array(2*e.length);r=0;for(var _a204=0,_n164=e.length;_a204<_n164;_a204++){var _n165=e.charCodeAt(_a204);if(_n165<=255)t[r++]=_n165;else{t[r++]=_n165>>>8;t[r++]=255&_n165;}}}else{if(!(0,a.isArrayBuffer)(e))throw new Error(\"Wrong data format in MurmurHash3_64_update. Input must be a string or array.\");t=_sliceInstanceProperty(e).call(e);r=t.byteLength;}var n=r>>2,o=r-4*n,c=new Uint32Array(t.buffer,0,n);var l=0,h=0,u=this.h1,d=this.h2;var f=3432918353,g=461845907,p=11601,m=13715;for(var _e412=0;_e412<n;_e412++)if(1&_e412){l=c[_e412];l=l*f&i|l*p&s;l=l<<15|l>>>17;l=l*g&i|l*m&s;u^=l;u=u<<13|u>>>19;u=5*u+3864292196;}else{h=c[_e412];h=h*f&i|h*p&s;h=h<<15|h>>>17;h=h*g&i|h*m&s;d^=h;d=d<<13|d>>>19;d=5*d+3864292196;}l=0;switch(o){case 3:l^=t[4*n+2]<<16;case 2:l^=t[4*n+1]<<8;case 1:l^=t[4*n];l=l*f&i|l*p&s;l=l<<15|l>>>17;l=l*g&i|l*m&s;1&n?u^=l:d^=l;}this.h1=u;this.h2=d;}},{key:\"hexdigest\",value:function hexdigest(){var e=this.h1,t=this.h2;e^=t>>>1;e=3981806797*e&i|36045*e&s;t=4283543511*t&i|(2950163797*(t<<16|e>>>16)&i)>>>16;e^=t>>>1;e=444984403*e&i|60499*e&s;t=3301882366*t&i|(3120437893*(t<<16|e>>>16)&i)>>>16;e^=t>>>1;var r=(e>>>0).toString(16),a=(t>>>0).toString(16);return _padStartInstanceProperty(r).call(r,8,\"0\")+_padStartInstanceProperty(a).call(a,8,\"0\");}}]);return MurmurHash3_64;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.OperatorList=void 0;var a=r(2);function addState(e,t,r,a,n){var i=e;for(var _e413=0,_r260=t.length-1;_e413<_r260;_e413++){var _r261=t[_e413];i=i[_r261]||(i[_r261]=[]);}i[t.at(-1)]={checkFn:r,iterateFn:a,processFn:n};}var n=[];addState(n,[a.OPS.save,a.OPS.transform,a.OPS.paintInlineImageXObject,a.OPS.restore],null,function iterateInlineImageGroup(e,t){var r=e.fnArray,n=(t-(e.iCurr-3))%4;switch(n){case 0:return r[t]===a.OPS.save;case 1:return r[t]===a.OPS.transform;case 2:return r[t]===a.OPS.paintInlineImageXObject;case 3:return r[t]===a.OPS.restore;}throw new Error(\"iterateInlineImageGroup - invalid pos: \".concat(n));},function foundInlineImageGroup(e,t){var r=e.fnArray,n=e.argsArray,i=e.iCurr,s=i-3,o=i-2,c=i-1,l=Math.min(Math.floor((t-s)/4),200);if(l<10)return t-(t-s)%4;var h=0;var u=[];var d=0,f=1,g=1;for(var _e414=0;_e414<l;_e414++){var _t310=n[o+(_e414<<2)],_r262=n[c+(_e414<<2)][0];if(f+_r262.width>1e3){h=Math.max(h,f);g+=d+2;f=0;d=0;}u.push({transform:_t310,x:f,y:g,w:_r262.width,h:_r262.height});f+=_r262.width+2;d=Math.max(d,_r262.height);}var p=Math.max(h,f)+1,m=g+d+1,b=new Uint8Array(p*m*4),y=p<<2;for(var _e415=0;_e415<l;_e415++){var _t311=n[c+(_e415<<2)][0].data,_r263=u[_e415].w<<2;var _a205=0,_i133=u[_e415].x+u[_e415].y*p<<2;b.set(_t311.subarray(0,_r263),_i133-y);for(var _n166=0,_s89=u[_e415].h;_n166<_s89;_n166++){b.set(_t311.subarray(_a205,_a205+_r263),_i133);_a205+=_r263;_i133+=y;}b.set(_t311.subarray(_a205-_r263,_a205),_i133);for(;_i133>=0;){_t311[_i133-4]=_t311[_i133];_t311[_i133-3]=_t311[_i133+1];_t311[_i133-2]=_t311[_i133+2];_t311[_i133-1]=_t311[_i133+3];_t311[_i133+_r263]=_t311[_i133+_r263-4];_t311[_i133+_r263+1]=_t311[_i133+_r263-3];_t311[_i133+_r263+2]=_t311[_i133+_r263-2];_t311[_i133+_r263+3]=_t311[_i133+_r263-1];_i133-=y;}}_spliceInstanceProperty(r).call(r,s,4*l,a.OPS.paintInlineImageXObjectGroup);_spliceInstanceProperty(n).call(n,s,4*l,[{width:p,height:m,kind:a.ImageKind.RGBA_32BPP,data:b},u]);return s+1;});addState(n,[a.OPS.save,a.OPS.transform,a.OPS.paintImageMaskXObject,a.OPS.restore],null,function iterateImageMaskGroup(e,t){var r=e.fnArray,n=(t-(e.iCurr-3))%4;switch(n){case 0:return r[t]===a.OPS.save;case 1:return r[t]===a.OPS.transform;case 2:return r[t]===a.OPS.paintImageMaskXObject;case 3:return r[t]===a.OPS.restore;}throw new Error(\"iterateImageMaskGroup - invalid pos: \".concat(n));},function foundImageMaskGroup(e,t){var r=e.fnArray,n=e.argsArray,i=e.iCurr,s=i-3,o=i-2,c=i-1;var l=Math.floor((t-s)/4);if(l<10)return t-(t-s)%4;var h,u,d=!1;var f=n[c][0],g=n[o][0],p=n[o][1],m=n[o][2],b=n[o][3];if(p===m){d=!0;h=o+4;var _e416=c+4;for(var _t312=1;_t312<l;_t312++,h+=4,_e416+=4){u=n[h];if(n[_e416][0]!==f||u[0]!==g||u[1]!==p||u[2]!==m||u[3]!==b){_t312<10?d=!1:l=_t312;break;}}}if(d){l=Math.min(l,1e3);var _e417=new Float32Array(2*l);h=o;for(var _t313=0;_t313<l;_t313++,h+=4){u=n[h];_e417[_t313<<1]=u[4];_e417[1+(_t313<<1)]=u[5];}_spliceInstanceProperty(r).call(r,s,4*l,a.OPS.paintImageMaskXObjectRepeat);_spliceInstanceProperty(n).call(n,s,4*l,[f,g,p,m,b,_e417]);}else{l=Math.min(l,100);var _e418=[];for(var _t314=0;_t314<l;_t314++){u=n[o+(_t314<<2)];var _r264=n[c+(_t314<<2)][0];_e418.push({data:_r264.data,width:_r264.width,height:_r264.height,interpolate:_r264.interpolate,count:_r264.count,transform:u});}_spliceInstanceProperty(r).call(r,s,4*l,a.OPS.paintImageMaskXObjectGroup);_spliceInstanceProperty(n).call(n,s,4*l,[_e418]);}return s+1;});addState(n,[a.OPS.save,a.OPS.transform,a.OPS.paintImageXObject,a.OPS.restore],function(e){var t=e.argsArray,r=e.iCurr-2;return 0===t[r][1]&&0===t[r][2];},function iterateImageGroup(e,t){var r=e.fnArray,n=e.argsArray,i=(t-(e.iCurr-3))%4;switch(i){case 0:return r[t]===a.OPS.save;case 1:if(r[t]!==a.OPS.transform)return!1;var _i134=e.iCurr-2,_s90=n[_i134][0],_o63=n[_i134][3];return n[t][0]===_s90&&0===n[t][1]&&0===n[t][2]&&n[t][3]===_o63;case 2:if(r[t]!==a.OPS.paintImageXObject)return!1;var _c47=n[e.iCurr-1][0];return n[t][0]===_c47;case 3:return r[t]===a.OPS.restore;}throw new Error(\"iterateImageGroup - invalid pos: \".concat(i));},function(e,t){var r=e.fnArray,n=e.argsArray,i=e.iCurr,s=i-3,o=i-2,c=n[i-1][0],l=n[o][0],h=n[o][3],u=Math.min(Math.floor((t-s)/4),1e3);if(u<3)return t-(t-s)%4;var d=new Float32Array(2*u);var f=o;for(var _e419=0;_e419<u;_e419++,f+=4){var _t315=n[f];d[_e419<<1]=_t315[4];d[1+(_e419<<1)]=_t315[5];}var g=[c,l,h,d];_spliceInstanceProperty(r).call(r,s,4*u,a.OPS.paintImageXObjectRepeat);_spliceInstanceProperty(n).call(n,s,4*u,g);return s+1;});addState(n,[a.OPS.beginText,a.OPS.setFont,a.OPS.setTextMatrix,a.OPS.showText,a.OPS.endText],null,function iterateShowTextGroup(e,t){var r=e.fnArray,n=e.argsArray,i=(t-(e.iCurr-4))%5;switch(i){case 0:return r[t]===a.OPS.beginText;case 1:return r[t]===a.OPS.setFont;case 2:return r[t]===a.OPS.setTextMatrix;case 3:if(r[t]!==a.OPS.showText)return!1;var _i135=e.iCurr-3,_s91=n[_i135][0],_o64=n[_i135][1];return n[t][0]===_s91&&n[t][1]===_o64;case 4:return r[t]===a.OPS.endText;}throw new Error(\"iterateShowTextGroup - invalid pos: \".concat(i));},function(e,t){var r=e.fnArray,a=e.argsArray,n=e.iCurr,i=n-4,s=n-3,o=n-2,c=n-1,l=n,h=a[s][0],u=a[s][1];var d=Math.min(Math.floor((t-i)/5),1e3);if(d<3)return t-(t-i)%5;var f=i;if(i>=4&&r[i-4]===r[s]&&r[i-3]===r[o]&&r[i-2]===r[c]&&r[i-1]===r[l]&&a[i-4][0]===h&&a[i-4][1]===u){d++;f-=5;}var g=f+4;for(var _e420=1;_e420<d;_e420++){_spliceInstanceProperty(r).call(r,g,3);_spliceInstanceProperty(a).call(a,g,3);g+=2;}return g+1;});var NullOptimizer=/*#__PURE__*/function(){function NullOptimizer(e){_classCallCheck(this,NullOptimizer);this.queue=e;}_createClass(NullOptimizer,[{key:\"_optimize\",value:function _optimize(){}},{key:\"push\",value:function push(e,t){this.queue.fnArray.push(e);this.queue.argsArray.push(t);this._optimize();}},{key:\"flush\",value:function flush(){}},{key:\"reset\",value:function reset(){}}]);return NullOptimizer;}();var QueueOptimizer=/*#__PURE__*/function(_NullOptimizer){_inherits(QueueOptimizer,_NullOptimizer);function QueueOptimizer(e){var _this90;_classCallCheck(this,QueueOptimizer);_this90=_callSuper(this,QueueOptimizer,[e]);_this90.state=null;_this90.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray};_this90.match=null;_this90.lastProcessed=0;return _this90;}_createClass(QueueOptimizer,[{key:\"_optimize\",value:function _optimize(){var e=this.queue.fnArray;var t=this.lastProcessed,r=e.length,a=this.state,i=this.match;if(!a&&!i&&t+1===r&&!n[e[t]]){this.lastProcessed=r;return;}var s=this.context;for(;t<r;){if(i){if((0,i.iterateFn)(s,t)){t++;continue;}t=(0,i.processFn)(s,t+1);r=e.length;i=null;a=null;if(t>=r)break;}a=(a||n)[e[t]];if(a&&!Array.isArray(a)){s.iCurr=t;t++;if(!a.checkFn||(0,a.checkFn)(s)){i=a;a=null;}else a=null;}else t++;}this.state=a;this.match=i;this.lastProcessed=t;}},{key:\"flush\",value:function flush(){for(;this.match;){var _e421=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,_e421);this.match=null;this.state=null;this._optimize();}}},{key:\"reset\",value:function reset(){this.state=null;this.match=null;this.lastProcessed=0;}}]);return QueueOptimizer;}(NullOptimizer);var OperatorList=/*#__PURE__*/function(){function OperatorList(){_classCallCheck(this,OperatorList);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;this._streamSink=t;this.fnArray=[];this.argsArray=[];!t||e&a.RenderingIntentFlag.OPLIST?this.optimizer=new NullOptimizer(this):this.optimizer=new QueueOptimizer(this);this.dependencies=new _Set();this._totalLength=0;this.weight=0;this._resolved=t?null:_Promise.resolve();}_createClass(OperatorList,[{key:\"length\",get:function get(){return this.argsArray.length;}},{key:\"ready\",get:function get(){return this._resolved||this._streamSink.ready;}},{key:\"totalLength\",get:function get(){return this._totalLength+this.length;}},{key:\"addOp\",value:function addOp(e,t){this.optimizer.push(e,t);this.weight++;this._streamSink&&(this.weight>=OperatorList.CHUNK_SIZE||this.weight>=OperatorList.CHUNK_SIZE_ABOUT&&(e===a.OPS.restore||e===a.OPS.endText))&&this.flush();}},{key:\"addImageOps\",value:function addImageOps(e,t,r){void 0!==r&&this.addOp(a.OPS.beginMarkedContentProps,[\"OC\",r]);this.addOp(e,t);void 0!==r&&this.addOp(a.OPS.endMarkedContent,[]);}},{key:\"addDependency\",value:function addDependency(e){if(!this.dependencies.has(e)){this.dependencies.add(e);this.addOp(a.OPS.dependency,[e]);}}},{key:\"addDependencies\",value:function addDependencies(e){var _iterator88=_createForOfIteratorHelper(e),_step88;try{for(_iterator88.s();!(_step88=_iterator88.n()).done;){var _t316=_step88.value;this.addDependency(_t316);}}catch(err){_iterator88.e(err);}finally{_iterator88.f();}}},{key:\"addOpList\",value:function addOpList(e){if(e instanceof OperatorList){var _iterator89=_createForOfIteratorHelper(e.dependencies),_step89;try{for(_iterator89.s();!(_step89=_iterator89.n()).done;){var _t318=_step89.value;this.dependencies.add(_t318);}}catch(err){_iterator89.e(err);}finally{_iterator89.f();}for(var _t317=0,_r265=e.length;_t317<_r265;_t317++)this.addOp(e.fnArray[_t317],e.argsArray[_t317]);}else(0,a.warn)('addOpList - ignoring invalid \"opList\" parameter.');}},{key:\"getIR\",value:function getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length};}},{key:\"_transfers\",get:function get(){var e=[],t=this.fnArray,r=this.argsArray,n=this.length;for(var _i136=0;_i136<n;_i136++)switch(t[_i136]){case a.OPS.paintInlineImageXObject:case a.OPS.paintInlineImageXObjectGroup:case a.OPS.paintImageMaskXObject:var _t319=r[_i136][0];!_t319.cached&&_t319.data&&_t319.data.buffer instanceof ArrayBuffer&&e.push(_t319.data.buffer);}return e;}},{key:\"flush\",value:function flush(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.optimizer.flush();var r=this.length;this._totalLength+=r;this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,separateAnnots:t,length:r},1,this._transfers);this.dependencies.clear();this.fnArray.length=0;this.argsArray.length=0;this.weight=0;this.optimizer.reset();}}],[{key:\"CHUNK_SIZE\",get:function get(){return(0,a.shadow)(this,\"CHUNK_SIZE\",1e3);}},{key:\"CHUNK_SIZE_ABOUT\",get:function get(){return(0,a.shadow)(this,\"CHUNK_SIZE_ABOUT\",this.CHUNK_SIZE-5);}}]);return OperatorList;}();t.OperatorList=OperatorList;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.PDFImage=void 0;var a=r(2),n=r(189),i=r(132),s=r(139),o=r(144),c=r(152),l=r(155),h=r(130);function decodeAndClamp(e,t,r,a){(e=t+e*r)<0?e=0:e>a&&(e=a);return e;}function resizeImageMask(e,t,r,a,n,i){var s=n*i;var o;o=t<=8?new Uint8Array(s):t<=16?new Uint16Array(s):new Uint32Array(s);var c=r/n,l=a/i;var h,u,d,f,g=0;var p=new Uint16Array(n),m=r;for(h=0;h<n;h++)p[h]=Math.floor(h*c);for(h=0;h<i;h++){d=Math.floor(h*l)*m;for(u=0;u<n;u++){f=d+p[u];o[g++]=e[f];}}return o;}var PDFImage=/*#__PURE__*/function(){function PDFImage(e){var _context266;_classCallCheck(this,PDFImage);var t=e.xref,r=e.res,n=e.image,_e$isInline2=e.isInline,o=_e$isInline2===void 0?!1:_e$isInline2,_e$smask=e.smask,c=_e$smask===void 0?null:_e$smask,_e$mask=e.mask,u=_e$mask===void 0?null:_e$mask,_e$isMask=e.isMask,d=_e$isMask===void 0?!1:_e$isMask,f=e.pdfFunctionFactory,g=e.localColorSpaceCache;this.image=n;var p=n.dict,m=p.get(\"F\",\"Filter\");var b;if(m instanceof h.Name)b=m.name;else if(Array.isArray(m)){var _e422=t.fetchIfRef(m[0]);_e422 instanceof h.Name&&(b=_e422.name);}switch(b){case\"JPXDecode\":var _e423=new l.JpxImage();_e423.parseImageProperties(n.stream);n.stream.reset();n.width=_e423.width;n.height=_e423.height;n.bitsPerComponent=_e423.bitsPerComponent;n.numComps=_e423.componentsCount;break;case\"JBIG2Decode\":n.bitsPerComponent=1;n.numComps=1;}var y=p.get(\"W\",\"Width\"),w=p.get(\"H\",\"Height\");if(_Number$isInteger(n.width)&&n.width>0&&_Number$isInteger(n.height)&&n.height>0&&(n.width!==y||n.height!==w)){(0,a.warn)(\"PDFImage - using the Width/Height of the image data, rather than the image dictionary.\");y=n.width;w=n.height;}if(y<1||w<1)throw new a.FormatError(_concatInstanceProperty(_context266=\"Invalid image width: \".concat(y,\" or height: \")).call(_context266,w));this.width=y;this.height=w;this.interpolate=p.get(\"I\",\"Interpolate\");this.imageMask=p.get(\"IM\",\"ImageMask\")||!1;this.matte=p.get(\"Matte\")||!1;var S=n.bitsPerComponent;if(!S){S=p.get(\"BPC\",\"BitsPerComponent\");if(!S){if(!this.imageMask)throw new a.FormatError(\"Bits per component missing in image: \".concat(this.imageMask));S=1;}}this.bpc=S;if(!this.imageMask){var _e424=p.getRaw(\"CS\")||p.getRaw(\"ColorSpace\");if(!_e424){(0,a.info)(\"JPX images (which do not require color spaces)\");switch(n.numComps){case 1:_e424=h.Name.get(\"DeviceGray\");break;case 3:_e424=h.Name.get(\"DeviceRGB\");break;case 4:_e424=h.Name.get(\"DeviceCMYK\");break;default:throw new Error(\"JPX images with \".concat(n.numComps,\" color components not supported.\"));}}this.colorSpace=s.ColorSpace.parse({cs:_e424,xref:t,resources:o?r:null,pdfFunctionFactory:f,localColorSpaceCache:g});this.numComps=this.colorSpace.numComps;}this.decode=p.getArray(\"D\",\"Decode\");this.needsDecode=!1;if(this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,S)||d&&!s.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var _e425=(1<<S)-1;this.decodeCoefficients=[];this.decodeAddends=[];var _t320=this.colorSpace&&\"Indexed\"===this.colorSpace.name;for(var _r266=0,_a206=0;_r266<this.decode.length;_r266+=2,++_a206){var _n167=this.decode[_r266],_i137=this.decode[_r266+1];this.decodeCoefficients[_a206]=_t320?(_i137-_n167)/_e425:_i137-_n167;this.decodeAddends[_a206]=_t320?_n167:_e425*_n167;}}if(c)this.smask=new PDFImage({xref:t,res:r,image:c,isInline:o,pdfFunctionFactory:f,localColorSpaceCache:g});else if(u)if(u instanceof i.BaseStream){u.dict.get(\"IM\",\"ImageMask\")?this.mask=new PDFImage({xref:t,res:r,image:u,isInline:o,isMask:!0,pdfFunctionFactory:f,localColorSpaceCache:g}):(0,a.warn)(\"Ignoring /Mask in image without /ImageMask.\");}else this.mask=u;}_createClass(PDFImage,[{key:\"drawWidth\",get:function get(){return Math.max(this.width,this.smask&&this.smask.width||0,this.mask&&this.mask.width||0);}},{key:\"drawHeight\",get:function get(){return Math.max(this.height,this.smask&&this.smask.height||0,this.mask&&this.mask.height||0);}},{key:\"decodeBuffer\",value:function decodeBuffer(e){var t=this.bpc,r=this.numComps,a=this.decodeAddends,n=this.decodeCoefficients,i=(1<<t)-1;var s,o;if(1===t){for(s=0,o=e.length;s<o;s++)e[s]=+!e[s];return;}var c=0;for(s=0,o=this.width*this.height;s<o;s++)for(var _t321=0;_t321<r;_t321++){e[c]=decodeAndClamp(e[c],a[_t321],n[_t321],i);c++;}}},{key:\"getComponents\",value:function getComponents(e){var t=this.bpc;if(8===t)return e;var r=this.width,a=this.height,n=this.numComps,i=r*a*n;var s,o=0;s=t<=8?new Uint8Array(i):t<=16?new Uint16Array(i):new Uint32Array(i);var c=r*n,l=(1<<t)-1;var h,u,d=0;if(1===t){var _t322,_r267,_n168;for(var _i138=0;_i138<a;_i138++){_r267=d+(-8&c);_n168=d+c;for(;d<_r267;){u=e[o++];s[d]=u>>7&1;s[d+1]=u>>6&1;s[d+2]=u>>5&1;s[d+3]=u>>4&1;s[d+4]=u>>3&1;s[d+5]=u>>2&1;s[d+6]=u>>1&1;s[d+7]=1&u;d+=8;}if(d<_n168){u=e[o++];_t322=128;for(;d<_n168;){s[d++]=+!!(u&_t322);_t322>>=1;}}}}else{var _r268=0;u=0;for(d=0,h=i;d<h;++d){if(d%c==0){u=0;_r268=0;}for(;_r268<t;){u=u<<8|e[o++];_r268+=8;}var _a207=_r268-t;var _n169=u>>_a207;_n169<0?_n169=0:_n169>l&&(_n169=l);s[d]=_n169;u&=(1<<_a207)-1;_r268=_a207;}}return s;}},{key:\"fillOpacity\",value:function fillOpacity(e,t,r,n,i){var s=this.smask,o=this.mask;var c,l,h,u,d,f;if(s){l=s.width;h=s.height;c=new Uint8ClampedArray(l*h);s.fillGrayBuffer(c);l===t&&h===r||(c=resizeImageMask(c,s.bpc,l,h,t,r));}else if(o)if(o instanceof PDFImage){l=o.width;h=o.height;c=new Uint8ClampedArray(l*h);o.numComps=1;o.fillGrayBuffer(c);for(u=0,d=l*h;u<d;++u)c[u]=255-c[u];l===t&&h===r||(c=resizeImageMask(c,o.bpc,l,h,t,r));}else{if(!Array.isArray(o))throw new a.FormatError(\"Unknown mask format.\");{c=new Uint8ClampedArray(t*r);var _e426=this.numComps;for(u=0,d=t*r;u<d;++u){var _t323=0;var _r269=u*_e426;for(f=0;f<_e426;++f){var _e427=i[_r269+f],_a208=2*f;if(_e427<o[_a208]||_e427>o[_a208+1]){_t323=255;break;}}c[u]=_t323;}}}if(c)for(u=0,f=3,d=t*n;u<d;++u,f+=4)e[f]=c[u];else for(u=0,f=3,d=t*n;u<d;++u,f+=4)e[f]=255;}},{key:\"undoPreblend\",value:function undoPreblend(e,t,r){var a=this.smask&&this.smask.matte;if(!a)return;var n=this.colorSpace.getRgb(a,0),i=n[0],s=n[1],o=n[2],c=t*r*4;for(var _t324=0;_t324<c;_t324+=4){var _r270=e[_t324+3];if(0===_r270){e[_t324]=255;e[_t324+1]=255;e[_t324+2]=255;continue;}var _a209=255/_r270;e[_t324]=(e[_t324]-i)*_a209+i;e[_t324+1]=(e[_t324+1]-s)*_a209+s;e[_t324+2]=(e[_t324+2]-o)*_a209+o;}}},{key:\"createImageData\",value:function createImageData(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t=this.drawWidth,r=this.drawHeight,n={width:t,height:r,interpolate:this.interpolate,kind:0,data:null},i=this.numComps,s=this.width,o=this.height,l=this.bpc,h=s*i*l+7>>3;if(!e){var _e428;\"DeviceGray\"===this.colorSpace.name&&1===l?_e428=a.ImageKind.GRAYSCALE_1BPP:\"DeviceRGB\"!==this.colorSpace.name||8!==l||this.needsDecode||(_e428=a.ImageKind.RGB_24BPP);if(_e428&&!this.smask&&!this.mask&&t===s&&r===o){n.kind=_e428;n.data=this.getImageBytes(o*h,{});if(this.needsDecode){(0,a.assert)(_e428===a.ImageKind.GRAYSCALE_1BPP,\"PDFImage.createImageData: The image must be grayscale.\");var _t325=n.data;for(var _e429=0,_r271=_t325.length;_e429<_r271;_e429++)_t325[_e429]^=255;}return n;}if(this.image instanceof c.JpegStream&&!this.smask&&!this.mask){var _e430=o*h;switch(this.colorSpace.name){case\"DeviceGray\":_e430*=3;case\"DeviceRGB\":case\"DeviceCMYK\":n.kind=a.ImageKind.RGB_24BPP;n.data=this.getImageBytes(_e430,{drawWidth:t,drawHeight:r,forceRGB:!0});return n;}}}var u=this.getImageBytes(o*h,{internal:!0}),d=0|u.length/h*r/o,f=this.getComponents(u);var g,p;if(e||this.smask||this.mask){n.kind=a.ImageKind.RGBA_32BPP;n.data=new Uint8ClampedArray(t*r*4);g=1;p=!0;this.fillOpacity(n.data,t,r,d,f);}else{n.kind=a.ImageKind.RGB_24BPP;n.data=new Uint8ClampedArray(t*r*3);g=0;p=!1;}this.needsDecode&&this.decodeBuffer(f);this.colorSpace.fillRgb(n.data,s,o,t,r,d,l,f,g);p&&this.undoPreblend(n.data,t,d);return n;}},{key:\"fillGrayBuffer\",value:function fillGrayBuffer(e){var t=this.numComps;if(1!==t)throw new a.FormatError(\"Reading gray scale from a color image: \".concat(t));var r=this.width,n=this.height,i=this.bpc,s=r*t*i+7>>3,o=this.getImageBytes(n*s,{internal:!0}),c=this.getComponents(o);var l,h;if(1===i){h=r*n;if(this.needsDecode)for(l=0;l<h;++l)e[l]=c[l]-1&255;else for(l=0;l<h;++l)e[l]=255&-c[l];return;}this.needsDecode&&this.decodeBuffer(c);h=r*n;var u=255/((1<<i)-1);for(l=0;l<h;++l)e[l]=u*c[l];}},{key:\"getImageBytes\",value:function getImageBytes(e,t){var r=t.drawWidth,n=t.drawHeight,_t$forceRGB=t.forceRGB,i=_t$forceRGB===void 0?!1:_t$forceRGB,_t$internal=t.internal,s=_t$internal===void 0?!1:_t$internal;this.image.reset();this.image.drawWidth=r||this.width;this.image.drawHeight=n||this.height;this.image.forceRGB=!!i;var c=this.image.getBytes(e);if(s||this.image instanceof o.DecodeStream)return c;(0,a.assert)(c instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported \"imageBytes\" type.');return new Uint8Array(c);}}],[{key:\"buildImage\",value:function(){var _buildImage=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee51(e){var t,r,n,_e$isInline3,s,o,c,l,h,u,d,f;return _regeneratorRuntime.wrap(function _callee51$(_context267){while(1)switch(_context267.prev=_context267.next){case 0:t=e.xref,r=e.res,n=e.image,_e$isInline3=e.isInline,s=_e$isInline3===void 0?!1:_e$isInline3,o=e.pdfFunctionFactory,c=e.localColorSpaceCache;l=n;h=null,u=null;d=n.dict.get(\"SMask\"),f=n.dict.get(\"Mask\");d?d instanceof i.BaseStream?h=d:(0,a.warn)(\"Unsupported /SMask format.\"):f&&(f instanceof i.BaseStream||Array.isArray(f)?u=f:(0,a.warn)(\"Unsupported /Mask format.\"));return _context267.abrupt(\"return\",new PDFImage({xref:t,res:r,image:l,isInline:s,smask:h,mask:u,pdfFunctionFactory:o,localColorSpaceCache:c}));case 6:case\"end\":return _context267.stop();}},_callee51);}));function buildImage(_x117){return _buildImage.apply(this,arguments);}return buildImage;}()},{key:\"createRawMask\",value:function createRawMask(e){var t=e.imgArray,r=e.width,a=e.height,n=e.imageIsFromDecodeStream,i=e.inverseDecode,s=e.interpolate;var o=(r+7>>3)*a,c=t.byteLength;var l,h;if(!n||i&&!(o===c)){if(i){l=new Uint8Array(o);l.set(t);_fillInstanceProperty(l).call(l,255,c);}else l=new Uint8Array(t);}else l=t;if(i)for(h=0;h<c;h++)l[h]^=255;return{data:l,width:r,height:a,interpolate:s};}},{key:\"createMask\",value:function createMask(e){var t=e.imgArray,r=e.width,i=e.height,s=e.imageIsFromDecodeStream,o=e.inverseDecode,c=e.interpolate;var l=1===r&&1===i&&o===(0===t.length||!!(128&t[0]));if(l)return{isSingleOpaquePixel:l};if(a.FeatureTest.isOffscreenCanvasSupported){var _e431=new OffscreenCanvas(r,i),_a210=_e431.getContext(\"2d\"),_s92=_a210.createImageData(r,i);(0,n.applyMaskImageData)({src:t,dest:_s92.data,width:r,height:i,inverseDecode:o});_a210.putImageData(_s92,0,0);return{data:null,width:r,height:i,interpolate:c,bitmap:_e431.transferToImageBitmap()};}return this.createRawMask({imgArray:t,width:r,height:i,inverseDecode:o,imageIsFromDecodeStream:s,interpolate:c});}}]);return PDFImage;}();t.PDFImage=PDFImage;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.applyMaskImageData=function applyMaskImageData(e){var t=e.src,_e$srcPos=e.srcPos,r=_e$srcPos===void 0?0:_e$srcPos,n=e.dest,_e$destPos=e.destPos,i=_e$destPos===void 0?0:_e$destPos,s=e.width,o=e.height,_e$inverseDecode=e.inverseDecode,c=_e$inverseDecode===void 0?!1:_e$inverseDecode;var l=a.FeatureTest.isLittleEndian?4278190080:255,_ref13=c?[0,l]:[l,0],_ref14=_slicedToArray(_ref13,2),h=_ref14[0],u=_ref14[1],d=s>>3,f=7&s,g=t.length;n=new Uint32Array(n.buffer);for(var _e432=0;_e432<o;_e432++){for(var _e433=r+d;r<_e433;r++){var _e434=r<g?t[r]:255;n[i++]=128&_e434?u:h;n[i++]=64&_e434?u:h;n[i++]=32&_e434?u:h;n[i++]=16&_e434?u:h;n[i++]=8&_e434?u:h;n[i++]=4&_e434?u:h;n[i++]=2&_e434?u:h;n[i++]=1&_e434?u:h;}if(0===f)continue;var _e435=r<g?t[r++]:255;for(var _t326=0;_t326<f;_t326++)n[i++]=_e435&1<<7-_t326?u:h;}return{srcPos:r,destPos:i};};var a=r(2);},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.incrementalUpdate=function incrementalUpdate(e){var _context271;var t=e.originalData,r=e.xrefInfo,o=e.newRefs,_e$xref=e.xref,l=_e$xref===void 0?null:_e$xref,_e$hasXfa=e.hasXfa,h=_e$hasXfa===void 0?!1:_e$hasXfa,_e$xfaDatasetsRef=e.xfaDatasetsRef,u=_e$xfaDatasetsRef===void 0?null:_e$xfaDatasetsRef,_e$hasXfaDatasetsEntr=e.hasXfaDatasetsEntry,d=_e$hasXfaDatasetsEntr===void 0?!1:_e$hasXfaDatasetsEntr,_e$acroFormRef=e.acroFormRef,f=_e$acroFormRef===void 0?null:_e$acroFormRef,_e$acroForm=e.acroForm,g=_e$acroForm===void 0?null:_e$acroForm,_e$xfaData=e.xfaData,p=_e$xfaData===void 0?null:_e$xfaData;h&&function updateXFA(e,_context269,_context270){var t=e.xfaData,r=e.xfaDatasetsRef,n=e.hasXfaDatasetsEntry,o=e.acroFormRef,c=e.acroForm,l=e.newRefs,h=e.xref,u=e.xrefInfo;if(null===h)return;if(!n){var _context268;if(!o){(0,a.warn)(\"XFA - Cannot save it\");return;}var _e436=c.get(\"XFA\"),_t327=_sliceInstanceProperty(_e436).call(_e436);_spliceInstanceProperty(_t327).call(_t327,2,0,\"datasets\");_spliceInstanceProperty(_t327).call(_t327,3,0,r);c.set(\"XFA\",_t327);var _n170=h.encrypt;var _i139=null;_n170&&(_i139=_n170.createCipherTransform(o.num,o.gen));var _s93=[_concatInstanceProperty(_context268=\"\".concat(o.num,\" \")).call(_context268,o.gen,\" obj\\n\")];writeDict(c,_s93,_i139);_s93.push(\"\\n\");c.set(\"XFA\",_e436);l.push({ref:o,data:_s93.join(\"\")});}if(null===t){t=function writeXFADataForAcroform(e,t){var r=new s.SimpleXMLParser({hasAttributes:!0}).parseFromString(e);var _iterator90=_createForOfIteratorHelper(t),_step90;try{for(_iterator90.s();!(_step90=_iterator90.n()).done;){var _e437=_step90.value.xfa;if(!_e437)continue;var _t328=_e437.path,_n171=_e437.value;if(!_t328)continue;var _o65=r.documentElement.searchNode((0,i.parseXFAPath)(_t328),0);_o65?Array.isArray(_n171)?_o65.childNodes=_mapInstanceProperty(_n171).call(_n171,function(e){return new s.SimpleDOMNode(\"value\",e);}):_o65.childNodes=[new s.SimpleDOMNode(\"#text\",_n171)]:(0,a.warn)(\"Node not found for path: \".concat(_t328));}}catch(err){_iterator90.e(err);}finally{_iterator90.f();}var n=[];r.documentElement.dump(n);return n.join(\"\");}(h.fetchIfRef(r).getString(),l);}var d=h.encrypt;if(d){t=d.createCipherTransform(r.num,r.gen).encryptString(t);}var f=_concatInstanceProperty(_context269=_concatInstanceProperty(_context270=\"\".concat(r.num,\" \")).call(_context270,r.gen,\" obj\\n<< /Type /EmbeddedFile /Length \")).call(_context269,t.length,\">>\\nstream\\n\")+t+\"\\nendstream\\nendobj\\n\";l.push({ref:r,data:f});}({xfaData:p,xfaDatasetsRef:u,hasXfaDatasetsEntry:d,acroFormRef:f,acroForm:g,newRefs:o,xref:l,xrefInfo:r});var m=new n.Dict(null),b=r.newRef;var y,w;var S=t.at(-1);if(10===S||13===S){y=[];w=t.length;}else{y=[\"\\n\"];w=t.length+1;}m.set(\"Size\",b.num+1);m.set(\"Prev\",r.startXRef);m.set(\"Type\",n.Name.get(\"XRef\"));null!==r.rootRef&&m.set(\"Root\",r.rootRef);null!==r.infoRef&&m.set(\"Info\",r.infoRef);null!==r.encryptRef&&m.set(\"Encrypt\",r.encryptRef);o.push({ref:b,data:\"\"});o=_sortInstanceProperty(o).call(o,function(e,t){return e.ref.num-t.ref.num;});var x=[[0,1,65535]],k=[0,1];var C=0;var _iterator91=_createForOfIteratorHelper(o),_step91;try{for(_iterator91.s();!(_step91=_iterator91.n()).done;){var _step91$value=_step91.value,_e442=_step91$value.ref,_t330=_step91$value.data;C=Math.max(C,w);x.push([1,w,Math.min(_e442.gen,65535)]);w+=_t330.length;k.push(_e442.num,1);y.push(_t330);}}catch(err){_iterator91.e(err);}finally{_iterator91.f();}m.set(\"Index\",k);if(Array.isArray(r.fileIds)&&r.fileIds.length>0){var _e438=function computeMD5(e,t){var r=Math.floor(Date.now()/1e3),n=t.filename||\"\",i=[r.toString(),n,e.toString()];var s=_reduceInstanceProperty(i).call(i,function(e,t){return e+t.length;},0);for(var _i140=0,_Object$values2=_Object$values(t.info);_i140<_Object$values2.length;_i140++){var _e439=_Object$values2[_i140];i.push(_e439);s+=_e439.length;}var o=new Uint8Array(s);var l=0;for(var _i142=0,_i141=i;_i142<_i141.length;_i142++){var _e440=_i141[_i142];writeString(_e440,l,o);l+=_e440.length;}return(0,a.bytesToString)((0,c.calculateMD5)(o));}(w,r);m.set(\"ID\",[r.fileIds[0],_e438]);}var v=[1,Math.ceil(_Math$log(C)/8),2],O=(v[0]+v[1]+v[2])*x.length;m.set(\"W\",v);m.set(\"Length\",O);y.push(_concatInstanceProperty(_context271=\"\".concat(b.num,\" \")).call(_context271,b.gen,\" obj\\n\"));writeDict(m,y,null);y.push(\" stream\\n\");var T=_reduceInstanceProperty(y).call(y,function(e,t){return e+t.length;},0),M=\"\\nendstream\\nendobj\\nstartxref\\n\".concat(w,\"\\n%%EOF\\n\"),E=new Uint8Array(t.length+T+O+M.length);E.set(t);var D=t.length;var _iterator92=_createForOfIteratorHelper(y),_step92;try{for(_iterator92.s();!(_step92=_iterator92.n()).done;){var _e443=_step92.value;writeString(_e443,D,E);D+=_e443.length;}}catch(err){_iterator92.e(err);}finally{_iterator92.f();}for(var _i143=0,_x118=x;_i143<_x118.length;_i143++){var _x118$_i=_slicedToArray(_x118[_i143],3),_e441=_x118$_i[0],_t329=_x118$_i[1],_r272=_x118$_i[2];D=writeInt(_e441,v[0],D,E);D=writeInt(_t329,v[1],D,E);D=writeInt(_r272,v[2],D,E);}writeString(M,D,E);return E;};t.writeDict=writeDict;t.writeObject=function writeObject(e,t,r,a){var _context272;r.push(_concatInstanceProperty(_context272=\"\".concat(e.num,\" \")).call(_context272,e.gen,\" obj\\n\"));t instanceof n.Dict?writeDict(t,r,a):t instanceof o.BaseStream&&writeStream(t,r,a);r.push(\"\\nendobj\\n\");};var a=r(2),n=r(130),i=r(131),s=r(191),o=r(132),c=r(192);function writeDict(e,t,r){t.push(\"<<\");var _iterator93=_createForOfIteratorHelper(e.getKeys()),_step93;try{for(_iterator93.s();!(_step93=_iterator93.n()).done;){var _a211=_step93.value;t.push(\" /\".concat((0,i.escapePDFName)(_a211),\" \"));writeValue(e.getRaw(_a211),t,r);}}catch(err){_iterator93.e(err);}finally{_iterator93.f();}t.push(\">>\");}function writeStream(e,t,r){writeDict(e.dict,t,r);t.push(\" stream\\n\");var a=e.getString();null!==r&&(a=r.encryptString(a));t.push(a,\"\\nendstream\\n\");}function writeValue(e,t,r){var _context273;if(e instanceof n.Name)t.push(\"/\".concat((0,i.escapePDFName)(e.name)));else if(e instanceof n.Ref)t.push(_concatInstanceProperty(_context273=\"\".concat(e.num,\" \")).call(_context273,e.gen,\" R\"));else if(Array.isArray(e))!function writeArray(e,t,r){t.push(\"[\");var a=!0;var _iterator94=_createForOfIteratorHelper(e),_step94;try{for(_iterator94.s();!(_step94=_iterator94.n()).done;){var _n172=_step94.value;a?a=!1:t.push(\" \");writeValue(_n172,t,r);}}catch(err){_iterator94.e(err);}finally{_iterator94.f();}t.push(\"]\");}(e,t,r);else if(\"string\"==typeof e){null!==r&&(e=r.encryptString(e));t.push(\"(\".concat((0,a.escapeString)(e),\")\"));}else\"number\"==typeof e?t.push((0,i.numberToString)(e)):\"boolean\"==typeof e?t.push(e.toString()):e instanceof n.Dict?writeDict(e,t,r):e instanceof o.BaseStream?writeStream(e,t,r):null===e?t.push(\"null\"):(0,a.warn)(\"Unhandled value in writer: \".concat(_typeof(e),\", please file a bug.\"));}function writeInt(e,t,r,a){for(var _n173=t+r-1;_n173>r-1;_n173--){a[_n173]=255&e;e>>=8;}return r+t;}function writeString(e,t,r){for(var _a212=0,_n174=e.length;_a212<_n174;_a212++)r[t+_a212]=255&e.charCodeAt(_a212);}},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.XMLParserErrorCode=t.XMLParserBase=t.SimpleXMLParser=t.SimpleDOMNode=void 0;var a=r(131);var n={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};t.XMLParserErrorCode=n;function isWhitespace(e,t){var r=e[t];return\" \"===r||\"\\n\"===r||\"\\r\"===r||\"\\t\"===r;}var XMLParserBase=/*#__PURE__*/function(){function XMLParserBase(){_classCallCheck(this,XMLParserBase);}_createClass(XMLParserBase,[{key:\"_resolveEntities\",value:function _resolveEntities(e){var _this91=this;return e.replace(/&([^;]+);/g,function(e,t){if(\"#x\"===t.substring(0,2))return _String$fromCodePoint(_parseInt(t.substring(2),16));if(\"#\"===t.substring(0,1))return _String$fromCodePoint(_parseInt(t.substring(1),10));switch(t){case\"lt\":return\"<\";case\"gt\":return\">\";case\"amp\":return\"&\";case\"quot\":return'\"';case\"apos\":return\"'\";}return _this91.onResolveEntity(t);});}},{key:\"_parseContent\",value:function _parseContent(e,t){var r=[];var a=t;function skipWs(){for(;a<e.length&&isWhitespace(e,a);)++a;}for(;a<e.length&&!isWhitespace(e,a)&&\">\"!==e[a]&&\"/\"!==e[a];)++a;var n=e.substring(t,a);skipWs();for(;a<e.length&&\">\"!==e[a]&&\"/\"!==e[a]&&\"?\"!==e[a];){skipWs();var _t331=\"\",_n175=\"\";for(;a<e.length&&!isWhitespace(e,a)&&\"=\"!==e[a];){_t331+=e[a];++a;}skipWs();if(\"=\"!==e[a])return null;++a;skipWs();var _i144=e[a];if('\"'!==_i144&&\"'\"!==_i144)return null;var _s94=_indexOfInstanceProperty(e).call(e,_i144,++a);if(_s94<0)return null;_n175=e.substring(a,_s94);r.push({name:_t331,value:this._resolveEntities(_n175)});a=_s94+1;skipWs();}return{name:n,attributes:r,parsed:a-t};}},{key:\"_parseProcessingInstruction\",value:function _parseProcessingInstruction(e,t){var r=t;for(;r<e.length&&!isWhitespace(e,r)&&\">\"!==e[r]&&\"?\"!==e[r]&&\"/\"!==e[r];)++r;var a=e.substring(t,r);!function skipWs(){for(;r<e.length&&isWhitespace(e,r);)++r;}();var n=r;for(;r<e.length&&(\"?\"!==e[r]||\">\"!==e[r+1]);)++r;return{name:a,value:e.substring(n,r),parsed:r-t};}},{key:\"parseXml\",value:function parseXml(e){var t=0;for(;t<e.length;){var _r273=t;if(\"<\"===e[t]){++_r273;var _t332=void 0;switch(e[_r273]){case\"/\":++_r273;_t332=_indexOfInstanceProperty(e).call(e,\">\",_r273);if(_t332<0){this.onError(n.UnterminatedElement);return;}this.onEndElement(e.substring(_r273,_t332));_r273=_t332+1;break;case\"?\":++_r273;var _a213=this._parseProcessingInstruction(e,_r273);if(\"?>\"!==e.substring(_r273+_a213.parsed,_r273+_a213.parsed+2)){this.onError(n.UnterminatedXmlDeclaration);return;}this.onPi(_a213.name,_a213.value);_r273+=_a213.parsed+2;break;case\"!\":if(\"--\"===e.substring(_r273+1,_r273+3)){_t332=_indexOfInstanceProperty(e).call(e,\"--\\x3e\",_r273+3);if(_t332<0){this.onError(n.UnterminatedComment);return;}this.onComment(e.substring(_r273+3,_t332));_r273=_t332+3;}else if(\"[CDATA[\"===e.substring(_r273+1,_r273+8)){_t332=_indexOfInstanceProperty(e).call(e,\"]]>\",_r273+8);if(_t332<0){this.onError(n.UnterminatedCdat);return;}this.onCdata(e.substring(_r273+8,_t332));_r273=_t332+3;}else{if(\"DOCTYPE\"!==e.substring(_r273+1,_r273+8)){this.onError(n.MalformedElement);return;}{var _a214=_indexOfInstanceProperty(e).call(e,\"[\",_r273+8);var _i145=!1;_t332=_indexOfInstanceProperty(e).call(e,\">\",_r273+8);if(_t332<0){this.onError(n.UnterminatedDoctypeDeclaration);return;}if(_a214>0&&_t332>_a214){_t332=_indexOfInstanceProperty(e).call(e,\"]>\",_r273+8);if(_t332<0){this.onError(n.UnterminatedDoctypeDeclaration);return;}_i145=!0;}var _s95=e.substring(_r273+8,_t332+(_i145?1:0));this.onDoctype(_s95);_r273=_t332+(_i145?2:1);}}break;default:var _i146=this._parseContent(e,_r273);if(null===_i146){this.onError(n.MalformedElement);return;}var _s96=!1;if(\"/>\"===e.substring(_r273+_i146.parsed,_r273+_i146.parsed+2))_s96=!0;else if(\">\"!==e.substring(_r273+_i146.parsed,_r273+_i146.parsed+1)){this.onError(n.UnterminatedElement);return;}this.onBeginElement(_i146.name,_i146.attributes,_s96);_r273+=_i146.parsed+(_s96?2:1);}}else{for(;_r273<e.length&&\"<\"!==e[_r273];)_r273++;var _a215=e.substring(t,_r273);this.onText(this._resolveEntities(_a215));}t=_r273;}}},{key:\"onResolveEntity\",value:function onResolveEntity(e){return\"&\".concat(e,\";\");}},{key:\"onPi\",value:function onPi(e,t){}},{key:\"onComment\",value:function onComment(e){}},{key:\"onCdata\",value:function onCdata(e){}},{key:\"onDoctype\",value:function onDoctype(e){}},{key:\"onText\",value:function onText(e){}},{key:\"onBeginElement\",value:function onBeginElement(e,t,r){}},{key:\"onEndElement\",value:function onEndElement(e){}},{key:\"onError\",value:function onError(e){}}]);return XMLParserBase;}();t.XMLParserBase=XMLParserBase;var SimpleDOMNode=/*#__PURE__*/function(){function SimpleDOMNode(e,t){_classCallCheck(this,SimpleDOMNode);this.nodeName=e;this.nodeValue=t;_Object$defineProperty(this,\"parentNode\",{value:null,writable:!0});}_createClass(SimpleDOMNode,[{key:\"firstChild\",get:function get(){return this.childNodes&&this.childNodes[0];}},{key:\"nextSibling\",get:function get(){var e=this.parentNode.childNodes;if(!e)return;var t=_indexOfInstanceProperty(e).call(e,this);return-1!==t?e[t+1]:void 0;}},{key:\"textContent\",get:function get(){var _context274;return this.childNodes?_mapInstanceProperty(_context274=this.childNodes).call(_context274,function(e){return e.textContent;}).join(\"\"):this.nodeValue||\"\";}},{key:\"children\",get:function get(){return this.childNodes||[];}},{key:\"hasChildNodes\",value:function hasChildNodes(){return this.childNodes&&this.childNodes.length>0;}},{key:\"searchNode\",value:function searchNode(e,t){if(t>=e.length)return this;var r=e[t],a=[];var n=this;for(;;){if(r.name===n.nodeName){if(0!==r.pos){if(0===a.length)return null;{var _a$pop=a.pop(),_a$pop2=_slicedToArray(_a$pop,1),_i147=_a$pop2[0];var _s97=0;var _iterator95=_createForOfIteratorHelper(_i147.childNodes),_step95;try{for(_iterator95.s();!(_step95=_iterator95.n()).done;){var _a216=_step95.value;if(r.name===_a216.nodeName){if(_s97===r.pos)return _a216.searchNode(e,t+1);_s97++;}}}catch(err){_iterator95.e(err);}finally{_iterator95.f();}return n.searchNode(e,t+1);}}{var _r274=n.searchNode(e,t+1);if(null!==_r274)return _r274;}}if(n.childNodes&&0!==n.childNodes.length){a.push([n,0]);n=n.childNodes[0];}else{if(0===a.length)return null;for(;0!==a.length;){var _a$pop3=a.pop(),_a$pop4=_slicedToArray(_a$pop3,2),_e444=_a$pop4[0],_t333=_a$pop4[1],_r275=_t333+1;if(_r275<_e444.childNodes.length){a.push([_e444,_r275]);n=_e444.childNodes[_r275];break;}}if(0===a.length)return null;}}}},{key:\"dump\",value:function dump(e){if(\"#text\"!==this.nodeName){var _context276;e.push(\"<\".concat(this.nodeName));if(this.attributes){var _iterator96=_createForOfIteratorHelper(this.attributes),_step96;try{for(_iterator96.s();!(_step96=_iterator96.n()).done;){var _context275;var _t334=_step96.value;e.push(_concatInstanceProperty(_context275=\" \".concat(_t334.name,\"=\\\"\")).call(_context275,(0,a.encodeToXmlString)(_t334.value),\"\\\"\"));}}catch(err){_iterator96.e(err);}finally{_iterator96.f();}}if(this.hasChildNodes()){e.push(\">\");var _iterator97=_createForOfIteratorHelper(this.childNodes),_step97;try{for(_iterator97.s();!(_step97=_iterator97.n()).done;){var _t335=_step97.value;_t335.dump(e);}}catch(err){_iterator97.e(err);}finally{_iterator97.f();}e.push(\"</\".concat(this.nodeName,\">\"));}else this.nodeValue?e.push(_concatInstanceProperty(_context276=\">\".concat((0,a.encodeToXmlString)(this.nodeValue),\"</\")).call(_context276,this.nodeName,\">\")):e.push(\"/>\");}else e.push((0,a.encodeToXmlString)(this.nodeValue));}}]);return SimpleDOMNode;}();t.SimpleDOMNode=SimpleDOMNode;t.SimpleXMLParser=/*#__PURE__*/function(_XMLParserBase){_inherits(SimpleXMLParser,_XMLParserBase);function SimpleXMLParser(e){var _this92;_classCallCheck(this,SimpleXMLParser);var _e$hasAttributes=e.hasAttributes,t=_e$hasAttributes===void 0?!1:_e$hasAttributes,_e$lowerCaseName=e.lowerCaseName,r=_e$lowerCaseName===void 0?!1:_e$lowerCaseName;_this92=_callSuper(this,SimpleXMLParser);_this92._currentFragment=null;_this92._stack=null;_this92._errorCode=n.NoError;_this92._hasAttributes=t;_this92._lowerCaseName=r;return _this92;}_createClass(SimpleXMLParser,[{key:\"parseFromString\",value:function parseFromString(e){this._currentFragment=[];this._stack=[];this._errorCode=n.NoError;this.parseXml(e);if(this._errorCode!==n.NoError)return;var _this$_currentFragmen=_slicedToArray(this._currentFragment,1),t=_this$_currentFragmen[0];return t?{documentElement:t}:void 0;}},{key:\"onText\",value:function onText(e){if(function isWhitespaceString(e){for(var _t336=0,_r276=e.length;_t336<_r276;_t336++)if(!isWhitespace(e,_t336))return!1;return!0;}(e))return;var t=new SimpleDOMNode(\"#text\",e);this._currentFragment.push(t);}},{key:\"onCdata\",value:function onCdata(e){var t=new SimpleDOMNode(\"#text\",e);this._currentFragment.push(t);}},{key:\"onBeginElement\",value:function onBeginElement(e,t,r){this._lowerCaseName&&(e=e.toLowerCase());var a=new SimpleDOMNode(e);a.childNodes=[];this._hasAttributes&&(a.attributes=t);this._currentFragment.push(a);if(!r){this._stack.push(this._currentFragment);this._currentFragment=a.childNodes;}}},{key:\"onEndElement\",value:function onEndElement(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment.at(-1);if(!t)return null;for(var _e445=0,_r277=t.childNodes.length;_e445<_r277;_e445++)t.childNodes[_e445].parentNode=t;return t;}},{key:\"onError\",value:function onError(e){this._errorCode=e;}}]);return SimpleXMLParser;}(XMLParserBase);},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0;t.calculateSHA384=calculateSHA384;t.calculateSHA512=void 0;var a=r(2),n=r(130),i=r(193);var ARCFourCipher=/*#__PURE__*/function(){function ARCFourCipher(e){_classCallCheck(this,ARCFourCipher);this.a=0;this.b=0;var t=new Uint8Array(256),r=e.length;for(var _e446=0;_e446<256;++_e446)t[_e446]=_e446;for(var _a217=0,_n176=0;_a217<256;++_a217){var _i148=t[_a217];_n176=_n176+_i148+e[_a217%r]&255;t[_a217]=t[_n176];t[_n176]=_i148;}this.s=t;}_createClass(ARCFourCipher,[{key:\"encryptBlock\",value:function encryptBlock(e){var t=this.a,r=this.b;var a=this.s,n=e.length,i=new Uint8Array(n);for(var _s98=0;_s98<n;++_s98){t=t+1&255;var _n177=a[t];r=r+_n177&255;var _o66=a[r];a[t]=_o66;a[r]=_n177;i[_s98]=e[_s98]^a[_n177+_o66&255];}this.a=t;this.b=r;return i;}},{key:\"decryptBlock\",value:function decryptBlock(e){return this.encryptBlock(e);}},{key:\"encrypt\",value:function encrypt(e){return this.encryptBlock(e);}}]);return ARCFourCipher;}();t.ARCFourCipher=ARCFourCipher;var s=function calculateMD5Closure(){var e=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),t=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);return function hash(r,a,n){var i=1732584193,s=-271733879,o=-1732584194,c=271733878;var l=n+72&-64,h=new Uint8Array(l);var u,d;for(u=0;u<n;++u)h[u]=r[a++];h[u++]=128;var f=l-8;for(;u<f;)h[u++]=0;h[u++]=n<<3&255;h[u++]=n>>5&255;h[u++]=n>>13&255;h[u++]=n>>21&255;h[u++]=n>>>29&255;h[u++]=0;h[u++]=0;h[u++]=0;var g=new Int32Array(16);for(u=0;u<l;){for(d=0;d<16;++d,u+=4)g[d]=h[u]|h[u+1]<<8|h[u+2]<<16|h[u+3]<<24;var _r278=void 0,_a218=void 0,_n178=i,_l32=s,_f10=o,_p13=c;for(d=0;d<64;++d){if(d<16){_r278=_l32&_f10|~_l32&_p13;_a218=d;}else if(d<32){_r278=_p13&_l32|~_p13&_f10;_a218=5*d+1&15;}else if(d<48){_r278=_l32^_f10^_p13;_a218=3*d+5&15;}else{_r278=_f10^(_l32|~_p13);_a218=7*d&15;}var _i149=_p13,_s99=_n178+_r278+t[d]+g[_a218]|0,_o67=e[d];_p13=_f10;_f10=_l32;_l32=_l32+(_s99<<_o67|_s99>>>32-_o67)|0;_n178=_i149;}i=i+_n178|0;s=s+_l32|0;o=o+_f10|0;c=c+_p13|0;}return new Uint8Array([255&i,i>>8&255,i>>16&255,i>>>24&255,255&s,s>>8&255,s>>16&255,s>>>24&255,255&o,o>>8&255,o>>16&255,o>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255]);};}();t.calculateMD5=s;var Word64=/*#__PURE__*/function(){function Word64(e,t){_classCallCheck(this,Word64);this.high=0|e;this.low=0|t;}_createClass(Word64,[{key:\"and\",value:function and(e){this.high&=e.high;this.low&=e.low;}},{key:\"xor\",value:function xor(e){this.high^=e.high;this.low^=e.low;}},{key:\"or\",value:function or(e){this.high|=e.high;this.low|=e.low;}},{key:\"shiftRight\",value:function shiftRight(e){if(e>=32){this.low=this.high>>>e-32|0;this.high=0;}else{this.low=this.low>>>e|this.high<<32-e;this.high=this.high>>>e|0;}}},{key:\"shiftLeft\",value:function shiftLeft(e){if(e>=32){this.high=this.low<<e-32;this.low=0;}else{this.high=this.high<<e|this.low>>>32-e;this.low<<=e;}}},{key:\"rotateRight\",value:function rotateRight(e){var t,r;if(32&e){r=this.low;t=this.high;}else{t=this.low;r=this.high;}e&=31;this.low=t>>>e|r<<32-e;this.high=r>>>e|t<<32-e;}},{key:\"not\",value:function not(){this.high=~this.high;this.low=~this.low;}},{key:\"add\",value:function add(e){var t=(this.low>>>0)+(e.low>>>0);var r=(this.high>>>0)+(e.high>>>0);t>4294967295&&(r+=1);this.low=0|t;this.high=0|r;}},{key:\"copyTo\",value:function copyTo(e,t){e[t]=this.high>>>24&255;e[t+1]=this.high>>16&255;e[t+2]=this.high>>8&255;e[t+3]=255&this.high;e[t+4]=this.low>>>24&255;e[t+5]=this.low>>16&255;e[t+6]=this.low>>8&255;e[t+7]=255&this.low;}},{key:\"assign\",value:function assign(e){this.high=e.high;this.low=e.low;}}]);return Word64;}();var o=function calculateSHA256Closure(){function rotr(e,t){return e>>>t|e<<32-t;}function ch(e,t,r){return e&t^~e&r;}function maj(e,t,r){return e&t^e&r^t&r;}function sigma(e){return rotr(e,2)^rotr(e,13)^rotr(e,22);}function sigmaPrime(e){return rotr(e,6)^rotr(e,11)^rotr(e,25);}function littleSigma(e){return rotr(e,7)^rotr(e,18)^e>>>3;}var e=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function hash(t,r,a){var n=1779033703,i=3144134277,s=1013904242,o=2773480762,c=1359893119,l=2600822924,h=528734635,u=1541459225;var d=64*Math.ceil((a+9)/64),f=new Uint8Array(d);var g,p;for(g=0;g<a;++g)f[g]=t[r++];f[g++]=128;var m=d-8;for(;g<m;)f[g++]=0;f[g++]=0;f[g++]=0;f[g++]=0;f[g++]=a>>>29&255;f[g++]=a>>21&255;f[g++]=a>>13&255;f[g++]=a>>5&255;f[g++]=a<<3&255;var b=new Uint32Array(64);for(g=0;g<d;){for(p=0;p<16;++p){b[p]=f[g]<<24|f[g+1]<<16|f[g+2]<<8|f[g+3];g+=4;}for(p=16;p<64;++p)b[p]=(rotr(y=b[p-2],17)^rotr(y,19)^y>>>10)+b[p-7]+littleSigma(b[p-15])+b[p-16]|0;var _t337=void 0,_r279=void 0,_a219=n,_d13=i,_m10=s,w=o,S=c,x=l,k=h,C=u;for(p=0;p<64;++p){_t337=C+sigmaPrime(S)+ch(S,x,k)+e[p]+b[p];_r279=sigma(_a219)+maj(_a219,_d13,_m10);C=k;k=x;x=S;S=w+_t337|0;w=_m10;_m10=_d13;_d13=_a219;_a219=_t337+_r279|0;}n=n+_a219|0;i=i+_d13|0;s=s+_m10|0;o=o+w|0;c=c+S|0;l=l+x|0;h=h+k|0;u=u+C|0;}var y;return new Uint8Array([n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,s>>24&255,s>>16&255,s>>8&255,255&s,o>>24&255,o>>16&255,o>>8&255,255&o,c>>24&255,c>>16&255,c>>8&255,255&c,l>>24&255,l>>16&255,l>>8&255,255&l,h>>24&255,h>>16&255,h>>8&255,255&h,u>>24&255,u>>16&255,u>>8&255,255&u]);};}();t.calculateSHA256=o;var c=function calculateSHA512Closure(){function ch(e,t,r,a,n){e.assign(t);e.and(r);n.assign(t);n.not();n.and(a);e.xor(n);}function maj(e,t,r,a,n){e.assign(t);e.and(r);n.assign(t);n.and(a);e.xor(n);n.assign(r);n.and(a);e.xor(n);}function sigma(e,t,r){e.assign(t);e.rotateRight(28);r.assign(t);r.rotateRight(34);e.xor(r);r.assign(t);r.rotateRight(39);e.xor(r);}function sigmaPrime(e,t,r){e.assign(t);e.rotateRight(14);r.assign(t);r.rotateRight(18);e.xor(r);r.assign(t);r.rotateRight(41);e.xor(r);}function littleSigma(e,t,r){e.assign(t);e.rotateRight(1);r.assign(t);r.rotateRight(8);e.xor(r);r.assign(t);r.shiftRight(7);e.xor(r);}function littleSigmaPrime(e,t,r){e.assign(t);e.rotateRight(19);r.assign(t);r.rotateRight(61);e.xor(r);r.assign(t);r.shiftRight(6);e.xor(r);}var e=[new Word64(1116352408,3609767458),new Word64(1899447441,602891725),new Word64(3049323471,3964484399),new Word64(3921009573,2173295548),new Word64(961987163,4081628472),new Word64(1508970993,3053834265),new Word64(2453635748,2937671579),new Word64(2870763221,3664609560),new Word64(3624381080,2734883394),new Word64(310598401,1164996542),new Word64(607225278,1323610764),new Word64(1426881987,3590304994),new Word64(1925078388,4068182383),new Word64(2162078206,991336113),new Word64(2614888103,633803317),new Word64(3248222580,3479774868),new Word64(3835390401,2666613458),new Word64(4022224774,944711139),new Word64(264347078,2341262773),new Word64(604807628,2007800933),new Word64(770255983,1495990901),new Word64(1249150122,1856431235),new Word64(1555081692,3175218132),new Word64(1996064986,2198950837),new Word64(2554220882,3999719339),new Word64(2821834349,766784016),new Word64(2952996808,2566594879),new Word64(3210313671,3203337956),new Word64(3336571891,1034457026),new Word64(3584528711,2466948901),new Word64(113926993,3758326383),new Word64(338241895,168717936),new Word64(666307205,1188179964),new Word64(773529912,1546045734),new Word64(1294757372,1522805485),new Word64(1396182291,2643833823),new Word64(1695183700,2343527390),new Word64(1986661051,1014477480),new Word64(2177026350,1206759142),new Word64(2456956037,344077627),new Word64(2730485921,1290863460),new Word64(2820302411,3158454273),new Word64(3259730800,3505952657),new Word64(3345764771,106217008),new Word64(3516065817,3606008344),new Word64(3600352804,1432725776),new Word64(4094571909,1467031594),new Word64(275423344,851169720),new Word64(430227734,3100823752),new Word64(506948616,1363258195),new Word64(659060556,3750685593),new Word64(883997877,3785050280),new Word64(958139571,3318307427),new Word64(1322822218,3812723403),new Word64(1537002063,2003034995),new Word64(1747873779,3602036899),new Word64(1955562222,1575990012),new Word64(2024104815,1125592928),new Word64(2227730452,2716904306),new Word64(2361852424,442776044),new Word64(2428436474,593698344),new Word64(2756734187,3733110249),new Word64(3204031479,2999351573),new Word64(3329325298,3815920427),new Word64(3391569614,3928383900),new Word64(3515267271,566280711),new Word64(3940187606,3454069534),new Word64(4118630271,4000239992),new Word64(116418474,1914138554),new Word64(174292421,2731055270),new Word64(289380356,3203993006),new Word64(460393269,320620315),new Word64(685471733,587496836),new Word64(852142971,1086792851),new Word64(1017036298,365543100),new Word64(1126000580,2618297676),new Word64(1288033470,3409855158),new Word64(1501505948,4234509866),new Word64(1607167915,987167468),new Word64(1816402316,1246189591)];return function hash(t,r,a){var n,i,s,o,c,l,h,u,d=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(d){n=new Word64(3418070365,3238371032);i=new Word64(1654270250,914150663);s=new Word64(2438529370,812702999);o=new Word64(355462360,4144912697);c=new Word64(1731405415,4290775857);l=new Word64(2394180231,1750603025);h=new Word64(3675008525,1694076839);u=new Word64(1203062813,3204075428);}else{n=new Word64(1779033703,4089235720);i=new Word64(3144134277,2227873595);s=new Word64(1013904242,4271175723);o=new Word64(2773480762,1595750129);c=new Word64(1359893119,2917565137);l=new Word64(2600822924,725511199);h=new Word64(528734635,4215389547);u=new Word64(1541459225,327033209);}var f=128*Math.ceil((a+17)/128),g=new Uint8Array(f);var p,m;for(p=0;p<a;++p)g[p]=t[r++];g[p++]=128;var b=f-16;for(;p<b;)g[p++]=0;g[p++]=0;g[p++]=0;g[p++]=0;g[p++]=0;g[p++]=0;g[p++]=0;g[p++]=0;g[p++]=0;g[p++]=0;g[p++]=0;g[p++]=0;g[p++]=a>>>29&255;g[p++]=a>>21&255;g[p++]=a>>13&255;g[p++]=a>>5&255;g[p++]=a<<3&255;var y=new Array(80);for(p=0;p<80;p++)y[p]=new Word64(0,0);var w=new Word64(0,0),S=new Word64(0,0),x=new Word64(0,0),k=new Word64(0,0),C=new Word64(0,0),v=new Word64(0,0),O=new Word64(0,0),T=new Word64(0,0);var M=new Word64(0,0),E=new Word64(0,0),D=new Word64(0,0),N=new Word64(0,0);var R,L;for(p=0;p<f;){for(m=0;m<16;++m){y[m].high=g[p]<<24|g[p+1]<<16|g[p+2]<<8|g[p+3];y[m].low=g[p+4]<<24|g[p+5]<<16|g[p+6]<<8|g[p+7];p+=8;}for(m=16;m<80;++m){R=y[m];littleSigmaPrime(R,y[m-2],N);R.add(y[m-7]);littleSigma(D,y[m-15],N);R.add(D);R.add(y[m-16]);}w.assign(n);S.assign(i);x.assign(s);k.assign(o);C.assign(c);v.assign(l);O.assign(h);T.assign(u);for(m=0;m<80;++m){M.assign(T);sigmaPrime(D,C,N);M.add(D);ch(D,C,v,O,N);M.add(D);M.add(e[m]);M.add(y[m]);sigma(E,w,N);maj(D,w,S,x,N);E.add(D);R=T;T=O;O=v;v=C;k.add(M);C=k;k=x;x=S;S=w;R.assign(M);R.add(E);w=R;}n.add(w);i.add(S);s.add(x);o.add(k);c.add(C);l.add(v);h.add(O);u.add(T);}if(d){L=new Uint8Array(48);n.copyTo(L,0);i.copyTo(L,8);s.copyTo(L,16);o.copyTo(L,24);c.copyTo(L,32);l.copyTo(L,40);}else{L=new Uint8Array(64);n.copyTo(L,0);i.copyTo(L,8);s.copyTo(L,16);o.copyTo(L,24);c.copyTo(L,32);l.copyTo(L,40);h.copyTo(L,48);u.copyTo(L,56);}return L;};}();t.calculateSHA512=c;function calculateSHA384(e,t,r){return c(e,t,r,!0);}var NullCipher=/*#__PURE__*/function(){function NullCipher(){_classCallCheck(this,NullCipher);}_createClass(NullCipher,[{key:\"decryptBlock\",value:function decryptBlock(e){return e;}},{key:\"encrypt\",value:function encrypt(e){return e;}}]);return NullCipher;}();var AESBaseCipher=/*#__PURE__*/function(){function AESBaseCipher(){_classCallCheck(this,AESBaseCipher);this.constructor===AESBaseCipher&&(0,a.unreachable)(\"Cannot initialize AESBaseCipher.\");this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]);this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]);this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]);this._mixCol=new Uint8Array(256);for(var _e447=0;_e447<256;_e447++)this._mixCol[_e447]=_e447<128?_e447<<1:_e447<<1^27;this.buffer=new Uint8Array(16);this.bufferPosition=0;}_createClass(AESBaseCipher,[{key:\"_expandKey\",value:function _expandKey(e){(0,a.unreachable)(\"Cannot call `_expandKey` on the base class\");}},{key:\"_decrypt\",value:function _decrypt(e,t){var r,a,n;var i=new Uint8Array(16);i.set(e);for(var _e448=0,_r280=this._keySize;_e448<16;++_e448,++_r280)i[_e448]^=t[_r280];for(var _e449=this._cyclesOfRepetition-1;_e449>=1;--_e449){r=i[13];i[13]=i[9];i[9]=i[5];i[5]=i[1];i[1]=r;r=i[14];a=i[10];i[14]=i[6];i[10]=i[2];i[6]=r;i[2]=a;r=i[15];a=i[11];n=i[7];i[15]=i[3];i[11]=r;i[7]=a;i[3]=n;for(var _e450=0;_e450<16;++_e450)i[_e450]=this._inv_s[i[_e450]];for(var _r281=0,_a220=16*_e449;_r281<16;++_r281,++_a220)i[_r281]^=t[_a220];for(var _e451=0;_e451<16;_e451+=4){var _t338=this._mix[i[_e451]],_a221=this._mix[i[_e451+1]],_n179=this._mix[i[_e451+2]],_s100=this._mix[i[_e451+3]];r=_t338^_a221>>>8^_a221<<24^_n179>>>16^_n179<<16^_s100>>>24^_s100<<8;i[_e451]=r>>>24&255;i[_e451+1]=r>>16&255;i[_e451+2]=r>>8&255;i[_e451+3]=255&r;}}r=i[13];i[13]=i[9];i[9]=i[5];i[5]=i[1];i[1]=r;r=i[14];a=i[10];i[14]=i[6];i[10]=i[2];i[6]=r;i[2]=a;r=i[15];a=i[11];n=i[7];i[15]=i[3];i[11]=r;i[7]=a;i[3]=n;for(var _e452=0;_e452<16;++_e452){i[_e452]=this._inv_s[i[_e452]];i[_e452]^=t[_e452];}return i;}},{key:\"_encrypt\",value:function _encrypt(e,t){var r=this._s;var a,n,i;var s=new Uint8Array(16);s.set(e);for(var _e453=0;_e453<16;++_e453)s[_e453]^=t[_e453];for(var _e454=1;_e454<this._cyclesOfRepetition;_e454++){for(var _e455=0;_e455<16;++_e455)s[_e455]=r[s[_e455]];i=s[1];s[1]=s[5];s[5]=s[9];s[9]=s[13];s[13]=i;i=s[2];n=s[6];s[2]=s[10];s[6]=s[14];s[10]=i;s[14]=n;i=s[3];n=s[7];a=s[11];s[3]=s[15];s[7]=i;s[11]=n;s[15]=a;for(var _e456=0;_e456<16;_e456+=4){var _t339=s[_e456+0],_r282=s[_e456+1],_n180=s[_e456+2],_i150=s[_e456+3];a=_t339^_r282^_n180^_i150;s[_e456+0]^=a^this._mixCol[_t339^_r282];s[_e456+1]^=a^this._mixCol[_r282^_n180];s[_e456+2]^=a^this._mixCol[_n180^_i150];s[_e456+3]^=a^this._mixCol[_i150^_t339];}for(var _r283=0,_a222=16*_e454;_r283<16;++_r283,++_a222)s[_r283]^=t[_a222];}for(var _e457=0;_e457<16;++_e457)s[_e457]=r[s[_e457]];i=s[1];s[1]=s[5];s[5]=s[9];s[9]=s[13];s[13]=i;i=s[2];n=s[6];s[2]=s[10];s[6]=s[14];s[10]=i;s[14]=n;i=s[3];n=s[7];a=s[11];s[3]=s[15];s[7]=i;s[11]=n;s[15]=a;for(var _e458=0,_r284=this._keySize;_e458<16;++_e458,++_r284)s[_e458]^=t[_r284];return s;}},{key:\"_decryptBlock2\",value:function _decryptBlock2(e,t){var r=e.length;var a=this.buffer,n=this.bufferPosition;var i=[];var s=this.iv;for(var _t340=0;_t340<r;++_t340){a[n]=e[_t340];++n;if(n<16)continue;var _r285=this._decrypt(a,this._key);for(var _e459=0;_e459<16;++_e459)_r285[_e459]^=s[_e459];s=a;i.push(_r285);a=new Uint8Array(16);n=0;}this.buffer=a;this.bufferLength=n;this.iv=s;if(0===i.length)return new Uint8Array(0);var o=16*i.length;if(t){var _e460=i.at(-1);var _t341=_e460[15];if(_t341<=16){for(var _r286=15,_a223=16-_t341;_r286>=_a223;--_r286)if(_e460[_r286]!==_t341){_t341=0;break;}o-=_t341;i[i.length-1]=_e460.subarray(0,16-_t341);}}var c=new Uint8Array(o);for(var _e461=0,_t342=0,_r287=i.length;_e461<_r287;++_e461,_t342+=16)c.set(i[_e461],_t342);return c;}},{key:\"decryptBlock\",value:function decryptBlock(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;var a=e.length,n=this.buffer;var i=this.bufferPosition;if(r)this.iv=r;else{for(var _t343=0;i<16&&_t343<a;++_t343,++i)n[i]=e[_t343];if(i<16){this.bufferLength=i;return new Uint8Array(0);}this.iv=n;e=e.subarray(16);}this.buffer=new Uint8Array(16);this.bufferLength=0;this.decryptBlock=this._decryptBlock2;return this.decryptBlock(e,t);}},{key:\"encrypt\",value:function encrypt(e,t){var r=e.length;var a=this.buffer,n=this.bufferPosition;var i=[];t||(t=new Uint8Array(16));for(var _s101=0;_s101<r;++_s101){a[n]=e[_s101];++n;if(n<16)continue;for(var _e462=0;_e462<16;++_e462)a[_e462]^=t[_e462];var _r288=this._encrypt(a,this._key);t=_r288;i.push(_r288);a=new Uint8Array(16);n=0;}this.buffer=a;this.bufferLength=n;this.iv=t;if(0===i.length)return new Uint8Array(0);var s=16*i.length,o=new Uint8Array(s);for(var _e463=0,_t344=0,_r289=i.length;_e463<_r289;++_e463,_t344+=16)o.set(i[_e463],_t344);return o;}}]);return AESBaseCipher;}();var AES128Cipher=/*#__PURE__*/function(_AESBaseCipher){_inherits(AES128Cipher,_AESBaseCipher);function AES128Cipher(e){var _this93;_classCallCheck(this,AES128Cipher);_this93=_callSuper(this,AES128Cipher);_this93._cyclesOfRepetition=10;_this93._keySize=160;_this93._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]);_this93._key=_this93._expandKey(e);return _this93;}_createClass(AES128Cipher,[{key:\"_expandKey\",value:function _expandKey(e){var t=this._s,r=this._rcon,a=new Uint8Array(176);a.set(e);for(var _e464=16,_n181=1;_e464<176;++_n181){var _i151=a[_e464-3],_s102=a[_e464-2],_o68=a[_e464-1],_c48=a[_e464-4];_i151=t[_i151];_s102=t[_s102];_o68=t[_o68];_c48=t[_c48];_i151^=r[_n181];for(var _t345=0;_t345<4;++_t345){a[_e464]=_i151^=a[_e464-16];_e464++;a[_e464]=_s102^=a[_e464-16];_e464++;a[_e464]=_o68^=a[_e464-16];_e464++;a[_e464]=_c48^=a[_e464-16];_e464++;}}return a;}}]);return AES128Cipher;}(AESBaseCipher);t.AES128Cipher=AES128Cipher;var AES256Cipher=/*#__PURE__*/function(_AESBaseCipher2){_inherits(AES256Cipher,_AESBaseCipher2);function AES256Cipher(e){var _this94;_classCallCheck(this,AES256Cipher);_this94=_callSuper(this,AES256Cipher);_this94._cyclesOfRepetition=14;_this94._keySize=224;_this94._key=_this94._expandKey(e);return _this94;}_createClass(AES256Cipher,[{key:\"_expandKey\",value:function _expandKey(e){var t=this._s,r=new Uint8Array(240);r.set(e);var a,n,i,s,o=1;for(var _e465=32,_c49=1;_e465<240;++_c49){if(_e465%32==16){a=t[a];n=t[n];i=t[i];s=t[s];}else if(_e465%32==0){a=r[_e465-3];n=r[_e465-2];i=r[_e465-1];s=r[_e465-4];a=t[a];n=t[n];i=t[i];s=t[s];a^=o;(o<<=1)>=256&&(o=255&(27^o));}for(var _t346=0;_t346<4;++_t346){r[_e465]=a^=r[_e465-32];_e465++;r[_e465]=n^=r[_e465-32];_e465++;r[_e465]=i^=r[_e465-32];_e465++;r[_e465]=s^=r[_e465-32];_e465++;}}return r;}}]);return AES256Cipher;}(AESBaseCipher);t.AES256Cipher=AES256Cipher;var PDF17=/*#__PURE__*/function(){function PDF17(){_classCallCheck(this,PDF17);}_createClass(PDF17,[{key:\"checkOwnerPassword\",value:function checkOwnerPassword(e,t,r,n){var i=new Uint8Array(e.length+56);i.set(e,0);i.set(t,e.length);i.set(r,e.length+t.length);var s=o(i,0,i.length);return(0,a.isArrayEqual)(s,n);}},{key:\"checkUserPassword\",value:function checkUserPassword(e,t,r){var n=new Uint8Array(e.length+8);n.set(e,0);n.set(t,e.length);var i=o(n,0,n.length);return(0,a.isArrayEqual)(i,r);}},{key:\"getOwnerKey\",value:function getOwnerKey(e,t,r,a){var n=new Uint8Array(e.length+56);n.set(e,0);n.set(t,e.length);n.set(r,e.length+t.length);var i=o(n,0,n.length);return new AES256Cipher(i).decryptBlock(a,!1,new Uint8Array(16));}},{key:\"getUserKey\",value:function getUserKey(e,t,r){var a=new Uint8Array(e.length+8);a.set(e,0);a.set(t,e.length);var n=o(a,0,a.length);return new AES256Cipher(n).decryptBlock(r,!1,new Uint8Array(16));}}]);return PDF17;}();t.PDF17=PDF17;var l=function PDF20Closure(){function calculatePDF20Hash(e,t,r){var a=o(t,0,t.length).subarray(0,32),n=[0],i=0;for(;i<64||n.at(-1)>i-32;){var _t347=e.length+a.length+r.length,_s103=new Uint8Array(_t347);var _l33=0;_s103.set(e,_l33);_l33+=e.length;_s103.set(a,_l33);_l33+=a.length;_s103.set(r,_l33);var _h27=new Uint8Array(64*_t347);for(var _e466=0,_r290=0;_e466<64;_e466++,_r290+=_t347)_h27.set(_s103,_r290);n=new AES128Cipher(a.subarray(0,16)).encrypt(_h27,a.subarray(16,32));var u=0;for(var _e467=0;_e467<16;_e467++){u*=1;u%=3;u+=(n[_e467]>>>0)%3;u%=3;}0===u?a=o(n,0,n.length):1===u?a=calculateSHA384(n,0,n.length):2===u&&(a=c(n,0,n.length));i++;}return a.subarray(0,32);}return/*#__PURE__*/function(){function PDF20(){_classCallCheck(this,PDF20);}_createClass(PDF20,[{key:\"hash\",value:function hash(e,t,r){return calculatePDF20Hash(e,t,r);}},{key:\"checkOwnerPassword\",value:function checkOwnerPassword(e,t,r,n){var i=new Uint8Array(e.length+56);i.set(e,0);i.set(t,e.length);i.set(r,e.length+t.length);var s=calculatePDF20Hash(e,i,r);return(0,a.isArrayEqual)(s,n);}},{key:\"checkUserPassword\",value:function checkUserPassword(e,t,r){var n=new Uint8Array(e.length+8);n.set(e,0);n.set(t,e.length);var i=calculatePDF20Hash(e,n,[]);return(0,a.isArrayEqual)(i,r);}},{key:\"getOwnerKey\",value:function getOwnerKey(e,t,r,a){var n=new Uint8Array(e.length+56);n.set(e,0);n.set(t,e.length);n.set(r,e.length+t.length);var i=calculatePDF20Hash(e,n,r);return new AES256Cipher(i).decryptBlock(a,!1,new Uint8Array(16));}},{key:\"getUserKey\",value:function getUserKey(e,t,r){var a=new Uint8Array(e.length+8);a.set(e,0);a.set(t,e.length);var n=calculatePDF20Hash(e,a,[]);return new AES256Cipher(n).decryptBlock(r,!1,new Uint8Array(16));}}]);return PDF20;}();}();t.PDF20=l;var CipherTransform=/*#__PURE__*/function(){function CipherTransform(e,t){_classCallCheck(this,CipherTransform);this.StringCipherConstructor=e;this.StreamCipherConstructor=t;}_createClass(CipherTransform,[{key:\"createStream\",value:function createStream(e,t){var r=new this.StreamCipherConstructor();return new i.DecryptStream(e,t,function cipherTransformDecryptStream(e,t){return r.decryptBlock(e,t);});}},{key:\"decryptString\",value:function decryptString(e){var t=new this.StringCipherConstructor();var r=(0,a.stringToBytes)(e);r=t.decryptBlock(r,!0);return(0,a.bytesToString)(r);}},{key:\"encryptString\",value:function encryptString(e){var t=new this.StringCipherConstructor();if(t instanceof AESBaseCipher){var _context277;var _r291=16-e.length%16;e+=_repeatInstanceProperty(_context277=String.fromCharCode(_r291)).call(_context277,_r291);var _n182=new Uint8Array(16);if(\"undefined\"!=typeof crypto)crypto.getRandomValues(_n182);else for(var _e468=0;_e468<16;_e468++)_n182[_e468]=Math.floor(256*Math.random());var _i152=(0,a.stringToBytes)(e);_i152=t.encrypt(_i152,_n182);var _s104=new Uint8Array(16+_i152.length);_s104.set(_n182);_s104.set(_i152,16);return(0,a.bytesToString)(_s104);}var r=(0,a.stringToBytes)(e);r=t.encrypt(r);return(0,a.bytesToString)(r);}}]);return CipherTransform;}();var h=function CipherTransformFactoryClosure(){var e=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]);function prepareKeyData(t,r,a,n,i,o,c,l){var h=40+a.length+t.length,u=new Uint8Array(h);var d,f,g=0;if(r){f=Math.min(32,r.length);for(;g<f;++g)u[g]=r[g];}d=0;for(;g<32;)u[g++]=e[d++];for(d=0,f=a.length;d<f;++d)u[g++]=a[d];u[g++]=255&i;u[g++]=i>>8&255;u[g++]=i>>16&255;u[g++]=i>>>24&255;for(d=0,f=t.length;d<f;++d)u[g++]=t[d];if(o>=4&&!l){u[g++]=255;u[g++]=255;u[g++]=255;u[g++]=255;}var p=s(u,0,g);var m=c>>3;if(o>=3)for(d=0;d<50;++d)p=s(p,0,m);var b=p.subarray(0,m);var y,w;if(o>=3){for(g=0;g<32;++g)u[g]=e[g];for(d=0,f=t.length;d<f;++d)u[g++]=t[d];y=new ARCFourCipher(b);w=y.encryptBlock(s(u,0,g));f=b.length;var _r292=new Uint8Array(f);for(d=1;d<=19;++d){for(var _e469=0;_e469<f;++_e469)_r292[_e469]=b[_e469]^d;y=new ARCFourCipher(_r292);w=y.encryptBlock(w);}for(d=0,f=w.length;d<f;++d)if(n[d]!==w[d])return null;}else{y=new ARCFourCipher(b);w=y.encryptBlock(e);for(d=0,f=w.length;d<f;++d)if(n[d]!==w[d])return null;}return b;}var t=n.Name.get(\"Identity\");function buildObjectKey(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var n=new Uint8Array(r.length+9),i=r.length;var o;for(o=0;o<i;++o)n[o]=r[o];n[o++]=255&e;n[o++]=e>>8&255;n[o++]=e>>16&255;n[o++]=255&t;n[o++]=t>>8&255;if(a){n[o++]=115;n[o++]=65;n[o++]=108;n[o++]=84;}var c=s(n,0,o);return c.subarray(0,Math.min(r.length+5,16));}function buildCipherConstructor(e,t,r,i,s){if(!(t instanceof n.Name))throw new a.FormatError(\"Invalid crypt filter name.\");var o=e.get(t.name);var c;null!=o&&(c=o.get(\"CFM\"));if(!c||\"None\"===c.name)return function cipherTransformFactoryBuildCipherConstructorNone(){return new NullCipher();};if(\"V2\"===c.name)return function cipherTransformFactoryBuildCipherConstructorV2(){return new ARCFourCipher(buildObjectKey(r,i,s,!1));};if(\"AESV2\"===c.name)return function cipherTransformFactoryBuildCipherConstructorAESV2(){return new AES128Cipher(buildObjectKey(r,i,s,!0));};if(\"AESV3\"===c.name)return function cipherTransformFactoryBuildCipherConstructorAESV3(){return new AES256Cipher(s);};throw new a.FormatError(\"Unknown crypto method\");}return/*#__PURE__*/function(){function CipherTransformFactory(r,i,o){_classCallCheck(this,CipherTransformFactory);var c=r.get(\"Filter\");if(!(0,n.isName)(c,\"Standard\"))throw new a.FormatError(\"unknown encryption method\");this.filterName=c.name;this.dict=r;var h=r.get(\"V\");if(!_Number$isInteger(h)||1!==h&&2!==h&&4!==h&&5!==h)throw new a.FormatError(\"unsupported encryption algorithm\");this.algorithm=h;var u=r.get(\"Length\");if(!u)if(h<=3)u=40;else{var _e470=r.get(\"CF\"),_t348=r.get(\"StmF\");if(_e470 instanceof n.Dict&&_t348 instanceof n.Name){_e470.suppressEncryption=!0;var _r293=_e470.get(_t348.name);u=_r293&&_r293.get(\"Length\")||128;u<40&&(u<<=3);}}if(!_Number$isInteger(u)||u<40||u%8!=0)throw new a.FormatError(\"invalid key length\");var d=(0,a.stringToBytes)(r.get(\"O\")).subarray(0,32),f=(0,a.stringToBytes)(r.get(\"U\")).subarray(0,32),g=r.get(\"P\"),p=r.get(\"R\"),m=(4===h||5===h)&&!1!==r.get(\"EncryptMetadata\");this.encryptMetadata=m;var b=(0,a.stringToBytes)(i);var y,w;if(o){if(6===p)try{o=(0,a.utf8StringToString)(o);}catch(e){(0,a.warn)(\"CipherTransformFactory: Unable to convert UTF8 encoded password.\");}y=(0,a.stringToBytes)(o);}if(5!==h)w=prepareKeyData(b,y,d,f,g,p,u,m);else{var _e471=(0,a.stringToBytes)(r.get(\"O\")).subarray(32,40),_t349=(0,a.stringToBytes)(r.get(\"O\")).subarray(40,48),_n183=(0,a.stringToBytes)(r.get(\"U\")).subarray(0,48),_i153=(0,a.stringToBytes)(r.get(\"U\")).subarray(32,40),_s105=(0,a.stringToBytes)(r.get(\"U\")).subarray(40,48),_o69=(0,a.stringToBytes)(r.get(\"OE\")),_c50=(0,a.stringToBytes)(r.get(\"UE\"));(0,a.stringToBytes)(r.get(\"Perms\"));w=function createEncryptionKey20(e,t,r,a,n,i,s,o,c,h,u,d){if(t){var _e472=Math.min(127,t.length);t=t.subarray(0,_e472);}else t=[];var f;f=6===e?new l():new PDF17();return f.checkUserPassword(t,o,s)?f.getUserKey(t,c,u):t.length&&f.checkOwnerPassword(t,a,i,r)?f.getOwnerKey(t,n,i,h):null;}(p,y,d,_e471,_t349,_n183,f,_i153,_s105,_o69,_c50);}if(!w&&!o)throw new a.PasswordException(\"No password given\",a.PasswordResponses.NEED_PASSWORD);if(!w&&o){var _t350=function decodeUserPassword(t,r,a,n){var i=new Uint8Array(32);var o=0;var c=Math.min(32,t.length);for(;o<c;++o)i[o]=t[o];var l=0;for(;o<32;)i[o++]=e[l++];var h=s(i,0,o);var u=n>>3;if(a>=3)for(l=0;l<50;++l)h=s(h,0,h.length);var d,f;if(a>=3){f=r;var _e473=new Uint8Array(u);for(l=19;l>=0;l--){for(var _t351=0;_t351<u;++_t351)_e473[_t351]=h[_t351]^l;d=new ARCFourCipher(_e473);f=d.encryptBlock(f);}}else{d=new ARCFourCipher(h.subarray(0,u));f=d.encryptBlock(r);}return f;}(y,d,p,u);w=prepareKeyData(b,_t350,d,f,g,p,u,m);}if(!w)throw new a.PasswordException(\"Incorrect Password\",a.PasswordResponses.INCORRECT_PASSWORD);this.encryptionKey=w;if(h>=4){var _e474=r.get(\"CF\");_e474 instanceof n.Dict&&(_e474.suppressEncryption=!0);this.cf=_e474;this.stmf=r.get(\"StmF\")||t;this.strf=r.get(\"StrF\")||t;this.eff=r.get(\"EFF\")||this.stmf;}}_createClass(CipherTransformFactory,[{key:\"createCipherTransform\",value:function createCipherTransform(e,t){if(4===this.algorithm||5===this.algorithm)return new CipherTransform(buildCipherConstructor(this.cf,this.strf,e,t,this.encryptionKey),buildCipherConstructor(this.cf,this.stmf,e,t,this.encryptionKey));var r=buildObjectKey(e,t,this.encryptionKey,!1),a=function buildCipherCipherConstructor(){return new ARCFourCipher(r);};return new CipherTransform(a,a);}}]);return CipherTransformFactory;}();}();t.CipherTransformFactory=h;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.DecryptStream=void 0;var a=r(144);var DecryptStream=/*#__PURE__*/function(_a$DecodeStream9){_inherits(DecryptStream,_a$DecodeStream9);function DecryptStream(e,t,r){var _this95;_classCallCheck(this,DecryptStream);_this95=_callSuper(this,DecryptStream,[t]);_this95.str=e;_this95.dict=e.dict;_this95.decrypt=r;_this95.nextChunk=null;_this95.initialized=!1;return _this95;}_createClass(DecryptStream,[{key:\"readBlock\",value:function readBlock(){var e;if(this.initialized)e=this.nextChunk;else{e=this.str.getBytes(512);this.initialized=!0;}if(!e||0===e.length){this.eof=!0;return;}this.nextChunk=this.str.getBytes(512);var t=this.nextChunk&&this.nextChunk.length>0;e=(0,this.decrypt)(e,!t);var r=this.bufferLength;var a=e.length,n=this.ensureBuffer(r+a);for(var _t352=0;_t352<a;_t352++)n[r++]=e[_t352];this.bufferLength=r;}}]);return DecryptStream;}(a.DecodeStream);t.DecryptStream=DecryptStream;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.Catalog=void 0;var a=r(131),n=r(2),i=r(130),s=r(195),o=r(132),c=r(196),l=r(139),h=r(197),u=r(184),d=r(198),f=r(199);function fetchDestination(e){e instanceof i.Dict&&(e=e.get(\"D\"));return Array.isArray(e)?e:null;}var Catalog=/*#__PURE__*/function(){function Catalog(e,t){_classCallCheck(this,Catalog);this.pdfManager=e;this.xref=t;this._catDict=t.getCatalogObj();if(!(this._catDict instanceof i.Dict))throw new n.FormatError(\"Catalog object is not a dictionary.\");this.toplevelPagesDict;this._actualNumPages=null;this.fontCache=new i.RefSetCache();this.builtInCMapCache=new _Map();this.standardFontDataCache=new _Map();this.globalImageCache=new u.GlobalImageCache();this.pageKidsCountCache=new i.RefSetCache();this.pageIndexCache=new i.RefSetCache();this.nonBlendModesSet=new i.RefSet();}_createClass(Catalog,[{key:\"version\",get:function get(){var e=this._catDict.get(\"Version\");return(0,n.shadow)(this,\"version\",e instanceof i.Name?e.name:null);}},{key:\"lang\",get:function get(){var e=this._catDict.get(\"Lang\");return(0,n.shadow)(this,\"lang\",\"string\"==typeof e?(0,n.stringToPDFString)(e):null);}},{key:\"needsRendering\",get:function get(){var e=this._catDict.get(\"NeedsRendering\");return(0,n.shadow)(this,\"needsRendering\",\"boolean\"==typeof e&&e);}},{key:\"collection\",get:function get(){var e=null;try{var _t353=this._catDict.get(\"Collection\");_t353 instanceof i.Dict&&_t353.size>0&&(e=_t353);}catch(e){if(e instanceof a.MissingDataException)throw e;(0,n.info)(\"Cannot fetch Collection entry; assuming no collection is present.\");}return(0,n.shadow)(this,\"collection\",e);}},{key:\"acroForm\",get:function get(){var e=null;try{var _t354=this._catDict.get(\"AcroForm\");_t354 instanceof i.Dict&&_t354.size>0&&(e=_t354);}catch(e){if(e instanceof a.MissingDataException)throw e;(0,n.info)(\"Cannot fetch AcroForm entry; assuming no forms are present.\");}return(0,n.shadow)(this,\"acroForm\",e);}},{key:\"acroFormRef\",get:function get(){var e=this._catDict.getRaw(\"AcroForm\");return(0,n.shadow)(this,\"acroFormRef\",e instanceof i.Ref?e:null);}},{key:\"metadata\",get:function get(){var e=this._catDict.getRaw(\"Metadata\");if(!(e instanceof i.Ref))return(0,n.shadow)(this,\"metadata\",null);var t=null;try{var _r294=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),_a224=this.xref.fetch(e,_r294);if(_a224 instanceof o.BaseStream&&_a224.dict instanceof i.Dict){var _e475=_a224.dict.get(\"Type\"),_r295=_a224.dict.get(\"Subtype\");if((0,i.isName)(_e475,\"Metadata\")&&(0,i.isName)(_r295,\"XML\")){var _e476=(0,n.stringToUTF8String)(_a224.getString());_e476&&(t=new d.MetadataParser(_e476).serializable);}}}catch(e){if(e instanceof a.MissingDataException)throw e;(0,n.info)(\"Skipping invalid Metadata: \\\"\".concat(e,\"\\\".\"));}return(0,n.shadow)(this,\"metadata\",t);}},{key:\"markInfo\",get:function get(){var e=null;try{e=this._readMarkInfo();}catch(e){if(e instanceof a.MissingDataException)throw e;(0,n.warn)(\"Unable to read mark info.\");}return(0,n.shadow)(this,\"markInfo\",e);}},{key:\"_readMarkInfo\",value:function _readMarkInfo(){var e=this._catDict.get(\"MarkInfo\");if(!(e instanceof i.Dict))return null;var t={Marked:!1,UserProperties:!1,Suspects:!1};for(var _r296 in t){var _a225=e.get(_r296);\"boolean\"==typeof _a225&&(t[_r296]=_a225);}return t;}},{key:\"structTreeRoot\",get:function get(){var e=null;try{e=this._readStructTreeRoot();}catch(e){if(e instanceof a.MissingDataException)throw e;(0,n.warn)(\"Unable read to structTreeRoot info.\");}return(0,n.shadow)(this,\"structTreeRoot\",e);}},{key:\"_readStructTreeRoot\",value:function _readStructTreeRoot(){var e=this._catDict.get(\"StructTreeRoot\");if(!(e instanceof i.Dict))return null;var t=new f.StructTreeRoot(e);t.init();return t;}},{key:\"toplevelPagesDict\",get:function get(){var e=this._catDict.get(\"Pages\");if(!(e instanceof i.Dict))throw new n.FormatError(\"Invalid top-level pages dictionary.\");return(0,n.shadow)(this,\"toplevelPagesDict\",e);}},{key:\"documentOutline\",get:function get(){var e=null;try{e=this._readDocumentOutline();}catch(e){if(e instanceof a.MissingDataException)throw e;(0,n.warn)(\"Unable to read document outline.\");}return(0,n.shadow)(this,\"documentOutline\",e);}},{key:\"_readDocumentOutline\",value:function _readDocumentOutline(){var e=this._catDict.get(\"Outlines\");if(!(e instanceof i.Dict))return null;e=e.getRaw(\"First\");if(!(e instanceof i.Ref))return null;var t={items:[]},r=[{obj:e,parent:t}],a=new i.RefSet();a.put(e);var s=this.xref,o=new Uint8ClampedArray(3);for(;r.length>0;){var _t355=r.shift(),_c51=s.fetchIfRef(_t355.obj);if(null===_c51)continue;if(!_c51.has(\"Title\"))throw new n.FormatError(\"Invalid outline item encountered.\");var _h28={url:null,dest:null};Catalog.parseDestDictionary({destDict:_c51,resultObj:_h28,docBaseUrl:this.pdfManager.docBaseUrl});var _u15=_c51.get(\"Title\"),_d14=_c51.get(\"F\")||0,_f11=_c51.getArray(\"C\"),_g20=_c51.get(\"Count\");var _p14=o;!Array.isArray(_f11)||3!==_f11.length||0===_f11[0]&&0===_f11[1]&&0===_f11[2]||(_p14=l.ColorSpace.singletons.rgb.getRgb(_f11,0));var _m11={dest:_h28.dest,url:_h28.url,unsafeUrl:_h28.unsafeUrl,newWindow:_h28.newWindow,title:(0,n.stringToPDFString)(_u15),color:_p14,count:_Number$isInteger(_g20)?_g20:void 0,bold:!!(2&_d14),italic:!!(1&_d14),items:[]};_t355.parent.items.push(_m11);e=_c51.getRaw(\"First\");if(e instanceof i.Ref&&!a.has(e)){r.push({obj:e,parent:_m11});a.put(e);}e=_c51.getRaw(\"Next\");if(e instanceof i.Ref&&!a.has(e)){r.push({obj:e,parent:_t355.parent});a.put(e);}}return t.items.length>0?t.items:null;}},{key:\"permissions\",get:function get(){var e=null;try{e=this._readPermissions();}catch(e){if(e instanceof a.MissingDataException)throw e;(0,n.warn)(\"Unable to read permissions.\");}return(0,n.shadow)(this,\"permissions\",e);}},{key:\"_readPermissions\",value:function _readPermissions(){var e=this.xref.trailer.get(\"Encrypt\");if(!(e instanceof i.Dict))return null;var t=e.get(\"P\");if(\"number\"!=typeof t)return null;t+=Math.pow(2,32);var r=[];for(var _e477 in n.PermissionFlag){var _a226=n.PermissionFlag[_e477];t&_a226&&r.push(_a226);}return r;}},{key:\"optionalContentConfig\",get:function get(){var e=null;try{var _t356=this._catDict.get(\"OCProperties\");if(!_t356)return(0,n.shadow)(this,\"optionalContentConfig\",null);var _r297=_t356.get(\"D\");if(!_r297)return(0,n.shadow)(this,\"optionalContentConfig\",null);var _a227=_t356.get(\"OCGs\");if(!Array.isArray(_a227))return(0,n.shadow)(this,\"optionalContentConfig\",null);var _s106=[],_o70=[];var _iterator98=_createForOfIteratorHelper(_a227),_step98;try{for(_iterator98.s();!(_step98=_iterator98.n()).done;){var _e478=_step98.value;if(!(_e478 instanceof i.Ref))continue;_o70.push(_e478);var _t357=this.xref.fetchIfRef(_e478);_s106.push({id:_e478.toString(),name:\"string\"==typeof _t357.get(\"Name\")?(0,n.stringToPDFString)(_t357.get(\"Name\")):null,intent:\"string\"==typeof _t357.get(\"Intent\")?(0,n.stringToPDFString)(_t357.get(\"Intent\")):null});}}catch(err){_iterator98.e(err);}finally{_iterator98.f();}e=this._readOptionalContentConfig(_r297,_o70);e.groups=_s106;}catch(e){if(e instanceof a.MissingDataException)throw e;(0,n.warn)(\"Unable to read optional content config: \".concat(e));}return(0,n.shadow)(this,\"optionalContentConfig\",e);}},{key:\"_readOptionalContentConfig\",value:function _readOptionalContentConfig(e,t){function parseOnOff(e){var r=[];if(Array.isArray(e)){var _iterator99=_createForOfIteratorHelper(e),_step99;try{for(_iterator99.s();!(_step99=_iterator99.n()).done;){var _a228=_step99.value;_a228 instanceof i.Ref&&_includesInstanceProperty(t).call(t,_a228)&&r.push(_a228.toString());}}catch(err){_iterator99.e(err);}finally{_iterator99.f();}}return r;}function parseOrder(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Array.isArray(e))return null;var n=[];var _iterator100=_createForOfIteratorHelper(e),_step100;try{for(_iterator100.s();!(_step100=_iterator100.n()).done;){var _s107=_step100.value;if(_s107 instanceof i.Ref&&_includesInstanceProperty(t).call(t,_s107)){a.put(_s107);n.push(_s107.toString());continue;}var _e479=parseNestedOrder(_s107,r);_e479&&n.push(_e479);}}catch(err){_iterator100.e(err);}finally{_iterator100.f();}if(r>0)return n;var s=[];var _iterator101=_createForOfIteratorHelper(t),_step101;try{for(_iterator101.s();!(_step101=_iterator101.n()).done;){var _e480=_step101.value;a.has(_e480)||s.push(_e480.toString());}}catch(err){_iterator101.e(err);}finally{_iterator101.f();}s.length&&n.push({name:null,order:s});return n;}function parseNestedOrder(e,t){if(++t>s){(0,n.warn)(\"parseNestedOrder - reached MAX_NESTED_LEVELS.\");return null;}var a=r.fetchIfRef(e);if(!Array.isArray(a))return null;var i=r.fetchIfRef(a[0]);if(\"string\"!=typeof i)return null;var o=parseOrder(_sliceInstanceProperty(a).call(a,1),t);return o&&o.length?{name:(0,n.stringToPDFString)(i),order:o}:null;}var r=this.xref,a=new i.RefSet(),s=10;return{name:\"string\"==typeof e.get(\"Name\")?(0,n.stringToPDFString)(e.get(\"Name\")):null,creator:\"string\"==typeof e.get(\"Creator\")?(0,n.stringToPDFString)(e.get(\"Creator\")):null,baseState:e.get(\"BaseState\")instanceof i.Name?e.get(\"BaseState\").name:null,on:parseOnOff(e.get(\"ON\")),off:parseOnOff(e.get(\"OFF\")),order:parseOrder(e.get(\"Order\")),groups:null};}},{key:\"setActualNumPages\",value:function setActualNumPages(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._actualNumPages=e;}},{key:\"hasActualNumPages\",get:function get(){return null!==this._actualNumPages;}},{key:\"_pagesCount\",get:function get(){var e=this.toplevelPagesDict.get(\"Count\");if(!_Number$isInteger(e))throw new n.FormatError(\"Page count in top-level pages dictionary is not an integer.\");return(0,n.shadow)(this,\"_pagesCount\",e);}},{key:\"numPages\",get:function get(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount;}},{key:\"destinations\",get:function get(){var e=this._readDests(),t=Object.create(null);if(e instanceof s.NameTree){var _iterator102=_createForOfIteratorHelper(e.getAll()),_step102;try{for(_iterator102.s();!(_step102=_iterator102.n()).done;){var _step102$value=_slicedToArray(_step102.value,2),_r298=_step102$value[0],_a229=_step102$value[1];var _e481=fetchDestination(_a229);_e481&&(t[(0,n.stringToPDFString)(_r298)]=_e481);}}catch(err){_iterator102.e(err);}finally{_iterator102.f();}}else e instanceof i.Dict&&e.forEach(function(e,r){var a=fetchDestination(r);a&&(t[e]=a);});return(0,n.shadow)(this,\"destinations\",t);}},{key:\"getDestination\",value:function getDestination(e){var t=this._readDests();if(t instanceof s.NameTree){var _r299=fetchDestination(t.get(e));if(_r299)return _r299;var _a230=this.destinations[e];if(_a230){(0,n.warn)(\"Found \\\"\".concat(e,\"\\\" at an incorrect position in the NameTree.\"));return _a230;}}else if(t instanceof i.Dict){var _r300=fetchDestination(t.get(e));if(_r300)return _r300;}return null;}},{key:\"_readDests\",value:function _readDests(){var e=this._catDict.get(\"Names\");return e&&e.has(\"Dests\")?new s.NameTree(e.getRaw(\"Dests\"),this.xref):this._catDict.has(\"Dests\")?this._catDict.get(\"Dests\"):void 0;}},{key:\"pageLabels\",get:function get(){var e=null;try{e=this._readPageLabels();}catch(e){if(e instanceof a.MissingDataException)throw e;(0,n.warn)(\"Unable to read page labels.\");}return(0,n.shadow)(this,\"pageLabels\",e);}},{key:\"_readPageLabels\",value:function _readPageLabels(){var _context278;var e=this._catDict.getRaw(\"PageLabels\");if(!e)return null;var t=new Array(this.numPages);var r=null,o=\"\";var c=new s.NumberTree(e,this.xref).getAll();var l=\"\",h=1;for(var _e482=0,_s108=this.numPages;_e482<_s108;_e482++){var _s109=c.get(_e482);if(void 0!==_s109){if(!(_s109 instanceof i.Dict))throw new n.FormatError(\"PageLabel is not a dictionary.\");if(_s109.has(\"Type\")&&!(0,i.isName)(_s109.get(\"Type\"),\"PageLabel\"))throw new n.FormatError(\"Invalid type in PageLabel dictionary.\");if(_s109.has(\"S\")){var _e483=_s109.get(\"S\");if(!(_e483 instanceof i.Name))throw new n.FormatError(\"Invalid style in PageLabel dictionary.\");r=_e483.name;}else r=null;if(_s109.has(\"P\")){var _e484=_s109.get(\"P\");if(\"string\"!=typeof _e484)throw new n.FormatError(\"Invalid prefix in PageLabel dictionary.\");o=(0,n.stringToPDFString)(_e484);}else o=\"\";if(_s109.has(\"St\")){var _e485=_s109.get(\"St\");if(!(_Number$isInteger(_e485)&&_e485>=1))throw new n.FormatError(\"Invalid start in PageLabel dictionary.\");h=_e485;}else h=1;}switch(r){case\"D\":l=h;break;case\"R\":case\"r\":l=(0,a.toRomanNumerals)(h,\"r\"===r);break;case\"A\":case\"a\":var _e486=26,_t358=65,_i154=97,_s110=\"a\"===r?_i154:_t358,_o71=h-1;l=_repeatInstanceProperty(_context278=String.fromCharCode(_s110+_o71%_e486)).call(_context278,Math.floor(_o71/_e486)+1);break;default:if(r)throw new n.FormatError(\"Invalid style \\\"\".concat(r,\"\\\" in PageLabel dictionary.\"));l=\"\";}t[_e482]=o+l;h++;}return t;}},{key:\"pageLayout\",get:function get(){var e=this._catDict.get(\"PageLayout\");var t=\"\";if(e instanceof i.Name)switch(e.name){case\"SinglePage\":case\"OneColumn\":case\"TwoColumnLeft\":case\"TwoColumnRight\":case\"TwoPageLeft\":case\"TwoPageRight\":t=e.name;}return(0,n.shadow)(this,\"pageLayout\",t);}},{key:\"pageMode\",get:function get(){var e=this._catDict.get(\"PageMode\");var t=\"UseNone\";if(e instanceof i.Name)switch(e.name){case\"UseNone\":case\"UseOutlines\":case\"UseThumbs\":case\"FullScreen\":case\"UseOC\":case\"UseAttachments\":t=e.name;}return(0,n.shadow)(this,\"pageMode\",t);}},{key:\"viewerPreferences\",get:function get(){var _this96=this;var e=this._catDict.get(\"ViewerPreferences\");if(!(e instanceof i.Dict))return(0,n.shadow)(this,\"viewerPreferences\",null);var t=null;var _iterator103=_createForOfIteratorHelper(e.getKeys()),_step103;try{for(_iterator103.s();!(_step103=_iterator103.n()).done;){var _context279;var _r301=_step103.value;var _a231=e.get(_r301);var _s111=void 0;switch(_r301){case\"HideToolbar\":case\"HideMenubar\":case\"HideWindowUI\":case\"FitWindow\":case\"CenterWindow\":case\"DisplayDocTitle\":case\"PickTrayByPDFSize\":\"boolean\"==typeof _a231&&(_s111=_a231);break;case\"NonFullScreenPageMode\":if(_a231 instanceof i.Name)switch(_a231.name){case\"UseNone\":case\"UseOutlines\":case\"UseThumbs\":case\"UseOC\":_s111=_a231.name;break;default:_s111=\"UseNone\";}break;case\"Direction\":if(_a231 instanceof i.Name)switch(_a231.name){case\"L2R\":case\"R2L\":_s111=_a231.name;break;default:_s111=\"L2R\";}break;case\"ViewArea\":case\"ViewClip\":case\"PrintArea\":case\"PrintClip\":if(_a231 instanceof i.Name)switch(_a231.name){case\"MediaBox\":case\"CropBox\":case\"BleedBox\":case\"TrimBox\":case\"ArtBox\":_s111=_a231.name;break;default:_s111=\"CropBox\";}break;case\"PrintScaling\":if(_a231 instanceof i.Name)switch(_a231.name){case\"None\":case\"AppDefault\":_s111=_a231.name;break;default:_s111=\"AppDefault\";}break;case\"Duplex\":if(_a231 instanceof i.Name)switch(_a231.name){case\"Simplex\":case\"DuplexFlipShortEdge\":case\"DuplexFlipLongEdge\":_s111=_a231.name;break;default:_s111=\"None\";}break;case\"PrintPageRange\":if(Array.isArray(_a231)&&_a231.length%2==0){_a231.every(function(e,t,r){return _Number$isInteger(e)&&e>0&&(0===t||e>=r[t-1])&&e<=_this96.numPages;})&&(_s111=_a231);}break;case\"NumCopies\":_Number$isInteger(_a231)&&_a231>0&&(_s111=_a231);break;default:(0,n.warn)(\"Ignoring non-standard key in ViewerPreferences: \".concat(_r301,\".\"));continue;}if(void 0!==_s111){t||(t=Object.create(null));t[_r301]=_s111;}else(0,n.warn)(_concatInstanceProperty(_context279=\"Bad value, for key \\\"\".concat(_r301,\"\\\", in ViewerPreferences: \")).call(_context279,_a231,\".\"));}}catch(err){_iterator103.e(err);}finally{_iterator103.f();}return(0,n.shadow)(this,\"viewerPreferences\",t);}},{key:\"openAction\",get:function get(){var e=this._catDict.get(\"OpenAction\"),t=Object.create(null);if(e instanceof i.Dict){var _r302=new i.Dict(this.xref);_r302.set(\"A\",e);var _a232={url:null,dest:null,action:null};Catalog.parseDestDictionary({destDict:_r302,resultObj:_a232});Array.isArray(_a232.dest)?t.dest=_a232.dest:_a232.action&&(t.action=_a232.action);}else Array.isArray(e)&&(t.dest=e);return(0,n.shadow)(this,\"openAction\",(0,n.objectSize)(t)>0?t:null);}},{key:\"attachments\",get:function get(){var e=this._catDict.get(\"Names\");var t=null;if(e instanceof i.Dict&&e.has(\"EmbeddedFiles\")){var _r303=new s.NameTree(e.getRaw(\"EmbeddedFiles\"),this.xref);var _iterator104=_createForOfIteratorHelper(_r303.getAll()),_step104;try{for(_iterator104.s();!(_step104=_iterator104.n()).done;){var _step104$value=_slicedToArray(_step104.value,2),_e487=_step104$value[0],_a233=_step104$value[1];var _r304=new h.FileSpec(_a233,this.xref);t||(t=Object.create(null));t[(0,n.stringToPDFString)(_e487)]=_r304.serializable;}}catch(err){_iterator104.e(err);}finally{_iterator104.f();}}return(0,n.shadow)(this,\"attachments\",t);}},{key:\"xfaImages\",get:function get(){var e=this._catDict.get(\"Names\");var t=null;if(e instanceof i.Dict&&e.has(\"XFAImages\")){var _r305=new s.NameTree(e.getRaw(\"XFAImages\"),this.xref);var _iterator105=_createForOfIteratorHelper(_r305.getAll()),_step105;try{for(_iterator105.s();!(_step105=_iterator105.n()).done;){var _step105$value=_slicedToArray(_step105.value,2),_e488=_step105$value[0],_a234=_step105$value[1];t||(t=new i.Dict(this.xref));t.set((0,n.stringToPDFString)(_e488),_a234);}}catch(err){_iterator105.e(err);}finally{_iterator105.f();}}return(0,n.shadow)(this,\"xfaImages\",t);}},{key:\"_collectJavaScript\",value:function _collectJavaScript(){var e=this._catDict.get(\"Names\");var t=null;function appendIfJavaScriptDict(e,r){if(!(r instanceof i.Dict))return;if(!(0,i.isName)(r.get(\"S\"),\"JavaScript\"))return;var a=r.get(\"JS\");if(a instanceof o.BaseStream)a=a.getString();else if(\"string\"!=typeof a)return;null===t&&(t=new _Map());a=(0,n.stringToPDFString)(a).replace(/\\u0000/g,\"\");t.set(e,a);}if(e instanceof i.Dict&&e.has(\"JavaScript\")){var _t359=new s.NameTree(e.getRaw(\"JavaScript\"),this.xref);var _iterator106=_createForOfIteratorHelper(_t359.getAll()),_step106;try{for(_iterator106.s();!(_step106=_iterator106.n()).done;){var _step106$value=_slicedToArray(_step106.value,2),_e489=_step106$value[0],_r306=_step106$value[1];appendIfJavaScriptDict((0,n.stringToPDFString)(_e489),_r306);}}catch(err){_iterator106.e(err);}finally{_iterator106.f();}}var r=this._catDict.get(\"OpenAction\");r&&appendIfJavaScriptDict(\"OpenAction\",r);return t;}},{key:\"javaScript\",get:function get(){var e=this._collectJavaScript();return(0,n.shadow)(this,\"javaScript\",e?_toConsumableArray(_valuesInstanceProperty(e).call(e)):null);}},{key:\"jsActions\",get:function get(){var e=this._collectJavaScript();var t=(0,a.collectActions)(this.xref,this._catDict,n.DocumentActionEventType);if(e){t||(t=Object.create(null));var _iterator107=_createForOfIteratorHelper(e),_step107;try{for(_iterator107.s();!(_step107=_iterator107.n()).done;){var _step107$value=_slicedToArray(_step107.value,2),_r307=_step107$value[0],_a235=_step107$value[1];_r307 in t?t[_r307].push(_a235):t[_r307]=[_a235];}}catch(err){_iterator107.e(err);}finally{_iterator107.f();}}return(0,n.shadow)(this,\"jsActions\",t);}},{key:\"fontFallback\",value:function(){var _fontFallback=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee52(e,t){var r,_iterator108,_step108,_a236;return _regeneratorRuntime.wrap(function _callee52$(_context280){while(1)switch(_context280.prev=_context280.next){case 0:_context280.next=2;return _Promise.all(this.fontCache);case 2:r=_context280.sent;_iterator108=_createForOfIteratorHelper(r);_context280.prev=4;_iterator108.s();case 6:if((_step108=_iterator108.n()).done){_context280.next=13;break;}_a236=_step108.value;if(!(_a236.loadedName===e)){_context280.next=11;break;}_a236.fallback(t);return _context280.abrupt(\"return\");case 11:_context280.next=6;break;case 13:_context280.next=18;break;case 15:_context280.prev=15;_context280.t0=_context280[\"catch\"](4);_iterator108.e(_context280.t0);case 18:_context280.prev=18;_iterator108.f();return _context280.finish(18);case 21:case\"end\":return _context280.stop();}},_callee52,this,[[4,15,18,21]]);}));function fontFallback(_x119,_x120){return _fontFallback.apply(this,arguments);}return fontFallback;}()},{key:\"cleanup\",value:function(){var _cleanup2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee53(){var e,t,_iterator109,_step109,_e490,_args54=arguments;return _regeneratorRuntime.wrap(function _callee53$(_context281){while(1)switch(_context281.prev=_context281.next){case 0:e=_args54.length>0&&void 0!==_args54[0]&&_args54[0];(0,c.clearGlobalCaches)();this.globalImageCache.clear(e);this.pageKidsCountCache.clear();this.pageIndexCache.clear();this.nonBlendModesSet.clear();_context281.next=8;return _Promise.all(this.fontCache);case 8:t=_context281.sent;_iterator109=_createForOfIteratorHelper(t);try{for(_iterator109.s();!(_step109=_iterator109.n()).done;){_e490=_step109.value.dict;delete _e490.cacheKey;}}catch(err){_iterator109.e(err);}finally{_iterator109.f();}this.fontCache.clear();this.builtInCMapCache.clear();this.standardFontDataCache.clear();case 14:case\"end\":return _context281.stop();}},_callee53,this);}));function cleanup(){return _cleanup2.apply(this,arguments);}return cleanup;}()},{key:\"getPageDict\",value:function(){var _getPageDict=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee54(e){var t,r,a,s,o,c,l,_a237,_h29,_u16,_t360,_h30,_u17,_d15,_t361,_e491;return _regeneratorRuntime.wrap(function _callee54$(_context282){while(1)switch(_context282.prev=_context282.next){case 0:t=[this.toplevelPagesDict],r=new i.RefSet(),a=this._catDict.getRaw(\"Pages\");a instanceof i.Ref&&r.put(a);s=this.xref,o=this.pageKidsCountCache,c=this.pageIndexCache;l=0;case 4:if(!t.length){_context282.next=69;break;}_a237=t.pop();if(!(_a237 instanceof i.Ref)){_context282.next=33;break;}_h29=o.get(_a237);if(!(_h29>=0&&l+_h29<=e)){_context282.next=11;break;}l+=_h29;return _context282.abrupt(\"continue\",67);case 11:if(!r.has(_a237)){_context282.next=13;break;}throw new n.FormatError(\"Pages tree contains circular reference.\");case 13:r.put(_a237);_context282.next=16;return s.fetchAsync(_a237);case 16:_u16=_context282.sent;if(!(_u16 instanceof i.Dict)){_context282.next=31;break;}_t360=_u16.getRaw(\"Type\");_context282.t0=_t360 instanceof i.Ref;if(!_context282.t0){_context282.next=24;break;}_context282.next=23;return s.fetchAsync(_t360);case 23:_t360=_context282.sent;case 24:if(!((0,i.isName)(_t360,\"Page\")||!_u16.has(\"Kids\"))){_context282.next=31;break;}o.has(_a237)||o.put(_a237,1);c.has(_a237)||c.put(_a237,l);if(!(l===e)){_context282.next=29;break;}return _context282.abrupt(\"return\",[_u16,_a237]);case 29:l++;return _context282.abrupt(\"continue\",67);case 31:t.push(_u16);return _context282.abrupt(\"continue\",67);case 33:if(_a237 instanceof i.Dict){_context282.next=35;break;}throw new n.FormatError(\"Page dictionary kid reference points to wrong type of object.\");case 35:_h30=_a237.objId;_u17=_a237.getRaw(\"Count\");_context282.t1=_u17 instanceof i.Ref;if(!_context282.t1){_context282.next=42;break;}_context282.next=41;return s.fetchAsync(_u17);case 41:_u17=_context282.sent;case 42:if(!(_Number$isInteger(_u17)&&_u17>=0)){_context282.next=47;break;}_h30&&!o.has(_h30)&&o.put(_h30,_u17);if(!(l+_u17<=e)){_context282.next=47;break;}l+=_u17;return _context282.abrupt(\"continue\",67);case 47:_d15=_a237.getRaw(\"Kids\");_context282.t2=_d15 instanceof i.Ref;if(!_context282.t2){_context282.next=53;break;}_context282.next=52;return s.fetchAsync(_d15);case 52:_d15=_context282.sent;case 53:if(Array.isArray(_d15)){_context282.next=66;break;}_t361=_a237.getRaw(\"Type\");_context282.t3=_t361 instanceof i.Ref;if(!_context282.t3){_context282.next=60;break;}_context282.next=59;return s.fetchAsync(_t361);case 59:_t361=_context282.sent;case 60:if(!((0,i.isName)(_t361,\"Page\")||!_a237.has(\"Kids\"))){_context282.next=65;break;}if(!(l===e)){_context282.next=63;break;}return _context282.abrupt(\"return\",[_a237,null]);case 63:l++;return _context282.abrupt(\"continue\",67);case 65:throw new n.FormatError(\"Page dictionary kids object is not an array.\");case 66:for(_e491=_d15.length-1;_e491>=0;_e491--)t.push(_d15[_e491]);case 67:_context282.next=4;break;case 69:throw new Error(\"Page index \".concat(e,\" not found.\"));case 70:case\"end\":return _context282.stop();}},_callee54,this);}));function getPageDict(_x121){return _getPageDict.apply(this,arguments);}return getPageDict;}()},{key:\"getAllPageDicts\",value:function(){var _getAllPageDicts=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee55(){var e,t,r,s,o,c,l,h,addPageDict,addPageError,_e492,_a238,_s112,_o72,_l34,_h31,_u18,_args56=arguments;return _regeneratorRuntime.wrap(function _callee55$(_context283){while(1)switch(_context283.prev=_context283.next){case 0:addPageError=function _addPageError(t){if(t instanceof a.XRefEntryException&&!e)throw t;o.set(h++,[t,null]);};addPageDict=function _addPageDict(e,t){t&&!l.has(t)&&l.put(t,h);o.set(h++,[e,t]);};e=_args56.length>0&&void 0!==_args56[0]&&_args56[0];t=[{currentNode:this.toplevelPagesDict,posInKids:0}],r=new i.RefSet(),s=this._catDict.getRaw(\"Pages\");s instanceof i.Ref&&r.put(s);o=new _Map(),c=this.xref,l=this.pageIndexCache;h=0;case 7:if(!(t.length>0)){_context283.next=66;break;}_e492=t.at(-1),_a238=_e492.currentNode,_s112=_e492.posInKids;_o72=_a238.getRaw(\"Kids\");if(!(_o72 instanceof i.Ref)){_context283.next=21;break;}_context283.prev=11;_context283.next=14;return c.fetchAsync(_o72);case 14:_o72=_context283.sent;_context283.next=21;break;case 17:_context283.prev=17;_context283.t0=_context283[\"catch\"](11);addPageError(_context283.t0);return _context283.abrupt(\"break\",66);case 21:if(Array.isArray(_o72)){_context283.next=24;break;}addPageError(new n.FormatError(\"Page dictionary kids object is not an array.\"));return _context283.abrupt(\"break\",66);case 24:if(!(_s112>=_o72.length)){_context283.next=27;break;}t.pop();return _context283.abrupt(\"continue\",64);case 27:_l34=_o72[_s112];_h31=void 0;if(!(_l34 instanceof i.Ref)){_context283.next=46;break;}if(!r.has(_l34)){_context283.next=33;break;}addPageError(new n.FormatError(\"Pages tree contains circular reference.\"));return _context283.abrupt(\"break\",66);case 33:r.put(_l34);_context283.prev=34;_context283.next=37;return c.fetchAsync(_l34);case 37:_h31=_context283.sent;_context283.next=44;break;case 40:_context283.prev=40;_context283.t1=_context283[\"catch\"](34);addPageError(_context283.t1);return _context283.abrupt(\"break\",66);case 44:_context283.next=47;break;case 46:_h31=_l34;case 47:if(_h31 instanceof i.Dict){_context283.next=50;break;}addPageError(new n.FormatError(\"Page dictionary kid reference points to wrong type of object.\"));return _context283.abrupt(\"break\",66);case 50:_u18=_h31.getRaw(\"Type\");if(!(_u18 instanceof i.Ref)){_context283.next=62;break;}_context283.prev=52;_context283.next=55;return c.fetchAsync(_u18);case 55:_u18=_context283.sent;_context283.next=62;break;case 58:_context283.prev=58;_context283.t2=_context283[\"catch\"](52);addPageError(_context283.t2);return _context283.abrupt(\"break\",66);case 62:(0,i.isName)(_u18,\"Page\")||!_h31.has(\"Kids\")?addPageDict(_h31,_l34 instanceof i.Ref?_l34:null):t.push({currentNode:_h31,posInKids:0});_e492.posInKids++;case 64:_context283.next=7;break;case 66:return _context283.abrupt(\"return\",o);case 67:case\"end\":return _context283.stop();}},_callee55,this,[[11,17],[34,40],[52,58]]);}));function getAllPageDicts(){return _getAllPageDicts.apply(this,arguments);}return getAllPageDicts;}()},{key:\"getPageIndex\",value:function getPageIndex(e){var _this97=this;var t=this.pageIndexCache.get(e);if(void 0!==t)return _Promise.resolve(t);var r=this.xref;var a=0;var next=function next(t){return function pagesBeforeRef(t){var a,s=0;return r.fetchAsync(t).then(function(r){if((0,i.isRefsEqual)(t,e)&&!(0,i.isDict)(r,\"Page\")&&!(r instanceof i.Dict&&!r.has(\"Type\")&&r.has(\"Contents\")))throw new n.FormatError(\"The reference does not point to a /Page dictionary.\");if(!r)return null;if(!(r instanceof i.Dict))throw new n.FormatError(\"Node must be a dictionary.\");a=r.getRaw(\"Parent\");return r.getAsync(\"Parent\");}).then(function(e){if(!e)return null;if(!(e instanceof i.Dict))throw new n.FormatError(\"Parent must be a dictionary.\");return e.getAsync(\"Kids\");}).then(function(e){if(!e)return null;var o=[];var c=!1;for(var _a239=0,_l35=e.length;_a239<_l35;_a239++){var _l36=e[_a239];if(!(_l36 instanceof i.Ref))throw new n.FormatError(\"Kid must be a reference.\");if((0,i.isRefsEqual)(_l36,t)){c=!0;break;}o.push(r.fetchAsync(_l36).then(function(e){if(!(e instanceof i.Dict))throw new n.FormatError(\"Kid node must be a dictionary.\");e.has(\"Count\")?s+=e.get(\"Count\"):s++;}));}if(!c)throw new n.FormatError(\"Kid reference not found in parent's kids.\");return _Promise.all(o).then(function(){return[s,a];});});}(t).then(function(t){if(!t){_this97.pageIndexCache.put(e,a);return a;}var _t362=_slicedToArray(t,2),r=_t362[0],n=_t362[1];a+=r;return next(n);});};return next(e);}},{key:\"baseUrl\",get:function get(){var e=this._catDict.get(\"URI\");if(e instanceof i.Dict){var _t363=e.get(\"Base\");if(\"string\"==typeof _t363){var _e493=(0,n.createValidAbsoluteUrl)(_t363,null,{tryConvertEncoding:!0});if(_e493)return(0,n.shadow)(this,\"baseUrl\",_e493.href);}}return(0,n.shadow)(this,\"baseUrl\",null);}}],[{key:\"parseDestDictionary\",value:function parseDestDictionary(e){var t=e.destDict;if(!(t instanceof i.Dict)){(0,n.warn)(\"parseDestDictionary: `destDict` must be a dictionary.\");return;}var r=e.resultObj;if(\"object\"!=_typeof(r)){(0,n.warn)(\"parseDestDictionary: `resultObj` must be an object.\");return;}var s=e.docBaseUrl||null;var c,l,h=t.get(\"A\");if(!(h instanceof i.Dict))if(t.has(\"Dest\"))h=t.get(\"Dest\");else{h=t.get(\"AA\");h instanceof i.Dict&&(h.has(\"D\")?h=h.get(\"D\"):h.has(\"U\")&&(h=h.get(\"U\")));}if(h instanceof i.Dict){var _e494=h.get(\"S\");if(!(_e494 instanceof i.Name)){(0,n.warn)(\"parseDestDictionary: Invalid type in Action dictionary.\");return;}var _t364=_e494.name;switch(_t364){case\"ResetForm\":var _e495=h.get(\"Flags\"),_s113=0==(1&(\"number\"==typeof _e495?_e495:0)),_u19=[],_d16=[];var _iterator110=_createForOfIteratorHelper(h.get(\"Fields\")||[]),_step110;try{for(_iterator110.s();!(_step110=_iterator110.n()).done;){var _e496=_step110.value;_e496 instanceof i.Ref?_d16.push(_e496.toString()):\"string\"==typeof _e496&&_u19.push((0,n.stringToPDFString)(_e496));}}catch(err){_iterator110.e(err);}finally{_iterator110.f();}r.resetForm={fields:_u19,refs:_d16,include:_s113};break;case\"URI\":c=h.get(\"URI\");c instanceof i.Name&&(c=\"/\"+c.name);break;case\"GoTo\":l=h.get(\"D\");break;case\"Launch\":case\"GoToR\":var _f12=h.get(\"F\");_f12 instanceof i.Dict?c=_f12.get(\"F\")||null:\"string\"==typeof _f12&&(c=_f12);var _g21=h.get(\"D\");if(_g21){_g21 instanceof i.Name&&(_g21=_g21.name);if(\"string\"==typeof c){var _e497=c.split(\"#\")[0];\"string\"==typeof _g21?c=_e497+\"#\"+_g21:Array.isArray(_g21)&&(c=_e497+\"#\"+_JSON$stringify(_g21));}}var _p15=h.get(\"NewWindow\");\"boolean\"==typeof _p15&&(r.newWindow=_p15);break;case\"Named\":var _m12=h.get(\"N\");_m12 instanceof i.Name&&(r.action=_m12.name);break;case\"JavaScript\":var b=h.get(\"JS\");var y;b instanceof o.BaseStream?y=b.getString():\"string\"==typeof b&&(y=b);var w=y&&(0,a.recoverJsURL)((0,n.stringToPDFString)(y));if(w){c=w.url;r.newWindow=w.newWindow;break;}default:if(\"JavaScript\"===_t364||\"SubmitForm\"===_t364)break;(0,n.warn)(\"parseDestDictionary - unsupported action: \\\"\".concat(_t364,\"\\\".\"));}}else t.has(\"Dest\")&&(l=t.get(\"Dest\"));if(\"string\"==typeof c){var _e498=(0,n.createValidAbsoluteUrl)(c,s,{addDefaultProtocol:!0,tryConvertEncoding:!0});_e498&&(r.url=_e498.href);r.unsafeUrl=c;}if(l){l instanceof i.Name&&(l=l.name);\"string\"==typeof l?r.dest=(0,n.stringToPDFString)(l):Array.isArray(l)&&(r.dest=l);}}}]);return Catalog;}();t.Catalog=Catalog;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.NumberTree=t.NameTree=void 0;var a=r(130),n=r(2);var NameOrNumberTree=/*#__PURE__*/function(){function NameOrNumberTree(e,t,r){_classCallCheck(this,NameOrNumberTree);this.constructor===NameOrNumberTree&&(0,n.unreachable)(\"Cannot initialize NameOrNumberTree.\");this.root=e;this.xref=t;this._type=r;}_createClass(NameOrNumberTree,[{key:\"getAll\",value:function getAll(){var e=new _Map();if(!this.root)return e;var t=this.xref,r=new a.RefSet();r.put(this.root);var i=[this.root];for(;i.length>0;){var _s114=t.fetchIfRef(i.shift());if(!(_s114 instanceof a.Dict))continue;if(_s114.has(\"Kids\")){var _e499=_s114.get(\"Kids\");if(!Array.isArray(_e499))continue;var _iterator111=_createForOfIteratorHelper(_e499),_step111;try{for(_iterator111.s();!(_step111=_iterator111.n()).done;){var _t365=_step111.value;if(r.has(_t365))throw new n.FormatError(\"Duplicate entry in \\\"\".concat(this._type,\"\\\" tree.\"));i.push(_t365);r.put(_t365);}}catch(err){_iterator111.e(err);}finally{_iterator111.f();}continue;}var _o73=_s114.get(this._type);if(Array.isArray(_o73))for(var _r308=0,_a240=_o73.length;_r308<_a240;_r308+=2)e.set(t.fetchIfRef(_o73[_r308]),t.fetchIfRef(_o73[_r308+1]));}return e;}},{key:\"get\",value:function get(e){if(!this.root)return null;var t=this.xref;var r=t.fetchIfRef(this.root),a=0;for(;r.has(\"Kids\");){if(++a>10){(0,n.warn)(\"Search depth limit reached for \\\"\".concat(this._type,\"\\\" tree.\"));return null;}var _i155=r.get(\"Kids\");if(!Array.isArray(_i155))return null;var _s115=0,_o74=_i155.length-1;for(;_s115<=_o74;){var _a241=_s115+_o74>>1,_n184=t.fetchIfRef(_i155[_a241]),_c52=_n184.get(\"Limits\");if(e<t.fetchIfRef(_c52[0]))_o74=_a241-1;else{if(!(e>t.fetchIfRef(_c52[1]))){r=_n184;break;}_s115=_a241+1;}}if(_s115>_o74)return null;}var i=r.get(this._type);if(Array.isArray(i)){var _r309=0,_a242=i.length-2;for(;_r309<=_a242;){var _n185=_r309+_a242>>1,_s116=_n185+(1&_n185),_o75=t.fetchIfRef(i[_s116]);if(e<_o75)_a242=_s116-2;else{if(!(e>_o75))return t.fetchIfRef(i[_s116+1]);_r309=_s116+2;}}}return null;}}]);return NameOrNumberTree;}();t.NameTree=/*#__PURE__*/function(_NameOrNumberTree){_inherits(NameTree,_NameOrNumberTree);function NameTree(e,t){_classCallCheck(this,NameTree);return _callSuper(this,NameTree,[e,t,\"Names\"]);}return _createClass(NameTree);}(NameOrNumberTree);t.NumberTree=/*#__PURE__*/function(_NameOrNumberTree2){_inherits(NumberTree,_NameOrNumberTree2);function NumberTree(e,t){_classCallCheck(this,NumberTree);return _callSuper(this,NumberTree,[e,t,\"Nums\"]);}return _createClass(NumberTree);}(NameOrNumberTree);},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.clearGlobalCaches=function clearGlobalCaches(){(0,a.clearPrimitiveCaches)();(0,n.clearUnicodeCaches)();};var a=r(130),n=r(165);},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.FileSpec=void 0;var a=r(2),n=r(132),i=r(130);function pickPlatformItem(e){return e.has(\"UF\")?e.get(\"UF\"):e.has(\"F\")?e.get(\"F\"):e.has(\"Unix\")?e.get(\"Unix\"):e.has(\"Mac\")?e.get(\"Mac\"):e.has(\"DOS\")?e.get(\"DOS\"):null;}t.FileSpec=/*#__PURE__*/function(){function FileSpec(e,t){_classCallCheck(this,FileSpec);if(e instanceof i.Dict){this.xref=t;this.root=e;e.has(\"FS\")&&(this.fs=e.get(\"FS\"));this.description=e.has(\"Desc\")?(0,a.stringToPDFString)(e.get(\"Desc\")):\"\";e.has(\"RF\")&&(0,a.warn)(\"Related file specifications are not supported\");this.contentAvailable=!0;if(!e.has(\"EF\")){this.contentAvailable=!1;(0,a.warn)(\"Non-embedded file specifications are not supported\");}}}_createClass(FileSpec,[{key:\"filename\",get:function get(){if(!this._filename&&this.root){var _e500=pickPlatformItem(this.root)||\"unnamed\";this._filename=(0,a.stringToPDFString)(_e500).replace(/\\\\\\\\/g,\"\\\\\").replace(/\\\\\\//g,\"/\").replace(/\\\\/g,\"/\");}return this._filename;}},{key:\"content\",get:function get(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=pickPlatformItem(this.root.get(\"EF\")));var e=null;if(this.contentRef){var _t366=this.xref.fetchIfRef(this.contentRef);_t366 instanceof n.BaseStream?e=_t366.getBytes():(0,a.warn)(\"Embedded file specification points to non-existing/invalid content\");}else(0,a.warn)(\"Embedded file specification does not have a content\");return e;}},{key:\"serializable\",get:function get(){return{filename:this.filename,content:this.content};}}]);return FileSpec;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.MetadataParser=void 0;var a=r(191);t.MetadataParser=/*#__PURE__*/function(){function MetadataParser(e){_classCallCheck(this,MetadataParser);e=this._repair(e);var t=new a.SimpleXMLParser({lowerCaseName:!0}).parseFromString(e);this._metadataMap=new _Map();this._data=e;t&&this._parse(t);}_createClass(MetadataParser,[{key:\"_repair\",value:function _repair(e){return e.replace(/^[^<]+/,\"\").replace(/>\\\\376\\\\377([^<]+)/g,function(e,t){var r=t.replace(/\\\\([0-3])([0-7])([0-7])/g,function(e,t,r,a){return String.fromCharCode(64*t+8*r+1*a);}).replace(/&(amp|apos|gt|lt|quot);/g,function(e,t){switch(t){case\"amp\":return\"&\";case\"apos\":return\"'\";case\"gt\":return\">\";case\"lt\":return\"<\";case\"quot\":return'\"';}throw new Error(\"_repair: \".concat(t,\" isn't defined.\"));}),a=[];for(var _e501=0,_t367=r.length;_e501<_t367;_e501+=2){var _t368=256*r.charCodeAt(_e501)+r.charCodeAt(_e501+1);_t368>=32&&_t368<127&&60!==_t368&&62!==_t368&&38!==_t368?a.push(String.fromCharCode(_t368)):a.push(\"&#x\"+(65536+_t368).toString(16).substring(1)+\";\");}return\">\"+a.join(\"\");});}},{key:\"_getSequence\",value:function _getSequence(e){var _context284;var t=e.nodeName;return\"rdf:bag\"!==t&&\"rdf:seq\"!==t&&\"rdf:alt\"!==t?null:_filterInstanceProperty(_context284=e.childNodes).call(_context284,function(e){return\"rdf:li\"===e.nodeName;});}},{key:\"_parseArray\",value:function _parseArray(e){if(!e.hasChildNodes())return;var _e$childNodes=_slicedToArray(e.childNodes,1),t=_e$childNodes[0],r=this._getSequence(t)||[];this._metadataMap.set(e.nodeName,_mapInstanceProperty(r).call(r,function(e){var _context285;return _trimInstanceProperty(_context285=e.textContent).call(_context285);}));}},{key:\"_parse\",value:function _parse(e){var t=e.documentElement;if(\"rdf:rdf\"!==t.nodeName){t=t.firstChild;for(;t&&\"rdf:rdf\"!==t.nodeName;)t=t.nextSibling;}if(t&&\"rdf:rdf\"===t.nodeName&&t.hasChildNodes()){var _iterator112=_createForOfIteratorHelper(t.childNodes),_step112;try{for(_iterator112.s();!(_step112=_iterator112.n()).done;){var _e502=_step112.value;if(\"rdf:description\"===_e502.nodeName){var _iterator113=_createForOfIteratorHelper(_e502.childNodes),_step113;try{for(_iterator113.s();!(_step113=_iterator113.n()).done;){var _context286;var _t369=_step113.value;var _e503=_t369.nodeName;switch(_e503){case\"#text\":continue;case\"dc:creator\":case\"dc:subject\":this._parseArray(_t369);continue;}this._metadataMap.set(_e503,_trimInstanceProperty(_context286=_t369.textContent).call(_context286));}}catch(err){_iterator113.e(err);}finally{_iterator113.f();}}}}catch(err){_iterator112.e(err);}finally{_iterator112.f();}}}},{key:\"serializable\",get:function get(){return{parsedData:this._metadataMap,rawData:this._data};}}]);return MetadataParser;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.StructTreeRoot=t.StructTreePage=void 0;var a=r(130),n=r(2),i=r(195);var s=\"PAGE_CONTENT\",o=\"STREAM_CONTENT\",c=\"OBJECT\",l=\"ELEMENT\";t.StructTreeRoot=/*#__PURE__*/function(){function StructTreeRoot(e){_classCallCheck(this,StructTreeRoot);this.dict=e;this.roleMap=new _Map();}_createClass(StructTreeRoot,[{key:\"init\",value:function init(){this.readRoleMap();}},{key:\"readRoleMap\",value:function readRoleMap(){var _this98=this;var e=this.dict.get(\"RoleMap\");e instanceof a.Dict&&e.forEach(function(e,t){t instanceof a.Name&&_this98.roleMap.set(e,t.name);});}}]);return StructTreeRoot;}();var StructElementNode=/*#__PURE__*/function(){function StructElementNode(e,t){_classCallCheck(this,StructElementNode);this.tree=e;this.dict=t;this.kids=[];this.parseKids();}_createClass(StructElementNode,[{key:\"role\",get:function get(){var e=this.dict.get(\"S\"),t=e instanceof a.Name?e.name:\"\",r=this.tree.root;return r.roleMap.has(t)?r.roleMap.get(t):t;}},{key:\"parseKids\",value:function parseKids(){var e=null;var t=this.dict.getRaw(\"Pg\");t instanceof a.Ref&&(e=t.toString());var r=this.dict.get(\"K\");if(Array.isArray(r)){var _iterator114=_createForOfIteratorHelper(r),_step114;try{for(_iterator114.s();!(_step114=_iterator114.n()).done;){var _t370=_step114.value;var _r310=this.parseKid(e,_t370);_r310&&this.kids.push(_r310);}}catch(err){_iterator114.e(err);}finally{_iterator114.f();}}else{var _t371=this.parseKid(e,r);_t371&&this.kids.push(_t371);}}},{key:\"parseKid\",value:function parseKid(e,t){if(_Number$isInteger(t))return this.tree.pageDict.objId!==e?null:new StructElement({type:s,mcid:t,pageObjId:e});var r=null;t instanceof a.Ref?r=this.dict.xref.fetch(t):t instanceof a.Dict&&(r=t);if(!r)return null;var n=r.getRaw(\"Pg\");n instanceof a.Ref&&(e=n.toString());var i=r.get(\"Type\")instanceof a.Name?r.get(\"Type\").name:null;return\"MCR\"===i?this.tree.pageDict.objId!==e?null:new StructElement({type:o,refObjId:r.getRaw(\"Stm\")instanceof a.Ref?r.getRaw(\"Stm\").toString():null,pageObjId:e,mcid:r.get(\"MCID\")}):\"OBJR\"===i?this.tree.pageDict.objId!==e?null:new StructElement({type:c,refObjId:r.getRaw(\"Obj\")instanceof a.Ref?r.getRaw(\"Obj\").toString():null,pageObjId:e}):new StructElement({type:l,dict:r});}}]);return StructElementNode;}();var StructElement=/*#__PURE__*/_createClass(function StructElement(e){_classCallCheck(this,StructElement);var t=e.type,_e$dict=e.dict,r=_e$dict===void 0?null:_e$dict,_e$mcid=e.mcid,a=_e$mcid===void 0?null:_e$mcid,_e$pageObjId=e.pageObjId,n=_e$pageObjId===void 0?null:_e$pageObjId,_e$refObjId=e.refObjId,i=_e$refObjId===void 0?null:_e$refObjId;this.type=t;this.dict=r;this.mcid=a;this.pageObjId=n;this.refObjId=i;this.parentNode=null;});t.StructTreePage=/*#__PURE__*/function(){function StructTreePage(e,t){_classCallCheck(this,StructTreePage);this.root=e;this.rootDict=e?e.dict:null;this.pageDict=t;this.nodes=[];}_createClass(StructTreePage,[{key:\"parse\",value:function parse(){if(!this.root||!this.rootDict)return;var e=this.rootDict.get(\"ParentTree\");if(!e)return;var t=this.pageDict.get(\"StructParents\");if(!_Number$isInteger(t))return;var r=new i.NumberTree(e,this.rootDict.xref).get(t);if(!Array.isArray(r))return;var n=new _Map();var _iterator115=_createForOfIteratorHelper(r),_step115;try{for(_iterator115.s();!(_step115=_iterator115.n()).done;){var _e504=_step115.value;_e504 instanceof a.Ref&&this.addNode(this.rootDict.xref.fetch(_e504),n);}}catch(err){_iterator115.e(err);}finally{_iterator115.f();}}},{key:\"addNode\",value:function addNode(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r>40){(0,n.warn)(\"StructTree MAX_DEPTH reached.\");return null;}if(t.has(e))return t.get(e);var i=new StructElementNode(this,e);t.set(e,i);var s=e.get(\"P\");if(!s||(0,a.isName)(s.get(\"Type\"),\"StructTreeRoot\")){this.addTopLevelNode(e,i)||t.delete(e);return i;}var o=this.addNode(s,t,r+1);if(!o)return i;var c=!1;var _iterator116=_createForOfIteratorHelper(o.kids),_step116;try{for(_iterator116.s();!(_step116=_iterator116.n()).done;){var _t372=_step116.value;if(_t372.type===l&&_t372.dict===e){_t372.parentNode=i;c=!0;}}}catch(err){_iterator116.e(err);}finally{_iterator116.f();}c||t.delete(e);return i;}},{key:\"addTopLevelNode\",value:function addTopLevelNode(e,t){var r=this.rootDict.get(\"K\");if(!r)return!1;if(r instanceof a.Dict){if(r.objId!==e.objId)return!1;this.nodes[0]=t;return!0;}if(!Array.isArray(r))return!0;var n=!1;for(var _a243=0;_a243<r.length;_a243++){var _i156=r[_a243];if(_i156&&_i156.toString()===e.objId){this.nodes[_a243]=t;n=!0;}}return n;}},{key:\"serializable\",get:function get(){function nodeToSerializable(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r>40){(0,n.warn)(\"StructTree too deep to be fully serialized.\");return;}var a=Object.create(null);a.role=e.role;a.children=[];t.children.push(a);var i=e.dict.get(\"Alt\");\"string\"==typeof i&&(a.alt=(0,n.stringToPDFString)(i));var h=e.dict.get(\"Lang\");\"string\"==typeof h&&(a.lang=(0,n.stringToPDFString)(h));var _iterator117=_createForOfIteratorHelper(e.kids),_step117;try{for(_iterator117.s();!(_step117=_iterator117.n()).done;){var _context287;var _t373=_step117.value;var _e505=_t373.type===l?_t373.parentNode:null;_e505?nodeToSerializable(_e505,a,r+1):_t373.type===s||_t373.type===o?a.children.push({type:\"content\",id:_concatInstanceProperty(_context287=\"page\".concat(_t373.pageObjId,\"_mcid\")).call(_context287,_t373.mcid)}):_t373.type===c&&a.children.push({type:\"object\",id:_t373.refObjId});}}catch(err){_iterator117.e(err);}finally{_iterator117.f();}}var e=Object.create(null);e.children=[];e.role=\"Root\";var _iterator118=_createForOfIteratorHelper(this.nodes),_step118;try{for(_iterator118.s();!(_step118=_iterator118.n()).done;){var _t374=_step118.value;_t374&&nodeToSerializable(_t374,e);}}catch(err){_iterator118.e(err);}finally{_iterator118.f();}return e;}}]);return StructTreePage;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.ObjectLoader=void 0;var a=r(130),n=r(132),i=r(131),s=r(2);function addChildren(e,t){if(e instanceof a.Dict)e=e.getRawValues();else if(e instanceof n.BaseStream)e=e.dict.getRawValues();else if(!Array.isArray(e))return;var _iterator119=_createForOfIteratorHelper(e),_step119;try{for(_iterator119.s();!(_step119=_iterator119.n()).done;){var _i157=_step119.value;((r=_i157)instanceof a.Ref||r instanceof a.Dict||r instanceof n.BaseStream||Array.isArray(r))&&t.push(_i157);}}catch(err){_iterator119.e(err);}finally{_iterator119.f();}var r;}t.ObjectLoader=/*#__PURE__*/function(){function ObjectLoader(e,t,r){_classCallCheck(this,ObjectLoader);this.dict=e;this.keys=t;this.xref=r;this.refSet=null;}_createClass(ObjectLoader,[{key:\"load\",value:function(){var _load=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee56(){var e,t,r,_a244,_n186,_n187;return _regeneratorRuntime.wrap(function _callee56$(_context288){while(1)switch(_context288.prev=_context288.next){case 0:if(!this.xref.stream.isDataLoaded){_context288.next=2;break;}return _context288.abrupt(\"return\");case 2:e=_keysInstanceProperty(this),t=this.dict;this.refSet=new a.RefSet();r=[];for(_a244=0,_n186=e.length;_a244<_n186;_a244++){_n187=t.getRaw(e[_a244]);void 0!==_n187&&r.push(_n187);}return _context288.abrupt(\"return\",this._walk(r));case 7:case\"end\":return _context288.stop();}},_callee56,this);}));function load(){return _load.apply(this,arguments);}return load;}()},{key:\"_walk\",value:function(){var _walk2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee57(e){var t,r,_o76,_t375,_e506,_a245,_iterator120,_step120,_t376,_iterator121,_step121,_e507;return _regeneratorRuntime.wrap(function _callee57$(_context289){while(1)switch(_context289.prev=_context289.next){case 0:t=[],r=[];case 1:if(!e.length){_context289.next=24;break;}_o76=e.pop();if(!(_o76 instanceof a.Ref)){_context289.next=20;break;}if(!this.refSet.has(_o76)){_context289.next=6;break;}return _context289.abrupt(\"continue\",22);case 6:_context289.prev=6;this.refSet.put(_o76);_o76=this.xref.fetch(_o76);_context289.next=20;break;case 11:_context289.prev=11;_context289.t0=_context289[\"catch\"](6);if(_context289.t0 instanceof i.MissingDataException){_context289.next=18;break;}(0,s.warn)(\"ObjectLoader._walk - requesting all data: \\\"\".concat(_context289.t0,\"\\\".\"));this.refSet=null;_t375=this.xref.stream.manager;return _context289.abrupt(\"return\",_t375.requestAllChunks());case 18:t.push(_o76);r.push({begin:_context289.t0.begin,end:_context289.t0.end});case 20:if(_o76 instanceof n.BaseStream){_e506=_o76.getBaseStreams();if(_e506){_a245=!1;_iterator120=_createForOfIteratorHelper(_e506);try{for(_iterator120.s();!(_step120=_iterator120.n()).done;){_t376=_step120.value;if(!_t376.isDataLoaded){_a245=!0;r.push({begin:_t376.start,end:_t376.end});}}}catch(err){_iterator120.e(err);}finally{_iterator120.f();}_a245&&t.push(_o76);}}addChildren(_o76,e);case 22:_context289.next=1;break;case 24:if(!r.length){_context289.next=30;break;}_context289.next=27;return this.xref.stream.manager.requestRanges(r);case 27:_iterator121=_createForOfIteratorHelper(t);try{for(_iterator121.s();!(_step121=_iterator121.n()).done;){_e507=_step121.value;_e507 instanceof a.Ref&&this.refSet.remove(_e507);}}catch(err){_iterator121.e(err);}finally{_iterator121.f();}return _context289.abrupt(\"return\",this._walk(t));case 30:this.refSet=null;case 31:case\"end\":return _context289.stop();}},_callee57,this,[[6,11]]);}));function _walk(_x122){return _walk2.apply(this,arguments);}return _walk;}()}]);return ObjectLoader;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.XFAFactory=void 0;var a=r(202),n=r(206),i=r(212),s=r(210),o=r(203),c=r(2),l=r(213),h=r(223);var XFAFactory=/*#__PURE__*/function(){function XFAFactory(e){_classCallCheck(this,XFAFactory);try{this.root=new l.XFAParser().parse(XFAFactory._createDocument(e));var _t377=new n.Binder(this.root);this.form=_t377.bind();this.dataHandler=new i.DataHandler(this.root,_t377.getData());this.form[a.$globalData].template=this.form;}catch(e){(0,c.warn)(\"XFA - an error occurred during parsing and binding: \".concat(e));}}_createClass(XFAFactory,[{key:\"isValid\",value:function isValid(){return this.root&&this.form;}},{key:\"_createPagesHelper\",value:function _createPagesHelper(){var e=this.form[a.$toPages]();return new _Promise(function(t,r){var nextIteration=function nextIteration(){try{var _r311=e.next();_r311.done?t(_r311.value):_setTimeout(nextIteration,0);}catch(e){r(e);}};_setTimeout(nextIteration,0);});}},{key:\"_createPages\",value:function(){var _createPages2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee58(){var _context290;return _regeneratorRuntime.wrap(function _callee58$(_context291){while(1)switch(_context291.prev=_context291.next){case 0:_context291.prev=0;_context291.next=3;return this._createPagesHelper();case 3:this.pages=_context291.sent;this.dims=_mapInstanceProperty(_context290=this.pages.children).call(_context290,function(e){var _e$attributes$style=e.attributes.style,t=_e$attributes$style.width,r=_e$attributes$style.height;return[0,0,_parseInt(t),_parseInt(r)];});_context291.next=10;break;case 7:_context291.prev=7;_context291.t0=_context291[\"catch\"](0);(0,c.warn)(\"XFA - an error occurred during layout: \".concat(_context291.t0));case 10:case\"end\":return _context291.stop();}},_callee58,this,[[0,7]]);}));function _createPages(){return _createPages2.apply(this,arguments);}return _createPages;}()},{key:\"getBoundingBox\",value:function getBoundingBox(e){return this.dims[e];}},{key:\"getNumPages\",value:function(){var _getNumPages=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee59(){return _regeneratorRuntime.wrap(function _callee59$(_context292){while(1)switch(_context292.prev=_context292.next){case 0:_context292.t0=this.pages;if(_context292.t0){_context292.next=4;break;}_context292.next=4;return this._createPages();case 4:return _context292.abrupt(\"return\",this.dims.length);case 5:case\"end\":return _context292.stop();}},_callee59,this);}));function getNumPages(){return _getNumPages.apply(this,arguments);}return getNumPages;}()},{key:\"setImages\",value:function setImages(e){this.form[a.$globalData].images=e;}},{key:\"setFonts\",value:function setFonts(e){this.form[a.$globalData].fontFinder=new s.FontFinder(e);var t=[];var _iterator122=_createForOfIteratorHelper(this.form[a.$globalData].usedTypefaces),_step122;try{for(_iterator122.s();!(_step122=_iterator122.n()).done;){var _context293;var _e508=_step122.value;_e508=(0,o.stripQuotes)(_e508);_findInstanceProperty(_context293=this.form[a.$globalData].fontFinder).call(_context293,_e508)||t.push(_e508);}}catch(err){_iterator122.e(err);}finally{_iterator122.f();}return t.length>0?t:null;}},{key:\"appendFonts\",value:function appendFonts(e,t){this.form[a.$globalData].fontFinder.add(e,t);}},{key:\"getPages\",value:function(){var _getPages=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee60(){var e;return _regeneratorRuntime.wrap(function _callee60$(_context294){while(1)switch(_context294.prev=_context294.next){case 0:_context294.t0=this.pages;if(_context294.t0){_context294.next=4;break;}_context294.next=4;return this._createPages();case 4:e=this.pages;this.pages=null;return _context294.abrupt(\"return\",e);case 7:case\"end\":return _context294.stop();}},_callee60,this);}));function getPages(){return _getPages.apply(this,arguments);}return getPages;}()},{key:\"serializeData\",value:function serializeData(e){return this.dataHandler.serialize(e);}}],[{key:\"_createDocument\",value:function _createDocument(e){return e[\"/xdp:xdp\"]?_Object$values(e).join(\"\"):e[\"xdp:xdp\"];}},{key:\"getRichTextAsHtml\",value:function getRichTextAsHtml(e){if(!e||\"string\"!=typeof e)return null;try{var _context295;var _t378=new l.XFAParser(h.XhtmlNamespace,!0).parse(e);if(!_includesInstanceProperty(_context295=[\"body\",\"xhtml\"]).call(_context295,_t378[a.$nodeName])){var _e509=h.XhtmlNamespace.body({});_e509[a.$appendChild](_t378);_t378=_e509;}var _r312=_t378[a.$toHTML]();if(!_r312.success)return null;var _n188=_r312.html,_i158=_n188.attributes;if(_i158){var _context296;_i158.class&&(_i158.class=_filterInstanceProperty(_context296=_i158.class).call(_context296,function(e){return!_startsWithInstanceProperty(e).call(e,\"xfa\");}));_i158.dir=\"auto\";}return{html:_n188,str:_t378[a.$text]()};}catch(e){(0,c.warn)(\"XFA - an error occurred during parsing of rich text: \".concat(e));}return null;}}]);return XFAFactory;}();t.XFAFactory=XFAFactory;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.XmlObject=t.XFAObjectArray=t.XFAObject=t.XFAAttribute=t.StringObject=t.OptionObject=t.Option10=t.Option01=t.IntegerObject=t.ContentObject=t.$uid=t.$toStyle=t.$toString=t.$toPages=t.$toHTML=t.$text=t.$tabIndex=t.$setValue=t.$setSetAttributes=t.$setId=t.$searchNode=t.$root=t.$resolvePrototypes=t.$removeChild=t.$pushPara=t.$pushGlyphs=t.$popPara=t.$onText=t.$onChildCheck=t.$onChild=t.$nsAttributes=t.$nodeName=t.$namespaceId=t.$isUsable=t.$isTransparent=t.$isThereMoreWidth=t.$isSplittable=t.$isNsAgnostic=t.$isDescendent=t.$isDataValue=t.$isCDATAXml=t.$isBindable=t.$insertAt=t.$indexOf=t.$ids=t.$hasSettableValue=t.$globalData=t.$getTemplateRoot=t.$getSubformParent=t.$getRealChildrenByNameIt=t.$getParent=t.$getNextPage=t.$getExtra=t.$getDataValue=t.$getContainedChildren=t.$getChildrenByNameIt=t.$getChildrenByName=t.$getChildrenByClass=t.$getChildren=t.$getAvailableSpace=t.$getAttributes=t.$getAttributeIt=t.$flushHTML=t.$finalize=t.$extra=t.$dump=t.$data=t.$content=t.$consumed=t.$clone=t.$cleanup=t.$cleanPage=t.$clean=t.$childrenToHTML=t.$appendChild=t.$addHTML=t.$acceptWhitespace=void 0;var a=r(203),n=r(2),i=r(131),s=r(204),o=r(205);var c=_Symbol();t.$acceptWhitespace=c;var l=_Symbol();t.$addHTML=l;var h=_Symbol();t.$appendChild=h;var u=_Symbol();t.$childrenToHTML=u;var d=_Symbol();t.$clean=d;var f=_Symbol();t.$cleanPage=f;var g=_Symbol();t.$cleanup=g;var p=_Symbol();t.$clone=p;var m=_Symbol();t.$consumed=m;var b=_Symbol(\"content\");t.$content=b;var y=_Symbol(\"data\");t.$data=y;var w=_Symbol();t.$dump=w;var S=_Symbol(\"extra\");t.$extra=S;var x=_Symbol();t.$finalize=x;var k=_Symbol();t.$flushHTML=k;var C=_Symbol();t.$getAttributeIt=C;var v=_Symbol();t.$getAttributes=v;var O=_Symbol();t.$getAvailableSpace=O;var T=_Symbol();t.$getChildrenByClass=T;var M=_Symbol();t.$getChildrenByName=M;var E=_Symbol();t.$getChildrenByNameIt=E;var D=_Symbol();t.$getDataValue=D;var N=_Symbol();t.$getExtra=N;var R=_Symbol();t.$getRealChildrenByNameIt=R;var L=_Symbol();t.$getChildren=L;var j=_Symbol();t.$getContainedChildren=j;var $=_Symbol();t.$getNextPage=$;var _=_Symbol();t.$getSubformParent=_;var U=_Symbol();t.$getParent=U;var X=_Symbol();t.$getTemplateRoot=X;var H=_Symbol();t.$globalData=H;var q=_Symbol();t.$hasSettableValue=q;var z=_Symbol();t.$ids=z;var W=_Symbol();t.$indexOf=W;var G=_Symbol();t.$insertAt=G;var V=_Symbol();t.$isCDATAXml=V;var K=_Symbol();t.$isBindable=K;var Y=_Symbol();t.$isDataValue=Y;var J=_Symbol();t.$isDescendent=J;var Z=_Symbol();t.$isNsAgnostic=Z;var Q=_Symbol();t.$isSplittable=Q;var ee=_Symbol();t.$isThereMoreWidth=ee;var te=_Symbol();t.$isTransparent=te;var re=_Symbol();t.$isUsable=re;var ae=_Symbol(),ne=_Symbol(\"namespaceId\");t.$namespaceId=ne;var ie=_Symbol(\"nodeName\");t.$nodeName=ie;var se=_Symbol();t.$nsAttributes=se;var oe=_Symbol();t.$onChild=oe;var ce=_Symbol();t.$onChildCheck=ce;var le=_Symbol();t.$onText=le;var he=_Symbol();t.$pushGlyphs=he;var ue=_Symbol();t.$popPara=ue;var de=_Symbol();t.$pushPara=de;var fe=_Symbol();t.$removeChild=fe;var ge=_Symbol(\"root\");t.$root=ge;var pe=_Symbol();t.$resolvePrototypes=pe;var me=_Symbol();t.$searchNode=me;var be=_Symbol();t.$setId=be;var ye=_Symbol();t.$setSetAttributes=ye;var we=_Symbol();t.$setValue=we;var Se=_Symbol();t.$tabIndex=Se;var xe=_Symbol();t.$text=xe;var Ae=_Symbol();t.$toPages=Ae;var ke=_Symbol();t.$toHTML=ke;var Ce=_Symbol();t.$toString=Ce;var ve=_Symbol();t.$toStyle=ve;var Fe=_Symbol(\"uid\");t.$uid=Fe;var Oe=_Symbol(),Te=_Symbol(),Ie=_Symbol(),Pe=_Symbol(\"_children\"),Me=_Symbol(),Ee=_Symbol(),De=_Symbol(),Ne=_Symbol(),Be=_Symbol(),Re=_Symbol(),Le=_Symbol(),je=_Symbol(),$e=_Symbol(),_e=_Symbol(\"parent\"),Ue=_Symbol(),Xe=_Symbol(),He=_Symbol();var qe=0;var ze=s.NamespaceIds.datasets.id;var XFAObject=/*#__PURE__*/function(){function XFAObject(e,t){var _context297;_classCallCheck(this,XFAObject);var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this[ne]=e;this[ie]=t;this[Le]=r;this[_e]=null;this[Pe]=[];this[Fe]=_concatInstanceProperty(_context297=\"\".concat(t)).call(_context297,qe++);this[H]=null;}_createClass(XFAObject,[{key:oe,value:function value(e){var _context298,_context299,_context300;if(!this[Le]||!this[ce](e))return!1;var t=e[ie],r=this[t];if(!(r instanceof XFAObjectArray)){null!==r&&this[fe](r);this[t]=e;this[h](e);return!0;}if(r.push(e)){this[h](e);return!0;}var a=\"\";this.id?a=\" (id: \".concat(this.id,\")\"):this.name&&(a=_concatInstanceProperty(_context298=\" (name: \".concat(this.name,\" \")).call(_context298,this.h.value,\")\"));(0,n.warn)(_concatInstanceProperty(_context299=_concatInstanceProperty(_context300=\"XFA - node \\\"\".concat(this[ie],\"\\\"\")).call(_context300,a,\" has already enough \\\"\")).call(_context299,t,\"\\\"!\"));return!1;}},{key:ce,value:function value(e){return this.hasOwnProperty(e[ie])&&e[ne]===this[ne];}},{key:Z,value:function value(){return!1;}},{key:c,value:function value(){return!1;}},{key:V,value:function value(){return!1;}},{key:K,value:function value(){return!1;}},{key:ue,value:function value(){this.para&&this[X]()[S].paraStack.pop();}},{key:de,value:function value(){this[X]()[S].paraStack.push(this.para);}},{key:be,value:function value(e){this.id&&this[ne]===s.NamespaceIds.template.id&&e.set(this.id,this);}},{key:X,value:function value(){return this[H].template;}},{key:Q,value:function value(){return!1;}},{key:ee,value:function value(){return!1;}},{key:h,value:function value(e){e[_e]=this;this[Pe].push(e);!e[H]&&this[H]&&(e[H]=this[H]);}},{key:fe,value:function value(e){var _context301,_context302;var t=_indexOfInstanceProperty(_context301=this[Pe]).call(_context301,e);_spliceInstanceProperty(_context302=this[Pe]).call(_context302,t,1);}},{key:q,value:function value(){return this.hasOwnProperty(\"value\");}},{key:we,value:function value(e){}},{key:le,value:function value(e){}},{key:x,value:function value(){}},{key:d,value:function value(e){delete this[Le];if(this[g]){e.clean(this[g]);delete this[g];}}},{key:W,value:function value(e){var _context303;return _indexOfInstanceProperty(_context303=this[Pe]).call(_context303,e);}},{key:G,value:function value(e,t){var _context304;t[_e]=this;_spliceInstanceProperty(_context304=this[Pe]).call(_context304,e,0,t);!t[H]&&this[H]&&(t[H]=this[H]);}},{key:te,value:function value(){return!this.name;}},{key:ae,value:function value(){return\"\";}},{key:xe,value:function value(){var _context305;return 0===this[Pe].length?this[b]:_mapInstanceProperty(_context305=this[Pe]).call(_context305,function(e){return e[xe]();}).join(\"\");}},{key:Ie,get:function get(){var e=_Object$getPrototypeOf(this);if(!e._attributes){var _t379=e._attributes=new _Set();var _iterator123=_createForOfIteratorHelper(_Object$getOwnPropertyNames(this)),_step123;try{for(_iterator123.s();!(_step123=_iterator123.n()).done;){var _e510=_step123.value;if(null===this[_e510]||this[_e510]instanceof XFAObject||this[_e510]instanceof XFAObjectArray)break;_t379.add(_e510);}}catch(err){_iterator123.e(err);}finally{_iterator123.f();}}return(0,n.shadow)(this,Ie,e._attributes);}},{key:J,value:function value(e){var t=this;for(;t;){if(t===e)return!0;t=t[U]();}return!1;}},{key:U,value:function value(){return this[_e];}},{key:_,value:function value(){return this[U]();}},{key:L,value:function value(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[e]:this[Pe];}},{key:w,value:function value(){var e=Object.create(null);this[b]&&(e.$content=this[b]);var _iterator124=_createForOfIteratorHelper(_Object$getOwnPropertyNames(this)),_step124;try{for(_iterator124.s();!(_step124=_iterator124.n()).done;){var _t380=_step124.value;var _r313=this[_t380];null!==_r313&&(_r313 instanceof XFAObject?e[_t380]=_r313[w]():_r313 instanceof XFAObjectArray?_r313.isEmpty()||(e[_t380]=_r313.dump()):e[_t380]=_r313);}}catch(err){_iterator124.e(err);}finally{_iterator124.f();}return e;}},{key:ve,value:function value(){return null;}},{key:ke,value:function value(){return a.HTMLResult.EMPTY;}},{key:j,value:/*#__PURE__*/_regeneratorRuntime.mark(function value(){var _iterator125,_step125,_e511;return _regeneratorRuntime.wrap(function value$(_context306){while(1)switch(_context306.prev=_context306.next){case 0:_iterator125=_createForOfIteratorHelper(this[L]());_context306.prev=1;_iterator125.s();case 3:if((_step125=_iterator125.n()).done){_context306.next=9;break;}_e511=_step125.value;_context306.next=7;return _e511;case 7:_context306.next=3;break;case 9:_context306.next=14;break;case 11:_context306.prev=11;_context306.t0=_context306[\"catch\"](1);_iterator125.e(_context306.t0);case 14:_context306.prev=14;_iterator125.f();return _context306.finish(14);case 17:case\"end\":return _context306.stop();}},value,this,[[1,11,14,17]]);})},{key:Ne,value:/*#__PURE__*/_regeneratorRuntime.mark(function value(e,t){var _iterator126,_step126,_r314,_e512,_t381;return _regeneratorRuntime.wrap(function value$(_context307){while(1)switch(_context307.prev=_context307.next){case 0:_iterator126=_createForOfIteratorHelper(this[j]());_context307.prev=1;_iterator126.s();case 3:if((_step126=_iterator126.n()).done){_context307.next=12;break;}_r314=_step126.value;if(!(!e||t===e.has(_r314[ie]))){_context307.next=10;break;}_e512=this[O](),_t381=_r314[ke](_e512);_t381.success||(this[S].failingNode=_r314);_context307.next=10;return _t381;case 10:_context307.next=3;break;case 12:_context307.next=17;break;case 14:_context307.prev=14;_context307.t0=_context307[\"catch\"](1);_iterator126.e(_context307.t0);case 17:_context307.prev=17;_iterator126.f();return _context307.finish(17);case 20:case\"end\":return _context307.stop();}},value,this,[[1,14,17,20]]);})},{key:k,value:function value(){return null;}},{key:l,value:function value(e,t){this[S].children.push(e);}},{key:O,value:function value(){}},{key:u,value:function value(e){var _e$filter=_filterInstanceProperty(e),t=_e$filter===void 0?null:_e$filter,_e$include=e.include,r=_e$include===void 0?!0:_e$include;if(this[S].generator){var _e513=this[O](),_t382=this[S].failingNode[ke](_e513);if(!_t382.success)return _t382;_t382.html&&this[l](_t382.html,_t382.bbox);delete this[S].failingNode;}else this[S].generator=this[Ne](t,r);for(;;){var _e514=this[S].generator.next();if(_e514.done)break;var _t383=_e514.value;if(!_t383.success)return _t383;_t383.html&&this[l](_t383.html,_t383.bbox);}this[S].generator=null;return a.HTMLResult.EMPTY;}},{key:ye,value:function value(e){this[Xe]=new _Set(_Object$keys(e));}},{key:Re,value:function value(e){var _context308;var t=this[Ie],r=this[Xe];return _filterInstanceProperty(_context308=_toConsumableArray(e)).call(_context308,function(e){return t.has(e)&&!r.has(e);});}},{key:pe,value:function value(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new _Set();var _iterator127=_createForOfIteratorHelper(this[Pe]),_step127;try{for(_iterator127.s();!(_step127=_iterator127.n()).done;){var _r315=_step127.value;_r315[Ue](e,t);}}catch(err){_iterator127.e(err);}finally{_iterator127.f();}}},{key:Ue,value:function value(e,t){var r=this[Be](e,t);r?this[Oe](r,e,t):this[pe](e,t);}},{key:Be,value:function value(e,t){var r=this.use,a=this.usehref;if(!r&&!a)return null;var i=null,s=null,c=null,l=r;if(a){l=a;_startsWithInstanceProperty(a).call(a,\"#som(\")&&_endsWithInstanceProperty(a).call(a,\")\")?s=_sliceInstanceProperty(a).call(a,\"#som(\".length,a.length-1):_startsWithInstanceProperty(a).call(a,\".#som(\")&&_endsWithInstanceProperty(a).call(a,\")\")?s=_sliceInstanceProperty(a).call(a,\".#som(\".length,a.length-1):_startsWithInstanceProperty(a).call(a,\"#\")?c=_sliceInstanceProperty(a).call(a,1):_startsWithInstanceProperty(a).call(a,\".#\")&&(c=_sliceInstanceProperty(a).call(a,2));}else _startsWithInstanceProperty(r).call(r,\"#\")?c=_sliceInstanceProperty(r).call(r,1):s=r;this.use=this.usehref=\"\";if(c)i=e.get(c);else{i=(0,o.searchNode)(e.get(ge),this,s,!0,!1);i&&(i=i[0]);}if(!i){(0,n.warn)(\"XFA - Invalid prototype reference: \".concat(l,\".\"));return null;}if(i[ie]!==this[ie]){var _context309;(0,n.warn)(_concatInstanceProperty(_context309=\"XFA - Incompatible prototype: \".concat(i[ie],\" !== \")).call(_context309,this[ie],\".\"));return null;}if(t.has(i)){(0,n.warn)(\"XFA - Cycle detected in prototypes use.\");return null;}t.add(i);var h=i[Be](e,t);h&&i[Oe](h,e,t);i[pe](e,t);t.delete(i);return i;}},{key:Oe,value:function value(e,t,r){if(r.has(e)){(0,n.warn)(\"XFA - Cycle detected in prototypes use.\");return;}!this[b]&&e[b]&&(this[b]=e[b]);new _Set(r).add(e);var _iterator128=_createForOfIteratorHelper(this[Re](e[Xe])),_step128;try{for(_iterator128.s();!(_step128=_iterator128.n()).done;){var _t384=_step128.value;this[_t384]=e[_t384];this[Xe]&&this[Xe].add(_t384);}}catch(err){_iterator128.e(err);}finally{_iterator128.f();}var _iterator129=_createForOfIteratorHelper(_Object$getOwnPropertyNames(this)),_step129;try{for(_iterator129.s();!(_step129=_iterator129.n()).done;){var _a246=_step129.value;if(this[Ie].has(_a246))continue;var _n189=this[_a246],_i159=e[_a246];if(_n189 instanceof XFAObjectArray){var _iterator130=_createForOfIteratorHelper(_n189[Pe]),_step130;try{for(_iterator130.s();!(_step130=_iterator130.n()).done;){var _e515=_step130.value;_e515[Ue](t,r);}}catch(err){_iterator130.e(err);}finally{_iterator130.f();}for(var _a247=_n189[Pe].length,_s117=_i159[Pe].length;_a247<_s117;_a247++){var _i160=e[Pe][_a247][p]();if(!_n189.push(_i160))break;_i160[_e]=this;this[Pe].push(_i160);_i160[Ue](t,r);}}else if(null===_n189){if(null!==_i159){var _e516=_i159[p]();_e516[_e]=this;this[_a246]=_e516;this[Pe].push(_e516);_e516[Ue](t,r);}}else{_n189[pe](t,r);_i159&&_n189[Oe](_i159,t,r);}}}catch(err){_iterator129.e(err);}finally{_iterator129.f();}}},{key:p,value:function value(){var _context310;var e=Object.create(_Object$getPrototypeOf(this));var _iterator131=_createForOfIteratorHelper(_Object$getOwnPropertySymbols(this)),_step131;try{for(_iterator131.s();!(_step131=_iterator131.n()).done;){var _t385=_step131.value;try{e[_t385]=this[_t385];}catch(r){(0,n.shadow)(e,_t385,this[_t385]);}}}catch(err){_iterator131.e(err);}finally{_iterator131.f();}e[Fe]=_concatInstanceProperty(_context310=\"\".concat(e[ie])).call(_context310,qe++);e[Pe]=[];var _iterator132=_createForOfIteratorHelper(_Object$getOwnPropertyNames(this)),_step132;try{for(_iterator132.s();!(_step132=_iterator132.n()).done;){var _t386=_step132.value;if(this[Ie].has(_t386)){e[_t386]=XFAObject[Me](this[_t386]);continue;}var _r316=this[_t386];e[_t386]=_r316 instanceof XFAObjectArray?new XFAObjectArray(_r316[je]):null;}}catch(err){_iterator132.e(err);}finally{_iterator132.f();}var _iterator133=_createForOfIteratorHelper(this[Pe]),_step133;try{for(_iterator133.s();!(_step133=_iterator133.n()).done;){var _t387=_step133.value;var _r317=_t387[ie],_a248=_t387[p]();e[Pe].push(_a248);_a248[_e]=e;null===e[_r317]?e[_r317]=_a248:e[_r317][Pe].push(_a248);}}catch(err){_iterator133.e(err);}finally{_iterator133.f();}return e;}},{key:L,value:function value(){var _context311;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?_filterInstanceProperty(_context311=this[Pe]).call(_context311,function(t){return t[ie]===e;}):this[Pe];}},{key:T,value:function value(e){return this[e];}},{key:M,value:function value(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return _Array$from(this[E](e,t,r));}},{key:E,value:/*#__PURE__*/_regeneratorRuntime.mark(function value(e,t){var r,_iterator134,_step134,_r318,_args64=arguments;return _regeneratorRuntime.wrap(function value$(_context312){while(1)switch(_context312.prev=_context312.next){case 0:r=!(_args64.length>2&&void 0!==_args64[2])||_args64[2];if(!(\"parent\"!==e)){_context312.next=34;break;}_iterator134=_createForOfIteratorHelper(this[Pe]);_context312.prev=3;_iterator134.s();case 5:if((_step134=_iterator134.n()).done){_context312.next=20;break;}_r318=_step134.value;_context312.t0=_r318[ie]===e;if(!_context312.t0){_context312.next=11;break;}_context312.next=11;return _r318;case 11:_context312.t1=_r318.name===e;if(!_context312.t1){_context312.next=15;break;}_context312.next=15;return _r318;case 15:_context312.t2=t||_r318[te]();if(!_context312.t2){_context312.next=18;break;}return _context312.delegateYield(_r318[E](e,t,!1),\"t3\",18);case 18:_context312.next=5;break;case 20:_context312.next=25;break;case 22:_context312.prev=22;_context312.t4=_context312[\"catch\"](3);_iterator134.e(_context312.t4);case 25:_context312.prev=25;_iterator134.f();return _context312.finish(25);case 28:_context312.t5=r&&this[Ie].has(e);if(!_context312.t5){_context312.next=32;break;}_context312.next=32;return new XFAAttribute(this,e,this[e]);case 32:_context312.next=36;break;case 34:_context312.next=36;return this[_e];case 36:case\"end\":return _context312.stop();}},value,this,[[3,22,25,28]]);})}],[{key:Me,value:function value(e){return Array.isArray(e)?_mapInstanceProperty(e).call(e,function(e){return XFAObject[Me](e);}):\"object\"==_typeof(e)&&null!==e?_extends({},e):e;}}]);return XFAObject;}();t.XFAObject=XFAObject;var XFAObjectArray=/*#__PURE__*/function(){function XFAObjectArray(){_classCallCheck(this,XFAObjectArray);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;this[je]=e;this[Pe]=[];}_createClass(XFAObjectArray,[{key:\"push\",value:function push(e){var _context313;if(this[Pe].length<=this[je]){this[Pe].push(e);return!0;}(0,n.warn)(_concatInstanceProperty(_context313=\"XFA - node \\\"\".concat(e[ie],\"\\\" accepts no more than \")).call(_context313,this[je],\" children\"));return!1;}},{key:\"isEmpty\",value:function isEmpty(){return 0===this[Pe].length;}},{key:\"dump\",value:function dump(){var _context314;return 1===this[Pe].length?this[Pe][0][w]():_mapInstanceProperty(_context314=this[Pe]).call(_context314,function(e){return e[w]();});}},{key:p,value:function value(){var _context315;var e=new XFAObjectArray(this[je]);e[Pe]=_mapInstanceProperty(_context315=this[Pe]).call(_context315,function(e){return e[p]();});return e;}},{key:\"children\",get:function get(){return this[Pe];}},{key:\"clear\",value:function clear(){this[Pe].length=0;}}]);return XFAObjectArray;}();t.XFAObjectArray=XFAObjectArray;var XFAAttribute=/*#__PURE__*/function(){function XFAAttribute(e,t,r){_classCallCheck(this,XFAAttribute);this[_e]=e;this[ie]=t;this[b]=r;this[m]=!1;this[Fe]=\"attribute\"+qe++;}_createClass(XFAAttribute,[{key:U,value:function value(){return this[_e];}},{key:Y,value:function value(){return!0;}},{key:D,value:function value(){var _context316;return _trimInstanceProperty(_context316=this[b]).call(_context316);}},{key:we,value:function value(e){e=e.value||\"\";this[b]=e.toString();}},{key:xe,value:function value(){return this[b];}},{key:J,value:function value(e){return this[_e]===e||this[_e][J](e);}}]);return XFAAttribute;}();t.XFAAttribute=XFAAttribute;var XmlObject=/*#__PURE__*/function(_XFAObject){_inherits(XmlObject,_XFAObject);function XmlObject(e,t){var _this99;_classCallCheck(this,XmlObject);var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_this99=_callSuper(this,XmlObject,[e,t]);_this99[b]=\"\";_this99[Ee]=null;if(\"#text\"!==t){var _e517=new _Map();_this99[Te]=_e517;for(var _i161=0,_Object$entries5=_Object$entries2(r);_i161<_Object$entries5.length;_i161++){var _Object$entries5$_i=_slicedToArray(_Object$entries5[_i161],2),_t388=_Object$entries5$_i[0],_a249=_Object$entries5$_i[1];_e517.set(_t388,new XFAAttribute(_assertThisInitialized(_this99),_t388,_a249));}if(r.hasOwnProperty(se)){var _e518=r[se].xfa.dataNode;void 0!==_e518&&(\"dataGroup\"===_e518?_this99[Ee]=!1:\"dataValue\"===_e518&&(_this99[Ee]=!0));}}_this99[m]=!1;return _this99;}_createClass(XmlObject,[{key:Ce,value:function value(e){var _context317,_context319;var t=this[ie];if(\"#text\"===t){e.push((0,i.encodeToXmlString)(this[b]));return;}var r=(0,n.utf8StringToString)(t),a=this[ne]===ze?\"xfa:\":\"\";e.push(_concatInstanceProperty(_context317=\"<\".concat(a)).call(_context317,r));var _iterator135=_createForOfIteratorHelper(_entriesInstanceProperty(_context319=this[Te]).call(_context319)),_step135;try{for(_iterator135.s();!(_step135=_iterator135.n()).done;){var _context320;var _step135$value=_slicedToArray(_step135.value,2),_t390=_step135$value[0],_r319=_step135$value[1];var _a250=(0,n.utf8StringToString)(_t390);e.push(_concatInstanceProperty(_context320=\" \".concat(_a250,\"=\\\"\")).call(_context320,(0,i.encodeToXmlString)(_r319[b]),\"\\\"\"));}}catch(err){_iterator135.e(err);}finally{_iterator135.f();}null!==this[Ee]&&(this[Ee]?e.push(' xfa:dataNode=\"dataValue\"'):e.push(' xfa:dataNode=\"dataGroup\"'));if(this[b]||0!==this[Pe].length){var _context318;e.push(\">\");if(this[b])\"string\"==typeof this[b]?e.push((0,i.encodeToXmlString)(this[b])):this[b][Ce](e);else{var _iterator136=_createForOfIteratorHelper(this[Pe]),_step136;try{for(_iterator136.s();!(_step136=_iterator136.n()).done;){var _t389=_step136.value;_t389[Ce](e);}}catch(err){_iterator136.e(err);}finally{_iterator136.f();}}e.push(_concatInstanceProperty(_context318=\"</\".concat(a)).call(_context318,r,\">\"));}else e.push(\"/>\");}},{key:oe,value:function value(e){if(this[b]){var _e519=new XmlObject(this[ne],\"#text\");this[h](_e519);_e519[b]=this[b];this[b]=\"\";}this[h](e);return!0;}},{key:le,value:function value(e){this[b]+=e;}},{key:x,value:function value(){if(this[b]&&this[Pe].length>0){var _e520=new XmlObject(this[ne],\"#text\");this[h](_e520);_e520[b]=this[b];delete this[b];}}},{key:ke,value:function value(){return\"#text\"===this[ie]?a.HTMLResult.success({name:\"#text\",value:this[b]}):a.HTMLResult.EMPTY;}},{key:L,value:function value(){var _context321;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?_filterInstanceProperty(_context321=this[Pe]).call(_context321,function(t){return t[ie]===e;}):this[Pe];}},{key:v,value:function value(){return this[Te];}},{key:T,value:function value(e){var t=this[Te].get(e);return void 0!==t?t:this[L](e);}},{key:E,value:/*#__PURE__*/_regeneratorRuntime.mark(function value(e,t){var r,_iterator137,_step137,_r320;return _regeneratorRuntime.wrap(function value$(_context322){while(1)switch(_context322.prev=_context322.next){case 0:r=this[Te].get(e);_context322.t0=r;if(!_context322.t0){_context322.next=5;break;}_context322.next=5;return r;case 5:_iterator137=_createForOfIteratorHelper(this[Pe]);_context322.prev=6;_iterator137.s();case 8:if((_step137=_iterator137.n()).done){_context322.next=19;break;}_r320=_step137.value;_context322.t1=_r320[ie]===e;if(!_context322.t1){_context322.next=14;break;}_context322.next=14;return _r320;case 14:_context322.t2=t;if(!_context322.t2){_context322.next=17;break;}return _context322.delegateYield(_r320[E](e,t),\"t3\",17);case 17:_context322.next=8;break;case 19:_context322.next=24;break;case 21:_context322.prev=21;_context322.t4=_context322[\"catch\"](6);_iterator137.e(_context322.t4);case 24:_context322.prev=24;_iterator137.f();return _context322.finish(24);case 27:case\"end\":return _context322.stop();}},value,this,[[6,21,24,27]]);})},{key:C,value:/*#__PURE__*/_regeneratorRuntime.mark(function value(e,t){var r,_iterator138,_step138,_r321;return _regeneratorRuntime.wrap(function value$(_context323){while(1)switch(_context323.prev=_context323.next){case 0:r=this[Te].get(e);_context323.t0=!r||t&&r[m];if(_context323.t0){_context323.next=5;break;}_context323.next=5;return r;case 5:_iterator138=_createForOfIteratorHelper(this[Pe]);_context323.prev=6;_iterator138.s();case 8:if((_step138=_iterator138.n()).done){_context323.next=13;break;}_r321=_step138.value;return _context323.delegateYield(_r321[C](e,t),\"t1\",11);case 11:_context323.next=8;break;case 13:_context323.next=18;break;case 15:_context323.prev=15;_context323.t2=_context323[\"catch\"](6);_iterator138.e(_context323.t2);case 18:_context323.prev=18;_iterator138.f();return _context323.finish(18);case 21:case\"end\":return _context323.stop();}},value,this,[[6,15,18,21]]);})},{key:R,value:/*#__PURE__*/_regeneratorRuntime.mark(function value(e,t,r){var _iterator139,_step139,_a251;return _regeneratorRuntime.wrap(function value$(_context324){while(1)switch(_context324.prev=_context324.next){case 0:_iterator139=_createForOfIteratorHelper(this[Pe]);_context324.prev=1;_iterator139.s();case 3:if((_step139=_iterator139.n()).done){_context324.next=14;break;}_a251=_step139.value;_context324.t0=_a251[ie]!==e||r&&_a251[m];if(_context324.t0){_context324.next=9;break;}_context324.next=9;return _a251;case 9:_context324.t1=t;if(!_context324.t1){_context324.next=12;break;}return _context324.delegateYield(_a251[R](e,t,r),\"t2\",12);case 12:_context324.next=3;break;case 14:_context324.next=19;break;case 16:_context324.prev=16;_context324.t3=_context324[\"catch\"](1);_iterator139.e(_context324.t3);case 19:_context324.prev=19;_iterator139.f();return _context324.finish(19);case 22:case\"end\":return _context324.stop();}},value,this,[[1,16,19,22]]);})},{key:Y,value:function value(){return null===this[Ee]?0===this[Pe].length||this[Pe][0][ne]===s.NamespaceIds.xhtml.id:this[Ee];}},{key:D,value:function value(){var _context325,_context326,_context327;return null===this[Ee]?0===this[Pe].length?_trimInstanceProperty(_context325=this[b]).call(_context325):this[Pe][0][ne]===s.NamespaceIds.xhtml.id?_trimInstanceProperty(_context326=this[Pe][0][xe]()).call(_context326):null:_trimInstanceProperty(_context327=this[b]).call(_context327);}},{key:we,value:function value(e){e=e.value||\"\";this[b]=e.toString();}},{key:w,value:function value(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t=Object.create(null);e&&(t.$ns=this[ne]);this[b]&&(t.$content=this[b]);t.$name=this[ie];t.children=[];var _iterator140=_createForOfIteratorHelper(this[Pe]),_step140;try{for(_iterator140.s();!(_step140=_iterator140.n()).done;){var _r322=_step140.value;t.children.push(_r322[w](e));}}catch(err){_iterator140.e(err);}finally{_iterator140.f();}t.attributes=Object.create(null);var _iterator141=_createForOfIteratorHelper(this[Te]),_step141;try{for(_iterator141.s();!(_step141=_iterator141.n()).done;){var _step141$value=_slicedToArray(_step141.value,2),_e521=_step141$value[0],_r323=_step141$value[1];t.attributes[_e521]=_r323[b];}}catch(err){_iterator141.e(err);}finally{_iterator141.f();}return t;}}]);return XmlObject;}(XFAObject);t.XmlObject=XmlObject;var ContentObject=/*#__PURE__*/function(_XFAObject2){_inherits(ContentObject,_XFAObject2);function ContentObject(e,t){var _this100;_classCallCheck(this,ContentObject);_this100=_callSuper(this,ContentObject,[e,t]);_this100[b]=\"\";return _this100;}_createClass(ContentObject,[{key:le,value:function value(e){this[b]+=e;}},{key:x,value:function value(){}}]);return ContentObject;}(XFAObject);t.ContentObject=ContentObject;t.OptionObject=/*#__PURE__*/function(_ContentObject){_inherits(OptionObject,_ContentObject);function OptionObject(e,t,r){var _this101;_classCallCheck(this,OptionObject);_this101=_callSuper(this,OptionObject,[e,t]);_this101[$e]=r;return _this101;}_createClass(OptionObject,[{key:x,value:function value(){var _this102=this;this[b]=(0,a.getKeyword)({data:this[b],defaultValue:this[$e][0],validate:function validate(e){var _context328;return _includesInstanceProperty(_context328=_this102[$e]).call(_context328,e);}});}},{key:d,value:function value(e){_get(_getPrototypeOf(OptionObject.prototype),d,this).call(this,e);delete this[$e];}}]);return OptionObject;}(ContentObject);t.StringObject=/*#__PURE__*/function(_ContentObject2){_inherits(StringObject,_ContentObject2);function StringObject(){_classCallCheck(this,StringObject);return _callSuper(this,StringObject,arguments);}_createClass(StringObject,[{key:x,value:function value(){var _context329;this[b]=_trimInstanceProperty(_context329=this[b]).call(_context329);}}]);return StringObject;}(ContentObject);var IntegerObject=/*#__PURE__*/function(_ContentObject3){_inherits(IntegerObject,_ContentObject3);function IntegerObject(e,t,r,a){var _this103;_classCallCheck(this,IntegerObject);_this103=_callSuper(this,IntegerObject,[e,t]);_this103[De]=r;_this103[He]=a;return _this103;}_createClass(IntegerObject,[{key:x,value:function value(){this[b]=(0,a.getInteger)({data:this[b],defaultValue:this[De],validate:this[He]});}},{key:d,value:function value(e){_get(_getPrototypeOf(IntegerObject.prototype),d,this).call(this,e);delete this[De];delete this[He];}}]);return IntegerObject;}(ContentObject);t.IntegerObject=IntegerObject;t.Option01=/*#__PURE__*/function(_IntegerObject){_inherits(Option01,_IntegerObject);function Option01(e,t){_classCallCheck(this,Option01);return _callSuper(this,Option01,[e,t,0,function(e){return 1===e;}]);}return _createClass(Option01);}(IntegerObject);t.Option10=/*#__PURE__*/function(_IntegerObject2){_inherits(Option10,_IntegerObject2);function Option10(e,t){_classCallCheck(this,Option10);return _callSuper(this,Option10,[e,t,1,function(e){return 0===e;}]);}return _createClass(Option10);}(IntegerObject);},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.HTMLResult=void 0;t.getBBox=function getBBox(e){var _context330;var t=-1;if(!e)return{x:t,y:t,width:t,height:t};var r=_mapInstanceProperty(_context330=_trimInstanceProperty(e).call(e).split(/\\s*,\\s*/)).call(_context330,function(e){return getMeasurement(e,\"-1\");});if(r.length<4||r[2]<0||r[3]<0)return{x:t,y:t,width:t,height:t};var _r324=_slicedToArray(r,4),a=_r324[0],n=_r324[1],i=_r324[2],s=_r324[3];return{x:a,y:n,width:i,height:s};};t.getColor=function getColor(e){var _context331,_context332;var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],_t391=_slicedToArray(t,3),r=_t391[0],a=_t391[1],n=_t391[2];if(!e)return{r:r,g:a,b:n};var i=_mapInstanceProperty(_context331=_mapInstanceProperty(_context332=_trimInstanceProperty(e).call(e).split(/\\s*,\\s*/)).call(_context332,function(e){return Math.min(Math.max(0,_parseInt(_trimInstanceProperty(e).call(e),10)),255);})).call(_context331,function(e){return isNaN(e)?0:e;});if(i.length<3)return{r:r,g:a,b:n};var _i162=_slicedToArray(i,3);r=_i162[0];a=_i162[1];n=_i162[2];return{r:r,g:a,b:n};};t.getFloat=function getFloat(e){var t=e.data,r=e.defaultValue,a=e.validate;if(!t)return r;t=_trimInstanceProperty(t).call(t);var n=_parseFloat(t);if(!isNaN(n)&&a(n))return n;return r;};t.getInteger=function getInteger(e){var t=e.data,r=e.defaultValue,a=e.validate;if(!t)return r;t=_trimInstanceProperty(t).call(t);var n=_parseInt(t,10);if(!isNaN(n)&&a(n))return n;return r;};t.getKeyword=getKeyword;t.getMeasurement=getMeasurement;t.getRatio=function getRatio(e){var _context333,_context334;if(!e)return{num:1,den:1};var t=_filterInstanceProperty(_context333=_mapInstanceProperty(_context334=_trimInstanceProperty(e).call(e).split(/\\s*:\\s*/)).call(_context334,function(e){return _parseFloat(e);})).call(_context333,function(e){return!isNaN(e);});1===t.length&&t.push(1);if(0===t.length)return{num:1,den:1};var _t392=_slicedToArray(t,2),r=_t392[0],a=_t392[1];return{num:r,den:a};};t.getRelevant=function getRelevant(e){var _context335;if(!e)return[];return _mapInstanceProperty(_context335=_trimInstanceProperty(e).call(e).split(/\\s+/)).call(_context335,function(e){return{excluded:\"-\"===e[0],viewname:e.substring(1)};});};t.getStringOption=function getStringOption(e,t){return getKeyword({data:e,defaultValue:t[0],validate:function validate(e){return _includesInstanceProperty(t).call(t,e);}});};t.stripQuotes=function stripQuotes(e){if(_startsWithInstanceProperty(e).call(e,\"'\")||_startsWithInstanceProperty(e).call(e,'\"'))return _sliceInstanceProperty(e).call(e,1,e.length-1);return e;};var a=r(2);var n={pt:function pt(e){return e;},cm:function cm(e){return e/2.54*72;},mm:function mm(e){return e/25.4*72;},in:function _in(e){return 72*e;},px:function px(e){return e;}},i=/([+-]?\\d+\\.?\\d*)(.*)/;function getKeyword(e){var t=e.data,r=e.defaultValue,a=e.validate;if(!t)return r;t=_trimInstanceProperty(t).call(t);return a(t)?t:r;}function getMeasurement(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"0\";t=t||\"0\";if(!e)return getMeasurement(t);var r=_trimInstanceProperty(e).call(e).match(i);if(!r)return getMeasurement(t);var _r325=_slicedToArray(r,3),a=_r325[1],s=_r325[2],o=_parseFloat(a);if(isNaN(o))return getMeasurement(t);if(0===o)return 0;var c=n[s];return c?c(o):o;}var HTMLResult=/*#__PURE__*/function(){function HTMLResult(e,t,r,a){_classCallCheck(this,HTMLResult);this.success=e;this.html=t;this.bbox=r;this.breakNode=a;}_createClass(HTMLResult,[{key:\"isBreak\",value:function isBreak(){return!!this.breakNode;}}],[{key:\"FAILURE\",get:function get(){return(0,a.shadow)(this,\"FAILURE\",new HTMLResult(!1,null,null,null));}},{key:\"EMPTY\",get:function get(){return(0,a.shadow)(this,\"EMPTY\",new HTMLResult(!0,null,null,null));}},{key:\"breakNode\",value:function breakNode(e){return new HTMLResult(!1,null,null,e);}},{key:\"success\",value:function success(e){return new HTMLResult(!0,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,null);}}]);return HTMLResult;}();t.HTMLResult=HTMLResult;},function(e,t){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.NamespaceIds=t.$buildXFAObject=void 0;var r=_Symbol();t.$buildXFAObject=r;t.NamespaceIds={config:{id:0,check:function check(e){return _startsWithInstanceProperty(e).call(e,\"http://www.xfa.org/schema/xci/\");}},connectionSet:{id:1,check:function check(e){return _startsWithInstanceProperty(e).call(e,\"http://www.xfa.org/schema/xfa-connection-set/\");}},datasets:{id:2,check:function check(e){return _startsWithInstanceProperty(e).call(e,\"http://www.xfa.org/schema/xfa-data/\");}},form:{id:3,check:function check(e){return _startsWithInstanceProperty(e).call(e,\"http://www.xfa.org/schema/xfa-form/\");}},localeSet:{id:4,check:function check(e){return _startsWithInstanceProperty(e).call(e,\"http://www.xfa.org/schema/xfa-locale-set/\");}},pdf:{id:5,check:function check(e){return\"http://ns.adobe.com/xdp/pdf/\"===e;}},signature:{id:6,check:function check(e){return\"http://www.w3.org/2000/09/xmldsig#\"===e;}},sourceSet:{id:7,check:function check(e){return _startsWithInstanceProperty(e).call(e,\"http://www.xfa.org/schema/xfa-source-set/\");}},stylesheet:{id:8,check:function check(e){return\"http://www.w3.org/1999/XSL/Transform\"===e;}},template:{id:9,check:function check(e){return _startsWithInstanceProperty(e).call(e,\"http://www.xfa.org/schema/xfa-template/\");}},xdc:{id:10,check:function check(e){return _startsWithInstanceProperty(e).call(e,\"http://www.xfa.org/schema/xdc/\");}},xdp:{id:11,check:function check(e){return\"http://ns.adobe.com/xdp/\"===e;}},xfdf:{id:12,check:function check(e){return\"http://ns.adobe.com/xfdf/\"===e;}},xhtml:{id:13,check:function check(e){return\"http://www.w3.org/1999/xhtml\"===e;}},xmpmeta:{id:14,check:function check(e){return\"http://ns.adobe.com/xmpmeta/\"===e;}}};},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.createDataNode=function createDataNode(e,t,r){var n=parseExpression(r);if(!n)return null;if(n.some(function(e){return e.operator===l;}))return null;var s=f.get(n[0].name);var o=0;if(s){e=s(e,t);o=1;}else e=t||e;for(var _t393=n.length;o<_t393;o++){var _n$o=n[o],_t394=_n$o.name,_r326=_n$o.operator,_s118=_n$o.index;if(!isFinite(_s118)){n[o].index=0;return createNodes(e,_sliceInstanceProperty(n).call(n,o));}var _u20=void 0;switch(_r326){case c:_u20=e[a.$getChildrenByName](_t394,!1);break;case l:_u20=e[a.$getChildrenByName](_t394,!0);break;case h:_u20=e[a.$getChildrenByClass](_t394);_u20=_u20 instanceof a.XFAObjectArray?_u20.children:[_u20];}if(0===_u20.length)return createNodes(e,_sliceInstanceProperty(n).call(n,o));if(!(_s118<_u20.length)){n[o].index=_s118-_u20.length;return createNodes(e,_sliceInstanceProperty(n).call(n,o));}{var _t395=_u20[_s118];if(!(_t395 instanceof a.XFAObject)){(0,i.warn)(\"XFA - Cannot create a node.\");return null;}e=_t395;}}return null;};t.searchNode=function searchNode(e,t,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];var s=parseExpression(r,n);if(!s)return null;var o=f.get(s[0].name);var u,d=0;if(o){u=!0;e=[o(e,t)];d=1;}else{u=null===t;e=[t||e];}var _loop6=function _loop6(){var _context336;var _s$d=s[d],r=_s$d.name,n=_s$d.cacheName,o=_s$d.operator,f=_s$d.index,p=[];var _iterator142=_createForOfIteratorHelper(e),_step142;try{for(_iterator142.s();!(_step142=_iterator142.n()).done;){var _t396=_step142.value;if(!(_t396 instanceof a.XFAObject))continue;var _e522=void 0,_s119=void 0;if(i){_s119=g.get(_t396);if(!_s119){_s119=new _Map();g.set(_t396,_s119);}_e522=_s119.get(n);}if(!_e522){switch(o){case c:_e522=_t396[a.$getChildrenByName](r,!1);break;case l:_e522=_t396[a.$getChildrenByName](r,!0);break;case h:_e522=_t396[a.$getChildrenByClass](r);_e522=_e522 instanceof a.XFAObjectArray?_e522.children:[_e522];}i&&_s119.set(n,_e522);}_e522.length>0&&p.push(_e522);}}catch(err){_iterator142.e(err);}finally{_iterator142.f();}if(0!==p.length||u||0!==d)e=isFinite(f)?_mapInstanceProperty(_context336=_filterInstanceProperty(p).call(p,function(e){return f<e.length;})).call(_context336,function(e){return e[f];}):_flatInstanceProperty(p).call(p);else{var _r328=t[a.$getParent]();if(!(t=_r328))return{v:null};d=-1;e=[t];}},_ret;for(var _r327=s.length;d<_r327;d++){_ret=_loop6();if(_ret)return _ret.v;}if(0===e.length)return null;return e;};var a=r(202),n=r(204),i=r(2);var s=/^[^.[]+/,o=/^[^\\]]+/,c=0,l=1,h=2,u=3,d=4,f=new _Map([[\"$data\",function(e,t){return e.datasets?e.datasets.data:e;}],[\"$record\",function(e,t){return(e.datasets?e.datasets.data:e)[a.$getChildren]()[0];}],[\"$template\",function(e,t){return e.template;}],[\"$connectionSet\",function(e,t){return e.connectionSet;}],[\"$form\",function(e,t){return e.form;}],[\"$layout\",function(e,t){return e.layout;}],[\"$host\",function(e,t){return e.host;}],[\"$dataWindow\",function(e,t){return e.dataWindow;}],[\"$event\",function(e,t){return e.event;}],[\"!\",function(e,t){return e.datasets;}],[\"$xfa\",function(e,t){return e;}],[\"xfa\",function(e,t){return e;}],[\"$\",function(e,t){return t;}]]),g=new _WeakMap(),p=n.NamespaceIds.datasets.id;function parseIndex(e){return\"*\"===(e=_trimInstanceProperty(e).call(e))?1/0:_parseInt(e,10)||0;}function parseExpression(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=e.match(s);if(!a)return null;var _a252=a,_a253=_slicedToArray(_a252,1),n=_a253[0];var f=[{name:n,cacheName:\".\"+n,index:0,js:null,formCalc:null,operator:c}];var g=n.length;for(;g<e.length;){var _p16=g;if(\"[\"===e.charAt(g++)){a=_sliceInstanceProperty(e).call(e,g).match(o);if(!a){(0,i.warn)(\"XFA - Invalid index in SOM expression\");return null;}f.at(-1).index=parseIndex(a[0]);g+=a[0].length+1;continue;}var _m13=void 0;switch(e.charAt(g)){case\".\":if(!t)return null;g++;_m13=l;break;case\"#\":g++;_m13=h;break;case\"[\":if(r){(0,i.warn)(\"XFA - SOM expression contains a FormCalc subexpression which is not supported for now.\");return null;}_m13=u;break;case\"(\":if(r){(0,i.warn)(\"XFA - SOM expression contains a JavaScript subexpression which is not supported for now.\");return null;}_m13=d;break;default:_m13=c;}a=_sliceInstanceProperty(e).call(e,g).match(s);if(!a)break;var _a254=a;var _a255=_slicedToArray(_a254,1);n=_a255[0];g+=n.length;f.push({name:n,cacheName:_sliceInstanceProperty(e).call(e,_p16,g),operator:_m13,index:0,js:null,formCalc:null});}return f;}function createNodes(e,t){var r=null;var _iterator143=_createForOfIteratorHelper(t),_step143;try{for(_iterator143.s();!(_step143=_iterator143.n()).done;){var _step143$value=_step143.value,_n190=_step143$value.name,_i163=_step143$value.index;for(var _t397=0,_s120=isFinite(_i163)?_i163:0;_t397<=_s120;_t397++){var _t398=e[a.$namespaceId]===p?-1:e[a.$namespaceId];r=new a.XmlObject(_t398,_n190);e[a.$appendChild](r);}e=r;}}catch(err){_iterator143.e(err);}finally{_iterator143.f();}return r;}},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.Binder=void 0;var a=r(202),n=r(207),i=r(205),s=r(204),o=r(2);var c=s.NamespaceIds.datasets.id;function createText(e){var t=new n.Text({});t[a.$content]=e;return t;}t.Binder=/*#__PURE__*/function(){function Binder(e){_classCallCheck(this,Binder);this.root=e;this.datasets=e.datasets;e.datasets&&e.datasets.data?this.data=e.datasets.data:this.data=new a.XmlObject(s.NamespaceIds.datasets.id,\"data\");this.emptyMerge=0===this.data[a.$getChildren]().length;this.root.form=this.form=e.template[a.$clone]();}_createClass(Binder,[{key:\"_isConsumeData\",value:function _isConsumeData(){return!this.emptyMerge&&this._mergeMode;}},{key:\"_isMatchTemplate\",value:function _isMatchTemplate(){return!this._isConsumeData();}},{key:\"bind\",value:function bind(){this._bindElement(this.form,this.data);return this.form;}},{key:\"getData\",value:function getData(){return this.data;}},{key:\"_bindValue\",value:function _bindValue(e,t,r){e[a.$data]=t;if(e[a.$hasSettableValue]()){if(t[a.$isDataValue]()){var _r329=t[a.$getDataValue]();e[a.$setValue](createText(_r329));}else if(e instanceof n.Field&&e.ui&&e.ui.choiceList&&\"multiSelect\"===e.ui.choiceList.open){var _context337;var _r330=_mapInstanceProperty(_context337=t[a.$getChildren]()).call(_context337,function(e){var _context338;return _trimInstanceProperty(_context338=e[a.$content]).call(_context338);}).join(\"\\n\");e[a.$setValue](createText(_r330));}else this._isConsumeData()&&(0,o.warn)(\"XFA - Nodes haven't the same type.\");}else!t[a.$isDataValue]()||this._isMatchTemplate()?this._bindElement(e,t):(0,o.warn)(\"XFA - Nodes haven't the same type.\");}},{key:\"_findDataByNameToConsume\",value:function _findDataByNameToConsume(e,t,r,n){if(!e)return null;var i,o;for(var _n191=0;_n191<3;_n191++){i=r[a.$getRealChildrenByNameIt](e,!1,!0);for(;;){o=i.next().value;if(!o)break;if(t===o[a.$isDataValue]())return o;}if(r[a.$namespaceId]===s.NamespaceIds.datasets.id&&\"data\"===r[a.$nodeName])break;r=r[a.$getParent]();}if(!n)return null;i=this.data[a.$getRealChildrenByNameIt](e,!0,!1);o=i.next().value;if(o)return o;i=this.data[a.$getAttributeIt](e,!0);o=i.next().value;return o&&o[a.$isDataValue]()?o:null;}},{key:\"_setProperties\",value:function _setProperties(e,t){if(e.hasOwnProperty(\"setProperty\")){var _iterator144=_createForOfIteratorHelper(e.setProperty.children),_step144;try{for(_iterator144.s();!(_step144=_iterator144.n()).done;){var _step144$value=_step144.value,_r331=_step144$value.ref,_s121=_step144$value.target,_c53=_step144$value.connection;if(_c53)continue;if(!_r331)continue;var l=(0,i.searchNode)(this.root,t,_r331,!1,!1);if(!l){(0,o.warn)(\"XFA - Invalid reference: \".concat(_r331,\".\"));continue;}var _l37=_slicedToArray(l,1),_h32=_l37[0];if(!_h32[a.$isDescendent](this.data)){(0,o.warn)(\"XFA - Invalid node: must be a data node.\");continue;}var u=(0,i.searchNode)(this.root,e,_s121,!1,!1);if(!u){(0,o.warn)(\"XFA - Invalid target: \".concat(_s121,\".\"));continue;}var _u21=_slicedToArray(u,1),d=_u21[0];if(!d[a.$isDescendent](e)){(0,o.warn)(\"XFA - Invalid target: must be a property or subproperty.\");continue;}var f=d[a.$getParent]();if(d instanceof n.SetProperty||f instanceof n.SetProperty){(0,o.warn)(\"XFA - Invalid target: cannot be a setProperty or one of its properties.\");continue;}if(d instanceof n.BindItems||f instanceof n.BindItems){(0,o.warn)(\"XFA - Invalid target: cannot be a bindItems or one of its properties.\");continue;}var _g22=_h32[a.$text](),_p17=d[a.$nodeName];if(d instanceof a.XFAAttribute){var _e523=Object.create(null);_e523[_p17]=_g22;var _t399=_Reflect$construct(_Object$getPrototypeOf(f).constructor,[_e523]);f[_p17]=_t399[_p17];}else if(d.hasOwnProperty(a.$content)){d[a.$data]=_h32;d[a.$content]=_g22;d[a.$finalize]();}else(0,o.warn)(\"XFA - Invalid node to use in setProperty\");}}catch(err){_iterator144.e(err);}finally{_iterator144.f();}}}},{key:\"_bindItems\",value:function _bindItems(e,t){if(!e.hasOwnProperty(\"items\")||!e.hasOwnProperty(\"bindItems\")||e.bindItems.isEmpty())return;var _iterator145=_createForOfIteratorHelper(e.items.children),_step145;try{for(_iterator145.s();!(_step145=_iterator145.n()).done;){var _t400=_step145.value;e[a.$removeChild](_t400);}}catch(err){_iterator145.e(err);}finally{_iterator145.f();}e.items.clear();var r=new n.Items({}),s=new n.Items({});e[a.$appendChild](r);e.items.push(r);e[a.$appendChild](s);e.items.push(s);var _iterator146=_createForOfIteratorHelper(e.bindItems.children),_step146;try{for(_iterator146.s();!(_step146=_iterator146.n()).done;){var _step146$value=_step146.value,_n192=_step146$value.ref,_c54=_step146$value.labelRef,l=_step146$value.valueRef,_h33=_step146$value.connection;if(_h33)continue;if(!_n192)continue;var _e524=(0,i.searchNode)(this.root,t,_n192,!1,!1);if(_e524){var _iterator147=_createForOfIteratorHelper(_e524),_step147;try{for(_iterator147.s();!(_step147=_iterator147.n()).done;){var _t401=_step147.value;if(!_t401[a.$isDescendent](this.datasets)){(0,o.warn)(\"XFA - Invalid ref (\".concat(_n192,\"): must be a datasets child.\"));continue;}var _e525=(0,i.searchNode)(this.root,_t401,_c54,!0,!1);if(!_e525){(0,o.warn)(\"XFA - Invalid label: \".concat(_c54,\".\"));continue;}var _e526=_slicedToArray(_e525,1),_h34=_e526[0];if(!_h34[a.$isDescendent](this.datasets)){(0,o.warn)(\"XFA - Invalid label: must be a datasets child.\");continue;}var u=(0,i.searchNode)(this.root,_t401,l,!0,!1);if(!u){(0,o.warn)(\"XFA - Invalid value: \".concat(l,\".\"));continue;}var _u22=_slicedToArray(u,1),d=_u22[0];if(!d[a.$isDescendent](this.datasets)){(0,o.warn)(\"XFA - Invalid value: must be a datasets child.\");continue;}var f=createText(_h34[a.$text]()),_g23=createText(d[a.$text]());r[a.$appendChild](f);r.text.push(f);s[a.$appendChild](_g23);s.text.push(_g23);}}catch(err){_iterator147.e(err);}finally{_iterator147.f();}}else(0,o.warn)(\"XFA - Invalid reference: \".concat(_n192,\".\"));}}catch(err){_iterator146.e(err);}finally{_iterator146.f();}}},{key:\"_bindOccurrences\",value:function _bindOccurrences(e,t,r){var n;if(t.length>1){n=e[a.$clone]();n[a.$removeChild](n.occur);n.occur=null;}this._bindValue(e,t[0],r);this._setProperties(e,t[0]);this._bindItems(e,t[0]);if(1===t.length)return;var i=e[a.$getParent](),s=e[a.$nodeName],o=i[a.$indexOf](e);for(var _e527=1,_c55=t.length;_e527<_c55;_e527++){var _c56=t[_e527],l=n[a.$clone]();i[s].push(l);i[a.$insertAt](o+_e527,l);this._bindValue(l,_c56,r);this._setProperties(l,_c56);this._bindItems(l,_c56);}}},{key:\"_createOccurrences\",value:function _createOccurrences(e){var _context339;if(!this.emptyMerge)return;var t=e.occur;if(!t||t.initial<=1)return;var r=e[a.$getParent](),n=e[a.$nodeName];if(!(r[n]instanceof a.XFAObjectArray))return;var i;i=e.name?_filterInstanceProperty(_context339=r[n].children).call(_context339,function(t){return t.name===e.name;}).length:r[n].children.length;var s=r[a.$indexOf](e)+1,o=t.initial-i;if(o){var _t402=e[a.$clone]();_t402[a.$removeChild](_t402.occur);_t402.occur=null;r[n].push(_t402);r[a.$insertAt](s,_t402);for(var _e528=1;_e528<o;_e528++){var _i164=_t402[a.$clone]();r[n].push(_i164);r[a.$insertAt](s+_e528,_i164);}}}},{key:\"_getOccurInfo\",value:function _getOccurInfo(e){var t=e.name,r=e.occur;if(!r||!t)return[1,1];var a=-1===r.max?1/0:r.max;return[r.min,a];}},{key:\"_setAndBind\",value:function _setAndBind(e,t){this._setProperties(e,t);this._bindItems(e,t);this._bindElement(e,t);}},{key:\"_bindElement\",value:function _bindElement(e,t){var r=[];this._createOccurrences(e);var _iterator148=_createForOfIteratorHelper(e[a.$getChildren]()),_step148;try{for(_iterator148.s();!(_step148=_iterator148.n()).done;){var _n193=_step148.value;if(_n193[a.$data])continue;if(void 0===this._mergeMode&&\"subform\"===_n193[a.$nodeName]){this._mergeMode=\"consumeData\"===_n193.mergeMode;var _e529=t[a.$getChildren]();if(_e529.length>0)this._bindOccurrences(_n193,[_e529[0]],null);else if(this.emptyMerge){var _e530=t[a.$namespaceId]===c?-1:t[a.$namespaceId],_r332=_n193[a.$data]=new a.XmlObject(_e530,_n193.name||\"root\");t[a.$appendChild](_r332);this._bindElement(_n193,_r332);}continue;}if(!_n193[a.$isBindable]())continue;var _e531=!1,_s122=null,l=null,_h35=null;if(_n193.bind){switch(_n193.bind.match){case\"none\":this._setAndBind(_n193,t);continue;case\"global\":_e531=!0;break;case\"dataRef\":if(!_n193.bind.ref){(0,o.warn)(\"XFA - ref is empty in node \".concat(_n193[a.$nodeName],\".\"));this._setAndBind(_n193,t);continue;}l=_n193.bind.ref;}_n193.bind.picture&&(_s122=_n193.bind.picture[a.$content]);}var _this$_getOccurInfo=this._getOccurInfo(_n193),_this$_getOccurInfo2=_slicedToArray(_this$_getOccurInfo,2),u=_this$_getOccurInfo2[0],d=_this$_getOccurInfo2[1];if(l){_h35=(0,i.searchNode)(this.root,t,l,!0,!1);if(null===_h35){_h35=(0,i.createDataNode)(this.data,t,l);if(!_h35)continue;this._isConsumeData()&&(_h35[a.$consumed]=!0);this._setAndBind(_n193,_h35);continue;}this._isConsumeData()&&(_h35=_filterInstanceProperty(_h35).call(_h35,function(e){return!e[a.$consumed];}));_h35.length>d?_h35=_sliceInstanceProperty(_h35).call(_h35,0,d):0===_h35.length&&(_h35=null);_h35&&this._isConsumeData()&&_h35.forEach(function(e){e[a.$consumed]=!0;});}else{if(!_n193.name){this._setAndBind(_n193,t);continue;}if(this._isConsumeData()){var _r333=[];for(;_r333.length<d;){var _i165=this._findDataByNameToConsume(_n193.name,_n193[a.$hasSettableValue](),t,_e531);if(!_i165)break;_i165[a.$consumed]=!0;_r333.push(_i165);}_h35=_r333.length>0?_r333:null;}else{_h35=t[a.$getRealChildrenByNameIt](_n193.name,!1,this.emptyMerge).next().value;if(!_h35){if(0===u){r.push(_n193);continue;}var _e532=t[a.$namespaceId]===c?-1:t[a.$namespaceId];_h35=_n193[a.$data]=new a.XmlObject(_e532,_n193.name);this.emptyMerge&&(_h35[a.$consumed]=!0);t[a.$appendChild](_h35);this._setAndBind(_n193,_h35);continue;}this.emptyMerge&&(_h35[a.$consumed]=!0);_h35=[_h35];}}_h35?this._bindOccurrences(_n193,_h35,_s122):u>0?this._setAndBind(_n193,t):r.push(_n193);}}catch(err){_iterator148.e(err);}finally{_iterator148.f();}r.forEach(function(e){return e[a.$getParent]()[a.$removeChild](e);});}}]);return Binder;}();},function(e,t,r){\"use strict\";var _marked=/*#__PURE__*/_regeneratorRuntime.mark(getContainedChildren);_Object$defineProperty(t,\"__esModule\",{value:!0});t.Value=t.Text=t.TemplateNamespace=t.Template=t.SetProperty=t.Items=t.Field=t.BindItems=void 0;var a=r(202),n=r(204),i=r(208),s=r(209),o=r(203),c=r(2),l=r(210),h=r(131),u=r(205);var d=n.NamespaceIds.template.id,f=\"http://www.w3.org/2000/svg\",g=/^H(\\d+)$/,p=new _Set([\"image/gif\",\"image/jpeg\",\"image/jpg\",\"image/pjpeg\",\"image/png\",\"image/apng\",\"image/x-png\",\"image/bmp\",\"image/x-ms-bmp\",\"image/tiff\",\"image/tif\",\"application/octet-stream\"]),m=[[[66,77],\"image/bmp\"],[[255,216,255],\"image/jpeg\"],[[73,73,42,0],\"image/tiff\"],[[77,77,0,42],\"image/tiff\"],[[71,73,70,56,57,97],\"image/gif\"],[[137,80,78,71,13,10,26,10],\"image/png\"]];function getBorderDims(e){if(!e||!e.border)return{w:0,h:0};var t=e.border[a.$getExtra]();return t?{w:t.widths[0]+t.widths[2]+t.insets[0]+t.insets[2],h:t.widths[1]+t.widths[3]+t.insets[1]+t.insets[3]}:{w:0,h:0};}function hasMargin(e){return e.margin&&(e.margin.topInset||e.margin.rightInset||e.margin.bottomInset||e.margin.leftInset);}function _setValue(e,t){if(!e.value){var _t403=new Value({});e[a.$appendChild](_t403);e.value=_t403;}e.value[a.$setValue](t);}function getContainedChildren(e){var _iterator149,_step149,_t404;return _regeneratorRuntime.wrap(function getContainedChildren$(_context340){while(1)switch(_context340.prev=_context340.next){case 0:_iterator149=_createForOfIteratorHelper(e[a.$getChildren]());_context340.prev=1;_iterator149.s();case 3:if((_step149=_iterator149.n()).done){_context340.next=13;break;}_t404=_step149.value;if(!(_t404 instanceof SubformSet)){_context340.next=9;break;}return _context340.delegateYield(_t404[a.$getContainedChildren](),\"t0\",7);case 7:_context340.next=11;break;case 9:_context340.next=11;return _t404;case 11:_context340.next=3;break;case 13:_context340.next=18;break;case 15:_context340.prev=15;_context340.t1=_context340[\"catch\"](1);_iterator149.e(_context340.t1);case 18:_context340.prev=18;_iterator149.f();return _context340.finish(18);case 21:case\"end\":return _context340.stop();}},_marked,null,[[1,15,18,21]]);}function isRequired(e){return e.validate&&\"error\"===e.validate.nullTest;}function setTabIndex(e){for(;e;){if(!e.traversal){e[a.$tabIndex]=e[a.$getParent]()[a.$tabIndex];return;}if(e[a.$tabIndex])return;var _t405=null;var _iterator150=_createForOfIteratorHelper(e.traversal[a.$getChildren]()),_step150;try{for(_iterator150.s();!(_step150=_iterator150.n()).done;){var _r335=_step150.value;if(\"next\"===_r335.operation){_t405=_r335;break;}}}catch(err){_iterator150.e(err);}finally{_iterator150.f();}if(!_t405||!_t405.ref){e[a.$tabIndex]=e[a.$getParent]()[a.$tabIndex];return;}var _r334=e[a.$getTemplateRoot]();e[a.$tabIndex]=++_r334[a.$tabIndex];var _n194=_r334[a.$searchNode](_t405.ref,e);if(!_n194)return;e=_n194[0];}}function applyAssist(e,t){var r=e.assist;if(r){var _e533=r[a.$toHTML]();_e533&&(t.title=_e533);var _n195=r.role.match(g);if(_n195){var _e534=\"heading\",_r336=_n195[1];t.role=_e534;t[\"aria-level\"]=_r336;}}if(\"table\"===e.layout)t.role=\"table\";else if(\"row\"===e.layout)t.role=\"row\";else{var _r337=e[a.$getParent]();\"row\"===_r337.layout&&(_r337.assist&&\"TH\"===_r337.assist.role?t.role=\"columnheader\":t.role=\"cell\");}}function ariaLabel(e){if(!e.assist)return null;var t=e.assist;return t.speak&&\"\"!==t.speak[a.$content]?t.speak[a.$content]:t.toolTip?t.toolTip[a.$content]:null;}function valueToHtml(e){return o.HTMLResult.success({name:\"div\",attributes:{class:[\"xfaRich\"],style:Object.create(null)},children:[{name:\"span\",attributes:{style:Object.create(null)},value:e}]});}function setFirstUnsplittable(e){var t=e[a.$getTemplateRoot]();if(null===t[a.$extra].firstUnsplittable){t[a.$extra].firstUnsplittable=e;t[a.$extra].noLayoutFailure=!0;}}function unsetFirstUnsplittable(e){var t=e[a.$getTemplateRoot]();t[a.$extra].firstUnsplittable===e&&(t[a.$extra].noLayoutFailure=!1);}function handleBreak(e){var _context341;if(e[a.$extra])return!1;e[a.$extra]=Object.create(null);if(\"auto\"===e.targetType)return!1;var t=e[a.$getTemplateRoot]();var r=null;if(e.target){r=t[a.$searchNode](e.target,e[a.$getParent]());if(!r)return!1;r=r[0];}var _t$a$$extra=t[a.$extra],n=_t$a$$extra.currentPageArea,i=_t$a$$extra.currentContentArea;if(\"pageArea\"===e.targetType){r instanceof PageArea||(r=null);if(e.startNew){e[a.$extra].target=r||n;return!0;}if(r&&r!==n){e[a.$extra].target=r;return!0;}return!1;}r instanceof ContentArea||(r=null);var s=r&&r[a.$getParent]();var o,c=s;if(e.startNew){if(r){var _e535=s.contentArea.children,_t406=_indexOfInstanceProperty(_e535).call(_e535,i),_a256=_indexOfInstanceProperty(_e535).call(_e535,r);-1!==_t406&&_t406<_a256&&(c=null);o=_a256-1;}else o=_indexOfInstanceProperty(_context341=n.contentArea.children).call(_context341,i);}else{var _context342;if(!r||r===i)return!1;o=_indexOfInstanceProperty(_context342=s.contentArea.children).call(_context342,r)-1;c=s===n?null:s;}e[a.$extra].target=c;e[a.$extra].index=o;return!0;}function handleOverflow(e,t,r){var n=e[a.$getTemplateRoot](),i=n[a.$extra].noLayoutFailure,s=t[a.$getSubformParent];t[a.$getSubformParent]=function(){return e;};n[a.$extra].noLayoutFailure=!0;var o=t[a.$toHTML](r);e[a.$addHTML](o.html,o.bbox);n[a.$extra].noLayoutFailure=i;t[a.$getSubformParent]=s;}var AppearanceFilter=/*#__PURE__*/function(_a$StringObject){_inherits(AppearanceFilter,_a$StringObject);function AppearanceFilter(e){var _this104;_classCallCheck(this,AppearanceFilter);_this104=_callSuper(this,AppearanceFilter,[d,\"appearanceFilter\"]);_this104.id=e.id||\"\";_this104.type=(0,o.getStringOption)(e.type,[\"optional\",\"required\"]);_this104.use=e.use||\"\";_this104.usehref=e.usehref||\"\";return _this104;}return _createClass(AppearanceFilter);}(a.StringObject);var Arc=/*#__PURE__*/function(_a$XFAObject,_a$$toHTML){_inherits(Arc,_a$XFAObject);function Arc(e){var _this105;_classCallCheck(this,Arc);_this105=_callSuper(this,Arc,[d,\"arc\",!0]);_this105.circular=(0,o.getInteger)({data:e.circular,defaultValue:0,validate:function validate(e){return 1===e;}});_this105.hand=(0,o.getStringOption)(e.hand,[\"even\",\"left\",\"right\"]);_this105.id=e.id||\"\";_this105.startAngle=(0,o.getFloat)({data:e.startAngle,defaultValue:0,validate:function validate(e){return!0;}});_this105.sweepAngle=(0,o.getFloat)({data:e.sweepAngle,defaultValue:360,validate:function validate(e){return!0;}});_this105.use=e.use||\"\";_this105.usehref=e.usehref||\"\";_this105.edge=null;_this105.fill=null;return _this105;}_createClass(Arc,[{key:_a$$toHTML,value:function value(){var e=this.edge||new Edge({}),t=e[a.$toStyle](),r=Object.create(null);_fillInstanceProperty(this)&&\"visible\"===_fillInstanceProperty(this).presence?_extends(r,_fillInstanceProperty(this)[a.$toStyle]()):r.fill=\"transparent\";r.strokeWidth=(0,s.measureToString)(\"visible\"===e.presence?e.thickness:0);r.stroke=t.color;var n;var i={xmlns:f,style:{width:\"100%\",height:\"100%\",overflow:\"visible\"}};if(360===this.sweepAngle)n={name:\"ellipse\",attributes:{xmlns:f,cx:\"50%\",cy:\"50%\",rx:\"50%\",ry:\"50%\",style:r}};else{var _context343,_context344,_context345,_context346;var _e536=this.startAngle*Math.PI/180,_t407=this.sweepAngle*Math.PI/180,_a257=this.sweepAngle>180?1:0,_s123=50*(1+Math.cos(_e536)),_o77=50*(1-Math.sin(_e536)),_c57=50*(1+Math.cos(_e536+_t407)),_l38=50*(1-Math.sin(_e536+_t407));n={name:\"path\",attributes:{xmlns:f,d:_concatInstanceProperty(_context343=_concatInstanceProperty(_context344=_concatInstanceProperty(_context345=_concatInstanceProperty(_context346=\"M \".concat(_s123,\" \")).call(_context346,_o77,\" A 50 50 0 \")).call(_context345,_a257,\" 0 \")).call(_context344,_c57,\" \")).call(_context343,_l38),vectorEffect:\"non-scaling-stroke\",style:r}};_extends(i,{viewBox:\"0 0 100 100\",preserveAspectRatio:\"none\"});}var c={name:\"svg\",children:[n],attributes:i};if(hasMargin(this[a.$getParent]()[a.$getParent]()))return o.HTMLResult.success({name:\"div\",attributes:{style:{display:\"inline\",width:\"100%\",height:\"100%\"}},children:[c]});c.attributes.style.position=\"absolute\";return o.HTMLResult.success(c);}}]);return Arc;}(a.XFAObject,a.$toHTML);var Area=/*#__PURE__*/function(_a$XFAObject2,_a$$getContainedChild,_a$$isTransparent,_a$$isBindable,_a$$addHTML,_a$$getAvailableSpace,_a$$toHTML2){_inherits(Area,_a$XFAObject2);function Area(e){var _this106;_classCallCheck(this,Area);_this106=_callSuper(this,Area,[d,\"area\",!0]);_this106.colSpan=(0,o.getInteger)({data:e.colSpan,defaultValue:1,validate:function validate(e){return e>=1||-1===e;}});_this106.id=e.id||\"\";_this106.name=e.name||\"\";_this106.relevant=(0,o.getRelevant)(e.relevant);_this106.use=e.use||\"\";_this106.usehref=e.usehref||\"\";_this106.x=(0,o.getMeasurement)(e.x,\"0pt\");_this106.y=(0,o.getMeasurement)(e.y,\"0pt\");_this106.desc=null;_this106.extras=null;_this106.area=new a.XFAObjectArray();_this106.draw=new a.XFAObjectArray();_this106.exObject=new a.XFAObjectArray();_this106.exclGroup=new a.XFAObjectArray();_this106.field=new a.XFAObjectArray();_this106.subform=new a.XFAObjectArray();_this106.subformSet=new a.XFAObjectArray();return _this106;}_createClass(Area,[{key:_a$$getContainedChild,value:/*#__PURE__*/_regeneratorRuntime.mark(function value(){return _regeneratorRuntime.wrap(function value$(_context347){while(1)switch(_context347.prev=_context347.next){case 0:return _context347.delegateYield(getContainedChildren(this),\"t0\",1);case 1:case\"end\":return _context347.stop();}},value,this);})},{key:_a$$isTransparent,value:function value(){return!0;}},{key:_a$$isBindable,value:function value(){return!0;}},{key:_a$$addHTML,value:function value(e,t){var _t408=_slicedToArray(t,4),r=_t408[0],n=_t408[1],i=_t408[2],s=_t408[3];this[a.$extra].width=Math.max(this[a.$extra].width,r+i);this[a.$extra].height=Math.max(this[a.$extra].height,n+s);this[a.$extra].children.push(e);}},{key:_a$$getAvailableSpace,value:function value(){return this[a.$extra].availableSpace;}},{key:_a$$toHTML2,value:function value(e){var t=(0,s.toStyle)(this,\"position\"),r={style:t,id:this[a.$uid],class:[\"xfaArea\"]};(0,s.isPrintOnly)(this)&&r.class.push(\"xfaPrintOnly\");this.name&&(r.xfaName=this.name);var n=[];this[a.$extra]={children:n,width:0,height:0,availableSpace:e};var i=this[a.$childrenToHTML]({filter:new _Set([\"area\",\"draw\",\"field\",\"exclGroup\",\"subform\",\"subformSet\"]),include:!0});if(!i.success){if(i.isBreak())return i;delete this[a.$extra];return o.HTMLResult.FAILURE;}t.width=(0,s.measureToString)(this[a.$extra].width);t.height=(0,s.measureToString)(this[a.$extra].height);var c={name:\"div\",attributes:r,children:n},l=[this.x,this.y,this[a.$extra].width,this[a.$extra].height];delete this[a.$extra];return o.HTMLResult.success(c,l);}}]);return Area;}(a.XFAObject,a.$getContainedChildren,a.$isTransparent,a.$isBindable,a.$addHTML,a.$getAvailableSpace,a.$toHTML);var Assist=/*#__PURE__*/function(_a$XFAObject3,_a$$toHTML3){_inherits(Assist,_a$XFAObject3);function Assist(e){var _this107;_classCallCheck(this,Assist);_this107=_callSuper(this,Assist,[d,\"assist\",!0]);_this107.id=e.id||\"\";_this107.role=e.role||\"\";_this107.use=e.use||\"\";_this107.usehref=e.usehref||\"\";_this107.speak=null;_this107.toolTip=null;return _this107;}_createClass(Assist,[{key:_a$$toHTML3,value:function value(){return this.toolTip&&this.toolTip[a.$content]?this.toolTip[a.$content]:null;}}]);return Assist;}(a.XFAObject,a.$toHTML);var Barcode=/*#__PURE__*/function(_a$XFAObject4){_inherits(Barcode,_a$XFAObject4);function Barcode(e){var _this108;_classCallCheck(this,Barcode);_this108=_callSuper(this,Barcode,[d,\"barcode\",!0]);_this108.charEncoding=(0,o.getKeyword)({data:e.charEncoding?e.charEncoding.toLowerCase():\"\",defaultValue:\"\",validate:function validate(e){var _context348;return _includesInstanceProperty(_context348=[\"utf-8\",\"big-five\",\"fontspecific\",\"gbk\",\"gb-18030\",\"gb-2312\",\"ksc-5601\",\"none\",\"shift-jis\",\"ucs-2\",\"utf-16\"]).call(_context348,e)||e.match(/iso-8859-\\d{2}/);}});_this108.checksum=(0,o.getStringOption)(e.checksum,[\"none\",\"1mod10\",\"1mod10_1mod11\",\"2mod10\",\"auto\"]);_this108.dataColumnCount=(0,o.getInteger)({data:e.dataColumnCount,defaultValue:-1,validate:function validate(e){return e>=0;}});_this108.dataLength=(0,o.getInteger)({data:e.dataLength,defaultValue:-1,validate:function validate(e){return e>=0;}});_this108.dataPrep=(0,o.getStringOption)(e.dataPrep,[\"none\",\"flateCompress\"]);_this108.dataRowCount=(0,o.getInteger)({data:e.dataRowCount,defaultValue:-1,validate:function validate(e){return e>=0;}});_this108.endChar=e.endChar||\"\";_this108.errorCorrectionLevel=(0,o.getInteger)({data:e.errorCorrectionLevel,defaultValue:-1,validate:function validate(e){return e>=0&&e<=8;}});_this108.id=e.id||\"\";_this108.moduleHeight=(0,o.getMeasurement)(e.moduleHeight,\"5mm\");_this108.moduleWidth=(0,o.getMeasurement)(e.moduleWidth,\"0.25mm\");_this108.printCheckDigit=(0,o.getInteger)({data:e.printCheckDigit,defaultValue:0,validate:function validate(e){return 1===e;}});_this108.rowColumnRatio=(0,o.getRatio)(e.rowColumnRatio);_this108.startChar=e.startChar||\"\";_this108.textLocation=(0,o.getStringOption)(e.textLocation,[\"below\",\"above\",\"aboveEmbedded\",\"belowEmbedded\",\"none\"]);_this108.truncate=(0,o.getInteger)({data:e.truncate,defaultValue:0,validate:function validate(e){return 1===e;}});_this108.type=(0,o.getStringOption)(e.type?e.type.toLowerCase():\"\",[\"aztec\",\"codabar\",\"code2of5industrial\",\"code2of5interleaved\",\"code2of5matrix\",\"code2of5standard\",\"code3of9\",\"code3of9extended\",\"code11\",\"code49\",\"code93\",\"code128\",\"code128a\",\"code128b\",\"code128c\",\"code128sscc\",\"datamatrix\",\"ean8\",\"ean8add2\",\"ean8add5\",\"ean13\",\"ean13add2\",\"ean13add5\",\"ean13pwcd\",\"fim\",\"logmars\",\"maxicode\",\"msi\",\"pdf417\",\"pdf417macro\",\"plessey\",\"postauscust2\",\"postauscust3\",\"postausreplypaid\",\"postausstandard\",\"postukrm4scc\",\"postusdpbc\",\"postusimb\",\"postusstandard\",\"postus5zip\",\"qrcode\",\"rfid\",\"rss14\",\"rss14expanded\",\"rss14limited\",\"rss14stacked\",\"rss14stackedomni\",\"rss14truncated\",\"telepen\",\"ucc128\",\"ucc128random\",\"ucc128sscc\",\"upca\",\"upcaadd2\",\"upcaadd5\",\"upcapwcd\",\"upce\",\"upceadd2\",\"upceadd5\",\"upcean2\",\"upcean5\",\"upsmaxicode\"]);_this108.upsMode=(0,o.getStringOption)(e.upsMode,[\"usCarrier\",\"internationalCarrier\",\"secureSymbol\",\"standardSymbol\"]);_this108.use=e.use||\"\";_this108.usehref=e.usehref||\"\";_this108.wideNarrowRatio=(0,o.getRatio)(e.wideNarrowRatio);_this108.encrypt=null;_this108.extras=null;return _this108;}return _createClass(Barcode);}(a.XFAObject);var Bind=/*#__PURE__*/function(_a$XFAObject5){_inherits(Bind,_a$XFAObject5);function Bind(e){var _this109;_classCallCheck(this,Bind);_this109=_callSuper(this,Bind,[d,\"bind\",!0]);_this109.match=(0,o.getStringOption)(e.match,[\"once\",\"dataRef\",\"global\",\"none\"]);_this109.ref=e.ref||\"\";_this109.picture=null;return _this109;}return _createClass(Bind);}(a.XFAObject);var BindItems=/*#__PURE__*/function(_a$XFAObject6){_inherits(BindItems,_a$XFAObject6);function BindItems(e){var _this110;_classCallCheck(this,BindItems);_this110=_callSuper(this,BindItems,[d,\"bindItems\"]);_this110.connection=e.connection||\"\";_this110.labelRef=e.labelRef||\"\";_this110.ref=e.ref||\"\";_this110.valueRef=e.valueRef||\"\";return _this110;}return _createClass(BindItems);}(a.XFAObject);t.BindItems=BindItems;var Bookend=/*#__PURE__*/function(_a$XFAObject7){_inherits(Bookend,_a$XFAObject7);function Bookend(e){var _this111;_classCallCheck(this,Bookend);_this111=_callSuper(this,Bookend,[d,\"bookend\"]);_this111.id=e.id||\"\";_this111.leader=e.leader||\"\";_this111.trailer=e.trailer||\"\";_this111.use=e.use||\"\";_this111.usehref=e.usehref||\"\";return _this111;}return _createClass(Bookend);}(a.XFAObject);var BooleanElement=/*#__PURE__*/function(_a$Option,_a$$toHTML4){_inherits(BooleanElement,_a$Option);function BooleanElement(e){var _this112;_classCallCheck(this,BooleanElement);_this112=_callSuper(this,BooleanElement,[d,\"boolean\"]);_this112.id=e.id||\"\";_this112.name=e.name||\"\";_this112.use=e.use||\"\";_this112.usehref=e.usehref||\"\";return _this112;}_createClass(BooleanElement,[{key:_a$$toHTML4,value:function value(e){return valueToHtml(1===this[a.$content]?\"1\":\"0\");}}]);return BooleanElement;}(a.Option01,a.$toHTML);var Border=/*#__PURE__*/function(_a$XFAObject8,_a$$getExtra,_a$$toStyle){_inherits(Border,_a$XFAObject8);function Border(e){var _this113;_classCallCheck(this,Border);_this113=_callSuper(this,Border,[d,\"border\",!0]);_this113.break=(0,o.getStringOption)(e.break,[\"close\",\"open\"]);_this113.hand=(0,o.getStringOption)(e.hand,[\"even\",\"left\",\"right\"]);_this113.id=e.id||\"\";_this113.presence=(0,o.getStringOption)(e.presence,[\"visible\",\"hidden\",\"inactive\",\"invisible\"]);_this113.relevant=(0,o.getRelevant)(e.relevant);_this113.use=e.use||\"\";_this113.usehref=e.usehref||\"\";_this113.corner=new a.XFAObjectArray(4);_this113.edge=new a.XFAObjectArray(4);_this113.extras=null;_this113.fill=null;_this113.margin=null;return _this113;}_createClass(Border,[{key:_a$$getExtra,value:function value(){if(!this[a.$extra]){var _context349;var _e537=_sliceInstanceProperty(_context349=this.edge.children).call(_context349);if(_e537.length<4){var _t409=_e537.at(-1)||new Edge({});for(var _r338=_e537.length;_r338<4;_r338++)_e537.push(_t409);}var _t410=_mapInstanceProperty(_e537).call(_e537,function(e){return e.thickness;}),_r339=[0,0,0,0];if(this.margin){_r339[0]=this.margin.topInset;_r339[1]=this.margin.rightInset;_r339[2]=this.margin.bottomInset;_r339[3]=this.margin.leftInset;}this[a.$extra]={widths:_t410,insets:_r339,edges:_e537};}return this[a.$extra];}},{key:_a$$toStyle,value:function value(){var _this$a$$getExtra=this[a.$getExtra](),e=_this$a$$getExtra.edges,t=_mapInstanceProperty(e).call(e,function(e){var t=e[a.$toStyle]();t.color=t.color||\"#000000\";return t;}),r=Object.create(null);this.margin&&_extends(r,this.margin[a.$toStyle]());_fillInstanceProperty(this)&&\"visible\"===_fillInstanceProperty(this).presence&&_extends(r,_fillInstanceProperty(this)[a.$toStyle]());if(this.corner.children.some(function(e){return 0!==e.radius;})){var _context350;var _e538=_mapInstanceProperty(_context350=this.corner.children).call(_context350,function(e){return e[a.$toStyle]();});if(2===_e538.length||3===_e538.length){var _t411=_e538.at(-1);for(var _r340=_e538.length;_r340<4;_r340++)_e538.push(_t411);}r.borderRadius=_mapInstanceProperty(_e538).call(_e538,function(e){return e.radius;}).join(\" \");}switch(this.presence){case\"invisible\":case\"hidden\":r.borderStyle=\"\";break;case\"inactive\":r.borderStyle=\"none\";break;default:r.borderStyle=_mapInstanceProperty(t).call(t,function(e){return e.style;}).join(\" \");}r.borderWidth=_mapInstanceProperty(t).call(t,function(e){return e.width;}).join(\" \");r.borderColor=_mapInstanceProperty(t).call(t,function(e){return e.color;}).join(\" \");return r;}}]);return Border;}(a.XFAObject,a.$getExtra,a.$toStyle);var Break=/*#__PURE__*/function(_a$XFAObject9){_inherits(Break,_a$XFAObject9);function Break(e){var _this114;_classCallCheck(this,Break);_this114=_callSuper(this,Break,[d,\"break\",!0]);_this114.after=(0,o.getStringOption)(e.after,[\"auto\",\"contentArea\",\"pageArea\",\"pageEven\",\"pageOdd\"]);_this114.afterTarget=e.afterTarget||\"\";_this114.before=(0,o.getStringOption)(e.before,[\"auto\",\"contentArea\",\"pageArea\",\"pageEven\",\"pageOdd\"]);_this114.beforeTarget=e.beforeTarget||\"\";_this114.bookendLeader=e.bookendLeader||\"\";_this114.bookendTrailer=e.bookendTrailer||\"\";_this114.id=e.id||\"\";_this114.overflowLeader=e.overflowLeader||\"\";_this114.overflowTarget=e.overflowTarget||\"\";_this114.overflowTrailer=e.overflowTrailer||\"\";_this114.startNew=(0,o.getInteger)({data:e.startNew,defaultValue:0,validate:function validate(e){return 1===e;}});_this114.use=e.use||\"\";_this114.usehref=e.usehref||\"\";_this114.extras=null;return _this114;}return _createClass(Break);}(a.XFAObject);var BreakAfter=/*#__PURE__*/function(_a$XFAObject10){_inherits(BreakAfter,_a$XFAObject10);function BreakAfter(e){var _this115;_classCallCheck(this,BreakAfter);_this115=_callSuper(this,BreakAfter,[d,\"breakAfter\",!0]);_this115.id=e.id||\"\";_this115.leader=e.leader||\"\";_this115.startNew=(0,o.getInteger)({data:e.startNew,defaultValue:0,validate:function validate(e){return 1===e;}});_this115.target=e.target||\"\";_this115.targetType=(0,o.getStringOption)(e.targetType,[\"auto\",\"contentArea\",\"pageArea\"]);_this115.trailer=e.trailer||\"\";_this115.use=e.use||\"\";_this115.usehref=e.usehref||\"\";_this115.script=null;return _this115;}return _createClass(BreakAfter);}(a.XFAObject);var BreakBefore=/*#__PURE__*/function(_a$XFAObject11,_a$$toHTML5){_inherits(BreakBefore,_a$XFAObject11);function BreakBefore(e){var _this116;_classCallCheck(this,BreakBefore);_this116=_callSuper(this,BreakBefore,[d,\"breakBefore\",!0]);_this116.id=e.id||\"\";_this116.leader=e.leader||\"\";_this116.startNew=(0,o.getInteger)({data:e.startNew,defaultValue:0,validate:function validate(e){return 1===e;}});_this116.target=e.target||\"\";_this116.targetType=(0,o.getStringOption)(e.targetType,[\"auto\",\"contentArea\",\"pageArea\"]);_this116.trailer=e.trailer||\"\";_this116.use=e.use||\"\";_this116.usehref=e.usehref||\"\";_this116.script=null;return _this116;}_createClass(BreakBefore,[{key:_a$$toHTML5,value:function value(e){this[a.$extra]={};return o.HTMLResult.FAILURE;}}]);return BreakBefore;}(a.XFAObject,a.$toHTML);var Button=/*#__PURE__*/function(_a$XFAObject12,_a$$toHTML6){_inherits(Button,_a$XFAObject12);function Button(e){var _this117;_classCallCheck(this,Button);_this117=_callSuper(this,Button,[d,\"button\",!0]);_this117.highlight=(0,o.getStringOption)(e.highlight,[\"inverted\",\"none\",\"outline\",\"push\"]);_this117.id=e.id||\"\";_this117.use=e.use||\"\";_this117.usehref=e.usehref||\"\";_this117.extras=null;return _this117;}_createClass(Button,[{key:_a$$toHTML6,value:function value(e){var t=this[a.$getParent]()[a.$getParent](),r={name:\"button\",attributes:{id:this[a.$uid],class:[\"xfaButton\"],style:{}},children:[]};var _iterator151=_createForOfIteratorHelper(t.event.children),_step151;try{for(_iterator151.s();!(_step151=_iterator151.n()).done;){var _e539=_step151.value;if(\"click\"!==_e539.activity||!_e539.script)continue;var _t412=(0,h.recoverJsURL)(_e539.script[a.$content]);if(!_t412)continue;var _n196=(0,s.fixURL)(_t412.url);_n196&&r.children.push({name:\"a\",attributes:{id:\"link\"+this[a.$uid],href:_n196,newWindow:_t412.newWindow,class:[\"xfaLink\"],style:{}},children:[]});}}catch(err){_iterator151.e(err);}finally{_iterator151.f();}return o.HTMLResult.success(r);}}]);return Button;}(a.XFAObject,a.$toHTML);var Calculate=/*#__PURE__*/function(_a$XFAObject13){_inherits(Calculate,_a$XFAObject13);function Calculate(e){var _this118;_classCallCheck(this,Calculate);_this118=_callSuper(this,Calculate,[d,\"calculate\",!0]);_this118.id=e.id||\"\";_this118.override=(0,o.getStringOption)(e.override,[\"disabled\",\"error\",\"ignore\",\"warning\"]);_this118.use=e.use||\"\";_this118.usehref=e.usehref||\"\";_this118.extras=null;_this118.message=null;_this118.script=null;return _this118;}return _createClass(Calculate);}(a.XFAObject);var Caption=/*#__PURE__*/function(_a$XFAObject14,_a$$setValue,_a$$getExtra2,_a$$toHTML7){_inherits(Caption,_a$XFAObject14);function Caption(e){var _this119;_classCallCheck(this,Caption);_this119=_callSuper(this,Caption,[d,\"caption\",!0]);_this119.id=e.id||\"\";_this119.placement=(0,o.getStringOption)(e.placement,[\"left\",\"bottom\",\"inline\",\"right\",\"top\"]);_this119.presence=(0,o.getStringOption)(e.presence,[\"visible\",\"hidden\",\"inactive\",\"invisible\"]);_this119.reserve=Math.ceil((0,o.getMeasurement)(e.reserve));_this119.use=e.use||\"\";_this119.usehref=e.usehref||\"\";_this119.extras=null;_this119.font=null;_this119.margin=null;_this119.para=null;_this119.value=null;return _this119;}_createClass(Caption,[{key:_a$$setValue,value:function value(e){_setValue(this,e);}},{key:_a$$getExtra2,value:function value(e){if(!this[a.$extra]){var _t413=e.width,_r341=e.height;switch(this.placement){case\"left\":case\"right\":case\"inline\":_t413=this.reserve<=0?_t413:this.reserve;break;case\"top\":case\"bottom\":_r341=this.reserve<=0?_r341:this.reserve;}this[a.$extra]=(0,s.layoutNode)(this,{width:_t413,height:_r341});}return this[a.$extra];}},{key:_a$$toHTML7,value:function value(e){if(!this.value)return o.HTMLResult.EMPTY;this[a.$pushPara]();var t=this.value[a.$toHTML](e).html;if(!t){this[a.$popPara]();return o.HTMLResult.EMPTY;}var r=this.reserve;if(this.reserve<=0){var _this$a$$getExtra2=this[a.$getExtra](e),_t414=_this$a$$getExtra2.w,_r342=_this$a$$getExtra2.h;switch(this.placement){case\"left\":case\"right\":case\"inline\":this.reserve=_t414;break;case\"top\":case\"bottom\":this.reserve=_r342;}}var n=[];\"string\"==typeof t?n.push({name:\"#text\",value:t}):n.push(t);var i=(0,s.toStyle)(this,\"font\",\"margin\",\"visibility\");switch(this.placement){case\"left\":case\"right\":this.reserve>0&&(i.width=(0,s.measureToString)(this.reserve));break;case\"top\":case\"bottom\":this.reserve>0&&(i.height=(0,s.measureToString)(this.reserve));}(0,s.setPara)(this,null,t);this[a.$popPara]();this.reserve=r;return o.HTMLResult.success({name:\"div\",attributes:{style:i,class:[\"xfaCaption\"]},children:n});}}]);return Caption;}(a.XFAObject,a.$setValue,a.$getExtra,a.$toHTML);var Certificate=/*#__PURE__*/function(_a$StringObject2){_inherits(Certificate,_a$StringObject2);function Certificate(e){var _this120;_classCallCheck(this,Certificate);_this120=_callSuper(this,Certificate,[d,\"certificate\"]);_this120.id=e.id||\"\";_this120.name=e.name||\"\";_this120.use=e.use||\"\";_this120.usehref=e.usehref||\"\";return _this120;}return _createClass(Certificate);}(a.StringObject);var Certificates=/*#__PURE__*/function(_a$XFAObject15){_inherits(Certificates,_a$XFAObject15);function Certificates(e){var _this121;_classCallCheck(this,Certificates);_this121=_callSuper(this,Certificates,[d,\"certificates\",!0]);_this121.credentialServerPolicy=(0,o.getStringOption)(e.credentialServerPolicy,[\"optional\",\"required\"]);_this121.id=e.id||\"\";_this121.url=e.url||\"\";_this121.urlPolicy=e.urlPolicy||\"\";_this121.use=e.use||\"\";_this121.usehref=e.usehref||\"\";_this121.encryption=null;_this121.issuers=null;_this121.keyUsage=null;_this121.oids=null;_this121.signing=null;_this121.subjectDNs=null;return _this121;}return _createClass(Certificates);}(a.XFAObject);var CheckButton=/*#__PURE__*/function(_a$XFAObject16,_a$$toHTML8){_inherits(CheckButton,_a$XFAObject16);function CheckButton(e){var _this122;_classCallCheck(this,CheckButton);_this122=_callSuper(this,CheckButton,[d,\"checkButton\",!0]);_this122.id=e.id||\"\";_this122.mark=(0,o.getStringOption)(e.mark,[\"default\",\"check\",\"circle\",\"cross\",\"diamond\",\"square\",\"star\"]);_this122.shape=(0,o.getStringOption)(e.shape,[\"square\",\"round\"]);_this122.size=(0,o.getMeasurement)(e.size,\"10pt\");_this122.use=e.use||\"\";_this122.usehref=e.usehref||\"\";_this122.border=null;_this122.extras=null;_this122.margin=null;return _this122;}_createClass(CheckButton,[{key:_a$$toHTML8,value:function value(e){var t=(0,s.toStyle)(\"margin\"),r=(0,s.measureToString)(this.size);t.width=t.height=r;var n,i,c;var l=this[a.$getParent]()[a.$getParent](),h=l.items.children.length&&l.items.children[0][a.$toHTML]().html||[],u={on:(void 0!==h[0]?h[0]:\"on\").toString(),off:(void 0!==h[1]?h[1]:\"off\").toString()},d=(l.value&&l.value[a.$text]()||\"off\")===u.on||void 0,f=l[a.$getSubformParent](),g=l[a.$uid];var p;if(f instanceof ExclGroup){c=f[a.$uid];n=\"radio\";i=\"xfaRadio\";p=f[a.$data]&&f[a.$data][a.$uid]||f[a.$uid];}else{n=\"checkbox\";i=\"xfaCheckbox\";p=l[a.$data]&&l[a.$data][a.$uid]||l[a.$uid];}var m={name:\"input\",attributes:{class:[i],style:t,fieldId:g,dataId:p,type:n,checked:d,xfaOn:u.on,xfaOff:u.off,\"aria-label\":ariaLabel(l),\"aria-required\":!1}};c&&(m.attributes.name=c);if(isRequired(l)){m.attributes[\"aria-required\"]=!0;m.attributes.required=!0;}return o.HTMLResult.success({name:\"label\",attributes:{class:[\"xfaLabel\"]},children:[m]});}}]);return CheckButton;}(a.XFAObject,a.$toHTML);var ChoiceList=/*#__PURE__*/function(_a$XFAObject17,_a$$toHTML9){_inherits(ChoiceList,_a$XFAObject17);function ChoiceList(e){var _this123;_classCallCheck(this,ChoiceList);_this123=_callSuper(this,ChoiceList,[d,\"choiceList\",!0]);_this123.commitOn=(0,o.getStringOption)(e.commitOn,[\"select\",\"exit\"]);_this123.id=e.id||\"\";_this123.open=(0,o.getStringOption)(e.open,[\"userControl\",\"always\",\"multiSelect\",\"onEntry\"]);_this123.textEntry=(0,o.getInteger)({data:e.textEntry,defaultValue:0,validate:function validate(e){return 1===e;}});_this123.use=e.use||\"\";_this123.usehref=e.usehref||\"\";_this123.border=null;_this123.extras=null;_this123.margin=null;return _this123;}_createClass(ChoiceList,[{key:_a$$toHTML9,value:function value(e){var t=(0,s.toStyle)(this,\"border\",\"margin\"),r=this[a.$getParent]()[a.$getParent](),n={fontSize:\"calc(\".concat(r.font&&r.font.size||10,\"px * var(--scale-factor))\")},i=[];if(r.items.children.length>0){var _e540=r.items;var _t415=0,_s124=0;if(2===_e540.children.length){_t415=_e540.children[0].save;_s124=1-_t415;}var _o78=_e540.children[_t415][a.$toHTML]().html,_c58=_e540.children[_s124][a.$toHTML]().html;var _l39=!1;var _h36=r.value&&r.value[a.$text]()||\"\";for(var _e541=0,_t416=_o78.length;_e541<_t416;_e541++){var _t417={name:\"option\",attributes:{value:_c58[_e541]||_o78[_e541],style:n},value:_o78[_e541]};_c58[_e541]===_h36&&(_t417.attributes.selected=_l39=!0);i.push(_t417);}_l39||_spliceInstanceProperty(i).call(i,0,0,{name:\"option\",attributes:{hidden:!0,selected:!0},value:\" \"});}var c={class:[\"xfaSelect\"],fieldId:r[a.$uid],dataId:r[a.$data]&&r[a.$data][a.$uid]||r[a.$uid],style:t,\"aria-label\":ariaLabel(r),\"aria-required\":!1};if(isRequired(r)){c[\"aria-required\"]=!0;c.required=!0;}\"multiSelect\"===this.open&&(c.multiple=!0);return o.HTMLResult.success({name:\"label\",attributes:{class:[\"xfaLabel\"]},children:[{name:\"select\",children:i,attributes:c}]});}}]);return ChoiceList;}(a.XFAObject,a.$toHTML);var Color=/*#__PURE__*/function(_a$XFAObject18,_a$$hasSettableValue,_a$$toStyle2){_inherits(Color,_a$XFAObject18);function Color(e){var _this124;_classCallCheck(this,Color);_this124=_callSuper(this,Color,[d,\"color\",!0]);_this124.cSpace=(0,o.getStringOption)(e.cSpace,[\"SRGB\"]);_this124.id=e.id||\"\";_this124.use=e.use||\"\";_this124.usehref=e.usehref||\"\";_this124.value=e.value?(0,o.getColor)(e.value):\"\";_this124.extras=null;return _this124;}_createClass(Color,[{key:_a$$hasSettableValue,value:function value(){return!1;}},{key:_a$$toStyle2,value:function value(){return this.value?c.Util.makeHexColor(this.value.r,this.value.g,this.value.b):null;}}]);return Color;}(a.XFAObject,a.$hasSettableValue,a.$toStyle);var Comb=/*#__PURE__*/function(_a$XFAObject19){_inherits(Comb,_a$XFAObject19);function Comb(e){var _this125;_classCallCheck(this,Comb);_this125=_callSuper(this,Comb,[d,\"comb\"]);_this125.id=e.id||\"\";_this125.numberOfCells=(0,o.getInteger)({data:e.numberOfCells,defaultValue:0,validate:function validate(e){return e>=0;}});_this125.use=e.use||\"\";_this125.usehref=e.usehref||\"\";return _this125;}return _createClass(Comb);}(a.XFAObject);var Connect=/*#__PURE__*/function(_a$XFAObject20){_inherits(Connect,_a$XFAObject20);function Connect(e){var _this126;_classCallCheck(this,Connect);_this126=_callSuper(this,Connect,[d,\"connect\",!0]);_this126.connection=e.connection||\"\";_this126.id=e.id||\"\";_this126.ref=e.ref||\"\";_this126.usage=(0,o.getStringOption)(e.usage,[\"exportAndImport\",\"exportOnly\",\"importOnly\"]);_this126.use=e.use||\"\";_this126.usehref=e.usehref||\"\";_this126.picture=null;return _this126;}return _createClass(Connect);}(a.XFAObject);var ContentArea=/*#__PURE__*/function(_a$XFAObject21,_a$$toHTML10){_inherits(ContentArea,_a$XFAObject21);function ContentArea(e){var _this127;_classCallCheck(this,ContentArea);_this127=_callSuper(this,ContentArea,[d,\"contentArea\",!0]);_this127.h=(0,o.getMeasurement)(e.h);_this127.id=e.id||\"\";_this127.name=e.name||\"\";_this127.relevant=(0,o.getRelevant)(e.relevant);_this127.use=e.use||\"\";_this127.usehref=e.usehref||\"\";_this127.w=(0,o.getMeasurement)(e.w);_this127.x=(0,o.getMeasurement)(e.x,\"0pt\");_this127.y=(0,o.getMeasurement)(e.y,\"0pt\");_this127.desc=null;_this127.extras=null;return _this127;}_createClass(ContentArea,[{key:_a$$toHTML10,value:function value(e){var t={left:(0,s.measureToString)(this.x),top:(0,s.measureToString)(this.y),width:(0,s.measureToString)(this.w),height:(0,s.measureToString)(this.h)},r=[\"xfaContentarea\"];(0,s.isPrintOnly)(this)&&r.push(\"xfaPrintOnly\");return o.HTMLResult.success({name:\"div\",children:[],attributes:{style:t,class:r,id:this[a.$uid]}});}}]);return ContentArea;}(a.XFAObject,a.$toHTML);var Corner=/*#__PURE__*/function(_a$XFAObject22,_a$$toStyle3){_inherits(Corner,_a$XFAObject22);function Corner(e){var _this128;_classCallCheck(this,Corner);_this128=_callSuper(this,Corner,[d,\"corner\",!0]);_this128.id=e.id||\"\";_this128.inverted=(0,o.getInteger)({data:e.inverted,defaultValue:0,validate:function validate(e){return 1===e;}});_this128.join=(0,o.getStringOption)(e.join,[\"square\",\"round\"]);_this128.presence=(0,o.getStringOption)(e.presence,[\"visible\",\"hidden\",\"inactive\",\"invisible\"]);_this128.radius=(0,o.getMeasurement)(e.radius);_this128.stroke=(0,o.getStringOption)(e.stroke,[\"solid\",\"dashDot\",\"dashDotDot\",\"dashed\",\"dotted\",\"embossed\",\"etched\",\"lowered\",\"raised\"]);_this128.thickness=(0,o.getMeasurement)(e.thickness,\"0.5pt\");_this128.use=e.use||\"\";_this128.usehref=e.usehref||\"\";_this128.color=null;_this128.extras=null;return _this128;}_createClass(Corner,[{key:_a$$toStyle3,value:function value(){var e=(0,s.toStyle)(this,\"visibility\");e.radius=(0,s.measureToString)(\"square\"===this.join?0:this.radius);return e;}}]);return Corner;}(a.XFAObject,a.$toStyle);var DateElement=/*#__PURE__*/function(_a$ContentObject,_a$$finalize,_a$$toHTML11){_inherits(DateElement,_a$ContentObject);function DateElement(e){var _this129;_classCallCheck(this,DateElement);_this129=_callSuper(this,DateElement,[d,\"date\"]);_this129.id=e.id||\"\";_this129.name=e.name||\"\";_this129.use=e.use||\"\";_this129.usehref=e.usehref||\"\";return _this129;}_createClass(DateElement,[{key:_a$$finalize,value:function value(){var _context351;var e=_trimInstanceProperty(_context351=this[a.$content]).call(_context351);this[a.$content]=e?new Date(e):null;}},{key:_a$$toHTML11,value:function value(e){return valueToHtml(this[a.$content]?this[a.$content].toString():\"\");}}]);return DateElement;}(a.ContentObject,a.$finalize,a.$toHTML);var DateTime=/*#__PURE__*/function(_a$ContentObject2,_a$$finalize2,_a$$toHTML12){_inherits(DateTime,_a$ContentObject2);function DateTime(e){var _this130;_classCallCheck(this,DateTime);_this130=_callSuper(this,DateTime,[d,\"dateTime\"]);_this130.id=e.id||\"\";_this130.name=e.name||\"\";_this130.use=e.use||\"\";_this130.usehref=e.usehref||\"\";return _this130;}_createClass(DateTime,[{key:_a$$finalize2,value:function value(){var _context352;var e=_trimInstanceProperty(_context352=this[a.$content]).call(_context352);this[a.$content]=e?new Date(e):null;}},{key:_a$$toHTML12,value:function value(e){return valueToHtml(this[a.$content]?this[a.$content].toString():\"\");}}]);return DateTime;}(a.ContentObject,a.$finalize,a.$toHTML);var DateTimeEdit=/*#__PURE__*/function(_a$XFAObject23,_a$$toHTML13){_inherits(DateTimeEdit,_a$XFAObject23);function DateTimeEdit(e){var _this131;_classCallCheck(this,DateTimeEdit);_this131=_callSuper(this,DateTimeEdit,[d,\"dateTimeEdit\",!0]);_this131.hScrollPolicy=(0,o.getStringOption)(e.hScrollPolicy,[\"auto\",\"off\",\"on\"]);_this131.id=e.id||\"\";_this131.picker=(0,o.getStringOption)(e.picker,[\"host\",\"none\"]);_this131.use=e.use||\"\";_this131.usehref=e.usehref||\"\";_this131.border=null;_this131.comb=null;_this131.extras=null;_this131.margin=null;return _this131;}_createClass(DateTimeEdit,[{key:_a$$toHTML13,value:function value(e){var t=(0,s.toStyle)(this,\"border\",\"font\",\"margin\"),r=this[a.$getParent]()[a.$getParent](),n={name:\"input\",attributes:{type:\"text\",fieldId:r[a.$uid],dataId:r[a.$data]&&r[a.$data][a.$uid]||r[a.$uid],class:[\"xfaTextfield\"],style:t,\"aria-label\":ariaLabel(r),\"aria-required\":!1}};if(isRequired(r)){n.attributes[\"aria-required\"]=!0;n.attributes.required=!0;}return o.HTMLResult.success({name:\"label\",attributes:{class:[\"xfaLabel\"]},children:[n]});}}]);return DateTimeEdit;}(a.XFAObject,a.$toHTML);var Decimal=/*#__PURE__*/function(_a$ContentObject3,_a$$finalize3,_a$$toHTML14){_inherits(Decimal,_a$ContentObject3);function Decimal(e){var _this132;_classCallCheck(this,Decimal);_this132=_callSuper(this,Decimal,[d,\"decimal\"]);_this132.fracDigits=(0,o.getInteger)({data:e.fracDigits,defaultValue:2,validate:function validate(e){return!0;}});_this132.id=e.id||\"\";_this132.leadDigits=(0,o.getInteger)({data:e.leadDigits,defaultValue:-1,validate:function validate(e){return!0;}});_this132.name=e.name||\"\";_this132.use=e.use||\"\";_this132.usehref=e.usehref||\"\";return _this132;}_createClass(Decimal,[{key:_a$$finalize3,value:function value(){var _context353;var e=_parseFloat(_trimInstanceProperty(_context353=this[a.$content]).call(_context353));this[a.$content]=isNaN(e)?null:e;}},{key:_a$$toHTML14,value:function value(e){return valueToHtml(null!==this[a.$content]?this[a.$content].toString():\"\");}}]);return Decimal;}(a.ContentObject,a.$finalize,a.$toHTML);var DefaultUi=/*#__PURE__*/function(_a$XFAObject24){_inherits(DefaultUi,_a$XFAObject24);function DefaultUi(e){var _this133;_classCallCheck(this,DefaultUi);_this133=_callSuper(this,DefaultUi,[d,\"defaultUi\",!0]);_this133.id=e.id||\"\";_this133.use=e.use||\"\";_this133.usehref=e.usehref||\"\";_this133.extras=null;return _this133;}return _createClass(DefaultUi);}(a.XFAObject);var Desc=/*#__PURE__*/function(_a$XFAObject25){_inherits(Desc,_a$XFAObject25);function Desc(e){var _this134;_classCallCheck(this,Desc);_this134=_callSuper(this,Desc,[d,\"desc\",!0]);_this134.id=e.id||\"\";_this134.use=e.use||\"\";_this134.usehref=e.usehref||\"\";_this134.boolean=new a.XFAObjectArray();_this134.date=new a.XFAObjectArray();_this134.dateTime=new a.XFAObjectArray();_this134.decimal=new a.XFAObjectArray();_this134.exData=new a.XFAObjectArray();_this134.float=new a.XFAObjectArray();_this134.image=new a.XFAObjectArray();_this134.integer=new a.XFAObjectArray();_this134.text=new a.XFAObjectArray();_this134.time=new a.XFAObjectArray();return _this134;}return _createClass(Desc);}(a.XFAObject);var DigestMethod=/*#__PURE__*/function(_a$OptionObject){_inherits(DigestMethod,_a$OptionObject);function DigestMethod(e){var _this135;_classCallCheck(this,DigestMethod);_this135=_callSuper(this,DigestMethod,[d,\"digestMethod\",[\"\",\"SHA1\",\"SHA256\",\"SHA512\",\"RIPEMD160\"]]);_this135.id=e.id||\"\";_this135.use=e.use||\"\";_this135.usehref=e.usehref||\"\";return _this135;}return _createClass(DigestMethod);}(a.OptionObject);var DigestMethods=/*#__PURE__*/function(_a$XFAObject26){_inherits(DigestMethods,_a$XFAObject26);function DigestMethods(e){var _this136;_classCallCheck(this,DigestMethods);_this136=_callSuper(this,DigestMethods,[d,\"digestMethods\",!0]);_this136.id=e.id||\"\";_this136.type=(0,o.getStringOption)(e.type,[\"optional\",\"required\"]);_this136.use=e.use||\"\";_this136.usehref=e.usehref||\"\";_this136.digestMethod=new a.XFAObjectArray();return _this136;}return _createClass(DigestMethods);}(a.XFAObject);var Draw=/*#__PURE__*/function(_a$XFAObject27,_a$$setValue2,_a$$toHTML15){_inherits(Draw,_a$XFAObject27);function Draw(e){var _this137;_classCallCheck(this,Draw);_this137=_callSuper(this,Draw,[d,\"draw\",!0]);_this137.anchorType=(0,o.getStringOption)(e.anchorType,[\"topLeft\",\"bottomCenter\",\"bottomLeft\",\"bottomRight\",\"middleCenter\",\"middleLeft\",\"middleRight\",\"topCenter\",\"topRight\"]);_this137.colSpan=(0,o.getInteger)({data:e.colSpan,defaultValue:1,validate:function validate(e){return e>=1||-1===e;}});_this137.h=e.h?(0,o.getMeasurement)(e.h):\"\";_this137.hAlign=(0,o.getStringOption)(e.hAlign,[\"left\",\"center\",\"justify\",\"justifyAll\",\"radix\",\"right\"]);_this137.id=e.id||\"\";_this137.locale=e.locale||\"\";_this137.maxH=(0,o.getMeasurement)(e.maxH,\"0pt\");_this137.maxW=(0,o.getMeasurement)(e.maxW,\"0pt\");_this137.minH=(0,o.getMeasurement)(e.minH,\"0pt\");_this137.minW=(0,o.getMeasurement)(e.minW,\"0pt\");_this137.name=e.name||\"\";_this137.presence=(0,o.getStringOption)(e.presence,[\"visible\",\"hidden\",\"inactive\",\"invisible\"]);_this137.relevant=(0,o.getRelevant)(e.relevant);_this137.rotate=(0,o.getInteger)({data:e.rotate,defaultValue:0,validate:function validate(e){return e%90==0;}});_this137.use=e.use||\"\";_this137.usehref=e.usehref||\"\";_this137.w=e.w?(0,o.getMeasurement)(e.w):\"\";_this137.x=(0,o.getMeasurement)(e.x,\"0pt\");_this137.y=(0,o.getMeasurement)(e.y,\"0pt\");_this137.assist=null;_this137.border=null;_this137.caption=null;_this137.desc=null;_this137.extras=null;_this137.font=null;_this137.keep=null;_this137.margin=null;_this137.para=null;_this137.traversal=null;_this137.ui=null;_this137.value=null;_this137.setProperty=new a.XFAObjectArray();return _this137;}_createClass(Draw,[{key:_a$$setValue2,value:function value(e){_setValue(this,e);}},{key:_a$$toHTML15,value:function value(e){setTabIndex(this);if(\"hidden\"===this.presence||\"inactive\"===this.presence)return o.HTMLResult.EMPTY;(0,s.fixDimensions)(this);this[a.$pushPara]();var t=this.w,r=this.h,_ref15=(0,s.layoutNode)(this,e),n=_ref15.w,c=_ref15.h,l=_ref15.isBroken;if(n&&\"\"===this.w){if(l&&this[a.$getSubformParent]()[a.$isThereMoreWidth]()){this[a.$popPara]();return o.HTMLResult.FAILURE;}this.w=n;}c&&\"\"===this.h&&(this.h=c);setFirstUnsplittable(this);if(!(0,i.checkDimensions)(this,e)){this.w=t;this.h=r;this[a.$popPara]();return o.HTMLResult.FAILURE;}unsetFirstUnsplittable(this);var h=(0,s.toStyle)(this,\"font\",\"hAlign\",\"dimensions\",\"position\",\"presence\",\"rotate\",\"anchorType\",\"border\",\"margin\");(0,s.setMinMaxDimensions)(this,h);if(h.margin){h.padding=h.margin;delete h.margin;}var u=[\"xfaDraw\"];this.font&&u.push(\"xfaFont\");(0,s.isPrintOnly)(this)&&u.push(\"xfaPrintOnly\");var d={style:h,id:this[a.$uid],class:u};this.name&&(d.xfaName=this.name);var f={name:\"div\",attributes:d,children:[]};applyAssist(this,d);var g=(0,s.computeBbox)(this,f,e),p=this.value?this.value[a.$toHTML](e).html:null;if(null===p){this.w=t;this.h=r;this[a.$popPara]();return o.HTMLResult.success((0,s.createWrapper)(this,f),g);}f.children.push(p);(0,s.setPara)(this,h,p);this.w=t;this.h=r;this[a.$popPara]();return o.HTMLResult.success((0,s.createWrapper)(this,f),g);}}]);return Draw;}(a.XFAObject,a.$setValue,a.$toHTML);var Edge=/*#__PURE__*/function(_a$XFAObject28,_a$$toStyle4){_inherits(Edge,_a$XFAObject28);function Edge(e){var _this138;_classCallCheck(this,Edge);_this138=_callSuper(this,Edge,[d,\"edge\",!0]);_this138.cap=(0,o.getStringOption)(e.cap,[\"square\",\"butt\",\"round\"]);_this138.id=e.id||\"\";_this138.presence=(0,o.getStringOption)(e.presence,[\"visible\",\"hidden\",\"inactive\",\"invisible\"]);_this138.stroke=(0,o.getStringOption)(e.stroke,[\"solid\",\"dashDot\",\"dashDotDot\",\"dashed\",\"dotted\",\"embossed\",\"etched\",\"lowered\",\"raised\"]);_this138.thickness=(0,o.getMeasurement)(e.thickness,\"0.5pt\");_this138.use=e.use||\"\";_this138.usehref=e.usehref||\"\";_this138.color=null;_this138.extras=null;return _this138;}_createClass(Edge,[{key:_a$$toStyle4,value:function value(){var e=(0,s.toStyle)(this,\"visibility\");_extends(e,{linecap:this.cap,width:(0,s.measureToString)(this.thickness),color:this.color?this.color[a.$toStyle]():\"#000000\",style:\"\"});if(\"visible\"!==this.presence)e.style=\"none\";else switch(this.stroke){case\"solid\":e.style=\"solid\";break;case\"dashDot\":case\"dashDotDot\":case\"dashed\":e.style=\"dashed\";break;case\"dotted\":e.style=\"dotted\";break;case\"embossed\":e.style=\"ridge\";break;case\"etched\":e.style=\"groove\";break;case\"lowered\":e.style=\"inset\";break;case\"raised\":e.style=\"outset\";}return e;}}]);return Edge;}(a.XFAObject,a.$toStyle);var Encoding=/*#__PURE__*/function(_a$OptionObject2){_inherits(Encoding,_a$OptionObject2);function Encoding(e){var _this139;_classCallCheck(this,Encoding);_this139=_callSuper(this,Encoding,[d,\"encoding\",[\"adbe.x509.rsa_sha1\",\"adbe.pkcs7.detached\",\"adbe.pkcs7.sha1\"]]);_this139.id=e.id||\"\";_this139.use=e.use||\"\";_this139.usehref=e.usehref||\"\";return _this139;}return _createClass(Encoding);}(a.OptionObject);var Encodings=/*#__PURE__*/function(_a$XFAObject29){_inherits(Encodings,_a$XFAObject29);function Encodings(e){var _this140;_classCallCheck(this,Encodings);_this140=_callSuper(this,Encodings,[d,\"encodings\",!0]);_this140.id=e.id||\"\";_this140.type=(0,o.getStringOption)(e.type,[\"optional\",\"required\"]);_this140.use=e.use||\"\";_this140.usehref=e.usehref||\"\";_this140.encoding=new a.XFAObjectArray();return _this140;}return _createClass(Encodings);}(a.XFAObject);var Encrypt=/*#__PURE__*/function(_a$XFAObject30){_inherits(Encrypt,_a$XFAObject30);function Encrypt(e){var _this141;_classCallCheck(this,Encrypt);_this141=_callSuper(this,Encrypt,[d,\"encrypt\",!0]);_this141.id=e.id||\"\";_this141.use=e.use||\"\";_this141.usehref=e.usehref||\"\";_this141.certificate=null;return _this141;}return _createClass(Encrypt);}(a.XFAObject);var EncryptData=/*#__PURE__*/function(_a$XFAObject31){_inherits(EncryptData,_a$XFAObject31);function EncryptData(e){var _this142;_classCallCheck(this,EncryptData);_this142=_callSuper(this,EncryptData,[d,\"encryptData\",!0]);_this142.id=e.id||\"\";_this142.operation=(0,o.getStringOption)(e.operation,[\"encrypt\",\"decrypt\"]);_this142.target=e.target||\"\";_this142.use=e.use||\"\";_this142.usehref=e.usehref||\"\";_this142.filter=null;_this142.manifest=null;return _this142;}return _createClass(EncryptData);}(a.XFAObject);var Encryption=/*#__PURE__*/function(_a$XFAObject32){_inherits(Encryption,_a$XFAObject32);function Encryption(e){var _this143;_classCallCheck(this,Encryption);_this143=_callSuper(this,Encryption,[d,\"encryption\",!0]);_this143.id=e.id||\"\";_this143.type=(0,o.getStringOption)(e.type,[\"optional\",\"required\"]);_this143.use=e.use||\"\";_this143.usehref=e.usehref||\"\";_this143.certificate=new a.XFAObjectArray();return _this143;}return _createClass(Encryption);}(a.XFAObject);var EncryptionMethod=/*#__PURE__*/function(_a$OptionObject3){_inherits(EncryptionMethod,_a$OptionObject3);function EncryptionMethod(e){var _this144;_classCallCheck(this,EncryptionMethod);_this144=_callSuper(this,EncryptionMethod,[d,\"encryptionMethod\",[\"\",\"AES256-CBC\",\"TRIPLEDES-CBC\",\"AES128-CBC\",\"AES192-CBC\"]]);_this144.id=e.id||\"\";_this144.use=e.use||\"\";_this144.usehref=e.usehref||\"\";return _this144;}return _createClass(EncryptionMethod);}(a.OptionObject);var EncryptionMethods=/*#__PURE__*/function(_a$XFAObject33){_inherits(EncryptionMethods,_a$XFAObject33);function EncryptionMethods(e){var _this145;_classCallCheck(this,EncryptionMethods);_this145=_callSuper(this,EncryptionMethods,[d,\"encryptionMethods\",!0]);_this145.id=e.id||\"\";_this145.type=(0,o.getStringOption)(e.type,[\"optional\",\"required\"]);_this145.use=e.use||\"\";_this145.usehref=e.usehref||\"\";_this145.encryptionMethod=new a.XFAObjectArray();return _this145;}return _createClass(EncryptionMethods);}(a.XFAObject);var Event=/*#__PURE__*/function(_a$XFAObject34){_inherits(Event,_a$XFAObject34);function Event(e){var _this146;_classCallCheck(this,Event);_this146=_callSuper(this,Event,[d,\"event\",!0]);_this146.activity=(0,o.getStringOption)(e.activity,[\"click\",\"change\",\"docClose\",\"docReady\",\"enter\",\"exit\",\"full\",\"indexChange\",\"initialize\",\"mouseDown\",\"mouseEnter\",\"mouseExit\",\"mouseUp\",\"postExecute\",\"postOpen\",\"postPrint\",\"postSave\",\"postSign\",\"postSubmit\",\"preExecute\",\"preOpen\",\"prePrint\",\"preSave\",\"preSign\",\"preSubmit\",\"ready\",\"validationState\"]);_this146.id=e.id||\"\";_this146.listen=(0,o.getStringOption)(e.listen,[\"refOnly\",\"refAndDescendents\"]);_this146.name=e.name||\"\";_this146.ref=e.ref||\"\";_this146.use=e.use||\"\";_this146.usehref=e.usehref||\"\";_this146.extras=null;_this146.encryptData=null;_this146.execute=null;_this146.script=null;_this146.signData=null;_this146.submit=null;return _this146;}return _createClass(Event);}(a.XFAObject);var ExData=/*#__PURE__*/function(_a$ContentObject4,_a$$isCDATAXml,_a$$onChild,_a$$toHTML16){_inherits(ExData,_a$ContentObject4);function ExData(e){var _this147;_classCallCheck(this,ExData);_this147=_callSuper(this,ExData,[d,\"exData\"]);_this147.contentType=e.contentType||\"\";_this147.href=e.href||\"\";_this147.id=e.id||\"\";_this147.maxLength=(0,o.getInteger)({data:e.maxLength,defaultValue:-1,validate:function validate(e){return e>=-1;}});_this147.name=e.name||\"\";_this147.rid=e.rid||\"\";_this147.transferEncoding=(0,o.getStringOption)(e.transferEncoding,[\"none\",\"base64\",\"package\"]);_this147.use=e.use||\"\";_this147.usehref=e.usehref||\"\";return _this147;}_createClass(ExData,[{key:_a$$isCDATAXml,value:function value(){return\"text/html\"===this.contentType;}},{key:_a$$onChild,value:function value(e){if(\"text/html\"===this.contentType&&e[a.$namespaceId]===n.NamespaceIds.xhtml.id){this[a.$content]=e;return!0;}if(\"text/xml\"===this.contentType){this[a.$content]=e;return!0;}return!1;}},{key:_a$$toHTML16,value:function value(e){return\"text/html\"===this.contentType&&this[a.$content]?this[a.$content][a.$toHTML](e):o.HTMLResult.EMPTY;}}]);return ExData;}(a.ContentObject,a.$isCDATAXml,a.$onChild,a.$toHTML);var ExObject=/*#__PURE__*/function(_a$XFAObject35){_inherits(ExObject,_a$XFAObject35);function ExObject(e){var _this148;_classCallCheck(this,ExObject);_this148=_callSuper(this,ExObject,[d,\"exObject\",!0]);_this148.archive=e.archive||\"\";_this148.classId=e.classId||\"\";_this148.codeBase=e.codeBase||\"\";_this148.codeType=e.codeType||\"\";_this148.id=e.id||\"\";_this148.name=e.name||\"\";_this148.use=e.use||\"\";_this148.usehref=e.usehref||\"\";_this148.extras=null;_this148.boolean=new a.XFAObjectArray();_this148.date=new a.XFAObjectArray();_this148.dateTime=new a.XFAObjectArray();_this148.decimal=new a.XFAObjectArray();_this148.exData=new a.XFAObjectArray();_this148.exObject=new a.XFAObjectArray();_this148.float=new a.XFAObjectArray();_this148.image=new a.XFAObjectArray();_this148.integer=new a.XFAObjectArray();_this148.text=new a.XFAObjectArray();_this148.time=new a.XFAObjectArray();return _this148;}return _createClass(ExObject);}(a.XFAObject);var ExclGroup=/*#__PURE__*/function(_a$XFAObject36,_a$$isBindable2,_a$$hasSettableValue2,_a$$setValue3,_a$$isThereMoreWidth,_a$$isSplittable,_a$$flushHTML,_a$$addHTML2,_a$$getAvailableSpace2,_a$$toHTML17){_inherits(ExclGroup,_a$XFAObject36);function ExclGroup(e){var _this149;_classCallCheck(this,ExclGroup);_this149=_callSuper(this,ExclGroup,[d,\"exclGroup\",!0]);_this149.access=(0,o.getStringOption)(e.access,[\"open\",\"nonInteractive\",\"protected\",\"readOnly\"]);_this149.accessKey=e.accessKey||\"\";_this149.anchorType=(0,o.getStringOption)(e.anchorType,[\"topLeft\",\"bottomCenter\",\"bottomLeft\",\"bottomRight\",\"middleCenter\",\"middleLeft\",\"middleRight\",\"topCenter\",\"topRight\"]);_this149.colSpan=(0,o.getInteger)({data:e.colSpan,defaultValue:1,validate:function validate(e){return e>=1||-1===e;}});_this149.h=e.h?(0,o.getMeasurement)(e.h):\"\";_this149.hAlign=(0,o.getStringOption)(e.hAlign,[\"left\",\"center\",\"justify\",\"justifyAll\",\"radix\",\"right\"]);_this149.id=e.id||\"\";_this149.layout=(0,o.getStringOption)(e.layout,[\"position\",\"lr-tb\",\"rl-row\",\"rl-tb\",\"row\",\"table\",\"tb\"]);_this149.maxH=(0,o.getMeasurement)(e.maxH,\"0pt\");_this149.maxW=(0,o.getMeasurement)(e.maxW,\"0pt\");_this149.minH=(0,o.getMeasurement)(e.minH,\"0pt\");_this149.minW=(0,o.getMeasurement)(e.minW,\"0pt\");_this149.name=e.name||\"\";_this149.presence=(0,o.getStringOption)(e.presence,[\"visible\",\"hidden\",\"inactive\",\"invisible\"]);_this149.relevant=(0,o.getRelevant)(e.relevant);_this149.use=e.use||\"\";_this149.usehref=e.usehref||\"\";_this149.w=e.w?(0,o.getMeasurement)(e.w):\"\";_this149.x=(0,o.getMeasurement)(e.x,\"0pt\");_this149.y=(0,o.getMeasurement)(e.y,\"0pt\");_this149.assist=null;_this149.bind=null;_this149.border=null;_this149.calculate=null;_this149.caption=null;_this149.desc=null;_this149.extras=null;_this149.margin=null;_this149.para=null;_this149.traversal=null;_this149.validate=null;_this149.connect=new a.XFAObjectArray();_this149.event=new a.XFAObjectArray();_this149.field=new a.XFAObjectArray();_this149.setProperty=new a.XFAObjectArray();return _this149;}_createClass(ExclGroup,[{key:_a$$isBindable2,value:function value(){return!0;}},{key:_a$$hasSettableValue2,value:function value(){return!0;}},{key:_a$$setValue3,value:function value(e){var _iterator152=_createForOfIteratorHelper(this.field.children),_step152;try{for(_iterator152.s();!(_step152=_iterator152.n()).done;){var _t418=_step152.value;if(!_t418.value){var _e542=new Value({});_t418[a.$appendChild](_e542);_t418.value=_e542;}_t418.value[a.$setValue](e);}}catch(err){_iterator152.e(err);}finally{_iterator152.f();}}},{key:_a$$isThereMoreWidth,value:function value(){var _context354;return _endsWithInstanceProperty(_context354=this.layout).call(_context354,\"-tb\")&&0===this[a.$extra].attempt&&this[a.$extra].numberInLine>0||this[a.$getParent]()[a.$isThereMoreWidth]();}},{key:_a$$isSplittable,value:function value(){var _context355,_context356;var e=this[a.$getSubformParent]();if(!e[a.$isSplittable]())return!1;if(void 0!==this[a.$extra]._isSplittable)return this[a.$extra]._isSplittable;if(\"position\"===this.layout||_includesInstanceProperty(_context355=this.layout).call(_context355,\"row\")){this[a.$extra]._isSplittable=!1;return!1;}if(e.layout&&_endsWithInstanceProperty(_context356=e.layout).call(_context356,\"-tb\")&&0!==e[a.$extra].numberInLine)return!1;this[a.$extra]._isSplittable=!0;return!0;}},{key:_a$$flushHTML,value:function value(){return(0,i.flushHTML)(this);}},{key:_a$$addHTML2,value:function value(e,t){(0,i.addHTML)(this,e,t);}},{key:_a$$getAvailableSpace2,value:function value(){return(0,i.getAvailableSpace)(this);}},{key:_a$$toHTML17,value:function value(e){var _context357;setTabIndex(this);if(\"hidden\"===this.presence||\"inactive\"===this.presence||0===this.h||0===this.w)return o.HTMLResult.EMPTY;(0,s.fixDimensions)(this);var t=[],r={id:this[a.$uid],class:[]};(0,s.setAccess)(this,r.class);this[a.$extra]||(this[a.$extra]=Object.create(null));_extends(this[a.$extra],{children:t,attributes:r,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});var n=this[a.$isSplittable]();n||setFirstUnsplittable(this);if(!(0,i.checkDimensions)(this,e))return o.HTMLResult.FAILURE;var c=new _Set([\"field\"]);if(_includesInstanceProperty(_context357=this.layout).call(_context357,\"row\")){var _e543=this[a.$getSubformParent]().columnWidths;if(Array.isArray(_e543)&&_e543.length>0){this[a.$extra].columnWidths=_e543;this[a.$extra].currentColumn=0;}}var l=(0,s.toStyle)(this,\"anchorType\",\"dimensions\",\"position\",\"presence\",\"border\",\"margin\",\"hAlign\"),h=[\"xfaExclgroup\"],u=(0,s.layoutClass)(this);u&&h.push(u);(0,s.isPrintOnly)(this)&&h.push(\"xfaPrintOnly\");r.style=l;r.class=h;this.name&&(r.xfaName=this.name);this[a.$pushPara]();var d=\"lr-tb\"===this.layout||\"rl-tb\"===this.layout,f=d?2:1;for(;this[a.$extra].attempt<f;this[a.$extra].attempt++){d&&1===this[a.$extra].attempt&&(this[a.$extra].numberInLine=0);var _e544=this[a.$childrenToHTML]({filter:c,include:!0});if(_e544.success)break;if(_e544.isBreak()){this[a.$popPara]();return _e544;}if(d&&0===this[a.$extra].attempt&&0===this[a.$extra].numberInLine&&!this[a.$getTemplateRoot]()[a.$extra].noLayoutFailure){this[a.$extra].attempt=f;break;}}this[a.$popPara]();n||unsetFirstUnsplittable(this);if(this[a.$extra].attempt===f){n||delete this[a.$extra];return o.HTMLResult.FAILURE;}var g=0,p=0;if(this.margin){g=this.margin.leftInset+this.margin.rightInset;p=this.margin.topInset+this.margin.bottomInset;}var m=Math.max(this[a.$extra].width+g,this.w||0),b=Math.max(this[a.$extra].height+p,this.h||0),y=[this.x,this.y,m,b];\"\"===this.w&&(l.width=(0,s.measureToString)(m));\"\"===this.h&&(l.height=(0,s.measureToString)(b));var w={name:\"div\",attributes:r,children:t};applyAssist(this,r);delete this[a.$extra];return o.HTMLResult.success((0,s.createWrapper)(this,w),y);}}]);return ExclGroup;}(a.XFAObject,a.$isBindable,a.$hasSettableValue,a.$setValue,a.$isThereMoreWidth,a.$isSplittable,a.$flushHTML,a.$addHTML,a.$getAvailableSpace,a.$toHTML);var Execute=/*#__PURE__*/function(_a$XFAObject37){_inherits(Execute,_a$XFAObject37);function Execute(e){var _this150;_classCallCheck(this,Execute);_this150=_callSuper(this,Execute,[d,\"execute\"]);_this150.connection=e.connection||\"\";_this150.executeType=(0,o.getStringOption)(e.executeType,[\"import\",\"remerge\"]);_this150.id=e.id||\"\";_this150.runAt=(0,o.getStringOption)(e.runAt,[\"client\",\"both\",\"server\"]);_this150.use=e.use||\"\";_this150.usehref=e.usehref||\"\";return _this150;}return _createClass(Execute);}(a.XFAObject);var Extras=/*#__PURE__*/function(_a$XFAObject38){_inherits(Extras,_a$XFAObject38);function Extras(e){var _this151;_classCallCheck(this,Extras);_this151=_callSuper(this,Extras,[d,\"extras\",!0]);_this151.id=e.id||\"\";_this151.name=e.name||\"\";_this151.use=e.use||\"\";_this151.usehref=e.usehref||\"\";_this151.boolean=new a.XFAObjectArray();_this151.date=new a.XFAObjectArray();_this151.dateTime=new a.XFAObjectArray();_this151.decimal=new a.XFAObjectArray();_this151.exData=new a.XFAObjectArray();_this151.extras=new a.XFAObjectArray();_this151.float=new a.XFAObjectArray();_this151.image=new a.XFAObjectArray();_this151.integer=new a.XFAObjectArray();_this151.text=new a.XFAObjectArray();_this151.time=new a.XFAObjectArray();return _this151;}return _createClass(Extras);}(a.XFAObject);var Field=/*#__PURE__*/function(_a$XFAObject39,_a$$isBindable3,_a$$setValue4,_a$$toHTML18){_inherits(Field,_a$XFAObject39);function Field(e){var _this152;_classCallCheck(this,Field);_this152=_callSuper(this,Field,[d,\"field\",!0]);_this152.access=(0,o.getStringOption)(e.access,[\"open\",\"nonInteractive\",\"protected\",\"readOnly\"]);_this152.accessKey=e.accessKey||\"\";_this152.anchorType=(0,o.getStringOption)(e.anchorType,[\"topLeft\",\"bottomCenter\",\"bottomLeft\",\"bottomRight\",\"middleCenter\",\"middleLeft\",\"middleRight\",\"topCenter\",\"topRight\"]);_this152.colSpan=(0,o.getInteger)({data:e.colSpan,defaultValue:1,validate:function validate(e){return e>=1||-1===e;}});_this152.h=e.h?(0,o.getMeasurement)(e.h):\"\";_this152.hAlign=(0,o.getStringOption)(e.hAlign,[\"left\",\"center\",\"justify\",\"justifyAll\",\"radix\",\"right\"]);_this152.id=e.id||\"\";_this152.locale=e.locale||\"\";_this152.maxH=(0,o.getMeasurement)(e.maxH,\"0pt\");_this152.maxW=(0,o.getMeasurement)(e.maxW,\"0pt\");_this152.minH=(0,o.getMeasurement)(e.minH,\"0pt\");_this152.minW=(0,o.getMeasurement)(e.minW,\"0pt\");_this152.name=e.name||\"\";_this152.presence=(0,o.getStringOption)(e.presence,[\"visible\",\"hidden\",\"inactive\",\"invisible\"]);_this152.relevant=(0,o.getRelevant)(e.relevant);_this152.rotate=(0,o.getInteger)({data:e.rotate,defaultValue:0,validate:function validate(e){return e%90==0;}});_this152.use=e.use||\"\";_this152.usehref=e.usehref||\"\";_this152.w=e.w?(0,o.getMeasurement)(e.w):\"\";_this152.x=(0,o.getMeasurement)(e.x,\"0pt\");_this152.y=(0,o.getMeasurement)(e.y,\"0pt\");_this152.assist=null;_this152.bind=null;_this152.border=null;_this152.calculate=null;_this152.caption=null;_this152.desc=null;_this152.extras=null;_this152.font=null;_this152.format=null;_this152.items=new a.XFAObjectArray(2);_this152.keep=null;_this152.margin=null;_this152.para=null;_this152.traversal=null;_this152.ui=null;_this152.validate=null;_this152.value=null;_this152.bindItems=new a.XFAObjectArray();_this152.connect=new a.XFAObjectArray();_this152.event=new a.XFAObjectArray();_this152.setProperty=new a.XFAObjectArray();return _this152;}_createClass(Field,[{key:_a$$isBindable3,value:function value(){return!0;}},{key:_a$$setValue4,value:function value(e){_setValue(this,e);}},{key:_a$$toHTML18,value:function value(e){var _context360;setTabIndex(this);if(!this.ui){this.ui=new Ui({});this.ui[a.$globalData]=this[a.$globalData];this[a.$appendChild](this.ui);var _e545;switch(this.items.children.length){case 0:_e545=new TextEdit({});this.ui.textEdit=_e545;break;case 1:_e545=new CheckButton({});this.ui.checkButton=_e545;break;case 2:_e545=new ChoiceList({});this.ui.choiceList=_e545;}this.ui[a.$appendChild](_e545);}if(!this.ui||\"hidden\"===this.presence||\"inactive\"===this.presence||0===this.h||0===this.w)return o.HTMLResult.EMPTY;this.caption&&delete this.caption[a.$extra];this[a.$pushPara]();var t=this.caption?this.caption[a.$toHTML](e).html:null,r=this.w,n=this.h;var c=0,h=0;if(this.margin){c=this.margin.leftInset+this.margin.rightInset;h=this.margin.topInset+this.margin.bottomInset;}var u=null;if(\"\"===this.w||\"\"===this.h){var _t419=null,_r343=null,_n197=0,_i166=0;if(this.ui.checkButton)_n197=_i166=this.ui.checkButton.size;else{var _ref16=(0,s.layoutNode)(this,e),_t420=_ref16.w,_r344=_ref16.h;if(null!==_t420){_n197=_t420;_i166=_r344;}else _i166=(0,l.getMetrics)(this.font,!0).lineNoGap;}u=getBorderDims(this.ui[a.$getExtra]());_n197+=u.w;_i166+=u.h;if(this.caption){var _this$caption$a$$getE=this.caption[a.$getExtra](e),_s125=_this$caption$a$$getE.w,_c59=_this$caption$a$$getE.h,_l40=_this$caption$a$$getE.isBroken;if(_l40&&this[a.$getSubformParent]()[a.$isThereMoreWidth]()){this[a.$popPara]();return o.HTMLResult.FAILURE;}_t419=_s125;_r343=_c59;switch(this.caption.placement){case\"left\":case\"right\":case\"inline\":_t419+=_n197;break;case\"top\":case\"bottom\":_r343+=_i166;}}else{_t419=_n197;_r343=_i166;}if(_t419&&\"\"===this.w){_t419+=c;this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<_t419?_t419:this.minW);}if(_r343&&\"\"===this.h){_r343+=h;this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<_r343?_r343:this.minH);}}this[a.$popPara]();(0,s.fixDimensions)(this);setFirstUnsplittable(this);if(!(0,i.checkDimensions)(this,e)){this.w=r;this.h=n;this[a.$popPara]();return o.HTMLResult.FAILURE;}unsetFirstUnsplittable(this);var d=(0,s.toStyle)(this,\"font\",\"dimensions\",\"position\",\"rotate\",\"anchorType\",\"presence\",\"margin\",\"hAlign\");(0,s.setMinMaxDimensions)(this,d);var f=[\"xfaField\"];this.font&&f.push(\"xfaFont\");(0,s.isPrintOnly)(this)&&f.push(\"xfaPrintOnly\");var g={style:d,id:this[a.$uid],class:f};if(d.margin){d.padding=d.margin;delete d.margin;}(0,s.setAccess)(this,f);this.name&&(g.xfaName=this.name);var p=[],m={name:\"div\",attributes:g,children:p};applyAssist(this,g);var b=this.border?this.border[a.$toStyle]():null,y=(0,s.computeBbox)(this,m,e),w=this.ui[a.$toHTML]().html;if(!w){_extends(d,b);return o.HTMLResult.success((0,s.createWrapper)(this,m),y);}this[a.$tabIndex]&&(w.children&&w.children[0]?w.children[0].attributes.tabindex=this[a.$tabIndex]:w.attributes.tabindex=this[a.$tabIndex]);w.attributes.style||(w.attributes.style=Object.create(null));var S=null;if(this.ui.button){var _w$children$splice,_w$children$splice2,_context358;1===w.children.length&&(_w$children$splice=_spliceInstanceProperty(_context358=w.children).call(_context358,0,1),_w$children$splice2=_slicedToArray(_w$children$splice,1),S=_w$children$splice2[0],_w$children$splice);_extends(w.attributes.style,b);}else _extends(d,b);p.push(w);if(this.value)if(this.ui.imageEdit)w.children.push(this.value[a.$toHTML]().html);else if(!this.ui.button){var _e546=\"\";if(this.value.exData)_e546=this.value.exData[a.$text]();else if(this.value.text)_e546=this.value.text[a.$getExtra]();else{var _t421=this.value[a.$toHTML]().html;null!==_t421&&(_e546=_t421.children[0].value);}this.ui.textEdit&&this.value.text&&this.value.text.maxChars&&(w.children[0].attributes.maxLength=this.value.text.maxChars);if(_e546){if(this.ui.numericEdit){_e546=_parseFloat(_e546);_e546=isNaN(_e546)?\"\":_e546.toString();}\"textarea\"===w.children[0].name?w.children[0].attributes.textContent=_e546:w.children[0].attributes.value=_e546;}}if(!this.ui.imageEdit&&w.children&&w.children[0]&&this.h){var _context359;u=u||getBorderDims(this.ui[a.$getExtra]());var _t422=0;if(this.caption&&_includesInstanceProperty(_context359=[\"top\",\"bottom\"]).call(_context359,this.caption.placement)){_t422=this.caption.reserve;_t422<=0&&(_t422=this.caption[a.$getExtra](e).h);var _r345=this.h-_t422-h-u.h;w.children[0].attributes.style.height=(0,s.measureToString)(_r345);}else w.children[0].attributes.style.height=\"100%\";}S&&w.children.push(S);if(!t){w.attributes.class&&w.attributes.class.push(\"xfaLeft\");this.w=r;this.h=n;return o.HTMLResult.success((0,s.createWrapper)(this,m),y);}if(this.ui.button){d.padding&&delete d.padding;\"div\"===t.name&&(t.name=\"span\");w.children.push(t);return o.HTMLResult.success(m,y);}this.ui.checkButton&&(t.attributes.class[0]=\"xfaCaptionForCheckButton\");w.attributes.class||(w.attributes.class=[]);_spliceInstanceProperty(_context360=w.children).call(_context360,0,0,t);switch(this.caption.placement){case\"left\":case\"inline\":w.attributes.class.push(\"xfaLeft\");break;case\"right\":w.attributes.class.push(\"xfaRight\");break;case\"top\":w.attributes.class.push(\"xfaTop\");break;case\"bottom\":w.attributes.class.push(\"xfaBottom\");}this.w=r;this.h=n;return o.HTMLResult.success((0,s.createWrapper)(this,m),y);}}]);return Field;}(a.XFAObject,a.$isBindable,a.$setValue,a.$toHTML);t.Field=Field;var Fill=/*#__PURE__*/function(_a$XFAObject40,_a$$toStyle5){_inherits(Fill,_a$XFAObject40);function Fill(e){var _this153;_classCallCheck(this,Fill);_this153=_callSuper(this,Fill,[d,\"fill\",!0]);_this153.id=e.id||\"\";_this153.presence=(0,o.getStringOption)(e.presence,[\"visible\",\"hidden\",\"inactive\",\"invisible\"]);_this153.use=e.use||\"\";_this153.usehref=e.usehref||\"\";_this153.color=null;_this153.extras=null;_this153.linear=null;_this153.pattern=null;_this153.radial=null;_this153.solid=null;_this153.stipple=null;return _this153;}_createClass(Fill,[{key:_a$$toStyle5,value:function value(){var e=this[a.$getParent](),t=e[a.$getParent]()[a.$getParent](),r=Object.create(null);var n=\"color\",i=n;if(e instanceof Border){n=\"background-color\";i=\"background\";t instanceof Ui&&(r.backgroundColor=\"white\");}if(e instanceof Rectangle||e instanceof Arc){n=i=\"fill\";r.fill=\"white\";}var _iterator153=_createForOfIteratorHelper(_Object$getOwnPropertyNames(this)),_step153;try{for(_iterator153.s();!(_step153=_iterator153.n()).done;){var _e548=_step153.value;if(\"extras\"===_e548||\"color\"===_e548)continue;var _t423=this[_e548];if(!(_t423 instanceof a.XFAObject))continue;var _s126=_t423[a.$toStyle](this.color);_s126&&(r[_startsWithInstanceProperty(_s126).call(_s126,\"#\")?n:i]=_s126);return r;}}catch(err){_iterator153.e(err);}finally{_iterator153.f();}if(this.color&&this.color.value){var _e547=this.color[a.$toStyle]();r[_startsWithInstanceProperty(_e547).call(_e547,\"#\")?n:i]=_e547;}return r;}}]);return Fill;}(a.XFAObject,a.$toStyle);var Filter=/*#__PURE__*/function(_a$XFAObject41){_inherits(Filter,_a$XFAObject41);function Filter(e){var _this154;_classCallCheck(this,Filter);_this154=_callSuper(this,Filter,[d,\"filter\",!0]);_this154.addRevocationInfo=(0,o.getStringOption)(e.addRevocationInfo,[\"\",\"required\",\"optional\",\"none\"]);_this154.id=e.id||\"\";_this154.name=e.name||\"\";_this154.use=e.use||\"\";_this154.usehref=e.usehref||\"\";_this154.version=(0,o.getInteger)({data:_this154.version,defaultValue:5,validate:function validate(e){return e>=1&&e<=5;}});_this154.appearanceFilter=null;_this154.certificates=null;_this154.digestMethods=null;_this154.encodings=null;_this154.encryptionMethods=null;_this154.handler=null;_this154.lockDocument=null;_this154.mdp=null;_this154.reasons=null;_this154.timeStamp=null;return _this154;}return _createClass(Filter);}(a.XFAObject);var Float=/*#__PURE__*/function(_a$ContentObject5,_a$$finalize4,_a$$toHTML19){_inherits(Float,_a$ContentObject5);function Float(e){var _this155;_classCallCheck(this,Float);_this155=_callSuper(this,Float,[d,\"float\"]);_this155.id=e.id||\"\";_this155.name=e.name||\"\";_this155.use=e.use||\"\";_this155.usehref=e.usehref||\"\";return _this155;}_createClass(Float,[{key:_a$$finalize4,value:function value(){var _context361;var e=_parseFloat(_trimInstanceProperty(_context361=this[a.$content]).call(_context361));this[a.$content]=isNaN(e)?null:e;}},{key:_a$$toHTML19,value:function value(e){return valueToHtml(null!==this[a.$content]?this[a.$content].toString():\"\");}}]);return Float;}(a.ContentObject,a.$finalize,a.$toHTML);var Font=/*#__PURE__*/function(_a$XFAObject42,_a$$clean,_a$$toStyle6){_inherits(Font,_a$XFAObject42);function Font(e){var _this156;_classCallCheck(this,Font);_this156=_callSuper(this,Font,[d,\"font\",!0]);_this156.baselineShift=(0,o.getMeasurement)(e.baselineShift);_this156.fontHorizontalScale=(0,o.getFloat)({data:e.fontHorizontalScale,defaultValue:100,validate:function validate(e){return e>=0;}});_this156.fontVerticalScale=(0,o.getFloat)({data:e.fontVerticalScale,defaultValue:100,validate:function validate(e){return e>=0;}});_this156.id=e.id||\"\";_this156.kerningMode=(0,o.getStringOption)(e.kerningMode,[\"none\",\"pair\"]);_this156.letterSpacing=(0,o.getMeasurement)(e.letterSpacing,\"0\");_this156.lineThrough=(0,o.getInteger)({data:e.lineThrough,defaultValue:0,validate:function validate(e){return 1===e||2===e;}});_this156.lineThroughPeriod=(0,o.getStringOption)(e.lineThroughPeriod,[\"all\",\"word\"]);_this156.overline=(0,o.getInteger)({data:e.overline,defaultValue:0,validate:function validate(e){return 1===e||2===e;}});_this156.overlinePeriod=(0,o.getStringOption)(e.overlinePeriod,[\"all\",\"word\"]);_this156.posture=(0,o.getStringOption)(e.posture,[\"normal\",\"italic\"]);_this156.size=(0,o.getMeasurement)(e.size,\"10pt\");_this156.typeface=e.typeface||\"Courier\";_this156.underline=(0,o.getInteger)({data:e.underline,defaultValue:0,validate:function validate(e){return 1===e||2===e;}});_this156.underlinePeriod=(0,o.getStringOption)(e.underlinePeriod,[\"all\",\"word\"]);_this156.use=e.use||\"\";_this156.usehref=e.usehref||\"\";_this156.weight=(0,o.getStringOption)(e.weight,[\"normal\",\"bold\"]);_this156.extras=null;_this156.fill=null;return _this156;}_createClass(Font,[{key:_a$$clean,value:function value(e){_get(_getPrototypeOf(Font.prototype),a.$clean,this).call(this,e);this[a.$globalData].usedTypefaces.add(this.typeface);}},{key:_a$$toStyle6,value:function value(){var e=(0,s.toStyle)(this,\"fill\"),t=e.color;if(t)if(\"#000000\"===t)delete e.color;else if(!_startsWithInstanceProperty(t).call(t,\"#\")){e.background=t;e.backgroundClip=\"text\";e.color=\"transparent\";}this.baselineShift&&(e.verticalAlign=(0,s.measureToString)(this.baselineShift));e.fontKerning=\"none\"===this.kerningMode?\"none\":\"normal\";e.letterSpacing=(0,s.measureToString)(this.letterSpacing);if(0!==this.lineThrough){e.textDecoration=\"line-through\";2===this.lineThrough&&(e.textDecorationStyle=\"double\");}if(0!==this.overline){e.textDecoration=\"overline\";2===this.overline&&(e.textDecorationStyle=\"double\");}e.fontStyle=this.posture;e.fontSize=(0,s.measureToString)(.99*this.size);(0,s.setFontFamily)(this,this,this[a.$globalData].fontFinder,e);if(0!==this.underline){e.textDecoration=\"underline\";2===this.underline&&(e.textDecorationStyle=\"double\");}e.fontWeight=this.weight;return e;}}]);return Font;}(a.XFAObject,a.$clean,a.$toStyle);var Format=/*#__PURE__*/function(_a$XFAObject43){_inherits(Format,_a$XFAObject43);function Format(e){var _this157;_classCallCheck(this,Format);_this157=_callSuper(this,Format,[d,\"format\",!0]);_this157.id=e.id||\"\";_this157.use=e.use||\"\";_this157.usehref=e.usehref||\"\";_this157.extras=null;_this157.picture=null;return _this157;}return _createClass(Format);}(a.XFAObject);var Handler=/*#__PURE__*/function(_a$StringObject3){_inherits(Handler,_a$StringObject3);function Handler(e){var _this158;_classCallCheck(this,Handler);_this158=_callSuper(this,Handler,[d,\"handler\"]);_this158.id=e.id||\"\";_this158.type=(0,o.getStringOption)(e.type,[\"optional\",\"required\"]);_this158.use=e.use||\"\";_this158.usehref=e.usehref||\"\";return _this158;}return _createClass(Handler);}(a.StringObject);var Hyphenation=/*#__PURE__*/function(_a$XFAObject44){_inherits(Hyphenation,_a$XFAObject44);function Hyphenation(e){var _this159;_classCallCheck(this,Hyphenation);_this159=_callSuper(this,Hyphenation,[d,\"hyphenation\"]);_this159.excludeAllCaps=(0,o.getInteger)({data:e.excludeAllCaps,defaultValue:0,validate:function validate(e){return 1===e;}});_this159.excludeInitialCap=(0,o.getInteger)({data:e.excludeInitialCap,defaultValue:0,validate:function validate(e){return 1===e;}});_this159.hyphenate=(0,o.getInteger)({data:e.hyphenate,defaultValue:0,validate:function validate(e){return 1===e;}});_this159.id=e.id||\"\";_this159.pushCharacterCount=(0,o.getInteger)({data:e.pushCharacterCount,defaultValue:3,validate:function validate(e){return e>=0;}});_this159.remainCharacterCount=(0,o.getInteger)({data:e.remainCharacterCount,defaultValue:3,validate:function validate(e){return e>=0;}});_this159.use=e.use||\"\";_this159.usehref=e.usehref||\"\";_this159.wordCharacterCount=(0,o.getInteger)({data:e.wordCharacterCount,defaultValue:7,validate:function validate(e){return e>=0;}});return _this159;}return _createClass(Hyphenation);}(a.XFAObject);var Image=/*#__PURE__*/function(_a$StringObject4,_a$$toHTML20){_inherits(Image,_a$StringObject4);function Image(e){var _this160;_classCallCheck(this,Image);_this160=_callSuper(this,Image,[d,\"image\"]);_this160.aspect=(0,o.getStringOption)(e.aspect,[\"fit\",\"actual\",\"height\",\"none\",\"width\"]);_this160.contentType=e.contentType||\"\";_this160.href=e.href||\"\";_this160.id=e.id||\"\";_this160.name=e.name||\"\";_this160.transferEncoding=(0,o.getStringOption)(e.transferEncoding,[\"base64\",\"none\",\"package\"]);_this160.use=e.use||\"\";_this160.usehref=e.usehref||\"\";return _this160;}_createClass(Image,[{key:_a$$toHTML20,value:function value(){if(this.contentType&&!p.has(this.contentType.toLowerCase()))return o.HTMLResult.EMPTY;var e=this[a.$globalData].images&&this[a.$globalData].images.get(this.href);if(!e&&(this.href||!this[a.$content]))return o.HTMLResult.EMPTY;e||\"base64\"!==this.transferEncoding||(e=(0,c.stringToBytes)(atob(this[a.$content])));if(!e)return o.HTMLResult.EMPTY;if(!this.contentType){for(var _i167=0,_m14=m;_i167<_m14.length;_i167++){var _m14$_i=_slicedToArray(_m14[_i167],2),_t424=_m14$_i[0],_r346=_m14$_i[1];if(e.length>_t424.length&&_t424.every(function(t,r){return t===e[r];})){this.contentType=_r346;break;}}if(!this.contentType)return o.HTMLResult.EMPTY;}var t=new Blob([e],{type:this.contentType});var r;switch(this.aspect){case\"fit\":case\"actual\":break;case\"height\":r={height:\"100%\",objectFit:\"fill\"};break;case\"none\":r={width:\"100%\",height:\"100%\",objectFit:\"fill\"};break;case\"width\":r={width:\"100%\",objectFit:\"fill\"};}var n=this[a.$getParent]();return o.HTMLResult.success({name:\"img\",attributes:{class:[\"xfaImage\"],style:r,src:_URL.createObjectURL(t),alt:n?ariaLabel(n[a.$getParent]()):null}});}}]);return Image;}(a.StringObject,a.$toHTML);var ImageEdit=/*#__PURE__*/function(_a$XFAObject45,_a$$toHTML21){_inherits(ImageEdit,_a$XFAObject45);function ImageEdit(e){var _this161;_classCallCheck(this,ImageEdit);_this161=_callSuper(this,ImageEdit,[d,\"imageEdit\",!0]);_this161.data=(0,o.getStringOption)(e.data,[\"link\",\"embed\"]);_this161.id=e.id||\"\";_this161.use=e.use||\"\";_this161.usehref=e.usehref||\"\";_this161.border=null;_this161.extras=null;_this161.margin=null;return _this161;}_createClass(ImageEdit,[{key:_a$$toHTML21,value:function value(e){return\"embed\"===this.data?o.HTMLResult.success({name:\"div\",children:[],attributes:{}}):o.HTMLResult.EMPTY;}}]);return ImageEdit;}(a.XFAObject,a.$toHTML);var Integer=/*#__PURE__*/function(_a$ContentObject6,_a$$finalize5,_a$$toHTML22){_inherits(Integer,_a$ContentObject6);function Integer(e){var _this162;_classCallCheck(this,Integer);_this162=_callSuper(this,Integer,[d,\"integer\"]);_this162.id=e.id||\"\";_this162.name=e.name||\"\";_this162.use=e.use||\"\";_this162.usehref=e.usehref||\"\";return _this162;}_createClass(Integer,[{key:_a$$finalize5,value:function value(){var _context362;var e=_parseInt(_trimInstanceProperty(_context362=this[a.$content]).call(_context362),10);this[a.$content]=isNaN(e)?null:e;}},{key:_a$$toHTML22,value:function value(e){return valueToHtml(null!==this[a.$content]?this[a.$content].toString():\"\");}}]);return Integer;}(a.ContentObject,a.$finalize,a.$toHTML);var Issuers=/*#__PURE__*/function(_a$XFAObject46){_inherits(Issuers,_a$XFAObject46);function Issuers(e){var _this163;_classCallCheck(this,Issuers);_this163=_callSuper(this,Issuers,[d,\"issuers\",!0]);_this163.id=e.id||\"\";_this163.type=(0,o.getStringOption)(e.type,[\"optional\",\"required\"]);_this163.use=e.use||\"\";_this163.usehref=e.usehref||\"\";_this163.certificate=new a.XFAObjectArray();return _this163;}return _createClass(Issuers);}(a.XFAObject);var Items=/*#__PURE__*/function(_a$XFAObject47,_a$$toHTML23){_inherits(Items,_a$XFAObject47);function Items(e){var _this164;_classCallCheck(this,Items);_this164=_callSuper(this,Items,[d,\"items\",!0]);_this164.id=e.id||\"\";_this164.name=e.name||\"\";_this164.presence=(0,o.getStringOption)(e.presence,[\"visible\",\"hidden\",\"inactive\",\"invisible\"]);_this164.ref=e.ref||\"\";_this164.save=(0,o.getInteger)({data:e.save,defaultValue:0,validate:function validate(e){return 1===e;}});_this164.use=e.use||\"\";_this164.usehref=e.usehref||\"\";_this164.boolean=new a.XFAObjectArray();_this164.date=new a.XFAObjectArray();_this164.dateTime=new a.XFAObjectArray();_this164.decimal=new a.XFAObjectArray();_this164.exData=new a.XFAObjectArray();_this164.float=new a.XFAObjectArray();_this164.image=new a.XFAObjectArray();_this164.integer=new a.XFAObjectArray();_this164.text=new a.XFAObjectArray();_this164.time=new a.XFAObjectArray();return _this164;}_createClass(Items,[{key:_a$$toHTML23,value:function value(){var e=[];var _iterator154=_createForOfIteratorHelper(this[a.$getChildren]()),_step154;try{for(_iterator154.s();!(_step154=_iterator154.n()).done;){var _t425=_step154.value;e.push(_t425[a.$text]());}}catch(err){_iterator154.e(err);}finally{_iterator154.f();}return o.HTMLResult.success(e);}}]);return Items;}(a.XFAObject,a.$toHTML);t.Items=Items;var Keep=/*#__PURE__*/function(_a$XFAObject48){_inherits(Keep,_a$XFAObject48);function Keep(e){var _this165;_classCallCheck(this,Keep);_this165=_callSuper(this,Keep,[d,\"keep\",!0]);_this165.id=e.id||\"\";var t=[\"none\",\"contentArea\",\"pageArea\"];_this165.intact=(0,o.getStringOption)(e.intact,t);_this165.next=(0,o.getStringOption)(e.next,t);_this165.previous=(0,o.getStringOption)(e.previous,t);_this165.use=e.use||\"\";_this165.usehref=e.usehref||\"\";_this165.extras=null;return _this165;}return _createClass(Keep);}(a.XFAObject);var KeyUsage=/*#__PURE__*/function(_a$XFAObject49){_inherits(KeyUsage,_a$XFAObject49);function KeyUsage(e){var _this166;_classCallCheck(this,KeyUsage);_this166=_callSuper(this,KeyUsage,[d,\"keyUsage\"]);var t=[\"\",\"yes\",\"no\"];_this166.crlSign=(0,o.getStringOption)(e.crlSign,t);_this166.dataEncipherment=(0,o.getStringOption)(e.dataEncipherment,t);_this166.decipherOnly=(0,o.getStringOption)(e.decipherOnly,t);_this166.digitalSignature=(0,o.getStringOption)(e.digitalSignature,t);_this166.encipherOnly=(0,o.getStringOption)(e.encipherOnly,t);_this166.id=e.id||\"\";_this166.keyAgreement=(0,o.getStringOption)(e.keyAgreement,t);_this166.keyCertSign=(0,o.getStringOption)(e.keyCertSign,t);_this166.keyEncipherment=(0,o.getStringOption)(e.keyEncipherment,t);_this166.nonRepudiation=(0,o.getStringOption)(e.nonRepudiation,t);_this166.type=(0,o.getStringOption)(e.type,[\"optional\",\"required\"]);_this166.use=e.use||\"\";_this166.usehref=e.usehref||\"\";return _this166;}return _createClass(KeyUsage);}(a.XFAObject);var Line=/*#__PURE__*/function(_a$XFAObject50,_a$$toHTML24){_inherits(Line,_a$XFAObject50);function Line(e){var _this167;_classCallCheck(this,Line);_this167=_callSuper(this,Line,[d,\"line\",!0]);_this167.hand=(0,o.getStringOption)(e.hand,[\"even\",\"left\",\"right\"]);_this167.id=e.id||\"\";_this167.slope=(0,o.getStringOption)(e.slope,[\"\\\\\",\"/\"]);_this167.use=e.use||\"\";_this167.usehref=e.usehref||\"\";_this167.edge=null;return _this167;}_createClass(Line,[{key:_a$$toHTML24,value:function value(){var _ref17,_ref18;var e=this[a.$getParent]()[a.$getParent](),t=this.edge||new Edge({}),r=t[a.$toStyle](),n=Object.create(null),i=\"visible\"===t.presence?t.thickness:0;n.strokeWidth=(0,s.measureToString)(i);n.stroke=r.color;var c,l,h,u,d=\"100%\",g=\"100%\";if(e.w<=i){c=\"50%\";l=0;h=\"50%\";u=\"100%\";d=n.strokeWidth;}else if(e.h<=i){c=0;l=\"50%\";h=\"100%\";u=\"50%\";g=n.strokeWidth;}else\"\\\\\"===this.slope?(_ref17=[0,0,\"100%\",\"100%\"],c=_ref17[0],l=_ref17[1],h=_ref17[2],u=_ref17[3],_ref17):(_ref18=[0,\"100%\",\"100%\",0],c=_ref18[0],l=_ref18[1],h=_ref18[2],u=_ref18[3],_ref18);var p={name:\"svg\",children:[{name:\"line\",attributes:{xmlns:f,x1:c,y1:l,x2:h,y2:u,style:n}}],attributes:{xmlns:f,width:d,height:g,style:{overflow:\"visible\"}}};if(hasMargin(e))return o.HTMLResult.success({name:\"div\",attributes:{style:{display:\"inline\",width:\"100%\",height:\"100%\"}},children:[p]});p.attributes.style.position=\"absolute\";return o.HTMLResult.success(p);}}]);return Line;}(a.XFAObject,a.$toHTML);var Linear=/*#__PURE__*/function(_a$XFAObject51,_a$$toStyle7){_inherits(Linear,_a$XFAObject51);function Linear(e){var _this168;_classCallCheck(this,Linear);_this168=_callSuper(this,Linear,[d,\"linear\",!0]);_this168.id=e.id||\"\";_this168.type=(0,o.getStringOption)(e.type,[\"toRight\",\"toBottom\",\"toLeft\",\"toTop\"]);_this168.use=e.use||\"\";_this168.usehref=e.usehref||\"\";_this168.color=null;_this168.extras=null;return _this168;}_createClass(Linear,[{key:_a$$toStyle7,value:function value(e){var _context363,_context364;e=e?e[a.$toStyle]():\"#FFFFFF\";return _concatInstanceProperty(_context363=_concatInstanceProperty(_context364=\"linear-gradient(\".concat(this.type.replace(/([RBLT])/,\" $1\").toLowerCase(),\", \")).call(_context364,e,\", \")).call(_context363,this.color?this.color[a.$toStyle]():\"#000000\",\")\");}}]);return Linear;}(a.XFAObject,a.$toStyle);var LockDocument=/*#__PURE__*/function(_a$ContentObject7,_a$$finalize6){_inherits(LockDocument,_a$ContentObject7);function LockDocument(e){var _this169;_classCallCheck(this,LockDocument);_this169=_callSuper(this,LockDocument,[d,\"lockDocument\"]);_this169.id=e.id||\"\";_this169.type=(0,o.getStringOption)(e.type,[\"optional\",\"required\"]);_this169.use=e.use||\"\";_this169.usehref=e.usehref||\"\";return _this169;}_createClass(LockDocument,[{key:_a$$finalize6,value:function value(){this[a.$content]=(0,o.getStringOption)(this[a.$content],[\"auto\",\"0\",\"1\"]);}}]);return LockDocument;}(a.ContentObject,a.$finalize);var Manifest=/*#__PURE__*/function(_a$XFAObject52){_inherits(Manifest,_a$XFAObject52);function Manifest(e){var _this170;_classCallCheck(this,Manifest);_this170=_callSuper(this,Manifest,[d,\"manifest\",!0]);_this170.action=(0,o.getStringOption)(e.action,[\"include\",\"all\",\"exclude\"]);_this170.id=e.id||\"\";_this170.name=e.name||\"\";_this170.use=e.use||\"\";_this170.usehref=e.usehref||\"\";_this170.extras=null;_this170.ref=new a.XFAObjectArray();return _this170;}return _createClass(Manifest);}(a.XFAObject);var Margin=/*#__PURE__*/function(_a$XFAObject53,_a$$toStyle8){_inherits(Margin,_a$XFAObject53);function Margin(e){var _this171;_classCallCheck(this,Margin);_this171=_callSuper(this,Margin,[d,\"margin\",!0]);_this171.bottomInset=(0,o.getMeasurement)(e.bottomInset,\"0\");_this171.id=e.id||\"\";_this171.leftInset=(0,o.getMeasurement)(e.leftInset,\"0\");_this171.rightInset=(0,o.getMeasurement)(e.rightInset,\"0\");_this171.topInset=(0,o.getMeasurement)(e.topInset,\"0\");_this171.use=e.use||\"\";_this171.usehref=e.usehref||\"\";_this171.extras=null;return _this171;}_createClass(Margin,[{key:_a$$toStyle8,value:function value(){return{margin:(0,s.measureToString)(this.topInset)+\" \"+(0,s.measureToString)(this.rightInset)+\" \"+(0,s.measureToString)(this.bottomInset)+\" \"+(0,s.measureToString)(this.leftInset)};}}]);return Margin;}(a.XFAObject,a.$toStyle);var Mdp=/*#__PURE__*/function(_a$XFAObject54){_inherits(Mdp,_a$XFAObject54);function Mdp(e){var _this172;_classCallCheck(this,Mdp);_this172=_callSuper(this,Mdp,[d,\"mdp\"]);_this172.id=e.id||\"\";_this172.permissions=(0,o.getInteger)({data:e.permissions,defaultValue:2,validate:function validate(e){return 1===e||3===e;}});_this172.signatureType=(0,o.getStringOption)(e.signatureType,[\"filler\",\"author\"]);_this172.use=e.use||\"\";_this172.usehref=e.usehref||\"\";return _this172;}return _createClass(Mdp);}(a.XFAObject);var Medium=/*#__PURE__*/function(_a$XFAObject55){_inherits(Medium,_a$XFAObject55);function Medium(e){var _this173;_classCallCheck(this,Medium);_this173=_callSuper(this,Medium,[d,\"medium\"]);_this173.id=e.id||\"\";_this173.imagingBBox=(0,o.getBBox)(e.imagingBBox);_this173.long=(0,o.getMeasurement)(e.long);_this173.orientation=(0,o.getStringOption)(e.orientation,[\"portrait\",\"landscape\"]);_this173.short=(0,o.getMeasurement)(e.short);_this173.stock=e.stock||\"\";_this173.trayIn=(0,o.getStringOption)(e.trayIn,[\"auto\",\"delegate\",\"pageFront\"]);_this173.trayOut=(0,o.getStringOption)(e.trayOut,[\"auto\",\"delegate\"]);_this173.use=e.use||\"\";_this173.usehref=e.usehref||\"\";return _this173;}return _createClass(Medium);}(a.XFAObject);var Message=/*#__PURE__*/function(_a$XFAObject56){_inherits(Message,_a$XFAObject56);function Message(e){var _this174;_classCallCheck(this,Message);_this174=_callSuper(this,Message,[d,\"message\",!0]);_this174.id=e.id||\"\";_this174.use=e.use||\"\";_this174.usehref=e.usehref||\"\";_this174.text=new a.XFAObjectArray();return _this174;}return _createClass(Message);}(a.XFAObject);var NumericEdit=/*#__PURE__*/function(_a$XFAObject57,_a$$toHTML25){_inherits(NumericEdit,_a$XFAObject57);function NumericEdit(e){var _this175;_classCallCheck(this,NumericEdit);_this175=_callSuper(this,NumericEdit,[d,\"numericEdit\",!0]);_this175.hScrollPolicy=(0,o.getStringOption)(e.hScrollPolicy,[\"auto\",\"off\",\"on\"]);_this175.id=e.id||\"\";_this175.use=e.use||\"\";_this175.usehref=e.usehref||\"\";_this175.border=null;_this175.comb=null;_this175.extras=null;_this175.margin=null;return _this175;}_createClass(NumericEdit,[{key:_a$$toHTML25,value:function value(e){var t=(0,s.toStyle)(this,\"border\",\"font\",\"margin\"),r=this[a.$getParent]()[a.$getParent](),n={name:\"input\",attributes:{type:\"text\",fieldId:r[a.$uid],dataId:r[a.$data]&&r[a.$data][a.$uid]||r[a.$uid],class:[\"xfaTextfield\"],style:t,\"aria-label\":ariaLabel(r),\"aria-required\":!1}};if(isRequired(r)){n.attributes[\"aria-required\"]=!0;n.attributes.required=!0;}return o.HTMLResult.success({name:\"label\",attributes:{class:[\"xfaLabel\"]},children:[n]});}}]);return NumericEdit;}(a.XFAObject,a.$toHTML);var Occur=/*#__PURE__*/function(_a$XFAObject58,_a$$clean2){_inherits(Occur,_a$XFAObject58);function Occur(e){var _this176;_classCallCheck(this,Occur);_this176=_callSuper(this,Occur,[d,\"occur\",!0]);_this176.id=e.id||\"\";_this176.initial=\"\"!==e.initial?(0,o.getInteger)({data:e.initial,defaultValue:\"\",validate:function validate(e){return!0;}}):\"\";_this176.max=\"\"!==e.max?(0,o.getInteger)({data:e.max,defaultValue:1,validate:function validate(e){return!0;}}):\"\";_this176.min=\"\"!==e.min?(0,o.getInteger)({data:e.min,defaultValue:1,validate:function validate(e){return!0;}}):\"\";_this176.use=e.use||\"\";_this176.usehref=e.usehref||\"\";_this176.extras=null;return _this176;}_createClass(Occur,[{key:_a$$clean2,value:function value(){var e=this[a.$getParent](),t=this.min;\"\"===this.min&&(this.min=e instanceof PageArea||e instanceof PageSet?0:1);\"\"===this.max&&(this.max=\"\"===t?e instanceof PageArea||e instanceof PageSet?-1:1:this.min);-1!==this.max&&this.max<this.min&&(this.max=this.min);\"\"===this.initial&&(this.initial=e instanceof Template?1:this.min);}}]);return Occur;}(a.XFAObject,a.$clean);var Oid=/*#__PURE__*/function(_a$StringObject5){_inherits(Oid,_a$StringObject5);function Oid(e){var _this177;_classCallCheck(this,Oid);_this177=_callSuper(this,Oid,[d,\"oid\"]);_this177.id=e.id||\"\";_this177.name=e.name||\"\";_this177.use=e.use||\"\";_this177.usehref=e.usehref||\"\";return _this177;}return _createClass(Oid);}(a.StringObject);var Oids=/*#__PURE__*/function(_a$XFAObject59){_inherits(Oids,_a$XFAObject59);function Oids(e){var _this178;_classCallCheck(this,Oids);_this178=_callSuper(this,Oids,[d,\"oids\",!0]);_this178.id=e.id||\"\";_this178.type=(0,o.getStringOption)(e.type,[\"optional\",\"required\"]);_this178.use=e.use||\"\";_this178.usehref=e.usehref||\"\";_this178.oid=new a.XFAObjectArray();return _this178;}return _createClass(Oids);}(a.XFAObject);var Overflow=/*#__PURE__*/function(_a$XFAObject60,_a$$getExtra3){_inherits(Overflow,_a$XFAObject60);function Overflow(e){var _this179;_classCallCheck(this,Overflow);_this179=_callSuper(this,Overflow,[d,\"overflow\"]);_this179.id=e.id||\"\";_this179.leader=e.leader||\"\";_this179.target=e.target||\"\";_this179.trailer=e.trailer||\"\";_this179.use=e.use||\"\";_this179.usehref=e.usehref||\"\";return _this179;}_createClass(Overflow,[{key:_a$$getExtra3,value:function value(){if(!this[a.$extra]){var _e549=this[a.$getParent](),_t426=this[a.$getTemplateRoot](),_r347=_t426[a.$searchNode](this.target,_e549),_n198=_t426[a.$searchNode](this.leader,_e549),_i168=_t426[a.$searchNode](this.trailer,_e549);this[a.$extra]={target:_r347&&_r347[0]||null,leader:_n198&&_n198[0]||null,trailer:_i168&&_i168[0]||null,addLeader:!1,addTrailer:!1};}return this[a.$extra];}}]);return Overflow;}(a.XFAObject,a.$getExtra);var PageArea=/*#__PURE__*/function(_a$XFAObject61,_a$$isUsable,_a$$cleanPage,_a$$getNextPage,_a$$getAvailableSpace3,_a$$toHTML26){_inherits(PageArea,_a$XFAObject61);function PageArea(e){var _this180;_classCallCheck(this,PageArea);_this180=_callSuper(this,PageArea,[d,\"pageArea\",!0]);_this180.blankOrNotBlank=(0,o.getStringOption)(e.blankOrNotBlank,[\"any\",\"blank\",\"notBlank\"]);_this180.id=e.id||\"\";_this180.initialNumber=(0,o.getInteger)({data:e.initialNumber,defaultValue:1,validate:function validate(e){return!0;}});_this180.name=e.name||\"\";_this180.numbered=(0,o.getInteger)({data:e.numbered,defaultValue:1,validate:function validate(e){return!0;}});_this180.oddOrEven=(0,o.getStringOption)(e.oddOrEven,[\"any\",\"even\",\"odd\"]);_this180.pagePosition=(0,o.getStringOption)(e.pagePosition,[\"any\",\"first\",\"last\",\"only\",\"rest\"]);_this180.relevant=(0,o.getRelevant)(e.relevant);_this180.use=e.use||\"\";_this180.usehref=e.usehref||\"\";_this180.desc=null;_this180.extras=null;_this180.medium=null;_this180.occur=null;_this180.area=new a.XFAObjectArray();_this180.contentArea=new a.XFAObjectArray();_this180.draw=new a.XFAObjectArray();_this180.exclGroup=new a.XFAObjectArray();_this180.field=new a.XFAObjectArray();_this180.subform=new a.XFAObjectArray();return _this180;}_createClass(PageArea,[{key:_a$$isUsable,value:function value(){if(!this[a.$extra]){this[a.$extra]={numberOfUse:0};return!0;}return!this.occur||-1===this.occur.max||this[a.$extra].numberOfUse<this.occur.max;}},{key:_a$$cleanPage,value:function value(){delete this[a.$extra];}},{key:_a$$getNextPage,value:function value(){this[a.$extra]||(this[a.$extra]={numberOfUse:0});var e=this[a.$getParent]();if(\"orderedOccurrence\"===e.relation&&this[a.$isUsable]()){this[a.$extra].numberOfUse+=1;return this;}return e[a.$getNextPage]();}},{key:_a$$getAvailableSpace3,value:function value(){return this[a.$extra].space||{width:0,height:0};}},{key:_a$$toHTML26,value:function value(){this[a.$extra]||(this[a.$extra]={numberOfUse:1});var e=[];this[a.$extra].children=e;var t=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){t.width=(0,s.measureToString)(this.medium.short);t.height=(0,s.measureToString)(this.medium.long);this[a.$extra].space={width:this.medium.short,height:this.medium.long};if(\"landscape\"===this.medium.orientation){var _e550=t.width;t.width=t.height;t.height=_e550;this[a.$extra].space={width:this.medium.long,height:this.medium.short};}}else(0,c.warn)(\"XFA - No medium specified in pageArea: please file a bug.\");this[a.$childrenToHTML]({filter:new _Set([\"area\",\"draw\",\"field\",\"subform\"]),include:!0});this[a.$childrenToHTML]({filter:new _Set([\"contentArea\"]),include:!0});return o.HTMLResult.success({name:\"div\",children:e,attributes:{class:[\"xfaPage\"],id:this[a.$uid],style:t,xfaName:this.name}});}}]);return PageArea;}(a.XFAObject,a.$isUsable,a.$cleanPage,a.$getNextPage,a.$getAvailableSpace,a.$toHTML);var PageSet=/*#__PURE__*/function(_a$XFAObject62,_a$$cleanPage2,_a$$isUsable2,_a$$getNextPage2){_inherits(PageSet,_a$XFAObject62);function PageSet(e){var _this181;_classCallCheck(this,PageSet);_this181=_callSuper(this,PageSet,[d,\"pageSet\",!0]);_this181.duplexImposition=(0,o.getStringOption)(e.duplexImposition,[\"longEdge\",\"shortEdge\"]);_this181.id=e.id||\"\";_this181.name=e.name||\"\";_this181.relation=(0,o.getStringOption)(e.relation,[\"orderedOccurrence\",\"duplexPaginated\",\"simplexPaginated\"]);_this181.relevant=(0,o.getRelevant)(e.relevant);_this181.use=e.use||\"\";_this181.usehref=e.usehref||\"\";_this181.extras=null;_this181.occur=null;_this181.pageArea=new a.XFAObjectArray();_this181.pageSet=new a.XFAObjectArray();return _this181;}_createClass(PageSet,[{key:_a$$cleanPage2,value:function value(){var _iterator155=_createForOfIteratorHelper(this.pageArea.children),_step155;try{for(_iterator155.s();!(_step155=_iterator155.n()).done;){var _e551=_step155.value;_e551[a.$cleanPage]();}}catch(err){_iterator155.e(err);}finally{_iterator155.f();}var _iterator156=_createForOfIteratorHelper(this.pageSet.children),_step156;try{for(_iterator156.s();!(_step156=_iterator156.n()).done;){var _e552=_step156.value;_e552[a.$cleanPage]();}}catch(err){_iterator156.e(err);}finally{_iterator156.f();}}},{key:_a$$isUsable2,value:function value(){return!this.occur||-1===this.occur.max||this[a.$extra].numberOfUse<this.occur.max;}},{key:_a$$getNextPage2,value:function value(){var _context365,_context366,_context367;this[a.$extra]||(this[a.$extra]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1});if(\"orderedOccurrence\"===this.relation){if(this[a.$extra].pageIndex+1<this.pageArea.children.length){this[a.$extra].pageIndex+=1;return this.pageArea.children[this[a.$extra].pageIndex][a.$getNextPage]();}if(this[a.$extra].pageSetIndex+1<this.pageSet.children.length){this[a.$extra].pageSetIndex+=1;return this.pageSet.children[this[a.$extra].pageSetIndex][a.$getNextPage]();}if(this[a.$isUsable]()){this[a.$extra].numberOfUse+=1;this[a.$extra].pageIndex=-1;this[a.$extra].pageSetIndex=-1;return this[a.$getNextPage]();}var _e553=this[a.$getParent]();if(_e553 instanceof PageSet)return _e553[a.$getNextPage]();this[a.$cleanPage]();return this[a.$getNextPage]();}var e=this[a.$getTemplateRoot]()[a.$extra].pageNumber,t=e%2==0?\"even\":\"odd\",r=0===e?\"first\":\"rest\";var n=_findInstanceProperty(_context365=this.pageArea.children).call(_context365,function(e){return e.oddOrEven===t&&e.pagePosition===r;});if(n)return n;n=_findInstanceProperty(_context366=this.pageArea.children).call(_context366,function(e){return\"any\"===e.oddOrEven&&e.pagePosition===r;});if(n)return n;n=_findInstanceProperty(_context367=this.pageArea.children).call(_context367,function(e){return\"any\"===e.oddOrEven&&\"any\"===e.pagePosition;});return n||this.pageArea.children[0];}}]);return PageSet;}(a.XFAObject,a.$cleanPage,a.$isUsable,a.$getNextPage);var Para=/*#__PURE__*/function(_a$XFAObject63,_a$$toStyle9){_inherits(Para,_a$XFAObject63);function Para(e){var _context368,_context369;var _this182;_classCallCheck(this,Para);_this182=_callSuper(this,Para,[d,\"para\",!0]);_this182.hAlign=(0,o.getStringOption)(e.hAlign,[\"left\",\"center\",\"justify\",\"justifyAll\",\"radix\",\"right\"]);_this182.id=e.id||\"\";_this182.lineHeight=e.lineHeight?(0,o.getMeasurement)(e.lineHeight,\"0pt\"):\"\";_this182.marginLeft=e.marginLeft?(0,o.getMeasurement)(e.marginLeft,\"0pt\"):\"\";_this182.marginRight=e.marginRight?(0,o.getMeasurement)(e.marginRight,\"0pt\"):\"\";_this182.orphans=(0,o.getInteger)({data:e.orphans,defaultValue:0,validate:function validate(e){return e>=0;}});_this182.preserve=e.preserve||\"\";_this182.radixOffset=e.radixOffset?(0,o.getMeasurement)(e.radixOffset,\"0pt\"):\"\";_this182.spaceAbove=e.spaceAbove?(0,o.getMeasurement)(e.spaceAbove,\"0pt\"):\"\";_this182.spaceBelow=e.spaceBelow?(0,o.getMeasurement)(e.spaceBelow,\"0pt\"):\"\";_this182.tabDefault=e.tabDefault?(0,o.getMeasurement)(_this182.tabDefault):\"\";_this182.tabStops=_mapInstanceProperty(_context368=_trimInstanceProperty(_context369=e.tabStops||\"\").call(_context369).split(/\\s+/)).call(_context368,function(e,t){return t%2==1?(0,o.getMeasurement)(e):e;});_this182.textIndent=e.textIndent?(0,o.getMeasurement)(e.textIndent,\"0pt\"):\"\";_this182.use=e.use||\"\";_this182.usehref=e.usehref||\"\";_this182.vAlign=(0,o.getStringOption)(e.vAlign,[\"top\",\"bottom\",\"middle\"]);_this182.widows=(0,o.getInteger)({data:e.widows,defaultValue:0,validate:function validate(e){return e>=0;}});_this182.hyphenation=null;return _this182;}_createClass(Para,[{key:_a$$toStyle9,value:function value(){var e=(0,s.toStyle)(this,\"hAlign\");\"\"!==this.marginLeft&&(e.paddingLeft=(0,s.measureToString)(this.marginLeft));\"\"!==this.marginRight&&(e.paddingight=(0,s.measureToString)(this.marginRight));\"\"!==this.spaceAbove&&(e.paddingTop=(0,s.measureToString)(this.spaceAbove));\"\"!==this.spaceBelow&&(e.paddingBottom=(0,s.measureToString)(this.spaceBelow));if(\"\"!==this.textIndent){e.textIndent=(0,s.measureToString)(this.textIndent);(0,s.fixTextIndent)(e);}this.lineHeight>0&&(e.lineHeight=(0,s.measureToString)(this.lineHeight));\"\"!==this.tabDefault&&(e.tabSize=(0,s.measureToString)(this.tabDefault));this.tabStops.length;this.hyphenatation&&_extends(e,this.hyphenatation[a.$toStyle]());return e;}}]);return Para;}(a.XFAObject,a.$toStyle);var PasswordEdit=/*#__PURE__*/function(_a$XFAObject64){_inherits(PasswordEdit,_a$XFAObject64);function PasswordEdit(e){var _this183;_classCallCheck(this,PasswordEdit);_this183=_callSuper(this,PasswordEdit,[d,\"passwordEdit\",!0]);_this183.hScrollPolicy=(0,o.getStringOption)(e.hScrollPolicy,[\"auto\",\"off\",\"on\"]);_this183.id=e.id||\"\";_this183.passwordChar=e.passwordChar||\"*\";_this183.use=e.use||\"\";_this183.usehref=e.usehref||\"\";_this183.border=null;_this183.extras=null;_this183.margin=null;return _this183;}return _createClass(PasswordEdit);}(a.XFAObject);var Pattern=/*#__PURE__*/function(_a$XFAObject65,_a$$toStyle10){_inherits(Pattern,_a$XFAObject65);function Pattern(e){var _this184;_classCallCheck(this,Pattern);_this184=_callSuper(this,Pattern,[d,\"pattern\",!0]);_this184.id=e.id||\"\";_this184.type=(0,o.getStringOption)(e.type,[\"crossHatch\",\"crossDiagonal\",\"diagonalLeft\",\"diagonalRight\",\"horizontal\",\"vertical\"]);_this184.use=e.use||\"\";_this184.usehref=e.usehref||\"\";_this184.color=null;_this184.extras=null;return _this184;}_createClass(Pattern,[{key:_a$$toStyle10,value:function value(e){var _context370,_context371,_context372,_context373,_context374,_context375,_context376,_context377,_context378,_context379,_context380,_context381,_context382;e=e?e[a.$toStyle]():\"#FFFFFF\";var t=this.color?this.color[a.$toStyle]():\"#000000\",r=\"repeating-linear-gradient\",n=_concatInstanceProperty(_context370=_concatInstanceProperty(_context371=_concatInstanceProperty(_context372=\"\".concat(e,\",\")).call(_context372,e,\" 5px,\")).call(_context371,t,\" 5px,\")).call(_context370,t,\" 10px\");switch(this.type){case\"crossHatch\":return _concatInstanceProperty(_context373=_concatInstanceProperty(_context374=_concatInstanceProperty(_context375=\"\".concat(r,\"(to top,\")).call(_context375,n,\") \")).call(_context374,r,\"(to right,\")).call(_context373,n,\")\");case\"crossDiagonal\":return _concatInstanceProperty(_context376=_concatInstanceProperty(_context377=_concatInstanceProperty(_context378=\"\".concat(r,\"(45deg,\")).call(_context378,n,\") \")).call(_context377,r,\"(-45deg,\")).call(_context376,n,\")\");case\"diagonalLeft\":return _concatInstanceProperty(_context379=\"\".concat(r,\"(45deg,\")).call(_context379,n,\")\");case\"diagonalRight\":return _concatInstanceProperty(_context380=\"\".concat(r,\"(-45deg,\")).call(_context380,n,\")\");case\"horizontal\":return _concatInstanceProperty(_context381=\"\".concat(r,\"(to top,\")).call(_context381,n,\")\");case\"vertical\":return _concatInstanceProperty(_context382=\"\".concat(r,\"(to right,\")).call(_context382,n,\")\");}return\"\";}}]);return Pattern;}(a.XFAObject,a.$toStyle);var Picture=/*#__PURE__*/function(_a$StringObject6){_inherits(Picture,_a$StringObject6);function Picture(e){var _this185;_classCallCheck(this,Picture);_this185=_callSuper(this,Picture,[d,\"picture\"]);_this185.id=e.id||\"\";_this185.use=e.use||\"\";_this185.usehref=e.usehref||\"\";return _this185;}return _createClass(Picture);}(a.StringObject);var Proto=/*#__PURE__*/function(_a$XFAObject66){_inherits(Proto,_a$XFAObject66);function Proto(e){var _this186;_classCallCheck(this,Proto);_this186=_callSuper(this,Proto,[d,\"proto\",!0]);_this186.appearanceFilter=new a.XFAObjectArray();_this186.arc=new a.XFAObjectArray();_this186.area=new a.XFAObjectArray();_this186.assist=new a.XFAObjectArray();_this186.barcode=new a.XFAObjectArray();_this186.bindItems=new a.XFAObjectArray();_this186.bookend=new a.XFAObjectArray();_this186.boolean=new a.XFAObjectArray();_this186.border=new a.XFAObjectArray();_this186.break=new a.XFAObjectArray();_this186.breakAfter=new a.XFAObjectArray();_this186.breakBefore=new a.XFAObjectArray();_this186.button=new a.XFAObjectArray();_this186.calculate=new a.XFAObjectArray();_this186.caption=new a.XFAObjectArray();_this186.certificate=new a.XFAObjectArray();_this186.certificates=new a.XFAObjectArray();_this186.checkButton=new a.XFAObjectArray();_this186.choiceList=new a.XFAObjectArray();_this186.color=new a.XFAObjectArray();_this186.comb=new a.XFAObjectArray();_this186.connect=new a.XFAObjectArray();_this186.contentArea=new a.XFAObjectArray();_this186.corner=new a.XFAObjectArray();_this186.date=new a.XFAObjectArray();_this186.dateTime=new a.XFAObjectArray();_this186.dateTimeEdit=new a.XFAObjectArray();_this186.decimal=new a.XFAObjectArray();_this186.defaultUi=new a.XFAObjectArray();_this186.desc=new a.XFAObjectArray();_this186.digestMethod=new a.XFAObjectArray();_this186.digestMethods=new a.XFAObjectArray();_this186.draw=new a.XFAObjectArray();_this186.edge=new a.XFAObjectArray();_this186.encoding=new a.XFAObjectArray();_this186.encodings=new a.XFAObjectArray();_this186.encrypt=new a.XFAObjectArray();_this186.encryptData=new a.XFAObjectArray();_this186.encryption=new a.XFAObjectArray();_this186.encryptionMethod=new a.XFAObjectArray();_this186.encryptionMethods=new a.XFAObjectArray();_this186.event=new a.XFAObjectArray();_this186.exData=new a.XFAObjectArray();_this186.exObject=new a.XFAObjectArray();_this186.exclGroup=new a.XFAObjectArray();_this186.execute=new a.XFAObjectArray();_this186.extras=new a.XFAObjectArray();_this186.field=new a.XFAObjectArray();_this186.fill=new a.XFAObjectArray();_this186.filter=new a.XFAObjectArray();_this186.float=new a.XFAObjectArray();_this186.font=new a.XFAObjectArray();_this186.format=new a.XFAObjectArray();_this186.handler=new a.XFAObjectArray();_this186.hyphenation=new a.XFAObjectArray();_this186.image=new a.XFAObjectArray();_this186.imageEdit=new a.XFAObjectArray();_this186.integer=new a.XFAObjectArray();_this186.issuers=new a.XFAObjectArray();_this186.items=new a.XFAObjectArray();_this186.keep=new a.XFAObjectArray();_this186.keyUsage=new a.XFAObjectArray();_this186.line=new a.XFAObjectArray();_this186.linear=new a.XFAObjectArray();_this186.lockDocument=new a.XFAObjectArray();_this186.manifest=new a.XFAObjectArray();_this186.margin=new a.XFAObjectArray();_this186.mdp=new a.XFAObjectArray();_this186.medium=new a.XFAObjectArray();_this186.message=new a.XFAObjectArray();_this186.numericEdit=new a.XFAObjectArray();_this186.occur=new a.XFAObjectArray();_this186.oid=new a.XFAObjectArray();_this186.oids=new a.XFAObjectArray();_this186.overflow=new a.XFAObjectArray();_this186.pageArea=new a.XFAObjectArray();_this186.pageSet=new a.XFAObjectArray();_this186.para=new a.XFAObjectArray();_this186.passwordEdit=new a.XFAObjectArray();_this186.pattern=new a.XFAObjectArray();_this186.picture=new a.XFAObjectArray();_this186.radial=new a.XFAObjectArray();_this186.reason=new a.XFAObjectArray();_this186.reasons=new a.XFAObjectArray();_this186.rectangle=new a.XFAObjectArray();_this186.ref=new a.XFAObjectArray();_this186.script=new a.XFAObjectArray();_this186.setProperty=new a.XFAObjectArray();_this186.signData=new a.XFAObjectArray();_this186.signature=new a.XFAObjectArray();_this186.signing=new a.XFAObjectArray();_this186.solid=new a.XFAObjectArray();_this186.speak=new a.XFAObjectArray();_this186.stipple=new a.XFAObjectArray();_this186.subform=new a.XFAObjectArray();_this186.subformSet=new a.XFAObjectArray();_this186.subjectDN=new a.XFAObjectArray();_this186.subjectDNs=new a.XFAObjectArray();_this186.submit=new a.XFAObjectArray();_this186.text=new a.XFAObjectArray();_this186.textEdit=new a.XFAObjectArray();_this186.time=new a.XFAObjectArray();_this186.timeStamp=new a.XFAObjectArray();_this186.toolTip=new a.XFAObjectArray();_this186.traversal=new a.XFAObjectArray();_this186.traverse=new a.XFAObjectArray();_this186.ui=new a.XFAObjectArray();_this186.validate=new a.XFAObjectArray();_this186.value=new a.XFAObjectArray();_this186.variables=new a.XFAObjectArray();return _this186;}return _createClass(Proto);}(a.XFAObject);var Radial=/*#__PURE__*/function(_a$XFAObject67,_a$$toStyle11){_inherits(Radial,_a$XFAObject67);function Radial(e){var _this187;_classCallCheck(this,Radial);_this187=_callSuper(this,Radial,[d,\"radial\",!0]);_this187.id=e.id||\"\";_this187.type=(0,o.getStringOption)(e.type,[\"toEdge\",\"toCenter\"]);_this187.use=e.use||\"\";_this187.usehref=e.usehref||\"\";_this187.color=null;_this187.extras=null;return _this187;}_createClass(Radial,[{key:_a$$toStyle11,value:function value(e){var _context383,_context384;e=e?e[a.$toStyle]():\"#FFFFFF\";var t=this.color?this.color[a.$toStyle]():\"#000000\";return\"radial-gradient(circle at center, \".concat(\"toEdge\"===this.type?_concatInstanceProperty(_context383=\"\".concat(e,\",\")).call(_context383,t):_concatInstanceProperty(_context384=\"\".concat(t,\",\")).call(_context384,e),\")\");}}]);return Radial;}(a.XFAObject,a.$toStyle);var Reason=/*#__PURE__*/function(_a$StringObject7){_inherits(Reason,_a$StringObject7);function Reason(e){var _this188;_classCallCheck(this,Reason);_this188=_callSuper(this,Reason,[d,\"reason\"]);_this188.id=e.id||\"\";_this188.name=e.name||\"\";_this188.use=e.use||\"\";_this188.usehref=e.usehref||\"\";return _this188;}return _createClass(Reason);}(a.StringObject);var Reasons=/*#__PURE__*/function(_a$XFAObject68){_inherits(Reasons,_a$XFAObject68);function Reasons(e){var _this189;_classCallCheck(this,Reasons);_this189=_callSuper(this,Reasons,[d,\"reasons\",!0]);_this189.id=e.id||\"\";_this189.type=(0,o.getStringOption)(e.type,[\"optional\",\"required\"]);_this189.use=e.use||\"\";_this189.usehref=e.usehref||\"\";_this189.reason=new a.XFAObjectArray();return _this189;}return _createClass(Reasons);}(a.XFAObject);var Rectangle=/*#__PURE__*/function(_a$XFAObject69,_a$$toHTML27){_inherits(Rectangle,_a$XFAObject69);function Rectangle(e){var _this190;_classCallCheck(this,Rectangle);_this190=_callSuper(this,Rectangle,[d,\"rectangle\",!0]);_this190.hand=(0,o.getStringOption)(e.hand,[\"even\",\"left\",\"right\"]);_this190.id=e.id||\"\";_this190.use=e.use||\"\";_this190.usehref=e.usehref||\"\";_this190.corner=new a.XFAObjectArray(4);_this190.edge=new a.XFAObjectArray(4);_this190.fill=null;return _this190;}_createClass(Rectangle,[{key:_a$$toHTML27,value:function value(){var e=this.edge.children.length?this.edge.children[0]:new Edge({}),t=e[a.$toStyle](),r=Object.create(null);_fillInstanceProperty(this)&&\"visible\"===_fillInstanceProperty(this).presence?_extends(r,_fillInstanceProperty(this)[a.$toStyle]()):r.fill=\"transparent\";r.strokeWidth=(0,s.measureToString)(\"visible\"===e.presence?e.thickness:0);r.stroke=t.color;var n=(this.corner.children.length?this.corner.children[0]:new Corner({}))[a.$toStyle](),i={name:\"svg\",children:[{name:\"rect\",attributes:{xmlns:f,width:\"100%\",height:\"100%\",x:0,y:0,rx:n.radius,ry:n.radius,style:r}}],attributes:{xmlns:f,style:{overflow:\"visible\"},width:\"100%\",height:\"100%\"}};if(hasMargin(this[a.$getParent]()[a.$getParent]()))return o.HTMLResult.success({name:\"div\",attributes:{style:{display:\"inline\",width:\"100%\",height:\"100%\"}},children:[i]});i.attributes.style.position=\"absolute\";return o.HTMLResult.success(i);}}]);return Rectangle;}(a.XFAObject,a.$toHTML);var RefElement=/*#__PURE__*/function(_a$StringObject8){_inherits(RefElement,_a$StringObject8);function RefElement(e){var _this191;_classCallCheck(this,RefElement);_this191=_callSuper(this,RefElement,[d,\"ref\"]);_this191.id=e.id||\"\";_this191.use=e.use||\"\";_this191.usehref=e.usehref||\"\";return _this191;}return _createClass(RefElement);}(a.StringObject);var Script=/*#__PURE__*/function(_a$StringObject9){_inherits(Script,_a$StringObject9);function Script(e){var _this192;_classCallCheck(this,Script);_this192=_callSuper(this,Script,[d,\"script\"]);_this192.binding=e.binding||\"\";_this192.contentType=e.contentType||\"\";_this192.id=e.id||\"\";_this192.name=e.name||\"\";_this192.runAt=(0,o.getStringOption)(e.runAt,[\"client\",\"both\",\"server\"]);_this192.use=e.use||\"\";_this192.usehref=e.usehref||\"\";return _this192;}return _createClass(Script);}(a.StringObject);var SetProperty=/*#__PURE__*/function(_a$XFAObject70){_inherits(SetProperty,_a$XFAObject70);function SetProperty(e){var _this193;_classCallCheck(this,SetProperty);_this193=_callSuper(this,SetProperty,[d,\"setProperty\"]);_this193.connection=e.connection||\"\";_this193.ref=e.ref||\"\";_this193.target=e.target||\"\";return _this193;}return _createClass(SetProperty);}(a.XFAObject);t.SetProperty=SetProperty;var SignData=/*#__PURE__*/function(_a$XFAObject71){_inherits(SignData,_a$XFAObject71);function SignData(e){var _this194;_classCallCheck(this,SignData);_this194=_callSuper(this,SignData,[d,\"signData\",!0]);_this194.id=e.id||\"\";_this194.operation=(0,o.getStringOption)(e.operation,[\"sign\",\"clear\",\"verify\"]);_this194.ref=e.ref||\"\";_this194.target=e.target||\"\";_this194.use=e.use||\"\";_this194.usehref=e.usehref||\"\";_this194.filter=null;_this194.manifest=null;return _this194;}return _createClass(SignData);}(a.XFAObject);var Signature=/*#__PURE__*/function(_a$XFAObject72){_inherits(Signature,_a$XFAObject72);function Signature(e){var _this195;_classCallCheck(this,Signature);_this195=_callSuper(this,Signature,[d,\"signature\",!0]);_this195.id=e.id||\"\";_this195.type=(0,o.getStringOption)(e.type,[\"PDF1.3\",\"PDF1.6\"]);_this195.use=e.use||\"\";_this195.usehref=e.usehref||\"\";_this195.border=null;_this195.extras=null;_this195.filter=null;_this195.manifest=null;_this195.margin=null;return _this195;}return _createClass(Signature);}(a.XFAObject);var Signing=/*#__PURE__*/function(_a$XFAObject73){_inherits(Signing,_a$XFAObject73);function Signing(e){var _this196;_classCallCheck(this,Signing);_this196=_callSuper(this,Signing,[d,\"signing\",!0]);_this196.id=e.id||\"\";_this196.type=(0,o.getStringOption)(e.type,[\"optional\",\"required\"]);_this196.use=e.use||\"\";_this196.usehref=e.usehref||\"\";_this196.certificate=new a.XFAObjectArray();return _this196;}return _createClass(Signing);}(a.XFAObject);var Solid=/*#__PURE__*/function(_a$XFAObject74,_a$$toStyle12){_inherits(Solid,_a$XFAObject74);function Solid(e){var _this197;_classCallCheck(this,Solid);_this197=_callSuper(this,Solid,[d,\"solid\",!0]);_this197.id=e.id||\"\";_this197.use=e.use||\"\";_this197.usehref=e.usehref||\"\";_this197.extras=null;return _this197;}_createClass(Solid,[{key:_a$$toStyle12,value:function value(e){return e?e[a.$toStyle]():\"#FFFFFF\";}}]);return Solid;}(a.XFAObject,a.$toStyle);var Speak=/*#__PURE__*/function(_a$StringObject10){_inherits(Speak,_a$StringObject10);function Speak(e){var _this198;_classCallCheck(this,Speak);_this198=_callSuper(this,Speak,[d,\"speak\"]);_this198.disable=(0,o.getInteger)({data:e.disable,defaultValue:0,validate:function validate(e){return 1===e;}});_this198.id=e.id||\"\";_this198.priority=(0,o.getStringOption)(e.priority,[\"custom\",\"caption\",\"name\",\"toolTip\"]);_this198.rid=e.rid||\"\";_this198.use=e.use||\"\";_this198.usehref=e.usehref||\"\";return _this198;}return _createClass(Speak);}(a.StringObject);var Stipple=/*#__PURE__*/function(_a$XFAObject75,_a$$toStyle13){_inherits(Stipple,_a$XFAObject75);function Stipple(e){var _this199;_classCallCheck(this,Stipple);_this199=_callSuper(this,Stipple,[d,\"stipple\",!0]);_this199.id=e.id||\"\";_this199.rate=(0,o.getInteger)({data:e.rate,defaultValue:50,validate:function validate(e){return e>=0&&e<=100;}});_this199.use=e.use||\"\";_this199.usehref=e.usehref||\"\";_this199.color=null;_this199.extras=null;return _this199;}_createClass(Stipple,[{key:_a$$toStyle13,value:function value(e){var t=this.rate/100;return c.Util.makeHexColor(Math.round(e.value.r*(1-t)+this.value.r*t),Math.round(e.value.g*(1-t)+this.value.g*t),Math.round(e.value.b*(1-t)+this.value.b*t));}}]);return Stipple;}(a.XFAObject,a.$toStyle);var Subform=/*#__PURE__*/function(_a$XFAObject76,_a$$getSubformParent,_a$$isBindable4,_a$$isThereMoreWidth2,_a$$getContainedChild2,_a$$flushHTML2,_a$$addHTML3,_a$$getAvailableSpace4,_a$$isSplittable2,_a$$toHTML28){_inherits(Subform,_a$XFAObject76);function Subform(e){var _context385,_context386;var _this200;_classCallCheck(this,Subform);_this200=_callSuper(this,Subform,[d,\"subform\",!0]);_this200.access=(0,o.getStringOption)(e.access,[\"open\",\"nonInteractive\",\"protected\",\"readOnly\"]);_this200.allowMacro=(0,o.getInteger)({data:e.allowMacro,defaultValue:0,validate:function validate(e){return 1===e;}});_this200.anchorType=(0,o.getStringOption)(e.anchorType,[\"topLeft\",\"bottomCenter\",\"bottomLeft\",\"bottomRight\",\"middleCenter\",\"middleLeft\",\"middleRight\",\"topCenter\",\"topRight\"]);_this200.colSpan=(0,o.getInteger)({data:e.colSpan,defaultValue:1,validate:function validate(e){return e>=1||-1===e;}});_this200.columnWidths=_mapInstanceProperty(_context385=_trimInstanceProperty(_context386=e.columnWidths||\"\").call(_context386).split(/\\s+/)).call(_context385,function(e){return\"-1\"===e?-1:(0,o.getMeasurement)(e);});_this200.h=e.h?(0,o.getMeasurement)(e.h):\"\";_this200.hAlign=(0,o.getStringOption)(e.hAlign,[\"left\",\"center\",\"justify\",\"justifyAll\",\"radix\",\"right\"]);_this200.id=e.id||\"\";_this200.layout=(0,o.getStringOption)(e.layout,[\"position\",\"lr-tb\",\"rl-row\",\"rl-tb\",\"row\",\"table\",\"tb\"]);_this200.locale=e.locale||\"\";_this200.maxH=(0,o.getMeasurement)(e.maxH,\"0pt\");_this200.maxW=(0,o.getMeasurement)(e.maxW,\"0pt\");_this200.mergeMode=(0,o.getStringOption)(e.mergeMode,[\"consumeData\",\"matchTemplate\"]);_this200.minH=(0,o.getMeasurement)(e.minH,\"0pt\");_this200.minW=(0,o.getMeasurement)(e.minW,\"0pt\");_this200.name=e.name||\"\";_this200.presence=(0,o.getStringOption)(e.presence,[\"visible\",\"hidden\",\"inactive\",\"invisible\"]);_this200.relevant=(0,o.getRelevant)(e.relevant);_this200.restoreState=(0,o.getStringOption)(e.restoreState,[\"manual\",\"auto\"]);_this200.scope=(0,o.getStringOption)(e.scope,[\"name\",\"none\"]);_this200.use=e.use||\"\";_this200.usehref=e.usehref||\"\";_this200.w=e.w?(0,o.getMeasurement)(e.w):\"\";_this200.x=(0,o.getMeasurement)(e.x,\"0pt\");_this200.y=(0,o.getMeasurement)(e.y,\"0pt\");_this200.assist=null;_this200.bind=null;_this200.bookend=null;_this200.border=null;_this200.break=null;_this200.calculate=null;_this200.desc=null;_this200.extras=null;_this200.keep=null;_this200.margin=null;_this200.occur=null;_this200.overflow=null;_this200.pageSet=null;_this200.para=null;_this200.traversal=null;_this200.validate=null;_this200.variables=null;_this200.area=new a.XFAObjectArray();_this200.breakAfter=new a.XFAObjectArray();_this200.breakBefore=new a.XFAObjectArray();_this200.connect=new a.XFAObjectArray();_this200.draw=new a.XFAObjectArray();_this200.event=new a.XFAObjectArray();_this200.exObject=new a.XFAObjectArray();_this200.exclGroup=new a.XFAObjectArray();_this200.field=new a.XFAObjectArray();_this200.proto=new a.XFAObjectArray();_this200.setProperty=new a.XFAObjectArray();_this200.subform=new a.XFAObjectArray();_this200.subformSet=new a.XFAObjectArray();return _this200;}_createClass(Subform,[{key:_a$$getSubformParent,value:function value(){var e=this[a.$getParent]();return e instanceof SubformSet?e[a.$getSubformParent]():e;}},{key:_a$$isBindable4,value:function value(){return!0;}},{key:_a$$isThereMoreWidth2,value:function value(){var _context387;return _endsWithInstanceProperty(_context387=this.layout).call(_context387,\"-tb\")&&0===this[a.$extra].attempt&&this[a.$extra].numberInLine>0||this[a.$getParent]()[a.$isThereMoreWidth]();}},{key:_a$$getContainedChild2,value:/*#__PURE__*/_regeneratorRuntime.mark(function value(){return _regeneratorRuntime.wrap(function value$(_context388){while(1)switch(_context388.prev=_context388.next){case 0:return _context388.delegateYield(getContainedChildren(this),\"t0\",1);case 1:case\"end\":return _context388.stop();}},value,this);})},{key:_a$$flushHTML2,value:function value(){return(0,i.flushHTML)(this);}},{key:_a$$addHTML3,value:function value(e,t){(0,i.addHTML)(this,e,t);}},{key:_a$$getAvailableSpace4,value:function value(){return(0,i.getAvailableSpace)(this);}},{key:_a$$isSplittable2,value:function value(){var _context389,_context390;var e=this[a.$getSubformParent]();if(!e[a.$isSplittable]())return!1;if(void 0!==this[a.$extra]._isSplittable)return this[a.$extra]._isSplittable;if(\"position\"===this.layout||_includesInstanceProperty(_context389=this.layout).call(_context389,\"row\")){this[a.$extra]._isSplittable=!1;return!1;}if(this.keep&&\"none\"!==this.keep.intact){this[a.$extra]._isSplittable=!1;return!1;}if(e.layout&&_endsWithInstanceProperty(_context390=e.layout).call(_context390,\"-tb\")&&0!==e[a.$extra].numberInLine)return!1;this[a.$extra]._isSplittable=!0;return!0;}},{key:_a$$toHTML28,value:function value(e){var _context391;setTabIndex(this);if(this.break){if(\"auto\"!==this.break.after||\"\"!==this.break.afterTarget){var _e554=new BreakAfter({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});_e554[a.$globalData]=this[a.$globalData];this[a.$appendChild](_e554);this.breakAfter.push(_e554);}if(\"auto\"!==this.break.before||\"\"!==this.break.beforeTarget){var _e555=new BreakBefore({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});_e555[a.$globalData]=this[a.$globalData];this[a.$appendChild](_e555);this.breakBefore.push(_e555);}if(\"\"!==this.break.overflowTarget){var _e556=new Overflow({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});_e556[a.$globalData]=this[a.$globalData];this[a.$appendChild](_e556);this.overflow.push(_e556);}this[a.$removeChild](this.break);this.break=null;}if(\"hidden\"===this.presence||\"inactive\"===this.presence)return o.HTMLResult.EMPTY;(this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,c.warn)(\"XFA - Several breakBefore or breakAfter in subforms: please file a bug.\");if(this.breakBefore.children.length>=1){var _e557=this.breakBefore.children[0];if(handleBreak(_e557))return o.HTMLResult.breakNode(_e557);}if(this[a.$extra]&&this[a.$extra].afterBreakAfter)return o.HTMLResult.EMPTY;(0,s.fixDimensions)(this);var t=[],r={id:this[a.$uid],class:[]};(0,s.setAccess)(this,r.class);this[a.$extra]||(this[a.$extra]=Object.create(null));_extends(this[a.$extra],{children:t,line:null,attributes:r,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});var n=this[a.$getTemplateRoot](),l=n[a.$extra].noLayoutFailure,h=this[a.$isSplittable]();h||setFirstUnsplittable(this);if(!(0,i.checkDimensions)(this,e))return o.HTMLResult.FAILURE;var u=new _Set([\"area\",\"draw\",\"exclGroup\",\"field\",\"subform\",\"subformSet\"]);if(_includesInstanceProperty(_context391=this.layout).call(_context391,\"row\")){var _e558=this[a.$getSubformParent]().columnWidths;if(Array.isArray(_e558)&&_e558.length>0){this[a.$extra].columnWidths=_e558;this[a.$extra].currentColumn=0;}}var d=(0,s.toStyle)(this,\"anchorType\",\"dimensions\",\"position\",\"presence\",\"border\",\"margin\",\"hAlign\"),f=[\"xfaSubform\"],g=(0,s.layoutClass)(this);g&&f.push(g);r.style=d;r.class=f;this.name&&(r.xfaName=this.name);if(this.overflow){var _t427=this.overflow[a.$getExtra]();if(_t427.addLeader){_t427.addLeader=!1;handleOverflow(this,_t427.leader,e);}}this[a.$pushPara]();var p=\"lr-tb\"===this.layout||\"rl-tb\"===this.layout,m=p?2:1;for(;this[a.$extra].attempt<m;this[a.$extra].attempt++){p&&1===this[a.$extra].attempt&&(this[a.$extra].numberInLine=0);var _e559=this[a.$childrenToHTML]({filter:u,include:!0});if(_e559.success)break;if(_e559.isBreak()){this[a.$popPara]();return _e559;}if(p&&0===this[a.$extra].attempt&&0===this[a.$extra].numberInLine&&!n[a.$extra].noLayoutFailure){this[a.$extra].attempt=m;break;}}this[a.$popPara]();h||unsetFirstUnsplittable(this);n[a.$extra].noLayoutFailure=l;if(this[a.$extra].attempt===m){this.overflow&&(this[a.$getTemplateRoot]()[a.$extra].overflowNode=this.overflow);h||delete this[a.$extra];return o.HTMLResult.FAILURE;}if(this.overflow){var _t428=this.overflow[a.$getExtra]();if(_t428.addTrailer){_t428.addTrailer=!1;handleOverflow(this,_t428.trailer,e);}}var b=0,y=0;if(this.margin){b=this.margin.leftInset+this.margin.rightInset;y=this.margin.topInset+this.margin.bottomInset;}var w=Math.max(this[a.$extra].width+b,this.w||0),S=Math.max(this[a.$extra].height+y,this.h||0),x=[this.x,this.y,w,S];\"\"===this.w&&(d.width=(0,s.measureToString)(w));\"\"===this.h&&(d.height=(0,s.measureToString)(S));if((\"0px\"===d.width||\"0px\"===d.height)&&0===t.length)return o.HTMLResult.EMPTY;var k={name:\"div\",attributes:r,children:t};applyAssist(this,r);var C=o.HTMLResult.success((0,s.createWrapper)(this,k),x);if(this.breakAfter.children.length>=1){var _e560=this.breakAfter.children[0];if(handleBreak(_e560)){this[a.$extra].afterBreakAfter=C;return o.HTMLResult.breakNode(_e560);}}delete this[a.$extra];return C;}}]);return Subform;}(a.XFAObject,a.$getSubformParent,a.$isBindable,a.$isThereMoreWidth,a.$getContainedChildren,a.$flushHTML,a.$addHTML,a.$getAvailableSpace,a.$isSplittable,a.$toHTML);var SubformSet=/*#__PURE__*/function(_a$XFAObject77,_a$$getContainedChild3,_a$$getSubformParent2,_a$$isBindable5){_inherits(SubformSet,_a$XFAObject77);function SubformSet(e){var _this201;_classCallCheck(this,SubformSet);_this201=_callSuper(this,SubformSet,[d,\"subformSet\",!0]);_this201.id=e.id||\"\";_this201.name=e.name||\"\";_this201.relation=(0,o.getStringOption)(e.relation,[\"ordered\",\"choice\",\"unordered\"]);_this201.relevant=(0,o.getRelevant)(e.relevant);_this201.use=e.use||\"\";_this201.usehref=e.usehref||\"\";_this201.bookend=null;_this201.break=null;_this201.desc=null;_this201.extras=null;_this201.occur=null;_this201.overflow=null;_this201.breakAfter=new a.XFAObjectArray();_this201.breakBefore=new a.XFAObjectArray();_this201.subform=new a.XFAObjectArray();_this201.subformSet=new a.XFAObjectArray();return _this201;}_createClass(SubformSet,[{key:_a$$getContainedChild3,value:/*#__PURE__*/_regeneratorRuntime.mark(function value(){return _regeneratorRuntime.wrap(function value$(_context392){while(1)switch(_context392.prev=_context392.next){case 0:return _context392.delegateYield(getContainedChildren(this),\"t0\",1);case 1:case\"end\":return _context392.stop();}},value,this);})},{key:_a$$getSubformParent2,value:function value(){var e=this[a.$getParent]();for(;!(e instanceof Subform);)e=e[a.$getParent]();return e;}},{key:_a$$isBindable5,value:function value(){return!0;}}]);return SubformSet;}(a.XFAObject,a.$getContainedChildren,a.$getSubformParent,a.$isBindable);var SubjectDN=/*#__PURE__*/function(_a$ContentObject8,_a$$finalize7){_inherits(SubjectDN,_a$ContentObject8);function SubjectDN(e){var _this202;_classCallCheck(this,SubjectDN);_this202=_callSuper(this,SubjectDN,[d,\"subjectDN\"]);_this202.delimiter=e.delimiter||\",\";_this202.id=e.id||\"\";_this202.name=e.name||\"\";_this202.use=e.use||\"\";_this202.usehref=e.usehref||\"\";return _this202;}_createClass(SubjectDN,[{key:_a$$finalize7,value:function value(){var _context393;this[a.$content]=new _Map(_mapInstanceProperty(_context393=this[a.$content].split(this.delimiter)).call(_context393,function(e){var _context394;(e=e.split(\"=\",2))[0]=_trimInstanceProperty(_context394=e[0]).call(_context394);return e;}));}}]);return SubjectDN;}(a.ContentObject,a.$finalize);var SubjectDNs=/*#__PURE__*/function(_a$XFAObject78){_inherits(SubjectDNs,_a$XFAObject78);function SubjectDNs(e){var _this203;_classCallCheck(this,SubjectDNs);_this203=_callSuper(this,SubjectDNs,[d,\"subjectDNs\",!0]);_this203.id=e.id||\"\";_this203.type=(0,o.getStringOption)(e.type,[\"optional\",\"required\"]);_this203.use=e.use||\"\";_this203.usehref=e.usehref||\"\";_this203.subjectDN=new a.XFAObjectArray();return _this203;}return _createClass(SubjectDNs);}(a.XFAObject);var Submit=/*#__PURE__*/function(_a$XFAObject79){_inherits(Submit,_a$XFAObject79);function Submit(e){var _this204;_classCallCheck(this,Submit);_this204=_callSuper(this,Submit,[d,\"submit\",!0]);_this204.embedPDF=(0,o.getInteger)({data:e.embedPDF,defaultValue:0,validate:function validate(e){return 1===e;}});_this204.format=(0,o.getStringOption)(e.format,[\"xdp\",\"formdata\",\"pdf\",\"urlencoded\",\"xfd\",\"xml\"]);_this204.id=e.id||\"\";_this204.target=e.target||\"\";_this204.textEncoding=(0,o.getKeyword)({data:e.textEncoding?e.textEncoding.toLowerCase():\"\",defaultValue:\"\",validate:function validate(e){var _context395;return _includesInstanceProperty(_context395=[\"utf-8\",\"big-five\",\"fontspecific\",\"gbk\",\"gb-18030\",\"gb-2312\",\"ksc-5601\",\"none\",\"shift-jis\",\"ucs-2\",\"utf-16\"]).call(_context395,e)||e.match(/iso-8859-\\d{2}/);}});_this204.use=e.use||\"\";_this204.usehref=e.usehref||\"\";_this204.xdpContent=e.xdpContent||\"\";_this204.encrypt=null;_this204.encryptData=new a.XFAObjectArray();_this204.signData=new a.XFAObjectArray();return _this204;}return _createClass(Submit);}(a.XFAObject);var Template=/*#__PURE__*/function(_a$XFAObject80,_a$$finalize8,_a$$isSplittable3,_a$$searchNode,_a$$toPages){_inherits(Template,_a$XFAObject80);function Template(e){var _this205;_classCallCheck(this,Template);_this205=_callSuper(this,Template,[d,\"template\",!0]);_this205.baseProfile=(0,o.getStringOption)(e.baseProfile,[\"full\",\"interactiveForms\"]);_this205.extras=null;_this205.subform=new a.XFAObjectArray();return _this205;}_createClass(Template,[{key:_a$$finalize8,value:function value(){0===this.subform.children.length&&(0,c.warn)(\"XFA - No subforms in template node.\");this.subform.children.length>=2&&(0,c.warn)(\"XFA - Several subforms in template node: please file a bug.\");this[a.$tabIndex]=5e3;}},{key:_a$$isSplittable3,value:function value(){return!0;}},{key:_a$$searchNode,value:function value(e,t){return _startsWithInstanceProperty(e).call(e,\"#\")?[this[a.$ids].get(_sliceInstanceProperty(e).call(e,1))]:(0,u.searchNode)(this,t,e,!0,!0);}},{key:_a$$toPages,value:/*#__PURE__*/_regeneratorRuntime.mark(function value(){var _context396,_this206=this;var e,t,r,n,i,s,_e561,l,h,u,d,f,g,p,_loop7,_ret2;return _regeneratorRuntime.wrap(function value$(_context401){while(1)switch(_context401.prev=_context401.next){case 0:if(this.subform.children.length){_context401.next=2;break;}return _context401.abrupt(\"return\",o.HTMLResult.success({name:\"div\",children:[]}));case 2:this[a.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:\"first\",oddOrEven:\"odd\",blankOrNotBlank:\"nonBlank\",paraStack:[]};e=this.subform.children[0];e.pageSet[a.$cleanPage]();t=e.pageSet.pageArea.children,r={name:\"div\",children:[]};n=null,i=null,s=null;if(e.breakBefore.children.length>=1){i=e.breakBefore.children[0];s=i.target;}else if(e.subform.children.length>=1&&e.subform.children[0].breakBefore.children.length>=1){i=e.subform.children[0].breakBefore.children[0];s=i.target;}else if(e.break&&e.break.beforeTarget){i=e.break;s=i.beforeTarget;}else if(e.subform.children.length>=1&&e.subform.children[0].break&&e.subform.children[0].break.beforeTarget){i=e.subform.children[0].break;s=i.beforeTarget;}if(i){_e561=this[a.$searchNode](s,i[a.$getParent]());if(_e561 instanceof PageArea){n=_e561;i[a.$extra]={};}}n||(n=t[0]);n[a.$extra]={numberOfUse:1};l=n[a.$getParent]();l[a.$extra]={numberOfUse:1,pageIndex:_indexOfInstanceProperty(_context396=l.pageArea.children).call(_context396,n),pageSetIndex:0};u=null,d=null,f=!0,g=0,p=0;_loop7=/*#__PURE__*/_regeneratorRuntime.mark(function _loop7(){var _context397;var t,i,s,flush,_t429,_n199,_n200,_o79,_c60,_e562,_e563,_r348,_n201,_s127,_e564,_context399;return _regeneratorRuntime.wrap(function _loop7$(_context400){while(1)switch(_context400.prev=_context400.next){case 0:if(!f){_context400.next=4;break;}g=0;_context400.next=8;break;case 4:r.children.pop();if(!(3==++g)){_context400.next=8;break;}(0,c.warn)(\"XFA - Something goes wrong: please file a bug.\");return _context400.abrupt(\"return\",{v:r});case 8:h=null;_this206[a.$extra].currentPageArea=n;t=n[a.$toHTML]().html;r.children.push(t);if(u){_this206[a.$extra].noLayoutFailure=!0;t.children.push(u[a.$toHTML](n[a.$extra].space).html);u=null;}if(d){_this206[a.$extra].noLayoutFailure=!0;t.children.push(d[a.$toHTML](n[a.$extra].space).html);d=null;}i=n.contentArea.children,s=_filterInstanceProperty(_context397=t.children).call(_context397,function(e){var _context398;return _includesInstanceProperty(_context398=e.attributes.class).call(_context398,\"xfaContentarea\");});f=!1;_this206[a.$extra].firstUnsplittable=null;_this206[a.$extra].noLayoutFailure=!1;flush=function flush(t){var r=e[a.$flushHTML]();if(r){f=f||r.children&&0!==r.children.length;s[t].children.push(r);}};_t429=p,_n199=i.length;case 20:if(!(_t429<_n199)){_context400.next=43;break;}_n200=_this206[a.$extra].currentContentArea=i[_t429],_o79={width:_n200.w,height:_n200.h};p=0;if(u){s[_t429].children.push(u[a.$toHTML](_o79).html);u=null;}if(d){s[_t429].children.push(d[a.$toHTML](_o79).html);d=null;}_c60=e[a.$toHTML](_o79);if(!_c60.success){_context400.next=29;break;}if(_c60.html){f=f||_c60.html.children&&0!==_c60.html.children.length;s[_t429].children.push(_c60.html);}else!f&&r.children.length>1&&r.children.pop();return _context400.abrupt(\"return\",{v:r});case 29:if(!_c60.isBreak()){_context400.next=39;break;}_e562=_c60.breakNode;flush(_t429);if(!(\"auto\"===_e562.targetType)){_context400.next=34;break;}return _context400.abrupt(\"continue\",40);case 34:if(_e562.leader){u=_this206[a.$searchNode](_e562.leader,_e562[a.$getParent]());u=u?u[0]:null;}if(_e562.trailer){d=_this206[a.$searchNode](_e562.trailer,_e562[a.$getParent]());d=d?d[0]:null;}if(\"pageArea\"===_e562.targetType){h=_e562[a.$extra].target;_t429=1/0;}else if(_e562[a.$extra].target){h=_e562[a.$extra].target;p=_e562[a.$extra].index+1;_t429=1/0;}else _t429=_e562[a.$extra].index;_context400.next=40;break;case 39:if(_this206[a.$extra].overflowNode){_e563=_this206[a.$extra].overflowNode;_this206[a.$extra].overflowNode=null;_r348=_e563[a.$getExtra](),_n201=_r348.target;_r348.addLeader=null!==_r348.leader;_r348.addTrailer=null!==_r348.trailer;flush(_t429);_s127=_t429;_t429=1/0;if(_n201 instanceof PageArea)h=_n201;else if(_n201 instanceof ContentArea){_e564=_indexOfInstanceProperty(i).call(i,_n201);if(-1!==_e564)_e564>_s127?_t429=_e564-1:p=_e564;else{h=_n201[a.$getParent]();p=_indexOfInstanceProperty(_context399=h.contentArea.children).call(_context399,_n201);}}}else flush(_t429);case 40:_t429++;_context400.next=20;break;case 43:_this206[a.$extra].pageNumber+=1;h&&(h[a.$isUsable]()?h[a.$extra].numberOfUse+=1:h=null);n=h||n[a.$getNextPage]();_context400.next=48;return null;case 48:case\"end\":return _context400.stop();}},_loop7);});case 15:return _context401.delegateYield(_loop7(),\"t0\",16);case 16:_ret2=_context401.t0;if(!_ret2){_context401.next=19;break;}return _context401.abrupt(\"return\",_ret2.v);case 19:_context401.next=15;break;case 21:case\"end\":return _context401.stop();}},value,this);})}]);return Template;}(a.XFAObject,a.$finalize,a.$isSplittable,a.$searchNode,a.$toPages);t.Template=Template;var Text=/*#__PURE__*/function(_a$ContentObject9,_a$$acceptWhitespace,_a$$onChild2,_a$$onText,_a$$finalize9,_a$$getExtra4,_a$$toHTML29){_inherits(Text,_a$ContentObject9);function Text(e){var _this207;_classCallCheck(this,Text);_this207=_callSuper(this,Text,[d,\"text\"]);_this207.id=e.id||\"\";_this207.maxChars=(0,o.getInteger)({data:e.maxChars,defaultValue:0,validate:function validate(e){return e>=0;}});_this207.name=e.name||\"\";_this207.rid=e.rid||\"\";_this207.use=e.use||\"\";_this207.usehref=e.usehref||\"\";return _this207;}_createClass(Text,[{key:_a$$acceptWhitespace,value:function value(){return!0;}},{key:_a$$onChild2,value:function value(e){if(e[a.$namespaceId]===n.NamespaceIds.xhtml.id){this[a.$content]=e;return!0;}(0,c.warn)(\"XFA - Invalid content in Text: \".concat(e[a.$nodeName],\".\"));return!1;}},{key:_a$$onText,value:function value(e){this[a.$content]instanceof a.XFAObject||_get(_getPrototypeOf(Text.prototype),a.$onText,this).call(this,e);}},{key:_a$$finalize9,value:function value(){\"string\"==typeof this[a.$content]&&(this[a.$content]=this[a.$content].replace(/\\r\\n/g,\"\\n\"));}},{key:_a$$getExtra4,value:function value(){var _context402;return\"string\"==typeof this[a.$content]?_reduceInstanceProperty(_context402=this[a.$content].split(/[\\u2029\\u2028\\n]/)).call(_context402,function(e,t){t&&e.push(t);return e;},[]).join(\"\\n\"):this[a.$content][a.$text]();}},{key:_a$$toHTML29,value:function value(e){if(\"string\"==typeof this[a.$content]){var _context403;var _e565=valueToHtml(this[a.$content]).html;if(_includesInstanceProperty(_context403=this[a.$content]).call(_context403,\"\\u2029\")){var _context404;_e565.name=\"div\";_e565.children=[];_mapInstanceProperty(_context404=this[a.$content].split(\"\\u2029\")).call(_context404,function(e){var _context405;return _reduceInstanceProperty(_context405=e.split(/[\\u2028\\n]/)).call(_context405,function(e,t){e.push({name:\"span\",value:t},{name:\"br\"});return e;},[]);}).forEach(function(t){_e565.children.push({name:\"p\",children:t});});}else if(/[\\u2028\\n]/.test(this[a.$content])){_e565.name=\"div\";_e565.children=[];this[a.$content].split(/[\\u2028\\n]/).forEach(function(t){_e565.children.push({name:\"span\",value:t},{name:\"br\"});});}return o.HTMLResult.success(_e565);}return this[a.$content][a.$toHTML](e);}}]);return Text;}(a.ContentObject,a.$acceptWhitespace,a.$onChild,a.$onText,a.$finalize,a.$getExtra,a.$toHTML);t.Text=Text;var TextEdit=/*#__PURE__*/function(_a$XFAObject81,_a$$toHTML30){_inherits(TextEdit,_a$XFAObject81);function TextEdit(e){var _this208;_classCallCheck(this,TextEdit);_this208=_callSuper(this,TextEdit,[d,\"textEdit\",!0]);_this208.allowRichText=(0,o.getInteger)({data:e.allowRichText,defaultValue:0,validate:function validate(e){return 1===e;}});_this208.hScrollPolicy=(0,o.getStringOption)(e.hScrollPolicy,[\"auto\",\"off\",\"on\"]);_this208.id=e.id||\"\";_this208.multiLine=(0,o.getInteger)({data:e.multiLine,defaultValue:\"\",validate:function validate(e){return 0===e||1===e;}});_this208.use=e.use||\"\";_this208.usehref=e.usehref||\"\";_this208.vScrollPolicy=(0,o.getStringOption)(e.vScrollPolicy,[\"auto\",\"off\",\"on\"]);_this208.border=null;_this208.comb=null;_this208.extras=null;_this208.margin=null;return _this208;}_createClass(TextEdit,[{key:_a$$toHTML30,value:function value(e){var t=(0,s.toStyle)(this,\"border\",\"font\",\"margin\");var r;var n=this[a.$getParent]()[a.$getParent]();\"\"===this.multiLine&&(this.multiLine=n instanceof Draw?1:0);r=1===this.multiLine?{name:\"textarea\",attributes:{dataId:n[a.$data]&&n[a.$data][a.$uid]||n[a.$uid],fieldId:n[a.$uid],class:[\"xfaTextfield\"],style:t,\"aria-label\":ariaLabel(n),\"aria-required\":!1}}:{name:\"input\",attributes:{type:\"text\",dataId:n[a.$data]&&n[a.$data][a.$uid]||n[a.$uid],fieldId:n[a.$uid],class:[\"xfaTextfield\"],style:t,\"aria-label\":ariaLabel(n),\"aria-required\":!1}};if(isRequired(n)){r.attributes[\"aria-required\"]=!0;r.attributes.required=!0;}return o.HTMLResult.success({name:\"label\",attributes:{class:[\"xfaLabel\"]},children:[r]});}}]);return TextEdit;}(a.XFAObject,a.$toHTML);var Time=/*#__PURE__*/function(_a$StringObject11,_a$$finalize10,_a$$toHTML31){_inherits(Time,_a$StringObject11);function Time(e){var _this209;_classCallCheck(this,Time);_this209=_callSuper(this,Time,[d,\"time\"]);_this209.id=e.id||\"\";_this209.name=e.name||\"\";_this209.use=e.use||\"\";_this209.usehref=e.usehref||\"\";return _this209;}_createClass(Time,[{key:_a$$finalize10,value:function value(){var _context406;var e=_trimInstanceProperty(_context406=this[a.$content]).call(_context406);this[a.$content]=e?new Date(e):null;}},{key:_a$$toHTML31,value:function value(e){return valueToHtml(this[a.$content]?this[a.$content].toString():\"\");}}]);return Time;}(a.StringObject,a.$finalize,a.$toHTML);var TimeStamp=/*#__PURE__*/function(_a$XFAObject82){_inherits(TimeStamp,_a$XFAObject82);function TimeStamp(e){var _this210;_classCallCheck(this,TimeStamp);_this210=_callSuper(this,TimeStamp,[d,\"timeStamp\"]);_this210.id=e.id||\"\";_this210.server=e.server||\"\";_this210.type=(0,o.getStringOption)(e.type,[\"optional\",\"required\"]);_this210.use=e.use||\"\";_this210.usehref=e.usehref||\"\";return _this210;}return _createClass(TimeStamp);}(a.XFAObject);var ToolTip=/*#__PURE__*/function(_a$StringObject12){_inherits(ToolTip,_a$StringObject12);function ToolTip(e){var _this211;_classCallCheck(this,ToolTip);_this211=_callSuper(this,ToolTip,[d,\"toolTip\"]);_this211.id=e.id||\"\";_this211.rid=e.rid||\"\";_this211.use=e.use||\"\";_this211.usehref=e.usehref||\"\";return _this211;}return _createClass(ToolTip);}(a.StringObject);var Traversal=/*#__PURE__*/function(_a$XFAObject83){_inherits(Traversal,_a$XFAObject83);function Traversal(e){var _this212;_classCallCheck(this,Traversal);_this212=_callSuper(this,Traversal,[d,\"traversal\",!0]);_this212.id=e.id||\"\";_this212.use=e.use||\"\";_this212.usehref=e.usehref||\"\";_this212.extras=null;_this212.traverse=new a.XFAObjectArray();return _this212;}return _createClass(Traversal);}(a.XFAObject);var Traverse=/*#__PURE__*/function(_a$XFAObject84,_a$$isTransparent2){_inherits(Traverse,_a$XFAObject84);function Traverse(e){var _this213;_classCallCheck(this,Traverse);_this213=_callSuper(this,Traverse,[d,\"traverse\",!0]);_this213.id=e.id||\"\";_this213.operation=(0,o.getStringOption)(e.operation,[\"next\",\"back\",\"down\",\"first\",\"left\",\"right\",\"up\"]);_this213.ref=e.ref||\"\";_this213.use=e.use||\"\";_this213.usehref=e.usehref||\"\";_this213.extras=null;_this213.script=null;return _this213;}_createClass(Traverse,[{key:\"name\",get:function get(){return this.operation;}},{key:_a$$isTransparent2,value:function value(){return!1;}}]);return Traverse;}(a.XFAObject,a.$isTransparent);var Ui=/*#__PURE__*/function(_a$XFAObject85,_a$$getExtra5,_a$$toHTML32){_inherits(Ui,_a$XFAObject85);function Ui(e){var _this214;_classCallCheck(this,Ui);_this214=_callSuper(this,Ui,[d,\"ui\",!0]);_this214.id=e.id||\"\";_this214.use=e.use||\"\";_this214.usehref=e.usehref||\"\";_this214.extras=null;_this214.picture=null;_this214.barcode=null;_this214.button=null;_this214.checkButton=null;_this214.choiceList=null;_this214.dateTimeEdit=null;_this214.defaultUi=null;_this214.imageEdit=null;_this214.numericEdit=null;_this214.passwordEdit=null;_this214.signature=null;_this214.textEdit=null;return _this214;}_createClass(Ui,[{key:_a$$getExtra5,value:function value(){if(void 0===this[a.$extra]){var _iterator157=_createForOfIteratorHelper(_Object$getOwnPropertyNames(this)),_step157;try{for(_iterator157.s();!(_step157=_iterator157.n()).done;){var _e566=_step157.value;if(\"extras\"===_e566||\"picture\"===_e566)continue;var _t430=this[_e566];if(_t430 instanceof a.XFAObject){this[a.$extra]=_t430;return _t430;}}}catch(err){_iterator157.e(err);}finally{_iterator157.f();}this[a.$extra]=null;}return this[a.$extra];}},{key:_a$$toHTML32,value:function value(e){var t=this[a.$getExtra]();return t?t[a.$toHTML](e):o.HTMLResult.EMPTY;}}]);return Ui;}(a.XFAObject,a.$getExtra,a.$toHTML);var Validate=/*#__PURE__*/function(_a$XFAObject86){_inherits(Validate,_a$XFAObject86);function Validate(e){var _this215;_classCallCheck(this,Validate);_this215=_callSuper(this,Validate,[d,\"validate\",!0]);_this215.formatTest=(0,o.getStringOption)(e.formatTest,[\"warning\",\"disabled\",\"error\"]);_this215.id=e.id||\"\";_this215.nullTest=(0,o.getStringOption)(e.nullTest,[\"disabled\",\"error\",\"warning\"]);_this215.scriptTest=(0,o.getStringOption)(e.scriptTest,[\"error\",\"disabled\",\"warning\"]);_this215.use=e.use||\"\";_this215.usehref=e.usehref||\"\";_this215.extras=null;_this215.message=null;_this215.picture=null;_this215.script=null;return _this215;}return _createClass(Validate);}(a.XFAObject);var Value=/*#__PURE__*/function(_a$XFAObject87,_a$$setValue5,_a$$text,_a$$toHTML33){_inherits(Value,_a$XFAObject87);function Value(e){var _this216;_classCallCheck(this,Value);_this216=_callSuper(this,Value,[d,\"value\",!0]);_this216.id=e.id||\"\";_this216.override=(0,o.getInteger)({data:e.override,defaultValue:0,validate:function validate(e){return 1===e;}});_this216.relevant=(0,o.getRelevant)(e.relevant);_this216.use=e.use||\"\";_this216.usehref=e.usehref||\"\";_this216.arc=null;_this216.boolean=null;_this216.date=null;_this216.dateTime=null;_this216.decimal=null;_this216.exData=null;_this216.float=null;_this216.image=null;_this216.integer=null;_this216.line=null;_this216.rectangle=null;_this216.text=null;_this216.time=null;return _this216;}_createClass(Value,[{key:_a$$setValue5,value:function value(e){var t=this[a.$getParent]();if(t instanceof Field&&t.ui&&t.ui.imageEdit){if(!this.image){this.image=new Image({});this[a.$appendChild](this.image);}this.image[a.$content]=e[a.$content];return;}var r=e[a.$nodeName];if(null===this[r]){var _iterator158=_createForOfIteratorHelper(_Object$getOwnPropertyNames(this)),_step158;try{for(_iterator158.s();!(_step158=_iterator158.n()).done;){var _e567=_step158.value;var _t431=this[_e567];if(_t431 instanceof a.XFAObject){this[_e567]=null;this[a.$removeChild](_t431);}}}catch(err){_iterator158.e(err);}finally{_iterator158.f();}this[e[a.$nodeName]]=e;this[a.$appendChild](e);}else this[r][a.$content]=e[a.$content];}},{key:_a$$text,value:function value(){var _context407,_context408;if(this.exData)return\"string\"==typeof this.exData[a.$content]?_trimInstanceProperty(_context407=this.exData[a.$content]).call(_context407):_trimInstanceProperty(_context408=this.exData[a.$content][a.$text]()).call(_context408);var _iterator159=_createForOfIteratorHelper(_Object$getOwnPropertyNames(this)),_step159;try{for(_iterator159.s();!(_step159=_iterator159.n()).done;){var _context409;var _e568=_step159.value;if(\"image\"===_e568)continue;var _t432=this[_e568];if(_t432 instanceof a.XFAObject)return _trimInstanceProperty(_context409=(_t432[a.$content]||\"\").toString()).call(_context409);}}catch(err){_iterator159.e(err);}finally{_iterator159.f();}return null;}},{key:_a$$toHTML33,value:function value(e){var _iterator160=_createForOfIteratorHelper(_Object$getOwnPropertyNames(this)),_step160;try{for(_iterator160.s();!(_step160=_iterator160.n()).done;){var _t433=_step160.value;var _r349=this[_t433];if(_r349 instanceof a.XFAObject)return _r349[a.$toHTML](e);}}catch(err){_iterator160.e(err);}finally{_iterator160.f();}return o.HTMLResult.EMPTY;}}]);return Value;}(a.XFAObject,a.$setValue,a.$text,a.$toHTML);t.Value=Value;var Variables=/*#__PURE__*/function(_a$XFAObject88,_a$$isTransparent3){_inherits(Variables,_a$XFAObject88);function Variables(e){var _this217;_classCallCheck(this,Variables);_this217=_callSuper(this,Variables,[d,\"variables\",!0]);_this217.id=e.id||\"\";_this217.use=e.use||\"\";_this217.usehref=e.usehref||\"\";_this217.boolean=new a.XFAObjectArray();_this217.date=new a.XFAObjectArray();_this217.dateTime=new a.XFAObjectArray();_this217.decimal=new a.XFAObjectArray();_this217.exData=new a.XFAObjectArray();_this217.float=new a.XFAObjectArray();_this217.image=new a.XFAObjectArray();_this217.integer=new a.XFAObjectArray();_this217.manifest=new a.XFAObjectArray();_this217.script=new a.XFAObjectArray();_this217.text=new a.XFAObjectArray();_this217.time=new a.XFAObjectArray();return _this217;}_createClass(Variables,[{key:_a$$isTransparent3,value:function value(){return!0;}}]);return Variables;}(a.XFAObject,a.$isTransparent);var TemplateNamespace=/*#__PURE__*/function(_n$$buildXFAObject){function TemplateNamespace(){_classCallCheck(this,TemplateNamespace);}_createClass(TemplateNamespace,null,[{key:_n$$buildXFAObject,value:function value(e,t){if(TemplateNamespace.hasOwnProperty(e)){var _r350=TemplateNamespace[e](t);_r350[a.$setSetAttributes](t);return _r350;}}},{key:\"appearanceFilter\",value:function appearanceFilter(e){return new AppearanceFilter(e);}},{key:\"arc\",value:function arc(e){return new Arc(e);}},{key:\"area\",value:function area(e){return new Area(e);}},{key:\"assist\",value:function assist(e){return new Assist(e);}},{key:\"barcode\",value:function barcode(e){return new Barcode(e);}},{key:\"bind\",value:function bind(e){return new Bind(e);}},{key:\"bindItems\",value:function bindItems(e){return new BindItems(e);}},{key:\"bookend\",value:function bookend(e){return new Bookend(e);}},{key:\"boolean\",value:function boolean(e){return new BooleanElement(e);}},{key:\"border\",value:function border(e){return new Border(e);}},{key:\"break\",value:function _break(e){return new Break(e);}},{key:\"breakAfter\",value:function breakAfter(e){return new BreakAfter(e);}},{key:\"breakBefore\",value:function breakBefore(e){return new BreakBefore(e);}},{key:\"button\",value:function button(e){return new Button(e);}},{key:\"calculate\",value:function calculate(e){return new Calculate(e);}},{key:\"caption\",value:function caption(e){return new Caption(e);}},{key:\"certificate\",value:function certificate(e){return new Certificate(e);}},{key:\"certificates\",value:function certificates(e){return new Certificates(e);}},{key:\"checkButton\",value:function checkButton(e){return new CheckButton(e);}},{key:\"choiceList\",value:function choiceList(e){return new ChoiceList(e);}},{key:\"color\",value:function color(e){return new Color(e);}},{key:\"comb\",value:function comb(e){return new Comb(e);}},{key:\"connect\",value:function connect(e){return new Connect(e);}},{key:\"contentArea\",value:function contentArea(e){return new ContentArea(e);}},{key:\"corner\",value:function corner(e){return new Corner(e);}},{key:\"date\",value:function date(e){return new DateElement(e);}},{key:\"dateTime\",value:function dateTime(e){return new DateTime(e);}},{key:\"dateTimeEdit\",value:function dateTimeEdit(e){return new DateTimeEdit(e);}},{key:\"decimal\",value:function decimal(e){return new Decimal(e);}},{key:\"defaultUi\",value:function defaultUi(e){return new DefaultUi(e);}},{key:\"desc\",value:function desc(e){return new Desc(e);}},{key:\"digestMethod\",value:function digestMethod(e){return new DigestMethod(e);}},{key:\"digestMethods\",value:function digestMethods(e){return new DigestMethods(e);}},{key:\"draw\",value:function draw(e){return new Draw(e);}},{key:\"edge\",value:function edge(e){return new Edge(e);}},{key:\"encoding\",value:function encoding(e){return new Encoding(e);}},{key:\"encodings\",value:function encodings(e){return new Encodings(e);}},{key:\"encrypt\",value:function encrypt(e){return new Encrypt(e);}},{key:\"encryptData\",value:function encryptData(e){return new EncryptData(e);}},{key:\"encryption\",value:function encryption(e){return new Encryption(e);}},{key:\"encryptionMethod\",value:function encryptionMethod(e){return new EncryptionMethod(e);}},{key:\"encryptionMethods\",value:function encryptionMethods(e){return new EncryptionMethods(e);}},{key:\"event\",value:function event(e){return new Event(e);}},{key:\"exData\",value:function exData(e){return new ExData(e);}},{key:\"exObject\",value:function exObject(e){return new ExObject(e);}},{key:\"exclGroup\",value:function exclGroup(e){return new ExclGroup(e);}},{key:\"execute\",value:function execute(e){return new Execute(e);}},{key:\"extras\",value:function extras(e){return new Extras(e);}},{key:\"field\",value:function field(e){return new Field(e);}},{key:\"fill\",value:function fill(e){return new Fill(e);}},{key:\"filter\",value:function filter(e){return new Filter(e);}},{key:\"float\",value:function float(e){return new Float(e);}},{key:\"font\",value:function font(e){return new Font(e);}},{key:\"format\",value:function format(e){return new Format(e);}},{key:\"handler\",value:function handler(e){return new Handler(e);}},{key:\"hyphenation\",value:function hyphenation(e){return new Hyphenation(e);}},{key:\"image\",value:function image(e){return new Image(e);}},{key:\"imageEdit\",value:function imageEdit(e){return new ImageEdit(e);}},{key:\"integer\",value:function integer(e){return new Integer(e);}},{key:\"issuers\",value:function issuers(e){return new Issuers(e);}},{key:\"items\",value:function items(e){return new Items(e);}},{key:\"keep\",value:function keep(e){return new Keep(e);}},{key:\"keyUsage\",value:function keyUsage(e){return new KeyUsage(e);}},{key:\"line\",value:function line(e){return new Line(e);}},{key:\"linear\",value:function linear(e){return new Linear(e);}},{key:\"lockDocument\",value:function lockDocument(e){return new LockDocument(e);}},{key:\"manifest\",value:function manifest(e){return new Manifest(e);}},{key:\"margin\",value:function margin(e){return new Margin(e);}},{key:\"mdp\",value:function mdp(e){return new Mdp(e);}},{key:\"medium\",value:function medium(e){return new Medium(e);}},{key:\"message\",value:function message(e){return new Message(e);}},{key:\"numericEdit\",value:function numericEdit(e){return new NumericEdit(e);}},{key:\"occur\",value:function occur(e){return new Occur(e);}},{key:\"oid\",value:function oid(e){return new Oid(e);}},{key:\"oids\",value:function oids(e){return new Oids(e);}},{key:\"overflow\",value:function overflow(e){return new Overflow(e);}},{key:\"pageArea\",value:function pageArea(e){return new PageArea(e);}},{key:\"pageSet\",value:function pageSet(e){return new PageSet(e);}},{key:\"para\",value:function para(e){return new Para(e);}},{key:\"passwordEdit\",value:function passwordEdit(e){return new PasswordEdit(e);}},{key:\"pattern\",value:function pattern(e){return new Pattern(e);}},{key:\"picture\",value:function picture(e){return new Picture(e);}},{key:\"proto\",value:function proto(e){return new Proto(e);}},{key:\"radial\",value:function radial(e){return new Radial(e);}},{key:\"reason\",value:function reason(e){return new Reason(e);}},{key:\"reasons\",value:function reasons(e){return new Reasons(e);}},{key:\"rectangle\",value:function rectangle(e){return new Rectangle(e);}},{key:\"ref\",value:function ref(e){return new RefElement(e);}},{key:\"script\",value:function script(e){return new Script(e);}},{key:\"setProperty\",value:function setProperty(e){return new SetProperty(e);}},{key:\"signData\",value:function signData(e){return new SignData(e);}},{key:\"signature\",value:function signature(e){return new Signature(e);}},{key:\"signing\",value:function signing(e){return new Signing(e);}},{key:\"solid\",value:function solid(e){return new Solid(e);}},{key:\"speak\",value:function speak(e){return new Speak(e);}},{key:\"stipple\",value:function stipple(e){return new Stipple(e);}},{key:\"subform\",value:function subform(e){return new Subform(e);}},{key:\"subformSet\",value:function subformSet(e){return new SubformSet(e);}},{key:\"subjectDN\",value:function subjectDN(e){return new SubjectDN(e);}},{key:\"subjectDNs\",value:function subjectDNs(e){return new SubjectDNs(e);}},{key:\"submit\",value:function submit(e){return new Submit(e);}},{key:\"template\",value:function template(e){return new Template(e);}},{key:\"text\",value:function text(e){return new Text(e);}},{key:\"textEdit\",value:function textEdit(e){return new TextEdit(e);}},{key:\"time\",value:function time(e){return new Time(e);}},{key:\"timeStamp\",value:function timeStamp(e){return new TimeStamp(e);}},{key:\"toolTip\",value:function toolTip(e){return new ToolTip(e);}},{key:\"traversal\",value:function traversal(e){return new Traversal(e);}},{key:\"traverse\",value:function traverse(e){return new Traverse(e);}},{key:\"ui\",value:function ui(e){return new Ui(e);}},{key:\"validate\",value:function validate(e){return new Validate(e);}},{key:\"value\",value:function value(e){return new Value(e);}},{key:\"variables\",value:function variables(e){return new Variables(e);}}]);return TemplateNamespace;}(n.$buildXFAObject);t.TemplateNamespace=TemplateNamespace;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.addHTML=function addHTML(e,t,r){var i=e[a.$extra],s=i.availableSpace,_r351=_slicedToArray(r,4),o=_r351[0],c=_r351[1],l=_r351[2],h=_r351[3];switch(e.layout){case\"position\":i.width=Math.max(i.width,o+l);i.height=Math.max(i.height,c+h);i.children.push(t);break;case\"lr-tb\":case\"rl-tb\":if(!i.line||1===i.attempt){i.line=createLine(e,[]);i.children.push(i.line);i.numberInLine=0;}i.numberInLine+=1;i.line.children.push(t);if(0===i.attempt){i.currentWidth+=l;i.height=Math.max(i.height,i.prevHeight+h);}else{i.currentWidth=l;i.prevHeight=i.height;i.height+=h;i.attempt=0;}i.width=Math.max(i.width,i.currentWidth);break;case\"rl-row\":case\"row\":{i.children.push(t);i.width+=l;i.height=Math.max(i.height,h);var _e569=(0,n.measureToString)(i.height);var _iterator161=_createForOfIteratorHelper(i.children),_step161;try{for(_iterator161.s();!(_step161=_iterator161.n()).done;){var _t434=_step161.value;_t434.attributes.style.height=_e569;}}catch(err){_iterator161.e(err);}finally{_iterator161.f();}break;}case\"table\":case\"tb\":i.width=Math.min(s.width,Math.max(i.width,l));i.height+=h;i.children.push(t);}};t.checkDimensions=function checkDimensions(e,t){if(null===e[a.$getTemplateRoot]()[a.$extra].firstUnsplittable)return!0;if(0===e.w||0===e.h)return!0;var r=e[a.$getSubformParent](),n=r[a.$extra]&&r[a.$extra].attempt||0,_getTransformedBBox=function getTransformedBBox(e){var t,r,a=\"\"===e.w?NaN:e.w,n=\"\"===e.h?NaN:e.h,i=0,s=0;switch(e.anchorType||\"\"){case\"bottomCenter\":i=a/2;s=n;break;case\"bottomLeft\":i=0;s=n;break;case\"bottomRight\":i=a;s=n;break;case\"middleCenter\":i=a/2;s=n/2;break;case\"middleLeft\":i=0;s=n/2;break;case\"middleRight\":i=a;s=n/2;break;case\"topCenter\":i=a/2;s=0;break;case\"topRight\":i=a;s=0;}switch(e.rotate||0){case 0:t=-i;r=-s;break;case 90:t=-s;r=i;var _ref19=[n,-a];a=_ref19[0];n=_ref19[1];break;case 180:t=i;r=s;var _ref20=[-a,-n];a=_ref20[0];n=_ref20[1];break;case 270:t=s;r=-i;var _ref21=[-n,a];a=_ref21[0];n=_ref21[1];}return[e.x+t+Math.min(0,a),e.y+r+Math.min(0,n),Math.abs(a),Math.abs(n)];}(e),_getTransformedBBox2=_slicedToArray(_getTransformedBBox,4),i=_getTransformedBBox2[1],s=_getTransformedBBox2[2],o=_getTransformedBBox2[3];switch(r.layout){case\"lr-tb\":case\"rl-tb\":return 0===n?e[a.$getTemplateRoot]()[a.$extra].noLayoutFailure?\"\"!==e.w?Math.round(s-t.width)<=2:t.width>2:!(\"\"!==e.h&&Math.round(o-t.height)>2)&&(\"\"!==e.w?Math.round(s-t.width)<=2||0===r[a.$extra].numberInLine&&t.height>2:t.width>2):!!e[a.$getTemplateRoot]()[a.$extra].noLayoutFailure||!(\"\"!==e.h&&Math.round(o-t.height)>2)&&(\"\"===e.w||Math.round(s-t.width)<=2||!r[a.$isThereMoreWidth]())&&t.height>2;case\"table\":case\"tb\":return!!e[a.$getTemplateRoot]()[a.$extra].noLayoutFailure||(\"\"===e.h||e[a.$isSplittable]()?(\"\"===e.w||Math.round(s-t.width)<=2||!r[a.$isThereMoreWidth]())&&t.height>2:Math.round(o-t.height)<=2);case\"position\":if(e[a.$getTemplateRoot]()[a.$extra].noLayoutFailure)return!0;if(\"\"===e.h||Math.round(o+i-t.height)<=2)return!0;var _c61=e[a.$getTemplateRoot]()[a.$extra].currentContentArea;return o+i>_c61.h;case\"rl-row\":case\"row\":return!!e[a.$getTemplateRoot]()[a.$extra].noLayoutFailure||\"\"===e.h||Math.round(o-t.height)<=2;default:return!0;}};t.flushHTML=function flushHTML(e){if(!e[a.$extra])return null;var t={name:\"div\",attributes:e[a.$extra].attributes,children:e[a.$extra].children};if(e[a.$extra].failingNode){var _context410;var _r352=e[a.$extra].failingNode[a.$flushHTML]();_r352&&(_endsWithInstanceProperty(_context410=e.layout).call(_context410,\"-tb\")?t.children.push(createLine(e,[_r352])):t.children.push(_r352));}if(0===t.children.length)return null;return t;};t.getAvailableSpace=function getAvailableSpace(e){var _context411,_context412;var t=e[a.$extra].availableSpace,r=e.margin?e.margin.topInset+e.margin.bottomInset:0,n=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case\"lr-tb\":case\"rl-tb\":return 0===e[a.$extra].attempt?{width:t.width-n-e[a.$extra].currentWidth,height:t.height-r-e[a.$extra].prevHeight}:{width:t.width-n,height:t.height-r-e[a.$extra].height};case\"rl-row\":case\"row\":return{width:_reduceInstanceProperty(_context411=_sliceInstanceProperty(_context412=e[a.$extra].columnWidths).call(_context412,e[a.$extra].currentColumn)).call(_context411,function(e,t){return e+t;}),height:t.height-n};case\"table\":case\"tb\":return{width:t.width-n,height:t.height-r-e[a.$extra].height};default:return t;}};var a=r(202),n=r(209);function createLine(e,t){return{name:\"div\",attributes:{class:[\"lr-tb\"===e.layout?\"xfaLr\":\"xfaRl\"]},children:t};}},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.computeBbox=function computeBbox(e,t,r){var n;if(\"\"!==e.w&&\"\"!==e.h)n=[e.x,e.y,e.w,e.h];else{if(!r)return null;var _i169=e.w;if(\"\"===_i169){if(0===e.maxW){var _t435=e[a.$getSubformParent]();_i169=\"position\"===_t435.layout&&\"\"!==_t435.w?0:e.minW;}else _i169=Math.min(e.maxW,r.width);t.attributes.style.width=measureToString(_i169);}var _s128=e.h;if(\"\"===_s128){if(0===e.maxH){var _t436=e[a.$getSubformParent]();_s128=\"position\"===_t436.layout&&\"\"!==_t436.h?0:e.minH;}else _s128=Math.min(e.maxH,r.height);t.attributes.style.height=measureToString(_s128);}n=[e.x,e.y,_i169,_s128];}return n;};t.createWrapper=function createWrapper(e,t){var r=t.attributes,n=r.style,i={name:\"div\",attributes:{class:[\"xfaWrapper\"],style:Object.create(null)},children:[]};r.class.push(\"xfaWrapped\");if(e.border){var _e$border$a$$extra=e.border[a.$extra],_r353=_e$border$a$$extra.widths,_s129=_e$border$a$$extra.insets;var _o80,_c62,l=_s129[0],_h37=_s129[3];var u=_s129[0]+_s129[2],d=_s129[1]+_s129[3];switch(e.border.hand){case\"even\":l-=_r353[0]/2;_h37-=_r353[3]/2;_o80=\"calc(100% + \".concat((_r353[1]+_r353[3])/2-d,\"px)\");_c62=\"calc(100% + \".concat((_r353[0]+_r353[2])/2-u,\"px)\");break;case\"left\":l-=_r353[0];_h37-=_r353[3];_o80=\"calc(100% + \".concat(_r353[1]+_r353[3]-d,\"px)\");_c62=\"calc(100% + \".concat(_r353[0]+_r353[2]-u,\"px)\");break;case\"right\":_o80=d?\"calc(100% - \".concat(d,\"px)\"):\"100%\";_c62=u?\"calc(100% - \".concat(u,\"px)\"):\"100%\";}var f=[\"xfaBorder\"];isPrintOnly(e.border)&&f.push(\"xfaPrintOnly\");var _g24={name:\"div\",attributes:{class:f,style:{top:\"\".concat(l,\"px\"),left:\"\".concat(_h37,\"px\"),width:_o80,height:_c62}},children:[]};for(var _i170=0,_arr4=[\"border\",\"borderWidth\",\"borderColor\",\"borderRadius\",\"borderStyle\"];_i170<_arr4.length;_i170++){var _e570=_arr4[_i170];if(void 0!==n[_e570]){_g24.attributes.style[_e570]=n[_e570];delete n[_e570];}}i.children.push(_g24,t);}else i.children.push(t);for(var _i171=0,_arr5=[\"background\",\"backgroundClip\",\"top\",\"left\",\"width\",\"height\",\"minWidth\",\"minHeight\",\"maxWidth\",\"maxHeight\",\"transform\",\"transformOrigin\",\"visibility\"];_i171<_arr5.length;_i171++){var _e571=_arr5[_i171];if(void 0!==n[_e571]){i.attributes.style[_e571]=n[_e571];delete n[_e571];}}\"absolute\"===n.position?i.attributes.style.position=\"absolute\":i.attributes.style.position=\"relative\";delete n.position;if(n.alignSelf){i.attributes.style.alignSelf=n.alignSelf;delete n.alignSelf;}return i;};t.fixDimensions=function fixDimensions(e){var _context413,_context418;var t=e[a.$getSubformParent]();if(t.layout&&_includesInstanceProperty(_context413=t.layout).call(_context413,\"row\")){var _context414,_context415,_context416,_context417;var _r354=t[a.$extra],_n202=e.colSpan;var _i172;_i172=-1===_n202?_reduceInstanceProperty(_context414=_sliceInstanceProperty(_context415=_r354.columnWidths).call(_context415,_r354.currentColumn)).call(_context414,function(e,t){return e+t;},0):_reduceInstanceProperty(_context416=_sliceInstanceProperty(_context417=_r354.columnWidths).call(_context417,_r354.currentColumn,_r354.currentColumn+_n202)).call(_context416,function(e,t){return e+t;},0);isNaN(_i172)||(e.w=_i172);}t.layout&&\"position\"!==t.layout&&(e.x=e.y=0);\"table\"===e.layout&&\"\"===e.w&&Array.isArray(e.columnWidths)&&(e.w=_reduceInstanceProperty(_context418=e.columnWidths).call(_context418,function(e,t){return e+t;},0));};t.fixTextIndent=function fixTextIndent(e){var t=(0,i.getMeasurement)(e.textIndent,\"0px\");if(t>=0)return;var r=\"padding\"+(\"left\"==(\"right\"===e.textAlign?\"right\":\"left\")?\"Left\":\"Right\"),a=(0,i.getMeasurement)(e[r],\"0px\");e[r]=a-t+\"px\";};t.fixURL=function fixURL(e){var t=(0,n.createValidAbsoluteUrl)(e,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return t?t.href:null;};t.isPrintOnly=isPrintOnly;t.layoutClass=function layoutClass(e){switch(e.layout){case\"position\":default:return\"xfaPosition\";case\"lr-tb\":return\"xfaLrTb\";case\"rl-row\":return\"xfaRlRow\";case\"rl-tb\":return\"xfaRlTb\";case\"row\":return\"xfaRow\";case\"table\":return\"xfaTable\";case\"tb\":return\"xfaTb\";}};t.layoutNode=function layoutNode(e,t){var r=null,n=null,i=!1;if((!e.w||!e.h)&&e.value){var _s130=0,_o81=0;if(e.margin){_s130=e.margin.leftInset+e.margin.rightInset;_o81=e.margin.topInset+e.margin.bottomInset;}var _c63=null,l=null;if(e.para){l=Object.create(null);_c63=\"\"===e.para.lineHeight?null:e.para.lineHeight;l.top=\"\"===e.para.spaceAbove?0:e.para.spaceAbove;l.bottom=\"\"===e.para.spaceBelow?0:e.para.spaceBelow;l.left=\"\"===e.para.marginLeft?0:e.para.marginLeft;l.right=\"\"===e.para.marginRight?0:e.para.marginRight;}var _h38=e.font;if(!_h38){var _t437=e[a.$getTemplateRoot]();var _r355=e[a.$getParent]();for(;_r355&&_r355!==_t437;){if(_r355.font){_h38=_r355.font;break;}_r355=_r355[a.$getParent]();}}var u=(e.w||t.width)-_s130,d=e[a.$globalData].fontFinder;if(e.value.exData&&e.value.exData[a.$content]&&\"text/html\"===e.value.exData.contentType){var _t438=layoutText(e.value.exData[a.$content],_h38,l,_c63,d,u);n=_t438.width;r=_t438.height;i=_t438.isBroken;}else{var _t439=e.value[a.$text]();if(_t439){var _e572=layoutText(_t439,_h38,l,_c63,d,u);n=_e572.width;r=_e572.height;i=_e572.isBroken;}}null===n||e.w||(n+=_s130);null===r||e.h||(r+=_o81);}return{w:n,h:r,isBroken:i};};t.measureToString=measureToString;t.setAccess=function setAccess(e,t){switch(e.access){case\"nonInteractive\":t.push(\"xfaNonInteractive\");break;case\"readOnly\":t.push(\"xfaReadOnly\");break;case\"protected\":t.push(\"xfaDisabled\");}};t.setFontFamily=function setFontFamily(e,t,r,a){if(!r){delete a.fontFamily;return;}var n=(0,i.stripQuotes)(e.typeface);a.fontFamily=\"\\\"\".concat(n,\"\\\"\");var o=_findInstanceProperty(r).call(r,n);if(o){var _r356=o.regular.cssFontInfo.fontFamily;_r356!==n&&(a.fontFamily=\"\\\"\".concat(_r356,\"\\\"\"));var _i173=getCurrentPara(t);if(_i173&&\"\"!==_i173.lineHeight)return;if(a.lineHeight)return;var _c64=(0,s.selectFont)(e,o);_c64&&(a.lineHeight=Math.max(1.2,_c64.lineHeight));}};t.setMinMaxDimensions=function setMinMaxDimensions(e,t){if(\"position\"===e[a.$getSubformParent]().layout){e.minW>0&&(t.minWidth=measureToString(e.minW));e.maxW>0&&(t.maxWidth=measureToString(e.maxW));e.minH>0&&(t.minHeight=measureToString(e.minH));e.maxH>0&&(t.maxHeight=measureToString(e.maxH));}};t.setPara=function setPara(e,t,r){var _context419;if(r.attributes.class&&_includesInstanceProperty(_context419=r.attributes.class).call(_context419,\"xfaRich\")){if(t){\"\"===e.h&&(t.height=\"auto\");\"\"===e.w&&(t.width=\"auto\");}var _n203=getCurrentPara(e);if(_n203){var _e573=r.attributes.style;_e573.display=\"flex\";_e573.flexDirection=\"column\";switch(_n203.vAlign){case\"top\":_e573.justifyContent=\"start\";break;case\"bottom\":_e573.justifyContent=\"end\";break;case\"middle\":_e573.justifyContent=\"center\";}var _t440=_n203[a.$toStyle]();for(var _i174=0,_Object$entries6=_Object$entries2(_t440);_i174<_Object$entries6.length;_i174++){var _Object$entries6$_i=_slicedToArray(_Object$entries6[_i174],2),_r357=_Object$entries6$_i[0],_a258=_Object$entries6$_i[1];_r357 in _e573||(_e573[_r357]=_a258);}}}};t.toStyle=function toStyle(e){var t=Object.create(null);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];for(var _i176=0,_i175=i;_i176<_i175.length;_i176++){var _r358=_i175[_i176];var _i177=e[_r358];if(null!==_i177)if(c.hasOwnProperty(_r358))c[_r358](e,t);else if(_i177 instanceof a.XFAObject){var _e574=_i177[a.$toStyle]();_e574?_extends(t,_e574):(0,n.warn)(\"(DEBUG) - XFA - style for \".concat(_r358,\" not implemented yet\"));}}return t;};var a=r(202),n=r(2),i=r(203),s=r(210),o=r(211);function measureToString(e){return\"string\"==typeof e?\"0px\":_Number$isInteger(e)?\"\".concat(e,\"px\"):\"\".concat(e.toFixed(2),\"px\");}var c={anchorType:function anchorType(e,t){var r=e[a.$getSubformParent]();if(r&&(!r.layout||\"position\"===r.layout)){\"transform\"in t||(t.transform=\"\");switch(e.anchorType){case\"bottomCenter\":t.transform+=\"translate(-50%, -100%)\";break;case\"bottomLeft\":t.transform+=\"translate(0,-100%)\";break;case\"bottomRight\":t.transform+=\"translate(-100%,-100%)\";break;case\"middleCenter\":t.transform+=\"translate(-50%,-50%)\";break;case\"middleLeft\":t.transform+=\"translate(0,-50%)\";break;case\"middleRight\":t.transform+=\"translate(-100%,-50%)\";break;case\"topCenter\":t.transform+=\"translate(-50%,0)\";break;case\"topRight\":t.transform+=\"translate(-100%,0)\";}}},dimensions:function dimensions(e,t){var _context420;var r=e[a.$getSubformParent]();var n=e.w;var i=e.h;if(r.layout&&_includesInstanceProperty(_context420=r.layout).call(_context420,\"row\")){var _t441=r[a.$extra],_i178=e.colSpan;var _s131;if(-1===_i178){var _context421,_context422;_s131=_reduceInstanceProperty(_context421=_sliceInstanceProperty(_context422=_t441.columnWidths).call(_context422,_t441.currentColumn)).call(_context421,function(e,t){return e+t;},0);_t441.currentColumn=0;}else{var _context423,_context424;_s131=_reduceInstanceProperty(_context423=_sliceInstanceProperty(_context424=_t441.columnWidths).call(_context424,_t441.currentColumn,_t441.currentColumn+_i178)).call(_context423,function(e,t){return e+t;},0);_t441.currentColumn=(_t441.currentColumn+e.colSpan)%_t441.columnWidths.length;}isNaN(_s131)||(n=e.w=_s131);}t.width=\"\"!==n?measureToString(n):\"auto\";t.height=\"\"!==i?measureToString(i):\"auto\";},position:function position(e,t){var r=e[a.$getSubformParent]();if(!r||!r.layout||\"position\"===r.layout){t.position=\"absolute\";t.left=measureToString(e.x);t.top=measureToString(e.y);}},rotate:function rotate(e,t){if(e.rotate){\"transform\"in t||(t.transform=\"\");t.transform+=\"rotate(-\".concat(e.rotate,\"deg)\");t.transformOrigin=\"top left\";}},presence:function presence(e,t){switch(e.presence){case\"invisible\":t.visibility=\"hidden\";break;case\"hidden\":case\"inactive\":t.display=\"none\";}},hAlign:function hAlign(e,t){if(\"para\"===e[a.$nodeName])switch(e.hAlign){case\"justifyAll\":t.textAlign=\"justify-all\";break;case\"radix\":t.textAlign=\"left\";break;default:t.textAlign=e.hAlign;}else switch(e.hAlign){case\"left\":t.alignSelf=\"start\";break;case\"center\":t.alignSelf=\"center\";break;case\"right\":t.alignSelf=\"end\";}},margin:function margin(e,t){e.margin&&(t.margin=e.margin[a.$toStyle]().margin);}};function layoutText(e,t,r,n,i,s){var c=new o.TextMeasure(t,r,n,i);\"string\"==typeof e?c.addString(e):e[a.$pushGlyphs](c);return c.compute(s);}function isPrintOnly(e){return e.relevant.length>0&&!e.relevant[0].excluded&&\"print\"===e.relevant[0].viewname;}function getCurrentPara(e){var t=e[a.$getTemplateRoot]()[a.$extra].paraStack;return t.length?t.at(-1):null;}},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.FontFinder=void 0;t.getMetrics=function getMetrics(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;if(e){var _context425;var _t442=(0,n.stripQuotes)(e.typeface),_i179=_findInstanceProperty(_context425=e[a.$globalData].fontFinder).call(_context425,_t442);r=selectFont(e,_i179);}if(!r)return{lineHeight:12,lineGap:2,lineNoGap:10};var i=e.size||10,s=r.lineHeight?Math.max(t?0:1.2,r.lineHeight):1.2,o=void 0===r.lineGap?.2:r.lineGap;return{lineHeight:s*i,lineGap:o*i,lineNoGap:Math.max(1,s-o)*i};};t.selectFont=selectFont;var a=r(202),n=r(203),i=r(2);t.FontFinder=/*#__PURE__*/function(){function FontFinder(e){_classCallCheck(this,FontFinder);this.fonts=new _Map();this.cache=new _Map();this.warned=new _Set();this.defaultFont=null;this.add(e);}_createClass(FontFinder,[{key:\"add\",value:function add(e){var _context426;var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;var _iterator162=_createForOfIteratorHelper(e),_step162;try{for(_iterator162.s();!(_step162=_iterator162.n()).done;){var _t443=_step162.value;this.addPdfFont(_t443);}}catch(err){_iterator162.e(err);}finally{_iterator162.f();}var _iterator163=_createForOfIteratorHelper(_valuesInstanceProperty(_context426=this.fonts).call(_context426)),_step163;try{for(_iterator163.s();!(_step163=_iterator163.n()).done;){var _e575=_step163.value;_e575.regular||(_e575.regular=_e575.italic||_e575.bold||_e575.bolditalic);}}catch(err){_iterator163.e(err);}finally{_iterator163.f();}if(!t||0===t.size)return;var r=this.fonts.get(\"PdfJS-Fallback-PdfJS-XFA\");var _iterator164=_createForOfIteratorHelper(t),_step164;try{for(_iterator164.s();!(_step164=_iterator164.n()).done;){var _e576=_step164.value;this.fonts.set(_e576,r);}}catch(err){_iterator164.e(err);}finally{_iterator164.f();}}},{key:\"addPdfFont\",value:function addPdfFont(e){var t=e.cssFontInfo,r=t.fontFamily;var a=this.fonts.get(r);if(!a){a=Object.create(null);this.fonts.set(r,a);this.defaultFont||(this.defaultFont=a);}var n=\"\";var i=_parseFloat(t.fontWeight);0!==_parseFloat(t.italicAngle)?n=i>=700?\"bolditalic\":\"italic\":i>=700&&(n=\"bold\");if(!n){var _context427,_context428,_context429,_context430,_context431,_context432;(_includesInstanceProperty(_context427=e.name).call(_context427,\"Bold\")||e.psName&&_includesInstanceProperty(_context428=e.psName).call(_context428,\"Bold\"))&&(n=\"bold\");(_includesInstanceProperty(_context429=e.name).call(_context429,\"Italic\")||_endsWithInstanceProperty(_context430=e.name).call(_context430,\"It\")||e.psName&&(_includesInstanceProperty(_context431=e.psName).call(_context431,\"Italic\")||_endsWithInstanceProperty(_context432=e.psName).call(_context432,\"It\")))&&(n+=\"italic\");}n||(n=\"regular\");a[n]=e;}},{key:\"getDefault\",value:function getDefault(){return this.defaultFont;}},{key:\"find\",value:function find(e){var _context439;var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.fonts.get(e)||this.cache.get(e);if(r)return r;var a=/,|-|_| |bolditalic|bold|italic|regular|it/gi;var n=e.replace(a,\"\");r=this.fonts.get(n);if(r){this.cache.set(e,r);return r;}n=n.toLowerCase();var s=[];var _iterator165=_createForOfIteratorHelper(_entriesInstanceProperty(_context439=this.fonts).call(_context439)),_step165;try{for(_iterator165.s();!(_step165=_iterator165.n()).done;){var _context440;var _step165$value=_slicedToArray(_step165.value,2),_e580=_step165$value[0],_t445=_step165$value[1];_startsWithInstanceProperty(_context440=_e580.replace(a,\"\").toLowerCase()).call(_context440,n)&&s.push(_t445);}}catch(err){_iterator165.e(err);}finally{_iterator165.f();}if(0===s.length){var _context433;var _iterator166=_createForOfIteratorHelper(_entriesInstanceProperty(_context433=this.fonts).call(_context433)),_step166;try{for(_iterator166.s();!(_step166=_iterator166.n()).done;){var _context434;var _step166$value=_slicedToArray(_step166.value,2),_e577=_step166$value[1];_e577.regular.name&&_startsWithInstanceProperty(_context434=_e577.regular.name.replace(a,\"\").toLowerCase()).call(_context434,n)&&s.push(_e577);}}catch(err){_iterator166.e(err);}finally{_iterator166.f();}}if(0===s.length){var _context435;n=n.replace(/psmt|mt/gi,\"\");var _iterator167=_createForOfIteratorHelper(_entriesInstanceProperty(_context435=this.fonts).call(_context435)),_step167;try{for(_iterator167.s();!(_step167=_iterator167.n()).done;){var _context436;var _step167$value=_slicedToArray(_step167.value,2),_e578=_step167$value[0],_t444=_step167$value[1];_startsWithInstanceProperty(_context436=_e578.replace(a,\"\").toLowerCase()).call(_context436,n)&&s.push(_t444);}}catch(err){_iterator167.e(err);}finally{_iterator167.f();}}if(0===s.length){var _context437;var _iterator168=_createForOfIteratorHelper(_valuesInstanceProperty(_context437=this.fonts).call(_context437)),_step168;try{for(_iterator168.s();!(_step168=_iterator168.n()).done;){var _context438;var _e579=_step168.value;_e579.regular.name&&_startsWithInstanceProperty(_context438=_e579.regular.name.replace(a,\"\").toLowerCase()).call(_context438,n)&&s.push(_e579);}}catch(err){_iterator168.e(err);}finally{_iterator168.f();}}if(s.length>=1){1!==s.length&&t&&(0,i.warn)(\"XFA - Too many choices to guess the correct font: \".concat(e));this.cache.set(e,s[0]);return s[0];}if(t&&!this.warned.has(e)){this.warned.add(e);(0,i.warn)(\"XFA - Cannot find the font: \".concat(e));}return null;}}]);return FontFinder;}();function selectFont(e,t){return\"italic\"===e.posture?\"bold\"===e.weight?t.bolditalic:t.italic:\"bold\"===e.weight?t.bold:t.regular;}},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.TextMeasure=void 0;var a=r(210);var FontInfo=/*#__PURE__*/function(){function FontInfo(e,t,r,n){_classCallCheck(this,FontInfo);this.lineHeight=r;this.paraMargin=t||{top:0,bottom:0,left:0,right:0};if(!e){var _this$defaultFont=this.defaultFont(n);var _this$defaultFont2=_slicedToArray(_this$defaultFont,2);this.pdfFont=_this$defaultFont2[0];this.xfaFont=_this$defaultFont2[1];return;}this.xfaFont={typeface:e.typeface,posture:e.posture,weight:e.weight,size:e.size,letterSpacing:e.letterSpacing};var i=_findInstanceProperty(n).call(n,e.typeface);if(i){var _this$defaultFont3,_this$defaultFont4;this.pdfFont=(0,a.selectFont)(e,i);this.pdfFont||(_this$defaultFont3=this.defaultFont(n),_this$defaultFont4=_slicedToArray(_this$defaultFont3,2),this.pdfFont=_this$defaultFont4[0],this.xfaFont=_this$defaultFont4[1],_this$defaultFont3);}else{var _this$defaultFont5=this.defaultFont(n);var _this$defaultFont6=_slicedToArray(_this$defaultFont5,2);this.pdfFont=_this$defaultFont6[0];this.xfaFont=_this$defaultFont6[1];}}_createClass(FontInfo,[{key:\"defaultFont\",value:function defaultFont(e){var t=_findInstanceProperty(e).call(e,\"Helvetica\",!1)||_findInstanceProperty(e).call(e,\"Myriad Pro\",!1)||_findInstanceProperty(e).call(e,\"Arial\",!1)||e.getDefault();if(t&&t.regular){var _e581=t.regular;return[_e581,{typeface:_e581.cssFontInfo.fontFamily,posture:\"normal\",weight:\"normal\",size:10,letterSpacing:0}];}return[null,{typeface:\"Courier\",posture:\"normal\",weight:\"normal\",size:10,letterSpacing:0}];}}]);return FontInfo;}();var FontSelector=/*#__PURE__*/function(){function FontSelector(e,t,r,a){_classCallCheck(this,FontSelector);this.fontFinder=a;this.stack=[new FontInfo(e,t,r,a)];}_createClass(FontSelector,[{key:\"pushData\",value:function pushData(e,t,r){var a=this.stack.at(-1);for(var _i180=0,_arr6=[\"typeface\",\"posture\",\"weight\",\"size\",\"letterSpacing\"];_i180<_arr6.length;_i180++){var _t446=_arr6[_i180];e[_t446]||(e[_t446]=a.xfaFont[_t446]);}for(var _i181=0,_arr7=[\"top\",\"bottom\",\"left\",\"right\"];_i181<_arr7.length;_i181++){var _e582=_arr7[_i181];isNaN(t[_e582])&&(t[_e582]=a.paraMargin[_e582]);}var n=new FontInfo(e,t,r||a.lineHeight,this.fontFinder);n.pdfFont||(n.pdfFont=a.pdfFont);this.stack.push(n);}},{key:\"popFont\",value:function popFont(){this.stack.pop();}},{key:\"topFont\",value:function topFont(){return this.stack.at(-1);}}]);return FontSelector;}();t.TextMeasure=/*#__PURE__*/function(){function TextMeasure(e,t,r,a){_classCallCheck(this,TextMeasure);this.glyphs=[];this.fontSelector=new FontSelector(e,t,r,a);this.extraHeight=0;}_createClass(TextMeasure,[{key:\"pushData\",value:function pushData(e,t,r){this.fontSelector.pushData(e,t,r);}},{key:\"popFont\",value:function popFont(e){return this.fontSelector.popFont();}},{key:\"addPara\",value:function addPara(){var e=this.fontSelector.topFont();this.extraHeight+=e.paraMargin.top+e.paraMargin.bottom;}},{key:\"addString\",value:function addString(e){if(!e)return;var t=this.fontSelector.topFont(),r=t.xfaFont.size;if(t.pdfFont){var _a259=t.xfaFont.letterSpacing,_n204=t.pdfFont,_i182=_n204.lineHeight||1.2,_s132=t.lineHeight||Math.max(1.2,_i182)*r,_o82=_i182-(void 0===_n204.lineGap?.2:_n204.lineGap),_c65=Math.max(1,_o82)*r,l=r/1e3,_h39=_n204.defaultWidth||_n204.charsToGlyphs(\" \")[0].width;var _iterator169=_createForOfIteratorHelper(e.split(/[\\u2029\\n]/)),_step169;try{for(_iterator169.s();!(_step169=_iterator169.n()).done;){var _t447=_step169.value;var _e583=_n204.encodeString(_t447).join(\"\"),_r359=_n204.charsToGlyphs(_e583);var _iterator170=_createForOfIteratorHelper(_r359),_step170;try{for(_iterator170.s();!(_step170=_iterator170.n()).done;){var _e584=_step170.value;var _t448=_e584.width||_h39;this.glyphs.push([_t448*l+_a259,_s132,_c65,_e584.unicode,!1]);}}catch(err){_iterator170.e(err);}finally{_iterator170.f();}this.glyphs.push([0,0,0,\"\\n\",!0]);}}catch(err){_iterator169.e(err);}finally{_iterator169.f();}this.glyphs.pop();}else{var _iterator171=_createForOfIteratorHelper(e.split(/[\\u2029\\n]/)),_step171;try{for(_iterator171.s();!(_step171=_iterator171.n()).done;){var _t449=_step171.value;var _iterator172=_createForOfIteratorHelper(_t449.split(\"\")),_step172;try{for(_iterator172.s();!(_step172=_iterator172.n()).done;){var _e585=_step172.value;this.glyphs.push([r,1.2*r,r,_e585,!1]);}}catch(err){_iterator172.e(err);}finally{_iterator172.f();}this.glyphs.push([0,0,0,\"\\n\",!0]);}}catch(err){_iterator171.e(err);}finally{_iterator171.f();}this.glyphs.pop();}}},{key:\"compute\",value:function compute(e){var t=-1,r=0,a=0,n=0,i=0,s=0,o=!1,c=!0;for(var l=0,_h40=this.glyphs.length;l<_h40;l++){var _this$glyphs$l=_slicedToArray(this.glyphs[l],5),_h41=_this$glyphs$l[0],u=_this$glyphs$l[1],d=_this$glyphs$l[2],f=_this$glyphs$l[3],_g25=_this$glyphs$l[4],_p18=\" \"===f,_m15=c?d:u;if(_g25){a=Math.max(a,i);i=0;n+=s;s=_m15;t=-1;r=0;c=!1;}else if(_p18){if(i+_h41>e){a=Math.max(a,i);i=0;n+=s;s=_m15;t=-1;r=0;o=!0;c=!1;}else{s=Math.max(_m15,s);r=i;i+=_h41;t=l;}}else if(i+_h41>e){n+=s;s=_m15;if(-1!==t){l=t;a=Math.max(a,r);i=0;t=-1;r=0;}else{a=Math.max(a,i);i=_h41;}o=!0;c=!1;}else{i+=_h41;s=Math.max(_m15,s);}}a=Math.max(a,i);n+=s+this.extraHeight;return{width:1.02*a,height:n,isBroken:o};}}]);return TextMeasure;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.DataHandler=void 0;var a=r(202);t.DataHandler=/*#__PURE__*/function(){function DataHandler(e,t){_classCallCheck(this,DataHandler);this.data=t;this.dataset=e.datasets||null;}_createClass(DataHandler,[{key:\"serialize\",value:function serialize(e){var t=[[-1,this.data[a.$getChildren]()]];for(;t.length>0;){var _r361=t.at(-1),_r360=_slicedToArray(_r361,2),_n205=_r360[0],_i183=_r360[1];if(_n205+1===_i183.length){t.pop();continue;}var _s133=_i183[++_r361[0]],_o83=e.get(_s133[a.$uid]);if(_o83)_s133[a.$setValue](_o83);else{var _t450=_s133[a.$getAttributes]();var _iterator173=_createForOfIteratorHelper(_valuesInstanceProperty(_t450).call(_t450)),_step173;try{for(_iterator173.s();!(_step173=_iterator173.n()).done;){var _r362=_step173.value;var _t451=e.get(_r362[a.$uid]);if(_t451){_r362[a.$setValue](_t451);break;}}}catch(err){_iterator173.e(err);}finally{_iterator173.f();}}var _c66=_s133[a.$getChildren]();_c66.length>0&&t.push([-1,_c66]);}var r=['<xfa:datasets xmlns:xfa=\"http://www.xfa.org/schema/xfa-data/1.0/\">'];if(this.dataset){var _iterator174=_createForOfIteratorHelper(this.dataset[a.$getChildren]()),_step174;try{for(_iterator174.s();!(_step174=_iterator174.n()).done;){var _e586=_step174.value;\"data\"!==_e586[a.$nodeName]&&_e586[a.$toString](r);}}catch(err){_iterator174.e(err);}finally{_iterator174.f();}}this.data[a.$toString](r);r.push(\"</xfa:datasets>\");return r.join(\"\");}}]);return DataHandler;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.XFAParser=void 0;var a=r(202),n=r(191),i=r(214),s=r(2);var XFAParser=/*#__PURE__*/function(_n$XMLParserBase){_inherits(XFAParser,_n$XMLParserBase);function XFAParser(){var _this218;_classCallCheck(this,XFAParser);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_this218=_callSuper(this,XFAParser);_this218._builder=new i.Builder(e);_this218._stack=[];_this218._globalData={usedTypefaces:new _Set()};_this218._ids=new _Map();_this218._current=_this218._builder.buildRoot(_this218._ids);_this218._errorCode=n.XMLParserErrorCode.NoError;_this218._whiteRegex=/^\\s+$/;_this218._nbsps=/\\xa0+/g;_this218._richText=t;return _this218;}_createClass(XFAParser,[{key:\"parse\",value:function parse(e){this.parseXml(e);if(this._errorCode===n.XMLParserErrorCode.NoError){this._current[a.$finalize]();return this._current.element;}}},{key:\"onText\",value:function onText(e){e=e.replace(this._nbsps,function(e){return _sliceInstanceProperty(e).call(e,1)+\" \";});this._richText||this._current[a.$acceptWhitespace]()?this._current[a.$onText](e,this._richText):this._whiteRegex.test(e)||this._current[a.$onText](_trimInstanceProperty(e).call(e));}},{key:\"onCdata\",value:function onCdata(e){this._current[a.$onText](e);}},{key:\"_mkAttributes\",value:function _mkAttributes(e,t){var r=null,n=null;var i=Object.create({});var _iterator175=_createForOfIteratorHelper(e),_step175;try{for(_iterator175.s();!(_step175=_iterator175.n()).done;){var _step175$value=_step175.value,_o84=_step175$value.name,_c67=_step175$value.value;if(\"xmlns\"===_o84)r?(0,s.warn)(\"XFA - multiple namespace definition in <\".concat(t,\">\")):r=_c67;else if(_startsWithInstanceProperty(_o84).call(_o84,\"xmlns:\")){var _e587=_o84.substring(\"xmlns:\".length);n||(n=[]);n.push({prefix:_e587,value:_c67});}else{var _e588=_indexOfInstanceProperty(_o84).call(_o84,\":\");if(-1===_e588)i[_o84]=_c67;else{var _t452=i[a.$nsAttributes];_t452||(_t452=i[a.$nsAttributes]=Object.create(null));var _ref22=[_sliceInstanceProperty(_o84).call(_o84,0,_e588),_sliceInstanceProperty(_o84).call(_o84,_e588+1)],_r363=_ref22[0],_n206=_ref22[1];var _s134=_t452[_r363];_s134||(_s134=_t452[_r363]=Object.create(null));_s134[_n206]=_c67;}}}}catch(err){_iterator175.e(err);}finally{_iterator175.f();}return[r,n,i];}},{key:\"_getNameAndPrefix\",value:function _getNameAndPrefix(e,t){var r=_indexOfInstanceProperty(e).call(e,\":\");return-1===r?[e,null]:[e.substring(r+1),t?\"\":e.substring(0,r)];}},{key:\"onBeginElement\",value:function onBeginElement(e,t,r){var _this$_mkAttributes=this._mkAttributes(t,e),_this$_mkAttributes2=_slicedToArray(_this$_mkAttributes,3),n=_this$_mkAttributes2[0],i=_this$_mkAttributes2[1],s=_this$_mkAttributes2[2],_this$_getNameAndPref=this._getNameAndPrefix(e,this._builder.isNsAgnostic()),_this$_getNameAndPref2=_slicedToArray(_this$_getNameAndPref,2),o=_this$_getNameAndPref2[0],c=_this$_getNameAndPref2[1],l=this._builder.build({nsPrefix:c,name:o,attributes:s,namespace:n,prefixes:i});l[a.$globalData]=this._globalData;if(r){l[a.$finalize]();this._current[a.$onChild](l)&&l[a.$setId](this._ids);l[a.$clean](this._builder);}else{this._stack.push(this._current);this._current=l;}}},{key:\"onEndElement\",value:function onEndElement(e){var t=this._current;if(t[a.$isCDATAXml]()&&\"string\"==typeof t[a.$content]){var _e589=new XFAParser();_e589._globalData=this._globalData;var _r364=_e589.parse(t[a.$content]);t[a.$content]=null;t[a.$onChild](_r364);}t[a.$finalize]();this._current=this._stack.pop();this._current[a.$onChild](t)&&t[a.$setId](this._ids);t[a.$clean](this._builder);}},{key:\"onError\",value:function onError(e){this._errorCode=e;}}]);return XFAParser;}(n.XMLParserBase);t.XFAParser=XFAParser;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.Builder=void 0;var a=r(204),n=r(202),i=r(215),s=r(207),o=r(224),c=r(2);var Root=/*#__PURE__*/function(_n$XFAObject,_n$$onChild,_n$$finalize){_inherits(Root,_n$XFAObject);function Root(e){var _this219;_classCallCheck(this,Root);_this219=_callSuper(this,Root,[-1,\"root\",Object.create(null)]);_this219.element=null;_this219[n.$ids]=e;return _this219;}_createClass(Root,[{key:_n$$onChild,value:function value(e){this.element=e;return!0;}},{key:_n$$finalize,value:function value(){_get(_getPrototypeOf(Root.prototype),n.$finalize,this).call(this);if(this.element.template instanceof s.Template){this[n.$ids].set(n.$root,this.element);this.element.template[n.$resolvePrototypes](this[n.$ids]);this.element.template[n.$ids]=this[n.$ids];}}}]);return Root;}(n.XFAObject,n.$onChild,n.$finalize);var Empty=/*#__PURE__*/function(_n$XFAObject2,_n$$onChild2){_inherits(Empty,_n$XFAObject2);function Empty(){_classCallCheck(this,Empty);return _callSuper(this,Empty,[-1,\"\",Object.create(null)]);}_createClass(Empty,[{key:_n$$onChild2,value:function value(e){return!1;}}]);return Empty;}(n.XFAObject,n.$onChild);t.Builder=/*#__PURE__*/function(){function Builder(){var _context441;_classCallCheck(this,Builder);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._namespaceStack=[];this._nsAgnosticLevel=0;this._namespacePrefixes=new _Map();this._namespaces=new _Map();this._nextNsId=Math.max.apply(Math,_toConsumableArray(_mapInstanceProperty(_context441=_Object$values(a.NamespaceIds)).call(_context441,function(e){var t=e.id;return t;})));this._currentNamespace=e||new o.UnknownNamespace(++this._nextNsId);}_createClass(Builder,[{key:\"buildRoot\",value:function buildRoot(e){return new Root(e);}},{key:\"build\",value:function build(e){var t=e.nsPrefix,r=e.name,s=e.attributes,o=e.namespace,c=e.prefixes;var l=null!==o;if(l){this._namespaceStack.push(this._currentNamespace);this._currentNamespace=this._searchNamespace(o);}c&&this._addNamespacePrefix(c);if(s.hasOwnProperty(n.$nsAttributes)){var _e590=i.NamespaceSetUp.datasets,_t453=s[n.$nsAttributes];var _r365=null;for(var _i184=0,_Object$entries7=_Object$entries2(_t453);_i184<_Object$entries7.length;_i184++){var _Object$entries7$_i=_slicedToArray(_Object$entries7[_i184],2),_a260=_Object$entries7$_i[0],_n207=_Object$entries7$_i[1];if(this._getNamespaceToUse(_a260)===_e590){_r365={xfa:_n207};break;}}_r365?s[n.$nsAttributes]=_r365:delete s[n.$nsAttributes];}var h=this._getNamespaceToUse(t),u=h&&h[a.$buildXFAObject](r,s)||new Empty();u[n.$isNsAgnostic]()&&this._nsAgnosticLevel++;(l||c||u[n.$isNsAgnostic]())&&(u[n.$cleanup]={hasNamespace:l,prefixes:c,nsAgnostic:u[n.$isNsAgnostic]()});return u;}},{key:\"isNsAgnostic\",value:function isNsAgnostic(){return this._nsAgnosticLevel>0;}},{key:\"_searchNamespace\",value:function _searchNamespace(e){var t=this._namespaces.get(e);if(t)return t;for(var _i185=0,_Object$entries8=_Object$entries2(a.NamespaceIds);_i185<_Object$entries8.length;_i185++){var _Object$entries8$_i=_slicedToArray(_Object$entries8[_i185],2),_r366=_Object$entries8$_i[0],_n208=_Object$entries8$_i[1].check;if(_n208(e)){t=i.NamespaceSetUp[_r366];if(t){this._namespaces.set(e,t);return t;}break;}}t=new o.UnknownNamespace(++this._nextNsId);this._namespaces.set(e,t);return t;}},{key:\"_addNamespacePrefix\",value:function _addNamespacePrefix(e){var _iterator176=_createForOfIteratorHelper(e),_step176;try{for(_iterator176.s();!(_step176=_iterator176.n()).done;){var _step176$value=_step176.value,_t454=_step176$value.prefix,_r367=_step176$value.value;var _e591=this._searchNamespace(_r367);var _a261=this._namespacePrefixes.get(_t454);if(!_a261){_a261=[];this._namespacePrefixes.set(_t454,_a261);}_a261.push(_e591);}}catch(err){_iterator176.e(err);}finally{_iterator176.f();}}},{key:\"_getNamespaceToUse\",value:function _getNamespaceToUse(e){if(!e)return this._currentNamespace;var t=this._namespacePrefixes.get(e);if(t&&t.length>0)return t.at(-1);(0,c.warn)(\"Unknown namespace prefix: \".concat(e,\".\"));return null;}},{key:\"clean\",value:function clean(e){var _this220=this;var t=e.hasNamespace,r=e.prefixes,a=e.nsAgnostic;t&&(this._currentNamespace=this._namespaceStack.pop());r&&r.forEach(function(e){var t=e.prefix;_this220._namespacePrefixes.get(t).pop();});a&&this._nsAgnosticLevel--;}}]);return Builder;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.NamespaceSetUp=void 0;var a=r(216),n=r(217),i=r(218),s=r(219),o=r(220),c=r(221),l=r(207),h=r(222),u=r(223);var d={config:a.ConfigNamespace,connection:n.ConnectionSetNamespace,datasets:i.DatasetsNamespace,localeSet:s.LocaleSetNamespace,signature:o.SignatureNamespace,stylesheet:c.StylesheetNamespace,template:l.TemplateNamespace,xdp:h.XdpNamespace,xhtml:u.XhtmlNamespace};t.NamespaceSetUp=d;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.ConfigNamespace=void 0;var a=r(204),n=r(202),i=r(203),s=r(2);var o=a.NamespaceIds.config.id;var Acrobat=/*#__PURE__*/function(_n$XFAObject3){_inherits(Acrobat,_n$XFAObject3);function Acrobat(e){var _this221;_classCallCheck(this,Acrobat);_this221=_callSuper(this,Acrobat,[o,\"acrobat\",!0]);_this221.acrobat7=null;_this221.autoSave=null;_this221.common=null;_this221.validate=null;_this221.validateApprovalSignatures=null;_this221.submitUrl=new n.XFAObjectArray();return _this221;}return _createClass(Acrobat);}(n.XFAObject);var Acrobat7=/*#__PURE__*/function(_n$XFAObject4){_inherits(Acrobat7,_n$XFAObject4);function Acrobat7(e){var _this222;_classCallCheck(this,Acrobat7);_this222=_callSuper(this,Acrobat7,[o,\"acrobat7\",!0]);_this222.dynamicRender=null;return _this222;}return _createClass(Acrobat7);}(n.XFAObject);var _ADBE_JSConsole=/*#__PURE__*/function(_n$OptionObject){_inherits(ADBE_JSConsole,_n$OptionObject);function ADBE_JSConsole(e){_classCallCheck(this,ADBE_JSConsole);return _callSuper(this,ADBE_JSConsole,[o,\"ADBE_JSConsole\",[\"delegate\",\"Enable\",\"Disable\"]]);}return _createClass(ADBE_JSConsole);}(n.OptionObject);var _ADBE_JSDebugger=/*#__PURE__*/function(_n$OptionObject2){_inherits(ADBE_JSDebugger,_n$OptionObject2);function ADBE_JSDebugger(e){_classCallCheck(this,ADBE_JSDebugger);return _callSuper(this,ADBE_JSDebugger,[o,\"ADBE_JSDebugger\",[\"delegate\",\"Enable\",\"Disable\"]]);}return _createClass(ADBE_JSDebugger);}(n.OptionObject);var AddSilentPrint=/*#__PURE__*/function(_n$Option){_inherits(AddSilentPrint,_n$Option);function AddSilentPrint(e){_classCallCheck(this,AddSilentPrint);return _callSuper(this,AddSilentPrint,[o,\"addSilentPrint\"]);}return _createClass(AddSilentPrint);}(n.Option01);var AddViewerPreferences=/*#__PURE__*/function(_n$Option2){_inherits(AddViewerPreferences,_n$Option2);function AddViewerPreferences(e){_classCallCheck(this,AddViewerPreferences);return _callSuper(this,AddViewerPreferences,[o,\"addViewerPreferences\"]);}return _createClass(AddViewerPreferences);}(n.Option01);var AdjustData=/*#__PURE__*/function(_n$Option3){_inherits(AdjustData,_n$Option3);function AdjustData(e){_classCallCheck(this,AdjustData);return _callSuper(this,AdjustData,[o,\"adjustData\"]);}return _createClass(AdjustData);}(n.Option10);var AdobeExtensionLevel=/*#__PURE__*/function(_n$IntegerObject){_inherits(AdobeExtensionLevel,_n$IntegerObject);function AdobeExtensionLevel(e){_classCallCheck(this,AdobeExtensionLevel);return _callSuper(this,AdobeExtensionLevel,[o,\"adobeExtensionLevel\",0,function(e){return e>=1&&e<=8;}]);}return _createClass(AdobeExtensionLevel);}(n.IntegerObject);var Agent=/*#__PURE__*/function(_n$XFAObject5){_inherits(Agent,_n$XFAObject5);function Agent(e){var _context442;var _this223;_classCallCheck(this,Agent);_this223=_callSuper(this,Agent,[o,\"agent\",!0]);_this223.name=e.name?_trimInstanceProperty(_context442=e.name).call(_context442):\"\";_this223.common=new n.XFAObjectArray();return _this223;}return _createClass(Agent);}(n.XFAObject);var AlwaysEmbed=/*#__PURE__*/function(_n$ContentObject){_inherits(AlwaysEmbed,_n$ContentObject);function AlwaysEmbed(e){_classCallCheck(this,AlwaysEmbed);return _callSuper(this,AlwaysEmbed,[o,\"alwaysEmbed\"]);}return _createClass(AlwaysEmbed);}(n.ContentObject);var Amd=/*#__PURE__*/function(_n$StringObject){_inherits(Amd,_n$StringObject);function Amd(e){_classCallCheck(this,Amd);return _callSuper(this,Amd,[o,\"amd\"]);}return _createClass(Amd);}(n.StringObject);var Area=/*#__PURE__*/function(_n$XFAObject6){_inherits(Area,_n$XFAObject6);function Area(e){var _this224;_classCallCheck(this,Area);_this224=_callSuper(this,Area,[o,\"area\"]);_this224.level=(0,i.getInteger)({data:e.level,defaultValue:0,validate:function validate(e){return e>=1&&e<=3;}});_this224.name=(0,i.getStringOption)(e.name,[\"\",\"barcode\",\"coreinit\",\"deviceDriver\",\"font\",\"general\",\"layout\",\"merge\",\"script\",\"signature\",\"sourceSet\",\"templateCache\"]);return _this224;}return _createClass(Area);}(n.XFAObject);var Attributes=/*#__PURE__*/function(_n$OptionObject3){_inherits(Attributes,_n$OptionObject3);function Attributes(e){_classCallCheck(this,Attributes);return _callSuper(this,Attributes,[o,\"attributes\",[\"preserve\",\"delegate\",\"ignore\"]]);}return _createClass(Attributes);}(n.OptionObject);var AutoSave=/*#__PURE__*/function(_n$OptionObject4){_inherits(AutoSave,_n$OptionObject4);function AutoSave(e){_classCallCheck(this,AutoSave);return _callSuper(this,AutoSave,[o,\"autoSave\",[\"disabled\",\"enabled\"]]);}return _createClass(AutoSave);}(n.OptionObject);var Base=/*#__PURE__*/function(_n$StringObject2){_inherits(Base,_n$StringObject2);function Base(e){_classCallCheck(this,Base);return _callSuper(this,Base,[o,\"base\"]);}return _createClass(Base);}(n.StringObject);var BatchOutput=/*#__PURE__*/function(_n$XFAObject7){_inherits(BatchOutput,_n$XFAObject7);function BatchOutput(e){var _this225;_classCallCheck(this,BatchOutput);_this225=_callSuper(this,BatchOutput,[o,\"batchOutput\"]);_this225.format=(0,i.getStringOption)(e.format,[\"none\",\"concat\",\"zip\",\"zipCompress\"]);return _this225;}return _createClass(BatchOutput);}(n.XFAObject);var BehaviorOverride=/*#__PURE__*/function(_n$ContentObject2,_n$$finalize2){_inherits(BehaviorOverride,_n$ContentObject2);function BehaviorOverride(e){_classCallCheck(this,BehaviorOverride);return _callSuper(this,BehaviorOverride,[o,\"behaviorOverride\"]);}_createClass(BehaviorOverride,[{key:_n$$finalize2,value:function value(){var _context443,_context444,_context445;this[n.$content]=new _Map(_mapInstanceProperty(_context443=_filterInstanceProperty(_context444=_trimInstanceProperty(_context445=this[n.$content]).call(_context445).split(/\\s+/)).call(_context444,function(e){return _includesInstanceProperty(e).call(e,\":\");})).call(_context443,function(e){return e.split(\":\",2);}));}}]);return BehaviorOverride;}(n.ContentObject,n.$finalize);var Cache=/*#__PURE__*/function(_n$XFAObject8){_inherits(Cache,_n$XFAObject8);function Cache(e){var _this226;_classCallCheck(this,Cache);_this226=_callSuper(this,Cache,[o,\"cache\",!0]);_this226.templateCache=null;return _this226;}return _createClass(Cache);}(n.XFAObject);var Change=/*#__PURE__*/function(_n$Option4){_inherits(Change,_n$Option4);function Change(e){_classCallCheck(this,Change);return _callSuper(this,Change,[o,\"change\"]);}return _createClass(Change);}(n.Option01);var Common=/*#__PURE__*/function(_n$XFAObject9){_inherits(Common,_n$XFAObject9);function Common(e){var _this227;_classCallCheck(this,Common);_this227=_callSuper(this,Common,[o,\"common\",!0]);_this227.data=null;_this227.locale=null;_this227.localeSet=null;_this227.messaging=null;_this227.suppressBanner=null;_this227.template=null;_this227.validationMessaging=null;_this227.versionControl=null;_this227.log=new n.XFAObjectArray();return _this227;}return _createClass(Common);}(n.XFAObject);var Compress=/*#__PURE__*/function(_n$XFAObject10){_inherits(Compress,_n$XFAObject10);function Compress(e){var _this228;_classCallCheck(this,Compress);_this228=_callSuper(this,Compress,[o,\"compress\"]);_this228.scope=(0,i.getStringOption)(e.scope,[\"imageOnly\",\"document\"]);return _this228;}return _createClass(Compress);}(n.XFAObject);var CompressLogicalStructure=/*#__PURE__*/function(_n$Option5){_inherits(CompressLogicalStructure,_n$Option5);function CompressLogicalStructure(e){_classCallCheck(this,CompressLogicalStructure);return _callSuper(this,CompressLogicalStructure,[o,\"compressLogicalStructure\"]);}return _createClass(CompressLogicalStructure);}(n.Option01);var CompressObjectStream=/*#__PURE__*/function(_n$Option6){_inherits(CompressObjectStream,_n$Option6);function CompressObjectStream(e){_classCallCheck(this,CompressObjectStream);return _callSuper(this,CompressObjectStream,[o,\"compressObjectStream\"]);}return _createClass(CompressObjectStream);}(n.Option10);var Compression=/*#__PURE__*/function(_n$XFAObject11){_inherits(Compression,_n$XFAObject11);function Compression(e){var _this229;_classCallCheck(this,Compression);_this229=_callSuper(this,Compression,[o,\"compression\",!0]);_this229.compressLogicalStructure=null;_this229.compressObjectStream=null;_this229.level=null;_this229.type=null;return _this229;}return _createClass(Compression);}(n.XFAObject);var Config=/*#__PURE__*/function(_n$XFAObject12){_inherits(Config,_n$XFAObject12);function Config(e){var _this230;_classCallCheck(this,Config);_this230=_callSuper(this,Config,[o,\"config\",!0]);_this230.acrobat=null;_this230.present=null;_this230.trace=null;_this230.agent=new n.XFAObjectArray();return _this230;}return _createClass(Config);}(n.XFAObject);var Conformance=/*#__PURE__*/function(_n$OptionObject5){_inherits(Conformance,_n$OptionObject5);function Conformance(e){_classCallCheck(this,Conformance);return _callSuper(this,Conformance,[o,\"conformance\",[\"A\",\"B\"]]);}return _createClass(Conformance);}(n.OptionObject);var ContentCopy=/*#__PURE__*/function(_n$Option7){_inherits(ContentCopy,_n$Option7);function ContentCopy(e){_classCallCheck(this,ContentCopy);return _callSuper(this,ContentCopy,[o,\"contentCopy\"]);}return _createClass(ContentCopy);}(n.Option01);var Copies=/*#__PURE__*/function(_n$IntegerObject2){_inherits(Copies,_n$IntegerObject2);function Copies(e){_classCallCheck(this,Copies);return _callSuper(this,Copies,[o,\"copies\",1,function(e){return e>=1;}]);}return _createClass(Copies);}(n.IntegerObject);var Creator=/*#__PURE__*/function(_n$StringObject3){_inherits(Creator,_n$StringObject3);function Creator(e){_classCallCheck(this,Creator);return _callSuper(this,Creator,[o,\"creator\"]);}return _createClass(Creator);}(n.StringObject);var CurrentPage=/*#__PURE__*/function(_n$IntegerObject3){_inherits(CurrentPage,_n$IntegerObject3);function CurrentPage(e){_classCallCheck(this,CurrentPage);return _callSuper(this,CurrentPage,[o,\"currentPage\",0,function(e){return e>=0;}]);}return _createClass(CurrentPage);}(n.IntegerObject);var Data=/*#__PURE__*/function(_n$XFAObject13){_inherits(Data,_n$XFAObject13);function Data(e){var _this231;_classCallCheck(this,Data);_this231=_callSuper(this,Data,[o,\"data\",!0]);_this231.adjustData=null;_this231.attributes=null;_this231.incrementalLoad=null;_this231.outputXSL=null;_this231.range=null;_this231.record=null;_this231.startNode=null;_this231.uri=null;_this231.window=null;_this231.xsl=null;_this231.excludeNS=new n.XFAObjectArray();_this231.transform=new n.XFAObjectArray();return _this231;}return _createClass(Data);}(n.XFAObject);var Debug=/*#__PURE__*/function(_n$XFAObject14){_inherits(Debug,_n$XFAObject14);function Debug(e){var _this232;_classCallCheck(this,Debug);_this232=_callSuper(this,Debug,[o,\"debug\",!0]);_this232.uri=null;return _this232;}return _createClass(Debug);}(n.XFAObject);var DefaultTypeface=/*#__PURE__*/function(_n$ContentObject3){_inherits(DefaultTypeface,_n$ContentObject3);function DefaultTypeface(e){var _this233;_classCallCheck(this,DefaultTypeface);_this233=_callSuper(this,DefaultTypeface,[o,\"defaultTypeface\"]);_this233.writingScript=(0,i.getStringOption)(e.writingScript,[\"*\",\"Arabic\",\"Cyrillic\",\"EastEuropeanRoman\",\"Greek\",\"Hebrew\",\"Japanese\",\"Korean\",\"Roman\",\"SimplifiedChinese\",\"Thai\",\"TraditionalChinese\",\"Vietnamese\"]);return _this233;}return _createClass(DefaultTypeface);}(n.ContentObject);var Destination=/*#__PURE__*/function(_n$OptionObject6){_inherits(Destination,_n$OptionObject6);function Destination(e){_classCallCheck(this,Destination);return _callSuper(this,Destination,[o,\"destination\",[\"pdf\",\"pcl\",\"ps\",\"webClient\",\"zpl\"]]);}return _createClass(Destination);}(n.OptionObject);var DocumentAssembly=/*#__PURE__*/function(_n$Option8){_inherits(DocumentAssembly,_n$Option8);function DocumentAssembly(e){_classCallCheck(this,DocumentAssembly);return _callSuper(this,DocumentAssembly,[o,\"documentAssembly\"]);}return _createClass(DocumentAssembly);}(n.Option01);var Driver=/*#__PURE__*/function(_n$XFAObject15){_inherits(Driver,_n$XFAObject15);function Driver(e){var _context446;var _this234;_classCallCheck(this,Driver);_this234=_callSuper(this,Driver,[o,\"driver\",!0]);_this234.name=e.name?_trimInstanceProperty(_context446=e.name).call(_context446):\"\";_this234.fontInfo=null;_this234.xdc=null;return _this234;}return _createClass(Driver);}(n.XFAObject);var DuplexOption=/*#__PURE__*/function(_n$OptionObject7){_inherits(DuplexOption,_n$OptionObject7);function DuplexOption(e){_classCallCheck(this,DuplexOption);return _callSuper(this,DuplexOption,[o,\"duplexOption\",[\"simplex\",\"duplexFlipLongEdge\",\"duplexFlipShortEdge\"]]);}return _createClass(DuplexOption);}(n.OptionObject);var DynamicRender=/*#__PURE__*/function(_n$OptionObject8){_inherits(DynamicRender,_n$OptionObject8);function DynamicRender(e){_classCallCheck(this,DynamicRender);return _callSuper(this,DynamicRender,[o,\"dynamicRender\",[\"forbidden\",\"required\"]]);}return _createClass(DynamicRender);}(n.OptionObject);var Embed=/*#__PURE__*/function(_n$Option9){_inherits(Embed,_n$Option9);function Embed(e){_classCallCheck(this,Embed);return _callSuper(this,Embed,[o,\"embed\"]);}return _createClass(Embed);}(n.Option01);var Encrypt=/*#__PURE__*/function(_n$Option10){_inherits(Encrypt,_n$Option10);function Encrypt(e){_classCallCheck(this,Encrypt);return _callSuper(this,Encrypt,[o,\"encrypt\"]);}return _createClass(Encrypt);}(n.Option01);var Encryption=/*#__PURE__*/function(_n$XFAObject16){_inherits(Encryption,_n$XFAObject16);function Encryption(e){var _this235;_classCallCheck(this,Encryption);_this235=_callSuper(this,Encryption,[o,\"encryption\",!0]);_this235.encrypt=null;_this235.encryptionLevel=null;_this235.permissions=null;return _this235;}return _createClass(Encryption);}(n.XFAObject);var EncryptionLevel=/*#__PURE__*/function(_n$OptionObject9){_inherits(EncryptionLevel,_n$OptionObject9);function EncryptionLevel(e){_classCallCheck(this,EncryptionLevel);return _callSuper(this,EncryptionLevel,[o,\"encryptionLevel\",[\"40bit\",\"128bit\"]]);}return _createClass(EncryptionLevel);}(n.OptionObject);var Enforce=/*#__PURE__*/function(_n$StringObject4){_inherits(Enforce,_n$StringObject4);function Enforce(e){_classCallCheck(this,Enforce);return _callSuper(this,Enforce,[o,\"enforce\"]);}return _createClass(Enforce);}(n.StringObject);var Equate=/*#__PURE__*/function(_n$XFAObject17){_inherits(Equate,_n$XFAObject17);function Equate(e){var _this236;_classCallCheck(this,Equate);_this236=_callSuper(this,Equate,[o,\"equate\"]);_this236.force=(0,i.getInteger)({data:e.force,defaultValue:1,validate:function validate(e){return 0===e;}});_this236.from=e.from||\"\";_this236.to=e.to||\"\";return _this236;}return _createClass(Equate);}(n.XFAObject);var EquateRange=/*#__PURE__*/function(_n$XFAObject18){_inherits(EquateRange,_n$XFAObject18);function EquateRange(e){var _this237;_classCallCheck(this,EquateRange);_this237=_callSuper(this,EquateRange,[o,\"equateRange\"]);_this237.from=e.from||\"\";_this237.to=e.to||\"\";_this237._unicodeRange=e.unicodeRange||\"\";return _this237;}_createClass(EquateRange,[{key:\"unicodeRange\",get:function get(){var _context447,_context448;var e=[],t=/U\\+([0-9a-fA-F]+)/,r=this._unicodeRange;var _iterator177=_createForOfIteratorHelper(_filterInstanceProperty(_context447=_mapInstanceProperty(_context448=r.split(\",\")).call(_context448,function(e){return _trimInstanceProperty(e).call(e);})).call(_context447,function(e){return!!e;})),_step177;try{for(_iterator177.s();!(_step177=_iterator177.n()).done;){var _context449;var _a262=_step177.value;_a262=_mapInstanceProperty(_context449=_a262.split(\"-\",2)).call(_context449,function(e){var r=e.match(t);return r?_parseInt(r[1],16):0;});1===_a262.length&&_a262.push(_a262[0]);e.push(_a262);}}catch(err){_iterator177.e(err);}finally{_iterator177.f();}return(0,s.shadow)(this,\"unicodeRange\",e);}}]);return EquateRange;}(n.XFAObject);var Exclude=/*#__PURE__*/function(_n$ContentObject4,_n$$finalize3){_inherits(Exclude,_n$ContentObject4);function Exclude(e){_classCallCheck(this,Exclude);return _callSuper(this,Exclude,[o,\"exclude\"]);}_createClass(Exclude,[{key:_n$$finalize3,value:function value(){var _context450,_context451;this[n.$content]=_filterInstanceProperty(_context450=_trimInstanceProperty(_context451=this[n.$content]).call(_context451).split(/\\s+/)).call(_context450,function(e){var _context452;return e&&_includesInstanceProperty(_context452=[\"calculate\",\"close\",\"enter\",\"exit\",\"initialize\",\"ready\",\"validate\"]).call(_context452,e);});}}]);return Exclude;}(n.ContentObject,n.$finalize);var ExcludeNS=/*#__PURE__*/function(_n$StringObject5){_inherits(ExcludeNS,_n$StringObject5);function ExcludeNS(e){_classCallCheck(this,ExcludeNS);return _callSuper(this,ExcludeNS,[o,\"excludeNS\"]);}return _createClass(ExcludeNS);}(n.StringObject);var FlipLabel=/*#__PURE__*/function(_n$OptionObject10){_inherits(FlipLabel,_n$OptionObject10);function FlipLabel(e){_classCallCheck(this,FlipLabel);return _callSuper(this,FlipLabel,[o,\"flipLabel\",[\"usePrinterSetting\",\"on\",\"off\"]]);}return _createClass(FlipLabel);}(n.OptionObject);var FontInfo=/*#__PURE__*/function(_n$XFAObject19){_inherits(FontInfo,_n$XFAObject19);function FontInfo(e){var _this238;_classCallCheck(this,FontInfo);_this238=_callSuper(this,FontInfo,[o,\"fontInfo\",!0]);_this238.embed=null;_this238.map=null;_this238.subsetBelow=null;_this238.alwaysEmbed=new n.XFAObjectArray();_this238.defaultTypeface=new n.XFAObjectArray();_this238.neverEmbed=new n.XFAObjectArray();return _this238;}return _createClass(FontInfo);}(n.XFAObject);var FormFieldFilling=/*#__PURE__*/function(_n$Option11){_inherits(FormFieldFilling,_n$Option11);function FormFieldFilling(e){_classCallCheck(this,FormFieldFilling);return _callSuper(this,FormFieldFilling,[o,\"formFieldFilling\"]);}return _createClass(FormFieldFilling);}(n.Option01);var GroupParent=/*#__PURE__*/function(_n$StringObject6){_inherits(GroupParent,_n$StringObject6);function GroupParent(e){_classCallCheck(this,GroupParent);return _callSuper(this,GroupParent,[o,\"groupParent\"]);}return _createClass(GroupParent);}(n.StringObject);var IfEmpty=/*#__PURE__*/function(_n$OptionObject11){_inherits(IfEmpty,_n$OptionObject11);function IfEmpty(e){_classCallCheck(this,IfEmpty);return _callSuper(this,IfEmpty,[o,\"ifEmpty\",[\"dataValue\",\"dataGroup\",\"ignore\",\"remove\"]]);}return _createClass(IfEmpty);}(n.OptionObject);var IncludeXDPContent=/*#__PURE__*/function(_n$StringObject7){_inherits(IncludeXDPContent,_n$StringObject7);function IncludeXDPContent(e){_classCallCheck(this,IncludeXDPContent);return _callSuper(this,IncludeXDPContent,[o,\"includeXDPContent\"]);}return _createClass(IncludeXDPContent);}(n.StringObject);var IncrementalLoad=/*#__PURE__*/function(_n$OptionObject12){_inherits(IncrementalLoad,_n$OptionObject12);function IncrementalLoad(e){_classCallCheck(this,IncrementalLoad);return _callSuper(this,IncrementalLoad,[o,\"incrementalLoad\",[\"none\",\"forwardOnly\"]]);}return _createClass(IncrementalLoad);}(n.OptionObject);var IncrementalMerge=/*#__PURE__*/function(_n$Option12){_inherits(IncrementalMerge,_n$Option12);function IncrementalMerge(e){_classCallCheck(this,IncrementalMerge);return _callSuper(this,IncrementalMerge,[o,\"incrementalMerge\"]);}return _createClass(IncrementalMerge);}(n.Option01);var Interactive=/*#__PURE__*/function(_n$Option13){_inherits(Interactive,_n$Option13);function Interactive(e){_classCallCheck(this,Interactive);return _callSuper(this,Interactive,[o,\"interactive\"]);}return _createClass(Interactive);}(n.Option01);var Jog=/*#__PURE__*/function(_n$OptionObject13){_inherits(Jog,_n$OptionObject13);function Jog(e){_classCallCheck(this,Jog);return _callSuper(this,Jog,[o,\"jog\",[\"usePrinterSetting\",\"none\",\"pageSet\"]]);}return _createClass(Jog);}(n.OptionObject);var LabelPrinter=/*#__PURE__*/function(_n$XFAObject20){_inherits(LabelPrinter,_n$XFAObject20);function LabelPrinter(e){var _this239;_classCallCheck(this,LabelPrinter);_this239=_callSuper(this,LabelPrinter,[o,\"labelPrinter\",!0]);_this239.name=(0,i.getStringOption)(e.name,[\"zpl\",\"dpl\",\"ipl\",\"tcpl\"]);_this239.batchOutput=null;_this239.flipLabel=null;_this239.fontInfo=null;_this239.xdc=null;return _this239;}return _createClass(LabelPrinter);}(n.XFAObject);var Layout=/*#__PURE__*/function(_n$OptionObject14){_inherits(Layout,_n$OptionObject14);function Layout(e){_classCallCheck(this,Layout);return _callSuper(this,Layout,[o,\"layout\",[\"paginate\",\"panel\"]]);}return _createClass(Layout);}(n.OptionObject);var Level=/*#__PURE__*/function(_n$IntegerObject4){_inherits(Level,_n$IntegerObject4);function Level(e){_classCallCheck(this,Level);return _callSuper(this,Level,[o,\"level\",0,function(e){return e>0;}]);}return _createClass(Level);}(n.IntegerObject);var Linearized=/*#__PURE__*/function(_n$Option14){_inherits(Linearized,_n$Option14);function Linearized(e){_classCallCheck(this,Linearized);return _callSuper(this,Linearized,[o,\"linearized\"]);}return _createClass(Linearized);}(n.Option01);var Locale=/*#__PURE__*/function(_n$StringObject8){_inherits(Locale,_n$StringObject8);function Locale(e){_classCallCheck(this,Locale);return _callSuper(this,Locale,[o,\"locale\"]);}return _createClass(Locale);}(n.StringObject);var LocaleSet=/*#__PURE__*/function(_n$StringObject9){_inherits(LocaleSet,_n$StringObject9);function LocaleSet(e){_classCallCheck(this,LocaleSet);return _callSuper(this,LocaleSet,[o,\"localeSet\"]);}return _createClass(LocaleSet);}(n.StringObject);var Log=/*#__PURE__*/function(_n$XFAObject21){_inherits(Log,_n$XFAObject21);function Log(e){var _this240;_classCallCheck(this,Log);_this240=_callSuper(this,Log,[o,\"log\",!0]);_this240.mode=null;_this240.threshold=null;_this240.to=null;_this240.uri=null;return _this240;}return _createClass(Log);}(n.XFAObject);var MapElement=/*#__PURE__*/function(_n$XFAObject22){_inherits(MapElement,_n$XFAObject22);function MapElement(e){var _this241;_classCallCheck(this,MapElement);_this241=_callSuper(this,MapElement,[o,\"map\",!0]);_this241.equate=new n.XFAObjectArray();_this241.equateRange=new n.XFAObjectArray();return _this241;}return _createClass(MapElement);}(n.XFAObject);var MediumInfo=/*#__PURE__*/function(_n$XFAObject23){_inherits(MediumInfo,_n$XFAObject23);function MediumInfo(e){var _this242;_classCallCheck(this,MediumInfo);_this242=_callSuper(this,MediumInfo,[o,\"mediumInfo\",!0]);_this242.map=null;return _this242;}return _createClass(MediumInfo);}(n.XFAObject);var Message=/*#__PURE__*/function(_n$XFAObject24){_inherits(Message,_n$XFAObject24);function Message(e){var _this243;_classCallCheck(this,Message);_this243=_callSuper(this,Message,[o,\"message\",!0]);_this243.msgId=null;_this243.severity=null;return _this243;}return _createClass(Message);}(n.XFAObject);var Messaging=/*#__PURE__*/function(_n$XFAObject25){_inherits(Messaging,_n$XFAObject25);function Messaging(e){var _this244;_classCallCheck(this,Messaging);_this244=_callSuper(this,Messaging,[o,\"messaging\",!0]);_this244.message=new n.XFAObjectArray();return _this244;}return _createClass(Messaging);}(n.XFAObject);var Mode=/*#__PURE__*/function(_n$OptionObject15){_inherits(Mode,_n$OptionObject15);function Mode(e){_classCallCheck(this,Mode);return _callSuper(this,Mode,[o,\"mode\",[\"append\",\"overwrite\"]]);}return _createClass(Mode);}(n.OptionObject);var ModifyAnnots=/*#__PURE__*/function(_n$Option15){_inherits(ModifyAnnots,_n$Option15);function ModifyAnnots(e){_classCallCheck(this,ModifyAnnots);return _callSuper(this,ModifyAnnots,[o,\"modifyAnnots\"]);}return _createClass(ModifyAnnots);}(n.Option01);var MsgId=/*#__PURE__*/function(_n$IntegerObject5){_inherits(MsgId,_n$IntegerObject5);function MsgId(e){_classCallCheck(this,MsgId);return _callSuper(this,MsgId,[o,\"msgId\",1,function(e){return e>=1;}]);}return _createClass(MsgId);}(n.IntegerObject);var NameAttr=/*#__PURE__*/function(_n$StringObject10){_inherits(NameAttr,_n$StringObject10);function NameAttr(e){_classCallCheck(this,NameAttr);return _callSuper(this,NameAttr,[o,\"nameAttr\"]);}return _createClass(NameAttr);}(n.StringObject);var NeverEmbed=/*#__PURE__*/function(_n$ContentObject5){_inherits(NeverEmbed,_n$ContentObject5);function NeverEmbed(e){_classCallCheck(this,NeverEmbed);return _callSuper(this,NeverEmbed,[o,\"neverEmbed\"]);}return _createClass(NeverEmbed);}(n.ContentObject);var NumberOfCopies=/*#__PURE__*/function(_n$IntegerObject6){_inherits(NumberOfCopies,_n$IntegerObject6);function NumberOfCopies(e){_classCallCheck(this,NumberOfCopies);return _callSuper(this,NumberOfCopies,[o,\"numberOfCopies\",null,function(e){return e>=2&&e<=5;}]);}return _createClass(NumberOfCopies);}(n.IntegerObject);var OpenAction=/*#__PURE__*/function(_n$XFAObject26){_inherits(OpenAction,_n$XFAObject26);function OpenAction(e){var _this245;_classCallCheck(this,OpenAction);_this245=_callSuper(this,OpenAction,[o,\"openAction\",!0]);_this245.destination=null;return _this245;}return _createClass(OpenAction);}(n.XFAObject);var Output=/*#__PURE__*/function(_n$XFAObject27){_inherits(Output,_n$XFAObject27);function Output(e){var _this246;_classCallCheck(this,Output);_this246=_callSuper(this,Output,[o,\"output\",!0]);_this246.to=null;_this246.type=null;_this246.uri=null;return _this246;}return _createClass(Output);}(n.XFAObject);var OutputBin=/*#__PURE__*/function(_n$StringObject11){_inherits(OutputBin,_n$StringObject11);function OutputBin(e){_classCallCheck(this,OutputBin);return _callSuper(this,OutputBin,[o,\"outputBin\"]);}return _createClass(OutputBin);}(n.StringObject);var OutputXSL=/*#__PURE__*/function(_n$XFAObject28){_inherits(OutputXSL,_n$XFAObject28);function OutputXSL(e){var _this247;_classCallCheck(this,OutputXSL);_this247=_callSuper(this,OutputXSL,[o,\"outputXSL\",!0]);_this247.uri=null;return _this247;}return _createClass(OutputXSL);}(n.XFAObject);var Overprint=/*#__PURE__*/function(_n$OptionObject16){_inherits(Overprint,_n$OptionObject16);function Overprint(e){_classCallCheck(this,Overprint);return _callSuper(this,Overprint,[o,\"overprint\",[\"none\",\"both\",\"draw\",\"field\"]]);}return _createClass(Overprint);}(n.OptionObject);var Packets=/*#__PURE__*/function(_n$StringObject12,_n$$finalize4){_inherits(Packets,_n$StringObject12);function Packets(e){_classCallCheck(this,Packets);return _callSuper(this,Packets,[o,\"packets\"]);}_createClass(Packets,[{key:_n$$finalize4,value:function value(){var _context453,_context454;\"*\"!==this[n.$content]&&(this[n.$content]=_filterInstanceProperty(_context453=_trimInstanceProperty(_context454=this[n.$content]).call(_context454).split(/\\s+/)).call(_context453,function(e){var _context455;return _includesInstanceProperty(_context455=[\"config\",\"datasets\",\"template\",\"xfdf\",\"xslt\"]).call(_context455,e);}));}}]);return Packets;}(n.StringObject,n.$finalize);var PageOffset=/*#__PURE__*/function(_n$XFAObject29){_inherits(PageOffset,_n$XFAObject29);function PageOffset(e){var _this248;_classCallCheck(this,PageOffset);_this248=_callSuper(this,PageOffset,[o,\"pageOffset\"]);_this248.x=(0,i.getInteger)({data:e.x,defaultValue:\"useXDCSetting\",validate:function validate(e){return!0;}});_this248.y=(0,i.getInteger)({data:e.y,defaultValue:\"useXDCSetting\",validate:function validate(e){return!0;}});return _this248;}return _createClass(PageOffset);}(n.XFAObject);var PageRange=/*#__PURE__*/function(_n$StringObject13,_n$$finalize5){_inherits(PageRange,_n$StringObject13);function PageRange(e){_classCallCheck(this,PageRange);return _callSuper(this,PageRange,[o,\"pageRange\"]);}_createClass(PageRange,[{key:_n$$finalize5,value:function value(){var _context456,_context457;var e=_mapInstanceProperty(_context456=_trimInstanceProperty(_context457=this[n.$content]).call(_context457).split(/\\s+/)).call(_context456,function(e){return _parseInt(e,10);}),t=[];for(var _r368=0,_a263=e.length;_r368<_a263;_r368+=2)t.push(_sliceInstanceProperty(e).call(e,_r368,_r368+2));this[n.$content]=t;}}]);return PageRange;}(n.StringObject,n.$finalize);var Pagination=/*#__PURE__*/function(_n$OptionObject17){_inherits(Pagination,_n$OptionObject17);function Pagination(e){_classCallCheck(this,Pagination);return _callSuper(this,Pagination,[o,\"pagination\",[\"simplex\",\"duplexShortEdge\",\"duplexLongEdge\"]]);}return _createClass(Pagination);}(n.OptionObject);var PaginationOverride=/*#__PURE__*/function(_n$OptionObject18){_inherits(PaginationOverride,_n$OptionObject18);function PaginationOverride(e){_classCallCheck(this,PaginationOverride);return _callSuper(this,PaginationOverride,[o,\"paginationOverride\",[\"none\",\"forceDuplex\",\"forceDuplexLongEdge\",\"forceDuplexShortEdge\",\"forceSimplex\"]]);}return _createClass(PaginationOverride);}(n.OptionObject);var Part=/*#__PURE__*/function(_n$IntegerObject7){_inherits(Part,_n$IntegerObject7);function Part(e){_classCallCheck(this,Part);return _callSuper(this,Part,[o,\"part\",1,function(e){return!1;}]);}return _createClass(Part);}(n.IntegerObject);var Pcl=/*#__PURE__*/function(_n$XFAObject30){_inherits(Pcl,_n$XFAObject30);function Pcl(e){var _this249;_classCallCheck(this,Pcl);_this249=_callSuper(this,Pcl,[o,\"pcl\",!0]);_this249.name=e.name||\"\";_this249.batchOutput=null;_this249.fontInfo=null;_this249.jog=null;_this249.mediumInfo=null;_this249.outputBin=null;_this249.pageOffset=null;_this249.staple=null;_this249.xdc=null;return _this249;}return _createClass(Pcl);}(n.XFAObject);var Pdf=/*#__PURE__*/function(_n$XFAObject31){_inherits(Pdf,_n$XFAObject31);function Pdf(e){var _this250;_classCallCheck(this,Pdf);_this250=_callSuper(this,Pdf,[o,\"pdf\",!0]);_this250.name=e.name||\"\";_this250.adobeExtensionLevel=null;_this250.batchOutput=null;_this250.compression=null;_this250.creator=null;_this250.encryption=null;_this250.fontInfo=null;_this250.interactive=null;_this250.linearized=null;_this250.openAction=null;_this250.pdfa=null;_this250.producer=null;_this250.renderPolicy=null;_this250.scriptModel=null;_this250.silentPrint=null;_this250.submitFormat=null;_this250.tagged=null;_this250.version=null;_this250.viewerPreferences=null;_this250.xdc=null;return _this250;}return _createClass(Pdf);}(n.XFAObject);var Pdfa=/*#__PURE__*/function(_n$XFAObject32){_inherits(Pdfa,_n$XFAObject32);function Pdfa(e){var _this251;_classCallCheck(this,Pdfa);_this251=_callSuper(this,Pdfa,[o,\"pdfa\",!0]);_this251.amd=null;_this251.conformance=null;_this251.includeXDPContent=null;_this251.part=null;return _this251;}return _createClass(Pdfa);}(n.XFAObject);var Permissions=/*#__PURE__*/function(_n$XFAObject33){_inherits(Permissions,_n$XFAObject33);function Permissions(e){var _this252;_classCallCheck(this,Permissions);_this252=_callSuper(this,Permissions,[o,\"permissions\",!0]);_this252.accessibleContent=null;_this252.change=null;_this252.contentCopy=null;_this252.documentAssembly=null;_this252.formFieldFilling=null;_this252.modifyAnnots=null;_this252.plaintextMetadata=null;_this252.print=null;_this252.printHighQuality=null;return _this252;}return _createClass(Permissions);}(n.XFAObject);var PickTrayByPDFSize=/*#__PURE__*/function(_n$Option16){_inherits(PickTrayByPDFSize,_n$Option16);function PickTrayByPDFSize(e){_classCallCheck(this,PickTrayByPDFSize);return _callSuper(this,PickTrayByPDFSize,[o,\"pickTrayByPDFSize\"]);}return _createClass(PickTrayByPDFSize);}(n.Option01);var Picture=/*#__PURE__*/function(_n$StringObject14){_inherits(Picture,_n$StringObject14);function Picture(e){_classCallCheck(this,Picture);return _callSuper(this,Picture,[o,\"picture\"]);}return _createClass(Picture);}(n.StringObject);var PlaintextMetadata=/*#__PURE__*/function(_n$Option17){_inherits(PlaintextMetadata,_n$Option17);function PlaintextMetadata(e){_classCallCheck(this,PlaintextMetadata);return _callSuper(this,PlaintextMetadata,[o,\"plaintextMetadata\"]);}return _createClass(PlaintextMetadata);}(n.Option01);var Presence=/*#__PURE__*/function(_n$OptionObject19){_inherits(Presence,_n$OptionObject19);function Presence(e){_classCallCheck(this,Presence);return _callSuper(this,Presence,[o,\"presence\",[\"preserve\",\"dissolve\",\"dissolveStructure\",\"ignore\",\"remove\"]]);}return _createClass(Presence);}(n.OptionObject);var Present=/*#__PURE__*/function(_n$XFAObject34){_inherits(Present,_n$XFAObject34);function Present(e){var _this253;_classCallCheck(this,Present);_this253=_callSuper(this,Present,[o,\"present\",!0]);_this253.behaviorOverride=null;_this253.cache=null;_this253.common=null;_this253.copies=null;_this253.destination=null;_this253.incrementalMerge=null;_this253.layout=null;_this253.output=null;_this253.overprint=null;_this253.pagination=null;_this253.paginationOverride=null;_this253.script=null;_this253.validate=null;_this253.xdp=null;_this253.driver=new n.XFAObjectArray();_this253.labelPrinter=new n.XFAObjectArray();_this253.pcl=new n.XFAObjectArray();_this253.pdf=new n.XFAObjectArray();_this253.ps=new n.XFAObjectArray();_this253.submitUrl=new n.XFAObjectArray();_this253.webClient=new n.XFAObjectArray();_this253.zpl=new n.XFAObjectArray();return _this253;}return _createClass(Present);}(n.XFAObject);var Print=/*#__PURE__*/function(_n$Option18){_inherits(Print,_n$Option18);function Print(e){_classCallCheck(this,Print);return _callSuper(this,Print,[o,\"print\"]);}return _createClass(Print);}(n.Option01);var PrintHighQuality=/*#__PURE__*/function(_n$Option19){_inherits(PrintHighQuality,_n$Option19);function PrintHighQuality(e){_classCallCheck(this,PrintHighQuality);return _callSuper(this,PrintHighQuality,[o,\"printHighQuality\"]);}return _createClass(PrintHighQuality);}(n.Option01);var PrintScaling=/*#__PURE__*/function(_n$OptionObject20){_inherits(PrintScaling,_n$OptionObject20);function PrintScaling(e){_classCallCheck(this,PrintScaling);return _callSuper(this,PrintScaling,[o,\"printScaling\",[\"appdefault\",\"noScaling\"]]);}return _createClass(PrintScaling);}(n.OptionObject);var PrinterName=/*#__PURE__*/function(_n$StringObject15){_inherits(PrinterName,_n$StringObject15);function PrinterName(e){_classCallCheck(this,PrinterName);return _callSuper(this,PrinterName,[o,\"printerName\"]);}return _createClass(PrinterName);}(n.StringObject);var Producer=/*#__PURE__*/function(_n$StringObject16){_inherits(Producer,_n$StringObject16);function Producer(e){_classCallCheck(this,Producer);return _callSuper(this,Producer,[o,\"producer\"]);}return _createClass(Producer);}(n.StringObject);var Ps=/*#__PURE__*/function(_n$XFAObject35){_inherits(Ps,_n$XFAObject35);function Ps(e){var _this254;_classCallCheck(this,Ps);_this254=_callSuper(this,Ps,[o,\"ps\",!0]);_this254.name=e.name||\"\";_this254.batchOutput=null;_this254.fontInfo=null;_this254.jog=null;_this254.mediumInfo=null;_this254.outputBin=null;_this254.staple=null;_this254.xdc=null;return _this254;}return _createClass(Ps);}(n.XFAObject);var Range=/*#__PURE__*/function(_n$ContentObject6,_n$$finalize6){_inherits(Range,_n$ContentObject6);function Range(e){_classCallCheck(this,Range);return _callSuper(this,Range,[o,\"range\"]);}_createClass(Range,[{key:_n$$finalize6,value:function value(){var _context458,_context459,_context460,_context461;this[n.$content]=_mapInstanceProperty(_context458=_filterInstanceProperty(_context459=_mapInstanceProperty(_context460=_trimInstanceProperty(_context461=this[n.$content]).call(_context461).split(/\\s*,\\s*/,2)).call(_context460,function(e){var _context462;return _mapInstanceProperty(_context462=e.split(\"-\")).call(_context462,function(e){return _parseInt(_trimInstanceProperty(e).call(e),10);});})).call(_context459,function(e){return e.every(function(e){return!isNaN(e);});})).call(_context458,function(e){1===e.length&&e.push(e[0]);return e;});}}]);return Range;}(n.ContentObject,n.$finalize);var Record=/*#__PURE__*/function(_n$ContentObject7,_n$$finalize7){_inherits(Record,_n$ContentObject7);function Record(e){_classCallCheck(this,Record);return _callSuper(this,Record,[o,\"record\"]);}_createClass(Record,[{key:_n$$finalize7,value:function value(){var _context463;this[n.$content]=_trimInstanceProperty(_context463=this[n.$content]).call(_context463);var e=_parseInt(this[n.$content],10);!isNaN(e)&&e>=0&&(this[n.$content]=e);}}]);return Record;}(n.ContentObject,n.$finalize);var Relevant=/*#__PURE__*/function(_n$ContentObject8,_n$$finalize8){_inherits(Relevant,_n$ContentObject8);function Relevant(e){_classCallCheck(this,Relevant);return _callSuper(this,Relevant,[o,\"relevant\"]);}_createClass(Relevant,[{key:_n$$finalize8,value:function value(){var _context464;this[n.$content]=_trimInstanceProperty(_context464=this[n.$content]).call(_context464).split(/\\s+/);}}]);return Relevant;}(n.ContentObject,n.$finalize);var Rename=/*#__PURE__*/function(_n$ContentObject9,_n$$finalize9){_inherits(Rename,_n$ContentObject9);function Rename(e){_classCallCheck(this,Rename);return _callSuper(this,Rename,[o,\"rename\"]);}_createClass(Rename,[{key:_n$$finalize9,value:function value(){var _context465,_context466;this[n.$content]=_trimInstanceProperty(_context465=this[n.$content]).call(_context465);(_startsWithInstanceProperty(_context466=this[n.$content].toLowerCase()).call(_context466,\"xml\")||this[n.$content].match(new RegExp(\"[\\\\p{L}_][\\\\p{L}\\\\d._\\\\p{M}-]*\",\"u\")))&&(0,s.warn)(\"XFA - Rename: invalid XFA name\");}}]);return Rename;}(n.ContentObject,n.$finalize);var RenderPolicy=/*#__PURE__*/function(_n$OptionObject21){_inherits(RenderPolicy,_n$OptionObject21);function RenderPolicy(e){_classCallCheck(this,RenderPolicy);return _callSuper(this,RenderPolicy,[o,\"renderPolicy\",[\"server\",\"client\"]]);}return _createClass(RenderPolicy);}(n.OptionObject);var RunScripts=/*#__PURE__*/function(_n$OptionObject22){_inherits(RunScripts,_n$OptionObject22);function RunScripts(e){_classCallCheck(this,RunScripts);return _callSuper(this,RunScripts,[o,\"runScripts\",[\"both\",\"client\",\"none\",\"server\"]]);}return _createClass(RunScripts);}(n.OptionObject);var Script=/*#__PURE__*/function(_n$XFAObject36){_inherits(Script,_n$XFAObject36);function Script(e){var _this255;_classCallCheck(this,Script);_this255=_callSuper(this,Script,[o,\"script\",!0]);_this255.currentPage=null;_this255.exclude=null;_this255.runScripts=null;return _this255;}return _createClass(Script);}(n.XFAObject);var ScriptModel=/*#__PURE__*/function(_n$OptionObject23){_inherits(ScriptModel,_n$OptionObject23);function ScriptModel(e){_classCallCheck(this,ScriptModel);return _callSuper(this,ScriptModel,[o,\"scriptModel\",[\"XFA\",\"none\"]]);}return _createClass(ScriptModel);}(n.OptionObject);var Severity=/*#__PURE__*/function(_n$OptionObject24){_inherits(Severity,_n$OptionObject24);function Severity(e){_classCallCheck(this,Severity);return _callSuper(this,Severity,[o,\"severity\",[\"ignore\",\"error\",\"information\",\"trace\",\"warning\"]]);}return _createClass(Severity);}(n.OptionObject);var SilentPrint=/*#__PURE__*/function(_n$XFAObject37){_inherits(SilentPrint,_n$XFAObject37);function SilentPrint(e){var _this256;_classCallCheck(this,SilentPrint);_this256=_callSuper(this,SilentPrint,[o,\"silentPrint\",!0]);_this256.addSilentPrint=null;_this256.printerName=null;return _this256;}return _createClass(SilentPrint);}(n.XFAObject);var Staple=/*#__PURE__*/function(_n$XFAObject38){_inherits(Staple,_n$XFAObject38);function Staple(e){var _this257;_classCallCheck(this,Staple);_this257=_callSuper(this,Staple,[o,\"staple\"]);_this257.mode=(0,i.getStringOption)(e.mode,[\"usePrinterSetting\",\"on\",\"off\"]);return _this257;}return _createClass(Staple);}(n.XFAObject);var StartNode=/*#__PURE__*/function(_n$StringObject17){_inherits(StartNode,_n$StringObject17);function StartNode(e){_classCallCheck(this,StartNode);return _callSuper(this,StartNode,[o,\"startNode\"]);}return _createClass(StartNode);}(n.StringObject);var StartPage=/*#__PURE__*/function(_n$IntegerObject8){_inherits(StartPage,_n$IntegerObject8);function StartPage(e){_classCallCheck(this,StartPage);return _callSuper(this,StartPage,[o,\"startPage\",0,function(e){return!0;}]);}return _createClass(StartPage);}(n.IntegerObject);var SubmitFormat=/*#__PURE__*/function(_n$OptionObject25){_inherits(SubmitFormat,_n$OptionObject25);function SubmitFormat(e){_classCallCheck(this,SubmitFormat);return _callSuper(this,SubmitFormat,[o,\"submitFormat\",[\"html\",\"delegate\",\"fdf\",\"xml\",\"pdf\"]]);}return _createClass(SubmitFormat);}(n.OptionObject);var SubmitUrl=/*#__PURE__*/function(_n$StringObject18){_inherits(SubmitUrl,_n$StringObject18);function SubmitUrl(e){_classCallCheck(this,SubmitUrl);return _callSuper(this,SubmitUrl,[o,\"submitUrl\"]);}return _createClass(SubmitUrl);}(n.StringObject);var SubsetBelow=/*#__PURE__*/function(_n$IntegerObject9){_inherits(SubsetBelow,_n$IntegerObject9);function SubsetBelow(e){_classCallCheck(this,SubsetBelow);return _callSuper(this,SubsetBelow,[o,\"subsetBelow\",100,function(e){return e>=0&&e<=100;}]);}return _createClass(SubsetBelow);}(n.IntegerObject);var SuppressBanner=/*#__PURE__*/function(_n$Option20){_inherits(SuppressBanner,_n$Option20);function SuppressBanner(e){_classCallCheck(this,SuppressBanner);return _callSuper(this,SuppressBanner,[o,\"suppressBanner\"]);}return _createClass(SuppressBanner);}(n.Option01);var Tagged=/*#__PURE__*/function(_n$Option21){_inherits(Tagged,_n$Option21);function Tagged(e){_classCallCheck(this,Tagged);return _callSuper(this,Tagged,[o,\"tagged\"]);}return _createClass(Tagged);}(n.Option01);var Template=/*#__PURE__*/function(_n$XFAObject39){_inherits(Template,_n$XFAObject39);function Template(e){var _this258;_classCallCheck(this,Template);_this258=_callSuper(this,Template,[o,\"template\",!0]);_this258.base=null;_this258.relevant=null;_this258.startPage=null;_this258.uri=null;_this258.xsl=null;return _this258;}return _createClass(Template);}(n.XFAObject);var Threshold=/*#__PURE__*/function(_n$OptionObject26){_inherits(Threshold,_n$OptionObject26);function Threshold(e){_classCallCheck(this,Threshold);return _callSuper(this,Threshold,[o,\"threshold\",[\"trace\",\"error\",\"information\",\"warning\"]]);}return _createClass(Threshold);}(n.OptionObject);var To=/*#__PURE__*/function(_n$OptionObject27){_inherits(To,_n$OptionObject27);function To(e){_classCallCheck(this,To);return _callSuper(this,To,[o,\"to\",[\"null\",\"memory\",\"stderr\",\"stdout\",\"system\",\"uri\"]]);}return _createClass(To);}(n.OptionObject);var TemplateCache=/*#__PURE__*/function(_n$XFAObject40){_inherits(TemplateCache,_n$XFAObject40);function TemplateCache(e){var _this259;_classCallCheck(this,TemplateCache);_this259=_callSuper(this,TemplateCache,[o,\"templateCache\"]);_this259.maxEntries=(0,i.getInteger)({data:e.maxEntries,defaultValue:5,validate:function validate(e){return e>=0;}});return _this259;}return _createClass(TemplateCache);}(n.XFAObject);var Trace=/*#__PURE__*/function(_n$XFAObject41){_inherits(Trace,_n$XFAObject41);function Trace(e){var _this260;_classCallCheck(this,Trace);_this260=_callSuper(this,Trace,[o,\"trace\",!0]);_this260.area=new n.XFAObjectArray();return _this260;}return _createClass(Trace);}(n.XFAObject);var Transform=/*#__PURE__*/function(_n$XFAObject42){_inherits(Transform,_n$XFAObject42);function Transform(e){var _this261;_classCallCheck(this,Transform);_this261=_callSuper(this,Transform,[o,\"transform\",!0]);_this261.groupParent=null;_this261.ifEmpty=null;_this261.nameAttr=null;_this261.picture=null;_this261.presence=null;_this261.rename=null;_this261.whitespace=null;return _this261;}return _createClass(Transform);}(n.XFAObject);var Type=/*#__PURE__*/function(_n$OptionObject28){_inherits(Type,_n$OptionObject28);function Type(e){_classCallCheck(this,Type);return _callSuper(this,Type,[o,\"type\",[\"none\",\"ascii85\",\"asciiHex\",\"ccittfax\",\"flate\",\"lzw\",\"runLength\",\"native\",\"xdp\",\"mergedXDP\"]]);}return _createClass(Type);}(n.OptionObject);var Uri=/*#__PURE__*/function(_n$StringObject19){_inherits(Uri,_n$StringObject19);function Uri(e){_classCallCheck(this,Uri);return _callSuper(this,Uri,[o,\"uri\"]);}return _createClass(Uri);}(n.StringObject);var Validate=/*#__PURE__*/function(_n$OptionObject29){_inherits(Validate,_n$OptionObject29);function Validate(e){_classCallCheck(this,Validate);return _callSuper(this,Validate,[o,\"validate\",[\"preSubmit\",\"prePrint\",\"preExecute\",\"preSave\"]]);}return _createClass(Validate);}(n.OptionObject);var ValidateApprovalSignatures=/*#__PURE__*/function(_n$ContentObject10,_n$$finalize10){_inherits(ValidateApprovalSignatures,_n$ContentObject10);function ValidateApprovalSignatures(e){_classCallCheck(this,ValidateApprovalSignatures);return _callSuper(this,ValidateApprovalSignatures,[o,\"validateApprovalSignatures\"]);}_createClass(ValidateApprovalSignatures,[{key:_n$$finalize10,value:function value(){var _context467,_context468;this[n.$content]=_filterInstanceProperty(_context467=_trimInstanceProperty(_context468=this[n.$content]).call(_context468).split(/\\s+/)).call(_context467,function(e){var _context469;return _includesInstanceProperty(_context469=[\"docReady\",\"postSign\"]).call(_context469,e);});}}]);return ValidateApprovalSignatures;}(n.ContentObject,n.$finalize);var ValidationMessaging=/*#__PURE__*/function(_n$OptionObject30){_inherits(ValidationMessaging,_n$OptionObject30);function ValidationMessaging(e){_classCallCheck(this,ValidationMessaging);return _callSuper(this,ValidationMessaging,[o,\"validationMessaging\",[\"allMessagesIndividually\",\"allMessagesTogether\",\"firstMessageOnly\",\"noMessages\"]]);}return _createClass(ValidationMessaging);}(n.OptionObject);var Version=/*#__PURE__*/function(_n$OptionObject31){_inherits(Version,_n$OptionObject31);function Version(e){_classCallCheck(this,Version);return _callSuper(this,Version,[o,\"version\",[\"1.7\",\"1.6\",\"1.5\",\"1.4\",\"1.3\",\"1.2\"]]);}return _createClass(Version);}(n.OptionObject);var VersionControl=/*#__PURE__*/function(_n$XFAObject43){_inherits(VersionControl,_n$XFAObject43);function VersionControl(e){var _this262;_classCallCheck(this,VersionControl);_this262=_callSuper(this,VersionControl,[o,\"VersionControl\"]);_this262.outputBelow=(0,i.getStringOption)(e.outputBelow,[\"warn\",\"error\",\"update\"]);_this262.sourceAbove=(0,i.getStringOption)(e.sourceAbove,[\"warn\",\"error\"]);_this262.sourceBelow=(0,i.getStringOption)(e.sourceBelow,[\"update\",\"maintain\"]);return _this262;}return _createClass(VersionControl);}(n.XFAObject);var ViewerPreferences=/*#__PURE__*/function(_n$XFAObject44){_inherits(ViewerPreferences,_n$XFAObject44);function ViewerPreferences(e){var _this263;_classCallCheck(this,ViewerPreferences);_this263=_callSuper(this,ViewerPreferences,[o,\"viewerPreferences\",!0]);_this263.ADBE_JSConsole=null;_this263.ADBE_JSDebugger=null;_this263.addViewerPreferences=null;_this263.duplexOption=null;_this263.enforce=null;_this263.numberOfCopies=null;_this263.pageRange=null;_this263.pickTrayByPDFSize=null;_this263.printScaling=null;return _this263;}return _createClass(ViewerPreferences);}(n.XFAObject);var WebClient=/*#__PURE__*/function(_n$XFAObject45){_inherits(WebClient,_n$XFAObject45);function WebClient(e){var _context470;var _this264;_classCallCheck(this,WebClient);_this264=_callSuper(this,WebClient,[o,\"webClient\",!0]);_this264.name=e.name?_trimInstanceProperty(_context470=e.name).call(_context470):\"\";_this264.fontInfo=null;_this264.xdc=null;return _this264;}return _createClass(WebClient);}(n.XFAObject);var Whitespace=/*#__PURE__*/function(_n$OptionObject32){_inherits(Whitespace,_n$OptionObject32);function Whitespace(e){_classCallCheck(this,Whitespace);return _callSuper(this,Whitespace,[o,\"whitespace\",[\"preserve\",\"ltrim\",\"normalize\",\"rtrim\",\"trim\"]]);}return _createClass(Whitespace);}(n.OptionObject);var Window=/*#__PURE__*/function(_n$ContentObject11,_n$$finalize11){_inherits(Window,_n$ContentObject11);function Window(e){_classCallCheck(this,Window);return _callSuper(this,Window,[o,\"window\"]);}_createClass(Window,[{key:_n$$finalize11,value:function value(){var _context471,_context472;var e=_mapInstanceProperty(_context471=_trimInstanceProperty(_context472=this[n.$content]).call(_context472).split(/\\s*,\\s*/,2)).call(_context471,function(e){return _parseInt(e,10);});if(e.some(function(e){return isNaN(e);}))this[n.$content]=[0,0];else{1===e.length&&e.push(e[0]);this[n.$content]=e;}}}]);return Window;}(n.ContentObject,n.$finalize);var Xdc=/*#__PURE__*/function(_n$XFAObject46){_inherits(Xdc,_n$XFAObject46);function Xdc(e){var _this265;_classCallCheck(this,Xdc);_this265=_callSuper(this,Xdc,[o,\"xdc\",!0]);_this265.uri=new n.XFAObjectArray();_this265.xsl=new n.XFAObjectArray();return _this265;}return _createClass(Xdc);}(n.XFAObject);var Xdp=/*#__PURE__*/function(_n$XFAObject47){_inherits(Xdp,_n$XFAObject47);function Xdp(e){var _this266;_classCallCheck(this,Xdp);_this266=_callSuper(this,Xdp,[o,\"xdp\",!0]);_this266.packets=null;return _this266;}return _createClass(Xdp);}(n.XFAObject);var Xsl=/*#__PURE__*/function(_n$XFAObject48){_inherits(Xsl,_n$XFAObject48);function Xsl(e){var _this267;_classCallCheck(this,Xsl);_this267=_callSuper(this,Xsl,[o,\"xsl\",!0]);_this267.debug=null;_this267.uri=null;return _this267;}return _createClass(Xsl);}(n.XFAObject);var Zpl=/*#__PURE__*/function(_n$XFAObject49){_inherits(Zpl,_n$XFAObject49);function Zpl(e){var _context473;var _this268;_classCallCheck(this,Zpl);_this268=_callSuper(this,Zpl,[o,\"zpl\",!0]);_this268.name=e.name?_trimInstanceProperty(_context473=e.name).call(_context473):\"\";_this268.batchOutput=null;_this268.flipLabel=null;_this268.fontInfo=null;_this268.xdc=null;return _this268;}return _createClass(Zpl);}(n.XFAObject);var ConfigNamespace=/*#__PURE__*/function(_a$$buildXFAObject){function ConfigNamespace(){_classCallCheck(this,ConfigNamespace);}_createClass(ConfigNamespace,null,[{key:_a$$buildXFAObject,value:function value(e,t){if(ConfigNamespace.hasOwnProperty(e))return ConfigNamespace[e](t);}},{key:\"acrobat\",value:function acrobat(e){return new Acrobat(e);}},{key:\"acrobat7\",value:function acrobat7(e){return new Acrobat7(e);}},{key:\"ADBE_JSConsole\",value:function ADBE_JSConsole(e){return new _ADBE_JSConsole(e);}},{key:\"ADBE_JSDebugger\",value:function ADBE_JSDebugger(e){return new _ADBE_JSDebugger(e);}},{key:\"addSilentPrint\",value:function addSilentPrint(e){return new AddSilentPrint(e);}},{key:\"addViewerPreferences\",value:function addViewerPreferences(e){return new AddViewerPreferences(e);}},{key:\"adjustData\",value:function adjustData(e){return new AdjustData(e);}},{key:\"adobeExtensionLevel\",value:function adobeExtensionLevel(e){return new AdobeExtensionLevel(e);}},{key:\"agent\",value:function agent(e){return new Agent(e);}},{key:\"alwaysEmbed\",value:function alwaysEmbed(e){return new AlwaysEmbed(e);}},{key:\"amd\",value:function amd(e){return new Amd(e);}},{key:\"area\",value:function area(e){return new Area(e);}},{key:\"attributes\",value:function attributes(e){return new Attributes(e);}},{key:\"autoSave\",value:function autoSave(e){return new AutoSave(e);}},{key:\"base\",value:function base(e){return new Base(e);}},{key:\"batchOutput\",value:function batchOutput(e){return new BatchOutput(e);}},{key:\"behaviorOverride\",value:function behaviorOverride(e){return new BehaviorOverride(e);}},{key:\"cache\",value:function cache(e){return new Cache(e);}},{key:\"change\",value:function change(e){return new Change(e);}},{key:\"common\",value:function common(e){return new Common(e);}},{key:\"compress\",value:function compress(e){return new Compress(e);}},{key:\"compressLogicalStructure\",value:function compressLogicalStructure(e){return new CompressLogicalStructure(e);}},{key:\"compressObjectStream\",value:function compressObjectStream(e){return new CompressObjectStream(e);}},{key:\"compression\",value:function compression(e){return new Compression(e);}},{key:\"config\",value:function config(e){return new Config(e);}},{key:\"conformance\",value:function conformance(e){return new Conformance(e);}},{key:\"contentCopy\",value:function contentCopy(e){return new ContentCopy(e);}},{key:\"copies\",value:function copies(e){return new Copies(e);}},{key:\"creator\",value:function creator(e){return new Creator(e);}},{key:\"currentPage\",value:function currentPage(e){return new CurrentPage(e);}},{key:\"data\",value:function data(e){return new Data(e);}},{key:\"debug\",value:function debug(e){return new Debug(e);}},{key:\"defaultTypeface\",value:function defaultTypeface(e){return new DefaultTypeface(e);}},{key:\"destination\",value:function destination(e){return new Destination(e);}},{key:\"documentAssembly\",value:function documentAssembly(e){return new DocumentAssembly(e);}},{key:\"driver\",value:function driver(e){return new Driver(e);}},{key:\"duplexOption\",value:function duplexOption(e){return new DuplexOption(e);}},{key:\"dynamicRender\",value:function dynamicRender(e){return new DynamicRender(e);}},{key:\"embed\",value:function embed(e){return new Embed(e);}},{key:\"encrypt\",value:function encrypt(e){return new Encrypt(e);}},{key:\"encryption\",value:function encryption(e){return new Encryption(e);}},{key:\"encryptionLevel\",value:function encryptionLevel(e){return new EncryptionLevel(e);}},{key:\"enforce\",value:function enforce(e){return new Enforce(e);}},{key:\"equate\",value:function equate(e){return new Equate(e);}},{key:\"equateRange\",value:function equateRange(e){return new EquateRange(e);}},{key:\"exclude\",value:function exclude(e){return new Exclude(e);}},{key:\"excludeNS\",value:function excludeNS(e){return new ExcludeNS(e);}},{key:\"flipLabel\",value:function flipLabel(e){return new FlipLabel(e);}},{key:\"fontInfo\",value:function fontInfo(e){return new FontInfo(e);}},{key:\"formFieldFilling\",value:function formFieldFilling(e){return new FormFieldFilling(e);}},{key:\"groupParent\",value:function groupParent(e){return new GroupParent(e);}},{key:\"ifEmpty\",value:function ifEmpty(e){return new IfEmpty(e);}},{key:\"includeXDPContent\",value:function includeXDPContent(e){return new IncludeXDPContent(e);}},{key:\"incrementalLoad\",value:function incrementalLoad(e){return new IncrementalLoad(e);}},{key:\"incrementalMerge\",value:function incrementalMerge(e){return new IncrementalMerge(e);}},{key:\"interactive\",value:function interactive(e){return new Interactive(e);}},{key:\"jog\",value:function jog(e){return new Jog(e);}},{key:\"labelPrinter\",value:function labelPrinter(e){return new LabelPrinter(e);}},{key:\"layout\",value:function layout(e){return new Layout(e);}},{key:\"level\",value:function level(e){return new Level(e);}},{key:\"linearized\",value:function linearized(e){return new Linearized(e);}},{key:\"locale\",value:function locale(e){return new Locale(e);}},{key:\"localeSet\",value:function localeSet(e){return new LocaleSet(e);}},{key:\"log\",value:function log(e){return new Log(e);}},{key:\"map\",value:function map(e){return new MapElement(e);}},{key:\"mediumInfo\",value:function mediumInfo(e){return new MediumInfo(e);}},{key:\"message\",value:function message(e){return new Message(e);}},{key:\"messaging\",value:function messaging(e){return new Messaging(e);}},{key:\"mode\",value:function mode(e){return new Mode(e);}},{key:\"modifyAnnots\",value:function modifyAnnots(e){return new ModifyAnnots(e);}},{key:\"msgId\",value:function msgId(e){return new MsgId(e);}},{key:\"nameAttr\",value:function nameAttr(e){return new NameAttr(e);}},{key:\"neverEmbed\",value:function neverEmbed(e){return new NeverEmbed(e);}},{key:\"numberOfCopies\",value:function numberOfCopies(e){return new NumberOfCopies(e);}},{key:\"openAction\",value:function openAction(e){return new OpenAction(e);}},{key:\"output\",value:function output(e){return new Output(e);}},{key:\"outputBin\",value:function outputBin(e){return new OutputBin(e);}},{key:\"outputXSL\",value:function outputXSL(e){return new OutputXSL(e);}},{key:\"overprint\",value:function overprint(e){return new Overprint(e);}},{key:\"packets\",value:function packets(e){return new Packets(e);}},{key:\"pageOffset\",value:function pageOffset(e){return new PageOffset(e);}},{key:\"pageRange\",value:function pageRange(e){return new PageRange(e);}},{key:\"pagination\",value:function pagination(e){return new Pagination(e);}},{key:\"paginationOverride\",value:function paginationOverride(e){return new PaginationOverride(e);}},{key:\"part\",value:function part(e){return new Part(e);}},{key:\"pcl\",value:function pcl(e){return new Pcl(e);}},{key:\"pdf\",value:function pdf(e){return new Pdf(e);}},{key:\"pdfa\",value:function pdfa(e){return new Pdfa(e);}},{key:\"permissions\",value:function permissions(e){return new Permissions(e);}},{key:\"pickTrayByPDFSize\",value:function pickTrayByPDFSize(e){return new PickTrayByPDFSize(e);}},{key:\"picture\",value:function picture(e){return new Picture(e);}},{key:\"plaintextMetadata\",value:function plaintextMetadata(e){return new PlaintextMetadata(e);}},{key:\"presence\",value:function presence(e){return new Presence(e);}},{key:\"present\",value:function present(e){return new Present(e);}},{key:\"print\",value:function print(e){return new Print(e);}},{key:\"printHighQuality\",value:function printHighQuality(e){return new PrintHighQuality(e);}},{key:\"printScaling\",value:function printScaling(e){return new PrintScaling(e);}},{key:\"printerName\",value:function printerName(e){return new PrinterName(e);}},{key:\"producer\",value:function producer(e){return new Producer(e);}},{key:\"ps\",value:function ps(e){return new Ps(e);}},{key:\"range\",value:function range(e){return new Range(e);}},{key:\"record\",value:function record(e){return new Record(e);}},{key:\"relevant\",value:function relevant(e){return new Relevant(e);}},{key:\"rename\",value:function rename(e){return new Rename(e);}},{key:\"renderPolicy\",value:function renderPolicy(e){return new RenderPolicy(e);}},{key:\"runScripts\",value:function runScripts(e){return new RunScripts(e);}},{key:\"script\",value:function script(e){return new Script(e);}},{key:\"scriptModel\",value:function scriptModel(e){return new ScriptModel(e);}},{key:\"severity\",value:function severity(e){return new Severity(e);}},{key:\"silentPrint\",value:function silentPrint(e){return new SilentPrint(e);}},{key:\"staple\",value:function staple(e){return new Staple(e);}},{key:\"startNode\",value:function startNode(e){return new StartNode(e);}},{key:\"startPage\",value:function startPage(e){return new StartPage(e);}},{key:\"submitFormat\",value:function submitFormat(e){return new SubmitFormat(e);}},{key:\"submitUrl\",value:function submitUrl(e){return new SubmitUrl(e);}},{key:\"subsetBelow\",value:function subsetBelow(e){return new SubsetBelow(e);}},{key:\"suppressBanner\",value:function suppressBanner(e){return new SuppressBanner(e);}},{key:\"tagged\",value:function tagged(e){return new Tagged(e);}},{key:\"template\",value:function template(e){return new Template(e);}},{key:\"templateCache\",value:function templateCache(e){return new TemplateCache(e);}},{key:\"threshold\",value:function threshold(e){return new Threshold(e);}},{key:\"to\",value:function to(e){return new To(e);}},{key:\"trace\",value:function trace(e){return new Trace(e);}},{key:\"transform\",value:function transform(e){return new Transform(e);}},{key:\"type\",value:function type(e){return new Type(e);}},{key:\"uri\",value:function uri(e){return new Uri(e);}},{key:\"validate\",value:function validate(e){return new Validate(e);}},{key:\"validateApprovalSignatures\",value:function validateApprovalSignatures(e){return new ValidateApprovalSignatures(e);}},{key:\"validationMessaging\",value:function validationMessaging(e){return new ValidationMessaging(e);}},{key:\"version\",value:function version(e){return new Version(e);}},{key:\"versionControl\",value:function versionControl(e){return new VersionControl(e);}},{key:\"viewerPreferences\",value:function viewerPreferences(e){return new ViewerPreferences(e);}},{key:\"webClient\",value:function webClient(e){return new WebClient(e);}},{key:\"whitespace\",value:function whitespace(e){return new Whitespace(e);}},{key:\"window\",value:function window(e){return new Window(e);}},{key:\"xdc\",value:function xdc(e){return new Xdc(e);}},{key:\"xdp\",value:function xdp(e){return new Xdp(e);}},{key:\"xsl\",value:function xsl(e){return new Xsl(e);}},{key:\"zpl\",value:function zpl(e){return new Zpl(e);}}]);return ConfigNamespace;}(a.$buildXFAObject);t.ConfigNamespace=ConfigNamespace;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.ConnectionSetNamespace=void 0;var a=r(204),n=r(202);var i=a.NamespaceIds.connectionSet.id;var ConnectionSet=/*#__PURE__*/function(_n$XFAObject50){_inherits(ConnectionSet,_n$XFAObject50);function ConnectionSet(e){var _this269;_classCallCheck(this,ConnectionSet);_this269=_callSuper(this,ConnectionSet,[i,\"connectionSet\",!0]);_this269.wsdlConnection=new n.XFAObjectArray();_this269.xmlConnection=new n.XFAObjectArray();_this269.xsdConnection=new n.XFAObjectArray();return _this269;}return _createClass(ConnectionSet);}(n.XFAObject);var EffectiveInputPolicy=/*#__PURE__*/function(_n$XFAObject51){_inherits(EffectiveInputPolicy,_n$XFAObject51);function EffectiveInputPolicy(e){var _this270;_classCallCheck(this,EffectiveInputPolicy);_this270=_callSuper(this,EffectiveInputPolicy,[i,\"effectiveInputPolicy\"]);_this270.id=e.id||\"\";_this270.name=e.name||\"\";_this270.use=e.use||\"\";_this270.usehref=e.usehref||\"\";return _this270;}return _createClass(EffectiveInputPolicy);}(n.XFAObject);var EffectiveOutputPolicy=/*#__PURE__*/function(_n$XFAObject52){_inherits(EffectiveOutputPolicy,_n$XFAObject52);function EffectiveOutputPolicy(e){var _this271;_classCallCheck(this,EffectiveOutputPolicy);_this271=_callSuper(this,EffectiveOutputPolicy,[i,\"effectiveOutputPolicy\"]);_this271.id=e.id||\"\";_this271.name=e.name||\"\";_this271.use=e.use||\"\";_this271.usehref=e.usehref||\"\";return _this271;}return _createClass(EffectiveOutputPolicy);}(n.XFAObject);var Operation=/*#__PURE__*/function(_n$StringObject20){_inherits(Operation,_n$StringObject20);function Operation(e){var _this272;_classCallCheck(this,Operation);_this272=_callSuper(this,Operation,[i,\"operation\"]);_this272.id=e.id||\"\";_this272.input=e.input||\"\";_this272.name=e.name||\"\";_this272.output=e.output||\"\";_this272.use=e.use||\"\";_this272.usehref=e.usehref||\"\";return _this272;}return _createClass(Operation);}(n.StringObject);var RootElement=/*#__PURE__*/function(_n$StringObject21){_inherits(RootElement,_n$StringObject21);function RootElement(e){var _this273;_classCallCheck(this,RootElement);_this273=_callSuper(this,RootElement,[i,\"rootElement\"]);_this273.id=e.id||\"\";_this273.name=e.name||\"\";_this273.use=e.use||\"\";_this273.usehref=e.usehref||\"\";return _this273;}return _createClass(RootElement);}(n.StringObject);var SoapAction=/*#__PURE__*/function(_n$StringObject22){_inherits(SoapAction,_n$StringObject22);function SoapAction(e){var _this274;_classCallCheck(this,SoapAction);_this274=_callSuper(this,SoapAction,[i,\"soapAction\"]);_this274.id=e.id||\"\";_this274.name=e.name||\"\";_this274.use=e.use||\"\";_this274.usehref=e.usehref||\"\";return _this274;}return _createClass(SoapAction);}(n.StringObject);var SoapAddress=/*#__PURE__*/function(_n$StringObject23){_inherits(SoapAddress,_n$StringObject23);function SoapAddress(e){var _this275;_classCallCheck(this,SoapAddress);_this275=_callSuper(this,SoapAddress,[i,\"soapAddress\"]);_this275.id=e.id||\"\";_this275.name=e.name||\"\";_this275.use=e.use||\"\";_this275.usehref=e.usehref||\"\";return _this275;}return _createClass(SoapAddress);}(n.StringObject);var Uri=/*#__PURE__*/function(_n$StringObject24){_inherits(Uri,_n$StringObject24);function Uri(e){var _this276;_classCallCheck(this,Uri);_this276=_callSuper(this,Uri,[i,\"uri\"]);_this276.id=e.id||\"\";_this276.name=e.name||\"\";_this276.use=e.use||\"\";_this276.usehref=e.usehref||\"\";return _this276;}return _createClass(Uri);}(n.StringObject);var WsdlAddress=/*#__PURE__*/function(_n$StringObject25){_inherits(WsdlAddress,_n$StringObject25);function WsdlAddress(e){var _this277;_classCallCheck(this,WsdlAddress);_this277=_callSuper(this,WsdlAddress,[i,\"wsdlAddress\"]);_this277.id=e.id||\"\";_this277.name=e.name||\"\";_this277.use=e.use||\"\";_this277.usehref=e.usehref||\"\";return _this277;}return _createClass(WsdlAddress);}(n.StringObject);var WsdlConnection=/*#__PURE__*/function(_n$XFAObject53){_inherits(WsdlConnection,_n$XFAObject53);function WsdlConnection(e){var _this278;_classCallCheck(this,WsdlConnection);_this278=_callSuper(this,WsdlConnection,[i,\"wsdlConnection\",!0]);_this278.dataDescription=e.dataDescription||\"\";_this278.name=e.name||\"\";_this278.effectiveInputPolicy=null;_this278.effectiveOutputPolicy=null;_this278.operation=null;_this278.soapAction=null;_this278.soapAddress=null;_this278.wsdlAddress=null;return _this278;}return _createClass(WsdlConnection);}(n.XFAObject);var XmlConnection=/*#__PURE__*/function(_n$XFAObject54){_inherits(XmlConnection,_n$XFAObject54);function XmlConnection(e){var _this279;_classCallCheck(this,XmlConnection);_this279=_callSuper(this,XmlConnection,[i,\"xmlConnection\",!0]);_this279.dataDescription=e.dataDescription||\"\";_this279.name=e.name||\"\";_this279.uri=null;return _this279;}return _createClass(XmlConnection);}(n.XFAObject);var XsdConnection=/*#__PURE__*/function(_n$XFAObject55){_inherits(XsdConnection,_n$XFAObject55);function XsdConnection(e){var _this280;_classCallCheck(this,XsdConnection);_this280=_callSuper(this,XsdConnection,[i,\"xsdConnection\",!0]);_this280.dataDescription=e.dataDescription||\"\";_this280.name=e.name||\"\";_this280.rootElement=null;_this280.uri=null;return _this280;}return _createClass(XsdConnection);}(n.XFAObject);var ConnectionSetNamespace=/*#__PURE__*/function(_a$$buildXFAObject2){function ConnectionSetNamespace(){_classCallCheck(this,ConnectionSetNamespace);}_createClass(ConnectionSetNamespace,null,[{key:_a$$buildXFAObject2,value:function value(e,t){if(ConnectionSetNamespace.hasOwnProperty(e))return ConnectionSetNamespace[e](t);}},{key:\"connectionSet\",value:function connectionSet(e){return new ConnectionSet(e);}},{key:\"effectiveInputPolicy\",value:function effectiveInputPolicy(e){return new EffectiveInputPolicy(e);}},{key:\"effectiveOutputPolicy\",value:function effectiveOutputPolicy(e){return new EffectiveOutputPolicy(e);}},{key:\"operation\",value:function operation(e){return new Operation(e);}},{key:\"rootElement\",value:function rootElement(e){return new RootElement(e);}},{key:\"soapAction\",value:function soapAction(e){return new SoapAction(e);}},{key:\"soapAddress\",value:function soapAddress(e){return new SoapAddress(e);}},{key:\"uri\",value:function uri(e){return new Uri(e);}},{key:\"wsdlAddress\",value:function wsdlAddress(e){return new WsdlAddress(e);}},{key:\"wsdlConnection\",value:function wsdlConnection(e){return new WsdlConnection(e);}},{key:\"xmlConnection\",value:function xmlConnection(e){return new XmlConnection(e);}},{key:\"xsdConnection\",value:function xsdConnection(e){return new XsdConnection(e);}}]);return ConnectionSetNamespace;}(a.$buildXFAObject);t.ConnectionSetNamespace=ConnectionSetNamespace;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.DatasetsNamespace=void 0;var a=r(202),n=r(204);var i=n.NamespaceIds.datasets.id;var Data=/*#__PURE__*/function(_a$XmlObject,_a$$isNsAgnostic){_inherits(Data,_a$XmlObject);function Data(e){_classCallCheck(this,Data);return _callSuper(this,Data,[i,\"data\",e]);}_createClass(Data,[{key:_a$$isNsAgnostic,value:function value(){return!0;}}]);return Data;}(a.XmlObject,a.$isNsAgnostic);var Datasets=/*#__PURE__*/function(_a$XFAObject89,_a$$onChild3){_inherits(Datasets,_a$XFAObject89);function Datasets(e){var _this281;_classCallCheck(this,Datasets);_this281=_callSuper(this,Datasets,[i,\"datasets\",!0]);_this281.data=null;_this281.Signature=null;return _this281;}_createClass(Datasets,[{key:_a$$onChild3,value:function value(e){var t=e[a.$nodeName];(\"data\"===t&&e[a.$namespaceId]===i||\"Signature\"===t&&e[a.$namespaceId]===n.NamespaceIds.signature.id)&&(this[t]=e);this[a.$appendChild](e);}}]);return Datasets;}(a.XFAObject,a.$onChild);var DatasetsNamespace=/*#__PURE__*/function(_n$$buildXFAObject2){function DatasetsNamespace(){_classCallCheck(this,DatasetsNamespace);}_createClass(DatasetsNamespace,null,[{key:_n$$buildXFAObject2,value:function value(e,t){if(DatasetsNamespace.hasOwnProperty(e))return DatasetsNamespace[e](t);}},{key:\"datasets\",value:function datasets(e){return new Datasets(e);}},{key:\"data\",value:function data(e){return new Data(e);}}]);return DatasetsNamespace;}(n.$buildXFAObject);t.DatasetsNamespace=DatasetsNamespace;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.LocaleSetNamespace=void 0;var a=r(204),n=r(202),i=r(203);var s=a.NamespaceIds.localeSet.id;var CalendarSymbols=/*#__PURE__*/function(_n$XFAObject56){_inherits(CalendarSymbols,_n$XFAObject56);function CalendarSymbols(e){var _this282;_classCallCheck(this,CalendarSymbols);_this282=_callSuper(this,CalendarSymbols,[s,\"calendarSymbols\",!0]);_this282.name=\"gregorian\";_this282.dayNames=new n.XFAObjectArray(2);_this282.eraNames=null;_this282.meridiemNames=null;_this282.monthNames=new n.XFAObjectArray(2);return _this282;}return _createClass(CalendarSymbols);}(n.XFAObject);var CurrencySymbol=/*#__PURE__*/function(_n$StringObject26){_inherits(CurrencySymbol,_n$StringObject26);function CurrencySymbol(e){var _this283;_classCallCheck(this,CurrencySymbol);_this283=_callSuper(this,CurrencySymbol,[s,\"currencySymbol\"]);_this283.name=(0,i.getStringOption)(e.name,[\"symbol\",\"isoname\",\"decimal\"]);return _this283;}return _createClass(CurrencySymbol);}(n.StringObject);var CurrencySymbols=/*#__PURE__*/function(_n$XFAObject57){_inherits(CurrencySymbols,_n$XFAObject57);function CurrencySymbols(e){var _this284;_classCallCheck(this,CurrencySymbols);_this284=_callSuper(this,CurrencySymbols,[s,\"currencySymbols\",!0]);_this284.currencySymbol=new n.XFAObjectArray(3);return _this284;}return _createClass(CurrencySymbols);}(n.XFAObject);var DatePattern=/*#__PURE__*/function(_n$StringObject27){_inherits(DatePattern,_n$StringObject27);function DatePattern(e){var _this285;_classCallCheck(this,DatePattern);_this285=_callSuper(this,DatePattern,[s,\"datePattern\"]);_this285.name=(0,i.getStringOption)(e.name,[\"full\",\"long\",\"med\",\"short\"]);return _this285;}return _createClass(DatePattern);}(n.StringObject);var DatePatterns=/*#__PURE__*/function(_n$XFAObject58){_inherits(DatePatterns,_n$XFAObject58);function DatePatterns(e){var _this286;_classCallCheck(this,DatePatterns);_this286=_callSuper(this,DatePatterns,[s,\"datePatterns\",!0]);_this286.datePattern=new n.XFAObjectArray(4);return _this286;}return _createClass(DatePatterns);}(n.XFAObject);var DateTimeSymbols=/*#__PURE__*/function(_n$ContentObject12){_inherits(DateTimeSymbols,_n$ContentObject12);function DateTimeSymbols(e){_classCallCheck(this,DateTimeSymbols);return _callSuper(this,DateTimeSymbols,[s,\"dateTimeSymbols\"]);}return _createClass(DateTimeSymbols);}(n.ContentObject);var Day=/*#__PURE__*/function(_n$StringObject28){_inherits(Day,_n$StringObject28);function Day(e){_classCallCheck(this,Day);return _callSuper(this,Day,[s,\"day\"]);}return _createClass(Day);}(n.StringObject);var DayNames=/*#__PURE__*/function(_n$XFAObject59){_inherits(DayNames,_n$XFAObject59);function DayNames(e){var _this287;_classCallCheck(this,DayNames);_this287=_callSuper(this,DayNames,[s,\"dayNames\",!0]);_this287.abbr=(0,i.getInteger)({data:e.abbr,defaultValue:0,validate:function validate(e){return 1===e;}});_this287.day=new n.XFAObjectArray(7);return _this287;}return _createClass(DayNames);}(n.XFAObject);var Era=/*#__PURE__*/function(_n$StringObject29){_inherits(Era,_n$StringObject29);function Era(e){_classCallCheck(this,Era);return _callSuper(this,Era,[s,\"era\"]);}return _createClass(Era);}(n.StringObject);var EraNames=/*#__PURE__*/function(_n$XFAObject60){_inherits(EraNames,_n$XFAObject60);function EraNames(e){var _this288;_classCallCheck(this,EraNames);_this288=_callSuper(this,EraNames,[s,\"eraNames\",!0]);_this288.era=new n.XFAObjectArray(2);return _this288;}return _createClass(EraNames);}(n.XFAObject);var Locale=/*#__PURE__*/function(_n$XFAObject61){_inherits(Locale,_n$XFAObject61);function Locale(e){var _this289;_classCallCheck(this,Locale);_this289=_callSuper(this,Locale,[s,\"locale\",!0]);_this289.desc=e.desc||\"\";_this289.name=\"isoname\";_this289.calendarSymbols=null;_this289.currencySymbols=null;_this289.datePatterns=null;_this289.dateTimeSymbols=null;_this289.numberPatterns=null;_this289.numberSymbols=null;_this289.timePatterns=null;_this289.typeFaces=null;return _this289;}return _createClass(Locale);}(n.XFAObject);var LocaleSet=/*#__PURE__*/function(_n$XFAObject62){_inherits(LocaleSet,_n$XFAObject62);function LocaleSet(e){var _this290;_classCallCheck(this,LocaleSet);_this290=_callSuper(this,LocaleSet,[s,\"localeSet\",!0]);_this290.locale=new n.XFAObjectArray();return _this290;}return _createClass(LocaleSet);}(n.XFAObject);var Meridiem=/*#__PURE__*/function(_n$StringObject30){_inherits(Meridiem,_n$StringObject30);function Meridiem(e){_classCallCheck(this,Meridiem);return _callSuper(this,Meridiem,[s,\"meridiem\"]);}return _createClass(Meridiem);}(n.StringObject);var MeridiemNames=/*#__PURE__*/function(_n$XFAObject63){_inherits(MeridiemNames,_n$XFAObject63);function MeridiemNames(e){var _this291;_classCallCheck(this,MeridiemNames);_this291=_callSuper(this,MeridiemNames,[s,\"meridiemNames\",!0]);_this291.meridiem=new n.XFAObjectArray(2);return _this291;}return _createClass(MeridiemNames);}(n.XFAObject);var Month=/*#__PURE__*/function(_n$StringObject31){_inherits(Month,_n$StringObject31);function Month(e){_classCallCheck(this,Month);return _callSuper(this,Month,[s,\"month\"]);}return _createClass(Month);}(n.StringObject);var MonthNames=/*#__PURE__*/function(_n$XFAObject64){_inherits(MonthNames,_n$XFAObject64);function MonthNames(e){var _this292;_classCallCheck(this,MonthNames);_this292=_callSuper(this,MonthNames,[s,\"monthNames\",!0]);_this292.abbr=(0,i.getInteger)({data:e.abbr,defaultValue:0,validate:function validate(e){return 1===e;}});_this292.month=new n.XFAObjectArray(12);return _this292;}return _createClass(MonthNames);}(n.XFAObject);var NumberPattern=/*#__PURE__*/function(_n$StringObject32){_inherits(NumberPattern,_n$StringObject32);function NumberPattern(e){var _this293;_classCallCheck(this,NumberPattern);_this293=_callSuper(this,NumberPattern,[s,\"numberPattern\"]);_this293.name=(0,i.getStringOption)(e.name,[\"full\",\"long\",\"med\",\"short\"]);return _this293;}return _createClass(NumberPattern);}(n.StringObject);var NumberPatterns=/*#__PURE__*/function(_n$XFAObject65){_inherits(NumberPatterns,_n$XFAObject65);function NumberPatterns(e){var _this294;_classCallCheck(this,NumberPatterns);_this294=_callSuper(this,NumberPatterns,[s,\"numberPatterns\",!0]);_this294.numberPattern=new n.XFAObjectArray(4);return _this294;}return _createClass(NumberPatterns);}(n.XFAObject);var NumberSymbol=/*#__PURE__*/function(_n$StringObject33){_inherits(NumberSymbol,_n$StringObject33);function NumberSymbol(e){var _this295;_classCallCheck(this,NumberSymbol);_this295=_callSuper(this,NumberSymbol,[s,\"numberSymbol\"]);_this295.name=(0,i.getStringOption)(e.name,[\"decimal\",\"grouping\",\"percent\",\"minus\",\"zero\"]);return _this295;}return _createClass(NumberSymbol);}(n.StringObject);var NumberSymbols=/*#__PURE__*/function(_n$XFAObject66){_inherits(NumberSymbols,_n$XFAObject66);function NumberSymbols(e){var _this296;_classCallCheck(this,NumberSymbols);_this296=_callSuper(this,NumberSymbols,[s,\"numberSymbols\",!0]);_this296.numberSymbol=new n.XFAObjectArray(5);return _this296;}return _createClass(NumberSymbols);}(n.XFAObject);var TimePattern=/*#__PURE__*/function(_n$StringObject34){_inherits(TimePattern,_n$StringObject34);function TimePattern(e){var _this297;_classCallCheck(this,TimePattern);_this297=_callSuper(this,TimePattern,[s,\"timePattern\"]);_this297.name=(0,i.getStringOption)(e.name,[\"full\",\"long\",\"med\",\"short\"]);return _this297;}return _createClass(TimePattern);}(n.StringObject);var TimePatterns=/*#__PURE__*/function(_n$XFAObject67){_inherits(TimePatterns,_n$XFAObject67);function TimePatterns(e){var _this298;_classCallCheck(this,TimePatterns);_this298=_callSuper(this,TimePatterns,[s,\"timePatterns\",!0]);_this298.timePattern=new n.XFAObjectArray(4);return _this298;}return _createClass(TimePatterns);}(n.XFAObject);var TypeFace=/*#__PURE__*/function(_n$XFAObject68){_inherits(TypeFace,_n$XFAObject68);function TypeFace(e){var _this299;_classCallCheck(this,TypeFace);_this299=_callSuper(this,TypeFace,[s,\"typeFace\",!0]);_this299.name=\"\"|e.name;return _this299;}return _createClass(TypeFace);}(n.XFAObject);var TypeFaces=/*#__PURE__*/function(_n$XFAObject69){_inherits(TypeFaces,_n$XFAObject69);function TypeFaces(e){var _this300;_classCallCheck(this,TypeFaces);_this300=_callSuper(this,TypeFaces,[s,\"typeFaces\",!0]);_this300.typeFace=new n.XFAObjectArray();return _this300;}return _createClass(TypeFaces);}(n.XFAObject);var LocaleSetNamespace=/*#__PURE__*/function(_a$$buildXFAObject3){function LocaleSetNamespace(){_classCallCheck(this,LocaleSetNamespace);}_createClass(LocaleSetNamespace,null,[{key:_a$$buildXFAObject3,value:function value(e,t){if(LocaleSetNamespace.hasOwnProperty(e))return LocaleSetNamespace[e](t);}},{key:\"calendarSymbols\",value:function calendarSymbols(e){return new CalendarSymbols(e);}},{key:\"currencySymbol\",value:function currencySymbol(e){return new CurrencySymbol(e);}},{key:\"currencySymbols\",value:function currencySymbols(e){return new CurrencySymbols(e);}},{key:\"datePattern\",value:function datePattern(e){return new DatePattern(e);}},{key:\"datePatterns\",value:function datePatterns(e){return new DatePatterns(e);}},{key:\"dateTimeSymbols\",value:function dateTimeSymbols(e){return new DateTimeSymbols(e);}},{key:\"day\",value:function day(e){return new Day(e);}},{key:\"dayNames\",value:function dayNames(e){return new DayNames(e);}},{key:\"era\",value:function era(e){return new Era(e);}},{key:\"eraNames\",value:function eraNames(e){return new EraNames(e);}},{key:\"locale\",value:function locale(e){return new Locale(e);}},{key:\"localeSet\",value:function localeSet(e){return new LocaleSet(e);}},{key:\"meridiem\",value:function meridiem(e){return new Meridiem(e);}},{key:\"meridiemNames\",value:function meridiemNames(e){return new MeridiemNames(e);}},{key:\"month\",value:function month(e){return new Month(e);}},{key:\"monthNames\",value:function monthNames(e){return new MonthNames(e);}},{key:\"numberPattern\",value:function numberPattern(e){return new NumberPattern(e);}},{key:\"numberPatterns\",value:function numberPatterns(e){return new NumberPatterns(e);}},{key:\"numberSymbol\",value:function numberSymbol(e){return new NumberSymbol(e);}},{key:\"numberSymbols\",value:function numberSymbols(e){return new NumberSymbols(e);}},{key:\"timePattern\",value:function timePattern(e){return new TimePattern(e);}},{key:\"timePatterns\",value:function timePatterns(e){return new TimePatterns(e);}},{key:\"typeFace\",value:function typeFace(e){return new TypeFace(e);}},{key:\"typeFaces\",value:function typeFaces(e){return new TypeFaces(e);}}]);return LocaleSetNamespace;}(a.$buildXFAObject);t.LocaleSetNamespace=LocaleSetNamespace;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.SignatureNamespace=void 0;var a=r(204),n=r(202);var i=a.NamespaceIds.signature.id;var Signature=/*#__PURE__*/function(_n$XFAObject70){_inherits(Signature,_n$XFAObject70);function Signature(e){_classCallCheck(this,Signature);return _callSuper(this,Signature,[i,\"signature\",!0]);}return _createClass(Signature);}(n.XFAObject);var SignatureNamespace=/*#__PURE__*/function(_a$$buildXFAObject4){function SignatureNamespace(){_classCallCheck(this,SignatureNamespace);}_createClass(SignatureNamespace,null,[{key:_a$$buildXFAObject4,value:function value(e,t){if(SignatureNamespace.hasOwnProperty(e))return SignatureNamespace[e](t);}},{key:\"signature\",value:function signature(e){return new Signature(e);}}]);return SignatureNamespace;}(a.$buildXFAObject);t.SignatureNamespace=SignatureNamespace;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.StylesheetNamespace=void 0;var a=r(204),n=r(202);var i=a.NamespaceIds.stylesheet.id;var Stylesheet=/*#__PURE__*/function(_n$XFAObject71){_inherits(Stylesheet,_n$XFAObject71);function Stylesheet(e){_classCallCheck(this,Stylesheet);return _callSuper(this,Stylesheet,[i,\"stylesheet\",!0]);}return _createClass(Stylesheet);}(n.XFAObject);var StylesheetNamespace=/*#__PURE__*/function(_a$$buildXFAObject5){function StylesheetNamespace(){_classCallCheck(this,StylesheetNamespace);}_createClass(StylesheetNamespace,null,[{key:_a$$buildXFAObject5,value:function value(e,t){if(StylesheetNamespace.hasOwnProperty(e))return StylesheetNamespace[e](t);}},{key:\"stylesheet\",value:function stylesheet(e){return new Stylesheet(e);}}]);return StylesheetNamespace;}(a.$buildXFAObject);t.StylesheetNamespace=StylesheetNamespace;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.XdpNamespace=void 0;var a=r(204),n=r(202);var i=a.NamespaceIds.xdp.id;var Xdp=/*#__PURE__*/function(_n$XFAObject72,_n$$onChildCheck){_inherits(Xdp,_n$XFAObject72);function Xdp(e){var _this301;_classCallCheck(this,Xdp);_this301=_callSuper(this,Xdp,[i,\"xdp\",!0]);_this301.uuid=e.uuid||\"\";_this301.timeStamp=e.timeStamp||\"\";_this301.config=null;_this301.connectionSet=null;_this301.datasets=null;_this301.localeSet=null;_this301.stylesheet=new n.XFAObjectArray();_this301.template=null;return _this301;}_createClass(Xdp,[{key:_n$$onChildCheck,value:function value(e){var t=a.NamespaceIds[e[n.$nodeName]];return t&&e[n.$namespaceId]===t.id;}}]);return Xdp;}(n.XFAObject,n.$onChildCheck);var XdpNamespace=/*#__PURE__*/function(_a$$buildXFAObject6){function XdpNamespace(){_classCallCheck(this,XdpNamespace);}_createClass(XdpNamespace,null,[{key:_a$$buildXFAObject6,value:function value(e,t){if(XdpNamespace.hasOwnProperty(e))return XdpNamespace[e](t);}},{key:\"xdp\",value:function xdp(e){return new Xdp(e);}}]);return XdpNamespace;}(a.$buildXFAObject);t.XdpNamespace=XdpNamespace;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.XhtmlNamespace=void 0;var a=r(202),n=r(204),i=r(209),s=r(203);var o=n.NamespaceIds.xhtml.id,c=_Symbol(),l=new _Set([\"color\",\"font\",\"font-family\",\"font-size\",\"font-stretch\",\"font-style\",\"font-weight\",\"margin\",\"margin-bottom\",\"margin-left\",\"margin-right\",\"margin-top\",\"letter-spacing\",\"line-height\",\"orphans\",\"page-break-after\",\"page-break-before\",\"page-break-inside\",\"tab-interval\",\"tab-stop\",\"text-align\",\"text-decoration\",\"text-indent\",\"vertical-align\",\"widows\",\"kerning-mode\",\"xfa-font-horizontal-scale\",\"xfa-font-vertical-scale\",\"xfa-spacerun\",\"xfa-tab-stops\"]),h=new _Map([[\"page-break-after\",\"breakAfter\"],[\"page-break-before\",\"breakBefore\"],[\"page-break-inside\",\"breakInside\"],[\"kerning-mode\",function(e){return\"none\"===e?\"none\":\"normal\";}],[\"xfa-font-horizontal-scale\",function(e){return\"scaleX(\".concat(Math.max(0,Math.min(_parseInt(e)/100)).toFixed(2),\")\");}],[\"xfa-font-vertical-scale\",function(e){return\"scaleY(\".concat(Math.max(0,Math.min(_parseInt(e)/100)).toFixed(2),\")\");}],[\"xfa-spacerun\",\"\"],[\"xfa-tab-stops\",\"\"],[\"font-size\",function(e,t){e=t.fontSize=(0,s.getMeasurement)(e);return(0,i.measureToString)(.99*e);}],[\"letter-spacing\",function(e){return(0,i.measureToString)((0,s.getMeasurement)(e));}],[\"line-height\",function(e){return(0,i.measureToString)((0,s.getMeasurement)(e));}],[\"margin\",function(e){return(0,i.measureToString)((0,s.getMeasurement)(e));}],[\"margin-bottom\",function(e){return(0,i.measureToString)((0,s.getMeasurement)(e));}],[\"margin-left\",function(e){return(0,i.measureToString)((0,s.getMeasurement)(e));}],[\"margin-right\",function(e){return(0,i.measureToString)((0,s.getMeasurement)(e));}],[\"margin-top\",function(e){return(0,i.measureToString)((0,s.getMeasurement)(e));}],[\"text-indent\",function(e){return(0,i.measureToString)((0,s.getMeasurement)(e));}],[\"font-family\",function(e){return e;}],[\"vertical-align\",function(e){return(0,i.measureToString)((0,s.getMeasurement)(e));}]]),u=/\\s+/g,d=/[\\r\\n]+/g,f=/\\r\\n?/g;function mapStyle(e,t,r){var _context474;var n=Object.create(null);if(!e)return n;var o=Object.create(null);var _iterator178=_createForOfIteratorHelper(_mapInstanceProperty(_context474=e.split(\";\")).call(_context474,function(e){return e.split(\":\",2);})),_step178;try{for(_iterator178.s();!(_step178=_iterator178.n()).done;){var _context475;var _step178$value=_slicedToArray(_step178.value,2),_t456=_step178$value[0],_r370=_step178$value[1];var _e593=h.get(_t456);if(\"\"===_e593)continue;var _a264=_r370;_e593&&(_a264=\"string\"==typeof _e593?_e593:_e593(_r370,o));_endsWithInstanceProperty(_t456).call(_t456,\"scale\")?n.transform?n.transform=_concatInstanceProperty(_context475=\"\".concat(n[_t456],\" \")).call(_context475,_a264):n.transform=_a264:n[_replaceAllInstanceProperty(_t456).call(_t456,/-([a-zA-Z])/g,function(e,t){return t.toUpperCase();})]=_a264;}}catch(err){_iterator178.e(err);}finally{_iterator178.f();}n.fontFamily&&(0,i.setFontFamily)({typeface:n.fontFamily,weight:n.fontWeight||\"normal\",posture:n.fontStyle||\"normal\",size:o.fontSize||0},t,t[a.$globalData].fontFinder,n);if(r&&n.verticalAlign&&\"0px\"!==n.verticalAlign&&n.fontSize){var _e592=.583,_t455=.333,_r369=(0,s.getMeasurement)(n.fontSize);n.fontSize=(0,i.measureToString)(_r369*_e592);n.verticalAlign=(0,i.measureToString)(_Math$sign((0,s.getMeasurement)(n.verticalAlign))*_r369*_t455);}r&&n.fontSize&&(n.fontSize=\"calc(\".concat(n.fontSize,\" * var(--scale-factor))\"));(0,i.fixTextIndent)(n);return n;}var g=new _Set([\"body\",\"html\"]);var XhtmlObject=/*#__PURE__*/function(_a$XmlObject2,_a$$clean3,_a$$acceptWhitespace2,_a$$onText2,_a$$pushGlyphs,_a$$toHTML34){_inherits(XhtmlObject,_a$XmlObject2);function XhtmlObject(e,t){var _this302;_classCallCheck(this,XhtmlObject);_this302=_callSuper(this,XhtmlObject,[o,t]);_this302[c]=!1;_this302.style=e.style||\"\";return _this302;}_createClass(XhtmlObject,[{key:_a$$clean3,value:function value(e){_get(_getPrototypeOf(XhtmlObject.prototype),a.$clean,this).call(this,e);this.style=function checkStyle(e,_context476,_context477,_context478,_context479,_context480){return e.style?_mapInstanceProperty(_context476=_filterInstanceProperty(_context477=_mapInstanceProperty(_context478=_filterInstanceProperty(_context479=_trimInstanceProperty(_context480=e.style).call(_context480).split(/\\s*;\\s*/)).call(_context479,function(e){return!!e;})).call(_context478,function(e){return e.split(/\\s*:\\s*/,2);})).call(_context477,function(t){var _t457=_slicedToArray(t,2),r=_t457[0],n=_t457[1];\"font-family\"===r&&e[a.$globalData].usedTypefaces.add(n);return l.has(r);})).call(_context476,function(e){return e.join(\":\");}).join(\";\"):\"\";}(this);}},{key:_a$$acceptWhitespace2,value:function value(){return!g.has(this[a.$nodeName]);}},{key:_a$$onText2,value:function value(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])this[c]=!0;else{var _context481;e=e.replace(d,\"\");_includesInstanceProperty(_context481=this.style).call(_context481,\"xfa-spacerun:yes\")||(e=e.replace(u,\" \"));}e&&(this[a.$content]+=e);}},{key:_a$$pushGlyphs,value:function value(e){var _context482,_context483;var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];var r=Object.create(null),n={top:NaN,bottom:NaN,left:NaN,right:NaN};var i=null;var _iterator179=_createForOfIteratorHelper(_mapInstanceProperty(_context482=this.style.split(\";\")).call(_context482,function(e){return e.split(\":\",2);})),_step179;try{for(_iterator179.s();!(_step179=_iterator179.n()).done;){var _step179$value=_slicedToArray(_step179.value,2),_e594=_step179$value[0],_t459=_step179$value[1];switch(e){case\"font-family\":r.typeface=(0,s.stripQuotes)(_t459);break;case\"font-size\":r.size=(0,s.getMeasurement)(_t459);break;case\"font-weight\":r.weight=_t459;break;case\"font-style\":r.posture=_t459;break;case\"letter-spacing\":r.letterSpacing=(0,s.getMeasurement)(_t459);break;case\"margin\":var _e595=_mapInstanceProperty(_context483=_t459.split(/ \\t/)).call(_context483,function(e){return(0,s.getMeasurement)(e);});switch(_e595.length){case 1:n.top=n.bottom=n.left=n.right=_e595[0];break;case 2:n.top=n.bottom=_e595[0];n.left=n.right=_e595[1];break;case 3:n.top=_e595[0];n.bottom=_e595[2];n.left=n.right=_e595[1];break;case 4:n.top=_e595[0];n.left=_e595[1];n.bottom=_e595[2];n.right=_e595[3];}break;case\"margin-top\":n.top=(0,s.getMeasurement)(_t459);break;case\"margin-bottom\":n.bottom=(0,s.getMeasurement)(_t459);break;case\"margin-left\":n.left=(0,s.getMeasurement)(_t459);break;case\"margin-right\":n.right=(0,s.getMeasurement)(_t459);break;case\"line-height\":i=(0,s.getMeasurement)(_t459);}}}catch(err){_iterator179.e(err);}finally{_iterator179.f();}e.pushData(r,n,i);if(this[a.$content])e.addString(this[a.$content]);else{var _iterator180=_createForOfIteratorHelper(this[a.$getChildren]()),_step180;try{for(_iterator180.s();!(_step180=_iterator180.n()).done;){var _t458=_step180.value;\"#text\"!==_t458[a.$nodeName]?_t458[a.$pushGlyphs](e):e.addString(_t458[a.$content]);}}catch(err){_iterator180.e(err);}finally{_iterator180.f();}}t&&e.popFont();}},{key:_a$$toHTML34,value:function value(e){var t=[];this[a.$extra]={children:t};this[a.$childrenToHTML]({});if(0===t.length&&!this[a.$content])return s.HTMLResult.EMPTY;var r;r=this[c]?this[a.$content]?this[a.$content].replace(f,\"\\n\"):void 0:this[a.$content]||void 0;return s.HTMLResult.success({name:this[a.$nodeName],attributes:{href:this.href,style:mapStyle(this.style,this,this[c])},children:t,value:r});}}]);return XhtmlObject;}(a.XmlObject,a.$clean,a.$acceptWhitespace,a.$onText,a.$pushGlyphs,a.$toHTML);var A=/*#__PURE__*/function(_XhtmlObject){_inherits(A,_XhtmlObject);function A(e){var _this303;_classCallCheck(this,A);_this303=_callSuper(this,A,[e,\"a\"]);_this303.href=(0,i.fixURL)(e.href)||\"\";return _this303;}return _createClass(A);}(XhtmlObject);var B=/*#__PURE__*/function(_XhtmlObject2,_a$$pushGlyphs2){_inherits(B,_XhtmlObject2);function B(e){_classCallCheck(this,B);return _callSuper(this,B,[e,\"b\"]);}_createClass(B,[{key:_a$$pushGlyphs2,value:function value(e){e.pushFont({weight:\"bold\"});_get(_getPrototypeOf(B.prototype),a.$pushGlyphs,this).call(this,e);e.popFont();}}]);return B;}(XhtmlObject,a.$pushGlyphs);var Body=/*#__PURE__*/function(_XhtmlObject3,_a$$toHTML35){_inherits(Body,_XhtmlObject3);function Body(e){_classCallCheck(this,Body);return _callSuper(this,Body,[e,\"body\"]);}_createClass(Body,[{key:_a$$toHTML35,value:function value(e){var t=_get(_getPrototypeOf(Body.prototype),a.$toHTML,this).call(this,e),r=t.html;if(!r)return s.HTMLResult.EMPTY;r.name=\"div\";r.attributes.class=[\"xfaRich\"];return t;}}]);return Body;}(XhtmlObject,a.$toHTML);var Br=/*#__PURE__*/function(_XhtmlObject4,_a$$text2,_a$$pushGlyphs3,_a$$toHTML36){_inherits(Br,_XhtmlObject4);function Br(e){_classCallCheck(this,Br);return _callSuper(this,Br,[e,\"br\"]);}_createClass(Br,[{key:_a$$text2,value:function value(){return\"\\n\";}},{key:_a$$pushGlyphs3,value:function value(e){e.addString(\"\\n\");}},{key:_a$$toHTML36,value:function value(e){return s.HTMLResult.success({name:\"br\"});}}]);return Br;}(XhtmlObject,a.$text,a.$pushGlyphs,a.$toHTML);var Html=/*#__PURE__*/function(_XhtmlObject5,_a$$toHTML37){_inherits(Html,_XhtmlObject5);function Html(e){_classCallCheck(this,Html);return _callSuper(this,Html,[e,\"html\"]);}_createClass(Html,[{key:_a$$toHTML37,value:function value(e){var t=[];this[a.$extra]={children:t};this[a.$childrenToHTML]({});if(0===t.length)return s.HTMLResult.success({name:\"div\",attributes:{class:[\"xfaRich\"],style:{}},value:this[a.$content]||\"\"});if(1===t.length){var _context484;var _e596=t[0];if(_e596.attributes&&_includesInstanceProperty(_context484=_e596.attributes.class).call(_context484,\"xfaRich\"))return s.HTMLResult.success(_e596);}return s.HTMLResult.success({name:\"div\",attributes:{class:[\"xfaRich\"],style:{}},children:t});}}]);return Html;}(XhtmlObject,a.$toHTML);var I=/*#__PURE__*/function(_XhtmlObject6,_a$$pushGlyphs4){_inherits(I,_XhtmlObject6);function I(e){_classCallCheck(this,I);return _callSuper(this,I,[e,\"i\"]);}_createClass(I,[{key:_a$$pushGlyphs4,value:function value(e){e.pushFont({posture:\"italic\"});_get(_getPrototypeOf(I.prototype),a.$pushGlyphs,this).call(this,e);e.popFont();}}]);return I;}(XhtmlObject,a.$pushGlyphs);var Li=/*#__PURE__*/function(_XhtmlObject7){_inherits(Li,_XhtmlObject7);function Li(e){_classCallCheck(this,Li);return _callSuper(this,Li,[e,\"li\"]);}return _createClass(Li);}(XhtmlObject);var Ol=/*#__PURE__*/function(_XhtmlObject8){_inherits(Ol,_XhtmlObject8);function Ol(e){_classCallCheck(this,Ol);return _callSuper(this,Ol,[e,\"ol\"]);}return _createClass(Ol);}(XhtmlObject);var P=/*#__PURE__*/function(_XhtmlObject9,_a$$pushGlyphs5,_a$$text3){_inherits(P,_XhtmlObject9);function P(e){_classCallCheck(this,P);return _callSuper(this,P,[e,\"p\"]);}_createClass(P,[{key:_a$$pushGlyphs5,value:function value(e){_get(_getPrototypeOf(P.prototype),a.$pushGlyphs,this).call(this,e,!1);e.addString(\"\\n\");e.addPara();e.popFont();}},{key:_a$$text3,value:function value(){return this[a.$getParent]()[a.$getChildren]().at(-1)===this?_get(_getPrototypeOf(P.prototype),a.$text,this).call(this):_get(_getPrototypeOf(P.prototype),a.$text,this).call(this)+\"\\n\";}}]);return P;}(XhtmlObject,a.$pushGlyphs,a.$text);var Span=/*#__PURE__*/function(_XhtmlObject10){_inherits(Span,_XhtmlObject10);function Span(e){_classCallCheck(this,Span);return _callSuper(this,Span,[e,\"span\"]);}return _createClass(Span);}(XhtmlObject);var Sub=/*#__PURE__*/function(_XhtmlObject11){_inherits(Sub,_XhtmlObject11);function Sub(e){_classCallCheck(this,Sub);return _callSuper(this,Sub,[e,\"sub\"]);}return _createClass(Sub);}(XhtmlObject);var Sup=/*#__PURE__*/function(_XhtmlObject12){_inherits(Sup,_XhtmlObject12);function Sup(e){_classCallCheck(this,Sup);return _callSuper(this,Sup,[e,\"sup\"]);}return _createClass(Sup);}(XhtmlObject);var Ul=/*#__PURE__*/function(_XhtmlObject13){_inherits(Ul,_XhtmlObject13);function Ul(e){_classCallCheck(this,Ul);return _callSuper(this,Ul,[e,\"ul\"]);}return _createClass(Ul);}(XhtmlObject);var XhtmlNamespace=/*#__PURE__*/function(_n$$buildXFAObject3){function XhtmlNamespace(){_classCallCheck(this,XhtmlNamespace);}_createClass(XhtmlNamespace,null,[{key:_n$$buildXFAObject3,value:function value(e,t){if(XhtmlNamespace.hasOwnProperty(e))return XhtmlNamespace[e](t);}},{key:\"a\",value:function a(e){return new A(e);}},{key:\"b\",value:function b(e){return new B(e);}},{key:\"body\",value:function body(e){return new Body(e);}},{key:\"br\",value:function br(e){return new Br(e);}},{key:\"html\",value:function html(e){return new Html(e);}},{key:\"i\",value:function i(e){return new I(e);}},{key:\"li\",value:function li(e){return new Li(e);}},{key:\"ol\",value:function ol(e){return new Ol(e);}},{key:\"p\",value:function p(e){return new P(e);}},{key:\"span\",value:function span(e){return new Span(e);}},{key:\"sub\",value:function sub(e){return new Sub(e);}},{key:\"sup\",value:function sup(e){return new Sup(e);}},{key:\"ul\",value:function ul(e){return new Ul(e);}}]);return XhtmlNamespace;}(n.$buildXFAObject);t.XhtmlNamespace=XhtmlNamespace;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.UnknownNamespace=void 0;var a=r(204),n=r(202);var UnknownNamespace=/*#__PURE__*/function(_a$$buildXFAObject7){function UnknownNamespace(e){_classCallCheck(this,UnknownNamespace);this.namespaceId=e;}_createClass(UnknownNamespace,[{key:_a$$buildXFAObject7,value:function value(e,t){return new n.XmlObject(this.namespaceId,e,t);}}]);return UnknownNamespace;}(a.$buildXFAObject);t.UnknownNamespace=UnknownNamespace;},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.DatasetReader=void 0;var a=r(2),n=r(131),i=r(191);function decodeString(e){try{return(0,a.stringToUTF8String)(e);}catch(t){(0,a.warn)(\"UTF-8 decoding failed: \\\"\".concat(t,\"\\\".\"));return e;}}var DatasetXMLParser=/*#__PURE__*/function(_i$SimpleXMLParser){_inherits(DatasetXMLParser,_i$SimpleXMLParser);function DatasetXMLParser(e){var _this304;_classCallCheck(this,DatasetXMLParser);_this304=_callSuper(this,DatasetXMLParser,[e]);_this304.node=null;return _this304;}_createClass(DatasetXMLParser,[{key:\"onEndElement\",value:function onEndElement(e){var t=_get(_getPrototypeOf(DatasetXMLParser.prototype),\"onEndElement\",this).call(this,e);if(t&&\"xfa:datasets\"===e){this.node=t;throw new Error(\"Aborting DatasetXMLParser.\");}}}]);return DatasetXMLParser;}(i.SimpleXMLParser);t.DatasetReader=/*#__PURE__*/function(){function DatasetReader(e){_classCallCheck(this,DatasetReader);if(e.datasets)this.node=new i.SimpleXMLParser({hasAttributes:!0}).parseFromString(e.datasets).documentElement;else{var _t460=new DatasetXMLParser({hasAttributes:!0});try{_t460.parseFromString(e[\"xdp:xdp\"]);}catch(e){}this.node=_t460.node;}}_createClass(DatasetReader,[{key:\"getValue\",value:function getValue(e){var _context485;if(!this.node||!e)return\"\";var t=this.node.searchNode((0,n.parseXFAPath)(e),0);if(!t)return\"\";var r=t.firstChild;return r&&\"value\"===r.nodeName?_mapInstanceProperty(_context485=t.children).call(_context485,function(e){return decodeString(e.textContent);}):decodeString(t.textContent);}}]);return DatasetReader;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.XRef=void 0;var a=r(2),n=r(130),i=r(131),s=r(142),o=r(132),c=r(192);t.XRef=/*#__PURE__*/function(){function XRef(e,t){_classCallCheck(this,XRef);this.stream=e;this.pdfManager=t;this.entries=[];this.xrefstms=Object.create(null);this._cacheMap=new _Map();this._pendingRefs=new n.RefSet();this.stats=new i.DocStats(t.msgHandler);this._newRefNum=null;}_createClass(XRef,[{key:\"getNewRef\",value:function getNewRef(){null===this._newRefNum&&(this._newRefNum=_entriesInstanceProperty(this).length||1);return n.Ref.get(this._newRefNum++,0);}},{key:\"resetNewRef\",value:function resetNewRef(){this._newRefNum=null;}},{key:\"setStartXRef\",value:function setStartXRef(e){this.startXRefQueue=[e];}},{key:\"parse\",value:function parse(){var e,t,r,s=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(s){(0,a.warn)(\"Indexing all PDF objects\");e=this.indexObjects();}else e=this.readXRef();e.assignXref(this);this.trailer=e;try{t=e.get(\"Encrypt\");}catch(e){if(e instanceof i.MissingDataException)throw e;(0,a.warn)(\"XRef.parse - Invalid \\\"Encrypt\\\" reference: \\\"\".concat(e,\"\\\".\"));}if(t instanceof n.Dict){var _r371=e.get(\"ID\"),_a265=_r371&&_r371.length?_r371[0]:\"\";t.suppressEncryption=!0;this.encrypt=new c.CipherTransformFactory(t,_a265,this.pdfManager.password);}try{r=e.get(\"Root\");}catch(e){if(e instanceof i.MissingDataException)throw e;(0,a.warn)(\"XRef.parse - Invalid \\\"Root\\\" reference: \\\"\".concat(e,\"\\\".\"));}if(r instanceof n.Dict)try{if(r.get(\"Pages\")instanceof n.Dict){this.root=r;return;}}catch(e){if(e instanceof i.MissingDataException)throw e;(0,a.warn)(\"XRef.parse - Invalid \\\"Pages\\\" reference: \\\"\".concat(e,\"\\\".\"));}if(!s)throw new i.XRefParseException();throw new a.InvalidPDFException(\"Invalid Root reference.\");}},{key:\"processXRefTable\",value:function processXRefTable(e){\"tableState\"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});var t=this.readXRefTable(e);if(!(0,n.isCmd)(t,\"trailer\"))throw new a.FormatError(\"Invalid XRef table: could not find trailer dictionary\");var r=e.getObj();r instanceof n.Dict||!r.dict||(r=r.dict);if(!(r instanceof n.Dict))throw new a.FormatError(\"Invalid XRef table: could not parse trailer dictionary\");delete this.tableState;return r;}},{key:\"readXRefTable\",value:function readXRefTable(e){var t=e.lexer.stream,r=this.tableState;t.pos=r.streamPos;e.buf1=r.parserBuf1;e.buf2=r.parserBuf2;var i;for(;;){if(!(\"firstEntryNum\"in r)||!(\"entryCount\"in r)){if((0,n.isCmd)(i=e.getObj(),\"trailer\"))break;r.firstEntryNum=i;r.entryCount=e.getObj();}var _s135=r.firstEntryNum;var _o85=r.entryCount;if(!_Number$isInteger(_s135)||!_Number$isInteger(_o85))throw new a.FormatError(\"Invalid XRef table: wrong types in subsection header\");for(var _i186=r.entryNum;_i186<_o85;_i186++){var _context486;r.streamPos=t.pos;r.entryNum=_i186;r.parserBuf1=e.buf1;r.parserBuf2=e.buf2;var _c68={};_c68.offset=e.getObj();_c68.gen=e.getObj();var l=e.getObj();if(l instanceof n.Cmd)switch(l.cmd){case\"f\":_c68.free=!0;break;case\"n\":_c68.uncompressed=!0;}if(!_Number$isInteger(_c68.offset)||!_Number$isInteger(_c68.gen)||!_c68.free&&!_c68.uncompressed)throw new a.FormatError(_concatInstanceProperty(_context486=\"Invalid entry in XRef subsection: \".concat(_s135,\", \")).call(_context486,_o85));0===_i186&&_c68.free&&1===_s135&&(_s135=0);_entriesInstanceProperty(this)[_i186+_s135]||(_entriesInstanceProperty(this)[_i186+_s135]=_c68);}r.entryNum=0;r.streamPos=t.pos;r.parserBuf1=e.buf1;r.parserBuf2=e.buf2;delete r.firstEntryNum;delete r.entryCount;}if(_entriesInstanceProperty(this)[0]&&!_entriesInstanceProperty(this)[0].free)throw new a.FormatError(\"Invalid XRef table: unexpected first object\");return i;}},{key:\"processXRefStream\",value:function processXRefStream(e){if(!(\"streamState\"in this)){var _t461=e.dict,_r372=_t461.get(\"W\");var _a266=_t461.get(\"Index\");_a266||(_a266=[0,_t461.get(\"Size\")]);this.streamState={entryRanges:_a266,byteWidths:_r372,entryNum:0,streamPos:e.pos};}this.readXRefStream(e);delete this.streamState;return e.dict;}},{key:\"readXRefStream\",value:function readXRefStream(e){var t=this.streamState;e.pos=t.streamPos;var _t$byteWidths=_slicedToArray(t.byteWidths,3),r=_t$byteWidths[0],n=_t$byteWidths[1],i=_t$byteWidths[2],s=t.entryRanges;for(;s.length>0;){var _context487,_context488;var _s136=_slicedToArray(s,2),_o86=_s136[0],_c69=_s136[1];if(!_Number$isInteger(_o86)||!_Number$isInteger(_c69))throw new a.FormatError(_concatInstanceProperty(_context487=\"Invalid XRef range fields: \".concat(_o86,\", \")).call(_context487,_c69));if(!_Number$isInteger(r)||!_Number$isInteger(n)||!_Number$isInteger(i))throw new a.FormatError(_concatInstanceProperty(_context488=\"Invalid XRef entry fields length: \".concat(_o86,\", \")).call(_context488,_c69));for(var _s137=t.entryNum;_s137<_c69;++_s137){t.entryNum=_s137;t.streamPos=e.pos;var _c70=0,l=0,_h42=0;for(var _t462=0;_t462<r;++_t462){var _t463=e.getByte();if(-1===_t463)throw new a.FormatError(\"Invalid XRef byteWidths 'type'.\");_c70=_c70<<8|_t463;}0===r&&(_c70=1);for(var _t464=0;_t464<n;++_t464){var _t465=e.getByte();if(-1===_t465)throw new a.FormatError(\"Invalid XRef byteWidths 'offset'.\");l=l<<8|_t465;}for(var _t466=0;_t466<i;++_t466){var _t467=e.getByte();if(-1===_t467)throw new a.FormatError(\"Invalid XRef byteWidths 'generation'.\");_h42=_h42<<8|_t467;}var u={};u.offset=l;u.gen=_h42;switch(_c70){case 0:u.free=!0;break;case 1:u.uncompressed=!0;break;case 2:break;default:throw new a.FormatError(\"Invalid XRef entry type: \".concat(_c70));}_entriesInstanceProperty(this)[_o86+_s137]||(_entriesInstanceProperty(this)[_o86+_s137]=u);}t.entryNum=0;t.streamPos=e.pos;_spliceInstanceProperty(s).call(s,0,2);}}},{key:\"indexObjects\",value:function indexObjects(){function readToken(e,t){var r=\"\",a=e[t];for(;10!==a&&13!==a&&60!==a&&!(++t>=e.length);){r+=String.fromCharCode(a);a=e[t];}return r;}function skipUntil(e,t,r){var a=r.length,n=e.length;var i=0;for(;t<n;){var _n209=0;for(;_n209<a&&e[t+_n209]===r[_n209];)++_n209;if(_n209>=a)break;t++;i++;}return i;}var e=/^(\\d+)\\s+(\\d+)\\s+obj\\b/,t=/\\bendobj[\\b\\s]$/,r=/\\s+(\\d+\\s+\\d+\\s+obj[\\b\\s<])$/,o=new Uint8Array([116,114,97,105,108,101,114]),c=new Uint8Array([115,116,97,114,116,120,114,101,102]),l=new Uint8Array([111,98,106]),h=new Uint8Array([47,88,82,101,102]);_entriesInstanceProperty(this).length=0;this._cacheMap.clear();var u=this.stream;u.pos=0;var d=u.getBytes(),f=d.length;var g=u.start;var p=[],m=[];for(;g<f;){var _n210=d[g];if(9===_n210||10===_n210||13===_n210||32===_n210){++g;continue;}if(37===_n210){do{++g;if(g>=f)break;_n210=d[g];}while(10!==_n210&&13!==_n210);continue;}var _b4=readToken(d,g);var y=void 0;if(_startsWithInstanceProperty(_b4).call(_b4,\"xref\")&&(4===_b4.length||/\\s/.test(_b4[4]))){g+=skipUntil(d,g,o);p.push(g);g+=skipUntil(d,g,c);}else if(y=e.exec(_b4)){var _e597=0|y[1],_n211=0|y[2];var _o87=void 0,_c71=g+_b4.length,_f13=!1;if(_entriesInstanceProperty(this)[_e597]){if(_entriesInstanceProperty(this)[_e597].gen===_n211)try{new s.Parser({lexer:new s.Lexer(u.makeSubStream(_c71))}).getObj();_f13=!0;}catch(e){var _context489;e instanceof i.ParserEOFException?(0,a.warn)(_concatInstanceProperty(_context489=\"indexObjects -- checking object (\".concat(_b4,\"): \\\"\")).call(_context489,e,\"\\\".\")):_f13=!0;}}else _f13=!0;_f13&&(_entriesInstanceProperty(this)[_e597]={offset:g-u.start,gen:_n211,uncompressed:!0});for(;_c71<d.length;){var _e598=_c71+skipUntil(d,_c71,l)+4;_o87=_e598-g;var _n212=Math.max(_e598-25,_c71),_i187=(0,a.bytesToString)(d.subarray(_n212,_e598));if(t.test(_i187))break;{var _e599=r.exec(_i187);if(_e599&&_e599[1]){(0,a.warn)('indexObjects: Found new \"obj\" inside of another \"obj\", caused by missing \"endobj\" -- trying to recover.');_o87-=_e599[1].length;break;}}_c71=_e598;}var _p19=d.subarray(g,g+_o87),w=skipUntil(_p19,0,h);if(w<_o87&&_p19[w+5]<64){m.push(g-u.start);this.xrefstms[g-u.start]=1;}g+=_o87;}else if(_startsWithInstanceProperty(_b4).call(_b4,\"trailer\")&&(7===_b4.length||/\\s/.test(_b4[7]))){p.push(g);g+=skipUntil(d,g,c);}else g+=_b4.length+1;}for(var _e600=0,_t468=m.length;_e600<_t468;++_e600){this.startXRefQueue.push(m[_e600]);this.readXRef(!0);}var b;for(var _e601=0,_t469=p.length;_e601<_t469;++_e601){u.pos=p[_e601];var _t470=new s.Parser({lexer:new s.Lexer(u),xref:this,allowStreams:!0,recoveryMode:!0}),_r373=_t470.getObj();if(!(0,n.isCmd)(_r373,\"trailer\"))continue;var _a267=_t470.getObj();if(_a267 instanceof n.Dict){try{var _e602=_a267.get(\"Root\");if(!(_e602 instanceof n.Dict))continue;var _t471=_e602.get(\"Pages\");if(!(_t471 instanceof n.Dict))continue;var _r374=_t471.get(\"Count\");if(!_Number$isInteger(_r374))continue;}catch(e){continue;}if(_a267.has(\"ID\"))return _a267;b=_a267;}}if(b)return b;if(this.topDict)return this.topDict;throw new a.InvalidPDFException(\"Invalid PDF structure.\");}},{key:\"readXRef\",value:function readXRef(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t=this.stream,r=new _Set();try{for(;this.startXRefQueue.length;){var _e603=this.startXRefQueue[0];if(r.has(_e603)){(0,a.warn)(\"readXRef - skipping XRef table since it was already parsed.\");this.startXRefQueue.shift();continue;}r.add(_e603);t.pos=_e603+t.start;var _i188=new s.Parser({lexer:new s.Lexer(t),xref:this,allowStreams:!0});var _c72=void 0,l=_i188.getObj();if((0,n.isCmd)(l,\"xref\")){_c72=this.processXRefTable(_i188);this.topDict||(this.topDict=_c72);l=_c72.get(\"XRefStm\");if(_Number$isInteger(l)){var _e604=l;if(!(_e604 in this.xrefstms)){this.xrefstms[_e604]=1;this.startXRefQueue.push(_e604);}}}else{if(!_Number$isInteger(l))throw new a.FormatError(\"Invalid XRef stream header\");if(!(_Number$isInteger(_i188.getObj())&&(0,n.isCmd)(_i188.getObj(),\"obj\")&&(l=_i188.getObj())instanceof o.BaseStream))throw new a.FormatError(\"Invalid XRef stream\");_c72=this.processXRefStream(l);this.topDict||(this.topDict=_c72);if(!_c72)throw new a.FormatError(\"Failed to read XRef stream\");}l=_c72.get(\"Prev\");_Number$isInteger(l)?this.startXRefQueue.push(l):l instanceof n.Ref&&this.startXRefQueue.push(l.num);this.startXRefQueue.shift();}return this.topDict;}catch(e){if(e instanceof i.MissingDataException)throw e;(0,a.info)(\"(while reading XRef): \"+e);this.startXRefQueue.shift();}if(!e)throw new i.XRefParseException();}},{key:\"getEntry\",value:function getEntry(e){var t=_entriesInstanceProperty(this)[e];return t&&!t.free&&t.offset?t:null;}},{key:\"fetchIfRef\",value:function fetchIfRef(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e instanceof n.Ref?this.fetch(e,t):e;}},{key:\"fetch\",value:function fetch(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof n.Ref))throw new Error(\"ref object is not a reference\");var r=e.num,i=this._cacheMap.get(r);if(void 0!==i){i instanceof n.Dict&&!i.objId&&(i.objId=e.toString());return i;}var s=this.getEntry(r);if(null===s){this._cacheMap.set(r,s);return s;}if(this._pendingRefs.has(e)){this._pendingRefs.remove(e);(0,a.warn)(\"Ignoring circular reference: \".concat(e,\".\"));return n.CIRCULAR_REF;}this._pendingRefs.put(e);try{s=s.uncompressed?this.fetchUncompressed(e,s,t):this.fetchCompressed(e,s,t);this._pendingRefs.remove(e);}catch(t){this._pendingRefs.remove(e);throw t;}s instanceof n.Dict?s.objId=e.toString():s instanceof o.BaseStream&&(s.dict.objId=e.toString());return s;}},{key:\"fetchUncompressed\",value:function fetchUncompressed(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var a=e.gen;var c=e.num;if(t.gen!==a)throw new i.XRefEntryException(\"Inconsistent generation in XRef: \".concat(e));var l=this.stream.makeSubStream(t.offset+this.stream.start),h=new s.Parser({lexer:new s.Lexer(l),xref:this,allowStreams:!0}),u=h.getObj(),d=h.getObj(),f=h.getObj();if(u!==c||d!==a||!(f instanceof n.Cmd))throw new i.XRefEntryException(\"Bad (uncompressed) XRef entry: \".concat(e));if(\"obj\"!==f.cmd){var _context490;if(_startsWithInstanceProperty(_context490=f.cmd).call(_context490,\"obj\")){c=_parseInt(f.cmd.substring(3),10);if(!_Number$isNaN(c))return c;}throw new i.XRefEntryException(\"Bad (uncompressed) XRef entry: \".concat(e));}(t=this.encrypt&&!r?h.getObj(this.encrypt.createCipherTransform(c,a)):h.getObj())instanceof o.BaseStream||this._cacheMap.set(c,t);return t;}},{key:\"fetchCompressed\",value:function fetchCompressed(e,t){var r=t.offset,c=this.fetch(n.Ref.get(r,0));if(!(c instanceof o.BaseStream))throw new a.FormatError(\"bad ObjStm stream\");var l=c.dict.get(\"First\"),h=c.dict.get(\"N\");if(!_Number$isInteger(l)||!_Number$isInteger(h))throw new a.FormatError(\"invalid first and n parameters for ObjStm stream\");var u=new s.Parser({lexer:new s.Lexer(c),xref:this,allowStreams:!0});var d=new Array(h),f=new Array(h);for(var _e605=0;_e605<h;++_e605){var _t472=u.getObj();if(!_Number$isInteger(_t472))throw new a.FormatError(\"invalid object number in the ObjStm stream: \".concat(_t472));var _r375=u.getObj();if(!_Number$isInteger(_r375))throw new a.FormatError(\"invalid object offset in the ObjStm stream: \".concat(_r375));d[_e605]=_t472;f[_e605]=_r375;}var g=(c.start||0)+l,p=new Array(h);for(var _e606=0;_e606<h;++_e606){var _t473=_e606<h-1?f[_e606+1]-f[_e606]:void 0;if(_t473<0)throw new a.FormatError(\"Invalid offset in the ObjStm stream.\");u=new s.Parser({lexer:new s.Lexer(c.makeSubStream(g+f[_e606],_t473,c.dict)),xref:this,allowStreams:!0});var _n213=u.getObj();p[_e606]=_n213;if(_n213 instanceof o.BaseStream)continue;var _i189=d[_e606],_l41=_entriesInstanceProperty(this)[_i189];_l41&&_l41.offset===r&&_l41.gen===_e606&&this._cacheMap.set(_i189,_n213);}if(void 0===(t=p[t.gen]))throw new i.XRefEntryException(\"Bad (compressed) XRef entry: \".concat(e));return t;}},{key:\"fetchIfRefAsync\",value:function(){var _fetchIfRefAsync=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee61(e,t){return _regeneratorRuntime.wrap(function _callee61$(_context491){while(1)switch(_context491.prev=_context491.next){case 0:return _context491.abrupt(\"return\",e instanceof n.Ref?this.fetchAsync(e,t):e);case 1:case\"end\":return _context491.stop();}},_callee61,this);}));function fetchIfRefAsync(_x123,_x124){return _fetchIfRefAsync.apply(this,arguments);}return fetchIfRefAsync;}()},{key:\"fetchAsync\",value:function(){var _fetchAsync=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee62(e,t){return _regeneratorRuntime.wrap(function _callee62$(_context492){while(1)switch(_context492.prev=_context492.next){case 0:_context492.prev=0;return _context492.abrupt(\"return\",this.fetch(e,t));case 4:_context492.prev=4;_context492.t0=_context492[\"catch\"](0);if(_context492.t0 instanceof i.MissingDataException){_context492.next=8;break;}throw _context492.t0;case 8:_context492.next=10;return this.pdfManager.requestRange(_context492.t0.begin,_context492.t0.end);case 10:return _context492.abrupt(\"return\",this.fetchAsync(e,t));case 11:case\"end\":return _context492.stop();}},_callee62,this,[[0,4]]);}));function fetchAsync(_x125,_x126){return _fetchAsync.apply(this,arguments);}return fetchAsync;}()},{key:\"getCatalogObj\",value:function getCatalogObj(){return this.root;}}]);return XRef;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.MessageHandler=void 0;var a=r(2);var n=1,i=2,s=1,o=2,c=3,l=4,h=5,u=6,d=7,f=8;function wrapReason(e){e instanceof Error||\"object\"==_typeof(e)&&null!==e||(0,a.unreachable)('wrapReason: Expected \"reason\" to be a (possibly cloned) Error.');switch(e.name){case\"AbortException\":return new a.AbortException(e.message);case\"MissingPDFException\":return new a.MissingPDFException(e.message);case\"PasswordException\":return new a.PasswordException(e.message,e.code);case\"UnexpectedResponseException\":return new a.UnexpectedResponseException(e.message,e.status);case\"UnknownErrorException\":return new a.UnknownErrorException(e.message,e.details);default:return new a.UnknownErrorException(e.message,e.toString());}}t.MessageHandler=/*#__PURE__*/function(){function MessageHandler(e,t,r){var _this305=this;_classCallCheck(this,MessageHandler);this.sourceName=e;this.targetName=t;this.comObj=r;this.callbackId=1;this.streamId=1;this.streamSinks=Object.create(null);this.streamControllers=Object.create(null);this.callbackCapabilities=Object.create(null);this.actionHandler=Object.create(null);this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName!==_this305.sourceName)return;if(t.stream){_this305._processStreamMessage(t);return;}if(t.callback){var _e607=t.callbackId,_r376=_this305.callbackCapabilities[_e607];if(!_r376)throw new Error(\"Cannot resolve callback \".concat(_e607));delete _this305.callbackCapabilities[_e607];if(t.callback===n)_r376.resolve(t.data);else{if(t.callback!==i)throw new Error(\"Unexpected callback case\");_r376.reject(wrapReason(t.reason));}return;}var a=_this305.actionHandler[t.action];if(!a)throw new Error(\"Unknown action from worker: \".concat(t.action));if(t.callbackId){var _e608=_this305.sourceName,_s138=t.sourceName;new _Promise(function(e){e(a(t.data));}).then(function(a){r.postMessage({sourceName:_e608,targetName:_s138,callback:n,callbackId:t.callbackId,data:a});},function(a){r.postMessage({sourceName:_e608,targetName:_s138,callback:i,callbackId:t.callbackId,reason:wrapReason(a)});});}else t.streamId?_this305._createStreamSink(t):a(t.data);};r.addEventListener(\"message\",this._onComObjOnMessage);}_createClass(MessageHandler,[{key:\"on\",value:function on(e,t){var r=this.actionHandler;if(r[e])throw new Error(\"There is already an actionName called \\\"\".concat(e,\"\\\"\"));r[e]=t;}},{key:\"send\",value:function send(e,t,r){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r);}},{key:\"sendWithPromise\",value:function sendWithPromise(e,t,r){var n=this.callbackId++,i=(0,a.createPromiseCapability)();this.callbackCapabilities[n]=i;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:n,data:t},r);}catch(e){i.reject(e);}return i.promise;}},{key:\"sendWithStream\",value:function sendWithStream(e,t,r,n){var _this306=this;var i=this.streamId++,o=this.sourceName,c=this.targetName,l=this.comObj;return new ReadableStream({start:function start(r){var s=(0,a.createPromiseCapability)();_this306.streamControllers[i]={controller:r,startCall:s,pullCall:null,cancelCall:null,isClosed:!1};l.postMessage({sourceName:o,targetName:c,action:e,streamId:i,data:t,desiredSize:r.desiredSize},n);return s.promise;},pull:function pull(e){var t=(0,a.createPromiseCapability)();_this306.streamControllers[i].pullCall=t;l.postMessage({sourceName:o,targetName:c,stream:u,streamId:i,desiredSize:e.desiredSize});return t.promise;},cancel:function cancel(e){(0,a.assert)(e instanceof Error,\"cancel must have a valid reason\");var t=(0,a.createPromiseCapability)();_this306.streamControllers[i].cancelCall=t;_this306.streamControllers[i].isClosed=!0;l.postMessage({sourceName:o,targetName:c,stream:s,streamId:i,reason:wrapReason(e)});return t.promise;}},r);}},{key:\"_createStreamSink\",value:function _createStreamSink(e){var t=e.streamId,r=this.sourceName,n=e.sourceName,i=this.comObj,s=this,o=this.actionHandler[e.action],u={enqueue:function enqueue(e){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;var c=this.desiredSize;this.desiredSize-=s;if(c>0&&this.desiredSize<=0){this.sinkCapability=(0,a.createPromiseCapability)();this.ready=this.sinkCapability.promise;}i.postMessage({sourceName:r,targetName:n,stream:l,streamId:t,chunk:e},o);},close:function close(){if(!this.isCancelled){this.isCancelled=!0;i.postMessage({sourceName:r,targetName:n,stream:c,streamId:t});delete s.streamSinks[t];}},error:function error(e){(0,a.assert)(e instanceof Error,\"error must have a valid reason\");if(!this.isCancelled){this.isCancelled=!0;i.postMessage({sourceName:r,targetName:n,stream:h,streamId:t,reason:wrapReason(e)});}},sinkCapability:(0,a.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};u.sinkCapability.resolve();u.ready=u.sinkCapability.promise;this.streamSinks[t]=u;new _Promise(function(t){t(o(e.data,u));}).then(function(){i.postMessage({sourceName:r,targetName:n,stream:f,streamId:t,success:!0});},function(e){i.postMessage({sourceName:r,targetName:n,stream:f,streamId:t,reason:wrapReason(e)});});}},{key:\"_processStreamMessage\",value:function _processStreamMessage(e){var t=e.streamId,r=this.sourceName,n=e.sourceName,i=this.comObj,g=this.streamControllers[t],p=this.streamSinks[t];switch(e.stream){case f:e.success?g.startCall.resolve():g.startCall.reject(wrapReason(e.reason));break;case d:e.success?g.pullCall.resolve():g.pullCall.reject(wrapReason(e.reason));break;case u:if(!p){i.postMessage({sourceName:r,targetName:n,stream:d,streamId:t,success:!0});break;}p.desiredSize<=0&&e.desiredSize>0&&p.sinkCapability.resolve();p.desiredSize=e.desiredSize;new _Promise(function(e){e(p.onPull&&p.onPull());}).then(function(){i.postMessage({sourceName:r,targetName:n,stream:d,streamId:t,success:!0});},function(e){i.postMessage({sourceName:r,targetName:n,stream:d,streamId:t,reason:wrapReason(e)});});break;case l:(0,a.assert)(g,\"enqueue should have stream controller\");if(g.isClosed)break;g.controller.enqueue(e.chunk);break;case c:(0,a.assert)(g,\"close should have stream controller\");if(g.isClosed)break;g.isClosed=!0;g.controller.close();this._deleteStreamController(g,t);break;case h:(0,a.assert)(g,\"error should have stream controller\");g.controller.error(wrapReason(e.reason));this._deleteStreamController(g,t);break;case o:e.success?g.cancelCall.resolve():g.cancelCall.reject(wrapReason(e.reason));this._deleteStreamController(g,t);break;case s:if(!p)break;new _Promise(function(t){t(p.onCancel&&p.onCancel(wrapReason(e.reason)));}).then(function(){i.postMessage({sourceName:r,targetName:n,stream:o,streamId:t,success:!0});},function(e){i.postMessage({sourceName:r,targetName:n,stream:o,streamId:t,reason:wrapReason(e)});});p.sinkCapability.reject(wrapReason(e.reason));p.isCancelled=!0;delete this.streamSinks[t];break;default:throw new Error(\"Unexpected stream case\");}}},{key:\"_deleteStreamController\",value:function(){var _deleteStreamController2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee63(e,t){return _regeneratorRuntime.wrap(function _callee63$(_context493){while(1)switch(_context493.prev=_context493.next){case 0:_context493.next=2;return _Promise.allSettled([e.startCall&&e.startCall.promise,e.pullCall&&e.pullCall.promise,e.cancelCall&&e.cancelCall.promise]);case 2:delete this.streamControllers[t];case 3:case\"end\":return _context493.stop();}},_callee63,this);}));function _deleteStreamController(_x127,_x128){return _deleteStreamController2.apply(this,arguments);}return _deleteStreamController;}()},{key:\"destroy\",value:function destroy(){this.comObj.removeEventListener(\"message\",this._onComObjOnMessage);}}]);return MessageHandler;}();},function(e,t,r){\"use strict\";_Object$defineProperty(t,\"__esModule\",{value:!0});t.PDFWorkerStream=void 0;var a=r(2);t.PDFWorkerStream=/*#__PURE__*/function(){function PDFWorkerStream(e){_classCallCheck(this,PDFWorkerStream);this._msgHandler=e;this._contentLength=null;this._fullRequestReader=null;this._rangeRequestReaders=[];}_createClass(PDFWorkerStream,[{key:\"getFullReader\",value:function getFullReader(){(0,a.assert)(!this._fullRequestReader,\"PDFWorkerStream.getFullReader can only be called once.\");this._fullRequestReader=new PDFWorkerStreamReader(this._msgHandler);return this._fullRequestReader;}},{key:\"getRangeReader\",value:function getRangeReader(e,t){var r=new PDFWorkerStreamRangeReader(e,t,this._msgHandler);this._rangeRequestReaders.push(r);return r;}},{key:\"cancelAllRequests\",value:function cancelAllRequests(e){var _context494;this._fullRequestReader&&this._fullRequestReader.cancel(e);var _iterator181=_createForOfIteratorHelper(_sliceInstanceProperty(_context494=this._rangeRequestReaders).call(_context494,0)),_step181;try{for(_iterator181.s();!(_step181=_iterator181.n()).done;){var _t474=_step181.value;_t474.cancel(e);}}catch(err){_iterator181.e(err);}finally{_iterator181.f();}}}]);return PDFWorkerStream;}();var PDFWorkerStreamReader=/*#__PURE__*/function(){function PDFWorkerStreamReader(e){var _this307=this;_classCallCheck(this,PDFWorkerStreamReader);this._msgHandler=e;this.onProgress=null;this._contentLength=null;this._isRangeSupported=!1;this._isStreamingSupported=!1;var t=this._msgHandler.sendWithStream(\"GetReader\");this._reader=t.getReader();this._headersReady=this._msgHandler.sendWithPromise(\"ReaderHeadersReady\").then(function(e){_this307._isStreamingSupported=e.isStreamingSupported;_this307._isRangeSupported=e.isRangeSupported;_this307._contentLength=e.contentLength;});}_createClass(PDFWorkerStreamReader,[{key:\"headersReady\",get:function get(){return this._headersReady;}},{key:\"contentLength\",get:function get(){return this._contentLength;}},{key:\"isStreamingSupported\",get:function get(){return this._isStreamingSupported;}},{key:\"isRangeSupported\",get:function get(){return this._isRangeSupported;}},{key:\"read\",value:function(){var _read=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee64(){var _yield$this$_reader$r,e,t;return _regeneratorRuntime.wrap(function _callee64$(_context495){while(1)switch(_context495.prev=_context495.next){case 0:_context495.next=2;return this._reader.read();case 2:_yield$this$_reader$r=_context495.sent;e=_yield$this$_reader$r.value;t=_yield$this$_reader$r.done;return _context495.abrupt(\"return\",t?{value:void 0,done:!0}:{value:e.buffer,done:!1});case 6:case\"end\":return _context495.stop();}},_callee64,this);}));function read(){return _read.apply(this,arguments);}return read;}()},{key:\"cancel\",value:function cancel(e){this._reader.cancel(e);}}]);return PDFWorkerStreamReader;}();var PDFWorkerStreamRangeReader=/*#__PURE__*/function(){function PDFWorkerStreamRangeReader(e,t,r){_classCallCheck(this,PDFWorkerStreamRangeReader);this._msgHandler=r;this.onProgress=null;var a=this._msgHandler.sendWithStream(\"GetRangeReader\",{begin:e,end:t});this._reader=a.getReader();}_createClass(PDFWorkerStreamRangeReader,[{key:\"isStreamingSupported\",get:function get(){return!1;}},{key:\"read\",value:function(){var _read2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee65(){var _yield$this$_reader$r2,e,t;return _regeneratorRuntime.wrap(function _callee65$(_context496){while(1)switch(_context496.prev=_context496.next){case 0:_context496.next=2;return this._reader.read();case 2:_yield$this$_reader$r2=_context496.sent;e=_yield$this$_reader$r2.value;t=_yield$this$_reader$r2.done;return _context496.abrupt(\"return\",t?{value:void 0,done:!0}:{value:e.buffer,done:!1});case 6:case\"end\":return _context496.stop();}},_callee65,this);}));function read(){return _read2.apply(this,arguments);}return read;}()},{key:\"cancel\",value:function cancel(e){this._reader.cancel(e);}}]);return PDFWorkerStreamRangeReader;}();}],t={};function __w_pdfjs_require__(r){var a=t[r];if(void 0!==a)return a.exports;var n=t[r]={exports:{}};e[r](n,n.exports,__w_pdfjs_require__);return n.exports;}__w_pdfjs_require__.d=function(e,t){for(var r in t)__w_pdfjs_require__.o(t,r)&&!__w_pdfjs_require__.o(e,r)&&_Object$defineProperty(e,r,{enumerable:!0,get:t[r]});};__w_pdfjs_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t);};__w_pdfjs_require__.r=function(e){\"undefined\"!=typeof _Symbol&&_Symbol$toStringTag&&_Object$defineProperty(e,_Symbol$toStringTag,{value:\"Module\"});_Object$defineProperty(e,\"__esModule\",{value:!0});};var r={};(function(){\"use strict\";var e=r;_Object$defineProperty(e,\"__esModule\",{value:!0});_Object$defineProperty(e,\"WorkerMessageHandler\",{enumerable:!0,get:function get(){return t.WorkerMessageHandler;}});var t=__w_pdfjs_require__(1);})();return r;}();});\n\n//# sourceURL=webpack://nocode-component/../../node_modules/pdfjs-dist216/legacy/build/pdf.worker.min.js?");

/***/ }),

/***/ "../../node_modules/pdfjs-dist216/legacy/web/pdf_viewer.js":
/*!*****************************************************************!*\
  !*** ../../node_modules/pdfjs-dist216/legacy/web/pdf_viewer.js ***!
  \*****************************************************************/
/***/ (function(module, exports, __webpack_require__) {

eval("/* module decorator */ module = __webpack_require__.nmd(module);\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\");\nvar _extends = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.js\");\nvar _toConsumableArray = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js\");\nvar _get = __webpack_require__(/*! @babel/runtime-corejs3/helpers/get */ \"../../node_modules/@babel/runtime-corejs3/helpers/get.js\");\nvar _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime-corejs3/helpers/possibleConstructorReturn */ \"../../node_modules/@babel/runtime-corejs3/helpers/possibleConstructorReturn.js\");\nvar _getPrototypeOf = __webpack_require__(/*! @babel/runtime-corejs3/helpers/getPrototypeOf */ \"../../node_modules/@babel/runtime-corejs3/helpers/getPrototypeOf.js\");\nvar _inherits = __webpack_require__(/*! @babel/runtime-corejs3/helpers/inherits */ \"../../node_modules/@babel/runtime-corejs3/helpers/inherits.js\");\nvar _slicedToArray = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\");\nvar _regeneratorRuntime = __webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\");\nvar _asyncToGenerator = __webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\");\nvar _classCallCheck = __webpack_require__(/*! @babel/runtime-corejs3/helpers/classCallCheck */ \"../../node_modules/@babel/runtime-corejs3/helpers/classCallCheck.js\");\nvar _createClass = __webpack_require__(/*! @babel/runtime-corejs3/helpers/createClass */ \"../../node_modules/@babel/runtime-corejs3/helpers/createClass.js\");\nvar _globalThis = __webpack_require__(/*! @babel/runtime-corejs3/core-js/global-this */ \"../../node_modules/@babel/runtime-corejs3/core-js/global-this.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Promise = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/promise */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.js\");\nvar _WeakSet = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-set */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-set.js\");\nvar _Map = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/map.js\");\nvar _Number$isInteger = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/number/is-integer */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/number/is-integer.js\");\nvar _JSON$stringify = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/json/stringify */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/json/stringify.js\");\nvar _includesInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\");\nvar _parseFloat = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/parse-float */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/parse-float.js\");\nvar _concatInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\nvar _URLSearchParams = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/url-search-params */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/url-search-params.js\");\nvar _Set = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/set.js\");\nvar _sortInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/sort */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/sort.js\");\nvar _Math$hypot = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/math/hypot */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/math/hypot.js\");\nvar _Object$values = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/values */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/values.js\");\nvar _setTimeout = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set-timeout */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/set-timeout.js\");\nvar _Symbol$iterator2 = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/symbol/iterator */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol/iterator.js\");\nvar _keysInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/keys.js\");\nvar _indexOfInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/index-of */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js\");\nvar _mapInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\");\nvar _valuesInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/values */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/values.js\");\nvar _Object$keys = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\nvar _sliceInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js\");\nvar _filterInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\nvar _Array$from = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/array/from */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js\");\nvar _URL = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/url */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/url.js\");\nvar _spliceInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/splice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/splice.js\");\nvar _lastIndexOfInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/last-index-of */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/last-index-of.js\");\nvar _endsWithInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/ends-with */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/ends-with.js\");\nvar _reverseInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/reverse */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/reverse.js\");\nvar _startsWithInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/starts-with */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/starts-with.js\");\nvar _Number$isNaN = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/number/is-nan */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/number/is-nan.js\");\nvar _Symbol = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/symbol */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js\");\nvar _getIteratorMethod = __webpack_require__(/*! @babel/runtime-corejs3/core-js/get-iterator-method */ \"../../node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js\");\nvar _Reflect$construct = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/reflect/construct */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/reflect/construct.js\");\nvar _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\nvar _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { var _context65; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context65 = Object.prototype.toString.call(o)).call(_context65, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.to-fixed.js */ \"../../node_modules/core-js/modules/es.number.to-fixed.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.promise.js */ \"../../node_modules/core-js/modules/es.promise.js\");\n__webpack_require__(/*! core-js/modules/es.promise.finally.js */ \"../../node_modules/core-js/modules/es.promise.finally.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.constructor.js */ \"../../node_modules/core-js/modules/es.regexp.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.string.match.js */ \"../../node_modules/core-js/modules/es.string.match.js\");\n__webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\n/**\n * @licstart The following is the entire license notice for the\n * JavaScript code in this page\n *\n * Copyright 2022 Mozilla Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * @licend The above is the entire license notice for the\n * JavaScript code in this page\n */\n\n(function webpackUniversalModuleDefinition(root, factory) {\n  if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory();else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}\n})(_globalThis, function () {\n  return /******/function () {\n    // webpackBootstrap\n    /******/\n    \"use strict\";\n\n    /******/\n    var __webpack_modules__ = [\n      /* 0 */\n    , ( /* 1 */\n    /***/function (__unused_webpack_module, exports, __w_pdfjs_require__) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.DefaultXfaLayerFactory = exports.DefaultTextLayerFactory = exports.DefaultStructTreeLayerFactory = exports.DefaultAnnotationLayerFactory = exports.DefaultAnnotationEditorLayerFactory = void 0;\n      var _annotation_editor_layer_builder = __w_pdfjs_require__(2);\n      var _annotation_layer_builder = __w_pdfjs_require__(5);\n      var _l10n_utils = __w_pdfjs_require__(4);\n      var _pdf_link_service = __w_pdfjs_require__(6);\n      var _struct_tree_layer_builder = __w_pdfjs_require__(8);\n      var _text_layer_builder = __w_pdfjs_require__(9);\n      var _xfa_layer_builder = __w_pdfjs_require__(10);\n      var DefaultAnnotationLayerFactory = /*#__PURE__*/function () {\n        function DefaultAnnotationLayerFactory() {\n          _classCallCheck(this, DefaultAnnotationLayerFactory);\n        }\n        _createClass(DefaultAnnotationLayerFactory, [{\n          key: \"createAnnotationLayerBuilder\",\n          value: function createAnnotationLayerBuilder(_ref) {\n            var pageDiv = _ref.pageDiv,\n              pdfPage = _ref.pdfPage,\n              _ref$annotationStorag = _ref.annotationStorage,\n              annotationStorage = _ref$annotationStorag === void 0 ? null : _ref$annotationStorag,\n              _ref$imageResourcesPa = _ref.imageResourcesPath,\n              imageResourcesPath = _ref$imageResourcesPa === void 0 ? \"\" : _ref$imageResourcesPa,\n              _ref$renderForms = _ref.renderForms,\n              renderForms = _ref$renderForms === void 0 ? true : _ref$renderForms,\n              _ref$l10n = _ref.l10n,\n              l10n = _ref$l10n === void 0 ? _l10n_utils.NullL10n : _ref$l10n,\n              _ref$enableScripting = _ref.enableScripting,\n              enableScripting = _ref$enableScripting === void 0 ? false : _ref$enableScripting,\n              _ref$hasJSActionsProm = _ref.hasJSActionsPromise,\n              hasJSActionsPromise = _ref$hasJSActionsProm === void 0 ? null : _ref$hasJSActionsProm,\n              _ref$mouseState = _ref.mouseState,\n              mouseState = _ref$mouseState === void 0 ? null : _ref$mouseState,\n              _ref$fieldObjectsProm = _ref.fieldObjectsPromise,\n              fieldObjectsPromise = _ref$fieldObjectsProm === void 0 ? null : _ref$fieldObjectsProm,\n              _ref$annotationCanvas = _ref.annotationCanvasMap,\n              annotationCanvasMap = _ref$annotationCanvas === void 0 ? null : _ref$annotationCanvas,\n              _ref$accessibilityMan = _ref.accessibilityManager,\n              accessibilityManager = _ref$accessibilityMan === void 0 ? null : _ref$accessibilityMan;\n            return new _annotation_layer_builder.AnnotationLayerBuilder({\n              pageDiv: pageDiv,\n              pdfPage: pdfPage,\n              imageResourcesPath: imageResourcesPath,\n              renderForms: renderForms,\n              linkService: new _pdf_link_service.SimpleLinkService(),\n              l10n: l10n,\n              annotationStorage: annotationStorage,\n              enableScripting: enableScripting,\n              hasJSActionsPromise: hasJSActionsPromise,\n              fieldObjectsPromise: fieldObjectsPromise,\n              mouseState: mouseState,\n              annotationCanvasMap: annotationCanvasMap,\n              accessibilityManager: accessibilityManager\n            });\n          }\n        }]);\n        return DefaultAnnotationLayerFactory;\n      }();\n      exports.DefaultAnnotationLayerFactory = DefaultAnnotationLayerFactory;\n      var DefaultAnnotationEditorLayerFactory = /*#__PURE__*/function () {\n        function DefaultAnnotationEditorLayerFactory() {\n          _classCallCheck(this, DefaultAnnotationEditorLayerFactory);\n        }\n        _createClass(DefaultAnnotationEditorLayerFactory, [{\n          key: \"createAnnotationEditorLayerBuilder\",\n          value: function createAnnotationEditorLayerBuilder(_ref2) {\n            var _ref2$uiManager = _ref2.uiManager,\n              uiManager = _ref2$uiManager === void 0 ? null : _ref2$uiManager,\n              pageDiv = _ref2.pageDiv,\n              pdfPage = _ref2.pdfPage,\n              _ref2$accessibilityMa = _ref2.accessibilityManager,\n              accessibilityManager = _ref2$accessibilityMa === void 0 ? null : _ref2$accessibilityMa,\n              l10n = _ref2.l10n,\n              _ref2$annotationStora = _ref2.annotationStorage,\n              annotationStorage = _ref2$annotationStora === void 0 ? null : _ref2$annotationStora;\n            return new _annotation_editor_layer_builder.AnnotationEditorLayerBuilder({\n              uiManager: uiManager,\n              pageDiv: pageDiv,\n              pdfPage: pdfPage,\n              accessibilityManager: accessibilityManager,\n              l10n: l10n,\n              annotationStorage: annotationStorage\n            });\n          }\n        }]);\n        return DefaultAnnotationEditorLayerFactory;\n      }();\n      exports.DefaultAnnotationEditorLayerFactory = DefaultAnnotationEditorLayerFactory;\n      var DefaultStructTreeLayerFactory = /*#__PURE__*/function () {\n        function DefaultStructTreeLayerFactory() {\n          _classCallCheck(this, DefaultStructTreeLayerFactory);\n        }\n        _createClass(DefaultStructTreeLayerFactory, [{\n          key: \"createStructTreeLayerBuilder\",\n          value: function createStructTreeLayerBuilder(_ref3) {\n            var pdfPage = _ref3.pdfPage;\n            return new _struct_tree_layer_builder.StructTreeLayerBuilder({\n              pdfPage: pdfPage\n            });\n          }\n        }]);\n        return DefaultStructTreeLayerFactory;\n      }();\n      exports.DefaultStructTreeLayerFactory = DefaultStructTreeLayerFactory;\n      var DefaultTextLayerFactory = /*#__PURE__*/function () {\n        function DefaultTextLayerFactory() {\n          _classCallCheck(this, DefaultTextLayerFactory);\n        }\n        _createClass(DefaultTextLayerFactory, [{\n          key: \"createTextLayerBuilder\",\n          value: function createTextLayerBuilder(_ref4) {\n            var textLayerDiv = _ref4.textLayerDiv,\n              pageIndex = _ref4.pageIndex,\n              viewport = _ref4.viewport,\n              _ref4$enhanceTextSele = _ref4.enhanceTextSelection,\n              enhanceTextSelection = _ref4$enhanceTextSele === void 0 ? false : _ref4$enhanceTextSele,\n              eventBus = _ref4.eventBus,\n              highlighter = _ref4.highlighter,\n              _ref4$accessibilityMa = _ref4.accessibilityManager,\n              accessibilityManager = _ref4$accessibilityMa === void 0 ? null : _ref4$accessibilityMa;\n            return new _text_layer_builder.TextLayerBuilder({\n              textLayerDiv: textLayerDiv,\n              pageIndex: pageIndex,\n              viewport: viewport,\n              enhanceTextSelection: enhanceTextSelection,\n              eventBus: eventBus,\n              highlighter: highlighter,\n              accessibilityManager: accessibilityManager\n            });\n          }\n        }]);\n        return DefaultTextLayerFactory;\n      }();\n      exports.DefaultTextLayerFactory = DefaultTextLayerFactory;\n      var DefaultXfaLayerFactory = /*#__PURE__*/function () {\n        function DefaultXfaLayerFactory() {\n          _classCallCheck(this, DefaultXfaLayerFactory);\n        }\n        _createClass(DefaultXfaLayerFactory, [{\n          key: \"createXfaLayerBuilder\",\n          value: function createXfaLayerBuilder(_ref5) {\n            var pageDiv = _ref5.pageDiv,\n              pdfPage = _ref5.pdfPage,\n              _ref5$annotationStora = _ref5.annotationStorage,\n              annotationStorage = _ref5$annotationStora === void 0 ? null : _ref5$annotationStora;\n            return new _xfa_layer_builder.XfaLayerBuilder({\n              pageDiv: pageDiv,\n              pdfPage: pdfPage,\n              annotationStorage: annotationStorage,\n              linkService: new _pdf_link_service.SimpleLinkService()\n            });\n          }\n        }]);\n        return DefaultXfaLayerFactory;\n      }();\n      exports.DefaultXfaLayerFactory = DefaultXfaLayerFactory;\n\n      /***/\n    }), ( /* 2 */\n    /***/function (__unused_webpack_module, exports, __w_pdfjs_require__) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.AnnotationEditorLayerBuilder = void 0;\n      var _pdfjsLib = __w_pdfjs_require__(3);\n      var _l10n_utils = __w_pdfjs_require__(4);\n      function _classPrivateFieldInitSpec(obj, privateMap, value) {\n        _checkPrivateRedeclaration(obj, privateMap);\n        privateMap.set(obj, value);\n      }\n      function _checkPrivateRedeclaration(obj, privateCollection) {\n        if (privateCollection.has(obj)) {\n          throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n        }\n      }\n      function _classPrivateFieldGet(receiver, privateMap) {\n        var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"get\");\n        return _classApplyDescriptorGet(receiver, descriptor);\n      }\n      function _classApplyDescriptorGet(receiver, descriptor) {\n        if (descriptor.get) {\n          return descriptor.get.call(receiver);\n        }\n        return descriptor.value;\n      }\n      function _classPrivateFieldSet(receiver, privateMap, value) {\n        var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"set\");\n        _classApplyDescriptorSet(receiver, descriptor, value);\n        return value;\n      }\n      function _classExtractFieldDescriptor(receiver, privateMap, action) {\n        if (!privateMap.has(receiver)) {\n          throw new TypeError(\"attempted to \" + action + \" private field on non-instance\");\n        }\n        return privateMap.get(receiver);\n      }\n      function _classApplyDescriptorSet(receiver, descriptor, value) {\n        if (descriptor.set) {\n          descriptor.set.call(receiver, value);\n        } else {\n          if (!descriptor.writable) {\n            throw new TypeError(\"attempted to set read only private field\");\n          }\n          descriptor.value = value;\n        }\n      }\n      var _uiManager = /*#__PURE__*/new _WeakMap();\n      var AnnotationEditorLayerBuilder = /*#__PURE__*/function () {\n        function AnnotationEditorLayerBuilder(options) {\n          _classCallCheck(this, AnnotationEditorLayerBuilder);\n          _classPrivateFieldInitSpec(this, _uiManager, {\n            writable: true,\n            value: void 0\n          });\n          this.pageDiv = options.pageDiv;\n          this.pdfPage = options.pdfPage;\n          this.annotationStorage = options.annotationStorage || null;\n          this.accessibilityManager = options.accessibilityManager;\n          this.l10n = options.l10n || _l10n_utils.NullL10n;\n          this.annotationEditorLayer = null;\n          this.div = null;\n          this._cancelled = false;\n          _classPrivateFieldSet(this, _uiManager, options.uiManager);\n        }\n        _createClass(AnnotationEditorLayerBuilder, [{\n          key: \"render\",\n          value: function () {\n            var _render = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(viewport) {\n              var intent,\n                clonedViewport,\n                parameters,\n                _args = arguments;\n              return _regeneratorRuntime.wrap(function _callee$(_context) {\n                while (1) switch (_context.prev = _context.next) {\n                  case 0:\n                    intent = _args.length > 1 && _args[1] !== undefined ? _args[1] : \"display\";\n                    if (!(intent !== \"display\")) {\n                      _context.next = 3;\n                      break;\n                    }\n                    return _context.abrupt(\"return\");\n                  case 3:\n                    if (!this._cancelled) {\n                      _context.next = 5;\n                      break;\n                    }\n                    return _context.abrupt(\"return\");\n                  case 5:\n                    clonedViewport = viewport.clone({\n                      dontFlip: true\n                    });\n                    if (!this.div) {\n                      _context.next = 10;\n                      break;\n                    }\n                    this.annotationEditorLayer.update({\n                      viewport: clonedViewport\n                    });\n                    this.show();\n                    return _context.abrupt(\"return\");\n                  case 10:\n                    this.div = document.createElement(\"div\");\n                    this.div.className = \"annotationEditorLayer\";\n                    this.div.tabIndex = 0;\n                    this.pageDiv.append(this.div);\n                    this.annotationEditorLayer = new _pdfjsLib.AnnotationEditorLayer({\n                      uiManager: _classPrivateFieldGet(this, _uiManager),\n                      div: this.div,\n                      annotationStorage: this.annotationStorage,\n                      accessibilityManager: this.accessibilityManager,\n                      pageIndex: this.pdfPage._pageIndex,\n                      l10n: this.l10n,\n                      viewport: clonedViewport\n                    });\n                    parameters = {\n                      viewport: clonedViewport,\n                      div: this.div,\n                      annotations: null,\n                      intent: intent\n                    };\n                    this.annotationEditorLayer.render(parameters);\n                  case 17:\n                  case \"end\":\n                    return _context.stop();\n                }\n              }, _callee, this);\n            }));\n            function render(_x) {\n              return _render.apply(this, arguments);\n            }\n            return render;\n          }()\n        }, {\n          key: \"cancel\",\n          value: function cancel() {\n            this._cancelled = true;\n            this.destroy();\n          }\n        }, {\n          key: \"hide\",\n          value: function hide() {\n            if (!this.div) {\n              return;\n            }\n            this.div.hidden = true;\n          }\n        }, {\n          key: \"show\",\n          value: function show() {\n            if (!this.div) {\n              return;\n            }\n            this.div.hidden = false;\n          }\n        }, {\n          key: \"destroy\",\n          value: function destroy() {\n            if (!this.div) {\n              return;\n            }\n            this.pageDiv = null;\n            this.annotationEditorLayer.destroy();\n            this.div.remove();\n          }\n        }]);\n        return AnnotationEditorLayerBuilder;\n      }();\n      exports.AnnotationEditorLayerBuilder = AnnotationEditorLayerBuilder;\n\n      /***/\n    }), ( /* 3 */\n    /***/function (module) {\n      var pdfjsLib;\n      if (typeof window !== \"undefined\" && window[\"pdfjs-dist/build/pdf\"]) {\n        pdfjsLib = window[\"pdfjs-dist/build/pdf\"];\n      } else {\n        pdfjsLib = __webpack_require__(/*! ../build/pdf.js */ \"../../node_modules/pdfjs-dist216/legacy/build/pdf.js\");\n      }\n      module.exports = pdfjsLib;\n\n      /***/\n    }), ( /* 4 */\n    /***/function (__unused_webpack_module, exports) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.NullL10n = void 0;\n      exports.fixupLangCode = fixupLangCode;\n      exports.getL10nFallback = getL10nFallback;\n      var DEFAULT_L10N_STRINGS = {\n        of_pages: \"of {{pagesCount}}\",\n        page_of_pages: \"({{pageNumber}} of {{pagesCount}})\",\n        document_properties_kb: \"{{size_kb}} KB ({{size_b}} bytes)\",\n        document_properties_mb: \"{{size_mb}} MB ({{size_b}} bytes)\",\n        document_properties_date_string: \"{{date}}, {{time}}\",\n        document_properties_page_size_unit_inches: \"in\",\n        document_properties_page_size_unit_millimeters: \"mm\",\n        document_properties_page_size_orientation_portrait: \"portrait\",\n        document_properties_page_size_orientation_landscape: \"landscape\",\n        document_properties_page_size_name_a3: \"A3\",\n        document_properties_page_size_name_a4: \"A4\",\n        document_properties_page_size_name_letter: \"Letter\",\n        document_properties_page_size_name_legal: \"Legal\",\n        document_properties_page_size_dimension_string: \"{{width}} × {{height}} {{unit}} ({{orientation}})\",\n        document_properties_page_size_dimension_name_string: \"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})\",\n        document_properties_linearized_yes: \"Yes\",\n        document_properties_linearized_no: \"No\",\n        print_progress_percent: \"{{progress}}%\",\n        \"toggle_sidebar.title\": \"Toggle Sidebar\",\n        \"toggle_sidebar_notification2.title\": \"Toggle Sidebar (document contains outline/attachments/layers)\",\n        additional_layers: \"Additional Layers\",\n        page_landmark: \"Page {{page}}\",\n        thumb_page_title: \"Page {{page}}\",\n        thumb_page_canvas: \"Thumbnail of Page {{page}}\",\n        find_reached_top: \"Reached top of document, continued from bottom\",\n        find_reached_bottom: \"Reached end of document, continued from top\",\n        \"find_match_count[one]\": \"{{current}} of {{total}} match\",\n        \"find_match_count[other]\": \"{{current}} of {{total}} matches\",\n        \"find_match_count_limit[one]\": \"More than {{limit}} match\",\n        \"find_match_count_limit[other]\": \"More than {{limit}} matches\",\n        find_not_found: \"Phrase not found\",\n        error_version_info: \"PDF.js v{{version}} (build: {{build}})\",\n        error_message: \"Message: {{message}}\",\n        error_stack: \"Stack: {{stack}}\",\n        error_file: \"File: {{file}}\",\n        error_line: \"Line: {{line}}\",\n        rendering_error: \"An error occurred while rendering the page.\",\n        page_scale_width: \"Page Width\",\n        page_scale_fit: \"Page Fit\",\n        page_scale_auto: \"Automatic Zoom\",\n        page_scale_actual: \"Actual Size\",\n        page_scale_percent: \"{{scale}}%\",\n        loading: \"Loading…\",\n        loading_error: \"An error occurred while loading the PDF.\",\n        invalid_file_error: \"Invalid or corrupted PDF file.\",\n        missing_file_error: \"Missing PDF file.\",\n        unexpected_response_error: \"Unexpected server response.\",\n        printing_not_supported: \"Warning: Printing is not fully supported by this browser.\",\n        printing_not_ready: \"Warning: The PDF is not fully loaded for printing.\",\n        web_fonts_disabled: \"Web fonts are disabled: unable to use embedded PDF fonts.\",\n        free_text_default_content: \"Enter text…\",\n        editor_free_text_aria_label: \"FreeText Editor\",\n        editor_ink_aria_label: \"Ink Editor\",\n        editor_ink_canvas_aria_label: \"User-created image\"\n      };\n      function getL10nFallback(key, args) {\n        switch (key) {\n          case \"find_match_count\":\n            key = \"find_match_count[\".concat(args.total === 1 ? \"one\" : \"other\", \"]\");\n            break;\n          case \"find_match_count_limit\":\n            key = \"find_match_count_limit[\".concat(args.limit === 1 ? \"one\" : \"other\", \"]\");\n            break;\n        }\n        return DEFAULT_L10N_STRINGS[key] || \"\";\n      }\n      var PARTIAL_LANG_CODES = {\n        en: \"en-US\",\n        es: \"es-ES\",\n        fy: \"fy-NL\",\n        ga: \"ga-IE\",\n        gu: \"gu-IN\",\n        hi: \"hi-IN\",\n        hy: \"hy-AM\",\n        nb: \"nb-NO\",\n        ne: \"ne-NP\",\n        nn: \"nn-NO\",\n        pa: \"pa-IN\",\n        pt: \"pt-PT\",\n        sv: \"sv-SE\",\n        zh: \"zh-CN\"\n      };\n      function fixupLangCode(langCode) {\n        return PARTIAL_LANG_CODES[langCode === null || langCode === void 0 ? void 0 : langCode.toLowerCase()] || langCode;\n      }\n      function formatL10nValue(text, args) {\n        if (!args) {\n          return text;\n        }\n        return text.replace(/\\{\\{\\s*(\\w+)\\s*\\}\\}/g, function (all, name) {\n          return name in args ? args[name] : \"{{\" + name + \"}}\";\n        });\n      }\n      var NullL10n = {\n        getLanguage: function getLanguage() {\n          return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n            return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n              while (1) switch (_context2.prev = _context2.next) {\n                case 0:\n                  return _context2.abrupt(\"return\", \"en-us\");\n                case 1:\n                case \"end\":\n                  return _context2.stop();\n              }\n            }, _callee2);\n          }))();\n        },\n        getDirection: function getDirection() {\n          return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n            return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n              while (1) switch (_context3.prev = _context3.next) {\n                case 0:\n                  return _context3.abrupt(\"return\", \"ltr\");\n                case 1:\n                case \"end\":\n                  return _context3.stop();\n              }\n            }, _callee3);\n          }))();\n        },\n        get: function get(key) {\n          var _arguments = arguments;\n          return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {\n            var args, fallback;\n            return _regeneratorRuntime.wrap(function _callee4$(_context4) {\n              while (1) switch (_context4.prev = _context4.next) {\n                case 0:\n                  args = _arguments.length > 1 && _arguments[1] !== undefined ? _arguments[1] : null;\n                  fallback = _arguments.length > 2 && _arguments[2] !== undefined ? _arguments[2] : getL10nFallback(key, args);\n                  return _context4.abrupt(\"return\", formatL10nValue(fallback, args));\n                case 3:\n                case \"end\":\n                  return _context4.stop();\n              }\n            }, _callee4);\n          }))();\n        },\n        translate: function translate(element) {\n          return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {\n            return _regeneratorRuntime.wrap(function _callee5$(_context5) {\n              while (1) switch (_context5.prev = _context5.next) {\n                case 0:\n                case \"end\":\n                  return _context5.stop();\n              }\n            }, _callee5);\n          }))();\n        }\n      };\n      exports.NullL10n = NullL10n;\n\n      /***/\n    }), ( /* 5 */\n    /***/function (__unused_webpack_module, exports, __w_pdfjs_require__) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.AnnotationLayerBuilder = void 0;\n      var _pdfjsLib = __w_pdfjs_require__(3);\n      var _l10n_utils = __w_pdfjs_require__(4);\n      var AnnotationLayerBuilder = /*#__PURE__*/function () {\n        function AnnotationLayerBuilder(_ref) {\n          _classCallCheck(this, AnnotationLayerBuilder);\n          var pageDiv = _ref.pageDiv,\n            pdfPage = _ref.pdfPage,\n            linkService = _ref.linkService,\n            downloadManager = _ref.downloadManager,\n            _ref$annotationStorag2 = _ref.annotationStorage,\n            annotationStorage = _ref$annotationStorag2 === void 0 ? null : _ref$annotationStorag2,\n            _ref$imageResourcesPa2 = _ref.imageResourcesPath,\n            imageResourcesPath = _ref$imageResourcesPa2 === void 0 ? \"\" : _ref$imageResourcesPa2,\n            _ref$renderForms2 = _ref.renderForms,\n            renderForms = _ref$renderForms2 === void 0 ? true : _ref$renderForms2,\n            _ref$l10n2 = _ref.l10n,\n            l10n = _ref$l10n2 === void 0 ? _l10n_utils.NullL10n : _ref$l10n2,\n            _ref$enableScripting2 = _ref.enableScripting,\n            enableScripting = _ref$enableScripting2 === void 0 ? false : _ref$enableScripting2,\n            _ref$hasJSActionsProm2 = _ref.hasJSActionsPromise,\n            hasJSActionsPromise = _ref$hasJSActionsProm2 === void 0 ? null : _ref$hasJSActionsProm2,\n            _ref$fieldObjectsProm2 = _ref.fieldObjectsPromise,\n            fieldObjectsPromise = _ref$fieldObjectsProm2 === void 0 ? null : _ref$fieldObjectsProm2,\n            _ref$mouseState2 = _ref.mouseState,\n            mouseState = _ref$mouseState2 === void 0 ? null : _ref$mouseState2,\n            _ref$annotationCanvas2 = _ref.annotationCanvasMap,\n            annotationCanvasMap = _ref$annotationCanvas2 === void 0 ? null : _ref$annotationCanvas2,\n            _ref$accessibilityMan2 = _ref.accessibilityManager,\n            accessibilityManager = _ref$accessibilityMan2 === void 0 ? null : _ref$accessibilityMan2;\n          this.pageDiv = pageDiv;\n          this.pdfPage = pdfPage;\n          this.linkService = linkService;\n          this.downloadManager = downloadManager;\n          this.imageResourcesPath = imageResourcesPath;\n          this.renderForms = renderForms;\n          this.l10n = l10n;\n          this.annotationStorage = annotationStorage;\n          this.enableScripting = enableScripting;\n          this._hasJSActionsPromise = hasJSActionsPromise;\n          this._fieldObjectsPromise = fieldObjectsPromise;\n          this._mouseState = mouseState;\n          this._annotationCanvasMap = annotationCanvasMap;\n          this._accessibilityManager = accessibilityManager;\n          this.div = null;\n          this._cancelled = false;\n        }\n        _createClass(AnnotationLayerBuilder, [{\n          key: \"render\",\n          value: function () {\n            var _render2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(viewport) {\n              var intent,\n                _yield$Promise$all,\n                _yield$Promise$all2,\n                annotations,\n                _yield$Promise$all2$,\n                hasJSActions,\n                _yield$Promise$all2$2,\n                fieldObjects,\n                parameters,\n                _args6 = arguments;\n              return _regeneratorRuntime.wrap(function _callee6$(_context6) {\n                while (1) switch (_context6.prev = _context6.next) {\n                  case 0:\n                    intent = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : \"display\";\n                    _context6.next = 3;\n                    return _Promise.all([this.pdfPage.getAnnotations({\n                      intent: intent\n                    }), this._hasJSActionsPromise, this._fieldObjectsPromise]);\n                  case 3:\n                    _yield$Promise$all = _context6.sent;\n                    _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 3);\n                    annotations = _yield$Promise$all2[0];\n                    _yield$Promise$all2$ = _yield$Promise$all2[1];\n                    hasJSActions = _yield$Promise$all2$ === void 0 ? false : _yield$Promise$all2$;\n                    _yield$Promise$all2$2 = _yield$Promise$all2[2];\n                    fieldObjects = _yield$Promise$all2$2 === void 0 ? null : _yield$Promise$all2$2;\n                    if (!(this._cancelled || annotations.length === 0)) {\n                      _context6.next = 12;\n                      break;\n                    }\n                    return _context6.abrupt(\"return\");\n                  case 12:\n                    parameters = {\n                      viewport: viewport.clone({\n                        dontFlip: true\n                      }),\n                      div: this.div,\n                      annotations: annotations,\n                      page: this.pdfPage,\n                      imageResourcesPath: this.imageResourcesPath,\n                      renderForms: this.renderForms,\n                      linkService: this.linkService,\n                      downloadManager: this.downloadManager,\n                      annotationStorage: this.annotationStorage,\n                      enableScripting: this.enableScripting,\n                      hasJSActions: hasJSActions,\n                      fieldObjects: fieldObjects,\n                      mouseState: this._mouseState,\n                      annotationCanvasMap: this._annotationCanvasMap,\n                      accessibilityManager: this._accessibilityManager\n                    };\n                    if (this.div) {\n                      _pdfjsLib.AnnotationLayer.update(parameters);\n                    } else {\n                      this.div = document.createElement(\"div\");\n                      this.div.className = \"annotationLayer\";\n                      this.pageDiv.append(this.div);\n                      parameters.div = this.div;\n                      _pdfjsLib.AnnotationLayer.render(parameters);\n                      this.l10n.translate(this.div);\n                    }\n                  case 14:\n                  case \"end\":\n                    return _context6.stop();\n                }\n              }, _callee6, this);\n            }));\n            function render(_x2) {\n              return _render2.apply(this, arguments);\n            }\n            return render;\n          }()\n        }, {\n          key: \"cancel\",\n          value: function cancel() {\n            this._cancelled = true;\n          }\n        }, {\n          key: \"hide\",\n          value: function hide() {\n            if (!this.div) {\n              return;\n            }\n            this.div.hidden = true;\n          }\n        }]);\n        return AnnotationLayerBuilder;\n      }();\n      exports.AnnotationLayerBuilder = AnnotationLayerBuilder;\n\n      /***/\n    }), ( /* 6 */\n    /***/function (__unused_webpack_module, exports, __w_pdfjs_require__) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.SimpleLinkService = exports.PDFLinkService = exports.LinkTarget = void 0;\n      var _ui_utils = __w_pdfjs_require__(7);\n      function _classPrivateMethodInitSpec(obj, privateSet) {\n        _checkPrivateRedeclaration(obj, privateSet);\n        privateSet.add(obj);\n      }\n      function _classPrivateFieldInitSpec(obj, privateMap, value) {\n        _checkPrivateRedeclaration(obj, privateMap);\n        privateMap.set(obj, value);\n      }\n      function _checkPrivateRedeclaration(obj, privateCollection) {\n        if (privateCollection.has(obj)) {\n          throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n        }\n      }\n      function _classStaticPrivateMethodGet(receiver, classConstructor, method) {\n        _classCheckPrivateStaticAccess(receiver, classConstructor);\n        return method;\n      }\n      function _classCheckPrivateStaticAccess(receiver, classConstructor) {\n        if (receiver !== classConstructor) {\n          throw new TypeError(\"Private static access of wrong provenance\");\n        }\n      }\n      function _classPrivateMethodGet(receiver, privateSet, fn) {\n        if (!privateSet.has(receiver)) {\n          throw new TypeError(\"attempted to get private field on non-instance\");\n        }\n        return fn;\n      }\n      function _classPrivateFieldGet(receiver, privateMap) {\n        var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"get\");\n        return _classApplyDescriptorGet(receiver, descriptor);\n      }\n      function _classExtractFieldDescriptor(receiver, privateMap, action) {\n        if (!privateMap.has(receiver)) {\n          throw new TypeError(\"attempted to \" + action + \" private field on non-instance\");\n        }\n        return privateMap.get(receiver);\n      }\n      function _classApplyDescriptorGet(receiver, descriptor) {\n        if (descriptor.get) {\n          return descriptor.get.call(receiver);\n        }\n        return descriptor.value;\n      }\n      var DEFAULT_LINK_REL = \"noopener noreferrer nofollow\";\n      var LinkTarget = {\n        NONE: 0,\n        SELF: 1,\n        BLANK: 2,\n        PARENT: 3,\n        TOP: 4\n      };\n      exports.LinkTarget = LinkTarget;\n      function _addLinkAttributes(link) {\n        var _ref11 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n          url = _ref11.url,\n          target = _ref11.target,\n          rel = _ref11.rel,\n          _ref11$enabled = _ref11.enabled,\n          enabled = _ref11$enabled === void 0 ? true : _ref11$enabled;\n        if (!url || typeof url !== \"string\") {\n          throw new Error('A valid \"url\" parameter must provided.');\n        }\n        var urlNullRemoved = (0, _ui_utils.removeNullCharacters)(url);\n        if (enabled) {\n          link.href = link.title = urlNullRemoved;\n        } else {\n          link.href = \"\";\n          link.title = \"Disabled: \".concat(urlNullRemoved);\n          link.onclick = function () {\n            return false;\n          };\n        }\n        var targetStr = \"\";\n        switch (target) {\n          case LinkTarget.NONE:\n            break;\n          case LinkTarget.SELF:\n            targetStr = \"_self\";\n            break;\n          case LinkTarget.BLANK:\n            targetStr = \"_blank\";\n            break;\n          case LinkTarget.PARENT:\n            targetStr = \"_parent\";\n            break;\n          case LinkTarget.TOP:\n            targetStr = \"_top\";\n            break;\n        }\n        link.target = targetStr;\n        link.rel = typeof rel === \"string\" ? rel : DEFAULT_LINK_REL;\n      }\n      var _pagesRefCache = /*#__PURE__*/new _WeakMap();\n      var _goToDestinationHelper = /*#__PURE__*/new _WeakSet();\n      var PDFLinkService = /*#__PURE__*/function () {\n        function PDFLinkService() {\n          _classCallCheck(this, PDFLinkService);\n          var _ref12 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n            eventBus = _ref12.eventBus,\n            _ref12$externalLinkTa = _ref12.externalLinkTarget,\n            externalLinkTarget = _ref12$externalLinkTa === void 0 ? null : _ref12$externalLinkTa,\n            _ref12$externalLinkRe = _ref12.externalLinkRel,\n            externalLinkRel = _ref12$externalLinkRe === void 0 ? null : _ref12$externalLinkRe,\n            _ref12$ignoreDestinat = _ref12.ignoreDestinationZoom,\n            ignoreDestinationZoom = _ref12$ignoreDestinat === void 0 ? false : _ref12$ignoreDestinat;\n          _classPrivateMethodInitSpec(this, _goToDestinationHelper);\n          _classPrivateFieldInitSpec(this, _pagesRefCache, {\n            writable: true,\n            value: new _Map()\n          });\n          this.eventBus = eventBus;\n          this.externalLinkTarget = externalLinkTarget;\n          this.externalLinkRel = externalLinkRel;\n          this.externalLinkEnabled = true;\n          this._ignoreDestinationZoom = ignoreDestinationZoom;\n          this.baseUrl = null;\n          this.pdfDocument = null;\n          this.pdfViewer = null;\n          this.pdfHistory = null;\n        }\n        _createClass(PDFLinkService, [{\n          key: \"setDocument\",\n          value: function setDocument(pdfDocument) {\n            var baseUrl = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n            this.baseUrl = baseUrl;\n            this.pdfDocument = pdfDocument;\n            _classPrivateFieldGet(this, _pagesRefCache).clear();\n          }\n        }, {\n          key: \"setViewer\",\n          value: function setViewer(pdfViewer) {\n            this.pdfViewer = pdfViewer;\n          }\n        }, {\n          key: \"setHistory\",\n          value: function setHistory(pdfHistory) {\n            this.pdfHistory = pdfHistory;\n          }\n        }, {\n          key: \"pagesCount\",\n          get: function get() {\n            return this.pdfDocument ? this.pdfDocument.numPages : 0;\n          }\n        }, {\n          key: \"page\",\n          get: function get() {\n            return this.pdfViewer.currentPageNumber;\n          },\n          set: function set(value) {\n            this.pdfViewer.currentPageNumber = value;\n          }\n        }, {\n          key: \"rotation\",\n          get: function get() {\n            return this.pdfViewer.pagesRotation;\n          },\n          set: function set(value) {\n            this.pdfViewer.pagesRotation = value;\n          }\n        }, {\n          key: \"goToDestination\",\n          value: function () {\n            var _goToDestination = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(dest) {\n              var namedDest, explicitDest;\n              return _regeneratorRuntime.wrap(function _callee7$(_context7) {\n                while (1) switch (_context7.prev = _context7.next) {\n                  case 0:\n                    if (this.pdfDocument) {\n                      _context7.next = 2;\n                      break;\n                    }\n                    return _context7.abrupt(\"return\");\n                  case 2:\n                    if (!(typeof dest === \"string\")) {\n                      _context7.next = 9;\n                      break;\n                    }\n                    namedDest = dest;\n                    _context7.next = 6;\n                    return this.pdfDocument.getDestination(dest);\n                  case 6:\n                    explicitDest = _context7.sent;\n                    _context7.next = 13;\n                    break;\n                  case 9:\n                    namedDest = null;\n                    _context7.next = 12;\n                    return dest;\n                  case 12:\n                    explicitDest = _context7.sent;\n                  case 13:\n                    if (Array.isArray(explicitDest)) {\n                      _context7.next = 16;\n                      break;\n                    }\n                    console.error(\"PDFLinkService.goToDestination: \\\"\".concat(explicitDest, \"\\\" is not \") + \"a valid destination array, for dest=\\\"\".concat(dest, \"\\\".\"));\n                    return _context7.abrupt(\"return\");\n                  case 16:\n                    _classPrivateMethodGet(this, _goToDestinationHelper, _goToDestinationHelper2).call(this, dest, namedDest, explicitDest);\n                  case 17:\n                  case \"end\":\n                    return _context7.stop();\n                }\n              }, _callee7, this);\n            }));\n            function goToDestination(_x3) {\n              return _goToDestination.apply(this, arguments);\n            }\n            return goToDestination;\n          }()\n        }, {\n          key: \"goToPage\",\n          value: function goToPage(val) {\n            if (!this.pdfDocument) {\n              return;\n            }\n            var pageNumber = typeof val === \"string\" && this.pdfViewer.pageLabelToPageNumber(val) || val | 0;\n            if (!(_Number$isInteger(pageNumber) && pageNumber > 0 && pageNumber <= this.pagesCount)) {\n              console.error(\"PDFLinkService.goToPage: \\\"\".concat(val, \"\\\" is not a valid page.\"));\n              return;\n            }\n            if (this.pdfHistory) {\n              this.pdfHistory.pushCurrentPosition();\n              this.pdfHistory.pushPage(pageNumber);\n            }\n            this.pdfViewer.scrollPageIntoView({\n              pageNumber: pageNumber\n            });\n          }\n        }, {\n          key: \"addLinkAttributes\",\n          value: function addLinkAttributes(link, url) {\n            var newWindow = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n            _addLinkAttributes(link, {\n              url: url,\n              target: newWindow ? LinkTarget.BLANK : this.externalLinkTarget,\n              rel: this.externalLinkRel,\n              enabled: this.externalLinkEnabled\n            });\n          }\n        }, {\n          key: \"getDestinationHash\",\n          value: function getDestinationHash(dest) {\n            if (typeof dest === \"string\") {\n              if (dest.length > 0) {\n                return this.getAnchorUrl(\"#\" + escape(dest));\n              }\n            } else if (Array.isArray(dest)) {\n              var str = _JSON$stringify(dest);\n              if (str.length > 0) {\n                return this.getAnchorUrl(\"#\" + escape(str));\n              }\n            }\n            return this.getAnchorUrl(\"\");\n          }\n        }, {\n          key: \"getAnchorUrl\",\n          value: function getAnchorUrl(anchor) {\n            return (this.baseUrl || \"\") + anchor;\n          }\n        }, {\n          key: \"setHash\",\n          value: function setHash(hash) {\n            if (!this.pdfDocument) {\n              return;\n            }\n            var pageNumber, dest;\n            if (_includesInstanceProperty(hash).call(hash, \"=\")) {\n              var params = (0, _ui_utils.parseQueryString)(hash);\n              if (params.has(\"search\")) {\n                this.eventBus.dispatch(\"findfromurlhash\", {\n                  source: this,\n                  query: params.get(\"search\").replace(/\"/g, \"\"),\n                  phraseSearch: params.get(\"phrase\") === \"true\"\n                });\n              }\n              if (params.has(\"page\")) {\n                pageNumber = params.get(\"page\") | 0 || 1;\n              }\n              if (params.has(\"zoom\")) {\n                var zoomArgs = params.get(\"zoom\").split(\",\");\n                var zoomArg = zoomArgs[0];\n                var zoomArgNumber = _parseFloat(zoomArg);\n                if (!_includesInstanceProperty(zoomArg).call(zoomArg, \"Fit\")) {\n                  dest = [null, {\n                    name: \"XYZ\"\n                  }, zoomArgs.length > 1 ? zoomArgs[1] | 0 : null, zoomArgs.length > 2 ? zoomArgs[2] | 0 : null, zoomArgNumber ? zoomArgNumber / 100 : zoomArg];\n                } else {\n                  if (zoomArg === \"Fit\" || zoomArg === \"FitB\") {\n                    dest = [null, {\n                      name: zoomArg\n                    }];\n                  } else if (zoomArg === \"FitH\" || zoomArg === \"FitBH\" || zoomArg === \"FitV\" || zoomArg === \"FitBV\") {\n                    dest = [null, {\n                      name: zoomArg\n                    }, zoomArgs.length > 1 ? zoomArgs[1] | 0 : null];\n                  } else if (zoomArg === \"FitR\") {\n                    if (zoomArgs.length !== 5) {\n                      console.error('PDFLinkService.setHash: Not enough parameters for \"FitR\".');\n                    } else {\n                      dest = [null, {\n                        name: zoomArg\n                      }, zoomArgs[1] | 0, zoomArgs[2] | 0, zoomArgs[3] | 0, zoomArgs[4] | 0];\n                    }\n                  } else {\n                    console.error(\"PDFLinkService.setHash: \\\"\".concat(zoomArg, \"\\\" is not a valid zoom value.\"));\n                  }\n                }\n              }\n              if (dest) {\n                this.pdfViewer.scrollPageIntoView({\n                  pageNumber: pageNumber || this.page,\n                  destArray: dest,\n                  allowNegativeOffset: true\n                });\n              } else if (pageNumber) {\n                this.page = pageNumber;\n              }\n              if (params.has(\"pagemode\")) {\n                this.eventBus.dispatch(\"pagemode\", {\n                  source: this,\n                  mode: params.get(\"pagemode\")\n                });\n              }\n              if (params.has(\"nameddest\")) {\n                this.goToDestination(params.get(\"nameddest\"));\n              }\n            } else {\n              dest = unescape(hash);\n              try {\n                dest = JSON.parse(dest);\n                if (!Array.isArray(dest)) {\n                  dest = dest.toString();\n                }\n              } catch (ex) {}\n              if (typeof dest === \"string\" || _classStaticPrivateMethodGet(PDFLinkService, PDFLinkService, _isValidExplicitDestination).call(PDFLinkService, dest)) {\n                this.goToDestination(dest);\n                return;\n              }\n              console.error(\"PDFLinkService.setHash: \\\"\".concat(unescape(hash), \"\\\" is not a valid destination.\"));\n            }\n          }\n        }, {\n          key: \"executeNamedAction\",\n          value: function executeNamedAction(action) {\n            var _this$pdfHistory, _this$pdfHistory2;\n            switch (action) {\n              case \"GoBack\":\n                (_this$pdfHistory = this.pdfHistory) === null || _this$pdfHistory === void 0 ? void 0 : _this$pdfHistory.back();\n                break;\n              case \"GoForward\":\n                (_this$pdfHistory2 = this.pdfHistory) === null || _this$pdfHistory2 === void 0 ? void 0 : _this$pdfHistory2.forward();\n                break;\n              case \"NextPage\":\n                this.pdfViewer.nextPage();\n                break;\n              case \"PrevPage\":\n                this.pdfViewer.previousPage();\n                break;\n              case \"LastPage\":\n                this.page = this.pagesCount;\n                break;\n              case \"FirstPage\":\n                this.page = 1;\n                break;\n              default:\n                break;\n            }\n            this.eventBus.dispatch(\"namedaction\", {\n              source: this,\n              action: action\n            });\n          }\n        }, {\n          key: \"cachePageRef\",\n          value: function cachePageRef(pageNum, pageRef) {\n            var _context8;\n            if (!pageRef) {\n              return;\n            }\n            var refStr = pageRef.gen === 0 ? \"\".concat(pageRef.num, \"R\") : _concatInstanceProperty(_context8 = \"\".concat(pageRef.num, \"R\")).call(_context8, pageRef.gen);\n            _classPrivateFieldGet(this, _pagesRefCache).set(refStr, pageNum);\n          }\n        }, {\n          key: \"_cachedPageNumber\",\n          value: function _cachedPageNumber(pageRef) {\n            var _context9;\n            if (!pageRef) {\n              return null;\n            }\n            var refStr = pageRef.gen === 0 ? \"\".concat(pageRef.num, \"R\") : _concatInstanceProperty(_context9 = \"\".concat(pageRef.num, \"R\")).call(_context9, pageRef.gen);\n            return _classPrivateFieldGet(this, _pagesRefCache).get(refStr) || null;\n          }\n        }, {\n          key: \"isPageVisible\",\n          value: function isPageVisible(pageNumber) {\n            return this.pdfViewer.isPageVisible(pageNumber);\n          }\n        }, {\n          key: \"isPageCached\",\n          value: function isPageCached(pageNumber) {\n            return this.pdfViewer.isPageCached(pageNumber);\n          }\n        }]);\n        return PDFLinkService;\n      }();\n      exports.PDFLinkService = PDFLinkService;\n      function _goToDestinationHelper2(rawDest) {\n        var _this2 = this;\n        var namedDest = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n        var explicitDest = arguments.length > 2 ? arguments[2] : undefined;\n        var destRef = explicitDest[0];\n        var pageNumber;\n        if (_typeof(destRef) === \"object\" && destRef !== null) {\n          pageNumber = this._cachedPageNumber(destRef);\n          if (!pageNumber) {\n            this.pdfDocument.getPageIndex(destRef).then(function (pageIndex) {\n              _this2.cachePageRef(pageIndex + 1, destRef);\n              _classPrivateMethodGet(_this2, _goToDestinationHelper, _goToDestinationHelper2).call(_this2, rawDest, namedDest, explicitDest);\n            }).catch(function () {\n              console.error(\"PDFLinkService.#goToDestinationHelper: \\\"\".concat(destRef, \"\\\" is not \") + \"a valid page reference, for dest=\\\"\".concat(rawDest, \"\\\".\"));\n            });\n            return;\n          }\n        } else if (_Number$isInteger(destRef)) {\n          pageNumber = destRef + 1;\n        } else {\n          console.error(\"PDFLinkService.#goToDestinationHelper: \\\"\".concat(destRef, \"\\\" is not \") + \"a valid destination reference, for dest=\\\"\".concat(rawDest, \"\\\".\"));\n          return;\n        }\n        if (!pageNumber || pageNumber < 1 || pageNumber > this.pagesCount) {\n          console.error(\"PDFLinkService.#goToDestinationHelper: \\\"\".concat(pageNumber, \"\\\" is not \") + \"a valid page number, for dest=\\\"\".concat(rawDest, \"\\\".\"));\n          return;\n        }\n        if (this.pdfHistory) {\n          this.pdfHistory.pushCurrentPosition();\n          this.pdfHistory.push({\n            namedDest: namedDest,\n            explicitDest: explicitDest,\n            pageNumber: pageNumber\n          });\n        }\n        this.pdfViewer.scrollPageIntoView({\n          pageNumber: pageNumber,\n          destArray: explicitDest,\n          ignoreDestinationZoom: this._ignoreDestinationZoom\n        });\n      }\n      function _isValidExplicitDestination(dest) {\n        if (!Array.isArray(dest)) {\n          return false;\n        }\n        var destLength = dest.length;\n        if (destLength < 2) {\n          return false;\n        }\n        var page = dest[0];\n        if (!(_typeof(page) === \"object\" && _Number$isInteger(page.num) && _Number$isInteger(page.gen)) && !(_Number$isInteger(page) && page >= 0)) {\n          return false;\n        }\n        var zoom = dest[1];\n        if (!(_typeof(zoom) === \"object\" && typeof zoom.name === \"string\")) {\n          return false;\n        }\n        var allowNull = true;\n        switch (zoom.name) {\n          case \"XYZ\":\n            if (destLength !== 5) {\n              return false;\n            }\n            break;\n          case \"Fit\":\n          case \"FitB\":\n            return destLength === 2;\n          case \"FitH\":\n          case \"FitBH\":\n          case \"FitV\":\n          case \"FitBV\":\n            if (destLength !== 3) {\n              return false;\n            }\n            break;\n          case \"FitR\":\n            if (destLength !== 6) {\n              return false;\n            }\n            allowNull = false;\n            break;\n          default:\n            return false;\n        }\n        for (var i = 2; i < destLength; i++) {\n          var param = dest[i];\n          if (!(typeof param === \"number\" || allowNull && param === null)) {\n            return false;\n          }\n        }\n        return true;\n      }\n      var SimpleLinkService = /*#__PURE__*/function () {\n        function SimpleLinkService() {\n          _classCallCheck(this, SimpleLinkService);\n          this.externalLinkEnabled = true;\n        }\n        _createClass(SimpleLinkService, [{\n          key: \"pagesCount\",\n          get: function get() {\n            return 0;\n          }\n        }, {\n          key: \"page\",\n          get: function get() {\n            return 0;\n          },\n          set: function set(value) {}\n        }, {\n          key: \"rotation\",\n          get: function get() {\n            return 0;\n          },\n          set: function set(value) {}\n        }, {\n          key: \"goToDestination\",\n          value: function () {\n            var _goToDestination2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(dest) {\n              return _regeneratorRuntime.wrap(function _callee8$(_context10) {\n                while (1) switch (_context10.prev = _context10.next) {\n                  case 0:\n                  case \"end\":\n                    return _context10.stop();\n                }\n              }, _callee8);\n            }));\n            function goToDestination(_x4) {\n              return _goToDestination2.apply(this, arguments);\n            }\n            return goToDestination;\n          }()\n        }, {\n          key: \"goToPage\",\n          value: function goToPage(val) {}\n        }, {\n          key: \"addLinkAttributes\",\n          value: function addLinkAttributes(link, url) {\n            var newWindow = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n            _addLinkAttributes(link, {\n              url: url,\n              enabled: this.externalLinkEnabled\n            });\n          }\n        }, {\n          key: \"getDestinationHash\",\n          value: function getDestinationHash(dest) {\n            return \"#\";\n          }\n        }, {\n          key: \"getAnchorUrl\",\n          value: function getAnchorUrl(hash) {\n            return \"#\";\n          }\n        }, {\n          key: \"setHash\",\n          value: function setHash(hash) {}\n        }, {\n          key: \"executeNamedAction\",\n          value: function executeNamedAction(action) {}\n        }, {\n          key: \"cachePageRef\",\n          value: function cachePageRef(pageNum, pageRef) {}\n        }, {\n          key: \"isPageVisible\",\n          value: function isPageVisible(pageNumber) {\n            return true;\n          }\n        }, {\n          key: \"isPageCached\",\n          value: function isPageCached(pageNumber) {\n            return true;\n          }\n        }]);\n        return SimpleLinkService;\n      }();\n      exports.SimpleLinkService = SimpleLinkService;\n\n      /***/\n    }), ( /* 7 */\n    /***/function (__unused_webpack_module, exports) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.animationStarted = exports.VERTICAL_PADDING = exports.UNKNOWN_SCALE = exports.TextLayerMode = exports.SpreadMode = exports.SidebarView = exports.ScrollMode = exports.SCROLLBAR_PADDING = exports.RenderingStates = exports.RendererType = exports.ProgressBar = exports.PresentationModeState = exports.OutputScale = exports.MIN_SCALE = exports.MAX_SCALE = exports.MAX_AUTO_SCALE = exports.DEFAULT_SCALE_VALUE = exports.DEFAULT_SCALE_DELTA = exports.DEFAULT_SCALE = exports.AutoPrintRegExp = void 0;\n      exports.apiPageLayoutToViewerModes = apiPageLayoutToViewerModes;\n      exports.apiPageModeToSidebarView = apiPageModeToSidebarView;\n      exports.approximateFraction = approximateFraction;\n      exports.backtrackBeforeAllVisibleElements = backtrackBeforeAllVisibleElements;\n      exports.binarySearchFirstItem = binarySearchFirstItem;\n      exports.docStyle = void 0;\n      exports.getActiveOrFocusedElement = getActiveOrFocusedElement;\n      exports.getPageSizeInches = getPageSizeInches;\n      exports.getVisibleElements = getVisibleElements;\n      exports.isPortraitOrientation = isPortraitOrientation;\n      exports.isValidRotation = isValidRotation;\n      exports.isValidScrollMode = isValidScrollMode;\n      exports.isValidSpreadMode = isValidSpreadMode;\n      exports.noContextMenuHandler = noContextMenuHandler;\n      exports.normalizeWheelEventDelta = normalizeWheelEventDelta;\n      exports.normalizeWheelEventDirection = normalizeWheelEventDirection;\n      exports.parseQueryString = parseQueryString;\n      exports.removeNullCharacters = removeNullCharacters;\n      exports.roundToDivide = roundToDivide;\n      exports.scrollIntoView = scrollIntoView;\n      exports.watchScroll = watchScroll;\n      function _classPrivateFieldInitSpec(obj, privateMap, value) {\n        _checkPrivateRedeclaration(obj, privateMap);\n        privateMap.set(obj, value);\n      }\n      function _checkPrivateRedeclaration(obj, privateCollection) {\n        if (privateCollection.has(obj)) {\n          throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n        }\n      }\n      function _classPrivateFieldGet(receiver, privateMap) {\n        var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"get\");\n        return _classApplyDescriptorGet(receiver, descriptor);\n      }\n      function _classApplyDescriptorGet(receiver, descriptor) {\n        if (descriptor.get) {\n          return descriptor.get.call(receiver);\n        }\n        return descriptor.value;\n      }\n      function _classPrivateFieldSet(receiver, privateMap, value) {\n        var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"set\");\n        _classApplyDescriptorSet(receiver, descriptor, value);\n        return value;\n      }\n      function _classExtractFieldDescriptor(receiver, privateMap, action) {\n        if (!privateMap.has(receiver)) {\n          throw new TypeError(\"attempted to \" + action + \" private field on non-instance\");\n        }\n        return privateMap.get(receiver);\n      }\n      function _classApplyDescriptorSet(receiver, descriptor, value) {\n        if (descriptor.set) {\n          descriptor.set.call(receiver, value);\n        } else {\n          if (!descriptor.writable) {\n            throw new TypeError(\"attempted to set read only private field\");\n          }\n          descriptor.value = value;\n        }\n      }\n      var DEFAULT_SCALE_VALUE = \"auto\";\n      exports.DEFAULT_SCALE_VALUE = DEFAULT_SCALE_VALUE;\n      var DEFAULT_SCALE = 1.0;\n      exports.DEFAULT_SCALE = DEFAULT_SCALE;\n      var DEFAULT_SCALE_DELTA = 1.1;\n      exports.DEFAULT_SCALE_DELTA = DEFAULT_SCALE_DELTA;\n      var MIN_SCALE = 0.1;\n      exports.MIN_SCALE = MIN_SCALE;\n      var MAX_SCALE = 10.0;\n      exports.MAX_SCALE = MAX_SCALE;\n      var UNKNOWN_SCALE = 0;\n      exports.UNKNOWN_SCALE = UNKNOWN_SCALE;\n      var MAX_AUTO_SCALE = 1.25;\n      exports.MAX_AUTO_SCALE = MAX_AUTO_SCALE;\n      var SCROLLBAR_PADDING = 40;\n      exports.SCROLLBAR_PADDING = SCROLLBAR_PADDING;\n      var VERTICAL_PADDING = 5;\n      exports.VERTICAL_PADDING = VERTICAL_PADDING;\n      var RenderingStates = {\n        INITIAL: 0,\n        RUNNING: 1,\n        PAUSED: 2,\n        FINISHED: 3\n      };\n      exports.RenderingStates = RenderingStates;\n      var PresentationModeState = {\n        UNKNOWN: 0,\n        NORMAL: 1,\n        CHANGING: 2,\n        FULLSCREEN: 3\n      };\n      exports.PresentationModeState = PresentationModeState;\n      var SidebarView = {\n        UNKNOWN: -1,\n        NONE: 0,\n        THUMBS: 1,\n        OUTLINE: 2,\n        ATTACHMENTS: 3,\n        LAYERS: 4\n      };\n      exports.SidebarView = SidebarView;\n      var RendererType = {\n        CANVAS: \"canvas\",\n        SVG: \"svg\"\n      };\n      exports.RendererType = RendererType;\n      var TextLayerMode = {\n        DISABLE: 0,\n        ENABLE: 1,\n        ENABLE_ENHANCE: 2\n      };\n      exports.TextLayerMode = TextLayerMode;\n      var ScrollMode = {\n        UNKNOWN: -1,\n        VERTICAL: 0,\n        HORIZONTAL: 1,\n        WRAPPED: 2,\n        PAGE: 3\n      };\n      exports.ScrollMode = ScrollMode;\n      var SpreadMode = {\n        UNKNOWN: -1,\n        NONE: 0,\n        ODD: 1,\n        EVEN: 2\n      };\n      exports.SpreadMode = SpreadMode;\n      var AutoPrintRegExp = /\\bprint\\s*\\(/;\n      exports.AutoPrintRegExp = AutoPrintRegExp;\n      var OutputScale = /*#__PURE__*/function () {\n        function OutputScale() {\n          _classCallCheck(this, OutputScale);\n          var pixelRatio = window.devicePixelRatio || 1;\n          this.sx = pixelRatio;\n          this.sy = pixelRatio;\n        }\n        _createClass(OutputScale, [{\n          key: \"scaled\",\n          get: function get() {\n            return this.sx !== 1 || this.sy !== 1;\n          }\n        }]);\n        return OutputScale;\n      }();\n      exports.OutputScale = OutputScale;\n      function scrollIntoView(element, spot) {\n        var scrollMatches = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n        var parent = element.offsetParent;\n        if (!parent) {\n          console.error(\"offsetParent is not set -- cannot scroll\");\n          return;\n        }\n        var offsetY = element.offsetTop + element.clientTop;\n        var offsetX = element.offsetLeft + element.clientLeft;\n        while (parent.clientHeight === parent.scrollHeight && parent.clientWidth === parent.scrollWidth || scrollMatches && (parent.classList.contains(\"markedContent\") || getComputedStyle(parent).overflow === \"hidden\")) {\n          offsetY += parent.offsetTop;\n          offsetX += parent.offsetLeft;\n          parent = parent.offsetParent;\n          if (!parent) {\n            return;\n          }\n        }\n        if (spot) {\n          if (spot.top !== undefined) {\n            offsetY += spot.top;\n          }\n          if (spot.left !== undefined) {\n            offsetX += spot.left;\n            parent.scrollLeft = offsetX;\n          }\n        }\n        parent.scrollTop = offsetY;\n      }\n      function watchScroll(viewAreaElement, callback) {\n        var debounceScroll = function debounceScroll(evt) {\n          if (rAF) {\n            return;\n          }\n          rAF = window.requestAnimationFrame(function viewAreaElementScrolled() {\n            rAF = null;\n            var currentX = viewAreaElement.scrollLeft;\n            var lastX = state.lastX;\n            if (currentX !== lastX) {\n              state.right = currentX > lastX;\n            }\n            state.lastX = currentX;\n            var currentY = viewAreaElement.scrollTop;\n            var lastY = state.lastY;\n            if (currentY !== lastY) {\n              state.down = currentY > lastY;\n            }\n            state.lastY = currentY;\n            callback(state);\n          });\n        };\n        var state = {\n          right: true,\n          down: true,\n          lastX: viewAreaElement.scrollLeft,\n          lastY: viewAreaElement.scrollTop,\n          _eventHandler: debounceScroll\n        };\n        var rAF = null;\n        viewAreaElement.addEventListener(\"scroll\", debounceScroll, true);\n        return state;\n      }\n      function parseQueryString(query) {\n        var params = new _Map();\n        var _iterator = _createForOfIteratorHelper(new _URLSearchParams(query)),\n          _step;\n        try {\n          for (_iterator.s(); !(_step = _iterator.n()).done;) {\n            var _step$value = _slicedToArray(_step.value, 2),\n              key = _step$value[0],\n              value = _step$value[1];\n            params.set(key.toLowerCase(), value);\n          }\n        } catch (err) {\n          _iterator.e(err);\n        } finally {\n          _iterator.f();\n        }\n        return params;\n      }\n      var NullCharactersRegExp = /\\x00/g;\n      var InvisibleCharactersRegExp = /[\\x01-\\x1F]/g;\n      function removeNullCharacters(str) {\n        var replaceInvisible = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n        if (typeof str !== \"string\") {\n          console.error(\"The argument must be a string.\");\n          return str;\n        }\n        if (replaceInvisible) {\n          str = str.replace(InvisibleCharactersRegExp, \" \");\n        }\n        return str.replace(NullCharactersRegExp, \"\");\n      }\n      function binarySearchFirstItem(items, condition) {\n        var start = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n        var minIndex = start;\n        var maxIndex = items.length - 1;\n        if (maxIndex < 0 || !condition(items[maxIndex])) {\n          return items.length;\n        }\n        if (condition(items[minIndex])) {\n          return minIndex;\n        }\n        while (minIndex < maxIndex) {\n          var currentIndex = minIndex + maxIndex >> 1;\n          var currentItem = items[currentIndex];\n          if (condition(currentItem)) {\n            maxIndex = currentIndex;\n          } else {\n            minIndex = currentIndex + 1;\n          }\n        }\n        return minIndex;\n      }\n      function approximateFraction(x) {\n        if (Math.floor(x) === x) {\n          return [x, 1];\n        }\n        var xinv = 1 / x;\n        var limit = 8;\n        if (xinv > limit) {\n          return [1, limit];\n        } else if (Math.floor(xinv) === xinv) {\n          return [1, xinv];\n        }\n        var x_ = x > 1 ? xinv : x;\n        var a = 0,\n          b = 1,\n          c = 1,\n          d = 1;\n        while (true) {\n          var p = a + c,\n            q = b + d;\n          if (q > limit) {\n            break;\n          }\n          if (x_ <= p / q) {\n            c = p;\n            d = q;\n          } else {\n            a = p;\n            b = q;\n          }\n        }\n        var result;\n        if (x_ - a / b < c / d - x_) {\n          result = x_ === x ? [a, b] : [b, a];\n        } else {\n          result = x_ === x ? [c, d] : [d, c];\n        }\n        return result;\n      }\n      function roundToDivide(x, div) {\n        var r = x % div;\n        return r === 0 ? x : Math.round(x - r + div);\n      }\n      function getPageSizeInches(_ref) {\n        var view = _ref.view,\n          userUnit = _ref.userUnit,\n          rotate = _ref.rotate;\n        var _view = _slicedToArray(view, 4),\n          x1 = _view[0],\n          y1 = _view[1],\n          x2 = _view[2],\n          y2 = _view[3];\n        var changeOrientation = rotate % 180 !== 0;\n        var width = (x2 - x1) / 72 * userUnit;\n        var height = (y2 - y1) / 72 * userUnit;\n        return {\n          width: changeOrientation ? height : width,\n          height: changeOrientation ? width : height\n        };\n      }\n      function backtrackBeforeAllVisibleElements(index, views, top) {\n        if (index < 2) {\n          return index;\n        }\n        var elt = views[index].div;\n        var pageTop = elt.offsetTop + elt.clientTop;\n        if (pageTop >= top) {\n          elt = views[index - 1].div;\n          pageTop = elt.offsetTop + elt.clientTop;\n        }\n        for (var i = index - 2; i >= 0; --i) {\n          elt = views[i].div;\n          if (elt.offsetTop + elt.clientTop + elt.clientHeight <= pageTop) {\n            break;\n          }\n          index = i;\n        }\n        return index;\n      }\n      function getVisibleElements(_ref2) {\n        var scrollEl = _ref2.scrollEl,\n          views = _ref2.views,\n          _ref2$sortByVisibilit = _ref2.sortByVisibility,\n          sortByVisibility = _ref2$sortByVisibilit === void 0 ? false : _ref2$sortByVisibilit,\n          _ref2$horizontal = _ref2.horizontal,\n          horizontal = _ref2$horizontal === void 0 ? false : _ref2$horizontal,\n          _ref2$rtl = _ref2.rtl,\n          rtl = _ref2$rtl === void 0 ? false : _ref2$rtl;\n        var top = scrollEl.scrollTop,\n          bottom = top + scrollEl.clientHeight;\n        var left = scrollEl.scrollLeft,\n          right = left + scrollEl.clientWidth;\n        function isElementBottomAfterViewTop(view) {\n          var element = view.div;\n          var elementBottom = element.offsetTop + element.clientTop + element.clientHeight;\n          return elementBottom > top;\n        }\n        function isElementNextAfterViewHorizontally(view) {\n          var element = view.div;\n          var elementLeft = element.offsetLeft + element.clientLeft;\n          var elementRight = elementLeft + element.clientWidth;\n          return rtl ? elementLeft < right : elementRight > left;\n        }\n        var visible = [],\n          ids = new _Set(),\n          numViews = views.length;\n        var firstVisibleElementInd = binarySearchFirstItem(views, horizontal ? isElementNextAfterViewHorizontally : isElementBottomAfterViewTop);\n        if (firstVisibleElementInd > 0 && firstVisibleElementInd < numViews && !horizontal) {\n          firstVisibleElementInd = backtrackBeforeAllVisibleElements(firstVisibleElementInd, views, top);\n        }\n        var lastEdge = horizontal ? right : -1;\n        for (var i = firstVisibleElementInd; i < numViews; i++) {\n          var view = views[i],\n            element = view.div;\n          var currentWidth = element.offsetLeft + element.clientLeft;\n          var currentHeight = element.offsetTop + element.clientTop;\n          var viewWidth = element.clientWidth,\n            viewHeight = element.clientHeight;\n          var viewRight = currentWidth + viewWidth;\n          var viewBottom = currentHeight + viewHeight;\n          if (lastEdge === -1) {\n            if (viewBottom >= bottom) {\n              lastEdge = viewBottom;\n            }\n          } else if ((horizontal ? currentWidth : currentHeight) > lastEdge) {\n            break;\n          }\n          if (viewBottom <= top || currentHeight >= bottom || viewRight <= left || currentWidth >= right) {\n            continue;\n          }\n          var hiddenHeight = Math.max(0, top - currentHeight) + Math.max(0, viewBottom - bottom);\n          var hiddenWidth = Math.max(0, left - currentWidth) + Math.max(0, viewRight - right);\n          var fractionHeight = (viewHeight - hiddenHeight) / viewHeight,\n            fractionWidth = (viewWidth - hiddenWidth) / viewWidth;\n          var percent = fractionHeight * fractionWidth * 100 | 0;\n          visible.push({\n            id: view.id,\n            x: currentWidth,\n            y: currentHeight,\n            view: view,\n            percent: percent,\n            widthPercent: fractionWidth * 100 | 0\n          });\n          ids.add(view.id);\n        }\n        var first = visible[0],\n          last = visible.at(-1);\n        if (sortByVisibility) {\n          _sortInstanceProperty(visible).call(visible, function (a, b) {\n            var pc = a.percent - b.percent;\n            if (Math.abs(pc) > 0.001) {\n              return -pc;\n            }\n            return a.id - b.id;\n          });\n        }\n        return {\n          first: first,\n          last: last,\n          views: visible,\n          ids: ids\n        };\n      }\n      function noContextMenuHandler(evt) {\n        evt.preventDefault();\n      }\n      function normalizeWheelEventDirection(evt) {\n        var delta = _Math$hypot(evt.deltaX, evt.deltaY);\n        var angle = Math.atan2(evt.deltaY, evt.deltaX);\n        if (-0.25 * Math.PI < angle && angle < 0.75 * Math.PI) {\n          delta = -delta;\n        }\n        return delta;\n      }\n      function normalizeWheelEventDelta(evt) {\n        var delta = normalizeWheelEventDirection(evt);\n        var MOUSE_DOM_DELTA_PIXEL_MODE = 0;\n        var MOUSE_DOM_DELTA_LINE_MODE = 1;\n        var MOUSE_PIXELS_PER_LINE = 30;\n        var MOUSE_LINES_PER_PAGE = 30;\n        if (evt.deltaMode === MOUSE_DOM_DELTA_PIXEL_MODE) {\n          delta /= MOUSE_PIXELS_PER_LINE * MOUSE_LINES_PER_PAGE;\n        } else if (evt.deltaMode === MOUSE_DOM_DELTA_LINE_MODE) {\n          delta /= MOUSE_LINES_PER_PAGE;\n        }\n        return delta;\n      }\n      function isValidRotation(angle) {\n        return _Number$isInteger(angle) && angle % 90 === 0;\n      }\n      function isValidScrollMode(mode) {\n        var _context11;\n        return _Number$isInteger(mode) && _includesInstanceProperty(_context11 = _Object$values(ScrollMode)).call(_context11, mode) && mode !== ScrollMode.UNKNOWN;\n      }\n      function isValidSpreadMode(mode) {\n        var _context12;\n        return _Number$isInteger(mode) && _includesInstanceProperty(_context12 = _Object$values(SpreadMode)).call(_context12, mode) && mode !== SpreadMode.UNKNOWN;\n      }\n      function isPortraitOrientation(size) {\n        return size.width <= size.height;\n      }\n      var animationStarted = new _Promise(function (resolve) {\n        window.requestAnimationFrame(resolve);\n      });\n      exports.animationStarted = animationStarted;\n      var docStyle = document.documentElement.style;\n      exports.docStyle = docStyle;\n      function clamp(v, min, max) {\n        return Math.min(Math.max(v, min), max);\n      }\n      var _classList = /*#__PURE__*/new _WeakMap();\n      var _percent = /*#__PURE__*/new _WeakMap();\n      var _visible = /*#__PURE__*/new _WeakMap();\n      var ProgressBar = /*#__PURE__*/function () {\n        function ProgressBar(id) {\n          _classCallCheck(this, ProgressBar);\n          _classPrivateFieldInitSpec(this, _classList, {\n            writable: true,\n            value: null\n          });\n          _classPrivateFieldInitSpec(this, _percent, {\n            writable: true,\n            value: 0\n          });\n          _classPrivateFieldInitSpec(this, _visible, {\n            writable: true,\n            value: true\n          });\n          if (arguments.length > 1) {\n            throw new Error(\"ProgressBar no longer accepts any additional options, \" + \"please use CSS rules to modify its appearance instead.\");\n          }\n          var bar = document.getElementById(id);\n          _classPrivateFieldSet(this, _classList, bar.classList);\n        }\n        _createClass(ProgressBar, [{\n          key: \"percent\",\n          get: function get() {\n            return _classPrivateFieldGet(this, _percent);\n          },\n          set: function set(val) {\n            _classPrivateFieldSet(this, _percent, clamp(val, 0, 100));\n            if (isNaN(val)) {\n              _classPrivateFieldGet(this, _classList).add(\"indeterminate\");\n              return;\n            }\n            _classPrivateFieldGet(this, _classList).remove(\"indeterminate\");\n            docStyle.setProperty(\"--progressBar-percent\", \"\".concat(_classPrivateFieldGet(this, _percent), \"%\"));\n          }\n        }, {\n          key: \"setWidth\",\n          value: function setWidth(viewer) {\n            if (!viewer) {\n              return;\n            }\n            var container = viewer.parentNode;\n            var scrollbarWidth = container.offsetWidth - viewer.offsetWidth;\n            if (scrollbarWidth > 0) {\n              docStyle.setProperty(\"--progressBar-end-offset\", \"\".concat(scrollbarWidth, \"px\"));\n            }\n          }\n        }, {\n          key: \"hide\",\n          value: function hide() {\n            if (!_classPrivateFieldGet(this, _visible)) {\n              return;\n            }\n            _classPrivateFieldSet(this, _visible, false);\n            _classPrivateFieldGet(this, _classList).add(\"hidden\");\n          }\n        }, {\n          key: \"show\",\n          value: function show() {\n            if (_classPrivateFieldGet(this, _visible)) {\n              return;\n            }\n            _classPrivateFieldSet(this, _visible, true);\n            _classPrivateFieldGet(this, _classList).remove(\"hidden\");\n          }\n        }]);\n        return ProgressBar;\n      }();\n      exports.ProgressBar = ProgressBar;\n      function getActiveOrFocusedElement() {\n        var curRoot = document;\n        var curActiveOrFocused = curRoot.activeElement || curRoot.querySelector(\":focus\");\n        while ((_curActiveOrFocused = curActiveOrFocused) !== null && _curActiveOrFocused !== void 0 && _curActiveOrFocused.shadowRoot) {\n          var _curActiveOrFocused;\n          curRoot = curActiveOrFocused.shadowRoot;\n          curActiveOrFocused = curRoot.activeElement || curRoot.querySelector(\":focus\");\n        }\n        return curActiveOrFocused;\n      }\n      function apiPageLayoutToViewerModes(layout) {\n        var scrollMode = ScrollMode.VERTICAL,\n          spreadMode = SpreadMode.NONE;\n        switch (layout) {\n          case \"SinglePage\":\n            scrollMode = ScrollMode.PAGE;\n            break;\n          case \"OneColumn\":\n            break;\n          case \"TwoPageLeft\":\n            scrollMode = ScrollMode.PAGE;\n          case \"TwoColumnLeft\":\n            spreadMode = SpreadMode.ODD;\n            break;\n          case \"TwoPageRight\":\n            scrollMode = ScrollMode.PAGE;\n          case \"TwoColumnRight\":\n            spreadMode = SpreadMode.EVEN;\n            break;\n        }\n        return {\n          scrollMode: scrollMode,\n          spreadMode: spreadMode\n        };\n      }\n      function apiPageModeToSidebarView(mode) {\n        switch (mode) {\n          case \"UseNone\":\n            return SidebarView.NONE;\n          case \"UseThumbs\":\n            return SidebarView.THUMBS;\n          case \"UseOutlines\":\n            return SidebarView.OUTLINE;\n          case \"UseAttachments\":\n            return SidebarView.ATTACHMENTS;\n          case \"UseOC\":\n            return SidebarView.LAYERS;\n        }\n        return SidebarView.NONE;\n      }\n\n      /***/\n    }), ( /* 8 */\n    /***/function (__unused_webpack_module, exports) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.StructTreeLayerBuilder = void 0;\n      var PDF_ROLE_TO_HTML_ROLE = {\n        Document: null,\n        DocumentFragment: null,\n        Part: \"group\",\n        Sect: \"group\",\n        Div: \"group\",\n        Aside: \"note\",\n        NonStruct: \"none\",\n        P: null,\n        H: \"heading\",\n        Title: null,\n        FENote: \"note\",\n        Sub: \"group\",\n        Lbl: null,\n        Span: null,\n        Em: null,\n        Strong: null,\n        Link: \"link\",\n        Annot: \"note\",\n        Form: \"form\",\n        Ruby: null,\n        RB: null,\n        RT: null,\n        RP: null,\n        Warichu: null,\n        WT: null,\n        WP: null,\n        L: \"list\",\n        LI: \"listitem\",\n        LBody: null,\n        Table: \"table\",\n        TR: \"row\",\n        TH: \"columnheader\",\n        TD: \"cell\",\n        THead: \"columnheader\",\n        TBody: null,\n        TFoot: null,\n        Caption: null,\n        Figure: \"figure\",\n        Formula: null,\n        Artifact: null\n      };\n      var HEADING_PATTERN = /^H(\\d+)$/;\n      var StructTreeLayerBuilder = /*#__PURE__*/function () {\n        function StructTreeLayerBuilder(_ref) {\n          _classCallCheck(this, StructTreeLayerBuilder);\n          var pdfPage = _ref.pdfPage;\n          this.pdfPage = pdfPage;\n        }\n        _createClass(StructTreeLayerBuilder, [{\n          key: \"render\",\n          value: function render(structTree) {\n            return this._walk(structTree);\n          }\n        }, {\n          key: \"_setAttributes\",\n          value: function _setAttributes(structElement, htmlElement) {\n            if (structElement.alt !== undefined) {\n              htmlElement.setAttribute(\"aria-label\", structElement.alt);\n            }\n            if (structElement.id !== undefined) {\n              htmlElement.setAttribute(\"aria-owns\", structElement.id);\n            }\n            if (structElement.lang !== undefined) {\n              htmlElement.setAttribute(\"lang\", structElement.lang);\n            }\n          }\n        }, {\n          key: \"_walk\",\n          value: function _walk(node) {\n            if (!node) {\n              return null;\n            }\n            var element = document.createElement(\"span\");\n            if (\"role\" in node) {\n              var role = node.role;\n              var match = role.match(HEADING_PATTERN);\n              if (match) {\n                element.setAttribute(\"role\", \"heading\");\n                element.setAttribute(\"aria-level\", match[1]);\n              } else if (PDF_ROLE_TO_HTML_ROLE[role]) {\n                element.setAttribute(\"role\", PDF_ROLE_TO_HTML_ROLE[role]);\n              }\n            }\n            this._setAttributes(node, element);\n            if (node.children) {\n              if (node.children.length === 1 && \"id\" in node.children[0]) {\n                this._setAttributes(node.children[0], element);\n              } else {\n                var _iterator2 = _createForOfIteratorHelper(node.children),\n                  _step2;\n                try {\n                  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n                    var kid = _step2.value;\n                    element.append(this._walk(kid));\n                  }\n                } catch (err) {\n                  _iterator2.e(err);\n                } finally {\n                  _iterator2.f();\n                }\n              }\n            }\n            return element;\n          }\n        }]);\n        return StructTreeLayerBuilder;\n      }();\n      exports.StructTreeLayerBuilder = StructTreeLayerBuilder;\n\n      /***/\n    }), ( /* 9 */\n    /***/function (__unused_webpack_module, exports, __w_pdfjs_require__) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.TextLayerBuilder = void 0;\n      var _pdfjsLib = __w_pdfjs_require__(3);\n      var EXPAND_DIVS_TIMEOUT = 300;\n      var TextLayerBuilder = /*#__PURE__*/function () {\n        function TextLayerBuilder(_ref) {\n          _classCallCheck(this, TextLayerBuilder);\n          var textLayerDiv = _ref.textLayerDiv,\n            eventBus = _ref.eventBus,\n            pageIndex = _ref.pageIndex,\n            viewport = _ref.viewport,\n            _ref$highlighter = _ref.highlighter,\n            highlighter = _ref$highlighter === void 0 ? null : _ref$highlighter,\n            _ref$enhanceTextSelec = _ref.enhanceTextSelection,\n            enhanceTextSelection = _ref$enhanceTextSelec === void 0 ? false : _ref$enhanceTextSelec,\n            _ref$accessibilityMan3 = _ref.accessibilityManager,\n            accessibilityManager = _ref$accessibilityMan3 === void 0 ? null : _ref$accessibilityMan3;\n          this.textLayerDiv = textLayerDiv;\n          this.eventBus = eventBus;\n          this.textContent = null;\n          this.textContentItemsStr = [];\n          this.textContentStream = null;\n          this.renderingDone = false;\n          this.pageNumber = pageIndex + 1;\n          this.viewport = viewport;\n          this.textDivs = [];\n          this.textLayerRenderTask = null;\n          this.highlighter = highlighter;\n          this.enhanceTextSelection = enhanceTextSelection;\n          this.accessibilityManager = accessibilityManager;\n          this._bindMouse();\n        }\n        _createClass(TextLayerBuilder, [{\n          key: \"_finishRendering\",\n          value: function _finishRendering() {\n            this.renderingDone = true;\n            if (!this.enhanceTextSelection) {\n              var endOfContent = document.createElement(\"div\");\n              endOfContent.className = \"endOfContent\";\n              this.textLayerDiv.append(endOfContent);\n            }\n            this.eventBus.dispatch(\"textlayerrendered\", {\n              source: this,\n              pageNumber: this.pageNumber,\n              numTextDivs: this.textDivs.length\n            });\n          }\n        }, {\n          key: \"render\",\n          value: function render() {\n            var _this3 = this;\n            var _this$highlighter, _this$accessibilityMa;\n            var timeout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n            if (!(this.textContent || this.textContentStream) || this.renderingDone) {\n              return;\n            }\n            this.cancel();\n            this.textDivs.length = 0;\n            (_this$highlighter = this.highlighter) === null || _this$highlighter === void 0 ? void 0 : _this$highlighter.setTextMapping(this.textDivs, this.textContentItemsStr);\n            (_this$accessibilityMa = this.accessibilityManager) === null || _this$accessibilityMa === void 0 ? void 0 : _this$accessibilityMa.setTextMapping(this.textDivs);\n            var textLayerFrag = document.createDocumentFragment();\n            this.textLayerRenderTask = (0, _pdfjsLib.renderTextLayer)({\n              textContent: this.textContent,\n              textContentStream: this.textContentStream,\n              container: textLayerFrag,\n              viewport: this.viewport,\n              textDivs: this.textDivs,\n              textContentItemsStr: this.textContentItemsStr,\n              timeout: timeout,\n              enhanceTextSelection: this.enhanceTextSelection\n            });\n            this.textLayerRenderTask.promise.then(function () {\n              var _this$highlighter2, _this$accessibilityMa2;\n              _this3.textLayerDiv.append(textLayerFrag);\n              _this3._finishRendering();\n              (_this$highlighter2 = _this3.highlighter) === null || _this$highlighter2 === void 0 ? void 0 : _this$highlighter2.enable();\n              (_this$accessibilityMa2 = _this3.accessibilityManager) === null || _this$accessibilityMa2 === void 0 ? void 0 : _this$accessibilityMa2.enable();\n            }, function (reason) {});\n          }\n        }, {\n          key: \"cancel\",\n          value: function cancel() {\n            var _this$highlighter3, _this$accessibilityMa3;\n            if (this.textLayerRenderTask) {\n              this.textLayerRenderTask.cancel();\n              this.textLayerRenderTask = null;\n            }\n            (_this$highlighter3 = this.highlighter) === null || _this$highlighter3 === void 0 ? void 0 : _this$highlighter3.disable();\n            (_this$accessibilityMa3 = this.accessibilityManager) === null || _this$accessibilityMa3 === void 0 ? void 0 : _this$accessibilityMa3.disable();\n          }\n        }, {\n          key: \"setTextContentStream\",\n          value: function setTextContentStream(readableStream) {\n            this.cancel();\n            this.textContentStream = readableStream;\n          }\n        }, {\n          key: \"setTextContent\",\n          value: function setTextContent(textContent) {\n            this.cancel();\n            this.textContent = textContent;\n          }\n        }, {\n          key: \"_bindMouse\",\n          value: function _bindMouse() {\n            var _this4 = this;\n            var div = this.textLayerDiv;\n            var expandDivsTimer = null;\n            div.addEventListener(\"mousedown\", function (evt) {\n              if (_this4.enhanceTextSelection && _this4.textLayerRenderTask) {\n                _this4.textLayerRenderTask.expandTextDivs(true);\n                if (expandDivsTimer) {\n                  clearTimeout(expandDivsTimer);\n                  expandDivsTimer = null;\n                }\n                return;\n              }\n              var end = div.querySelector(\".endOfContent\");\n              if (!end) {\n                return;\n              }\n              var adjustTop = evt.target !== div;\n              adjustTop = adjustTop && window.getComputedStyle(end).getPropertyValue(\"-moz-user-select\") !== \"none\";\n              if (adjustTop) {\n                var divBounds = div.getBoundingClientRect();\n                var r = Math.max(0, (evt.pageY - divBounds.top) / divBounds.height);\n                end.style.top = (r * 100).toFixed(2) + \"%\";\n              }\n              end.classList.add(\"active\");\n            });\n            div.addEventListener(\"mouseup\", function () {\n              if (_this4.enhanceTextSelection && _this4.textLayerRenderTask) {\n                expandDivsTimer = _setTimeout(function () {\n                  if (_this4.textLayerRenderTask) {\n                    _this4.textLayerRenderTask.expandTextDivs(false);\n                  }\n                  expandDivsTimer = null;\n                }, EXPAND_DIVS_TIMEOUT);\n                return;\n              }\n              var end = div.querySelector(\".endOfContent\");\n              if (!end) {\n                return;\n              }\n              end.style.top = \"\";\n              end.classList.remove(\"active\");\n            });\n          }\n        }]);\n        return TextLayerBuilder;\n      }();\n      exports.TextLayerBuilder = TextLayerBuilder;\n\n      /***/\n    }), ( /* 10 */\n    /***/function (__unused_webpack_module, exports, __w_pdfjs_require__) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.XfaLayerBuilder = void 0;\n      var _pdfjsLib = __w_pdfjs_require__(3);\n      var XfaLayerBuilder = /*#__PURE__*/function () {\n        function XfaLayerBuilder(_ref) {\n          _classCallCheck(this, XfaLayerBuilder);\n          var pageDiv = _ref.pageDiv,\n            pdfPage = _ref.pdfPage,\n            _ref$annotationStorag3 = _ref.annotationStorage,\n            annotationStorage = _ref$annotationStorag3 === void 0 ? null : _ref$annotationStorag3,\n            linkService = _ref.linkService,\n            _ref$xfaHtml = _ref.xfaHtml,\n            xfaHtml = _ref$xfaHtml === void 0 ? null : _ref$xfaHtml;\n          this.pageDiv = pageDiv;\n          this.pdfPage = pdfPage;\n          this.annotationStorage = annotationStorage;\n          this.linkService = linkService;\n          this.xfaHtml = xfaHtml;\n          this.div = null;\n          this._cancelled = false;\n        }\n        _createClass(XfaLayerBuilder, [{\n          key: \"render\",\n          value: function render(viewport) {\n            var _this5 = this;\n            var intent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"display\";\n            if (intent === \"print\") {\n              var parameters = {\n                viewport: viewport.clone({\n                  dontFlip: true\n                }),\n                div: this.div,\n                xfaHtml: this.xfaHtml,\n                annotationStorage: this.annotationStorage,\n                linkService: this.linkService,\n                intent: intent\n              };\n              var div = document.createElement(\"div\");\n              this.pageDiv.append(div);\n              parameters.div = div;\n              var result = _pdfjsLib.XfaLayer.render(parameters);\n              return _Promise.resolve(result);\n            }\n            return this.pdfPage.getXfa().then(function (xfaHtml) {\n              if (_this5._cancelled || !xfaHtml) {\n                return {\n                  textDivs: []\n                };\n              }\n              var parameters = {\n                viewport: viewport.clone({\n                  dontFlip: true\n                }),\n                div: _this5.div,\n                xfaHtml: xfaHtml,\n                annotationStorage: _this5.annotationStorage,\n                linkService: _this5.linkService,\n                intent: intent\n              };\n              if (_this5.div) {\n                return _pdfjsLib.XfaLayer.update(parameters);\n              }\n              _this5.div = document.createElement(\"div\");\n              _this5.pageDiv.append(_this5.div);\n              parameters.div = _this5.div;\n              return _pdfjsLib.XfaLayer.render(parameters);\n            }).catch(function (error) {\n              console.error(error);\n            });\n          }\n        }, {\n          key: \"cancel\",\n          value: function cancel() {\n            this._cancelled = true;\n          }\n        }, {\n          key: \"hide\",\n          value: function hide() {\n            if (!this.div) {\n              return;\n            }\n            this.div.hidden = true;\n          }\n        }]);\n        return XfaLayerBuilder;\n      }();\n      exports.XfaLayerBuilder = XfaLayerBuilder;\n\n      /***/\n    }), ( /* 11 */\n    /***/function (__unused_webpack_module, exports, __w_pdfjs_require__) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.PDFViewer = exports.PDFSinglePageViewer = void 0;\n      var _ui_utils = __w_pdfjs_require__(7);\n      var _base_viewer = __w_pdfjs_require__(12);\n      var PDFViewer = /*#__PURE__*/function (_base_viewer$BaseView) {\n        _inherits(PDFViewer, _base_viewer$BaseView);\n        function PDFViewer() {\n          _classCallCheck(this, PDFViewer);\n          return _callSuper(this, PDFViewer, arguments);\n        }\n        return _createClass(PDFViewer);\n      }(_base_viewer.BaseViewer);\n      exports.PDFViewer = PDFViewer;\n      var PDFSinglePageViewer = /*#__PURE__*/function (_base_viewer$BaseView2) {\n        _inherits(PDFSinglePageViewer, _base_viewer$BaseView2);\n        function PDFSinglePageViewer() {\n          _classCallCheck(this, PDFSinglePageViewer);\n          return _callSuper(this, PDFSinglePageViewer, arguments);\n        }\n        _createClass(PDFSinglePageViewer, [{\n          key: \"_resetView\",\n          value: function _resetView() {\n            _get(_getPrototypeOf(PDFSinglePageViewer.prototype), \"_resetView\", this).call(this);\n            this._scrollMode = _ui_utils.ScrollMode.PAGE;\n            this._spreadMode = _ui_utils.SpreadMode.NONE;\n          }\n        }, {\n          key: \"scrollMode\",\n          set: function set(mode) {}\n        }, {\n          key: \"_updateScrollMode\",\n          value: function _updateScrollMode() {}\n        }, {\n          key: \"spreadMode\",\n          set: function set(mode) {}\n        }, {\n          key: \"_updateSpreadMode\",\n          value: function _updateSpreadMode() {}\n        }]);\n        return PDFSinglePageViewer;\n      }(_base_viewer.BaseViewer);\n      exports.PDFSinglePageViewer = PDFSinglePageViewer;\n\n      /***/\n    }), ( /* 12 */\n    /***/function (__unused_webpack_module, exports, __w_pdfjs_require__) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.PagesCountLimit = exports.PDFPageViewBuffer = exports.BaseViewer = void 0;\n      var _pdfjsLib = __w_pdfjs_require__(3);\n      var _ui_utils = __w_pdfjs_require__(7);\n      var _annotation_editor_layer_builder = __w_pdfjs_require__(2);\n      var _annotation_layer_builder = __w_pdfjs_require__(5);\n      var _l10n_utils = __w_pdfjs_require__(4);\n      var _pdf_page_view = __w_pdfjs_require__(13);\n      var _pdf_rendering_queue = __w_pdfjs_require__(16);\n      var _pdf_link_service = __w_pdfjs_require__(6);\n      var _struct_tree_layer_builder = __w_pdfjs_require__(8);\n      var _text_highlighter = __w_pdfjs_require__(17);\n      var _text_layer_builder = __w_pdfjs_require__(9);\n      var _xfa_layer_builder = __w_pdfjs_require__(10);\n      var _Symbol$iterator;\n      function _classPrivateMethodInitSpec(obj, privateSet) {\n        _checkPrivateRedeclaration(obj, privateSet);\n        privateSet.add(obj);\n      }\n      function _classPrivateFieldInitSpec(obj, privateMap, value) {\n        _checkPrivateRedeclaration(obj, privateMap);\n        privateMap.set(obj, value);\n      }\n      function _checkPrivateRedeclaration(obj, privateCollection) {\n        if (privateCollection.has(obj)) {\n          throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n        }\n      }\n      function _classPrivateMethodGet(receiver, privateSet, fn) {\n        if (!privateSet.has(receiver)) {\n          throw new TypeError(\"attempted to get private field on non-instance\");\n        }\n        return fn;\n      }\n      function _classPrivateFieldGet(receiver, privateMap) {\n        var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"get\");\n        return _classApplyDescriptorGet(receiver, descriptor);\n      }\n      function _classApplyDescriptorGet(receiver, descriptor) {\n        if (descriptor.get) {\n          return descriptor.get.call(receiver);\n        }\n        return descriptor.value;\n      }\n      function _classPrivateFieldSet(receiver, privateMap, value) {\n        var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"set\");\n        _classApplyDescriptorSet(receiver, descriptor, value);\n        return value;\n      }\n      function _classExtractFieldDescriptor(receiver, privateMap, action) {\n        if (!privateMap.has(receiver)) {\n          throw new TypeError(\"attempted to \" + action + \" private field on non-instance\");\n        }\n        return privateMap.get(receiver);\n      }\n      function _classApplyDescriptorSet(receiver, descriptor, value) {\n        if (descriptor.set) {\n          descriptor.set.call(receiver, value);\n        } else {\n          if (!descriptor.writable) {\n            throw new TypeError(\"attempted to set read only private field\");\n          }\n          descriptor.value = value;\n        }\n      }\n      var DEFAULT_CACHE_SIZE = 10;\n      var ENABLE_PERMISSIONS_CLASS = \"enablePermissions\";\n      var PagesCountLimit = {\n        FORCE_SCROLL_MODE_PAGE: 15000,\n        FORCE_LAZY_PAGE_INIT: 7500,\n        PAUSE_EAGER_PAGE_INIT: 250\n      };\n      exports.PagesCountLimit = PagesCountLimit;\n      function isValidAnnotationEditorMode(mode) {\n        var _context13;\n        return _includesInstanceProperty(_context13 = _Object$values(_pdfjsLib.AnnotationEditorType)).call(_context13, mode) && mode !== _pdfjsLib.AnnotationEditorType.DISABLE;\n      }\n      var _buf = /*#__PURE__*/new _WeakMap();\n      var _size = /*#__PURE__*/new _WeakMap();\n      var _destroyFirstView = /*#__PURE__*/new _WeakSet();\n      _Symbol$iterator = _Symbol$iterator2;\n      var PDFPageViewBuffer = /*#__PURE__*/function (_Symbol$iterator3) {\n        function PDFPageViewBuffer(size) {\n          _classCallCheck(this, PDFPageViewBuffer);\n          _classPrivateMethodInitSpec(this, _destroyFirstView);\n          _classPrivateFieldInitSpec(this, _buf, {\n            writable: true,\n            value: new _Set()\n          });\n          _classPrivateFieldInitSpec(this, _size, {\n            writable: true,\n            value: 0\n          });\n          _classPrivateFieldSet(this, _size, size);\n        }\n        _createClass(PDFPageViewBuffer, [{\n          key: \"push\",\n          value: function push(view) {\n            var buf = _classPrivateFieldGet(this, _buf);\n            if (buf.has(view)) {\n              buf.delete(view);\n            }\n            buf.add(view);\n            if (buf.size > _classPrivateFieldGet(this, _size)) {\n              _classPrivateMethodGet(this, _destroyFirstView, _destroyFirstView2).call(this);\n            }\n          }\n        }, {\n          key: \"resize\",\n          value: function resize(newSize) {\n            var idsToKeep = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n            _classPrivateFieldSet(this, _size, newSize);\n            var buf = _classPrivateFieldGet(this, _buf);\n            if (idsToKeep) {\n              var ii = buf.size;\n              var i = 1;\n              var _iterator3 = _createForOfIteratorHelper(buf),\n                _step3;\n              try {\n                for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n                  var view = _step3.value;\n                  if (idsToKeep.has(view.id)) {\n                    buf.delete(view);\n                    buf.add(view);\n                  }\n                  if (++i > ii) {\n                    break;\n                  }\n                }\n              } catch (err) {\n                _iterator3.e(err);\n              } finally {\n                _iterator3.f();\n              }\n            }\n            while (buf.size > _classPrivateFieldGet(this, _size)) {\n              _classPrivateMethodGet(this, _destroyFirstView, _destroyFirstView2).call(this);\n            }\n          }\n        }, {\n          key: \"has\",\n          value: function has(view) {\n            return _classPrivateFieldGet(this, _buf).has(view);\n          }\n        }, {\n          key: _Symbol$iterator3,\n          value: function value() {\n            var _context14;\n            return _keysInstanceProperty(_context14 = _classPrivateFieldGet(this, _buf)).call(_context14);\n          }\n        }]);\n        return PDFPageViewBuffer;\n      }(_Symbol$iterator);\n      exports.PDFPageViewBuffer = PDFPageViewBuffer;\n      function _destroyFirstView2() {\n        var _context15;\n        var firstView = _keysInstanceProperty(_context15 = _classPrivateFieldGet(this, _buf)).call(_context15).next().value;\n        firstView === null || firstView === void 0 ? void 0 : firstView.destroy();\n        _classPrivateFieldGet(this, _buf).delete(firstView);\n      }\n      var _buffer = /*#__PURE__*/new _WeakMap();\n      var _annotationEditorMode = /*#__PURE__*/new _WeakMap();\n      var _annotationEditorUIManager = /*#__PURE__*/new _WeakMap();\n      var _annotationMode = /*#__PURE__*/new _WeakMap();\n      var _enablePermissions = /*#__PURE__*/new _WeakMap();\n      var _previousContainerHeight = /*#__PURE__*/new _WeakMap();\n      var _scrollModePageState = /*#__PURE__*/new _WeakMap();\n      var _onVisibilityChange = /*#__PURE__*/new _WeakMap();\n      var _initializePermissions = /*#__PURE__*/new _WeakSet();\n      var _onePageRenderedOrForceFetch = /*#__PURE__*/new _WeakSet();\n      var _ensurePageViewVisible = /*#__PURE__*/new _WeakSet();\n      var _scrollIntoView = /*#__PURE__*/new _WeakSet();\n      var _isSameScale = /*#__PURE__*/new _WeakSet();\n      var _resetCurrentPageView = /*#__PURE__*/new _WeakSet();\n      var _ensurePdfPageLoaded = /*#__PURE__*/new _WeakSet();\n      var _getScrollAhead = /*#__PURE__*/new _WeakSet();\n      var _toggleLoadingIconSpinner = /*#__PURE__*/new _WeakSet();\n      var BaseViewer = /*#__PURE__*/function () {\n        function BaseViewer(options) {\n          _classCallCheck(this, BaseViewer);\n          var _this$container, _this$viewer, _options$textLayerMod, _options$annotationMo, _options$annotationEd;\n          _classPrivateMethodInitSpec(this, _toggleLoadingIconSpinner);\n          _classPrivateMethodInitSpec(this, _getScrollAhead);\n          _classPrivateMethodInitSpec(this, _ensurePdfPageLoaded);\n          _classPrivateMethodInitSpec(this, _resetCurrentPageView);\n          _classPrivateMethodInitSpec(this, _isSameScale);\n          _classPrivateMethodInitSpec(this, _scrollIntoView);\n          _classPrivateMethodInitSpec(this, _ensurePageViewVisible);\n          _classPrivateMethodInitSpec(this, _onePageRenderedOrForceFetch);\n          _classPrivateMethodInitSpec(this, _initializePermissions);\n          _classPrivateFieldInitSpec(this, _buffer, {\n            writable: true,\n            value: null\n          });\n          _classPrivateFieldInitSpec(this, _annotationEditorMode, {\n            writable: true,\n            value: _pdfjsLib.AnnotationEditorType.DISABLE\n          });\n          _classPrivateFieldInitSpec(this, _annotationEditorUIManager, {\n            writable: true,\n            value: null\n          });\n          _classPrivateFieldInitSpec(this, _annotationMode, {\n            writable: true,\n            value: _pdfjsLib.AnnotationMode.ENABLE_FORMS\n          });\n          _classPrivateFieldInitSpec(this, _enablePermissions, {\n            writable: true,\n            value: false\n          });\n          _classPrivateFieldInitSpec(this, _previousContainerHeight, {\n            writable: true,\n            value: 0\n          });\n          _classPrivateFieldInitSpec(this, _scrollModePageState, {\n            writable: true,\n            value: null\n          });\n          _classPrivateFieldInitSpec(this, _onVisibilityChange, {\n            writable: true,\n            value: null\n          });\n          if (this.constructor === BaseViewer) {\n            throw new Error(\"Cannot initialize BaseViewer.\");\n          }\n          var viewerVersion = '2.16.105';\n          if (_pdfjsLib.version !== viewerVersion) {\n            var _context16;\n            throw new Error(_concatInstanceProperty(_context16 = \"The API version \\\"\".concat(_pdfjsLib.version, \"\\\" does not match the Viewer version \\\"\")).call(_context16, viewerVersion, \"\\\".\"));\n          }\n          this.container = options.container;\n          this.viewer = options.viewer || options.container.firstElementChild;\n          if (!(((_this$container = this.container) === null || _this$container === void 0 ? void 0 : _this$container.tagName.toUpperCase()) === \"DIV\" && ((_this$viewer = this.viewer) === null || _this$viewer === void 0 ? void 0 : _this$viewer.tagName.toUpperCase()) === \"DIV\")) {\n            throw new Error(\"Invalid `container` and/or `viewer` option.\");\n          }\n          if (this.container.offsetParent && getComputedStyle(this.container).position !== \"absolute\") {\n            throw new Error(\"The `container` must be absolutely positioned.\");\n          }\n          this.eventBus = options.eventBus;\n          this.linkService = options.linkService || new _pdf_link_service.SimpleLinkService();\n          this.downloadManager = options.downloadManager || null;\n          this.findController = options.findController || null;\n          this._scriptingManager = options.scriptingManager || null;\n          this.removePageBorders = options.removePageBorders || false;\n          this.textLayerMode = (_options$textLayerMod = options.textLayerMode) !== null && _options$textLayerMod !== void 0 ? _options$textLayerMod : _ui_utils.TextLayerMode.ENABLE;\n          _classPrivateFieldSet(this, _annotationMode, (_options$annotationMo = options.annotationMode) !== null && _options$annotationMo !== void 0 ? _options$annotationMo : _pdfjsLib.AnnotationMode.ENABLE_FORMS);\n          _classPrivateFieldSet(this, _annotationEditorMode, (_options$annotationEd = options.annotationEditorMode) !== null && _options$annotationEd !== void 0 ? _options$annotationEd : _pdfjsLib.AnnotationEditorType.DISABLE);\n          this.imageResourcesPath = options.imageResourcesPath || \"\";\n          this.enablePrintAutoRotate = options.enablePrintAutoRotate || false;\n          this.renderer = options.renderer || _ui_utils.RendererType.CANVAS;\n          this.useOnlyCssZoom = options.useOnlyCssZoom || false;\n          this.maxCanvasPixels = options.maxCanvasPixels;\n          this.l10n = options.l10n || _l10n_utils.NullL10n;\n          _classPrivateFieldSet(this, _enablePermissions, options.enablePermissions || false);\n          this.pageColors = options.pageColors || null;\n          if (this.pageColors && !(CSS.supports(\"color\", this.pageColors.background) && CSS.supports(\"color\", this.pageColors.foreground))) {\n            if (this.pageColors.background || this.pageColors.foreground) {\n              console.warn(\"BaseViewer: Ignoring `pageColors`-option, since the browser doesn't support the values used.\");\n            }\n            this.pageColors = null;\n          }\n          this.defaultRenderingQueue = !options.renderingQueue;\n          if (this.defaultRenderingQueue) {\n            this.renderingQueue = new _pdf_rendering_queue.PDFRenderingQueue();\n            this.renderingQueue.setViewer(this);\n          } else {\n            this.renderingQueue = options.renderingQueue;\n          }\n          this.scroll = (0, _ui_utils.watchScroll)(this.container, this._scrollUpdate.bind(this));\n          this.presentationModeState = _ui_utils.PresentationModeState.UNKNOWN;\n          this._onBeforeDraw = this._onAfterDraw = null;\n          this._resetView();\n          if (this.removePageBorders) {\n            this.viewer.classList.add(\"removePageBorders\");\n          }\n          this.updateContainerHeightCss();\n        }\n        _createClass(BaseViewer, [{\n          key: \"pagesCount\",\n          get: function get() {\n            return this._pages.length;\n          }\n        }, {\n          key: \"getPageView\",\n          value: function getPageView(index) {\n            return this._pages[index];\n          }\n        }, {\n          key: \"pageViewsReady\",\n          get: function get() {\n            if (!this._pagesCapability.settled) {\n              return false;\n            }\n            return this._pages.every(function (pageView) {\n              return pageView === null || pageView === void 0 ? void 0 : pageView.pdfPage;\n            });\n          }\n        }, {\n          key: \"renderForms\",\n          get: function get() {\n            return _classPrivateFieldGet(this, _annotationMode) === _pdfjsLib.AnnotationMode.ENABLE_FORMS;\n          }\n        }, {\n          key: \"enableScripting\",\n          get: function get() {\n            return !!this._scriptingManager;\n          }\n        }, {\n          key: \"currentPageNumber\",\n          get: function get() {\n            return this._currentPageNumber;\n          },\n          set: function set(val) {\n            if (!_Number$isInteger(val)) {\n              throw new Error(\"Invalid page number.\");\n            }\n            if (!this.pdfDocument) {\n              return;\n            }\n            if (!this._setCurrentPageNumber(val, true)) {\n              console.error(\"currentPageNumber: \\\"\".concat(val, \"\\\" is not a valid page.\"));\n            }\n          }\n        }, {\n          key: \"_setCurrentPageNumber\",\n          value: function _setCurrentPageNumber(val) {\n            var _this$_pageLabels, _this$_pageLabels2;\n            var resetCurrentPageView = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n            if (this._currentPageNumber === val) {\n              if (resetCurrentPageView) {\n                _classPrivateMethodGet(this, _resetCurrentPageView, _resetCurrentPageView2).call(this);\n              }\n              return true;\n            }\n            if (!(0 < val && val <= this.pagesCount)) {\n              return false;\n            }\n            var previous = this._currentPageNumber;\n            this._currentPageNumber = val;\n            this.eventBus.dispatch(\"pagechanging\", {\n              source: this,\n              pageNumber: val,\n              pageLabel: (_this$_pageLabels = (_this$_pageLabels2 = this._pageLabels) === null || _this$_pageLabels2 === void 0 ? void 0 : _this$_pageLabels2[val - 1]) !== null && _this$_pageLabels !== void 0 ? _this$_pageLabels : null,\n              previous: previous\n            });\n            if (resetCurrentPageView) {\n              _classPrivateMethodGet(this, _resetCurrentPageView, _resetCurrentPageView2).call(this);\n            }\n            return true;\n          }\n        }, {\n          key: \"currentPageLabel\",\n          get: function get() {\n            var _this$_pageLabels3, _this$_pageLabels4;\n            return (_this$_pageLabels3 = (_this$_pageLabels4 = this._pageLabels) === null || _this$_pageLabels4 === void 0 ? void 0 : _this$_pageLabels4[this._currentPageNumber - 1]) !== null && _this$_pageLabels3 !== void 0 ? _this$_pageLabels3 : null;\n          },\n          set: function set(val) {\n            if (!this.pdfDocument) {\n              return;\n            }\n            var page = val | 0;\n            if (this._pageLabels) {\n              var _context17;\n              var i = _indexOfInstanceProperty(_context17 = this._pageLabels).call(_context17, val);\n              if (i >= 0) {\n                page = i + 1;\n              }\n            }\n            if (!this._setCurrentPageNumber(page, true)) {\n              console.error(\"currentPageLabel: \\\"\".concat(val, \"\\\" is not a valid page.\"));\n            }\n          }\n        }, {\n          key: \"currentScale\",\n          get: function get() {\n            return this._currentScale !== _ui_utils.UNKNOWN_SCALE ? this._currentScale : _ui_utils.DEFAULT_SCALE;\n          },\n          set: function set(val) {\n            if (isNaN(val)) {\n              throw new Error(\"Invalid numeric scale.\");\n            }\n            if (!this.pdfDocument) {\n              return;\n            }\n            this._setScale(val, false);\n          }\n        }, {\n          key: \"currentScaleValue\",\n          get: function get() {\n            return this._currentScaleValue;\n          },\n          set: function set(val) {\n            if (!this.pdfDocument) {\n              return;\n            }\n            this._setScale(val, false);\n          }\n        }, {\n          key: \"pagesRotation\",\n          get: function get() {\n            return this._pagesRotation;\n          },\n          set: function set(rotation) {\n            if (!(0, _ui_utils.isValidRotation)(rotation)) {\n              throw new Error(\"Invalid pages rotation angle.\");\n            }\n            if (!this.pdfDocument) {\n              return;\n            }\n            rotation %= 360;\n            if (rotation < 0) {\n              rotation += 360;\n            }\n            if (this._pagesRotation === rotation) {\n              return;\n            }\n            this._pagesRotation = rotation;\n            var pageNumber = this._currentPageNumber;\n            var updateArgs = {\n              rotation: rotation\n            };\n            var _iterator4 = _createForOfIteratorHelper(this._pages),\n              _step4;\n            try {\n              for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n                var pageView = _step4.value;\n                pageView.update(updateArgs);\n              }\n            } catch (err) {\n              _iterator4.e(err);\n            } finally {\n              _iterator4.f();\n            }\n            if (this._currentScaleValue) {\n              this._setScale(this._currentScaleValue, true);\n            }\n            this.eventBus.dispatch(\"rotationchanging\", {\n              source: this,\n              pagesRotation: rotation,\n              pageNumber: pageNumber\n            });\n            if (this.defaultRenderingQueue) {\n              this.update();\n            }\n          }\n        }, {\n          key: \"firstPagePromise\",\n          get: function get() {\n            return this.pdfDocument ? this._firstPageCapability.promise : null;\n          }\n        }, {\n          key: \"onePageRendered\",\n          get: function get() {\n            return this.pdfDocument ? this._onePageRenderedCapability.promise : null;\n          }\n        }, {\n          key: \"pagesPromise\",\n          get: function get() {\n            return this.pdfDocument ? this._pagesCapability.promise : null;\n          }\n        }, {\n          key: \"setDocument\",\n          value: function setDocument(pdfDocument) {\n            var _this6 = this;\n            if (this.pdfDocument) {\n              this.eventBus.dispatch(\"pagesdestroy\", {\n                source: this\n              });\n              this._cancelRendering();\n              this._resetView();\n              if (this.findController) {\n                this.findController.setDocument(null);\n              }\n              if (this._scriptingManager) {\n                this._scriptingManager.setDocument(null);\n              }\n              if (_classPrivateFieldGet(this, _annotationEditorUIManager)) {\n                _classPrivateFieldGet(this, _annotationEditorUIManager).destroy();\n                _classPrivateFieldSet(this, _annotationEditorUIManager, null);\n              }\n            }\n            this.pdfDocument = pdfDocument;\n            if (!pdfDocument) {\n              return;\n            }\n            var isPureXfa = pdfDocument.isPureXfa;\n            var pagesCount = pdfDocument.numPages;\n            var firstPagePromise = pdfDocument.getPage(1);\n            var optionalContentConfigPromise = pdfDocument.getOptionalContentConfig();\n            var permissionsPromise = _classPrivateFieldGet(this, _enablePermissions) ? pdfDocument.getPermissions() : _Promise.resolve();\n            if (pagesCount > PagesCountLimit.FORCE_SCROLL_MODE_PAGE) {\n              console.warn(\"Forcing PAGE-scrolling for performance reasons, given the length of the document.\");\n              var mode = this._scrollMode = _ui_utils.ScrollMode.PAGE;\n              this.eventBus.dispatch(\"scrollmodechanged\", {\n                source: this,\n                mode: mode\n              });\n            }\n            this._pagesCapability.promise.then(function () {\n              _this6.eventBus.dispatch(\"pagesloaded\", {\n                source: _this6,\n                pagesCount: pagesCount\n              });\n            }, function () {});\n            this._onBeforeDraw = function (evt) {\n              var pageView = _this6._pages[evt.pageNumber - 1];\n              if (!pageView) {\n                return;\n              }\n              _classPrivateFieldGet(_this6, _buffer).push(pageView);\n            };\n            this.eventBus._on(\"pagerender\", this._onBeforeDraw);\n            this._onAfterDraw = function (evt) {\n              if (evt.cssTransform || _this6._onePageRenderedCapability.settled) {\n                return;\n              }\n              _this6._onePageRenderedCapability.resolve({\n                timestamp: evt.timestamp\n              });\n              _this6.eventBus._off(\"pagerendered\", _this6._onAfterDraw);\n              _this6._onAfterDraw = null;\n              if (_classPrivateFieldGet(_this6, _onVisibilityChange)) {\n                document.removeEventListener(\"visibilitychange\", _classPrivateFieldGet(_this6, _onVisibilityChange));\n                _classPrivateFieldSet(_this6, _onVisibilityChange, null);\n              }\n            };\n            this.eventBus._on(\"pagerendered\", this._onAfterDraw);\n            _Promise.all([firstPagePromise, permissionsPromise]).then(function (_ref) {\n              var _ref13 = _slicedToArray(_ref, 2),\n                firstPdfPage = _ref13[0],\n                permissions = _ref13[1];\n              if (pdfDocument !== _this6.pdfDocument) {\n                return;\n              }\n              _this6._firstPageCapability.resolve(firstPdfPage);\n              _this6._optionalContentConfigPromise = optionalContentConfigPromise;\n              var _classPrivateMethodGe = _classPrivateMethodGet(_this6, _initializePermissions, _initializePermissions2).call(_this6, permissions),\n                annotationEditorMode = _classPrivateMethodGe.annotationEditorMode,\n                annotationMode = _classPrivateMethodGe.annotationMode,\n                textLayerMode = _classPrivateMethodGe.textLayerMode;\n              if (annotationEditorMode !== _pdfjsLib.AnnotationEditorType.DISABLE) {\n                var _mode = annotationEditorMode;\n                if (isPureXfa) {\n                  console.warn(\"Warning: XFA-editing is not implemented.\");\n                } else if (isValidAnnotationEditorMode(_mode)) {\n                  _classPrivateFieldSet(_this6, _annotationEditorUIManager, new _pdfjsLib.AnnotationEditorUIManager(_this6.container, _this6.eventBus));\n                  if (_mode !== _pdfjsLib.AnnotationEditorType.NONE) {\n                    _classPrivateFieldGet(_this6, _annotationEditorUIManager).updateMode(_mode);\n                  }\n                } else {\n                  console.error(\"Invalid AnnotationEditor mode: \".concat(_mode));\n                }\n              }\n              var viewerElement = _this6._scrollMode === _ui_utils.ScrollMode.PAGE ? null : _this6.viewer;\n              var scale = _this6.currentScale;\n              var viewport = firstPdfPage.getViewport({\n                scale: scale * _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS\n              });\n              var textLayerFactory = textLayerMode !== _ui_utils.TextLayerMode.DISABLE && !isPureXfa ? _this6 : null;\n              var annotationLayerFactory = annotationMode !== _pdfjsLib.AnnotationMode.DISABLE ? _this6 : null;\n              var xfaLayerFactory = isPureXfa ? _this6 : null;\n              var annotationEditorLayerFactory = _classPrivateFieldGet(_this6, _annotationEditorUIManager) ? _this6 : null;\n              for (var pageNum = 1; pageNum <= pagesCount; ++pageNum) {\n                var pageView = new _pdf_page_view.PDFPageView({\n                  container: viewerElement,\n                  eventBus: _this6.eventBus,\n                  id: pageNum,\n                  scale: scale,\n                  defaultViewport: viewport.clone(),\n                  optionalContentConfigPromise: optionalContentConfigPromise,\n                  renderingQueue: _this6.renderingQueue,\n                  textLayerFactory: textLayerFactory,\n                  textLayerMode: textLayerMode,\n                  annotationLayerFactory: annotationLayerFactory,\n                  annotationMode: annotationMode,\n                  xfaLayerFactory: xfaLayerFactory,\n                  annotationEditorLayerFactory: annotationEditorLayerFactory,\n                  textHighlighterFactory: _this6,\n                  structTreeLayerFactory: _this6,\n                  imageResourcesPath: _this6.imageResourcesPath,\n                  renderer: _this6.renderer,\n                  useOnlyCssZoom: _this6.useOnlyCssZoom,\n                  maxCanvasPixels: _this6.maxCanvasPixels,\n                  pageColors: _this6.pageColors,\n                  l10n: _this6.l10n\n                });\n                _this6._pages.push(pageView);\n              }\n              var firstPageView = _this6._pages[0];\n              if (firstPageView) {\n                firstPageView.setPdfPage(firstPdfPage);\n                _this6.linkService.cachePageRef(1, firstPdfPage.ref);\n              }\n              if (_this6._scrollMode === _ui_utils.ScrollMode.PAGE) {\n                _classPrivateMethodGet(_this6, _ensurePageViewVisible, _ensurePageViewVisible2).call(_this6);\n              } else if (_this6._spreadMode !== _ui_utils.SpreadMode.NONE) {\n                _this6._updateSpreadMode();\n              }\n              _classPrivateMethodGet(_this6, _onePageRenderedOrForceFetch, _onePageRenderedOrForceFetch2).call(_this6).then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {\n                var getPagesLeft, _loop, _pageNum;\n                return _regeneratorRuntime.wrap(function _callee9$(_context19) {\n                  while (1) switch (_context19.prev = _context19.next) {\n                    case 0:\n                      if (_this6.findController) {\n                        _this6.findController.setDocument(pdfDocument);\n                      }\n                      if (_this6._scriptingManager) {\n                        _this6._scriptingManager.setDocument(pdfDocument);\n                      }\n                      if (_classPrivateFieldGet(_this6, _annotationEditorUIManager)) {\n                        _this6.eventBus.dispatch(\"annotationeditormodechanged\", {\n                          source: _this6,\n                          mode: _classPrivateFieldGet(_this6, _annotationEditorMode)\n                        });\n                      }\n                      if (!(pdfDocument.loadingParams.disableAutoFetch || pagesCount > PagesCountLimit.FORCE_LAZY_PAGE_INIT)) {\n                        _context19.next = 6;\n                        break;\n                      }\n                      _this6._pagesCapability.resolve();\n                      return _context19.abrupt(\"return\");\n                    case 6:\n                      getPagesLeft = pagesCount - 1;\n                      if (!(getPagesLeft <= 0)) {\n                        _context19.next = 10;\n                        break;\n                      }\n                      _this6._pagesCapability.resolve();\n                      return _context19.abrupt(\"return\");\n                    case 10:\n                      _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop(_pageNum) {\n                        var promise;\n                        return _regeneratorRuntime.wrap(function _loop$(_context18) {\n                          while (1) switch (_context18.prev = _context18.next) {\n                            case 0:\n                              promise = pdfDocument.getPage(_pageNum).then(function (pdfPage) {\n                                var pageView = _this6._pages[_pageNum - 1];\n                                if (!pageView.pdfPage) {\n                                  pageView.setPdfPage(pdfPage);\n                                }\n                                _this6.linkService.cachePageRef(_pageNum, pdfPage.ref);\n                                if (--getPagesLeft === 0) {\n                                  _this6._pagesCapability.resolve();\n                                }\n                              }, function (reason) {\n                                console.error(\"Unable to get page \".concat(_pageNum, \" to initialize viewer\"), reason);\n                                if (--getPagesLeft === 0) {\n                                  _this6._pagesCapability.resolve();\n                                }\n                              });\n                              if (!(_pageNum % PagesCountLimit.PAUSE_EAGER_PAGE_INIT === 0)) {\n                                _context18.next = 4;\n                                break;\n                              }\n                              _context18.next = 4;\n                              return promise;\n                            case 4:\n                            case \"end\":\n                              return _context18.stop();\n                          }\n                        }, _loop);\n                      });\n                      _pageNum = 2;\n                    case 12:\n                      if (!(_pageNum <= pagesCount)) {\n                        _context19.next = 17;\n                        break;\n                      }\n                      return _context19.delegateYield(_loop(_pageNum), \"t0\", 14);\n                    case 14:\n                      ++_pageNum;\n                      _context19.next = 12;\n                      break;\n                    case 17:\n                    case \"end\":\n                      return _context19.stop();\n                  }\n                }, _callee9);\n              })));\n              _this6.eventBus.dispatch(\"pagesinit\", {\n                source: _this6\n              });\n              pdfDocument.getMetadata().then(function (_ref2) {\n                var info = _ref2.info;\n                if (pdfDocument !== _this6.pdfDocument) {\n                  return;\n                }\n                if (info.Language) {\n                  _this6.viewer.lang = info.Language;\n                }\n              });\n              if (_this6.defaultRenderingQueue) {\n                _this6.update();\n              }\n            }).catch(function (reason) {\n              console.error(\"Unable to initialize viewer\", reason);\n              _this6._pagesCapability.reject(reason);\n            });\n          }\n        }, {\n          key: \"setPageLabels\",\n          value: function setPageLabels(labels) {\n            if (!this.pdfDocument) {\n              return;\n            }\n            if (!labels) {\n              this._pageLabels = null;\n            } else if (!(Array.isArray(labels) && this.pdfDocument.numPages === labels.length)) {\n              this._pageLabels = null;\n              console.error(\"setPageLabels: Invalid page labels.\");\n            } else {\n              this._pageLabels = labels;\n            }\n            for (var i = 0, ii = this._pages.length; i < ii; i++) {\n              var _this$_pageLabels$i, _this$_pageLabels5;\n              this._pages[i].setPageLabel((_this$_pageLabels$i = (_this$_pageLabels5 = this._pageLabels) === null || _this$_pageLabels5 === void 0 ? void 0 : _this$_pageLabels5[i]) !== null && _this$_pageLabels$i !== void 0 ? _this$_pageLabels$i : null);\n            }\n          }\n        }, {\n          key: \"_resetView\",\n          value: function _resetView() {\n            this._pages = [];\n            this._currentPageNumber = 1;\n            this._currentScale = _ui_utils.UNKNOWN_SCALE;\n            this._currentScaleValue = null;\n            this._pageLabels = null;\n            _classPrivateFieldSet(this, _buffer, new PDFPageViewBuffer(DEFAULT_CACHE_SIZE));\n            this._location = null;\n            this._pagesRotation = 0;\n            this._optionalContentConfigPromise = null;\n            this._firstPageCapability = (0, _pdfjsLib.createPromiseCapability)();\n            this._onePageRenderedCapability = (0, _pdfjsLib.createPromiseCapability)();\n            this._pagesCapability = (0, _pdfjsLib.createPromiseCapability)();\n            this._scrollMode = _ui_utils.ScrollMode.VERTICAL;\n            this._previousScrollMode = _ui_utils.ScrollMode.UNKNOWN;\n            this._spreadMode = _ui_utils.SpreadMode.NONE;\n            _classPrivateFieldSet(this, _scrollModePageState, {\n              previousPageNumber: 1,\n              scrollDown: true,\n              pages: []\n            });\n            if (this._onBeforeDraw) {\n              this.eventBus._off(\"pagerender\", this._onBeforeDraw);\n              this._onBeforeDraw = null;\n            }\n            if (this._onAfterDraw) {\n              this.eventBus._off(\"pagerendered\", this._onAfterDraw);\n              this._onAfterDraw = null;\n            }\n            if (_classPrivateFieldGet(this, _onVisibilityChange)) {\n              document.removeEventListener(\"visibilitychange\", _classPrivateFieldGet(this, _onVisibilityChange));\n              _classPrivateFieldSet(this, _onVisibilityChange, null);\n            }\n            this.viewer.textContent = \"\";\n            this._updateScrollMode();\n            this.viewer.removeAttribute(\"lang\");\n            this.viewer.classList.remove(ENABLE_PERMISSIONS_CLASS);\n          }\n        }, {\n          key: \"_scrollUpdate\",\n          value: function _scrollUpdate() {\n            if (this.pagesCount === 0) {\n              return;\n            }\n            this.update();\n          }\n        }, {\n          key: \"_setScaleUpdatePages\",\n          value: function _setScaleUpdatePages(newScale, newValue) {\n            var noScroll = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n            var preset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n            this._currentScaleValue = newValue.toString();\n            if (_classPrivateMethodGet(this, _isSameScale, _isSameScale2).call(this, newScale)) {\n              if (preset) {\n                this.eventBus.dispatch(\"scalechanging\", {\n                  source: this,\n                  scale: newScale,\n                  presetValue: newValue\n                });\n              }\n              return;\n            }\n            _ui_utils.docStyle.setProperty(\"--scale-factor\", newScale * _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS);\n            var updateArgs = {\n              scale: newScale\n            };\n            var _iterator5 = _createForOfIteratorHelper(this._pages),\n              _step5;\n            try {\n              for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n                var pageView = _step5.value;\n                pageView.update(updateArgs);\n              }\n            } catch (err) {\n              _iterator5.e(err);\n            } finally {\n              _iterator5.f();\n            }\n            this._currentScale = newScale;\n            if (!noScroll) {\n              var page = this._currentPageNumber,\n                dest;\n              if (this._location && !(this.isInPresentationMode || this.isChangingPresentationMode)) {\n                page = this._location.pageNumber;\n                dest = [null, {\n                  name: \"XYZ\"\n                }, this._location.left, this._location.top, null];\n              }\n              this.scrollPageIntoView({\n                pageNumber: page,\n                destArray: dest,\n                allowNegativeOffset: true\n              });\n            }\n            this.eventBus.dispatch(\"scalechanging\", {\n              source: this,\n              scale: newScale,\n              presetValue: preset ? newValue : undefined\n            });\n            if (this.defaultRenderingQueue) {\n              this.update();\n            }\n            this.updateContainerHeightCss();\n          }\n        }, {\n          key: \"_pageWidthScaleFactor\",\n          get: function get() {\n            if (this._spreadMode !== _ui_utils.SpreadMode.NONE && this._scrollMode !== _ui_utils.ScrollMode.HORIZONTAL) {\n              return 2;\n            }\n            return 1;\n          }\n        }, {\n          key: \"_setScale\",\n          value: function _setScale(value) {\n            var noScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n            var scale = _parseFloat(value);\n            if (scale > 0) {\n              this._setScaleUpdatePages(scale, value, noScroll, false);\n            } else {\n              var currentPage = this._pages[this._currentPageNumber - 1];\n              if (!currentPage) {\n                return;\n              }\n              var hPadding = _ui_utils.SCROLLBAR_PADDING,\n                vPadding = _ui_utils.VERTICAL_PADDING;\n              if (this.isInPresentationMode) {\n                hPadding = vPadding = 4;\n              } else if (this.removePageBorders) {\n                hPadding = vPadding = 0;\n              } else if (this._scrollMode === _ui_utils.ScrollMode.HORIZONTAL) {\n                var _ref15 = [vPadding, hPadding];\n                hPadding = _ref15[0];\n                vPadding = _ref15[1];\n              }\n              var pageWidthScale = (this.container.clientWidth - hPadding) / currentPage.width * currentPage.scale / this._pageWidthScaleFactor;\n              var pageHeightScale = (this.container.clientHeight - vPadding) / currentPage.height * currentPage.scale;\n              switch (value) {\n                case \"page-actual\":\n                  scale = 1;\n                  break;\n                case \"page-width\":\n                  scale = pageWidthScale;\n                  break;\n                case \"page-height\":\n                  scale = pageHeightScale;\n                  break;\n                case \"page-fit\":\n                  scale = Math.min(pageWidthScale, pageHeightScale);\n                  break;\n                case \"auto\":\n                  var horizontalScale = (0, _ui_utils.isPortraitOrientation)(currentPage) ? pageWidthScale : Math.min(pageHeightScale, pageWidthScale);\n                  scale = Math.min(_ui_utils.MAX_AUTO_SCALE, horizontalScale);\n                  break;\n                default:\n                  console.error(\"_setScale: \\\"\".concat(value, \"\\\" is an unknown zoom value.\"));\n                  return;\n              }\n              this._setScaleUpdatePages(scale, value, noScroll, true);\n            }\n          }\n        }, {\n          key: \"pageLabelToPageNumber\",\n          value: function pageLabelToPageNumber(label) {\n            var _context20;\n            if (!this._pageLabels) {\n              return null;\n            }\n            var i = _indexOfInstanceProperty(_context20 = this._pageLabels).call(_context20, label);\n            if (i < 0) {\n              return null;\n            }\n            return i + 1;\n          }\n        }, {\n          key: \"scrollPageIntoView\",\n          value: function scrollPageIntoView(_ref3) {\n            var pageNumber = _ref3.pageNumber,\n              _ref3$destArray = _ref3.destArray,\n              destArray = _ref3$destArray === void 0 ? null : _ref3$destArray,\n              _ref3$allowNegativeOf = _ref3.allowNegativeOffset,\n              allowNegativeOffset = _ref3$allowNegativeOf === void 0 ? false : _ref3$allowNegativeOf,\n              _ref3$ignoreDestinati = _ref3.ignoreDestinationZoom,\n              ignoreDestinationZoom = _ref3$ignoreDestinati === void 0 ? false : _ref3$ignoreDestinati;\n            if (!this.pdfDocument) {\n              return;\n            }\n            var pageView = _Number$isInteger(pageNumber) && this._pages[pageNumber - 1];\n            if (!pageView) {\n              console.error(\"scrollPageIntoView: \\\"\".concat(pageNumber, \"\\\" is not a valid pageNumber parameter.\"));\n              return;\n            }\n            if (this.isInPresentationMode || !destArray) {\n              this._setCurrentPageNumber(pageNumber, true);\n              return;\n            }\n            var x = 0,\n              y = 0;\n            var width = 0,\n              height = 0,\n              widthScale,\n              heightScale;\n            var changeOrientation = pageView.rotation % 180 !== 0;\n            var pageWidth = (changeOrientation ? pageView.height : pageView.width) / pageView.scale / _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS;\n            var pageHeight = (changeOrientation ? pageView.width : pageView.height) / pageView.scale / _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS;\n            var scale = 0;\n            switch (destArray[1].name) {\n              case \"XYZ\":\n                x = destArray[2];\n                y = destArray[3];\n                scale = destArray[4];\n                x = x !== null ? x : 0;\n                y = y !== null ? y : pageHeight;\n                break;\n              case \"Fit\":\n              case \"FitB\":\n                scale = \"page-fit\";\n                break;\n              case \"FitH\":\n              case \"FitBH\":\n                y = destArray[2];\n                scale = \"page-width\";\n                if (y === null && this._location) {\n                  x = this._location.left;\n                  y = this._location.top;\n                } else if (typeof y !== \"number\" || y < 0) {\n                  y = pageHeight;\n                }\n                break;\n              case \"FitV\":\n              case \"FitBV\":\n                x = destArray[2];\n                width = pageWidth;\n                height = pageHeight;\n                scale = \"page-height\";\n                break;\n              case \"FitR\":\n                x = destArray[2];\n                y = destArray[3];\n                width = destArray[4] - x;\n                height = destArray[5] - y;\n                var hPadding = this.removePageBorders ? 0 : _ui_utils.SCROLLBAR_PADDING;\n                var vPadding = this.removePageBorders ? 0 : _ui_utils.VERTICAL_PADDING;\n                widthScale = (this.container.clientWidth - hPadding) / width / _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS;\n                heightScale = (this.container.clientHeight - vPadding) / height / _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS;\n                scale = Math.min(Math.abs(widthScale), Math.abs(heightScale));\n                break;\n              default:\n                console.error(\"scrollPageIntoView: \\\"\".concat(destArray[1].name, \"\\\" is not a valid destination type.\"));\n                return;\n            }\n            if (!ignoreDestinationZoom) {\n              if (scale && scale !== this._currentScale) {\n                this.currentScaleValue = scale;\n              } else if (this._currentScale === _ui_utils.UNKNOWN_SCALE) {\n                this.currentScaleValue = _ui_utils.DEFAULT_SCALE_VALUE;\n              }\n            }\n            if (scale === \"page-fit\" && !destArray[4]) {\n              _classPrivateMethodGet(this, _scrollIntoView, _scrollIntoView2).call(this, pageView);\n              return;\n            }\n            var boundingRect = [pageView.viewport.convertToViewportPoint(x, y), pageView.viewport.convertToViewportPoint(x + width, y + height)];\n            var left = Math.min(boundingRect[0][0], boundingRect[1][0]);\n            var top = Math.min(boundingRect[0][1], boundingRect[1][1]);\n            if (!allowNegativeOffset) {\n              left = Math.max(left, 0);\n              top = Math.max(top, 0);\n            }\n            _classPrivateMethodGet(this, _scrollIntoView, _scrollIntoView2).call(this, pageView, {\n              left: left,\n              top: top\n            });\n          }\n        }, {\n          key: \"_updateLocation\",\n          value: function _updateLocation(firstPage) {\n            var currentScale = this._currentScale;\n            var currentScaleValue = this._currentScaleValue;\n            var normalizedScaleValue = _parseFloat(currentScaleValue) === currentScale ? Math.round(currentScale * 10000) / 100 : currentScaleValue;\n            var pageNumber = firstPage.id;\n            var currentPageView = this._pages[pageNumber - 1];\n            var container = this.container;\n            var topLeft = currentPageView.getPagePoint(container.scrollLeft - firstPage.x, container.scrollTop - firstPage.y);\n            var intLeft = Math.round(topLeft[0]);\n            var intTop = Math.round(topLeft[1]);\n            var pdfOpenParams = \"#page=\".concat(pageNumber);\n            if (!this.isInPresentationMode) {\n              var _context21, _context22;\n              pdfOpenParams += _concatInstanceProperty(_context21 = _concatInstanceProperty(_context22 = \"&zoom=\".concat(normalizedScaleValue, \",\")).call(_context22, intLeft, \",\")).call(_context21, intTop);\n            }\n            this._location = {\n              pageNumber: pageNumber,\n              scale: normalizedScaleValue,\n              top: intTop,\n              left: intLeft,\n              rotation: this._pagesRotation,\n              pdfOpenParams: pdfOpenParams\n            };\n          }\n        }, {\n          key: \"update\",\n          value: function update() {\n            var visible = this._getVisiblePages();\n            var visiblePages = visible.views,\n              numVisiblePages = visiblePages.length;\n            if (numVisiblePages === 0) {\n              return;\n            }\n            var newCacheSize = Math.max(DEFAULT_CACHE_SIZE, 2 * numVisiblePages + 1);\n            _classPrivateFieldGet(this, _buffer).resize(newCacheSize, visible.ids);\n            this.renderingQueue.renderHighestPriority(visible);\n            var isSimpleLayout = this._spreadMode === _ui_utils.SpreadMode.NONE && (this._scrollMode === _ui_utils.ScrollMode.PAGE || this._scrollMode === _ui_utils.ScrollMode.VERTICAL);\n            var currentId = this._currentPageNumber;\n            var stillFullyVisible = false;\n            var _iterator6 = _createForOfIteratorHelper(visiblePages),\n              _step6;\n            try {\n              for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {\n                var page = _step6.value;\n                if (page.percent < 100) {\n                  break;\n                }\n                if (page.id === currentId && isSimpleLayout) {\n                  stillFullyVisible = true;\n                  break;\n                }\n              }\n            } catch (err) {\n              _iterator6.e(err);\n            } finally {\n              _iterator6.f();\n            }\n            this._setCurrentPageNumber(stillFullyVisible ? currentId : visiblePages[0].id);\n            this._updateLocation(visible.first);\n            this.eventBus.dispatch(\"updateviewarea\", {\n              source: this,\n              location: this._location\n            });\n          }\n        }, {\n          key: \"containsElement\",\n          value: function containsElement(element) {\n            return this.container.contains(element);\n          }\n        }, {\n          key: \"focus\",\n          value: function focus() {\n            this.container.focus();\n          }\n        }, {\n          key: \"_isContainerRtl\",\n          get: function get() {\n            return getComputedStyle(this.container).direction === \"rtl\";\n          }\n        }, {\n          key: \"isInPresentationMode\",\n          get: function get() {\n            return this.presentationModeState === _ui_utils.PresentationModeState.FULLSCREEN;\n          }\n        }, {\n          key: \"isChangingPresentationMode\",\n          get: function get() {\n            return this.presentationModeState === _ui_utils.PresentationModeState.CHANGING;\n          }\n        }, {\n          key: \"isHorizontalScrollbarEnabled\",\n          get: function get() {\n            return this.isInPresentationMode ? false : this.container.scrollWidth > this.container.clientWidth;\n          }\n        }, {\n          key: \"isVerticalScrollbarEnabled\",\n          get: function get() {\n            return this.isInPresentationMode ? false : this.container.scrollHeight > this.container.clientHeight;\n          }\n        }, {\n          key: \"_getVisiblePages\",\n          value: function _getVisiblePages() {\n            var views = this._scrollMode === _ui_utils.ScrollMode.PAGE ? _classPrivateFieldGet(this, _scrollModePageState).pages : this._pages,\n              horizontal = this._scrollMode === _ui_utils.ScrollMode.HORIZONTAL,\n              rtl = horizontal && this._isContainerRtl;\n            return (0, _ui_utils.getVisibleElements)({\n              scrollEl: this.container,\n              views: views,\n              sortByVisibility: true,\n              horizontal: horizontal,\n              rtl: rtl\n            });\n          }\n        }, {\n          key: \"isPageVisible\",\n          value: function isPageVisible(pageNumber) {\n            if (!this.pdfDocument) {\n              return false;\n            }\n            if (!(_Number$isInteger(pageNumber) && pageNumber > 0 && pageNumber <= this.pagesCount)) {\n              console.error(\"isPageVisible: \\\"\".concat(pageNumber, \"\\\" is not a valid page.\"));\n              return false;\n            }\n            return this._getVisiblePages().ids.has(pageNumber);\n          }\n        }, {\n          key: \"isPageCached\",\n          value: function isPageCached(pageNumber) {\n            if (!this.pdfDocument) {\n              return false;\n            }\n            if (!(_Number$isInteger(pageNumber) && pageNumber > 0 && pageNumber <= this.pagesCount)) {\n              console.error(\"isPageCached: \\\"\".concat(pageNumber, \"\\\" is not a valid page.\"));\n              return false;\n            }\n            var pageView = this._pages[pageNumber - 1];\n            return _classPrivateFieldGet(this, _buffer).has(pageView);\n          }\n        }, {\n          key: \"cleanup\",\n          value: function cleanup() {\n            var _iterator7 = _createForOfIteratorHelper(this._pages),\n              _step7;\n            try {\n              for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {\n                var pageView = _step7.value;\n                if (pageView.renderingState !== _ui_utils.RenderingStates.FINISHED) {\n                  pageView.reset();\n                }\n              }\n            } catch (err) {\n              _iterator7.e(err);\n            } finally {\n              _iterator7.f();\n            }\n          }\n        }, {\n          key: \"_cancelRendering\",\n          value: function _cancelRendering() {\n            var _iterator8 = _createForOfIteratorHelper(this._pages),\n              _step8;\n            try {\n              for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {\n                var pageView = _step8.value;\n                pageView.cancelRendering();\n              }\n            } catch (err) {\n              _iterator8.e(err);\n            } finally {\n              _iterator8.f();\n            }\n          }\n        }, {\n          key: \"forceRendering\",\n          value: function forceRendering(currentlyVisiblePages) {\n            var _this7 = this;\n            var visiblePages = currentlyVisiblePages || this._getVisiblePages();\n            var scrollAhead = _classPrivateMethodGet(this, _getScrollAhead, _getScrollAhead2).call(this, visiblePages);\n            var preRenderExtra = this._spreadMode !== _ui_utils.SpreadMode.NONE && this._scrollMode !== _ui_utils.ScrollMode.HORIZONTAL;\n            var pageView = this.renderingQueue.getHighestPriority(visiblePages, this._pages, scrollAhead, preRenderExtra);\n            _classPrivateMethodGet(this, _toggleLoadingIconSpinner, _toggleLoadingIconSpinner2).call(this, visiblePages.ids);\n            if (pageView) {\n              _classPrivateMethodGet(this, _ensurePdfPageLoaded, _ensurePdfPageLoaded2).call(this, pageView).then(function () {\n                _this7.renderingQueue.renderView(pageView);\n              });\n              return true;\n            }\n            return false;\n          }\n        }, {\n          key: \"createTextLayerBuilder\",\n          value: function createTextLayerBuilder(_ref4) {\n            var textLayerDiv = _ref4.textLayerDiv,\n              pageIndex = _ref4.pageIndex,\n              viewport = _ref4.viewport,\n              _ref4$enhanceTextSele2 = _ref4.enhanceTextSelection,\n              enhanceTextSelection = _ref4$enhanceTextSele2 === void 0 ? false : _ref4$enhanceTextSele2,\n              eventBus = _ref4.eventBus,\n              highlighter = _ref4.highlighter,\n              _ref4$accessibilityMa2 = _ref4.accessibilityManager,\n              accessibilityManager = _ref4$accessibilityMa2 === void 0 ? null : _ref4$accessibilityMa2;\n            return new _text_layer_builder.TextLayerBuilder({\n              textLayerDiv: textLayerDiv,\n              eventBus: eventBus,\n              pageIndex: pageIndex,\n              viewport: viewport,\n              enhanceTextSelection: this.isInPresentationMode ? false : enhanceTextSelection,\n              highlighter: highlighter,\n              accessibilityManager: accessibilityManager\n            });\n          }\n        }, {\n          key: \"createTextHighlighter\",\n          value: function createTextHighlighter(_ref5) {\n            var pageIndex = _ref5.pageIndex,\n              eventBus = _ref5.eventBus;\n            return new _text_highlighter.TextHighlighter({\n              eventBus: eventBus,\n              pageIndex: pageIndex,\n              findController: this.isInPresentationMode ? null : this.findController\n            });\n          }\n        }, {\n          key: \"createAnnotationLayerBuilder\",\n          value: function createAnnotationLayerBuilder(_ref6) {\n            var _this$pdfDocument, _this$pdfDocument2, _this$_scriptingManag, _this$pdfDocument3;\n            var pageDiv = _ref6.pageDiv,\n              pdfPage = _ref6.pdfPage,\n              _ref6$annotationStora = _ref6.annotationStorage,\n              annotationStorage = _ref6$annotationStora === void 0 ? (_this$pdfDocument = this.pdfDocument) === null || _this$pdfDocument === void 0 ? void 0 : _this$pdfDocument.annotationStorage : _ref6$annotationStora,\n              _ref6$imageResourcesP = _ref6.imageResourcesPath,\n              imageResourcesPath = _ref6$imageResourcesP === void 0 ? \"\" : _ref6$imageResourcesP,\n              _ref6$renderForms = _ref6.renderForms,\n              renderForms = _ref6$renderForms === void 0 ? true : _ref6$renderForms,\n              _ref6$l10n = _ref6.l10n,\n              l10n = _ref6$l10n === void 0 ? _l10n_utils.NullL10n : _ref6$l10n,\n              _ref6$enableScripting = _ref6.enableScripting,\n              enableScripting = _ref6$enableScripting === void 0 ? this.enableScripting : _ref6$enableScripting,\n              _ref6$hasJSActionsPro = _ref6.hasJSActionsPromise,\n              hasJSActionsPromise = _ref6$hasJSActionsPro === void 0 ? (_this$pdfDocument2 = this.pdfDocument) === null || _this$pdfDocument2 === void 0 ? void 0 : _this$pdfDocument2.hasJSActions() : _ref6$hasJSActionsPro,\n              _ref6$mouseState = _ref6.mouseState,\n              mouseState = _ref6$mouseState === void 0 ? (_this$_scriptingManag = this._scriptingManager) === null || _this$_scriptingManag === void 0 ? void 0 : _this$_scriptingManag.mouseState : _ref6$mouseState,\n              _ref6$fieldObjectsPro = _ref6.fieldObjectsPromise,\n              fieldObjectsPromise = _ref6$fieldObjectsPro === void 0 ? (_this$pdfDocument3 = this.pdfDocument) === null || _this$pdfDocument3 === void 0 ? void 0 : _this$pdfDocument3.getFieldObjects() : _ref6$fieldObjectsPro,\n              _ref6$annotationCanva = _ref6.annotationCanvasMap,\n              annotationCanvasMap = _ref6$annotationCanva === void 0 ? null : _ref6$annotationCanva,\n              _ref6$accessibilityMa = _ref6.accessibilityManager,\n              accessibilityManager = _ref6$accessibilityMa === void 0 ? null : _ref6$accessibilityMa;\n            return new _annotation_layer_builder.AnnotationLayerBuilder({\n              pageDiv: pageDiv,\n              pdfPage: pdfPage,\n              annotationStorage: annotationStorage,\n              imageResourcesPath: imageResourcesPath,\n              renderForms: renderForms,\n              linkService: this.linkService,\n              downloadManager: this.downloadManager,\n              l10n: l10n,\n              enableScripting: enableScripting,\n              hasJSActionsPromise: hasJSActionsPromise,\n              mouseState: mouseState,\n              fieldObjectsPromise: fieldObjectsPromise,\n              annotationCanvasMap: annotationCanvasMap,\n              accessibilityManager: accessibilityManager\n            });\n          }\n        }, {\n          key: \"createAnnotationEditorLayerBuilder\",\n          value: function createAnnotationEditorLayerBuilder(_ref7) {\n            var _this$pdfDocument4;\n            var _ref7$uiManager = _ref7.uiManager,\n              uiManager = _ref7$uiManager === void 0 ? _classPrivateFieldGet(this, _annotationEditorUIManager) : _ref7$uiManager,\n              pageDiv = _ref7.pageDiv,\n              pdfPage = _ref7.pdfPage,\n              _ref7$accessibilityMa = _ref7.accessibilityManager,\n              accessibilityManager = _ref7$accessibilityMa === void 0 ? null : _ref7$accessibilityMa,\n              l10n = _ref7.l10n,\n              _ref7$annotationStora = _ref7.annotationStorage,\n              annotationStorage = _ref7$annotationStora === void 0 ? (_this$pdfDocument4 = this.pdfDocument) === null || _this$pdfDocument4 === void 0 ? void 0 : _this$pdfDocument4.annotationStorage : _ref7$annotationStora;\n            return new _annotation_editor_layer_builder.AnnotationEditorLayerBuilder({\n              uiManager: uiManager,\n              pageDiv: pageDiv,\n              pdfPage: pdfPage,\n              annotationStorage: annotationStorage,\n              accessibilityManager: accessibilityManager,\n              l10n: l10n\n            });\n          }\n        }, {\n          key: \"createXfaLayerBuilder\",\n          value: function createXfaLayerBuilder(_ref8) {\n            var _this$pdfDocument5;\n            var pageDiv = _ref8.pageDiv,\n              pdfPage = _ref8.pdfPage,\n              _ref8$annotationStora = _ref8.annotationStorage,\n              annotationStorage = _ref8$annotationStora === void 0 ? (_this$pdfDocument5 = this.pdfDocument) === null || _this$pdfDocument5 === void 0 ? void 0 : _this$pdfDocument5.annotationStorage : _ref8$annotationStora;\n            return new _xfa_layer_builder.XfaLayerBuilder({\n              pageDiv: pageDiv,\n              pdfPage: pdfPage,\n              annotationStorage: annotationStorage,\n              linkService: this.linkService\n            });\n          }\n        }, {\n          key: \"createStructTreeLayerBuilder\",\n          value: function createStructTreeLayerBuilder(_ref9) {\n            var pdfPage = _ref9.pdfPage;\n            return new _struct_tree_layer_builder.StructTreeLayerBuilder({\n              pdfPage: pdfPage\n            });\n          }\n        }, {\n          key: \"hasEqualPageSizes\",\n          get: function get() {\n            var firstPageView = this._pages[0];\n            for (var i = 1, ii = this._pages.length; i < ii; ++i) {\n              var pageView = this._pages[i];\n              if (pageView.width !== firstPageView.width || pageView.height !== firstPageView.height) {\n                return false;\n              }\n            }\n            return true;\n          }\n        }, {\n          key: \"getPagesOverview\",\n          value: function getPagesOverview() {\n            var _context23,\n              _this8 = this;\n            return _mapInstanceProperty(_context23 = this._pages).call(_context23, function (pageView) {\n              var viewport = pageView.pdfPage.getViewport({\n                scale: 1\n              });\n              if (!_this8.enablePrintAutoRotate || (0, _ui_utils.isPortraitOrientation)(viewport)) {\n                return {\n                  width: viewport.width,\n                  height: viewport.height,\n                  rotation: viewport.rotation\n                };\n              }\n              return {\n                width: viewport.height,\n                height: viewport.width,\n                rotation: (viewport.rotation - 90) % 360\n              };\n            });\n          }\n        }, {\n          key: \"optionalContentConfigPromise\",\n          get: function get() {\n            if (!this.pdfDocument) {\n              return _Promise.resolve(null);\n            }\n            if (!this._optionalContentConfigPromise) {\n              console.error(\"optionalContentConfigPromise: Not initialized yet.\");\n              return this.pdfDocument.getOptionalContentConfig();\n            }\n            return this._optionalContentConfigPromise;\n          },\n          set: function set(promise) {\n            if (!(promise instanceof _Promise)) {\n              throw new Error(\"Invalid optionalContentConfigPromise: \".concat(promise));\n            }\n            if (!this.pdfDocument) {\n              return;\n            }\n            if (!this._optionalContentConfigPromise) {\n              return;\n            }\n            this._optionalContentConfigPromise = promise;\n            var updateArgs = {\n              optionalContentConfigPromise: promise\n            };\n            var _iterator9 = _createForOfIteratorHelper(this._pages),\n              _step9;\n            try {\n              for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {\n                var pageView = _step9.value;\n                pageView.update(updateArgs);\n              }\n            } catch (err) {\n              _iterator9.e(err);\n            } finally {\n              _iterator9.f();\n            }\n            this.update();\n            this.eventBus.dispatch(\"optionalcontentconfigchanged\", {\n              source: this,\n              promise: promise\n            });\n          }\n        }, {\n          key: \"scrollMode\",\n          get: function get() {\n            return this._scrollMode;\n          },\n          set: function set(mode) {\n            if (this._scrollMode === mode) {\n              return;\n            }\n            if (!(0, _ui_utils.isValidScrollMode)(mode)) {\n              throw new Error(\"Invalid scroll mode: \".concat(mode));\n            }\n            if (this.pagesCount > PagesCountLimit.FORCE_SCROLL_MODE_PAGE) {\n              return;\n            }\n            this._previousScrollMode = this._scrollMode;\n            this._scrollMode = mode;\n            this.eventBus.dispatch(\"scrollmodechanged\", {\n              source: this,\n              mode: mode\n            });\n            this._updateScrollMode(this._currentPageNumber);\n          }\n        }, {\n          key: \"_updateScrollMode\",\n          value: function _updateScrollMode() {\n            var pageNumber = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n            var scrollMode = this._scrollMode,\n              viewer = this.viewer;\n            viewer.classList.toggle(\"scrollHorizontal\", scrollMode === _ui_utils.ScrollMode.HORIZONTAL);\n            viewer.classList.toggle(\"scrollWrapped\", scrollMode === _ui_utils.ScrollMode.WRAPPED);\n            if (!this.pdfDocument || !pageNumber) {\n              return;\n            }\n            if (scrollMode === _ui_utils.ScrollMode.PAGE) {\n              _classPrivateMethodGet(this, _ensurePageViewVisible, _ensurePageViewVisible2).call(this);\n            } else if (this._previousScrollMode === _ui_utils.ScrollMode.PAGE) {\n              this._updateSpreadMode();\n            }\n            if (this._currentScaleValue && isNaN(this._currentScaleValue)) {\n              this._setScale(this._currentScaleValue, true);\n            }\n            this._setCurrentPageNumber(pageNumber, true);\n            this.update();\n          }\n        }, {\n          key: \"spreadMode\",\n          get: function get() {\n            return this._spreadMode;\n          },\n          set: function set(mode) {\n            if (this._spreadMode === mode) {\n              return;\n            }\n            if (!(0, _ui_utils.isValidSpreadMode)(mode)) {\n              throw new Error(\"Invalid spread mode: \".concat(mode));\n            }\n            this._spreadMode = mode;\n            this.eventBus.dispatch(\"spreadmodechanged\", {\n              source: this,\n              mode: mode\n            });\n            this._updateSpreadMode(this._currentPageNumber);\n          }\n        }, {\n          key: \"_updateSpreadMode\",\n          value: function _updateSpreadMode() {\n            var pageNumber = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n            if (!this.pdfDocument) {\n              return;\n            }\n            var viewer = this.viewer,\n              pages = this._pages;\n            if (this._scrollMode === _ui_utils.ScrollMode.PAGE) {\n              _classPrivateMethodGet(this, _ensurePageViewVisible, _ensurePageViewVisible2).call(this);\n            } else {\n              viewer.textContent = \"\";\n              if (this._spreadMode === _ui_utils.SpreadMode.NONE) {\n                var _iterator10 = _createForOfIteratorHelper(this._pages),\n                  _step10;\n                try {\n                  for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {\n                    var pageView = _step10.value;\n                    viewer.append(pageView.div);\n                  }\n                } catch (err) {\n                  _iterator10.e(err);\n                } finally {\n                  _iterator10.f();\n                }\n              } else {\n                var parity = this._spreadMode - 1;\n                var spread = null;\n                for (var i = 0, ii = pages.length; i < ii; ++i) {\n                  if (spread === null) {\n                    spread = document.createElement(\"div\");\n                    spread.className = \"spread\";\n                    viewer.append(spread);\n                  } else if (i % 2 === parity) {\n                    spread = spread.cloneNode(false);\n                    viewer.append(spread);\n                  }\n                  spread.append(pages[i].div);\n                }\n              }\n            }\n            if (!pageNumber) {\n              return;\n            }\n            if (this._currentScaleValue && isNaN(this._currentScaleValue)) {\n              this._setScale(this._currentScaleValue, true);\n            }\n            this._setCurrentPageNumber(pageNumber, true);\n            this.update();\n          }\n        }, {\n          key: \"_getPageAdvance\",\n          value: function _getPageAdvance(currentPageNumber) {\n            var previous = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n            switch (this._scrollMode) {\n              case _ui_utils.ScrollMode.WRAPPED:\n                {\n                  var _this$_getVisiblePage = this._getVisiblePages(),\n                    views = _this$_getVisiblePage.views,\n                    pageLayout = new _Map();\n                  var _iterator11 = _createForOfIteratorHelper(views),\n                    _step11;\n                  try {\n                    for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {\n                      var _step11$value = _step11.value,\n                        id = _step11$value.id,\n                        y = _step11$value.y,\n                        percent = _step11$value.percent,\n                        widthPercent = _step11$value.widthPercent;\n                      if (percent === 0 || widthPercent < 100) {\n                        continue;\n                      }\n                      var yArray = pageLayout.get(y);\n                      if (!yArray) {\n                        pageLayout.set(y, yArray || (yArray = []));\n                      }\n                      yArray.push(id);\n                    }\n                  } catch (err) {\n                    _iterator11.e(err);\n                  } finally {\n                    _iterator11.f();\n                  }\n                  var _iterator12 = _createForOfIteratorHelper(_valuesInstanceProperty(pageLayout).call(pageLayout)),\n                    _step12;\n                  try {\n                    for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {\n                      var _yArray = _step12.value;\n                      var currentIndex = _indexOfInstanceProperty(_yArray).call(_yArray, currentPageNumber);\n                      if (currentIndex === -1) {\n                        continue;\n                      }\n                      var numPages = _yArray.length;\n                      if (numPages === 1) {\n                        break;\n                      }\n                      if (previous) {\n                        for (var i = currentIndex - 1, ii = 0; i >= ii; i--) {\n                          var currentId = _yArray[i],\n                            expectedId = _yArray[i + 1] - 1;\n                          if (currentId < expectedId) {\n                            return currentPageNumber - expectedId;\n                          }\n                        }\n                      } else {\n                        for (var _i = currentIndex + 1, _ii = numPages; _i < _ii; _i++) {\n                          var _currentId = _yArray[_i],\n                            _expectedId = _yArray[_i - 1] + 1;\n                          if (_currentId > _expectedId) {\n                            return _expectedId - currentPageNumber;\n                          }\n                        }\n                      }\n                      if (previous) {\n                        var firstId = _yArray[0];\n                        if (firstId < currentPageNumber) {\n                          return currentPageNumber - firstId + 1;\n                        }\n                      } else {\n                        var lastId = _yArray[numPages - 1];\n                        if (lastId > currentPageNumber) {\n                          return lastId - currentPageNumber + 1;\n                        }\n                      }\n                      break;\n                    }\n                  } catch (err) {\n                    _iterator12.e(err);\n                  } finally {\n                    _iterator12.f();\n                  }\n                  break;\n                }\n              case _ui_utils.ScrollMode.HORIZONTAL:\n                {\n                  break;\n                }\n              case _ui_utils.ScrollMode.PAGE:\n              case _ui_utils.ScrollMode.VERTICAL:\n                {\n                  if (this._spreadMode === _ui_utils.SpreadMode.NONE) {\n                    break;\n                  }\n                  var parity = this._spreadMode - 1;\n                  if (previous && currentPageNumber % 2 !== parity) {\n                    break;\n                  } else if (!previous && currentPageNumber % 2 === parity) {\n                    break;\n                  }\n                  var _this$_getVisiblePage2 = this._getVisiblePages(),\n                    _views = _this$_getVisiblePage2.views,\n                    _expectedId2 = previous ? currentPageNumber - 1 : currentPageNumber + 1;\n                  var _iterator13 = _createForOfIteratorHelper(_views),\n                    _step13;\n                  try {\n                    for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {\n                      var _step13$value = _step13.value,\n                        _id = _step13$value.id,\n                        _percent2 = _step13$value.percent,\n                        _widthPercent = _step13$value.widthPercent;\n                      if (_id !== _expectedId2) {\n                        continue;\n                      }\n                      if (_percent2 > 0 && _widthPercent === 100) {\n                        return 2;\n                      }\n                      break;\n                    }\n                  } catch (err) {\n                    _iterator13.e(err);\n                  } finally {\n                    _iterator13.f();\n                  }\n                  break;\n                }\n            }\n            return 1;\n          }\n        }, {\n          key: \"nextPage\",\n          value: function nextPage() {\n            var currentPageNumber = this._currentPageNumber,\n              pagesCount = this.pagesCount;\n            if (currentPageNumber >= pagesCount) {\n              return false;\n            }\n            var advance = this._getPageAdvance(currentPageNumber, false) || 1;\n            this.currentPageNumber = Math.min(currentPageNumber + advance, pagesCount);\n            return true;\n          }\n        }, {\n          key: \"previousPage\",\n          value: function previousPage() {\n            var currentPageNumber = this._currentPageNumber;\n            if (currentPageNumber <= 1) {\n              return false;\n            }\n            var advance = this._getPageAdvance(currentPageNumber, true) || 1;\n            this.currentPageNumber = Math.max(currentPageNumber - advance, 1);\n            return true;\n          }\n        }, {\n          key: \"increaseScale\",\n          value: function increaseScale() {\n            var steps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n            var newScale = this._currentScale;\n            do {\n              newScale = (newScale * _ui_utils.DEFAULT_SCALE_DELTA).toFixed(2);\n              newScale = Math.ceil(newScale * 10) / 10;\n              newScale = Math.min(_ui_utils.MAX_SCALE, newScale);\n            } while (--steps > 0 && newScale < _ui_utils.MAX_SCALE);\n            this.currentScaleValue = newScale;\n          }\n        }, {\n          key: \"decreaseScale\",\n          value: function decreaseScale() {\n            var steps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n            var newScale = this._currentScale;\n            do {\n              newScale = (newScale / _ui_utils.DEFAULT_SCALE_DELTA).toFixed(2);\n              newScale = Math.floor(newScale * 10) / 10;\n              newScale = Math.max(_ui_utils.MIN_SCALE, newScale);\n            } while (--steps > 0 && newScale > _ui_utils.MIN_SCALE);\n            this.currentScaleValue = newScale;\n          }\n        }, {\n          key: \"updateContainerHeightCss\",\n          value: function updateContainerHeightCss() {\n            var height = this.container.clientHeight;\n            if (height !== _classPrivateFieldGet(this, _previousContainerHeight)) {\n              _classPrivateFieldSet(this, _previousContainerHeight, height);\n              _ui_utils.docStyle.setProperty(\"--viewer-container-height\", \"\".concat(height, \"px\"));\n            }\n          }\n        }, {\n          key: \"annotationEditorMode\",\n          get: function get() {\n            return _classPrivateFieldGet(this, _annotationEditorUIManager) ? _classPrivateFieldGet(this, _annotationEditorMode) : _pdfjsLib.AnnotationEditorType.DISABLE;\n          },\n          set: function set(mode) {\n            if (!_classPrivateFieldGet(this, _annotationEditorUIManager)) {\n              throw new Error(\"The AnnotationEditor is not enabled.\");\n            }\n            if (_classPrivateFieldGet(this, _annotationEditorMode) === mode) {\n              return;\n            }\n            if (!isValidAnnotationEditorMode(mode)) {\n              throw new Error(\"Invalid AnnotationEditor mode: \".concat(mode));\n            }\n            if (!this.pdfDocument) {\n              return;\n            }\n            _classPrivateFieldSet(this, _annotationEditorMode, mode);\n            this.eventBus.dispatch(\"annotationeditormodechanged\", {\n              source: this,\n              mode: mode\n            });\n            _classPrivateFieldGet(this, _annotationEditorUIManager).updateMode(mode);\n          }\n        }, {\n          key: \"annotationEditorParams\",\n          set: function set(_ref10) {\n            var type = _ref10.type,\n              value = _ref10.value;\n            if (!_classPrivateFieldGet(this, _annotationEditorUIManager)) {\n              throw new Error(\"The AnnotationEditor is not enabled.\");\n            }\n            _classPrivateFieldGet(this, _annotationEditorUIManager).updateParams(type, value);\n          }\n        }, {\n          key: \"refresh\",\n          value: function refresh() {\n            if (!this.pdfDocument) {\n              return;\n            }\n            var updateArgs = {};\n            var _iterator14 = _createForOfIteratorHelper(this._pages),\n              _step14;\n            try {\n              for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {\n                var pageView = _step14.value;\n                pageView.update(updateArgs);\n              }\n            } catch (err) {\n              _iterator14.e(err);\n            } finally {\n              _iterator14.f();\n            }\n            this.update();\n          }\n        }]);\n        return BaseViewer;\n      }();\n      exports.BaseViewer = BaseViewer;\n      function _initializePermissions2(permissions) {\n        var params = {\n          annotationEditorMode: _classPrivateFieldGet(this, _annotationEditorMode),\n          annotationMode: _classPrivateFieldGet(this, _annotationMode),\n          textLayerMode: this.textLayerMode\n        };\n        if (!permissions) {\n          return params;\n        }\n        if (!_includesInstanceProperty(permissions).call(permissions, _pdfjsLib.PermissionFlag.COPY)) {\n          this.viewer.classList.add(ENABLE_PERMISSIONS_CLASS);\n        }\n        if (!_includesInstanceProperty(permissions).call(permissions, _pdfjsLib.PermissionFlag.MODIFY_CONTENTS)) {\n          params.annotationEditorMode = _pdfjsLib.AnnotationEditorType.DISABLE;\n        }\n        if (!_includesInstanceProperty(permissions).call(permissions, _pdfjsLib.PermissionFlag.MODIFY_ANNOTATIONS) && !_includesInstanceProperty(permissions).call(permissions, _pdfjsLib.PermissionFlag.FILL_INTERACTIVE_FORMS) && _classPrivateFieldGet(this, _annotationMode) === _pdfjsLib.AnnotationMode.ENABLE_FORMS) {\n          params.annotationMode = _pdfjsLib.AnnotationMode.ENABLE;\n        }\n        return params;\n      }\n      function _onePageRenderedOrForceFetch2() {\n        var _this9 = this;\n        if (document.visibilityState === \"hidden\" || !this.container.offsetParent || this._getVisiblePages().views.length === 0) {\n          return _Promise.resolve();\n        }\n        var visibilityChangePromise = new _Promise(function (resolve) {\n          _classPrivateFieldSet(_this9, _onVisibilityChange, function () {\n            if (document.visibilityState !== \"hidden\") {\n              return;\n            }\n            resolve();\n            document.removeEventListener(\"visibilitychange\", _classPrivateFieldGet(_this9, _onVisibilityChange));\n            _classPrivateFieldSet(_this9, _onVisibilityChange, null);\n          });\n          document.addEventListener(\"visibilitychange\", _classPrivateFieldGet(_this9, _onVisibilityChange));\n        });\n        return _Promise.race([this._onePageRenderedCapability.promise, visibilityChangePromise]);\n      }\n      function _ensurePageViewVisible2() {\n        if (this._scrollMode !== _ui_utils.ScrollMode.PAGE) {\n          throw new Error(\"#ensurePageViewVisible: Invalid scrollMode value.\");\n        }\n        var pageNumber = this._currentPageNumber,\n          state = _classPrivateFieldGet(this, _scrollModePageState),\n          viewer = this.viewer;\n        viewer.textContent = \"\";\n        state.pages.length = 0;\n        if (this._spreadMode === _ui_utils.SpreadMode.NONE && !this.isInPresentationMode) {\n          var pageView = this._pages[pageNumber - 1];\n          viewer.append(pageView.div);\n          state.pages.push(pageView);\n        } else {\n          var pageIndexSet = new _Set(),\n            parity = this._spreadMode - 1;\n          if (parity === -1) {\n            pageIndexSet.add(pageNumber - 1);\n          } else if (pageNumber % 2 !== parity) {\n            pageIndexSet.add(pageNumber - 1);\n            pageIndexSet.add(pageNumber);\n          } else {\n            pageIndexSet.add(pageNumber - 2);\n            pageIndexSet.add(pageNumber - 1);\n          }\n          var spread = document.createElement(\"div\");\n          spread.className = \"spread\";\n          if (this.isInPresentationMode) {\n            var dummyPage = document.createElement(\"div\");\n            dummyPage.className = \"dummyPage\";\n            spread.append(dummyPage);\n          }\n          var _iterator15 = _createForOfIteratorHelper(pageIndexSet),\n            _step15;\n          try {\n            for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {\n              var i = _step15.value;\n              var _pageView = this._pages[i];\n              if (!_pageView) {\n                continue;\n              }\n              spread.append(_pageView.div);\n              state.pages.push(_pageView);\n            }\n          } catch (err) {\n            _iterator15.e(err);\n          } finally {\n            _iterator15.f();\n          }\n          viewer.append(spread);\n        }\n        state.scrollDown = pageNumber >= state.previousPageNumber;\n        state.previousPageNumber = pageNumber;\n      }\n      function _scrollIntoView2(pageView) {\n        var pageSpot = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n        var div = pageView.div,\n          id = pageView.id;\n        if (this._scrollMode === _ui_utils.ScrollMode.PAGE) {\n          this._setCurrentPageNumber(id);\n          _classPrivateMethodGet(this, _ensurePageViewVisible, _ensurePageViewVisible2).call(this);\n          this.update();\n        }\n        if (!pageSpot && !this.isInPresentationMode) {\n          var left = div.offsetLeft + div.clientLeft,\n            right = left + div.clientWidth;\n          var _this$container2 = this.container,\n            scrollLeft = _this$container2.scrollLeft,\n            clientWidth = _this$container2.clientWidth;\n          if (this._scrollMode === _ui_utils.ScrollMode.HORIZONTAL || left < scrollLeft || right > scrollLeft + clientWidth) {\n            pageSpot = {\n              left: 0,\n              top: 0\n            };\n          }\n        }\n        (0, _ui_utils.scrollIntoView)(div, pageSpot);\n      }\n      function _isSameScale2(newScale) {\n        return newScale === this._currentScale || Math.abs(newScale - this._currentScale) < 1e-15;\n      }\n      function _resetCurrentPageView2() {\n        var pageView = this._pages[this._currentPageNumber - 1];\n        if (this.isInPresentationMode) {\n          this._setScale(this._currentScaleValue, true);\n        }\n        _classPrivateMethodGet(this, _scrollIntoView, _scrollIntoView2).call(this, pageView);\n      }\n      function _ensurePdfPageLoaded2(_x5) {\n        return _ensurePdfPageLoaded3.apply(this, arguments);\n      }\n      function _ensurePdfPageLoaded3() {\n        _ensurePdfPageLoaded3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(pageView) {\n          var _this$linkService$_ca, _this$linkService, pdfPage;\n          return _regeneratorRuntime.wrap(function _callee10$(_context24) {\n            while (1) switch (_context24.prev = _context24.next) {\n              case 0:\n                if (!pageView.pdfPage) {\n                  _context24.next = 2;\n                  break;\n                }\n                return _context24.abrupt(\"return\", pageView.pdfPage);\n              case 2:\n                _context24.prev = 2;\n                _context24.next = 5;\n                return this.pdfDocument.getPage(pageView.id);\n              case 5:\n                pdfPage = _context24.sent;\n                if (!pageView.pdfPage) {\n                  pageView.setPdfPage(pdfPage);\n                }\n                if (!((_this$linkService$_ca = (_this$linkService = this.linkService)._cachedPageNumber) !== null && _this$linkService$_ca !== void 0 && _this$linkService$_ca.call(_this$linkService, pdfPage.ref))) {\n                  this.linkService.cachePageRef(pageView.id, pdfPage.ref);\n                }\n                return _context24.abrupt(\"return\", pdfPage);\n              case 11:\n                _context24.prev = 11;\n                _context24.t0 = _context24[\"catch\"](2);\n                console.error(\"Unable to get page for page view\", _context24.t0);\n                return _context24.abrupt(\"return\", null);\n              case 15:\n              case \"end\":\n                return _context24.stop();\n            }\n          }, _callee10, this, [[2, 11]]);\n        }));\n        return _ensurePdfPageLoaded3.apply(this, arguments);\n      }\n      function _getScrollAhead2(visible) {\n        var _visible$first, _visible$last;\n        if (((_visible$first = visible.first) === null || _visible$first === void 0 ? void 0 : _visible$first.id) === 1) {\n          return true;\n        } else if (((_visible$last = visible.last) === null || _visible$last === void 0 ? void 0 : _visible$last.id) === this.pagesCount) {\n          return false;\n        }\n        switch (this._scrollMode) {\n          case _ui_utils.ScrollMode.PAGE:\n            return _classPrivateFieldGet(this, _scrollModePageState).scrollDown;\n          case _ui_utils.ScrollMode.HORIZONTAL:\n            return this.scroll.right;\n        }\n        return this.scroll.down;\n      }\n      function _toggleLoadingIconSpinner2(visibleIds) {\n        var _iterator16 = _createForOfIteratorHelper(visibleIds),\n          _step16;\n        try {\n          for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {\n            var id = _step16.value;\n            var pageView = this._pages[id - 1];\n            pageView === null || pageView === void 0 ? void 0 : pageView.toggleLoadingIconSpinner(true);\n          }\n        } catch (err) {\n          _iterator16.e(err);\n        } finally {\n          _iterator16.f();\n        }\n        var _iterator17 = _createForOfIteratorHelper(_classPrivateFieldGet(this, _buffer)),\n          _step17;\n        try {\n          for (_iterator17.s(); !(_step17 = _iterator17.n()).done;) {\n            var _pageView2 = _step17.value;\n            if (visibleIds.has(_pageView2.id)) {\n              continue;\n            }\n            _pageView2.toggleLoadingIconSpinner(false);\n          }\n        } catch (err) {\n          _iterator17.e(err);\n        } finally {\n          _iterator17.f();\n        }\n      }\n\n      /***/\n    }), ( /* 13 */\n    /***/function (__unused_webpack_module, exports, __w_pdfjs_require__) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.PDFPageView = void 0;\n      var _pdfjsLib = __w_pdfjs_require__(3);\n      var _ui_utils = __w_pdfjs_require__(7);\n      var _app_options = __w_pdfjs_require__(14);\n      var _l10n_utils = __w_pdfjs_require__(4);\n      var _text_accessibility = __w_pdfjs_require__(15);\n      function _classPrivateFieldInitSpec(obj, privateMap, value) {\n        _checkPrivateRedeclaration(obj, privateMap);\n        privateMap.set(obj, value);\n      }\n      function _checkPrivateRedeclaration(obj, privateCollection) {\n        if (privateCollection.has(obj)) {\n          throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n        }\n      }\n      function _classPrivateFieldGet(receiver, privateMap) {\n        var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"get\");\n        return _classApplyDescriptorGet(receiver, descriptor);\n      }\n      function _classApplyDescriptorGet(receiver, descriptor) {\n        if (descriptor.get) {\n          return descriptor.get.call(receiver);\n        }\n        return descriptor.value;\n      }\n      function _classPrivateFieldSet(receiver, privateMap, value) {\n        var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"set\");\n        _classApplyDescriptorSet(receiver, descriptor, value);\n        return value;\n      }\n      function _classExtractFieldDescriptor(receiver, privateMap, action) {\n        if (!privateMap.has(receiver)) {\n          throw new TypeError(\"attempted to \" + action + \" private field on non-instance\");\n        }\n        return privateMap.get(receiver);\n      }\n      function _classApplyDescriptorSet(receiver, descriptor, value) {\n        if (descriptor.set) {\n          descriptor.set.call(receiver, value);\n        } else {\n          if (!descriptor.writable) {\n            throw new TypeError(\"attempted to set read only private field\");\n          }\n          descriptor.value = value;\n        }\n      }\n      var MAX_CANVAS_PIXELS = _app_options.compatibilityParams.maxCanvasPixels || 16777216;\n      var _annotationMode = /*#__PURE__*/new _WeakMap();\n      var _useThumbnailCanvas = /*#__PURE__*/new _WeakMap();\n      var PDFPageView = /*#__PURE__*/function () {\n        function PDFPageView(options) {\n          var _this10 = this;\n          _classCallCheck(this, PDFPageView);\n          var _options$textLayerMod, _options$annotationMo, _options$textHighligh, _this$renderingQueue;\n          _classPrivateFieldInitSpec(this, _annotationMode, {\n            writable: true,\n            value: _pdfjsLib.AnnotationMode.ENABLE_FORMS\n          });\n          _classPrivateFieldInitSpec(this, _useThumbnailCanvas, {\n            writable: true,\n            value: {\n              initialOptionalContent: true,\n              regularAnnotations: true\n            }\n          });\n          var container = options.container;\n          var defaultViewport = options.defaultViewport;\n          this.id = options.id;\n          this.renderingId = \"page\" + this.id;\n          this.pdfPage = null;\n          this.pageLabel = null;\n          this.rotation = 0;\n          this.scale = options.scale || _ui_utils.DEFAULT_SCALE;\n          this.viewport = defaultViewport;\n          this.pdfPageRotate = defaultViewport.rotation;\n          this._optionalContentConfigPromise = options.optionalContentConfigPromise || null;\n          this.hasRestrictedScaling = false;\n          this.textLayerMode = (_options$textLayerMod = options.textLayerMode) !== null && _options$textLayerMod !== void 0 ? _options$textLayerMod : _ui_utils.TextLayerMode.ENABLE;\n          _classPrivateFieldSet(this, _annotationMode, (_options$annotationMo = options.annotationMode) !== null && _options$annotationMo !== void 0 ? _options$annotationMo : _pdfjsLib.AnnotationMode.ENABLE_FORMS);\n          this.imageResourcesPath = options.imageResourcesPath || \"\";\n          this.useOnlyCssZoom = options.useOnlyCssZoom || false;\n          this.maxCanvasPixels = options.maxCanvasPixels || MAX_CANVAS_PIXELS;\n          this.pageColors = options.pageColors || null;\n          this.eventBus = options.eventBus;\n          this.renderingQueue = options.renderingQueue;\n          this.textLayerFactory = options.textLayerFactory;\n          this.annotationLayerFactory = options.annotationLayerFactory;\n          this.annotationEditorLayerFactory = options.annotationEditorLayerFactory;\n          this.xfaLayerFactory = options.xfaLayerFactory;\n          this.textHighlighter = (_options$textHighligh = options.textHighlighterFactory) === null || _options$textHighligh === void 0 ? void 0 : _options$textHighligh.createTextHighlighter({\n            pageIndex: this.id - 1,\n            eventBus: this.eventBus\n          });\n          this.structTreeLayerFactory = options.structTreeLayerFactory;\n          this.renderer = options.renderer || _ui_utils.RendererType.CANVAS;\n          this.l10n = options.l10n || _l10n_utils.NullL10n;\n          this.paintTask = null;\n          this.paintedViewportMap = new _WeakMap();\n          this.renderingState = _ui_utils.RenderingStates.INITIAL;\n          this.resume = null;\n          this._renderError = null;\n          this._isStandalone = !((_this$renderingQueue = this.renderingQueue) !== null && _this$renderingQueue !== void 0 && _this$renderingQueue.hasViewer());\n          this._annotationCanvasMap = null;\n          this.annotationLayer = null;\n          this.annotationEditorLayer = null;\n          this.textLayer = null;\n          this.zoomLayer = null;\n          this.xfaLayer = null;\n          this.structTreeLayer = null;\n          var div = document.createElement(\"div\");\n          div.className = \"page\";\n          div.style.width = Math.floor(this.viewport.width) + \"px\";\n          div.style.height = Math.floor(this.viewport.height) + \"px\";\n          div.setAttribute(\"data-page-number\", this.id);\n          div.setAttribute(\"role\", \"region\");\n          this.l10n.get(\"page_landmark\", {\n            page: this.id\n          }).then(function (msg) {\n            div.setAttribute(\"aria-label\", msg);\n          });\n          this.div = div;\n          container === null || container === void 0 ? void 0 : container.append(div);\n          if (this._isStandalone) {\n            var optionalContentConfigPromise = options.optionalContentConfigPromise;\n            if (optionalContentConfigPromise) {\n              optionalContentConfigPromise.then(function (optionalContentConfig) {\n                if (optionalContentConfigPromise !== _this10._optionalContentConfigPromise) {\n                  return;\n                }\n                _classPrivateFieldGet(_this10, _useThumbnailCanvas).initialOptionalContent = optionalContentConfig.hasInitialVisibility;\n              });\n            }\n          }\n        }\n        _createClass(PDFPageView, [{\n          key: \"setPdfPage\",\n          value: function setPdfPage(pdfPage) {\n            this.pdfPage = pdfPage;\n            this.pdfPageRotate = pdfPage.rotate;\n            var totalRotation = (this.rotation + this.pdfPageRotate) % 360;\n            this.viewport = pdfPage.getViewport({\n              scale: this.scale * _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS,\n              rotation: totalRotation\n            });\n            this.reset();\n          }\n        }, {\n          key: \"destroy\",\n          value: function destroy() {\n            this.reset();\n            if (this.pdfPage) {\n              this.pdfPage.cleanup();\n            }\n          }\n        }, {\n          key: \"_renderAnnotationLayer\",\n          value: function () {\n            var _renderAnnotationLayer2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11() {\n              var error;\n              return _regeneratorRuntime.wrap(function _callee11$(_context25) {\n                while (1) switch (_context25.prev = _context25.next) {\n                  case 0:\n                    error = null;\n                    _context25.prev = 1;\n                    _context25.next = 4;\n                    return this.annotationLayer.render(this.viewport, \"display\");\n                  case 4:\n                    _context25.next = 10;\n                    break;\n                  case 6:\n                    _context25.prev = 6;\n                    _context25.t0 = _context25[\"catch\"](1);\n                    console.error(\"_renderAnnotationLayer: \\\"\".concat(_context25.t0, \"\\\".\"));\n                    error = _context25.t0;\n                  case 10:\n                    _context25.prev = 10;\n                    this.eventBus.dispatch(\"annotationlayerrendered\", {\n                      source: this,\n                      pageNumber: this.id,\n                      error: error\n                    });\n                    return _context25.finish(10);\n                  case 13:\n                  case \"end\":\n                    return _context25.stop();\n                }\n              }, _callee11, this, [[1, 6, 10, 13]]);\n            }));\n            function _renderAnnotationLayer() {\n              return _renderAnnotationLayer2.apply(this, arguments);\n            }\n            return _renderAnnotationLayer;\n          }()\n        }, {\n          key: \"_renderAnnotationEditorLayer\",\n          value: function () {\n            var _renderAnnotationEditorLayer2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {\n              var error;\n              return _regeneratorRuntime.wrap(function _callee12$(_context26) {\n                while (1) switch (_context26.prev = _context26.next) {\n                  case 0:\n                    error = null;\n                    _context26.prev = 1;\n                    _context26.next = 4;\n                    return this.annotationEditorLayer.render(this.viewport, \"display\");\n                  case 4:\n                    _context26.next = 10;\n                    break;\n                  case 6:\n                    _context26.prev = 6;\n                    _context26.t0 = _context26[\"catch\"](1);\n                    console.error(\"_renderAnnotationEditorLayer: \\\"\".concat(_context26.t0, \"\\\".\"));\n                    error = _context26.t0;\n                  case 10:\n                    _context26.prev = 10;\n                    this.eventBus.dispatch(\"annotationeditorlayerrendered\", {\n                      source: this,\n                      pageNumber: this.id,\n                      error: error\n                    });\n                    return _context26.finish(10);\n                  case 13:\n                  case \"end\":\n                    return _context26.stop();\n                }\n              }, _callee12, this, [[1, 6, 10, 13]]);\n            }));\n            function _renderAnnotationEditorLayer() {\n              return _renderAnnotationEditorLayer2.apply(this, arguments);\n            }\n            return _renderAnnotationEditorLayer;\n          }()\n        }, {\n          key: \"_renderXfaLayer\",\n          value: function () {\n            var _renderXfaLayer2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13() {\n              var error, result;\n              return _regeneratorRuntime.wrap(function _callee13$(_context27) {\n                while (1) switch (_context27.prev = _context27.next) {\n                  case 0:\n                    error = null;\n                    _context27.prev = 1;\n                    _context27.next = 4;\n                    return this.xfaLayer.render(this.viewport, \"display\");\n                  case 4:\n                    result = _context27.sent;\n                    if (this.textHighlighter) {\n                      this._buildXfaTextContentItems(result.textDivs);\n                    }\n                    _context27.next = 12;\n                    break;\n                  case 8:\n                    _context27.prev = 8;\n                    _context27.t0 = _context27[\"catch\"](1);\n                    console.error(\"_renderXfaLayer: \\\"\".concat(_context27.t0, \"\\\".\"));\n                    error = _context27.t0;\n                  case 12:\n                    _context27.prev = 12;\n                    this.eventBus.dispatch(\"xfalayerrendered\", {\n                      source: this,\n                      pageNumber: this.id,\n                      error: error\n                    });\n                    return _context27.finish(12);\n                  case 15:\n                  case \"end\":\n                    return _context27.stop();\n                }\n              }, _callee13, this, [[1, 8, 12, 15]]);\n            }));\n            function _renderXfaLayer() {\n              return _renderXfaLayer2.apply(this, arguments);\n            }\n            return _renderXfaLayer;\n          }()\n        }, {\n          key: \"_buildXfaTextContentItems\",\n          value: function () {\n            var _buildXfaTextContentItems2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(textDivs) {\n              var text, items, _iterator18, _step18, item;\n              return _regeneratorRuntime.wrap(function _callee14$(_context28) {\n                while (1) switch (_context28.prev = _context28.next) {\n                  case 0:\n                    _context28.next = 2;\n                    return this.pdfPage.getTextContent();\n                  case 2:\n                    text = _context28.sent;\n                    items = [];\n                    _iterator18 = _createForOfIteratorHelper(text.items);\n                    try {\n                      for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {\n                        item = _step18.value;\n                        items.push(item.str);\n                      }\n                    } catch (err) {\n                      _iterator18.e(err);\n                    } finally {\n                      _iterator18.f();\n                    }\n                    this.textHighlighter.setTextMapping(textDivs, items);\n                    this.textHighlighter.enable();\n                  case 8:\n                  case \"end\":\n                    return _context28.stop();\n                }\n              }, _callee14, this);\n            }));\n            function _buildXfaTextContentItems(_x6) {\n              return _buildXfaTextContentItems2.apply(this, arguments);\n            }\n            return _buildXfaTextContentItems;\n          }()\n        }, {\n          key: \"_resetZoomLayer\",\n          value: function _resetZoomLayer() {\n            var removeFromDOM = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n            if (!this.zoomLayer) {\n              return;\n            }\n            var zoomLayerCanvas = this.zoomLayer.firstChild;\n            this.paintedViewportMap.delete(zoomLayerCanvas);\n            zoomLayerCanvas.width = 0;\n            zoomLayerCanvas.height = 0;\n            if (removeFromDOM) {\n              this.zoomLayer.remove();\n            }\n            this.zoomLayer = null;\n          }\n        }, {\n          key: \"reset\",\n          value: function reset() {\n            var _this11 = this;\n            var _this$annotationLayer, _this$annotationEdito, _this$xfaLayer;\n            var _ref16 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n              _ref16$keepZoomLayer = _ref16.keepZoomLayer,\n              keepZoomLayer = _ref16$keepZoomLayer === void 0 ? false : _ref16$keepZoomLayer,\n              _ref16$keepAnnotation = _ref16.keepAnnotationLayer,\n              keepAnnotationLayer = _ref16$keepAnnotation === void 0 ? false : _ref16$keepAnnotation,\n              _ref16$keepAnnotation2 = _ref16.keepAnnotationEditorLayer,\n              keepAnnotationEditorLayer = _ref16$keepAnnotation2 === void 0 ? false : _ref16$keepAnnotation2,\n              _ref16$keepXfaLayer = _ref16.keepXfaLayer,\n              keepXfaLayer = _ref16$keepXfaLayer === void 0 ? false : _ref16$keepXfaLayer;\n            this.cancelRendering({\n              keepAnnotationLayer: keepAnnotationLayer,\n              keepAnnotationEditorLayer: keepAnnotationEditorLayer,\n              keepXfaLayer: keepXfaLayer\n            });\n            this.renderingState = _ui_utils.RenderingStates.INITIAL;\n            var div = this.div;\n            div.style.width = Math.floor(this.viewport.width) + \"px\";\n            div.style.height = Math.floor(this.viewport.height) + \"px\";\n            var childNodes = div.childNodes,\n              zoomLayerNode = keepZoomLayer && this.zoomLayer || null,\n              annotationLayerNode = keepAnnotationLayer && ((_this$annotationLayer = this.annotationLayer) === null || _this$annotationLayer === void 0 ? void 0 : _this$annotationLayer.div) || null,\n              annotationEditorLayerNode = keepAnnotationEditorLayer && ((_this$annotationEdito = this.annotationEditorLayer) === null || _this$annotationEdito === void 0 ? void 0 : _this$annotationEdito.div) || null,\n              xfaLayerNode = keepXfaLayer && ((_this$xfaLayer = this.xfaLayer) === null || _this$xfaLayer === void 0 ? void 0 : _this$xfaLayer.div) || null;\n            for (var i = childNodes.length - 1; i >= 0; i--) {\n              var node = childNodes[i];\n              switch (node) {\n                case zoomLayerNode:\n                case annotationLayerNode:\n                case annotationEditorLayerNode:\n                case xfaLayerNode:\n                  continue;\n              }\n              node.remove();\n            }\n            div.removeAttribute(\"data-loaded\");\n            if (annotationLayerNode) {\n              this.annotationLayer.hide();\n            }\n            if (annotationEditorLayerNode) {\n              this.annotationEditorLayer.hide();\n            } else {\n              var _this$annotationEdito2;\n              (_this$annotationEdito2 = this.annotationEditorLayer) === null || _this$annotationEdito2 === void 0 ? void 0 : _this$annotationEdito2.destroy();\n            }\n            if (xfaLayerNode) {\n              this.xfaLayer.hide();\n            }\n            if (!zoomLayerNode) {\n              if (this.canvas) {\n                this.paintedViewportMap.delete(this.canvas);\n                this.canvas.width = 0;\n                this.canvas.height = 0;\n                delete this.canvas;\n              }\n              this._resetZoomLayer();\n            }\n            if (this.svg) {\n              this.paintedViewportMap.delete(this.svg);\n              delete this.svg;\n            }\n            this.loadingIconDiv = document.createElement(\"div\");\n            this.loadingIconDiv.className = \"loadingIcon notVisible\";\n            if (this._isStandalone) {\n              this.toggleLoadingIconSpinner(true);\n            }\n            this.loadingIconDiv.setAttribute(\"role\", \"img\");\n            this.l10n.get(\"loading\").then(function (msg) {\n              var _this$loadingIconDiv;\n              (_this$loadingIconDiv = _this11.loadingIconDiv) === null || _this$loadingIconDiv === void 0 ? void 0 : _this$loadingIconDiv.setAttribute(\"aria-label\", msg);\n            });\n            div.append(this.loadingIconDiv);\n          }\n        }, {\n          key: \"update\",\n          value: function update(_ref) {\n            var _this12 = this;\n            var _ref$scale = _ref.scale,\n              scale = _ref$scale === void 0 ? 0 : _ref$scale,\n              _ref$rotation = _ref.rotation,\n              rotation = _ref$rotation === void 0 ? null : _ref$rotation,\n              _ref$optionalContentC = _ref.optionalContentConfigPromise,\n              optionalContentConfigPromise = _ref$optionalContentC === void 0 ? null : _ref$optionalContentC;\n            this.scale = scale || this.scale;\n            if (typeof rotation === \"number\") {\n              this.rotation = rotation;\n            }\n            if (optionalContentConfigPromise instanceof _Promise) {\n              this._optionalContentConfigPromise = optionalContentConfigPromise;\n              optionalContentConfigPromise.then(function (optionalContentConfig) {\n                if (optionalContentConfigPromise !== _this12._optionalContentConfigPromise) {\n                  return;\n                }\n                _classPrivateFieldGet(_this12, _useThumbnailCanvas).initialOptionalContent = optionalContentConfig.hasInitialVisibility;\n              });\n            }\n            var totalRotation = (this.rotation + this.pdfPageRotate) % 360;\n            this.viewport = this.viewport.clone({\n              scale: this.scale * _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS,\n              rotation: totalRotation\n            });\n            if (this._isStandalone) {\n              _ui_utils.docStyle.setProperty(\"--scale-factor\", this.viewport.scale);\n            }\n            if (this.svg) {\n              this.cssTransform({\n                target: this.svg,\n                redrawAnnotationLayer: true,\n                redrawAnnotationEditorLayer: true,\n                redrawXfaLayer: true\n              });\n              this.eventBus.dispatch(\"pagerendered\", {\n                source: this,\n                pageNumber: this.id,\n                cssTransform: true,\n                timestamp: performance.now(),\n                error: this._renderError\n              });\n              return;\n            }\n            var isScalingRestricted = false;\n            if (this.canvas && this.maxCanvasPixels > 0) {\n              var outputScale = this.outputScale;\n              if ((Math.floor(this.viewport.width) * outputScale.sx | 0) * (Math.floor(this.viewport.height) * outputScale.sy | 0) > this.maxCanvasPixels) {\n                isScalingRestricted = true;\n              }\n            }\n            if (this.canvas) {\n              if (this.useOnlyCssZoom || this.hasRestrictedScaling && isScalingRestricted) {\n                this.cssTransform({\n                  target: this.canvas,\n                  redrawAnnotationLayer: true,\n                  redrawAnnotationEditorLayer: true,\n                  redrawXfaLayer: true\n                });\n                this.eventBus.dispatch(\"pagerendered\", {\n                  source: this,\n                  pageNumber: this.id,\n                  cssTransform: true,\n                  timestamp: performance.now(),\n                  error: this._renderError\n                });\n                return;\n              }\n              if (!this.zoomLayer && !this.canvas.hidden) {\n                this.zoomLayer = this.canvas.parentNode;\n                this.zoomLayer.style.position = \"absolute\";\n              }\n            }\n            if (this.zoomLayer) {\n              this.cssTransform({\n                target: this.zoomLayer.firstChild\n              });\n            }\n            this.reset({\n              keepZoomLayer: true,\n              keepAnnotationLayer: true,\n              keepAnnotationEditorLayer: true,\n              keepXfaLayer: true\n            });\n          }\n        }, {\n          key: \"cancelRendering\",\n          value: function cancelRendering() {\n            var _ref17 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n              _ref17$keepAnnotation = _ref17.keepAnnotationLayer,\n              keepAnnotationLayer = _ref17$keepAnnotation === void 0 ? false : _ref17$keepAnnotation,\n              _ref17$keepAnnotation2 = _ref17.keepAnnotationEditorLayer,\n              keepAnnotationEditorLayer = _ref17$keepAnnotation2 === void 0 ? false : _ref17$keepAnnotation2,\n              _ref17$keepXfaLayer = _ref17.keepXfaLayer,\n              keepXfaLayer = _ref17$keepXfaLayer === void 0 ? false : _ref17$keepXfaLayer;\n            if (this.paintTask) {\n              this.paintTask.cancel();\n              this.paintTask = null;\n            }\n            this.resume = null;\n            if (this.textLayer) {\n              this.textLayer.cancel();\n              this.textLayer = null;\n            }\n            if (this.annotationLayer && (!keepAnnotationLayer || !this.annotationLayer.div)) {\n              this.annotationLayer.cancel();\n              this.annotationLayer = null;\n              this._annotationCanvasMap = null;\n            }\n            if (this.annotationEditorLayer && (!keepAnnotationEditorLayer || !this.annotationEditorLayer.div)) {\n              this.annotationEditorLayer.cancel();\n              this.annotationEditorLayer = null;\n            }\n            if (this.xfaLayer && (!keepXfaLayer || !this.xfaLayer.div)) {\n              var _this$textHighlighter;\n              this.xfaLayer.cancel();\n              this.xfaLayer = null;\n              (_this$textHighlighter = this.textHighlighter) === null || _this$textHighlighter === void 0 ? void 0 : _this$textHighlighter.disable();\n            }\n            if (this._onTextLayerRendered) {\n              this.eventBus._off(\"textlayerrendered\", this._onTextLayerRendered);\n              this._onTextLayerRendered = null;\n            }\n          }\n        }, {\n          key: \"cssTransform\",\n          value: function cssTransform(_ref2) {\n            var _context29, _context30;\n            var target = _ref2.target,\n              _ref2$redrawAnnotatio = _ref2.redrawAnnotationLayer,\n              redrawAnnotationLayer = _ref2$redrawAnnotatio === void 0 ? false : _ref2$redrawAnnotatio,\n              _ref2$redrawAnnotatio2 = _ref2.redrawAnnotationEditorLayer,\n              redrawAnnotationEditorLayer = _ref2$redrawAnnotatio2 === void 0 ? false : _ref2$redrawAnnotatio2,\n              _ref2$redrawXfaLayer = _ref2.redrawXfaLayer,\n              redrawXfaLayer = _ref2$redrawXfaLayer === void 0 ? false : _ref2$redrawXfaLayer;\n            var width = this.viewport.width;\n            var height = this.viewport.height;\n            var div = this.div;\n            target.style.width = target.parentNode.style.width = div.style.width = Math.floor(width) + \"px\";\n            target.style.height = target.parentNode.style.height = div.style.height = Math.floor(height) + \"px\";\n            var relativeRotation = this.viewport.rotation - this.paintedViewportMap.get(target).rotation;\n            var absRotation = Math.abs(relativeRotation);\n            var scaleX = 1,\n              scaleY = 1;\n            if (absRotation === 90 || absRotation === 270) {\n              scaleX = height / width;\n              scaleY = width / height;\n            }\n            target.style.transform = _concatInstanceProperty(_context29 = _concatInstanceProperty(_context30 = \"rotate(\".concat(relativeRotation, \"deg) scale(\")).call(_context30, scaleX, \", \")).call(_context29, scaleY, \")\");\n            if (this.textLayer) {\n              var _context31;\n              var textLayerViewport = this.textLayer.viewport;\n              var textRelativeRotation = this.viewport.rotation - textLayerViewport.rotation;\n              var textAbsRotation = Math.abs(textRelativeRotation);\n              var scale = width / textLayerViewport.width;\n              if (textAbsRotation === 90 || textAbsRotation === 270) {\n                scale = width / textLayerViewport.height;\n              }\n              var textLayerDiv = this.textLayer.textLayerDiv;\n              var transX, transY;\n              switch (textAbsRotation) {\n                case 0:\n                  transX = transY = 0;\n                  break;\n                case 90:\n                  transX = 0;\n                  transY = \"-\" + textLayerDiv.style.height;\n                  break;\n                case 180:\n                  transX = \"-\" + textLayerDiv.style.width;\n                  transY = \"-\" + textLayerDiv.style.height;\n                  break;\n                case 270:\n                  transX = \"-\" + textLayerDiv.style.width;\n                  transY = 0;\n                  break;\n                default:\n                  console.error(\"Bad rotation value.\");\n                  break;\n              }\n              textLayerDiv.style.transform = \"rotate(\".concat(textAbsRotation, \"deg) \") + \"scale(\".concat(scale, \") \") + _concatInstanceProperty(_context31 = \"translate(\".concat(transX, \", \")).call(_context31, transY, \")\");\n              textLayerDiv.style.transformOrigin = \"0% 0%\";\n            }\n            if (redrawAnnotationLayer && this.annotationLayer) {\n              this._renderAnnotationLayer();\n            }\n            if (redrawAnnotationEditorLayer && this.annotationEditorLayer) {\n              this._renderAnnotationEditorLayer();\n            }\n            if (redrawXfaLayer && this.xfaLayer) {\n              this._renderXfaLayer();\n            }\n          }\n        }, {\n          key: \"width\",\n          get: function get() {\n            return this.viewport.width;\n          }\n        }, {\n          key: \"height\",\n          get: function get() {\n            return this.viewport.height;\n          }\n        }, {\n          key: \"getPagePoint\",\n          value: function getPagePoint(x, y) {\n            return this.viewport.convertToPdfPoint(x, y);\n          }\n        }, {\n          key: \"toggleLoadingIconSpinner\",\n          value: function toggleLoadingIconSpinner() {\n            var _this$loadingIconDiv2;\n            var viewVisible = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n            (_this$loadingIconDiv2 = this.loadingIconDiv) === null || _this$loadingIconDiv2 === void 0 ? void 0 : _this$loadingIconDiv2.classList.toggle(\"notVisible\", !viewVisible);\n          }\n        }, {\n          key: \"draw\",\n          value: function draw() {\n            var _this13 = this;\n            var _this$annotationLayer2,\n              _this$annotationEdito3,\n              _this$xfaLayer2,\n              _this = this;\n            if (this.renderingState !== _ui_utils.RenderingStates.INITIAL) {\n              console.error(\"Must be in new state before drawing\");\n              this.reset();\n            }\n            var div = this.div,\n              pdfPage = this.pdfPage;\n            if (!pdfPage) {\n              this.renderingState = _ui_utils.RenderingStates.FINISHED;\n              if (this.loadingIconDiv) {\n                this.loadingIconDiv.remove();\n                delete this.loadingIconDiv;\n              }\n              return _Promise.reject(new Error(\"pdfPage is not loaded\"));\n            }\n            this.renderingState = _ui_utils.RenderingStates.RUNNING;\n            var canvasWrapper = document.createElement(\"div\");\n            canvasWrapper.style.width = div.style.width;\n            canvasWrapper.style.height = div.style.height;\n            canvasWrapper.classList.add(\"canvasWrapper\");\n            var lastDivBeforeTextDiv = ((_this$annotationLayer2 = this.annotationLayer) === null || _this$annotationLayer2 === void 0 ? void 0 : _this$annotationLayer2.div) || ((_this$annotationEdito3 = this.annotationEditorLayer) === null || _this$annotationEdito3 === void 0 ? void 0 : _this$annotationEdito3.div);\n            if (lastDivBeforeTextDiv) {\n              lastDivBeforeTextDiv.before(canvasWrapper);\n            } else {\n              div.append(canvasWrapper);\n            }\n            var textLayer = null;\n            if (this.textLayerMode !== _ui_utils.TextLayerMode.DISABLE && this.textLayerFactory) {\n              this._accessibilityManager || (this._accessibilityManager = new _text_accessibility.TextAccessibilityManager());\n              var textLayerDiv = document.createElement(\"div\");\n              textLayerDiv.className = \"textLayer\";\n              textLayerDiv.style.width = canvasWrapper.style.width;\n              textLayerDiv.style.height = canvasWrapper.style.height;\n              if (lastDivBeforeTextDiv) {\n                lastDivBeforeTextDiv.before(textLayerDiv);\n              } else {\n                div.append(textLayerDiv);\n              }\n              textLayer = this.textLayerFactory.createTextLayerBuilder({\n                textLayerDiv: textLayerDiv,\n                pageIndex: this.id - 1,\n                viewport: this.viewport,\n                enhanceTextSelection: this.textLayerMode === _ui_utils.TextLayerMode.ENABLE_ENHANCE,\n                eventBus: this.eventBus,\n                highlighter: this.textHighlighter,\n                accessibilityManager: this._accessibilityManager\n              });\n            }\n            this.textLayer = textLayer;\n            if (_classPrivateFieldGet(this, _annotationMode) !== _pdfjsLib.AnnotationMode.DISABLE && this.annotationLayerFactory) {\n              this._annotationCanvasMap || (this._annotationCanvasMap = new _Map());\n              this.annotationLayer || (this.annotationLayer = this.annotationLayerFactory.createAnnotationLayerBuilder({\n                pageDiv: div,\n                pdfPage: pdfPage,\n                imageResourcesPath: this.imageResourcesPath,\n                renderForms: _classPrivateFieldGet(this, _annotationMode) === _pdfjsLib.AnnotationMode.ENABLE_FORMS,\n                l10n: this.l10n,\n                annotationCanvasMap: this._annotationCanvasMap,\n                accessibilityManager: this._accessibilityManager\n              }));\n            }\n            if ((_this$xfaLayer2 = this.xfaLayer) !== null && _this$xfaLayer2 !== void 0 && _this$xfaLayer2.div) {\n              div.append(this.xfaLayer.div);\n            }\n            var renderContinueCallback = null;\n            if (this.renderingQueue) {\n              renderContinueCallback = function renderContinueCallback(cont) {\n                if (!_this13.renderingQueue.isHighestPriority(_this13)) {\n                  _this13.renderingState = _ui_utils.RenderingStates.PAUSED;\n                  _this13.resume = function () {\n                    _this13.renderingState = _ui_utils.RenderingStates.RUNNING;\n                    cont();\n                  };\n                  return;\n                }\n                cont();\n              };\n            }\n            var finishPaintTask = /*#__PURE__*/function () {\n              var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15() {\n                var error,\n                  _args16 = arguments;\n                return _regeneratorRuntime.wrap(function _callee15$(_context32) {\n                  while (1) switch (_context32.prev = _context32.next) {\n                    case 0:\n                      error = _args16.length > 0 && _args16[0] !== undefined ? _args16[0] : null;\n                      if (paintTask === _this.paintTask) {\n                        _this.paintTask = null;\n                      }\n                      if (!(error instanceof _pdfjsLib.RenderingCancelledException)) {\n                        _context32.next = 5;\n                        break;\n                      }\n                      _this._renderError = null;\n                      return _context32.abrupt(\"return\");\n                    case 5:\n                      _this._renderError = error;\n                      _this.renderingState = _ui_utils.RenderingStates.FINISHED;\n                      if (_this.loadingIconDiv) {\n                        _this.loadingIconDiv.remove();\n                        delete _this.loadingIconDiv;\n                      }\n                      _this._resetZoomLayer(true);\n                      _classPrivateFieldGet(_this, _useThumbnailCanvas).regularAnnotations = !paintTask.separateAnnots;\n                      _this.eventBus.dispatch(\"pagerendered\", {\n                        source: _this,\n                        pageNumber: _this.id,\n                        cssTransform: false,\n                        timestamp: performance.now(),\n                        error: _this._renderError\n                      });\n                      if (!error) {\n                        _context32.next = 13;\n                        break;\n                      }\n                      throw error;\n                    case 13:\n                    case \"end\":\n                      return _context32.stop();\n                  }\n                }, _callee15);\n              }));\n              return function finishPaintTask() {\n                return _ref18.apply(this, arguments);\n              };\n            }();\n            var paintTask = this.renderer === _ui_utils.RendererType.SVG ? this.paintOnSvg(canvasWrapper) : this.paintOnCanvas(canvasWrapper);\n            paintTask.onRenderContinue = renderContinueCallback;\n            this.paintTask = paintTask;\n            var resultPromise = paintTask.promise.then(function () {\n              return finishPaintTask(null).then(function () {\n                if (textLayer) {\n                  var readableStream = pdfPage.streamTextContent({\n                    includeMarkedContent: true\n                  });\n                  textLayer.setTextContentStream(readableStream);\n                  textLayer.render();\n                }\n                if (_this13.annotationLayer) {\n                  _this13._renderAnnotationLayer().then(function () {\n                    if (_this13.annotationEditorLayerFactory) {\n                      _this13.annotationEditorLayer || (_this13.annotationEditorLayer = _this13.annotationEditorLayerFactory.createAnnotationEditorLayerBuilder({\n                        pageDiv: div,\n                        pdfPage: pdfPage,\n                        l10n: _this13.l10n,\n                        accessibilityManager: _this13._accessibilityManager\n                      }));\n                      _this13._renderAnnotationEditorLayer();\n                    }\n                  });\n                }\n              });\n            }, function (reason) {\n              return finishPaintTask(reason);\n            });\n            if (this.xfaLayerFactory) {\n              this.xfaLayer || (this.xfaLayer = this.xfaLayerFactory.createXfaLayerBuilder({\n                pageDiv: div,\n                pdfPage: pdfPage\n              }));\n              this._renderXfaLayer();\n            }\n            if (this.structTreeLayerFactory && this.textLayer && this.canvas) {\n              this._onTextLayerRendered = function (event) {\n                if (event.pageNumber !== _this13.id) {\n                  return;\n                }\n                _this13.eventBus._off(\"textlayerrendered\", _this13._onTextLayerRendered);\n                _this13._onTextLayerRendered = null;\n                if (!_this13.canvas) {\n                  return;\n                }\n                _this13.pdfPage.getStructTree().then(function (tree) {\n                  if (!tree) {\n                    return;\n                  }\n                  if (!_this13.canvas) {\n                    return;\n                  }\n                  var treeDom = _this13.structTreeLayer.render(tree);\n                  treeDom.classList.add(\"structTree\");\n                  _this13.canvas.append(treeDom);\n                });\n              };\n              this.eventBus._on(\"textlayerrendered\", this._onTextLayerRendered);\n              this.structTreeLayer = this.structTreeLayerFactory.createStructTreeLayerBuilder({\n                pdfPage: pdfPage\n              });\n            }\n            div.setAttribute(\"data-loaded\", true);\n            this.eventBus.dispatch(\"pagerender\", {\n              source: this,\n              pageNumber: this.id\n            });\n            return resultPromise;\n          }\n        }, {\n          key: \"paintOnCanvas\",\n          value: function paintOnCanvas(canvasWrapper) {\n            var renderCapability = (0, _pdfjsLib.createPromiseCapability)();\n            var result = {\n              promise: renderCapability.promise,\n              onRenderContinue: function onRenderContinue(cont) {\n                cont();\n              },\n              cancel: function cancel() {\n                renderTask.cancel();\n              },\n              get separateAnnots() {\n                return renderTask.separateAnnots;\n              }\n            };\n            var viewport = this.viewport;\n            var canvas = document.createElement(\"canvas\");\n            canvas.setAttribute(\"role\", \"presentation\");\n            canvas.hidden = true;\n            var isCanvasHidden = true;\n            var showCanvas = function showCanvas() {\n              if (isCanvasHidden) {\n                canvas.hidden = false;\n                isCanvasHidden = false;\n              }\n            };\n            canvasWrapper.append(canvas);\n            this.canvas = canvas;\n            var ctx = canvas.getContext(\"2d\", {\n              alpha: false\n            });\n            var outputScale = this.outputScale = new _ui_utils.OutputScale();\n            if (this.useOnlyCssZoom) {\n              var actualSizeViewport = viewport.clone({\n                scale: _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS\n              });\n              outputScale.sx *= actualSizeViewport.width / viewport.width;\n              outputScale.sy *= actualSizeViewport.height / viewport.height;\n            }\n            if (this.maxCanvasPixels > 0) {\n              var pixelsInViewport = viewport.width * viewport.height;\n              var maxScale = Math.sqrt(this.maxCanvasPixels / pixelsInViewport);\n              if (outputScale.sx > maxScale || outputScale.sy > maxScale) {\n                outputScale.sx = maxScale;\n                outputScale.sy = maxScale;\n                this.hasRestrictedScaling = true;\n              } else {\n                this.hasRestrictedScaling = false;\n              }\n            }\n            var sfx = (0, _ui_utils.approximateFraction)(outputScale.sx);\n            var sfy = (0, _ui_utils.approximateFraction)(outputScale.sy);\n            canvas.width = (0, _ui_utils.roundToDivide)(viewport.width * outputScale.sx, sfx[0]);\n            canvas.height = (0, _ui_utils.roundToDivide)(viewport.height * outputScale.sy, sfy[0]);\n            canvas.style.width = (0, _ui_utils.roundToDivide)(viewport.width, sfx[1]) + \"px\";\n            canvas.style.height = (0, _ui_utils.roundToDivide)(viewport.height, sfy[1]) + \"px\";\n            this.paintedViewportMap.set(canvas, viewport);\n            var transform = outputScale.scaled ? [outputScale.sx, 0, 0, outputScale.sy, 0, 0] : null;\n            var renderContext = {\n              canvasContext: ctx,\n              transform: transform,\n              viewport: this.viewport,\n              annotationMode: _classPrivateFieldGet(this, _annotationMode),\n              optionalContentConfigPromise: this._optionalContentConfigPromise,\n              annotationCanvasMap: this._annotationCanvasMap,\n              pageColors: this.pageColors\n            };\n            var renderTask = this.pdfPage.render(renderContext);\n            renderTask.onContinue = function (cont) {\n              showCanvas();\n              if (result.onRenderContinue) {\n                result.onRenderContinue(cont);\n              } else {\n                cont();\n              }\n            };\n            renderTask.promise.then(function () {\n              showCanvas();\n              renderCapability.resolve();\n            }, function (error) {\n              showCanvas();\n              renderCapability.reject(error);\n            });\n            return result;\n          }\n        }, {\n          key: \"paintOnSvg\",\n          value: function paintOnSvg(wrapper) {\n            var _this14 = this;\n            var cancelled = false;\n            var ensureNotCancelled = function ensureNotCancelled() {\n              if (cancelled) {\n                throw new _pdfjsLib.RenderingCancelledException(\"Rendering cancelled, page \".concat(_this14.id), \"svg\");\n              }\n            };\n            var pdfPage = this.pdfPage;\n            var actualSizeViewport = this.viewport.clone({\n              scale: _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS\n            });\n            var promise = pdfPage.getOperatorList({\n              annotationMode: _classPrivateFieldGet(this, _annotationMode)\n            }).then(function (opList) {\n              ensureNotCancelled();\n              var svgGfx = new _pdfjsLib.SVGGraphics(pdfPage.commonObjs, pdfPage.objs);\n              return svgGfx.getSVG(opList, actualSizeViewport).then(function (svg) {\n                ensureNotCancelled();\n                _this14.svg = svg;\n                _this14.paintedViewportMap.set(svg, actualSizeViewport);\n                svg.style.width = wrapper.style.width;\n                svg.style.height = wrapper.style.height;\n                _this14.renderingState = _ui_utils.RenderingStates.FINISHED;\n                wrapper.append(svg);\n              });\n            });\n            return {\n              promise: promise,\n              onRenderContinue: function onRenderContinue(cont) {\n                cont();\n              },\n              cancel: function cancel() {\n                cancelled = true;\n              },\n              get separateAnnots() {\n                return false;\n              }\n            };\n          }\n        }, {\n          key: \"setPageLabel\",\n          value: function setPageLabel(label) {\n            this.pageLabel = typeof label === \"string\" ? label : null;\n            if (this.pageLabel !== null) {\n              this.div.setAttribute(\"data-page-label\", this.pageLabel);\n            } else {\n              this.div.removeAttribute(\"data-page-label\");\n            }\n          }\n        }, {\n          key: \"thumbnailCanvas\",\n          get: function get() {\n            var _classPrivateFieldGet2 = _classPrivateFieldGet(this, _useThumbnailCanvas),\n              initialOptionalContent = _classPrivateFieldGet2.initialOptionalContent,\n              regularAnnotations = _classPrivateFieldGet2.regularAnnotations;\n            return initialOptionalContent && regularAnnotations ? this.canvas : null;\n          }\n        }]);\n        return PDFPageView;\n      }();\n      exports.PDFPageView = PDFPageView;\n\n      /***/\n    }), ( /* 14 */\n    /***/function (__unused_webpack_module, exports) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.compatibilityParams = exports.OptionKind = exports.AppOptions = void 0;\n      var compatibilityParams = Object.create(null);\n      exports.compatibilityParams = compatibilityParams;\n      {\n        var userAgent = navigator.userAgent || \"\";\n        var platform = navigator.platform || \"\";\n        var maxTouchPoints = navigator.maxTouchPoints || 1;\n        var isAndroid = /Android/.test(userAgent);\n        var isIOS = /\\b(iPad|iPhone|iPod)(?=;)/.test(userAgent) || platform === \"MacIntel\" && maxTouchPoints > 1;\n        (function checkCanvasSizeLimitation() {\n          if (isIOS || isAndroid) {\n            compatibilityParams.maxCanvasPixels = 5242880;\n          }\n        })();\n      }\n      var OptionKind = {\n        VIEWER: 0x02,\n        API: 0x04,\n        WORKER: 0x08,\n        PREFERENCE: 0x80\n      };\n      exports.OptionKind = OptionKind;\n      var defaultOptions = {\n        annotationEditorMode: {\n          value: -1,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        annotationMode: {\n          value: 2,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        cursorToolOnLoad: {\n          value: 0,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        defaultZoomValue: {\n          value: \"\",\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        disableHistory: {\n          value: false,\n          kind: OptionKind.VIEWER\n        },\n        disablePageLabels: {\n          value: false,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        enablePermissions: {\n          value: false,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        enablePrintAutoRotate: {\n          value: true,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        enableScripting: {\n          value: true,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        externalLinkRel: {\n          value: \"noopener noreferrer nofollow\",\n          kind: OptionKind.VIEWER\n        },\n        externalLinkTarget: {\n          value: 0,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        historyUpdateUrl: {\n          value: false,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        ignoreDestinationZoom: {\n          value: false,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        imageResourcesPath: {\n          value: \"./images/\",\n          kind: OptionKind.VIEWER\n        },\n        maxCanvasPixels: {\n          value: 16777216,\n          kind: OptionKind.VIEWER\n        },\n        forcePageColors: {\n          value: false,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        pageColorsBackground: {\n          value: \"Canvas\",\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        pageColorsForeground: {\n          value: \"CanvasText\",\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        pdfBugEnabled: {\n          value: false,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        printResolution: {\n          value: 150,\n          kind: OptionKind.VIEWER\n        },\n        sidebarViewOnLoad: {\n          value: -1,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        scrollModeOnLoad: {\n          value: -1,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        spreadModeOnLoad: {\n          value: -1,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        textLayerMode: {\n          value: 1,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        useOnlyCssZoom: {\n          value: false,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        viewerCssTheme: {\n          value: 0,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        viewOnLoad: {\n          value: 0,\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        },\n        cMapPacked: {\n          value: true,\n          kind: OptionKind.API\n        },\n        cMapUrl: {\n          value: \"../web/cmaps/\",\n          kind: OptionKind.API\n        },\n        disableAutoFetch: {\n          value: false,\n          kind: OptionKind.API + OptionKind.PREFERENCE\n        },\n        disableFontFace: {\n          value: false,\n          kind: OptionKind.API + OptionKind.PREFERENCE\n        },\n        disableRange: {\n          value: false,\n          kind: OptionKind.API + OptionKind.PREFERENCE\n        },\n        disableStream: {\n          value: false,\n          kind: OptionKind.API + OptionKind.PREFERENCE\n        },\n        docBaseUrl: {\n          value: \"\",\n          kind: OptionKind.API\n        },\n        enableXfa: {\n          value: true,\n          kind: OptionKind.API + OptionKind.PREFERENCE\n        },\n        fontExtraProperties: {\n          value: false,\n          kind: OptionKind.API\n        },\n        isEvalSupported: {\n          value: true,\n          kind: OptionKind.API\n        },\n        maxImageSize: {\n          value: -1,\n          kind: OptionKind.API\n        },\n        pdfBug: {\n          value: false,\n          kind: OptionKind.API\n        },\n        standardFontDataUrl: {\n          value: \"../web/standard_fonts/\",\n          kind: OptionKind.API\n        },\n        verbosity: {\n          value: 1,\n          kind: OptionKind.API\n        },\n        workerPort: {\n          value: null,\n          kind: OptionKind.WORKER\n        },\n        workerSrc: {\n          value: \"../build/pdf.worker.js\",\n          kind: OptionKind.WORKER\n        }\n      };\n      {\n        defaultOptions.defaultUrl = {\n          value: \"compressed.tracemonkey-pldi-09.pdf\",\n          kind: OptionKind.VIEWER\n        };\n        defaultOptions.disablePreferences = {\n          value: false,\n          kind: OptionKind.VIEWER\n        };\n        defaultOptions.locale = {\n          value: navigator.language || \"en-US\",\n          kind: OptionKind.VIEWER\n        };\n        defaultOptions.renderer = {\n          value: \"canvas\",\n          kind: OptionKind.VIEWER + OptionKind.PREFERENCE\n        };\n        defaultOptions.sandboxBundleSrc = {\n          value: \"../build/pdf.sandbox.js\",\n          kind: OptionKind.VIEWER\n        };\n      }\n      var userOptions = Object.create(null);\n      var AppOptions = /*#__PURE__*/function () {\n        function AppOptions() {\n          _classCallCheck(this, AppOptions);\n          throw new Error(\"Cannot initialize AppOptions.\");\n        }\n        _createClass(AppOptions, null, [{\n          key: \"get\",\n          value: function get(name) {\n            var userOption = userOptions[name];\n            if (userOption !== undefined) {\n              return userOption;\n            }\n            var defaultOption = defaultOptions[name];\n            if (defaultOption !== undefined) {\n              var _compatibilityParams$;\n              return (_compatibilityParams$ = compatibilityParams[name]) !== null && _compatibilityParams$ !== void 0 ? _compatibilityParams$ : defaultOption.value;\n            }\n            return undefined;\n          }\n        }, {\n          key: \"getAll\",\n          value: function getAll() {\n            var kind = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n            var options = Object.create(null);\n            for (var name in defaultOptions) {\n              var _compatibilityParams$2;\n              var defaultOption = defaultOptions[name];\n              if (kind) {\n                if ((kind & defaultOption.kind) === 0) {\n                  continue;\n                }\n                if (kind === OptionKind.PREFERENCE) {\n                  var value = defaultOption.value,\n                    valueType = _typeof(value);\n                  if (valueType === \"boolean\" || valueType === \"string\" || valueType === \"number\" && _Number$isInteger(value)) {\n                    options[name] = value;\n                    continue;\n                  }\n                  throw new Error(\"Invalid type for preference: \".concat(name));\n                }\n              }\n              var userOption = userOptions[name];\n              options[name] = userOption !== undefined ? userOption : (_compatibilityParams$2 = compatibilityParams[name]) !== null && _compatibilityParams$2 !== void 0 ? _compatibilityParams$2 : defaultOption.value;\n            }\n            return options;\n          }\n        }, {\n          key: \"set\",\n          value: function set(name, value) {\n            userOptions[name] = value;\n          }\n        }, {\n          key: \"setAll\",\n          value: function setAll(options) {\n            for (var name in options) {\n              userOptions[name] = options[name];\n            }\n          }\n        }, {\n          key: \"remove\",\n          value: function remove(name) {\n            delete userOptions[name];\n          }\n        }, {\n          key: \"_hasUserOptions\",\n          value: function _hasUserOptions() {\n            return _Object$keys(userOptions).length > 0;\n          }\n        }]);\n        return AppOptions;\n      }();\n      exports.AppOptions = AppOptions;\n\n      /***/\n    }), ( /* 15 */\n    /***/function (__unused_webpack_module, exports, __w_pdfjs_require__) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.TextAccessibilityManager = void 0;\n      var _ui_utils = __w_pdfjs_require__(7);\n      function _classPrivateMethodInitSpec(obj, privateSet) {\n        _checkPrivateRedeclaration(obj, privateSet);\n        privateSet.add(obj);\n      }\n      function _classPrivateFieldInitSpec(obj, privateMap, value) {\n        _checkPrivateRedeclaration(obj, privateMap);\n        privateMap.set(obj, value);\n      }\n      function _checkPrivateRedeclaration(obj, privateCollection) {\n        if (privateCollection.has(obj)) {\n          throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n        }\n      }\n      function _classPrivateMethodGet(receiver, privateSet, fn) {\n        if (!privateSet.has(receiver)) {\n          throw new TypeError(\"attempted to get private field on non-instance\");\n        }\n        return fn;\n      }\n      function _classStaticPrivateMethodGet(receiver, classConstructor, method) {\n        _classCheckPrivateStaticAccess(receiver, classConstructor);\n        return method;\n      }\n      function _classCheckPrivateStaticAccess(receiver, classConstructor) {\n        if (receiver !== classConstructor) {\n          throw new TypeError(\"Private static access of wrong provenance\");\n        }\n      }\n      function _classPrivateFieldGet(receiver, privateMap) {\n        var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"get\");\n        return _classApplyDescriptorGet(receiver, descriptor);\n      }\n      function _classApplyDescriptorGet(receiver, descriptor) {\n        if (descriptor.get) {\n          return descriptor.get.call(receiver);\n        }\n        return descriptor.value;\n      }\n      function _classPrivateFieldSet(receiver, privateMap, value) {\n        var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"set\");\n        _classApplyDescriptorSet(receiver, descriptor, value);\n        return value;\n      }\n      function _classExtractFieldDescriptor(receiver, privateMap, action) {\n        if (!privateMap.has(receiver)) {\n          throw new TypeError(\"attempted to \" + action + \" private field on non-instance\");\n        }\n        return privateMap.get(receiver);\n      }\n      function _classApplyDescriptorSet(receiver, descriptor, value) {\n        if (descriptor.set) {\n          descriptor.set.call(receiver, value);\n        } else {\n          if (!descriptor.writable) {\n            throw new TypeError(\"attempted to set read only private field\");\n          }\n          descriptor.value = value;\n        }\n      }\n      var _enabled = /*#__PURE__*/new _WeakMap();\n      var _textChildren = /*#__PURE__*/new _WeakMap();\n      var _textNodes = /*#__PURE__*/new _WeakMap();\n      var _waitingElements = /*#__PURE__*/new _WeakMap();\n      var _addIdToAriaOwns = /*#__PURE__*/new _WeakSet();\n      var TextAccessibilityManager = /*#__PURE__*/function () {\n        function TextAccessibilityManager() {\n          _classCallCheck(this, TextAccessibilityManager);\n          _classPrivateMethodInitSpec(this, _addIdToAriaOwns);\n          _classPrivateFieldInitSpec(this, _enabled, {\n            writable: true,\n            value: false\n          });\n          _classPrivateFieldInitSpec(this, _textChildren, {\n            writable: true,\n            value: null\n          });\n          _classPrivateFieldInitSpec(this, _textNodes, {\n            writable: true,\n            value: new _Map()\n          });\n          _classPrivateFieldInitSpec(this, _waitingElements, {\n            writable: true,\n            value: new _Map()\n          });\n        }\n        _createClass(TextAccessibilityManager, [{\n          key: \"setTextMapping\",\n          value: function setTextMapping(textDivs) {\n            _classPrivateFieldSet(this, _textChildren, textDivs);\n          }\n        }, {\n          key: \"enable\",\n          value: function enable() {\n            var _context33, _context34;\n            if (_classPrivateFieldGet(this, _enabled)) {\n              throw new Error(\"TextAccessibilityManager is already enabled.\");\n            }\n            if (!_classPrivateFieldGet(this, _textChildren)) {\n              throw new Error(\"Text divs and strings have not been set.\");\n            }\n            _classPrivateFieldSet(this, _enabled, true);\n            _classPrivateFieldSet(this, _textChildren, _sliceInstanceProperty(_context33 = _classPrivateFieldGet(this, _textChildren)).call(_context33));\n            _sortInstanceProperty(_context34 = _classPrivateFieldGet(this, _textChildren)).call(_context34, _classStaticPrivateMethodGet(TextAccessibilityManager, TextAccessibilityManager, _compareElementPositions));\n            if (_classPrivateFieldGet(this, _textNodes).size > 0) {\n              var textChildren = _classPrivateFieldGet(this, _textChildren);\n              var _iterator19 = _createForOfIteratorHelper(_classPrivateFieldGet(this, _textNodes)),\n                _step19;\n              try {\n                for (_iterator19.s(); !(_step19 = _iterator19.n()).done;) {\n                  var _step19$value = _slicedToArray(_step19.value, 2),\n                    id = _step19$value[0],\n                    nodeIndex = _step19$value[1];\n                  var element = document.getElementById(id);\n                  if (!element) {\n                    _classPrivateFieldGet(this, _textNodes).delete(id);\n                    continue;\n                  }\n                  _classPrivateMethodGet(this, _addIdToAriaOwns, _addIdToAriaOwns2).call(this, id, textChildren[nodeIndex]);\n                }\n              } catch (err) {\n                _iterator19.e(err);\n              } finally {\n                _iterator19.f();\n              }\n            }\n            var _iterator20 = _createForOfIteratorHelper(_classPrivateFieldGet(this, _waitingElements)),\n              _step20;\n            try {\n              for (_iterator20.s(); !(_step20 = _iterator20.n()).done;) {\n                var _step20$value = _slicedToArray(_step20.value, 2),\n                  _element = _step20$value[0],\n                  isRemovable = _step20$value[1];\n                this.addPointerInTextLayer(_element, isRemovable);\n              }\n            } catch (err) {\n              _iterator20.e(err);\n            } finally {\n              _iterator20.f();\n            }\n            _classPrivateFieldGet(this, _waitingElements).clear();\n          }\n        }, {\n          key: \"disable\",\n          value: function disable() {\n            if (!_classPrivateFieldGet(this, _enabled)) {\n              return;\n            }\n            _classPrivateFieldGet(this, _waitingElements).clear();\n            _classPrivateFieldSet(this, _textChildren, null);\n            _classPrivateFieldSet(this, _enabled, false);\n          }\n        }, {\n          key: \"removePointerInTextLayer\",\n          value: function removePointerInTextLayer(element) {\n            var _owns;\n            if (!_classPrivateFieldGet(this, _enabled)) {\n              _classPrivateFieldGet(this, _waitingElements).delete(element);\n              return;\n            }\n            var children = _classPrivateFieldGet(this, _textChildren);\n            if (!children || children.length === 0) {\n              return;\n            }\n            var id = element.id;\n            var nodeIndex = _classPrivateFieldGet(this, _textNodes).get(id);\n            if (nodeIndex === undefined) {\n              return;\n            }\n            var node = children[nodeIndex];\n            _classPrivateFieldGet(this, _textNodes).delete(id);\n            var owns = node.getAttribute(\"aria-owns\");\n            if ((_owns = owns) !== null && _owns !== void 0 && _includesInstanceProperty(_owns).call(_owns, id)) {\n              var _context35;\n              owns = _filterInstanceProperty(_context35 = owns.split(\" \")).call(_context35, function (x) {\n                return x !== id;\n              }).join(\" \");\n              if (owns) {\n                node.setAttribute(\"aria-owns\", owns);\n              } else {\n                node.removeAttribute(\"aria-owns\");\n                node.setAttribute(\"role\", \"presentation\");\n              }\n            }\n          }\n        }, {\n          key: \"addPointerInTextLayer\",\n          value: function addPointerInTextLayer(element, isRemovable) {\n            var id = element.id;\n            if (!id) {\n              return;\n            }\n            if (!_classPrivateFieldGet(this, _enabled)) {\n              _classPrivateFieldGet(this, _waitingElements).set(element, isRemovable);\n              return;\n            }\n            if (isRemovable) {\n              this.removePointerInTextLayer(element);\n            }\n            var children = _classPrivateFieldGet(this, _textChildren);\n            if (!children || children.length === 0) {\n              return;\n            }\n            var index = (0, _ui_utils.binarySearchFirstItem)(children, function (node) {\n              return _classStaticPrivateMethodGet(TextAccessibilityManager, TextAccessibilityManager, _compareElementPositions).call(TextAccessibilityManager, element, node) < 0;\n            });\n            var nodeIndex = Math.max(0, index - 1);\n            _classPrivateMethodGet(this, _addIdToAriaOwns, _addIdToAriaOwns2).call(this, id, children[nodeIndex]);\n            _classPrivateFieldGet(this, _textNodes).set(id, nodeIndex);\n          }\n        }, {\n          key: \"moveElementInDOM\",\n          value: function moveElementInDOM(container, element, contentElement, isRemovable) {\n            var _context36;\n            this.addPointerInTextLayer(contentElement, isRemovable);\n            if (!container.hasChildNodes()) {\n              container.append(element);\n              return;\n            }\n            var children = _filterInstanceProperty(_context36 = _Array$from(container.childNodes)).call(_context36, function (node) {\n              return node !== element;\n            });\n            if (children.length === 0) {\n              return;\n            }\n            var elementToCompare = contentElement || element;\n            var index = (0, _ui_utils.binarySearchFirstItem)(children, function (node) {\n              return _classStaticPrivateMethodGet(TextAccessibilityManager, TextAccessibilityManager, _compareElementPositions).call(TextAccessibilityManager, elementToCompare, node) < 0;\n            });\n            if (index === 0) {\n              children[0].before(element);\n            } else {\n              children[index - 1].after(element);\n            }\n          }\n        }]);\n        return TextAccessibilityManager;\n      }();\n      exports.TextAccessibilityManager = TextAccessibilityManager;\n      function _compareElementPositions(e1, e2) {\n        var rect1 = e1.getBoundingClientRect();\n        var rect2 = e2.getBoundingClientRect();\n        if (rect1.width === 0 && rect1.height === 0) {\n          return +1;\n        }\n        if (rect2.width === 0 && rect2.height === 0) {\n          return -1;\n        }\n        var top1 = rect1.y;\n        var bot1 = rect1.y + rect1.height;\n        var mid1 = rect1.y + rect1.height / 2;\n        var top2 = rect2.y;\n        var bot2 = rect2.y + rect2.height;\n        var mid2 = rect2.y + rect2.height / 2;\n        if (mid1 <= top2 && mid2 >= bot1) {\n          return -1;\n        }\n        if (mid2 <= top1 && mid1 >= bot2) {\n          return +1;\n        }\n        var centerX1 = rect1.x + rect1.width / 2;\n        var centerX2 = rect2.x + rect2.width / 2;\n        return centerX1 - centerX2;\n      }\n      function _addIdToAriaOwns2(id, node) {\n        var owns = node.getAttribute(\"aria-owns\");\n        if (!(owns !== null && owns !== void 0 && _includesInstanceProperty(owns).call(owns, id))) {\n          var _context37;\n          node.setAttribute(\"aria-owns\", owns ? _concatInstanceProperty(_context37 = \"\".concat(owns, \" \")).call(_context37, id) : id);\n        }\n        node.removeAttribute(\"role\");\n      }\n\n      /***/\n    }), ( /* 16 */\n    /***/function (__unused_webpack_module, exports, __w_pdfjs_require__) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.PDFRenderingQueue = void 0;\n      var _pdfjsLib = __w_pdfjs_require__(3);\n      var _ui_utils = __w_pdfjs_require__(7);\n      var CLEANUP_TIMEOUT = 30000;\n      var PDFRenderingQueue = /*#__PURE__*/function () {\n        function PDFRenderingQueue() {\n          _classCallCheck(this, PDFRenderingQueue);\n          this.pdfViewer = null;\n          this.pdfThumbnailViewer = null;\n          this.onIdle = null;\n          this.highestPriorityPage = null;\n          this.idleTimeout = null;\n          this.printing = false;\n          this.isThumbnailViewEnabled = false;\n        }\n        _createClass(PDFRenderingQueue, [{\n          key: \"setViewer\",\n          value: function setViewer(pdfViewer) {\n            this.pdfViewer = pdfViewer;\n          }\n        }, {\n          key: \"setThumbnailViewer\",\n          value: function setThumbnailViewer(pdfThumbnailViewer) {\n            this.pdfThumbnailViewer = pdfThumbnailViewer;\n          }\n        }, {\n          key: \"isHighestPriority\",\n          value: function isHighestPriority(view) {\n            return this.highestPriorityPage === view.renderingId;\n          }\n        }, {\n          key: \"hasViewer\",\n          value: function hasViewer() {\n            return !!this.pdfViewer;\n          }\n        }, {\n          key: \"renderHighestPriority\",\n          value: function renderHighestPriority(currentlyVisiblePages) {\n            var _this$pdfThumbnailVie;\n            if (this.idleTimeout) {\n              clearTimeout(this.idleTimeout);\n              this.idleTimeout = null;\n            }\n            if (this.pdfViewer.forceRendering(currentlyVisiblePages)) {\n              return;\n            }\n            if (this.isThumbnailViewEnabled && (_this$pdfThumbnailVie = this.pdfThumbnailViewer) !== null && _this$pdfThumbnailVie !== void 0 && _this$pdfThumbnailVie.forceRendering()) {\n              return;\n            }\n            if (this.printing) {\n              return;\n            }\n            if (this.onIdle) {\n              this.idleTimeout = _setTimeout(this.onIdle.bind(this), CLEANUP_TIMEOUT);\n            }\n          }\n        }, {\n          key: \"getHighestPriority\",\n          value: function getHighestPriority(visible, views, scrolledDown) {\n            var preRenderExtra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n            var visibleViews = visible.views,\n              numVisible = visibleViews.length;\n            if (numVisible === 0) {\n              return null;\n            }\n            for (var i = 0; i < numVisible; i++) {\n              var view = visibleViews[i].view;\n              if (!this.isViewFinished(view)) {\n                return view;\n              }\n            }\n            var firstId = visible.first.id,\n              lastId = visible.last.id;\n            if (lastId - firstId + 1 > numVisible) {\n              var visibleIds = visible.ids;\n              for (var _i2 = 1, ii = lastId - firstId; _i2 < ii; _i2++) {\n                var holeId = scrolledDown ? firstId + _i2 : lastId - _i2;\n                if (visibleIds.has(holeId)) {\n                  continue;\n                }\n                var holeView = views[holeId - 1];\n                if (!this.isViewFinished(holeView)) {\n                  return holeView;\n                }\n              }\n            }\n            var preRenderIndex = scrolledDown ? lastId : firstId - 2;\n            var preRenderView = views[preRenderIndex];\n            if (preRenderView && !this.isViewFinished(preRenderView)) {\n              return preRenderView;\n            }\n            if (preRenderExtra) {\n              preRenderIndex += scrolledDown ? 1 : -1;\n              preRenderView = views[preRenderIndex];\n              if (preRenderView && !this.isViewFinished(preRenderView)) {\n                return preRenderView;\n              }\n            }\n            return null;\n          }\n        }, {\n          key: \"isViewFinished\",\n          value: function isViewFinished(view) {\n            return view.renderingState === _ui_utils.RenderingStates.FINISHED;\n          }\n        }, {\n          key: \"renderView\",\n          value: function renderView(view) {\n            var _this15 = this;\n            switch (view.renderingState) {\n              case _ui_utils.RenderingStates.FINISHED:\n                return false;\n              case _ui_utils.RenderingStates.PAUSED:\n                this.highestPriorityPage = view.renderingId;\n                view.resume();\n                break;\n              case _ui_utils.RenderingStates.RUNNING:\n                this.highestPriorityPage = view.renderingId;\n                break;\n              case _ui_utils.RenderingStates.INITIAL:\n                this.highestPriorityPage = view.renderingId;\n                view.draw().finally(function () {\n                  _this15.renderHighestPriority();\n                }).catch(function (reason) {\n                  if (reason instanceof _pdfjsLib.RenderingCancelledException) {\n                    return;\n                  }\n                  console.error(\"renderView: \\\"\".concat(reason, \"\\\"\"));\n                });\n                break;\n            }\n            return true;\n          }\n        }]);\n        return PDFRenderingQueue;\n      }();\n      exports.PDFRenderingQueue = PDFRenderingQueue;\n\n      /***/\n    }), ( /* 17 */\n    /***/function (__unused_webpack_module, exports) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.TextHighlighter = void 0;\n      var TextHighlighter = /*#__PURE__*/function () {\n        function TextHighlighter(_ref) {\n          _classCallCheck(this, TextHighlighter);\n          var findController = _ref.findController,\n            eventBus = _ref.eventBus,\n            pageIndex = _ref.pageIndex;\n          this.findController = findController;\n          this.matches = [];\n          this.eventBus = eventBus;\n          this.pageIdx = pageIndex;\n          this._onUpdateTextLayerMatches = null;\n          this.textDivs = null;\n          this.textContentItemsStr = null;\n          this.enabled = false;\n        }\n        _createClass(TextHighlighter, [{\n          key: \"setTextMapping\",\n          value: function setTextMapping(divs, texts) {\n            this.textDivs = divs;\n            this.textContentItemsStr = texts;\n          }\n        }, {\n          key: \"enable\",\n          value: function enable() {\n            var _this16 = this;\n            if (!this.textDivs || !this.textContentItemsStr) {\n              throw new Error(\"Text divs and strings have not been set.\");\n            }\n            if (this.enabled) {\n              throw new Error(\"TextHighlighter is already enabled.\");\n            }\n            this.enabled = true;\n            if (!this._onUpdateTextLayerMatches) {\n              this._onUpdateTextLayerMatches = function (evt) {\n                if (evt.pageIndex === _this16.pageIdx || evt.pageIndex === -1) {\n                  _this16._updateMatches();\n                }\n              };\n              this.eventBus._on(\"updatetextlayermatches\", this._onUpdateTextLayerMatches);\n            }\n            this._updateMatches();\n          }\n        }, {\n          key: \"disable\",\n          value: function disable() {\n            if (!this.enabled) {\n              return;\n            }\n            this.enabled = false;\n            if (this._onUpdateTextLayerMatches) {\n              this.eventBus._off(\"updatetextlayermatches\", this._onUpdateTextLayerMatches);\n              this._onUpdateTextLayerMatches = null;\n            }\n          }\n        }, {\n          key: \"_convertMatches\",\n          value: function _convertMatches(matches, matchesLength) {\n            if (!matches) {\n              return [];\n            }\n            var textContentItemsStr = this.textContentItemsStr;\n            var i = 0,\n              iIndex = 0;\n            var end = textContentItemsStr.length - 1;\n            var result = [];\n            for (var m = 0, mm = matches.length; m < mm; m++) {\n              var matchIdx = matches[m];\n              while (i !== end && matchIdx >= iIndex + textContentItemsStr[i].length) {\n                iIndex += textContentItemsStr[i].length;\n                i++;\n              }\n              if (i === textContentItemsStr.length) {\n                console.error(\"Could not find a matching mapping\");\n              }\n              var match = {\n                begin: {\n                  divIdx: i,\n                  offset: matchIdx - iIndex\n                }\n              };\n              matchIdx += matchesLength[m];\n              while (i !== end && matchIdx > iIndex + textContentItemsStr[i].length) {\n                iIndex += textContentItemsStr[i].length;\n                i++;\n              }\n              match.end = {\n                divIdx: i,\n                offset: matchIdx - iIndex\n              };\n              result.push(match);\n            }\n            return result;\n          }\n        }, {\n          key: \"_renderMatches\",\n          value: function _renderMatches(matches) {\n            if (matches.length === 0) {\n              return;\n            }\n            var findController = this.findController,\n              pageIdx = this.pageIdx;\n            var textContentItemsStr = this.textContentItemsStr,\n              textDivs = this.textDivs;\n            var isSelectedPage = pageIdx === findController.selected.pageIdx;\n            var selectedMatchIdx = findController.selected.matchIdx;\n            var highlightAll = findController.state.highlightAll;\n            var prevEnd = null;\n            var infinity = {\n              divIdx: -1,\n              offset: undefined\n            };\n            function beginText(begin, className) {\n              var divIdx = begin.divIdx;\n              textDivs[divIdx].textContent = \"\";\n              return appendTextToDiv(divIdx, 0, begin.offset, className);\n            }\n            function appendTextToDiv(divIdx, fromOffset, toOffset, className) {\n              var div = textDivs[divIdx];\n              if (div.nodeType === Node.TEXT_NODE) {\n                var span = document.createElement(\"span\");\n                div.before(span);\n                span.append(div);\n                textDivs[divIdx] = span;\n                div = span;\n              }\n              var content = textContentItemsStr[divIdx].substring(fromOffset, toOffset);\n              var node = document.createTextNode(content);\n              if (className) {\n                var _span = document.createElement(\"span\");\n                _span.className = \"\".concat(className, \" appended\");\n                _span.append(node);\n                div.append(_span);\n                return _includesInstanceProperty(className).call(className, \"selected\") ? _span.offsetLeft : 0;\n              }\n              div.append(node);\n              return 0;\n            }\n            var i0 = selectedMatchIdx,\n              i1 = i0 + 1;\n            if (highlightAll) {\n              i0 = 0;\n              i1 = matches.length;\n            } else if (!isSelectedPage) {\n              return;\n            }\n            for (var i = i0; i < i1; i++) {\n              var match = matches[i];\n              var begin = match.begin;\n              var end = match.end;\n              var isSelected = isSelectedPage && i === selectedMatchIdx;\n              var highlightSuffix = isSelected ? \" selected\" : \"\";\n              var selectedLeft = 0;\n              if (!prevEnd || begin.divIdx !== prevEnd.divIdx) {\n                if (prevEnd !== null) {\n                  appendTextToDiv(prevEnd.divIdx, prevEnd.offset, infinity.offset);\n                }\n                beginText(begin);\n              } else {\n                appendTextToDiv(prevEnd.divIdx, prevEnd.offset, begin.offset);\n              }\n              if (begin.divIdx === end.divIdx) {\n                selectedLeft = appendTextToDiv(begin.divIdx, begin.offset, end.offset, \"highlight\" + highlightSuffix);\n              } else {\n                selectedLeft = appendTextToDiv(begin.divIdx, begin.offset, infinity.offset, \"highlight begin\" + highlightSuffix);\n                for (var n0 = begin.divIdx + 1, n1 = end.divIdx; n0 < n1; n0++) {\n                  textDivs[n0].className = \"highlight middle\" + highlightSuffix;\n                }\n                beginText(end, \"highlight end\" + highlightSuffix);\n              }\n              prevEnd = end;\n              if (isSelected) {\n                findController.scrollMatchIntoView({\n                  element: textDivs[begin.divIdx],\n                  selectedLeft: selectedLeft,\n                  pageIndex: pageIdx,\n                  matchIndex: selectedMatchIdx\n                });\n              }\n            }\n            if (prevEnd) {\n              appendTextToDiv(prevEnd.divIdx, prevEnd.offset, infinity.offset);\n            }\n          }\n        }, {\n          key: \"_updateMatches\",\n          value: function _updateMatches() {\n            if (!this.enabled) {\n              return;\n            }\n            var findController = this.findController,\n              matches = this.matches,\n              pageIdx = this.pageIdx;\n            var textContentItemsStr = this.textContentItemsStr,\n              textDivs = this.textDivs;\n            var clearedUntilDivIdx = -1;\n            for (var i = 0, ii = matches.length; i < ii; i++) {\n              var match = matches[i];\n              var begin = Math.max(clearedUntilDivIdx, match.begin.divIdx);\n              for (var n = begin, end = match.end.divIdx; n <= end; n++) {\n                var div = textDivs[n];\n                div.textContent = textContentItemsStr[n];\n                div.className = \"\";\n              }\n              clearedUntilDivIdx = match.end.divIdx + 1;\n            }\n            if (!(findController !== null && findController !== void 0 && findController.highlightMatches)) {\n              return;\n            }\n            var pageMatches = findController.pageMatches[pageIdx] || null;\n            var pageMatchesLength = findController.pageMatchesLength[pageIdx] || null;\n            this.matches = this._convertMatches(pageMatches, pageMatchesLength);\n            this._renderMatches(this.matches);\n          }\n        }]);\n        return TextHighlighter;\n      }();\n      exports.TextHighlighter = TextHighlighter;\n\n      /***/\n    }), ( /* 18 */\n    /***/function (__unused_webpack_module, exports, __w_pdfjs_require__) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.DownloadManager = void 0;\n      var _pdfjsLib = __w_pdfjs_require__(3);\n      ;\n      function _download(blobUrl, filename) {\n        var a = document.createElement(\"a\");\n        if (!a.click) {\n          throw new Error('DownloadManager: \"a.click()\" is not supported.');\n        }\n        a.href = blobUrl;\n        a.target = \"_parent\";\n        if (\"download\" in a) {\n          a.download = filename;\n        }\n        (document.body || document.documentElement).append(a);\n        a.click();\n        a.remove();\n      }\n      var DownloadManager = /*#__PURE__*/function () {\n        function DownloadManager() {\n          _classCallCheck(this, DownloadManager);\n          this._openBlobUrls = new _WeakMap();\n        }\n        _createClass(DownloadManager, [{\n          key: \"downloadUrl\",\n          value: function downloadUrl(url, filename) {\n            if (!(0, _pdfjsLib.createValidAbsoluteUrl)(url, \"http://example.com\")) {\n              console.error(\"downloadUrl - not a valid URL: \".concat(url));\n              return;\n            }\n            _download(url + \"#pdfjs.action=download\", filename);\n          }\n        }, {\n          key: \"downloadData\",\n          value: function downloadData(data, filename, contentType) {\n            var blobUrl = _URL.createObjectURL(new Blob([data], {\n              type: contentType\n            }));\n            _download(blobUrl, filename);\n          }\n        }, {\n          key: \"openOrDownloadData\",\n          value: function openOrDownloadData(element, data, filename) {\n            var isPdfData = (0, _pdfjsLib.isPdfFile)(filename);\n            var contentType = isPdfData ? \"application/pdf\" : \"\";\n            if (isPdfData) {\n              var blobUrl = this._openBlobUrls.get(element);\n              if (!blobUrl) {\n                blobUrl = _URL.createObjectURL(new Blob([data], {\n                  type: contentType\n                }));\n                this._openBlobUrls.set(element, blobUrl);\n              }\n              var viewerUrl;\n              viewerUrl = \"?file=\" + encodeURIComponent(blobUrl + \"#\" + filename);\n              try {\n                window.open(viewerUrl);\n                return true;\n              } catch (ex) {\n                console.error(\"openOrDownloadData: \".concat(ex));\n                _URL.revokeObjectURL(blobUrl);\n                this._openBlobUrls.delete(element);\n              }\n            }\n            this.downloadData(data, filename, contentType);\n            return false;\n          }\n        }, {\n          key: \"download\",\n          value: function download(blob, url, filename) {\n            var blobUrl = _URL.createObjectURL(blob);\n            _download(blobUrl, filename);\n          }\n        }]);\n        return DownloadManager;\n      }();\n      exports.DownloadManager = DownloadManager;\n\n      /***/\n    }), ( /* 19 */\n    /***/function (__unused_webpack_module, exports) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.WaitOnType = exports.EventBus = exports.AutomationEventBus = void 0;\n      exports.waitOnEventOrTimeout = waitOnEventOrTimeout;\n      var WaitOnType = {\n        EVENT: \"event\",\n        TIMEOUT: \"timeout\"\n      };\n      exports.WaitOnType = WaitOnType;\n      function waitOnEventOrTimeout(_ref) {\n        var target = _ref.target,\n          name = _ref.name,\n          _ref$delay = _ref.delay,\n          delay = _ref$delay === void 0 ? 0 : _ref$delay;\n        return new _Promise(function (resolve, reject) {\n          if (_typeof(target) !== \"object\" || !(name && typeof name === \"string\") || !(_Number$isInteger(delay) && delay >= 0)) {\n            throw new Error(\"waitOnEventOrTimeout - invalid parameters.\");\n          }\n          function handler(type) {\n            if (target instanceof EventBus) {\n              target._off(name, eventHandler);\n            } else {\n              target.removeEventListener(name, eventHandler);\n            }\n            if (timeout) {\n              clearTimeout(timeout);\n            }\n            resolve(type);\n          }\n          var eventHandler = handler.bind(null, WaitOnType.EVENT);\n          if (target instanceof EventBus) {\n            target._on(name, eventHandler);\n          } else {\n            target.addEventListener(name, eventHandler);\n          }\n          var timeoutHandler = handler.bind(null, WaitOnType.TIMEOUT);\n          var timeout = _setTimeout(timeoutHandler, delay);\n        });\n      }\n      var EventBus = /*#__PURE__*/function () {\n        function EventBus() {\n          _classCallCheck(this, EventBus);\n          this._listeners = Object.create(null);\n        }\n        _createClass(EventBus, [{\n          key: \"on\",\n          value: function on(eventName, listener) {\n            var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n            this._on(eventName, listener, {\n              external: true,\n              once: options === null || options === void 0 ? void 0 : options.once\n            });\n          }\n        }, {\n          key: \"off\",\n          value: function off(eventName, listener) {\n            var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n            this._off(eventName, listener, {\n              external: true,\n              once: options === null || options === void 0 ? void 0 : options.once\n            });\n          }\n        }, {\n          key: \"dispatch\",\n          value: function dispatch(eventName, data) {\n            var eventListeners = this._listeners[eventName];\n            if (!eventListeners || eventListeners.length === 0) {\n              return;\n            }\n            var externalListeners;\n            var _iterator21 = _createForOfIteratorHelper(_sliceInstanceProperty(eventListeners).call(eventListeners, 0)),\n              _step21;\n            try {\n              for (_iterator21.s(); !(_step21 = _iterator21.n()).done;) {\n                var _step21$value = _step21.value,\n                  _listener = _step21$value.listener,\n                  external = _step21$value.external,\n                  once = _step21$value.once;\n                if (once) {\n                  this._off(eventName, _listener);\n                }\n                if (external) {\n                  (externalListeners || (externalListeners = [])).push(_listener);\n                  continue;\n                }\n                _listener(data);\n              }\n            } catch (err) {\n              _iterator21.e(err);\n            } finally {\n              _iterator21.f();\n            }\n            if (externalListeners) {\n              var _iterator22 = _createForOfIteratorHelper(externalListeners),\n                _step22;\n              try {\n                for (_iterator22.s(); !(_step22 = _iterator22.n()).done;) {\n                  var listener = _step22.value;\n                  listener(data);\n                }\n              } catch (err) {\n                _iterator22.e(err);\n              } finally {\n                _iterator22.f();\n              }\n              externalListeners = null;\n            }\n          }\n        }, {\n          key: \"_on\",\n          value: function _on(eventName, listener) {\n            var _this$_listeners;\n            var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n            var eventListeners = (_this$_listeners = this._listeners)[eventName] || (_this$_listeners[eventName] = []);\n            eventListeners.push({\n              listener: listener,\n              external: (options === null || options === void 0 ? void 0 : options.external) === true,\n              once: (options === null || options === void 0 ? void 0 : options.once) === true\n            });\n          }\n        }, {\n          key: \"_off\",\n          value: function _off(eventName, listener) {\n            var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n            var eventListeners = this._listeners[eventName];\n            if (!eventListeners) {\n              return;\n            }\n            for (var i = 0, ii = eventListeners.length; i < ii; i++) {\n              if (eventListeners[i].listener === listener) {\n                _spliceInstanceProperty(eventListeners).call(eventListeners, i, 1);\n                return;\n              }\n            }\n          }\n        }]);\n        return EventBus;\n      }();\n      exports.EventBus = EventBus;\n      var AutomationEventBus = /*#__PURE__*/function (_EventBus) {\n        _inherits(AutomationEventBus, _EventBus);\n        function AutomationEventBus() {\n          _classCallCheck(this, AutomationEventBus);\n          return _callSuper(this, AutomationEventBus, arguments);\n        }\n        _createClass(AutomationEventBus, [{\n          key: \"dispatch\",\n          value: function dispatch(eventName, data) {\n            throw new Error(\"Not implemented: AutomationEventBus.dispatch\");\n          }\n        }]);\n        return AutomationEventBus;\n      }(EventBus);\n      exports.AutomationEventBus = AutomationEventBus;\n\n      /***/\n    }), ( /* 20 */\n    /***/function (__unused_webpack_module, exports, __w_pdfjs_require__) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.GenericL10n = void 0;\n      __w_pdfjs_require__(21);\n      var _l10n_utils = __w_pdfjs_require__(4);\n      var webL10n = document.webL10n;\n      var GenericL10n = /*#__PURE__*/function () {\n        function GenericL10n(lang) {\n          _classCallCheck(this, GenericL10n);\n          this._lang = lang;\n          this._ready = new _Promise(function (resolve, reject) {\n            webL10n.setLanguage((0, _l10n_utils.fixupLangCode)(lang), function () {\n              resolve(webL10n);\n            });\n          });\n        }\n        _createClass(GenericL10n, [{\n          key: \"getLanguage\",\n          value: function () {\n            var _getLanguage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16() {\n              var l10n;\n              return _regeneratorRuntime.wrap(function _callee16$(_context38) {\n                while (1) switch (_context38.prev = _context38.next) {\n                  case 0:\n                    _context38.next = 2;\n                    return this._ready;\n                  case 2:\n                    l10n = _context38.sent;\n                    return _context38.abrupt(\"return\", l10n.getLanguage());\n                  case 4:\n                  case \"end\":\n                    return _context38.stop();\n                }\n              }, _callee16, this);\n            }));\n            function getLanguage() {\n              return _getLanguage.apply(this, arguments);\n            }\n            return getLanguage;\n          }()\n        }, {\n          key: \"getDirection\",\n          value: function () {\n            var _getDirection = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17() {\n              var l10n;\n              return _regeneratorRuntime.wrap(function _callee17$(_context39) {\n                while (1) switch (_context39.prev = _context39.next) {\n                  case 0:\n                    _context39.next = 2;\n                    return this._ready;\n                  case 2:\n                    l10n = _context39.sent;\n                    return _context39.abrupt(\"return\", l10n.getDirection());\n                  case 4:\n                  case \"end\":\n                    return _context39.stop();\n                }\n              }, _callee17, this);\n            }));\n            function getDirection() {\n              return _getDirection.apply(this, arguments);\n            }\n            return getDirection;\n          }()\n        }, {\n          key: \"get\",\n          value: function () {\n            var _get2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18(key) {\n              var args,\n                fallback,\n                l10n,\n                _args19 = arguments;\n              return _regeneratorRuntime.wrap(function _callee18$(_context40) {\n                while (1) switch (_context40.prev = _context40.next) {\n                  case 0:\n                    args = _args19.length > 1 && _args19[1] !== undefined ? _args19[1] : null;\n                    fallback = _args19.length > 2 && _args19[2] !== undefined ? _args19[2] : (0, _l10n_utils.getL10nFallback)(key, args);\n                    _context40.next = 4;\n                    return this._ready;\n                  case 4:\n                    l10n = _context40.sent;\n                    return _context40.abrupt(\"return\", l10n.get(key, args, fallback));\n                  case 6:\n                  case \"end\":\n                    return _context40.stop();\n                }\n              }, _callee18, this);\n            }));\n            function get(_x7) {\n              return _get2.apply(this, arguments);\n            }\n            return get;\n          }()\n        }, {\n          key: \"translate\",\n          value: function () {\n            var _translate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(element) {\n              var l10n;\n              return _regeneratorRuntime.wrap(function _callee19$(_context41) {\n                while (1) switch (_context41.prev = _context41.next) {\n                  case 0:\n                    _context41.next = 2;\n                    return this._ready;\n                  case 2:\n                    l10n = _context41.sent;\n                    return _context41.abrupt(\"return\", l10n.translate(element));\n                  case 4:\n                  case \"end\":\n                    return _context41.stop();\n                }\n              }, _callee19, this);\n            }));\n            function translate(_x8) {\n              return _translate.apply(this, arguments);\n            }\n            return translate;\n          }()\n        }]);\n        return GenericL10n;\n      }();\n      exports.GenericL10n = GenericL10n;\n\n      /***/\n    }), ( /* 21 */\n    /***/function () {\n      document.webL10n = function (window, document, undefined) {\n        var gL10nData = {};\n        var gTextData = '';\n        var gTextProp = 'textContent';\n        var gLanguage = '';\n        var gMacros = {};\n        var gReadyState = 'loading';\n        var gAsyncResourceLoading = true;\n        function getL10nResourceLinks() {\n          return document.querySelectorAll('link[type=\"application/l10n\"]');\n        }\n        function getL10nDictionary() {\n          var script = document.querySelector('script[type=\"application/l10n\"]');\n          return script ? JSON.parse(script.innerHTML) : null;\n        }\n        function getTranslatableChildren(element) {\n          return element ? element.querySelectorAll('*[data-l10n-id]') : [];\n        }\n        function getL10nAttributes(element) {\n          if (!element) return {};\n          var l10nId = element.getAttribute('data-l10n-id');\n          var l10nArgs = element.getAttribute('data-l10n-args');\n          var args = {};\n          if (l10nArgs) {\n            try {\n              args = JSON.parse(l10nArgs);\n            } catch (e) {\n              console.warn('could not parse arguments for #' + l10nId);\n            }\n          }\n          return {\n            id: l10nId,\n            args: args\n          };\n        }\n        function xhrLoadText(url, onSuccess, onFailure) {\n          onSuccess = onSuccess || function _onSuccess(data) {};\n          onFailure = onFailure || function _onFailure() {};\n          var xhr = new XMLHttpRequest();\n          xhr.open('GET', url, gAsyncResourceLoading);\n          if (xhr.overrideMimeType) {\n            xhr.overrideMimeType('text/plain; charset=utf-8');\n          }\n          xhr.onreadystatechange = function () {\n            if (xhr.readyState == 4) {\n              if (xhr.status == 200 || xhr.status === 0) {\n                onSuccess(xhr.responseText);\n              } else {\n                onFailure();\n              }\n            }\n          };\n          xhr.onerror = onFailure;\n          xhr.ontimeout = onFailure;\n          try {\n            xhr.send(null);\n          } catch (e) {\n            onFailure();\n          }\n        }\n        function parseResource(href, lang, successCallback, failureCallback) {\n          var baseURL = href.replace(/[^\\/]*$/, '') || './';\n          function evalString(text) {\n            if (_lastIndexOfInstanceProperty(text).call(text, '\\\\') < 0) return text;\n            return text.replace(/\\\\\\\\/g, '\\\\').replace(/\\\\n/g, '\\n').replace(/\\\\r/g, '\\r').replace(/\\\\t/g, '\\t').replace(/\\\\b/g, '\\b').replace(/\\\\f/g, '\\f').replace(/\\\\{/g, '{').replace(/\\\\}/g, '}').replace(/\\\\\"/g, '\"').replace(/\\\\'/g, \"'\");\n          }\n          function parseProperties(text, parsedPropertiesCallback) {\n            var dictionary = {};\n            var reBlank = /^\\s*|\\s*$/;\n            var reComment = /^\\s*#|^\\s*$/;\n            var reSection = /^\\s*\\[(.*)\\]\\s*$/;\n            var reImport = /^\\s*@import\\s+url\\((.*)\\)\\s*$/i;\n            var reSplit = /^([^=\\s]*)\\s*=\\s*(.+)$/;\n            function parseRawLines(rawText, extendedSyntax, parsedRawLinesCallback) {\n              var entries = rawText.replace(reBlank, '').split(/[\\r\\n]+/);\n              var currentLang = '*';\n              var genericLang = lang.split('-', 1)[0];\n              var skipLang = false;\n              var match = '';\n              function nextEntry() {\n                while (true) {\n                  if (!entries.length) {\n                    parsedRawLinesCallback();\n                    return;\n                  }\n                  var line = entries.shift();\n                  if (reComment.test(line)) continue;\n                  if (extendedSyntax) {\n                    match = reSection.exec(line);\n                    if (match) {\n                      currentLang = match[1].toLowerCase();\n                      skipLang = currentLang !== '*' && currentLang !== lang && currentLang !== genericLang;\n                      continue;\n                    } else if (skipLang) {\n                      continue;\n                    }\n                    match = reImport.exec(line);\n                    if (match) {\n                      loadImport(baseURL + match[1], nextEntry);\n                      return;\n                    }\n                  }\n                  var tmp = line.match(reSplit);\n                  if (tmp && tmp.length == 3) {\n                    dictionary[tmp[1]] = evalString(tmp[2]);\n                  }\n                }\n              }\n              nextEntry();\n            }\n            function loadImport(url, callback) {\n              xhrLoadText(url, function (content) {\n                parseRawLines(content, false, callback);\n              }, function () {\n                console.warn(url + ' not found.');\n                callback();\n              });\n            }\n            parseRawLines(text, true, function () {\n              parsedPropertiesCallback(dictionary);\n            });\n          }\n          xhrLoadText(href, function (response) {\n            gTextData += response;\n            parseProperties(response, function (data) {\n              for (var key in data) {\n                var id,\n                  prop,\n                  index = _lastIndexOfInstanceProperty(key).call(key, '.');\n                if (index > 0) {\n                  id = key.substring(0, index);\n                  prop = key.substring(index + 1);\n                } else {\n                  id = key;\n                  prop = gTextProp;\n                }\n                if (!gL10nData[id]) {\n                  gL10nData[id] = {};\n                }\n                gL10nData[id][prop] = data[key];\n              }\n              if (successCallback) {\n                successCallback();\n              }\n            });\n          }, failureCallback);\n        }\n        function loadLocale(lang, callback) {\n          if (lang) {\n            lang = lang.toLowerCase();\n          }\n          callback = callback || function _callback() {};\n          clear();\n          gLanguage = lang;\n          var langLinks = getL10nResourceLinks();\n          var langCount = langLinks.length;\n          if (langCount === 0) {\n            var dict = getL10nDictionary();\n            if (dict && dict.locales && dict.default_locale) {\n              console.log('using the embedded JSON directory, early way out');\n              gL10nData = dict.locales[lang];\n              if (!gL10nData) {\n                var defaultLocale = dict.default_locale.toLowerCase();\n                for (var anyCaseLang in dict.locales) {\n                  anyCaseLang = anyCaseLang.toLowerCase();\n                  if (anyCaseLang === lang) {\n                    gL10nData = dict.locales[lang];\n                    break;\n                  } else if (anyCaseLang === defaultLocale) {\n                    gL10nData = dict.locales[defaultLocale];\n                  }\n                }\n              }\n              callback();\n            } else {\n              console.log('no resource to load, early way out');\n            }\n            gReadyState = 'complete';\n            return;\n          }\n          var onResourceLoaded = null;\n          var gResourceCount = 0;\n          onResourceLoaded = function onResourceLoaded() {\n            gResourceCount++;\n            if (gResourceCount >= langCount) {\n              callback();\n              gReadyState = 'complete';\n            }\n          };\n          function L10nResourceLink(link) {\n            var href = link.href;\n            this.load = function (lang, callback) {\n              parseResource(href, lang, callback, function () {\n                console.warn(href + ' not found.');\n                console.warn('\"' + lang + '\" resource not found');\n                gLanguage = '';\n                callback();\n              });\n            };\n          }\n          for (var i = 0; i < langCount; i++) {\n            var resource = new L10nResourceLink(langLinks[i]);\n            resource.load(lang, onResourceLoaded);\n          }\n        }\n        function clear() {\n          gL10nData = {};\n          gTextData = '';\n          gLanguage = '';\n        }\n        function getPluralRules(lang) {\n          var locales2rules = {\n            'af': 3,\n            'ak': 4,\n            'am': 4,\n            'ar': 1,\n            'asa': 3,\n            'az': 0,\n            'be': 11,\n            'bem': 3,\n            'bez': 3,\n            'bg': 3,\n            'bh': 4,\n            'bm': 0,\n            'bn': 3,\n            'bo': 0,\n            'br': 20,\n            'brx': 3,\n            'bs': 11,\n            'ca': 3,\n            'cgg': 3,\n            'chr': 3,\n            'cs': 12,\n            'cy': 17,\n            'da': 3,\n            'de': 3,\n            'dv': 3,\n            'dz': 0,\n            'ee': 3,\n            'el': 3,\n            'en': 3,\n            'eo': 3,\n            'es': 3,\n            'et': 3,\n            'eu': 3,\n            'fa': 0,\n            'ff': 5,\n            'fi': 3,\n            'fil': 4,\n            'fo': 3,\n            'fr': 5,\n            'fur': 3,\n            'fy': 3,\n            'ga': 8,\n            'gd': 24,\n            'gl': 3,\n            'gsw': 3,\n            'gu': 3,\n            'guw': 4,\n            'gv': 23,\n            'ha': 3,\n            'haw': 3,\n            'he': 2,\n            'hi': 4,\n            'hr': 11,\n            'hu': 0,\n            'id': 0,\n            'ig': 0,\n            'ii': 0,\n            'is': 3,\n            'it': 3,\n            'iu': 7,\n            'ja': 0,\n            'jmc': 3,\n            'jv': 0,\n            'ka': 0,\n            'kab': 5,\n            'kaj': 3,\n            'kcg': 3,\n            'kde': 0,\n            'kea': 0,\n            'kk': 3,\n            'kl': 3,\n            'km': 0,\n            'kn': 0,\n            'ko': 0,\n            'ksb': 3,\n            'ksh': 21,\n            'ku': 3,\n            'kw': 7,\n            'lag': 18,\n            'lb': 3,\n            'lg': 3,\n            'ln': 4,\n            'lo': 0,\n            'lt': 10,\n            'lv': 6,\n            'mas': 3,\n            'mg': 4,\n            'mk': 16,\n            'ml': 3,\n            'mn': 3,\n            'mo': 9,\n            'mr': 3,\n            'ms': 0,\n            'mt': 15,\n            'my': 0,\n            'nah': 3,\n            'naq': 7,\n            'nb': 3,\n            'nd': 3,\n            'ne': 3,\n            'nl': 3,\n            'nn': 3,\n            'no': 3,\n            'nr': 3,\n            'nso': 4,\n            'ny': 3,\n            'nyn': 3,\n            'om': 3,\n            'or': 3,\n            'pa': 3,\n            'pap': 3,\n            'pl': 13,\n            'ps': 3,\n            'pt': 3,\n            'rm': 3,\n            'ro': 9,\n            'rof': 3,\n            'ru': 11,\n            'rwk': 3,\n            'sah': 0,\n            'saq': 3,\n            'se': 7,\n            'seh': 3,\n            'ses': 0,\n            'sg': 0,\n            'sh': 11,\n            'shi': 19,\n            'sk': 12,\n            'sl': 14,\n            'sma': 7,\n            'smi': 7,\n            'smj': 7,\n            'smn': 7,\n            'sms': 7,\n            'sn': 3,\n            'so': 3,\n            'sq': 3,\n            'sr': 11,\n            'ss': 3,\n            'ssy': 3,\n            'st': 3,\n            'sv': 3,\n            'sw': 3,\n            'syr': 3,\n            'ta': 3,\n            'te': 3,\n            'teo': 3,\n            'th': 0,\n            'ti': 4,\n            'tig': 3,\n            'tk': 3,\n            'tl': 4,\n            'tn': 3,\n            'to': 0,\n            'tr': 0,\n            'ts': 3,\n            'tzm': 22,\n            'uk': 11,\n            'ur': 3,\n            've': 3,\n            'vi': 0,\n            'vun': 3,\n            'wa': 4,\n            'wae': 3,\n            'wo': 0,\n            'xh': 3,\n            'xog': 3,\n            'yo': 0,\n            'zh': 0,\n            'zu': 3\n          };\n          function isIn(n, list) {\n            return _indexOfInstanceProperty(list).call(list, n) !== -1;\n          }\n          function isBetween(n, start, end) {\n            return start <= n && n <= end;\n          }\n          var pluralRules = {\n            '0': function _(n) {\n              return 'other';\n            },\n            '1': function _(n) {\n              if (isBetween(n % 100, 3, 10)) return 'few';\n              if (n === 0) return 'zero';\n              if (isBetween(n % 100, 11, 99)) return 'many';\n              if (n == 2) return 'two';\n              if (n == 1) return 'one';\n              return 'other';\n            },\n            '2': function _(n) {\n              if (n !== 0 && n % 10 === 0) return 'many';\n              if (n == 2) return 'two';\n              if (n == 1) return 'one';\n              return 'other';\n            },\n            '3': function _(n) {\n              if (n == 1) return 'one';\n              return 'other';\n            },\n            '4': function _(n) {\n              if (isBetween(n, 0, 1)) return 'one';\n              return 'other';\n            },\n            '5': function _(n) {\n              if (isBetween(n, 0, 2) && n != 2) return 'one';\n              return 'other';\n            },\n            '6': function _(n) {\n              if (n === 0) return 'zero';\n              if (n % 10 == 1 && n % 100 != 11) return 'one';\n              return 'other';\n            },\n            '7': function _(n) {\n              if (n == 2) return 'two';\n              if (n == 1) return 'one';\n              return 'other';\n            },\n            '8': function _(n) {\n              if (isBetween(n, 3, 6)) return 'few';\n              if (isBetween(n, 7, 10)) return 'many';\n              if (n == 2) return 'two';\n              if (n == 1) return 'one';\n              return 'other';\n            },\n            '9': function _(n) {\n              if (n === 0 || n != 1 && isBetween(n % 100, 1, 19)) return 'few';\n              if (n == 1) return 'one';\n              return 'other';\n            },\n            '10': function _(n) {\n              if (isBetween(n % 10, 2, 9) && !isBetween(n % 100, 11, 19)) return 'few';\n              if (n % 10 == 1 && !isBetween(n % 100, 11, 19)) return 'one';\n              return 'other';\n            },\n            '11': function _(n) {\n              if (isBetween(n % 10, 2, 4) && !isBetween(n % 100, 12, 14)) return 'few';\n              if (n % 10 === 0 || isBetween(n % 10, 5, 9) || isBetween(n % 100, 11, 14)) return 'many';\n              if (n % 10 == 1 && n % 100 != 11) return 'one';\n              return 'other';\n            },\n            '12': function _(n) {\n              if (isBetween(n, 2, 4)) return 'few';\n              if (n == 1) return 'one';\n              return 'other';\n            },\n            '13': function _(n) {\n              if (isBetween(n % 10, 2, 4) && !isBetween(n % 100, 12, 14)) return 'few';\n              if (n != 1 && isBetween(n % 10, 0, 1) || isBetween(n % 10, 5, 9) || isBetween(n % 100, 12, 14)) return 'many';\n              if (n == 1) return 'one';\n              return 'other';\n            },\n            '14': function _(n) {\n              if (isBetween(n % 100, 3, 4)) return 'few';\n              if (n % 100 == 2) return 'two';\n              if (n % 100 == 1) return 'one';\n              return 'other';\n            },\n            '15': function _(n) {\n              if (n === 0 || isBetween(n % 100, 2, 10)) return 'few';\n              if (isBetween(n % 100, 11, 19)) return 'many';\n              if (n == 1) return 'one';\n              return 'other';\n            },\n            '16': function _(n) {\n              if (n % 10 == 1 && n != 11) return 'one';\n              return 'other';\n            },\n            '17': function _(n) {\n              if (n == 3) return 'few';\n              if (n === 0) return 'zero';\n              if (n == 6) return 'many';\n              if (n == 2) return 'two';\n              if (n == 1) return 'one';\n              return 'other';\n            },\n            '18': function _(n) {\n              if (n === 0) return 'zero';\n              if (isBetween(n, 0, 2) && n !== 0 && n != 2) return 'one';\n              return 'other';\n            },\n            '19': function _(n) {\n              if (isBetween(n, 2, 10)) return 'few';\n              if (isBetween(n, 0, 1)) return 'one';\n              return 'other';\n            },\n            '20': function _(n) {\n              if ((isBetween(n % 10, 3, 4) || n % 10 == 9) && !(isBetween(n % 100, 10, 19) || isBetween(n % 100, 70, 79) || isBetween(n % 100, 90, 99))) return 'few';\n              if (n % 1000000 === 0 && n !== 0) return 'many';\n              if (n % 10 == 2 && !isIn(n % 100, [12, 72, 92])) return 'two';\n              if (n % 10 == 1 && !isIn(n % 100, [11, 71, 91])) return 'one';\n              return 'other';\n            },\n            '21': function _(n) {\n              if (n === 0) return 'zero';\n              if (n == 1) return 'one';\n              return 'other';\n            },\n            '22': function _(n) {\n              if (isBetween(n, 0, 1) || isBetween(n, 11, 99)) return 'one';\n              return 'other';\n            },\n            '23': function _(n) {\n              if (isBetween(n % 10, 1, 2) || n % 20 === 0) return 'one';\n              return 'other';\n            },\n            '24': function _(n) {\n              if (isBetween(n, 3, 10) || isBetween(n, 13, 19)) return 'few';\n              if (isIn(n, [2, 12])) return 'two';\n              if (isIn(n, [1, 11])) return 'one';\n              return 'other';\n            }\n          };\n          var index = locales2rules[lang.replace(/-.*$/, '')];\n          if (!(index in pluralRules)) {\n            console.warn('plural form unknown for [' + lang + ']');\n            return function () {\n              return 'other';\n            };\n          }\n          return pluralRules[index];\n        }\n        gMacros.plural = function (str, param, key, prop) {\n          var n = _parseFloat(param);\n          if (isNaN(n)) return str;\n          if (prop != gTextProp) return str;\n          if (!gMacros._pluralRules) {\n            gMacros._pluralRules = getPluralRules(gLanguage);\n          }\n          var index = '[' + gMacros._pluralRules(n) + ']';\n          if (n === 0 && key + '[zero]' in gL10nData) {\n            str = gL10nData[key + '[zero]'][prop];\n          } else if (n == 1 && key + '[one]' in gL10nData) {\n            str = gL10nData[key + '[one]'][prop];\n          } else if (n == 2 && key + '[two]' in gL10nData) {\n            str = gL10nData[key + '[two]'][prop];\n          } else if (key + index in gL10nData) {\n            str = gL10nData[key + index][prop];\n          } else if (key + '[other]' in gL10nData) {\n            str = gL10nData[key + '[other]'][prop];\n          }\n          return str;\n        };\n        function getL10nData(key, args, fallback) {\n          var data = gL10nData[key];\n          if (!data) {\n            console.warn('#' + key + ' is undefined.');\n            if (!fallback) {\n              return null;\n            }\n            data = fallback;\n          }\n          var rv = {};\n          for (var prop in data) {\n            var str = data[prop];\n            str = substIndexes(str, args, key, prop);\n            str = substArguments(str, args, key);\n            rv[prop] = str;\n          }\n          return rv;\n        }\n        function substIndexes(str, args, key, prop) {\n          var reIndex = /\\{\\[\\s*([a-zA-Z]+)\\(([a-zA-Z]+)\\)\\s*\\]\\}/;\n          var reMatch = reIndex.exec(str);\n          if (!reMatch || !reMatch.length) return str;\n          var macroName = reMatch[1];\n          var paramName = reMatch[2];\n          var param;\n          if (args && paramName in args) {\n            param = args[paramName];\n          } else if (paramName in gL10nData) {\n            param = gL10nData[paramName];\n          }\n          if (macroName in gMacros) {\n            var macro = gMacros[macroName];\n            str = macro(str, param, key, prop);\n          }\n          return str;\n        }\n        function substArguments(str, args, key) {\n          var reArgs = /\\{\\{\\s*(.+?)\\s*\\}\\}/g;\n          return str.replace(reArgs, function (matched_text, arg) {\n            if (args && arg in args) {\n              return args[arg];\n            }\n            if (arg in gL10nData) {\n              return gL10nData[arg];\n            }\n            console.log('argument {{' + arg + '}} for #' + key + ' is undefined.');\n            return matched_text;\n          });\n        }\n        function translateElement(element) {\n          var l10n = getL10nAttributes(element);\n          if (!l10n.id) return;\n          var data = getL10nData(l10n.id, l10n.args);\n          if (!data) {\n            console.warn('#' + l10n.id + ' is undefined.');\n            return;\n          }\n          if (data[gTextProp]) {\n            if (getChildElementCount(element) === 0) {\n              element[gTextProp] = data[gTextProp];\n            } else {\n              var children = element.childNodes;\n              var found = false;\n              for (var i = 0, l = children.length; i < l; i++) {\n                if (children[i].nodeType === 3 && /\\S/.test(children[i].nodeValue)) {\n                  if (found) {\n                    children[i].nodeValue = '';\n                  } else {\n                    children[i].nodeValue = data[gTextProp];\n                    found = true;\n                  }\n                }\n              }\n              if (!found) {\n                var textNode = document.createTextNode(data[gTextProp]);\n                element.prepend(textNode);\n              }\n            }\n            delete data[gTextProp];\n          }\n          for (var k in data) {\n            element[k] = data[k];\n          }\n        }\n        function getChildElementCount(element) {\n          if (element.children) {\n            return element.children.length;\n          }\n          if (typeof element.childElementCount !== 'undefined') {\n            return element.childElementCount;\n          }\n          var count = 0;\n          for (var i = 0; i < element.childNodes.length; i++) {\n            count += element.nodeType === 1 ? 1 : 0;\n          }\n          return count;\n        }\n        function translateFragment(element) {\n          element = element || document.documentElement;\n          var children = getTranslatableChildren(element);\n          var elementCount = children.length;\n          for (var i = 0; i < elementCount; i++) {\n            translateElement(children[i]);\n          }\n          translateElement(element);\n        }\n        return {\n          get: function get(key, args, fallbackString) {\n            var index = _lastIndexOfInstanceProperty(key).call(key, '.');\n            var prop = gTextProp;\n            if (index > 0) {\n              prop = key.substring(index + 1);\n              key = key.substring(0, index);\n            }\n            var fallback;\n            if (fallbackString) {\n              fallback = {};\n              fallback[prop] = fallbackString;\n            }\n            var data = getL10nData(key, args, fallback);\n            if (data && prop in data) {\n              return data[prop];\n            }\n            return '{{' + key + '}}';\n          },\n          getData: function getData() {\n            return gL10nData;\n          },\n          getText: function getText() {\n            return gTextData;\n          },\n          getLanguage: function getLanguage() {\n            return gLanguage;\n          },\n          setLanguage: function setLanguage(lang, callback) {\n            loadLocale(lang, function () {\n              if (callback) callback();\n            });\n          },\n          getDirection: function getDirection() {\n            var rtlList = ['ar', 'he', 'fa', 'ps', 'ur'];\n            var shortCode = gLanguage.split('-', 1)[0];\n            return _indexOfInstanceProperty(rtlList).call(rtlList, shortCode) >= 0 ? 'rtl' : 'ltr';\n          },\n          translate: translateFragment,\n          getReadyState: function getReadyState() {\n            return gReadyState;\n          },\n          ready: function ready(callback) {\n            if (!callback) {\n              return;\n            } else if (gReadyState == 'complete' || gReadyState == 'interactive') {\n              _setTimeout(function () {\n                callback();\n              });\n            } else if (document.addEventListener) {\n              document.addEventListener('localized', function once() {\n                document.removeEventListener('localized', once);\n                callback();\n              });\n            }\n          }\n        };\n      }(window, document);\n\n      /***/\n    }), ( /* 22 */\n    /***/function (__unused_webpack_module, exports, __w_pdfjs_require__) {\n      var _context42;\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.PDFFindController = exports.FindState = void 0;\n      var _ui_utils = __w_pdfjs_require__(7);\n      var _pdfjsLib = __w_pdfjs_require__(3);\n      var _pdf_find_utils = __w_pdfjs_require__(23);\n      function _classPrivateFieldInitSpec(obj, privateMap, value) {\n        _checkPrivateRedeclaration(obj, privateMap);\n        privateMap.set(obj, value);\n      }\n      function _classPrivateMethodInitSpec(obj, privateSet) {\n        _checkPrivateRedeclaration(obj, privateSet);\n        privateSet.add(obj);\n      }\n      function _checkPrivateRedeclaration(obj, privateCollection) {\n        if (privateCollection.has(obj)) {\n          throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n        }\n      }\n      function _classPrivateFieldGet(receiver, privateMap) {\n        var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"get\");\n        return _classApplyDescriptorGet(receiver, descriptor);\n      }\n      function _classExtractFieldDescriptor(receiver, privateMap, action) {\n        if (!privateMap.has(receiver)) {\n          throw new TypeError(\"attempted to \" + action + \" private field on non-instance\");\n        }\n        return privateMap.get(receiver);\n      }\n      function _classApplyDescriptorGet(receiver, descriptor) {\n        if (descriptor.get) {\n          return descriptor.get.call(receiver);\n        }\n        return descriptor.value;\n      }\n      function _classPrivateMethodGet(receiver, privateSet, fn) {\n        if (!privateSet.has(receiver)) {\n          throw new TypeError(\"attempted to get private field on non-instance\");\n        }\n        return fn;\n      }\n      var FindState = {\n        FOUND: 0,\n        NOT_FOUND: 1,\n        WRAPPED: 2,\n        PENDING: 3\n      };\n      exports.FindState = FindState;\n      var FIND_TIMEOUT = 250;\n      var MATCH_SCROLL_OFFSET_TOP = -50;\n      var MATCH_SCROLL_OFFSET_LEFT = -400;\n      var CHARACTERS_TO_NORMALIZE = {\n        \"\\u2010\": \"-\",\n        \"\\u2018\": \"'\",\n        \"\\u2019\": \"'\",\n        \"\\u201A\": \"'\",\n        \"\\u201B\": \"'\",\n        \"\\u201C\": '\"',\n        \"\\u201D\": '\"',\n        \"\\u201E\": '\"',\n        \"\\u201F\": '\"',\n        \"\\xBC\": \"1/4\",\n        \"\\xBD\": \"1/2\",\n        \"\\xBE\": \"3/4\"\n      };\n      var DIACRITICS_EXCEPTION = new _Set([0x3099, 0x309a, 0x094d, 0x09cd, 0x0a4d, 0x0acd, 0x0b4d, 0x0bcd, 0x0c4d, 0x0ccd, 0x0d3b, 0x0d3c, 0x0d4d, 0x0dca, 0x0e3a, 0x0eba, 0x0f84, 0x1039, 0x103a, 0x1714, 0x1734, 0x17d2, 0x1a60, 0x1b44, 0x1baa, 0x1bab, 0x1bf2, 0x1bf3, 0x2d7f, 0xa806, 0xa82c, 0xa8c4, 0xa953, 0xa9c0, 0xaaf6, 0xabed, 0x0c56, 0x0f71, 0x0f72, 0x0f7a, 0x0f7b, 0x0f7c, 0x0f7d, 0x0f80, 0x0f74]);\n      var DIACRITICS_EXCEPTION_STR = _mapInstanceProperty(_context42 = _toConsumableArray(_valuesInstanceProperty(DIACRITICS_EXCEPTION).call(DIACRITICS_EXCEPTION))).call(_context42, function (x) {\n        return String.fromCharCode(x);\n      }).join(\"\");\n      var DIACRITICS_REG_EXP = /(?:[\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0898-\\u089F\\u08CA-\\u08E1\\u08E3-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0CF3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62\\u0D63\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EBC\\u0EC8-\\u0ECE\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102B-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1062-\\u1064\\u1067-\\u106D\\u1071-\\u1074\\u1082-\\u108D\\u108F\\u109A-\\u109D\\u135D-\\u135F\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u180F\\u1885\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F\\u1AB0-\\u1ACE\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA953\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA7B-\\uAA7D\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F]|\\uD800[\\uDDFD\\uDEE0\\uDF76-\\uDF7A]|\\uD802[\\uDE01-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE0F\\uDE38-\\uDE3A\\uDE3F\\uDEE5\\uDEE6]|\\uD803[\\uDD24-\\uDD27\\uDEAB\\uDEAC\\uDEFD-\\uDEFF\\uDF46-\\uDF50\\uDF82-\\uDF85]|\\uD804[\\uDC00-\\uDC02\\uDC38-\\uDC46\\uDC70\\uDC73\\uDC74\\uDC7F-\\uDC82\\uDCB0-\\uDCBA\\uDCC2\\uDD00-\\uDD02\\uDD27-\\uDD34\\uDD45\\uDD46\\uDD73\\uDD80-\\uDD82\\uDDB3-\\uDDC0\\uDDC9-\\uDDCC\\uDDCE\\uDDCF\\uDE2C-\\uDE37\\uDE3E\\uDE41\\uDEDF-\\uDEEA\\uDF00-\\uDF03\\uDF3B\\uDF3C\\uDF3E-\\uDF44\\uDF47\\uDF48\\uDF4B-\\uDF4D\\uDF57\\uDF62\\uDF63\\uDF66-\\uDF6C\\uDF70-\\uDF74]|\\uD805[\\uDC35-\\uDC46\\uDC5E\\uDCB0-\\uDCC3\\uDDAF-\\uDDB5\\uDDB8-\\uDDC0\\uDDDC\\uDDDD\\uDE30-\\uDE40\\uDEAB-\\uDEB7\\uDF1D-\\uDF2B]|\\uD806[\\uDC2C-\\uDC3A\\uDD30-\\uDD35\\uDD37\\uDD38\\uDD3B-\\uDD3E\\uDD40\\uDD42\\uDD43\\uDDD1-\\uDDD7\\uDDDA-\\uDDE0\\uDDE4\\uDE01-\\uDE0A\\uDE33-\\uDE39\\uDE3B-\\uDE3E\\uDE47\\uDE51-\\uDE5B\\uDE8A-\\uDE99]|\\uD807[\\uDC2F-\\uDC36\\uDC38-\\uDC3F\\uDC92-\\uDCA7\\uDCA9-\\uDCB6\\uDD31-\\uDD36\\uDD3A\\uDD3C\\uDD3D\\uDD3F-\\uDD45\\uDD47\\uDD8A-\\uDD8E\\uDD90\\uDD91\\uDD93-\\uDD97\\uDEF3-\\uDEF6\\uDF00\\uDF01\\uDF03\\uDF34-\\uDF3A\\uDF3E-\\uDF42]|\\uD80D[\\uDC40\\uDC47-\\uDC55]|\\uD81A[\\uDEF0-\\uDEF4\\uDF30-\\uDF36]|\\uD81B[\\uDF4F\\uDF51-\\uDF87\\uDF8F-\\uDF92\\uDFE4\\uDFF0\\uDFF1]|\\uD82F[\\uDC9D\\uDC9E]|\\uD833[\\uDF00-\\uDF2D\\uDF30-\\uDF46]|\\uD834[\\uDD65-\\uDD69\\uDD6D-\\uDD72\\uDD7B-\\uDD82\\uDD85-\\uDD8B\\uDDAA-\\uDDAD\\uDE42-\\uDE44]|\\uD836[\\uDE00-\\uDE36\\uDE3B-\\uDE6C\\uDE75\\uDE84\\uDE9B-\\uDE9F\\uDEA1-\\uDEAF]|\\uD838[\\uDC00-\\uDC06\\uDC08-\\uDC18\\uDC1B-\\uDC21\\uDC23\\uDC24\\uDC26-\\uDC2A\\uDC8F\\uDD30-\\uDD36\\uDEAE\\uDEEC-\\uDEEF]|\\uD839[\\uDCEC-\\uDCEF]|\\uD83A[\\uDCD0-\\uDCD6\\uDD44-\\uDD4A]|\\uDB40[\\uDD00-\\uDDEF])+/g;\n      var SPECIAL_CHARS_REG_EXP = /([\\$\\(-\\+\\.\\?\\[-\\^\\{-\\}])|((?:[!-#%-\\*,-\\/:;\\?@\\[-\\]_\\{\\}\\xA1\\xA7\\xAB\\xB6\\xB7\\xBB\\xBF\\u037E\\u0387\\u055A-\\u055F\\u0589\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3\\u05F4\\u0609\\u060A\\u060C\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B\\u169C\\u16EB-\\u16ED\\u1735\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944\\u1945\\u1A1E\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B5A-\\u1B60\\u1B7D\\u1B7E\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D\\u207E\\u208D\\u208E\\u2308-\\u230B\\u2329\\u232A\\u2768-\\u2775\\u27C5\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC\\u29FD\\u2CF9-\\u2CFC\\u2CFE\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE\\uA9DF\\uAA5C-\\uAA5F\\uAADE\\uAADF\\uAAF0\\uAAF1\\uABEB\\uFD3E\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A\\uFF1B\\uFF1F\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65]|\\uD800[\\uDD00-\\uDD02\\uDF9F\\uDFD0]|\\uD801\\uDD6F|\\uD802[\\uDC57\\uDD1F\\uDD3F\\uDE50-\\uDE58\\uDE7F\\uDEF0-\\uDEF6\\uDF39-\\uDF3F\\uDF99-\\uDF9C]|\\uD803[\\uDEAD\\uDF55-\\uDF59\\uDF86-\\uDF89]|\\uD804[\\uDC47-\\uDC4D\\uDCBB\\uDCBC\\uDCBE-\\uDCC1\\uDD40-\\uDD43\\uDD74\\uDD75\\uDDC5-\\uDDC8\\uDDCD\\uDDDB\\uDDDD-\\uDDDF\\uDE38-\\uDE3D\\uDEA9]|\\uD805[\\uDC4B-\\uDC4F\\uDC5A\\uDC5B\\uDC5D\\uDCC6\\uDDC1-\\uDDD7\\uDE41-\\uDE43\\uDE60-\\uDE6C\\uDEB9\\uDF3C-\\uDF3E]|\\uD806[\\uDC3B\\uDD44-\\uDD46\\uDDE2\\uDE3F-\\uDE46\\uDE9A-\\uDE9C\\uDE9E-\\uDEA2\\uDF00-\\uDF09]|\\uD807[\\uDC41-\\uDC45\\uDC70\\uDC71\\uDEF7\\uDEF8\\uDF43-\\uDF4F\\uDFFF]|\\uD809[\\uDC70-\\uDC74]|\\uD80B[\\uDFF1\\uDFF2]|\\uD81A[\\uDE6E\\uDE6F\\uDEF5\\uDF37-\\uDF3B\\uDF44]|\\uD81B[\\uDE97-\\uDE9A\\uDFE2]|\\uD82F\\uDC9F|\\uD836[\\uDE87-\\uDE8B]|\\uD83A[\\uDD5E\\uDD5F]))|([\\t-\\r \\xA0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF]+)|((?:[\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0898-\\u089F\\u08CA-\\u08E1\\u08E3-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0CF3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62\\u0D63\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EBC\\u0EC8-\\u0ECE\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102B-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1062-\\u1064\\u1067-\\u106D\\u1071-\\u1074\\u1082-\\u108D\\u108F\\u109A-\\u109D\\u135D-\\u135F\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u180F\\u1885\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F\\u1AB0-\\u1ACE\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA953\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA7B-\\uAA7D\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F]|\\uD800[\\uDDFD\\uDEE0\\uDF76-\\uDF7A]|\\uD802[\\uDE01-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE0F\\uDE38-\\uDE3A\\uDE3F\\uDEE5\\uDEE6]|\\uD803[\\uDD24-\\uDD27\\uDEAB\\uDEAC\\uDEFD-\\uDEFF\\uDF46-\\uDF50\\uDF82-\\uDF85]|\\uD804[\\uDC00-\\uDC02\\uDC38-\\uDC46\\uDC70\\uDC73\\uDC74\\uDC7F-\\uDC82\\uDCB0-\\uDCBA\\uDCC2\\uDD00-\\uDD02\\uDD27-\\uDD34\\uDD45\\uDD46\\uDD73\\uDD80-\\uDD82\\uDDB3-\\uDDC0\\uDDC9-\\uDDCC\\uDDCE\\uDDCF\\uDE2C-\\uDE37\\uDE3E\\uDE41\\uDEDF-\\uDEEA\\uDF00-\\uDF03\\uDF3B\\uDF3C\\uDF3E-\\uDF44\\uDF47\\uDF48\\uDF4B-\\uDF4D\\uDF57\\uDF62\\uDF63\\uDF66-\\uDF6C\\uDF70-\\uDF74]|\\uD805[\\uDC35-\\uDC46\\uDC5E\\uDCB0-\\uDCC3\\uDDAF-\\uDDB5\\uDDB8-\\uDDC0\\uDDDC\\uDDDD\\uDE30-\\uDE40\\uDEAB-\\uDEB7\\uDF1D-\\uDF2B]|\\uD806[\\uDC2C-\\uDC3A\\uDD30-\\uDD35\\uDD37\\uDD38\\uDD3B-\\uDD3E\\uDD40\\uDD42\\uDD43\\uDDD1-\\uDDD7\\uDDDA-\\uDDE0\\uDDE4\\uDE01-\\uDE0A\\uDE33-\\uDE39\\uDE3B-\\uDE3E\\uDE47\\uDE51-\\uDE5B\\uDE8A-\\uDE99]|\\uD807[\\uDC2F-\\uDC36\\uDC38-\\uDC3F\\uDC92-\\uDCA7\\uDCA9-\\uDCB6\\uDD31-\\uDD36\\uDD3A\\uDD3C\\uDD3D\\uDD3F-\\uDD45\\uDD47\\uDD8A-\\uDD8E\\uDD90\\uDD91\\uDD93-\\uDD97\\uDEF3-\\uDEF6\\uDF00\\uDF01\\uDF03\\uDF34-\\uDF3A\\uDF3E-\\uDF42]|\\uD80D[\\uDC40\\uDC47-\\uDC55]|\\uD81A[\\uDEF0-\\uDEF4\\uDF30-\\uDF36]|\\uD81B[\\uDF4F\\uDF51-\\uDF87\\uDF8F-\\uDF92\\uDFE4\\uDFF0\\uDFF1]|\\uD82F[\\uDC9D\\uDC9E]|\\uD833[\\uDF00-\\uDF2D\\uDF30-\\uDF46]|\\uD834[\\uDD65-\\uDD69\\uDD6D-\\uDD72\\uDD7B-\\uDD82\\uDD85-\\uDD8B\\uDDAA-\\uDDAD\\uDE42-\\uDE44]|\\uD836[\\uDE00-\\uDE36\\uDE3B-\\uDE6C\\uDE75\\uDE84\\uDE9B-\\uDE9F\\uDEA1-\\uDEAF]|\\uD838[\\uDC00-\\uDC06\\uDC08-\\uDC18\\uDC1B-\\uDC21\\uDC23\\uDC24\\uDC26-\\uDC2A\\uDC8F\\uDD30-\\uDD36\\uDEAE\\uDEEC-\\uDEEF]|\\uD839[\\uDCEC-\\uDCEF]|\\uD83A[\\uDCD0-\\uDCD6\\uDD44-\\uDD4A]|\\uDB40[\\uDD00-\\uDDEF]))|((?:[A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF40\\uDF42-\\uDF49\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDD70-\\uDD7A\\uDD7C-\\uDD8A\\uDD8C-\\uDD92\\uDD94\\uDD95\\uDD97-\\uDDA1\\uDDA3-\\uDDB1\\uDDB3-\\uDDB9\\uDDBB\\uDDBC\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67\\uDF80-\\uDF85\\uDF87-\\uDFB0\\uDFB2-\\uDFBA]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDF70-\\uDF81\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC71\\uDC72\\uDC75\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE3F\\uDE40\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD32\\uDD50-\\uDD52\\uDD55\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E\\uDF25-\\uDF2A]|\\uD838[\\uDC30-\\uDC6D\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDCD0-\\uDCEB\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0\\uDFF0-\\uDFFF]|\\uD87B[\\uDC00-\\uDE5D]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF]))/g;\n      var NOT_DIACRITIC_FROM_END_REG_EXP = /((?:[\\0-\\u02FF\\u0370-\\u0482\\u048A-\\u0590\\u05BE\\u05C0\\u05C3\\u05C6\\u05C8-\\u060F\\u061B-\\u064A\\u0660-\\u066F\\u0671-\\u06D5\\u06DD\\u06DE\\u06E5\\u06E6\\u06E9\\u06EE-\\u0710\\u0712-\\u072F\\u074B-\\u07A5\\u07B1-\\u07EA\\u07F4-\\u07FC\\u07FE-\\u0815\\u081A\\u0824\\u0828\\u082E-\\u0858\\u085C-\\u0897\\u08A0-\\u08C9\\u08E2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0964-\\u0980\\u0984-\\u09BB\\u09BD\\u09C5\\u09C6\\u09C9\\u09CA\\u09CE-\\u09D6\\u09D8-\\u09E1\\u09E4-\\u09FD\\u09FF\\u0A00\\u0A04-\\u0A3B\\u0A3D\\u0A43-\\u0A46\\u0A49\\u0A4A\\u0A4E-\\u0A50\\u0A52-\\u0A6F\\u0A72-\\u0A74\\u0A76-\\u0A80\\u0A84-\\u0ABB\\u0ABD\\u0AC6\\u0ACA\\u0ACE-\\u0AE1\\u0AE4-\\u0AF9\\u0B00\\u0B04-\\u0B3B\\u0B3D\\u0B45\\u0B46\\u0B49\\u0B4A\\u0B4E-\\u0B54\\u0B58-\\u0B61\\u0B64-\\u0B81\\u0B83-\\u0BBD\\u0BC3-\\u0BC5\\u0BC9\\u0BCE-\\u0BD6\\u0BD8-\\u0BFF\\u0C05-\\u0C3B\\u0C3D\\u0C45\\u0C49\\u0C4E-\\u0C54\\u0C57-\\u0C61\\u0C64-\\u0C80\\u0C84-\\u0CBB\\u0CBD\\u0CC5\\u0CC9\\u0CCE-\\u0CD4\\u0CD7-\\u0CE1\\u0CE4-\\u0CF2\\u0CF4-\\u0CFF\\u0D04-\\u0D3A\\u0D3D\\u0D45\\u0D49\\u0D4E-\\u0D56\\u0D58-\\u0D61\\u0D64-\\u0D80\\u0D84-\\u0DC9\\u0DCB-\\u0DCE\\u0DD5\\u0DD7\\u0DE0-\\u0DF1\\u0DF4-\\u0E30\\u0E32\\u0E33\\u0E3B-\\u0E46\\u0E4F-\\u0EB0\\u0EB2\\u0EB3\\u0EBD-\\u0EC7\\u0ECF-\\u0F17\\u0F1A-\\u0F34\\u0F36\\u0F38\\u0F3A-\\u0F3D\\u0F40-\\u0F70\\u0F85\\u0F88-\\u0F8C\\u0F98\\u0FBD-\\u0FC5\\u0FC7-\\u102A\\u103F-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u1090-\\u1099\\u109E-\\u135C\\u1360-\\u1711\\u1716-\\u1731\\u1735-\\u1751\\u1754-\\u1771\\u1774-\\u17B3\\u17D4-\\u17DC\\u17DE-\\u180A\\u180E\\u1810-\\u1884\\u1887-\\u18A8\\u18AA-\\u191F\\u192C-\\u192F\\u193C-\\u1A16\\u1A1C-\\u1A54\\u1A5F\\u1A7D\\u1A7E\\u1A80-\\u1AAF\\u1ACF-\\u1AFF\\u1B05-\\u1B33\\u1B45-\\u1B6A\\u1B74-\\u1B7F\\u1B83-\\u1BA0\\u1BAE-\\u1BE5\\u1BF4-\\u1C23\\u1C38-\\u1CCF\\u1CD3\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA-\\u1DBF\\u1E00-\\u20CF\\u20F1-\\u2CEE\\u2CF2-\\u2D7E\\u2D80-\\u2DDF\\u2E00-\\u3029\\u3030-\\u3098\\u309B-\\uA66E\\uA673\\uA67E-\\uA69D\\uA6A0-\\uA6EF\\uA6F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA828-\\uA82B\\uA82D-\\uA87F\\uA882-\\uA8B3\\uA8C6-\\uA8DF\\uA8F2-\\uA8FE\\uA900-\\uA925\\uA92E-\\uA946\\uA954-\\uA97F\\uA984-\\uA9B2\\uA9C1-\\uA9E4\\uA9E6-\\uAA28\\uAA37-\\uAA42\\uAA44-\\uAA4B\\uAA4E-\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2-\\uAAEA\\uAAF0-\\uAAF4\\uAAF7-\\uABE2\\uABEB\\uABEE-\\uD7FF\\uE000-\\uFB1D\\uFB1F-\\uFDFF\\uFE10-\\uFE1F\\uFE30-\\uFFFF]|\\uD800[\\uDC00-\\uDDFC\\uDDFE-\\uDEDF\\uDEE1-\\uDF75\\uDF7B-\\uDFFF]|[\\uD801\\uD808-\\uD80C\\uD80E-\\uD819\\uD81C-\\uD82E\\uD830-\\uD832\\uD835\\uD837\\uD83B-\\uDB3F\\uDB41-\\uDBFF][\\uDC00-\\uDFFF]|\\uD802[\\uDC00-\\uDE00\\uDE04\\uDE07-\\uDE0B\\uDE10-\\uDE37\\uDE3B-\\uDE3E\\uDE40-\\uDEE4\\uDEE7-\\uDFFF]|\\uD803[\\uDC00-\\uDD23\\uDD28-\\uDEAA\\uDEAD-\\uDEFC\\uDF00-\\uDF45\\uDF51-\\uDF81\\uDF86-\\uDFFF]|\\uD804[\\uDC03-\\uDC37\\uDC47-\\uDC6F\\uDC71\\uDC72\\uDC75-\\uDC7E\\uDC83-\\uDCAF\\uDCBB-\\uDCC1\\uDCC3-\\uDCFF\\uDD03-\\uDD26\\uDD35-\\uDD44\\uDD47-\\uDD72\\uDD74-\\uDD7F\\uDD83-\\uDDB2\\uDDC1-\\uDDC8\\uDDCD\\uDDD0-\\uDE2B\\uDE38-\\uDE3D\\uDE3F\\uDE40\\uDE42-\\uDEDE\\uDEEB-\\uDEFF\\uDF04-\\uDF3A\\uDF3D\\uDF45\\uDF46\\uDF49\\uDF4A\\uDF4E-\\uDF56\\uDF58-\\uDF61\\uDF64\\uDF65\\uDF6D-\\uDF6F\\uDF75-\\uDFFF]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC5D\\uDC5F-\\uDCAF\\uDCC4-\\uDDAE\\uDDB6\\uDDB7\\uDDC1-\\uDDDB\\uDDDE-\\uDE2F\\uDE41-\\uDEAA\\uDEB8-\\uDF1C\\uDF2C-\\uDFFF]|\\uD806[\\uDC00-\\uDC2B\\uDC3B-\\uDD2F\\uDD36\\uDD39\\uDD3A\\uDD3F\\uDD41\\uDD44-\\uDDD0\\uDDD8\\uDDD9\\uDDE1-\\uDDE3\\uDDE5-\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE3F-\\uDE46\\uDE48-\\uDE50\\uDE5C-\\uDE89\\uDE9A-\\uDFFF]|\\uD807[\\uDC00-\\uDC2E\\uDC37\\uDC40-\\uDC91\\uDCA8\\uDCB7-\\uDD30\\uDD37-\\uDD39\\uDD3B\\uDD3E\\uDD46\\uDD48-\\uDD89\\uDD8F\\uDD92\\uDD98-\\uDEF2\\uDEF7-\\uDEFF\\uDF02\\uDF04-\\uDF33\\uDF3B-\\uDF3D\\uDF43-\\uDFFF]|\\uD80D[\\uDC00-\\uDC3F\\uDC41-\\uDC46\\uDC56-\\uDFFF]|\\uD81A[\\uDC00-\\uDEEF\\uDEF5-\\uDF2F\\uDF37-\\uDFFF]|\\uD81B[\\uDC00-\\uDF4E\\uDF50\\uDF88-\\uDF8E\\uDF93-\\uDFE3\\uDFE5-\\uDFEF\\uDFF2-\\uDFFF]|\\uD82F[\\uDC00-\\uDC9C\\uDC9F-\\uDFFF]|\\uD833[\\uDC00-\\uDEFF\\uDF2E\\uDF2F\\uDF47-\\uDFFF]|\\uD834[\\uDC00-\\uDD64\\uDD6A-\\uDD6C\\uDD73-\\uDD7A\\uDD83\\uDD84\\uDD8C-\\uDDA9\\uDDAE-\\uDE41\\uDE45-\\uDFFF]|\\uD836[\\uDC00-\\uDDFF\\uDE37-\\uDE3A\\uDE6D-\\uDE74\\uDE76-\\uDE83\\uDE85-\\uDE9A\\uDEA0\\uDEB0-\\uDFFF]|\\uD838[\\uDC07\\uDC19\\uDC1A\\uDC22\\uDC25\\uDC2B-\\uDC8E\\uDC90-\\uDD2F\\uDD37-\\uDEAD\\uDEAF-\\uDEEB\\uDEF0-\\uDFFF]|\\uD839[\\uDC00-\\uDCEB\\uDCF0-\\uDFFF]|\\uD83A[\\uDC00-\\uDCCF\\uDCD7-\\uDD43\\uDD4B-\\uDFFF]|\\uDB40[\\uDC00-\\uDCFF\\uDDF0-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]))(?:[\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0898-\\u089F\\u08CA-\\u08E1\\u08E3-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0CF3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62\\u0D63\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EBC\\u0EC8-\\u0ECE\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102B-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1062-\\u1064\\u1067-\\u106D\\u1071-\\u1074\\u1082-\\u108D\\u108F\\u109A-\\u109D\\u135D-\\u135F\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u180F\\u1885\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F\\u1AB0-\\u1ACE\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA953\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA7B-\\uAA7D\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F]|\\uD800[\\uDDFD\\uDEE0\\uDF76-\\uDF7A]|\\uD802[\\uDE01-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE0F\\uDE38-\\uDE3A\\uDE3F\\uDEE5\\uDEE6]|\\uD803[\\uDD24-\\uDD27\\uDEAB\\uDEAC\\uDEFD-\\uDEFF\\uDF46-\\uDF50\\uDF82-\\uDF85]|\\uD804[\\uDC00-\\uDC02\\uDC38-\\uDC46\\uDC70\\uDC73\\uDC74\\uDC7F-\\uDC82\\uDCB0-\\uDCBA\\uDCC2\\uDD00-\\uDD02\\uDD27-\\uDD34\\uDD45\\uDD46\\uDD73\\uDD80-\\uDD82\\uDDB3-\\uDDC0\\uDDC9-\\uDDCC\\uDDCE\\uDDCF\\uDE2C-\\uDE37\\uDE3E\\uDE41\\uDEDF-\\uDEEA\\uDF00-\\uDF03\\uDF3B\\uDF3C\\uDF3E-\\uDF44\\uDF47\\uDF48\\uDF4B-\\uDF4D\\uDF57\\uDF62\\uDF63\\uDF66-\\uDF6C\\uDF70-\\uDF74]|\\uD805[\\uDC35-\\uDC46\\uDC5E\\uDCB0-\\uDCC3\\uDDAF-\\uDDB5\\uDDB8-\\uDDC0\\uDDDC\\uDDDD\\uDE30-\\uDE40\\uDEAB-\\uDEB7\\uDF1D-\\uDF2B]|\\uD806[\\uDC2C-\\uDC3A\\uDD30-\\uDD35\\uDD37\\uDD38\\uDD3B-\\uDD3E\\uDD40\\uDD42\\uDD43\\uDDD1-\\uDDD7\\uDDDA-\\uDDE0\\uDDE4\\uDE01-\\uDE0A\\uDE33-\\uDE39\\uDE3B-\\uDE3E\\uDE47\\uDE51-\\uDE5B\\uDE8A-\\uDE99]|\\uD807[\\uDC2F-\\uDC36\\uDC38-\\uDC3F\\uDC92-\\uDCA7\\uDCA9-\\uDCB6\\uDD31-\\uDD36\\uDD3A\\uDD3C\\uDD3D\\uDD3F-\\uDD45\\uDD47\\uDD8A-\\uDD8E\\uDD90\\uDD91\\uDD93-\\uDD97\\uDEF3-\\uDEF6\\uDF00\\uDF01\\uDF03\\uDF34-\\uDF3A\\uDF3E-\\uDF42]|\\uD80D[\\uDC40\\uDC47-\\uDC55]|\\uD81A[\\uDEF0-\\uDEF4\\uDF30-\\uDF36]|\\uD81B[\\uDF4F\\uDF51-\\uDF87\\uDF8F-\\uDF92\\uDFE4\\uDFF0\\uDFF1]|\\uD82F[\\uDC9D\\uDC9E]|\\uD833[\\uDF00-\\uDF2D\\uDF30-\\uDF46]|\\uD834[\\uDD65-\\uDD69\\uDD6D-\\uDD72\\uDD7B-\\uDD82\\uDD85-\\uDD8B\\uDDAA-\\uDDAD\\uDE42-\\uDE44]|\\uD836[\\uDE00-\\uDE36\\uDE3B-\\uDE6C\\uDE75\\uDE84\\uDE9B-\\uDE9F\\uDEA1-\\uDEAF]|\\uD838[\\uDC00-\\uDC06\\uDC08-\\uDC18\\uDC1B-\\uDC21\\uDC23\\uDC24\\uDC26-\\uDC2A\\uDC8F\\uDD30-\\uDD36\\uDEAE\\uDEEC-\\uDEEF]|\\uD839[\\uDCEC-\\uDCEF]|\\uD83A[\\uDCD0-\\uDCD6\\uDD44-\\uDD4A]|\\uDB40[\\uDD00-\\uDDEF])*$/;\n      var NOT_DIACRITIC_FROM_START_REG_EXP = /^(?:[\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0898-\\u089F\\u08CA-\\u08E1\\u08E3-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0CF3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62\\u0D63\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EBC\\u0EC8-\\u0ECE\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102B-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1062-\\u1064\\u1067-\\u106D\\u1071-\\u1074\\u1082-\\u108D\\u108F\\u109A-\\u109D\\u135D-\\u135F\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u180F\\u1885\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F\\u1AB0-\\u1ACE\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA953\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA7B-\\uAA7D\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F]|\\uD800[\\uDDFD\\uDEE0\\uDF76-\\uDF7A]|\\uD802[\\uDE01-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE0F\\uDE38-\\uDE3A\\uDE3F\\uDEE5\\uDEE6]|\\uD803[\\uDD24-\\uDD27\\uDEAB\\uDEAC\\uDEFD-\\uDEFF\\uDF46-\\uDF50\\uDF82-\\uDF85]|\\uD804[\\uDC00-\\uDC02\\uDC38-\\uDC46\\uDC70\\uDC73\\uDC74\\uDC7F-\\uDC82\\uDCB0-\\uDCBA\\uDCC2\\uDD00-\\uDD02\\uDD27-\\uDD34\\uDD45\\uDD46\\uDD73\\uDD80-\\uDD82\\uDDB3-\\uDDC0\\uDDC9-\\uDDCC\\uDDCE\\uDDCF\\uDE2C-\\uDE37\\uDE3E\\uDE41\\uDEDF-\\uDEEA\\uDF00-\\uDF03\\uDF3B\\uDF3C\\uDF3E-\\uDF44\\uDF47\\uDF48\\uDF4B-\\uDF4D\\uDF57\\uDF62\\uDF63\\uDF66-\\uDF6C\\uDF70-\\uDF74]|\\uD805[\\uDC35-\\uDC46\\uDC5E\\uDCB0-\\uDCC3\\uDDAF-\\uDDB5\\uDDB8-\\uDDC0\\uDDDC\\uDDDD\\uDE30-\\uDE40\\uDEAB-\\uDEB7\\uDF1D-\\uDF2B]|\\uD806[\\uDC2C-\\uDC3A\\uDD30-\\uDD35\\uDD37\\uDD38\\uDD3B-\\uDD3E\\uDD40\\uDD42\\uDD43\\uDDD1-\\uDDD7\\uDDDA-\\uDDE0\\uDDE4\\uDE01-\\uDE0A\\uDE33-\\uDE39\\uDE3B-\\uDE3E\\uDE47\\uDE51-\\uDE5B\\uDE8A-\\uDE99]|\\uD807[\\uDC2F-\\uDC36\\uDC38-\\uDC3F\\uDC92-\\uDCA7\\uDCA9-\\uDCB6\\uDD31-\\uDD36\\uDD3A\\uDD3C\\uDD3D\\uDD3F-\\uDD45\\uDD47\\uDD8A-\\uDD8E\\uDD90\\uDD91\\uDD93-\\uDD97\\uDEF3-\\uDEF6\\uDF00\\uDF01\\uDF03\\uDF34-\\uDF3A\\uDF3E-\\uDF42]|\\uD80D[\\uDC40\\uDC47-\\uDC55]|\\uD81A[\\uDEF0-\\uDEF4\\uDF30-\\uDF36]|\\uD81B[\\uDF4F\\uDF51-\\uDF87\\uDF8F-\\uDF92\\uDFE4\\uDFF0\\uDFF1]|\\uD82F[\\uDC9D\\uDC9E]|\\uD833[\\uDF00-\\uDF2D\\uDF30-\\uDF46]|\\uD834[\\uDD65-\\uDD69\\uDD6D-\\uDD72\\uDD7B-\\uDD82\\uDD85-\\uDD8B\\uDDAA-\\uDDAD\\uDE42-\\uDE44]|\\uD836[\\uDE00-\\uDE36\\uDE3B-\\uDE6C\\uDE75\\uDE84\\uDE9B-\\uDE9F\\uDEA1-\\uDEAF]|\\uD838[\\uDC00-\\uDC06\\uDC08-\\uDC18\\uDC1B-\\uDC21\\uDC23\\uDC24\\uDC26-\\uDC2A\\uDC8F\\uDD30-\\uDD36\\uDEAE\\uDEEC-\\uDEEF]|\\uD839[\\uDCEC-\\uDCEF]|\\uD83A[\\uDCD0-\\uDCD6\\uDD44-\\uDD4A]|\\uDB40[\\uDD00-\\uDDEF])*((?:[\\0-\\u02FF\\u0370-\\u0482\\u048A-\\u0590\\u05BE\\u05C0\\u05C3\\u05C6\\u05C8-\\u060F\\u061B-\\u064A\\u0660-\\u066F\\u0671-\\u06D5\\u06DD\\u06DE\\u06E5\\u06E6\\u06E9\\u06EE-\\u0710\\u0712-\\u072F\\u074B-\\u07A5\\u07B1-\\u07EA\\u07F4-\\u07FC\\u07FE-\\u0815\\u081A\\u0824\\u0828\\u082E-\\u0858\\u085C-\\u0897\\u08A0-\\u08C9\\u08E2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0964-\\u0980\\u0984-\\u09BB\\u09BD\\u09C5\\u09C6\\u09C9\\u09CA\\u09CE-\\u09D6\\u09D8-\\u09E1\\u09E4-\\u09FD\\u09FF\\u0A00\\u0A04-\\u0A3B\\u0A3D\\u0A43-\\u0A46\\u0A49\\u0A4A\\u0A4E-\\u0A50\\u0A52-\\u0A6F\\u0A72-\\u0A74\\u0A76-\\u0A80\\u0A84-\\u0ABB\\u0ABD\\u0AC6\\u0ACA\\u0ACE-\\u0AE1\\u0AE4-\\u0AF9\\u0B00\\u0B04-\\u0B3B\\u0B3D\\u0B45\\u0B46\\u0B49\\u0B4A\\u0B4E-\\u0B54\\u0B58-\\u0B61\\u0B64-\\u0B81\\u0B83-\\u0BBD\\u0BC3-\\u0BC5\\u0BC9\\u0BCE-\\u0BD6\\u0BD8-\\u0BFF\\u0C05-\\u0C3B\\u0C3D\\u0C45\\u0C49\\u0C4E-\\u0C54\\u0C57-\\u0C61\\u0C64-\\u0C80\\u0C84-\\u0CBB\\u0CBD\\u0CC5\\u0CC9\\u0CCE-\\u0CD4\\u0CD7-\\u0CE1\\u0CE4-\\u0CF2\\u0CF4-\\u0CFF\\u0D04-\\u0D3A\\u0D3D\\u0D45\\u0D49\\u0D4E-\\u0D56\\u0D58-\\u0D61\\u0D64-\\u0D80\\u0D84-\\u0DC9\\u0DCB-\\u0DCE\\u0DD5\\u0DD7\\u0DE0-\\u0DF1\\u0DF4-\\u0E30\\u0E32\\u0E33\\u0E3B-\\u0E46\\u0E4F-\\u0EB0\\u0EB2\\u0EB3\\u0EBD-\\u0EC7\\u0ECF-\\u0F17\\u0F1A-\\u0F34\\u0F36\\u0F38\\u0F3A-\\u0F3D\\u0F40-\\u0F70\\u0F85\\u0F88-\\u0F8C\\u0F98\\u0FBD-\\u0FC5\\u0FC7-\\u102A\\u103F-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u1090-\\u1099\\u109E-\\u135C\\u1360-\\u1711\\u1716-\\u1731\\u1735-\\u1751\\u1754-\\u1771\\u1774-\\u17B3\\u17D4-\\u17DC\\u17DE-\\u180A\\u180E\\u1810-\\u1884\\u1887-\\u18A8\\u18AA-\\u191F\\u192C-\\u192F\\u193C-\\u1A16\\u1A1C-\\u1A54\\u1A5F\\u1A7D\\u1A7E\\u1A80-\\u1AAF\\u1ACF-\\u1AFF\\u1B05-\\u1B33\\u1B45-\\u1B6A\\u1B74-\\u1B7F\\u1B83-\\u1BA0\\u1BAE-\\u1BE5\\u1BF4-\\u1C23\\u1C38-\\u1CCF\\u1CD3\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA-\\u1DBF\\u1E00-\\u20CF\\u20F1-\\u2CEE\\u2CF2-\\u2D7E\\u2D80-\\u2DDF\\u2E00-\\u3029\\u3030-\\u3098\\u309B-\\uA66E\\uA673\\uA67E-\\uA69D\\uA6A0-\\uA6EF\\uA6F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA828-\\uA82B\\uA82D-\\uA87F\\uA882-\\uA8B3\\uA8C6-\\uA8DF\\uA8F2-\\uA8FE\\uA900-\\uA925\\uA92E-\\uA946\\uA954-\\uA97F\\uA984-\\uA9B2\\uA9C1-\\uA9E4\\uA9E6-\\uAA28\\uAA37-\\uAA42\\uAA44-\\uAA4B\\uAA4E-\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2-\\uAAEA\\uAAF0-\\uAAF4\\uAAF7-\\uABE2\\uABEB\\uABEE-\\uD7FF\\uE000-\\uFB1D\\uFB1F-\\uFDFF\\uFE10-\\uFE1F\\uFE30-\\uFFFF]|\\uD800[\\uDC00-\\uDDFC\\uDDFE-\\uDEDF\\uDEE1-\\uDF75\\uDF7B-\\uDFFF]|[\\uD801\\uD808-\\uD80C\\uD80E-\\uD819\\uD81C-\\uD82E\\uD830-\\uD832\\uD835\\uD837\\uD83B-\\uDB3F\\uDB41-\\uDBFF][\\uDC00-\\uDFFF]|\\uD802[\\uDC00-\\uDE00\\uDE04\\uDE07-\\uDE0B\\uDE10-\\uDE37\\uDE3B-\\uDE3E\\uDE40-\\uDEE4\\uDEE7-\\uDFFF]|\\uD803[\\uDC00-\\uDD23\\uDD28-\\uDEAA\\uDEAD-\\uDEFC\\uDF00-\\uDF45\\uDF51-\\uDF81\\uDF86-\\uDFFF]|\\uD804[\\uDC03-\\uDC37\\uDC47-\\uDC6F\\uDC71\\uDC72\\uDC75-\\uDC7E\\uDC83-\\uDCAF\\uDCBB-\\uDCC1\\uDCC3-\\uDCFF\\uDD03-\\uDD26\\uDD35-\\uDD44\\uDD47-\\uDD72\\uDD74-\\uDD7F\\uDD83-\\uDDB2\\uDDC1-\\uDDC8\\uDDCD\\uDDD0-\\uDE2B\\uDE38-\\uDE3D\\uDE3F\\uDE40\\uDE42-\\uDEDE\\uDEEB-\\uDEFF\\uDF04-\\uDF3A\\uDF3D\\uDF45\\uDF46\\uDF49\\uDF4A\\uDF4E-\\uDF56\\uDF58-\\uDF61\\uDF64\\uDF65\\uDF6D-\\uDF6F\\uDF75-\\uDFFF]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC5D\\uDC5F-\\uDCAF\\uDCC4-\\uDDAE\\uDDB6\\uDDB7\\uDDC1-\\uDDDB\\uDDDE-\\uDE2F\\uDE41-\\uDEAA\\uDEB8-\\uDF1C\\uDF2C-\\uDFFF]|\\uD806[\\uDC00-\\uDC2B\\uDC3B-\\uDD2F\\uDD36\\uDD39\\uDD3A\\uDD3F\\uDD41\\uDD44-\\uDDD0\\uDDD8\\uDDD9\\uDDE1-\\uDDE3\\uDDE5-\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE3F-\\uDE46\\uDE48-\\uDE50\\uDE5C-\\uDE89\\uDE9A-\\uDFFF]|\\uD807[\\uDC00-\\uDC2E\\uDC37\\uDC40-\\uDC91\\uDCA8\\uDCB7-\\uDD30\\uDD37-\\uDD39\\uDD3B\\uDD3E\\uDD46\\uDD48-\\uDD89\\uDD8F\\uDD92\\uDD98-\\uDEF2\\uDEF7-\\uDEFF\\uDF02\\uDF04-\\uDF33\\uDF3B-\\uDF3D\\uDF43-\\uDFFF]|\\uD80D[\\uDC00-\\uDC3F\\uDC41-\\uDC46\\uDC56-\\uDFFF]|\\uD81A[\\uDC00-\\uDEEF\\uDEF5-\\uDF2F\\uDF37-\\uDFFF]|\\uD81B[\\uDC00-\\uDF4E\\uDF50\\uDF88-\\uDF8E\\uDF93-\\uDFE3\\uDFE5-\\uDFEF\\uDFF2-\\uDFFF]|\\uD82F[\\uDC00-\\uDC9C\\uDC9F-\\uDFFF]|\\uD833[\\uDC00-\\uDEFF\\uDF2E\\uDF2F\\uDF47-\\uDFFF]|\\uD834[\\uDC00-\\uDD64\\uDD6A-\\uDD6C\\uDD73-\\uDD7A\\uDD83\\uDD84\\uDD8C-\\uDDA9\\uDDAE-\\uDE41\\uDE45-\\uDFFF]|\\uD836[\\uDC00-\\uDDFF\\uDE37-\\uDE3A\\uDE6D-\\uDE74\\uDE76-\\uDE83\\uDE85-\\uDE9A\\uDEA0\\uDEB0-\\uDFFF]|\\uD838[\\uDC07\\uDC19\\uDC1A\\uDC22\\uDC25\\uDC2B-\\uDC8E\\uDC90-\\uDD2F\\uDD37-\\uDEAD\\uDEAF-\\uDEEB\\uDEF0-\\uDFFF]|\\uD839[\\uDC00-\\uDCEB\\uDCF0-\\uDFFF]|\\uD83A[\\uDC00-\\uDCCF\\uDCD7-\\uDD43\\uDD4B-\\uDFFF]|\\uDB40[\\uDC00-\\uDCFF\\uDDF0-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]))/;\n      var SYLLABLES_REG_EXP = /[\\uAC00-\\uD7AF\\uFA6C\\uFACF-\\uFAD1\\uFAD5-\\uFAD7]+/g;\n      var SYLLABLES_LENGTHS = new _Map();\n      var FIRST_CHAR_SYLLABLES_REG_EXP = \"[\\\\u1100-\\\\u1112\\\\ud7a4-\\\\ud7af\\\\ud84a\\\\ud84c\\\\ud850\\\\ud854\\\\ud857\\\\ud85f]\";\n      var noSyllablesRegExp = null;\n      var withSyllablesRegExp = null;\n      function normalize(text) {\n        var syllablePositions = [];\n        var m;\n        while ((m = SYLLABLES_REG_EXP.exec(text)) !== null) {\n          var _m = m,\n            index = _m.index;\n          var _iterator23 = _createForOfIteratorHelper(m[0]),\n            _step23;\n          try {\n            for (_iterator23.s(); !(_step23 = _iterator23.n()).done;) {\n              var char = _step23.value;\n              var len = SYLLABLES_LENGTHS.get(char);\n              if (!len) {\n                len = char.normalize(\"NFD\").length;\n                SYLLABLES_LENGTHS.set(char, len);\n              }\n              syllablePositions.push([len, index++]);\n            }\n          } catch (err) {\n            _iterator23.e(err);\n          } finally {\n            _iterator23.f();\n          }\n        }\n        var normalizationRegex;\n        if (syllablePositions.length === 0 && noSyllablesRegExp) {\n          normalizationRegex = noSyllablesRegExp;\n        } else if (syllablePositions.length > 0 && withSyllablesRegExp) {\n          normalizationRegex = withSyllablesRegExp;\n        } else {\n          var replace = _Object$keys(CHARACTERS_TO_NORMALIZE).join(\"\");\n          var regexp = \"([\".concat(replace, \"])|(\\\\p{M}+(?:-\\\\n)?)|(\\\\S-\\\\n)|(\\\\n)\");\n          if (syllablePositions.length === 0) {\n            normalizationRegex = noSyllablesRegExp = new RegExp(regexp + \"|(\\\\u0000)\", \"gum\");\n          } else {\n            normalizationRegex = withSyllablesRegExp = new RegExp(regexp + \"|(\".concat(FIRST_CHAR_SYLLABLES_REG_EXP, \")\"), \"gum\");\n          }\n        }\n        var rawDiacriticsPositions = [];\n        while ((m = DIACRITICS_REG_EXP.exec(text)) !== null) {\n          rawDiacriticsPositions.push([m[0].length, m.index]);\n        }\n        var normalized = text.normalize(\"NFD\");\n        var positions = [[0, 0]];\n        var rawDiacriticsIndex = 0;\n        var syllableIndex = 0;\n        var shift = 0;\n        var shiftOrigin = 0;\n        var eol = 0;\n        var hasDiacritics = false;\n        normalized = normalized.replace(normalizationRegex, function (match, p1, p2, p3, p4, p5, i) {\n          var _syllablePositions$sy;\n          i -= shiftOrigin;\n          if (p1) {\n            var replacement = CHARACTERS_TO_NORMALIZE[match];\n            var jj = replacement.length;\n            for (var j = 1; j < jj; j++) {\n              positions.push([i - shift + j, shift - j]);\n            }\n            shift -= jj - 1;\n            return replacement;\n          }\n          if (p2) {\n            var _rawDiacriticsPositio;\n            var hasTrailingDashEOL = _endsWithInstanceProperty(p2).call(p2, \"\\n\");\n            var _len = hasTrailingDashEOL ? p2.length - 2 : p2.length;\n            hasDiacritics = true;\n            var _jj = _len;\n            if (i + eol === ((_rawDiacriticsPositio = rawDiacriticsPositions[rawDiacriticsIndex]) === null || _rawDiacriticsPositio === void 0 ? void 0 : _rawDiacriticsPositio[1])) {\n              _jj -= rawDiacriticsPositions[rawDiacriticsIndex][0];\n              ++rawDiacriticsIndex;\n            }\n            for (var _j = 1; _j <= _jj; _j++) {\n              positions.push([i - 1 - shift + _j, shift - _j]);\n            }\n            shift -= _jj;\n            shiftOrigin += _jj;\n            if (hasTrailingDashEOL) {\n              i += _len - 1;\n              positions.push([i - shift + 1, 1 + shift]);\n              shift += 1;\n              shiftOrigin += 1;\n              eol += 1;\n              return _sliceInstanceProperty(p2).call(p2, 0, _len);\n            }\n            return p2;\n          }\n          if (p3) {\n            positions.push([i - shift + 1, 1 + shift]);\n            shift += 1;\n            shiftOrigin += 1;\n            eol += 1;\n            return p3.charAt(0);\n          }\n          if (p4) {\n            positions.push([i - shift + 1, shift - 1]);\n            shift -= 1;\n            shiftOrigin += 1;\n            eol += 1;\n            return \" \";\n          }\n          if (i + eol === ((_syllablePositions$sy = syllablePositions[syllableIndex]) === null || _syllablePositions$sy === void 0 ? void 0 : _syllablePositions$sy[1])) {\n            var newCharLen = syllablePositions[syllableIndex][0] - 1;\n            ++syllableIndex;\n            for (var _j2 = 1; _j2 <= newCharLen; _j2++) {\n              positions.push([i - (shift - _j2), shift - _j2]);\n            }\n            shift -= newCharLen;\n            shiftOrigin += newCharLen;\n          }\n          return p5;\n        });\n        positions.push([normalized.length, shift]);\n        return [normalized, positions, hasDiacritics];\n      }\n      function getOriginalIndex(diffs, pos, len) {\n        if (!diffs) {\n          return [pos, len];\n        }\n        var start = pos;\n        var end = pos + len;\n        var i = (0, _ui_utils.binarySearchFirstItem)(diffs, function (x) {\n          return x[0] >= start;\n        });\n        if (diffs[i][0] > start) {\n          --i;\n        }\n        var j = (0, _ui_utils.binarySearchFirstItem)(diffs, function (x) {\n          return x[0] >= end;\n        }, i);\n        if (diffs[j][0] > end) {\n          --j;\n        }\n        return [start + diffs[i][1], len + diffs[j][1] - diffs[i][1]];\n      }\n      var _onFind = /*#__PURE__*/new _WeakSet();\n      var _reset = /*#__PURE__*/new _WeakSet();\n      var _query = /*#__PURE__*/new _WeakMap();\n      var _shouldDirtyMatch = /*#__PURE__*/new _WeakSet();\n      var _isEntireWord = /*#__PURE__*/new _WeakSet();\n      var _calculateRegExpMatch = /*#__PURE__*/new _WeakSet();\n      var _convertToRegExpString = /*#__PURE__*/new _WeakSet();\n      var _calculateMatch = /*#__PURE__*/new _WeakSet();\n      var _extractText = /*#__PURE__*/new _WeakSet();\n      var _updatePage = /*#__PURE__*/new _WeakSet();\n      var _updateAllPages = /*#__PURE__*/new _WeakSet();\n      var _nextMatch = /*#__PURE__*/new _WeakSet();\n      var _matchesReady = /*#__PURE__*/new _WeakSet();\n      var _nextPageMatch = /*#__PURE__*/new _WeakSet();\n      var _advanceOffsetPage = /*#__PURE__*/new _WeakSet();\n      var _updateMatch = /*#__PURE__*/new _WeakSet();\n      var _onFindBarClose = /*#__PURE__*/new _WeakSet();\n      var _requestMatchesCount = /*#__PURE__*/new _WeakSet();\n      var _updateUIResultsCount = /*#__PURE__*/new _WeakSet();\n      var _updateUIState = /*#__PURE__*/new _WeakSet();\n      var PDFFindController = /*#__PURE__*/function () {\n        function PDFFindController(_ref) {\n          _classCallCheck(this, PDFFindController);\n          var _linkService = _ref.linkService,\n            eventBus = _ref.eventBus;\n          _classPrivateMethodInitSpec(this, _updateUIState);\n          _classPrivateMethodInitSpec(this, _updateUIResultsCount);\n          _classPrivateMethodInitSpec(this, _requestMatchesCount);\n          _classPrivateMethodInitSpec(this, _onFindBarClose);\n          _classPrivateMethodInitSpec(this, _updateMatch);\n          _classPrivateMethodInitSpec(this, _advanceOffsetPage);\n          _classPrivateMethodInitSpec(this, _nextPageMatch);\n          _classPrivateMethodInitSpec(this, _matchesReady);\n          _classPrivateMethodInitSpec(this, _nextMatch);\n          _classPrivateMethodInitSpec(this, _updateAllPages);\n          _classPrivateMethodInitSpec(this, _updatePage);\n          _classPrivateMethodInitSpec(this, _extractText);\n          _classPrivateMethodInitSpec(this, _calculateMatch);\n          _classPrivateMethodInitSpec(this, _convertToRegExpString);\n          _classPrivateMethodInitSpec(this, _calculateRegExpMatch);\n          _classPrivateMethodInitSpec(this, _isEntireWord);\n          _classPrivateMethodInitSpec(this, _shouldDirtyMatch);\n          _classPrivateFieldInitSpec(this, _query, {\n            get: _get_query,\n            set: void 0\n          });\n          _classPrivateMethodInitSpec(this, _reset);\n          _classPrivateMethodInitSpec(this, _onFind);\n          this._linkService = _linkService;\n          this._eventBus = eventBus;\n          _classPrivateMethodGet(this, _reset, _reset2).call(this);\n          eventBus._on(\"find\", _classPrivateMethodGet(this, _onFind, _onFind2).bind(this));\n          eventBus._on(\"findbarclose\", _classPrivateMethodGet(this, _onFindBarClose, _onFindBarClose2).bind(this));\n        }\n        _createClass(PDFFindController, [{\n          key: \"highlightMatches\",\n          get: function get() {\n            return this._highlightMatches;\n          }\n        }, {\n          key: \"pageMatches\",\n          get: function get() {\n            return this._pageMatches;\n          }\n        }, {\n          key: \"pageMatchesLength\",\n          get: function get() {\n            return this._pageMatchesLength;\n          }\n        }, {\n          key: \"selected\",\n          get: function get() {\n            return this._selected;\n          }\n        }, {\n          key: \"state\",\n          get: function get() {\n            return this._state;\n          }\n        }, {\n          key: \"setDocument\",\n          value: function setDocument(pdfDocument) {\n            if (this._pdfDocument) {\n              _classPrivateMethodGet(this, _reset, _reset2).call(this);\n            }\n            if (!pdfDocument) {\n              return;\n            }\n            this._pdfDocument = pdfDocument;\n            this._firstPageCapability.resolve();\n          }\n        }, {\n          key: \"scrollMatchIntoView\",\n          value: function scrollMatchIntoView(_ref2) {\n            var _ref2$element = _ref2.element,\n              element = _ref2$element === void 0 ? null : _ref2$element,\n              _ref2$selectedLeft = _ref2.selectedLeft,\n              selectedLeft = _ref2$selectedLeft === void 0 ? 0 : _ref2$selectedLeft,\n              _ref2$pageIndex = _ref2.pageIndex,\n              pageIndex = _ref2$pageIndex === void 0 ? -1 : _ref2$pageIndex,\n              _ref2$matchIndex = _ref2.matchIndex,\n              matchIndex = _ref2$matchIndex === void 0 ? -1 : _ref2$matchIndex;\n            if (!this._scrollMatches || !element) {\n              return;\n            } else if (matchIndex === -1 || matchIndex !== this._selected.matchIdx) {\n              return;\n            } else if (pageIndex === -1 || pageIndex !== this._selected.pageIdx) {\n              return;\n            }\n            this._scrollMatches = false;\n            var spot = {\n              top: MATCH_SCROLL_OFFSET_TOP,\n              left: selectedLeft + MATCH_SCROLL_OFFSET_LEFT\n            };\n            (0, _ui_utils.scrollIntoView)(element, spot, true);\n          }\n        }]);\n        return PDFFindController;\n      }();\n      exports.PDFFindController = PDFFindController;\n      function _onFind2(state) {\n        var _this17 = this;\n        if (!state) {\n          return;\n        }\n        var pdfDocument = this._pdfDocument;\n        var type = state.type;\n        if (this._state === null || _classPrivateMethodGet(this, _shouldDirtyMatch, _shouldDirtyMatch2).call(this, state)) {\n          this._dirtyMatch = true;\n        }\n        this._state = state;\n        if (type !== \"highlightallchange\") {\n          _classPrivateMethodGet(this, _updateUIState, _updateUIState2).call(this, FindState.PENDING);\n        }\n        this._firstPageCapability.promise.then(function () {\n          if (!_this17._pdfDocument || pdfDocument && _this17._pdfDocument !== pdfDocument) {\n            return;\n          }\n          _classPrivateMethodGet(_this17, _extractText, _extractText2).call(_this17);\n          var findbarClosed = !_this17._highlightMatches;\n          var pendingTimeout = !!_this17._findTimeout;\n          if (_this17._findTimeout) {\n            clearTimeout(_this17._findTimeout);\n            _this17._findTimeout = null;\n          }\n          if (!type) {\n            _this17._findTimeout = _setTimeout(function () {\n              _classPrivateMethodGet(_this17, _nextMatch, _nextMatch2).call(_this17);\n              _this17._findTimeout = null;\n            }, FIND_TIMEOUT);\n          } else if (_this17._dirtyMatch) {\n            _classPrivateMethodGet(_this17, _nextMatch, _nextMatch2).call(_this17);\n          } else if (type === \"again\") {\n            _classPrivateMethodGet(_this17, _nextMatch, _nextMatch2).call(_this17);\n            if (findbarClosed && _this17._state.highlightAll) {\n              _classPrivateMethodGet(_this17, _updateAllPages, _updateAllPages2).call(_this17);\n            }\n          } else if (type === \"highlightallchange\") {\n            if (pendingTimeout) {\n              _classPrivateMethodGet(_this17, _nextMatch, _nextMatch2).call(_this17);\n            } else {\n              _this17._highlightMatches = true;\n            }\n            _classPrivateMethodGet(_this17, _updateAllPages, _updateAllPages2).call(_this17);\n          } else {\n            _classPrivateMethodGet(_this17, _nextMatch, _nextMatch2).call(_this17);\n          }\n        });\n      }\n      function _reset2() {\n        this._highlightMatches = false;\n        this._scrollMatches = false;\n        this._pdfDocument = null;\n        this._pageMatches = [];\n        this._pageMatchesLength = [];\n        this._state = null;\n        this._selected = {\n          pageIdx: -1,\n          matchIdx: -1\n        };\n        this._offset = {\n          pageIdx: null,\n          matchIdx: null,\n          wrapped: false\n        };\n        this._extractTextPromises = [];\n        this._pageContents = [];\n        this._pageDiffs = [];\n        this._hasDiacritics = [];\n        this._matchesCountTotal = 0;\n        this._pagesToSearch = null;\n        this._pendingFindMatches = new _Set();\n        this._resumePageIdx = null;\n        this._dirtyMatch = false;\n        clearTimeout(this._findTimeout);\n        this._findTimeout = null;\n        this._firstPageCapability = (0, _pdfjsLib.createPromiseCapability)();\n      }\n      function _get_query() {\n        if (this._state.query !== this._rawQuery) {\n          this._rawQuery = this._state.query;\n          var _normalize = normalize(this._state.query);\n          var _normalize2 = _slicedToArray(_normalize, 1);\n          this._normalizedQuery = _normalize2[0];\n        }\n        return this._normalizedQuery;\n      }\n      function _shouldDirtyMatch2(state) {\n        if (state.query !== this._state.query) {\n          return true;\n        }\n        switch (state.type) {\n          case \"again\":\n            var pageNumber = this._selected.pageIdx + 1;\n            var linkService = this._linkService;\n            if (pageNumber >= 1 && pageNumber <= linkService.pagesCount && pageNumber !== linkService.page && !linkService.isPageVisible(pageNumber)) {\n              return true;\n            }\n            return false;\n          case \"highlightallchange\":\n            return false;\n        }\n        return true;\n      }\n      function _isEntireWord2(content, startIdx, length) {\n        var match = _sliceInstanceProperty(content).call(content, 0, startIdx).match(NOT_DIACRITIC_FROM_END_REG_EXP);\n        if (match) {\n          var first = content.charCodeAt(startIdx);\n          var limit = match[1].charCodeAt(0);\n          if ((0, _pdf_find_utils.getCharacterType)(first) === (0, _pdf_find_utils.getCharacterType)(limit)) {\n            return false;\n          }\n        }\n        match = _sliceInstanceProperty(content).call(content, startIdx + length).match(NOT_DIACRITIC_FROM_START_REG_EXP);\n        if (match) {\n          var last = content.charCodeAt(startIdx + length - 1);\n          var _limit = match[1].charCodeAt(0);\n          if ((0, _pdf_find_utils.getCharacterType)(last) === (0, _pdf_find_utils.getCharacterType)(_limit)) {\n            return false;\n          }\n        }\n        return true;\n      }\n      function _calculateRegExpMatch2(query, entireWord, pageIndex, pageContent) {\n        var matches = [],\n          matchesLength = [];\n        var diffs = this._pageDiffs[pageIndex];\n        var match;\n        while ((match = query.exec(pageContent)) !== null) {\n          if (entireWord && !_classPrivateMethodGet(this, _isEntireWord, _isEntireWord2).call(this, pageContent, match.index, match[0].length)) {\n            continue;\n          }\n          var _getOriginalIndex = getOriginalIndex(diffs, match.index, match[0].length),\n            _getOriginalIndex2 = _slicedToArray(_getOriginalIndex, 2),\n            matchPos = _getOriginalIndex2[0],\n            matchLen = _getOriginalIndex2[1];\n          if (matchLen) {\n            matches.push(matchPos);\n            matchesLength.push(matchLen);\n          }\n        }\n        this._pageMatches[pageIndex] = matches;\n        this._pageMatchesLength[pageIndex] = matchesLength;\n      }\n      function _convertToRegExpString2(query, hasDiacritics) {\n        var matchDiacritics = this._state.matchDiacritics;\n        var isUnicode = false;\n        query = query.replace(SPECIAL_CHARS_REG_EXP, function (match, p1, p2, p3, p4, p5) {\n          if (p1) {\n            return \"[ ]*\\\\\".concat(p1, \"[ ]*\");\n          }\n          if (p2) {\n            return \"[ ]*\".concat(p2, \"[ ]*\");\n          }\n          if (p3) {\n            return \"[ ]+\";\n          }\n          if (matchDiacritics) {\n            return p4 || p5;\n          }\n          if (p4) {\n            return DIACRITICS_EXCEPTION.has(p4.charCodeAt(0)) ? p4 : \"\";\n          }\n          if (hasDiacritics) {\n            isUnicode = true;\n            return \"\".concat(p5, \"\\\\p{M}*\");\n          }\n          return p5;\n        });\n        var trailingSpaces = \"[ ]*\";\n        if (_endsWithInstanceProperty(query).call(query, trailingSpaces)) {\n          query = _sliceInstanceProperty(query).call(query, 0, query.length - trailingSpaces.length);\n        }\n        if (matchDiacritics) {\n          if (hasDiacritics) {\n            var _context43;\n            isUnicode = true;\n            query = _concatInstanceProperty(_context43 = \"\".concat(query, \"(?=[\")).call(_context43, DIACRITICS_EXCEPTION_STR, \"]|[^\\\\p{M}]|$)\");\n          }\n        }\n        return [isUnicode, query];\n      }\n      function _calculateMatch2(pageIndex) {\n        var _this18 = this,\n          _context46;\n        var query = _classPrivateFieldGet(this, _query);\n        if (query.length === 0) {\n          return;\n        }\n        var _this$_state2 = this._state,\n          caseSensitive = _this$_state2.caseSensitive,\n          entireWord = _this$_state2.entireWord,\n          phraseSearch = _this$_state2.phraseSearch;\n        var pageContent = this._pageContents[pageIndex];\n        var hasDiacritics = this._hasDiacritics[pageIndex];\n        var isUnicode = false;\n        if (phraseSearch) {\n          var _classPrivateMethodGe2 = _classPrivateMethodGet(this, _convertToRegExpString, _convertToRegExpString2).call(this, query, hasDiacritics);\n          var _classPrivateMethodGe3 = _slicedToArray(_classPrivateMethodGe2, 2);\n          isUnicode = _classPrivateMethodGe3[0];\n          query = _classPrivateMethodGe3[1];\n        } else {\n          var match = query.match(/\\S+/g);\n          if (match) {\n            var _context44, _context45;\n            query = _mapInstanceProperty(_context44 = _reverseInstanceProperty(_context45 = _sortInstanceProperty(match).call(match)).call(_context45)).call(_context44, function (q) {\n              var _classPrivateMethodGe4 = _classPrivateMethodGet(_this18, _convertToRegExpString, _convertToRegExpString2).call(_this18, q, hasDiacritics),\n                _classPrivateMethodGe5 = _slicedToArray(_classPrivateMethodGe4, 2),\n                isUnicodePart = _classPrivateMethodGe5[0],\n                queryPart = _classPrivateMethodGe5[1];\n              isUnicode || (isUnicode = isUnicodePart);\n              return \"(\".concat(queryPart, \")\");\n            }).join(\"|\");\n          }\n        }\n        var flags = _concatInstanceProperty(_context46 = \"g\".concat(isUnicode ? \"u\" : \"\")).call(_context46, caseSensitive ? \"\" : \"i\");\n        query = new RegExp(query, flags);\n        _classPrivateMethodGet(this, _calculateRegExpMatch, _calculateRegExpMatch2).call(this, query, entireWord, pageIndex, pageContent);\n        if (this._state.highlightAll) {\n          _classPrivateMethodGet(this, _updatePage, _updatePage2).call(this, pageIndex);\n        }\n        if (this._resumePageIdx === pageIndex) {\n          this._resumePageIdx = null;\n          _classPrivateMethodGet(this, _nextPageMatch, _nextPageMatch2).call(this);\n        }\n        var pageMatchesCount = this._pageMatches[pageIndex].length;\n        if (pageMatchesCount > 0) {\n          this._matchesCountTotal += pageMatchesCount;\n          _classPrivateMethodGet(this, _updateUIResultsCount, _updateUIResultsCount2).call(this);\n        }\n      }\n      function _extractText2() {\n        var _this19 = this;\n        if (this._extractTextPromises.length > 0) {\n          return;\n        }\n        var promise = _Promise.resolve();\n        var _loop2 = function _loop2(i) {\n          var extractTextCapability = (0, _pdfjsLib.createPromiseCapability)();\n          _this19._extractTextPromises[i] = extractTextCapability.promise;\n          promise = promise.then(function () {\n            return _this19._pdfDocument.getPage(i + 1).then(function (pdfPage) {\n              return pdfPage.getTextContent();\n            }).then(function (textContent) {\n              var strBuf = [];\n              var _iterator24 = _createForOfIteratorHelper(textContent.items),\n                _step24;\n              try {\n                for (_iterator24.s(); !(_step24 = _iterator24.n()).done;) {\n                  var textItem = _step24.value;\n                  strBuf.push(textItem.str);\n                  if (textItem.hasEOL) {\n                    strBuf.push(\"\\n\");\n                  }\n                }\n              } catch (err) {\n                _iterator24.e(err);\n              } finally {\n                _iterator24.f();\n              }\n              var _normalize3 = normalize(strBuf.join(\"\"));\n              var _normalize4 = _slicedToArray(_normalize3, 3);\n              _this19._pageContents[i] = _normalize4[0];\n              _this19._pageDiffs[i] = _normalize4[1];\n              _this19._hasDiacritics[i] = _normalize4[2];\n              extractTextCapability.resolve();\n            }, function (reason) {\n              console.error(\"Unable to get text content for page \".concat(i + 1), reason);\n              _this19._pageContents[i] = \"\";\n              _this19._pageDiffs[i] = null;\n              _this19._hasDiacritics[i] = false;\n              extractTextCapability.resolve();\n            });\n          });\n        };\n        for (var i = 0, ii = this._linkService.pagesCount; i < ii; i++) {\n          _loop2(i);\n        }\n      }\n      function _updatePage2(index) {\n        if (this._scrollMatches && this._selected.pageIdx === index) {\n          this._linkService.page = index + 1;\n        }\n        this._eventBus.dispatch(\"updatetextlayermatches\", {\n          source: this,\n          pageIndex: index\n        });\n      }\n      function _updateAllPages2() {\n        this._eventBus.dispatch(\"updatetextlayermatches\", {\n          source: this,\n          pageIndex: -1\n        });\n      }\n      function _nextMatch2() {\n        var _this20 = this;\n        var previous = this._state.findPrevious;\n        var currentPageIndex = this._linkService.page - 1;\n        var numPages = this._linkService.pagesCount;\n        this._highlightMatches = true;\n        if (this._dirtyMatch) {\n          this._dirtyMatch = false;\n          this._selected.pageIdx = this._selected.matchIdx = -1;\n          this._offset.pageIdx = currentPageIndex;\n          this._offset.matchIdx = null;\n          this._offset.wrapped = false;\n          this._resumePageIdx = null;\n          this._pageMatches.length = 0;\n          this._pageMatchesLength.length = 0;\n          this._matchesCountTotal = 0;\n          _classPrivateMethodGet(this, _updateAllPages, _updateAllPages2).call(this);\n          var _loop3 = function _loop3(i) {\n            if (_this20._pendingFindMatches.has(i)) {\n              return 1; // continue\n            }\n            _this20._pendingFindMatches.add(i);\n            _this20._extractTextPromises[i].then(function () {\n              _this20._pendingFindMatches.delete(i);\n              _classPrivateMethodGet(_this20, _calculateMatch, _calculateMatch2).call(_this20, i);\n            });\n          };\n          for (var i = 0; i < numPages; i++) {\n            if (_loop3(i)) continue;\n          }\n        }\n        if (_classPrivateFieldGet(this, _query) === \"\") {\n          _classPrivateMethodGet(this, _updateUIState, _updateUIState2).call(this, FindState.FOUND);\n          return;\n        }\n        if (this._resumePageIdx) {\n          return;\n        }\n        var offset = this._offset;\n        this._pagesToSearch = numPages;\n        if (offset.matchIdx !== null) {\n          var numPageMatches = this._pageMatches[offset.pageIdx].length;\n          if (!previous && offset.matchIdx + 1 < numPageMatches || previous && offset.matchIdx > 0) {\n            offset.matchIdx = previous ? offset.matchIdx - 1 : offset.matchIdx + 1;\n            _classPrivateMethodGet(this, _updateMatch, _updateMatch2).call(this, true);\n            return;\n          }\n          _classPrivateMethodGet(this, _advanceOffsetPage, _advanceOffsetPage2).call(this, previous);\n        }\n        _classPrivateMethodGet(this, _nextPageMatch, _nextPageMatch2).call(this);\n      }\n      function _matchesReady2(matches) {\n        var offset = this._offset;\n        var numMatches = matches.length;\n        var previous = this._state.findPrevious;\n        if (numMatches) {\n          offset.matchIdx = previous ? numMatches - 1 : 0;\n          _classPrivateMethodGet(this, _updateMatch, _updateMatch2).call(this, true);\n          return true;\n        }\n        _classPrivateMethodGet(this, _advanceOffsetPage, _advanceOffsetPage2).call(this, previous);\n        if (offset.wrapped) {\n          offset.matchIdx = null;\n          if (this._pagesToSearch < 0) {\n            _classPrivateMethodGet(this, _updateMatch, _updateMatch2).call(this, false);\n            return true;\n          }\n        }\n        return false;\n      }\n      function _nextPageMatch2() {\n        if (this._resumePageIdx !== null) {\n          console.error(\"There can only be one pending page.\");\n        }\n        var matches = null;\n        do {\n          var pageIdx = this._offset.pageIdx;\n          matches = this._pageMatches[pageIdx];\n          if (!matches) {\n            this._resumePageIdx = pageIdx;\n            break;\n          }\n        } while (!_classPrivateMethodGet(this, _matchesReady, _matchesReady2).call(this, matches));\n      }\n      function _advanceOffsetPage2(previous) {\n        var offset = this._offset;\n        var numPages = this._linkService.pagesCount;\n        offset.pageIdx = previous ? offset.pageIdx - 1 : offset.pageIdx + 1;\n        offset.matchIdx = null;\n        this._pagesToSearch--;\n        if (offset.pageIdx >= numPages || offset.pageIdx < 0) {\n          offset.pageIdx = previous ? numPages - 1 : 0;\n          offset.wrapped = true;\n        }\n      }\n      function _updateMatch2() {\n        var found = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n        var state = FindState.NOT_FOUND;\n        var wrapped = this._offset.wrapped;\n        this._offset.wrapped = false;\n        if (found) {\n          var previousPage = this._selected.pageIdx;\n          this._selected.pageIdx = this._offset.pageIdx;\n          this._selected.matchIdx = this._offset.matchIdx;\n          state = wrapped ? FindState.WRAPPED : FindState.FOUND;\n          if (previousPage !== -1 && previousPage !== this._selected.pageIdx) {\n            _classPrivateMethodGet(this, _updatePage, _updatePage2).call(this, previousPage);\n          }\n        }\n        _classPrivateMethodGet(this, _updateUIState, _updateUIState2).call(this, state, this._state.findPrevious);\n        if (this._selected.pageIdx !== -1) {\n          this._scrollMatches = true;\n          _classPrivateMethodGet(this, _updatePage, _updatePage2).call(this, this._selected.pageIdx);\n        }\n      }\n      function _onFindBarClose2(evt) {\n        var _this21 = this;\n        var pdfDocument = this._pdfDocument;\n        this._firstPageCapability.promise.then(function () {\n          if (!_this21._pdfDocument || pdfDocument && _this21._pdfDocument !== pdfDocument) {\n            return;\n          }\n          if (_this21._findTimeout) {\n            clearTimeout(_this21._findTimeout);\n            _this21._findTimeout = null;\n          }\n          if (_this21._resumePageIdx) {\n            _this21._resumePageIdx = null;\n            _this21._dirtyMatch = true;\n          }\n          _classPrivateMethodGet(_this21, _updateUIState, _updateUIState2).call(_this21, FindState.FOUND);\n          _this21._highlightMatches = false;\n          _classPrivateMethodGet(_this21, _updateAllPages, _updateAllPages2).call(_this21);\n        });\n      }\n      function _requestMatchesCount2() {\n        var _this$_selected = this._selected,\n          pageIdx = _this$_selected.pageIdx,\n          matchIdx = _this$_selected.matchIdx;\n        var current = 0,\n          total = this._matchesCountTotal;\n        if (matchIdx !== -1) {\n          for (var i = 0; i < pageIdx; i++) {\n            var _this$_pageMatches$i;\n            current += ((_this$_pageMatches$i = this._pageMatches[i]) === null || _this$_pageMatches$i === void 0 ? void 0 : _this$_pageMatches$i.length) || 0;\n          }\n          current += matchIdx + 1;\n        }\n        if (current < 1 || current > total) {\n          current = total = 0;\n        }\n        return {\n          current: current,\n          total: total\n        };\n      }\n      function _updateUIResultsCount2() {\n        this._eventBus.dispatch(\"updatefindmatchescount\", {\n          source: this,\n          matchesCount: _classPrivateMethodGet(this, _requestMatchesCount, _requestMatchesCount2).call(this)\n        });\n      }\n      function _updateUIState2(state) {\n        var _this$_state$query, _this$_state;\n        var previous = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n        this._eventBus.dispatch(\"updatefindcontrolstate\", {\n          source: this,\n          state: state,\n          previous: previous,\n          matchesCount: _classPrivateMethodGet(this, _requestMatchesCount, _requestMatchesCount2).call(this),\n          rawQuery: (_this$_state$query = (_this$_state = this._state) === null || _this$_state === void 0 ? void 0 : _this$_state.query) !== null && _this$_state$query !== void 0 ? _this$_state$query : null\n        });\n      }\n\n      /***/\n    }), ( /* 23 */\n    /***/function (__unused_webpack_module, exports) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.CharacterType = void 0;\n      exports.getCharacterType = getCharacterType;\n      var CharacterType = {\n        SPACE: 0,\n        ALPHA_LETTER: 1,\n        PUNCT: 2,\n        HAN_LETTER: 3,\n        KATAKANA_LETTER: 4,\n        HIRAGANA_LETTER: 5,\n        HALFWIDTH_KATAKANA_LETTER: 6,\n        THAI_LETTER: 7\n      };\n      exports.CharacterType = CharacterType;\n      function isAlphabeticalScript(charCode) {\n        return charCode < 0x2e80;\n      }\n      function isAscii(charCode) {\n        return (charCode & 0xff80) === 0;\n      }\n      function isAsciiAlpha(charCode) {\n        return charCode >= 0x61 && charCode <= 0x7a || charCode >= 0x41 && charCode <= 0x5a;\n      }\n      function isAsciiDigit(charCode) {\n        return charCode >= 0x30 && charCode <= 0x39;\n      }\n      function isAsciiSpace(charCode) {\n        return charCode === 0x20 || charCode === 0x09 || charCode === 0x0d || charCode === 0x0a;\n      }\n      function isHan(charCode) {\n        return charCode >= 0x3400 && charCode <= 0x9fff || charCode >= 0xf900 && charCode <= 0xfaff;\n      }\n      function isKatakana(charCode) {\n        return charCode >= 0x30a0 && charCode <= 0x30ff;\n      }\n      function isHiragana(charCode) {\n        return charCode >= 0x3040 && charCode <= 0x309f;\n      }\n      function isHalfwidthKatakana(charCode) {\n        return charCode >= 0xff60 && charCode <= 0xff9f;\n      }\n      function isThai(charCode) {\n        return (charCode & 0xff80) === 0x0e00;\n      }\n      function getCharacterType(charCode) {\n        if (isAlphabeticalScript(charCode)) {\n          if (isAscii(charCode)) {\n            if (isAsciiSpace(charCode)) {\n              return CharacterType.SPACE;\n            } else if (isAsciiAlpha(charCode) || isAsciiDigit(charCode) || charCode === 0x5f) {\n              return CharacterType.ALPHA_LETTER;\n            }\n            return CharacterType.PUNCT;\n          } else if (isThai(charCode)) {\n            return CharacterType.THAI_LETTER;\n          } else if (charCode === 0xa0) {\n            return CharacterType.SPACE;\n          }\n          return CharacterType.ALPHA_LETTER;\n        }\n        if (isHan(charCode)) {\n          return CharacterType.HAN_LETTER;\n        } else if (isKatakana(charCode)) {\n          return CharacterType.KATAKANA_LETTER;\n        } else if (isHiragana(charCode)) {\n          return CharacterType.HIRAGANA_LETTER;\n        } else if (isHalfwidthKatakana(charCode)) {\n          return CharacterType.HALFWIDTH_KATAKANA_LETTER;\n        }\n        return CharacterType.ALPHA_LETTER;\n      }\n\n      /***/\n    }), ( /* 24 */\n    /***/function (__unused_webpack_module, exports, __w_pdfjs_require__) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.PDFHistory = void 0;\n      exports.isDestArraysEqual = isDestArraysEqual;\n      exports.isDestHashesEqual = isDestHashesEqual;\n      var _ui_utils = __w_pdfjs_require__(7);\n      var _event_utils = __w_pdfjs_require__(19);\n      var HASH_CHANGE_TIMEOUT = 1000;\n      var POSITION_UPDATED_THRESHOLD = 50;\n      var UPDATE_VIEWAREA_TIMEOUT = 1000;\n      function getCurrentHash() {\n        return document.location.hash;\n      }\n      var PDFHistory = /*#__PURE__*/function () {\n        function PDFHistory(_ref) {\n          var _this22 = this;\n          _classCallCheck(this, PDFHistory);\n          var linkService = _ref.linkService,\n            eventBus = _ref.eventBus;\n          this.linkService = linkService;\n          this.eventBus = eventBus;\n          this._initialized = false;\n          this._fingerprint = \"\";\n          this.reset();\n          this._boundEvents = null;\n          this.eventBus._on(\"pagesinit\", function () {\n            _this22._isPagesLoaded = false;\n            _this22.eventBus._on(\"pagesloaded\", function (evt) {\n              _this22._isPagesLoaded = !!evt.pagesCount;\n            }, {\n              once: true\n            });\n          });\n        }\n        _createClass(PDFHistory, [{\n          key: \"initialize\",\n          value: function initialize(_ref2) {\n            var fingerprint = _ref2.fingerprint,\n              _ref2$resetHistory = _ref2.resetHistory,\n              resetHistory = _ref2$resetHistory === void 0 ? false : _ref2$resetHistory,\n              _ref2$updateUrl = _ref2.updateUrl,\n              updateUrl = _ref2$updateUrl === void 0 ? false : _ref2$updateUrl;\n            if (!fingerprint || typeof fingerprint !== \"string\") {\n              console.error('PDFHistory.initialize: The \"fingerprint\" must be a non-empty string.');\n              return;\n            }\n            if (this._initialized) {\n              this.reset();\n            }\n            var reInitialized = this._fingerprint !== \"\" && this._fingerprint !== fingerprint;\n            this._fingerprint = fingerprint;\n            this._updateUrl = updateUrl === true;\n            this._initialized = true;\n            this._bindEvents();\n            var state = window.history.state;\n            this._popStateInProgress = false;\n            this._blockHashChange = 0;\n            this._currentHash = getCurrentHash();\n            this._numPositionUpdates = 0;\n            this._uid = this._maxUid = 0;\n            this._destination = null;\n            this._position = null;\n            if (!this._isValidState(state, true) || resetHistory) {\n              var _this$_parseCurrentHa = this._parseCurrentHash(true),\n                hash = _this$_parseCurrentHa.hash,\n                page = _this$_parseCurrentHa.page,\n                rotation = _this$_parseCurrentHa.rotation;\n              if (!hash || reInitialized || resetHistory) {\n                this._pushOrReplaceState(null, true);\n                return;\n              }\n              this._pushOrReplaceState({\n                hash: hash,\n                page: page,\n                rotation: rotation\n              }, true);\n              return;\n            }\n            var destination = state.destination;\n            this._updateInternalState(destination, state.uid, true);\n            if (destination.rotation !== undefined) {\n              this._initialRotation = destination.rotation;\n            }\n            if (destination.dest) {\n              this._initialBookmark = _JSON$stringify(destination.dest);\n              this._destination.page = null;\n            } else if (destination.hash) {\n              this._initialBookmark = destination.hash;\n            } else if (destination.page) {\n              this._initialBookmark = \"page=\".concat(destination.page);\n            }\n          }\n        }, {\n          key: \"reset\",\n          value: function reset() {\n            if (this._initialized) {\n              this._pageHide();\n              this._initialized = false;\n              this._unbindEvents();\n            }\n            if (this._updateViewareaTimeout) {\n              clearTimeout(this._updateViewareaTimeout);\n              this._updateViewareaTimeout = null;\n            }\n            this._initialBookmark = null;\n            this._initialRotation = null;\n          }\n        }, {\n          key: \"push\",\n          value: function push(_ref3) {\n            var _this23 = this;\n            var _ref3$namedDest = _ref3.namedDest,\n              namedDest = _ref3$namedDest === void 0 ? null : _ref3$namedDest,\n              explicitDest = _ref3.explicitDest,\n              pageNumber = _ref3.pageNumber;\n            if (!this._initialized) {\n              return;\n            }\n            if (namedDest && typeof namedDest !== \"string\") {\n              console.error(\"PDFHistory.push: \" + \"\\\"\".concat(namedDest, \"\\\" is not a valid namedDest parameter.\"));\n              return;\n            } else if (!Array.isArray(explicitDest)) {\n              console.error(\"PDFHistory.push: \" + \"\\\"\".concat(explicitDest, \"\\\" is not a valid explicitDest parameter.\"));\n              return;\n            } else if (!this._isValidPage(pageNumber)) {\n              if (pageNumber !== null || this._destination) {\n                console.error(\"PDFHistory.push: \" + \"\\\"\".concat(pageNumber, \"\\\" is not a valid pageNumber parameter.\"));\n                return;\n              }\n            }\n            var hash = namedDest || _JSON$stringify(explicitDest);\n            if (!hash) {\n              return;\n            }\n            var forceReplace = false;\n            if (this._destination && (isDestHashesEqual(this._destination.hash, hash) || isDestArraysEqual(this._destination.dest, explicitDest))) {\n              if (this._destination.page) {\n                return;\n              }\n              forceReplace = true;\n            }\n            if (this._popStateInProgress && !forceReplace) {\n              return;\n            }\n            this._pushOrReplaceState({\n              dest: explicitDest,\n              hash: hash,\n              page: pageNumber,\n              rotation: this.linkService.rotation\n            }, forceReplace);\n            if (!this._popStateInProgress) {\n              this._popStateInProgress = true;\n              _Promise.resolve().then(function () {\n                _this23._popStateInProgress = false;\n              });\n            }\n          }\n        }, {\n          key: \"pushPage\",\n          value: function pushPage(pageNumber) {\n            var _this24 = this;\n            var _this$_destination;\n            if (!this._initialized) {\n              return;\n            }\n            if (!this._isValidPage(pageNumber)) {\n              console.error(\"PDFHistory.pushPage: \\\"\".concat(pageNumber, \"\\\" is not a valid page number.\"));\n              return;\n            }\n            if (((_this$_destination = this._destination) === null || _this$_destination === void 0 ? void 0 : _this$_destination.page) === pageNumber) {\n              return;\n            }\n            if (this._popStateInProgress) {\n              return;\n            }\n            this._pushOrReplaceState({\n              dest: null,\n              hash: \"page=\".concat(pageNumber),\n              page: pageNumber,\n              rotation: this.linkService.rotation\n            });\n            if (!this._popStateInProgress) {\n              this._popStateInProgress = true;\n              _Promise.resolve().then(function () {\n                _this24._popStateInProgress = false;\n              });\n            }\n          }\n        }, {\n          key: \"pushCurrentPosition\",\n          value: function pushCurrentPosition() {\n            if (!this._initialized || this._popStateInProgress) {\n              return;\n            }\n            this._tryPushCurrentPosition();\n          }\n        }, {\n          key: \"back\",\n          value: function back() {\n            if (!this._initialized || this._popStateInProgress) {\n              return;\n            }\n            var state = window.history.state;\n            if (this._isValidState(state) && state.uid > 0) {\n              window.history.back();\n            }\n          }\n        }, {\n          key: \"forward\",\n          value: function forward() {\n            if (!this._initialized || this._popStateInProgress) {\n              return;\n            }\n            var state = window.history.state;\n            if (this._isValidState(state) && state.uid < this._maxUid) {\n              window.history.forward();\n            }\n          }\n        }, {\n          key: \"popStateInProgress\",\n          get: function get() {\n            return this._initialized && (this._popStateInProgress || this._blockHashChange > 0);\n          }\n        }, {\n          key: \"initialBookmark\",\n          get: function get() {\n            return this._initialized ? this._initialBookmark : null;\n          }\n        }, {\n          key: \"initialRotation\",\n          get: function get() {\n            return this._initialized ? this._initialRotation : null;\n          }\n        }, {\n          key: \"_pushOrReplaceState\",\n          value: function _pushOrReplaceState(destination) {\n            var forceReplace = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n            var shouldReplace = forceReplace || !this._destination;\n            var newState = {\n              fingerprint: this._fingerprint,\n              uid: shouldReplace ? this._uid : this._uid + 1,\n              destination: destination\n            };\n            this._updateInternalState(destination, newState.uid);\n            var newUrl;\n            if (this._updateUrl && destination !== null && destination !== void 0 && destination.hash) {\n              var baseUrl = document.location.href.split(\"#\")[0];\n              if (!_startsWithInstanceProperty(baseUrl).call(baseUrl, \"file://\")) {\n                var _context47;\n                newUrl = _concatInstanceProperty(_context47 = \"\".concat(baseUrl, \"#\")).call(_context47, destination.hash);\n              }\n            }\n            if (shouldReplace) {\n              window.history.replaceState(newState, \"\", newUrl);\n            } else {\n              window.history.pushState(newState, \"\", newUrl);\n            }\n          }\n        }, {\n          key: \"_tryPushCurrentPosition\",\n          value: function _tryPushCurrentPosition() {\n            var temporary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n            if (!this._position) {\n              return;\n            }\n            var position = this._position;\n            if (temporary) {\n              position = _extends(Object.create(null), this._position);\n              position.temporary = true;\n            }\n            if (!this._destination) {\n              this._pushOrReplaceState(position);\n              return;\n            }\n            if (this._destination.temporary) {\n              this._pushOrReplaceState(position, true);\n              return;\n            }\n            if (this._destination.hash === position.hash) {\n              return;\n            }\n            if (!this._destination.page && (POSITION_UPDATED_THRESHOLD <= 0 || this._numPositionUpdates <= POSITION_UPDATED_THRESHOLD)) {\n              return;\n            }\n            var forceReplace = false;\n            if (this._destination.page >= position.first && this._destination.page <= position.page) {\n              if (this._destination.dest !== undefined || !this._destination.first) {\n                return;\n              }\n              forceReplace = true;\n            }\n            this._pushOrReplaceState(position, forceReplace);\n          }\n        }, {\n          key: \"_isValidPage\",\n          value: function _isValidPage(val) {\n            return _Number$isInteger(val) && val > 0 && val <= this.linkService.pagesCount;\n          }\n        }, {\n          key: \"_isValidState\",\n          value: function _isValidState(state) {\n            var checkReload = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n            if (!state) {\n              return false;\n            }\n            if (state.fingerprint !== this._fingerprint) {\n              if (checkReload) {\n                if (typeof state.fingerprint !== \"string\" || state.fingerprint.length !== this._fingerprint.length) {\n                  return false;\n                }\n                var _performance$getEntri = performance.getEntriesByType(\"navigation\"),\n                  _performance$getEntri2 = _slicedToArray(_performance$getEntri, 1),\n                  perfEntry = _performance$getEntri2[0];\n                if ((perfEntry === null || perfEntry === void 0 ? void 0 : perfEntry.type) !== \"reload\") {\n                  return false;\n                }\n              } else {\n                return false;\n              }\n            }\n            if (!_Number$isInteger(state.uid) || state.uid < 0) {\n              return false;\n            }\n            if (state.destination === null || _typeof(state.destination) !== \"object\") {\n              return false;\n            }\n            return true;\n          }\n        }, {\n          key: \"_updateInternalState\",\n          value: function _updateInternalState(destination, uid) {\n            var removeTemporary = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n            if (this._updateViewareaTimeout) {\n              clearTimeout(this._updateViewareaTimeout);\n              this._updateViewareaTimeout = null;\n            }\n            if (removeTemporary && destination !== null && destination !== void 0 && destination.temporary) {\n              delete destination.temporary;\n            }\n            this._destination = destination;\n            this._uid = uid;\n            this._maxUid = Math.max(this._maxUid, uid);\n            this._numPositionUpdates = 0;\n          }\n        }, {\n          key: \"_parseCurrentHash\",\n          value: function _parseCurrentHash() {\n            var checkNameddest = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n            var hash = unescape(getCurrentHash()).substring(1);\n            var params = (0, _ui_utils.parseQueryString)(hash);\n            var nameddest = params.get(\"nameddest\") || \"\";\n            var page = params.get(\"page\") | 0;\n            if (!this._isValidPage(page) || checkNameddest && nameddest.length > 0) {\n              page = null;\n            }\n            return {\n              hash: hash,\n              page: page,\n              rotation: this.linkService.rotation\n            };\n          }\n        }, {\n          key: \"_updateViewarea\",\n          value: function _updateViewarea(_ref4) {\n            var _this25 = this;\n            var location = _ref4.location;\n            if (this._updateViewareaTimeout) {\n              clearTimeout(this._updateViewareaTimeout);\n              this._updateViewareaTimeout = null;\n            }\n            this._position = {\n              hash: location.pdfOpenParams.substring(1),\n              page: this.linkService.page,\n              first: location.pageNumber,\n              rotation: location.rotation\n            };\n            if (this._popStateInProgress) {\n              return;\n            }\n            if (POSITION_UPDATED_THRESHOLD > 0 && this._isPagesLoaded && this._destination && !this._destination.page) {\n              this._numPositionUpdates++;\n            }\n            if (UPDATE_VIEWAREA_TIMEOUT > 0) {\n              this._updateViewareaTimeout = _setTimeout(function () {\n                if (!_this25._popStateInProgress) {\n                  _this25._tryPushCurrentPosition(true);\n                }\n                _this25._updateViewareaTimeout = null;\n              }, UPDATE_VIEWAREA_TIMEOUT);\n            }\n          }\n        }, {\n          key: \"_popState\",\n          value: function _popState(_ref5) {\n            var _this26 = this;\n            var state = _ref5.state;\n            var newHash = getCurrentHash(),\n              hashChanged = this._currentHash !== newHash;\n            this._currentHash = newHash;\n            if (!state) {\n              this._uid++;\n              var _this$_parseCurrentHa2 = this._parseCurrentHash(),\n                hash = _this$_parseCurrentHa2.hash,\n                page = _this$_parseCurrentHa2.page,\n                rotation = _this$_parseCurrentHa2.rotation;\n              this._pushOrReplaceState({\n                hash: hash,\n                page: page,\n                rotation: rotation\n              }, true);\n              return;\n            }\n            if (!this._isValidState(state)) {\n              return;\n            }\n            this._popStateInProgress = true;\n            if (hashChanged) {\n              this._blockHashChange++;\n              (0, _event_utils.waitOnEventOrTimeout)({\n                target: window,\n                name: \"hashchange\",\n                delay: HASH_CHANGE_TIMEOUT\n              }).then(function () {\n                _this26._blockHashChange--;\n              });\n            }\n            var destination = state.destination;\n            this._updateInternalState(destination, state.uid, true);\n            if ((0, _ui_utils.isValidRotation)(destination.rotation)) {\n              this.linkService.rotation = destination.rotation;\n            }\n            if (destination.dest) {\n              this.linkService.goToDestination(destination.dest);\n            } else if (destination.hash) {\n              this.linkService.setHash(destination.hash);\n            } else if (destination.page) {\n              this.linkService.page = destination.page;\n            }\n            _Promise.resolve().then(function () {\n              _this26._popStateInProgress = false;\n            });\n          }\n        }, {\n          key: \"_pageHide\",\n          value: function _pageHide() {\n            if (!this._destination || this._destination.temporary) {\n              this._tryPushCurrentPosition();\n            }\n          }\n        }, {\n          key: \"_bindEvents\",\n          value: function _bindEvents() {\n            if (this._boundEvents) {\n              return;\n            }\n            this._boundEvents = {\n              updateViewarea: this._updateViewarea.bind(this),\n              popState: this._popState.bind(this),\n              pageHide: this._pageHide.bind(this)\n            };\n            this.eventBus._on(\"updateviewarea\", this._boundEvents.updateViewarea);\n            window.addEventListener(\"popstate\", this._boundEvents.popState);\n            window.addEventListener(\"pagehide\", this._boundEvents.pageHide);\n          }\n        }, {\n          key: \"_unbindEvents\",\n          value: function _unbindEvents() {\n            if (!this._boundEvents) {\n              return;\n            }\n            this.eventBus._off(\"updateviewarea\", this._boundEvents.updateViewarea);\n            window.removeEventListener(\"popstate\", this._boundEvents.popState);\n            window.removeEventListener(\"pagehide\", this._boundEvents.pageHide);\n            this._boundEvents = null;\n          }\n        }]);\n        return PDFHistory;\n      }();\n      exports.PDFHistory = PDFHistory;\n      function isDestHashesEqual(destHash, pushHash) {\n        if (typeof destHash !== \"string\" || typeof pushHash !== \"string\") {\n          return false;\n        }\n        if (destHash === pushHash) {\n          return true;\n        }\n        var nameddest = (0, _ui_utils.parseQueryString)(destHash).get(\"nameddest\");\n        if (nameddest === pushHash) {\n          return true;\n        }\n        return false;\n      }\n      function isDestArraysEqual(firstDest, secondDest) {\n        function isEntryEqual(first, second) {\n          if (_typeof(first) !== _typeof(second)) {\n            return false;\n          }\n          if (Array.isArray(first) || Array.isArray(second)) {\n            return false;\n          }\n          if (first !== null && _typeof(first) === \"object\" && second !== null) {\n            if (_Object$keys(first).length !== _Object$keys(second).length) {\n              return false;\n            }\n            for (var key in first) {\n              if (!isEntryEqual(first[key], second[key])) {\n                return false;\n              }\n            }\n            return true;\n          }\n          return first === second || _Number$isNaN(first) && _Number$isNaN(second);\n        }\n        if (!(Array.isArray(firstDest) && Array.isArray(secondDest))) {\n          return false;\n        }\n        if (firstDest.length !== secondDest.length) {\n          return false;\n        }\n        for (var i = 0, ii = firstDest.length; i < ii; i++) {\n          if (!isEntryEqual(firstDest[i], secondDest[i])) {\n            return false;\n          }\n        }\n        return true;\n      }\n\n      /***/\n    }), ( /* 25 */\n    /***/function (__unused_webpack_module, exports, __w_pdfjs_require__) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.PDFScriptingManager = void 0;\n      var _ui_utils = __w_pdfjs_require__(7);\n      var _pdfjsLib = __w_pdfjs_require__(3);\n      var PDFScriptingManager = /*#__PURE__*/function () {\n        function PDFScriptingManager(_ref) {\n          var _this27 = this;\n          _classCallCheck(this, PDFScriptingManager);\n          var eventBus = _ref.eventBus,\n            _ref$sandboxBundleSrc = _ref.sandboxBundleSrc,\n            sandboxBundleSrc = _ref$sandboxBundleSrc === void 0 ? null : _ref$sandboxBundleSrc,\n            _ref$scriptingFactory = _ref.scriptingFactory,\n            scriptingFactory = _ref$scriptingFactory === void 0 ? null : _ref$scriptingFactory,\n            _ref$docPropertiesLoo = _ref.docPropertiesLookup,\n            docPropertiesLookup = _ref$docPropertiesLoo === void 0 ? null : _ref$docPropertiesLoo;\n          this._pdfDocument = null;\n          this._pdfViewer = null;\n          this._closeCapability = null;\n          this._destroyCapability = null;\n          this._scripting = null;\n          this._mouseState = Object.create(null);\n          this._ready = false;\n          this._eventBus = eventBus;\n          this._sandboxBundleSrc = sandboxBundleSrc;\n          this._scriptingFactory = scriptingFactory;\n          this._docPropertiesLookup = docPropertiesLookup;\n          if (!this._scriptingFactory) {\n            window.addEventListener(\"updatefromsandbox\", function (event) {\n              _this27._eventBus.dispatch(\"updatefromsandbox\", {\n                source: window,\n                detail: event.detail\n              });\n            });\n          }\n        }\n        _createClass(PDFScriptingManager, [{\n          key: \"setViewer\",\n          value: function setViewer(pdfViewer) {\n            this._pdfViewer = pdfViewer;\n          }\n        }, {\n          key: \"setDocument\",\n          value: function () {\n            var _setDocument = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21(pdfDocument) {\n              var _this28 = this;\n              var _this$_scripting3, _yield$Promise$all3, _yield$Promise$all4, objects, calculationOrder, docActions, _iterator25, _step25, _step25$value, name, listener, _iterator26, _step26, _step26$value, _name, _listener2, docProperties;\n              return _regeneratorRuntime.wrap(function _callee21$(_context49) {\n                while (1) switch (_context49.prev = _context49.next) {\n                  case 0:\n                    if (!this._pdfDocument) {\n                      _context49.next = 3;\n                      break;\n                    }\n                    _context49.next = 3;\n                    return this._destroyScripting();\n                  case 3:\n                    this._pdfDocument = pdfDocument;\n                    if (pdfDocument) {\n                      _context49.next = 6;\n                      break;\n                    }\n                    return _context49.abrupt(\"return\");\n                  case 6:\n                    _context49.next = 8;\n                    return _Promise.all([pdfDocument.getFieldObjects(), pdfDocument.getCalculationOrderIds(), pdfDocument.getJSActions()]);\n                  case 8:\n                    _yield$Promise$all3 = _context49.sent;\n                    _yield$Promise$all4 = _slicedToArray(_yield$Promise$all3, 3);\n                    objects = _yield$Promise$all4[0];\n                    calculationOrder = _yield$Promise$all4[1];\n                    docActions = _yield$Promise$all4[2];\n                    if (!(!objects && !docActions)) {\n                      _context49.next = 17;\n                      break;\n                    }\n                    _context49.next = 16;\n                    return this._destroyScripting();\n                  case 16:\n                    return _context49.abrupt(\"return\");\n                  case 17:\n                    if (!(pdfDocument !== this._pdfDocument)) {\n                      _context49.next = 19;\n                      break;\n                    }\n                    return _context49.abrupt(\"return\");\n                  case 19:\n                    _context49.prev = 19;\n                    this._scripting = this._createScripting();\n                    _context49.next = 29;\n                    break;\n                  case 23:\n                    _context49.prev = 23;\n                    _context49.t0 = _context49[\"catch\"](19);\n                    console.error(\"PDFScriptingManager.setDocument: \\\"\".concat(_context49.t0 === null || _context49.t0 === void 0 ? void 0 : _context49.t0.message, \"\\\".\"));\n                    _context49.next = 28;\n                    return this._destroyScripting();\n                  case 28:\n                    return _context49.abrupt(\"return\");\n                  case 29:\n                    this._internalEvents.set(\"updatefromsandbox\", function (event) {\n                      if ((event === null || event === void 0 ? void 0 : event.source) !== window) {\n                        return;\n                      }\n                      _this28._updateFromSandbox(event.detail);\n                    });\n                    this._internalEvents.set(\"dispatcheventinsandbox\", function (event) {\n                      var _this$_scripting;\n                      (_this$_scripting = _this28._scripting) === null || _this$_scripting === void 0 ? void 0 : _this$_scripting.dispatchEventInSandbox(event.detail);\n                    });\n                    this._internalEvents.set(\"pagechanging\", function (_ref2) {\n                      var pageNumber = _ref2.pageNumber,\n                        previous = _ref2.previous;\n                      if (pageNumber === previous) {\n                        return;\n                      }\n                      _this28._dispatchPageClose(previous);\n                      _this28._dispatchPageOpen(pageNumber);\n                    });\n                    this._internalEvents.set(\"pagerendered\", function (_ref3) {\n                      var pageNumber = _ref3.pageNumber;\n                      if (!_this28._pageOpenPending.has(pageNumber)) {\n                        return;\n                      }\n                      if (pageNumber !== _this28._pdfViewer.currentPageNumber) {\n                        return;\n                      }\n                      _this28._dispatchPageOpen(pageNumber);\n                    });\n                    this._internalEvents.set(\"pagesdestroy\", /*#__PURE__*/function () {\n                      var _ref19 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(event) {\n                        var _this$_scripting2, _this$_closeCapabilit;\n                        return _regeneratorRuntime.wrap(function _callee20$(_context48) {\n                          while (1) switch (_context48.prev = _context48.next) {\n                            case 0:\n                              _context48.next = 2;\n                              return _this28._dispatchPageClose(_this28._pdfViewer.currentPageNumber);\n                            case 2:\n                              _context48.next = 4;\n                              return (_this$_scripting2 = _this28._scripting) === null || _this$_scripting2 === void 0 ? void 0 : _this$_scripting2.dispatchEventInSandbox({\n                                id: \"doc\",\n                                name: \"WillClose\"\n                              });\n                            case 4:\n                              (_this$_closeCapabilit = _this28._closeCapability) === null || _this$_closeCapabilit === void 0 ? void 0 : _this$_closeCapabilit.resolve();\n                            case 5:\n                            case \"end\":\n                              return _context48.stop();\n                          }\n                        }, _callee20);\n                      }));\n                      return function (_x10) {\n                        return _ref19.apply(this, arguments);\n                      };\n                    }());\n                    this._domEvents.set(\"mousedown\", function (event) {\n                      _this28._mouseState.isDown = true;\n                    });\n                    this._domEvents.set(\"mouseup\", function (event) {\n                      _this28._mouseState.isDown = false;\n                    });\n                    _iterator25 = _createForOfIteratorHelper(this._internalEvents);\n                    try {\n                      for (_iterator25.s(); !(_step25 = _iterator25.n()).done;) {\n                        _step25$value = _slicedToArray(_step25.value, 2), name = _step25$value[0], listener = _step25$value[1];\n                        this._eventBus._on(name, listener);\n                      }\n                    } catch (err) {\n                      _iterator25.e(err);\n                    } finally {\n                      _iterator25.f();\n                    }\n                    _iterator26 = _createForOfIteratorHelper(this._domEvents);\n                    try {\n                      for (_iterator26.s(); !(_step26 = _iterator26.n()).done;) {\n                        _step26$value = _slicedToArray(_step26.value, 2), _name = _step26$value[0], _listener2 = _step26$value[1];\n                        window.addEventListener(_name, _listener2, true);\n                      }\n                    } catch (err) {\n                      _iterator26.e(err);\n                    } finally {\n                      _iterator26.f();\n                    }\n                    _context49.prev = 40;\n                    _context49.next = 43;\n                    return this._getDocProperties();\n                  case 43:\n                    docProperties = _context49.sent;\n                    if (!(pdfDocument !== this._pdfDocument)) {\n                      _context49.next = 46;\n                      break;\n                    }\n                    return _context49.abrupt(\"return\");\n                  case 46:\n                    _context49.next = 48;\n                    return this._scripting.createSandbox({\n                      objects: objects,\n                      calculationOrder: calculationOrder,\n                      appInfo: {\n                        platform: navigator.platform,\n                        language: navigator.language\n                      },\n                      docInfo: _objectSpread(_objectSpread({}, docProperties), {}, {\n                        actions: docActions\n                      })\n                    });\n                  case 48:\n                    this._eventBus.dispatch(\"sandboxcreated\", {\n                      source: this\n                    });\n                    _context49.next = 57;\n                    break;\n                  case 51:\n                    _context49.prev = 51;\n                    _context49.t1 = _context49[\"catch\"](40);\n                    console.error(\"PDFScriptingManager.setDocument: \\\"\".concat(_context49.t1 === null || _context49.t1 === void 0 ? void 0 : _context49.t1.message, \"\\\".\"));\n                    _context49.next = 56;\n                    return this._destroyScripting();\n                  case 56:\n                    return _context49.abrupt(\"return\");\n                  case 57:\n                    _context49.next = 59;\n                    return (_this$_scripting3 = this._scripting) === null || _this$_scripting3 === void 0 ? void 0 : _this$_scripting3.dispatchEventInSandbox({\n                      id: \"doc\",\n                      name: \"Open\"\n                    });\n                  case 59:\n                    _context49.next = 61;\n                    return this._dispatchPageOpen(this._pdfViewer.currentPageNumber, true);\n                  case 61:\n                    _Promise.resolve().then(function () {\n                      if (pdfDocument === _this28._pdfDocument) {\n                        _this28._ready = true;\n                      }\n                    });\n                  case 62:\n                  case \"end\":\n                    return _context49.stop();\n                }\n              }, _callee21, this, [[19, 23], [40, 51]]);\n            }));\n            function setDocument(_x9) {\n              return _setDocument.apply(this, arguments);\n            }\n            return setDocument;\n          }()\n        }, {\n          key: \"dispatchWillSave\",\n          value: function () {\n            var _dispatchWillSave = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(detail) {\n              var _this$_scripting4;\n              return _regeneratorRuntime.wrap(function _callee22$(_context50) {\n                while (1) switch (_context50.prev = _context50.next) {\n                  case 0:\n                    return _context50.abrupt(\"return\", (_this$_scripting4 = this._scripting) === null || _this$_scripting4 === void 0 ? void 0 : _this$_scripting4.dispatchEventInSandbox({\n                      id: \"doc\",\n                      name: \"WillSave\"\n                    }));\n                  case 1:\n                  case \"end\":\n                    return _context50.stop();\n                }\n              }, _callee22, this);\n            }));\n            function dispatchWillSave(_x11) {\n              return _dispatchWillSave.apply(this, arguments);\n            }\n            return dispatchWillSave;\n          }()\n        }, {\n          key: \"dispatchDidSave\",\n          value: function () {\n            var _dispatchDidSave = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(detail) {\n              var _this$_scripting5;\n              return _regeneratorRuntime.wrap(function _callee23$(_context51) {\n                while (1) switch (_context51.prev = _context51.next) {\n                  case 0:\n                    return _context51.abrupt(\"return\", (_this$_scripting5 = this._scripting) === null || _this$_scripting5 === void 0 ? void 0 : _this$_scripting5.dispatchEventInSandbox({\n                      id: \"doc\",\n                      name: \"DidSave\"\n                    }));\n                  case 1:\n                  case \"end\":\n                    return _context51.stop();\n                }\n              }, _callee23, this);\n            }));\n            function dispatchDidSave(_x12) {\n              return _dispatchDidSave.apply(this, arguments);\n            }\n            return dispatchDidSave;\n          }()\n        }, {\n          key: \"dispatchWillPrint\",\n          value: function () {\n            var _dispatchWillPrint = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(detail) {\n              var _this$_scripting6;\n              return _regeneratorRuntime.wrap(function _callee24$(_context52) {\n                while (1) switch (_context52.prev = _context52.next) {\n                  case 0:\n                    return _context52.abrupt(\"return\", (_this$_scripting6 = this._scripting) === null || _this$_scripting6 === void 0 ? void 0 : _this$_scripting6.dispatchEventInSandbox({\n                      id: \"doc\",\n                      name: \"WillPrint\"\n                    }));\n                  case 1:\n                  case \"end\":\n                    return _context52.stop();\n                }\n              }, _callee24, this);\n            }));\n            function dispatchWillPrint(_x13) {\n              return _dispatchWillPrint.apply(this, arguments);\n            }\n            return dispatchWillPrint;\n          }()\n        }, {\n          key: \"dispatchDidPrint\",\n          value: function () {\n            var _dispatchDidPrint = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(detail) {\n              var _this$_scripting7;\n              return _regeneratorRuntime.wrap(function _callee25$(_context53) {\n                while (1) switch (_context53.prev = _context53.next) {\n                  case 0:\n                    return _context53.abrupt(\"return\", (_this$_scripting7 = this._scripting) === null || _this$_scripting7 === void 0 ? void 0 : _this$_scripting7.dispatchEventInSandbox({\n                      id: \"doc\",\n                      name: \"DidPrint\"\n                    }));\n                  case 1:\n                  case \"end\":\n                    return _context53.stop();\n                }\n              }, _callee25, this);\n            }));\n            function dispatchDidPrint(_x14) {\n              return _dispatchDidPrint.apply(this, arguments);\n            }\n            return dispatchDidPrint;\n          }()\n        }, {\n          key: \"mouseState\",\n          get: function get() {\n            return this._mouseState;\n          }\n        }, {\n          key: \"destroyPromise\",\n          get: function get() {\n            var _this$_destroyCapabil;\n            return ((_this$_destroyCapabil = this._destroyCapability) === null || _this$_destroyCapabil === void 0 ? void 0 : _this$_destroyCapabil.promise) || null;\n          }\n        }, {\n          key: \"ready\",\n          get: function get() {\n            return this._ready;\n          }\n        }, {\n          key: \"_internalEvents\",\n          get: function get() {\n            return (0, _pdfjsLib.shadow)(this, \"_internalEvents\", new _Map());\n          }\n        }, {\n          key: \"_domEvents\",\n          get: function get() {\n            return (0, _pdfjsLib.shadow)(this, \"_domEvents\", new _Map());\n          }\n        }, {\n          key: \"_pageOpenPending\",\n          get: function get() {\n            return (0, _pdfjsLib.shadow)(this, \"_pageOpenPending\", new _Set());\n          }\n        }, {\n          key: \"_visitedPages\",\n          get: function get() {\n            return (0, _pdfjsLib.shadow)(this, \"_visitedPages\", new _Map());\n          }\n        }, {\n          key: \"_updateFromSandbox\",\n          value: function () {\n            var _updateFromSandbox2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(detail) {\n              var _context54;\n              var isInPresentationMode, id, siblings, command, value, modes, ids, _iterator27, _step27, elementId, element, _this$_pdfDocument;\n              return _regeneratorRuntime.wrap(function _callee26$(_context55) {\n                while (1) switch (_context55.prev = _context55.next) {\n                  case 0:\n                    isInPresentationMode = this._pdfViewer.isInPresentationMode || this._pdfViewer.isChangingPresentationMode;\n                    id = detail.id, siblings = detail.siblings, command = detail.command, value = detail.value;\n                    if (id) {\n                      _context55.next = 46;\n                      break;\n                    }\n                    _context55.t0 = command;\n                    _context55.next = _context55.t0 === \"clear\" ? 6 : _context55.t0 === \"error\" ? 8 : _context55.t0 === \"layout\" ? 10 : _context55.t0 === \"page-num\" ? 15 : _context55.t0 === \"print\" ? 17 : _context55.t0 === \"println\" ? 21 : _context55.t0 === \"zoom\" ? 23 : _context55.t0 === \"SaveAs\" ? 27 : _context55.t0 === \"FirstPage\" ? 29 : _context55.t0 === \"LastPage\" ? 31 : _context55.t0 === \"NextPage\" ? 33 : _context55.t0 === \"PrevPage\" ? 35 : _context55.t0 === \"ZoomViewIn\" ? 37 : _context55.t0 === \"ZoomViewOut\" ? 41 : 45;\n                    break;\n                  case 6:\n                    console.clear();\n                    return _context55.abrupt(\"break\", 45);\n                  case 8:\n                    console.error(value);\n                    return _context55.abrupt(\"break\", 45);\n                  case 10:\n                    if (!isInPresentationMode) {\n                      _context55.next = 12;\n                      break;\n                    }\n                    return _context55.abrupt(\"return\");\n                  case 12:\n                    modes = (0, _ui_utils.apiPageLayoutToViewerModes)(value);\n                    this._pdfViewer.spreadMode = modes.spreadMode;\n                    return _context55.abrupt(\"break\", 45);\n                  case 15:\n                    this._pdfViewer.currentPageNumber = value + 1;\n                    return _context55.abrupt(\"break\", 45);\n                  case 17:\n                    _context55.next = 19;\n                    return this._pdfViewer.pagesPromise;\n                  case 19:\n                    this._eventBus.dispatch(\"print\", {\n                      source: this\n                    });\n                    return _context55.abrupt(\"break\", 45);\n                  case 21:\n                    console.log(value);\n                    return _context55.abrupt(\"break\", 45);\n                  case 23:\n                    if (!isInPresentationMode) {\n                      _context55.next = 25;\n                      break;\n                    }\n                    return _context55.abrupt(\"return\");\n                  case 25:\n                    this._pdfViewer.currentScaleValue = value;\n                    return _context55.abrupt(\"break\", 45);\n                  case 27:\n                    this._eventBus.dispatch(\"download\", {\n                      source: this\n                    });\n                    return _context55.abrupt(\"break\", 45);\n                  case 29:\n                    this._pdfViewer.currentPageNumber = 1;\n                    return _context55.abrupt(\"break\", 45);\n                  case 31:\n                    this._pdfViewer.currentPageNumber = this._pdfViewer.pagesCount;\n                    return _context55.abrupt(\"break\", 45);\n                  case 33:\n                    this._pdfViewer.nextPage();\n                    return _context55.abrupt(\"break\", 45);\n                  case 35:\n                    this._pdfViewer.previousPage();\n                    return _context55.abrupt(\"break\", 45);\n                  case 37:\n                    if (!isInPresentationMode) {\n                      _context55.next = 39;\n                      break;\n                    }\n                    return _context55.abrupt(\"return\");\n                  case 39:\n                    this._pdfViewer.increaseScale();\n                    return _context55.abrupt(\"break\", 45);\n                  case 41:\n                    if (!isInPresentationMode) {\n                      _context55.next = 43;\n                      break;\n                    }\n                    return _context55.abrupt(\"return\");\n                  case 43:\n                    this._pdfViewer.decreaseScale();\n                    return _context55.abrupt(\"break\", 45);\n                  case 45:\n                    return _context55.abrupt(\"return\");\n                  case 46:\n                    if (!isInPresentationMode) {\n                      _context55.next = 49;\n                      break;\n                    }\n                    if (!detail.focus) {\n                      _context55.next = 49;\n                      break;\n                    }\n                    return _context55.abrupt(\"return\");\n                  case 49:\n                    delete detail.id;\n                    delete detail.siblings;\n                    ids = siblings ? _concatInstanceProperty(_context54 = [id]).call(_context54, _toConsumableArray(siblings)) : [id];\n                    _iterator27 = _createForOfIteratorHelper(ids);\n                    try {\n                      for (_iterator27.s(); !(_step27 = _iterator27.n()).done;) {\n                        elementId = _step27.value;\n                        element = document.querySelector(\"[data-element-id=\\\"\".concat(elementId, \"\\\"]\"));\n                        if (element) {\n                          element.dispatchEvent(new CustomEvent(\"updatefromsandbox\", {\n                            detail: detail\n                          }));\n                        } else {\n                          (_this$_pdfDocument = this._pdfDocument) === null || _this$_pdfDocument === void 0 ? void 0 : _this$_pdfDocument.annotationStorage.setValue(elementId, detail);\n                        }\n                      }\n                    } catch (err) {\n                      _iterator27.e(err);\n                    } finally {\n                      _iterator27.f();\n                    }\n                  case 54:\n                  case \"end\":\n                    return _context55.stop();\n                }\n              }, _callee26, this);\n            }));\n            function _updateFromSandbox(_x15) {\n              return _updateFromSandbox2.apply(this, arguments);\n            }\n            return _updateFromSandbox;\n          }()\n        }, {\n          key: \"_dispatchPageOpen\",\n          value: function () {\n            var _dispatchPageOpen2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(pageNumber) {\n              var _this29 = this;\n              var initialize,\n                pdfDocument,\n                visitedPages,\n                pageView,\n                actionsPromise,\n                _args29 = arguments;\n              return _regeneratorRuntime.wrap(function _callee28$(_context57) {\n                while (1) switch (_context57.prev = _context57.next) {\n                  case 0:\n                    initialize = _args29.length > 1 && _args29[1] !== undefined ? _args29[1] : false;\n                    pdfDocument = this._pdfDocument, visitedPages = this._visitedPages;\n                    if (initialize) {\n                      this._closeCapability = (0, _pdfjsLib.createPromiseCapability)();\n                    }\n                    if (this._closeCapability) {\n                      _context57.next = 5;\n                      break;\n                    }\n                    return _context57.abrupt(\"return\");\n                  case 5:\n                    pageView = this._pdfViewer.getPageView(pageNumber - 1);\n                    if (!((pageView === null || pageView === void 0 ? void 0 : pageView.renderingState) !== _ui_utils.RenderingStates.FINISHED)) {\n                      _context57.next = 9;\n                      break;\n                    }\n                    this._pageOpenPending.add(pageNumber);\n                    return _context57.abrupt(\"return\");\n                  case 9:\n                    this._pageOpenPending.delete(pageNumber);\n                    actionsPromise = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27() {\n                      var _pageView$pdfPage, _this$_scripting8, actions;\n                      return _regeneratorRuntime.wrap(function _callee27$(_context56) {\n                        while (1) switch (_context56.prev = _context56.next) {\n                          case 0:\n                            _context56.next = 2;\n                            return !visitedPages.has(pageNumber) ? (_pageView$pdfPage = pageView.pdfPage) === null || _pageView$pdfPage === void 0 ? void 0 : _pageView$pdfPage.getJSActions() : null;\n                          case 2:\n                            actions = _context56.sent;\n                            if (!(pdfDocument !== _this29._pdfDocument)) {\n                              _context56.next = 5;\n                              break;\n                            }\n                            return _context56.abrupt(\"return\");\n                          case 5:\n                            _context56.next = 7;\n                            return (_this$_scripting8 = _this29._scripting) === null || _this$_scripting8 === void 0 ? void 0 : _this$_scripting8.dispatchEventInSandbox({\n                              id: \"page\",\n                              name: \"PageOpen\",\n                              pageNumber: pageNumber,\n                              actions: actions\n                            });\n                          case 7:\n                          case \"end\":\n                            return _context56.stop();\n                        }\n                      }, _callee27);\n                    }))();\n                    visitedPages.set(pageNumber, actionsPromise);\n                  case 12:\n                  case \"end\":\n                    return _context57.stop();\n                }\n              }, _callee28, this);\n            }));\n            function _dispatchPageOpen(_x16) {\n              return _dispatchPageOpen2.apply(this, arguments);\n            }\n            return _dispatchPageOpen;\n          }()\n        }, {\n          key: \"_dispatchPageClose\",\n          value: function () {\n            var _dispatchPageClose2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(pageNumber) {\n              var _this$_scripting9, pdfDocument, visitedPages, actionsPromise;\n              return _regeneratorRuntime.wrap(function _callee29$(_context58) {\n                while (1) switch (_context58.prev = _context58.next) {\n                  case 0:\n                    pdfDocument = this._pdfDocument, visitedPages = this._visitedPages;\n                    if (this._closeCapability) {\n                      _context58.next = 3;\n                      break;\n                    }\n                    return _context58.abrupt(\"return\");\n                  case 3:\n                    if (!this._pageOpenPending.has(pageNumber)) {\n                      _context58.next = 5;\n                      break;\n                    }\n                    return _context58.abrupt(\"return\");\n                  case 5:\n                    actionsPromise = visitedPages.get(pageNumber);\n                    if (actionsPromise) {\n                      _context58.next = 8;\n                      break;\n                    }\n                    return _context58.abrupt(\"return\");\n                  case 8:\n                    visitedPages.set(pageNumber, null);\n                    _context58.next = 11;\n                    return actionsPromise;\n                  case 11:\n                    if (!(pdfDocument !== this._pdfDocument)) {\n                      _context58.next = 13;\n                      break;\n                    }\n                    return _context58.abrupt(\"return\");\n                  case 13:\n                    _context58.next = 15;\n                    return (_this$_scripting9 = this._scripting) === null || _this$_scripting9 === void 0 ? void 0 : _this$_scripting9.dispatchEventInSandbox({\n                      id: \"page\",\n                      name: \"PageClose\",\n                      pageNumber: pageNumber\n                    });\n                  case 15:\n                  case \"end\":\n                    return _context58.stop();\n                }\n              }, _callee29, this);\n            }));\n            function _dispatchPageClose(_x17) {\n              return _dispatchPageClose2.apply(this, arguments);\n            }\n            return _dispatchPageClose;\n          }()\n        }, {\n          key: \"_getDocProperties\",\n          value: function () {\n            var _getDocProperties2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30() {\n              var _w_pdfjs_require__, docPropertiesLookup;\n              return _regeneratorRuntime.wrap(function _callee30$(_context59) {\n                while (1) switch (_context59.prev = _context59.next) {\n                  case 0:\n                    if (!this._docPropertiesLookup) {\n                      _context59.next = 2;\n                      break;\n                    }\n                    return _context59.abrupt(\"return\", this._docPropertiesLookup(this._pdfDocument));\n                  case 2:\n                    _w_pdfjs_require__ = __w_pdfjs_require__(26), docPropertiesLookup = _w_pdfjs_require__.docPropertiesLookup;\n                    return _context59.abrupt(\"return\", docPropertiesLookup(this._pdfDocument));\n                  case 4:\n                  case \"end\":\n                    return _context59.stop();\n                }\n              }, _callee30, this);\n            }));\n            function _getDocProperties() {\n              return _getDocProperties2.apply(this, arguments);\n            }\n            return _getDocProperties;\n          }()\n        }, {\n          key: \"_createScripting\",\n          value: function _createScripting() {\n            this._destroyCapability = (0, _pdfjsLib.createPromiseCapability)();\n            if (this._scripting) {\n              throw new Error(\"_createScripting: Scripting already exists.\");\n            }\n            if (this._scriptingFactory) {\n              return this._scriptingFactory.createScripting({\n                sandboxBundleSrc: this._sandboxBundleSrc\n              });\n            }\n            var _w_pdfjs_require__2 = __w_pdfjs_require__(26),\n              GenericScripting = _w_pdfjs_require__2.GenericScripting;\n            return new GenericScripting(this._sandboxBundleSrc);\n          }\n        }, {\n          key: \"_destroyScripting\",\n          value: function () {\n            var _destroyScripting2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {\n              var _this$_destroyCapabil3, _this$_destroyCapabil2, _iterator28, _step28, _step28$value, name, listener, _iterator29, _step29, _step29$value, _name2, _listener3;\n              return _regeneratorRuntime.wrap(function _callee31$(_context60) {\n                while (1) switch (_context60.prev = _context60.next) {\n                  case 0:\n                    if (this._scripting) {\n                      _context60.next = 4;\n                      break;\n                    }\n                    this._pdfDocument = null;\n                    (_this$_destroyCapabil2 = this._destroyCapability) === null || _this$_destroyCapabil2 === void 0 ? void 0 : _this$_destroyCapabil2.resolve();\n                    return _context60.abrupt(\"return\");\n                  case 4:\n                    if (!this._closeCapability) {\n                      _context60.next = 8;\n                      break;\n                    }\n                    _context60.next = 7;\n                    return _Promise.race([this._closeCapability.promise, new _Promise(function (resolve) {\n                      _setTimeout(resolve, 1000);\n                    })]).catch(function (reason) {});\n                  case 7:\n                    this._closeCapability = null;\n                  case 8:\n                    this._pdfDocument = null;\n                    _context60.prev = 9;\n                    _context60.next = 12;\n                    return this._scripting.destroySandbox();\n                  case 12:\n                    _context60.next = 16;\n                    break;\n                  case 14:\n                    _context60.prev = 14;\n                    _context60.t0 = _context60[\"catch\"](9);\n                  case 16:\n                    _iterator28 = _createForOfIteratorHelper(this._internalEvents);\n                    try {\n                      for (_iterator28.s(); !(_step28 = _iterator28.n()).done;) {\n                        _step28$value = _slicedToArray(_step28.value, 2), name = _step28$value[0], listener = _step28$value[1];\n                        this._eventBus._off(name, listener);\n                      }\n                    } catch (err) {\n                      _iterator28.e(err);\n                    } finally {\n                      _iterator28.f();\n                    }\n                    this._internalEvents.clear();\n                    _iterator29 = _createForOfIteratorHelper(this._domEvents);\n                    try {\n                      for (_iterator29.s(); !(_step29 = _iterator29.n()).done;) {\n                        _step29$value = _slicedToArray(_step29.value, 2), _name2 = _step29$value[0], _listener3 = _step29$value[1];\n                        window.removeEventListener(_name2, _listener3, true);\n                      }\n                    } catch (err) {\n                      _iterator29.e(err);\n                    } finally {\n                      _iterator29.f();\n                    }\n                    this._domEvents.clear();\n                    this._pageOpenPending.clear();\n                    this._visitedPages.clear();\n                    this._scripting = null;\n                    delete this._mouseState.isDown;\n                    this._ready = false;\n                    (_this$_destroyCapabil3 = this._destroyCapability) === null || _this$_destroyCapabil3 === void 0 ? void 0 : _this$_destroyCapabil3.resolve();\n                  case 28:\n                  case \"end\":\n                    return _context60.stop();\n                }\n              }, _callee31, this, [[9, 14]]);\n            }));\n            function _destroyScripting() {\n              return _destroyScripting2.apply(this, arguments);\n            }\n            return _destroyScripting;\n          }()\n        }]);\n        return PDFScriptingManager;\n      }();\n      exports.PDFScriptingManager = PDFScriptingManager;\n\n      /***/\n    }), ( /* 26 */\n    /***/function (__unused_webpack_module, exports, __w_pdfjs_require__) {\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      exports.GenericScripting = void 0;\n      exports.docPropertiesLookup = docPropertiesLookup;\n      var _pdfjsLib = __w_pdfjs_require__(3);\n      function docPropertiesLookup(_x18) {\n        return _docPropertiesLookup.apply(this, arguments);\n      }\n      function _docPropertiesLookup() {\n        _docPropertiesLookup = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(pdfDocument) {\n          var url, baseUrl, _yield$pdfDocument$ge, info, metadata, contentDispositionFilename, contentLength, _yield$pdfDocument$ge2, length;\n          return _regeneratorRuntime.wrap(function _callee35$(_context64) {\n            while (1) switch (_context64.prev = _context64.next) {\n              case 0:\n                url = \"\", baseUrl = url.split(\"#\")[0];\n                _context64.next = 3;\n                return pdfDocument.getMetadata();\n              case 3:\n                _yield$pdfDocument$ge = _context64.sent;\n                info = _yield$pdfDocument$ge.info;\n                metadata = _yield$pdfDocument$ge.metadata;\n                contentDispositionFilename = _yield$pdfDocument$ge.contentDispositionFilename;\n                contentLength = _yield$pdfDocument$ge.contentLength;\n                if (contentLength) {\n                  _context64.next = 14;\n                  break;\n                }\n                _context64.next = 11;\n                return pdfDocument.getDownloadInfo();\n              case 11:\n                _yield$pdfDocument$ge2 = _context64.sent;\n                length = _yield$pdfDocument$ge2.length;\n                contentLength = length;\n              case 14:\n                return _context64.abrupt(\"return\", _objectSpread(_objectSpread({}, info), {}, {\n                  baseURL: baseUrl,\n                  filesize: contentLength,\n                  filename: contentDispositionFilename || (0, _pdfjsLib.getPdfFilenameFromUrl)(url),\n                  metadata: metadata === null || metadata === void 0 ? void 0 : metadata.getRaw(),\n                  authors: metadata === null || metadata === void 0 ? void 0 : metadata.get(\"dc:creator\"),\n                  numPages: pdfDocument.numPages,\n                  URL: url\n                }));\n              case 15:\n              case \"end\":\n                return _context64.stop();\n            }\n          }, _callee35);\n        }));\n        return _docPropertiesLookup.apply(this, arguments);\n      }\n      var GenericScripting = /*#__PURE__*/function () {\n        function GenericScripting(sandboxBundleSrc) {\n          _classCallCheck(this, GenericScripting);\n          this._ready = (0, _pdfjsLib.loadScript)(sandboxBundleSrc, true).then(function () {\n            return window.pdfjsSandbox.QuickJSSandbox();\n          });\n        }\n        _createClass(GenericScripting, [{\n          key: \"createSandbox\",\n          value: function () {\n            var _createSandbox = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(data) {\n              var sandbox;\n              return _regeneratorRuntime.wrap(function _callee32$(_context61) {\n                while (1) switch (_context61.prev = _context61.next) {\n                  case 0:\n                    _context61.next = 2;\n                    return this._ready;\n                  case 2:\n                    sandbox = _context61.sent;\n                    sandbox.create(data);\n                  case 4:\n                  case \"end\":\n                    return _context61.stop();\n                }\n              }, _callee32, this);\n            }));\n            function createSandbox(_x19) {\n              return _createSandbox.apply(this, arguments);\n            }\n            return createSandbox;\n          }()\n        }, {\n          key: \"dispatchEventInSandbox\",\n          value: function () {\n            var _dispatchEventInSandbox = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(event) {\n              var sandbox;\n              return _regeneratorRuntime.wrap(function _callee33$(_context62) {\n                while (1) switch (_context62.prev = _context62.next) {\n                  case 0:\n                    _context62.next = 2;\n                    return this._ready;\n                  case 2:\n                    sandbox = _context62.sent;\n                    _setTimeout(function () {\n                      return sandbox.dispatchEvent(event);\n                    }, 0);\n                  case 4:\n                  case \"end\":\n                    return _context62.stop();\n                }\n              }, _callee33, this);\n            }));\n            function dispatchEventInSandbox(_x20) {\n              return _dispatchEventInSandbox.apply(this, arguments);\n            }\n            return dispatchEventInSandbox;\n          }()\n        }, {\n          key: \"destroySandbox\",\n          value: function () {\n            var _destroySandbox = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34() {\n              var sandbox;\n              return _regeneratorRuntime.wrap(function _callee34$(_context63) {\n                while (1) switch (_context63.prev = _context63.next) {\n                  case 0:\n                    _context63.next = 2;\n                    return this._ready;\n                  case 2:\n                    sandbox = _context63.sent;\n                    sandbox.nukeSandbox();\n                  case 4:\n                  case \"end\":\n                    return _context63.stop();\n                }\n              }, _callee34, this);\n            }));\n            function destroySandbox() {\n              return _destroySandbox.apply(this, arguments);\n            }\n            return destroySandbox;\n          }()\n        }]);\n        return GenericScripting;\n      }();\n      exports.GenericScripting = GenericScripting;\n\n      /***/\n    }\n    /******/)];\n    /************************************************************************/\n    /******/ // The module cache\n    /******/\n    var __webpack_module_cache__ = {};\n    /******/\n    /******/ // The require function\n    /******/\n    function __w_pdfjs_require__(moduleId) {\n      /******/ // Check if module is in cache\n      /******/var cachedModule = __webpack_module_cache__[moduleId];\n      /******/\n      if (cachedModule !== undefined) {\n        /******/return cachedModule.exports;\n        /******/\n      }\n      /******/ // Create a new module (and put it into the cache)\n      /******/\n      var module = __webpack_module_cache__[moduleId] = {\n        /******/ // no module.id needed\n        /******/ // no module.loaded needed\n        /******/exports: {}\n        /******/\n      };\n      /******/\n      /******/ // Execute the module function\n      /******/\n      __webpack_modules__[moduleId](module, module.exports, __w_pdfjs_require__);\n      /******/\n      /******/ // Return the exports of the module\n      /******/\n      return module.exports;\n      /******/\n    }\n    /******/\n    /************************************************************************/\n    var __nested_webpack_exports__ = {};\n    // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.\n    (function () {\n      var exports = __nested_webpack_exports__;\n      _Object$defineProperty(exports, \"__esModule\", {\n        value: true\n      });\n      _Object$defineProperty(exports, \"AnnotationLayerBuilder\", {\n        enumerable: true,\n        get: function get() {\n          return _annotation_layer_builder.AnnotationLayerBuilder;\n        }\n      });\n      _Object$defineProperty(exports, \"DefaultAnnotationLayerFactory\", {\n        enumerable: true,\n        get: function get() {\n          return _default_factory.DefaultAnnotationLayerFactory;\n        }\n      });\n      _Object$defineProperty(exports, \"DefaultStructTreeLayerFactory\", {\n        enumerable: true,\n        get: function get() {\n          return _default_factory.DefaultStructTreeLayerFactory;\n        }\n      });\n      _Object$defineProperty(exports, \"DefaultTextLayerFactory\", {\n        enumerable: true,\n        get: function get() {\n          return _default_factory.DefaultTextLayerFactory;\n        }\n      });\n      _Object$defineProperty(exports, \"DefaultXfaLayerFactory\", {\n        enumerable: true,\n        get: function get() {\n          return _default_factory.DefaultXfaLayerFactory;\n        }\n      });\n      _Object$defineProperty(exports, \"DownloadManager\", {\n        enumerable: true,\n        get: function get() {\n          return _download_manager.DownloadManager;\n        }\n      });\n      _Object$defineProperty(exports, \"EventBus\", {\n        enumerable: true,\n        get: function get() {\n          return _event_utils.EventBus;\n        }\n      });\n      _Object$defineProperty(exports, \"GenericL10n\", {\n        enumerable: true,\n        get: function get() {\n          return _genericl10n.GenericL10n;\n        }\n      });\n      _Object$defineProperty(exports, \"LinkTarget\", {\n        enumerable: true,\n        get: function get() {\n          return _pdf_link_service.LinkTarget;\n        }\n      });\n      _Object$defineProperty(exports, \"NullL10n\", {\n        enumerable: true,\n        get: function get() {\n          return _l10n_utils.NullL10n;\n        }\n      });\n      _Object$defineProperty(exports, \"PDFFindController\", {\n        enumerable: true,\n        get: function get() {\n          return _pdf_find_controller.PDFFindController;\n        }\n      });\n      _Object$defineProperty(exports, \"PDFHistory\", {\n        enumerable: true,\n        get: function get() {\n          return _pdf_history.PDFHistory;\n        }\n      });\n      _Object$defineProperty(exports, \"PDFLinkService\", {\n        enumerable: true,\n        get: function get() {\n          return _pdf_link_service.PDFLinkService;\n        }\n      });\n      _Object$defineProperty(exports, \"PDFPageView\", {\n        enumerable: true,\n        get: function get() {\n          return _pdf_page_view.PDFPageView;\n        }\n      });\n      _Object$defineProperty(exports, \"PDFScriptingManager\", {\n        enumerable: true,\n        get: function get() {\n          return _pdf_scripting_manager.PDFScriptingManager;\n        }\n      });\n      _Object$defineProperty(exports, \"PDFSinglePageViewer\", {\n        enumerable: true,\n        get: function get() {\n          return _pdf_viewer.PDFSinglePageViewer;\n        }\n      });\n      _Object$defineProperty(exports, \"PDFViewer\", {\n        enumerable: true,\n        get: function get() {\n          return _pdf_viewer.PDFViewer;\n        }\n      });\n      _Object$defineProperty(exports, \"ProgressBar\", {\n        enumerable: true,\n        get: function get() {\n          return _ui_utils.ProgressBar;\n        }\n      });\n      _Object$defineProperty(exports, \"RenderingStates\", {\n        enumerable: true,\n        get: function get() {\n          return _ui_utils.RenderingStates;\n        }\n      });\n      _Object$defineProperty(exports, \"ScrollMode\", {\n        enumerable: true,\n        get: function get() {\n          return _ui_utils.ScrollMode;\n        }\n      });\n      _Object$defineProperty(exports, \"SimpleLinkService\", {\n        enumerable: true,\n        get: function get() {\n          return _pdf_link_service.SimpleLinkService;\n        }\n      });\n      _Object$defineProperty(exports, \"SpreadMode\", {\n        enumerable: true,\n        get: function get() {\n          return _ui_utils.SpreadMode;\n        }\n      });\n      _Object$defineProperty(exports, \"StructTreeLayerBuilder\", {\n        enumerable: true,\n        get: function get() {\n          return _struct_tree_layer_builder.StructTreeLayerBuilder;\n        }\n      });\n      _Object$defineProperty(exports, \"TextLayerBuilder\", {\n        enumerable: true,\n        get: function get() {\n          return _text_layer_builder.TextLayerBuilder;\n        }\n      });\n      _Object$defineProperty(exports, \"XfaLayerBuilder\", {\n        enumerable: true,\n        get: function get() {\n          return _xfa_layer_builder.XfaLayerBuilder;\n        }\n      });\n      _Object$defineProperty(exports, \"parseQueryString\", {\n        enumerable: true,\n        get: function get() {\n          return _ui_utils.parseQueryString;\n        }\n      });\n      var _default_factory = __w_pdfjs_require__(1);\n      var _pdf_link_service = __w_pdfjs_require__(6);\n      var _ui_utils = __w_pdfjs_require__(7);\n      var _pdf_viewer = __w_pdfjs_require__(11);\n      var _annotation_layer_builder = __w_pdfjs_require__(5);\n      var _download_manager = __w_pdfjs_require__(18);\n      var _event_utils = __w_pdfjs_require__(19);\n      var _genericl10n = __w_pdfjs_require__(20);\n      var _l10n_utils = __w_pdfjs_require__(4);\n      var _pdf_find_controller = __w_pdfjs_require__(22);\n      var _pdf_history = __w_pdfjs_require__(24);\n      var _pdf_page_view = __w_pdfjs_require__(13);\n      var _pdf_scripting_manager = __w_pdfjs_require__(25);\n      var _struct_tree_layer_builder = __w_pdfjs_require__(8);\n      var _text_layer_builder = __w_pdfjs_require__(9);\n      var _xfa_layer_builder = __w_pdfjs_require__(10);\n      var pdfjsVersion = '2.16.105';\n      var pdfjsBuild = '172ccdbe5';\n    })();\n\n    /******/\n    return __nested_webpack_exports__;\n    /******/\n  }();\n});\n\n//# sourceURL=webpack://nocode-component/../../node_modules/pdfjs-dist216/legacy/web/pdf_viewer.js?");

/***/ }),

/***/ "../../node_modules/web-streams-polyfill/dist/ponyfill.js":
/*!****************************************************************!*\
  !*** ../../node_modules/web-streams-polyfill/dist/ponyfill.js ***!
  \****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("/**\n * @license\n * web-streams-polyfill v3.3.2\n * Copyright 2024 Mattias Buelens, Diwank Singh Tomer and other contributors.\n * This code is released under the MIT license.\n * SPDX-License-Identifier: MIT\n */\n(function (global, factory) {\n     true ? factory(exports) :\n    0;\n})(this, (function (exports) { 'use strict';\n\n    /// <reference lib=\"es2015.symbol\" />\n    var SymbolPolyfill = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ?\n        Symbol :\n        function (description) { return \"Symbol(\".concat(description, \")\"); };\n\n    /******************************************************************************\r\n    Copyright (c) Microsoft Corporation.\r\n\r\n    Permission to use, copy, modify, and/or distribute this software for any\r\n    purpose with or without fee is hereby granted.\r\n\r\n    THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\n    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\n    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\n    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\n    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\n    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\n    PERFORMANCE OF THIS SOFTWARE.\r\n    ***************************************************************************** */\r\n    /* global Reflect, Promise, SuppressedError, Symbol */\r\n\r\n\r\n    function __generator(thisArg, body) {\r\n        var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n        return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n        function verb(n) { return function (v) { return step([n, v]); }; }\r\n        function step(op) {\r\n            if (f) throw new TypeError(\"Generator is already executing.\");\r\n            while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n                if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n                if (y = 0, t) op = [op[0] & 2, t.value];\r\n                switch (op[0]) {\r\n                    case 0: case 1: t = op; break;\r\n                    case 4: _.label++; return { value: op[1], done: false };\r\n                    case 5: _.label++; y = op[1]; op = [0]; continue;\r\n                    case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n                    default:\r\n                        if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n                        if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n                        if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n                        if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n                        if (t[2]) _.ops.pop();\r\n                        _.trys.pop(); continue;\r\n                }\r\n                op = body.call(thisArg, _);\r\n            } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n            if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n        }\r\n    }\r\n\r\n    function __values(o) {\r\n        var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n        if (m) return m.call(o);\r\n        if (o && typeof o.length === \"number\") return {\r\n            next: function () {\r\n                if (o && i >= o.length) o = void 0;\r\n                return { value: o && o[i++], done: !o };\r\n            }\r\n        };\r\n        throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n    }\r\n\r\n    function __await(v) {\r\n        return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n    }\r\n\r\n    function __asyncGenerator(thisArg, _arguments, generator) {\r\n        if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n        var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n        return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n        function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n        function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n        function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n        function fulfill(value) { resume(\"next\", value); }\r\n        function reject(value) { resume(\"throw\", value); }\r\n        function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n    }\r\n\r\n    function __asyncDelegator(o) {\r\n        var i, p;\r\n        return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n        function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n    }\r\n\r\n    function __asyncValues(o) {\r\n        if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n        var m = o[Symbol.asyncIterator], i;\r\n        return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n        function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n        function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n    }\r\n\r\n    typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n        var e = new Error(message);\r\n        return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n    };\n\n    function noop() {\n        return undefined;\n    }\n\n    function typeIsObject(x) {\n        return (typeof x === 'object' && x !== null) || typeof x === 'function';\n    }\n    var rethrowAssertionErrorRejection = noop;\n    function setFunctionName(fn, name) {\n        try {\n            Object.defineProperty(fn, 'name', {\n                value: name,\n                configurable: true\n            });\n        }\n        catch (_a) {\n            // This property is non-configurable in older browsers, so ignore if this throws.\n            // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name#browser_compatibility\n        }\n    }\n\n    var originalPromise = Promise;\n    var originalPromiseThen = Promise.prototype.then;\n    var originalPromiseReject = Promise.reject.bind(originalPromise);\n    // https://webidl.spec.whatwg.org/#a-new-promise\n    function newPromise(executor) {\n        return new originalPromise(executor);\n    }\n    // https://webidl.spec.whatwg.org/#a-promise-resolved-with\n    function promiseResolvedWith(value) {\n        return newPromise(function (resolve) { return resolve(value); });\n    }\n    // https://webidl.spec.whatwg.org/#a-promise-rejected-with\n    function promiseRejectedWith(reason) {\n        return originalPromiseReject(reason);\n    }\n    function PerformPromiseThen(promise, onFulfilled, onRejected) {\n        // There doesn't appear to be any way to correctly emulate the behaviour from JavaScript, so this is just an\n        // approximation.\n        return originalPromiseThen.call(promise, onFulfilled, onRejected);\n    }\n    // Bluebird logs a warning when a promise is created within a fulfillment handler, but then isn't returned\n    // from that handler. To prevent this, return null instead of void from all handlers.\n    // http://bluebirdjs.com/docs/warning-explanations.html#warning-a-promise-was-created-in-a-handler-but-was-not-returned-from-it\n    function uponPromise(promise, onFulfilled, onRejected) {\n        PerformPromiseThen(PerformPromiseThen(promise, onFulfilled, onRejected), undefined, rethrowAssertionErrorRejection);\n    }\n    function uponFulfillment(promise, onFulfilled) {\n        uponPromise(promise, onFulfilled);\n    }\n    function uponRejection(promise, onRejected) {\n        uponPromise(promise, undefined, onRejected);\n    }\n    function transformPromiseWith(promise, fulfillmentHandler, rejectionHandler) {\n        return PerformPromiseThen(promise, fulfillmentHandler, rejectionHandler);\n    }\n    function setPromiseIsHandledToTrue(promise) {\n        PerformPromiseThen(promise, undefined, rethrowAssertionErrorRejection);\n    }\n    var _queueMicrotask = function (callback) {\n        if (typeof queueMicrotask === 'function') {\n            _queueMicrotask = queueMicrotask;\n        }\n        else {\n            var resolvedPromise_1 = promiseResolvedWith(undefined);\n            _queueMicrotask = function (cb) { return PerformPromiseThen(resolvedPromise_1, cb); };\n        }\n        return _queueMicrotask(callback);\n    };\n    function reflectCall(F, V, args) {\n        if (typeof F !== 'function') {\n            throw new TypeError('Argument is not a function');\n        }\n        return Function.prototype.apply.call(F, V, args);\n    }\n    function promiseCall(F, V, args) {\n        try {\n            return promiseResolvedWith(reflectCall(F, V, args));\n        }\n        catch (value) {\n            return promiseRejectedWith(value);\n        }\n    }\n\n    // Original from Chromium\n    // https://chromium.googlesource.com/chromium/src/+/0aee4434a4dba42a42abaea9bfbc0cd196a63bc1/third_party/blink/renderer/core/streams/SimpleQueue.js\n    var QUEUE_MAX_ARRAY_SIZE = 16384;\n    /**\n     * Simple queue structure.\n     *\n     * Avoids scalability issues with using a packed array directly by using\n     * multiple arrays in a linked list and keeping the array size bounded.\n     */\n    var SimpleQueue = /** @class */ (function () {\n        function SimpleQueue() {\n            this._cursor = 0;\n            this._size = 0;\n            // _front and _back are always defined.\n            this._front = {\n                _elements: [],\n                _next: undefined\n            };\n            this._back = this._front;\n            // The cursor is used to avoid calling Array.shift().\n            // It contains the index of the front element of the array inside the\n            // front-most node. It is always in the range [0, QUEUE_MAX_ARRAY_SIZE).\n            this._cursor = 0;\n            // When there is only one node, size === elements.length - cursor.\n            this._size = 0;\n        }\n        Object.defineProperty(SimpleQueue.prototype, \"length\", {\n            get: function () {\n                return this._size;\n            },\n            enumerable: false,\n            configurable: true\n        });\n        // For exception safety, this method is structured in order:\n        // 1. Read state\n        // 2. Calculate required state mutations\n        // 3. Perform state mutations\n        SimpleQueue.prototype.push = function (element) {\n            var oldBack = this._back;\n            var newBack = oldBack;\n            if (oldBack._elements.length === QUEUE_MAX_ARRAY_SIZE - 1) {\n                newBack = {\n                    _elements: [],\n                    _next: undefined\n                };\n            }\n            // push() is the mutation most likely to throw an exception, so it\n            // goes first.\n            oldBack._elements.push(element);\n            if (newBack !== oldBack) {\n                this._back = newBack;\n                oldBack._next = newBack;\n            }\n            ++this._size;\n        };\n        // Like push(), shift() follows the read -> calculate -> mutate pattern for\n        // exception safety.\n        SimpleQueue.prototype.shift = function () { // must not be called on an empty queue\n            var oldFront = this._front;\n            var newFront = oldFront;\n            var oldCursor = this._cursor;\n            var newCursor = oldCursor + 1;\n            var elements = oldFront._elements;\n            var element = elements[oldCursor];\n            if (newCursor === QUEUE_MAX_ARRAY_SIZE) {\n                newFront = oldFront._next;\n                newCursor = 0;\n            }\n            // No mutations before this point.\n            --this._size;\n            this._cursor = newCursor;\n            if (oldFront !== newFront) {\n                this._front = newFront;\n            }\n            // Permit shifted element to be garbage collected.\n            elements[oldCursor] = undefined;\n            return element;\n        };\n        // The tricky thing about forEach() is that it can be called\n        // re-entrantly. The queue may be mutated inside the callback. It is easy to\n        // see that push() within the callback has no negative effects since the end\n        // of the queue is checked for on every iteration. If shift() is called\n        // repeatedly within the callback then the next iteration may return an\n        // element that has been removed. In this case the callback will be called\n        // with undefined values until we either \"catch up\" with elements that still\n        // exist or reach the back of the queue.\n        SimpleQueue.prototype.forEach = function (callback) {\n            var i = this._cursor;\n            var node = this._front;\n            var elements = node._elements;\n            while (i !== elements.length || node._next !== undefined) {\n                if (i === elements.length) {\n                    node = node._next;\n                    elements = node._elements;\n                    i = 0;\n                    if (elements.length === 0) {\n                        break;\n                    }\n                }\n                callback(elements[i]);\n                ++i;\n            }\n        };\n        // Return the element that would be returned if shift() was called now,\n        // without modifying the queue.\n        SimpleQueue.prototype.peek = function () { // must not be called on an empty queue\n            var front = this._front;\n            var cursor = this._cursor;\n            return front._elements[cursor];\n        };\n        return SimpleQueue;\n    }());\n\n    var AbortSteps = SymbolPolyfill('[[AbortSteps]]');\n    var ErrorSteps = SymbolPolyfill('[[ErrorSteps]]');\n    var CancelSteps = SymbolPolyfill('[[CancelSteps]]');\n    var PullSteps = SymbolPolyfill('[[PullSteps]]');\n    var ReleaseSteps = SymbolPolyfill('[[ReleaseSteps]]');\n\n    function ReadableStreamReaderGenericInitialize(reader, stream) {\n        reader._ownerReadableStream = stream;\n        stream._reader = reader;\n        if (stream._state === 'readable') {\n            defaultReaderClosedPromiseInitialize(reader);\n        }\n        else if (stream._state === 'closed') {\n            defaultReaderClosedPromiseInitializeAsResolved(reader);\n        }\n        else {\n            defaultReaderClosedPromiseInitializeAsRejected(reader, stream._storedError);\n        }\n    }\n    // A client of ReadableStreamDefaultReader and ReadableStreamBYOBReader may use these functions directly to bypass state\n    // check.\n    function ReadableStreamReaderGenericCancel(reader, reason) {\n        var stream = reader._ownerReadableStream;\n        return ReadableStreamCancel(stream, reason);\n    }\n    function ReadableStreamReaderGenericRelease(reader) {\n        var stream = reader._ownerReadableStream;\n        if (stream._state === 'readable') {\n            defaultReaderClosedPromiseReject(reader, new TypeError(\"Reader was released and can no longer be used to monitor the stream's closedness\"));\n        }\n        else {\n            defaultReaderClosedPromiseResetToRejected(reader, new TypeError(\"Reader was released and can no longer be used to monitor the stream's closedness\"));\n        }\n        stream._readableStreamController[ReleaseSteps]();\n        stream._reader = undefined;\n        reader._ownerReadableStream = undefined;\n    }\n    // Helper functions for the readers.\n    function readerLockException(name) {\n        return new TypeError('Cannot ' + name + ' a stream using a released reader');\n    }\n    // Helper functions for the ReadableStreamDefaultReader.\n    function defaultReaderClosedPromiseInitialize(reader) {\n        reader._closedPromise = newPromise(function (resolve, reject) {\n            reader._closedPromise_resolve = resolve;\n            reader._closedPromise_reject = reject;\n        });\n    }\n    function defaultReaderClosedPromiseInitializeAsRejected(reader, reason) {\n        defaultReaderClosedPromiseInitialize(reader);\n        defaultReaderClosedPromiseReject(reader, reason);\n    }\n    function defaultReaderClosedPromiseInitializeAsResolved(reader) {\n        defaultReaderClosedPromiseInitialize(reader);\n        defaultReaderClosedPromiseResolve(reader);\n    }\n    function defaultReaderClosedPromiseReject(reader, reason) {\n        if (reader._closedPromise_reject === undefined) {\n            return;\n        }\n        setPromiseIsHandledToTrue(reader._closedPromise);\n        reader._closedPromise_reject(reason);\n        reader._closedPromise_resolve = undefined;\n        reader._closedPromise_reject = undefined;\n    }\n    function defaultReaderClosedPromiseResetToRejected(reader, reason) {\n        defaultReaderClosedPromiseInitializeAsRejected(reader, reason);\n    }\n    function defaultReaderClosedPromiseResolve(reader) {\n        if (reader._closedPromise_resolve === undefined) {\n            return;\n        }\n        reader._closedPromise_resolve(undefined);\n        reader._closedPromise_resolve = undefined;\n        reader._closedPromise_reject = undefined;\n    }\n\n    /// <reference lib=\"es2015.core\" />\n    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isFinite#Polyfill\n    var NumberIsFinite = Number.isFinite || function (x) {\n        return typeof x === 'number' && isFinite(x);\n    };\n\n    /// <reference lib=\"es2015.core\" />\n    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc#Polyfill\n    var MathTrunc = Math.trunc || function (v) {\n        return v < 0 ? Math.ceil(v) : Math.floor(v);\n    };\n\n    // https://heycam.github.io/webidl/#idl-dictionaries\n    function isDictionary(x) {\n        return typeof x === 'object' || typeof x === 'function';\n    }\n    function assertDictionary(obj, context) {\n        if (obj !== undefined && !isDictionary(obj)) {\n            throw new TypeError(\"\".concat(context, \" is not an object.\"));\n        }\n    }\n    // https://heycam.github.io/webidl/#idl-callback-functions\n    function assertFunction(x, context) {\n        if (typeof x !== 'function') {\n            throw new TypeError(\"\".concat(context, \" is not a function.\"));\n        }\n    }\n    // https://heycam.github.io/webidl/#idl-object\n    function isObject(x) {\n        return (typeof x === 'object' && x !== null) || typeof x === 'function';\n    }\n    function assertObject(x, context) {\n        if (!isObject(x)) {\n            throw new TypeError(\"\".concat(context, \" is not an object.\"));\n        }\n    }\n    function assertRequiredArgument(x, position, context) {\n        if (x === undefined) {\n            throw new TypeError(\"Parameter \".concat(position, \" is required in '\").concat(context, \"'.\"));\n        }\n    }\n    function assertRequiredField(x, field, context) {\n        if (x === undefined) {\n            throw new TypeError(\"\".concat(field, \" is required in '\").concat(context, \"'.\"));\n        }\n    }\n    // https://heycam.github.io/webidl/#idl-unrestricted-double\n    function convertUnrestrictedDouble(value) {\n        return Number(value);\n    }\n    function censorNegativeZero(x) {\n        return x === 0 ? 0 : x;\n    }\n    function integerPart(x) {\n        return censorNegativeZero(MathTrunc(x));\n    }\n    // https://heycam.github.io/webidl/#idl-unsigned-long-long\n    function convertUnsignedLongLongWithEnforceRange(value, context) {\n        var lowerBound = 0;\n        var upperBound = Number.MAX_SAFE_INTEGER;\n        var x = Number(value);\n        x = censorNegativeZero(x);\n        if (!NumberIsFinite(x)) {\n            throw new TypeError(\"\".concat(context, \" is not a finite number\"));\n        }\n        x = integerPart(x);\n        if (x < lowerBound || x > upperBound) {\n            throw new TypeError(\"\".concat(context, \" is outside the accepted range of \").concat(lowerBound, \" to \").concat(upperBound, \", inclusive\"));\n        }\n        if (!NumberIsFinite(x) || x === 0) {\n            return 0;\n        }\n        // TODO Use BigInt if supported?\n        // let xBigInt = BigInt(integerPart(x));\n        // xBigInt = BigInt.asUintN(64, xBigInt);\n        // return Number(xBigInt);\n        return x;\n    }\n\n    function assertReadableStream(x, context) {\n        if (!IsReadableStream(x)) {\n            throw new TypeError(\"\".concat(context, \" is not a ReadableStream.\"));\n        }\n    }\n\n    // Abstract operations for the ReadableStream.\n    function AcquireReadableStreamDefaultReader(stream) {\n        return new ReadableStreamDefaultReader(stream);\n    }\n    // ReadableStream API exposed for controllers.\n    function ReadableStreamAddReadRequest(stream, readRequest) {\n        stream._reader._readRequests.push(readRequest);\n    }\n    function ReadableStreamFulfillReadRequest(stream, chunk, done) {\n        var reader = stream._reader;\n        var readRequest = reader._readRequests.shift();\n        if (done) {\n            readRequest._closeSteps();\n        }\n        else {\n            readRequest._chunkSteps(chunk);\n        }\n    }\n    function ReadableStreamGetNumReadRequests(stream) {\n        return stream._reader._readRequests.length;\n    }\n    function ReadableStreamHasDefaultReader(stream) {\n        var reader = stream._reader;\n        if (reader === undefined) {\n            return false;\n        }\n        if (!IsReadableStreamDefaultReader(reader)) {\n            return false;\n        }\n        return true;\n    }\n    /**\n     * A default reader vended by a {@link ReadableStream}.\n     *\n     * @public\n     */\n    var ReadableStreamDefaultReader = /** @class */ (function () {\n        function ReadableStreamDefaultReader(stream) {\n            assertRequiredArgument(stream, 1, 'ReadableStreamDefaultReader');\n            assertReadableStream(stream, 'First parameter');\n            if (IsReadableStreamLocked(stream)) {\n                throw new TypeError('This stream has already been locked for exclusive reading by another reader');\n            }\n            ReadableStreamReaderGenericInitialize(this, stream);\n            this._readRequests = new SimpleQueue();\n        }\n        Object.defineProperty(ReadableStreamDefaultReader.prototype, \"closed\", {\n            /**\n             * Returns a promise that will be fulfilled when the stream becomes closed,\n             * or rejected if the stream ever errors or the reader's lock is released before the stream finishes closing.\n             */\n            get: function () {\n                if (!IsReadableStreamDefaultReader(this)) {\n                    return promiseRejectedWith(defaultReaderBrandCheckException('closed'));\n                }\n                return this._closedPromise;\n            },\n            enumerable: false,\n            configurable: true\n        });\n        /**\n         * If the reader is active, behaves the same as {@link ReadableStream.cancel | stream.cancel(reason)}.\n         */\n        ReadableStreamDefaultReader.prototype.cancel = function (reason) {\n            if (reason === void 0) { reason = undefined; }\n            if (!IsReadableStreamDefaultReader(this)) {\n                return promiseRejectedWith(defaultReaderBrandCheckException('cancel'));\n            }\n            if (this._ownerReadableStream === undefined) {\n                return promiseRejectedWith(readerLockException('cancel'));\n            }\n            return ReadableStreamReaderGenericCancel(this, reason);\n        };\n        /**\n         * Returns a promise that allows access to the next chunk from the stream's internal queue, if available.\n         *\n         * If reading a chunk causes the queue to become empty, more data will be pulled from the underlying source.\n         */\n        ReadableStreamDefaultReader.prototype.read = function () {\n            if (!IsReadableStreamDefaultReader(this)) {\n                return promiseRejectedWith(defaultReaderBrandCheckException('read'));\n            }\n            if (this._ownerReadableStream === undefined) {\n                return promiseRejectedWith(readerLockException('read from'));\n            }\n            var resolvePromise;\n            var rejectPromise;\n            var promise = newPromise(function (resolve, reject) {\n                resolvePromise = resolve;\n                rejectPromise = reject;\n            });\n            var readRequest = {\n                _chunkSteps: function (chunk) { return resolvePromise({ value: chunk, done: false }); },\n                _closeSteps: function () { return resolvePromise({ value: undefined, done: true }); },\n                _errorSteps: function (e) { return rejectPromise(e); }\n            };\n            ReadableStreamDefaultReaderRead(this, readRequest);\n            return promise;\n        };\n        /**\n         * Releases the reader's lock on the corresponding stream. After the lock is released, the reader is no longer active.\n         * If the associated stream is errored when the lock is released, the reader will appear errored in the same way\n         * from now on; otherwise, the reader will appear closed.\n         *\n         * A reader's lock cannot be released while it still has a pending read request, i.e., if a promise returned by\n         * the reader's {@link ReadableStreamDefaultReader.read | read()} method has not yet been settled. Attempting to\n         * do so will throw a `TypeError` and leave the reader locked to the stream.\n         */\n        ReadableStreamDefaultReader.prototype.releaseLock = function () {\n            if (!IsReadableStreamDefaultReader(this)) {\n                throw defaultReaderBrandCheckException('releaseLock');\n            }\n            if (this._ownerReadableStream === undefined) {\n                return;\n            }\n            ReadableStreamDefaultReaderRelease(this);\n        };\n        return ReadableStreamDefaultReader;\n    }());\n    Object.defineProperties(ReadableStreamDefaultReader.prototype, {\n        cancel: { enumerable: true },\n        read: { enumerable: true },\n        releaseLock: { enumerable: true },\n        closed: { enumerable: true }\n    });\n    setFunctionName(ReadableStreamDefaultReader.prototype.cancel, 'cancel');\n    setFunctionName(ReadableStreamDefaultReader.prototype.read, 'read');\n    setFunctionName(ReadableStreamDefaultReader.prototype.releaseLock, 'releaseLock');\n    if (typeof SymbolPolyfill.toStringTag === 'symbol') {\n        Object.defineProperty(ReadableStreamDefaultReader.prototype, SymbolPolyfill.toStringTag, {\n            value: 'ReadableStreamDefaultReader',\n            configurable: true\n        });\n    }\n    // Abstract operations for the readers.\n    function IsReadableStreamDefaultReader(x) {\n        if (!typeIsObject(x)) {\n            return false;\n        }\n        if (!Object.prototype.hasOwnProperty.call(x, '_readRequests')) {\n            return false;\n        }\n        return x instanceof ReadableStreamDefaultReader;\n    }\n    function ReadableStreamDefaultReaderRead(reader, readRequest) {\n        var stream = reader._ownerReadableStream;\n        stream._disturbed = true;\n        if (stream._state === 'closed') {\n            readRequest._closeSteps();\n        }\n        else if (stream._state === 'errored') {\n            readRequest._errorSteps(stream._storedError);\n        }\n        else {\n            stream._readableStreamController[PullSteps](readRequest);\n        }\n    }\n    function ReadableStreamDefaultReaderRelease(reader) {\n        ReadableStreamReaderGenericRelease(reader);\n        var e = new TypeError('Reader was released');\n        ReadableStreamDefaultReaderErrorReadRequests(reader, e);\n    }\n    function ReadableStreamDefaultReaderErrorReadRequests(reader, e) {\n        var readRequests = reader._readRequests;\n        reader._readRequests = new SimpleQueue();\n        readRequests.forEach(function (readRequest) {\n            readRequest._errorSteps(e);\n        });\n    }\n    // Helper functions for the ReadableStreamDefaultReader.\n    function defaultReaderBrandCheckException(name) {\n        return new TypeError(\"ReadableStreamDefaultReader.prototype.\".concat(name, \" can only be used on a ReadableStreamDefaultReader\"));\n    }\n\n    /// <reference lib=\"es2018.asynciterable\" />\n    var _a;\n    var AsyncIteratorPrototype;\n    if (typeof SymbolPolyfill.asyncIterator === 'symbol') {\n        // We're running inside a ES2018+ environment, but we're compiling to an older syntax.\n        // We cannot access %AsyncIteratorPrototype% without non-ES2018 syntax, but we can re-create it.\n        AsyncIteratorPrototype = (_a = {},\n            // 25.1.3.1 %AsyncIteratorPrototype% [ @@asyncIterator ] ( )\n            // https://tc39.github.io/ecma262/#sec-asynciteratorprototype-asynciterator\n            _a[SymbolPolyfill.asyncIterator] = function () {\n                return this;\n            },\n            _a);\n        Object.defineProperty(AsyncIteratorPrototype, SymbolPolyfill.asyncIterator, { enumerable: false });\n    }\n\n    /// <reference lib=\"es2018.asynciterable\" />\n    var ReadableStreamAsyncIteratorImpl = /** @class */ (function () {\n        function ReadableStreamAsyncIteratorImpl(reader, preventCancel) {\n            this._ongoingPromise = undefined;\n            this._isFinished = false;\n            this._reader = reader;\n            this._preventCancel = preventCancel;\n        }\n        ReadableStreamAsyncIteratorImpl.prototype.next = function () {\n            var _this = this;\n            var nextSteps = function () { return _this._nextSteps(); };\n            this._ongoingPromise = this._ongoingPromise ?\n                transformPromiseWith(this._ongoingPromise, nextSteps, nextSteps) :\n                nextSteps();\n            return this._ongoingPromise;\n        };\n        ReadableStreamAsyncIteratorImpl.prototype.return = function (value) {\n            var _this = this;\n            var returnSteps = function () { return _this._returnSteps(value); };\n            return this._ongoingPromise ?\n                transformPromiseWith(this._ongoingPromise, returnSteps, returnSteps) :\n                returnSteps();\n        };\n        ReadableStreamAsyncIteratorImpl.prototype._nextSteps = function () {\n            var _this = this;\n            if (this._isFinished) {\n                return Promise.resolve({ value: undefined, done: true });\n            }\n            var reader = this._reader;\n            var resolvePromise;\n            var rejectPromise;\n            var promise = newPromise(function (resolve, reject) {\n                resolvePromise = resolve;\n                rejectPromise = reject;\n            });\n            var readRequest = {\n                _chunkSteps: function (chunk) {\n                    _this._ongoingPromise = undefined;\n                    // This needs to be delayed by one microtask, otherwise we stop pulling too early which breaks a test.\n                    // FIXME Is this a bug in the specification, or in the test?\n                    _queueMicrotask(function () { return resolvePromise({ value: chunk, done: false }); });\n                },\n                _closeSteps: function () {\n                    _this._ongoingPromise = undefined;\n                    _this._isFinished = true;\n                    ReadableStreamReaderGenericRelease(reader);\n                    resolvePromise({ value: undefined, done: true });\n                },\n                _errorSteps: function (reason) {\n                    _this._ongoingPromise = undefined;\n                    _this._isFinished = true;\n                    ReadableStreamReaderGenericRelease(reader);\n                    rejectPromise(reason);\n                }\n            };\n            ReadableStreamDefaultReaderRead(reader, readRequest);\n            return promise;\n        };\n        ReadableStreamAsyncIteratorImpl.prototype._returnSteps = function (value) {\n            if (this._isFinished) {\n                return Promise.resolve({ value: value, done: true });\n            }\n            this._isFinished = true;\n            var reader = this._reader;\n            if (!this._preventCancel) {\n                var result = ReadableStreamReaderGenericCancel(reader, value);\n                ReadableStreamReaderGenericRelease(reader);\n                return transformPromiseWith(result, function () { return ({ value: value, done: true }); });\n            }\n            ReadableStreamReaderGenericRelease(reader);\n            return promiseResolvedWith({ value: value, done: true });\n        };\n        return ReadableStreamAsyncIteratorImpl;\n    }());\n    var ReadableStreamAsyncIteratorPrototype = {\n        next: function () {\n            if (!IsReadableStreamAsyncIterator(this)) {\n                return promiseRejectedWith(streamAsyncIteratorBrandCheckException('next'));\n            }\n            return this._asyncIteratorImpl.next();\n        },\n        return: function (value) {\n            if (!IsReadableStreamAsyncIterator(this)) {\n                return promiseRejectedWith(streamAsyncIteratorBrandCheckException('return'));\n            }\n            return this._asyncIteratorImpl.return(value);\n        }\n    };\n    if (AsyncIteratorPrototype !== undefined) {\n        Object.setPrototypeOf(ReadableStreamAsyncIteratorPrototype, AsyncIteratorPrototype);\n    }\n    // Abstract operations for the ReadableStream.\n    function AcquireReadableStreamAsyncIterator(stream, preventCancel) {\n        var reader = AcquireReadableStreamDefaultReader(stream);\n        var impl = new ReadableStreamAsyncIteratorImpl(reader, preventCancel);\n        var iterator = Object.create(ReadableStreamAsyncIteratorPrototype);\n        iterator._asyncIteratorImpl = impl;\n        return iterator;\n    }\n    function IsReadableStreamAsyncIterator(x) {\n        if (!typeIsObject(x)) {\n            return false;\n        }\n        if (!Object.prototype.hasOwnProperty.call(x, '_asyncIteratorImpl')) {\n            return false;\n        }\n        try {\n            // noinspection SuspiciousTypeOfGuard\n            return x._asyncIteratorImpl instanceof\n                ReadableStreamAsyncIteratorImpl;\n        }\n        catch (_a) {\n            return false;\n        }\n    }\n    // Helper functions for the ReadableStream.\n    function streamAsyncIteratorBrandCheckException(name) {\n        return new TypeError(\"ReadableStreamAsyncIterator.\".concat(name, \" can only be used on a ReadableSteamAsyncIterator\"));\n    }\n\n    /// <reference lib=\"es2015.core\" />\n    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN#Polyfill\n    var NumberIsNaN = Number.isNaN || function (x) {\n        // eslint-disable-next-line no-self-compare\n        return x !== x;\n    };\n\n    function CreateArrayFromList(elements) {\n        // We use arrays to represent lists, so this is basically a no-op.\n        // Do a slice though just in case we happen to depend on the unique-ness.\n        return elements.slice();\n    }\n    function CopyDataBlockBytes(dest, destOffset, src, srcOffset, n) {\n        new Uint8Array(dest).set(new Uint8Array(src, srcOffset, n), destOffset);\n    }\n    var TransferArrayBuffer = function (O) {\n        if (typeof O.transfer === 'function') {\n            TransferArrayBuffer = function (buffer) { return buffer.transfer(); };\n        }\n        else if (typeof structuredClone === 'function') {\n            TransferArrayBuffer = function (buffer) { return structuredClone(buffer, { transfer: [buffer] }); };\n        }\n        else {\n            // Not implemented correctly\n            TransferArrayBuffer = function (buffer) { return buffer; };\n        }\n        return TransferArrayBuffer(O);\n    };\n    var IsDetachedBuffer = function (O) {\n        if (typeof O.detached === 'boolean') {\n            IsDetachedBuffer = function (buffer) { return buffer.detached; };\n        }\n        else {\n            // Not implemented correctly\n            IsDetachedBuffer = function (buffer) { return buffer.byteLength === 0; };\n        }\n        return IsDetachedBuffer(O);\n    };\n    function ArrayBufferSlice(buffer, begin, end) {\n        // ArrayBuffer.prototype.slice is not available on IE10\n        // https://www.caniuse.com/mdn-javascript_builtins_arraybuffer_slice\n        if (buffer.slice) {\n            return buffer.slice(begin, end);\n        }\n        var length = end - begin;\n        var slice = new ArrayBuffer(length);\n        CopyDataBlockBytes(slice, 0, buffer, begin, length);\n        return slice;\n    }\n    function GetMethod(receiver, prop) {\n        var func = receiver[prop];\n        if (func === undefined || func === null) {\n            return undefined;\n        }\n        if (typeof func !== 'function') {\n            throw new TypeError(\"\".concat(String(prop), \" is not a function\"));\n        }\n        return func;\n    }\n    function CreateAsyncFromSyncIterator(syncIteratorRecord) {\n        // Instead of re-implementing CreateAsyncFromSyncIterator and %AsyncFromSyncIteratorPrototype%,\n        // we use yield* inside an async generator function to achieve the same result.\n        var _a;\n        // Wrap the sync iterator inside a sync iterable, so we can use it with yield*.\n        var syncIterable = (_a = {},\n            _a[SymbolPolyfill.iterator] = function () { return syncIteratorRecord.iterator; },\n            _a);\n        // Create an async generator function and immediately invoke it.\n        var asyncIterator = (function () {\n            return __asyncGenerator(this, arguments, function () {\n                return __generator(this, function (_a) {\n                    switch (_a.label) {\n                        case 0: return [5 /*yield**/, __values(__asyncDelegator(__asyncValues(syncIterable)))];\n                        case 1: return [4 /*yield*/, __await.apply(void 0, [_a.sent()])];\n                        case 2: return [4 /*yield*/, __await.apply(void 0, [_a.sent()])];\n                        case 3: return [2 /*return*/, _a.sent()];\n                    }\n                });\n            });\n        }());\n        // Return as an async iterator record.\n        var nextMethod = asyncIterator.next;\n        return { iterator: asyncIterator, nextMethod: nextMethod, done: false };\n    }\n    function GetIterator(obj, hint, method) {\n        if (hint === void 0) { hint = 'sync'; }\n        if (method === undefined) {\n            if (hint === 'async') {\n                method = GetMethod(obj, SymbolPolyfill.asyncIterator);\n                if (method === undefined) {\n                    var syncMethod = GetMethod(obj, SymbolPolyfill.iterator);\n                    var syncIteratorRecord = GetIterator(obj, 'sync', syncMethod);\n                    return CreateAsyncFromSyncIterator(syncIteratorRecord);\n                }\n            }\n            else {\n                method = GetMethod(obj, SymbolPolyfill.iterator);\n            }\n        }\n        if (method === undefined) {\n            throw new TypeError('The object is not iterable');\n        }\n        var iterator = reflectCall(method, obj, []);\n        if (!typeIsObject(iterator)) {\n            throw new TypeError('The iterator method must return an object');\n        }\n        var nextMethod = iterator.next;\n        return { iterator: iterator, nextMethod: nextMethod, done: false };\n    }\n    function IteratorNext(iteratorRecord) {\n        var result = reflectCall(iteratorRecord.nextMethod, iteratorRecord.iterator, []);\n        if (!typeIsObject(result)) {\n            throw new TypeError('The iterator.next() method must return an object');\n        }\n        return result;\n    }\n    function IteratorComplete(iterResult) {\n        return Boolean(iterResult.done);\n    }\n    function IteratorValue(iterResult) {\n        return iterResult.value;\n    }\n\n    function IsNonNegativeNumber(v) {\n        if (typeof v !== 'number') {\n            return false;\n        }\n        if (NumberIsNaN(v)) {\n            return false;\n        }\n        if (v < 0) {\n            return false;\n        }\n        return true;\n    }\n    function CloneAsUint8Array(O) {\n        var buffer = ArrayBufferSlice(O.buffer, O.byteOffset, O.byteOffset + O.byteLength);\n        return new Uint8Array(buffer);\n    }\n\n    function DequeueValue(container) {\n        var pair = container._queue.shift();\n        container._queueTotalSize -= pair.size;\n        if (container._queueTotalSize < 0) {\n            container._queueTotalSize = 0;\n        }\n        return pair.value;\n    }\n    function EnqueueValueWithSize(container, value, size) {\n        if (!IsNonNegativeNumber(size) || size === Infinity) {\n            throw new RangeError('Size must be a finite, non-NaN, non-negative number.');\n        }\n        container._queue.push({ value: value, size: size });\n        container._queueTotalSize += size;\n    }\n    function PeekQueueValue(container) {\n        var pair = container._queue.peek();\n        return pair.value;\n    }\n    function ResetQueue(container) {\n        container._queue = new SimpleQueue();\n        container._queueTotalSize = 0;\n    }\n\n    function isDataViewConstructor(ctor) {\n        return ctor === DataView;\n    }\n    function isDataView(view) {\n        return isDataViewConstructor(view.constructor);\n    }\n    function arrayBufferViewElementSize(ctor) {\n        if (isDataViewConstructor(ctor)) {\n            return 1;\n        }\n        return ctor.BYTES_PER_ELEMENT;\n    }\n\n    /**\n     * A pull-into request in a {@link ReadableByteStreamController}.\n     *\n     * @public\n     */\n    var ReadableStreamBYOBRequest = /** @class */ (function () {\n        function ReadableStreamBYOBRequest() {\n            throw new TypeError('Illegal constructor');\n        }\n        Object.defineProperty(ReadableStreamBYOBRequest.prototype, \"view\", {\n            /**\n             * Returns the view for writing in to, or `null` if the BYOB request has already been responded to.\n             */\n            get: function () {\n                if (!IsReadableStreamBYOBRequest(this)) {\n                    throw byobRequestBrandCheckException('view');\n                }\n                return this._view;\n            },\n            enumerable: false,\n            configurable: true\n        });\n        ReadableStreamBYOBRequest.prototype.respond = function (bytesWritten) {\n            if (!IsReadableStreamBYOBRequest(this)) {\n                throw byobRequestBrandCheckException('respond');\n            }\n            assertRequiredArgument(bytesWritten, 1, 'respond');\n            bytesWritten = convertUnsignedLongLongWithEnforceRange(bytesWritten, 'First parameter');\n            if (this._associatedReadableByteStreamController === undefined) {\n                throw new TypeError('This BYOB request has been invalidated');\n            }\n            if (IsDetachedBuffer(this._view.buffer)) {\n                throw new TypeError(\"The BYOB request's buffer has been detached and so cannot be used as a response\");\n            }\n            ReadableByteStreamControllerRespond(this._associatedReadableByteStreamController, bytesWritten);\n        };\n        ReadableStreamBYOBRequest.prototype.respondWithNewView = function (view) {\n            if (!IsReadableStreamBYOBRequest(this)) {\n                throw byobRequestBrandCheckException('respondWithNewView');\n            }\n            assertRequiredArgument(view, 1, 'respondWithNewView');\n            if (!ArrayBuffer.isView(view)) {\n                throw new TypeError('You can only respond with array buffer views');\n            }\n            if (this._associatedReadableByteStreamController === undefined) {\n                throw new TypeError('This BYOB request has been invalidated');\n            }\n            if (IsDetachedBuffer(view.buffer)) {\n                throw new TypeError('The given view\\'s buffer has been detached and so cannot be used as a response');\n            }\n            ReadableByteStreamControllerRespondWithNewView(this._associatedReadableByteStreamController, view);\n        };\n        return ReadableStreamBYOBRequest;\n    }());\n    Object.defineProperties(ReadableStreamBYOBRequest.prototype, {\n        respond: { enumerable: true },\n        respondWithNewView: { enumerable: true },\n        view: { enumerable: true }\n    });\n    setFunctionName(ReadableStreamBYOBRequest.prototype.respond, 'respond');\n    setFunctionName(ReadableStreamBYOBRequest.prototype.respondWithNewView, 'respondWithNewView');\n    if (typeof SymbolPolyfill.toStringTag === 'symbol') {\n        Object.defineProperty(ReadableStreamBYOBRequest.prototype, SymbolPolyfill.toStringTag, {\n            value: 'ReadableStreamBYOBRequest',\n            configurable: true\n        });\n    }\n    /**\n     * Allows control of a {@link ReadableStream | readable byte stream}'s state and internal queue.\n     *\n     * @public\n     */\n    var ReadableByteStreamController = /** @class */ (function () {\n        function ReadableByteStreamController() {\n            throw new TypeError('Illegal constructor');\n        }\n        Object.defineProperty(ReadableByteStreamController.prototype, \"byobRequest\", {\n            /**\n             * Returns the current BYOB pull request, or `null` if there isn't one.\n             */\n            get: function () {\n                if (!IsReadableByteStreamController(this)) {\n                    throw byteStreamControllerBrandCheckException('byobRequest');\n                }\n                return ReadableByteStreamControllerGetBYOBRequest(this);\n            },\n            enumerable: false,\n            configurable: true\n        });\n        Object.defineProperty(ReadableByteStreamController.prototype, \"desiredSize\", {\n            /**\n             * Returns the desired size to fill the controlled stream's internal queue. It can be negative, if the queue is\n             * over-full. An underlying byte source ought to use this information to determine when and how to apply backpressure.\n             */\n            get: function () {\n                if (!IsReadableByteStreamController(this)) {\n                    throw byteStreamControllerBrandCheckException('desiredSize');\n                }\n                return ReadableByteStreamControllerGetDesiredSize(this);\n            },\n            enumerable: false,\n            configurable: true\n        });\n        /**\n         * Closes the controlled readable stream. Consumers will still be able to read any previously-enqueued chunks from\n         * the stream, but once those are read, the stream will become closed.\n         */\n        ReadableByteStreamController.prototype.close = function () {\n            if (!IsReadableByteStreamController(this)) {\n                throw byteStreamControllerBrandCheckException('close');\n            }\n            if (this._closeRequested) {\n                throw new TypeError('The stream has already been closed; do not close it again!');\n            }\n            var state = this._controlledReadableByteStream._state;\n            if (state !== 'readable') {\n                throw new TypeError(\"The stream (in \".concat(state, \" state) is not in the readable state and cannot be closed\"));\n            }\n            ReadableByteStreamControllerClose(this);\n        };\n        ReadableByteStreamController.prototype.enqueue = function (chunk) {\n            if (!IsReadableByteStreamController(this)) {\n                throw byteStreamControllerBrandCheckException('enqueue');\n            }\n            assertRequiredArgument(chunk, 1, 'enqueue');\n            if (!ArrayBuffer.isView(chunk)) {\n                throw new TypeError('chunk must be an array buffer view');\n            }\n            if (chunk.byteLength === 0) {\n                throw new TypeError('chunk must have non-zero byteLength');\n            }\n            if (chunk.buffer.byteLength === 0) {\n                throw new TypeError(\"chunk's buffer must have non-zero byteLength\");\n            }\n            if (this._closeRequested) {\n                throw new TypeError('stream is closed or draining');\n            }\n            var state = this._controlledReadableByteStream._state;\n            if (state !== 'readable') {\n                throw new TypeError(\"The stream (in \".concat(state, \" state) is not in the readable state and cannot be enqueued to\"));\n            }\n            ReadableByteStreamControllerEnqueue(this, chunk);\n        };\n        /**\n         * Errors the controlled readable stream, making all future interactions with it fail with the given error `e`.\n         */\n        ReadableByteStreamController.prototype.error = function (e) {\n            if (e === void 0) { e = undefined; }\n            if (!IsReadableByteStreamController(this)) {\n                throw byteStreamControllerBrandCheckException('error');\n            }\n            ReadableByteStreamControllerError(this, e);\n        };\n        /** @internal */\n        ReadableByteStreamController.prototype[CancelSteps] = function (reason) {\n            ReadableByteStreamControllerClearPendingPullIntos(this);\n            ResetQueue(this);\n            var result = this._cancelAlgorithm(reason);\n            ReadableByteStreamControllerClearAlgorithms(this);\n            return result;\n        };\n        /** @internal */\n        ReadableByteStreamController.prototype[PullSteps] = function (readRequest) {\n            var stream = this._controlledReadableByteStream;\n            if (this._queueTotalSize > 0) {\n                ReadableByteStreamControllerFillReadRequestFromQueue(this, readRequest);\n                return;\n            }\n            var autoAllocateChunkSize = this._autoAllocateChunkSize;\n            if (autoAllocateChunkSize !== undefined) {\n                var buffer = void 0;\n                try {\n                    buffer = new ArrayBuffer(autoAllocateChunkSize);\n                }\n                catch (bufferE) {\n                    readRequest._errorSteps(bufferE);\n                    return;\n                }\n                var pullIntoDescriptor = {\n                    buffer: buffer,\n                    bufferByteLength: autoAllocateChunkSize,\n                    byteOffset: 0,\n                    byteLength: autoAllocateChunkSize,\n                    bytesFilled: 0,\n                    minimumFill: 1,\n                    elementSize: 1,\n                    viewConstructor: Uint8Array,\n                    readerType: 'default'\n                };\n                this._pendingPullIntos.push(pullIntoDescriptor);\n            }\n            ReadableStreamAddReadRequest(stream, readRequest);\n            ReadableByteStreamControllerCallPullIfNeeded(this);\n        };\n        /** @internal */\n        ReadableByteStreamController.prototype[ReleaseSteps] = function () {\n            if (this._pendingPullIntos.length > 0) {\n                var firstPullInto = this._pendingPullIntos.peek();\n                firstPullInto.readerType = 'none';\n                this._pendingPullIntos = new SimpleQueue();\n                this._pendingPullIntos.push(firstPullInto);\n            }\n        };\n        return ReadableByteStreamController;\n    }());\n    Object.defineProperties(ReadableByteStreamController.prototype, {\n        close: { enumerable: true },\n        enqueue: { enumerable: true },\n        error: { enumerable: true },\n        byobRequest: { enumerable: true },\n        desiredSize: { enumerable: true }\n    });\n    setFunctionName(ReadableByteStreamController.prototype.close, 'close');\n    setFunctionName(ReadableByteStreamController.prototype.enqueue, 'enqueue');\n    setFunctionName(ReadableByteStreamController.prototype.error, 'error');\n    if (typeof SymbolPolyfill.toStringTag === 'symbol') {\n        Object.defineProperty(ReadableByteStreamController.prototype, SymbolPolyfill.toStringTag, {\n            value: 'ReadableByteStreamController',\n            configurable: true\n        });\n    }\n    // Abstract operations for the ReadableByteStreamController.\n    function IsReadableByteStreamController(x) {\n        if (!typeIsObject(x)) {\n            return false;\n        }\n        if (!Object.prototype.hasOwnProperty.call(x, '_controlledReadableByteStream')) {\n            return false;\n        }\n        return x instanceof ReadableByteStreamController;\n    }\n    function IsReadableStreamBYOBRequest(x) {\n        if (!typeIsObject(x)) {\n            return false;\n        }\n        if (!Object.prototype.hasOwnProperty.call(x, '_associatedReadableByteStreamController')) {\n            return false;\n        }\n        return x instanceof ReadableStreamBYOBRequest;\n    }\n    function ReadableByteStreamControllerCallPullIfNeeded(controller) {\n        var shouldPull = ReadableByteStreamControllerShouldCallPull(controller);\n        if (!shouldPull) {\n            return;\n        }\n        if (controller._pulling) {\n            controller._pullAgain = true;\n            return;\n        }\n        controller._pulling = true;\n        // TODO: Test controller argument\n        var pullPromise = controller._pullAlgorithm();\n        uponPromise(pullPromise, function () {\n            controller._pulling = false;\n            if (controller._pullAgain) {\n                controller._pullAgain = false;\n                ReadableByteStreamControllerCallPullIfNeeded(controller);\n            }\n            return null;\n        }, function (e) {\n            ReadableByteStreamControllerError(controller, e);\n            return null;\n        });\n    }\n    function ReadableByteStreamControllerClearPendingPullIntos(controller) {\n        ReadableByteStreamControllerInvalidateBYOBRequest(controller);\n        controller._pendingPullIntos = new SimpleQueue();\n    }\n    function ReadableByteStreamControllerCommitPullIntoDescriptor(stream, pullIntoDescriptor) {\n        var done = false;\n        if (stream._state === 'closed') {\n            done = true;\n        }\n        var filledView = ReadableByteStreamControllerConvertPullIntoDescriptor(pullIntoDescriptor);\n        if (pullIntoDescriptor.readerType === 'default') {\n            ReadableStreamFulfillReadRequest(stream, filledView, done);\n        }\n        else {\n            ReadableStreamFulfillReadIntoRequest(stream, filledView, done);\n        }\n    }\n    function ReadableByteStreamControllerConvertPullIntoDescriptor(pullIntoDescriptor) {\n        var bytesFilled = pullIntoDescriptor.bytesFilled;\n        var elementSize = pullIntoDescriptor.elementSize;\n        return new pullIntoDescriptor.viewConstructor(pullIntoDescriptor.buffer, pullIntoDescriptor.byteOffset, bytesFilled / elementSize);\n    }\n    function ReadableByteStreamControllerEnqueueChunkToQueue(controller, buffer, byteOffset, byteLength) {\n        controller._queue.push({ buffer: buffer, byteOffset: byteOffset, byteLength: byteLength });\n        controller._queueTotalSize += byteLength;\n    }\n    function ReadableByteStreamControllerEnqueueClonedChunkToQueue(controller, buffer, byteOffset, byteLength) {\n        var clonedChunk;\n        try {\n            clonedChunk = ArrayBufferSlice(buffer, byteOffset, byteOffset + byteLength);\n        }\n        catch (cloneE) {\n            ReadableByteStreamControllerError(controller, cloneE);\n            throw cloneE;\n        }\n        ReadableByteStreamControllerEnqueueChunkToQueue(controller, clonedChunk, 0, byteLength);\n    }\n    function ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue(controller, firstDescriptor) {\n        if (firstDescriptor.bytesFilled > 0) {\n            ReadableByteStreamControllerEnqueueClonedChunkToQueue(controller, firstDescriptor.buffer, firstDescriptor.byteOffset, firstDescriptor.bytesFilled);\n        }\n        ReadableByteStreamControllerShiftPendingPullInto(controller);\n    }\n    function ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(controller, pullIntoDescriptor) {\n        var maxBytesToCopy = Math.min(controller._queueTotalSize, pullIntoDescriptor.byteLength - pullIntoDescriptor.bytesFilled);\n        var maxBytesFilled = pullIntoDescriptor.bytesFilled + maxBytesToCopy;\n        var totalBytesToCopyRemaining = maxBytesToCopy;\n        var ready = false;\n        var remainderBytes = maxBytesFilled % pullIntoDescriptor.elementSize;\n        var maxAlignedBytes = maxBytesFilled - remainderBytes;\n        // A descriptor for a read() request that is not yet filled up to its minimum length will stay at the head\n        // of the queue, so the underlying source can keep filling it.\n        if (maxAlignedBytes >= pullIntoDescriptor.minimumFill) {\n            totalBytesToCopyRemaining = maxAlignedBytes - pullIntoDescriptor.bytesFilled;\n            ready = true;\n        }\n        var queue = controller._queue;\n        while (totalBytesToCopyRemaining > 0) {\n            var headOfQueue = queue.peek();\n            var bytesToCopy = Math.min(totalBytesToCopyRemaining, headOfQueue.byteLength);\n            var destStart = pullIntoDescriptor.byteOffset + pullIntoDescriptor.bytesFilled;\n            CopyDataBlockBytes(pullIntoDescriptor.buffer, destStart, headOfQueue.buffer, headOfQueue.byteOffset, bytesToCopy);\n            if (headOfQueue.byteLength === bytesToCopy) {\n                queue.shift();\n            }\n            else {\n                headOfQueue.byteOffset += bytesToCopy;\n                headOfQueue.byteLength -= bytesToCopy;\n            }\n            controller._queueTotalSize -= bytesToCopy;\n            ReadableByteStreamControllerFillHeadPullIntoDescriptor(controller, bytesToCopy, pullIntoDescriptor);\n            totalBytesToCopyRemaining -= bytesToCopy;\n        }\n        return ready;\n    }\n    function ReadableByteStreamControllerFillHeadPullIntoDescriptor(controller, size, pullIntoDescriptor) {\n        pullIntoDescriptor.bytesFilled += size;\n    }\n    function ReadableByteStreamControllerHandleQueueDrain(controller) {\n        if (controller._queueTotalSize === 0 && controller._closeRequested) {\n            ReadableByteStreamControllerClearAlgorithms(controller);\n            ReadableStreamClose(controller._controlledReadableByteStream);\n        }\n        else {\n            ReadableByteStreamControllerCallPullIfNeeded(controller);\n        }\n    }\n    function ReadableByteStreamControllerInvalidateBYOBRequest(controller) {\n        if (controller._byobRequest === null) {\n            return;\n        }\n        controller._byobRequest._associatedReadableByteStreamController = undefined;\n        controller._byobRequest._view = null;\n        controller._byobRequest = null;\n    }\n    function ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller) {\n        while (controller._pendingPullIntos.length > 0) {\n            if (controller._queueTotalSize === 0) {\n                return;\n            }\n            var pullIntoDescriptor = controller._pendingPullIntos.peek();\n            if (ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(controller, pullIntoDescriptor)) {\n                ReadableByteStreamControllerShiftPendingPullInto(controller);\n                ReadableByteStreamControllerCommitPullIntoDescriptor(controller._controlledReadableByteStream, pullIntoDescriptor);\n            }\n        }\n    }\n    function ReadableByteStreamControllerProcessReadRequestsUsingQueue(controller) {\n        var reader = controller._controlledReadableByteStream._reader;\n        while (reader._readRequests.length > 0) {\n            if (controller._queueTotalSize === 0) {\n                return;\n            }\n            var readRequest = reader._readRequests.shift();\n            ReadableByteStreamControllerFillReadRequestFromQueue(controller, readRequest);\n        }\n    }\n    function ReadableByteStreamControllerPullInto(controller, view, min, readIntoRequest) {\n        var stream = controller._controlledReadableByteStream;\n        var ctor = view.constructor;\n        var elementSize = arrayBufferViewElementSize(ctor);\n        var byteOffset = view.byteOffset, byteLength = view.byteLength;\n        var minimumFill = min * elementSize;\n        var buffer;\n        try {\n            buffer = TransferArrayBuffer(view.buffer);\n        }\n        catch (e) {\n            readIntoRequest._errorSteps(e);\n            return;\n        }\n        var pullIntoDescriptor = {\n            buffer: buffer,\n            bufferByteLength: buffer.byteLength,\n            byteOffset: byteOffset,\n            byteLength: byteLength,\n            bytesFilled: 0,\n            minimumFill: minimumFill,\n            elementSize: elementSize,\n            viewConstructor: ctor,\n            readerType: 'byob'\n        };\n        if (controller._pendingPullIntos.length > 0) {\n            controller._pendingPullIntos.push(pullIntoDescriptor);\n            // No ReadableByteStreamControllerCallPullIfNeeded() call since:\n            // - No change happens on desiredSize\n            // - The source has already been notified of that there's at least 1 pending read(view)\n            ReadableStreamAddReadIntoRequest(stream, readIntoRequest);\n            return;\n        }\n        if (stream._state === 'closed') {\n            var emptyView = new ctor(pullIntoDescriptor.buffer, pullIntoDescriptor.byteOffset, 0);\n            readIntoRequest._closeSteps(emptyView);\n            return;\n        }\n        if (controller._queueTotalSize > 0) {\n            if (ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(controller, pullIntoDescriptor)) {\n                var filledView = ReadableByteStreamControllerConvertPullIntoDescriptor(pullIntoDescriptor);\n                ReadableByteStreamControllerHandleQueueDrain(controller);\n                readIntoRequest._chunkSteps(filledView);\n                return;\n            }\n            if (controller._closeRequested) {\n                var e = new TypeError('Insufficient bytes to fill elements in the given buffer');\n                ReadableByteStreamControllerError(controller, e);\n                readIntoRequest._errorSteps(e);\n                return;\n            }\n        }\n        controller._pendingPullIntos.push(pullIntoDescriptor);\n        ReadableStreamAddReadIntoRequest(stream, readIntoRequest);\n        ReadableByteStreamControllerCallPullIfNeeded(controller);\n    }\n    function ReadableByteStreamControllerRespondInClosedState(controller, firstDescriptor) {\n        if (firstDescriptor.readerType === 'none') {\n            ReadableByteStreamControllerShiftPendingPullInto(controller);\n        }\n        var stream = controller._controlledReadableByteStream;\n        if (ReadableStreamHasBYOBReader(stream)) {\n            while (ReadableStreamGetNumReadIntoRequests(stream) > 0) {\n                var pullIntoDescriptor = ReadableByteStreamControllerShiftPendingPullInto(controller);\n                ReadableByteStreamControllerCommitPullIntoDescriptor(stream, pullIntoDescriptor);\n            }\n        }\n    }\n    function ReadableByteStreamControllerRespondInReadableState(controller, bytesWritten, pullIntoDescriptor) {\n        ReadableByteStreamControllerFillHeadPullIntoDescriptor(controller, bytesWritten, pullIntoDescriptor);\n        if (pullIntoDescriptor.readerType === 'none') {\n            ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue(controller, pullIntoDescriptor);\n            ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller);\n            return;\n        }\n        if (pullIntoDescriptor.bytesFilled < pullIntoDescriptor.minimumFill) {\n            // A descriptor for a read() request that is not yet filled up to its minimum length will stay at the head\n            // of the queue, so the underlying source can keep filling it.\n            return;\n        }\n        ReadableByteStreamControllerShiftPendingPullInto(controller);\n        var remainderSize = pullIntoDescriptor.bytesFilled % pullIntoDescriptor.elementSize;\n        if (remainderSize > 0) {\n            var end = pullIntoDescriptor.byteOffset + pullIntoDescriptor.bytesFilled;\n            ReadableByteStreamControllerEnqueueClonedChunkToQueue(controller, pullIntoDescriptor.buffer, end - remainderSize, remainderSize);\n        }\n        pullIntoDescriptor.bytesFilled -= remainderSize;\n        ReadableByteStreamControllerCommitPullIntoDescriptor(controller._controlledReadableByteStream, pullIntoDescriptor);\n        ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller);\n    }\n    function ReadableByteStreamControllerRespondInternal(controller, bytesWritten) {\n        var firstDescriptor = controller._pendingPullIntos.peek();\n        ReadableByteStreamControllerInvalidateBYOBRequest(controller);\n        var state = controller._controlledReadableByteStream._state;\n        if (state === 'closed') {\n            ReadableByteStreamControllerRespondInClosedState(controller, firstDescriptor);\n        }\n        else {\n            ReadableByteStreamControllerRespondInReadableState(controller, bytesWritten, firstDescriptor);\n        }\n        ReadableByteStreamControllerCallPullIfNeeded(controller);\n    }\n    function ReadableByteStreamControllerShiftPendingPullInto(controller) {\n        var descriptor = controller._pendingPullIntos.shift();\n        return descriptor;\n    }\n    function ReadableByteStreamControllerShouldCallPull(controller) {\n        var stream = controller._controlledReadableByteStream;\n        if (stream._state !== 'readable') {\n            return false;\n        }\n        if (controller._closeRequested) {\n            return false;\n        }\n        if (!controller._started) {\n            return false;\n        }\n        if (ReadableStreamHasDefaultReader(stream) && ReadableStreamGetNumReadRequests(stream) > 0) {\n            return true;\n        }\n        if (ReadableStreamHasBYOBReader(stream) && ReadableStreamGetNumReadIntoRequests(stream) > 0) {\n            return true;\n        }\n        var desiredSize = ReadableByteStreamControllerGetDesiredSize(controller);\n        if (desiredSize > 0) {\n            return true;\n        }\n        return false;\n    }\n    function ReadableByteStreamControllerClearAlgorithms(controller) {\n        controller._pullAlgorithm = undefined;\n        controller._cancelAlgorithm = undefined;\n    }\n    // A client of ReadableByteStreamController may use these functions directly to bypass state check.\n    function ReadableByteStreamControllerClose(controller) {\n        var stream = controller._controlledReadableByteStream;\n        if (controller._closeRequested || stream._state !== 'readable') {\n            return;\n        }\n        if (controller._queueTotalSize > 0) {\n            controller._closeRequested = true;\n            return;\n        }\n        if (controller._pendingPullIntos.length > 0) {\n            var firstPendingPullInto = controller._pendingPullIntos.peek();\n            if (firstPendingPullInto.bytesFilled % firstPendingPullInto.elementSize !== 0) {\n                var e = new TypeError('Insufficient bytes to fill elements in the given buffer');\n                ReadableByteStreamControllerError(controller, e);\n                throw e;\n            }\n        }\n        ReadableByteStreamControllerClearAlgorithms(controller);\n        ReadableStreamClose(stream);\n    }\n    function ReadableByteStreamControllerEnqueue(controller, chunk) {\n        var stream = controller._controlledReadableByteStream;\n        if (controller._closeRequested || stream._state !== 'readable') {\n            return;\n        }\n        var buffer = chunk.buffer, byteOffset = chunk.byteOffset, byteLength = chunk.byteLength;\n        if (IsDetachedBuffer(buffer)) {\n            throw new TypeError('chunk\\'s buffer is detached and so cannot be enqueued');\n        }\n        var transferredBuffer = TransferArrayBuffer(buffer);\n        if (controller._pendingPullIntos.length > 0) {\n            var firstPendingPullInto = controller._pendingPullIntos.peek();\n            if (IsDetachedBuffer(firstPendingPullInto.buffer)) {\n                throw new TypeError('The BYOB request\\'s buffer has been detached and so cannot be filled with an enqueued chunk');\n            }\n            ReadableByteStreamControllerInvalidateBYOBRequest(controller);\n            firstPendingPullInto.buffer = TransferArrayBuffer(firstPendingPullInto.buffer);\n            if (firstPendingPullInto.readerType === 'none') {\n                ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue(controller, firstPendingPullInto);\n            }\n        }\n        if (ReadableStreamHasDefaultReader(stream)) {\n            ReadableByteStreamControllerProcessReadRequestsUsingQueue(controller);\n            if (ReadableStreamGetNumReadRequests(stream) === 0) {\n                ReadableByteStreamControllerEnqueueChunkToQueue(controller, transferredBuffer, byteOffset, byteLength);\n            }\n            else {\n                if (controller._pendingPullIntos.length > 0) {\n                    ReadableByteStreamControllerShiftPendingPullInto(controller);\n                }\n                var transferredView = new Uint8Array(transferredBuffer, byteOffset, byteLength);\n                ReadableStreamFulfillReadRequest(stream, transferredView, false);\n            }\n        }\n        else if (ReadableStreamHasBYOBReader(stream)) {\n            // TODO: Ideally in this branch detaching should happen only if the buffer is not consumed fully.\n            ReadableByteStreamControllerEnqueueChunkToQueue(controller, transferredBuffer, byteOffset, byteLength);\n            ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller);\n        }\n        else {\n            ReadableByteStreamControllerEnqueueChunkToQueue(controller, transferredBuffer, byteOffset, byteLength);\n        }\n        ReadableByteStreamControllerCallPullIfNeeded(controller);\n    }\n    function ReadableByteStreamControllerError(controller, e) {\n        var stream = controller._controlledReadableByteStream;\n        if (stream._state !== 'readable') {\n            return;\n        }\n        ReadableByteStreamControllerClearPendingPullIntos(controller);\n        ResetQueue(controller);\n        ReadableByteStreamControllerClearAlgorithms(controller);\n        ReadableStreamError(stream, e);\n    }\n    function ReadableByteStreamControllerFillReadRequestFromQueue(controller, readRequest) {\n        var entry = controller._queue.shift();\n        controller._queueTotalSize -= entry.byteLength;\n        ReadableByteStreamControllerHandleQueueDrain(controller);\n        var view = new Uint8Array(entry.buffer, entry.byteOffset, entry.byteLength);\n        readRequest._chunkSteps(view);\n    }\n    function ReadableByteStreamControllerGetBYOBRequest(controller) {\n        if (controller._byobRequest === null && controller._pendingPullIntos.length > 0) {\n            var firstDescriptor = controller._pendingPullIntos.peek();\n            var view = new Uint8Array(firstDescriptor.buffer, firstDescriptor.byteOffset + firstDescriptor.bytesFilled, firstDescriptor.byteLength - firstDescriptor.bytesFilled);\n            var byobRequest = Object.create(ReadableStreamBYOBRequest.prototype);\n            SetUpReadableStreamBYOBRequest(byobRequest, controller, view);\n            controller._byobRequest = byobRequest;\n        }\n        return controller._byobRequest;\n    }\n    function ReadableByteStreamControllerGetDesiredSize(controller) {\n        var state = controller._controlledReadableByteStream._state;\n        if (state === 'errored') {\n            return null;\n        }\n        if (state === 'closed') {\n            return 0;\n        }\n        return controller._strategyHWM - controller._queueTotalSize;\n    }\n    function ReadableByteStreamControllerRespond(controller, bytesWritten) {\n        var firstDescriptor = controller._pendingPullIntos.peek();\n        var state = controller._controlledReadableByteStream._state;\n        if (state === 'closed') {\n            if (bytesWritten !== 0) {\n                throw new TypeError('bytesWritten must be 0 when calling respond() on a closed stream');\n            }\n        }\n        else {\n            if (bytesWritten === 0) {\n                throw new TypeError('bytesWritten must be greater than 0 when calling respond() on a readable stream');\n            }\n            if (firstDescriptor.bytesFilled + bytesWritten > firstDescriptor.byteLength) {\n                throw new RangeError('bytesWritten out of range');\n            }\n        }\n        firstDescriptor.buffer = TransferArrayBuffer(firstDescriptor.buffer);\n        ReadableByteStreamControllerRespondInternal(controller, bytesWritten);\n    }\n    function ReadableByteStreamControllerRespondWithNewView(controller, view) {\n        var firstDescriptor = controller._pendingPullIntos.peek();\n        var state = controller._controlledReadableByteStream._state;\n        if (state === 'closed') {\n            if (view.byteLength !== 0) {\n                throw new TypeError('The view\\'s length must be 0 when calling respondWithNewView() on a closed stream');\n            }\n        }\n        else {\n            if (view.byteLength === 0) {\n                throw new TypeError('The view\\'s length must be greater than 0 when calling respondWithNewView() on a readable stream');\n            }\n        }\n        if (firstDescriptor.byteOffset + firstDescriptor.bytesFilled !== view.byteOffset) {\n            throw new RangeError('The region specified by view does not match byobRequest');\n        }\n        if (firstDescriptor.bufferByteLength !== view.buffer.byteLength) {\n            throw new RangeError('The buffer of view has different capacity than byobRequest');\n        }\n        if (firstDescriptor.bytesFilled + view.byteLength > firstDescriptor.byteLength) {\n            throw new RangeError('The region specified by view is larger than byobRequest');\n        }\n        var viewByteLength = view.byteLength;\n        firstDescriptor.buffer = TransferArrayBuffer(view.buffer);\n        ReadableByteStreamControllerRespondInternal(controller, viewByteLength);\n    }\n    function SetUpReadableByteStreamController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, autoAllocateChunkSize) {\n        controller._controlledReadableByteStream = stream;\n        controller._pullAgain = false;\n        controller._pulling = false;\n        controller._byobRequest = null;\n        // Need to set the slots so that the assert doesn't fire. In the spec the slots already exist implicitly.\n        controller._queue = controller._queueTotalSize = undefined;\n        ResetQueue(controller);\n        controller._closeRequested = false;\n        controller._started = false;\n        controller._strategyHWM = highWaterMark;\n        controller._pullAlgorithm = pullAlgorithm;\n        controller._cancelAlgorithm = cancelAlgorithm;\n        controller._autoAllocateChunkSize = autoAllocateChunkSize;\n        controller._pendingPullIntos = new SimpleQueue();\n        stream._readableStreamController = controller;\n        var startResult = startAlgorithm();\n        uponPromise(promiseResolvedWith(startResult), function () {\n            controller._started = true;\n            ReadableByteStreamControllerCallPullIfNeeded(controller);\n            return null;\n        }, function (r) {\n            ReadableByteStreamControllerError(controller, r);\n            return null;\n        });\n    }\n    function SetUpReadableByteStreamControllerFromUnderlyingSource(stream, underlyingByteSource, highWaterMark) {\n        var controller = Object.create(ReadableByteStreamController.prototype);\n        var startAlgorithm;\n        var pullAlgorithm;\n        var cancelAlgorithm;\n        if (underlyingByteSource.start !== undefined) {\n            startAlgorithm = function () { return underlyingByteSource.start(controller); };\n        }\n        else {\n            startAlgorithm = function () { return undefined; };\n        }\n        if (underlyingByteSource.pull !== undefined) {\n            pullAlgorithm = function () { return underlyingByteSource.pull(controller); };\n        }\n        else {\n            pullAlgorithm = function () { return promiseResolvedWith(undefined); };\n        }\n        if (underlyingByteSource.cancel !== undefined) {\n            cancelAlgorithm = function (reason) { return underlyingByteSource.cancel(reason); };\n        }\n        else {\n            cancelAlgorithm = function () { return promiseResolvedWith(undefined); };\n        }\n        var autoAllocateChunkSize = underlyingByteSource.autoAllocateChunkSize;\n        if (autoAllocateChunkSize === 0) {\n            throw new TypeError('autoAllocateChunkSize must be greater than 0');\n        }\n        SetUpReadableByteStreamController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, autoAllocateChunkSize);\n    }\n    function SetUpReadableStreamBYOBRequest(request, controller, view) {\n        request._associatedReadableByteStreamController = controller;\n        request._view = view;\n    }\n    // Helper functions for the ReadableStreamBYOBRequest.\n    function byobRequestBrandCheckException(name) {\n        return new TypeError(\"ReadableStreamBYOBRequest.prototype.\".concat(name, \" can only be used on a ReadableStreamBYOBRequest\"));\n    }\n    // Helper functions for the ReadableByteStreamController.\n    function byteStreamControllerBrandCheckException(name) {\n        return new TypeError(\"ReadableByteStreamController.prototype.\".concat(name, \" can only be used on a ReadableByteStreamController\"));\n    }\n\n    function convertReaderOptions(options, context) {\n        assertDictionary(options, context);\n        var mode = options === null || options === void 0 ? void 0 : options.mode;\n        return {\n            mode: mode === undefined ? undefined : convertReadableStreamReaderMode(mode, \"\".concat(context, \" has member 'mode' that\"))\n        };\n    }\n    function convertReadableStreamReaderMode(mode, context) {\n        mode = \"\".concat(mode);\n        if (mode !== 'byob') {\n            throw new TypeError(\"\".concat(context, \" '\").concat(mode, \"' is not a valid enumeration value for ReadableStreamReaderMode\"));\n        }\n        return mode;\n    }\n    function convertByobReadOptions(options, context) {\n        var _a;\n        assertDictionary(options, context);\n        var min = (_a = options === null || options === void 0 ? void 0 : options.min) !== null && _a !== void 0 ? _a : 1;\n        return {\n            min: convertUnsignedLongLongWithEnforceRange(min, \"\".concat(context, \" has member 'min' that\"))\n        };\n    }\n\n    // Abstract operations for the ReadableStream.\n    function AcquireReadableStreamBYOBReader(stream) {\n        return new ReadableStreamBYOBReader(stream);\n    }\n    // ReadableStream API exposed for controllers.\n    function ReadableStreamAddReadIntoRequest(stream, readIntoRequest) {\n        stream._reader._readIntoRequests.push(readIntoRequest);\n    }\n    function ReadableStreamFulfillReadIntoRequest(stream, chunk, done) {\n        var reader = stream._reader;\n        var readIntoRequest = reader._readIntoRequests.shift();\n        if (done) {\n            readIntoRequest._closeSteps(chunk);\n        }\n        else {\n            readIntoRequest._chunkSteps(chunk);\n        }\n    }\n    function ReadableStreamGetNumReadIntoRequests(stream) {\n        return stream._reader._readIntoRequests.length;\n    }\n    function ReadableStreamHasBYOBReader(stream) {\n        var reader = stream._reader;\n        if (reader === undefined) {\n            return false;\n        }\n        if (!IsReadableStreamBYOBReader(reader)) {\n            return false;\n        }\n        return true;\n    }\n    /**\n     * A BYOB reader vended by a {@link ReadableStream}.\n     *\n     * @public\n     */\n    var ReadableStreamBYOBReader = /** @class */ (function () {\n        function ReadableStreamBYOBReader(stream) {\n            assertRequiredArgument(stream, 1, 'ReadableStreamBYOBReader');\n            assertReadableStream(stream, 'First parameter');\n            if (IsReadableStreamLocked(stream)) {\n                throw new TypeError('This stream has already been locked for exclusive reading by another reader');\n            }\n            if (!IsReadableByteStreamController(stream._readableStreamController)) {\n                throw new TypeError('Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte ' +\n                    'source');\n            }\n            ReadableStreamReaderGenericInitialize(this, stream);\n            this._readIntoRequests = new SimpleQueue();\n        }\n        Object.defineProperty(ReadableStreamBYOBReader.prototype, \"closed\", {\n            /**\n             * Returns a promise that will be fulfilled when the stream becomes closed, or rejected if the stream ever errors or\n             * the reader's lock is released before the stream finishes closing.\n             */\n            get: function () {\n                if (!IsReadableStreamBYOBReader(this)) {\n                    return promiseRejectedWith(byobReaderBrandCheckException('closed'));\n                }\n                return this._closedPromise;\n            },\n            enumerable: false,\n            configurable: true\n        });\n        /**\n         * If the reader is active, behaves the same as {@link ReadableStream.cancel | stream.cancel(reason)}.\n         */\n        ReadableStreamBYOBReader.prototype.cancel = function (reason) {\n            if (reason === void 0) { reason = undefined; }\n            if (!IsReadableStreamBYOBReader(this)) {\n                return promiseRejectedWith(byobReaderBrandCheckException('cancel'));\n            }\n            if (this._ownerReadableStream === undefined) {\n                return promiseRejectedWith(readerLockException('cancel'));\n            }\n            return ReadableStreamReaderGenericCancel(this, reason);\n        };\n        ReadableStreamBYOBReader.prototype.read = function (view, rawOptions) {\n            if (rawOptions === void 0) { rawOptions = {}; }\n            if (!IsReadableStreamBYOBReader(this)) {\n                return promiseRejectedWith(byobReaderBrandCheckException('read'));\n            }\n            if (!ArrayBuffer.isView(view)) {\n                return promiseRejectedWith(new TypeError('view must be an array buffer view'));\n            }\n            if (view.byteLength === 0) {\n                return promiseRejectedWith(new TypeError('view must have non-zero byteLength'));\n            }\n            if (view.buffer.byteLength === 0) {\n                return promiseRejectedWith(new TypeError(\"view's buffer must have non-zero byteLength\"));\n            }\n            if (IsDetachedBuffer(view.buffer)) {\n                return promiseRejectedWith(new TypeError('view\\'s buffer has been detached'));\n            }\n            var options;\n            try {\n                options = convertByobReadOptions(rawOptions, 'options');\n            }\n            catch (e) {\n                return promiseRejectedWith(e);\n            }\n            var min = options.min;\n            if (min === 0) {\n                return promiseRejectedWith(new TypeError('options.min must be greater than 0'));\n            }\n            if (!isDataView(view)) {\n                if (min > view.length) {\n                    return promiseRejectedWith(new RangeError('options.min must be less than or equal to view\\'s length'));\n                }\n            }\n            else if (min > view.byteLength) {\n                return promiseRejectedWith(new RangeError('options.min must be less than or equal to view\\'s byteLength'));\n            }\n            if (this._ownerReadableStream === undefined) {\n                return promiseRejectedWith(readerLockException('read from'));\n            }\n            var resolvePromise;\n            var rejectPromise;\n            var promise = newPromise(function (resolve, reject) {\n                resolvePromise = resolve;\n                rejectPromise = reject;\n            });\n            var readIntoRequest = {\n                _chunkSteps: function (chunk) { return resolvePromise({ value: chunk, done: false }); },\n                _closeSteps: function (chunk) { return resolvePromise({ value: chunk, done: true }); },\n                _errorSteps: function (e) { return rejectPromise(e); }\n            };\n            ReadableStreamBYOBReaderRead(this, view, min, readIntoRequest);\n            return promise;\n        };\n        /**\n         * Releases the reader's lock on the corresponding stream. After the lock is released, the reader is no longer active.\n         * If the associated stream is errored when the lock is released, the reader will appear errored in the same way\n         * from now on; otherwise, the reader will appear closed.\n         *\n         * A reader's lock cannot be released while it still has a pending read request, i.e., if a promise returned by\n         * the reader's {@link ReadableStreamBYOBReader.read | read()} method has not yet been settled. Attempting to\n         * do so will throw a `TypeError` and leave the reader locked to the stream.\n         */\n        ReadableStreamBYOBReader.prototype.releaseLock = function () {\n            if (!IsReadableStreamBYOBReader(this)) {\n                throw byobReaderBrandCheckException('releaseLock');\n            }\n            if (this._ownerReadableStream === undefined) {\n                return;\n            }\n            ReadableStreamBYOBReaderRelease(this);\n        };\n        return ReadableStreamBYOBReader;\n    }());\n    Object.defineProperties(ReadableStreamBYOBReader.prototype, {\n        cancel: { enumerable: true },\n        read: { enumerable: true },\n        releaseLock: { enumerable: true },\n        closed: { enumerable: true }\n    });\n    setFunctionName(ReadableStreamBYOBReader.prototype.cancel, 'cancel');\n    setFunctionName(ReadableStreamBYOBReader.prototype.read, 'read');\n    setFunctionName(ReadableStreamBYOBReader.prototype.releaseLock, 'releaseLock');\n    if (typeof SymbolPolyfill.toStringTag === 'symbol') {\n        Object.defineProperty(ReadableStreamBYOBReader.prototype, SymbolPolyfill.toStringTag, {\n            value: 'ReadableStreamBYOBReader',\n            configurable: true\n        });\n    }\n    // Abstract operations for the readers.\n    function IsReadableStreamBYOBReader(x) {\n        if (!typeIsObject(x)) {\n            return false;\n        }\n        if (!Object.prototype.hasOwnProperty.call(x, '_readIntoRequests')) {\n            return false;\n        }\n        return x instanceof ReadableStreamBYOBReader;\n    }\n    function ReadableStreamBYOBReaderRead(reader, view, min, readIntoRequest) {\n        var stream = reader._ownerReadableStream;\n        stream._disturbed = true;\n        if (stream._state === 'errored') {\n            readIntoRequest._errorSteps(stream._storedError);\n        }\n        else {\n            ReadableByteStreamControllerPullInto(stream._readableStreamController, view, min, readIntoRequest);\n        }\n    }\n    function ReadableStreamBYOBReaderRelease(reader) {\n        ReadableStreamReaderGenericRelease(reader);\n        var e = new TypeError('Reader was released');\n        ReadableStreamBYOBReaderErrorReadIntoRequests(reader, e);\n    }\n    function ReadableStreamBYOBReaderErrorReadIntoRequests(reader, e) {\n        var readIntoRequests = reader._readIntoRequests;\n        reader._readIntoRequests = new SimpleQueue();\n        readIntoRequests.forEach(function (readIntoRequest) {\n            readIntoRequest._errorSteps(e);\n        });\n    }\n    // Helper functions for the ReadableStreamBYOBReader.\n    function byobReaderBrandCheckException(name) {\n        return new TypeError(\"ReadableStreamBYOBReader.prototype.\".concat(name, \" can only be used on a ReadableStreamBYOBReader\"));\n    }\n\n    function ExtractHighWaterMark(strategy, defaultHWM) {\n        var highWaterMark = strategy.highWaterMark;\n        if (highWaterMark === undefined) {\n            return defaultHWM;\n        }\n        if (NumberIsNaN(highWaterMark) || highWaterMark < 0) {\n            throw new RangeError('Invalid highWaterMark');\n        }\n        return highWaterMark;\n    }\n    function ExtractSizeAlgorithm(strategy) {\n        var size = strategy.size;\n        if (!size) {\n            return function () { return 1; };\n        }\n        return size;\n    }\n\n    function convertQueuingStrategy(init, context) {\n        assertDictionary(init, context);\n        var highWaterMark = init === null || init === void 0 ? void 0 : init.highWaterMark;\n        var size = init === null || init === void 0 ? void 0 : init.size;\n        return {\n            highWaterMark: highWaterMark === undefined ? undefined : convertUnrestrictedDouble(highWaterMark),\n            size: size === undefined ? undefined : convertQueuingStrategySize(size, \"\".concat(context, \" has member 'size' that\"))\n        };\n    }\n    function convertQueuingStrategySize(fn, context) {\n        assertFunction(fn, context);\n        return function (chunk) { return convertUnrestrictedDouble(fn(chunk)); };\n    }\n\n    function convertUnderlyingSink(original, context) {\n        assertDictionary(original, context);\n        var abort = original === null || original === void 0 ? void 0 : original.abort;\n        var close = original === null || original === void 0 ? void 0 : original.close;\n        var start = original === null || original === void 0 ? void 0 : original.start;\n        var type = original === null || original === void 0 ? void 0 : original.type;\n        var write = original === null || original === void 0 ? void 0 : original.write;\n        return {\n            abort: abort === undefined ?\n                undefined :\n                convertUnderlyingSinkAbortCallback(abort, original, \"\".concat(context, \" has member 'abort' that\")),\n            close: close === undefined ?\n                undefined :\n                convertUnderlyingSinkCloseCallback(close, original, \"\".concat(context, \" has member 'close' that\")),\n            start: start === undefined ?\n                undefined :\n                convertUnderlyingSinkStartCallback(start, original, \"\".concat(context, \" has member 'start' that\")),\n            write: write === undefined ?\n                undefined :\n                convertUnderlyingSinkWriteCallback(write, original, \"\".concat(context, \" has member 'write' that\")),\n            type: type\n        };\n    }\n    function convertUnderlyingSinkAbortCallback(fn, original, context) {\n        assertFunction(fn, context);\n        return function (reason) { return promiseCall(fn, original, [reason]); };\n    }\n    function convertUnderlyingSinkCloseCallback(fn, original, context) {\n        assertFunction(fn, context);\n        return function () { return promiseCall(fn, original, []); };\n    }\n    function convertUnderlyingSinkStartCallback(fn, original, context) {\n        assertFunction(fn, context);\n        return function (controller) { return reflectCall(fn, original, [controller]); };\n    }\n    function convertUnderlyingSinkWriteCallback(fn, original, context) {\n        assertFunction(fn, context);\n        return function (chunk, controller) { return promiseCall(fn, original, [chunk, controller]); };\n    }\n\n    function assertWritableStream(x, context) {\n        if (!IsWritableStream(x)) {\n            throw new TypeError(\"\".concat(context, \" is not a WritableStream.\"));\n        }\n    }\n\n    function isAbortSignal(value) {\n        if (typeof value !== 'object' || value === null) {\n            return false;\n        }\n        try {\n            return typeof value.aborted === 'boolean';\n        }\n        catch (_a) {\n            // AbortSignal.prototype.aborted throws if its brand check fails\n            return false;\n        }\n    }\n    var supportsAbortController = typeof AbortController === 'function';\n    /**\n     * Construct a new AbortController, if supported by the platform.\n     *\n     * @internal\n     */\n    function createAbortController() {\n        if (supportsAbortController) {\n            return new AbortController();\n        }\n        return undefined;\n    }\n\n    /**\n     * A writable stream represents a destination for data, into which you can write.\n     *\n     * @public\n     */\n    var WritableStream = /** @class */ (function () {\n        function WritableStream(rawUnderlyingSink, rawStrategy) {\n            if (rawUnderlyingSink === void 0) { rawUnderlyingSink = {}; }\n            if (rawStrategy === void 0) { rawStrategy = {}; }\n            if (rawUnderlyingSink === undefined) {\n                rawUnderlyingSink = null;\n            }\n            else {\n                assertObject(rawUnderlyingSink, 'First parameter');\n            }\n            var strategy = convertQueuingStrategy(rawStrategy, 'Second parameter');\n            var underlyingSink = convertUnderlyingSink(rawUnderlyingSink, 'First parameter');\n            InitializeWritableStream(this);\n            var type = underlyingSink.type;\n            if (type !== undefined) {\n                throw new RangeError('Invalid type is specified');\n            }\n            var sizeAlgorithm = ExtractSizeAlgorithm(strategy);\n            var highWaterMark = ExtractHighWaterMark(strategy, 1);\n            SetUpWritableStreamDefaultControllerFromUnderlyingSink(this, underlyingSink, highWaterMark, sizeAlgorithm);\n        }\n        Object.defineProperty(WritableStream.prototype, \"locked\", {\n            /**\n             * Returns whether or not the writable stream is locked to a writer.\n             */\n            get: function () {\n                if (!IsWritableStream(this)) {\n                    throw streamBrandCheckException$2('locked');\n                }\n                return IsWritableStreamLocked(this);\n            },\n            enumerable: false,\n            configurable: true\n        });\n        /**\n         * Aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be\n         * immediately moved to an errored state, with any queued-up writes discarded. This will also execute any abort\n         * mechanism of the underlying sink.\n         *\n         * The returned promise will fulfill if the stream shuts down successfully, or reject if the underlying sink signaled\n         * that there was an error doing so. Additionally, it will reject with a `TypeError` (without attempting to cancel\n         * the stream) if the stream is currently locked.\n         */\n        WritableStream.prototype.abort = function (reason) {\n            if (reason === void 0) { reason = undefined; }\n            if (!IsWritableStream(this)) {\n                return promiseRejectedWith(streamBrandCheckException$2('abort'));\n            }\n            if (IsWritableStreamLocked(this)) {\n                return promiseRejectedWith(new TypeError('Cannot abort a stream that already has a writer'));\n            }\n            return WritableStreamAbort(this, reason);\n        };\n        /**\n         * Closes the stream. The underlying sink will finish processing any previously-written chunks, before invoking its\n         * close behavior. During this time any further attempts to write will fail (without erroring the stream).\n         *\n         * The method returns a promise that will fulfill if all remaining chunks are successfully written and the stream\n         * successfully closes, or rejects if an error is encountered during this process. Additionally, it will reject with\n         * a `TypeError` (without attempting to cancel the stream) if the stream is currently locked.\n         */\n        WritableStream.prototype.close = function () {\n            if (!IsWritableStream(this)) {\n                return promiseRejectedWith(streamBrandCheckException$2('close'));\n            }\n            if (IsWritableStreamLocked(this)) {\n                return promiseRejectedWith(new TypeError('Cannot close a stream that already has a writer'));\n            }\n            if (WritableStreamCloseQueuedOrInFlight(this)) {\n                return promiseRejectedWith(new TypeError('Cannot close an already-closing stream'));\n            }\n            return WritableStreamClose(this);\n        };\n        /**\n         * Creates a {@link WritableStreamDefaultWriter | writer} and locks the stream to the new writer. While the stream\n         * is locked, no other writer can be acquired until this one is released.\n         *\n         * This functionality is especially useful for creating abstractions that desire the ability to write to a stream\n         * without interruption or interleaving. By getting a writer for the stream, you can ensure nobody else can write at\n         * the same time, which would cause the resulting written data to be unpredictable and probably useless.\n         */\n        WritableStream.prototype.getWriter = function () {\n            if (!IsWritableStream(this)) {\n                throw streamBrandCheckException$2('getWriter');\n            }\n            return AcquireWritableStreamDefaultWriter(this);\n        };\n        return WritableStream;\n    }());\n    Object.defineProperties(WritableStream.prototype, {\n        abort: { enumerable: true },\n        close: { enumerable: true },\n        getWriter: { enumerable: true },\n        locked: { enumerable: true }\n    });\n    setFunctionName(WritableStream.prototype.abort, 'abort');\n    setFunctionName(WritableStream.prototype.close, 'close');\n    setFunctionName(WritableStream.prototype.getWriter, 'getWriter');\n    if (typeof SymbolPolyfill.toStringTag === 'symbol') {\n        Object.defineProperty(WritableStream.prototype, SymbolPolyfill.toStringTag, {\n            value: 'WritableStream',\n            configurable: true\n        });\n    }\n    // Abstract operations for the WritableStream.\n    function AcquireWritableStreamDefaultWriter(stream) {\n        return new WritableStreamDefaultWriter(stream);\n    }\n    // Throws if and only if startAlgorithm throws.\n    function CreateWritableStream(startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, highWaterMark, sizeAlgorithm) {\n        if (highWaterMark === void 0) { highWaterMark = 1; }\n        if (sizeAlgorithm === void 0) { sizeAlgorithm = function () { return 1; }; }\n        var stream = Object.create(WritableStream.prototype);\n        InitializeWritableStream(stream);\n        var controller = Object.create(WritableStreamDefaultController.prototype);\n        SetUpWritableStreamDefaultController(stream, controller, startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, highWaterMark, sizeAlgorithm);\n        return stream;\n    }\n    function InitializeWritableStream(stream) {\n        stream._state = 'writable';\n        // The error that will be reported by new method calls once the state becomes errored. Only set when [[state]] is\n        // 'erroring' or 'errored'. May be set to an undefined value.\n        stream._storedError = undefined;\n        stream._writer = undefined;\n        // Initialize to undefined first because the constructor of the controller checks this\n        // variable to validate the caller.\n        stream._writableStreamController = undefined;\n        // This queue is placed here instead of the writer class in order to allow for passing a writer to the next data\n        // producer without waiting for the queued writes to finish.\n        stream._writeRequests = new SimpleQueue();\n        // Write requests are removed from _writeRequests when write() is called on the underlying sink. This prevents\n        // them from being erroneously rejected on error. If a write() call is in-flight, the request is stored here.\n        stream._inFlightWriteRequest = undefined;\n        // The promise that was returned from writer.close(). Stored here because it may be fulfilled after the writer\n        // has been detached.\n        stream._closeRequest = undefined;\n        // Close request is removed from _closeRequest when close() is called on the underlying sink. This prevents it\n        // from being erroneously rejected on error. If a close() call is in-flight, the request is stored here.\n        stream._inFlightCloseRequest = undefined;\n        // The promise that was returned from writer.abort(). This may also be fulfilled after the writer has detached.\n        stream._pendingAbortRequest = undefined;\n        // The backpressure signal set by the controller.\n        stream._backpressure = false;\n    }\n    function IsWritableStream(x) {\n        if (!typeIsObject(x)) {\n            return false;\n        }\n        if (!Object.prototype.hasOwnProperty.call(x, '_writableStreamController')) {\n            return false;\n        }\n        return x instanceof WritableStream;\n    }\n    function IsWritableStreamLocked(stream) {\n        if (stream._writer === undefined) {\n            return false;\n        }\n        return true;\n    }\n    function WritableStreamAbort(stream, reason) {\n        var _a;\n        if (stream._state === 'closed' || stream._state === 'errored') {\n            return promiseResolvedWith(undefined);\n        }\n        stream._writableStreamController._abortReason = reason;\n        (_a = stream._writableStreamController._abortController) === null || _a === void 0 ? void 0 : _a.abort(reason);\n        // TypeScript narrows the type of `stream._state` down to 'writable' | 'erroring',\n        // but it doesn't know that signaling abort runs author code that might have changed the state.\n        // Widen the type again by casting to WritableStreamState.\n        var state = stream._state;\n        if (state === 'closed' || state === 'errored') {\n            return promiseResolvedWith(undefined);\n        }\n        if (stream._pendingAbortRequest !== undefined) {\n            return stream._pendingAbortRequest._promise;\n        }\n        var wasAlreadyErroring = false;\n        if (state === 'erroring') {\n            wasAlreadyErroring = true;\n            // reason will not be used, so don't keep a reference to it.\n            reason = undefined;\n        }\n        var promise = newPromise(function (resolve, reject) {\n            stream._pendingAbortRequest = {\n                _promise: undefined,\n                _resolve: resolve,\n                _reject: reject,\n                _reason: reason,\n                _wasAlreadyErroring: wasAlreadyErroring\n            };\n        });\n        stream._pendingAbortRequest._promise = promise;\n        if (!wasAlreadyErroring) {\n            WritableStreamStartErroring(stream, reason);\n        }\n        return promise;\n    }\n    function WritableStreamClose(stream) {\n        var state = stream._state;\n        if (state === 'closed' || state === 'errored') {\n            return promiseRejectedWith(new TypeError(\"The stream (in \".concat(state, \" state) is not in the writable state and cannot be closed\")));\n        }\n        var promise = newPromise(function (resolve, reject) {\n            var closeRequest = {\n                _resolve: resolve,\n                _reject: reject\n            };\n            stream._closeRequest = closeRequest;\n        });\n        var writer = stream._writer;\n        if (writer !== undefined && stream._backpressure && state === 'writable') {\n            defaultWriterReadyPromiseResolve(writer);\n        }\n        WritableStreamDefaultControllerClose(stream._writableStreamController);\n        return promise;\n    }\n    // WritableStream API exposed for controllers.\n    function WritableStreamAddWriteRequest(stream) {\n        var promise = newPromise(function (resolve, reject) {\n            var writeRequest = {\n                _resolve: resolve,\n                _reject: reject\n            };\n            stream._writeRequests.push(writeRequest);\n        });\n        return promise;\n    }\n    function WritableStreamDealWithRejection(stream, error) {\n        var state = stream._state;\n        if (state === 'writable') {\n            WritableStreamStartErroring(stream, error);\n            return;\n        }\n        WritableStreamFinishErroring(stream);\n    }\n    function WritableStreamStartErroring(stream, reason) {\n        var controller = stream._writableStreamController;\n        stream._state = 'erroring';\n        stream._storedError = reason;\n        var writer = stream._writer;\n        if (writer !== undefined) {\n            WritableStreamDefaultWriterEnsureReadyPromiseRejected(writer, reason);\n        }\n        if (!WritableStreamHasOperationMarkedInFlight(stream) && controller._started) {\n            WritableStreamFinishErroring(stream);\n        }\n    }\n    function WritableStreamFinishErroring(stream) {\n        stream._state = 'errored';\n        stream._writableStreamController[ErrorSteps]();\n        var storedError = stream._storedError;\n        stream._writeRequests.forEach(function (writeRequest) {\n            writeRequest._reject(storedError);\n        });\n        stream._writeRequests = new SimpleQueue();\n        if (stream._pendingAbortRequest === undefined) {\n            WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream);\n            return;\n        }\n        var abortRequest = stream._pendingAbortRequest;\n        stream._pendingAbortRequest = undefined;\n        if (abortRequest._wasAlreadyErroring) {\n            abortRequest._reject(storedError);\n            WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream);\n            return;\n        }\n        var promise = stream._writableStreamController[AbortSteps](abortRequest._reason);\n        uponPromise(promise, function () {\n            abortRequest._resolve();\n            WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream);\n            return null;\n        }, function (reason) {\n            abortRequest._reject(reason);\n            WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream);\n            return null;\n        });\n    }\n    function WritableStreamFinishInFlightWrite(stream) {\n        stream._inFlightWriteRequest._resolve(undefined);\n        stream._inFlightWriteRequest = undefined;\n    }\n    function WritableStreamFinishInFlightWriteWithError(stream, error) {\n        stream._inFlightWriteRequest._reject(error);\n        stream._inFlightWriteRequest = undefined;\n        WritableStreamDealWithRejection(stream, error);\n    }\n    function WritableStreamFinishInFlightClose(stream) {\n        stream._inFlightCloseRequest._resolve(undefined);\n        stream._inFlightCloseRequest = undefined;\n        var state = stream._state;\n        if (state === 'erroring') {\n            // The error was too late to do anything, so it is ignored.\n            stream._storedError = undefined;\n            if (stream._pendingAbortRequest !== undefined) {\n                stream._pendingAbortRequest._resolve();\n                stream._pendingAbortRequest = undefined;\n            }\n        }\n        stream._state = 'closed';\n        var writer = stream._writer;\n        if (writer !== undefined) {\n            defaultWriterClosedPromiseResolve(writer);\n        }\n    }\n    function WritableStreamFinishInFlightCloseWithError(stream, error) {\n        stream._inFlightCloseRequest._reject(error);\n        stream._inFlightCloseRequest = undefined;\n        // Never execute sink abort() after sink close().\n        if (stream._pendingAbortRequest !== undefined) {\n            stream._pendingAbortRequest._reject(error);\n            stream._pendingAbortRequest = undefined;\n        }\n        WritableStreamDealWithRejection(stream, error);\n    }\n    // TODO(ricea): Fix alphabetical order.\n    function WritableStreamCloseQueuedOrInFlight(stream) {\n        if (stream._closeRequest === undefined && stream._inFlightCloseRequest === undefined) {\n            return false;\n        }\n        return true;\n    }\n    function WritableStreamHasOperationMarkedInFlight(stream) {\n        if (stream._inFlightWriteRequest === undefined && stream._inFlightCloseRequest === undefined) {\n            return false;\n        }\n        return true;\n    }\n    function WritableStreamMarkCloseRequestInFlight(stream) {\n        stream._inFlightCloseRequest = stream._closeRequest;\n        stream._closeRequest = undefined;\n    }\n    function WritableStreamMarkFirstWriteRequestInFlight(stream) {\n        stream._inFlightWriteRequest = stream._writeRequests.shift();\n    }\n    function WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream) {\n        if (stream._closeRequest !== undefined) {\n            stream._closeRequest._reject(stream._storedError);\n            stream._closeRequest = undefined;\n        }\n        var writer = stream._writer;\n        if (writer !== undefined) {\n            defaultWriterClosedPromiseReject(writer, stream._storedError);\n        }\n    }\n    function WritableStreamUpdateBackpressure(stream, backpressure) {\n        var writer = stream._writer;\n        if (writer !== undefined && backpressure !== stream._backpressure) {\n            if (backpressure) {\n                defaultWriterReadyPromiseReset(writer);\n            }\n            else {\n                defaultWriterReadyPromiseResolve(writer);\n            }\n        }\n        stream._backpressure = backpressure;\n    }\n    /**\n     * A default writer vended by a {@link WritableStream}.\n     *\n     * @public\n     */\n    var WritableStreamDefaultWriter = /** @class */ (function () {\n        function WritableStreamDefaultWriter(stream) {\n            assertRequiredArgument(stream, 1, 'WritableStreamDefaultWriter');\n            assertWritableStream(stream, 'First parameter');\n            if (IsWritableStreamLocked(stream)) {\n                throw new TypeError('This stream has already been locked for exclusive writing by another writer');\n            }\n            this._ownerWritableStream = stream;\n            stream._writer = this;\n            var state = stream._state;\n            if (state === 'writable') {\n                if (!WritableStreamCloseQueuedOrInFlight(stream) && stream._backpressure) {\n                    defaultWriterReadyPromiseInitialize(this);\n                }\n                else {\n                    defaultWriterReadyPromiseInitializeAsResolved(this);\n                }\n                defaultWriterClosedPromiseInitialize(this);\n            }\n            else if (state === 'erroring') {\n                defaultWriterReadyPromiseInitializeAsRejected(this, stream._storedError);\n                defaultWriterClosedPromiseInitialize(this);\n            }\n            else if (state === 'closed') {\n                defaultWriterReadyPromiseInitializeAsResolved(this);\n                defaultWriterClosedPromiseInitializeAsResolved(this);\n            }\n            else {\n                var storedError = stream._storedError;\n                defaultWriterReadyPromiseInitializeAsRejected(this, storedError);\n                defaultWriterClosedPromiseInitializeAsRejected(this, storedError);\n            }\n        }\n        Object.defineProperty(WritableStreamDefaultWriter.prototype, \"closed\", {\n            /**\n             * Returns a promise that will be fulfilled when the stream becomes closed, or rejected if the stream ever errors or\n             * the writer’s lock is released before the stream finishes closing.\n             */\n            get: function () {\n                if (!IsWritableStreamDefaultWriter(this)) {\n                    return promiseRejectedWith(defaultWriterBrandCheckException('closed'));\n                }\n                return this._closedPromise;\n            },\n            enumerable: false,\n            configurable: true\n        });\n        Object.defineProperty(WritableStreamDefaultWriter.prototype, \"desiredSize\", {\n            /**\n             * Returns the desired size to fill the stream’s internal queue. It can be negative, if the queue is over-full.\n             * A producer can use this information to determine the right amount of data to write.\n             *\n             * It will be `null` if the stream cannot be successfully written to (due to either being errored, or having an abort\n             * queued up). It will return zero if the stream is closed. And the getter will throw an exception if invoked when\n             * the writer’s lock is released.\n             */\n            get: function () {\n                if (!IsWritableStreamDefaultWriter(this)) {\n                    throw defaultWriterBrandCheckException('desiredSize');\n                }\n                if (this._ownerWritableStream === undefined) {\n                    throw defaultWriterLockException('desiredSize');\n                }\n                return WritableStreamDefaultWriterGetDesiredSize(this);\n            },\n            enumerable: false,\n            configurable: true\n        });\n        Object.defineProperty(WritableStreamDefaultWriter.prototype, \"ready\", {\n            /**\n             * Returns a promise that will be fulfilled when the desired size to fill the stream’s internal queue transitions\n             * from non-positive to positive, signaling that it is no longer applying backpressure. Once the desired size dips\n             * back to zero or below, the getter will return a new promise that stays pending until the next transition.\n             *\n             * If the stream becomes errored or aborted, or the writer’s lock is released, the returned promise will become\n             * rejected.\n             */\n            get: function () {\n                if (!IsWritableStreamDefaultWriter(this)) {\n                    return promiseRejectedWith(defaultWriterBrandCheckException('ready'));\n                }\n                return this._readyPromise;\n            },\n            enumerable: false,\n            configurable: true\n        });\n        /**\n         * If the reader is active, behaves the same as {@link WritableStream.abort | stream.abort(reason)}.\n         */\n        WritableStreamDefaultWriter.prototype.abort = function (reason) {\n            if (reason === void 0) { reason = undefined; }\n            if (!IsWritableStreamDefaultWriter(this)) {\n                return promiseRejectedWith(defaultWriterBrandCheckException('abort'));\n            }\n            if (this._ownerWritableStream === undefined) {\n                return promiseRejectedWith(defaultWriterLockException('abort'));\n            }\n            return WritableStreamDefaultWriterAbort(this, reason);\n        };\n        /**\n         * If the reader is active, behaves the same as {@link WritableStream.close | stream.close()}.\n         */\n        WritableStreamDefaultWriter.prototype.close = function () {\n            if (!IsWritableStreamDefaultWriter(this)) {\n                return promiseRejectedWith(defaultWriterBrandCheckException('close'));\n            }\n            var stream = this._ownerWritableStream;\n            if (stream === undefined) {\n                return promiseRejectedWith(defaultWriterLockException('close'));\n            }\n            if (WritableStreamCloseQueuedOrInFlight(stream)) {\n                return promiseRejectedWith(new TypeError('Cannot close an already-closing stream'));\n            }\n            return WritableStreamDefaultWriterClose(this);\n        };\n        /**\n         * Releases the writer’s lock on the corresponding stream. After the lock is released, the writer is no longer active.\n         * If the associated stream is errored when the lock is released, the writer will appear errored in the same way from\n         * now on; otherwise, the writer will appear closed.\n         *\n         * Note that the lock can still be released even if some ongoing writes have not yet finished (i.e. even if the\n         * promises returned from previous calls to {@link WritableStreamDefaultWriter.write | write()} have not yet settled).\n         * It’s not necessary to hold the lock on the writer for the duration of the write; the lock instead simply prevents\n         * other producers from writing in an interleaved manner.\n         */\n        WritableStreamDefaultWriter.prototype.releaseLock = function () {\n            if (!IsWritableStreamDefaultWriter(this)) {\n                throw defaultWriterBrandCheckException('releaseLock');\n            }\n            var stream = this._ownerWritableStream;\n            if (stream === undefined) {\n                return;\n            }\n            WritableStreamDefaultWriterRelease(this);\n        };\n        WritableStreamDefaultWriter.prototype.write = function (chunk) {\n            if (chunk === void 0) { chunk = undefined; }\n            if (!IsWritableStreamDefaultWriter(this)) {\n                return promiseRejectedWith(defaultWriterBrandCheckException('write'));\n            }\n            if (this._ownerWritableStream === undefined) {\n                return promiseRejectedWith(defaultWriterLockException('write to'));\n            }\n            return WritableStreamDefaultWriterWrite(this, chunk);\n        };\n        return WritableStreamDefaultWriter;\n    }());\n    Object.defineProperties(WritableStreamDefaultWriter.prototype, {\n        abort: { enumerable: true },\n        close: { enumerable: true },\n        releaseLock: { enumerable: true },\n        write: { enumerable: true },\n        closed: { enumerable: true },\n        desiredSize: { enumerable: true },\n        ready: { enumerable: true }\n    });\n    setFunctionName(WritableStreamDefaultWriter.prototype.abort, 'abort');\n    setFunctionName(WritableStreamDefaultWriter.prototype.close, 'close');\n    setFunctionName(WritableStreamDefaultWriter.prototype.releaseLock, 'releaseLock');\n    setFunctionName(WritableStreamDefaultWriter.prototype.write, 'write');\n    if (typeof SymbolPolyfill.toStringTag === 'symbol') {\n        Object.defineProperty(WritableStreamDefaultWriter.prototype, SymbolPolyfill.toStringTag, {\n            value: 'WritableStreamDefaultWriter',\n            configurable: true\n        });\n    }\n    // Abstract operations for the WritableStreamDefaultWriter.\n    function IsWritableStreamDefaultWriter(x) {\n        if (!typeIsObject(x)) {\n            return false;\n        }\n        if (!Object.prototype.hasOwnProperty.call(x, '_ownerWritableStream')) {\n            return false;\n        }\n        return x instanceof WritableStreamDefaultWriter;\n    }\n    // A client of WritableStreamDefaultWriter may use these functions directly to bypass state check.\n    function WritableStreamDefaultWriterAbort(writer, reason) {\n        var stream = writer._ownerWritableStream;\n        return WritableStreamAbort(stream, reason);\n    }\n    function WritableStreamDefaultWriterClose(writer) {\n        var stream = writer._ownerWritableStream;\n        return WritableStreamClose(stream);\n    }\n    function WritableStreamDefaultWriterCloseWithErrorPropagation(writer) {\n        var stream = writer._ownerWritableStream;\n        var state = stream._state;\n        if (WritableStreamCloseQueuedOrInFlight(stream) || state === 'closed') {\n            return promiseResolvedWith(undefined);\n        }\n        if (state === 'errored') {\n            return promiseRejectedWith(stream._storedError);\n        }\n        return WritableStreamDefaultWriterClose(writer);\n    }\n    function WritableStreamDefaultWriterEnsureClosedPromiseRejected(writer, error) {\n        if (writer._closedPromiseState === 'pending') {\n            defaultWriterClosedPromiseReject(writer, error);\n        }\n        else {\n            defaultWriterClosedPromiseResetToRejected(writer, error);\n        }\n    }\n    function WritableStreamDefaultWriterEnsureReadyPromiseRejected(writer, error) {\n        if (writer._readyPromiseState === 'pending') {\n            defaultWriterReadyPromiseReject(writer, error);\n        }\n        else {\n            defaultWriterReadyPromiseResetToRejected(writer, error);\n        }\n    }\n    function WritableStreamDefaultWriterGetDesiredSize(writer) {\n        var stream = writer._ownerWritableStream;\n        var state = stream._state;\n        if (state === 'errored' || state === 'erroring') {\n            return null;\n        }\n        if (state === 'closed') {\n            return 0;\n        }\n        return WritableStreamDefaultControllerGetDesiredSize(stream._writableStreamController);\n    }\n    function WritableStreamDefaultWriterRelease(writer) {\n        var stream = writer._ownerWritableStream;\n        var releasedError = new TypeError(\"Writer was released and can no longer be used to monitor the stream's closedness\");\n        WritableStreamDefaultWriterEnsureReadyPromiseRejected(writer, releasedError);\n        // The state transitions to \"errored\" before the sink abort() method runs, but the writer.closed promise is not\n        // rejected until afterwards. This means that simply testing state will not work.\n        WritableStreamDefaultWriterEnsureClosedPromiseRejected(writer, releasedError);\n        stream._writer = undefined;\n        writer._ownerWritableStream = undefined;\n    }\n    function WritableStreamDefaultWriterWrite(writer, chunk) {\n        var stream = writer._ownerWritableStream;\n        var controller = stream._writableStreamController;\n        var chunkSize = WritableStreamDefaultControllerGetChunkSize(controller, chunk);\n        if (stream !== writer._ownerWritableStream) {\n            return promiseRejectedWith(defaultWriterLockException('write to'));\n        }\n        var state = stream._state;\n        if (state === 'errored') {\n            return promiseRejectedWith(stream._storedError);\n        }\n        if (WritableStreamCloseQueuedOrInFlight(stream) || state === 'closed') {\n            return promiseRejectedWith(new TypeError('The stream is closing or closed and cannot be written to'));\n        }\n        if (state === 'erroring') {\n            return promiseRejectedWith(stream._storedError);\n        }\n        var promise = WritableStreamAddWriteRequest(stream);\n        WritableStreamDefaultControllerWrite(controller, chunk, chunkSize);\n        return promise;\n    }\n    var closeSentinel = {};\n    /**\n     * Allows control of a {@link WritableStream | writable stream}'s state and internal queue.\n     *\n     * @public\n     */\n    var WritableStreamDefaultController = /** @class */ (function () {\n        function WritableStreamDefaultController() {\n            throw new TypeError('Illegal constructor');\n        }\n        Object.defineProperty(WritableStreamDefaultController.prototype, \"abortReason\", {\n            /**\n             * The reason which was passed to `WritableStream.abort(reason)` when the stream was aborted.\n             *\n             * @deprecated\n             *  This property has been removed from the specification, see https://github.com/whatwg/streams/pull/1177.\n             *  Use {@link WritableStreamDefaultController.signal}'s `reason` instead.\n             */\n            get: function () {\n                if (!IsWritableStreamDefaultController(this)) {\n                    throw defaultControllerBrandCheckException$2('abortReason');\n                }\n                return this._abortReason;\n            },\n            enumerable: false,\n            configurable: true\n        });\n        Object.defineProperty(WritableStreamDefaultController.prototype, \"signal\", {\n            /**\n             * An `AbortSignal` that can be used to abort the pending write or close operation when the stream is aborted.\n             */\n            get: function () {\n                if (!IsWritableStreamDefaultController(this)) {\n                    throw defaultControllerBrandCheckException$2('signal');\n                }\n                if (this._abortController === undefined) {\n                    // Older browsers or older Node versions may not support `AbortController` or `AbortSignal`.\n                    // We don't want to bundle and ship an `AbortController` polyfill together with our polyfill,\n                    // so instead we only implement support for `signal` if we find a global `AbortController` constructor.\n                    throw new TypeError('WritableStreamDefaultController.prototype.signal is not supported');\n                }\n                return this._abortController.signal;\n            },\n            enumerable: false,\n            configurable: true\n        });\n        /**\n         * Closes the controlled writable stream, making all future interactions with it fail with the given error `e`.\n         *\n         * This method is rarely used, since usually it suffices to return a rejected promise from one of the underlying\n         * sink's methods. However, it can be useful for suddenly shutting down a stream in response to an event outside the\n         * normal lifecycle of interactions with the underlying sink.\n         */\n        WritableStreamDefaultController.prototype.error = function (e) {\n            if (e === void 0) { e = undefined; }\n            if (!IsWritableStreamDefaultController(this)) {\n                throw defaultControllerBrandCheckException$2('error');\n            }\n            var state = this._controlledWritableStream._state;\n            if (state !== 'writable') {\n                // The stream is closed, errored or will be soon. The sink can't do anything useful if it gets an error here, so\n                // just treat it as a no-op.\n                return;\n            }\n            WritableStreamDefaultControllerError(this, e);\n        };\n        /** @internal */\n        WritableStreamDefaultController.prototype[AbortSteps] = function (reason) {\n            var result = this._abortAlgorithm(reason);\n            WritableStreamDefaultControllerClearAlgorithms(this);\n            return result;\n        };\n        /** @internal */\n        WritableStreamDefaultController.prototype[ErrorSteps] = function () {\n            ResetQueue(this);\n        };\n        return WritableStreamDefaultController;\n    }());\n    Object.defineProperties(WritableStreamDefaultController.prototype, {\n        abortReason: { enumerable: true },\n        signal: { enumerable: true },\n        error: { enumerable: true }\n    });\n    if (typeof SymbolPolyfill.toStringTag === 'symbol') {\n        Object.defineProperty(WritableStreamDefaultController.prototype, SymbolPolyfill.toStringTag, {\n            value: 'WritableStreamDefaultController',\n            configurable: true\n        });\n    }\n    // Abstract operations implementing interface required by the WritableStream.\n    function IsWritableStreamDefaultController(x) {\n        if (!typeIsObject(x)) {\n            return false;\n        }\n        if (!Object.prototype.hasOwnProperty.call(x, '_controlledWritableStream')) {\n            return false;\n        }\n        return x instanceof WritableStreamDefaultController;\n    }\n    function SetUpWritableStreamDefaultController(stream, controller, startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, highWaterMark, sizeAlgorithm) {\n        controller._controlledWritableStream = stream;\n        stream._writableStreamController = controller;\n        // Need to set the slots so that the assert doesn't fire. In the spec the slots already exist implicitly.\n        controller._queue = undefined;\n        controller._queueTotalSize = undefined;\n        ResetQueue(controller);\n        controller._abortReason = undefined;\n        controller._abortController = createAbortController();\n        controller._started = false;\n        controller._strategySizeAlgorithm = sizeAlgorithm;\n        controller._strategyHWM = highWaterMark;\n        controller._writeAlgorithm = writeAlgorithm;\n        controller._closeAlgorithm = closeAlgorithm;\n        controller._abortAlgorithm = abortAlgorithm;\n        var backpressure = WritableStreamDefaultControllerGetBackpressure(controller);\n        WritableStreamUpdateBackpressure(stream, backpressure);\n        var startResult = startAlgorithm();\n        var startPromise = promiseResolvedWith(startResult);\n        uponPromise(startPromise, function () {\n            controller._started = true;\n            WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller);\n            return null;\n        }, function (r) {\n            controller._started = true;\n            WritableStreamDealWithRejection(stream, r);\n            return null;\n        });\n    }\n    function SetUpWritableStreamDefaultControllerFromUnderlyingSink(stream, underlyingSink, highWaterMark, sizeAlgorithm) {\n        var controller = Object.create(WritableStreamDefaultController.prototype);\n        var startAlgorithm;\n        var writeAlgorithm;\n        var closeAlgorithm;\n        var abortAlgorithm;\n        if (underlyingSink.start !== undefined) {\n            startAlgorithm = function () { return underlyingSink.start(controller); };\n        }\n        else {\n            startAlgorithm = function () { return undefined; };\n        }\n        if (underlyingSink.write !== undefined) {\n            writeAlgorithm = function (chunk) { return underlyingSink.write(chunk, controller); };\n        }\n        else {\n            writeAlgorithm = function () { return promiseResolvedWith(undefined); };\n        }\n        if (underlyingSink.close !== undefined) {\n            closeAlgorithm = function () { return underlyingSink.close(); };\n        }\n        else {\n            closeAlgorithm = function () { return promiseResolvedWith(undefined); };\n        }\n        if (underlyingSink.abort !== undefined) {\n            abortAlgorithm = function (reason) { return underlyingSink.abort(reason); };\n        }\n        else {\n            abortAlgorithm = function () { return promiseResolvedWith(undefined); };\n        }\n        SetUpWritableStreamDefaultController(stream, controller, startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, highWaterMark, sizeAlgorithm);\n    }\n    // ClearAlgorithms may be called twice. Erroring the same stream in multiple ways will often result in redundant calls.\n    function WritableStreamDefaultControllerClearAlgorithms(controller) {\n        controller._writeAlgorithm = undefined;\n        controller._closeAlgorithm = undefined;\n        controller._abortAlgorithm = undefined;\n        controller._strategySizeAlgorithm = undefined;\n    }\n    function WritableStreamDefaultControllerClose(controller) {\n        EnqueueValueWithSize(controller, closeSentinel, 0);\n        WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller);\n    }\n    function WritableStreamDefaultControllerGetChunkSize(controller, chunk) {\n        try {\n            return controller._strategySizeAlgorithm(chunk);\n        }\n        catch (chunkSizeE) {\n            WritableStreamDefaultControllerErrorIfNeeded(controller, chunkSizeE);\n            return 1;\n        }\n    }\n    function WritableStreamDefaultControllerGetDesiredSize(controller) {\n        return controller._strategyHWM - controller._queueTotalSize;\n    }\n    function WritableStreamDefaultControllerWrite(controller, chunk, chunkSize) {\n        try {\n            EnqueueValueWithSize(controller, chunk, chunkSize);\n        }\n        catch (enqueueE) {\n            WritableStreamDefaultControllerErrorIfNeeded(controller, enqueueE);\n            return;\n        }\n        var stream = controller._controlledWritableStream;\n        if (!WritableStreamCloseQueuedOrInFlight(stream) && stream._state === 'writable') {\n            var backpressure = WritableStreamDefaultControllerGetBackpressure(controller);\n            WritableStreamUpdateBackpressure(stream, backpressure);\n        }\n        WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller);\n    }\n    // Abstract operations for the WritableStreamDefaultController.\n    function WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller) {\n        var stream = controller._controlledWritableStream;\n        if (!controller._started) {\n            return;\n        }\n        if (stream._inFlightWriteRequest !== undefined) {\n            return;\n        }\n        var state = stream._state;\n        if (state === 'erroring') {\n            WritableStreamFinishErroring(stream);\n            return;\n        }\n        if (controller._queue.length === 0) {\n            return;\n        }\n        var value = PeekQueueValue(controller);\n        if (value === closeSentinel) {\n            WritableStreamDefaultControllerProcessClose(controller);\n        }\n        else {\n            WritableStreamDefaultControllerProcessWrite(controller, value);\n        }\n    }\n    function WritableStreamDefaultControllerErrorIfNeeded(controller, error) {\n        if (controller._controlledWritableStream._state === 'writable') {\n            WritableStreamDefaultControllerError(controller, error);\n        }\n    }\n    function WritableStreamDefaultControllerProcessClose(controller) {\n        var stream = controller._controlledWritableStream;\n        WritableStreamMarkCloseRequestInFlight(stream);\n        DequeueValue(controller);\n        var sinkClosePromise = controller._closeAlgorithm();\n        WritableStreamDefaultControllerClearAlgorithms(controller);\n        uponPromise(sinkClosePromise, function () {\n            WritableStreamFinishInFlightClose(stream);\n            return null;\n        }, function (reason) {\n            WritableStreamFinishInFlightCloseWithError(stream, reason);\n            return null;\n        });\n    }\n    function WritableStreamDefaultControllerProcessWrite(controller, chunk) {\n        var stream = controller._controlledWritableStream;\n        WritableStreamMarkFirstWriteRequestInFlight(stream);\n        var sinkWritePromise = controller._writeAlgorithm(chunk);\n        uponPromise(sinkWritePromise, function () {\n            WritableStreamFinishInFlightWrite(stream);\n            var state = stream._state;\n            DequeueValue(controller);\n            if (!WritableStreamCloseQueuedOrInFlight(stream) && state === 'writable') {\n                var backpressure = WritableStreamDefaultControllerGetBackpressure(controller);\n                WritableStreamUpdateBackpressure(stream, backpressure);\n            }\n            WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller);\n            return null;\n        }, function (reason) {\n            if (stream._state === 'writable') {\n                WritableStreamDefaultControllerClearAlgorithms(controller);\n            }\n            WritableStreamFinishInFlightWriteWithError(stream, reason);\n            return null;\n        });\n    }\n    function WritableStreamDefaultControllerGetBackpressure(controller) {\n        var desiredSize = WritableStreamDefaultControllerGetDesiredSize(controller);\n        return desiredSize <= 0;\n    }\n    // A client of WritableStreamDefaultController may use these functions directly to bypass state check.\n    function WritableStreamDefaultControllerError(controller, error) {\n        var stream = controller._controlledWritableStream;\n        WritableStreamDefaultControllerClearAlgorithms(controller);\n        WritableStreamStartErroring(stream, error);\n    }\n    // Helper functions for the WritableStream.\n    function streamBrandCheckException$2(name) {\n        return new TypeError(\"WritableStream.prototype.\".concat(name, \" can only be used on a WritableStream\"));\n    }\n    // Helper functions for the WritableStreamDefaultController.\n    function defaultControllerBrandCheckException$2(name) {\n        return new TypeError(\"WritableStreamDefaultController.prototype.\".concat(name, \" can only be used on a WritableStreamDefaultController\"));\n    }\n    // Helper functions for the WritableStreamDefaultWriter.\n    function defaultWriterBrandCheckException(name) {\n        return new TypeError(\"WritableStreamDefaultWriter.prototype.\".concat(name, \" can only be used on a WritableStreamDefaultWriter\"));\n    }\n    function defaultWriterLockException(name) {\n        return new TypeError('Cannot ' + name + ' a stream using a released writer');\n    }\n    function defaultWriterClosedPromiseInitialize(writer) {\n        writer._closedPromise = newPromise(function (resolve, reject) {\n            writer._closedPromise_resolve = resolve;\n            writer._closedPromise_reject = reject;\n            writer._closedPromiseState = 'pending';\n        });\n    }\n    function defaultWriterClosedPromiseInitializeAsRejected(writer, reason) {\n        defaultWriterClosedPromiseInitialize(writer);\n        defaultWriterClosedPromiseReject(writer, reason);\n    }\n    function defaultWriterClosedPromiseInitializeAsResolved(writer) {\n        defaultWriterClosedPromiseInitialize(writer);\n        defaultWriterClosedPromiseResolve(writer);\n    }\n    function defaultWriterClosedPromiseReject(writer, reason) {\n        if (writer._closedPromise_reject === undefined) {\n            return;\n        }\n        setPromiseIsHandledToTrue(writer._closedPromise);\n        writer._closedPromise_reject(reason);\n        writer._closedPromise_resolve = undefined;\n        writer._closedPromise_reject = undefined;\n        writer._closedPromiseState = 'rejected';\n    }\n    function defaultWriterClosedPromiseResetToRejected(writer, reason) {\n        defaultWriterClosedPromiseInitializeAsRejected(writer, reason);\n    }\n    function defaultWriterClosedPromiseResolve(writer) {\n        if (writer._closedPromise_resolve === undefined) {\n            return;\n        }\n        writer._closedPromise_resolve(undefined);\n        writer._closedPromise_resolve = undefined;\n        writer._closedPromise_reject = undefined;\n        writer._closedPromiseState = 'resolved';\n    }\n    function defaultWriterReadyPromiseInitialize(writer) {\n        writer._readyPromise = newPromise(function (resolve, reject) {\n            writer._readyPromise_resolve = resolve;\n            writer._readyPromise_reject = reject;\n        });\n        writer._readyPromiseState = 'pending';\n    }\n    function defaultWriterReadyPromiseInitializeAsRejected(writer, reason) {\n        defaultWriterReadyPromiseInitialize(writer);\n        defaultWriterReadyPromiseReject(writer, reason);\n    }\n    function defaultWriterReadyPromiseInitializeAsResolved(writer) {\n        defaultWriterReadyPromiseInitialize(writer);\n        defaultWriterReadyPromiseResolve(writer);\n    }\n    function defaultWriterReadyPromiseReject(writer, reason) {\n        if (writer._readyPromise_reject === undefined) {\n            return;\n        }\n        setPromiseIsHandledToTrue(writer._readyPromise);\n        writer._readyPromise_reject(reason);\n        writer._readyPromise_resolve = undefined;\n        writer._readyPromise_reject = undefined;\n        writer._readyPromiseState = 'rejected';\n    }\n    function defaultWriterReadyPromiseReset(writer) {\n        defaultWriterReadyPromiseInitialize(writer);\n    }\n    function defaultWriterReadyPromiseResetToRejected(writer, reason) {\n        defaultWriterReadyPromiseInitializeAsRejected(writer, reason);\n    }\n    function defaultWriterReadyPromiseResolve(writer) {\n        if (writer._readyPromise_resolve === undefined) {\n            return;\n        }\n        writer._readyPromise_resolve(undefined);\n        writer._readyPromise_resolve = undefined;\n        writer._readyPromise_reject = undefined;\n        writer._readyPromiseState = 'fulfilled';\n    }\n\n    /// <reference lib=\"dom\" />\n    function getGlobals() {\n        if (typeof globalThis !== 'undefined') {\n            return globalThis;\n        }\n        else if (typeof self !== 'undefined') {\n            return self;\n        }\n        else if (typeof __webpack_require__.g !== 'undefined') {\n            return __webpack_require__.g;\n        }\n        return undefined;\n    }\n    var globals = getGlobals();\n\n    /// <reference types=\"node\" />\n    function isDOMExceptionConstructor(ctor) {\n        if (!(typeof ctor === 'function' || typeof ctor === 'object')) {\n            return false;\n        }\n        if (ctor.name !== 'DOMException') {\n            return false;\n        }\n        try {\n            new ctor();\n            return true;\n        }\n        catch (_a) {\n            return false;\n        }\n    }\n    /**\n     * Support:\n     * - Web browsers\n     * - Node 18 and higher (https://github.com/nodejs/node/commit/e4b1fb5e6422c1ff151234bb9de792d45dd88d87)\n     */\n    function getFromGlobal() {\n        var ctor = globals === null || globals === void 0 ? void 0 : globals.DOMException;\n        return isDOMExceptionConstructor(ctor) ? ctor : undefined;\n    }\n    /**\n     * Support:\n     * - All platforms\n     */\n    function createPolyfill() {\n        // eslint-disable-next-line @typescript-eslint/no-shadow\n        var ctor = function DOMException(message, name) {\n            this.message = message || '';\n            this.name = name || 'Error';\n            if (Error.captureStackTrace) {\n                Error.captureStackTrace(this, this.constructor);\n            }\n        };\n        setFunctionName(ctor, 'DOMException');\n        ctor.prototype = Object.create(Error.prototype);\n        Object.defineProperty(ctor.prototype, 'constructor', { value: ctor, writable: true, configurable: true });\n        return ctor;\n    }\n    // eslint-disable-next-line @typescript-eslint/no-redeclare\n    var DOMException = getFromGlobal() || createPolyfill();\n\n    function ReadableStreamPipeTo(source, dest, preventClose, preventAbort, preventCancel, signal) {\n        var reader = AcquireReadableStreamDefaultReader(source);\n        var writer = AcquireWritableStreamDefaultWriter(dest);\n        source._disturbed = true;\n        var shuttingDown = false;\n        // This is used to keep track of the spec's requirement that we wait for ongoing writes during shutdown.\n        var currentWrite = promiseResolvedWith(undefined);\n        return newPromise(function (resolve, reject) {\n            var abortAlgorithm;\n            if (signal !== undefined) {\n                abortAlgorithm = function () {\n                    var error = signal.reason !== undefined ? signal.reason : new DOMException('Aborted', 'AbortError');\n                    var actions = [];\n                    if (!preventAbort) {\n                        actions.push(function () {\n                            if (dest._state === 'writable') {\n                                return WritableStreamAbort(dest, error);\n                            }\n                            return promiseResolvedWith(undefined);\n                        });\n                    }\n                    if (!preventCancel) {\n                        actions.push(function () {\n                            if (source._state === 'readable') {\n                                return ReadableStreamCancel(source, error);\n                            }\n                            return promiseResolvedWith(undefined);\n                        });\n                    }\n                    shutdownWithAction(function () { return Promise.all(actions.map(function (action) { return action(); })); }, true, error);\n                };\n                if (signal.aborted) {\n                    abortAlgorithm();\n                    return;\n                }\n                signal.addEventListener('abort', abortAlgorithm);\n            }\n            // Using reader and writer, read all chunks from this and write them to dest\n            // - Backpressure must be enforced\n            // - Shutdown must stop all activity\n            function pipeLoop() {\n                return newPromise(function (resolveLoop, rejectLoop) {\n                    function next(done) {\n                        if (done) {\n                            resolveLoop();\n                        }\n                        else {\n                            // Use `PerformPromiseThen` instead of `uponPromise` to avoid\n                            // adding unnecessary `.catch(rethrowAssertionErrorRejection)` handlers\n                            PerformPromiseThen(pipeStep(), next, rejectLoop);\n                        }\n                    }\n                    next(false);\n                });\n            }\n            function pipeStep() {\n                if (shuttingDown) {\n                    return promiseResolvedWith(true);\n                }\n                return PerformPromiseThen(writer._readyPromise, function () {\n                    return newPromise(function (resolveRead, rejectRead) {\n                        ReadableStreamDefaultReaderRead(reader, {\n                            _chunkSteps: function (chunk) {\n                                currentWrite = PerformPromiseThen(WritableStreamDefaultWriterWrite(writer, chunk), undefined, noop);\n                                resolveRead(false);\n                            },\n                            _closeSteps: function () { return resolveRead(true); },\n                            _errorSteps: rejectRead\n                        });\n                    });\n                });\n            }\n            // Errors must be propagated forward\n            isOrBecomesErrored(source, reader._closedPromise, function (storedError) {\n                if (!preventAbort) {\n                    shutdownWithAction(function () { return WritableStreamAbort(dest, storedError); }, true, storedError);\n                }\n                else {\n                    shutdown(true, storedError);\n                }\n                return null;\n            });\n            // Errors must be propagated backward\n            isOrBecomesErrored(dest, writer._closedPromise, function (storedError) {\n                if (!preventCancel) {\n                    shutdownWithAction(function () { return ReadableStreamCancel(source, storedError); }, true, storedError);\n                }\n                else {\n                    shutdown(true, storedError);\n                }\n                return null;\n            });\n            // Closing must be propagated forward\n            isOrBecomesClosed(source, reader._closedPromise, function () {\n                if (!preventClose) {\n                    shutdownWithAction(function () { return WritableStreamDefaultWriterCloseWithErrorPropagation(writer); });\n                }\n                else {\n                    shutdown();\n                }\n                return null;\n            });\n            // Closing must be propagated backward\n            if (WritableStreamCloseQueuedOrInFlight(dest) || dest._state === 'closed') {\n                var destClosed_1 = new TypeError('the destination writable stream closed before all data could be piped to it');\n                if (!preventCancel) {\n                    shutdownWithAction(function () { return ReadableStreamCancel(source, destClosed_1); }, true, destClosed_1);\n                }\n                else {\n                    shutdown(true, destClosed_1);\n                }\n            }\n            setPromiseIsHandledToTrue(pipeLoop());\n            function waitForWritesToFinish() {\n                // Another write may have started while we were waiting on this currentWrite, so we have to be sure to wait\n                // for that too.\n                var oldCurrentWrite = currentWrite;\n                return PerformPromiseThen(currentWrite, function () { return oldCurrentWrite !== currentWrite ? waitForWritesToFinish() : undefined; });\n            }\n            function isOrBecomesErrored(stream, promise, action) {\n                if (stream._state === 'errored') {\n                    action(stream._storedError);\n                }\n                else {\n                    uponRejection(promise, action);\n                }\n            }\n            function isOrBecomesClosed(stream, promise, action) {\n                if (stream._state === 'closed') {\n                    action();\n                }\n                else {\n                    uponFulfillment(promise, action);\n                }\n            }\n            function shutdownWithAction(action, originalIsError, originalError) {\n                if (shuttingDown) {\n                    return;\n                }\n                shuttingDown = true;\n                if (dest._state === 'writable' && !WritableStreamCloseQueuedOrInFlight(dest)) {\n                    uponFulfillment(waitForWritesToFinish(), doTheRest);\n                }\n                else {\n                    doTheRest();\n                }\n                function doTheRest() {\n                    uponPromise(action(), function () { return finalize(originalIsError, originalError); }, function (newError) { return finalize(true, newError); });\n                    return null;\n                }\n            }\n            function shutdown(isError, error) {\n                if (shuttingDown) {\n                    return;\n                }\n                shuttingDown = true;\n                if (dest._state === 'writable' && !WritableStreamCloseQueuedOrInFlight(dest)) {\n                    uponFulfillment(waitForWritesToFinish(), function () { return finalize(isError, error); });\n                }\n                else {\n                    finalize(isError, error);\n                }\n            }\n            function finalize(isError, error) {\n                WritableStreamDefaultWriterRelease(writer);\n                ReadableStreamReaderGenericRelease(reader);\n                if (signal !== undefined) {\n                    signal.removeEventListener('abort', abortAlgorithm);\n                }\n                if (isError) {\n                    reject(error);\n                }\n                else {\n                    resolve(undefined);\n                }\n                return null;\n            }\n        });\n    }\n\n    /**\n     * Allows control of a {@link ReadableStream | readable stream}'s state and internal queue.\n     *\n     * @public\n     */\n    var ReadableStreamDefaultController = /** @class */ (function () {\n        function ReadableStreamDefaultController() {\n            throw new TypeError('Illegal constructor');\n        }\n        Object.defineProperty(ReadableStreamDefaultController.prototype, \"desiredSize\", {\n            /**\n             * Returns the desired size to fill the controlled stream's internal queue. It can be negative, if the queue is\n             * over-full. An underlying source ought to use this information to determine when and how to apply backpressure.\n             */\n            get: function () {\n                if (!IsReadableStreamDefaultController(this)) {\n                    throw defaultControllerBrandCheckException$1('desiredSize');\n                }\n                return ReadableStreamDefaultControllerGetDesiredSize(this);\n            },\n            enumerable: false,\n            configurable: true\n        });\n        /**\n         * Closes the controlled readable stream. Consumers will still be able to read any previously-enqueued chunks from\n         * the stream, but once those are read, the stream will become closed.\n         */\n        ReadableStreamDefaultController.prototype.close = function () {\n            if (!IsReadableStreamDefaultController(this)) {\n                throw defaultControllerBrandCheckException$1('close');\n            }\n            if (!ReadableStreamDefaultControllerCanCloseOrEnqueue(this)) {\n                throw new TypeError('The stream is not in a state that permits close');\n            }\n            ReadableStreamDefaultControllerClose(this);\n        };\n        ReadableStreamDefaultController.prototype.enqueue = function (chunk) {\n            if (chunk === void 0) { chunk = undefined; }\n            if (!IsReadableStreamDefaultController(this)) {\n                throw defaultControllerBrandCheckException$1('enqueue');\n            }\n            if (!ReadableStreamDefaultControllerCanCloseOrEnqueue(this)) {\n                throw new TypeError('The stream is not in a state that permits enqueue');\n            }\n            return ReadableStreamDefaultControllerEnqueue(this, chunk);\n        };\n        /**\n         * Errors the controlled readable stream, making all future interactions with it fail with the given error `e`.\n         */\n        ReadableStreamDefaultController.prototype.error = function (e) {\n            if (e === void 0) { e = undefined; }\n            if (!IsReadableStreamDefaultController(this)) {\n                throw defaultControllerBrandCheckException$1('error');\n            }\n            ReadableStreamDefaultControllerError(this, e);\n        };\n        /** @internal */\n        ReadableStreamDefaultController.prototype[CancelSteps] = function (reason) {\n            ResetQueue(this);\n            var result = this._cancelAlgorithm(reason);\n            ReadableStreamDefaultControllerClearAlgorithms(this);\n            return result;\n        };\n        /** @internal */\n        ReadableStreamDefaultController.prototype[PullSteps] = function (readRequest) {\n            var stream = this._controlledReadableStream;\n            if (this._queue.length > 0) {\n                var chunk = DequeueValue(this);\n                if (this._closeRequested && this._queue.length === 0) {\n                    ReadableStreamDefaultControllerClearAlgorithms(this);\n                    ReadableStreamClose(stream);\n                }\n                else {\n                    ReadableStreamDefaultControllerCallPullIfNeeded(this);\n                }\n                readRequest._chunkSteps(chunk);\n            }\n            else {\n                ReadableStreamAddReadRequest(stream, readRequest);\n                ReadableStreamDefaultControllerCallPullIfNeeded(this);\n            }\n        };\n        /** @internal */\n        ReadableStreamDefaultController.prototype[ReleaseSteps] = function () {\n            // Do nothing.\n        };\n        return ReadableStreamDefaultController;\n    }());\n    Object.defineProperties(ReadableStreamDefaultController.prototype, {\n        close: { enumerable: true },\n        enqueue: { enumerable: true },\n        error: { enumerable: true },\n        desiredSize: { enumerable: true }\n    });\n    setFunctionName(ReadableStreamDefaultController.prototype.close, 'close');\n    setFunctionName(ReadableStreamDefaultController.prototype.enqueue, 'enqueue');\n    setFunctionName(ReadableStreamDefaultController.prototype.error, 'error');\n    if (typeof SymbolPolyfill.toStringTag === 'symbol') {\n        Object.defineProperty(ReadableStreamDefaultController.prototype, SymbolPolyfill.toStringTag, {\n            value: 'ReadableStreamDefaultController',\n            configurable: true\n        });\n    }\n    // Abstract operations for the ReadableStreamDefaultController.\n    function IsReadableStreamDefaultController(x) {\n        if (!typeIsObject(x)) {\n            return false;\n        }\n        if (!Object.prototype.hasOwnProperty.call(x, '_controlledReadableStream')) {\n            return false;\n        }\n        return x instanceof ReadableStreamDefaultController;\n    }\n    function ReadableStreamDefaultControllerCallPullIfNeeded(controller) {\n        var shouldPull = ReadableStreamDefaultControllerShouldCallPull(controller);\n        if (!shouldPull) {\n            return;\n        }\n        if (controller._pulling) {\n            controller._pullAgain = true;\n            return;\n        }\n        controller._pulling = true;\n        var pullPromise = controller._pullAlgorithm();\n        uponPromise(pullPromise, function () {\n            controller._pulling = false;\n            if (controller._pullAgain) {\n                controller._pullAgain = false;\n                ReadableStreamDefaultControllerCallPullIfNeeded(controller);\n            }\n            return null;\n        }, function (e) {\n            ReadableStreamDefaultControllerError(controller, e);\n            return null;\n        });\n    }\n    function ReadableStreamDefaultControllerShouldCallPull(controller) {\n        var stream = controller._controlledReadableStream;\n        if (!ReadableStreamDefaultControllerCanCloseOrEnqueue(controller)) {\n            return false;\n        }\n        if (!controller._started) {\n            return false;\n        }\n        if (IsReadableStreamLocked(stream) && ReadableStreamGetNumReadRequests(stream) > 0) {\n            return true;\n        }\n        var desiredSize = ReadableStreamDefaultControllerGetDesiredSize(controller);\n        if (desiredSize > 0) {\n            return true;\n        }\n        return false;\n    }\n    function ReadableStreamDefaultControllerClearAlgorithms(controller) {\n        controller._pullAlgorithm = undefined;\n        controller._cancelAlgorithm = undefined;\n        controller._strategySizeAlgorithm = undefined;\n    }\n    // A client of ReadableStreamDefaultController may use these functions directly to bypass state check.\n    function ReadableStreamDefaultControllerClose(controller) {\n        if (!ReadableStreamDefaultControllerCanCloseOrEnqueue(controller)) {\n            return;\n        }\n        var stream = controller._controlledReadableStream;\n        controller._closeRequested = true;\n        if (controller._queue.length === 0) {\n            ReadableStreamDefaultControllerClearAlgorithms(controller);\n            ReadableStreamClose(stream);\n        }\n    }\n    function ReadableStreamDefaultControllerEnqueue(controller, chunk) {\n        if (!ReadableStreamDefaultControllerCanCloseOrEnqueue(controller)) {\n            return;\n        }\n        var stream = controller._controlledReadableStream;\n        if (IsReadableStreamLocked(stream) && ReadableStreamGetNumReadRequests(stream) > 0) {\n            ReadableStreamFulfillReadRequest(stream, chunk, false);\n        }\n        else {\n            var chunkSize = void 0;\n            try {\n                chunkSize = controller._strategySizeAlgorithm(chunk);\n            }\n            catch (chunkSizeE) {\n                ReadableStreamDefaultControllerError(controller, chunkSizeE);\n                throw chunkSizeE;\n            }\n            try {\n                EnqueueValueWithSize(controller, chunk, chunkSize);\n            }\n            catch (enqueueE) {\n                ReadableStreamDefaultControllerError(controller, enqueueE);\n                throw enqueueE;\n            }\n        }\n        ReadableStreamDefaultControllerCallPullIfNeeded(controller);\n    }\n    function ReadableStreamDefaultControllerError(controller, e) {\n        var stream = controller._controlledReadableStream;\n        if (stream._state !== 'readable') {\n            return;\n        }\n        ResetQueue(controller);\n        ReadableStreamDefaultControllerClearAlgorithms(controller);\n        ReadableStreamError(stream, e);\n    }\n    function ReadableStreamDefaultControllerGetDesiredSize(controller) {\n        var state = controller._controlledReadableStream._state;\n        if (state === 'errored') {\n            return null;\n        }\n        if (state === 'closed') {\n            return 0;\n        }\n        return controller._strategyHWM - controller._queueTotalSize;\n    }\n    // This is used in the implementation of TransformStream.\n    function ReadableStreamDefaultControllerHasBackpressure(controller) {\n        if (ReadableStreamDefaultControllerShouldCallPull(controller)) {\n            return false;\n        }\n        return true;\n    }\n    function ReadableStreamDefaultControllerCanCloseOrEnqueue(controller) {\n        var state = controller._controlledReadableStream._state;\n        if (!controller._closeRequested && state === 'readable') {\n            return true;\n        }\n        return false;\n    }\n    function SetUpReadableStreamDefaultController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, sizeAlgorithm) {\n        controller._controlledReadableStream = stream;\n        controller._queue = undefined;\n        controller._queueTotalSize = undefined;\n        ResetQueue(controller);\n        controller._started = false;\n        controller._closeRequested = false;\n        controller._pullAgain = false;\n        controller._pulling = false;\n        controller._strategySizeAlgorithm = sizeAlgorithm;\n        controller._strategyHWM = highWaterMark;\n        controller._pullAlgorithm = pullAlgorithm;\n        controller._cancelAlgorithm = cancelAlgorithm;\n        stream._readableStreamController = controller;\n        var startResult = startAlgorithm();\n        uponPromise(promiseResolvedWith(startResult), function () {\n            controller._started = true;\n            ReadableStreamDefaultControllerCallPullIfNeeded(controller);\n            return null;\n        }, function (r) {\n            ReadableStreamDefaultControllerError(controller, r);\n            return null;\n        });\n    }\n    function SetUpReadableStreamDefaultControllerFromUnderlyingSource(stream, underlyingSource, highWaterMark, sizeAlgorithm) {\n        var controller = Object.create(ReadableStreamDefaultController.prototype);\n        var startAlgorithm;\n        var pullAlgorithm;\n        var cancelAlgorithm;\n        if (underlyingSource.start !== undefined) {\n            startAlgorithm = function () { return underlyingSource.start(controller); };\n        }\n        else {\n            startAlgorithm = function () { return undefined; };\n        }\n        if (underlyingSource.pull !== undefined) {\n            pullAlgorithm = function () { return underlyingSource.pull(controller); };\n        }\n        else {\n            pullAlgorithm = function () { return promiseResolvedWith(undefined); };\n        }\n        if (underlyingSource.cancel !== undefined) {\n            cancelAlgorithm = function (reason) { return underlyingSource.cancel(reason); };\n        }\n        else {\n            cancelAlgorithm = function () { return promiseResolvedWith(undefined); };\n        }\n        SetUpReadableStreamDefaultController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, sizeAlgorithm);\n    }\n    // Helper functions for the ReadableStreamDefaultController.\n    function defaultControllerBrandCheckException$1(name) {\n        return new TypeError(\"ReadableStreamDefaultController.prototype.\".concat(name, \" can only be used on a ReadableStreamDefaultController\"));\n    }\n\n    function ReadableStreamTee(stream, cloneForBranch2) {\n        if (IsReadableByteStreamController(stream._readableStreamController)) {\n            return ReadableByteStreamTee(stream);\n        }\n        return ReadableStreamDefaultTee(stream);\n    }\n    function ReadableStreamDefaultTee(stream, cloneForBranch2) {\n        var reader = AcquireReadableStreamDefaultReader(stream);\n        var reading = false;\n        var readAgain = false;\n        var canceled1 = false;\n        var canceled2 = false;\n        var reason1;\n        var reason2;\n        var branch1;\n        var branch2;\n        var resolveCancelPromise;\n        var cancelPromise = newPromise(function (resolve) {\n            resolveCancelPromise = resolve;\n        });\n        function pullAlgorithm() {\n            if (reading) {\n                readAgain = true;\n                return promiseResolvedWith(undefined);\n            }\n            reading = true;\n            var readRequest = {\n                _chunkSteps: function (chunk) {\n                    // This needs to be delayed a microtask because it takes at least a microtask to detect errors (using\n                    // reader._closedPromise below), and we want errors in stream to error both branches immediately. We cannot let\n                    // successful synchronously-available reads get ahead of asynchronously-available errors.\n                    _queueMicrotask(function () {\n                        readAgain = false;\n                        var chunk1 = chunk;\n                        var chunk2 = chunk;\n                        // There is no way to access the cloning code right now in the reference implementation.\n                        // If we add one then we'll need an implementation for serializable objects.\n                        // if (!canceled2 && cloneForBranch2) {\n                        //   chunk2 = StructuredDeserialize(StructuredSerialize(chunk2));\n                        // }\n                        if (!canceled1) {\n                            ReadableStreamDefaultControllerEnqueue(branch1._readableStreamController, chunk1);\n                        }\n                        if (!canceled2) {\n                            ReadableStreamDefaultControllerEnqueue(branch2._readableStreamController, chunk2);\n                        }\n                        reading = false;\n                        if (readAgain) {\n                            pullAlgorithm();\n                        }\n                    });\n                },\n                _closeSteps: function () {\n                    reading = false;\n                    if (!canceled1) {\n                        ReadableStreamDefaultControllerClose(branch1._readableStreamController);\n                    }\n                    if (!canceled2) {\n                        ReadableStreamDefaultControllerClose(branch2._readableStreamController);\n                    }\n                    if (!canceled1 || !canceled2) {\n                        resolveCancelPromise(undefined);\n                    }\n                },\n                _errorSteps: function () {\n                    reading = false;\n                }\n            };\n            ReadableStreamDefaultReaderRead(reader, readRequest);\n            return promiseResolvedWith(undefined);\n        }\n        function cancel1Algorithm(reason) {\n            canceled1 = true;\n            reason1 = reason;\n            if (canceled2) {\n                var compositeReason = CreateArrayFromList([reason1, reason2]);\n                var cancelResult = ReadableStreamCancel(stream, compositeReason);\n                resolveCancelPromise(cancelResult);\n            }\n            return cancelPromise;\n        }\n        function cancel2Algorithm(reason) {\n            canceled2 = true;\n            reason2 = reason;\n            if (canceled1) {\n                var compositeReason = CreateArrayFromList([reason1, reason2]);\n                var cancelResult = ReadableStreamCancel(stream, compositeReason);\n                resolveCancelPromise(cancelResult);\n            }\n            return cancelPromise;\n        }\n        function startAlgorithm() {\n            // do nothing\n        }\n        branch1 = CreateReadableStream(startAlgorithm, pullAlgorithm, cancel1Algorithm);\n        branch2 = CreateReadableStream(startAlgorithm, pullAlgorithm, cancel2Algorithm);\n        uponRejection(reader._closedPromise, function (r) {\n            ReadableStreamDefaultControllerError(branch1._readableStreamController, r);\n            ReadableStreamDefaultControllerError(branch2._readableStreamController, r);\n            if (!canceled1 || !canceled2) {\n                resolveCancelPromise(undefined);\n            }\n            return null;\n        });\n        return [branch1, branch2];\n    }\n    function ReadableByteStreamTee(stream) {\n        var reader = AcquireReadableStreamDefaultReader(stream);\n        var reading = false;\n        var readAgainForBranch1 = false;\n        var readAgainForBranch2 = false;\n        var canceled1 = false;\n        var canceled2 = false;\n        var reason1;\n        var reason2;\n        var branch1;\n        var branch2;\n        var resolveCancelPromise;\n        var cancelPromise = newPromise(function (resolve) {\n            resolveCancelPromise = resolve;\n        });\n        function forwardReaderError(thisReader) {\n            uponRejection(thisReader._closedPromise, function (r) {\n                if (thisReader !== reader) {\n                    return null;\n                }\n                ReadableByteStreamControllerError(branch1._readableStreamController, r);\n                ReadableByteStreamControllerError(branch2._readableStreamController, r);\n                if (!canceled1 || !canceled2) {\n                    resolveCancelPromise(undefined);\n                }\n                return null;\n            });\n        }\n        function pullWithDefaultReader() {\n            if (IsReadableStreamBYOBReader(reader)) {\n                ReadableStreamReaderGenericRelease(reader);\n                reader = AcquireReadableStreamDefaultReader(stream);\n                forwardReaderError(reader);\n            }\n            var readRequest = {\n                _chunkSteps: function (chunk) {\n                    // This needs to be delayed a microtask because it takes at least a microtask to detect errors (using\n                    // reader._closedPromise below), and we want errors in stream to error both branches immediately. We cannot let\n                    // successful synchronously-available reads get ahead of asynchronously-available errors.\n                    _queueMicrotask(function () {\n                        readAgainForBranch1 = false;\n                        readAgainForBranch2 = false;\n                        var chunk1 = chunk;\n                        var chunk2 = chunk;\n                        if (!canceled1 && !canceled2) {\n                            try {\n                                chunk2 = CloneAsUint8Array(chunk);\n                            }\n                            catch (cloneE) {\n                                ReadableByteStreamControllerError(branch1._readableStreamController, cloneE);\n                                ReadableByteStreamControllerError(branch2._readableStreamController, cloneE);\n                                resolveCancelPromise(ReadableStreamCancel(stream, cloneE));\n                                return;\n                            }\n                        }\n                        if (!canceled1) {\n                            ReadableByteStreamControllerEnqueue(branch1._readableStreamController, chunk1);\n                        }\n                        if (!canceled2) {\n                            ReadableByteStreamControllerEnqueue(branch2._readableStreamController, chunk2);\n                        }\n                        reading = false;\n                        if (readAgainForBranch1) {\n                            pull1Algorithm();\n                        }\n                        else if (readAgainForBranch2) {\n                            pull2Algorithm();\n                        }\n                    });\n                },\n                _closeSteps: function () {\n                    reading = false;\n                    if (!canceled1) {\n                        ReadableByteStreamControllerClose(branch1._readableStreamController);\n                    }\n                    if (!canceled2) {\n                        ReadableByteStreamControllerClose(branch2._readableStreamController);\n                    }\n                    if (branch1._readableStreamController._pendingPullIntos.length > 0) {\n                        ReadableByteStreamControllerRespond(branch1._readableStreamController, 0);\n                    }\n                    if (branch2._readableStreamController._pendingPullIntos.length > 0) {\n                        ReadableByteStreamControllerRespond(branch2._readableStreamController, 0);\n                    }\n                    if (!canceled1 || !canceled2) {\n                        resolveCancelPromise(undefined);\n                    }\n                },\n                _errorSteps: function () {\n                    reading = false;\n                }\n            };\n            ReadableStreamDefaultReaderRead(reader, readRequest);\n        }\n        function pullWithBYOBReader(view, forBranch2) {\n            if (IsReadableStreamDefaultReader(reader)) {\n                ReadableStreamReaderGenericRelease(reader);\n                reader = AcquireReadableStreamBYOBReader(stream);\n                forwardReaderError(reader);\n            }\n            var byobBranch = forBranch2 ? branch2 : branch1;\n            var otherBranch = forBranch2 ? branch1 : branch2;\n            var readIntoRequest = {\n                _chunkSteps: function (chunk) {\n                    // This needs to be delayed a microtask because it takes at least a microtask to detect errors (using\n                    // reader._closedPromise below), and we want errors in stream to error both branches immediately. We cannot let\n                    // successful synchronously-available reads get ahead of asynchronously-available errors.\n                    _queueMicrotask(function () {\n                        readAgainForBranch1 = false;\n                        readAgainForBranch2 = false;\n                        var byobCanceled = forBranch2 ? canceled2 : canceled1;\n                        var otherCanceled = forBranch2 ? canceled1 : canceled2;\n                        if (!otherCanceled) {\n                            var clonedChunk = void 0;\n                            try {\n                                clonedChunk = CloneAsUint8Array(chunk);\n                            }\n                            catch (cloneE) {\n                                ReadableByteStreamControllerError(byobBranch._readableStreamController, cloneE);\n                                ReadableByteStreamControllerError(otherBranch._readableStreamController, cloneE);\n                                resolveCancelPromise(ReadableStreamCancel(stream, cloneE));\n                                return;\n                            }\n                            if (!byobCanceled) {\n                                ReadableByteStreamControllerRespondWithNewView(byobBranch._readableStreamController, chunk);\n                            }\n                            ReadableByteStreamControllerEnqueue(otherBranch._readableStreamController, clonedChunk);\n                        }\n                        else if (!byobCanceled) {\n                            ReadableByteStreamControllerRespondWithNewView(byobBranch._readableStreamController, chunk);\n                        }\n                        reading = false;\n                        if (readAgainForBranch1) {\n                            pull1Algorithm();\n                        }\n                        else if (readAgainForBranch2) {\n                            pull2Algorithm();\n                        }\n                    });\n                },\n                _closeSteps: function (chunk) {\n                    reading = false;\n                    var byobCanceled = forBranch2 ? canceled2 : canceled1;\n                    var otherCanceled = forBranch2 ? canceled1 : canceled2;\n                    if (!byobCanceled) {\n                        ReadableByteStreamControllerClose(byobBranch._readableStreamController);\n                    }\n                    if (!otherCanceled) {\n                        ReadableByteStreamControllerClose(otherBranch._readableStreamController);\n                    }\n                    if (chunk !== undefined) {\n                        if (!byobCanceled) {\n                            ReadableByteStreamControllerRespondWithNewView(byobBranch._readableStreamController, chunk);\n                        }\n                        if (!otherCanceled && otherBranch._readableStreamController._pendingPullIntos.length > 0) {\n                            ReadableByteStreamControllerRespond(otherBranch._readableStreamController, 0);\n                        }\n                    }\n                    if (!byobCanceled || !otherCanceled) {\n                        resolveCancelPromise(undefined);\n                    }\n                },\n                _errorSteps: function () {\n                    reading = false;\n                }\n            };\n            ReadableStreamBYOBReaderRead(reader, view, 1, readIntoRequest);\n        }\n        function pull1Algorithm() {\n            if (reading) {\n                readAgainForBranch1 = true;\n                return promiseResolvedWith(undefined);\n            }\n            reading = true;\n            var byobRequest = ReadableByteStreamControllerGetBYOBRequest(branch1._readableStreamController);\n            if (byobRequest === null) {\n                pullWithDefaultReader();\n            }\n            else {\n                pullWithBYOBReader(byobRequest._view, false);\n            }\n            return promiseResolvedWith(undefined);\n        }\n        function pull2Algorithm() {\n            if (reading) {\n                readAgainForBranch2 = true;\n                return promiseResolvedWith(undefined);\n            }\n            reading = true;\n            var byobRequest = ReadableByteStreamControllerGetBYOBRequest(branch2._readableStreamController);\n            if (byobRequest === null) {\n                pullWithDefaultReader();\n            }\n            else {\n                pullWithBYOBReader(byobRequest._view, true);\n            }\n            return promiseResolvedWith(undefined);\n        }\n        function cancel1Algorithm(reason) {\n            canceled1 = true;\n            reason1 = reason;\n            if (canceled2) {\n                var compositeReason = CreateArrayFromList([reason1, reason2]);\n                var cancelResult = ReadableStreamCancel(stream, compositeReason);\n                resolveCancelPromise(cancelResult);\n            }\n            return cancelPromise;\n        }\n        function cancel2Algorithm(reason) {\n            canceled2 = true;\n            reason2 = reason;\n            if (canceled1) {\n                var compositeReason = CreateArrayFromList([reason1, reason2]);\n                var cancelResult = ReadableStreamCancel(stream, compositeReason);\n                resolveCancelPromise(cancelResult);\n            }\n            return cancelPromise;\n        }\n        function startAlgorithm() {\n            return;\n        }\n        branch1 = CreateReadableByteStream(startAlgorithm, pull1Algorithm, cancel1Algorithm);\n        branch2 = CreateReadableByteStream(startAlgorithm, pull2Algorithm, cancel2Algorithm);\n        forwardReaderError(reader);\n        return [branch1, branch2];\n    }\n\n    function isReadableStreamLike(stream) {\n        return typeIsObject(stream) && typeof stream.getReader !== 'undefined';\n    }\n\n    function ReadableStreamFrom(source) {\n        if (isReadableStreamLike(source)) {\n            return ReadableStreamFromDefaultReader(source.getReader());\n        }\n        return ReadableStreamFromIterable(source);\n    }\n    function ReadableStreamFromIterable(asyncIterable) {\n        var stream;\n        var iteratorRecord = GetIterator(asyncIterable, 'async');\n        var startAlgorithm = noop;\n        function pullAlgorithm() {\n            var nextResult;\n            try {\n                nextResult = IteratorNext(iteratorRecord);\n            }\n            catch (e) {\n                return promiseRejectedWith(e);\n            }\n            var nextPromise = promiseResolvedWith(nextResult);\n            return transformPromiseWith(nextPromise, function (iterResult) {\n                if (!typeIsObject(iterResult)) {\n                    throw new TypeError('The promise returned by the iterator.next() method must fulfill with an object');\n                }\n                var done = IteratorComplete(iterResult);\n                if (done) {\n                    ReadableStreamDefaultControllerClose(stream._readableStreamController);\n                }\n                else {\n                    var value = IteratorValue(iterResult);\n                    ReadableStreamDefaultControllerEnqueue(stream._readableStreamController, value);\n                }\n            });\n        }\n        function cancelAlgorithm(reason) {\n            var iterator = iteratorRecord.iterator;\n            var returnMethod;\n            try {\n                returnMethod = GetMethod(iterator, 'return');\n            }\n            catch (e) {\n                return promiseRejectedWith(e);\n            }\n            if (returnMethod === undefined) {\n                return promiseResolvedWith(undefined);\n            }\n            var returnResult;\n            try {\n                returnResult = reflectCall(returnMethod, iterator, [reason]);\n            }\n            catch (e) {\n                return promiseRejectedWith(e);\n            }\n            var returnPromise = promiseResolvedWith(returnResult);\n            return transformPromiseWith(returnPromise, function (iterResult) {\n                if (!typeIsObject(iterResult)) {\n                    throw new TypeError('The promise returned by the iterator.return() method must fulfill with an object');\n                }\n                return undefined;\n            });\n        }\n        stream = CreateReadableStream(startAlgorithm, pullAlgorithm, cancelAlgorithm, 0);\n        return stream;\n    }\n    function ReadableStreamFromDefaultReader(reader) {\n        var stream;\n        var startAlgorithm = noop;\n        function pullAlgorithm() {\n            var readPromise;\n            try {\n                readPromise = reader.read();\n            }\n            catch (e) {\n                return promiseRejectedWith(e);\n            }\n            return transformPromiseWith(readPromise, function (readResult) {\n                if (!typeIsObject(readResult)) {\n                    throw new TypeError('The promise returned by the reader.read() method must fulfill with an object');\n                }\n                if (readResult.done) {\n                    ReadableStreamDefaultControllerClose(stream._readableStreamController);\n                }\n                else {\n                    var value = readResult.value;\n                    ReadableStreamDefaultControllerEnqueue(stream._readableStreamController, value);\n                }\n            });\n        }\n        function cancelAlgorithm(reason) {\n            try {\n                return promiseResolvedWith(reader.cancel(reason));\n            }\n            catch (e) {\n                return promiseRejectedWith(e);\n            }\n        }\n        stream = CreateReadableStream(startAlgorithm, pullAlgorithm, cancelAlgorithm, 0);\n        return stream;\n    }\n\n    function convertUnderlyingDefaultOrByteSource(source, context) {\n        assertDictionary(source, context);\n        var original = source;\n        var autoAllocateChunkSize = original === null || original === void 0 ? void 0 : original.autoAllocateChunkSize;\n        var cancel = original === null || original === void 0 ? void 0 : original.cancel;\n        var pull = original === null || original === void 0 ? void 0 : original.pull;\n        var start = original === null || original === void 0 ? void 0 : original.start;\n        var type = original === null || original === void 0 ? void 0 : original.type;\n        return {\n            autoAllocateChunkSize: autoAllocateChunkSize === undefined ?\n                undefined :\n                convertUnsignedLongLongWithEnforceRange(autoAllocateChunkSize, \"\".concat(context, \" has member 'autoAllocateChunkSize' that\")),\n            cancel: cancel === undefined ?\n                undefined :\n                convertUnderlyingSourceCancelCallback(cancel, original, \"\".concat(context, \" has member 'cancel' that\")),\n            pull: pull === undefined ?\n                undefined :\n                convertUnderlyingSourcePullCallback(pull, original, \"\".concat(context, \" has member 'pull' that\")),\n            start: start === undefined ?\n                undefined :\n                convertUnderlyingSourceStartCallback(start, original, \"\".concat(context, \" has member 'start' that\")),\n            type: type === undefined ? undefined : convertReadableStreamType(type, \"\".concat(context, \" has member 'type' that\"))\n        };\n    }\n    function convertUnderlyingSourceCancelCallback(fn, original, context) {\n        assertFunction(fn, context);\n        return function (reason) { return promiseCall(fn, original, [reason]); };\n    }\n    function convertUnderlyingSourcePullCallback(fn, original, context) {\n        assertFunction(fn, context);\n        return function (controller) { return promiseCall(fn, original, [controller]); };\n    }\n    function convertUnderlyingSourceStartCallback(fn, original, context) {\n        assertFunction(fn, context);\n        return function (controller) { return reflectCall(fn, original, [controller]); };\n    }\n    function convertReadableStreamType(type, context) {\n        type = \"\".concat(type);\n        if (type !== 'bytes') {\n            throw new TypeError(\"\".concat(context, \" '\").concat(type, \"' is not a valid enumeration value for ReadableStreamType\"));\n        }\n        return type;\n    }\n\n    function convertIteratorOptions(options, context) {\n        assertDictionary(options, context);\n        var preventCancel = options === null || options === void 0 ? void 0 : options.preventCancel;\n        return { preventCancel: Boolean(preventCancel) };\n    }\n\n    function convertPipeOptions(options, context) {\n        assertDictionary(options, context);\n        var preventAbort = options === null || options === void 0 ? void 0 : options.preventAbort;\n        var preventCancel = options === null || options === void 0 ? void 0 : options.preventCancel;\n        var preventClose = options === null || options === void 0 ? void 0 : options.preventClose;\n        var signal = options === null || options === void 0 ? void 0 : options.signal;\n        if (signal !== undefined) {\n            assertAbortSignal(signal, \"\".concat(context, \" has member 'signal' that\"));\n        }\n        return {\n            preventAbort: Boolean(preventAbort),\n            preventCancel: Boolean(preventCancel),\n            preventClose: Boolean(preventClose),\n            signal: signal\n        };\n    }\n    function assertAbortSignal(signal, context) {\n        if (!isAbortSignal(signal)) {\n            throw new TypeError(\"\".concat(context, \" is not an AbortSignal.\"));\n        }\n    }\n\n    function convertReadableWritablePair(pair, context) {\n        assertDictionary(pair, context);\n        var readable = pair === null || pair === void 0 ? void 0 : pair.readable;\n        assertRequiredField(readable, 'readable', 'ReadableWritablePair');\n        assertReadableStream(readable, \"\".concat(context, \" has member 'readable' that\"));\n        var writable = pair === null || pair === void 0 ? void 0 : pair.writable;\n        assertRequiredField(writable, 'writable', 'ReadableWritablePair');\n        assertWritableStream(writable, \"\".concat(context, \" has member 'writable' that\"));\n        return { readable: readable, writable: writable };\n    }\n\n    /**\n     * A readable stream represents a source of data, from which you can read.\n     *\n     * @public\n     */\n    var ReadableStream = /** @class */ (function () {\n        function ReadableStream(rawUnderlyingSource, rawStrategy) {\n            if (rawUnderlyingSource === void 0) { rawUnderlyingSource = {}; }\n            if (rawStrategy === void 0) { rawStrategy = {}; }\n            if (rawUnderlyingSource === undefined) {\n                rawUnderlyingSource = null;\n            }\n            else {\n                assertObject(rawUnderlyingSource, 'First parameter');\n            }\n            var strategy = convertQueuingStrategy(rawStrategy, 'Second parameter');\n            var underlyingSource = convertUnderlyingDefaultOrByteSource(rawUnderlyingSource, 'First parameter');\n            InitializeReadableStream(this);\n            if (underlyingSource.type === 'bytes') {\n                if (strategy.size !== undefined) {\n                    throw new RangeError('The strategy for a byte stream cannot have a size function');\n                }\n                var highWaterMark = ExtractHighWaterMark(strategy, 0);\n                SetUpReadableByteStreamControllerFromUnderlyingSource(this, underlyingSource, highWaterMark);\n            }\n            else {\n                var sizeAlgorithm = ExtractSizeAlgorithm(strategy);\n                var highWaterMark = ExtractHighWaterMark(strategy, 1);\n                SetUpReadableStreamDefaultControllerFromUnderlyingSource(this, underlyingSource, highWaterMark, sizeAlgorithm);\n            }\n        }\n        Object.defineProperty(ReadableStream.prototype, \"locked\", {\n            /**\n             * Whether or not the readable stream is locked to a {@link ReadableStreamDefaultReader | reader}.\n             */\n            get: function () {\n                if (!IsReadableStream(this)) {\n                    throw streamBrandCheckException$1('locked');\n                }\n                return IsReadableStreamLocked(this);\n            },\n            enumerable: false,\n            configurable: true\n        });\n        /**\n         * Cancels the stream, signaling a loss of interest in the stream by a consumer.\n         *\n         * The supplied `reason` argument will be given to the underlying source's {@link UnderlyingSource.cancel | cancel()}\n         * method, which might or might not use it.\n         */\n        ReadableStream.prototype.cancel = function (reason) {\n            if (reason === void 0) { reason = undefined; }\n            if (!IsReadableStream(this)) {\n                return promiseRejectedWith(streamBrandCheckException$1('cancel'));\n            }\n            if (IsReadableStreamLocked(this)) {\n                return promiseRejectedWith(new TypeError('Cannot cancel a stream that already has a reader'));\n            }\n            return ReadableStreamCancel(this, reason);\n        };\n        ReadableStream.prototype.getReader = function (rawOptions) {\n            if (rawOptions === void 0) { rawOptions = undefined; }\n            if (!IsReadableStream(this)) {\n                throw streamBrandCheckException$1('getReader');\n            }\n            var options = convertReaderOptions(rawOptions, 'First parameter');\n            if (options.mode === undefined) {\n                return AcquireReadableStreamDefaultReader(this);\n            }\n            return AcquireReadableStreamBYOBReader(this);\n        };\n        ReadableStream.prototype.pipeThrough = function (rawTransform, rawOptions) {\n            if (rawOptions === void 0) { rawOptions = {}; }\n            if (!IsReadableStream(this)) {\n                throw streamBrandCheckException$1('pipeThrough');\n            }\n            assertRequiredArgument(rawTransform, 1, 'pipeThrough');\n            var transform = convertReadableWritablePair(rawTransform, 'First parameter');\n            var options = convertPipeOptions(rawOptions, 'Second parameter');\n            if (IsReadableStreamLocked(this)) {\n                throw new TypeError('ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream');\n            }\n            if (IsWritableStreamLocked(transform.writable)) {\n                throw new TypeError('ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream');\n            }\n            var promise = ReadableStreamPipeTo(this, transform.writable, options.preventClose, options.preventAbort, options.preventCancel, options.signal);\n            setPromiseIsHandledToTrue(promise);\n            return transform.readable;\n        };\n        ReadableStream.prototype.pipeTo = function (destination, rawOptions) {\n            if (rawOptions === void 0) { rawOptions = {}; }\n            if (!IsReadableStream(this)) {\n                return promiseRejectedWith(streamBrandCheckException$1('pipeTo'));\n            }\n            if (destination === undefined) {\n                return promiseRejectedWith(\"Parameter 1 is required in 'pipeTo'.\");\n            }\n            if (!IsWritableStream(destination)) {\n                return promiseRejectedWith(new TypeError(\"ReadableStream.prototype.pipeTo's first argument must be a WritableStream\"));\n            }\n            var options;\n            try {\n                options = convertPipeOptions(rawOptions, 'Second parameter');\n            }\n            catch (e) {\n                return promiseRejectedWith(e);\n            }\n            if (IsReadableStreamLocked(this)) {\n                return promiseRejectedWith(new TypeError('ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream'));\n            }\n            if (IsWritableStreamLocked(destination)) {\n                return promiseRejectedWith(new TypeError('ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream'));\n            }\n            return ReadableStreamPipeTo(this, destination, options.preventClose, options.preventAbort, options.preventCancel, options.signal);\n        };\n        /**\n         * Tees this readable stream, returning a two-element array containing the two resulting branches as\n         * new {@link ReadableStream} instances.\n         *\n         * Teeing a stream will lock it, preventing any other consumer from acquiring a reader.\n         * To cancel the stream, cancel both of the resulting branches; a composite cancellation reason will then be\n         * propagated to the stream's underlying source.\n         *\n         * Note that the chunks seen in each branch will be the same object. If the chunks are not immutable,\n         * this could allow interference between the two branches.\n         */\n        ReadableStream.prototype.tee = function () {\n            if (!IsReadableStream(this)) {\n                throw streamBrandCheckException$1('tee');\n            }\n            var branches = ReadableStreamTee(this);\n            return CreateArrayFromList(branches);\n        };\n        ReadableStream.prototype.values = function (rawOptions) {\n            if (rawOptions === void 0) { rawOptions = undefined; }\n            if (!IsReadableStream(this)) {\n                throw streamBrandCheckException$1('values');\n            }\n            var options = convertIteratorOptions(rawOptions, 'First parameter');\n            return AcquireReadableStreamAsyncIterator(this, options.preventCancel);\n        };\n        /**\n         * Creates a new ReadableStream wrapping the provided iterable or async iterable.\n         *\n         * This can be used to adapt various kinds of objects into a readable stream,\n         * such as an array, an async generator, or a Node.js readable stream.\n         */\n        ReadableStream.from = function (asyncIterable) {\n            return ReadableStreamFrom(asyncIterable);\n        };\n        return ReadableStream;\n    }());\n    Object.defineProperties(ReadableStream, {\n        from: { enumerable: true }\n    });\n    Object.defineProperties(ReadableStream.prototype, {\n        cancel: { enumerable: true },\n        getReader: { enumerable: true },\n        pipeThrough: { enumerable: true },\n        pipeTo: { enumerable: true },\n        tee: { enumerable: true },\n        values: { enumerable: true },\n        locked: { enumerable: true }\n    });\n    setFunctionName(ReadableStream.from, 'from');\n    setFunctionName(ReadableStream.prototype.cancel, 'cancel');\n    setFunctionName(ReadableStream.prototype.getReader, 'getReader');\n    setFunctionName(ReadableStream.prototype.pipeThrough, 'pipeThrough');\n    setFunctionName(ReadableStream.prototype.pipeTo, 'pipeTo');\n    setFunctionName(ReadableStream.prototype.tee, 'tee');\n    setFunctionName(ReadableStream.prototype.values, 'values');\n    if (typeof SymbolPolyfill.toStringTag === 'symbol') {\n        Object.defineProperty(ReadableStream.prototype, SymbolPolyfill.toStringTag, {\n            value: 'ReadableStream',\n            configurable: true\n        });\n    }\n    if (typeof SymbolPolyfill.asyncIterator === 'symbol') {\n        Object.defineProperty(ReadableStream.prototype, SymbolPolyfill.asyncIterator, {\n            value: ReadableStream.prototype.values,\n            writable: true,\n            configurable: true\n        });\n    }\n    // Abstract operations for the ReadableStream.\n    // Throws if and only if startAlgorithm throws.\n    function CreateReadableStream(startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, sizeAlgorithm) {\n        if (highWaterMark === void 0) { highWaterMark = 1; }\n        if (sizeAlgorithm === void 0) { sizeAlgorithm = function () { return 1; }; }\n        var stream = Object.create(ReadableStream.prototype);\n        InitializeReadableStream(stream);\n        var controller = Object.create(ReadableStreamDefaultController.prototype);\n        SetUpReadableStreamDefaultController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, sizeAlgorithm);\n        return stream;\n    }\n    // Throws if and only if startAlgorithm throws.\n    function CreateReadableByteStream(startAlgorithm, pullAlgorithm, cancelAlgorithm) {\n        var stream = Object.create(ReadableStream.prototype);\n        InitializeReadableStream(stream);\n        var controller = Object.create(ReadableByteStreamController.prototype);\n        SetUpReadableByteStreamController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, 0, undefined);\n        return stream;\n    }\n    function InitializeReadableStream(stream) {\n        stream._state = 'readable';\n        stream._reader = undefined;\n        stream._storedError = undefined;\n        stream._disturbed = false;\n    }\n    function IsReadableStream(x) {\n        if (!typeIsObject(x)) {\n            return false;\n        }\n        if (!Object.prototype.hasOwnProperty.call(x, '_readableStreamController')) {\n            return false;\n        }\n        return x instanceof ReadableStream;\n    }\n    function IsReadableStreamLocked(stream) {\n        if (stream._reader === undefined) {\n            return false;\n        }\n        return true;\n    }\n    // ReadableStream API exposed for controllers.\n    function ReadableStreamCancel(stream, reason) {\n        stream._disturbed = true;\n        if (stream._state === 'closed') {\n            return promiseResolvedWith(undefined);\n        }\n        if (stream._state === 'errored') {\n            return promiseRejectedWith(stream._storedError);\n        }\n        ReadableStreamClose(stream);\n        var reader = stream._reader;\n        if (reader !== undefined && IsReadableStreamBYOBReader(reader)) {\n            var readIntoRequests = reader._readIntoRequests;\n            reader._readIntoRequests = new SimpleQueue();\n            readIntoRequests.forEach(function (readIntoRequest) {\n                readIntoRequest._closeSteps(undefined);\n            });\n        }\n        var sourceCancelPromise = stream._readableStreamController[CancelSteps](reason);\n        return transformPromiseWith(sourceCancelPromise, noop);\n    }\n    function ReadableStreamClose(stream) {\n        stream._state = 'closed';\n        var reader = stream._reader;\n        if (reader === undefined) {\n            return;\n        }\n        defaultReaderClosedPromiseResolve(reader);\n        if (IsReadableStreamDefaultReader(reader)) {\n            var readRequests = reader._readRequests;\n            reader._readRequests = new SimpleQueue();\n            readRequests.forEach(function (readRequest) {\n                readRequest._closeSteps();\n            });\n        }\n    }\n    function ReadableStreamError(stream, e) {\n        stream._state = 'errored';\n        stream._storedError = e;\n        var reader = stream._reader;\n        if (reader === undefined) {\n            return;\n        }\n        defaultReaderClosedPromiseReject(reader, e);\n        if (IsReadableStreamDefaultReader(reader)) {\n            ReadableStreamDefaultReaderErrorReadRequests(reader, e);\n        }\n        else {\n            ReadableStreamBYOBReaderErrorReadIntoRequests(reader, e);\n        }\n    }\n    // Helper functions for the ReadableStream.\n    function streamBrandCheckException$1(name) {\n        return new TypeError(\"ReadableStream.prototype.\".concat(name, \" can only be used on a ReadableStream\"));\n    }\n\n    function convertQueuingStrategyInit(init, context) {\n        assertDictionary(init, context);\n        var highWaterMark = init === null || init === void 0 ? void 0 : init.highWaterMark;\n        assertRequiredField(highWaterMark, 'highWaterMark', 'QueuingStrategyInit');\n        return {\n            highWaterMark: convertUnrestrictedDouble(highWaterMark)\n        };\n    }\n\n    // The size function must not have a prototype property nor be a constructor\n    var byteLengthSizeFunction = function (chunk) {\n        return chunk.byteLength;\n    };\n    setFunctionName(byteLengthSizeFunction, 'size');\n    /**\n     * A queuing strategy that counts the number of bytes in each chunk.\n     *\n     * @public\n     */\n    var ByteLengthQueuingStrategy = /** @class */ (function () {\n        function ByteLengthQueuingStrategy(options) {\n            assertRequiredArgument(options, 1, 'ByteLengthQueuingStrategy');\n            options = convertQueuingStrategyInit(options, 'First parameter');\n            this._byteLengthQueuingStrategyHighWaterMark = options.highWaterMark;\n        }\n        Object.defineProperty(ByteLengthQueuingStrategy.prototype, \"highWaterMark\", {\n            /**\n             * Returns the high water mark provided to the constructor.\n             */\n            get: function () {\n                if (!IsByteLengthQueuingStrategy(this)) {\n                    throw byteLengthBrandCheckException('highWaterMark');\n                }\n                return this._byteLengthQueuingStrategyHighWaterMark;\n            },\n            enumerable: false,\n            configurable: true\n        });\n        Object.defineProperty(ByteLengthQueuingStrategy.prototype, \"size\", {\n            /**\n             * Measures the size of `chunk` by returning the value of its `byteLength` property.\n             */\n            get: function () {\n                if (!IsByteLengthQueuingStrategy(this)) {\n                    throw byteLengthBrandCheckException('size');\n                }\n                return byteLengthSizeFunction;\n            },\n            enumerable: false,\n            configurable: true\n        });\n        return ByteLengthQueuingStrategy;\n    }());\n    Object.defineProperties(ByteLengthQueuingStrategy.prototype, {\n        highWaterMark: { enumerable: true },\n        size: { enumerable: true }\n    });\n    if (typeof SymbolPolyfill.toStringTag === 'symbol') {\n        Object.defineProperty(ByteLengthQueuingStrategy.prototype, SymbolPolyfill.toStringTag, {\n            value: 'ByteLengthQueuingStrategy',\n            configurable: true\n        });\n    }\n    // Helper functions for the ByteLengthQueuingStrategy.\n    function byteLengthBrandCheckException(name) {\n        return new TypeError(\"ByteLengthQueuingStrategy.prototype.\".concat(name, \" can only be used on a ByteLengthQueuingStrategy\"));\n    }\n    function IsByteLengthQueuingStrategy(x) {\n        if (!typeIsObject(x)) {\n            return false;\n        }\n        if (!Object.prototype.hasOwnProperty.call(x, '_byteLengthQueuingStrategyHighWaterMark')) {\n            return false;\n        }\n        return x instanceof ByteLengthQueuingStrategy;\n    }\n\n    // The size function must not have a prototype property nor be a constructor\n    var countSizeFunction = function () {\n        return 1;\n    };\n    setFunctionName(countSizeFunction, 'size');\n    /**\n     * A queuing strategy that counts the number of chunks.\n     *\n     * @public\n     */\n    var CountQueuingStrategy = /** @class */ (function () {\n        function CountQueuingStrategy(options) {\n            assertRequiredArgument(options, 1, 'CountQueuingStrategy');\n            options = convertQueuingStrategyInit(options, 'First parameter');\n            this._countQueuingStrategyHighWaterMark = options.highWaterMark;\n        }\n        Object.defineProperty(CountQueuingStrategy.prototype, \"highWaterMark\", {\n            /**\n             * Returns the high water mark provided to the constructor.\n             */\n            get: function () {\n                if (!IsCountQueuingStrategy(this)) {\n                    throw countBrandCheckException('highWaterMark');\n                }\n                return this._countQueuingStrategyHighWaterMark;\n            },\n            enumerable: false,\n            configurable: true\n        });\n        Object.defineProperty(CountQueuingStrategy.prototype, \"size\", {\n            /**\n             * Measures the size of `chunk` by always returning 1.\n             * This ensures that the total queue size is a count of the number of chunks in the queue.\n             */\n            get: function () {\n                if (!IsCountQueuingStrategy(this)) {\n                    throw countBrandCheckException('size');\n                }\n                return countSizeFunction;\n            },\n            enumerable: false,\n            configurable: true\n        });\n        return CountQueuingStrategy;\n    }());\n    Object.defineProperties(CountQueuingStrategy.prototype, {\n        highWaterMark: { enumerable: true },\n        size: { enumerable: true }\n    });\n    if (typeof SymbolPolyfill.toStringTag === 'symbol') {\n        Object.defineProperty(CountQueuingStrategy.prototype, SymbolPolyfill.toStringTag, {\n            value: 'CountQueuingStrategy',\n            configurable: true\n        });\n    }\n    // Helper functions for the CountQueuingStrategy.\n    function countBrandCheckException(name) {\n        return new TypeError(\"CountQueuingStrategy.prototype.\".concat(name, \" can only be used on a CountQueuingStrategy\"));\n    }\n    function IsCountQueuingStrategy(x) {\n        if (!typeIsObject(x)) {\n            return false;\n        }\n        if (!Object.prototype.hasOwnProperty.call(x, '_countQueuingStrategyHighWaterMark')) {\n            return false;\n        }\n        return x instanceof CountQueuingStrategy;\n    }\n\n    function convertTransformer(original, context) {\n        assertDictionary(original, context);\n        var cancel = original === null || original === void 0 ? void 0 : original.cancel;\n        var flush = original === null || original === void 0 ? void 0 : original.flush;\n        var readableType = original === null || original === void 0 ? void 0 : original.readableType;\n        var start = original === null || original === void 0 ? void 0 : original.start;\n        var transform = original === null || original === void 0 ? void 0 : original.transform;\n        var writableType = original === null || original === void 0 ? void 0 : original.writableType;\n        return {\n            cancel: cancel === undefined ?\n                undefined :\n                convertTransformerCancelCallback(cancel, original, \"\".concat(context, \" has member 'cancel' that\")),\n            flush: flush === undefined ?\n                undefined :\n                convertTransformerFlushCallback(flush, original, \"\".concat(context, \" has member 'flush' that\")),\n            readableType: readableType,\n            start: start === undefined ?\n                undefined :\n                convertTransformerStartCallback(start, original, \"\".concat(context, \" has member 'start' that\")),\n            transform: transform === undefined ?\n                undefined :\n                convertTransformerTransformCallback(transform, original, \"\".concat(context, \" has member 'transform' that\")),\n            writableType: writableType\n        };\n    }\n    function convertTransformerFlushCallback(fn, original, context) {\n        assertFunction(fn, context);\n        return function (controller) { return promiseCall(fn, original, [controller]); };\n    }\n    function convertTransformerStartCallback(fn, original, context) {\n        assertFunction(fn, context);\n        return function (controller) { return reflectCall(fn, original, [controller]); };\n    }\n    function convertTransformerTransformCallback(fn, original, context) {\n        assertFunction(fn, context);\n        return function (chunk, controller) { return promiseCall(fn, original, [chunk, controller]); };\n    }\n    function convertTransformerCancelCallback(fn, original, context) {\n        assertFunction(fn, context);\n        return function (reason) { return promiseCall(fn, original, [reason]); };\n    }\n\n    // Class TransformStream\n    /**\n     * A transform stream consists of a pair of streams: a {@link WritableStream | writable stream},\n     * known as its writable side, and a {@link ReadableStream | readable stream}, known as its readable side.\n     * In a manner specific to the transform stream in question, writes to the writable side result in new data being\n     * made available for reading from the readable side.\n     *\n     * @public\n     */\n    var TransformStream = /** @class */ (function () {\n        function TransformStream(rawTransformer, rawWritableStrategy, rawReadableStrategy) {\n            if (rawTransformer === void 0) { rawTransformer = {}; }\n            if (rawWritableStrategy === void 0) { rawWritableStrategy = {}; }\n            if (rawReadableStrategy === void 0) { rawReadableStrategy = {}; }\n            if (rawTransformer === undefined) {\n                rawTransformer = null;\n            }\n            var writableStrategy = convertQueuingStrategy(rawWritableStrategy, 'Second parameter');\n            var readableStrategy = convertQueuingStrategy(rawReadableStrategy, 'Third parameter');\n            var transformer = convertTransformer(rawTransformer, 'First parameter');\n            if (transformer.readableType !== undefined) {\n                throw new RangeError('Invalid readableType specified');\n            }\n            if (transformer.writableType !== undefined) {\n                throw new RangeError('Invalid writableType specified');\n            }\n            var readableHighWaterMark = ExtractHighWaterMark(readableStrategy, 0);\n            var readableSizeAlgorithm = ExtractSizeAlgorithm(readableStrategy);\n            var writableHighWaterMark = ExtractHighWaterMark(writableStrategy, 1);\n            var writableSizeAlgorithm = ExtractSizeAlgorithm(writableStrategy);\n            var startPromise_resolve;\n            var startPromise = newPromise(function (resolve) {\n                startPromise_resolve = resolve;\n            });\n            InitializeTransformStream(this, startPromise, writableHighWaterMark, writableSizeAlgorithm, readableHighWaterMark, readableSizeAlgorithm);\n            SetUpTransformStreamDefaultControllerFromTransformer(this, transformer);\n            if (transformer.start !== undefined) {\n                startPromise_resolve(transformer.start(this._transformStreamController));\n            }\n            else {\n                startPromise_resolve(undefined);\n            }\n        }\n        Object.defineProperty(TransformStream.prototype, \"readable\", {\n            /**\n             * The readable side of the transform stream.\n             */\n            get: function () {\n                if (!IsTransformStream(this)) {\n                    throw streamBrandCheckException('readable');\n                }\n                return this._readable;\n            },\n            enumerable: false,\n            configurable: true\n        });\n        Object.defineProperty(TransformStream.prototype, \"writable\", {\n            /**\n             * The writable side of the transform stream.\n             */\n            get: function () {\n                if (!IsTransformStream(this)) {\n                    throw streamBrandCheckException('writable');\n                }\n                return this._writable;\n            },\n            enumerable: false,\n            configurable: true\n        });\n        return TransformStream;\n    }());\n    Object.defineProperties(TransformStream.prototype, {\n        readable: { enumerable: true },\n        writable: { enumerable: true }\n    });\n    if (typeof SymbolPolyfill.toStringTag === 'symbol') {\n        Object.defineProperty(TransformStream.prototype, SymbolPolyfill.toStringTag, {\n            value: 'TransformStream',\n            configurable: true\n        });\n    }\n    function InitializeTransformStream(stream, startPromise, writableHighWaterMark, writableSizeAlgorithm, readableHighWaterMark, readableSizeAlgorithm) {\n        function startAlgorithm() {\n            return startPromise;\n        }\n        function writeAlgorithm(chunk) {\n            return TransformStreamDefaultSinkWriteAlgorithm(stream, chunk);\n        }\n        function abortAlgorithm(reason) {\n            return TransformStreamDefaultSinkAbortAlgorithm(stream, reason);\n        }\n        function closeAlgorithm() {\n            return TransformStreamDefaultSinkCloseAlgorithm(stream);\n        }\n        stream._writable = CreateWritableStream(startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, writableHighWaterMark, writableSizeAlgorithm);\n        function pullAlgorithm() {\n            return TransformStreamDefaultSourcePullAlgorithm(stream);\n        }\n        function cancelAlgorithm(reason) {\n            return TransformStreamDefaultSourceCancelAlgorithm(stream, reason);\n        }\n        stream._readable = CreateReadableStream(startAlgorithm, pullAlgorithm, cancelAlgorithm, readableHighWaterMark, readableSizeAlgorithm);\n        // The [[backpressure]] slot is set to undefined so that it can be initialised by TransformStreamSetBackpressure.\n        stream._backpressure = undefined;\n        stream._backpressureChangePromise = undefined;\n        stream._backpressureChangePromise_resolve = undefined;\n        TransformStreamSetBackpressure(stream, true);\n        stream._transformStreamController = undefined;\n    }\n    function IsTransformStream(x) {\n        if (!typeIsObject(x)) {\n            return false;\n        }\n        if (!Object.prototype.hasOwnProperty.call(x, '_transformStreamController')) {\n            return false;\n        }\n        return x instanceof TransformStream;\n    }\n    // This is a no-op if both sides are already errored.\n    function TransformStreamError(stream, e) {\n        ReadableStreamDefaultControllerError(stream._readable._readableStreamController, e);\n        TransformStreamErrorWritableAndUnblockWrite(stream, e);\n    }\n    function TransformStreamErrorWritableAndUnblockWrite(stream, e) {\n        TransformStreamDefaultControllerClearAlgorithms(stream._transformStreamController);\n        WritableStreamDefaultControllerErrorIfNeeded(stream._writable._writableStreamController, e);\n        TransformStreamUnblockWrite(stream);\n    }\n    function TransformStreamUnblockWrite(stream) {\n        if (stream._backpressure) {\n            // Pretend that pull() was called to permit any pending write() calls to complete. TransformStreamSetBackpressure()\n            // cannot be called from enqueue() or pull() once the ReadableStream is errored, so this will will be the final time\n            // _backpressure is set.\n            TransformStreamSetBackpressure(stream, false);\n        }\n    }\n    function TransformStreamSetBackpressure(stream, backpressure) {\n        // Passes also when called during construction.\n        if (stream._backpressureChangePromise !== undefined) {\n            stream._backpressureChangePromise_resolve();\n        }\n        stream._backpressureChangePromise = newPromise(function (resolve) {\n            stream._backpressureChangePromise_resolve = resolve;\n        });\n        stream._backpressure = backpressure;\n    }\n    // Class TransformStreamDefaultController\n    /**\n     * Allows control of the {@link ReadableStream} and {@link WritableStream} of the associated {@link TransformStream}.\n     *\n     * @public\n     */\n    var TransformStreamDefaultController = /** @class */ (function () {\n        function TransformStreamDefaultController() {\n            throw new TypeError('Illegal constructor');\n        }\n        Object.defineProperty(TransformStreamDefaultController.prototype, \"desiredSize\", {\n            /**\n             * Returns the desired size to fill the readable side’s internal queue. It can be negative, if the queue is over-full.\n             */\n            get: function () {\n                if (!IsTransformStreamDefaultController(this)) {\n                    throw defaultControllerBrandCheckException('desiredSize');\n                }\n                var readableController = this._controlledTransformStream._readable._readableStreamController;\n                return ReadableStreamDefaultControllerGetDesiredSize(readableController);\n            },\n            enumerable: false,\n            configurable: true\n        });\n        TransformStreamDefaultController.prototype.enqueue = function (chunk) {\n            if (chunk === void 0) { chunk = undefined; }\n            if (!IsTransformStreamDefaultController(this)) {\n                throw defaultControllerBrandCheckException('enqueue');\n            }\n            TransformStreamDefaultControllerEnqueue(this, chunk);\n        };\n        /**\n         * Errors both the readable side and the writable side of the controlled transform stream, making all future\n         * interactions with it fail with the given error `e`. Any chunks queued for transformation will be discarded.\n         */\n        TransformStreamDefaultController.prototype.error = function (reason) {\n            if (reason === void 0) { reason = undefined; }\n            if (!IsTransformStreamDefaultController(this)) {\n                throw defaultControllerBrandCheckException('error');\n            }\n            TransformStreamDefaultControllerError(this, reason);\n        };\n        /**\n         * Closes the readable side and errors the writable side of the controlled transform stream. This is useful when the\n         * transformer only needs to consume a portion of the chunks written to the writable side.\n         */\n        TransformStreamDefaultController.prototype.terminate = function () {\n            if (!IsTransformStreamDefaultController(this)) {\n                throw defaultControllerBrandCheckException('terminate');\n            }\n            TransformStreamDefaultControllerTerminate(this);\n        };\n        return TransformStreamDefaultController;\n    }());\n    Object.defineProperties(TransformStreamDefaultController.prototype, {\n        enqueue: { enumerable: true },\n        error: { enumerable: true },\n        terminate: { enumerable: true },\n        desiredSize: { enumerable: true }\n    });\n    setFunctionName(TransformStreamDefaultController.prototype.enqueue, 'enqueue');\n    setFunctionName(TransformStreamDefaultController.prototype.error, 'error');\n    setFunctionName(TransformStreamDefaultController.prototype.terminate, 'terminate');\n    if (typeof SymbolPolyfill.toStringTag === 'symbol') {\n        Object.defineProperty(TransformStreamDefaultController.prototype, SymbolPolyfill.toStringTag, {\n            value: 'TransformStreamDefaultController',\n            configurable: true\n        });\n    }\n    // Transform Stream Default Controller Abstract Operations\n    function IsTransformStreamDefaultController(x) {\n        if (!typeIsObject(x)) {\n            return false;\n        }\n        if (!Object.prototype.hasOwnProperty.call(x, '_controlledTransformStream')) {\n            return false;\n        }\n        return x instanceof TransformStreamDefaultController;\n    }\n    function SetUpTransformStreamDefaultController(stream, controller, transformAlgorithm, flushAlgorithm, cancelAlgorithm) {\n        controller._controlledTransformStream = stream;\n        stream._transformStreamController = controller;\n        controller._transformAlgorithm = transformAlgorithm;\n        controller._flushAlgorithm = flushAlgorithm;\n        controller._cancelAlgorithm = cancelAlgorithm;\n        controller._finishPromise = undefined;\n        controller._finishPromise_resolve = undefined;\n        controller._finishPromise_reject = undefined;\n    }\n    function SetUpTransformStreamDefaultControllerFromTransformer(stream, transformer) {\n        var controller = Object.create(TransformStreamDefaultController.prototype);\n        var transformAlgorithm;\n        var flushAlgorithm;\n        var cancelAlgorithm;\n        if (transformer.transform !== undefined) {\n            transformAlgorithm = function (chunk) { return transformer.transform(chunk, controller); };\n        }\n        else {\n            transformAlgorithm = function (chunk) {\n                try {\n                    TransformStreamDefaultControllerEnqueue(controller, chunk);\n                    return promiseResolvedWith(undefined);\n                }\n                catch (transformResultE) {\n                    return promiseRejectedWith(transformResultE);\n                }\n            };\n        }\n        if (transformer.flush !== undefined) {\n            flushAlgorithm = function () { return transformer.flush(controller); };\n        }\n        else {\n            flushAlgorithm = function () { return promiseResolvedWith(undefined); };\n        }\n        if (transformer.cancel !== undefined) {\n            cancelAlgorithm = function (reason) { return transformer.cancel(reason); };\n        }\n        else {\n            cancelAlgorithm = function () { return promiseResolvedWith(undefined); };\n        }\n        SetUpTransformStreamDefaultController(stream, controller, transformAlgorithm, flushAlgorithm, cancelAlgorithm);\n    }\n    function TransformStreamDefaultControllerClearAlgorithms(controller) {\n        controller._transformAlgorithm = undefined;\n        controller._flushAlgorithm = undefined;\n        controller._cancelAlgorithm = undefined;\n    }\n    function TransformStreamDefaultControllerEnqueue(controller, chunk) {\n        var stream = controller._controlledTransformStream;\n        var readableController = stream._readable._readableStreamController;\n        if (!ReadableStreamDefaultControllerCanCloseOrEnqueue(readableController)) {\n            throw new TypeError('Readable side is not in a state that permits enqueue');\n        }\n        // We throttle transform invocations based on the backpressure of the ReadableStream, but we still\n        // accept TransformStreamDefaultControllerEnqueue() calls.\n        try {\n            ReadableStreamDefaultControllerEnqueue(readableController, chunk);\n        }\n        catch (e) {\n            // This happens when readableStrategy.size() throws.\n            TransformStreamErrorWritableAndUnblockWrite(stream, e);\n            throw stream._readable._storedError;\n        }\n        var backpressure = ReadableStreamDefaultControllerHasBackpressure(readableController);\n        if (backpressure !== stream._backpressure) {\n            TransformStreamSetBackpressure(stream, true);\n        }\n    }\n    function TransformStreamDefaultControllerError(controller, e) {\n        TransformStreamError(controller._controlledTransformStream, e);\n    }\n    function TransformStreamDefaultControllerPerformTransform(controller, chunk) {\n        var transformPromise = controller._transformAlgorithm(chunk);\n        return transformPromiseWith(transformPromise, undefined, function (r) {\n            TransformStreamError(controller._controlledTransformStream, r);\n            throw r;\n        });\n    }\n    function TransformStreamDefaultControllerTerminate(controller) {\n        var stream = controller._controlledTransformStream;\n        var readableController = stream._readable._readableStreamController;\n        ReadableStreamDefaultControllerClose(readableController);\n        var error = new TypeError('TransformStream terminated');\n        TransformStreamErrorWritableAndUnblockWrite(stream, error);\n    }\n    // TransformStreamDefaultSink Algorithms\n    function TransformStreamDefaultSinkWriteAlgorithm(stream, chunk) {\n        var controller = stream._transformStreamController;\n        if (stream._backpressure) {\n            var backpressureChangePromise = stream._backpressureChangePromise;\n            return transformPromiseWith(backpressureChangePromise, function () {\n                var writable = stream._writable;\n                var state = writable._state;\n                if (state === 'erroring') {\n                    throw writable._storedError;\n                }\n                return TransformStreamDefaultControllerPerformTransform(controller, chunk);\n            });\n        }\n        return TransformStreamDefaultControllerPerformTransform(controller, chunk);\n    }\n    function TransformStreamDefaultSinkAbortAlgorithm(stream, reason) {\n        var controller = stream._transformStreamController;\n        if (controller._finishPromise !== undefined) {\n            return controller._finishPromise;\n        }\n        // stream._readable cannot change after construction, so caching it across a call to user code is safe.\n        var readable = stream._readable;\n        // Assign the _finishPromise now so that if _cancelAlgorithm calls readable.cancel() internally,\n        // we don't run the _cancelAlgorithm again.\n        controller._finishPromise = newPromise(function (resolve, reject) {\n            controller._finishPromise_resolve = resolve;\n            controller._finishPromise_reject = reject;\n        });\n        var cancelPromise = controller._cancelAlgorithm(reason);\n        TransformStreamDefaultControllerClearAlgorithms(controller);\n        uponPromise(cancelPromise, function () {\n            if (readable._state === 'errored') {\n                defaultControllerFinishPromiseReject(controller, readable._storedError);\n            }\n            else {\n                ReadableStreamDefaultControllerError(readable._readableStreamController, reason);\n                defaultControllerFinishPromiseResolve(controller);\n            }\n            return null;\n        }, function (r) {\n            ReadableStreamDefaultControllerError(readable._readableStreamController, r);\n            defaultControllerFinishPromiseReject(controller, r);\n            return null;\n        });\n        return controller._finishPromise;\n    }\n    function TransformStreamDefaultSinkCloseAlgorithm(stream) {\n        var controller = stream._transformStreamController;\n        if (controller._finishPromise !== undefined) {\n            return controller._finishPromise;\n        }\n        // stream._readable cannot change after construction, so caching it across a call to user code is safe.\n        var readable = stream._readable;\n        // Assign the _finishPromise now so that if _flushAlgorithm calls readable.cancel() internally,\n        // we don't also run the _cancelAlgorithm.\n        controller._finishPromise = newPromise(function (resolve, reject) {\n            controller._finishPromise_resolve = resolve;\n            controller._finishPromise_reject = reject;\n        });\n        var flushPromise = controller._flushAlgorithm();\n        TransformStreamDefaultControllerClearAlgorithms(controller);\n        uponPromise(flushPromise, function () {\n            if (readable._state === 'errored') {\n                defaultControllerFinishPromiseReject(controller, readable._storedError);\n            }\n            else {\n                ReadableStreamDefaultControllerClose(readable._readableStreamController);\n                defaultControllerFinishPromiseResolve(controller);\n            }\n            return null;\n        }, function (r) {\n            ReadableStreamDefaultControllerError(readable._readableStreamController, r);\n            defaultControllerFinishPromiseReject(controller, r);\n            return null;\n        });\n        return controller._finishPromise;\n    }\n    // TransformStreamDefaultSource Algorithms\n    function TransformStreamDefaultSourcePullAlgorithm(stream) {\n        // Invariant. Enforced by the promises returned by start() and pull().\n        TransformStreamSetBackpressure(stream, false);\n        // Prevent the next pull() call until there is backpressure.\n        return stream._backpressureChangePromise;\n    }\n    function TransformStreamDefaultSourceCancelAlgorithm(stream, reason) {\n        var controller = stream._transformStreamController;\n        if (controller._finishPromise !== undefined) {\n            return controller._finishPromise;\n        }\n        // stream._writable cannot change after construction, so caching it across a call to user code is safe.\n        var writable = stream._writable;\n        // Assign the _finishPromise now so that if _flushAlgorithm calls writable.abort() or\n        // writable.cancel() internally, we don't run the _cancelAlgorithm again, or also run the\n        // _flushAlgorithm.\n        controller._finishPromise = newPromise(function (resolve, reject) {\n            controller._finishPromise_resolve = resolve;\n            controller._finishPromise_reject = reject;\n        });\n        var cancelPromise = controller._cancelAlgorithm(reason);\n        TransformStreamDefaultControllerClearAlgorithms(controller);\n        uponPromise(cancelPromise, function () {\n            if (writable._state === 'errored') {\n                defaultControllerFinishPromiseReject(controller, writable._storedError);\n            }\n            else {\n                WritableStreamDefaultControllerErrorIfNeeded(writable._writableStreamController, reason);\n                TransformStreamUnblockWrite(stream);\n                defaultControllerFinishPromiseResolve(controller);\n            }\n            return null;\n        }, function (r) {\n            WritableStreamDefaultControllerErrorIfNeeded(writable._writableStreamController, r);\n            TransformStreamUnblockWrite(stream);\n            defaultControllerFinishPromiseReject(controller, r);\n            return null;\n        });\n        return controller._finishPromise;\n    }\n    // Helper functions for the TransformStreamDefaultController.\n    function defaultControllerBrandCheckException(name) {\n        return new TypeError(\"TransformStreamDefaultController.prototype.\".concat(name, \" can only be used on a TransformStreamDefaultController\"));\n    }\n    function defaultControllerFinishPromiseResolve(controller) {\n        if (controller._finishPromise_resolve === undefined) {\n            return;\n        }\n        controller._finishPromise_resolve();\n        controller._finishPromise_resolve = undefined;\n        controller._finishPromise_reject = undefined;\n    }\n    function defaultControllerFinishPromiseReject(controller, reason) {\n        if (controller._finishPromise_reject === undefined) {\n            return;\n        }\n        setPromiseIsHandledToTrue(controller._finishPromise);\n        controller._finishPromise_reject(reason);\n        controller._finishPromise_resolve = undefined;\n        controller._finishPromise_reject = undefined;\n    }\n    // Helper functions for the TransformStream.\n    function streamBrandCheckException(name) {\n        return new TypeError(\"TransformStream.prototype.\".concat(name, \" can only be used on a TransformStream\"));\n    }\n\n    exports.ByteLengthQueuingStrategy = ByteLengthQueuingStrategy;\n    exports.CountQueuingStrategy = CountQueuingStrategy;\n    exports.ReadableByteStreamController = ReadableByteStreamController;\n    exports.ReadableStream = ReadableStream;\n    exports.ReadableStreamBYOBReader = ReadableStreamBYOBReader;\n    exports.ReadableStreamBYOBRequest = ReadableStreamBYOBRequest;\n    exports.ReadableStreamDefaultController = ReadableStreamDefaultController;\n    exports.ReadableStreamDefaultReader = ReadableStreamDefaultReader;\n    exports.TransformStream = TransformStream;\n    exports.TransformStreamDefaultController = TransformStreamDefaultController;\n    exports.WritableStream = WritableStream;\n    exports.WritableStreamDefaultController = WritableStreamDefaultController;\n    exports.WritableStreamDefaultWriter = WritableStreamDefaultWriter;\n\n}));\n//# sourceMappingURL=ponyfill.js.map\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/web-streams-polyfill/dist/ponyfill.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/code-point-at.js":
/*!******************************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/code-point-at.js ***!
  \******************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/instance/code-point-at */ \"../../node_modules/core-js-pure/stable/instance/code-point-at.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/code-point-at.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/entries.js":
/*!************************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/entries.js ***!
  \************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/instance/entries */ \"../../node_modules/core-js-pure/stable/instance/entries.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/entries.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/flags.js":
/*!**********************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/flags.js ***!
  \**********************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/instance/flags */ \"../../node_modules/core-js-pure/stable/instance/flags.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/flags.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/flat.js":
/*!*********************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/flat.js ***!
  \*********************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/instance/flat */ \"../../node_modules/core-js-pure/stable/instance/flat.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/flat.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/pad-end.js":
/*!************************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/pad-end.js ***!
  \************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/instance/pad-end */ \"../../node_modules/core-js-pure/stable/instance/pad-end.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/pad-end.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/pad-start.js":
/*!**************************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/pad-start.js ***!
  \**************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/instance/pad-start */ \"../../node_modules/core-js-pure/stable/instance/pad-start.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/pad-start.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/reverse.js":
/*!************************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/reverse.js ***!
  \************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/instance/reverse */ \"../../node_modules/core-js-pure/stable/instance/reverse.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/reverse.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim-end.js":
/*!*************************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim-end.js ***!
  \*************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/instance/trim-end */ \"../../node_modules/core-js-pure/stable/instance/trim-end.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim-end.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/math/fround.js":
/*!*******************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/math/fround.js ***!
  \*******************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/math/fround */ \"../../node_modules/core-js-pure/stable/math/fround.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/math/fround.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/math/hypot.js":
/*!******************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/math/hypot.js ***!
  \******************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/math/hypot */ \"../../node_modules/core-js-pure/stable/math/hypot.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/math/hypot.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/math/log2.js":
/*!*****************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/math/log2.js ***!
  \*****************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/math/log2 */ \"../../node_modules/core-js-pure/stable/math/log2.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/math/log2.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/math/sign.js":
/*!*****************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/math/sign.js ***!
  \*****************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/math/sign */ \"../../node_modules/core-js-pure/stable/math/sign.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/math/sign.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/math/trunc.js":
/*!******************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/math/trunc.js ***!
  \******************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/math/trunc */ \"../../node_modules/core-js-pure/stable/math/trunc.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/math/trunc.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/number/is-integer.js":
/*!*************************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/number/is-integer.js ***!
  \*************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/number/is-integer */ \"../../node_modules/core-js-pure/stable/number/is-integer.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/number/is-integer.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/object/freeze.js":
/*!*********************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/object/freeze.js ***!
  \*********************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/object/freeze */ \"../../node_modules/core-js-pure/stable/object/freeze.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/object/freeze.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-prototype-of.js":
/*!*******************************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-prototype-of.js ***!
  \*******************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/object/get-prototype-of */ \"../../node_modules/core-js-pure/stable/object/get-prototype-of.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-prototype-of.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/object/is-extensible.js":
/*!****************************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/object/is-extensible.js ***!
  \****************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/object/is-extensible */ \"../../node_modules/core-js-pure/stable/object/is-extensible.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/object/is-extensible.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/object/prevent-extensions.js":
/*!*********************************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/object/prevent-extensions.js ***!
  \*********************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/object/prevent-extensions */ \"../../node_modules/core-js-pure/stable/object/prevent-extensions.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/object/prevent-extensions.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/object/set-prototype-of.js":
/*!*******************************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/object/set-prototype-of.js ***!
  \*******************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/object/set-prototype-of */ \"../../node_modules/core-js-pure/stable/object/set-prototype-of.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/object/set-prototype-of.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.js":
/*!***************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.js ***!
  \***************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/promise */ \"../../node_modules/core-js-pure/stable/promise/index.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/reflect/construct.js":
/*!*************************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/reflect/construct.js ***!
  \*************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/reflect/construct */ \"../../node_modules/core-js-pure/stable/reflect/construct.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/reflect/construct.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/string/from-code-point.js":
/*!******************************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/string/from-code-point.js ***!
  \******************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/string/from-code-point */ \"../../node_modules/core-js-pure/stable/string/from-code-point.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/string/from-code-point.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol/iterator.js":
/*!***********************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol/iterator.js ***!
  \***********************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/symbol/iterator */ \"../../node_modules/core-js-pure/stable/symbol/iterator.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol/iterator.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol/to-string-tag.js":
/*!****************************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol/to-string-tag.js ***!
  \****************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/symbol/to-string-tag */ \"../../node_modules/core-js-pure/stable/symbol/to-string-tag.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol/to-string-tag.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/url-search-params.js":
/*!*************************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/url-search-params.js ***!
  \*************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/url-search-params */ \"../../node_modules/core-js-pure/stable/url-search-params/index.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/url-search-params.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/url.js":
/*!***********************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/url.js ***!
  \***********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/url */ \"../../node_modules/core-js-pure/stable/url/index.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/url.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js":
/*!****************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js ***!
  \****************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/weak-map */ \"../../node_modules/core-js-pure/stable/weak-map/index.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-set.js":
/*!****************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-set.js ***!
  \****************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/stable/weak-set */ \"../../node_modules/core-js-pure/stable/weak-set/index.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-set.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/core-js/global-this.js":
/*!************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/core-js/global-this.js ***!
  \************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! core-js-pure/features/global-this */ \"../../node_modules/core-js-pure/features/global-this.js\");\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/core-js/global-this.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/arrayLikeToArray.js":
/*!*****************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/arrayLikeToArray.js ***!
  \*****************************************************************************/
/***/ (function(module) {

eval("function _arrayLikeToArray(r, a) {\n  (null == a || a > r.length) && (a = r.length);\n  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n  return n;\n}\nmodule.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/arrayLikeToArray.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/arrayWithHoles.js":
/*!***************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/arrayWithHoles.js ***!
  \***************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var _Array$isArray = __webpack_require__(/*! core-js-pure/features/array/is-array.js */ \"../../node_modules/core-js-pure/features/array/is-array.js\");\nfunction _arrayWithHoles(r) {\n  if (_Array$isArray(r)) return r;\n}\nmodule.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/arrayWithHoles.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/arrayWithoutHoles.js":
/*!******************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/arrayWithoutHoles.js ***!
  \******************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var _Array$isArray = __webpack_require__(/*! core-js-pure/features/array/is-array.js */ \"../../node_modules/core-js-pure/features/array/is-array.js\");\nvar arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/arrayLikeToArray.js\");\nfunction _arrayWithoutHoles(r) {\n  if (_Array$isArray(r)) return arrayLikeToArray(r);\n}\nmodule.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/arrayWithoutHoles.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/assertThisInitialized.js":
/*!**********************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/assertThisInitialized.js ***!
  \**********************************************************************************/
/***/ (function(module) {

eval("function _assertThisInitialized(e) {\n  if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n  return e;\n}\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/assertThisInitialized.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js":
/*!*****************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js ***!
  \*****************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var _Promise = __webpack_require__(/*! core-js-pure/features/promise/index.js */ \"../../node_modules/core-js-pure/features/promise/index.js\");\nfunction asyncGeneratorStep(n, t, e, r, o, a, c) {\n  try {\n    var i = n[a](c),\n      u = i.value;\n  } catch (n) {\n    return void e(n);\n  }\n  i.done ? t(u) : _Promise.resolve(u).then(r, o);\n}\nfunction _asyncToGenerator(n) {\n  return function () {\n    var t = this,\n      e = arguments;\n    return new _Promise(function (r, o) {\n      var a = n.apply(t, e);\n      function _next(n) {\n        asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n);\n      }\n      function _throw(n) {\n        asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n);\n      }\n      _next(void 0);\n    });\n  };\n}\nmodule.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/classCallCheck.js":
/*!***************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/classCallCheck.js ***!
  \***************************************************************************/
/***/ (function(module) {

eval("function _classCallCheck(a, n) {\n  if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\");\n}\nmodule.exports = _classCallCheck, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/classCallCheck.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/createClass.js":
/*!************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/createClass.js ***!
  \************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var _Object$defineProperty = __webpack_require__(/*! core-js-pure/features/object/define-property.js */ \"../../node_modules/core-js-pure/features/object/define-property.js\");\nvar toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/toPropertyKey.js\");\nfunction _defineProperties(e, r) {\n  for (var t = 0; t < r.length; t++) {\n    var o = r[t];\n    o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), _Object$defineProperty(e, toPropertyKey(o.key), o);\n  }\n}\nfunction _createClass(e, r, t) {\n  return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), _Object$defineProperty(e, \"prototype\", {\n    writable: !1\n  }), e;\n}\nmodule.exports = _createClass, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/createClass.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js":
/*!***************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js ***!
  \***************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var _Object$defineProperty = __webpack_require__(/*! core-js-pure/features/object/define-property.js */ \"../../node_modules/core-js-pure/features/object/define-property.js\");\nvar toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/toPropertyKey.js\");\nfunction _defineProperty(e, r, t) {\n  return (r = toPropertyKey(r)) in e ? _Object$defineProperty(e, r, {\n    value: t,\n    enumerable: !0,\n    configurable: !0,\n    writable: !0\n  }) : e[r] = t, e;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/extends.js":
/*!********************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/extends.js ***!
  \********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var _Object$assign = __webpack_require__(/*! core-js-pure/features/object/assign.js */ \"../../node_modules/core-js-pure/features/object/assign.js\");\nvar _bindInstanceProperty = __webpack_require__(/*! core-js-pure/features/instance/bind.js */ \"../../node_modules/core-js-pure/features/instance/bind.js\");\nfunction _extends() {\n  var _context;\n  return (module.exports = _extends = _Object$assign ? _bindInstanceProperty(_context = _Object$assign).call(_context) : function (n) {\n    for (var e = 1; e < arguments.length; e++) {\n      var t = arguments[e];\n      for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n    }\n    return n;\n  }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _extends.apply(null, arguments);\n}\nmodule.exports = _extends, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/extends.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/get.js":
/*!****************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/get.js ***!
  \****************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var _Reflect$get = __webpack_require__(/*! core-js-pure/features/reflect/get.js */ \"../../node_modules/core-js-pure/features/reflect/get.js\");\nvar _bindInstanceProperty = __webpack_require__(/*! core-js-pure/features/instance/bind.js */ \"../../node_modules/core-js-pure/features/instance/bind.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! core-js-pure/features/object/get-own-property-descriptor.js */ \"../../node_modules/core-js-pure/features/object/get-own-property-descriptor.js\");\nvar superPropBase = __webpack_require__(/*! ./superPropBase.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/superPropBase.js\");\nfunction _get() {\n  var _context;\n  return (module.exports = _get = \"undefined\" != typeof Reflect && _Reflect$get ? _bindInstanceProperty(_context = _Reflect$get).call(_context) : function (e, t, r) {\n    var p = superPropBase(e, t);\n    if (p) {\n      var n = _Object$getOwnPropertyDescriptor(p, t);\n      return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;\n    }\n  }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _get.apply(null, arguments);\n}\nmodule.exports = _get, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/get.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/getPrototypeOf.js":
/*!***************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/getPrototypeOf.js ***!
  \***************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var _Object$setPrototypeOf = __webpack_require__(/*! core-js-pure/features/object/set-prototype-of.js */ \"../../node_modules/core-js-pure/features/object/set-prototype-of.js\");\nvar _bindInstanceProperty = __webpack_require__(/*! core-js-pure/features/instance/bind.js */ \"../../node_modules/core-js-pure/features/instance/bind.js\");\nvar _Object$getPrototypeOf = __webpack_require__(/*! core-js-pure/features/object/get-prototype-of.js */ \"../../node_modules/core-js-pure/features/object/get-prototype-of.js\");\nfunction _getPrototypeOf(t) {\n  var _context;\n  return (module.exports = _getPrototypeOf = _Object$setPrototypeOf ? _bindInstanceProperty(_context = _Object$getPrototypeOf).call(_context) : function (t) {\n    return t.__proto__ || _Object$getPrototypeOf(t);\n  }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _getPrototypeOf(t);\n}\nmodule.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/getPrototypeOf.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/inherits.js":
/*!*********************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/inherits.js ***!
  \*********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var _Object$create = __webpack_require__(/*! core-js-pure/features/object/create.js */ \"../../node_modules/core-js-pure/features/object/create.js\");\nvar _Object$defineProperty = __webpack_require__(/*! core-js-pure/features/object/define-property.js */ \"../../node_modules/core-js-pure/features/object/define-property.js\");\nvar setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/setPrototypeOf.js\");\nfunction _inherits(t, e) {\n  if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\");\n  t.prototype = _Object$create(e && e.prototype, {\n    constructor: {\n      value: t,\n      writable: !0,\n      configurable: !0\n    }\n  }), _Object$defineProperty(t, \"prototype\", {\n    writable: !1\n  }), e && setPrototypeOf(t, e);\n}\nmodule.exports = _inherits, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/inherits.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/iterableToArray.js":
/*!****************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/iterableToArray.js ***!
  \****************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var _Symbol = __webpack_require__(/*! core-js-pure/features/symbol/index.js */ \"../../node_modules/core-js-pure/features/symbol/index.js\");\nvar _getIteratorMethod = __webpack_require__(/*! core-js-pure/features/get-iterator-method.js */ \"../../node_modules/core-js-pure/features/get-iterator-method.js\");\nvar _Array$from = __webpack_require__(/*! core-js-pure/features/array/from.js */ \"../../node_modules/core-js-pure/features/array/from.js\");\nfunction _iterableToArray(r) {\n  if (\"undefined\" != typeof _Symbol && null != _getIteratorMethod(r) || null != r[\"@@iterator\"]) return _Array$from(r);\n}\nmodule.exports = _iterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/iterableToArray.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimit.js":
/*!*********************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimit.js ***!
  \*********************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var _Symbol = __webpack_require__(/*! core-js-pure/features/symbol/index.js */ \"../../node_modules/core-js-pure/features/symbol/index.js\");\nvar _getIteratorMethod = __webpack_require__(/*! core-js-pure/features/get-iterator-method.js */ \"../../node_modules/core-js-pure/features/get-iterator-method.js\");\nvar _pushInstanceProperty = __webpack_require__(/*! core-js-pure/features/instance/push.js */ \"../../node_modules/core-js-pure/features/instance/push.js\");\nfunction _iterableToArrayLimit(r, l) {\n  var t = null == r ? null : \"undefined\" != typeof _Symbol && _getIteratorMethod(r) || r[\"@@iterator\"];\n  if (null != t) {\n    var e,\n      n,\n      i,\n      u,\n      a = [],\n      f = !0,\n      o = !1;\n    try {\n      if (i = (t = t.call(r)).next, 0 === l) {\n        if (Object(t) !== t) return;\n        f = !1;\n      } else for (; !(f = (e = i.call(t)).done) && (_pushInstanceProperty(a).call(a, e.value), a.length !== l); f = !0);\n    } catch (r) {\n      o = !0, n = r;\n    } finally {\n      try {\n        if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n      } finally {\n        if (o) throw n;\n      }\n    }\n    return a;\n  }\n}\nmodule.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimit.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/nonIterableRest.js":
/*!****************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/nonIterableRest.js ***!
  \****************************************************************************/
/***/ (function(module) {

eval("function _nonIterableRest() {\n  throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableRest, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/nonIterableRest.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/nonIterableSpread.js":
/*!******************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/nonIterableSpread.js ***!
  \******************************************************************************/
/***/ (function(module) {

eval("function _nonIterableSpread() {\n  throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/nonIterableSpread.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/possibleConstructorReturn.js":
/*!**************************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/possibleConstructorReturn.js ***!
  \**************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var _typeof = (__webpack_require__(/*! ./typeof.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\")[\"default\"]);\nvar assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/assertThisInitialized.js\");\nfunction _possibleConstructorReturn(t, e) {\n  if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e;\n  if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n  return assertThisInitialized(t);\n}\nmodule.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/possibleConstructorReturn.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/setPrototypeOf.js":
/*!***************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/setPrototypeOf.js ***!
  \***************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var _Object$setPrototypeOf = __webpack_require__(/*! core-js-pure/features/object/set-prototype-of.js */ \"../../node_modules/core-js-pure/features/object/set-prototype-of.js\");\nvar _bindInstanceProperty = __webpack_require__(/*! core-js-pure/features/instance/bind.js */ \"../../node_modules/core-js-pure/features/instance/bind.js\");\nfunction _setPrototypeOf(t, e) {\n  var _context;\n  return (module.exports = _setPrototypeOf = _Object$setPrototypeOf ? _bindInstanceProperty(_context = _Object$setPrototypeOf).call(_context) : function (t, e) {\n    return t.__proto__ = e, t;\n  }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _setPrototypeOf(t, e);\n}\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/setPrototypeOf.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js":
/*!**************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js ***!
  \**************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/arrayWithHoles.js\");\nvar iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimit.js\");\nvar unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/unsupportedIterableToArray.js\");\nvar nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/nonIterableRest.js\");\nfunction _slicedToArray(r, e) {\n  return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();\n}\nmodule.exports = _slicedToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/superPropBase.js":
/*!**************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/superPropBase.js ***!
  \**************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/getPrototypeOf.js\");\nfunction _superPropBase(t, o) {\n  for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t)););\n  return t;\n}\nmodule.exports = _superPropBase, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/superPropBase.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/toArray.js":
/*!********************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/toArray.js ***!
  \********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/arrayWithHoles.js\");\nvar iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/iterableToArray.js\");\nvar unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/unsupportedIterableToArray.js\");\nvar nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/nonIterableRest.js\");\nfunction _toArray(r) {\n  return arrayWithHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableRest();\n}\nmodule.exports = _toArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/toArray.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js":
/*!******************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js ***!
  \******************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/arrayWithoutHoles.js\");\nvar iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/iterableToArray.js\");\nvar unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/unsupportedIterableToArray.js\");\nvar nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/nonIterableSpread.js\");\nfunction _toConsumableArray(r) {\n  return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();\n}\nmodule.exports = _toConsumableArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/toPrimitive.js":
/*!************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/toPrimitive.js ***!
  \************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var _Symbol$toPrimitive = __webpack_require__(/*! core-js-pure/features/symbol/to-primitive.js */ \"../../node_modules/core-js-pure/features/symbol/to-primitive.js\");\nvar _typeof = (__webpack_require__(/*! ./typeof.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\")[\"default\"]);\nfunction toPrimitive(t, r) {\n  if (\"object\" != _typeof(t) || !t) return t;\n  var e = t[_Symbol$toPrimitive];\n  if (void 0 !== e) {\n    var i = e.call(t, r || \"default\");\n    if (\"object\" != _typeof(i)) return i;\n    throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n  }\n  return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/toPrimitive.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/toPropertyKey.js":
/*!**************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/toPropertyKey.js ***!
  \**************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var _typeof = (__webpack_require__(/*! ./typeof.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\")[\"default\"]);\nvar toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/toPrimitive.js\");\nfunction toPropertyKey(t) {\n  var i = toPrimitive(t, \"string\");\n  return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/toPropertyKey.js?");

/***/ }),

/***/ "../../node_modules/@babel/runtime-corejs3/helpers/unsupportedIterableToArray.js":
/*!***************************************************************************************!*\
  !*** ../../node_modules/@babel/runtime-corejs3/helpers/unsupportedIterableToArray.js ***!
  \***************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var _sliceInstanceProperty = __webpack_require__(/*! core-js-pure/features/instance/slice.js */ \"../../node_modules/core-js-pure/features/instance/slice.js\");\nvar _Array$from = __webpack_require__(/*! core-js-pure/features/array/from.js */ \"../../node_modules/core-js-pure/features/array/from.js\");\nvar arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ \"../../node_modules/@babel/runtime-corejs3/helpers/arrayLikeToArray.js\");\nfunction _unsupportedIterableToArray(r, a) {\n  if (r) {\n    var _context;\n    if (\"string\" == typeof r) return arrayLikeToArray(r, a);\n    var t = _sliceInstanceProperty(_context = {}.toString.call(r)).call(_context, 8, -1);\n    return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? _Array$from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;\n  }\n}\nmodule.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://nocode-component/../../node_modules/@babel/runtime-corejs3/helpers/unsupportedIterableToArray.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/actual/global-this.js":
/*!*************************************************************!*\
  !*** ../../node_modules/core-js-pure/actual/global-this.js ***!
  \*************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../stable/global-this */ \"../../node_modules/core-js-pure/stable/global-this.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/actual/global-this.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/actual/object/get-own-property-descriptor.js":
/*!************************************************************************************!*\
  !*** ../../node_modules/core-js-pure/actual/object/get-own-property-descriptor.js ***!
  \************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../stable/object/get-own-property-descriptor */ \"../../node_modules/core-js-pure/stable/object/get-own-property-descriptor.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/actual/object/get-own-property-descriptor.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/actual/reflect/get.js":
/*!*************************************************************!*\
  !*** ../../node_modules/core-js-pure/actual/reflect/get.js ***!
  \*************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../stable/reflect/get */ \"../../node_modules/core-js-pure/stable/reflect/get.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/actual/reflect/get.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/array/virtual/entries.js":
/*!*******************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/array/virtual/entries.js ***!
  \*******************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../../modules/es.array.iterator */ \"../../node_modules/core-js-pure/modules/es.array.iterator.js\");\n__webpack_require__(/*! ../../../modules/es.object.to-string */ \"../../node_modules/core-js-pure/modules/es.object.to-string.js\");\nvar getBuiltInPrototypeMethod = __webpack_require__(/*! ../../../internals/get-built-in-prototype-method */ \"../../node_modules/core-js-pure/internals/get-built-in-prototype-method.js\");\n\nmodule.exports = getBuiltInPrototypeMethod('Array', 'entries');\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/array/virtual/entries.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/array/virtual/flat.js":
/*!****************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/array/virtual/flat.js ***!
  \****************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../../modules/es.array.flat */ \"../../node_modules/core-js-pure/modules/es.array.flat.js\");\n__webpack_require__(/*! ../../../modules/es.array.unscopables.flat */ \"../../node_modules/core-js-pure/modules/es.array.unscopables.flat.js\");\nvar getBuiltInPrototypeMethod = __webpack_require__(/*! ../../../internals/get-built-in-prototype-method */ \"../../node_modules/core-js-pure/internals/get-built-in-prototype-method.js\");\n\nmodule.exports = getBuiltInPrototypeMethod('Array', 'flat');\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/array/virtual/flat.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/global-this.js":
/*!*********************************************************!*\
  !*** ../../node_modules/core-js-pure/es/global-this.js ***!
  \*********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../modules/es.global-this */ \"../../node_modules/core-js-pure/modules/es.global-this.js\");\n\nmodule.exports = __webpack_require__(/*! ../internals/global */ \"../../node_modules/core-js-pure/internals/global.js\");\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/global-this.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/instance/code-point-at.js":
/*!********************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/instance/code-point-at.js ***!
  \********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar isPrototypeOf = __webpack_require__(/*! ../../internals/object-is-prototype-of */ \"../../node_modules/core-js-pure/internals/object-is-prototype-of.js\");\nvar method = __webpack_require__(/*! ../string/virtual/code-point-at */ \"../../node_modules/core-js-pure/es/string/virtual/code-point-at.js\");\n\nvar StringPrototype = String.prototype;\n\nmodule.exports = function (it) {\n  var own = it.codePointAt;\n  return typeof it == 'string' || it === StringPrototype\n    || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.codePointAt) ? method : own;\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/instance/code-point-at.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/instance/flags.js":
/*!************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/instance/flags.js ***!
  \************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar isPrototypeOf = __webpack_require__(/*! ../../internals/object-is-prototype-of */ \"../../node_modules/core-js-pure/internals/object-is-prototype-of.js\");\nvar flags = __webpack_require__(/*! ../regexp/flags */ \"../../node_modules/core-js-pure/es/regexp/flags.js\");\n\nvar RegExpPrototype = RegExp.prototype;\n\nmodule.exports = function (it) {\n  return (it === RegExpPrototype || isPrototypeOf(RegExpPrototype, it)) ? flags(it) : it.flags;\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/instance/flags.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/instance/flat.js":
/*!***********************************************************!*\
  !*** ../../node_modules/core-js-pure/es/instance/flat.js ***!
  \***********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar isPrototypeOf = __webpack_require__(/*! ../../internals/object-is-prototype-of */ \"../../node_modules/core-js-pure/internals/object-is-prototype-of.js\");\nvar method = __webpack_require__(/*! ../array/virtual/flat */ \"../../node_modules/core-js-pure/es/array/virtual/flat.js\");\n\nvar ArrayPrototype = Array.prototype;\n\nmodule.exports = function (it) {\n  var own = it.flat;\n  return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.flat) ? method : own;\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/instance/flat.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/instance/pad-end.js":
/*!**************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/instance/pad-end.js ***!
  \**************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar isPrototypeOf = __webpack_require__(/*! ../../internals/object-is-prototype-of */ \"../../node_modules/core-js-pure/internals/object-is-prototype-of.js\");\nvar method = __webpack_require__(/*! ../string/virtual/pad-end */ \"../../node_modules/core-js-pure/es/string/virtual/pad-end.js\");\n\nvar StringPrototype = String.prototype;\n\nmodule.exports = function (it) {\n  var own = it.padEnd;\n  return typeof it == 'string' || it === StringPrototype\n    || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.padEnd) ? method : own;\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/instance/pad-end.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/instance/pad-start.js":
/*!****************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/instance/pad-start.js ***!
  \****************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar isPrototypeOf = __webpack_require__(/*! ../../internals/object-is-prototype-of */ \"../../node_modules/core-js-pure/internals/object-is-prototype-of.js\");\nvar method = __webpack_require__(/*! ../string/virtual/pad-start */ \"../../node_modules/core-js-pure/es/string/virtual/pad-start.js\");\n\nvar StringPrototype = String.prototype;\n\nmodule.exports = function (it) {\n  var own = it.padStart;\n  return typeof it == 'string' || it === StringPrototype\n    || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.padStart) ? method : own;\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/instance/pad-start.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/instance/trim-end.js":
/*!***************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/instance/trim-end.js ***!
  \***************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar isPrototypeOf = __webpack_require__(/*! ../../internals/object-is-prototype-of */ \"../../node_modules/core-js-pure/internals/object-is-prototype-of.js\");\nvar method = __webpack_require__(/*! ../string/virtual/trim-end */ \"../../node_modules/core-js-pure/es/string/virtual/trim-end.js\");\n\nvar StringPrototype = String.prototype;\n\nmodule.exports = function (it) {\n  var own = it.trimEnd;\n  return typeof it == 'string' || it === StringPrototype\n    || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.trimEnd) ? method : own;\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/instance/trim-end.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/math/fround.js":
/*!*********************************************************!*\
  !*** ../../node_modules/core-js-pure/es/math/fround.js ***!
  \*********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../modules/es.math.fround */ \"../../node_modules/core-js-pure/modules/es.math.fround.js\");\nvar path = __webpack_require__(/*! ../../internals/path */ \"../../node_modules/core-js-pure/internals/path.js\");\n\nmodule.exports = path.Math.fround;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/math/fround.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/math/hypot.js":
/*!********************************************************!*\
  !*** ../../node_modules/core-js-pure/es/math/hypot.js ***!
  \********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../modules/es.math.hypot */ \"../../node_modules/core-js-pure/modules/es.math.hypot.js\");\nvar path = __webpack_require__(/*! ../../internals/path */ \"../../node_modules/core-js-pure/internals/path.js\");\n\nmodule.exports = path.Math.hypot;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/math/hypot.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/math/log2.js":
/*!*******************************************************!*\
  !*** ../../node_modules/core-js-pure/es/math/log2.js ***!
  \*******************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../modules/es.math.log2 */ \"../../node_modules/core-js-pure/modules/es.math.log2.js\");\nvar path = __webpack_require__(/*! ../../internals/path */ \"../../node_modules/core-js-pure/internals/path.js\");\n\nmodule.exports = path.Math.log2;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/math/log2.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/math/sign.js":
/*!*******************************************************!*\
  !*** ../../node_modules/core-js-pure/es/math/sign.js ***!
  \*******************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../modules/es.math.sign */ \"../../node_modules/core-js-pure/modules/es.math.sign.js\");\nvar path = __webpack_require__(/*! ../../internals/path */ \"../../node_modules/core-js-pure/internals/path.js\");\n\nmodule.exports = path.Math.sign;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/math/sign.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/math/trunc.js":
/*!********************************************************!*\
  !*** ../../node_modules/core-js-pure/es/math/trunc.js ***!
  \********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../modules/es.math.trunc */ \"../../node_modules/core-js-pure/modules/es.math.trunc.js\");\nvar path = __webpack_require__(/*! ../../internals/path */ \"../../node_modules/core-js-pure/internals/path.js\");\n\nmodule.exports = path.Math.trunc;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/math/trunc.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/number/is-integer.js":
/*!***************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/number/is-integer.js ***!
  \***************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../modules/es.number.is-integer */ \"../../node_modules/core-js-pure/modules/es.number.is-integer.js\");\nvar path = __webpack_require__(/*! ../../internals/path */ \"../../node_modules/core-js-pure/internals/path.js\");\n\nmodule.exports = path.Number.isInteger;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/number/is-integer.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/object/freeze.js":
/*!***********************************************************!*\
  !*** ../../node_modules/core-js-pure/es/object/freeze.js ***!
  \***********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../modules/es.object.freeze */ \"../../node_modules/core-js-pure/modules/es.object.freeze.js\");\nvar path = __webpack_require__(/*! ../../internals/path */ \"../../node_modules/core-js-pure/internals/path.js\");\n\nmodule.exports = path.Object.freeze;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/object/freeze.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/object/is-extensible.js":
/*!******************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/object/is-extensible.js ***!
  \******************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../modules/es.object.is-extensible */ \"../../node_modules/core-js-pure/modules/es.object.is-extensible.js\");\nvar path = __webpack_require__(/*! ../../internals/path */ \"../../node_modules/core-js-pure/internals/path.js\");\n\nmodule.exports = path.Object.isExtensible;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/object/is-extensible.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/object/prevent-extensions.js":
/*!***********************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/object/prevent-extensions.js ***!
  \***********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../modules/es.object.prevent-extensions */ \"../../node_modules/core-js-pure/modules/es.object.prevent-extensions.js\");\nvar path = __webpack_require__(/*! ../../internals/path */ \"../../node_modules/core-js-pure/internals/path.js\");\n\nmodule.exports = path.Object.preventExtensions;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/object/prevent-extensions.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/reflect/get.js":
/*!*********************************************************!*\
  !*** ../../node_modules/core-js-pure/es/reflect/get.js ***!
  \*********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../modules/es.reflect.get */ \"../../node_modules/core-js-pure/modules/es.reflect.get.js\");\nvar path = __webpack_require__(/*! ../../internals/path */ \"../../node_modules/core-js-pure/internals/path.js\");\n\nmodule.exports = path.Reflect.get;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/reflect/get.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/regexp/flags.js":
/*!**********************************************************!*\
  !*** ../../node_modules/core-js-pure/es/regexp/flags.js ***!
  \**********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../modules/es.regexp.flags */ \"../../node_modules/core-js-pure/modules/es.regexp.flags.js\");\nvar getRegExpFlags = __webpack_require__(/*! ../../internals/regexp-get-flags */ \"../../node_modules/core-js-pure/internals/regexp-get-flags.js\");\n\nmodule.exports = getRegExpFlags;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/regexp/flags.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/string/from-code-point.js":
/*!********************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/string/from-code-point.js ***!
  \********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../modules/es.string.from-code-point */ \"../../node_modules/core-js-pure/modules/es.string.from-code-point.js\");\nvar path = __webpack_require__(/*! ../../internals/path */ \"../../node_modules/core-js-pure/internals/path.js\");\n\nmodule.exports = path.String.fromCodePoint;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/string/from-code-point.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/string/virtual/code-point-at.js":
/*!**************************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/string/virtual/code-point-at.js ***!
  \**************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../../modules/es.string.code-point-at */ \"../../node_modules/core-js-pure/modules/es.string.code-point-at.js\");\nvar getBuiltInPrototypeMethod = __webpack_require__(/*! ../../../internals/get-built-in-prototype-method */ \"../../node_modules/core-js-pure/internals/get-built-in-prototype-method.js\");\n\nmodule.exports = getBuiltInPrototypeMethod('String', 'codePointAt');\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/string/virtual/code-point-at.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/string/virtual/pad-end.js":
/*!********************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/string/virtual/pad-end.js ***!
  \********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../../modules/es.string.pad-end */ \"../../node_modules/core-js-pure/modules/es.string.pad-end.js\");\nvar getBuiltInPrototypeMethod = __webpack_require__(/*! ../../../internals/get-built-in-prototype-method */ \"../../node_modules/core-js-pure/internals/get-built-in-prototype-method.js\");\n\nmodule.exports = getBuiltInPrototypeMethod('String', 'padEnd');\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/string/virtual/pad-end.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/string/virtual/pad-start.js":
/*!**********************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/string/virtual/pad-start.js ***!
  \**********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../../modules/es.string.pad-start */ \"../../node_modules/core-js-pure/modules/es.string.pad-start.js\");\nvar getBuiltInPrototypeMethod = __webpack_require__(/*! ../../../internals/get-built-in-prototype-method */ \"../../node_modules/core-js-pure/internals/get-built-in-prototype-method.js\");\n\nmodule.exports = getBuiltInPrototypeMethod('String', 'padStart');\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/string/virtual/pad-start.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/string/virtual/trim-end.js":
/*!*********************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/string/virtual/trim-end.js ***!
  \*********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../../modules/es.string.trim-end */ \"../../node_modules/core-js-pure/modules/es.string.trim-end.js\");\nvar getBuiltInPrototypeMethod = __webpack_require__(/*! ../../../internals/get-built-in-prototype-method */ \"../../node_modules/core-js-pure/internals/get-built-in-prototype-method.js\");\n\nmodule.exports = getBuiltInPrototypeMethod('String', 'trimRight');\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/string/virtual/trim-end.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/symbol/to-string-tag.js":
/*!******************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/symbol/to-string-tag.js ***!
  \******************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../modules/es.json.to-string-tag */ \"../../node_modules/core-js-pure/modules/es.json.to-string-tag.js\");\n__webpack_require__(/*! ../../modules/es.math.to-string-tag */ \"../../node_modules/core-js-pure/modules/es.math.to-string-tag.js\");\n__webpack_require__(/*! ../../modules/es.object.to-string */ \"../../node_modules/core-js-pure/modules/es.object.to-string.js\");\n__webpack_require__(/*! ../../modules/es.reflect.to-string-tag */ \"../../node_modules/core-js-pure/modules/es.reflect.to-string-tag.js\");\n__webpack_require__(/*! ../../modules/es.symbol.to-string-tag */ \"../../node_modules/core-js-pure/modules/es.symbol.to-string-tag.js\");\nvar WrappedWellKnownSymbolModule = __webpack_require__(/*! ../../internals/well-known-symbol-wrapped */ \"../../node_modules/core-js-pure/internals/well-known-symbol-wrapped.js\");\n\nmodule.exports = WrappedWellKnownSymbolModule.f('toStringTag');\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/symbol/to-string-tag.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/weak-map/index.js":
/*!************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/weak-map/index.js ***!
  \************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../modules/es.array.iterator */ \"../../node_modules/core-js-pure/modules/es.array.iterator.js\");\n__webpack_require__(/*! ../../modules/es.object.to-string */ \"../../node_modules/core-js-pure/modules/es.object.to-string.js\");\n__webpack_require__(/*! ../../modules/es.weak-map */ \"../../node_modules/core-js-pure/modules/es.weak-map.js\");\nvar path = __webpack_require__(/*! ../../internals/path */ \"../../node_modules/core-js-pure/internals/path.js\");\n\nmodule.exports = path.WeakMap;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/weak-map/index.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/es/weak-set/index.js":
/*!************************************************************!*\
  !*** ../../node_modules/core-js-pure/es/weak-set/index.js ***!
  \************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../modules/es.array.iterator */ \"../../node_modules/core-js-pure/modules/es.array.iterator.js\");\n__webpack_require__(/*! ../../modules/es.object.to-string */ \"../../node_modules/core-js-pure/modules/es.object.to-string.js\");\n__webpack_require__(/*! ../../modules/es.weak-set */ \"../../node_modules/core-js-pure/modules/es.weak-set.js\");\nvar path = __webpack_require__(/*! ../../internals/path */ \"../../node_modules/core-js-pure/internals/path.js\");\n\nmodule.exports = path.WeakSet;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/es/weak-set/index.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/features/array/from.js":
/*!**************************************************************!*\
  !*** ../../node_modules/core-js-pure/features/array/from.js ***!
  \**************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nmodule.exports = __webpack_require__(/*! ../../full/array/from */ \"../../node_modules/core-js-pure/full/array/from.js\");\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/features/array/from.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/features/array/is-array.js":
/*!******************************************************************!*\
  !*** ../../node_modules/core-js-pure/features/array/is-array.js ***!
  \******************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nmodule.exports = __webpack_require__(/*! ../../full/array/is-array */ \"../../node_modules/core-js-pure/full/array/is-array.js\");\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/features/array/is-array.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/features/global-this.js":
/*!***************************************************************!*\
  !*** ../../node_modules/core-js-pure/features/global-this.js ***!
  \***************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nmodule.exports = __webpack_require__(/*! ../full/global-this */ \"../../node_modules/core-js-pure/full/global-this.js\");\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/features/global-this.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/features/instance/bind.js":
/*!*****************************************************************!*\
  !*** ../../node_modules/core-js-pure/features/instance/bind.js ***!
  \*****************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nmodule.exports = __webpack_require__(/*! ../../full/instance/bind */ \"../../node_modules/core-js-pure/full/instance/bind.js\");\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/features/instance/bind.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/features/object/assign.js":
/*!*****************************************************************!*\
  !*** ../../node_modules/core-js-pure/features/object/assign.js ***!
  \*****************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nmodule.exports = __webpack_require__(/*! ../../full/object/assign */ \"../../node_modules/core-js-pure/full/object/assign.js\");\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/features/object/assign.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/features/object/get-own-property-descriptor.js":
/*!**************************************************************************************!*\
  !*** ../../node_modules/core-js-pure/features/object/get-own-property-descriptor.js ***!
  \**************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nmodule.exports = __webpack_require__(/*! ../../full/object/get-own-property-descriptor */ \"../../node_modules/core-js-pure/full/object/get-own-property-descriptor.js\");\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/features/object/get-own-property-descriptor.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/features/reflect/get.js":
/*!***************************************************************!*\
  !*** ../../node_modules/core-js-pure/features/reflect/get.js ***!
  \***************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nmodule.exports = __webpack_require__(/*! ../../full/reflect/get */ \"../../node_modules/core-js-pure/full/reflect/get.js\");\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/features/reflect/get.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/features/symbol/to-primitive.js":
/*!***********************************************************************!*\
  !*** ../../node_modules/core-js-pure/features/symbol/to-primitive.js ***!
  \***********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nmodule.exports = __webpack_require__(/*! ../../full/symbol/to-primitive */ \"../../node_modules/core-js-pure/full/symbol/to-primitive.js\");\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/features/symbol/to-primitive.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/full/global-this.js":
/*!***********************************************************!*\
  !*** ../../node_modules/core-js-pure/full/global-this.js ***!
  \***********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n// TODO: remove from `core-js@4`\n__webpack_require__(/*! ../modules/esnext.global-this */ \"../../node_modules/core-js-pure/modules/esnext.global-this.js\");\n\nvar parent = __webpack_require__(/*! ../actual/global-this */ \"../../node_modules/core-js-pure/actual/global-this.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/full/global-this.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/full/object/get-own-property-descriptor.js":
/*!**********************************************************************************!*\
  !*** ../../node_modules/core-js-pure/full/object/get-own-property-descriptor.js ***!
  \**********************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../actual/object/get-own-property-descriptor */ \"../../node_modules/core-js-pure/actual/object/get-own-property-descriptor.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/full/object/get-own-property-descriptor.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/full/reflect/get.js":
/*!***********************************************************!*\
  !*** ../../node_modules/core-js-pure/full/reflect/get.js ***!
  \***********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../actual/reflect/get */ \"../../node_modules/core-js-pure/actual/reflect/get.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/full/reflect/get.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/internals/collection-weak.js":
/*!********************************************************************!*\
  !*** ../../node_modules/core-js-pure/internals/collection-weak.js ***!
  \********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"../../node_modules/core-js-pure/internals/function-uncurry-this.js\");\nvar defineBuiltIns = __webpack_require__(/*! ../internals/define-built-ins */ \"../../node_modules/core-js-pure/internals/define-built-ins.js\");\nvar getWeakData = (__webpack_require__(/*! ../internals/internal-metadata */ \"../../node_modules/core-js-pure/internals/internal-metadata.js\").getWeakData);\nvar anInstance = __webpack_require__(/*! ../internals/an-instance */ \"../../node_modules/core-js-pure/internals/an-instance.js\");\nvar anObject = __webpack_require__(/*! ../internals/an-object */ \"../../node_modules/core-js-pure/internals/an-object.js\");\nvar isNullOrUndefined = __webpack_require__(/*! ../internals/is-null-or-undefined */ \"../../node_modules/core-js-pure/internals/is-null-or-undefined.js\");\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"../../node_modules/core-js-pure/internals/is-object.js\");\nvar iterate = __webpack_require__(/*! ../internals/iterate */ \"../../node_modules/core-js-pure/internals/iterate.js\");\nvar ArrayIterationModule = __webpack_require__(/*! ../internals/array-iteration */ \"../../node_modules/core-js-pure/internals/array-iteration.js\");\nvar hasOwn = __webpack_require__(/*! ../internals/has-own-property */ \"../../node_modules/core-js-pure/internals/has-own-property.js\");\nvar InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ \"../../node_modules/core-js-pure/internals/internal-state.js\");\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\nvar find = ArrayIterationModule.find;\nvar findIndex = ArrayIterationModule.findIndex;\nvar splice = uncurryThis([].splice);\nvar id = 0;\n\n// fallback for uncaught frozen keys\nvar uncaughtFrozenStore = function (state) {\n  return state.frozen || (state.frozen = new UncaughtFrozenStore());\n};\n\nvar UncaughtFrozenStore = function () {\n  this.entries = [];\n};\n\nvar findUncaughtFrozen = function (store, key) {\n  return find(store.entries, function (it) {\n    return it[0] === key;\n  });\n};\n\nUncaughtFrozenStore.prototype = {\n  get: function (key) {\n    var entry = findUncaughtFrozen(this, key);\n    if (entry) return entry[1];\n  },\n  has: function (key) {\n    return !!findUncaughtFrozen(this, key);\n  },\n  set: function (key, value) {\n    var entry = findUncaughtFrozen(this, key);\n    if (entry) entry[1] = value;\n    else this.entries.push([key, value]);\n  },\n  'delete': function (key) {\n    var index = findIndex(this.entries, function (it) {\n      return it[0] === key;\n    });\n    if (~index) splice(this.entries, index, 1);\n    return !!~index;\n  }\n};\n\nmodule.exports = {\n  getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n    var Constructor = wrapper(function (that, iterable) {\n      anInstance(that, Prototype);\n      setInternalState(that, {\n        type: CONSTRUCTOR_NAME,\n        id: id++,\n        frozen: undefined\n      });\n      if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n    });\n\n    var Prototype = Constructor.prototype;\n\n    var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n    var define = function (that, key, value) {\n      var state = getInternalState(that);\n      var data = getWeakData(anObject(key), true);\n      if (data === true) uncaughtFrozenStore(state).set(key, value);\n      else data[state.id] = value;\n      return that;\n    };\n\n    defineBuiltIns(Prototype, {\n      // `{ WeakMap, WeakSet }.prototype.delete(key)` methods\n      // https://tc39.es/ecma262/#sec-weakmap.prototype.delete\n      // https://tc39.es/ecma262/#sec-weakset.prototype.delete\n      'delete': function (key) {\n        var state = getInternalState(this);\n        if (!isObject(key)) return false;\n        var data = getWeakData(key);\n        if (data === true) return uncaughtFrozenStore(state)['delete'](key);\n        return data && hasOwn(data, state.id) && delete data[state.id];\n      },\n      // `{ WeakMap, WeakSet }.prototype.has(key)` methods\n      // https://tc39.es/ecma262/#sec-weakmap.prototype.has\n      // https://tc39.es/ecma262/#sec-weakset.prototype.has\n      has: function has(key) {\n        var state = getInternalState(this);\n        if (!isObject(key)) return false;\n        var data = getWeakData(key);\n        if (data === true) return uncaughtFrozenStore(state).has(key);\n        return data && hasOwn(data, state.id);\n      }\n    });\n\n    defineBuiltIns(Prototype, IS_MAP ? {\n      // `WeakMap.prototype.get(key)` method\n      // https://tc39.es/ecma262/#sec-weakmap.prototype.get\n      get: function get(key) {\n        var state = getInternalState(this);\n        if (isObject(key)) {\n          var data = getWeakData(key);\n          if (data === true) return uncaughtFrozenStore(state).get(key);\n          return data ? data[state.id] : undefined;\n        }\n      },\n      // `WeakMap.prototype.set(key, value)` method\n      // https://tc39.es/ecma262/#sec-weakmap.prototype.set\n      set: function set(key, value) {\n        return define(this, key, value);\n      }\n    } : {\n      // `WeakSet.prototype.add(value)` method\n      // https://tc39.es/ecma262/#sec-weakset.prototype.add\n      add: function add(value) {\n        return define(this, value, true);\n      }\n    });\n\n    return Constructor;\n  }\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/internals/collection-weak.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/internals/flatten-into-array.js":
/*!***********************************************************************!*\
  !*** ../../node_modules/core-js-pure/internals/flatten-into-array.js ***!
  \***********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar isArray = __webpack_require__(/*! ../internals/is-array */ \"../../node_modules/core-js-pure/internals/is-array.js\");\nvar lengthOfArrayLike = __webpack_require__(/*! ../internals/length-of-array-like */ \"../../node_modules/core-js-pure/internals/length-of-array-like.js\");\nvar doesNotExceedSafeInteger = __webpack_require__(/*! ../internals/does-not-exceed-safe-integer */ \"../../node_modules/core-js-pure/internals/does-not-exceed-safe-integer.js\");\nvar bind = __webpack_require__(/*! ../internals/function-bind-context */ \"../../node_modules/core-js-pure/internals/function-bind-context.js\");\n\n// `FlattenIntoArray` abstract operation\n// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray\nvar flattenIntoArray = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {\n  var targetIndex = start;\n  var sourceIndex = 0;\n  var mapFn = mapper ? bind(mapper, thisArg) : false;\n  var element, elementLen;\n\n  while (sourceIndex < sourceLen) {\n    if (sourceIndex in source) {\n      element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];\n\n      if (depth > 0 && isArray(element)) {\n        elementLen = lengthOfArrayLike(element);\n        targetIndex = flattenIntoArray(target, original, element, elementLen, targetIndex, depth - 1) - 1;\n      } else {\n        doesNotExceedSafeInteger(targetIndex + 1);\n        target[targetIndex] = element;\n      }\n\n      targetIndex++;\n    }\n    sourceIndex++;\n  }\n  return targetIndex;\n};\n\nmodule.exports = flattenIntoArray;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/internals/flatten-into-array.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/internals/is-data-descriptor.js":
/*!***********************************************************************!*\
  !*** ../../node_modules/core-js-pure/internals/is-data-descriptor.js ***!
  \***********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar hasOwn = __webpack_require__(/*! ../internals/has-own-property */ \"../../node_modules/core-js-pure/internals/has-own-property.js\");\n\nmodule.exports = function (descriptor) {\n  return descriptor !== undefined && (hasOwn(descriptor, 'value') || hasOwn(descriptor, 'writable'));\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/internals/is-data-descriptor.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/internals/is-integral-number.js":
/*!***********************************************************************!*\
  !*** ../../node_modules/core-js-pure/internals/is-integral-number.js ***!
  \***********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"../../node_modules/core-js-pure/internals/is-object.js\");\n\nvar floor = Math.floor;\n\n// `IsIntegralNumber` abstract operation\n// https://tc39.es/ecma262/#sec-isintegralnumber\n// eslint-disable-next-line es/no-number-isinteger -- safe\nmodule.exports = Number.isInteger || function isInteger(it) {\n  return !isObject(it) && isFinite(it) && floor(it) === it;\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/internals/is-integral-number.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/internals/math-float-round.js":
/*!*********************************************************************!*\
  !*** ../../node_modules/core-js-pure/internals/math-float-round.js ***!
  \*********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar sign = __webpack_require__(/*! ../internals/math-sign */ \"../../node_modules/core-js-pure/internals/math-sign.js\");\n\nvar abs = Math.abs;\n\nvar EPSILON = 2.220446049250313e-16; // Number.EPSILON\nvar INVERSE_EPSILON = 1 / EPSILON;\n\nvar roundTiesToEven = function (n) {\n  return n + INVERSE_EPSILON - INVERSE_EPSILON;\n};\n\nmodule.exports = function (x, FLOAT_EPSILON, FLOAT_MAX_VALUE, FLOAT_MIN_VALUE) {\n  var n = +x;\n  var absolute = abs(n);\n  var s = sign(n);\n  if (absolute < FLOAT_MIN_VALUE) return s * roundTiesToEven(absolute / FLOAT_MIN_VALUE / FLOAT_EPSILON) * FLOAT_MIN_VALUE * FLOAT_EPSILON;\n  var a = (1 + FLOAT_EPSILON / EPSILON) * absolute;\n  var result = a - (a - absolute);\n  // eslint-disable-next-line no-self-compare -- NaN check\n  if (result > FLOAT_MAX_VALUE || result !== result) return s * Infinity;\n  return s * result;\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/internals/math-float-round.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/internals/math-fround.js":
/*!****************************************************************!*\
  !*** ../../node_modules/core-js-pure/internals/math-fround.js ***!
  \****************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar floatRound = __webpack_require__(/*! ../internals/math-float-round */ \"../../node_modules/core-js-pure/internals/math-float-round.js\");\n\nvar FLOAT32_EPSILON = 1.1920928955078125e-7; // 2 ** -23;\nvar FLOAT32_MAX_VALUE = 3.4028234663852886e+38; // 2 ** 128 - 2 ** 104\nvar FLOAT32_MIN_VALUE = 1.1754943508222875e-38; // 2 ** -126;\n\n// `Math.fround` method implementation\n// https://tc39.es/ecma262/#sec-math.fround\n// eslint-disable-next-line es/no-math-fround -- safe\nmodule.exports = Math.fround || function fround(x) {\n  return floatRound(x, FLOAT32_EPSILON, FLOAT32_MAX_VALUE, FLOAT32_MIN_VALUE);\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/internals/math-fround.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/internals/math-sign.js":
/*!**************************************************************!*\
  !*** ../../node_modules/core-js-pure/internals/math-sign.js ***!
  \**************************************************************/
/***/ (function(module) {

"use strict";
eval("\n// `Math.sign` method implementation\n// https://tc39.es/ecma262/#sec-math.sign\n// eslint-disable-next-line es/no-math-sign -- safe\nmodule.exports = Math.sign || function sign(x) {\n  var n = +x;\n  // eslint-disable-next-line no-self-compare -- NaN check\n  return n === 0 || n !== n ? n : n < 0 ? -1 : 1;\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/internals/math-sign.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/internals/string-pad-webkit-bug.js":
/*!**************************************************************************!*\
  !*** ../../node_modules/core-js-pure/internals/string-pad-webkit-bug.js ***!
  \**************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n// https://github.com/zloirock/core-js/issues/280\nvar userAgent = __webpack_require__(/*! ../internals/engine-user-agent */ \"../../node_modules/core-js-pure/internals/engine-user-agent.js\");\n\nmodule.exports = /Version\\/10(?:\\.\\d+){1,2}(?: [\\w./]+)?(?: Mobile\\/\\w+)? Safari\\//.test(userAgent);\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/internals/string-pad-webkit-bug.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/internals/string-pad.js":
/*!***************************************************************!*\
  !*** ../../node_modules/core-js-pure/internals/string-pad.js ***!
  \***************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n// https://github.com/tc39/proposal-string-pad-start-end\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"../../node_modules/core-js-pure/internals/function-uncurry-this.js\");\nvar toLength = __webpack_require__(/*! ../internals/to-length */ \"../../node_modules/core-js-pure/internals/to-length.js\");\nvar toString = __webpack_require__(/*! ../internals/to-string */ \"../../node_modules/core-js-pure/internals/to-string.js\");\nvar $repeat = __webpack_require__(/*! ../internals/string-repeat */ \"../../node_modules/core-js-pure/internals/string-repeat.js\");\nvar requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ \"../../node_modules/core-js-pure/internals/require-object-coercible.js\");\n\nvar repeat = uncurryThis($repeat);\nvar stringSlice = uncurryThis(''.slice);\nvar ceil = Math.ceil;\n\n// `String.prototype.{ padStart, padEnd }` methods implementation\nvar createMethod = function (IS_END) {\n  return function ($this, maxLength, fillString) {\n    var S = toString(requireObjectCoercible($this));\n    var intMaxLength = toLength(maxLength);\n    var stringLength = S.length;\n    var fillStr = fillString === undefined ? ' ' : toString(fillString);\n    var fillLen, stringFiller;\n    if (intMaxLength <= stringLength || fillStr === '') return S;\n    fillLen = intMaxLength - stringLength;\n    stringFiller = repeat(fillStr, ceil(fillLen / fillStr.length));\n    if (stringFiller.length > fillLen) stringFiller = stringSlice(stringFiller, 0, fillLen);\n    return IS_END ? S + stringFiller : stringFiller + S;\n  };\n};\n\nmodule.exports = {\n  // `String.prototype.padStart` method\n  // https://tc39.es/ecma262/#sec-string.prototype.padstart\n  start: createMethod(false),\n  // `String.prototype.padEnd` method\n  // https://tc39.es/ecma262/#sec-string.prototype.padend\n  end: createMethod(true)\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/internals/string-pad.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/internals/string-punycode-to-ascii.js":
/*!*****************************************************************************!*\
  !*** ../../node_modules/core-js-pure/internals/string-punycode-to-ascii.js ***!
  \*****************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"../../node_modules/core-js-pure/internals/function-uncurry-this.js\");\n\nvar maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1\nvar base = 36;\nvar tMin = 1;\nvar tMax = 26;\nvar skew = 38;\nvar damp = 700;\nvar initialBias = 72;\nvar initialN = 128; // 0x80\nvar delimiter = '-'; // '\\x2D'\nvar regexNonASCII = /[^\\0-\\u007E]/; // non-ASCII chars\nvar regexSeparators = /[.\\u3002\\uFF0E\\uFF61]/g; // RFC 3490 separators\nvar OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';\nvar baseMinusTMin = base - tMin;\n\nvar $RangeError = RangeError;\nvar exec = uncurryThis(regexSeparators.exec);\nvar floor = Math.floor;\nvar fromCharCode = String.fromCharCode;\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar join = uncurryThis([].join);\nvar push = uncurryThis([].push);\nvar replace = uncurryThis(''.replace);\nvar split = uncurryThis(''.split);\nvar toLowerCase = uncurryThis(''.toLowerCase);\n\n/**\n * Creates an array containing the numeric code points of each Unicode\n * character in the string. While JavaScript uses UCS-2 internally,\n * this function will convert a pair of surrogate halves (each of which\n * UCS-2 exposes as separate characters) into a single code point,\n * matching UTF-16.\n */\nvar ucs2decode = function (string) {\n  var output = [];\n  var counter = 0;\n  var length = string.length;\n  while (counter < length) {\n    var value = charCodeAt(string, counter++);\n    if (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n      // It's a high surrogate, and there is a next character.\n      var extra = charCodeAt(string, counter++);\n      if ((extra & 0xFC00) === 0xDC00) { // Low surrogate.\n        push(output, ((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n      } else {\n        // It's an unmatched surrogate; only append this code unit, in case the\n        // next code unit is the high surrogate of a surrogate pair.\n        push(output, value);\n        counter--;\n      }\n    } else {\n      push(output, value);\n    }\n  }\n  return output;\n};\n\n/**\n * Converts a digit/integer into a basic code point.\n */\nvar digitToBasic = function (digit) {\n  //  0..25 map to ASCII a..z or A..Z\n  // 26..35 map to ASCII 0..9\n  return digit + 22 + 75 * (digit < 26);\n};\n\n/**\n * Bias adaptation function as per section 3.4 of RFC 3492.\n * https://tools.ietf.org/html/rfc3492#section-3.4\n */\nvar adapt = function (delta, numPoints, firstTime) {\n  var k = 0;\n  delta = firstTime ? floor(delta / damp) : delta >> 1;\n  delta += floor(delta / numPoints);\n  while (delta > baseMinusTMin * tMax >> 1) {\n    delta = floor(delta / baseMinusTMin);\n    k += base;\n  }\n  return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n};\n\n/**\n * Converts a string of Unicode symbols (e.g. a domain name label) to a\n * Punycode string of ASCII-only symbols.\n */\nvar encode = function (input) {\n  var output = [];\n\n  // Convert the input in UCS-2 to an array of Unicode code points.\n  input = ucs2decode(input);\n\n  // Cache the length.\n  var inputLength = input.length;\n\n  // Initialize the state.\n  var n = initialN;\n  var delta = 0;\n  var bias = initialBias;\n  var i, currentValue;\n\n  // Handle the basic code points.\n  for (i = 0; i < input.length; i++) {\n    currentValue = input[i];\n    if (currentValue < 0x80) {\n      push(output, fromCharCode(currentValue));\n    }\n  }\n\n  var basicLength = output.length; // number of basic code points.\n  var handledCPCount = basicLength; // number of code points that have been handled;\n\n  // Finish the basic string with a delimiter unless it's empty.\n  if (basicLength) {\n    push(output, delimiter);\n  }\n\n  // Main encoding loop:\n  while (handledCPCount < inputLength) {\n    // All non-basic code points < n have been handled already. Find the next larger one:\n    var m = maxInt;\n    for (i = 0; i < input.length; i++) {\n      currentValue = input[i];\n      if (currentValue >= n && currentValue < m) {\n        m = currentValue;\n      }\n    }\n\n    // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.\n    var handledCPCountPlusOne = handledCPCount + 1;\n    if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n      throw new $RangeError(OVERFLOW_ERROR);\n    }\n\n    delta += (m - n) * handledCPCountPlusOne;\n    n = m;\n\n    for (i = 0; i < input.length; i++) {\n      currentValue = input[i];\n      if (currentValue < n && ++delta > maxInt) {\n        throw new $RangeError(OVERFLOW_ERROR);\n      }\n      if (currentValue === n) {\n        // Represent delta as a generalized variable-length integer.\n        var q = delta;\n        var k = base;\n        while (true) {\n          var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;\n          if (q < t) break;\n          var qMinusT = q - t;\n          var baseMinusT = base - t;\n          push(output, fromCharCode(digitToBasic(t + qMinusT % baseMinusT)));\n          q = floor(qMinusT / baseMinusT);\n          k += base;\n        }\n\n        push(output, fromCharCode(digitToBasic(q)));\n        bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);\n        delta = 0;\n        handledCPCount++;\n      }\n    }\n\n    delta++;\n    n++;\n  }\n  return join(output, '');\n};\n\nmodule.exports = function (input) {\n  var encoded = [];\n  var labels = split(replace(toLowerCase(input), regexSeparators, '\\u002E'), '.');\n  var i, label;\n  for (i = 0; i < labels.length; i++) {\n    label = labels[i];\n    push(encoded, exec(regexNonASCII, label) ? 'xn--' + encode(label) : label);\n  }\n  return join(encoded, '.');\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/internals/string-punycode-to-ascii.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/internals/string-trim-end.js":
/*!********************************************************************!*\
  !*** ../../node_modules/core-js-pure/internals/string-trim-end.js ***!
  \********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $trimEnd = (__webpack_require__(/*! ../internals/string-trim */ \"../../node_modules/core-js-pure/internals/string-trim.js\").end);\nvar forcedStringTrimMethod = __webpack_require__(/*! ../internals/string-trim-forced */ \"../../node_modules/core-js-pure/internals/string-trim-forced.js\");\n\n// `String.prototype.{ trimEnd, trimRight }` method\n// https://tc39.es/ecma262/#sec-string.prototype.trimend\n// https://tc39.es/ecma262/#String.prototype.trimright\nmodule.exports = forcedStringTrimMethod('trimEnd') ? function trimEnd() {\n  return $trimEnd(this);\n// eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe\n} : ''.trimEnd;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/internals/string-trim-end.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/internals/url-constructor-detection.js":
/*!******************************************************************************!*\
  !*** ../../node_modules/core-js-pure/internals/url-constructor-detection.js ***!
  \******************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar fails = __webpack_require__(/*! ../internals/fails */ \"../../node_modules/core-js-pure/internals/fails.js\");\nvar wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ \"../../node_modules/core-js-pure/internals/well-known-symbol.js\");\nvar DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"../../node_modules/core-js-pure/internals/descriptors.js\");\nvar IS_PURE = __webpack_require__(/*! ../internals/is-pure */ \"../../node_modules/core-js-pure/internals/is-pure.js\");\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = !fails(function () {\n  // eslint-disable-next-line unicorn/relative-url-style -- required for testing\n  var url = new URL('b?a=1&b=2&c=3', 'http://a');\n  var params = url.searchParams;\n  var params2 = new URLSearchParams('a=1&a=2&b=3');\n  var result = '';\n  url.pathname = 'c%20d';\n  params.forEach(function (value, key) {\n    params['delete']('b');\n    result += key + value;\n  });\n  params2['delete']('a', 2);\n  // `undefined` case is a Chromium 117 bug\n  // https://bugs.chromium.org/p/v8/issues/detail?id=14222\n  params2['delete']('b', undefined);\n  return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))\n    || (!params.size && (IS_PURE || !DESCRIPTORS))\n    || !params.sort\n    || url.href !== 'http://a/c%20d?a=1&c=3'\n    || params.get('c') !== '3'\n    || String(new URLSearchParams('?a=1')) !== 'a=1'\n    || !params[ITERATOR]\n    // throws in Edge\n    || new URL('https://a@b').username !== 'a'\n    || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'\n    // not punycoded in Edge\n    || new URL('http://тест').host !== 'xn--e1aybc'\n    // not escaped in Chrome 62-\n    || new URL('http://a#б').hash !== '#%D0%B1'\n    // fails in Chrome 66-\n    || result !== 'a1c3'\n    // throws in Safari\n    || new URL('http://x', undefined).host !== 'x';\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/internals/url-constructor-detection.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.array.flat.js":
/*!****************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.array.flat.js ***!
  \****************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar flattenIntoArray = __webpack_require__(/*! ../internals/flatten-into-array */ \"../../node_modules/core-js-pure/internals/flatten-into-array.js\");\nvar toObject = __webpack_require__(/*! ../internals/to-object */ \"../../node_modules/core-js-pure/internals/to-object.js\");\nvar lengthOfArrayLike = __webpack_require__(/*! ../internals/length-of-array-like */ \"../../node_modules/core-js-pure/internals/length-of-array-like.js\");\nvar toIntegerOrInfinity = __webpack_require__(/*! ../internals/to-integer-or-infinity */ \"../../node_modules/core-js-pure/internals/to-integer-or-infinity.js\");\nvar arraySpeciesCreate = __webpack_require__(/*! ../internals/array-species-create */ \"../../node_modules/core-js-pure/internals/array-species-create.js\");\n\n// `Array.prototype.flat` method\n// https://tc39.es/ecma262/#sec-array.prototype.flat\n$({ target: 'Array', proto: true }, {\n  flat: function flat(/* depthArg = 1 */) {\n    var depthArg = arguments.length ? arguments[0] : undefined;\n    var O = toObject(this);\n    var sourceLen = lengthOfArrayLike(O);\n    var A = arraySpeciesCreate(O, 0);\n    A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toIntegerOrInfinity(depthArg));\n    return A;\n  }\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.array.flat.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.array.unscopables.flat.js":
/*!****************************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.array.unscopables.flat.js ***!
  \****************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n// this method was added to unscopables after implementation\n// in popular engines, so it's moved to a separate module\nvar addToUnscopables = __webpack_require__(/*! ../internals/add-to-unscopables */ \"../../node_modules/core-js-pure/internals/add-to-unscopables.js\");\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('flat');\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.array.unscopables.flat.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.global-this.js":
/*!*****************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.global-this.js ***!
  \*****************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar global = __webpack_require__(/*! ../internals/global */ \"../../node_modules/core-js-pure/internals/global.js\");\n\n// `globalThis` object\n// https://tc39.es/ecma262/#sec-globalthis\n$({ global: true, forced: global.globalThis !== global }, {\n  globalThis: global\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.global-this.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.math.fround.js":
/*!*****************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.math.fround.js ***!
  \*****************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar fround = __webpack_require__(/*! ../internals/math-fround */ \"../../node_modules/core-js-pure/internals/math-fround.js\");\n\n// `Math.fround` method\n// https://tc39.es/ecma262/#sec-math.fround\n$({ target: 'Math', stat: true }, { fround: fround });\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.math.fround.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.math.hypot.js":
/*!****************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.math.hypot.js ***!
  \****************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\n\n// eslint-disable-next-line es/no-math-hypot -- required for testing\nvar $hypot = Math.hypot;\nvar abs = Math.abs;\nvar sqrt = Math.sqrt;\n\n// Chrome 77 bug\n// https://bugs.chromium.org/p/v8/issues/detail?id=9546\nvar FORCED = !!$hypot && $hypot(Infinity, NaN) !== Infinity;\n\n// `Math.hypot` method\n// https://tc39.es/ecma262/#sec-math.hypot\n$({ target: 'Math', stat: true, arity: 2, forced: FORCED }, {\n  // eslint-disable-next-line no-unused-vars -- required for `.length`\n  hypot: function hypot(value1, value2) {\n    var sum = 0;\n    var i = 0;\n    var aLen = arguments.length;\n    var larg = 0;\n    var arg, div;\n    while (i < aLen) {\n      arg = abs(arguments[i++]);\n      if (larg < arg) {\n        div = larg / arg;\n        sum = sum * div * div + 1;\n        larg = arg;\n      } else if (arg > 0) {\n        div = arg / larg;\n        sum += div * div;\n      } else sum += arg;\n    }\n    return larg === Infinity ? Infinity : larg * sqrt(sum);\n  }\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.math.hypot.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.math.log2.js":
/*!***************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.math.log2.js ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\n\nvar log = Math.log;\nvar LN2 = Math.LN2;\n\n// `Math.log2` method\n// https://tc39.es/ecma262/#sec-math.log2\n$({ target: 'Math', stat: true }, {\n  log2: function log2(x) {\n    return log(x) / LN2;\n  }\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.math.log2.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.math.sign.js":
/*!***************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.math.sign.js ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar sign = __webpack_require__(/*! ../internals/math-sign */ \"../../node_modules/core-js-pure/internals/math-sign.js\");\n\n// `Math.sign` method\n// https://tc39.es/ecma262/#sec-math.sign\n$({ target: 'Math', stat: true }, {\n  sign: sign\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.math.sign.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.math.trunc.js":
/*!****************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.math.trunc.js ***!
  \****************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar trunc = __webpack_require__(/*! ../internals/math-trunc */ \"../../node_modules/core-js-pure/internals/math-trunc.js\");\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n$({ target: 'Math', stat: true }, {\n  trunc: trunc\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.math.trunc.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.number.is-integer.js":
/*!***********************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.number.is-integer.js ***!
  \***********************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar isIntegralNumber = __webpack_require__(/*! ../internals/is-integral-number */ \"../../node_modules/core-js-pure/internals/is-integral-number.js\");\n\n// `Number.isInteger` method\n// https://tc39.es/ecma262/#sec-number.isinteger\n$({ target: 'Number', stat: true }, {\n  isInteger: isIntegralNumber\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.number.is-integer.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.object.freeze.js":
/*!*******************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.object.freeze.js ***!
  \*******************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar FREEZING = __webpack_require__(/*! ../internals/freezing */ \"../../node_modules/core-js-pure/internals/freezing.js\");\nvar fails = __webpack_require__(/*! ../internals/fails */ \"../../node_modules/core-js-pure/internals/fails.js\");\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"../../node_modules/core-js-pure/internals/is-object.js\");\nvar onFreeze = (__webpack_require__(/*! ../internals/internal-metadata */ \"../../node_modules/core-js-pure/internals/internal-metadata.js\").onFreeze);\n\n// eslint-disable-next-line es/no-object-freeze -- safe\nvar $freeze = Object.freeze;\nvar FAILS_ON_PRIMITIVES = fails(function () { $freeze(1); });\n\n// `Object.freeze` method\n// https://tc39.es/ecma262/#sec-object.freeze\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {\n  freeze: function freeze(it) {\n    return $freeze && isObject(it) ? $freeze(onFreeze(it)) : it;\n  }\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.object.freeze.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.object.is-extensible.js":
/*!**************************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.object.is-extensible.js ***!
  \**************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar $isExtensible = __webpack_require__(/*! ../internals/object-is-extensible */ \"../../node_modules/core-js-pure/internals/object-is-extensible.js\");\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\n// eslint-disable-next-line es/no-object-isextensible -- safe\n$({ target: 'Object', stat: true, forced: Object.isExtensible !== $isExtensible }, {\n  isExtensible: $isExtensible\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.object.is-extensible.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.object.prevent-extensions.js":
/*!*******************************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.object.prevent-extensions.js ***!
  \*******************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"../../node_modules/core-js-pure/internals/is-object.js\");\nvar onFreeze = (__webpack_require__(/*! ../internals/internal-metadata */ \"../../node_modules/core-js-pure/internals/internal-metadata.js\").onFreeze);\nvar FREEZING = __webpack_require__(/*! ../internals/freezing */ \"../../node_modules/core-js-pure/internals/freezing.js\");\nvar fails = __webpack_require__(/*! ../internals/fails */ \"../../node_modules/core-js-pure/internals/fails.js\");\n\n// eslint-disable-next-line es/no-object-preventextensions -- safe\nvar $preventExtensions = Object.preventExtensions;\nvar FAILS_ON_PRIMITIVES = fails(function () { $preventExtensions(1); });\n\n// `Object.preventExtensions` method\n// https://tc39.es/ecma262/#sec-object.preventextensions\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {\n  preventExtensions: function preventExtensions(it) {\n    return $preventExtensions && isObject(it) ? $preventExtensions(onFreeze(it)) : it;\n  }\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.object.prevent-extensions.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.reflect.get.js":
/*!*****************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.reflect.get.js ***!
  \*****************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar call = __webpack_require__(/*! ../internals/function-call */ \"../../node_modules/core-js-pure/internals/function-call.js\");\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"../../node_modules/core-js-pure/internals/is-object.js\");\nvar anObject = __webpack_require__(/*! ../internals/an-object */ \"../../node_modules/core-js-pure/internals/an-object.js\");\nvar isDataDescriptor = __webpack_require__(/*! ../internals/is-data-descriptor */ \"../../node_modules/core-js-pure/internals/is-data-descriptor.js\");\nvar getOwnPropertyDescriptorModule = __webpack_require__(/*! ../internals/object-get-own-property-descriptor */ \"../../node_modules/core-js-pure/internals/object-get-own-property-descriptor.js\");\nvar getPrototypeOf = __webpack_require__(/*! ../internals/object-get-prototype-of */ \"../../node_modules/core-js-pure/internals/object-get-prototype-of.js\");\n\n// `Reflect.get` method\n// https://tc39.es/ecma262/#sec-reflect.get\nfunction get(target, propertyKey /* , receiver */) {\n  var receiver = arguments.length < 3 ? target : arguments[2];\n  var descriptor, prototype;\n  if (anObject(target) === receiver) return target[propertyKey];\n  descriptor = getOwnPropertyDescriptorModule.f(target, propertyKey);\n  if (descriptor) return isDataDescriptor(descriptor)\n    ? descriptor.value\n    : descriptor.get === undefined ? undefined : call(descriptor.get, receiver);\n  if (isObject(prototype = getPrototypeOf(target))) return get(prototype, propertyKey, receiver);\n}\n\n$({ target: 'Reflect', stat: true }, {\n  get: get\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.reflect.get.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.regexp.flags.js":
/*!******************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.regexp.flags.js ***!
  \******************************************************************/
/***/ (function() {

eval("// empty\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.regexp.flags.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.string.code-point-at.js":
/*!**************************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.string.code-point-at.js ***!
  \**************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar codeAt = (__webpack_require__(/*! ../internals/string-multibyte */ \"../../node_modules/core-js-pure/internals/string-multibyte.js\").codeAt);\n\n// `String.prototype.codePointAt` method\n// https://tc39.es/ecma262/#sec-string.prototype.codepointat\n$({ target: 'String', proto: true }, {\n  codePointAt: function codePointAt(pos) {\n    return codeAt(this, pos);\n  }\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.string.code-point-at.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.string.from-code-point.js":
/*!****************************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.string.from-code-point.js ***!
  \****************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"../../node_modules/core-js-pure/internals/function-uncurry-this.js\");\nvar toAbsoluteIndex = __webpack_require__(/*! ../internals/to-absolute-index */ \"../../node_modules/core-js-pure/internals/to-absolute-index.js\");\n\nvar $RangeError = RangeError;\nvar fromCharCode = String.fromCharCode;\n// eslint-disable-next-line es/no-string-fromcodepoint -- required for testing\nvar $fromCodePoint = String.fromCodePoint;\nvar join = uncurryThis([].join);\n\n// length should be 1, old FF problem\nvar INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length !== 1;\n\n// `String.fromCodePoint` method\n// https://tc39.es/ecma262/#sec-string.fromcodepoint\n$({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {\n  // eslint-disable-next-line no-unused-vars -- required for `.length`\n  fromCodePoint: function fromCodePoint(x) {\n    var elements = [];\n    var length = arguments.length;\n    var i = 0;\n    var code;\n    while (length > i) {\n      code = +arguments[i++];\n      if (toAbsoluteIndex(code, 0x10FFFF) !== code) throw new $RangeError(code + ' is not a valid code point');\n      elements[i] = code < 0x10000\n        ? fromCharCode(code)\n        : fromCharCode(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00);\n    } return join(elements, '');\n  }\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.string.from-code-point.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.string.pad-end.js":
/*!********************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.string.pad-end.js ***!
  \********************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar $padEnd = (__webpack_require__(/*! ../internals/string-pad */ \"../../node_modules/core-js-pure/internals/string-pad.js\").end);\nvar WEBKIT_BUG = __webpack_require__(/*! ../internals/string-pad-webkit-bug */ \"../../node_modules/core-js-pure/internals/string-pad-webkit-bug.js\");\n\n// `String.prototype.padEnd` method\n// https://tc39.es/ecma262/#sec-string.prototype.padend\n$({ target: 'String', proto: true, forced: WEBKIT_BUG }, {\n  padEnd: function padEnd(maxLength /* , fillString = ' ' */) {\n    return $padEnd(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);\n  }\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.string.pad-end.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.string.pad-start.js":
/*!**********************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.string.pad-start.js ***!
  \**********************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar $padStart = (__webpack_require__(/*! ../internals/string-pad */ \"../../node_modules/core-js-pure/internals/string-pad.js\").start);\nvar WEBKIT_BUG = __webpack_require__(/*! ../internals/string-pad-webkit-bug */ \"../../node_modules/core-js-pure/internals/string-pad-webkit-bug.js\");\n\n// `String.prototype.padStart` method\n// https://tc39.es/ecma262/#sec-string.prototype.padstart\n$({ target: 'String', proto: true, forced: WEBKIT_BUG }, {\n  padStart: function padStart(maxLength /* , fillString = ' ' */) {\n    return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);\n  }\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.string.pad-start.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.string.trim-end.js":
/*!*********************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.string.trim-end.js ***!
  \*********************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n// TODO: Remove this line from `core-js@4`\n__webpack_require__(/*! ../modules/es.string.trim-right */ \"../../node_modules/core-js-pure/modules/es.string.trim-right.js\");\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar trimEnd = __webpack_require__(/*! ../internals/string-trim-end */ \"../../node_modules/core-js-pure/internals/string-trim-end.js\");\n\n// `String.prototype.trimEnd` method\n// https://tc39.es/ecma262/#sec-string.prototype.trimend\n// eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe\n$({ target: 'String', proto: true, name: 'trimEnd', forced: ''.trimEnd !== trimEnd }, {\n  trimEnd: trimEnd\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.string.trim-end.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.string.trim-right.js":
/*!***********************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.string.trim-right.js ***!
  \***********************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar trimEnd = __webpack_require__(/*! ../internals/string-trim-end */ \"../../node_modules/core-js-pure/internals/string-trim-end.js\");\n\n// `String.prototype.trimRight` method\n// https://tc39.es/ecma262/#sec-string.prototype.trimend\n// eslint-disable-next-line es/no-string-prototype-trimleft-trimright -- safe\n$({ target: 'String', proto: true, name: 'trimEnd', forced: ''.trimRight !== trimEnd }, {\n  trimRight: trimEnd\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.string.trim-right.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.weak-map.constructor.js":
/*!**************************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.weak-map.constructor.js ***!
  \**************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar FREEZING = __webpack_require__(/*! ../internals/freezing */ \"../../node_modules/core-js-pure/internals/freezing.js\");\nvar global = __webpack_require__(/*! ../internals/global */ \"../../node_modules/core-js-pure/internals/global.js\");\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"../../node_modules/core-js-pure/internals/function-uncurry-this.js\");\nvar defineBuiltIns = __webpack_require__(/*! ../internals/define-built-ins */ \"../../node_modules/core-js-pure/internals/define-built-ins.js\");\nvar InternalMetadataModule = __webpack_require__(/*! ../internals/internal-metadata */ \"../../node_modules/core-js-pure/internals/internal-metadata.js\");\nvar collection = __webpack_require__(/*! ../internals/collection */ \"../../node_modules/core-js-pure/internals/collection.js\");\nvar collectionWeak = __webpack_require__(/*! ../internals/collection-weak */ \"../../node_modules/core-js-pure/internals/collection-weak.js\");\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"../../node_modules/core-js-pure/internals/is-object.js\");\nvar enforceInternalState = (__webpack_require__(/*! ../internals/internal-state */ \"../../node_modules/core-js-pure/internals/internal-state.js\").enforce);\nvar fails = __webpack_require__(/*! ../internals/fails */ \"../../node_modules/core-js-pure/internals/fails.js\");\nvar NATIVE_WEAK_MAP = __webpack_require__(/*! ../internals/weak-map-basic-detection */ \"../../node_modules/core-js-pure/internals/weak-map-basic-detection.js\");\n\nvar $Object = Object;\n// eslint-disable-next-line es/no-array-isarray -- safe\nvar isArray = Array.isArray;\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar isExtensible = $Object.isExtensible;\n// eslint-disable-next-line es/no-object-isfrozen -- safe\nvar isFrozen = $Object.isFrozen;\n// eslint-disable-next-line es/no-object-issealed -- safe\nvar isSealed = $Object.isSealed;\n// eslint-disable-next-line es/no-object-freeze -- safe\nvar freeze = $Object.freeze;\n// eslint-disable-next-line es/no-object-seal -- safe\nvar seal = $Object.seal;\n\nvar IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;\nvar InternalWeakMap;\n\nvar wrapper = function (init) {\n  return function WeakMap() {\n    return init(this, arguments.length ? arguments[0] : undefined);\n  };\n};\n\n// `WeakMap` constructor\n// https://tc39.es/ecma262/#sec-weakmap-constructor\nvar $WeakMap = collection('WeakMap', wrapper, collectionWeak);\nvar WeakMapPrototype = $WeakMap.prototype;\nvar nativeSet = uncurryThis(WeakMapPrototype.set);\n\n// Chakra Edge bug: adding frozen arrays to WeakMap unfreeze them\nvar hasMSEdgeFreezingBug = function () {\n  return FREEZING && fails(function () {\n    var frozenArray = freeze([]);\n    nativeSet(new $WeakMap(), frozenArray, 1);\n    return !isFrozen(frozenArray);\n  });\n};\n\n// IE11 WeakMap frozen keys fix\n// We can't use feature detection because it crash some old IE builds\n// https://github.com/zloirock/core-js/issues/485\nif (NATIVE_WEAK_MAP) if (IS_IE11) {\n  InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);\n  InternalMetadataModule.enable();\n  var nativeDelete = uncurryThis(WeakMapPrototype['delete']);\n  var nativeHas = uncurryThis(WeakMapPrototype.has);\n  var nativeGet = uncurryThis(WeakMapPrototype.get);\n  defineBuiltIns(WeakMapPrototype, {\n    'delete': function (key) {\n      if (isObject(key) && !isExtensible(key)) {\n        var state = enforceInternalState(this);\n        if (!state.frozen) state.frozen = new InternalWeakMap();\n        return nativeDelete(this, key) || state.frozen['delete'](key);\n      } return nativeDelete(this, key);\n    },\n    has: function has(key) {\n      if (isObject(key) && !isExtensible(key)) {\n        var state = enforceInternalState(this);\n        if (!state.frozen) state.frozen = new InternalWeakMap();\n        return nativeHas(this, key) || state.frozen.has(key);\n      } return nativeHas(this, key);\n    },\n    get: function get(key) {\n      if (isObject(key) && !isExtensible(key)) {\n        var state = enforceInternalState(this);\n        if (!state.frozen) state.frozen = new InternalWeakMap();\n        return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);\n      } return nativeGet(this, key);\n    },\n    set: function set(key, value) {\n      if (isObject(key) && !isExtensible(key)) {\n        var state = enforceInternalState(this);\n        if (!state.frozen) state.frozen = new InternalWeakMap();\n        nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);\n      } else nativeSet(this, key, value);\n      return this;\n    }\n  });\n// Chakra Edge frozen keys fix\n} else if (hasMSEdgeFreezingBug()) {\n  defineBuiltIns(WeakMapPrototype, {\n    set: function set(key, value) {\n      var arrayIntegrityLevel;\n      if (isArray(key)) {\n        if (isFrozen(key)) arrayIntegrityLevel = freeze;\n        else if (isSealed(key)) arrayIntegrityLevel = seal;\n      }\n      nativeSet(this, key, value);\n      if (arrayIntegrityLevel) arrayIntegrityLevel(key);\n      return this;\n    }\n  });\n}\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.weak-map.constructor.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.weak-map.js":
/*!**************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.weak-map.js ***!
  \**************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n// TODO: Remove this module from `core-js@4` since it's replaced to module below\n__webpack_require__(/*! ../modules/es.weak-map.constructor */ \"../../node_modules/core-js-pure/modules/es.weak-map.constructor.js\");\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.weak-map.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.weak-set.constructor.js":
/*!**************************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.weak-set.constructor.js ***!
  \**************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar collection = __webpack_require__(/*! ../internals/collection */ \"../../node_modules/core-js-pure/internals/collection.js\");\nvar collectionWeak = __webpack_require__(/*! ../internals/collection-weak */ \"../../node_modules/core-js-pure/internals/collection-weak.js\");\n\n// `WeakSet` constructor\n// https://tc39.es/ecma262/#sec-weakset-constructor\ncollection('WeakSet', function (init) {\n  return function WeakSet() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionWeak);\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.weak-set.constructor.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/es.weak-set.js":
/*!**************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/es.weak-set.js ***!
  \**************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n// TODO: Remove this module from `core-js@4` since it's replaced to module below\n__webpack_require__(/*! ../modules/es.weak-set.constructor */ \"../../node_modules/core-js-pure/modules/es.weak-set.constructor.js\");\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/es.weak-set.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/esnext.global-this.js":
/*!*********************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/esnext.global-this.js ***!
  \*********************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n// TODO: Remove from `core-js@4`\n__webpack_require__(/*! ../modules/es.global-this */ \"../../node_modules/core-js-pure/modules/es.global-this.js\");\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/esnext.global-this.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/web.url-search-params.constructor.js":
/*!************************************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/web.url-search-params.constructor.js ***!
  \************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`\n__webpack_require__(/*! ../modules/es.array.iterator */ \"../../node_modules/core-js-pure/modules/es.array.iterator.js\");\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar global = __webpack_require__(/*! ../internals/global */ \"../../node_modules/core-js-pure/internals/global.js\");\nvar safeGetBuiltIn = __webpack_require__(/*! ../internals/safe-get-built-in */ \"../../node_modules/core-js-pure/internals/safe-get-built-in.js\");\nvar call = __webpack_require__(/*! ../internals/function-call */ \"../../node_modules/core-js-pure/internals/function-call.js\");\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"../../node_modules/core-js-pure/internals/function-uncurry-this.js\");\nvar DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"../../node_modules/core-js-pure/internals/descriptors.js\");\nvar USE_NATIVE_URL = __webpack_require__(/*! ../internals/url-constructor-detection */ \"../../node_modules/core-js-pure/internals/url-constructor-detection.js\");\nvar defineBuiltIn = __webpack_require__(/*! ../internals/define-built-in */ \"../../node_modules/core-js-pure/internals/define-built-in.js\");\nvar defineBuiltInAccessor = __webpack_require__(/*! ../internals/define-built-in-accessor */ \"../../node_modules/core-js-pure/internals/define-built-in-accessor.js\");\nvar defineBuiltIns = __webpack_require__(/*! ../internals/define-built-ins */ \"../../node_modules/core-js-pure/internals/define-built-ins.js\");\nvar setToStringTag = __webpack_require__(/*! ../internals/set-to-string-tag */ \"../../node_modules/core-js-pure/internals/set-to-string-tag.js\");\nvar createIteratorConstructor = __webpack_require__(/*! ../internals/iterator-create-constructor */ \"../../node_modules/core-js-pure/internals/iterator-create-constructor.js\");\nvar InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ \"../../node_modules/core-js-pure/internals/internal-state.js\");\nvar anInstance = __webpack_require__(/*! ../internals/an-instance */ \"../../node_modules/core-js-pure/internals/an-instance.js\");\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"../../node_modules/core-js-pure/internals/is-callable.js\");\nvar hasOwn = __webpack_require__(/*! ../internals/has-own-property */ \"../../node_modules/core-js-pure/internals/has-own-property.js\");\nvar bind = __webpack_require__(/*! ../internals/function-bind-context */ \"../../node_modules/core-js-pure/internals/function-bind-context.js\");\nvar classof = __webpack_require__(/*! ../internals/classof */ \"../../node_modules/core-js-pure/internals/classof.js\");\nvar anObject = __webpack_require__(/*! ../internals/an-object */ \"../../node_modules/core-js-pure/internals/an-object.js\");\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"../../node_modules/core-js-pure/internals/is-object.js\");\nvar $toString = __webpack_require__(/*! ../internals/to-string */ \"../../node_modules/core-js-pure/internals/to-string.js\");\nvar create = __webpack_require__(/*! ../internals/object-create */ \"../../node_modules/core-js-pure/internals/object-create.js\");\nvar createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ \"../../node_modules/core-js-pure/internals/create-property-descriptor.js\");\nvar getIterator = __webpack_require__(/*! ../internals/get-iterator */ \"../../node_modules/core-js-pure/internals/get-iterator.js\");\nvar getIteratorMethod = __webpack_require__(/*! ../internals/get-iterator-method */ \"../../node_modules/core-js-pure/internals/get-iterator-method.js\");\nvar createIterResultObject = __webpack_require__(/*! ../internals/create-iter-result-object */ \"../../node_modules/core-js-pure/internals/create-iter-result-object.js\");\nvar validateArgumentsLength = __webpack_require__(/*! ../internals/validate-arguments-length */ \"../../node_modules/core-js-pure/internals/validate-arguments-length.js\");\nvar wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ \"../../node_modules/core-js-pure/internals/well-known-symbol.js\");\nvar arraySort = __webpack_require__(/*! ../internals/array-sort */ \"../../node_modules/core-js-pure/internals/array-sort.js\");\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar URL_SEARCH_PARAMS = 'URLSearchParams';\nvar URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);\nvar getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);\n\nvar nativeFetch = safeGetBuiltIn('fetch');\nvar NativeRequest = safeGetBuiltIn('Request');\nvar Headers = safeGetBuiltIn('Headers');\nvar RequestPrototype = NativeRequest && NativeRequest.prototype;\nvar HeadersPrototype = Headers && Headers.prototype;\nvar RegExp = global.RegExp;\nvar TypeError = global.TypeError;\nvar decodeURIComponent = global.decodeURIComponent;\nvar encodeURIComponent = global.encodeURIComponent;\nvar charAt = uncurryThis(''.charAt);\nvar join = uncurryThis([].join);\nvar push = uncurryThis([].push);\nvar replace = uncurryThis(''.replace);\nvar shift = uncurryThis([].shift);\nvar splice = uncurryThis([].splice);\nvar split = uncurryThis(''.split);\nvar stringSlice = uncurryThis(''.slice);\n\nvar plus = /\\+/g;\nvar sequences = Array(4);\n\nvar percentSequence = function (bytes) {\n  return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\\\da-f]{2}){' + bytes + '})', 'gi'));\n};\n\nvar percentDecode = function (sequence) {\n  try {\n    return decodeURIComponent(sequence);\n  } catch (error) {\n    return sequence;\n  }\n};\n\nvar deserialize = function (it) {\n  var result = replace(it, plus, ' ');\n  var bytes = 4;\n  try {\n    return decodeURIComponent(result);\n  } catch (error) {\n    while (bytes) {\n      result = replace(result, percentSequence(bytes--), percentDecode);\n    }\n    return result;\n  }\n};\n\nvar find = /[!'()~]|%20/g;\n\nvar replacements = {\n  '!': '%21',\n  \"'\": '%27',\n  '(': '%28',\n  ')': '%29',\n  '~': '%7E',\n  '%20': '+'\n};\n\nvar replacer = function (match) {\n  return replacements[match];\n};\n\nvar serialize = function (it) {\n  return replace(encodeURIComponent(it), find, replacer);\n};\n\nvar URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {\n  setInternalState(this, {\n    type: URL_SEARCH_PARAMS_ITERATOR,\n    target: getInternalParamsState(params).entries,\n    index: 0,\n    kind: kind\n  });\n}, URL_SEARCH_PARAMS, function next() {\n  var state = getInternalIteratorState(this);\n  var target = state.target;\n  var index = state.index++;\n  if (!target || index >= target.length) {\n    state.target = undefined;\n    return createIterResultObject(undefined, true);\n  }\n  var entry = target[index];\n  switch (state.kind) {\n    case 'keys': return createIterResultObject(entry.key, false);\n    case 'values': return createIterResultObject(entry.value, false);\n  } return createIterResultObject([entry.key, entry.value], false);\n}, true);\n\nvar URLSearchParamsState = function (init) {\n  this.entries = [];\n  this.url = null;\n\n  if (init !== undefined) {\n    if (isObject(init)) this.parseObject(init);\n    else this.parseQuery(typeof init == 'string' ? charAt(init, 0) === '?' ? stringSlice(init, 1) : init : $toString(init));\n  }\n};\n\nURLSearchParamsState.prototype = {\n  type: URL_SEARCH_PARAMS,\n  bindURL: function (url) {\n    this.url = url;\n    this.update();\n  },\n  parseObject: function (object) {\n    var entries = this.entries;\n    var iteratorMethod = getIteratorMethod(object);\n    var iterator, next, step, entryIterator, entryNext, first, second;\n\n    if (iteratorMethod) {\n      iterator = getIterator(object, iteratorMethod);\n      next = iterator.next;\n      while (!(step = call(next, iterator)).done) {\n        entryIterator = getIterator(anObject(step.value));\n        entryNext = entryIterator.next;\n        if (\n          (first = call(entryNext, entryIterator)).done ||\n          (second = call(entryNext, entryIterator)).done ||\n          !call(entryNext, entryIterator).done\n        ) throw new TypeError('Expected sequence with length 2');\n        push(entries, { key: $toString(first.value), value: $toString(second.value) });\n      }\n    } else for (var key in object) if (hasOwn(object, key)) {\n      push(entries, { key: key, value: $toString(object[key]) });\n    }\n  },\n  parseQuery: function (query) {\n    if (query) {\n      var entries = this.entries;\n      var attributes = split(query, '&');\n      var index = 0;\n      var attribute, entry;\n      while (index < attributes.length) {\n        attribute = attributes[index++];\n        if (attribute.length) {\n          entry = split(attribute, '=');\n          push(entries, {\n            key: deserialize(shift(entry)),\n            value: deserialize(join(entry, '='))\n          });\n        }\n      }\n    }\n  },\n  serialize: function () {\n    var entries = this.entries;\n    var result = [];\n    var index = 0;\n    var entry;\n    while (index < entries.length) {\n      entry = entries[index++];\n      push(result, serialize(entry.key) + '=' + serialize(entry.value));\n    } return join(result, '&');\n  },\n  update: function () {\n    this.entries.length = 0;\n    this.parseQuery(this.url.query);\n  },\n  updateURL: function () {\n    if (this.url) this.url.update();\n  }\n};\n\n// `URLSearchParams` constructor\n// https://url.spec.whatwg.org/#interface-urlsearchparams\nvar URLSearchParamsConstructor = function URLSearchParams(/* init */) {\n  anInstance(this, URLSearchParamsPrototype);\n  var init = arguments.length > 0 ? arguments[0] : undefined;\n  var state = setInternalState(this, new URLSearchParamsState(init));\n  if (!DESCRIPTORS) this.size = state.entries.length;\n};\n\nvar URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;\n\ndefineBuiltIns(URLSearchParamsPrototype, {\n  // `URLSearchParams.prototype.append` method\n  // https://url.spec.whatwg.org/#dom-urlsearchparams-append\n  append: function append(name, value) {\n    var state = getInternalParamsState(this);\n    validateArgumentsLength(arguments.length, 2);\n    push(state.entries, { key: $toString(name), value: $toString(value) });\n    if (!DESCRIPTORS) this.length++;\n    state.updateURL();\n  },\n  // `URLSearchParams.prototype.delete` method\n  // https://url.spec.whatwg.org/#dom-urlsearchparams-delete\n  'delete': function (name /* , value */) {\n    var state = getInternalParamsState(this);\n    var length = validateArgumentsLength(arguments.length, 1);\n    var entries = state.entries;\n    var key = $toString(name);\n    var $value = length < 2 ? undefined : arguments[1];\n    var value = $value === undefined ? $value : $toString($value);\n    var index = 0;\n    while (index < entries.length) {\n      var entry = entries[index];\n      if (entry.key === key && (value === undefined || entry.value === value)) {\n        splice(entries, index, 1);\n        if (value !== undefined) break;\n      } else index++;\n    }\n    if (!DESCRIPTORS) this.size = entries.length;\n    state.updateURL();\n  },\n  // `URLSearchParams.prototype.get` method\n  // https://url.spec.whatwg.org/#dom-urlsearchparams-get\n  get: function get(name) {\n    var entries = getInternalParamsState(this).entries;\n    validateArgumentsLength(arguments.length, 1);\n    var key = $toString(name);\n    var index = 0;\n    for (; index < entries.length; index++) {\n      if (entries[index].key === key) return entries[index].value;\n    }\n    return null;\n  },\n  // `URLSearchParams.prototype.getAll` method\n  // https://url.spec.whatwg.org/#dom-urlsearchparams-getall\n  getAll: function getAll(name) {\n    var entries = getInternalParamsState(this).entries;\n    validateArgumentsLength(arguments.length, 1);\n    var key = $toString(name);\n    var result = [];\n    var index = 0;\n    for (; index < entries.length; index++) {\n      if (entries[index].key === key) push(result, entries[index].value);\n    }\n    return result;\n  },\n  // `URLSearchParams.prototype.has` method\n  // https://url.spec.whatwg.org/#dom-urlsearchparams-has\n  has: function has(name /* , value */) {\n    var entries = getInternalParamsState(this).entries;\n    var length = validateArgumentsLength(arguments.length, 1);\n    var key = $toString(name);\n    var $value = length < 2 ? undefined : arguments[1];\n    var value = $value === undefined ? $value : $toString($value);\n    var index = 0;\n    while (index < entries.length) {\n      var entry = entries[index++];\n      if (entry.key === key && (value === undefined || entry.value === value)) return true;\n    }\n    return false;\n  },\n  // `URLSearchParams.prototype.set` method\n  // https://url.spec.whatwg.org/#dom-urlsearchparams-set\n  set: function set(name, value) {\n    var state = getInternalParamsState(this);\n    validateArgumentsLength(arguments.length, 1);\n    var entries = state.entries;\n    var found = false;\n    var key = $toString(name);\n    var val = $toString(value);\n    var index = 0;\n    var entry;\n    for (; index < entries.length; index++) {\n      entry = entries[index];\n      if (entry.key === key) {\n        if (found) splice(entries, index--, 1);\n        else {\n          found = true;\n          entry.value = val;\n        }\n      }\n    }\n    if (!found) push(entries, { key: key, value: val });\n    if (!DESCRIPTORS) this.size = entries.length;\n    state.updateURL();\n  },\n  // `URLSearchParams.prototype.sort` method\n  // https://url.spec.whatwg.org/#dom-urlsearchparams-sort\n  sort: function sort() {\n    var state = getInternalParamsState(this);\n    arraySort(state.entries, function (a, b) {\n      return a.key > b.key ? 1 : -1;\n    });\n    state.updateURL();\n  },\n  // `URLSearchParams.prototype.forEach` method\n  forEach: function forEach(callback /* , thisArg */) {\n    var entries = getInternalParamsState(this).entries;\n    var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined);\n    var index = 0;\n    var entry;\n    while (index < entries.length) {\n      entry = entries[index++];\n      boundFunction(entry.value, entry.key, this);\n    }\n  },\n  // `URLSearchParams.prototype.keys` method\n  keys: function keys() {\n    return new URLSearchParamsIterator(this, 'keys');\n  },\n  // `URLSearchParams.prototype.values` method\n  values: function values() {\n    return new URLSearchParamsIterator(this, 'values');\n  },\n  // `URLSearchParams.prototype.entries` method\n  entries: function entries() {\n    return new URLSearchParamsIterator(this, 'entries');\n  }\n}, { enumerable: true });\n\n// `URLSearchParams.prototype[@@iterator]` method\ndefineBuiltIn(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });\n\n// `URLSearchParams.prototype.toString` method\n// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior\ndefineBuiltIn(URLSearchParamsPrototype, 'toString', function toString() {\n  return getInternalParamsState(this).serialize();\n}, { enumerable: true });\n\n// `URLSearchParams.prototype.size` getter\n// https://github.com/whatwg/url/pull/734\nif (DESCRIPTORS) defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {\n  get: function size() {\n    return getInternalParamsState(this).entries.length;\n  },\n  configurable: true,\n  enumerable: true\n});\n\nsetToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);\n\n$({ global: true, constructor: true, forced: !USE_NATIVE_URL }, {\n  URLSearchParams: URLSearchParamsConstructor\n});\n\n// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`\nif (!USE_NATIVE_URL && isCallable(Headers)) {\n  var headersHas = uncurryThis(HeadersPrototype.has);\n  var headersSet = uncurryThis(HeadersPrototype.set);\n\n  var wrapRequestOptions = function (init) {\n    if (isObject(init)) {\n      var body = init.body;\n      var headers;\n      if (classof(body) === URL_SEARCH_PARAMS) {\n        headers = init.headers ? new Headers(init.headers) : new Headers();\n        if (!headersHas(headers, 'content-type')) {\n          headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');\n        }\n        return create(init, {\n          body: createPropertyDescriptor(0, $toString(body)),\n          headers: createPropertyDescriptor(0, headers)\n        });\n      }\n    } return init;\n  };\n\n  if (isCallable(nativeFetch)) {\n    $({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {\n      fetch: function fetch(input /* , init */) {\n        return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});\n      }\n    });\n  }\n\n  if (isCallable(NativeRequest)) {\n    var RequestConstructor = function Request(input /* , init */) {\n      anInstance(this, RequestPrototype);\n      return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});\n    };\n\n    RequestPrototype.constructor = RequestConstructor;\n    RequestConstructor.prototype = RequestPrototype;\n\n    $({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {\n      Request: RequestConstructor\n    });\n  }\n}\n\nmodule.exports = {\n  URLSearchParams: URLSearchParamsConstructor,\n  getState: getInternalParamsState\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/web.url-search-params.constructor.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/web.url-search-params.delete.js":
/*!*******************************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/web.url-search-params.delete.js ***!
  \*******************************************************************************/
/***/ (function() {

eval("// empty\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/web.url-search-params.delete.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/web.url-search-params.has.js":
/*!****************************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/web.url-search-params.has.js ***!
  \****************************************************************************/
/***/ (function() {

eval("// empty\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/web.url-search-params.has.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/web.url-search-params.js":
/*!************************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/web.url-search-params.js ***!
  \************************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n// TODO: Remove this module from `core-js@4` since it's replaced to module below\n__webpack_require__(/*! ../modules/web.url-search-params.constructor */ \"../../node_modules/core-js-pure/modules/web.url-search-params.constructor.js\");\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/web.url-search-params.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/web.url-search-params.size.js":
/*!*****************************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/web.url-search-params.size.js ***!
  \*****************************************************************************/
/***/ (function() {

eval("// empty\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/web.url-search-params.size.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/web.url.can-parse.js":
/*!********************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/web.url.can-parse.js ***!
  \********************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ \"../../node_modules/core-js-pure/internals/get-built-in.js\");\nvar fails = __webpack_require__(/*! ../internals/fails */ \"../../node_modules/core-js-pure/internals/fails.js\");\nvar validateArgumentsLength = __webpack_require__(/*! ../internals/validate-arguments-length */ \"../../node_modules/core-js-pure/internals/validate-arguments-length.js\");\nvar toString = __webpack_require__(/*! ../internals/to-string */ \"../../node_modules/core-js-pure/internals/to-string.js\");\nvar USE_NATIVE_URL = __webpack_require__(/*! ../internals/url-constructor-detection */ \"../../node_modules/core-js-pure/internals/url-constructor-detection.js\");\n\nvar URL = getBuiltIn('URL');\n\n// https://github.com/nodejs/node/issues/47505\n// https://github.com/denoland/deno/issues/18893\nvar THROWS_WITHOUT_ARGUMENTS = USE_NATIVE_URL && fails(function () {\n  URL.canParse();\n});\n\n// `URL.canParse` method\n// https://url.spec.whatwg.org/#dom-url-canparse\n$({ target: 'URL', stat: true, forced: !THROWS_WITHOUT_ARGUMENTS }, {\n  canParse: function canParse(url) {\n    var length = validateArgumentsLength(arguments.length, 1);\n    var urlString = toString(url);\n    var base = length < 2 || arguments[1] === undefined ? undefined : toString(arguments[1]);\n    try {\n      return !!new URL(urlString, base);\n    } catch (error) {\n      return false;\n    }\n  }\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/web.url.can-parse.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/web.url.constructor.js":
/*!**********************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/web.url.constructor.js ***!
  \**********************************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`\n__webpack_require__(/*! ../modules/es.string.iterator */ \"../../node_modules/core-js-pure/modules/es.string.iterator.js\");\nvar $ = __webpack_require__(/*! ../internals/export */ \"../../node_modules/core-js-pure/internals/export.js\");\nvar DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"../../node_modules/core-js-pure/internals/descriptors.js\");\nvar USE_NATIVE_URL = __webpack_require__(/*! ../internals/url-constructor-detection */ \"../../node_modules/core-js-pure/internals/url-constructor-detection.js\");\nvar global = __webpack_require__(/*! ../internals/global */ \"../../node_modules/core-js-pure/internals/global.js\");\nvar bind = __webpack_require__(/*! ../internals/function-bind-context */ \"../../node_modules/core-js-pure/internals/function-bind-context.js\");\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"../../node_modules/core-js-pure/internals/function-uncurry-this.js\");\nvar defineBuiltIn = __webpack_require__(/*! ../internals/define-built-in */ \"../../node_modules/core-js-pure/internals/define-built-in.js\");\nvar defineBuiltInAccessor = __webpack_require__(/*! ../internals/define-built-in-accessor */ \"../../node_modules/core-js-pure/internals/define-built-in-accessor.js\");\nvar anInstance = __webpack_require__(/*! ../internals/an-instance */ \"../../node_modules/core-js-pure/internals/an-instance.js\");\nvar hasOwn = __webpack_require__(/*! ../internals/has-own-property */ \"../../node_modules/core-js-pure/internals/has-own-property.js\");\nvar assign = __webpack_require__(/*! ../internals/object-assign */ \"../../node_modules/core-js-pure/internals/object-assign.js\");\nvar arrayFrom = __webpack_require__(/*! ../internals/array-from */ \"../../node_modules/core-js-pure/internals/array-from.js\");\nvar arraySlice = __webpack_require__(/*! ../internals/array-slice */ \"../../node_modules/core-js-pure/internals/array-slice.js\");\nvar codeAt = (__webpack_require__(/*! ../internals/string-multibyte */ \"../../node_modules/core-js-pure/internals/string-multibyte.js\").codeAt);\nvar toASCII = __webpack_require__(/*! ../internals/string-punycode-to-ascii */ \"../../node_modules/core-js-pure/internals/string-punycode-to-ascii.js\");\nvar $toString = __webpack_require__(/*! ../internals/to-string */ \"../../node_modules/core-js-pure/internals/to-string.js\");\nvar setToStringTag = __webpack_require__(/*! ../internals/set-to-string-tag */ \"../../node_modules/core-js-pure/internals/set-to-string-tag.js\");\nvar validateArgumentsLength = __webpack_require__(/*! ../internals/validate-arguments-length */ \"../../node_modules/core-js-pure/internals/validate-arguments-length.js\");\nvar URLSearchParamsModule = __webpack_require__(/*! ../modules/web.url-search-params.constructor */ \"../../node_modules/core-js-pure/modules/web.url-search-params.constructor.js\");\nvar InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ \"../../node_modules/core-js-pure/internals/internal-state.js\");\n\nvar setInternalState = InternalStateModule.set;\nvar getInternalURLState = InternalStateModule.getterFor('URL');\nvar URLSearchParams = URLSearchParamsModule.URLSearchParams;\nvar getInternalSearchParamsState = URLSearchParamsModule.getState;\n\nvar NativeURL = global.URL;\nvar TypeError = global.TypeError;\nvar parseInt = global.parseInt;\nvar floor = Math.floor;\nvar pow = Math.pow;\nvar charAt = uncurryThis(''.charAt);\nvar exec = uncurryThis(/./.exec);\nvar join = uncurryThis([].join);\nvar numberToString = uncurryThis(1.0.toString);\nvar pop = uncurryThis([].pop);\nvar push = uncurryThis([].push);\nvar replace = uncurryThis(''.replace);\nvar shift = uncurryThis([].shift);\nvar split = uncurryThis(''.split);\nvar stringSlice = uncurryThis(''.slice);\nvar toLowerCase = uncurryThis(''.toLowerCase);\nvar unshift = uncurryThis([].unshift);\n\nvar INVALID_AUTHORITY = 'Invalid authority';\nvar INVALID_SCHEME = 'Invalid scheme';\nvar INVALID_HOST = 'Invalid host';\nvar INVALID_PORT = 'Invalid port';\n\nvar ALPHA = /[a-z]/i;\n// eslint-disable-next-line regexp/no-obscure-range -- safe\nvar ALPHANUMERIC = /[\\d+-.a-z]/i;\nvar DIGIT = /\\d/;\nvar HEX_START = /^0x/i;\nvar OCT = /^[0-7]+$/;\nvar DEC = /^\\d+$/;\nvar HEX = /^[\\da-f]+$/i;\n/* eslint-disable regexp/no-control-character -- safe */\nvar FORBIDDEN_HOST_CODE_POINT = /[\\0\\t\\n\\r #%/:<>?@[\\\\\\]^|]/;\nvar FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\\0\\t\\n\\r #/:<>?@[\\\\\\]^|]/;\nvar LEADING_C0_CONTROL_OR_SPACE = /^[\\u0000-\\u0020]+/;\nvar TRAILING_C0_CONTROL_OR_SPACE = /(^|[^\\u0000-\\u0020])[\\u0000-\\u0020]+$/;\nvar TAB_AND_NEW_LINE = /[\\t\\n\\r]/g;\n/* eslint-enable regexp/no-control-character -- safe */\nvar EOF;\n\n// https://url.spec.whatwg.org/#ipv4-number-parser\nvar parseIPv4 = function (input) {\n  var parts = split(input, '.');\n  var partsLength, numbers, index, part, radix, number, ipv4;\n  if (parts.length && parts[parts.length - 1] === '') {\n    parts.length--;\n  }\n  partsLength = parts.length;\n  if (partsLength > 4) return input;\n  numbers = [];\n  for (index = 0; index < partsLength; index++) {\n    part = parts[index];\n    if (part === '') return input;\n    radix = 10;\n    if (part.length > 1 && charAt(part, 0) === '0') {\n      radix = exec(HEX_START, part) ? 16 : 8;\n      part = stringSlice(part, radix === 8 ? 1 : 2);\n    }\n    if (part === '') {\n      number = 0;\n    } else {\n      if (!exec(radix === 10 ? DEC : radix === 8 ? OCT : HEX, part)) return input;\n      number = parseInt(part, radix);\n    }\n    push(numbers, number);\n  }\n  for (index = 0; index < partsLength; index++) {\n    number = numbers[index];\n    if (index === partsLength - 1) {\n      if (number >= pow(256, 5 - partsLength)) return null;\n    } else if (number > 255) return null;\n  }\n  ipv4 = pop(numbers);\n  for (index = 0; index < numbers.length; index++) {\n    ipv4 += numbers[index] * pow(256, 3 - index);\n  }\n  return ipv4;\n};\n\n// https://url.spec.whatwg.org/#concept-ipv6-parser\n// eslint-disable-next-line max-statements -- TODO\nvar parseIPv6 = function (input) {\n  var address = [0, 0, 0, 0, 0, 0, 0, 0];\n  var pieceIndex = 0;\n  var compress = null;\n  var pointer = 0;\n  var value, length, numbersSeen, ipv4Piece, number, swaps, swap;\n\n  var chr = function () {\n    return charAt(input, pointer);\n  };\n\n  if (chr() === ':') {\n    if (charAt(input, 1) !== ':') return;\n    pointer += 2;\n    pieceIndex++;\n    compress = pieceIndex;\n  }\n  while (chr()) {\n    if (pieceIndex === 8) return;\n    if (chr() === ':') {\n      if (compress !== null) return;\n      pointer++;\n      pieceIndex++;\n      compress = pieceIndex;\n      continue;\n    }\n    value = length = 0;\n    while (length < 4 && exec(HEX, chr())) {\n      value = value * 16 + parseInt(chr(), 16);\n      pointer++;\n      length++;\n    }\n    if (chr() === '.') {\n      if (length === 0) return;\n      pointer -= length;\n      if (pieceIndex > 6) return;\n      numbersSeen = 0;\n      while (chr()) {\n        ipv4Piece = null;\n        if (numbersSeen > 0) {\n          if (chr() === '.' && numbersSeen < 4) pointer++;\n          else return;\n        }\n        if (!exec(DIGIT, chr())) return;\n        while (exec(DIGIT, chr())) {\n          number = parseInt(chr(), 10);\n          if (ipv4Piece === null) ipv4Piece = number;\n          else if (ipv4Piece === 0) return;\n          else ipv4Piece = ipv4Piece * 10 + number;\n          if (ipv4Piece > 255) return;\n          pointer++;\n        }\n        address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;\n        numbersSeen++;\n        if (numbersSeen === 2 || numbersSeen === 4) pieceIndex++;\n      }\n      if (numbersSeen !== 4) return;\n      break;\n    } else if (chr() === ':') {\n      pointer++;\n      if (!chr()) return;\n    } else if (chr()) return;\n    address[pieceIndex++] = value;\n  }\n  if (compress !== null) {\n    swaps = pieceIndex - compress;\n    pieceIndex = 7;\n    while (pieceIndex !== 0 && swaps > 0) {\n      swap = address[pieceIndex];\n      address[pieceIndex--] = address[compress + swaps - 1];\n      address[compress + --swaps] = swap;\n    }\n  } else if (pieceIndex !== 8) return;\n  return address;\n};\n\nvar findLongestZeroSequence = function (ipv6) {\n  var maxIndex = null;\n  var maxLength = 1;\n  var currStart = null;\n  var currLength = 0;\n  var index = 0;\n  for (; index < 8; index++) {\n    if (ipv6[index] !== 0) {\n      if (currLength > maxLength) {\n        maxIndex = currStart;\n        maxLength = currLength;\n      }\n      currStart = null;\n      currLength = 0;\n    } else {\n      if (currStart === null) currStart = index;\n      ++currLength;\n    }\n  }\n  if (currLength > maxLength) {\n    maxIndex = currStart;\n    maxLength = currLength;\n  }\n  return maxIndex;\n};\n\n// https://url.spec.whatwg.org/#host-serializing\nvar serializeHost = function (host) {\n  var result, index, compress, ignore0;\n  // ipv4\n  if (typeof host == 'number') {\n    result = [];\n    for (index = 0; index < 4; index++) {\n      unshift(result, host % 256);\n      host = floor(host / 256);\n    } return join(result, '.');\n  // ipv6\n  } else if (typeof host == 'object') {\n    result = '';\n    compress = findLongestZeroSequence(host);\n    for (index = 0; index < 8; index++) {\n      if (ignore0 && host[index] === 0) continue;\n      if (ignore0) ignore0 = false;\n      if (compress === index) {\n        result += index ? ':' : '::';\n        ignore0 = true;\n      } else {\n        result += numberToString(host[index], 16);\n        if (index < 7) result += ':';\n      }\n    }\n    return '[' + result + ']';\n  } return host;\n};\n\nvar C0ControlPercentEncodeSet = {};\nvar fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {\n  ' ': 1, '\"': 1, '<': 1, '>': 1, '`': 1\n});\nvar pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {\n  '#': 1, '?': 1, '{': 1, '}': 1\n});\nvar userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {\n  '/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\\\': 1, ']': 1, '^': 1, '|': 1\n});\n\nvar percentEncode = function (chr, set) {\n  var code = codeAt(chr, 0);\n  return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);\n};\n\n// https://url.spec.whatwg.org/#special-scheme\nvar specialSchemes = {\n  ftp: 21,\n  file: null,\n  http: 80,\n  https: 443,\n  ws: 80,\n  wss: 443\n};\n\n// https://url.spec.whatwg.org/#windows-drive-letter\nvar isWindowsDriveLetter = function (string, normalized) {\n  var second;\n  return string.length === 2 && exec(ALPHA, charAt(string, 0))\n    && ((second = charAt(string, 1)) === ':' || (!normalized && second === '|'));\n};\n\n// https://url.spec.whatwg.org/#start-with-a-windows-drive-letter\nvar startsWithWindowsDriveLetter = function (string) {\n  var third;\n  return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && (\n    string.length === 2 ||\n    ((third = charAt(string, 2)) === '/' || third === '\\\\' || third === '?' || third === '#')\n  );\n};\n\n// https://url.spec.whatwg.org/#single-dot-path-segment\nvar isSingleDot = function (segment) {\n  return segment === '.' || toLowerCase(segment) === '%2e';\n};\n\n// https://url.spec.whatwg.org/#double-dot-path-segment\nvar isDoubleDot = function (segment) {\n  segment = toLowerCase(segment);\n  return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';\n};\n\n// States:\nvar SCHEME_START = {};\nvar SCHEME = {};\nvar NO_SCHEME = {};\nvar SPECIAL_RELATIVE_OR_AUTHORITY = {};\nvar PATH_OR_AUTHORITY = {};\nvar RELATIVE = {};\nvar RELATIVE_SLASH = {};\nvar SPECIAL_AUTHORITY_SLASHES = {};\nvar SPECIAL_AUTHORITY_IGNORE_SLASHES = {};\nvar AUTHORITY = {};\nvar HOST = {};\nvar HOSTNAME = {};\nvar PORT = {};\nvar FILE = {};\nvar FILE_SLASH = {};\nvar FILE_HOST = {};\nvar PATH_START = {};\nvar PATH = {};\nvar CANNOT_BE_A_BASE_URL_PATH = {};\nvar QUERY = {};\nvar FRAGMENT = {};\n\nvar URLState = function (url, isBase, base) {\n  var urlString = $toString(url);\n  var baseState, failure, searchParams;\n  if (isBase) {\n    failure = this.parse(urlString);\n    if (failure) throw new TypeError(failure);\n    this.searchParams = null;\n  } else {\n    if (base !== undefined) baseState = new URLState(base, true);\n    failure = this.parse(urlString, null, baseState);\n    if (failure) throw new TypeError(failure);\n    searchParams = getInternalSearchParamsState(new URLSearchParams());\n    searchParams.bindURL(this);\n    this.searchParams = searchParams;\n  }\n};\n\nURLState.prototype = {\n  type: 'URL',\n  // https://url.spec.whatwg.org/#url-parsing\n  // eslint-disable-next-line max-statements -- TODO\n  parse: function (input, stateOverride, base) {\n    var url = this;\n    var state = stateOverride || SCHEME_START;\n    var pointer = 0;\n    var buffer = '';\n    var seenAt = false;\n    var seenBracket = false;\n    var seenPasswordToken = false;\n    var codePoints, chr, bufferCodePoints, failure;\n\n    input = $toString(input);\n\n    if (!stateOverride) {\n      url.scheme = '';\n      url.username = '';\n      url.password = '';\n      url.host = null;\n      url.port = null;\n      url.path = [];\n      url.query = null;\n      url.fragment = null;\n      url.cannotBeABaseURL = false;\n      input = replace(input, LEADING_C0_CONTROL_OR_SPACE, '');\n      input = replace(input, TRAILING_C0_CONTROL_OR_SPACE, '$1');\n    }\n\n    input = replace(input, TAB_AND_NEW_LINE, '');\n\n    codePoints = arrayFrom(input);\n\n    while (pointer <= codePoints.length) {\n      chr = codePoints[pointer];\n      switch (state) {\n        case SCHEME_START:\n          if (chr && exec(ALPHA, chr)) {\n            buffer += toLowerCase(chr);\n            state = SCHEME;\n          } else if (!stateOverride) {\n            state = NO_SCHEME;\n            continue;\n          } else return INVALID_SCHEME;\n          break;\n\n        case SCHEME:\n          if (chr && (exec(ALPHANUMERIC, chr) || chr === '+' || chr === '-' || chr === '.')) {\n            buffer += toLowerCase(chr);\n          } else if (chr === ':') {\n            if (stateOverride && (\n              (url.isSpecial() !== hasOwn(specialSchemes, buffer)) ||\n              (buffer === 'file' && (url.includesCredentials() || url.port !== null)) ||\n              (url.scheme === 'file' && !url.host)\n            )) return;\n            url.scheme = buffer;\n            if (stateOverride) {\n              if (url.isSpecial() && specialSchemes[url.scheme] === url.port) url.port = null;\n              return;\n            }\n            buffer = '';\n            if (url.scheme === 'file') {\n              state = FILE;\n            } else if (url.isSpecial() && base && base.scheme === url.scheme) {\n              state = SPECIAL_RELATIVE_OR_AUTHORITY;\n            } else if (url.isSpecial()) {\n              state = SPECIAL_AUTHORITY_SLASHES;\n            } else if (codePoints[pointer + 1] === '/') {\n              state = PATH_OR_AUTHORITY;\n              pointer++;\n            } else {\n              url.cannotBeABaseURL = true;\n              push(url.path, '');\n              state = CANNOT_BE_A_BASE_URL_PATH;\n            }\n          } else if (!stateOverride) {\n            buffer = '';\n            state = NO_SCHEME;\n            pointer = 0;\n            continue;\n          } else return INVALID_SCHEME;\n          break;\n\n        case NO_SCHEME:\n          if (!base || (base.cannotBeABaseURL && chr !== '#')) return INVALID_SCHEME;\n          if (base.cannotBeABaseURL && chr === '#') {\n            url.scheme = base.scheme;\n            url.path = arraySlice(base.path);\n            url.query = base.query;\n            url.fragment = '';\n            url.cannotBeABaseURL = true;\n            state = FRAGMENT;\n            break;\n          }\n          state = base.scheme === 'file' ? FILE : RELATIVE;\n          continue;\n\n        case SPECIAL_RELATIVE_OR_AUTHORITY:\n          if (chr === '/' && codePoints[pointer + 1] === '/') {\n            state = SPECIAL_AUTHORITY_IGNORE_SLASHES;\n            pointer++;\n          } else {\n            state = RELATIVE;\n            continue;\n          } break;\n\n        case PATH_OR_AUTHORITY:\n          if (chr === '/') {\n            state = AUTHORITY;\n            break;\n          } else {\n            state = PATH;\n            continue;\n          }\n\n        case RELATIVE:\n          url.scheme = base.scheme;\n          if (chr === EOF) {\n            url.username = base.username;\n            url.password = base.password;\n            url.host = base.host;\n            url.port = base.port;\n            url.path = arraySlice(base.path);\n            url.query = base.query;\n          } else if (chr === '/' || (chr === '\\\\' && url.isSpecial())) {\n            state = RELATIVE_SLASH;\n          } else if (chr === '?') {\n            url.username = base.username;\n            url.password = base.password;\n            url.host = base.host;\n            url.port = base.port;\n            url.path = arraySlice(base.path);\n            url.query = '';\n            state = QUERY;\n          } else if (chr === '#') {\n            url.username = base.username;\n            url.password = base.password;\n            url.host = base.host;\n            url.port = base.port;\n            url.path = arraySlice(base.path);\n            url.query = base.query;\n            url.fragment = '';\n            state = FRAGMENT;\n          } else {\n            url.username = base.username;\n            url.password = base.password;\n            url.host = base.host;\n            url.port = base.port;\n            url.path = arraySlice(base.path);\n            url.path.length--;\n            state = PATH;\n            continue;\n          } break;\n\n        case RELATIVE_SLASH:\n          if (url.isSpecial() && (chr === '/' || chr === '\\\\')) {\n            state = SPECIAL_AUTHORITY_IGNORE_SLASHES;\n          } else if (chr === '/') {\n            state = AUTHORITY;\n          } else {\n            url.username = base.username;\n            url.password = base.password;\n            url.host = base.host;\n            url.port = base.port;\n            state = PATH;\n            continue;\n          } break;\n\n        case SPECIAL_AUTHORITY_SLASHES:\n          state = SPECIAL_AUTHORITY_IGNORE_SLASHES;\n          if (chr !== '/' || charAt(buffer, pointer + 1) !== '/') continue;\n          pointer++;\n          break;\n\n        case SPECIAL_AUTHORITY_IGNORE_SLASHES:\n          if (chr !== '/' && chr !== '\\\\') {\n            state = AUTHORITY;\n            continue;\n          } break;\n\n        case AUTHORITY:\n          if (chr === '@') {\n            if (seenAt) buffer = '%40' + buffer;\n            seenAt = true;\n            bufferCodePoints = arrayFrom(buffer);\n            for (var i = 0; i < bufferCodePoints.length; i++) {\n              var codePoint = bufferCodePoints[i];\n              if (codePoint === ':' && !seenPasswordToken) {\n                seenPasswordToken = true;\n                continue;\n              }\n              var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);\n              if (seenPasswordToken) url.password += encodedCodePoints;\n              else url.username += encodedCodePoints;\n            }\n            buffer = '';\n          } else if (\n            chr === EOF || chr === '/' || chr === '?' || chr === '#' ||\n            (chr === '\\\\' && url.isSpecial())\n          ) {\n            if (seenAt && buffer === '') return INVALID_AUTHORITY;\n            pointer -= arrayFrom(buffer).length + 1;\n            buffer = '';\n            state = HOST;\n          } else buffer += chr;\n          break;\n\n        case HOST:\n        case HOSTNAME:\n          if (stateOverride && url.scheme === 'file') {\n            state = FILE_HOST;\n            continue;\n          } else if (chr === ':' && !seenBracket) {\n            if (buffer === '') return INVALID_HOST;\n            failure = url.parseHost(buffer);\n            if (failure) return failure;\n            buffer = '';\n            state = PORT;\n            if (stateOverride === HOSTNAME) return;\n          } else if (\n            chr === EOF || chr === '/' || chr === '?' || chr === '#' ||\n            (chr === '\\\\' && url.isSpecial())\n          ) {\n            if (url.isSpecial() && buffer === '') return INVALID_HOST;\n            if (stateOverride && buffer === '' && (url.includesCredentials() || url.port !== null)) return;\n            failure = url.parseHost(buffer);\n            if (failure) return failure;\n            buffer = '';\n            state = PATH_START;\n            if (stateOverride) return;\n            continue;\n          } else {\n            if (chr === '[') seenBracket = true;\n            else if (chr === ']') seenBracket = false;\n            buffer += chr;\n          } break;\n\n        case PORT:\n          if (exec(DIGIT, chr)) {\n            buffer += chr;\n          } else if (\n            chr === EOF || chr === '/' || chr === '?' || chr === '#' ||\n            (chr === '\\\\' && url.isSpecial()) ||\n            stateOverride\n          ) {\n            if (buffer !== '') {\n              var port = parseInt(buffer, 10);\n              if (port > 0xFFFF) return INVALID_PORT;\n              url.port = (url.isSpecial() && port === specialSchemes[url.scheme]) ? null : port;\n              buffer = '';\n            }\n            if (stateOverride) return;\n            state = PATH_START;\n            continue;\n          } else return INVALID_PORT;\n          break;\n\n        case FILE:\n          url.scheme = 'file';\n          if (chr === '/' || chr === '\\\\') state = FILE_SLASH;\n          else if (base && base.scheme === 'file') {\n            switch (chr) {\n              case EOF:\n                url.host = base.host;\n                url.path = arraySlice(base.path);\n                url.query = base.query;\n                break;\n              case '?':\n                url.host = base.host;\n                url.path = arraySlice(base.path);\n                url.query = '';\n                state = QUERY;\n                break;\n              case '#':\n                url.host = base.host;\n                url.path = arraySlice(base.path);\n                url.query = base.query;\n                url.fragment = '';\n                state = FRAGMENT;\n                break;\n              default:\n                if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {\n                  url.host = base.host;\n                  url.path = arraySlice(base.path);\n                  url.shortenPath();\n                }\n                state = PATH;\n                continue;\n            }\n          } else {\n            state = PATH;\n            continue;\n          } break;\n\n        case FILE_SLASH:\n          if (chr === '/' || chr === '\\\\') {\n            state = FILE_HOST;\n            break;\n          }\n          if (base && base.scheme === 'file' && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {\n            if (isWindowsDriveLetter(base.path[0], true)) push(url.path, base.path[0]);\n            else url.host = base.host;\n          }\n          state = PATH;\n          continue;\n\n        case FILE_HOST:\n          if (chr === EOF || chr === '/' || chr === '\\\\' || chr === '?' || chr === '#') {\n            if (!stateOverride && isWindowsDriveLetter(buffer)) {\n              state = PATH;\n            } else if (buffer === '') {\n              url.host = '';\n              if (stateOverride) return;\n              state = PATH_START;\n            } else {\n              failure = url.parseHost(buffer);\n              if (failure) return failure;\n              if (url.host === 'localhost') url.host = '';\n              if (stateOverride) return;\n              buffer = '';\n              state = PATH_START;\n            } continue;\n          } else buffer += chr;\n          break;\n\n        case PATH_START:\n          if (url.isSpecial()) {\n            state = PATH;\n            if (chr !== '/' && chr !== '\\\\') continue;\n          } else if (!stateOverride && chr === '?') {\n            url.query = '';\n            state = QUERY;\n          } else if (!stateOverride && chr === '#') {\n            url.fragment = '';\n            state = FRAGMENT;\n          } else if (chr !== EOF) {\n            state = PATH;\n            if (chr !== '/') continue;\n          } break;\n\n        case PATH:\n          if (\n            chr === EOF || chr === '/' ||\n            (chr === '\\\\' && url.isSpecial()) ||\n            (!stateOverride && (chr === '?' || chr === '#'))\n          ) {\n            if (isDoubleDot(buffer)) {\n              url.shortenPath();\n              if (chr !== '/' && !(chr === '\\\\' && url.isSpecial())) {\n                push(url.path, '');\n              }\n            } else if (isSingleDot(buffer)) {\n              if (chr !== '/' && !(chr === '\\\\' && url.isSpecial())) {\n                push(url.path, '');\n              }\n            } else {\n              if (url.scheme === 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {\n                if (url.host) url.host = '';\n                buffer = charAt(buffer, 0) + ':'; // normalize windows drive letter\n              }\n              push(url.path, buffer);\n            }\n            buffer = '';\n            if (url.scheme === 'file' && (chr === EOF || chr === '?' || chr === '#')) {\n              while (url.path.length > 1 && url.path[0] === '') {\n                shift(url.path);\n              }\n            }\n            if (chr === '?') {\n              url.query = '';\n              state = QUERY;\n            } else if (chr === '#') {\n              url.fragment = '';\n              state = FRAGMENT;\n            }\n          } else {\n            buffer += percentEncode(chr, pathPercentEncodeSet);\n          } break;\n\n        case CANNOT_BE_A_BASE_URL_PATH:\n          if (chr === '?') {\n            url.query = '';\n            state = QUERY;\n          } else if (chr === '#') {\n            url.fragment = '';\n            state = FRAGMENT;\n          } else if (chr !== EOF) {\n            url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);\n          } break;\n\n        case QUERY:\n          if (!stateOverride && chr === '#') {\n            url.fragment = '';\n            state = FRAGMENT;\n          } else if (chr !== EOF) {\n            if (chr === \"'\" && url.isSpecial()) url.query += '%27';\n            else if (chr === '#') url.query += '%23';\n            else url.query += percentEncode(chr, C0ControlPercentEncodeSet);\n          } break;\n\n        case FRAGMENT:\n          if (chr !== EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet);\n          break;\n      }\n\n      pointer++;\n    }\n  },\n  // https://url.spec.whatwg.org/#host-parsing\n  parseHost: function (input) {\n    var result, codePoints, index;\n    if (charAt(input, 0) === '[') {\n      if (charAt(input, input.length - 1) !== ']') return INVALID_HOST;\n      result = parseIPv6(stringSlice(input, 1, -1));\n      if (!result) return INVALID_HOST;\n      this.host = result;\n    // opaque host\n    } else if (!this.isSpecial()) {\n      if (exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT, input)) return INVALID_HOST;\n      result = '';\n      codePoints = arrayFrom(input);\n      for (index = 0; index < codePoints.length; index++) {\n        result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);\n      }\n      this.host = result;\n    } else {\n      input = toASCII(input);\n      if (exec(FORBIDDEN_HOST_CODE_POINT, input)) return INVALID_HOST;\n      result = parseIPv4(input);\n      if (result === null) return INVALID_HOST;\n      this.host = result;\n    }\n  },\n  // https://url.spec.whatwg.org/#cannot-have-a-username-password-port\n  cannotHaveUsernamePasswordPort: function () {\n    return !this.host || this.cannotBeABaseURL || this.scheme === 'file';\n  },\n  // https://url.spec.whatwg.org/#include-credentials\n  includesCredentials: function () {\n    return this.username !== '' || this.password !== '';\n  },\n  // https://url.spec.whatwg.org/#is-special\n  isSpecial: function () {\n    return hasOwn(specialSchemes, this.scheme);\n  },\n  // https://url.spec.whatwg.org/#shorten-a-urls-path\n  shortenPath: function () {\n    var path = this.path;\n    var pathSize = path.length;\n    if (pathSize && (this.scheme !== 'file' || pathSize !== 1 || !isWindowsDriveLetter(path[0], true))) {\n      path.length--;\n    }\n  },\n  // https://url.spec.whatwg.org/#concept-url-serializer\n  serialize: function () {\n    var url = this;\n    var scheme = url.scheme;\n    var username = url.username;\n    var password = url.password;\n    var host = url.host;\n    var port = url.port;\n    var path = url.path;\n    var query = url.query;\n    var fragment = url.fragment;\n    var output = scheme + ':';\n    if (host !== null) {\n      output += '//';\n      if (url.includesCredentials()) {\n        output += username + (password ? ':' + password : '') + '@';\n      }\n      output += serializeHost(host);\n      if (port !== null) output += ':' + port;\n    } else if (scheme === 'file') output += '//';\n    output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';\n    if (query !== null) output += '?' + query;\n    if (fragment !== null) output += '#' + fragment;\n    return output;\n  },\n  // https://url.spec.whatwg.org/#dom-url-href\n  setHref: function (href) {\n    var failure = this.parse(href);\n    if (failure) throw new TypeError(failure);\n    this.searchParams.update();\n  },\n  // https://url.spec.whatwg.org/#dom-url-origin\n  getOrigin: function () {\n    var scheme = this.scheme;\n    var port = this.port;\n    if (scheme === 'blob') try {\n      return new URLConstructor(scheme.path[0]).origin;\n    } catch (error) {\n      return 'null';\n    }\n    if (scheme === 'file' || !this.isSpecial()) return 'null';\n    return scheme + '://' + serializeHost(this.host) + (port !== null ? ':' + port : '');\n  },\n  // https://url.spec.whatwg.org/#dom-url-protocol\n  getProtocol: function () {\n    return this.scheme + ':';\n  },\n  setProtocol: function (protocol) {\n    this.parse($toString(protocol) + ':', SCHEME_START);\n  },\n  // https://url.spec.whatwg.org/#dom-url-username\n  getUsername: function () {\n    return this.username;\n  },\n  setUsername: function (username) {\n    var codePoints = arrayFrom($toString(username));\n    if (this.cannotHaveUsernamePasswordPort()) return;\n    this.username = '';\n    for (var i = 0; i < codePoints.length; i++) {\n      this.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);\n    }\n  },\n  // https://url.spec.whatwg.org/#dom-url-password\n  getPassword: function () {\n    return this.password;\n  },\n  setPassword: function (password) {\n    var codePoints = arrayFrom($toString(password));\n    if (this.cannotHaveUsernamePasswordPort()) return;\n    this.password = '';\n    for (var i = 0; i < codePoints.length; i++) {\n      this.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);\n    }\n  },\n  // https://url.spec.whatwg.org/#dom-url-host\n  getHost: function () {\n    var host = this.host;\n    var port = this.port;\n    return host === null ? ''\n      : port === null ? serializeHost(host)\n      : serializeHost(host) + ':' + port;\n  },\n  setHost: function (host) {\n    if (this.cannotBeABaseURL) return;\n    this.parse(host, HOST);\n  },\n  // https://url.spec.whatwg.org/#dom-url-hostname\n  getHostname: function () {\n    var host = this.host;\n    return host === null ? '' : serializeHost(host);\n  },\n  setHostname: function (hostname) {\n    if (this.cannotBeABaseURL) return;\n    this.parse(hostname, HOSTNAME);\n  },\n  // https://url.spec.whatwg.org/#dom-url-port\n  getPort: function () {\n    var port = this.port;\n    return port === null ? '' : $toString(port);\n  },\n  setPort: function (port) {\n    if (this.cannotHaveUsernamePasswordPort()) return;\n    port = $toString(port);\n    if (port === '') this.port = null;\n    else this.parse(port, PORT);\n  },\n  // https://url.spec.whatwg.org/#dom-url-pathname\n  getPathname: function () {\n    var path = this.path;\n    return this.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';\n  },\n  setPathname: function (pathname) {\n    if (this.cannotBeABaseURL) return;\n    this.path = [];\n    this.parse(pathname, PATH_START);\n  },\n  // https://url.spec.whatwg.org/#dom-url-search\n  getSearch: function () {\n    var query = this.query;\n    return query ? '?' + query : '';\n  },\n  setSearch: function (search) {\n    search = $toString(search);\n    if (search === '') {\n      this.query = null;\n    } else {\n      if (charAt(search, 0) === '?') search = stringSlice(search, 1);\n      this.query = '';\n      this.parse(search, QUERY);\n    }\n    this.searchParams.update();\n  },\n  // https://url.spec.whatwg.org/#dom-url-searchparams\n  getSearchParams: function () {\n    return this.searchParams.facade;\n  },\n  // https://url.spec.whatwg.org/#dom-url-hash\n  getHash: function () {\n    var fragment = this.fragment;\n    return fragment ? '#' + fragment : '';\n  },\n  setHash: function (hash) {\n    hash = $toString(hash);\n    if (hash === '') {\n      this.fragment = null;\n      return;\n    }\n    if (charAt(hash, 0) === '#') hash = stringSlice(hash, 1);\n    this.fragment = '';\n    this.parse(hash, FRAGMENT);\n  },\n  update: function () {\n    this.query = this.searchParams.serialize() || null;\n  }\n};\n\n// `URL` constructor\n// https://url.spec.whatwg.org/#url-class\nvar URLConstructor = function URL(url /* , base */) {\n  var that = anInstance(this, URLPrototype);\n  var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined;\n  var state = setInternalState(that, new URLState(url, false, base));\n  if (!DESCRIPTORS) {\n    that.href = state.serialize();\n    that.origin = state.getOrigin();\n    that.protocol = state.getProtocol();\n    that.username = state.getUsername();\n    that.password = state.getPassword();\n    that.host = state.getHost();\n    that.hostname = state.getHostname();\n    that.port = state.getPort();\n    that.pathname = state.getPathname();\n    that.search = state.getSearch();\n    that.searchParams = state.getSearchParams();\n    that.hash = state.getHash();\n  }\n};\n\nvar URLPrototype = URLConstructor.prototype;\n\nvar accessorDescriptor = function (getter, setter) {\n  return {\n    get: function () {\n      return getInternalURLState(this)[getter]();\n    },\n    set: setter && function (value) {\n      return getInternalURLState(this)[setter](value);\n    },\n    configurable: true,\n    enumerable: true\n  };\n};\n\nif (DESCRIPTORS) {\n  // `URL.prototype.href` accessors pair\n  // https://url.spec.whatwg.org/#dom-url-href\n  defineBuiltInAccessor(URLPrototype, 'href', accessorDescriptor('serialize', 'setHref'));\n  // `URL.prototype.origin` getter\n  // https://url.spec.whatwg.org/#dom-url-origin\n  defineBuiltInAccessor(URLPrototype, 'origin', accessorDescriptor('getOrigin'));\n  // `URL.prototype.protocol` accessors pair\n  // https://url.spec.whatwg.org/#dom-url-protocol\n  defineBuiltInAccessor(URLPrototype, 'protocol', accessorDescriptor('getProtocol', 'setProtocol'));\n  // `URL.prototype.username` accessors pair\n  // https://url.spec.whatwg.org/#dom-url-username\n  defineBuiltInAccessor(URLPrototype, 'username', accessorDescriptor('getUsername', 'setUsername'));\n  // `URL.prototype.password` accessors pair\n  // https://url.spec.whatwg.org/#dom-url-password\n  defineBuiltInAccessor(URLPrototype, 'password', accessorDescriptor('getPassword', 'setPassword'));\n  // `URL.prototype.host` accessors pair\n  // https://url.spec.whatwg.org/#dom-url-host\n  defineBuiltInAccessor(URLPrototype, 'host', accessorDescriptor('getHost', 'setHost'));\n  // `URL.prototype.hostname` accessors pair\n  // https://url.spec.whatwg.org/#dom-url-hostname\n  defineBuiltInAccessor(URLPrototype, 'hostname', accessorDescriptor('getHostname', 'setHostname'));\n  // `URL.prototype.port` accessors pair\n  // https://url.spec.whatwg.org/#dom-url-port\n  defineBuiltInAccessor(URLPrototype, 'port', accessorDescriptor('getPort', 'setPort'));\n  // `URL.prototype.pathname` accessors pair\n  // https://url.spec.whatwg.org/#dom-url-pathname\n  defineBuiltInAccessor(URLPrototype, 'pathname', accessorDescriptor('getPathname', 'setPathname'));\n  // `URL.prototype.search` accessors pair\n  // https://url.spec.whatwg.org/#dom-url-search\n  defineBuiltInAccessor(URLPrototype, 'search', accessorDescriptor('getSearch', 'setSearch'));\n  // `URL.prototype.searchParams` getter\n  // https://url.spec.whatwg.org/#dom-url-searchparams\n  defineBuiltInAccessor(URLPrototype, 'searchParams', accessorDescriptor('getSearchParams'));\n  // `URL.prototype.hash` accessors pair\n  // https://url.spec.whatwg.org/#dom-url-hash\n  defineBuiltInAccessor(URLPrototype, 'hash', accessorDescriptor('getHash', 'setHash'));\n}\n\n// `URL.prototype.toJSON` method\n// https://url.spec.whatwg.org/#dom-url-tojson\ndefineBuiltIn(URLPrototype, 'toJSON', function toJSON() {\n  return getInternalURLState(this).serialize();\n}, { enumerable: true });\n\n// `URL.prototype.toString` method\n// https://url.spec.whatwg.org/#URL-stringification-behavior\ndefineBuiltIn(URLPrototype, 'toString', function toString() {\n  return getInternalURLState(this).serialize();\n}, { enumerable: true });\n\nif (NativeURL) {\n  var nativeCreateObjectURL = NativeURL.createObjectURL;\n  var nativeRevokeObjectURL = NativeURL.revokeObjectURL;\n  // `URL.createObjectURL` method\n  // https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL\n  if (nativeCreateObjectURL) defineBuiltIn(URLConstructor, 'createObjectURL', bind(nativeCreateObjectURL, NativeURL));\n  // `URL.revokeObjectURL` method\n  // https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL\n  if (nativeRevokeObjectURL) defineBuiltIn(URLConstructor, 'revokeObjectURL', bind(nativeRevokeObjectURL, NativeURL));\n}\n\nsetToStringTag(URLConstructor, 'URL');\n\n$({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {\n  URL: URLConstructor\n});\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/web.url.constructor.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/web.url.js":
/*!**********************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/web.url.js ***!
  \**********************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n// TODO: Remove this module from `core-js@4` since it's replaced to module below\n__webpack_require__(/*! ../modules/web.url.constructor */ \"../../node_modules/core-js-pure/modules/web.url.constructor.js\");\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/web.url.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/modules/web.url.to-json.js":
/*!******************************************************************!*\
  !*** ../../node_modules/core-js-pure/modules/web.url.to-json.js ***!
  \******************************************************************/
/***/ (function() {

eval("// empty\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/modules/web.url.to-json.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/array/virtual/entries.js":
/*!***********************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/array/virtual/entries.js ***!
  \***********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../../es/array/virtual/entries */ \"../../node_modules/core-js-pure/es/array/virtual/entries.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/array/virtual/entries.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/global-this.js":
/*!*************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/global-this.js ***!
  \*************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../es/global-this */ \"../../node_modules/core-js-pure/es/global-this.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/global-this.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/instance/code-point-at.js":
/*!************************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/instance/code-point-at.js ***!
  \************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/instance/code-point-at */ \"../../node_modules/core-js-pure/es/instance/code-point-at.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/instance/code-point-at.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/instance/entries.js":
/*!******************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/instance/entries.js ***!
  \******************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../../modules/web.dom-collections.iterator */ \"../../node_modules/core-js-pure/modules/web.dom-collections.iterator.js\");\nvar classof = __webpack_require__(/*! ../../internals/classof */ \"../../node_modules/core-js-pure/internals/classof.js\");\nvar hasOwn = __webpack_require__(/*! ../../internals/has-own-property */ \"../../node_modules/core-js-pure/internals/has-own-property.js\");\nvar isPrototypeOf = __webpack_require__(/*! ../../internals/object-is-prototype-of */ \"../../node_modules/core-js-pure/internals/object-is-prototype-of.js\");\nvar method = __webpack_require__(/*! ../array/virtual/entries */ \"../../node_modules/core-js-pure/stable/array/virtual/entries.js\");\n\nvar ArrayPrototype = Array.prototype;\n\nvar DOMIterables = {\n  DOMTokenList: true,\n  NodeList: true\n};\n\nmodule.exports = function (it) {\n  var own = it.entries;\n  return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.entries)\n    || hasOwn(DOMIterables, classof(it)) ? method : own;\n};\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/instance/entries.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/instance/flags.js":
/*!****************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/instance/flags.js ***!
  \****************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/instance/flags */ \"../../node_modules/core-js-pure/es/instance/flags.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/instance/flags.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/instance/flat.js":
/*!***************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/instance/flat.js ***!
  \***************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/instance/flat */ \"../../node_modules/core-js-pure/es/instance/flat.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/instance/flat.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/instance/pad-end.js":
/*!******************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/instance/pad-end.js ***!
  \******************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/instance/pad-end */ \"../../node_modules/core-js-pure/es/instance/pad-end.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/instance/pad-end.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/instance/pad-start.js":
/*!********************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/instance/pad-start.js ***!
  \********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/instance/pad-start */ \"../../node_modules/core-js-pure/es/instance/pad-start.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/instance/pad-start.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/instance/trim-end.js":
/*!*******************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/instance/trim-end.js ***!
  \*******************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/instance/trim-end */ \"../../node_modules/core-js-pure/es/instance/trim-end.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/instance/trim-end.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/math/fround.js":
/*!*************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/math/fround.js ***!
  \*************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/math/fround */ \"../../node_modules/core-js-pure/es/math/fround.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/math/fround.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/math/hypot.js":
/*!************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/math/hypot.js ***!
  \************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/math/hypot */ \"../../node_modules/core-js-pure/es/math/hypot.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/math/hypot.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/math/log2.js":
/*!***********************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/math/log2.js ***!
  \***********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/math/log2 */ \"../../node_modules/core-js-pure/es/math/log2.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/math/log2.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/math/sign.js":
/*!***********************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/math/sign.js ***!
  \***********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/math/sign */ \"../../node_modules/core-js-pure/es/math/sign.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/math/sign.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/math/trunc.js":
/*!************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/math/trunc.js ***!
  \************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/math/trunc */ \"../../node_modules/core-js-pure/es/math/trunc.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/math/trunc.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/number/is-integer.js":
/*!*******************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/number/is-integer.js ***!
  \*******************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/number/is-integer */ \"../../node_modules/core-js-pure/es/number/is-integer.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/number/is-integer.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/object/freeze.js":
/*!***************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/object/freeze.js ***!
  \***************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/object/freeze */ \"../../node_modules/core-js-pure/es/object/freeze.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/object/freeze.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/object/is-extensible.js":
/*!**********************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/object/is-extensible.js ***!
  \**********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/object/is-extensible */ \"../../node_modules/core-js-pure/es/object/is-extensible.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/object/is-extensible.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/object/prevent-extensions.js":
/*!***************************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/object/prevent-extensions.js ***!
  \***************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/object/prevent-extensions */ \"../../node_modules/core-js-pure/es/object/prevent-extensions.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/object/prevent-extensions.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/reflect/get.js":
/*!*************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/reflect/get.js ***!
  \*************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/reflect/get */ \"../../node_modules/core-js-pure/es/reflect/get.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/reflect/get.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/string/from-code-point.js":
/*!************************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/string/from-code-point.js ***!
  \************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/string/from-code-point */ \"../../node_modules/core-js-pure/es/string/from-code-point.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/string/from-code-point.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/symbol/to-string-tag.js":
/*!**********************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/symbol/to-string-tag.js ***!
  \**********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/symbol/to-string-tag */ \"../../node_modules/core-js-pure/es/symbol/to-string-tag.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/symbol/to-string-tag.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/url-search-params/index.js":
/*!*************************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/url-search-params/index.js ***!
  \*************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../web/url-search-params */ \"../../node_modules/core-js-pure/web/url-search-params.js\");\n__webpack_require__(/*! ../../modules/web.dom-collections.iterator */ \"../../node_modules/core-js-pure/modules/web.dom-collections.iterator.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/url-search-params/index.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/url/index.js":
/*!***********************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/url/index.js ***!
  \***********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../web/url */ \"../../node_modules/core-js-pure/web/url.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/url/index.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/weak-map/index.js":
/*!****************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/weak-map/index.js ***!
  \****************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/weak-map */ \"../../node_modules/core-js-pure/es/weak-map/index.js\");\n__webpack_require__(/*! ../../modules/web.dom-collections.iterator */ \"../../node_modules/core-js-pure/modules/web.dom-collections.iterator.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/weak-map/index.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/stable/weak-set/index.js":
/*!****************************************************************!*\
  !*** ../../node_modules/core-js-pure/stable/weak-set/index.js ***!
  \****************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\nvar parent = __webpack_require__(/*! ../../es/weak-set */ \"../../node_modules/core-js-pure/es/weak-set/index.js\");\n__webpack_require__(/*! ../../modules/web.dom-collections.iterator */ \"../../node_modules/core-js-pure/modules/web.dom-collections.iterator.js\");\n\nmodule.exports = parent;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/stable/weak-set/index.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/web/url-search-params.js":
/*!****************************************************************!*\
  !*** ../../node_modules/core-js-pure/web/url-search-params.js ***!
  \****************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ../modules/web.url-search-params */ \"../../node_modules/core-js-pure/modules/web.url-search-params.js\");\n__webpack_require__(/*! ../modules/web.url-search-params.delete */ \"../../node_modules/core-js-pure/modules/web.url-search-params.delete.js\");\n__webpack_require__(/*! ../modules/web.url-search-params.has */ \"../../node_modules/core-js-pure/modules/web.url-search-params.has.js\");\n__webpack_require__(/*! ../modules/web.url-search-params.size */ \"../../node_modules/core-js-pure/modules/web.url-search-params.size.js\");\nvar path = __webpack_require__(/*! ../internals/path */ \"../../node_modules/core-js-pure/internals/path.js\");\n\nmodule.exports = path.URLSearchParams;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/web/url-search-params.js?");

/***/ }),

/***/ "../../node_modules/core-js-pure/web/url.js":
/*!**************************************************!*\
  !*** ../../node_modules/core-js-pure/web/url.js ***!
  \**************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("\n__webpack_require__(/*! ./url-search-params */ \"../../node_modules/core-js-pure/web/url-search-params.js\");\n__webpack_require__(/*! ../modules/web.url */ \"../../node_modules/core-js-pure/modules/web.url.js\");\n__webpack_require__(/*! ../modules/web.url.can-parse */ \"../../node_modules/core-js-pure/modules/web.url.can-parse.js\");\n__webpack_require__(/*! ../modules/web.url.to-json */ \"../../node_modules/core-js-pure/modules/web.url.to-json.js\");\nvar path = __webpack_require__(/*! ../internals/path */ \"../../node_modules/core-js-pure/internals/path.js\");\n\nmodule.exports = path.URL;\n\n\n//# sourceURL=webpack://nocode-component/../../node_modules/core-js-pure/web/url.js?");

/***/ })

}]);