@pdftron/pdfjs-express 8.3.0 → 8.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/package.json +1 -1
  2. package/public/core/22.chunk.js +7 -7
  3. package/public/core/23.chunk.js +8 -0
  4. package/public/core/AndroidContentPartRetriever.chunk.js +2 -2
  5. package/public/core/ArrayBufferPdfPartRetriever.chunk.js +1 -1
  6. package/public/core/AzurePartRetriever.chunk.js +2 -2
  7. package/public/core/ContentEdit.chunk.js +26 -25
  8. package/public/core/ExternalAnnotationMerger.chunk.js +13 -13
  9. package/public/core/ExternalPdfPartRetriever.chunk.js +6 -6
  10. package/public/core/HttpPartRetriever.chunk.js +12 -12
  11. package/public/core/IOSPartRetriever.chunk.js +2 -2
  12. package/public/core/LocalPartRetriever.chunk.js +4 -4
  13. package/public/core/LocalPdfPartRetriever.chunk.js +3 -3
  14. package/public/core/PDFInfoVersion1.chunk.js +16 -16
  15. package/public/core/SelectionInfoOld.chunk.js +14 -14
  16. package/public/core/StreamingPartRetriever.chunk.js +9 -9
  17. package/public/core/WebDBPartRetriever.chunk.js +2 -2
  18. package/public/core/WebViewerServerPartRetriever.chunk.js +32 -32
  19. package/public/core/WinRTPartRetriever.chunk.js +2 -2
  20. package/public/core/external/pikaday.css +1 -1
  21. package/public/core/external/pikaday.override.css +105 -0
  22. package/public/core/external/webcomponents-bundle.js +370 -0
  23. package/public/core/legacyOffice/LegacyOfficeWorker.js +1 -1
  24. package/public/core/pdfjs/PDFJSDocumentType.js +820 -751
  25. package/public/core/pdfjs/pdf.worker.js +75 -74
  26. package/public/core/pdfjs/pikaday.chunk.js +41 -0
  27. package/public/core/pdfjs/vendors.pikaday.chunk.js +154 -0
  28. package/public/core/pikaday.chunk.js +34 -33
  29. package/public/core/vendors.ascii85.chunk.js +6 -6
  30. package/public/core/vendors.ascii85.quill.chunk.js +34 -34
  31. package/public/core/vendors.pako.chunk.js +80 -80
  32. package/public/core/vendors.quill.chunk.js +421 -421
  33. package/public/core/webviewer-core.min.js +2670 -2591
  34. package/public/ui/chunks/10.chunk.js +1 -1
  35. package/public/ui/chunks/100.chunk.js +1 -1
  36. package/public/ui/chunks/101.chunk.js +1 -1
  37. package/public/ui/chunks/102.chunk.js +1 -1
  38. package/public/ui/chunks/103.chunk.js +1 -1
  39. package/public/ui/chunks/104.chunk.js +1 -1
  40. package/public/ui/chunks/105.chunk.js +1 -1
  41. package/public/ui/chunks/105.chunk.js.map +1 -1
  42. package/public/ui/chunks/106.chunk.js +1 -1
  43. package/public/ui/chunks/106.chunk.js.map +1 -1
  44. package/public/ui/chunks/107.chunk.js +1 -1
  45. package/public/ui/chunks/107.chunk.js.map +1 -1
  46. package/public/ui/chunks/108.chunk.js +1 -1
  47. package/public/ui/chunks/108.chunk.js.map +1 -1
  48. package/public/ui/chunks/109.chunk.js +1 -1
  49. package/public/ui/chunks/109.chunk.js.map +1 -1
  50. package/public/ui/chunks/11.chunk.js +1 -1
  51. package/public/ui/chunks/110.chunk.js +1 -1
  52. package/public/ui/chunks/110.chunk.js.map +1 -1
  53. package/public/ui/chunks/111.chunk.js +1 -1
  54. package/public/ui/chunks/111.chunk.js.map +1 -1
  55. package/public/ui/chunks/112.chunk.js +1 -1
  56. package/public/ui/chunks/112.chunk.js.map +1 -1
  57. package/public/ui/chunks/113.chunk.js +1 -1
  58. package/public/ui/chunks/113.chunk.js.map +1 -1
  59. package/public/ui/chunks/114.chunk.js +1 -1
  60. package/public/ui/chunks/114.chunk.js.map +1 -1
  61. package/public/ui/chunks/115.chunk.js +1 -1
  62. package/public/ui/chunks/115.chunk.js.map +1 -1
  63. package/public/ui/chunks/116.chunk.js +1 -1
  64. package/public/ui/chunks/116.chunk.js.map +1 -1
  65. package/public/ui/chunks/117.chunk.js +1 -1
  66. package/public/ui/chunks/117.chunk.js.map +1 -1
  67. package/public/ui/chunks/118.chunk.js +1 -1
  68. package/public/ui/chunks/118.chunk.js.map +1 -1
  69. package/public/ui/chunks/119.chunk.js +1 -1
  70. package/public/ui/chunks/119.chunk.js.map +1 -1
  71. package/public/ui/chunks/12.chunk.js +1 -1
  72. package/public/ui/chunks/120.chunk.js +1 -1
  73. package/public/ui/chunks/120.chunk.js.map +1 -1
  74. package/public/ui/chunks/121.chunk.js +1 -1
  75. package/public/ui/chunks/121.chunk.js.map +1 -1
  76. package/public/ui/chunks/122.chunk.js +1 -1
  77. package/public/ui/chunks/122.chunk.js.map +1 -1
  78. package/public/ui/chunks/123.chunk.js +1 -1
  79. package/public/ui/chunks/123.chunk.js.map +1 -1
  80. package/public/ui/chunks/124.chunk.js +1 -1
  81. package/public/ui/chunks/124.chunk.js.map +1 -1
  82. package/public/ui/chunks/125.chunk.js +1 -1
  83. package/public/ui/chunks/125.chunk.js.map +1 -1
  84. package/public/ui/chunks/126.chunk.js +1 -1
  85. package/public/ui/chunks/126.chunk.js.map +1 -1
  86. package/public/ui/chunks/127.chunk.js +1 -1
  87. package/public/ui/chunks/127.chunk.js.map +1 -1
  88. package/public/ui/chunks/128.chunk.js +1 -1
  89. package/public/ui/chunks/128.chunk.js.map +1 -1
  90. package/public/ui/chunks/129.chunk.js +1 -1
  91. package/public/ui/chunks/129.chunk.js.map +1 -1
  92. package/public/ui/chunks/13.chunk.js +1 -1
  93. package/public/ui/chunks/130.chunk.js +1 -1
  94. package/public/ui/chunks/130.chunk.js.map +1 -1
  95. package/public/ui/chunks/131.chunk.js +1 -1
  96. package/public/ui/chunks/131.chunk.js.map +1 -1
  97. package/public/ui/chunks/132.chunk.js +1 -1
  98. package/public/ui/chunks/132.chunk.js.map +1 -1
  99. package/public/ui/chunks/133.chunk.js +1 -1
  100. package/public/ui/chunks/133.chunk.js.map +1 -1
  101. package/public/ui/chunks/134.chunk.js +1 -1
  102. package/public/ui/chunks/134.chunk.js.map +1 -1
  103. package/public/ui/chunks/135.chunk.js +1 -1
  104. package/public/ui/chunks/135.chunk.js.map +1 -1
  105. package/public/ui/chunks/136.chunk.js +1 -1
  106. package/public/ui/chunks/136.chunk.js.map +1 -1
  107. package/public/ui/chunks/137.chunk.js +1 -1
  108. package/public/ui/chunks/137.chunk.js.map +1 -1
  109. package/public/ui/chunks/138.chunk.js +1 -1
  110. package/public/ui/chunks/138.chunk.js.map +1 -1
  111. package/public/ui/chunks/139.chunk.js +1 -1
  112. package/public/ui/chunks/139.chunk.js.map +1 -1
  113. package/public/ui/chunks/14.chunk.js +1 -1
  114. package/public/ui/chunks/140.chunk.js +1 -1
  115. package/public/ui/chunks/140.chunk.js.map +1 -1
  116. package/public/ui/chunks/141.chunk.js +1 -1
  117. package/public/ui/chunks/141.chunk.js.map +1 -1
  118. package/public/ui/chunks/142.chunk.js +1 -1
  119. package/public/ui/chunks/142.chunk.js.map +1 -1
  120. package/public/ui/chunks/143.chunk.js +1 -1
  121. package/public/ui/chunks/143.chunk.js.map +1 -1
  122. package/public/ui/chunks/144.chunk.js +1 -1
  123. package/public/ui/chunks/144.chunk.js.map +1 -1
  124. package/public/ui/chunks/145.chunk.js +1 -1
  125. package/public/ui/chunks/145.chunk.js.map +1 -1
  126. package/public/ui/chunks/15.chunk.js +1 -1
  127. package/public/ui/chunks/16.chunk.js +1 -1
  128. package/public/ui/chunks/17.chunk.js +1 -1
  129. package/public/ui/chunks/18.chunk.js +1 -1
  130. package/public/ui/chunks/19.chunk.js +1 -1
  131. package/public/ui/chunks/20.chunk.js +1 -1
  132. package/public/ui/chunks/21.chunk.js +1 -1
  133. package/public/ui/chunks/22.chunk.js +1 -1
  134. package/public/ui/chunks/23.chunk.js +1 -1
  135. package/public/ui/chunks/24.chunk.js +1 -1
  136. package/public/ui/chunks/25.chunk.js +1 -1
  137. package/public/ui/chunks/26.chunk.js +1 -1
  138. package/public/ui/chunks/27.chunk.js +1 -1
  139. package/public/ui/chunks/28.chunk.js +1 -1
  140. package/public/ui/chunks/29.chunk.js +1 -1
  141. package/public/ui/chunks/29.chunk.js.map +1 -1
  142. package/public/ui/chunks/30.chunk.js +1 -1
  143. package/public/ui/chunks/30.chunk.js.map +1 -1
  144. package/public/ui/chunks/31.chunk.js +1 -1
  145. package/public/ui/chunks/31.chunk.js.map +1 -1
  146. package/public/ui/chunks/32.chunk.js +1 -1
  147. package/public/ui/chunks/33.chunk.js +1 -1
  148. package/public/ui/chunks/34.chunk.js +1 -1
  149. package/public/ui/chunks/35.chunk.js +1 -1
  150. package/public/ui/chunks/36.chunk.js +1 -1
  151. package/public/ui/chunks/37.chunk.js +1 -1
  152. package/public/ui/chunks/38.chunk.js +1 -1
  153. package/public/ui/chunks/39.chunk.js +1 -1
  154. package/public/ui/chunks/4.chunk.js +1 -1
  155. package/public/ui/chunks/40.chunk.js +1 -1
  156. package/public/ui/chunks/41.chunk.js +1 -1
  157. package/public/ui/chunks/42.chunk.js +1 -1
  158. package/public/ui/chunks/43.chunk.js +1 -1
  159. package/public/ui/chunks/44.chunk.js +1 -1
  160. package/public/ui/chunks/45.chunk.js +1 -1
  161. package/public/ui/chunks/46.chunk.js +1 -1
  162. package/public/ui/chunks/47.chunk.js +1 -1
  163. package/public/ui/chunks/48.chunk.js +1 -1
  164. package/public/ui/chunks/49.chunk.js +1 -1
  165. package/public/ui/chunks/5.chunk.js +1 -1
  166. package/public/ui/chunks/50.chunk.js +1 -1
  167. package/public/ui/chunks/51.chunk.js +1 -1
  168. package/public/ui/chunks/52.chunk.js +1 -1
  169. package/public/ui/chunks/53.chunk.js +1 -1
  170. package/public/ui/chunks/54.chunk.js +1 -1
  171. package/public/ui/chunks/55.chunk.js +1 -1
  172. package/public/ui/chunks/56.chunk.js +1 -1
  173. package/public/ui/chunks/57.chunk.js +1 -1
  174. package/public/ui/chunks/58.chunk.js +1 -1
  175. package/public/ui/chunks/59.chunk.js +1 -1
  176. package/public/ui/chunks/6.chunk.js +1 -1
  177. package/public/ui/chunks/60.chunk.js +1 -1
  178. package/public/ui/chunks/61.chunk.js +1 -1
  179. package/public/ui/chunks/61.chunk.js.map +1 -1
  180. package/public/ui/chunks/62.chunk.js +1 -1
  181. package/public/ui/chunks/63.chunk.js +1 -1
  182. package/public/ui/chunks/64.chunk.js +1 -1
  183. package/public/ui/chunks/65.chunk.js +1 -1
  184. package/public/ui/chunks/66.chunk.js +1 -1
  185. package/public/ui/chunks/67.chunk.js +1 -1
  186. package/public/ui/chunks/68.chunk.js +1 -1
  187. package/public/ui/chunks/69.chunk.js +1 -1
  188. package/public/ui/chunks/7.chunk.js +1 -1
  189. package/public/ui/chunks/70.chunk.js +1 -1
  190. package/public/ui/chunks/71.chunk.js +1 -1
  191. package/public/ui/chunks/71.chunk.js.map +1 -1
  192. package/public/ui/chunks/72.chunk.js +1 -1
  193. package/public/ui/chunks/73.chunk.js +1 -1
  194. package/public/ui/chunks/74.chunk.js +1 -1
  195. package/public/ui/chunks/75.chunk.js +1 -1
  196. package/public/ui/chunks/76.chunk.js +1 -1
  197. package/public/ui/chunks/77.chunk.js +1 -1
  198. package/public/ui/chunks/78.chunk.js +1 -1
  199. package/public/ui/chunks/79.chunk.js +1 -1
  200. package/public/ui/chunks/8.chunk.js +1 -1
  201. package/public/ui/chunks/80.chunk.js +1 -1
  202. package/public/ui/chunks/81.chunk.js +1 -1
  203. package/public/ui/chunks/81.chunk.js.map +1 -1
  204. package/public/ui/chunks/82.chunk.js +1 -1
  205. package/public/ui/chunks/83.chunk.js +1 -1
  206. package/public/ui/chunks/84.chunk.js +1 -1
  207. package/public/ui/chunks/85.chunk.js +1 -1
  208. package/public/ui/chunks/86.chunk.js +1 -1
  209. package/public/ui/chunks/87.chunk.js +1 -1
  210. package/public/ui/chunks/88.chunk.js +1 -1
  211. package/public/ui/chunks/89.chunk.js +1 -1
  212. package/public/ui/chunks/9.chunk.js +1 -1
  213. package/public/ui/chunks/90.chunk.js +1 -1
  214. package/public/ui/chunks/91.chunk.js +1 -1
  215. package/public/ui/chunks/92.chunk.js +1 -1
  216. package/public/ui/chunks/93.chunk.js +1 -1
  217. package/public/ui/chunks/94.chunk.js +1 -1
  218. package/public/ui/chunks/95.chunk.js +1 -1
  219. package/public/ui/chunks/96.chunk.js +1 -1
  220. package/public/ui/chunks/97.chunk.js +1 -1
  221. package/public/ui/chunks/98.chunk.js +1 -1
  222. package/public/ui/chunks/99.chunk.js +1 -1
  223. package/public/ui/chunks/mention.chunk.css +1 -1
  224. package/public/ui/chunks/mention.chunk.css.map +1 -1
  225. package/public/ui/chunks/mention.chunk.js +1 -1
  226. package/public/ui/chunks/vendors.html2canvas.chunk.js +1 -1
  227. package/public/ui/chunks/vendors.mention.chunk.js +1 -1
  228. package/public/ui/chunks/vendors.mention.chunk.js.map +1 -1
  229. package/public/ui/i18n/translation-bn.json +826 -0
  230. package/public/ui/i18n/translation-de.json +71 -5
  231. package/public/ui/i18n/translation-el.json +826 -0
  232. package/public/ui/i18n/translation-en.json +71 -5
  233. package/public/ui/i18n/translation-es.json +71 -5
  234. package/public/ui/i18n/translation-fr.json +71 -5
  235. package/public/ui/i18n/translation-hi.json +826 -0
  236. package/public/ui/i18n/translation-id.json +826 -0
  237. package/public/ui/i18n/translation-it.json +71 -5
  238. package/public/ui/i18n/translation-ja.json +93 -25
  239. package/public/ui/i18n/translation-ko.json +71 -5
  240. package/public/ui/i18n/translation-ms.json +826 -0
  241. package/public/ui/i18n/translation-nl.json +71 -5
  242. package/public/ui/i18n/translation-pt_br.json +71 -5
  243. package/public/ui/i18n/translation-ru.json +71 -5
  244. package/public/ui/i18n/translation-tr.json +826 -0
  245. package/public/ui/i18n/translation-uk.json +826 -0
  246. package/public/ui/i18n/translation-vi.json +102 -52
  247. package/public/ui/i18n/translation-zh_cn.json +74 -8
  248. package/public/ui/i18n/translation-zh_tw.json +71 -5
  249. package/public/ui/style.css +116 -105
  250. package/public/ui/style.css.map +1 -1
  251. package/public/ui/webviewer-ui.min.js +27 -18
  252. package/public/ui/webviewer-ui.min.js.map +1 -1
  253. package/webviewer.min.js +1 -1
  254. package/public/ui/chunks/146.chunk.js +0 -2
  255. package/public/ui/chunks/146.chunk.js.map +0 -1
@@ -38,12 +38,7 @@ split,{configurable:!0,writable:!0,value:polyfill}):polyfill!==fromLang&&(void 0
38
38
  $jscomp.polyfill("Symbol",function(orig){if(orig)return orig;var SymbolClass=function(id,opt_description){this.$jscomp$symbol$id_=id;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:opt_description})};SymbolClass.prototype.toString=function(){return this.$jscomp$symbol$id_};var SYMBOL_PREFIX="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",counter=0,symbolPolyfill=function(opt_description){if(this instanceof symbolPolyfill)throw new TypeError("Symbol is not a constructor");
39
39
  return new SymbolClass(SYMBOL_PREFIX+(opt_description||"")+"_"+counter++,opt_description)};return symbolPolyfill},"es6","es3");
40
40
  $jscomp.polyfill("Symbol.iterator",function(orig){if(orig)return orig;orig=Symbol("Symbol.iterator");for(var arrayLikes="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),i=0;i<arrayLikes.length;i++){var ArrayLikeCtor=$jscomp.global[arrayLikes[i]];"function"===typeof ArrayLikeCtor&&"function"!=typeof ArrayLikeCtor.prototype[orig]&&$jscomp.defineProperty(ArrayLikeCtor.prototype,orig,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return orig},
41
- "es6","es3");$jscomp.polyfill("Symbol.asyncIterator",function(orig){return orig?orig:Symbol("Symbol.asyncIterator")},"es9","es3");$jscomp.iteratorPrototype=function(next){next={next:next};next[Symbol.iterator]=function(){return this};return next};
42
- $jscomp.iteratorFromArray=function(array,transform){array instanceof String&&(array+="");var i=0,done=!1,iter={next:function(){if(!done&&i<array.length){var index=i++;return{value:transform(index,array[index]),done:!1}}done=!0;return{done:!0,value:void 0}}};iter[Symbol.iterator]=function(){return iter};return iter};$jscomp.polyfill("Array.prototype.keys",function(orig){return orig?orig:function(){return $jscomp.iteratorFromArray(this,function(i){return i})}},"es6","es3");
43
- $jscomp.findInternal=function(array,callback,thisArg){array instanceof String&&(array=String(array));for(var len=array.length,i=0;i<len;i++){var value=array[i];if(callback.call(thisArg,value,i,array))return{i:i,v:value}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(orig){return orig?orig:function(callback,opt_thisArg){return $jscomp.findInternal(this,callback,opt_thisArg).v}},"es6","es3");
44
- $jscomp.underscoreProtoCanBeSet=function(){var x={a:!0},y={};try{return y.__proto__=x,y.a}catch(e){}return!1};$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(target,proto){target.__proto__=proto;if(target.__proto__!==proto)throw new TypeError(target+" is not extensible");return target}:null;
45
- $jscomp.polyfill("Object.setPrototypeOf",function(orig){return orig||$jscomp.setPrototypeOf},"es6","es5");$jscomp.owns=function(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)};$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(target,var_args){for(var i=1;i<arguments.length;i++){var source=arguments[i];if(source)for(var key in source)$jscomp.owns(source,key)&&(target[key]=source[key])}return target};
46
- $jscomp.polyfill("Object.assign",function(orig){return orig||$jscomp.assign},"es6","es3");$jscomp.makeIterator=function(iterable){var iteratorFunction="undefined"!=typeof Symbol&&Symbol.iterator&&iterable[Symbol.iterator];return iteratorFunction?iteratorFunction.call(iterable):$jscomp.arrayIterator(iterable)};
41
+ "es6","es3");$jscomp.polyfill("Symbol.asyncIterator",function(orig){return orig?orig:Symbol("Symbol.asyncIterator")},"es9","es3");$jscomp.iteratorPrototype=function(next){next={next:next};next[Symbol.iterator]=function(){return this};return next};$jscomp.makeIterator=function(iterable){var iteratorFunction="undefined"!=typeof Symbol&&Symbol.iterator&&iterable[Symbol.iterator];return iteratorFunction?iteratorFunction.call(iterable):$jscomp.arrayIterator(iterable)};
47
42
  $jscomp.polyfill("Promise",function(NativePromise){function AsyncExecutor(){this.batch_=null}function resolvingPromise(opt_value){return opt_value instanceof PolyfillPromise?opt_value:new PolyfillPromise(function(resolve,reject){resolve(opt_value)})}if(NativePromise&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&"undefined"===typeof $jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return NativePromise;
48
43
  AsyncExecutor.prototype.asyncExecute=function(f){if(null==this.batch_){this.batch_=[];var self=this;this.asyncExecuteFunction(function(){self.executeBatch_()})}this.batch_.push(f)};var nativeSetTimeout=$jscomp.global.setTimeout;AsyncExecutor.prototype.asyncExecuteFunction=function(f){nativeSetTimeout(f,0)};AsyncExecutor.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var executingBatch=this.batch_;this.batch_=[];for(var i=0;i<executingBatch.length;++i){var f=executingBatch[i];
49
44
  executingBatch[i]=null;try{f()}catch(error){this.asyncThrow_(error)}}}this.batch_=null};AsyncExecutor.prototype.asyncThrow_=function(exception){this.asyncExecuteFunction(function(){throw exception;})};var PolyfillPromise=function(executor){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var resolveAndReject=this.createResolveAndReject_();try{executor(resolveAndReject.resolve,resolveAndReject.reject)}catch(e){resolveAndReject.reject(e)}};PolyfillPromise.prototype.createResolveAndReject_=
@@ -57,17 +52,23 @@ try{thenMethod.call(thenable,methods.resolve,methods.reject)}catch(error){method
57
52
  createCallback(onRejected,rejectChild));return childPromise};PolyfillPromise.prototype.catch=function(onRejected){return this.then(void 0,onRejected)};PolyfillPromise.prototype.callWhenSettled_=function(onFulfilled,onRejected){function callback(){switch(thisPromise.state_){case 1:onFulfilled(thisPromise.result_);break;case 2:onRejected(thisPromise.result_);break;default:throw Error("Unexpected state: "+thisPromise.state_);}}var thisPromise=this;null==this.onSettledCallbacks_?asyncExecutor.asyncExecute(callback):
58
53
  this.onSettledCallbacks_.push(callback);this.isRejectionHandled_=!0};PolyfillPromise.resolve=resolvingPromise;PolyfillPromise.reject=function(opt_reason){return new PolyfillPromise(function(resolve,reject){reject(opt_reason)})};PolyfillPromise.race=function(thenablesOrValues){return new PolyfillPromise(function(resolve,reject){for(var iterator=$jscomp.makeIterator(thenablesOrValues),iterRec=iterator.next();!iterRec.done;iterRec=iterator.next())resolvingPromise(iterRec.value).callWhenSettled_(resolve,
59
54
  reject)})};PolyfillPromise.all=function(thenablesOrValues){var iterator=$jscomp.makeIterator(thenablesOrValues),iterRec=iterator.next();return iterRec.done?resolvingPromise([]):new PolyfillPromise(function(resolveAll,rejectAll){function onFulfilled(i){return function(ithResult){resultsArray[i]=ithResult;unresolvedCount--;0==unresolvedCount&&resolveAll(resultsArray)}}var resultsArray=[],unresolvedCount=0;do resultsArray.push(void 0),unresolvedCount++,resolvingPromise(iterRec.value).callWhenSettled_(onFulfilled(resultsArray.length-
60
- 1),rejectAll),iterRec=iterator.next();while(!iterRec.done)})};return PolyfillPromise},"es6","es3");$jscomp.polyfill("Number.EPSILON",function(orig){return Math.pow(2,-52)},"es6","es3");
55
+ 1),rejectAll),iterRec=iterator.next();while(!iterRec.done)})};return PolyfillPromise},"es6","es3");$jscomp.iteratorFromArray=function(array,transform){array instanceof String&&(array+="");var i=0,done=!1,iter={next:function(){if(!done&&i<array.length){var index=i++;return{value:transform(index,array[index]),done:!1}}done=!0;return{done:!0,value:void 0}}};iter[Symbol.iterator]=function(){return iter};return iter};
56
+ $jscomp.polyfill("Array.prototype.keys",function(orig){return orig?orig:function(){return $jscomp.iteratorFromArray(this,function(i){return i})}},"es6","es3");$jscomp.findInternal=function(array,callback,thisArg){array instanceof String&&(array=String(array));for(var len=array.length,i=0;i<len;i++){var value=array[i];if(callback.call(thisArg,value,i,array))return{i:i,v:value}}return{i:-1,v:void 0}};
57
+ $jscomp.polyfill("Array.prototype.find",function(orig){return orig?orig:function(callback,opt_thisArg){return $jscomp.findInternal(this,callback,opt_thisArg).v}},"es6","es3");$jscomp.underscoreProtoCanBeSet=function(){var x={a:!0},y={};try{return y.__proto__=x,y.a}catch(e){}return!1};
58
+ $jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(target,proto){target.__proto__=proto;if(target.__proto__!==proto)throw new TypeError(target+" is not extensible");return target}:null;$jscomp.polyfill("Object.setPrototypeOf",function(orig){return orig||$jscomp.setPrototypeOf},"es6","es5");$jscomp.owns=function(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)};
59
+ $jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(target,var_args){for(var i=1;i<arguments.length;i++){var source=arguments[i];if(source)for(var key in source)$jscomp.owns(source,key)&&(target[key]=source[key])}return target};$jscomp.polyfill("Object.assign",function(orig){return orig||$jscomp.assign},"es6","es3");$jscomp.polyfill("Number.EPSILON",function(orig){return Math.pow(2,-52)},"es6","es3");
61
60
  $jscomp.polyfill("Array.prototype.fill",function(orig){return orig?orig:function(value,opt_start,opt_end){var length=this.length||0;0>opt_start&&(opt_start=Math.max(0,length+opt_start));if(null==opt_end||opt_end>length)opt_end=length;opt_end=Number(opt_end);0>opt_end&&(opt_end=Math.max(0,length+opt_end));for(opt_start=Number(opt_start||0);opt_start<opt_end;opt_start++)this[opt_start]=value;return this}},"es6","es3");$jscomp.typedArrayFill=function(orig){return orig?orig:Array.prototype.fill};
62
61
  $jscomp.polyfill("Int8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint8ClampedArray.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
63
- $jscomp.polyfill("Uint32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float64Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Number.isFinite",function(orig){return orig?orig:function(x){return"number"!==typeof x?!1:!isNaN(x)&&Infinity!==x&&-Infinity!==x}},"es6","es3");
64
- $jscomp.polyfill("Number.isInteger",function(orig){return orig?orig:function(x){return Number.isFinite(x)?x===Math.floor(x):!1}},"es6","es3");$jscomp.checkStringArgs=function(thisArg,arg,func){if(null==thisArg)throw new TypeError("The 'this' value for String.prototype."+func+" must not be null or undefined");if(arg instanceof RegExp)throw new TypeError("First argument to String.prototype."+func+" must not be a regular expression");return thisArg+""};
65
- $jscomp.polyfill("String.prototype.startsWith",function(orig){return orig?orig:function(searchString,opt_position){var string=$jscomp.checkStringArgs(this,searchString,"startsWith");searchString+="";var strLen=string.length,searchLen=searchString.length;opt_position=Math.max(0,Math.min(opt_position|0,string.length));for(var j=0;j<searchLen&&opt_position<strLen;)if(string[opt_position++]!=searchString[j++])return!1;return j>=searchLen}},"es6","es3");
66
- $jscomp.checkEs6ConformanceViaProxy=function(){try{var proxied={},proxy=Object.create(new $jscomp.global.Proxy(proxied,{get:function(target,key,receiver){return target==proxied&&"q"==key&&receiver==proxy}}));return!0===proxy.q}catch(err){return!1}};$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();
62
+ $jscomp.polyfill("Uint32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float64Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.checkEs6ConformanceViaProxy=function(){try{var proxied={},proxy=Object.create(new $jscomp.global.Proxy(proxied,{get:function(target,key,receiver){return target==proxied&&"q"==key&&receiver==proxy}}));return!0===proxy.q}catch(err){return!1}};
63
+ $jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();
67
64
  $jscomp.polyfill("WeakMap",function(NativeWeakMap){function isConformant(){if(!NativeWeakMap||!Object.seal)return!1;try{var x=Object.seal({}),y=Object.seal({}),map=new NativeWeakMap([[x,2],[y,3]]);if(2!=map.get(x)||3!=map.get(y))return!1;map.delete(x);map.set(y,4);return!map.has(x)&&4==map.get(y)}catch(err){return!1}}function WeakMapMembership(){}function isValidKey(key){var type=typeof key;return"object"===type&&null!==key||"function"===type}function insert(target){if(!$jscomp.owns(target,prop)){var obj=
68
65
  new WeakMapMembership;$jscomp.defineProperty(target,prop,{value:obj})}}function patch(name){if(!$jscomp.ISOLATE_POLYFILLS){var prev=Object[name];prev&&(Object[name]=function(target){if(target instanceof WeakMapMembership)return target;Object.isExtensible(target)&&insert(target);return prev(target)})}}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(NativeWeakMap&&$jscomp.ES6_CONFORMANCE)return NativeWeakMap}else if(isConformant())return NativeWeakMap;var prop="$jscomp_hidden_"+Math.random();patch("freeze");
69
66
  patch("preventExtensions");patch("seal");var index=0,PolyfillWeakMap=function(opt_iterable){this.id_=(index+=Math.random()+1).toString();if(opt_iterable){opt_iterable=$jscomp.makeIterator(opt_iterable);for(var entry;!(entry=opt_iterable.next()).done;)entry=entry.value,this.set(entry[0],entry[1])}};PolyfillWeakMap.prototype.set=function(key,value){if(!isValidKey(key))throw Error("Invalid WeakMap key");insert(key);if(!$jscomp.owns(key,prop))throw Error("WeakMap key fail: "+key);key[prop][this.id_]=
70
67
  value;return this};PolyfillWeakMap.prototype.get=function(key){return isValidKey(key)&&$jscomp.owns(key,prop)?key[prop][this.id_]:void 0};PolyfillWeakMap.prototype.has=function(key){return isValidKey(key)&&$jscomp.owns(key,prop)&&$jscomp.owns(key[prop],this.id_)};PolyfillWeakMap.prototype.delete=function(key){return isValidKey(key)&&$jscomp.owns(key,prop)&&$jscomp.owns(key[prop],this.id_)?delete key[prop][this.id_]:!1};return PolyfillWeakMap},"es6","es3");$jscomp.MapEntry=function(){};
68
+ $jscomp.polyfill("Array.from",function(orig){return orig?orig:function(arrayLike,opt_mapFn,opt_thisArg){opt_mapFn=null!=opt_mapFn?opt_mapFn:function(x){return x};var result=[],iteratorFunction="undefined"!=typeof Symbol&&Symbol.iterator&&arrayLike[Symbol.iterator];if("function"==typeof iteratorFunction){arrayLike=iteratorFunction.call(arrayLike);for(var k=0;!(iteratorFunction=arrayLike.next()).done;)result.push(opt_mapFn.call(opt_thisArg,iteratorFunction.value,k++))}else for(iteratorFunction=arrayLike.length,
69
+ k=0;k<iteratorFunction;k++)result.push(opt_mapFn.call(opt_thisArg,arrayLike[k],k));return result}},"es6","es3");$jscomp.polyfill("Math.imul",function(orig){return orig?orig:function(a,b){a=Number(a);b=Number(b);var al=a&65535,bl=b&65535;return al*bl+((a>>>16&65535)*bl+al*(b>>>16&65535)<<16>>>0)|0}},"es6","es3");$jscomp.polyfill("Number.isFinite",function(orig){return orig?orig:function(x){return"number"!==typeof x?!1:!isNaN(x)&&Infinity!==x&&-Infinity!==x}},"es6","es3");
70
+ $jscomp.polyfill("Number.isInteger",function(orig){return orig?orig:function(x){return Number.isFinite(x)?x===Math.floor(x):!1}},"es6","es3");$jscomp.checkStringArgs=function(thisArg,arg,func){if(null==thisArg)throw new TypeError("The 'this' value for String.prototype."+func+" must not be null or undefined");if(arg instanceof RegExp)throw new TypeError("First argument to String.prototype."+func+" must not be a regular expression");return thisArg+""};
71
+ $jscomp.polyfill("String.prototype.startsWith",function(orig){return orig?orig:function(searchString,opt_position){var string=$jscomp.checkStringArgs(this,searchString,"startsWith");searchString+="";var strLen=string.length,searchLen=searchString.length;opt_position=Math.max(0,Math.min(opt_position|0,string.length));for(var j=0;j<searchLen&&opt_position<strLen;)if(string[opt_position++]!=searchString[j++])return!1;return j>=searchLen}},"es6","es3");
71
72
  $jscomp.polyfill("String.prototype.repeat",function(orig){return orig?orig:function(copies){var string=$jscomp.checkStringArgs(this,null,"repeat");if(0>copies||1342177279<copies)throw new RangeError("Invalid count value");copies|=0;for(var result="";copies;)if(copies&1&&(result+=string),copies>>>=1)string+=string;return result}},"es6","es3");
72
73
  $jscomp.polyfill("String.prototype.replaceAll",function(orig){return orig?orig:function(searchValue,replacement){if(searchValue instanceof RegExp&&!searchValue.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return searchValue instanceof RegExp?this.replace(searchValue,replacement):this.replace(new RegExp(String(searchValue).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),replacement)}},"es_2021","es3");
73
74
  $jscomp.polyfill("Math.log2",function(orig){return orig?orig:function(x){return Math.log(x)/Math.LN2}},"es6","es3");$jscomp.polyfill("Object.getOwnPropertySymbols",function(orig){return orig?orig:function(){return[]}},"es6","es5");
@@ -75,9 +76,7 @@ $jscomp.polyfill("String.prototype.endsWith",function(orig){return orig?orig:fun
75
76
  $jscomp.polyfill("Object.is",function(orig){return orig?orig:function(left,right){return left===right?0!==left||1/left===1/right:left!==left&&right!==right}},"es6","es3");
76
77
  $jscomp.polyfill("Array.prototype.includes",function(orig){return orig?orig:function(searchElement,opt_fromIndex){var array=this;array instanceof String&&(array=String(array));var len=array.length;opt_fromIndex=opt_fromIndex||0;for(0>opt_fromIndex&&(opt_fromIndex=Math.max(opt_fromIndex+len,0));opt_fromIndex<len;opt_fromIndex++){var element=array[opt_fromIndex];if(element===searchElement||Object.is(element,searchElement))return!0}return!1}},"es7","es3");
77
78
  $jscomp.polyfill("String.prototype.includes",function(orig){return orig?orig:function(searchString,opt_position){return-1!==$jscomp.checkStringArgs(this,searchString,"includes").indexOf(searchString,opt_position||0)}},"es6","es3");$jscomp.polyfill("Array.prototype.entries",function(orig){return orig?orig:function(){return $jscomp.iteratorFromArray(this,function(i,v){return[i,v]})}},"es6","es3");
78
- $jscomp.polyfill("Array.from",function(orig){return orig?orig:function(arrayLike,opt_mapFn,opt_thisArg){opt_mapFn=null!=opt_mapFn?opt_mapFn:function(x){return x};var result=[],iteratorFunction="undefined"!=typeof Symbol&&Symbol.iterator&&arrayLike[Symbol.iterator];if("function"==typeof iteratorFunction){arrayLike=iteratorFunction.call(arrayLike);for(var k=0;!(iteratorFunction=arrayLike.next()).done;)result.push(opt_mapFn.call(opt_thisArg,iteratorFunction.value,k++))}else for(iteratorFunction=arrayLike.length,
79
- k=0;k<iteratorFunction;k++)result.push(opt_mapFn.call(opt_thisArg,arrayLike[k],k));return result}},"es6","es3");$jscomp.polyfill("Array.prototype.values",function(orig){return orig?orig:function(){return $jscomp.iteratorFromArray(this,function(k,v){return v})}},"es8","es3");$jscomp.polyfill("Number.isNaN",function(orig){return orig?orig:function(x){return"number"===typeof x&&isNaN(x)}},"es6","es3");
80
- $jscomp.polyfill("Array.prototype.findIndex",function(orig){return orig?orig:function(callback,opt_thisArg){return $jscomp.findInternal(this,callback,opt_thisArg).i}},"es6","es3");
79
+ $jscomp.polyfill("Array.prototype.values",function(orig){return orig?orig:function(){return $jscomp.iteratorFromArray(this,function(k,v){return v})}},"es8","es3");$jscomp.polyfill("Number.isNaN",function(orig){return orig?orig:function(x){return"number"===typeof x&&isNaN(x)}},"es6","es3");$jscomp.polyfill("Array.prototype.findIndex",function(orig){return orig?orig:function(callback,opt_thisArg){return $jscomp.findInternal(this,callback,opt_thisArg).i}},"es6","es3");
81
80
  $jscomp.polyfill("String.fromCodePoint",function(orig){return orig?orig:function(var_args){for(var result="",i=0;i<arguments.length;i++){var code=Number(arguments[i]);if(0>code||1114111<code||code!==Math.floor(code))throw new RangeError("invalid_code_point "+code);65535>=code?result+=String.fromCharCode(code):(code-=65536,result+=String.fromCharCode(code>>>10&1023|55296),result+=String.fromCharCode(code&1023|56320))}return result}},"es6","es3");
82
81
  $jscomp.polyfill("Object.values",function(orig){return orig?orig:function(obj){var result=[],key;for(key in obj)$jscomp.owns(obj,key)&&result.push(obj[key]);return result}},"es8","es3");$jscomp.polyfill("globalThis",function(orig){return orig||$jscomp.global},"es_2020","es3");
83
82
  $jscomp.polyfill("WeakSet",function(NativeWeakSet){function isConformant(){if(!NativeWeakSet||!Object.seal)return!1;try{var x=Object.seal({}),y=Object.seal({}),set=new NativeWeakSet([x]);if(!set.has(x)||set.has(y))return!1;set.delete(x);set.add(y);return!set.has(x)&&set.has(y)}catch(err){return!1}}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(NativeWeakSet&&$jscomp.ES6_CONFORMANCE)return NativeWeakSet}else if(isConformant())return NativeWeakSet;var PolyfillWeakSet=function(opt_iterable){this.map_=
@@ -95,33 +94,34 @@ $jscomp.polyfill("Uint32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin
95
94
  $jscomp.polyfill("Math.log1p",function(orig){return orig?orig:function(x){x=Number(x);if(.25>x&&-.25<x){for(var y=x,d=1,z=x,zPrev=0,s=1;zPrev!=z;)y*=x,s*=-1,z=(zPrev=z)+s*y/++d;return z}return Math.log(1+x)}},"es6","es3");$jscomp.polyfill("Math.acosh",function(orig){return orig?orig:function(x){x=Number(x);return Math.log(x+Math.sqrt(x*x-1))}},"es6","es3");
96
95
  $jscomp.polyfill("Math.asinh",function(orig){return orig?orig:function(x){x=Number(x);if(0===x)return x;var y=Math.log(Math.abs(x)+Math.sqrt(x*x+1));return 0>x?-y:y}},"es6","es3");$jscomp.polyfill("Math.atanh",function(orig){if(orig)return orig;var log1p=Math.log1p;return function(x){x=Number(x);return(log1p(x)-log1p(-x))/2}},"es6","es3");$jscomp.polyfill("Math.sign",function(orig){return orig?orig:function(x){x=Number(x);return 0===x||isNaN(x)?x:0<x?1:-1}},"es6","es3");
97
96
  $jscomp.polyfill("Math.expm1",function(orig){return orig?orig:function(x){x=Number(x);if(.25>x&&-.25<x){for(var y=x,d=1,z=x,zPrev=0;zPrev!=z;)y*=x/++d,z=(zPrev=z)+y;return z}return Math.exp(x)-1}},"es6","es3");$jscomp.polyfill("Math.fround",function(orig){if(orig)return orig;if($jscomp.SIMPLE_FROUND_POLYFILL||"function"!==typeof Float32Array)return function(arg){return arg};var arr=new Float32Array(1);return function(arg){arr[0]=arg;return arr[0]}},"es6","es3");
98
- $jscomp.polyfill("Math.imul",function(orig){return orig?orig:function(a,b){a=Number(a);b=Number(b);var al=a&65535,bl=b&65535;return al*bl+((a>>>16&65535)*bl+al*(b>>>16&65535)<<16>>>0)|0}},"es6","es3");$jscomp.polyfill("Math.sinh",function(orig){if(orig)return orig;var exp=Math.exp;return function(x){x=Number(x);return 0===x?x:(exp(x)-exp(-x))/2}},"es6","es3");
97
+ $jscomp.polyfill("Math.sinh",function(orig){if(orig)return orig;var exp=Math.exp;return function(x){x=Number(x);return 0===x?x:(exp(x)-exp(-x))/2}},"es6","es3");
99
98
  $jscomp.polyfill("Reflect.defineProperty",function(orig){return orig?orig:function(target,propertyKey,attributes){try{Object.defineProperty(target,propertyKey,attributes);var desc=Object.getOwnPropertyDescriptor(target,propertyKey);return desc?desc.configurable===(attributes.configurable||!1)&&desc.enumerable===(attributes.enumerable||!1)&&("value"in desc?desc.value===attributes.value&&desc.writable===(attributes.writable||!1):desc.get===attributes.get&&desc.set===attributes.set):!1}catch(err){return!1}}},
100
99
  "es6","es5");$jscomp.polyfill("Math.clz32",function(orig){return orig?orig:function(x){x=Number(x)>>>0;if(0===x)return 32;var result=0;0===(x&4294901760)&&(x<<=16,result+=16);0===(x&4278190080)&&(x<<=8,result+=8);0===(x&4026531840)&&(x<<=4,result+=4);0===(x&3221225472)&&(x<<=2,result+=2);0===(x&2147483648)&&result++;return result}},"es6","es3");
101
- (function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=!0;return module.exports}var installedModules={};__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,
102
- name,{enumerable:!0,get:getter})};__webpack_require__.r=function(exports){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});Object.defineProperty(exports,"__esModule",{value:!0})};__webpack_require__.t=function(value,mode){mode&1&&(value=__webpack_require__(value));if(mode&8||mode&4&&"object"===typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);__webpack_require__.r(ns);Object.defineProperty(ns,"default",
103
- {enumerable:!0,value:value});if(mode&2&&"string"!=typeof value)for(var key$jscomp$0 in value)__webpack_require__.d(ns,key$jscomp$0,function(key){return value[key]}.bind(null,key$jscomp$0));return ns};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module["default"]}:function(){return module};__webpack_require__.d(getter,"a",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};
104
- __webpack_require__.p="/core/pdfjs/";return __webpack_require__(__webpack_require__.s=93)})([function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"e",function(){return log});__webpack_require__.d(__webpack_exports__,"f",function(){return warn});__webpack_require__.d(__webpack_exports__,"d",function(){return error});__webpack_require__.d(__webpack_exports__,"a",function(){return assert});__webpack_require__.d(__webpack_exports__,"b",function(){return debugLog});
105
- __webpack_require__.d(__webpack_exports__,"c",function(){return deprecatedWarn});var _state_globalState__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(28),warn=function(type,msg){Object(_state_globalState__WEBPACK_IMPORTED_MODULE_0__.a)("disableLogs")||(msg?console.warn(type+": "+msg):console.warn(type))},deprecatedWarn=function(versionNumber,calledFunction,otherFunctions){var lastFunction=otherFunctions.pop();otherFunctions=otherFunctions.length?otherFunctions.join(", ")+" and "+lastFunction:lastFunction;
106
- warn("'"+calledFunction+"' is deprecated since version "+versionNumber+". Please use "+otherFunctions+" instead.")},log=function(type,msg){Object(_state_globalState__WEBPACK_IMPORTED_MODULE_0__.a)("disableLogs")||(msg?console.log(type+": "+msg):console.log(type))},error=function(msg){if(!Object(_state_globalState__WEBPACK_IMPORTED_MODULE_0__.a)("disableLogs"))throw console.error(msg),Error(msg);},assert=function(equal,msg){Object(_state_globalState__WEBPACK_IMPORTED_MODULE_0__.a)("disableLogs")||
107
- equal||msg&&log(msg)},debugLog=function(type,msg){}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__(50);__webpack_require__(51);__webpack_require__(42);__webpack_require__(79);var _SelectionInfo__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(80);__webpack_require__.d(__webpack_exports__,"b",function(){return _SelectionInfo__WEBPACK_IMPORTED_MODULE_4__.a});var _Line__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(26);__webpack_require__.d(__webpack_exports__,"a",function(){return _Line__WEBPACK_IMPORTED_MODULE_5__.a});
108
- var _Word__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(22);__webpack_require__.d(__webpack_exports__,"e",function(){return _Word__WEBPACK_IMPORTED_MODULE_6__.a});var _SelectionRect__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(18);__webpack_require__.d(__webpack_exports__,"d",function(){return _SelectionRect__WEBPACK_IMPORTED_MODULE_7__.a});var _SelectionPoint__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(4);__webpack_require__.d(__webpack_exports__,"c",function(){return _SelectionPoint__WEBPACK_IMPORTED_MODULE_8__.a})},
109
- function(module$jscomp$0,exports,__webpack_require__){(function(global,module){var __WEBPACK_AMD_DEFINE_RESULT__;(function(){function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2])}return func.apply(thisArg,args)}function arrayAggregator(array,setter,iteratee,accumulator){for(var index=-1,length=null==array?0:array.length;++index<
110
- length;){var value=array[index];setter(accumulator,value,iteratee(value),array)}return accumulator}function arrayEach(array,iteratee){for(var index=-1,length=null==array?0:array.length;++index<length&&!1!==iteratee(array[index],index,array););return array}function arrayEachRight(array,iteratee){for(var length=null==array?0:array.length;length--&&!1!==iteratee(array[length],length,array););return array}function arrayEvery(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<
111
- length;)if(!predicate(array[index],index,array))return!1;return!0}function arrayFilter(array,predicate){for(var index=-1,length=null==array?0:array.length,resIndex=0,result=[];++index<length;){var value=array[index];predicate(value,index,array)&&(result[resIndex++]=value)}return result}function arrayIncludes(array,value){return!(null==array||!array.length)&&-1<baseIndexOf(array,value,0)}function arrayIncludesWith(array,value,comparator){for(var index=-1,length=null==array?0:array.length;++index<length;)if(comparator(value,
112
- array[index]))return!0;return!1}function arrayMap(array,iteratee){for(var index=-1,length=null==array?0:array.length,result=Array(length);++index<length;)result[index]=iteratee(array[index],index,array);return result}function arrayPush(array,values){for(var index=-1,length=values.length,offset=array.length;++index<length;)array[offset+index]=values[index];return array}function arrayReduce(array,iteratee,accumulator,initAccum){var index=-1,length=null==array?0:array.length;for(initAccum&&length&&(accumulator=
113
- array[++index]);++index<length;)accumulator=iteratee(accumulator,array[index],index,array);return accumulator}function arrayReduceRight(array,iteratee,accumulator,initAccum){var length=null==array?0:array.length;for(initAccum&&length&&(accumulator=array[--length]);length--;)accumulator=iteratee(accumulator,array[length],length,array);return accumulator}function arraySome(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<length;)if(predicate(array[index],index,array))return!0;
114
- return!1}function baseFindKey(collection,predicate,eachFunc){var result;eachFunc(collection,function(value,key,collection){if(predicate(value,key,collection))return result=key,!1});return result}function baseFindIndex(array,predicate,fromIndex,fromRight){var length=array.length;for(fromIndex+=fromRight?1:-1;fromRight?fromIndex--:++fromIndex<length;)if(predicate(array[fromIndex],fromIndex,array))return fromIndex;return-1}function baseIndexOf(array,value,fromIndex){if(value===value)a:{--fromIndex;for(var length=
115
- array.length;++fromIndex<length;)if(array[fromIndex]===value){array=fromIndex;break a}array=-1}else array=baseFindIndex(array,baseIsNaN,fromIndex);return array}function baseIndexOfWith(array,value,fromIndex,comparator){--fromIndex;for(var length=array.length;++fromIndex<length;)if(comparator(array[fromIndex],value))return fromIndex;return-1}function baseIsNaN(value){return value!==value}function baseMean(array,iteratee){var length=null==array?0:array.length;return length?baseSum(array,iteratee)/length:
116
- NAN}function baseProperty(key){return function(object){return null==object?undefined:object[key]}}function basePropertyOf(object){return function(key){return null==object?undefined:object[key]}}function baseReduce(collection$jscomp$0,iteratee,accumulator,initAccum,eachFunc){eachFunc(collection$jscomp$0,function(value,index,collection){accumulator=initAccum?(initAccum=!1,value):iteratee(accumulator,value,index,collection)});return accumulator}function baseSortBy(array,comparer){var length=array.length;
117
- for(array.sort(comparer);length--;)array[length]=array[length].value;return array}function baseSum(array,iteratee){for(var result,index=-1,length=array.length;++index<length;){var current=iteratee(array[index]);undefined!==current&&(result=undefined===result?current:result+current)}return result}function baseTimes(n,iteratee){for(var index=-1,result=Array(n);++index<n;)result[index]=iteratee(index);return result}function baseToPairs(object,props){return arrayMap(props,function(key){return[key,object[key]]})}
118
- function baseUnary(func){return function(value){return func(value)}}function baseValues(object,props){return arrayMap(props,function(key){return object[key]})}function cacheHas(cache,key){return cache.has(key)}function charsStartIndex(strSymbols,chrSymbols){for(var index=-1,length=strSymbols.length;++index<length&&-1<baseIndexOf(chrSymbols,strSymbols[index],0););return index}function charsEndIndex(strSymbols,chrSymbols){for(var index=strSymbols.length;index--&&-1<baseIndexOf(chrSymbols,strSymbols[index],
119
- 0););return index}function escapeStringChar(chr){return"\\"+stringEscapes[chr]}function mapToArray(map){var index=-1,result=Array(map.size);map.forEach(function(value,key){result[++index]=[key,value]});return result}function overArg(func,transform){return function(arg){return func(transform(arg))}}function replaceHolders(array,placeholder){for(var index=-1,length=array.length,resIndex=0,result=[];++index<length;){var value=array[index];if(value===placeholder||"__lodash_placeholder__"===value)array[index]=
120
- "__lodash_placeholder__",result[resIndex++]=index}return result}function setToArray(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=value});return result}function setToPairs(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=[value,value]});return result}function stringSize(string){if(reHasUnicode.test(string)){for(var result=reUnicode.lastIndex=0;reUnicode.test(string);)++result;string=result}else string=asciiSize(string);return string}
121
- function stringToArray(string){return reHasUnicode.test(string)?string.match(reUnicode)||[]:string.split("")}var undefined,INFINITY=1/0,NAN=0/0,wrapFlags=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g,reEscapedHtml=/&(?:amp|lt|gt|quot|#39);/g,reUnescapedHtml=/[&<>"']/g,reHasEscapedHtml=
122
- RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source),reEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source),reTrim=/^\s+|\s+$/g,reTrimStart=/^\s+/,reTrimEnd=/\s+$/,reWrapComment=
123
- /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,reWrapDetails=/\{\n\/\* \[wrapped with (.+)\] \*/,reSplitDetails=/,? & /,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,reEscapeChar=/\\(\\)?/g,reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,reFlags=/\w*$/,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsHostCtor=/^\[object .+?Constructor\]$/,reIsOctal=/^0o[0-7]+$/i,reIsUint=/^(?:0|[1-9]\d*)$/,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,reNoMatch=/($^)/,reUnescapedString=/['\n\r\u2028\u2029\\]/g,
124
- reApos=RegExp("['\u2019]","g"),reComboMark=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),reUnicode=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?|[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*",
100
+ (function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=!0;return module.exports}self.webpackChunk=function(chunkIds,moreModules){for(var moduleId in moreModules)modules[moduleId]=moreModules[moduleId];for(;chunkIds.length;)installedChunks[chunkIds.pop()]=1};var installedModules=
101
+ {},installedChunks={0:1};__webpack_require__.e=function(chunkId){var promises=[];promises.push(Promise.resolve().then(function(){installedChunks[chunkId]||importScripts(__webpack_require__.p+""+({1:"pikaday",2:"vendors.pikaday"}[chunkId]||chunkId)+".chunk.js")}));return Promise.all(promises)};__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,
102
+ get:getter})};__webpack_require__.r=function(exports){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});Object.defineProperty(exports,"__esModule",{value:!0})};__webpack_require__.t=function(value,mode){mode&1&&(value=__webpack_require__(value));if(mode&8||mode&4&&"object"===typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);__webpack_require__.r(ns);Object.defineProperty(ns,"default",{enumerable:!0,value:value});
103
+ if(mode&2&&"string"!=typeof value)for(var key$jscomp$0 in value)__webpack_require__.d(ns,key$jscomp$0,function(key){return value[key]}.bind(null,key$jscomp$0));return ns};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module["default"]}:function(){return module};__webpack_require__.d(getter,"a",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__webpack_require__.p="/core/pdfjs/";
104
+ return __webpack_require__(__webpack_require__.s=109)})([function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"e",function(){return log});__webpack_require__.d(__webpack_exports__,"f",function(){return warn});__webpack_require__.d(__webpack_exports__,"d",function(){return error});__webpack_require__.d(__webpack_exports__,"a",function(){return assert});__webpack_require__.d(__webpack_exports__,"b",function(){return debugLog});__webpack_require__.d(__webpack_exports__,
105
+ "c",function(){return deprecatedWarn});var _state_globalState__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(26),warn=function(type,msg){Object(_state_globalState__WEBPACK_IMPORTED_MODULE_0__.a)("disableLogs")||(msg?console.warn(type+": "+msg):console.warn(type))},deprecatedWarn=function(versionNumber,calledFunction,otherFunctions){var lastFunction=otherFunctions.pop();otherFunctions=otherFunctions.length?otherFunctions.join(", ")+" and "+lastFunction:lastFunction;warn("'"+calledFunction+"' is deprecated since version "+
106
+ versionNumber+". Please use "+otherFunctions+" instead.")},log=function(type,msg){Object(_state_globalState__WEBPACK_IMPORTED_MODULE_0__.a)("disableLogs")||(msg?console.log(type+": "+msg):console.log(type))},error=function(msg){if(!Object(_state_globalState__WEBPACK_IMPORTED_MODULE_0__.a)("disableLogs"))throw console.error(msg),Error(msg);},assert=function(equal,msg){Object(_state_globalState__WEBPACK_IMPORTED_MODULE_0__.a)("disableLogs")||equal||msg&&log(msg)},debugLog=function(type,msg){}},function(module,
107
+ __webpack_exports__,__webpack_require__){__webpack_require__(55);__webpack_require__(56);__webpack_require__(46);__webpack_require__(83);var _SelectionInfo__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(84);__webpack_require__.d(__webpack_exports__,"b",function(){return _SelectionInfo__WEBPACK_IMPORTED_MODULE_4__.a});var _Line__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(29);__webpack_require__.d(__webpack_exports__,"a",function(){return _Line__WEBPACK_IMPORTED_MODULE_5__.a});var _Word__WEBPACK_IMPORTED_MODULE_6__=
108
+ __webpack_require__(24);__webpack_require__.d(__webpack_exports__,"e",function(){return _Word__WEBPACK_IMPORTED_MODULE_6__.a});var _SelectionRect__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(20);__webpack_require__.d(__webpack_exports__,"d",function(){return _SelectionRect__WEBPACK_IMPORTED_MODULE_7__.a});var _SelectionPoint__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(5);__webpack_require__.d(__webpack_exports__,"c",function(){return _SelectionPoint__WEBPACK_IMPORTED_MODULE_8__.a})},function(module$jscomp$0,
109
+ exports,__webpack_require__){(function(global,module){var __WEBPACK_AMD_DEFINE_RESULT__;(function(){function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2])}return func.apply(thisArg,args)}function arrayAggregator(array,setter,iteratee,accumulator){for(var index=-1,length=null==array?0:array.length;++index<length;){var value=
110
+ array[index];setter(accumulator,value,iteratee(value),array)}return accumulator}function arrayEach(array,iteratee){for(var index=-1,length=null==array?0:array.length;++index<length&&!1!==iteratee(array[index],index,array););return array}function arrayEachRight(array,iteratee){for(var length=null==array?0:array.length;length--&&!1!==iteratee(array[length],length,array););return array}function arrayEvery(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<length;)if(!predicate(array[index],
111
+ index,array))return!1;return!0}function arrayFilter(array,predicate){for(var index=-1,length=null==array?0:array.length,resIndex=0,result=[];++index<length;){var value=array[index];predicate(value,index,array)&&(result[resIndex++]=value)}return result}function arrayIncludes(array,value){return!(null==array||!array.length)&&-1<baseIndexOf(array,value,0)}function arrayIncludesWith(array,value,comparator){for(var index=-1,length=null==array?0:array.length;++index<length;)if(comparator(value,array[index]))return!0;
112
+ return!1}function arrayMap(array,iteratee){for(var index=-1,length=null==array?0:array.length,result=Array(length);++index<length;)result[index]=iteratee(array[index],index,array);return result}function arrayPush(array,values){for(var index=-1,length=values.length,offset=array.length;++index<length;)array[offset+index]=values[index];return array}function arrayReduce(array,iteratee,accumulator,initAccum){var index=-1,length=null==array?0:array.length;for(initAccum&&length&&(accumulator=array[++index]);++index<
113
+ length;)accumulator=iteratee(accumulator,array[index],index,array);return accumulator}function arrayReduceRight(array,iteratee,accumulator,initAccum){var length=null==array?0:array.length;for(initAccum&&length&&(accumulator=array[--length]);length--;)accumulator=iteratee(accumulator,array[length],length,array);return accumulator}function arraySome(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<length;)if(predicate(array[index],index,array))return!0;return!1}function baseFindKey(collection,
114
+ predicate,eachFunc){var result;eachFunc(collection,function(value,key,collection){if(predicate(value,key,collection))return result=key,!1});return result}function baseFindIndex(array,predicate,fromIndex,fromRight){var length=array.length;for(fromIndex+=fromRight?1:-1;fromRight?fromIndex--:++fromIndex<length;)if(predicate(array[fromIndex],fromIndex,array))return fromIndex;return-1}function baseIndexOf(array,value,fromIndex){if(value===value)a:{--fromIndex;for(var length=array.length;++fromIndex<length;)if(array[fromIndex]===
115
+ value){array=fromIndex;break a}array=-1}else array=baseFindIndex(array,baseIsNaN,fromIndex);return array}function baseIndexOfWith(array,value,fromIndex,comparator){--fromIndex;for(var length=array.length;++fromIndex<length;)if(comparator(array[fromIndex],value))return fromIndex;return-1}function baseIsNaN(value){return value!==value}function baseMean(array,iteratee){var length=null==array?0:array.length;return length?baseSum(array,iteratee)/length:NAN}function baseProperty(key){return function(object){return null==
116
+ object?undefined:object[key]}}function basePropertyOf(object){return function(key){return null==object?undefined:object[key]}}function baseReduce(collection$jscomp$0,iteratee,accumulator,initAccum,eachFunc){eachFunc(collection$jscomp$0,function(value,index,collection){accumulator=initAccum?(initAccum=!1,value):iteratee(accumulator,value,index,collection)});return accumulator}function baseSortBy(array,comparer){var length=array.length;for(array.sort(comparer);length--;)array[length]=array[length].value;
117
+ return array}function baseSum(array,iteratee){for(var result,index=-1,length=array.length;++index<length;){var current=iteratee(array[index]);undefined!==current&&(result=undefined===result?current:result+current)}return result}function baseTimes(n,iteratee){for(var index=-1,result=Array(n);++index<n;)result[index]=iteratee(index);return result}function baseToPairs(object,props){return arrayMap(props,function(key){return[key,object[key]]})}function baseUnary(func){return function(value){return func(value)}}
118
+ function baseValues(object,props){return arrayMap(props,function(key){return object[key]})}function cacheHas(cache,key){return cache.has(key)}function charsStartIndex(strSymbols,chrSymbols){for(var index=-1,length=strSymbols.length;++index<length&&-1<baseIndexOf(chrSymbols,strSymbols[index],0););return index}function charsEndIndex(strSymbols,chrSymbols){for(var index=strSymbols.length;index--&&-1<baseIndexOf(chrSymbols,strSymbols[index],0););return index}function escapeStringChar(chr){return"\\"+
119
+ stringEscapes[chr]}function mapToArray(map){var index=-1,result=Array(map.size);map.forEach(function(value,key){result[++index]=[key,value]});return result}function overArg(func,transform){return function(arg){return func(transform(arg))}}function replaceHolders(array,placeholder){for(var index=-1,length=array.length,resIndex=0,result=[];++index<length;){var value=array[index];if(value===placeholder||"__lodash_placeholder__"===value)array[index]="__lodash_placeholder__",result[resIndex++]=index}return result}
120
+ function setToArray(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=value});return result}function setToPairs(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=[value,value]});return result}function stringSize(string){if(reHasUnicode.test(string)){for(var result=reUnicode.lastIndex=0;reUnicode.test(string);)++result;string=result}else string=asciiSize(string);return string}function stringToArray(string){return reHasUnicode.test(string)?
121
+ string.match(reUnicode)||[]:string.split("")}var undefined,INFINITY=1/0,NAN=0/0,wrapFlags=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g,reEscapedHtml=/&(?:amp|lt|gt|quot|#39);/g,reUnescapedHtml=/[&<>"']/g,reHasEscapedHtml=RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source),
122
+ reEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source),reTrim=/^\s+|\s+$/g,reTrimStart=/^\s+/,reTrimEnd=/\s+$/,reWrapComment=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,reWrapDetails=/\{\n\/\* \[wrapped with (.+)\] \*/,
123
+ reSplitDetails=/,? & /,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,reEscapeChar=/\\(\\)?/g,reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,reFlags=/\w*$/,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsHostCtor=/^\[object .+?Constructor\]$/,reIsOctal=/^0o[0-7]+$/i,reIsUint=/^(?:0|[1-9]\d*)$/,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,reNoMatch=/($^)/,reUnescapedString=/['\n\r\u2028\u2029\\]/g,reApos=RegExp("['\u2019]","g"),reComboMark=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",
124
+ "g"),reUnicode=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?|[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*",
125
125
  "g"),reUnicodeWord=RegExp("[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde]|$)|(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])|$)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+|(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*",
126
126
  "g"),reHasUnicode=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,contextProps="Array Buffer DataView Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Map Math Object Promise RegExp Set String Symbol TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap _ clearTimeout isFinite parseInt setTimeout".split(" "),templateCounter=
127
127
  -1,typedArrayTags={};typedArrayTags["[object Float32Array]"]=typedArrayTags["[object Float64Array]"]=typedArrayTags["[object Int8Array]"]=typedArrayTags["[object Int16Array]"]=typedArrayTags["[object Int32Array]"]=typedArrayTags["[object Uint8Array]"]=typedArrayTags["[object Uint8ClampedArray]"]=typedArrayTags["[object Uint16Array]"]=typedArrayTags["[object Uint32Array]"]=!0;typedArrayTags["[object Arguments]"]=typedArrayTags["[object Array]"]=typedArrayTags["[object ArrayBuffer]"]=typedArrayTags["[object Boolean]"]=
@@ -363,30 +363,40 @@ isHybrid=!!this.__actions__.length;iteratee=retUnwrapped&&!chainAll;isLazy=isLaz
363
363
  value$jscomp$0})});arrayEach("pop push shift sort splice unshift".split(" "),function(methodName){var func=arrayProto[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash.prototype[methodName]=function(){var args=arguments;if(retUnwrapped&&!this.__chain__){var value$jscomp$0=this.value();return func.apply(isArray(value$jscomp$0)?value$jscomp$0:[],args)}return this[chainName](function(value){return func.apply(isArray(value)?
364
364
  value:[],args)})}});baseForOwn(LazyWrapper.prototype,function(func,methodName){if(func=lodash[methodName]){var key=func.name+"";hasOwnProperty.call(realNames,key)||(realNames[key]=[]);realNames[key].push({name:methodName,func:func})}});realNames[createHybrid(undefined,2).name]=[{name:"wrapper",func:undefined}];LazyWrapper.prototype.clone=function(){var result=new LazyWrapper(this.__wrapped__);result.__actions__=copyArray(this.__actions__);result.__dir__=this.__dir__;result.__filtered__=this.__filtered__;
365
365
  result.__iteratees__=copyArray(this.__iteratees__);result.__takeCount__=this.__takeCount__;result.__views__=copyArray(this.__views__);return result};LazyWrapper.prototype.reverse=function(){if(this.__filtered__){var result=new LazyWrapper(this);result.__dir__=-1;result.__filtered__=!0}else result=this.clone(),result.__dir__*=-1;return result};LazyWrapper.prototype.value=function(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray(array),isRight=0>dir,arrLength=isArr?array.length:0;
366
- var JSCompiler_object_inline_start_1330=0;for(var end=arrLength,transforms=this.__views__,index=-1,length=transforms.length;++index<length;){var data=transforms[index],size=data.size;switch(data.type){case "drop":JSCompiler_object_inline_start_1330+=size;break;case "dropRight":end-=size;break;case "take":end=nativeMin(end,JSCompiler_object_inline_start_1330+size);break;case "takeRight":JSCompiler_object_inline_start_1330=nativeMax(JSCompiler_object_inline_start_1330,end-size)}}transforms=end;end=
367
- transforms-JSCompiler_object_inline_start_1330;JSCompiler_object_inline_start_1330=isRight?transforms:JSCompiler_object_inline_start_1330-1;transforms=this.__iteratees__;index=transforms.length;length=0;data=nativeMin(end,this.__takeCount__);if(!isArr||!isRight&&arrLength==end&&data==end)return baseWrapperValue(array,this.__actions__);isArr=[];a:for(;end--&&length<data;){JSCompiler_object_inline_start_1330+=dir;isRight=-1;for(arrLength=array[JSCompiler_object_inline_start_1330];++isRight<index;){var data$jscomp$0=
366
+ var JSCompiler_object_inline_start_1553=0;for(var end=arrLength,transforms=this.__views__,index=-1,length=transforms.length;++index<length;){var data=transforms[index],size=data.size;switch(data.type){case "drop":JSCompiler_object_inline_start_1553+=size;break;case "dropRight":end-=size;break;case "take":end=nativeMin(end,JSCompiler_object_inline_start_1553+size);break;case "takeRight":JSCompiler_object_inline_start_1553=nativeMax(JSCompiler_object_inline_start_1553,end-size)}}transforms=end;end=
367
+ transforms-JSCompiler_object_inline_start_1553;JSCompiler_object_inline_start_1553=isRight?transforms:JSCompiler_object_inline_start_1553-1;transforms=this.__iteratees__;index=transforms.length;length=0;data=nativeMin(end,this.__takeCount__);if(!isArr||!isRight&&arrLength==end&&data==end)return baseWrapperValue(array,this.__actions__);isArr=[];a:for(;end--&&length<data;){JSCompiler_object_inline_start_1553+=dir;isRight=-1;for(arrLength=array[JSCompiler_object_inline_start_1553];++isRight<index;){var data$jscomp$0=
368
368
  transforms[isRight];size=data$jscomp$0.iteratee;data$jscomp$0=data$jscomp$0.type;size=size(arrLength);if(2==data$jscomp$0)arrLength=size;else if(!size)if(1==data$jscomp$0)continue a;else break a}isArr[length++]=arrLength}return isArr};lodash.prototype.at=wrapperAt;lodash.prototype.chain=function(){return chain(this)};lodash.prototype.commit=function(){return new LodashWrapper(this.value(),this.__chain__)};lodash.prototype.next=function(){undefined===this.__values__&&(this.__values__=toArray(this.value()));
369
369
  var done=this.__index__>=this.__values__.length,value=done?undefined:this.__values__[this.__index__++];return{done:done,value:value}};lodash.prototype.plant=function(value){for(var result,parent=this;parent instanceof baseLodash;){var clone=wrapperClone(parent);clone.__index__=0;clone.__values__=undefined;result?previous.__wrapped__=clone:result=clone;var previous=clone;parent=parent.__wrapped__}previous.__wrapped__=value;return result};lodash.prototype.reverse=function(){var value=this.__wrapped__;
370
370
  return value instanceof LazyWrapper?(this.__actions__.length&&(value=new LazyWrapper(this)),value=value.reverse(),value.__actions__.push({func:thru,args:[reverse],thisArg:undefined}),new LodashWrapper(value,this.__chain__)):this.thru(reverse)};lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=function(){return baseWrapperValue(this.__wrapped__,this.__actions__)};lodash.prototype.first=lodash.prototype.head;symIterator&&(lodash.prototype[symIterator]=wrapperToIterator);return lodash}();
371
- root._=_;!(__WEBPACK_AMD_DEFINE_RESULT__=_,undefined!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}).call(this)}).call(this,__webpack_require__(11),__webpack_require__(43)(module$jscomp$0))},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"d",function(){return peekArray});__webpack_require__.d(__webpack_exports__,"a",function(){return addRangeToArray});__webpack_require__.d(__webpack_exports__,"b",function(){return clearArray});
372
- __webpack_require__.d(__webpack_exports__,"c",function(){return insertIntoArray});__webpack_require__(5);var peekArray=function(arr){return arr.length?arr[arr.length-1]:null},addRangeToArray=function(arr,itemsToAdd){arr.push.apply(arr,itemsToAdd)},clearArray=function(arr){arr.length=0},insertIntoArray=function(arr,index,item){arr.splice(index,0,item)}},function(module,__webpack_exports__,__webpack_require__){module=function(){function SelectionPoint(x,y){void 0===x&&(x=0);void 0===y&&(y=0);this.x=
373
- x;this.y=y}SelectionPoint.equal=function(p1,p2){return p1.x===p2.x&&p1.y===p2.y};SelectionPoint.notEqual=function(p1,p2){return p1!==p2};SelectionPoint.divide=function(p,f){var pt=new SelectionPoint;f&&(pt.x=p.x/f,pt.y=p.y/f);return pt};SelectionPoint.multiply=function(p,f){var pt=new SelectionPoint;pt.init(p.x*f,p.y*f);return pt};SelectionPoint.minus=function(p1,p2){var pt=new SelectionPoint;pt.init(p1.x-p2.x,p1.y-p2.y);return pt};SelectionPoint.plus=function(p1,p2){var pt=new SelectionPoint;pt.init(p1.x+
374
- p2.x,p1.y+p2.y);return pt};SelectionPoint.distance=function(p1,p2){var w=p1.x-p2.x;p1=p1.y-p2.y;return Math.sqrt(w*w+p1*p1)};SelectionPoint.prototype.init=function(px,py){this.x=px;this.y=py};SelectionPoint.prototype.initPoint=function(pt){this.x=pt.x;this.y=pt.y};SelectionPoint.prototype.add=function(p){this.x+=p.x;this.y+=p.y};SelectionPoint.prototype.sub=function(p){this.x-=p.x;this.y-=p.y};SelectionPoint.prototype.mul=function(f){this.x*=f;this.y*=f};SelectionPoint.prototype.div=function(f){f&&
375
- (this.x/=f,this.y/=f)};SelectionPoint.prototype.normalize=function(){var len=Math.sqrt(this.x*this.x+this.y*this.y);return len?(this.x/=len,this.y/=len,!0):!1};SelectionPoint.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};SelectionPoint.prototype.sqrLength=function(){return this.x*this.x+this.y*this.y};SelectionPoint.prototype.dot=function(p){return this.x*p.x+this.y*p.y};SelectionPoint.prototype.proj=function(dir){var dot=this.x*dir.x+this.y*dir.y;this.x=dot*dir.x;this.y=
376
- dot*dir.y};return SelectionPoint}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){function __awaiter(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new (P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator["throw"](value))}catch(e){reject(e)}}function step(result){result.done?
377
- resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})}function __generator(thisArg,body){function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");for(;_;)try{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;if(y=0,t)op=[op[0]&2,t.value];switch(op[0]){case 0:case 1:t=
378
- op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++;y=op[1];op=[0];continue;case 7:op=_.ops.pop();_.trys.pop();continue;default:if(!(t=_.trys,t=0<t.length&&t[t.length-1])&&(6===op[0]||2===op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]<t[3]))_.label=op[1];else if(6===op[0]&&_.label<t[1])_.label=t[1],t=op;else if(t&&_.label<t[2])_.label=t[2],_.ops.push(op);else{t[2]&&_.ops.pop();_.trys.pop();continue}}op=body.call(thisArg,_)}catch(e){op=[6,e],y=0}finally{f=t=0}if(op[0]&
379
- 5)throw op[1];return{value:op[0]?op[1]:void 0,done:!0}}var _={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},f,y,t,g;return g={next:verb(0),"throw":verb(1),"return":verb(2)},"function"===typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g}function __spreadArrays(){for(var s=0,i=0,il=arguments.length;i<il;i++)s+=arguments[i].length;s=Array(s);var k=0;for(i=0;i<il;i++)for(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++)s[k]=a[j];return s}__webpack_require__.d(__webpack_exports__,
380
- "a",function(){return __assign});__webpack_require__.d(__webpack_exports__,"b",function(){return __awaiter});__webpack_require__.d(__webpack_exports__,"c",function(){return __generator});__webpack_require__.d(__webpack_exports__,"d",function(){return __spreadArrays});var __assign=function(){__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p])}return t};return __assign.apply(this,arguments)}},
381
- function(module,__webpack_exports__,__webpack_require__){module=function(){function SearchMode(){this.e_case_sensitive=1;this.e_whole_word=2;this.e_search_up=4;this.e_page_stop=8;this.e_highlight=16;this.e_ambient_string=32;this.e_regex=64;this.e_wild_card=128}SearchMode.CASE_SENSITIVE=1;SearchMode.WHOLE_WORD=2;SearchMode.SEARCH_UP=4;SearchMode.PAGE_STOP=8;SearchMode.HIGHLIGHT=16;SearchMode.AMBIENT_STRING=32;SearchMode.REGEX=64;SearchMode.WILD_CARD=128;return SearchMode}();__webpack_exports__.a=module},
382
- function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return correctPrecision});var correctPrecision=function(input,precision){void 0===precision&&(precision=1E6);return Math.round((input+Number.EPSILON)*precision)/precision}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return Analytics});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5),uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,
371
+ root._=_;!(__WEBPACK_AMD_DEFINE_RESULT__=_,undefined!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}).call(this)}).call(this,__webpack_require__(15),__webpack_require__(47)(module$jscomp$0))},function(module,__webpack_exports__,__webpack_require__){function __awaiter(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new (P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}
372
+ function rejected(value){try{step(generator["throw"](value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})}function __generator(thisArg,body){function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");for(;_;)try{if(f=1,y&&(t=op[0]&2?y["return"]:op[0]?y["throw"]||((t=y["return"])&&t.call(y),
373
+ 0):y.next)&&!(t=t.call(y,op[1])).done)return t;if(y=0,t)op=[op[0]&2,t.value];switch(op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++;y=op[1];op=[0];continue;case 7:op=_.ops.pop();_.trys.pop();continue;default:if(!(t=_.trys,t=0<t.length&&t[t.length-1])&&(6===op[0]||2===op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]<t[3]))_.label=op[1];else if(6===op[0]&&_.label<t[1])_.label=t[1],t=op;else if(t&&_.label<t[2])_.label=t[2],_.ops.push(op);else{t[2]&&
374
+ _.ops.pop();_.trys.pop();continue}}op=body.call(thisArg,_)}catch(e){op=[6,e],y=0}finally{f=t=0}if(op[0]&5)throw op[1];return{value:op[0]?op[1]:void 0,done:!0}}var _={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},f,y,t,g;return g={next:verb(0),"throw":verb(1),"return":verb(2)},"function"===typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g}function __spreadArrays(){for(var s=0,i=0,il=arguments.length;i<il;i++)s+=arguments[i].length;s=Array(s);var k=0;for(i=0;i<
375
+ il;i++)for(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++)s[k]=a[j];return s}__webpack_require__.d(__webpack_exports__,"a",function(){return __assign});__webpack_require__.d(__webpack_exports__,"b",function(){return __awaiter});__webpack_require__.d(__webpack_exports__,"c",function(){return __generator});__webpack_require__.d(__webpack_exports__,"d",function(){return __spreadArrays});var __assign=function(){__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];
376
+ for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p])}return t};return __assign.apply(this,arguments)}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"d",function(){return peekArray});__webpack_require__.d(__webpack_exports__,"a",function(){return addRangeToArray});__webpack_require__.d(__webpack_exports__,"b",function(){return clearArray});__webpack_require__.d(__webpack_exports__,"c",function(){return insertIntoArray});__webpack_require__(3);
377
+ var peekArray=function(arr){return arr.length?arr[arr.length-1]:null},addRangeToArray=function(arr,itemsToAdd){arr.push.apply(arr,itemsToAdd)},clearArray=function(arr){arr.length=0},insertIntoArray=function(arr,index,item){arr.splice(index,0,item)}},function(module,__webpack_exports__,__webpack_require__){module=function(){function SelectionPoint(x,y){void 0===x&&(x=0);void 0===y&&(y=0);this.x=x;this.y=y}SelectionPoint.equal=function(p1,p2){return p1.x===p2.x&&p1.y===p2.y};SelectionPoint.notEqual=
378
+ function(p1,p2){return p1!==p2};SelectionPoint.divide=function(p,f){var pt=new SelectionPoint;f&&(pt.x=p.x/f,pt.y=p.y/f);return pt};SelectionPoint.multiply=function(p,f){var pt=new SelectionPoint;pt.init(p.x*f,p.y*f);return pt};SelectionPoint.minus=function(p1,p2){var pt=new SelectionPoint;pt.init(p1.x-p2.x,p1.y-p2.y);return pt};SelectionPoint.plus=function(p1,p2){var pt=new SelectionPoint;pt.init(p1.x+p2.x,p1.y+p2.y);return pt};SelectionPoint.distance=function(p1,p2){var w=p1.x-p2.x;p1=p1.y-p2.y;
379
+ return Math.sqrt(w*w+p1*p1)};SelectionPoint.prototype.init=function(px,py){this.x=px;this.y=py};SelectionPoint.prototype.initPoint=function(pt){this.x=pt.x;this.y=pt.y};SelectionPoint.prototype.add=function(p){this.x+=p.x;this.y+=p.y};SelectionPoint.prototype.sub=function(p){this.x-=p.x;this.y-=p.y};SelectionPoint.prototype.mul=function(f){this.x*=f;this.y*=f};SelectionPoint.prototype.div=function(f){f&&(this.x/=f,this.y/=f)};SelectionPoint.prototype.normalize=function(){var len=Math.sqrt(this.x*
380
+ this.x+this.y*this.y);return len?(this.x/=len,this.y/=len,!0):!1};SelectionPoint.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};SelectionPoint.prototype.sqrLength=function(){return this.x*this.x+this.y*this.y};SelectionPoint.prototype.dot=function(p){return this.x*p.x+this.y*p.y};SelectionPoint.prototype.proj=function(dir){var dot=this.x*dir.x+this.y*dir.y;this.x=dot*dir.x;this.y=dot*dir.y};return SelectionPoint}();__webpack_exports__.a=module},function(module,__webpack_exports__,
381
+ __webpack_require__){__webpack_require__(18);var _Point__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(17);__webpack_require__.d(__webpack_exports__,"a",function(){return _Point__WEBPACK_IMPORTED_MODULE_1__.a});var _Rect__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(51);__webpack_require__.d(__webpack_exports__,"b",function(){return _Rect__WEBPACK_IMPORTED_MODULE_2__.a});__webpack_require__(52);__webpack_require__(79)},function(module,__webpack_exports__,__webpack_require__){module=function(){function SearchMode(){this.e_case_sensitive=
382
+ 1;this.e_whole_word=2;this.e_search_up=4;this.e_page_stop=8;this.e_highlight=16;this.e_ambient_string=32;this.e_regex=64;this.e_wild_card=128}SearchMode.CASE_SENSITIVE=1;SearchMode.WHOLE_WORD=2;SearchMode.SEARCH_UP=4;SearchMode.PAGE_STOP=8;SearchMode.HIGHLIGHT=16;SearchMode.AMBIENT_STRING=32;SearchMode.REGEX=64;SearchMode.WILD_CARD=128;return SearchMode}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"e",function(){return ie});
383
+ __webpack_require__.d(__webpack_exports__,"g",function(){return isEdge});__webpack_require__.d(__webpack_exports__,"c",function(){return edgeVersion});__webpack_require__.d(__webpack_exports__,"h",function(){return isFirefox});__webpack_require__.d(__webpack_exports__,"d",function(){return firefoxVersion});__webpack_require__.d(__webpack_exports__,"f",function(){return isChrome});__webpack_require__.d(__webpack_exports__,"a",function(){return chromeVersion});__webpack_require__.d(__webpack_exports__,
384
+ "i",function(){return isMobileDevice});__webpack_require__.d(__webpack_exports__,"b",function(){return disableFormCharacterProcessing});__webpack_require__(0);var exports="undefined"===typeof window?self:window,ie=function(){var ua=navigator.userAgent.toLowerCase();return(ua=/(msie) ([\w.]+)/.exec(ua)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(ua))?parseInt(ua[2],10):ua}(),isChrome=function(){var opera=exports.navigator.userAgent.match(/OPR/),maxthon=exports.navigator.userAgent.match(/Maxthon/),edge=exports.navigator.userAgent.match(/Edge/);
385
+ return exports.navigator.userAgent.match(/Chrome\/(.*?) /)&&!opera&&!maxthon&&!edge}(),chromeVersion=function(){if(!isChrome)return null;var match=exports.navigator.userAgent.match(/Chrome\/([0-9]+)\./);return match?parseInt(match[1],10):match}(),isEdge=!!navigator.userAgent.match(/Edge/i)||navigator.userAgent.match(/Edg\/(.*?)/)&&exports.navigator.userAgent.match(/Chrome\/(.*?) /),edgeVersion=function(){if(!isEdge)return null;var match=exports.navigator.userAgent.match(/Edg\/([0-9]+)\./);return match?
386
+ parseInt(match[1],10):match}();module=/iPad|iPhone|iPod/.test(exports.navigator.platform)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;(function(){var match=exports.navigator.userAgent.match(/.*\/([0-9\.]+)\s(Safari|Mobile).*/i);return match?parseFloat(match[1]):match})();/^((?!chrome|android).)*safari/i.test(exports.navigator.userAgent)||/^((?!chrome|android).)*$/.test(exports.navigator.userAgent);/Android/i.test(navigator.userAgent);var isFirefox=exports.navigator.userAgent.match(/Firefox/),
387
+ firefoxVersion=function(){if(!isFirefox)return null;var match=exports.navigator.userAgent.match(/Firefox\/([0-9]+)\./);return match?parseInt(match[1],10):match}(),isMobileDevice=!(ie||!/Android|webOS|Touch|IEMobile|Silk/i.test(navigator.userAgent)&&!module);navigator.userAgent.match(/(iPad|iPhone|iPod)/i);var disableFormCharacterProcessing=-1<exports.navigator.userAgent.indexOf("Android");/Mac OS X 10_13_6.*\(KHTML, like Gecko\)$/.test(exports.navigator.userAgent);exports.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)&&
388
+ parseInt(exports.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)[3]);-1<exports.navigator.userAgent.indexOf("Edge/16")||exports.navigator.userAgent.indexOf("MSAppHost")},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"b",function(){return PageRotation});__webpack_require__.d(__webpack_exports__,"a",function(){return AnnotationAppearanceStates});__webpack_require__.d(__webpack_exports__,"c",function(){return SnapModes});__webpack_require__.d(__webpack_exports__,
389
+ "d",function(){return arcDrawModes});__webpack_require__(86);var PageRotation;(function(PageRotation){PageRotation[PageRotation.E_0=0]="E_0";PageRotation[PageRotation.E_90=1]="E_90";PageRotation[PageRotation.E_180=2]="E_180";PageRotation[PageRotation.E_270=3]="E_270";PageRotation[PageRotation.e_0=0]="e_0";PageRotation[PageRotation.e_90=1]="e_90";PageRotation[PageRotation.e_180=2]="e_180";PageRotation[PageRotation.e_270=3]="e_270"})(PageRotation||(PageRotation={}));var REVIEWSTATES;(function(REVIEWSTATES){REVIEWSTATES.ACCEPTED=
390
+ "Accepted";REVIEWSTATES.REJECTED="Rejected";REVIEWSTATES.CANCELLED="Cancelled";REVIEWSTATES.COMPLETED="Completed";REVIEWSTATES.NONE="None"})(REVIEWSTATES||(REVIEWSTATES={}));var MARKEDSTATES;(function(MARKEDSTATES){MARKEDSTATES.MARKED="Marked";MARKEDSTATES.UNMARKED="Unmarked"})(MARKEDSTATES||(MARKEDSTATES={}));var STATEMODEL;(function(STATEMODEL){STATEMODEL.MARKED="Marked";STATEMODEL.REVIEW="Review"})(STATEMODEL||(STATEMODEL={}));var AnnotationAppearanceStates;(function(AnnotationAppearanceStates){AnnotationAppearanceStates.NORMAL=
391
+ "Normal";AnnotationAppearanceStates.ROLLOVER="Rollover"})(AnnotationAppearanceStates||(AnnotationAppearanceStates={}));var FontStyles;(function(FontStyles){FontStyles.BOLD="BOLD";FontStyles.ITALIC="ITALIC";FontStyles.UNDERLINE="UNDERLINE"})(FontStyles||(FontStyles={}));var SnapModes={DEFAULT:14,POINT_ON_LINE:1,LINE_MID_POINT:2,LINE_INTERSECTION:4,PATH_ENDPOINT:8,e_DefaultSnapMode:14,e_PointOnLine:1,e_LineMidpoint:2,e_LineIntersection:4,e_PathEndpoint:8},arcDrawModes={RANDOM_ARCS:"randomArcs",EQUAL_ARCS:"equalArcs"}},
392
+ function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return correctPrecision});var correctPrecision=function(input,precision){void 0===precision&&(precision=1E6);return Math.round((input+Number.EPSILON)*precision)/precision}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return Analytics});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3),uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,
383
393
  function(c){var r=16*Math.random()|0;return("x"==c?r:r&3|8).toString(16)})},Analytics=function(){function Analytics(queueTimer){var _this=this;this.eventStore=[];this.QUEUE_TIMER=queueTimer||5E3;this.key="";this.isSuppressed=!1;this.sessionId=uuidv4();this.intervalID=setInterval(function(){_this.sendRequest()},this.QUEUE_TIMER)}Analytics.prototype.suppress=function(){this.isSuppressed=!0};Analytics.prototype.sendRequest=function(){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.b)(this,void 0,void 0,
384
394
  function(){var eventBuffer,response;return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.c)(this,function(_a){switch(_a.label){case 0:if(!(0<this.eventStore.length))return[3,2];eventBuffer=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.d)(this.eventStore);this.eventStore=[];return[4,this.postEvents(eventBuffer)];case 1:response=_a.sent(),200!==response.status&&(this.eventStore=this.eventStore.concat(eventBuffer)),_a.label=2;case 2:return[2]}})})};Analytics.prototype.postEvents=function(events){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.b)(this,
385
395
  void 0,void 0,function(){var response;return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.c)(this,function(_a){switch(_a.label){case 0:return _a.trys.push([0,2,,3]),[4,fetch("https://pi.pdfjs.express/events",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({licenseKey:this.key,sessionId:this.sessionId,events:events},this.viewOnly&&{productVersion:0}))})];case 1:return response=_a.sent(),[2,response];case 2:return _a.sent(),[2,
386
396
  {status:400}];case 3:return[2]}})})};Analytics.prototype.startSession=function(key,viewOnly){void 0===viewOnly&&(viewOnly=!1);this.isSuppressed||(this.key=key,this.viewOnly=viewOnly,key=window.sessionStorage,(viewOnly=key.getItem("pdfjs-session"))?this.sessionId=viewOnly:key.setItem("pdfjs-session",this.sessionId))};Analytics.prototype.pushEvent=function(event){this.isSuppressed||this.eventStore.push(event)};Analytics.prototype.cancelRequests=function(){clearInterval(this.intervalID)};Analytics.Actions=
387
397
  {annotationCreated:function(annotType){return{action:"create",type:"annotation",data:{subType:annotType}}},stampAnnotationCreated:function(){return{action:"create",type:"annotation",data:{subType:"Stamp"}}},expressLoaded:function(version){return{action:"load",type:"viewer",data:{subType:version}}},documentLoaded:function(_a){var _b,pageCount=_a.pageCount,successfulLoad=_a.successfulLoad;_a=_a.fileName;return{action:"load",type:"document",data:{subType:_a?null===(_b=_a.match(/\.[0-9a-z]+$/i))||void 0===
388
- _b?void 0:_b[0]:null,pageCount:pageCount,value:successfulLoad?1:0}}},formFieldFilled:function(fieldType){return{action:"fill",type:"field",data:{subType:fieldType}}},searchQuery:function(searchLocation,amountOfResults){return{action:"search",type:"searchQuery",data:{subType:searchLocation,value:amountOfResults}}}};return Analytics}();__webpack_exports__.b=new Analytics},function(module,__webpack_exports__,__webpack_require__){var _selectionInfo_constants__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(10),
389
- _Matrix2D__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(12),_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4);module=function(){function Quad(){this.y4=this.x4=this.y3=this.x3=this.y2=this.x2=this.y1=this.x1=0}Quad._merge=function(des_q,src_q,src_qn,check,tra_thresh){if(check&&1!==src_qn)return!1;if(!src_qn)return!0;var d1=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;d1.init(0,0);var d2=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;
398
+ _b?void 0:_b[0]:null,pageCount:pageCount,value:successfulLoad?1:0}}},formFieldFilled:function(fieldType){return{action:"fill",type:"field",data:{subType:fieldType}}},searchQuery:function(searchLocation,amountOfResults){return{action:"search",type:"searchQuery",data:{subType:searchLocation,value:amountOfResults}}}};return Analytics}();__webpack_exports__.b=new Analytics},function(module,__webpack_exports__,__webpack_require__){var _selectionInfo_constants__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(14),
399
+ _Matrix2D__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(13),_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5);module=function(){function Quad(){this.y4=this.x4=this.y3=this.x3=this.y2=this.x2=this.y1=this.x1=0}Quad._merge=function(des_q,src_q,src_qn,check,tra_thresh){if(check&&1!==src_qn)return!1;if(!src_qn)return!0;var d1=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;d1.init(0,0);var d2=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;
390
400
  d2.init(0,0);var avg_x=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;avg_x.init(0,0);var avg_y=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;avg_y.init(0,0);for(var i=0;4>i;++i){Quad.getSideVec(d1,des_q,i);if(!d1.normalize()&&check)return!1;i?2===i?avg_x=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.minus(avg_x,d1):1===i?avg_y=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.plus(avg_y,d1):3===i&&(avg_y=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.minus(avg_y,
391
401
  d1)):avg_x=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.plus(avg_x,d1);for(var _src_q=Array(8),j=0;j<src_qn;++j){for(var k=0;8>k;++k)_src_q[k]=src_q[8*j+k];Quad.getSideVec(d2,_src_q,i);if(!d2.normalize()&&check)return!1;i?2===i?avg_x=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.minus(avg_x,d2):1===i?avg_y=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.plus(avg_y,d2):3===i&&(avg_y=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.minus(avg_y,
392
402
  d2)):avg_x=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.plus(avg_x,d2)}if(check&&Math.abs(d1.dot(d2))<Quad.cos_thresh)return!1}avg_x=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.divide(avg_x,1+src_qn);avg_y=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.divide(avg_y,1+src_qn);if(!avg_x.normalize()&&check||!avg_y.normalize()&&check||check&&!Quad.mergeable(des_q,src_q,avg_x,avg_y,tra_thresh,tra_thresh/10))return!1;Quad.inflate(des_q,src_q,src_qn,avg_x,avg_y);
@@ -398,16 +408,15 @@ i],quad[2*i+1]);sheared?(this_x=v.dot(avx_),this_y=v.dot(avy_)):(this_x=v.x,this
398
408
  this_x,o_min_x=vv.x);max_x<this_x&&(max_x=this_x);min_y>this_y&&(min_y=this_y,o_min_y=vv.y);max_y<this_y&&(max_y=this_y)}}sqs=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;sqs.init(o_min_x,o_min_y);avx_=sqs.dot(avx);sqn=sqs.dot(avy);avx_=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.multiply(avx,M-avx_);sqn=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.multiply(avy,min_y-sqn);sqs.x+=avx_.x+sqn.x;sqs.y+=avx_.y+sqn.y;sheared?(sheared=avx.x,sqs=avy.x,
399
409
  avx=avx.y,avy=avy.y,quad[0]=sheared*M+sqs*min_y,quad[1]=avx*M+avy*min_y,quad[2]=sheared*max_x+sqs*min_y,quad[3]=avx*max_x+avy*min_y,quad[4]=sheared*max_x+sqs*max_y,quad[5]=avx*max_x+avy*max_y,quad[6]=sheared*M+sqs*max_y,quad[7]=avx*M+avy*max_y):(quad[0]=M,quad[1]=min_y,quad[2]=max_x,quad[3]=min_y,quad[4]=max_x,quad[5]=max_y,quad[6]=M,quad[7]=max_y)};Quad.prototype._init=function(_x1,_y1,_x2,_y2,_x3,_y3,_x4,_y4){this.x1=_x1;this.y1=_y1;this.x2=_x2;this.y2=_y2;this.x3=_x3;this.y3=_y3;this.x4=_x4;this.y4=
400
410
  _y4};Quad.prototype._setCoordinates=function(_x1,_y1,_x2,_y2,_x3,_y3,_x4,_y4){this.x1=_x1;this.y1=_y1;this.x2=_x2;this.y2=_y2;this.x3=_x3;this.y3=_y3;this.x4=_x4;this.y4=_y4};Quad.prototype._setQuad=function(quad){8===quad.length&&(this.x1=quad[0],this.y1=quad[1],this.x2=quad[2],this.y2=quad[3],this.x3=quad[4],this.y3=quad[5],this.x4=quad[6],this.y4=quad[7])};Quad.prototype.getPoints=function(){return{x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2,x3:this.x3,y3:this.y3,x4:this.x4,y4:this.y4}};Quad.prototype.getNormalizedPoints=
401
- function(){var quad=this.getPoints(),minX=Math.min(quad.x1,quad.x2,quad.x3,quad.x4),maxX=Math.max(quad.x1,quad.x2,quad.x3,quad.x4),minY=Math.min(quad.y1,quad.y2,quad.y3,quad.y4),maxY=Math.max(quad.y1,quad.y2,quad.y3,quad.y4);quad.x1=minX;quad.x2=maxX;quad.x3=maxX;quad.x4=minX;quad.y1=minY;quad.y2=minY;quad.y3=maxY;quad.y4=maxY;return quad};Quad.cos_thresh=Math.cos(3.14159265/180*2);return Quad}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,
402
- "a",function(){return doubleData});var doubleData={MAX:1.79769E308,MIN:-1.79769E308}},function(module,exports){exports=function(){return this}();try{exports=exports||(new Function("return this"))()}catch(e){"object"===typeof window&&(exports=window)}module.exports=exports},function(module,__webpack_exports__,__webpack_require__){var _Point2D__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(17);module=function(){function Matrix2D(m_a,m_b,m_c,m_d,m_h,m_v){void 0===m_a&&(m_a=0);void 0===m_b&&(m_b=0);
403
- void 0===m_c&&(m_c=0);void 0===m_d&&(m_d=0);void 0===m_h&&(m_h=0);void 0===m_v&&(m_v=0);this.m_a=m_a;this.m_b=m_b;this.m_c=m_c;this.m_d=m_d;this.m_h=m_h;this.m_v=m_v;"undefined"!==typeof m_a&&(this.m_a=m_a,"undefined"!==typeof m_b&&(this.m_b=m_b,"undefined"!==typeof m_c&&(this.m_c=m_c,"undefined"!==typeof m_d&&(this.m_d=m_d,"undefined"!==typeof m_h&&(this.m_h=m_h,"undefined"!==typeof m_v&&(this.m_v=m_v))))))}Matrix2D.rotationMatrix=function(angle){var c=Math.cos(angle);angle=Math.sin(angle);1E-7>
404
- Math.abs(angle)&&(angle=0);1E-7>Math.abs(c)&&(c=0);var tmpMatrix2D=new Matrix2D;tmpMatrix2D.initCoordinates(c,-angle,angle,c,0,0);return tmpMatrix2D};Matrix2D.prototype.initMatrix=function(m){this.m_a=m.m_a;this.m_b=m.m_b;this.m_c=m.m_c;this.m_d=m.m_d;this.m_h=m.m_h;this.m_v=m.m_v};Matrix2D.prototype.initCoordinates=function(a,b,c,d,h,v){this.m_a=a;this.m_b=b;this.m_c=c;this.m_d=d;this.m_h=h;this.m_v=v};Matrix2D.prototype.set=function(a,b,c,d,h,v){this.m_a=a;this.m_b=b;this.m_c=c;this.m_d=d;this.m_h=
405
- h;this.m_v=v};Matrix2D.prototype.inverse=function(){var inv=new Matrix2D,f1=this.m_a*this.m_d-this.m_b*this.m_c;if(!f1)return inv;inv.m_a=this.m_d/f1;inv.m_c=-this.m_c/f1;inv.m_h=(this.m_c*this.m_v-this.m_h*this.m_d)/f1;inv.m_b=-this.m_b/f1;inv.m_d=this.m_a/f1;inv.m_v=-(this.m_a*this.m_v-this.m_h*this.m_b)/f1;return inv};Matrix2D.prototype.mult=function(point){var in_x=point.x;point.x=point.x*this.m_a+point.y*this.m_c+this.m_h;point.y=in_x*this.m_b+point.y*this.m_d+this.m_v;return point};Matrix2D.prototype.concat=
406
- function(other){var a1=this.m_a,b1=this.m_b,c1=this.m_c,d1=this.m_d;this.m_a=other.m_a*a1+other.m_b*c1;this.m_b=other.m_a*b1+other.m_b*d1;this.m_c=other.m_c*a1+other.m_d*c1;this.m_d=other.m_c*b1+other.m_d*d1;this.m_h=other.m_h*a1+other.m_v*c1+this.m_h;this.m_v=other.m_h*b1+other.m_v*d1+this.m_v;return this};Matrix2D.prototype.equals=function(other){return this.m_a==other.m_a&&this.m_b==other.m_b&&this.m_c==other.m_c&&this.m_d==other.m_d&&this.m_h==other.m_h&&this.m_v==other.m_v};Matrix2D.prototype.transformQuad=
407
- function(quad){var point1=new _Point2D__WEBPACK_IMPORTED_MODULE_0__.a(quad[0],quad[1]),point2=new _Point2D__WEBPACK_IMPORTED_MODULE_0__.a(quad[2],quad[3]),point3=new _Point2D__WEBPACK_IMPORTED_MODULE_0__.a(quad[4],quad[5]),point4=new _Point2D__WEBPACK_IMPORTED_MODULE_0__.a(quad[6],quad[7]);point1=this.mult(point1);point2=this.mult(point2);point3=this.mult(point3);point4=this.mult(point4);quad[0]=point1.x;quad[1]=point1.y;quad[2]=point2.x;quad[3]=point2.y;quad[4]=point3.x;quad[5]=point3.y;quad[6]=
408
- point4.x;quad[7]=point4.y};Matrix2D.prototype.transformBbox=function(rect){var quad=Array(8);quad[0]=rect.x1;quad[1]=rect.y1;quad[2]=rect.x2;quad[3]=rect.y1;quad[4]=rect.x2;quad[5]=rect.y2;quad[6]=rect.x1;quad[7]=rect.y2;this.transformQuad(quad);rect.setFromQuad(quad)};return Matrix2D}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){function ResultCode(){}ResultCode.DONE=0;ResultCode.PAGE=1;ResultCode.FOUND=2;ResultCode.e_done=0;ResultCode.e_page=
409
- 1;ResultCode.e_found=2;return ResultCode}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){__webpack_require__(16);var _Point__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(15);__webpack_require__.d(__webpack_exports__,"a",function(){return _Point__WEBPACK_IMPORTED_MODULE_1__.a});var _Rect__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(46);__webpack_require__.d(__webpack_exports__,"b",function(){return _Rect__WEBPACK_IMPORTED_MODULE_2__.a});__webpack_require__(47);
410
- __webpack_require__(75)},function(module,__webpack_exports__,__webpack_require__){var _MathUtils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7),_Matrix__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(16);module=function(){function Point(x,y){void 0===x&&(x=0);void 0===y&&(y=0);x="string"===typeof x?parseFloat(x):x;y="string"===typeof y?parseFloat(y):y;this.matrix=new _Matrix__WEBPACK_IMPORTED_MODULE_1__.a(3,1);this.matrix.set(0,0,x);this.matrix.set(1,0,y);this.matrix.set(2,0,1)}Object.defineProperty(Point,
411
+ function(){var quad=this.getPoints(),minX=Math.min(quad.x1,quad.x2,quad.x3,quad.x4),maxX=Math.max(quad.x1,quad.x2,quad.x3,quad.x4),minY=Math.min(quad.y1,quad.y2,quad.y3,quad.y4),maxY=Math.max(quad.y1,quad.y2,quad.y3,quad.y4);quad.x1=minX;quad.x2=maxX;quad.x3=maxX;quad.x4=minX;quad.y1=minY;quad.y2=minY;quad.y3=maxY;quad.y4=maxY;return quad};Quad.cos_thresh=Math.cos(3.14159265/180*2);return Quad}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var _Point2D__WEBPACK_IMPORTED_MODULE_0__=
412
+ __webpack_require__(19);module=function(){function Matrix2D(m_a,m_b,m_c,m_d,m_h,m_v){void 0===m_a&&(m_a=0);void 0===m_b&&(m_b=0);void 0===m_c&&(m_c=0);void 0===m_d&&(m_d=0);void 0===m_h&&(m_h=0);void 0===m_v&&(m_v=0);this.m_a=m_a;this.m_b=m_b;this.m_c=m_c;this.m_d=m_d;this.m_h=m_h;this.m_v=m_v;"undefined"!==typeof m_a&&(this.m_a=m_a,"undefined"!==typeof m_b&&(this.m_b=m_b,"undefined"!==typeof m_c&&(this.m_c=m_c,"undefined"!==typeof m_d&&(this.m_d=m_d,"undefined"!==typeof m_h&&(this.m_h=m_h,"undefined"!==
413
+ typeof m_v&&(this.m_v=m_v))))))}Matrix2D.rotationMatrix=function(angle){var c=Math.cos(angle);angle=Math.sin(angle);1E-7>Math.abs(angle)&&(angle=0);1E-7>Math.abs(c)&&(c=0);var tmpMatrix2D=new Matrix2D;tmpMatrix2D.initCoordinates(c,-angle,angle,c,0,0);return tmpMatrix2D};Matrix2D.prototype.initMatrix=function(m){this.m_a=m.m_a;this.m_b=m.m_b;this.m_c=m.m_c;this.m_d=m.m_d;this.m_h=m.m_h;this.m_v=m.m_v};Matrix2D.prototype.initCoordinates=function(a,b,c,d,h,v){this.m_a=a;this.m_b=b;this.m_c=c;this.m_d=
414
+ d;this.m_h=h;this.m_v=v};Matrix2D.prototype.set=function(a,b,c,d,h,v){this.m_a=a;this.m_b=b;this.m_c=c;this.m_d=d;this.m_h=h;this.m_v=v};Matrix2D.prototype.inverse=function(){var inv=new Matrix2D,f1=this.m_a*this.m_d-this.m_b*this.m_c;if(!f1)return inv;inv.m_a=this.m_d/f1;inv.m_c=-this.m_c/f1;inv.m_h=(this.m_c*this.m_v-this.m_h*this.m_d)/f1;inv.m_b=-this.m_b/f1;inv.m_d=this.m_a/f1;inv.m_v=-(this.m_a*this.m_v-this.m_h*this.m_b)/f1;return inv};Matrix2D.prototype.mult=function(point){var in_x=point.x;
415
+ point.x=point.x*this.m_a+point.y*this.m_c+this.m_h;point.y=in_x*this.m_b+point.y*this.m_d+this.m_v;return point};Matrix2D.prototype.concat=function(other){var a1=this.m_a,b1=this.m_b,c1=this.m_c,d1=this.m_d;this.m_a=other.m_a*a1+other.m_b*c1;this.m_b=other.m_a*b1+other.m_b*d1;this.m_c=other.m_c*a1+other.m_d*c1;this.m_d=other.m_c*b1+other.m_d*d1;this.m_h=other.m_h*a1+other.m_v*c1+this.m_h;this.m_v=other.m_h*b1+other.m_v*d1+this.m_v;return this};Matrix2D.prototype.equals=function(other){return this.m_a==
416
+ other.m_a&&this.m_b==other.m_b&&this.m_c==other.m_c&&this.m_d==other.m_d&&this.m_h==other.m_h&&this.m_v==other.m_v};Matrix2D.prototype.transformQuad=function(quad){var point1=new _Point2D__WEBPACK_IMPORTED_MODULE_0__.a(quad[0],quad[1]),point2=new _Point2D__WEBPACK_IMPORTED_MODULE_0__.a(quad[2],quad[3]),point3=new _Point2D__WEBPACK_IMPORTED_MODULE_0__.a(quad[4],quad[5]),point4=new _Point2D__WEBPACK_IMPORTED_MODULE_0__.a(quad[6],quad[7]);point1=this.mult(point1);point2=this.mult(point2);point3=this.mult(point3);
417
+ point4=this.mult(point4);quad[0]=point1.x;quad[1]=point1.y;quad[2]=point2.x;quad[3]=point2.y;quad[4]=point3.x;quad[5]=point3.y;quad[6]=point4.x;quad[7]=point4.y};Matrix2D.prototype.transformBbox=function(rect){var quad=Array(8);quad[0]=rect.x1;quad[1]=rect.y1;quad[2]=rect.x2;quad[3]=rect.y1;quad[4]=rect.x2;quad[5]=rect.y2;quad[6]=rect.x1;quad[7]=rect.y2;this.transformQuad(quad);rect.setFromQuad(quad)};return Matrix2D}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,
418
+ "a",function(){return doubleData});var doubleData={MAX:1.79769E308,MIN:-1.79769E308}},function(module,exports){exports=function(){return this}();try{exports=exports||(new Function("return this"))()}catch(e){"object"===typeof window&&(exports=window)}module.exports=exports},function(module,__webpack_exports__,__webpack_require__){module=function(){function ResultCode(){}ResultCode.DONE=0;ResultCode.PAGE=1;ResultCode.FOUND=2;ResultCode.e_done=0;ResultCode.e_page=1;ResultCode.e_found=2;return ResultCode}();
419
+ __webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var _MathUtils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(10),_Matrix__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(18);module=function(){function Point(x,y){void 0===x&&(x=0);void 0===y&&(y=0);x="string"===typeof x?parseFloat(x):x;y="string"===typeof y?parseFloat(y):y;this.matrix=new _Matrix__WEBPACK_IMPORTED_MODULE_1__.a(3,1);this.matrix.set(0,0,x);this.matrix.set(1,0,y);this.matrix.set(2,0,1)}Object.defineProperty(Point,
411
420
  "Origin",{get:function(){return new Point},enumerable:!1,configurable:!0});Object.defineProperty(Point.prototype,"X",{get:function(){return this.matrix.get(0,0)},set:function(val){this.matrix.set(0,0,val);delete this.cachedLength},enumerable:!1,configurable:!0});Object.defineProperty(Point.prototype,"x",{get:function(){return this.X},set:function(val){this.X=val},enumerable:!1,configurable:!0});Object.defineProperty(Point.prototype,"Y",{get:function(){return this.matrix.get(1,0)},set:function(val){this.matrix.set(1,
412
421
  0,val);delete this.cachedLength},enumerable:!1,configurable:!0});Object.defineProperty(Point.prototype,"y",{get:function(){return this.Y},set:function(val){this.Y=val},enumerable:!1,configurable:!0});Object.defineProperty(Point.prototype,"Length",{get:function(){this.cachedLength||(this.cachedLength=Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(Math.sqrt(this.X*this.X+this.Y*this.Y)));return this.cachedLength},enumerable:!1,configurable:!0});Point.prototype.getX=function(){return this.X};Point.prototype.getY=
413
422
  function(){return this.Y};Point.prototype.add=function(vec){return new Point(Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.X+vec.X),Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.Y+vec.Y))};Point.prototype.subtract=function(vec){return new Point(Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.X-vec.X),Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.Y-vec.Y))};Point.prototype.dot=function(vec){return Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.X*vec.X+this.Y*
@@ -417,7 +426,7 @@ inRadians){void 0===inRadians&&(inRadians=!1);var a=this.Length,b=vec.Length;vec
417
426
  this.Y*Math.cos(angle);this.X=this.X*Math.cos(angle)-this.Y*Math.sin(angle);this.Y=inRadians;this.translate(-withRespectTo.X,-withRespectTo.Y)};Point.prototype.scale=function(s){this.X=Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.X*s);this.Y=Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.Y*s)};Point.prototype.toMatrix=function(){for(var _this=this,vecs=[],_i=0;_i<arguments.length;_i++)vecs[_i]=arguments[_i];var result=new _Matrix__WEBPACK_IMPORTED_MODULE_1__.a(3,vecs.length+1);result.set(0,
418
427
  0,this.X);result.set(1,0,this.Y);result.set(2,0,this.matrix.get(2,0));var col=1;vecs.forEach(function(v){for(var row=0;row<_this.matrix.Rows;row++)result.set(col,row,v.matrix.get(row,0));col++});return result};Point.prototype.transform=function(transform){var pMat=this.toMatrix();pMat=transform.multiply(pMat);transform=Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(pMat.get(0,0));pMat=Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(pMat.get(1,0));this.X=transform;this.Y=pMat};Point.prototype.equals=
419
428
  function(vec){return 1E-5>Math.abs(this.X-vec.X)&&1E-5>Math.abs(this.Y-vec.Y)};Point.prototype.isParallelTo=function(vec){var aNorm=1===this.Length?this:this.normalize();vec=1===vec.Length?vec:vec.normalize();return aNorm.equals(vec)};Point.prototype.clone=function(){return new Point(this.X,this.Y)};Point.prototype.equalTo=function(vec){return this.equals(vec)};Point.prototype.toString=function(){return"[Point: x="+this.x+" y="+this.y+"]"};Point.prototype.toJSON=function(){return{x:this.x,y:this.y}};
420
- return Point}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var _MathUtils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7),_Point__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(15);module=function(){function Matrix(rows,columns){void 0===rows&&(rows=3);void 0===columns&&(columns=3);this.rows=rows;this.columns=columns;this._mat=[];var count=rows*columns,row=0,isSymmetrical=rows===columns;--columns;for(var i=0;i<count;i++){var col=i%rows;this._mat.push(isSymmetrical&&
429
+ return Point}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var _MathUtils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(10),_Point__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(17);module=function(){function Matrix(rows,columns){void 0===rows&&(rows=3);void 0===columns&&(columns=3);this.rows=rows;this.columns=columns;this._mat=[];var count=rows*columns,row=0,isSymmetrical=rows===columns;--columns;for(var i=0;i<count;i++){var col=i%rows;this._mat.push(isSymmetrical&&
421
430
  col===row?1:0);col===columns&&row++}}Object.defineProperty(Matrix,"Identity",{get:function(){return new Matrix},enumerable:!1,configurable:!0});Matrix.multiply=function(left,right){if(left.Columns!==right.Rows)throw"The columns of the left matrix ("+left.Columns+") must match the number of rows of the right matrix "+right.Rows+". Please check your matrix structures as there is a mismatch.";for(var result=new Matrix(left.Rows,right.Columns),i=0;i<left.Rows;i++)for(var j=0;j<right.Columns;j++){for(var value=
422
431
  0,k=0;k<left.Columns;k++){var leftVal=left.get(i,k),rightVal=right.get(k,j);value+=leftVal*rightVal;value=Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(value)}result.set(i,j,value)}return result};Matrix.createTransformWithRespectTo=function(transforms,origin){void 0===origin&&(origin=_Point__WEBPACK_IMPORTED_MODULE_1__.a.Origin);var toOrigin=new Matrix;toOrigin.setTranslate(-origin.x,-origin.y);var toPosition=new Matrix;toPosition.setTranslate(origin.x,origin.y);return transforms.reduce(function(prev,
423
432
  t){return prev.multiply(t)},toPosition).multiply(toOrigin)};Matrix.fromMatrix2D=function(mat2d){var mat=new Matrix;mat.setTranslate(mat2d.m_h,mat2d.m_v);mat.setScale(mat2d.m_a,mat2d.m_d);mat.setSkew(mat2d.m_b,mat2d.m_c);return mat};Object.defineProperty(Matrix.prototype,"Rows",{get:function(){return this.rows},enumerable:!1,configurable:!0});Object.defineProperty(Matrix.prototype,"Columns",{get:function(){return this.columns},enumerable:!1,configurable:!0});Matrix.prototype.get=function(row,column){return this._mat[this.Columns*
@@ -428,7 +437,7 @@ function(){if(3!==this.Rows||3!==this.Columns)throw"Only 3x3 matrices are curren
428
437
  i=0;i<reference.columns;i++){var refValue=reference.get(i,i);if(0===refValue){var modIndex=-1;for(refValue=0;refValue<reference.rows;refValue++)if(i!==refValue&&0!==reference.get(refValue,i)){modIndex=refValue;break}if(-1===modIndex)return null;for(refValue=0;refValue<reference.columns;refValue++){var refTargetRowVal=reference.get(i,refValue),refModRowVal=reference.get(modIndex,refValue),factor=1;modIndex===i&&1!==refModRowVal&&(factor=1/refModRowVal);var invTargetRowVal=inverse.get(i,refValue),invModRowVal=
429
438
  inverse.get(modIndex,refValue);reference.set(i,refValue,(refTargetRowVal+refModRowVal)*factor);inverse.set(i,refValue,(invTargetRowVal+invModRowVal)*factor)}refValue=reference.get(i,i)}if(1!==refValue)for(factor=1/refValue,refValue=0;refValue<reference.columns;refValue++)modIndex=reference.get(i,refValue)*factor,refTargetRowVal=inverse.get(i,refValue)*factor,reference.set(i,refValue,modIndex),inverse.set(i,refValue,refTargetRowVal);for(refValue=0;refValue<reference.rows;refValue++)if(i!==refValue&&
430
439
  (factor=reference.get(refValue,i),0!==factor))for(factor=1/factor,refModRowVal=0;refModRowVal<reference.columns;refModRowVal++)invTargetRowVal=reference.get(i,refModRowVal),invModRowVal=inverse.get(i,refModRowVal),modIndex=reference.get(refValue,refModRowVal)*factor,refTargetRowVal=inverse.get(refValue,refModRowVal)*factor,reference.set(refValue,refModRowVal,modIndex-invTargetRowVal),inverse.set(refValue,refModRowVal,refTargetRowVal-invModRowVal)}for(i=0;i<reference.rows;i++)for(factor=reference.get(i,
431
- i),refValue=0;refValue<reference.columns;refValue++)modIndex=inverse.get(i,refValue)/factor,inverse.set(i,refValue,modIndex);return inverse};return Matrix}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){return function(x,y){void 0===x&&(x=0);void 0===y&&(y=0);this.x=x;this.y=y}}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var _constants__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(10);module=
440
+ i),refValue=0;refValue<reference.columns;refValue++)modIndex=inverse.get(i,refValue)/factor,inverse.set(i,refValue,modIndex);return inverse};return Matrix}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){return function(x,y){void 0===x&&(x=0);void 0===y&&(y=0);this.x=x;this.y=y}}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var _constants__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(14);module=
432
441
  function(){function SelectionRect(){this.y2=this.x2=this.y1=this.x1=0}SelectionRect.prototype.initCoordinates=function(_x1,_y1,_x2,_y2){this.x1=_x1;this.y1=_y1;this.x2=_x2;this.y2=_y2};SelectionRect.prototype.initRect=function(rect){this.x1=rect.x1;this.y1=rect.y1;this.x2=rect.x2;this.y2=rect.y2};SelectionRect.prototype.normalize=function(){if(this.x1>this.x2){var temp=this.x1;this.x1=this.x2;this.x2=temp}this.y1>this.y2&&(temp=this.y1,this.y1=this.y2,this.y2=temp)};SelectionRect.prototype.set=function(_x1,
433
442
  _y1,_x2,_y2){this.x1=_x1;this.y1=_y1;this.x2=_x2;this.y2=_y2};SelectionRect.prototype.notIntersect=function(r){return this.x2<r.x1||this.x1>r.x2||this.y2<r.y1||this.y1>r.y2};SelectionRect.prototype.width=function(){var r=this.x2-this.x1;return 0>r?-r:r};SelectionRect.prototype.height=function(){var r=this.y2-this.y1;return 0>r?-r:r};SelectionRect.prototype.setFromQuad=function(q){for(var min_x=1.79769E308,max_x=_constants__WEBPACK_IMPORTED_MODULE_0__.a.MIN,min_y=1.79769E308,max_y=_constants__WEBPACK_IMPORTED_MODULE_0__.a.MIN,
434
443
  i=0;4>i;++i){var x=q[2*i],y=q[2*i+1];min_x=Math.min(min_x,x);max_x=Math.max(max_x,x);min_y=Math.min(min_y,y);max_y=Math.max(max_y,y)}this.x1=min_x;this.y1=min_y;this.x2=max_x;this.y2=max_y};SelectionRect.prototype.intersectRect=function(rect1,rect2){if(rect1.x1<rect1.x2){var r1x1=rect1.x1;var r1x2=rect1.x2}else r1x1=rect1.x2,r1x2=rect1.x1;if(rect1.y1<rect1.y2){var r1y1=rect1.y1;rect1=rect1.y2}else r1y1=rect1.y2,rect1=rect1.y1;if(rect2.x1<rect2.x2){var r2x1=rect2.x1;var r2x2=rect2.x2}else r2x1=rect2.x2,
@@ -459,7 +468,7 @@ value,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError("Index o
459
468
  ieee754.write(buf,value,offset,littleEndian,52,8);return offset+8}function utf8ToBytes(string,units){units=units||Infinity;for(var codePoint,length=string.length,leadSurrogate=null,bytes=[],i=0;i<length;++i){codePoint=string.charCodeAt(i);if(55295<codePoint&&57344>codePoint){if(!leadSurrogate){if(56319<codePoint){-1<(units-=3)&&bytes.push(239,191,189);continue}else if(i+1===length){-1<(units-=3)&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(56320>codePoint){-1<(units-=3)&&
460
469
  bytes.push(239,191,189);leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&-1<(units-=3)&&bytes.push(239,191,189);leadSurrogate=null;if(128>codePoint){if(0>--units)break;bytes.push(codePoint)}else if(2048>codePoint){if(0>(units-=2))break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(65536>codePoint){if(0>(units-=3))break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(1114112>codePoint){if(0>(units-=4))break;
461
470
  bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else throw Error("Invalid code point");}return bytes}function asciiToBytes(str){for(var byteArray=[],i=0;i<str.length;++i)byteArray.push(str.charCodeAt(i)&255);return byteArray}function base64ToBytes(str){var JSCompiler_temp_const=base64,JSCompiler_temp_const$jscomp$0=JSCompiler_temp_const.toByteArray;str=(str.trim?str.trim():str.replace(/^\s+|\s+$/g,"")).replace(INVALID_BASE64_RE,"");if(2>str.length)str="";else for(;0!==
462
- str.length%4;)str+="=";return JSCompiler_temp_const$jscomp$0.call(JSCompiler_temp_const,str)}function blitBuffer(src,dst,offset,length){for(var i=0;i<length&&!(i+offset>=dst.length||i>=src.length);++i)dst[i+offset]=src[i];return i}var base64=__webpack_require__(96),ieee754=__webpack_require__(97),isArray=__webpack_require__(61);exports.Buffer=Buffer;exports.SlowBuffer=function(length){+length!=length&&(length=0);return Buffer.alloc(+length)};exports.INSPECT_MAX_BYTES=50;Buffer.TYPED_ARRAY_SUPPORT=
471
+ str.length%4;)str+="=";return JSCompiler_temp_const$jscomp$0.call(JSCompiler_temp_const,str)}function blitBuffer(src,dst,offset,length){for(var i=0;i<length&&!(i+offset>=dst.length||i>=src.length);++i)dst[i+offset]=src[i];return i}var base64=__webpack_require__(112),ieee754=__webpack_require__(113),isArray=__webpack_require__(65);exports.Buffer=Buffer;exports.SlowBuffer=function(length){+length!=length&&(length=0);return Buffer.alloc(+length)};exports.INSPECT_MAX_BYTES=50;Buffer.TYPED_ARRAY_SUPPORT=
463
472
  void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:typedArraySupport();exports.kMaxLength=Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823;Buffer.poolSize=8192;Buffer._augment=function(arr){arr.__proto__=Buffer.prototype;return arr};Buffer.from=function(value,encodingOrOffset,length){return from(null,value,encodingOrOffset,length)};Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===
464
473
  Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0}));Buffer.alloc=function(size,fill,encoding){assertSize(size);size=0>=size?createBuffer(null,size):void 0!==fill?"string"===typeof encoding?createBuffer(null,size).fill(fill,encoding):createBuffer(null,size).fill(fill):createBuffer(null,size);return size};Buffer.allocUnsafe=function(size){return allocUnsafe(null,size)};Buffer.allocUnsafeSlow=function(size){return allocUnsafe(null,size)};Buffer.isBuffer=function(b){return!(null==
465
474
  b||!b._isBuffer)};Buffer.compare=function(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);i<len;++i)if(a[i]!==b[i]){x=a[i];y=b[i];break}return x<y?-1:y<x?1:0};Buffer.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "latin1":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;
@@ -493,42 +502,59 @@ value,offset,!0,noAssert)};Buffer.prototype.writeFloatBE=function(value,offset,n
493
502
  (targetStart=target.length);targetStart||(targetStart=0);0<end&&end<start&&(end=start);if(end===start||0===target.length||0===this.length)return 0;if(0>targetStart)throw new RangeError("targetStart out of bounds");if(0>start||start>=this.length)throw new RangeError("sourceStart out of bounds");if(0>end)throw new RangeError("sourceEnd out of bounds");end>this.length&&(end=this.length);target.length-targetStart<end-start&&(end=target.length-targetStart+start);var len=end-start;if(this===target&&start<
494
503
  targetStart&&targetStart<end)for(end=len-1;0<=end;--end)target[end+targetStart]=this[end+start];else if(1E3>len||!Buffer.TYPED_ARRAY_SUPPORT)for(end=0;end<len;++end)target[end+targetStart]=this[end+start];else Uint8Array.prototype.set.call(target,this.subarray(start,start+len),targetStart);return len};Buffer.prototype.fill=function(val,start,end,encoding){if("string"===typeof val){"string"===typeof start?(encoding=start,start=0,end=this.length):"string"===typeof end&&(encoding=end,end=this.length);
495
504
  if(1===val.length){var code=val.charCodeAt(0);256>code&&(val=code)}if(void 0!==encoding&&"string"!==typeof encoding)throw new TypeError("encoding must be a string");if("string"===typeof encoding&&!Buffer.isEncoding(encoding))throw new TypeError("Unknown encoding: "+encoding);}else"number"===typeof val&&(val&=255);if(0>start||this.length<start||this.length<end)throw new RangeError("Out of range index");if(end<=start)return this;start>>>=0;end=void 0===end?this.length:end>>>0;val||(val=0);if("number"===
496
- typeof val)for(encoding=start;encoding<end;++encoding)this[encoding]=val;else for(val=Buffer.isBuffer(val)?val:utf8ToBytes((new Buffer(val,encoding)).toString()),code=val.length,encoding=0;encoding<end-start;++encoding)this[encoding+start]=val[encoding%code];return this};var INVALID_BASE64_RE=/[^+\/0-9A-Za-z-_]/g}).call(this,__webpack_require__(11))},function(module,exports){function defaultSetTimout(){throw Error("setTimeout has not been defined");}function defaultClearTimeout(){throw Error("clearTimeout has not been defined");
505
+ typeof val)for(encoding=start;encoding<end;++encoding)this[encoding]=val;else for(val=Buffer.isBuffer(val)?val:utf8ToBytes((new Buffer(val,encoding)).toString()),code=val.length,encoding=0;encoding<end-start;++encoding)this[encoding+start]=val[encoding%code];return this};var INVALID_BASE64_RE=/[^+\/0-9A-Za-z-_]/g}).call(this,__webpack_require__(15))},function(module,exports){function defaultSetTimout(){throw Error("setTimeout has not been defined");}function defaultClearTimeout(){throw Error("clearTimeout has not been defined");
497
506
  }function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e$2){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&
498
507
  clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch(e$3){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){currentQueue=
499
508
  queue;for(queue=[];++queueIndex<len;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1;len=queue.length}currentQueue=null;draining=!1;runClearTimeout(timeout)}}function Item(fun,array){this.fun=fun;this.array=array}function noop(){}module=module.exports={};try{var cachedSetTimeout="function"===typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{var cachedClearTimeout="function"===typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e$1){cachedClearTimeout=
500
509
  defaultClearTimeout}var queue=[],draining=!1,currentQueue,queueIndex=-1;module.nextTick=function(fun){var args=Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args));1!==queue.length||draining||runTimeout(drainQueue)};Item.prototype.run=function(){this.fun.apply(null,this.array)};module.title="browser";module.browser=!0;module.env={};module.argv=[];module.version="";module.versions={};module.on=noop;module.addListener=
501
510
  noop;module.once=noop;module.off=noop;module.removeListener=noop;module.removeAllListeners=noop;module.emit=noop;module.prependListener=noop;module.prependOnceListener=noop;module.listeners=function(name){return[]};module.binding=function(name){throw Error("process.binding is not supported");};module.cwd=function(){return"/"};module.chdir=function(dir){throw Error("process.chdir is not supported");};module.umask=function(){return 0}},function(module,__webpack_exports__,__webpack_require__){var logger__WEBPACK_IMPORTED_MODULE_0__=
502
- __webpack_require__(0),_textSelection_Quad__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9),_SelectionRect__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(18),_helpers_stringHelper__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(34);module=function(){function Word(){this._m_glyph_quads=[];this._m_CurNum=this.m_Pos=-1;this._m_quad=Array(8);this._m_next_word=null;this._m_Str="";this._m_Quads=null;this._m_Str_pos=0}Word.prototype.initDefault=function(){this._m_CurNum=this.m_Pos=-1};Word.prototype.initWord=
511
+ __webpack_require__(0),_textSelection_Quad__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(12),_SelectionRect__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(20),_helpers_stringHelper__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(37);module=function(){function Word(){this._m_glyph_quads=[];this._m_CurNum=this.m_Pos=-1;this._m_quad=Array(8);this._m_next_word=null;this._m_Str="";this._m_Quads=null;this._m_Str_pos=0}Word.prototype.initDefault=function(){this._m_CurNum=this.m_Pos=-1};Word.prototype.initWord=
503
512
  function(w){this.m_Pos=w.m_Pos;this._m_CurNum=w._m_CurNum;this._m_Str=w._m_Str;this._m_Quads=w._m_Quads;this._m_next_word=w._m_next_word};Word.prototype.equal=function(word){return this._m_CurNum===word._m_CurNum};Word.prototype.getNumGlyphs=function(){return this._m_glyph_quads.length};Word.prototype.getStringLen=function(){return this._m_Str.length};Word.prototype.getStringPos=function(){return this._m_Str_pos};Word.prototype._setStringPos=function(pos){this._m_Str_pos=pos};Word.prototype.getNextWord=
504
513
  function(){return null==this._m_next_word?new Word:this._m_next_word};Word.prototype.getGlyphQuadInWordQuadFormat=function(glyph_idx,quad){if(this._m_glyph_quads&&this._m_glyph_quads[glyph_idx]){var x1=this._m_glyph_quads[glyph_idx][0],x2=this._m_glyph_quads[glyph_idx][2],y1=this._m_glyph_quads[glyph_idx][1];glyph_idx=this._m_glyph_quads[glyph_idx][5];y1<glyph_idx?(quad[1]=glyph_idx,quad[3]=glyph_idx,quad[5]=y1,quad[7]=y1):(quad[1]=y1,quad[3]=y1,quad[5]=glyph_idx,quad[7]=glyph_idx);quad[0]=x1;quad[2]=
505
514
  x2;quad[4]=x2;quad[6]=x1}else Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("default","getGlyphQuadInWordQuadFormat: No glyph with index "+glyph_idx+" found.")};Word.prototype.getGlyphQuad=function(glyph_idx,quad){for(var i=0;8>i;i++)quad[i]=this._m_glyph_quads[glyph_idx][i]};Word.prototype.getQuad=function(quad){for(var i=0;8>i;i++)quad[i]=this._m_quad[i]};Word.prototype.getBBox=function(bbox){var rect=new _SelectionRect__WEBPACK_IMPORTED_MODULE_2__.a;rect.setFromQuad(this._m_quad);bbox[0]=rect.x1;
506
515
  bbox[1]=rect.y1;bbox[2]=rect.x2;bbox[3]=rect.y2};Word.prototype.getCurrentNum=function(){return this._m_CurNum};Word.prototype._setCurrentNum=function(word_id){this._m_CurNum=this.m_Pos=word_id};Word.prototype.addChar=function(ch,ch_quad){var first_char=Object(_helpers_stringHelper__WEBPACK_IMPORTED_MODULE_3__.b)(this._m_Str);this._m_Str+=ch;for(var quad=Array(8),i=0;8>i;i++)quad[i]=ch_quad[i];for(i=0;i<ch.length;++i)this._m_glyph_quads.push(quad);if(first_char)for(i=0;8>i;i++)this._m_quad[i]=quad[i];
507
516
  else _textSelection_Quad__WEBPACK_IMPORTED_MODULE_1__.a._merge(this._m_quad,quad,1,!1,0)};Word.prototype.setNextWord=function(next_word){this._m_next_word=next_word};Word.prototype.getString=function(){return this._m_Str};return Word}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return getEnumerator});var ArrayEnumerator=function(){function ArrayEnumerator(array){this._array=array;this._index=-1;this.current=
508
- null}ArrayEnumerator.prototype.moveNext=function(){this._index++;this.current=this._array[this._index];return this._index<this._array.length};ArrayEnumerator.prototype.reset=function(){this._index=-1;this.current=null};return ArrayEnumerator}(),getEnumerator=function(array){return new ArrayEnumerator(array)}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"e",function(){return isEdge});__webpack_require__.d(__webpack_exports__,"b",function(){return edgeVersion});
509
- __webpack_require__.d(__webpack_exports__,"f",function(){return isFirefox});__webpack_require__.d(__webpack_exports__,"c",function(){return firefoxVersion});__webpack_require__.d(__webpack_exports__,"d",function(){return isChrome});__webpack_require__.d(__webpack_exports__,"a",function(){return chromeVersion});__webpack_require__.d(__webpack_exports__,"g",function(){return isMobileDevice});__webpack_require__(0);var exports="undefined"===typeof window?self:window;module=function(){var ua=navigator.userAgent.toLowerCase();
510
- return(ua=/(msie) ([\w.]+)/.exec(ua)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(ua))?parseInt(ua[2],10):ua}();var isChrome=function(){var opera=exports.navigator.userAgent.match(/OPR/),maxthon=exports.navigator.userAgent.match(/Maxthon/),edge=exports.navigator.userAgent.match(/Edge/);return exports.navigator.userAgent.match(/Chrome\/(.*?) /)&&!opera&&!maxthon&&!edge}(),chromeVersion=function(){if(!isChrome)return null;var match=exports.navigator.userAgent.match(/Chrome\/([0-9]+)\./);return match?parseInt(match[1],
511
- 10):match}(),isEdge=!!navigator.userAgent.match(/Edge/i)||navigator.userAgent.match(/Edg\/(.*?)/)&&exports.navigator.userAgent.match(/Chrome\/(.*?) /),edgeVersion=function(){if(!isEdge)return null;var match=exports.navigator.userAgent.match(/Edg\/([0-9]+)\./);return match?parseInt(match[1],10):match}();__webpack_exports__=/iPad|iPhone|iPod/.test(exports.navigator.platform)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;(function(){var match=exports.navigator.userAgent.match(/.*\/([0-9\.]+)\s(Safari|Mobile).*/i);
512
- return match?parseFloat(match[1]):match})();/^((?!chrome|android).)*safari/i.test(exports.navigator.userAgent)||/^((?!chrome|android).)*$/.test(exports.navigator.userAgent);/Android/i.test(navigator.userAgent);var isFirefox=exports.navigator.userAgent.match(/Firefox/),firefoxVersion=function(){if(!isFirefox)return null;var match=exports.navigator.userAgent.match(/Firefox\/([0-9]+)\./);return match?parseInt(match[1],10):match}(),isMobileDevice=!(module||!/Android|webOS|Touch|IEMobile|Silk/i.test(navigator.userAgent)&&
513
- !__webpack_exports__);navigator.userAgent.match(/(iPad|iPhone|iPod)/i);exports.navigator.userAgent.indexOf("Android");/Mac OS X 10_13_6.*\(KHTML, like Gecko\)$/.test(exports.navigator.userAgent);exports.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)&&parseInt(exports.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)[3]);-1<exports.navigator.userAgent.indexOf("Edge/16")||exports.navigator.userAgent.indexOf("MSAppHost")},function(module,exports){module.exports="function"===
514
- typeof Object.create?function(ctor,superCtor){superCtor&&(ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}}))}:function(ctor,superCtor){if(superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor;ctor.prototype.constructor=ctor}}},function(module,__webpack_exports__,__webpack_require__){var _textSelection_Quad__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9),
515
- _Word__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(22),_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4),_helpers_stringHelper__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(34);module=function(){function Line(){this._m_Words=[];this._m_CurNum=-1;this._m_Direction=[];this._m_quad=Array(8);this._m_next_line=null;this._m_Str="";this._m_Quads=null}Line.prototype.initDefault=function(){this._m_CurNum=this._m_Pos=-1;this._m_Direction=[]};Line.prototype.initLine=function(line){this._m_CurNum=
516
- line._m_CurNum;this._m_Direction=line._m_Direction;this._m_Str=line._m_Str;this._m_Quads=line._m_Quads};Line.prototype.equal=function(line){return this._m_CurNum===line.getCurrentNum()};Line.prototype.getNumWords=function(){return this._m_Words.length};Line.prototype.getFirstWord=function(){return this._m_Words.length?this._m_Words[0]:new _Word__WEBPACK_IMPORTED_MODULE_1__.a};Line.prototype.getLastWord=function(){return this._m_Words.length?this._m_Words[this._m_Words.length-1]:new _Word__WEBPACK_IMPORTED_MODULE_1__.a};
517
- Line.prototype.getWord=function(word_idx){return 0>word_idx||word_idx>=this.getNumWords()?new _Word__WEBPACK_IMPORTED_MODULE_1__.a:this._m_Words[word_idx]};Line.prototype.getNextLine=function(){return null==this._m_next_line?new Line:this._m_next_line};Line.prototype.getBBox=function(bbox){bbox.setFromQuad(this._m_quad)};Line.prototype.getCurrentNum=function(){return this._m_CurNum};Line.prototype._setCurrentNum=function(curNum){this._m_CurNum=curNum};Line.prototype.getDirection=function(){if(this._m_Direction.length)return this._m_Direction[0];
518
- var g1=new _SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a,g2=new _SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;(new _Word__WEBPACK_IMPORTED_MODULE_1__.a).initDefault();var w1=this.getFirstWord(),w2=this.getLastWord(),q1=Array(8),q2=Array(8);w1.getGlyphQuad(0,q1);g1.x=(q1[0]+q1[2]+q1[4]+q1[6])/4;g1.y=(q1[1]+q1[3]+q1[5]+q1[7])/4;w2.getGlyphQuad(w2.getNumGlyphs()-1,q2);g2.x=(q2[0]+q2[2]+q2[4]+q2[6])/4;g2.y=(q2[1]+q2[3]+q2[5]+q2[7])/4;.01>Math.abs(g1.x-g2.x)&&.01>Math.abs(g1.y-g2.y)&&this._m_Direction.push(0);
519
- g1=Math.atan2(g2.y-g1.y,g2.x-g1.x);g1*=180/3.1415926;0>g1&&(g1+=360);this._m_Direction.push(g1);return 0};Line.prototype.setNextLine=function(line){this._m_next_line=line};Line.prototype.addWord=function(word){0<this._m_Words.length&&this._m_Words[this._m_Words.length-1].setNextWord(word);this._m_Words.push(word);var first_word=Object(_helpers_stringHelper__WEBPACK_IMPORTED_MODULE_3__.b)(this._m_Str),quad=Array(8);word.getQuad(quad);if(first_word)for(first_word=0;8>first_word;first_word++)this._m_quad[first_word]=
520
- quad[first_word];else this._m_Str+=" ",_textSelection_Quad__WEBPACK_IMPORTED_MODULE_0__.a._merge(this._m_quad,quad,1,!1,0);this._m_Str+=word.getString()};return Line}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5),lodash__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);var logger__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),_Core_Math__WEBPACK_IMPORTED_MODULE_3__=
521
- __webpack_require__(14),_Color__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(60),_util_textSelection__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(54),defaultAppearanceCommands=["Tf","rg"],_pad=function(str){return 2>str.length?"0"+str:str},getAttribute=function(element,attr){return element.getAttribute(attr)||element.getAttribute(attr.toLowerCase())},getLocalName=function(element){return element.localName||element.baseName||element.nodeName},getFirstChildElement=function(data){data=Object(lodash__WEBPACK_IMPORTED_MODULE_1__.filter)(data.childNodes,
522
- function(element){return 1===element.nodeType});return 0<data.length?data[0]:null},serializeRect=function(rect,pageMatrix,separator){if("undefined"===typeof separator||null===separator)separator=",";var pt1=new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(rect.x1,rect.y1);rect=new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(rect.x2,rect.y2);pageMatrix.mult(pt1);pageMatrix.mult(rect);pageMatrix=Number.isInteger(pt1.x)?pt1.x:pt1.x.toFixed(3);pt1=Number.isInteger(pt1.y)?pt1.y:pt1.y.toFixed(3);var point2X=
523
- Number.isInteger(rect.x)?rect.x:rect.x.toFixed(3);rect=Number.isInteger(rect.y)?rect.y:rect.y.toFixed(3);return""+pageMatrix+separator+pt1+separator+point2X+separator+rect},deserializeRect=function(rectString,pageMatrix,separator){if("undefined"===typeof separator||null===separator)separator=",";if("undefined"===typeof rectString||null===rectString)rectString="0,0,0,0";separator=rectString.split(separator);rectString=new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(separator[0],separator[1]);separator=
524
- new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(separator[2],separator[3]);pageMatrix&&(pageMatrix.mult(rectString),pageMatrix.mult(separator));return new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.b(rectString.x,rectString.y,separator.x,separator.y)},serializeColor=function(color){if("undefined"===typeof color||null===color||!(color instanceof _Color__WEBPACK_IMPORTED_MODULE_4__.a)||0===color.A)return null;var r=color.R.toString(16).toUpperCase();2>r.length&&(r="0"+r);var g=color.G.toString(16).toUpperCase();
525
- 2>g.length&&(g="0"+g);color=color.B.toString(16).toUpperCase();2>color.length&&(color="0"+color);return"#"+r+g+color},getCSSColor=function(r,g,b){r="#"+_pad(r.toString(16));r+=_pad(g.toString(16));return r+=_pad(b.toString(16))},getStyleFontName=function(fontName){return 1<fontName.split(" ").length?"'"+fontName+"'":fontName},parseFontName=function(name){function checkFontName(startsWith,replace){var fName=name;0===fName.indexOf(startsWith)&&(fName=replace);return fName}name=checkFontName("Arial",
526
- "Arial");name=checkFontName("Courier","Courier");name=checkFontName("Helv","Arial");return name=checkFontName("Times","Times New Roman")},setPropertyOnObject=function(object,property,value){Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isUndefined)(value)||Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isNull)(value)||(object[property]=value)},setNumberPropertyOnObject=function(object,property,value){Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isUndefined)(value)||Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isNull)(value)||
527
- (object[property]=Number(value))},setPropertyOnElement=function(element,attribute,value){Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isUndefined)(value)||Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isNull)(value)||element.setAttribute(attribute,value)},serializeNumberFormat=function(numberFormatDictionary){var numberFormat=document.createElementNS("","numberformat");setPropertyOnElement(numberFormat,"factor",numberFormatDictionary.factor);setPropertyOnElement(numberFormat,"unit",numberFormatDictionary.unit);
528
- setPropertyOnElement(numberFormat,"decimal-symbol",numberFormatDictionary.decimalSymbol);setPropertyOnElement(numberFormat,"thousands-symbol",numberFormatDictionary.thousandsSymbol);setPropertyOnElement(numberFormat,"display",numberFormatDictionary.display);setPropertyOnElement(numberFormat,"precision",numberFormatDictionary.precision);setPropertyOnElement(numberFormat,"unit-prefix",numberFormatDictionary.unitPrefix);setPropertyOnElement(numberFormat,"unit-suffix",numberFormatDictionary.unitSuffix);
529
- setPropertyOnElement(numberFormat,"unit-position",numberFormatDictionary.unitPosition);return numberFormat},deserializeNumberFormat=function(numberFormatDictionary){var numberFormat={};setNumberPropertyOnObject(numberFormat,"factor",numberFormatDictionary.getAttribute("factor"));setPropertyOnObject(numberFormat,"unit",numberFormatDictionary.getAttribute("unit"));setPropertyOnObject(numberFormat,"decimalSymbol",numberFormatDictionary.getAttribute("decimal-symbol")||".");setPropertyOnObject(numberFormat,
530
- "thousandsSymbol",numberFormatDictionary.getAttribute("thousands-symbol")||",");setPropertyOnObject(numberFormat,"display",numberFormatDictionary.getAttribute("display")||"D");setNumberPropertyOnObject(numberFormat,"precision",numberFormatDictionary.getAttribute("precision")||100);setPropertyOnObject(numberFormat,"unitPrefix",numberFormatDictionary.getAttribute("unit-prefix")||"");setPropertyOnObject(numberFormat,"unitSuffix",numberFormatDictionary.getAttribute("unit-suffix")||"");setPropertyOnObject(numberFormat,
531
- "unitPosition",numberFormatDictionary.getAttribute("unit-position")||"S");return numberFormat};__webpack_exports__.a={getXFDFElements:function(xfdfData){if("string"!==typeof xfdfData)return xfdfData;var parser=new DOMParser;xfdfData=xfdfData.replace(' xmlns="http://www.w3.org/1999/xhtml"',"");parser=parser.parseFromString(xfdfData,"text/xml");0<parser.getElementsByTagName("parsererror").length&&Object(logger__WEBPACK_IMPORTED_MODULE_2__.f)(parser.getElementsByTagName("parsererror")[0].textContent);
517
+ null}ArrayEnumerator.prototype.moveNext=function(){this._index++;this.current=this._array[this._index];return this._index<this._array.length};ArrayEnumerator.prototype.reset=function(){this._index=-1;this.current=null};return ArrayEnumerator}(),getEnumerator=function(array){return new ArrayEnumerator(array)}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return getState});__webpack_require__.d(__webpack_exports__,"b",function(){return setState});
518
+ var subscriptions={},globalState={flattenedResources:!1,CANVAS_CACHE_SIZE:void 0,maxPagesBefore:void 0,maxPagesAhead:void 0,disableLogs:!1,wvsQueryParameters:{},_trnDebugMode:!1,_logFiltersEnabled:null},getState=function(key){return globalState[key]},setState=function(key,value){var _a;globalState[key]=value;null===(_a=subscriptions[key])||void 0===_a?void 0:_a.forEach(function(func){func(value)})}},function(module,__webpack_exports__,__webpack_require__){function _arrayLikeToArray(arr,len){if(null==
519
+ len||len>arr.length)len=arr.length;for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function CCW(p1,p2,p3){return(p3.y-p1.y)*(p2.x-p1.x)>(p2.y-p1.y)*(p3.x-p1.x)}function onSegment(pt1,pt2,pt3){return[pt1,pt2,pt3].some(function(pt){return!(pt instanceof _Core_Math__WEBPACK_IMPORTED_MODULE_2__.a)})?null:pt2.x<=Math.max(pt1.x,pt3.x)&&pt2.x>=Math.min(pt1.x,pt3.x)&&pt2.y<=Math.max(pt1.y,pt3.y)&&pt2.y>=Math.min(pt1.y,pt3.y)}function getOrientation(pt1,pt2,pt3){if([pt1,pt2,pt3].some(function(pt){return!(pt instanceof
520
+ _Core_Math__WEBPACK_IMPORTED_MODULE_2__.a)}))return null;pt1=(pt2.y-pt1.y)*(pt3.x-pt2.x)-(pt2.x-pt1.x)*(pt3.y-pt2.y);return 0===pt1?"colinear":0<pt1?"clockwise":"counterClockwise"}function intersect(p1,q1,p2,q2){if([p1,q2,p2,q2].some(function(pt){return!(pt instanceof _Core_Math__WEBPACK_IMPORTED_MODULE_2__.a)}))return null;var o1=getOrientation(p1,q1,p2),o2=getOrientation(p1,q1,q2),o3=getOrientation(p2,q2,p1),o4=getOrientation(p2,q2,q1);return o1!==o2&&o3!==o4||"colinear"===o1&&onSegment(p1,p2,q1)||
521
+ "colinear"===o2&&onSegment(p1,q2,q1)||"colinear"===o3&&onSegment(p2,p1,q2)||"colinear"===o4&&onSegment(p2,q1,q2)?!0:!1}var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_util_textSelection__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(35),_Core_Math__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(6);__webpack_exports__.a={roundAngleIfCloseToMultipleOf90:function(angle){return.5>=angle&&359.5<=angle?0:90.5>=angle&&89.5<=angle?90:180.5>=angle&&179.5<=angle?180:270.5>=angle&&269.5<=
522
+ angle?270:angle},makeRect:function(x,y,width,height){return null===x||null===y||null===width||null===height?null:{x1:x,y1:y,x2:x+width,y2:y+height}},pointHitTest:function(point,rect){if(!rect||!point)return!1;"undefined"!==typeof rect.x1&&"undefined"!==typeof rect.y1&&"undefined"!==typeof rect.x2&&"undefined"!==typeof rect.y2||Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("rect points are undefined");var xInRect=point.x>=rect.x1&&point.x<=rect.x2;point=point.y>=rect.y1&&point.y<=rect.y2;return xInRect&&
523
+ point},rectIntersect:function(rect1,rect2){return rect1&&rect2?rect1.x1<=rect2.x2&&rect1.x2>=rect2.x1&&rect1.y1<=rect2.y2&&rect1.y2>=rect2.y1?!0:!1:!1},pdfToXodCoordinates:function(x1,y1,x2,y2,pageMatrix){x1=new _util_textSelection__WEBPACK_IMPORTED_MODULE_1__.b(x1,y1);x2=new _util_textSelection__WEBPACK_IMPORTED_MODULE_1__.b(x2,y2);y2=pageMatrix.mult(x1);pageMatrix=pageMatrix.mult(x2);return{x:Math.min(y2.x,pageMatrix.x),y:Math.min(y2.y,pageMatrix.y),w:Math.abs(y2.x-pageMatrix.x),h:Math.abs(y2.y-
524
+ pageMatrix.y)}},Math:{createPseudoRandomNumberGenerator:function(seedString){return function(a){return function(){var t=a+=1831565813;t=Math.imul(t^t>>>15,t|1);t^=t+Math.imul(t^t>>>7,t|61);return((t^t>>>14)>>>0)/4294967296}}(function(seedString){var h;var i=0;for(h=1779033703^seedString.length;i<seedString.length;i++)h=Math.imul(h^seedString.charCodeAt(i),3432918353),h=h<<13|h>>>19;return function(){h=Math.imul(h^h>>>16,2246822507);h=Math.imul(h^h>>>13,3266489909);h^=h>>>16;return h>>>=0}}(seedString)())},
525
+ linesIntersect:function(p1,p2,p3,p4){return CCW(p1,p3,p4)!==CCW(p2,p3,p4)&&CCW(p1,p2,p3)!==CCW(p1,p2,p4)},getAngle:function(p1,p2){var normalizedAngle=Math.atan(Math.abs(p1.y-p2.y)/Math.abs(p1.x-p2.x));p2.x<p1.x&&p2.y>p1.y?normalizedAngle=Math.PI-normalizedAngle:p2.x<=p1.x&&p2.y<p1.y?(normalizedAngle=Math.PI-normalizedAngle,normalizedAngle*=-1):p2.x>=p1.x&&p2.y<p1.y&&(normalizedAngle*=-1);0===normalizedAngle&&p1.x>p2.x&&(normalizedAngle=Math.PI);return normalizedAngle},rotatePoint:function(p,angle,
526
+ origin){origin=origin||{x:0,y:0};var xNorm=p.x-origin.x;p=p.y-origin.y;return new _Core_Math__WEBPACK_IMPORTED_MODULE_2__.a(Math.cos(angle)*xNorm-Math.sin(angle)*p+origin.x,Math.sin(angle)*xNorm+Math.cos(angle)*p+origin.y)},clamp:function(value,bottom,top){top=void 0!==top?top:Infinity;bottom=void 0!==bottom?bottom:-Infinity;return Math.max(Math.min(value,top),bottom)},getAngleFromCoordinates:function(x,y){return Math.atan2(y,x)},getPolyWrapDirection:function(polyPath){if(!(3>polyPath.length)){for(var A=
527
+ polyPath[0],accum=0,i=1;i<polyPath.length;i++){var B=polyPath[i];accum+=(B.x-A.x)*(B.y+A.y);A=B}return 0<=accum?1:-1}},clonePolyPath:function(polyPath){for(var retPath=[],i=0;i<polyPath.length;i++)retPath.push({x:polyPath[i].x,y:polyPath[i].y});return retPath},polyPathIsOpen:function(polyPath){if(1>polyPath.length)return!1;var lastEdgeYLength=Math.abs(polyPath[polyPath.length-1].y-polyPath[0].y);return 1.2358E-4<Math.abs(polyPath[polyPath.length-1].x-polyPath[0].x)||1.2358E-4<lastEdgeYLength?!0:!1},
528
+ rotationMatrix:function(angle){var c=Math.cos(angle);angle=Math.sin(angle);return{m_a:c,m_b:-angle,m_c:angle,m_d:c,m_h:0,m_v:0}},translate:function(matrix,x,y){matrix.m_h+=x;matrix.m_v+=y;return matrix},mult:function(matrix,x,y){return{x:x*matrix.m_a+y*matrix.m_c+matrix.m_h,y:x*matrix.m_b+y*matrix.m_d+matrix.m_v}},arcToCurves:function(startX,startY,outPoints,outOperations,xr,yr,rx,isLargeArc,sweep,endX,endY){0>xr&&(xr=-xr);0>yr&&(yr=-yr);var dx2=(startX-endX)/2,dy2=(startY-endY)/2,cosA=Math.cos(rx),
529
+ sinA=Math.sin(rx),x1=cosA*dx2+sinA*dy2;dx2=-sinA*dx2+cosA*dy2;dy2=xr*xr;var pry=yr*yr,px1=x1*x1,py1=dx2*dx2,radiiCheck=px1/dy2+py1/pry;1<radiiCheck&&(xr*=Math.sqrt(radiiCheck),yr*=Math.sqrt(radiiCheck),dy2=xr*xr,pry=yr*yr);if(radiiCheck=dy2*py1+pry*px1){dy2=(dy2*pry-dy2*py1-pry*px1)/radiiCheck;isLargeArc=(isLargeArc===sweep?-1:1)*Math.sqrt(0>dy2?0:dy2);pry=xr*dx2/yr*isLargeArc;px1=isLargeArc*-(yr*x1/xr);isLargeArc=(startX+endX)/2+(cosA*pry-sinA*px1);cosA=(startY+endY)/2+(sinA*pry+cosA*px1);sinA=(x1-
530
+ pry)/xr;dy2=(dx2-px1)/yr;pry=(-x1-pry)/xr;dx2=(-dx2-px1)/yr;px1=Math.sqrt(sinA*sinA+dy2*dy2);x1=(0>dy2?-1:1)*Math.acos(sinA/px1);px1=Math.sqrt((sinA*sinA+dy2*dy2)*(pry*pry+dx2*dx2));dy2=(0>sinA*dx2-dy2*pry?-1:1)*Math.acos(Math.max(Math.min((sinA*pry+dy2*dx2)/px1,1),-1));!sweep&&0<dy2?dy2-=2*Math.PI:sweep&&0>dy2&&(dy2+=2*Math.PI);dx2=[];sinA=!1;if(1E-9>Math.abs(dy2))sweep=4,sinA=!0,dx2[0]=xr*Math.cos(x1),dx2[1]=yr*Math.sin(x1),dx2[2]=xr*Math.cos(x1+dy2),dx2[3]=yr*Math.sin(x1+dy2);else{pry=0;sweep=
531
+ 2;py1=!1;do{0>dy2?(radiiCheck=pry,px1=.5*-Math.PI,pry-=.5*Math.PI,pry<=dy2+.01&&(px1=dy2-radiiCheck,py1=!0)):(radiiCheck=pry,px1=.5*Math.PI,pry+=.5*Math.PI,pry>=dy2-.01&&(px1=dy2-radiiCheck,py1=!0));var x0=Math.cos(px1/2),y0=Math.sin(px1/2),tx=4*(1-x0)/3,ty=y0-tx*x0/y0;radiiCheck=[];var py=[];radiiCheck[0]=x0;py[0]=-y0;radiiCheck[1]=x0+tx;py[1]=-ty;radiiCheck[2]=x0+tx;py[2]=ty;radiiCheck[3]=x0;py[3]=y0;x0=Math.sin(x1+px1/2);y0=Math.cos(x1+px1/2);for(tx=0;4>tx;tx++)dx2[sweep-2+2*tx]=xr*(radiiCheck[tx]*
532
+ y0-py[tx]*x0),dx2[sweep-1+2*tx]=yr*(radiiCheck[tx]*x0+py[tx]*y0);sweep+=6;x1+=px1}while(!py1&&26>sweep)}xr=this.rotationMatrix(-rx);this.translate(xr,isLargeArc,cosA);for(yr=2;yr<sweep-2;yr+=2)rx=void 0===dx2[yr]?this.mult(xr,0,0):this.mult(xr,dx2[yr],dx2[yr+1]),dx2[yr]=rx.x,dx2[yr+1]=rx.y;dx2[0]=startX;dx2[1]=startY;2<sweep&&(dx2[sweep-2]=endX,dx2[sweep-1]=endY);if(sinA)outOperations.push("l"),outOperations.push("l"),outPoints.push(dx2[0]),outPoints.push(dx2[1]),outPoints.push(dx2[2]),outPoints.push(dx2[3]);
533
+ else for(outOperations.push("l"),outPoints.push(dx2[0]),outPoints.push(dx2[1]),startX=2;startX<sweep;startX+=6)outOperations.push("c"),outPoints.push(dx2[startX]),outPoints.push(dx2[startX+1]),outPoints.push(dx2[startX+2]),outPoints.push(dx2[startX+3]),outPoints.push(dx2[startX+4]),outPoints.push(dx2[startX+5])}},crossProduct:function(vec1,vec2){return vec1.x*vec2.y-vec1.y*vec2.x},normalizeDegree:function(rad){return 1E4*(rad+2*Math.PI)%2*Math.PI*1E4/1E4},getLockedEndPoint:function(pt1,pt2){var angle=
534
+ 180*Math.atan2(pt2.y-pt1.y,pt2.x-pt1.x)/Math.PI;pt2=Math.sqrt(Math.pow(pt2.x-pt1.x,2)+Math.pow(pt2.y-pt1.y,2));return pt2=-157.5>angle?{x:pt1.x-pt2,y:pt1.y}:-112.5>angle?{x:pt1.x-pt2*Math.sin(Math.PI/4),y:pt1.y-pt2*Math.sin(Math.PI/4)}:-67.5>angle?{x:pt1.x,y:pt1.y-pt2}:-22.5>angle?{x:pt1.x+pt2*Math.sin(Math.PI/4),y:pt1.y-pt2*Math.sin(Math.PI/4)}:22.5>angle?{x:pt1.x+pt2,y:pt1.y}:67.5>angle?{x:pt1.x+pt2*Math.sin(Math.PI/4),y:pt1.y+pt2*Math.sin(Math.PI/4)}:112.5>angle?{x:pt1.x,y:pt1.y+pt2}:157.5>angle?
535
+ {x:pt1.x-pt2*Math.sin(Math.PI/4),y:pt1.y+pt2*Math.sin(Math.PI/4)}:{x:pt1.x-pt2,y:pt1.y}},perpendicularPoint:function(x1,y1,x2,y2,controlLength){var p4=[],p3=[];var slope=-1/((y2-y1)/(x2-x1));p3[0]=(x1+x2)/2;p3[1]=(y1+y2)/2;x1=-slope*p3[0]+p3[1];p4[0]=p3[0]+controlLength;p4[1]=slope*(p3[0]+controlLength)+x1;return p4},midpoint:function(pt1,pt2){return[pt1,pt2].some(function(pt){return!(pt instanceof _Core_Math__WEBPACK_IMPORTED_MODULE_2__.a)})?null:new _Core_Math__WEBPACK_IMPORTED_MODULE_2__.a((pt1.x+
536
+ pt2.x)/2,(pt1.y+pt2.y)/2)},distance:function(pt1,pt2){if([pt1,pt2].some(function(pt){return!(pt instanceof _Core_Math__WEBPACK_IMPORTED_MODULE_2__.a)}))return null;var dx=pt1.x-pt2.x;pt1=pt1.y-pt2.y;return Math.sqrt(dx*dx+pt1*pt1)},onSegment:onSegment,getOrientation:getOrientation,intersect:intersect,lineRectIntersect:function(p1,q1,rect){var x1=rect.x1,y1=rect.y1,x2=rect.x2;rect=rect.y2;return[[new _Core_Math__WEBPACK_IMPORTED_MODULE_2__.a(x1,y1),new _Core_Math__WEBPACK_IMPORTED_MODULE_2__.a(x2,
537
+ y1)],[new _Core_Math__WEBPACK_IMPORTED_MODULE_2__.a(x1,y1),new _Core_Math__WEBPACK_IMPORTED_MODULE_2__.a(x1,rect)],[new _Core_Math__WEBPACK_IMPORTED_MODULE_2__.a(x1,rect),new _Core_Math__WEBPACK_IMPORTED_MODULE_2__.a(x2,rect)],[new _Core_Math__WEBPACK_IMPORTED_MODULE_2__.a(x2,y1),new _Core_Math__WEBPACK_IMPORTED_MODULE_2__.a(x2,rect)]].some(function(line){var JSCompiler_temp_const=intersect.apply,JSCompiler_temp_const$jscomp$0=[p1,q1],JSCompiler_temp_const$jscomp$1=JSCompiler_temp_const$jscomp$0.concat;
538
+ var JSCompiler_temp=Array.isArray(line)?_arrayLikeToArray(line):void 0;JSCompiler_temp||(JSCompiler_temp="undefined"!==typeof Symbol&&null!=line[Symbol.iterator]||null!=line["@@iterator"]?Array.from(line):void 0);if(!JSCompiler_temp)a:{if(line){if("string"===typeof line){JSCompiler_temp=_arrayLikeToArray(line,void 0);break a}JSCompiler_temp=Object.prototype.toString.call(line).slice(8,-1);"Object"===JSCompiler_temp&&line.constructor&&(JSCompiler_temp=line.constructor.name);if("Map"===JSCompiler_temp||
539
+ "Set"===JSCompiler_temp){JSCompiler_temp=Array.from(line);break a}if("Arguments"===JSCompiler_temp||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(JSCompiler_temp)){JSCompiler_temp=_arrayLikeToArray(line,void 0);break a}}JSCompiler_temp=void 0}if(!(line=JSCompiler_temp))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return JSCompiler_temp_const.call(intersect,void 0,JSCompiler_temp_const$jscomp$1.call(JSCompiler_temp_const$jscomp$0,
540
+ line))})}}}},function(module,exports){module.exports="function"===typeof Object.create?function(ctor,superCtor){superCtor&&(ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}}))}:function(ctor,superCtor){if(superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor;ctor.prototype.constructor=ctor}}},function(module,__webpack_exports__,__webpack_require__){var _textSelection_Quad__WEBPACK_IMPORTED_MODULE_0__=
541
+ __webpack_require__(12),_Word__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(24),_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_helpers_stringHelper__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(37);module=function(){function Line(){this._m_Words=[];this._m_CurNum=-1;this._m_Direction=[];this._m_quad=Array(8);this._m_next_line=null;this._m_Str="";this._m_Quads=null}Line.prototype.initDefault=function(){this._m_CurNum=this._m_Pos=-1;this._m_Direction=[]};Line.prototype.initLine=
542
+ function(line){this._m_CurNum=line._m_CurNum;this._m_Direction=line._m_Direction;this._m_Str=line._m_Str;this._m_Quads=line._m_Quads};Line.prototype.equal=function(line){return this._m_CurNum===line.getCurrentNum()};Line.prototype.getNumWords=function(){return this._m_Words.length};Line.prototype.getFirstWord=function(){return this._m_Words.length?this._m_Words[0]:new _Word__WEBPACK_IMPORTED_MODULE_1__.a};Line.prototype.getLastWord=function(){return this._m_Words.length?this._m_Words[this._m_Words.length-
543
+ 1]:new _Word__WEBPACK_IMPORTED_MODULE_1__.a};Line.prototype.getWord=function(word_idx){return 0>word_idx||word_idx>=this.getNumWords()?new _Word__WEBPACK_IMPORTED_MODULE_1__.a:this._m_Words[word_idx]};Line.prototype.getNextLine=function(){return null==this._m_next_line?new Line:this._m_next_line};Line.prototype.getBBox=function(bbox){bbox.setFromQuad(this._m_quad)};Line.prototype.getCurrentNum=function(){return this._m_CurNum};Line.prototype._setCurrentNum=function(curNum){this._m_CurNum=curNum};
544
+ Line.prototype.getDirection=function(){if(this._m_Direction.length)return this._m_Direction[0];var g1=new _SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a,g2=new _SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;(new _Word__WEBPACK_IMPORTED_MODULE_1__.a).initDefault();var w1=this.getFirstWord(),w2=this.getLastWord(),q1=Array(8),q2=Array(8);w1.getGlyphQuad(0,q1);g1.x=(q1[0]+q1[2]+q1[4]+q1[6])/4;g1.y=(q1[1]+q1[3]+q1[5]+q1[7])/4;w2.getGlyphQuad(w2.getNumGlyphs()-1,q2);g2.x=(q2[0]+q2[2]+q2[4]+q2[6])/4;g2.y=
545
+ (q2[1]+q2[3]+q2[5]+q2[7])/4;.01>Math.abs(g1.x-g2.x)&&.01>Math.abs(g1.y-g2.y)&&this._m_Direction.push(0);g1=Math.atan2(g2.y-g1.y,g2.x-g1.x);g1*=180/3.1415926;0>g1&&(g1+=360);this._m_Direction.push(g1);return 0};Line.prototype.setNextLine=function(line){this._m_next_line=line};Line.prototype.addWord=function(word){0<this._m_Words.length&&this._m_Words[this._m_Words.length-1].setNextWord(word);this._m_Words.push(word);var first_word=Object(_helpers_stringHelper__WEBPACK_IMPORTED_MODULE_3__.b)(this._m_Str),
546
+ quad=Array(8);word.getQuad(quad);if(first_word)for(first_word=0;8>first_word;first_word++)this._m_quad[first_word]=quad[first_word];else this._m_Str+=" ",_textSelection_Quad__WEBPACK_IMPORTED_MODULE_0__.a._merge(this._m_quad,quad,1,!1,0);this._m_Str+=word.getString()};return Line}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3),lodash__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
547
+ var logger__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),_Core_Math__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6),_Color__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(63),_util_textSelection__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(35),defaultAppearanceCommands=["Tf","rg"],_pad=function(str){return 2>str.length?"0"+str:str},getAttribute=function(element,attr){return element.getAttribute(attr)||element.getAttribute(attr.toLowerCase())},getLocalName=function(element){return element.localName||
548
+ element.baseName||element.nodeName},getFirstChildElement=function(data){data=Object(lodash__WEBPACK_IMPORTED_MODULE_1__.filter)(data.childNodes,function(element){return 1===element.nodeType});return 0<data.length?data[0]:null},serializeRect=function(rect,pageMatrix,separator){if("undefined"===typeof separator||null===separator)separator=",";var pt1=new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(rect.x1,rect.y1);rect=new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(rect.x2,rect.y2);pageMatrix.mult(pt1);
549
+ pageMatrix.mult(rect);pageMatrix=Number.isInteger(pt1.x)?pt1.x:pt1.x.toFixed(3);pt1=Number.isInteger(pt1.y)?pt1.y:pt1.y.toFixed(3);var point2X=Number.isInteger(rect.x)?rect.x:rect.x.toFixed(3);rect=Number.isInteger(rect.y)?rect.y:rect.y.toFixed(3);return""+pageMatrix+separator+pt1+separator+point2X+separator+rect},deserializeRect=function(rectString,pageMatrix,separator){if("undefined"===typeof separator||null===separator)separator=",";if("undefined"===typeof rectString||null===rectString)rectString=
550
+ "0,0,0,0";separator=rectString.split(separator);rectString=new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(separator[0],separator[1]);separator=new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(separator[2],separator[3]);pageMatrix&&(pageMatrix.mult(rectString),pageMatrix.mult(separator));return new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.b(rectString.x,rectString.y,separator.x,separator.y)},serializeColor=function(color){if("undefined"===typeof color||null===color||!(color instanceof _Color__WEBPACK_IMPORTED_MODULE_4__.a)||
551
+ 0===color.A)return null;var r=color.R.toString(16).toUpperCase();2>r.length&&(r="0"+r);var g=color.G.toString(16).toUpperCase();2>g.length&&(g="0"+g);color=color.B.toString(16).toUpperCase();2>color.length&&(color="0"+color);return"#"+r+g+color},getCSSColor=function(r,g,b){r="#"+_pad(r.toString(16));r+=_pad(g.toString(16));return r+=_pad(b.toString(16))},getStyleFontName=function(fontName){return 1<fontName.split(" ").length?"'"+fontName+"'":fontName},parseFontName=function(name){function checkFontName(startsWith,
552
+ replace){var fName=name;0===fName.indexOf(startsWith)&&(fName=replace);return fName}name=checkFontName("Arial","Arial");name=checkFontName("Courier","Courier");name=checkFontName("Helv","Arial");return name=checkFontName("Times","Times New Roman")},setPropertyOnObject=function(object,property,value){Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isUndefined)(value)||Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isNull)(value)||(object[property]=value)},setNumberPropertyOnObject=function(object,property,
553
+ value){Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isUndefined)(value)||Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isNull)(value)||(object[property]=Number(value))},setPropertyOnElement=function(element,attribute,value){Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isUndefined)(value)||Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isNull)(value)||element.setAttribute(attribute,value)},serializeNumberFormat=function(numberFormatDictionary){var numberFormat=document.createElementNS("","numberformat");setPropertyOnElement(numberFormat,
554
+ "factor",numberFormatDictionary.factor);setPropertyOnElement(numberFormat,"unit",numberFormatDictionary.unit);setPropertyOnElement(numberFormat,"decimal-symbol",numberFormatDictionary.decimalSymbol);setPropertyOnElement(numberFormat,"thousands-symbol",numberFormatDictionary.thousandsSymbol);setPropertyOnElement(numberFormat,"display",numberFormatDictionary.display);setPropertyOnElement(numberFormat,"precision",numberFormatDictionary.precision);setPropertyOnElement(numberFormat,"unit-prefix",numberFormatDictionary.unitPrefix);
555
+ setPropertyOnElement(numberFormat,"unit-suffix",numberFormatDictionary.unitSuffix);setPropertyOnElement(numberFormat,"unit-position",numberFormatDictionary.unitPosition);return numberFormat},deserializeNumberFormat=function(numberFormatDictionary){var numberFormat={};setNumberPropertyOnObject(numberFormat,"factor",numberFormatDictionary.getAttribute("factor"));setPropertyOnObject(numberFormat,"unit",numberFormatDictionary.getAttribute("unit"));setPropertyOnObject(numberFormat,"decimalSymbol",numberFormatDictionary.getAttribute("decimal-symbol")||
556
+ ".");setPropertyOnObject(numberFormat,"thousandsSymbol",numberFormatDictionary.getAttribute("thousands-symbol")||",");setPropertyOnObject(numberFormat,"display",numberFormatDictionary.getAttribute("display")||"D");setNumberPropertyOnObject(numberFormat,"precision",numberFormatDictionary.getAttribute("precision")||100);setPropertyOnObject(numberFormat,"unitPrefix",numberFormatDictionary.getAttribute("unit-prefix")||"");setPropertyOnObject(numberFormat,"unitSuffix",numberFormatDictionary.getAttribute("unit-suffix")||
557
+ "");setPropertyOnObject(numberFormat,"unitPosition",numberFormatDictionary.getAttribute("unit-position")||"S");return numberFormat};__webpack_exports__.a={getXFDFElements:function(xfdfData){if("string"!==typeof xfdfData)return xfdfData;var parser=new DOMParser;xfdfData=xfdfData.replace(' xmlns="http://www.w3.org/1999/xhtml"',"");parser=parser.parseFromString(xfdfData,"text/xml");0<parser.getElementsByTagName("parsererror").length&&Object(logger__WEBPACK_IMPORTED_MODULE_2__.f)(parser.getElementsByTagName("parsererror")[0].textContent);
532
558
  return parser},toXMLDate:function(date){var dateStr="D:"+date.getFullYear().toString();dateStr+=_pad((date.getMonth()+1).toString());dateStr+=_pad(date.getDate().toString());dateStr+=_pad(date.getHours().toString());dateStr+=_pad(date.getMinutes().toString());dateStr+=_pad(date.getSeconds().toString());var offset=date.getTimezoneOffset();0===offset?dateStr+="Z00'00'":(0>offset?(dateStr+="+",offset*=-1):dateStr+="-",date=parseInt(offset/60,10),offset%=60,dateStr+=_pad(date.toString())+"'",dateStr+=
533
559
  _pad(offset.toString())+"'");return dateStr},toDateString:function(date){return date.getFullYear().toString()+"-"+_pad((date.getMonth()+1).toString())+"-"+_pad(date.getDate().toString())+" "+_pad(date.getHours().toString())+":"+_pad(date.getMinutes().toString())+":"+_pad(date.getSeconds().toString())},escape:function(val){val&&(val=Object(lodash__WEBPACK_IMPORTED_MODULE_1__.escape)(val),val=val.replace(/(?:\r\n|\r|\n)/g,"&#xA;"));return val},toFixed:function(val,numDecimals){Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isUndefined)(numDecimals)&&
534
560
  (numDecimals=2);return parseFloat(val.toFixed(numDecimals)).toString()},getAttribute:getAttribute,getLocalName:getLocalName,getElements:function(data,elementName){var elementList=[];data=data.getElementsByTagName(elementName);if(0===data.length)return elementList;for(var i=0;i<data.length;++i){var elementStr=data[i].outerHTML||data[i].xml;if(Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isUndefined)(elementStr)||0!==elementStr.indexOf("<"+elementName+" "))elementStr=(new XMLSerializer).serializeToString(data[i]);
@@ -556,339 +582,338 @@ return measure},serializeNumberFormat:serializeNumberFormat,deserializeNumberFor
556
582
  globalStyle);var rootElement=document.createElementNS("","p"),textStyleLocations=Object.keys(style$jscomp$0).map(function(location){return parseInt(location,10)});textStyleLocations.forEach(function(location,i){var cssStyle=style$jscomp$0[location];location=contents.slice(location,i===textStyleLocations.length-1?contents.length:textStyleLocations[i+1]);i=document.createElementNS("","span");cssStyle=serializeStyle(cssStyle);i.textContent=location;cssStyle&&i.setAttribute("style",cssStyle);rootElement.appendChild(i)});
557
583
  body.appendChild(rootElement);rcElement.appendChild(body);return rcElement},deserializeRichText:function(rcElement){var parseStyle=function(styleStr){var result={};if(!styleStr)return result;styleStr.split(";").forEach(function(style){style=style.split(":");result[style[0]]=style[1]});return result},extractNodes=function(rootEle){var result=[];if(!rootEle)return result;rootEle.childNodes.forEach(function(node){node.nodeType===Node.TEXT_NODE||1===node.childNodes.length&&node.childNodes[0].nodeType===
558
584
  Node.TEXT_NODE?result.push(node):result=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.d)(result,extractNodes(node))});return result},body=rcElement.querySelector("body");rcElement=rcElement.textContent;var style$jscomp$0=null,globalStyle=null;if(body){var location_1=0;globalStyle=parseStyle(body.getAttribute("style"));style$jscomp$0={};style$jscomp$0[location_1]=globalStyle;body=extractNodes(body);body.length&&body.forEach(function(node){style$jscomp$0[location_1]=node.getAttribute?Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},
559
- globalStyle),parseStyle(node.getAttribute("style"))):Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},globalStyle);location_1+=node.textContent.length})}return{style:style$jscomp$0,globalStyle:globalStyle,contents:rcElement}}}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return getState});__webpack_require__.d(__webpack_exports__,"b",function(){return setState});var subscriptions={},globalState={flattenedResources:!1,CANVAS_CACHE_SIZE:void 0,
560
- maxPagesBefore:void 0,maxPagesAhead:void 0,disableLogs:!1,wvsQueryParameters:{},_trnDebugMode:!1,_logFiltersEnabled:null},getState=function(key){return globalState[key]},setState=function(key,value){var _a;globalState[key]=value;null===(_a=subscriptions[key])||void 0===_a?void 0:_a.forEach(function(func){func(value)})}},function(module,exports,__webpack_require__){function Duplex(options){if(!(this instanceof Duplex))return new Duplex(options);Readable.call(this,options);Writable.call(this,options);
561
- options&&!1===options.readable&&(this.readable=!1);options&&!1===options.writable&&(this.writable=!1);this.allowHalfOpen=!0;options&&!1===options.allowHalfOpen&&(this.allowHalfOpen=!1);this.once("end",onend)}function onend(){this.allowHalfOpen||this._writableState.ended||pna.nextTick(onEndNT,this)}function onEndNT(self){self.end()}var pna=__webpack_require__(44);exports=Object.keys||function(obj){var keys=[],key;for(key in obj)keys.push(key);return keys};module.exports=Duplex;module=Object.create(__webpack_require__(38));
562
- module.inherits=__webpack_require__(25);var Readable=__webpack_require__(62),Writable=__webpack_require__(57);module.inherits(Duplex,Readable);__webpack_require__=exports(Writable.prototype);for(module=0;module<__webpack_require__.length;module++)exports=__webpack_require__[module],Duplex.prototype[exports]||(Duplex.prototype[exports]=Writable.prototype[exports]);Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});
563
- Object.defineProperty(Duplex.prototype,"destroyed",{get:function(){return void 0===this._readableState||void 0===this._writableState?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(value){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=value,this._writableState.destroyed=value)}});Duplex.prototype._destroy=function(err,cb){this.push(null);this.end();pna.nextTick(cb,err)}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);
564
- __webpack_require__.d(__webpack_exports__,"AnnotationManagerEvents",function(){return AnnotationManagerEvents});__webpack_require__.d(__webpack_exports__,"AnnotationManagerPrivateEvents",function(){return AnnotationManagerPrivateEvents});__webpack_require__.d(__webpack_exports__,"DocumentViewerEvents",function(){return DocumentViewerEvents});__webpack_require__.d(__webpack_exports__,"DocumentViewerPrivateEvents",function(){return DocumentViewerPrivateEvents});var AnnotationManagerEvents={ANNOTATION_SELECTED:"annotationSelected",
565
- ANNOTATION_DESELECTED:"annotationDeselected",ANNOTATION_DOUBLE_CLICKED:"annotationDoubleClicked",ANNOTATION_CHANGED:"annotationChanged",UPDATE_ANNOTATION_PERMISSION:"updateAnnotationPermission",ANNOTATIONS_DRAWN:"annotationsDrawn",ANNOTATION_HIDDEN:"annotationHidden",SET_NOTE_TEXT:"setNoteText",ADD_REPLY:"addReply",DELETE_REPLY:"deleteReply",FIELD_CHANGED:"fieldChanged",FILE_ATTACHMENT_DATA_AVAILABLE:"fileAttachmentDataAvailable"},AnnotationManagerPrivateEvents={ANNOTATION_CHANGED_EDITBOX:"annotationChanged.editbox",
566
- ANNOTATION_DOUBLE_CLICKED_EDITBOX:"annotationDoubleClicked.editbox",ANNOTATION_SELECTED_CROP_TOOL:"annotationSelected.cropTool",ANNOTATION_CHANGED_CROP_TOOL:"annotationChanged.cropTool"},DocumentViewerEvents={ACTIVE_SEARCH_RESULT_CHANGED:"activeSearchResultChanged",SEARCH_RESULTS_CHANGED:"searchResultsChanged",MOUSE_LEFT_UP:"mouseLeftUp",MOUSE_LEFT_DOWN:"mouseLeftDown",CLICK:"click",TAP:"tap",DBL_CLICK:"dblClick",KEY_DOWN:"keyDown",KEY_UP:"keyUp",MOUSE_ENTER:"mouseEnter",MOUSE_MOVE:"mouseMove",MOUSE_LEAVE:"mouseLeave",
567
- MOUSE_RIGHT_DOWN:"mouseRightDown",MOUSE_RIGHT_UP:"mouseRightUp",DOCUMENT_UNLOADED:"documentUnloaded",ANNOTATIONS_LOADED:"annotationsLoaded",BEFORE_DOCUMENT_LOADED:"beforeDocumentLoaded",DOCUMENT_LOADED:"documentLoaded",DISPLAY_PAGE_LOCATION:"displayPageLocation",NOTIFY:"notify",SEARCH_IN_PROGRESS:"searchInProgress",TEXT_SELECTED:"textSelected",TOOL_MODE_UPDATED:"toolModeUpdated",FIT_MODE_UPDATED:"fitModeUpdated",ROTATION_UPDATED:"rotationUpdated",ZOOM_UPDATED:"zoomUpdated",PAGE_NUMBER_UPDATED:"pageNumberUpdated",
568
- LAYOUT_CHANGED:"layoutChanged",PAGE_COMPLETE:"pageComplete",DISPLAY_MODE_UPDATED:"displayModeUpdated",BEGIN_RENDERING:"beginRendering",FINISHED_RENDERING:"finishedRendering",CLIENT_SIDE_DOCUMENT_LOADED:"clientSideDocumentLoaded",TOOL_UPDATED:"toolUpdated",EMBEDDED_THUMBNAIL_COMPLETE:"embeddedThumbnailComplete",READ_ONLY_MODE_CHANGED:"readOnlyModeChanged"},DocumentViewerPrivateEvents={ANNOTATIONS_LOADED_INTERNAL:"annotationsLoaded.internal",DOCUMENT_READY_ANNOTS_LOADED:"documentReady.annotsLoaded",
569
- PAUSE:"PAUSE",RESUME:"RESUME",END_OF_DOCUMENT_RESULT:"endOfDocumentResult",CONTENT_REMOVED_ANNOT_MANAGER:"contentRemoved.annotManager",MOUSE_MOVE_HOVER:"mouseMove.hover",BACKEND_SWITCH:"backendSwitch",PAGE_PROGRESSIVE_UPDATE:"pageProgressiveUpdate",ROTATION_UPDATED_TEXT_TOOL:"rotationUpdated.textTool",VISIBLE_PAGES_CHANGED:"visiblePagesChanged",DOCUMENT_READY:"documentReady",BOOKMARKS_UPDATED:"bookmarksUpdated",CONTENT_REMOVED:"contentRemoved"}},function(module,__webpack_exports__,__webpack_require__){module=
570
- function(){return function(_found_str,_found_start_itr,_found_end_itr,_ambient,_result_str_start,_result_str_end){this._found_str=_found_str;this._found_start_itr=_found_start_itr;this._found_end_itr=_found_end_itr;this._ambient=_ambient;this._result_str_start=_result_str_start;this._result_str_end=_result_str_end;this._found_str=_found_str;this._found_start_itr=_found_start_itr||0;this._found_end_itr=_found_end_itr||0;this._ambient=_ambient;this._result_str_start=_result_str_start||0;this._result_str_end=
571
- _result_str_end||0}}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return XODText_TextSearchLowlevelReEscape});var XODText_TextSearchLowlevelReEscape=RegExp("[-[\\]{}()*+?.,\\\\^$|#\\s]","g");module=function(){return function(text,options){this.isRegex=options&&("r"===options||"w"===options);this.text=(options&&"w"===options?text.replace(/(\*+|.|\n)/g,function(found){if("*"===found.charAt(0)){if(1==
572
- found.length)return".*?";var num_asterisks=found.length/2|0;return(found.length|0)&1?"*".repeat(num_asterisks).replace(XODText_TextSearchLowlevelReEscape,"\\$&")+".*?":"*".repeat(num_asterisks).replace(XODText_TextSearchLowlevelReEscape,"\\$&")}return found.replace(XODText_TextSearchLowlevelReEscape,"\\$&")}):text).replaceAll("\n"," ")}}();__webpack_exports__.b=module},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"c",function(){return WASM});__webpack_require__.d(__webpack_exports__,
573
- "a",function(){return JS_WORKER});__webpack_require__.d(__webpack_exports__,"b",function(){return THREADED_WASM});var WASM="ems",JS_WORKER="jsworker",THREADED_WASM="wasm-threads"},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"b",function(){return isNullOrEmpty});__webpack_require__.d(__webpack_exports__,"a",function(){return insertString});var isNullOrEmpty=function(s){return!s||!s.length},insertString=function(s,index,value){if(!value)return s;
574
- if(!index)return value+s;var s1=s.substr(0,index);s=s.substr(index);return s1+value+s}},function(module,__webpack_exports__,__webpack_require__){module=function(){function Highlight(){this._length=this._position=this._page_num=0}Highlight.prototype._initDefault=function(){this._length=this._position=this._page_num=0};Highlight.prototype._initMembers=function(pg,off,len){this._page_num=pg;this._position=off;this._length=len};Highlight.prototype._initHighlight=function(hl){this._page_num=hl._page_num;
575
- this._position=hl._position;this._length=hl._length};return Highlight}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){function _defineProperty(obj,key,value){key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value;return obj}var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);var _XFDFUtils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(27),
576
- _Enum;module=function(options){this._set={};this._mask=null;this._unsupported=0;Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isObject)(options)&&(Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isArray)(options.mask)&&this.extendMask(options.mask),options.onUpdate&&(this._onUpdate=options.onUpdate))};module.READ_ONLY="ReadOnly";module.REQUIRED="Required";module.NO_EXPORT="NoExport";module.MULTILINE="Multiline";module.PASSWORD="Password";module.COMB="Comb";module.NO_TOGGLE_TO_OFF="NoToggleToOff";module.RADIO=
577
- "Radio";module.PUSH_BUTTON="PushButton";module.COMBO="Combo";module.EDIT="Edit";module.DO_NOT_SCROLL="DoNotScroll";module.RADIOS_IN_UNISON="RadiosInUnison";module.FILE_SELECT="FileSelect";module.DO_NOT_SPELL_CHECK="DoNotSpellCheck";module.RICH_TEXT="RichText";module.SORT="Sort";module.MULTI_SELECT="MultiSelect";module.COMMIT_ON_SEL_CHANGE="CommitOnSelChange";module.prototype={Enum:(_Enum={},_defineProperty(_Enum,module.READ_ONLY,1),_defineProperty(_Enum,module.REQUIRED,2),_defineProperty(_Enum,module.NO_EXPORT,
578
- 4),_defineProperty(_Enum,module.MULTILINE,4096),_defineProperty(_Enum,module.PASSWORD,8192),_defineProperty(_Enum,module.NO_TOGGLE_TO_OFF,16384),_defineProperty(_Enum,module.RADIO,32768),_defineProperty(_Enum,module.PUSH_BUTTON,65536),_defineProperty(_Enum,module.COMBO,131072),_defineProperty(_Enum,module.EDIT,262144),_defineProperty(_Enum,module.DO_NOT_SCROLL,8388608),_defineProperty(_Enum,module.RADIOS_IN_UNISON,33554432),_Enum),clear:function(){this._set={};this._onUpdate&&this._onUpdate()},extendMask:function(mask){Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isNull)(this._mask)&&
585
+ globalStyle),parseStyle(node.getAttribute("style"))):Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},globalStyle);location_1+=node.textContent.length})}return{style:style$jscomp$0,globalStyle:globalStyle,contents:rcElement}},prepareLinksForInsertion:function(xfdfString,pageNumber){var _a,xfdfDoc=(new DOMParser).parseFromString(xfdfString,"text/xml"),annotElements=null===(_a=xfdfDoc.querySelector("annots"))||void 0===_a?void 0:_a.children;if(!annotElements)return xfdfString;for(xfdfString=annotElements.length-
586
+ 1;0<=xfdfString;xfdfString--)_a=annotElements[xfdfString],"link"!==_a.tagName.toLowerCase()?_a.remove():_a.setAttribute("page",""+(pageNumber-1));return(new XMLSerializer).serializeToString(xfdfDoc)}}},function(module,exports,__webpack_require__){function Duplex(options){if(!(this instanceof Duplex))return new Duplex(options);Readable.call(this,options);Writable.call(this,options);options&&!1===options.readable&&(this.readable=!1);options&&!1===options.writable&&(this.writable=!1);this.allowHalfOpen=
587
+ !0;options&&!1===options.allowHalfOpen&&(this.allowHalfOpen=!1);this.once("end",onend)}function onend(){this.allowHalfOpen||this._writableState.ended||pna.nextTick(onEndNT,this)}function onEndNT(self){self.end()}var pna=__webpack_require__(48);exports=Object.keys||function(obj){var keys=[],key;for(key in obj)keys.push(key);return keys};module.exports=Duplex;module=Object.create(__webpack_require__(42));module.inherits=__webpack_require__(28);var Readable=__webpack_require__(66),Writable=__webpack_require__(60);
588
+ module.inherits(Duplex,Readable);__webpack_require__=exports(Writable.prototype);for(module=0;module<__webpack_require__.length;module++)exports=__webpack_require__[module],Duplex.prototype[exports]||(Duplex.prototype[exports]=Writable.prototype[exports]);Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Duplex.prototype,"destroyed",{get:function(){return void 0===this._readableState||void 0===
589
+ this._writableState?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(value){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=value,this._writableState.destroyed=value)}});Duplex.prototype._destroy=function(err,cb){this.push(null);this.end();pna.nextTick(cb,err)}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,"AnnotationManagerEvents",
590
+ function(){return AnnotationManagerEvents});__webpack_require__.d(__webpack_exports__,"AnnotationManagerPrivateEvents",function(){return AnnotationManagerPrivateEvents});__webpack_require__.d(__webpack_exports__,"DocumentViewerEvents",function(){return DocumentViewerEvents});__webpack_require__.d(__webpack_exports__,"DocumentViewerPrivateEvents",function(){return DocumentViewerPrivateEvents});var AnnotationManagerEvents={ANNOTATION_SELECTED:"annotationSelected",ANNOTATION_DESELECTED:"annotationDeselected",
591
+ ANNOTATION_DOUBLE_CLICKED:"annotationDoubleClicked",ANNOTATION_CHANGED:"annotationChanged",UPDATE_ANNOTATION_PERMISSION:"updateAnnotationPermission",ANNOTATIONS_DRAWN:"annotationsDrawn",ANNOTATION_HIDDEN:"annotationHidden",SET_NOTE_TEXT:"setNoteText",ADD_REPLY:"addReply",DELETE_REPLY:"deleteReply",FIELD_CHANGED:"fieldChanged",FILE_ATTACHMENT_DATA_AVAILABLE:"fileAttachmentDataAvailable"},AnnotationManagerPrivateEvents={ANNOTATION_CHANGED_EDITBOX:"annotationChanged.editbox",ANNOTATION_DOUBLE_CLICKED_EDITBOX:"annotationDoubleClicked.editbox",
592
+ ANNOTATION_SELECTED_CROP_TOOL:"annotationSelected.cropTool",ANNOTATION_CHANGED_CROP_TOOL:"annotationChanged.cropTool"},DocumentViewerEvents={ACTIVE_SEARCH_RESULT_CHANGED:"activeSearchResultChanged",SEARCH_RESULTS_CHANGED:"searchResultsChanged",MOUSE_LEFT_UP:"mouseLeftUp",MOUSE_LEFT_DOWN:"mouseLeftDown",CLICK:"click",TAP:"tap",DBL_CLICK:"dblClick",KEY_DOWN:"keyDown",KEY_UP:"keyUp",MOUSE_ENTER:"mouseEnter",MOUSE_MOVE:"mouseMove",MOUSE_LEAVE:"mouseLeave",MOUSE_RIGHT_DOWN:"mouseRightDown",MOUSE_RIGHT_UP:"mouseRightUp",
593
+ DOCUMENT_UNLOADED:"documentUnloaded",ANNOTATIONS_LOADED:"annotationsLoaded",BEFORE_DOCUMENT_LOADED:"beforeDocumentLoaded",DOCUMENT_LOADED:"documentLoaded",DISPLAY_PAGE_LOCATION:"displayPageLocation",NOTIFY:"notify",SEARCH_IN_PROGRESS:"searchInProgress",TEXT_SELECTED:"textSelected",TOOL_MODE_UPDATED:"toolModeUpdated",FIT_MODE_UPDATED:"fitModeUpdated",ROTATION_UPDATED:"rotationUpdated",ZOOM_UPDATED:"zoomUpdated",PAGE_NUMBER_UPDATED:"pageNumberUpdated",LAYOUT_CHANGED:"layoutChanged",PAGE_COMPLETE:"pageComplete",
594
+ DISPLAY_MODE_UPDATED:"displayModeUpdated",BEGIN_RENDERING:"beginRendering",FINISHED_RENDERING:"finishedRendering",CLIENT_SIDE_DOCUMENT_LOADED:"clientSideDocumentLoaded",TOOL_UPDATED:"toolUpdated",EMBEDDED_THUMBNAIL_COMPLETE:"embeddedThumbnailComplete",READ_ONLY_MODE_CHANGED:"readOnlyModeChanged"},DocumentViewerPrivateEvents={ANNOTATIONS_LOADED_INTERNAL:"annotationsLoaded.internal",DOCUMENT_READY_ANNOTS_LOADED:"documentReady.annotsLoaded",PAUSE:"PAUSE",RESUME:"RESUME",END_OF_DOCUMENT_RESULT:"endOfDocumentResult",
595
+ CONTENT_REMOVED_ANNOT_MANAGER:"contentRemoved.annotManager",MOUSE_MOVE_HOVER:"mouseMove.hover",BACKEND_SWITCH:"backendSwitch",PAGE_PROGRESSIVE_UPDATE:"pageProgressiveUpdate",ROTATION_UPDATED_TEXT_TOOL:"rotationUpdated.textTool",VISIBLE_PAGES_CHANGED:"visiblePagesChanged",DOCUMENT_READY:"documentReady",BOOKMARKS_UPDATED:"bookmarksUpdated",CONTENT_REMOVED:"contentRemoved"}},function(module,__webpack_exports__,__webpack_require__){module=function(){return function(_found_str,_found_start_itr,_found_end_itr,
596
+ _ambient,_result_str_start,_result_str_end){this._found_str=_found_str;this._found_start_itr=_found_start_itr;this._found_end_itr=_found_end_itr;this._ambient=_ambient;this._result_str_start=_result_str_start;this._result_str_end=_result_str_end;this._found_str=_found_str;this._found_start_itr=_found_start_itr||0;this._found_end_itr=_found_end_itr||0;this._ambient=_ambient;this._result_str_start=_result_str_start||0;this._result_str_end=_result_str_end||0}}();__webpack_exports__.a=module},function(module,
597
+ __webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return XODText_TextSearchLowlevelReEscape});var XODText_TextSearchLowlevelReEscape=RegExp("[-[\\]{}()*+?.,\\\\^$|#\\s]","g");module=function(){return function(text,options){this.isRegex=options&&("r"===options||"w"===options);this.text=(options&&"w"===options?text.replace(/(\*+|.|\n)/g,function(found){if("*"===found.charAt(0)){if(1==found.length)return".*?";var num_asterisks=found.length/2|0;return(found.length|
598
+ 0)&1?"*".repeat(num_asterisks).replace(XODText_TextSearchLowlevelReEscape,"\\$&")+".*?":"*".repeat(num_asterisks).replace(XODText_TextSearchLowlevelReEscape,"\\$&")}return found.replace(XODText_TextSearchLowlevelReEscape,"\\$&")}):text).replaceAll("\n"," ")}}();__webpack_exports__.b=module},function(module,__webpack_exports__,__webpack_require__){var _Matrix2D__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(13);__webpack_require__.d(__webpack_exports__,"a",function(){return _Matrix2D__WEBPACK_IMPORTED_MODULE_0__.a});
599
+ var _Point2D__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(19);__webpack_require__.d(__webpack_exports__,"b",function(){return _Point2D__WEBPACK_IMPORTED_MODULE_1__.a});__webpack_require__(12);__webpack_require__(43);__webpack_require__(38);__webpack_require__(53);__webpack_require__(44);__webpack_require__(7);__webpack_require__(16);__webpack_require__(80);__webpack_require__(81);__webpack_require__(82);__webpack_require__(21);__webpack_require__(45);__webpack_require__(54);__webpack_require__(33);
600
+ __webpack_require__(34);module=__webpack_require__(85);__webpack_require__.n(module)},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"c",function(){return WASM});__webpack_require__.d(__webpack_exports__,"a",function(){return JS_WORKER});__webpack_require__.d(__webpack_exports__,"b",function(){return THREADED_WASM});var WASM="ems",JS_WORKER="jsworker",THREADED_WASM="wasm-threads"},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,
601
+ "b",function(){return isNullOrEmpty});__webpack_require__.d(__webpack_exports__,"a",function(){return insertString});var isNullOrEmpty=function(s){return!s||!s.length},insertString=function(s,index,value){if(!value)return s;if(!index)return value+s;var s1=s.substr(0,index);s=s.substr(index);return s1+value+s}},function(module,__webpack_exports__,__webpack_require__){module=function(){function Highlight(){this._length=this._position=this._page_num=0}Highlight.prototype._initDefault=function(){this._length=
602
+ this._position=this._page_num=0};Highlight.prototype._initMembers=function(pg,off,len){this._page_num=pg;this._position=off;this._length=len};Highlight.prototype._initHighlight=function(hl){this._page_num=hl._page_num;this._position=hl._position;this._length=hl._length};return Highlight}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return RTL});__webpack_require__.d(__webpack_exports__,"b",function(){return getScrollViewDirection});
603
+ var RTL="rtl",getScrollViewDirection=function(){}},function(module,__webpack_exports__,__webpack_require__){function _defineProperty(obj,key,value){key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value;return obj}var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);var _XFDFUtils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(30),_Enum;module=function(options){this._set=
604
+ {};this._mask=null;this._unsupported=0;Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isObject)(options)&&(Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isArray)(options.mask)&&this.extendMask(options.mask),options.onUpdate&&(this._onUpdate=options.onUpdate))};module.READ_ONLY="ReadOnly";module.REQUIRED="Required";module.NO_EXPORT="NoExport";module.MULTILINE="Multiline";module.PASSWORD="Password";module.COMB="Comb";module.NO_TOGGLE_TO_OFF="NoToggleToOff";module.RADIO="Radio";module.PUSH_BUTTON="PushButton";
605
+ module.COMBO="Combo";module.EDIT="Edit";module.DO_NOT_SCROLL="DoNotScroll";module.RADIOS_IN_UNISON="RadiosInUnison";module.FILE_SELECT="FileSelect";module.DO_NOT_SPELL_CHECK="DoNotSpellCheck";module.RICH_TEXT="RichText";module.SORT="Sort";module.MULTI_SELECT="MultiSelect";module.COMMIT_ON_SEL_CHANGE="CommitOnSelChange";module.prototype={Enum:(_Enum={},_defineProperty(_Enum,module.READ_ONLY,1),_defineProperty(_Enum,module.REQUIRED,2),_defineProperty(_Enum,module.NO_EXPORT,4),_defineProperty(_Enum,
606
+ module.MULTILINE,4096),_defineProperty(_Enum,module.PASSWORD,8192),_defineProperty(_Enum,module.NO_TOGGLE_TO_OFF,16384),_defineProperty(_Enum,module.RADIO,32768),_defineProperty(_Enum,module.PUSH_BUTTON,65536),_defineProperty(_Enum,module.COMBO,131072),_defineProperty(_Enum,module.EDIT,262144),_defineProperty(_Enum,module.DO_NOT_SCROLL,8388608),_defineProperty(_Enum,module.RADIOS_IN_UNISON,33554432),_Enum),clear:function(){this._set={};this._onUpdate&&this._onUpdate()},extendMask:function(mask){Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isNull)(this._mask)&&
579
607
  (this._mask={});for(var length=mask.length,i=0;i<length;++i){var name=mask[i];this._mask[name]=this.Enum[name]||0}},decipherBitField:function(flags){var result=[],Enum=this._mask||this.Enum;Object.keys(Enum).forEach(function(name){0!==(flags&Enum[name])&&(flags&=~Enum[name],result.push(name))});return{result:result,unsupported:flags}},get:function(flag){return!!this._set[flag]},toBitfield:function(){var _this=this,result=0;Object.keys(this._set).forEach(function(flag){_this._set.hasOwnProperty(flag)&&
580
608
  !0===_this._set[flag]&&(result|=_this.Enum[flag])});return result|this._unsupported},toArray:function(){var me=this;return Object.keys(this._set).filter(function(k){return me._set[k]})},deserialize:function(element){element=_XFDFUtils__WEBPACK_IMPORTED_MODULE_1__.a.getAttribute(element,"Ff");this.set(parseInt(element,10))},serialize:function(element){element.setAttribute("Ff",String(this.toBitfield()))},set:function(options,shouldSet){if(Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isArray)(options)){shouldSet=
581
609
  options.length;for(var i=0;i<shouldSet;++i)this.set(options[i])}else Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(options)?(options=this.decipherBitField(options),this._unsupported|=options.unsupported,this.set(options.result)):Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isString)(options)&&(i=!0,Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(shouldSet)||(i=!!shouldSet),this._mask?Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(this._mask[options])?this._unsupported|=this.Enum[options]||
582
- 0:this._set[options]=i:this._set[options]=i,this._onUpdate&&this._onUpdate())}};__webpack_exports__.a=module},function(module,exports,__webpack_require__){exports=module.exports=__webpack_require__(62);exports.Stream=exports;exports.Readable=exports;exports.Writable=__webpack_require__(57);exports.Duplex=__webpack_require__(29);exports.Transform=__webpack_require__(67);exports.PassThrough=__webpack_require__(106)},function(module,exports,__webpack_require__){exports.isArray=function(arg){return Array.isArray?
610
+ 0:this._set[options]=i:this._set[options]=i,this._onUpdate&&this._onUpdate())}};__webpack_exports__.a=module},function(module,exports,__webpack_require__){exports=module.exports=__webpack_require__(66);exports.Stream=exports;exports.Readable=exports;exports.Writable=__webpack_require__(60);exports.Duplex=__webpack_require__(31);exports.Transform=__webpack_require__(71);exports.PassThrough=__webpack_require__(122)},function(module,exports,__webpack_require__){exports.isArray=function(arg){return Array.isArray?
583
611
  Array.isArray(arg):"[object Array]"===Object.prototype.toString.call(arg)};exports.isBoolean=function(arg){return"boolean"===typeof arg};exports.isNull=function(arg){return null===arg};exports.isNullOrUndefined=function(arg){return null==arg};exports.isNumber=function(arg){return"number"===typeof arg};exports.isString=function(arg){return"string"===typeof arg};exports.isSymbol=function(arg){return"symbol"===typeof arg};exports.isUndefined=function(arg){return void 0===arg};exports.isRegExp=function(re){return"[object RegExp]"===
584
612
  Object.prototype.toString.call(re)};exports.isObject=function(arg){return"object"===typeof arg&&null!==arg};exports.isDate=function(d){return"[object Date]"===Object.prototype.toString.call(d)};exports.isError=function(e){return"[object Error]"===Object.prototype.toString.call(e)||e instanceof Error};exports.isFunction=function(arg){return"function"===typeof arg};exports.isPrimitive=function(arg){return null===arg||"boolean"===typeof arg||"number"===typeof arg||"string"===typeof arg||"symbol"===typeof arg||
585
- "undefined"===typeof arg};exports.isBuffer=__webpack_require__(20).Buffer.isBuffer},function(module,__webpack_exports__,__webpack_require__){var _Quad__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9),_HighlightDocInfo__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(48),_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(23),_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_helpers_stringHelper__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(34);module=function(){function Highlights(){this._m_HighlightSet=
613
+ "undefined"===typeof arg};exports.isBuffer=__webpack_require__(22).Buffer.isBuffer},function(module,__webpack_exports__,__webpack_require__){var _Quad__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(12),_HighlightDocInfo__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(53),_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(25),_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_helpers_stringHelper__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(37);module=function(){function Highlights(){this._m_HighlightSet=
586
614
  null}Highlights._compare=function(p1,p2){return p1._page_num<p2._page_num||p1._page_num===p2._page_num&&p1._position<p2._position||p1._page_num===p2._page_num&&p1._position===p2._position&&p1._length<p2._length?-1:p1._page_num===p2._page_num&&p1._position===p2._position&&p1._length===p2._length?0:1};Highlights.prototype._init=function(){this._m_HighlightSet=[]};Highlights.prototype._initAdd=function(hlts){this._addSet(hlts)};Highlights.prototype._add=function(hlt){this._m_HighlightSet.push(hlt)};
587
615
  Highlights.prototype._addSet=function(hlts){for(hlts=Object(_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_2__.a)(hlts._m_HighlightSet);hlts.moveNext();)this._m_HighlightSet.push(hlts.current)};Highlights.prototype._getSize=function(){return this._m_HighlightSet.length};Highlights.prototype._clear=function(){Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_3__.b)(this._m_HighlightSet)};Highlights.prototype._computeDocInfo=function(pages,infos){Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_3__.b)(infos);
588
616
  for(var hlt_list=[],$enum1=Object(_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_2__.a)(this._m_HighlightSet);$enum1.moveNext();){var hlt=$enum1.current;hlt_list.push(hlt)}hlt_list.sort(Highlights._compare);$enum1="";for(var offsets,quads=[],map_off_to_id=[],max_off=-2147483648,i=0;i<hlt_list.length;++i)if(hlt=hlt_list[i],!(0>hlt._page_num||hlt._page_num>=pages.length||0>hlt._position||0>=hlt._length)){if(-1!==hlt._page_num){quads=pages[hlt._page_num].text;if(null===quads||!quads.ready())return!1;$enum1=
589
617
  quads.getStr();offsets=quads.getOffsets();quads=quads.getQuads();if(!$enum1.length||$enum1.length!==offsets.length||8*$enum1.length!==quads.length)continue;max_off=-2147483648;for(var $enum2=Object(_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_2__.a)(offsets);$enum2.moveNext();){var o=$enum2.current;o>max_off&&(max_off=o)}Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_3__.b)(map_off_to_id);for(var j=0;j<max_off+1;++j)map_off_to_id.push(-1);for(j=0;j<offsets.length;++j)$enum2=offsets[j],0<=$enum2&&
590
618
  (map_off_to_id[$enum2]=j)}offsets=Array(8);for($enum2=hlt._position;$enum2<hlt._position+hlt._length&&!($enum2>max_off);++$enum2)if(o=map_off_to_id[$enum2],!(0>o)){for(j=0;8>j;++j)offsets[j]=quads[8*o+j];var merged=!1;if(1<=infos.length&&(j=infos[infos.length-1],j._page_num===hlt._page_num)){var x=offsets[0]-offsets[2],y=offsets[1]-offsets[3];_Quad__WEBPACK_IMPORTED_MODULE_0__.a._merge(j._quad,offsets,1,!0,1.33*Math.sqrt(x*x+y*y))&&(merged=$enum1.charAt(o),Object(_helpers_stringHelper__WEBPACK_IMPORTED_MODULE_4__.a)(j._str,
591
- j._str.length,merged),merged=!0)}merged||(merged=$enum1.charAt(o),o=new _HighlightDocInfo__WEBPACK_IMPORTED_MODULE_1__.a,o._initMembers(hlt._page_num,merged,offsets),infos.push(o))}}return 0<infos.length};return Highlights}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var _selectionInfo_SelectionRect__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(18);module=function(){return function(){this._m_transformed_bbox=new _selectionInfo_SelectionRect__WEBPACK_IMPORTED_MODULE_0__.a;
619
+ j._str.length,merged),merged=!0)}merged||(merged=$enum1.charAt(o),o=new _HighlightDocInfo__WEBPACK_IMPORTED_MODULE_1__.a,o._initMembers(hlt._page_num,merged,offsets),infos.push(o))}}return 0<infos.length};return Highlights}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var _selectionInfo_SelectionRect__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(20);module=function(){return function(){this._m_transformed_bbox=new _selectionInfo_SelectionRect__WEBPACK_IMPORTED_MODULE_0__.a;
592
620
  this._m_bbox=new _selectionInfo_SelectionRect__WEBPACK_IMPORTED_MODULE_0__.a;this._m_last_line=this._m_first_line=null}}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){return function(_first_line,_last_line){this._first_line=_first_line;this._last_line=_last_line;this._first_line=_first_line;this._last_line=_last_line}}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){function nsIDOMCanvasGradient(){}
593
621
  nsIDOMCanvasGradient.prototype.A=function(stop,color){};nsIDOMCanvasGradient.prototype.addColorStop=function(stop,color){};return nsIDOMCanvasGradient}();__webpack_exports__.a=module},function(module$jscomp$0,exports){module$jscomp$0.exports=function(module){module.webpackPolyfill||(module.deprecate=function(){},module.paths=[],module.children||(module.children=[]),Object.defineProperty(module,"loaded",{enumerable:!0,get:function(){return module.l}}),Object.defineProperty(module,"id",{enumerable:!0,
594
622
  get:function(){return module.i}}),module.webpackPolyfill=1);return module}},function(module,exports,__webpack_require__){(function(process){function nextTick(fn,arg1,arg2,arg3){if("function"!==typeof fn)throw new TypeError('"callback" argument must be a function');var len=arguments.length;switch(len){case 0:case 1:return process.nextTick(fn);case 2:return process.nextTick(function(){fn.call(null,arg1)});case 3:return process.nextTick(function(){fn.call(null,arg1,arg2)});case 4:return process.nextTick(function(){fn.call(null,
595
- arg1,arg2,arg3)});default:var args=Array(len-1);for(len=0;len<args.length;)args[len++]=arguments[len];return process.nextTick(function(){fn.apply(null,args)})}}"undefined"===typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?module.exports={nextTick:nextTick}:module.exports=process}).call(this,__webpack_require__(21))},function(module,exports,__webpack_require__){module="undefined"!==typeof Uint8Array&&"undefined"!==
623
+ arg1,arg2,arg3)});default:var args=Array(len-1);for(len=0;len<args.length;)args[len++]=arguments[len];return process.nextTick(function(){fn.apply(null,args)})}}"undefined"===typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?module.exports={nextTick:nextTick}:module.exports=process}).call(this,__webpack_require__(23))},function(module,exports,__webpack_require__){module="undefined"!==typeof Uint8Array&&"undefined"!==
596
624
  typeof Uint16Array&&"undefined"!==typeof Int32Array;exports.assign=function(obj){for(var sources=Array.prototype.slice.call(arguments,1);sources.length;){var source=sources.shift();if(source){if("object"!==typeof source)throw new TypeError(source+"must be non-object");for(var p in source)Object.prototype.hasOwnProperty.call(source,p)&&(obj[p]=source[p])}}return obj};exports.shrinkBuf=function(buf,size){if(buf.length===size)return buf;if(buf.subarray)return buf.subarray(0,size);buf.length=size;return buf};
597
625
  var fnTyped={arraySet:function(dest,src,src_offs,len,dest_offs){if(src.subarray&&dest.subarray)dest.set(src.subarray(src_offs,src_offs+len),dest_offs);else for(var i=0;i<len;i++)dest[dest_offs+i]=src[src_offs+i]},flattenChunks:function(chunks){var l,len;var i=len=0;for(l=chunks.length;i<l;i++)len+=chunks[i].length;var result=new Uint8Array(len);i=len=0;for(l=chunks.length;i<l;i++){var chunk=chunks[i];result.set(chunk,len);len+=chunk.length}return result}},fnUntyped={arraySet:function(dest,src,src_offs,
598
- len,dest_offs){for(var i=0;i<len;i++)dest[dest_offs+i]=src[src_offs+i]},flattenChunks:function(chunks){return[].concat.apply([],chunks)}};exports.setTyped=function(on){on?(exports.Buf8=Uint8Array,exports.Buf16=Uint16Array,exports.Buf32=Int32Array,exports.assign(exports,fnTyped)):(exports.Buf8=Array,exports.Buf16=Array,exports.Buf32=Array,exports.assign(exports,fnUntyped))};exports.setTyped(module)},function(module,__webpack_exports__,__webpack_require__){var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);
599
- __webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);var _Point__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(15),_Quad__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(47);module=function(){function Rect(x1,y1,x2,y2){void 0===x1&&(x1=0);void 0===y1&&(y1=0);void 0===x2&&(x2=0);void 0===y2&&(y2=0);x1 instanceof Rect?(this.x1=x1.x1,this.y1=x1.y1,this.x2=x1.x2,this.y2=x1.y2):Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isArray)(x1)?(this.x1=x1[0],this.y1=x1[1],this.x2=x1[2],this.y2=x1[3]):Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isObject)(x1)?
600
- (this.x1=x1.x1,this.y1=x1.y1,this.x2=x1.x2,this.y2=x1.y2):(this.x1=x1,this.y1=y1,this.x2=x2,this.y2=y2)}Rect.intersects=function(rect1,rect2){var bottomTop=rect1.getBottom()<rect2.getTop(),topBottom=rect1.getTop()>rect2.getBottom(),leftRight=rect1.getLeft()>rect2.getRight();rect1=rect1.getRight()<rect2.getLeft();return!(leftRight||rect1||bottomTop||topBottom)};Rect.contains=function(rect,container){var bottomTop=rect.getTop()<=container.getTop(),topBottom=rect.getBottom()>=container.getBottom(),leftRight=
601
- rect.getLeft()<=container.getLeft();rect=rect.getRight()>=container.getRight();return leftRight&&rect&&bottomTop&&topBottom};Rect.createFromDimensions=function(x,y,width,height){return new Rect(x,y,x+width,y+height)};Rect.prototype.getX=function(){return this.x1};Rect.prototype.getY=function(){return this.y1};Rect.prototype.getLeft=function(){return this.x1};Rect.prototype.getRight=function(){return this.x2};Rect.prototype.getTop=function(){return this.y1};Rect.prototype.getBottom=function(){return this.y2};
602
- Rect.prototype.getWidth=function(){return this.x2-this.x1};Rect.prototype.getHeight=function(){return this.y2-this.y1};Rect.prototype.getCenter=function(){var halfWidth=this.getWidth()/2,halfHeight=this.getHeight()/2,center=this.getTopLeft();center.translate(halfWidth,halfHeight);return center};Rect.prototype.getTopLeft=function(){return new _Point__WEBPACK_IMPORTED_MODULE_1__.a(this.x1,this.y1)};Rect.prototype.getTopRight=function(){return new _Point__WEBPACK_IMPORTED_MODULE_1__.a(this.x2,this.y1)};
603
- Rect.prototype.getBottomLeft=function(){return new _Point__WEBPACK_IMPORTED_MODULE_1__.a(this.x1,this.y2)};Rect.prototype.getBottomRight=function(){return new _Point__WEBPACK_IMPORTED_MODULE_1__.a(this.x2,this.y2)};Rect.prototype.translate=function(x,y){this.x1+=x;this.y1+=y;this.x2+=x;this.y2+=y};Rect.prototype.fitTo=function(boundaryRect){var tx=0,ty=0;if(this.getWidth()<=boundaryRect.getWidth()){var dx2=boundaryRect.x2-this.x2;0>dx2&&(tx=dx2);dx2=boundaryRect.x1-this.x1;0<dx2&&(tx=dx2)}this.getHeight()<=
604
- boundaryRect.getHeight()&&(dx2=boundaryRect.y2-this.y2,0>dx2&&(ty=dx2),boundaryRect=boundaryRect.y1-this.y1,0<boundaryRect&&(ty=boundaryRect));this.translate(tx,ty)};Rect.prototype.normalize=function(){if(0>this.getWidth()){var temp=this.x1;this.x1=this.x2;this.x2=temp}0>this.getHeight()&&(temp=this.y1,this.y1=this.y2,this.y2=temp)};Rect.prototype.fitToBoundary=function(boundaryWidth,boundaryHeight){this.x2=Math.min(this.x2,boundaryWidth-1);this.y2=Math.min(this.y2,boundaryHeight-1)};Rect.prototype.exportNormalize=
605
- function(){if(this.x1>this.x2){var temp=this.x1;this.x1=this.x2;this.x2=temp}this.y2>this.y1&&(temp=this.y1,this.y1=this.y2,this.y2=temp)};Rect.prototype.isEqual=function(otherRect){return this.x1===otherRect.x1&&this.y1===otherRect.y1&&this.x2===otherRect.x2&&this.y2===otherRect.y2};Rect.prototype.equalTo=function(otherRect){return this.isEqual(otherRect)};Rect.prototype.isZeroRect=function(){return 0===this.x1&&0===this.y1&&0===this.x2&&0===this.y2};Rect.prototype.isExceeding=function(otherRect){return this.x1<
606
- otherRect.x1||this.x2>otherRect.x2||this.y1<otherRect.y1||this.y2>otherRect.y2};Rect.prototype.intersects=function(otherRect){return Rect.intersects(this,otherRect)};Rect.prototype.contains=function(otherRect){return Rect.contains(this,otherRect)};Rect.prototype.transform=function(transform){var topLeft=this.getTopLeft(),bottomRight=this.getBottomRight();topLeft.transform(transform);bottomRight.transform(transform);this.x1=Math.min(topLeft.getX(),bottomRight.getX());this.y1=Math.min(topLeft.getY(),
607
- bottomRight.getY());this.x2=Math.max(topLeft.getX(),bottomRight.getX());this.y2=Math.max(topLeft.getY(),bottomRight.getY())};Rect.prototype.toQuad=function(){var bottomLeft=this.getBottomLeft(),bottomRight=this.getBottomRight(),topRight=this.getTopRight(),topLeft=this.getTopLeft();return new _Quad__WEBPACK_IMPORTED_MODULE_2__.a(bottomLeft.X,bottomLeft.Y,bottomRight.X,bottomRight.Y,topRight.X,topRight.Y,topLeft.X,topLeft.Y)};return Rect}();__webpack_exports__.a=module},function(module,__webpack_exports__,
608
- __webpack_require__){var _Rect__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(46);module=function(){function Quad(x1,y1,x2,y2,x3,y3,x4,y4){this.x1=x1;this.y1=y1;this.x2=x2;this.y2=y2;this.x3=x3;this.y3=y3;this.x4=x4;this.y4=y4}Quad.prototype.normalize=function(){};Quad.prototype.getArrayQuad=function(){var tmp=[];tmp.push(this.x1);tmp.push(this.y1);tmp.push(this.x2);tmp.push(this.y2);tmp.push(this.x3);tmp.push(this.y3);tmp.push(this.x4);tmp.push(this.y4);return tmp};Quad.prototype.toRect=function(){return new _Rect__WEBPACK_IMPORTED_MODULE_0__.a(this.x4,
609
- this.y4,this.x2,this.y2)};return Quad}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){function HighlightDocInfo(){this._page_num=0;this._quad=this._str=null}HighlightDocInfo.prototype._initDefault=function(){this._page_num=0;this._str="";this._quad=Array(8)};HighlightDocInfo.prototype._initMembers=function(pn,s,q){this._page_num=pn;this._str=s;this._quad=Array(8);for(pn=0;8>pn;++pn)this._quad[pn]=q[pn]};HighlightDocInfo.prototype._initHDI=
610
- function(hdi){this._page_num=hdi._page_num;this._str=hdi._str;this._quad=Array(8);for(var i=0;8>i;++i)this._quad[i]=hdi._quad[i]};return HighlightDocInfo}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){return function(_s,_e){this._s=_s;this._e=_e;this._s=_s||0;this._e=_e||0}}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){function Letter(ch,quad){this._m_ch=ch;this._m_quad=Array(8);
611
- this._m_quad[0]=quad[0];this._m_quad[1]=quad[1];this._m_quad[2]=quad[2];this._m_quad[3]=quad[3];this._m_quad[4]=quad[4];this._m_quad[5]=quad[5];this._m_quad[6]=quad[6];this._m_quad[7]=quad[7]}Letter.prototype.getQuad=function(){for(var quad=Array(8),i=0;8>i;i++)quad[i]=this._m_quad[i];return quad};Letter.prototype.getChar=function(){return this._m_ch};return Letter}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){return function(val){void 0===
612
- val&&(val=0);this.W=this.width=val}}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"b",function(){return PageRotation});__webpack_require__.d(__webpack_exports__,"a",function(){return AnnotationAppearanceStates});__webpack_require__(82);var PageRotation;(function(PageRotation){PageRotation[PageRotation.E_0=0]="E_0";PageRotation[PageRotation.E_90=1]="E_90";PageRotation[PageRotation.E_180=2]="E_180";PageRotation[PageRotation.E_270=
613
- 3]="E_270";PageRotation[PageRotation.e_0=0]="e_0";PageRotation[PageRotation.e_90=1]="e_90";PageRotation[PageRotation.e_180=2]="e_180";PageRotation[PageRotation.e_270=3]="e_270"})(PageRotation||(PageRotation={}));var REVIEWSTATES;(function(REVIEWSTATES){REVIEWSTATES.ACCEPTED="Accepted";REVIEWSTATES.REJECTED="Rejected";REVIEWSTATES.CANCELLED="Cancelled";REVIEWSTATES.COMPLETED="Completed";REVIEWSTATES.NONE="None"})(REVIEWSTATES||(REVIEWSTATES={}));var MARKEDSTATES;(function(MARKEDSTATES){MARKEDSTATES.MARKED=
614
- "Marked";MARKEDSTATES.UNMARKED="Unmarked"})(MARKEDSTATES||(MARKEDSTATES={}));var STATEMODEL;(function(STATEMODEL){STATEMODEL.MARKED="Marked";STATEMODEL.REVIEW="Review"})(STATEMODEL||(STATEMODEL={}));var AnnotationAppearanceStates;(function(AnnotationAppearanceStates){AnnotationAppearanceStates.NORMAL="Normal";AnnotationAppearanceStates.ROLLOVER="Rollover"})(AnnotationAppearanceStates||(AnnotationAppearanceStates={}));var FontStyles;(function(FontStyles){FontStyles.BOLD="BOLD";FontStyles.ITALIC="ITALIC";
615
- FontStyles.UNDERLINE="UNDERLINE"})(FontStyles||(FontStyles={}))},function(module$jscomp$2,exports$jscomp$1,__webpack_require__){(function(Buffer,global$jscomp$0,process$jscomp$0,module$jscomp$1){function _typeof2(obj$jscomp$0){"@babel/helpers - typeof";_typeof2="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};return _typeof2(obj$jscomp$0)}
616
- var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(root,factory){"object"===_typeof2(exports$jscomp$1)&&"object"===_typeof2(module$jscomp$1)?module$jscomp$1.exports=factory():!(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_FACTORY__=factory,__WEBPACK_AMD_DEFINE_RESULT__="function"===typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports$jscomp$1,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,void 0!==
617
- __WEBPACK_AMD_DEFINE_RESULT__&&(module$jscomp$1.exports=__WEBPACK_AMD_DEFINE_RESULT__))})(this,function(){return function(modules){function __w_pdfjs_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__w_pdfjs_require__);module.l=!0;return module.exports}var installedModules={};__w_pdfjs_require__.m=modules;__w_pdfjs_require__.c=installedModules;
618
- __w_pdfjs_require__.d=function(exports,name,getter){__w_pdfjs_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})};__w_pdfjs_require__.r=function(exports){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});Object.defineProperty(exports,"__esModule",{value:!0})};__w_pdfjs_require__.t=function(value,mode){mode&1&&(value=__w_pdfjs_require__(value));if(mode&8||mode&4&&"object"===_typeof2(value)&&value&&
619
- value.__esModule)return value;var ns=Object.create(null);__w_pdfjs_require__.r(ns);Object.defineProperty(ns,"default",{enumerable:!0,value:value});if(mode&2&&"string"!=typeof value)for(var key$jscomp$0 in value)__w_pdfjs_require__.d(ns,key$jscomp$0,function(key){return value[key]}.bind(null,key$jscomp$0));return ns};__w_pdfjs_require__.n=function(module){var getter=module&&module.__esModule?function(){return module["default"]}:function(){return module};__w_pdfjs_require__.d(getter,"a",getter);return getter};
620
- __w_pdfjs_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__w_pdfjs_require__.p="";return __w_pdfjs_require__(__w_pdfjs_require__.s=0)}([function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(1);var pdfjsDisplayAPI=__w_pdfjs_require__(184),pdfjsDisplayTextLayer=__w_pdfjs_require__(199),pdfjsDisplayAnnotationLayer=__w_pdfjs_require__(200),pdfjsDisplayDisplayUtils=__w_pdfjs_require__(188),pdfjsDisplaySVG=__w_pdfjs_require__(201),pdfjsDisplayWorkerOptions=
621
- __w_pdfjs_require__(193),pdfjsDisplayAPICompatibility=__w_pdfjs_require__(190);if(__w_pdfjs_require__(48).isNodeJS){var PDFNodeStream=__w_pdfjs_require__(202).PDFNodeStream;pdfjsDisplayAPI.setPDFNetworkStreamFactory(function(params){return new PDFNodeStream(params)})}else{var PDFNetworkStream=__w_pdfjs_require__(205).PDFNetworkStream;if(pdfjsDisplayDisplayUtils.isFetchSupported())var PDFFetchStream=__w_pdfjs_require__(206).PDFFetchStream;pdfjsDisplayAPI.setPDFNetworkStreamFactory(function(params){return PDFFetchStream&&
622
- pdfjsDisplayDisplayUtils.isValidFetchUrl(params.url)?new PDFFetchStream(params):new PDFNetworkStream(params)})}exports.build=pdfjsDisplayAPI.build;exports.version=pdfjsDisplayAPI.version;exports.getDocument=pdfjsDisplayAPI.getDocument;exports.LoopbackPort=pdfjsDisplayAPI.LoopbackPort;exports.PDFDataRangeTransport=pdfjsDisplayAPI.PDFDataRangeTransport;exports.PDFWorker=pdfjsDisplayAPI.PDFWorker;exports.renderTextLayer=pdfjsDisplayTextLayer.renderTextLayer;exports.AnnotationLayer=pdfjsDisplayAnnotationLayer.AnnotationLayer;
623
- exports.createPromiseCapability=module.createPromiseCapability;exports.PasswordResponses=module.PasswordResponses;exports.InvalidPDFException=module.InvalidPDFException;exports.MissingPDFException=module.MissingPDFException;exports.SVGGraphics=pdfjsDisplaySVG.SVGGraphics;exports.NativeImageDecoding=module.NativeImageDecoding;exports.CMapCompressionType=module.CMapCompressionType;exports.PermissionFlag=module.PermissionFlag;exports.UnexpectedResponseException=module.UnexpectedResponseException;exports.OPS=
624
- module.OPS;exports.VerbosityLevel=module.VerbosityLevel;exports.UNSUPPORTED_FEATURES=module.UNSUPPORTED_FEATURES;exports.createValidAbsoluteUrl=module.createValidAbsoluteUrl;exports.createObjectURL=module.createObjectURL;exports.removeNullCharacters=module.removeNullCharacters;exports.shadow=module.shadow;exports.Util=module.Util;exports.RenderingCancelledException=pdfjsDisplayDisplayUtils.RenderingCancelledException;exports.getFilenameFromUrl=pdfjsDisplayDisplayUtils.getFilenameFromUrl;exports.LinkTarget=
625
- pdfjsDisplayDisplayUtils.LinkTarget;exports.addLinkAttributes=pdfjsDisplayDisplayUtils.addLinkAttributes;exports.loadScript=pdfjsDisplayDisplayUtils.loadScript;exports.PDFDateString=pdfjsDisplayDisplayUtils.PDFDateString;exports.GlobalWorkerOptions=pdfjsDisplayWorkerOptions.GlobalWorkerOptions;exports.apiCompatibilityParams=pdfjsDisplayAPICompatibility.apiCompatibilityParams},function(module,exports,__w_pdfjs_require__){function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=
626
- props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:
627
- function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"===typeof call))return call;if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
628
- return self}function _getPrototypeOf(o$jscomp$0){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)};return _getPrototypeOf(o$jscomp$0)}function _inherits(subClass,superClass){if("function"!==typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}});superClass&&
629
- _setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o$jscomp$0,p$jscomp$0){_setPrototypeOf=Object.setPrototypeOf||function(o,p){o.__proto__=p;return o};return _setPrototypeOf(o$jscomp$0,p$jscomp$0)}function warn(msg){verbosity>=VerbosityLevel.WARNINGS&&console.log("Warning: ".concat(msg))}function unreachable(msg){throw Error(msg);}function assert(cond,msg){cond||unreachable(msg)}function stringToBytes(str){assert("string"===typeof str,"Invalid argument for stringToBytes");for(var length=
630
- str.length,bytes=new Uint8Array(length),i=0;i<length;++i)bytes[i]=str.charCodeAt(i)&255;return bytes}function arrayByteLength(arr){if(void 0!==arr.length)return arr.length;assert(void 0!==arr.byteLength);return arr.byteLength}Object.defineProperty(exports,"__esModule",{value:!0});exports.arrayByteLength=arrayByteLength;exports.arraysToBytes=function(arr){var length=arr.length;if(1===length&&arr[0]instanceof Uint8Array)return arr[0];for(var resultLength=0,i=0;i<length;i++)resultLength+=arrayByteLength(arr[i]);
631
- i=0;resultLength=new Uint8Array(resultLength);for(var _i=0;_i<length;_i++){var item=arr[_i];item instanceof Uint8Array||(item="string"===typeof item?stringToBytes(item):new Uint8Array(item));var itemLength=item.byteLength;resultLength.set(item,i);i+=itemLength}return resultLength};exports.assert=assert;exports.bytesToString=function(bytes){assert(null!==bytes&&"object"===_typeof(bytes)&&void 0!==bytes.length,"Invalid argument for bytesToString");var length=bytes.length;if(8192>length)return String.fromCharCode.apply(null,
632
- bytes);for(var strBuf=[],i=0;i<length;i+=8192){var chunk=bytes.subarray(i,Math.min(i+8192,length));strBuf.push(String.fromCharCode.apply(null,chunk))}return strBuf.join("")};exports.createPromiseCapability=function(){var capability=Object.create(null),isSettled=!1;Object.defineProperty(capability,"settled",{get:function(){return isSettled}});capability.promise=new Promise(function(resolve,reject){capability.resolve=function(data){isSettled=!0;resolve(data)};capability.reject=function(reason){isSettled=
633
- !0;reject(reason)}});return capability};exports.getVerbosityLevel=function(){return verbosity};exports.info=function(msg){verbosity>=VerbosityLevel.INFOS&&console.log("Info: ".concat(msg))};exports.isArrayBuffer=function(v){return"object"===_typeof(v)&&null!==v&&void 0!==v.byteLength};exports.isArrayEqual=function(arr1,arr2){return arr1.length!==arr2.length?!1:arr1.every(function(element,index){return element===arr2[index]})};exports.isBool=function(v){return"boolean"===typeof v};exports.isEmptyObj=
634
- function(obj){for(var key in obj)return!1;return!0};exports.isNum=function(v){return"number"===typeof v};exports.isString=function(v){return"string"===typeof v};exports.isSpace=function(ch){return 32===ch||9===ch||13===ch||10===ch};exports.isSameOrigin=function(baseUrl,otherUrl){try{var base=new URL(baseUrl);if(!base.origin||"null"===base.origin)return!1}catch(e){return!1}baseUrl=new URL(otherUrl,base);return base.origin===baseUrl.origin};exports.createValidAbsoluteUrl=function(url,baseUrl){if(!url)return null;
635
- try{var absoluteUrl=baseUrl?new URL(url,baseUrl):new URL(url);a:if(absoluteUrl)switch(absoluteUrl.protocol){case "http:":case "https:":case "ftp:":case "mailto:":case "tel:":var JSCompiler_inline_result=!0;break a;default:JSCompiler_inline_result=!1}else JSCompiler_inline_result=!1;if(JSCompiler_inline_result)return absoluteUrl}catch(ex){}return null};exports.isLittleEndian=function(){var buffer8=new Uint8Array(4);buffer8[0]=1;return 1===(new Uint32Array(buffer8.buffer,0,1))[0]};exports.isEvalSupported=
636
- function(){try{return new Function(""),!0}catch(e){return!1}};exports.log2=function(x){return 0>=x?0:Math.ceil(Math.log2(x))};exports.readInt8=function(data,start){return data[start]<<24>>24};exports.readUint16=function(data,offset){return data[offset]<<8|data[offset+1]};exports.readUint32=function(data,offset){return(data[offset]<<24|data[offset+1]<<16|data[offset+2]<<8|data[offset+3])>>>0};exports.removeNullCharacters=function(str){return"string"!==typeof str?(warn("The argument for removeNullCharacters must be a string."),
637
- str):str.replace(NullCharactersRegExp,"")};exports.setVerbosityLevel=function(level){Number.isInteger(level)&&(verbosity=level)};exports.shadow=function(obj,prop,value){Object.defineProperty(obj,prop,{value:value,enumerable:!0,configurable:!0,writable:!1});return value};exports.string32=function(value){return String.fromCharCode(value>>24&255,value>>16&255,value>>8&255,value&255)};exports.stringToBytes=stringToBytes;exports.stringToPDFString=function(str){var length=str.length,strBuf=[];if("\u00fe"===
638
- str[0]&&"\u00ff"===str[1])for(var i=2;i<length;i+=2)strBuf.push(String.fromCharCode(str.charCodeAt(i)<<8|str.charCodeAt(i+1)));else if("\u00ff"===str[0]&&"\u00fe"===str[1])for(i=2;i<length;i+=2)strBuf.push(String.fromCharCode(str.charCodeAt(i+1)<<8|str.charCodeAt(i)));else for(i=0;i<length;++i){var code=PDFStringTranslateTable[str.charCodeAt(i)];strBuf.push(code?String.fromCharCode(code):str.charAt(i))}return strBuf.join("")};exports.stringToUTF8String=function(str){return decodeURIComponent(escape(str))};
639
- exports.utf8StringToString=function(str){return unescape(encodeURIComponent(str))};exports.warn=warn;exports.unreachable=unreachable;exports.createObjectURL=exports.FormatError=exports.Util=exports.UnknownErrorException=exports.UnexpectedResponseException=exports.TextRenderingMode=exports.StreamType=exports.PermissionFlag=exports.PasswordResponses=exports.PasswordException=exports.NativeImageDecoding=exports.MissingPDFException=exports.InvalidPDFException=exports.AbortException=exports.CMapCompressionType=
640
- exports.ImageKind=exports.FontType=exports.AnnotationType=exports.AnnotationStateModelType=exports.AnnotationReviewState=exports.AnnotationReplyType=exports.AnnotationMarkedState=exports.AnnotationFlag=exports.AnnotationFieldFlag=exports.AnnotationBorderStyleType=exports.UNSUPPORTED_FEATURES=exports.VerbosityLevel=exports.OPS=exports.IDENTITY_MATRIX=exports.FONT_IDENTITY_MATRIX=exports.BaseException=void 0;__w_pdfjs_require__(2);exports.IDENTITY_MATRIX=[1,0,0,1,0,0];exports.FONT_IDENTITY_MATRIX=[.001,
641
- 0,0,.001,0,0];exports.NativeImageDecoding={NONE:"none",DECODE:"decode",DISPLAY:"display"};exports.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};exports.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.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};
642
- exports.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.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"};exports.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"};exports.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",
643
- CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};exports.AnnotationReplyType={GROUP:"Group",REPLY:"R"};exports.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};exports.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,
644
- COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};exports.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};exports.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};exports.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",
645
- TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var VerbosityLevel={ERRORS:0,WARNINGS:1,INFOS:5};exports.VerbosityLevel=VerbosityLevel;exports.CMapCompressionType={NONE:0,BINARY:1,STREAM:2};exports.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,
646
- 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,
647
- 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,
648
- paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};exports.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"};exports.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var verbosity=VerbosityLevel.WARNINGS;module=function(){function BaseException(message){this.constructor===
649
- BaseException&&unreachable("Cannot initialize BaseException.");this.message=message;this.name=this.constructor.name}BaseException.prototype=Error();return BaseException.constructor=BaseException}();exports.BaseException=module;__w_pdfjs_require__=function(_BaseException){function PasswordException(msg,code){_classCallCheck(this,PasswordException);msg=_possibleConstructorReturn(this,_getPrototypeOf(PasswordException).call(this,msg));msg.code=code;return msg}_inherits(PasswordException,_BaseException);
650
- return PasswordException}(module);exports.PasswordException=__w_pdfjs_require__;__w_pdfjs_require__=function(_BaseException2){function UnknownErrorException(msg,details){_classCallCheck(this,UnknownErrorException);msg=_possibleConstructorReturn(this,_getPrototypeOf(UnknownErrorException).call(this,msg));msg.details=details;return msg}_inherits(UnknownErrorException,_BaseException2);return UnknownErrorException}(module);exports.UnknownErrorException=__w_pdfjs_require__;__w_pdfjs_require__=function(_BaseException3){function InvalidPDFException(){_classCallCheck(this,
651
- InvalidPDFException);return _possibleConstructorReturn(this,_getPrototypeOf(InvalidPDFException).apply(this,arguments))}_inherits(InvalidPDFException,_BaseException3);return InvalidPDFException}(module);exports.InvalidPDFException=__w_pdfjs_require__;__w_pdfjs_require__=function(_BaseException4){function MissingPDFException(){_classCallCheck(this,MissingPDFException);return _possibleConstructorReturn(this,_getPrototypeOf(MissingPDFException).apply(this,arguments))}_inherits(MissingPDFException,_BaseException4);
652
- return MissingPDFException}(module);exports.MissingPDFException=__w_pdfjs_require__;__w_pdfjs_require__=function(_BaseException5){function UnexpectedResponseException(msg,status){_classCallCheck(this,UnexpectedResponseException);msg=_possibleConstructorReturn(this,_getPrototypeOf(UnexpectedResponseException).call(this,msg));msg.status=status;return msg}_inherits(UnexpectedResponseException,_BaseException5);return UnexpectedResponseException}(module);exports.UnexpectedResponseException=__w_pdfjs_require__;
653
- __w_pdfjs_require__=function(_BaseException6){function FormatError(){_classCallCheck(this,FormatError);return _possibleConstructorReturn(this,_getPrototypeOf(FormatError).apply(this,arguments))}_inherits(FormatError,_BaseException6);return FormatError}(module);exports.FormatError=__w_pdfjs_require__;module=function(_BaseException7){function AbortException(){_classCallCheck(this,AbortException);return _possibleConstructorReturn(this,_getPrototypeOf(AbortException).apply(this,arguments))}_inherits(AbortException,
654
- _BaseException7);return AbortException}(module);exports.AbortException=module;var NullCharactersRegExp=/\x00/g,rgbBuf=["rgb(",0,",",0,",",0,")"];module=function(){function Util(){_classCallCheck(this,Util)}_createClass(Util,null,[{key:"makeCssRgb",value:function(r,g,b){rgbBuf[1]=r;rgbBuf[3]=g;rgbBuf[5]=b;return rgbBuf.join("")}},{key:"transform",value:function(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],
655
- m1[1]*m2[4]+m1[3]*m2[5]+m1[5]]}},{key:"applyTransform",value:function(p,m){return[p[0]*m[0]+p[1]*m[2]+m[4],p[0]*m[1]+p[1]*m[3]+m[5]]}},{key:"applyInverseTransform",value:function(p,m){var d=m[0]*m[3]-m[1]*m[2];return[(p[0]*m[3]-p[1]*m[2]+m[2]*m[5]-m[4]*m[3])/d,(-p[0]*m[1]+p[1]*m[0]+m[4]*m[1]-m[5]*m[0])/d]}},{key:"getAxialAlignedBoundingBox",value:function(r,m){var p1=Util.applyTransform(r,m),p2=Util.applyTransform(r.slice(2,4),m),p3=Util.applyTransform([r[0],r[3]],m);r=Util.applyTransform([r[2],r[1]],
656
- m);return[Math.min(p1[0],p2[0],p3[0],r[0]),Math.min(p1[1],p2[1],p3[1],r[1]),Math.max(p1[0],p2[0],p3[0],r[0]),Math.max(p1[1],p2[1],p3[1],r[1])]}},{key:"inverseTransform",value:function(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(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(m){var transpose=
657
- [m[0],m[2],m[1],m[3]],a=m[0]*transpose[0]+m[1]*transpose[2],d=m[2]*transpose[1]+m[3]*transpose[3],first=(a+d)/2;m=Math.sqrt((a+d)*(a+d)-4*(a*d-(m[2]*transpose[0]+m[3]*transpose[2])*(m[0]*transpose[1]+m[1]*transpose[3])))/2;return[Math.sqrt(first+m||1),Math.sqrt(first-m||1)]}},{key:"normalizeRect",value:function(rect){var r=rect.slice(0);rect[0]>rect[2]&&(r[0]=rect[2],r[2]=rect[0]);rect[1]>rect[3]&&(r[1]=rect[3],r[3]=rect[1]);return r}},{key:"intersect",value:function(rect1,rect2){function compare(a,
658
- b){return a-b}var orderedX=[rect1[0],rect1[2],rect2[0],rect2[2]].sort(compare),orderedY=[rect1[1],rect1[3],rect2[1],rect2[3]].sort(compare),result=[];rect1=Util.normalizeRect(rect1);rect2=Util.normalizeRect(rect2);if(orderedX[0]===rect1[0]&&orderedX[1]===rect2[0]||orderedX[0]===rect2[0]&&orderedX[1]===rect1[0])result[0]=orderedX[1],result[2]=orderedX[2];else return null;if(orderedY[0]===rect1[1]&&orderedY[1]===rect2[1]||orderedY[0]===rect2[1]&&orderedY[1]===rect1[1])result[1]=orderedY[1],result[3]=
659
- orderedY[2];else return null;return result}}]);return Util}();exports.Util=module;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,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,
660
- 376,381,305,322,339,353,382,0,8364];module=function(){return function(data,contentType){if(!(2<arguments.length&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var blob=new Blob([data],{type:contentType});return URL.createObjectURL(blob)}blob="data:".concat(contentType,";base64,");for(var i=0,ii=data.length;i<ii;i+=3){var b1=data[i]&255,b2=data[i+1]&255,b3=data[i+2]&255;blob+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[b1>>2]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[(b1&
661
- 3)<<4|b2>>4]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[i+1<ii?(b2&15)<<2|b3>>6:64]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[i+2<ii?b3&63:64]}return blob}}();exports.createObjectURL=module},function(module,exports,__w_pdfjs_require__){function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&
662
- obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}if("undefined"===typeof globalThis||!globalThis._pdfjsCompatibilityChecked){if("undefined"===typeof globalThis||globalThis.Math!==Math)globalThis=__w_pdfjs_require__(3);globalThis._pdfjsCompatibilityChecked=!0;var isNodeJS=__w_pdfjs_require__(48).isNodeJS,hasDOM="object"===("undefined"===typeof window?"undefined":_typeof(window))&&"object"===("undefined"===typeof document?"undefined":_typeof(document)),isIE=/Trident/.test("undefined"!==
663
- typeof navigator&&navigator.userAgent||"");(function(){!globalThis.btoa&&isNodeJS&&(globalThis.btoa=function(chars){return Buffer.from(chars,"binary").toString("base64")})})();(function(){!globalThis.atob&&isNodeJS&&(globalThis.atob=function(input){return Buffer.from(input,"base64").toString("binary")})})();(function(){hasDOM&&"undefined"===typeof Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)})})();(function(){if(hasDOM&&!isNodeJS){var div=
664
- document.createElement("div");div.classList.add("testOne","testTwo");if(!0!==div.classList.contains("testOne")||!0!==div.classList.contains("testTwo")){var OriginalDOMTokenListAdd=DOMTokenList.prototype.add,OriginalDOMTokenListRemove=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var _len=arguments.length,tokens=Array(_len),_key=0;_key<_len;_key++)tokens[_key]=arguments[_key];for(_len=0;_len<tokens.length;_len++)OriginalDOMTokenListAdd.call(this,tokens[_len])};DOMTokenList.prototype.remove=
665
- function(){for(var _len2=arguments.length,tokens=Array(_len2),_key2=0;_key2<_len2;_key2++)tokens[_key2]=arguments[_key2];for(_len2=0;_len2<tokens.length;_len2++)OriginalDOMTokenListRemove.call(this,tokens[_len2])}}}})();(function(){hasDOM&&!isNodeJS&&!1!==document.createElement("div").classList.toggle("test",0)&&(DOMTokenList.prototype.toggle=function(token){var force=1<arguments.length?!!arguments[1]:!this.contains(token);return this[force?"add":"remove"](token),force})})();(function(){if(hasDOM&&
666
- isIE){var OriginalPushState=window.history.pushState,OriginalReplaceState=window.history.replaceState;window.history.pushState=function(state,title,url){OriginalPushState.apply(this,void 0===url?[state,title]:[state,title,url])};window.history.replaceState=function(state,title,url){OriginalReplaceState.apply(this,void 0===url?[state,title]:[state,title,url])}}})();String.prototype.startsWith||__w_pdfjs_require__(49);String.prototype.endsWith||__w_pdfjs_require__(60);String.prototype.includes||__w_pdfjs_require__(62);
667
- Array.prototype.includes||__w_pdfjs_require__(64);Array.from||__w_pdfjs_require__(71);Object.assign||__w_pdfjs_require__(93);Math.log2||(Math.log2=__w_pdfjs_require__(96));Number.isNaN||(Number.isNaN=__w_pdfjs_require__(98));Number.isInteger||(Number.isInteger=__w_pdfjs_require__(100));globalThis.Promise&&globalThis.Promise.prototype&&globalThis.Promise.prototype["finally"]||(globalThis.Promise=__w_pdfjs_require__(103));globalThis.URL=__w_pdfjs_require__(127);(function(){var isReadableStreamSupported=
668
- !1;if("undefined"!==typeof ReadableStream)try{new ReadableStream({start:function(controller){controller.close()}}),isReadableStreamSupported=!0}catch(e){}isReadableStreamSupported||(globalThis.ReadableStream=__w_pdfjs_require__(134).ReadableStream)})();globalThis.WeakMap||(globalThis.WeakMap=__w_pdfjs_require__(135));globalThis.WeakSet||(globalThis.WeakSet=__w_pdfjs_require__(145));String.prototype.codePointAt||__w_pdfjs_require__(147);String.fromCodePoint||(String.fromCodePoint=__w_pdfjs_require__(149));
669
- globalThis.Symbol||__w_pdfjs_require__(151);String.prototype.padStart||__w_pdfjs_require__(174);String.prototype.padEnd||__w_pdfjs_require__(179);Object.values||(Object.values=__w_pdfjs_require__(181))}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(4);module.exports=__w_pdfjs_require__(6)},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);__w_pdfjs_require__=__w_pdfjs_require__(6);module({global:!0},{globalThis:__w_pdfjs_require__})},function(module,exports,
670
- __w_pdfjs_require__){var global=__w_pdfjs_require__(6),getOwnPropertyDescriptor=__w_pdfjs_require__(7).f,createNonEnumerableProperty=__w_pdfjs_require__(21),redefine=__w_pdfjs_require__(24),setGlobal=__w_pdfjs_require__(25),copyConstructorProperties=__w_pdfjs_require__(35),isForced=__w_pdfjs_require__(47);module.exports=function(options,source){var TARGET=options.target,GLOBAL=options.global,STATIC=options.stat,FORCED,target,key;if(target=GLOBAL?global:STATIC?global[TARGET]||setGlobal(TARGET,{}):
671
- (global[TARGET]||{}).prototype)for(key in source){var sourceProperty=source[key];var targetProperty=options.noTargetGet?(FORCED=getOwnPropertyDescriptor(target,key))&&FORCED.value:target[key];FORCED=isForced(GLOBAL?key:TARGET+(STATIC?".":"#")+key,options.forced);if(!FORCED&&void 0!==targetProperty){if(_typeof2(sourceProperty)===_typeof2(targetProperty))continue;copyConstructorProperties(sourceProperty,targetProperty)}(options.sham||targetProperty&&targetProperty.sham)&&createNonEnumerableProperty(sourceProperty,
672
- "sham",!0);redefine(target,key,sourceProperty,options)}}},function(module,exports){exports=function(it){return it&&it.Math==Math&&it};module.exports=exports("object"==("undefined"===typeof globalThis?"undefined":_typeof2(globalThis))&&globalThis)||exports("object"==("undefined"===typeof window?"undefined":_typeof2(window))&&window)||exports("object"==("undefined"===typeof self?"undefined":_typeof2(self))&&self)||exports("object"==("undefined"===typeof global$jscomp$0?"undefined":_typeof2(global$jscomp$0))&&
673
- global$jscomp$0)||Function("return this")()},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(8);var propertyIsEnumerableModule=__w_pdfjs_require__(10),createPropertyDescriptor=__w_pdfjs_require__(11),toIndexedObject=__w_pdfjs_require__(12),toPrimitive=__w_pdfjs_require__(16),has=__w_pdfjs_require__(18),IE8_DOM_DEFINE=__w_pdfjs_require__(19),nativeGetOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;exports.f=module?nativeGetOwnPropertyDescriptor:function(O,P){O=toIndexedObject(O);
674
- P=toPrimitive(P,!0);if(IE8_DOM_DEFINE)try{return nativeGetOwnPropertyDescriptor(O,P)}catch(error){}if(has(O,P))return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O,P),O[P])}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(9);module.exports=!exports(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(error){return!0}}},function(module,exports,__w_pdfjs_require__){module=
675
- {}.propertyIsEnumerable;var getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;__w_pdfjs_require__=getOwnPropertyDescriptor&&!module.call({1:2},1);exports.f=__w_pdfjs_require__?function(V){V=getOwnPropertyDescriptor(this,V);return!!V&&V.enumerable}:module},function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value}}},function(module,exports,__w_pdfjs_require__){var IndexedObject=__w_pdfjs_require__(13),
676
- requireObjectCoercible=__w_pdfjs_require__(15);module.exports=function(it){return IndexedObject(requireObjectCoercible(it))}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(9);var classof=__w_pdfjs_require__(14),split="".split;module.exports=exports(function(){return!Object("z").propertyIsEnumerable(0)})?function(it){return"String"==classof(it)?split.call(it,""):Object(it)}:Object},function(module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,
677
- -1)}},function(module,exports){module.exports=function(it){if(void 0==it)throw TypeError("Can't call method on "+it);return it}},function(module,exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(17);module.exports=function(input,PREFERRED_STRING){if(!isObject(input))return input;var fn,val;if(PREFERRED_STRING&&"function"==typeof(fn=input.toString)&&!isObject(val=fn.call(input))||"function"==typeof(fn=input.valueOf)&&!isObject(val=fn.call(input))||!PREFERRED_STRING&&"function"==typeof(fn=
678
- input.toString)&&!isObject(val=fn.call(input)))return val;throw TypeError("Can't convert object to primitive value");}},function(module,exports){module.exports=function(it){return"object"===_typeof2(it)?null!==it:"function"===typeof it}},function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(8);var fails=__w_pdfjs_require__(9),createElement=__w_pdfjs_require__(20);
679
- module.exports=!exports&&!fails(function(){return 7!=Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a})},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);__w_pdfjs_require__=__w_pdfjs_require__(17);var document=exports.document,EXISTS=__w_pdfjs_require__(document)&&__w_pdfjs_require__(document.createElement);module.exports=function(it){return EXISTS?document.createElement(it):{}}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(8);
680
- var definePropertyModule=__w_pdfjs_require__(22),createPropertyDescriptor=__w_pdfjs_require__(11);module.exports=exports?function(object,key,value){return definePropertyModule.f(object,key,createPropertyDescriptor(1,value))}:function(object,key,value){object[key]=value;return object}},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(8);var IE8_DOM_DEFINE=__w_pdfjs_require__(19),anObject=__w_pdfjs_require__(23),toPrimitive=__w_pdfjs_require__(16),nativeDefineProperty=Object.defineProperty;
681
- exports.f=module?nativeDefineProperty:function(O,P,Attributes){anObject(O);P=toPrimitive(P,!0);anObject(Attributes);if(IE8_DOM_DEFINE)try{return nativeDefineProperty(O,P,Attributes)}catch(error){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported");"value"in Attributes&&(O[P]=Attributes.value);return O}},function(module,exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(17);module.exports=function(it){if(!isObject(it))throw TypeError(String(it)+" is not an object");
682
- return it}},function(module,exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6),createNonEnumerableProperty=__w_pdfjs_require__(21),has=__w_pdfjs_require__(18),setGlobal=__w_pdfjs_require__(25),inspectSource=__w_pdfjs_require__(26);exports=__w_pdfjs_require__(28);var getInternalState=exports.get,enforceInternalState=exports.enforce,TEMPLATE=String(String).split("String");(module.exports=function(O,key,value,options){var unsafe=options?!!options.unsafe:!1,simple=options?!!options.enumerable:
683
- !1;options=options?!!options.noTargetGet:!1;"function"==typeof value&&("string"!=typeof key||has(value,"name")||createNonEnumerableProperty(value,"name",key),enforceInternalState(value).source=TEMPLATE.join("string"==typeof key?key:""));O===global?simple?O[key]=value:setGlobal(key,value):(unsafe?!options&&O[key]&&(simple=!0):delete O[key],simple?O[key]=value:createNonEnumerableProperty(O,key,value))})(Function.prototype,"toString",function(){return"function"==typeof this&&getInternalState(this).source||
684
- inspectSource(this)})},function(module,exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6),createNonEnumerableProperty=__w_pdfjs_require__(21);module.exports=function(key,value){try{createNonEnumerableProperty(global,key,value)}catch(error){global[key]=value}return value}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(27);var functionToString=Function.toString;"function"!=typeof exports.inspectSource&&(exports.inspectSource=function(it){return functionToString.call(it)});
685
- module.exports=exports.inspectSource},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);__w_pdfjs_require__=__w_pdfjs_require__(25);__w_pdfjs_require__=exports["__core-js_shared__"]||__w_pdfjs_require__("__core-js_shared__",{});module.exports=__w_pdfjs_require__},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(29);var global=__w_pdfjs_require__(6),isObject=__w_pdfjs_require__(17),createNonEnumerableProperty=__w_pdfjs_require__(21),objectHas=__w_pdfjs_require__(18),
686
- sharedKey=__w_pdfjs_require__(30);__w_pdfjs_require__=__w_pdfjs_require__(34);global=global.WeakMap;if(exports){var store=new global,wmget=store.get,wmhas=store.has,wmset=store.set;var set=function(it,metadata){wmset.call(store,it,metadata);return metadata};var get=function(it){return wmget.call(store,it)||{}};var has=function(it){return wmhas.call(store,it)}}else{var STATE=sharedKey("state");__w_pdfjs_require__[STATE]=!0;set=function(it,metadata){createNonEnumerableProperty(it,STATE,metadata);return metadata};
687
- get=function(it){return objectHas(it,STATE)?it[STATE]:{}};has=function(it){return objectHas(it,STATE)}}module.exports={set:set,get:get,has:has,enforce:function(it){return has(it)?get(it):set(it,{})},getterFor:function(TYPE){return function(it){var state;if(!isObject(it)||(state=get(it)).type!==TYPE)throw TypeError("Incompatible receiver, "+TYPE+" required");return state}}}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);__w_pdfjs_require__=__w_pdfjs_require__(26);exports=
688
- exports.WeakMap;module.exports="function"===typeof exports&&/native code/.test(__w_pdfjs_require__(exports))},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(31);var uid=__w_pdfjs_require__(33),keys=exports("keys");module.exports=function(key){return keys[key]||(keys[key]=uid(key))}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(32);var store=__w_pdfjs_require__(27);(module.exports=function(key,value){return store[key]||(store[key]=void 0!==value?
689
- value:{})})("versions",[]).push({version:"3.6.1",mode:exports?"pure":"global",copyright:"\u00a9 2019 Denis Pushkarev (zloirock.ru)"})},function(module,exports){module.exports=!1},function(module,exports){var id=0,postfix=Math.random();module.exports=function(key){return"Symbol("+String(void 0===key?"":key)+")_"+(++id+postfix).toString(36)}},function(module,exports){module.exports={}},function(module,exports,__w_pdfjs_require__){var has=__w_pdfjs_require__(18),ownKeys=__w_pdfjs_require__(36),getOwnPropertyDescriptorModule=
690
- __w_pdfjs_require__(7),definePropertyModule=__w_pdfjs_require__(22);module.exports=function(target,source){for(var keys=ownKeys(source),defineProperty=definePropertyModule.f,getOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,i=0;i<keys.length;i++){var key=keys[i];has(target,key)||defineProperty(target,key,getOwnPropertyDescriptor(source,key))}}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(37);var getOwnPropertyNamesModule=__w_pdfjs_require__(39),getOwnPropertySymbolsModule=
691
- __w_pdfjs_require__(46),anObject=__w_pdfjs_require__(23);module.exports=exports("Reflect","ownKeys")||function(it){var keys=getOwnPropertyNamesModule.f(anObject(it)),getOwnPropertySymbols=getOwnPropertySymbolsModule.f;return getOwnPropertySymbols?keys.concat(getOwnPropertySymbols(it)):keys}},function(module,exports,__w_pdfjs_require__){var path=__w_pdfjs_require__(38),global=__w_pdfjs_require__(6),aFunction=function(variable){return"function"==typeof variable?variable:void 0};module.exports=function(namespace,
692
- method){return 2>arguments.length?aFunction(path[namespace])||aFunction(global[namespace]):path[namespace]&&path[namespace][method]||global[namespace]&&global[namespace][method]}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);module.exports=exports},function(module,exports,__w_pdfjs_require__){var internalObjectKeys=__w_pdfjs_require__(40),hiddenKeys=__w_pdfjs_require__(45).concat("length","prototype");exports.f=Object.getOwnPropertyNames||function(O){return internalObjectKeys(O,
693
- hiddenKeys)}},function(module,exports,__w_pdfjs_require__){var has=__w_pdfjs_require__(18),toIndexedObject=__w_pdfjs_require__(12),indexOf=__w_pdfjs_require__(41).indexOf,hiddenKeys=__w_pdfjs_require__(34);module.exports=function(object,names){object=toIndexedObject(object);var i=0,result=[],key;for(key in object)!has(hiddenKeys,key)&&has(object,key)&&result.push(key);for(;names.length>i;)has(object,key=names[i++])&&(~indexOf(result,key)||result.push(key));return result}},function(module,exports,
694
- __w_pdfjs_require__){var toIndexedObject=__w_pdfjs_require__(12),toLength=__w_pdfjs_require__(42),toAbsoluteIndex=__w_pdfjs_require__(44);exports=function(IS_INCLUDES){return function($this,el,fromIndex){$this=toIndexedObject($this);var length=toLength($this.length);fromIndex=toAbsoluteIndex(fromIndex,length);if(IS_INCLUDES&&el!=el)for(;length>fromIndex;){if(el=$this[fromIndex++],el!=el)return!0}else for(;length>fromIndex;fromIndex++)if((IS_INCLUDES||fromIndex in $this)&&$this[fromIndex]===el)return IS_INCLUDES||
695
- fromIndex||0;return!IS_INCLUDES&&-1}};module.exports={includes:exports(!0),indexOf:exports(!1)}},function(module,exports,__w_pdfjs_require__){var toInteger=__w_pdfjs_require__(43),min=Math.min;module.exports=function(argument){return 0<argument?min(toInteger(argument),9007199254740991):0}},function(module,exports){var ceil=Math.ceil,floor=Math.floor;module.exports=function(argument){return isNaN(argument=+argument)?0:(0<argument?floor:ceil)(argument)}},function(module,exports,__w_pdfjs_require__){var toInteger=
696
- __w_pdfjs_require__(43),max=Math.max,min=Math.min;module.exports=function(index,length){index=toInteger(index);return 0>index?max(index+length,0):min(index,length)}},function(module,exports){module.exports="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ")},function(module,exports){exports.f=Object.getOwnPropertySymbols},function(module,exports,__w_pdfjs_require__){var fails=__w_pdfjs_require__(9),replacement=/#|\.prototype\./;exports=function(feature,
697
- detection){feature=data[normalize(feature)];return feature==POLYFILL?!0:feature==NATIVE?!1:"function"==typeof detection?fails(detection):!!detection};var normalize=exports.normalize=function(string){return String(string).replace(replacement,".").toLowerCase()},data=exports.data={},NATIVE=exports.NATIVE="N",POLYFILL=exports.POLYFILL="P";module.exports=exports},function(module,exports,__w_pdfjs_require__){function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?
698
- function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}Object.defineProperty(exports,"__esModule",{value:!0});exports.isNodeJS=void 0;module="object"===("undefined"===typeof process$jscomp$0?"undefined":_typeof(process$jscomp$0))&&"[object process]"===process$jscomp$0+""&&!process$jscomp$0.versions.nw&&!process$jscomp$0.versions.electron;exports.isNodeJS=module},
699
- function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(50);exports=__w_pdfjs_require__(57);module.exports=exports("String","startsWith")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var getOwnPropertyDescriptor=__w_pdfjs_require__(7).f,toLength=__w_pdfjs_require__(42),notARegExp=__w_pdfjs_require__(51),requireObjectCoercible=__w_pdfjs_require__(15);exports=__w_pdfjs_require__(56);__w_pdfjs_require__=__w_pdfjs_require__(32);var nativeStartsWith="".startsWith,
700
- min=Math.min;exports=exports("startsWith");__w_pdfjs_require__=!__w_pdfjs_require__&&!exports&&!!function(){var descriptor=getOwnPropertyDescriptor(String.prototype,"startsWith");return descriptor&&!descriptor.writable}();module({target:"String",proto:!0,forced:!__w_pdfjs_require__&&!exports},{startsWith:function(searchString){var that=String(requireObjectCoercible(this));notARegExp(searchString);var index=toLength(min(1<arguments.length?arguments[1]:void 0,that.length)),search=String(searchString);
701
- return nativeStartsWith?nativeStartsWith.call(that,search,index):that.slice(index,index+search.length)===search}})},function(module,exports,__w_pdfjs_require__){var isRegExp=__w_pdfjs_require__(52);module.exports=function(it){if(isRegExp(it))throw TypeError("The method doesn't accept regular expressions");return it}},function(module,exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(17),classof=__w_pdfjs_require__(14),MATCH=__w_pdfjs_require__(53)("match");module.exports=function(it){var isRegExp;
702
- return isObject(it)&&(void 0!==(isRegExp=it[MATCH])?!!isRegExp:"RegExp"==classof(it))}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);var shared=__w_pdfjs_require__(31),has=__w_pdfjs_require__(18),uid=__w_pdfjs_require__(33),NATIVE_SYMBOL=__w_pdfjs_require__(54);__w_pdfjs_require__=__w_pdfjs_require__(55);var WellKnownSymbolsStore=shared("wks"),_Symbol=exports.Symbol,createWellKnownSymbol=__w_pdfjs_require__?_Symbol:_Symbol&&_Symbol.withoutSetter||uid;module.exports=
703
- function(name){has(WellKnownSymbolsStore,name)||(NATIVE_SYMBOL&&has(_Symbol,name)?WellKnownSymbolsStore[name]=_Symbol[name]:WellKnownSymbolsStore[name]=createWellKnownSymbol("Symbol."+name));return WellKnownSymbolsStore[name]}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(9);module.exports=!!Object.getOwnPropertySymbols&&!exports(function(){return!String(Symbol())})},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(54);module.exports=exports&&!Symbol.sham&&
704
- "symbol"==_typeof2(Symbol.iterator)},function(module,exports,__w_pdfjs_require__){var MATCH=__w_pdfjs_require__(53)("match");module.exports=function(METHOD_NAME){var regexp=/./;try{"/./"[METHOD_NAME](regexp)}catch(e){try{return regexp[MATCH]=!1,"/./"[METHOD_NAME](regexp)}catch(f){}}return!1}},function(module,exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6),bind=__w_pdfjs_require__(58),call=Function.call;module.exports=function(CONSTRUCTOR,METHOD,length){return bind(call,global[CONSTRUCTOR].prototype[METHOD],
705
- length)}},function(module,exports,__w_pdfjs_require__){var aFunction=__w_pdfjs_require__(59);module.exports=function(fn,that,length){aFunction(fn);if(void 0===that)return fn;switch(length){case 0:return function(){return fn.call(that)};case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},function(module,exports){module.exports=function(it){if("function"!=
706
- typeof it)throw TypeError(String(it)+" is not a function");return it}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(61);exports=__w_pdfjs_require__(57);module.exports=exports("String","endsWith")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var getOwnPropertyDescriptor=__w_pdfjs_require__(7).f,toLength=__w_pdfjs_require__(42),notARegExp=__w_pdfjs_require__(51),requireObjectCoercible=__w_pdfjs_require__(15);exports=__w_pdfjs_require__(56);__w_pdfjs_require__=
707
- __w_pdfjs_require__(32);var nativeEndsWith="".endsWith,min=Math.min;exports=exports("endsWith");__w_pdfjs_require__=!__w_pdfjs_require__&&!exports&&!!function(){var descriptor=getOwnPropertyDescriptor(String.prototype,"endsWith");return descriptor&&!descriptor.writable}();module({target:"String",proto:!0,forced:!__w_pdfjs_require__&&!exports},{endsWith:function(searchString){var that=String(requireObjectCoercible(this));notARegExp(searchString);var endPosition=1<arguments.length?arguments[1]:void 0,
708
- len=toLength(that.length);endPosition=void 0===endPosition?len:min(toLength(endPosition),len);len=String(searchString);return nativeEndsWith?nativeEndsWith.call(that,len,endPosition):that.slice(endPosition-len.length,endPosition)===len}})},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(63);exports=__w_pdfjs_require__(57);module.exports=exports("String","includes")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var notARegExp=__w_pdfjs_require__(51),requireObjectCoercible=
709
- __w_pdfjs_require__(15);__w_pdfjs_require__=__w_pdfjs_require__(56);module({target:"String",proto:!0,forced:!__w_pdfjs_require__("includes")},{includes:function(searchString){return!!~String(requireObjectCoercible(this)).indexOf(notARegExp(searchString),1<arguments.length?arguments[1]:void 0)}})},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(65);exports=__w_pdfjs_require__(57);module.exports=exports("Array","includes")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);
710
- var $includes=__w_pdfjs_require__(41).includes;__w_pdfjs_require__=__w_pdfjs_require__(66);module({target:"Array",proto:!0},{includes:function(el){return $includes(this,el,1<arguments.length?arguments[1]:void 0)}});__w_pdfjs_require__("includes")},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(53);var create=__w_pdfjs_require__(67);__w_pdfjs_require__=__w_pdfjs_require__(22);var UNSCOPABLES=exports("unscopables"),ArrayPrototype=Array.prototype;void 0==ArrayPrototype[UNSCOPABLES]&&
711
- __w_pdfjs_require__.f(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create(null)});module.exports=function(key){ArrayPrototype[UNSCOPABLES][key]=!0}},function(module,exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23),defineProperties=__w_pdfjs_require__(68),enumBugKeys=__w_pdfjs_require__(45);exports=__w_pdfjs_require__(34);var html=__w_pdfjs_require__(70),documentCreateElement=__w_pdfjs_require__(20),IE_PROTO=__w_pdfjs_require__(30)("IE_PROTO"),EmptyConstructor=function(){},activeXDocument,
712
- _NullProtoObject=function(){try{activeXDocument=document.domain&&new ActiveXObject("htmlfile")}catch(error){}if(activeXDocument){var JSCompiler_temp=activeXDocument;JSCompiler_temp.write("<script>\x3c/script>");JSCompiler_temp.close();JSCompiler_temp=JSCompiler_temp.parentWindow.Object}else JSCompiler_temp=documentCreateElement("iframe"),JSCompiler_temp.style.display="none",html.appendChild(JSCompiler_temp),JSCompiler_temp.src="javascript:",JSCompiler_temp=JSCompiler_temp.contentWindow.document,JSCompiler_temp.open(),
713
- JSCompiler_temp.write("<script>document.F=Object\x3c/script>"),JSCompiler_temp.close(),JSCompiler_temp=JSCompiler_temp.F;_NullProtoObject=JSCompiler_temp;for(JSCompiler_temp=enumBugKeys.length;JSCompiler_temp--;)delete _NullProtoObject.prototype[enumBugKeys[JSCompiler_temp]];return _NullProtoObject()};exports[IE_PROTO]=!0;module.exports=Object.create||function(O,Properties){if(null!==O){EmptyConstructor.prototype=anObject(O);var result=new EmptyConstructor;EmptyConstructor.prototype=null;result[IE_PROTO]=
714
- O}else result=_NullProtoObject();return void 0===Properties?result:defineProperties(result,Properties)}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(8);var definePropertyModule=__w_pdfjs_require__(22),anObject=__w_pdfjs_require__(23),objectKeys=__w_pdfjs_require__(69);module.exports=exports?Object.defineProperties:function(O,Properties){anObject(O);for(var keys=objectKeys(Properties),length=keys.length,index=0,key;length>index;)definePropertyModule.f(O,key=keys[index++],
715
- Properties[key]);return O}},function(module,exports,__w_pdfjs_require__){var internalObjectKeys=__w_pdfjs_require__(40),enumBugKeys=__w_pdfjs_require__(45);module.exports=Object.keys||function(O){return internalObjectKeys(O,enumBugKeys)}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(37);module.exports=exports("document","documentElement")},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(72);__w_pdfjs_require__(84);exports=__w_pdfjs_require__(38);module.exports=
716
- exports.Array.from},function(module,exports,__w_pdfjs_require__){var charAt=__w_pdfjs_require__(73).charAt;module=__w_pdfjs_require__(28);__w_pdfjs_require__=__w_pdfjs_require__(74);var setInternalState=module.set,getInternalState=module.getterFor("String Iterator");__w_pdfjs_require__(String,"String",function(iterated){setInternalState(this,{type:"String Iterator",string:String(iterated),index:0})},function(){var state=getInternalState(this),string=state.string,index=state.index;if(index>=string.length)return{value:void 0,
717
- done:!0};string=charAt(string,index);state.index+=string.length;return{value:string,done:!1}})},function(module,exports,__w_pdfjs_require__){var toInteger=__w_pdfjs_require__(43),requireObjectCoercible=__w_pdfjs_require__(15);exports=function(CONVERT_TO_STRING){return function($this,pos){$this=String(requireObjectCoercible($this));pos=toInteger(pos);var size=$this.length,second;if(0>pos||pos>=size)return CONVERT_TO_STRING?"":void 0;var first=$this.charCodeAt(pos);return 55296>first||56319<first||
718
- pos+1===size||56320>(second=$this.charCodeAt(pos+1))||57343<second?CONVERT_TO_STRING?$this.charAt(pos):first:CONVERT_TO_STRING?$this.slice(pos,pos+2):(first-55296<<10)+(second-56320)+65536}};module.exports={codeAt:exports(!1),charAt:exports(!0)}},function(module,exports,__w_pdfjs_require__){var $=__w_pdfjs_require__(5),createIteratorConstructor=__w_pdfjs_require__(75),getPrototypeOf=__w_pdfjs_require__(77),setPrototypeOf=__w_pdfjs_require__(82),setToStringTag=__w_pdfjs_require__(80),createNonEnumerableProperty=
719
- __w_pdfjs_require__(21),redefine=__w_pdfjs_require__(24);exports=__w_pdfjs_require__(53);var IS_PURE=__w_pdfjs_require__(32),Iterators=__w_pdfjs_require__(81);__w_pdfjs_require__=__w_pdfjs_require__(76);var IteratorPrototype=__w_pdfjs_require__.IteratorPrototype,BUGGY_SAFARI_ITERATORS=__w_pdfjs_require__.BUGGY_SAFARI_ITERATORS,ITERATOR=exports("iterator"),returnThis=function(){return this};module.exports=function(Iterable,NAME,IteratorConstructor,next,DEFAULT,IS_SET,FORCED){createIteratorConstructor(IteratorConstructor,
720
- NAME,next);next=function(KIND){if(KIND===DEFAULT&&defaultIterator)return defaultIterator;if(!BUGGY_SAFARI_ITERATORS&&KIND in IterablePrototype)return IterablePrototype[KIND];switch(KIND){case "keys":return function(){return new IteratorConstructor(this,KIND)};case "values":return function(){return new IteratorConstructor(this,KIND)};case "entries":return function(){return new IteratorConstructor(this,KIND)}}return function(){return new IteratorConstructor(this)}};var TO_STRING_TAG=NAME+" Iterator",
721
- INCORRECT_VALUES_NAME=!1,IterablePrototype=Iterable.prototype,nativeIterator=IterablePrototype[ITERATOR]||IterablePrototype["@@iterator"]||DEFAULT&&IterablePrototype[DEFAULT],defaultIterator=!BUGGY_SAFARI_ITERATORS&&nativeIterator||next(DEFAULT),anyNativeIterator="Array"==NAME?IterablePrototype.entries||nativeIterator:nativeIterator,KEY;anyNativeIterator&&(Iterable=getPrototypeOf(anyNativeIterator.call(new Iterable)),IteratorPrototype!==Object.prototype&&Iterable.next&&(IS_PURE||getPrototypeOf(Iterable)===
722
- IteratorPrototype||(setPrototypeOf?setPrototypeOf(Iterable,IteratorPrototype):"function"!=typeof Iterable[ITERATOR]&&createNonEnumerableProperty(Iterable,ITERATOR,returnThis)),setToStringTag(Iterable,TO_STRING_TAG,!0,!0),IS_PURE&&(Iterators[TO_STRING_TAG]=returnThis)));"values"==DEFAULT&&nativeIterator&&"values"!==nativeIterator.name&&(INCORRECT_VALUES_NAME=!0,defaultIterator=function(){return nativeIterator.call(this)});IS_PURE&&!FORCED||IterablePrototype[ITERATOR]===defaultIterator||createNonEnumerableProperty(IterablePrototype,
723
- ITERATOR,defaultIterator);Iterators[NAME]=defaultIterator;if(DEFAULT){var methods={values:next("values"),keys:IS_SET?defaultIterator:next("keys"),entries:next("entries")};if(FORCED)for(KEY in methods)!BUGGY_SAFARI_ITERATORS&&!INCORRECT_VALUES_NAME&&KEY in IterablePrototype||redefine(IterablePrototype,KEY,methods[KEY]);else $({target:NAME,proto:!0,forced:BUGGY_SAFARI_ITERATORS||INCORRECT_VALUES_NAME},methods)}return methods}},function(module,exports,__w_pdfjs_require__){var IteratorPrototype=__w_pdfjs_require__(76).IteratorPrototype,
724
- create=__w_pdfjs_require__(67),createPropertyDescriptor=__w_pdfjs_require__(11),setToStringTag=__w_pdfjs_require__(80),Iterators=__w_pdfjs_require__(81),returnThis=function(){return this};module.exports=function(IteratorConstructor,NAME,next){NAME+=" Iterator";IteratorConstructor.prototype=create(IteratorPrototype,{next:createPropertyDescriptor(1,next)});setToStringTag(IteratorConstructor,NAME,!1,!0);Iterators[NAME]=returnThis;return IteratorConstructor}},function(module,exports,__w_pdfjs_require__){var getPrototypeOf=
725
- __w_pdfjs_require__(77);exports=__w_pdfjs_require__(21);var has=__w_pdfjs_require__(18),wellKnownSymbol=__w_pdfjs_require__(53);__w_pdfjs_require__=__w_pdfjs_require__(32);wellKnownSymbol=wellKnownSymbol("iterator");var BUGGY_SAFARI_ITERATORS=!1,returnThis=function(){return this},IteratorPrototype;if([].keys){var arrayIterator=[].keys();"next"in arrayIterator?(getPrototypeOf=getPrototypeOf(getPrototypeOf(arrayIterator)),getPrototypeOf!==Object.prototype&&(IteratorPrototype=getPrototypeOf)):BUGGY_SAFARI_ITERATORS=
726
- !0}void 0==IteratorPrototype&&(IteratorPrototype={});__w_pdfjs_require__||has(IteratorPrototype,wellKnownSymbol)||exports(IteratorPrototype,wellKnownSymbol,returnThis);module.exports={IteratorPrototype:IteratorPrototype,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS}},function(module,exports,__w_pdfjs_require__){var has=__w_pdfjs_require__(18),toObject=__w_pdfjs_require__(78);exports=__w_pdfjs_require__(30);__w_pdfjs_require__=__w_pdfjs_require__(79);var IE_PROTO=exports("IE_PROTO"),ObjectPrototype=
727
- Object.prototype;module.exports=__w_pdfjs_require__?Object.getPrototypeOf:function(O){O=toObject(O);return has(O,IE_PROTO)?O[IE_PROTO]:"function"==typeof O.constructor&&O instanceof O.constructor?O.constructor.prototype:O instanceof Object?ObjectPrototype:null}},function(module,exports,__w_pdfjs_require__){var requireObjectCoercible=__w_pdfjs_require__(15);module.exports=function(argument){return Object(requireObjectCoercible(argument))}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(9);
728
- module.exports=!exports(function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype})},function(module,exports,__w_pdfjs_require__){var defineProperty=__w_pdfjs_require__(22).f,has=__w_pdfjs_require__(18),TO_STRING_TAG=__w_pdfjs_require__(53)("toStringTag");module.exports=function(it,TAG,STATIC){it&&!has(it=STATIC?it:it.prototype,TO_STRING_TAG)&&defineProperty(it,TO_STRING_TAG,{configurable:!0,value:TAG})}},function(module,exports){module.exports={}},function(module,
729
- exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23),aPossiblePrototype=__w_pdfjs_require__(83);module.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var CORRECT_SETTER=!1,test={};try{var setter=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set;setter.call(test,[]);CORRECT_SETTER=test instanceof Array}catch(error){}return function(O,proto){anObject(O);aPossiblePrototype(proto);CORRECT_SETTER?setter.call(O,proto):O.__proto__=proto;return O}}():void 0)},function(module,
730
- exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(17);module.exports=function(it){if(!isObject(it)&&null!==it)throw TypeError("Can't set "+String(it)+" as a prototype");return it}},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);exports=__w_pdfjs_require__(85);__w_pdfjs_require__=!__w_pdfjs_require__(92)(function(iterable){Array.from(iterable)});module({target:"Array",stat:!0,forced:__w_pdfjs_require__},{from:exports})},function(module,exports,__w_pdfjs_require__){var bind=
731
- __w_pdfjs_require__(58),toObject=__w_pdfjs_require__(78),callWithSafeIterationClosing=__w_pdfjs_require__(86),isArrayIteratorMethod=__w_pdfjs_require__(87),toLength=__w_pdfjs_require__(42),createProperty=__w_pdfjs_require__(88),getIteratorMethod=__w_pdfjs_require__(89);module.exports=function(arrayLike){var O=toObject(arrayLike),C="function"==typeof this?this:Array,argumentsLength=arguments.length,mapfn=1<argumentsLength?arguments[1]:void 0,mapping=void 0!==mapfn,index=0,iteratorMethod=getIteratorMethod(O);
732
- mapping&&(mapfn=bind(mapfn,2<argumentsLength?arguments[2]:void 0,2));if(void 0==iteratorMethod||C==Array&&isArrayIteratorMethod(iteratorMethod))for(argumentsLength=toLength(O.length),C=new C(argumentsLength);argumentsLength>index;index++)createProperty(C,index,mapping?mapfn(O[index],index):O[index]);else for(O=iteratorMethod.call(O),argumentsLength=O.next,C=new C;!(iteratorMethod=argumentsLength.call(O)).done;index++)createProperty(C,index,mapping?callWithSafeIterationClosing(O,mapfn,[iteratorMethod.value,
733
- index],!0):iteratorMethod.value);C.length=index;return C}},function(module,exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23);module.exports=function(iterator,fn,value,ENTRIES){try{return ENTRIES?fn(anObject(value)[0],value[1]):fn(value)}catch(error){throw fn=iterator["return"],void 0!==fn&&anObject(fn.call(iterator)),error;}}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(53);var Iterators=__w_pdfjs_require__(81),ITERATOR=exports("iterator"),ArrayPrototype=
734
- Array.prototype;module.exports=function(it){return void 0!==it&&(Iterators.Array===it||ArrayPrototype[ITERATOR]===it)}},function(module,exports,__w_pdfjs_require__){var toPrimitive=__w_pdfjs_require__(16),definePropertyModule=__w_pdfjs_require__(22),createPropertyDescriptor=__w_pdfjs_require__(11);module.exports=function(object,key,value){key=toPrimitive(key);key in object?definePropertyModule.f(object,key,createPropertyDescriptor(0,value)):object[key]=value}},function(module,exports,__w_pdfjs_require__){var classof=
735
- __w_pdfjs_require__(90),Iterators=__w_pdfjs_require__(81),ITERATOR=__w_pdfjs_require__(53)("iterator");module.exports=function(it){if(void 0!=it)return it[ITERATOR]||it["@@iterator"]||Iterators[classof(it)]}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(91);var classofRaw=__w_pdfjs_require__(14),TO_STRING_TAG=__w_pdfjs_require__(53)("toStringTag"),CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}());module.exports=exports?classofRaw:function(it$jscomp$0){var result;
736
- if(void 0===it$jscomp$0)var tag="Undefined";else{if(null===it$jscomp$0)var JSCompiler_temp="Null";else{a:{var it=it$jscomp$0=Object(it$jscomp$0);try{JSCompiler_temp=it[TO_STRING_TAG];break a}catch(error){}JSCompiler_temp=void 0}JSCompiler_temp="string"==typeof(tag=JSCompiler_temp)?tag:CORRECT_ARGUMENTS?classofRaw(it$jscomp$0):"Object"==(result=classofRaw(it$jscomp$0))&&"function"==typeof it$jscomp$0.callee?"Arguments":result}tag=JSCompiler_temp}return tag}},function(module,exports,__w_pdfjs_require__){exports=
737
- __w_pdfjs_require__(53)("toStringTag");__w_pdfjs_require__={};__w_pdfjs_require__[exports]="z";module.exports="[object z]"===String(__w_pdfjs_require__)},function(module,exports,__w_pdfjs_require__){var ITERATOR=__w_pdfjs_require__(53)("iterator"),SAFE_CLOSING=!1;try{var called=0;exports={next:function(){return{done:!!called++}},"return":function(){SAFE_CLOSING=!0}};exports[ITERATOR]=function(){return this};Array.from(exports,function(){throw 2;})}catch(error){}module.exports=function(exec,SKIP_CLOSING){if(!SKIP_CLOSING&&
738
- !SAFE_CLOSING)return!1;var ITERATION_SUPPORT=!1;try{SKIP_CLOSING={},SKIP_CLOSING[ITERATOR]=function(){return{next:function(){return{done:ITERATION_SUPPORT=!0}}}},exec(SKIP_CLOSING)}catch(error$4){}return ITERATION_SUPPORT}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(94);exports=__w_pdfjs_require__(38);module.exports=exports.Object.assign},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);__w_pdfjs_require__=__w_pdfjs_require__(95);module({target:"Object",
739
- stat:!0,forced:Object.assign!==__w_pdfjs_require__},{assign:__w_pdfjs_require__})},function(module,exports,__w_pdfjs_require__){var DESCRIPTORS=__w_pdfjs_require__(8);exports=__w_pdfjs_require__(9);var objectKeys=__w_pdfjs_require__(69),getOwnPropertySymbolsModule=__w_pdfjs_require__(46),propertyIsEnumerableModule=__w_pdfjs_require__(10),toObject=__w_pdfjs_require__(78),IndexedObject=__w_pdfjs_require__(13),nativeAssign=Object.assign,defineProperty=Object.defineProperty;module.exports=!nativeAssign||
740
- exports(function(){if(DESCRIPTORS&&1!==nativeAssign({b:1},nativeAssign(defineProperty({},"a",{enumerable:!0,get:function(){defineProperty(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var A={},B={},symbol=Symbol();A[symbol]=7;"abcdefghijklmnopqrst".split("").forEach(function(chr){B[chr]=chr});return 7!=nativeAssign({},A)[symbol]||"abcdefghijklmnopqrst"!=objectKeys(nativeAssign({},B)).join("")})?function(target,source){for(var T=toObject(target),argumentsLength=arguments.length,index=1,getOwnPropertySymbols=
741
- getOwnPropertySymbolsModule.f,propertyIsEnumerable=propertyIsEnumerableModule.f;argumentsLength>index;)for(var S=IndexedObject(arguments[index++]),keys=getOwnPropertySymbols?objectKeys(S).concat(getOwnPropertySymbols(S)):objectKeys(S),length=keys.length,j=0,key;length>j;)if(key=keys[j++],!DESCRIPTORS||propertyIsEnumerable.call(S,key))T[key]=S[key];return T}:nativeAssign},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(97);exports=__w_pdfjs_require__(38);module.exports=exports.Math.log2},
742
- function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var log=Math.log,LN2=Math.LN2;module({target:"Math",stat:!0},{log2:function(x){return log(x)/LN2}})},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(99);exports=__w_pdfjs_require__(38);module.exports=exports.Number.isNaN},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(5)({target:"Number",stat:!0},{isNaN:function(number){return number!=number}})},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(101);
743
- exports=__w_pdfjs_require__(38);module.exports=exports.Number.isInteger},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);__w_pdfjs_require__=__w_pdfjs_require__(102);module({target:"Number",stat:!0},{isInteger:__w_pdfjs_require__})},function(module,exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(17),floor=Math.floor;module.exports=function(it){return!isObject(it)&&isFinite(it)&&floor(it)===it}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(104);
744
- __w_pdfjs_require__(72);__w_pdfjs_require__(106);__w_pdfjs_require__(109);__w_pdfjs_require__(125);__w_pdfjs_require__(126);exports=__w_pdfjs_require__(38);module.exports=exports.Promise},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(91);exports=__w_pdfjs_require__(24);__w_pdfjs_require__=__w_pdfjs_require__(105);module||exports(Object.prototype,"toString",__w_pdfjs_require__,{unsafe:!0})},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(91);var classof=
745
- __w_pdfjs_require__(90);module.exports=exports?{}.toString:function(){return"[object "+classof(this)+"]"}},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(6);exports=__w_pdfjs_require__(107);var ArrayIteratorMethods=__w_pdfjs_require__(108),createNonEnumerableProperty=__w_pdfjs_require__(21),wellKnownSymbol=__w_pdfjs_require__(53);__w_pdfjs_require__=wellKnownSymbol("iterator");wellKnownSymbol=wellKnownSymbol("toStringTag");var ArrayValues=ArrayIteratorMethods.values,COLLECTION_NAME;
746
- for(COLLECTION_NAME in exports){var Collection=module[COLLECTION_NAME];if(Collection=Collection&&Collection.prototype){if(Collection[__w_pdfjs_require__]!==ArrayValues)try{createNonEnumerableProperty(Collection,__w_pdfjs_require__,ArrayValues)}catch(error){Collection[__w_pdfjs_require__]=ArrayValues}Collection[wellKnownSymbol]||createNonEnumerableProperty(Collection,wellKnownSymbol,COLLECTION_NAME);if(exports[COLLECTION_NAME])for(var METHOD_NAME in ArrayIteratorMethods)if(Collection[METHOD_NAME]!==
747
- ArrayIteratorMethods[METHOD_NAME])try{createNonEnumerableProperty(Collection,METHOD_NAME,ArrayIteratorMethods[METHOD_NAME])}catch(error$5){Collection[METHOD_NAME]=ArrayIteratorMethods[METHOD_NAME]}}}},function(module,exports){module.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,
748
- NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(module,exports,__w_pdfjs_require__){var toIndexedObject=__w_pdfjs_require__(12);exports=__w_pdfjs_require__(66);var Iterators=__w_pdfjs_require__(81),InternalStateModule=__w_pdfjs_require__(28);__w_pdfjs_require__=__w_pdfjs_require__(74);var setInternalState=
749
- InternalStateModule.set,getInternalState=InternalStateModule.getterFor("Array Iterator");module.exports=__w_pdfjs_require__(Array,"Array",function(iterated,kind){setInternalState(this,{type:"Array Iterator",target:toIndexedObject(iterated),index:0,kind:kind})},function(){var state=getInternalState(this),target=state.target,kind=state.kind,index=state.index++;return!target||index>=target.length?(state.target=void 0,{value:void 0,done:!0}):"keys"==kind?{value:index,done:!1}:"values"==kind?{value:target[index],
750
- done:!1}:{value:[index,target[index]],done:!1}},"values");Iterators.Arguments=Iterators.Array;exports("keys");exports("values");exports("entries")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var IS_PURE=__w_pdfjs_require__(32),global=__w_pdfjs_require__(6);exports=__w_pdfjs_require__(37);var NativePromise=__w_pdfjs_require__(110),redefine=__w_pdfjs_require__(24),redefineAll=__w_pdfjs_require__(111),setToStringTag=__w_pdfjs_require__(80),setSpecies=__w_pdfjs_require__(112),
751
- isObject=__w_pdfjs_require__(17),aFunction=__w_pdfjs_require__(59),anInstance=__w_pdfjs_require__(113),classof=__w_pdfjs_require__(14),inspectSource=__w_pdfjs_require__(26),iterate=__w_pdfjs_require__(114),checkCorrectnessOfIteration=__w_pdfjs_require__(92),speciesConstructor=__w_pdfjs_require__(115),task=__w_pdfjs_require__(116).set,microtask=__w_pdfjs_require__(119),promiseResolve=__w_pdfjs_require__(120),hostReportErrors=__w_pdfjs_require__(122),newPromiseCapabilityModule=__w_pdfjs_require__(121),
752
- perform=__w_pdfjs_require__(123),InternalStateModule=__w_pdfjs_require__(28),isForced=__w_pdfjs_require__(47),wellKnownSymbol=__w_pdfjs_require__(53),V8_VERSION=__w_pdfjs_require__(124),SPECIES=wellKnownSymbol("species"),getInternalState=InternalStateModule.get,setInternalState=InternalStateModule.set,getInternalPromiseState=InternalStateModule.getterFor("Promise"),PromiseConstructor=NativePromise,TypeError=global.TypeError,document=global.document,process=global.process,$fetch=exports("fetch"),newPromiseCapability=
753
- newPromiseCapabilityModule.f,newGenericPromiseCapability=newPromiseCapability,IS_NODE="process"==classof(process),DISPATCH_EVENT=!!(document&&document.createEvent&&global.dispatchEvent);checkCorrectnessOfIteration=(__w_pdfjs_require__=isForced("Promise",function(){if(inspectSource(PromiseConstructor)===String(PromiseConstructor)&&(66===V8_VERSION||!IS_NODE&&"function"!=typeof PromiseRejectionEvent)||IS_PURE&&!PromiseConstructor.prototype["finally"])return!0;if(51<=V8_VERSION&&/native code/.test(PromiseConstructor))return!1;
754
- var promise=PromiseConstructor.resolve(1),FakePromise=function(exec){exec(function(){},function(){})};(promise.constructor={})[SPECIES]=FakePromise;return!(promise.then(function(){})instanceof FakePromise)}))||!checkCorrectnessOfIteration(function(iterable){PromiseConstructor.all(iterable)["catch"](function(){})});var isThenable=function(it){var then;return isObject(it)&&"function"==typeof(then=it.then)?then:!1},notify=function(promise,state,isReject){if(!state.notified){state.notified=!0;var chain=
755
- state.reactions;microtask(function(){for(var value=state.value,ok=1==state.state,index=0;chain.length>index;){var reaction=chain[index++],handler=ok?reaction.ok:reaction.fail,resolve=reaction.resolve,reject=reaction.reject,domain=reaction.domain,then;try{if(handler){ok||(2===state.rejection&&onHandleUnhandled(promise,state),state.rejection=1);if(!0===handler)var result=value;else if(domain&&domain.enter(),result=handler(value),domain){domain.exit();var exited=!0}result===reaction.promise?reject(TypeError("Promise-chain cycle")):
756
- (then=isThenable(result))?then.call(result,resolve,reject):resolve(result)}else reject(value)}catch(error){domain&&!exited&&domain.exit(),reject(error)}}state.reactions=[];state.notified=!1;isReject&&!state.rejection&&onUnhandled(promise,state)})}},dispatchEvent=function(name,promise,reason){var handler;if(DISPATCH_EVENT){var event=document.createEvent("Event");event.promise=promise;event.reason=reason;event.initEvent(name,!1,!0);global.dispatchEvent(event)}else event={promise:promise,reason:reason};
757
- (handler=global["on"+name])?handler(event):"unhandledrejection"===name&&hostReportErrors("Unhandled promise rejection",reason)},onUnhandled=function(promise,state){task.call(global,function(){var value=state.value;if(1!==state.rejection&&!state.parent){var result=perform(function(){IS_NODE?process.emit("unhandledRejection",value,promise):dispatchEvent("unhandledrejection",promise,value)});state.rejection=IS_NODE||1!==state.rejection&&!state.parent?2:1;if(result.error)throw result.value;}})},onHandleUnhandled=
758
- function(promise,state){task.call(global,function(){IS_NODE?process.emit("rejectionHandled",promise):dispatchEvent("rejectionhandled",promise,state.value)})},bind=function(fn,promise,state,unwrap){return function(value){fn(promise,state,value,unwrap)}},internalReject=function(promise,state,value,unwrap){state.done||(state.done=!0,unwrap&&(state=unwrap),state.value=value,state.state=2,notify(promise,state,!0))},internalResolve=function internalResolve(promise,state,value,unwrap){if(!state.done){state.done=
759
- !0;unwrap&&(state=unwrap);try{if(promise===value)throw TypeError("Promise can't be resolved itself");var then=isThenable(value);then?microtask(function(){var wrapper={done:!1};try{then.call(value,bind(internalResolve,promise,wrapper,state),bind(internalReject,promise,wrapper,state))}catch(error){internalReject(promise,wrapper,error,state)}}):(state.value=value,state.state=1,notify(promise,state,!1))}catch(error){internalReject(promise,{done:!1},error,state)}}};if(__w_pdfjs_require__){PromiseConstructor=
760
- function(executor){anInstance(this,PromiseConstructor,"Promise");aFunction(executor);Internal.call(this);var state=getInternalState(this);try{executor(bind(internalResolve,this,state),bind(internalReject,this,state))}catch(error){internalReject(this,state,error)}};var Internal=function(executor){setInternalState(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})};Internal.prototype=redefineAll(PromiseConstructor.prototype,{then:function(onFulfilled,
761
- onRejected){var state=getInternalPromiseState(this),reaction=newPromiseCapability(speciesConstructor(this,PromiseConstructor));reaction.ok="function"==typeof onFulfilled?onFulfilled:!0;reaction.fail="function"==typeof onRejected&&onRejected;reaction.domain=IS_NODE?process.domain:void 0;state.parent=!0;state.reactions.push(reaction);0!=state.state&&notify(this,state,!1);return reaction.promise},"catch":function(onRejected){return this.then(void 0,onRejected)}});var OwnPromiseCapability=function(){var promise=
762
- new Internal,state=getInternalState(promise);this.promise=promise;this.resolve=bind(internalResolve,promise,state);this.reject=bind(internalReject,promise,state)};newPromiseCapabilityModule.f=newPromiseCapability=function(C){return C===PromiseConstructor||C===PromiseWrapper?new OwnPromiseCapability(C):newGenericPromiseCapability(C)};if(!IS_PURE&&"function"==typeof NativePromise){var nativeThen=NativePromise.prototype.then;redefine(NativePromise.prototype,"then",function(onFulfilled,onRejected){var that=
763
- this;return(new PromiseConstructor(function(resolve,reject){nativeThen.call(that,resolve,reject)})).then(onFulfilled,onRejected)},{unsafe:!0});"function"==typeof $fetch&&module({global:!0,enumerable:!0,forced:!0},{fetch:function(input){return promiseResolve(PromiseConstructor,$fetch.apply(global,arguments))}})}}module({global:!0,wrap:!0,forced:__w_pdfjs_require__},{Promise:PromiseConstructor});setToStringTag(PromiseConstructor,"Promise",!1,!0);setSpecies("Promise");var PromiseWrapper=exports("Promise");
764
- module({target:"Promise",stat:!0,forced:__w_pdfjs_require__},{reject:function(r){var capability=newPromiseCapability(this);capability.reject.call(void 0,r);return capability.promise}});module({target:"Promise",stat:!0,forced:IS_PURE||__w_pdfjs_require__},{resolve:function(x){return promiseResolve(IS_PURE&&this===PromiseWrapper?PromiseConstructor:this,x)}});module({target:"Promise",stat:!0,forced:checkCorrectnessOfIteration},{all:function(iterable){var C=this,capability=newPromiseCapability(C),resolve=
765
- capability.resolve,reject=capability.reject,result=perform(function(){var $promiseResolve=aFunction(C.resolve),values=[],counter=0,remaining=1;iterate(iterable,function(promise){var index=counter++,alreadyCalled=!1;values.push(void 0);remaining++;$promiseResolve.call(C,promise).then(function(value){alreadyCalled||(alreadyCalled=!0,values[index]=value,--remaining||resolve(values))},reject)});--remaining||resolve(values)});result.error&&reject(result.value);return capability.promise},race:function(iterable){var C=
766
- this,capability=newPromiseCapability(C),reject=capability.reject,result=perform(function(){var $promiseResolve=aFunction(C.resolve);iterate(iterable,function(promise){$promiseResolve.call(C,promise).then(capability.resolve,reject)})});result.error&&reject(result.value);return capability.promise}})},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);module.exports=exports.Promise},function(module,exports,__w_pdfjs_require__){var redefine=__w_pdfjs_require__(24);module.exports=
767
- function(target,src,options){for(var key in src)redefine(target,key,src[key],options);return target}},function(module,exports,__w_pdfjs_require__){var getBuiltIn=__w_pdfjs_require__(37),definePropertyModule=__w_pdfjs_require__(22);exports=__w_pdfjs_require__(53);var DESCRIPTORS=__w_pdfjs_require__(8),SPECIES=exports("species");module.exports=function(CONSTRUCTOR_NAME){CONSTRUCTOR_NAME=getBuiltIn(CONSTRUCTOR_NAME);var defineProperty=definePropertyModule.f;DESCRIPTORS&&CONSTRUCTOR_NAME&&!CONSTRUCTOR_NAME[SPECIES]&&
768
- defineProperty(CONSTRUCTOR_NAME,SPECIES,{configurable:!0,get:function(){return this}})}},function(module,exports){module.exports=function(it,Constructor,name){if(!(it instanceof Constructor))throw TypeError("Incorrect "+(name?name+" ":"")+"invocation");return it}},function(module,exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23),isArrayIteratorMethod=__w_pdfjs_require__(87),toLength=__w_pdfjs_require__(42),bind=__w_pdfjs_require__(58),getIteratorMethod=__w_pdfjs_require__(89),callWithSafeIterationClosing=
769
- __w_pdfjs_require__(86),Result=function(stopped,result){this.stopped=stopped;this.result=result};(module.exports=function(iterable,fn,that,AS_ENTRIES,IS_ITERATOR){fn=bind(fn,that,AS_ENTRIES?2:1);var length,step;if(!IS_ITERATOR){IS_ITERATOR=getIteratorMethod(iterable);if("function"!=typeof IS_ITERATOR)throw TypeError("Target is not iterable");if(isArrayIteratorMethod(IS_ITERATOR)){that=0;for(length=toLength(iterable.length);length>that;that++)if((IS_ITERATOR=AS_ENTRIES?fn(anObject(step=iterable[that])[0],
770
- step[1]):fn(iterable[that]))&&IS_ITERATOR instanceof Result)return IS_ITERATOR;return new Result(!1)}iterable=IS_ITERATOR.call(iterable)}for(that=iterable.next;!(step=that.call(iterable)).done;)if(IS_ITERATOR=callWithSafeIterationClosing(iterable,fn,step.value,AS_ENTRIES),"object"==_typeof2(IS_ITERATOR)&&IS_ITERATOR&&IS_ITERATOR instanceof Result)return IS_ITERATOR;return new Result(!1)}).stop=function(result){return new Result(!0,result)}},function(module,exports,__w_pdfjs_require__){var anObject=
771
- __w_pdfjs_require__(23),aFunction=__w_pdfjs_require__(59),SPECIES=__w_pdfjs_require__(53)("species");module.exports=function(O,defaultConstructor){O=anObject(O).constructor;var S;return void 0===O||void 0==(S=anObject(O)[SPECIES])?defaultConstructor:aFunction(S)}},function(module,exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6),fails=__w_pdfjs_require__(9),classof=__w_pdfjs_require__(14);exports=__w_pdfjs_require__(58);var html=__w_pdfjs_require__(70),createElement=__w_pdfjs_require__(20),
772
- IS_IOS=__w_pdfjs_require__(117),location=global.location;__w_pdfjs_require__=global.setImmediate;var clear=global.clearImmediate,process=global.process,MessageChannel=global.MessageChannel,Dispatch=global.Dispatch,counter=0,queue={},run=function(id){if(queue.hasOwnProperty(id)){var fn=queue[id];delete queue[id];fn()}},runner=function(id){return function(){run(id)}},listener=function(event){run(event.data)},post=function(id){global.postMessage(id+"",location.protocol+"//"+location.host)};if(!__w_pdfjs_require__||
773
- !clear)if(__w_pdfjs_require__=function(fn){for(var args=[],i=1;arguments.length>i;)args.push(arguments[i++]);queue[++counter]=function(){("function"==typeof fn?fn:Function(fn)).apply(void 0,args)};defer(counter);return counter},clear=function(id){delete queue[id]},"process"==classof(process))var defer=function(id){process.nextTick(runner(id))};else Dispatch&&Dispatch.now?defer=function(id){Dispatch.now(runner(id))}:MessageChannel&&!IS_IOS?(fails=new MessageChannel,classof=fails.port2,fails.port1.onmessage=
774
- listener,defer=exports(classof.postMessage,classof,1)):!global.addEventListener||"function"!=typeof postMessage||global.importScripts||fails(post)?defer="onreadystatechange"in createElement("script")?function(id){html.appendChild(createElement("script")).onreadystatechange=function(){html.removeChild(this);run(id)}}:function(id){setTimeout(runner(id),0)}:(defer=post,global.addEventListener("message",listener,!1));module.exports={set:__w_pdfjs_require__,clear:clear}},function(module,exports,__w_pdfjs_require__){exports=
775
- __w_pdfjs_require__(118);module.exports=/(iphone|ipod|ipad).*applewebkit/i.test(exports)},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(37);module.exports=exports("navigator","userAgent")||""},function(module,exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6),getOwnPropertyDescriptor=__w_pdfjs_require__(7).f,classof=__w_pdfjs_require__(14),macrotask=__w_pdfjs_require__(116).set;__w_pdfjs_require__=__w_pdfjs_require__(117);exports=global.MutationObserver||global.WebKitMutationObserver;
776
- var process=global.process,Promise=global.Promise,IS_NODE="process"==classof(process);getOwnPropertyDescriptor=(getOwnPropertyDescriptor=getOwnPropertyDescriptor(global,"queueMicrotask"))&&getOwnPropertyDescriptor.value;var head,last;if(!getOwnPropertyDescriptor){var flush=function(){var parent;for(IS_NODE&&(parent=process.domain)&&parent.exit();head;){var fn=head.fn;head=head.next;try{fn()}catch(error){throw head?notify():last=void 0,error;}}last=void 0;parent&&parent.enter()};if(IS_NODE)var notify=
777
- function(){process.nextTick(flush)};else if(exports&&!__w_pdfjs_require__){var toggle=!0;var node=document.createTextNode("");(new exports(flush)).observe(node,{characterData:!0});notify=function(){node.data=toggle=!toggle}}else if(Promise&&Promise.resolve){var promise=Promise.resolve(void 0);var then=promise.then;notify=function(){then.call(promise,flush)}}else notify=function(){macrotask.call(global,flush)}}module.exports=getOwnPropertyDescriptor||function(fn){fn={fn:fn,next:void 0};last&&(last.next=
778
- fn);head||(head=fn,notify());last=fn}},function(module,exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23),isObject=__w_pdfjs_require__(17),newPromiseCapability=__w_pdfjs_require__(121);module.exports=function(C,x){anObject(C);if(isObject(x)&&x.constructor===C)return x;C=newPromiseCapability.f(C);var resolve=C.resolve;resolve(x);return C.promise}},function(module,exports,__w_pdfjs_require__){var aFunction=__w_pdfjs_require__(59),PromiseCapability=function(C){var resolve,reject;this.promise=
779
- new C(function($$resolve,$$reject){if(void 0!==resolve||void 0!==reject)throw TypeError("Bad Promise constructor");resolve=$$resolve;reject=$$reject});this.resolve=aFunction(resolve);this.reject=aFunction(reject)};module.exports.f=function(C){return new PromiseCapability(C)}},function(module,exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6);module.exports=function(a,b){var console=global.console;console&&console.error&&(1===arguments.length?console.error(a):console.error(a,b))}},function(module,
780
- exports){module.exports=function(exec){try{return{error:!1,value:exec()}}catch(error){return{error:!0,value:error}}}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);__w_pdfjs_require__=__w_pdfjs_require__(118);exports=(exports=(exports=exports.process)&&exports.versions)&&exports.v8;if(exports){exports=exports.split(".");var version=exports[0]+exports[1]}else __w_pdfjs_require__&&(exports=__w_pdfjs_require__.match(/Edge\/(\d+)/),(!exports||74<=exports[1])&&(exports=__w_pdfjs_require__.match(/Chrome\/(\d+)/))&&
781
- (version=exports[1]));module.exports=version&&+version},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var aFunction=__w_pdfjs_require__(59),newPromiseCapabilityModule=__w_pdfjs_require__(121),perform=__w_pdfjs_require__(123),iterate=__w_pdfjs_require__(114);module({target:"Promise",stat:!0},{allSettled:function(iterable){var C=this,capability=newPromiseCapabilityModule.f(C),resolve=capability.resolve,reject=capability.reject,result=perform(function(){var promiseResolve=
782
- aFunction(C.resolve),values=[],counter=0,remaining=1;iterate(iterable,function(promise){var index=counter++,alreadyCalled=!1;values.push(void 0);remaining++;promiseResolve.call(C,promise).then(function(value){alreadyCalled||(alreadyCalled=!0,values[index]={status:"fulfilled",value:value},--remaining||resolve(values))},function(e){alreadyCalled||(alreadyCalled=!0,values[index]={status:"rejected",reason:e},--remaining||resolve(values))})});--remaining||resolve(values)});result.error&&reject(result.value);
783
- return capability.promise}})},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);exports=__w_pdfjs_require__(32);var NativePromise=__w_pdfjs_require__(110),fails=__w_pdfjs_require__(9),getBuiltIn=__w_pdfjs_require__(37),speciesConstructor=__w_pdfjs_require__(115),promiseResolve=__w_pdfjs_require__(120);__w_pdfjs_require__=__w_pdfjs_require__(24);fails=!!NativePromise&&fails(function(){NativePromise.prototype["finally"].call({then:function(){}},function(){})});module({target:"Promise",
784
- proto:!0,real:!0,forced:fails},{"finally":function(onFinally){var C=speciesConstructor(this,getBuiltIn("Promise")),isFunction="function"==typeof onFinally;return this.then(isFunction?function(x){return promiseResolve(C,onFinally()).then(function(){return x})}:onFinally,isFunction?function(e){return promiseResolve(C,onFinally()).then(function(){throw e;})}:onFinally)}});exports||"function"!=typeof NativePromise||NativePromise.prototype["finally"]||__w_pdfjs_require__(NativePromise.prototype,"finally",
785
- getBuiltIn("Promise").prototype["finally"])},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(128);__w_pdfjs_require__(133);__w_pdfjs_require__(131);exports=__w_pdfjs_require__(38);module.exports=exports.URL},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(72);module=__w_pdfjs_require__(5);var DESCRIPTORS=__w_pdfjs_require__(8);exports=__w_pdfjs_require__(129);var global=__w_pdfjs_require__(6),defineProperties=__w_pdfjs_require__(68),redefine=__w_pdfjs_require__(24),
786
- anInstance=__w_pdfjs_require__(113),has=__w_pdfjs_require__(18),assign=__w_pdfjs_require__(95),arrayFrom=__w_pdfjs_require__(85),codeAt=__w_pdfjs_require__(73).codeAt,toASCII=__w_pdfjs_require__(130),setToStringTag=__w_pdfjs_require__(80),URLSearchParamsModule=__w_pdfjs_require__(131);__w_pdfjs_require__=__w_pdfjs_require__(28);var NativeURL=global.URL,URLSearchParams=URLSearchParamsModule.URLSearchParams,getInternalSearchParamsState=URLSearchParamsModule.getState,setInternalState=__w_pdfjs_require__.set,
787
- getInternalURLState=__w_pdfjs_require__.getterFor("URL"),floor=Math.floor,pow=Math.pow,ALPHA=/[A-Za-z]/,ALPHANUMERIC=/[\d+\-.A-Za-z]/,DIGIT=/\d/,HEX_START=/^(0x|0X)/,OCT=/^[0-7]+$/,DEC=/^\d+$/,HEX=/^[\dA-Fa-f]+$/,FORBIDDEN_HOST_CODE_POINT=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,TAB_AND_NEW_LINE=/[\u0009\u000A\u000D]/g,parseHost=function(url,
788
- input){var index;if("["==input.charAt(0)){if("]"!=input.charAt(input.length-1))return"Invalid host";var result=parseIPv6(input.slice(1,-1));if(!result)return"Invalid host"}else if(isSpecial(url)){input=toASCII(input);if(FORBIDDEN_HOST_CODE_POINT.test(input))return"Invalid host";result=parseIPv4(input);if(null===result)return"Invalid host"}else{if(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT.test(input))return"Invalid host";result="";input=arrayFrom(input);for(index=0;index<input.length;index++)result+=
789
- percentEncode(input[index],C0ControlPercentEncodeSet)}url.host=result},parseIPv4=function(input){var parts=input.split("."),index;parts.length&&""==parts[parts.length-1]&&parts.pop();var partsLength=parts.length;if(4<partsLength)return input;var numbers=[];for(index=0;index<partsLength;index++){var part=parts[index];if(""==part)return input;var radix=10;1<part.length&&"0"==part.charAt(0)&&(radix=HEX_START.test(part)?16:8,part=part.slice(8==radix?1:2));if(""===part)part=0;else{if(!(10==radix?DEC:8==
790
- radix?OCT:HEX).test(part))return input;part=parseInt(part,radix)}numbers.push(part)}for(index=0;index<partsLength;index++)if(part=numbers[index],index==partsLength-1){if(part>=pow(256,5-partsLength))return null}else if(255<part)return null;input=numbers.pop();for(index=0;index<numbers.length;index++)input+=numbers[index]*pow(256,3-index);return input},parseIPv6=function(input){var address=[0,0,0,0,0,0,0,0],pieceIndex=0,compress=null,pointer=0,value,length;var swaps=function(){return input.charAt(pointer)};
791
- if(":"==swaps()){if(":"!=input.charAt(1))return;pointer+=2;pieceIndex++;compress=pieceIndex}for(;swaps();){if(8==pieceIndex)return;if(":"==swaps()){if(null!==compress)return;pointer++;pieceIndex++;compress=pieceIndex}else{for(value=length=0;4>length&&HEX.test(swaps());)value=16*value+parseInt(swaps(),16),pointer++,length++;if("."==swaps()){if(0==length)return;pointer-=length;if(6<pieceIndex)return;for(value=0;swaps();){length=null;if(0<value)if("."==swaps()&&4>value)pointer++;else return;if(!DIGIT.test(swaps()))return;
792
- for(;DIGIT.test(swaps());){var number=parseInt(swaps(),10);if(null===length)length=number;else{if(0==length)return;length=10*length+number}if(255<length)return;pointer++}address[pieceIndex]=256*address[pieceIndex]+length;value++;2!=value&&4!=value||pieceIndex++}if(4!=value)return;break}else if(":"==swaps()){if(pointer++,!swaps())return}else if(swaps())return;address[pieceIndex++]=value}}if(null!==compress)for(swaps=pieceIndex-compress,pieceIndex=7;0!=pieceIndex&&0<swaps;)value=address[pieceIndex],
793
- address[pieceIndex--]=address[compress+swaps-1],address[compress+--swaps]=value;else if(8!=pieceIndex)return;return address},serializeHost=function(host){var index,ignore0;if("number"==typeof host){var result=[];for(index=0;4>index;index++)result.unshift(host%256),host=floor(host/256);return result.join(".")}if("object"==_typeof2(host)){result="";index=null;var compress=1;for(var currStart=null,currLength=0,index$jscomp$0=0;8>index$jscomp$0;index$jscomp$0++)0!==host[index$jscomp$0]?(currLength>compress&&
794
- (index=currStart,compress=currLength),currStart=null,currLength=0):(null===currStart&&(currStart=index$jscomp$0),++currLength);currLength>compress&&(index=currStart);compress=index;for(index=0;8>index;index++)ignore0&&0===host[index]||(ignore0&&(ignore0=!1),compress===index?(result+=index?":":"::",ignore0=!0):(result+=host[index].toString(16),7>index&&(result+=":")));return"["+result+"]"}return host},C0ControlPercentEncodeSet={},fragmentPercentEncodeSet=assign({},C0ControlPercentEncodeSet,{" ":1,
795
- '"':1,"<":1,">":1,"`":1}),pathPercentEncodeSet=assign({},fragmentPercentEncodeSet,{"#":1,"?":1,"{":1,"}":1}),userinfoPercentEncodeSet=assign({},pathPercentEncodeSet,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(_char2,set){var code=codeAt(_char2,0);return 32<code&&127>code&&!has(set,_char2)?_char2:encodeURIComponent(_char2)},specialSchemes={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(url){return has(specialSchemes,url.scheme)},cannotHaveUsernamePasswordPort=
796
- function(url){return!url.host||url.cannotBeABaseURL||"file"==url.scheme},isWindowsDriveLetter=function(string,normalized){var second;return 2==string.length&&ALPHA.test(string.charAt(0))&&(":"==(second=string.charAt(1))||!normalized&&"|"==second)},startsWithWindowsDriveLetter=function(string){var third;return 1<string.length&&isWindowsDriveLetter(string.slice(0,2))&&(2==string.length||"/"===(third=string.charAt(2))||"\\"===third||"?"===third||"#"===third)},shortenURLsPath=function(url){var path=url.path,
797
- pathSize=path.length;!pathSize||"file"==url.scheme&&1==pathSize&&isWindowsDriveLetter(path[0],!0)||path.pop()},SCHEME_START={},SCHEME={},NO_SCHEME={},SPECIAL_RELATIVE_OR_AUTHORITY={},PATH_OR_AUTHORITY={},RELATIVE={},RELATIVE_SLASH={},SPECIAL_AUTHORITY_SLASHES={},SPECIAL_AUTHORITY_IGNORE_SLASHES={},AUTHORITY={},HOST={},HOSTNAME={},PORT={},FILE={},FILE_SLASH={},FILE_HOST={},PATH_START={},PATH={},CANNOT_BE_A_BASE_URL_PATH={},QUERY={},FRAGMENT={},parseURL=function(url,input,stateOverride,base){var state=
798
- stateOverride||SCHEME_START,pointer=0,buffer="",seenAt=!1,seenBracket=!1,seenPasswordToken=!1;stateOverride||(url.scheme="",url.username="",url.password="",url.host=null,url.port=null,url.path=[],url.query=null,url.fragment=null,url.cannotBeABaseURL=!1,input=input.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE,""));input=input.replace(TAB_AND_NEW_LINE,"");for(input=arrayFrom(input);pointer<=input.length;){var _char3=input[pointer];switch(state){case SCHEME_START:if(_char3&&ALPHA.test(_char3))buffer+=
799
- _char3.toLowerCase(),state=SCHEME;else{if(stateOverride)return"Invalid scheme";state=NO_SCHEME;continue}break;case SCHEME:if(_char3&&(ALPHANUMERIC.test(_char3)||"+"==_char3||"-"==_char3||"."==_char3))buffer+=_char3.toLowerCase();else if(":"==_char3){if(stateOverride&&(isSpecial(url)!=has(specialSchemes,buffer)||"file"==buffer&&(""!=url.username||""!=url.password||null!==url.port)||"file"==url.scheme&&!url.host))return;url.scheme=buffer;if(stateOverride){isSpecial(url)&&specialSchemes[url.scheme]==
800
- url.port&&(url.port=null);return}buffer="";"file"==url.scheme?state=FILE:isSpecial(url)&&base&&base.scheme==url.scheme?state=SPECIAL_RELATIVE_OR_AUTHORITY:isSpecial(url)?state=SPECIAL_AUTHORITY_SLASHES:"/"==input[pointer+1]?(state=PATH_OR_AUTHORITY,pointer++):(url.cannotBeABaseURL=!0,url.path.push(""),state=CANNOT_BE_A_BASE_URL_PATH)}else{if(stateOverride)return"Invalid scheme";buffer="";state=NO_SCHEME;pointer=0;continue}break;case NO_SCHEME:if(!base||base.cannotBeABaseURL&&"#"!=_char3)return"Invalid scheme";
801
- if(base.cannotBeABaseURL&&"#"==_char3){url.scheme=base.scheme;url.path=base.path.slice();url.query=base.query;url.fragment="";url.cannotBeABaseURL=!0;state=FRAGMENT;break}state="file"==base.scheme?FILE:RELATIVE;continue;case SPECIAL_RELATIVE_OR_AUTHORITY:if("/"==_char3&&"/"==input[pointer+1])state=SPECIAL_AUTHORITY_IGNORE_SLASHES,pointer++;else{state=RELATIVE;continue}break;case PATH_OR_AUTHORITY:if("/"==_char3){state=AUTHORITY;break}else{state=PATH;continue}case RELATIVE:url.scheme=base.scheme;if(void 0==
802
- _char3)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=base.path.slice(),url.query=base.query;else if("/"==_char3||"\\"==_char3&&isSpecial(url))state=RELATIVE_SLASH;else if("?"==_char3)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=base.path.slice(),url.query="",state=QUERY;else if("#"==_char3)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=
803
- base.path.slice(),url.query=base.query,url.fragment="",state=FRAGMENT;else{url.username=base.username;url.password=base.password;url.host=base.host;url.port=base.port;url.path=base.path.slice();url.path.pop();state=PATH;continue}break;case RELATIVE_SLASH:if(!isSpecial(url)||"/"!=_char3&&"\\"!=_char3)if("/"==_char3)state=AUTHORITY;else{url.username=base.username;url.password=base.password;url.host=base.host;url.port=base.port;state=PATH;continue}else state=SPECIAL_AUTHORITY_IGNORE_SLASHES;break;case SPECIAL_AUTHORITY_SLASHES:state=
804
- SPECIAL_AUTHORITY_IGNORE_SLASHES;if("/"!=_char3||"/"!=buffer.charAt(pointer+1))continue;pointer++;break;case SPECIAL_AUTHORITY_IGNORE_SLASHES:if("/"!=_char3&&"\\"!=_char3){state=AUTHORITY;continue}break;case AUTHORITY:if("@"==_char3){seenAt&&(buffer="%40"+buffer);seenAt=!0;buffer=arrayFrom(buffer);for(_char3=0;_char3<buffer.length;_char3++){var codePoint=buffer[_char3];":"!=codePoint||seenPasswordToken?(codePoint=percentEncode(codePoint,userinfoPercentEncodeSet),seenPasswordToken?url.password+=codePoint:
805
- url.username+=codePoint):seenPasswordToken=!0}buffer=""}else if(void 0==_char3||"/"==_char3||"?"==_char3||"#"==_char3||"\\"==_char3&&isSpecial(url)){if(seenAt&&""==buffer)return"Invalid authority";pointer-=arrayFrom(buffer).length+1;buffer="";state=HOST}else buffer+=_char3;break;case HOST:case HOSTNAME:if(stateOverride&&"file"==url.scheme){state=FILE_HOST;continue}else if(":"!=_char3||seenBracket)if(void 0==_char3||"/"==_char3||"?"==_char3||"#"==_char3||"\\"==_char3&&isSpecial(url)){if(isSpecial(url)&&
806
- ""==buffer)return"Invalid host";if(stateOverride&&""==buffer&&(""!=url.username||""!=url.password||null!==url.port))return;if(state=parseHost(url,buffer))return state;buffer="";state=PATH_START;if(stateOverride)return;continue}else"["==_char3?seenBracket=!0:"]"==_char3&&(seenBracket=!1),buffer+=_char3;else{if(""==buffer)return"Invalid host";if(state=parseHost(url,buffer))return state;buffer="";state=PORT;if(stateOverride==HOSTNAME)return}break;case PORT:if(DIGIT.test(_char3))buffer+=_char3;else if(void 0==
807
- _char3||"/"==_char3||"?"==_char3||"#"==_char3||"\\"==_char3&&isSpecial(url)||stateOverride){if(""!=buffer){state=parseInt(buffer,10);if(65535<state)return"Invalid port";url.port=isSpecial(url)&&state===specialSchemes[url.scheme]?null:state;buffer=""}if(stateOverride)return;state=PATH_START;continue}else return"Invalid port";break;case FILE:url.scheme="file";if("/"==_char3||"\\"==_char3)state=FILE_SLASH;else if(base&&"file"==base.scheme)if(void 0==_char3)url.host=base.host,url.path=base.path.slice(),
808
- url.query=base.query;else if("?"==_char3)url.host=base.host,url.path=base.path.slice(),url.query="",state=QUERY;else if("#"==_char3)url.host=base.host,url.path=base.path.slice(),url.query=base.query,url.fragment="",state=FRAGMENT;else{startsWithWindowsDriveLetter(input.slice(pointer).join(""))||(url.host=base.host,url.path=base.path.slice(),shortenURLsPath(url));state=PATH;continue}else{state=PATH;continue}break;case FILE_SLASH:if("/"==_char3||"\\"==_char3){state=FILE_HOST;break}base&&"file"==base.scheme&&
809
- !startsWithWindowsDriveLetter(input.slice(pointer).join(""))&&(isWindowsDriveLetter(base.path[0],!0)?url.path.push(base.path[0]):url.host=base.host);state=PATH;continue;case FILE_HOST:if(void 0==_char3||"/"==_char3||"\\"==_char3||"?"==_char3||"#"==_char3){if(!stateOverride&&isWindowsDriveLetter(buffer))state=PATH;else{if(""==buffer){if(url.host="",stateOverride)return}else{if(state=parseHost(url,buffer))return state;"localhost"==url.host&&(url.host="");if(stateOverride)return;buffer=""}state=PATH_START}continue}else buffer+=
810
- _char3;break;case PATH_START:if(isSpecial(url)){if(state=PATH,"/"!=_char3&&"\\"!=_char3)continue}else if(!stateOverride&&"?"==_char3)url.query="",state=QUERY;else if(!stateOverride&&"#"==_char3)url.fragment="",state=FRAGMENT;else if(void 0!=_char3&&(state=PATH,"/"!=_char3))continue;break;case PATH:if(void 0==_char3||"/"==_char3||"\\"==_char3&&isSpecial(url)||!stateOverride&&("?"==_char3||"#"==_char3)){codePoint=buffer;codePoint=codePoint.toLowerCase();".."===codePoint||"%2e."===codePoint||".%2e"===
811
- codePoint||"%2e%2e"===codePoint?(shortenURLsPath(url),"/"==_char3||"\\"==_char3&&isSpecial(url)||url.path.push("")):"."===buffer||"%2e"===buffer.toLowerCase()?"/"==_char3||"\\"==_char3&&isSpecial(url)||url.path.push(""):("file"==url.scheme&&!url.path.length&&isWindowsDriveLetter(buffer)&&(url.host&&(url.host=""),buffer=buffer.charAt(0)+":"),url.path.push(buffer));buffer="";if("file"==url.scheme&&(void 0==_char3||"?"==_char3||"#"==_char3))for(;1<url.path.length&&""===url.path[0];)url.path.shift();
812
- "?"==_char3?(url.query="",state=QUERY):"#"==_char3&&(url.fragment="",state=FRAGMENT)}else buffer+=percentEncode(_char3,pathPercentEncodeSet);break;case CANNOT_BE_A_BASE_URL_PATH:"?"==_char3?(url.query="",state=QUERY):"#"==_char3?(url.fragment="",state=FRAGMENT):void 0!=_char3&&(url.path[0]+=percentEncode(_char3,C0ControlPercentEncodeSet));break;case QUERY:stateOverride||"#"!=_char3?void 0!=_char3&&("'"==_char3&&isSpecial(url)?url.query+="%27":url.query="#"==_char3?url.query+"%23":url.query+percentEncode(_char3,
813
- C0ControlPercentEncodeSet)):(url.fragment="",state=FRAGMENT);break;case FRAGMENT:void 0!=_char3&&(url.fragment+=percentEncode(_char3,fragmentPercentEncodeSet))}pointer++}},URLConstructor=function(url){var that=anInstance(this,URLConstructor,"URL"),base=1<arguments.length?arguments[1]:void 0,urlString=String(url),state=setInternalState(that,{type:"URL"}),failure;if(void 0!==base)if(base instanceof URLConstructor)var baseState=getInternalURLState(base);else if(failure=parseURL(baseState={},String(base)))throw TypeError(failure);
814
- if(failure=parseURL(state,urlString,null,baseState))throw TypeError(failure);var searchParams=state.searchParams=new URLSearchParams;base=getInternalSearchParamsState(searchParams);base.updateSearchParams(state.query);base.updateURL=function(){state.query=String(searchParams)||null};DESCRIPTORS||(that.href=serializeURL.call(that),that.origin=getOrigin.call(that),that.protocol=getProtocol.call(that),that.username=getUsername.call(that),that.password=getPassword.call(that),that.host=getHost.call(that),
815
- that.hostname=getHostname.call(that),that.port=getPort.call(that),that.pathname=getPathname.call(that),that.search=getSearch.call(that),that.searchParams=getSearchParams.call(that),that.hash=getHash.call(that))};__w_pdfjs_require__=URLConstructor.prototype;var serializeURL=function(){var url=getInternalURLState(this),scheme=url.scheme,username=url.username,password=url.password,host=url.host,port=url.port,path=url.path,query=url.query,fragment=url.fragment,output=scheme+":";if(null!==host){output+=
816
- "//";if(""!=url.username||""!=url.password)output+=username+(password?":"+password:"")+"@";output+=serializeHost(host);null!==port&&(output+=":"+port)}else"file"==scheme&&(output+="//");output+=url.cannotBeABaseURL?path[0]:path.length?"/"+path.join("/"):"";null!==query&&(output+="?"+query);null!==fragment&&(output+="#"+fragment);return output},getOrigin=function(){var url=getInternalURLState(this),scheme=url.scheme,port=url.port;if("blob"==scheme)try{return(new URL(scheme.path[0])).origin}catch(error){return"null"}return"file"!=
817
- scheme&&isSpecial(url)?scheme+"://"+serializeHost(url.host)+(null!==port?":"+port:""):"null"},getProtocol=function(){return getInternalURLState(this).scheme+":"},getUsername=function(){return getInternalURLState(this).username},getPassword=function(){return getInternalURLState(this).password},getHost=function(){var url=getInternalURLState(this),host=url.host;url=url.port;return null===host?"":null===url?serializeHost(host):serializeHost(host)+":"+url},getHostname=function(){var host=getInternalURLState(this).host;
818
- return null===host?"":serializeHost(host)},getPort=function(){var port=getInternalURLState(this).port;return null===port?"":String(port)},getPathname=function(){var url=getInternalURLState(this),path=url.path;return url.cannotBeABaseURL?path[0]:path.length?"/"+path.join("/"):""},getSearch=function(){var query=getInternalURLState(this).query;return query?"?"+query:""},getSearchParams=function(){return getInternalURLState(this).searchParams},getHash=function(){var fragment=getInternalURLState(this).fragment;
819
- return fragment?"#"+fragment:""};global=function(getter,setter){return{get:getter,set:setter,configurable:!0,enumerable:!0}};DESCRIPTORS&&defineProperties(__w_pdfjs_require__,{href:global(serializeURL,function(href){var url=getInternalURLState(this);if(href=parseURL(url,String(href)))throw TypeError(href);getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query)}),origin:global(getOrigin),protocol:global(getProtocol,function(protocol){var url=getInternalURLState(this);parseURL(url,
820
- String(protocol)+":",SCHEME_START)}),username:global(getUsername,function(username){var url=getInternalURLState(this);username=arrayFrom(String(username));if(!cannotHaveUsernamePasswordPort(url)){url.username="";for(var i=0;i<username.length;i++)url.username+=percentEncode(username[i],userinfoPercentEncodeSet)}}),password:global(getPassword,function(password){var url=getInternalURLState(this);password=arrayFrom(String(password));if(!cannotHaveUsernamePasswordPort(url)){url.password="";for(var i=0;i<
821
- password.length;i++)url.password+=percentEncode(password[i],userinfoPercentEncodeSet)}}),host:global(getHost,function(host){var url=getInternalURLState(this);url.cannotBeABaseURL||parseURL(url,String(host),HOST)}),hostname:global(getHostname,function(hostname){var url=getInternalURLState(this);url.cannotBeABaseURL||parseURL(url,String(hostname),HOSTNAME)}),port:global(getPort,function(port){var url=getInternalURLState(this);cannotHaveUsernamePasswordPort(url)||(port=String(port),""==port?url.port=
822
- null:parseURL(url,port,PORT))}),pathname:global(getPathname,function(pathname){var url=getInternalURLState(this);url.cannotBeABaseURL||(url.path=[],parseURL(url,pathname+"",PATH_START))}),search:global(getSearch,function(search){var url=getInternalURLState(this);search=String(search);""==search?url.query=null:("?"==search.charAt(0)&&(search=search.slice(1)),url.query="",parseURL(url,search,QUERY));getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query)}),searchParams:global(getSearchParams),
823
- hash:global(getHash,function(hash){var url=getInternalURLState(this);hash=String(hash);""==hash?url.fragment=null:("#"==hash.charAt(0)&&(hash=hash.slice(1)),url.fragment="",parseURL(url,hash,FRAGMENT))})});redefine(__w_pdfjs_require__,"toJSON",function(){return serializeURL.call(this)},{enumerable:!0});redefine(__w_pdfjs_require__,"toString",function(){return serializeURL.call(this)},{enumerable:!0});if(NativeURL){var nativeCreateObjectURL=NativeURL.createObjectURL,nativeRevokeObjectURL=NativeURL.revokeObjectURL;
824
- nativeCreateObjectURL&&redefine(URLConstructor,"createObjectURL",function(blob){return nativeCreateObjectURL.apply(NativeURL,arguments)});nativeRevokeObjectURL&&redefine(URLConstructor,"revokeObjectURL",function(url){return nativeRevokeObjectURL.apply(NativeURL,arguments)})}setToStringTag(URLConstructor,"URL");module({global:!0,forced:!exports,sham:!DESCRIPTORS},{URL:URLConstructor})},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(9);var wellKnownSymbol=__w_pdfjs_require__(53),
825
- IS_PURE=__w_pdfjs_require__(32),ITERATOR=wellKnownSymbol("iterator");module.exports=!exports(function(){var url=new URL("b?a=1&b=2&c=3","http://a"),searchParams=url.searchParams,result="";url.pathname="c%20d";searchParams.forEach(function(value,key){searchParams["delete"]("b");result+=key+value});return IS_PURE&&!url.toJSON||!searchParams.sort||"http://a/c%20d?a=1&c=3"!==url.href||"3"!==searchParams.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!searchParams[ITERATOR]||"a"!==(new URL("https://a@b")).username||
826
- "b"!==(new URLSearchParams(new URLSearchParams("a=b"))).get("a")||"xn--e1aybc"!==(new URL("http://\u0442\u0435\u0441\u0442")).host||"#%D0%B1"!==(new URL("http://a#\u0431")).hash||"a1c3"!==result||"x"!==(new URL("http://x",void 0)).host})},function(module,exports,__w_pdfjs_require__){var regexNonASCII=/[^\0-\u007E]/,regexSeparators=/[.\u3002\uFF0E\uFF61]/g,floor=Math.floor,stringFromCharCode=String.fromCharCode;module.exports=function(input$jscomp$0){var encoded=[];input$jscomp$0=input$jscomp$0.toLowerCase().replace(regexSeparators,
827
- ".").split(".");var i;for(i=0;i<input$jscomp$0.length;i++){var label=input$jscomp$0[i];var JSCompiler_temp_const=encoded,JSCompiler_temp_const$jscomp$0=JSCompiler_temp_const.push;if(regexNonASCII.test(label)){var input=label;label=[];var i$jscomp$0=input;input=[];for(var counter=0,length=i$jscomp$0.length;counter<length;){var value=i$jscomp$0.charCodeAt(counter++);if(55296<=value&&56319>=value&&counter<length){var extra=i$jscomp$0.charCodeAt(counter++);56320==(extra&64512)?input.push(((value&1023)<<
828
- 10)+(extra&1023)+65536):(input.push(value),counter--)}else input.push(value)}counter=input.length;length=128;var delta=0,bias=72;for(i$jscomp$0=0;i$jscomp$0<input.length;i$jscomp$0++){var currentValue=input[i$jscomp$0];128>currentValue&&label.push(stringFromCharCode(currentValue))}for((extra=value=label.length)&&label.push("-");extra<counter;){var m=2147483647;for(i$jscomp$0=0;i$jscomp$0<input.length;i$jscomp$0++)currentValue=input[i$jscomp$0],currentValue>=length&&currentValue<m&&(m=currentValue);
829
- var handledCPCountPlusOne=extra+1;if(m-length>floor((2147483647-delta)/handledCPCountPlusOne))throw RangeError("Overflow: input needs wider integers to process");delta+=(m-length)*handledCPCountPlusOne;length=m;for(i$jscomp$0=0;i$jscomp$0<input.length;i$jscomp$0++){currentValue=input[i$jscomp$0];if(currentValue<length&&2147483647<++delta)throw RangeError("Overflow: input needs wider integers to process");if(currentValue==length){var q=delta;for(currentValue=36;;currentValue+=36){m=currentValue<=bias?
830
- 1:currentValue>=bias+26?26:currentValue-bias;if(q<m)break;q-=m;var baseMinusT=36-m,JSCompiler_temp_const$jscomp$1=label;m+=q%baseMinusT;JSCompiler_temp_const$jscomp$1.push.call(JSCompiler_temp_const$jscomp$1,stringFromCharCode(m+22+75*(26>m)));q=floor(q/baseMinusT)}label.push(stringFromCharCode(q+22+75*(26>q)));bias=handledCPCountPlusOne;currentValue=0;delta=extra==value?floor(delta/700):delta>>1;for(delta+=floor(delta/bias);455<delta;currentValue+=36)delta=floor(delta/35);bias=floor(currentValue+
831
- 36*delta/(delta+38));delta=0;++extra}}++delta;++length}label="xn--"+label.join("")}JSCompiler_temp_const$jscomp$0.call(JSCompiler_temp_const,label)}return encoded.join(".")}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(108);exports=__w_pdfjs_require__(5);var getBuiltIn=__w_pdfjs_require__(37),USE_NATIVE_URL=__w_pdfjs_require__(129),redefine=__w_pdfjs_require__(24),redefineAll=__w_pdfjs_require__(111),setToStringTag=__w_pdfjs_require__(80),createIteratorConstructor=__w_pdfjs_require__(75),
832
- InternalStateModule=__w_pdfjs_require__(28),anInstance=__w_pdfjs_require__(113),hasOwn=__w_pdfjs_require__(18),bind=__w_pdfjs_require__(58),classof=__w_pdfjs_require__(90),anObject=__w_pdfjs_require__(23),isObject=__w_pdfjs_require__(17),create=__w_pdfjs_require__(67),createPropertyDescriptor=__w_pdfjs_require__(11),getIterator=__w_pdfjs_require__(132),getIteratorMethod=__w_pdfjs_require__(89);__w_pdfjs_require__=__w_pdfjs_require__(53);var $fetch=getBuiltIn("fetch"),Headers=getBuiltIn("Headers");
833
- __w_pdfjs_require__=__w_pdfjs_require__("iterator");var setInternalState=InternalStateModule.set,getInternalParamsState=InternalStateModule.getterFor("URLSearchParams"),getInternalIteratorState=InternalStateModule.getterFor("URLSearchParamsIterator"),plus=/\+/g,sequences=Array(4),percentDecode=function(sequence){try{return decodeURIComponent(sequence)}catch(error){return sequence}},deserialize=function(it){var result=it.replace(plus," ");it=4;try{return decodeURIComponent(result)}catch(error){for(;it;){var JSCompiler_temp_const=
834
- result.replace;var JSCompiler_inline_result=it--;JSCompiler_inline_result=sequences[JSCompiler_inline_result-1]||(sequences[JSCompiler_inline_result-1]=RegExp("((?:%[\\da-f]{2}){"+JSCompiler_inline_result+"})","gi"));result=JSCompiler_temp_const.call(result,JSCompiler_inline_result,percentDecode)}return result}},find=/[!'()~]|%20/g,replace={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(match){return replace[match]},parseSearchParams=function(result,query){if(query){query=
835
- query.split("&");for(var index=0,attribute;index<query.length;)attribute=query[index++],attribute.length&&(attribute=attribute.split("="),result.push({key:deserialize(attribute.shift()),value:deserialize(attribute.join("="))}))}},updateSearchParams=function(query){this.entries.length=0;parseSearchParams(this.entries,query)},validateArgumentsLength=function(passed,required){if(passed<required)throw TypeError("Not enough arguments");},URLSearchParamsIterator=createIteratorConstructor(function(params,
836
- kind){setInternalState(this,{type:"URLSearchParamsIterator",iterator:getIterator(getInternalParamsState(params).entries),kind:kind})},"Iterator",function(){var state=getInternalIteratorState(this),kind=state.kind;state=state.iterator.next();var entry=state.value;state.done||(state.value="keys"===kind?entry.key:"values"===kind?entry.value:[entry.key,entry.value]);return state}),URLSearchParamsConstructor=function(){anInstance(this,URLSearchParamsConstructor,"URLSearchParams");var init=0<arguments.length?
837
- arguments[0]:void 0,entries=[],step,first,second;setInternalState(this,{type:"URLSearchParams",entries:entries,updateURL:function(){},updateSearchParams:updateSearchParams});if(void 0!==init)if(isObject(init)){var iteratorMethod=getIteratorMethod(init);if("function"===typeof iteratorMethod)for(init=iteratorMethod.call(init),iteratorMethod=init.next;!(step=iteratorMethod.call(init)).done;){step=getIterator(anObject(step.value));var entryNext=step.next;if((first=entryNext.call(step)).done||(second=
838
- entryNext.call(step)).done||!entryNext.call(step).done)throw TypeError("Expected sequence with length 2");entries.push({key:first.value+"",value:second.value+""})}else for(step in init)hasOwn(init,step)&&entries.push({key:step,value:init[step]+""})}else parseSearchParams(entries,"string"===typeof init?"?"===init.charAt(0)?init.slice(1):init:init+"")};createIteratorConstructor=URLSearchParamsConstructor.prototype;redefineAll(createIteratorConstructor,{append:function(name,value){validateArgumentsLength(arguments.length,
839
- 2);var state=getInternalParamsState(this);state.entries.push({key:name+"",value:value+""});state.updateURL()},"delete":function(name){validateArgumentsLength(arguments.length,1);for(var state=getInternalParamsState(this),entries=state.entries,key=name+"",index=0;index<entries.length;)entries[index].key===key?entries.splice(index,1):index++;state.updateURL()},get:function(name){validateArgumentsLength(arguments.length,1);for(var entries=getInternalParamsState(this).entries,key=name+"",index=0;index<
840
- entries.length;index++)if(entries[index].key===key)return entries[index].value;return null},getAll:function(name){validateArgumentsLength(arguments.length,1);for(var entries=getInternalParamsState(this).entries,key=name+"",result=[],index=0;index<entries.length;index++)entries[index].key===key&&result.push(entries[index].value);return result},has:function(name){validateArgumentsLength(arguments.length,1);for(var entries=getInternalParamsState(this).entries,key=name+"",index=0;index<entries.length;)if(entries[index++].key===
841
- key)return!0;return!1},set:function(name,value){validateArgumentsLength(arguments.length,1);for(var state=getInternalParamsState(this),entries=state.entries,found=!1,key=name+"",val=value+"",index=0,entry;index<entries.length;index++)entry=entries[index],entry.key===key&&(found?entries.splice(index--,1):(found=!0,entry.value=val));found||entries.push({key:key,value:val});state.updateURL()},sort:function(){var state=getInternalParamsState(this),entries=state.entries,slice=entries.slice(),entriesIndex,
842
- sliceIndex;for(sliceIndex=entries.length=0;sliceIndex<slice.length;sliceIndex++){var entry=slice[sliceIndex];for(entriesIndex=0;entriesIndex<sliceIndex;entriesIndex++)if(entries[entriesIndex].key>entry.key){entries.splice(entriesIndex,0,entry);break}entriesIndex===sliceIndex&&entries.push(entry)}state.updateURL()},forEach:function(callback){for(var entries=getInternalParamsState(this).entries,boundFunction=bind(callback,1<arguments.length?arguments[1]:void 0,3),index=0,entry;index<entries.length;)entry=
843
- entries[index++],boundFunction(entry.value,entry.key,this)},keys:function(){return new URLSearchParamsIterator(this,"keys")},values:function(){return new URLSearchParamsIterator(this,"values")},entries:function(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0});redefine(createIteratorConstructor,__w_pdfjs_require__,createIteratorConstructor.entries);redefine(createIteratorConstructor,"toString",function(){for(var entries=getInternalParamsState(this).entries,result=[],index=0,
844
- entry;index<entries.length;)entry=entries[index++],result.push(encodeURIComponent(entry.key).replace(find,replacer)+"="+encodeURIComponent(entry.value).replace(find,replacer));return result.join("&")},{enumerable:!0});setToStringTag(URLSearchParamsConstructor,"URLSearchParams");exports({global:!0,forced:!USE_NATIVE_URL},{URLSearchParams:URLSearchParamsConstructor});USE_NATIVE_URL||"function"!=typeof $fetch||"function"!=typeof Headers||exports({global:!0,enumerable:!0,forced:!0},{fetch:function(input){var args=
845
- [input];if(1<arguments.length){var init=arguments[1];if(isObject(init)){var body=init.body;if("URLSearchParams"===classof(body)){var headers=init.headers?new Headers(init.headers):new Headers;headers.has("content-type")||headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8");init=create(init,{body:createPropertyDescriptor(0,String(body)),headers:createPropertyDescriptor(0,headers)})}}args.push(init)}return $fetch.apply(this,args)}});module.exports={URLSearchParams:URLSearchParamsConstructor,
846
- getState:getInternalParamsState}},function(module,exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23),getIteratorMethod=__w_pdfjs_require__(89);module.exports=function(it){var iteratorMethod=getIteratorMethod(it);if("function"!=typeof iteratorMethod)throw TypeError(String(it)+" is not iterable");return anObject(iteratorMethod.call(it))}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(5)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},
847
- function(__webpack_module__,__webpack_exports__,__w_pdfjs_require__){function noop(){}function typeIsObject(x){return"object"===_typeof2(x)&&null!==x||"function"===typeof x}function IsFiniteNonNegativeNumber(v){return!1===("number"!==typeof v||NumberIsNaN(v)||0>v?!1:!0)||Infinity===v?!1:!0}function Call(F,V,args){if("function"!==typeof F)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(F,V,args)}function CreateAlgorithmFromUnderlyingMethod(underlyingObject,methodName,
848
- algoArgCount,extraArgs){var method=underlyingObject[methodName];if(void 0!==method){if("function"!==typeof method)throw new TypeError(method+" is not a method");switch(algoArgCount){case 0:return function(){return PromiseCall(method,underlyingObject,extraArgs)};case 1:return function(arg){arg=[arg].concat(extraArgs);return PromiseCall(method,underlyingObject,arg)}}}return function(){return originalPromiseResolve(void 0)}}function InvokeOrNoop(O,P,args){P=O[P];if(void 0!==P)return Call(P,O,args)}function PromiseCall(F,
849
- V,args){try{return originalPromiseResolve(Call(F,V,args))}catch(value){return originalPromiseReject(value)}}function ValidateAndNormalizeHighWaterMark(highWaterMark){highWaterMark=Number(highWaterMark);if(NumberIsNaN(highWaterMark)||0>highWaterMark)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return highWaterMark}function MakeSizeAlgorithmFromSizeFunction(size){if(void 0===size)return function(){return 1};if("function"!==typeof size)throw new TypeError("size property of a queuing strategy must be a function");
850
- return function(chunk){return size(chunk)}}function newPromise(executor){return new originalPromise(executor)}function PerformPromiseThen(promise,onFulfilled,onRejected){return originalPromiseThen.call(promise,onFulfilled,onRejected)}function uponPromise(promise,onFulfilled,onRejected){PerformPromiseThen(PerformPromiseThen(promise,onFulfilled,onRejected),void 0,rethrowAssertionErrorRejection)}function uponFulfillment(promise,onFulfilled){uponPromise(promise,onFulfilled)}function uponRejection(promise,
851
- onRejected){uponPromise(promise,void 0,onRejected)}function transformPromiseWith(promise,fulfillmentHandler,rejectionHandler){return PerformPromiseThen(promise,fulfillmentHandler,rejectionHandler)}function setPromiseIsHandledToTrue(promise){PerformPromiseThen(promise,void 0,rethrowAssertionErrorRejection)}function ReadableStreamCreateReadResult(value,done,forAuthorCode){var prototype=null;!0===forAuthorCode&&(prototype=Object.prototype);forAuthorCode=Object.create(prototype);forAuthorCode.value=value;
852
- forAuthorCode.done=done;return forAuthorCode}function ReadableStreamReaderGenericInitialize(reader,stream){reader._forAuthorCode=!0;reader._ownerReadableStream=stream;stream._reader=reader;"readable"===stream._state?defaultReaderClosedPromiseInitialize(reader):"closed"===stream._state?(defaultReaderClosedPromiseInitialize(reader),defaultReaderClosedPromiseResolve(reader)):(stream=stream._storedError,defaultReaderClosedPromiseInitialize(reader),defaultReaderClosedPromiseReject(reader,stream))}function ReadableStreamReaderGenericRelease(reader){if("readable"===
853
- reader._ownerReadableStream._state)defaultReaderClosedPromiseReject(reader,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness"));else{var reason=new TypeError("Reader was released and can no longer be used to monitor the stream's closedness");defaultReaderClosedPromiseInitialize(reader);defaultReaderClosedPromiseReject(reader,reason)}reader._ownerReadableStream._reader=void 0;reader._ownerReadableStream=void 0}function readerLockException(name){return new TypeError("Cannot "+
854
- name+" a stream using a released reader")}function defaultReaderClosedPromiseInitialize(reader){reader._closedPromise=newPromise(function(resolve,reject){reader._closedPromise_resolve=resolve;reader._closedPromise_reject=reject})}function defaultReaderClosedPromiseReject(reader,reason){setPromiseIsHandledToTrue(reader._closedPromise);reader._closedPromise_reject(reason);reader._closedPromise_resolve=void 0;reader._closedPromise_reject=void 0}function defaultReaderClosedPromiseResolve(reader){reader._closedPromise_resolve(void 0);
855
- reader._closedPromise_resolve=void 0;reader._closedPromise_reject=void 0}function AcquireReadableStreamDefaultReader(stream,forAuthorCode){void 0===forAuthorCode&&(forAuthorCode=!1);stream=new ReadableStreamDefaultReader$jscomp$0(stream);stream._forAuthorCode=forAuthorCode;return stream}function ReadableStreamAddReadRequest(stream){return newPromise(function(resolve,reject){stream._reader._readRequests.push({_resolve:resolve,_reject:reject})})}function ReadableStreamFulfillReadRequest(stream,chunk,
856
- done){stream=stream._reader;stream._readRequests.shift()._resolve(ReadableStreamCreateReadResult(chunk,done,stream._forAuthorCode))}function ReadableStreamHasDefaultReader(stream){stream=stream._reader;return void 0!==stream&&IsReadableStreamDefaultReader(stream)?!0:!1}function IsReadableStreamDefaultReader(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,"_readRequests")?!0:!1}function ReadableStreamDefaultReaderRead(reader){var stream=reader._ownerReadableStream;stream._disturbed=
857
- !0;return"closed"===stream._state?originalPromiseResolve(ReadableStreamCreateReadResult(void 0,!0,reader._forAuthorCode)):"errored"===stream._state?originalPromiseReject(stream._storedError):stream._readableStreamController[PullSteps]()}function defaultReaderBrandCheckException(name){return new TypeError("ReadableStreamDefaultReader.prototype."+name+" can only be used on a ReadableStreamDefaultReader")}function IsReadableStreamAsyncIterator(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,
858
- "_asyncIteratorReader")?!0:!1}function streamAsyncIteratorBrandCheckException(name){return new TypeError("ReadableStreamAsyncIterator."+name+" can only be used on a ReadableSteamAsyncIterator")}function DequeueValue(container){var pair=container._queue.shift();container._queueTotalSize-=pair.size;0>container._queueTotalSize&&(container._queueTotalSize=0);return pair.value}function EnqueueValueWithSize(container,value,size){size=Number(size);if(!IsFiniteNonNegativeNumber(size))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");
859
- container._queue.push({value:value,size:size});container._queueTotalSize+=size}function ResetQueue(container){container._queue=new SimpleQueue;container._queueTotalSize=0}function CreateWritableStream(startAlgorithm,writeAlgorithm,closeAlgorithm,abortAlgorithm,highWaterMark,sizeAlgorithm){void 0===highWaterMark&&(highWaterMark=1);void 0===sizeAlgorithm&&(sizeAlgorithm=function(){return 1});var stream=Object.create(WritableStream$jscomp$0.prototype);InitializeWritableStream(stream);var controller=
860
- Object.create(WritableStreamDefaultController$jscomp$0.prototype);SetUpWritableStreamDefaultController(stream,controller,startAlgorithm,writeAlgorithm,closeAlgorithm,abortAlgorithm,highWaterMark,sizeAlgorithm);return stream}function InitializeWritableStream(stream){stream._state="writable";stream._storedError=void 0;stream._writer=void 0;stream._writableStreamController=void 0;stream._writeRequests=new SimpleQueue;stream._inFlightWriteRequest=void 0;stream._closeRequest=void 0;stream._inFlightCloseRequest=
861
- void 0;stream._pendingAbortRequest=void 0;stream._backpressure=!1}function IsWritableStream(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,"_writableStreamController")?!0:!1}function IsWritableStreamLocked(stream){return void 0===stream._writer?!1:!0}function WritableStreamAbort(stream,reason){var state=stream._state;if("closed"===state||"errored"===state)return originalPromiseResolve(void 0);if(void 0!==stream._pendingAbortRequest)return stream._pendingAbortRequest._promise;var wasAlreadyErroring=
862
- !1;"erroring"===state&&(wasAlreadyErroring=!0,reason=void 0);state=newPromise(function(resolve,reject){stream._pendingAbortRequest={_promise:void 0,_resolve:resolve,_reject:reject,_reason:reason,_wasAlreadyErroring:wasAlreadyErroring}});stream._pendingAbortRequest._promise=state;!1===wasAlreadyErroring&&WritableStreamStartErroring(stream,reason);return state}function WritableStreamAddWriteRequest(stream){return newPromise(function(resolve,reject){stream._writeRequests.push({_resolve:resolve,_reject:reject})})}
863
- function WritableStreamDealWithRejection(stream,error){"writable"===stream._state?WritableStreamStartErroring(stream,error):WritableStreamFinishErroring(stream)}function WritableStreamStartErroring(stream,reason){var controller=stream._writableStreamController;stream._state="erroring";stream._storedError=reason;var writer=stream._writer;void 0!==writer&&("pending"!==writer._readyPromiseState&&defaultWriterReadyPromiseInitialize(writer),defaultWriterReadyPromiseReject(writer,reason));reason=void 0===
864
- stream._inFlightWriteRequest&&void 0===stream._inFlightCloseRequest?!1:!0;!1===reason&&!0===controller._started&&WritableStreamFinishErroring(stream)}function WritableStreamFinishErroring(stream){stream._state="errored";stream._writableStreamController[ErrorSteps]();var storedError=stream._storedError;stream._writeRequests.forEach(function(writeRequest){writeRequest._reject(storedError)});stream._writeRequests=new SimpleQueue;if(void 0===stream._pendingAbortRequest)WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream);
865
- else{var abortRequest=stream._pendingAbortRequest;stream._pendingAbortRequest=void 0;if(!0===abortRequest._wasAlreadyErroring)abortRequest._reject(storedError),WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream);else{var promise=stream._writableStreamController[AbortSteps](abortRequest._reason);uponPromise(promise,function(){abortRequest._resolve();WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream)},function(reason){abortRequest._reject(reason);WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream)})}}}
866
- function WritableStreamCloseQueuedOrInFlight(stream){return void 0===stream._closeRequest&&void 0===stream._inFlightCloseRequest?!1:!0}function WritableStreamMarkCloseRequestInFlight(stream){stream._inFlightCloseRequest=stream._closeRequest;stream._closeRequest=void 0}function WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream){void 0!==stream._closeRequest&&(stream._closeRequest._reject(stream._storedError),stream._closeRequest=void 0);var writer=stream._writer;void 0!==writer&&defaultWriterClosedPromiseReject(writer,
867
- stream._storedError)}function WritableStreamUpdateBackpressure(stream,backpressure){var writer=stream._writer;void 0!==writer&&backpressure!==stream._backpressure&&(!0===backpressure?defaultWriterReadyPromiseInitialize(writer):defaultWriterReadyPromiseResolve(writer));stream._backpressure=backpressure}function IsWritableStreamDefaultWriter(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,"_ownerWritableStream")?!0:!1}function WritableStreamDefaultWriterClose(writer){var stream=writer._ownerWritableStream,
868
- state=stream._state;if("closed"===state||"errored"===state)return originalPromiseReject(new TypeError("The stream (in "+state+" state) is not in the writable state and cannot be closed"));var promise=newPromise(function(resolve,reject){stream._closeRequest={_resolve:resolve,_reject:reject}});!0===stream._backpressure&&"writable"===state&&defaultWriterReadyPromiseResolve(writer);WritableStreamDefaultControllerClose(stream._writableStreamController);return promise}function WritableStreamDefaultWriterRelease(writer){var stream=
869
- writer._ownerWritableStream,releasedError=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");"pending"!==writer._readyPromiseState&&defaultWriterReadyPromiseInitialize(writer);defaultWriterReadyPromiseReject(writer,releasedError);"pending"!==writer._closedPromiseState&&defaultWriterClosedPromiseInitialize(writer);defaultWriterClosedPromiseReject(writer,releasedError);stream._writer=void 0;writer._ownerWritableStream=void 0}function WritableStreamDefaultWriterWrite(writer,
870
- chunk){var stream=writer._ownerWritableStream,controller=stream._writableStreamController;try{var chunkSize=controller._strategySizeAlgorithm(chunk)}catch(chunkSizeE){WritableStreamDefaultControllerErrorIfNeeded(controller,chunkSizeE),chunkSize=1}if(stream!==writer._ownerWritableStream)return originalPromiseReject(defaultWriterLockException("write to"));writer=stream._state;if("errored"===writer)return originalPromiseReject(stream._storedError);if(!0===WritableStreamCloseQueuedOrInFlight(stream)||
871
- "closed"===writer)return originalPromiseReject(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===writer)return originalPromiseReject(stream._storedError);stream=WritableStreamAddWriteRequest(stream);a:{chunk={chunk:chunk};try{EnqueueValueWithSize(controller,chunk,chunkSize)}catch(enqueueE){WritableStreamDefaultControllerErrorIfNeeded(controller,enqueueE);break a}chunkSize=controller._controlledWritableStream;!1===WritableStreamCloseQueuedOrInFlight(chunkSize)&&
872
- "writable"===chunkSize._state&&WritableStreamUpdateBackpressure(chunkSize,0>=controller._strategyHWM-controller._queueTotalSize);WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller)}return stream}function SetUpWritableStreamDefaultController(stream,controller,startAlgorithm,writeAlgorithm,closeAlgorithm,abortAlgorithm,highWaterMark,sizeAlgorithm){controller._controlledWritableStream=stream;stream._writableStreamController=controller;controller._queue=void 0;controller._queueTotalSize=void 0;
873
- ResetQueue(controller);controller._started=!1;controller._strategySizeAlgorithm=sizeAlgorithm;controller._strategyHWM=highWaterMark;controller._writeAlgorithm=writeAlgorithm;controller._closeAlgorithm=closeAlgorithm;controller._abortAlgorithm=abortAlgorithm;WritableStreamUpdateBackpressure(stream,0>=controller._strategyHWM-controller._queueTotalSize);startAlgorithm=startAlgorithm();startAlgorithm=originalPromiseResolve(startAlgorithm);uponPromise(startAlgorithm,function(){controller._started=!0;WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller)},
874
- function(r){controller._started=!0;WritableStreamDealWithRejection(stream,r)})}function SetUpWritableStreamDefaultControllerFromUnderlyingSink(stream,underlyingSink,highWaterMark,sizeAlgorithm){var controller=Object.create(WritableStreamDefaultController$jscomp$0.prototype),writeAlgorithm=CreateAlgorithmFromUnderlyingMethod(underlyingSink,"write",1,[controller]),closeAlgorithm=CreateAlgorithmFromUnderlyingMethod(underlyingSink,"close",0,[]),abortAlgorithm=CreateAlgorithmFromUnderlyingMethod(underlyingSink,
875
- "abort",1,[]);SetUpWritableStreamDefaultController(stream,controller,function(){return InvokeOrNoop(underlyingSink,"start",[controller])},writeAlgorithm,closeAlgorithm,abortAlgorithm,highWaterMark,sizeAlgorithm)}function WritableStreamDefaultControllerClearAlgorithms(controller){controller._writeAlgorithm=void 0;controller._closeAlgorithm=void 0;controller._abortAlgorithm=void 0;controller._strategySizeAlgorithm=void 0}function WritableStreamDefaultControllerClose(controller){EnqueueValueWithSize(controller,
876
- "close",0);WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller)}function WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller){var stream=controller._controlledWritableStream;!1!==controller._started&&void 0===stream._inFlightWriteRequest&&("erroring"===stream._state?WritableStreamFinishErroring(stream):0!==controller._queue.length&&(stream=controller._queue.peek().value,"close"===stream?WritableStreamDefaultControllerProcessClose(controller):WritableStreamDefaultControllerProcessWrite(controller,
877
- stream.chunk)))}function WritableStreamDefaultControllerErrorIfNeeded(controller,error){if("writable"===controller._controlledWritableStream._state){var stream=controller._controlledWritableStream;WritableStreamDefaultControllerClearAlgorithms(controller);WritableStreamStartErroring(stream,error)}}function WritableStreamDefaultControllerProcessClose(controller){var stream=controller._controlledWritableStream;WritableStreamMarkCloseRequestInFlight(stream);DequeueValue(controller);var sinkClosePromise=
878
- controller._closeAlgorithm();WritableStreamDefaultControllerClearAlgorithms(controller);uponPromise(sinkClosePromise,function(){stream._inFlightCloseRequest._resolve(void 0);stream._inFlightCloseRequest=void 0;"erroring"===stream._state&&(stream._storedError=void 0,void 0!==stream._pendingAbortRequest&&(stream._pendingAbortRequest._resolve(),stream._pendingAbortRequest=void 0));stream._state="closed";var writer=stream._writer;void 0!==writer&&defaultWriterClosedPromiseResolve(writer)},function(reason){stream._inFlightCloseRequest._reject(reason);
879
- stream._inFlightCloseRequest=void 0;void 0!==stream._pendingAbortRequest&&(stream._pendingAbortRequest._reject(reason),stream._pendingAbortRequest=void 0);WritableStreamDealWithRejection(stream,reason)})}function WritableStreamDefaultControllerProcessWrite(controller,chunk){var stream=controller._controlledWritableStream;stream._inFlightWriteRequest=stream._writeRequests.shift();chunk=controller._writeAlgorithm(chunk);uponPromise(chunk,function(){stream._inFlightWriteRequest._resolve(void 0);stream._inFlightWriteRequest=
880
- void 0;var state=stream._state;DequeueValue(controller);!1===WritableStreamCloseQueuedOrInFlight(stream)&&"writable"===state&&WritableStreamUpdateBackpressure(stream,0>=controller._strategyHWM-controller._queueTotalSize);WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller)},function(reason){"writable"===stream._state&&WritableStreamDefaultControllerClearAlgorithms(controller);stream._inFlightWriteRequest._reject(reason);stream._inFlightWriteRequest=void 0;WritableStreamDealWithRejection(stream,
881
- reason)})}function streamBrandCheckException(name){return new TypeError("WritableStream.prototype."+name+" can only be used on a WritableStream")}function defaultWriterBrandCheckException(name){return new TypeError("WritableStreamDefaultWriter.prototype."+name+" can only be used on a WritableStreamDefaultWriter")}function defaultWriterLockException(name){return new TypeError("Cannot "+name+" a stream using a released writer")}function defaultWriterClosedPromiseInitialize(writer){writer._closedPromise=
882
- newPromise(function(resolve,reject){writer._closedPromise_resolve=resolve;writer._closedPromise_reject=reject;writer._closedPromiseState="pending"})}function defaultWriterClosedPromiseReject(writer,reason){setPromiseIsHandledToTrue(writer._closedPromise);writer._closedPromise_reject(reason);writer._closedPromise_resolve=void 0;writer._closedPromise_reject=void 0;writer._closedPromiseState="rejected"}function defaultWriterClosedPromiseResolve(writer){writer._closedPromise_resolve(void 0);writer._closedPromise_resolve=
883
- void 0;writer._closedPromise_reject=void 0;writer._closedPromiseState="resolved"}function defaultWriterReadyPromiseInitialize(writer){writer._readyPromise=newPromise(function(resolve,reject){writer._readyPromise_resolve=resolve;writer._readyPromise_reject=reject});writer._readyPromiseState="pending"}function defaultWriterReadyPromiseReject(writer,reason){setPromiseIsHandledToTrue(writer._readyPromise);writer._readyPromise_reject(reason);writer._readyPromise_resolve=void 0;writer._readyPromise_reject=
884
- void 0;writer._readyPromiseState="rejected"}function defaultWriterReadyPromiseResolve(writer){writer._readyPromise_resolve(void 0);writer._readyPromise_resolve=void 0;writer._readyPromise_reject=void 0;writer._readyPromiseState="fulfilled"}function isAbortSignal(value){if("object"!==_typeof2(value)||null===value)return!1;try{return"boolean"===typeof value.aborted}catch(_a$6){return!1}}function createDOMExceptionPolyfill(){var ctor=function(message,name){this.message=message||"";this.name=name||"Error";
885
- Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};ctor.prototype=Object.create(Error.prototype);Object.defineProperty(ctor.prototype,"constructor",{value:ctor,writable:!0,configurable:!0});return ctor}function ReadableStreamPipeTo(source,dest,preventClose,preventAbort,preventCancel,signal){var reader=AcquireReadableStreamDefaultReader(source),writer=new WritableStreamDefaultWriter$jscomp$0(dest),shuttingDown=!1,currentWrite=originalPromiseResolve(void 0);return newPromise(function(resolve,
886
- reject){function pipeStep(){return!0===shuttingDown?originalPromiseResolve(!0):PerformPromiseThen(writer._readyPromise,function(){return PerformPromiseThen(ReadableStreamDefaultReaderRead(reader),function(_a){if(!0===_a.done)return!0;currentWrite=PerformPromiseThen(WritableStreamDefaultWriterWrite(writer,_a.value),void 0,noop);return!1})})}function waitForWritesToFinish(){var oldCurrentWrite=currentWrite;return PerformPromiseThen(currentWrite,function(){return oldCurrentWrite!==currentWrite?waitForWritesToFinish():
887
- void 0})}function isOrBecomesErrored(stream,promise,action){"errored"===stream._state?action(stream._storedError):uponRejection(promise,action)}function shutdownWithAction(action,originalIsError,originalError){function doTheRest(){uponPromise(action(),function(){return finalize(originalIsError,originalError)},function(newError){return finalize(!0,newError)})}!0!==shuttingDown&&(shuttingDown=!0,"writable"===dest._state&&!1===WritableStreamCloseQueuedOrInFlight(dest)?uponFulfillment(waitForWritesToFinish(),
888
- doTheRest):doTheRest())}function shutdown(isError,error){!0!==shuttingDown&&(shuttingDown=!0,"writable"===dest._state&&!1===WritableStreamCloseQueuedOrInFlight(dest)?uponFulfillment(waitForWritesToFinish(),function(){return finalize(isError,error)}):finalize(isError,error))}function finalize(isError,error){WritableStreamDefaultWriterRelease(writer);ReadableStreamReaderGenericRelease(reader);void 0!==signal&&signal.removeEventListener("abort",abortAlgorithm);isError?reject(error):resolve(void 0)}if(void 0!==
889
- signal){var abortAlgorithm=function(){var error=new DOMException$1("Aborted","AbortError"),actions=[];!1===preventAbort&&actions.push(function(){return"writable"===dest._state?WritableStreamAbort(dest,error):originalPromiseResolve(void 0)});!1===preventCancel&&actions.push(function(){return"readable"===source._state?ReadableStreamCancel(source,error):originalPromiseResolve(void 0)});shutdownWithAction(function(){return Promise.all(actions.map(function(action){return action()}))},!0,error)};if(!0===
890
- signal.aborted){abortAlgorithm();return}signal.addEventListener("abort",abortAlgorithm)}isOrBecomesErrored(source,reader._closedPromise,function(storedError){!1===preventAbort?shutdownWithAction(function(){return WritableStreamAbort(dest,storedError)},!0,storedError):shutdown(!0,storedError)});isOrBecomesErrored(dest,writer._closedPromise,function(storedError){!1===preventCancel?shutdownWithAction(function(){return ReadableStreamCancel(source,storedError)},!0,storedError):shutdown(!0,storedError)});
891
- (function(stream,promise,action){"closed"===stream._state?action():uponPromise(promise,action)})(source,reader._closedPromise,function(){!1===preventClose?shutdownWithAction(function(){var JSCompiler_inline_result=writer._ownerWritableStream;var state=JSCompiler_inline_result._state;JSCompiler_inline_result=!0===WritableStreamCloseQueuedOrInFlight(JSCompiler_inline_result)||"closed"===state?originalPromiseResolve(void 0):"errored"===state?originalPromiseReject(JSCompiler_inline_result._storedError):
626
+ len,dest_offs){for(var i=0;i<len;i++)dest[dest_offs+i]=src[src_offs+i]},flattenChunks:function(chunks){return[].concat.apply([],chunks)}};exports.setTyped=function(on){on?(exports.Buf8=Uint8Array,exports.Buf16=Uint16Array,exports.Buf32=Int32Array,exports.assign(exports,fnTyped)):(exports.Buf8=Array,exports.Buf16=Array,exports.Buf32=Array,exports.assign(exports,fnUntyped))};exports.setTyped(module)},function(module,__webpack_exports__,__webpack_require__){__webpack_require__(8);__webpack_require__(39)},
627
+ function(module,__webpack_exports__,__webpack_require__){var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);var _Point__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(17),_Quad__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(52);module=function(){function Rect(x1,y1,x2,y2){void 0===x1&&(x1=0);void 0===y1&&(y1=0);void 0===x2&&(x2=0);void 0===y2&&(y2=0);x1 instanceof Rect?(this.x1=x1.x1,this.y1=x1.y1,this.x2=x1.x2,this.y2=x1.y2):
628
+ Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isArray)(x1)?(this.x1=x1[0],this.y1=x1[1],this.x2=x1[2],this.y2=x1[3]):Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isObject)(x1)?(this.x1=x1.x1,this.y1=x1.y1,this.x2=x1.x2,this.y2=x1.y2):(this.x1=x1,this.y1=y1,this.x2=x2,this.y2=y2)}Rect.intersects=function(rect1,rect2){var bottomTop=rect1.getBottom()<rect2.getTop(),topBottom=rect1.getTop()>rect2.getBottom(),leftRight=rect1.getLeft()>rect2.getRight();rect1=rect1.getRight()<rect2.getLeft();return!(leftRight||
629
+ rect1||bottomTop||topBottom)};Rect.contains=function(rect,container){var bottomTop=rect.getTop()<=container.getTop(),topBottom=rect.getBottom()>=container.getBottom(),leftRight=rect.getLeft()<=container.getLeft();rect=rect.getRight()>=container.getRight();return leftRight&&rect&&bottomTop&&topBottom};Rect.createFromDimensions=function(x,y,width,height){return new Rect(x,y,x+width,y+height)};Rect.prototype.getX=function(){return this.x1};Rect.prototype.getY=function(){return this.y1};Rect.prototype.getLeft=
630
+ function(){return this.x1};Rect.prototype.getRight=function(){return this.x2};Rect.prototype.getTop=function(){return this.y1};Rect.prototype.getBottom=function(){return this.y2};Rect.prototype.getWidth=function(){return this.x2-this.x1};Rect.prototype.getHeight=function(){return this.y2-this.y1};Rect.prototype.getCenter=function(){var halfWidth=this.getWidth()/2,halfHeight=this.getHeight()/2,center=this.getTopLeft();center.translate(halfWidth,halfHeight);return center};Rect.prototype.getTopLeft=
631
+ function(){return new _Point__WEBPACK_IMPORTED_MODULE_1__.a(this.x1,this.y1)};Rect.prototype.getTopRight=function(){return new _Point__WEBPACK_IMPORTED_MODULE_1__.a(this.x2,this.y1)};Rect.prototype.getBottomLeft=function(){return new _Point__WEBPACK_IMPORTED_MODULE_1__.a(this.x1,this.y2)};Rect.prototype.getBottomRight=function(){return new _Point__WEBPACK_IMPORTED_MODULE_1__.a(this.x2,this.y2)};Rect.prototype.translate=function(x,y){this.x1+=x;this.y1+=y;this.x2+=x;this.y2+=y};Rect.prototype.fitTo=
632
+ function(boundaryRect){var tx=0,ty=0;if(this.getWidth()<=boundaryRect.getWidth()){var dx2=boundaryRect.x2-this.x2;0>dx2&&(tx=dx2);dx2=boundaryRect.x1-this.x1;0<dx2&&(tx=dx2)}this.getHeight()<=boundaryRect.getHeight()&&(dx2=boundaryRect.y2-this.y2,0>dx2&&(ty=dx2),boundaryRect=boundaryRect.y1-this.y1,0<boundaryRect&&(ty=boundaryRect));this.translate(tx,ty)};Rect.prototype.normalize=function(){if(0>this.getWidth()){var temp=this.x1;this.x1=this.x2;this.x2=temp}0>this.getHeight()&&(temp=this.y1,this.y1=
633
+ this.y2,this.y2=temp)};Rect.prototype.fitToBoundary=function(boundaryWidth,boundaryHeight){this.x2=Math.min(this.x2,boundaryWidth-1);this.y2=Math.min(this.y2,boundaryHeight-1)};Rect.prototype.exportNormalize=function(){if(this.x1>this.x2){var temp=this.x1;this.x1=this.x2;this.x2=temp}this.y2>this.y1&&(temp=this.y1,this.y1=this.y2,this.y2=temp)};Rect.prototype.isEqual=function(otherRect){return this.x1===otherRect.x1&&this.y1===otherRect.y1&&this.x2===otherRect.x2&&this.y2===otherRect.y2};Rect.prototype.equalTo=
634
+ function(otherRect){return this.isEqual(otherRect)};Rect.prototype.isZeroRect=function(){return 0===this.x1&&0===this.y1&&0===this.x2&&0===this.y2};Rect.prototype.isExceeding=function(otherRect){return this.x1<otherRect.x1||this.x2>otherRect.x2||this.y1<otherRect.y1||this.y2>otherRect.y2};Rect.prototype.intersects=function(otherRect){return Rect.intersects(this,otherRect)};Rect.prototype.contains=function(otherRect){return Rect.contains(this,otherRect)};Rect.prototype.transform=function(transform){var topLeft=
635
+ this.getTopLeft(),bottomRight=this.getBottomRight();topLeft.transform(transform);bottomRight.transform(transform);this.x1=Math.min(topLeft.getX(),bottomRight.getX());this.y1=Math.min(topLeft.getY(),bottomRight.getY());this.x2=Math.max(topLeft.getX(),bottomRight.getX());this.y2=Math.max(topLeft.getY(),bottomRight.getY())};Rect.prototype.toQuad=function(){var bottomLeft=this.getBottomLeft(),bottomRight=this.getBottomRight(),topRight=this.getTopRight(),topLeft=this.getTopLeft();return new _Quad__WEBPACK_IMPORTED_MODULE_2__.a(bottomLeft.X,
636
+ bottomLeft.Y,bottomRight.X,bottomRight.Y,topRight.X,topRight.Y,topLeft.X,topLeft.Y)};return Rect}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var _Rect__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(51);module=function(){function Quad(x1,y1,x2,y2,x3,y3,x4,y4){this.x1=x1;this.y1=y1;this.x2=x2;this.y2=y2;this.x3=x3;this.y3=y3;this.x4=x4;this.y4=y4}Quad.prototype.normalize=function(){};Quad.prototype.getArrayQuad=function(){var tmp=[];tmp.push(this.x1);
637
+ tmp.push(this.y1);tmp.push(this.x2);tmp.push(this.y2);tmp.push(this.x3);tmp.push(this.y3);tmp.push(this.x4);tmp.push(this.y4);return tmp};Quad.prototype.toRect=function(){return new _Rect__WEBPACK_IMPORTED_MODULE_0__.a(this.x4,this.y4,this.x2,this.y2)};return Quad}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){function HighlightDocInfo(){this._page_num=0;this._quad=this._str=null}HighlightDocInfo.prototype._initDefault=function(){this._page_num=
638
+ 0;this._str="";this._quad=Array(8)};HighlightDocInfo.prototype._initMembers=function(pn,s,q){this._page_num=pn;this._str=s;this._quad=Array(8);for(pn=0;8>pn;++pn)this._quad[pn]=q[pn]};HighlightDocInfo.prototype._initHDI=function(hdi){this._page_num=hdi._page_num;this._str=hdi._str;this._quad=Array(8);for(var i=0;8>i;++i)this._quad[i]=hdi._quad[i]};return HighlightDocInfo}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){return function(_s,
639
+ _e){this._s=_s;this._e=_e;this._s=_s||0;this._e=_e||0}}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){function Letter(ch,quad){this._m_ch=ch;this._m_quad=Array(8);this._m_quad[0]=quad[0];this._m_quad[1]=quad[1];this._m_quad[2]=quad[2];this._m_quad[3]=quad[3];this._m_quad[4]=quad[4];this._m_quad[5]=quad[5];this._m_quad[6]=quad[6];this._m_quad[7]=quad[7]}Letter.prototype.getQuad=function(){for(var quad=Array(8),i=0;8>i;i++)quad[i]=this._m_quad[i];
640
+ return quad};Letter.prototype.getChar=function(){return this._m_ch};return Letter}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){return function(val){void 0===val&&(val=0);this.W=this.width=val}}();__webpack_exports__.a=module},function(module$jscomp$2,exports$jscomp$1,__webpack_require__){(function(Buffer,global$jscomp$0,process$jscomp$0,module$jscomp$1){function _typeof2(obj$jscomp$0){"@babel/helpers - typeof";return _typeof2="function"==
641
+ typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof2(obj$jscomp$0)}var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(root,factory){"object"===_typeof2(exports$jscomp$1)&&"object"===_typeof2(module$jscomp$1)?module$jscomp$1.exports=factory():!(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_FACTORY__=
642
+ factory,__WEBPACK_AMD_DEFINE_RESULT__="function"===typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports$jscomp$1,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module$jscomp$1.exports=__WEBPACK_AMD_DEFINE_RESULT__))})(this,function(){return function(modules){function __w_pdfjs_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,
643
+ l:!1,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__w_pdfjs_require__);module.l=!0;return module.exports}var installedModules={};__w_pdfjs_require__.m=modules;__w_pdfjs_require__.c=installedModules;__w_pdfjs_require__.d=function(exports,name,getter){__w_pdfjs_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})};__w_pdfjs_require__.r=function(exports){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,
644
+ {value:"Module"});Object.defineProperty(exports,"__esModule",{value:!0})};__w_pdfjs_require__.t=function(value,mode){mode&1&&(value=__w_pdfjs_require__(value));if(mode&8||mode&4&&"object"===_typeof2(value)&&value&&value.__esModule)return value;var ns=Object.create(null);__w_pdfjs_require__.r(ns);Object.defineProperty(ns,"default",{enumerable:!0,value:value});if(mode&2&&"string"!=typeof value)for(var key$jscomp$0 in value)__w_pdfjs_require__.d(ns,key$jscomp$0,function(key){return value[key]}.bind(null,
645
+ key$jscomp$0));return ns};__w_pdfjs_require__.n=function(module){var getter=module&&module.__esModule?function(){return module["default"]}:function(){return module};__w_pdfjs_require__.d(getter,"a",getter);return getter};__w_pdfjs_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__w_pdfjs_require__.p="";return __w_pdfjs_require__(__w_pdfjs_require__.s=0)}([function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(1);var pdfjsDisplayAPI=
646
+ __w_pdfjs_require__(184),pdfjsDisplayTextLayer=__w_pdfjs_require__(199),pdfjsDisplayAnnotationLayer=__w_pdfjs_require__(200),pdfjsDisplayDisplayUtils=__w_pdfjs_require__(188),pdfjsDisplaySVG=__w_pdfjs_require__(201),pdfjsDisplayWorkerOptions=__w_pdfjs_require__(193),pdfjsDisplayAPICompatibility=__w_pdfjs_require__(190);if(__w_pdfjs_require__(48).isNodeJS){var PDFNodeStream=__w_pdfjs_require__(202).PDFNodeStream;pdfjsDisplayAPI.setPDFNetworkStreamFactory(function(params){return new PDFNodeStream(params)})}else{var PDFNetworkStream=
647
+ __w_pdfjs_require__(205).PDFNetworkStream;if(pdfjsDisplayDisplayUtils.isFetchSupported())var PDFFetchStream=__w_pdfjs_require__(206).PDFFetchStream;pdfjsDisplayAPI.setPDFNetworkStreamFactory(function(params){return PDFFetchStream&&pdfjsDisplayDisplayUtils.isValidFetchUrl(params.url)?new PDFFetchStream(params):new PDFNetworkStream(params)})}exports.build=pdfjsDisplayAPI.build;exports.version=pdfjsDisplayAPI.version;exports.getDocument=pdfjsDisplayAPI.getDocument;exports.LoopbackPort=pdfjsDisplayAPI.LoopbackPort;
648
+ exports.PDFDataRangeTransport=pdfjsDisplayAPI.PDFDataRangeTransport;exports.PDFWorker=pdfjsDisplayAPI.PDFWorker;exports.renderTextLayer=pdfjsDisplayTextLayer.renderTextLayer;exports.AnnotationLayer=pdfjsDisplayAnnotationLayer.AnnotationLayer;exports.createPromiseCapability=module.createPromiseCapability;exports.PasswordResponses=module.PasswordResponses;exports.InvalidPDFException=module.InvalidPDFException;exports.MissingPDFException=module.MissingPDFException;exports.SVGGraphics=pdfjsDisplaySVG.SVGGraphics;
649
+ exports.NativeImageDecoding=module.NativeImageDecoding;exports.CMapCompressionType=module.CMapCompressionType;exports.PermissionFlag=module.PermissionFlag;exports.UnexpectedResponseException=module.UnexpectedResponseException;exports.OPS=module.OPS;exports.VerbosityLevel=module.VerbosityLevel;exports.UNSUPPORTED_FEATURES=module.UNSUPPORTED_FEATURES;exports.createValidAbsoluteUrl=module.createValidAbsoluteUrl;exports.createObjectURL=module.createObjectURL;exports.removeNullCharacters=module.removeNullCharacters;
650
+ exports.shadow=module.shadow;exports.Util=module.Util;exports.RenderingCancelledException=pdfjsDisplayDisplayUtils.RenderingCancelledException;exports.getFilenameFromUrl=pdfjsDisplayDisplayUtils.getFilenameFromUrl;exports.LinkTarget=pdfjsDisplayDisplayUtils.LinkTarget;exports.addLinkAttributes=pdfjsDisplayDisplayUtils.addLinkAttributes;exports.loadScript=pdfjsDisplayDisplayUtils.loadScript;exports.PDFDateString=pdfjsDisplayDisplayUtils.PDFDateString;exports.GlobalWorkerOptions=pdfjsDisplayWorkerOptions.GlobalWorkerOptions;
651
+ exports.apiCompatibilityParams=pdfjsDisplayAPICompatibility.apiCompatibilityParams},function(module,exports,__w_pdfjs_require__){function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,
652
+ protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");
653
+ }function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"===typeof call))return call;if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o$jscomp$0){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)};return _getPrototypeOf(o$jscomp$0)}function _inherits(subClass,superClass){if("function"!==typeof superClass&&
654
+ null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}});superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o$jscomp$0,p$jscomp$0){_setPrototypeOf=Object.setPrototypeOf||function(o,p){o.__proto__=p;return o};return _setPrototypeOf(o$jscomp$0,p$jscomp$0)}function warn(msg){verbosity>=VerbosityLevel.WARNINGS&&console.log("Warning: ".concat(msg))}
655
+ function unreachable(msg){throw Error(msg);}function assert(cond,msg){cond||unreachable(msg)}function stringToBytes(str){assert("string"===typeof str,"Invalid argument for stringToBytes");for(var length=str.length,bytes=new Uint8Array(length),i=0;i<length;++i)bytes[i]=str.charCodeAt(i)&255;return bytes}function arrayByteLength(arr){if(void 0!==arr.length)return arr.length;assert(void 0!==arr.byteLength);return arr.byteLength}Object.defineProperty(exports,"__esModule",{value:!0});exports.arrayByteLength=
656
+ arrayByteLength;exports.arraysToBytes=function(arr){var length=arr.length;if(1===length&&arr[0]instanceof Uint8Array)return arr[0];for(var resultLength=0,i=0;i<length;i++)resultLength+=arrayByteLength(arr[i]);i=0;resultLength=new Uint8Array(resultLength);for(var _i=0;_i<length;_i++){var item=arr[_i];item instanceof Uint8Array||(item="string"===typeof item?stringToBytes(item):new Uint8Array(item));var itemLength=item.byteLength;resultLength.set(item,i);i+=itemLength}return resultLength};exports.assert=
657
+ assert;exports.bytesToString=function(bytes){assert(null!==bytes&&"object"===_typeof(bytes)&&void 0!==bytes.length,"Invalid argument for bytesToString");var length=bytes.length;if(8192>length)return String.fromCharCode.apply(null,bytes);for(var strBuf=[],i=0;i<length;i+=8192){var chunk=bytes.subarray(i,Math.min(i+8192,length));strBuf.push(String.fromCharCode.apply(null,chunk))}return strBuf.join("")};exports.createPromiseCapability=function(){var capability=Object.create(null),isSettled=!1;Object.defineProperty(capability,
658
+ "settled",{get:function(){return isSettled}});capability.promise=new Promise(function(resolve,reject){capability.resolve=function(data){isSettled=!0;resolve(data)};capability.reject=function(reason){isSettled=!0;reject(reason)}});return capability};exports.getVerbosityLevel=function(){return verbosity};exports.info=function(msg){verbosity>=VerbosityLevel.INFOS&&console.log("Info: ".concat(msg))};exports.isArrayBuffer=function(v){return"object"===_typeof(v)&&null!==v&&void 0!==v.byteLength};exports.isArrayEqual=
659
+ function(arr1,arr2){return arr1.length!==arr2.length?!1:arr1.every(function(element,index){return element===arr2[index]})};exports.isBool=function(v){return"boolean"===typeof v};exports.isEmptyObj=function(obj){for(var key in obj)return!1;return!0};exports.isNum=function(v){return"number"===typeof v};exports.isString=function(v){return"string"===typeof v};exports.isSpace=function(ch){return 32===ch||9===ch||13===ch||10===ch};exports.isSameOrigin=function(baseUrl,otherUrl){try{var base=new URL(baseUrl);
660
+ if(!base.origin||"null"===base.origin)return!1}catch(e){return!1}baseUrl=new URL(otherUrl,base);return base.origin===baseUrl.origin};exports.createValidAbsoluteUrl=function(url,baseUrl){if(!url)return null;try{var absoluteUrl=baseUrl?new URL(url,baseUrl):new URL(url);a:if(absoluteUrl)switch(absoluteUrl.protocol){case "http:":case "https:":case "ftp:":case "mailto:":case "tel:":var JSCompiler_inline_result=!0;break a;default:JSCompiler_inline_result=!1}else JSCompiler_inline_result=!1;if(JSCompiler_inline_result)return absoluteUrl}catch(ex){}return null};
661
+ exports.isLittleEndian=function(){var buffer8=new Uint8Array(4);buffer8[0]=1;return 1===(new Uint32Array(buffer8.buffer,0,1))[0]};exports.isEvalSupported=function(){try{return new Function(""),!0}catch(e){return!1}};exports.log2=function(x){return 0>=x?0:Math.ceil(Math.log2(x))};exports.readInt8=function(data,start){return data[start]<<24>>24};exports.readUint16=function(data,offset){return data[offset]<<8|data[offset+1]};exports.readUint32=function(data,offset){return(data[offset]<<24|data[offset+
662
+ 1]<<16|data[offset+2]<<8|data[offset+3])>>>0};exports.removeNullCharacters=function(str){return"string"!==typeof str?(warn("The argument for removeNullCharacters must be a string."),str):str.replace(NullCharactersRegExp,"")};exports.setVerbosityLevel=function(level){Number.isInteger(level)&&(verbosity=level)};exports.shadow=function(obj,prop,value){Object.defineProperty(obj,prop,{value:value,enumerable:!0,configurable:!0,writable:!1});return value};exports.string32=function(value){return String.fromCharCode(value>>
663
+ 24&255,value>>16&255,value>>8&255,value&255)};exports.stringToBytes=stringToBytes;exports.stringToPDFString=function(str){var length=str.length,strBuf=[];if("\u00fe"===str[0]&&"\u00ff"===str[1])for(var i=2;i<length;i+=2)strBuf.push(String.fromCharCode(str.charCodeAt(i)<<8|str.charCodeAt(i+1)));else if("\u00ff"===str[0]&&"\u00fe"===str[1])for(i=2;i<length;i+=2)strBuf.push(String.fromCharCode(str.charCodeAt(i+1)<<8|str.charCodeAt(i)));else for(i=0;i<length;++i){var code=PDFStringTranslateTable[str.charCodeAt(i)];
664
+ strBuf.push(code?String.fromCharCode(code):str.charAt(i))}return strBuf.join("")};exports.stringToUTF8String=function(str){return decodeURIComponent(escape(str))};exports.utf8StringToString=function(str){return unescape(encodeURIComponent(str))};exports.warn=warn;exports.unreachable=unreachable;exports.createObjectURL=exports.FormatError=exports.Util=exports.UnknownErrorException=exports.UnexpectedResponseException=exports.TextRenderingMode=exports.StreamType=exports.PermissionFlag=exports.PasswordResponses=
665
+ exports.PasswordException=exports.NativeImageDecoding=exports.MissingPDFException=exports.InvalidPDFException=exports.AbortException=exports.CMapCompressionType=exports.ImageKind=exports.FontType=exports.AnnotationType=exports.AnnotationStateModelType=exports.AnnotationReviewState=exports.AnnotationReplyType=exports.AnnotationMarkedState=exports.AnnotationFlag=exports.AnnotationFieldFlag=exports.AnnotationBorderStyleType=exports.UNSUPPORTED_FEATURES=exports.VerbosityLevel=exports.OPS=exports.IDENTITY_MATRIX=
666
+ exports.FONT_IDENTITY_MATRIX=exports.BaseException=void 0;__w_pdfjs_require__(2);exports.IDENTITY_MATRIX=[1,0,0,1,0,0];exports.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];exports.NativeImageDecoding={NONE:"none",DECODE:"decode",DISPLAY:"display"};exports.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};exports.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,
667
+ 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.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};exports.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.AnnotationStateModelType={MARKED:"Marked",
668
+ REVIEW:"Review"};exports.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"};exports.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};exports.AnnotationReplyType={GROUP:"Group",REPLY:"R"};exports.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};exports.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,
669
+ 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};exports.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};exports.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};exports.FontType={UNKNOWN:"UNKNOWN",
670
+ TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var VerbosityLevel={ERRORS:0,WARNINGS:1,INFOS:5};exports.VerbosityLevel=VerbosityLevel;exports.CMapCompressionType={NONE:0,BINARY:1,STREAM:2};exports.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,
671
+ 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,
672
+ 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,
673
+ 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.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",
674
+ font:"font"};exports.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var verbosity=VerbosityLevel.WARNINGS;module=function(){function BaseException(message){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=message;this.name=this.constructor.name}BaseException.prototype=Error();return BaseException.constructor=BaseException}();exports.BaseException=module;__w_pdfjs_require__=function(_BaseException){function PasswordException(msg,code){_classCallCheck(this,
675
+ PasswordException);msg=_possibleConstructorReturn(this,_getPrototypeOf(PasswordException).call(this,msg));msg.code=code;return msg}_inherits(PasswordException,_BaseException);return PasswordException}(module);exports.PasswordException=__w_pdfjs_require__;__w_pdfjs_require__=function(_BaseException2){function UnknownErrorException(msg,details){_classCallCheck(this,UnknownErrorException);msg=_possibleConstructorReturn(this,_getPrototypeOf(UnknownErrorException).call(this,msg));msg.details=details;return msg}
676
+ _inherits(UnknownErrorException,_BaseException2);return UnknownErrorException}(module);exports.UnknownErrorException=__w_pdfjs_require__;__w_pdfjs_require__=function(_BaseException3){function InvalidPDFException(){_classCallCheck(this,InvalidPDFException);return _possibleConstructorReturn(this,_getPrototypeOf(InvalidPDFException).apply(this,arguments))}_inherits(InvalidPDFException,_BaseException3);return InvalidPDFException}(module);exports.InvalidPDFException=__w_pdfjs_require__;__w_pdfjs_require__=
677
+ function(_BaseException4){function MissingPDFException(){_classCallCheck(this,MissingPDFException);return _possibleConstructorReturn(this,_getPrototypeOf(MissingPDFException).apply(this,arguments))}_inherits(MissingPDFException,_BaseException4);return MissingPDFException}(module);exports.MissingPDFException=__w_pdfjs_require__;__w_pdfjs_require__=function(_BaseException5){function UnexpectedResponseException(msg,status){_classCallCheck(this,UnexpectedResponseException);msg=_possibleConstructorReturn(this,
678
+ _getPrototypeOf(UnexpectedResponseException).call(this,msg));msg.status=status;return msg}_inherits(UnexpectedResponseException,_BaseException5);return UnexpectedResponseException}(module);exports.UnexpectedResponseException=__w_pdfjs_require__;__w_pdfjs_require__=function(_BaseException6){function FormatError(){_classCallCheck(this,FormatError);return _possibleConstructorReturn(this,_getPrototypeOf(FormatError).apply(this,arguments))}_inherits(FormatError,_BaseException6);return FormatError}(module);
679
+ exports.FormatError=__w_pdfjs_require__;module=function(_BaseException7){function AbortException(){_classCallCheck(this,AbortException);return _possibleConstructorReturn(this,_getPrototypeOf(AbortException).apply(this,arguments))}_inherits(AbortException,_BaseException7);return AbortException}(module);exports.AbortException=module;var NullCharactersRegExp=/\x00/g,rgbBuf=["rgb(",0,",",0,",",0,")"];module=function(){function Util(){_classCallCheck(this,Util)}_createClass(Util,null,[{key:"makeCssRgb",
680
+ value:function(r,g,b){rgbBuf[1]=r;rgbBuf[3]=g;rgbBuf[5]=b;return rgbBuf.join("")}},{key:"transform",value:function(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(p,m){return[p[0]*m[0]+p[1]*m[2]+m[4],p[0]*m[1]+p[1]*m[3]+m[5]]}},{key:"applyInverseTransform",value:function(p,m){var d=m[0]*m[3]-m[1]*m[2];return[(p[0]*m[3]-p[1]*m[2]+m[2]*m[5]-
681
+ m[4]*m[3])/d,(-p[0]*m[1]+p[1]*m[0]+m[4]*m[1]-m[5]*m[0])/d]}},{key:"getAxialAlignedBoundingBox",value:function(r,m){var p1=Util.applyTransform(r,m),p2=Util.applyTransform(r.slice(2,4),m),p3=Util.applyTransform([r[0],r[3]],m);r=Util.applyTransform([r[2],r[1]],m);return[Math.min(p1[0],p2[0],p3[0],r[0]),Math.min(p1[1],p2[1],p3[1],r[1]),Math.max(p1[0],p2[0],p3[0],r[0]),Math.max(p1[1],p2[1],p3[1],r[1])]}},{key:"inverseTransform",value:function(m){var d=m[0]*m[3]-m[1]*m[2];return[m[3]/d,-m[1]/d,-m[2]/d,
682
+ 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(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(m){var transpose=[m[0],m[2],m[1],m[3]],a=m[0]*transpose[0]+m[1]*transpose[2],d=m[2]*transpose[1]+m[3]*transpose[3],first=(a+d)/2;m=Math.sqrt((a+d)*(a+d)-4*(a*d-(m[2]*transpose[0]+m[3]*transpose[2])*(m[0]*transpose[1]+m[1]*transpose[3])))/2;return[Math.sqrt(first+
683
+ m||1),Math.sqrt(first-m||1)]}},{key:"normalizeRect",value:function(rect){var r=rect.slice(0);rect[0]>rect[2]&&(r[0]=rect[2],r[2]=rect[0]);rect[1]>rect[3]&&(r[1]=rect[3],r[3]=rect[1]);return r}},{key:"intersect",value:function(rect1,rect2){function compare(a,b){return a-b}var orderedX=[rect1[0],rect1[2],rect2[0],rect2[2]].sort(compare),orderedY=[rect1[1],rect1[3],rect2[1],rect2[3]].sort(compare),result=[];rect1=Util.normalizeRect(rect1);rect2=Util.normalizeRect(rect2);if(orderedX[0]===rect1[0]&&orderedX[1]===
684
+ rect2[0]||orderedX[0]===rect2[0]&&orderedX[1]===rect1[0])result[0]=orderedX[1],result[2]=orderedX[2];else return null;if(orderedY[0]===rect1[1]&&orderedY[1]===rect2[1]||orderedY[0]===rect2[1]&&orderedY[1]===rect1[1])result[1]=orderedY[1],result[3]=orderedY[2];else return null;return result}}]);return Util}();exports.Util=module;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,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,
685
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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];module=function(){return function(data,contentType){if(!(2<arguments.length&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var blob=new Blob([data],{type:contentType});return URL.createObjectURL(blob)}blob=
686
+ "data:".concat(contentType,";base64,");for(var i=0,ii=data.length;i<ii;i+=3){var b1=data[i]&255,b2=data[i+1]&255,b3=data[i+2]&255;blob+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[b1>>2]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[(b1&3)<<4|b2>>4]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[i+1<ii?(b2&15)<<2|b3>>6:64]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[i+2<ii?b3&63:64]}return blob}}();exports.createObjectURL=
687
+ module},function(module,exports,__w_pdfjs_require__){function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}if("undefined"===typeof globalThis||!globalThis._pdfjsCompatibilityChecked){if("undefined"===typeof globalThis||globalThis.Math!==Math)globalThis=__w_pdfjs_require__(3);
688
+ globalThis._pdfjsCompatibilityChecked=!0;var isNodeJS=__w_pdfjs_require__(48).isNodeJS,hasDOM="object"===("undefined"===typeof window?"undefined":_typeof(window))&&"object"===("undefined"===typeof document?"undefined":_typeof(document)),isIE=/Trident/.test("undefined"!==typeof navigator&&navigator.userAgent||"");(function(){!globalThis.btoa&&isNodeJS&&(globalThis.btoa=function(chars){return Buffer.from(chars,"binary").toString("base64")})})();(function(){!globalThis.atob&&isNodeJS&&(globalThis.atob=
689
+ function(input){return Buffer.from(input,"base64").toString("binary")})})();(function(){hasDOM&&"undefined"===typeof Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)})})();(function(){if(hasDOM&&!isNodeJS){var div=document.createElement("div");div.classList.add("testOne","testTwo");if(!0!==div.classList.contains("testOne")||!0!==div.classList.contains("testTwo")){var OriginalDOMTokenListAdd=DOMTokenList.prototype.add,OriginalDOMTokenListRemove=
690
+ DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var _len=arguments.length,tokens=Array(_len),_key=0;_key<_len;_key++)tokens[_key]=arguments[_key];for(_len=0;_len<tokens.length;_len++)OriginalDOMTokenListAdd.call(this,tokens[_len])};DOMTokenList.prototype.remove=function(){for(var _len2=arguments.length,tokens=Array(_len2),_key2=0;_key2<_len2;_key2++)tokens[_key2]=arguments[_key2];for(_len2=0;_len2<tokens.length;_len2++)OriginalDOMTokenListRemove.call(this,tokens[_len2])}}}})();
691
+ (function(){hasDOM&&!isNodeJS&&!1!==document.createElement("div").classList.toggle("test",0)&&(DOMTokenList.prototype.toggle=function(token){var force=1<arguments.length?!!arguments[1]:!this.contains(token);return this[force?"add":"remove"](token),force})})();(function(){if(hasDOM&&isIE){var OriginalPushState=window.history.pushState,OriginalReplaceState=window.history.replaceState;window.history.pushState=function(state,title,url){OriginalPushState.apply(this,void 0===url?[state,title]:[state,title,
692
+ url])};window.history.replaceState=function(state,title,url){OriginalReplaceState.apply(this,void 0===url?[state,title]:[state,title,url])}}})();String.prototype.startsWith||__w_pdfjs_require__(49);String.prototype.endsWith||__w_pdfjs_require__(60);String.prototype.includes||__w_pdfjs_require__(62);Array.prototype.includes||__w_pdfjs_require__(64);Array.from||__w_pdfjs_require__(71);Object.assign||__w_pdfjs_require__(93);Math.log2||(Math.log2=__w_pdfjs_require__(96));Number.isNaN||(Number.isNaN=__w_pdfjs_require__(98));
693
+ Number.isInteger||(Number.isInteger=__w_pdfjs_require__(100));globalThis.Promise&&globalThis.Promise.prototype&&globalThis.Promise.prototype["finally"]||(globalThis.Promise=__w_pdfjs_require__(103));globalThis.URL=__w_pdfjs_require__(127);(function(){var isReadableStreamSupported=!1;if("undefined"!==typeof ReadableStream)try{new ReadableStream({start:function(controller){controller.close()}}),isReadableStreamSupported=!0}catch(e){}isReadableStreamSupported||(globalThis.ReadableStream=__w_pdfjs_require__(134).ReadableStream)})();
694
+ globalThis.WeakMap||(globalThis.WeakMap=__w_pdfjs_require__(135));globalThis.WeakSet||(globalThis.WeakSet=__w_pdfjs_require__(145));String.prototype.codePointAt||__w_pdfjs_require__(147);String.fromCodePoint||(String.fromCodePoint=__w_pdfjs_require__(149));globalThis.Symbol||__w_pdfjs_require__(151);String.prototype.padStart||__w_pdfjs_require__(174);String.prototype.padEnd||__w_pdfjs_require__(179);Object.values||(Object.values=__w_pdfjs_require__(181))}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(4);
695
+ module.exports=__w_pdfjs_require__(6)},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);__w_pdfjs_require__=__w_pdfjs_require__(6);module({global:!0},{globalThis:__w_pdfjs_require__})},function(module,exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6),getOwnPropertyDescriptor=__w_pdfjs_require__(7).f,createNonEnumerableProperty=__w_pdfjs_require__(21),redefine=__w_pdfjs_require__(24),setGlobal=__w_pdfjs_require__(25),copyConstructorProperties=__w_pdfjs_require__(35),
696
+ isForced=__w_pdfjs_require__(47);module.exports=function(options,source){var TARGET=options.target,GLOBAL=options.global,STATIC=options.stat,FORCED,target,key;if(target=GLOBAL?global:STATIC?global[TARGET]||setGlobal(TARGET,{}):(global[TARGET]||{}).prototype)for(key in source){var sourceProperty=source[key];var targetProperty=options.noTargetGet?(FORCED=getOwnPropertyDescriptor(target,key))&&FORCED.value:target[key];FORCED=isForced(GLOBAL?key:TARGET+(STATIC?".":"#")+key,options.forced);if(!FORCED&&
697
+ void 0!==targetProperty){if(_typeof2(sourceProperty)===_typeof2(targetProperty))continue;copyConstructorProperties(sourceProperty,targetProperty)}(options.sham||targetProperty&&targetProperty.sham)&&createNonEnumerableProperty(sourceProperty,"sham",!0);redefine(target,key,sourceProperty,options)}}},function(module,exports){exports=function(it){return it&&it.Math==Math&&it};module.exports=exports("object"==("undefined"===typeof globalThis?"undefined":_typeof2(globalThis))&&globalThis)||exports("object"==
698
+ ("undefined"===typeof window?"undefined":_typeof2(window))&&window)||exports("object"==("undefined"===typeof self?"undefined":_typeof2(self))&&self)||exports("object"==("undefined"===typeof global$jscomp$0?"undefined":_typeof2(global$jscomp$0))&&global$jscomp$0)||Function("return this")()},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(8);var propertyIsEnumerableModule=__w_pdfjs_require__(10),createPropertyDescriptor=__w_pdfjs_require__(11),toIndexedObject=__w_pdfjs_require__(12),
699
+ toPrimitive=__w_pdfjs_require__(16),has=__w_pdfjs_require__(18),IE8_DOM_DEFINE=__w_pdfjs_require__(19),nativeGetOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;exports.f=module?nativeGetOwnPropertyDescriptor:function(O,P){O=toIndexedObject(O);P=toPrimitive(P,!0);if(IE8_DOM_DEFINE)try{return nativeGetOwnPropertyDescriptor(O,P)}catch(error){}if(has(O,P))return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O,P),O[P])}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(9);
700
+ module.exports=!exports(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(error){return!0}}},function(module,exports,__w_pdfjs_require__){module={}.propertyIsEnumerable;var getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;__w_pdfjs_require__=getOwnPropertyDescriptor&&!module.call({1:2},1);exports.f=__w_pdfjs_require__?function(V){V=getOwnPropertyDescriptor(this,V);return!!V&&V.enumerable}:
701
+ module},function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value}}},function(module,exports,__w_pdfjs_require__){var IndexedObject=__w_pdfjs_require__(13),requireObjectCoercible=__w_pdfjs_require__(15);module.exports=function(it){return IndexedObject(requireObjectCoercible(it))}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(9);var classof=__w_pdfjs_require__(14),split="".split;
702
+ module.exports=exports(function(){return!Object("z").propertyIsEnumerable(0)})?function(it){return"String"==classof(it)?split.call(it,""):Object(it)}:Object},function(module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},function(module,exports){module.exports=function(it){if(void 0==it)throw TypeError("Can't call method on "+it);return it}},function(module,exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(17);module.exports=function(input,
703
+ PREFERRED_STRING){if(!isObject(input))return input;var fn,val;if(PREFERRED_STRING&&"function"==typeof(fn=input.toString)&&!isObject(val=fn.call(input))||"function"==typeof(fn=input.valueOf)&&!isObject(val=fn.call(input))||!PREFERRED_STRING&&"function"==typeof(fn=input.toString)&&!isObject(val=fn.call(input)))return val;throw TypeError("Can't convert object to primitive value");}},function(module,exports){module.exports=function(it){return"object"===_typeof2(it)?null!==it:"function"===typeof it}},
704
+ function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(8);var fails=__w_pdfjs_require__(9),createElement=__w_pdfjs_require__(20);module.exports=!exports&&!fails(function(){return 7!=Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a})},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);__w_pdfjs_require__=
705
+ __w_pdfjs_require__(17);var document=exports.document,EXISTS=__w_pdfjs_require__(document)&&__w_pdfjs_require__(document.createElement);module.exports=function(it){return EXISTS?document.createElement(it):{}}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(8);var definePropertyModule=__w_pdfjs_require__(22),createPropertyDescriptor=__w_pdfjs_require__(11);module.exports=exports?function(object,key,value){return definePropertyModule.f(object,key,createPropertyDescriptor(1,
706
+ value))}:function(object,key,value){object[key]=value;return object}},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(8);var IE8_DOM_DEFINE=__w_pdfjs_require__(19),anObject=__w_pdfjs_require__(23),toPrimitive=__w_pdfjs_require__(16),nativeDefineProperty=Object.defineProperty;exports.f=module?nativeDefineProperty:function(O,P,Attributes){anObject(O);P=toPrimitive(P,!0);anObject(Attributes);if(IE8_DOM_DEFINE)try{return nativeDefineProperty(O,P,Attributes)}catch(error){}if("get"in
707
+ Attributes||"set"in Attributes)throw TypeError("Accessors not supported");"value"in Attributes&&(O[P]=Attributes.value);return O}},function(module,exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(17);module.exports=function(it){if(!isObject(it))throw TypeError(String(it)+" is not an object");return it}},function(module,exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6),createNonEnumerableProperty=__w_pdfjs_require__(21),has=__w_pdfjs_require__(18),setGlobal=__w_pdfjs_require__(25),
708
+ inspectSource=__w_pdfjs_require__(26);exports=__w_pdfjs_require__(28);var getInternalState=exports.get,enforceInternalState=exports.enforce,TEMPLATE=String(String).split("String");(module.exports=function(O,key,value,options){var unsafe=options?!!options.unsafe:!1,simple=options?!!options.enumerable:!1;options=options?!!options.noTargetGet:!1;"function"==typeof value&&("string"!=typeof key||has(value,"name")||createNonEnumerableProperty(value,"name",key),enforceInternalState(value).source=TEMPLATE.join("string"==
709
+ typeof key?key:""));O===global?simple?O[key]=value:setGlobal(key,value):(unsafe?!options&&O[key]&&(simple=!0):delete O[key],simple?O[key]=value:createNonEnumerableProperty(O,key,value))})(Function.prototype,"toString",function(){return"function"==typeof this&&getInternalState(this).source||inspectSource(this)})},function(module,exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6),createNonEnumerableProperty=__w_pdfjs_require__(21);module.exports=function(key,value){try{createNonEnumerableProperty(global,
710
+ key,value)}catch(error){global[key]=value}return value}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(27);var functionToString=Function.toString;"function"!=typeof exports.inspectSource&&(exports.inspectSource=function(it){return functionToString.call(it)});module.exports=exports.inspectSource},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);__w_pdfjs_require__=__w_pdfjs_require__(25);__w_pdfjs_require__=exports["__core-js_shared__"]||__w_pdfjs_require__("__core-js_shared__",
711
+ {});module.exports=__w_pdfjs_require__},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(29);var global=__w_pdfjs_require__(6),isObject=__w_pdfjs_require__(17),createNonEnumerableProperty=__w_pdfjs_require__(21),objectHas=__w_pdfjs_require__(18),sharedKey=__w_pdfjs_require__(30);__w_pdfjs_require__=__w_pdfjs_require__(34);global=global.WeakMap;if(exports){var store=new global,wmget=store.get,wmhas=store.has,wmset=store.set;var set=function(it,metadata){wmset.call(store,it,
712
+ metadata);return metadata};var get=function(it){return wmget.call(store,it)||{}};var has=function(it){return wmhas.call(store,it)}}else{var STATE=sharedKey("state");__w_pdfjs_require__[STATE]=!0;set=function(it,metadata){createNonEnumerableProperty(it,STATE,metadata);return metadata};get=function(it){return objectHas(it,STATE)?it[STATE]:{}};has=function(it){return objectHas(it,STATE)}}module.exports={set:set,get:get,has:has,enforce:function(it){return has(it)?get(it):set(it,{})},getterFor:function(TYPE){return function(it){var state;
713
+ if(!isObject(it)||(state=get(it)).type!==TYPE)throw TypeError("Incompatible receiver, "+TYPE+" required");return state}}}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);__w_pdfjs_require__=__w_pdfjs_require__(26);exports=exports.WeakMap;module.exports="function"===typeof exports&&/native code/.test(__w_pdfjs_require__(exports))},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(31);var uid=__w_pdfjs_require__(33),keys=exports("keys");module.exports=
714
+ function(key){return keys[key]||(keys[key]=uid(key))}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(32);var store=__w_pdfjs_require__(27);(module.exports=function(key,value){return store[key]||(store[key]=void 0!==value?value:{})})("versions",[]).push({version:"3.6.1",mode:exports?"pure":"global",copyright:"\u00a9 2019 Denis Pushkarev (zloirock.ru)"})},function(module,exports){module.exports=!1},function(module,exports){var id=0,postfix=Math.random();module.exports=function(key){return"Symbol("+
715
+ String(void 0===key?"":key)+")_"+(++id+postfix).toString(36)}},function(module,exports){module.exports={}},function(module,exports,__w_pdfjs_require__){var has=__w_pdfjs_require__(18),ownKeys=__w_pdfjs_require__(36),getOwnPropertyDescriptorModule=__w_pdfjs_require__(7),definePropertyModule=__w_pdfjs_require__(22);module.exports=function(target,source){for(var keys=ownKeys(source),defineProperty=definePropertyModule.f,getOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,i=0;i<keys.length;i++){var key=
716
+ keys[i];has(target,key)||defineProperty(target,key,getOwnPropertyDescriptor(source,key))}}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(37);var getOwnPropertyNamesModule=__w_pdfjs_require__(39),getOwnPropertySymbolsModule=__w_pdfjs_require__(46),anObject=__w_pdfjs_require__(23);module.exports=exports("Reflect","ownKeys")||function(it){var keys=getOwnPropertyNamesModule.f(anObject(it)),getOwnPropertySymbols=getOwnPropertySymbolsModule.f;return getOwnPropertySymbols?keys.concat(getOwnPropertySymbols(it)):
717
+ keys}},function(module,exports,__w_pdfjs_require__){var path=__w_pdfjs_require__(38),global=__w_pdfjs_require__(6),aFunction=function(variable){return"function"==typeof variable?variable:void 0};module.exports=function(namespace,method){return 2>arguments.length?aFunction(path[namespace])||aFunction(global[namespace]):path[namespace]&&path[namespace][method]||global[namespace]&&global[namespace][method]}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);module.exports=exports},
718
+ function(module,exports,__w_pdfjs_require__){var internalObjectKeys=__w_pdfjs_require__(40),hiddenKeys=__w_pdfjs_require__(45).concat("length","prototype");exports.f=Object.getOwnPropertyNames||function(O){return internalObjectKeys(O,hiddenKeys)}},function(module,exports,__w_pdfjs_require__){var has=__w_pdfjs_require__(18),toIndexedObject=__w_pdfjs_require__(12),indexOf=__w_pdfjs_require__(41).indexOf,hiddenKeys=__w_pdfjs_require__(34);module.exports=function(object,names){object=toIndexedObject(object);
719
+ var i=0,result=[],key;for(key in object)!has(hiddenKeys,key)&&has(object,key)&&result.push(key);for(;names.length>i;)has(object,key=names[i++])&&(~indexOf(result,key)||result.push(key));return result}},function(module,exports,__w_pdfjs_require__){var toIndexedObject=__w_pdfjs_require__(12),toLength=__w_pdfjs_require__(42),toAbsoluteIndex=__w_pdfjs_require__(44);exports=function(IS_INCLUDES){return function($this,el,fromIndex){$this=toIndexedObject($this);var length=toLength($this.length);fromIndex=
720
+ toAbsoluteIndex(fromIndex,length);if(IS_INCLUDES&&el!=el)for(;length>fromIndex;){if(el=$this[fromIndex++],el!=el)return!0}else for(;length>fromIndex;fromIndex++)if((IS_INCLUDES||fromIndex in $this)&&$this[fromIndex]===el)return IS_INCLUDES||fromIndex||0;return!IS_INCLUDES&&-1}};module.exports={includes:exports(!0),indexOf:exports(!1)}},function(module,exports,__w_pdfjs_require__){var toInteger=__w_pdfjs_require__(43),min=Math.min;module.exports=function(argument){return 0<argument?min(toInteger(argument),
721
+ 9007199254740991):0}},function(module,exports){var ceil=Math.ceil,floor=Math.floor;module.exports=function(argument){return isNaN(argument=+argument)?0:(0<argument?floor:ceil)(argument)}},function(module,exports,__w_pdfjs_require__){var toInteger=__w_pdfjs_require__(43),max=Math.max,min=Math.min;module.exports=function(index,length){index=toInteger(index);return 0>index?max(index+length,0):min(index,length)}},function(module,exports){module.exports="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ")},
722
+ function(module,exports){exports.f=Object.getOwnPropertySymbols},function(module,exports,__w_pdfjs_require__){var fails=__w_pdfjs_require__(9),replacement=/#|\.prototype\./;exports=function(feature,detection){feature=data[normalize(feature)];return feature==POLYFILL?!0:feature==NATIVE?!1:"function"==typeof detection?fails(detection):!!detection};var normalize=exports.normalize=function(string){return String(string).replace(replacement,".").toLowerCase()},data=exports.data={},NATIVE=exports.NATIVE=
723
+ "N",POLYFILL=exports.POLYFILL="P";module.exports=exports},function(module,exports,__w_pdfjs_require__){function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}Object.defineProperty(exports,"__esModule",{value:!0});exports.isNodeJS=void 0;module="object"===("undefined"===
724
+ typeof process$jscomp$0?"undefined":_typeof(process$jscomp$0))&&"[object process]"===process$jscomp$0+""&&!process$jscomp$0.versions.nw&&!process$jscomp$0.versions.electron;exports.isNodeJS=module},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(50);exports=__w_pdfjs_require__(57);module.exports=exports("String","startsWith")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var getOwnPropertyDescriptor=__w_pdfjs_require__(7).f,toLength=__w_pdfjs_require__(42),
725
+ notARegExp=__w_pdfjs_require__(51),requireObjectCoercible=__w_pdfjs_require__(15);exports=__w_pdfjs_require__(56);__w_pdfjs_require__=__w_pdfjs_require__(32);var nativeStartsWith="".startsWith,min=Math.min;exports=exports("startsWith");__w_pdfjs_require__=!__w_pdfjs_require__&&!exports&&!!function(){var descriptor=getOwnPropertyDescriptor(String.prototype,"startsWith");return descriptor&&!descriptor.writable}();module({target:"String",proto:!0,forced:!__w_pdfjs_require__&&!exports},{startsWith:function(searchString){var that=
726
+ String(requireObjectCoercible(this));notARegExp(searchString);var index=toLength(min(1<arguments.length?arguments[1]:void 0,that.length)),search=String(searchString);return nativeStartsWith?nativeStartsWith.call(that,search,index):that.slice(index,index+search.length)===search}})},function(module,exports,__w_pdfjs_require__){var isRegExp=__w_pdfjs_require__(52);module.exports=function(it){if(isRegExp(it))throw TypeError("The method doesn't accept regular expressions");return it}},function(module,
727
+ exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(17),classof=__w_pdfjs_require__(14),MATCH=__w_pdfjs_require__(53)("match");module.exports=function(it){var isRegExp;return isObject(it)&&(void 0!==(isRegExp=it[MATCH])?!!isRegExp:"RegExp"==classof(it))}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);var shared=__w_pdfjs_require__(31),has=__w_pdfjs_require__(18),uid=__w_pdfjs_require__(33),NATIVE_SYMBOL=__w_pdfjs_require__(54);__w_pdfjs_require__=__w_pdfjs_require__(55);
728
+ var WellKnownSymbolsStore=shared("wks"),_Symbol=exports.Symbol,createWellKnownSymbol=__w_pdfjs_require__?_Symbol:_Symbol&&_Symbol.withoutSetter||uid;module.exports=function(name){has(WellKnownSymbolsStore,name)||(NATIVE_SYMBOL&&has(_Symbol,name)?WellKnownSymbolsStore[name]=_Symbol[name]:WellKnownSymbolsStore[name]=createWellKnownSymbol("Symbol."+name));return WellKnownSymbolsStore[name]}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(9);module.exports=!!Object.getOwnPropertySymbols&&
729
+ !exports(function(){return!String(Symbol())})},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(54);module.exports=exports&&!Symbol.sham&&"symbol"==_typeof2(Symbol.iterator)},function(module,exports,__w_pdfjs_require__){var MATCH=__w_pdfjs_require__(53)("match");module.exports=function(METHOD_NAME){var regexp=/./;try{"/./"[METHOD_NAME](regexp)}catch(e){try{return regexp[MATCH]=!1,"/./"[METHOD_NAME](regexp)}catch(f){}}return!1}},function(module,exports,__w_pdfjs_require__){var global=
730
+ __w_pdfjs_require__(6),bind=__w_pdfjs_require__(58),call=Function.call;module.exports=function(CONSTRUCTOR,METHOD,length){return bind(call,global[CONSTRUCTOR].prototype[METHOD],length)}},function(module,exports,__w_pdfjs_require__){var aFunction=__w_pdfjs_require__(59);module.exports=function(fn,that,length){aFunction(fn);if(void 0===that)return fn;switch(length){case 0:return function(){return fn.call(that)};case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,
731
+ a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},function(module,exports){module.exports=function(it){if("function"!=typeof it)throw TypeError(String(it)+" is not a function");return it}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(61);exports=__w_pdfjs_require__(57);module.exports=exports("String","endsWith")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var getOwnPropertyDescriptor=
732
+ __w_pdfjs_require__(7).f,toLength=__w_pdfjs_require__(42),notARegExp=__w_pdfjs_require__(51),requireObjectCoercible=__w_pdfjs_require__(15);exports=__w_pdfjs_require__(56);__w_pdfjs_require__=__w_pdfjs_require__(32);var nativeEndsWith="".endsWith,min=Math.min;exports=exports("endsWith");__w_pdfjs_require__=!__w_pdfjs_require__&&!exports&&!!function(){var descriptor=getOwnPropertyDescriptor(String.prototype,"endsWith");return descriptor&&!descriptor.writable}();module({target:"String",proto:!0,forced:!__w_pdfjs_require__&&
733
+ !exports},{endsWith:function(searchString){var that=String(requireObjectCoercible(this));notARegExp(searchString);var endPosition=1<arguments.length?arguments[1]:void 0,len=toLength(that.length);endPosition=void 0===endPosition?len:min(toLength(endPosition),len);len=String(searchString);return nativeEndsWith?nativeEndsWith.call(that,len,endPosition):that.slice(endPosition-len.length,endPosition)===len}})},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(63);exports=__w_pdfjs_require__(57);
734
+ module.exports=exports("String","includes")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var notARegExp=__w_pdfjs_require__(51),requireObjectCoercible=__w_pdfjs_require__(15);__w_pdfjs_require__=__w_pdfjs_require__(56);module({target:"String",proto:!0,forced:!__w_pdfjs_require__("includes")},{includes:function(searchString){return!!~String(requireObjectCoercible(this)).indexOf(notARegExp(searchString),1<arguments.length?arguments[1]:void 0)}})},function(module,exports,
735
+ __w_pdfjs_require__){__w_pdfjs_require__(65);exports=__w_pdfjs_require__(57);module.exports=exports("Array","includes")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var $includes=__w_pdfjs_require__(41).includes;__w_pdfjs_require__=__w_pdfjs_require__(66);module({target:"Array",proto:!0},{includes:function(el){return $includes(this,el,1<arguments.length?arguments[1]:void 0)}});__w_pdfjs_require__("includes")},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(53);
736
+ var create=__w_pdfjs_require__(67);__w_pdfjs_require__=__w_pdfjs_require__(22);var UNSCOPABLES=exports("unscopables"),ArrayPrototype=Array.prototype;void 0==ArrayPrototype[UNSCOPABLES]&&__w_pdfjs_require__.f(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create(null)});module.exports=function(key){ArrayPrototype[UNSCOPABLES][key]=!0}},function(module,exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23),defineProperties=__w_pdfjs_require__(68),enumBugKeys=__w_pdfjs_require__(45);exports=
737
+ __w_pdfjs_require__(34);var html=__w_pdfjs_require__(70),documentCreateElement=__w_pdfjs_require__(20),IE_PROTO=__w_pdfjs_require__(30)("IE_PROTO"),EmptyConstructor=function(){},activeXDocument,_NullProtoObject=function(){try{activeXDocument=document.domain&&new ActiveXObject("htmlfile")}catch(error){}if(activeXDocument){var JSCompiler_temp=activeXDocument;JSCompiler_temp.write("<script>\x3c/script>");JSCompiler_temp.close();JSCompiler_temp=JSCompiler_temp.parentWindow.Object}else JSCompiler_temp=
738
+ documentCreateElement("iframe"),JSCompiler_temp.style.display="none",html.appendChild(JSCompiler_temp),JSCompiler_temp.src="javascript:",JSCompiler_temp=JSCompiler_temp.contentWindow.document,JSCompiler_temp.open(),JSCompiler_temp.write("<script>document.F=Object\x3c/script>"),JSCompiler_temp.close(),JSCompiler_temp=JSCompiler_temp.F;_NullProtoObject=JSCompiler_temp;for(JSCompiler_temp=enumBugKeys.length;JSCompiler_temp--;)delete _NullProtoObject.prototype[enumBugKeys[JSCompiler_temp]];return _NullProtoObject()};
739
+ exports[IE_PROTO]=!0;module.exports=Object.create||function(O,Properties){if(null!==O){EmptyConstructor.prototype=anObject(O);var result=new EmptyConstructor;EmptyConstructor.prototype=null;result[IE_PROTO]=O}else result=_NullProtoObject();return void 0===Properties?result:defineProperties(result,Properties)}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(8);var definePropertyModule=__w_pdfjs_require__(22),anObject=__w_pdfjs_require__(23),objectKeys=__w_pdfjs_require__(69);
740
+ module.exports=exports?Object.defineProperties:function(O,Properties){anObject(O);for(var keys=objectKeys(Properties),length=keys.length,index=0,key;length>index;)definePropertyModule.f(O,key=keys[index++],Properties[key]);return O}},function(module,exports,__w_pdfjs_require__){var internalObjectKeys=__w_pdfjs_require__(40),enumBugKeys=__w_pdfjs_require__(45);module.exports=Object.keys||function(O){return internalObjectKeys(O,enumBugKeys)}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(37);
741
+ module.exports=exports("document","documentElement")},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(72);__w_pdfjs_require__(84);exports=__w_pdfjs_require__(38);module.exports=exports.Array.from},function(module,exports,__w_pdfjs_require__){var charAt=__w_pdfjs_require__(73).charAt;module=__w_pdfjs_require__(28);__w_pdfjs_require__=__w_pdfjs_require__(74);var setInternalState=module.set,getInternalState=module.getterFor("String Iterator");__w_pdfjs_require__(String,"String",function(iterated){setInternalState(this,
742
+ {type:"String Iterator",string:String(iterated),index:0})},function(){var state=getInternalState(this),string=state.string,index=state.index;if(index>=string.length)return{value:void 0,done:!0};string=charAt(string,index);state.index+=string.length;return{value:string,done:!1}})},function(module,exports,__w_pdfjs_require__){var toInteger=__w_pdfjs_require__(43),requireObjectCoercible=__w_pdfjs_require__(15);exports=function(CONVERT_TO_STRING){return function($this,pos){$this=String(requireObjectCoercible($this));
743
+ pos=toInteger(pos);var size=$this.length,second;if(0>pos||pos>=size)return CONVERT_TO_STRING?"":void 0;var first=$this.charCodeAt(pos);return 55296>first||56319<first||pos+1===size||56320>(second=$this.charCodeAt(pos+1))||57343<second?CONVERT_TO_STRING?$this.charAt(pos):first:CONVERT_TO_STRING?$this.slice(pos,pos+2):(first-55296<<10)+(second-56320)+65536}};module.exports={codeAt:exports(!1),charAt:exports(!0)}},function(module,exports,__w_pdfjs_require__){var $=__w_pdfjs_require__(5),createIteratorConstructor=
744
+ __w_pdfjs_require__(75),getPrototypeOf=__w_pdfjs_require__(77),setPrototypeOf=__w_pdfjs_require__(82),setToStringTag=__w_pdfjs_require__(80),createNonEnumerableProperty=__w_pdfjs_require__(21),redefine=__w_pdfjs_require__(24);exports=__w_pdfjs_require__(53);var IS_PURE=__w_pdfjs_require__(32),Iterators=__w_pdfjs_require__(81);__w_pdfjs_require__=__w_pdfjs_require__(76);var IteratorPrototype=__w_pdfjs_require__.IteratorPrototype,BUGGY_SAFARI_ITERATORS=__w_pdfjs_require__.BUGGY_SAFARI_ITERATORS,ITERATOR=
745
+ exports("iterator"),returnThis=function(){return this};module.exports=function(Iterable,NAME,IteratorConstructor,next,DEFAULT,IS_SET,FORCED){createIteratorConstructor(IteratorConstructor,NAME,next);next=function(KIND){if(KIND===DEFAULT&&defaultIterator)return defaultIterator;if(!BUGGY_SAFARI_ITERATORS&&KIND in IterablePrototype)return IterablePrototype[KIND];switch(KIND){case "keys":return function(){return new IteratorConstructor(this,KIND)};case "values":return function(){return new IteratorConstructor(this,
746
+ KIND)};case "entries":return function(){return new IteratorConstructor(this,KIND)}}return function(){return new IteratorConstructor(this)}};var TO_STRING_TAG=NAME+" Iterator",INCORRECT_VALUES_NAME=!1,IterablePrototype=Iterable.prototype,nativeIterator=IterablePrototype[ITERATOR]||IterablePrototype["@@iterator"]||DEFAULT&&IterablePrototype[DEFAULT],defaultIterator=!BUGGY_SAFARI_ITERATORS&&nativeIterator||next(DEFAULT),anyNativeIterator="Array"==NAME?IterablePrototype.entries||nativeIterator:nativeIterator,
747
+ KEY;anyNativeIterator&&(Iterable=getPrototypeOf(anyNativeIterator.call(new Iterable)),IteratorPrototype!==Object.prototype&&Iterable.next&&(IS_PURE||getPrototypeOf(Iterable)===IteratorPrototype||(setPrototypeOf?setPrototypeOf(Iterable,IteratorPrototype):"function"!=typeof Iterable[ITERATOR]&&createNonEnumerableProperty(Iterable,ITERATOR,returnThis)),setToStringTag(Iterable,TO_STRING_TAG,!0,!0),IS_PURE&&(Iterators[TO_STRING_TAG]=returnThis)));"values"==DEFAULT&&nativeIterator&&"values"!==nativeIterator.name&&
748
+ (INCORRECT_VALUES_NAME=!0,defaultIterator=function(){return nativeIterator.call(this)});IS_PURE&&!FORCED||IterablePrototype[ITERATOR]===defaultIterator||createNonEnumerableProperty(IterablePrototype,ITERATOR,defaultIterator);Iterators[NAME]=defaultIterator;if(DEFAULT){var methods={values:next("values"),keys:IS_SET?defaultIterator:next("keys"),entries:next("entries")};if(FORCED)for(KEY in methods)!BUGGY_SAFARI_ITERATORS&&!INCORRECT_VALUES_NAME&&KEY in IterablePrototype||redefine(IterablePrototype,
749
+ KEY,methods[KEY]);else $({target:NAME,proto:!0,forced:BUGGY_SAFARI_ITERATORS||INCORRECT_VALUES_NAME},methods)}return methods}},function(module,exports,__w_pdfjs_require__){var IteratorPrototype=__w_pdfjs_require__(76).IteratorPrototype,create=__w_pdfjs_require__(67),createPropertyDescriptor=__w_pdfjs_require__(11),setToStringTag=__w_pdfjs_require__(80),Iterators=__w_pdfjs_require__(81),returnThis=function(){return this};module.exports=function(IteratorConstructor,NAME,next){NAME+=" Iterator";IteratorConstructor.prototype=
750
+ create(IteratorPrototype,{next:createPropertyDescriptor(1,next)});setToStringTag(IteratorConstructor,NAME,!1,!0);Iterators[NAME]=returnThis;return IteratorConstructor}},function(module,exports,__w_pdfjs_require__){var getPrototypeOf=__w_pdfjs_require__(77);exports=__w_pdfjs_require__(21);var has=__w_pdfjs_require__(18),wellKnownSymbol=__w_pdfjs_require__(53);__w_pdfjs_require__=__w_pdfjs_require__(32);wellKnownSymbol=wellKnownSymbol("iterator");var BUGGY_SAFARI_ITERATORS=!1,returnThis=function(){return this},
751
+ IteratorPrototype;if([].keys){var arrayIterator=[].keys();"next"in arrayIterator?(getPrototypeOf=getPrototypeOf(getPrototypeOf(arrayIterator)),getPrototypeOf!==Object.prototype&&(IteratorPrototype=getPrototypeOf)):BUGGY_SAFARI_ITERATORS=!0}void 0==IteratorPrototype&&(IteratorPrototype={});__w_pdfjs_require__||has(IteratorPrototype,wellKnownSymbol)||exports(IteratorPrototype,wellKnownSymbol,returnThis);module.exports={IteratorPrototype:IteratorPrototype,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS}},
752
+ function(module,exports,__w_pdfjs_require__){var has=__w_pdfjs_require__(18),toObject=__w_pdfjs_require__(78);exports=__w_pdfjs_require__(30);__w_pdfjs_require__=__w_pdfjs_require__(79);var IE_PROTO=exports("IE_PROTO"),ObjectPrototype=Object.prototype;module.exports=__w_pdfjs_require__?Object.getPrototypeOf:function(O){O=toObject(O);return has(O,IE_PROTO)?O[IE_PROTO]:"function"==typeof O.constructor&&O instanceof O.constructor?O.constructor.prototype:O instanceof Object?ObjectPrototype:null}},function(module,
753
+ exports,__w_pdfjs_require__){var requireObjectCoercible=__w_pdfjs_require__(15);module.exports=function(argument){return Object(requireObjectCoercible(argument))}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(9);module.exports=!exports(function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype})},function(module,exports,__w_pdfjs_require__){var defineProperty=__w_pdfjs_require__(22).f,has=__w_pdfjs_require__(18),TO_STRING_TAG=
754
+ __w_pdfjs_require__(53)("toStringTag");module.exports=function(it,TAG,STATIC){it&&!has(it=STATIC?it:it.prototype,TO_STRING_TAG)&&defineProperty(it,TO_STRING_TAG,{configurable:!0,value:TAG})}},function(module,exports){module.exports={}},function(module,exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23),aPossiblePrototype=__w_pdfjs_require__(83);module.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var CORRECT_SETTER=!1,test={};try{var setter=Object.getOwnPropertyDescriptor(Object.prototype,
755
+ "__proto__").set;setter.call(test,[]);CORRECT_SETTER=test instanceof Array}catch(error){}return function(O,proto){anObject(O);aPossiblePrototype(proto);CORRECT_SETTER?setter.call(O,proto):O.__proto__=proto;return O}}():void 0)},function(module,exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(17);module.exports=function(it){if(!isObject(it)&&null!==it)throw TypeError("Can't set "+String(it)+" as a prototype");return it}},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);
756
+ exports=__w_pdfjs_require__(85);__w_pdfjs_require__=!__w_pdfjs_require__(92)(function(iterable){Array.from(iterable)});module({target:"Array",stat:!0,forced:__w_pdfjs_require__},{from:exports})},function(module,exports,__w_pdfjs_require__){var bind=__w_pdfjs_require__(58),toObject=__w_pdfjs_require__(78),callWithSafeIterationClosing=__w_pdfjs_require__(86),isArrayIteratorMethod=__w_pdfjs_require__(87),toLength=__w_pdfjs_require__(42),createProperty=__w_pdfjs_require__(88),getIteratorMethod=__w_pdfjs_require__(89);
757
+ module.exports=function(arrayLike){var O=toObject(arrayLike),C="function"==typeof this?this:Array,argumentsLength=arguments.length,mapfn=1<argumentsLength?arguments[1]:void 0,mapping=void 0!==mapfn,index=0,iteratorMethod=getIteratorMethod(O);mapping&&(mapfn=bind(mapfn,2<argumentsLength?arguments[2]:void 0,2));if(void 0==iteratorMethod||C==Array&&isArrayIteratorMethod(iteratorMethod))for(argumentsLength=toLength(O.length),C=new C(argumentsLength);argumentsLength>index;index++)createProperty(C,index,
758
+ mapping?mapfn(O[index],index):O[index]);else for(O=iteratorMethod.call(O),argumentsLength=O.next,C=new C;!(iteratorMethod=argumentsLength.call(O)).done;index++)createProperty(C,index,mapping?callWithSafeIterationClosing(O,mapfn,[iteratorMethod.value,index],!0):iteratorMethod.value);C.length=index;return C}},function(module,exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23);module.exports=function(iterator,fn,value,ENTRIES){try{return ENTRIES?fn(anObject(value)[0],value[1]):fn(value)}catch(error){throw fn=
759
+ iterator["return"],void 0!==fn&&anObject(fn.call(iterator)),error;}}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(53);var Iterators=__w_pdfjs_require__(81),ITERATOR=exports("iterator"),ArrayPrototype=Array.prototype;module.exports=function(it){return void 0!==it&&(Iterators.Array===it||ArrayPrototype[ITERATOR]===it)}},function(module,exports,__w_pdfjs_require__){var toPrimitive=__w_pdfjs_require__(16),definePropertyModule=__w_pdfjs_require__(22),createPropertyDescriptor=
760
+ __w_pdfjs_require__(11);module.exports=function(object,key,value){key=toPrimitive(key);key in object?definePropertyModule.f(object,key,createPropertyDescriptor(0,value)):object[key]=value}},function(module,exports,__w_pdfjs_require__){var classof=__w_pdfjs_require__(90),Iterators=__w_pdfjs_require__(81),ITERATOR=__w_pdfjs_require__(53)("iterator");module.exports=function(it){if(void 0!=it)return it[ITERATOR]||it["@@iterator"]||Iterators[classof(it)]}},function(module,exports,__w_pdfjs_require__){exports=
761
+ __w_pdfjs_require__(91);var classofRaw=__w_pdfjs_require__(14),TO_STRING_TAG=__w_pdfjs_require__(53)("toStringTag"),CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}());module.exports=exports?classofRaw:function(it$jscomp$0){var result;if(void 0===it$jscomp$0)var tag="Undefined";else{if(null===it$jscomp$0)var JSCompiler_temp="Null";else{a:{var it=it$jscomp$0=Object(it$jscomp$0);try{JSCompiler_temp=it[TO_STRING_TAG];break a}catch(error){}JSCompiler_temp=void 0}JSCompiler_temp=
762
+ "string"==typeof(tag=JSCompiler_temp)?tag:CORRECT_ARGUMENTS?classofRaw(it$jscomp$0):"Object"==(result=classofRaw(it$jscomp$0))&&"function"==typeof it$jscomp$0.callee?"Arguments":result}tag=JSCompiler_temp}return tag}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(53)("toStringTag");__w_pdfjs_require__={};__w_pdfjs_require__[exports]="z";module.exports="[object z]"===String(__w_pdfjs_require__)},function(module,exports,__w_pdfjs_require__){var ITERATOR=__w_pdfjs_require__(53)("iterator"),
763
+ SAFE_CLOSING=!1;try{var called=0;exports={next:function(){return{done:!!called++}},"return":function(){SAFE_CLOSING=!0}};exports[ITERATOR]=function(){return this};Array.from(exports,function(){throw 2;})}catch(error){}module.exports=function(exec,SKIP_CLOSING){if(!SKIP_CLOSING&&!SAFE_CLOSING)return!1;var ITERATION_SUPPORT=!1;try{SKIP_CLOSING={},SKIP_CLOSING[ITERATOR]=function(){return{next:function(){return{done:ITERATION_SUPPORT=!0}}}},exec(SKIP_CLOSING)}catch(error$4){}return ITERATION_SUPPORT}},
764
+ function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(94);exports=__w_pdfjs_require__(38);module.exports=exports.Object.assign},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);__w_pdfjs_require__=__w_pdfjs_require__(95);module({target:"Object",stat:!0,forced:Object.assign!==__w_pdfjs_require__},{assign:__w_pdfjs_require__})},function(module,exports,__w_pdfjs_require__){var DESCRIPTORS=__w_pdfjs_require__(8);exports=__w_pdfjs_require__(9);var objectKeys=__w_pdfjs_require__(69),
765
+ getOwnPropertySymbolsModule=__w_pdfjs_require__(46),propertyIsEnumerableModule=__w_pdfjs_require__(10),toObject=__w_pdfjs_require__(78),IndexedObject=__w_pdfjs_require__(13),nativeAssign=Object.assign,defineProperty=Object.defineProperty;module.exports=!nativeAssign||exports(function(){if(DESCRIPTORS&&1!==nativeAssign({b:1},nativeAssign(defineProperty({},"a",{enumerable:!0,get:function(){defineProperty(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var A={},B={},symbol=Symbol();A[symbol]=
766
+ 7;"abcdefghijklmnopqrst".split("").forEach(function(chr){B[chr]=chr});return 7!=nativeAssign({},A)[symbol]||"abcdefghijklmnopqrst"!=objectKeys(nativeAssign({},B)).join("")})?function(target,source){for(var T=toObject(target),argumentsLength=arguments.length,index=1,getOwnPropertySymbols=getOwnPropertySymbolsModule.f,propertyIsEnumerable=propertyIsEnumerableModule.f;argumentsLength>index;)for(var S=IndexedObject(arguments[index++]),keys=getOwnPropertySymbols?objectKeys(S).concat(getOwnPropertySymbols(S)):
767
+ objectKeys(S),length=keys.length,j=0,key;length>j;)if(key=keys[j++],!DESCRIPTORS||propertyIsEnumerable.call(S,key))T[key]=S[key];return T}:nativeAssign},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(97);exports=__w_pdfjs_require__(38);module.exports=exports.Math.log2},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var log=Math.log,LN2=Math.LN2;module({target:"Math",stat:!0},{log2:function(x){return log(x)/LN2}})},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(99);
768
+ exports=__w_pdfjs_require__(38);module.exports=exports.Number.isNaN},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(5)({target:"Number",stat:!0},{isNaN:function(number){return number!=number}})},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(101);exports=__w_pdfjs_require__(38);module.exports=exports.Number.isInteger},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);__w_pdfjs_require__=__w_pdfjs_require__(102);module({target:"Number",stat:!0},
769
+ {isInteger:__w_pdfjs_require__})},function(module,exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(17),floor=Math.floor;module.exports=function(it){return!isObject(it)&&isFinite(it)&&floor(it)===it}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(104);__w_pdfjs_require__(72);__w_pdfjs_require__(106);__w_pdfjs_require__(109);__w_pdfjs_require__(125);__w_pdfjs_require__(126);exports=__w_pdfjs_require__(38);module.exports=exports.Promise},function(module,exports,__w_pdfjs_require__){module=
770
+ __w_pdfjs_require__(91);exports=__w_pdfjs_require__(24);__w_pdfjs_require__=__w_pdfjs_require__(105);module||exports(Object.prototype,"toString",__w_pdfjs_require__,{unsafe:!0})},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(91);var classof=__w_pdfjs_require__(90);module.exports=exports?{}.toString:function(){return"[object "+classof(this)+"]"}},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(6);exports=__w_pdfjs_require__(107);var ArrayIteratorMethods=
771
+ __w_pdfjs_require__(108),createNonEnumerableProperty=__w_pdfjs_require__(21),wellKnownSymbol=__w_pdfjs_require__(53);__w_pdfjs_require__=wellKnownSymbol("iterator");wellKnownSymbol=wellKnownSymbol("toStringTag");var ArrayValues=ArrayIteratorMethods.values,COLLECTION_NAME;for(COLLECTION_NAME in exports){var Collection=module[COLLECTION_NAME];if(Collection=Collection&&Collection.prototype){if(Collection[__w_pdfjs_require__]!==ArrayValues)try{createNonEnumerableProperty(Collection,__w_pdfjs_require__,
772
+ ArrayValues)}catch(error){Collection[__w_pdfjs_require__]=ArrayValues}Collection[wellKnownSymbol]||createNonEnumerableProperty(Collection,wellKnownSymbol,COLLECTION_NAME);if(exports[COLLECTION_NAME])for(var METHOD_NAME in ArrayIteratorMethods)if(Collection[METHOD_NAME]!==ArrayIteratorMethods[METHOD_NAME])try{createNonEnumerableProperty(Collection,METHOD_NAME,ArrayIteratorMethods[METHOD_NAME])}catch(error$5){Collection[METHOD_NAME]=ArrayIteratorMethods[METHOD_NAME]}}}},function(module,exports){module.exports=
773
+ {CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},
774
+ function(module,exports,__w_pdfjs_require__){var toIndexedObject=__w_pdfjs_require__(12);exports=__w_pdfjs_require__(66);var Iterators=__w_pdfjs_require__(81),InternalStateModule=__w_pdfjs_require__(28);__w_pdfjs_require__=__w_pdfjs_require__(74);var setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor("Array Iterator");module.exports=__w_pdfjs_require__(Array,"Array",function(iterated,kind){setInternalState(this,{type:"Array Iterator",target:toIndexedObject(iterated),
775
+ index:0,kind:kind})},function(){var state=getInternalState(this),target=state.target,kind=state.kind,index=state.index++;return!target||index>=target.length?(state.target=void 0,{value:void 0,done:!0}):"keys"==kind?{value:index,done:!1}:"values"==kind?{value:target[index],done:!1}:{value:[index,target[index]],done:!1}},"values");Iterators.Arguments=Iterators.Array;exports("keys");exports("values");exports("entries")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var IS_PURE=
776
+ __w_pdfjs_require__(32),global=__w_pdfjs_require__(6);exports=__w_pdfjs_require__(37);var NativePromise=__w_pdfjs_require__(110),redefine=__w_pdfjs_require__(24),redefineAll=__w_pdfjs_require__(111),setToStringTag=__w_pdfjs_require__(80),setSpecies=__w_pdfjs_require__(112),isObject=__w_pdfjs_require__(17),aFunction=__w_pdfjs_require__(59),anInstance=__w_pdfjs_require__(113),classof=__w_pdfjs_require__(14),inspectSource=__w_pdfjs_require__(26),iterate=__w_pdfjs_require__(114),checkCorrectnessOfIteration=
777
+ __w_pdfjs_require__(92),speciesConstructor=__w_pdfjs_require__(115),task=__w_pdfjs_require__(116).set,microtask=__w_pdfjs_require__(119),promiseResolve=__w_pdfjs_require__(120),hostReportErrors=__w_pdfjs_require__(122),newPromiseCapabilityModule=__w_pdfjs_require__(121),perform=__w_pdfjs_require__(123),InternalStateModule=__w_pdfjs_require__(28),isForced=__w_pdfjs_require__(47),wellKnownSymbol=__w_pdfjs_require__(53),V8_VERSION=__w_pdfjs_require__(124),SPECIES=wellKnownSymbol("species"),getInternalState=
778
+ InternalStateModule.get,setInternalState=InternalStateModule.set,getInternalPromiseState=InternalStateModule.getterFor("Promise"),PromiseConstructor=NativePromise,TypeError=global.TypeError,document=global.document,process=global.process,$fetch=exports("fetch"),newPromiseCapability=newPromiseCapabilityModule.f,newGenericPromiseCapability=newPromiseCapability,IS_NODE="process"==classof(process),DISPATCH_EVENT=!!(document&&document.createEvent&&global.dispatchEvent);checkCorrectnessOfIteration=(__w_pdfjs_require__=
779
+ isForced("Promise",function(){if(inspectSource(PromiseConstructor)===String(PromiseConstructor)&&(66===V8_VERSION||!IS_NODE&&"function"!=typeof PromiseRejectionEvent)||IS_PURE&&!PromiseConstructor.prototype["finally"])return!0;if(51<=V8_VERSION&&/native code/.test(PromiseConstructor))return!1;var promise=PromiseConstructor.resolve(1),FakePromise=function(exec){exec(function(){},function(){})};(promise.constructor={})[SPECIES]=FakePromise;return!(promise.then(function(){})instanceof FakePromise)}))||
780
+ !checkCorrectnessOfIteration(function(iterable){PromiseConstructor.all(iterable)["catch"](function(){})});var isThenable=function(it){var then;return isObject(it)&&"function"==typeof(then=it.then)?then:!1},notify=function(promise,state,isReject){if(!state.notified){state.notified=!0;var chain=state.reactions;microtask(function(){for(var value=state.value,ok=1==state.state,index=0;chain.length>index;){var reaction=chain[index++],handler=ok?reaction.ok:reaction.fail,resolve=reaction.resolve,reject=
781
+ reaction.reject,domain=reaction.domain,then;try{if(handler){ok||(2===state.rejection&&onHandleUnhandled(promise,state),state.rejection=1);if(!0===handler)var result=value;else if(domain&&domain.enter(),result=handler(value),domain){domain.exit();var exited=!0}result===reaction.promise?reject(TypeError("Promise-chain cycle")):(then=isThenable(result))?then.call(result,resolve,reject):resolve(result)}else reject(value)}catch(error){domain&&!exited&&domain.exit(),reject(error)}}state.reactions=[];state.notified=
782
+ !1;isReject&&!state.rejection&&onUnhandled(promise,state)})}},dispatchEvent=function(name,promise,reason){var handler;if(DISPATCH_EVENT){var event=document.createEvent("Event");event.promise=promise;event.reason=reason;event.initEvent(name,!1,!0);global.dispatchEvent(event)}else event={promise:promise,reason:reason};(handler=global["on"+name])?handler(event):"unhandledrejection"===name&&hostReportErrors("Unhandled promise rejection",reason)},onUnhandled=function(promise,state){task.call(global,function(){var value=
783
+ state.value;if(1!==state.rejection&&!state.parent){var result=perform(function(){IS_NODE?process.emit("unhandledRejection",value,promise):dispatchEvent("unhandledrejection",promise,value)});state.rejection=IS_NODE||1!==state.rejection&&!state.parent?2:1;if(result.error)throw result.value;}})},onHandleUnhandled=function(promise,state){task.call(global,function(){IS_NODE?process.emit("rejectionHandled",promise):dispatchEvent("rejectionhandled",promise,state.value)})},bind=function(fn,promise,state,
784
+ unwrap){return function(value){fn(promise,state,value,unwrap)}},internalReject=function(promise,state,value,unwrap){state.done||(state.done=!0,unwrap&&(state=unwrap),state.value=value,state.state=2,notify(promise,state,!0))},internalResolve=function internalResolve(promise,state,value,unwrap){if(!state.done){state.done=!0;unwrap&&(state=unwrap);try{if(promise===value)throw TypeError("Promise can't be resolved itself");var then=isThenable(value);then?microtask(function(){var wrapper={done:!1};try{then.call(value,
785
+ bind(internalResolve,promise,wrapper,state),bind(internalReject,promise,wrapper,state))}catch(error){internalReject(promise,wrapper,error,state)}}):(state.value=value,state.state=1,notify(promise,state,!1))}catch(error){internalReject(promise,{done:!1},error,state)}}};if(__w_pdfjs_require__){PromiseConstructor=function(executor){anInstance(this,PromiseConstructor,"Promise");aFunction(executor);Internal.call(this);var state=getInternalState(this);try{executor(bind(internalResolve,this,state),bind(internalReject,
786
+ this,state))}catch(error){internalReject(this,state,error)}};var Internal=function(executor){setInternalState(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})};Internal.prototype=redefineAll(PromiseConstructor.prototype,{then:function(onFulfilled,onRejected){var state=getInternalPromiseState(this),reaction=newPromiseCapability(speciesConstructor(this,PromiseConstructor));reaction.ok="function"==typeof onFulfilled?onFulfilled:!0;reaction.fail="function"==
787
+ typeof onRejected&&onRejected;reaction.domain=IS_NODE?process.domain:void 0;state.parent=!0;state.reactions.push(reaction);0!=state.state&&notify(this,state,!1);return reaction.promise},"catch":function(onRejected){return this.then(void 0,onRejected)}});var OwnPromiseCapability=function(){var promise=new Internal,state=getInternalState(promise);this.promise=promise;this.resolve=bind(internalResolve,promise,state);this.reject=bind(internalReject,promise,state)};newPromiseCapabilityModule.f=newPromiseCapability=
788
+ function(C){return C===PromiseConstructor||C===PromiseWrapper?new OwnPromiseCapability(C):newGenericPromiseCapability(C)};if(!IS_PURE&&"function"==typeof NativePromise){var nativeThen=NativePromise.prototype.then;redefine(NativePromise.prototype,"then",function(onFulfilled,onRejected){var that=this;return(new PromiseConstructor(function(resolve,reject){nativeThen.call(that,resolve,reject)})).then(onFulfilled,onRejected)},{unsafe:!0});"function"==typeof $fetch&&module({global:!0,enumerable:!0,forced:!0},
789
+ {fetch:function(input){return promiseResolve(PromiseConstructor,$fetch.apply(global,arguments))}})}}module({global:!0,wrap:!0,forced:__w_pdfjs_require__},{Promise:PromiseConstructor});setToStringTag(PromiseConstructor,"Promise",!1,!0);setSpecies("Promise");var PromiseWrapper=exports("Promise");module({target:"Promise",stat:!0,forced:__w_pdfjs_require__},{reject:function(r){var capability=newPromiseCapability(this);capability.reject.call(void 0,r);return capability.promise}});module({target:"Promise",
790
+ stat:!0,forced:IS_PURE||__w_pdfjs_require__},{resolve:function(x){return promiseResolve(IS_PURE&&this===PromiseWrapper?PromiseConstructor:this,x)}});module({target:"Promise",stat:!0,forced:checkCorrectnessOfIteration},{all:function(iterable){var C=this,capability=newPromiseCapability(C),resolve=capability.resolve,reject=capability.reject,result=perform(function(){var $promiseResolve=aFunction(C.resolve),values=[],counter=0,remaining=1;iterate(iterable,function(promise){var index=counter++,alreadyCalled=
791
+ !1;values.push(void 0);remaining++;$promiseResolve.call(C,promise).then(function(value){alreadyCalled||(alreadyCalled=!0,values[index]=value,--remaining||resolve(values))},reject)});--remaining||resolve(values)});result.error&&reject(result.value);return capability.promise},race:function(iterable){var C=this,capability=newPromiseCapability(C),reject=capability.reject,result=perform(function(){var $promiseResolve=aFunction(C.resolve);iterate(iterable,function(promise){$promiseResolve.call(C,promise).then(capability.resolve,
792
+ reject)})});result.error&&reject(result.value);return capability.promise}})},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);module.exports=exports.Promise},function(module,exports,__w_pdfjs_require__){var redefine=__w_pdfjs_require__(24);module.exports=function(target,src,options){for(var key in src)redefine(target,key,src[key],options);return target}},function(module,exports,__w_pdfjs_require__){var getBuiltIn=__w_pdfjs_require__(37),definePropertyModule=__w_pdfjs_require__(22);
793
+ exports=__w_pdfjs_require__(53);var DESCRIPTORS=__w_pdfjs_require__(8),SPECIES=exports("species");module.exports=function(CONSTRUCTOR_NAME){CONSTRUCTOR_NAME=getBuiltIn(CONSTRUCTOR_NAME);var defineProperty=definePropertyModule.f;DESCRIPTORS&&CONSTRUCTOR_NAME&&!CONSTRUCTOR_NAME[SPECIES]&&defineProperty(CONSTRUCTOR_NAME,SPECIES,{configurable:!0,get:function(){return this}})}},function(module,exports){module.exports=function(it,Constructor,name){if(!(it instanceof Constructor))throw TypeError("Incorrect "+
794
+ (name?name+" ":"")+"invocation");return it}},function(module,exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23),isArrayIteratorMethod=__w_pdfjs_require__(87),toLength=__w_pdfjs_require__(42),bind=__w_pdfjs_require__(58),getIteratorMethod=__w_pdfjs_require__(89),callWithSafeIterationClosing=__w_pdfjs_require__(86),Result=function(stopped,result){this.stopped=stopped;this.result=result};(module.exports=function(iterable,fn,that,AS_ENTRIES,IS_ITERATOR){fn=bind(fn,that,AS_ENTRIES?2:1);
795
+ var length,step;if(!IS_ITERATOR){IS_ITERATOR=getIteratorMethod(iterable);if("function"!=typeof IS_ITERATOR)throw TypeError("Target is not iterable");if(isArrayIteratorMethod(IS_ITERATOR)){that=0;for(length=toLength(iterable.length);length>that;that++)if((IS_ITERATOR=AS_ENTRIES?fn(anObject(step=iterable[that])[0],step[1]):fn(iterable[that]))&&IS_ITERATOR instanceof Result)return IS_ITERATOR;return new Result(!1)}iterable=IS_ITERATOR.call(iterable)}for(that=iterable.next;!(step=that.call(iterable)).done;)if(IS_ITERATOR=
796
+ callWithSafeIterationClosing(iterable,fn,step.value,AS_ENTRIES),"object"==_typeof2(IS_ITERATOR)&&IS_ITERATOR&&IS_ITERATOR instanceof Result)return IS_ITERATOR;return new Result(!1)}).stop=function(result){return new Result(!0,result)}},function(module,exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23),aFunction=__w_pdfjs_require__(59),SPECIES=__w_pdfjs_require__(53)("species");module.exports=function(O,defaultConstructor){O=anObject(O).constructor;var S;return void 0===O||void 0==(S=
797
+ anObject(O)[SPECIES])?defaultConstructor:aFunction(S)}},function(module,exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6),fails=__w_pdfjs_require__(9),classof=__w_pdfjs_require__(14);exports=__w_pdfjs_require__(58);var html=__w_pdfjs_require__(70),createElement=__w_pdfjs_require__(20),IS_IOS=__w_pdfjs_require__(117),location=global.location;__w_pdfjs_require__=global.setImmediate;var clear=global.clearImmediate,process=global.process,MessageChannel=global.MessageChannel,Dispatch=global.Dispatch,
798
+ counter=0,queue={},run=function(id){if(queue.hasOwnProperty(id)){var fn=queue[id];delete queue[id];fn()}},runner=function(id){return function(){run(id)}},listener=function(event){run(event.data)},post=function(id){global.postMessage(id+"",location.protocol+"//"+location.host)};if(!__w_pdfjs_require__||!clear)if(__w_pdfjs_require__=function(fn){for(var args=[],i=1;arguments.length>i;)args.push(arguments[i++]);queue[++counter]=function(){("function"==typeof fn?fn:Function(fn)).apply(void 0,args)};defer(counter);
799
+ return counter},clear=function(id){delete queue[id]},"process"==classof(process))var defer=function(id){process.nextTick(runner(id))};else Dispatch&&Dispatch.now?defer=function(id){Dispatch.now(runner(id))}:MessageChannel&&!IS_IOS?(fails=new MessageChannel,classof=fails.port2,fails.port1.onmessage=listener,defer=exports(classof.postMessage,classof,1)):!global.addEventListener||"function"!=typeof postMessage||global.importScripts||fails(post)?defer="onreadystatechange"in createElement("script")?function(id){html.appendChild(createElement("script")).onreadystatechange=
800
+ function(){html.removeChild(this);run(id)}}:function(id){setTimeout(runner(id),0)}:(defer=post,global.addEventListener("message",listener,!1));module.exports={set:__w_pdfjs_require__,clear:clear}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(118);module.exports=/(iphone|ipod|ipad).*applewebkit/i.test(exports)},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(37);module.exports=exports("navigator","userAgent")||""},function(module,exports,__w_pdfjs_require__){var global=
801
+ __w_pdfjs_require__(6),getOwnPropertyDescriptor=__w_pdfjs_require__(7).f,classof=__w_pdfjs_require__(14),macrotask=__w_pdfjs_require__(116).set;__w_pdfjs_require__=__w_pdfjs_require__(117);exports=global.MutationObserver||global.WebKitMutationObserver;var process=global.process,Promise=global.Promise,IS_NODE="process"==classof(process);getOwnPropertyDescriptor=(getOwnPropertyDescriptor=getOwnPropertyDescriptor(global,"queueMicrotask"))&&getOwnPropertyDescriptor.value;var head,last;if(!getOwnPropertyDescriptor){var flush=
802
+ function(){var parent;for(IS_NODE&&(parent=process.domain)&&parent.exit();head;){var fn=head.fn;head=head.next;try{fn()}catch(error){throw head?notify():last=void 0,error;}}last=void 0;parent&&parent.enter()};if(IS_NODE)var notify=function(){process.nextTick(flush)};else if(exports&&!__w_pdfjs_require__){var toggle=!0;var node=document.createTextNode("");(new exports(flush)).observe(node,{characterData:!0});notify=function(){node.data=toggle=!toggle}}else if(Promise&&Promise.resolve){var promise=
803
+ Promise.resolve(void 0);var then=promise.then;notify=function(){then.call(promise,flush)}}else notify=function(){macrotask.call(global,flush)}}module.exports=getOwnPropertyDescriptor||function(fn){fn={fn:fn,next:void 0};last&&(last.next=fn);head||(head=fn,notify());last=fn}},function(module,exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23),isObject=__w_pdfjs_require__(17),newPromiseCapability=__w_pdfjs_require__(121);module.exports=function(C,x){anObject(C);if(isObject(x)&&x.constructor===
804
+ C)return x;C=newPromiseCapability.f(C);var resolve=C.resolve;resolve(x);return C.promise}},function(module,exports,__w_pdfjs_require__){var aFunction=__w_pdfjs_require__(59),PromiseCapability=function(C){var resolve,reject;this.promise=new C(function($$resolve,$$reject){if(void 0!==resolve||void 0!==reject)throw TypeError("Bad Promise constructor");resolve=$$resolve;reject=$$reject});this.resolve=aFunction(resolve);this.reject=aFunction(reject)};module.exports.f=function(C){return new PromiseCapability(C)}},
805
+ function(module,exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6);module.exports=function(a,b){var console=global.console;console&&console.error&&(1===arguments.length?console.error(a):console.error(a,b))}},function(module,exports){module.exports=function(exec){try{return{error:!1,value:exec()}}catch(error){return{error:!0,value:error}}}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);__w_pdfjs_require__=__w_pdfjs_require__(118);exports=(exports=(exports=
806
+ exports.process)&&exports.versions)&&exports.v8;if(exports){exports=exports.split(".");var version=exports[0]+exports[1]}else __w_pdfjs_require__&&(exports=__w_pdfjs_require__.match(/Edge\/(\d+)/),(!exports||74<=exports[1])&&(exports=__w_pdfjs_require__.match(/Chrome\/(\d+)/))&&(version=exports[1]));module.exports=version&&+version},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var aFunction=__w_pdfjs_require__(59),newPromiseCapabilityModule=__w_pdfjs_require__(121),perform=
807
+ __w_pdfjs_require__(123),iterate=__w_pdfjs_require__(114);module({target:"Promise",stat:!0},{allSettled:function(iterable){var C=this,capability=newPromiseCapabilityModule.f(C),resolve=capability.resolve,reject=capability.reject,result=perform(function(){var promiseResolve=aFunction(C.resolve),values=[],counter=0,remaining=1;iterate(iterable,function(promise){var index=counter++,alreadyCalled=!1;values.push(void 0);remaining++;promiseResolve.call(C,promise).then(function(value){alreadyCalled||(alreadyCalled=
808
+ !0,values[index]={status:"fulfilled",value:value},--remaining||resolve(values))},function(e){alreadyCalled||(alreadyCalled=!0,values[index]={status:"rejected",reason:e},--remaining||resolve(values))})});--remaining||resolve(values)});result.error&&reject(result.value);return capability.promise}})},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);exports=__w_pdfjs_require__(32);var NativePromise=__w_pdfjs_require__(110),fails=__w_pdfjs_require__(9),getBuiltIn=__w_pdfjs_require__(37),
809
+ speciesConstructor=__w_pdfjs_require__(115),promiseResolve=__w_pdfjs_require__(120);__w_pdfjs_require__=__w_pdfjs_require__(24);fails=!!NativePromise&&fails(function(){NativePromise.prototype["finally"].call({then:function(){}},function(){})});module({target:"Promise",proto:!0,real:!0,forced:fails},{"finally":function(onFinally){var C=speciesConstructor(this,getBuiltIn("Promise")),isFunction="function"==typeof onFinally;return this.then(isFunction?function(x){return promiseResolve(C,onFinally()).then(function(){return x})}:
810
+ onFinally,isFunction?function(e){return promiseResolve(C,onFinally()).then(function(){throw e;})}:onFinally)}});exports||"function"!=typeof NativePromise||NativePromise.prototype["finally"]||__w_pdfjs_require__(NativePromise.prototype,"finally",getBuiltIn("Promise").prototype["finally"])},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(128);__w_pdfjs_require__(133);__w_pdfjs_require__(131);exports=__w_pdfjs_require__(38);module.exports=exports.URL},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(72);
811
+ module=__w_pdfjs_require__(5);var DESCRIPTORS=__w_pdfjs_require__(8);exports=__w_pdfjs_require__(129);var global=__w_pdfjs_require__(6),defineProperties=__w_pdfjs_require__(68),redefine=__w_pdfjs_require__(24),anInstance=__w_pdfjs_require__(113),has=__w_pdfjs_require__(18),assign=__w_pdfjs_require__(95),arrayFrom=__w_pdfjs_require__(85),codeAt=__w_pdfjs_require__(73).codeAt,toASCII=__w_pdfjs_require__(130),setToStringTag=__w_pdfjs_require__(80),URLSearchParamsModule=__w_pdfjs_require__(131);__w_pdfjs_require__=
812
+ __w_pdfjs_require__(28);var NativeURL=global.URL,URLSearchParams=URLSearchParamsModule.URLSearchParams,getInternalSearchParamsState=URLSearchParamsModule.getState,setInternalState=__w_pdfjs_require__.set,getInternalURLState=__w_pdfjs_require__.getterFor("URL"),floor=Math.floor,pow=Math.pow,ALPHA=/[A-Za-z]/,ALPHANUMERIC=/[\d+\-.A-Za-z]/,DIGIT=/\d/,HEX_START=/^(0x|0X)/,OCT=/^[0-7]+$/,DEC=/^\d+$/,HEX=/^[\dA-Fa-f]+$/,FORBIDDEN_HOST_CODE_POINT=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT=
813
+ /[\u0000\u0009\u000A\u000D #/:?@[\\]]/,LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,TAB_AND_NEW_LINE=/[\u0009\u000A\u000D]/g,parseHost=function(url,input){var index;if("["==input.charAt(0)){if("]"!=input.charAt(input.length-1))return"Invalid host";var result=parseIPv6(input.slice(1,-1));if(!result)return"Invalid host"}else if(isSpecial(url)){input=toASCII(input);if(FORBIDDEN_HOST_CODE_POINT.test(input))return"Invalid host";result=parseIPv4(input);if(null===result)return"Invalid host"}else{if(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT.test(input))return"Invalid host";
814
+ result="";input=arrayFrom(input);for(index=0;index<input.length;index++)result+=percentEncode(input[index],C0ControlPercentEncodeSet)}url.host=result},parseIPv4=function(input){var parts=input.split("."),index;parts.length&&""==parts[parts.length-1]&&parts.pop();var partsLength=parts.length;if(4<partsLength)return input;var numbers=[];for(index=0;index<partsLength;index++){var part=parts[index];if(""==part)return input;var radix=10;1<part.length&&"0"==part.charAt(0)&&(radix=HEX_START.test(part)?16:
815
+ 8,part=part.slice(8==radix?1:2));if(""===part)part=0;else{if(!(10==radix?DEC:8==radix?OCT:HEX).test(part))return input;part=parseInt(part,radix)}numbers.push(part)}for(index=0;index<partsLength;index++)if(part=numbers[index],index==partsLength-1){if(part>=pow(256,5-partsLength))return null}else if(255<part)return null;input=numbers.pop();for(index=0;index<numbers.length;index++)input+=numbers[index]*pow(256,3-index);return input},parseIPv6=function(input){var address=[0,0,0,0,0,0,0,0],pieceIndex=
816
+ 0,compress=null,pointer=0,value,length;var swaps=function(){return input.charAt(pointer)};if(":"==swaps()){if(":"!=input.charAt(1))return;pointer+=2;pieceIndex++;compress=pieceIndex}for(;swaps();){if(8==pieceIndex)return;if(":"==swaps()){if(null!==compress)return;pointer++;pieceIndex++;compress=pieceIndex}else{for(value=length=0;4>length&&HEX.test(swaps());)value=16*value+parseInt(swaps(),16),pointer++,length++;if("."==swaps()){if(0==length)return;pointer-=length;if(6<pieceIndex)return;for(value=
817
+ 0;swaps();){length=null;if(0<value)if("."==swaps()&&4>value)pointer++;else return;if(!DIGIT.test(swaps()))return;for(;DIGIT.test(swaps());){var number=parseInt(swaps(),10);if(null===length)length=number;else{if(0==length)return;length=10*length+number}if(255<length)return;pointer++}address[pieceIndex]=256*address[pieceIndex]+length;value++;2!=value&&4!=value||pieceIndex++}if(4!=value)return;break}else if(":"==swaps()){if(pointer++,!swaps())return}else if(swaps())return;address[pieceIndex++]=value}}if(null!==
818
+ compress)for(swaps=pieceIndex-compress,pieceIndex=7;0!=pieceIndex&&0<swaps;)value=address[pieceIndex],address[pieceIndex--]=address[compress+swaps-1],address[compress+--swaps]=value;else if(8!=pieceIndex)return;return address},serializeHost=function(host){var index,ignore0;if("number"==typeof host){var result=[];for(index=0;4>index;index++)result.unshift(host%256),host=floor(host/256);return result.join(".")}if("object"==_typeof2(host)){result="";index=null;var compress=1;for(var currStart=null,currLength=
819
+ 0,index$jscomp$0=0;8>index$jscomp$0;index$jscomp$0++)0!==host[index$jscomp$0]?(currLength>compress&&(index=currStart,compress=currLength),currStart=null,currLength=0):(null===currStart&&(currStart=index$jscomp$0),++currLength);currLength>compress&&(index=currStart);compress=index;for(index=0;8>index;index++)ignore0&&0===host[index]||(ignore0&&(ignore0=!1),compress===index?(result+=index?":":"::",ignore0=!0):(result+=host[index].toString(16),7>index&&(result+=":")));return"["+result+"]"}return host},
820
+ C0ControlPercentEncodeSet={},fragmentPercentEncodeSet=assign({},C0ControlPercentEncodeSet,{" ":1,'"':1,"<":1,">":1,"`":1}),pathPercentEncodeSet=assign({},fragmentPercentEncodeSet,{"#":1,"?":1,"{":1,"}":1}),userinfoPercentEncodeSet=assign({},pathPercentEncodeSet,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(_char2,set){var code=codeAt(_char2,0);return 32<code&&127>code&&!has(set,_char2)?_char2:encodeURIComponent(_char2)},specialSchemes={ftp:21,file:null,http:80,
821
+ https:443,ws:80,wss:443},isSpecial=function(url){return has(specialSchemes,url.scheme)},cannotHaveUsernamePasswordPort=function(url){return!url.host||url.cannotBeABaseURL||"file"==url.scheme},isWindowsDriveLetter=function(string,normalized){var second;return 2==string.length&&ALPHA.test(string.charAt(0))&&(":"==(second=string.charAt(1))||!normalized&&"|"==second)},startsWithWindowsDriveLetter=function(string){var third;return 1<string.length&&isWindowsDriveLetter(string.slice(0,2))&&(2==string.length||
822
+ "/"===(third=string.charAt(2))||"\\"===third||"?"===third||"#"===third)},shortenURLsPath=function(url){var path=url.path,pathSize=path.length;!pathSize||"file"==url.scheme&&1==pathSize&&isWindowsDriveLetter(path[0],!0)||path.pop()},SCHEME_START={},SCHEME={},NO_SCHEME={},SPECIAL_RELATIVE_OR_AUTHORITY={},PATH_OR_AUTHORITY={},RELATIVE={},RELATIVE_SLASH={},SPECIAL_AUTHORITY_SLASHES={},SPECIAL_AUTHORITY_IGNORE_SLASHES={},AUTHORITY={},HOST={},HOSTNAME={},PORT={},FILE={},FILE_SLASH={},FILE_HOST={},PATH_START=
823
+ {},PATH={},CANNOT_BE_A_BASE_URL_PATH={},QUERY={},FRAGMENT={},parseURL=function(url,input,stateOverride,base){var state=stateOverride||SCHEME_START,pointer=0,buffer="",seenAt=!1,seenBracket=!1,seenPasswordToken=!1;stateOverride||(url.scheme="",url.username="",url.password="",url.host=null,url.port=null,url.path=[],url.query=null,url.fragment=null,url.cannotBeABaseURL=!1,input=input.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE,""));input=input.replace(TAB_AND_NEW_LINE,"");for(input=arrayFrom(input);pointer<=
824
+ input.length;){var _char3=input[pointer];switch(state){case SCHEME_START:if(_char3&&ALPHA.test(_char3))buffer+=_char3.toLowerCase(),state=SCHEME;else{if(stateOverride)return"Invalid scheme";state=NO_SCHEME;continue}break;case SCHEME:if(_char3&&(ALPHANUMERIC.test(_char3)||"+"==_char3||"-"==_char3||"."==_char3))buffer+=_char3.toLowerCase();else if(":"==_char3){if(stateOverride&&(isSpecial(url)!=has(specialSchemes,buffer)||"file"==buffer&&(""!=url.username||""!=url.password||null!==url.port)||"file"==
825
+ url.scheme&&!url.host))return;url.scheme=buffer;if(stateOverride){isSpecial(url)&&specialSchemes[url.scheme]==url.port&&(url.port=null);return}buffer="";"file"==url.scheme?state=FILE:isSpecial(url)&&base&&base.scheme==url.scheme?state=SPECIAL_RELATIVE_OR_AUTHORITY:isSpecial(url)?state=SPECIAL_AUTHORITY_SLASHES:"/"==input[pointer+1]?(state=PATH_OR_AUTHORITY,pointer++):(url.cannotBeABaseURL=!0,url.path.push(""),state=CANNOT_BE_A_BASE_URL_PATH)}else{if(stateOverride)return"Invalid scheme";buffer="";
826
+ state=NO_SCHEME;pointer=0;continue}break;case NO_SCHEME:if(!base||base.cannotBeABaseURL&&"#"!=_char3)return"Invalid scheme";if(base.cannotBeABaseURL&&"#"==_char3){url.scheme=base.scheme;url.path=base.path.slice();url.query=base.query;url.fragment="";url.cannotBeABaseURL=!0;state=FRAGMENT;break}state="file"==base.scheme?FILE:RELATIVE;continue;case SPECIAL_RELATIVE_OR_AUTHORITY:if("/"==_char3&&"/"==input[pointer+1])state=SPECIAL_AUTHORITY_IGNORE_SLASHES,pointer++;else{state=RELATIVE;continue}break;
827
+ case PATH_OR_AUTHORITY:if("/"==_char3){state=AUTHORITY;break}else{state=PATH;continue}case RELATIVE:url.scheme=base.scheme;if(void 0==_char3)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=base.path.slice(),url.query=base.query;else if("/"==_char3||"\\"==_char3&&isSpecial(url))state=RELATIVE_SLASH;else if("?"==_char3)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=base.path.slice(),url.query=
828
+ "",state=QUERY;else if("#"==_char3)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=base.path.slice(),url.query=base.query,url.fragment="",state=FRAGMENT;else{url.username=base.username;url.password=base.password;url.host=base.host;url.port=base.port;url.path=base.path.slice();url.path.pop();state=PATH;continue}break;case RELATIVE_SLASH:if(!isSpecial(url)||"/"!=_char3&&"\\"!=_char3)if("/"==_char3)state=AUTHORITY;else{url.username=base.username;url.password=
829
+ base.password;url.host=base.host;url.port=base.port;state=PATH;continue}else state=SPECIAL_AUTHORITY_IGNORE_SLASHES;break;case SPECIAL_AUTHORITY_SLASHES:state=SPECIAL_AUTHORITY_IGNORE_SLASHES;if("/"!=_char3||"/"!=buffer.charAt(pointer+1))continue;pointer++;break;case SPECIAL_AUTHORITY_IGNORE_SLASHES:if("/"!=_char3&&"\\"!=_char3){state=AUTHORITY;continue}break;case AUTHORITY:if("@"==_char3){seenAt&&(buffer="%40"+buffer);seenAt=!0;buffer=arrayFrom(buffer);for(_char3=0;_char3<buffer.length;_char3++){var codePoint=
830
+ buffer[_char3];":"!=codePoint||seenPasswordToken?(codePoint=percentEncode(codePoint,userinfoPercentEncodeSet),seenPasswordToken?url.password+=codePoint:url.username+=codePoint):seenPasswordToken=!0}buffer=""}else if(void 0==_char3||"/"==_char3||"?"==_char3||"#"==_char3||"\\"==_char3&&isSpecial(url)){if(seenAt&&""==buffer)return"Invalid authority";pointer-=arrayFrom(buffer).length+1;buffer="";state=HOST}else buffer+=_char3;break;case HOST:case HOSTNAME:if(stateOverride&&"file"==url.scheme){state=FILE_HOST;
831
+ continue}else if(":"!=_char3||seenBracket)if(void 0==_char3||"/"==_char3||"?"==_char3||"#"==_char3||"\\"==_char3&&isSpecial(url)){if(isSpecial(url)&&""==buffer)return"Invalid host";if(stateOverride&&""==buffer&&(""!=url.username||""!=url.password||null!==url.port))return;if(state=parseHost(url,buffer))return state;buffer="";state=PATH_START;if(stateOverride)return;continue}else"["==_char3?seenBracket=!0:"]"==_char3&&(seenBracket=!1),buffer+=_char3;else{if(""==buffer)return"Invalid host";if(state=
832
+ parseHost(url,buffer))return state;buffer="";state=PORT;if(stateOverride==HOSTNAME)return}break;case PORT:if(DIGIT.test(_char3))buffer+=_char3;else if(void 0==_char3||"/"==_char3||"?"==_char3||"#"==_char3||"\\"==_char3&&isSpecial(url)||stateOverride){if(""!=buffer){state=parseInt(buffer,10);if(65535<state)return"Invalid port";url.port=isSpecial(url)&&state===specialSchemes[url.scheme]?null:state;buffer=""}if(stateOverride)return;state=PATH_START;continue}else return"Invalid port";break;case FILE:url.scheme=
833
+ "file";if("/"==_char3||"\\"==_char3)state=FILE_SLASH;else if(base&&"file"==base.scheme)if(void 0==_char3)url.host=base.host,url.path=base.path.slice(),url.query=base.query;else if("?"==_char3)url.host=base.host,url.path=base.path.slice(),url.query="",state=QUERY;else if("#"==_char3)url.host=base.host,url.path=base.path.slice(),url.query=base.query,url.fragment="",state=FRAGMENT;else{startsWithWindowsDriveLetter(input.slice(pointer).join(""))||(url.host=base.host,url.path=base.path.slice(),shortenURLsPath(url));
834
+ state=PATH;continue}else{state=PATH;continue}break;case FILE_SLASH:if("/"==_char3||"\\"==_char3){state=FILE_HOST;break}base&&"file"==base.scheme&&!startsWithWindowsDriveLetter(input.slice(pointer).join(""))&&(isWindowsDriveLetter(base.path[0],!0)?url.path.push(base.path[0]):url.host=base.host);state=PATH;continue;case FILE_HOST:if(void 0==_char3||"/"==_char3||"\\"==_char3||"?"==_char3||"#"==_char3){if(!stateOverride&&isWindowsDriveLetter(buffer))state=PATH;else{if(""==buffer){if(url.host="",stateOverride)return}else{if(state=
835
+ parseHost(url,buffer))return state;"localhost"==url.host&&(url.host="");if(stateOverride)return;buffer=""}state=PATH_START}continue}else buffer+=_char3;break;case PATH_START:if(isSpecial(url)){if(state=PATH,"/"!=_char3&&"\\"!=_char3)continue}else if(!stateOverride&&"?"==_char3)url.query="",state=QUERY;else if(!stateOverride&&"#"==_char3)url.fragment="",state=FRAGMENT;else if(void 0!=_char3&&(state=PATH,"/"!=_char3))continue;break;case PATH:if(void 0==_char3||"/"==_char3||"\\"==_char3&&isSpecial(url)||
836
+ !stateOverride&&("?"==_char3||"#"==_char3)){codePoint=buffer;codePoint=codePoint.toLowerCase();".."===codePoint||"%2e."===codePoint||".%2e"===codePoint||"%2e%2e"===codePoint?(shortenURLsPath(url),"/"==_char3||"\\"==_char3&&isSpecial(url)||url.path.push("")):"."===buffer||"%2e"===buffer.toLowerCase()?"/"==_char3||"\\"==_char3&&isSpecial(url)||url.path.push(""):("file"==url.scheme&&!url.path.length&&isWindowsDriveLetter(buffer)&&(url.host&&(url.host=""),buffer=buffer.charAt(0)+":"),url.path.push(buffer));
837
+ buffer="";if("file"==url.scheme&&(void 0==_char3||"?"==_char3||"#"==_char3))for(;1<url.path.length&&""===url.path[0];)url.path.shift();"?"==_char3?(url.query="",state=QUERY):"#"==_char3&&(url.fragment="",state=FRAGMENT)}else buffer+=percentEncode(_char3,pathPercentEncodeSet);break;case CANNOT_BE_A_BASE_URL_PATH:"?"==_char3?(url.query="",state=QUERY):"#"==_char3?(url.fragment="",state=FRAGMENT):void 0!=_char3&&(url.path[0]+=percentEncode(_char3,C0ControlPercentEncodeSet));break;case QUERY:stateOverride||
838
+ "#"!=_char3?void 0!=_char3&&("'"==_char3&&isSpecial(url)?url.query+="%27":url.query="#"==_char3?url.query+"%23":url.query+percentEncode(_char3,C0ControlPercentEncodeSet)):(url.fragment="",state=FRAGMENT);break;case FRAGMENT:void 0!=_char3&&(url.fragment+=percentEncode(_char3,fragmentPercentEncodeSet))}pointer++}},URLConstructor=function(url){var that=anInstance(this,URLConstructor,"URL"),base=1<arguments.length?arguments[1]:void 0,urlString=String(url),state=setInternalState(that,{type:"URL"}),failure;
839
+ if(void 0!==base)if(base instanceof URLConstructor)var baseState=getInternalURLState(base);else if(failure=parseURL(baseState={},String(base)))throw TypeError(failure);if(failure=parseURL(state,urlString,null,baseState))throw TypeError(failure);var searchParams=state.searchParams=new URLSearchParams;base=getInternalSearchParamsState(searchParams);base.updateSearchParams(state.query);base.updateURL=function(){state.query=String(searchParams)||null};DESCRIPTORS||(that.href=serializeURL.call(that),that.origin=
840
+ getOrigin.call(that),that.protocol=getProtocol.call(that),that.username=getUsername.call(that),that.password=getPassword.call(that),that.host=getHost.call(that),that.hostname=getHostname.call(that),that.port=getPort.call(that),that.pathname=getPathname.call(that),that.search=getSearch.call(that),that.searchParams=getSearchParams.call(that),that.hash=getHash.call(that))};__w_pdfjs_require__=URLConstructor.prototype;var serializeURL=function(){var url=getInternalURLState(this),scheme=url.scheme,username=
841
+ url.username,password=url.password,host=url.host,port=url.port,path=url.path,query=url.query,fragment=url.fragment,output=scheme+":";if(null!==host){output+="//";if(""!=url.username||""!=url.password)output+=username+(password?":"+password:"")+"@";output+=serializeHost(host);null!==port&&(output+=":"+port)}else"file"==scheme&&(output+="//");output+=url.cannotBeABaseURL?path[0]:path.length?"/"+path.join("/"):"";null!==query&&(output+="?"+query);null!==fragment&&(output+="#"+fragment);return output},
842
+ getOrigin=function(){var url=getInternalURLState(this),scheme=url.scheme,port=url.port;if("blob"==scheme)try{return(new URL(scheme.path[0])).origin}catch(error){return"null"}return"file"!=scheme&&isSpecial(url)?scheme+"://"+serializeHost(url.host)+(null!==port?":"+port:""):"null"},getProtocol=function(){return getInternalURLState(this).scheme+":"},getUsername=function(){return getInternalURLState(this).username},getPassword=function(){return getInternalURLState(this).password},getHost=function(){var url=
843
+ getInternalURLState(this),host=url.host;url=url.port;return null===host?"":null===url?serializeHost(host):serializeHost(host)+":"+url},getHostname=function(){var host=getInternalURLState(this).host;return null===host?"":serializeHost(host)},getPort=function(){var port=getInternalURLState(this).port;return null===port?"":String(port)},getPathname=function(){var url=getInternalURLState(this),path=url.path;return url.cannotBeABaseURL?path[0]:path.length?"/"+path.join("/"):""},getSearch=function(){var query=
844
+ getInternalURLState(this).query;return query?"?"+query:""},getSearchParams=function(){return getInternalURLState(this).searchParams},getHash=function(){var fragment=getInternalURLState(this).fragment;return fragment?"#"+fragment:""};global=function(getter,setter){return{get:getter,set:setter,configurable:!0,enumerable:!0}};DESCRIPTORS&&defineProperties(__w_pdfjs_require__,{href:global(serializeURL,function(href){var url=getInternalURLState(this);if(href=parseURL(url,String(href)))throw TypeError(href);
845
+ getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query)}),origin:global(getOrigin),protocol:global(getProtocol,function(protocol){var url=getInternalURLState(this);parseURL(url,String(protocol)+":",SCHEME_START)}),username:global(getUsername,function(username){var url=getInternalURLState(this);username=arrayFrom(String(username));if(!cannotHaveUsernamePasswordPort(url)){url.username="";for(var i=0;i<username.length;i++)url.username+=percentEncode(username[i],userinfoPercentEncodeSet)}}),
846
+ password:global(getPassword,function(password){var url=getInternalURLState(this);password=arrayFrom(String(password));if(!cannotHaveUsernamePasswordPort(url)){url.password="";for(var i=0;i<password.length;i++)url.password+=percentEncode(password[i],userinfoPercentEncodeSet)}}),host:global(getHost,function(host){var url=getInternalURLState(this);url.cannotBeABaseURL||parseURL(url,String(host),HOST)}),hostname:global(getHostname,function(hostname){var url=getInternalURLState(this);url.cannotBeABaseURL||
847
+ parseURL(url,String(hostname),HOSTNAME)}),port:global(getPort,function(port){var url=getInternalURLState(this);cannotHaveUsernamePasswordPort(url)||(port=String(port),""==port?url.port=null:parseURL(url,port,PORT))}),pathname:global(getPathname,function(pathname){var url=getInternalURLState(this);url.cannotBeABaseURL||(url.path=[],parseURL(url,pathname+"",PATH_START))}),search:global(getSearch,function(search){var url=getInternalURLState(this);search=String(search);""==search?url.query=null:("?"==
848
+ search.charAt(0)&&(search=search.slice(1)),url.query="",parseURL(url,search,QUERY));getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query)}),searchParams:global(getSearchParams),hash:global(getHash,function(hash){var url=getInternalURLState(this);hash=String(hash);""==hash?url.fragment=null:("#"==hash.charAt(0)&&(hash=hash.slice(1)),url.fragment="",parseURL(url,hash,FRAGMENT))})});redefine(__w_pdfjs_require__,"toJSON",function(){return serializeURL.call(this)},{enumerable:!0});
849
+ redefine(__w_pdfjs_require__,"toString",function(){return serializeURL.call(this)},{enumerable:!0});if(NativeURL){var nativeCreateObjectURL=NativeURL.createObjectURL,nativeRevokeObjectURL=NativeURL.revokeObjectURL;nativeCreateObjectURL&&redefine(URLConstructor,"createObjectURL",function(blob){return nativeCreateObjectURL.apply(NativeURL,arguments)});nativeRevokeObjectURL&&redefine(URLConstructor,"revokeObjectURL",function(url){return nativeRevokeObjectURL.apply(NativeURL,arguments)})}setToStringTag(URLConstructor,
850
+ "URL");module({global:!0,forced:!exports,sham:!DESCRIPTORS},{URL:URLConstructor})},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(9);var wellKnownSymbol=__w_pdfjs_require__(53),IS_PURE=__w_pdfjs_require__(32),ITERATOR=wellKnownSymbol("iterator");module.exports=!exports(function(){var url=new URL("b?a=1&b=2&c=3","http://a"),searchParams=url.searchParams,result="";url.pathname="c%20d";searchParams.forEach(function(value,key){searchParams["delete"]("b");result+=key+value});
851
+ return IS_PURE&&!url.toJSON||!searchParams.sort||"http://a/c%20d?a=1&c=3"!==url.href||"3"!==searchParams.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!searchParams[ITERATOR]||"a"!==(new URL("https://a@b")).username||"b"!==(new URLSearchParams(new URLSearchParams("a=b"))).get("a")||"xn--e1aybc"!==(new URL("http://\u0442\u0435\u0441\u0442")).host||"#%D0%B1"!==(new URL("http://a#\u0431")).hash||"a1c3"!==result||"x"!==(new URL("http://x",void 0)).host})},function(module,exports,__w_pdfjs_require__){var regexNonASCII=
852
+ /[^\0-\u007E]/,regexSeparators=/[.\u3002\uFF0E\uFF61]/g,floor=Math.floor,stringFromCharCode=String.fromCharCode;module.exports=function(input$jscomp$0){var encoded=[];input$jscomp$0=input$jscomp$0.toLowerCase().replace(regexSeparators,".").split(".");var i;for(i=0;i<input$jscomp$0.length;i++){var label=input$jscomp$0[i];var JSCompiler_temp_const=encoded,JSCompiler_temp_const$jscomp$0=JSCompiler_temp_const.push;if(regexNonASCII.test(label)){var input=label;label=[];var i$jscomp$0=input;input=[];for(var counter=
853
+ 0,length=i$jscomp$0.length;counter<length;){var value=i$jscomp$0.charCodeAt(counter++);if(55296<=value&&56319>=value&&counter<length){var extra=i$jscomp$0.charCodeAt(counter++);56320==(extra&64512)?input.push(((value&1023)<<10)+(extra&1023)+65536):(input.push(value),counter--)}else input.push(value)}counter=input.length;length=128;var delta=0,bias=72;for(i$jscomp$0=0;i$jscomp$0<input.length;i$jscomp$0++){var currentValue=input[i$jscomp$0];128>currentValue&&label.push(stringFromCharCode(currentValue))}for((extra=
854
+ value=label.length)&&label.push("-");extra<counter;){var m=2147483647;for(i$jscomp$0=0;i$jscomp$0<input.length;i$jscomp$0++)currentValue=input[i$jscomp$0],currentValue>=length&&currentValue<m&&(m=currentValue);var handledCPCountPlusOne=extra+1;if(m-length>floor((2147483647-delta)/handledCPCountPlusOne))throw RangeError("Overflow: input needs wider integers to process");delta+=(m-length)*handledCPCountPlusOne;length=m;for(i$jscomp$0=0;i$jscomp$0<input.length;i$jscomp$0++){currentValue=input[i$jscomp$0];
855
+ if(currentValue<length&&2147483647<++delta)throw RangeError("Overflow: input needs wider integers to process");if(currentValue==length){var q=delta;for(currentValue=36;;currentValue+=36){m=currentValue<=bias?1:currentValue>=bias+26?26:currentValue-bias;if(q<m)break;q-=m;var baseMinusT=36-m,JSCompiler_temp_const$jscomp$1=label;m+=q%baseMinusT;JSCompiler_temp_const$jscomp$1.push.call(JSCompiler_temp_const$jscomp$1,stringFromCharCode(m+22+75*(26>m)));q=floor(q/baseMinusT)}label.push(stringFromCharCode(q+
856
+ 22+75*(26>q)));bias=handledCPCountPlusOne;currentValue=0;delta=extra==value?floor(delta/700):delta>>1;for(delta+=floor(delta/bias);455<delta;currentValue+=36)delta=floor(delta/35);bias=floor(currentValue+36*delta/(delta+38));delta=0;++extra}}++delta;++length}label="xn--"+label.join("")}JSCompiler_temp_const$jscomp$0.call(JSCompiler_temp_const,label)}return encoded.join(".")}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(108);exports=__w_pdfjs_require__(5);var getBuiltIn=__w_pdfjs_require__(37),
857
+ USE_NATIVE_URL=__w_pdfjs_require__(129),redefine=__w_pdfjs_require__(24),redefineAll=__w_pdfjs_require__(111),setToStringTag=__w_pdfjs_require__(80),createIteratorConstructor=__w_pdfjs_require__(75),InternalStateModule=__w_pdfjs_require__(28),anInstance=__w_pdfjs_require__(113),hasOwn=__w_pdfjs_require__(18),bind=__w_pdfjs_require__(58),classof=__w_pdfjs_require__(90),anObject=__w_pdfjs_require__(23),isObject=__w_pdfjs_require__(17),create=__w_pdfjs_require__(67),createPropertyDescriptor=__w_pdfjs_require__(11),
858
+ getIterator=__w_pdfjs_require__(132),getIteratorMethod=__w_pdfjs_require__(89);__w_pdfjs_require__=__w_pdfjs_require__(53);var $fetch=getBuiltIn("fetch"),Headers=getBuiltIn("Headers");__w_pdfjs_require__=__w_pdfjs_require__("iterator");var setInternalState=InternalStateModule.set,getInternalParamsState=InternalStateModule.getterFor("URLSearchParams"),getInternalIteratorState=InternalStateModule.getterFor("URLSearchParamsIterator"),plus=/\+/g,sequences=Array(4),percentDecode=function(sequence){try{return decodeURIComponent(sequence)}catch(error){return sequence}},
859
+ deserialize=function(it){var result=it.replace(plus," ");it=4;try{return decodeURIComponent(result)}catch(error){for(;it;){var JSCompiler_temp_const=result.replace;var JSCompiler_inline_result=it--;JSCompiler_inline_result=sequences[JSCompiler_inline_result-1]||(sequences[JSCompiler_inline_result-1]=RegExp("((?:%[\\da-f]{2}){"+JSCompiler_inline_result+"})","gi"));result=JSCompiler_temp_const.call(result,JSCompiler_inline_result,percentDecode)}return result}},find=/[!'()~]|%20/g,replace={"!":"%21",
860
+ "'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(match){return replace[match]},parseSearchParams=function(result,query){if(query){query=query.split("&");for(var index=0,attribute;index<query.length;)attribute=query[index++],attribute.length&&(attribute=attribute.split("="),result.push({key:deserialize(attribute.shift()),value:deserialize(attribute.join("="))}))}},updateSearchParams=function(query){this.entries.length=0;parseSearchParams(this.entries,query)},validateArgumentsLength=
861
+ function(passed,required){if(passed<required)throw TypeError("Not enough arguments");},URLSearchParamsIterator=createIteratorConstructor(function(params,kind){setInternalState(this,{type:"URLSearchParamsIterator",iterator:getIterator(getInternalParamsState(params).entries),kind:kind})},"Iterator",function(){var state=getInternalIteratorState(this),kind=state.kind;state=state.iterator.next();var entry=state.value;state.done||(state.value="keys"===kind?entry.key:"values"===kind?entry.value:[entry.key,
862
+ entry.value]);return state}),URLSearchParamsConstructor=function(){anInstance(this,URLSearchParamsConstructor,"URLSearchParams");var init=0<arguments.length?arguments[0]:void 0,entries=[],step,first,second;setInternalState(this,{type:"URLSearchParams",entries:entries,updateURL:function(){},updateSearchParams:updateSearchParams});if(void 0!==init)if(isObject(init)){var iteratorMethod=getIteratorMethod(init);if("function"===typeof iteratorMethod)for(init=iteratorMethod.call(init),iteratorMethod=init.next;!(step=
863
+ iteratorMethod.call(init)).done;){step=getIterator(anObject(step.value));var entryNext=step.next;if((first=entryNext.call(step)).done||(second=entryNext.call(step)).done||!entryNext.call(step).done)throw TypeError("Expected sequence with length 2");entries.push({key:first.value+"",value:second.value+""})}else for(step in init)hasOwn(init,step)&&entries.push({key:step,value:init[step]+""})}else parseSearchParams(entries,"string"===typeof init?"?"===init.charAt(0)?init.slice(1):init:init+"")};createIteratorConstructor=
864
+ URLSearchParamsConstructor.prototype;redefineAll(createIteratorConstructor,{append:function(name,value){validateArgumentsLength(arguments.length,2);var state=getInternalParamsState(this);state.entries.push({key:name+"",value:value+""});state.updateURL()},"delete":function(name){validateArgumentsLength(arguments.length,1);for(var state=getInternalParamsState(this),entries=state.entries,key=name+"",index=0;index<entries.length;)entries[index].key===key?entries.splice(index,1):index++;state.updateURL()},
865
+ get:function(name){validateArgumentsLength(arguments.length,1);for(var entries=getInternalParamsState(this).entries,key=name+"",index=0;index<entries.length;index++)if(entries[index].key===key)return entries[index].value;return null},getAll:function(name){validateArgumentsLength(arguments.length,1);for(var entries=getInternalParamsState(this).entries,key=name+"",result=[],index=0;index<entries.length;index++)entries[index].key===key&&result.push(entries[index].value);return result},has:function(name){validateArgumentsLength(arguments.length,
866
+ 1);for(var entries=getInternalParamsState(this).entries,key=name+"",index=0;index<entries.length;)if(entries[index++].key===key)return!0;return!1},set:function(name,value){validateArgumentsLength(arguments.length,1);for(var state=getInternalParamsState(this),entries=state.entries,found=!1,key=name+"",val=value+"",index=0,entry;index<entries.length;index++)entry=entries[index],entry.key===key&&(found?entries.splice(index--,1):(found=!0,entry.value=val));found||entries.push({key:key,value:val});state.updateURL()},
867
+ sort:function(){var state=getInternalParamsState(this),entries=state.entries,slice=entries.slice(),entriesIndex,sliceIndex;for(sliceIndex=entries.length=0;sliceIndex<slice.length;sliceIndex++){var entry=slice[sliceIndex];for(entriesIndex=0;entriesIndex<sliceIndex;entriesIndex++)if(entries[entriesIndex].key>entry.key){entries.splice(entriesIndex,0,entry);break}entriesIndex===sliceIndex&&entries.push(entry)}state.updateURL()},forEach:function(callback){for(var entries=getInternalParamsState(this).entries,
868
+ boundFunction=bind(callback,1<arguments.length?arguments[1]:void 0,3),index=0,entry;index<entries.length;)entry=entries[index++],boundFunction(entry.value,entry.key,this)},keys:function(){return new URLSearchParamsIterator(this,"keys")},values:function(){return new URLSearchParamsIterator(this,"values")},entries:function(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0});redefine(createIteratorConstructor,__w_pdfjs_require__,createIteratorConstructor.entries);redefine(createIteratorConstructor,
869
+ "toString",function(){for(var entries=getInternalParamsState(this).entries,result=[],index=0,entry;index<entries.length;)entry=entries[index++],result.push(encodeURIComponent(entry.key).replace(find,replacer)+"="+encodeURIComponent(entry.value).replace(find,replacer));return result.join("&")},{enumerable:!0});setToStringTag(URLSearchParamsConstructor,"URLSearchParams");exports({global:!0,forced:!USE_NATIVE_URL},{URLSearchParams:URLSearchParamsConstructor});USE_NATIVE_URL||"function"!=typeof $fetch||
870
+ "function"!=typeof Headers||exports({global:!0,enumerable:!0,forced:!0},{fetch:function(input){var args=[input];if(1<arguments.length){var init=arguments[1];if(isObject(init)){var body=init.body;if("URLSearchParams"===classof(body)){var headers=init.headers?new Headers(init.headers):new Headers;headers.has("content-type")||headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8");init=create(init,{body:createPropertyDescriptor(0,String(body)),headers:createPropertyDescriptor(0,
871
+ headers)})}}args.push(init)}return $fetch.apply(this,args)}});module.exports={URLSearchParams:URLSearchParamsConstructor,getState:getInternalParamsState}},function(module,exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23),getIteratorMethod=__w_pdfjs_require__(89);module.exports=function(it){var iteratorMethod=getIteratorMethod(it);if("function"!=typeof iteratorMethod)throw TypeError(String(it)+" is not iterable");return anObject(iteratorMethod.call(it))}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(5)({target:"URL",
872
+ proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(__webpack_module__,__webpack_exports__,__w_pdfjs_require__){function noop(){}function typeIsObject(x){return"object"===_typeof2(x)&&null!==x||"function"===typeof x}function IsFiniteNonNegativeNumber(v){return!1===("number"!==typeof v||NumberIsNaN(v)||0>v?!1:!0)||Infinity===v?!1:!0}function Call(F,V,args){if("function"!==typeof F)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(F,
873
+ V,args)}function CreateAlgorithmFromUnderlyingMethod(underlyingObject,methodName,algoArgCount,extraArgs){var method=underlyingObject[methodName];if(void 0!==method){if("function"!==typeof method)throw new TypeError(method+" is not a method");switch(algoArgCount){case 0:return function(){return PromiseCall(method,underlyingObject,extraArgs)};case 1:return function(arg){arg=[arg].concat(extraArgs);return PromiseCall(method,underlyingObject,arg)}}}return function(){return originalPromiseResolve(void 0)}}
874
+ function InvokeOrNoop(O,P,args){P=O[P];if(void 0!==P)return Call(P,O,args)}function PromiseCall(F,V,args){try{return originalPromiseResolve(Call(F,V,args))}catch(value){return originalPromiseReject(value)}}function ValidateAndNormalizeHighWaterMark(highWaterMark){highWaterMark=Number(highWaterMark);if(NumberIsNaN(highWaterMark)||0>highWaterMark)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return highWaterMark}function MakeSizeAlgorithmFromSizeFunction(size){if(void 0===
875
+ size)return function(){return 1};if("function"!==typeof size)throw new TypeError("size property of a queuing strategy must be a function");return function(chunk){return size(chunk)}}function newPromise(executor){return new originalPromise(executor)}function PerformPromiseThen(promise,onFulfilled,onRejected){return originalPromiseThen.call(promise,onFulfilled,onRejected)}function uponPromise(promise,onFulfilled,onRejected){PerformPromiseThen(PerformPromiseThen(promise,onFulfilled,onRejected),void 0,
876
+ rethrowAssertionErrorRejection)}function uponFulfillment(promise,onFulfilled){uponPromise(promise,onFulfilled)}function uponRejection(promise,onRejected){uponPromise(promise,void 0,onRejected)}function transformPromiseWith(promise,fulfillmentHandler,rejectionHandler){return PerformPromiseThen(promise,fulfillmentHandler,rejectionHandler)}function setPromiseIsHandledToTrue(promise){PerformPromiseThen(promise,void 0,rethrowAssertionErrorRejection)}function ReadableStreamCreateReadResult(value,done,forAuthorCode){var prototype=
877
+ null;!0===forAuthorCode&&(prototype=Object.prototype);forAuthorCode=Object.create(prototype);forAuthorCode.value=value;forAuthorCode.done=done;return forAuthorCode}function ReadableStreamReaderGenericInitialize(reader,stream){reader._forAuthorCode=!0;reader._ownerReadableStream=stream;stream._reader=reader;"readable"===stream._state?defaultReaderClosedPromiseInitialize(reader):"closed"===stream._state?(defaultReaderClosedPromiseInitialize(reader),defaultReaderClosedPromiseResolve(reader)):(stream=
878
+ stream._storedError,defaultReaderClosedPromiseInitialize(reader),defaultReaderClosedPromiseReject(reader,stream))}function ReadableStreamReaderGenericRelease(reader){if("readable"===reader._ownerReadableStream._state)defaultReaderClosedPromiseReject(reader,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness"));else{var reason=new TypeError("Reader was released and can no longer be used to monitor the stream's closedness");defaultReaderClosedPromiseInitialize(reader);
879
+ defaultReaderClosedPromiseReject(reader,reason)}reader._ownerReadableStream._reader=void 0;reader._ownerReadableStream=void 0}function readerLockException(name){return new TypeError("Cannot "+name+" a stream using a released reader")}function defaultReaderClosedPromiseInitialize(reader){reader._closedPromise=newPromise(function(resolve,reject){reader._closedPromise_resolve=resolve;reader._closedPromise_reject=reject})}function defaultReaderClosedPromiseReject(reader,reason){setPromiseIsHandledToTrue(reader._closedPromise);
880
+ reader._closedPromise_reject(reason);reader._closedPromise_resolve=void 0;reader._closedPromise_reject=void 0}function defaultReaderClosedPromiseResolve(reader){reader._closedPromise_resolve(void 0);reader._closedPromise_resolve=void 0;reader._closedPromise_reject=void 0}function AcquireReadableStreamDefaultReader(stream,forAuthorCode){void 0===forAuthorCode&&(forAuthorCode=!1);stream=new ReadableStreamDefaultReader$jscomp$0(stream);stream._forAuthorCode=forAuthorCode;return stream}function ReadableStreamAddReadRequest(stream){return newPromise(function(resolve,
881
+ reject){stream._reader._readRequests.push({_resolve:resolve,_reject:reject})})}function ReadableStreamFulfillReadRequest(stream,chunk,done){stream=stream._reader;stream._readRequests.shift()._resolve(ReadableStreamCreateReadResult(chunk,done,stream._forAuthorCode))}function ReadableStreamHasDefaultReader(stream){stream=stream._reader;return void 0!==stream&&IsReadableStreamDefaultReader(stream)?!0:!1}function IsReadableStreamDefaultReader(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,
882
+ "_readRequests")?!0:!1}function ReadableStreamDefaultReaderRead(reader){var stream=reader._ownerReadableStream;stream._disturbed=!0;return"closed"===stream._state?originalPromiseResolve(ReadableStreamCreateReadResult(void 0,!0,reader._forAuthorCode)):"errored"===stream._state?originalPromiseReject(stream._storedError):stream._readableStreamController[PullSteps]()}function defaultReaderBrandCheckException(name){return new TypeError("ReadableStreamDefaultReader.prototype."+name+" can only be used on a ReadableStreamDefaultReader")}
883
+ function IsReadableStreamAsyncIterator(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,"_asyncIteratorReader")?!0:!1}function streamAsyncIteratorBrandCheckException(name){return new TypeError("ReadableStreamAsyncIterator."+name+" can only be used on a ReadableSteamAsyncIterator")}function DequeueValue(container){var pair=container._queue.shift();container._queueTotalSize-=pair.size;0>container._queueTotalSize&&(container._queueTotalSize=0);return pair.value}function EnqueueValueWithSize(container,
884
+ value,size){size=Number(size);if(!IsFiniteNonNegativeNumber(size))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");container._queue.push({value:value,size:size});container._queueTotalSize+=size}function ResetQueue(container){container._queue=new SimpleQueue;container._queueTotalSize=0}function CreateWritableStream(startAlgorithm,writeAlgorithm,closeAlgorithm,abortAlgorithm,highWaterMark,sizeAlgorithm){void 0===highWaterMark&&(highWaterMark=1);void 0===sizeAlgorithm&&(sizeAlgorithm=
885
+ function(){return 1});var stream=Object.create(WritableStream$jscomp$0.prototype);InitializeWritableStream(stream);var controller=Object.create(WritableStreamDefaultController$jscomp$0.prototype);SetUpWritableStreamDefaultController(stream,controller,startAlgorithm,writeAlgorithm,closeAlgorithm,abortAlgorithm,highWaterMark,sizeAlgorithm);return stream}function InitializeWritableStream(stream){stream._state="writable";stream._storedError=void 0;stream._writer=void 0;stream._writableStreamController=
886
+ void 0;stream._writeRequests=new SimpleQueue;stream._inFlightWriteRequest=void 0;stream._closeRequest=void 0;stream._inFlightCloseRequest=void 0;stream._pendingAbortRequest=void 0;stream._backpressure=!1}function IsWritableStream(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,"_writableStreamController")?!0:!1}function IsWritableStreamLocked(stream){return void 0===stream._writer?!1:!0}function WritableStreamAbort(stream,reason){var state=stream._state;if("closed"===state||"errored"===
887
+ state)return originalPromiseResolve(void 0);if(void 0!==stream._pendingAbortRequest)return stream._pendingAbortRequest._promise;var wasAlreadyErroring=!1;"erroring"===state&&(wasAlreadyErroring=!0,reason=void 0);state=newPromise(function(resolve,reject){stream._pendingAbortRequest={_promise:void 0,_resolve:resolve,_reject:reject,_reason:reason,_wasAlreadyErroring:wasAlreadyErroring}});stream._pendingAbortRequest._promise=state;!1===wasAlreadyErroring&&WritableStreamStartErroring(stream,reason);return state}
888
+ function WritableStreamAddWriteRequest(stream){return newPromise(function(resolve,reject){stream._writeRequests.push({_resolve:resolve,_reject:reject})})}function WritableStreamDealWithRejection(stream,error){"writable"===stream._state?WritableStreamStartErroring(stream,error):WritableStreamFinishErroring(stream)}function WritableStreamStartErroring(stream,reason){var controller=stream._writableStreamController;stream._state="erroring";stream._storedError=reason;var writer=stream._writer;void 0!==
889
+ writer&&("pending"!==writer._readyPromiseState&&defaultWriterReadyPromiseInitialize(writer),defaultWriterReadyPromiseReject(writer,reason));reason=void 0===stream._inFlightWriteRequest&&void 0===stream._inFlightCloseRequest?!1:!0;!1===reason&&!0===controller._started&&WritableStreamFinishErroring(stream)}function WritableStreamFinishErroring(stream){stream._state="errored";stream._writableStreamController[ErrorSteps]();var storedError=stream._storedError;stream._writeRequests.forEach(function(writeRequest){writeRequest._reject(storedError)});
890
+ stream._writeRequests=new SimpleQueue;if(void 0===stream._pendingAbortRequest)WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream);else{var abortRequest=stream._pendingAbortRequest;stream._pendingAbortRequest=void 0;if(!0===abortRequest._wasAlreadyErroring)abortRequest._reject(storedError),WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream);else{var promise=stream._writableStreamController[AbortSteps](abortRequest._reason);uponPromise(promise,function(){abortRequest._resolve();WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream)},
891
+ function(reason){abortRequest._reject(reason);WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream)})}}}function WritableStreamCloseQueuedOrInFlight(stream){return void 0===stream._closeRequest&&void 0===stream._inFlightCloseRequest?!1:!0}function WritableStreamMarkCloseRequestInFlight(stream){stream._inFlightCloseRequest=stream._closeRequest;stream._closeRequest=void 0}function WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream){void 0!==stream._closeRequest&&(stream._closeRequest._reject(stream._storedError),
892
+ stream._closeRequest=void 0);var writer=stream._writer;void 0!==writer&&defaultWriterClosedPromiseReject(writer,stream._storedError)}function WritableStreamUpdateBackpressure(stream,backpressure){var writer=stream._writer;void 0!==writer&&backpressure!==stream._backpressure&&(!0===backpressure?defaultWriterReadyPromiseInitialize(writer):defaultWriterReadyPromiseResolve(writer));stream._backpressure=backpressure}function IsWritableStreamDefaultWriter(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,
893
+ "_ownerWritableStream")?!0:!1}function WritableStreamDefaultWriterClose(writer){var stream=writer._ownerWritableStream,state=stream._state;if("closed"===state||"errored"===state)return originalPromiseReject(new TypeError("The stream (in "+state+" state) is not in the writable state and cannot be closed"));var promise=newPromise(function(resolve,reject){stream._closeRequest={_resolve:resolve,_reject:reject}});!0===stream._backpressure&&"writable"===state&&defaultWriterReadyPromiseResolve(writer);WritableStreamDefaultControllerClose(stream._writableStreamController);
894
+ return promise}function WritableStreamDefaultWriterRelease(writer){var stream=writer._ownerWritableStream,releasedError=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");"pending"!==writer._readyPromiseState&&defaultWriterReadyPromiseInitialize(writer);defaultWriterReadyPromiseReject(writer,releasedError);"pending"!==writer._closedPromiseState&&defaultWriterClosedPromiseInitialize(writer);defaultWriterClosedPromiseReject(writer,releasedError);stream._writer=
895
+ void 0;writer._ownerWritableStream=void 0}function WritableStreamDefaultWriterWrite(writer,chunk){var stream=writer._ownerWritableStream,controller=stream._writableStreamController;try{var chunkSize=controller._strategySizeAlgorithm(chunk)}catch(chunkSizeE){WritableStreamDefaultControllerErrorIfNeeded(controller,chunkSizeE),chunkSize=1}if(stream!==writer._ownerWritableStream)return originalPromiseReject(defaultWriterLockException("write to"));writer=stream._state;if("errored"===writer)return originalPromiseReject(stream._storedError);
896
+ if(!0===WritableStreamCloseQueuedOrInFlight(stream)||"closed"===writer)return originalPromiseReject(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===writer)return originalPromiseReject(stream._storedError);stream=WritableStreamAddWriteRequest(stream);a:{chunk={chunk:chunk};try{EnqueueValueWithSize(controller,chunk,chunkSize)}catch(enqueueE){WritableStreamDefaultControllerErrorIfNeeded(controller,enqueueE);break a}chunkSize=controller._controlledWritableStream;
897
+ !1===WritableStreamCloseQueuedOrInFlight(chunkSize)&&"writable"===chunkSize._state&&WritableStreamUpdateBackpressure(chunkSize,0>=controller._strategyHWM-controller._queueTotalSize);WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller)}return stream}function SetUpWritableStreamDefaultController(stream,controller,startAlgorithm,writeAlgorithm,closeAlgorithm,abortAlgorithm,highWaterMark,sizeAlgorithm){controller._controlledWritableStream=stream;stream._writableStreamController=controller;
898
+ controller._queue=void 0;controller._queueTotalSize=void 0;ResetQueue(controller);controller._started=!1;controller._strategySizeAlgorithm=sizeAlgorithm;controller._strategyHWM=highWaterMark;controller._writeAlgorithm=writeAlgorithm;controller._closeAlgorithm=closeAlgorithm;controller._abortAlgorithm=abortAlgorithm;WritableStreamUpdateBackpressure(stream,0>=controller._strategyHWM-controller._queueTotalSize);startAlgorithm=startAlgorithm();startAlgorithm=originalPromiseResolve(startAlgorithm);uponPromise(startAlgorithm,
899
+ function(){controller._started=!0;WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller)},function(r){controller._started=!0;WritableStreamDealWithRejection(stream,r)})}function SetUpWritableStreamDefaultControllerFromUnderlyingSink(stream,underlyingSink,highWaterMark,sizeAlgorithm){var controller=Object.create(WritableStreamDefaultController$jscomp$0.prototype),writeAlgorithm=CreateAlgorithmFromUnderlyingMethod(underlyingSink,"write",1,[controller]),closeAlgorithm=CreateAlgorithmFromUnderlyingMethod(underlyingSink,
900
+ "close",0,[]),abortAlgorithm=CreateAlgorithmFromUnderlyingMethod(underlyingSink,"abort",1,[]);SetUpWritableStreamDefaultController(stream,controller,function(){return InvokeOrNoop(underlyingSink,"start",[controller])},writeAlgorithm,closeAlgorithm,abortAlgorithm,highWaterMark,sizeAlgorithm)}function WritableStreamDefaultControllerClearAlgorithms(controller){controller._writeAlgorithm=void 0;controller._closeAlgorithm=void 0;controller._abortAlgorithm=void 0;controller._strategySizeAlgorithm=void 0}
901
+ function WritableStreamDefaultControllerClose(controller){EnqueueValueWithSize(controller,"close",0);WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller)}function WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller){var stream=controller._controlledWritableStream;!1!==controller._started&&void 0===stream._inFlightWriteRequest&&("erroring"===stream._state?WritableStreamFinishErroring(stream):0!==controller._queue.length&&(stream=controller._queue.peek().value,"close"===stream?
902
+ WritableStreamDefaultControllerProcessClose(controller):WritableStreamDefaultControllerProcessWrite(controller,stream.chunk)))}function WritableStreamDefaultControllerErrorIfNeeded(controller,error){if("writable"===controller._controlledWritableStream._state){var stream=controller._controlledWritableStream;WritableStreamDefaultControllerClearAlgorithms(controller);WritableStreamStartErroring(stream,error)}}function WritableStreamDefaultControllerProcessClose(controller){var stream=controller._controlledWritableStream;
903
+ WritableStreamMarkCloseRequestInFlight(stream);DequeueValue(controller);var sinkClosePromise=controller._closeAlgorithm();WritableStreamDefaultControllerClearAlgorithms(controller);uponPromise(sinkClosePromise,function(){stream._inFlightCloseRequest._resolve(void 0);stream._inFlightCloseRequest=void 0;"erroring"===stream._state&&(stream._storedError=void 0,void 0!==stream._pendingAbortRequest&&(stream._pendingAbortRequest._resolve(),stream._pendingAbortRequest=void 0));stream._state="closed";var writer=
904
+ stream._writer;void 0!==writer&&defaultWriterClosedPromiseResolve(writer)},function(reason){stream._inFlightCloseRequest._reject(reason);stream._inFlightCloseRequest=void 0;void 0!==stream._pendingAbortRequest&&(stream._pendingAbortRequest._reject(reason),stream._pendingAbortRequest=void 0);WritableStreamDealWithRejection(stream,reason)})}function WritableStreamDefaultControllerProcessWrite(controller,chunk){var stream=controller._controlledWritableStream;stream._inFlightWriteRequest=stream._writeRequests.shift();
905
+ chunk=controller._writeAlgorithm(chunk);uponPromise(chunk,function(){stream._inFlightWriteRequest._resolve(void 0);stream._inFlightWriteRequest=void 0;var state=stream._state;DequeueValue(controller);!1===WritableStreamCloseQueuedOrInFlight(stream)&&"writable"===state&&WritableStreamUpdateBackpressure(stream,0>=controller._strategyHWM-controller._queueTotalSize);WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller)},function(reason){"writable"===stream._state&&WritableStreamDefaultControllerClearAlgorithms(controller);
906
+ stream._inFlightWriteRequest._reject(reason);stream._inFlightWriteRequest=void 0;WritableStreamDealWithRejection(stream,reason)})}function streamBrandCheckException(name){return new TypeError("WritableStream.prototype."+name+" can only be used on a WritableStream")}function defaultWriterBrandCheckException(name){return new TypeError("WritableStreamDefaultWriter.prototype."+name+" can only be used on a WritableStreamDefaultWriter")}function defaultWriterLockException(name){return new TypeError("Cannot "+
907
+ name+" a stream using a released writer")}function defaultWriterClosedPromiseInitialize(writer){writer._closedPromise=newPromise(function(resolve,reject){writer._closedPromise_resolve=resolve;writer._closedPromise_reject=reject;writer._closedPromiseState="pending"})}function defaultWriterClosedPromiseReject(writer,reason){setPromiseIsHandledToTrue(writer._closedPromise);writer._closedPromise_reject(reason);writer._closedPromise_resolve=void 0;writer._closedPromise_reject=void 0;writer._closedPromiseState=
908
+ "rejected"}function defaultWriterClosedPromiseResolve(writer){writer._closedPromise_resolve(void 0);writer._closedPromise_resolve=void 0;writer._closedPromise_reject=void 0;writer._closedPromiseState="resolved"}function defaultWriterReadyPromiseInitialize(writer){writer._readyPromise=newPromise(function(resolve,reject){writer._readyPromise_resolve=resolve;writer._readyPromise_reject=reject});writer._readyPromiseState="pending"}function defaultWriterReadyPromiseReject(writer,reason){setPromiseIsHandledToTrue(writer._readyPromise);
909
+ writer._readyPromise_reject(reason);writer._readyPromise_resolve=void 0;writer._readyPromise_reject=void 0;writer._readyPromiseState="rejected"}function defaultWriterReadyPromiseResolve(writer){writer._readyPromise_resolve(void 0);writer._readyPromise_resolve=void 0;writer._readyPromise_reject=void 0;writer._readyPromiseState="fulfilled"}function isAbortSignal(value){if("object"!==_typeof2(value)||null===value)return!1;try{return"boolean"===typeof value.aborted}catch(_a$6){return!1}}function createDOMExceptionPolyfill(){var ctor=
910
+ function(message,name){this.message=message||"";this.name=name||"Error";Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};ctor.prototype=Object.create(Error.prototype);Object.defineProperty(ctor.prototype,"constructor",{value:ctor,writable:!0,configurable:!0});return ctor}function ReadableStreamPipeTo(source,dest,preventClose,preventAbort,preventCancel,signal){var reader=AcquireReadableStreamDefaultReader(source),writer=new WritableStreamDefaultWriter$jscomp$0(dest),shuttingDown=
911
+ !1,currentWrite=originalPromiseResolve(void 0);return newPromise(function(resolve,reject){function pipeStep(){return!0===shuttingDown?originalPromiseResolve(!0):PerformPromiseThen(writer._readyPromise,function(){return PerformPromiseThen(ReadableStreamDefaultReaderRead(reader),function(_a){if(!0===_a.done)return!0;currentWrite=PerformPromiseThen(WritableStreamDefaultWriterWrite(writer,_a.value),void 0,noop);return!1})})}function waitForWritesToFinish(){var oldCurrentWrite=currentWrite;return PerformPromiseThen(currentWrite,
912
+ function(){return oldCurrentWrite!==currentWrite?waitForWritesToFinish():void 0})}function isOrBecomesErrored(stream,promise,action){"errored"===stream._state?action(stream._storedError):uponRejection(promise,action)}function shutdownWithAction(action,originalIsError,originalError){function doTheRest(){uponPromise(action(),function(){return finalize(originalIsError,originalError)},function(newError){return finalize(!0,newError)})}!0!==shuttingDown&&(shuttingDown=!0,"writable"===dest._state&&!1===
913
+ WritableStreamCloseQueuedOrInFlight(dest)?uponFulfillment(waitForWritesToFinish(),doTheRest):doTheRest())}function shutdown(isError,error){!0!==shuttingDown&&(shuttingDown=!0,"writable"===dest._state&&!1===WritableStreamCloseQueuedOrInFlight(dest)?uponFulfillment(waitForWritesToFinish(),function(){return finalize(isError,error)}):finalize(isError,error))}function finalize(isError,error){WritableStreamDefaultWriterRelease(writer);ReadableStreamReaderGenericRelease(reader);void 0!==signal&&signal.removeEventListener("abort",
914
+ abortAlgorithm);isError?reject(error):resolve(void 0)}if(void 0!==signal){var abortAlgorithm=function(){var error=new DOMException$1("Aborted","AbortError"),actions=[];!1===preventAbort&&actions.push(function(){return"writable"===dest._state?WritableStreamAbort(dest,error):originalPromiseResolve(void 0)});!1===preventCancel&&actions.push(function(){return"readable"===source._state?ReadableStreamCancel(source,error):originalPromiseResolve(void 0)});shutdownWithAction(function(){return Promise.all(actions.map(function(action){return action()}))},
915
+ !0,error)};if(!0===signal.aborted){abortAlgorithm();return}signal.addEventListener("abort",abortAlgorithm)}isOrBecomesErrored(source,reader._closedPromise,function(storedError){!1===preventAbort?shutdownWithAction(function(){return WritableStreamAbort(dest,storedError)},!0,storedError):shutdown(!0,storedError)});isOrBecomesErrored(dest,writer._closedPromise,function(storedError){!1===preventCancel?shutdownWithAction(function(){return ReadableStreamCancel(source,storedError)},!0,storedError):shutdown(!0,
916
+ storedError)});(function(stream,promise,action){"closed"===stream._state?action():uponPromise(promise,action)})(source,reader._closedPromise,function(){!1===preventClose?shutdownWithAction(function(){var JSCompiler_inline_result=writer._ownerWritableStream;var state=JSCompiler_inline_result._state;JSCompiler_inline_result=!0===WritableStreamCloseQueuedOrInFlight(JSCompiler_inline_result)||"closed"===state?originalPromiseResolve(void 0):"errored"===state?originalPromiseReject(JSCompiler_inline_result._storedError):
892
917
  WritableStreamDefaultWriterClose(writer);return JSCompiler_inline_result}):shutdown()});if(!0===WritableStreamCloseQueuedOrInFlight(dest)||"closed"===dest._state){var destClosed_1=new TypeError("the destination writable stream closed before all data could be piped to it");!1===preventCancel?shutdownWithAction(function(){return ReadableStreamCancel(source,destClosed_1)},!0,destClosed_1):shutdown(!0,destClosed_1)}setPromiseIsHandledToTrue(function(){return newPromise(function(resolveLoop,rejectLoop){function next(done){done?
893
918
  resolveLoop():PerformPromiseThen(pipeStep(),next,rejectLoop)}next(!1)})}())})}function IsReadableStreamDefaultController(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,"_controlledReadableStream")?!0:!1}function ReadableStreamDefaultControllerCallPullIfNeeded(controller){if(!1!==ReadableStreamDefaultControllerShouldCallPull(controller))if(!0===controller._pulling)controller._pullAgain=!0;else{controller._pulling=!0;var pullPromise=controller._pullAlgorithm();uponPromise(pullPromise,
894
919
  function(){controller._pulling=!1;!0===controller._pullAgain&&(controller._pullAgain=!1,ReadableStreamDefaultControllerCallPullIfNeeded(controller))},function(e){ReadableStreamDefaultControllerError(controller,e)})}}function ReadableStreamDefaultControllerShouldCallPull(controller){var stream=controller._controlledReadableStream;return!1===ReadableStreamDefaultControllerCanCloseOrEnqueue(controller)||!1===controller._started?!1:!0===IsReadableStreamLocked(stream)&&0<stream._reader._readRequests.length||
@@ -1060,7 +1085,7 @@ i){var JSCompiler_temp=Array.isArray(arr)?arr:void 0;if(!JSCompiler_temp)if(Symb
1060
1085
  return arr}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,
1061
1086
  "throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,
1062
1087
  protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}function _fetchDocument(worker,source,pdfDataRangeTransport,
1063
- docId){if(worker.destroyed)return Promise.reject(Error("Worker was destroyed"));pdfDataRangeTransport&&(source.length=pdfDataRangeTransport.length,source.initialData=pdfDataRangeTransport.initialData,source.progressiveDone=pdfDataRangeTransport.progressiveDone);return worker.messageHandler.sendWithPromise("GetDocRequest",{docId:docId,apiVersion:"2.4.280",source:{data:source.data,url:source.url,password:source.password,disableAutoFetch:source.disableAutoFetch,rangeChunkSize:source.rangeChunkSize,length:source.length},
1088
+ docId){if(worker.destroyed)return Promise.reject(Error("Worker was destroyed"));pdfDataRangeTransport&&(source.length=pdfDataRangeTransport.length,source.initialData=pdfDataRangeTransport.initialData,source.progressiveDone=pdfDataRangeTransport.progressiveDone);return worker.messageHandler.sendWithPromise("GetDocRequest",{docId:docId,apiVersion:"2.4.283",source:{data:source.data,url:source.url,password:source.password,disableAutoFetch:source.disableAutoFetch,rangeChunkSize:source.rangeChunkSize,length:source.length},
1064
1089
  maxImageSize:source.maxImageSize,disableFontFace:source.disableFontFace,disableCreateObjectURL:source.disableCreateObjectURL,postMessageTransfers:worker.postMessageTransfers,docBaseUrl:source.docBaseUrl,nativeImageDecoderSupport:source.nativeImageDecoderSupport,ignoreErrors:source.ignoreErrors,isEvalSupported:source.isEvalSupported,disableFlattenedAnnotations:source.disableFlattenedAnnotations,renderFormFields:source.renderFormFields}).then(function(workerId){if(worker.destroyed)throw Error("Worker was destroyed");
1065
1090
  return workerId})}Object.defineProperty(exports,"__esModule",{value:!0});exports.getDocument=function(src){var task=new PDFDocumentLoadingTask;if("string"===typeof src)src={url:src};else if((0,_util.isArrayBuffer)(src))src={data:src};else if(src instanceof PDFDataRangeTransport)src={range:src};else{if("object"!==_typeof(src))throw Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!src.url&&!src.data&&!src.range)throw Error("Invalid parameter object: need either .data, .range or .url");
1066
1091
  }var params=Object.create(null),rangeTransport=null,worker=null;for(key in src)if("url"===key&&"undefined"!==typeof window)params[key]=(new URL(src[key],window.location)).href;else if("range"===key)rangeTransport=src[key];else if("worker"===key)worker=src[key];else if("data"!==key||src[key]instanceof Uint8Array)params[key]=src[key];else{var pdfBytes=src[key];if("string"===typeof pdfBytes)params[key]=(0,_util.stringToBytes)(pdfBytes);else if("object"!==_typeof(pdfBytes)||null===pdfBytes||isNaN(pdfBytes.length))if((0,_util.isArrayBuffer)(pdfBytes))params[key]=
@@ -1156,7 +1181,7 @@ this.webGLContext,_this$params.imageLayer);this.gfx.beginDrawing({transform:tran
1156
1181
  new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this.pageNumber),"canvas"))}},{key:"operatorListChanged",value:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0;if(!this.cancelled)if(this.task.onContinue)this.task.onContinue(this._scheduleNextBound);else this._scheduleNext()}},
1157
1182
  {key:"_scheduleNext",value:function(){var _this18=this;if(this._useRequestAnimationFrame)window.requestAnimationFrame(function(){_this18._nextBound()["catch"](_this18.cancel.bind(_this18))});else Promise.resolve().then(this._nextBound)["catch"](this.cancel.bind(this))}},{key:"_next",value:function(){var _next2=_asyncToGenerator(_regenerator["default"].mark(function _callee2(){return _regenerator["default"].wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:if(!this.cancelled){_context2.next=
1158
1183
  2;break}return _context2.abrupt("return");case 2:if(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk)){this.gfx.endDrawing();if(this._canvas)canvasInRendering["delete"](this._canvas);this.callback()}case 4:case "end":return _context2.stop()}},_callee2,this)}));return function(){return _next2.apply(this,arguments)}}()}]);return InternalRenderTask}()}();
1159
- exports.version="2.4.280";exports.build="159bc80be"},function(module,exports,__w_pdfjs_require__){module.exports=__w_pdfjs_require__(186)},function(module$jscomp$0,exports$jscomp$0,__w_pdfjs_require__){(function(module){function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}
1184
+ exports.version="2.4.283";exports.build="6d90343d0"},function(module,exports,__w_pdfjs_require__){module.exports=__w_pdfjs_require__(186)},function(module$jscomp$0,exports$jscomp$0,__w_pdfjs_require__){(function(module){function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}
1160
1185
  module=function(exports){function wrap(innerFn,outerFn,self,tryLocsList){outerFn=Object.create((outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator).prototype);tryLocsList=new Context(tryLocsList||[]);outerFn._invoke=makeInvokeMethod(innerFn,self,tryLocsList);return outerFn}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)}}catch(err){return{type:"throw",arg:err}}}function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}function defineIteratorMethods(prototype){["next",
1161
1186
  "throw","return"].forEach(function(method){prototype[method]=function(arg){return this._invoke(method,arg)}})}function AsyncIterator(generator){function invoke(method,arg,resolve,reject){method=tryCatch(generator[method],generator,arg);if("throw"===method.type)reject(method.arg);else{var result=method.arg;return(method=result.value)&&"object"===_typeof(method)&&hasOwn.call(method,"__await")?Promise.resolve(method.__await).then(function(value){invoke("next",value,resolve,reject)},function(err){invoke("throw",
1162
1187
  err,resolve,reject)}):Promise.resolve(method).then(function(unwrapped){result.value=unwrapped;resolve(result)},function(error){return invoke("throw",error,resolve,reject)})}}var previousPromise;this._invoke=function(method,arg){function callInvokeWithMethodAndArg(){return new Promise(function(resolve,reject){invoke(method,arg,resolve,reject)})}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function makeInvokeMethod(innerFn,
@@ -1522,7 +1547,7 @@ do i--;while("0"===value[i]);return value.substring(0,"."===value[i]?i:i+1)},pm=
1522
1547
  for(offset+=4;offset<p;offset++)type=type>>>8^crcTable[(type^data[offset])&255];offset=type^-1;data[p]=offset>>24&255;data[p+1]=offset>>16&255;data[p+2]=offset>>8&255;data[p+3]=offset&255}for(var PNG_HEADER=new Uint8Array([137,80,78,71,13,10,26,10]),crcTable=new Int32Array(256),i=0;256>i;i++){for(var c=i,h=0;8>h;h++)c=c&1?3988292384^c>>1&2147483647:c>>1&2147483647;crcTable[i]=c}return function(imgData,forceDataSchema,isMask){var kind=void 0===imgData.kind?_util.ImageKind.GRAYSCALE_1BPP:imgData.kind,
1523
1548
  width=imgData.width,height=imgData.height,bytes=imgData.data;switch(kind){case _util.ImageKind.GRAYSCALE_1BPP:var colorType=0;var bitDepth=1;var lineSize=width+7>>3;break;case _util.ImageKind.RGB_24BPP:colorType=2;bitDepth=8;lineSize=3*width;break;case _util.ImageKind.RGBA_32BPP:colorType=6;bitDepth=8;lineSize=4*width;break;default:throw Error("invalid format");}imgData=new Uint8Array((1+lineSize)*height);for(var offsetLiterals=0,offsetBytes=0,y=0;y<height;++y)imgData[offsetLiterals++]=0,imgData.set(bytes.subarray(offsetBytes,
1524
1549
  offsetBytes+lineSize),offsetLiterals),offsetBytes+=lineSize,offsetLiterals+=lineSize;if(kind===_util.ImageKind.GRAYSCALE_1BPP&&isMask)for(isMask=offsetLiterals=0;isMask<height;isMask++)for(offsetLiterals++,kind=0;kind<lineSize;kind++)imgData[offsetLiterals++]^=255;width=new Uint8Array([width>>24&255,width>>16&255,width>>8&255,width&255,height>>24&255,height>>16&255,height>>8&255,height&255,bitDepth,colorType,0,0,0]);a:{if(_is_node.isNodeJS)try{var input=8<=parseInt(process$jscomp$0.versions.node)?
1525
- imgData:new Buffer(imgData);var output=__webpack_require__(98).deflateSync(input,{level:9});var idat=output instanceof Uint8Array?output:new Uint8Array(output);break a}catch(e){(0,_util.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}output=imgData.length;idat=new Uint8Array(2+output+5*Math.ceil(output/65535)+4);input=0;idat[input++]=120;idat[input++]=156;for(height=0;65535<output;)idat[input++]=0,idat[input++]=255,idat[input++]=255,idat[input++]=0,idat[input++]=0,idat.set(imgData.subarray(height,
1550
+ imgData:new Buffer(imgData);var output=__webpack_require__(114).deflateSync(input,{level:9});var idat=output instanceof Uint8Array?output:new Uint8Array(output);break a}catch(e){(0,_util.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}output=imgData.length;idat=new Uint8Array(2+output+5*Math.ceil(output/65535)+4);input=0;idat[input++]=120;idat[input++]=156;for(height=0;65535<output;)idat[input++]=0,idat[input++]=255,idat[input++]=255,idat[input++]=0,idat[input++]=0,idat.set(imgData.subarray(height,
1526
1551
  height+65535),input),input+=65535,height+=65535,output-=65535;idat[input++]=1;idat[input++]=output&255;idat[input++]=output>>8&255;idat[input++]=~output&255;idat[input++]=(~output&65535)>>8&255;idat.set(imgData.subarray(height),input);input+=imgData.length-height;output=1;for(bitDepth=height=0;bitDepth<imgData.length;++bitDepth)output=(output+(imgData[bitDepth]&255))%65521,height=(height+output)%65521;imgData=height<<16|output;idat[input++]=imgData>>24&255;idat[input++]=imgData>>16&255;idat[input++]=
1527
1552
  imgData>>8&255;idat[input++]=imgData&255}imgData=new Uint8Array(PNG_HEADER.length+36+width.length+idat.length);input=0;imgData.set(PNG_HEADER,input);input+=PNG_HEADER.length;writePngChunk("IHDR",width,imgData,input);input+=12+width.length;writePngChunk("IDATA",idat,imgData,input);input+=12+idat.length;writePngChunk("IEND",new Uint8Array(0),imgData,input);return(0,_util.createObjectURL)(imgData,"image/png",forceDataSchema)}}(),SVGExtraState=function(){function SVGExtraState(){_classCallCheck(this,
1528
1553
  SVGExtraState);this.fontSizeScale=1;this.fontWeight="normal";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.wordSpacing=this.charSpacing=this.lineY=this.lineX=this.y=this.x=0;this.textHScale=1;this.textRise=0;this.strokeColor=this.fillColor="#000000";this.lineWidth=this.strokeAlpha=this.fillAlpha=1;this.lineCap=this.lineJoin="";this.miterLimit=0;this.dashArray=
@@ -1589,7 +1614,7 @@ typeof superClass&&null!==superClass)throw new TypeError("Super expression must
1589
1614
  _next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}
1590
1615
  function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,
1591
1616
  protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}function createRequestOptions(url,headers){return{protocol:url.protocol,auth:url.auth,host:url.hostname,port:url.port,path:url.path,method:"GET",headers:headers}}Object.defineProperty(exports,"__esModule",{value:!0});exports.PDFNodeStream=void 0;var _regenerator=function(obj){return obj&&obj.__esModule?obj:{"default":obj}}(__w_pdfjs_require__(185)),_util=__w_pdfjs_require__(1),_network_utils=__w_pdfjs_require__(203),
1592
- fs=__webpack_require__(123),http=__webpack_require__(72),https=__webpack_require__(133),url$jscomp$0=__webpack_require__(58),fileUriRegex=/^file:\/\/\/[a-zA-Z]:\//;module=function(){function PDFNodeStream(source){_classCallCheck(this,PDFNodeStream);this.source=source;var JSCompiler_inline_result=source.url;var parsedUrl=url$jscomp$0.parse(JSCompiler_inline_result);"file:"===parsedUrl.protocol||parsedUrl.host?JSCompiler_inline_result=parsedUrl:/^[a-z]:[/\\]/i.test(JSCompiler_inline_result)?JSCompiler_inline_result=
1617
+ fs=__webpack_require__(139),http=__webpack_require__(76),https=__webpack_require__(149),url$jscomp$0=__webpack_require__(61),fileUriRegex=/^file:\/\/\/[a-zA-Z]:\//;module=function(){function PDFNodeStream(source){_classCallCheck(this,PDFNodeStream);this.source=source;var JSCompiler_inline_result=source.url;var parsedUrl=url$jscomp$0.parse(JSCompiler_inline_result);"file:"===parsedUrl.protocol||parsedUrl.host?JSCompiler_inline_result=parsedUrl:/^[a-z]:[/\\]/i.test(JSCompiler_inline_result)?JSCompiler_inline_result=
1593
1618
  url$jscomp$0.parse("file:///".concat(JSCompiler_inline_result)):(parsedUrl.host||(parsedUrl.protocol="file:"),JSCompiler_inline_result=parsedUrl);this.url=JSCompiler_inline_result;this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol;this.isFsUrl="file:"===this.url.protocol;this.httpHeaders=this.isHttp&&source.httpHeaders||{};this._fullRequestReader=null;this._rangeRequestReaders=[]}_createClass(PDFNodeStream,[{key:"getFullReader",value:function(){(0,_util.assert)(!this._fullRequestReader);
1594
1619
  return this._fullRequestReader=this.isFsUrl?new PDFNodeStreamFsFullReader(this):new PDFNodeStreamFullReader(this)}},{key:"getRangeReader",value:function(start,end){if(end<=this._progressiveDataLength)return null;start=this.isFsUrl?new PDFNodeStreamFsRangeReader(this,start,end):new PDFNodeStreamRangeReader(this,start,end);this._rangeRequestReaders.push(start);return start}},{key:"cancelAllRequests",value:function(reason){this._fullRequestReader&&this._fullRequestReader.cancel(reason);this._rangeRequestReaders.slice(0).forEach(function(reader){reader.cancel(reason)})}},
1595
1620
  {key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]);return PDFNodeStream}();exports.PDFNodeStream=module;exports=function(){function BaseFullReader(stream){_classCallCheck(this,BaseFullReader);this._url=stream.url;this._done=!1;this.onProgress=this._storedError=null;stream=stream.source;this._contentLength=stream.length;this._loaded=0;this._filename=null;this._disableRange=stream.disableRange||!1;this._rangeChunkSize=stream.rangeChunkSize;
@@ -1658,85 +1683,84 @@ this._reader.cancel(reason);this._abortController&&this._abortController.abort()
1658
1683
  begin,end){var _this2=this;_classCallCheck(this,PDFFetchStreamRangeReader);this._stream=stream;this._reader=null;this._loaded=0;stream=stream.source;this._withCredentials=stream.withCredentials||!1;this._readCapability=(0,_util.createPromiseCapability)();this._isStreamingSupported=!stream.disableStream;"undefined"!==typeof AbortController&&(this._abortController=new AbortController);this._headers=createHeaders(this._stream.httpHeaders);this._headers.append("Range","bytes=".concat(begin,"-").concat(end-
1659
1684
  1));var url=stream.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);_this2._readCapability.resolve();_this2._reader=response.body.getReader()});this.onProgress=null}_createClass(PDFFetchStreamRangeReader,[{key:"read",value:function(){var _read2=_asyncToGenerator(_regenerator["default"].mark(function _callee2(){var _ref2,
1660
1685
  value,done,buffer;return _regenerator["default"].wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return _context2.next=2,this._readCapability.promise;case 2:return _context2.next=4,this._reader.read();case 4:_ref2=_context2.sent;value=_ref2.value;done=_ref2.done;if(!done){_context2.next=9;break}return _context2.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;
1661
- return _context2.abrupt("return",{value:buffer,done:!1});case 13:case "end":return _context2.stop()}},_callee2,this)}));return function(){return _read2.apply(this,arguments)}}()},{key:"cancel",value:function(reason){this._reader&&this._reader.cancel(reason);this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]);return PDFFetchStreamRangeReader}()}])})}).call(this,__webpack_require__(20).Buffer,__webpack_require__(11),
1662
- __webpack_require__(21),__webpack_require__(43)(module$jscomp$2))},function(module,__webpack_exports__,__webpack_require__){var _Matrix2D__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(12);__webpack_require__.d(__webpack_exports__,"a",function(){return _Matrix2D__WEBPACK_IMPORTED_MODULE_0__.a});var _Point2D__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(17);__webpack_require__.d(__webpack_exports__,"b",function(){return _Point2D__WEBPACK_IMPORTED_MODULE_1__.a});__webpack_require__(9);__webpack_require__(39);
1663
- __webpack_require__(35);__webpack_require__(48);__webpack_require__(40);__webpack_require__(6);__webpack_require__(13);__webpack_require__(76);__webpack_require__(77);__webpack_require__(78);__webpack_require__(19);__webpack_require__(41);__webpack_require__(49);__webpack_require__(31);__webpack_require__(32);module=__webpack_require__(81);__webpack_require__.n(module)},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return debugLog});
1664
- __webpack_require__(91);var debugLog=function(type,message){return function(){}}},function(module,exports,__webpack_require__){function copyProps(src,dst){for(var key in src)dst[key]=src[key]}function SafeBuffer(arg,encodingOrOffset,length){return Buffer(arg,encodingOrOffset,length)}var buffer=__webpack_require__(20),Buffer=buffer.Buffer;Buffer.from&&Buffer.alloc&&Buffer.allocUnsafe&&Buffer.allocUnsafeSlow?module.exports=buffer:(copyProps(buffer,exports),exports.Buffer=SafeBuffer);copyProps(Buffer,
1665
- SafeBuffer);SafeBuffer.from=function(arg,encodingOrOffset,length){if("number"===typeof arg)throw new TypeError("Argument must not be a number");return Buffer(arg,encodingOrOffset,length)};SafeBuffer.alloc=function(size,fill,encoding){if("number"!==typeof size)throw new TypeError("Argument must be a number");size=Buffer(size);void 0!==fill?"string"===typeof encoding?size.fill(fill,encoding):size.fill(fill):size.fill(0);return size};SafeBuffer.allocUnsafe=function(size){if("number"!==typeof size)throw new TypeError("Argument must be a number");
1666
- return Buffer(size)};SafeBuffer.allocUnsafeSlow=function(size){if("number"!==typeof size)throw new TypeError("Argument must be a number");return buffer.SlowBuffer(size)}},function(module,exports,__webpack_require__){(function(process,setImmediate,global){function CorkedRequest(state){var _this=this;this.entry=this.next=null;this.finish=function(){var entry=_this.entry;for(_this.entry=null;entry;){var cb=entry.callback;state.pendingcb--;cb(void 0);entry=entry.next}state.corkedRequestsFree?state.corkedRequestsFree.next=
1667
- _this:state.corkedRequestsFree=_this}}function nop(){}function WritableState(options,stream){Duplex=Duplex||__webpack_require__(29);options=options||{};var isDuplex=stream instanceof Duplex;this.objectMode=!!options.objectMode;isDuplex&&(this.objectMode=this.objectMode||!!options.writableObjectMode);var hwm=options.highWaterMark,writableHwm=options.writableHighWaterMark,defaultHwm=this.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:isDuplex&&(writableHwm||0===writableHwm)?writableHwm:defaultHwm;
1668
- this.highWaterMark=Math.floor(this.highWaterMark);this.destroyed=this.finished=this.ended=this.ending=this.needDrain=this.finalCalled=!1;this.decodeStrings=!1!==options.decodeStrings;this.defaultEncoding=options.defaultEncoding||"utf8";this.length=0;this.writing=!1;this.corked=0;this.sync=!0;this.bufferProcessing=!1;this.onwrite=function(er){var state=stream._writableState,sync=state.sync,cb=state.writecb;state.writing=!1;state.writecb=null;state.length-=state.writelen;state.writelen=0;er?(--state.pendingcb,
1669
- sync?(pna.nextTick(cb,er),pna.nextTick(finishMaybe,stream,state),stream._writableState.errorEmitted=!0,stream.emit("error",er)):(cb(er),stream._writableState.errorEmitted=!0,stream.emit("error",er),finishMaybe(stream,state))):((er=needFinish(state))||state.corked||state.bufferProcessing||!state.bufferedRequest||clearBuffer(stream,state),sync?asyncWrite(afterWrite,stream,state,er,cb):afterWrite(stream,state,er,cb))};this.writecb=null;this.writelen=0;this.lastBufferedRequest=this.bufferedRequest=null;
1670
- this.pendingcb=0;this.errorEmitted=this.prefinished=!1;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}function Writable(options){Duplex=Duplex||__webpack_require__(29);if(!(realHasInstance.call(Writable,this)||this instanceof Duplex))return new Writable(options);this._writableState=new WritableState(options,this);this.writable=!0;options&&("function"===typeof options.write&&(this._write=options.write),"function"===typeof options.writev&&(this._writev=options.writev),"function"===
1671
- typeof options.destroy&&(this._destroy=options.destroy),"function"===typeof options.final&&(this._final=options.final));Stream.call(this)}function doWrite(stream,state,writev,len,chunk,encoding,cb){state.writelen=len;state.writecb=cb;state.writing=!0;state.sync=!0;writev?stream._writev(chunk,state.onwrite):stream._write(chunk,encoding,state.onwrite);state.sync=!1}function afterWrite(stream,state,finished,cb){!finished&&0===state.length&&state.needDrain&&(state.needDrain=!1,stream.emit("drain"));state.pendingcb--;
1672
- cb();finishMaybe(stream,state)}function clearBuffer(stream,state){state.bufferProcessing=!0;var entry=state.bufferedRequest;if(stream._writev&&entry&&entry.next){var buffer=Array(state.bufferedRequestCount),holder=state.corkedRequestsFree;holder.entry=entry;for(var count=0,allBuffers=!0;entry;)buffer[count]=entry,entry.isBuf||(allBuffers=!1),entry=entry.next,count+=1;buffer.allBuffers=allBuffers;doWrite(stream,state,!0,state.length,buffer,"",holder.finish);state.pendingcb++;state.lastBufferedRequest=
1673
- null;holder.next?(state.corkedRequestsFree=holder.next,holder.next=null):state.corkedRequestsFree=new CorkedRequest(state);state.bufferedRequestCount=0}else{for(;entry&&(buffer=entry.chunk,doWrite(stream,state,!1,state.objectMode?1:buffer.length,buffer,entry.encoding,entry.callback),entry=entry.next,state.bufferedRequestCount--,!state.writing););null===entry&&(state.lastBufferedRequest=null)}state.bufferedRequest=entry;state.bufferProcessing=!1}function needFinish(state){return state.ending&&0===
1674
- state.length&&null===state.bufferedRequest&&!state.finished&&!state.writing}function callFinal(stream,state){stream._final(function(err){state.pendingcb--;err&&stream.emit("error",err);state.prefinished=!0;stream.emit("prefinish");finishMaybe(stream,state)})}function finishMaybe(stream,state){var need=needFinish(state);need&&(state.prefinished||state.finalCalled||("function"===typeof stream._final?(state.pendingcb++,state.finalCalled=!0,pna.nextTick(callFinal,stream,state)):(state.prefinished=!0,
1675
- stream.emit("prefinish"))),0===state.pendingcb&&(state.finished=!0,stream.emit("finish")));return need}var pna=__webpack_require__(44);module.exports=Writable;var asyncWrite=!process.browser&&-1<["v0.10","v0.9."].indexOf(process.version.slice(0,5))?setImmediate:pna.nextTick,Duplex;Writable.WritableState=WritableState;process=Object.create(__webpack_require__(38));process.inherits=__webpack_require__(25);var internalUtil={deprecate:__webpack_require__(104)},Stream=__webpack_require__(63),Buffer=__webpack_require__(56).Buffer,
1676
- OurUint8Array=global.Uint8Array||function(){};global=__webpack_require__(64);process.inherits(Writable,Stream);WritableState.prototype.getBuffer=function(){for(var current=this.bufferedRequest,out=[];current;)out.push(current),current=current.next;return out};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:internalUtil.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(_){}})();if("function"===
1677
- typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]){var realHasInstance=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(object){return realHasInstance.call(this,object)?!0:this!==Writable?!1:object&&object._writableState instanceof WritableState}})}else realHasInstance=function(object){return object instanceof this};Writable.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};
1678
- Writable.prototype.write=function(chunk,encoding,cb$jscomp$0){var state=this._writableState,ret=!1,JSCompiler_temp;if(JSCompiler_temp=!state.objectMode)JSCompiler_temp=chunk,JSCompiler_temp=Buffer.isBuffer(JSCompiler_temp)||JSCompiler_temp instanceof OurUint8Array;JSCompiler_temp&&!Buffer.isBuffer(chunk)&&(chunk=Buffer.from(chunk));"function"===typeof encoding&&(cb$jscomp$0=encoding,encoding=null);JSCompiler_temp?encoding="buffer":encoding||(encoding=state.defaultEncoding);"function"!==typeof cb$jscomp$0&&
1679
- (cb$jscomp$0=nop);if(state.ended)state=cb$jscomp$0,cb$jscomp$0=Error("write after end"),this.emit("error",cb$jscomp$0),pna.nextTick(state,cb$jscomp$0);else{var JSCompiler_temp$jscomp$0;if(!(JSCompiler_temp$jscomp$0=JSCompiler_temp)){JSCompiler_temp$jscomp$0=chunk;var cb=cb$jscomp$0,valid=!0,er=!1;null===JSCompiler_temp$jscomp$0?er=new TypeError("May not write null values to stream"):"string"===typeof JSCompiler_temp$jscomp$0||void 0===JSCompiler_temp$jscomp$0||state.objectMode||(er=new TypeError("Invalid non-string/buffer chunk"));
1680
- er&&(this.emit("error",er),pna.nextTick(cb,er),valid=!1);JSCompiler_temp$jscomp$0=valid}JSCompiler_temp$jscomp$0&&(state.pendingcb++,ret=JSCompiler_temp,ret||(JSCompiler_temp=chunk,state.objectMode||!1===state.decodeStrings||"string"!==typeof JSCompiler_temp||(JSCompiler_temp=Buffer.from(JSCompiler_temp,encoding)),chunk!==JSCompiler_temp&&(ret=!0,encoding="buffer",chunk=JSCompiler_temp)),JSCompiler_temp$jscomp$0=state.objectMode?1:chunk.length,state.length+=JSCompiler_temp$jscomp$0,JSCompiler_temp=
1681
- state.length<state.highWaterMark,JSCompiler_temp||(state.needDrain=!0),state.writing||state.corked?(JSCompiler_temp$jscomp$0=state.lastBufferedRequest,state.lastBufferedRequest={chunk:chunk,encoding:encoding,isBuf:ret,callback:cb$jscomp$0,next:null},JSCompiler_temp$jscomp$0?JSCompiler_temp$jscomp$0.next=state.lastBufferedRequest:state.bufferedRequest=state.lastBufferedRequest,state.bufferedRequestCount+=1):doWrite(this,state,!1,JSCompiler_temp$jscomp$0,chunk,encoding,cb$jscomp$0),ret=JSCompiler_temp)}return ret};
1682
- Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){var state=this._writableState;state.corked&&(state.corked--,state.writing||state.corked||state.finished||state.bufferProcessing||!state.bufferedRequest||clearBuffer(this,state))};Writable.prototype.setDefaultEncoding=function(encoding){"string"===typeof encoding&&(encoding=encoding.toLowerCase());if(!(-1<"hex utf8 utf-8 ascii binary base64 ucs2 ucs-2 utf16le utf-16le raw".split(" ").indexOf((encoding+
1683
- "").toLowerCase())))throw new TypeError("Unknown encoding: "+encoding);this._writableState.defaultEncoding=encoding;return this};Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Writable.prototype._write=function(chunk,encoding,cb){cb(Error("_write() is not implemented"))};Writable.prototype._writev=null;Writable.prototype.end=function(chunk,encoding,cb){var state=this._writableState;"function"===typeof chunk?
1684
- (cb=chunk,encoding=chunk=null):"function"===typeof encoding&&(cb=encoding,encoding=null);null!==chunk&&void 0!==chunk&&this.write(chunk,encoding);state.corked&&(state.corked=1,this.uncork());if(!state.ending&&!state.finished){chunk=cb;state.ending=!0;finishMaybe(this,state);if(chunk)if(state.finished)pna.nextTick(chunk);else this.once("finish",chunk);state.ended=!0;this.writable=!1}};Object.defineProperty(Writable.prototype,"destroyed",{get:function(){return void 0===this._writableState?!1:this._writableState.destroyed},
1685
- set:function(value){this._writableState&&(this._writableState.destroyed=value)}});Writable.prototype.destroy=global.destroy;Writable.prototype._undestroy=global.undestroy;Writable.prototype._destroy=function(err,cb){this.end();cb(err)}}).call(this,__webpack_require__(21),__webpack_require__(65).setImmediate,__webpack_require__(11))},function(module,exports,__webpack_require__){function Url(){this.href=this.path=this.pathname=this.query=this.search=this.hash=this.hostname=this.port=this.host=this.auth=
1686
- this.slashes=this.protocol=null}function urlParse(url,parseQueryString,slashesDenoteHost){if(url&&util.isObject(url)&&url instanceof Url)return url;var u=new Url;u.parse(url,parseQueryString,slashesDenoteHost);return u}var punycode=__webpack_require__(128),util=__webpack_require__(129);exports.parse=urlParse;exports.resolve=function(source,relative){return urlParse(source,!1,!0).resolve(relative)};exports.resolveObject=function(source,relative){return source?urlParse(source,!1,!0).resolveObject(relative):
1687
- relative};exports.format=function(obj){util.isString(obj)&&(obj=urlParse(obj));return obj instanceof Url?obj.format():Url.prototype.format.call(obj)};exports.Url=Url;var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/;module="{}|\\^`".split("").concat('<>"` \r\n\t'.split(""));var autoEscape=["'"].concat(module),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,
1688
- hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring=__webpack_require__(130);Url.prototype.parse=function(url,parseQueryString,slashesDenoteHost){if(!util.isString(url))throw new TypeError("Parameter 'url' must be a string, not "+typeof url);var queryIndex=url.indexOf("?");queryIndex=
1689
- -1!==queryIndex&&queryIndex<url.indexOf("#")?"?":"#";url=url.split(queryIndex);url[0]=url[0].replace(/\\/g,"/");url=url.join(queryIndex);queryIndex=url.trim();if(!slashesDenoteHost&&1===url.split("#").length&&(url=simplePathPattern.exec(queryIndex)))return this.href=this.path=queryIndex,this.pathname=url[1],url[2]?(this.search=url[2],this.query=parseQueryString?querystring.parse(this.search.substr(1)):this.search.substr(1)):parseQueryString&&(this.search="",this.query={}),this;if(url=protocolPattern.exec(queryIndex)){url=
1690
- url[0];var lowerProto=url.toLowerCase();this.protocol=lowerProto;queryIndex=queryIndex.substr(url.length)}if(slashesDenoteHost||url||queryIndex.match(/^\/\/[^@\/]+@[^@\/]+/)){var slashes="//"===queryIndex.substr(0,2);!slashes||url&&hostlessProtocol[url]||(queryIndex=queryIndex.substr(2),this.slashes=!0)}if(!hostlessProtocol[url]&&(slashes||url&&!slashedProtocol[url])){slashes=-1;for(slashesDenoteHost=0;slashesDenoteHost<hostEndingChars.length;slashesDenoteHost++)url=queryIndex.indexOf(hostEndingChars[slashesDenoteHost]),
1691
- -1!==url&&(-1===slashes||url<slashes)&&(slashes=url);slashes=-1===slashes?queryIndex.lastIndexOf("@"):queryIndex.lastIndexOf("@",slashes);-1!==slashes&&(slashesDenoteHost=queryIndex.slice(0,slashes),queryIndex=queryIndex.slice(slashes+1),this.auth=decodeURIComponent(slashesDenoteHost));slashes=-1;for(slashesDenoteHost=0;slashesDenoteHost<nonHostChars.length;slashesDenoteHost++)url=queryIndex.indexOf(nonHostChars[slashesDenoteHost]),-1!==url&&(-1===slashes||url<slashes)&&(slashes=url);-1===slashes&&
1692
- (slashes=queryIndex.length);this.host=queryIndex.slice(0,slashes);queryIndex=queryIndex.slice(slashes);this.parseHost();this.hostname=this.hostname||"";slashes="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!slashes){var hostparts=this.hostname.split(/\./);slashesDenoteHost=0;for(url=hostparts.length;slashesDenoteHost<url;slashesDenoteHost++){var part=hostparts[slashesDenoteHost];if(part&&!part.match(hostnamePartPattern)){for(var newpart="",j=0,k=part.length;j<k;j++)newpart=
1693
- 127<part.charCodeAt(j)?newpart+"x":newpart+part[j];if(!newpart.match(hostnamePartPattern)){url=hostparts.slice(0,slashesDenoteHost);slashesDenoteHost=hostparts.slice(slashesDenoteHost+1);if(part=part.match(hostnamePartStart))url.push(part[1]),slashesDenoteHost.unshift(part[2]);slashesDenoteHost.length&&(queryIndex="/"+slashesDenoteHost.join(".")+queryIndex);this.hostname=url.join(".");break}}}}this.hostname=255<this.hostname.length?"":this.hostname.toLowerCase();slashes||(this.hostname=punycode.toASCII(this.hostname));
1694
- slashesDenoteHost=this.port?":"+this.port:"";this.host=(this.hostname||"")+slashesDenoteHost;this.href+=this.host;slashes&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==queryIndex[0]&&(queryIndex="/"+queryIndex))}if(!unsafeProtocol[lowerProto])for(slashesDenoteHost=0,url=autoEscape.length;slashesDenoteHost<url;slashesDenoteHost++)slashes=autoEscape[slashesDenoteHost],-1!==queryIndex.indexOf(slashes)&&(part=encodeURIComponent(slashes),part===slashes&&(part=escape(slashes)),queryIndex=
1695
- queryIndex.split(slashes).join(part));slashesDenoteHost=queryIndex.indexOf("#");-1!==slashesDenoteHost&&(this.hash=queryIndex.substr(slashesDenoteHost),queryIndex=queryIndex.slice(0,slashesDenoteHost));slashesDenoteHost=queryIndex.indexOf("?");-1!==slashesDenoteHost?(this.search=queryIndex.substr(slashesDenoteHost),this.query=queryIndex.substr(slashesDenoteHost+1),parseQueryString&&(this.query=querystring.parse(this.query)),queryIndex=queryIndex.slice(0,slashesDenoteHost)):parseQueryString&&(this.search=
1696
- "",this.query={});queryIndex&&(this.pathname=queryIndex);slashedProtocol[lowerProto]&&this.hostname&&!this.pathname&&(this.pathname="/");if(this.pathname||this.search)slashesDenoteHost=this.pathname||"",this.path=slashesDenoteHost+(this.search||"");this.href=this.format();return this};Url.prototype.format=function(){var auth=this.auth||"";auth&&(auth=encodeURIComponent(auth),auth=auth.replace(/%3A/i,":"),auth+="@");var protocol=this.protocol||"",pathname=this.pathname||"",hash=this.hash||"",host=
1697
- !1,query="";this.host?host=auth+this.host:this.hostname&&(host=auth+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(host+=":"+this.port));this.query&&util.isObject(this.query)&&Object.keys(this.query).length&&(query=querystring.stringify(this.query));auth=this.search||query&&"?"+query||"";protocol&&":"!==protocol.substr(-1)&&(protocol+=":");this.slashes||(!protocol||slashedProtocol[protocol])&&!1!==host?(host="//"+(host||""),pathname&&"/"!==pathname.charAt(0)&&(pathname=
1698
- "/"+pathname)):host||(host="");hash&&"#"!==hash.charAt(0)&&(hash="#"+hash);auth&&"?"!==auth.charAt(0)&&(auth="?"+auth);pathname=pathname.replace(/[?#]/g,function(match){return encodeURIComponent(match)});auth=auth.replace("#","%23");return protocol+host+pathname+auth+hash};Url.prototype.resolve=function(relative){return this.resolveObject(urlParse(relative,!1,!0)).format()};Url.prototype.resolveObject=function(relative){if(util.isString(relative)){var rel=new Url;rel.parse(relative,!1,!0);relative=
1699
- rel}rel=new Url;for(var tkeys=Object.keys(this),tk=0;tk<tkeys.length;tk++){var tkey=tkeys[tk];rel[tkey]=this[tkey]}rel.hash=relative.hash;if(""===relative.href)return rel.href=rel.format(),rel;if(relative.slashes&&!relative.protocol){tkeys=Object.keys(relative);for(tk=0;tk<tkeys.length;tk++)tkey=tkeys[tk],"protocol"!==tkey&&(rel[tkey]=relative[tkey]);slashedProtocol[rel.protocol]&&rel.hostname&&!rel.pathname&&(rel.path=rel.pathname="/");rel.href=rel.format();return rel}if(relative.protocol&&relative.protocol!==
1700
- rel.protocol){if(!slashedProtocol[relative.protocol]){tkeys=Object.keys(relative);for(tk=0;tk<tkeys.length;tk++)tkey=tkeys[tk],rel[tkey]=relative[tkey];rel.href=rel.format();return rel}rel.protocol=relative.protocol;if(relative.host||hostlessProtocol[relative.protocol])rel.pathname=relative.pathname;else{for(var relPath=(relative.pathname||"").split("/");relPath.length&&!(relative.host=relPath.shift()););relative.host||(relative.host="");relative.hostname||(relative.hostname="");""!==relPath[0]&&
1701
- relPath.unshift("");2>relPath.length&&relPath.unshift("");rel.pathname=relPath.join("/")}rel.search=relative.search;rel.query=relative.query;rel.host=relative.host||"";rel.auth=relative.auth;rel.hostname=relative.hostname||relative.host;rel.port=relative.port;if(rel.pathname||rel.search)rel.path=(rel.pathname||"")+(rel.search||"");rel.slashes=rel.slashes||relative.slashes;rel.href=rel.format();return rel}tkeys=rel.pathname&&"/"===rel.pathname.charAt(0);var isRelAbs=relative.host||relative.pathname&&
1702
- "/"===relative.pathname.charAt(0),removeAllDots=tkeys=isRelAbs||tkeys||rel.host&&relative.pathname;tk=rel.pathname&&rel.pathname.split("/")||[];relPath=relative.pathname&&relative.pathname.split("/")||[];if(tkey=rel.protocol&&!slashedProtocol[rel.protocol])rel.hostname="",rel.port=null,rel.host&&(""===tk[0]?tk[0]=rel.host:tk.unshift(rel.host)),rel.host="",relative.protocol&&(relative.hostname=null,relative.port=null,relative.host&&(""===relPath[0]?relPath[0]=relative.host:relPath.unshift(relative.host)),
1703
- relative.host=null),tkeys=tkeys&&(""===relPath[0]||""===tk[0]);if(isRelAbs)rel.host=relative.host||""===relative.host?relative.host:rel.host,rel.hostname=relative.hostname||""===relative.hostname?relative.hostname:rel.hostname,rel.search=relative.search,rel.query=relative.query,tk=relPath;else if(relPath.length)tk||(tk=[]),tk.pop(),tk=tk.concat(relPath),rel.search=relative.search,rel.query=relative.query;else if(!util.isNullOrUndefined(relative.search))return tkey&&(rel.hostname=rel.host=tk.shift(),
1704
- tkey=rel.host&&0<rel.host.indexOf("@")?rel.host.split("@"):!1)&&(rel.auth=tkey.shift(),rel.host=rel.hostname=tkey.shift()),rel.search=relative.search,rel.query=relative.query,util.isNull(rel.pathname)&&util.isNull(rel.search)||(rel.path=(rel.pathname?rel.pathname:"")+(rel.search?rel.search:"")),rel.href=rel.format(),rel;if(!tk.length)return rel.pathname=null,rel.path=rel.search?"/"+rel.search:null,rel.href=rel.format(),rel;isRelAbs=tk.slice(-1)[0];relPath=(rel.host||relative.host||1<tk.length)&&("."===
1705
- isRelAbs||".."===isRelAbs)||""===isRelAbs;for(var up=0,i=tk.length;0<=i;i--)isRelAbs=tk[i],"."===isRelAbs?tk.splice(i,1):".."===isRelAbs?(tk.splice(i,1),up++):up&&(tk.splice(i,1),up--);if(!tkeys&&!removeAllDots)for(;up--;up)tk.unshift("..");!tkeys||""===tk[0]||tk[0]&&"/"===tk[0].charAt(0)||tk.unshift("");relPath&&"/"!==tk.join("/").substr(-1)&&tk.push("");removeAllDots=""===tk[0]||tk[0]&&"/"===tk[0].charAt(0);tkey&&(rel.hostname=rel.host=removeAllDots?"":tk.length?tk.shift():"",tkey=rel.host&&0<rel.host.indexOf("@")?
1706
- rel.host.split("@"):!1)&&(rel.auth=tkey.shift(),rel.host=rel.hostname=tkey.shift());(tkeys=tkeys||rel.host&&tk.length)&&!removeAllDots&&tk.unshift("");tk.length?rel.pathname=tk.join("/"):(rel.pathname=null,rel.path=null);util.isNull(rel.pathname)&&util.isNull(rel.search)||(rel.path=(rel.pathname?rel.pathname:"")+(rel.search?rel.search:""));rel.auth=relative.auth||rel.auth;rel.slashes=rel.slashes||relative.slashes;rel.href=rel.format();return rel};Url.prototype.parseHost=function(){var host=this.host,
1707
- port=portPattern.exec(host);port&&(port=port[0],":"!==port&&(this.port=port.substr(1)),host=host.substr(0,host.length-port.length));host&&(this.hostname=host)}},function(module,__webpack_exports__,__webpack_require__){function _typeof(obj$jscomp$0){"@babel/helpers - typeof";_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};
1708
- return _typeof(obj$jscomp$0)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}
1709
- function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _inherits(subClass,superClass){if("function"!==typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}});superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o$jscomp$0,
1710
- p$jscomp$0){_setPrototypeOf=Object.setPrototypeOf||function(o,p){o.__proto__=p;return o};return _setPrototypeOf(o$jscomp$0,p$jscomp$0)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;Super=Reflect.construct(Super,arguments,NewTarget)}else Super=Super.apply(this,arguments);return _possibleConstructorReturn(this,Super)}}function _possibleConstructorReturn(self,
1711
- call){if(call&&("object"===_typeof(call)||"function"===typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,
1712
- [],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(o$jscomp$0){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)};return _getPrototypeOf(o$jscomp$0)}var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),exports=window,Annotations=exports.Annotations||{},Actions=exports.Actions||{},LinkAnnotationElement$jscomp$0=function(_Link){function LinkAnnotationElement(options){_classCallCheck(this,LinkAnnotationElement);
1713
- var _this=_super.call(this,options.data);var data=options.data,points=data.rect,point1=new exports.Core.Math.Point(points[0],points[1]);points=new exports.Core.Math.Point(points[2],points[3]);options.pageMatrix.mult(point1);options.pageMatrix.mult(points);_this.setX(point1.x);_this.setY(points.y);_this.setWidth(points.x-point1.x);_this.setHeight(point1.y-points.y);_this.setPageNumber(options.pageNum);if(data.url)_this.addAction("U",new Actions.URI({uri:data.url?data.url:"https://pdfjs.express"}));
1714
- else if(data.dest){points=data.dest;"string"===typeof points&&(points=options.destinations[points]);point1=options.parseDest(options.pageNum,points);if(!point1)return _possibleConstructorReturn(_this);options=options.parsePageNumber(points[0]);_this.addAction("U",new Actions.GoTo({dest:{bottom:point1.y,fit:point1.fit,left:point1.x,name:void 0,page:options,right:point1.x+point1.width,top:point1.y-point1.height,zoom:void 0}}))}else data.action&&_this.addAction("U",new Actions.Named({action:data.action}));
1715
- switch(data.borderStyle.style){case 1:var strokeStyle="solid";break;case 2:strokeStyle="dashed";break;case 3:Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("Unimplemented border style: beveled");break;case 4:Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("Unimplemented border style: inset");break;case 5:strokeStyle="underline"}_this.StrokeStyle=strokeStyle;_this.StrokeThickness=data.borderStyle.width;_this.Hidden=!1;_this.StrokeColor=new Annotations.Color(data.color[0],data.color[1],data.color[2]);
1716
- return _this}_inherits(LinkAnnotationElement,_Link);var _super=_createSuper(LinkAnnotationElement);return LinkAnnotationElement}(Annotations.Link||{});module=function(){function AnnotationElementFactory(){_classCallCheck(this,AnnotationElementFactory)}_createClass(AnnotationElementFactory,null,[{key:"create",value:function(parameters){switch(parameters.data.annotationType){case 2:return new LinkAnnotationElement$jscomp$0(parameters);default:return new AnnotationElement(parameters)}}}]);return AnnotationElementFactory}();
1717
- __webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);var _XFDFUtils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(27);module=function(){function Color(r,g,b,a){this.A=this.B=this.G=this.R=0;r instanceof Color?(this.R=r.R,this.G=r.G,this.B=r.B,this.A=r.A):Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isArray)(r)?1===r.length?(this.B=this.G=this.R=
1718
- r=Math.round(255*(r[0]||0)),this.A=1):3===r.length?(this.R=Math.round(255*(r[0]||0)),this.G=Math.round(255*(r[1]||0)),this.B=Math.round(255*(r[2]||0)),this.A=1):4===r.length&&(g=r[1]||0,b=r[2]||0,a=r[3]||0,this.R=Math.round(255*(1-(r[0]||0))*(1-a)),this.G=Math.round(255*(1-g)*(1-a)),this.B=Math.round(255*(1-b)*(1-a)),this.A=1):Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isString)(r)&&"#"===r[0]?(r=_XFDFUtils__WEBPACK_IMPORTED_MODULE_1__.a.deserializeColor(r),this.R=r.R,this.G=r.G,this.B=r.B,this.A=
1719
- 1):(Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(r)||(this.R=Number(r)),Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(g)||(this.G=Number(g)),Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(b)||(this.B=Number(b)),Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(a)?Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(r)&&Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(g)&&Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(b)||(this.A=1):this.A=Number(a))}
1720
- Color.prototype.toString=function(){var str=this.R+","+this.G+","+this.B;return"undefined"===typeof this.A?"rgb("+str+")":"rgba("+str+","+this.A+")"};Color.prototype.toHexString=function(){return _XFDFUtils__WEBPACK_IMPORTED_MODULE_1__.a.serializeColor(this)};Color.prototype.toAppearanceString=function(){return _XFDFUtils__WEBPACK_IMPORTED_MODULE_1__.a.toFixed(this.R/255,3)+" "+_XFDFUtils__WEBPACK_IMPORTED_MODULE_1__.a.toFixed(this.G/255,3)+" "+_XFDFUtils__WEBPACK_IMPORTED_MODULE_1__.a.toFixed(this.B/
1721
- 255,3)+" rg"};Color.prototype.isBlack=function(){return 0===this.R&&0===this.G&&0===this.B&&1===this.A};Color.prototype.isTransparent=function(){return 0===this.A};Color.prototype.darkerColor=function(percent){if("number"==typeof percent&&0>percent&&100<percent)throw Error('Invalid "percent" value. Must be 0-100.');var n=255*percent/100;percent=this.R-n;var g=this.G-n;n=this.B-n;return new Color(0<percent?percent:0,0<g?g:0,0<n?n:0)};return Color}();__webpack_exports__.a=module},function(module,exports){var toString=
1722
- {}.toString;module.exports=Array.isArray||function(arr){return"[object Array]"==toString.call(arr)}},function(module,exports,__webpack_require__){(function(global,process){function prependListener(emitter,event,fn){if("function"===typeof emitter.prependListener)return emitter.prependListener(event,fn);if(emitter._events&&emitter._events[event])isArray(emitter._events[event])?emitter._events[event].unshift(fn):emitter._events[event]=[fn,emitter._events[event]];else emitter.on(event,fn)}function ReadableState(options,
1723
- stream){Duplex=Duplex||__webpack_require__(29);options=options||{};stream=stream instanceof Duplex;this.objectMode=!!options.objectMode;stream&&(this.objectMode=this.objectMode||!!options.readableObjectMode);var hwm=options.highWaterMark,readableHwm=options.readableHighWaterMark,defaultHwm=this.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:stream&&(readableHwm||0===readableHwm)?readableHwm:defaultHwm;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new BufferList;this.length=
1724
- 0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.reading=this.endEmitted=this.ended=!1;this.sync=!0;this.destroyed=this.resumeScheduled=this.readableListening=this.emittedReadable=this.needReadable=!1;this.defaultEncoding=options.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=!1;this.encoding=this.decoder=null;options.encoding&&(StringDecoder||(StringDecoder=__webpack_require__(66).StringDecoder),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}
1725
- function Readable(options){Duplex=Duplex||__webpack_require__(29);if(!(this instanceof Readable))return new Readable(options);this._readableState=new ReadableState(options,this);this.readable=!0;options&&("function"===typeof options.read&&(this._read=options.read),"function"===typeof options.destroy&&(this._destroy=options.destroy));Stream.call(this)}function readableAddChunk(stream,chunk,encoding,addToFront,skipChunkCheck){var state=stream._readableState;if(null===chunk)state.reading=!1,state.ended||
1726
- (state.decoder&&(chunk=state.decoder.end())&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length),state.ended=!0,emitReadable(stream));else{if(!skipChunkCheck){skipChunkCheck=chunk;var er;Buffer.isBuffer(skipChunkCheck)||skipChunkCheck instanceof OurUint8Array||"string"===typeof skipChunkCheck||void 0===skipChunkCheck||state.objectMode||(er=new TypeError("Invalid non-string/buffer chunk"));var er$jscomp$0=er}er$jscomp$0?stream.emit("error",er$jscomp$0):state.objectMode||
1727
- chunk&&0<chunk.length?("string"===typeof chunk||state.objectMode||Object.getPrototypeOf(chunk)===Buffer.prototype||(chunk=Buffer.from(chunk)),addToFront?state.endEmitted?stream.emit("error",Error("stream.unshift() after end event")):addChunk(stream,state,chunk,!0):state.ended?stream.emit("error",Error("stream.push() after EOF")):(state.reading=!1,state.decoder&&!encoding?(chunk=state.decoder.write(chunk),state.objectMode||0!==chunk.length?addChunk(stream,state,chunk,!1):state.readingMore||(state.readingMore=
1728
- !0,pna.nextTick(maybeReadMore_,stream,state))):addChunk(stream,state,chunk,!1))):addToFront||(state.reading=!1)}return!state.ended&&(state.needReadable||state.length<state.highWaterMark||0===state.length)}function addChunk(stream,state,chunk,addToFront){state.flowing&&0===state.length&&!state.sync?(stream.emit("data",chunk),stream.read(0)):(state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):state.buffer.push(chunk),state.needReadable&&emitReadable(stream));state.readingMore||
1729
- (state.readingMore=!0,pna.nextTick(maybeReadMore_,stream,state))}function howMuchToRead(n$jscomp$0,state){if(0>=n$jscomp$0||0===state.length&&state.ended)return 0;if(state.objectMode)return 1;if(n$jscomp$0!==n$jscomp$0)return state.flowing&&state.length?state.buffer.head.data.length:state.length;if(n$jscomp$0>state.highWaterMark){var n=n$jscomp$0;8388608<=n?n=8388608:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++);state.highWaterMark=n}return n$jscomp$0<=state.length?n$jscomp$0:state.ended?
1730
- state.length:(state.needReadable=!0,0)}function emitReadable(stream){var state=stream._readableState;state.needReadable=!1;state.emittedReadable||(debug("emitReadable",state.flowing),state.emittedReadable=!0,state.sync?pna.nextTick(emitReadable_,stream):emitReadable_(stream))}function emitReadable_(stream){debug("emit readable");stream.emit("readable");flow(stream)}function maybeReadMore_(stream,state){for(var len=state.length;!state.reading&&!state.flowing&&!state.ended&&state.length<state.highWaterMark&&
1731
- (debug("maybeReadMore read 0"),stream.read(0),len!==state.length);)len=state.length;state.readingMore=!1}function pipeOnDrain(src){return function(){var state=src._readableState;debug("pipeOnDrain",state.awaitDrain);state.awaitDrain&&state.awaitDrain--;0===state.awaitDrain&&src.listeners("data").length&&(state.flowing=!0,flow(src))}}function nReadingNextTick(self){debug("readable nexttick read 0");self.read(0)}function resume_(stream,state){state.reading||(debug("resume read 0"),stream.read(0));state.resumeScheduled=
1732
- !1;state.awaitDrain=0;stream.emit("resume");flow(stream);state.flowing&&!state.reading&&stream.read(0)}function flow(stream){var state=stream._readableState;for(debug("flow",state.flowing);state.flowing&&null!==stream.read(););}function fromList(n,state){if(0===state.length)return null;if(state.objectMode)var ret=state.buffer.shift();else if(!n||n>=state.length)ret=state.decoder?state.buffer.join(""):1===state.buffer.length?state.buffer.head.data:state.buffer.concat(state.length),state.buffer.clear();
1733
- else{ret=state.buffer;state=state.decoder;if(n<ret.head.data.length)state=ret.head.data.slice(0,n),ret.head.data=ret.head.data.slice(n);else{if(n===ret.head.data.length)ret=ret.shift();else if(state){state=ret.head;var c=1,ret$jscomp$0=state.data;for(n-=ret$jscomp$0.length;state=state.next;){var str=state.data,nb=n>str.length?str.length:n;ret$jscomp$0=nb===str.length?ret$jscomp$0+str:ret$jscomp$0+str.slice(0,n);n-=nb;if(0===n){nb===str.length?(++c,ret.head=state.next?state.next:ret.tail=null):(ret.head=
1734
- state,state.data=str.slice(nb));break}++c}ret.length-=c;ret=ret$jscomp$0}else{state=Buffer.allocUnsafe(n);c=ret.head;ret$jscomp$0=1;c.data.copy(state);for(n-=c.data.length;c=c.next;){str=c.data;nb=n>str.length?str.length:n;str.copy(state,state.length-n,0,nb);n-=nb;if(0===n){nb===str.length?(++ret$jscomp$0,ret.head=c.next?c.next:ret.tail=null):(ret.head=c,c.data=str.slice(nb));break}++ret$jscomp$0}ret.length-=ret$jscomp$0;ret=state}state=ret}ret=state}return ret}function endReadable(stream){var state=
1735
- stream._readableState;if(0<state.length)throw Error('"endReadable()" called on non-empty stream');state.endEmitted||(state.ended=!0,pna.nextTick(endReadableNT,state,stream))}function endReadableNT(state,stream){state.endEmitted||0!==state.length||(state.endEmitted=!0,stream.readable=!1,stream.emit("end"))}function indexOf(xs,x){for(var i=0,l=xs.length;i<l;i++)if(xs[i]===x)return i;return-1}var pna=__webpack_require__(44);module.exports=Readable;var isArray=__webpack_require__(61),Duplex;Readable.ReadableState=
1736
- ReadableState;__webpack_require__(30);var Stream=__webpack_require__(63),Buffer=__webpack_require__(56).Buffer,OurUint8Array=global.Uint8Array||function(){};global=Object.create(__webpack_require__(38));global.inherits=__webpack_require__(25);var debugUtil=__webpack_require__(100),debug=void 0;debug=debugUtil&&debugUtil.debuglog?debugUtil.debuglog("stream"):function(){};var BufferList=__webpack_require__(101);debugUtil=__webpack_require__(64);var StringDecoder;global.inherits(Readable,Stream);var kProxyEvents=
1686
+ return _context2.abrupt("return",{value:buffer,done:!1});case 13:case "end":return _context2.stop()}},_callee2,this)}));return function(){return _read2.apply(this,arguments)}}()},{key:"cancel",value:function(reason){this._reader&&this._reader.cancel(reason);this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]);return PDFFetchStreamRangeReader}()}])})}).call(this,__webpack_require__(22).Buffer,__webpack_require__(15),
1687
+ __webpack_require__(23),__webpack_require__(47)(module$jscomp$2))},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return debugLog});__webpack_require__(105);var debugLog=function(type,message){return function(){}}},function(module,exports,__webpack_require__){function copyProps(src,dst){for(var key in src)dst[key]=src[key]}function SafeBuffer(arg,encodingOrOffset,length){return Buffer(arg,encodingOrOffset,length)}var buffer=__webpack_require__(22),
1688
+ Buffer=buffer.Buffer;Buffer.from&&Buffer.alloc&&Buffer.allocUnsafe&&Buffer.allocUnsafeSlow?module.exports=buffer:(copyProps(buffer,exports),exports.Buffer=SafeBuffer);copyProps(Buffer,SafeBuffer);SafeBuffer.from=function(arg,encodingOrOffset,length){if("number"===typeof arg)throw new TypeError("Argument must not be a number");return Buffer(arg,encodingOrOffset,length)};SafeBuffer.alloc=function(size,fill,encoding){if("number"!==typeof size)throw new TypeError("Argument must be a number");size=Buffer(size);
1689
+ void 0!==fill?"string"===typeof encoding?size.fill(fill,encoding):size.fill(fill):size.fill(0);return size};SafeBuffer.allocUnsafe=function(size){if("number"!==typeof size)throw new TypeError("Argument must be a number");return Buffer(size)};SafeBuffer.allocUnsafeSlow=function(size){if("number"!==typeof size)throw new TypeError("Argument must be a number");return buffer.SlowBuffer(size)}},function(module,exports,__webpack_require__){(function(process,setImmediate,global){function CorkedRequest(state){var _this=
1690
+ this;this.entry=this.next=null;this.finish=function(){var entry=_this.entry;for(_this.entry=null;entry;){var cb=entry.callback;state.pendingcb--;cb(void 0);entry=entry.next}state.corkedRequestsFree?state.corkedRequestsFree.next=_this:state.corkedRequestsFree=_this}}function nop(){}function WritableState(options,stream){Duplex=Duplex||__webpack_require__(31);options=options||{};var isDuplex=stream instanceof Duplex;this.objectMode=!!options.objectMode;isDuplex&&(this.objectMode=this.objectMode||!!options.writableObjectMode);
1691
+ var hwm=options.highWaterMark,writableHwm=options.writableHighWaterMark,defaultHwm=this.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:isDuplex&&(writableHwm||0===writableHwm)?writableHwm:defaultHwm;this.highWaterMark=Math.floor(this.highWaterMark);this.destroyed=this.finished=this.ended=this.ending=this.needDrain=this.finalCalled=!1;this.decodeStrings=!1!==options.decodeStrings;this.defaultEncoding=options.defaultEncoding||"utf8";this.length=0;this.writing=!1;this.corked=0;this.sync=!0;
1692
+ this.bufferProcessing=!1;this.onwrite=function(er){var state=stream._writableState,sync=state.sync,cb=state.writecb;state.writing=!1;state.writecb=null;state.length-=state.writelen;state.writelen=0;er?(--state.pendingcb,sync?(pna.nextTick(cb,er),pna.nextTick(finishMaybe,stream,state),stream._writableState.errorEmitted=!0,stream.emit("error",er)):(cb(er),stream._writableState.errorEmitted=!0,stream.emit("error",er),finishMaybe(stream,state))):((er=needFinish(state))||state.corked||state.bufferProcessing||
1693
+ !state.bufferedRequest||clearBuffer(stream,state),sync?asyncWrite(afterWrite,stream,state,er,cb):afterWrite(stream,state,er,cb))};this.writecb=null;this.writelen=0;this.lastBufferedRequest=this.bufferedRequest=null;this.pendingcb=0;this.errorEmitted=this.prefinished=!1;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}function Writable(options){Duplex=Duplex||__webpack_require__(31);if(!(realHasInstance.call(Writable,this)||this instanceof Duplex))return new Writable(options);
1694
+ this._writableState=new WritableState(options,this);this.writable=!0;options&&("function"===typeof options.write&&(this._write=options.write),"function"===typeof options.writev&&(this._writev=options.writev),"function"===typeof options.destroy&&(this._destroy=options.destroy),"function"===typeof options.final&&(this._final=options.final));Stream.call(this)}function doWrite(stream,state,writev,len,chunk,encoding,cb){state.writelen=len;state.writecb=cb;state.writing=!0;state.sync=!0;writev?stream._writev(chunk,
1695
+ state.onwrite):stream._write(chunk,encoding,state.onwrite);state.sync=!1}function afterWrite(stream,state,finished,cb){!finished&&0===state.length&&state.needDrain&&(state.needDrain=!1,stream.emit("drain"));state.pendingcb--;cb();finishMaybe(stream,state)}function clearBuffer(stream,state){state.bufferProcessing=!0;var entry=state.bufferedRequest;if(stream._writev&&entry&&entry.next){var buffer=Array(state.bufferedRequestCount),holder=state.corkedRequestsFree;holder.entry=entry;for(var count=0,allBuffers=
1696
+ !0;entry;)buffer[count]=entry,entry.isBuf||(allBuffers=!1),entry=entry.next,count+=1;buffer.allBuffers=allBuffers;doWrite(stream,state,!0,state.length,buffer,"",holder.finish);state.pendingcb++;state.lastBufferedRequest=null;holder.next?(state.corkedRequestsFree=holder.next,holder.next=null):state.corkedRequestsFree=new CorkedRequest(state);state.bufferedRequestCount=0}else{for(;entry&&(buffer=entry.chunk,doWrite(stream,state,!1,state.objectMode?1:buffer.length,buffer,entry.encoding,entry.callback),
1697
+ entry=entry.next,state.bufferedRequestCount--,!state.writing););null===entry&&(state.lastBufferedRequest=null)}state.bufferedRequest=entry;state.bufferProcessing=!1}function needFinish(state){return state.ending&&0===state.length&&null===state.bufferedRequest&&!state.finished&&!state.writing}function callFinal(stream,state){stream._final(function(err){state.pendingcb--;err&&stream.emit("error",err);state.prefinished=!0;stream.emit("prefinish");finishMaybe(stream,state)})}function finishMaybe(stream,
1698
+ state){var need=needFinish(state);need&&(state.prefinished||state.finalCalled||("function"===typeof stream._final?(state.pendingcb++,state.finalCalled=!0,pna.nextTick(callFinal,stream,state)):(state.prefinished=!0,stream.emit("prefinish"))),0===state.pendingcb&&(state.finished=!0,stream.emit("finish")));return need}var pna=__webpack_require__(48);module.exports=Writable;var asyncWrite=!process.browser&&-1<["v0.10","v0.9."].indexOf(process.version.slice(0,5))?setImmediate:pna.nextTick,Duplex;Writable.WritableState=
1699
+ WritableState;process=Object.create(__webpack_require__(42));process.inherits=__webpack_require__(28);var internalUtil={deprecate:__webpack_require__(120)},Stream=__webpack_require__(67),Buffer=__webpack_require__(59).Buffer,OurUint8Array=global.Uint8Array||function(){};global=__webpack_require__(68);process.inherits(Writable,Stream);WritableState.prototype.getBuffer=function(){for(var current=this.bufferedRequest,out=[];current;)out.push(current),current=current.next;return out};(function(){try{Object.defineProperty(WritableState.prototype,
1700
+ "buffer",{get:internalUtil.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(_){}})();if("function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]){var realHasInstance=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(object){return realHasInstance.call(this,object)?!0:this!==Writable?!1:object&&object._writableState instanceof
1701
+ WritableState}})}else realHasInstance=function(object){return object instanceof this};Writable.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};Writable.prototype.write=function(chunk,encoding,cb$jscomp$0){var state=this._writableState,ret=!1,JSCompiler_temp;if(JSCompiler_temp=!state.objectMode)JSCompiler_temp=chunk,JSCompiler_temp=Buffer.isBuffer(JSCompiler_temp)||JSCompiler_temp instanceof OurUint8Array;JSCompiler_temp&&!Buffer.isBuffer(chunk)&&(chunk=Buffer.from(chunk));
1702
+ "function"===typeof encoding&&(cb$jscomp$0=encoding,encoding=null);JSCompiler_temp?encoding="buffer":encoding||(encoding=state.defaultEncoding);"function"!==typeof cb$jscomp$0&&(cb$jscomp$0=nop);if(state.ended)state=cb$jscomp$0,cb$jscomp$0=Error("write after end"),this.emit("error",cb$jscomp$0),pna.nextTick(state,cb$jscomp$0);else{var JSCompiler_temp$jscomp$0;if(!(JSCompiler_temp$jscomp$0=JSCompiler_temp)){JSCompiler_temp$jscomp$0=chunk;var cb=cb$jscomp$0,valid=!0,er=!1;null===JSCompiler_temp$jscomp$0?
1703
+ er=new TypeError("May not write null values to stream"):"string"===typeof JSCompiler_temp$jscomp$0||void 0===JSCompiler_temp$jscomp$0||state.objectMode||(er=new TypeError("Invalid non-string/buffer chunk"));er&&(this.emit("error",er),pna.nextTick(cb,er),valid=!1);JSCompiler_temp$jscomp$0=valid}JSCompiler_temp$jscomp$0&&(state.pendingcb++,ret=JSCompiler_temp,ret||(JSCompiler_temp=chunk,state.objectMode||!1===state.decodeStrings||"string"!==typeof JSCompiler_temp||(JSCompiler_temp=Buffer.from(JSCompiler_temp,
1704
+ encoding)),chunk!==JSCompiler_temp&&(ret=!0,encoding="buffer",chunk=JSCompiler_temp)),JSCompiler_temp$jscomp$0=state.objectMode?1:chunk.length,state.length+=JSCompiler_temp$jscomp$0,JSCompiler_temp=state.length<state.highWaterMark,JSCompiler_temp||(state.needDrain=!0),state.writing||state.corked?(JSCompiler_temp$jscomp$0=state.lastBufferedRequest,state.lastBufferedRequest={chunk:chunk,encoding:encoding,isBuf:ret,callback:cb$jscomp$0,next:null},JSCompiler_temp$jscomp$0?JSCompiler_temp$jscomp$0.next=
1705
+ state.lastBufferedRequest:state.bufferedRequest=state.lastBufferedRequest,state.bufferedRequestCount+=1):doWrite(this,state,!1,JSCompiler_temp$jscomp$0,chunk,encoding,cb$jscomp$0),ret=JSCompiler_temp)}return ret};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){var state=this._writableState;state.corked&&(state.corked--,state.writing||state.corked||state.finished||state.bufferProcessing||!state.bufferedRequest||clearBuffer(this,state))};Writable.prototype.setDefaultEncoding=
1706
+ function(encoding){"string"===typeof encoding&&(encoding=encoding.toLowerCase());if(!(-1<"hex utf8 utf-8 ascii binary base64 ucs2 ucs-2 utf16le utf-16le raw".split(" ").indexOf((encoding+"").toLowerCase())))throw new TypeError("Unknown encoding: "+encoding);this._writableState.defaultEncoding=encoding;return this};Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Writable.prototype._write=function(chunk,encoding,
1707
+ cb){cb(Error("_write() is not implemented"))};Writable.prototype._writev=null;Writable.prototype.end=function(chunk,encoding,cb){var state=this._writableState;"function"===typeof chunk?(cb=chunk,encoding=chunk=null):"function"===typeof encoding&&(cb=encoding,encoding=null);null!==chunk&&void 0!==chunk&&this.write(chunk,encoding);state.corked&&(state.corked=1,this.uncork());if(!state.ending&&!state.finished){chunk=cb;state.ending=!0;finishMaybe(this,state);if(chunk)if(state.finished)pna.nextTick(chunk);
1708
+ else this.once("finish",chunk);state.ended=!0;this.writable=!1}};Object.defineProperty(Writable.prototype,"destroyed",{get:function(){return void 0===this._writableState?!1:this._writableState.destroyed},set:function(value){this._writableState&&(this._writableState.destroyed=value)}});Writable.prototype.destroy=global.destroy;Writable.prototype._undestroy=global.undestroy;Writable.prototype._destroy=function(err,cb){this.end();cb(err)}}).call(this,__webpack_require__(23),__webpack_require__(69).setImmediate,
1709
+ __webpack_require__(15))},function(module,exports,__webpack_require__){function Url(){this.href=this.path=this.pathname=this.query=this.search=this.hash=this.hostname=this.port=this.host=this.auth=this.slashes=this.protocol=null}function urlParse(url,parseQueryString,slashesDenoteHost){if(url&&util.isObject(url)&&url instanceof Url)return url;var u=new Url;u.parse(url,parseQueryString,slashesDenoteHost);return u}var punycode=__webpack_require__(144),util=__webpack_require__(145);exports.parse=urlParse;
1710
+ exports.resolve=function(source,relative){return urlParse(source,!1,!0).resolve(relative)};exports.resolveObject=function(source,relative){return source?urlParse(source,!1,!0).resolveObject(relative):relative};exports.format=function(obj){util.isString(obj)&&(obj=urlParse(obj));return obj instanceof Url?obj.format():Url.prototype.format.call(obj)};exports.Url=Url;var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/;module="{}|\\^`".split("").concat('<>"` \r\n\t'.split(""));
1711
+ var autoEscape=["'"].concat(module),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring=__webpack_require__(146);Url.prototype.parse=function(url,parseQueryString,
1712
+ slashesDenoteHost){if(!util.isString(url))throw new TypeError("Parameter 'url' must be a string, not "+typeof url);var queryIndex=url.indexOf("?");queryIndex=-1!==queryIndex&&queryIndex<url.indexOf("#")?"?":"#";url=url.split(queryIndex);url[0]=url[0].replace(/\\/g,"/");url=url.join(queryIndex);queryIndex=url.trim();if(!slashesDenoteHost&&1===url.split("#").length&&(url=simplePathPattern.exec(queryIndex)))return this.href=this.path=queryIndex,this.pathname=url[1],url[2]?(this.search=url[2],this.query=
1713
+ parseQueryString?querystring.parse(this.search.substr(1)):this.search.substr(1)):parseQueryString&&(this.search="",this.query={}),this;if(url=protocolPattern.exec(queryIndex)){url=url[0];var lowerProto=url.toLowerCase();this.protocol=lowerProto;queryIndex=queryIndex.substr(url.length)}if(slashesDenoteHost||url||queryIndex.match(/^\/\/[^@\/]+@[^@\/]+/)){var slashes="//"===queryIndex.substr(0,2);!slashes||url&&hostlessProtocol[url]||(queryIndex=queryIndex.substr(2),this.slashes=!0)}if(!hostlessProtocol[url]&&
1714
+ (slashes||url&&!slashedProtocol[url])){slashes=-1;for(slashesDenoteHost=0;slashesDenoteHost<hostEndingChars.length;slashesDenoteHost++)url=queryIndex.indexOf(hostEndingChars[slashesDenoteHost]),-1!==url&&(-1===slashes||url<slashes)&&(slashes=url);slashes=-1===slashes?queryIndex.lastIndexOf("@"):queryIndex.lastIndexOf("@",slashes);-1!==slashes&&(slashesDenoteHost=queryIndex.slice(0,slashes),queryIndex=queryIndex.slice(slashes+1),this.auth=decodeURIComponent(slashesDenoteHost));slashes=-1;for(slashesDenoteHost=
1715
+ 0;slashesDenoteHost<nonHostChars.length;slashesDenoteHost++)url=queryIndex.indexOf(nonHostChars[slashesDenoteHost]),-1!==url&&(-1===slashes||url<slashes)&&(slashes=url);-1===slashes&&(slashes=queryIndex.length);this.host=queryIndex.slice(0,slashes);queryIndex=queryIndex.slice(slashes);this.parseHost();this.hostname=this.hostname||"";slashes="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!slashes){var hostparts=this.hostname.split(/\./);slashesDenoteHost=0;for(url=hostparts.length;slashesDenoteHost<
1716
+ url;slashesDenoteHost++){var part=hostparts[slashesDenoteHost];if(part&&!part.match(hostnamePartPattern)){for(var newpart="",j=0,k=part.length;j<k;j++)newpart=127<part.charCodeAt(j)?newpart+"x":newpart+part[j];if(!newpart.match(hostnamePartPattern)){url=hostparts.slice(0,slashesDenoteHost);slashesDenoteHost=hostparts.slice(slashesDenoteHost+1);if(part=part.match(hostnamePartStart))url.push(part[1]),slashesDenoteHost.unshift(part[2]);slashesDenoteHost.length&&(queryIndex="/"+slashesDenoteHost.join(".")+
1717
+ queryIndex);this.hostname=url.join(".");break}}}}this.hostname=255<this.hostname.length?"":this.hostname.toLowerCase();slashes||(this.hostname=punycode.toASCII(this.hostname));slashesDenoteHost=this.port?":"+this.port:"";this.host=(this.hostname||"")+slashesDenoteHost;this.href+=this.host;slashes&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==queryIndex[0]&&(queryIndex="/"+queryIndex))}if(!unsafeProtocol[lowerProto])for(slashesDenoteHost=0,url=autoEscape.length;slashesDenoteHost<
1718
+ url;slashesDenoteHost++)slashes=autoEscape[slashesDenoteHost],-1!==queryIndex.indexOf(slashes)&&(part=encodeURIComponent(slashes),part===slashes&&(part=escape(slashes)),queryIndex=queryIndex.split(slashes).join(part));slashesDenoteHost=queryIndex.indexOf("#");-1!==slashesDenoteHost&&(this.hash=queryIndex.substr(slashesDenoteHost),queryIndex=queryIndex.slice(0,slashesDenoteHost));slashesDenoteHost=queryIndex.indexOf("?");-1!==slashesDenoteHost?(this.search=queryIndex.substr(slashesDenoteHost),this.query=
1719
+ queryIndex.substr(slashesDenoteHost+1),parseQueryString&&(this.query=querystring.parse(this.query)),queryIndex=queryIndex.slice(0,slashesDenoteHost)):parseQueryString&&(this.search="",this.query={});queryIndex&&(this.pathname=queryIndex);slashedProtocol[lowerProto]&&this.hostname&&!this.pathname&&(this.pathname="/");if(this.pathname||this.search)slashesDenoteHost=this.pathname||"",this.path=slashesDenoteHost+(this.search||"");this.href=this.format();return this};Url.prototype.format=function(){var auth=
1720
+ this.auth||"";auth&&(auth=encodeURIComponent(auth),auth=auth.replace(/%3A/i,":"),auth+="@");var protocol=this.protocol||"",pathname=this.pathname||"",hash=this.hash||"",host=!1,query="";this.host?host=auth+this.host:this.hostname&&(host=auth+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(host+=":"+this.port));this.query&&util.isObject(this.query)&&Object.keys(this.query).length&&(query=querystring.stringify(this.query));auth=this.search||query&&"?"+query||"";protocol&&
1721
+ ":"!==protocol.substr(-1)&&(protocol+=":");this.slashes||(!protocol||slashedProtocol[protocol])&&!1!==host?(host="//"+(host||""),pathname&&"/"!==pathname.charAt(0)&&(pathname="/"+pathname)):host||(host="");hash&&"#"!==hash.charAt(0)&&(hash="#"+hash);auth&&"?"!==auth.charAt(0)&&(auth="?"+auth);pathname=pathname.replace(/[?#]/g,function(match){return encodeURIComponent(match)});auth=auth.replace("#","%23");return protocol+host+pathname+auth+hash};Url.prototype.resolve=function(relative){return this.resolveObject(urlParse(relative,
1722
+ !1,!0)).format()};Url.prototype.resolveObject=function(relative){if(util.isString(relative)){var rel=new Url;rel.parse(relative,!1,!0);relative=rel}rel=new Url;for(var tkeys=Object.keys(this),tk=0;tk<tkeys.length;tk++){var tkey=tkeys[tk];rel[tkey]=this[tkey]}rel.hash=relative.hash;if(""===relative.href)return rel.href=rel.format(),rel;if(relative.slashes&&!relative.protocol){tkeys=Object.keys(relative);for(tk=0;tk<tkeys.length;tk++)tkey=tkeys[tk],"protocol"!==tkey&&(rel[tkey]=relative[tkey]);slashedProtocol[rel.protocol]&&
1723
+ rel.hostname&&!rel.pathname&&(rel.path=rel.pathname="/");rel.href=rel.format();return rel}if(relative.protocol&&relative.protocol!==rel.protocol){if(!slashedProtocol[relative.protocol]){tkeys=Object.keys(relative);for(tk=0;tk<tkeys.length;tk++)tkey=tkeys[tk],rel[tkey]=relative[tkey];rel.href=rel.format();return rel}rel.protocol=relative.protocol;if(relative.host||hostlessProtocol[relative.protocol])rel.pathname=relative.pathname;else{for(var relPath=(relative.pathname||"").split("/");relPath.length&&
1724
+ !(relative.host=relPath.shift()););relative.host||(relative.host="");relative.hostname||(relative.hostname="");""!==relPath[0]&&relPath.unshift("");2>relPath.length&&relPath.unshift("");rel.pathname=relPath.join("/")}rel.search=relative.search;rel.query=relative.query;rel.host=relative.host||"";rel.auth=relative.auth;rel.hostname=relative.hostname||relative.host;rel.port=relative.port;if(rel.pathname||rel.search)rel.path=(rel.pathname||"")+(rel.search||"");rel.slashes=rel.slashes||relative.slashes;
1725
+ rel.href=rel.format();return rel}tkeys=rel.pathname&&"/"===rel.pathname.charAt(0);var isRelAbs=relative.host||relative.pathname&&"/"===relative.pathname.charAt(0),removeAllDots=tkeys=isRelAbs||tkeys||rel.host&&relative.pathname;tk=rel.pathname&&rel.pathname.split("/")||[];relPath=relative.pathname&&relative.pathname.split("/")||[];if(tkey=rel.protocol&&!slashedProtocol[rel.protocol])rel.hostname="",rel.port=null,rel.host&&(""===tk[0]?tk[0]=rel.host:tk.unshift(rel.host)),rel.host="",relative.protocol&&
1726
+ (relative.hostname=null,relative.port=null,relative.host&&(""===relPath[0]?relPath[0]=relative.host:relPath.unshift(relative.host)),relative.host=null),tkeys=tkeys&&(""===relPath[0]||""===tk[0]);if(isRelAbs)rel.host=relative.host||""===relative.host?relative.host:rel.host,rel.hostname=relative.hostname||""===relative.hostname?relative.hostname:rel.hostname,rel.search=relative.search,rel.query=relative.query,tk=relPath;else if(relPath.length)tk||(tk=[]),tk.pop(),tk=tk.concat(relPath),rel.search=relative.search,
1727
+ rel.query=relative.query;else if(!util.isNullOrUndefined(relative.search))return tkey&&(rel.hostname=rel.host=tk.shift(),tkey=rel.host&&0<rel.host.indexOf("@")?rel.host.split("@"):!1)&&(rel.auth=tkey.shift(),rel.host=rel.hostname=tkey.shift()),rel.search=relative.search,rel.query=relative.query,util.isNull(rel.pathname)&&util.isNull(rel.search)||(rel.path=(rel.pathname?rel.pathname:"")+(rel.search?rel.search:"")),rel.href=rel.format(),rel;if(!tk.length)return rel.pathname=null,rel.path=rel.search?
1728
+ "/"+rel.search:null,rel.href=rel.format(),rel;isRelAbs=tk.slice(-1)[0];relPath=(rel.host||relative.host||1<tk.length)&&("."===isRelAbs||".."===isRelAbs)||""===isRelAbs;for(var up=0,i=tk.length;0<=i;i--)isRelAbs=tk[i],"."===isRelAbs?tk.splice(i,1):".."===isRelAbs?(tk.splice(i,1),up++):up&&(tk.splice(i,1),up--);if(!tkeys&&!removeAllDots)for(;up--;up)tk.unshift("..");!tkeys||""===tk[0]||tk[0]&&"/"===tk[0].charAt(0)||tk.unshift("");relPath&&"/"!==tk.join("/").substr(-1)&&tk.push("");removeAllDots=""===
1729
+ tk[0]||tk[0]&&"/"===tk[0].charAt(0);tkey&&(rel.hostname=rel.host=removeAllDots?"":tk.length?tk.shift():"",tkey=rel.host&&0<rel.host.indexOf("@")?rel.host.split("@"):!1)&&(rel.auth=tkey.shift(),rel.host=rel.hostname=tkey.shift());(tkeys=tkeys||rel.host&&tk.length)&&!removeAllDots&&tk.unshift("");tk.length?rel.pathname=tk.join("/"):(rel.pathname=null,rel.path=null);util.isNull(rel.pathname)&&util.isNull(rel.search)||(rel.path=(rel.pathname?rel.pathname:"")+(rel.search?rel.search:""));rel.auth=relative.auth||
1730
+ rel.auth;rel.slashes=rel.slashes||relative.slashes;rel.href=rel.format();return rel};Url.prototype.parseHost=function(){var host=this.host,port=portPattern.exec(host);port&&(port=port[0],":"!==port&&(this.port=port.substr(1)),host=host.substr(0,host.length-port.length));host&&(this.hostname=host)}},function(module,__webpack_exports__,__webpack_require__){function _typeof(obj$jscomp$0){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:
1731
+ function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj$jscomp$0)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,
1732
+ protoProps);staticProps&&_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:!1});return Constructor}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _inherits(subClass,superClass){if("function"!==typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&
1733
+ superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}});Object.defineProperty(subClass,"prototype",{writable:!1});superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o$jscomp$0,p$jscomp$0){_setPrototypeOf=Object.setPrototypeOf||function(o,p){o.__proto__=p;return o};return _setPrototypeOf(o$jscomp$0,p$jscomp$0)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=_getPrototypeOf(Derived);
1734
+ if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;Super=Reflect.construct(Super,arguments,NewTarget)}else Super=Super.apply(this,arguments);return _possibleConstructorReturn(this,Super)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"===typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1735
+ return self}function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(o$jscomp$0){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)};return _getPrototypeOf(o$jscomp$0)}var logger__WEBPACK_IMPORTED_MODULE_0__=
1736
+ __webpack_require__(0),exports=window,Annotations=exports.Annotations||{},Actions=exports.Actions||{},LinkAnnotationElement$jscomp$0=function(_Link){function LinkAnnotationElement(options){_classCallCheck(this,LinkAnnotationElement);var _this=_super.call(this,options.data);var data=options.data,points=data.rect,point1=new exports.Core.Math.Point(points[0],points[1]);points=new exports.Core.Math.Point(points[2],points[3]);options.pageMatrix.mult(point1);options.pageMatrix.mult(points);_this.setX(point1.x);
1737
+ _this.setY(points.y);_this.setWidth(points.x-point1.x);_this.setHeight(point1.y-points.y);_this.setPageNumber(options.pageNum);if(data.url)_this.addAction("U",new Actions.URI({uri:data.url?data.url:"https://pdfjs.express"}));else if(data.dest){points=data.dest;"string"===typeof points&&(points=options.destinations[points]);point1=options.parseDest(options.pageNum,points);if(!point1)return _possibleConstructorReturn(_this);options=options.parsePageNumber(points[0]);_this.addAction("U",new Actions.GoTo({dest:{bottom:point1.y,
1738
+ fit:point1.fit,left:point1.x,name:void 0,page:options,right:point1.x+point1.width,top:point1.y-point1.height,zoom:void 0}}))}else data.action&&_this.addAction("U",new Actions.Named({action:data.action}));switch(data.borderStyle.style){case 1:var strokeStyle="solid";break;case 2:strokeStyle="dashed";break;case 3:Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("Unimplemented border style: beveled");break;case 4:Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("Unimplemented border style: inset");break;case 5:strokeStyle=
1739
+ "underline"}_this.StrokeStyle=strokeStyle;_this.StrokeThickness=data.borderStyle.width;_this.Hidden=!1;_this.StrokeColor=new Annotations.Color(data.color[0],data.color[1],data.color[2]);return _this}_inherits(LinkAnnotationElement,_Link);var _super=_createSuper(LinkAnnotationElement);return _createClass(LinkAnnotationElement)}(Annotations.Link||{});module=function(){function AnnotationElementFactory(){_classCallCheck(this,AnnotationElementFactory)}_createClass(AnnotationElementFactory,null,[{key:"create",
1740
+ value:function(parameters){switch(parameters.data.annotationType){case 2:return new LinkAnnotationElement$jscomp$0(parameters);default:return new AnnotationElement(parameters)}}}]);return AnnotationElementFactory}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);var _XFDFUtils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(30);module=function(){function Color(r,
1741
+ g,b,a){this.A=this.B=this.G=this.R=0;r instanceof Color?(this.R=r.R,this.G=r.G,this.B=r.B,this.A=r.A):Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isArray)(r)?1===r.length?(this.B=this.G=this.R=r=Math.round(255*(r[0]||0)),this.A=1):3===r.length?(this.R=Math.round(255*(r[0]||0)),this.G=Math.round(255*(r[1]||0)),this.B=Math.round(255*(r[2]||0)),this.A=1):4===r.length&&(g=r[1]||0,b=r[2]||0,a=r[3]||0,this.R=Math.round(255*(1-(r[0]||0))*(1-a)),this.G=Math.round(255*(1-g)*(1-a)),this.B=Math.round(255*(1-
1742
+ b)*(1-a)),this.A=1):Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isString)(r)&&"#"===r[0]?(r=_XFDFUtils__WEBPACK_IMPORTED_MODULE_1__.a.deserializeColor(r),this.R=r.R,this.G=r.G,this.B=r.B,this.A=1):(Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(r)||(this.R=Number(r)),Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(g)||(this.G=Number(g)),Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(b)||(this.B=Number(b)),Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(a)?Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(r)&&
1743
+ Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(g)&&Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(b)||(this.A=1):this.A=Number(a))}Color.prototype.toString=function(){var str=this.R+","+this.G+","+this.B;return"undefined"===typeof this.A?"rgb("+str+")":"rgba("+str+","+this.A+")"};Color.prototype.toHexString=function(){return _XFDFUtils__WEBPACK_IMPORTED_MODULE_1__.a.serializeColor(this)};Color.prototype.toAppearanceString=function(){return _XFDFUtils__WEBPACK_IMPORTED_MODULE_1__.a.toFixed(this.R/
1744
+ 255,3)+" "+_XFDFUtils__WEBPACK_IMPORTED_MODULE_1__.a.toFixed(this.G/255,3)+" "+_XFDFUtils__WEBPACK_IMPORTED_MODULE_1__.a.toFixed(this.B/255,3)+" rg"};Color.prototype.isBlack=function(){return 0===this.R&&0===this.G&&0===this.B&&1===this.A};Color.prototype.isTransparent=function(){return 0===this.A};Color.prototype.darkerColor=function(percent){if("number"==typeof percent&&0>percent&&100<percent)throw Error('Invalid "percent" value. Must be 0-100.');var n=255*percent/100;percent=this.R-n;var g=this.G-
1745
+ n;n=this.B-n;return new Color(0<percent?percent:0,0<g?g:0,0<n?n:0)};return Color}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){__webpack_require__(90);__webpack_require__(91);__webpack_require__(92);__webpack_require__(93);__webpack_require__(94);__webpack_require__(50);var _loadCSS__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(95);__webpack_require__.d(__webpack_exports__,"a",function(){return _loadCSS__WEBPACK_IMPORTED_MODULE_6__.a})},function(module,
1746
+ exports){var toString={}.toString;module.exports=Array.isArray||function(arr){return"[object Array]"==toString.call(arr)}},function(module,exports,__webpack_require__){(function(global,process){function prependListener(emitter,event,fn){if("function"===typeof emitter.prependListener)return emitter.prependListener(event,fn);if(emitter._events&&emitter._events[event])isArray(emitter._events[event])?emitter._events[event].unshift(fn):emitter._events[event]=[fn,emitter._events[event]];else emitter.on(event,
1747
+ fn)}function ReadableState(options,stream){Duplex=Duplex||__webpack_require__(31);options=options||{};stream=stream instanceof Duplex;this.objectMode=!!options.objectMode;stream&&(this.objectMode=this.objectMode||!!options.readableObjectMode);var hwm=options.highWaterMark,readableHwm=options.readableHighWaterMark,defaultHwm=this.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:stream&&(readableHwm||0===readableHwm)?readableHwm:defaultHwm;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=
1748
+ new BufferList;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.reading=this.endEmitted=this.ended=!1;this.sync=!0;this.destroyed=this.resumeScheduled=this.readableListening=this.emittedReadable=this.needReadable=!1;this.defaultEncoding=options.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=!1;this.encoding=this.decoder=null;options.encoding&&(StringDecoder||(StringDecoder=__webpack_require__(70).StringDecoder),this.decoder=new StringDecoder(options.encoding),this.encoding=
1749
+ options.encoding)}function Readable(options){Duplex=Duplex||__webpack_require__(31);if(!(this instanceof Readable))return new Readable(options);this._readableState=new ReadableState(options,this);this.readable=!0;options&&("function"===typeof options.read&&(this._read=options.read),"function"===typeof options.destroy&&(this._destroy=options.destroy));Stream.call(this)}function readableAddChunk(stream,chunk,encoding,addToFront,skipChunkCheck){var state=stream._readableState;if(null===chunk)state.reading=
1750
+ !1,state.ended||(state.decoder&&(chunk=state.decoder.end())&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length),state.ended=!0,emitReadable(stream));else{if(!skipChunkCheck){skipChunkCheck=chunk;var er;Buffer.isBuffer(skipChunkCheck)||skipChunkCheck instanceof OurUint8Array||"string"===typeof skipChunkCheck||void 0===skipChunkCheck||state.objectMode||(er=new TypeError("Invalid non-string/buffer chunk"));var er$jscomp$0=er}er$jscomp$0?stream.emit("error",er$jscomp$0):
1751
+ state.objectMode||chunk&&0<chunk.length?("string"===typeof chunk||state.objectMode||Object.getPrototypeOf(chunk)===Buffer.prototype||(chunk=Buffer.from(chunk)),addToFront?state.endEmitted?stream.emit("error",Error("stream.unshift() after end event")):addChunk(stream,state,chunk,!0):state.ended?stream.emit("error",Error("stream.push() after EOF")):(state.reading=!1,state.decoder&&!encoding?(chunk=state.decoder.write(chunk),state.objectMode||0!==chunk.length?addChunk(stream,state,chunk,!1):state.readingMore||
1752
+ (state.readingMore=!0,pna.nextTick(maybeReadMore_,stream,state))):addChunk(stream,state,chunk,!1))):addToFront||(state.reading=!1)}return!state.ended&&(state.needReadable||state.length<state.highWaterMark||0===state.length)}function addChunk(stream,state,chunk,addToFront){state.flowing&&0===state.length&&!state.sync?(stream.emit("data",chunk),stream.read(0)):(state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):state.buffer.push(chunk),state.needReadable&&emitReadable(stream));
1753
+ state.readingMore||(state.readingMore=!0,pna.nextTick(maybeReadMore_,stream,state))}function howMuchToRead(n$jscomp$0,state){if(0>=n$jscomp$0||0===state.length&&state.ended)return 0;if(state.objectMode)return 1;if(n$jscomp$0!==n$jscomp$0)return state.flowing&&state.length?state.buffer.head.data.length:state.length;if(n$jscomp$0>state.highWaterMark){var n=n$jscomp$0;8388608<=n?n=8388608:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++);state.highWaterMark=n}return n$jscomp$0<=state.length?n$jscomp$0:
1754
+ state.ended?state.length:(state.needReadable=!0,0)}function emitReadable(stream){var state=stream._readableState;state.needReadable=!1;state.emittedReadable||(debug("emitReadable",state.flowing),state.emittedReadable=!0,state.sync?pna.nextTick(emitReadable_,stream):emitReadable_(stream))}function emitReadable_(stream){debug("emit readable");stream.emit("readable");flow(stream)}function maybeReadMore_(stream,state){for(var len=state.length;!state.reading&&!state.flowing&&!state.ended&&state.length<
1755
+ state.highWaterMark&&(debug("maybeReadMore read 0"),stream.read(0),len!==state.length);)len=state.length;state.readingMore=!1}function pipeOnDrain(src){return function(){var state=src._readableState;debug("pipeOnDrain",state.awaitDrain);state.awaitDrain&&state.awaitDrain--;0===state.awaitDrain&&src.listeners("data").length&&(state.flowing=!0,flow(src))}}function nReadingNextTick(self){debug("readable nexttick read 0");self.read(0)}function resume_(stream,state){state.reading||(debug("resume read 0"),
1756
+ stream.read(0));state.resumeScheduled=!1;state.awaitDrain=0;stream.emit("resume");flow(stream);state.flowing&&!state.reading&&stream.read(0)}function flow(stream){var state=stream._readableState;for(debug("flow",state.flowing);state.flowing&&null!==stream.read(););}function fromList(n,state){if(0===state.length)return null;if(state.objectMode)var ret=state.buffer.shift();else if(!n||n>=state.length)ret=state.decoder?state.buffer.join(""):1===state.buffer.length?state.buffer.head.data:state.buffer.concat(state.length),
1757
+ state.buffer.clear();else{ret=state.buffer;state=state.decoder;if(n<ret.head.data.length)state=ret.head.data.slice(0,n),ret.head.data=ret.head.data.slice(n);else{if(n===ret.head.data.length)ret=ret.shift();else if(state){state=ret.head;var c=1,ret$jscomp$0=state.data;for(n-=ret$jscomp$0.length;state=state.next;){var str=state.data,nb=n>str.length?str.length:n;ret$jscomp$0=nb===str.length?ret$jscomp$0+str:ret$jscomp$0+str.slice(0,n);n-=nb;if(0===n){nb===str.length?(++c,ret.head=state.next?state.next:
1758
+ ret.tail=null):(ret.head=state,state.data=str.slice(nb));break}++c}ret.length-=c;ret=ret$jscomp$0}else{state=Buffer.allocUnsafe(n);c=ret.head;ret$jscomp$0=1;c.data.copy(state);for(n-=c.data.length;c=c.next;){str=c.data;nb=n>str.length?str.length:n;str.copy(state,state.length-n,0,nb);n-=nb;if(0===n){nb===str.length?(++ret$jscomp$0,ret.head=c.next?c.next:ret.tail=null):(ret.head=c,c.data=str.slice(nb));break}++ret$jscomp$0}ret.length-=ret$jscomp$0;ret=state}state=ret}ret=state}return ret}function endReadable(stream){var state=
1759
+ stream._readableState;if(0<state.length)throw Error('"endReadable()" called on non-empty stream');state.endEmitted||(state.ended=!0,pna.nextTick(endReadableNT,state,stream))}function endReadableNT(state,stream){state.endEmitted||0!==state.length||(state.endEmitted=!0,stream.readable=!1,stream.emit("end"))}function indexOf(xs,x){for(var i=0,l=xs.length;i<l;i++)if(xs[i]===x)return i;return-1}var pna=__webpack_require__(48);module.exports=Readable;var isArray=__webpack_require__(65),Duplex;Readable.ReadableState=
1760
+ ReadableState;__webpack_require__(32);var Stream=__webpack_require__(67),Buffer=__webpack_require__(59).Buffer,OurUint8Array=global.Uint8Array||function(){};global=Object.create(__webpack_require__(42));global.inherits=__webpack_require__(28);var debugUtil=__webpack_require__(116),debug=void 0;debug=debugUtil&&debugUtil.debuglog?debugUtil.debuglog("stream"):function(){};var BufferList=__webpack_require__(117);debugUtil=__webpack_require__(68);var StringDecoder;global.inherits(Readable,Stream);var kProxyEvents=
1737
1761
  ["error","close","destroy","pause","resume"];Object.defineProperty(Readable.prototype,"destroyed",{get:function(){return void 0===this._readableState?!1:this._readableState.destroyed},set:function(value){this._readableState&&(this._readableState.destroyed=value)}});Readable.prototype.destroy=debugUtil.destroy;Readable.prototype._undestroy=debugUtil.undestroy;Readable.prototype._destroy=function(err,cb){this.push(null);cb(err)};Readable.prototype.push=function(chunk,encoding){var state=this._readableState;
1738
1762
  if(state.objectMode)var skipChunkCheck=!0;else"string"===typeof chunk&&(encoding=encoding||state.defaultEncoding,encoding!==state.encoding&&(chunk=Buffer.from(chunk,encoding),encoding=""),skipChunkCheck=!0);return readableAddChunk(this,chunk,encoding,!1,skipChunkCheck)};Readable.prototype.unshift=function(chunk){return readableAddChunk(this,chunk,null,!0,!1)};Readable.prototype.isPaused=function(){return!1===this._readableState.flowing};Readable.prototype.setEncoding=function(enc){StringDecoder||
1739
- (StringDecoder=__webpack_require__(66).StringDecoder);this._readableState.decoder=new StringDecoder(enc);this._readableState.encoding=enc;return this};Readable.prototype.read=function(n){debug("read",n);n=parseInt(n,10);var state=this._readableState,nOrig=n;0!==n&&(state.emittedReadable=!1);if(0===n&&state.needReadable&&(state.length>=state.highWaterMark||state.ended))return debug("read: emitReadable",state.length,state.ended),0===state.length&&state.ended?endReadable(this):emitReadable(this),null;
1763
+ (StringDecoder=__webpack_require__(70).StringDecoder);this._readableState.decoder=new StringDecoder(enc);this._readableState.encoding=enc;return this};Readable.prototype.read=function(n){debug("read",n);n=parseInt(n,10);var state=this._readableState,nOrig=n;0!==n&&(state.emittedReadable=!1);if(0===n&&state.needReadable&&(state.length>=state.highWaterMark||state.ended))return debug("read: emitReadable",state.length,state.ended),0===state.length&&state.ended?endReadable(this):emitReadable(this),null;
1740
1764
  n=howMuchToRead(n,state);if(0===n&&state.ended)return 0===state.length&&endReadable(this),null;var doRead=state.needReadable;debug("need readable",doRead);if(0===state.length||state.length-n<state.highWaterMark)doRead=!0,debug("length less than watermark",doRead);state.ended||state.reading?debug("reading or ended",!1):doRead&&(debug("do read"),state.reading=!0,state.sync=!0,0===state.length&&(state.needReadable=!0),this._read(state.highWaterMark),state.sync=!1,state.reading||(n=howMuchToRead(nOrig,
1741
1765
  state)));doRead=0<n?fromList(n,state):null;null===doRead?(state.needReadable=!0,n=0):state.length-=n;0===state.length&&(state.ended||(state.needReadable=!0),nOrig!==n&&state.ended&&endReadable(this));null!==doRead&&this.emit("data",doRead);return doRead};Readable.prototype._read=function(n){this.emit("error",Error("_read() is not implemented"))};Readable.prototype.pipe=function(dest,pipeOpts){function onunpipe(readable,unpipeInfo){debug("onunpipe");readable===src&&unpipeInfo&&!1===unpipeInfo.hasUnpiped&&
1742
1766
  (unpipeInfo.hasUnpiped=!0,debug("cleanup"),dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",unpipe),src.removeListener("data",ondata),cleanedUp=!0,!state.awaitDrain||dest._writableState&&!dest._writableState.needDrain||ondrain())}function onend(){debug("onend");dest.end()}function ondata(chunk){debug("ondata");
@@ -1747,24 +1771,24 @@ dest!==state.pipes)return this;dest||(dest=state.pipes);state.pipes=null;state.p
1747
1771
  dest.emit("unpipe",this,unpipeInfo);return this};Readable.prototype.on=function(ev,fn){fn=Stream.prototype.on.call(this,ev,fn);"data"===ev?!1!==this._readableState.flowing&&this.resume():"readable"===ev&&(ev=this._readableState,ev.endEmitted||ev.readableListening||(ev.readableListening=ev.needReadable=!0,ev.emittedReadable=!1,ev.reading?ev.length&&emitReadable(this):pna.nextTick(nReadingNextTick,this)));return fn};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.resume=function(){var state=
1748
1772
  this._readableState;state.flowing||(debug("resume"),state.flowing=!0,state.resumeScheduled||(state.resumeScheduled=!0,pna.nextTick(resume_,this,state)));return this};Readable.prototype.pause=function(){debug("call pause flowing=%j",this._readableState.flowing);!1!==this._readableState.flowing&&(debug("pause"),this._readableState.flowing=!1,this.emit("pause"));return this};Readable.prototype.wrap=function(stream){var _this=this,state=this._readableState,paused=!1;stream.on("end",function(){debug("wrapped end");
1749
1773
  if(state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&_this.push(chunk)}_this.push(null)});stream.on("data",function(chunk){debug("wrapped data");state.decoder&&(chunk=state.decoder.write(chunk));state.objectMode&&(null===chunk||void 0===chunk)||!(state.objectMode||chunk&&chunk.length)||_this.push(chunk)||(paused=!0,stream.pause())});for(var i in stream)void 0===this[i]&&"function"===typeof stream[i]&&(this[i]=function(method){return function(){return stream[method].apply(stream,
1750
- arguments)}}(i));for(i=0;i<kProxyEvents.length;i++)stream.on(kProxyEvents[i],this.emit.bind(this,kProxyEvents[i]));this._read=function(n){debug("wrapped _read",n);paused&&(paused=!1,stream.resume())};return this};Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Readable._fromList=fromList}).call(this,__webpack_require__(11),__webpack_require__(21))},function(module,exports,__webpack_require__){module.exports=
1751
- __webpack_require__(30).EventEmitter},function(module,exports,__webpack_require__){function emitErrorNT(self,err){self.emit("error",err)}var pna=__webpack_require__(44);module.exports={destroy:function(err$jscomp$0,cb){var _this=this,writableDestroyed=this._writableState&&this._writableState.destroyed;if(this._readableState&&this._readableState.destroyed||writableDestroyed)return cb?cb(err$jscomp$0):!err$jscomp$0||this._writableState&&this._writableState.errorEmitted||pna.nextTick(emitErrorNT,this,
1774
+ arguments)}}(i));for(i=0;i<kProxyEvents.length;i++)stream.on(kProxyEvents[i],this.emit.bind(this,kProxyEvents[i]));this._read=function(n){debug("wrapped _read",n);paused&&(paused=!1,stream.resume())};return this};Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Readable._fromList=fromList}).call(this,__webpack_require__(15),__webpack_require__(23))},function(module,exports,__webpack_require__){module.exports=
1775
+ __webpack_require__(32).EventEmitter},function(module,exports,__webpack_require__){function emitErrorNT(self,err){self.emit("error",err)}var pna=__webpack_require__(48);module.exports={destroy:function(err$jscomp$0,cb){var _this=this,writableDestroyed=this._writableState&&this._writableState.destroyed;if(this._readableState&&this._readableState.destroyed||writableDestroyed)return cb?cb(err$jscomp$0):!err$jscomp$0||this._writableState&&this._writableState.errorEmitted||pna.nextTick(emitErrorNT,this,
1752
1776
  err$jscomp$0),this;this._readableState&&(this._readableState.destroyed=!0);this._writableState&&(this._writableState.destroyed=!0);this._destroy(err$jscomp$0||null,function(err){!cb&&err?(pna.nextTick(emitErrorNT,_this,err),_this._writableState&&(_this._writableState.errorEmitted=!0)):cb&&cb(err)});return this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1);this._writableState&&
1753
1777
  (this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(module,exports,__webpack_require__){(function(global){function Timeout(id,clearFn){this._id=id;this._clearFn=clearFn}var scope="undefined"!==typeof global&&global||"undefined"!==typeof self&&self||window,apply=Function.prototype.apply;exports.setTimeout=function(){return new Timeout(apply.call(setTimeout,scope,arguments),clearTimeout)};
1754
1778
  exports.setInterval=function(){return new Timeout(apply.call(setInterval,scope,arguments),clearInterval)};exports.clearTimeout=exports.clearInterval=function(timeout){timeout&&timeout.close()};Timeout.prototype.unref=Timeout.prototype.ref=function(){};Timeout.prototype.close=function(){this._clearFn.call(scope,this._id)};exports.enroll=function(item,msecs){clearTimeout(item._idleTimeoutId);item._idleTimeout=msecs};exports.unenroll=function(item){clearTimeout(item._idleTimeoutId);item._idleTimeout=
1755
- -1};exports._unrefActive=exports.active=function(item){clearTimeout(item._idleTimeoutId);var msecs=item._idleTimeout;0<=msecs&&(item._idleTimeoutId=setTimeout(function(){item._onTimeout&&item._onTimeout()},msecs))};__webpack_require__(103);exports.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof global&&global.setImmediate||this&&this.setImmediate;exports.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof global&&global.clearImmediate||
1756
- this&&this.clearImmediate}).call(this,__webpack_require__(11))},function(module,exports,__webpack_require__){function _normalizeEncoding(enc){if(!enc)return"utf8";for(var retried;;)switch(enc){case "utf8":case "utf-8":return"utf8";case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return"utf16le";case "latin1":case "binary":return"latin1";case "base64":case "ascii":case "hex":return enc;default:if(retried)return;enc=(""+enc).toLowerCase();retried=!0}}function StringDecoder(encoding){var nenc=
1779
+ -1};exports._unrefActive=exports.active=function(item){clearTimeout(item._idleTimeoutId);var msecs=item._idleTimeout;0<=msecs&&(item._idleTimeoutId=setTimeout(function(){item._onTimeout&&item._onTimeout()},msecs))};__webpack_require__(119);exports.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof global&&global.setImmediate||this&&this.setImmediate;exports.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof global&&global.clearImmediate||
1780
+ this&&this.clearImmediate}).call(this,__webpack_require__(15))},function(module,exports,__webpack_require__){function _normalizeEncoding(enc){if(!enc)return"utf8";for(var retried;;)switch(enc){case "utf8":case "utf-8":return"utf8";case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return"utf16le";case "latin1":case "binary":return"latin1";case "base64":case "ascii":case "hex":return enc;default:if(retried)return;enc=(""+enc).toLowerCase();retried=!0}}function StringDecoder(encoding){var nenc=
1757
1781
  _normalizeEncoding(encoding);if("string"!==typeof nenc&&(Buffer.isEncoding===isEncoding||!isEncoding(encoding)))throw Error("Unknown encoding: "+encoding);this.encoding=nenc||encoding;switch(this.encoding){case "utf16le":this.text=utf16Text;this.end=utf16End;encoding=4;break;case "utf8":this.fillLast=utf8FillLast;encoding=4;break;case "base64":this.text=base64Text;this.end=base64End;encoding=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastTotal=this.lastNeed=0;this.lastChar=
1758
1782
  Buffer.allocUnsafe(encoding)}function utf8CheckByte(byte){return 127>=byte?0:6===byte>>5?2:14===byte>>4?3:30===byte>>3?4:2===byte>>6?-1:-2}function utf8CheckIncomplete(self,buf,i){var j=buf.length-1;if(j<i)return 0;var nb=utf8CheckByte(buf[j]);if(0<=nb)return 0<nb&&(self.lastNeed=nb-1),nb;if(--j<i||-2===nb)return 0;nb=utf8CheckByte(buf[j]);if(0<=nb)return 0<nb&&(self.lastNeed=nb-2),nb;if(--j<i||-2===nb)return 0;nb=utf8CheckByte(buf[j]);return 0<=nb?(0<nb&&(2===nb?nb=0:self.lastNeed=nb-3),nb):0}function utf8FillLast(buf){var p=
1759
1783
  this.lastTotal-this.lastNeed;a:if(128!==(buf[0]&192)){this.lastNeed=0;var r="\ufffd"}else{if(1<this.lastNeed&&1<buf.length){if(128!==(buf[1]&192)){this.lastNeed=1;r="\ufffd";break a}if(2<this.lastNeed&&2<buf.length&&128!==(buf[2]&192)){this.lastNeed=2;r="\ufffd";break a}}r=void 0}if(void 0!==r)return r;if(this.lastNeed<=buf.length)return buf.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);buf.copy(this.lastChar,p,0,buf.length);this.lastNeed-=buf.length}
1760
1784
  function utf16Text(buf,i){if(0===(buf.length-i)%2){if(i=buf.toString("utf16le",i)){var c=i.charCodeAt(i.length-1);if(55296<=c&&56319>=c)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=buf[buf.length-2],this.lastChar[1]=buf[buf.length-1],i.slice(0,-1)}return i}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=buf[buf.length-1];return buf.toString("utf16le",i,buf.length-1)}function utf16End(buf){buf=buf&&buf.length?this.write(buf):"";return this.lastNeed?buf+this.lastChar.toString("utf16le",
1761
1785
  0,this.lastTotal-this.lastNeed):buf}function base64Text(buf,i){var n=(buf.length-i)%3;if(0===n)return buf.toString("base64",i);this.lastNeed=3-n;this.lastTotal=3;1===n?this.lastChar[0]=buf[buf.length-1]:(this.lastChar[0]=buf[buf.length-2],this.lastChar[1]=buf[buf.length-1]);return buf.toString("base64",i,buf.length-n)}function base64End(buf){buf=buf&&buf.length?this.write(buf):"";return this.lastNeed?buf+this.lastChar.toString("base64",0,3-this.lastNeed):buf}function simpleWrite(buf){return buf.toString(this.encoding)}
1762
- function simpleEnd(buf){return buf&&buf.length?this.write(buf):""}var Buffer=__webpack_require__(105).Buffer,isEncoding=Buffer.isEncoding||function(encoding){encoding=""+encoding;switch(encoding&&encoding.toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":case "raw":return!0;default:return!1}};exports.StringDecoder=StringDecoder;StringDecoder.prototype.write=function(buf){if(0===buf.length)return"";if(this.lastNeed){var r=
1786
+ function simpleEnd(buf){return buf&&buf.length?this.write(buf):""}var Buffer=__webpack_require__(121).Buffer,isEncoding=Buffer.isEncoding||function(encoding){encoding=""+encoding;switch(encoding&&encoding.toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":case "raw":return!0;default:return!1}};exports.StringDecoder=StringDecoder;StringDecoder.prototype.write=function(buf){if(0===buf.length)return"";if(this.lastNeed){var r=
1763
1787
  this.fillLast(buf);if(void 0===r)return"";var i=this.lastNeed;this.lastNeed=0}else i=0;return i<buf.length?r?r+this.text(buf,i):this.text(buf,i):r||""};StringDecoder.prototype.end=function(buf){buf=buf&&buf.length?this.write(buf):"";return this.lastNeed?buf+"\ufffd":buf};StringDecoder.prototype.text=function(buf,i){var total=utf8CheckIncomplete(this,buf,i);if(!this.lastNeed)return buf.toString("utf8",i);this.lastTotal=total;total=buf.length-(total-this.lastNeed);buf.copy(this.lastChar,0,total);return buf.toString("utf8",
1764
1788
  i,total)};StringDecoder.prototype.fillLast=function(buf){if(this.lastNeed<=buf.length)return buf.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);buf.copy(this.lastChar,this.lastTotal-this.lastNeed,0,buf.length);this.lastNeed-=buf.length}},function(module,exports,__webpack_require__){function afterTransform(er,data){var ts=this._transformState;ts.transforming=!1;var cb=ts.writecb;if(!cb)return this.emit("error",Error("write callback called multiple times"));
1765
1789
  ts.writechunk=null;ts.writecb=null;null!=data&&this.push(data);cb(er);er=this._readableState;er.reading=!1;(er.needReadable||er.length<er.highWaterMark)&&this._read(er.highWaterMark)}function Transform(options){if(!(this instanceof Transform))return new Transform(options);Duplex.call(this,options);this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=!0;this._readableState.sync=
1766
1790
  !1;options&&("function"===typeof options.transform&&(this._transform=options.transform),"function"===typeof options.flush&&(this._flush=options.flush));this.on("prefinish",prefinish)}function prefinish(){var _this=this;"function"===typeof this._flush?this._flush(function(er,data){done(_this,er,data)}):done(this,null,null)}function done(stream,er,data){if(er)return stream.emit("error",er);null!=data&&stream.push(data);if(stream._writableState.length)throw Error("Calling transform done when ws.length != 0");
1767
- if(stream._transformState.transforming)throw Error("Calling transform done when still transforming");return stream.push(null)}module.exports=Transform;var Duplex=__webpack_require__(29);module=Object.create(__webpack_require__(38));module.inherits=__webpack_require__(25);module.inherits(Transform,Duplex);Transform.prototype.push=function(chunk,encoding){this._transformState.needTransform=!1;return Duplex.prototype.push.call(this,chunk,encoding)};Transform.prototype._transform=function(chunk,encoding,
1791
+ if(stream._transformState.transforming)throw Error("Calling transform done when still transforming");return stream.push(null)}module.exports=Transform;var Duplex=__webpack_require__(31);module=Object.create(__webpack_require__(42));module.inherits=__webpack_require__(28);module.inherits(Transform,Duplex);Transform.prototype.push=function(chunk,encoding){this._transformState.needTransform=!1;return Duplex.prototype.push.call(this,chunk,encoding)};Transform.prototype._transform=function(chunk,encoding,
1768
1792
  cb){throw Error("_transform() is not implemented");};Transform.prototype._write=function(chunk,encoding,cb){var ts=this._transformState;ts.writecb=cb;ts.writechunk=chunk;ts.writeencoding=encoding;ts.transforming||(chunk=this._readableState,(ts.needTransform||chunk.needReadable||chunk.length<chunk.highWaterMark)&&this._read(chunk.highWaterMark))};Transform.prototype._read=function(n){n=this._transformState;null!==n.writechunk&&n.writecb&&!n.transforming?(n.transforming=!0,this._transform(n.writechunk,
1769
1793
  n.writeencoding,n.afterTransform)):n.needTransform=!0};Transform.prototype._destroy=function(err,cb){var _this2=this;Duplex.prototype._destroy.call(this,err,function(err2){cb(err2);_this2.emit("close")})}},function(module,exports,__webpack_require__){(function(global){function compare(a,b){if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);i<len;++i)if(a[i]!==b[i]){x=a[i];y=b[i];break}return x<y?-1:y<x?1:0}function isBuffer(b){return global.Buffer&&"function"===typeof global.Buffer.isBuffer?
1770
1794
  global.Buffer.isBuffer(b):!(null==b||!b._isBuffer)}function isView(arrbuf){return isBuffer(arrbuf)||"function"!==typeof global.ArrayBuffer?!1:"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(arrbuf):arrbuf?arrbuf instanceof DataView||arrbuf.buffer&&arrbuf.buffer instanceof ArrayBuffer?!0:!1:!1}function getName(func){if(util.isFunction(func))return functionsHaveNames?func.name:(func=func.toString().match(regex))&&func[1]}function truncate(s,n){return"string"===typeof s?s.length<n?s:s.slice(0,
@@ -1775,12 +1799,12 @@ expected,strict,memos)}return 0===compare(new Uint8Array(actual.buffer),new Uint
1775
1799
  bIsArgs=isArguments(b);if(aIsArgs&&!bIsArgs||!aIsArgs&&bIsArgs)return!1;if(aIsArgs)return a=pSlice.call(a),b=pSlice.call(b),_deepEqual(a,b,strict);aIsArgs=objectKeys(a);var kb=objectKeys(b);if(aIsArgs.length!==kb.length)return!1;aIsArgs.sort();kb.sort();for(bIsArgs=aIsArgs.length-1;0<=bIsArgs;bIsArgs--)if(aIsArgs[bIsArgs]!==kb[bIsArgs])return!1;for(bIsArgs=aIsArgs.length-1;0<=bIsArgs;bIsArgs--)if(kb=aIsArgs[bIsArgs],!_deepEqual(a[kb],b[kb],strict,actualVisitedObjects))return!1;return!0}function notDeepStrictEqual(actual,
1776
1800
  expected,message){_deepEqual(actual,expected,!0)&&fail(actual,expected,message,"notDeepStrictEqual",notDeepStrictEqual)}function expectedException(actual,expected){if(!actual||!expected)return!1;if("[object RegExp]"==Object.prototype.toString.call(expected))return expected.test(actual);try{if(actual instanceof expected)return!0}catch(e){}return Error.isPrototypeOf(expected)?!1:!0===expected.call({},actual)}function _throws(shouldThrow,block,expected,message){if("function"!==typeof block)throw new TypeError('"block" argument must be a function');
1777
1801
  "string"===typeof expected&&(message=expected,expected=null);try{block()}catch(e){var error=e}block=error;message=(expected&&expected.name?" ("+expected.name+").":".")+(message?" "+message:".");shouldThrow&&!block&&fail(block,expected,"Missing expected exception"+message);error="string"===typeof message;var isUnwantedException=!shouldThrow&&util.isError(block),isUnexpectedException=!shouldThrow&&block&&!expected;(isUnwantedException&&error&&expectedException(block,expected)||isUnexpectedException)&&
1778
- fail(block,expected,"Got unwanted exception"+message);if(shouldThrow&&block&&expected&&!expectedException(block,expected)||!shouldThrow&&block)throw block;}function strict(value,message){value||fail(value,!0,message,"==",strict)}var objectAssign=__webpack_require__(112),util=__webpack_require__(69),hasOwn=Object.prototype.hasOwnProperty,pSlice=Array.prototype.slice,functionsHaveNames=function(){return"foo"===function(){}.name}(),assert=module.exports=ok,regex=/\s*function\s+([^\(\s]*)\s*/;assert.AssertionError=
1802
+ fail(block,expected,"Got unwanted exception"+message);if(shouldThrow&&block&&expected&&!expectedException(block,expected)||!shouldThrow&&block)throw block;}function strict(value,message){value||fail(value,!0,message,"==",strict)}var objectAssign=__webpack_require__(128),util=__webpack_require__(73),hasOwn=Object.prototype.hasOwnProperty,pSlice=Array.prototype.slice,functionsHaveNames=function(){return"foo"===function(){}.name}(),assert=module.exports=ok,regex=/\s*function\s+([^\(\s]*)\s*/;assert.AssertionError=
1779
1803
  function(options){this.name="AssertionError";this.actual=options.actual;this.expected=options.expected;this.operator=options.operator;options.message?(this.message=options.message,this.generatedMessage=!1):(this.message=truncate(inspect(this.actual),128)+" "+this.operator+" "+truncate(inspect(this.expected),128),this.generatedMessage=!0);var stackStartFunction=options.stackStartFunction||fail;Error.captureStackTrace?Error.captureStackTrace(this,stackStartFunction):(options=Error(),options.stack&&
1780
1804
  (options=options.stack,stackStartFunction=getName(stackStartFunction),stackStartFunction=options.indexOf("\n"+stackStartFunction),0<=stackStartFunction&&(stackStartFunction=options.indexOf("\n",stackStartFunction+1),options=options.substring(stackStartFunction+1)),this.stack=options))};util.inherits(assert.AssertionError,Error);assert.fail=fail;assert.ok=ok;assert.equal=function(actual,expected,message){actual!=expected&&fail(actual,expected,message,"==",assert.equal)};assert.notEqual=function(actual,
1781
1805
  expected,message){actual==expected&&fail(actual,expected,message,"!=",assert.notEqual)};assert.deepEqual=function(actual,expected,message){_deepEqual(actual,expected,!1)||fail(actual,expected,message,"deepEqual",assert.deepEqual)};assert.deepStrictEqual=function(actual,expected,message){_deepEqual(actual,expected,!0)||fail(actual,expected,message,"deepStrictEqual",assert.deepStrictEqual)};assert.notDeepEqual=function(actual,expected,message){_deepEqual(actual,expected,!1)&&fail(actual,expected,message,
1782
1806
  "notDeepEqual",assert.notDeepEqual)};assert.notDeepStrictEqual=notDeepStrictEqual;assert.strictEqual=function(actual,expected,message){actual!==expected&&fail(actual,expected,message,"===",assert.strictEqual)};assert.notStrictEqual=function(actual,expected,message){actual===expected&&fail(actual,expected,message,"!==",assert.notStrictEqual)};assert.throws=function(block,error,message){_throws(!0,block,error,message)};assert.doesNotThrow=function(block,error,message){_throws(!1,block,error,message)};
1783
- assert.ifError=function(err){if(err)throw err;};assert.strict=objectAssign(strict,assert,{equal:assert.strictEqual,deepEqual:assert.deepStrictEqual,notEqual:assert.notStrictEqual,notDeepEqual:assert.notDeepStrictEqual});assert.strict.strict=assert.strict;var objectKeys=Object.keys||function(obj){var keys=[],key;for(key in obj)hasOwn.call(obj,key)&&keys.push(key);return keys}}).call(this,__webpack_require__(11))},function(module,exports,__webpack_require__){(function(process){function inspect(obj,
1807
+ assert.ifError=function(err){if(err)throw err;};assert.strict=objectAssign(strict,assert,{equal:assert.strictEqual,deepEqual:assert.deepStrictEqual,notEqual:assert.notStrictEqual,notDeepEqual:assert.notDeepStrictEqual});assert.strict.strict=assert.strict;var objectKeys=Object.keys||function(obj){var keys=[],key;for(key in obj)hasOwn.call(obj,key)&&keys.push(key);return keys}}).call(this,__webpack_require__(15))},function(module,exports,__webpack_require__){(function(process){function inspect(obj,
1784
1808
  opts){var ctx={seen:[],stylize:stylizeNoColor};3<=arguments.length&&(ctx.depth=arguments[2]);4<=arguments.length&&(ctx.colors=arguments[3]);isBoolean(opts)?ctx.showHidden=opts:opts&&exports._extend(ctx,opts);isUndefined(ctx.showHidden)&&(ctx.showHidden=!1);isUndefined(ctx.depth)&&(ctx.depth=2);isUndefined(ctx.colors)&&(ctx.colors=!1);isUndefined(ctx.customInspect)&&(ctx.customInspect=!0);ctx.colors&&(ctx.stylize=stylizeWithColor);return formatValue(ctx,obj,ctx.depth)}function stylizeWithColor(str,
1785
1809
  styleType){return(styleType=inspect.styles[styleType])?"\u001b["+inspect.colors[styleType][0]+"m"+str+"\u001b["+inspect.colors[styleType][1]+"m":str}function stylizeNoColor(str,styleType){return str}function arrayToHash(array){var hash={};array.forEach(function(val,idx){hash[val]=!0});return hash}function formatValue(ctx,value,recurseTimes){if(ctx.customInspect&&value&&isFunction(value.inspect)&&value.inspect!==exports.inspect&&(!value.constructor||value.constructor.prototype!==value)){var ret=value.inspect(recurseTimes,
1786
1810
  ctx);isString(ret)||(ret=formatValue(ctx,ret,recurseTimes));return ret}if(ret=formatPrimitive(ctx,value))return ret;var keys=Object.keys(value),visibleKeys=arrayToHash(keys);ctx.showHidden&&(keys=Object.getOwnPropertyNames(value));if(isError(value)&&(0<=keys.indexOf("message")||0<=keys.indexOf("description")))return formatError(value);if(0===keys.length){if(isFunction(value))return ctx.stylize("[Function"+(value.name?": "+value.name:"")+"]","special");if(isRegExp(value))return ctx.stylize(RegExp.prototype.toString.call(value),
@@ -1797,33 +1821,33 @@ x)return"%";if(i>=len)return x;switch(x){case "%s":return String(args[i++]);case
1797
1821
  typeof process)return function(){return exports.deprecate(fn,msg).apply(this,arguments)};var warned=!1;return function(){if(!warned){if(process.throwDeprecation)throw Error(msg);process.traceDeprecation?console.trace(msg):console.error(msg);warned=!0}return fn.apply(this,arguments)}};var debugs={},debugEnviron;exports.debuglog=function(set){isUndefined(debugEnviron)&&(debugEnviron=process.env.NODE_DEBUG||"");set=set.toUpperCase();if(!debugs[set])if((new RegExp("\\b"+set+"\\b","i")).test(debugEnviron)){var pid=
1798
1822
  process.pid;debugs[set]=function(){var msg=exports.format.apply(exports,arguments);console.error("%s %d: %s",set,pid,msg)}}else debugs[set]=function(){};return debugs[set]};exports.inspect=inspect;inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};inspect.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",
1799
1823
  date:"magenta",regexp:"red"};exports.isArray=isArray;exports.isBoolean=isBoolean;exports.isNull=function(arg){return null===arg};exports.isNullOrUndefined=function(arg){return null==arg};exports.isNumber=isNumber;exports.isString=isString;exports.isSymbol=function(arg){return"symbol"===typeof arg};exports.isUndefined=isUndefined;exports.isRegExp=isRegExp;exports.isObject=isObject;exports.isDate=isDate;exports.isError=isError;exports.isFunction=isFunction;exports.isPrimitive=function(arg){return null===
1800
- arg||"boolean"===typeof arg||"number"===typeof arg||"string"===typeof arg||"symbol"===typeof arg||"undefined"===typeof arg};exports.isBuffer=__webpack_require__(113);var months="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ");exports.log=function(){var JSCompiler_temp_const=console,JSCompiler_temp_const$jscomp$0=JSCompiler_temp_const.log;var JSCompiler_inline_result=new Date;var time=[pad(JSCompiler_inline_result.getHours()),pad(JSCompiler_inline_result.getMinutes()),pad(JSCompiler_inline_result.getSeconds())].join(":");
1801
- JSCompiler_inline_result=[JSCompiler_inline_result.getDate(),months[JSCompiler_inline_result.getMonth()],time].join(" ");JSCompiler_temp_const$jscomp$0.call(JSCompiler_temp_const,"%s - %s",JSCompiler_inline_result,exports.format.apply(exports,arguments))};exports.inherits=__webpack_require__(114);exports._extend=function(origin,add){if(!add||!isObject(add))return origin;for(var keys=Object.keys(add),i=keys.length;i--;)origin[keys[i]]=add[keys[i]];return origin};var kCustomPromisifiedSymbol="undefined"!==
1824
+ arg||"boolean"===typeof arg||"number"===typeof arg||"string"===typeof arg||"symbol"===typeof arg||"undefined"===typeof arg};exports.isBuffer=__webpack_require__(129);var months="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ");exports.log=function(){var JSCompiler_temp_const=console,JSCompiler_temp_const$jscomp$0=JSCompiler_temp_const.log;var JSCompiler_inline_result=new Date;var time=[pad(JSCompiler_inline_result.getHours()),pad(JSCompiler_inline_result.getMinutes()),pad(JSCompiler_inline_result.getSeconds())].join(":");
1825
+ JSCompiler_inline_result=[JSCompiler_inline_result.getDate(),months[JSCompiler_inline_result.getMonth()],time].join(" ");JSCompiler_temp_const$jscomp$0.call(JSCompiler_temp_const,"%s - %s",JSCompiler_inline_result,exports.format.apply(exports,arguments))};exports.inherits=__webpack_require__(130);exports._extend=function(origin,add){if(!add||!isObject(add))return origin;for(var keys=Object.keys(add),i=keys.length;i--;)origin[keys[i]]=add[keys[i]];return origin};var kCustomPromisifiedSymbol="undefined"!==
1802
1826
  typeof Symbol?Symbol("util.promisify.custom"):void 0;exports.promisify=function(original){function fn(){for(var promiseResolve,promiseReject,promise=new Promise(function(resolve,reject){promiseResolve=resolve;promiseReject=reject}),args=[],i=0;i<arguments.length;i++)args.push(arguments[i]);args.push(function(err,value){err?promiseReject(err):promiseResolve(value)});try{original.apply(this,args)}catch(err){promiseReject(err)}return promise}if("function"!==typeof original)throw new TypeError('The "original" argument must be of type Function');
1803
1827
  if(kCustomPromisifiedSymbol&&original[kCustomPromisifiedSymbol]){fn=original[kCustomPromisifiedSymbol];if("function"!==typeof fn)throw new TypeError('The "util.promisify.custom" argument must be of type Function');Object.defineProperty(fn,kCustomPromisifiedSymbol,{value:fn,enumerable:!1,writable:!1,configurable:!0});return fn}Object.setPrototypeOf(fn,Object.getPrototypeOf(original));kCustomPromisifiedSymbol&&Object.defineProperty(fn,kCustomPromisifiedSymbol,{value:fn,enumerable:!1,writable:!1,configurable:!0});
1804
1828
  return Object.defineProperties(fn,getOwnPropertyDescriptors(original))};exports.promisify.custom=kCustomPromisifiedSymbol;exports.callbackify=function(original){function callbackified(){for(var args=[],i=0;i<arguments.length;i++)args.push(arguments[i]);var maybeCb=args.pop();if("function"!==typeof maybeCb)throw new TypeError("The last argument must be of type Function");var self=this,cb=function(){return maybeCb.apply(self,arguments)};original.apply(this,args).then(function(ret){process.nextTick(cb,
1805
- null,ret)},function(rej){process.nextTick(callbackifyOnRejected,rej,cb)})}if("function"!==typeof original)throw new TypeError('The "original" argument must be of type Function');Object.setPrototypeOf(callbackified,Object.getPrototypeOf(original));Object.defineProperties(callbackified,getOwnPropertyDescriptors(original));return callbackified}}).call(this,__webpack_require__(21))},function(module,exports,__webpack_require__){module.exports=function(adler,buf,len,pos){var s1=adler&65535|0;adler=adler>>>
1829
+ null,ret)},function(rej){process.nextTick(callbackifyOnRejected,rej,cb)})}if("function"!==typeof original)throw new TypeError('The "original" argument must be of type Function');Object.setPrototypeOf(callbackified,Object.getPrototypeOf(original));Object.defineProperties(callbackified,getOwnPropertyDescriptors(original));return callbackified}}).call(this,__webpack_require__(23))},function(module,exports,__webpack_require__){module.exports=function(adler,buf,len,pos){var s1=adler&65535|0;adler=adler>>>
1806
1830
  16&65535|0;for(var n;0!==len;){n=2E3<len?2E3:len;len-=n;do s1=s1+buf[pos++]|0,adler=adler+s1|0;while(--n);s1%=65521;adler%=65521}return s1|adler<<16|0}},function(module,exports,__webpack_require__){var crcTable=function(){for(var c,table=[],n=0;256>n;n++){c=n;for(var k=0;8>k;k++)c=c&1?3988292384^c>>>1:c>>>1;table[n]=c}return table}();module.exports=function(crc,buf,len,pos){len=pos+len;for(crc^=-1;pos<len;pos++)crc=crc>>>8^crcTable[(crc^buf[pos])&255];return crc^-1}},function(module,exports,__webpack_require__){(function(global){var ClientRequest=
1807
- __webpack_require__(124),response=__webpack_require__(74),extend=__webpack_require__(126),statusCodes=__webpack_require__(127),url=__webpack_require__(58);exports.request=function(opts,cb){opts="string"===typeof opts?url.parse(opts):extend(opts);var defaultProtocol=-1===global.location.protocol.search(/^https?:$/)?"http:":"";defaultProtocol=opts.protocol||defaultProtocol;var host=opts.hostname||opts.host,port=opts.port,path=opts.path||"/";host&&-1!==host.indexOf(":")&&(host="["+host+"]");opts.url=
1831
+ __webpack_require__(140),response=__webpack_require__(78),extend=__webpack_require__(142),statusCodes=__webpack_require__(143),url=__webpack_require__(61);exports.request=function(opts,cb){opts="string"===typeof opts?url.parse(opts):extend(opts);var defaultProtocol=-1===global.location.protocol.search(/^https?:$/)?"http:":"";defaultProtocol=opts.protocol||defaultProtocol;var host=opts.hostname||opts.host,port=opts.port,path=opts.path||"/";host&&-1!==host.indexOf(":")&&(host="["+host+"]");opts.url=
1808
1832
  (host?defaultProtocol+"//"+host:"")+(port?":"+port:"")+path;opts.method=(opts.method||"GET").toUpperCase();opts.headers=opts.headers||{};opts=new ClientRequest(opts);if(cb)opts.on("response",cb);return opts};exports.get=function(opts,cb){opts=exports.request(opts,cb);opts.end();return opts};exports.ClientRequest=ClientRequest;exports.IncomingMessage=response.IncomingMessage;exports.Agent=function(){};exports.Agent.defaultMaxSockets=4;exports.globalAgent=new exports.Agent;exports.STATUS_CODES=statusCodes;
1809
- exports.METHODS="CHECKOUT CONNECT COPY DELETE GET HEAD LOCK M-SEARCH MERGE MKACTIVITY MKCOL MOVE NOTIFY OPTIONS PATCH POST PROPFIND PROPPATCH PURGE PUT REPORT SEARCH SUBSCRIBE TRACE UNLOCK UNSUBSCRIBE".split(" ")}).call(this,__webpack_require__(11))},function(module,exports,__webpack_require__){(function(global){function getXHR(){if(void 0!==xhr$jscomp$0)return xhr$jscomp$0;if(global.XMLHttpRequest){xhr$jscomp$0=new global.XMLHttpRequest;try{xhr$jscomp$0.open("GET",global.XDomainRequest?"/":"https://example.com")}catch(e$10){xhr$jscomp$0=
1833
+ exports.METHODS="CHECKOUT CONNECT COPY DELETE GET HEAD LOCK M-SEARCH MERGE MKACTIVITY MKCOL MOVE NOTIFY OPTIONS PATCH POST PROPFIND PROPPATCH PURGE PUT REPORT SEARCH SUBSCRIBE TRACE UNLOCK UNSUBSCRIBE".split(" ")}).call(this,__webpack_require__(15))},function(module,exports,__webpack_require__){(function(global){function getXHR(){if(void 0!==xhr$jscomp$0)return xhr$jscomp$0;if(global.XMLHttpRequest){xhr$jscomp$0=new global.XMLHttpRequest;try{xhr$jscomp$0.open("GET",global.XDomainRequest?"/":"https://example.com")}catch(e$10){xhr$jscomp$0=
1810
1834
  null}}else xhr$jscomp$0=null;return xhr$jscomp$0}function checkTypeSupport(type){var xhr=getXHR();if(!xhr)return!1;try{return xhr.responseType=type,xhr.responseType===type}catch(e$11){}return!1}function isFunction(value){return"function"===typeof value}exports.fetch=isFunction(global.fetch)&&isFunction(global.ReadableStream);exports.writableStream=isFunction(global.WritableStream);exports.abortController=isFunction(global.AbortController);exports.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),
1811
1835
  exports.blobConstructor=!0}catch(e){}var haveArrayBuffer="undefined"!==typeof global.ArrayBuffer,haveSlice=haveArrayBuffer&&isFunction(global.ArrayBuffer.prototype.slice);exports.arraybuffer=exports.fetch||haveArrayBuffer&&checkTypeSupport("arraybuffer");exports.msstream=!exports.fetch&&haveSlice&&checkTypeSupport("ms-stream");exports.mozchunkedarraybuffer=!exports.fetch&&haveArrayBuffer&&checkTypeSupport("moz-chunked-arraybuffer");exports.overrideMimeType=exports.fetch||(getXHR()?isFunction(getXHR().overrideMimeType):
1812
- !1);exports.vbArray=isFunction(global.VBArray);var xhr$jscomp$0=null}).call(this,__webpack_require__(11))},function(module,exports,__webpack_require__){(function(process,Buffer,global){var capability=__webpack_require__(73),inherits=__webpack_require__(25),stream=__webpack_require__(37),rStates=exports.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},IncomingMessage=exports.IncomingMessage=function(xhr,response,mode,fetchTimer){var self=this;stream.Readable.call(self);self._mode=
1836
+ !1);exports.vbArray=isFunction(global.VBArray);var xhr$jscomp$0=null}).call(this,__webpack_require__(15))},function(module,exports,__webpack_require__){(function(process,Buffer,global){var capability=__webpack_require__(77),inherits=__webpack_require__(28),stream=__webpack_require__(41),rStates=exports.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},IncomingMessage=exports.IncomingMessage=function(xhr,response,mode,fetchTimer){var self=this;stream.Readable.call(self);self._mode=
1813
1837
  mode;self.headers={};self.rawHeaders=[];self.trailers={};self.rawTrailers=[];self.on("end",function(){process.nextTick(function(){self.emit("close")})});if("fetch"===mode){var read=function(){reader.read().then(function(result){self._destroyed||(result.done?(global.clearTimeout(fetchTimer),self.push(null)):(self.push(new Buffer(result.value)),read()))}).catch(function(err){global.clearTimeout(fetchTimer);self._destroyed||self.emit("error",err)})};self._fetchResponse=response;self.url=response.url;
1814
1838
  self.statusCode=response.status;self.statusMessage=response.statusText;response.headers.forEach(function(header,key){self.headers[key.toLowerCase()]=header;self.rawHeaders.push(key,header)});if(capability.writableStream){xhr=new WritableStream({write:function(chunk){return new Promise(function(resolve,reject){self._destroyed?reject():self.push(new Buffer(chunk))?resolve():self._resumeFetch=resolve})},close:function(){global.clearTimeout(fetchTimer);self._destroyed||self.push(null)},abort:function(err){self._destroyed||
1815
1839
  self.emit("error",err)}});try{response.body.pipeTo(xhr).catch(function(err){global.clearTimeout(fetchTimer);self._destroyed||self.emit("error",err)});return}catch(e){}}var reader=response.body.getReader();read()}else if(self._xhr=xhr,self._pos=0,self.url=xhr.responseURL,self.statusCode=xhr.status,self.statusMessage=xhr.statusText,xhr.getAllResponseHeaders().split(/\r?\n/).forEach(function(header){if(header=header.match(/^([^:]+):\s*(.*)/)){var key=header[1].toLowerCase();"set-cookie"===key?(void 0===
1816
1840
  self.headers[key]&&(self.headers[key]=[]),self.headers[key].push(header[2])):self.headers[key]=void 0!==self.headers[key]?self.headers[key]+(", "+header[2]):header[2];self.rawHeaders.push(header[1],header[2])}}),self._charset="x-user-defined",!capability.overrideMimeType){if(response=self.rawHeaders["mime-type"])if(response=response.match(/;\s*charset=([^;])(;|$)/))self._charset=response[1].toLowerCase();self._charset||(self._charset="utf-8")}};inherits(IncomingMessage,stream.Readable);IncomingMessage.prototype._read=
1817
1841
  function(){var resolve=this._resumeFetch;resolve&&(this._resumeFetch=null,resolve())};IncomingMessage.prototype._onXHRProgress=function(){var self=this,xhr=self._xhr,response=null;switch(self._mode){case "text:vbarray":if(xhr.readyState!==rStates.DONE)break;try{response=(new global.VBArray(xhr.responseBody)).toArray()}catch(e){}if(null!==response){self.push(new Buffer(response));break}case "text":try{response=xhr.responseText}catch(e$12){self._mode="text:vbarray";break}if(response.length>self._pos){xhr=
1818
1842
  response.substr(self._pos);if("x-user-defined"===self._charset){for(var buffer=new Buffer(xhr.length),i=0;i<xhr.length;i++)buffer[i]=xhr.charCodeAt(i)&255;self.push(buffer)}else self.push(xhr,self._charset);self._pos=response.length}break;case "arraybuffer":if(xhr.readyState!==rStates.DONE||!xhr.response)break;response=xhr.response;self.push(new Buffer(new Uint8Array(response)));break;case "moz-chunked-arraybuffer":response=xhr.response;if(xhr.readyState!==rStates.LOADING||!response)break;self.push(new Buffer(new Uint8Array(response)));
1819
- break;case "ms-stream":if(response=xhr.response,xhr.readyState===rStates.LOADING){var reader=new global.MSStreamReader;reader.onprogress=function(){reader.result.byteLength>self._pos&&(self.push(new Buffer(new Uint8Array(reader.result.slice(self._pos)))),self._pos=reader.result.byteLength)};reader.onload=function(){self.push(null)};reader.readAsArrayBuffer(response)}}self._xhr.readyState===rStates.DONE&&"ms-stream"!==self._mode&&self.push(null)}}).call(this,__webpack_require__(21),__webpack_require__(20).Buffer,
1820
- __webpack_require__(11))},function(module,__webpack_exports__,__webpack_require__){var _Matrix__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(16),_Point__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(15);(function(){function TransformationBuilder(initial){void 0===initial&&(initial=[]);this.queue=initial||[]}Object.defineProperty(TransformationBuilder.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0});TransformationBuilder.prototype.getAt=function(index){return this.queue[this.queue.length-
1843
+ break;case "ms-stream":if(response=xhr.response,xhr.readyState===rStates.LOADING){var reader=new global.MSStreamReader;reader.onprogress=function(){reader.result.byteLength>self._pos&&(self.push(new Buffer(new Uint8Array(reader.result.slice(self._pos)))),self._pos=reader.result.byteLength)};reader.onload=function(){self.push(null)};reader.readAsArrayBuffer(response)}}self._xhr.readyState===rStates.DONE&&"ms-stream"!==self._mode&&self.push(null)}}).call(this,__webpack_require__(23),__webpack_require__(22).Buffer,
1844
+ __webpack_require__(15))},function(module,__webpack_exports__,__webpack_require__){var _Matrix__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(18),_Point__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(17);(function(){function TransformationBuilder(initial){void 0===initial&&(initial=[]);this.queue=initial||[]}Object.defineProperty(TransformationBuilder.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0});TransformationBuilder.prototype.getAt=function(index){return this.queue[this.queue.length-
1821
1845
  1-index]};TransformationBuilder.prototype.setAt=function(index,transform){this.queue[this.queue.length-1-index]=transform;return this};TransformationBuilder.prototype.insertAt=function(index,transform){this.queue.splice(this.queue.length-1-index,0,transform);return this};TransformationBuilder.prototype.removeAt=function(index){this.queue.splice(this.queue.length-1-index,1);return this};TransformationBuilder.prototype.push=function(transform){this.queue.unshift(transform);return this};TransformationBuilder.prototype.pop=
1822
1846
  function(){this.queue.shift();return this};TransformationBuilder.prototype.translate=function(x,y){void 0===x&&(x=0);void 0===y&&(y=0);var transform=new _Matrix__WEBPACK_IMPORTED_MODULE_0__.a;transform.setTranslate(x,y);this.push(transform);return this};TransformationBuilder.prototype.translateTo=function(sx,sy,dx,dy){sx=new _Point__WEBPACK_IMPORTED_MODULE_1__.a(sx,sy);dx=(new _Point__WEBPACK_IMPORTED_MODULE_1__.a(dx,dy)).subtract(sx);dy=new _Matrix__WEBPACK_IMPORTED_MODULE_0__.a;dy.setTranslate(dx.X,
1823
1847
  dx.Y);this.push(dy);return this};TransformationBuilder.prototype.scale=function(x,y){if(null===x||void 0===x)x=1;if(null===y||void 0===y)y=x;var transform=new _Matrix__WEBPACK_IMPORTED_MODULE_0__.a;transform.setScale(x,y);this.push(transform);return this};TransformationBuilder.prototype.skew=function(x,y){var transform=new _Matrix__WEBPACK_IMPORTED_MODULE_0__.a;transform.setSkew(x,y);this.push(transform);return this};TransformationBuilder.prototype.rotate=function(angle,inRadians){void 0===inRadians&&
1824
1848
  (inRadians=!1);var transform=new _Matrix__WEBPACK_IMPORTED_MODULE_0__.a;transform.setRotation(angle,inRadians);this.push(transform);return this};TransformationBuilder.prototype.getFinalTransform=function(){return this.queue.reduce(function(prev,t){return prev.multiply(t)},_Matrix__WEBPACK_IMPORTED_MODULE_0__.a.Identity)};TransformationBuilder.prototype.clear=function(){delete this.queue;this.queue=[];return this};return TransformationBuilder})()},function(module,__webpack_exports__,__webpack_require__){var _Quad__WEBPACK_IMPORTED_MODULE_0__=
1825
- __webpack_require__(9),logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_Highlights__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(39),_ResultCode__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(13),_SearchMode__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_Highlight__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(35),_ResultRun__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(19),_ResultDetermineOriRange__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(49),_ResultFindTexts__WEBPACK_IMPORTED_MODULE_8__=
1826
- __webpack_require__(31),_SearchPattern__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(32),_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(23),_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(3);(function(){function TextSearchLowLevel(){this._reg=this._m=null;this._regExs={};this._m_SearchMode=0;this._m_PageBufCurItr=this._m_EndPageItr=this._m_BgnPageItr=this._m_CurPageItr=-1;this._m_SaveContentQuads=this._m_HyphenSrcOnly=this._m_Ready=this._m_ReturnedPage=
1849
+ __webpack_require__(12),logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_Highlights__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(43),_ResultCode__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(16),_SearchMode__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7),_Highlight__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(38),_ResultRun__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(21),_ResultDetermineOriRange__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(54),_ResultFindTexts__WEBPACK_IMPORTED_MODULE_8__=
1850
+ __webpack_require__(33),_SearchPattern__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(25),_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(4);(function(){function TextSearchLowLevel(){this._reg=this._m=null;this._regExs={};this._m_SearchMode=0;this._m_PageBufCurItr=this._m_EndPageItr=this._m_BgnPageItr=this._m_CurPageItr=-1;this._m_SaveContentQuads=this._m_HyphenSrcOnly=this._m_Ready=this._m_ReturnedPage=
1827
1851
  !1;this._m_BufEOLByHyphenPos=[];this._m_BufRegByHyphenPos=[];this._m_SrcHyphenPos=[];this._m_Contents_PDF=this._m_Contents_Src="";this._m_Src_PDF_Map=[];this._m_ContentOffsets=[];this._m_OffsetMissing=[];this._m_ContentQuads=[];this._m_BreakSymbols={};this._m_BreakSymbols[" "]=null;this._m_BreakSymbols["\t"]=null;this._m_BreakSymbols["\n"]=null;this._m_BreakSymbols["."]=null;this._m_BreakSymbols[","]=null;this._m_BreakSymbols["?"]=null;this._m_BreakSymbols[":"]=null;this._m_BreakSymbols[";"]=null;
1828
1852
  this._m_BreakSymbols['"']=null;this._m_BreakSymbols["'"]=null;this._m_BreakSymbols["<"]=null;this._m_BreakSymbols[">"]=null;this._m_BreakSymbols["`"]=null;this._m_BreakSymbols["~"]=null;this._m_BreakSymbols["!"]=null;this._m_BreakSymbols["@"]=null;this._m_BreakSymbols["#"]=null;this._m_BreakSymbols.$=null;this._m_BreakSymbols["%"]=null;this._m_BreakSymbols["^"]=null;this._m_BreakSymbols["&"]=null;this._m_BreakSymbols["("]=null;this._m_BreakSymbols[")"]=null;this._m_BreakSymbols["["]=null;this._m_BreakSymbols["]"]=
1829
1853
  null;this._m_BreakSymbols["{"]=null;this._m_BreakSymbols["}"]=null;this._m_BreakSymbols["|"]=null;this._m_BreakSymbols._=null;this._m_BreakSymbols["\\"]=null;this._m_BreakSymbols["-"]=null;this._m_BreakSymbols["="]=null;this._m_BreakSymbols["+"]=null;this._m_BreakSymbols["/"]=null;this._m_BreakSymbols["*"]=null}TextSearchLowLevel.binarySearch=function(ol,v){for(var s=0,e=ol.length-1,m=Math.floor((s+e)/2);ol[m]!==v&&s<e;)v<ol[m]?e=m-1:v>ol[m]&&(s=m+1),m=Math.floor((s+e)/2);return ol[m]===v};TextSearchLowLevel.prototype.begin=
@@ -1875,166 +1899,176 @@ this._m_Src_PDF_Map.length);this._m_Contents_Src=spi;if(highlight_on){sz=this._m
1875
1899
  this._m_BufRegByHyphenPos.sort(highlight_on);this._m_SrcHyphenPos.sort(highlight_on);return!0};TextSearchLowLevel.prototype._addHighlightInfo=function(off,quads,start){this._m_ContentOffsets.push(off);if(this._m_SaveContentQuads)for(off=start;off<start+8;++off)this._m_ContentQuads.push(quads[off])};TextSearchLowLevel.prototype._determineOriRange=function(_s,_e,s,e,match_size){s?(_s=this._m_Src_PDF_Map[s-1],++_s):_s=0;e<this._m_Src_PDF_Map.length?_e=this._m_Src_PDF_Map[e]:(_e=this._m_Src_PDF_Map[e-
1876
1900
  1],_e===this._m_Contents_PDF.length-1&&++_e);Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(_s>=s&&_e>=e&&_e>=_s);if(!this._m_HyphenSrcOnly){if(!TextSearchLowLevel.binarySearch(this._m_SrcHyphenPos,match_size-1))for(;0<_e&&this._isHyphen(this._m_Contents_PDF.charAt(_e-1));)--_e;s=this._m_Contents_PDF.length;if(!TextSearchLowLevel.binarySearch(this._m_SrcHyphenPos,-1))for(;_s<s-1&&this._isHyphen(this._m_Contents_PDF.charAt(_s));)++_s;_e<_s&&(Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(!1),_e=_s)}return new _ResultDetermineOriRange__WEBPACK_IMPORTED_MODULE_7__.a(_s,
1877
1901
  _e)};TextSearchLowLevel.prototype._continousInPDF=function(offset,start,end){Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(0<=start&&start<=end&&start<offset.length&&end<offset.length);start=offset[start];offset=offset[end];if(start===offset||start+1===offset)return!0;for(end=!0;0<=start&&start<offset-1;)if(!this._m_OffsetMissing[++start]){end=!1;break}return end};return TextSearchLowLevel})()},function(module,__webpack_exports__,__webpack_require__){function createPageEndEvent(pageNumber){return{ambientStr:"",
1878
- resultStr:"",resultStrStart:-1,resultStrEnd:-1,pageNum:pageNumber,resultCode:_ResultCode__WEBPACK_IMPORTED_MODULE_2__.a.PAGE,quads:[],ambient_str:"",result_str:"",result_str_start:-1,result_str_end:-1,page_num:pageNumber}}var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5),_SearchMode__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6),_ResultCode__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(13),_Quad__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(9),_namespaces_Core_Workers_BackendType__WEBPACK_IMPORTED_MODULE_4__=
1879
- __webpack_require__(87),_util_constants_events__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(30);(function(){function PDFTextSearch(){var _this=this;this.onSearchCallback=function(){};this.isSearchUpOn=!1;this.currentSearchID=this.currentPage=0;this.searchBatchSize=50;this.initialSearchResult=this.lastSearch=null;Object(_namespaces_Core_Workers_BackendType__WEBPACK_IMPORTED_MODULE_4__.a)().then(function(type){_this.isUsingThreadedWorkers="wasm-threads"===type})}PDFTextSearch.prototype.cancelSearch=
1880
- function(){this.currentSearchID++};PDFTextSearch.prototype.shouldStopSearching=function(searchID){return searchID!==this.currentSearchID};PDFTextSearch.prototype.resultCallBack=function(results,searchID){var _this=this;results.forEach(function(result){var _a;if(!_this.shouldStopSearching(searchID)){_this.resultFound=!0;for(_this.doc.getDocumentViewer().viewerPageManager.setPageSelectedText(result.page_num-1,result.out_str);!_this.isSearchUpOn&&_this.currentPage<result.page_num||_this.isSearchUpOn&&
1881
- _this.currentPage>result.page_num;)_this.onSearchCallback(createPageEndEvent(_this.currentPage)),_this.isSearchUpOn?_this.currentPage--:_this.currentPage++;var pageMatrix=_this.doc.getPages()[result.page_num-1].matrix,quads=[];(null===(_a=result.highlights)||void 0===_a?0:_a.length)&&result.highlights.forEach(function(highlight){highlight.quads.forEach(function(q){pageMatrix.transformQuad(q);var quad=new _Quad__WEBPACK_IMPORTED_MODULE_3__.a;quad.x1=q[0];quad.x2=q[2];quad.x3=q[4];quad.x4=q[6];quad.y1=
1882
- q[1];quad.y2=q[3];quad.y3=q[5];quad.y4=q[7];quads.push(quad)})});result={ambientStr:result.ambient_str||"",resultStr:result.out_str||"",resultStrStart:result.ambient_str?result.first_idx_within_ambient_str:-1,resultStrEnd:result.ambient_str?result.first_idx_within_ambient_str+result.out_str.length:-1,pageNum:result.page_num,resultCode:_ResultCode__WEBPACK_IMPORTED_MODULE_2__.a.FOUND,quads:quads,ambient_str:result.ambient_str||"",result_str:result.out_str,result_str_start:result.ambient_str?result.ambient_str.indexOf(result.out_str):
1883
- -1,result_str_end:result.ambient_str?result.ambient_str.indexOf(result.out_str)+result.out_str.length:-1,page_num:result.page_num};_this.onSearchCallback(result)}})};PDFTextSearch.prototype.fireRemainingEvents=function(lastPageNumber,startPage,endPage){for(;!this.isSearchUpOn&&lastPageNumber<=endPage||this.isSearchUpOn&&lastPageNumber>=startPage;)this.onSearchCallback(createPageEndEvent(lastPageNumber)),this.isSearchUpOn?lastPageNumber--:lastPageNumber++;this.onSearchCallback({ambientStr:"",resultStr:"",
1884
- resultStrStart:-1,resultStrEnd:-1,pageNum:0,resultCode:_ResultCode__WEBPACK_IMPORTED_MODULE_2__.a.DONE,quads:[],ambient_str:"",result_str:"",result_str_start:-1,result_str_end:-1,page_num:0})};PDFTextSearch.prototype.getLatestSearch=function(results,start,end){1===start&&(this.initialSearchResult=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]));if(!this.lastSearch||this.lastSearch.page_num<start)this.lastSearch=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]);
1885
- else{var currentPage=this.lastSearch.page_num;start=results.filter(function(rs){return rs.page_num===currentPage});if(start.length){var nextIndex=this.lastSearch.index+1;nextIndex===start.length?(start=results.filter(function(result){return result.page_num>currentPage}),this.lastSearch=currentPage!==end&&start.length?Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},start[0]):this.initialSearchResult):this.lastSearch=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:nextIndex},start[nextIndex])}else this.lastSearch=
1886
- Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0])}};PDFTextSearch.prototype.searchTillDone=function(start,end,searchID){var _this=this;if(start>end)return this.fireRemainingEvents(this.currentPage,this.searchStartPage,this.searchEndPage),Promise.resolve(!0);var searchStart=this.isSearchUpOn?Math.max(start,end-this.searchBatchSize):start,searchEnd=this.isSearchUpOn?end:Math.min(start+this.searchBatchSize,end);return this.doc.textSearch(this.searchPattern,this.searchMode,searchStart,
1887
- searchEnd).then(function(results){if(_this.shouldStopSearching(searchID))return Promise.resolve(!1);if(!_this.isFullSearch&&0<results.length)return _this.getLatestSearch(results,start,end),_this.resultCallBack([_this.lastSearch],searchID),Promise.resolve(!0);_this.resultCallBack(results,searchID);var searchNextBatch=function(){return _this.pauseSearch&&!_this.isUsingThreadedWorkers?new Promise(function(resolve){_this.doc.getDocumentViewer().addEventListener(_util_constants_events__WEBPACK_IMPORTED_MODULE_5__.DocumentViewerEvents.FINISHED_RENDERING,
1888
- function(){_this.pauseSearch=!1;resolve(searchNextBatch())},{once:!0})}):_this.isSearchUpOn?_this.searchTillDone(start,searchStart-1,searchID):_this.searchTillDone(searchEnd+1,end,searchID)};return searchNextBatch()})};PDFTextSearch.prototype.convertMode=function(mode){var newMode=0;newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.WILD_CARD|mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.REGEX?newMode|1:newMode;newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.CASE_SENSITIVE?newMode|
1889
- 2:newMode;newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.WHOLE_WORD?newMode|4:newMode;newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.SEARCH_UP?newMode|8:newMode;newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.PAGE_STOP?newMode|16:newMode;newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.HIGHLIGHT?newMode|32:newMode;return newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.AMBIENT_STRING?newMode|64:newMode};PDFTextSearch.prototype.setSearchBatchSize=function(searchBatchSize){this.searchBatchSize=
1890
- searchBatchSize};PDFTextSearch.prototype.search=function(doc,pattern,mode,start_page,end_page,onSearchCallback,isFullSearch){var _this=this;this.currentSearchID++;this.resultFound=!1;this.doc&&this.doc!==doc||(doc.getDocumentViewer().addEventListener(_util_constants_events__WEBPACK_IMPORTED_MODULE_5__.DocumentViewerEvents.BEGIN_RENDERING,function(){_this.pauseSearch=!0}),doc.getDocumentViewer().addEventListener(_util_constants_events__WEBPACK_IMPORTED_MODULE_5__.DocumentViewerEvents.FINISHED_RENDERING,
1891
- function(){_this.pauseSearch=!1}));this.doc=doc;this.onSearchCallback=onSearchCallback;this.isSearchUpOn=!!(mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.SEARCH_UP);this.isFullSearch=isFullSearch;this.searchPattern=pattern;mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.WILD_CARD&&(this.searchPattern=pattern.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replaceAll("**","[TEMPEscape]").replaceAll("*","[A-z]*").replaceAll("[TEMPEscape]","\\*"));this.searchPattern=this.searchPattern.replaceAll("\n","");this.searchMode=
1892
- this.convertMode(mode);this.searchEndPage=end_page||doc.getPageCount();!isFullSearch&&this.lastSearch?mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.CASE_SENSITIVE?pattern===this.lastSearch.out_str?this.searchStartPage=this.lastSearch.page_num:(this.searchStartPage=1,this.initialSearchResult=this.lastSearch=null):pattern.toLocaleLowerCase()===this.lastSearch.out_str.toLocaleLowerCase()?this.searchStartPage=this.lastSearch.page_num:(this.searchStartPage=1,this.initialSearchResult=this.lastSearch=
1893
- null):this.searchStartPage=start_page||1;this.currentPage=this.isSearchUpOn?this.searchEndPage:this.searchStartPage;return this.searchTillDone(this.searchStartPage,this.searchEndPage,this.currentSearchID)};return PDFTextSearch})()},function(module,__webpack_exports__,__webpack_require__){var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_selectionInfo_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(10),_Quad__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9),_Matrix2D__WEBPACK_IMPORTED_MODULE_3__=
1894
- __webpack_require__(12),_TextSelectionBlock__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(40),_Point2D__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(17),_ResultFindStructuralBounds__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(41),_selectionInfo__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1),_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(3);(function(){function TextLocator(doc){this._m_Str="";this._m_PrePage=-1;this._m_Quads=[];this._m_Texts="";this._m_Pages=doc.getPages();
1895
- this._m_Words=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.b;this._m_Words.initDefault();this._m_Blocks=[];this._m_Surrtxts=[];this._m_Selidxs=[];this._m_Direction=0;this._m_Horizontal=!1}TextLocator.prototype.getQuads=function(){for(var sz=this._m_Quads.length/8,quads=[],i=0;i<sz;++i){var q=new _Quad__WEBPACK_IMPORTED_MODULE_2__.a,pos=8*i;q._setCoordinates(this._m_Quads[pos],this._m_Quads[pos+1],this._m_Quads[pos+2],this._m_Quads[pos+3],this._m_Quads[pos+4],this._m_Quads[pos+5],this._m_Quads[pos+
1896
- 6],this._m_Quads[pos+7]);quads.push(q)}return quads};TextLocator.prototype.getTexts=function(){return this._m_Texts};TextLocator.prototype._isWhitespace=function(s){s=s.charCodeAt(0);return 32===s||1<=s&&31>=s||160===s||8192<=s&&(8207>=s||8232<=s&&8239>=s||8298<=s&&8303>=s)?!0:!1};TextLocator.prototype._selectByRect=function(page_number,sel_rect){--page_number;Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(this._m_Quads);this._m_Texts="";sel_rect.normalize();for(var page_texts=[],all_pages_str=
1897
- "",i,i_1=page_number-1;i_1<page_number+2;i_1++)this._performMiscPageSetup(i_1)&&(page_texts.push({idx:i_1,txt:this._m_Str}),all_pages_str+=this._m_Str);if(0===page_texts.length||0===all_pages_str.length||!this._performMiscPageSetup(page_number))return!1;i_1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;var quad=Array(8),line,lend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;lend.initDefault();var wend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;wend.initDefault();var to_append=[],new_line_start=
1898
- !1;for(line=this._m_Words.getFirstLine();!line.equal(lend);line=line.getNextLine())if(line.getBBox(i_1),i_1.normalize(),!sel_rect.notIntersect(i_1)){var tmp_selidxs=[null,null],tmp_surrtxts=[null,null],first_selected_glyph_index=-1;var num_chars=-1;for(i=line.getFirstWord();!i.equal(wend);i=i.getNextWord())if(i.getQuad(quad),i_1.setFromQuad(quad),!sel_rect.notIntersect(i_1)){num_chars=i.getStringLen();var str_id=i.getStringPos();-1===first_selected_glyph_index&&(first_selected_glyph_index=str_id);
1899
- var k=to_append.length;if(0<num_chars&&0<k){new_line_start&&("\n"!==to_append[0]&&(this._isWhitespace(to_append[k-1])?to_append[k-1]="\n":to_append.push("\n")),new_line_start=!1);for(k=0;k<to_append.length;++k)this._m_Texts+=to_append[k];Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(to_append)}for(k=0;k<=num_chars;++k)str_id+k<this._m_Str.length&&(k<num_chars?this._m_Texts+=this._m_Str.charAt(str_id+k):to_append.push(this._m_Str.charAt(str_id+k)));if(0<num_chars){k=i_1.x2-i_1.x1;var y=
1900
- i_1.y2-i_1.y1;this._storeQuad(quad,Math.sqrt(k*k+y*y)/num_chars*3)}num_chars=str_id+num_chars}new_line_start=!0;tmp_selidxs[0]=first_selected_glyph_index;for(i=first_selected_glyph_index=0;i<page_texts.length;i++)if(page_texts[i].idx===page_number){first_selected_glyph_index+=tmp_selidxs[0];break}else page_texts[i].idx<page_number&&(first_selected_glyph_index+=page_texts[i].txt.length);tmp_surrtxts[0]=all_pages_str.substring(Math.max(0,first_selected_glyph_index-100),first_selected_glyph_index);if(-1!==
1901
- num_chars){tmp_selidxs[1]=num_chars;for(i=first_selected_glyph_index=0;i<page_texts.length;i++)if(page_texts[i].idx===page_number){first_selected_glyph_index+=num_chars;break}else page_texts[i].idx<page_number&&(first_selected_glyph_index+=page_texts[i].txt.length);tmp_surrtxts[1]=all_pages_str.substr(first_selected_glyph_index+1,100)}null!==tmp_selidxs[0]&&null!==tmp_selidxs[1]&&this._m_Selidxs.push(tmp_selidxs);null!==tmp_surrtxts[0]&&null!==tmp_surrtxts[1]&&this._m_Surrtxts.push(tmp_surrtxts)}return 0<
1902
- this._m_Quads.length};TextLocator.prototype._cmptTextDirection=function(){var line,lend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;lend.initDefault();var q1=Array(8),q2=Array(8),max_distance=.1,direction=-100;for(line=this._m_Words.getFirstLine();!line.equal(lend);line=line.getNextLine()){var g1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c,g2=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c,wend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;wend.initDefault();var w1=line.getFirstWord(),
1903
- w2=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;w2.initDefault();for(var word=line.getFirstWord();!word.equal(wend);word=word.getNextWord())w2=word;w1.getGlyphQuad(0,q1);g1.x=(q1[0]+q1[2]+q1[4]+q1[6])/4;g1.y=(q1[1]+q1[3]+q1[5]+q1[7])/4;w2.getGlyphQuad(w2.getNumGlyphs()-1,q2);g2.x=(q2[0]+q2[2]+q2[4]+q2[6])/4;g2.y=(q2[1]+q2[3]+q2[5]+q2[7])/4;wend=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.distance(g1,g2);wend>max_distance&&(direction=Math.atan2(g2.y-g1.y,g2.x-g1.x),direction*=180/3.1415926,
1904
- direction=Math.round(direction),0>direction&&(direction+=360),max_distance=wend)}this._m_Direction=direction;this._m_Horizontal=2>Math.abs(this._m_Direction)||2>Math.abs(this._m_Direction-180)};TextLocator.prototype.selectGlyphsByRect=function(page_idx,sel_rect){Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(this._m_Quads);this._m_Texts="";sel_rect.normalize();var page_texts=[],all_pages_str="",i;for(i=page_idx-1;i<page_idx+2;i++)this._performMiscPageSetup(i)&&(page_texts.push({idx:i,
1905
- txt:this._m_Str}),all_pages_str+=this._m_Str);if(0===page_texts.length||0===all_pages_str.length||!this._performMiscPageSetup(page_idx))return!1;var bbox=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,quad=Array(8),k,line,lend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;lend.initDefault();var word,wend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;wend.initDefault();var to_append=[],new_line_start=!1;for(line=this._m_Words.getFirstLine();!line.equal(lend);line=line.getNextLine())if(line.getBBox(bbox),
1906
- bbox.normalize(),!sel_rect.notIntersect(bbox)){var tmp_selidxs=[null,null],tmp_surrtxts=[null,null],last_selected_glyph_index=-1,first_selected_word_on_line=!0;for(word=line.getFirstWord();!word.equal(wend);word=word.getNextWord())if(word.getQuad(quad),bbox.setFromQuad(quad),!sel_rect.notIntersect(bbox)){var num_chars=word.getStringLen();var str_id=word.getStringPos(),sz=to_append.length;if(0<num_chars&&0<sz){new_line_start&&("\n"!==to_append[0]&&(this._isWhitespace(to_append[sz-1])?to_append[sz-
1907
- 1]="\n":to_append.push("\n")),new_line_start=!1);for(i=0;i<to_append.length;++i)this._m_Texts+=to_append[i];Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(to_append)}sz=0;var front_chop=Array(8),back_chop=Array(8),front_chop_flag=!1,back_chop_flag=!1;for(k=0;k<num_chars;++k){var current_glyph_idx_in_pg_txt=str_id+k;if(current_glyph_idx_in_pg_txt<this._m_Str.length){i=Array(8);var ch_bbox=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;word.getGlyphQuad(k,i);ch_bbox.setFromQuad(i);if(sel_rect.notIntersect(ch_bbox))0===
1908
- sz?front_chop_flag=!0:back_chop_flag=!0;else{last_selected_glyph_index=current_glyph_idx_in_pg_txt;sz++;if(1===sz){if(first_selected_word_on_line){tmp_selidxs[0]=current_glyph_idx_in_pg_txt;for(i=first_selected_word_on_line=0;i<page_texts.length;i++)if(page_texts[i].idx===page_idx){first_selected_word_on_line+=current_glyph_idx_in_pg_txt;break}else page_texts[i].idx<page_idx&&(first_selected_word_on_line+=page_texts[i].txt.length);tmp_surrtxts[0]=all_pages_str.substring(Math.max(0,first_selected_word_on_line-
1909
- 100),first_selected_word_on_line);first_selected_word_on_line=!1}front_chop_flag&&word.getGlyphQuad(k,front_chop)}word.getGlyphQuad(k,back_chop);k<num_chars?this._m_Texts+=this._m_Str.charAt(current_glyph_idx_in_pg_txt):to_append.push(this._m_Str.charAt(current_glyph_idx_in_pg_txt))}}}"\n"!=to_append[num_chars]&&to_append.push(" ");0<sz&&(front_chop_flag&&this._chopQuad(quad,front_chop,!0),back_chop_flag&&this._chopQuad(quad,back_chop,!1),bbox.setFromQuad(quad),num_chars=bbox.x2-bbox.x1,str_id=bbox.y2-
1910
- bbox.y1,this._storeQuad(quad,Math.sqrt(num_chars*num_chars+str_id*str_id)/sz*3))}new_line_start=!0;if(-1!==last_selected_glyph_index){tmp_selidxs[1]=last_selected_glyph_index;for(i=word=0;i<page_texts.length;i++)if(page_texts[i].idx===page_idx){word+=last_selected_glyph_index;break}else page_texts[i].idx<page_idx&&(word+=page_texts[i].txt.length);tmp_surrtxts[1]=all_pages_str.substr(word+1,100)}null!==tmp_selidxs[0]&&null!==tmp_selidxs[1]&&this._m_Selidxs.push(tmp_selidxs);null!==tmp_surrtxts[0]&&
1911
- null!==tmp_surrtxts[1]&&this._m_Surrtxts.push(tmp_surrtxts)}return 0<this._m_Quads.length};TextLocator.prototype.getRectangularSelectionFromSurroundingTexts=function(input_page_idx,surrounding_text_pairs,text_to_match){for(var quads=[],output_page_idx=-1,found_text="",i=0;i<surrounding_text_pairs.length;i++){var result=this.getStructuralSelectionFromSurroundingTexts(input_page_idx,surrounding_text_pairs[i][0],surrounding_text_pairs[i][1]);if(result.status)-1!==output_page_idx||void 0===result.pgidx||
1912
- null===result.pgidx||isNaN(result.pgidx)||(output_page_idx=result.pgidx),result.pgidx===output_page_idx&&Array.prototype.push.apply(quads,result.value),found_text+=this._m_Texts;else break}-1===output_page_idx&&(output_page_idx=0);return 0===quads.length||found_text.replace(/( |\n)/gm,"")!==text_to_match.replace(/( |\n)/gm,"")?{status:!1}:{status:!0,value:quads,pgidx:output_page_idx}};TextLocator.prototype.getStructuralSelectionFromSurroundingTexts=function(page_idx,pre_text,post_text,text_to_match){if(20>=
1913
- pre_text.length||20>=post_text.length)return{status:!1};var page_texts=[],all_pages_str="",chunk_relative_whitespace_indices=[],remove_whitespace=!0,last_iterated_page_text_end_index=0,i,j;for(i=page_idx-1;i<page_idx+2;i++)if(this._performMiscPageSetup(i))if(page_texts.push({idx:i,txt:this._m_Str}),all_pages_str+=this._m_Str,null!==this._m_Pages[i].text._m_Whitespace_Indices){for(j=0;j<this._m_Pages[i].text._m_Whitespace_Indices.length;j++)chunk_relative_whitespace_indices.push(this._m_Pages[i].text._m_Whitespace_Indices[j]+
1914
- last_iterated_page_text_end_index);last_iterated_page_text_end_index+=this._m_Str.length}else remove_whitespace=!1;if(0===page_texts.length||0===all_pages_str.length)return{status:!1};last_iterated_page_text_end_index=[];i=0;remove_whitespace?(page_idx=all_pages_str.replace(/( |\n)/gm,""),pre_text=pre_text.replace(/( |\n)/gm,"")):page_idx=all_pages_str;for(;!(0===page_idx.length||page_idx.length<pre_text.length||(j=page_idx.indexOf(pre_text),0>j));)last_iterated_page_text_end_index.push(i+j+pre_text.length),
1915
- page_idx=page_idx.substr(j+1),i+=j+1;if(0===last_iterated_page_text_end_index.length)return{status:!1};pre_text=[];i=last_iterated_page_text_end_index[0]+1;remove_whitespace?(page_idx=all_pages_str.replace(/( |\n)/gm,"").substring(last_iterated_page_text_end_index[0]+1),post_text=post_text.replace(/( |\n)/gm,"")):page_idx=all_pages_str.substring(last_iterated_page_text_end_index[0]+1);for(;!(0===page_idx.length||page_idx.length<post_text.length||(j=page_idx.indexOf(post_text),0>j));)pre_text.push(i+
1916
- j),page_idx=page_idx.substr(j+1),i+=j+1;if(0===pre_text.length)return{status:!1};post_text=[];for(i=0;i<last_iterated_page_text_end_index.length;i++)for(page_idx=0;page_idx<pre_text.length;page_idx++)if(last_iterated_page_text_end_index[i]+1<=pre_text[page_idx]&&(j=[],j.push(last_iterated_page_text_end_index[i]),j.push(pre_text[page_idx]),post_text.push(j)),1<post_text.length)return{status:!1};if(1!==post_text.length)return{status:!1};if(remove_whitespace){for(i=0;i<chunk_relative_whitespace_indices.length&&
1917
- !(post_text[0][0]<chunk_relative_whitespace_indices[i]);i++)post_text[0][0]++;for(i=0;i<chunk_relative_whitespace_indices.length&&!(post_text[0][1]<chunk_relative_whitespace_indices[i]);i++)post_text[0][1]++}remove_whitespace=[0,0];chunk_relative_whitespace_indices=-1;for(i=last_iterated_page_text_end_index=0;i<page_texts.length;i++){pre_text=page_texts[i].txt;if(post_text[0][0]>=last_iterated_page_text_end_index&&post_text[0][0]<last_iterated_page_text_end_index+pre_text.length){chunk_relative_whitespace_indices=
1918
- page_texts[i].idx;remove_whitespace[0]=post_text[0][0]-last_iterated_page_text_end_index;break}last_iterated_page_text_end_index+=pre_text.length}if(-1===chunk_relative_whitespace_indices)return{status:!1};page_idx=-1;for(i=last_iterated_page_text_end_index=0;i<page_texts.length;i++){pre_text=page_texts[i].txt;if(post_text[0][1]>=last_iterated_page_text_end_index&&post_text[0][1]<last_iterated_page_text_end_index+pre_text.length){page_idx=page_texts[i].idx;remove_whitespace[1]=post_text[0][1]-last_iterated_page_text_end_index;
1919
- break}last_iterated_page_text_end_index+=pre_text.length}if(-1===page_idx)return{status:!1};if(chunk_relative_whitespace_indices===page_idx){all_pages_str=this.getStructuralSelectionFromTextIndices(chunk_relative_whitespace_indices,remove_whitespace[0],remove_whitespace[1]-1);if(all_pages_str.status){if(text_to_match&&this._m_Texts.replace(/( |\n)/gm,"")!==text_to_match.replace(/( |\n)/gm,""))return{status:!1};all_pages_str.pgidx=chunk_relative_whitespace_indices;return all_pages_str}return{status:!1}}for(i=
1920
- 0;i<page_texts.length&&page_texts[i].idx!==chunk_relative_whitespace_indices;i++);page_texts=this.getStructuralSelectionFromTextIndices(chunk_relative_whitespace_indices,remove_whitespace[0],page_texts[i].txt.length-1);this._m_Texts=all_pages_str.substring(post_text[0][0],post_text[0][1]);if(page_texts.status){if(text_to_match&&this._m_Texts.replace(/( |\n)/gm,"")!==text_to_match.replace(/( |\n)/gm,""))return{status:!1};page_texts.pgidx=chunk_relative_whitespace_indices;return page_texts}return{status:!1}};
1921
- TextLocator.prototype.getRectangularSelectionFromTextIndices=function(page_idx,index_pairs,text_to_match){for(var quads=[],found_text="",i=0;i<index_pairs.length;i++){var i1=Number(index_pairs[i][0]),i2=Number(index_pairs[i][1]);if(isNaN(i1)||isNaN(i2))return Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("getRectangularSelectionFromTextIndices: could not parse index-based selectors as numbers."),{status:!1};i1=this.getStructuralSelectionFromTextIndices(page_idx,i1,i2);if(i1.status)Array.prototype.push.apply(quads,
1922
- i1.value),found_text+=this._m_Texts;else return{status:!1}}return 0===quads.length||found_text.replace(/( |\n)/gm,"")!==text_to_match.replace(/( |\n)/gm,"")?{status:!1}:{status:!0,value:quads}};TextLocator.prototype.getStructuralSelectionFromTextIndices=function(page_idx,start_index,end_index,text_to_match){if(!this._performMiscPageSetup(page_idx))return{status:!1};var wend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;wend.initDefault();page_idx=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;
1923
- page_idx.initDefault();this._m_Texts=this._m_Str.substring(start_index,Math.min(end_index+1,this._m_Str.length));if(text_to_match&&this._m_Texts.replace(/( |\n)/gm,"")!==text_to_match.replace(/( |\n)/gm,""))return{status:!1};text_to_match=0;for(var first_line_in_block,last_line_in_block;;){if(text_to_match>=this._m_Blocks.length)return{status:!1};first_line_in_block=this._m_Blocks[text_to_match]._m_first_line;last_line_in_block=this._m_Blocks[text_to_match]._m_last_line;if(last_line_in_block.getLastWord().getStringPos()+
1924
- last_line_in_block.getLastWord().getNumGlyphs()>=start_index&&first_line_in_block.getFirstWord().getStringPos()<=start_index)break;text_to_match++}for(var start_block=this._m_Blocks[text_to_match],start_line=start_block._m_first_line;;){if(start_line.equal(page_idx))return{status:!1};if(this._sameDirection(start_line.getDirection())){if(start_line.getLastWord().getStringPos()+start_line.getLastWord().getNumGlyphs()>=start_index&&start_line.getFirstWord().getStringPos()<=start_index)break;if(start_line.equal(start_block._m_last_line)||
1925
- start_line.equal(page_idx))return{status:!1};start_line=start_line.getNextLine()}}for(var start_word=start_line.getFirstWord();;){if(start_word.equal(wend))return{status:!1};if(start_word.getStringPos()+start_word.getNumGlyphs()>=start_index&&start_word.getStringPos()<=start_index)break;start_word=start_word.getNextWord()}for(var end_block_idx=0;;){if(end_block_idx>=this._m_Blocks.length)return{status:!1};first_line_in_block=this._m_Blocks[end_block_idx]._m_first_line;last_line_in_block=this._m_Blocks[end_block_idx]._m_last_line;
1926
- if(last_line_in_block.getLastWord().getStringPos()+last_line_in_block.getLastWord().getNumGlyphs()>=end_index&&first_line_in_block.getFirstWord().getStringPos()<=end_index)break;end_block_idx++}for(var end_line=this._m_Blocks[end_block_idx]._m_first_line;;){if(end_line.equal(page_idx))return{status:!1};if(this._sameDirection(end_line.getDirection())){if(end_line.getLastWord().getStringPos()+end_line.getLastWord().getNumGlyphs()>=end_index&&end_line.getFirstWord().getStringPos()<=end_index)break;if(end_line.equal(start_block._m_last_line))return{status:!1};
1927
- end_line=end_line.getNextLine()}}for(start_block=end_line.getFirstWord();;){if(start_block.equal(wend))return{status:!1};if(start_block.getStringPos()+start_block.getNumGlyphs()>=end_index&&start_block.getStringPos()<=end_index)break;start_block=start_block.getNextWord()}wend=[];for(var rect=Array(4),blocknum=text_to_match;blocknum<=end_block_idx;blocknum++)if(first_line_in_block=this._m_Blocks[blocknum]._m_first_line,last_line_in_block=this._m_Blocks[blocknum]._m_last_line,blocknum===text_to_match&&
1928
- blocknum!==end_block_idx)for(first_line_in_block=start_line;!first_line_in_block.equal(page_idx);first_line_in_block=first_line_in_block.getNextLine()){if(this._sameDirection(first_line_in_block.getDirection())){var temp_quad=Array(8);first_line_in_block.equal(start_line)?start_word.getGlyphQuadInWordQuadFormat(Math.min(start_index-start_word.getStringPos(),start_word.getNumGlyphs()-1),temp_quad):(first_line_in_block.getFirstWord().getBBox(rect),temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=
1929
- rect[0],temp_quad[7]=rect[1]);first_line_in_block.getLastWord().getBBox(rect);temp_quad[2]=rect[2];temp_quad[3]=rect[3];temp_quad[4]=rect[2];temp_quad[5]=rect[1];wend.push(temp_quad);if(first_line_in_block.equal(last_line_in_block))break}}else if(blocknum!==text_to_match&&blocknum===end_block_idx)for(;;first_line_in_block=first_line_in_block.getNextLine()){if(first_line_in_block.equal(page_idx))return{status:!1};if(this._sameDirection(first_line_in_block.getDirection())&&(temp_quad=Array(8),first_line_in_block.equal(end_line)?
1930
- start_block.getGlyphQuadInWordQuadFormat(Math.min(end_index-start_block.getStringPos(),start_block.getNumGlyphs()-1),temp_quad):(first_line_in_block.getLastWord().getBBox(rect),temp_quad[2]=rect[2],temp_quad[3]=rect[3],temp_quad[4]=rect[2],temp_quad[5]=rect[1]),first_line_in_block.getFirstWord().getBBox(rect),temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=rect[0],temp_quad[7]=rect[1],wend.push(temp_quad),first_line_in_block.equal(end_line)))break}else if(blocknum===text_to_match&&blocknum===
1931
- end_block_idx)for(first_line_in_block=start_line;;first_line_in_block=first_line_in_block.getNextLine()){if(first_line_in_block.equal(page_idx))return{status:!1};if(this._sameDirection(first_line_in_block.getDirection())&&(temp_quad=Array(8),first_line_in_block.equal(start_line)&&!first_line_in_block.equal(end_line)?(start_word.getGlyphQuadInWordQuadFormat(Math.min(start_index-start_word.getStringPos(),start_word.getNumGlyphs()-1),temp_quad),first_line_in_block.getLastWord().getBBox(rect),temp_quad[2]=
1932
- rect[2],temp_quad[3]=rect[3],temp_quad[4]=rect[2],temp_quad[5]=rect[1]):!first_line_in_block.equal(start_line)&&first_line_in_block.equal(end_line)?(start_block.getGlyphQuadInWordQuadFormat(Math.min(end_index-start_block.getStringPos(),start_block.getNumGlyphs()-1),temp_quad),first_line_in_block.getFirstWord().getBBox(rect),temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=rect[0],temp_quad[7]=rect[1]):first_line_in_block.equal(start_line)&&first_line_in_block.equal(end_line)?(start_word.getGlyphQuadInWordQuadFormat(Math.min(start_index-
1933
- start_word.getStringPos(),start_word.getNumGlyphs()-1),temp_quad),rect[0]=temp_quad[6],rect[1]=temp_quad[7],rect[2]=temp_quad[2],rect[3]=temp_quad[3],start_block.getGlyphQuadInWordQuadFormat(Math.min(end_index-start_block.getStringPos(),start_block.getNumGlyphs()-1),temp_quad),temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=rect[0],temp_quad[7]=rect[1]):(first_line_in_block.getFirstWord().getBBox(rect),temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=rect[0],temp_quad[7]=rect[1],first_line_in_block.getLastWord().getBBox(rect),
1934
- temp_quad[2]=rect[2],temp_quad[3]=rect[3],temp_quad[4]=rect[2],temp_quad[5]=rect[1]),wend.push(temp_quad),first_line_in_block.equal(end_line)))break}else for(;!(first_line_in_block.equal(page_idx)||this._sameDirection(first_line_in_block.getDirection())&&(temp_quad=Array(8),first_line_in_block.getFirstWord().getBBox(rect),temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=rect[0],temp_quad[7]=rect[1],first_line_in_block.getLastWord().getBBox(rect),temp_quad[2]=rect[2],temp_quad[3]=rect[3],temp_quad[4]=
1935
- rect[2],temp_quad[5]=rect[1],wend.push(temp_quad),first_line_in_block.equal(last_line_in_block)));first_line_in_block=first_line_in_block.getNextLine());return{status:!0,value:wend}};TextLocator.prototype.selectByStruct=function(page_idx,sel_rect){Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(this._m_Quads);this._m_Texts="";for(var page_texts=[],all_pages_str="",i_3=page_idx-1;i_3<page_idx+2;i_3++)this._performMiscPageSetup(i_3)&&(page_texts.push({idx:i_3,txt:this._m_Str}),all_pages_str+=
1936
- this._m_Str);if(0===page_texts.length||0===all_pages_str.length||!this._performMiscPageSetup(page_idx))return!1;var min_dist1;i_3=Array(8);var qq=Array(8),b=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,min_line_dist1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a,min_line_dist2=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;min_line_dist1.initDefault();min_line_dist2.initDefault();var is_horiz_line1=this._m_Horizontal,is_horiz_line2=this._m_Horizontal,lend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;
1937
- lend.initDefault();var wend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;wend.initDefault();var tmpPoint1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;tmpPoint1.init(sel_rect.x1,sel_rect.y1);var sel_pt1_y=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;sel_pt1_y.init(sel_rect.x2,sel_rect.y2);tmpPoint1=this._findStructuralBounds(tmpPoint1,sel_pt1_y,min_line_dist1,min_line_dist2);min_line_dist1=tmpPoint1._first_line;min_line_dist2=tmpPoint1._last_line;if(min_line_dist1.equal(lend)||min_line_dist2.equal(lend))return!1;
1938
- var min_w1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;tmpPoint1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;min_w1.initDefault();tmpPoint1.initDefault();var min_dist2=min_dist1=_selectionInfo_constants__WEBPACK_IMPORTED_MODULE_1__.a.MAX;for(var word=min_line_dist1.getFirstWord();!word.equal(wend);word=word.getNextWord()){word.getBBox(i_3);if(is_horiz_line1){var sel_pt1_x=sel_rect.x1;sel_pt1_y=sel_rect.y1}else sel_pt1_y=i_3[0],i_3[0]=i_3[1],i_3[1]=sel_pt1_y,sel_pt1_y=i_3[2],i_3[2]=i_3[3],
1939
- i_3[3]=sel_pt1_y,sel_pt1_x=sel_rect.y1,sel_pt1_y=sel_rect.x1;var d=(i_3[3]+i_3[1])/2;if(i_3[2]<=sel_pt1_x){var xd=i_3[2]-sel_pt1_x;d-=sel_pt1_y;d=xd*xd+d*d}else i_3[0]>=sel_pt1_x?(xd=i_3[0]-sel_pt1_x,d-=sel_pt1_y,d=xd*xd+d*d):(d-=sel_pt1_y,d*=d);d<min_dist1&&(min_dist1=d,min_w1=word)}for(word=min_line_dist2.getFirstWord();!word.equal(wend);word=word.getNextWord())word.getBBox(i_3),is_horiz_line2?(sel_pt1_x=sel_rect.x2,sel_pt1_y=sel_rect.y2):(sel_pt1_y=i_3[0],i_3[0]=i_3[1],i_3[1]=sel_pt1_y,sel_pt1_y=
1940
- i_3[2],i_3[2]=i_3[3],i_3[3]=sel_pt1_y,sel_pt1_x=sel_rect.y2,sel_pt1_y=sel_rect.x2),d=(i_3[3]+i_3[1])/2,i_3[2]<=sel_pt1_x?(xd=i_3[2]-sel_pt1_x,d-=sel_pt1_y,d=xd*xd+d*d):i_3[0]>=sel_pt1_x?(xd=i_3[0]-sel_pt1_x,d-=sel_pt1_y,d=xd*xd+d*d):(d-=sel_pt1_y,d*=d),d<min_dist2&&(min_dist2=d,tmpPoint1=word);if(min_w1.equal(wend)||tmpPoint1.equal(wend))return!1;sel_pt1_y=word=0;min_dist2=min_dist1=_selectionInfo_constants__WEBPACK_IMPORTED_MODULE_1__.a.MAX;var gnum=min_w1.getNumGlyphs();for(sel_pt1_x=0;sel_pt1_x<
1941
- gnum;++sel_pt1_x)min_w1.getGlyphQuad(sel_pt1_x,i_3),xd=(i_3[0]+i_3[2]+i_3[4]+i_3[6])/4,d=(i_3[1]+i_3[3]+i_3[5]+i_3[7])/4,xd-=sel_rect.x1,d-=sel_rect.y1,d=xd*xd+d*d,d<min_dist1&&(min_dist1=d,word=sel_pt1_x);gnum=tmpPoint1.getNumGlyphs();for(sel_pt1_x=0;sel_pt1_x<gnum;++sel_pt1_x)tmpPoint1.getGlyphQuad(sel_pt1_x,i_3),xd=(i_3[0]+i_3[2]+i_3[4]+i_3[6])/4,d=(i_3[1]+i_3[3]+i_3[5]+i_3[7])/4,xd-=sel_rect.x2,d-=sel_rect.y2,d=xd*xd+d*d,d<min_dist2&&(min_dist2=d,sel_pt1_y=sel_pt1_x);min_dist1=word+min_w1.getStringPos();
1942
- min_dist2=sel_pt1_y+tmpPoint1.getStringPos();min_dist2<min_dist1&&(sel_pt1_x=min_dist1,min_dist1=min_dist2,min_dist2=sel_pt1_x);this._m_Selidxs.push([min_dist1,min_dist2]);d=[null,null];for(sel_pt1_x=xd=0;sel_pt1_x<page_texts.length;sel_pt1_x++)if(page_texts[sel_pt1_x].idx===page_idx){xd+=min_dist1;break}else page_texts[sel_pt1_x].idx<page_idx&&(xd+=page_texts[sel_pt1_x].txt.length);d[0]=all_pages_str.substring(Math.max(0,xd-100),xd);for(sel_pt1_x=min_dist1=0;sel_pt1_x<page_texts.length;sel_pt1_x++)if(page_texts[sel_pt1_x].idx===
1943
- page_idx){min_dist1+=min_dist2;break}else page_texts[sel_pt1_x].idx<page_idx&&(min_dist1+=page_texts[sel_pt1_x].txt.length);d[1]=all_pages_str.substr(min_dist1+1,100);null!==d[0]&&null!==d[1]&&this._m_Surrtxts.push(d);all_pages_str=min_line_dist1.getCurrentNum();min_dist2=min_line_dist2.getCurrentNum();page_idx=min_w1.getCurrentNum();page_texts=tmpPoint1.getCurrentNum();if(all_pages_str===min_dist2){page_idx>page_texts&&(all_pages_str=min_w1,min_w1=tmpPoint1,tmpPoint1=all_pages_str,all_pages_str=
1944
- word,word=sel_pt1_y,sel_pt1_y=all_pages_str);min_line_dist1.getBBox(b);if(page_idx===page_texts&&word===sel_pt1_y&&(all_pages_str=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,!all_pages_str.intersectRect(b,sel_rect)))return!1;page_idx===page_texts?(sel_pt1_y<word&&(all_pages_str=word,word=sel_pt1_y,sel_pt1_y=all_pages_str),all_pages_str=sel_pt1_y):all_pages_str=min_w1.getStringLen();min_w1.getGlyphQuad(word,i_3);Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(is_horiz_line1===is_horiz_line2);is_horiz_line2=
1945
- min_w1.getStringPos();Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(word<=all_pages_str);for(is_horiz_line1=word;is_horiz_line1<=all_pages_str;++is_horiz_line1)is_horiz_line2+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(is_horiz_line2+is_horiz_line1));0<=all_pages_str&&(min_w1.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/(all_pages_str+1)*
1946
- 3,this._chopQuad(qq,i_3,!0),page_idx===page_texts&&(sel_rect=Array(8),tmpPoint1.getGlyphQuad(sel_pt1_y,sel_rect),this._chopQuad(qq,sel_rect,!1)),this._storeQuad(qq,is_horiz_line1));for(word=min_w1=min_w1.getNextWord();!word.equal(wend)&&word.getCurrentNum()<tmpPoint1.getCurrentNum();word=word.getNextWord()){all_pages_str=word.getStringLen();sel_rect=word.getStringPos();for(is_horiz_line1=0;is_horiz_line1<=all_pages_str;++is_horiz_line1)sel_rect+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(sel_rect+
1947
- is_horiz_line1));0<all_pages_str&&(word.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._storeQuad(qq,is_horiz_line1))}tmpPoint1.getGlyphQuad(sel_pt1_y,i_3);all_pages_str=tmpPoint1.getStringLen();if(page_idx!==page_texts){wend=tmpPoint1.getStringPos();Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(sel_pt1_y<=all_pages_str);for(is_horiz_line1=0;is_horiz_line1<=
1948
- sel_pt1_y;++is_horiz_line1)wend+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(wend+is_horiz_line1));0<all_pages_str&&(tmpPoint1.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._chopQuad(qq,i_3,!1),this._storeQuad(qq,is_horiz_line1))}}else{all_pages_str>min_dist2&&(is_horiz_line1=min_line_dist1,min_line_dist1=min_line_dist2,
1949
- min_line_dist2=is_horiz_line1,all_pages_str=min_w1,min_w1=tmpPoint1,tmpPoint1=all_pages_str,all_pages_str=word,word=sel_pt1_y,sel_pt1_y=all_pages_str);min_line_dist1.getBBox(b);all_pages_str=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;all_pages_str.intersectRect(b,sel_rect)||(min_w1=min_line_dist1.getFirstWord(),word=0);min_w1.getGlyphQuad(word,i_3);all_pages_str=min_w1.getStringLen();is_horiz_line2=min_w1.getStringPos();Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(word<=all_pages_str);for(is_horiz_line1=
1950
- word;is_horiz_line1<=all_pages_str;++is_horiz_line1)is_horiz_line2+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(is_horiz_line2+is_horiz_line1));0<all_pages_str&&(min_w1.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._chopQuad(qq,i_3,!0),this._storeQuad(qq,is_horiz_line1));for(word=min_w1=min_w1.getNextWord();!word.equal(wend);word=
1951
- word.getNextWord()){all_pages_str=word.getStringLen();min_w1=word.getStringPos();for(is_horiz_line1=0;is_horiz_line1<=all_pages_str;++is_horiz_line1)min_w1+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(min_w1+is_horiz_line1));0<all_pages_str&&(word.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._storeQuad(qq,is_horiz_line1))}for(min_line_dist1=
1952
- min_line_dist1.getNextLine();!min_line_dist1.equal(min_line_dist2)&&!min_line_dist1.equal(lend);min_line_dist1=min_line_dist1.getNextLine())if(this._sameDirection(min_line_dist1.getDirection()))for(min_line_dist1.getBBox(b),word=min_line_dist1.getFirstWord();!word.equal(wend);word=word.getNextWord()){all_pages_str=word.getStringLen();min_w1=word.getStringPos();for(is_horiz_line1=0;is_horiz_line1<=all_pages_str;++is_horiz_line1)min_w1+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(min_w1+
1953
- is_horiz_line1));0<all_pages_str&&(word.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._storeQuad(qq,is_horiz_line1))}min_line_dist2.getBBox(b);all_pages_str=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;all_pages_str.intersectRect(b,sel_rect)||(tmpPoint1=min_line_dist2.getWord(min_line_dist2.getNumWords()-1),sel_pt1_y=tmpPoint1.getNumGlyphs()-
1954
- 1);for(word=min_line_dist2.getFirstWord();!word.equal(wend)&&!word.equal(tmpPoint1);word=word.getNextWord()){all_pages_str=word.getStringLen();sel_rect=word.getStringPos();for(is_horiz_line1=0;is_horiz_line1<=all_pages_str;++is_horiz_line1)sel_rect+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(sel_rect+is_horiz_line1));0<all_pages_str&&(word.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*
1955
- is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._storeQuad(qq,is_horiz_line1))}tmpPoint1.getGlyphQuad(sel_pt1_y,i_3);all_pages_str=tmpPoint1.getStringLen();is_horiz_line2=tmpPoint1.getStringPos();Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(sel_pt1_y<=all_pages_str);for(is_horiz_line1=0;is_horiz_line1<=sel_pt1_y;++is_horiz_line1)is_horiz_line2+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(is_horiz_line2+is_horiz_line1));0<all_pages_str&&(tmpPoint1.getQuad(qq),
1956
- is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._chopQuad(qq,i_3,!1),this._storeQuad(qq,is_horiz_line1))}return 0<this._m_Quads.length};TextLocator.prototype._performMiscPageSetup=function(page_idx){if(0>page_idx||page_idx>=this._m_Pages.length)return!1;if(0>=this._m_PrePage||this._m_PrePage!==page_idx){var spi=this._m_Pages[page_idx].text;if(null==spi||!spi.ready())return!1;
1957
- this._m_Words=spi;this._m_Str=this._m_Words.getStr();this._cmptTextDirection();this._cmptBlocks();this._m_PrePage=page_idx}return!0};TextLocator.prototype._storeQuad=function(quad,tra_thresh){var sz=this._m_Quads.length/8;if(sz){var des_q=Array(8);sz=8*(sz-1);for(i=0;8>i;++i)des_q[i]=this._m_Quads[sz+i];if(_Quad__WEBPACK_IMPORTED_MODULE_2__.a._merge(des_q,quad,1,!0,tra_thresh))for(i=0;8>i;++i)this._m_Quads[sz+i]=des_q[i];else for(i=0;8>i;++i)this._m_Quads.push(quad[i])}else for(var i=0;8>i;++i)this._m_Quads.push(quad[i])};
1958
- TextLocator.prototype._chopQuad=function(word_quad_to_be_chopped,quad_of_first_or_last_glyph_in_word,is_glyph_first_glyph_in_word){var bottom_left_of_word=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;bottom_left_of_word.init(word_quad_to_be_chopped[0],word_quad_to_be_chopped[1]);var bottom_right_of_word=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;bottom_right_of_word.init(word_quad_to_be_chopped[2],word_quad_to_be_chopped[3]);var distance_between_word_start_and_end=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(bottom_right_of_word,
1959
- bottom_left_of_word);distance_between_word_start_and_end.normalize()&&(is_glyph_first_glyph_in_word?(bottom_right_of_word=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c,bottom_right_of_word.init(quad_of_first_or_last_glyph_in_word[0],quad_of_first_or_last_glyph_in_word[1]),quad_of_first_or_last_glyph_in_word=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(bottom_right_of_word,bottom_left_of_word).dot(distance_between_word_start_and_end),distance_between_word_start_and_end=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.multiply(distance_between_word_start_and_end,
1960
- quad_of_first_or_last_glyph_in_word),word_quad_to_be_chopped[0]+=distance_between_word_start_and_end.x,word_quad_to_be_chopped[1]+=distance_between_word_start_and_end.y,word_quad_to_be_chopped[6]+=distance_between_word_start_and_end.x,word_quad_to_be_chopped[7]+=distance_between_word_start_and_end.y):(bottom_left_of_word=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c,bottom_left_of_word.init(quad_of_first_or_last_glyph_in_word[2],quad_of_first_or_last_glyph_in_word[3]),quad_of_first_or_last_glyph_in_word=
1961
- _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(bottom_left_of_word,bottom_right_of_word).dot(distance_between_word_start_and_end),distance_between_word_start_and_end=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.multiply(distance_between_word_start_and_end,quad_of_first_or_last_glyph_in_word),word_quad_to_be_chopped[2]+=distance_between_word_start_and_end.x,word_quad_to_be_chopped[3]+=distance_between_word_start_and_end.y,word_quad_to_be_chopped[4]+=distance_between_word_start_and_end.x,word_quad_to_be_chopped[5]+=
1962
- distance_between_word_start_and_end.y))};TextLocator.prototype._getTextRotationMatrix=function(angle){var m0=_Matrix2D__WEBPACK_IMPORTED_MODULE_3__.a.rotationMatrix(0),m90=_Matrix2D__WEBPACK_IMPORTED_MODULE_3__.a.rotationMatrix(1.570796325),m180=_Matrix2D__WEBPACK_IMPORTED_MODULE_3__.a.rotationMatrix(3.14159265),m270=_Matrix2D__WEBPACK_IMPORTED_MODULE_3__.a.rotationMatrix(3.14159265*1.5);switch(parseInt(angle/90+.1)){case 0:return m0;case 1:return m90;case 2:return m180;case 3:return m270;case 4:return m0;
1963
- default:return m0}};TextLocator.prototype._sameDirection=function(){return!0};TextLocator.prototype._transformToNormalFlow=function(box,angle){angle=this._getTextRotationMatrix(angle);var tmpPoint2D=new _Point2D__WEBPACK_IMPORTED_MODULE_5__.a(box.x1,box.y1);tmpPoint2D=angle.mult(tmpPoint2D);box.x1=tmpPoint2D.x;box.y1=tmpPoint2D.y;tmpPoint2D=new _Point2D__WEBPACK_IMPORTED_MODULE_5__.a(box.x2,box.y2);tmpPoint2D=angle.mult(tmpPoint2D);box.x2=tmpPoint2D.x;box.y2=tmpPoint2D.y;box.normalize()};TextLocator.prototype._cmptBlocks=
1964
- function(){Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(this._m_Blocks);var line,end=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;end.initDefault();var b=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,current_block=new _TextSelectionBlock__WEBPACK_IMPORTED_MODULE_4__.a,block_initialized=!1;for(line=this._m_Words.getFirstLine();!line.equal(end);line=line.getNextLine())if(this._sameDirection(line.getDirection())){line.getBBox(b);b.normalize();var orig_box=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;
1965
- orig_box.initRect(b);this._transformToNormalFlow(b,this._m_Direction);block_initialized?(this._m_Blocks.push(current_block),current_block=new _TextSelectionBlock__WEBPACK_IMPORTED_MODULE_4__.a,current_block._m_bbox.initRect(orig_box),current_block._m_transformed_bbox.initRect(b),current_block._m_first_line=line,current_block._m_last_line=line):(current_block._m_bbox.initRect(orig_box),current_block._m_transformed_bbox.initRect(b),current_block._m_first_line=line,current_block._m_last_line=line,block_initialized=
1966
- !0)}block_initialized&&this._m_Blocks.push(current_block)};TextLocator.prototype._findLineByPoint=function(block,pt,out_line){out_line=_selectionInfo_constants__WEBPACK_IMPORTED_MODULE_1__.a.MAX;for(var b=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,best_line=block._m_first_line,line=block._m_first_line;;line=line.getNextLine()){if(!this._sameDirection(line.getDirection()))if(line.equal(block._m_last_line))break;else continue;line.getBBox(b);this._transformToNormalFlow(b,this._m_Direction);var ycenter=
1967
- (b.y1+b.y2)/2;Math.abs(ycenter-pt.y)<out_line&&(best_line=line,out_line=Math.abs(ycenter-pt.y));if(line.equal(block._m_last_line))break}return out_line=best_line};TextLocator.prototype.Dist2LineSegmentSquared=function(x1,x2,p){var v=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(x2,x1),w=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(p,x1),c1=w.dot(v);if(0>=c1)return w.dot(w);w=v.dot(v);if(w<=c1)return p=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(p,x2),p.dot(p);x1=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.plus(x1,
1968
- _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.multiply(v,c1/w));p=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(p,x1);return p.dot(p)};TextLocator.prototype.Dist2BBox=function(pt,bbox){var d1=this.Dist2LineSegmentSquared(new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x1,bbox.y1),new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x2,bbox.y1),pt),d2=this.Dist2LineSegmentSquared(new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x2,bbox.y1),new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x2,
1969
- bbox.y2),pt),d3=this.Dist2LineSegmentSquared(new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x2,bbox.y2),new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x1,bbox.y2),pt);pt=this.Dist2LineSegmentSquared(new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x1,bbox.y2),new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x1,bbox.y1),pt);return Math.min(d1,d2,d3,pt)};TextLocator.prototype._findStructuralBounds=function(pt1,pt2,first_line,last_line){var start_block_matched=-1,end_block_matched=
1970
- -1,end_block_precise=!1,start_block_precise=!1,rmx=this._getTextRotationMatrix(this._m_Direction),p1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c,p2=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;p1.initPoint(pt1);p2.initPoint(pt2);pt1=new _Point2D__WEBPACK_IMPORTED_MODULE_5__.a(p1.x,p1.y);pt1=rmx.mult(pt1);p1.x=pt1.x;p1.y=pt1.y;pt1=new _Point2D__WEBPACK_IMPORTED_MODULE_5__.a(p2.x,p2.y);pt1=rmx.mult(pt1);p2.x=pt1.x;p2.y=pt1.y;pt2=0;for(var sz=this._m_Blocks.length;pt2<sz;++pt2)rmx=this._m_Blocks[pt2],
1971
- 0>start_block_matched&&rmx._m_transformed_bbox.contains(p1.x,p1.y)&&(start_block_matched=pt2,start_block_precise=!0),0>end_block_matched&&rmx._m_transformed_bbox.contains(p2.x,p2.y)&&(end_block_matched=pt2,end_block_precise=!0);if(!start_block_precise||!end_block_precise){rmx=[];for(pt1=0;pt1<this._m_Blocks.length;++pt1)rmx.push(0);pt1=Math.max(start_block_matched,end_block_matched);var sel=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;sel.initCoordinates(p1.x,p1.y,p2.x,p2.y);sel.inflateSquare(.1);
1972
- 0<=pt1&&sel.union(this._m_Blocks[pt1]._m_transformed_bbox);var rtmp=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;pt2=0;for(sz=this._m_Blocks.length;pt2<sz;++pt2){var box=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;box.initRect(this._m_Blocks[pt2]._m_transformed_bbox);rtmp.intersectRect(box,sel)&&(rmx[pt2]=1)}sz=rmx.indexOf(1);for(sel=pt2=rmx.indexOf(1);-1!==pt2;){sel=pt2;pt2++;if(pt2>=rmx.length)break;pt2=rmx.indexOf(1,pt2)}if(0>sz)return new _ResultFindStructuralBounds__WEBPACK_IMPORTED_MODULE_6__.a(first_line,
1973
- last_line);rmx=pt2=!1;rtmp=Math.max.apply(Math,this._m_Blocks.map(function(b){return b._m_bbox.y2}));box=this._m_Pages[this._m_PrePage];void 0!==box.x2&&void 0!==box.y2&&(pt2=Math.round(p2.x)>=Math.round(box.x2)&&Math.round(p2.y)>=Math.round(box.y2),rmx=0===p1.x&&0===p1.y,p2.y>rtmp&&(pt2=!0));if(0>pt1)start_block_matched=sz,end_block_matched=sel,start_block_precise=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,start_block_precise.initRect(this._m_Blocks[start_block_matched]._m_transformed_bbox),
1974
- end_block_precise=(p1.x-start_block_precise.x1)*(p1.x-start_block_precise.x2),end_block_precise=0<end_block_precise?Math.min(Math.abs(p1.x-start_block_precise.x1),Math.abs(p1.x-start_block_precise.x2)):0,pt1=(p1.y-start_block_precise.y1)*(p1.y-start_block_precise.y2),pt1=0<pt1?Math.min(Math.abs(p1.y-start_block_precise.y1),Math.abs(p1.y-start_block_precise.y2)):0,end_block_precise=end_block_precise*end_block_precise+pt1*pt1,pt1=Math.min(Math.abs(p2.x-start_block_precise.x1),Math.abs(p2.x-start_block_precise.x2)),
1975
- sz=(p2.y-start_block_precise.y1)*(p2.y-start_block_precise.y2),sz=0<sz?Math.min(Math.abs(p2.y-start_block_precise.y1),Math.abs(p2.y-start_block_precise.y2)):0,start_block_precise=pt1*pt1+sz*sz,pt2?end_block_matched=this._m_Blocks.length-1:!rmx&&end_block_precise>start_block_precise&&(start_block_precise=start_block_matched,start_block_matched=end_block_matched,end_block_matched=start_block_precise);else{box=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;box.initRect(this._m_Blocks[pt1]._m_transformed_bbox);
1976
- rtmp=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;start_block_precise?rtmp.initPoint(p2):rtmp.initPoint(p1);Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(!(start_block_precise&&end_block_precise)&&!(!start_block_precise&&!end_block_precise));Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(!box.contains(rtmp.x,rtmp.y));var other=box=void 0;pt1-sz>Math.max(sel-pt1,0)?(box=Math.min(pt1,sz),other=sel):(box=Math.max(pt1,sel),other=sz);pt2&&!end_block_precise?(end_block_matched=this._m_Blocks.length,
1977
- box=end_block_matched-1):box!=pt1&&(end_block_precise=Array(3),pt2=Array(3),end_block_precise[0]=this.Dist2BBox(rtmp,this._m_Blocks[other]._m_transformed_bbox),end_block_precise[1]=this.Dist2BBox(rtmp,this._m_Blocks[box]._m_transformed_bbox),end_block_precise[2]=this.Dist2BBox(rtmp,this._m_Blocks[pt1]._m_transformed_bbox),end_block_precise[3]=box?this.Dist2BBox(rtmp,this._m_Blocks[box-1]._m_transformed_bbox):end_block_precise[1],pt2[0]=other,pt2[1]=box,pt2[2]=pt1,pt1=1,end_block_precise[0]<end_block_precise[1]&&
1978
- (pt1=0),end_block_precise[2]<end_block_precise[pt1]&&(pt1=2),1!==pt1&&end_block_precise[3]<end_block_precise[pt1]&&(pt1=1),box=pt2[pt1]);start_block_precise?end_block_matched=box:start_block_matched=box}start_block_matched=rmx?0:start_block_matched}0<=start_block_matched&&0<=end_block_matched&&(first_line=this._findLineByPoint(this._m_Blocks[start_block_matched],p1,first_line),last_line=this._findLineByPoint(this._m_Blocks[end_block_matched],p2,last_line));return new _ResultFindStructuralBounds__WEBPACK_IMPORTED_MODULE_6__.a(first_line,
1979
- last_line)};return TextLocator})()},function(module,__webpack_exports__,__webpack_require__){var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(12),_Letter__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(50),_nsIDOMTextMetrics__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(51),_nsIDOMCanvasGradient__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(42),_SelectionRect__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(18),
1980
- _helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(3);(function(){function SelectionContext(container){this._m_mtx=[];this._container={};var identity_mtx=new _textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a;identity_mtx.set(1,0,0,1,0,0);this._m_mtx.push(identity_mtx);this._font_container=container;this._m_y=this._m_x=this._offset=0;this.canvas={widht:0,height:0};this.font=null;this.lineWidth=0;this.fillStyle=this.strokeStyle=this.lineCap=null;this.miterLimit=this.globalAlpha=
1981
- 0;this.lineJoin=null;this._custom_glyph_mode=!1;this.w=0;this.f=this.s=this.c=null;this.i=this.a=0;this.j=null}SelectionContext.prototype.getLetter=function(id){return this._container[id]};SelectionContext.prototype._getTsWidth=function(bbox,text_mtx){var new_bbox=new _SelectionRect__WEBPACK_IMPORTED_MODULE_5__.a;new_bbox.initRect(bbox);text_mtx.transformBbox(new_bbox);return new_bbox.width()};SelectionContext.prototype._getCurrentFont=function(font){if(this._font_container[font])return this._font_container[font];
1982
- font=font.split(" ")[1];Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(!!this._font_container[font],"Font "+font+" file not found");return this._font_container[font]};SelectionContext.prototype._transformBboxToTextSpace=function(this_font,bbox){var font_mtx=new _textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a,units_per_em=this_font.getUnitsPerEm();this_font=this_font.getFontSize();font_mtx.set(this_font/units_per_em,0,0,this_font/units_per_em,0,0);font_mtx.transformBbox(bbox)};SelectionContext.prototype.save=
1983
- function(){var mtx=new _textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a;mtx.initMatrix(Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_6__.d)(this._m_mtx));this._m_mtx.push(mtx)};SelectionContext.prototype.restore=function(){this._m_mtx.pop()};SelectionContext.prototype.transform=function(m11,m12,m21,m22,dx,dy){var mtx=new _textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a;mtx.set(m11,m12,m21,m22,dx,dy);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_6__.d)(this._m_mtx).concat(mtx)};
1984
- SelectionContext.prototype.rotate=function(radians){var mtx=new _textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a,c=Math.cos(radians);radians=Math.sin(radians);mtx.set(c,radians,-radians,c,0,0);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_6__.d)(this._m_mtx).concat(mtx)};SelectionContext.prototype.translate=function(x,y){this._m_x=x;this._m_y=y};SelectionContext.prototype.setLineDash=function(segments){};SelectionContext.prototype.fillRect=function(x,y,width,height){};SelectionContext.prototype.fillText=
1985
- function(text,x,y){var this_font=this._getCurrentFont(this.font);this._fillTextImpl(text,x,y,this_font)};SelectionContext.prototype._fillTextImpl=function(text,x,y,font){if(!this._custom_glyph_mode){this.translate(x,y);x=0;for(y=text.length;x<y;){var first_utf16_codeunit=text.charCodeAt(x),initialIndex=x;if(55296<=first_utf16_codeunit&&55551>=first_utf16_codeunit){var second_utf16_codeunit=text.charCodeAt(x+1);first_utf16_codeunit=String.fromCodePoint((first_utf16_codeunit-55296<<10)+(second_utf16_codeunit-
1986
- 56320)+65536);x+=2}else first_utf16_codeunit=String.fromCodePoint(first_utf16_codeunit),x++;initialIndex=this.lastMapping&&initialIndex in this.lastMapping?this.lastMapping[initialIndex]:first_utf16_codeunit;first_utf16_codeunit=font.getBbox(first_utf16_codeunit);this._transformBboxToTextSpace(font,first_utf16_codeunit);second_utf16_codeunit=first_utf16_codeunit.y1;first_utf16_codeunit.y1=first_utf16_codeunit.y2;first_utf16_codeunit.y2=second_utf16_codeunit;first_utf16_codeunit.x1+=this._m_x;first_utf16_codeunit.x2+=
1987
- this._m_x;first_utf16_codeunit.y1+=this._m_y;first_utf16_codeunit.y2+=this._m_y;this._m_x+=first_utf16_codeunit.width();second_utf16_codeunit=Array(8);second_utf16_codeunit[0]=first_utf16_codeunit.x1;second_utf16_codeunit[1]=first_utf16_codeunit.y1;second_utf16_codeunit[2]=first_utf16_codeunit.x2;second_utf16_codeunit[3]=first_utf16_codeunit.y1;second_utf16_codeunit[4]=first_utf16_codeunit.x2;second_utf16_codeunit[5]=first_utf16_codeunit.y2;second_utf16_codeunit[6]=first_utf16_codeunit.x1;second_utf16_codeunit[7]=
1988
- first_utf16_codeunit.y2;Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_6__.d)(this._m_mtx).transformQuad(second_utf16_codeunit);this._container[this._offset]=new _Letter__WEBPACK_IMPORTED_MODULE_2__.a(initialIndex,second_utf16_codeunit);this._offset++}this.lastMapping=null}};SelectionContext.prototype.measureText=function(text){var this_font=this._getCurrentFont(this.font);return this._measureTextImpl(text,this_font)};SelectionContext.prototype._measureTextImpl=function(text,font){var total_width=
1989
- 0;if(!this._custom_glyph_mode)for(var i=0,len=text.length;i<len;){var first_utf16_codeunit=text.charCodeAt(i);if(55296<=first_utf16_codeunit&&55551>=first_utf16_codeunit){var second_utf16_codeunit=text.charCodeAt(i+1);first_utf16_codeunit=font.getBbox(String.fromCodePoint((first_utf16_codeunit-55296<<10)+(second_utf16_codeunit-56320)+65536));i+=2}else first_utf16_codeunit=font.getBbox(String.fromCodePoint(first_utf16_codeunit)),i++;this._transformBboxToTextSpace(font,first_utf16_codeunit);total_width+=
1990
- first_utf16_codeunit.width()}return new _nsIDOMTextMetrics__WEBPACK_IMPORTED_MODULE_3__.a(total_width)};SelectionContext.prototype.strokeRect=function(){};SelectionContext.prototype.createLinearGradient=function(){return new _nsIDOMCanvasGradient__WEBPACK_IMPORTED_MODULE_4__.a};SelectionContext.prototype.createRadialGradient=function(){return new _nsIDOMCanvasGradient__WEBPACK_IMPORTED_MODULE_4__.a};SelectionContext.prototype.createPattern=function(){};SelectionContext.prototype.addColorStop=function(){};
1991
- SelectionContext.prototype.beginPath=function(){};SelectionContext.prototype.closePath=function(){};SelectionContext.prototype.fill=function(){};SelectionContext.prototype.stroke=function(){};SelectionContext.prototype.clip=function(){};SelectionContext.prototype.moveTo=function(){};SelectionContext.prototype.lineTo=function(){};SelectionContext.prototype.quadraticCurveTo=function(){};SelectionContext.prototype.bezierCurveTo=function(){};SelectionContext.prototype.rect=function(){};SelectionContext.prototype.drawImage=
1992
- function(){};SelectionContext.prototype.setTransform=function(){};SelectionContext.prototype.strokeText=function(){};SelectionContext.prototype.getImageData=function(){return new XODText.ImageData};SelectionContext.prototype.putImageData=function(){};SelectionContext.prototype.scale=function(){};SelectionContext.prototype.S=function(){this.save()};SelectionContext.prototype.r=function(){this.restore()};SelectionContext.prototype.t=function(m11,m12,m21,m22,dx,dy){this.transform(m11,m12,m21,m22,dx,
1993
- dy)};SelectionContext.prototype.ro=function(radians){this.rotate(radians)};SelectionContext.prototype.T=function(x,y){this.translate(x,y)};SelectionContext.prototype.L=function(x0,y0,x1,y1){return this.createLinearGradient()};SelectionContext.prototype.R=function(x0,y0,r0,x1,y1,r1){return this.createRadialGradient()};SelectionContext.prototype.P=function(image,repetition){this.createPattern()};SelectionContext.prototype.A=function(){};SelectionContext.prototype.b=function(){this.beginPath()};SelectionContext.prototype.z=
1994
- function(){this.closePath()};SelectionContext.prototype.F=function(){this.fill()};SelectionContext.prototype.X=function(){this.stroke()};SelectionContext.prototype.cr=function(){this.strokeRect()};SelectionContext.prototype.C=function(){this.clip()};SelectionContext.prototype.M=function(x,y){this.moveTo()};SelectionContext.prototype.l=function(x,y){this.lineTo()};SelectionContext.prototype.q=function(cpx,cpy,x,y){this.quadraticCurveTo()};SelectionContext.prototype.B=function(cp1x,cp1y,cp2x,cp2y,x,
1995
- y){this.bezierCurveTo()};SelectionContext.prototype.x=function(text,x,y){var this_font=this._getCurrentFont(this.font);this._fillTextImpl(text,x,y,this_font)};SelectionContext.prototype.m=function(text){var this_font=this._getCurrentFont(this.font);return this._measureTextImpl(text,this_font)};SelectionContext.prototype.I=function(image,dx,dy){this.drawImage()};SelectionContext.prototype.Z=function(m11,m12,m21,m22,dx,dy){this.setTransform()};SelectionContext.prototype.d=function(x,y,width,height){return this.getImageData()};
1996
- SelectionContext.prototype.D=function(imagedata,dx,dy){this.putImageData()};SelectionContext.prototype.e=function(x,y){this.scale()};SelectionContext.prototype.tm=function(mapping){this.lastMapping=mapping};SelectionContext.prototype.fillTextCustom=function(text,x,y){var this_font=this._getCurrentFont(this.font);this._fillTextImpl(text,x,y,this_font)};SelectionContext.prototype.xc=function(text,x,y){var this_font=this._getCurrentFont(this.font);this._fillTextImpl(text,x,y,this_font)};SelectionContext.prototype.cgb=
1997
- function(){Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(!this._custom_glyph_mode,"Custom Glyphs begin offset is incorrect");this._custom_glyph_mode=!0};SelectionContext.prototype.cge=function(){Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(this._custom_glyph_mode,"Custom Glyphs end offset is incorrect");this._custom_glyph_mode=!1};SelectionContext.prototype.xw=function(text,x,y){1<text.length&&(text=text.substr(0,text.length-1));this.x(text,x,y)};SelectionContext.prototype.xcw=function(text,x,y){1<
1998
- text.length&&(text=text.substr(0,text.length-1));this.xc(text,x,y)};SelectionContext.prototype.createCanvas=function(){return{getContext:function(){return new SelectionContext(this._font_container)}}};Object.defineProperty(SelectionContext.prototype,"n",{get:function(){return this.font},set:function(val){this.font=val},enumerable:!1,configurable:!0});return SelectionContext})()},function(module,__webpack_exports__,__webpack_require__){var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),
1999
- _textSelection_Quad__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9),_Line__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(26),_Word__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(22),_SelectionRect__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(18),_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3),_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(23),_namespaces_XMLParser_XMLParser__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(89);module=function(){function SelectionInfo(){this._m_Lines=
2000
- [];this.m_Offsets=[];this.m_Quads=[];this.m_Ready=!1;this._m_Whitespace_Indices=null;this.m_Str=""}SelectionInfo.prototype.clear=function(){this.m_Str="";Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.b)(this.m_Offsets);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.b)(this.m_Quads);this.m_Ready=!1};SelectionInfo.prototype.initDefault=function(){this.m_Offsets=[];this.m_Quads=[];this.m_Ready=!1};SelectionInfo.prototype.applyMatrix=function(matrix){function correctionFunction(quads){for(var length=
2001
- quads.length,i=0;i<length;i+=8){var pt1=matrix.mult({x:quads[i],y:quads[i+1]}),pt2=matrix.mult({x:quads[i+2],y:quads[i+3]}),pt3=matrix.mult({x:quads[i+4],y:quads[i+5]}),pt4=matrix.mult({x:quads[i+6],y:quads[i+7]}),quad=new _textSelection_Quad__WEBPACK_IMPORTED_MODULE_1__.a;quad._setCoordinates(pt1.x,pt1.y,pt2.x,pt2.y,pt3.x,pt3.y,pt4.x,pt4.y);pt1=quad.getPoints();quads[i]=pt1.x1;quads[i+1]=pt1.y1;quads[i+2]=pt1.x2;quads[i+3]=pt1.y2;quads[i+4]=pt1.x3;quads[i+5]=pt1.y3;quads[i+6]=pt1.x4;quads[i+7]=pt1.y4}}
2002
- correctionFunction(this.m_Quads);this._m_Lines.forEach(function(line){correctionFunction(line._m_quad);line._m_Words.forEach(function(word){correctionFunction(word._m_quad);word._m_glyph_quads.forEach(function(gQuad){correctionFunction(gQuad)})})})};SelectionInfo.prototype.parseFromOld=function(oldSelInfo){this.m_Quads=oldSelInfo.m_Quads;this.m_Offsets=oldSelInfo.m_Offsets;this.m_Str=oldSelInfo.m_Str;this.m_Ready=oldSelInfo.m_Ready;this._m_Lines=function(struct,quads,str){function parseQuad(arr,offset){return arr.slice(offset,
2003
- offset+8)}function getGenericWord(){var word=new _Word__WEBPACK_IMPORTED_MODULE_3__.a;word.m_Pos=struct[pos+1];word._m_CurNum=wordNum;wordNum++;var strPos=struct[pos+1];word._m_Str=str.slice(strPos,strPos+struct[pos+2]);word._m_Str_pos=strPos;strPos=struct[pos];for(var i=0;i<strPos;++i)word._m_glyph_quads.push(parseQuad(quads,8*(word.m_Pos+i)));prevWord&&(prevWord._m_next_word=word);return prevWord=word}function parseSimpleWord(lineBoundingBox){var word=getGenericWord(),numGlyphs=struct[pos],x_left=
2004
- struct[pos+3],x_right=struct[pos+4];if(x_left===x_right){x_left=Math.min(lineBoundingBox.x1,lineBoundingBox.x2);x_right=Math.max(lineBoundingBox.x1,lineBoundingBox.x2);var top=word._m_glyph_quads[0];lineBoundingBox=word._m_glyph_quads[numGlyphs-1];lineBoundingBox=[top[1],top[3],top[5],top[7],lineBoundingBox[1],lineBoundingBox[3],lineBoundingBox[5],lineBoundingBox[7]];top=Math.min.apply(null,lineBoundingBox);lineBoundingBox=Math.max.apply(null,lineBoundingBox);for(var i=0;i<numGlyphs;++i)for(var glyphQuad_1=
2005
- word._m_glyph_quads[i],minX=Math.min(glyphQuad_1[0],glyphQuad_1[2],glyphQuad_1[4]),j=0;8>j;j+=2)glyphQuad_1[j]=glyphQuad_1[j]===minX?x_left:x_right}else for(top=Math.min(lineBoundingBox.y1,lineBoundingBox.y2),lineBoundingBox=Math.max(lineBoundingBox.y1,lineBoundingBox.y2),i=0;i<numGlyphs;++i)for(glyphQuad_1=word._m_glyph_quads[i],minX=Math.min(glyphQuad_1[1],glyphQuad_1[3],glyphQuad_1[5]),j=1;8>j;j+=2)glyphQuad_1[j]=glyphQuad_1[j]===minX?lineBoundingBox:top;numGlyphs=word._m_quad;j=word._m_glyph_quads[0];
2006
- i=j[2]-j[0];j=j[3]-j[1];0<i?(numGlyphs[0]=x_left,numGlyphs[1]=lineBoundingBox,numGlyphs[2]=x_right,numGlyphs[3]=lineBoundingBox,numGlyphs[4]=x_right,numGlyphs[5]=top,numGlyphs[6]=x_left,numGlyphs[7]=top):0>i?(numGlyphs[0]=x_left,numGlyphs[1]=top,numGlyphs[2]=x_right,numGlyphs[3]=top,numGlyphs[4]=x_right,numGlyphs[5]=lineBoundingBox,numGlyphs[6]=x_left,numGlyphs[7]=lineBoundingBox):0<j?(numGlyphs[0]=x_left,numGlyphs[1]=top,numGlyphs[2]=x_left,numGlyphs[3]=lineBoundingBox,numGlyphs[4]=x_right,numGlyphs[5]=
2007
- lineBoundingBox,numGlyphs[6]=x_right,numGlyphs[7]=top):0>j?(numGlyphs[0]=x_right,numGlyphs[1]=lineBoundingBox,numGlyphs[2]=x_right,numGlyphs[3]=top,numGlyphs[4]=x_left,numGlyphs[5]=top,numGlyphs[6]=x_left,numGlyphs[7]=lineBoundingBox):(numGlyphs[0]=x_left,numGlyphs[1]=lineBoundingBox,numGlyphs[2]=x_right,numGlyphs[3]=lineBoundingBox,numGlyphs[4]=x_right,numGlyphs[5]=top,numGlyphs[6]=x_left,numGlyphs[7]=top);pos+=5;return word}function parseUnsimpleWord(){var word=getGenericWord();word._m_quad=parseQuad(struct,
2008
- pos+3);pos+=11;return word}function parseLine(lineNum){var line=new _Line__WEBPACK_IMPORTED_MODULE_2__.a;line._m_CurNum=lineNum;var simple=0<struct[pos];if(simple){var wordsOffset=6;lineNum=struct[pos];var quad=line._m_quad,pt1=struct.slice(pos+2,pos+4),pt2=struct.slice(pos+4,pos+6);quad[0]=pt1[0];quad[1]=pt1[1];quad[2]=pt2[0];quad[3]=pt1[1];quad[4]=pt2[0];quad[5]=pt2[1];quad[6]=pt1[0];quad[7]=pt2[1]}else wordsOffset=10,lineNum=-struct[pos],line._m_quad=parseQuad(struct,pos+2);simple=simple?parseSimpleWord:
2009
- parseUnsimpleWord;quad=new _SelectionRect__WEBPACK_IMPORTED_MODULE_4__.a;line.getBBox(quad);pos+=wordsOffset;prevWord=null;for(wordsOffset=0;wordsOffset<lineNum;++wordsOffset)line._m_Words.push(simple(quad));line._m_Str=line._m_Words.map(function(word){return word._m_Str}).join(" ");line._m_Str_pos=line._m_Words[0]?line._m_Words[0]._m_Str_pos:0;prevLine&&(prevLine._m_next_line=line);return prevLine=line}var pos=0,prevLine=null,prevWord=null,wordNum=0;return function(){var lines=[],numLines=struct[pos];
2010
- pos++;for(var i=0;i<numLines;++i)lines.push(parseLine(i));return lines}()}(oldSelInfo.m_Struct,this.m_Quads,this.m_Str)};SelectionInfo.prototype._getUnicodeString=function(bytes){for(var result="",i=0,c,c2,c3;i<bytes.length;)c=bytes.charCodeAt(i),9==c?(result+=String.fromCharCode(10),i++):128>c?(result+=String.fromCharCode(c),i++):191<c&&224>c?(c2=bytes.charCodeAt(i+1),result+=String.fromCharCode((c&31)<<6|c2&63),i+=2):(c2=bytes.charCodeAt(i+1),c3=bytes.charCodeAt(i+2),result+=String.fromCharCode((c&
2011
- 15)<<12|(c2&63)<<6|c3&63),i+=3);return result};SelectionInfo.prototype._processWord=function(word_mapping,context){var word=new _Word__WEBPACK_IMPORTED_MODULE_3__.a;word_mapping=word_mapping.split(",");word_mapping=Object(_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_6__.a)(word_mapping);for(var last_index=-1;word_mapping.moveNext();){var word_map=word_mapping.current.split(":"),word_offset=parseInt(word_map[0]),word_length=0;1<word_map.length&&(word_length=parseInt(word_map[1]));last_index===word_offset&&
2012
- (++word_offset,--word_length);for(last_index=word_offset+word_length;word_offset<=last_index;word_offset++){word_map=context.getLetter(word_offset);word_length=word_map.getChar();word.addChar(word_length,word_map.getQuad());for(var i=0;i<word_length.length;++i)this.m_Offsets.push(word_offset),Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.a)(this.m_Quads,word_map.getQuad())}}return word};SelectionInfo.prototype.parse=function(parser,context){var line_id=0,word_id=0,str_pos=0;do{for(var elem_name;parser.advance();)if(elem_name=
2013
- parser.getElementName(),"F"===elem_name)parser.increaseDepth();else if("P"===elem_name)parser.increaseDepth();else if("L"===elem_name){parser.increaseDepth();elem_name=new _Line__WEBPACK_IMPORTED_MODULE_2__.a;elem_name._setCurrentNum(line_id++);0<this._m_Lines.length&&this._m_Lines[this._m_Lines.length-1].setNextLine(elem_name);this._m_Lines.push(elem_name);var words=parser.getCharData().split(" ");for(words=Object(_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_6__.a)(words);words.moveNext();){var word_map=
2014
- words.current;if(0<elem_name.getNumWords()){this.m_Str+=" ";this.m_Offsets.push(-1);str_pos++;var last_quad=Array(8);elem_name.getLastWord().getQuad(last_quad);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.a)(this.m_Quads,last_quad)}word_map=this._processWord(word_map,context);word_map._setCurrentNum(word_id++);word_map._setStringPos(str_pos);elem_name.addWord(word_map);this.m_Str+=word_map.getString();str_pos+=word_map.getNumGlyphs()}this.m_Str+="\n";this.m_Offsets.push(-2);str_pos++;
2015
- Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(0<elem_name.getNumWords(),"No words in line");0<elem_name.getNumWords()&&(last_quad=Array(8),elem_name.getLastWord().getQuad(last_quad),Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.a)(this.m_Quads,last_quad))}else Object(logger__WEBPACK_IMPORTED_MODULE_0__.e)("XML parser has encountered a symbol it can't process.");parser.decreaseDepth()}while(parser.getDepth())};SelectionInfo.prototype.constructFromFlowArray=function(flowArray,context){var line_id=
2016
- 0,word_id=0,str_pos=0;this._m_Whitespace_Indices=[];for(var i=0;i<flowArray.length;++i)for(var paraArray=flowArray[i],j=0;j<paraArray.length;++j)for(var lineArray=paraArray[j],k=0;k<lineArray.length;++k){var line=new _Line__WEBPACK_IMPORTED_MODULE_2__.a;line._setCurrentNum(line_id++);0<this._m_Lines.length&&this._m_Lines[this._m_Lines.length-1].setNextLine(line);this._m_Lines.push(line);var words=lineArray[k].split(" ");for(words=Object(_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_6__.a)(words);words.moveNext();){var word_map=
2017
- words.current;if(0<line.getNumWords()){this._m_Whitespace_Indices.push(this.m_Str.length);this.m_Str+=" ";this.m_Offsets.push(-1);str_pos++;var last_quad=Array(8);line.getLastWord().getQuad(last_quad);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.a)(this.m_Quads,last_quad)}word_map=this._processWord(word_map,context);word_map._setCurrentNum(word_id++);word_map._setStringPos(str_pos);line.addWord(word_map);this.m_Str+=word_map.getString();str_pos+=word_map.getNumGlyphs()}this._m_Whitespace_Indices.push(this.m_Str.length);
2018
- this.m_Str+="\n";this.m_Offsets.push(-2);str_pos++;Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(0<line.getNumWords(),"No words in line");0<line.getNumWords()&&(last_quad=Array(8),line.getLastWord().getQuad(last_quad),Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.a)(this.m_Quads,last_quad))}this.m_Ready=!0};SelectionInfo.prototype.reconstruct=function(contents,context){try{var parser=new _namespaces_XMLParser_XMLParser__WEBPACK_IMPORTED_MODULE_7__.a(contents);Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)("TextData"===
2019
- parser.getElementName(),"XML parser has encountered a symbol it can't process.");"TextData"===parser.getElementName()&&(parser.increaseDepth(),this.parse(parser,context))}catch(ex){Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("TextSelection has encountered an error: "+ex.message);return}this.m_Ready=!0};SelectionInfo.prototype.ready=function(){return this.m_Ready};SelectionInfo.prototype.getNumLines=function(){return this._m_Lines.length};SelectionInfo.prototype.getFirstLine=function(){return this._m_Lines.length?
2020
- this._m_Lines[0]:new _Line__WEBPACK_IMPORTED_MODULE_2__.a};SelectionInfo.prototype.getLine=function(idx){return this._m_Lines.length?this._m_Lines[idx]:new _Line__WEBPACK_IMPORTED_MODULE_2__.a};SelectionInfo.prototype.getLines=function(){return this._m_Lines};SelectionInfo.prototype.getStr=function(){return this.m_Str};SelectionInfo.prototype.getOffsets=function(){return this.m_Offsets};SelectionInfo.prototype.getQuads=function(){return this.m_Quads};return SelectionInfo}();__webpack_exports__.a=
2021
- module},function(module,exports){},function(module,__webpack_exports__,__webpack_require__){module=__webpack_require__(5);__webpack_exports__=Object(module.d)(["xod"],["pdf","jpg","jpeg","png","jfif"],"docx xlsx pptx md doc xls ppt".split(" "));Object(module.d)(__webpack_exports__,["tiff","tif"],"doc xls csv ppt htm html utl xhtml bmp tif jp2 txt rtf odf odt odg odp ods xlsb xlt dwg dgn rvt rfa dxf dwf gif xltm xltx vsd vsdx xlt msg eml wmf emf".split(" "))},function(module$jscomp$0,exports,__webpack_require__){(function(global,
2022
- module){var __WEBPACK_AMD_DEFINE_RESULT__;(function(){function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2])}return func.apply(thisArg,args)}function arrayAggregator(array,setter,iteratee,accumulator){for(var index=-1,length=null==array?0:array.length;++index<length;){var value=array[index];setter(accumulator,value,iteratee(value),
2023
- array)}return accumulator}function arrayEach(array,iteratee){for(var index=-1,length=null==array?0:array.length;++index<length&&!1!==iteratee(array[index],index,array););return array}function arrayEachRight(array,iteratee){for(var length=null==array?0:array.length;length--&&!1!==iteratee(array[length],length,array););return array}function arrayEvery(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<length;)if(!predicate(array[index],index,array))return!1;return!0}function arrayFilter(array,
2024
- predicate){for(var index=-1,length=null==array?0:array.length,resIndex=0,result=[];++index<length;){var value=array[index];predicate(value,index,array)&&(result[resIndex++]=value)}return result}function arrayIncludes(array,value){return!(null==array||!array.length)&&-1<baseIndexOf(array,value,0)}function arrayIncludesWith(array,value,comparator){for(var index=-1,length=null==array?0:array.length;++index<length;)if(comparator(value,array[index]))return!0;return!1}function arrayMap(array,iteratee){for(var index=
2025
- -1,length=null==array?0:array.length,result=Array(length);++index<length;)result[index]=iteratee(array[index],index,array);return result}function arrayPush(array,values){for(var index=-1,length=values.length,offset=array.length;++index<length;)array[offset+index]=values[index];return array}function arrayReduce(array,iteratee,accumulator,initAccum){var index=-1,length=null==array?0:array.length;for(initAccum&&length&&(accumulator=array[++index]);++index<length;)accumulator=iteratee(accumulator,array[index],
2026
- index,array);return accumulator}function arrayReduceRight(array,iteratee,accumulator,initAccum){var length=null==array?0:array.length;for(initAccum&&length&&(accumulator=array[--length]);length--;)accumulator=iteratee(accumulator,array[length],length,array);return accumulator}function arraySome(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<length;)if(predicate(array[index],index,array))return!0;return!1}function baseFindKey(collection$jscomp$0,predicate,eachFunc){var result;
2027
- eachFunc(collection$jscomp$0,function(value,key,collection){if(predicate(value,key,collection))return result=key,!1});return result}function baseFindIndex(array,predicate,fromIndex,fromRight){var length=array.length;for(fromIndex+=fromRight?1:-1;fromRight?fromIndex--:++fromIndex<length;)if(predicate(array[fromIndex],fromIndex,array))return fromIndex;return-1}function baseIndexOf(array,value,fromIndex){if(value===value)a:{--fromIndex;for(var length=array.length;++fromIndex<length;)if(array[fromIndex]===
2028
- value){array=fromIndex;break a}array=-1}else array=baseFindIndex(array,baseIsNaN,fromIndex);return array}function baseIndexOfWith(array,value,fromIndex,comparator){--fromIndex;for(var length=array.length;++fromIndex<length;)if(comparator(array[fromIndex],value))return fromIndex;return-1}function baseIsNaN(value){return value!==value}function baseMean(array,iteratee){var length=null==array?0:array.length;return length?baseSum(array,iteratee)/length:NAN}function baseProperty(key){return function(object){return null==
2029
- object?undefined:object[key]}}function basePropertyOf(object){return function(key){return null==object?undefined:object[key]}}function baseReduce(collection$jscomp$0,iteratee,accumulator,initAccum,eachFunc){eachFunc(collection$jscomp$0,function(value,index,collection){accumulator=initAccum?(initAccum=!1,value):iteratee(accumulator,value,index,collection)});return accumulator}function baseSortBy(array,comparer){var length=array.length;for(array.sort(comparer);length--;)array[length]=array[length].value;
2030
- return array}function baseSum(array,iteratee){for(var result,index=-1,length=array.length;++index<length;){var current=iteratee(array[index]);undefined!==current&&(result=undefined===result?current:result+current)}return result}function baseTimes(n,iteratee){for(var index=-1,result=Array(n);++index<n;)result[index]=iteratee(index);return result}function baseToPairs(object,props){return arrayMap(props,function(key){return[key,object[key]]})}function baseTrim(string){return string?string.slice(0,trimmedEndIndex(string)+
2031
- 1).replace(reTrimStart,""):string}function baseUnary(func){return function(value){return func(value)}}function baseValues(object,props){return arrayMap(props,function(key){return object[key]})}function cacheHas(cache,key){return cache.has(key)}function charsStartIndex(strSymbols,chrSymbols){for(var index=-1,length=strSymbols.length;++index<length&&-1<baseIndexOf(chrSymbols,strSymbols[index],0););return index}function charsEndIndex(strSymbols,chrSymbols){for(var index=strSymbols.length;index--&&-1<
2032
- baseIndexOf(chrSymbols,strSymbols[index],0););return index}function escapeStringChar(chr){return"\\"+stringEscapes[chr]}function mapToArray(map){var index=-1,result=Array(map.size);map.forEach(function(value,key){result[++index]=[key,value]});return result}function overArg(func,transform){return function(arg){return func(transform(arg))}}function replaceHolders(array,placeholder){for(var index=-1,length=array.length,resIndex=0,result=[];++index<length;){var value=array[index];if(value===placeholder||
2033
- "__lodash_placeholder__"===value)array[index]="__lodash_placeholder__",result[resIndex++]=index}return result}function setToArray(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=value});return result}function setToPairs(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=[value,value]});return result}function stringSize(string){if(reHasUnicode.test(string)){for(var result=reUnicode.lastIndex=0;reUnicode.test(string);)++result;string=
2034
- result}else string=asciiSize(string);return string}function stringToArray(string){return reHasUnicode.test(string)?string.match(reUnicode)||[]:string.split("")}function trimmedEndIndex(string){for(var index=string.length;index--&&reWhitespace.test(string.charAt(index)););return index}var undefined,INFINITY=1/0,NAN=0/0,wrapFlags=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=
2035
- /\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g,reEscapedHtml=/&(?:amp|lt|gt|quot|#39);/g,reUnescapedHtml=/[&<>"']/g,reHasEscapedHtml=RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source),reEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
2036
- reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source),reTrimStart=/^\s+/,reWhitespace=/\s/,reWrapComment=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,reWrapDetails=/\{\n\/\* \[wrapped with (.+)\] \*/,reSplitDetails=/,? & /,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,reForbiddenIdentifierChars=/[()=,{}\[\]\/\s]/,reEscapeChar=/\\(\\)?/g,reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,reFlags=/\w*$/,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsHostCtor=
2037
- /^\[object .+?Constructor\]$/,reIsOctal=/^0o[0-7]+$/i,reIsUint=/^(?:0|[1-9]\d*)$/,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,reNoMatch=/($^)/,reUnescapedString=/['\n\r\u2028\u2029\\]/g,reApos=RegExp("['\u2019]","g"),reComboMark=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),reUnicode=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?|[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*",
1902
+ resultStr:"",resultStrStart:-1,resultStrEnd:-1,pageNum:pageNumber,resultCode:_ResultCode__WEBPACK_IMPORTED_MODULE_2__.a.PAGE,quads:[],ambient_str:"",result_str:"",result_str_start:-1,result_str_end:-1,page_num:pageNumber}}var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3),_SearchMode__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7),_ResultCode__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(16),_Quad__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(12),_namespaces_Core_Workers_BackendType__WEBPACK_IMPORTED_MODULE_4__=
1903
+ __webpack_require__(101),_util_constants_events__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(32);(function(){function PDFTextSearch(){var _this=this;this.onSearchCallback=function(){};this.isSearchUpOn=!1;this.currentSearchID=this.currentPage=0;this.searchBatchSize=50;this.initialSearchResultForSearchUp=this.initialSearchResultForSearchDown=this.lastSearch=null;Object(_namespaces_Core_Workers_BackendType__WEBPACK_IMPORTED_MODULE_4__.a)().then(function(type){_this.isUsingThreadedWorkers="wasm-threads"===
1904
+ type})}PDFTextSearch.prototype.cancelSearch=function(){this.currentSearchID++};PDFTextSearch.prototype.shouldStopSearching=function(searchID){return searchID!==this.currentSearchID};PDFTextSearch.prototype.resultCallBack=function(results,searchID){var _this=this;results.forEach(function(result){var _a;if(!_this.shouldStopSearching(searchID)){_this.resultFound=!0;for(_this.doc.getDocumentViewer().viewerPageManager.setPageSelectedText(result.page_num-1,result.out_str);!_this.isSearchUpOn&&_this.currentPage<
1905
+ result.page_num||_this.isSearchUpOn&&_this.currentPage>result.page_num;)_this.onSearchCallback(createPageEndEvent(_this.currentPage)),_this.isSearchUpOn?_this.currentPage--:_this.currentPage++;var pageMatrix=_this.doc.getPages()[result.page_num-1].matrix,quads=[];(null===(_a=result.highlights)||void 0===_a?0:_a.length)&&result.highlights.forEach(function(highlight){highlight.quads.forEach(function(q){pageMatrix.transformQuad(q);var quad=new _Quad__WEBPACK_IMPORTED_MODULE_3__.a;quad.x1=q[0];quad.x2=
1906
+ q[2];quad.x3=q[4];quad.x4=q[6];quad.y1=q[1];quad.y2=q[3];quad.y3=q[5];quad.y4=q[7];quads.push(quad)})});result={ambientStr:result.ambient_str||"",resultStr:result.out_str||"",resultStrStart:result.ambient_str?result.first_idx_within_ambient_str:-1,resultStrEnd:result.ambient_str?result.first_idx_within_ambient_str+result.out_str.length:-1,pageNum:result.page_num,resultCode:_ResultCode__WEBPACK_IMPORTED_MODULE_2__.a.FOUND,quads:quads,ambient_str:result.ambient_str||"",result_str:result.out_str,result_str_start:result.ambient_str?
1907
+ result.ambient_str.indexOf(result.out_str):-1,result_str_end:result.ambient_str?result.ambient_str.indexOf(result.out_str)+result.out_str.length:-1,page_num:result.page_num};_this.onSearchCallback(result)}})};PDFTextSearch.prototype.fireRemainingEvents=function(lastPageNumber,startPage,endPage){for(;!this.isSearchUpOn&&lastPageNumber<=endPage||this.isSearchUpOn&&lastPageNumber>=startPage;)this.onSearchCallback(createPageEndEvent(lastPageNumber)),this.isSearchUpOn?lastPageNumber--:lastPageNumber++;
1908
+ this.onSearchCallback({ambientStr:"",resultStr:"",resultStrStart:-1,resultStrEnd:-1,pageNum:0,resultCode:_ResultCode__WEBPACK_IMPORTED_MODULE_2__.a.DONE,quads:[],ambient_str:"",result_str:"",result_str_start:-1,result_str_end:-1,page_num:0})};PDFTextSearch.prototype.searchDown=function(results,start,end){1!==start&&this.initialSearchResultForSearchDown||(this.initialSearchResultForSearchDown=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]),
1909
+ {searchUp:!1}));if(!this.lastSearch||this.lastSearch.page_num<start)this.lastSearch=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]),{searchUp:!1});else{var currentPage=this.lastSearch.page_num;currentPage===this.initialSearchResultForSearchDown.page_num&&(this.initialSearchResultForSearchDown=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]),{searchUp:!1}));start=results.filter(function(rs){return rs.page_num===
1910
+ currentPage});if(start.length){var nextIndex=this.lastSearch.index+1;this.lastSearch.searchUp&&(nextIndex=start.length-this.lastSearch.index);nextIndex===start.length?(start=results.filter(function(result){return result.page_num>currentPage}),this.lastSearch=currentPage!==end&&start.length?Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},start[0]),{searchUp:!1}):this.initialSearchResultForSearchDown):this.lastSearch=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:nextIndex},
1911
+ start[nextIndex]),{searchUp:!1})}else this.lastSearch=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]),{searchUp:!1})}};PDFTextSearch.prototype.isSearchUp=function(results,start,end){end!==this.doc.getPageCount()&&this.initialSearchResultForSearchUp||(this.initialSearchResultForSearchUp=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]),{searchUp:!0}));if(!this.lastSearch||this.lastSearch.page_num>
1912
+ end)this.lastSearch=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]),{searchUp:!0});else{var currentPage=this.lastSearch.page_num;currentPage===this.initialSearchResultForSearchUp.page_num&&(this.initialSearchResultForSearchUp=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]),{searchUp:!0}));end=results.filter(function(rs){return rs.page_num===currentPage});if(end.length){var nextIndex=
1913
+ this.lastSearch.index+1;this.lastSearch.searchUp||(nextIndex=end.length-this.lastSearch.index);nextIndex===end.length?(end=results.filter(function(result){return result.page_num<currentPage}),this.lastSearch=currentPage!==start&&end.length?Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},end[0]),{searchUp:!0}):this.initialSearchResultForSearchUp):this.lastSearch=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:nextIndex},
1914
+ end[nextIndex]),{searchUp:!0})}else this.lastSearch=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]),{searchUp:!0})}};PDFTextSearch.prototype.getLatestSearch=function(results,start,end){this.isSearchUpOn?this.isSearchUp(results,start,end):this.searchDown(results,start,end)};PDFTextSearch.prototype.searchTillDone=function(start,end,searchID){var _this=this;if(start>end)return this.fireRemainingEvents(this.currentPage,this.searchStartPage,
1915
+ this.searchEndPage),Promise.resolve(!0);var searchStart=this.isSearchUpOn?Math.max(start,end-this.searchBatchSize):start,searchEnd=this.isSearchUpOn?end:Math.min(start+this.searchBatchSize,end);return this.doc.textSearch(this.searchPattern,this.searchMode,searchStart,searchEnd).then(function(results){if(_this.shouldStopSearching(searchID))return Promise.resolve(!1);if(!_this.isFullSearch&&0<results.length)return _this.getLatestSearch(results,start,end),_this.resultCallBack([_this.lastSearch],searchID),
1916
+ Promise.resolve(!0);_this.resultCallBack(results,searchID);var searchNextBatch=function(){return _this.pauseSearch&&!_this.isUsingThreadedWorkers?new Promise(function(resolve){_this.doc.getDocumentViewer().addEventListener(_util_constants_events__WEBPACK_IMPORTED_MODULE_5__.DocumentViewerEvents.FINISHED_RENDERING,function(){_this.pauseSearch=!1;resolve(searchNextBatch())},{once:!0})}):_this.isSearchUpOn?_this.searchTillDone(start,searchStart-1,searchID):_this.searchTillDone(searchEnd+1,end,searchID)};
1917
+ return searchNextBatch()})};PDFTextSearch.prototype.convertMode=function(mode){var newMode=0;newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.WILD_CARD|mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.REGEX?newMode|1:newMode;newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.CASE_SENSITIVE?newMode|2:newMode;newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.WHOLE_WORD?newMode|4:newMode;newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.SEARCH_UP?newMode|8:newMode;newMode=mode&
1918
+ _SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.PAGE_STOP?newMode|16:newMode;newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.HIGHLIGHT?newMode|32:newMode;return newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.AMBIENT_STRING?newMode|64:newMode};PDFTextSearch.prototype.setSearchBatchSize=function(searchBatchSize){this.searchBatchSize=searchBatchSize};PDFTextSearch.prototype.updateSearchPageInfo=function(startPage,endPage,doc,isMatching){var currentPage=this.lastSearch.page_num;switch(!0){case isMatching&&
1919
+ this.isSearchUpOn:this.searchStartPage=startPage||1;this.searchEndPage=1===currentPage?doc.getPageCount():currentPage;break;case isMatching&&!this.isSearchUpOn:this.searchStartPage=currentPage===doc.getPageCount()?1:currentPage;this.searchEndPage=endPage||doc.getPageCount();break;case !isMatching:this.searchStartPage=1,this.initialSearchResultForSearchUp=this.initialSearchResultForSearchDown=this.lastSearch=null,this.searchEndPage=doc.getPageCount()}};PDFTextSearch.prototype.search=function(doc,pattern,
1920
+ mode,start_page,end_page,onSearchCallback,isFullSearch){var _this=this;this.currentSearchID++;this.resultFound=!1;this.doc&&this.doc!==doc||(doc.getDocumentViewer().addEventListener(_util_constants_events__WEBPACK_IMPORTED_MODULE_5__.DocumentViewerEvents.BEGIN_RENDERING,function(){_this.pauseSearch=!0}),doc.getDocumentViewer().addEventListener(_util_constants_events__WEBPACK_IMPORTED_MODULE_5__.DocumentViewerEvents.FINISHED_RENDERING,function(){_this.pauseSearch=!1}));this.doc=doc;this.onSearchCallback=
1921
+ onSearchCallback;this.isSearchUpOn=!!(mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.SEARCH_UP);this.isFullSearch=isFullSearch;this.searchPattern=pattern;mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.WILD_CARD&&(this.searchPattern=pattern.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replaceAll("**","[TEMPEscape]").replaceAll("*","[A-z]*").replaceAll("[TEMPEscape]","\\*"));this.searchPattern=this.searchPattern.replaceAll("\n","");this.searchMode=this.convertMode(mode);!isFullSearch&&this.lastSearch?mode&
1922
+ _SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.CASE_SENSITIVE?this.updateSearchPageInfo(start_page,end_page,doc,pattern===this.lastSearch.out_str):this.updateSearchPageInfo(start_page,end_page,doc,pattern.toLocaleLowerCase()===this.lastSearch.out_str.toLocaleLowerCase()):(this.searchStartPage=start_page||1,this.searchEndPage=doc.getPageCount());this.currentPage=this.isSearchUpOn?this.searchEndPage:this.searchStartPage;return this.searchTillDone(this.searchStartPage,this.searchEndPage,this.currentSearchID)};
1923
+ return PDFTextSearch})()},function(module,__webpack_exports__,__webpack_require__){var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_selectionInfo_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(14),_Quad__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(12),_Matrix2D__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(13),_TextSelectionBlock__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(44),_Point2D__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(19),_ResultFindStructuralBounds__WEBPACK_IMPORTED_MODULE_6__=
1924
+ __webpack_require__(45),_selectionInfo__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1),_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(4);(function(){function TextLocator(doc){this._m_Str="";this._m_PrePage=-1;this._m_Quads=[];this._m_Texts="";this._m_Pages=doc.getPages();this._m_Words=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.b;this._m_Words.initDefault();this._m_Blocks=[];this._m_Surrtxts=[];this._m_Selidxs=[];this._m_Direction=0;this._m_Horizontal=!1}TextLocator.prototype.getQuads=
1925
+ function(){for(var sz=this._m_Quads.length/8,quads=[],i=0;i<sz;++i){var q=new _Quad__WEBPACK_IMPORTED_MODULE_2__.a,pos=8*i;q._setCoordinates(this._m_Quads[pos],this._m_Quads[pos+1],this._m_Quads[pos+2],this._m_Quads[pos+3],this._m_Quads[pos+4],this._m_Quads[pos+5],this._m_Quads[pos+6],this._m_Quads[pos+7]);quads.push(q)}return quads};TextLocator.prototype.getTexts=function(){return this._m_Texts};TextLocator.prototype._isWhitespace=function(s){s=s.charCodeAt(0);return 32===s||1<=s&&31>=s||160===s||
1926
+ 8192<=s&&(8207>=s||8232<=s&&8239>=s||8298<=s&&8303>=s)?!0:!1};TextLocator.prototype._selectByRect=function(page_number,sel_rect){--page_number;Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(this._m_Quads);this._m_Texts="";sel_rect.normalize();for(var page_texts=[],all_pages_str="",i,i_1=page_number-1;i_1<page_number+2;i_1++)this._performMiscPageSetup(i_1)&&(page_texts.push({idx:i_1,txt:this._m_Str}),all_pages_str+=this._m_Str);if(0===page_texts.length||0===all_pages_str.length||!this._performMiscPageSetup(page_number))return!1;
1927
+ i_1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;var quad=Array(8),line,lend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;lend.initDefault();var wend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;wend.initDefault();var to_append=[],new_line_start=!1;for(line=this._m_Words.getFirstLine();!line.equal(lend);line=line.getNextLine())if(line.getBBox(i_1),i_1.normalize(),!sel_rect.notIntersect(i_1)){var tmp_selidxs=[null,null],tmp_surrtxts=[null,null],first_selected_glyph_index=-1;var num_chars=
1928
+ -1;for(i=line.getFirstWord();!i.equal(wend);i=i.getNextWord())if(i.getQuad(quad),i_1.setFromQuad(quad),!sel_rect.notIntersect(i_1)){num_chars=i.getStringLen();var str_id=i.getStringPos();-1===first_selected_glyph_index&&(first_selected_glyph_index=str_id);var k=to_append.length;if(0<num_chars&&0<k){new_line_start&&("\n"!==to_append[0]&&(this._isWhitespace(to_append[k-1])?to_append[k-1]="\n":to_append.push("\n")),new_line_start=!1);for(k=0;k<to_append.length;++k)this._m_Texts+=to_append[k];Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(to_append)}for(k=
1929
+ 0;k<=num_chars;++k)str_id+k<this._m_Str.length&&(k<num_chars?this._m_Texts+=this._m_Str.charAt(str_id+k):to_append.push(this._m_Str.charAt(str_id+k)));if(0<num_chars){k=i_1.x2-i_1.x1;var y=i_1.y2-i_1.y1;this._storeQuad(quad,Math.sqrt(k*k+y*y)/num_chars*3)}num_chars=str_id+num_chars}new_line_start=!0;tmp_selidxs[0]=first_selected_glyph_index;for(i=first_selected_glyph_index=0;i<page_texts.length;i++)if(page_texts[i].idx===page_number){first_selected_glyph_index+=tmp_selidxs[0];break}else page_texts[i].idx<
1930
+ page_number&&(first_selected_glyph_index+=page_texts[i].txt.length);tmp_surrtxts[0]=all_pages_str.substring(Math.max(0,first_selected_glyph_index-100),first_selected_glyph_index);if(-1!==num_chars){tmp_selidxs[1]=num_chars;for(i=first_selected_glyph_index=0;i<page_texts.length;i++)if(page_texts[i].idx===page_number){first_selected_glyph_index+=num_chars;break}else page_texts[i].idx<page_number&&(first_selected_glyph_index+=page_texts[i].txt.length);tmp_surrtxts[1]=all_pages_str.substr(first_selected_glyph_index+
1931
+ 1,100)}null!==tmp_selidxs[0]&&null!==tmp_selidxs[1]&&this._m_Selidxs.push(tmp_selidxs);null!==tmp_surrtxts[0]&&null!==tmp_surrtxts[1]&&this._m_Surrtxts.push(tmp_surrtxts)}return 0<this._m_Quads.length};TextLocator.prototype._cmptTextDirection=function(){var line,lend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;lend.initDefault();var q1=Array(8),q2=Array(8),max_distance=.1,direction=-100;for(line=this._m_Words.getFirstLine();!line.equal(lend);line=line.getNextLine()){var g1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c,
1932
+ g2=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c,wend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;wend.initDefault();var w1=line.getFirstWord(),w2=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;w2.initDefault();for(var word=line.getFirstWord();!word.equal(wend);word=word.getNextWord())w2=word;w1.getGlyphQuad(0,q1);g1.x=(q1[0]+q1[2]+q1[4]+q1[6])/4;g1.y=(q1[1]+q1[3]+q1[5]+q1[7])/4;w2.getGlyphQuad(w2.getNumGlyphs()-1,q2);g2.x=(q2[0]+q2[2]+q2[4]+q2[6])/4;g2.y=(q2[1]+q2[3]+q2[5]+q2[7])/4;
1933
+ wend=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.distance(g1,g2);wend>max_distance&&(direction=Math.atan2(g2.y-g1.y,g2.x-g1.x),direction*=180/3.1415926,direction=Math.round(direction),0>direction&&(direction+=360),max_distance=wend)}this._m_Direction=direction;this._m_Horizontal=2>Math.abs(this._m_Direction)||2>Math.abs(this._m_Direction-180)};TextLocator.prototype.selectGlyphsByRect=function(page_idx,sel_rect){Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(this._m_Quads);this._m_Texts=
1934
+ "";sel_rect.normalize();var page_texts=[],all_pages_str="",i;for(i=page_idx-1;i<page_idx+2;i++)this._performMiscPageSetup(i)&&(page_texts.push({idx:i,txt:this._m_Str}),all_pages_str+=this._m_Str);if(0===page_texts.length||0===all_pages_str.length||!this._performMiscPageSetup(page_idx))return!1;var bbox=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,quad=Array(8),k,line,lend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;lend.initDefault();var word,wend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;
1935
+ wend.initDefault();var to_append=[],new_line_start=!1;for(line=this._m_Words.getFirstLine();!line.equal(lend);line=line.getNextLine())if(line.getBBox(bbox),bbox.normalize(),!sel_rect.notIntersect(bbox)){var tmp_selidxs=[null,null],tmp_surrtxts=[null,null],last_selected_glyph_index=-1,first_selected_word_on_line=!0;for(word=line.getFirstWord();!word.equal(wend);word=word.getNextWord())if(word.getQuad(quad),bbox.setFromQuad(quad),!sel_rect.notIntersect(bbox)){var num_chars=word.getStringLen();var str_id=
1936
+ word.getStringPos(),sz=to_append.length;if(0<num_chars&&0<sz){new_line_start&&("\n"!==to_append[0]&&(this._isWhitespace(to_append[sz-1])?to_append[sz-1]="\n":to_append.push("\n")),new_line_start=!1);for(i=0;i<to_append.length;++i)this._m_Texts+=to_append[i];Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(to_append)}sz=0;var front_chop=Array(8),back_chop=Array(8),front_chop_flag=!1,back_chop_flag=!1;for(k=0;k<num_chars;++k){var current_glyph_idx_in_pg_txt=str_id+k;if(current_glyph_idx_in_pg_txt<
1937
+ this._m_Str.length){i=Array(8);var ch_bbox=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;word.getGlyphQuad(k,i);ch_bbox.setFromQuad(i);if(sel_rect.notIntersect(ch_bbox))0===sz?front_chop_flag=!0:back_chop_flag=!0;else{last_selected_glyph_index=current_glyph_idx_in_pg_txt;sz++;if(1===sz){if(first_selected_word_on_line){tmp_selidxs[0]=current_glyph_idx_in_pg_txt;for(i=first_selected_word_on_line=0;i<page_texts.length;i++)if(page_texts[i].idx===page_idx){first_selected_word_on_line+=current_glyph_idx_in_pg_txt;
1938
+ break}else page_texts[i].idx<page_idx&&(first_selected_word_on_line+=page_texts[i].txt.length);tmp_surrtxts[0]=all_pages_str.substring(Math.max(0,first_selected_word_on_line-100),first_selected_word_on_line);first_selected_word_on_line=!1}front_chop_flag&&word.getGlyphQuad(k,front_chop)}word.getGlyphQuad(k,back_chop);k<num_chars?this._m_Texts+=this._m_Str.charAt(current_glyph_idx_in_pg_txt):to_append.push(this._m_Str.charAt(current_glyph_idx_in_pg_txt))}}}"\n"!=to_append[num_chars]&&to_append.push(" ");
1939
+ 0<sz&&(front_chop_flag&&this._chopQuad(quad,front_chop,!0),back_chop_flag&&this._chopQuad(quad,back_chop,!1),bbox.setFromQuad(quad),num_chars=bbox.x2-bbox.x1,str_id=bbox.y2-bbox.y1,this._storeQuad(quad,Math.sqrt(num_chars*num_chars+str_id*str_id)/sz*3))}new_line_start=!0;if(-1!==last_selected_glyph_index){tmp_selidxs[1]=last_selected_glyph_index;for(i=word=0;i<page_texts.length;i++)if(page_texts[i].idx===page_idx){word+=last_selected_glyph_index;break}else page_texts[i].idx<page_idx&&(word+=page_texts[i].txt.length);
1940
+ tmp_surrtxts[1]=all_pages_str.substr(word+1,100)}null!==tmp_selidxs[0]&&null!==tmp_selidxs[1]&&this._m_Selidxs.push(tmp_selidxs);null!==tmp_surrtxts[0]&&null!==tmp_surrtxts[1]&&this._m_Surrtxts.push(tmp_surrtxts)}return 0<this._m_Quads.length};TextLocator.prototype.getRectangularSelectionFromSurroundingTexts=function(input_page_idx,surrounding_text_pairs,text_to_match){for(var quads=[],output_page_idx=-1,found_text="",i=0;i<surrounding_text_pairs.length;i++){var result=this.getStructuralSelectionFromSurroundingTexts(input_page_idx,
1941
+ surrounding_text_pairs[i][0],surrounding_text_pairs[i][1]);if(result.status)-1!==output_page_idx||void 0===result.pgidx||null===result.pgidx||isNaN(result.pgidx)||(output_page_idx=result.pgidx),result.pgidx===output_page_idx&&Array.prototype.push.apply(quads,result.value),found_text+=this._m_Texts;else break}-1===output_page_idx&&(output_page_idx=0);return 0===quads.length||found_text.replace(/( |\n)/gm,"")!==text_to_match.replace(/( |\n)/gm,"")?{status:!1}:{status:!0,value:quads,pgidx:output_page_idx}};
1942
+ TextLocator.prototype.getStructuralSelectionFromSurroundingTexts=function(page_idx,pre_text,post_text,text_to_match){if(20>=pre_text.length||20>=post_text.length)return{status:!1};var page_texts=[],all_pages_str="",chunk_relative_whitespace_indices=[],remove_whitespace=!0,last_iterated_page_text_end_index=0,i,j;for(i=page_idx-1;i<page_idx+2;i++)if(this._performMiscPageSetup(i))if(page_texts.push({idx:i,txt:this._m_Str}),all_pages_str+=this._m_Str,null!==this._m_Pages[i].text._m_Whitespace_Indices){for(j=
1943
+ 0;j<this._m_Pages[i].text._m_Whitespace_Indices.length;j++)chunk_relative_whitespace_indices.push(this._m_Pages[i].text._m_Whitespace_Indices[j]+last_iterated_page_text_end_index);last_iterated_page_text_end_index+=this._m_Str.length}else remove_whitespace=!1;if(0===page_texts.length||0===all_pages_str.length)return{status:!1};last_iterated_page_text_end_index=[];i=0;remove_whitespace?(page_idx=all_pages_str.replace(/( |\n)/gm,""),pre_text=pre_text.replace(/( |\n)/gm,"")):page_idx=all_pages_str;for(;!(0===
1944
+ page_idx.length||page_idx.length<pre_text.length||(j=page_idx.indexOf(pre_text),0>j));)last_iterated_page_text_end_index.push(i+j+pre_text.length),page_idx=page_idx.substr(j+1),i+=j+1;if(0===last_iterated_page_text_end_index.length)return{status:!1};pre_text=[];i=last_iterated_page_text_end_index[0]+1;remove_whitespace?(page_idx=all_pages_str.replace(/( |\n)/gm,"").substring(last_iterated_page_text_end_index[0]+1),post_text=post_text.replace(/( |\n)/gm,"")):page_idx=all_pages_str.substring(last_iterated_page_text_end_index[0]+
1945
+ 1);for(;!(0===page_idx.length||page_idx.length<post_text.length||(j=page_idx.indexOf(post_text),0>j));)pre_text.push(i+j),page_idx=page_idx.substr(j+1),i+=j+1;if(0===pre_text.length)return{status:!1};post_text=[];for(i=0;i<last_iterated_page_text_end_index.length;i++)for(page_idx=0;page_idx<pre_text.length;page_idx++)if(last_iterated_page_text_end_index[i]+1<=pre_text[page_idx]&&(j=[],j.push(last_iterated_page_text_end_index[i]),j.push(pre_text[page_idx]),post_text.push(j)),1<post_text.length)return{status:!1};
1946
+ if(1!==post_text.length)return{status:!1};if(remove_whitespace){for(i=0;i<chunk_relative_whitespace_indices.length&&!(post_text[0][0]<chunk_relative_whitespace_indices[i]);i++)post_text[0][0]++;for(i=0;i<chunk_relative_whitespace_indices.length&&!(post_text[0][1]<chunk_relative_whitespace_indices[i]);i++)post_text[0][1]++}remove_whitespace=[0,0];chunk_relative_whitespace_indices=-1;for(i=last_iterated_page_text_end_index=0;i<page_texts.length;i++){pre_text=page_texts[i].txt;if(post_text[0][0]>=last_iterated_page_text_end_index&&
1947
+ post_text[0][0]<last_iterated_page_text_end_index+pre_text.length){chunk_relative_whitespace_indices=page_texts[i].idx;remove_whitespace[0]=post_text[0][0]-last_iterated_page_text_end_index;break}last_iterated_page_text_end_index+=pre_text.length}if(-1===chunk_relative_whitespace_indices)return{status:!1};page_idx=-1;for(i=last_iterated_page_text_end_index=0;i<page_texts.length;i++){pre_text=page_texts[i].txt;if(post_text[0][1]>=last_iterated_page_text_end_index&&post_text[0][1]<last_iterated_page_text_end_index+
1948
+ pre_text.length){page_idx=page_texts[i].idx;remove_whitespace[1]=post_text[0][1]-last_iterated_page_text_end_index;break}last_iterated_page_text_end_index+=pre_text.length}if(-1===page_idx)return{status:!1};if(chunk_relative_whitespace_indices===page_idx){all_pages_str=this.getStructuralSelectionFromTextIndices(chunk_relative_whitespace_indices,remove_whitespace[0],remove_whitespace[1]-1);if(all_pages_str.status){if(text_to_match&&this._m_Texts.replace(/( |\n)/gm,"")!==text_to_match.replace(/( |\n)/gm,
1949
+ ""))return{status:!1};all_pages_str.pgidx=chunk_relative_whitespace_indices;return all_pages_str}return{status:!1}}for(i=0;i<page_texts.length&&page_texts[i].idx!==chunk_relative_whitespace_indices;i++);page_texts=this.getStructuralSelectionFromTextIndices(chunk_relative_whitespace_indices,remove_whitespace[0],page_texts[i].txt.length-1);this._m_Texts=all_pages_str.substring(post_text[0][0],post_text[0][1]);if(page_texts.status){if(text_to_match&&this._m_Texts.replace(/( |\n)/gm,"")!==text_to_match.replace(/( |\n)/gm,
1950
+ ""))return{status:!1};page_texts.pgidx=chunk_relative_whitespace_indices;return page_texts}return{status:!1}};TextLocator.prototype.getRectangularSelectionFromTextIndices=function(page_idx,index_pairs,text_to_match){for(var quads=[],found_text="",i=0;i<index_pairs.length;i++){var i1=Number(index_pairs[i][0]),i2=Number(index_pairs[i][1]);if(isNaN(i1)||isNaN(i2))return Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("getRectangularSelectionFromTextIndices: could not parse index-based selectors as numbers."),
1951
+ {status:!1};i1=this.getStructuralSelectionFromTextIndices(page_idx,i1,i2);if(i1.status)Array.prototype.push.apply(quads,i1.value),found_text+=this._m_Texts;else return{status:!1}}return 0===quads.length||found_text.replace(/( |\n)/gm,"")!==text_to_match.replace(/( |\n)/gm,"")?{status:!1}:{status:!0,value:quads}};TextLocator.prototype.getStructuralSelectionFromTextIndices=function(page_idx,start_index,end_index,text_to_match){if(!this._performMiscPageSetup(page_idx))return{status:!1};var wend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;
1952
+ wend.initDefault();page_idx=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;page_idx.initDefault();this._m_Texts=this._m_Str.substring(start_index,Math.min(end_index+1,this._m_Str.length));if(text_to_match&&this._m_Texts.replace(/( |\n)/gm,"")!==text_to_match.replace(/( |\n)/gm,""))return{status:!1};text_to_match=0;for(var first_line_in_block,last_line_in_block;;){if(text_to_match>=this._m_Blocks.length)return{status:!1};first_line_in_block=this._m_Blocks[text_to_match]._m_first_line;last_line_in_block=
1953
+ this._m_Blocks[text_to_match]._m_last_line;if(last_line_in_block.getLastWord().getStringPos()+last_line_in_block.getLastWord().getNumGlyphs()>=start_index&&first_line_in_block.getFirstWord().getStringPos()<=start_index)break;text_to_match++}for(var start_block=this._m_Blocks[text_to_match],start_line=start_block._m_first_line;;){if(start_line.equal(page_idx))return{status:!1};if(this._sameDirection(start_line.getDirection())){if(start_line.getLastWord().getStringPos()+start_line.getLastWord().getNumGlyphs()>=
1954
+ start_index&&start_line.getFirstWord().getStringPos()<=start_index)break;if(start_line.equal(start_block._m_last_line)||start_line.equal(page_idx))return{status:!1};start_line=start_line.getNextLine()}}for(var start_word=start_line.getFirstWord();;){if(start_word.equal(wend))return{status:!1};if(start_word.getStringPos()+start_word.getNumGlyphs()>=start_index&&start_word.getStringPos()<=start_index)break;start_word=start_word.getNextWord()}for(var end_block_idx=0;;){if(end_block_idx>=this._m_Blocks.length)return{status:!1};
1955
+ first_line_in_block=this._m_Blocks[end_block_idx]._m_first_line;last_line_in_block=this._m_Blocks[end_block_idx]._m_last_line;if(last_line_in_block.getLastWord().getStringPos()+last_line_in_block.getLastWord().getNumGlyphs()>=end_index&&first_line_in_block.getFirstWord().getStringPos()<=end_index)break;end_block_idx++}for(var end_line=this._m_Blocks[end_block_idx]._m_first_line;;){if(end_line.equal(page_idx))return{status:!1};if(this._sameDirection(end_line.getDirection())){if(end_line.getLastWord().getStringPos()+
1956
+ end_line.getLastWord().getNumGlyphs()>=end_index&&end_line.getFirstWord().getStringPos()<=end_index)break;if(end_line.equal(start_block._m_last_line))return{status:!1};end_line=end_line.getNextLine()}}for(start_block=end_line.getFirstWord();;){if(start_block.equal(wend))return{status:!1};if(start_block.getStringPos()+start_block.getNumGlyphs()>=end_index&&start_block.getStringPos()<=end_index)break;start_block=start_block.getNextWord()}wend=[];for(var rect=Array(4),blocknum=text_to_match;blocknum<=
1957
+ end_block_idx;blocknum++)if(first_line_in_block=this._m_Blocks[blocknum]._m_first_line,last_line_in_block=this._m_Blocks[blocknum]._m_last_line,blocknum===text_to_match&&blocknum!==end_block_idx)for(first_line_in_block=start_line;!first_line_in_block.equal(page_idx);first_line_in_block=first_line_in_block.getNextLine()){if(this._sameDirection(first_line_in_block.getDirection())){var temp_quad=Array(8);first_line_in_block.equal(start_line)?start_word.getGlyphQuadInWordQuadFormat(Math.min(start_index-
1958
+ start_word.getStringPos(),start_word.getNumGlyphs()-1),temp_quad):(first_line_in_block.getFirstWord().getBBox(rect),temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=rect[0],temp_quad[7]=rect[1]);first_line_in_block.getLastWord().getBBox(rect);temp_quad[2]=rect[2];temp_quad[3]=rect[3];temp_quad[4]=rect[2];temp_quad[5]=rect[1];wend.push(temp_quad);if(first_line_in_block.equal(last_line_in_block))break}}else if(blocknum!==text_to_match&&blocknum===end_block_idx)for(;;first_line_in_block=first_line_in_block.getNextLine()){if(first_line_in_block.equal(page_idx))return{status:!1};
1959
+ if(this._sameDirection(first_line_in_block.getDirection())&&(temp_quad=Array(8),first_line_in_block.equal(end_line)?start_block.getGlyphQuadInWordQuadFormat(Math.min(end_index-start_block.getStringPos(),start_block.getNumGlyphs()-1),temp_quad):(first_line_in_block.getLastWord().getBBox(rect),temp_quad[2]=rect[2],temp_quad[3]=rect[3],temp_quad[4]=rect[2],temp_quad[5]=rect[1]),first_line_in_block.getFirstWord().getBBox(rect),temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=rect[0],temp_quad[7]=
1960
+ rect[1],wend.push(temp_quad),first_line_in_block.equal(end_line)))break}else if(blocknum===text_to_match&&blocknum===end_block_idx)for(first_line_in_block=start_line;;first_line_in_block=first_line_in_block.getNextLine()){if(first_line_in_block.equal(page_idx))return{status:!1};if(this._sameDirection(first_line_in_block.getDirection())&&(temp_quad=Array(8),first_line_in_block.equal(start_line)&&!first_line_in_block.equal(end_line)?(start_word.getGlyphQuadInWordQuadFormat(Math.min(start_index-start_word.getStringPos(),
1961
+ start_word.getNumGlyphs()-1),temp_quad),first_line_in_block.getLastWord().getBBox(rect),temp_quad[2]=rect[2],temp_quad[3]=rect[3],temp_quad[4]=rect[2],temp_quad[5]=rect[1]):!first_line_in_block.equal(start_line)&&first_line_in_block.equal(end_line)?(start_block.getGlyphQuadInWordQuadFormat(Math.min(end_index-start_block.getStringPos(),start_block.getNumGlyphs()-1),temp_quad),first_line_in_block.getFirstWord().getBBox(rect),temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=rect[0],temp_quad[7]=
1962
+ rect[1]):first_line_in_block.equal(start_line)&&first_line_in_block.equal(end_line)?(start_word.getGlyphQuadInWordQuadFormat(Math.min(start_index-start_word.getStringPos(),start_word.getNumGlyphs()-1),temp_quad),rect[0]=temp_quad[6],rect[1]=temp_quad[7],rect[2]=temp_quad[2],rect[3]=temp_quad[3],start_block.getGlyphQuadInWordQuadFormat(Math.min(end_index-start_block.getStringPos(),start_block.getNumGlyphs()-1),temp_quad),temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=rect[0],temp_quad[7]=rect[1]):
1963
+ (first_line_in_block.getFirstWord().getBBox(rect),temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=rect[0],temp_quad[7]=rect[1],first_line_in_block.getLastWord().getBBox(rect),temp_quad[2]=rect[2],temp_quad[3]=rect[3],temp_quad[4]=rect[2],temp_quad[5]=rect[1]),wend.push(temp_quad),first_line_in_block.equal(end_line)))break}else for(;!(first_line_in_block.equal(page_idx)||this._sameDirection(first_line_in_block.getDirection())&&(temp_quad=Array(8),first_line_in_block.getFirstWord().getBBox(rect),
1964
+ temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=rect[0],temp_quad[7]=rect[1],first_line_in_block.getLastWord().getBBox(rect),temp_quad[2]=rect[2],temp_quad[3]=rect[3],temp_quad[4]=rect[2],temp_quad[5]=rect[1],wend.push(temp_quad),first_line_in_block.equal(last_line_in_block)));first_line_in_block=first_line_in_block.getNextLine());return{status:!0,value:wend}};TextLocator.prototype.selectByStruct=function(page_idx,sel_rect){Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(this._m_Quads);
1965
+ this._m_Texts="";for(var page_texts=[],all_pages_str="",i_3=page_idx-1;i_3<page_idx+2;i_3++)this._performMiscPageSetup(i_3)&&(page_texts.push({idx:i_3,txt:this._m_Str}),all_pages_str+=this._m_Str);if(0===page_texts.length||0===all_pages_str.length||!this._performMiscPageSetup(page_idx))return!1;var min_dist1;i_3=Array(8);var qq=Array(8),b=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,min_line_dist1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a,min_line_dist2=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;
1966
+ min_line_dist1.initDefault();min_line_dist2.initDefault();var is_horiz_line1=this._m_Horizontal,is_horiz_line2=this._m_Horizontal,lend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;lend.initDefault();var wend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;wend.initDefault();var tmpPoint1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;tmpPoint1.init(sel_rect.x1,sel_rect.y1);var sel_pt1_y=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;sel_pt1_y.init(sel_rect.x2,sel_rect.y2);tmpPoint1=this._findStructuralBounds(tmpPoint1,
1967
+ sel_pt1_y,min_line_dist1,min_line_dist2);min_line_dist1=tmpPoint1._first_line;min_line_dist2=tmpPoint1._last_line;if(min_line_dist1.equal(lend)||min_line_dist2.equal(lend))return!1;var min_w1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;tmpPoint1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;min_w1.initDefault();tmpPoint1.initDefault();var min_dist2=min_dist1=_selectionInfo_constants__WEBPACK_IMPORTED_MODULE_1__.a.MAX;for(var word=min_line_dist1.getFirstWord();!word.equal(wend);word=word.getNextWord()){word.getBBox(i_3);
1968
+ if(is_horiz_line1){var sel_pt1_x=sel_rect.x1;sel_pt1_y=sel_rect.y1}else sel_pt1_y=i_3[0],i_3[0]=i_3[1],i_3[1]=sel_pt1_y,sel_pt1_y=i_3[2],i_3[2]=i_3[3],i_3[3]=sel_pt1_y,sel_pt1_x=sel_rect.y1,sel_pt1_y=sel_rect.x1;var d=(i_3[3]+i_3[1])/2;if(i_3[2]<=sel_pt1_x){var xd=i_3[2]-sel_pt1_x;d-=sel_pt1_y;d=xd*xd+d*d}else i_3[0]>=sel_pt1_x?(xd=i_3[0]-sel_pt1_x,d-=sel_pt1_y,d=xd*xd+d*d):(d-=sel_pt1_y,d*=d);d<min_dist1&&(min_dist1=d,min_w1=word)}for(word=min_line_dist2.getFirstWord();!word.equal(wend);word=word.getNextWord())word.getBBox(i_3),
1969
+ is_horiz_line2?(sel_pt1_x=sel_rect.x2,sel_pt1_y=sel_rect.y2):(sel_pt1_y=i_3[0],i_3[0]=i_3[1],i_3[1]=sel_pt1_y,sel_pt1_y=i_3[2],i_3[2]=i_3[3],i_3[3]=sel_pt1_y,sel_pt1_x=sel_rect.y2,sel_pt1_y=sel_rect.x2),d=(i_3[3]+i_3[1])/2,i_3[2]<=sel_pt1_x?(xd=i_3[2]-sel_pt1_x,d-=sel_pt1_y,d=xd*xd+d*d):i_3[0]>=sel_pt1_x?(xd=i_3[0]-sel_pt1_x,d-=sel_pt1_y,d=xd*xd+d*d):(d-=sel_pt1_y,d*=d),d<min_dist2&&(min_dist2=d,tmpPoint1=word);if(min_w1.equal(wend)||tmpPoint1.equal(wend))return!1;sel_pt1_y=word=0;min_dist2=min_dist1=
1970
+ _selectionInfo_constants__WEBPACK_IMPORTED_MODULE_1__.a.MAX;var gnum=min_w1.getNumGlyphs();for(sel_pt1_x=0;sel_pt1_x<gnum;++sel_pt1_x)min_w1.getGlyphQuad(sel_pt1_x,i_3),xd=(i_3[0]+i_3[2]+i_3[4]+i_3[6])/4,d=(i_3[1]+i_3[3]+i_3[5]+i_3[7])/4,xd-=sel_rect.x1,d-=sel_rect.y1,d=xd*xd+d*d,d<min_dist1&&(min_dist1=d,word=sel_pt1_x);gnum=tmpPoint1.getNumGlyphs();for(sel_pt1_x=0;sel_pt1_x<gnum;++sel_pt1_x)tmpPoint1.getGlyphQuad(sel_pt1_x,i_3),xd=(i_3[0]+i_3[2]+i_3[4]+i_3[6])/4,d=(i_3[1]+i_3[3]+i_3[5]+i_3[7])/
1971
+ 4,xd-=sel_rect.x2,d-=sel_rect.y2,d=xd*xd+d*d,d<min_dist2&&(min_dist2=d,sel_pt1_y=sel_pt1_x);min_dist1=word+min_w1.getStringPos();min_dist2=sel_pt1_y+tmpPoint1.getStringPos();min_dist2<min_dist1&&(sel_pt1_x=min_dist1,min_dist1=min_dist2,min_dist2=sel_pt1_x);this._m_Selidxs.push([min_dist1,min_dist2]);d=[null,null];for(sel_pt1_x=xd=0;sel_pt1_x<page_texts.length;sel_pt1_x++)if(page_texts[sel_pt1_x].idx===page_idx){xd+=min_dist1;break}else page_texts[sel_pt1_x].idx<page_idx&&(xd+=page_texts[sel_pt1_x].txt.length);
1972
+ d[0]=all_pages_str.substring(Math.max(0,xd-100),xd);for(sel_pt1_x=min_dist1=0;sel_pt1_x<page_texts.length;sel_pt1_x++)if(page_texts[sel_pt1_x].idx===page_idx){min_dist1+=min_dist2;break}else page_texts[sel_pt1_x].idx<page_idx&&(min_dist1+=page_texts[sel_pt1_x].txt.length);d[1]=all_pages_str.substr(min_dist1+1,100);null!==d[0]&&null!==d[1]&&this._m_Surrtxts.push(d);all_pages_str=min_line_dist1.getCurrentNum();min_dist2=min_line_dist2.getCurrentNum();page_idx=min_w1.getCurrentNum();page_texts=tmpPoint1.getCurrentNum();
1973
+ if(all_pages_str===min_dist2){page_idx>page_texts&&(all_pages_str=min_w1,min_w1=tmpPoint1,tmpPoint1=all_pages_str,all_pages_str=word,word=sel_pt1_y,sel_pt1_y=all_pages_str);min_line_dist1.getBBox(b);if(page_idx===page_texts&&word===sel_pt1_y&&(all_pages_str=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,!all_pages_str.intersectRect(b,sel_rect)))return!1;page_idx===page_texts?(sel_pt1_y<word&&(all_pages_str=word,word=sel_pt1_y,sel_pt1_y=all_pages_str),all_pages_str=sel_pt1_y):all_pages_str=min_w1.getStringLen();
1974
+ min_w1.getGlyphQuad(word,i_3);Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(is_horiz_line1===is_horiz_line2);is_horiz_line2=min_w1.getStringPos();Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(word<=all_pages_str);for(is_horiz_line1=word;is_horiz_line1<=all_pages_str;++is_horiz_line1)is_horiz_line2+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(is_horiz_line2+is_horiz_line1));0<=all_pages_str&&(min_w1.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=
1975
+ Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/(all_pages_str+1)*3,this._chopQuad(qq,i_3,!0),page_idx===page_texts&&(sel_rect=Array(8),tmpPoint1.getGlyphQuad(sel_pt1_y,sel_rect),this._chopQuad(qq,sel_rect,!1)),this._storeQuad(qq,is_horiz_line1));for(word=min_w1=min_w1.getNextWord();!word.equal(wend)&&word.getCurrentNum()<tmpPoint1.getCurrentNum();word=word.getNextWord()){all_pages_str=word.getStringLen();sel_rect=word.getStringPos();for(is_horiz_line1=
1976
+ 0;is_horiz_line1<=all_pages_str;++is_horiz_line1)sel_rect+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(sel_rect+is_horiz_line1));0<all_pages_str&&(word.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._storeQuad(qq,is_horiz_line1))}tmpPoint1.getGlyphQuad(sel_pt1_y,i_3);all_pages_str=tmpPoint1.getStringLen();if(page_idx!==
1977
+ page_texts){wend=tmpPoint1.getStringPos();Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(sel_pt1_y<=all_pages_str);for(is_horiz_line1=0;is_horiz_line1<=sel_pt1_y;++is_horiz_line1)wend+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(wend+is_horiz_line1));0<all_pages_str&&(tmpPoint1.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,
1978
+ this._chopQuad(qq,i_3,!1),this._storeQuad(qq,is_horiz_line1))}}else{all_pages_str>min_dist2&&(is_horiz_line1=min_line_dist1,min_line_dist1=min_line_dist2,min_line_dist2=is_horiz_line1,all_pages_str=min_w1,min_w1=tmpPoint1,tmpPoint1=all_pages_str,all_pages_str=word,word=sel_pt1_y,sel_pt1_y=all_pages_str);min_line_dist1.getBBox(b);all_pages_str=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;all_pages_str.intersectRect(b,sel_rect)||(min_w1=min_line_dist1.getFirstWord(),word=0);min_w1.getGlyphQuad(word,
1979
+ i_3);all_pages_str=min_w1.getStringLen();is_horiz_line2=min_w1.getStringPos();Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(word<=all_pages_str);for(is_horiz_line1=word;is_horiz_line1<=all_pages_str;++is_horiz_line1)is_horiz_line2+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(is_horiz_line2+is_horiz_line1));0<all_pages_str&&(min_w1.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),
1980
+ is_horiz_line1=is_horiz_line1/all_pages_str*3,this._chopQuad(qq,i_3,!0),this._storeQuad(qq,is_horiz_line1));for(word=min_w1=min_w1.getNextWord();!word.equal(wend);word=word.getNextWord()){all_pages_str=word.getStringLen();min_w1=word.getStringPos();for(is_horiz_line1=0;is_horiz_line1<=all_pages_str;++is_horiz_line1)min_w1+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(min_w1+is_horiz_line1));0<all_pages_str&&(word.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-
1981
+ qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._storeQuad(qq,is_horiz_line1))}for(min_line_dist1=min_line_dist1.getNextLine();!min_line_dist1.equal(min_line_dist2)&&!min_line_dist1.equal(lend);min_line_dist1=min_line_dist1.getNextLine())if(this._sameDirection(min_line_dist1.getDirection()))for(min_line_dist1.getBBox(b),word=min_line_dist1.getFirstWord();!word.equal(wend);word=word.getNextWord()){all_pages_str=
1982
+ word.getStringLen();min_w1=word.getStringPos();for(is_horiz_line1=0;is_horiz_line1<=all_pages_str;++is_horiz_line1)min_w1+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(min_w1+is_horiz_line1));0<all_pages_str&&(word.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._storeQuad(qq,is_horiz_line1))}min_line_dist2.getBBox(b);all_pages_str=
1983
+ new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;all_pages_str.intersectRect(b,sel_rect)||(tmpPoint1=min_line_dist2.getWord(min_line_dist2.getNumWords()-1),sel_pt1_y=tmpPoint1.getNumGlyphs()-1);for(word=min_line_dist2.getFirstWord();!word.equal(wend)&&!word.equal(tmpPoint1);word=word.getNextWord()){all_pages_str=word.getStringLen();sel_rect=word.getStringPos();for(is_horiz_line1=0;is_horiz_line1<=all_pages_str;++is_horiz_line1)sel_rect+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(sel_rect+
1984
+ is_horiz_line1));0<all_pages_str&&(word.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._storeQuad(qq,is_horiz_line1))}tmpPoint1.getGlyphQuad(sel_pt1_y,i_3);all_pages_str=tmpPoint1.getStringLen();is_horiz_line2=tmpPoint1.getStringPos();Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(sel_pt1_y<=all_pages_str);for(is_horiz_line1=0;is_horiz_line1<=sel_pt1_y;++is_horiz_line1)is_horiz_line2+
1985
+ is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(is_horiz_line2+is_horiz_line1));0<all_pages_str&&(tmpPoint1.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._chopQuad(qq,i_3,!1),this._storeQuad(qq,is_horiz_line1))}return 0<this._m_Quads.length};TextLocator.prototype._performMiscPageSetup=function(page_idx){if(0>page_idx||page_idx>=
1986
+ this._m_Pages.length)return!1;if(0>=this._m_PrePage||this._m_PrePage!==page_idx){var spi=this._m_Pages[page_idx].text;if(null==spi||!spi.ready())return!1;this._m_Words=spi;this._m_Str=this._m_Words.getStr();this._cmptTextDirection();this._cmptBlocks();this._m_PrePage=page_idx}return!0};TextLocator.prototype._storeQuad=function(quad,tra_thresh){var sz=this._m_Quads.length/8;if(sz){var des_q=Array(8);sz=8*(sz-1);for(i=0;8>i;++i)des_q[i]=this._m_Quads[sz+i];if(_Quad__WEBPACK_IMPORTED_MODULE_2__.a._merge(des_q,
1987
+ quad,1,!0,tra_thresh))for(i=0;8>i;++i)this._m_Quads[sz+i]=des_q[i];else for(i=0;8>i;++i)this._m_Quads.push(quad[i])}else for(var i=0;8>i;++i)this._m_Quads.push(quad[i])};TextLocator.prototype._chopQuad=function(word_quad_to_be_chopped,quad_of_first_or_last_glyph_in_word,is_glyph_first_glyph_in_word){var bottom_left_of_word=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;bottom_left_of_word.init(word_quad_to_be_chopped[0],word_quad_to_be_chopped[1]);var bottom_right_of_word=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;
1988
+ bottom_right_of_word.init(word_quad_to_be_chopped[2],word_quad_to_be_chopped[3]);var distance_between_word_start_and_end=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(bottom_right_of_word,bottom_left_of_word);distance_between_word_start_and_end.normalize()&&(is_glyph_first_glyph_in_word?(bottom_right_of_word=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c,bottom_right_of_word.init(quad_of_first_or_last_glyph_in_word[0],quad_of_first_or_last_glyph_in_word[1]),quad_of_first_or_last_glyph_in_word=
1989
+ _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(bottom_right_of_word,bottom_left_of_word).dot(distance_between_word_start_and_end),distance_between_word_start_and_end=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.multiply(distance_between_word_start_and_end,quad_of_first_or_last_glyph_in_word),word_quad_to_be_chopped[0]+=distance_between_word_start_and_end.x,word_quad_to_be_chopped[1]+=distance_between_word_start_and_end.y,word_quad_to_be_chopped[6]+=distance_between_word_start_and_end.x,word_quad_to_be_chopped[7]+=
1990
+ distance_between_word_start_and_end.y):(bottom_left_of_word=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c,bottom_left_of_word.init(quad_of_first_or_last_glyph_in_word[2],quad_of_first_or_last_glyph_in_word[3]),quad_of_first_or_last_glyph_in_word=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(bottom_left_of_word,bottom_right_of_word).dot(distance_between_word_start_and_end),distance_between_word_start_and_end=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.multiply(distance_between_word_start_and_end,
1991
+ quad_of_first_or_last_glyph_in_word),word_quad_to_be_chopped[2]+=distance_between_word_start_and_end.x,word_quad_to_be_chopped[3]+=distance_between_word_start_and_end.y,word_quad_to_be_chopped[4]+=distance_between_word_start_and_end.x,word_quad_to_be_chopped[5]+=distance_between_word_start_and_end.y))};TextLocator.prototype._getTextRotationMatrix=function(angle){var m0=_Matrix2D__WEBPACK_IMPORTED_MODULE_3__.a.rotationMatrix(0),m90=_Matrix2D__WEBPACK_IMPORTED_MODULE_3__.a.rotationMatrix(1.570796325),
1992
+ m180=_Matrix2D__WEBPACK_IMPORTED_MODULE_3__.a.rotationMatrix(3.14159265),m270=_Matrix2D__WEBPACK_IMPORTED_MODULE_3__.a.rotationMatrix(3.14159265*1.5);switch(parseInt(angle/90+.1)){case 0:return m0;case 1:return m90;case 2:return m180;case 3:return m270;case 4:return m0;default:return m0}};TextLocator.prototype._sameDirection=function(){return!0};TextLocator.prototype._transformToNormalFlow=function(box,angle){angle=this._getTextRotationMatrix(angle);var tmpPoint2D=new _Point2D__WEBPACK_IMPORTED_MODULE_5__.a(box.x1,
1993
+ box.y1);tmpPoint2D=angle.mult(tmpPoint2D);box.x1=tmpPoint2D.x;box.y1=tmpPoint2D.y;tmpPoint2D=new _Point2D__WEBPACK_IMPORTED_MODULE_5__.a(box.x2,box.y2);tmpPoint2D=angle.mult(tmpPoint2D);box.x2=tmpPoint2D.x;box.y2=tmpPoint2D.y;box.normalize()};TextLocator.prototype._cmptBlocks=function(){Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(this._m_Blocks);var line,end=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;end.initDefault();var b=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,
1994
+ current_block=new _TextSelectionBlock__WEBPACK_IMPORTED_MODULE_4__.a,block_initialized=!1;for(line=this._m_Words.getFirstLine();!line.equal(end);line=line.getNextLine())if(this._sameDirection(line.getDirection())){line.getBBox(b);b.normalize();var orig_box=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;orig_box.initRect(b);this._transformToNormalFlow(b,this._m_Direction);block_initialized?(this._m_Blocks.push(current_block),current_block=new _TextSelectionBlock__WEBPACK_IMPORTED_MODULE_4__.a,current_block._m_bbox.initRect(orig_box),
1995
+ current_block._m_transformed_bbox.initRect(b),current_block._m_first_line=line,current_block._m_last_line=line):(current_block._m_bbox.initRect(orig_box),current_block._m_transformed_bbox.initRect(b),current_block._m_first_line=line,current_block._m_last_line=line,block_initialized=!0)}block_initialized&&this._m_Blocks.push(current_block)};TextLocator.prototype._findLineByPoint=function(block,pt,out_line){out_line=_selectionInfo_constants__WEBPACK_IMPORTED_MODULE_1__.a.MAX;for(var b=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,
1996
+ best_line=block._m_first_line,line=block._m_first_line;;line=line.getNextLine()){if(!this._sameDirection(line.getDirection()))if(line.equal(block._m_last_line))break;else continue;line.getBBox(b);this._transformToNormalFlow(b,this._m_Direction);var ycenter=(b.y1+b.y2)/2;Math.abs(ycenter-pt.y)<out_line&&(best_line=line,out_line=Math.abs(ycenter-pt.y));if(line.equal(block._m_last_line))break}return out_line=best_line};TextLocator.prototype.Dist2LineSegmentSquared=function(x1,x2,p){var v=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(x2,
1997
+ x1),w=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(p,x1),c1=w.dot(v);if(0>=c1)return w.dot(w);w=v.dot(v);if(w<=c1)return p=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(p,x2),p.dot(p);x1=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.plus(x1,_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.multiply(v,c1/w));p=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(p,x1);return p.dot(p)};TextLocator.prototype.Dist2BBox=function(pt,bbox){var d1=this.Dist2LineSegmentSquared(new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x1,
1998
+ bbox.y1),new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x2,bbox.y1),pt),d2=this.Dist2LineSegmentSquared(new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x2,bbox.y1),new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x2,bbox.y2),pt),d3=this.Dist2LineSegmentSquared(new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x2,bbox.y2),new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x1,bbox.y2),pt);pt=this.Dist2LineSegmentSquared(new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x1,
1999
+ bbox.y2),new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x1,bbox.y1),pt);return Math.min(d1,d2,d3,pt)};TextLocator.prototype._findStructuralBounds=function(pt1,pt2,first_line,last_line){var start_block_matched=-1,end_block_matched=-1,end_block_precise=!1,start_block_precise=!1,rmx=this._getTextRotationMatrix(this._m_Direction),p1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c,p2=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;p1.initPoint(pt1);p2.initPoint(pt2);pt1=new _Point2D__WEBPACK_IMPORTED_MODULE_5__.a(p1.x,
2000
+ p1.y);pt1=rmx.mult(pt1);p1.x=pt1.x;p1.y=pt1.y;pt1=new _Point2D__WEBPACK_IMPORTED_MODULE_5__.a(p2.x,p2.y);pt1=rmx.mult(pt1);p2.x=pt1.x;p2.y=pt1.y;pt2=0;for(var sz=this._m_Blocks.length;pt2<sz;++pt2)rmx=this._m_Blocks[pt2],0>start_block_matched&&rmx._m_transformed_bbox.contains(p1.x,p1.y)&&(start_block_matched=pt2,start_block_precise=!0),0>end_block_matched&&rmx._m_transformed_bbox.contains(p2.x,p2.y)&&(end_block_matched=pt2,end_block_precise=!0);if(!start_block_precise||!end_block_precise){rmx=[];
2001
+ for(pt1=0;pt1<this._m_Blocks.length;++pt1)rmx.push(0);pt1=Math.max(start_block_matched,end_block_matched);var sel=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;sel.initCoordinates(p1.x,p1.y,p2.x,p2.y);sel.inflateSquare(.1);0<=pt1&&sel.union(this._m_Blocks[pt1]._m_transformed_bbox);var rtmp=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;pt2=0;for(sz=this._m_Blocks.length;pt2<sz;++pt2){var box=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;box.initRect(this._m_Blocks[pt2]._m_transformed_bbox);
2002
+ rtmp.intersectRect(box,sel)&&(rmx[pt2]=1)}sz=rmx.indexOf(1);for(sel=pt2=rmx.indexOf(1);-1!==pt2;){sel=pt2;pt2++;if(pt2>=rmx.length)break;pt2=rmx.indexOf(1,pt2)}if(0>sz)return new _ResultFindStructuralBounds__WEBPACK_IMPORTED_MODULE_6__.a(first_line,last_line);rmx=pt2=!1;rtmp=Math.max.apply(Math,this._m_Blocks.map(function(b){return b._m_bbox.y2}));box=this._m_Pages[this._m_PrePage];void 0!==box.x2&&void 0!==box.y2&&(pt2=Math.round(p2.x)>=Math.round(box.x2)&&Math.round(p2.y)>=Math.round(box.y2),rmx=
2003
+ 0===p1.x&&0===p1.y,p2.y>rtmp&&(pt2=!0));if(0>pt1)start_block_matched=sz,end_block_matched=sel,start_block_precise=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,start_block_precise.initRect(this._m_Blocks[start_block_matched]._m_transformed_bbox),end_block_precise=(p1.x-start_block_precise.x1)*(p1.x-start_block_precise.x2),end_block_precise=0<end_block_precise?Math.min(Math.abs(p1.x-start_block_precise.x1),Math.abs(p1.x-start_block_precise.x2)):0,pt1=(p1.y-start_block_precise.y1)*(p1.y-start_block_precise.y2),
2004
+ pt1=0<pt1?Math.min(Math.abs(p1.y-start_block_precise.y1),Math.abs(p1.y-start_block_precise.y2)):0,end_block_precise=end_block_precise*end_block_precise+pt1*pt1,pt1=Math.min(Math.abs(p2.x-start_block_precise.x1),Math.abs(p2.x-start_block_precise.x2)),sz=(p2.y-start_block_precise.y1)*(p2.y-start_block_precise.y2),sz=0<sz?Math.min(Math.abs(p2.y-start_block_precise.y1),Math.abs(p2.y-start_block_precise.y2)):0,start_block_precise=pt1*pt1+sz*sz,pt2?end_block_matched=this._m_Blocks.length-1:!rmx&&end_block_precise>
2005
+ start_block_precise&&(start_block_precise=start_block_matched,start_block_matched=end_block_matched,end_block_matched=start_block_precise);else{box=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;box.initRect(this._m_Blocks[pt1]._m_transformed_bbox);rtmp=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;start_block_precise?rtmp.initPoint(p2):rtmp.initPoint(p1);Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(!(start_block_precise&&end_block_precise)&&!(!start_block_precise&&!end_block_precise));Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(!box.contains(rtmp.x,
2006
+ rtmp.y));var other=box=void 0;pt1-sz>Math.max(sel-pt1,0)?(box=Math.min(pt1,sz),other=sel):(box=Math.max(pt1,sel),other=sz);pt2&&!end_block_precise?(end_block_matched=this._m_Blocks.length,box=end_block_matched-1):box!=pt1&&(end_block_precise=Array(3),pt2=Array(3),end_block_precise[0]=this.Dist2BBox(rtmp,this._m_Blocks[other]._m_transformed_bbox),end_block_precise[1]=this.Dist2BBox(rtmp,this._m_Blocks[box]._m_transformed_bbox),end_block_precise[2]=this.Dist2BBox(rtmp,this._m_Blocks[pt1]._m_transformed_bbox),
2007
+ end_block_precise[3]=box?this.Dist2BBox(rtmp,this._m_Blocks[box-1]._m_transformed_bbox):end_block_precise[1],pt2[0]=other,pt2[1]=box,pt2[2]=pt1,pt1=1,end_block_precise[0]<end_block_precise[1]&&(pt1=0),end_block_precise[2]<end_block_precise[pt1]&&(pt1=2),1!==pt1&&end_block_precise[3]<end_block_precise[pt1]&&(pt1=1),box=pt2[pt1]);start_block_precise?end_block_matched=box:start_block_matched=box}start_block_matched=rmx?0:start_block_matched}0<=start_block_matched&&0<=end_block_matched&&(first_line=this._findLineByPoint(this._m_Blocks[start_block_matched],
2008
+ p1,first_line),last_line=this._findLineByPoint(this._m_Blocks[end_block_matched],p2,last_line));return new _ResultFindStructuralBounds__WEBPACK_IMPORTED_MODULE_6__.a(first_line,last_line)};return TextLocator})()},function(module,__webpack_exports__,__webpack_require__){var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(13),_Letter__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(55),_nsIDOMTextMetrics__WEBPACK_IMPORTED_MODULE_3__=
2009
+ __webpack_require__(56),_nsIDOMCanvasGradient__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(46),_SelectionRect__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(20),_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4),SelectionCanvas=function(){function SelectionCanvas(container,offset){this._context=new SelectionContext(container,offset)}SelectionCanvas.prototype.getContext=function(){return this._context};return SelectionCanvas}(),SelectionContext=function(){function SelectionContext(container,
2010
+ offset){this._m_mtx=[];this._container={};var identity_mtx=new _textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a;identity_mtx.set(1,0,0,1,0,0);this._m_mtx.push(identity_mtx);this._font_container=container;this._offset=offset?offset:0;this._m_y=this._m_x=0;this.canvas={width:0,height:0};this.font=null;this.lineWidth=0;this.fillStyle=this.strokeStyle=this.lineCap=null;this.miterLimit=this.globalAlpha=0;this.lineJoin=null;this._custom_glyph_mode=!1;this.w=0;this.f=this.s=this.c=null;this.i=this.a=
2011
+ 0;this.j=null}SelectionContext.prototype.getLetter=function(id){return this._container[id]};SelectionContext.prototype._getTsWidth=function(bbox,text_mtx){var new_bbox=new _SelectionRect__WEBPACK_IMPORTED_MODULE_5__.a;new_bbox.initRect(bbox);text_mtx.transformBbox(new_bbox);return new_bbox.width()};SelectionContext.prototype._getCurrentFont=function(font){if(this._font_container[font])return this._font_container[font];font=font.split(" ")[1];Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(!!this._font_container[font],
2012
+ "Font "+font+" file not found");return this._font_container[font]};SelectionContext.prototype._transformBboxToTextSpace=function(this_font,bbox){var font_mtx=new _textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a,units_per_em=this_font.getUnitsPerEm();this_font=this_font.getFontSize();font_mtx.set(this_font/units_per_em,0,0,this_font/units_per_em,0,0);font_mtx.transformBbox(bbox)};SelectionContext.prototype.save=function(){var mtx=new _textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a;mtx.initMatrix(Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_6__.d)(this._m_mtx));
2013
+ this._m_mtx.push(mtx)};SelectionContext.prototype.restore=function(){this._m_mtx.pop()};SelectionContext.prototype.transform=function(m11,m12,m21,m22,dx,dy){var mtx=new _textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a;mtx.set(m11,m12,m21,m22,dx,dy);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_6__.d)(this._m_mtx).concat(mtx)};SelectionContext.prototype.rotate=function(radians){var mtx=new _textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a,c=Math.cos(radians);radians=Math.sin(radians);
2014
+ mtx.set(c,radians,-radians,c,0,0);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_6__.d)(this._m_mtx).concat(mtx)};SelectionContext.prototype.translate=function(x,y){this._m_x=x;this._m_y=y};SelectionContext.prototype.setLineDash=function(segments){};SelectionContext.prototype.fillRect=function(x,y,width,height){};SelectionContext.prototype.fillText=function(text,x,y){var this_font=this._getCurrentFont(this.font);this._fillTextImpl(text,x,y,this_font)};SelectionContext.prototype._fillTextImpl=
2015
+ function(text,x,y,font){if(!this._custom_glyph_mode){this.translate(x,y);x=0;for(y=text.length;x<y;){var first_utf16_codeunit=text.charCodeAt(x),initialIndex=x;if(55296<=first_utf16_codeunit&&55551>=first_utf16_codeunit){var second_utf16_codeunit=text.charCodeAt(x+1);first_utf16_codeunit=String.fromCodePoint((first_utf16_codeunit-55296<<10)+(second_utf16_codeunit-56320)+65536);x+=2}else first_utf16_codeunit=String.fromCodePoint(first_utf16_codeunit),x++;initialIndex=this.lastMapping&&initialIndex in
2016
+ this.lastMapping?this.lastMapping[initialIndex]:first_utf16_codeunit;first_utf16_codeunit=font.getBbox(first_utf16_codeunit);this._transformBboxToTextSpace(font,first_utf16_codeunit);second_utf16_codeunit=first_utf16_codeunit.y1;first_utf16_codeunit.y1=first_utf16_codeunit.y2;first_utf16_codeunit.y2=second_utf16_codeunit;first_utf16_codeunit.x1+=this._m_x;first_utf16_codeunit.x2+=this._m_x;first_utf16_codeunit.y1+=this._m_y;first_utf16_codeunit.y2+=this._m_y;this._m_x+=first_utf16_codeunit.width();
2017
+ second_utf16_codeunit=Array(8);second_utf16_codeunit[0]=first_utf16_codeunit.x1;second_utf16_codeunit[1]=first_utf16_codeunit.y1;second_utf16_codeunit[2]=first_utf16_codeunit.x2;second_utf16_codeunit[3]=first_utf16_codeunit.y1;second_utf16_codeunit[4]=first_utf16_codeunit.x2;second_utf16_codeunit[5]=first_utf16_codeunit.y2;second_utf16_codeunit[6]=first_utf16_codeunit.x1;second_utf16_codeunit[7]=first_utf16_codeunit.y2;Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_6__.d)(this._m_mtx).transformQuad(second_utf16_codeunit);
2018
+ this._container[this._offset]=new _Letter__WEBPACK_IMPORTED_MODULE_2__.a(initialIndex,second_utf16_codeunit);this._offset++}this.lastMapping=null}};SelectionContext.prototype.measureText=function(text){var this_font=this._getCurrentFont(this.font);return this._measureTextImpl(text,this_font)};SelectionContext.prototype._measureTextImpl=function(text,font){var total_width=0;if(!this._custom_glyph_mode)for(var i=0,len=text.length;i<len;){var first_utf16_codeunit=text.charCodeAt(i);if(55296<=first_utf16_codeunit&&
2019
+ 55551>=first_utf16_codeunit){var second_utf16_codeunit=text.charCodeAt(i+1);first_utf16_codeunit=font.getBbox(String.fromCodePoint((first_utf16_codeunit-55296<<10)+(second_utf16_codeunit-56320)+65536));i+=2}else first_utf16_codeunit=font.getBbox(String.fromCodePoint(first_utf16_codeunit)),i++;this._transformBboxToTextSpace(font,first_utf16_codeunit);total_width+=first_utf16_codeunit.width()}return new _nsIDOMTextMetrics__WEBPACK_IMPORTED_MODULE_3__.a(total_width)};SelectionContext.prototype.strokeRect=
2020
+ function(){};SelectionContext.prototype.createLinearGradient=function(){return new _nsIDOMCanvasGradient__WEBPACK_IMPORTED_MODULE_4__.a};SelectionContext.prototype.createRadialGradient=function(){return new _nsIDOMCanvasGradient__WEBPACK_IMPORTED_MODULE_4__.a};SelectionContext.prototype.createPattern=function(){};SelectionContext.prototype.addColorStop=function(){};SelectionContext.prototype.beginPath=function(){};SelectionContext.prototype.closePath=function(){};SelectionContext.prototype.fill=function(){};
2021
+ SelectionContext.prototype.stroke=function(){};SelectionContext.prototype.clip=function(){};SelectionContext.prototype.moveTo=function(){};SelectionContext.prototype.lineTo=function(){};SelectionContext.prototype.quadraticCurveTo=function(){};SelectionContext.prototype.bezierCurveTo=function(){};SelectionContext.prototype.rect=function(){};SelectionContext.prototype.drawImage=function(image){image instanceof SelectionCanvas&&(image=image.getContext(),Object.assign(this._container,image._container),
2022
+ this._offset=image._offset)};SelectionContext.prototype.setTransform=function(){};SelectionContext.prototype.strokeText=function(){};SelectionContext.prototype.getImageData=function(){return new XODText.ImageData};SelectionContext.prototype.putImageData=function(){};SelectionContext.prototype.scale=function(){};SelectionContext.prototype.beginTransparencyGroup=function(){var identity_mtx=new _textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a;identity_mtx.set(1,0,0,1,0,0);this._m_mtx=[identity_mtx];
2023
+ this._m_y=this._m_x=0};SelectionContext.prototype.shouldProcessIfClipped=function(){return!0};SelectionContext.prototype.S=function(){this.save()};SelectionContext.prototype.r=function(){this.restore()};SelectionContext.prototype.t=function(m11,m12,m21,m22,dx,dy){this.transform(m11,m12,m21,m22,dx,dy)};SelectionContext.prototype.ro=function(radians){this.rotate(radians)};SelectionContext.prototype.T=function(x,y){this.translate(x,y)};SelectionContext.prototype.L=function(x0,y0,x1,y1){return this.createLinearGradient()};
2024
+ SelectionContext.prototype.R=function(x0,y0,r0,x1,y1,r1){return this.createRadialGradient()};SelectionContext.prototype.P=function(image,repetition){this.createPattern()};SelectionContext.prototype.A=function(){};SelectionContext.prototype.b=function(){this.beginPath()};SelectionContext.prototype.z=function(){this.closePath()};SelectionContext.prototype.F=function(){this.fill()};SelectionContext.prototype.X=function(){this.stroke()};SelectionContext.prototype.cr=function(){this.strokeRect()};SelectionContext.prototype.C=
2025
+ function(){this.clip()};SelectionContext.prototype.M=function(x,y){this.moveTo()};SelectionContext.prototype.l=function(x,y){this.lineTo()};SelectionContext.prototype.q=function(cpx,cpy,x,y){this.quadraticCurveTo()};SelectionContext.prototype.B=function(cp1x,cp1y,cp2x,cp2y,x,y){this.bezierCurveTo()};SelectionContext.prototype.x=function(text,x,y){var this_font=this._getCurrentFont(this.font);this._fillTextImpl(text,x,y,this_font)};SelectionContext.prototype.m=function(text){var this_font=this._getCurrentFont(this.font);
2026
+ return this._measureTextImpl(text,this_font)};SelectionContext.prototype.I=function(image,dx,dy){this.drawImage()};SelectionContext.prototype.Z=function(m11,m12,m21,m22,dx,dy){this.setTransform()};SelectionContext.prototype.d=function(x,y,width,height){return this.getImageData()};SelectionContext.prototype.D=function(imagedata,dx,dy){this.putImageData()};SelectionContext.prototype.e=function(x,y){this.scale()};SelectionContext.prototype.tm=function(mapping){this.lastMapping=mapping};SelectionContext.prototype.fillTextCustom=
2027
+ function(text,x,y){var this_font=this._getCurrentFont(this.font);this._fillTextImpl(text,x,y,this_font)};SelectionContext.prototype.xc=function(text,x,y){var this_font=this._getCurrentFont(this.font);this._fillTextImpl(text,x,y,this_font)};SelectionContext.prototype.cgb=function(){Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(!this._custom_glyph_mode,"Custom Glyphs begin offset is incorrect");this._custom_glyph_mode=!0};SelectionContext.prototype.cge=function(){Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(this._custom_glyph_mode,
2028
+ "Custom Glyphs end offset is incorrect");this._custom_glyph_mode=!1};SelectionContext.prototype.xw=function(text,x,y){1<text.length&&(text=text.substr(0,text.length-1));this.x(text,x,y)};SelectionContext.prototype.xcw=function(text,x,y){1<text.length&&(text=text.substr(0,text.length-1));this.xc(text,x,y)};SelectionContext.prototype.createCanvas=function(){return new SelectionCanvas(this._font_container,this._offset)};Object.defineProperty(SelectionContext.prototype,"n",{get:function(){return this.font},
2029
+ set:function(val){this.font=val},enumerable:!1,configurable:!0});return SelectionContext}()},function(module,__webpack_exports__,__webpack_require__){var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_textSelection_Quad__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(12),_Line__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(29),_Word__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(24),_SelectionRect__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(20),_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__=
2030
+ __webpack_require__(4),_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(25),_namespaces_XMLParser_XMLParser__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(103);module=function(){function SelectionInfo(){this._m_Lines=[];this.m_Offsets=[];this.m_Quads=[];this.m_Ready=!1;this._m_Whitespace_Indices=null;this.m_Str=""}SelectionInfo.prototype.clear=function(){this.m_Str="";Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.b)(this.m_Offsets);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.b)(this.m_Quads);
2031
+ this.m_Ready=!1};SelectionInfo.prototype.initDefault=function(){this.m_Offsets=[];this.m_Quads=[];this.m_Ready=!1};SelectionInfo.prototype.applyMatrix=function(matrix){function correctionFunction(quads){for(var length=quads.length,i=0;i<length;i+=8){var pt1=matrix.mult({x:quads[i],y:quads[i+1]}),pt2=matrix.mult({x:quads[i+2],y:quads[i+3]}),pt3=matrix.mult({x:quads[i+4],y:quads[i+5]}),pt4=matrix.mult({x:quads[i+6],y:quads[i+7]}),quad=new _textSelection_Quad__WEBPACK_IMPORTED_MODULE_1__.a;quad._setCoordinates(pt1.x,
2032
+ pt1.y,pt2.x,pt2.y,pt3.x,pt3.y,pt4.x,pt4.y);pt1=quad.getPoints();quads[i]=pt1.x1;quads[i+1]=pt1.y1;quads[i+2]=pt1.x2;quads[i+3]=pt1.y2;quads[i+4]=pt1.x3;quads[i+5]=pt1.y3;quads[i+6]=pt1.x4;quads[i+7]=pt1.y4}}correctionFunction(this.m_Quads);this._m_Lines.forEach(function(line){correctionFunction(line._m_quad);line._m_Words.forEach(function(word){correctionFunction(word._m_quad);word._m_glyph_quads.forEach(function(gQuad){correctionFunction(gQuad)})})})};SelectionInfo.prototype.parseFromOld=function(oldSelInfo){this.m_Quads=
2033
+ oldSelInfo.m_Quads;this.m_Offsets=oldSelInfo.m_Offsets;this.m_Str=oldSelInfo.m_Str;this.m_Ready=oldSelInfo.m_Ready;this._m_Lines=function(struct,quads,str){function parseQuad(arr,offset){return arr.slice(offset,offset+8)}function getGenericWord(){var word=new _Word__WEBPACK_IMPORTED_MODULE_3__.a;word.m_Pos=struct[pos+1];word._m_CurNum=wordNum;wordNum++;var strPos=struct[pos+1];word._m_Str=str.slice(strPos,strPos+struct[pos+2]);word._m_Str_pos=strPos;strPos=struct[pos];for(var i=0;i<strPos;++i)word._m_glyph_quads.push(parseQuad(quads,
2034
+ 8*(word.m_Pos+i)));prevWord&&(prevWord._m_next_word=word);return prevWord=word}function parseSimpleWord(lineBoundingBox){var word=getGenericWord(),numGlyphs=struct[pos],x_left=struct[pos+3],x_right=struct[pos+4];if(x_left===x_right){x_left=Math.min(lineBoundingBox.x1,lineBoundingBox.x2);x_right=Math.max(lineBoundingBox.x1,lineBoundingBox.x2);var top=word._m_glyph_quads[0];lineBoundingBox=word._m_glyph_quads[numGlyphs-1];lineBoundingBox=[top[1],top[3],top[5],top[7],lineBoundingBox[1],lineBoundingBox[3],
2035
+ lineBoundingBox[5],lineBoundingBox[7]];top=Math.min.apply(null,lineBoundingBox);lineBoundingBox=Math.max.apply(null,lineBoundingBox);for(var i=0;i<numGlyphs;++i)for(var glyphQuad_1=word._m_glyph_quads[i],minX=Math.min(glyphQuad_1[0],glyphQuad_1[2],glyphQuad_1[4]),j=0;8>j;j+=2)glyphQuad_1[j]=glyphQuad_1[j]===minX?x_left:x_right}else for(top=Math.min(lineBoundingBox.y1,lineBoundingBox.y2),lineBoundingBox=Math.max(lineBoundingBox.y1,lineBoundingBox.y2),i=0;i<numGlyphs;++i)for(glyphQuad_1=word._m_glyph_quads[i],
2036
+ minX=Math.min(glyphQuad_1[1],glyphQuad_1[3],glyphQuad_1[5]),j=1;8>j;j+=2)glyphQuad_1[j]=glyphQuad_1[j]===minX?lineBoundingBox:top;numGlyphs=word._m_quad;j=word._m_glyph_quads[0];i=j[2]-j[0];j=j[3]-j[1];0<i?(numGlyphs[0]=x_left,numGlyphs[1]=lineBoundingBox,numGlyphs[2]=x_right,numGlyphs[3]=lineBoundingBox,numGlyphs[4]=x_right,numGlyphs[5]=top,numGlyphs[6]=x_left,numGlyphs[7]=top):0>i?(numGlyphs[0]=x_left,numGlyphs[1]=top,numGlyphs[2]=x_right,numGlyphs[3]=top,numGlyphs[4]=x_right,numGlyphs[5]=lineBoundingBox,
2037
+ numGlyphs[6]=x_left,numGlyphs[7]=lineBoundingBox):0<j?(numGlyphs[0]=x_left,numGlyphs[1]=top,numGlyphs[2]=x_left,numGlyphs[3]=lineBoundingBox,numGlyphs[4]=x_right,numGlyphs[5]=lineBoundingBox,numGlyphs[6]=x_right,numGlyphs[7]=top):0>j?(numGlyphs[0]=x_right,numGlyphs[1]=lineBoundingBox,numGlyphs[2]=x_right,numGlyphs[3]=top,numGlyphs[4]=x_left,numGlyphs[5]=top,numGlyphs[6]=x_left,numGlyphs[7]=lineBoundingBox):(numGlyphs[0]=x_left,numGlyphs[1]=lineBoundingBox,numGlyphs[2]=x_right,numGlyphs[3]=lineBoundingBox,
2038
+ numGlyphs[4]=x_right,numGlyphs[5]=top,numGlyphs[6]=x_left,numGlyphs[7]=top);pos+=5;return word}function parseUnsimpleWord(){var word=getGenericWord();word._m_quad=parseQuad(struct,pos+3);pos+=11;return word}function parseLine(lineNum){var line=new _Line__WEBPACK_IMPORTED_MODULE_2__.a;line._m_CurNum=lineNum;var simple=0<struct[pos];if(simple){var wordsOffset=6;lineNum=struct[pos];var quad=line._m_quad,pt1=struct.slice(pos+2,pos+4),pt2=struct.slice(pos+4,pos+6);quad[0]=pt1[0];quad[1]=pt1[1];quad[2]=
2039
+ pt2[0];quad[3]=pt1[1];quad[4]=pt2[0];quad[5]=pt2[1];quad[6]=pt1[0];quad[7]=pt2[1]}else wordsOffset=10,lineNum=-struct[pos],line._m_quad=parseQuad(struct,pos+2);simple=simple?parseSimpleWord:parseUnsimpleWord;quad=new _SelectionRect__WEBPACK_IMPORTED_MODULE_4__.a;line.getBBox(quad);pos+=wordsOffset;prevWord=null;for(wordsOffset=0;wordsOffset<lineNum;++wordsOffset)line._m_Words.push(simple(quad));line._m_Str=line._m_Words.map(function(word){return word._m_Str}).join(" ");line._m_Str_pos=line._m_Words[0]?
2040
+ line._m_Words[0]._m_Str_pos:0;prevLine&&(prevLine._m_next_line=line);return prevLine=line}var pos=0,prevLine=null,prevWord=null,wordNum=0;return function(){var lines=[],numLines=struct[pos];pos++;for(var i=0;i<numLines;++i)lines.push(parseLine(i));return lines}()}(oldSelInfo.m_Struct,this.m_Quads,this.m_Str)};SelectionInfo.prototype._getUnicodeString=function(bytes){for(var result="",i=0,c,c2,c3;i<bytes.length;)c=bytes.charCodeAt(i),9==c?(result+=String.fromCharCode(10),i++):128>c?(result+=String.fromCharCode(c),
2041
+ i++):191<c&&224>c?(c2=bytes.charCodeAt(i+1),result+=String.fromCharCode((c&31)<<6|c2&63),i+=2):(c2=bytes.charCodeAt(i+1),c3=bytes.charCodeAt(i+2),result+=String.fromCharCode((c&15)<<12|(c2&63)<<6|c3&63),i+=3);return result};SelectionInfo.prototype._processWord=function(word_mapping,context){var word=new _Word__WEBPACK_IMPORTED_MODULE_3__.a;word_mapping=word_mapping.split(",");word_mapping=Object(_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_6__.a)(word_mapping);for(var last_index=-1;word_mapping.moveNext();){var word_map=
2042
+ word_mapping.current.split(":"),word_offset=parseInt(word_map[0]),word_length=0;1<word_map.length&&(word_length=parseInt(word_map[1]));last_index===word_offset&&(++word_offset,--word_length);for(last_index=word_offset+word_length;word_offset<=last_index;word_offset++){word_map=context.getLetter(word_offset);word_length=word_map.getChar();word.addChar(word_length,word_map.getQuad());for(var i=0;i<word_length.length;++i)this.m_Offsets.push(word_offset),Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.a)(this.m_Quads,
2043
+ word_map.getQuad())}}return word};SelectionInfo.prototype.parse=function(parser,context){var line_id=0,word_id=0,str_pos=0;do{for(var elem_name;parser.advance();)if(elem_name=parser.getElementName(),"F"===elem_name)parser.increaseDepth();else if("P"===elem_name)parser.increaseDepth();else if("L"===elem_name){parser.increaseDepth();elem_name=new _Line__WEBPACK_IMPORTED_MODULE_2__.a;elem_name._setCurrentNum(line_id++);0<this._m_Lines.length&&this._m_Lines[this._m_Lines.length-1].setNextLine(elem_name);
2044
+ this._m_Lines.push(elem_name);var words=parser.getCharData().split(" ");for(words=Object(_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_6__.a)(words);words.moveNext();){var word_map=words.current;if(0<elem_name.getNumWords()){this.m_Str+=" ";this.m_Offsets.push(-1);str_pos++;var last_quad=Array(8);elem_name.getLastWord().getQuad(last_quad);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.a)(this.m_Quads,last_quad)}word_map=this._processWord(word_map,context);word_map._setCurrentNum(word_id++);
2045
+ word_map._setStringPos(str_pos);elem_name.addWord(word_map);this.m_Str+=word_map.getString();str_pos+=word_map.getNumGlyphs()}this.m_Str+="\n";this.m_Offsets.push(-2);str_pos++;Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(0<elem_name.getNumWords(),"No words in line");0<elem_name.getNumWords()&&(last_quad=Array(8),elem_name.getLastWord().getQuad(last_quad),Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.a)(this.m_Quads,last_quad))}else Object(logger__WEBPACK_IMPORTED_MODULE_0__.e)("XML parser has encountered a symbol it can't process.");
2046
+ parser.decreaseDepth()}while(parser.getDepth())};SelectionInfo.prototype.constructFromFlowArray=function(flowArray,context){var line_id=0,word_id=0,str_pos=0;this._m_Whitespace_Indices=[];for(var i=0;i<flowArray.length;++i)for(var paraArray=flowArray[i],j=0;j<paraArray.length;++j)for(var lineArray=paraArray[j],k=0;k<lineArray.length;++k){var line=new _Line__WEBPACK_IMPORTED_MODULE_2__.a;line._setCurrentNum(line_id++);0<this._m_Lines.length&&this._m_Lines[this._m_Lines.length-1].setNextLine(line);
2047
+ this._m_Lines.push(line);var words=lineArray[k].split(" ");for(words=Object(_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_6__.a)(words);words.moveNext();){var word_map=words.current;if(0<line.getNumWords()){this._m_Whitespace_Indices.push(this.m_Str.length);this.m_Str+=" ";this.m_Offsets.push(-1);str_pos++;var last_quad=Array(8);line.getLastWord().getQuad(last_quad);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.a)(this.m_Quads,last_quad)}word_map=this._processWord(word_map,context);word_map._setCurrentNum(word_id++);
2048
+ word_map._setStringPos(str_pos);line.addWord(word_map);this.m_Str+=word_map.getString();str_pos+=word_map.getNumGlyphs()}this._m_Whitespace_Indices.push(this.m_Str.length);this.m_Str+="\n";this.m_Offsets.push(-2);str_pos++;Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(0<line.getNumWords(),"No words in line");0<line.getNumWords()&&(last_quad=Array(8),line.getLastWord().getQuad(last_quad),Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.a)(this.m_Quads,last_quad))}this.m_Ready=!0};SelectionInfo.prototype.reconstruct=
2049
+ function(contents,context){try{var parser=new _namespaces_XMLParser_XMLParser__WEBPACK_IMPORTED_MODULE_7__.a(contents);Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)("TextData"===parser.getElementName(),"XML parser has encountered a symbol it can't process.");"TextData"===parser.getElementName()&&(parser.increaseDepth(),this.parse(parser,context))}catch(ex){Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("TextSelection has encountered an error: "+ex.message);return}this.m_Ready=!0};SelectionInfo.prototype.ready=
2050
+ function(){return this.m_Ready};SelectionInfo.prototype.getNumLines=function(){return this._m_Lines.length};SelectionInfo.prototype.getFirstLine=function(){return this._m_Lines.length?this._m_Lines[0]:new _Line__WEBPACK_IMPORTED_MODULE_2__.a};SelectionInfo.prototype.getLine=function(idx){return this._m_Lines.length?this._m_Lines[idx]:new _Line__WEBPACK_IMPORTED_MODULE_2__.a};SelectionInfo.prototype.getLines=function(){return this._m_Lines};SelectionInfo.prototype.getStr=function(){return this.m_Str};
2051
+ SelectionInfo.prototype.getOffsets=function(){return this.m_Offsets};SelectionInfo.prototype.getQuads=function(){return this.m_Quads};return SelectionInfo}();__webpack_exports__.a=module},function(module,exports){},function(module,__webpack_exports__,__webpack_require__){module=__webpack_require__(3);__webpack_exports__=Object(module.d)(["xod"],["pdf","jpg","jpeg","png","jfif"],"docx xlsx pptx md doc xls ppt".split(" "));Object(module.d)(__webpack_exports__,["tiff","tif"],"doc xls csv ppt htm html utl xhtml bmp tif jp2 txt rtf odf odt odg odp ods xlsb xlt dwg dgn rvt rfa dxf dwf gif xltm xltx vsd vsdx xlt msg eml wmf emf".split(" "))},
2052
+ function(module,__webpack_exports__,__webpack_require__){module=__webpack_require__(2);__webpack_require__.n(module);__webpack_require__(0)},function(module,__webpack_exports__,__webpack_require__){module=__webpack_require__(2);__webpack_require__.n(module);__webpack_require__(9);(function(){try{var ctx=document.createElement("canvas").getContext("2d");ctx.font="20px f0";return parseFloat(ctx.font)/20}catch(error){return 1}})();(function(){function nonIntegerValueIssue(){var canvas=document.createElement("canvas");
2053
+ canvas.style.width="5px";canvas.style.height="5px";canvas=canvas.getContext("2d");canvas.rect(0,0,4.5,4.5);canvas.clip();canvas.fillStyle="#FFFFFF";canvas.fillRect(0,0,5,5);canvas.clearRect(0,0,5,5);return 0!==canvas.getImageData(1,1,1,1).data[3]}return function(){var canvas=document.createElement("canvas");canvas.style.width="1px";canvas.style.height="1px";canvas=canvas.getContext("2d");canvas.fillStyle="#FFFFFF";canvas.fillRect(0,0,1,1);canvas.beginPath();canvas.rect(0,0,1,1);canvas.clip();canvas.fillStyle=
2054
+ "#000000";canvas.fillRect(0,0,1,1);return 255===canvas.getImageData(0,0,1,1).data[0]}()||nonIntegerValueIssue()})()},function(module,__webpack_exports__,__webpack_require__){__webpack_require__(3);__webpack_require__(64)},function(module,__webpack_exports__,__webpack_require__){},function(module,__webpack_exports__,__webpack_require__){},function(module,__webpack_exports__,__webpack_require__){},function(module,__webpack_exports__,__webpack_require__){},function(module,__webpack_exports__,__webpack_require__){__webpack_require__(8);
2055
+ __webpack_require__(39)},function(module,__webpack_exports__,__webpack_require__){__webpack_exports__.a=function(path){if(!styleExists(path)){var link=document.createElement("link");link.rel="stylesheet";link.type="text/css";link.href=path;link.id=path;document.getElementsByTagName("head")[0].appendChild(link)}};var styleExists=function(path){var links=document.getElementsByTagName("link");return[].some.call(links,function(link){return link.id===path})}},function(module,__webpack_exports__,__webpack_require__){},
2056
+ function(module$jscomp$0,exports,__webpack_require__){(function(global,module){var __WEBPACK_AMD_DEFINE_RESULT__;(function(){function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2])}return func.apply(thisArg,args)}function arrayAggregator(array,setter,iteratee,accumulator){for(var index=-1,length=null==array?0:array.length;++index<
2057
+ length;){var value=array[index];setter(accumulator,value,iteratee(value),array)}return accumulator}function arrayEach(array,iteratee){for(var index=-1,length=null==array?0:array.length;++index<length&&!1!==iteratee(array[index],index,array););return array}function arrayEachRight(array,iteratee){for(var length=null==array?0:array.length;length--&&!1!==iteratee(array[length],length,array););return array}function arrayEvery(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<
2058
+ length;)if(!predicate(array[index],index,array))return!1;return!0}function arrayFilter(array,predicate){for(var index=-1,length=null==array?0:array.length,resIndex=0,result=[];++index<length;){var value=array[index];predicate(value,index,array)&&(result[resIndex++]=value)}return result}function arrayIncludes(array,value){return!(null==array||!array.length)&&-1<baseIndexOf(array,value,0)}function arrayIncludesWith(array,value,comparator){for(var index=-1,length=null==array?0:array.length;++index<length;)if(comparator(value,
2059
+ array[index]))return!0;return!1}function arrayMap(array,iteratee){for(var index=-1,length=null==array?0:array.length,result=Array(length);++index<length;)result[index]=iteratee(array[index],index,array);return result}function arrayPush(array,values){for(var index=-1,length=values.length,offset=array.length;++index<length;)array[offset+index]=values[index];return array}function arrayReduce(array,iteratee,accumulator,initAccum){var index=-1,length=null==array?0:array.length;for(initAccum&&length&&(accumulator=
2060
+ array[++index]);++index<length;)accumulator=iteratee(accumulator,array[index],index,array);return accumulator}function arrayReduceRight(array,iteratee,accumulator,initAccum){var length=null==array?0:array.length;for(initAccum&&length&&(accumulator=array[--length]);length--;)accumulator=iteratee(accumulator,array[length],length,array);return accumulator}function arraySome(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<length;)if(predicate(array[index],index,array))return!0;
2061
+ return!1}function baseFindKey(collection$jscomp$0,predicate,eachFunc){var result;eachFunc(collection$jscomp$0,function(value,key,collection){if(predicate(value,key,collection))return result=key,!1});return result}function baseFindIndex(array,predicate,fromIndex,fromRight){var length=array.length;for(fromIndex+=fromRight?1:-1;fromRight?fromIndex--:++fromIndex<length;)if(predicate(array[fromIndex],fromIndex,array))return fromIndex;return-1}function baseIndexOf(array,value,fromIndex){if(value===value)a:{--fromIndex;
2062
+ for(var length=array.length;++fromIndex<length;)if(array[fromIndex]===value){array=fromIndex;break a}array=-1}else array=baseFindIndex(array,baseIsNaN,fromIndex);return array}function baseIndexOfWith(array,value,fromIndex,comparator){--fromIndex;for(var length=array.length;++fromIndex<length;)if(comparator(array[fromIndex],value))return fromIndex;return-1}function baseIsNaN(value){return value!==value}function baseMean(array,iteratee){var length=null==array?0:array.length;return length?baseSum(array,
2063
+ iteratee)/length:NAN}function baseProperty(key){return function(object){return null==object?undefined:object[key]}}function basePropertyOf(object){return function(key){return null==object?undefined:object[key]}}function baseReduce(collection$jscomp$0,iteratee,accumulator,initAccum,eachFunc){eachFunc(collection$jscomp$0,function(value,index,collection){accumulator=initAccum?(initAccum=!1,value):iteratee(accumulator,value,index,collection)});return accumulator}function baseSortBy(array,comparer){var length=
2064
+ array.length;for(array.sort(comparer);length--;)array[length]=array[length].value;return array}function baseSum(array,iteratee){for(var result,index=-1,length=array.length;++index<length;){var current=iteratee(array[index]);undefined!==current&&(result=undefined===result?current:result+current)}return result}function baseTimes(n,iteratee){for(var index=-1,result=Array(n);++index<n;)result[index]=iteratee(index);return result}function baseToPairs(object,props){return arrayMap(props,function(key){return[key,
2065
+ object[key]]})}function baseTrim(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,""):string}function baseUnary(func){return function(value){return func(value)}}function baseValues(object,props){return arrayMap(props,function(key){return object[key]})}function cacheHas(cache,key){return cache.has(key)}function charsStartIndex(strSymbols,chrSymbols){for(var index=-1,length=strSymbols.length;++index<length&&-1<baseIndexOf(chrSymbols,strSymbols[index],0););return index}
2066
+ function charsEndIndex(strSymbols,chrSymbols){for(var index=strSymbols.length;index--&&-1<baseIndexOf(chrSymbols,strSymbols[index],0););return index}function escapeStringChar(chr){return"\\"+stringEscapes[chr]}function mapToArray(map){var index=-1,result=Array(map.size);map.forEach(function(value,key){result[++index]=[key,value]});return result}function overArg(func,transform){return function(arg){return func(transform(arg))}}function replaceHolders(array,placeholder){for(var index=-1,length=array.length,
2067
+ resIndex=0,result=[];++index<length;){var value=array[index];if(value===placeholder||"__lodash_placeholder__"===value)array[index]="__lodash_placeholder__",result[resIndex++]=index}return result}function setToArray(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=value});return result}function setToPairs(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=[value,value]});return result}function stringSize(string){if(reHasUnicode.test(string)){for(var result=
2068
+ reUnicode.lastIndex=0;reUnicode.test(string);)++result;string=result}else string=asciiSize(string);return string}function stringToArray(string){return reHasUnicode.test(string)?string.match(reUnicode)||[]:string.split("")}function trimmedEndIndex(string){for(var index=string.length;index--&&reWhitespace.test(string.charAt(index)););return index}var undefined,INFINITY=1/0,NAN=0/0,wrapFlags=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",
2069
+ 64],["rearg",256]],reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g,reEscapedHtml=/&(?:amp|lt|gt|quot|#39);/g,reUnescapedHtml=/[&<>"']/g,reHasEscapedHtml=RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source),reEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,rePropName=
2070
+ /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source),reTrimStart=/^\s+/,reWhitespace=/\s/,reWrapComment=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,reWrapDetails=/\{\n\/\* \[wrapped with (.+)\] \*/,reSplitDetails=/,? & /,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,reForbiddenIdentifierChars=/[()=,{}\[\]\/\s]/,reEscapeChar=/\\(\\)?/g,reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,
2071
+ reFlags=/\w*$/,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsHostCtor=/^\[object .+?Constructor\]$/,reIsOctal=/^0o[0-7]+$/i,reIsUint=/^(?:0|[1-9]\d*)$/,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,reNoMatch=/($^)/,reUnescapedString=/['\n\r\u2028\u2029\\]/g,reApos=RegExp("['\u2019]","g"),reComboMark=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),reUnicode=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?|[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*",
2038
2072
  "g"),reUnicodeWord=RegExp("[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde]|$)|(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])|$)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+|(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*",
2039
2073
  "g"),reHasUnicode=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,contextProps="Array Buffer DataView Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Map Math Object Promise RegExp Set String Symbol TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap _ clearTimeout isFinite parseInt setTimeout".split(" "),templateCounter=
2040
2074
  -1,typedArrayTags={};typedArrayTags["[object Float32Array]"]=typedArrayTags["[object Float64Array]"]=typedArrayTags["[object Int8Array]"]=typedArrayTags["[object Int16Array]"]=typedArrayTags["[object Int32Array]"]=typedArrayTags["[object Uint8Array]"]=typedArrayTags["[object Uint8ClampedArray]"]=typedArrayTags["[object Uint16Array]"]=typedArrayTags["[object Uint32Array]"]=!0;typedArrayTags["[object Arguments]"]=typedArrayTags["[object Array]"]=typedArrayTags["[object ArrayBuffer]"]=typedArrayTags["[object Boolean]"]=
@@ -2276,15 +2310,15 @@ lodashFunc.apply(lodash,arrayPush([value],args));return isTaker&&chainAll?value[
2276
2310
  thisArg:undefined}),new LodashWrapper(value$jscomp$0,chainAll);if(iteratee&&isLazy)return func.apply(this,args);value$jscomp$0=this.thru(interceptor);return iteratee?isTaker?value$jscomp$0.value()[0]:value$jscomp$0.value():value$jscomp$0})});arrayEach("pop push shift sort splice unshift".split(" "),function(methodName){var func=arrayProto[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash.prototype[methodName]=function(){var args=
2277
2311
  arguments;if(retUnwrapped&&!this.__chain__){var value$jscomp$0=this.value();return func.apply(isArray(value$jscomp$0)?value$jscomp$0:[],args)}return this[chainName](function(value){return func.apply(isArray(value)?value:[],args)})}});baseForOwn(LazyWrapper.prototype,function(func,methodName){if(func=lodash[methodName]){var key=func.name+"";hasOwnProperty.call(realNames,key)||(realNames[key]=[]);realNames[key].push({name:methodName,func:func})}});realNames[createHybrid(undefined,2).name]=[{name:"wrapper",
2278
2312
  func:undefined}];LazyWrapper.prototype.clone=function(){var result=new LazyWrapper(this.__wrapped__);result.__actions__=copyArray(this.__actions__);result.__dir__=this.__dir__;result.__filtered__=this.__filtered__;result.__iteratees__=copyArray(this.__iteratees__);result.__takeCount__=this.__takeCount__;result.__views__=copyArray(this.__views__);return result};LazyWrapper.prototype.reverse=function(){if(this.__filtered__){var result=new LazyWrapper(this);result.__dir__=-1;result.__filtered__=!0}else result=
2279
- this.clone(),result.__dir__*=-1;return result};LazyWrapper.prototype.value=function(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray(array),isRight=0>dir,arrLength=isArr?array.length:0;var JSCompiler_object_inline_start_1551=0;for(var end=arrLength,transforms=this.__views__,index=-1,length=transforms.length;++index<length;){var data=transforms[index],size=data.size;switch(data.type){case "drop":JSCompiler_object_inline_start_1551+=size;break;case "dropRight":end-=size;break;case "take":end=
2280
- nativeMin(end,JSCompiler_object_inline_start_1551+size);break;case "takeRight":JSCompiler_object_inline_start_1551=nativeMax(JSCompiler_object_inline_start_1551,end-size)}}transforms=end;end=transforms-JSCompiler_object_inline_start_1551;JSCompiler_object_inline_start_1551=isRight?transforms:JSCompiler_object_inline_start_1551-1;transforms=this.__iteratees__;index=transforms.length;length=0;data=nativeMin(end,this.__takeCount__);if(!isArr||!isRight&&arrLength==end&&data==end)return baseWrapperValue(array,
2281
- this.__actions__);isArr=[];a:for(;end--&&length<data;){JSCompiler_object_inline_start_1551+=dir;isRight=-1;for(arrLength=array[JSCompiler_object_inline_start_1551];++isRight<index;){var data$jscomp$0=transforms[isRight];size=data$jscomp$0.iteratee;data$jscomp$0=data$jscomp$0.type;size=size(arrLength);if(2==data$jscomp$0)arrLength=size;else if(!size)if(1==data$jscomp$0)continue a;else break a}isArr[length++]=arrLength}return isArr};lodash.prototype.at=wrapperAt;lodash.prototype.chain=function(){return chain$jscomp$0(this)};
2313
+ this.clone(),result.__dir__*=-1;return result};LazyWrapper.prototype.value=function(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray(array),isRight=0>dir,arrLength=isArr?array.length:0;var JSCompiler_object_inline_start_1790=0;for(var end=arrLength,transforms=this.__views__,index=-1,length=transforms.length;++index<length;){var data=transforms[index],size=data.size;switch(data.type){case "drop":JSCompiler_object_inline_start_1790+=size;break;case "dropRight":end-=size;break;case "take":end=
2314
+ nativeMin(end,JSCompiler_object_inline_start_1790+size);break;case "takeRight":JSCompiler_object_inline_start_1790=nativeMax(JSCompiler_object_inline_start_1790,end-size)}}transforms=end;end=transforms-JSCompiler_object_inline_start_1790;JSCompiler_object_inline_start_1790=isRight?transforms:JSCompiler_object_inline_start_1790-1;transforms=this.__iteratees__;index=transforms.length;length=0;data=nativeMin(end,this.__takeCount__);if(!isArr||!isRight&&arrLength==end&&data==end)return baseWrapperValue(array,
2315
+ this.__actions__);isArr=[];a:for(;end--&&length<data;){JSCompiler_object_inline_start_1790+=dir;isRight=-1;for(arrLength=array[JSCompiler_object_inline_start_1790];++isRight<index;){var data$jscomp$0=transforms[isRight];size=data$jscomp$0.iteratee;data$jscomp$0=data$jscomp$0.type;size=size(arrLength);if(2==data$jscomp$0)arrLength=size;else if(!size)if(1==data$jscomp$0)continue a;else break a}isArr[length++]=arrLength}return isArr};lodash.prototype.at=wrapperAt;lodash.prototype.chain=function(){return chain$jscomp$0(this)};
2282
2316
  lodash.prototype.commit=function(){return new LodashWrapper(this.value(),this.__chain__)};lodash.prototype.next=function(){undefined===this.__values__&&(this.__values__=toArray(this.value()));var done=this.__index__>=this.__values__.length,value=done?undefined:this.__values__[this.__index__++];return{done:done,value:value}};lodash.prototype.plant=function(value){for(var result,parent=this;parent instanceof baseLodash;){var clone=wrapperClone(parent);clone.__index__=0;clone.__values__=undefined;result?
2283
2317
  previous.__wrapped__=clone:result=clone;var previous=clone;parent=parent.__wrapped__}previous.__wrapped__=value;return result};lodash.prototype.reverse=function(){var value=this.__wrapped__;return value instanceof LazyWrapper?(this.__actions__.length&&(value=new LazyWrapper(this)),value=value.reverse(),value.__actions__.push({func:thru,args:[reverse],thisArg:undefined}),new LodashWrapper(value,this.__chain__)):this.thru(reverse)};lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=
2284
- function(){return baseWrapperValue(this.__wrapped__,this.__actions__)};lodash.prototype.first=lodash.prototype.head;symIterator&&(lodash.prototype[symIterator]=wrapperToIterator);return lodash}();root._=_;!(__WEBPACK_AMD_DEFINE_RESULT__=_,undefined!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}).call(this)}).call(this,__webpack_require__(11),__webpack_require__(43)(module$jscomp$0))},function(module$jscomp$0,exports$jscomp$0,__webpack_require__){function asyncGeneratorStep(gen,
2318
+ function(){return baseWrapperValue(this.__wrapped__,this.__actions__)};lodash.prototype.first=lodash.prototype.head;symIterator&&(lodash.prototype[symIterator]=wrapperToIterator);return lodash}();root._=_;!(__WEBPACK_AMD_DEFINE_RESULT__=_,undefined!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}).call(this)}).call(this,__webpack_require__(15),__webpack_require__(47)(module$jscomp$0))},function(module$jscomp$0,exports$jscomp$0,__webpack_require__){function asyncGeneratorStep(gen,
2285
2319
  resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);
2286
- _next(void 0)})}}function _typeof(obj$jscomp$0){"@babel/helpers - typeof";_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};return _typeof(obj$jscomp$0)}var __WEBPACK_AMD_DEFINE_RESULT__;parcelRequire=function(e$jscomp$0,r$jscomp$1,t$jscomp$0,n$jscomp$0){function f(t,n){function p(e){return f(p.resolve(e))}if(!r$jscomp$1[t]){if(!e$jscomp$0[t]){var i=
2287
- "function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if("string"==typeof t)return __webpack_require__(135)(t);n=Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n;}p.resolve=function(r){return e$jscomp$0[t][1][r]||r};p.cache={};n=r$jscomp$1[t]=new f.Module(t);e$jscomp$0[t][0].call(n.exports,p,n,n.exports,this)}return r$jscomp$1[t].exports}var i$jscomp$0,o="function"==typeof parcelRequire&&parcelRequire;f.isParcelRequire=!0;f.Module=function(e){this.id=
2320
+ _next(void 0)})}}function _typeof(obj$jscomp$0){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj$jscomp$0)}var __WEBPACK_AMD_DEFINE_RESULT__;parcelRequire=function(e$jscomp$0,r$jscomp$1,t$jscomp$0,n$jscomp$0){function f(t,n){function p(e){return f(p.resolve(e))}if(!r$jscomp$1[t]){if(!e$jscomp$0[t]){var i=
2321
+ "function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if("string"==typeof t)return __webpack_require__(151)(t);n=Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n;}p.resolve=function(r){return e$jscomp$0[t][1][r]||r};p.cache={};n=r$jscomp$1[t]=new f.Module(t);e$jscomp$0[t][0].call(n.exports,p,n,n.exports,this)}return r$jscomp$1[t].exports}var i$jscomp$0,o="function"==typeof parcelRequire&&parcelRequire;f.isParcelRequire=!0;f.Module=function(e){this.id=
2288
2322
  e;this.bundle=f;this.exports={}};f.modules=e$jscomp$0;f.cache=r$jscomp$1;f.parent=o;f.register=function(r$jscomp$0,t){e$jscomp$0[r$jscomp$0]=[function(e,r){r.exports=t},{}]};for(n$jscomp$0=0;n$jscomp$0<t$jscomp$0.length;n$jscomp$0++)try{f(t$jscomp$0[n$jscomp$0])}catch(e$14){i$jscomp$0||(i$jscomp$0=e$14)}t$jscomp$0.length&&(t$jscomp$0=f(t$jscomp$0[t$jscomp$0.length-1]),"object"==_typeof(exports$jscomp$0)&&"undefined"!=typeof module$jscomp$0?module$jscomp$0.exports=t$jscomp$0:!(__WEBPACK_AMD_DEFINE_RESULT__=
2289
2323
  t$jscomp$0,void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module$jscomp$0.exports=__WEBPACK_AMD_DEFINE_RESULT__)));if(parcelRequire=f,i$jscomp$0)throw i$jscomp$0;return f}({b9XL:[function(require,module,exports){function o$jscomp$0(t){return(o$jscomp$0="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(o){return _typeof(o)}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":_typeof(o)})(t)}function t$jscomp$0(n){return"function"==typeof Symbol&&
2290
2324
  "symbol"===o$jscomp$0(Symbol.iterator)?module.exports=t$jscomp$0=function(_t){return o$jscomp$0(_t)}:module.exports=t$jscomp$0=function(_t2){return _t2&&"function"==typeof Symbol&&_t2.constructor===Symbol&&_t2!==Symbol.prototype?"symbol":o$jscomp$0(_t2)},t$jscomp$0(n)}module.exports=t$jscomp$0},{}],agGE:[function(require,module,exports){function n$jscomp$0(n,t,o,r,e,i,u){try{var c=n[i](u),v=c.value}catch(a){return void o(a)}c.done?t(v):Promise.resolve(v).then(r,e)}module.exports=function(t$jscomp$0){return function(){var o=
@@ -2608,21 +2642,21 @@ this.pdfPageRotate)%360});var renderCapability=createPromiseCapability();options
2608
2642
  {alpha:!1});pageCanvas=_ref2===PageRotation.E_90||_ref2===PageRotation.E_270;if("undefined"===typeof renderRect)pageTranslation=(pageCanvas?this.height:this.width)*scale,scale*=pageCanvas?this.width:this.height;else{pageTranslation=_slicedToArray(renderRect.rect,4);var x1=pageTranslation[0],y1=pageTranslation[1],x2=pageTranslation[2],y2=pageTranslation[3];pageTranslation=(pageCanvas?y2-y1:x2-x1)*scale;scale*=pageCanvas?x2-x1:y2-y1}pageTranslation=Math.round(pageTranslation);scale=Math.round(scale);
2609
2643
  scale=Math.floor(scale*multiplier);canvas.width=Math.floor(pageTranslation*multiplier)||1;canvas.height=scale||1;multiplier={canvasContext:canvasNum,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms};renderRect&&(_ref2=this.getTransform({rotation:_ref2,renderRect:renderRect}),multiplier.transform=_ref2);var renderTask=this.pdfPage.render(multiplier);renderTask.promise.then(function(){showCanvas();renderCapability.resolve(canvas)},function(error){showCanvas();
2610
2644
  renderCapability.reject(error);Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)(canvas)});return options}});__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=
2611
- !0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),getCanvasMultiplier=window.Core.getCanvasMultiplier;module=function(){function Line(opts){_classCallCheck(this,Line);var item=opts.item,
2612
- text=item.str,transform=item.transform,x=transform[4],y=transform[5],width=item.width;transform=transform[0];y=opts.pageMatrix.mult({x:x,y:y});x=this.parseNum(y.x);y=this.parseNum(y.y);this._topOffset=.15;this._bottomOffset=.25;item=[item.transform[0],item.transform[1],item.transform[2],item.transform[3],x,y];var rightX=this.parseNum(x+width),top=this.parseNum(y-transform);this.leftX=x;this.rightX=rightX;this.top=top;this.bottom=y;this.text=text;this._width=width;this._height=transform;this._font=
2613
- opts.font;this.quads=[];this._textMatrix=item.concat();this._textLineMatrix=item.concat()}_createClass(Line,[{key:"parse",value:function(){var _this=this,isThereSpace=!1;/\s/.test(this.text)&&(isThereSpace=!0);var spaceIndexes=[],fontMatrix=this._font.fontMatrix?this._font.fontMatrix:[.001],unicodeCache={},glyphs=this.text.split("").map(function(_char,index){_char=new Glyph({"char":_char,cMap:_this._font.cMap,widths:_this._font.widths,toUnicode:_this._font.toUnicode,fontMatrix:fontMatrix,lineHeight:_this._height,
2614
- font:_this._font,getIndexFromCharacter:function(_char2){if(_this._font.toUnicode&&_this._font.toUnicode._map){var cachedResult=unicodeCache[_char2];if(null!==cachedResult&&void 0!==cachedResult)return cachedResult;cachedResult=_this._font.toUnicode._map.indexOf(_char2);return unicodeCache[_char2]=cachedResult}return null}});isThereSpace?!_char.isSpace||null!=_char.width&&0!==_char.width?!_char.isSpace&&"number"===typeof _char.unicode&&isNaN(_char.charLength)?_char.setCharLength(0):_char.isSpace||
2615
- _char.unicode||!isNaN(_char.charLength)||_char.setCharLength(_this._width/_this.text.length):(_char.setCharLength(0),spaceIndexes.push(index)):isThereSpace||_char.isSpace||"number"!==typeof _char.unicode||0!==_char.charLength||_char.setCharLength(_this._width/_this.text.length);_this._textMatrix[4]=_char.charLength+0*_this._textMatrix[2]+_this._textMatrix[4];return _char});if(isThereSpace){var calculatedWidth=(this.leftX+this._width-this._textMatrix[4])/(this.text.split(" ").length-1);if(-Infinity===
2616
- calculatedWidth||Infinity===calculatedWidth||isNaN(calculatedWidth))calculatedWidth=0;for(var i=0,len=spaceIndexes.length;i<len;i++)glyphs[spaceIndexes[i]].setLengthIfZero(calculatedWidth)}var transform=this._textLineMatrix.concat();calculatedWidth=glyphs.map(function(glyph){var leftX=transform[4],rightX=leftX+glyph.charLength,top=_this.top+(_this.bottom-_this.top)*_this._topOffset,bottom=_this.bottom+(_this.bottom-_this.top)*_this._bottomOffset;transform[4]=glyph.charLength+0*transform[2]+transform[4];
2617
- return[leftX,bottom,rightX,bottom,rightX,top,leftX,top]});this.glyphs=glyphs;this.quads=calculatedWidth}},{key:"getQuads",value:function(){return this.quads}},{key:"parseNum",value:function(num){return parseFloat(num.toFixed(4))}},{key:"addNewline",value:function(){this.text.endsWith("\n")||(this.text+="\n")}},{key:"_drawRect",value:function(ctx,scale){if(ctx){var mul=getCanvasMultiplier();scale*=mul;ctx.rect(this.leftX*scale,this.top*scale,this._width*scale,(this.bottom-this.top)*scale);ctx.stroke()}}},
2618
- {key:"toString",value:function(){Object(logger__WEBPACK_IMPORTED_MODULE_0__.e)('"'.concat(this.text,'"'));Object(logger__WEBPACK_IMPORTED_MODULE_0__.e)("glyphs",this.glyphs);Object(logger__WEBPACK_IMPORTED_MODULE_0__.e)("-----------------------------")}}]);return Line}();var Glyph=function(){function Glyph(opts){var _this2=this;_classCallCheck(this,Glyph);var cMap=opts.cMap,fontMatrix=opts.fontMatrix,lineHeight=opts.lineHeight,widths=opts.widths,toUnicode=opts.toUnicode,getIndexOfCharacter=opts.getIndexFromCharacter;
2619
- this["char"]=opts["char"];cMap?toUnicode._map&&toUnicode._map.includes(this["char"])?this.unicode=toUnicode._map.findIndex(function(_char3){return _char3===_this2["char"]}):this.unicode=this["char"].charCodeAt(0):this.unicode=this["char"].charCodeAt(0);this["char"]===String.fromCharCode(10)?(this.width=0,this.unicode=this["char"].charCodeAt(0),this.charLength=0):32===this["char"].charCodeAt(0)?this.width=widths[this.unicode]:(this.width=widths[this.unicode],null==this.width&&toUnicode._map&&toUnicode._map.includes(this["char"])?
2620
- (this.unicode=toUnicode._map.findIndex(function(_char4){return _char4===_this2["char"]}),this.width=widths[this.unicode],null==this.width&&(this.width=widths[getIndexOfCharacter(this["char"])]||opts.font.defaultWidth)):null==this.width&&(this.width=opts.font.defaultWidth));if(!this.isSpace||null!=this.width&&0!==this.width)opts=0,opts=this.width*fontMatrix[0],this.charLength=lineHeight*opts}_createClass(Glyph,[{key:"isSpace",get:function(){return 32===this["char"].charCodeAt(0)}},{key:"setCharLength",
2621
- value:function(charLength){this.charLength=charLength}},{key:"setLengthIfZero",value:function(charLength){this.charLength&&0!==this.charLength||(this.charLength=charLength)}}]);return Glyph}();__webpack_exports__.a=module},function(module$jscomp$0,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return getDefaultBackendType});var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_PDFWorkerInfo__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(88),
2622
- _util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(24),_webviewer_src_backendTypes__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(33),exports=window,defaultBackendPromise,wasmThreadSupported=function(){if(_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.f){if(84>_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.c)return!1}else if(_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.e){if(87>_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.b)return!1}else if(!_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.d||
2623
- _util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.g||exports.navigator.userAgent.match(/WOW64/))return!1;if(_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.f&&!1===self.crossOriginIsolated)return Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("Your server has not been configured to serve WebAssembly threads. See https://www.pdftron.com/enabling_wasm-threads for instructions on how to resolve this."),!1;if(!("SharedArrayBuffer"in exports&&"WebAssembly"in exports&&"Atomics"in exports))return!1;
2645
+ !0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:!1});return Constructor}var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),getCanvasMultiplier=window.Core.getCanvasMultiplier;module=function(){function Line(opts){_classCallCheck(this,
2646
+ Line);var item=opts.item,text=item.str,transform=item.transform,x=transform[4],y=transform[5],width=item.width;transform=transform[0];y=opts.pageMatrix.mult({x:x,y:y});x=this.parseNum(y.x);y=this.parseNum(y.y);this._topOffset=.15;this._bottomOffset=.25;item=[item.transform[0],item.transform[1],item.transform[2],item.transform[3],x,y];var rightX=this.parseNum(x+width),top=this.parseNum(y-transform);this.leftX=x;this.rightX=rightX;this.top=top;this.bottom=y;this.text=text;this._width=width;this._height=
2647
+ transform;this._font=opts.font;this.quads=[];this._textMatrix=item.concat();this._textLineMatrix=item.concat()}_createClass(Line,[{key:"parse",value:function(){var _this=this,isThereSpace=!1;/\s/.test(this.text)&&(isThereSpace=!0);var spaceIndexes=[],fontMatrix=this._font.fontMatrix?this._font.fontMatrix:[.001],unicodeCache={},glyphs=this.text.split("").map(function(_char,index){_char=new Glyph({"char":_char,cMap:_this._font.cMap,widths:_this._font.widths,toUnicode:_this._font.toUnicode,fontMatrix:fontMatrix,
2648
+ lineHeight:_this._height,font:_this._font,getIndexFromCharacter:function(_char2){if(_this._font.toUnicode&&_this._font.toUnicode._map){var cachedResult=unicodeCache[_char2];if(null!==cachedResult&&void 0!==cachedResult)return cachedResult;cachedResult=_this._font.toUnicode._map.indexOf(_char2);return unicodeCache[_char2]=cachedResult}return null}});isThereSpace?!_char.isSpace||null!=_char.width&&0!==_char.width?!_char.isSpace&&"number"===typeof _char.unicode&&isNaN(_char.charLength)?_char.setCharLength(0):
2649
+ _char.isSpace||_char.unicode||!isNaN(_char.charLength)||_char.setCharLength(_this._width/_this.text.length):(_char.setCharLength(0),spaceIndexes.push(index)):isThereSpace||_char.isSpace||"number"!==typeof _char.unicode||0!==_char.charLength||_char.setCharLength(_this._width/_this.text.length);_this._textMatrix[4]=_char.charLength+0*_this._textMatrix[2]+_this._textMatrix[4];return _char});if(isThereSpace){var calculatedWidth=(this.leftX+this._width-this._textMatrix[4])/(this.text.split(" ").length-
2650
+ 1);if(-Infinity===calculatedWidth||Infinity===calculatedWidth||isNaN(calculatedWidth))calculatedWidth=0;for(var i=0,len=spaceIndexes.length;i<len;i++)glyphs[spaceIndexes[i]].setLengthIfZero(calculatedWidth)}var transform=this._textLineMatrix.concat();calculatedWidth=glyphs.map(function(glyph){var leftX=transform[4],rightX=leftX+glyph.charLength,top=_this.top+(_this.bottom-_this.top)*_this._topOffset,bottom=_this.bottom+(_this.bottom-_this.top)*_this._bottomOffset;transform[4]=glyph.charLength+0*transform[2]+
2651
+ transform[4];return[leftX,bottom,rightX,bottom,rightX,top,leftX,top]});this.glyphs=glyphs;this.quads=calculatedWidth}},{key:"getQuads",value:function(){return this.quads}},{key:"parseNum",value:function(num){return parseFloat(num.toFixed(4))}},{key:"addNewline",value:function(){this.text.endsWith("\n")||(this.text+="\n")}},{key:"_drawRect",value:function(ctx,scale){if(ctx){var mul=getCanvasMultiplier();scale*=mul;ctx.rect(this.leftX*scale,this.top*scale,this._width*scale,(this.bottom-this.top)*scale);
2652
+ ctx.stroke()}}},{key:"toString",value:function(){Object(logger__WEBPACK_IMPORTED_MODULE_0__.e)('"'.concat(this.text,'"'));Object(logger__WEBPACK_IMPORTED_MODULE_0__.e)("glyphs",this.glyphs);Object(logger__WEBPACK_IMPORTED_MODULE_0__.e)("-----------------------------")}}]);return Line}();var Glyph=function(){function Glyph(opts){var _this2=this;_classCallCheck(this,Glyph);var cMap=opts.cMap,fontMatrix=opts.fontMatrix,lineHeight=opts.lineHeight,widths=opts.widths,toUnicode=opts.toUnicode,getIndexOfCharacter=
2653
+ opts.getIndexFromCharacter;this["char"]=opts["char"];cMap?toUnicode._map&&toUnicode._map.includes(this["char"])?this.unicode=toUnicode._map.findIndex(function(_char3){return _char3===_this2["char"]}):this.unicode=this["char"].charCodeAt(0):this.unicode=this["char"].charCodeAt(0);this["char"]===String.fromCharCode(10)?(this.width=0,this.unicode=this["char"].charCodeAt(0),this.charLength=0):32===this["char"].charCodeAt(0)?this.width=widths[this.unicode]:(this.width=widths[this.unicode],null==this.width&&
2654
+ toUnicode._map&&toUnicode._map.includes(this["char"])?(this.unicode=toUnicode._map.findIndex(function(_char4){return _char4===_this2["char"]}),this.width=widths[this.unicode],null==this.width&&(this.width=widths[getIndexOfCharacter(this["char"])]||opts.font.defaultWidth)):null==this.width&&(this.width=opts.font.defaultWidth));if(!this.isSpace||null!=this.width&&0!==this.width)opts=0,opts=this.width*fontMatrix[0],this.charLength=lineHeight*opts}_createClass(Glyph,[{key:"isSpace",get:function(){return 32===
2655
+ this["char"].charCodeAt(0)}},{key:"setCharLength",value:function(charLength){this.charLength=charLength}},{key:"setLengthIfZero",value:function(charLength){this.charLength&&0!==this.charLength||(this.charLength=charLength)}}]);return Glyph}();__webpack_exports__.a=module},function(module$jscomp$0,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return getDefaultBackendType});var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_PDFWorkerInfo__WEBPACK_IMPORTED_MODULE_1__=
2656
+ __webpack_require__(102),_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(8),_webviewer_src_backendTypes__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(36),exports=window,defaultBackendPromise,wasmThreadSupported=function(){if(_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.h){if(84>_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.d)return!1}else if(_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.g){if(87>_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.c)return!1}else if(!_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.f||
2657
+ _util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.i||exports.navigator.userAgent.match(/WOW64/))return!1;if(_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.h&&!1===self.crossOriginIsolated)return Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("Your server has not been configured to serve WebAssembly threads. See https://www.pdftron.com/enabling_wasm-threads for instructions on how to resolve this."),!1;if(!("SharedArrayBuffer"in exports&&"WebAssembly"in exports&&"Atomics"in exports))return!1;
2624
2658
  try{if("object"===typeof WebAssembly&&"function"===typeof WebAssembly.instantiate){var module=new WebAssembly.Module(Uint8Array.of(0,97,115,109,1,0,0,0));if(module instanceof WebAssembly.Module&&new WebAssembly.Instance(module)instanceof WebAssembly.Instance)return(new WebAssembly.Memory({initial:1,maximum:1,shared:!0})).buffer instanceof exports.SharedArrayBuffer}}catch(_a){}return!1},getDefaultBackendType=function(){defaultBackendPromise||(defaultBackendPromise=new Promise(function(resolve){if(exports.utils.isJSWorker&&
2625
- exports.jsworker)resolve(_webviewer_src_backendTypes__WEBPACK_IMPORTED_MODULE_3__.a);else if(exports.utils.isPdfjs)resolve(void 0);else if(wasmThreadSupported())if(_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.d&&86>_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.a)try{var testWorkerPath=Object(_PDFWorkerInfo__WEBPACK_IMPORTED_MODULE_1__.a)()+"simple_wasm/MemGrow.js",script_1=self.document.createElement("script");self.Module={onRuntimeInitialized:function(){self.Module._GrowMemory()?
2659
+ exports.jsworker)resolve(_webviewer_src_backendTypes__WEBPACK_IMPORTED_MODULE_3__.a);else if(exports.utils.isPdfjs)resolve(void 0);else if(wasmThreadSupported())if(_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.f&&86>_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.a)try{var testWorkerPath=Object(_PDFWorkerInfo__WEBPACK_IMPORTED_MODULE_1__.a)()+"simple_wasm/MemGrow.js",script_1=self.document.createElement("script");self.Module={onRuntimeInitialized:function(){self.Module._GrowMemory()?
2626
2660
  resolve(_webviewer_src_backendTypes__WEBPACK_IMPORTED_MODULE_3__.b):resolve(_webviewer_src_backendTypes__WEBPACK_IMPORTED_MODULE_3__.c);var runningWorkers=self.Module.PThread.runningWorkers;runningWorkers.length&&runningWorkers[0].terminate();script_1.parentNode.removeChild(script_1)}};script_1.type="text/javascript";script_1.src=testWorkerPath;self.document.getElementsByTagName("head")[0].appendChild(script_1)}catch(_a){resolve(_webviewer_src_backendTypes__WEBPACK_IMPORTED_MODULE_3__.c)}else resolve(_webviewer_src_backendTypes__WEBPACK_IMPORTED_MODULE_3__.b);
2627
2661
  else resolve(_webviewer_src_backendTypes__WEBPACK_IMPORTED_MODULE_3__.c)}));return defaultBackendPromise}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return getPDFResourcePath});__webpack_require__(0);module=window;module.Core=module.Core||{};var Core=module.Core,getPDFResourcePath=function(){return"".concat(Core.getWorkerPath(),"pdf/")}},function(module,__webpack_exports__,__webpack_require__){module=function(){function XMLParser(xmlstring){if("string"!==
2628
2662
  typeof xmlstring)xmlstring={documentElement:xmlstring};else{var parser=new DOMParser;xmlstring=parser.parseFromString(xmlstring,"text/xml")}this.current=xmlstring.documentElement;this.next=this.current.nextSibling;this.diff=this.depth=0}XMLParser.prototype.__setnext=function(){for(;this.next&&this.next.nodeType!==Node.ELEMENT_NODE;)this.next=this.next.nextSibling};XMLParser.prototype.advance=function(){this.__setnext();return this.next?(this.current=this.next,this.next=this.current.nextSibling,!0):
@@ -2630,41 +2664,76 @@ typeof xmlstring)xmlstring={documentElement:xmlstring};else{var parser=new DOMPa
2630
2664
  XMLParser.prototype.findAttribute=function(attr){return this.current.getAttribute(attr)};XMLParser.prototype.findNamespaceAttribute=function(namespace,name){return this.current.getAttributeNS(namespace,name)};XMLParser.prototype.getCharData=function(){return this.current.textContent};XMLParser.prototype.getElementAttributes=function(){return this.current.attributes};return XMLParser}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){(function(setImmediate){function getLoadCanvasOptions(pageNumber,
2631
2665
  zoom,pageRotation,drawComplete,drawProgressive,canvasNum){var options={getZoom:function(){return 1},getPageRotation:function(){return _util_constants__WEBPACK_IMPORTED_MODULE_2__.b.E_0},finishedLoading:function(){return!0},acquireResources:function(){return!0},resourcesLoaded:function(){return!0},getPageTransform:function(){},drawProgressive:function(){},drawComplete:function(){},onError:function(){}};Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isObject)(pageNumber)?(options=Object.assign(options,
2632
2666
  pageNumber),options.zoom&&(options.getZoom=function(){return options.zoom}),options.pageRotation&&(options.getPageRotation=function(){return options.pageRotation})):options=Object.assign(options,{pageNumber:pageNumber,getZoom:function(){return zoom},getPageRotation:function(){return pageRotation},drawProgressive:drawProgressive||options.drawProgressive,drawComplete:drawComplete||options.drawComplete,canvasNum:canvasNum});return options}__webpack_require__.d(__webpack_exports__,"a",function(){return getLoadCanvasOptions});
2633
- __webpack_require__(55);var lodash__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);var _util_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(52);__webpack_require__(92)}).call(this,__webpack_require__(65).setImmediate)},function(module,__webpack_exports__,__webpack_require__){__webpack_exports__.a=function(src){var params={};decodeURIComponent(src.slice(1)).split("&").forEach(function(val){val=val.split("=",2);params[val[0]]=
2634
- val[1]});return params}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return supportsImageDataConstructor});__webpack_require__(5);__webpack_require__(52);module=__webpack_require__(2);__webpack_require__.n(module);var supportsImageDataConstructor=function(){try{return new ImageData(1,1),!0}catch(e){return!1}}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(94)},function(module,__webpack_exports__,
2635
- __webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__(95)},function(module,__webpack_exports__,__webpack_require__){function _toConsumableArray(arr){var JSCompiler_temp=Array.isArray(arr)?_arrayLikeToArray(arr):void 0;JSCompiler_temp||(JSCompiler_temp="undefined"!==typeof Symbol&&null!=arr[Symbol.iterator]||null!=arr["@@iterator"]?Array.from(arr):void 0);if(!(arr=JSCompiler_temp||_unsupportedIterableToArray(arr)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2636
- return arr}function _slicedToArray(arr,i){var JSCompiler_temp=Array.isArray(arr)?arr:void 0;if(!JSCompiler_temp)if(JSCompiler_temp=null==arr?null:"undefined"!==typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"],null==JSCompiler_temp)JSCompiler_temp=void 0;else{var _arr=[],_n=!0,_d=!1,_s;try{for(JSCompiler_temp=JSCompiler_temp.call(arr);!(_n=(_s=JSCompiler_temp.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0;var _e=err}finally{try{if(!_n&&null!=JSCompiler_temp["return"])JSCompiler_temp["return"]()}finally{if(_d)throw _e;
2637
- }}JSCompiler_temp=_arr}if(!(arr=JSCompiler_temp||_unsupportedIterableToArray(arr,i)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return arr}function _unsupportedIterableToArray(o,minLen){if(o){if("string"===typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);
2638
- if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){if(null==len||len>arr.length)len=arr.length;for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,
2639
- sym).enumerable}));keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}
2640
- function _typeof(obj$jscomp$0){"@babel/helpers - typeof";_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};return _typeof(obj$jscomp$0)}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,
2641
- _throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _defineProperty(obj,key,value){key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value;return obj}
2642
- var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(83);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);var logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_pdf__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(53);__webpack_require__.n(_pdf__WEBPACK_IMPORTED_MODULE_2__);__webpack_require__(134);module=__webpack_require__(84);var _auth_interface_min__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(module),_PDFJSPageView__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(85),
2643
- _PDFJSTextParser__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(86),_PDFJSAnnotations__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(59),_core_src_namespaces_Annotations_Widgets_WidgetFlags__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(36),_core_src_namespaces_Core_Document_documentUtils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(90),_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(8),_changeEvents,exports=window;exports.utils=exports.Core.utils||{};exports.utils.isPdfjs=
2644
- !0;var Annotations=exports.Core.Annotations||{},Actions=exports.Core.Actions||{},isIE11=-1<navigator.userAgent.indexOf("Trident/7.0");module=exports.Core;var PageRotation=module.PageRotation,Bookmark=module.Bookmark,BaseDocument=module.BaseDocument;__webpack_require__=module.Document;var getHashParameter=module.getHashParameter,getCanvasMultiplier=module.getCanvasMultiplier,interfaceInstance,resolveInterface,loadingInstance=!1,awaitInterface=new Promise(function(resolve){resolveInterface=resolve}),
2645
- isAnnotationTracking=!1,changeEvents=(_changeEvents={},_defineProperty(_changeEvents,"annotationChanged","annotationChanged"),_defineProperty(_changeEvents,"fieldChanged","fieldChanged"),_changeEvents),id$jscomp$0=1,loadCanvasMap={},trackAnnotationEvents=function(){var am=window.documentViewer.getAnnotationManager();isAnnotationTracking||(isAnnotationTracking=!0,am.addEventListener(changeEvents.annotationChanged,function(annots,action){var info=2<arguments.length&&void 0!==arguments[2]?arguments[2]:
2646
- {};try{var imported=info.imported;"add"!==action||imported||annots.forEach(function(annot){switch(!0){case "Polygon"===annot.Subject&&"PolygonCloud"===annot.Intent:var _annot$ToolName=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.annotationCreated("PolygonCloud");break;case annot instanceof window.Annotations.StampAnnotation:_annot$ToolName=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.stampAnnotationCreated();break;case !!annot.IT:var customData=annot.getCustomData("trn-behavior-type");
2647
- customData=null!==(_annot$ToolName=annot.ToolName)&&void 0!==_annot$ToolName&&_annot$ToolName.includes("Cloudy")?"Could":customData;_annot$ToolName=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions;var JSCompiler_temp_const=_annot$ToolName.annotationCreated,JSCompiler_temp_const$jscomp$0="".concat;if(customData){var JSCompiler_temp="".concat;customData=customData.charAt(0).toUpperCase()+customData.slice(1);JSCompiler_temp=JSCompiler_temp.call("",customData)}else JSCompiler_temp="";_annot$ToolName=
2648
- JSCompiler_temp_const.call(_annot$ToolName,JSCompiler_temp_const$jscomp$0.call("",JSCompiler_temp).concat(annot.IT));break;case "Note"===annot.Subject||"Sticky Note"===annot.Subject:_annot$ToolName=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions;JSCompiler_temp_const=_annot$ToolName.annotationCreated;JSCompiler_temp_const$jscomp$0=annot.Icon;JSCompiler_temp=annot.popupComment;customData=annot.getCustomData("trn-is-count");_annot$ToolName=JSCompiler_temp_const.call(_annot$ToolName,"Comment"===
2649
- JSCompiler_temp_const$jscomp$0?JSCompiler_temp?"Comment Reply":"Sticky Note Create":customData?"Count Measurement":"Sticky Note");break;default:_annot$ToolName=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.annotationCreated(annot.Subject)}annot.getCustomData("trn-form-field-type")||_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(_annot$ToolName)})}catch(e){}}),am.addEventListener(changeEvents.fieldChanged,function(field){try{var fieldChanged=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.formFieldFilled(field.type);
2650
- _PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(fieldChanged)}catch(e){}}),window.instance.addSearchListener(function(searchValue,options,results){try{var searchEvent=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.searchQuery("DocumentSearch",results.length);_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(searchEvent)}catch(e){}}))},worker;_changeEvents=function(){BaseDocument.apply(this,arguments);this.bookmarks=[];this.pagesById={};this.textCallbacksLookup={};this.docId=
2651
- null;this.scale=1;this._pagesRefCache=Object.create(null);this.destinations=null;this._cancelled=!1;this.disableStreaming=window._disableStreaming;var workerPath=exports.Core.getWorkerPath();this.cMapUrl="".concat(workerPath,"pdfjs/cmaps/");this.cMapPacked=!0;loadingInstance||(loadingInstance=!0,_pdf__WEBPACK_IMPORTED_MODULE_2__.GlobalWorkerOptions.workerSrc="".concat(workerPath,"pdfjs/pdf.worker.js"),worker=new _pdf__WEBPACK_IMPORTED_MODULE_2__.PDFWorker("express-worker"),function(){var _ref=_asyncToGenerator(regeneratorRuntime.mark(function _callee(){var l,
2652
- wvRef,lFunc;return regeneratorRuntime.wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:l="";_context.prev=1;lFunc=(wvRef=window.parent.WebViewer)?wvRef.l:null;l=lFunc(window.frameElement)||"";_context.next=12;break;case 7:return _context.prev=7,_context.t0=_context["catch"](1),_context.next=11,new Promise(function(resolve){window.parent.postMessage("requestl","*");window.addEventListener("message",function onLicenseReceived(e){"object"===_typeof(e.data)&&"responsel"===e.data.type&&
2653
- (resolve(e.data.value),window.removeEventListener("message",onLicenseReceived))})});case 11:l=_context.sent;case 12:return _context.abrupt("return",l);case 13:case "end":return _context.stop()}},_callee,null,[[1,7]])}));return function(){return _ref.apply(this,arguments)}}()().then(function(license){_auth_interface_min__WEBPACK_IMPORTED_MODULE_4___default()(license,"".concat(workerPath,"pdfjs"),!1).then(function(r){interfaceInstance=r["interface"];r.io?_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.suppress():
2654
- (_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.startSession(license,!1),_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.expressLoaded(window.Core.DocumentViewer.prototype.version)));resolveInterface()})["catch"](function(e){Object(logger__WEBPACK_IMPORTED_MODULE_1__.d)(e);throw Error("PDF.js Express could not be loaded");})}))};_changeEvents.prototype=Object.create(BaseDocument.prototype);_changeEvents.prototype.constructor=_changeEvents;
2655
- __webpack_require__.registerDocumentType("pdf",_changeEvents);__webpack_require__.unregisterDocumentType("webviewerServer");__webpack_require__.unregisterDocumentType("xod");__webpack_require__.unregisterDocumentType("office");var fieldManager;Object.assign(_changeEvents.prototype,{getNewAppearanceDocument:function(){return Promise.reject("")},loadAsync:function(){var _loadAsync=_asyncToGenerator(regeneratorRuntime.mark(function _callee2(partRetriever,onDocumentLoaded,options){var me,annotationManager,
2656
- getUserPassword,file,fetchDocument;return regeneratorRuntime.wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return fetchDocument=function(params){var _partRetriever$getCus;params.cMapUrl=me.cMapUrl;params.cMapPacked=me.cMapPacked;params.disableFlattenedAnnotations=getHashParameter("disableFlattenedAnnotations",!1);params.worker=worker;params.disableRange=!1;params.disableStream=me.disableStreaming;params.disableAutoFetch=me.disableStreaming;params.renderFormFields=!1;
2657
- params.httpHeaders=(null===partRetriever||void 0===partRetriever?void 0:null===(_partRetriever$getCus=partRetriever.getCustomHeaders)||void 0===_partRetriever$getCus?void 0:_partRetriever$getCus.call(partRetriever))||{};params=_pdf__WEBPACK_IMPORTED_MODULE_2__.getDocument(params);params.onPassword=function(updateCallback){getUserPassword(updateCallback)};var pageCount;params.promise.then(function(pdf){me.pdfDocument=pdf;me.docId=pdf.fingerprint;pageCount=pdf.numPages;me.pdfDocument.getDestinations().then(function(destinations){me.destinations=
2658
- destinations});var pagesCapability=createPromiseCapability();pagesCapability.promise.then(function(){me.maxViewportZoom=me.calculateMaxViewportZoom();awaitInterface.then(function(){interfaceInstance.dC(onDocumentLoaded,me)})});for(var getPagesLeft=pageCount,_loop=function(pageNum){pdf.getPage(pageNum).then(function(pdfPage){var viewport=pdfPage.getViewport({scale:me.scale});viewport=new _PDFJSPageView__WEBPACK_IMPORTED_MODULE_5__.a({id:pageNum,matrix:me.sanitisePageMatrix(viewport.transform,{w:viewport.width,
2659
- h:viewport.height}),scale:me.scale,defaultViewport:viewport.clone()});viewport.setPdfPage(pdfPage);me.setPage(viewport,pageNum);me.pagesById[pageNum-1]=viewport;me._cachePageRef(pageNum,pdfPage.ref);0===--getPagesLeft&&pagesCapability.resolve()},function(err){Object(logger__WEBPACK_IMPORTED_MODULE_1__.d)(err);0===--getPagesLeft&&pagesCapability.resolve()})},pageNum=1;pageNum<=pageCount;pageNum++)_loop(pageNum);_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.documentLoaded({pageCount:pageCount,
2660
- successfulLoad:!0,fileName:file.url}));trackAnnotationEvents()})["catch"](function(err){onDocumentLoaded(err);if(CustomEvent&&!isIE11)var event=new CustomEvent("loaderror",{detail:err,bubbles:!0,cancelable:!0});else event=document.createEvent("Event"),event.initEvent("loaderror",!0,!0),event.detail=err;window.dispatchEvent(event);_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.documentLoaded({pageCount:pageCount,successfulLoad:!1,fileName:null===
2661
- file||void 0===file?void 0:file.url}))})},me=this,fieldManager=(annotationManager=options.annotationManager)?annotationManager.getFieldManager():null,getUserPassword=options.getPassword,_context2.next=7,partRetriever.getFile();case 7:(file=_context2.sent)&&file.url?fetchDocument({url:file.url}):partRetriever.getFileData(function(source){fetchDocument({data:source})});case 9:case "end":return _context2.stop()}},_callee2,this)}));return function(_x,_x2,_x3){return _loadAsync.apply(this,arguments)}}(),
2662
- loadCanvasAsync:function(options){var me=this,id=id$jscomp$0++;loadCanvasMap[id]={isCancelled:!1};var pageIdx=options.pageNumber-1,multiplier=options.multiplier||getCanvasMultiplier(),pageView=me.pagesById[pageIdx],canvasNum=options.canvasNum,renderRect$jscomp$0=options.renderRect;renderRect$jscomp$0&&(options.renderRect.rect=[renderRect$jscomp$0.x1,renderRect$jscomp$0.y1,renderRect$jscomp$0.x2,renderRect$jscomp$0.y2]);pageView.paintOnCanvas({multiplier:multiplier,canvasNum:canvasNum,options:options}).promise.then(function(result){awaitInterface.then(function(){var drawComplete=
2663
- options.drawComplete;options.drawComplete=function(){delete loadCanvasMap[id];var renderRect=options.renderRect,transform=[1,0,0,1,0,0],rotation=pageView._rotation/90;renderRect&&(transform=pageView.getTransform({rotation:rotation,renderRect:renderRect}));me.drawWatermark(result,pageIdx+1,void 0,rotation,pageView.viewport.scale,transform,!0);result.getContext("2d").scale(multiplier,multiplier);drawComplete(result,pageIdx+1)};interfaceInstance.r(result,options,pageIdx,options.drawComplete,function(){var shouldCancel=
2664
- me._cancelled||loadCanvasMap[id].isCancelled;delete loadCanvasMap[id];return shouldCancel})})},function(err){Object(logger__WEBPACK_IMPORTED_MODULE_1__.d)(err)});return id},cancelLoadCanvas:function(id){loadCanvasMap[id]&&(loadCanvasMap[id].isCancelled=!0)},getBookmarks:function(){var me=this;return me.pdfDocument.getOutline().then(function(outlines){return outlines?outlines.map(function(outline,index){return me._parseOutline(outline,void 0,me.destinations,index)}):[]})},unloadResources:function(){this._cancelled=
2665
- !0},loadThumbnailAsync:function(pageNumber,onLoadThumbnail,name){var highResThumbnail="page"===name;name=this.pagesById[pageNumber-1];var multiplier=getCanvasMultiplier();highResThumbnail=highResThumbnail?2E3:150*multiplier;var zoomVal=name.width>name.height?highResThumbnail/name.width:highResThumbnail/name.height;zoomVal/=multiplier;pageNumber=Object(_core_src_namespaces_Core_Document_documentUtils__WEBPACK_IMPORTED_MODULE_9__.a)({pageNumber:pageNumber,getZoom:function(){return zoomVal},getPageRotation:function(){return PageRotation.E_0},
2666
- drawComplete:function(canvas){onLoadThumbnail(canvas)},drawProgressive:function(){},getPageTransform:function(){},useProgress:!1,pageCanvas:!0});return this.loadCanvasAsync(pageNumber)},getPageCount:function(){return this.pdfDocument.numPages},shouldRequestAnnotations:function(){return!0},getFileData:function(){return this.pdfDocument.getData()},sanitisePageMatrix:function(matrix,currentPage){var tmtx=new exports.Core.XODText.Matrix2D;tmtx.initCoordinates.apply(tmtx,matrix);matrix=this.calculateBoundingBox(tmtx,
2667
- currentPage);tmtx.initCoordinates(1,0,0,-1,-matrix.x1,matrix.y2);return tmtx},loadTextData:function(pageNumber,onComplete){var me=this,pageIndex=pageNumber-1,page=me.getPage(pageNumber);if(page&&null!==page.text)onComplete(page.text);else if(pageIndex in me.textCallbacksLookup)me.textCallbacksLookup[pageIndex].push(onComplete);else{Object(logger__WEBPACK_IMPORTED_MODULE_1__.b)("text","Load text ".concat(pageNumber));me.textCallbacksLookup[pageIndex]=[onComplete];var pdfPageCache=null;me.pdfDocument.getPage(pageNumber).then(function(pdfPage){pdfPageCache=
2667
+ __webpack_require__(58);var lodash__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);var _util_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9);__webpack_require__(106)}).call(this,__webpack_require__(69).setImmediate)},function(module,__webpack_exports__,__webpack_require__){__webpack_exports__.a=function(src){var params={};decodeURIComponent(src.slice(1)).split("&").forEach(function(val){val=val.split("=",2);params[val[0]]=
2668
+ val[1]});return params}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return supportsImageDataConstructor});__webpack_require__(3);__webpack_require__(9);module=__webpack_require__(2);__webpack_require__.n(module);__webpack_require__(107);var supportsImageDataConstructor=function(){try{return new ImageData(1,1),!0}catch(e){return!1}}},function(module,__webpack_exports__,__webpack_require__){function _toConsumableArray(arr){var JSCompiler_temp=
2669
+ Array.isArray(arr)?_arrayLikeToArray(arr):void 0;JSCompiler_temp||(JSCompiler_temp="undefined"!==typeof Symbol&&null!=arr[Symbol.iterator]||null!=arr["@@iterator"]?Array.from(arr):void 0);if(!JSCompiler_temp)a:{if(arr){if("string"===typeof arr){JSCompiler_temp=_arrayLikeToArray(arr,void 0);break a}JSCompiler_temp=Object.prototype.toString.call(arr).slice(8,-1);"Object"===JSCompiler_temp&&arr.constructor&&(JSCompiler_temp=arr.constructor.name);if("Map"===JSCompiler_temp||"Set"===JSCompiler_temp){JSCompiler_temp=
2670
+ Array.from(arr);break a}if("Arguments"===JSCompiler_temp||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(JSCompiler_temp)){JSCompiler_temp=_arrayLikeToArray(arr,void 0);break a}}JSCompiler_temp=void 0}if(!(arr=JSCompiler_temp))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return arr}function _arrayLikeToArray(arr,len){if(null==len||len>arr.length)len=arr.length;for(var i=0,arr2=Array(len);i<
2671
+ len;i++)arr2[i]=arr[i];return arr2}var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);var _Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(27),_util_helpers__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(108),_util_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(9);if(!(module=!Object.defineProperty)){try{Object.defineProperty({},"x",{});var JSCompiler_inline_result=!0}catch(e){JSCompiler_inline_result=
2672
+ !1}module=!JSCompiler_inline_result}module&&(Object.defineProperty=function(o,prop,desc){if(o!==Object(o))throw new TypeError("Object.defineProperty called on non-object");Object.prototype.__defineGetter__&&"get"in desc&&Object.prototype.__defineGetter__.call(o,prop,desc.get);Object.prototype.__defineSetter__&&"set"in desc&&Object.prototype.__defineSetter__.call(o,prop,desc.set);"value"in desc&&(o[prop]=desc.value);return o});"function"!==typeof Object.defineProperties&&(Object.defineProperties=function(o,
2673
+ properties){if(o!==Object(o))throw new TypeError("Object.defineProperties called on non-object");Object.keys(properties).forEach(function(name){Object.prototype.hasOwnProperty.call(properties,name)&&Object.defineProperty(o,name,properties[name])});return o});var textWidthCanvas,annotTypeSubjectMap={arrow:"Arrow",callout:"Callout",caret:"Caret",ellipse:"Ellipse",freehand:"Free Hand",freehandHighlight:"Free Hand Highlight",freetext:"FreeText",highlight:"Highlight",line:"Line",polygon:"Polygon",polyline:"Polyline",
2674
+ rectangle:"Rectangle",redact:"Redaction",signature:"Signature",squiggly:"Squiggly",stamp:"Stamp",stickyNote:"Comment",strikeout:"Strikeout",underline:"Underline",custom:"Custom",fileattachment:"File Attachment","3D":"3D",sound:"Sound"},annotationSubjectHandler=function(type){return annotTypeSubjectMap[type]||"Unknown"},tempCanvas=document.createElement("canvas"),tempCtx=tempCanvas.getContext("2d"),Utilities={LAST_ZOOM:1,getAnnotationSubject:function(type){return annotationSubjectHandler(type)},setAnnotationSubjectHandler:function(func){annotationSubjectHandler=
2675
+ func},determineRequiredPages:function(pageIndex,numPages){var pagesToLoad=[];numPages=Math.min(pageIndex+1,numPages-1);for(pageIndex=Math.max(0,pageIndex-1);pageIndex<=numPages;++pageIndex)pagesToLoad.push(pageIndex);return pagesToLoad.map(function(index){return index+1})},customUnescapeXMLString:function(str){return null===str?"":0<str.length?str.replace(/&[^;]*;/g,function(match){switch(match.charAt(1)){case "q":return'"';case "a":return"&";case "l":return"<";case "g":return">";case "#":return"x"===
2676
+ match.charAt(2)?String.fromCharCode(parseInt(match.substring(3,match.length-1),16)):String.fromCharCode(parseInt(match.substring(2,match.length-1),10))}return match}):""},getDateFromInput:function(value){return!value||value instanceof Date?value:new Date(value)},guidGenerator:function(){var S4=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return"".concat(S4()+S4(),"-").concat(S4(),"-").concat(S4(),"-").concat(S4(),"-").concat(S4()).concat(S4()).concat(S4())},measureText:function(txt,
2677
+ fontSize,fontName,fontWeight){if(!txt||0===txt.length)return{width:0,height:0};var tag=document.getElementById("text-width-tester");"number"===typeof fontSize&&(fontSize+="px");txt=txt.replaceAll("\n","<br>&nbsp;").replaceAll(" ","&nbsp;");var heightOffset=_toConsumableArray(txt).some(function(_char){return 127<_char.charCodeAt(0)})?2:0;if(tag)tag.style.fontFamily=fontName,tag.style.fontSize=fontSize,tag.style.fontWeight=fontWeight,tag.innerHTML=txt;else{var style="display:none;";Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isString)(fontName)&&
2678
+ (style+="font-family:".concat(fontName,";"));Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(fontSize)||(style+="font-size:".concat(fontSize,";"));Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(fontWeight)||(style+="font-weight:".concat(fontWeight,";"));tag=document.createElement("span");tag.id="text-width-tester";tag.cssText=style;tag.innerHTML=txt;document.getElementsByTagName("body")[0].appendChild(tag)}tag.style.display="";txt=tag.getBoundingClientRect();heightOffset={width:Math.floor(txt.width),
2679
+ height:Math.floor(txt.height)+heightOffset};tag.style.display="none";return heightOffset},getTextWidth:function(text,font){var context=(textWidthCanvas||(textWidthCanvas=document.createElement("canvas"))).getContext("2d");context.font=font;return context.measureText(text).width},fitMultilineTextToBox:function(text,textBox,height,getLineHeight){if(textBox){textBox.style.fontSize="".concat(height,"px");text=0;for(var i;text<=height;)i=Math.floor((text+height)/2),textBox.style.overflow="hidden",textBox.offsetHeight,
2680
+ textBox.style.fontSize="".concat(i,"px"),getLineHeight&&(textBox.style.lineHeight=getLineHeight(i)),textBox.style.overflow="auto",textBox.scrollHeight>Math.ceil(textBox.offsetHeight)?height=i-1:text=i+1;textBox.scrollHeight>Math.ceil(textBox.offsetHeight)&&(textBox.style.fontSize="".concat(parseFloat(textBox.style.fontSize)-1,"px"));return parseFloat(textBox.style.fontSize)}return height/2},emulateInputEvent:function(element,callback){_util_helpers__WEBPACK_IMPORTED_MODULE_2__.a?element.addEventListener("change",
2681
+ function(e){callback({change:e.target.value,isFullChange:!0})}):(element.addEventListener("input",function(e){e.change=e.target.value;callback(e)}),"TEXTAREA"!==element.nodeName&&element.addEventListener("keydown",function(e){"Enter"===e.key&&e.target.blur&&"function"===typeof e.target.blur&&e.target.blur()}))},drawArrowHead:function(ctx,arrowEndStartPoint,endPoint,lineThickness){ctx.save();ctx.translate(arrowEndStartPoint.x,arrowEndStartPoint.y);arrowEndStartPoint=_Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__.a.Math.getAngle(arrowEndStartPoint,
2682
+ endPoint);ctx.rotate(arrowEndStartPoint);ctx.moveTo(0,0);arrowEndStartPoint=5*lineThickness+2;lineThickness=Math.cos(.2*Math.PI)*arrowEndStartPoint;arrowEndStartPoint*=Math.sin(.2*Math.PI);ctx.moveTo(lineThickness,-arrowEndStartPoint);ctx.lineTo(0,0);ctx.lineTo(lineThickness,arrowEndStartPoint);ctx.stroke();ctx.restore()},applyMatrixToScalar:function(matrix,scalar){var pt1=matrix.mult({x:0,y:0});scalar=matrix.mult({x:Number(scalar),y:0});matrix=pt1.x-scalar.x;pt1=pt1.y-scalar.y;return Math.sqrt(matrix*
2683
+ matrix+pt1*pt1)},drawCloud:function(annot,ctx,path,isCreating){var isInCreatePhase=Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(isCreating)?0<annot._dropAreaSize:isCreating;ctx.beginPath();isCreating=_Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__.a.Math.clonePolyPath(path);!isInCreatePhase&&_Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__.a.Math.polyPathIsOpen(path)&&(isCreating[isCreating.length]={x:isCreating[0].x,y:isCreating[0].y});if(!(!isInCreatePhase&&2>=isCreating.length||isInCreatePhase&&
2684
+ 1>=isCreating.length)){var intensity=annot.Intensity;intensity&&"number"===typeof intensity||(intensity=2);var prettyMuchZero=1/8092,sweepDirection=_Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__.a.Math.getPolyWrapDirection(isCreating);path=1!==Math.round(sweepDirection);var edgeAngle=0,maxCloudSize=6.5*intensity,firstPos=isCreating[0],lastCloudSize=maxCloudSize,firstCloudSize=maxCloudSize,firstEdge={x:isCreating[1].x-isCreating[0].x,y:isCreating[1].y-isCreating[0].y},lastEdge={x:isCreating[0].x-
2685
+ isCreating[isCreating.length-2].x,y:isCreating[0].y-isCreating[isCreating.length-2].y};intensity=!0;for(var hasFirstPoint=!1,firstEdgeCloudSize=0,firstEdgeDirection,startX,startY,i=0;i<isCreating.length-1;++i){var pos=isCreating[i],nextPos=isCreating[i+1],edge={x:nextPos.x-pos.x,y:nextPos.y-pos.y},length=Math.sqrt(edge.x*edge.x+edge.y*edge.y);if(!(length<=prettyMuchZero)){nextPos={x:edge.x/length,y:edge.y/length};var numClouds=Math.max(Math.floor(length/maxCloudSize),1),cloudSize=length/numClouds;
2686
+ edgeAngle=_Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__.a.Math.getAngleFromCoordinates(nextPos.x,nextPos.y);if(!isInCreatePhase&&0===i&&3>=isCreating.length){var firstEdgeLength=Math.sqrt(firstEdge.x*firstEdge.x+firstEdge.y*firstEdge.y);if(firstEdgeLength<maxCloudSize){ctx.arc(isCreating[0].x,isCreating[0].y,firstEdgeLength,0,2*Math.PI);return}if(firstEdgeLength<2*cloudSize){firstEdgeDirection=firstEdgeLength/2;ctx.arc(isCreating[0].x,isCreating[0].y,firstEdgeDirection,0,2*Math.PI);ctx.moveTo(isCreating[1].x+
2687
+ firstEdgeDirection,isCreating[1].y);ctx.arc(isCreating[1].x,isCreating[1].y,firstEdgeDirection,0,2*Math.PI);ctx.moveTo(isCreating[0].x+firstEdgeDirection,isCreating[0].y);return}ctx.arc(isCreating[0].x,isCreating[0].y,cloudSize/2,0,2*Math.PI);ctx.moveTo(isCreating[1].x+cloudSize/2,isCreating[1].y);ctx.arc(isCreating[1].x,isCreating[1].y,cloudSize/2,0,2*Math.PI);ctx.moveTo(isCreating[0].x+cloudSize/2,isCreating[0].y)}isInCreatePhase&&0===i&&(firstEdgeLength=.25*(lastCloudSize+cloudSize),Utilities.arcTo(isCreating[0].x-
2688
+ nextPos.x*cloudSize*.5,isCreating[0].y-nextPos.y*cloudSize*.5,ctx,firstEdgeLength,firstEdgeLength,edgeAngle,!1,path,isCreating[0].x+nextPos.x*cloudSize*.5,isCreating[0].y+nextPos.y*cloudSize*.5));0===i&&(firstEdgeCloudSize=cloudSize,firstEdgeDirection={x:nextPos.x,y:nextPos.y});pos.x-=nextPos.x*cloudSize*.5;pos.y-=nextPos.y*cloudSize*.5;firstEdgeLength=_Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__.a.Math.crossProduct(lastEdge,edge);var c=0;hasFirstPoint||(++c,firstCloudSize=cloudSize,intensity=
2689
+ 0>firstEdgeLength*sweepDirection,pos.x+=nextPos.x*cloudSize,pos.y+=nextPos.y*cloudSize,firstPos=pos,ctx.moveTo(firstPos.x,firstPos.y),startX=firstPos.x,startY=firstPos.y,hasFirstPoint=!0);if(!annot.ArcDrawMode||annot.ArcDrawMode===_util_constants__WEBPACK_IMPORTED_MODULE_3__.d.EQUAL_ARCS){for(lastCloudSize=.25*(lastCloudSize+cloudSize);c<numClouds;++c)pos.x+=nextPos.x*cloudSize,pos.y+=nextPos.y*cloudSize,startY=Utilities.arcTo(startX,startY,ctx,lastCloudSize,lastCloudSize,edgeAngle,0===c&&0>firstEdgeLength*
2690
+ sweepDirection,path,pos.x,pos.y),startX=startY.startX,startY=startY.startY;lastEdge=edge;lastCloudSize=cloudSize}else if(annot.ArcDrawMode===_util_constants__WEBPACK_IMPORTED_MODULE_3__.d.RANDOM_ARCS)for(edge=length-lastCloudSize,numClouds=_Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__.a.Math.createPseudoRandomNumberGenerator(annot.Id);0<edge;)cloudSize=Math.max(20*numClouds(),1),pos.x+=2*nextPos.x*cloudSize,pos.y+=2*nextPos.y*cloudSize,startY=Utilities.arcTo(startX,startY,ctx,cloudSize,cloudSize,
2691
+ edgeAngle,!1,path,pos.x,pos.y),startX=startY.startX,startY=startY.startY,edge-=2*cloudSize}}hasFirstPoint||(ctx.moveTo(firstPos.x,firstPos.y),startX=firstPos.x,startY=firstPos.y);firstEdgeDirection&&!isInCreatePhase&&(annot=.25*(firstCloudSize+lastCloudSize),Utilities.arcTo(startX,startY,ctx,annot,annot,edgeAngle,intensity,path,isCreating[isCreating.length-1].x+.5*firstEdgeCloudSize*firstEdgeDirection.x,isCreating[isCreating.length-1].y+.5*firstEdgeCloudSize*firstEdgeDirection.y))}},arcTo:function(startX,
2692
+ startY,ctx,xr,yr,rx,isLargeArc,sweep,endX,endY){var outPoints=[],outOperations=[];_Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__.a.Math.arcToCurves(startX,startY,outPoints,outOperations,xr,yr,rx,isLargeArc,sweep,endX,endY);for(yr=xr=0;yr<outOperations.length;++yr)"c"===outOperations[yr]?(ctx.bezierCurveTo(outPoints[xr],outPoints[xr+1],outPoints[xr+2],outPoints[xr+3],outPoints[xr+4],outPoints[xr+5]),startX=outPoints[xr+4],startY=outPoints[xr+5],xr+=6):(ctx.lineTo(outPoints[xr],outPoints[xr+1]),
2693
+ startX=outPoints[xr],startY=outPoints[xr+1],xr+=2);return{startX:startX,startY:startY}},BlendMode:{padding:1,getPageCanvas:function(annot,options){if(options.overridePageCanvas)return options.overridePageCanvas;annot=annot.PageNumber;options=document.querySelector(".canvas".concat(annot));options||(options=document.getElementById("hrthumb".concat(annot)))&&(options.isHrThumb=!0);return options},getUnrotatedPageCanvas:function(pageCanvas,options){options=options.completeRotation;if(options===_util_constants__WEBPACK_IMPORTED_MODULE_3__.b.E_0)return pageCanvas;
2694
+ var unrotatedWidth=0===options%2?pageCanvas.width:pageCanvas.height,unrotatedHeight=0===options%2?pageCanvas.height:pageCanvas.width;if(!pageCanvas.isHrThumb){tempCanvas.width=unrotatedWidth;tempCanvas.height=unrotatedHeight;switch(options){case _util_constants__WEBPACK_IMPORTED_MODULE_3__.b.E_90:tempCtx.rotate(-Math.PI/2);tempCtx.translate(-tempCanvas.height,0);break;case _util_constants__WEBPACK_IMPORTED_MODULE_3__.b.E_180:tempCtx.rotate(Math.PI);tempCtx.translate(-tempCanvas.width,-tempCanvas.height);
2695
+ break;case _util_constants__WEBPACK_IMPORTED_MODULE_3__.b.E_270:tempCtx.rotate(Math.PI/2),tempCtx.translate(0,-tempCanvas.width)}options!==_util_constants__WEBPACK_IMPORTED_MODULE_3__.b.E_0&&(tempCtx.drawImage(pageCanvas,0,0),pageCanvas=tempCanvas)}return pageCanvas},getSourceCanvasDimension:function(pageCanvas,location,options){var pageInfo=options.pageInfo,zoom=options.zoom||1,completeRotation=options.completeRotation,docPageRotation=options.documentRotation;options=location.X;var yPoint=location.Y,
2696
+ width=location.Width||1;location=location.Height||1;var topOffset=parseFloat(pageCanvas.style.top)||pageCanvas.topOffset||0,leftOffset=parseFloat(pageCanvas.style.left)||pageCanvas.leftOffset||0,pageCanvasWidth=pageCanvas.style.width?parseFloat(pageCanvas.style.width):pageCanvas.width,scalingFactor=pageCanvas.width/pageCanvasWidth;"IMG"===pageCanvas.nodeName&&(scalingFactor=pageCanvas.naturalWidth/pageInfo.width);zoom*=scalingFactor;pageCanvasWidth=this.padding*zoom;var topPadding=this.padding*zoom,
2697
+ pageWidth=pageInfo.width,pageHeight=pageInfo.height;0!==docPageRotation%2&&(pageHeight=pageInfo.width,pageWidth=pageInfo.height);if(!pageCanvas.isHrThumb)switch(pageInfo=0===completeRotation%2?pageCanvas.width:pageCanvas.height,pageCanvas=0===completeRotation%2?pageCanvas.height:pageCanvas.width,leftOffset*=scalingFactor,topOffset*=scalingFactor,pageWidth*=zoom,pageHeight*=zoom,completeRotation){case _util_constants__WEBPACK_IMPORTED_MODULE_3__.b.E_90:completeRotation=topOffset;topOffset=pageHeight-
2698
+ pageCanvas-leftOffset;leftOffset=completeRotation;break;case _util_constants__WEBPACK_IMPORTED_MODULE_3__.b.E_180:leftOffset=pageWidth-pageInfo-leftOffset;topOffset=pageHeight-pageCanvas-topOffset;break;case _util_constants__WEBPACK_IMPORTED_MODULE_3__.b.E_270:completeRotation=leftOffset,leftOffset=pageWidth-pageInfo-topOffset,topOffset=completeRotation}return{X:options*zoom-leftOffset-pageCanvasWidth,Y:yPoint*zoom-topOffset-topPadding,Width:width*zoom+2*pageCanvasWidth,Height:location*zoom+2*topPadding}},
2699
+ getDestinationCanvasDimension:function(annotDimensions){return{X:annotDimensions.X-this.padding,Y:annotDimensions.Y-this.padding,Width:(annotDimensions.Width||1)+2*this.padding,Height:(annotDimensions.Height||1)+2*this.padding}},drawPageCanvas:function(ctx,options,pageCanvas,annot){var unrotatedCanvas=this.getUnrotatedPageCanvas(pageCanvas,options);ctx.globalCompositeOperation="destination-over";var locationsToDraw=[],self=this;annot.Quads?annot.Quads.forEach(function(quad){var minX=Math.min(quad.x1,
2700
+ quad.x2,quad.x3,quad.x4),minY=Math.min(quad.y1,quad.y2,quad.y3,quad.y4);locationsToDraw.push({X:minX,Y:minY,Width:Math.max(quad.x1,quad.x2,quad.x3,quad.x4)-minX,Height:Math.max(quad.y1,quad.y2,quad.y3,quad.y4)-minY})}):locationsToDraw.push(annot);locationsToDraw.forEach(function(location){var sourceDimension=self.getSourceCanvasDimension(pageCanvas,location,options);location=self.getDestinationCanvasDimension(location);ctx.imageSmoothingEnabled=!1;ctx.drawImage(unrotatedCanvas,sourceDimension.X,sourceDimension.Y,
2701
+ sourceDimension.Width,sourceDimension.Height,location.X,location.Y,location.Width,location.Height)})},drawWithBlendMode:function(annot,ctx,pageMatrix,options){var pageCanvas=this.getPageCanvas(annot,options);pageCanvas&&(ctx.save(),this.drawPageCanvas(ctx,options,pageCanvas,annot),ctx.restore());ctx.globalCompositeOperation=annot.BlendMode;annot.draw(ctx,pageMatrix,options)},isBlendModeSupported:function(blendMode){if(!blendMode)return!1;var currentBlendMode=tempCtx.globalCompositeOperation;tempCtx.globalCompositeOperation=
2702
+ blendMode;blendMode=tempCtx.globalCompositeOperation===blendMode;tempCtx.globalCompositeOperation=currentBlendMode;return blendMode}}};(function(exports){exports.Annotations=exports.Annotations||{};exports=exports.Annotations;exports.Utilities=Utilities;return exports.Utilities})(window);__webpack_exports__.a=Utilities},function(module,__webpack_exports__,__webpack_require__){__webpack_require__(87);var _browserHelper__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8);__webpack_require__.d(__webpack_exports__,
2703
+ "a",function(){return _browserHelper__WEBPACK_IMPORTED_MODULE_1__.b});__webpack_require__(88);__webpack_require__(89);__webpack_require__(96)},function(module,exports,__webpack_require__){module.exports=__webpack_require__(110)},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__(111)},function(module,__webpack_exports__,__webpack_require__){function _toConsumableArray(arr){var JSCompiler_temp=Array.isArray(arr)?_arrayLikeToArray(arr):
2704
+ void 0;JSCompiler_temp||(JSCompiler_temp="undefined"!==typeof Symbol&&null!=arr[Symbol.iterator]||null!=arr["@@iterator"]?Array.from(arr):void 0);if(!(arr=JSCompiler_temp||_unsupportedIterableToArray(arr)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return arr}function _slicedToArray(arr,i){var JSCompiler_temp=Array.isArray(arr)?arr:void 0;if(!JSCompiler_temp)if(JSCompiler_temp=null==arr?
2705
+ null:"undefined"!==typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"],null==JSCompiler_temp)JSCompiler_temp=void 0;else{var _arr=[],_n=!0,_d=!1,_s;try{for(JSCompiler_temp=JSCompiler_temp.call(arr);!(_n=(_s=JSCompiler_temp.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0;var _e=err}finally{try{if(!_n&&null!=JSCompiler_temp["return"])JSCompiler_temp["return"]()}finally{if(_d)throw _e;}}JSCompiler_temp=_arr}if(!(arr=JSCompiler_temp||_unsupportedIterableToArray(arr,
2706
+ i)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return arr}function _unsupportedIterableToArray(o,minLen){if(o){if("string"===typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,
2707
+ minLen)}}function _arrayLikeToArray(arr,len){if(null==len||len>arr.length)len=arr.length;for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}));keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=
2708
+ 1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _typeof(obj$jscomp$0){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&
2709
+ "symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj$jscomp$0)}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;
2710
+ return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _defineProperty(obj,key,value){key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value;return obj}var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(97);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
2711
+ var logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_pdf__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(57);__webpack_require__.n(_pdf__WEBPACK_IMPORTED_MODULE_2__);__webpack_require__(150);module=__webpack_require__(98);var _auth_interface_min__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(module),_PDFJSPageView__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(99),_PDFJSTextParser__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(100),_PDFJSAnnotations__WEBPACK_IMPORTED_MODULE_7__=
2712
+ __webpack_require__(62),_core_src_namespaces_Annotations_Widgets_WidgetFlags__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(40),_core_src_namespaces_Core_Document_documentUtils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(104),_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(11),_changeEvents,exports=window;exports.utils=exports.Core.utils||{};exports.utils.isPdfjs=!0;var Annotations=exports.Core.Annotations||{},Actions=exports.Core.Actions||{},isIE11=-1<navigator.userAgent.indexOf("Trident/7.0");
2713
+ module=exports.Core;var PageRotation=module.PageRotation,Bookmark=module.Bookmark,BaseDocument=module.BaseDocument;__webpack_require__=module.Document;var getHashParameter=module.getHashParameter,getCanvasMultiplier=module.getCanvasMultiplier,interfaceInstance,resolveInterface,loadingInstance=!1,awaitInterface=new Promise(function(resolve){resolveInterface=resolve}),isAnnotationTracking=!1,changeEvents=(_changeEvents={},_defineProperty(_changeEvents,"annotationChanged","annotationChanged"),_defineProperty(_changeEvents,
2714
+ "fieldChanged","fieldChanged"),_changeEvents),id$jscomp$0=1,loadCanvasMap={},trackAnnotationEvents=function(){var am=window.documentViewer.getAnnotationManager();isAnnotationTracking||(isAnnotationTracking=!0,am.addEventListener(changeEvents.annotationChanged,function(annots,action){var info=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};try{var imported=info.imported;"add"!==action||imported||annots.forEach(function(annot){switch(!0){case "Polygon"===annot.Subject&&"PolygonCloud"===annot.Intent:var _annot$ToolName=
2715
+ _PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.annotationCreated("PolygonCloud");break;case annot instanceof window.Annotations.StampAnnotation:_annot$ToolName=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.stampAnnotationCreated();break;case !!annot.IT:var customData=annot.getCustomData("trn-behavior-type");customData=null!==(_annot$ToolName=annot.ToolName)&&void 0!==_annot$ToolName&&_annot$ToolName.includes("Cloudy")?"Could":customData;_annot$ToolName=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions;
2716
+ var JSCompiler_temp_const=_annot$ToolName.annotationCreated,JSCompiler_temp_const$jscomp$0="".concat;if(customData){var JSCompiler_temp="".concat;customData=customData.charAt(0).toUpperCase()+customData.slice(1);JSCompiler_temp=JSCompiler_temp.call("",customData)}else JSCompiler_temp="";_annot$ToolName=JSCompiler_temp_const.call(_annot$ToolName,JSCompiler_temp_const$jscomp$0.call("",JSCompiler_temp).concat(annot.IT));break;case "Note"===annot.Subject||"Sticky Note"===annot.Subject:_annot$ToolName=
2717
+ _PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions;JSCompiler_temp_const=_annot$ToolName.annotationCreated;JSCompiler_temp_const$jscomp$0=annot.Icon;JSCompiler_temp=annot.popupComment;customData=annot.getCustomData("trn-is-count");_annot$ToolName=JSCompiler_temp_const.call(_annot$ToolName,"Comment"===JSCompiler_temp_const$jscomp$0?JSCompiler_temp?"Comment Reply":"Sticky Note Create":customData?"Count Measurement":"Sticky Note");break;default:_annot$ToolName=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.annotationCreated(annot.Subject)}annot.getCustomData("trn-form-field-type")||
2718
+ _PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(_annot$ToolName)})}catch(e){}}),am.addEventListener(changeEvents.fieldChanged,function(field){try{var fieldChanged=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.formFieldFilled(field.type);_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(fieldChanged)}catch(e){}}),window.instance&&window.instance.addSearchListener(function(searchValue,options,results){try{var searchEvent=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.searchQuery("DocumentSearch",
2719
+ results.length);_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(searchEvent)}catch(e){}}))},worker;_changeEvents=function(){BaseDocument.apply(this,arguments);this.bookmarks=[];this.pagesById={};this.textCallbacksLookup={};this.docId=null;this.scale=1;this._pagesRefCache=Object.create(null);this.destinations=null;this._cancelled=!1;this.disableStreaming=window._disableStreaming;var workerPath=exports.Core.getWorkerPath();this.cMapUrl="".concat(workerPath,"pdfjs/cmaps/");this.cMapPacked=
2720
+ !0;loadingInstance||(loadingInstance=!0,_pdf__WEBPACK_IMPORTED_MODULE_2__.GlobalWorkerOptions.workerSrc="".concat(workerPath,"pdfjs/pdf.worker.js"),worker=new _pdf__WEBPACK_IMPORTED_MODULE_2__.PDFWorker("express-worker"),function(){var _ref=_asyncToGenerator(regeneratorRuntime.mark(function _callee(){var l,wvRef,lFunc;return regeneratorRuntime.wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:l="";_context.prev=1;lFunc=(wvRef=window.parent.WebViewer)?wvRef.l:null;l=lFunc(window.frameElement)||
2721
+ "";_context.next=12;break;case 7:return _context.prev=7,_context.t0=_context["catch"](1),_context.next=11,new Promise(function(resolve){window.parent.postMessage("requestl","*");window.addEventListener("message",function onLicenseReceived(e){"object"===_typeof(e.data)&&"responsel"===e.data.type&&(resolve(e.data.value),window.removeEventListener("message",onLicenseReceived))})});case 11:l=_context.sent;case 12:return _context.abrupt("return",l);case 13:case "end":return _context.stop()}},_callee,null,
2722
+ [[1,7]])}));return function(){return _ref.apply(this,arguments)}}()().then(function(license){_auth_interface_min__WEBPACK_IMPORTED_MODULE_4___default()(license,"".concat(workerPath,"pdfjs"),!1).then(function(r){interfaceInstance=r["interface"];r.io?_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.suppress():(_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.startSession(license,!1),_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.expressLoaded(window.Core.DocumentViewer.prototype.version)));
2723
+ resolveInterface()})["catch"](function(e){Object(logger__WEBPACK_IMPORTED_MODULE_1__.d)(e);throw Error("PDF.js Express could not be loaded");})}))};_changeEvents.prototype=Object.create(BaseDocument.prototype);_changeEvents.prototype.constructor=_changeEvents;__webpack_require__.registerDocumentType("pdf",_changeEvents);__webpack_require__.unregisterDocumentType("webviewerServer");__webpack_require__.unregisterDocumentType("xod");__webpack_require__.unregisterDocumentType("office");var fieldManager;
2724
+ Object.assign(_changeEvents.prototype,{getNewAppearanceDocument:function(){return Promise.reject("")},loadAsync:function(){var _loadAsync=_asyncToGenerator(regeneratorRuntime.mark(function _callee2(partRetriever,onDocumentLoaded,options){var me,annotationManager,getUserPassword,file,fetchDocument;return regeneratorRuntime.wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return fetchDocument=function(params){var _partRetriever$getCus;params.cMapUrl=me.cMapUrl;params.cMapPacked=
2725
+ me.cMapPacked;params.disableFlattenedAnnotations=getHashParameter("disableFlattenedAnnotations",!1);params.worker=worker;params.disableRange=!1;params.disableStream=me.disableStreaming;params.disableAutoFetch=me.disableStreaming;params.renderFormFields=!1;params.httpHeaders=(null===partRetriever||void 0===partRetriever?void 0:null===(_partRetriever$getCus=partRetriever.getCustomHeaders)||void 0===_partRetriever$getCus?void 0:_partRetriever$getCus.call(partRetriever))||{};params=_pdf__WEBPACK_IMPORTED_MODULE_2__.getDocument(params);
2726
+ params.onPassword=function(updateCallback){getUserPassword(updateCallback)};var pageCount;params.promise.then(function(pdf){me.pdfDocument=pdf;me.docId=pdf.fingerprint;pageCount=pdf.numPages;me.pdfDocument.getDestinations().then(function(destinations){me.destinations=destinations});var pagesCapability=createPromiseCapability();pagesCapability.promise.then(function(){me.maxViewportZoom=me.calculateMaxViewportZoom();awaitInterface.then(function(){interfaceInstance.dC(onDocumentLoaded,me)})});for(var getPagesLeft=
2727
+ pageCount,_loop=function(pageNum){pdf.getPage(pageNum).then(function(pdfPage){var viewport=pdfPage.getViewport({scale:me.scale});viewport=new _PDFJSPageView__WEBPACK_IMPORTED_MODULE_5__.a({id:pageNum,matrix:me.sanitisePageMatrix(viewport.transform,{w:viewport.width,h:viewport.height}),scale:me.scale,defaultViewport:viewport.clone()});viewport.setPdfPage(pdfPage);me.setPage(viewport,pageNum);me.pagesById[pageNum-1]=viewport;me._cachePageRef(pageNum,pdfPage.ref);0===--getPagesLeft&&pagesCapability.resolve()},
2728
+ function(err){Object(logger__WEBPACK_IMPORTED_MODULE_1__.d)(err);0===--getPagesLeft&&pagesCapability.resolve()})},pageNum=1;pageNum<=pageCount;pageNum++)_loop(pageNum);_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.documentLoaded({pageCount:pageCount,successfulLoad:!0,fileName:file.url}));trackAnnotationEvents()})["catch"](function(err){onDocumentLoaded(err);if(CustomEvent&&!isIE11)var event=new CustomEvent("loaderror",{detail:err,
2729
+ bubbles:!0,cancelable:!0});else event=document.createEvent("Event"),event.initEvent("loaderror",!0,!0),event.detail=err;window.dispatchEvent(event);_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.documentLoaded({pageCount:pageCount,successfulLoad:!1,fileName:null===file||void 0===file?void 0:file.url}))})},me=this,fieldManager=(annotationManager=options.annotationManager)?annotationManager.getFieldManager():null,getUserPassword=options.getPassword,
2730
+ _context2.next=7,partRetriever.getFile();case 7:(file=_context2.sent)&&file.url?fetchDocument({url:file.url}):partRetriever.getFileData(function(source){fetchDocument({data:source})});case 9:case "end":return _context2.stop()}},_callee2,this)}));return function(_x,_x2,_x3){return _loadAsync.apply(this,arguments)}}(),loadCanvasAsync:function(options){var me=this,id=id$jscomp$0++;loadCanvasMap[id]={isCancelled:!1};var pageIdx=options.pageNumber-1,multiplier=options.multiplier||getCanvasMultiplier(),
2731
+ pageView=me.pagesById[pageIdx],canvasNum=options.canvasNum,renderRect$jscomp$0=options.renderRect;renderRect$jscomp$0&&(options.renderRect.rect=[renderRect$jscomp$0.x1,renderRect$jscomp$0.y1,renderRect$jscomp$0.x2,renderRect$jscomp$0.y2]);pageView.paintOnCanvas({multiplier:multiplier,canvasNum:canvasNum,options:options}).promise.then(function(result){awaitInterface.then(function(){var drawComplete=options.drawComplete;options.drawComplete=function(){delete loadCanvasMap[id];var renderRect=options.renderRect,
2732
+ transform=[1,0,0,1,0,0],rotation=pageView._rotation/90;renderRect&&(transform=pageView.getTransform({rotation:rotation,renderRect:renderRect}));me.drawWatermark(result,pageIdx+1,void 0,rotation,pageView.viewport.scale,transform,!0);result.getContext("2d").scale(multiplier,multiplier);drawComplete(result,pageIdx+1)};interfaceInstance.r(result,options,pageIdx,options.drawComplete,function(){var shouldCancel=me._cancelled||loadCanvasMap[id].isCancelled;delete loadCanvasMap[id];return shouldCancel})})},
2733
+ function(err){Object(logger__WEBPACK_IMPORTED_MODULE_1__.d)(err)});return id},cancelLoadCanvas:function(id){loadCanvasMap[id]&&(loadCanvasMap[id].isCancelled=!0)},getBookmarks:function(){var me=this;return me.pdfDocument.getOutline().then(function(outlines){return outlines?outlines.map(function(outline,index){return me._parseOutline(outline,void 0,me.destinations,index)}):[]})},unloadResources:function(){this._cancelled=!0},loadThumbnailAsync:function(pageNumber,onLoadThumbnail,name){var highResThumbnail=
2734
+ "page"===name;name=this.pagesById[pageNumber-1];var multiplier=getCanvasMultiplier();highResThumbnail=highResThumbnail?2E3:150*multiplier;var zoomVal=name.width>name.height?highResThumbnail/name.width:highResThumbnail/name.height;zoomVal/=multiplier;pageNumber=Object(_core_src_namespaces_Core_Document_documentUtils__WEBPACK_IMPORTED_MODULE_9__.a)({pageNumber:pageNumber,getZoom:function(){return zoomVal},getPageRotation:function(){return PageRotation.E_0},drawComplete:function(canvas){onLoadThumbnail(canvas)},
2735
+ drawProgressive:function(){},getPageTransform:function(){},useProgress:!1,pageCanvas:!0});return this.loadCanvasAsync(pageNumber)},getPageCount:function(){return this.pdfDocument.numPages},shouldRequestAnnotations:function(){return!0},getFileData:function(){return this.pdfDocument.getData()},sanitisePageMatrix:function(matrix,currentPage){var tmtx=new exports.Core.XODText.Matrix2D;tmtx.initCoordinates.apply(tmtx,matrix);matrix=this.calculateBoundingBox(tmtx,currentPage);tmtx.initCoordinates(1,0,0,
2736
+ -1,-matrix.x1,matrix.y2);return tmtx},loadTextData:function(pageNumber,onComplete){var me=this,pageIndex=pageNumber-1,page=me.getPage(pageNumber);if(page&&null!==page.text)onComplete(page.text);else if(pageIndex in me.textCallbacksLookup)me.textCallbacksLookup[pageIndex].push(onComplete);else{Object(logger__WEBPACK_IMPORTED_MODULE_1__.b)("text","Load text ".concat(pageNumber));me.textCallbacksLookup[pageIndex]=[onComplete];var pdfPageCache=null;me.pdfDocument.getPage(pageNumber).then(function(pdfPage){pdfPageCache=
2668
2737
  pdfPage;return pdfPage.getOperatorList().then(function(){return pdfPage.getTextContent({normalizeWhitespace:!0,combineTextItems:!0})})}).then(function(textContent){textContent&&0===textContent.items.length?(me.textCallbacksLookup[pageIndex].forEach(function(completeCB){Object(logger__WEBPACK_IMPORTED_MODULE_1__.b)("text","Callback ".concat(pageIndex));completeCB(new exports.Core.XODText.SelectionInfo)}),delete me.textCallbacksLookup[pageIndex]):me._parseFontData(pdfPageCache.commonObjs._objs,function(err,
2669
2738
  fonts){if(err)Object(logger__WEBPACK_IMPORTED_MODULE_1__.d)(err);else{err=me._parseTextData(pageIndex,textContent,fonts);Object(logger__WEBPACK_IMPORTED_MODULE_1__.b)("loadTextData for page ".concat(pageNumber));var selInfo=new exports.Core.XODText.SelectionInfo;selInfo.parseFromOld({m_Struct:err.struct,m_Str:err.str,m_Offsets:err.offsets,m_Quads:err.quads,m_Ready:!0});me.getPage(pageNumber).text=selInfo;me.textCallbacksLookup[pageIndex].forEach(function(completeCB){Object(logger__WEBPACK_IMPORTED_MODULE_1__.b)("text",
2670
2739
  "Callback ".concat(pageIndex));completeCB(selInfo)});delete me.textCallbacksLookup[pageIndex]}})})}},getDestinations:function(){var _getDestinations=_asyncToGenerator(regeneratorRuntime.mark(function _callee3(){return regeneratorRuntime.wrap(function(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:return _context3.abrupt("return",this.pdfDocument.getDestinations());case 1:case "end":return _context3.stop()}},_callee3,this)}));return function(){return _getDestinations.apply(this,arguments)}}(),
@@ -2709,8 +2778,8 @@ opts,binding.UNZIP)}function isValidFlushFlag(flag){return flag===binding.Z_NO_F
2709
2778
  opts.finishFlush);this._flushFlag=opts.flush||binding.Z_NO_FLUSH;this._finishFlushFlag="undefined"!==typeof opts.finishFlush?opts.finishFlush:binding.Z_FINISH;if(opts.chunkSize&&(opts.chunkSize<exports.Z_MIN_CHUNK||opts.chunkSize>exports.Z_MAX_CHUNK))throw Error("Invalid chunk size: "+opts.chunkSize);if(opts.windowBits&&(opts.windowBits<exports.Z_MIN_WINDOWBITS||opts.windowBits>exports.Z_MAX_WINDOWBITS))throw Error("Invalid windowBits: "+opts.windowBits);if(opts.level&&(opts.level<exports.Z_MIN_LEVEL||
2710
2779
  opts.level>exports.Z_MAX_LEVEL))throw Error("Invalid compression level: "+opts.level);if(opts.memLevel&&(opts.memLevel<exports.Z_MIN_MEMLEVEL||opts.memLevel>exports.Z_MAX_MEMLEVEL))throw Error("Invalid memLevel: "+opts.memLevel);if(opts.strategy&&opts.strategy!=exports.Z_FILTERED&&opts.strategy!=exports.Z_HUFFMAN_ONLY&&opts.strategy!=exports.Z_RLE&&opts.strategy!=exports.Z_FIXED&&opts.strategy!=exports.Z_DEFAULT_STRATEGY)throw Error("Invalid strategy: "+opts.strategy);if(opts.dictionary&&!Buffer.isBuffer(opts.dictionary))throw Error("Invalid dictionary: it should be a Buffer instance");
2711
2780
  this._handle=new binding.Zlib(mode);var self=this;this._hadError=!1;this._handle.onerror=function(message,errno){_close(self);self._hadError=!0;message=Error(message);message.errno=errno;message.code=exports.codes[errno];self.emit("error",message)};mode=exports.Z_DEFAULT_COMPRESSION;"number"===typeof opts.level&&(mode=opts.level);var strategy=exports.Z_DEFAULT_STRATEGY;"number"===typeof opts.strategy&&(strategy=opts.strategy);this._handle.init(opts.windowBits||exports.Z_DEFAULT_WINDOWBITS,mode,opts.memLevel||
2712
- exports.Z_DEFAULT_MEMLEVEL,strategy,opts.dictionary);this._buffer=Buffer.allocUnsafe(this._chunkSize);this._offset=0;this._level=mode;this._strategy=strategy;this.once("end",this.close);Object.defineProperty(this,"_closed",{get:function(){return!_this._handle},configurable:!0,enumerable:!0})}function _close(engine,callback){callback&&process.nextTick(callback);engine._handle&&(engine._handle.close(),engine._handle=null)}function emitCloseNT(self){self.emit("close")}var Buffer=__webpack_require__(20).Buffer,
2713
- Transform=__webpack_require__(99).Transform,binding=__webpack_require__(111),util=__webpack_require__(69),assert=__webpack_require__(68).ok,kMaxLength=__webpack_require__(20).kMaxLength,kRangeErrorMessage="Cannot create final Buffer. It would be larger than 0x"+kMaxLength.toString(16)+" bytes";binding.Z_MIN_WINDOWBITS=8;binding.Z_MAX_WINDOWBITS=15;binding.Z_DEFAULT_WINDOWBITS=15;binding.Z_MIN_CHUNK=64;binding.Z_MAX_CHUNK=Infinity;binding.Z_DEFAULT_CHUNK=16384;binding.Z_MIN_MEMLEVEL=1;binding.Z_MAX_MEMLEVEL=
2781
+ exports.Z_DEFAULT_MEMLEVEL,strategy,opts.dictionary);this._buffer=Buffer.allocUnsafe(this._chunkSize);this._offset=0;this._level=mode;this._strategy=strategy;this.once("end",this.close);Object.defineProperty(this,"_closed",{get:function(){return!_this._handle},configurable:!0,enumerable:!0})}function _close(engine,callback){callback&&process.nextTick(callback);engine._handle&&(engine._handle.close(),engine._handle=null)}function emitCloseNT(self){self.emit("close")}var Buffer=__webpack_require__(22).Buffer,
2782
+ Transform=__webpack_require__(115).Transform,binding=__webpack_require__(127),util=__webpack_require__(73),assert=__webpack_require__(72).ok,kMaxLength=__webpack_require__(22).kMaxLength,kRangeErrorMessage="Cannot create final Buffer. It would be larger than 0x"+kMaxLength.toString(16)+" bytes";binding.Z_MIN_WINDOWBITS=8;binding.Z_MAX_WINDOWBITS=15;binding.Z_DEFAULT_WINDOWBITS=15;binding.Z_MIN_CHUNK=64;binding.Z_MAX_CHUNK=Infinity;binding.Z_DEFAULT_CHUNK=16384;binding.Z_MIN_MEMLEVEL=1;binding.Z_MAX_MEMLEVEL=
2714
2783
  9;binding.Z_DEFAULT_MEMLEVEL=8;binding.Z_MIN_LEVEL=-1;binding.Z_MAX_LEVEL=9;binding.Z_DEFAULT_LEVEL=binding.Z_DEFAULT_COMPRESSION;for(var bkeys=Object.keys(binding),bk=0;bk<bkeys.length;bk++){var bkey=bkeys[bk];bkey.match(/^Z/)&&Object.defineProperty(exports,bkey,{enumerable:!0,value:binding[bkey],writable:!1})}bkeys={Z_OK:binding.Z_OK,Z_STREAM_END:binding.Z_STREAM_END,Z_NEED_DICT:binding.Z_NEED_DICT,Z_ERRNO:binding.Z_ERRNO,Z_STREAM_ERROR:binding.Z_STREAM_ERROR,Z_DATA_ERROR:binding.Z_DATA_ERROR,Z_MEM_ERROR:binding.Z_MEM_ERROR,
2715
2784
  Z_BUF_ERROR:binding.Z_BUF_ERROR,Z_VERSION_ERROR:binding.Z_VERSION_ERROR};bk=Object.keys(bkeys);for(bkey=0;bkey<bk.length;bkey++){var ckey=bk[bkey];bkeys[bkeys[ckey]]=ckey}Object.defineProperty(exports,"codes",{enumerable:!0,value:Object.freeze(bkeys),writable:!1});exports.Deflate=Deflate;exports.Inflate=Inflate;exports.Gzip=Gzip;exports.Gunzip=Gunzip;exports.DeflateRaw=DeflateRaw;exports.InflateRaw=InflateRaw;exports.Unzip=Unzip;exports.createDeflate=function(o){return new Deflate(o)};exports.createInflate=
2716
2785
  function(o){return new Inflate(o)};exports.createDeflateRaw=function(o){return new DeflateRaw(o)};exports.createInflateRaw=function(o){return new InflateRaw(o)};exports.createGzip=function(o){return new Gzip(o)};exports.createGunzip=function(o){return new Gunzip(o)};exports.createUnzip=function(o){return new Unzip(o)};exports.deflate=function(buffer,opts,callback){"function"===typeof opts&&(callback=opts,opts={});return zlibBuffer(new Deflate(opts),buffer,callback)};exports.deflateSync=function(buffer,
@@ -2724,10 +2793,10 @@ if(ws.ended)callback&&process.nextTick(callback);else if(ws.ending){if(callback)
2724
2793
  null);if(!self._hadError){var have=availOutBefore-availOutAfter;assert(0<=have,"have should not go down");if(0<have){var out=self._buffer.slice(self._offset,self._offset+have);self._offset+=have;async?self.push(out):(buffers.push(out),nread+=out.length)}if(0===availOutAfter||self._offset>=self._chunkSize)availOutBefore=self._chunkSize,self._offset=0,self._buffer=Buffer.allocUnsafe(self._chunkSize);if(0===availOutAfter){inOff+=availInBefore-availInAfter;availInBefore=availInAfter;if(!async)return!0;
2725
2794
  availInAfter=self._handle.write(flushFlag,chunk,inOff,availInBefore,self._buffer,self._offset,self._chunkSize);availInAfter.callback=callback;availInAfter.buffer=chunk}else{if(!async)return!1;cb()}}}var availInBefore=chunk&&chunk.length,availOutBefore=this._chunkSize-this._offset,inOff=0,self=this,async="function"===typeof cb;if(!async){var buffers=[],nread=0,error;this.on("error",function(er){error=er});assert(this._handle,"zlib binding closed");do var res=this._handle.writeSync(flushFlag,chunk,
2726
2795
  inOff,availInBefore,this._buffer,this._offset,availOutBefore);while(!this._hadError&&callback(res[0],res[1]));if(this._hadError)throw error;if(nread>=kMaxLength)throw _close(this),new RangeError(kRangeErrorMessage);res=Buffer.concat(buffers,nread);_close(this);return res}assert(this._handle,"zlib binding closed");res=this._handle.write(flushFlag,chunk,inOff,availInBefore,this._buffer,this._offset,availOutBefore);res.buffer=chunk;res.callback=callback};util.inherits(Deflate,Zlib);util.inherits(Inflate,
2727
- Zlib);util.inherits(Gzip,Zlib);util.inherits(Gunzip,Zlib);util.inherits(DeflateRaw,Zlib);util.inherits(InflateRaw,Zlib);util.inherits(Unzip,Zlib)}).call(this,__webpack_require__(21))},function(module,exports,__webpack_require__){function Stream(){EE.call(this)}module.exports=Stream;var EE=__webpack_require__(30).EventEmitter;__webpack_require__(25)(Stream,EE);Stream.Readable=__webpack_require__(37);Stream.Writable=__webpack_require__(107);Stream.Duplex=__webpack_require__(108);Stream.Transform=__webpack_require__(109);
2728
- Stream.PassThrough=__webpack_require__(110);Stream.Stream=Stream;Stream.prototype.pipe=function(dest,options){function ondata(chunk){dest.writable&&!1===dest.write(chunk)&&source.pause&&source.pause()}function ondrain(){source.readable&&source.resume&&source.resume()}function onend(){didOnEnd||(didOnEnd=!0,dest.end())}function onclose(){didOnEnd||(didOnEnd=!0,"function"===typeof dest.destroy&&dest.destroy())}function onerror(er){cleanup();if(0===EE.listenerCount(this,"error"))throw er;}function cleanup(){source.removeListener("data",
2796
+ Zlib);util.inherits(Gzip,Zlib);util.inherits(Gunzip,Zlib);util.inherits(DeflateRaw,Zlib);util.inherits(InflateRaw,Zlib);util.inherits(Unzip,Zlib)}).call(this,__webpack_require__(23))},function(module,exports,__webpack_require__){function Stream(){EE.call(this)}module.exports=Stream;var EE=__webpack_require__(32).EventEmitter;__webpack_require__(28)(Stream,EE);Stream.Readable=__webpack_require__(41);Stream.Writable=__webpack_require__(123);Stream.Duplex=__webpack_require__(124);Stream.Transform=__webpack_require__(125);
2797
+ Stream.PassThrough=__webpack_require__(126);Stream.Stream=Stream;Stream.prototype.pipe=function(dest,options){function ondata(chunk){dest.writable&&!1===dest.write(chunk)&&source.pause&&source.pause()}function ondrain(){source.readable&&source.resume&&source.resume()}function onend(){didOnEnd||(didOnEnd=!0,dest.end())}function onclose(){didOnEnd||(didOnEnd=!0,"function"===typeof dest.destroy&&dest.destroy())}function onerror(er){cleanup();if(0===EE.listenerCount(this,"error"))throw er;}function cleanup(){source.removeListener("data",
2729
2798
  ondata);dest.removeListener("drain",ondrain);source.removeListener("end",onend);source.removeListener("close",onclose);source.removeListener("error",onerror);dest.removeListener("error",onerror);source.removeListener("end",cleanup);source.removeListener("close",cleanup);dest.removeListener("close",cleanup)}var source=this;source.on("data",ondata);dest.on("drain",ondrain);dest._isStdio||options&&!1===options.end||(source.on("end",onend),source.on("close",onclose));var didOnEnd=!1;source.on("error",
2730
- onerror);dest.on("error",onerror);source.on("end",cleanup);source.on("close",cleanup);dest.on("close",cleanup);dest.emit("pipe",source);return dest}},function(module,exports){},function(module,exports,__webpack_require__){var Buffer=__webpack_require__(56).Buffer,util=__webpack_require__(102);module.exports=function(){function BufferList(){if(!(this instanceof BufferList))throw new TypeError("Cannot call a class as a function");this.tail=this.head=null;this.length=0}BufferList.prototype.push=function(v){v=
2799
+ onerror);dest.on("error",onerror);source.on("end",cleanup);source.on("close",cleanup);dest.on("close",cleanup);dest.emit("pipe",source);return dest}},function(module,exports){},function(module,exports,__webpack_require__){var Buffer=__webpack_require__(59).Buffer,util=__webpack_require__(118);module.exports=function(){function BufferList(){if(!(this instanceof BufferList))throw new TypeError("Cannot call a class as a function");this.tail=this.head=null;this.length=0}BufferList.prototype.push=function(v){v=
2731
2800
  {data:v,next:null};0<this.length?this.tail.next=v:this.head=v;this.tail=v;++this.length};BufferList.prototype.unshift=function(v){v={data:v,next:this.head};0===this.length&&(this.tail=v);this.head=v;++this.length};BufferList.prototype.shift=function(){if(0!==this.length){var ret=this.head.data;this.head=1===this.length?this.tail=null:this.head.next;--this.length;return ret}};BufferList.prototype.clear=function(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function(s){if(0===
2732
2801
  this.length)return"";for(var p=this.head,ret=""+p.data;p=p.next;)ret+=s+p.data;return ret};BufferList.prototype.concat=function(n){if(0===this.length)return Buffer.alloc(0);if(1===this.length)return this.head.data;n=Buffer.allocUnsafe(n>>>0);for(var p=this.head,i=0;p;)p.data.copy(n,i),i+=p.data.length,p=p.next;return n};return BufferList}();util&&util.inspect&&util.inspect.custom&&(module.exports.prototype[util.inspect.custom]=function(){var obj=util.inspect({length:this.length});return this.constructor.name+
2733
2802
  " "+obj})},function(module,exports){},function(module,exports,__webpack_require__){(function(global$jscomp$0,process){(function(global,undefined){function clearImmediate(handle){delete tasksByHandle[handle]}function runIfPresent(handle){if(currentlyRunningATask)setTimeout(runIfPresent,0,handle);else{var task=tasksByHandle[handle];if(task){currentlyRunningATask=!0;try{var callback=task.callback,args=task.args;switch(args.length){case 0:callback();break;case 1:callback(args[0]);break;case 2:callback(args[0],
@@ -2736,13 +2805,13 @@ args[1]);break;case 3:callback(args[0],args[1],args[2]);break;default:callback.a
2736
2805
  handle,"*")}}function installMessageChannelImplementation(){var channel=new MessageChannel;channel.port1.onmessage=function(event){runIfPresent(event.data)};registerImmediate=function(handle){channel.port2.postMessage(handle)}}function installReadyStateChangeImplementation(){var html=doc.documentElement;registerImmediate=function(handle){var script=doc.createElement("script");script.onreadystatechange=function(){runIfPresent(handle);script.onreadystatechange=null;html.removeChild(script);script=null};
2737
2806
  html.appendChild(script)}}function installSetTimeoutImplementation(){registerImmediate=function(handle){setTimeout(runIfPresent,0,handle)}}if(!global.setImmediate){var nextHandle=1,tasksByHandle={},currentlyRunningATask=!1,doc=global.document,registerImmediate,attachTo=Object.getPrototypeOf&&Object.getPrototypeOf(global);attachTo=attachTo&&attachTo.setTimeout?attachTo:global;"[object process]"==={}.toString.call(global.process)?installNextTickImplementation():canUsePostMessage()?installPostMessageImplementation():
2738
2807
  global.MessageChannel?installMessageChannelImplementation():doc&&"onreadystatechange"in doc.createElement("script")?installReadyStateChangeImplementation():installSetTimeoutImplementation();attachTo.setImmediate=function(callback){"function"!==typeof callback&&(callback=new Function(""+callback));for(var args=Array(arguments.length-1),i=0;i<args.length;i++)args[i]=arguments[i+1];tasksByHandle[nextHandle]={callback:callback,args:args};registerImmediate(nextHandle);return nextHandle++};attachTo.clearImmediate=
2739
- clearImmediate}})("undefined"===typeof self?"undefined"===typeof global$jscomp$0?this:global$jscomp$0:self)}).call(this,__webpack_require__(11),__webpack_require__(21))},function(module,exports,__webpack_require__){(function(global){function config(name){try{if(!global.localStorage)return!1}catch(_){return!1}name=global.localStorage[name];return null==name?!1:"true"===String(name).toLowerCase()}module.exports=function(fn,msg){if(config("noDeprecation"))return fn;var warned=!1;return function(){if(!warned){if(config("throwDeprecation"))throw Error(msg);
2740
- config("traceDeprecation")?console.trace(msg):console.warn(msg);warned=!0}return fn.apply(this,arguments)}}}).call(this,__webpack_require__(11))},function(module,exports,__webpack_require__){function copyProps(src,dst){for(var key in src)dst[key]=src[key]}function SafeBuffer(arg,encodingOrOffset,length){return Buffer(arg,encodingOrOffset,length)}var buffer=__webpack_require__(20),Buffer=buffer.Buffer;Buffer.from&&Buffer.alloc&&Buffer.allocUnsafe&&Buffer.allocUnsafeSlow?module.exports=buffer:(copyProps(buffer,
2808
+ clearImmediate}})("undefined"===typeof self?"undefined"===typeof global$jscomp$0?this:global$jscomp$0:self)}).call(this,__webpack_require__(15),__webpack_require__(23))},function(module,exports,__webpack_require__){(function(global){function config(name){try{if(!global.localStorage)return!1}catch(_){return!1}name=global.localStorage[name];return null==name?!1:"true"===String(name).toLowerCase()}module.exports=function(fn,msg){if(config("noDeprecation"))return fn;var warned=!1;return function(){if(!warned){if(config("throwDeprecation"))throw Error(msg);
2809
+ config("traceDeprecation")?console.trace(msg):console.warn(msg);warned=!0}return fn.apply(this,arguments)}}}).call(this,__webpack_require__(15))},function(module,exports,__webpack_require__){function copyProps(src,dst){for(var key in src)dst[key]=src[key]}function SafeBuffer(arg,encodingOrOffset,length){return Buffer(arg,encodingOrOffset,length)}var buffer=__webpack_require__(22),Buffer=buffer.Buffer;Buffer.from&&Buffer.alloc&&Buffer.allocUnsafe&&Buffer.allocUnsafeSlow?module.exports=buffer:(copyProps(buffer,
2741
2810
  exports),exports.Buffer=SafeBuffer);copyProps(Buffer,SafeBuffer);SafeBuffer.from=function(arg,encodingOrOffset,length){if("number"===typeof arg)throw new TypeError("Argument must not be a number");return Buffer(arg,encodingOrOffset,length)};SafeBuffer.alloc=function(size,fill,encoding){if("number"!==typeof size)throw new TypeError("Argument must be a number");size=Buffer(size);void 0!==fill?"string"===typeof encoding?size.fill(fill,encoding):size.fill(fill):size.fill(0);return size};SafeBuffer.allocUnsafe=
2742
- function(size){if("number"!==typeof size)throw new TypeError("Argument must be a number");return Buffer(size)};SafeBuffer.allocUnsafeSlow=function(size){if("number"!==typeof size)throw new TypeError("Argument must be a number");return buffer.SlowBuffer(size)}},function(module,exports,__webpack_require__){function PassThrough(options){if(!(this instanceof PassThrough))return new PassThrough(options);Transform.call(this,options)}module.exports=PassThrough;var Transform=__webpack_require__(67);module=
2743
- Object.create(__webpack_require__(38));module.inherits=__webpack_require__(25);module.inherits(PassThrough,Transform);PassThrough.prototype._transform=function(chunk,encoding,cb){cb(null,chunk)}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(57)},function(module,exports,__webpack_require__){module.exports=__webpack_require__(29)},function(module,exports,__webpack_require__){module.exports=__webpack_require__(37).Transform},function(module,exports,__webpack_require__){module.exports=
2744
- __webpack_require__(37).PassThrough},function(module,exports,__webpack_require__){(function(Buffer,process){function Zlib(mode){if("number"!==typeof mode||mode<exports.DEFLATE||mode>exports.UNZIP)throw new TypeError("Bad argument");this.dictionary=null;this.flush=this.err=0;this.init_done=!1;this.memLevel=this.level=0;this.mode=mode;this.windowBits=this.strategy=0;this.pending_close=this.write_in_progress=!1;this.gzip_id_bytes_read=0}var assert=__webpack_require__(68),Zstream=__webpack_require__(115),
2745
- zlib_deflate=__webpack_require__(116),zlib_inflate=__webpack_require__(119),constants=__webpack_require__(122),key;for(key in constants)exports[key]=constants[key];exports.NONE=0;exports.DEFLATE=1;exports.INFLATE=2;exports.GZIP=3;exports.GUNZIP=4;exports.DEFLATERAW=5;exports.INFLATERAW=6;exports.UNZIP=7;Zlib.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,assert(this.init_done,"close before init"),assert(this.mode<=exports.UNZIP),this.mode===exports.DEFLATE||
2811
+ function(size){if("number"!==typeof size)throw new TypeError("Argument must be a number");return Buffer(size)};SafeBuffer.allocUnsafeSlow=function(size){if("number"!==typeof size)throw new TypeError("Argument must be a number");return buffer.SlowBuffer(size)}},function(module,exports,__webpack_require__){function PassThrough(options){if(!(this instanceof PassThrough))return new PassThrough(options);Transform.call(this,options)}module.exports=PassThrough;var Transform=__webpack_require__(71);module=
2812
+ Object.create(__webpack_require__(42));module.inherits=__webpack_require__(28);module.inherits(PassThrough,Transform);PassThrough.prototype._transform=function(chunk,encoding,cb){cb(null,chunk)}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(60)},function(module,exports,__webpack_require__){module.exports=__webpack_require__(31)},function(module,exports,__webpack_require__){module.exports=__webpack_require__(41).Transform},function(module,exports,__webpack_require__){module.exports=
2813
+ __webpack_require__(41).PassThrough},function(module,exports,__webpack_require__){(function(Buffer,process){function Zlib(mode){if("number"!==typeof mode||mode<exports.DEFLATE||mode>exports.UNZIP)throw new TypeError("Bad argument");this.dictionary=null;this.flush=this.err=0;this.init_done=!1;this.memLevel=this.level=0;this.mode=mode;this.windowBits=this.strategy=0;this.pending_close=this.write_in_progress=!1;this.gzip_id_bytes_read=0}var assert=__webpack_require__(72),Zstream=__webpack_require__(131),
2814
+ zlib_deflate=__webpack_require__(132),zlib_inflate=__webpack_require__(135),constants=__webpack_require__(138),key;for(key in constants)exports[key]=constants[key];exports.NONE=0;exports.DEFLATE=1;exports.INFLATE=2;exports.GZIP=3;exports.GUNZIP=4;exports.DEFLATERAW=5;exports.INFLATERAW=6;exports.UNZIP=7;Zlib.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,assert(this.init_done,"close before init"),assert(this.mode<=exports.UNZIP),this.mode===exports.DEFLATE||
2746
2815
  this.mode===exports.GZIP||this.mode===exports.DEFLATERAW?zlib_deflate.deflateEnd(this.strm):(this.mode===exports.INFLATE||this.mode===exports.GUNZIP||this.mode===exports.INFLATERAW||this.mode===exports.UNZIP)&&zlib_inflate.inflateEnd(this.strm),this.mode=exports.NONE,this.dictionary=null)};Zlib.prototype.write=function(flush,input,in_off,in_len,out,out_off,out_len){return this._write(!0,flush,input,in_off,in_len,out,out_off,out_len)};Zlib.prototype.writeSync=function(flush,input,in_off,in_len,out,
2747
2816
  out_off,out_len){return this._write(!1,flush,input,in_off,in_len,out,out_off,out_len)};Zlib.prototype._write=function(async,flush,input,in_off,in_len,out,out_off,out_len){assert.equal(arguments.length,8);assert(this.init_done,"write before init");assert(this.mode!==exports.NONE,"already finalized");assert.equal(!1,this.write_in_progress,"write already in progress");assert.equal(!1,this.pending_close,"close is pending");this.write_in_progress=!0;assert.equal(!1,void 0===flush,"must provide flush value");
2748
2817
  this.write_in_progress=!0;if(flush!==exports.Z_NO_FLUSH&&flush!==exports.Z_PARTIAL_FLUSH&&flush!==exports.Z_SYNC_FLUSH&&flush!==exports.Z_FULL_FLUSH&&flush!==exports.Z_FINISH&&flush!==exports.Z_BLOCK)throw Error("Invalid flush value");null==input&&(input=Buffer.alloc(0),in_off=in_len=0);this.strm.avail_in=in_len;this.strm.input=input;this.strm.next_in=in_off;this.strm.avail_out=out_len;this.strm.output=out;this.strm.next_out=out_off;this.flush=flush;if(async){var self=this;process.nextTick(function(){self._process();
@@ -2755,7 +2824,7 @@ this.err=zlib_inflate.inflate(this.strm,this.flush);break;default:throw Error("U
2755
2824
  Zlib.prototype.params=function(){throw Error("deflateParams Not supported");};Zlib.prototype.reset=function(){this._reset();this._setDictionary()};Zlib.prototype._init=function(level,windowBits,memLevel,strategy,dictionary){this.level=level;this.windowBits=windowBits;this.memLevel=memLevel;this.strategy=strategy;this.flush=exports.Z_NO_FLUSH;this.err=exports.Z_OK;if(this.mode===exports.GZIP||this.mode===exports.GUNZIP)this.windowBits+=16;this.mode===exports.UNZIP&&(this.windowBits+=32);if(this.mode===
2756
2825
  exports.DEFLATERAW||this.mode===exports.INFLATERAW)this.windowBits*=-1;this.strm=new Zstream;switch(this.mode){case exports.DEFLATE:case exports.GZIP:case exports.DEFLATERAW:this.err=zlib_deflate.deflateInit2(this.strm,this.level,exports.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case exports.INFLATE:case exports.GUNZIP:case exports.INFLATERAW:case exports.UNZIP:this.err=zlib_inflate.inflateInit2(this.strm,this.windowBits);break;default:throw Error("Unknown mode "+this.mode);}this.err!==
2757
2826
  exports.Z_OK&&this._error("Init error");this.dictionary=dictionary;this.write_in_progress=!1;this.init_done=!0};Zlib.prototype._setDictionary=function(){if(null!=this.dictionary){this.err=exports.Z_OK;switch(this.mode){case exports.DEFLATE:case exports.DEFLATERAW:this.err=zlib_deflate.deflateSetDictionary(this.strm,this.dictionary)}this.err!==exports.Z_OK&&this._error("Failed to set dictionary")}};Zlib.prototype._reset=function(){this.err=exports.Z_OK;switch(this.mode){case exports.DEFLATE:case exports.DEFLATERAW:case exports.GZIP:this.err=
2758
- zlib_deflate.deflateReset(this.strm);break;case exports.INFLATE:case exports.INFLATERAW:case exports.GUNZIP:this.err=zlib_inflate.inflateReset(this.strm)}this.err!==exports.Z_OK&&this._error("Failed to reset stream")};exports.Zlib=Zlib}).call(this,__webpack_require__(20).Buffer,__webpack_require__(21))},function(module,exports,__webpack_require__){var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;
2827
+ zlib_deflate.deflateReset(this.strm);break;case exports.INFLATE:case exports.INFLATERAW:case exports.GUNZIP:this.err=zlib_inflate.inflateReset(this.strm)}this.err!==exports.Z_OK&&this._error("Failed to reset stream")};exports.Zlib=Zlib}).call(this,__webpack_require__(22).Buffer,__webpack_require__(23))},function(module,exports,__webpack_require__){var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;
2759
2828
  module.exports=function(){try{if(!Object.assign)return!1;var test1=new String("abc");test1[5]="de";if("5"===Object.getOwnPropertyNames(test1)[0])return!1;var test2={};for(test1=0;10>test1;test1++)test2["_"+String.fromCharCode(test1)]=test1;if("0123456789"!==Object.getOwnPropertyNames(test2).map(function(n){return test2[n]}).join(""))return!1;var test3={};"abcdefghijklmnopqrst".split("").forEach(function(letter){test3[letter]=letter});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},test3)).join("")?
2760
2829
  !1:!0}catch(err){return!1}}()?Object.assign:function(target,source){if(null===target||void 0===target)throw new TypeError("Object.assign cannot be called with null or undefined");var to=Object(target);for(var symbols,s=1;s<arguments.length;s++){var from=Object(arguments[s]);for(var key in from)hasOwnProperty.call(from,key)&&(to[key]=from[key]);if(getOwnPropertySymbols){symbols=getOwnPropertySymbols(from);for(var i=0;i<symbols.length;i++)propIsEnumerable.call(from,symbols[i])&&(to[symbols[i]]=from[symbols[i]])}}return to}},
2761
2830
  function(module,exports){module.exports=function(arg){return arg&&"object"===typeof arg&&"function"===typeof arg.copy&&"function"===typeof arg.fill&&"function"===typeof arg.readUInt8}},function(module,exports){module.exports="function"===typeof Object.create?function(ctor,superCtor){ctor.super_=superCtor;ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})}:function(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=
@@ -2780,7 +2849,7 @@ new utils.Buf16(1146);this.dyn_dtree=new utils.Buf16(122);this.bl_tree=new utils
2780
2849
  !strm.state)return err(strm,-2);strm.total_in=strm.total_out=0;strm.data_type=2;var s=strm.state;s.pending=0;s.pending_out=0;0>s.wrap&&(s.wrap=-s.wrap);s.status=s.wrap?42:113;strm.adler=2===s.wrap?0:1;s.last_flush=0;trees._tr_init(s);return 0}function deflateReset(strm){var ret=deflateResetKeep(strm);0===ret&&(strm=strm.state,strm.window_size=2*strm.w_size,zero(strm.head),strm.max_lazy_match=configuration_table[strm.level].max_lazy,strm.good_match=configuration_table[strm.level].good_length,strm.nice_match=
2781
2850
  configuration_table[strm.level].nice_length,strm.max_chain_length=configuration_table[strm.level].max_chain,strm.strstart=0,strm.block_start=0,strm.lookahead=0,strm.insert=0,strm.match_length=strm.prev_length=2,strm.match_available=0,strm.ins_h=0);return ret}function deflateInit2(strm,level,method,windowBits,memLevel,strategy){if(!strm)return-2;var wrap=1;-1===level&&(level=6);0>windowBits?(wrap=0,windowBits=-windowBits):15<windowBits&&(wrap=2,windowBits-=16);if(1>memLevel||9<memLevel||8!==method||
2782
2851
  8>windowBits||15<windowBits||0>level||9<level||0>strategy||4<strategy)return err(strm,-2);8===windowBits&&(windowBits=9);var s=new DeflateState;strm.state=s;s.strm=strm;s.wrap=wrap;s.gzhead=null;s.w_bits=windowBits;s.w_size=1<<s.w_bits;s.w_mask=s.w_size-1;s.hash_bits=memLevel+7;s.hash_size=1<<s.hash_bits;s.hash_mask=s.hash_size-1;s.hash_shift=~~((s.hash_bits+3-1)/3);s.window=new utils.Buf8(2*s.w_size);s.head=new utils.Buf16(s.hash_size);s.prev=new utils.Buf16(s.w_size);s.lit_bufsize=1<<memLevel+6;
2783
- s.pending_buf_size=4*s.lit_bufsize;s.pending_buf=new utils.Buf8(s.pending_buf_size);s.d_buf=1*s.lit_bufsize;s.l_buf=3*s.lit_bufsize;s.level=level;s.strategy=strategy;s.method=method;return deflateReset(strm)}var utils=__webpack_require__(45),trees=__webpack_require__(117),adler32=__webpack_require__(70),crc32=__webpack_require__(71),msg=__webpack_require__(118);var configuration_table=[new Config(0,0,0,0,function(s,flush){var max_block_size=65535;for(max_block_size>s.pending_buf_size-5&&(max_block_size=
2852
+ s.pending_buf_size=4*s.lit_bufsize;s.pending_buf=new utils.Buf8(s.pending_buf_size);s.d_buf=1*s.lit_bufsize;s.l_buf=3*s.lit_bufsize;s.level=level;s.strategy=strategy;s.method=method;return deflateReset(strm)}var utils=__webpack_require__(49),trees=__webpack_require__(133),adler32=__webpack_require__(74),crc32=__webpack_require__(75),msg=__webpack_require__(134);var configuration_table=[new Config(0,0,0,0,function(s,flush){var max_block_size=65535;for(max_block_size>s.pending_buf_size-5&&(max_block_size=
2784
2853
  s.pending_buf_size-5);;){if(1>=s.lookahead){fill_window(s);if(0===s.lookahead&&0===flush)return 1;if(0===s.lookahead)break}s.strstart+=s.lookahead;s.lookahead=0;var max_start=s.block_start+max_block_size;if(0===s.strstart||s.strstart>=max_start)if(s.lookahead=s.strstart-max_start,s.strstart=max_start,flush_block_only(s,!1),0===s.strm.avail_out)return 1;if(s.strstart-s.block_start>=s.w_size-262&&(flush_block_only(s,!1),0===s.strm.avail_out))return 1}s.insert=0;if(4===flush)return flush_block_only(s,
2785
2854
  !0),0===s.strm.avail_out?3:4;s.strstart>s.block_start&&flush_block_only(s,!1);return 1}),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)];exports.deflateInit=function(strm,level){return deflateInit2(strm,level,8,15,8,0)};
2786
2855
  exports.deflateInit2=deflateInit2;exports.deflateReset=deflateReset;exports.deflateResetKeep=deflateResetKeep;exports.deflateSetHeader=function(strm,head){if(!strm||!strm.state||2!==strm.state.wrap)return-2;strm.state.gzhead=head;return 0};exports.deflate=function(strm,flush){if(!strm||!strm.state||5<flush||0>flush)return strm?err(strm,-2):-2;var s=strm.state;if(!strm.output||!strm.input&&0!==strm.avail_in||666===s.status&&4!==flush)return err(strm,0===strm.avail_out?-5:-2);s.strm=strm;var old_flush=
@@ -2807,7 +2876,7 @@ overflow){do{for(bits=max_length-1;0===s.bl_count[bits];)bits--;s.bl_count[bits]
2807
2876
  4;0===nextlen&&(max_count=138,min_count=3);tree[2*(max_code+1)+1]=65535;for(n=0;n<=max_code;n++){var curlen=nextlen;nextlen=tree[2*(n+1)+1];++count<max_count&&curlen===nextlen||(count<min_count?s.bl_tree[2*curlen]+=count:0!==curlen?(curlen!==prevlen&&s.bl_tree[2*curlen]++,s.bl_tree[32]++):10>=count?s.bl_tree[34]++:s.bl_tree[36]++,count=0,prevlen=curlen,0===nextlen?(max_count=138,min_count=3):curlen===nextlen?(max_count=6,min_count=3):(max_count=7,min_count=4))}}function send_tree(s,tree,max_code){var n,
2808
2877
  prevlen=-1,nextlen=tree[1],count=0,max_count=7,min_count=4;0===nextlen&&(max_count=138,min_count=3);for(n=0;n<=max_code;n++){var curlen=nextlen;nextlen=tree[2*(n+1)+1];if(!(++count<max_count&&curlen===nextlen)){if(count<min_count){do send_code(s,curlen,s.bl_tree);while(0!==--count)}else 0!==curlen?(curlen!==prevlen&&(send_code(s,curlen,s.bl_tree),count--),send_code(s,16,s.bl_tree),send_bits(s,count-3,2)):10>=count?(send_code(s,17,s.bl_tree),send_bits(s,count-3,3)):(send_code(s,18,s.bl_tree),send_bits(s,
2809
2878
  count-11,7));count=0;prevlen=curlen;0===nextlen?(max_count=138,min_count=3):curlen===nextlen?(max_count=6,min_count=3):(max_count=7,min_count=4)}}}function detect_data_type(s){var black_mask=4093624447,n;for(n=0;31>=n;n++,black_mask>>>=1)if(black_mask&1&&0!==s.dyn_ltree[2*n])return 0;if(0!==s.dyn_ltree[18]||0!==s.dyn_ltree[20]||0!==s.dyn_ltree[26])return 1;for(n=32;256>n;n++)if(0!==s.dyn_ltree[2*n])return 1;return 0}function _tr_stored_block(s,buf,stored_len,last){send_bits(s,last?1:0,3);bi_windup(s);
2810
- put_short(s,stored_len);put_short(s,~stored_len);utils.arraySet(s.pending_buf,s.window,buf,stored_len,s.pending);s.pending+=stored_len}var utils=__webpack_require__(45),extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],static_ltree=Array(576);zero(static_ltree);var static_dtree=Array(60);
2879
+ put_short(s,stored_len);put_short(s,~stored_len);utils.arraySet(s.pending_buf,s.window,buf,stored_len,s.pending);s.pending+=stored_len}var utils=__webpack_require__(49),extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],static_ltree=Array(576);zero(static_ltree);var static_dtree=Array(60);
2811
2880
  zero(static_dtree);var _dist_code=Array(512);zero(_dist_code);var _length_code=Array(256);zero(_length_code);var base_length=Array(29);zero(base_length);var base_dist=Array(30);zero(base_dist);var static_l_desc,static_d_desc,static_bl_desc,static_init_done=!1;exports._tr_init=function(s){if(!static_init_done){var n,length,code,bl_count=Array(16);for(code=length=0;28>code;code++)for(base_length[code]=length,n=0;n<1<<extra_lbits[code];n++)_length_code[length++]=code;_length_code[length-1]=code;for(code=
2812
2881
  length=0;16>code;code++)for(base_dist[code]=length,n=0;n<1<<extra_dbits[code];n++)_dist_code[length++]=code;for(length>>=7;30>code;code++)for(base_dist[code]=length<<7,n=0;n<1<<extra_dbits[code]-7;n++)_dist_code[256+length++]=code;for(n=0;15>=n;n++)bl_count[n]=0;for(n=0;143>=n;)static_ltree[2*n+1]=8,n++,bl_count[8]++;for(;255>=n;)static_ltree[2*n+1]=9,n++,bl_count[9]++;for(;279>=n;)static_ltree[2*n+1]=7,n++,bl_count[7]++;for(;287>=n;)static_ltree[2*n+1]=8,n++,bl_count[8]++;gen_codes(static_ltree,
2813
2882
  287,bl_count);for(n=0;30>n;n++)static_dtree[2*n+1]=5,static_dtree[2*n]=bi_reverse(n,5);static_l_desc=new StaticTreeDesc(static_ltree,extra_lbits,257,286,15);static_d_desc=new StaticTreeDesc(static_dtree,extra_dbits,0,30,15);static_bl_desc=new StaticTreeDesc([],extra_blbits,0,19,7);static_init_done=!0}s.l_desc=new TreeDesc(s.dyn_ltree,static_l_desc);s.d_desc=new TreeDesc(s.dyn_dtree,static_d_desc);s.bl_desc=new TreeDesc(s.bl_tree,static_bl_desc);s.bi_buf=0;s.bi_valid=0;init_block(s)};exports._tr_stored_block=
@@ -2819,8 +2888,8 @@ function(module,exports,__webpack_require__){function zswap32(q){return(q>>>24&2
2819
2888
  this.lens=new utils.Buf16(320);this.work=new utils.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function inflateResetKeep(strm){if(!strm||!strm.state)return-2;var state=strm.state;strm.total_in=strm.total_out=state.total=0;strm.msg="";state.wrap&&(strm.adler=state.wrap&1);state.mode=1;state.last=0;state.havedict=0;state.dmax=32768;state.head=null;state.hold=0;state.bits=0;state.lencode=state.lendyn=new utils.Buf32(852);state.distcode=state.distdyn=new utils.Buf32(592);state.sane=
2820
2889
  1;state.back=-1;return 0}function inflateReset(strm){if(!strm||!strm.state)return-2;var state=strm.state;state.wsize=0;state.whave=0;state.wnext=0;return inflateResetKeep(strm)}function inflateReset2(strm,windowBits){if(!strm||!strm.state)return-2;var state=strm.state;if(0>windowBits){var wrap=0;windowBits=-windowBits}else wrap=(windowBits>>4)+1,48>windowBits&&(windowBits&=15);if(windowBits&&(8>windowBits||15<windowBits))return-2;null!==state.window&&state.wbits!==windowBits&&(state.window=null);
2821
2890
  state.wrap=wrap;state.wbits=windowBits;return inflateReset(strm)}function inflateInit2(strm,windowBits){if(!strm)return-2;var state=new InflateState;strm.state=state;state.window=null;windowBits=inflateReset2(strm,windowBits);0!==windowBits&&(strm.state=null);return windowBits}function updatewindow(strm,src,end,copy){var state=strm.state;null===state.window&&(state.wsize=1<<state.wbits,state.wnext=0,state.whave=0,state.window=new utils.Buf8(state.wsize));copy>=state.wsize?(utils.arraySet(state.window,
2822
- src,end-state.wsize,state.wsize,0),state.wnext=0,state.whave=state.wsize):(strm=state.wsize-state.wnext,strm>copy&&(strm=copy),utils.arraySet(state.window,src,end-copy,strm,state.wnext),(copy-=strm)?(utils.arraySet(state.window,src,end-copy,copy,0),state.wnext=copy,state.whave=state.wsize):(state.wnext+=strm,state.wnext===state.wsize&&(state.wnext=0),state.whave<state.wsize&&(state.whave+=strm)));return 0}var utils=__webpack_require__(45),adler32=__webpack_require__(70),crc32=__webpack_require__(71),
2823
- inflate_fast=__webpack_require__(120),inflate_table=__webpack_require__(121),virgin=!0,lenfix,distfix;exports.inflateReset=inflateReset;exports.inflateReset2=inflateReset2;exports.inflateResetKeep=inflateResetKeep;exports.inflateInit=function(strm){return inflateInit2(strm,15)};exports.inflateInit2=inflateInit2;exports.inflate=function(strm,flush){var last_val,hbuf=new utils.Buf8(4),order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!strm||!strm.state||!strm.output||!strm.input&&0!==strm.avail_in)return-2;
2891
+ src,end-state.wsize,state.wsize,0),state.wnext=0,state.whave=state.wsize):(strm=state.wsize-state.wnext,strm>copy&&(strm=copy),utils.arraySet(state.window,src,end-copy,strm,state.wnext),(copy-=strm)?(utils.arraySet(state.window,src,end-copy,copy,0),state.wnext=copy,state.whave=state.wsize):(state.wnext+=strm,state.wnext===state.wsize&&(state.wnext=0),state.whave<state.wsize&&(state.whave+=strm)));return 0}var utils=__webpack_require__(49),adler32=__webpack_require__(74),crc32=__webpack_require__(75),
2892
+ inflate_fast=__webpack_require__(136),inflate_table=__webpack_require__(137),virgin=!0,lenfix,distfix;exports.inflateReset=inflateReset;exports.inflateReset2=inflateReset2;exports.inflateResetKeep=inflateResetKeep;exports.inflateInit=function(strm){return inflateInit2(strm,15)};exports.inflateInit2=inflateInit2;exports.inflate=function(strm,flush){var last_val,hbuf=new utils.Buf8(4),order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!strm||!strm.state||!strm.output||!strm.input&&0!==strm.avail_in)return-2;
2824
2893
  var state=strm.state;12===state.mode&&(state.mode=13);var put=strm.next_out;var output=strm.output;var left=strm.avail_out;var next=strm.next_in;var input=strm.input;var have=strm.avail_in;var hold=state.hold;var bits=state.bits;var _in=have;var _out=left;var ret=0;a:for(;;)switch(state.mode){case 1:if(0===state.wrap){state.mode=13;break}for(;16>bits;){if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}if(state.wrap&2&&35615===hold){state.check=0;hbuf[0]=hold&255;hbuf[1]=hold>>>8&255;state.check=
2825
2894
  crc32(state.check,hbuf,2,0);bits=hold=0;state.mode=2;break}state.flags=0;state.head&&(state.head.done=!1);if(!(state.wrap&1)||(((hold&255)<<8)+(hold>>8))%31){strm.msg="incorrect header check";state.mode=30;break}if(8!==(hold&15)){strm.msg="unknown compression method";state.mode=30;break}hold>>>=4;bits-=4;var from=(hold&15)+8;if(0===state.wbits)state.wbits=from;else if(from>state.wbits){strm.msg="invalid window size";state.mode=30;break}state.dmax=1<<from;strm.adler=state.check=1;state.mode=hold&512?
2826
2895
  10:12;bits=hold=0;break;case 2:for(;16>bits;){if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}state.flags=hold;if(8!==(state.flags&255)){strm.msg="unknown compression method";state.mode=30;break}if(state.flags&57344){strm.msg="unknown header flags set";state.mode=30;break}state.head&&(state.head.text=hold>>8&1);state.flags&512&&(hbuf[0]=hold&255,hbuf[1]=hold>>>8&255,state.check=crc32(state.check,hbuf,2,0));bits=hold=0;state.mode=3;case 3:for(;32>bits;){if(0===have)break a;have--;hold+=
@@ -2852,14 +2921,14 @@ bits&&(hold+=input[_in++]<<bits,bits+=8,hold+=input[_in++]<<bits,bits+=8);var he
2852
2921
  65535;op&=15;bits<op&&(hold+=input[_in++]<<bits,bits+=8,bits<op&&(hold+=input[_in++]<<bits,bits+=8));here+=hold&(1<<op)-1;if(here>dmax){strm.msg="invalid distance too far back";state.mode=30;break a}hold>>>=op;bits-=op;op=_out-start;if(here>op){op=here-op;if(op>whave&&state.sane){strm.msg="invalid distance too far back";state.mode=30;break a}var from=0;var from_source=s_window;if(0===wnext){if(from+=wsize-op,op<len){len-=op;do output[_out++]=s_window[from++];while(--op);from=_out-here;from_source=
2853
2922
  output}}else if(wnext<op){if(from+=wsize+wnext-op,op-=wnext,op<len){len-=op;do output[_out++]=s_window[from++];while(--op);from=0;if(wnext<len){op=wnext;len-=op;do output[_out++]=s_window[from++];while(--op);from=_out-here;from_source=output}}}else if(from+=wnext-op,op<len){len-=op;do output[_out++]=s_window[from++];while(--op);from=_out-here;from_source=output}for(;2<len;)output[_out++]=from_source[from++],output[_out++]=from_source[from++],output[_out++]=from_source[from++],len-=3;len&&(output[_out++]=
2854
2923
  from_source[from++],1<len&&(output[_out++]=from_source[from++]))}else{from=_out-here;do output[_out++]=output[from++],output[_out++]=output[from++],output[_out++]=output[from++],len-=3;while(2<len);len&&(output[_out++]=output[from++],1<len&&(output[_out++]=output[from++]))}}else if(0===(op&64)){here=dcode[(here&65535)+(hold&(1<<op)-1)];continue c}else{strm.msg="invalid distance code";state.mode=30;break a}break}}else if(0===(op&64)){here=lcode[(here&65535)+(hold&(1<<op)-1)];continue b}else{op&32?
2855
- state.mode=12:(strm.msg="invalid literal/length code",state.mode=30);break a}break}}while(_in<last&&_out<end);len=bits>>3;_in-=len;bits-=len<<3;strm.next_in=_in;strm.next_out=_out;strm.avail_in=_in<last?5+(last-_in):5-(_in-last);strm.avail_out=_out<end?257+(end-_out):257-(_out-end);state.hold=hold&(1<<bits)-1;state.bits=bits}},function(module,exports,__webpack_require__){var utils=__webpack_require__(45),lbase=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,
2924
+ state.mode=12:(strm.msg="invalid literal/length code",state.mode=30);break a}break}}while(_in<last&&_out<end);len=bits>>3;_in-=len;bits-=len<<3;strm.next_in=_in;strm.next_out=_out;strm.avail_in=_in<last?5+(last-_in):5-(_in-last);strm.avail_out=_out<end?257+(end-_out):257-(_out-end);state.hold=hold&(1<<bits)-1;state.bits=bits}},function(module,exports,__webpack_require__){var utils=__webpack_require__(49),lbase=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,
2856
2925
  0,0],lext=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],dbase=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],dext=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];module.exports=function(type,lens,lens_index,codes,table,table_index,work,opts){var bits=opts.bits,len,sym,max,left,huff,fill,base_index=0,count=new utils.Buf16(16);var drop=
2857
2926
  new utils.Buf16(16);var extra,extra_index=0;for(len=0;15>=len;len++)count[len]=0;for(sym=0;sym<codes;sym++)count[lens[lens_index+sym]]++;var root=bits;for(max=15;1<=max&&0===count[max];max--);root>max&&(root=max);if(0===max)return table[table_index++]=20971520,table[table_index++]=20971520,opts.bits=1,0;for(bits=1;bits<max&&0===count[bits];bits++);root<bits&&(root=bits);for(len=left=1;15>=len;len++)if(left<<=1,left-=count[len],0>left)return-1;if(0<left&&(0===type||1!==max))return-1;drop[1]=0;for(len=
2858
2927
  1;15>len;len++)drop[len+1]=drop[len]+count[len];for(sym=0;sym<codes;sym++)0!==lens[lens_index+sym]&&(work[drop[lens[lens_index+sym]]++]=sym);if(0===type){var base=extra=work;var end=19}else 1===type?(base=lbase,base_index-=257,extra=lext,extra_index-=257,end=256):(base=dbase,extra=dext,end=-1);sym=huff=0;len=bits;var next=table_index;codes=root;drop=0;var low=-1;var used=1<<root;var mask=used-1;if(1===type&&852<used||2===type&&592<used)return 1;for(;;){var here_bits=len-drop;if(work[sym]<end){var here_op=
2859
2928
  0;var here_val=work[sym]}else work[sym]>end?(here_op=extra[extra_index+work[sym]],here_val=base[base_index+work[sym]]):(here_op=96,here_val=0);left=1<<len-drop;bits=fill=1<<codes;do fill-=left,table[next+(huff>>drop)+fill]=here_bits<<24|here_op<<16|here_val|0;while(0!==fill);for(left=1<<len-1;huff&left;)left>>=1;0!==left?(huff&=left-1,huff+=left):huff=0;sym++;if(0===--count[len]){if(len===max)break;len=lens[lens_index+work[sym]]}if(len>root&&(huff&mask)!==low){0===drop&&(drop=root);next+=bits;codes=
2860
2929
  len-drop;for(left=1<<codes;codes+drop<max;){left-=count[codes+drop];if(0>=left)break;codes++;left<<=1}used+=1<<codes;if(1===type&&852<used||2===type&&592<used)return 1;low=huff&mask;table[low]=root<<24|codes<<16|next-table_index|0}}0!==huff&&(table[next+huff]=len-drop<<24|4194304);opts.bits=root;return 0}},function(module,exports,__webpack_require__){module.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,
2861
- Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(module,exports){},function(module,exports,__webpack_require__){(function(Buffer,global,process){var capability=__webpack_require__(73),inherits=__webpack_require__(25),response$jscomp$0=__webpack_require__(74),stream=__webpack_require__(37),toArrayBuffer=
2862
- __webpack_require__(125),IncomingMessage=response$jscomp$0.IncomingMessage,rStates=response$jscomp$0.readyStates;response$jscomp$0=module.exports=function(opts){var self=this;stream.Writable.call(self);self._opts=opts;self._body=[];self._headers={};opts.auth&&self.setHeader("Authorization","Basic "+(new Buffer(opts.auth)).toString("base64"));Object.keys(opts.headers).forEach(function(name){self.setHeader(name,opts.headers[name])});var useFetch=!0;if("disable-fetch"===opts.mode||"requestTimeout"in
2930
+ Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(module,exports){},function(module,exports,__webpack_require__){(function(Buffer,global,process){var capability=__webpack_require__(77),inherits=__webpack_require__(28),response$jscomp$0=__webpack_require__(78),stream=__webpack_require__(41),toArrayBuffer=
2931
+ __webpack_require__(141),IncomingMessage=response$jscomp$0.IncomingMessage,rStates=response$jscomp$0.readyStates;response$jscomp$0=module.exports=function(opts){var self=this;stream.Writable.call(self);self._opts=opts;self._body=[];self._headers={};opts.auth&&self.setHeader("Authorization","Basic "+(new Buffer(opts.auth)).toString("base64"));Object.keys(opts.headers).forEach(function(name){self.setHeader(name,opts.headers[name])});var useFetch=!0;if("disable-fetch"===opts.mode||"requestTimeout"in
2863
2932
  opts&&!capability.abortController){useFetch=!1;var preferBinary=!0}else if("prefer-streaming"===opts.mode)preferBinary=!1;else if("allow-wrong-content-type"===opts.mode)preferBinary=!capability.overrideMimeType;else{if(opts.mode&&"default"!==opts.mode&&"prefer-fast"!==opts.mode)throw Error("Invalid value for opts.mode");preferBinary=!0}self._mode=capability.fetch&&useFetch?"fetch":capability.mozchunkedarraybuffer?"moz-chunked-arraybuffer":capability.msstream?"ms-stream":capability.arraybuffer&&preferBinary?
2864
2933
  "arraybuffer":capability.vbArray&&preferBinary?"text:vbarray":"text";self._fetchTimer=null;self.on("finish",function(){self._onFinish()})};inherits(response$jscomp$0,stream.Writable);response$jscomp$0.prototype.setHeader=function(name,value){var lowerName=name.toLowerCase();-1===unsafeHeaders.indexOf(lowerName)&&(this._headers[lowerName]={name:name,value:value})};response$jscomp$0.prototype.getHeader=function(name){return(name=this._headers[name.toLowerCase()])?name.value:null};response$jscomp$0.prototype.removeHeader=
2865
2934
  function(name){delete this._headers[name.toLowerCase()]};response$jscomp$0.prototype._onFinish=function(){var self=this;if(!self._destroyed){var opts=self._opts,headersObj=self._headers,body=null;"GET"!==opts.method&&"HEAD"!==opts.method&&(body=capability.arraybuffer?toArrayBuffer(Buffer.concat(self._body)):capability.blobConstructor?new global.Blob(self._body.map(function(buffer){return toArrayBuffer(buffer)}),{type:(headersObj["content-type"]||{}).value||""}):Buffer.concat(self._body).toString());
@@ -2869,8 +2938,8 @@ self._opts.url,!0)}catch(err){process.nextTick(function(){self.emit("error",err)
2869
2938
  header[1])});self._response=null;xhr.onreadystatechange=function(){switch(xhr.readyState){case rStates.LOADING:case rStates.DONE:self._onXHRProgress()}};"moz-chunked-arraybuffer"===self._mode&&(xhr.onprogress=function(){self._onXHRProgress()});xhr.onerror=function(){self._destroyed||self.emit("error",Error("XHR error"))};try{xhr.send(body)}catch(err$28){process.nextTick(function(){self.emit("error",err$28)})}}}};response$jscomp$0.prototype._onXHRProgress=function(){try{var status=this._xhr.status;
2870
2939
  var JSCompiler_inline_result=null!==status&&0!==status}catch(e){JSCompiler_inline_result=!1}JSCompiler_inline_result&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())};response$jscomp$0.prototype._connect=function(){var self=this;self._destroyed||(self._response=new IncomingMessage(self._xhr,self._fetchResponse,self._mode,self._fetchTimer),self._response.on("error",function(err){self.emit("error",err)}),self.emit("response",self._response))};response$jscomp$0.prototype._write=
2871
2940
  function(chunk,encoding,cb){this._body.push(chunk);cb()};response$jscomp$0.prototype.abort=response$jscomp$0.prototype.destroy=function(){this._destroyed=!0;global.clearTimeout(this._fetchTimer);this._response&&(this._response._destroyed=!0);this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()};response$jscomp$0.prototype.end=function(data,encoding,cb){"function"===typeof data&&(cb=data,data=void 0);stream.Writable.prototype.end.call(this,data,encoding,cb)};response$jscomp$0.prototype.flushHeaders=
2872
- function(){};response$jscomp$0.prototype.setTimeout=function(){};response$jscomp$0.prototype.setNoDelay=function(){};response$jscomp$0.prototype.setSocketKeepAlive=function(){};var unsafeHeaders="accept-charset accept-encoding access-control-request-headers access-control-request-method connection content-length cookie cookie2 date dnt expect host keep-alive origin referer te trailer transfer-encoding upgrade via".split(" ")}).call(this,__webpack_require__(20).Buffer,__webpack_require__(11),__webpack_require__(21))},
2873
- function(module,exports,__webpack_require__){var Buffer=__webpack_require__(20).Buffer;module.exports=function(buf){if(buf instanceof Uint8Array){if(0===buf.byteOffset&&buf.byteLength===buf.buffer.byteLength)return buf.buffer;if("function"===typeof buf.buffer.slice)return buf.buffer.slice(buf.byteOffset,buf.byteOffset+buf.byteLength)}if(Buffer.isBuffer(buf)){for(var arrayCopy=new Uint8Array(buf.length),len=buf.length,i=0;i<len;i++)arrayCopy[i]=buf[i];return arrayCopy.buffer}throw Error("Argument must be a Buffer");
2941
+ function(){};response$jscomp$0.prototype.setTimeout=function(){};response$jscomp$0.prototype.setNoDelay=function(){};response$jscomp$0.prototype.setSocketKeepAlive=function(){};var unsafeHeaders="accept-charset accept-encoding access-control-request-headers access-control-request-method connection content-length cookie cookie2 date dnt expect host keep-alive origin referer te trailer transfer-encoding upgrade via".split(" ")}).call(this,__webpack_require__(22).Buffer,__webpack_require__(15),__webpack_require__(23))},
2942
+ function(module,exports,__webpack_require__){var Buffer=__webpack_require__(22).Buffer;module.exports=function(buf){if(buf instanceof Uint8Array){if(0===buf.byteOffset&&buf.byteLength===buf.buffer.byteLength)return buf.buffer;if("function"===typeof buf.buffer.slice)return buf.buffer.slice(buf.byteOffset,buf.byteOffset+buf.byteLength)}if(Buffer.isBuffer(buf)){for(var arrayCopy=new Uint8Array(buf.length),len=buf.length,i=0;i<len;i++)arrayCopy[i]=buf[i];return arrayCopy.buffer}throw Error("Argument must be a Buffer");
2874
2943
  }},function(module,exports){module.exports=function(){for(var target={},i=0;i<arguments.length;i++){var source=arguments[i],key;for(key in source)hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target};var hasOwnProperty=Object.prototype.hasOwnProperty},function(module,exports){module.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",
2875
2944
  207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",
2876
2945
  414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",
@@ -2882,11 +2951,11 @@ out;var t=k<=bias?1:k>=bias+26?26:k-bias;if(digit<t)break;digit=36-t;out>floor(2
2882
2951
  basicLength=output.length)&&output.push("-");handledCPCount<inputLength;){var m=2147483647;for(j=0;j<inputLength;++j)t=input[j],t>=n&&t<m&&(m=t);var handledCPCountPlusOne=handledCPCount+1;m-n>floor((2147483647-delta)/handledCPCountPlusOne)&&error("overflow");delta+=(m-n)*handledCPCountPlusOne;n=m;for(j=0;j<inputLength;++j)if(t=input[j],t<n&&2147483647<++delta&&error("overflow"),t==n){var q=delta;for(m=36;;m+=36){t=m<=bias?1:m>=bias+26?26:m-bias;if(q<t)break;var qMinusT=q-t;q=36-t;var JSCompiler_temp_const=
2883
2952
  output;t+=qMinusT%q;JSCompiler_temp_const.push.call(JSCompiler_temp_const,stringFromCharCode(t+22+75*(26>t)-0));q=floor(qMinusT/q)}output.push(stringFromCharCode(q+22+75*(26>q)-0));bias=adapt(delta,handledCPCountPlusOne,handledCPCount==basicLength);delta=0;++handledCPCount}++delta;++n}return output.join("")}var regexPunycode=/^xn--/,regexNonASCII=/[^\x20-\x7E]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)",
2884
2953
  "invalid-input":"Invalid input"},floor=Math.floor,stringFromCharCode=String.fromCharCode;!(__WEBPACK_AMD_DEFINE_RESULT__={version:"1.3.2",ucs2:{decode:ucs2decode,encode:ucs2encode},decode:decode,encode:encode,toASCII:function(input){return mapDomain(input,function(string){return regexNonASCII.test(string)?"xn--"+encode(string):string})},toUnicode:function(input){return mapDomain(input,function(string){return regexPunycode.test(string)?decode(string.slice(4).toLowerCase()):string})}},void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&
2885
- (module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})(this)}).call(this,__webpack_require__(43)(module$jscomp$0),__webpack_require__(11))},function(module,exports,__webpack_require__){module.exports={isString:function(arg){return"string"===typeof arg},isObject:function(arg){return"object"===typeof arg&&null!==arg},isNull:function(arg){return null===arg},isNullOrUndefined:function(arg){return null==arg}}},function(module,exports,__webpack_require__){exports.decode=exports.parse=__webpack_require__(131);
2886
- exports.encode=exports.stringify=__webpack_require__(132)},function(module,exports,__webpack_require__){module.exports=function(qs,sep,eq,options){eq=eq||"=";var obj={};if("string"!==typeof qs||0===qs.length)return obj;var regexp=/\+/g;qs=qs.split(sep||"&");sep=1E3;options&&"number"===typeof options.maxKeys&&(sep=options.maxKeys);options=qs.length;0<sep&&options>sep&&(options=sep);for(sep=0;sep<options;++sep){var x=qs[sep].replace(regexp,"%20"),idx=x.indexOf(eq);if(0<=idx){var kstr=x.substr(0,idx);
2954
+ (module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})(this)}).call(this,__webpack_require__(47)(module$jscomp$0),__webpack_require__(15))},function(module,exports,__webpack_require__){module.exports={isString:function(arg){return"string"===typeof arg},isObject:function(arg){return"object"===typeof arg&&null!==arg},isNull:function(arg){return null===arg},isNullOrUndefined:function(arg){return null==arg}}},function(module,exports,__webpack_require__){exports.decode=exports.parse=__webpack_require__(147);
2955
+ exports.encode=exports.stringify=__webpack_require__(148)},function(module,exports,__webpack_require__){module.exports=function(qs,sep,eq,options){eq=eq||"=";var obj={};if("string"!==typeof qs||0===qs.length)return obj;var regexp=/\+/g;qs=qs.split(sep||"&");sep=1E3;options&&"number"===typeof options.maxKeys&&(sep=options.maxKeys);options=qs.length;0<sep&&options>sep&&(options=sep);for(sep=0;sep<options;++sep){var x=qs[sep].replace(regexp,"%20"),idx=x.indexOf(eq);if(0<=idx){var kstr=x.substr(0,idx);
2887
2956
  x=x.substr(idx+1)}else kstr=x,x="";kstr=decodeURIComponent(kstr);x=decodeURIComponent(x);Object.prototype.hasOwnProperty.call(obj,kstr)?isArray(obj[kstr])?obj[kstr].push(x):obj[kstr]=[obj[kstr],x]:obj[kstr]=x}return obj};var isArray=Array.isArray||function(xs){return"[object Array]"===Object.prototype.toString.call(xs)}},function(module,exports,__webpack_require__){function map(xs,f){if(xs.map)return xs.map(f);for(var res=[],i=0;i<xs.length;i++)res.push(f(xs[i],i));return res}var stringifyPrimitive=
2888
2957
  function(v){switch(typeof v){case "string":return v;case "boolean":return v?"true":"false";case "number":return isFinite(v)?v:"";default:return""}};module.exports=function(obj,sep,eq,name){sep=sep||"&";eq=eq||"=";null===obj&&(obj=void 0);return"object"===typeof obj?map(objectKeys(obj),function(k){var ks=encodeURIComponent(stringifyPrimitive(k))+eq;return isArray(obj[k])?map(obj[k],function(v){return ks+encodeURIComponent(stringifyPrimitive(v))}).join(sep):ks+encodeURIComponent(stringifyPrimitive(obj[k]))}).join(sep):
2889
2958
  name?encodeURIComponent(stringifyPrimitive(name))+eq+encodeURIComponent(stringifyPrimitive(obj)):""};var isArray=Array.isArray||function(xs){return"[object Array]"===Object.prototype.toString.call(xs)},objectKeys=Object.keys||function(obj){var res=[],key;for(key in obj)Object.prototype.hasOwnProperty.call(obj,key)&&res.push(key);return res}},function(module,exports,__webpack_require__){function validateParams(params){"string"===typeof params&&(params=url.parse(params));params.protocol||(params.protocol=
2890
- "https:");if("https:"!==params.protocol)throw Error('Protocol "'+params.protocol+'" not supported. Expected "https:"');return params}var http=__webpack_require__(72),url=__webpack_require__(58);module=module.exports;for(var key in http)http.hasOwnProperty(key)&&(module[key]=http[key]);module.request=function(params,cb){params=validateParams(params);return http.request.call(this,params,cb)};module.get=function(params,cb){params=validateParams(params);return http.get.call(this,params,cb)}},function(module$jscomp$0,
2959
+ "https:");if("https:"!==params.protocol)throw Error('Protocol "'+params.protocol+'" not supported. Expected "https:"');return params}var http=__webpack_require__(76),url=__webpack_require__(61);module=module.exports;for(var key in http)http.hasOwnProperty(key)&&(module[key]=http[key]);module.request=function(params,cb){params=validateParams(params);return http.request.call(this,params,cb)};module.get=function(params,cb){params=validateParams(params);return http.get.call(this,params,cb)}},function(module$jscomp$0,
2891
2960
  __webpack_exports__,__webpack_require__){(function(module){module.rC=function(imgData,canvas,options,pageIdx,drawComplete,isCancelled){isCancelled&&isCancelled()||(canvas.getContext("2d").putImageData(imgData,0,0),options.drawProgressive(canvas),options.drawComplete(canvas,pageIdx+1))};module.dC=function(onDocumentLoaded,me){onDocumentLoaded();me.trigger("documentComplete")}})(window)},function(module,exports){function webpackEmptyContext(req){req=Error("Cannot find module '"+req+"'");req.code="MODULE_NOT_FOUND";
2892
- throw req;}webpackEmptyContext.keys=function(){return[]};webpackEmptyContext.resolve=webpackEmptyContext;module.exports=webpackEmptyContext;webpackEmptyContext.id=135}]);}).call(this || window)
2961
+ throw req;}webpackEmptyContext.keys=function(){return[]};webpackEmptyContext.resolve=webpackEmptyContext;module.exports=webpackEmptyContext;webpackEmptyContext.id=151}]);}).call(this || window)