@eo-sdk/client 9.0.0-rc.6 → 9.0.0-rc.8

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 (425) hide show
  1. package/app/eo-client/settings/settings.component.d.ts +3 -2
  2. package/app/eo-framework/accordion/simple-accordion/simple-accordion.component.d.ts +5 -9
  3. package/app/eo-framework/app-shell/app-bar/app-bar.component.d.ts +4 -2
  4. package/app/eo-framework/media/media.component.d.ts +3 -12
  5. package/app/eo-framework/result-list/result-list.component.d.ts +7 -1
  6. package/app/eo-framework/ui/overlay/overlay.component.d.ts +3 -0
  7. package/app/eo-framework/ui/user-avatar/user-avatar.component.d.ts +5 -3
  8. package/app/eo-framework/util/directive/trap-focus.directive.d.ts +2 -0
  9. package/assets/_default/i18n/de.json +8 -2
  10. package/assets/_default/i18n/en.json +11 -5
  11. package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js +9 -4
  12. package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js.map +1 -1
  13. package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js +2 -2
  14. package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js.map +1 -1
  15. package/bundles/eo-sdk-client.umd.js +165 -159
  16. package/bundles/eo-sdk-client.umd.js.map +1 -1
  17. package/bundles/eo-sdk-client.umd.min.js +1 -1
  18. package/bundles/eo-sdk-client.umd.min.js.map +1 -1
  19. package/eo-sdk-client.metadata.json +1 -1
  20. package/esm2015/app/eo-client/about-state/about-state.component.js +3 -3
  21. package/esm2015/app/eo-client/dashboard/dashboard.component.js +2 -2
  22. package/esm2015/app/eo-client/settings/settings.component.js +12 -11
  23. package/esm2015/app/eo-framework/accordion/simple-accordion/simple-accordion.component.js +18 -23
  24. package/esm2015/app/eo-framework/actions/actions/copy-action/copy-action.js +2 -2
  25. package/esm2015/app/eo-framework/actions/actions/share-object-action/share-object/share-object.component.js +3 -2
  26. package/esm2015/app/eo-framework/app-shell/app-bar/app-add/app-add-dialog/app-add-dialog.component.js +1 -1
  27. package/esm2015/app/eo-framework/app-shell/app-bar/app-bar.component.js +12 -10
  28. package/esm2015/app/eo-framework/app-shell/app-bar/app-search/app-search.component.js +13 -1
  29. package/esm2015/app/eo-framework/form-elements/datetime/datetime.component.js +2 -2
  30. package/esm2015/app/eo-framework/form-elements/form-input/form-input.component.js +1 -1
  31. package/esm2015/app/eo-framework/form-elements/id-reference/id-reference.component.js +3 -4
  32. package/esm2015/app/eo-framework/form-elements/id-reference/reference-finder/reference-finder.component.js +3 -3
  33. package/esm2015/app/eo-framework/form-elements/id-reference/service/reference-finder.service.js +2 -3
  34. package/esm2015/app/eo-framework/form-elements/organization/organization.component.js +1 -1
  35. package/esm2015/app/eo-framework/form-elements/string/string.component.js +3 -3
  36. package/esm2015/app/eo-framework/grid/filters/datetime-filter.component.js +2 -2
  37. package/esm2015/app/eo-framework/grid/filters/organization-filter.component.js +1 -1
  38. package/esm2015/app/eo-framework/media/media.component.js +31 -77
  39. package/esm2015/app/eo-framework/object-details/object-details.component.js +2 -2
  40. package/esm2015/app/eo-framework/result-list/result-list.component.js +17 -5
  41. package/esm2015/app/eo-framework/settings/change-password/change-password-form/change-password-form.component.js +1 -1
  42. package/esm2015/app/eo-framework/ui/clipboard/clipboard.component.js +2 -2
  43. package/esm2015/app/eo-framework/ui/indexdata-summary/indexdata-summary.component.js +4 -4
  44. package/esm2015/app/eo-framework/ui/overlay/overlay.component.js +10 -4
  45. package/esm2015/app/eo-framework/ui/user-avatar/user-avatar.component.js +15 -9
  46. package/esm2015/app/eo-framework/util/directive/trap-focus.directive.js +22 -4
  47. package/esm2015/projects/eo-sdk/core/lib/model/dms-object.model.js +4 -1
  48. package/esm2015/projects/eo-sdk/core/lib/service/dms/dms.service.js +2 -1
  49. package/esm2015/projects/eo-sdk/core/lib/service/search/search-query.model.js +5 -5
  50. package/esm2015/projects/eo-sdk/core/lib/service/search/search.service.js +2 -1
  51. package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js +9 -4
  52. package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js.map +1 -1
  53. package/fesm2015/eo-sdk-client.js +161 -155
  54. package/fesm2015/eo-sdk-client.js.map +1 -1
  55. package/package.json +2 -2
  56. package/projects/eo-sdk/core/eo-sdk-client-projects-eo-sdk-core.metadata.json +1 -1
  57. package/projects/eo-sdk/core/lib/model/dms-object.model.d.ts +4 -0
  58. package/projects/eo-sdk/core/lib/service/search/search-query.model.d.ts +3 -1
  59. package/projects/eo-sdk/core/package.json +1 -1
  60. package/scss/_form.scss +3 -0
  61. package/styles.css +2 -0
  62. package/assets/_default/api/pdf/LICENSE +0 -177
  63. package/assets/_default/api/pdf/build/pdf.js +0 -2
  64. package/assets/_default/api/pdf/build/pdf.js.LICENSE.txt +0 -21
  65. package/assets/_default/api/pdf/build/pdf.js.map +0 -1
  66. package/assets/_default/api/pdf/build/pdf.sandbox.js +0 -2
  67. package/assets/_default/api/pdf/build/pdf.sandbox.js.LICENSE.txt +0 -21
  68. package/assets/_default/api/pdf/build/pdf.sandbox.js.map +0 -1
  69. package/assets/_default/api/pdf/build/pdf.worker.js +0 -2
  70. package/assets/_default/api/pdf/build/pdf.worker.js.LICENSE.txt +0 -21
  71. package/assets/_default/api/pdf/build/pdf.worker.js.map +0 -1
  72. package/assets/_default/api/pdf/web/cmaps/78-EUC-H.bcmap +0 -0
  73. package/assets/_default/api/pdf/web/cmaps/78-EUC-V.bcmap +0 -0
  74. package/assets/_default/api/pdf/web/cmaps/78-H.bcmap +0 -0
  75. package/assets/_default/api/pdf/web/cmaps/78-RKSJ-H.bcmap +0 -0
  76. package/assets/_default/api/pdf/web/cmaps/78-RKSJ-V.bcmap +0 -0
  77. package/assets/_default/api/pdf/web/cmaps/78-V.bcmap +0 -0
  78. package/assets/_default/api/pdf/web/cmaps/78ms-RKSJ-H.bcmap +0 -0
  79. package/assets/_default/api/pdf/web/cmaps/78ms-RKSJ-V.bcmap +0 -0
  80. package/assets/_default/api/pdf/web/cmaps/83pv-RKSJ-H.bcmap +0 -0
  81. package/assets/_default/api/pdf/web/cmaps/90ms-RKSJ-H.bcmap +0 -0
  82. package/assets/_default/api/pdf/web/cmaps/90ms-RKSJ-V.bcmap +0 -0
  83. package/assets/_default/api/pdf/web/cmaps/90msp-RKSJ-H.bcmap +0 -0
  84. package/assets/_default/api/pdf/web/cmaps/90msp-RKSJ-V.bcmap +0 -0
  85. package/assets/_default/api/pdf/web/cmaps/90pv-RKSJ-H.bcmap +0 -0
  86. package/assets/_default/api/pdf/web/cmaps/90pv-RKSJ-V.bcmap +0 -0
  87. package/assets/_default/api/pdf/web/cmaps/Add-H.bcmap +0 -0
  88. package/assets/_default/api/pdf/web/cmaps/Add-RKSJ-H.bcmap +0 -0
  89. package/assets/_default/api/pdf/web/cmaps/Add-RKSJ-V.bcmap +0 -0
  90. package/assets/_default/api/pdf/web/cmaps/Add-V.bcmap +0 -0
  91. package/assets/_default/api/pdf/web/cmaps/Adobe-CNS1-0.bcmap +0 -0
  92. package/assets/_default/api/pdf/web/cmaps/Adobe-CNS1-1.bcmap +0 -0
  93. package/assets/_default/api/pdf/web/cmaps/Adobe-CNS1-2.bcmap +0 -0
  94. package/assets/_default/api/pdf/web/cmaps/Adobe-CNS1-3.bcmap +0 -0
  95. package/assets/_default/api/pdf/web/cmaps/Adobe-CNS1-4.bcmap +0 -0
  96. package/assets/_default/api/pdf/web/cmaps/Adobe-CNS1-5.bcmap +0 -0
  97. package/assets/_default/api/pdf/web/cmaps/Adobe-CNS1-6.bcmap +0 -0
  98. package/assets/_default/api/pdf/web/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  99. package/assets/_default/api/pdf/web/cmaps/Adobe-GB1-0.bcmap +0 -0
  100. package/assets/_default/api/pdf/web/cmaps/Adobe-GB1-1.bcmap +0 -0
  101. package/assets/_default/api/pdf/web/cmaps/Adobe-GB1-2.bcmap +0 -0
  102. package/assets/_default/api/pdf/web/cmaps/Adobe-GB1-3.bcmap +0 -0
  103. package/assets/_default/api/pdf/web/cmaps/Adobe-GB1-4.bcmap +0 -0
  104. package/assets/_default/api/pdf/web/cmaps/Adobe-GB1-5.bcmap +0 -0
  105. package/assets/_default/api/pdf/web/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  106. package/assets/_default/api/pdf/web/cmaps/Adobe-Japan1-0.bcmap +0 -0
  107. package/assets/_default/api/pdf/web/cmaps/Adobe-Japan1-1.bcmap +0 -0
  108. package/assets/_default/api/pdf/web/cmaps/Adobe-Japan1-2.bcmap +0 -0
  109. package/assets/_default/api/pdf/web/cmaps/Adobe-Japan1-3.bcmap +0 -0
  110. package/assets/_default/api/pdf/web/cmaps/Adobe-Japan1-4.bcmap +0 -0
  111. package/assets/_default/api/pdf/web/cmaps/Adobe-Japan1-5.bcmap +0 -0
  112. package/assets/_default/api/pdf/web/cmaps/Adobe-Japan1-6.bcmap +0 -0
  113. package/assets/_default/api/pdf/web/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  114. package/assets/_default/api/pdf/web/cmaps/Adobe-Korea1-0.bcmap +0 -0
  115. package/assets/_default/api/pdf/web/cmaps/Adobe-Korea1-1.bcmap +0 -0
  116. package/assets/_default/api/pdf/web/cmaps/Adobe-Korea1-2.bcmap +0 -0
  117. package/assets/_default/api/pdf/web/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  118. package/assets/_default/api/pdf/web/cmaps/B5-H.bcmap +0 -0
  119. package/assets/_default/api/pdf/web/cmaps/B5-V.bcmap +0 -0
  120. package/assets/_default/api/pdf/web/cmaps/B5pc-H.bcmap +0 -0
  121. package/assets/_default/api/pdf/web/cmaps/B5pc-V.bcmap +0 -0
  122. package/assets/_default/api/pdf/web/cmaps/CNS-EUC-H.bcmap +0 -0
  123. package/assets/_default/api/pdf/web/cmaps/CNS-EUC-V.bcmap +0 -0
  124. package/assets/_default/api/pdf/web/cmaps/CNS1-H.bcmap +0 -0
  125. package/assets/_default/api/pdf/web/cmaps/CNS1-V.bcmap +0 -0
  126. package/assets/_default/api/pdf/web/cmaps/CNS2-H.bcmap +0 -0
  127. package/assets/_default/api/pdf/web/cmaps/CNS2-V.bcmap +0 -3
  128. package/assets/_default/api/pdf/web/cmaps/ETHK-B5-H.bcmap +0 -0
  129. package/assets/_default/api/pdf/web/cmaps/ETHK-B5-V.bcmap +0 -0
  130. package/assets/_default/api/pdf/web/cmaps/ETen-B5-H.bcmap +0 -0
  131. package/assets/_default/api/pdf/web/cmaps/ETen-B5-V.bcmap +0 -0
  132. package/assets/_default/api/pdf/web/cmaps/ETenms-B5-H.bcmap +0 -3
  133. package/assets/_default/api/pdf/web/cmaps/ETenms-B5-V.bcmap +0 -0
  134. package/assets/_default/api/pdf/web/cmaps/EUC-H.bcmap +0 -0
  135. package/assets/_default/api/pdf/web/cmaps/EUC-V.bcmap +0 -0
  136. package/assets/_default/api/pdf/web/cmaps/Ext-H.bcmap +0 -0
  137. package/assets/_default/api/pdf/web/cmaps/Ext-RKSJ-H.bcmap +0 -0
  138. package/assets/_default/api/pdf/web/cmaps/Ext-RKSJ-V.bcmap +0 -0
  139. package/assets/_default/api/pdf/web/cmaps/Ext-V.bcmap +0 -0
  140. package/assets/_default/api/pdf/web/cmaps/GB-EUC-H.bcmap +0 -0
  141. package/assets/_default/api/pdf/web/cmaps/GB-EUC-V.bcmap +0 -0
  142. package/assets/_default/api/pdf/web/cmaps/GB-H.bcmap +0 -4
  143. package/assets/_default/api/pdf/web/cmaps/GB-V.bcmap +0 -0
  144. package/assets/_default/api/pdf/web/cmaps/GBK-EUC-H.bcmap +0 -0
  145. package/assets/_default/api/pdf/web/cmaps/GBK-EUC-V.bcmap +0 -0
  146. package/assets/_default/api/pdf/web/cmaps/GBK2K-H.bcmap +0 -0
  147. package/assets/_default/api/pdf/web/cmaps/GBK2K-V.bcmap +0 -0
  148. package/assets/_default/api/pdf/web/cmaps/GBKp-EUC-H.bcmap +0 -0
  149. package/assets/_default/api/pdf/web/cmaps/GBKp-EUC-V.bcmap +0 -0
  150. package/assets/_default/api/pdf/web/cmaps/GBT-EUC-H.bcmap +0 -0
  151. package/assets/_default/api/pdf/web/cmaps/GBT-EUC-V.bcmap +0 -0
  152. package/assets/_default/api/pdf/web/cmaps/GBT-H.bcmap +0 -0
  153. package/assets/_default/api/pdf/web/cmaps/GBT-V.bcmap +0 -0
  154. package/assets/_default/api/pdf/web/cmaps/GBTpc-EUC-H.bcmap +0 -0
  155. package/assets/_default/api/pdf/web/cmaps/GBTpc-EUC-V.bcmap +0 -0
  156. package/assets/_default/api/pdf/web/cmaps/GBpc-EUC-H.bcmap +0 -0
  157. package/assets/_default/api/pdf/web/cmaps/GBpc-EUC-V.bcmap +0 -0
  158. package/assets/_default/api/pdf/web/cmaps/H.bcmap +0 -0
  159. package/assets/_default/api/pdf/web/cmaps/HKdla-B5-H.bcmap +0 -0
  160. package/assets/_default/api/pdf/web/cmaps/HKdla-B5-V.bcmap +0 -0
  161. package/assets/_default/api/pdf/web/cmaps/HKdlb-B5-H.bcmap +0 -0
  162. package/assets/_default/api/pdf/web/cmaps/HKdlb-B5-V.bcmap +0 -0
  163. package/assets/_default/api/pdf/web/cmaps/HKgccs-B5-H.bcmap +0 -0
  164. package/assets/_default/api/pdf/web/cmaps/HKgccs-B5-V.bcmap +0 -0
  165. package/assets/_default/api/pdf/web/cmaps/HKm314-B5-H.bcmap +0 -0
  166. package/assets/_default/api/pdf/web/cmaps/HKm314-B5-V.bcmap +0 -0
  167. package/assets/_default/api/pdf/web/cmaps/HKm471-B5-H.bcmap +0 -0
  168. package/assets/_default/api/pdf/web/cmaps/HKm471-B5-V.bcmap +0 -0
  169. package/assets/_default/api/pdf/web/cmaps/HKscs-B5-H.bcmap +0 -0
  170. package/assets/_default/api/pdf/web/cmaps/HKscs-B5-V.bcmap +0 -0
  171. package/assets/_default/api/pdf/web/cmaps/Hankaku.bcmap +0 -0
  172. package/assets/_default/api/pdf/web/cmaps/Hiragana.bcmap +0 -0
  173. package/assets/_default/api/pdf/web/cmaps/KSC-EUC-H.bcmap +0 -0
  174. package/assets/_default/api/pdf/web/cmaps/KSC-EUC-V.bcmap +0 -0
  175. package/assets/_default/api/pdf/web/cmaps/KSC-H.bcmap +0 -0
  176. package/assets/_default/api/pdf/web/cmaps/KSC-Johab-H.bcmap +0 -0
  177. package/assets/_default/api/pdf/web/cmaps/KSC-Johab-V.bcmap +0 -0
  178. package/assets/_default/api/pdf/web/cmaps/KSC-V.bcmap +0 -0
  179. package/assets/_default/api/pdf/web/cmaps/KSCms-UHC-H.bcmap +0 -0
  180. package/assets/_default/api/pdf/web/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  181. package/assets/_default/api/pdf/web/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  182. package/assets/_default/api/pdf/web/cmaps/KSCms-UHC-V.bcmap +0 -0
  183. package/assets/_default/api/pdf/web/cmaps/KSCpc-EUC-H.bcmap +0 -0
  184. package/assets/_default/api/pdf/web/cmaps/KSCpc-EUC-V.bcmap +0 -0
  185. package/assets/_default/api/pdf/web/cmaps/Katakana.bcmap +0 -0
  186. package/assets/_default/api/pdf/web/cmaps/LICENSE +0 -36
  187. package/assets/_default/api/pdf/web/cmaps/NWP-H.bcmap +0 -0
  188. package/assets/_default/api/pdf/web/cmaps/NWP-V.bcmap +0 -0
  189. package/assets/_default/api/pdf/web/cmaps/RKSJ-H.bcmap +0 -0
  190. package/assets/_default/api/pdf/web/cmaps/RKSJ-V.bcmap +0 -0
  191. package/assets/_default/api/pdf/web/cmaps/Roman.bcmap +0 -0
  192. package/assets/_default/api/pdf/web/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  193. package/assets/_default/api/pdf/web/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  194. package/assets/_default/api/pdf/web/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  195. package/assets/_default/api/pdf/web/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  196. package/assets/_default/api/pdf/web/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  197. package/assets/_default/api/pdf/web/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  198. package/assets/_default/api/pdf/web/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  199. package/assets/_default/api/pdf/web/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  200. package/assets/_default/api/pdf/web/cmaps/UniGB-UCS2-H.bcmap +0 -0
  201. package/assets/_default/api/pdf/web/cmaps/UniGB-UCS2-V.bcmap +0 -0
  202. package/assets/_default/api/pdf/web/cmaps/UniGB-UTF16-H.bcmap +0 -0
  203. package/assets/_default/api/pdf/web/cmaps/UniGB-UTF16-V.bcmap +0 -0
  204. package/assets/_default/api/pdf/web/cmaps/UniGB-UTF32-H.bcmap +0 -0
  205. package/assets/_default/api/pdf/web/cmaps/UniGB-UTF32-V.bcmap +0 -0
  206. package/assets/_default/api/pdf/web/cmaps/UniGB-UTF8-H.bcmap +0 -0
  207. package/assets/_default/api/pdf/web/cmaps/UniGB-UTF8-V.bcmap +0 -0
  208. package/assets/_default/api/pdf/web/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  209. package/assets/_default/api/pdf/web/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  210. package/assets/_default/api/pdf/web/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  211. package/assets/_default/api/pdf/web/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  212. package/assets/_default/api/pdf/web/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  213. package/assets/_default/api/pdf/web/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  214. package/assets/_default/api/pdf/web/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  215. package/assets/_default/api/pdf/web/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  216. package/assets/_default/api/pdf/web/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  217. package/assets/_default/api/pdf/web/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  218. package/assets/_default/api/pdf/web/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  219. package/assets/_default/api/pdf/web/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  220. package/assets/_default/api/pdf/web/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  221. package/assets/_default/api/pdf/web/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  222. package/assets/_default/api/pdf/web/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  223. package/assets/_default/api/pdf/web/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  224. package/assets/_default/api/pdf/web/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  225. package/assets/_default/api/pdf/web/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  226. package/assets/_default/api/pdf/web/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  227. package/assets/_default/api/pdf/web/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  228. package/assets/_default/api/pdf/web/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  229. package/assets/_default/api/pdf/web/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  230. package/assets/_default/api/pdf/web/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  231. package/assets/_default/api/pdf/web/cmaps/UniKS-UCS2-H.bcmap +0 -0
  232. package/assets/_default/api/pdf/web/cmaps/UniKS-UCS2-V.bcmap +0 -0
  233. package/assets/_default/api/pdf/web/cmaps/UniKS-UTF16-H.bcmap +0 -0
  234. package/assets/_default/api/pdf/web/cmaps/UniKS-UTF16-V.bcmap +0 -0
  235. package/assets/_default/api/pdf/web/cmaps/UniKS-UTF32-H.bcmap +0 -0
  236. package/assets/_default/api/pdf/web/cmaps/UniKS-UTF32-V.bcmap +0 -0
  237. package/assets/_default/api/pdf/web/cmaps/UniKS-UTF8-H.bcmap +0 -0
  238. package/assets/_default/api/pdf/web/cmaps/UniKS-UTF8-V.bcmap +0 -0
  239. package/assets/_default/api/pdf/web/cmaps/V.bcmap +0 -0
  240. package/assets/_default/api/pdf/web/cmaps/WP-Symbol.bcmap +0 -0
  241. package/assets/_default/api/pdf/web/compressed.tracemonkey-pldi-09.pdf +0 -0
  242. package/assets/_default/api/pdf/web/debugger.js +0 -1
  243. package/assets/_default/api/pdf/web/images/annotation-check.svg +0 -11
  244. package/assets/_default/api/pdf/web/images/annotation-comment.svg +0 -16
  245. package/assets/_default/api/pdf/web/images/annotation-help.svg +0 -26
  246. package/assets/_default/api/pdf/web/images/annotation-insert.svg +0 -10
  247. package/assets/_default/api/pdf/web/images/annotation-key.svg +0 -11
  248. package/assets/_default/api/pdf/web/images/annotation-newparagraph.svg +0 -11
  249. package/assets/_default/api/pdf/web/images/annotation-noicon.svg +0 -7
  250. package/assets/_default/api/pdf/web/images/annotation-note.svg +0 -42
  251. package/assets/_default/api/pdf/web/images/annotation-paragraph.svg +0 -16
  252. package/assets/_default/api/pdf/web/images/findbarButton-next.svg +0 -4
  253. package/assets/_default/api/pdf/web/images/findbarButton-previous.svg +0 -4
  254. package/assets/_default/api/pdf/web/images/grab.cur +0 -0
  255. package/assets/_default/api/pdf/web/images/grabbing.cur +0 -0
  256. package/assets/_default/api/pdf/web/images/loading-dark.svg +0 -24
  257. package/assets/_default/api/pdf/web/images/loading-icon.gif +0 -0
  258. package/assets/_default/api/pdf/web/images/loading.svg +0 -1
  259. package/assets/_default/api/pdf/web/images/secondaryToolbarButton-documentProperties.svg +0 -15
  260. package/assets/_default/api/pdf/web/images/secondaryToolbarButton-firstPage.svg +0 -1
  261. package/assets/_default/api/pdf/web/images/secondaryToolbarButton-handTool.svg +0 -1
  262. package/assets/_default/api/pdf/web/images/secondaryToolbarButton-lastPage.svg +0 -1
  263. package/assets/_default/api/pdf/web/images/secondaryToolbarButton-rotateCcw.svg +0 -1
  264. package/assets/_default/api/pdf/web/images/secondaryToolbarButton-rotateCw.svg +0 -4
  265. package/assets/_default/api/pdf/web/images/secondaryToolbarButton-scrollHorizontal.svg +0 -1
  266. package/assets/_default/api/pdf/web/images/secondaryToolbarButton-scrollVertical.svg +0 -1
  267. package/assets/_default/api/pdf/web/images/secondaryToolbarButton-scrollWrapped.svg +0 -1
  268. package/assets/_default/api/pdf/web/images/secondaryToolbarButton-selectTool.svg +0 -4
  269. package/assets/_default/api/pdf/web/images/secondaryToolbarButton-spreadEven.svg +0 -1
  270. package/assets/_default/api/pdf/web/images/secondaryToolbarButton-spreadNone.svg +0 -1
  271. package/assets/_default/api/pdf/web/images/secondaryToolbarButton-spreadOdd.svg +0 -1
  272. package/assets/_default/api/pdf/web/images/shadow.png +0 -0
  273. package/assets/_default/api/pdf/web/images/toolbarButton-bookmark.svg +0 -1
  274. package/assets/_default/api/pdf/web/images/toolbarButton-currentOutlineItem.svg +0 -1
  275. package/assets/_default/api/pdf/web/images/toolbarButton-download.svg +0 -4
  276. package/assets/_default/api/pdf/web/images/toolbarButton-menuArrow.svg +0 -1
  277. package/assets/_default/api/pdf/web/images/toolbarButton-openFile.svg +0 -4
  278. package/assets/_default/api/pdf/web/images/toolbarButton-pageDown.svg +0 -7
  279. package/assets/_default/api/pdf/web/images/toolbarButton-pageUp.svg +0 -12
  280. package/assets/_default/api/pdf/web/images/toolbarButton-presentationMode.svg +0 -1
  281. package/assets/_default/api/pdf/web/images/toolbarButton-print.svg +0 -4
  282. package/assets/_default/api/pdf/web/images/toolbarButton-search.svg +0 -4
  283. package/assets/_default/api/pdf/web/images/toolbarButton-secondaryToolbarToggle.svg +0 -4
  284. package/assets/_default/api/pdf/web/images/toolbarButton-sidebarToggle.svg +0 -4
  285. package/assets/_default/api/pdf/web/images/toolbarButton-viewAttachments.svg +0 -1
  286. package/assets/_default/api/pdf/web/images/toolbarButton-viewLayers.svg +0 -1
  287. package/assets/_default/api/pdf/web/images/toolbarButton-viewOutline.svg +0 -1
  288. package/assets/_default/api/pdf/web/images/toolbarButton-viewThumbnail.svg +0 -4
  289. package/assets/_default/api/pdf/web/images/toolbarButton-zoomIn.svg +0 -4
  290. package/assets/_default/api/pdf/web/images/toolbarButton-zoomOut.svg +0 -4
  291. package/assets/_default/api/pdf/web/images/treeitem-collapsed.svg +0 -1
  292. package/assets/_default/api/pdf/web/images/treeitem-expanded.svg +0 -1
  293. package/assets/_default/api/pdf/web/locale/ach/viewer.properties +0 -199
  294. package/assets/_default/api/pdf/web/locale/af/viewer.properties +0 -176
  295. package/assets/_default/api/pdf/web/locale/an/viewer.properties +0 -242
  296. package/assets/_default/api/pdf/web/locale/ar/viewer.properties +0 -246
  297. package/assets/_default/api/pdf/web/locale/ast/viewer.properties +0 -207
  298. package/assets/_default/api/pdf/web/locale/az/viewer.properties +0 -242
  299. package/assets/_default/api/pdf/web/locale/be/viewer.properties +0 -248
  300. package/assets/_default/api/pdf/web/locale/bg/viewer.properties +0 -234
  301. package/assets/_default/api/pdf/web/locale/bn/viewer.properties +0 -236
  302. package/assets/_default/api/pdf/web/locale/bo/viewer.properties +0 -237
  303. package/assets/_default/api/pdf/web/locale/br/viewer.properties +0 -246
  304. package/assets/_default/api/pdf/web/locale/brx/viewer.properties +0 -204
  305. package/assets/_default/api/pdf/web/locale/bs/viewer.properties +0 -193
  306. package/assets/_default/api/pdf/web/locale/ca/viewer.properties +0 -250
  307. package/assets/_default/api/pdf/web/locale/cak/viewer.properties +0 -248
  308. package/assets/_default/api/pdf/web/locale/ckb/viewer.properties +0 -233
  309. package/assets/_default/api/pdf/web/locale/cs/viewer.properties +0 -248
  310. package/assets/_default/api/pdf/web/locale/cy/viewer.properties +0 -248
  311. package/assets/_default/api/pdf/web/locale/da/viewer.properties +0 -248
  312. package/assets/_default/api/pdf/web/locale/de/viewer.properties +0 -248
  313. package/assets/_default/api/pdf/web/locale/dsb/viewer.properties +0 -248
  314. package/assets/_default/api/pdf/web/locale/el/viewer.properties +0 -248
  315. package/assets/_default/api/pdf/web/locale/en-CA/viewer.properties +0 -248
  316. package/assets/_default/api/pdf/web/locale/en-GB/viewer.properties +0 -248
  317. package/assets/_default/api/pdf/web/locale/en-US/viewer.properties +0 -248
  318. package/assets/_default/api/pdf/web/locale/eo/viewer.properties +0 -248
  319. package/assets/_default/api/pdf/web/locale/es-AR/viewer.properties +0 -248
  320. package/assets/_default/api/pdf/web/locale/es-CL/viewer.properties +0 -248
  321. package/assets/_default/api/pdf/web/locale/es-ES/viewer.properties +0 -248
  322. package/assets/_default/api/pdf/web/locale/es-MX/viewer.properties +0 -248
  323. package/assets/_default/api/pdf/web/locale/et/viewer.properties +0 -238
  324. package/assets/_default/api/pdf/web/locale/eu/viewer.properties +0 -248
  325. package/assets/_default/api/pdf/web/locale/fa/viewer.properties +0 -215
  326. package/assets/_default/api/pdf/web/locale/ff/viewer.properties +0 -234
  327. package/assets/_default/api/pdf/web/locale/fi/viewer.properties +0 -248
  328. package/assets/_default/api/pdf/web/locale/fr/viewer.properties +0 -248
  329. package/assets/_default/api/pdf/web/locale/fy-NL/viewer.properties +0 -248
  330. package/assets/_default/api/pdf/web/locale/ga-IE/viewer.properties +0 -176
  331. package/assets/_default/api/pdf/web/locale/gd/viewer.properties +0 -248
  332. package/assets/_default/api/pdf/web/locale/gl/viewer.properties +0 -248
  333. package/assets/_default/api/pdf/web/locale/gn/viewer.properties +0 -248
  334. package/assets/_default/api/pdf/web/locale/gu-IN/viewer.properties +0 -234
  335. package/assets/_default/api/pdf/web/locale/he/viewer.properties +0 -248
  336. package/assets/_default/api/pdf/web/locale/hi-IN/viewer.properties +0 -234
  337. package/assets/_default/api/pdf/web/locale/hr/viewer.properties +0 -248
  338. package/assets/_default/api/pdf/web/locale/hsb/viewer.properties +0 -248
  339. package/assets/_default/api/pdf/web/locale/hu/viewer.properties +0 -248
  340. package/assets/_default/api/pdf/web/locale/hy-AM/viewer.properties +0 -238
  341. package/assets/_default/api/pdf/web/locale/hye/viewer.properties +0 -244
  342. package/assets/_default/api/pdf/web/locale/ia/viewer.properties +0 -248
  343. package/assets/_default/api/pdf/web/locale/id/viewer.properties +0 -248
  344. package/assets/_default/api/pdf/web/locale/is/viewer.properties +0 -231
  345. package/assets/_default/api/pdf/web/locale/it/viewer.properties +0 -190
  346. package/assets/_default/api/pdf/web/locale/ja/viewer.properties +0 -259
  347. package/assets/_default/api/pdf/web/locale/ka/viewer.properties +0 -248
  348. package/assets/_default/api/pdf/web/locale/kab/viewer.properties +0 -248
  349. package/assets/_default/api/pdf/web/locale/kk/viewer.properties +0 -248
  350. package/assets/_default/api/pdf/web/locale/km/viewer.properties +0 -209
  351. package/assets/_default/api/pdf/web/locale/kn/viewer.properties +0 -186
  352. package/assets/_default/api/pdf/web/locale/ko/viewer.properties +0 -248
  353. package/assets/_default/api/pdf/web/locale/lij/viewer.properties +0 -234
  354. package/assets/_default/api/pdf/web/locale/lo/viewer.properties +0 -145
  355. package/assets/_default/api/pdf/web/locale/locale.properties +0 -321
  356. package/assets/_default/api/pdf/web/locale/lt/viewer.properties +0 -248
  357. package/assets/_default/api/pdf/web/locale/ltg/viewer.properties +0 -212
  358. package/assets/_default/api/pdf/web/locale/lv/viewer.properties +0 -234
  359. package/assets/_default/api/pdf/web/locale/meh/viewer.properties +0 -111
  360. package/assets/_default/api/pdf/web/locale/mk/viewer.properties +0 -138
  361. package/assets/_default/api/pdf/web/locale/mr/viewer.properties +0 -230
  362. package/assets/_default/api/pdf/web/locale/ms/viewer.properties +0 -234
  363. package/assets/_default/api/pdf/web/locale/my/viewer.properties +0 -190
  364. package/assets/_default/api/pdf/web/locale/nb-NO/viewer.properties +0 -248
  365. package/assets/_default/api/pdf/web/locale/ne-NP/viewer.properties +0 -176
  366. package/assets/_default/api/pdf/web/locale/nl/viewer.properties +0 -248
  367. package/assets/_default/api/pdf/web/locale/nn-NO/viewer.properties +0 -248
  368. package/assets/_default/api/pdf/web/locale/oc/viewer.properties +0 -248
  369. package/assets/_default/api/pdf/web/locale/pa-IN/viewer.properties +0 -248
  370. package/assets/_default/api/pdf/web/locale/pl/viewer.properties +0 -248
  371. package/assets/_default/api/pdf/web/locale/pt-BR/viewer.properties +0 -248
  372. package/assets/_default/api/pdf/web/locale/pt-PT/viewer.properties +0 -248
  373. package/assets/_default/api/pdf/web/locale/rm/viewer.properties +0 -248
  374. package/assets/_default/api/pdf/web/locale/ro/viewer.properties +0 -240
  375. package/assets/_default/api/pdf/web/locale/ru/viewer.properties +0 -248
  376. package/assets/_default/api/pdf/web/locale/scn/viewer.properties +0 -101
  377. package/assets/_default/api/pdf/web/locale/sco/viewer.properties +0 -248
  378. package/assets/_default/api/pdf/web/locale/si/viewer.properties +0 -201
  379. package/assets/_default/api/pdf/web/locale/sk/viewer.properties +0 -248
  380. package/assets/_default/api/pdf/web/locale/sl/viewer.properties +0 -248
  381. package/assets/_default/api/pdf/web/locale/son/viewer.properties +0 -172
  382. package/assets/_default/api/pdf/web/locale/sq/viewer.properties +0 -235
  383. package/assets/_default/api/pdf/web/locale/sr/viewer.properties +0 -250
  384. package/assets/_default/api/pdf/web/locale/sv-SE/viewer.properties +0 -248
  385. package/assets/_default/api/pdf/web/locale/szl/viewer.properties +0 -246
  386. package/assets/_default/api/pdf/web/locale/ta/viewer.properties +0 -193
  387. package/assets/_default/api/pdf/web/locale/te/viewer.properties +0 -217
  388. package/assets/_default/api/pdf/web/locale/tg/viewer.properties +0 -142
  389. package/assets/_default/api/pdf/web/locale/th/viewer.properties +0 -248
  390. package/assets/_default/api/pdf/web/locale/tl/viewer.properties +0 -242
  391. package/assets/_default/api/pdf/web/locale/tr/viewer.properties +0 -248
  392. package/assets/_default/api/pdf/web/locale/trs/viewer.properties +0 -206
  393. package/assets/_default/api/pdf/web/locale/uk/viewer.properties +0 -248
  394. package/assets/_default/api/pdf/web/locale/ur/viewer.properties +0 -238
  395. package/assets/_default/api/pdf/web/locale/uz/viewer.properties +0 -162
  396. package/assets/_default/api/pdf/web/locale/vi/viewer.properties +0 -248
  397. package/assets/_default/api/pdf/web/locale/wo/viewer.properties +0 -122
  398. package/assets/_default/api/pdf/web/locale/xh/viewer.properties +0 -176
  399. package/assets/_default/api/pdf/web/locale/zh-CN/viewer.properties +0 -248
  400. package/assets/_default/api/pdf/web/locale/zh-TW/viewer.properties +0 -248
  401. package/assets/_default/api/pdf/web/standard_fonts/FoxitDingbats.pfb +0 -0
  402. package/assets/_default/api/pdf/web/standard_fonts/FoxitFixed.pfb +0 -0
  403. package/assets/_default/api/pdf/web/standard_fonts/FoxitFixedBold.pfb +0 -0
  404. package/assets/_default/api/pdf/web/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  405. package/assets/_default/api/pdf/web/standard_fonts/FoxitFixedItalic.pfb +0 -0
  406. package/assets/_default/api/pdf/web/standard_fonts/FoxitSans.pfb +0 -0
  407. package/assets/_default/api/pdf/web/standard_fonts/FoxitSansBold.pfb +0 -0
  408. package/assets/_default/api/pdf/web/standard_fonts/FoxitSansBoldItalic.pfb +0 -0
  409. package/assets/_default/api/pdf/web/standard_fonts/FoxitSansItalic.pfb +0 -0
  410. package/assets/_default/api/pdf/web/standard_fonts/FoxitSerif.pfb +0 -0
  411. package/assets/_default/api/pdf/web/standard_fonts/FoxitSerifBold.pfb +0 -0
  412. package/assets/_default/api/pdf/web/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  413. package/assets/_default/api/pdf/web/standard_fonts/FoxitSerifItalic.pfb +0 -0
  414. package/assets/_default/api/pdf/web/standard_fonts/FoxitSymbol.pfb +0 -0
  415. package/assets/_default/api/pdf/web/standard_fonts/LICENSE_FOXIT +0 -27
  416. package/assets/_default/api/pdf/web/standard_fonts/LICENSE_LIBERATION +0 -102
  417. package/assets/_default/api/pdf/web/standard_fonts/LiberationSans-Bold.ttf +0 -0
  418. package/assets/_default/api/pdf/web/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  419. package/assets/_default/api/pdf/web/standard_fonts/LiberationSans-Italic.ttf +0 -0
  420. package/assets/_default/api/pdf/web/standard_fonts/LiberationSans-Regular.ttf +0 -0
  421. package/assets/_default/api/pdf/web/viewer.css +0 -2746
  422. package/assets/_default/api/pdf/web/viewer.html +0 -398
  423. package/assets/_default/api/pdf/web/viewer.js +0 -2
  424. package/assets/_default/api/pdf/web/viewer.js.LICENSE.txt +0 -21
  425. package/assets/_default/api/pdf/web/viewer.js.map +0 -1
@@ -1,2 +0,0 @@
1
- /*! For license information please see pdf.worker.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf.worker",[],t):"object"==typeof exports?exports["pdfjs-dist/build/pdf.worker"]=t():e["pdfjs-dist/build/pdf.worker"]=e.pdfjsWorker=t()}(this,(function(){return(()=>{var e=[,(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerTask=t.WorkerMessageHandler=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(4),o=r(118),s=r(120),c=r(184),l=r(6),u=r(212),f=r(213),h=r(122);function d(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=m(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function p(e,t){return y(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||m(e,t)||g()}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y(e){if(Array.isArray(e))return e}function b(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function w(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){b(i,n,a,o,s,"next",e)}function s(e){b(i,n,a,o,s,"throw",e)}o(void 0)}))}}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function x(e,t,r){return t&&S(e.prototype,t),r&&S(e,r),e}var A=function(){function e(t){k(this,e),this.name=t,this.terminated=!1,this._capability=(0,i.createPromiseCapability)()}return x(e,[{key:"finished",get:function(){return this._capability.promise}},{key:"finish",value:function(){this._capability.resolve()}},{key:"terminate",value:function(){this.terminated=!0}},{key:"ensureNotTerminated",value:function(){if(this.terminated)throw new Error("Worker task was terminated")}}]),e}();t.WorkerTask=A;var O,C=function(){function e(){k(this,e)}return x(e,null,[{key:"setup",value:function(t,r){var n=!1;t.on("test",(function(e){if(!n)if(n=!0,e instanceof Uint8Array){var r=255===e[0];t.postMessageTransfers=r,t.send("test",{supportTransfers:r})}else t.send("test",null)})),t.on("configure",(function(e){(0,i.setVerbosityLevel)(e.verbosity)})),t.on("GetDocRequest",(function(t){return e.createDocumentHandler(t,r)}))}},{key:"createDocumentHandler",value:function(e,t){var r,n=!1,l=null,v=[],b=(0,i.getVerbosityLevel)(),k=e.apiVersion,S="2.11.338";if(k!==S)throw new Error('The API version "'.concat(k,'" does not match ')+'the Worker version "'.concat(S,'".'));var x=[];for(var O in[])x.push(O);if(x.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+x.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");var C=e.docId,F=e.docBaseUrl,T=e.docId+"_worker",I=new u.MessageHandler(T,C,t);function P(){if(n)throw new Error("Worker was terminated")}function _(e){v.push(e)}function E(e){e.finish();var t=v.indexOf(e);v.splice(t,1)}function j(e){return M.apply(this,arguments)}function M(){return(M=w(a.default.mark((function e(t){var n,i,o,s,c,l,u;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.ensureDoc("checkHeader");case 2:return e.next=4,r.ensureDoc("parseStartXRef");case 4:return e.next=6,r.ensureDoc("parse",[t]);case 6:if(t){e.next=9;break}return e.next=9,r.ensureDoc("checkFirstPage");case 9:return e.next=11,r.ensureDoc("isPureXfa");case 11:if(!(n=e.sent)){e.next=17;break}return _(i=new A("loadXfaFonts")),e.next=17,Promise.all([r.loadXfaFonts(I,i).catch((function(e){})).then((function(){return E(i)})),r.loadXfaImages()]);case 17:return e.next=19,Promise.all([r.ensureDoc("numPages"),r.ensureDoc("fingerprints")]);case 19:if(o=e.sent,s=p(o,2),c=s[0],l=s[1],!n){e.next=29;break}return e.next=26,r.ensureDoc("htmlForXfa");case 26:e.t0=e.sent,e.next=30;break;case 29:e.t0=null;case 30:return u=e.t0,e.abrupt("return",{numPages:c,fingerprints:l,htmlForXfa:u});case 32:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return I.postMessageTransfers=e.postMessageTransfers,I.on("GetPage",(function(e){return r.getPage(e.pageIndex).then((function(e){return Promise.all([r.ensure(e,"rotate"),r.ensure(e,"ref"),r.ensure(e,"userUnit"),r.ensure(e,"view")]).then((function(e){var t=p(e,4);return{rotate:t[0],ref:t[1],userUnit:t[2],view:t[3]}}))}))})),I.on("GetPageIndex",(function(e){var t=e.ref,n=o.Ref.get(t.num,t.gen);return r.ensureCatalog("getPageIndex",[n])})),I.on("GetDestinations",(function(e){return r.ensureCatalog("destinations")})),I.on("GetDestination",(function(e){return r.ensureCatalog("getDestination",[e.id])})),I.on("GetPageLabels",(function(e){return r.ensureCatalog("pageLabels")})),I.on("GetPageLayout",(function(e){return r.ensureCatalog("pageLayout")})),I.on("GetPageMode",(function(e){return r.ensureCatalog("pageMode")})),I.on("GetViewerPreferences",(function(e){return r.ensureCatalog("viewerPreferences")})),I.on("GetOpenAction",(function(e){return r.ensureCatalog("openAction")})),I.on("GetAttachments",(function(e){return r.ensureCatalog("attachments")})),I.on("GetJavaScript",(function(e){return r.ensureCatalog("javaScript")})),I.on("GetDocJSActions",(function(e){return r.ensureCatalog("jsActions")})),I.on("GetPageJSActions",(function(e){var t=e.pageIndex;return r.getPage(t).then((function(e){return r.ensure(e,"jsActions")}))})),I.on("GetOutline",(function(e){return r.ensureCatalog("documentOutline")})),I.on("GetOptionalContentConfig",(function(e){return r.ensureCatalog("optionalContentConfig")})),I.on("GetPermissions",(function(e){return r.ensureCatalog("permissions")})),I.on("GetMetadata",(function(e){return Promise.all([r.ensureDoc("documentInfo"),r.ensureCatalog("metadata")])})),I.on("GetMarkInfo",(function(e){return r.ensureCatalog("markInfo")})),I.on("GetData",(function(e){return r.requestLoadedStream(),r.onLoadedStream().then((function(e){return e.bytes}))})),I.on("GetStats",(function(e){return r.ensureXRef("stats")})),I.on("GetAnnotations",(function(e){var t=e.pageIndex,n=e.intent;return r.getPage(t).then((function(e){return e.getAnnotationsData(n)}))})),I.on("GetFieldObjects",(function(e){return r.ensureDoc("fieldObjects")})),I.on("HasJSActions",(function(e){return r.ensureDoc("hasJSActions")})),I.on("GetCalculationOrderIds",(function(e){return r.ensureDoc("calculationOrderIds")})),I.on("SaveDocument",(function(e){var t=e.isPureXfa,n=e.numPages,a=e.annotationStorage,s=e.filename;r.requestLoadedStream();var l=[r.onLoadedStream(),r.ensureCatalog("acroForm"),r.ensureCatalog("acroFormRef"),r.ensureDoc("xref"),r.ensureDoc("startXRef")];if(t)l.push(r.serializeXfaData(a));else for(var u=function(e){l.push(r.getPage(e).then((function(t){var r=new A("Save: page ".concat(e));return t.save(I,r,a).finally((function(){E(r)}))})))},f=0;f<n;f++)u(f);return Promise.all(l).then((function(e){var r,n=y(r=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||m(r)||g(),a=n[0],l=n[1],u=n[2],f=n[3],h=n[4],p=n.slice(5),v=[],b=null;if(t){if(!(b=p[0]))return a.bytes}else{var w,k=d(p);try{for(k.s();!(w=k.n()).done;)v=w.value.filter((function(e){return null!==e})).reduce((function(e,t){return e.concat(t)}),v)}catch(e){k.e(e)}finally{k.f()}if(0===v.length)return a.bytes}var S=l instanceof o.Dict&&l.get("XFA")||null,x=null,A=!1;if(Array.isArray(S)){for(var O=0,C=S.length;O<C;O+=2)"datasets"===S[O]&&(x=S[O+1],u=null,A=!0);null===x&&(x=f.getNewRef())}else S&&(u=null,(0,i.warn)("Unsupported XFA type."));var F=Object.create(null);if(f.trailer){var T=Object.create(null),I=f.trailer.get("Info")||null;I instanceof o.Dict&&I.forEach((function(e,t){(0,i.isString)(e)&&(0,i.isString)(t)&&(T[e]=(0,i.stringToPDFString)(t))})),F={rootRef:f.trailer.getRaw("Root")||null,encryptRef:f.trailer.getRaw("Encrypt")||null,newRef:f.getNewRef(),infoRef:f.trailer.getRaw("Info")||null,info:T,fileIds:f.trailer.get("ID")||null,startXRef:h,filename:s}}return f.resetNewRef(),(0,c.incrementalUpdate)({originalData:a.bytes,xrefInfo:F,newRefs:v,xref:f,hasXfa:!!S,xfaDatasetsRef:x,hasXfaDatasetsEntry:A,acroFormRef:u,acroForm:l,xfaData:b})}))})),I.on("GetOperatorList",(function(e,t){var n=e.pageIndex;r.getPage(n).then((function(r){var a=new A("GetOperatorList: page ".concat(n));_(a);var o=b>=i.VerbosityLevel.INFOS?Date.now():0;r.getOperatorList({handler:I,sink:t,task:a,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage}).then((function(e){E(a),o&&(0,i.info)("page=".concat(n+1," - getOperatorList: time=")+"".concat(Date.now()-o,"ms, len=").concat(e.length)),t.close()}),(function(e){E(a),a.terminated||(I.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorOperatorList}),t.error(e))}))}))})),I.on("GetTextContent",(function(e,t){var n=e.pageIndex;r.getPage(n).then((function(r){var a=new A("GetTextContent: page "+n);_(a);var o=b>=i.VerbosityLevel.INFOS?Date.now():0;r.extractTextContent({handler:I,task:a,sink:t,normalizeWhitespace:e.normalizeWhitespace,includeMarkedContent:e.includeMarkedContent,combineTextItems:e.combineTextItems}).then((function(){E(a),o&&(0,i.info)("page=".concat(n+1," - getTextContent: time=")+"".concat(Date.now()-o,"ms")),t.close()}),(function(e){E(a),a.terminated||t.error(e)}))}))})),I.on("GetStructTree",(function(e){return r.getPage(e.pageIndex).then((function(e){return r.ensure(e,"getStructTree")}))})),I.on("FontFallback",(function(e){return r.fontFallback(e.id,I)})),I.on("Cleanup",(function(e){return r.cleanup(!0)})),I.on("Terminate",(function(e){n=!0;var t=[];if(r){r.terminate(new i.AbortException("Worker was terminated."));var a=r.cleanup();t.push(a),r=null}else(0,o.clearPrimitiveCaches)();l&&l(new i.AbortException("Worker was terminated."));var s,c=d(v);try{for(c.s();!(s=c.n()).done;){var u=s.value;t.push(u.finished),u.terminate()}}catch(e){c.e(e)}finally{c.f()}return Promise.all(t).then((function(){I.destroy(),I=null}))})),I.on("Ready",(function(t){!function(e){function t(e){P(),I.send("GetDoc",{pdfInfo:e})}function a(e){if(P(),e instanceof i.PasswordException){var t=new A("PasswordException: response ".concat(e.code));_(t),I.sendWithPromise("PasswordRequest",e).then((function(e){var n=e.password;E(t),r.updatePassword(n),o()})).catch((function(){E(t),I.send("DocException",e)}))}else e instanceof i.InvalidPDFException||e instanceof i.MissingPDFException||e instanceof i.UnexpectedResponseException||e instanceof i.UnknownErrorException?I.send("DocException",e):I.send("DocException",new i.UnknownErrorException(e.message,e.toString()))}function o(){P(),j(!1).then(t,(function(e){P(),e instanceof h.XRefParseException?(r.requestLoadedStream(),r.onLoadedStream().then((function(){P(),j(!0).then(t,a)}))):a(e)}))}P(),function(e,t,r){var n,a=(0,i.createPromiseCapability)(),o=e.source;if(o.data){try{n=new s.LocalPdfManager(C,o.data,o.password,t,r,F),a.resolve(n)}catch(e){a.reject(e)}return a.promise}var c,u=[];try{c=new f.PDFWorkerStream(I)}catch(e){return a.reject(e),a.promise}var h=c.getFullReader();h.headersReady.then((function(){if(h.isRangeSupported){var e=o.disableAutoFetch||h.isStreamingSupported;n=new s.NetworkPdfManager(C,c,{msgHandler:I,password:o.password,length:h.contentLength,disableAutoFetch:e,rangeChunkSize:o.rangeChunkSize},t,r,F);for(var i=0;i<u.length;i++)n.sendProgressiveData(u[i]);u=[],a.resolve(n),l=null}})).catch((function(e){a.reject(e),l=null}));var d=0;return new Promise((function(e,c){h.read().then((function e(f){var p=f.value,g=f.done;try{if(P(),g)return n||function(){var e=(0,i.arraysToBytes)(u);o.length&&e.length!==o.length&&(0,i.warn)("reported HTTP length is different from actual");try{n=new s.LocalPdfManager(C,e,o.password,t,r,F),a.resolve(n)}catch(e){a.reject(e)}u=[]}(),void(l=null);d+=(0,i.arrayByteLength)(p),h.isStreamingSupported||I.send("DocProgress",{loaded:d,total:Math.max(d,h.contentLength||0)}),n?n.sendProgressiveData(p):u.push(p),h.read().then(e,c)}catch(e){c(e)}}),c)})).catch((function(e){a.reject(e),l=null})),l=function(e){c.cancelAllRequests(e)},a.promise}(e,{maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported,fontExtraProperties:e.fontExtraProperties,useSystemFonts:e.useSystemFonts,cMapUrl:e.cMapUrl,standardFontDataUrl:e.standardFontDataUrl},e.enableXfa).then((function(e){if(n)throw e.terminate(new i.AbortException("Worker was terminated.")),new Error("Worker was terminated");(r=e).onLoadedStream().then((function(e){I.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(o,a)}(e),e=null})),T}},{key:"initializeFromPort",value:function(t){var r=new u.MessageHandler("worker","main",t);e.setup(r,t),r.send("ready",null)}}]),e}();t.WorkerMessageHandler=C,"undefined"==typeof window&&!l.isNodeJS&&"undefined"!=typeof self&&"function"==typeof(O=self).postMessage&&"onmessage"in O&&C.initializeFromPort(self)},(e,t,r)=>{"use strict";e.exports=r(3)},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var a=function(e){var t,r=Object.prototype,a=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),o=new I(n||[]);return i._invoke=function(e,t,r){var n=h;return function(a,i){if(n===p)throw new Error("Generator is already running");if(n===g){if("throw"===a)throw i;return _()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var s=C(o,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var c=f(e,t,r);if("normal"===c.type){if(n=r.done?g:d,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=g,r.method="throw",r.arg=c.arg)}}}(e,r,o),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function b(){}var w={};l(w,o,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(P([])));S&&S!==r&&a.call(S,o)&&(w=S);var x=b.prototype=v.prototype=Object.create(w);function A(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(i,o,s,c){var l=f(e[i],e,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"===n(h)&&a.call(h,"__await")?t.resolve(h.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(h).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}var i;this._invoke=function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return i=i?i.then(a,a):a()}}function C(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var a=f(n,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function F(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(F,this),this.reset(!0)}function P(e){if(e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function r(){for(;++n<e.length;)if(a.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:_}}function _(){return{value:t,done:!0}}return y.prototype=b,l(x,"constructor",b),l(b,"constructor",y),y.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},A(O.prototype),l(O.prototype,s,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var o=new O(u(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},A(x),l(x,c,"Generator"),l(x,o,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,a){return s.type="throw",s.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}("object"===n(e=r.nmd(e))?e.exports:{});try{regeneratorRuntime=a}catch(e){"object"===("undefined"==typeof globalThis?"undefined":n(globalThis))?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}},(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=h(e);if(t){var a=h(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=P,t.arraysToBytes=function(e){var t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];for(var r=0,n=0;n<t;n++)r+=P(e[n]);for(var a=0,i=new Uint8Array(r),o=0;o<t;o++){var s=e[o];s instanceof Uint8Array||(s="string"==typeof s?I(s):new Uint8Array(s));var c=s.byteLength;i.set(s,a),a+=c}return i},t.assert=v,t.bytesToString=function(e){v(null!==e&&"object"===o(e)&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length,r=8192;if(t<r)return String.fromCharCode.apply(null,e);for(var n=[],a=0;a<t;a+=r){var i=Math.min(a+r,t),s=e.subarray(a,i);n.push(String.fromCharCode.apply(null,s))}return n.join("")},t.createObjectURL=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&!r)return URL.createObjectURL(new Blob([e],{type:t}));for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a="data:".concat(t,";base64,"),i=0,o=e.length;i<o;i+=3){var s=255&e[i],c=255&e[i+1],l=255&e[i+2],u=s>>2,f=(3&s)<<4|c>>4,h=i+1<o?(15&c)<<2|l>>6:64,d=i+2<o?63&l:64;a+=n[u]+n[f]+n[h]+n[d]}return a},t.createPromiseCapability=function(){var e=Object.create(null),t=!1;return Object.defineProperty(e,"settled",{get:function(){return t}}),e.promise=new Promise((function(r,n){e.resolve=function(e){t=!0,r(e)},e.reject=function(e){t=!0,n(e)}})),e},t.createValidAbsoluteUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(r&&"string"==typeof e){if(r.addDefaultProtocol&&e.startsWith("www.")){var n=e.match(/\./g);n&&n.length>=2&&(e="http://".concat(e))}if(r.tryConvertEncoding)try{e=D(e)}catch(e){}}var a=t?new URL(e,t):new URL(e);if(y(a))return a}catch(e){}return null},t.escapeString=function(e){return e.replace(/([()\\\n\r])/g,(function(e){return"\n"===e?"\\n":"\r"===e?"\\r":"\\".concat(e)}))},t.getModificationDate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")];return t.join("")},t.getVerbosityLevel=function(){return p},t.info=function(e){p>=d.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===o(e)&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(var r=0,n=e.length;r<n;r++)if(e[r]!==t[r])return!1;return!0},t.isAscii=function(e){return/^[\x00-\x7F]*$/.test(e)},t.isBool=function(e){return"boolean"==typeof e},t.isNum=function(e){return"number"==typeof e},t.isSameOrigin=function(e,t){var r;try{if(!(r=new URL(e)).origin||"null"===r.origin)return!1}catch(e){return!1}var n=new URL(t,r);return r.origin===n.origin},t.isString=function(e){return"string"==typeof e},t.objectFromMap=function(e){var t,r,n=Object.create(null),i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=a(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw o}}}}(e);try{for(i.s();!(t=i.n()).done;){var o=(r=t.value,2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),2!==i.length);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(r)||a(r,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=o[0],c=o[1];n[s]=c}}catch(e){i.e(e)}finally{i.f()}return n},t.objectSize=function(e){return Object.keys(e).length},t.removeNullCharacters=function(e){return"string"!=typeof e?(g("The argument for removeNullCharacters must be a string."),e):e.replace(T,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(p=e)},t.shadow=b,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=I,t.stringToPDFString=function(e){var t=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(var n=2;n<t;n+=2)r.push(String.fromCharCode(e.charCodeAt(n)<<8|e.charCodeAt(n+1)));else if("ÿ"===e[0]&&"þ"===e[1])for(var a=2;a<t;a+=2)r.push(String.fromCharCode(e.charCodeAt(a+1)<<8|e.charCodeAt(a)));else for(var i=0;i<t;++i){var o=B[e.charCodeAt(i)];r.push(o?String.fromCharCode(o):e.charAt(i))}return r.join("")},t.stringToUTF16BEString=function(e){for(var t=["þÿ"],r=0,n=e.length;r<n;r++){var a=e.charCodeAt(r);t.push(String.fromCharCode(a>>8&255),String.fromCharCode(255&a))}return t.join("")},t.stringToUTF8String=D,t.unreachable=m,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=g,t.VerbosityLevel=t.Util=t.UNSUPPORTED_FEATURES=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.IsLittleEndianCached=t.IsEvalSupportedCached=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FontType=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,r(5),t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"},t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var d={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=d,t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},t.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var p=d.WARNINGS;function g(e){p>=d.WARNINGS&&console.log("Warning: ".concat(e))}function m(e){throw new Error(e)}function v(e,t){e||m(t)}function y(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function b(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}var w=function(){function e(t,r){this.constructor===e&&m("Cannot initialize BaseException."),this.message=t,this.name=r}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=w;var k=function(e){c(r,e);var t=u(r);function r(e,n){var a;return s(this,r),(a=t.call(this,e,"PasswordException")).code=n,a}return r}(w);t.PasswordException=k;var S=function(e){c(r,e);var t=u(r);function r(e,n){var a;return s(this,r),(a=t.call(this,e,"UnknownErrorException")).details=n,a}return r}(w);t.UnknownErrorException=S;var x=function(e){c(r,e);var t=u(r);function r(e){return s(this,r),t.call(this,e,"InvalidPDFException")}return r}(w);t.InvalidPDFException=x;var A=function(e){c(r,e);var t=u(r);function r(e){return s(this,r),t.call(this,e,"MissingPDFException")}return r}(w);t.MissingPDFException=A;var O=function(e){c(r,e);var t=u(r);function r(e,n){var a;return s(this,r),(a=t.call(this,e,"UnexpectedResponseException")).status=n,a}return r}(w);t.UnexpectedResponseException=O;var C=function(e){c(r,e);var t=u(r);function r(e){return s(this,r),t.call(this,e,"FormatError")}return r}(w);t.FormatError=C;var F=function(e){c(r,e);var t=u(r);function r(e){return s(this,r),t.call(this,e,"AbortException")}return r}(w);t.AbortException=F;var T=/\x00/g;function I(e){v("string"==typeof e,"Invalid argument for stringToBytes");for(var t=e.length,r=new Uint8Array(t),n=0;n<t;++n)r[n]=255&e.charCodeAt(n);return r}function P(e){return void 0!==e.length?e.length:(v(void 0!==e.byteLength,"arrayByteLength - invalid argument."),e.byteLength)}var _={get value(){return b(this,"value",((e=new Uint8Array(4))[0]=1,1===new Uint32Array(e.buffer,0,1)[0]));var e}};t.IsLittleEndianCached=_;var E={get value(){return b(this,"value",function(){try{return new Function(""),!0}catch(e){return!1}}())}};t.IsEvalSupportedCached=E;var j,M=(j=Array(256).keys(),function(e){if(Array.isArray(e))return i(e)}(j)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(j)||a(j)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){return e.toString(16).padStart(2,"0")})),R=function(){function e(){s(this,e)}var t,r;return t=e,r=[{key:"makeHexColor",value:function(e,t,r){return"#".concat(M[e]).concat(M[t]).concat(M[r])}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}},{key:"applyInverseTransform",value:function(e,t){var r=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]}},{key:"getAxialAlignedBoundingBox",value:function(t,r){var n=e.applyTransform(t,r),a=e.applyTransform(t.slice(2,4),r),i=e.applyTransform([t[0],t[3]],r),o=e.applyTransform([t[2],t[1]],r);return[Math.min(n[0],a[0],i[0],o[0]),Math.min(n[1],a[1],i[1],o[1]),Math.max(n[0],a[0],i[0],o[0]),Math.max(n[1],a[1],i[1],o[1])]}},{key:"inverseTransform",value:function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}},{key:"apply3dTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}},{key:"singularValueDecompose2dScale",value:function(e){var t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],n=e[0]*t[1]+e[1]*t[3],a=e[2]*t[0]+e[3]*t[2],i=e[2]*t[1]+e[3]*t[3],o=(r+i)/2,s=Math.sqrt(Math.pow(r+i,2)-4*(r*i-a*n))/2,c=o+s||1,l=o-s||1;return[Math.sqrt(c),Math.sqrt(l)]}},{key:"normalizeRect",value:function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(t,r){function n(e,t){return e-t}var a=[t[0],t[2],r[0],r[2]].sort(n),i=[t[1],t[3],r[1],r[3]].sort(n),o=[];return t=e.normalizeRect(t),r=e.normalizeRect(r),a[0]===t[0]&&a[1]===r[0]||a[0]===r[0]&&a[1]===t[0]?(o[0]=a[1],o[2]=a[2],i[0]===t[1]&&i[1]===r[1]||i[0]===r[1]&&i[1]===t[1]?(o[1]=i[1],o[3]=i[2],o):null):null}}],null&&n(t.prototype,null),r&&n(t,r),e}();t.Util=R;var B=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function D(e){return decodeURIComponent(escape(e))}},(e,t,r)=>{"use strict";var n=r(6);"undefined"!=typeof globalThis&&globalThis._pdfjsCompatibilityChecked||("undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=r(7)),globalThis._pdfjsCompatibilityChecked=!0,!globalThis.btoa&&n.isNodeJS&&(globalThis.btoa=function(e){return Buffer.from(e,"binary").toString("base64")}),!globalThis.atob&&n.isNodeJS&&(globalThis.atob=function(e){return Buffer.from(e,"base64").toString("binary")}),!globalThis.DOMMatrix&&n.isNodeJS&&(globalThis.DOMMatrix=r(60)),Object.fromEntries||r(61),globalThis.Promise.allSettled||(globalThis.Promise=r(89)),!globalThis.ReadableStream&&n.isNodeJS&&(globalThis.ReadableStream=r(117).ReadableStream))},(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var n=!("object"!==("undefined"==typeof process?"undefined":r(process))||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=n},(e,t,r)=>{r(8),e.exports=r(10)},(e,t,r)=>{r(9)({global:!0},{globalThis:r(10)})},(e,t,r)=>{var n=r(10),a=r(11).f,i=r(40),o=r(43),s=r(34),c=r(49),l=r(59);e.exports=function(e,t){var r,u,f,h,d,p=e.target,g=e.global,m=e.stat;if(r=g?n:m?n[p]||s(p,{}):(n[p]||{}).prototype)for(u in t){if(h=t[u],f=e.noTargetGet?(d=a(r,u))&&d.value:r[u],!l(g?u:p+(m?".":"#")+u,e.forced)&&void 0!==f){if(typeof h==typeof f)continue;c(h,f)}(e.sham||f&&f.sham)&&i(h,"sham",!0),o(r,u,h,e)}}},e=>{var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||Function("return this")()},(e,t,r)=>{var n=r(12),a=r(14),i=r(15),o=r(16),s=r(20),c=r(35),l=r(38),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=o(e),t=s(t),l)try{return u(e,t)}catch(e){}if(c(e,t))return i(!a.f.call(e,t),e[t])}},(e,t,r)=>{var n=r(13);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!r.call({1:2},1);t.f=a?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,r)=>{var n=r(17),a=r(19);e.exports=function(e){return n(a(e))}},(e,t,r)=>{var n=r(13),a=r(18),i="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?i.call(e,""):Object(e)}:Object},e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},(e,t,r)=>{var n=r(21),a=r(23);e.exports=function(e){var t=n(e,"string");return a(t)?t:String(t)}},(e,t,r)=>{var n=r(22),a=r(23),i=r(29),o=r(30)("toPrimitive");e.exports=function(e,t){if(!n(e)||a(e))return e;var r,s=e[o];if(void 0!==s){if(void 0===t&&(t="default"),r=s.call(e,t),!n(r)||a(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),i(e,t)}},e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},(e,t,r)=>{var n=r(24),a=r(25);e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return"function"==typeof t&&Object(e)instanceof t}},(e,t,r)=>{var n=r(10),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(n[e]):n[e]&&n[e][t]}},(e,t,r)=>{var n=r(26);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(e,t,r)=>{var n=r(27),a=r(13);e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},(e,t,r)=>{var n,a,i=r(10),o=r(28),s=i.process,c=i.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u?a=(n=u.split("."))[0]<4?1:n[0]+n[1]:o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(a=n[1]),e.exports=a&&+a},(e,t,r)=>{var n=r(24);e.exports=n("navigator","userAgent")||""},(e,t,r)=>{var n=r(22);e.exports=function(e,t){var r,a;if("string"===t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;if("function"==typeof(r=e.valueOf)&&!n(a=r.call(e)))return a;if("string"!==t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},(e,t,r)=>{var n=r(10),a=r(31),i=r(35),o=r(37),s=r(26),c=r(25),l=a("wks"),u=n.Symbol,f=c?u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)&&(s||"string"==typeof l[e])||(s&&i(u,e)?l[e]=u[e]:l[e]=f("Symbol."+e)),l[e]}},(e,t,r)=>{var n=r(32),a=r(33);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.17.3",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},e=>{e.exports=!1},(e,t,r)=>{var n=r(10),a=r(34),i="__core-js_shared__",o=n[i]||a(i,{});e.exports=o},(e,t,r)=>{var n=r(10);e.exports=function(e,t){try{Object.defineProperty(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},(e,t,r)=>{var n=r(36),a={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return a.call(n(e),t)}},(e,t,r)=>{var n=r(19);e.exports=function(e){return Object(n(e))}},e=>{var t=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+r).toString(36)}},(e,t,r)=>{var n=r(12),a=r(13),i=r(39);e.exports=!n&&!a((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},(e,t,r)=>{var n=r(10),a=r(22),i=n.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},(e,t,r)=>{var n=r(12),a=r(41),i=r(15);e.exports=n?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},(e,t,r)=>{var n=r(12),a=r(38),i=r(42),o=r(20),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(i(e),t=o(t),i(r),a)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},(e,t,r)=>{var n=r(22);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},(e,t,r)=>{var n=r(10),a=r(40),i=r(35),o=r(34),s=r(44),c=r(45),l=c.get,u=c.enforce,f=String(String).split("String");(e.exports=function(e,t,r,s){var c,l=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof t||i(r,"name")||a(r,"name",t),(c=u(r)).source||(c.source=f.join("string"==typeof t?t:""))),e!==n?(l?!d&&e[t]&&(h=!0):delete e[t],h?e[t]=r:a(e,t,r)):h?e[t]=r:o(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},(e,t,r)=>{var n=r(33),a=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return a.call(e)}),e.exports=n.inspectSource},(e,t,r)=>{var n,a,i,o=r(46),s=r(10),c=r(22),l=r(40),u=r(35),f=r(33),h=r(47),d=r(48),p="Object already initialized",g=s.WeakMap;if(o||f.state){var m=f.state||(f.state=new g),v=m.get,y=m.has,b=m.set;n=function(e,t){if(y.call(m,e))throw new TypeError(p);return t.facade=e,b.call(m,e,t),t},a=function(e){return v.call(m,e)||{}},i=function(e){return y.call(m,e)}}else{var w=h("state");d[w]=!0,n=function(e,t){if(u(e,w))throw new TypeError(p);return t.facade=e,l(e,w,t),t},a=function(e){return u(e,w)?e[w]:{}},i=function(e){return u(e,w)}}e.exports={set:n,get:a,has:i,enforce:function(e){return i(e)?a(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},(e,t,r)=>{var n=r(10),a=r(44),i=n.WeakMap;e.exports="function"==typeof i&&/native code/.test(a(i))},(e,t,r)=>{var n=r(31),a=r(37),i=n("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},e=>{e.exports={}},(e,t,r)=>{var n=r(35),a=r(50),i=r(11),o=r(41);e.exports=function(e,t){for(var r=a(t),s=o.f,c=i.f,l=0;l<r.length;l++){var u=r[l];n(e,u)||s(e,u,c(t,u))}}},(e,t,r)=>{var n=r(24),a=r(51),i=r(58),o=r(42);e.exports=n("Reflect","ownKeys")||function(e){var t=a.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},(e,t,r)=>{var n=r(52),a=r(57).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},(e,t,r)=>{var n=r(35),a=r(16),i=r(53).indexOf,o=r(48);e.exports=function(e,t){var r,s=a(e),c=0,l=[];for(r in s)!n(o,r)&&n(s,r)&&l.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~i(l,r)||l.push(r));return l}},(e,t,r)=>{var n=r(16),a=r(54),i=r(56),o=function(e){return function(t,r,o){var s,c=n(t),l=a(c.length),u=i(o,l);if(e&&r!=r){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},(e,t,r)=>{var n=r(55),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},(e,t,r)=>{var n=r(55),a=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?a(r+t,0):i(r,t)}},e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(e,t)=>{t.f=Object.getOwnPropertySymbols},(e,t,r)=>{var n=r(13),a=/#|\.prototype\./,i=function(e,t){var r=s[o(e)];return r==l||r!=c&&("function"==typeof t?n(t):!!t)},o=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",l=i.POLYFILL="P";e.exports=i},(e,t,r)=>{"use strict";var n,a,i;function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}i=function(){var e=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return this.setIdentity(),e&&e.length&&this.setMatrixValue(e)},t={isIdentity:{configurable:!0},is2D:{configurable:!0}};t.isIdentity.get=function(){var e=this;return 1===e.m11&&0===e.m12&&0===e.m13&&0===e.m14&&0===e.m21&&1===e.m22&&0===e.m23&&0===e.m24&&0===e.m31&&0===e.m32&&1===e.m33&&0===e.m34&&0===e.m41&&0===e.m42&&0===e.m43&&1===e.m44},t.isIdentity.set=function(e){this.isIdentity=e},t.is2D.get=function(){var e=this;return 0===e.m31&&0===e.m32&&1===e.m33&&0===e.m34&&0===e.m43&&1===e.m44},t.is2D.set=function(e){this.is2D=e},Object.defineProperties(e.prototype,t);var r=e.prototype;function n(t,r,n){var a=new e;return a.m41=t,a.e=t,a.m42=r,a.f=r,a.m43=n,a}function a(t,r,n){var a=new e,i=t*Math.PI/180,o=r*Math.PI/180,s=n*Math.PI/180,c=Math.cos(i),l=-Math.sin(i),u=Math.cos(o),f=-Math.sin(o),h=Math.cos(s),d=-Math.sin(s),p=u*h,g=-u*d;a.m11=p,a.a=p,a.m12=g,a.b=g,a.m13=f;var m=l*f*h+c*d;a.m21=m,a.c=m;var v=c*h-l*f*d;return a.m22=v,a.d=v,a.m23=-l*u,a.m31=l*d-c*f*h,a.m32=l*h+c*f*d,a.m33=c*u,a}function i(t,r,n,a){var i=new e,o=a*Math.PI/360,s=Math.sin(o),c=Math.cos(o),l=s*s,u=Math.sqrt(t*t+r*r+n*n),f=0,h=0,d=1;0!==u&&(f=t/u,h=r/u,d=n/u);var p=f*f,g=h*h,m=d*d,v=1-2*(g+m)*l;i.m11=v,i.a=v;var y=2*(t*r*l+n*s*c);i.m12=y,i.b=y,i.m13=2*(t*n*l-r*s*c);var b=2*(r*t*l-n*s*c);i.m21=b,i.c=b;var w=1-2*(m+p)*l;return i.m22=w,i.d=w,i.m23=2*(r*n*l+t*s*c),i.m31=2*(n*t*l+r*s*c),i.m32=2*(n*r*l-t*s*c),i.m33=1-2*(p+g)*l,i.m14=0,i.m24=0,i.m34=0,i.m41=0,i.e=0,i.m42=0,i.f=0,i.m43=0,i.m44=1,i}function o(t,r,n){var a=new e;return a.m11=t,a.a=t,a.m22=r,a.d=r,a.m33=n,a}function s(t){var r=t*Math.PI/180,n=new e,a=Math.tan(r);return n.m21=a,n.c=a,n}function c(t){var r=t*Math.PI/180,n=new e,a=Math.tan(r);return n.m12=a,n.b=a,n}function l(t,r){var n=r.m11*t.m11+r.m12*t.m21+r.m13*t.m31+r.m14*t.m41,a=r.m11*t.m12+r.m12*t.m22+r.m13*t.m32+r.m14*t.m42,i=r.m11*t.m13+r.m12*t.m23+r.m13*t.m33+r.m14*t.m43,o=r.m11*t.m14+r.m12*t.m24+r.m13*t.m34+r.m14*t.m44,s=r.m21*t.m11+r.m22*t.m21+r.m23*t.m31+r.m24*t.m41,c=r.m21*t.m12+r.m22*t.m22+r.m23*t.m32+r.m24*t.m42,l=r.m21*t.m13+r.m22*t.m23+r.m23*t.m33+r.m24*t.m43,u=r.m21*t.m14+r.m22*t.m24+r.m23*t.m34+r.m24*t.m44,f=r.m31*t.m11+r.m32*t.m21+r.m33*t.m31+r.m34*t.m41,h=r.m31*t.m12+r.m32*t.m22+r.m33*t.m32+r.m34*t.m42,d=r.m31*t.m13+r.m32*t.m23+r.m33*t.m33+r.m34*t.m43,p=r.m31*t.m14+r.m32*t.m24+r.m33*t.m34+r.m34*t.m44,g=r.m41*t.m11+r.m42*t.m21+r.m43*t.m31+r.m44*t.m41,m=r.m41*t.m12+r.m42*t.m22+r.m43*t.m32+r.m44*t.m42,v=r.m41*t.m13+r.m42*t.m23+r.m43*t.m33+r.m44*t.m43,y=r.m41*t.m14+r.m42*t.m24+r.m43*t.m34+r.m44*t.m44;return new e([n,s,f,g,a,c,h,m,i,l,d,v,o,u,p,y])}function u(e,t){var r=Array.from(t);if(16===r.length){var n=r[0],a=r[1],i=r[2],o=r[3],s=r[4],c=r[5],l=r[6],u=r[7],f=r[8],h=r[9],d=r[10],p=r[11],g=r[12],m=r[13],v=r[14],y=r[15];e.m11=n,e.a=n,e.m21=a,e.c=a,e.m31=i,e.m41=o,e.e=o,e.m12=s,e.b=s,e.m22=c,e.d=c,e.m32=l,e.m42=u,e.f=u,e.m13=f,e.m23=h,e.m33=d,e.m43=p,e.m14=g,e.m24=m,e.m34=v,e.m44=y}else{if(6!==r.length)throw new TypeError("CSSMatrix: expecting a 6/16 values Array");var b=r[0],w=r[1],k=r[2],S=r[3],x=r[4],A=r[5];e.m11=b,e.a=b,e.m12=w,e.b=w,e.m21=k,e.c=k,e.m22=S,e.d=S,e.m14=x,e.e=x,e.m24=A,e.f=A}return e}return r.setMatrixValue=function(t){var r=this;if(!t||!t.length)return r;if(t.length&&"string"==typeof t[0]&&t[0].length){var n,a,i=String(t[0]).trim();if("none"===i)return r;if(n=i.slice(0,i.indexOf("(")),a=i.slice("matrix"===n?7:9,-1).split(",").map((function(e){return Math.abs(e)<1e-6?0:+e})),!([6,16].indexOf(a.length)>-1))throw new TypeError("CSSMatrix: expecting valid CSS matrix() / matrix3d() syntax");u(r,a)}else t[0]instanceof e?u(r,t[0].toArray()):Array.isArray(t[0])?u(r,t[0]):Array.isArray(t)&&u(r,t);return r},r.toString=function(){return(this.is2D?"matrix":"matrix3d")+"("+this.toArray(1).join(",")+")"},r.toArray=function(e){var t=this;return t.is2D?[t.a,t.b,t.c,t.d,t.e,t.f]:e?[t.m11,t.m12,t.m13,t.m14,t.m21,t.m22,t.m23,t.m24,t.m31,t.m32,t.m33,t.m34,t.m41,t.m42,t.m43,t.m44]:[t.m11,t.m21,t.m31,t.m41,t.m12,t.m22,t.m32,t.m42,t.m13,t.m23,t.m33,t.m43,t.m14,t.m24,t.m34,t.m44]},r.multiply=function(e){return l(this,e)},r.translate=function(e,t,r){var a=t,i=r;return null==i&&(i=0),null==a&&(a=0),l(this,n(e,a,i))},r.scale=function(e,t,r){var n=t,a=r;return null==n&&(n=e),null==a&&(a=e),l(this,o(e,n,a))},r.rotate=function(e,t,r){var n=e,i=t,o=r;return null==i&&(i=0),null==o&&(o=n,n=0),l(this,a(n,i,o))},r.rotateAxisAngle=function(e,t,r,n){if(4!==arguments.length)throw new TypeError("CSSMatrix: expecting 4 values");return l(this,i(e,t,r,n))},r.skewX=function(e){return l(this,s(e))},r.skewY=function(e){return l(this,c(e))},r.setIdentity=function(){return u(this,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])},r.transformPoint=function(e){var t=n(e.x,e.y,e.z);return t.m44=e.w||1,{x:(t=this.multiply(t)).m41,y:t.m42,z:t.m43,w:t.m44}},r.transform=function(e){var t=this,r=t.m11*e.x+t.m12*e.y+t.m13*e.z+t.m14*e.w,n=t.m21*e.x+t.m22*e.y+t.m23*e.z+t.m24*e.w,a=t.m31*e.x+t.m32*e.y+t.m33*e.z+t.m34*e.w,i=t.m41*e.x+t.m42*e.y+t.m43*e.z+t.m44*e.w;return{x:r/i,y:n/i,z:a/i,w:i}},e.Translate=n,e.Rotate=a,e.RotateAxisAngle=i,e.Scale=o,e.SkewX=s,e.SkewY=c,e.Multiply=l,e.fromMatrix=function(t){return new e([t.m11,t.m21,t.m31,t.m41,t.m12,t.m22,t.m32,t.m42,t.m13,t.m23,t.m33,t.m43,t.m14,t.m24,t.m34,t.m44])},e.fromArray=function(t){return u(new e,t)},e.feedFromArray=u,e},"object"===o(t)?e.exports=i():void 0===(a="function"==typeof(n=i)?n.call(t,r,t,e):n)||(e.exports=a)},(e,t,r)=>{r(62),r(77);var n=r(88);e.exports=n.Object.fromEntries},(e,t,r)=>{"use strict";var n=r(16),a=r(63),i=r(68),o=r(45),s=r(69),c="Array Iterator",l=o.set,u=o.getterFor(c);e.exports=s(Array,"Array",(function(e,t){l(this,{type:c,target:n(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),i.Arguments=i.Array,a("keys"),a("values"),a("entries")},(e,t,r)=>{var n=r(30),a=r(64),i=r(41),o=n("unscopables"),s=Array.prototype;null==s[o]&&i.f(s,o,{configurable:!0,value:a(null)}),e.exports=function(e){s[o][e]=!0}},(e,t,r)=>{var n,a=r(42),i=r(65),o=r(57),s=r(48),c=r(67),l=r(39),u=r(47)("IE_PROTO"),f=function(){},h=function(e){return"<script>"+e+"<\/script>"},d=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;p="undefined"!=typeof document?document.domain&&n?d(n):((t=l("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):d(n);for(var r=o.length;r--;)delete p.prototype[o[r]];return p()};s[u]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f.prototype=a(e),r=new f,f.prototype=null,r[u]=e):r=p(),void 0===t?r:i(r,t)}},(e,t,r)=>{var n=r(12),a=r(41),i=r(42),o=r(66);e.exports=n?Object.defineProperties:function(e,t){i(e);for(var r,n=o(t),s=n.length,c=0;s>c;)a.f(e,r=n[c++],t[r]);return e}},(e,t,r)=>{var n=r(52),a=r(57);e.exports=Object.keys||function(e){return n(e,a)}},(e,t,r)=>{var n=r(24);e.exports=n("document","documentElement")},e=>{e.exports={}},(e,t,r)=>{"use strict";var n=r(9),a=r(70),i=r(72),o=r(75),s=r(74),c=r(40),l=r(43),u=r(30),f=r(32),h=r(68),d=r(71),p=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,m=u("iterator"),v="keys",y="values",b="entries",w=function(){return this};e.exports=function(e,t,r,u,d,k,S){a(r,t,u);var x,A,O,C=function(e){if(e===d&&_)return _;if(!g&&e in I)return I[e];switch(e){case v:case y:case b:return function(){return new r(this,e)}}return function(){return new r(this)}},F=t+" Iterator",T=!1,I=e.prototype,P=I[m]||I["@@iterator"]||d&&I[d],_=!g&&P||C(d),E="Array"==t&&I.entries||P;if(E&&(x=i(E.call(new e)))!==Object.prototype&&x.next&&(f||i(x)===p||(o?o(x,p):"function"!=typeof x[m]&&c(x,m,w)),s(x,F,!0,!0),f&&(h[F]=w)),d==y&&P&&P.name!==y&&(T=!0,_=function(){return P.call(this)}),f&&!S||I[m]===_||c(I,m,_),h[t]=_,d)if(A={values:C(y),keys:k?_:C(v),entries:C(b)},S)for(O in A)(g||T||!(O in I))&&l(I,O,A[O]);else n({target:t,proto:!0,forced:g||T},A);return A}},(e,t,r)=>{"use strict";var n=r(71).IteratorPrototype,a=r(64),i=r(15),o=r(74),s=r(68),c=function(){return this};e.exports=function(e,t,r){var l=t+" Iterator";return e.prototype=a(n,{next:i(1,r)}),o(e,l,!1,!0),s[l]=c,e}},(e,t,r)=>{"use strict";var n,a,i,o=r(13),s=r(64),c=r(72),l=r(40),u=r(30),f=r(32),h=u("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(a=c(c(i)))!==Object.prototype&&(n=a):d=!0),null==n||o((function(){var e={};return n[h].call(e)!==e}))?n={}:f&&(n=s(n)),"function"!=typeof n[h]&&l(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},(e,t,r)=>{var n=r(35),a=r(36),i=r(47),o=r(73),s=i("IE_PROTO"),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=a(e),n(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},(e,t,r)=>{var n=r(13);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},(e,t,r)=>{var n=r(41).f,a=r(35),i=r(30)("toStringTag");e.exports=function(e,t,r){e&&!a(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},(e,t,r)=>{var n=r(42),a=r(76);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return n(r),a(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},(e,t,r)=>{var n=r(22);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},(e,t,r)=>{var n=r(9),a=r(78),i=r(87);n({target:"Object",stat:!0},{fromEntries:function(e){var t={};return a(e,(function(e,r){i(t,e,r)}),{AS_ENTRIES:!0}),t}})},(e,t,r)=>{var n=r(42),a=r(79),i=r(54),o=r(80),s=r(82),c=r(83),l=r(86),u=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,r){var f,h,d,p,g,m,v,y=r&&r.that,b=!(!r||!r.AS_ENTRIES),w=!(!r||!r.IS_ITERATOR),k=!(!r||!r.INTERRUPTED),S=o(t,y,1+b+k),x=function(e){return f&&l(f,"normal",e),new u(!0,e)},A=function(e){return b?(n(e),k?S(e[0],e[1],x):S(e[0],e[1])):k?S(e,x):S(e)};if(w)f=e;else{if("function"!=typeof(h=c(e)))throw TypeError("Target is not iterable");if(a(h)){for(d=0,p=i(e.length);p>d;d++)if((g=A(e[d]))&&g instanceof u)return g;return new u(!1)}f=s(e,h)}for(m=f.next;!(v=m.call(f)).done;){try{g=A(v.value)}catch(e){l(f,"throw",e)}if("object"==typeof g&&g&&g instanceof u)return g}return new u(!1)}},(e,t,r)=>{var n=r(30),a=r(68),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||o[i]===e)}},(e,t,r)=>{var n=r(81);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},(e,t,r)=>{var n=r(42),a=r(83);e.exports=function(e,t){var r=arguments.length<2?a(e):t;if("function"!=typeof r)throw TypeError(String(e)+" is not iterable");return n(r.call(e))}},(e,t,r)=>{var n=r(84),a=r(68),i=r(30)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||a[n(e)]}},(e,t,r)=>{var n=r(85),a=r(18),i=r(30)("toStringTag"),o="Arguments"==a(function(){return arguments}());e.exports=n?a:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:o?a(t):"Object"==(n=a(t))&&"function"==typeof t.callee?"Arguments":n}},(e,t,r)=>{var n={};n[r(30)("toStringTag")]="z",e.exports="[object z]"===String(n)},(e,t,r)=>{var n=r(42);e.exports=function(e,t,r){var a,i;n(e);try{if(void 0===(a=e.return)){if("throw"===t)throw r;return r}a=a.call(e)}catch(e){i=!0,a=e}if("throw"===t)throw r;if(i)throw a;return n(a),r}},(e,t,r)=>{"use strict";var n=r(20),a=r(41),i=r(15);e.exports=function(e,t,r){var o=n(t);o in e?a.f(e,o,i(0,r)):e[o]=r}},(e,t,r)=>{var n=r(10);e.exports=n},(e,t,r)=>{r(90),r(62),r(92),r(94),r(112),r(113),r(114),r(115);var n=r(88);e.exports=n.Promise},(e,t,r)=>{"use strict";var n=r(9),a=r(72),i=r(75),o=r(64),s=r(40),c=r(15),l=r(78),u=r(91),f=function(e,t){var r=this;if(!(r instanceof f))return new f(e,t);i&&(r=i(new Error(void 0),a(r))),void 0!==t&&s(r,"message",u(t));var n=[];return l(e,n.push,{that:n}),s(r,"errors",n),r};f.prototype=o(Error.prototype,{constructor:c(5,f),message:c(5,""),name:c(5,"AggregateError")}),n({global:!0},{AggregateError:f})},(e,t,r)=>{var n=r(23);e.exports=function(e){if(n(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},(e,t,r)=>{var n=r(85),a=r(43),i=r(93);n||a(Object.prototype,"toString",i,{unsafe:!0})},(e,t,r)=>{"use strict";var n=r(85),a=r(84);e.exports=n?{}.toString:function(){return"[object "+a(this)+"]"}},(e,t,r)=>{"use strict";var n,a,i,o,s=r(9),c=r(32),l=r(10),u=r(24),f=r(95),h=r(43),d=r(96),p=r(75),g=r(74),m=r(97),v=r(22),y=r(81),b=r(98),w=r(44),k=r(78),S=r(99),x=r(100),A=r(101).set,O=r(104),C=r(107),F=r(109),T=r(108),I=r(110),P=r(45),_=r(59),E=r(30),j=r(111),M=r(103),R=r(27),B=E("species"),D="Promise",N=P.get,L=P.set,U=P.getterFor(D),$=f&&f.prototype,q=f,X=$,H=l.TypeError,z=l.document,W=l.process,G=T.f,V=G,Y=!!(z&&z.createEvent&&l.dispatchEvent),K="function"==typeof PromiseRejectionEvent,J="unhandledrejection",Z=!1,Q=_(D,(function(){var e=w(q),t=e!==String(q);if(!t&&66===R)return!0;if(c&&!X.finally)return!0;if(R>=51&&/native code/.test(e))return!1;var r=new q((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(r.constructor={})[B]=n,!(Z=r.then((function(){}))instanceof n)||!t&&j&&!K})),ee=Q||!S((function(e){q.all(e).catch((function(){}))})),te=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},re=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;O((function(){for(var n=e.value,a=1==e.state,i=0;r.length>i;){var o,s,c,l=r[i++],u=a?l.ok:l.fail,f=l.resolve,h=l.reject,d=l.domain;try{u?(a||(2===e.rejection&&oe(e),e.rejection=1),!0===u?o=n:(d&&d.enter(),o=u(n),d&&(d.exit(),c=!0)),o===l.promise?h(H("Promise-chain cycle")):(s=te(o))?s.call(o,f,h):f(o)):h(n)}catch(e){d&&!c&&d.exit(),h(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ae(e)}))}},ne=function(e,t,r){var n,a;Y?((n=z.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),l.dispatchEvent(n)):n={promise:t,reason:r},!K&&(a=l["on"+e])?a(n):e===J&&F("Unhandled promise rejection",r)},ae=function(e){A.call(l,(function(){var t,r=e.facade,n=e.value;if(ie(e)&&(t=I((function(){M?W.emit("unhandledRejection",n,r):ne(J,r,n)})),e.rejection=M||ie(e)?2:1,t.error))throw t.value}))},ie=function(e){return 1!==e.rejection&&!e.parent},oe=function(e){A.call(l,(function(){var t=e.facade;M?W.emit("rejectionHandled",t):ne("rejectionhandled",t,e.value)}))},se=function(e,t,r){return function(n){e(t,n,r)}},ce=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,re(e,!0))},le=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw H("Promise can't be resolved itself");var n=te(t);n?O((function(){var r={done:!1};try{n.call(t,se(le,r,e),se(ce,r,e))}catch(t){ce(r,t,e)}})):(e.value=t,e.state=1,re(e,!1))}catch(t){ce({done:!1},t,e)}}};if(Q&&(X=(q=function(e){b(this,q,D),y(e),n.call(this);var t=N(this);try{e(se(le,t),se(ce,t))}catch(e){ce(t,e)}}).prototype,(n=function(e){L(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(X,{then:function(e,t){var r=U(this),n=G(x(this,q));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=M?W.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&re(r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new n,t=N(e);this.promise=e,this.resolve=se(le,t),this.reject=se(ce,t)},T.f=G=function(e){return e===q||e===i?new a(e):V(e)},!c&&"function"==typeof f&&$!==Object.prototype)){o=$.then,Z||(h($,"then",(function(e,t){var r=this;return new q((function(e,t){o.call(r,e,t)})).then(e,t)}),{unsafe:!0}),h($,"catch",X.catch,{unsafe:!0}));try{delete $.constructor}catch(e){}p&&p($,X)}s({global:!0,wrap:!0,forced:Q},{Promise:q}),g(q,D,!1,!0),m(D),i=u(D),s({target:D,stat:!0,forced:Q},{reject:function(e){var t=G(this);return t.reject.call(void 0,e),t.promise}}),s({target:D,stat:!0,forced:c||Q},{resolve:function(e){return C(c&&this===i?q:this,e)}}),s({target:D,stat:!0,forced:ee},{all:function(e){var t=this,r=G(t),n=r.resolve,a=r.reject,i=I((function(){var r=y(t.resolve),i=[],o=0,s=1;k(e,(function(e){var c=o++,l=!1;i.push(void 0),s++,r.call(t,e).then((function(e){l||(l=!0,i[c]=e,--s||n(i))}),a)})),--s||n(i)}));return i.error&&a(i.value),r.promise},race:function(e){var t=this,r=G(t),n=r.reject,a=I((function(){var a=y(t.resolve);k(e,(function(e){a.call(t,e).then(r.resolve,n)}))}));return a.error&&n(a.value),r.promise}})},(e,t,r)=>{var n=r(10);e.exports=n.Promise},(e,t,r)=>{var n=r(43);e.exports=function(e,t,r){for(var a in t)n(e,a,t[a],r);return e}},(e,t,r)=>{"use strict";var n=r(24),a=r(41),i=r(30),o=r(12),s=i("species");e.exports=function(e){var t=n(e),r=a.f;o&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},e=>{e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},(e,t,r)=>{var n=r(30)("iterator"),a=!1;try{var i=0,o={next:function(){return{done:!!i++}},return:function(){a=!0}};o[n]=function(){return this},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},(e,t,r)=>{var n=r(42),a=r(81),i=r(30)("species");e.exports=function(e,t){var r,o=n(e).constructor;return void 0===o||null==(r=n(o)[i])?t:a(r)}},(e,t,r)=>{var n,a,i,o,s=r(10),c=r(13),l=r(80),u=r(67),f=r(39),h=r(102),d=r(103),p=s.setImmediate,g=s.clearImmediate,m=s.process,v=s.MessageChannel,y=s.Dispatch,b=0,w={};try{n=s.location}catch(e){}var k=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},S=function(e){return function(){k(e)}},x=function(e){k(e.data)},A=function(e){s.postMessage(String(e),n.protocol+"//"+n.host)};p&&g||(p=function(e){for(var t=[],r=arguments.length,n=1;r>n;)t.push(arguments[n++]);return w[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},a(b),b},g=function(e){delete w[e]},d?a=function(e){m.nextTick(S(e))}:y&&y.now?a=function(e){y.now(S(e))}:v&&!h?(o=(i=new v).port2,i.port1.onmessage=x,a=l(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts&&n&&"file:"!==n.protocol&&!c(A)?(a=A,s.addEventListener("message",x,!1)):a="onreadystatechange"in f("script")?function(e){u.appendChild(f("script")).onreadystatechange=function(){u.removeChild(this),k(e)}}:function(e){setTimeout(S(e),0)}),e.exports={set:p,clear:g}},(e,t,r)=>{var n=r(28);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},(e,t,r)=>{var n=r(18),a=r(10);e.exports="process"==n(a.process)},(e,t,r)=>{var n,a,i,o,s,c,l,u,f=r(10),h=r(11).f,d=r(101).set,p=r(102),g=r(105),m=r(106),v=r(103),y=f.MutationObserver||f.WebKitMutationObserver,b=f.document,w=f.process,k=f.Promise,S=h(f,"queueMicrotask"),x=S&&S.value;x||(n=function(){var e,t;for(v&&(e=w.domain)&&e.exit();a;){t=a.fn,a=a.next;try{t()}catch(e){throw a?o():i=void 0,e}}i=void 0,e&&e.enter()},p||v||m||!y||!b?!g&&k&&k.resolve?((l=k.resolve(void 0)).constructor=k,u=l.then,o=function(){u.call(l,n)}):o=v?function(){w.nextTick(n)}:function(){d.call(f,n)}:(s=!0,c=b.createTextNode(""),new y(n).observe(c,{characterData:!0}),o=function(){c.data=s=!s})),e.exports=x||function(e){var t={fn:e,next:void 0};i&&(i.next=t),a||(a=t,o()),i=t}},(e,t,r)=>{var n=r(28),a=r(10);e.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==a.Pebble},(e,t,r)=>{var n=r(28);e.exports=/web0s(?!.*chrome)/i.test(n)},(e,t,r)=>{var n=r(42),a=r(22),i=r(108);e.exports=function(e,t){if(n(e),a(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},(e,t,r)=>{"use strict";var n=r(81),a=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new a(e)}},(e,t,r)=>{var n=r(10);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},e=>{e.exports="object"==typeof window},(e,t,r)=>{"use strict";var n=r(9),a=r(81),i=r(108),o=r(110),s=r(78);n({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=i.f(t),n=r.resolve,c=r.reject,l=o((function(){var r=a(t.resolve),i=[],o=0,c=1;s(e,(function(e){var a=o++,s=!1;i.push(void 0),c++,r.call(t,e).then((function(e){s||(s=!0,i[a]={status:"fulfilled",value:e},--c||n(i))}),(function(e){s||(s=!0,i[a]={status:"rejected",reason:e},--c||n(i))}))})),--c||n(i)}));return l.error&&c(l.value),r.promise}})},(e,t,r)=>{"use strict";var n=r(9),a=r(81),i=r(24),o=r(108),s=r(110),c=r(78),l="No one promise resolved";n({target:"Promise",stat:!0},{any:function(e){var t=this,r=o.f(t),n=r.resolve,u=r.reject,f=s((function(){var r=a(t.resolve),o=[],s=0,f=1,h=!1;c(e,(function(e){var a=s++,c=!1;o.push(void 0),f++,r.call(t,e).then((function(e){c||h||(h=!0,n(e))}),(function(e){c||h||(c=!0,o[a]=e,--f||u(new(i("AggregateError"))(o,l)))}))})),--f||u(new(i("AggregateError"))(o,l))}));return f.error&&u(f.value),r.promise}})},(e,t,r)=>{"use strict";var n=r(9),a=r(32),i=r(95),o=r(13),s=r(24),c=r(100),l=r(107),u=r(43);if(n({target:"Promise",proto:!0,real:!0,forced:!!i&&o((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),r="function"==typeof e;return this.then(r?function(r){return l(t,e()).then((function(){return r}))}:e,r?function(r){return l(t,e()).then((function(){throw r}))}:e)}}),!a&&"function"==typeof i){var f=s("Promise").prototype.finally;i.prototype.finally!==f&&u(i.prototype,"finally",f,{unsafe:!0})}},(e,t,r)=>{"use strict";var n=r(116).charAt,a=r(91),i=r(45),o=r(69),s="String Iterator",c=i.set,l=i.getterFor(s);o(String,"String",(function(e){c(this,{type:s,string:a(e),index:0})}),(function(){var e,t=l(this),r=t.string,a=t.index;return a>=r.length?{value:void 0,done:!0}:(e=n(r,a),t.index+=e.length,{value:e,done:!1})}))},(e,t,r)=>{var n=r(55),a=r(91),i=r(19),o=function(e){return function(t,r){var o,s,c=a(i(t)),l=n(r),u=c.length;return l<0||l>=u?e?"":void 0:(o=c.charCodeAt(l))<55296||o>56319||l+1===u||(s=c.charCodeAt(l+1))<56320||s>57343?e?c.charAt(l):o:e?c.slice(l,l+2):s-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t){var r;r=function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(e){return"Symbol("+e+")"};function r(){}var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0;function a(e){return"object"==typeof e&&null!==e||"function"==typeof e}var i=r,o=Promise,s=Promise.prototype.then,c=Promise.resolve.bind(o),l=Promise.reject.bind(o);function u(e){return new o(e)}function f(e){return c(e)}function h(e){return l(e)}function d(e,t,r){return s.call(e,t,r)}function p(e,t,r){d(d(e,t,r),void 0,i)}function g(e,t){p(e,t)}function m(e,t){p(e,void 0,t)}function v(e,t,r){return d(e,t,r)}function y(e){d(e,void 0,i)}var b=function(){var e=n&&n.queueMicrotask;if("function"==typeof e)return e;var t=f(void 0);return function(e){return d(t,e)}}();function w(e,t,r){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function k(e,t,r){try{return f(w(e,t,r))}catch(e){return h(e)}}var S=function(){function e(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(e.prototype,"length",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.push=function(e){var t=this._back,r=t;16383===t._elements.length&&(r={_elements:[],_next:void 0}),t._elements.push(e),r!==t&&(this._back=r,t._next=r),++this._size},e.prototype.shift=function(){var e=this._front,t=e,r=this._cursor,n=r+1,a=e._elements,i=a[r];return 16384===n&&(t=e._next,n=0),--this._size,this._cursor=n,e!==t&&(this._front=t),a[r]=void 0,i},e.prototype.forEach=function(e){for(var t=this._cursor,r=this._front,n=r._elements;!(t===n.length&&void 0===r._next||t===n.length&&(t=0,0===(n=(r=r._next)._elements).length));)e(n[t]),++t},e.prototype.peek=function(){var e=this._front,t=this._cursor;return e._elements[t]},e}();function x(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._state?F(e):"closed"===t._state?function(e){F(e),P(e)}(e):T(e,t._storedError)}function A(e,t){return Sr(e._ownerReadableStream,t)}function O(e){"readable"===e._ownerReadableStream._state?I(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(e,t){T(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness"))}(e),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function C(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function F(e){e._closedPromise=u((function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r}))}function T(e,t){F(e),I(e,t)}function I(e,t){void 0!==e._closedPromise_reject&&(y(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function P(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}var _=t("[[AbortSteps]]"),E=t("[[ErrorSteps]]"),j=t("[[CancelSteps]]"),M=t("[[PullSteps]]"),R=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},B=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function D(e,t){if(void 0!==e&&"object"!=typeof(r=e)&&"function"!=typeof r)throw new TypeError(t+" is not an object.");var r}function N(e,t){if("function"!=typeof e)throw new TypeError(t+" is not a function.")}function L(e,t){if(!function(e){return"object"==typeof e&&null!==e||"function"==typeof e}(e))throw new TypeError(t+" is not an object.")}function U(e,t,r){if(void 0===e)throw new TypeError("Parameter "+t+" is required in '"+r+"'.")}function $(e,t,r){if(void 0===e)throw new TypeError(t+" is required in '"+r+"'.")}function q(e){return Number(e)}function X(e){return 0===e?0:e}function H(e,t){var r=Number.MAX_SAFE_INTEGER,n=Number(e);if(n=X(n),!R(n))throw new TypeError(t+" is not a finite number");if((n=function(e){return X(B(e))}(n))<0||n>r)throw new TypeError(t+" is outside the accepted range of 0 to "+r+", inclusive");return R(n)&&0!==n?n:0}function z(e,t){if(!wr(e))throw new TypeError(t+" is not a ReadableStream.")}function W(e){return new Q(e)}function G(e,t){e._reader._readRequests.push(t)}function V(e,t,r){var n=e._reader._readRequests.shift();r?n._closeSteps():n._chunkSteps(t)}function Y(e){return e._reader._readRequests.length}function K(e){var t=e._reader;return void 0!==t&&!!ee(t)}var J,Z,Q=function(){function e(e){if(U(e,1,"ReadableStreamDefaultReader"),z(e,"First parameter"),kr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");x(this,e),this._readRequests=new S}return Object.defineProperty(e.prototype,"closed",{get:function(){return ee(this)?this._closedPromise:h(re("closed"))},enumerable:!1,configurable:!0}),e.prototype.cancel=function(e){return void 0===e&&(e=void 0),ee(this)?void 0===this._ownerReadableStream?h(C("cancel")):A(this,e):h(re("cancel"))},e.prototype.read=function(){if(!ee(this))return h(re("read"));if(void 0===this._ownerReadableStream)return h(C("read from"));var e,t,r=u((function(r,n){e=r,t=n}));return te(this,{_chunkSteps:function(t){return e({value:t,done:!1})},_closeSteps:function(){return e({value:void 0,done:!0})},_errorSteps:function(e){return t(e)}}),r},e.prototype.releaseLock=function(){if(!ee(this))throw re("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");O(this)}},e}();function ee(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof Q}function te(e,t){var r=e._ownerReadableStream;r._disturbed=!0,"closed"===r._state?t._closeSteps():"errored"===r._state?t._errorSteps(r._storedError):r._readableStreamController[M](t)}function re(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}Object.defineProperties(Q.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Q.prototype,t.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0}),"symbol"==typeof t.asyncIterator&&((J={})[t.asyncIterator]=function(){return this},Z=J,Object.defineProperty(Z,t.asyncIterator,{enumerable:!1}));var ne=function(){function e(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}return e.prototype.next=function(){var e=this,t=function(){return e._nextSteps()};return this._ongoingPromise=this._ongoingPromise?v(this._ongoingPromise,t,t):t(),this._ongoingPromise},e.prototype.return=function(e){var t=this,r=function(){return t._returnSteps(e)};return this._ongoingPromise?v(this._ongoingPromise,r,r):r()},e.prototype._nextSteps=function(){var e=this;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});var t,r,n=this._reader;if(void 0===n._ownerReadableStream)return h(C("iterate"));var a=u((function(e,n){t=e,r=n}));return te(n,{_chunkSteps:function(r){e._ongoingPromise=void 0,b((function(){return t({value:r,done:!1})}))},_closeSteps:function(){e._ongoingPromise=void 0,e._isFinished=!0,O(n),t({value:void 0,done:!0})},_errorSteps:function(t){e._ongoingPromise=void 0,e._isFinished=!0,O(n),r(t)}}),a},e.prototype._returnSteps=function(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;var t=this._reader;if(void 0===t._ownerReadableStream)return h(C("finish iterating"));if(!this._preventCancel){var r=A(t,e);return O(t),v(r,(function(){return{value:e,done:!0}}))}return O(t),f({value:e,done:!0})},e}(),ae={next:function(){return ie(this)?this._asyncIteratorImpl.next():h(oe("next"))},return:function(e){return ie(this)?this._asyncIteratorImpl.return(e):h(oe("return"))}};function ie(e){if(!a(e))return!1;if(!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof ne}catch(e){return!1}}function oe(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}void 0!==Z&&Object.setPrototypeOf(ae,Z);var se=Number.isNaN||function(e){return e!=e};function ce(e){return e.slice()}function le(e,t,r,n,a){new Uint8Array(e).set(new Uint8Array(r,n,a),t)}function ue(e,t,r){if(e.slice)return e.slice(t,r);var n=r-t,a=new ArrayBuffer(n);return le(a,0,e,t,n),a}function fe(e){var t=ue(e.buffer,e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}function he(e){var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function de(e,t,r){if("number"!=typeof(n=r)||se(n)||n<0||r===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");var n;e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function pe(e){e._queue=new S,e._queueTotalSize=0}var ge=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"view",{get:function(){if(!ye(this))throw Ue("view");return this._view},enumerable:!1,configurable:!0}),e.prototype.respond=function(e){if(!ye(this))throw Ue("respond");if(U(e,1,"respond"),e=H(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer,De(this._associatedReadableByteStreamController,e)},e.prototype.respondWithNewView=function(e){if(!ye(this))throw Ue("respondWithNewView");if(U(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");e.buffer,Ne(this._associatedReadableByteStreamController,e)},e}();Object.defineProperties(ge.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(ge.prototype,t.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var me=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(!ve(this))throw $e("byobRequest");return Re(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!ve(this))throw $e("desiredSize");return Be(this)},enumerable:!1,configurable:!0}),e.prototype.close=function(){if(!ve(this))throw $e("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be closed");Ee(this)},e.prototype.enqueue=function(e){if(!ve(this))throw $e("enqueue");if(U(e,1,"enqueue"),!ArrayBuffer.isView(e))throw new TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");var t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be enqueued to");je(this,e)},e.prototype.error=function(e){if(void 0===e&&(e=void 0),!ve(this))throw $e("error");Me(this,e)},e.prototype[j]=function(e){we(this),pe(this);var t=this._cancelAlgorithm(e);return _e(this),t},e.prototype[M]=function(e){var t=this._controlledReadableByteStream;if(this._queueTotalSize>0){var r=this._queue.shift();this._queueTotalSize-=r.byteLength,Ce(this);var n=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);e._chunkSteps(n)}else{var a=this._autoAllocateChunkSize;if(void 0!==a){var i=void 0;try{i=new ArrayBuffer(a)}catch(t){return void e._errorSteps(t)}var o={buffer:i,bufferByteLength:a,byteOffset:0,byteLength:a,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(o)}G(t,e),be(this)}},e}();function ve(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof me}function ye(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof ge}function be(e){var t=function(e){var t=e._controlledReadableByteStream;return"readable"===t._state&&!e._closeRequested&&!!e._started&&(!!(K(t)&&Y(t)>0)||!!(ze(t)&&He(t)>0)||Be(e)>0)}(e);t&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,p(e._pullAlgorithm(),(function(){e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,be(e))}),(function(t){Me(e,t)}))))}function we(e){Fe(e),e._pendingPullIntos=new S}function ke(e,t){var r=!1;"closed"===e._state&&(r=!0);var n=Se(t);"default"===t.readerType?V(e,n,r):function(e,t,r){var n=e._reader._readIntoRequests.shift();r?n._closeSteps(t):n._chunkSteps(t)}(e,n,r)}function Se(e){var t=e.bytesFilled,r=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/r)}function xe(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function Ae(e,t){var r=t.elementSize,n=t.bytesFilled-t.bytesFilled%r,a=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),i=t.bytesFilled+a,o=i-i%r,s=a,c=!1;o>n&&(s=o-t.bytesFilled,c=!0);for(var l=e._queue;s>0;){var u=l.peek(),f=Math.min(s,u.byteLength),h=t.byteOffset+t.bytesFilled;le(t.buffer,h,u.buffer,u.byteOffset,f),u.byteLength===f?l.shift():(u.byteOffset+=f,u.byteLength-=f),e._queueTotalSize-=f,Oe(0,f,t),s-=f}return c}function Oe(e,t,r){r.bytesFilled+=t}function Ce(e){0===e._queueTotalSize&&e._closeRequested?(_e(e),xr(e._controlledReadableByteStream)):be(e)}function Fe(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function Te(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;var t=e._pendingPullIntos.peek();Ae(e,t)&&(Pe(e),ke(e._controlledReadableByteStream,t))}}function Ie(e,t){var r=e._pendingPullIntos.peek();Fe(e),"closed"===e._controlledReadableByteStream._state?function(e,t){var r=e._controlledReadableByteStream;if(ze(r))for(;He(r)>0;)ke(r,Pe(e))}(e):function(e,t,r){if(Oe(0,t,r),!(r.bytesFilled<r.elementSize)){Pe(e);var n=r.bytesFilled%r.elementSize;if(n>0){var a=r.byteOffset+r.bytesFilled,i=ue(r.buffer,a-n,a);xe(e,i,0,i.byteLength)}r.bytesFilled-=n,ke(e._controlledReadableByteStream,r),Te(e)}}(e,t,r),be(e)}function Pe(e){return e._pendingPullIntos.shift()}function _e(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function Ee(e){var t=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===t._state)if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0&&e._pendingPullIntos.peek().bytesFilled>0){var r=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Me(e,r),r}_e(e),xr(t)}}function je(e,t){var r=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===r._state){var n=t.buffer,a=t.byteOffset,i=t.byteLength,o=n;if(e._pendingPullIntos.length>0){var s=e._pendingPullIntos.peek();s.buffer,s.buffer=s.buffer}Fe(e),K(r)?0===Y(r)?xe(e,o,a,i):V(r,new Uint8Array(o,a,i),!1):ze(r)?(xe(e,o,a,i),Te(e)):xe(e,o,a,i),be(e)}}function Me(e,t){var r=e._controlledReadableByteStream;"readable"===r._state&&(we(e),pe(e),_e(e),Ar(r,t))}function Re(e){if(null===e._byobRequest&&e._pendingPullIntos.length>0){var t=e._pendingPullIntos.peek(),r=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),n=Object.create(ge.prototype);!function(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}(n,e,r),e._byobRequest=n}return e._byobRequest}function Be(e){var t=e._controlledReadableByteStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function De(e,t){var r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(0===t)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range")}r.buffer=r.buffer,Ie(e,t)}function Ne(e,t){var r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t.byteLength)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(0===t.byteLength)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.bufferByteLength!==t.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(r.bytesFilled+t.byteLength>r.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");r.buffer=t.buffer,Ie(e,t.byteLength)}function Le(e,t,r,n,a,i,o){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,pe(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=i,t._pullAlgorithm=n,t._cancelAlgorithm=a,t._autoAllocateChunkSize=o,t._pendingPullIntos=new S,e._readableStreamController=t,p(f(r()),(function(){t._started=!0,be(t)}),(function(e){Me(t,e)}))}function Ue(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function $e(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function qe(e){return new We(e)}function Xe(e,t){e._reader._readIntoRequests.push(t)}function He(e){return e._reader._readIntoRequests.length}function ze(e){var t=e._reader;return void 0!==t&&!!Ge(t)}Object.defineProperties(me.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(me.prototype,t.toStringTag,{value:"ReadableByteStreamController",configurable:!0});var We=function(){function e(e){if(U(e,1,"ReadableStreamBYOBReader"),z(e,"First parameter"),kr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!ve(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");x(this,e),this._readIntoRequests=new S}return Object.defineProperty(e.prototype,"closed",{get:function(){return Ge(this)?this._closedPromise:h(Ye("closed"))},enumerable:!1,configurable:!0}),e.prototype.cancel=function(e){return void 0===e&&(e=void 0),Ge(this)?void 0===this._ownerReadableStream?h(C("cancel")):A(this,e):h(Ye("cancel"))},e.prototype.read=function(e){if(!Ge(this))return h(Ye("read"));if(!ArrayBuffer.isView(e))return h(new TypeError("view must be an array buffer view"));if(0===e.byteLength)return h(new TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return h(new TypeError("view's buffer must have non-zero byteLength"));if(e.buffer,void 0===this._ownerReadableStream)return h(C("read from"));var t,r,n=u((function(e,n){t=e,r=n}));return Ve(this,e,{_chunkSteps:function(e){return t({value:e,done:!1})},_closeSteps:function(e){return t({value:e,done:!0})},_errorSteps:function(e){return r(e)}}),n},e.prototype.releaseLock=function(){if(!Ge(this))throw Ye("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");O(this)}},e}();function Ge(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof We}function Ve(e,t,r){var n=e._ownerReadableStream;n._disturbed=!0,"errored"===n._state?r._errorSteps(n._storedError):function(e,t,r){var n=e._controlledReadableByteStream,a=1;t.constructor!==DataView&&(a=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,o=t.buffer,s={buffer:o,bufferByteLength:o.byteLength,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:a,viewConstructor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(s),void Xe(n,r);if("closed"!==n._state){if(e._queueTotalSize>0){if(Ae(e,s)){var c=Se(s);return Ce(e),void r._chunkSteps(c)}if(e._closeRequested){var l=new TypeError("Insufficient bytes to fill elements in the given buffer");return Me(e,l),void r._errorSteps(l)}}e._pendingPullIntos.push(s),Xe(n,r),be(e)}else{var u=new i(s.buffer,s.byteOffset,0);r._closeSteps(u)}}(n._readableStreamController,t,r)}function Ye(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function Ke(e,t){var r=e.highWaterMark;if(void 0===r)return t;if(se(r)||r<0)throw new RangeError("Invalid highWaterMark");return r}function Je(e){return e.size||function(){return 1}}function Ze(e,t){D(e,t);var r=null==e?void 0:e.highWaterMark,n=null==e?void 0:e.size;return{highWaterMark:void 0===r?void 0:q(r),size:void 0===n?void 0:Qe(n,t+" has member 'size' that")}}function Qe(e,t){return N(e,t),function(t){return q(e(t))}}function et(e,t,r){return N(e,r),function(r){return k(e,t,[r])}}function tt(e,t,r){return N(e,r),function(){return k(e,t,[])}}function rt(e,t,r){return N(e,r),function(r){return w(e,t,[r])}}function nt(e,t,r){return N(e,r),function(r,n){return k(e,t,[r,n])}}function at(e,t){if(!lt(e))throw new TypeError(t+" is not a WritableStream.")}Object.defineProperties(We.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(We.prototype,t.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});var it="function"==typeof AbortController,ot=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),void 0===e?e=null:L(e,"First parameter");var r=Ze(t,"Second parameter"),n=function(e,t){D(e,t);var r=null==e?void 0:e.abort,n=null==e?void 0:e.close,a=null==e?void 0:e.start,i=null==e?void 0:e.type,o=null==e?void 0:e.write;return{abort:void 0===r?void 0:et(r,e,t+" has member 'abort' that"),close:void 0===n?void 0:tt(n,e,t+" has member 'close' that"),start:void 0===a?void 0:rt(a,e,t+" has member 'start' that"),write:void 0===o?void 0:nt(o,e,t+" has member 'write' that"),type:i}}(e,"First parameter");if(ct(this),void 0!==n.type)throw new RangeError("Invalid type is specified");var a=Je(r);!function(e,t,r,n){var a=Object.create(Ct.prototype),i=function(){},o=function(){return f(void 0)},s=function(){return f(void 0)},c=function(){return f(void 0)};void 0!==t.start&&(i=function(){return t.start(a)}),void 0!==t.write&&(o=function(e){return t.write(e,a)}),void 0!==t.close&&(s=function(){return t.close()}),void 0!==t.abort&&(c=function(e){return t.abort(e)}),Tt(e,a,i,o,s,c,r,n)}(this,n,Ke(r,1),a)}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!lt(this))throw Rt("locked");return ut(this)},enumerable:!1,configurable:!0}),e.prototype.abort=function(e){return void 0===e&&(e=void 0),lt(this)?ut(this)?h(new TypeError("Cannot abort a stream that already has a writer")):ft(this,e):h(Rt("abort"))},e.prototype.close=function(){return lt(this)?ut(this)?h(new TypeError("Cannot close a stream that already has a writer")):mt(this)?h(new TypeError("Cannot close an already-closing stream")):ht(this):h(Rt("close"))},e.prototype.getWriter=function(){if(!lt(this))throw Rt("getWriter");return st(this)},e}();function st(e){return new bt(e)}function ct(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new S,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function lt(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof ot}function ut(e){return void 0!==e._writer}function ft(e,t){var r;if("closed"===e._state||"errored"===e._state)return f(void 0);e._writableStreamController._abortReason=t,null===(r=e._writableStreamController._abortController)||void 0===r||r.abort();var n=e._state;if("closed"===n||"errored"===n)return f(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;var a=!1;"erroring"===n&&(a=!0,t=void 0);var i=u((function(r,n){e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:n,_reason:t,_wasAlreadyErroring:a}}));return e._pendingAbortRequest._promise=i,a||pt(e,t),i}function ht(e){var t=e._state;if("closed"===t||"errored"===t)return h(new TypeError("The stream (in "+t+" state) is not in the writable state and cannot be closed"));var r,n=u((function(t,r){var n={_resolve:t,_reject:r};e._closeRequest=n})),a=e._writer;return void 0!==a&&e._backpressure&&"writable"===t&&Gt(a),de(r=e._writableStreamController,Ot,0),_t(r),n}function dt(e,t){"writable"!==e._state?gt(e):pt(e,t)}function pt(e,t){var r=e._writableStreamController;e._state="erroring",e._storedError=t;var n=e._writer;void 0!==n&&St(n,t),!function(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}(e)&&r._started&&gt(e)}function gt(e){e._state="errored",e._writableStreamController[E]();var t=e._storedError;if(e._writeRequests.forEach((function(e){e._reject(t)})),e._writeRequests=new S,void 0!==e._pendingAbortRequest){var r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring)return r._reject(t),void vt(e);p(e._writableStreamController[_](r._reason),(function(){r._resolve(),vt(e)}),(function(t){r._reject(t),vt(e)}))}else vt(e)}function mt(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function vt(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;void 0!==t&&$t(t,e._storedError)}function yt(e,t){var r=e._writer;void 0!==r&&t!==e._backpressure&&(t?function(e){Xt(e)}(r):Gt(r)),e._backpressure=t}Object.defineProperties(ot.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(ot.prototype,t.toStringTag,{value:"WritableStream",configurable:!0});var bt=function(){function e(e){if(U(e,1,"WritableStreamDefaultWriter"),at(e,"First parameter"),ut(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;var t=e._state;if("writable"===t)!mt(e)&&e._backpressure?Xt(this):zt(this),Lt(this);else if("erroring"===t)Ht(this,e._storedError),Lt(this);else if("closed"===t)zt(this),Lt(this),qt(this);else{var r=e._storedError;Ht(this,r),Ut(this,r)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return wt(this)?this._closedPromise:h(Dt("closed"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!wt(this))throw Dt("desiredSize");if(void 0===this._ownerWritableStream)throw Nt("desiredSize");return"errored"===(t=(e=this._ownerWritableStream)._state)||"erroring"===t?null:"closed"===t?0:Pt(e._writableStreamController);var e,t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return wt(this)?this._readyPromise:h(Dt("ready"))},enumerable:!1,configurable:!0}),e.prototype.abort=function(e){return void 0===e&&(e=void 0),wt(this)?void 0===this._ownerWritableStream?h(Nt("abort")):function(e,t){return ft(e._ownerWritableStream,t)}(this,e):h(Dt("abort"))},e.prototype.close=function(){if(!wt(this))return h(Dt("close"));var e=this._ownerWritableStream;return void 0===e?h(Nt("close")):mt(e)?h(new TypeError("Cannot close an already-closing stream")):kt(this)},e.prototype.releaseLock=function(){if(!wt(this))throw Dt("releaseLock");void 0!==this._ownerWritableStream&&xt(this)},e.prototype.write=function(e){return void 0===e&&(e=void 0),wt(this)?void 0===this._ownerWritableStream?h(Nt("write to")):At(this,e):h(Dt("write"))},e}();function wt(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof bt}function kt(e){return ht(e._ownerWritableStream)}function St(e,t){"pending"===e._readyPromiseState?Wt(e,t):function(e,t){Ht(e,t)}(e,t)}function xt(e){var t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");St(e,r),function(e,t){"pending"===e._closedPromiseState?$t(e,t):function(e,t){Ut(e,t)}(e,t)}(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function At(e,t){var r=e._ownerWritableStream,n=r._writableStreamController,a=function(e,t){try{return e._strategySizeAlgorithm(t)}catch(t){return Et(e,t),1}}(n,t);if(r!==e._ownerWritableStream)return h(Nt("write to"));var i=r._state;if("errored"===i)return h(r._storedError);if(mt(r)||"closed"===i)return h(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===i)return h(r._storedError);var o=function(e){return u((function(t,r){var n={_resolve:t,_reject:r};e._writeRequests.push(n)}))}(r);return function(e,t,r){try{de(e,t,r)}catch(t){return void Et(e,t)}var n=e._controlledWritableStream;mt(n)||"writable"!==n._state||yt(n,jt(e)),_t(e)}(n,t,a),o}Object.defineProperties(bt.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(bt.prototype,t.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});var Ot={},Ct=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"abortReason",{get:function(){if(!Ft(this))throw Bt("abortReason");return this._abortReason},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"signal",{get:function(){if(!Ft(this))throw Bt("signal");if(void 0===this._abortController)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal},enumerable:!1,configurable:!0}),e.prototype.error=function(e){if(void 0===e&&(e=void 0),!Ft(this))throw Bt("error");"writable"===this._controlledWritableStream._state&&Mt(this,e)},e.prototype[_]=function(e){var t=this._abortAlgorithm(e);return It(this),t},e.prototype[E]=function(){pe(this)},e}();function Ft(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof Ct}function Tt(e,t,r,n,a,i,o,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,pe(t),t._abortReason=void 0,t._abortController=function(){if(it)return new AbortController}(),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=o,t._writeAlgorithm=n,t._closeAlgorithm=a,t._abortAlgorithm=i;var c=jt(t);yt(e,c),p(f(r()),(function(){t._started=!0,_t(t)}),(function(r){t._started=!0,dt(e,r)}))}function It(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Pt(e){return e._strategyHWM-e._queueTotalSize}function _t(e){var t=e._controlledWritableStream;if(e._started&&void 0===t._inFlightWriteRequest)if("erroring"!==t._state){if(0!==e._queue.length){var r=e._queue.peek().value;r===Ot?function(e){var t=e._controlledWritableStream;(function(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(t),he(e);var r=e._closeAlgorithm();It(e),p(r,(function(){!function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var t=e._writer;void 0!==t&&qt(t)}(t)}),(function(e){!function(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),dt(e,t)}(t,e)}))}(e):function(e,t){var r=e._controlledWritableStream;(function(e){e._inFlightWriteRequest=e._writeRequests.shift()})(r),p(e._writeAlgorithm(t),(function(){!function(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(r);var t=r._state;if(he(e),!mt(r)&&"writable"===t){var n=jt(e);yt(r,n)}_t(e)}),(function(t){"writable"===r._state&&It(e),function(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,dt(e,t)}(r,t)}))}(e,r)}}else gt(t)}function Et(e,t){"writable"===e._controlledWritableStream._state&&Mt(e,t)}function jt(e){return Pt(e)<=0}function Mt(e,t){var r=e._controlledWritableStream;It(e),pt(r,t)}function Rt(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function Bt(e){return new TypeError("WritableStreamDefaultController.prototype."+e+" can only be used on a WritableStreamDefaultController")}function Dt(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function Nt(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function Lt(e){e._closedPromise=u((function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"}))}function Ut(e,t){Lt(e),$t(e,t)}function $t(e,t){void 0!==e._closedPromise_reject&&(y(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function qt(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function Xt(e){e._readyPromise=u((function(t,r){e._readyPromise_resolve=t,e._readyPromise_reject=r})),e._readyPromiseState="pending"}function Ht(e,t){Xt(e),Wt(e,t)}function zt(e){Xt(e),Gt(e)}function Wt(e,t){void 0!==e._readyPromise_reject&&(y(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function Gt(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(Ct.prototype,{error:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Ct.prototype,t.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});var Vt,Yt="undefined"!=typeof DOMException?DOMException:void 0,Kt=function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;try{return new e,!0}catch(e){return!1}}(Yt)?Yt:((Vt=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}).prototype=Object.create(Error.prototype),Object.defineProperty(Vt.prototype,"constructor",{value:Vt,writable:!0,configurable:!0}),Vt);function Jt(e,t,n,a,i,o){var s=W(e),c=st(t);e._disturbed=!0;var l=!1,v=f(void 0);return u((function(b,w){var k,S,x,A;if(void 0!==o){if(k=function(){var r=new Kt("Aborted","AbortError"),n=[];a||n.push((function(){return"writable"===t._state?ft(t,r):f(void 0)})),i||n.push((function(){return"readable"===e._state?Sr(e,r):f(void 0)})),I((function(){return Promise.all(n.map((function(e){return e()})))}),!0,r)},o.aborted)return void k();o.addEventListener("abort",k)}if(T(e,s._closedPromise,(function(e){a?P(!0,e):I((function(){return ft(t,e)}),!0,e)})),T(t,c._closedPromise,(function(t){i?P(!0,t):I((function(){return Sr(e,t)}),!0,t)})),S=e,x=s._closedPromise,A=function(){n?P():I((function(){return function(e){var t=e._ownerWritableStream,r=t._state;return mt(t)||"closed"===r?f(void 0):"errored"===r?h(t._storedError):kt(e)}(c)}))},"closed"===S._state?A():g(x,A),mt(t)||"closed"===t._state){var C=new TypeError("the destination writable stream closed before all data could be piped to it");i?P(!0,C):I((function(){return Sr(e,C)}),!0,C)}function F(){var e=v;return d(v,(function(){return e!==v?F():void 0}))}function T(e,t,r){"errored"===e._state?r(e._storedError):m(t,r)}function I(e,r,n){function a(){p(e(),(function(){return _(r,n)}),(function(e){return _(!0,e)}))}l||(l=!0,"writable"!==t._state||mt(t)?a():g(F(),a))}function P(e,r){l||(l=!0,"writable"!==t._state||mt(t)?_(e,r):g(F(),(function(){return _(e,r)})))}function _(e,t){xt(c),O(s),void 0!==o&&o.removeEventListener("abort",k),e?w(t):b(void 0)}y(u((function(e,t){!function n(a){a?e():d(l?f(!0):d(c._readyPromise,(function(){return u((function(e,t){te(s,{_chunkSteps:function(t){v=d(At(c,t),void 0,r),e(!1)},_closeSteps:function(){return e(!0)},_errorSteps:t})}))})),n,t)}(!1)})))}))}var Zt=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!Qt(this))throw lr("desiredSize");return or(this)},enumerable:!1,configurable:!0}),e.prototype.close=function(){if(!Qt(this))throw lr("close");if(!sr(this))throw new TypeError("The stream is not in a state that permits close");nr(this)},e.prototype.enqueue=function(e){if(void 0===e&&(e=void 0),!Qt(this))throw lr("enqueue");if(!sr(this))throw new TypeError("The stream is not in a state that permits enqueue");return ar(this,e)},e.prototype.error=function(e){if(void 0===e&&(e=void 0),!Qt(this))throw lr("error");ir(this,e)},e.prototype[j]=function(e){pe(this);var t=this._cancelAlgorithm(e);return rr(this),t},e.prototype[M]=function(e){var t=this._controlledReadableStream;if(this._queue.length>0){var r=he(this);this._closeRequested&&0===this._queue.length?(rr(this),xr(t)):er(this),e._chunkSteps(r)}else G(t,e),er(this)},e}();function Qt(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof Zt}function er(e){tr(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,p(e._pullAlgorithm(),(function(){e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,er(e))}),(function(t){ir(e,t)}))))}function tr(e){var t=e._controlledReadableStream;return!!sr(e)&&!!e._started&&(!!(kr(t)&&Y(t)>0)||or(e)>0)}function rr(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function nr(e){if(sr(e)){var t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(rr(e),xr(t))}}function ar(e,t){if(sr(e)){var r=e._controlledReadableStream;if(kr(r)&&Y(r)>0)V(r,t,!1);else{var n=void 0;try{n=e._strategySizeAlgorithm(t)}catch(t){throw ir(e,t),t}try{de(e,t,n)}catch(t){throw ir(e,t),t}}er(e)}}function ir(e,t){var r=e._controlledReadableStream;"readable"===r._state&&(pe(e),rr(e),Ar(r,t))}function or(e){var t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function sr(e){var t=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===t}function cr(e,t,r,n,a,i,o){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,pe(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=o,t._strategyHWM=i,t._pullAlgorithm=n,t._cancelAlgorithm=a,e._readableStreamController=t,p(f(r()),(function(){t._started=!0,er(t)}),(function(e){ir(t,e)}))}function lr(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function ur(e,t,r){return N(e,r),function(r){return k(e,t,[r])}}function fr(e,t,r){return N(e,r),function(r){return k(e,t,[r])}}function hr(e,t,r){return N(e,r),function(r){return w(e,t,[r])}}function dr(e,t){if("bytes"!=(e=""+e))throw new TypeError(t+" '"+e+"' is not a valid enumeration value for ReadableStreamType");return e}function pr(e,t){if("byob"!=(e=""+e))throw new TypeError(t+" '"+e+"' is not a valid enumeration value for ReadableStreamReaderMode");return e}function gr(e,t){D(e,t);var r=null==e?void 0:e.preventAbort,n=null==e?void 0:e.preventCancel,a=null==e?void 0:e.preventClose,i=null==e?void 0:e.signal;return void 0!==i&&function(e,t){if(!function(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}(e))throw new TypeError(t+" is not an AbortSignal.")}(i,t+" has member 'signal' that"),{preventAbort:Boolean(r),preventCancel:Boolean(n),preventClose:Boolean(a),signal:i}}Object.defineProperties(Zt.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Zt.prototype,t.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});var mr=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),void 0===e?e=null:L(e,"First parameter");var r=Ze(t,"Second parameter"),n=function(e,t){D(e,t);var r=e,n=null==r?void 0:r.autoAllocateChunkSize,a=null==r?void 0:r.cancel,i=null==r?void 0:r.pull,o=null==r?void 0:r.start,s=null==r?void 0:r.type;return{autoAllocateChunkSize:void 0===n?void 0:H(n,t+" has member 'autoAllocateChunkSize' that"),cancel:void 0===a?void 0:ur(a,r,t+" has member 'cancel' that"),pull:void 0===i?void 0:fr(i,r,t+" has member 'pull' that"),start:void 0===o?void 0:hr(o,r,t+" has member 'start' that"),type:void 0===s?void 0:dr(s,t+" has member 'type' that")}}(e,"First parameter");if(br(this),"bytes"===n.type){if(void 0!==r.size)throw new RangeError("The strategy for a byte stream cannot have a size function");!function(e,t,r){var n=Object.create(me.prototype),a=function(){},i=function(){return f(void 0)},o=function(){return f(void 0)};void 0!==t.start&&(a=function(){return t.start(n)}),void 0!==t.pull&&(i=function(){return t.pull(n)}),void 0!==t.cancel&&(o=function(e){return t.cancel(e)});var s=t.autoAllocateChunkSize;if(0===s)throw new TypeError("autoAllocateChunkSize must be greater than 0");Le(e,n,a,i,o,r,s)}(this,n,Ke(r,0))}else{var a=Je(r);!function(e,t,r,n){var a=Object.create(Zt.prototype),i=function(){},o=function(){return f(void 0)},s=function(){return f(void 0)};void 0!==t.start&&(i=function(){return t.start(a)}),void 0!==t.pull&&(o=function(){return t.pull(a)}),void 0!==t.cancel&&(s=function(e){return t.cancel(e)}),cr(e,a,i,o,s,r,n)}(this,n,Ke(r,1),a)}}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!wr(this))throw Or("locked");return kr(this)},enumerable:!1,configurable:!0}),e.prototype.cancel=function(e){return void 0===e&&(e=void 0),wr(this)?kr(this)?h(new TypeError("Cannot cancel a stream that already has a reader")):Sr(this,e):h(Or("cancel"))},e.prototype.getReader=function(e){if(void 0===e&&(e=void 0),!wr(this))throw Or("getReader");return void 0===function(e,t){D(e,t);var r=null==e?void 0:e.mode;return{mode:void 0===r?void 0:pr(r,t+" has member 'mode' that")}}(e,"First parameter").mode?W(this):qe(this)},e.prototype.pipeThrough=function(e,t){if(void 0===t&&(t={}),!wr(this))throw Or("pipeThrough");U(e,1,"pipeThrough");var r=function(e,t){D(e,t);var r=null==e?void 0:e.readable;$(r,"readable","ReadableWritablePair"),z(r,t+" has member 'readable' that");var n=null==e?void 0:e.writable;return $(n,"writable","ReadableWritablePair"),at(n,t+" has member 'writable' that"),{readable:r,writable:n}}(e,"First parameter"),n=gr(t,"Second parameter");if(kr(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(ut(r.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return y(Jt(this,r.writable,n.preventClose,n.preventAbort,n.preventCancel,n.signal)),r.readable},e.prototype.pipeTo=function(e,t){if(void 0===t&&(t={}),!wr(this))return h(Or("pipeTo"));if(void 0===e)return h("Parameter 1 is required in 'pipeTo'.");if(!lt(e))return h(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));var r;try{r=gr(t,"Second parameter")}catch(e){return h(e)}return kr(this)?h(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):ut(e)?h(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Jt(this,e,r.preventClose,r.preventAbort,r.preventCancel,r.signal)},e.prototype.tee=function(){if(!wr(this))throw Or("tee");return ce(ve((e=this)._readableStreamController)?function(e){var t,r,n,a,i,o=W(e),s=!1,c=!1,l=!1,h=u((function(e){i=e}));function d(e){m(e._closedPromise,(function(t){e===o&&(Me(n._readableStreamController,t),Me(a._readableStreamController,t),c&&l||i(void 0))}))}function p(){Ge(o)&&(O(o),d(o=W(e))),te(o,{_chunkSteps:function(t){b((function(){s=!1;var r=t,o=t;if(!c&&!l)try{o=fe(t)}catch(t){return Me(n._readableStreamController,t),Me(a._readableStreamController,t),void i(Sr(e,t))}c||je(n._readableStreamController,r),l||je(a._readableStreamController,o)}))},_closeSteps:function(){s=!1,c||Ee(n._readableStreamController),l||Ee(a._readableStreamController),n._readableStreamController._pendingPullIntos.length>0&&De(n._readableStreamController,0),a._readableStreamController._pendingPullIntos.length>0&&De(a._readableStreamController,0),c&&l||i(void 0)},_errorSteps:function(){s=!1}})}function g(t,r){ee(o)&&(O(o),d(o=qe(e)));var u=r?a:n,f=r?n:a;Ve(o,t,{_chunkSteps:function(t){b((function(){s=!1;var n=r?l:c;if(r?c:l)n||Ne(u._readableStreamController,t);else{var a=void 0;try{a=fe(t)}catch(t){return Me(u._readableStreamController,t),Me(f._readableStreamController,t),void i(Sr(e,t))}n||Ne(u._readableStreamController,t),je(f._readableStreamController,a)}}))},_closeSteps:function(e){s=!1;var t=r?l:c,n=r?c:l;t||Ee(u._readableStreamController),n||Ee(f._readableStreamController),void 0!==e&&(t||Ne(u._readableStreamController,e),!n&&f._readableStreamController._pendingPullIntos.length>0&&De(f._readableStreamController,0)),t&&n||i(void 0)},_errorSteps:function(){s=!1}})}function v(){}return n=yr(v,(function(){if(s)return f(void 0);s=!0;var e=Re(n._readableStreamController);return null===e?p():g(e._view,!1),f(void 0)}),(function(n){if(c=!0,t=n,l){var a=ce([t,r]),o=Sr(e,a);i(o)}return h})),a=yr(v,(function(){if(s)return f(void 0);s=!0;var e=Re(a._readableStreamController);return null===e?p():g(e._view,!0),f(void 0)}),(function(n){if(l=!0,r=n,c){var a=ce([t,r]),o=Sr(e,a);i(o)}return h})),d(o),[n,a]}(e):function(e,t){var r,n,a,i,o,s=W(e),c=!1,l=!1,h=!1,d=u((function(e){o=e}));function p(){return c||(c=!0,te(s,{_chunkSteps:function(e){b((function(){c=!1;var t=e,r=e;l||ar(a._readableStreamController,t),h||ar(i._readableStreamController,r)}))},_closeSteps:function(){c=!1,l||nr(a._readableStreamController),h||nr(i._readableStreamController),l&&h||o(void 0)},_errorSteps:function(){c=!1}})),f(void 0)}function g(){}return a=vr(g,p,(function(t){if(l=!0,r=t,h){var a=ce([r,n]),i=Sr(e,a);o(i)}return d})),i=vr(g,p,(function(t){if(h=!0,n=t,l){var a=ce([r,n]),i=Sr(e,a);o(i)}return d})),m(s._closedPromise,(function(e){ir(a._readableStreamController,e),ir(i._readableStreamController,e),l&&h||o(void 0)})),[a,i]}(e));var e},e.prototype.values=function(e){if(void 0===e&&(e=void 0),!wr(this))throw Or("values");var t,r,n,a,i=function(e,t){D(e,"First parameter");var r=null==e?void 0:e.preventCancel;return{preventCancel:Boolean(r)}}(e);return this,t=i.preventCancel,r=W(this),n=new ne(r,t),(a=Object.create(ae))._asyncIteratorImpl=n,a},e}();function vr(e,t,r,n,a){void 0===n&&(n=1),void 0===a&&(a=function(){return 1});var i=Object.create(mr.prototype);return br(i),cr(i,Object.create(Zt.prototype),e,t,r,n,a),i}function yr(e,t,r){var n=Object.create(mr.prototype);return br(n),Le(n,Object.create(me.prototype),e,t,r,0,void 0),n}function br(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function wr(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof mr}function kr(e){return void 0!==e._reader}function Sr(e,t){if(e._disturbed=!0,"closed"===e._state)return f(void 0);if("errored"===e._state)return h(e._storedError);xr(e);var n=e._reader;return void 0!==n&&Ge(n)&&(n._readIntoRequests.forEach((function(e){e._closeSteps(void 0)})),n._readIntoRequests=new S),v(e._readableStreamController[j](t),r)}function xr(e){e._state="closed";var t=e._reader;void 0!==t&&(P(t),ee(t)&&(t._readRequests.forEach((function(e){e._closeSteps()})),t._readRequests=new S))}function Ar(e,t){e._state="errored",e._storedError=t;var r=e._reader;void 0!==r&&(I(r,t),ee(r)?(r._readRequests.forEach((function(e){e._errorSteps(t)})),r._readRequests=new S):(r._readIntoRequests.forEach((function(e){e._errorSteps(t)})),r._readIntoRequests=new S))}function Or(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function Cr(e,t){D(e,t);var r=null==e?void 0:e.highWaterMark;return $(r,"highWaterMark","QueuingStrategyInit"),{highWaterMark:q(r)}}Object.defineProperties(mr.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(mr.prototype,t.toStringTag,{value:"ReadableStream",configurable:!0}),"symbol"==typeof t.asyncIterator&&Object.defineProperty(mr.prototype,t.asyncIterator,{value:mr.prototype.values,writable:!0,configurable:!0});var Fr=function(e){return e.byteLength};Object.defineProperty(Fr,"name",{value:"size",configurable:!0});var Tr=function(){function e(e){U(e,1,"ByteLengthQueuingStrategy"),e=Cr(e,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark}return Object.defineProperty(e.prototype,"highWaterMark",{get:function(){if(!Pr(this))throw Ir("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){if(!Pr(this))throw Ir("size");return Fr},enumerable:!1,configurable:!0}),e}();function Ir(e){return new TypeError("ByteLengthQueuingStrategy.prototype."+e+" can only be used on a ByteLengthQueuingStrategy")}function Pr(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_byteLengthQueuingStrategyHighWaterMark")&&e instanceof Tr}Object.defineProperties(Tr.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Tr.prototype,t.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});var _r=function(){return 1};Object.defineProperty(_r,"name",{value:"size",configurable:!0});var Er=function(){function e(e){U(e,1,"CountQueuingStrategy"),e=Cr(e,"First parameter"),this._countQueuingStrategyHighWaterMark=e.highWaterMark}return Object.defineProperty(e.prototype,"highWaterMark",{get:function(){if(!Mr(this))throw jr("highWaterMark");return this._countQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){if(!Mr(this))throw jr("size");return _r},enumerable:!1,configurable:!0}),e}();function jr(e){return new TypeError("CountQueuingStrategy.prototype."+e+" can only be used on a CountQueuingStrategy")}function Mr(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_countQueuingStrategyHighWaterMark")&&e instanceof Er}function Rr(e,t,r){return N(e,r),function(r){return k(e,t,[r])}}function Br(e,t,r){return N(e,r),function(r){return w(e,t,[r])}}function Dr(e,t,r){return N(e,r),function(r,n){return k(e,t,[r,n])}}Object.defineProperties(Er.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Er.prototype,t.toStringTag,{value:"CountQueuingStrategy",configurable:!0});var Nr=function(){function e(e,t,r){void 0===e&&(e={}),void 0===t&&(t={}),void 0===r&&(r={}),void 0===e&&(e=null);var n=Ze(t,"Second parameter"),a=Ze(r,"Third parameter"),i=function(e,t){D(e,t);var r=null==e?void 0:e.flush,n=null==e?void 0:e.readableType,a=null==e?void 0:e.start,i=null==e?void 0:e.transform,o=null==e?void 0:e.writableType;return{flush:void 0===r?void 0:Rr(r,e,t+" has member 'flush' that"),readableType:n,start:void 0===a?void 0:Br(a,e,t+" has member 'start' that"),transform:void 0===i?void 0:Dr(i,e,t+" has member 'transform' that"),writableType:o}}(e,"First parameter");if(void 0!==i.readableType)throw new RangeError("Invalid readableType specified");if(void 0!==i.writableType)throw new RangeError("Invalid writableType specified");var o,s=Ke(a,0),c=Je(a),l=Ke(n,1),d=Je(n);!function(e,t,r,n,a,i){function o(){return t}e._writable=function(e,t,r,n,a,i){void 0===a&&(a=1),void 0===i&&(i=function(){return 1});var o=Object.create(ot.prototype);return ct(o),Tt(o,Object.create(Ct.prototype),e,t,r,n,a,i),o}(o,(function(t){return function(e,t){var r=e._transformStreamController;return e._backpressure?v(e._backpressureChangePromise,(function(){var n=e._writable;if("erroring"===n._state)throw n._storedError;return Gr(r,t)})):Gr(r,t)}(e,t)}),(function(){return function(e){var t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return zr(r),v(n,(function(){if("errored"===t._state)throw t._storedError;nr(t._readableStreamController)}),(function(r){throw Ur(e,r),t._storedError}))}(e)}),(function(t){return function(e,t){return Ur(e,t),f(void 0)}(e,t)}),r,n),e._readable=vr(o,(function(){return function(e){return qr(e,!1),e._backpressureChangePromise}(e)}),(function(t){return $r(e,t),f(void 0)}),a,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,qr(e,!0),e._transformStreamController=void 0}(this,u((function(e){o=e})),l,d,s,c),function(e,t){var r=Object.create(Xr.prototype),n=function(e){try{return Wr(r,e),f(void 0)}catch(e){return h(e)}},a=function(){return f(void 0)};void 0!==t.transform&&(n=function(e){return t.transform(e,r)}),void 0!==t.flush&&(a=function(){return t.flush(r)}),function(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}(e,r,n,a)}(this,i),void 0!==i.start?o(i.start(this._transformStreamController)):o(void 0)}return Object.defineProperty(e.prototype,"readable",{get:function(){if(!Lr(this))throw Yr("readable");return this._readable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"writable",{get:function(){if(!Lr(this))throw Yr("writable");return this._writable},enumerable:!1,configurable:!0}),e}();function Lr(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")&&e instanceof Nr}function Ur(e,t){ir(e._readable._readableStreamController,t),$r(e,t)}function $r(e,t){zr(e._transformStreamController),Et(e._writable._writableStreamController,t),e._backpressure&&qr(e,!1)}function qr(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=u((function(t){e._backpressureChangePromise_resolve=t})),e._backpressure=t}Object.defineProperties(Nr.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Nr.prototype,t.toStringTag,{value:"TransformStream",configurable:!0});var Xr=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!Hr(this))throw Vr("desiredSize");return or(this._controlledTransformStream._readable._readableStreamController)},enumerable:!1,configurable:!0}),e.prototype.enqueue=function(e){if(void 0===e&&(e=void 0),!Hr(this))throw Vr("enqueue");Wr(this,e)},e.prototype.error=function(e){if(void 0===e&&(e=void 0),!Hr(this))throw Vr("error");var t;t=e,Ur(this._controlledTransformStream,t)},e.prototype.terminate=function(){if(!Hr(this))throw Vr("terminate");var e;nr((e=this._controlledTransformStream)._readable._readableStreamController),$r(e,new TypeError("TransformStream terminated"))},e}();function Hr(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof Xr}function zr(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function Wr(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(!sr(n))throw new TypeError("Readable side is not in a state that permits enqueue");try{ar(n,t)}catch(e){throw $r(r,e),r._readable._storedError}var a=function(e){return!tr(e)}(n);a!==r._backpressure&&qr(r,!0)}function Gr(e,t){return v(e._transformAlgorithm(t),void 0,(function(t){throw Ur(e._controlledTransformStream,t),t}))}function Vr(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function Yr(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}Object.defineProperties(Xr.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Xr.prototype,t.toStringTag,{value:"TransformStreamDefaultController",configurable:!0}),e.ByteLengthQueuingStrategy=Tr,e.CountQueuingStrategy=Er,e.ReadableByteStreamController=me,e.ReadableStream=mr,e.ReadableStreamBYOBReader=We,e.ReadableStreamBYOBRequest=ge,e.ReadableStreamDefaultController=Zt,e.ReadableStreamDefaultReader=Q,e.TransformStream=Nr,e.TransformStreamDefaultController=Xr,e.WritableStream=ot,e.WritableStreamDefaultController=Ct,e.WritableStreamDefaultWriter=bt,Object.defineProperty(e,"__esModule",{value:!0})},r(t)},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearPrimitiveCaches=function(){b._clearCache(),v._clearCache(),x._clearCache()},t.isCmd=function(e,t){return e instanceof b&&(void 0===t||e.cmd===t)},t.isDict=function(e,t){return e instanceof k&&(void 0===t||C(e.get("Type"),t))},t.isName=C,t.isRef=function(e){return e instanceof x},t.isRefsEqual=function(e,t){return e.num===t.num&&e.gen===t.gen},t.isStream=function(e){return e instanceof o.BaseStream},t.RefSetCache=t.RefSet=t.Ref=t.Name=t.EOF=t.Dict=t.Cmd=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(4),o=r(119);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=l(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function l(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),e}var g=Symbol("EOF");t.EOF=g;var m,v=(m=Object.create(null),function(){function e(t){h(this,e),this.name=t}return p(e,null,[{key:"get",value:function(t){return m[t]||(m[t]=new e(t))}},{key:"_clearCache",value:function(){m=Object.create(null)}}]),e}());t.Name=v;var y,b=(y=Object.create(null),function(){function e(t){h(this,e),this.cmd=t}return p(e,null,[{key:"get",value:function(t){return y[t]||(y[t]=new e(t))}},{key:"_clearCache",value:function(){y=Object.create(null)}}]),e}());t.Cmd=b;var w=function(){return w},k=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;h(this,e),this._map=Object.create(null),this.xref=t,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=w}var t,r;return p(e,[{key:"assignXref",value:function(e){this.xref=e}},{key:"size",get:function(){return Object.keys(this._map).length}},{key:"get",value:function(e,t,r){var n=this._map[e];return void 0===n&&void 0!==t&&void 0===(n=this._map[t])&&void 0!==r&&(n=this._map[r]),n instanceof x&&this.xref?this.xref.fetch(n,this.suppressEncryption):n}},{key:"getAsync",value:(t=a.default.mark((function e(t,r,n){var i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===(i=this._map[t])&&void 0!==r&&void 0===(i=this._map[r])&&void 0!==n&&(i=this._map[n]),!(i instanceof x&&this.xref)){e.next=4;break}return e.abrupt("return",this.xref.fetchAsync(i,this.suppressEncryption));case 4:return e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)})),r=function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(e){f(i,n,a,o,s,"next",e)}function s(e){f(i,n,a,o,s,"throw",e)}o(void 0)}))},function(e,t,n){return r.apply(this,arguments)})},{key:"getArray",value:function(e,t,r){var n=this._map[e];if(void 0===n&&void 0!==t&&void 0===(n=this._map[t])&&void 0!==r&&(n=this._map[r]),n instanceof x&&this.xref&&(n=this.xref.fetch(n,this.suppressEncryption)),Array.isArray(n))for(var a=0,i=(n=n.slice()).length;a<i;a++)n[a]instanceof x&&this.xref&&(n[a]=this.xref.fetch(n[a],this.suppressEncryption));return n}},{key:"getRaw",value:function(e){return this._map[e]}},{key:"getKeys",value:function(){return Object.keys(this._map)}},{key:"getRawValues",value:function(){return Object.values(this._map)}},{key:"set",value:function(e,t){this._map[e]=t}},{key:"has",value:function(e){return void 0!==this._map[e]}},{key:"forEach",value:function(e){for(var t in this._map)e(t,this.get(t))}}],[{key:"empty",get:function(){var t=new e(null);return t.set=function(e,t){(0,i.unreachable)("Should not call `set` on the empty dictionary.")},(0,i.shadow)(this,"empty",t)}},{key:"merge",value:function(t){var r,n=t.xref,a=t.dictArray,i=t.mergeSubDicts,o=void 0!==i&&i,l=new e(n),u=new Map,f=c(a);try{for(f.s();!(r=f.n()).done;){var h=r.value;if(h instanceof e)for(var d=0,p=Object.entries(h._map);d<p.length;d++){var g=s(p[d],2),m=g[0],v=g[1],y=u.get(m);if(void 0===y)y=[],u.set(m,y);else if(!(o&&v instanceof e))continue;y.push(v)}}}catch(e){f.e(e)}finally{f.f()}var b,w=c(u);try{for(w.s();!(b=w.n()).done;){var k=s(b.value,2),S=k[0],x=k[1];if(1!==x.length&&x[0]instanceof e){var A,O=new e(n),C=c(x);try{for(C.s();!(A=C.n()).done;)for(var F=A.value,T=0,I=Object.entries(F._map);T<I.length;T++){var P=s(I[T],2),_=P[0],E=P[1];void 0===O._map[_]&&(O._map[_]=E)}}catch(e){C.e(e)}finally{C.f()}O.size>0&&(l._map[S]=O)}else l._map[S]=x[0]}}catch(e){w.e(e)}finally{w.f()}return u.clear(),l.size>0?l:e.empty}}]),e}();t.Dict=k;var S,x=(S=Object.create(null),function(){function e(t,r){h(this,e),this.num=t,this.gen=r}return p(e,[{key:"toString",value:function(){return 0===this.gen?"".concat(this.num,"R"):"".concat(this.num,"R").concat(this.gen)}}],[{key:"get",value:function(t,r){var n=0===r?"".concat(t,"R"):"".concat(t,"R").concat(r);return S[n]||(S[n]=new e(t,r))}},{key:"_clearCache",value:function(){S=Object.create(null)}}]),e}());t.Ref=x;var A=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;h(this,e),this._set=new Set(t&&t._set)}return p(e,[{key:"has",value:function(e){return this._set.has(e.toString())}},{key:"put",value:function(e){this._set.add(e.toString())}},{key:"remove",value:function(e){this._set.delete(e.toString())}},{key:"forEach",value:function(e){var t,r=c(this._set.values());try{for(r.s();!(t=r.n()).done;)e(t.value)}catch(e){r.e(e)}finally{r.f()}}},{key:"clear",value:function(){this._set.clear()}}]),e}();t.RefSet=A;var O=function(){function e(){h(this,e),this._map=new Map}return p(e,[{key:"size",get:function(){return this._map.size}},{key:"get",value:function(e){return this._map.get(e.toString())}},{key:"has",value:function(e){return this._map.has(e.toString())}},{key:"put",value:function(e,t){this._map.set(e.toString(),t)}},{key:"putAlias",value:function(e,t){this._map.set(e.toString(),this.get(t))}},{key:"forEach",value:function(e){var t,r=c(this._map.values());try{for(r.s();!(t=r.n()).done;)e(t.value)}catch(e){r.e(e)}finally{r.f()}}},{key:"clear",value:function(){this._map.clear()}}]),e}();function C(e,t){return e instanceof v&&(void 0===t||e.name===t)}t.RefSetCache=O},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStream=void 0;var n=r(4);function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize BaseStream.")}var t,r;return t=e,r=[{key:"length",get:function(){(0,n.unreachable)("Abstract getter `length` accessed")}},{key:"isEmpty",get:function(){(0,n.unreachable)("Abstract getter `isEmpty` accessed")}},{key:"isDataLoaded",get:function(){return(0,n.shadow)(this,"isDataLoaded",!0)}},{key:"getByte",value:function(){(0,n.unreachable)("Abstract method `getByte` called")}},{key:"getBytes",value:function(e){(0,n.unreachable)("Abstract method `getBytes` called")}},{key:"peekByte",value:function(){var e=this.getByte();return-1!==e&&this.pos--,e}},{key:"peekBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getBytes(e,t);return this.pos-=r.length,r}},{key:"getUint16",value:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}},{key:"getInt32",value:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}},{key:"getByteRange",value:function(e,t){(0,n.unreachable)("Abstract method `getByteRange` called")}},{key:"getString",value:function(e){return(0,n.bytesToString)(this.getBytes(e,!1))}},{key:"skip",value:function(e){this.pos+=e||1}},{key:"reset",value:function(){(0,n.unreachable)("Abstract method `reset` called")}},{key:"moveStart",value:function(){(0,n.unreachable)("Abstract method `moveStart` called")}},{key:"makeSubStream",value:function(e,t){(0,n.unreachable)("Abstract method `makeSubStream` called")}},{key:"getBaseStreams",value:function(){return null}}],r&&a(t.prototype,r),e}();t.BaseStream=i},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkPdfManager=t.LocalPdfManager=void 0;var a,i=(a=r(2))&&a.__esModule?a:{default:a},o=r(4),s=r(121),c=r(122),l=r(124),u=r(123);function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=m(e);if(t){var a=m(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function y(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){v(i,n,a,o,s,"next",e)}function s(e){v(i,n,a,o,s,"throw",e)}o(void 0)}))}}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function k(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),e}function S(e){if(e){var t=(0,o.createValidAbsoluteUrl)(e);if(t)return t.href;(0,o.warn)('Invalid absolute docBaseUrl: "'.concat(e,'".'))}return null}var x=function(){function e(){b(this,e),this.constructor===e&&(0,o.unreachable)("Cannot initialize BasePdfManager.")}var t;return k(e,[{key:"docId",get:function(){return this._docId}},{key:"password",get:function(){return this._password}},{key:"docBaseUrl",get:function(){return this._docBaseUrl}},{key:"onLoadedStream",value:function(){(0,o.unreachable)("Abstract method `onLoadedStream` called")}},{key:"ensureDoc",value:function(e,t){return this.ensure(this.pdfDocument,e,t)}},{key:"ensureXRef",value:function(e,t){return this.ensure(this.pdfDocument.xref,e,t)}},{key:"ensureCatalog",value:function(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}},{key:"getPage",value:function(e){return this.pdfDocument.getPage(e)}},{key:"fontFallback",value:function(e,t){return this.pdfDocument.fontFallback(e,t)}},{key:"loadXfaFonts",value:function(e,t){return this.pdfDocument.loadXfaFonts(e,t)}},{key:"loadXfaImages",value:function(){return this.pdfDocument.loadXfaImages()}},{key:"serializeXfaData",value:function(e){return this.pdfDocument.serializeXfaData(e)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pdfDocument.cleanup(e)}},{key:"ensure",value:(t=y(i.default.mark((function e(t,r,n){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,o.unreachable)("Abstract method `ensure` called");case 1:case"end":return e.stop()}}),e)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"requestRange",value:function(e,t){(0,o.unreachable)("Abstract method `requestRange` called")}},{key:"requestLoadedStream",value:function(){(0,o.unreachable)("Abstract method `requestLoadedStream` called")}},{key:"sendProgressiveData",value:function(e){(0,o.unreachable)("Abstract method `sendProgressiveData` called")}},{key:"updatePassword",value:function(e){this._password=e}},{key:"terminate",value:function(e){(0,o.unreachable)("Abstract method `terminate` called")}}]),e}(),A=function(e){f(n,e);var t,r=d(n);function n(e,t,a,i,o,s){var c;b(this,n),(c=r.call(this))._docId=e,c._password=a,c._docBaseUrl=S(s),c.evaluatorOptions=i,c.enableXfa=o;var f=new u.Stream(t);return c.pdfDocument=new l.PDFDocument(g(c),f),c._loadedStreamPromise=Promise.resolve(f),c}return k(n,[{key:"ensure",value:(t=y(i.default.mark((function e(t,r,n){var a;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(a=t[r])){e.next=3;break}return e.abrupt("return",a.apply(t,n));case 3:return e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"requestRange",value:function(e,t){return Promise.resolve()}},{key:"requestLoadedStream",value:function(){}},{key:"onLoadedStream",value:function(){return this._loadedStreamPromise}},{key:"terminate",value:function(e){}}]),n}(x);t.LocalPdfManager=A;var O=function(e){f(n,e);var t,r=d(n);function n(e,t,a,i,o,c){var u;return b(this,n),(u=r.call(this))._docId=e,u._password=a.password,u._docBaseUrl=S(c),u.msgHandler=a.msgHandler,u.evaluatorOptions=i,u.enableXfa=o,u.streamManager=new s.ChunkedStreamManager(t,{msgHandler:a.msgHandler,length:a.length,disableAutoFetch:a.disableAutoFetch,rangeChunkSize:a.rangeChunkSize}),u.pdfDocument=new l.PDFDocument(g(u),u.streamManager.getStream()),u}return k(n,[{key:"ensure",value:(t=y(i.default.mark((function e(t,r,n){var a;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"function"!=typeof(a=t[r])){e.next=4;break}return e.abrupt("return",a.apply(t,n));case 4:return e.abrupt("return",a);case 7:if(e.prev=7,e.t0=e.catch(0),e.t0 instanceof c.MissingDataException){e.next=11;break}throw e.t0;case 11:return e.next=13,this.requestRange(e.t0.begin,e.t0.end);case 13:return e.abrupt("return",this.ensure(t,r,n));case 14:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(e,r,n){return t.apply(this,arguments)})},{key:"requestRange",value:function(e,t){return this.streamManager.requestRange(e,t)}},{key:"requestLoadedStream",value:function(){this.streamManager.requestAllChunks()}},{key:"sendProgressiveData",value:function(e){this.streamManager.onReceiveData({chunk:e})}},{key:"onLoadedStream",value:function(){return this.streamManager.onLoadedStream()}},{key:"terminate",value:function(e){this.streamManager.abort(e)}}]),n}(x);t.NetworkPdfManager=O},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkedStreamManager=t.ChunkedStream=void 0;var a=r(4),i=r(122);function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(a,e);var t,r,n=(t=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,n=d(t);if(r){var a=d(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return h(this,e)});function a(e,t,r){var i;return c(this,a),(i=n.call(this,new Uint8Array(e),0,e,null)).chunkSize=t,i._loadedChunks=new Set,i.numChunks=Math.ceil(e/t),i.manager=r,i.progressiveDataLength=0,i.lastSuccessfulEnsureByteChunk=-1,i}return u(a,[{key:"getMissingChunks",value:function(){for(var e=[],t=0,r=this.numChunks;t<r;++t)this._loadedChunks.has(t)||e.push(t);return e}},{key:"numChunksLoaded",get:function(){return this._loadedChunks.size}},{key:"isDataLoaded",get:function(){return this.numChunksLoaded===this.numChunks}},{key:"onReceiveData",value:function(e,t){var r=this.chunkSize;if(e%r!=0)throw new Error("Bad begin offset: ".concat(e));var n=e+t.byteLength;if(n%r!=0&&n!==this.bytes.length)throw new Error("Bad end offset: ".concat(n));this.bytes.set(new Uint8Array(t),e);for(var a=Math.floor(e/r),i=Math.floor((n-1)/r)+1,o=a;o<i;++o)this._loadedChunks.add(o)}},{key:"onReceiveProgressiveData",value:function(e){var t=this.progressiveDataLength,r=Math.floor(t/this.chunkSize);this.bytes.set(new Uint8Array(e),t),t+=e.byteLength,this.progressiveDataLength=t;for(var n=t>=this.end?this.numChunks:Math.floor(t/this.chunkSize),a=r;a<n;++a)this._loadedChunks.add(a)}},{key:"ensureByte",value:function(e){if(!(e<this.progressiveDataLength)){var t=Math.floor(e/this.chunkSize);if(t!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new i.MissingDataException(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}}},{key:"ensureRange",value:function(e,t){if(!(e>=t||t<=this.progressiveDataLength))for(var r=this.chunkSize,n=Math.floor(e/r),a=Math.floor((t-1)/r)+1,o=n;o<a;++o)if(!this._loadedChunks.has(o))throw new i.MissingDataException(e,t)}},{key:"nextEmptyChunk",value:function(e){for(var t=this.numChunks,r=0;r<t;++r){var n=(e+r)%t;if(!this._loadedChunks.has(n))return n}return null}},{key:"hasChunk",value:function(e){return this._loadedChunks.has(e)}},{key:"getByte",value:function(){var e=this.pos;return e>=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}},{key:"getBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.bytes,n=this.pos,a=this.end;if(!e){a>this.progressiveDataLength&&this.ensureRange(n,a);var i=r.subarray(n,a);return t?new Uint8ClampedArray(i):i}var o=n+e;o>a&&(o=a),o>this.progressiveDataLength&&this.ensureRange(n,o),this.pos=o;var s=r.subarray(n,o);return t?new Uint8ClampedArray(s):s}},{key:"getByteRange",value:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),t>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}},{key:"makeSubStream",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;function n(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),n.prototype=Object.create(this),n.prototype.getMissingChunks=function(){for(var e=this.chunkSize,t=Math.floor(this.start/e),r=Math.floor((this.end-1)/e)+1,n=[],a=t;a<r;++a)this._loadedChunks.has(a)||n.push(a);return n},Object.defineProperty(n.prototype,"isDataLoaded",{get:function(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length},configurable:!0});var a=new n;return a.pos=a.start=e,a.end=e+t||this.end,a.dict=r,a}},{key:"getBaseStreams",value:function(){return[this]}}]),a}(r(123).Stream);t.ChunkedStream=p;var g=function(){function e(t,r){c(this,e),this.length=r.length,this.chunkSize=r.rangeChunkSize,this.stream=new p(this.length,this.chunkSize,this),this.pdfNetworkStream=t,this.disableAutoFetch=r.disableAutoFetch,this.msgHandler=r.msgHandler,this.currRequestId=0,this._chunksNeededByRequest=new Map,this._requestsByChunk=new Map,this._promisesByRequest=new Map,this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=(0,a.createPromiseCapability)()}return u(e,[{key:"onLoadedStream",value:function(){return this._loadedStreamCapability.promise}},{key:"sendRequest",value:function(e,t){var r=this,n=this.pdfNetworkStream.getRangeReader(e,t);n.isStreamingSupported||(n.onProgress=this.onProgress.bind(this));var i=[],o=0;return new Promise((function(e,t){n.read().then((function s(c){try{if(!c.done){var l=c.value;return i.push(l),o+=(0,a.arrayByteLength)(l),n.isStreamingSupported&&r.onProgress({loaded:o}),void n.read().then(s,t)}var u=(0,a.arraysToBytes)(i);i=null,e(u)}catch(e){t(e)}}),t)})).then((function(t){r.aborted||r.onReceiveData({chunk:t,begin:e})}))}},{key:"requestAllChunks",value:function(){var e=this.stream.getMissingChunks();return this._requestChunks(e),this._loadedStreamCapability.promise}},{key:"_requestChunks",value:function(e){var t=this,r=this.currRequestId++,n=new Set;this._chunksNeededByRequest.set(r,n);var i,s=o(e);try{for(s.s();!(i=s.n()).done;){var c=i.value;this.stream.hasChunk(c)||n.add(c)}}catch(e){s.e(e)}finally{s.f()}if(0===n.size)return Promise.resolve();var l=(0,a.createPromiseCapability)();this._promisesByRequest.set(r,l);var u,f=[],h=o(n);try{for(h.s();!(u=h.n()).done;){var d=u.value,p=this._requestsByChunk.get(d);p||(p=[],this._requestsByChunk.set(d,p),f.push(d)),p.push(r)}}catch(e){h.e(e)}finally{h.f()}if(f.length>0){var g,m=o(this.groupChunks(f));try{for(m.s();!(g=m.n()).done;){var v=g.value,y=v.beginChunk*this.chunkSize,b=Math.min(v.endChunk*this.chunkSize,this.length);this.sendRequest(y,b).catch(l.reject)}}catch(e){m.e(e)}finally{m.f()}}return l.promise.catch((function(e){if(!t.aborted)throw e}))}},{key:"getStream",value:function(){return this.stream}},{key:"requestRange",value:function(e,t){t=Math.min(t,this.length);for(var r=this.getBeginChunk(e),n=this.getEndChunk(t),a=[],i=r;i<n;++i)a.push(i);return this._requestChunks(a)}},{key:"requestRanges",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=[],n=o(t);try{for(n.s();!(e=n.n()).done;)for(var a=e.value,i=this.getBeginChunk(a.begin),s=this.getEndChunk(a.end),c=i;c<s;++c)r.includes(c)||r.push(c)}catch(e){n.e(e)}finally{n.f()}return r.sort((function(e,t){return e-t})),this._requestChunks(r)}},{key:"groupChunks",value:function(e){for(var t=[],r=-1,n=-1,a=0,i=e.length;a<i;++a){var o=e[a];r<0&&(r=o),n>=0&&n+1!==o&&(t.push({beginChunk:r,endChunk:n+1}),r=o),a+1===e.length&&t.push({beginChunk:r,endChunk:o+1}),n=o}return t}},{key:"onProgress",value:function(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}},{key:"onReceiveData",value:function(e){var t=e.chunk,r=void 0===e.begin,n=r?this.progressiveDataLength:e.begin,a=n+t.byteLength,i=Math.floor(n/this.chunkSize),s=a<this.length?Math.floor(a/this.chunkSize):Math.ceil(a/this.chunkSize);r?(this.stream.onReceiveProgressiveData(t),this.progressiveDataLength=a):this.stream.onReceiveData(n,t),this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);for(var c=[],l=i;l<s;++l){var u=this._requestsByChunk.get(l);if(u){this._requestsByChunk.delete(l);var f,h=o(u);try{for(h.s();!(f=h.n()).done;){var d=f.value,p=this._chunksNeededByRequest.get(d);p.has(l)&&p.delete(l),p.size>0||c.push(d)}}catch(e){h.e(e)}finally{h.f()}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){var g;if(1===this.stream.numChunksLoaded){var m=this.stream.numChunks-1;this.stream.hasChunk(m)||(g=m)}else g=this.stream.nextEmptyChunk(s);Number.isInteger(g)&&this._requestChunks([g])}for(var v=0,y=c;v<y.length;v++){var b=y[v],w=this._promisesByRequest.get(b);this._promisesByRequest.delete(b),w.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}},{key:"onError",value:function(e){this._loadedStreamCapability.reject(e)}},{key:"getBeginChunk",value:function(e){return Math.floor(e/this.chunkSize)}},{key:"getEndChunk",value:function(e){return Math.floor((e-1)/this.chunkSize)+1}},{key:"abort",value:function(e){this.aborted=!0,this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(e);var t,r=o(this._promisesByRequest.values());try{for(r.s();!(t=r.n()).done;)t.value.reject(e)}catch(e){r.e(e)}finally{r.f()}}}]),e}();t.ChunkedStreamManager=g},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.collectActions=function(e,t,r){var n=Object.create(null),s=y({dict:t,key:"AA",stopWhenFound:!1});if(s)for(var c=s.length-1;c>=0;c--){var l=s[c];if(l instanceof i.Dict){var u,f=o(l.getKeys());try{for(f.s();!(u=f.n()).done;){var h=u.value,d=r[h];if(d){var p=l.getRaw(h),g=new i.RefSet,m=[];w(p,e,m,g),m.length>0&&(n[d]=m)}}}catch(e){f.e(e)}finally{f.f()}}}if(t.has("A")){var v=[];w(t.get("A"),e,v,new i.RefSet),v.length>0&&(n.Action=v)}return(0,a.objectSize)(n)>0?n:null},t.encodeToXmlString=function(e){for(var t=[],r=0,n=0,a=e.length;n<a;n++){var i=e.codePointAt(n);if(32<=i&&i<=126){var o=k[i];o&&(r<n&&t.push(e.substring(r,n)),t.push(o),r=n+1)}else r<n&&t.push(e.substring(r,n)),t.push("&#x".concat(i.toString(16).toUpperCase(),";")),i>55295&&(i<57344||i>65533)&&n++,r=n+1}return 0===t.length?e:(r<e.length&&t.push(e.substring(r,e.length)),t.join(""))},t.escapePDFName=function(e){for(var t=[],r=0,n=0,a=e.length;n<a;n++){var i=e.charCodeAt(n);(i<33||i>126||35===i||40===i||41===i||60===i||62===i||91===i||93===i||123===i||125===i||47===i||37===i)&&(r<n&&t.push(e.substring(r,n)),t.push("#".concat(i.toString(16))),r=n+1)}return 0===t.length?e:(r<e.length&&t.push(e.substring(r,e.length)),t.join(""))},t.getArrayLookupTableFactory=function(e){var t;return function(){if(e){var r=e();e=null,t=Object.create(null);for(var n=0,a=r.length;n<a;n+=2)t[r[n]]=r[n+1];r=null}return t}},t.getInheritableProperty=y,t.getLookupTableFactory=function(e){var t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}},t.isWhiteSpace=function(e){return 32===e||9===e||13===e||10===e},t.log2=function(e){return e<=0?0:Math.ceil(Math.log2(e))},t.parseXFAPath=function(e){var t=/(.+)\[(\d+)\]$/;return e.split(".").map((function(e){var r=e.match(t);return r?{name:r[1],pos:parseInt(r[2],10)}:{name:e,pos:0}}))},t.readInt8=function(e,t){return e[t]<<24>>24},t.readUint16=function(e,t){return e[t]<<8|e[t+1]},t.readUint32=function(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0},t.recoverJsURL=function(e){var t=new RegExp("^\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec(e);if(t&&t[2]){var r=t[2],n=!1;return"true"===t[3]&&"app.launchURL"===t[1]&&(n=!0),{url:r,newWindow:n}}return null},t.toRomanNumerals=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,a.assert)(Number.isInteger(e)&&e>0,"The number should be a positive integer.");for(var r,n=[];e>=1e3;)e-=1e3,n.push("M");r=e/100|0,e%=100,n.push(b[r]),r=e/10|0,e%=10,n.push(b[10+r]),n.push(b[20+e]);var i=n.join("");return t?i.toLowerCase():i},t.validateCSSFont=function(e){var t=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),r=e.fontFamily,n=e.fontWeight,i=e.italicAngle;if(/^".*"$/.test(r)){if(/[^\\]"/.test(r.slice(1,r.length-1)))return(0,a.warn)('XFA - FontFamily contains some unescaped ": '.concat(r,".")),!1}else if(/^'.*'$/.test(r)){if(/[^\\]'/.test(r.slice(1,r.length-1)))return(0,a.warn)("XFA - FontFamily contains some unescaped ': ".concat(r,".")),!1}else{var s,c=o(r.split(/[ \t]+/));try{for(c.s();!(s=c.n()).done;){var l=s.value;if(/^(\d|(-(\d|-)))/.test(l)||!/^[\w-\\]+$/.test(l))return(0,a.warn)("XFA - FontFamily contains some invalid <custom-ident>: ".concat(r,".")),!1}}catch(e){c.e(e)}finally{c.f()}}var u=n?n.toString():"";e.fontWeight=t.has(u)?u:"400";var f=parseFloat(i);return e.italicAngle=isNaN(f)||f<-90||f>90?"14":i.toString(),!0},t.XRefParseException=t.XRefEntryException=t.ParserEOFException=t.MissingDataException=void 0;var a=r(4),i=r(118);function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=d(e);if(t){var a=d(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){l(r,e);var t=f(r);function r(e,n){var a;return c(this,r),(a=t.call(this,"Missing data [".concat(e,", ").concat(n,")"),"MissingDataException")).begin=e,a.end=n,a}return r}(a.BaseException);t.MissingDataException=p;var g=function(e){l(r,e);var t=f(r);function r(e){return c(this,r),t.call(this,e,"ParserEOFException")}return r}(a.BaseException);t.ParserEOFException=g;var m=function(e){l(r,e);var t=f(r);function r(e){return c(this,r),t.call(this,e,"XRefEntryException")}return r}(a.BaseException);t.XRefEntryException=m;var v=function(e){l(r,e);var t=f(r);function r(e){return c(this,r),t.call(this,e,"XRefParseException")}return r}(a.BaseException);function y(e){for(var t,r=e.dict,n=e.key,a=e.getArray,o=void 0!==a&&a,s=e.stopWhenFound,c=void 0===s||s,l=new i.RefSet;r instanceof i.Dict&&(!r.objId||!l.has(r.objId));){r.objId&&l.put(r.objId);var u=o?r.getArray(n):r.get(n);if(void 0!==u){if(c)return u;t||(t=[]),t.push(u)}r=r.get("Parent")}return t}t.XRefParseException=v;var b=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];function w(e,t,r,n){if(e){var s=null;if((0,i.isRef)(e)){if(n.has(e))return;s=e,n.put(s),e=t.fetch(e)}if(Array.isArray(e)){var c,l=o(e);try{for(l.s();!(c=l.n()).done;)w(c.value,t,r,n)}catch(e){l.e(e)}finally{l.f()}}else if(e instanceof i.Dict){if((0,i.isName)(e.get("S"),"JavaScript")&&e.has("JS")){var u,f=e.get("JS");u=(0,i.isStream)(f)?f.getString():f,(u=(0,a.stringToPDFString)(u))&&r.push(u)}w(e.getRaw("Next"),t,r,n)}s&&n.remove(s)}}var k={60:"&lt;",62:"&gt;",38:"&amp;",34:"&quot;",39:"&apos;"}},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.StringStream=t.Stream=t.NullStream=void 0;var a=r(119),i=r(4);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=h(e);if(t){var a=h(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=function(e){c(a,e);var t,r,n=u(a);function a(e,t,r,i){var s;return o(this,a),(s=n.call(this)).bytes=e instanceof Uint8Array?e:new Uint8Array(e),s.start=t||0,s.pos=s.start,s.end=t+r||s.bytes.length,s.dict=i,s}return t=a,r=[{key:"length",get:function(){return this.end-this.start}},{key:"isEmpty",get:function(){return 0===this.length}},{key:"getByte",value:function(){return this.pos>=this.end?-1:this.bytes[this.pos++]}},{key:"getBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.bytes,n=this.pos,a=this.end;if(!e){var i=r.subarray(n,a);return t?new Uint8ClampedArray(i):i}var o=n+e;o>a&&(o=a),this.pos=o;var s=r.subarray(n,o);return t?new Uint8ClampedArray(s):s}},{key:"getByteRange",value:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)}},{key:"reset",value:function(){this.pos=this.start}},{key:"moveStart",value:function(){this.start=this.pos}},{key:"makeSubStream",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new a(this.bytes.buffer,e,t,r)}}],r&&s(t.prototype,r),a}(a.BaseStream);t.Stream=d;var p=function(e){c(r,e);var t=u(r);function r(e){return o(this,r),t.call(this,(0,i.stringToBytes)(e))}return r}(d);t.StringStream=p;var g=function(e){c(r,e);var t=u(r);function r(){return o(this,r),t.call(this,new Uint8Array(0))}return r}(d);t.NullStream=g},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDocument=t.Page=void 0;var a,i=(a=r(2))&&a.__esModule?a:{default:a},o=r(4),s=r(118),c=r(122),l=r(125),u=r(123),f=r(135),h=r(119),d=r(185),p=r(177),g=r(140),m=r(183),v=r(175),y=r(138),b=r(142),w=r(182),k=r(187),S=r(211);function x(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function A(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){x(i,n,a,o,s,"next",e)}function s(e){x(i,n,a,o,s,"throw",e)}o(void 0)}))}}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||F(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=F(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function F(e,t){if(e){if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I(e,t){return I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},I(e,t)}function P(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function M(e,t,r){return t&&j(e.prototype,t),r&&j(e,r),e}var R=[0,0,612,792],B=function(){function e(t){var r=t.pdfManager,n=t.xref,a=t.pageIndex,i=t.pageDict,o=t.ref,s=t.globalIdFactory,c=t.fontCache,l=t.builtInCMapCache,u=t.standardFontDataCache,f=t.globalImageCache,h=t.nonBlendModesSet,d=t.xfaFactory;E(this,e),this.pdfManager=r,this.pageIndex=a,this.pageDict=i,this.xref=n,this.ref=o,this.fontCache=c,this.builtInCMapCache=l,this.standardFontDataCache=u,this.globalImageCache=f,this.nonBlendModesSet=h,this.evaluatorOptions=r.evaluatorOptions,this.resourcesPromise=null,this.xfaFactory=d;var p={obj:0};this._localIdFactory=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(i,e);var t,r,n=(t=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,n=_(t);if(r){var a=_(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return P(this,e)});function i(){return E(this,i),n.apply(this,arguments)}return M(i,null,[{key:"createObjId",value:function(){return"p".concat(a,"_").concat(++p.obj)}},{key:"getPageObjId",value:function(){return"page".concat(o.toString())}}]),i}(s)}var t;return M(e,[{key:"_getInheritableProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(0,c.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(r)?1!==r.length&&(0,s.isDict)(r[0])?s.Dict.merge({xref:this.xref,dictArray:r}):r[0]:r}},{key:"content",get:function(){return this.pageDict.getArray("Contents")}},{key:"resources",get:function(){return(0,o.shadow)(this,"resources",this._getInheritableProperty("Resources")||s.Dict.empty)}},{key:"_getBoundingBox",value:function(e){if(this.xfaData)return this.xfaData.bbox;var t=this._getInheritableProperty(e,!0);if(Array.isArray(t)&&4===t.length){if(t[2]-t[0]!=0&&t[3]-t[1]!=0)return t;(0,o.warn)("Empty /".concat(e," entry."))}return null}},{key:"mediaBox",get:function(){return(0,o.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||R)}},{key:"cropBox",get:function(){return(0,o.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}},{key:"userUnit",get:function(){var e=this.pageDict.get("UserUnit");return(!(0,o.isNum)(e)||e<=0)&&(e=1),(0,o.shadow)(this,"userUnit",e)}},{key:"view",get:function(){var e,t=this.cropBox,r=this.mediaBox;if(t===r||(0,o.isArrayEqual)(t,r))e=r;else{var n=o.Util.intersect(t,r);n&&n[2]-n[0]!=0&&n[3]-n[1]!=0?e=n:(0,o.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,o.shadow)(this,"view",e||r)}},{key:"rotate",get:function(){var e=this._getInheritableProperty("Rotate")||0;return e%90!=0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360),(0,o.shadow)(this,"rotate",e)}},{key:"_onSubStreamError",value:function(e,t,r){if(this.evaluatorOptions.ignoreErrors)return e.send("UnsupportedFeature",{featureId:o.UNSUPPORTED_FEATURES.errorContentSubStream}),void(0,o.warn)("getContentStream - ignoring sub-stream (".concat(r,'): "').concat(t,'".'));throw t}},{key:"getContentStream",value:function(e){var t=this;return this.pdfManager.ensure(this,"content").then((function(r){return r instanceof h.BaseStream?r:Array.isArray(r)?new b.StreamsSequenceStream(r,t._onSubStreamError.bind(t,e)):new u.NullStream}))}},{key:"xfaData",get:function(){return this.xfaFactory?(0,o.shadow)(this,"xfaData",{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}):(0,o.shadow)(this,"xfaData",null)}},{key:"save",value:function(e,t,r){var n=new y.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});return this._parsedAnnotations.then((function(e){var a,i=[],s=C(e);try{for(s.s();!(a=s.n()).done;){var c=a.value;c.mustBePrinted(r)&&i.push(c.save(n,t,r).catch((function(e){return(0,o.warn)("save - ignoring annotation data during "+'"'.concat(t.name,'" task: "').concat(e,'".')),null})))}}catch(e){s.e(e)}finally{s.f()}return Promise.all(i)}))}},{key:"loadResources",value:function(e){var t=this;return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then((function(){return new m.ObjectLoader(t.resources,e,t.xref).load()}))}},{key:"getOperatorList",value:function(e){var t=this,r=e.handler,n=e.sink,a=e.task,i=e.intent,s=e.cacheKey,c=e.annotationStorage,l=void 0===c?null:c,u=this.getContentStream(r),f=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),h=new y.PartialEvaluator({xref:this.xref,handler:r,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),d=Promise.all([u,f]).then((function(e){var o=O(e,1)[0],c=new v.OperatorList(i,n);return r.send("StartRenderPage",{transparency:h.hasBlendModes(t.resources,t.nonBlendModesSet),pageIndex:t.pageIndex,cacheKey:s}),h.getOperatorList({stream:o,task:a,resources:t.resources,operatorList:c}).then((function(){return c}))}));return Promise.all([d,this._parsedAnnotations]).then((function(e){var t=O(e,2),r=t[0],n=t[1];if(0===n.length||i&o.RenderingIntentFlag.ANNOTATIONS_DISABLE)return r.flush(!0),{length:r.totalLength};var s,c=!!(i&o.RenderingIntentFlag.ANNOTATIONS_FORMS),u=!!(i&o.RenderingIntentFlag.ANY),f=!!(i&o.RenderingIntentFlag.DISPLAY),d=!!(i&o.RenderingIntentFlag.PRINT),p=[],g=C(n);try{for(g.s();!(s=g.n()).done;){var m=s.value;(u||f&&m.mustBeViewed(l)||d&&m.mustBePrinted(l))&&p.push(m.getOperatorList(h,a,c,l).catch((function(e){return(0,o.warn)("getOperatorList - ignoring annotation data during "+'"'.concat(a.name,'" task: "').concat(e,'".')),null})))}}catch(e){g.e(e)}finally{g.f()}return Promise.all(p).then((function(e){r.addOp(o.OPS.beginAnnotations,[]);var t,n=C(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;r.addOpList(a)}}catch(e){n.e(e)}finally{n.f()}return r.addOp(o.OPS.endAnnotations,[]),r.flush(!0),{length:r.totalLength}}))}))}},{key:"extractTextContent",value:function(e){var t=this,r=e.handler,n=e.task,a=e.normalizeWhitespace,i=e.includeMarkedContent,o=e.sink,s=e.combineTextItems,c=this.getContentStream(r),l=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([c,l]).then((function(e){var c=O(e,1)[0];return new y.PartialEvaluator({xref:t.xref,handler:r,pageIndex:t.pageIndex,idFactory:t._localIdFactory,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,standardFontDataCache:t.standardFontDataCache,globalImageCache:t.globalImageCache,options:t.evaluatorOptions}).getTextContent({stream:c,task:n,resources:t.resources,normalizeWhitespace:a,includeMarkedContent:i,combineTextItems:s,sink:o})}))}},{key:"getStructTree",value:(t=A(i.default.mark((function e(){var t,r;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pdfManager.ensureCatalog("structTreeRoot");case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return",null);case 5:return e.next=7,this.pdfManager.ensure(this,"_parseStructTree",[t]);case 7:return r=e.sent,e.abrupt("return",r.serializable);case 9:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"_parseStructTree",value:function(e){var t=new w.StructTreePage(e,this.pageDict);return t.parse(),t}},{key:"getAnnotationsData",value:function(e){return this._parsedAnnotations.then((function(t){var r=[];if(0===t.length)return r;var n,a=!!(e&o.RenderingIntentFlag.ANY),i=!!(e&o.RenderingIntentFlag.DISPLAY),s=!!(e&o.RenderingIntentFlag.PRINT),c=C(t);try{for(c.s();!(n=c.n()).done;){var l=n.value;(a||i&&l.viewable||s&&l.printable)&&r.push(l.data)}}catch(e){c.e(e)}finally{c.f()}return r}))}},{key:"annotations",get:function(){var e=this._getInheritableProperty("Annots");return(0,o.shadow)(this,"annotations",Array.isArray(e)?e:[])}},{key:"_parsedAnnotations",get:function(){var e=this,t=this.pdfManager.ensure(this,"annotations").then((function(){var t,r=[],n=C(e.annotations);try{for(n.s();!(t=n.n()).done;){var a=t.value;r.push(f.AnnotationFactory.create(e.xref,a,e.pdfManager,e._localIdFactory,!1).catch((function(e){return(0,o.warn)('_parsedAnnotations: "'.concat(e,'".')),null})))}}catch(e){n.e(e)}finally{n.f()}return Promise.all(r).then((function(e){return e.filter((function(e){return!!e}))}))}));return(0,o.shadow)(this,"_parsedAnnotations",t)}},{key:"jsActions",get:function(){var e=(0,c.collectActions)(this.xref,this.pageDict,o.PageActionEventType);return(0,o.shadow)(this,"jsActions",e)}}]),e}();t.Page=B;var D=new Uint8Array([37,80,68,70,45]),N=new Uint8Array([115,116,97,114,116,120,114,101,102]),L=new Uint8Array([101,110,100,111,98,106]),U=/^[1-9]\.\d$/;function $(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=t.length,i=e.peekBytes(r),o=i.length-a;if(o<=0)return!1;if(n)for(var s=a-1,c=i.length-1;c>=s;){for(var l=0;l<a&&i[c-l]===t[s-l];)l++;if(l>=a)return e.pos+=c-s,!0;c--}else for(var u=0;u<=o;){for(var f=0;f<a&&i[u+f]===t[f];)f++;if(f>=a)return e.pos+=u,!0;u++}return!1}var q=function(){function e(t,r){var n;if(E(this,e),(0,s.isStream)(r))n=r;else{if(!(0,o.isArrayBuffer)(r))throw new Error("PDFDocument: Unknown argument type");n=new u.Stream(r)}if(n.length<=0)throw new o.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t,this.stream=n,this.xref=new S.XRef(n,t),this._pagePromises=[],this._version=null;var a={font:0};this._globalIdFactory=function(){function e(){E(this,e)}return M(e,null,[{key:"getDocId",value:function(){return"g_".concat(t.docId)}},{key:"createFontId",value:function(){return"f".concat(++a.font)}},{key:"createObjId",value:function(){(0,o.unreachable)("Abstract method `createObjId` called.")}},{key:"getPageObjId",value:function(){(0,o.unreachable)("Abstract method `getPageObjId` called.")}}]),e}()}var t,r,n,a,h;return M(e,[{key:"parse",value:function(e){this.xref.parse(e),this.catalog=new p.Catalog(this.pdfManager,this.xref),this.catalog.version&&(this._version=this.catalog.version)}},{key:"linearization",get:function(){var e=null;try{e=g.Linearization.create(this.stream)}catch(e){if(e instanceof c.MissingDataException)throw e;(0,o.info)(e)}return(0,o.shadow)(this,"linearization",e)}},{key:"startXRef",get:function(){var e=this.stream,t=0;if(this.linearization)e.reset(),$(e,L)&&(t=e.pos+6-e.start);else{for(var r=N.length,n=!1,a=e.end;!n&&a>0;)(a-=1024-r)<0&&(a=0),e.pos=a,n=$(e,N,1024,!0);if(n){var i;e.skip(9);do{i=e.getByte()}while((0,c.isWhiteSpace)(i));for(var s="";i>=32&&i<=57;)s+=String.fromCharCode(i),i=e.getByte();t=parseInt(s,10),isNaN(t)&&(t=0)}}return(0,o.shadow)(this,"startXRef",t)}},{key:"checkHeader",value:function(){var e=this.stream;if(e.reset(),$(e,D)){e.moveStart();for(var t,r="";(t=e.getByte())>32&&!(r.length>=12);)r+=String.fromCharCode(t);this._version||(this._version=r.substring(5))}}},{key:"parseStartXRef",value:function(){this.xref.setStartXRef(this.startXRef)}},{key:"numPages",get:function(){if(this.xfaFactory)return(0,o.shadow)(this,"numPages",this.xfaFactory.numberPages);var e=this.linearization,t=e?e.numPages:this.catalog.numPages;return(0,o.shadow)(this,"numPages",t)}},{key:"_hasOnlyDocumentSignatures",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=10;return!!Array.isArray(e)&&e.every((function(e){if(!((e=t.xref.fetchIfRef(e))instanceof s.Dict))return!1;if(e.has("Kids"))return++r>n?((0,o.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):t._hasOnlyDocumentSignatures(e.get("Kids"),r);var a=(0,s.isName)(e.get("FT"),"Sig"),i=e.get("Rect"),c=Array.isArray(i)&&i.every((function(e){return 0===e}));return a&&c}))}},{key:"xfaData",get:function(){var e=this.catalog.acroForm;if(!e)return null;var t=e.get("XFA"),r={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if((0,s.isStream)(t)&&!t.isEmpty)try{return r["xdp:xdp"]=(0,o.stringToUTF8String)(t.getString()),r}catch(e){return(0,o.warn)("XFA - Invalid utf-8 string."),null}if(!Array.isArray(t)||0===t.length)return null;for(var n=0,a=t.length;n<a;n+=2){var i;if(i=0===n?"xdp:xdp":n===a-2?"/xdp:xdp":t[n],r.hasOwnProperty(i)){var c=this.xref.fetchIfRef(t[n+1]);if((0,s.isStream)(c)&&!c.isEmpty)try{r[i]=(0,o.stringToUTF8String)(c.getString())}catch(e){return(0,o.warn)("XFA - Invalid utf-8 string."),null}}}return r}},{key:"xfaFactory",get:function(){if(this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm){var e=this.xfaData;return(0,o.shadow)(this,"xfaFactory",e?new k.XFAFactory(e):null)}return(0,o.shadow)(this,"xfaFaxtory",null)}},{key:"isPureXfa",get:function(){return this.xfaFactory&&this.xfaFactory.isValid()}},{key:"htmlForXfa",get:function(){return this.xfaFactory?this.xfaFactory.getPages():null}},{key:"loadXfaImages",value:(h=A(i.default.mark((function e(){var t,r,n,a,o,c,l,u;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pdfManager.ensureCatalog("xfaImages");case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return");case 5:return r=t.getKeys(),n=new m.ObjectLoader(t,r,this.xref),e.next=9,n.load();case 9:a=new Map,o=C(r),e.prev=11,o.s();case 13:if((c=o.n()).done){e.next=21;break}if(l=c.value,u=t.get(l),(0,s.isStream)(u)){e.next=18;break}return e.abrupt("continue",19);case 18:a.set(l,u.getBytes());case 19:e.next=13;break;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(11),o.e(e.t0);case 26:return e.prev=26,o.f(),e.finish(26);case 29:this.xfaFactory.setImages(a);case 30:case"end":return e.stop()}}),e,this,[[11,23,26,29]])}))),function(){return h.apply(this,arguments)})},{key:"loadXfaFonts",value:(a=A(i.default.mark((function e(t,r){var n,a,u,f,h,d,p,g,b,w,k,S,x,A,F,T,I,P,_,E,j,M,R,B,D,N,L,U,$,q,X,H,z,W;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pdfManager.ensureCatalog("acroForm");case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,n.getAsync("DR");case 7:if((a=e.sent)instanceof s.Dict){e.next=10;break}return e.abrupt("return");case 10:return u=new m.ObjectLoader(a,["Font"],this.xref),e.next=13,u.load();case 13:if((f=a.get("Font"))instanceof s.Dict){e.next=16;break}return e.abrupt("return");case 16:(h=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions)).useSystemFonts=!1,d=new y.PartialEvaluator({xref:this.xref,handler:t,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:this.catalog.fontCache,builtInCMapCache:this.catalog.builtInCMapCache,standardFontDataCache:this.catalog.standardFontDataCache,options:h}),p=new v.OperatorList,g=[],e.t0=function(){return this},b={get font(){return g[g.length-1]},set font(e){g.push(e)},clone:e.t0},w=new Map,f.forEach((function(e,t){w.set(e,t)})),k=[],S=C(w),e.prev=27,S.s();case 29:if((x=S.n()).done){e.next=44;break}if(A=O(x.value,2),F=A[0],T=A[1],(I=T.get("FontDescriptor"))instanceof s.Dict){e.next=34;break}return e.abrupt("continue",42);case 34:if(P=(P=I.get("FontFamily")).replace(/[ ]+(\d)/g,"$1"),_=I.get("FontWeight"),E=-I.get("ItalicAngle"),j={fontFamily:P,fontWeight:_,italicAngle:E},(0,c.validateCSSFont)(j)){e.next=41;break}return e.abrupt("continue",42);case 41:k.push(d.handleSetFont(a,[s.Name.get(F),1],null,p,r,b,null,j).catch((function(e){return(0,o.warn)('loadXfaFonts: "'.concat(e,'".')),null})));case 42:e.next=29;break;case 44:e.next=49;break;case 46:e.prev=46,e.t1=e.catch(27),S.e(e.t1);case 49:return e.prev=49,S.f(),e.finish(49);case 52:return e.next=54,Promise.all(k);case 54:if(M=this.xfaFactory.setFonts(g)){e.next=57;break}return e.abrupt("return");case 57:h.ignoreErrors=!0,k.length=0,g.length=0,R=new Set,B=C(M);try{for(B.s();!(D=B.n()).done;)N=D.value,(0,l.getXfaFontName)("".concat(N,"-Regular"))||R.add(N)}catch(e){B.e(e)}finally{B.f()}R.size&&M.push("PdfJS-Fallback"),L=C(M),e.prev=65,L.s();case 67:if((U=L.n()).done){e.next=74;break}if($=U.value,!R.has($)){e.next=71;break}return e.abrupt("continue",72);case 71:for(q=0,X=[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}];q<X.length;q++)H=X[q],z="".concat($,"-").concat(H.name),W=(0,l.getXfaFontDict)(z),k.push(d.handleSetFont(a,[s.Name.get(z),1],null,p,r,b,W,{fontFamily:$,fontWeight:H.fontWeight,italicAngle:H.italicAngle}).catch((function(e){return(0,o.warn)('loadXfaFonts: "'.concat(e,'".')),null})));case 72:e.next=67;break;case 74:e.next=79;break;case 76:e.prev=76,e.t2=e.catch(65),L.e(e.t2);case 79:return e.prev=79,L.f(),e.finish(79);case 82:return e.next=84,Promise.all(k);case 84:this.xfaFactory.appendFonts(g,R);case 85:case"end":return e.stop()}}),e,this,[[27,46,49,52],[65,76,79,82]])}))),function(e,t){return a.apply(this,arguments)})},{key:"serializeXfaData",value:(n=A(i.default.mark((function e(t){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.xfaFactory){e.next=2;break}return e.abrupt("return",this.xfaFactory.serializeData(t));case 2:return e.abrupt("return",null);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"formInfo",get:function(){var e={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},t=this.catalog.acroForm;if(!t)return(0,o.shadow)(this,"formInfo",e);try{var r=t.get("Fields"),n=Array.isArray(r)&&r.length>0;e.hasFields=n;var a=t.get("XFA");e.hasXfa=Array.isArray(a)&&a.length>0||(0,s.isStream)(a)&&!a.isEmpty;var i=!!(1&t.get("SigFlags")),l=i&&this._hasOnlyDocumentSignatures(r);e.hasAcroForm=n&&!l,e.hasSignatures=i}catch(e){if(e instanceof c.MissingDataException)throw e;(0,o.warn)('Cannot fetch form information: "'.concat(e,'".'))}return(0,o.shadow)(this,"formInfo",e)}},{key:"documentInfo",get:function(){var e={Title:o.isString,Author:o.isString,Subject:o.isString,Keywords:o.isString,Creator:o.isString,Producer:o.isString,CreationDate:o.isString,ModDate:o.isString,Trapped:s.isName},t=this._version;"string"==typeof t&&U.test(t)||((0,o.warn)("Invalid PDF header version number: ".concat(t)),t=null);var r,n={PDFFormatVersion:t,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};try{r=this.xref.trailer.get("Info")}catch(e){if(e instanceof c.MissingDataException)throw e;(0,o.info)("The document information dictionary is invalid.")}if((0,s.isDict)(r)){var a,i=C(r.getKeys());try{for(i.s();!(a=i.n()).done;){var l=a.value,u=r.get(l);if(e[l])e[l](u)?n[l]="string"!=typeof u?u:(0,o.stringToPDFString)(u):(0,o.info)('Bad value in document info for "'.concat(l,'".'));else if("string"==typeof l){var f=void 0;if((0,o.isString)(u))f=(0,o.stringToPDFString)(u);else{if(!((0,s.isName)(u)||(0,o.isNum)(u)||(0,o.isBool)(u))){(0,o.info)('Unsupported value in document info for (custom) "'.concat(l,'".'));continue}f=u}n.Custom||(n.Custom=Object.create(null)),n.Custom[l]=f}}}catch(e){i.e(e)}finally{i.f()}}return(0,o.shadow)(this,"documentInfo",n)}},{key:"fingerprints",get:function(){function e(e){return"string"==typeof e&&e.length>0&&"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"!==e}function t(e){for(var t=[],r=0,n=e.length;r<n;r++){var a=e[r].toString(16);t.push(a.padStart(2,"0"))}return t.join("")}var r,n,a=this.xref.trailer.get("ID");return Array.isArray(a)&&e(a[0])?(r=(0,o.stringToBytes)(a[0]),a[1]!==a[0]&&e(a[1])&&(n=(0,o.stringToBytes)(a[1]))):r=(0,d.calculateMD5)(this.stream.getByteRange(0,1024),0,1024),(0,o.shadow)(this,"fingerprints",[t(r),n?t(n):null])}},{key:"_getLinearizationPage",value:function(e){var t=this.catalog,r=this.linearization,n=s.Ref.get(r.objectNumberFirst,0);return this.xref.fetchAsync(n).then((function(e){if((0,s.isDict)(e,"Page")||(0,s.isDict)(e)&&!e.has("Type")&&e.has("Contents"))return n&&!t.pageKidsCountCache.has(n)&&t.pageKidsCountCache.put(n,1),[e,n];throw new o.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")})).catch((function(r){return(0,o.info)(r),t.getPageDict(e)}))}},{key:"getPage",value:function(e){var t=this;if(void 0!==this._pagePromises[e])return this._pagePromises[e];var r=this.catalog,n=this.linearization;if(this.xfaFactory)return Promise.resolve(new B({pdfManager:this.pdfManager,xref:this.xref,pageIndex:e,pageDict:s.Dict.empty,ref:null,globalIdFactory:this._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalImageCache:r.globalImageCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:this.xfaFactory}));var a=n&&n.pageFirst===e?this._getLinearizationPage(e):r.getPageDict(e);return this._pagePromises[e]=a.then((function(n){var a=O(n,2),i=a[0],o=a[1];return new B({pdfManager:t.pdfManager,xref:t.xref,pageIndex:e,pageDict:i,ref:o,globalIdFactory:t._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalImageCache:r.globalImageCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:null})}))}},{key:"checkFirstPage",value:function(){var e=this;return this.getPage(0).catch(function(){var t=A(i.default.mark((function t(r){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r instanceof c.XRefEntryException)){t.next=5;break}return e._pagePromises.length=0,t.next=4,e.cleanup();case 4:throw new c.XRefParseException;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"fontFallback",value:function(e,t){return this.catalog.fontFallback(e,t)}},{key:"cleanup",value:(r=A(i.default.mark((function e(){var t,r=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]&&r[0],e.abrupt("return",this.catalog?this.catalog.cleanup(t):(0,s.clearPrimitiveCaches)());case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"_collectFieldObjects",value:function(e,t,r){var n=this.xref.fetchIfRef(t);if(n.has("T")){var a=(0,o.stringToPDFString)(n.get("T"));e=""===e?a:"".concat(e,".").concat(a)}if(r.has(e)||r.set(e,[]),r.get(e).push(f.AnnotationFactory.create(this.xref,t,this.pdfManager,this._localIdFactory,!0).then((function(e){return e&&e.getFieldObject()})).catch((function(e){return(0,o.warn)('_collectFieldObjects: "'.concat(e,'".')),null}))),n.has("Kids")){var i,s=C(n.get("Kids"));try{for(s.s();!(i=s.n()).done;){var c=i.value;this._collectFieldObjects(e,c,r)}}catch(e){s.e(e)}finally{s.f()}}}},{key:"fieldObjects",get:function(){if(!this.formInfo.hasFields)return(0,o.shadow)(this,"fieldObjects",Promise.resolve(null));var e,t=Object.create(null),r=new Map,n=C(this.catalog.acroForm.get("Fields"));try{for(n.s();!(e=n.n()).done;){var a=e.value;this._collectFieldObjects("",a,r)}}catch(e){n.e(e)}finally{n.f()}var i,s=[],c=C(r);try{var l=function(){var e=O(i.value,2),r=e[0],n=e[1];s.push(Promise.all(n).then((function(e){(e=e.filter((function(e){return!!e}))).length>0&&(t[r]=e)})))};for(c.s();!(i=c.n()).done;)l()}catch(e){c.e(e)}finally{c.f()}return(0,o.shadow)(this,"fieldObjects",Promise.all(s).then((function(){return t})))}},{key:"hasJSActions",get:function(){var e=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,o.shadow)(this,"hasJSActions",e)}},{key:"_parseHasJSActions",value:(t=A(i.default.mark((function e(){var t,r,n,a;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);case 2:if(t=e.sent,r=O(t,2),n=r[0],a=r[1],!n){e.next=8;break}return e.abrupt("return",!0);case 8:if(!a){e.next=10;break}return e.abrupt("return",Object.values(a).some((function(e){return e.some((function(e){return null!==e.actions}))})));case 10:return e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"calculationOrderIds",get:function(){var e=this.catalog.acroForm;if(!e||!e.has("CO"))return(0,o.shadow)(this,"calculationOrderIds",null);var t=e.get("CO");if(!Array.isArray(t)||0===t.length)return(0,o.shadow)(this,"calculationOrderIds",null);var r=t.filter(s.isRef).map((function(e){return e.toString()}));return 0===r.length?(0,o.shadow)(this,"calculationOrderIds",null):(0,o.shadow)(this,"calculationOrderIds",r)}}]),e}();t.PDFDocument=q},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getXfaFontDict=function(e){var t=function(e){var t=g(e);if(!t)return null;var r,n=t.baseWidths,a=t.baseMapping,i=t.factors;r=i?n.map((function(e,t){return e*i[t]})):n;var o,s,c=-2,l=[],u=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=h(e))){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}(a.map((function(e,t){return[e,t]})).sort((function(e,t){return f(e,1)[0]-f(t,1)[0]})));try{for(u.s();!(s=u.n()).done;){var d=f(s.value,2),p=d[0],m=d[1];-1!==p&&(p===c+1?(o.push(r[m]),c+=1):(c=p,o=[r[m]],l.push(p,o)))}}catch(e){u.e(e)}finally{u.f()}return l}(e),r=new a.Dict(null);r.set("BaseFont",a.Name.get(e)),r.set("Type",a.Name.get("Font")),r.set("Subtype",a.Name.get("CIDFontType2")),r.set("Encoding",a.Name.get("Identity-H")),r.set("CIDToGIDMap",a.Name.get("Identity")),r.set("W",t),r.set("FirstChar",t[0]),r.set("LastChar",t[t.length-2]+t[t.length-1].length-1);var n=new a.Dict(null);r.set("FontDescriptor",n);var i=new a.Dict(null);return i.set("Ordering","Identity"),i.set("Registry","Adobe"),i.set("Supplement",0),r.set("CIDSystemInfo",i),r},t.getXfaFontName=g;var n=r(126),a=r(118),i=r(127),o=r(128),s=r(129),c=r(130),l=r(122),u=r(131);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var p=(0,l.getLookupTableFactory)((function(e){e["MyriadPro-Regular"]=e["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:s.MyriadProRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:s.MyriadProRegularMetrics},e["MyriadPro-Bold"]=e["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:s.MyriadProBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:s.MyriadProBoldMetrics},e["MyriadPro-It"]=e["MyriadPro-Italic"]=e["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:s.MyriadProItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:s.MyriadProItalicMetrics},e["MyriadPro-BoldIt"]=e["MyriadPro-BoldItalic"]=e["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:s.MyriadProBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:s.MyriadProBoldItalicMetrics},e.ArialMT=e.Arial=e["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping},e["Arial-BoldMT"]=e["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping},e["Arial-ItalicMT"]=e["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping},e["Arial-BoldItalicMT"]=e["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping},e["Calibri-Regular"]={name:"LiberationSans-Regular",factors:n.CalibriRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:n.CalibriRegularMetrics},e["Calibri-Bold"]={name:"LiberationSans-Bold",factors:n.CalibriBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:n.CalibriBoldMetrics},e["Calibri-Italic"]={name:"LiberationSans-Italic",factors:n.CalibriItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:n.CalibriItalicMetrics},e["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:n.CalibriBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:n.CalibriBoldItalicMetrics},e["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:c.SegoeuiRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:c.SegoeuiRegularMetrics},e["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:c.SegoeuiBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:c.SegoeuiBoldMetrics},e["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:c.SegoeuiItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:c.SegoeuiItalicMetrics},e["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:c.SegoeuiBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:c.SegoeuiBoldItalicMetrics},e["Helvetica-Regular"]=e.Helvetica={name:"LiberationSans-Regular",factors:i.HelveticaRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:i.HelveticaRegularMetrics},e["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:i.HelveticaBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:i.HelveticaBoldMetrics},e["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:i.HelveticaItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:i.HelveticaItalicMetrics},e["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:i.HelveticaBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:i.HelveticaBoldItalicMetrics}}));function g(e){var t=(0,u.normalizeFontName)(e);return p()[t]}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CalibriRegularMetrics=t.CalibriRegularFactors=t.CalibriItalicMetrics=t.CalibriItalicFactors=t.CalibriBoldMetrics=t.CalibriBoldItalicMetrics=t.CalibriBoldItalicFactors=t.CalibriBoldFactors=void 0,t.CalibriBoldFactors=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.CalibriBoldMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriBoldItalicFactors=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.CalibriBoldItalicMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriItalicFactors=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.CalibriItalicMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriRegularFactors=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1],t.CalibriRegularMetrics={lineHeight:1.2207,lineGap:.2207}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HelveticaRegularMetrics=t.HelveticaRegularFactors=t.HelveticaItalicMetrics=t.HelveticaItalicFactors=t.HelveticaBoldMetrics=t.HelveticaBoldItalicMetrics=t.HelveticaBoldItalicFactors=t.HelveticaBoldFactors=void 0,t.HelveticaBoldFactors=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,.99973,1.00052,1.00041,1.00119,1.00037,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],t.HelveticaBoldMetrics={lineHeight:1.2,lineGap:.2},t.HelveticaBoldItalicFactors=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99973,.99977,.99999,1.00058,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],t.HelveticaBoldItalicMetrics={lineHeight:1.35,lineGap:.2},t.HelveticaItalicFactors=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99973,1.00089,1.00005,.99967,1.00048,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],t.HelveticaItalicMetrics={lineHeight:1.35,lineGap:.2},t.HelveticaRegularFactors=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,.99973,1.00043,.99953,1.0007,.99915,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.HelveticaRegularMetrics={lineHeight:1.2,lineGap:.2}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LiberationSansRegularWidths=t.LiberationSansRegularMapping=t.LiberationSansItalicWidths=t.LiberationSansItalicMapping=t.LiberationSansBoldWidths=t.LiberationSansBoldMapping=t.LiberationSansBoldItalicWidths=t.LiberationSansBoldItalicMapping=void 0,t.LiberationSansBoldWidths=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],t.LiberationSansBoldMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],t.LiberationSansBoldItalicWidths=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],t.LiberationSansBoldItalicMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],t.LiberationSansItalicWidths=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285],t.LiberationSansItalicMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],t.LiberationSansRegularWidths=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285],t.LiberationSansRegularMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MyriadProRegularMetrics=t.MyriadProRegularFactors=t.MyriadProItalicMetrics=t.MyriadProItalicFactors=t.MyriadProBoldMetrics=t.MyriadProBoldItalicMetrics=t.MyriadProBoldItalicFactors=t.MyriadProBoldFactors=void 0,t.MyriadProBoldFactors=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.16161,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.MyriadProBoldMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProBoldItalicFactors=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.MyriadProBoldItalicMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProItalicFactors=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.MyriadProItalicMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProRegularFactors=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05638,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.MyriadProRegularMetrics={lineHeight:1.2,lineGap:.2}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SegoeuiRegularMetrics=t.SegoeuiRegularFactors=t.SegoeuiItalicMetrics=t.SegoeuiItalicFactors=t.SegoeuiBoldMetrics=t.SegoeuiBoldItalicMetrics=t.SegoeuiBoldItalicFactors=t.SegoeuiBoldFactors=void 0,t.SegoeuiBoldFactors=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.SegoeuiBoldMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiBoldItalicFactors=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.SegoeuiBoldItalicMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiItalicFactors=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.SegoeuiItalicMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiRegularFactors=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1],t.SegoeuiRegularMetrics={lineHeight:1.33008,lineGap:0}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFontType=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];switch(e){case"Type1":return r?n.FontType.TYPE1STANDARD:"Type1C"===t?n.FontType.TYPE1C:n.FontType.TYPE1;case"CIDFontType0":return"CIDFontType0C"===t?n.FontType.CIDFONTTYPE0C:n.FontType.CIDFONTTYPE0;case"OpenType":return n.FontType.OPENTYPE;case"TrueType":return n.FontType.TRUETYPE;case"CIDFontType2":return n.FontType.CIDFONTTYPE2;case"MMType1":return n.FontType.MMTYPE1;case"Type0":return n.FontType.TYPE0;default:return n.FontType.UNKNOWN}},t.normalizeFontName=function(e){return e.replace(/[,_]/g,"-").replace(/\s/g,"")},t.recoverGlyphName=c,t.type1FontGlyphMapping=function(e,t,r){var n,o,l,u=Object.create(null),f=!!(e.flags&s.Symbolic);if(e.isInternalFont)for(l=t,o=0;o<l.length;o++)n=r.indexOf(l[o]),u[o]=n>=0?n:0;else if(e.baseEncodingName)for(l=(0,a.getEncoding)(e.baseEncodingName),o=0;o<l.length;o++)n=r.indexOf(l[o]),u[o]=n>=0?n:0;else if(f)for(o in t)u[o]=t[o];else for(l=a.StandardEncoding,o=0;o<l.length;o++)n=r.indexOf(l[o]),u[o]=n>=0?n:0;var h,d=e.differences;if(d)for(o in d){var p=d[o];if(-1===(n=r.indexOf(p))){h||(h=(0,i.getGlyphsUnicode)());var g=c(p,h);g!==p&&(n=r.indexOf(g))}u[o]=n>=0?n:0}return u},t.SEAC_ANALYSIS_ENABLED=t.MacStandardGlyphOrdering=t.FontFlags=void 0;var n=r(4),a=r(132),i=r(133),o=r(134);t.SEAC_ANALYSIS_ENABLED=!0;var s={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};function c(e,t){if(void 0!==t[e])return e;var r=(0,o.getUnicodeForGlyph)(e,t);if(-1!==r)for(var a in t)if(t[a]===r)return a;return(0,n.info)("Unable to recover a standard glyph name for: "+e),e}t.FontFlags=s,t.MacStandardGlyphOrdering=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"]},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEncoding=function(e){switch(e){case"WinAnsiEncoding":return o;case"StandardEncoding":return i;case"MacRomanEncoding":return a;case"SymbolSetEncoding":return s;case"ZapfDingbatsEncoding":return c;case"ExpertEncoding":return r;case"MacExpertEncoding":return n;default:return null}},t.ZapfDingbatsEncoding=t.WinAnsiEncoding=t.SymbolSetEncoding=t.StandardEncoding=t.MacRomanEncoding=t.ExpertEncoding=void 0;var r=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];t.ExpertEncoding=r;var n=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"];t.MacRomanEncoding=a;var i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""];t.StandardEncoding=i;var o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"];t.WinAnsiEncoding=o;var s=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""];t.SymbolSetEncoding=s;var c=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];t.ZapfDingbatsEncoding=c},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDingbatsGlyphsUnicode:()=>i,getGlyphsUnicode:()=>a});var n=r(122);const a=(0,n.getArrayLookupTableFactory)((function(){return["A",65,"AE",198,"AEacute",508,"AEmacron",482,"AEsmall",63462,"Aacute",193,"Aacutesmall",63457,"Abreve",258,"Abreveacute",7854,"Abrevecyrillic",1232,"Abrevedotbelow",7862,"Abrevegrave",7856,"Abrevehookabove",7858,"Abrevetilde",7860,"Acaron",461,"Acircle",9398,"Acircumflex",194,"Acircumflexacute",7844,"Acircumflexdotbelow",7852,"Acircumflexgrave",7846,"Acircumflexhookabove",7848,"Acircumflexsmall",63458,"Acircumflextilde",7850,"Acute",63177,"Acutesmall",63412,"Acyrillic",1040,"Adblgrave",512,"Adieresis",196,"Adieresiscyrillic",1234,"Adieresismacron",478,"Adieresissmall",63460,"Adotbelow",7840,"Adotmacron",480,"Agrave",192,"Agravesmall",63456,"Ahookabove",7842,"Aiecyrillic",1236,"Ainvertedbreve",514,"Alpha",913,"Alphatonos",902,"Amacron",256,"Amonospace",65313,"Aogonek",260,"Aring",197,"Aringacute",506,"Aringbelow",7680,"Aringsmall",63461,"Asmall",63329,"Atilde",195,"Atildesmall",63459,"Aybarmenian",1329,"B",66,"Bcircle",9399,"Bdotaccent",7682,"Bdotbelow",7684,"Becyrillic",1041,"Benarmenian",1330,"Beta",914,"Bhook",385,"Blinebelow",7686,"Bmonospace",65314,"Brevesmall",63220,"Bsmall",63330,"Btopbar",386,"C",67,"Caarmenian",1342,"Cacute",262,"Caron",63178,"Caronsmall",63221,"Ccaron",268,"Ccedilla",199,"Ccedillaacute",7688,"Ccedillasmall",63463,"Ccircle",9400,"Ccircumflex",264,"Cdot",266,"Cdotaccent",266,"Cedillasmall",63416,"Chaarmenian",1353,"Cheabkhasiancyrillic",1212,"Checyrillic",1063,"Chedescenderabkhasiancyrillic",1214,"Chedescendercyrillic",1206,"Chedieresiscyrillic",1268,"Cheharmenian",1347,"Chekhakassiancyrillic",1227,"Cheverticalstrokecyrillic",1208,"Chi",935,"Chook",391,"Circumflexsmall",63222,"Cmonospace",65315,"Coarmenian",1361,"Csmall",63331,"D",68,"DZ",497,"DZcaron",452,"Daarmenian",1332,"Dafrican",393,"Dcaron",270,"Dcedilla",7696,"Dcircle",9401,"Dcircumflexbelow",7698,"Dcroat",272,"Ddotaccent",7690,"Ddotbelow",7692,"Decyrillic",1044,"Deicoptic",1006,"Delta",8710,"Deltagreek",916,"Dhook",394,"Dieresis",63179,"DieresisAcute",63180,"DieresisGrave",63181,"Dieresissmall",63400,"Digammagreek",988,"Djecyrillic",1026,"Dlinebelow",7694,"Dmonospace",65316,"Dotaccentsmall",63223,"Dslash",272,"Dsmall",63332,"Dtopbar",395,"Dz",498,"Dzcaron",453,"Dzeabkhasiancyrillic",1248,"Dzecyrillic",1029,"Dzhecyrillic",1039,"E",69,"Eacute",201,"Eacutesmall",63465,"Ebreve",276,"Ecaron",282,"Ecedillabreve",7708,"Echarmenian",1333,"Ecircle",9402,"Ecircumflex",202,"Ecircumflexacute",7870,"Ecircumflexbelow",7704,"Ecircumflexdotbelow",7878,"Ecircumflexgrave",7872,"Ecircumflexhookabove",7874,"Ecircumflexsmall",63466,"Ecircumflextilde",7876,"Ecyrillic",1028,"Edblgrave",516,"Edieresis",203,"Edieresissmall",63467,"Edot",278,"Edotaccent",278,"Edotbelow",7864,"Efcyrillic",1060,"Egrave",200,"Egravesmall",63464,"Eharmenian",1335,"Ehookabove",7866,"Eightroman",8551,"Einvertedbreve",518,"Eiotifiedcyrillic",1124,"Elcyrillic",1051,"Elevenroman",8554,"Emacron",274,"Emacronacute",7702,"Emacrongrave",7700,"Emcyrillic",1052,"Emonospace",65317,"Encyrillic",1053,"Endescendercyrillic",1186,"Eng",330,"Enghecyrillic",1188,"Enhookcyrillic",1223,"Eogonek",280,"Eopen",400,"Epsilon",917,"Epsilontonos",904,"Ercyrillic",1056,"Ereversed",398,"Ereversedcyrillic",1069,"Escyrillic",1057,"Esdescendercyrillic",1194,"Esh",425,"Esmall",63333,"Eta",919,"Etarmenian",1336,"Etatonos",905,"Eth",208,"Ethsmall",63472,"Etilde",7868,"Etildebelow",7706,"Euro",8364,"Ezh",439,"Ezhcaron",494,"Ezhreversed",440,"F",70,"Fcircle",9403,"Fdotaccent",7710,"Feharmenian",1366,"Feicoptic",996,"Fhook",401,"Fitacyrillic",1138,"Fiveroman",8548,"Fmonospace",65318,"Fourroman",8547,"Fsmall",63334,"G",71,"GBsquare",13191,"Gacute",500,"Gamma",915,"Gammaafrican",404,"Gangiacoptic",1002,"Gbreve",286,"Gcaron",486,"Gcedilla",290,"Gcircle",9404,"Gcircumflex",284,"Gcommaaccent",290,"Gdot",288,"Gdotaccent",288,"Gecyrillic",1043,"Ghadarmenian",1346,"Ghemiddlehookcyrillic",1172,"Ghestrokecyrillic",1170,"Gheupturncyrillic",1168,"Ghook",403,"Gimarmenian",1331,"Gjecyrillic",1027,"Gmacron",7712,"Gmonospace",65319,"Grave",63182,"Gravesmall",63328,"Gsmall",63335,"Gsmallhook",667,"Gstroke",484,"H",72,"H18533",9679,"H18543",9642,"H18551",9643,"H22073",9633,"HPsquare",13259,"Haabkhasiancyrillic",1192,"Hadescendercyrillic",1202,"Hardsigncyrillic",1066,"Hbar",294,"Hbrevebelow",7722,"Hcedilla",7720,"Hcircle",9405,"Hcircumflex",292,"Hdieresis",7718,"Hdotaccent",7714,"Hdotbelow",7716,"Hmonospace",65320,"Hoarmenian",1344,"Horicoptic",1e3,"Hsmall",63336,"Hungarumlaut",63183,"Hungarumlautsmall",63224,"Hzsquare",13200,"I",73,"IAcyrillic",1071,"IJ",306,"IUcyrillic",1070,"Iacute",205,"Iacutesmall",63469,"Ibreve",300,"Icaron",463,"Icircle",9406,"Icircumflex",206,"Icircumflexsmall",63470,"Icyrillic",1030,"Idblgrave",520,"Idieresis",207,"Idieresisacute",7726,"Idieresiscyrillic",1252,"Idieresissmall",63471,"Idot",304,"Idotaccent",304,"Idotbelow",7882,"Iebrevecyrillic",1238,"Iecyrillic",1045,"Ifraktur",8465,"Igrave",204,"Igravesmall",63468,"Ihookabove",7880,"Iicyrillic",1048,"Iinvertedbreve",522,"Iishortcyrillic",1049,"Imacron",298,"Imacroncyrillic",1250,"Imonospace",65321,"Iniarmenian",1339,"Iocyrillic",1025,"Iogonek",302,"Iota",921,"Iotaafrican",406,"Iotadieresis",938,"Iotatonos",906,"Ismall",63337,"Istroke",407,"Itilde",296,"Itildebelow",7724,"Izhitsacyrillic",1140,"Izhitsadblgravecyrillic",1142,"J",74,"Jaarmenian",1345,"Jcircle",9407,"Jcircumflex",308,"Jecyrillic",1032,"Jheharmenian",1355,"Jmonospace",65322,"Jsmall",63338,"K",75,"KBsquare",13189,"KKsquare",13261,"Kabashkircyrillic",1184,"Kacute",7728,"Kacyrillic",1050,"Kadescendercyrillic",1178,"Kahookcyrillic",1219,"Kappa",922,"Kastrokecyrillic",1182,"Kaverticalstrokecyrillic",1180,"Kcaron",488,"Kcedilla",310,"Kcircle",9408,"Kcommaaccent",310,"Kdotbelow",7730,"Keharmenian",1364,"Kenarmenian",1343,"Khacyrillic",1061,"Kheicoptic",998,"Khook",408,"Kjecyrillic",1036,"Klinebelow",7732,"Kmonospace",65323,"Koppacyrillic",1152,"Koppagreek",990,"Ksicyrillic",1134,"Ksmall",63339,"L",76,"LJ",455,"LL",63167,"Lacute",313,"Lambda",923,"Lcaron",317,"Lcedilla",315,"Lcircle",9409,"Lcircumflexbelow",7740,"Lcommaaccent",315,"Ldot",319,"Ldotaccent",319,"Ldotbelow",7734,"Ldotbelowmacron",7736,"Liwnarmenian",1340,"Lj",456,"Ljecyrillic",1033,"Llinebelow",7738,"Lmonospace",65324,"Lslash",321,"Lslashsmall",63225,"Lsmall",63340,"M",77,"MBsquare",13190,"Macron",63184,"Macronsmall",63407,"Macute",7742,"Mcircle",9410,"Mdotaccent",7744,"Mdotbelow",7746,"Menarmenian",1348,"Mmonospace",65325,"Msmall",63341,"Mturned",412,"Mu",924,"N",78,"NJ",458,"Nacute",323,"Ncaron",327,"Ncedilla",325,"Ncircle",9411,"Ncircumflexbelow",7754,"Ncommaaccent",325,"Ndotaccent",7748,"Ndotbelow",7750,"Nhookleft",413,"Nineroman",8552,"Nj",459,"Njecyrillic",1034,"Nlinebelow",7752,"Nmonospace",65326,"Nowarmenian",1350,"Nsmall",63342,"Ntilde",209,"Ntildesmall",63473,"Nu",925,"O",79,"OE",338,"OEsmall",63226,"Oacute",211,"Oacutesmall",63475,"Obarredcyrillic",1256,"Obarreddieresiscyrillic",1258,"Obreve",334,"Ocaron",465,"Ocenteredtilde",415,"Ocircle",9412,"Ocircumflex",212,"Ocircumflexacute",7888,"Ocircumflexdotbelow",7896,"Ocircumflexgrave",7890,"Ocircumflexhookabove",7892,"Ocircumflexsmall",63476,"Ocircumflextilde",7894,"Ocyrillic",1054,"Odblacute",336,"Odblgrave",524,"Odieresis",214,"Odieresiscyrillic",1254,"Odieresissmall",63478,"Odotbelow",7884,"Ogoneksmall",63227,"Ograve",210,"Ogravesmall",63474,"Oharmenian",1365,"Ohm",8486,"Ohookabove",7886,"Ohorn",416,"Ohornacute",7898,"Ohorndotbelow",7906,"Ohorngrave",7900,"Ohornhookabove",7902,"Ohorntilde",7904,"Ohungarumlaut",336,"Oi",418,"Oinvertedbreve",526,"Omacron",332,"Omacronacute",7762,"Omacrongrave",7760,"Omega",8486,"Omegacyrillic",1120,"Omegagreek",937,"Omegaroundcyrillic",1146,"Omegatitlocyrillic",1148,"Omegatonos",911,"Omicron",927,"Omicrontonos",908,"Omonospace",65327,"Oneroman",8544,"Oogonek",490,"Oogonekmacron",492,"Oopen",390,"Oslash",216,"Oslashacute",510,"Oslashsmall",63480,"Osmall",63343,"Ostrokeacute",510,"Otcyrillic",1150,"Otilde",213,"Otildeacute",7756,"Otildedieresis",7758,"Otildesmall",63477,"P",80,"Pacute",7764,"Pcircle",9413,"Pdotaccent",7766,"Pecyrillic",1055,"Peharmenian",1354,"Pemiddlehookcyrillic",1190,"Phi",934,"Phook",420,"Pi",928,"Piwrarmenian",1363,"Pmonospace",65328,"Psi",936,"Psicyrillic",1136,"Psmall",63344,"Q",81,"Qcircle",9414,"Qmonospace",65329,"Qsmall",63345,"R",82,"Raarmenian",1356,"Racute",340,"Rcaron",344,"Rcedilla",342,"Rcircle",9415,"Rcommaaccent",342,"Rdblgrave",528,"Rdotaccent",7768,"Rdotbelow",7770,"Rdotbelowmacron",7772,"Reharmenian",1360,"Rfraktur",8476,"Rho",929,"Ringsmall",63228,"Rinvertedbreve",530,"Rlinebelow",7774,"Rmonospace",65330,"Rsmall",63346,"Rsmallinverted",641,"Rsmallinvertedsuperior",694,"S",83,"SF010000",9484,"SF020000",9492,"SF030000",9488,"SF040000",9496,"SF050000",9532,"SF060000",9516,"SF070000",9524,"SF080000",9500,"SF090000",9508,"SF100000",9472,"SF110000",9474,"SF190000",9569,"SF200000",9570,"SF210000",9558,"SF220000",9557,"SF230000",9571,"SF240000",9553,"SF250000",9559,"SF260000",9565,"SF270000",9564,"SF280000",9563,"SF360000",9566,"SF370000",9567,"SF380000",9562,"SF390000",9556,"SF400000",9577,"SF410000",9574,"SF420000",9568,"SF430000",9552,"SF440000",9580,"SF450000",9575,"SF460000",9576,"SF470000",9572,"SF480000",9573,"SF490000",9561,"SF500000",9560,"SF510000",9554,"SF520000",9555,"SF530000",9579,"SF540000",9578,"Sacute",346,"Sacutedotaccent",7780,"Sampigreek",992,"Scaron",352,"Scarondotaccent",7782,"Scaronsmall",63229,"Scedilla",350,"Schwa",399,"Schwacyrillic",1240,"Schwadieresiscyrillic",1242,"Scircle",9416,"Scircumflex",348,"Scommaaccent",536,"Sdotaccent",7776,"Sdotbelow",7778,"Sdotbelowdotaccent",7784,"Seharmenian",1357,"Sevenroman",8550,"Shaarmenian",1351,"Shacyrillic",1064,"Shchacyrillic",1065,"Sheicoptic",994,"Shhacyrillic",1210,"Shimacoptic",1004,"Sigma",931,"Sixroman",8549,"Smonospace",65331,"Softsigncyrillic",1068,"Ssmall",63347,"Stigmagreek",986,"T",84,"Tau",932,"Tbar",358,"Tcaron",356,"Tcedilla",354,"Tcircle",9417,"Tcircumflexbelow",7792,"Tcommaaccent",354,"Tdotaccent",7786,"Tdotbelow",7788,"Tecyrillic",1058,"Tedescendercyrillic",1196,"Tenroman",8553,"Tetsecyrillic",1204,"Theta",920,"Thook",428,"Thorn",222,"Thornsmall",63486,"Threeroman",8546,"Tildesmall",63230,"Tiwnarmenian",1359,"Tlinebelow",7790,"Tmonospace",65332,"Toarmenian",1337,"Tonefive",444,"Tonesix",388,"Tonetwo",423,"Tretroflexhook",430,"Tsecyrillic",1062,"Tshecyrillic",1035,"Tsmall",63348,"Twelveroman",8555,"Tworoman",8545,"U",85,"Uacute",218,"Uacutesmall",63482,"Ubreve",364,"Ucaron",467,"Ucircle",9418,"Ucircumflex",219,"Ucircumflexbelow",7798,"Ucircumflexsmall",63483,"Ucyrillic",1059,"Udblacute",368,"Udblgrave",532,"Udieresis",220,"Udieresisacute",471,"Udieresisbelow",7794,"Udieresiscaron",473,"Udieresiscyrillic",1264,"Udieresisgrave",475,"Udieresismacron",469,"Udieresissmall",63484,"Udotbelow",7908,"Ugrave",217,"Ugravesmall",63481,"Uhookabove",7910,"Uhorn",431,"Uhornacute",7912,"Uhorndotbelow",7920,"Uhorngrave",7914,"Uhornhookabove",7916,"Uhorntilde",7918,"Uhungarumlaut",368,"Uhungarumlautcyrillic",1266,"Uinvertedbreve",534,"Ukcyrillic",1144,"Umacron",362,"Umacroncyrillic",1262,"Umacrondieresis",7802,"Umonospace",65333,"Uogonek",370,"Upsilon",933,"Upsilon1",978,"Upsilonacutehooksymbolgreek",979,"Upsilonafrican",433,"Upsilondieresis",939,"Upsilondieresishooksymbolgreek",980,"Upsilonhooksymbol",978,"Upsilontonos",910,"Uring",366,"Ushortcyrillic",1038,"Usmall",63349,"Ustraightcyrillic",1198,"Ustraightstrokecyrillic",1200,"Utilde",360,"Utildeacute",7800,"Utildebelow",7796,"V",86,"Vcircle",9419,"Vdotbelow",7806,"Vecyrillic",1042,"Vewarmenian",1358,"Vhook",434,"Vmonospace",65334,"Voarmenian",1352,"Vsmall",63350,"Vtilde",7804,"W",87,"Wacute",7810,"Wcircle",9420,"Wcircumflex",372,"Wdieresis",7812,"Wdotaccent",7814,"Wdotbelow",7816,"Wgrave",7808,"Wmonospace",65335,"Wsmall",63351,"X",88,"Xcircle",9421,"Xdieresis",7820,"Xdotaccent",7818,"Xeharmenian",1341,"Xi",926,"Xmonospace",65336,"Xsmall",63352,"Y",89,"Yacute",221,"Yacutesmall",63485,"Yatcyrillic",1122,"Ycircle",9422,"Ycircumflex",374,"Ydieresis",376,"Ydieresissmall",63487,"Ydotaccent",7822,"Ydotbelow",7924,"Yericyrillic",1067,"Yerudieresiscyrillic",1272,"Ygrave",7922,"Yhook",435,"Yhookabove",7926,"Yiarmenian",1349,"Yicyrillic",1031,"Yiwnarmenian",1362,"Ymonospace",65337,"Ysmall",63353,"Ytilde",7928,"Yusbigcyrillic",1130,"Yusbigiotifiedcyrillic",1132,"Yuslittlecyrillic",1126,"Yuslittleiotifiedcyrillic",1128,"Z",90,"Zaarmenian",1334,"Zacute",377,"Zcaron",381,"Zcaronsmall",63231,"Zcircle",9423,"Zcircumflex",7824,"Zdot",379,"Zdotaccent",379,"Zdotbelow",7826,"Zecyrillic",1047,"Zedescendercyrillic",1176,"Zedieresiscyrillic",1246,"Zeta",918,"Zhearmenian",1338,"Zhebrevecyrillic",1217,"Zhecyrillic",1046,"Zhedescendercyrillic",1174,"Zhedieresiscyrillic",1244,"Zlinebelow",7828,"Zmonospace",65338,"Zsmall",63354,"Zstroke",437,"a",97,"aabengali",2438,"aacute",225,"aadeva",2310,"aagujarati",2694,"aagurmukhi",2566,"aamatragurmukhi",2622,"aarusquare",13059,"aavowelsignbengali",2494,"aavowelsigndeva",2366,"aavowelsigngujarati",2750,"abbreviationmarkarmenian",1375,"abbreviationsigndeva",2416,"abengali",2437,"abopomofo",12570,"abreve",259,"abreveacute",7855,"abrevecyrillic",1233,"abrevedotbelow",7863,"abrevegrave",7857,"abrevehookabove",7859,"abrevetilde",7861,"acaron",462,"acircle",9424,"acircumflex",226,"acircumflexacute",7845,"acircumflexdotbelow",7853,"acircumflexgrave",7847,"acircumflexhookabove",7849,"acircumflextilde",7851,"acute",180,"acutebelowcmb",791,"acutecmb",769,"acutecomb",769,"acutedeva",2388,"acutelowmod",719,"acutetonecmb",833,"acyrillic",1072,"adblgrave",513,"addakgurmukhi",2673,"adeva",2309,"adieresis",228,"adieresiscyrillic",1235,"adieresismacron",479,"adotbelow",7841,"adotmacron",481,"ae",230,"aeacute",509,"aekorean",12624,"aemacron",483,"afii00208",8213,"afii08941",8356,"afii10017",1040,"afii10018",1041,"afii10019",1042,"afii10020",1043,"afii10021",1044,"afii10022",1045,"afii10023",1025,"afii10024",1046,"afii10025",1047,"afii10026",1048,"afii10027",1049,"afii10028",1050,"afii10029",1051,"afii10030",1052,"afii10031",1053,"afii10032",1054,"afii10033",1055,"afii10034",1056,"afii10035",1057,"afii10036",1058,"afii10037",1059,"afii10038",1060,"afii10039",1061,"afii10040",1062,"afii10041",1063,"afii10042",1064,"afii10043",1065,"afii10044",1066,"afii10045",1067,"afii10046",1068,"afii10047",1069,"afii10048",1070,"afii10049",1071,"afii10050",1168,"afii10051",1026,"afii10052",1027,"afii10053",1028,"afii10054",1029,"afii10055",1030,"afii10056",1031,"afii10057",1032,"afii10058",1033,"afii10059",1034,"afii10060",1035,"afii10061",1036,"afii10062",1038,"afii10063",63172,"afii10064",63173,"afii10065",1072,"afii10066",1073,"afii10067",1074,"afii10068",1075,"afii10069",1076,"afii10070",1077,"afii10071",1105,"afii10072",1078,"afii10073",1079,"afii10074",1080,"afii10075",1081,"afii10076",1082,"afii10077",1083,"afii10078",1084,"afii10079",1085,"afii10080",1086,"afii10081",1087,"afii10082",1088,"afii10083",1089,"afii10084",1090,"afii10085",1091,"afii10086",1092,"afii10087",1093,"afii10088",1094,"afii10089",1095,"afii10090",1096,"afii10091",1097,"afii10092",1098,"afii10093",1099,"afii10094",1100,"afii10095",1101,"afii10096",1102,"afii10097",1103,"afii10098",1169,"afii10099",1106,"afii10100",1107,"afii10101",1108,"afii10102",1109,"afii10103",1110,"afii10104",1111,"afii10105",1112,"afii10106",1113,"afii10107",1114,"afii10108",1115,"afii10109",1116,"afii10110",1118,"afii10145",1039,"afii10146",1122,"afii10147",1138,"afii10148",1140,"afii10192",63174,"afii10193",1119,"afii10194",1123,"afii10195",1139,"afii10196",1141,"afii10831",63175,"afii10832",63176,"afii10846",1241,"afii299",8206,"afii300",8207,"afii301",8205,"afii57381",1642,"afii57388",1548,"afii57392",1632,"afii57393",1633,"afii57394",1634,"afii57395",1635,"afii57396",1636,"afii57397",1637,"afii57398",1638,"afii57399",1639,"afii57400",1640,"afii57401",1641,"afii57403",1563,"afii57407",1567,"afii57409",1569,"afii57410",1570,"afii57411",1571,"afii57412",1572,"afii57413",1573,"afii57414",1574,"afii57415",1575,"afii57416",1576,"afii57417",1577,"afii57418",1578,"afii57419",1579,"afii57420",1580,"afii57421",1581,"afii57422",1582,"afii57423",1583,"afii57424",1584,"afii57425",1585,"afii57426",1586,"afii57427",1587,"afii57428",1588,"afii57429",1589,"afii57430",1590,"afii57431",1591,"afii57432",1592,"afii57433",1593,"afii57434",1594,"afii57440",1600,"afii57441",1601,"afii57442",1602,"afii57443",1603,"afii57444",1604,"afii57445",1605,"afii57446",1606,"afii57448",1608,"afii57449",1609,"afii57450",1610,"afii57451",1611,"afii57452",1612,"afii57453",1613,"afii57454",1614,"afii57455",1615,"afii57456",1616,"afii57457",1617,"afii57458",1618,"afii57470",1607,"afii57505",1700,"afii57506",1662,"afii57507",1670,"afii57508",1688,"afii57509",1711,"afii57511",1657,"afii57512",1672,"afii57513",1681,"afii57514",1722,"afii57519",1746,"afii57534",1749,"afii57636",8362,"afii57645",1470,"afii57658",1475,"afii57664",1488,"afii57665",1489,"afii57666",1490,"afii57667",1491,"afii57668",1492,"afii57669",1493,"afii57670",1494,"afii57671",1495,"afii57672",1496,"afii57673",1497,"afii57674",1498,"afii57675",1499,"afii57676",1500,"afii57677",1501,"afii57678",1502,"afii57679",1503,"afii57680",1504,"afii57681",1505,"afii57682",1506,"afii57683",1507,"afii57684",1508,"afii57685",1509,"afii57686",1510,"afii57687",1511,"afii57688",1512,"afii57689",1513,"afii57690",1514,"afii57694",64298,"afii57695",64299,"afii57700",64331,"afii57705",64287,"afii57716",1520,"afii57717",1521,"afii57718",1522,"afii57723",64309,"afii57793",1460,"afii57794",1461,"afii57795",1462,"afii57796",1467,"afii57797",1464,"afii57798",1463,"afii57799",1456,"afii57800",1458,"afii57801",1457,"afii57802",1459,"afii57803",1474,"afii57804",1473,"afii57806",1465,"afii57807",1468,"afii57839",1469,"afii57841",1471,"afii57842",1472,"afii57929",700,"afii61248",8453,"afii61289",8467,"afii61352",8470,"afii61573",8236,"afii61574",8237,"afii61575",8238,"afii61664",8204,"afii63167",1645,"afii64937",701,"agrave",224,"agujarati",2693,"agurmukhi",2565,"ahiragana",12354,"ahookabove",7843,"aibengali",2448,"aibopomofo",12574,"aideva",2320,"aiecyrillic",1237,"aigujarati",2704,"aigurmukhi",2576,"aimatragurmukhi",2632,"ainarabic",1593,"ainfinalarabic",65226,"aininitialarabic",65227,"ainmedialarabic",65228,"ainvertedbreve",515,"aivowelsignbengali",2504,"aivowelsigndeva",2376,"aivowelsigngujarati",2760,"akatakana",12450,"akatakanahalfwidth",65393,"akorean",12623,"alef",1488,"alefarabic",1575,"alefdageshhebrew",64304,"aleffinalarabic",65166,"alefhamzaabovearabic",1571,"alefhamzaabovefinalarabic",65156,"alefhamzabelowarabic",1573,"alefhamzabelowfinalarabic",65160,"alefhebrew",1488,"aleflamedhebrew",64335,"alefmaddaabovearabic",1570,"alefmaddaabovefinalarabic",65154,"alefmaksuraarabic",1609,"alefmaksurafinalarabic",65264,"alefmaksurainitialarabic",65267,"alefmaksuramedialarabic",65268,"alefpatahhebrew",64302,"alefqamatshebrew",64303,"aleph",8501,"allequal",8780,"alpha",945,"alphatonos",940,"amacron",257,"amonospace",65345,"ampersand",38,"ampersandmonospace",65286,"ampersandsmall",63270,"amsquare",13250,"anbopomofo",12578,"angbopomofo",12580,"angbracketleft",12296,"angbracketright",12297,"angkhankhuthai",3674,"angle",8736,"anglebracketleft",12296,"anglebracketleftvertical",65087,"anglebracketright",12297,"anglebracketrightvertical",65088,"angleleft",9001,"angleright",9002,"angstrom",8491,"anoteleia",903,"anudattadeva",2386,"anusvarabengali",2434,"anusvaradeva",2306,"anusvaragujarati",2690,"aogonek",261,"apaatosquare",13056,"aparen",9372,"apostrophearmenian",1370,"apostrophemod",700,"apple",63743,"approaches",8784,"approxequal",8776,"approxequalorimage",8786,"approximatelyequal",8773,"araeaekorean",12686,"araeakorean",12685,"arc",8978,"arighthalfring",7834,"aring",229,"aringacute",507,"aringbelow",7681,"arrowboth",8596,"arrowdashdown",8675,"arrowdashleft",8672,"arrowdashright",8674,"arrowdashup",8673,"arrowdblboth",8660,"arrowdbldown",8659,"arrowdblleft",8656,"arrowdblright",8658,"arrowdblup",8657,"arrowdown",8595,"arrowdownleft",8601,"arrowdownright",8600,"arrowdownwhite",8681,"arrowheaddownmod",709,"arrowheadleftmod",706,"arrowheadrightmod",707,"arrowheadupmod",708,"arrowhorizex",63719,"arrowleft",8592,"arrowleftdbl",8656,"arrowleftdblstroke",8653,"arrowleftoverright",8646,"arrowleftwhite",8678,"arrowright",8594,"arrowrightdblstroke",8655,"arrowrightheavy",10142,"arrowrightoverleft",8644,"arrowrightwhite",8680,"arrowtableft",8676,"arrowtabright",8677,"arrowup",8593,"arrowupdn",8597,"arrowupdnbse",8616,"arrowupdownbase",8616,"arrowupleft",8598,"arrowupleftofdown",8645,"arrowupright",8599,"arrowupwhite",8679,"arrowvertex",63718,"asciicircum",94,"asciicircummonospace",65342,"asciitilde",126,"asciitildemonospace",65374,"ascript",593,"ascriptturned",594,"asmallhiragana",12353,"asmallkatakana",12449,"asmallkatakanahalfwidth",65383,"asterisk",42,"asteriskaltonearabic",1645,"asteriskarabic",1645,"asteriskmath",8727,"asteriskmonospace",65290,"asterisksmall",65121,"asterism",8258,"asuperior",63209,"asymptoticallyequal",8771,"at",64,"atilde",227,"atmonospace",65312,"atsmall",65131,"aturned",592,"aubengali",2452,"aubopomofo",12576,"audeva",2324,"augujarati",2708,"augurmukhi",2580,"aulengthmarkbengali",2519,"aumatragurmukhi",2636,"auvowelsignbengali",2508,"auvowelsigndeva",2380,"auvowelsigngujarati",2764,"avagrahadeva",2365,"aybarmenian",1377,"ayin",1506,"ayinaltonehebrew",64288,"ayinhebrew",1506,"b",98,"babengali",2476,"backslash",92,"backslashmonospace",65340,"badeva",2348,"bagujarati",2732,"bagurmukhi",2604,"bahiragana",12400,"bahtthai",3647,"bakatakana",12496,"bar",124,"barmonospace",65372,"bbopomofo",12549,"bcircle",9425,"bdotaccent",7683,"bdotbelow",7685,"beamedsixteenthnotes",9836,"because",8757,"becyrillic",1073,"beharabic",1576,"behfinalarabic",65168,"behinitialarabic",65169,"behiragana",12409,"behmedialarabic",65170,"behmeeminitialarabic",64671,"behmeemisolatedarabic",64520,"behnoonfinalarabic",64621,"bekatakana",12505,"benarmenian",1378,"bet",1489,"beta",946,"betasymbolgreek",976,"betdagesh",64305,"betdageshhebrew",64305,"bethebrew",1489,"betrafehebrew",64332,"bhabengali",2477,"bhadeva",2349,"bhagujarati",2733,"bhagurmukhi",2605,"bhook",595,"bihiragana",12403,"bikatakana",12499,"bilabialclick",664,"bindigurmukhi",2562,"birusquare",13105,"blackcircle",9679,"blackdiamond",9670,"blackdownpointingtriangle",9660,"blackleftpointingpointer",9668,"blackleftpointingtriangle",9664,"blacklenticularbracketleft",12304,"blacklenticularbracketleftvertical",65083,"blacklenticularbracketright",12305,"blacklenticularbracketrightvertical",65084,"blacklowerlefttriangle",9699,"blacklowerrighttriangle",9698,"blackrectangle",9644,"blackrightpointingpointer",9658,"blackrightpointingtriangle",9654,"blacksmallsquare",9642,"blacksmilingface",9787,"blacksquare",9632,"blackstar",9733,"blackupperlefttriangle",9700,"blackupperrighttriangle",9701,"blackuppointingsmalltriangle",9652,"blackuppointingtriangle",9650,"blank",9251,"blinebelow",7687,"block",9608,"bmonospace",65346,"bobaimaithai",3610,"bohiragana",12412,"bokatakana",12508,"bparen",9373,"bqsquare",13251,"braceex",63732,"braceleft",123,"braceleftbt",63731,"braceleftmid",63730,"braceleftmonospace",65371,"braceleftsmall",65115,"bracelefttp",63729,"braceleftvertical",65079,"braceright",125,"bracerightbt",63742,"bracerightmid",63741,"bracerightmonospace",65373,"bracerightsmall",65116,"bracerighttp",63740,"bracerightvertical",65080,"bracketleft",91,"bracketleftbt",63728,"bracketleftex",63727,"bracketleftmonospace",65339,"bracketlefttp",63726,"bracketright",93,"bracketrightbt",63739,"bracketrightex",63738,"bracketrightmonospace",65341,"bracketrighttp",63737,"breve",728,"brevebelowcmb",814,"brevecmb",774,"breveinvertedbelowcmb",815,"breveinvertedcmb",785,"breveinverteddoublecmb",865,"bridgebelowcmb",810,"bridgeinvertedbelowcmb",826,"brokenbar",166,"bstroke",384,"bsuperior",63210,"btopbar",387,"buhiragana",12406,"bukatakana",12502,"bullet",8226,"bulletinverse",9688,"bulletoperator",8729,"bullseye",9678,"c",99,"caarmenian",1390,"cabengali",2458,"cacute",263,"cadeva",2330,"cagujarati",2714,"cagurmukhi",2586,"calsquare",13192,"candrabindubengali",2433,"candrabinducmb",784,"candrabindudeva",2305,"candrabindugujarati",2689,"capslock",8682,"careof",8453,"caron",711,"caronbelowcmb",812,"caroncmb",780,"carriagereturn",8629,"cbopomofo",12568,"ccaron",269,"ccedilla",231,"ccedillaacute",7689,"ccircle",9426,"ccircumflex",265,"ccurl",597,"cdot",267,"cdotaccent",267,"cdsquare",13253,"cedilla",184,"cedillacmb",807,"cent",162,"centigrade",8451,"centinferior",63199,"centmonospace",65504,"centoldstyle",63394,"centsuperior",63200,"chaarmenian",1401,"chabengali",2459,"chadeva",2331,"chagujarati",2715,"chagurmukhi",2587,"chbopomofo",12564,"cheabkhasiancyrillic",1213,"checkmark",10003,"checyrillic",1095,"chedescenderabkhasiancyrillic",1215,"chedescendercyrillic",1207,"chedieresiscyrillic",1269,"cheharmenian",1395,"chekhakassiancyrillic",1228,"cheverticalstrokecyrillic",1209,"chi",967,"chieuchacirclekorean",12919,"chieuchaparenkorean",12823,"chieuchcirclekorean",12905,"chieuchkorean",12618,"chieuchparenkorean",12809,"chochangthai",3594,"chochanthai",3592,"chochingthai",3593,"chochoethai",3596,"chook",392,"cieucacirclekorean",12918,"cieucaparenkorean",12822,"cieuccirclekorean",12904,"cieuckorean",12616,"cieucparenkorean",12808,"cieucuparenkorean",12828,"circle",9675,"circlecopyrt",169,"circlemultiply",8855,"circleot",8857,"circleplus",8853,"circlepostalmark",12342,"circlewithlefthalfblack",9680,"circlewithrighthalfblack",9681,"circumflex",710,"circumflexbelowcmb",813,"circumflexcmb",770,"clear",8999,"clickalveolar",450,"clickdental",448,"clicklateral",449,"clickretroflex",451,"club",9827,"clubsuitblack",9827,"clubsuitwhite",9831,"cmcubedsquare",13220,"cmonospace",65347,"cmsquaredsquare",13216,"coarmenian",1409,"colon",58,"colonmonetary",8353,"colonmonospace",65306,"colonsign",8353,"colonsmall",65109,"colontriangularhalfmod",721,"colontriangularmod",720,"comma",44,"commaabovecmb",787,"commaaboverightcmb",789,"commaaccent",63171,"commaarabic",1548,"commaarmenian",1373,"commainferior",63201,"commamonospace",65292,"commareversedabovecmb",788,"commareversedmod",701,"commasmall",65104,"commasuperior",63202,"commaturnedabovecmb",786,"commaturnedmod",699,"compass",9788,"congruent",8773,"contourintegral",8750,"control",8963,"controlACK",6,"controlBEL",7,"controlBS",8,"controlCAN",24,"controlCR",13,"controlDC1",17,"controlDC2",18,"controlDC3",19,"controlDC4",20,"controlDEL",127,"controlDLE",16,"controlEM",25,"controlENQ",5,"controlEOT",4,"controlESC",27,"controlETB",23,"controlETX",3,"controlFF",12,"controlFS",28,"controlGS",29,"controlHT",9,"controlLF",10,"controlNAK",21,"controlNULL",0,"controlRS",30,"controlSI",15,"controlSO",14,"controlSOT",2,"controlSTX",1,"controlSUB",26,"controlSYN",22,"controlUS",31,"controlVT",11,"copyright",169,"copyrightsans",63721,"copyrightserif",63193,"cornerbracketleft",12300,"cornerbracketlefthalfwidth",65378,"cornerbracketleftvertical",65089,"cornerbracketright",12301,"cornerbracketrighthalfwidth",65379,"cornerbracketrightvertical",65090,"corporationsquare",13183,"cosquare",13255,"coverkgsquare",13254,"cparen",9374,"cruzeiro",8354,"cstretched",663,"curlyand",8911,"curlyor",8910,"currency",164,"cyrBreve",63185,"cyrFlex",63186,"cyrbreve",63188,"cyrflex",63189,"d",100,"daarmenian",1380,"dabengali",2470,"dadarabic",1590,"dadeva",2342,"dadfinalarabic",65214,"dadinitialarabic",65215,"dadmedialarabic",65216,"dagesh",1468,"dageshhebrew",1468,"dagger",8224,"daggerdbl",8225,"dagujarati",2726,"dagurmukhi",2598,"dahiragana",12384,"dakatakana",12480,"dalarabic",1583,"dalet",1491,"daletdagesh",64307,"daletdageshhebrew",64307,"dalethebrew",1491,"dalfinalarabic",65194,"dammaarabic",1615,"dammalowarabic",1615,"dammatanaltonearabic",1612,"dammatanarabic",1612,"danda",2404,"dargahebrew",1447,"dargalefthebrew",1447,"dasiapneumatacyrilliccmb",1157,"dblGrave",63187,"dblanglebracketleft",12298,"dblanglebracketleftvertical",65085,"dblanglebracketright",12299,"dblanglebracketrightvertical",65086,"dblarchinvertedbelowcmb",811,"dblarrowleft",8660,"dblarrowright",8658,"dbldanda",2405,"dblgrave",63190,"dblgravecmb",783,"dblintegral",8748,"dbllowline",8215,"dbllowlinecmb",819,"dbloverlinecmb",831,"dblprimemod",698,"dblverticalbar",8214,"dblverticallineabovecmb",782,"dbopomofo",12553,"dbsquare",13256,"dcaron",271,"dcedilla",7697,"dcircle",9427,"dcircumflexbelow",7699,"dcroat",273,"ddabengali",2465,"ddadeva",2337,"ddagujarati",2721,"ddagurmukhi",2593,"ddalarabic",1672,"ddalfinalarabic",64393,"dddhadeva",2396,"ddhabengali",2466,"ddhadeva",2338,"ddhagujarati",2722,"ddhagurmukhi",2594,"ddotaccent",7691,"ddotbelow",7693,"decimalseparatorarabic",1643,"decimalseparatorpersian",1643,"decyrillic",1076,"degree",176,"dehihebrew",1453,"dehiragana",12391,"deicoptic",1007,"dekatakana",12487,"deleteleft",9003,"deleteright",8998,"delta",948,"deltaturned",397,"denominatorminusonenumeratorbengali",2552,"dezh",676,"dhabengali",2471,"dhadeva",2343,"dhagujarati",2727,"dhagurmukhi",2599,"dhook",599,"dialytikatonos",901,"dialytikatonoscmb",836,"diamond",9830,"diamondsuitwhite",9826,"dieresis",168,"dieresisacute",63191,"dieresisbelowcmb",804,"dieresiscmb",776,"dieresisgrave",63192,"dieresistonos",901,"dihiragana",12386,"dikatakana",12482,"dittomark",12291,"divide",247,"divides",8739,"divisionslash",8725,"djecyrillic",1106,"dkshade",9619,"dlinebelow",7695,"dlsquare",13207,"dmacron",273,"dmonospace",65348,"dnblock",9604,"dochadathai",3598,"dodekthai",3604,"dohiragana",12393,"dokatakana",12489,"dollar",36,"dollarinferior",63203,"dollarmonospace",65284,"dollaroldstyle",63268,"dollarsmall",65129,"dollarsuperior",63204,"dong",8363,"dorusquare",13094,"dotaccent",729,"dotaccentcmb",775,"dotbelowcmb",803,"dotbelowcomb",803,"dotkatakana",12539,"dotlessi",305,"dotlessj",63166,"dotlessjstrokehook",644,"dotmath",8901,"dottedcircle",9676,"doubleyodpatah",64287,"doubleyodpatahhebrew",64287,"downtackbelowcmb",798,"downtackmod",725,"dparen",9375,"dsuperior",63211,"dtail",598,"dtopbar",396,"duhiragana",12389,"dukatakana",12485,"dz",499,"dzaltone",675,"dzcaron",454,"dzcurl",677,"dzeabkhasiancyrillic",1249,"dzecyrillic",1109,"dzhecyrillic",1119,"e",101,"eacute",233,"earth",9793,"ebengali",2447,"ebopomofo",12572,"ebreve",277,"ecandradeva",2317,"ecandragujarati",2701,"ecandravowelsigndeva",2373,"ecandravowelsigngujarati",2757,"ecaron",283,"ecedillabreve",7709,"echarmenian",1381,"echyiwnarmenian",1415,"ecircle",9428,"ecircumflex",234,"ecircumflexacute",7871,"ecircumflexbelow",7705,"ecircumflexdotbelow",7879,"ecircumflexgrave",7873,"ecircumflexhookabove",7875,"ecircumflextilde",7877,"ecyrillic",1108,"edblgrave",517,"edeva",2319,"edieresis",235,"edot",279,"edotaccent",279,"edotbelow",7865,"eegurmukhi",2575,"eematragurmukhi",2631,"efcyrillic",1092,"egrave",232,"egujarati",2703,"eharmenian",1383,"ehbopomofo",12573,"ehiragana",12360,"ehookabove",7867,"eibopomofo",12575,"eight",56,"eightarabic",1640,"eightbengali",2542,"eightcircle",9319,"eightcircleinversesansserif",10129,"eightdeva",2414,"eighteencircle",9329,"eighteenparen",9349,"eighteenperiod",9369,"eightgujarati",2798,"eightgurmukhi",2670,"eighthackarabic",1640,"eighthangzhou",12328,"eighthnotebeamed",9835,"eightideographicparen",12839,"eightinferior",8328,"eightmonospace",65304,"eightoldstyle",63288,"eightparen",9339,"eightperiod",9359,"eightpersian",1784,"eightroman",8567,"eightsuperior",8312,"eightthai",3672,"einvertedbreve",519,"eiotifiedcyrillic",1125,"ekatakana",12456,"ekatakanahalfwidth",65396,"ekonkargurmukhi",2676,"ekorean",12628,"elcyrillic",1083,"element",8712,"elevencircle",9322,"elevenparen",9342,"elevenperiod",9362,"elevenroman",8570,"ellipsis",8230,"ellipsisvertical",8942,"emacron",275,"emacronacute",7703,"emacrongrave",7701,"emcyrillic",1084,"emdash",8212,"emdashvertical",65073,"emonospace",65349,"emphasismarkarmenian",1371,"emptyset",8709,"enbopomofo",12579,"encyrillic",1085,"endash",8211,"endashvertical",65074,"endescendercyrillic",1187,"eng",331,"engbopomofo",12581,"enghecyrillic",1189,"enhookcyrillic",1224,"enspace",8194,"eogonek",281,"eokorean",12627,"eopen",603,"eopenclosed",666,"eopenreversed",604,"eopenreversedclosed",606,"eopenreversedhook",605,"eparen",9376,"epsilon",949,"epsilontonos",941,"equal",61,"equalmonospace",65309,"equalsmall",65126,"equalsuperior",8316,"equivalence",8801,"erbopomofo",12582,"ercyrillic",1088,"ereversed",600,"ereversedcyrillic",1101,"escyrillic",1089,"esdescendercyrillic",1195,"esh",643,"eshcurl",646,"eshortdeva",2318,"eshortvowelsigndeva",2374,"eshreversedloop",426,"eshsquatreversed",645,"esmallhiragana",12359,"esmallkatakana",12455,"esmallkatakanahalfwidth",65386,"estimated",8494,"esuperior",63212,"eta",951,"etarmenian",1384,"etatonos",942,"eth",240,"etilde",7869,"etildebelow",7707,"etnahtafoukhhebrew",1425,"etnahtafoukhlefthebrew",1425,"etnahtahebrew",1425,"etnahtalefthebrew",1425,"eturned",477,"eukorean",12641,"euro",8364,"evowelsignbengali",2503,"evowelsigndeva",2375,"evowelsigngujarati",2759,"exclam",33,"exclamarmenian",1372,"exclamdbl",8252,"exclamdown",161,"exclamdownsmall",63393,"exclammonospace",65281,"exclamsmall",63265,"existential",8707,"ezh",658,"ezhcaron",495,"ezhcurl",659,"ezhreversed",441,"ezhtail",442,"f",102,"fadeva",2398,"fagurmukhi",2654,"fahrenheit",8457,"fathaarabic",1614,"fathalowarabic",1614,"fathatanarabic",1611,"fbopomofo",12552,"fcircle",9429,"fdotaccent",7711,"feharabic",1601,"feharmenian",1414,"fehfinalarabic",65234,"fehinitialarabic",65235,"fehmedialarabic",65236,"feicoptic",997,"female",9792,"ff",64256,"f_f",64256,"ffi",64259,"ffl",64260,"fi",64257,"fifteencircle",9326,"fifteenparen",9346,"fifteenperiod",9366,"figuredash",8210,"filledbox",9632,"filledrect",9644,"finalkaf",1498,"finalkafdagesh",64314,"finalkafdageshhebrew",64314,"finalkafhebrew",1498,"finalmem",1501,"finalmemhebrew",1501,"finalnun",1503,"finalnunhebrew",1503,"finalpe",1507,"finalpehebrew",1507,"finaltsadi",1509,"finaltsadihebrew",1509,"firsttonechinese",713,"fisheye",9673,"fitacyrillic",1139,"five",53,"fivearabic",1637,"fivebengali",2539,"fivecircle",9316,"fivecircleinversesansserif",10126,"fivedeva",2411,"fiveeighths",8541,"fivegujarati",2795,"fivegurmukhi",2667,"fivehackarabic",1637,"fivehangzhou",12325,"fiveideographicparen",12836,"fiveinferior",8325,"fivemonospace",65301,"fiveoldstyle",63285,"fiveparen",9336,"fiveperiod",9356,"fivepersian",1781,"fiveroman",8564,"fivesuperior",8309,"fivethai",3669,"fl",64258,"florin",402,"fmonospace",65350,"fmsquare",13209,"fofanthai",3615,"fofathai",3613,"fongmanthai",3663,"forall",8704,"four",52,"fourarabic",1636,"fourbengali",2538,"fourcircle",9315,"fourcircleinversesansserif",10125,"fourdeva",2410,"fourgujarati",2794,"fourgurmukhi",2666,"fourhackarabic",1636,"fourhangzhou",12324,"fourideographicparen",12835,"fourinferior",8324,"fourmonospace",65300,"fournumeratorbengali",2551,"fouroldstyle",63284,"fourparen",9335,"fourperiod",9355,"fourpersian",1780,"fourroman",8563,"foursuperior",8308,"fourteencircle",9325,"fourteenparen",9345,"fourteenperiod",9365,"fourthai",3668,"fourthtonechinese",715,"fparen",9377,"fraction",8260,"franc",8355,"g",103,"gabengali",2455,"gacute",501,"gadeva",2327,"gafarabic",1711,"gaffinalarabic",64403,"gafinitialarabic",64404,"gafmedialarabic",64405,"gagujarati",2711,"gagurmukhi",2583,"gahiragana",12364,"gakatakana",12460,"gamma",947,"gammalatinsmall",611,"gammasuperior",736,"gangiacoptic",1003,"gbopomofo",12557,"gbreve",287,"gcaron",487,"gcedilla",291,"gcircle",9430,"gcircumflex",285,"gcommaaccent",291,"gdot",289,"gdotaccent",289,"gecyrillic",1075,"gehiragana",12370,"gekatakana",12466,"geometricallyequal",8785,"gereshaccenthebrew",1436,"gereshhebrew",1523,"gereshmuqdamhebrew",1437,"germandbls",223,"gershayimaccenthebrew",1438,"gershayimhebrew",1524,"getamark",12307,"ghabengali",2456,"ghadarmenian",1394,"ghadeva",2328,"ghagujarati",2712,"ghagurmukhi",2584,"ghainarabic",1594,"ghainfinalarabic",65230,"ghaininitialarabic",65231,"ghainmedialarabic",65232,"ghemiddlehookcyrillic",1173,"ghestrokecyrillic",1171,"gheupturncyrillic",1169,"ghhadeva",2394,"ghhagurmukhi",2650,"ghook",608,"ghzsquare",13203,"gihiragana",12366,"gikatakana",12462,"gimarmenian",1379,"gimel",1490,"gimeldagesh",64306,"gimeldageshhebrew",64306,"gimelhebrew",1490,"gjecyrillic",1107,"glottalinvertedstroke",446,"glottalstop",660,"glottalstopinverted",662,"glottalstopmod",704,"glottalstopreversed",661,"glottalstopreversedmod",705,"glottalstopreversedsuperior",740,"glottalstopstroke",673,"glottalstopstrokereversed",674,"gmacron",7713,"gmonospace",65351,"gohiragana",12372,"gokatakana",12468,"gparen",9378,"gpasquare",13228,"gradient",8711,"grave",96,"gravebelowcmb",790,"gravecmb",768,"gravecomb",768,"gravedeva",2387,"gravelowmod",718,"gravemonospace",65344,"gravetonecmb",832,"greater",62,"greaterequal",8805,"greaterequalorless",8923,"greatermonospace",65310,"greaterorequivalent",8819,"greaterorless",8823,"greateroverequal",8807,"greatersmall",65125,"gscript",609,"gstroke",485,"guhiragana",12368,"guillemotleft",171,"guillemotright",187,"guilsinglleft",8249,"guilsinglright",8250,"gukatakana",12464,"guramusquare",13080,"gysquare",13257,"h",104,"haabkhasiancyrillic",1193,"haaltonearabic",1729,"habengali",2489,"hadescendercyrillic",1203,"hadeva",2361,"hagujarati",2745,"hagurmukhi",2617,"haharabic",1581,"hahfinalarabic",65186,"hahinitialarabic",65187,"hahiragana",12399,"hahmedialarabic",65188,"haitusquare",13098,"hakatakana",12495,"hakatakanahalfwidth",65418,"halantgurmukhi",2637,"hamzaarabic",1569,"hamzalowarabic",1569,"hangulfiller",12644,"hardsigncyrillic",1098,"harpoonleftbarbup",8636,"harpoonrightbarbup",8640,"hasquare",13258,"hatafpatah",1458,"hatafpatah16",1458,"hatafpatah23",1458,"hatafpatah2f",1458,"hatafpatahhebrew",1458,"hatafpatahnarrowhebrew",1458,"hatafpatahquarterhebrew",1458,"hatafpatahwidehebrew",1458,"hatafqamats",1459,"hatafqamats1b",1459,"hatafqamats28",1459,"hatafqamats34",1459,"hatafqamatshebrew",1459,"hatafqamatsnarrowhebrew",1459,"hatafqamatsquarterhebrew",1459,"hatafqamatswidehebrew",1459,"hatafsegol",1457,"hatafsegol17",1457,"hatafsegol24",1457,"hatafsegol30",1457,"hatafsegolhebrew",1457,"hatafsegolnarrowhebrew",1457,"hatafsegolquarterhebrew",1457,"hatafsegolwidehebrew",1457,"hbar",295,"hbopomofo",12559,"hbrevebelow",7723,"hcedilla",7721,"hcircle",9431,"hcircumflex",293,"hdieresis",7719,"hdotaccent",7715,"hdotbelow",7717,"he",1492,"heart",9829,"heartsuitblack",9829,"heartsuitwhite",9825,"hedagesh",64308,"hedageshhebrew",64308,"hehaltonearabic",1729,"heharabic",1607,"hehebrew",1492,"hehfinalaltonearabic",64423,"hehfinalalttwoarabic",65258,"hehfinalarabic",65258,"hehhamzaabovefinalarabic",64421,"hehhamzaaboveisolatedarabic",64420,"hehinitialaltonearabic",64424,"hehinitialarabic",65259,"hehiragana",12408,"hehmedialaltonearabic",64425,"hehmedialarabic",65260,"heiseierasquare",13179,"hekatakana",12504,"hekatakanahalfwidth",65421,"hekutaarusquare",13110,"henghook",615,"herutusquare",13113,"het",1495,"hethebrew",1495,"hhook",614,"hhooksuperior",689,"hieuhacirclekorean",12923,"hieuhaparenkorean",12827,"hieuhcirclekorean",12909,"hieuhkorean",12622,"hieuhparenkorean",12813,"hihiragana",12402,"hikatakana",12498,"hikatakanahalfwidth",65419,"hiriq",1460,"hiriq14",1460,"hiriq21",1460,"hiriq2d",1460,"hiriqhebrew",1460,"hiriqnarrowhebrew",1460,"hiriqquarterhebrew",1460,"hiriqwidehebrew",1460,"hlinebelow",7830,"hmonospace",65352,"hoarmenian",1392,"hohipthai",3627,"hohiragana",12411,"hokatakana",12507,"hokatakanahalfwidth",65422,"holam",1465,"holam19",1465,"holam26",1465,"holam32",1465,"holamhebrew",1465,"holamnarrowhebrew",1465,"holamquarterhebrew",1465,"holamwidehebrew",1465,"honokhukthai",3630,"hookabovecomb",777,"hookcmb",777,"hookpalatalizedbelowcmb",801,"hookretroflexbelowcmb",802,"hoonsquare",13122,"horicoptic",1001,"horizontalbar",8213,"horncmb",795,"hotsprings",9832,"house",8962,"hparen",9379,"hsuperior",688,"hturned",613,"huhiragana",12405,"huiitosquare",13107,"hukatakana",12501,"hukatakanahalfwidth",65420,"hungarumlaut",733,"hungarumlautcmb",779,"hv",405,"hyphen",45,"hypheninferior",63205,"hyphenmonospace",65293,"hyphensmall",65123,"hyphensuperior",63206,"hyphentwo",8208,"i",105,"iacute",237,"iacyrillic",1103,"ibengali",2439,"ibopomofo",12583,"ibreve",301,"icaron",464,"icircle",9432,"icircumflex",238,"icyrillic",1110,"idblgrave",521,"ideographearthcircle",12943,"ideographfirecircle",12939,"ideographicallianceparen",12863,"ideographiccallparen",12858,"ideographiccentrecircle",12965,"ideographicclose",12294,"ideographiccomma",12289,"ideographiccommaleft",65380,"ideographiccongratulationparen",12855,"ideographiccorrectcircle",12963,"ideographicearthparen",12847,"ideographicenterpriseparen",12861,"ideographicexcellentcircle",12957,"ideographicfestivalparen",12864,"ideographicfinancialcircle",12950,"ideographicfinancialparen",12854,"ideographicfireparen",12843,"ideographichaveparen",12850,"ideographichighcircle",12964,"ideographiciterationmark",12293,"ideographiclaborcircle",12952,"ideographiclaborparen",12856,"ideographicleftcircle",12967,"ideographiclowcircle",12966,"ideographicmedicinecircle",12969,"ideographicmetalparen",12846,"ideographicmoonparen",12842,"ideographicnameparen",12852,"ideographicperiod",12290,"ideographicprintcircle",12958,"ideographicreachparen",12867,"ideographicrepresentparen",12857,"ideographicresourceparen",12862,"ideographicrightcircle",12968,"ideographicsecretcircle",12953,"ideographicselfparen",12866,"ideographicsocietyparen",12851,"ideographicspace",12288,"ideographicspecialparen",12853,"ideographicstockparen",12849,"ideographicstudyparen",12859,"ideographicsunparen",12848,"ideographicsuperviseparen",12860,"ideographicwaterparen",12844,"ideographicwoodparen",12845,"ideographiczero",12295,"ideographmetalcircle",12942,"ideographmooncircle",12938,"ideographnamecircle",12948,"ideographsuncircle",12944,"ideographwatercircle",12940,"ideographwoodcircle",12941,"ideva",2311,"idieresis",239,"idieresisacute",7727,"idieresiscyrillic",1253,"idotbelow",7883,"iebrevecyrillic",1239,"iecyrillic",1077,"ieungacirclekorean",12917,"ieungaparenkorean",12821,"ieungcirclekorean",12903,"ieungkorean",12615,"ieungparenkorean",12807,"igrave",236,"igujarati",2695,"igurmukhi",2567,"ihiragana",12356,"ihookabove",7881,"iibengali",2440,"iicyrillic",1080,"iideva",2312,"iigujarati",2696,"iigurmukhi",2568,"iimatragurmukhi",2624,"iinvertedbreve",523,"iishortcyrillic",1081,"iivowelsignbengali",2496,"iivowelsigndeva",2368,"iivowelsigngujarati",2752,"ij",307,"ikatakana",12452,"ikatakanahalfwidth",65394,"ikorean",12643,"ilde",732,"iluyhebrew",1452,"imacron",299,"imacroncyrillic",1251,"imageorapproximatelyequal",8787,"imatragurmukhi",2623,"imonospace",65353,"increment",8710,"infinity",8734,"iniarmenian",1387,"integral",8747,"integralbottom",8993,"integralbt",8993,"integralex",63733,"integraltop",8992,"integraltp",8992,"intersection",8745,"intisquare",13061,"invbullet",9688,"invcircle",9689,"invsmileface",9787,"iocyrillic",1105,"iogonek",303,"iota",953,"iotadieresis",970,"iotadieresistonos",912,"iotalatin",617,"iotatonos",943,"iparen",9380,"irigurmukhi",2674,"ismallhiragana",12355,"ismallkatakana",12451,"ismallkatakanahalfwidth",65384,"issharbengali",2554,"istroke",616,"isuperior",63213,"iterationhiragana",12445,"iterationkatakana",12541,"itilde",297,"itildebelow",7725,"iubopomofo",12585,"iucyrillic",1102,"ivowelsignbengali",2495,"ivowelsigndeva",2367,"ivowelsigngujarati",2751,"izhitsacyrillic",1141,"izhitsadblgravecyrillic",1143,"j",106,"jaarmenian",1393,"jabengali",2460,"jadeva",2332,"jagujarati",2716,"jagurmukhi",2588,"jbopomofo",12560,"jcaron",496,"jcircle",9433,"jcircumflex",309,"jcrossedtail",669,"jdotlessstroke",607,"jecyrillic",1112,"jeemarabic",1580,"jeemfinalarabic",65182,"jeeminitialarabic",65183,"jeemmedialarabic",65184,"jeharabic",1688,"jehfinalarabic",64395,"jhabengali",2461,"jhadeva",2333,"jhagujarati",2717,"jhagurmukhi",2589,"jheharmenian",1403,"jis",12292,"jmonospace",65354,"jparen",9381,"jsuperior",690,"k",107,"kabashkircyrillic",1185,"kabengali",2453,"kacute",7729,"kacyrillic",1082,"kadescendercyrillic",1179,"kadeva",2325,"kaf",1499,"kafarabic",1603,"kafdagesh",64315,"kafdageshhebrew",64315,"kaffinalarabic",65242,"kafhebrew",1499,"kafinitialarabic",65243,"kafmedialarabic",65244,"kafrafehebrew",64333,"kagujarati",2709,"kagurmukhi",2581,"kahiragana",12363,"kahookcyrillic",1220,"kakatakana",12459,"kakatakanahalfwidth",65398,"kappa",954,"kappasymbolgreek",1008,"kapyeounmieumkorean",12657,"kapyeounphieuphkorean",12676,"kapyeounpieupkorean",12664,"kapyeounssangpieupkorean",12665,"karoriisquare",13069,"kashidaautoarabic",1600,"kashidaautonosidebearingarabic",1600,"kasmallkatakana",12533,"kasquare",13188,"kasraarabic",1616,"kasratanarabic",1613,"kastrokecyrillic",1183,"katahiraprolongmarkhalfwidth",65392,"kaverticalstrokecyrillic",1181,"kbopomofo",12558,"kcalsquare",13193,"kcaron",489,"kcedilla",311,"kcircle",9434,"kcommaaccent",311,"kdotbelow",7731,"keharmenian",1412,"kehiragana",12369,"kekatakana",12465,"kekatakanahalfwidth",65401,"kenarmenian",1391,"kesmallkatakana",12534,"kgreenlandic",312,"khabengali",2454,"khacyrillic",1093,"khadeva",2326,"khagujarati",2710,"khagurmukhi",2582,"khaharabic",1582,"khahfinalarabic",65190,"khahinitialarabic",65191,"khahmedialarabic",65192,"kheicoptic",999,"khhadeva",2393,"khhagurmukhi",2649,"khieukhacirclekorean",12920,"khieukhaparenkorean",12824,"khieukhcirclekorean",12906,"khieukhkorean",12619,"khieukhparenkorean",12810,"khokhaithai",3586,"khokhonthai",3589,"khokhuatthai",3587,"khokhwaithai",3588,"khomutthai",3675,"khook",409,"khorakhangthai",3590,"khzsquare",13201,"kihiragana",12365,"kikatakana",12461,"kikatakanahalfwidth",65399,"kiroguramusquare",13077,"kiromeetorusquare",13078,"kirosquare",13076,"kiyeokacirclekorean",12910,"kiyeokaparenkorean",12814,"kiyeokcirclekorean",12896,"kiyeokkorean",12593,"kiyeokparenkorean",12800,"kiyeoksioskorean",12595,"kjecyrillic",1116,"klinebelow",7733,"klsquare",13208,"kmcubedsquare",13222,"kmonospace",65355,"kmsquaredsquare",13218,"kohiragana",12371,"kohmsquare",13248,"kokaithai",3585,"kokatakana",12467,"kokatakanahalfwidth",65402,"kooposquare",13086,"koppacyrillic",1153,"koreanstandardsymbol",12927,"koroniscmb",835,"kparen",9382,"kpasquare",13226,"ksicyrillic",1135,"ktsquare",13263,"kturned",670,"kuhiragana",12367,"kukatakana",12463,"kukatakanahalfwidth",65400,"kvsquare",13240,"kwsquare",13246,"l",108,"labengali",2482,"lacute",314,"ladeva",2354,"lagujarati",2738,"lagurmukhi",2610,"lakkhangyaothai",3653,"lamaleffinalarabic",65276,"lamalefhamzaabovefinalarabic",65272,"lamalefhamzaaboveisolatedarabic",65271,"lamalefhamzabelowfinalarabic",65274,"lamalefhamzabelowisolatedarabic",65273,"lamalefisolatedarabic",65275,"lamalefmaddaabovefinalarabic",65270,"lamalefmaddaaboveisolatedarabic",65269,"lamarabic",1604,"lambda",955,"lambdastroke",411,"lamed",1500,"lameddagesh",64316,"lameddageshhebrew",64316,"lamedhebrew",1500,"lamfinalarabic",65246,"lamhahinitialarabic",64714,"laminitialarabic",65247,"lamjeeminitialarabic",64713,"lamkhahinitialarabic",64715,"lamlamhehisolatedarabic",65010,"lammedialarabic",65248,"lammeemhahinitialarabic",64904,"lammeeminitialarabic",64716,"largecircle",9711,"lbar",410,"lbelt",620,"lbopomofo",12556,"lcaron",318,"lcedilla",316,"lcircle",9435,"lcircumflexbelow",7741,"lcommaaccent",316,"ldot",320,"ldotaccent",320,"ldotbelow",7735,"ldotbelowmacron",7737,"leftangleabovecmb",794,"lefttackbelowcmb",792,"less",60,"lessequal",8804,"lessequalorgreater",8922,"lessmonospace",65308,"lessorequivalent",8818,"lessorgreater",8822,"lessoverequal",8806,"lesssmall",65124,"lezh",622,"lfblock",9612,"lhookretroflex",621,"lira",8356,"liwnarmenian",1388,"lj",457,"ljecyrillic",1113,"ll",63168,"lladeva",2355,"llagujarati",2739,"llinebelow",7739,"llladeva",2356,"llvocalicbengali",2529,"llvocalicdeva",2401,"llvocalicvowelsignbengali",2531,"llvocalicvowelsigndeva",2403,"lmiddletilde",619,"lmonospace",65356,"lmsquare",13264,"lochulathai",3628,"logicaland",8743,"logicalnot",172,"logicalnotreversed",8976,"logicalor",8744,"lolingthai",3621,"longs",383,"lowlinecenterline",65102,"lowlinecmb",818,"lowlinedashed",65101,"lozenge",9674,"lparen",9383,"lslash",322,"lsquare",8467,"lsuperior",63214,"ltshade",9617,"luthai",3622,"lvocalicbengali",2444,"lvocalicdeva",2316,"lvocalicvowelsignbengali",2530,"lvocalicvowelsigndeva",2402,"lxsquare",13267,"m",109,"mabengali",2478,"macron",175,"macronbelowcmb",817,"macroncmb",772,"macronlowmod",717,"macronmonospace",65507,"macute",7743,"madeva",2350,"magujarati",2734,"magurmukhi",2606,"mahapakhhebrew",1444,"mahapakhlefthebrew",1444,"mahiragana",12414,"maichattawalowleftthai",63637,"maichattawalowrightthai",63636,"maichattawathai",3659,"maichattawaupperleftthai",63635,"maieklowleftthai",63628,"maieklowrightthai",63627,"maiekthai",3656,"maiekupperleftthai",63626,"maihanakatleftthai",63620,"maihanakatthai",3633,"maitaikhuleftthai",63625,"maitaikhuthai",3655,"maitholowleftthai",63631,"maitholowrightthai",63630,"maithothai",3657,"maithoupperleftthai",63629,"maitrilowleftthai",63634,"maitrilowrightthai",63633,"maitrithai",3658,"maitriupperleftthai",63632,"maiyamokthai",3654,"makatakana",12510,"makatakanahalfwidth",65423,"male",9794,"mansyonsquare",13127,"maqafhebrew",1470,"mars",9794,"masoracirclehebrew",1455,"masquare",13187,"mbopomofo",12551,"mbsquare",13268,"mcircle",9436,"mcubedsquare",13221,"mdotaccent",7745,"mdotbelow",7747,"meemarabic",1605,"meemfinalarabic",65250,"meeminitialarabic",65251,"meemmedialarabic",65252,"meemmeeminitialarabic",64721,"meemmeemisolatedarabic",64584,"meetorusquare",13133,"mehiragana",12417,"meizierasquare",13182,"mekatakana",12513,"mekatakanahalfwidth",65426,"mem",1502,"memdagesh",64318,"memdageshhebrew",64318,"memhebrew",1502,"menarmenian",1396,"merkhahebrew",1445,"merkhakefulahebrew",1446,"merkhakefulalefthebrew",1446,"merkhalefthebrew",1445,"mhook",625,"mhzsquare",13202,"middledotkatakanahalfwidth",65381,"middot",183,"mieumacirclekorean",12914,"mieumaparenkorean",12818,"mieumcirclekorean",12900,"mieumkorean",12609,"mieumpansioskorean",12656,"mieumparenkorean",12804,"mieumpieupkorean",12654,"mieumsioskorean",12655,"mihiragana",12415,"mikatakana",12511,"mikatakanahalfwidth",65424,"minus",8722,"minusbelowcmb",800,"minuscircle",8854,"minusmod",727,"minusplus",8723,"minute",8242,"miribaarusquare",13130,"mirisquare",13129,"mlonglegturned",624,"mlsquare",13206,"mmcubedsquare",13219,"mmonospace",65357,"mmsquaredsquare",13215,"mohiragana",12418,"mohmsquare",13249,"mokatakana",12514,"mokatakanahalfwidth",65427,"molsquare",13270,"momathai",3617,"moverssquare",13223,"moverssquaredsquare",13224,"mparen",9384,"mpasquare",13227,"mssquare",13235,"msuperior",63215,"mturned",623,"mu",181,"mu1",181,"muasquare",13186,"muchgreater",8811,"muchless",8810,"mufsquare",13196,"mugreek",956,"mugsquare",13197,"muhiragana",12416,"mukatakana",12512,"mukatakanahalfwidth",65425,"mulsquare",13205,"multiply",215,"mumsquare",13211,"munahhebrew",1443,"munahlefthebrew",1443,"musicalnote",9834,"musicalnotedbl",9835,"musicflatsign",9837,"musicsharpsign",9839,"mussquare",13234,"muvsquare",13238,"muwsquare",13244,"mvmegasquare",13241,"mvsquare",13239,"mwmegasquare",13247,"mwsquare",13245,"n",110,"nabengali",2472,"nabla",8711,"nacute",324,"nadeva",2344,"nagujarati",2728,"nagurmukhi",2600,"nahiragana",12394,"nakatakana",12490,"nakatakanahalfwidth",65413,"napostrophe",329,"nasquare",13185,"nbopomofo",12555,"nbspace",160,"ncaron",328,"ncedilla",326,"ncircle",9437,"ncircumflexbelow",7755,"ncommaaccent",326,"ndotaccent",7749,"ndotbelow",7751,"nehiragana",12397,"nekatakana",12493,"nekatakanahalfwidth",65416,"newsheqelsign",8362,"nfsquare",13195,"ngabengali",2457,"ngadeva",2329,"ngagujarati",2713,"ngagurmukhi",2585,"ngonguthai",3591,"nhiragana",12435,"nhookleft",626,"nhookretroflex",627,"nieunacirclekorean",12911,"nieunaparenkorean",12815,"nieuncieuckorean",12597,"nieuncirclekorean",12897,"nieunhieuhkorean",12598,"nieunkorean",12596,"nieunpansioskorean",12648,"nieunparenkorean",12801,"nieunsioskorean",12647,"nieuntikeutkorean",12646,"nihiragana",12395,"nikatakana",12491,"nikatakanahalfwidth",65414,"nikhahitleftthai",63641,"nikhahitthai",3661,"nine",57,"ninearabic",1641,"ninebengali",2543,"ninecircle",9320,"ninecircleinversesansserif",10130,"ninedeva",2415,"ninegujarati",2799,"ninegurmukhi",2671,"ninehackarabic",1641,"ninehangzhou",12329,"nineideographicparen",12840,"nineinferior",8329,"ninemonospace",65305,"nineoldstyle",63289,"nineparen",9340,"nineperiod",9360,"ninepersian",1785,"nineroman",8568,"ninesuperior",8313,"nineteencircle",9330,"nineteenparen",9350,"nineteenperiod",9370,"ninethai",3673,"nj",460,"njecyrillic",1114,"nkatakana",12531,"nkatakanahalfwidth",65437,"nlegrightlong",414,"nlinebelow",7753,"nmonospace",65358,"nmsquare",13210,"nnabengali",2467,"nnadeva",2339,"nnagujarati",2723,"nnagurmukhi",2595,"nnnadeva",2345,"nohiragana",12398,"nokatakana",12494,"nokatakanahalfwidth",65417,"nonbreakingspace",160,"nonenthai",3603,"nonuthai",3609,"noonarabic",1606,"noonfinalarabic",65254,"noonghunnaarabic",1722,"noonghunnafinalarabic",64415,"nooninitialarabic",65255,"noonjeeminitialarabic",64722,"noonjeemisolatedarabic",64587,"noonmedialarabic",65256,"noonmeeminitialarabic",64725,"noonmeemisolatedarabic",64590,"noonnoonfinalarabic",64653,"notcontains",8716,"notelement",8713,"notelementof",8713,"notequal",8800,"notgreater",8815,"notgreaternorequal",8817,"notgreaternorless",8825,"notidentical",8802,"notless",8814,"notlessnorequal",8816,"notparallel",8742,"notprecedes",8832,"notsubset",8836,"notsucceeds",8833,"notsuperset",8837,"nowarmenian",1398,"nparen",9385,"nssquare",13233,"nsuperior",8319,"ntilde",241,"nu",957,"nuhiragana",12396,"nukatakana",12492,"nukatakanahalfwidth",65415,"nuktabengali",2492,"nuktadeva",2364,"nuktagujarati",2748,"nuktagurmukhi",2620,"numbersign",35,"numbersignmonospace",65283,"numbersignsmall",65119,"numeralsigngreek",884,"numeralsignlowergreek",885,"numero",8470,"nun",1504,"nundagesh",64320,"nundageshhebrew",64320,"nunhebrew",1504,"nvsquare",13237,"nwsquare",13243,"nyabengali",2462,"nyadeva",2334,"nyagujarati",2718,"nyagurmukhi",2590,"o",111,"oacute",243,"oangthai",3629,"obarred",629,"obarredcyrillic",1257,"obarreddieresiscyrillic",1259,"obengali",2451,"obopomofo",12571,"obreve",335,"ocandradeva",2321,"ocandragujarati",2705,"ocandravowelsigndeva",2377,"ocandravowelsigngujarati",2761,"ocaron",466,"ocircle",9438,"ocircumflex",244,"ocircumflexacute",7889,"ocircumflexdotbelow",7897,"ocircumflexgrave",7891,"ocircumflexhookabove",7893,"ocircumflextilde",7895,"ocyrillic",1086,"odblacute",337,"odblgrave",525,"odeva",2323,"odieresis",246,"odieresiscyrillic",1255,"odotbelow",7885,"oe",339,"oekorean",12634,"ogonek",731,"ogonekcmb",808,"ograve",242,"ogujarati",2707,"oharmenian",1413,"ohiragana",12362,"ohookabove",7887,"ohorn",417,"ohornacute",7899,"ohorndotbelow",7907,"ohorngrave",7901,"ohornhookabove",7903,"ohorntilde",7905,"ohungarumlaut",337,"oi",419,"oinvertedbreve",527,"okatakana",12458,"okatakanahalfwidth",65397,"okorean",12631,"olehebrew",1451,"omacron",333,"omacronacute",7763,"omacrongrave",7761,"omdeva",2384,"omega",969,"omega1",982,"omegacyrillic",1121,"omegalatinclosed",631,"omegaroundcyrillic",1147,"omegatitlocyrillic",1149,"omegatonos",974,"omgujarati",2768,"omicron",959,"omicrontonos",972,"omonospace",65359,"one",49,"onearabic",1633,"onebengali",2535,"onecircle",9312,"onecircleinversesansserif",10122,"onedeva",2407,"onedotenleader",8228,"oneeighth",8539,"onefitted",63196,"onegujarati",2791,"onegurmukhi",2663,"onehackarabic",1633,"onehalf",189,"onehangzhou",12321,"oneideographicparen",12832,"oneinferior",8321,"onemonospace",65297,"onenumeratorbengali",2548,"oneoldstyle",63281,"oneparen",9332,"oneperiod",9352,"onepersian",1777,"onequarter",188,"oneroman",8560,"onesuperior",185,"onethai",3665,"onethird",8531,"oogonek",491,"oogonekmacron",493,"oogurmukhi",2579,"oomatragurmukhi",2635,"oopen",596,"oparen",9386,"openbullet",9702,"option",8997,"ordfeminine",170,"ordmasculine",186,"orthogonal",8735,"oshortdeva",2322,"oshortvowelsigndeva",2378,"oslash",248,"oslashacute",511,"osmallhiragana",12361,"osmallkatakana",12457,"osmallkatakanahalfwidth",65387,"ostrokeacute",511,"osuperior",63216,"otcyrillic",1151,"otilde",245,"otildeacute",7757,"otildedieresis",7759,"oubopomofo",12577,"overline",8254,"overlinecenterline",65098,"overlinecmb",773,"overlinedashed",65097,"overlinedblwavy",65100,"overlinewavy",65099,"overscore",175,"ovowelsignbengali",2507,"ovowelsigndeva",2379,"ovowelsigngujarati",2763,"p",112,"paampssquare",13184,"paasentosquare",13099,"pabengali",2474,"pacute",7765,"padeva",2346,"pagedown",8671,"pageup",8670,"pagujarati",2730,"pagurmukhi",2602,"pahiragana",12401,"paiyannoithai",3631,"pakatakana",12497,"palatalizationcyrilliccmb",1156,"palochkacyrillic",1216,"pansioskorean",12671,"paragraph",182,"parallel",8741,"parenleft",40,"parenleftaltonearabic",64830,"parenleftbt",63725,"parenleftex",63724,"parenleftinferior",8333,"parenleftmonospace",65288,"parenleftsmall",65113,"parenleftsuperior",8317,"parenlefttp",63723,"parenleftvertical",65077,"parenright",41,"parenrightaltonearabic",64831,"parenrightbt",63736,"parenrightex",63735,"parenrightinferior",8334,"parenrightmonospace",65289,"parenrightsmall",65114,"parenrightsuperior",8318,"parenrighttp",63734,"parenrightvertical",65078,"partialdiff",8706,"paseqhebrew",1472,"pashtahebrew",1433,"pasquare",13225,"patah",1463,"patah11",1463,"patah1d",1463,"patah2a",1463,"patahhebrew",1463,"patahnarrowhebrew",1463,"patahquarterhebrew",1463,"patahwidehebrew",1463,"pazerhebrew",1441,"pbopomofo",12550,"pcircle",9439,"pdotaccent",7767,"pe",1508,"pecyrillic",1087,"pedagesh",64324,"pedageshhebrew",64324,"peezisquare",13115,"pefinaldageshhebrew",64323,"peharabic",1662,"peharmenian",1402,"pehebrew",1508,"pehfinalarabic",64343,"pehinitialarabic",64344,"pehiragana",12410,"pehmedialarabic",64345,"pekatakana",12506,"pemiddlehookcyrillic",1191,"perafehebrew",64334,"percent",37,"percentarabic",1642,"percentmonospace",65285,"percentsmall",65130,"period",46,"periodarmenian",1417,"periodcentered",183,"periodhalfwidth",65377,"periodinferior",63207,"periodmonospace",65294,"periodsmall",65106,"periodsuperior",63208,"perispomenigreekcmb",834,"perpendicular",8869,"perthousand",8240,"peseta",8359,"pfsquare",13194,"phabengali",2475,"phadeva",2347,"phagujarati",2731,"phagurmukhi",2603,"phi",966,"phi1",981,"phieuphacirclekorean",12922,"phieuphaparenkorean",12826,"phieuphcirclekorean",12908,"phieuphkorean",12621,"phieuphparenkorean",12812,"philatin",632,"phinthuthai",3642,"phisymbolgreek",981,"phook",421,"phophanthai",3614,"phophungthai",3612,"phosamphaothai",3616,"pi",960,"pieupacirclekorean",12915,"pieupaparenkorean",12819,"pieupcieuckorean",12662,"pieupcirclekorean",12901,"pieupkiyeokkorean",12658,"pieupkorean",12610,"pieupparenkorean",12805,"pieupsioskiyeokkorean",12660,"pieupsioskorean",12612,"pieupsiostikeutkorean",12661,"pieupthieuthkorean",12663,"pieuptikeutkorean",12659,"pihiragana",12404,"pikatakana",12500,"pisymbolgreek",982,"piwrarmenian",1411,"plus",43,"plusbelowcmb",799,"pluscircle",8853,"plusminus",177,"plusmod",726,"plusmonospace",65291,"plussmall",65122,"plussuperior",8314,"pmonospace",65360,"pmsquare",13272,"pohiragana",12413,"pointingindexdownwhite",9759,"pointingindexleftwhite",9756,"pointingindexrightwhite",9758,"pointingindexupwhite",9757,"pokatakana",12509,"poplathai",3611,"postalmark",12306,"postalmarkface",12320,"pparen",9387,"precedes",8826,"prescription",8478,"primemod",697,"primereversed",8245,"product",8719,"projective",8965,"prolongedkana",12540,"propellor",8984,"propersubset",8834,"propersuperset",8835,"proportion",8759,"proportional",8733,"psi",968,"psicyrillic",1137,"psilipneumatacyrilliccmb",1158,"pssquare",13232,"puhiragana",12407,"pukatakana",12503,"pvsquare",13236,"pwsquare",13242,"q",113,"qadeva",2392,"qadmahebrew",1448,"qafarabic",1602,"qaffinalarabic",65238,"qafinitialarabic",65239,"qafmedialarabic",65240,"qamats",1464,"qamats10",1464,"qamats1a",1464,"qamats1c",1464,"qamats27",1464,"qamats29",1464,"qamats33",1464,"qamatsde",1464,"qamatshebrew",1464,"qamatsnarrowhebrew",1464,"qamatsqatanhebrew",1464,"qamatsqatannarrowhebrew",1464,"qamatsqatanquarterhebrew",1464,"qamatsqatanwidehebrew",1464,"qamatsquarterhebrew",1464,"qamatswidehebrew",1464,"qarneyparahebrew",1439,"qbopomofo",12561,"qcircle",9440,"qhook",672,"qmonospace",65361,"qof",1511,"qofdagesh",64327,"qofdageshhebrew",64327,"qofhebrew",1511,"qparen",9388,"quarternote",9833,"qubuts",1467,"qubuts18",1467,"qubuts25",1467,"qubuts31",1467,"qubutshebrew",1467,"qubutsnarrowhebrew",1467,"qubutsquarterhebrew",1467,"qubutswidehebrew",1467,"question",63,"questionarabic",1567,"questionarmenian",1374,"questiondown",191,"questiondownsmall",63423,"questiongreek",894,"questionmonospace",65311,"questionsmall",63295,"quotedbl",34,"quotedblbase",8222,"quotedblleft",8220,"quotedblmonospace",65282,"quotedblprime",12318,"quotedblprimereversed",12317,"quotedblright",8221,"quoteleft",8216,"quoteleftreversed",8219,"quotereversed",8219,"quoteright",8217,"quoterightn",329,"quotesinglbase",8218,"quotesingle",39,"quotesinglemonospace",65287,"r",114,"raarmenian",1404,"rabengali",2480,"racute",341,"radeva",2352,"radical",8730,"radicalex",63717,"radoverssquare",13230,"radoverssquaredsquare",13231,"radsquare",13229,"rafe",1471,"rafehebrew",1471,"ragujarati",2736,"ragurmukhi",2608,"rahiragana",12425,"rakatakana",12521,"rakatakanahalfwidth",65431,"ralowerdiagonalbengali",2545,"ramiddlediagonalbengali",2544,"ramshorn",612,"ratio",8758,"rbopomofo",12566,"rcaron",345,"rcedilla",343,"rcircle",9441,"rcommaaccent",343,"rdblgrave",529,"rdotaccent",7769,"rdotbelow",7771,"rdotbelowmacron",7773,"referencemark",8251,"reflexsubset",8838,"reflexsuperset",8839,"registered",174,"registersans",63720,"registerserif",63194,"reharabic",1585,"reharmenian",1408,"rehfinalarabic",65198,"rehiragana",12428,"rekatakana",12524,"rekatakanahalfwidth",65434,"resh",1512,"reshdageshhebrew",64328,"reshhebrew",1512,"reversedtilde",8765,"reviahebrew",1431,"reviamugrashhebrew",1431,"revlogicalnot",8976,"rfishhook",638,"rfishhookreversed",639,"rhabengali",2525,"rhadeva",2397,"rho",961,"rhook",637,"rhookturned",635,"rhookturnedsuperior",693,"rhosymbolgreek",1009,"rhotichookmod",734,"rieulacirclekorean",12913,"rieulaparenkorean",12817,"rieulcirclekorean",12899,"rieulhieuhkorean",12608,"rieulkiyeokkorean",12602,"rieulkiyeoksioskorean",12649,"rieulkorean",12601,"rieulmieumkorean",12603,"rieulpansioskorean",12652,"rieulparenkorean",12803,"rieulphieuphkorean",12607,"rieulpieupkorean",12604,"rieulpieupsioskorean",12651,"rieulsioskorean",12605,"rieulthieuthkorean",12606,"rieultikeutkorean",12650,"rieulyeorinhieuhkorean",12653,"rightangle",8735,"righttackbelowcmb",793,"righttriangle",8895,"rihiragana",12426,"rikatakana",12522,"rikatakanahalfwidth",65432,"ring",730,"ringbelowcmb",805,"ringcmb",778,"ringhalfleft",703,"ringhalfleftarmenian",1369,"ringhalfleftbelowcmb",796,"ringhalfleftcentered",723,"ringhalfright",702,"ringhalfrightbelowcmb",825,"ringhalfrightcentered",722,"rinvertedbreve",531,"rittorusquare",13137,"rlinebelow",7775,"rlongleg",636,"rlonglegturned",634,"rmonospace",65362,"rohiragana",12429,"rokatakana",12525,"rokatakanahalfwidth",65435,"roruathai",3619,"rparen",9389,"rrabengali",2524,"rradeva",2353,"rragurmukhi",2652,"rreharabic",1681,"rrehfinalarabic",64397,"rrvocalicbengali",2528,"rrvocalicdeva",2400,"rrvocalicgujarati",2784,"rrvocalicvowelsignbengali",2500,"rrvocalicvowelsigndeva",2372,"rrvocalicvowelsigngujarati",2756,"rsuperior",63217,"rtblock",9616,"rturned",633,"rturnedsuperior",692,"ruhiragana",12427,"rukatakana",12523,"rukatakanahalfwidth",65433,"rupeemarkbengali",2546,"rupeesignbengali",2547,"rupiah",63197,"ruthai",3620,"rvocalicbengali",2443,"rvocalicdeva",2315,"rvocalicgujarati",2699,"rvocalicvowelsignbengali",2499,"rvocalicvowelsigndeva",2371,"rvocalicvowelsigngujarati",2755,"s",115,"sabengali",2488,"sacute",347,"sacutedotaccent",7781,"sadarabic",1589,"sadeva",2360,"sadfinalarabic",65210,"sadinitialarabic",65211,"sadmedialarabic",65212,"sagujarati",2744,"sagurmukhi",2616,"sahiragana",12373,"sakatakana",12469,"sakatakanahalfwidth",65403,"sallallahoualayhewasallamarabic",65018,"samekh",1505,"samekhdagesh",64321,"samekhdageshhebrew",64321,"samekhhebrew",1505,"saraaathai",3634,"saraaethai",3649,"saraaimaimalaithai",3652,"saraaimaimuanthai",3651,"saraamthai",3635,"saraathai",3632,"saraethai",3648,"saraiileftthai",63622,"saraiithai",3637,"saraileftthai",63621,"saraithai",3636,"saraothai",3650,"saraueeleftthai",63624,"saraueethai",3639,"saraueleftthai",63623,"sarauethai",3638,"sarauthai",3640,"sarauuthai",3641,"sbopomofo",12569,"scaron",353,"scarondotaccent",7783,"scedilla",351,"schwa",601,"schwacyrillic",1241,"schwadieresiscyrillic",1243,"schwahook",602,"scircle",9442,"scircumflex",349,"scommaaccent",537,"sdotaccent",7777,"sdotbelow",7779,"sdotbelowdotaccent",7785,"seagullbelowcmb",828,"second",8243,"secondtonechinese",714,"section",167,"seenarabic",1587,"seenfinalarabic",65202,"seeninitialarabic",65203,"seenmedialarabic",65204,"segol",1462,"segol13",1462,"segol1f",1462,"segol2c",1462,"segolhebrew",1462,"segolnarrowhebrew",1462,"segolquarterhebrew",1462,"segoltahebrew",1426,"segolwidehebrew",1462,"seharmenian",1405,"sehiragana",12379,"sekatakana",12475,"sekatakanahalfwidth",65406,"semicolon",59,"semicolonarabic",1563,"semicolonmonospace",65307,"semicolonsmall",65108,"semivoicedmarkkana",12444,"semivoicedmarkkanahalfwidth",65439,"sentisquare",13090,"sentosquare",13091,"seven",55,"sevenarabic",1639,"sevenbengali",2541,"sevencircle",9318,"sevencircleinversesansserif",10128,"sevendeva",2413,"seveneighths",8542,"sevengujarati",2797,"sevengurmukhi",2669,"sevenhackarabic",1639,"sevenhangzhou",12327,"sevenideographicparen",12838,"seveninferior",8327,"sevenmonospace",65303,"sevenoldstyle",63287,"sevenparen",9338,"sevenperiod",9358,"sevenpersian",1783,"sevenroman",8566,"sevensuperior",8311,"seventeencircle",9328,"seventeenparen",9348,"seventeenperiod",9368,"seventhai",3671,"sfthyphen",173,"shaarmenian",1399,"shabengali",2486,"shacyrillic",1096,"shaddaarabic",1617,"shaddadammaarabic",64609,"shaddadammatanarabic",64606,"shaddafathaarabic",64608,"shaddakasraarabic",64610,"shaddakasratanarabic",64607,"shade",9618,"shadedark",9619,"shadelight",9617,"shademedium",9618,"shadeva",2358,"shagujarati",2742,"shagurmukhi",2614,"shalshelethebrew",1427,"shbopomofo",12565,"shchacyrillic",1097,"sheenarabic",1588,"sheenfinalarabic",65206,"sheeninitialarabic",65207,"sheenmedialarabic",65208,"sheicoptic",995,"sheqel",8362,"sheqelhebrew",8362,"sheva",1456,"sheva115",1456,"sheva15",1456,"sheva22",1456,"sheva2e",1456,"shevahebrew",1456,"shevanarrowhebrew",1456,"shevaquarterhebrew",1456,"shevawidehebrew",1456,"shhacyrillic",1211,"shimacoptic",1005,"shin",1513,"shindagesh",64329,"shindageshhebrew",64329,"shindageshshindot",64300,"shindageshshindothebrew",64300,"shindageshsindot",64301,"shindageshsindothebrew",64301,"shindothebrew",1473,"shinhebrew",1513,"shinshindot",64298,"shinshindothebrew",64298,"shinsindot",64299,"shinsindothebrew",64299,"shook",642,"sigma",963,"sigma1",962,"sigmafinal",962,"sigmalunatesymbolgreek",1010,"sihiragana",12375,"sikatakana",12471,"sikatakanahalfwidth",65404,"siluqhebrew",1469,"siluqlefthebrew",1469,"similar",8764,"sindothebrew",1474,"siosacirclekorean",12916,"siosaparenkorean",12820,"sioscieuckorean",12670,"sioscirclekorean",12902,"sioskiyeokkorean",12666,"sioskorean",12613,"siosnieunkorean",12667,"siosparenkorean",12806,"siospieupkorean",12669,"siostikeutkorean",12668,"six",54,"sixarabic",1638,"sixbengali",2540,"sixcircle",9317,"sixcircleinversesansserif",10127,"sixdeva",2412,"sixgujarati",2796,"sixgurmukhi",2668,"sixhackarabic",1638,"sixhangzhou",12326,"sixideographicparen",12837,"sixinferior",8326,"sixmonospace",65302,"sixoldstyle",63286,"sixparen",9337,"sixperiod",9357,"sixpersian",1782,"sixroman",8565,"sixsuperior",8310,"sixteencircle",9327,"sixteencurrencydenominatorbengali",2553,"sixteenparen",9347,"sixteenperiod",9367,"sixthai",3670,"slash",47,"slashmonospace",65295,"slong",383,"slongdotaccent",7835,"smileface",9786,"smonospace",65363,"sofpasuqhebrew",1475,"softhyphen",173,"softsigncyrillic",1100,"sohiragana",12381,"sokatakana",12477,"sokatakanahalfwidth",65407,"soliduslongoverlaycmb",824,"solidusshortoverlaycmb",823,"sorusithai",3625,"sosalathai",3624,"sosothai",3595,"sosuathai",3626,"space",32,"spacehackarabic",32,"spade",9824,"spadesuitblack",9824,"spadesuitwhite",9828,"sparen",9390,"squarebelowcmb",827,"squarecc",13252,"squarecm",13213,"squarediagonalcrosshatchfill",9641,"squarehorizontalfill",9636,"squarekg",13199,"squarekm",13214,"squarekmcapital",13262,"squareln",13265,"squarelog",13266,"squaremg",13198,"squaremil",13269,"squaremm",13212,"squaremsquared",13217,"squareorthogonalcrosshatchfill",9638,"squareupperlefttolowerrightfill",9639,"squareupperrighttolowerleftfill",9640,"squareverticalfill",9637,"squarewhitewithsmallblack",9635,"srsquare",13275,"ssabengali",2487,"ssadeva",2359,"ssagujarati",2743,"ssangcieuckorean",12617,"ssanghieuhkorean",12677,"ssangieungkorean",12672,"ssangkiyeokkorean",12594,"ssangnieunkorean",12645,"ssangpieupkorean",12611,"ssangsioskorean",12614,"ssangtikeutkorean",12600,"ssuperior",63218,"sterling",163,"sterlingmonospace",65505,"strokelongoverlaycmb",822,"strokeshortoverlaycmb",821,"subset",8834,"subsetnotequal",8842,"subsetorequal",8838,"succeeds",8827,"suchthat",8715,"suhiragana",12377,"sukatakana",12473,"sukatakanahalfwidth",65405,"sukunarabic",1618,"summation",8721,"sun",9788,"superset",8835,"supersetnotequal",8843,"supersetorequal",8839,"svsquare",13276,"syouwaerasquare",13180,"t",116,"tabengali",2468,"tackdown",8868,"tackleft",8867,"tadeva",2340,"tagujarati",2724,"tagurmukhi",2596,"taharabic",1591,"tahfinalarabic",65218,"tahinitialarabic",65219,"tahiragana",12383,"tahmedialarabic",65220,"taisyouerasquare",13181,"takatakana",12479,"takatakanahalfwidth",65408,"tatweelarabic",1600,"tau",964,"tav",1514,"tavdages",64330,"tavdagesh",64330,"tavdageshhebrew",64330,"tavhebrew",1514,"tbar",359,"tbopomofo",12554,"tcaron",357,"tccurl",680,"tcedilla",355,"tcheharabic",1670,"tchehfinalarabic",64379,"tchehinitialarabic",64380,"tchehmedialarabic",64381,"tcircle",9443,"tcircumflexbelow",7793,"tcommaaccent",355,"tdieresis",7831,"tdotaccent",7787,"tdotbelow",7789,"tecyrillic",1090,"tedescendercyrillic",1197,"teharabic",1578,"tehfinalarabic",65174,"tehhahinitialarabic",64674,"tehhahisolatedarabic",64524,"tehinitialarabic",65175,"tehiragana",12390,"tehjeeminitialarabic",64673,"tehjeemisolatedarabic",64523,"tehmarbutaarabic",1577,"tehmarbutafinalarabic",65172,"tehmedialarabic",65176,"tehmeeminitialarabic",64676,"tehmeemisolatedarabic",64526,"tehnoonfinalarabic",64627,"tekatakana",12486,"tekatakanahalfwidth",65411,"telephone",8481,"telephoneblack",9742,"telishagedolahebrew",1440,"telishaqetanahebrew",1449,"tencircle",9321,"tenideographicparen",12841,"tenparen",9341,"tenperiod",9361,"tenroman",8569,"tesh",679,"tet",1496,"tetdagesh",64312,"tetdageshhebrew",64312,"tethebrew",1496,"tetsecyrillic",1205,"tevirhebrew",1435,"tevirlefthebrew",1435,"thabengali",2469,"thadeva",2341,"thagujarati",2725,"thagurmukhi",2597,"thalarabic",1584,"thalfinalarabic",65196,"thanthakhatlowleftthai",63640,"thanthakhatlowrightthai",63639,"thanthakhatthai",3660,"thanthakhatupperleftthai",63638,"theharabic",1579,"thehfinalarabic",65178,"thehinitialarabic",65179,"thehmedialarabic",65180,"thereexists",8707,"therefore",8756,"theta",952,"theta1",977,"thetasymbolgreek",977,"thieuthacirclekorean",12921,"thieuthaparenkorean",12825,"thieuthcirclekorean",12907,"thieuthkorean",12620,"thieuthparenkorean",12811,"thirteencircle",9324,"thirteenparen",9344,"thirteenperiod",9364,"thonangmonthothai",3601,"thook",429,"thophuthaothai",3602,"thorn",254,"thothahanthai",3607,"thothanthai",3600,"thothongthai",3608,"thothungthai",3606,"thousandcyrillic",1154,"thousandsseparatorarabic",1644,"thousandsseparatorpersian",1644,"three",51,"threearabic",1635,"threebengali",2537,"threecircle",9314,"threecircleinversesansserif",10124,"threedeva",2409,"threeeighths",8540,"threegujarati",2793,"threegurmukhi",2665,"threehackarabic",1635,"threehangzhou",12323,"threeideographicparen",12834,"threeinferior",8323,"threemonospace",65299,"threenumeratorbengali",2550,"threeoldstyle",63283,"threeparen",9334,"threeperiod",9354,"threepersian",1779,"threequarters",190,"threequartersemdash",63198,"threeroman",8562,"threesuperior",179,"threethai",3667,"thzsquare",13204,"tihiragana",12385,"tikatakana",12481,"tikatakanahalfwidth",65409,"tikeutacirclekorean",12912,"tikeutaparenkorean",12816,"tikeutcirclekorean",12898,"tikeutkorean",12599,"tikeutparenkorean",12802,"tilde",732,"tildebelowcmb",816,"tildecmb",771,"tildecomb",771,"tildedoublecmb",864,"tildeoperator",8764,"tildeoverlaycmb",820,"tildeverticalcmb",830,"timescircle",8855,"tipehahebrew",1430,"tipehalefthebrew",1430,"tippigurmukhi",2672,"titlocyrilliccmb",1155,"tiwnarmenian",1407,"tlinebelow",7791,"tmonospace",65364,"toarmenian",1385,"tohiragana",12392,"tokatakana",12488,"tokatakanahalfwidth",65412,"tonebarextrahighmod",741,"tonebarextralowmod",745,"tonebarhighmod",742,"tonebarlowmod",744,"tonebarmidmod",743,"tonefive",445,"tonesix",389,"tonetwo",424,"tonos",900,"tonsquare",13095,"topatakthai",3599,"tortoiseshellbracketleft",12308,"tortoiseshellbracketleftsmall",65117,"tortoiseshellbracketleftvertical",65081,"tortoiseshellbracketright",12309,"tortoiseshellbracketrightsmall",65118,"tortoiseshellbracketrightvertical",65082,"totaothai",3605,"tpalatalhook",427,"tparen",9391,"trademark",8482,"trademarksans",63722,"trademarkserif",63195,"tretroflexhook",648,"triagdn",9660,"triaglf",9668,"triagrt",9658,"triagup",9650,"ts",678,"tsadi",1510,"tsadidagesh",64326,"tsadidageshhebrew",64326,"tsadihebrew",1510,"tsecyrillic",1094,"tsere",1461,"tsere12",1461,"tsere1e",1461,"tsere2b",1461,"tserehebrew",1461,"tserenarrowhebrew",1461,"tserequarterhebrew",1461,"tserewidehebrew",1461,"tshecyrillic",1115,"tsuperior",63219,"ttabengali",2463,"ttadeva",2335,"ttagujarati",2719,"ttagurmukhi",2591,"tteharabic",1657,"ttehfinalarabic",64359,"ttehinitialarabic",64360,"ttehmedialarabic",64361,"tthabengali",2464,"tthadeva",2336,"tthagujarati",2720,"tthagurmukhi",2592,"tturned",647,"tuhiragana",12388,"tukatakana",12484,"tukatakanahalfwidth",65410,"tusmallhiragana",12387,"tusmallkatakana",12483,"tusmallkatakanahalfwidth",65391,"twelvecircle",9323,"twelveparen",9343,"twelveperiod",9363,"twelveroman",8571,"twentycircle",9331,"twentyhangzhou",21316,"twentyparen",9351,"twentyperiod",9371,"two",50,"twoarabic",1634,"twobengali",2536,"twocircle",9313,"twocircleinversesansserif",10123,"twodeva",2408,"twodotenleader",8229,"twodotleader",8229,"twodotleadervertical",65072,"twogujarati",2792,"twogurmukhi",2664,"twohackarabic",1634,"twohangzhou",12322,"twoideographicparen",12833,"twoinferior",8322,"twomonospace",65298,"twonumeratorbengali",2549,"twooldstyle",63282,"twoparen",9333,"twoperiod",9353,"twopersian",1778,"tworoman",8561,"twostroke",443,"twosuperior",178,"twothai",3666,"twothirds",8532,"u",117,"uacute",250,"ubar",649,"ubengali",2441,"ubopomofo",12584,"ubreve",365,"ucaron",468,"ucircle",9444,"ucircumflex",251,"ucircumflexbelow",7799,"ucyrillic",1091,"udattadeva",2385,"udblacute",369,"udblgrave",533,"udeva",2313,"udieresis",252,"udieresisacute",472,"udieresisbelow",7795,"udieresiscaron",474,"udieresiscyrillic",1265,"udieresisgrave",476,"udieresismacron",470,"udotbelow",7909,"ugrave",249,"ugujarati",2697,"ugurmukhi",2569,"uhiragana",12358,"uhookabove",7911,"uhorn",432,"uhornacute",7913,"uhorndotbelow",7921,"uhorngrave",7915,"uhornhookabove",7917,"uhorntilde",7919,"uhungarumlaut",369,"uhungarumlautcyrillic",1267,"uinvertedbreve",535,"ukatakana",12454,"ukatakanahalfwidth",65395,"ukcyrillic",1145,"ukorean",12636,"umacron",363,"umacroncyrillic",1263,"umacrondieresis",7803,"umatragurmukhi",2625,"umonospace",65365,"underscore",95,"underscoredbl",8215,"underscoremonospace",65343,"underscorevertical",65075,"underscorewavy",65103,"union",8746,"universal",8704,"uogonek",371,"uparen",9392,"upblock",9600,"upperdothebrew",1476,"upsilon",965,"upsilondieresis",971,"upsilondieresistonos",944,"upsilonlatin",650,"upsilontonos",973,"uptackbelowcmb",797,"uptackmod",724,"uragurmukhi",2675,"uring",367,"ushortcyrillic",1118,"usmallhiragana",12357,"usmallkatakana",12453,"usmallkatakanahalfwidth",65385,"ustraightcyrillic",1199,"ustraightstrokecyrillic",1201,"utilde",361,"utildeacute",7801,"utildebelow",7797,"uubengali",2442,"uudeva",2314,"uugujarati",2698,"uugurmukhi",2570,"uumatragurmukhi",2626,"uuvowelsignbengali",2498,"uuvowelsigndeva",2370,"uuvowelsigngujarati",2754,"uvowelsignbengali",2497,"uvowelsigndeva",2369,"uvowelsigngujarati",2753,"v",118,"vadeva",2357,"vagujarati",2741,"vagurmukhi",2613,"vakatakana",12535,"vav",1493,"vavdagesh",64309,"vavdagesh65",64309,"vavdageshhebrew",64309,"vavhebrew",1493,"vavholam",64331,"vavholamhebrew",64331,"vavvavhebrew",1520,"vavyodhebrew",1521,"vcircle",9445,"vdotbelow",7807,"vecyrillic",1074,"veharabic",1700,"vehfinalarabic",64363,"vehinitialarabic",64364,"vehmedialarabic",64365,"vekatakana",12537,"venus",9792,"verticalbar",124,"verticallineabovecmb",781,"verticallinebelowcmb",809,"verticallinelowmod",716,"verticallinemod",712,"vewarmenian",1406,"vhook",651,"vikatakana",12536,"viramabengali",2509,"viramadeva",2381,"viramagujarati",2765,"visargabengali",2435,"visargadeva",2307,"visargagujarati",2691,"vmonospace",65366,"voarmenian",1400,"voicediterationhiragana",12446,"voicediterationkatakana",12542,"voicedmarkkana",12443,"voicedmarkkanahalfwidth",65438,"vokatakana",12538,"vparen",9393,"vtilde",7805,"vturned",652,"vuhiragana",12436,"vukatakana",12532,"w",119,"wacute",7811,"waekorean",12633,"wahiragana",12431,"wakatakana",12527,"wakatakanahalfwidth",65436,"wakorean",12632,"wasmallhiragana",12430,"wasmallkatakana",12526,"wattosquare",13143,"wavedash",12316,"wavyunderscorevertical",65076,"wawarabic",1608,"wawfinalarabic",65262,"wawhamzaabovearabic",1572,"wawhamzaabovefinalarabic",65158,"wbsquare",13277,"wcircle",9446,"wcircumflex",373,"wdieresis",7813,"wdotaccent",7815,"wdotbelow",7817,"wehiragana",12433,"weierstrass",8472,"wekatakana",12529,"wekorean",12638,"weokorean",12637,"wgrave",7809,"whitebullet",9702,"whitecircle",9675,"whitecircleinverse",9689,"whitecornerbracketleft",12302,"whitecornerbracketleftvertical",65091,"whitecornerbracketright",12303,"whitecornerbracketrightvertical",65092,"whitediamond",9671,"whitediamondcontainingblacksmalldiamond",9672,"whitedownpointingsmalltriangle",9663,"whitedownpointingtriangle",9661,"whiteleftpointingsmalltriangle",9667,"whiteleftpointingtriangle",9665,"whitelenticularbracketleft",12310,"whitelenticularbracketright",12311,"whiterightpointingsmalltriangle",9657,"whiterightpointingtriangle",9655,"whitesmallsquare",9643,"whitesmilingface",9786,"whitesquare",9633,"whitestar",9734,"whitetelephone",9743,"whitetortoiseshellbracketleft",12312,"whitetortoiseshellbracketright",12313,"whiteuppointingsmalltriangle",9653,"whiteuppointingtriangle",9651,"wihiragana",12432,"wikatakana",12528,"wikorean",12639,"wmonospace",65367,"wohiragana",12434,"wokatakana",12530,"wokatakanahalfwidth",65382,"won",8361,"wonmonospace",65510,"wowaenthai",3623,"wparen",9394,"wring",7832,"wsuperior",695,"wturned",653,"wynn",447,"x",120,"xabovecmb",829,"xbopomofo",12562,"xcircle",9447,"xdieresis",7821,"xdotaccent",7819,"xeharmenian",1389,"xi",958,"xmonospace",65368,"xparen",9395,"xsuperior",739,"y",121,"yaadosquare",13134,"yabengali",2479,"yacute",253,"yadeva",2351,"yaekorean",12626,"yagujarati",2735,"yagurmukhi",2607,"yahiragana",12420,"yakatakana",12516,"yakatakanahalfwidth",65428,"yakorean",12625,"yamakkanthai",3662,"yasmallhiragana",12419,"yasmallkatakana",12515,"yasmallkatakanahalfwidth",65388,"yatcyrillic",1123,"ycircle",9448,"ycircumflex",375,"ydieresis",255,"ydotaccent",7823,"ydotbelow",7925,"yeharabic",1610,"yehbarreearabic",1746,"yehbarreefinalarabic",64431,"yehfinalarabic",65266,"yehhamzaabovearabic",1574,"yehhamzaabovefinalarabic",65162,"yehhamzaaboveinitialarabic",65163,"yehhamzaabovemedialarabic",65164,"yehinitialarabic",65267,"yehmedialarabic",65268,"yehmeeminitialarabic",64733,"yehmeemisolatedarabic",64600,"yehnoonfinalarabic",64660,"yehthreedotsbelowarabic",1745,"yekorean",12630,"yen",165,"yenmonospace",65509,"yeokorean",12629,"yeorinhieuhkorean",12678,"yerahbenyomohebrew",1450,"yerahbenyomolefthebrew",1450,"yericyrillic",1099,"yerudieresiscyrillic",1273,"yesieungkorean",12673,"yesieungpansioskorean",12675,"yesieungsioskorean",12674,"yetivhebrew",1434,"ygrave",7923,"yhook",436,"yhookabove",7927,"yiarmenian",1397,"yicyrillic",1111,"yikorean",12642,"yinyang",9775,"yiwnarmenian",1410,"ymonospace",65369,"yod",1497,"yoddagesh",64313,"yoddageshhebrew",64313,"yodhebrew",1497,"yodyodhebrew",1522,"yodyodpatahhebrew",64287,"yohiragana",12424,"yoikorean",12681,"yokatakana",12520,"yokatakanahalfwidth",65430,"yokorean",12635,"yosmallhiragana",12423,"yosmallkatakana",12519,"yosmallkatakanahalfwidth",65390,"yotgreek",1011,"yoyaekorean",12680,"yoyakorean",12679,"yoyakthai",3618,"yoyingthai",3597,"yparen",9396,"ypogegrammeni",890,"ypogegrammenigreekcmb",837,"yr",422,"yring",7833,"ysuperior",696,"ytilde",7929,"yturned",654,"yuhiragana",12422,"yuikorean",12684,"yukatakana",12518,"yukatakanahalfwidth",65429,"yukorean",12640,"yusbigcyrillic",1131,"yusbigiotifiedcyrillic",1133,"yuslittlecyrillic",1127,"yuslittleiotifiedcyrillic",1129,"yusmallhiragana",12421,"yusmallkatakana",12517,"yusmallkatakanahalfwidth",65389,"yuyekorean",12683,"yuyeokorean",12682,"yyabengali",2527,"yyadeva",2399,"z",122,"zaarmenian",1382,"zacute",378,"zadeva",2395,"zagurmukhi",2651,"zaharabic",1592,"zahfinalarabic",65222,"zahinitialarabic",65223,"zahiragana",12374,"zahmedialarabic",65224,"zainarabic",1586,"zainfinalarabic",65200,"zakatakana",12470,"zaqefgadolhebrew",1429,"zaqefqatanhebrew",1428,"zarqahebrew",1432,"zayin",1494,"zayindagesh",64310,"zayindageshhebrew",64310,"zayinhebrew",1494,"zbopomofo",12567,"zcaron",382,"zcircle",9449,"zcircumflex",7825,"zcurl",657,"zdot",380,"zdotaccent",380,"zdotbelow",7827,"zecyrillic",1079,"zedescendercyrillic",1177,"zedieresiscyrillic",1247,"zehiragana",12380,"zekatakana",12476,"zero",48,"zeroarabic",1632,"zerobengali",2534,"zerodeva",2406,"zerogujarati",2790,"zerogurmukhi",2662,"zerohackarabic",1632,"zeroinferior",8320,"zeromonospace",65296,"zerooldstyle",63280,"zeropersian",1776,"zerosuperior",8304,"zerothai",3664,"zerowidthjoiner",65279,"zerowidthnonjoiner",8204,"zerowidthspace",8203,"zeta",950,"zhbopomofo",12563,"zhearmenian",1386,"zhebrevecyrillic",1218,"zhecyrillic",1078,"zhedescendercyrillic",1175,"zhedieresiscyrillic",1245,"zihiragana",12376,"zikatakana",12472,"zinorhebrew",1454,"zlinebelow",7829,"zmonospace",65370,"zohiragana",12382,"zokatakana",12478,"zparen",9397,"zretroflexhook",656,"zstroke",438,"zuhiragana",12378,"zukatakana",12474,".notdef",0,"angbracketleftbig",9001,"angbracketleftBig",9001,"angbracketleftbigg",9001,"angbracketleftBigg",9001,"angbracketrightBig",9002,"angbracketrightbig",9002,"angbracketrightBigg",9002,"angbracketrightbigg",9002,"arrowhookleft",8618,"arrowhookright",8617,"arrowlefttophalf",8636,"arrowleftbothalf",8637,"arrownortheast",8599,"arrownorthwest",8598,"arrowrighttophalf",8640,"arrowrightbothalf",8641,"arrowsoutheast",8600,"arrowsouthwest",8601,"backslashbig",8726,"backslashBig",8726,"backslashBigg",8726,"backslashbigg",8726,"bardbl",8214,"bracehtipdownleft",65079,"bracehtipdownright",65079,"bracehtipupleft",65080,"bracehtipupright",65080,"braceleftBig",123,"braceleftbig",123,"braceleftbigg",123,"braceleftBigg",123,"bracerightBig",125,"bracerightbig",125,"bracerightbigg",125,"bracerightBigg",125,"bracketleftbig",91,"bracketleftBig",91,"bracketleftbigg",91,"bracketleftBigg",91,"bracketrightBig",93,"bracketrightbig",93,"bracketrightbigg",93,"bracketrightBigg",93,"ceilingleftbig",8968,"ceilingleftBig",8968,"ceilingleftBigg",8968,"ceilingleftbigg",8968,"ceilingrightbig",8969,"ceilingrightBig",8969,"ceilingrightbigg",8969,"ceilingrightBigg",8969,"circledotdisplay",8857,"circledottext",8857,"circlemultiplydisplay",8855,"circlemultiplytext",8855,"circleplusdisplay",8853,"circleplustext",8853,"contintegraldisplay",8750,"contintegraltext",8750,"coproductdisplay",8720,"coproducttext",8720,"floorleftBig",8970,"floorleftbig",8970,"floorleftbigg",8970,"floorleftBigg",8970,"floorrightbig",8971,"floorrightBig",8971,"floorrightBigg",8971,"floorrightbigg",8971,"hatwide",770,"hatwider",770,"hatwidest",770,"intercal",7488,"integraldisplay",8747,"integraltext",8747,"intersectiondisplay",8898,"intersectiontext",8898,"logicalanddisplay",8743,"logicalandtext",8743,"logicalordisplay",8744,"logicalortext",8744,"parenleftBig",40,"parenleftbig",40,"parenleftBigg",40,"parenleftbigg",40,"parenrightBig",41,"parenrightbig",41,"parenrightBigg",41,"parenrightbigg",41,"prime",8242,"productdisplay",8719,"producttext",8719,"radicalbig",8730,"radicalBig",8730,"radicalBigg",8730,"radicalbigg",8730,"radicalbt",8730,"radicaltp",8730,"radicalvertex",8730,"slashbig",47,"slashBig",47,"slashBigg",47,"slashbigg",47,"summationdisplay",8721,"summationtext",8721,"tildewide",732,"tildewider",732,"tildewidest",732,"uniondisplay",8899,"unionmultidisplay",8846,"unionmultitext",8846,"unionsqdisplay",8852,"unionsqtext",8852,"uniontext",8899,"vextenddouble",8741,"vextendsingle",8739]})),i=(0,n.getArrayLookupTableFactory)((function(){return["space",32,"a1",9985,"a2",9986,"a202",9987,"a3",9988,"a4",9742,"a5",9990,"a119",9991,"a118",9992,"a117",9993,"a11",9755,"a12",9758,"a13",9996,"a14",9997,"a15",9998,"a16",9999,"a105",1e4,"a17",10001,"a18",10002,"a19",10003,"a20",10004,"a21",10005,"a22",10006,"a23",10007,"a24",10008,"a25",10009,"a26",10010,"a27",10011,"a28",10012,"a6",10013,"a7",10014,"a8",10015,"a9",10016,"a10",10017,"a29",10018,"a30",10019,"a31",10020,"a32",10021,"a33",10022,"a34",10023,"a35",9733,"a36",10025,"a37",10026,"a38",10027,"a39",10028,"a40",10029,"a41",10030,"a42",10031,"a43",10032,"a44",10033,"a45",10034,"a46",10035,"a47",10036,"a48",10037,"a49",10038,"a50",10039,"a51",10040,"a52",10041,"a53",10042,"a54",10043,"a55",10044,"a56",10045,"a57",10046,"a58",10047,"a59",10048,"a60",10049,"a61",10050,"a62",10051,"a63",10052,"a64",10053,"a65",10054,"a66",10055,"a67",10056,"a68",10057,"a69",10058,"a70",10059,"a71",9679,"a72",10061,"a73",9632,"a74",10063,"a203",10064,"a75",10065,"a204",10066,"a76",9650,"a77",9660,"a78",9670,"a79",10070,"a81",9687,"a82",10072,"a83",10073,"a84",10074,"a97",10075,"a98",10076,"a99",10077,"a100",10078,"a101",10081,"a102",10082,"a103",10083,"a104",10084,"a106",10085,"a107",10086,"a108",10087,"a112",9827,"a111",9830,"a110",9829,"a109",9824,"a120",9312,"a121",9313,"a122",9314,"a123",9315,"a124",9316,"a125",9317,"a126",9318,"a127",9319,"a128",9320,"a129",9321,"a130",10102,"a131",10103,"a132",10104,"a133",10105,"a134",10106,"a135",10107,"a136",10108,"a137",10109,"a138",10110,"a139",10111,"a140",10112,"a141",10113,"a142",10114,"a143",10115,"a144",10116,"a145",10117,"a146",10118,"a147",10119,"a148",10120,"a149",10121,"a150",10122,"a151",10123,"a152",10124,"a153",10125,"a154",10126,"a155",10127,"a156",10128,"a157",10129,"a158",10130,"a159",10131,"a160",10132,"a161",8594,"a163",8596,"a164",8597,"a196",10136,"a165",10137,"a192",10138,"a166",10139,"a167",10140,"a168",10141,"a169",10142,"a170",10143,"a171",10144,"a172",10145,"a173",10146,"a162",10147,"a174",10148,"a175",10149,"a176",10150,"a177",10151,"a178",10152,"a179",10153,"a193",10154,"a180",10155,"a199",10156,"a181",10157,"a200",10158,"a182",10159,"a201",10161,"a183",10162,"a184",10163,"a197",10164,"a185",10165,"a194",10166,"a198",10167,"a186",10168,"a195",10169,"a187",10170,"a188",10171,"a189",10172,"a190",10173,"a191",10174,"a89",10088,"a90",10089,"a93",10090,"a94",10091,"a91",10092,"a92",10093,"a205",10094,"a85",10095,"a206",10096,"a86",10097,"a87",10098,"a88",10099,"a95",10100,"a96",10101,".notdef",0]}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getNormalizedUnicodes:()=>l,getUnicodeForGlyph:()=>o,getUnicodeRangeFor:()=>c,mapSpecialUnicodeValues:()=>i,reverseIfRtl:()=>u});var n=r(122);const a=(0,n.getLookupTableFactory)((function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120}));function i(e){return e>=65520&&e<=65535?0:e>=62976&&e<=63743?a()[e]||e:173===e?45:e}function o(e,t){let r=t[e];if(void 0!==r)return r;if(!e)return-1;if("u"===e[0]){const t=e.length;let n;if(7===t&&"n"===e[1]&&"i"===e[2])n=e.substring(3);else{if(!(t>=5&&t<=7))return-1;n=e.substring(1)}if(n===n.toUpperCase()&&(r=parseInt(n,16),r>=0))return r}return-1}const s=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];function c(e){for(let t=0,r=s.length;t<r;t++){const r=s[t];if(e>=r.begin&&e<r.end)return t}return-1}const l=(0,n.getArrayLookupTableFactory)((function(){return["¨"," ̈","¯"," ̄","´"," ́","µ","μ","¸"," ̧","IJ","IJ","ij","ij","Ŀ","L·","ŀ","l·","ʼn","ʼn","ſ","s","DŽ","DŽ","Dž","Dž","dž","dž","LJ","LJ","Lj","Lj","lj","lj","NJ","NJ","Nj","Nj","nj","nj","DZ","DZ","Dz","Dz","dz","dz","˘"," ̆","˙"," ̇","˚"," ̊","˛"," ̨","˜"," ̃","˝"," ̋","ͺ"," ͅ","΄"," ́","ϐ","β","ϑ","θ","ϒ","Υ","ϕ","φ","ϖ","π","ϰ","κ","ϱ","ρ","ϲ","ς","ϴ","Θ","ϵ","ε","Ϲ","Σ","և","եւ","ٵ","اٴ","ٶ","وٴ","ٷ","ۇٴ","ٸ","يٴ","ำ","ํา","ຳ","ໍາ","ໜ","ຫນ","ໝ","ຫມ","ཷ","ྲཱྀ","ཹ","ླཱྀ","ẚ","aʾ","᾽"," ̓","᾿"," ̓","῀"," ͂","῾"," ̔"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","‗"," ̳","․",".","‥","..","…","...","″","′′","‴","′′′","‶","‵‵","‷","‵‵‵","‼","!!","‾"," ̅","⁇","??","⁈","?!","⁉","!?","⁗","′′′′"," "," ","₨","Rs","℀","a/c","℁","a/s","℃","°C","℅","c/o","℆","c/u","ℇ","Ɛ","℉","°F","№","No","℡","TEL","ℵ","א","ℶ","ב","ℷ","ג","ℸ","ד","℻","FAX","Ⅰ","I","Ⅱ","II","Ⅲ","III","Ⅳ","IV","Ⅴ","V","Ⅵ","VI","Ⅶ","VII","Ⅷ","VIII","Ⅸ","IX","Ⅹ","X","Ⅺ","XI","Ⅻ","XII","Ⅼ","L","Ⅽ","C","Ⅾ","D","Ⅿ","M","ⅰ","i","ⅱ","ii","ⅲ","iii","ⅳ","iv","ⅴ","v","ⅵ","vi","ⅶ","vii","ⅷ","viii","ⅸ","ix","ⅹ","x","ⅺ","xi","ⅻ","xii","ⅼ","l","ⅽ","c","ⅾ","d","ⅿ","m","∬","∫∫","∭","∫∫∫","∯","∮∮","∰","∮∮∮","⑴","(1)","⑵","(2)","⑶","(3)","⑷","(4)","⑸","(5)","⑹","(6)","⑺","(7)","⑻","(8)","⑼","(9)","⑽","(10)","⑾","(11)","⑿","(12)","⒀","(13)","⒁","(14)","⒂","(15)","⒃","(16)","⒄","(17)","⒅","(18)","⒆","(19)","⒇","(20)","⒈","1.","⒉","2.","⒊","3.","⒋","4.","⒌","5.","⒍","6.","⒎","7.","⒏","8.","⒐","9.","⒑","10.","⒒","11.","⒓","12.","⒔","13.","⒕","14.","⒖","15.","⒗","16.","⒘","17.","⒙","18.","⒚","19.","⒛","20.","⒜","(a)","⒝","(b)","⒞","(c)","⒟","(d)","⒠","(e)","⒡","(f)","⒢","(g)","⒣","(h)","⒤","(i)","⒥","(j)","⒦","(k)","⒧","(l)","⒨","(m)","⒩","(n)","⒪","(o)","⒫","(p)","⒬","(q)","⒭","(r)","⒮","(s)","⒯","(t)","⒰","(u)","⒱","(v)","⒲","(w)","⒳","(x)","⒴","(y)","⒵","(z)","⨌","∫∫∫∫","⩴","::=","⩵","==","⩶","===","⺟","母","⻳","龟","⼀","一","⼁","丨","⼂","丶","⼃","丿","⼄","乙","⼅","亅","⼆","二","⼇","亠","⼈","人","⼉","儿","⼊","入","⼋","八","⼌","冂","⼍","冖","⼎","冫","⼏","几","⼐","凵","⼑","刀","⼒","力","⼓","勹","⼔","匕","⼕","匚","⼖","匸","⼗","十","⼘","卜","⼙","卩","⼚","厂","⼛","厶","⼜","又","⼝","口","⼞","囗","⼟","土","⼠","士","⼡","夂","⼢","夊","⼣","夕","⼤","大","⼥","女","⼦","子","⼧","宀","⼨","寸","⼩","小","⼪","尢","⼫","尸","⼬","屮","⼭","山","⼮","巛","⼯","工","⼰","己","⼱","巾","⼲","干","⼳","幺","⼴","广","⼵","廴","⼶","廾","⼷","弋","⼸","弓","⼹","彐","⼺","彡","⼻","彳","⼼","心","⼽","戈","⼾","戶","⼿","手","⽀","支","⽁","攴","⽂","文","⽃","斗","⽄","斤","⽅","方","⽆","无","⽇","日","⽈","曰","⽉","月","⽊","木","⽋","欠","⽌","止","⽍","歹","⽎","殳","⽏","毋","⽐","比","⽑","毛","⽒","氏","⽓","气","⽔","水","⽕","火","⽖","爪","⽗","父","⽘","爻","⽙","爿","⽚","片","⽛","牙","⽜","牛","⽝","犬","⽞","玄","⽟","玉","⽠","瓜","⽡","瓦","⽢","甘","⽣","生","⽤","用","⽥","田","⽦","疋","⽧","疒","⽨","癶","⽩","白","⽪","皮","⽫","皿","⽬","目","⽭","矛","⽮","矢","⽯","石","⽰","示","⽱","禸","⽲","禾","⽳","穴","⽴","立","⽵","竹","⽶","米","⽷","糸","⽸","缶","⽹","网","⽺","羊","⽻","羽","⽼","老","⽽","而","⽾","耒","⽿","耳","⾀","聿","⾁","肉","⾂","臣","⾃","自","⾄","至","⾅","臼","⾆","舌","⾇","舛","⾈","舟","⾉","艮","⾊","色","⾋","艸","⾌","虍","⾍","虫","⾎","血","⾏","行","⾐","衣","⾑","襾","⾒","見","⾓","角","⾔","言","⾕","谷","⾖","豆","⾗","豕","⾘","豸","⾙","貝","⾚","赤","⾛","走","⾜","足","⾝","身","⾞","車","⾟","辛","⾠","辰","⾡","辵","⾢","邑","⾣","酉","⾤","釆","⾥","里","⾦","金","⾧","長","⾨","門","⾩","阜","⾪","隶","⾫","隹","⾬","雨","⾭","靑","⾮","非","⾯","面","⾰","革","⾱","韋","⾲","韭","⾳","音","⾴","頁","⾵","風","⾶","飛","⾷","食","⾸","首","⾹","香","⾺","馬","⾻","骨","⾼","高","⾽","髟","⾾","鬥","⾿","鬯","⿀","鬲","⿁","鬼","⿂","魚","⿃","鳥","⿄","鹵","⿅","鹿","⿆","麥","⿇","麻","⿈","黃","⿉","黍","⿊","黑","⿋","黹","⿌","黽","⿍","鼎","⿎","鼓","⿏","鼠","⿐","鼻","⿑","齊","⿒","齒","⿓","龍","⿔","龜","⿕","龠","〶","〒","〸","十","〹","卄","〺","卅","゛"," ゙","゜"," ゚","ㄱ","ᄀ","ㄲ","ᄁ","ㄳ","ᆪ","ㄴ","ᄂ","ㄵ","ᆬ","ㄶ","ᆭ","ㄷ","ᄃ","ㄸ","ᄄ","ㄹ","ᄅ","ㄺ","ᆰ","ㄻ","ᆱ","ㄼ","ᆲ","ㄽ","ᆳ","ㄾ","ᆴ","ㄿ","ᆵ","ㅀ","ᄚ","ㅁ","ᄆ","ㅂ","ᄇ","ㅃ","ᄈ","ㅄ","ᄡ","ㅅ","ᄉ","ㅆ","ᄊ","ㅇ","ᄋ","ㅈ","ᄌ","ㅉ","ᄍ","ㅊ","ᄎ","ㅋ","ᄏ","ㅌ","ᄐ","ㅍ","ᄑ","ㅎ","ᄒ","ㅏ","ᅡ","ㅐ","ᅢ","ㅑ","ᅣ","ㅒ","ᅤ","ㅓ","ᅥ","ㅔ","ᅦ","ㅕ","ᅧ","ㅖ","ᅨ","ㅗ","ᅩ","ㅘ","ᅪ","ㅙ","ᅫ","ㅚ","ᅬ","ㅛ","ᅭ","ㅜ","ᅮ","ㅝ","ᅯ","ㅞ","ᅰ","ㅟ","ᅱ","ㅠ","ᅲ","ㅡ","ᅳ","ㅢ","ᅴ","ㅣ","ᅵ","ㅤ","ᅠ","ㅥ","ᄔ","ㅦ","ᄕ","ㅧ","ᇇ","ㅨ","ᇈ","ㅩ","ᇌ","ㅪ","ᇎ","ㅫ","ᇓ","ㅬ","ᇗ","ㅭ","ᇙ","ㅮ","ᄜ","ㅯ","ᇝ","ㅰ","ᇟ","ㅱ","ᄝ","ㅲ","ᄞ","ㅳ","ᄠ","ㅴ","ᄢ","ㅵ","ᄣ","ㅶ","ᄧ","ㅷ","ᄩ","ㅸ","ᄫ","ㅹ","ᄬ","ㅺ","ᄭ","ㅻ","ᄮ","ㅼ","ᄯ","ㅽ","ᄲ","ㅾ","ᄶ","ㅿ","ᅀ","ㆀ","ᅇ","ㆁ","ᅌ","ㆂ","ᇱ","ㆃ","ᇲ","ㆄ","ᅗ","ㆅ","ᅘ","ㆆ","ᅙ","ㆇ","ᆄ","ㆈ","ᆅ","ㆉ","ᆈ","ㆊ","ᆑ","ㆋ","ᆒ","ㆌ","ᆔ","ㆍ","ᆞ","ㆎ","ᆡ","㈀","(ᄀ)","㈁","(ᄂ)","㈂","(ᄃ)","㈃","(ᄅ)","㈄","(ᄆ)","㈅","(ᄇ)","㈆","(ᄉ)","㈇","(ᄋ)","㈈","(ᄌ)","㈉","(ᄎ)","㈊","(ᄏ)","㈋","(ᄐ)","㈌","(ᄑ)","㈍","(ᄒ)","㈎","(가)","㈏","(나)","㈐","(다)","㈑","(라)","㈒","(마)","㈓","(바)","㈔","(사)","㈕","(아)","㈖","(자)","㈗","(차)","㈘","(카)","㈙","(타)","㈚","(파)","㈛","(하)","㈜","(주)","㈝","(오전)","㈞","(오후)","㈠","(一)","㈡","(二)","㈢","(三)","㈣","(四)","㈤","(五)","㈥","(六)","㈦","(七)","㈧","(八)","㈨","(九)","㈩","(十)","㈪","(月)","㈫","(火)","㈬","(水)","㈭","(木)","㈮","(金)","㈯","(土)","㈰","(日)","㈱","(株)","㈲","(有)","㈳","(社)","㈴","(名)","㈵","(特)","㈶","(財)","㈷","(祝)","㈸","(労)","㈹","(代)","㈺","(呼)","㈻","(学)","㈼","(監)","㈽","(企)","㈾","(資)","㈿","(協)","㉀","(祭)","㉁","(休)","㉂","(自)","㉃","(至)","㋀","1月","㋁","2月","㋂","3月","㋃","4月","㋄","5月","㋅","6月","㋆","7月","㋇","8月","㋈","9月","㋉","10月","㋊","11月","㋋","12月","㍘","0点","㍙","1点","㍚","2点","㍛","3点","㍜","4点","㍝","5点","㍞","6点","㍟","7点","㍠","8点","㍡","9点","㍢","10点","㍣","11点","㍤","12点","㍥","13点","㍦","14点","㍧","15点","㍨","16点","㍩","17点","㍪","18点","㍫","19点","㍬","20点","㍭","21点","㍮","22点","㍯","23点","㍰","24点","㏠","1日","㏡","2日","㏢","3日","㏣","4日","㏤","5日","㏥","6日","㏦","7日","㏧","8日","㏨","9日","㏩","10日","㏪","11日","㏫","12日","㏬","13日","㏭","14日","㏮","15日","㏯","16日","㏰","17日","㏱","18日","㏲","19日","㏳","20日","㏴","21日","㏵","22日","㏶","23日","㏷","24日","㏸","25日","㏹","26日","㏺","27日","㏻","28日","㏼","29日","㏽","30日","㏾","31日","ff","ff","fi","fi","fl","fl","ffi","ffi","ffl","ffl","ſt","ſt","st","st","ﬓ","մն","ﬔ","մե","ﬕ","մի","ﬖ","վն","ﬗ","մխ","ﭏ","אל","ﭐ","ٱ","ﭑ","ٱ","ﭒ","ٻ","ﭓ","ٻ","ﭔ","ٻ","ﭕ","ٻ","ﭖ","پ","ﭗ","پ","ﭘ","پ","ﭙ","پ","ﭚ","ڀ","ﭛ","ڀ","ﭜ","ڀ","ﭝ","ڀ","ﭞ","ٺ","ﭟ","ٺ","ﭠ","ٺ","ﭡ","ٺ","ﭢ","ٿ","ﭣ","ٿ","ﭤ","ٿ","ﭥ","ٿ","ﭦ","ٹ","ﭧ","ٹ","ﭨ","ٹ","ﭩ","ٹ","ﭪ","ڤ","ﭫ","ڤ","ﭬ","ڤ","ﭭ","ڤ","ﭮ","ڦ","ﭯ","ڦ","ﭰ","ڦ","ﭱ","ڦ","ﭲ","ڄ","ﭳ","ڄ","ﭴ","ڄ","ﭵ","ڄ","ﭶ","ڃ","ﭷ","ڃ","ﭸ","ڃ","ﭹ","ڃ","ﭺ","چ","ﭻ","چ","ﭼ","چ","ﭽ","چ","ﭾ","ڇ","ﭿ","ڇ","ﮀ","ڇ","ﮁ","ڇ","ﮂ","ڍ","ﮃ","ڍ","ﮄ","ڌ","ﮅ","ڌ","ﮆ","ڎ","ﮇ","ڎ","ﮈ","ڈ","ﮉ","ڈ","ﮊ","ژ","ﮋ","ژ","ﮌ","ڑ","ﮍ","ڑ","ﮎ","ک","ﮏ","ک","ﮐ","ک","ﮑ","ک","ﮒ","گ","ﮓ","گ","ﮔ","گ","ﮕ","گ","ﮖ","ڳ","ﮗ","ڳ","ﮘ","ڳ","ﮙ","ڳ","ﮚ","ڱ","ﮛ","ڱ","ﮜ","ڱ","ﮝ","ڱ","ﮞ","ں","ﮟ","ں","ﮠ","ڻ","ﮡ","ڻ","ﮢ","ڻ","ﮣ","ڻ","ﮤ","ۀ","ﮥ","ۀ","ﮦ","ہ","ﮧ","ہ","ﮨ","ہ","ﮩ","ہ","ﮪ","ھ","ﮫ","ھ","ﮬ","ھ","ﮭ","ھ","ﮮ","ے","ﮯ","ے","ﮰ","ۓ","ﮱ","ۓ","ﯓ","ڭ","ﯔ","ڭ","ﯕ","ڭ","ﯖ","ڭ","ﯗ","ۇ","ﯘ","ۇ","ﯙ","ۆ","ﯚ","ۆ","ﯛ","ۈ","ﯜ","ۈ","ﯝ","ٷ","ﯞ","ۋ","ﯟ","ۋ","ﯠ","ۅ","ﯡ","ۅ","ﯢ","ۉ","ﯣ","ۉ","ﯤ","ې","ﯥ","ې","ﯦ","ې","ﯧ","ې","ﯨ","ى","ﯩ","ى","ﯪ","ئا","ﯫ","ئا","ﯬ","ئە","ﯭ","ئە","ﯮ","ئو","ﯯ","ئو","ﯰ","ئۇ","ﯱ","ئۇ","ﯲ","ئۆ","ﯳ","ئۆ","ﯴ","ئۈ","ﯵ","ئۈ","ﯶ","ئې","ﯷ","ئې","ﯸ","ئې","ﯹ","ئى","ﯺ","ئى","ﯻ","ئى","ﯼ","ی","ﯽ","ی","ﯾ","ی","ﯿ","ی","ﰀ","ئج","ﰁ","ئح","ﰂ","ئم","ﰃ","ئى","ﰄ","ئي","ﰅ","بج","ﰆ","بح","ﰇ","بخ","ﰈ","بم","ﰉ","بى","ﰊ","بي","ﰋ","تج","ﰌ","تح","ﰍ","تخ","ﰎ","تم","ﰏ","تى","ﰐ","تي","ﰑ","ثج","ﰒ","ثم","ﰓ","ثى","ﰔ","ثي","ﰕ","جح","ﰖ","جم","ﰗ","حج","ﰘ","حم","ﰙ","خج","ﰚ","خح","ﰛ","خم","ﰜ","سج","ﰝ","سح","ﰞ","سخ","ﰟ","سم","ﰠ","صح","ﰡ","صم","ﰢ","ضج","ﰣ","ضح","ﰤ","ضخ","ﰥ","ضم","ﰦ","طح","ﰧ","طم","ﰨ","ظم","ﰩ","عج","ﰪ","عم","ﰫ","غج","ﰬ","غم","ﰭ","فج","ﰮ","فح","ﰯ","فخ","ﰰ","فم","ﰱ","فى","ﰲ","في","ﰳ","قح","ﰴ","قم","ﰵ","قى","ﰶ","قي","ﰷ","كا","ﰸ","كج","ﰹ","كح","ﰺ","كخ","ﰻ","كل","ﰼ","كم","ﰽ","كى","ﰾ","كي","ﰿ","لج","ﱀ","لح","ﱁ","لخ","ﱂ","لم","ﱃ","لى","ﱄ","لي","ﱅ","مج","ﱆ","مح","ﱇ","مخ","ﱈ","مم","ﱉ","مى","ﱊ","مي","ﱋ","نج","ﱌ","نح","ﱍ","نخ","ﱎ","نم","ﱏ","نى","ﱐ","ني","ﱑ","هج","ﱒ","هم","ﱓ","هى","ﱔ","هي","ﱕ","يج","ﱖ","يح","ﱗ","يخ","ﱘ","يم","ﱙ","يى","ﱚ","يي","ﱛ","ذٰ","ﱜ","رٰ","ﱝ","ىٰ","ﱞ"," ٌّ","ﱟ"," ٍّ","ﱠ"," َّ","ﱡ"," ُّ","ﱢ"," ِّ","ﱣ"," ّٰ","ﱤ","ئر","ﱥ","ئز","ﱦ","ئم","ﱧ","ئن","ﱨ","ئى","ﱩ","ئي","ﱪ","بر","ﱫ","بز","ﱬ","بم","ﱭ","بن","ﱮ","بى","ﱯ","بي","ﱰ","تر","ﱱ","تز","ﱲ","تم","ﱳ","تن","ﱴ","تى","ﱵ","تي","ﱶ","ثر","ﱷ","ثز","ﱸ","ثم","ﱹ","ثن","ﱺ","ثى","ﱻ","ثي","ﱼ","فى","ﱽ","في","ﱾ","قى","ﱿ","قي","ﲀ","كا","ﲁ","كل","ﲂ","كم","ﲃ","كى","ﲄ","كي","ﲅ","لم","ﲆ","لى","ﲇ","لي","ﲈ","ما","ﲉ","مم","ﲊ","نر","ﲋ","نز","ﲌ","نم","ﲍ","نن","ﲎ","نى","ﲏ","ني","ﲐ","ىٰ","ﲑ","ير","ﲒ","يز","ﲓ","يم","ﲔ","ين","ﲕ","يى","ﲖ","يي","ﲗ","ئج","ﲘ","ئح","ﲙ","ئخ","ﲚ","ئم","ﲛ","ئه","ﲜ","بج","ﲝ","بح","ﲞ","بخ","ﲟ","بم","ﲠ","به","ﲡ","تج","ﲢ","تح","ﲣ","تخ","ﲤ","تم","ﲥ","ته","ﲦ","ثم","ﲧ","جح","ﲨ","جم","ﲩ","حج","ﲪ","حم","ﲫ","خج","ﲬ","خم","ﲭ","سج","ﲮ","سح","ﲯ","سخ","ﲰ","سم","ﲱ","صح","ﲲ","صخ","ﲳ","صم","ﲴ","ضج","ﲵ","ضح","ﲶ","ضخ","ﲷ","ضم","ﲸ","طح","ﲹ","ظم","ﲺ","عج","ﲻ","عم","ﲼ","غج","ﲽ","غم","ﲾ","فج","ﲿ","فح","ﳀ","فخ","ﳁ","فم","ﳂ","قح","ﳃ","قم","ﳄ","كج","ﳅ","كح","ﳆ","كخ","ﳇ","كل","ﳈ","كم","ﳉ","لج","ﳊ","لح","ﳋ","لخ","ﳌ","لم","ﳍ","له","ﳎ","مج","ﳏ","مح","ﳐ","مخ","ﳑ","مم","ﳒ","نج","ﳓ","نح","ﳔ","نخ","ﳕ","نم","ﳖ","نه","ﳗ","هج","ﳘ","هم","ﳙ","هٰ","ﳚ","يج","ﳛ","يح","ﳜ","يخ","ﳝ","يم","ﳞ","يه","ﳟ","ئم","ﳠ","ئه","ﳡ","بم","ﳢ","به","ﳣ","تم","ﳤ","ته","ﳥ","ثم","ﳦ","ثه","ﳧ","سم","ﳨ","سه","ﳩ","شم","ﳪ","شه","ﳫ","كل","ﳬ","كم","ﳭ","لم","ﳮ","نم","ﳯ","نه","ﳰ","يم","ﳱ","يه","ﳲ","ـَّ","ﳳ","ـُّ","ﳴ","ـِّ","ﳵ","طى","ﳶ","طي","ﳷ","عى","ﳸ","عي","ﳹ","غى","ﳺ","غي","ﳻ","سى","ﳼ","سي","ﳽ","شى","ﳾ","شي","ﳿ","حى","ﴀ","حي","ﴁ","جى","ﴂ","جي","ﴃ","خى","ﴄ","خي","ﴅ","صى","ﴆ","صي","ﴇ","ضى","ﴈ","ضي","ﴉ","شج","ﴊ","شح","ﴋ","شخ","ﴌ","شم","ﴍ","شر","ﴎ","سر","ﴏ","صر","ﴐ","ضر","ﴑ","طى","ﴒ","طي","ﴓ","عى","ﴔ","عي","ﴕ","غى","ﴖ","غي","ﴗ","سى","ﴘ","سي","ﴙ","شى","ﴚ","شي","ﴛ","حى","ﴜ","حي","ﴝ","جى","ﴞ","جي","ﴟ","خى","ﴠ","خي","ﴡ","صى","ﴢ","صي","ﴣ","ضى","ﴤ","ضي","ﴥ","شج","ﴦ","شح","ﴧ","شخ","ﴨ","شم","ﴩ","شر","ﴪ","سر","ﴫ","صر","ﴬ","ضر","ﴭ","شج","ﴮ","شح","ﴯ","شخ","ﴰ","شم","ﴱ","سه","ﴲ","شه","ﴳ","طم","ﴴ","سج","ﴵ","سح","ﴶ","سخ","ﴷ","شج","ﴸ","شح","ﴹ","شخ","ﴺ","طم","ﴻ","ظم","ﴼ","اً","ﴽ","اً","ﵐ","تجم","ﵑ","تحج","ﵒ","تحج","ﵓ","تحم","ﵔ","تخم","ﵕ","تمج","ﵖ","تمح","ﵗ","تمخ","ﵘ","جمح","ﵙ","جمح","ﵚ","حمي","ﵛ","حمى","ﵜ","سحج","ﵝ","سجح","ﵞ","سجى","ﵟ","سمح","ﵠ","سمح","ﵡ","سمج","ﵢ","سمم","ﵣ","سمم","ﵤ","صحح","ﵥ","صحح","ﵦ","صمم","ﵧ","شحم","ﵨ","شحم","ﵩ","شجي","ﵪ","شمخ","ﵫ","شمخ","ﵬ","شمم","ﵭ","شمم","ﵮ","ضحى","ﵯ","ضخم","ﵰ","ضخم","ﵱ","طمح","ﵲ","طمح","ﵳ","طمم","ﵴ","طمي","ﵵ","عجم","ﵶ","عمم","ﵷ","عمم","ﵸ","عمى","ﵹ","غمم","ﵺ","غمي","ﵻ","غمى","ﵼ","فخم","ﵽ","فخم","ﵾ","قمح","ﵿ","قمم","ﶀ","لحم","ﶁ","لحي","ﶂ","لحى","ﶃ","لجج","ﶄ","لجج","ﶅ","لخم","ﶆ","لخم","ﶇ","لمح","ﶈ","لمح","ﶉ","محج","ﶊ","محم","ﶋ","محي","ﶌ","مجح","ﶍ","مجم","ﶎ","مخج","ﶏ","مخم","ﶒ","مجخ","ﶓ","همج","ﶔ","همم","ﶕ","نحم","ﶖ","نحى","ﶗ","نجم","ﶘ","نجم","ﶙ","نجى","ﶚ","نمي","ﶛ","نمى","ﶜ","يمم","ﶝ","يمم","ﶞ","بخي","ﶟ","تجي","ﶠ","تجى","ﶡ","تخي","ﶢ","تخى","ﶣ","تمي","ﶤ","تمى","ﶥ","جمي","ﶦ","جحى","ﶧ","جمى","ﶨ","سخى","ﶩ","صحي","ﶪ","شحي","ﶫ","ضحي","ﶬ","لجي","ﶭ","لمي","ﶮ","يحي","ﶯ","يجي","ﶰ","يمي","ﶱ","ممي","ﶲ","قمي","ﶳ","نحي","ﶴ","قمح","ﶵ","لحم","ﶶ","عمي","ﶷ","كمي","ﶸ","نجح","ﶹ","مخي","ﶺ","لجم","ﶻ","كمم","ﶼ","لجم","ﶽ","نجح","ﶾ","جحي","ﶿ","حجي","ﷀ","مجي","ﷁ","فمي","ﷂ","بحي","ﷃ","كمم","ﷄ","عجم","ﷅ","صمم","ﷆ","سخي","ﷇ","نجي","﹉","‾","﹊","‾","﹋","‾","﹌","‾","﹍","_","﹎","_","﹏","_","ﺀ","ء","ﺁ","آ","ﺂ","آ","ﺃ","أ","ﺄ","أ","ﺅ","ؤ","ﺆ","ؤ","ﺇ","إ","ﺈ","إ","ﺉ","ئ","ﺊ","ئ","ﺋ","ئ","ﺌ","ئ","ﺍ","ا","ﺎ","ا","ﺏ","ب","ﺐ","ب","ﺑ","ب","ﺒ","ب","ﺓ","ة","ﺔ","ة","ﺕ","ت","ﺖ","ت","ﺗ","ت","ﺘ","ت","ﺙ","ث","ﺚ","ث","ﺛ","ث","ﺜ","ث","ﺝ","ج","ﺞ","ج","ﺟ","ج","ﺠ","ج","ﺡ","ح","ﺢ","ح","ﺣ","ح","ﺤ","ح","ﺥ","خ","ﺦ","خ","ﺧ","خ","ﺨ","خ","ﺩ","د","ﺪ","د","ﺫ","ذ","ﺬ","ذ","ﺭ","ر","ﺮ","ر","ﺯ","ز","ﺰ","ز","ﺱ","س","ﺲ","س","ﺳ","س","ﺴ","س","ﺵ","ش","ﺶ","ش","ﺷ","ش","ﺸ","ش","ﺹ","ص","ﺺ","ص","ﺻ","ص","ﺼ","ص","ﺽ","ض","ﺾ","ض","ﺿ","ض","ﻀ","ض","ﻁ","ط","ﻂ","ط","ﻃ","ط","ﻄ","ط","ﻅ","ظ","ﻆ","ظ","ﻇ","ظ","ﻈ","ظ","ﻉ","ع","ﻊ","ع","ﻋ","ع","ﻌ","ع","ﻍ","غ","ﻎ","غ","ﻏ","غ","ﻐ","غ","ﻑ","ف","ﻒ","ف","ﻓ","ف","ﻔ","ف","ﻕ","ق","ﻖ","ق","ﻗ","ق","ﻘ","ق","ﻙ","ك","ﻚ","ك","ﻛ","ك","ﻜ","ك","ﻝ","ل","ﻞ","ل","ﻟ","ل","ﻠ","ل","ﻡ","م","ﻢ","م","ﻣ","م","ﻤ","م","ﻥ","ن","ﻦ","ن","ﻧ","ن","ﻨ","ن","ﻩ","ه","ﻪ","ه","ﻫ","ه","ﻬ","ه","ﻭ","و","ﻮ","و","ﻯ","ى","ﻰ","ى","ﻱ","ي","ﻲ","ي","ﻳ","ي","ﻴ","ي","ﻵ","لآ","ﻶ","لآ","ﻷ","لأ","ﻸ","لأ","ﻹ","لإ","ﻺ","لإ","ﻻ","لا","ﻼ","لا"]}));function u(e){const t=e.length;if(t<=1||!function(e){let t=s[13];return e>=t.begin&&e<t.end||(t=s[11],e>=t.begin&&e<t.end)}(e.charCodeAt(0)))return e;const r=[];for(let n=t-1;n>=0;n--)r.push(e[n]);return r.join("")}},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getQuadPoints=R,t.MarkupAnnotation=t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0;var a,i=(a=r(2))&&a.__esModule?a:{default:a},o=r(4),s=r(122),c=r(136),l=r(118),u=r(172),f=r(177),h=r(137),d=r(179),p=r(183),g=r(175),m=r(123),v=r(184);function y(e,t,r){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=x(e)););return e}(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(r):a.value}},y(e,t,r||e)}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=x(e);if(t){var a=x(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return S(this,r)}}function S(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function A(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=T(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function O(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function C(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){O(i,n,a,o,s,"next",e)}function s(e){O(i,n,a,o,s,"throw",e)}o(void 0)}))}}function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||T(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function E(e,t,r){return t&&_(e.prototype,t),r&&_(e,r),e}var j=function(){function e(){P(this,e)}var t;return E(e,null,[{key:"create",value:function(e,t,r,n,a){var i=this;return Promise.all([r.ensureCatalog("acroForm"),a?this._getPageIndex(e,t,r):-1]).then((function(o){var s=F(o,2),c=s[0],l=s[1];return r.ensure(i,"_create",[e,t,r,n,c,a,l])}))}},{key:"_create",value:function(e,t,r,n,a,i){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:-1,u=e.fetchIfRef(t);if((0,l.isDict)(u)){var f=(0,l.isRef)(t)?t.toString():"annot_".concat(n.createObjId()),h=u.get("Subtype"),d={xref:e,ref:t,dict:u,subtype:h=(0,l.isName)(h)?h.name:null,id:f,pdfManager:r,acroForm:a instanceof l.Dict?a:l.Dict.empty,collectFields:i,pageIndex:c};switch(h){case"Link":return new W(d);case"Text":return new z(d);case"Widget":var p=(0,s.getInheritableProperty)({dict:u,key:"FT"});switch(p=(0,l.isName)(p)?p.name:null){case"Tx":return new $(d);case"Btn":return new q(d);case"Ch":return new X(d);case"Sig":return new H(d)}return(0,o.warn)('Unimplemented widget field type "'.concat(p,'", ')+"falling back to base field type."),new U(d);case"Popup":return new G(d);case"FreeText":return new V(d);case"Line":return new Y(d);case"Square":return new K(d);case"Circle":return new J(d);case"PolyLine":return new Z(d);case"Polygon":return new Q(d);case"Caret":return new ee(d);case"Ink":return new te(d);case"Highlight":return new re(d);case"Underline":return new ne(d);case"Squiggly":return new ae(d);case"StrikeOut":return new ie(d);case"Stamp":return new oe(d);case"FileAttachment":return new se(d);default:return i||(h?(0,o.warn)('Unimplemented annotation type "'.concat(h,'", ')+"falling back to base annotation."):(0,o.warn)("Annotation is missing the required /Subtype.")),new D(d)}}}},{key:"_getPageIndex",value:(t=C(i.default.mark((function e(t,r,n){var a,s,c;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.fetchIfRefAsync(r);case 3:if(a=e.sent,(0,l.isDict)(a)){e.next=6;break}return e.abrupt("return",-1);case 6:if(s=a.getRaw("P"),(0,l.isRef)(s)){e.next=9;break}return e.abrupt("return",-1);case 9:return e.next=11,n.ensureCatalog("getPageIndex",[s]);case 11:return c=e.sent,e.abrupt("return",c);case 15:return e.prev=15,e.t0=e.catch(0),(0,o.warn)('_getPageIndex: "'.concat(e.t0,'".')),e.abrupt("return",-1);case 19:case"end":return e.stop()}}),e,null,[[0,15]])}))),function(e,r,n){return t.apply(this,arguments)})}]),e}();function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8ClampedArray(3);if(!Array.isArray(e))return t;var r=t||new Uint8ClampedArray(3);switch(e.length){case 0:return null;case 1:return h.ColorSpace.singletons.gray.getRgbItem(e,0,r,0),r;case 3:return h.ColorSpace.singletons.rgb.getRgbItem(e,0,r,0),r;case 4:return h.ColorSpace.singletons.cmyk.getRgbItem(e,0,r,0),r;default:return t}}function R(e,t){if(!e.has("QuadPoints"))return null;var r=e.getArray("QuadPoints");if(!Array.isArray(r)||0===r.length||r.length%8>0)return null;for(var n=[],a=0,i=r.length/8;a<i;a++){n.push([]);for(var o=8*a,s=8*a+8;o<s;o+=2){var c=r[o],l=r[o+1];if(null!==t&&(c<t[0]||c>t[2]||l<t[1]||l>t[3]))return null;n[a].push({x:c,y:l})}}return n.map((function(e){var t=e.reduce((function(e,t){var r=F(e,4),n=r[0],a=r[1],i=r[2],o=r[3];return[Math.min(n,t.x),Math.max(a,t.x),Math.min(i,t.y),Math.max(o,t.y)]}),[Number.MAX_VALUE,Number.MIN_VALUE,Number.MAX_VALUE,Number.MIN_VALUE]),r=F(t,4),n=r[0],a=r[1],i=r[2],o=r[3];return[{x:n,y:o},{x:a,y:o},{x:n,y:i},{x:a,y:i}]}))}function B(e,t,r){var n=F(o.Util.getAxialAlignedBoundingBox(t,r),4),a=n[0],i=n[1],s=n[2],c=n[3];if(a===s||i===c)return[1,0,0,1,e[0],e[1]];var l=(e[2]-e[0])/(s-a),u=(e[3]-e[1])/(c-i);return[l,0,0,u,e[0]-a*l,e[1]-i*u]}t.AnnotationFactory=j;var D=function(){function e(t){P(this,e);var r=t.dict;if(this.setTitle(r.get("T")),this.setContents(r.get("Contents")),this.setModificationDate(r.get("M")),this.setFlags(r.get("F")),this.setRectangle(r.getArray("Rect")),this.setColor(r.getArray("C")),this.setBorderStyle(r),this.setAppearance(r),this.setBorderAndBackgroundColors(r.get("MK")),this._streams=[],this.appearance&&this._streams.push(this.appearance),this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,contentsObj:this._contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype},t.collectFields){var n=r.get("Kids");if(Array.isArray(n)){var a,i=[],c=A(n);try{for(c.s();!(a=c.n()).done;){var u=a.value;(0,l.isRef)(u)&&i.push(u.toString())}}catch(e){c.e(e)}finally{c.f()}0!==i.length&&(this.data.kidIds=i)}this.data.actions=(0,s.collectActions)(t.xref,r,o.AnnotationActionEventType),this.data.fieldName=this._constructFieldName(r),this.data.pageIndex=t.pageIndex}this._fallbackFontDict=null}var t;return E(e,[{key:"_hasFlag",value:function(e,t){return!!(e&t)}},{key:"_isViewable",value:function(e){return!this._hasFlag(e,o.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,o.AnnotationFlag.NOVIEW)}},{key:"_isPrintable",value:function(e){return this._hasFlag(e,o.AnnotationFlag.PRINT)&&!this._hasFlag(e,o.AnnotationFlag.INVISIBLE)}},{key:"mustBeViewed",value:function(e){var t=e&&e.get(this.data.id);return t&&void 0!==t.hidden?!t.hidden:this.viewable&&!this._hasFlag(this.flags,o.AnnotationFlag.HIDDEN)}},{key:"mustBePrinted",value:function(e){var t=e&&e.get(this.data.id);return t&&void 0!==t.print?t.print:this.printable}},{key:"viewable",get:function(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}},{key:"printable",get:function(){return null!==this.data.quadPoints&&0!==this.flags&&this._isPrintable(this.flags)}},{key:"_parseStringHelper",value:function(e){var t="string"==typeof e?(0,o.stringToPDFString)(e):"";return{str:t,dir:t&&"rtl"===(0,u.bidi)(t).dir?"rtl":"ltr"}}},{key:"setTitle",value:function(e){this._title=this._parseStringHelper(e)}},{key:"setContents",value:function(e){this._contents=this._parseStringHelper(e)}},{key:"setModificationDate",value:function(e){this.modificationDate=(0,o.isString)(e)?e:null}},{key:"setFlags",value:function(e){this.flags=Number.isInteger(e)&&e>0?e:0}},{key:"hasFlag",value:function(e){return this._hasFlag(this.flags,e)}},{key:"setRectangle",value:function(e){Array.isArray(e)&&4===e.length?this.rectangle=o.Util.normalizeRect(e):this.rectangle=[0,0,0,0]}},{key:"setColor",value:function(e){this.color=M(e)}},{key:"setBorderAndBackgroundColors",value:function(e){e instanceof l.Dict?(this.borderColor=M(e.getArray("BC"),null),this.backgroundColor=M(e.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}},{key:"setBorderStyle",value:function(e){if(this.borderStyle=new N,(0,l.isDict)(e))if(e.has("BS")){var t=e.get("BS"),r=t.get("Type");r&&!(0,l.isName)(r,"Border")||(this.borderStyle.setWidth(t.get("W"),this.rectangle),this.borderStyle.setStyle(t.get("S")),this.borderStyle.setDashArray(t.getArray("D")))}else if(e.has("Border")){var n=e.getArray("Border");Array.isArray(n)&&n.length>=3&&(this.borderStyle.setHorizontalCornerRadius(n[0]),this.borderStyle.setVerticalCornerRadius(n[1]),this.borderStyle.setWidth(n[2],this.rectangle),4===n.length&&this.borderStyle.setDashArray(n[3]))}else this.borderStyle.setWidth(0)}},{key:"setAppearance",value:function(e){this.appearance=null;var t=e.get("AP");if((0,l.isDict)(t)){var r=t.get("N");if((0,l.isStream)(r))this.appearance=r;else if((0,l.isDict)(r)){var n=e.get("AS");(0,l.isName)(n)&&r.has(n.name)&&(this.appearance=r.get(n.name))}}}},{key:"loadResources",value:function(e){return this.appearance.dict.getAsync("Resources").then((function(t){if(t)return new p.ObjectLoader(t,e,t.xref).load().then((function(){return t}))}))}},{key:"getOperatorList",value:function(e,t,r,n){var a=this;if(!this.appearance)return Promise.resolve(new g.OperatorList);var i=this.appearance,s=this.data,c=i.dict,l=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),u=c.getArray("BBox")||[0,0,1,1],f=c.getArray("Matrix")||[1,0,0,1,0,0],h=B(s.rect,u,f);return l.then((function(r){var n=new g.OperatorList;return n.addOp(o.OPS.beginAnnotation,[s.id,s.rect,h,f]),e.getOperatorList({stream:i,task:t,resources:r,operatorList:n,fallbackFontDict:a._fallbackFontDict}).then((function(){return n.addOp(o.OPS.endAnnotation,[]),a.reset(),n}))}))}},{key:"save",value:(t=C(i.default.mark((function e(t,r,n){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"getFieldObject",value:function(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex}:null}},{key:"reset",value:function(){var e,t=A(this._streams);try{for(t.s();!(e=t.n()).done;)e.value.reset()}catch(e){t.e(e)}finally{t.f()}}},{key:"_constructFieldName",value:function(e){if(!e.has("T")&&!e.has("Parent"))return(0,o.warn)("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return(0,o.stringToPDFString)(e.get("T"));var t=[];e.has("T")&&t.unshift((0,o.stringToPDFString)(e.get("T")));var r=e,n=new l.RefSet;for(e.objId&&n.put(e.objId);r.has("Parent")&&(r=r.get("Parent"))instanceof l.Dict&&(!r.objId||!n.has(r.objId));)r.objId&&n.put(r.objId),r.has("T")&&t.unshift((0,o.stringToPDFString)(r.get("T")));return t.join(".")}}]),e}();t.Annotation=D;var N=function(){function e(){P(this,e),this.width=1,this.style=o.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}return E(e,[{key:"setWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if((0,l.isName)(e))this.width=0;else if(Number.isInteger(e)){if(e>0){var r=(t[2]-t[0])/2,n=(t[3]-t[1])/2;r>0&&n>0&&(e>r||e>n)&&((0,o.warn)("AnnotationBorderStyle.setWidth - ignoring width: ".concat(e)),e=1)}this.width=e}}},{key:"setStyle",value:function(e){if((0,l.isName)(e))switch(e.name){case"S":this.style=o.AnnotationBorderStyleType.SOLID;break;case"D":this.style=o.AnnotationBorderStyleType.DASHED;break;case"B":this.style=o.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=o.AnnotationBorderStyleType.INSET;break;case"U":this.style=o.AnnotationBorderStyleType.UNDERLINE}}},{key:"setDashArray",value:function(e){if(Array.isArray(e)&&e.length>0){var t,r=!0,n=!0,a=A(e);try{for(a.s();!(t=a.n()).done;){var i=t.value;if(!(+i>=0)){r=!1;break}i>0&&(n=!1)}}catch(e){a.e(e)}finally{a.f()}r&&!n?this.dashArray=e:this.width=0}else e&&(this.width=0)}},{key:"setHorizontalCornerRadius",value:function(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}},{key:"setVerticalCornerRadius",value:function(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}]),e}();t.AnnotationBorderStyle=N;var L=function(e){b(r,e);var t=k(r);function r(e){var n;P(this,r),n=t.call(this,e);var a=e.dict;if(a.has("IRT")){var i=a.getRaw("IRT");n.data.inReplyTo=(0,l.isRef)(i)?i.toString():null;var s=a.get("RT");n.data.replyType=(0,l.isName)(s)?s.name:o.AnnotationReplyType.REPLY}if(n.data.replyType===o.AnnotationReplyType.GROUP){var c=a.get("IRT");n.setTitle(c.get("T")),n.data.titleObj=n._title,n.setContents(c.get("Contents")),n.data.contentsObj=n._contents,c.has("CreationDate")?(n.setCreationDate(c.get("CreationDate")),n.data.creationDate=n.creationDate):n.data.creationDate=null,c.has("M")?(n.setModificationDate(c.get("M")),n.data.modificationDate=n.modificationDate):n.data.modificationDate=null,n.data.hasPopup=c.has("Popup"),c.has("C")?(n.setColor(c.getArray("C")),n.data.color=n.color):n.data.color=null}else n.data.titleObj=n._title,n.setCreationDate(a.get("CreationDate")),n.data.creationDate=n.creationDate,n.data.hasPopup=a.has("Popup"),a.has("C")||(n.data.color=null);return n}return E(r,[{key:"setCreationDate",value:function(e){this.creationDate=(0,o.isString)(e)?e:null}},{key:"_setDefaultAppearance",value:function(e){var t=e.xref,r=e.extra,n=e.strokeColor,a=e.fillColor,i=e.blendMode,o=e.strokeAlpha,s=e.fillAlpha,c=e.pointsCallback,u=Number.MAX_VALUE,f=Number.MAX_VALUE,h=Number.MIN_VALUE,d=Number.MIN_VALUE,p=["q"];r&&p.push(r),n&&p.push("".concat(n[0]," ").concat(n[1]," ").concat(n[2]," RG")),a&&p.push("".concat(a[0]," ").concat(a[1]," ").concat(a[2]," rg"));var g=this.data.quadPoints;g||(g=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]]);var v,y=A(g);try{for(y.s();!(v=y.n()).done;){var b=F(c(p,v.value),4),w=b[0],k=b[1],S=b[2],x=b[3];u=Math.min(u,w),h=Math.max(h,k),f=Math.min(f,S),d=Math.max(d,x)}}catch(e){y.e(e)}finally{y.f()}p.push("Q");var O=new l.Dict(t),C=new l.Dict(t);C.set("Subtype",l.Name.get("Form"));var T=new m.StringStream(p.join(" "));T.dict=C,O.set("Fm0",T);var I=new l.Dict(t);i&&I.set("BM",l.Name.get(i)),"number"==typeof o&&I.set("CA",o),"number"==typeof s&&I.set("ca",s);var P=new l.Dict(t);P.set("GS0",I);var _=new l.Dict(t);_.set("ExtGState",P),_.set("XObject",O);var E=new l.Dict(t);E.set("Resources",_);var j=this.data.rect=[u,f,h,d];E.set("BBox",j),this.appearance=new m.StringStream("/GS0 gs /Fm0 Do"),this.appearance.dict=E,this._streams.push(this.appearance,T)}}]),r}(D);t.MarkupAnnotation=L;var U=function(e){b(u,e);var t,r,n,a=k(u);function u(e){var t;P(this,u),t=a.call(this,e);var r=e.dict,n=t.data;t.ref=e.ref,n.annotationType=o.AnnotationType.WIDGET,void 0===n.fieldName&&(n.fieldName=t._constructFieldName(r)),void 0===n.actions&&(n.actions=(0,s.collectActions)(e.xref,r,o.AnnotationActionEventType));var i=(0,s.getInheritableProperty)({dict:r,key:"V",getArray:!0});n.fieldValue=t._decodeFormValue(i);var f=(0,s.getInheritableProperty)({dict:r,key:"DV",getArray:!0});n.defaultFieldValue=t._decodeFormValue(f),void 0===i&&null!==n.defaultFieldValue&&(n.fieldValue=n.defaultFieldValue),n.alternativeText=(0,o.stringToPDFString)(r.get("TU")||"");var h=(0,s.getInheritableProperty)({dict:r,key:"DA"})||e.acroForm.get("DA");t._defaultAppearance=(0,o.isString)(h)?h:"",n.defaultAppearanceData=(0,c.parseDefaultAppearance)(t._defaultAppearance);var d=(0,s.getInheritableProperty)({dict:r,key:"FT"});n.fieldType=(0,l.isName)(d)?d.name:null;var p=(0,s.getInheritableProperty)({dict:r,key:"DR"}),g=e.acroForm.get("DR"),m=t.appearance&&t.appearance.dict.get("Resources");return t._fieldResources={localResources:p,acroFormResources:g,appearanceResources:m,mergedResources:l.Dict.merge({xref:e.xref,dictArray:[p,m,g],mergeSubDicts:!0})},n.fieldFlags=(0,s.getInheritableProperty)({dict:r,key:"Ff"}),(!Number.isInteger(n.fieldFlags)||n.fieldFlags<0)&&(n.fieldFlags=0),n.readOnly=t.hasFieldFlag(o.AnnotationFieldFlag.READONLY),n.hidden=t._hasFlag(n.annotationFlags,o.AnnotationFlag.HIDDEN),t}return E(u,[{key:"_decodeFormValue",value:function(e){return Array.isArray(e)?e.filter((function(e){return(0,o.isString)(e)})).map((function(e){return(0,o.stringToPDFString)(e)})):(0,l.isName)(e)?(0,o.stringToPDFString)(e.name):(0,o.isString)(e)?(0,o.stringToPDFString)(e):null}},{key:"hasFieldFlag",value:function(e){return!!(this.data.fieldFlags&e)}},{key:"getOperatorList",value:function(e,t,r,n){var a=this;return!r||this instanceof H?this._hasText?this._getAppearance(e,t,n).then((function(i){if(a.appearance&&null===i)return y(x(u.prototype),"getOperatorList",a).call(a,e,t,r,n);var s=new g.OperatorList;if(!a._defaultAppearance||null===i)return s;var c=[1,0,0,1,0,0],l=[0,0,a.data.rect[2]-a.data.rect[0],a.data.rect[3]-a.data.rect[1]],f=B(a.data.rect,l,c);s.addOp(o.OPS.beginAnnotation,[a.data.id,a.data.rect,f,c]);var h=new m.StringStream(i);return e.getOperatorList({stream:h,task:t,resources:a._fieldResources.mergedResources,operatorList:s}).then((function(){return s.addOp(o.OPS.endAnnotation,[]),s}))})):y(x(u.prototype),"getOperatorList",this).call(this,e,t,r,n):Promise.resolve(new g.OperatorList)}},{key:"save",value:(n=C(i.default.mark((function e(t,r,n){var a,s,c,u,f,h,d,p,g,m,y,b,w,k,S;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",null);case 2:if(a=n.get(this.data.id),(s=a&&a.value)!==this.data.fieldValue&&void 0!==s){e.next=6;break}return e.abrupt("return",null);case 6:return e.next=8,this._getAppearance(t,r,n);case 8:if(null!==(c=e.sent)){e.next=11;break}return e.abrupt("return",null);case 11:if(u=t.xref,f=u.fetchIfRef(this.ref),(0,l.isDict)(f)){e.next=15;break}return e.abrupt("return",null);case 15:return h=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],d={path:(0,o.stringToPDFString)(f.get("T")||""),value:s},p=u.getNewRef(),(g=new l.Dict(u)).set("N",p),m=u.encrypt,y=null,b=null,m&&(y=m.createCipherTransform(this.ref.num,this.ref.gen),b=m.createCipherTransform(p.num,p.gen),c=b.encryptString(c)),f.set("V",(0,o.isAscii)(s)?s:(0,o.stringToUTF16BEString)(s)),f.set("AP",g),f.set("M","D:".concat((0,o.getModificationDate)())),(w=new l.Dict(u)).set("Length",c.length),w.set("Subtype",l.Name.get("Form")),w.set("Resources",this._getSaveFieldResources(u)),w.set("BBox",h),k=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")],(0,v.writeDict)(f,k,y),k.push("\nendobj\n"),S=["".concat(p.num," ").concat(p.gen," obj\n")],(0,v.writeDict)(w,S,b),S.push(" stream\n",c,"\nendstream\nendobj\n"),e.abrupt("return",[{ref:this.ref,data:k.join(""),xfa:d},{ref:p,data:S.join(""),xfa:null}]);case 39:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})},{key:"_getAppearance",value:(r=C(i.default.mark((function e(t,r,n){var a,s,l,u,f,h,d,p,g,m,v,y,b,w,k,S,x,A;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=this.hasFieldFlag(o.AnnotationFieldFlag.PASSWORD),n&&!a){e.next=3;break}return e.abrupt("return",null);case 3:if(s=n.get(this.data.id),void 0!==(l=s&&s.value)){e.next=7;break}return e.abrupt("return",null);case 7:if(""!==(l=l.trim())){e.next=10;break}return e.abrupt("return","");case 10:return u=-1,this.data.multiLine&&(u=l.split(/\r\n|\r|\n/).length),h=f=2,d=this.data.rect[3]-this.data.rect[1],p=this.data.rect[2]-this.data.rect[0],this._defaultAppearance||(this.data.defaultAppearanceData=(0,c.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g")),g=this._computeFontSize(d,u),m=F(g,2),v=m[0],y=m[1],e.next=20,this._getFontData(t,r);case 20:if(b=e.sent,w=b.descent,isNaN(w)&&(w=0),k=f+Math.abs(w)*y,S=this.data.textAlignment,!this.data.multiLine){e.next=27;break}return e.abrupt("return",this._getMultilineAppearance(v,l,b,y,p,d,S,h,k));case 27:if(x=b.encodeString(l).join(""),!this.data.comb){e.next=30;break}return e.abrupt("return",this._getCombAppearance(v,b,x,p,h,k));case 30:if(!(0===S||S>2)){e.next=32;break}return e.abrupt("return","/Tx BMC q BT "+v+" 1 0 0 1 ".concat(h," ").concat(k," Tm (").concat((0,o.escapeString)(x),") Tj")+" ET Q EMC");case 32:return A=this._renderText(x,b,y,p,S,h,k),e.abrupt("return","/Tx BMC q BT "+v+" 1 0 0 1 0 0 Tm ".concat(A)+" ET Q EMC");case 34:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"_getFontData",value:(t=C(i.default.mark((function e(t,r){var n,a,o,s,c;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new g.OperatorList,a={font:null,clone:function(){return this}},o=this.data.defaultAppearanceData,s=o.fontName,c=o.fontSize,e.next=5,t.handleSetFont(this._fieldResources.mergedResources,[s&&l.Name.get(s),c],null,n,r,a,null);case 5:return e.abrupt("return",a.font);case 6:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"_computeFontSize",value:function(e,t){var r=this.data.defaultAppearanceData.fontSize;if(!r){var n=function(e){return Math.round(10*e)/10};if(-1===t)r=n(.8*e);else{var a=(r=10)/.8,i=Math.round(e/a);r=n(.8*(a=e/(i=Math.max(i,t))))}var o=this.data.defaultAppearanceData,s=o.fontName,l=o.fontColor;this._defaultAppearance=(0,c.createDefaultAppearance)({fontSize:r,fontName:s,fontColor:l})}return[this._defaultAppearance,r]}},{key:"_renderText",value:function(e,t,r,n,a,i,s){var c,l,u=r/1e3,f=0,h=A(t.charsToGlyphs(e));try{for(h.s();!(c=h.n()).done;)f+=c.value.width*u}catch(e){h.e(e)}finally{h.f()}return l=(l=1===a?(n-f)/2:2===a?n-f-i:i).toFixed(2),s=s.toFixed(2),"".concat(l," ").concat(s," Td (").concat((0,o.escapeString)(e),") Tj")}},{key:"_getSaveFieldResources",value:function(e){var t=this._fieldResources,r=t.localResources,n=t.appearanceResources,a=t.acroFormResources,i=this.data.defaultAppearanceData&&this.data.defaultAppearanceData.fontName;if(!i)return r||l.Dict.empty;for(var o=0,s=[r,n];o<s.length;o++){var c=s[o];if(c instanceof l.Dict){var u=c.get("Font");if(u instanceof l.Dict&&u.has(i))return c}}if(a instanceof l.Dict){var f=a.get("Font");if(f instanceof l.Dict&&f.has(i)){var h=new l.Dict(e);h.set(i,f.getRaw(i));var d=new l.Dict(e);return d.set("Font",h),l.Dict.merge({xref:e,dictArray:[d,r],mergeSubDicts:!0})}}return r||l.Dict.empty}},{key:"getFieldObject",value:function(){return null}}]),u}(D),$=function(e){b(r,e);var t=k(r);function r(e){var n;P(this,r),(n=t.call(this,e))._hasText=!0;var a=e.dict;(0,o.isString)(n.data.fieldValue)||(n.data.fieldValue="");var i=(0,s.getInheritableProperty)({dict:a,key:"Q"});(!Number.isInteger(i)||i<0||i>2)&&(i=null),n.data.textAlignment=i;var c=(0,s.getInheritableProperty)({dict:a,key:"MaxLen"});return(!Number.isInteger(c)||c<0)&&(c=null),n.data.maxLen=c,n.data.multiLine=n.hasFieldFlag(o.AnnotationFieldFlag.MULTILINE),n.data.comb=n.hasFieldFlag(o.AnnotationFieldFlag.COMB)&&!n.hasFieldFlag(o.AnnotationFieldFlag.MULTILINE)&&!n.hasFieldFlag(o.AnnotationFieldFlag.PASSWORD)&&!n.hasFieldFlag(o.AnnotationFieldFlag.FILESELECT)&&null!==n.data.maxLen,n}return E(r,[{key:"_getCombAppearance",value:function(e,t,r,n,a,i){var s,c=(n/this.data.maxLen).toFixed(2),l=[],u=A(t.getCharPositions(r));try{for(u.s();!(s=u.n()).done;){var f=F(s.value,2),h=f[0],d=f[1];l.push("(".concat((0,o.escapeString)(r.substring(h,d)),") Tj"))}}catch(e){u.e(e)}finally{u.f()}var p=l.join(" ".concat(c," 0 Td "));return"/Tx BMC q BT "+e+" 1 0 0 1 ".concat(a," ").concat(i," Tm ").concat(p)+" ET Q EMC"}},{key:"_getMultilineAppearance",value:function(e,t,r,n,a,i,o,s,c){var l,u=[],f=a-2*s,h=A(t.split(/\r\n|\r|\n/));try{for(h.s();!(l=h.n()).done;){var d,p=l.value,g=A(this._splitLine(p,r,n,f));try{for(g.s();!(d=g.n()).done;){var m=d.value,v=0===u.length?s:0;u.push(this._renderText(m,r,n,a,o,v,-n))}}catch(e){g.e(e)}finally{g.f()}}}catch(e){h.e(e)}finally{h.f()}var y=u.join("\n");return"/Tx BMC q BT "+e+" 1 0 0 1 0 ".concat(i," Tm ").concat(y)+" ET Q EMC"}},{key:"_splitLine",value:function(e,t,r,n){e=t.encodeString(e).join("");var a=t.charsToGlyphs(e);if(a.length<=1)return[e];for(var i=t.getCharPositions(e),o=r/1e3,s=[],c=-1,l=-1,u=-1,f=0,h=0,d=0,p=a.length;d<p;d++){var g=F(i[d],2),m=g[0],v=g[1],y=a[d],b=y.width*o;" "===y.unicode?h+b>n?(s.push(e.substring(f,m)),f=m,h=b,c=-1,u=-1):(h+=b,c=m,l=v,u=d):h+b>n?-1!==c?(s.push(e.substring(f,l)),f=l,d=u+1,c=-1,h=0):(s.push(e.substring(f,m)),f=m,h=b):h+=b}return f<e.length&&s.push(e.substring(f,e.length)),s}},{key:"getFieldObject",value:function(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue,multiline:this.data.multiLine,password:this.hasFieldFlag(o.AnnotationFieldFlag.PASSWORD),charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"text"}}}]),r}(U),q=function(e){b(c,e);var t,r,n,a,s=k(c);function c(e){var t;return P(this,c),(t=s.call(this,e)).checkedAppearance=null,t.uncheckedAppearance=null,t.data.checkBox=!t.hasFieldFlag(o.AnnotationFieldFlag.RADIO)&&!t.hasFieldFlag(o.AnnotationFieldFlag.PUSHBUTTON),t.data.radioButton=t.hasFieldFlag(o.AnnotationFieldFlag.RADIO)&&!t.hasFieldFlag(o.AnnotationFieldFlag.PUSHBUTTON),t.data.pushButton=t.hasFieldFlag(o.AnnotationFieldFlag.PUSHBUTTON),t.data.isTooltipOnly=!1,t.data.checkBox?t._processCheckBox(e):t.data.radioButton?t._processRadioButton(e):t.data.pushButton?t._processPushButton(e):(0,o.warn)("Invalid field flags for button widget annotation"),t}return E(c,[{key:"getOperatorList",value:(a=C(i.default.mark((function e(t,r,n,a){var o,s,l,u,f;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.data.pushButton){e.next=2;break}return e.abrupt("return",y(x(c.prototype),"getOperatorList",this).call(this,t,r,!1,a));case 2:if(o=null,a&&(s=a.get(this.data.id),o=s?s.value:null),null!==o){e.next=8;break}if(!this.appearance){e.next=7;break}return e.abrupt("return",y(x(c.prototype),"getOperatorList",this).call(this,t,r,n,a));case 7:o=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue;case 8:if(!(l=o?this.checkedAppearance:this.uncheckedAppearance)){e.next=15;break}return u=this.appearance,this.appearance=l,f=y(x(c.prototype),"getOperatorList",this).call(this,t,r,n,a),this.appearance=u,e.abrupt("return",f);case 15:return e.abrupt("return",new g.OperatorList);case 16:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return a.apply(this,arguments)})},{key:"save",value:(n=C(i.default.mark((function e(t,r,n){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.data.checkBox){e.next=2;break}return e.abrupt("return",this._saveCheckbox(t,r,n));case 2:if(!this.data.radioButton){e.next=4;break}return e.abrupt("return",this._saveRadioButton(t,r,n));case 4:return e.abrupt("return",null);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})},{key:"_saveCheckbox",value:(r=C(i.default.mark((function e(t,r,n){var a,s,c,u,f,h,d,p;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",null);case 2:if(a=n.get(this.data.id),void 0!==(s=a&&a.value)){e.next=6;break}return e.abrupt("return",null);case 6:if(this.data.fieldValue===this.data.exportValue!==s){e.next=9;break}return e.abrupt("return",null);case 9:if(c=t.xref.fetchIfRef(this.ref),(0,l.isDict)(c)){e.next=12;break}return e.abrupt("return",null);case 12:return u={path:(0,o.stringToPDFString)(c.get("T")||""),value:s?this.data.exportValue:""},f=l.Name.get(s?this.data.exportValue:"Off"),c.set("V",f),c.set("AS",f),c.set("M","D:".concat((0,o.getModificationDate)())),h=t.xref.encrypt,d=null,h&&(d=h.createCipherTransform(this.ref.num,this.ref.gen)),p=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")],(0,v.writeDict)(c,p,d),p.push("\nendobj\n"),e.abrupt("return",[{ref:this.ref,data:p.join(""),xfa:u}]);case 24:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"_saveRadioButton",value:(t=C(i.default.mark((function e(t,r,n){var a,s,c,u,f,h,d,p,g,m,y,b;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",null);case 2:if(a=n.get(this.data.id),void 0!==(s=a&&a.value)){e.next=6;break}return e.abrupt("return",null);case 6:if(this.data.fieldValue===this.data.buttonValue!==s){e.next=9;break}return e.abrupt("return",null);case 9:if(c=t.xref.fetchIfRef(this.ref),(0,l.isDict)(c)){e.next=12;break}return e.abrupt("return",null);case 12:return u={path:(0,o.stringToPDFString)(c.get("T")||""),value:s?this.data.buttonValue:""},f=l.Name.get(s?this.data.buttonValue:"Off"),h=null,d=t.xref.encrypt,s&&((0,l.isRef)(this.parent)?(p=t.xref.fetch(this.parent),g=null,d&&(g=d.createCipherTransform(this.parent.num,this.parent.gen)),p.set("V",f),h=["".concat(this.parent.num," ").concat(this.parent.gen," obj\n")],(0,v.writeDict)(p,h,g),h.push("\nendobj\n")):(0,l.isDict)(this.parent)&&this.parent.set("V",f)),c.set("AS",f),c.set("M","D:".concat((0,o.getModificationDate)())),m=null,d&&(m=d.createCipherTransform(this.ref.num,this.ref.gen)),y=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")],(0,v.writeDict)(c,y,m),y.push("\nendobj\n"),b=[{ref:this.ref,data:y.join(""),xfa:u}],null!==h&&b.push({ref:this.parent,data:h.join(""),xfa:null}),e.abrupt("return",b);case 27:case"end":return e.stop()}}),e,this)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"_getDefaultCheckedAppearance",value:function(e,t){var r,n,a=this.data.rect[2]-this.data.rect[0],i=this.data.rect[3]-this.data.rect[1],s=[0,0,a,i],c=.8*Math.min(a,i);"check"===t?(r={width:.755*c,height:.705*c},n="3"):"disc"===t?(r={width:.791*c,height:.705*c},n="l"):(0,o.unreachable)("_getDefaultCheckedAppearance - unsupported type: ".concat(t));var u=(a-r.width)/2,f=(i-r.height)/2,h="q BT /PdfJsZaDb ".concat(c," Tf 0 g ").concat(u," ").concat(f," Td (").concat(n,") Tj ET Q"),d=new l.Dict(e.xref);d.set("FormType",1),d.set("Subtype",l.Name.get("Form")),d.set("Type",l.Name.get("XObject")),d.set("BBox",s),d.set("Matrix",[1,0,0,1,0,0]),d.set("Length",h.length);var p=new l.Dict(e.xref),g=new l.Dict(e.xref);g.set("PdfJsZaDb",this.fallbackFontDict),p.set("Font",g),d.set("Resources",p),this.checkedAppearance=new m.StringStream(h),this.checkedAppearance.dict=d,this._streams.push(this.checkedAppearance)}},{key:"_processCheckBox",value:function(e){var t=e.dict.get("AP");if((0,l.isDict)(t)){var r=t.get("N");if((0,l.isDict)(r)){var n=this._decodeFormValue(e.dict.get("AS"));"string"==typeof n&&(this.data.fieldValue=n);var a=null!==this.data.fieldValue&&"Off"!==this.data.fieldValue?this.data.fieldValue:"Yes",i=r.getKeys();if(0===i.length)i.push("Off",a);else if(1===i.length)"Off"===i[0]?i.push(a):i.unshift("Off");else if(i.includes(a))i.length=0,i.push("Off",a);else{var o=i.find((function(e){return"Off"!==e}));i.length=0,i.push("Off",o)}i.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=i[1],this.checkedAppearance=r.get(this.data.exportValue)||null,this.uncheckedAppearance=r.get("Off")||null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict}}}},{key:"_processRadioButton",value:function(e){this.data.fieldValue=this.data.buttonValue=null;var t=e.dict.get("Parent");if((0,l.isDict)(t)){this.parent=e.dict.getRaw("Parent");var r=t.get("V");(0,l.isName)(r)&&(this.data.fieldValue=this._decodeFormValue(r))}var n=e.dict.get("AP");if((0,l.isDict)(n)){var a=n.get("N");if((0,l.isDict)(a)){var i,o=A(a.getKeys());try{for(o.s();!(i=o.n()).done;){var s=i.value;if("Off"!==s){this.data.buttonValue=this._decodeFormValue(s);break}}}catch(e){o.e(e)}finally{o.f()}this.checkedAppearance=a.get(this.data.buttonValue)||null,this.uncheckedAppearance=a.get("Off")||null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict}}}},{key:"_processPushButton",value:function(e){e.dict.has("A")||e.dict.has("AA")||this.data.alternativeText?(this.data.isTooltipOnly=!e.dict.has("A")&&!e.dict.has("AA"),f.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl})):(0,o.warn)("Push buttons without action dictionaries are not supported")}},{key:"getFieldObject",value:function(){var e,t="button";return this.data.checkBox?(t="checkbox",e=this.data.exportValue):this.data.radioButton&&(t="radiobutton",e=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:e,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:t}}},{key:"fallbackFontDict",get:function(){var e=new l.Dict;return e.set("BaseFont",l.Name.get("ZapfDingbats")),e.set("Type",l.Name.get("FallbackType")),e.set("Subtype",l.Name.get("FallbackType")),e.set("Encoding",l.Name.get("ZapfDingbatsEncoding")),(0,o.shadow)(this,"fallbackFontDict",e)}}]),c}(U),X=function(e){b(r,e);var t=k(r);function r(e){var n;P(this,r),(n=t.call(this,e)).data.options=[];var a=(0,s.getInheritableProperty)({dict:e.dict,key:"Opt"});if(Array.isArray(a))for(var i=e.xref,c=0,l=a.length;c<l;c++){var u=i.fetchIfRef(a[c]),f=Array.isArray(u);n.data.options[c]={exportValue:n._decodeFormValue(f?i.fetchIfRef(u[0]):u),displayValue:n._decodeFormValue(f?i.fetchIfRef(u[1]):u)}}return(0,o.isString)(n.data.fieldValue)?n.data.fieldValue=[n.data.fieldValue]:n.data.fieldValue||(n.data.fieldValue=[]),n.data.combo=n.hasFieldFlag(o.AnnotationFieldFlag.COMBO),n.data.multiSelect=n.hasFieldFlag(o.AnnotationFieldFlag.MULTISELECT),n._hasText=!0,n}return E(r,[{key:"getFieldObject",value:function(){var e=this.data.combo?"combobox":"listbox",t=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:t,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:e}}}]),r}(U),H=function(e){b(r,e);var t=k(r);function r(e){var n;return P(this,r),(n=t.call(this,e)).data.fieldValue=null,n}return E(r,[{key:"getFieldObject",value:function(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}]),r}(U),z=function(e){b(r,e);var t=k(r);function r(e){var n;P(this,r),n=t.call(this,e);var a=e.dict;return n.data.annotationType=o.AnnotationType.TEXT,n.data.hasAppearance?n.data.name="NoIcon":(n.data.rect[1]=n.data.rect[3]-22,n.data.rect[2]=n.data.rect[0]+22,n.data.name=a.has("Name")?a.get("Name").name:"Note"),a.has("State")?(n.data.state=a.get("State")||null,n.data.stateModel=a.get("StateModel")||null):(n.data.state=null,n.data.stateModel=null),n}return r}(L),W=function(e){b(r,e);var t=k(r);function r(e){var n;P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.LINK;var a=R(e.dict,n.rectangle);return a&&(n.data.quadPoints=a),f.Catalog.parseDestDictionary({destDict:e.dict,resultObj:n.data,docBaseUrl:e.pdfManager.docBaseUrl}),n}return r}(D),G=function(e){b(r,e);var t=k(r);function r(e){var n;P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.POPUP;var a=e.dict.get("Parent");if(!a)return(0,o.warn)("Popup annotation has a missing or invalid parent annotation."),S(n);var i=a.get("Subtype");n.data.parentType=(0,l.isName)(i)?i.name:null;var s=e.dict.getRaw("Parent");n.data.parentId=(0,l.isRef)(s)?s.toString():null;var c=a.getArray("Rect");Array.isArray(c)&&4===c.length?n.data.parentRect=o.Util.normalizeRect(c):n.data.parentRect=[0,0,0,0];var u=a.get("RT");if((0,l.isName)(u,o.AnnotationReplyType.GROUP)&&(a=a.get("IRT")),a.has("M")?(n.setModificationDate(a.get("M")),n.data.modificationDate=n.modificationDate):n.data.modificationDate=null,a.has("C")?(n.setColor(a.getArray("C")),n.data.color=n.color):n.data.color=null,!n.viewable){var f=a.get("F");n._isViewable(f)&&n.setFlags(f)}return n.setTitle(a.get("T")),n.data.titleObj=n._title,n.setContents(a.get("Contents")),n.data.contentsObj=n._contents,n}return r}(D),V=function(e){b(r,e);var t=k(r);function r(e){var n;return P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.FREETEXT,n}return r}(L),Y=function(e){b(r,e);var t=k(r);function r(e){var n;P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.LINE;var a=e.dict.getArray("L");if(n.data.lineCoordinates=o.Util.normalizeRect(a),!n.appearance){var i=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],s=e.dict.get("CA"),c=null,l=e.dict.getArray("IC");l&&(c=(l=M(l,null))?Array.from(l).map((function(e){return e/255})):null);var u=c?s:null,f=n.borderStyle.width||1,h=2*f,d=[n.data.lineCoordinates[0]-h,n.data.lineCoordinates[1]-h,n.data.lineCoordinates[2]+h,n.data.lineCoordinates[3]+h];o.Util.intersect(n.rectangle,d)||(n.rectangle=d),n._setDefaultAppearance({xref:e.xref,extra:"".concat(f," w"),strokeColor:i,fillColor:c,strokeAlpha:s,fillAlpha:u,pointsCallback:function(e,t){return e.push("".concat(a[0]," ").concat(a[1]," m"),"".concat(a[2]," ").concat(a[3]," l"),"S"),[t[0].x-f,t[1].x+f,t[3].y-f,t[1].y+f]}})}return n}return r}(L),K=function(e){b(r,e);var t=k(r);function r(e){var n;if(P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.SQUARE,!n.appearance){var a=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],i=e.dict.get("CA"),s=null,c=e.dict.getArray("IC");c&&(c=M(c,null),s=c?Array.from(c).map((function(e){return e/255})):null);var l=s?i:null;n._setDefaultAppearance({xref:e.xref,extra:"".concat(n.borderStyle.width," w"),strokeColor:a,fillColor:s,strokeAlpha:i,fillAlpha:l,pointsCallback:function(e,t){var r=t[2].x+n.borderStyle.width/2,a=t[2].y+n.borderStyle.width/2,i=t[3].x-t[2].x-n.borderStyle.width,o=t[1].y-t[3].y-n.borderStyle.width;return e.push("".concat(r," ").concat(a," ").concat(i," ").concat(o," re")),s?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}return n}return r}(L),J=function(e){b(r,e);var t=k(r);function r(e){var n;if(P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.CIRCLE,!n.appearance){var a=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],i=e.dict.get("CA"),s=null,c=e.dict.getArray("IC");c&&(c=M(c,null),s=c?Array.from(c).map((function(e){return e/255})):null);var l=s?i:null,u=4/3*Math.tan(Math.PI/8);n._setDefaultAppearance({xref:e.xref,extra:"".concat(n.borderStyle.width," w"),strokeColor:a,fillColor:s,strokeAlpha:i,fillAlpha:l,pointsCallback:function(e,t){var r=t[0].x+n.borderStyle.width/2,a=t[0].y-n.borderStyle.width/2,i=t[3].x-n.borderStyle.width/2,o=t[3].y+n.borderStyle.width/2,c=r+(i-r)/2,l=a+(o-a)/2,f=(i-r)/2*u,h=(o-a)/2*u;return e.push("".concat(c," ").concat(o," m"),"".concat(c+f," ").concat(o," ").concat(i," ").concat(l+h," ").concat(i," ").concat(l," c"),"".concat(i," ").concat(l-h," ").concat(c+f," ").concat(a," ").concat(c," ").concat(a," c"),"".concat(c-f," ").concat(a," ").concat(r," ").concat(l-h," ").concat(r," ").concat(l," c"),"".concat(r," ").concat(l+h," ").concat(c-f," ").concat(o," ").concat(c," ").concat(o," c"),"h"),s?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}return n}return r}(L),Z=function(e){b(r,e);var t=k(r);function r(e){var n;P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.POLYLINE,n.data.vertices=[];var a=e.dict.getArray("Vertices");if(!Array.isArray(a))return S(n);for(var i=0,s=a.length;i<s;i+=2)n.data.vertices.push({x:a[i],y:a[i+1]});if(!n.appearance){var c,l=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],u=e.dict.get("CA"),f=n.borderStyle.width||1,h=2*f,d=[1/0,1/0,-1/0,-1/0],p=A(n.data.vertices);try{for(p.s();!(c=p.n()).done;){var g=c.value;d[0]=Math.min(d[0],g.x-h),d[1]=Math.min(d[1],g.y-h),d[2]=Math.max(d[2],g.x+h),d[3]=Math.max(d[3],g.y+h)}}catch(e){p.e(e)}finally{p.f()}o.Util.intersect(n.rectangle,d)||(n.rectangle=d),n._setDefaultAppearance({xref:e.xref,extra:"".concat(f," w"),strokeColor:l,strokeAlpha:u,pointsCallback:function(e,t){for(var r=n.data.vertices,a=0,i=r.length;a<i;a++)e.push("".concat(r[a].x," ").concat(r[a].y," ").concat(0===a?"m":"l"));return e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}return n}return r}(L),Q=function(e){b(r,e);var t=k(r);function r(e){var n;return P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.POLYGON,n}return r}(Z),ee=function(e){b(r,e);var t=k(r);function r(e){var n;return P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.CARET,n}return r}(L),te=function(e){b(r,e);var t=k(r);function r(e){var n;P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.INK,n.data.inkLists=[];var a=e.dict.getArray("InkList");if(!Array.isArray(a))return S(n);for(var i=e.xref,s=0,c=a.length;s<c;++s){n.data.inkLists.push([]);for(var l=0,u=a[s].length;l<u;l+=2)n.data.inkLists[s].push({x:i.fetchIfRef(a[s][l]),y:i.fetchIfRef(a[s][l+1])})}if(!n.appearance){var f,h=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],d=e.dict.get("CA"),p=n.borderStyle.width||1,g=2*p,m=[1/0,1/0,-1/0,-1/0],v=A(n.data.inkLists);try{for(v.s();!(f=v.n()).done;){var y,b=A(f.value);try{for(b.s();!(y=b.n()).done;){var w=y.value;m[0]=Math.min(m[0],w.x-g),m[1]=Math.min(m[1],w.y-g),m[2]=Math.max(m[2],w.x+g),m[3]=Math.max(m[3],w.y+g)}}catch(e){b.e(e)}finally{b.f()}}}catch(e){v.e(e)}finally{v.f()}o.Util.intersect(n.rectangle,m)||(n.rectangle=m),n._setDefaultAppearance({xref:e.xref,extra:"".concat(p," w"),strokeColor:h,strokeAlpha:d,pointsCallback:function(e,t){var r,a=A(n.data.inkLists);try{for(a.s();!(r=a.n()).done;){for(var i=r.value,o=0,s=i.length;o<s;o++)e.push("".concat(i[o].x," ").concat(i[o].y," ").concat(0===o?"m":"l"));e.push("S")}}catch(e){a.e(e)}finally{a.f()}return[t[0].x,t[1].x,t[3].y,t[1].y]}})}return n}return r}(L),re=function(e){b(r,e);var t=k(r);function r(e){var n;if(P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.HIGHLIGHT,n.data.quadPoints=R(e.dict,null)){var a=n.appearance&&n.appearance.dict.get("Resources");if(!n.appearance||!a||!a.has("ExtGState")){n.appearance&&(0,o.warn)("HighlightAnnotation - ignoring built-in appearance stream.");var i=n.color?Array.from(n.color).map((function(e){return e/255})):[1,1,0],s=e.dict.get("CA");n._setDefaultAppearance({xref:e.xref,fillColor:i,blendMode:"Multiply",fillAlpha:s,pointsCallback:function(e,t){return e.push("".concat(t[0].x," ").concat(t[0].y," m"),"".concat(t[1].x," ").concat(t[1].y," l"),"".concat(t[3].x," ").concat(t[3].y," l"),"".concat(t[2].x," ").concat(t[2].y," l"),"f"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}else n.data.hasPopup=!1;return n}return r}(L),ne=function(e){b(r,e);var t=k(r);function r(e){var n;if(P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.UNDERLINE,n.data.quadPoints=R(e.dict,null)){if(!n.appearance){var a=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],i=e.dict.get("CA");n._setDefaultAppearance({xref:e.xref,extra:"[] 0 d 1 w",strokeColor:a,strokeAlpha:i,pointsCallback:function(e,t){return e.push("".concat(t[2].x," ").concat(t[2].y," m"),"".concat(t[3].x," ").concat(t[3].y," l"),"S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}else n.data.hasPopup=!1;return n}return r}(L),ae=function(e){b(r,e);var t=k(r);function r(e){var n;if(P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.SQUIGGLY,n.data.quadPoints=R(e.dict,null)){if(!n.appearance){var a=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],i=e.dict.get("CA");n._setDefaultAppearance({xref:e.xref,extra:"[] 0 d 1 w",strokeColor:a,strokeAlpha:i,pointsCallback:function(e,t){var r=(t[0].y-t[2].y)/6,n=r,a=t[2].x,i=t[2].y,o=t[3].x;e.push("".concat(a," ").concat(i+n," m"));do{a+=2,n=0===n?r:0,e.push("".concat(a," ").concat(i+n," l"))}while(a<o);return e.push("S"),[t[2].x,o,i-2*r,i+2*r]}})}}else n.data.hasPopup=!1;return n}return r}(L),ie=function(e){b(r,e);var t=k(r);function r(e){var n;if(P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.STRIKEOUT,n.data.quadPoints=R(e.dict,null)){if(!n.appearance){var a=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],i=e.dict.get("CA");n._setDefaultAppearance({xref:e.xref,extra:"[] 0 d 1 w",strokeColor:a,strokeAlpha:i,pointsCallback:function(e,t){return e.push("".concat((t[0].x+t[2].x)/2," ")+"".concat((t[0].y+t[2].y)/2," m"),"".concat((t[1].x+t[3].x)/2," ")+"".concat((t[1].y+t[3].y)/2," l"),"S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}else n.data.hasPopup=!1;return n}return r}(L),oe=function(e){b(r,e);var t=k(r);function r(e){var n;return P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.STAMP,n}return r}(L),se=function(e){b(r,e);var t=k(r);function r(e){var n;P(this,r),n=t.call(this,e);var a=new d.FileSpec(e.dict.get("FS"),e.xref);return n.data.annotationType=o.AnnotationType.FILEATTACHMENT,n.data.file=a.serializable,n}return r}(L)},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultAppearance=function(e){var t,r=e.fontSize,n=e.fontName,a=e.fontColor;return t=a.every((function(e){return 0===e}))?"0 g":Array.from(a).map((function(e){return(e/255).toFixed(2)})).join(" ")+" rg","/".concat((0,o.escapePDFName)(n)," ").concat(r," Tf ").concat(t)},t.parseDefaultAppearance=function(e){return new g(e).parse()};var a=r(4),i=r(137),o=r(122),s=r(138),c=r(118),l=r(123);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function d(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(g,e);var t,r,n,o,s=(n=g,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=p(n);if(o){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return d(this,e)});function g(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),s.call(this,new l.StringStream(e))}return t=g,(r=[{key:"parse",value:function(){var e,t,r={fn:0,args:[]},n={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;r.args.length=0,this.read(r);)if(0===this.savedStatesDepth){var o=r.fn,s=r.args;switch(0|o){case a.OPS.setFont:var l=(t=2,function(e){if(Array.isArray(e))return e}(e=s)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=l[0],h=l[1];f instanceof c.Name&&(n.fontName=f.name),"number"==typeof h&&h>0&&(n.fontSize=h);break;case a.OPS.setFillRGBColor:i.ColorSpace.singletons.rgb.getRgbItem(s,0,n.fontColor,0);break;case a.OPS.setFillGray:i.ColorSpace.singletons.gray.getRgbItem(s,0,n.fontColor,0);break;case a.OPS.setFillColorSpace:i.ColorSpace.singletons.cmyk.getRgbItem(s,0,n.fontColor,0)}}}catch(e){(0,a.warn)('parseDefaultAppearance - ignoring errors: "'.concat(e,'".'))}return n}}])&&f(t.prototype,r),g}(s.EvaluatorPreprocessor)},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0;var a,i=(a=r(2))&&a.__esModule?a:{default:a},o=r(4),s=r(118),c=r(122);function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=d(e);if(t){var a=d(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&m(e.prototype,t),r&&m(e,r),e}var y=function(){function e(t,r){g(this,e),this.constructor===e&&(0,o.unreachable)("Cannot initialize ColorSpace."),this.name=t,this.numComps=r}var t,r;return v(e,[{key:"getRgb",value:function(e,t){var r=new Uint8ClampedArray(3);return this.getRgbItem(e,t,r,0),r}},{key:"getRgbItem",value:function(e,t,r,n){(0,o.unreachable)("Should not call ColorSpace.getRgbItem")}},{key:"getRgbBuffer",value:function(e,t,r,n,a,i,s){(0,o.unreachable)("Should not call ColorSpace.getRgbBuffer")}},{key:"getOutputLength",value:function(e,t){(0,o.unreachable)("Should not call ColorSpace.getOutputLength")}},{key:"isPassthrough",value:function(e){return!1}},{key:"isDefaultDecode",value:function(t,r){return e.isDefaultDecode(t,this.numComps)}},{key:"fillRgb",value:function(e,t,r,n,a,i,o,s,c){var l=t*r,u=null,f=1<<o,h=r!==a||t!==n;if(this.isPassthrough(o))u=s;else if(1===this.numComps&&l>f&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var d=o<=8?new Uint8Array(f):new Uint16Array(f),p=0;p<f;p++)d[p]=p;var g=new Uint8ClampedArray(3*f);if(this.getRgbBuffer(d,0,f,g,0,o,0),h){u=new Uint8Array(3*l);for(var m=0,v=0;v<l;++v){var y=3*s[v];u[m++]=g[y],u[m++]=g[y+1],u[m++]=g[y+2]}}else for(var b=0,w=0;w<l;++w){var k=3*s[w];e[b++]=g[k],e[b++]=g[k+1],e[b++]=g[k+2],b+=c}}else h?(u=new Uint8ClampedArray(3*l),this.getRgbBuffer(s,0,l,u,0,o,0)):this.getRgbBuffer(s,0,n*i,e,0,o,c);if(u)if(h)!function(e,t,r,n,a,i,o){o=1!==o?0:o;for(var s,c=r/a,l=n/i,u=0,f=new Uint16Array(a),h=3*r,d=0;d<a;d++)f[d]=3*Math.floor(d*c);for(var p=0;p<i;p++)for(var g=Math.floor(p*l)*h,m=0;m<a;m++)s=g+f[m],t[u++]=e[s++],t[u++]=e[s++],t[u++]=e[s++],u+=o}(u,e,t,r,n,a,c);else for(var S=0,x=0,A=0,O=n*i;A<O;A++)e[S++]=u[x++],e[S++]=u[x++],e[S++]=u[x++],S+=c}},{key:"usesZeroToOneRange",get:function(){return(0,o.shadow)(this,"usesZeroToOneRange",!0)}}],[{key:"_cache",value:function(e,t,r,n){if(!r)throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.');if(!n)throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.');var a,i;e instanceof s.Ref&&(i=e,e=t.fetch(e)),e instanceof s.Name&&(a=e.name),(a||i)&&r.set(a,i,n)}},{key:"getCached",value:function(e,t,r){if(!r)throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.');if(e instanceof s.Ref){var n=r.getByRef(e);if(n)return n;try{e=t.fetch(e)}catch(e){if(e instanceof c.MissingDataException)throw e}}if(e instanceof s.Name){var a=r.getByName(e.name);if(a)return a}return null}},{key:"parseAsync",value:(t=i.default.mark((function e(t){var r,n,a,o,s,c,l;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cs,n=t.xref,a=t.resources,o=void 0===a?null:a,s=t.pdfFunctionFactory,c=t.localColorSpaceCache,l=this._parse(r,n,o,s),this._cache(r,n,c,l),e.abrupt("return",l);case 4:case"end":return e.stop()}}),e,this)})),r=function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(e){p(i,n,a,o,s,"next",e)}function s(e){p(i,n,a,o,s,"throw",e)}o(void 0)}))},function(e){return r.apply(this,arguments)})},{key:"parse",value:function(e){var t=e.cs,r=e.xref,n=e.resources,a=void 0===n?null:n,i=e.pdfFunctionFactory,o=e.localColorSpaceCache,s=this.getCached(t,r,o);if(s)return s;var c=this._parse(t,r,a,i);return this._cache(t,r,o,c),c}},{key:"_parse",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;if(e=t.fetchIfRef(e),(0,s.isName)(e))switch(e.name){case"DeviceGray":case"G":return this.singletons.gray;case"DeviceRGB":case"RGB":return this.singletons.rgb;case"DeviceCMYK":case"CMYK":return this.singletons.cmyk;case"Pattern":return new w(null);default:if((0,s.isDict)(r)){var a=r.get("ColorSpace");if((0,s.isDict)(a)){var i=a.get(e.name);if(i){if((0,s.isName)(i))return this._parse(i,t,r,n);e=i;break}}}throw new o.FormatError("Unrecognized ColorSpace: ".concat(e.name))}if(Array.isArray(e)){var c,l,u,f,h,d,p=t.fetchIfRef(e[0]).name;switch(p){case"DeviceGray":case"G":return this.singletons.gray;case"DeviceRGB":case"RGB":return this.singletons.rgb;case"DeviceCMYK":case"CMYK":return this.singletons.cmyk;case"CalGray":return f=(c=t.fetchIfRef(e[1])).getArray("WhitePoint"),h=c.getArray("BlackPoint"),d=c.get("Gamma"),new O(f,h,d);case"CalRGB":f=(c=t.fetchIfRef(e[1])).getArray("WhitePoint"),h=c.getArray("BlackPoint"),d=c.getArray("Gamma");var g=c.getArray("Matrix");return new C(f,h,d,g);case"ICCBased":var m=t.fetchIfRef(e[1]),v=m.dict;l=v.get("N");var y=v.get("Alternate");if(y){var S=this._parse(y,t,r,n);if(S.numComps===l)return S;(0,o.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===l)return this.singletons.gray;if(3===l)return this.singletons.rgb;if(4===l)return this.singletons.cmyk;break;case"Pattern":return(u=e[1]||null)&&(u=this._parse(u,t,r,n)),new w(u);case"Indexed":case"I":u=this._parse(e[1],t,r,n);var x=t.fetchIfRef(e[2])+1,A=t.fetchIfRef(e[3]);return new k(u,x,A);case"Separation":case"DeviceN":var T=t.fetchIfRef(e[1]);l=Array.isArray(T)?T.length:1,u=this._parse(e[2],t,r,n);var I=n.create(e[3]);return new b(l,u,I);case"Lab":f=(c=t.fetchIfRef(e[1])).getArray("WhitePoint"),h=c.getArray("BlackPoint");var P=c.getArray("Range");return new F(f,h,P);default:throw new o.FormatError("Unimplemented ColorSpace object: ".concat(p))}}throw new o.FormatError("Unrecognized ColorSpace object: ".concat(e))}},{key:"isDefaultDecode",value:function(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return(0,o.warn)("The decode map is not the correct length"),!0;for(var r=0,n=e.length;r<n;r+=2)if(0!==e[r]||1!==e[r+1])return!1;return!0}},{key:"singletons",get:function(){return(0,o.shadow)(this,"singletons",{get gray(){return(0,o.shadow)(this,"gray",new S)},get rgb(){return(0,o.shadow)(this,"rgb",new x)},get cmyk(){return(0,o.shadow)(this,"cmyk",new A)}})}}]),e}();t.ColorSpace=y;var b=function(e){l(r,e);var t=f(r);function r(e,n,a){var i;return g(this,r),(i=t.call(this,"Alternate",e)).base=n,i.tintFn=a,i.tmpBuf=new Float32Array(n.numComps),i}return v(r,[{key:"getRgbItem",value:function(e,t,r,n){var a=this.tmpBuf;this.tintFn(e,t,a,0),this.base.getRgbItem(a,0,r,n)}},{key:"getRgbBuffer",value:function(e,t,r,n,a,i,o){var s,c,l=this.tintFn,u=this.base,f=1/((1<<i)-1),h=u.numComps,d=u.usesZeroToOneRange,p=(u.isPassthrough(8)||!d)&&0===o,g=p?a:0,m=p?n:new Uint8ClampedArray(h*r),v=this.numComps,y=new Float32Array(v),b=new Float32Array(h);for(s=0;s<r;s++){for(c=0;c<v;c++)y[c]=e[t++]*f;if(l(y,0,b,0),d)for(c=0;c<h;c++)m[g++]=255*b[c];else u.getRgbItem(b,0,m,g),g+=h}p||u.getRgbBuffer(m,0,r,n,a,8,o)}},{key:"getOutputLength",value:function(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t)}}]),r}(y),w=function(e){l(r,e);var t=f(r);function r(e){var n;return g(this,r),(n=t.call(this,"Pattern",null)).base=e,n}return v(r,[{key:"isDefaultDecode",value:function(e,t){(0,o.unreachable)("Should not call PatternCS.isDefaultDecode")}}]),r}(y),k=function(e){l(r,e);var t=f(r);function r(e,n,a){var i;g(this,r),(i=t.call(this,"Indexed",1)).base=e,i.highVal=n;var c=e.numComps*n;if(i.lookup=new Uint8Array(c),(0,s.isStream)(a)){var l=a.getBytes(c);i.lookup.set(l)}else{if("string"!=typeof a)throw new o.FormatError("IndexedCS - unrecognized lookup table: ".concat(a));for(var u=0;u<c;++u)i.lookup[u]=255&a.charCodeAt(u)}return i}return v(r,[{key:"getRgbItem",value:function(e,t,r,n){var a=this.base.numComps,i=e[t]*a;this.base.getRgbBuffer(this.lookup,i,1,r,n,8,0)}},{key:"getRgbBuffer",value:function(e,t,r,n,a,i,o){for(var s=this.base,c=s.numComps,l=s.getOutputLength(c,o),u=this.lookup,f=0;f<r;++f){var h=e[t++]*c;s.getRgbBuffer(u,h,1,n,a,8,o),a+=l}}},{key:"getOutputLength",value:function(e,t){return this.base.getOutputLength(e*this.base.numComps,t)}},{key:"isDefaultDecode",value:function(e,t){return!Array.isArray(e)||(2!==e.length?((0,o.warn)("Decode map length is not correct"),!0):!Number.isInteger(t)||t<1?((0,o.warn)("Bits per component is not correct"),!0):0===e[0]&&e[1]===(1<<t)-1)}}]),r}(y),S=function(e){l(r,e);var t=f(r);function r(){return g(this,r),t.call(this,"DeviceGray",1)}return v(r,[{key:"getRgbItem",value:function(e,t,r,n){var a=255*e[t];r[n]=r[n+1]=r[n+2]=a}},{key:"getRgbBuffer",value:function(e,t,r,n,a,i,o){for(var s=255/((1<<i)-1),c=t,l=a,u=0;u<r;++u){var f=s*e[c++];n[l++]=f,n[l++]=f,n[l++]=f,l+=o}}},{key:"getOutputLength",value:function(e,t){return e*(3+t)}}]),r}(y),x=function(e){l(r,e);var t=f(r);function r(){return g(this,r),t.call(this,"DeviceRGB",3)}return v(r,[{key:"getRgbItem",value:function(e,t,r,n){r[n]=255*e[t],r[n+1]=255*e[t+1],r[n+2]=255*e[t+2]}},{key:"getRgbBuffer",value:function(e,t,r,n,a,i,o){if(8!==i||0!==o)for(var s=255/((1<<i)-1),c=t,l=a,u=0;u<r;++u)n[l++]=s*e[c++],n[l++]=s*e[c++],n[l++]=s*e[c++],l+=o;else n.set(e.subarray(t,t+3*r),a)}},{key:"getOutputLength",value:function(e,t){return e*(3+t)/3|0}},{key:"isPassthrough",value:function(e){return 8===e}}]),r}(y),A=function(){function e(e,t,r,n,a){var i=e[t]*r,o=e[t+1]*r,s=e[t+2]*r,c=e[t+3]*r;n[a]=255+i*(-4.387332384609988*i+54.48615194189176*o+18.82290502165302*s+212.25662451639585*c-285.2331026137004)+o*(1.7149763477362134*o-5.6096736904047315*s+-17.873870861415444*c-5.497006427196366)+s*(-2.5217340131683033*s-21.248923337353073*c+17.5119270841813)+c*(-21.86122147463605*c-189.48180835922747),n[a+1]=255+i*(8.841041422036149*i+60.118027045597366*o+6.871425592049007*s+31.159100130055922*c-79.2970844816548)+o*(-15.310361306967817*o+17.575251261109482*s+131.35250912493976*c-190.9453302588951)+s*(4.444339102852739*s+9.8632861493405*c-24.86741582555878)+c*(-20.737325471181034*c-187.80453709719578),n[a+2]=255+i*(.8842522430003296*i+8.078677503112928*o+30.89978309703729*s-.23883238689178934*c-14.183576799673286)+o*(10.49593273432072*o+63.02378494754052*s+50.606957656360734*c-112.23884253719248)+s*(.03296041114873217*s+115.60384449646641*c-193.58209356861505)+c*(-22.33816807309886*c-180.12613974708367)}return function(t){l(n,t);var r=f(n);function n(){return g(this,n),r.call(this,"DeviceCMYK",4)}return v(n,[{key:"getRgbItem",value:function(t,r,n,a){e(t,r,1,n,a)}},{key:"getRgbBuffer",value:function(t,r,n,a,i,o,s){for(var c=1/((1<<o)-1),l=0;l<n;l++)e(t,r,c,a,i),r+=4,i+=3+s}},{key:"getOutputLength",value:function(e,t){return e/4*(3+t)|0}}]),n}(y)}(),O=function(){function e(e,t,r,n,a,i){var o=t[r]*i,s=Math.pow(o,e.G),c=e.YW*s,l=Math.max(295.8*Math.pow(c,.3333333333333333)-40.8,0);n[a]=l,n[a+1]=l,n[a+2]=l}return function(t){l(n,t);var r=f(n);function n(e,t,a){var i;if(g(this,n),i=r.call(this,"CalGray",1),!e)throw new o.FormatError("WhitePoint missing - required for color space CalGray");if(t=t||[0,0,0],a=a||1,i.XW=e[0],i.YW=e[1],i.ZW=e[2],i.XB=t[0],i.YB=t[1],i.ZB=t[2],i.G=a,i.XW<0||i.ZW<0||1!==i.YW)throw new o.FormatError("Invalid WhitePoint components for ".concat(i.name)+", no fallback available");return(i.XB<0||i.YB<0||i.ZB<0)&&((0,o.info)("Invalid BlackPoint for ".concat(i.name,", falling back to default.")),i.XB=i.YB=i.ZB=0),0===i.XB&&0===i.YB&&0===i.ZB||(0,o.warn)("".concat(i.name,", BlackPoint: XB: ").concat(i.XB,", YB: ").concat(i.YB,", ")+"ZB: ".concat(i.ZB,", only default values are supported.")),i.G<1&&((0,o.info)("Invalid Gamma: ".concat(i.G," for ").concat(i.name,", ")+"falling back to default."),i.G=1),i}return v(n,[{key:"getRgbItem",value:function(t,r,n,a){e(this,t,r,n,a,1)}},{key:"getRgbBuffer",value:function(t,r,n,a,i,o,s){for(var c=1/((1<<o)-1),l=0;l<n;++l)e(this,t,r,a,i,c),r+=1,i+=3+s}},{key:"getOutputLength",value:function(e,t){return e*(3+t)}}]),n}(y)}(),C=function(){var e=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),t=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),r=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),n=new Float32Array([1,1,1]),a=new Float32Array(3),i=new Float32Array(3),s=new Float32Array(3),c=Math.pow(24/116,3)/8;function u(e,t,r){r[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2],r[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2],r[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}function h(e){return e<=.0031308?d(0,1,12.92*e):e>=.99554525?1:d(0,1,1.055*Math.pow(e,1/2.4)-.055)}function d(e,t,r){return Math.max(e,Math.min(t,r))}function p(e){return e<0?-p(-e):e>8?Math.pow((e+16)/116,3):e*c}function m(o,c,l,f,g,m){var v=d(0,1,c[l]*m),y=d(0,1,c[l+1]*m),b=d(0,1,c[l+2]*m),w=1===v?1:Math.pow(v,o.GR),k=1===y?1:Math.pow(y,o.GG),S=1===b?1:Math.pow(b,o.GB),x=o.MXA*w+o.MXB*k+o.MXC*S,A=o.MYA*w+o.MYB*k+o.MYC*S,O=o.MZA*w+o.MZB*k+o.MZC*S,C=i;C[0]=x,C[1]=A,C[2]=O;var F=s;!function(r,n,i){if(1===r[0]&&1===r[2])return i[0]=n[0],i[1]=n[1],void(i[2]=n[2]);var o=i;u(e,n,o);var s=a;!function(e,t,r){r[0]=1*t[0]/e[0],r[1]=1*t[1]/e[1],r[2]=1*t[2]/e[2]}(r,o,s),u(t,s,i)}(o.whitePoint,C,F);var T=i;!function(e,t,r){if(0===e[0]&&0===e[1]&&0===e[2])return r[0]=t[0],r[1]=t[1],void(r[2]=t[2]);var n=p(0),a=(1-n)/(1-p(e[0])),i=1-a,o=(1-n)/(1-p(e[1])),s=1-o,c=(1-n)/(1-p(e[2])),l=1-c;r[0]=t[0]*a+i,r[1]=t[1]*o+s,r[2]=t[2]*c+l}(o.blackPoint,F,T);var I=s;!function(r,n,i){var o=i;u(e,n,o);var s=a;!function(e,t,r){r[0]=.95047*t[0]/e[0],r[1]=1*t[1]/e[1],r[2]=1.08883*t[2]/e[2]}(r,o,s),u(t,s,i)}(n,T,I);var P=i;u(r,I,P),f[g]=255*h(P[0]),f[g+1]=255*h(P[1]),f[g+2]=255*h(P[2])}return function(e){l(r,e);var t=f(r);function r(e,n,a,i){var s;if(g(this,r),s=t.call(this,"CalRGB",3),!e)throw new o.FormatError("WhitePoint missing - required for color space CalRGB");n=n||new Float32Array(3),a=a||new Float32Array([1,1,1]),i=i||new Float32Array([1,0,0,0,1,0,0,0,1]);var c=e[0],l=e[1],u=e[2];s.whitePoint=e;var f=n[0],h=n[1],d=n[2];if(s.blackPoint=n,s.GR=a[0],s.GG=a[1],s.GB=a[2],s.MXA=i[0],s.MYA=i[1],s.MZA=i[2],s.MXB=i[3],s.MYB=i[4],s.MZB=i[5],s.MXC=i[6],s.MYC=i[7],s.MZC=i[8],c<0||u<0||1!==l)throw new o.FormatError("Invalid WhitePoint components for ".concat(s.name)+", no fallback available");return(f<0||h<0||d<0)&&((0,o.info)("Invalid BlackPoint for ".concat(s.name," [").concat(f,", ").concat(h,", ").concat(d,"], ")+"falling back to default."),s.blackPoint=new Float32Array(3)),(s.GR<0||s.GG<0||s.GB<0)&&((0,o.info)("Invalid Gamma [".concat(s.GR,", ").concat(s.GG,", ").concat(s.GB,"] for ")+"".concat(s.name,", falling back to default.")),s.GR=s.GG=s.GB=1),s}return v(r,[{key:"getRgbItem",value:function(e,t,r,n){m(this,e,t,r,n,1)}},{key:"getRgbBuffer",value:function(e,t,r,n,a,i,o){for(var s=1/((1<<i)-1),c=0;c<r;++c)m(this,e,t,n,a,s),t+=3,a+=3+o}},{key:"getOutputLength",value:function(e,t){return e*(3+t)/3|0}}]),r}(y)}(),F=function(){function e(e){return e>=6/29?Math.pow(e,3):108/841*(e-4/29)}function t(e,t,r,n){return r+e*(n-r)/t}function r(r,n,a,i,o,s){var c=n[a],l=n[a+1],u=n[a+2];!1!==i&&(c=t(c,i,0,100),l=t(l,i,r.amin,r.amax),u=t(u,i,r.bmin,r.bmax)),l>r.amax?l=r.amax:l<r.amin&&(l=r.amin),u>r.bmax?u=r.bmax:u<r.bmin&&(u=r.bmin);var f,h,d,p=(c+16)/116,g=p+l/500,m=p-u/200,v=r.XW*e(g),y=r.YW*e(p),b=r.ZW*e(m);r.ZW<1?(f=3.1339*v+-1.617*y+-.4906*b,h=-.9785*v+1.916*y+.0333*b,d=.072*v+-.229*y+1.4057*b):(f=3.2406*v+-1.5372*y+-.4986*b,h=-.9689*v+1.8758*y+.0415*b,d=.0557*v+-.204*y+1.057*b),o[s]=255*Math.sqrt(f),o[s+1]=255*Math.sqrt(h),o[s+2]=255*Math.sqrt(d)}return function(e){l(n,e);var t=f(n);function n(e,r,a){var i;if(g(this,n),i=t.call(this,"Lab",3),!e)throw new o.FormatError("WhitePoint missing - required for color space Lab");if(r=r||[0,0,0],a=a||[-100,100,-100,100],i.XW=e[0],i.YW=e[1],i.ZW=e[2],i.amin=a[0],i.amax=a[1],i.bmin=a[2],i.bmax=a[3],i.XB=r[0],i.YB=r[1],i.ZB=r[2],i.XW<0||i.ZW<0||1!==i.YW)throw new o.FormatError("Invalid WhitePoint components, no fallback available");return(i.XB<0||i.YB<0||i.ZB<0)&&((0,o.info)("Invalid BlackPoint, falling back to default"),i.XB=i.YB=i.ZB=0),(i.amin>i.amax||i.bmin>i.bmax)&&((0,o.info)("Invalid Range, falling back to defaults"),i.amin=-100,i.amax=100,i.bmin=-100,i.bmax=100),i}return v(n,[{key:"getRgbItem",value:function(e,t,n,a){r(this,e,t,!1,n,a)}},{key:"getRgbBuffer",value:function(e,t,n,a,i,o,s){for(var c=(1<<o)-1,l=0;l<n;l++)r(this,e,t,c,a,i),t+=3,i+=3+s}},{key:"getOutputLength",value:function(e,t){return e*(3+t)/3|0}},{key:"isDefaultDecode",value:function(e,t){return!0}},{key:"usesZeroToOneRange",get:function(){return(0,o.shadow)(this,"usesZeroToOneRange",!1)}}]),n}(y)}()},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PartialEvaluator=t.EvaluatorPreprocessor=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(4),o=r(139),s=r(118),c=r(157),l=r(131),u=r(132),f=r(160),h=r(134),d=r(168),p=r(125),g=r(161),m=r(169),v=r(140),y=r(171),b=r(123),w=r(172),k=r(137),S=r(142),x=r(133),A=r(122),O=r(173),C=r(174),F=r(175),T=r(176);function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||j(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){P(i,n,a,o,s,"next",e)}function s(e){P(i,n,a,o,s,"throw",e)}o(void 0)}))}}function E(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=j(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function j(e,t){if(e){if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function D(e,t,r){return t&&B(e.prototype,t),r&&B(e,r),e}var N=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),L=Promise.resolve();function U(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)){for(var r=0,n=e.length;r<n;r++){var a=U(e[r],!0);if(a)return a}return(0,i.warn)("Unsupported blend mode Array: ".concat(e)),"source-over"}if(!(0,s.isName)(e))return t?null:"source-over";switch(e.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}return t?null:((0,i.warn)("Unsupported blend mode: ".concat(e.name)),"source-over")}var $=function(){function e(){R(this,e),this.reset()}return D(e,[{key:"check",value:function(){return!(++this.checked<e.CHECK_TIME_EVERY)&&(this.checked=0,this.endTime<=Date.now())}},{key:"reset",value:function(){this.endTime=Date.now()+e.TIME_SLOT_DURATION_MS,this.checked=0}}],[{key:"TIME_SLOT_DURATION_MS",get:function(){return(0,i.shadow)(this,"TIME_SLOT_DURATION_MS",20)}},{key:"CHECK_TIME_EVERY",get:function(){return(0,i.shadow)(this,"CHECK_TIME_EVERY",100)}}]),e}(),q=function(){function e(t){var r=t.xref,n=t.handler,a=t.pageIndex,i=t.idFactory,o=t.fontCache,s=t.builtInCMapCache,c=t.standardFontDataCache,l=t.globalImageCache,u=t.options,f=void 0===u?null:u;R(this,e),this.xref=r,this.handler=n,this.pageIndex=a,this.idFactory=i,this.fontCache=o,this.builtInCMapCache=s,this.standardFontDataCache=c,this.globalImageCache=l,this.options=f||N,this.parsingType3Font=!1,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}var t,r,n,v,A,I,P,j;return D(e,[{key:"_pdfFunctionFactory",get:function(){var e=new m.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,i.shadow)(this,"_pdfFunctionFactory",e)}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=Object.create(this);return t.options=Object.assign(Object.create(null),this.options,e),t}},{key:"hasBlendModes",value:function(e,t){if(!(e instanceof s.Dict))return!1;if(e.objId&&t.has(e.objId))return!1;var r=new s.RefSet(t);e.objId&&r.put(e.objId);for(var n=[e],a=this.xref;n.length;){var o=n.shift(),c=o.get("ExtGState");if(c instanceof s.Dict){var l,u=E(c.getRawValues());try{for(u.s();!(l=u.n()).done;){var f=l.value;if(f instanceof s.Ref){if(r.has(f))continue;try{f=a.fetch(f)}catch(e){r.put(f),(0,i.info)('hasBlendModes - ignoring ExtGState: "'.concat(e,'".'));continue}}if(f instanceof s.Dict){f.objId&&r.put(f.objId);var h=f.get("BM");if(h instanceof s.Name){if("Normal"!==h.name)return!0}else if(void 0!==h&&Array.isArray(h)){var d,p=E(h);try{for(p.s();!(d=p.n()).done;){var g=d.value;if(g instanceof s.Name&&"Normal"!==g.name)return!0}}catch(e){p.e(e)}finally{p.f()}}}}}catch(e){u.e(e)}finally{u.f()}}var m=o.get("XObject");if(m instanceof s.Dict){var v,y=E(m.getRawValues());try{for(y.s();!(v=y.n()).done;){var b=v.value;if(b instanceof s.Ref){if(r.has(b))continue;try{b=a.fetch(b)}catch(e){r.put(b),(0,i.info)('hasBlendModes - ignoring XObject: "'.concat(e,'".'));continue}}if((0,s.isStream)(b)){b.dict.objId&&r.put(b.dict.objId);var w=b.dict.get("Resources");w instanceof s.Dict&&(w.objId&&r.has(w.objId)||(n.push(w),w.objId&&r.put(w.objId)))}}}catch(e){y.e(e)}finally{y.f()}}}return r.forEach((function(e){t.put(e)})),!1}},{key:"fetchBuiltInCMap",value:(j=_(a.default.mark((function e(t){var r,n,o,s;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this.builtInCMapCache.get(t))){e.next=3;break}return e.abrupt("return",r);case 3:if(null===this.options.cMapUrl){e.next=19;break}return o="".concat(this.options.cMapUrl).concat(t,".bcmap"),e.next=7,fetch(o);case 7:if((s=e.sent).ok){e.next=10;break}throw new Error('fetchBuiltInCMap: failed to fetch file "'.concat(o,'" with "').concat(s.statusText,'".'));case 10:return e.t0=Uint8Array,e.next=13,s.arrayBuffer();case 13:e.t1=e.sent,e.t2=new e.t0(e.t1),e.t3=i.CMapCompressionType.BINARY,n={cMapData:e.t2,compressionType:e.t3},e.next=22;break;case 19:return e.next=21,this.handler.sendWithPromise("FetchBuiltInCMap",{name:t});case 21:n=e.sent;case 22:return n.compressionType!==i.CMapCompressionType.NONE&&this.builtInCMapCache.set(t,n),e.abrupt("return",n);case 24:case"end":return e.stop()}}),e,this)}))),function(e){return j.apply(this,arguments)})},{key:"fetchStandardFontData",value:(P=_(a.default.mark((function e(t){var r,n,o,s,c,l;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this.standardFontDataCache.get(t))){e.next=3;break}return e.abrupt("return",new b.Stream(r));case 3:if(!this.options.useSystemFonts||"Symbol"===t||"ZapfDingbats"===t){e.next=5;break}return e.abrupt("return",null);case 5:if(n=(0,f.getFontNameToFileMap)(),o=n[t],null===this.options.standardFontDataUrl){e.next=20;break}return c="".concat(this.options.standardFontDataUrl).concat(o),e.next=10,fetch(c);case 10:if((l=e.sent).ok){e.next=15;break}(0,i.warn)('fetchStandardFontData: failed to fetch file "'.concat(c,'" with "').concat(l.statusText,'".')),e.next=18;break;case 15:return e.next=17,l.arrayBuffer();case 17:s=e.sent;case 18:e.next=29;break;case 20:return e.prev=20,e.next=23,this.handler.sendWithPromise("FetchStandardFontData",{filename:o});case 23:s=e.sent,e.next=29;break;case 26:e.prev=26,e.t0=e.catch(20),(0,i.warn)('fetchStandardFontData: failed to fetch file "'.concat(o,'" with "').concat(e.t0,'".'));case 29:if(s){e.next=31;break}return e.abrupt("return",null);case 31:return this.standardFontDataCache.set(t,s),e.abrupt("return",new b.Stream(s));case 33:case"end":return e.stop()}}),e,this,[[20,26]])}))),function(e){return P.apply(this,arguments)})},{key:"buildFormXObject",value:(I=_(a.default.mark((function e(t,r,n,o,c,l,u){var f,h,d,p,g,m,v,y,b,w;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f=r.dict,h=f.getArray("Matrix"),d=f.getArray("BBox"),d=Array.isArray(d)&&4===d.length?i.Util.normalizeRect(d):null,!f.has("OC")){e.next=8;break}return e.next=7,this.parseMarkedContentProps(f.get("OC"),t);case 7:p=e.sent;case 8:if(void 0!==p&&o.addOp(i.OPS.beginMarkedContentProps,["OC",p]),!(m=f.get("Group"))){e.next=29;break}if(g={matrix:h,bbox:d,smask:n,isolated:!1,knockout:!1},v=m.get("S"),y=null,!(0,s.isName)(v,"Transparency")){e.next=27;break}if(g.isolated=m.get("I")||!1,g.knockout=m.get("K")||!1,!m.has("CS")){e.next=27;break}if(b=m.getRaw("CS"),!(w=k.ColorSpace.getCached(b,this.xref,u))){e.next=24;break}y=w,e.next=27;break;case 24:return e.next=26,this.parseColorSpace({cs:b,resources:t,localColorSpaceCache:u});case 26:y=e.sent;case 27:n&&n.backdrop&&(y=y||k.ColorSpace.singletons.rgb,n.backdrop=y.getRgb(n.backdrop,0)),o.addOp(i.OPS.beginGroup,[g]);case 29:return o.addOp(i.OPS.paintFormXObjectBegin,[h,d]),e.abrupt("return",this.getOperatorList({stream:r,task:c,resources:f.get("Resources")||t,operatorList:o,initialState:l}).then((function(){o.addOp(i.OPS.paintFormXObjectEnd,[]),m&&o.addOp(i.OPS.endGroup,[g]),void 0!==p&&o.addOp(i.OPS.endMarkedContent,[])})));case 31:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,a,i,o){return I.apply(this,arguments)})},{key:"_sendImgData",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t?[t.data.buffer]:null;return this.parsingType3Font||r?this.handler.send("commonobj",[e,"Image",t],n):this.handler.send("obj",[e,this.pageIndex,"Image",t],n)}},{key:"buildPaintImageXObject",value:(A=_(a.default.mark((function e(t){var r,n,o,s,c,l,u,f,h,d,p,g,m,v,y,b,w,k,x,A,O,C,F,I,P,_,E,j,M=this;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.resources,n=t.image,o=t.isInline,s=void 0!==o&&o,c=t.operatorList,l=t.cacheKey,u=t.localImageCache,f=t.localColorSpaceCache,h=n.dict,d=h.objId,p=h.get("Width","W"),g=h.get("Height","H"),p&&(0,i.isNum)(p)&&g&&(0,i.isNum)(g)){e.next=8;break}return(0,i.warn)("Image dimensions are missing, or not numbers."),e.abrupt("return");case 8:if(!(-1!==(m=this.options.maxImageSize)&&p*g>m)){e.next=12;break}return(0,i.warn)("Image exceeded maximum allowed size and was removed."),e.abrupt("return");case 12:if(!h.has("OC")){e.next=16;break}return e.next=15,this.parseMarkedContentProps(h.get("OC"),r);case 15:v=e.sent;case 16:if(void 0!==v&&c.addOp(i.OPS.beginMarkedContentProps,["OC",v]),y=h.get("ImageMask","IM")||!1,b=h.get("Interpolate","I"),!y){e.next=32;break}return x=h.get("Width","W"),A=h.get("Height","H"),O=x+7>>3,C=n.getBytes(O*A,!0),F=h.getArray("Decode","D"),(w=T.PDFImage.createMask({imgArray:C,width:x,height:A,imageIsFromDecodeStream:n instanceof S.DecodeStream,inverseDecode:!!F&&F[0]>0,interpolate:b})).cached=!!l,k=[w],c.addOp(i.OPS.paintImageMaskXObject,k),l&&u.set(l,d,{fn:i.OPS.paintImageMaskXObject,args:k}),void 0!==v&&c.addOp(i.OPS.endMarkedContent,[]),e.abrupt("return");case 32:if(I=h.get("SMask","SM")||!1,P=h.get("Mask")||!1,!s||I||P||!(p+g<200)){e.next=41;break}return _=new T.PDFImage({xref:this.xref,res:r,image:n,isInline:s,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:f}),w=_.createImageData(!0),c.addOp(i.OPS.paintInlineImageXObject,[w]),void 0!==v&&c.addOp(i.OPS.endMarkedContent,[]),e.abrupt("return");case 41:E="img_".concat(this.idFactory.createObjId()),j=!1,this.parsingType3Font?E="".concat(this.idFactory.getDocId(),"_type3_").concat(E):d&&(j=this.globalImageCache.shouldCache(d,this.pageIndex))&&(E="".concat(this.idFactory.getDocId(),"_").concat(E)),c.addDependency(E),k=[E,p,g],T.PDFImage.buildImage({xref:this.xref,res:r,image:n,isInline:s,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:f}).then((function(e){return w=e.createImageData(!1),l&&d&&j&&M.globalImageCache.addByteSize(d,w.data.length),M._sendImgData(E,w,j)})).catch((function(e){return(0,i.warn)('Unable to decode image "'.concat(E,'": "').concat(e,'".')),M._sendImgData(E,null,j)})),c.addOp(i.OPS.paintImageXObject,k),l&&(u.set(l,d,{fn:i.OPS.paintImageXObject,args:k}),d&&((0,i.assert)(!s,"Cannot cache an inline image globally."),this.globalImageCache.addPageIndex(d,this.pageIndex),j&&this.globalImageCache.setData(d,{objId:E,fn:i.OPS.paintImageXObject,args:k,byteSize:0}))),void 0!==v&&c.addOp(i.OPS.endMarkedContent,[]);case 49:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"handleSMask",value:function(e,t,r,n,a,i){var o=e.get("G"),s={subtype:e.get("S").name,backdrop:e.get("BC")},c=e.get("TR");if((0,m.isPDFFunction)(c)){for(var l=this._pdfFunctionFactory.create(c),u=new Uint8Array(256),f=new Float32Array(1),h=0;h<256;h++)f[0]=h/255,l(f,0,f,0),u[h]=255*f[0]|0;s.transferMap=u}return this.buildFormXObject(t,o,s,r,n,a.state.clone(),i)}},{key:"handleTransferFunction",value:function(e){var t;if(Array.isArray(e))t=e;else{if(!(0,m.isPDFFunction)(e))return null;t=[e]}var r,n=[],a=0,i=0,o=E(t);try{for(o.s();!(r=o.n()).done;){var c=r.value,l=this.xref.fetchIfRef(c);if(a++,(0,s.isName)(l,"Identity"))n.push(null);else{if(!(0,m.isPDFFunction)(l))return null;for(var u=this._pdfFunctionFactory.create(l),f=new Uint8Array(256),h=new Float32Array(1),d=0;d<256;d++)h[0]=d/255,u(h,0,h,0),f[d]=255*h[0]|0;n.push(f),i++}}}catch(e){o.e(e)}finally{o.f()}return 1!==a&&4!==a||0===i?null:n}},{key:"handleTilingType",value:function(e,t,r,n,a,o,c,l){var u=this,f=new F.OperatorList,h=s.Dict.merge({xref:this.xref,dictArray:[a.get("Resources"),r]});return this.getOperatorList({stream:n,task:c,resources:h,operatorList:f}).then((function(){var r=f.getIR(),n=(0,d.getTilingPatternIR)(r,a,t);o.addDependencies(f.dependencies),o.addOp(e,n),a.objId&&l.set(null,a.objId,{operatorListIR:r,dict:a})})).catch((function(e){if(!(e instanceof i.AbortException)){if(u.options.ignoreErrors)return u.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorTilingPattern}),void(0,i.warn)('handleTilingType - ignoring pattern: "'.concat(e,'".'));throw e}}))}},{key:"handleSetFont",value:function(e,t,r,n,a,o){var l=this,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,f=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,h=t&&t[0]instanceof s.Name?t[0].name:null;return this.loadFont(h,r,e,u,f).then((function(t){return t.font.isType3Font?t.loadType3Data(l,e,a).then((function(){return n.addDependencies(t.type3Dependencies),t})).catch((function(e){return l.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorFontLoadType3}),new X({loadedName:"g_font_error",font:new c.ErrorFont("Type3 font load error: ".concat(e)),dict:t.font,evaluatorOptions:l.options})})):t})).then((function(e){return o.font=e.font,e.send(l.handler),e.loadedName}))}},{key:"handleText",value:function(t,r){var n=r.font,a=n.charsToGlyphs(t);return n.data&&(r.textRenderingMode&i.TextRenderingMode.ADD_TO_PATH_FLAG||"Pattern"===r.fillColorSpace.name||n.disableFontFace||this.options.disableFontFace)&&e.buildFontPaths(n,a,this.handler,this.options),a}},{key:"ensureStateFont",value:function(e){if(!e.font){var t=new i.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorFontState}),void(0,i.warn)('ensureStateFont: "'.concat(t,'".'));throw t}}},{key:"setGState",value:(v=_(a.default.mark((function e(t){var r,n,o,c,l,u,f,h,d,p,g,m,v,y,b,w,k=this;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=t.resources,n=t.gState,o=t.operatorList,c=t.cacheKey,l=t.task,u=t.stateManager,f=t.localGStateCache,h=t.localColorSpaceCache,d=n.objId,p=!0,g=[],m=n.getKeys(),v=Promise.resolve(),y=function(e,t){var a=m[e],c=n.get(a);switch(a){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":g.push([a,c]);break;case"Font":p=!1,v=v.then((function(){return k.handleSetFont(r,null,c[0],o,l,u.state).then((function(e){o.addDependency(e),g.push([a,[e,c[1]]])}))}));break;case"BM":g.push([a,U(c)]);break;case"SMask":if((0,s.isName)(c,"None")){g.push([a,!1]);break}(0,s.isDict)(c)?(p=!1,v=v.then((function(){return k.handleSMask(c,r,o,l,u,h)})),g.push([a,!0])):(0,i.warn)("Unsupported SMask type");break;case"TR":var f=k.handleTransferFunction(c);g.push([a,f]);break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,i.info)("graphic state operator "+a);break;default:(0,i.info)("Unknown graphic state operator "+a)}},b=0,w=m.length;b<w;b++)y(b);return e.abrupt("return",v.then((function(){g.length>0&&o.addOp(i.OPS.setGState,[g]),p&&f.set(c,d,g)})));case 9:case"end":return e.stop()}}),e)}))),function(e){return v.apply(this,arguments)})},{key:"loadFont",value:function(t,r,n){var o,u=this,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,d=function(){var e=_(a.default.mark((function e(){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new X({loadedName:"g_font_error",font:new c.ErrorFont('Font "'.concat(t,'" is not available.')),dict:r,evaluatorOptions:u.options}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=this.xref;if(r){if(!(0,s.isRef)(r))throw new i.FormatError('The "font" object should be a reference.');o=r}else{var g=n.get("Font");g&&(o=g.getRaw(t))}if(!o){var m='Font "'.concat(t||r&&r.toString(),'" is not available');if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,i.warn)("".concat(m,".")),d();this.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorFontMissing}),(0,i.warn)("".concat(m," -- attempting to fallback to a default font.")),o=f||e.fallbackFontDict}if(this.fontCache.has(o))return this.fontCache.get(o);if(r=p.fetchIfRef(o),!(0,s.isDict)(r))return d();if(r.cacheKey&&this.fontCache.has(r.cacheKey))return this.fontCache.get(r.cacheKey);var v,y=(0,i.createPromiseCapability)();try{(v=this.preEvaluateFont(r)).cssFontInfo=h}catch(e){return(0,i.warn)('loadFont - preEvaluateFont failed: "'.concat(e,'".')),d()}var b,w=v,k=w.descriptor,S=w.hash,x=(0,s.isRef)(o);if(x&&(b="f".concat(o.toString())),S&&(0,s.isDict)(k)){k.fontAliases||(k.fontAliases=Object.create(null));var A=k.fontAliases;if(A[S]){var O=A[S].aliasRef;if(x&&O&&this.fontCache.has(O))return this.fontCache.putAlias(o,O),this.fontCache.get(o)}else A[S]={fontID:this.idFactory.createFontId()};x&&(A[S].aliasRef=o),b=A[S].fontID}return x?this.fontCache.put(o,y.promise):(b||(b=this.idFactory.createFontId()),r.cacheKey="cacheKey_".concat(b),this.fontCache.put(r.cacheKey,y.promise)),(0,i.assert)(b&&b.startsWith("f"),'The "fontID" must be (correctly) defined.'),r.loadedName="".concat(this.idFactory.getDocId(),"_").concat(b),this.translateFont(v).then((function(e){void 0!==e.fontType&&(p.stats.fontTypes[e.fontType]=!0),y.resolve(new X({loadedName:r.loadedName,font:e,dict:r,evaluatorOptions:u.options}))})).catch((function(e){u.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorFontTranslate}),(0,i.warn)('loadFont - translateFont failed: "'.concat(e,'".'));try{var t=k&&k.get("FontFile3"),n=t&&t.get("Subtype"),a=(0,l.getFontType)(v.type,n&&n.name);p.stats.fontTypes[a]=!0}catch(e){}y.resolve(new X({loadedName:r.loadedName,font:new c.ErrorFont(e instanceof Error?e.message:e),dict:r,evaluatorOptions:u.options}))})),y.promise}},{key:"buildPath",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=e.length-1;if(r||(r=[]),a<0||e.fnArray[a]!==i.OPS.constructPath)n&&((0,i.warn)('Encountered path operator "'.concat(t,'" inside of a text object.')),e.addOp(i.OPS.save,null)),e.addOp(i.OPS.constructPath,[[t],r]),n&&e.addOp(i.OPS.restore,null);else{var o=e.argsArray[a];o[0].push(t),Array.prototype.push.apply(o[1],r)}}},{key:"parseColorSpace",value:function(e){var t=this,r=e.cs,n=e.resources,a=e.localColorSpaceCache;return k.ColorSpace.parseAsync({cs:r,xref:this.xref,resources:n,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:a}).catch((function(e){if(e instanceof i.AbortException)return null;if(t.options.ignoreErrors)return t.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorColorSpace}),(0,i.warn)('parseColorSpace - ignoring ColorSpace: "'.concat(e,'".')),null;throw e}))}},{key:"parseShading",value:function(e){var t=e.shading,r=e.resources,n=e.localColorSpaceCache,a=e.localShadingPatternCache,i=a.get(t);if(!i){var o=d.Pattern.parseShading(t,this.xref,r,this.handler,this._pdfFunctionFactory,n).getIR();i="pattern_".concat(this.idFactory.createObjId()),a.set(t,i),this.handler.send("obj",[i,this.pageIndex,"Pattern",o])}return i}},{key:"handleColorN",value:function(e,t,r,n,a,o,c,l,u,f){var h=r.pop();if(h instanceof s.Name){var p=a.getRaw(h.name),g=p instanceof s.Ref&&u.getByRef(p);if(g)try{var m=n.base?n.base.getRgb(r,0):null,v=(0,d.getTilingPatternIR)(g.operatorListIR,g.dict,m);return void e.addOp(t,v)}catch(e){}var y=this.xref.fetchIfRef(p);if(y){var b=(0,s.isStream)(y)?y.dict:y,w=b.get("PatternType");if(1===w){var k=n.base?n.base.getRgb(r,0):null;return this.handleTilingType(t,k,o,y,b,e,c,u)}if(2===w){var S=b.get("Shading"),x=b.getArray("Matrix"),A=this.parseShading({shading:S,resources:o,localColorSpaceCache:l,localShadingPatternCache:f});return void e.addOp(t,["Shading",A,x])}throw new i.FormatError("Unknown PatternType: ".concat(w))}}throw new i.FormatError("Unknown PatternName: ".concat(h))}},{key:"_parseVisibilityExpression",value:function(e,t,r){if(++t>10)(0,i.warn)("Visibility expression is too deeply nested");else{var n=e.length,a=this.xref.fetchIfRef(e[0]);if(n<2||!(0,s.isName)(a))(0,i.warn)("Invalid visibility expression");else{switch(a.name){case"And":case"Or":case"Not":r.push(a.name);break;default:return void(0,i.warn)("Invalid operator ".concat(a.name," in visibility expression"))}for(var o=1;o<n;o++){var c=e[o],l=this.xref.fetchIfRef(c);if(Array.isArray(l)){var u=[];r.push(u),this._parseVisibilityExpression(l,t,u)}else(0,s.isRef)(c)&&r.push(c.toString())}}}}},{key:"parseMarkedContentProps",value:(n=_(a.default.mark((function e(t,r){var n,o,c,l,u,f,h,d,p,g;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,s.isName)(t)){e.next=5;break}o=r.get("Properties"),n=o.get(t.name),e.next=10;break;case 5:if(!(0,s.isDict)(t)){e.next=9;break}n=t,e.next=10;break;case 9:throw new i.FormatError("Optional content properties malformed.");case 10:if("OCG"!==(c=n.get("Type").name)){e.next=15;break}return e.abrupt("return",{type:c,id:n.objId});case 15:if("OCMD"!==c){e.next=31;break}if(l=n.get("VE"),!Array.isArray(l)){e.next=22;break}if(u=[],this._parseVisibilityExpression(l,0,u),!(u.length>0)){e.next=22;break}return e.abrupt("return",{type:"OCMD",expression:u});case 22:if(f=n.get("OCGs"),!Array.isArray(f)&&!(0,s.isDict)(f)){e.next=29;break}if(h=[],Array.isArray(f)){d=E(f);try{for(d.s();!(p=d.n()).done;)g=p.value,h.push(g.toString())}catch(e){d.e(e)}finally{d.f()}}else h.push(f.objId);return e.abrupt("return",{type:c,ids:h,policy:(0,s.isName)(n.get("P"))?n.get("P").name:null,expression:null});case 29:if(!(0,s.isRef)(f)){e.next=31;break}return e.abrupt("return",{type:c,id:f.toString()});case 31:return e.abrupt("return",null);case 32:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"getOperatorList",value:function(e){var t=this,r=e.stream,n=e.task,a=e.resources,o=e.operatorList,c=e.initialState,l=void 0===c?null:c,u=e.fallbackFontDict,f=void 0===u?null:u;if(a=a||s.Dict.empty,l=l||new W,!o)throw new Error('getOperatorList: missing "operatorList" parameter');var h=this,d=this.xref,p=!1,g=new y.LocalImageCache,m=new y.LocalColorSpaceCache,v=new y.LocalGStateCache,b=new y.LocalTilingPatternCache,w=new Map,S=a.get("XObject")||s.Dict.empty,x=a.get("Pattern")||s.Dict.empty,A=new H(l),O=new G(r,d,A),C=new $;function F(e){for(var t=0,r=O.savedStatesDepth;t<r;t++)o.addOp(i.OPS.restore,[])}return new Promise((function e(t,r){var c=function(n){Promise.all([n,o.ready]).then((function(){try{e(t,r)}catch(e){r(e)}}),r)};n.ensureNotTerminated(),C.reset();for(var l,u,y,T,I,P,_={};!(l=C.check())&&(_.args=null,O.read(_));){var E=_.args,j=_.fn;switch(0|j){case i.OPS.paintXObject:if(P=E[0]instanceof s.Name,I=E[0].name,P){var M=g.getByName(I);if(M){o.addOp(M.fn,M.args),E=null;continue}}return void c(new Promise((function(e,t){if(!P)throw new i.FormatError("XObject must be referred to by name.");var r=S.getRaw(I);if(r instanceof s.Ref){var c=g.getByRef(r);if(c)return o.addOp(c.fn,c.args),void e();var l=h.globalImageCache.getData(r,h.pageIndex);if(l)return o.addDependency(l.objId),o.addOp(l.fn,l.args),void e();r=d.fetch(r)}if(!(0,s.isStream)(r))throw new i.FormatError("XObject should be a stream");var u=r.dict.get("Subtype");if(!(0,s.isName)(u))throw new i.FormatError("XObject should have a Name subtype");if("Form"===u.name)return A.save(),void h.buildFormXObject(a,r,null,o,n,A.state.clone(),m).then((function(){A.restore(),e()}),t);if("Image"!==u.name){if("PS"!==u.name)throw new i.FormatError("Unhandled XObject subtype ".concat(u.name));(0,i.info)("Ignored XObject subtype PS"),e()}else h.buildPaintImageXObject({resources:a,image:r,operatorList:o,cacheKey:I,localImageCache:g,localColorSpaceCache:m}).then(e,t)})).catch((function(e){if(!(e instanceof i.AbortException)){if(h.options.ignoreErrors)return h.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorXObject}),void(0,i.warn)('getOperatorList - ignoring XObject: "'.concat(e,'".'));throw e}})));case i.OPS.setFont:var R=E[1];return void c(h.handleSetFont(a,E,null,o,n,A.state,f).then((function(e){o.addDependency(e),o.addOp(i.OPS.setFont,[e,R])})));case i.OPS.beginText:p=!0;break;case i.OPS.endText:p=!1;break;case i.OPS.endInlineImage:var B=E[0].cacheKey;if(B){var D=g.getByName(B);if(D){o.addOp(D.fn,D.args),E=null;continue}}return void c(h.buildPaintImageXObject({resources:a,image:E[0],isInline:!0,operatorList:o,cacheKey:B,localImageCache:g,localColorSpaceCache:m}));case i.OPS.showText:if(!A.state.font){h.ensureStateFont(A.state);continue}E[0]=h.handleText(E[0],A.state);break;case i.OPS.showSpacedText:if(!A.state.font){h.ensureStateFont(A.state);continue}var N=E[0],U=[],$=N.length,q=A.state;for(u=0;u<$;++u){var X=N[u];(0,i.isString)(X)?Array.prototype.push.apply(U,h.handleText(X,q)):(0,i.isNum)(X)&&U.push(X)}E[0]=U,j=i.OPS.showText;break;case i.OPS.nextLineShowText:if(!A.state.font){h.ensureStateFont(A.state);continue}o.addOp(i.OPS.nextLine),E[0]=h.handleText(E[0],A.state),j=i.OPS.showText;break;case i.OPS.nextLineSetSpacingShowText:if(!A.state.font){h.ensureStateFont(A.state);continue}o.addOp(i.OPS.nextLine),o.addOp(i.OPS.setWordSpacing,[E.shift()]),o.addOp(i.OPS.setCharSpacing,[E.shift()]),E[0]=h.handleText(E[0],A.state),j=i.OPS.showText;break;case i.OPS.setTextRenderingMode:A.state.textRenderingMode=E[0];break;case i.OPS.setFillColorSpace:var H=k.ColorSpace.getCached(E[0],d,m);if(H){A.state.fillColorSpace=H;continue}return void c(h.parseColorSpace({cs:E[0],resources:a,localColorSpaceCache:m}).then((function(e){e&&(A.state.fillColorSpace=e)})));case i.OPS.setStrokeColorSpace:var z=k.ColorSpace.getCached(E[0],d,m);if(z){A.state.strokeColorSpace=z;continue}return void c(h.parseColorSpace({cs:E[0],resources:a,localColorSpaceCache:m}).then((function(e){e&&(A.state.strokeColorSpace=e)})));case i.OPS.setFillColor:E=(T=A.state.fillColorSpace).getRgb(E,0),j=i.OPS.setFillRGBColor;break;case i.OPS.setStrokeColor:E=(T=A.state.strokeColorSpace).getRgb(E,0),j=i.OPS.setStrokeRGBColor;break;case i.OPS.setFillGray:A.state.fillColorSpace=k.ColorSpace.singletons.gray,E=k.ColorSpace.singletons.gray.getRgb(E,0),j=i.OPS.setFillRGBColor;break;case i.OPS.setStrokeGray:A.state.strokeColorSpace=k.ColorSpace.singletons.gray,E=k.ColorSpace.singletons.gray.getRgb(E,0),j=i.OPS.setStrokeRGBColor;break;case i.OPS.setFillCMYKColor:A.state.fillColorSpace=k.ColorSpace.singletons.cmyk,E=k.ColorSpace.singletons.cmyk.getRgb(E,0),j=i.OPS.setFillRGBColor;break;case i.OPS.setStrokeCMYKColor:A.state.strokeColorSpace=k.ColorSpace.singletons.cmyk,E=k.ColorSpace.singletons.cmyk.getRgb(E,0),j=i.OPS.setStrokeRGBColor;break;case i.OPS.setFillRGBColor:A.state.fillColorSpace=k.ColorSpace.singletons.rgb,E=k.ColorSpace.singletons.rgb.getRgb(E,0);break;case i.OPS.setStrokeRGBColor:A.state.strokeColorSpace=k.ColorSpace.singletons.rgb,E=k.ColorSpace.singletons.rgb.getRgb(E,0);break;case i.OPS.setFillColorN:if("Pattern"===(T=A.state.fillColorSpace).name)return void c(h.handleColorN(o,i.OPS.setFillColorN,E,T,x,a,n,m,b,w));E=T.getRgb(E,0),j=i.OPS.setFillRGBColor;break;case i.OPS.setStrokeColorN:if("Pattern"===(T=A.state.strokeColorSpace).name)return void c(h.handleColorN(o,i.OPS.setStrokeColorN,E,T,x,a,n,m,b,w));E=T.getRgb(E,0),j=i.OPS.setStrokeRGBColor;break;case i.OPS.shadingFill:var W=a.get("Shading");if(!W)throw new i.FormatError("No shading resource found");var G=W.get(E[0].name);if(!G)throw new i.FormatError("No shading object found");E=[h.parseShading({shading:G,resources:a,localColorSpaceCache:m,localShadingPatternCache:w})],j=i.OPS.shadingFill;break;case i.OPS.setGState:if(P=E[0]instanceof s.Name,I=E[0].name,P){var V=v.getByName(I);if(V){V.length>0&&o.addOp(i.OPS.setGState,[V]),E=null;continue}}return void c(new Promise((function(e,t){if(!P)throw new i.FormatError("GState must be referred to by name.");var r=a.get("ExtGState");if(!(r instanceof s.Dict))throw new i.FormatError("ExtGState should be a dictionary.");var c=r.get(I);if(!(c instanceof s.Dict))throw new i.FormatError("GState should be a dictionary.");h.setGState({resources:a,gState:c,operatorList:o,cacheKey:I,task:n,stateManager:A,localGStateCache:v,localColorSpaceCache:m}).then(e,t)})).catch((function(e){if(!(e instanceof i.AbortException)){if(h.options.ignoreErrors)return h.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorExtGState}),void(0,i.warn)('getOperatorList - ignoring ExtGState: "'.concat(e,'".'));throw e}})));case i.OPS.moveTo:case i.OPS.lineTo:case i.OPS.curveTo:case i.OPS.curveTo2:case i.OPS.curveTo3:case i.OPS.closePath:case i.OPS.rectangle:h.buildPath(o,j,E,p);continue;case i.OPS.markPoint:case i.OPS.markPointProps:case i.OPS.beginCompat:case i.OPS.endCompat:continue;case i.OPS.beginMarkedContentProps:if(!(0,s.isName)(E[0])){(0,i.warn)("Expected name for beginMarkedContentProps arg0=".concat(E[0]));continue}if("OC"===E[0].name)return void c(h.parseMarkedContentProps(E[1],a).then((function(e){o.addOp(i.OPS.beginMarkedContentProps,["OC",e])})).catch((function(e){if(!(e instanceof i.AbortException)){if(h.options.ignoreErrors)return h.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorMarkedContent}),void(0,i.warn)('getOperatorList - ignoring beginMarkedContentProps: "'.concat(e,'".'));throw e}})));E=[E[0].name,E[1]instanceof s.Dict?E[1].get("MCID"):null];break;case i.OPS.beginMarkedContent:case i.OPS.endMarkedContent:default:if(null!==E){for(u=0,y=E.length;u<y&&!(E[u]instanceof s.Dict);u++);if(u<y){(0,i.warn)("getOperatorList - ignoring operator: "+j);continue}}}o.addOp(j,E)}l?c(L):(F(),t())})).catch((function(e){if(!(e instanceof i.AbortException)){if(t.options.ignoreErrors)return t.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorOperatorList}),(0,i.warn)('getOperatorList - ignoring errors during "'.concat(n.name,'" ')+'task: "'.concat(e,'".')),void F();throw e}}))}},{key:"getTextContent",value:function(e){var t=this,r=e.stream,n=e.task,a=e.resources,o=e.stateManager,c=void 0===o?null:o,l=e.normalizeWhitespace,u=void 0!==l&&l,f=e.combineTextItems,d=void 0!==f&&f,p=e.includeMarkedContent,g=void 0!==p&&p,m=e.sink,v=e.seenStyles,b=void 0===v?new Set:v;a=a||s.Dict.empty,c=c||new H(new z);var k,S=/\s/g,x={items:[],styles:Object.create(null)},A={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,lastCharSize:0,prevTransform:null,textAdvanceScale:0,spaceWidth:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,transform:null,fontName:null,hasEOL:!1,isLastCharWhiteSpace:!1},O=this,C=this.xref,F=[],T=null,I=new y.LocalImageCache,P=new y.LocalGStateCache,_=new G(r,C,c);function E(){var e=k.font,t=[k.fontSize*k.textHScale,0,0,k.fontSize,0,k.textRise];if(e.isType3Font&&(k.fontSize<=1||e.isCharBBox)&&!(0,i.isArrayEqual)(k.fontMatrix,i.FONT_IDENTITY_MATRIX)){var r=e.bbox[3]-e.bbox[1];r>0&&(t[3]*=r*k.fontMatrix[3])}return i.Util.transform(k.ctm,i.Util.transform(k.textMatrix,t))}function j(){if(A.initialized)return A;var e=k.font,t=e.loadedName;b.has(t)||(b.add(t),x.styles[t]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:e.vertical}),A.fontName=t;var r=A.transform=E();e.vertical?(A.width=A.totalWidth=Math.hypot(r[0],r[1]),A.height=A.totalHeight=0,A.vertical=!0):(A.width=A.totalWidth=0,A.height=A.totalHeight=Math.hypot(r[2],r[3]),A.vertical=!1);var n=Math.hypot(k.textLineMatrix[0],k.textLineMatrix[1]),a=Math.hypot(k.ctm[0],k.ctm[1]);A.textAdvanceScale=a*n,A.lastCharSize=A.lastCharSize||0;var i=e.spaceWidth/1e3*k.fontSize;return i?(A.spaceWidth=i,A.trackingSpaceMin=.3*i,A.spaceInFlowMin=.3*i,A.spaceInFlowMax=1.3*i):(A.spaceWidth=0,A.trackingSpaceMin=1/0),A.hasEOL=!1,A.initialized=!0,A}function M(){if(A.initialized){var e=Math.hypot(k.textLineMatrix[0],k.textLineMatrix[1]),t=Math.hypot(k.ctm[0],k.ctm[1])*e;t!==A.textAdvanceScale&&(A.vertical?(A.totalHeight+=A.height*A.textAdvanceScale,A.height=0):(A.totalWidth+=A.width*A.textAdvanceScale,A.width=0),A.textAdvanceScale=t)}}function R(e,t){return O.loadFont(e,t,a).then((function(e){return e.font.isType3Font?e.loadType3Data(O,a,n).catch((function(){})).then((function(){return e})):e})).then((function(e){k.font=e.font,k.fontMatrix=e.font.fontMatrix||i.FONT_IDENTITY_MATRIX}))}function B(e){var t=e.chars,r=e.extraSpacing,n=e.isFirstChunk,a=k.font;if(t){var i=(0,h.getNormalizedUnicodes)(),o=a.charsToGlyphs(t),s=k.fontMatrix[0]*k.fontSize;n&&function(e){if(d&&k.font&&A.prevTransform){var t=E(),r=t[4],n=t[5],a=A.prevTransform[4],i=A.prevTransform[5];if(a!==r||i!==n){var o=(r-a)/A.textAdvanceScale,s=(n-i)/A.textAdvanceScale,c=-.5*A.lastCharSize;if(k.font.vertical){if(Math.abs(o)>A.width/A.textAdvanceScale)return void D();if(c>s)return;s>A.trackingSpaceMin?A.height+=s:N(s,0,A.prevTransform)||(0===A.str.length?(x.items.push({str:" ",dir:"ltr",width:0,height:s,transform:A.prevTransform,fontName:A.fontName,hasEOL:!1}),A.isLastCharWhiteSpace=!0):A.height+=s)}else Math.abs(s)>A.height/A.textAdvanceScale?D():c>o||(o<=A.trackingSpaceMin?A.width+=o:N(o,0,A.prevTransform)||(0===A.str.length?(x.items.push({str:" ",dir:"ltr",width:o,height:0,transform:A.prevTransform,fontName:A.fontName,hasEOL:!1}),A.isLastCharWhiteSpace=!0):A.width+=o))}}}();for(var c=j(),l=0,u=0,f=0,p=o.length;f<p;f++){var g=o[f],m=k.charSpacing+(f===p-1?r:0),v=g.unicode;g.isSpace?(m+=k.wordSpacing,c.isLastCharWhiteSpace=!0):(v=i[v]||v,v=(0,h.reverseIfRtl)(v),c.isLastCharWhiteSpace=!1),c.str.push(v);var y=(a.vertical&&g.vmetric?g.vmetric[0]:g.width)*s;if(a.vertical?(k.translateTextMatrix(0,y),y=Math.abs(y)):(y*=k.textHScale,k.translateTextMatrix(y,0)),l+=y,m){a.vertical||(m*=k.textHScale),y+=m;var b=m>A.trackingSpaceMin&&N(m,l);a.vertical?k.translateTextMatrix(0,m):k.translateTextMatrix(m,0),b?(c=j(),l=0):l+=m}u=y}c.lastCharSize=u,a.vertical?c.height+=l:c.width+=l,c.prevTransform=E()}else{var w=k.charSpacing+r;w&&(a.vertical?k.translateTextMatrix(0,w):k.translateTextMatrix(w*k.textHScale,0))}}function D(){A.initialized?(A.hasEOL=!0,U()):x.items.push({str:"",dir:"ltr",width:0,height:0,transform:E(),fontName:k.font.loadedName,hasEOL:!0}),A.isLastCharWhiteSpace=!1,A.lastCharSize=0}function N(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(A.spaceInFlowMin<=e&&e<=A.spaceInFlowMax)return A.initialized&&(A.str.push(" "),A.isLastCharWhiteSpace=!0),!1;var n=A.fontName,a=0;return e*=A.textAdvanceScale,A.vertical?(A.height+=t,a=e,e=0):A.width+=t,U(),A.isLastCharWhiteSpace||(A.isLastCharWhiteSpace=!0,x.items.push({str:" ",dir:"ltr",width:e,height:a,transform:r||E(),fontName:n,hasEOL:!1})),!0}function U(){var e,t,r;A.initialized&&A.str&&(A.vertical?A.totalHeight+=A.height*A.textAdvanceScale:A.totalWidth+=A.width*A.textAdvanceScale,x.items.push((t=(e=A).str.join(""),r=(0,w.bidi)(t,-1,e.vertical),{str:u?function(e){for(var t,r=e.length,n=0;n<r&&(t=e.charCodeAt(n))>=32&&t<=127;)n++;return n<r?e.replace(S," "):e}(r.str):r.str,dir:r.dir,width:e.totalWidth,height:e.totalHeight,transform:e.transform,fontName:e.fontName,hasEOL:e.hasEOL})),A.initialized=!1,A.str.length=0)}function q(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=x.items.length;0!==t&&(e&&t<10||(m.enqueue(x,t),x.items=[],x.styles=Object.create(null)))}var X=new $;return new Promise((function e(t,r){var o=function(n){q(!0),Promise.all([n,m.ready]).then((function(){try{e(t,r)}catch(e){r(e)}}),r)};n.ensureNotTerminated(),X.reset();for(var l,f={},h=[];!(l=X.check())&&(h.length=0,f.args=h,_.read(f));){k=c.state;var p=f.fn;switch(h=f.args,0|p){case i.OPS.setFont:var v=h[0].name,y=h[1];if(k.font&&v===k.fontName&&y===k.fontSize)break;return U(),k.fontName=v,k.fontSize=y,void o(R(v,null));case i.OPS.setTextRise:U(),k.textRise=h[0];break;case i.OPS.setHScale:U(),k.textHScale=h[0]/100;break;case i.OPS.setLeading:U(),k.leading=h[0];break;case i.OPS.moveText:k.translateTextLineMatrix(h[0],h[1]),k.textMatrix=k.textLineMatrix.slice();break;case i.OPS.setLeadingMoveText:U(),k.leading=-h[1],k.translateTextLineMatrix(h[0],h[1]),k.textMatrix=k.textLineMatrix.slice();break;case i.OPS.nextLine:D(),k.carriageReturn();break;case i.OPS.setTextMatrix:k.setTextMatrix(h[0],h[1],h[2],h[3],h[4],h[5]),k.setTextLineMatrix(h[0],h[1],h[2],h[3],h[4],h[5]),M();break;case i.OPS.setCharSpacing:k.charSpacing=h[0];break;case i.OPS.setWordSpacing:k.wordSpacing=h[0];break;case i.OPS.beginText:U(),k.textMatrix=i.IDENTITY_MATRIX.slice(),k.textLineMatrix=i.IDENTITY_MATRIX.slice();break;case i.OPS.showSpacedText:if(!c.state.font){O.ensureStateFont(c.state);continue}for(var w=(k.font.vertical?1:-1)*k.fontSize/1e3,S=h[0],E=!0,j=0,N=S.length;j<N-1;j++){var $=S[j];if("string"==typeof $)F.push($);else if("number"==typeof $&&0!==$){var z=F.join("");F.length=0,B({chars:z,extraSpacing:$*w,isFirstChunk:E}),z&&E&&(E=!1)}}var W=S[S.length-1];if("string"==typeof W&&F.push(W),F.length>0){var G=F.join("");F.length=0,B({chars:G,extraSpacing:0,isFirstChunk:E})}break;case i.OPS.showText:if(!c.state.font){O.ensureStateFont(c.state);continue}B({chars:h[0],extraSpacing:0,isFirstChunk:!0});break;case i.OPS.nextLineShowText:if(!c.state.font){O.ensureStateFont(c.state);continue}A.hasEOL=!0,U(),k.carriageReturn(),B({chars:h[0],extraSpacing:0,isFirstChunk:!0});break;case i.OPS.nextLineSetSpacingShowText:if(!c.state.font){O.ensureStateFont(c.state);continue}A.hasEOL=!0,U(),k.wordSpacing=h[0],k.charSpacing=h[1],k.carriageReturn(),B({chars:h[2],extraSpacing:0,isFirstChunk:!0});break;case i.OPS.paintXObject:U(),T||(T=a.get("XObject")||s.Dict.empty);var V=h[0]instanceof s.Name,Y=h[0].name;if(V&&I.getByName(Y))break;return void o(new Promise((function(e,t){if(!V)throw new i.FormatError("XObject must be referred to by name.");var r=T.getRaw(Y);if(r instanceof s.Ref){if(I.getByRef(r))return void e();if(O.globalImageCache.getData(r,O.pageIndex))return void e();r=C.fetch(r)}if(!(0,s.isStream)(r))throw new i.FormatError("XObject should be a stream");var o=r.dict.get("Subtype");if(!(0,s.isName)(o))throw new i.FormatError("XObject should have a Name subtype");if("Form"!==o.name)return I.set(Y,r.dict.objId,!0),void e();var l=c.state.clone(),f=new H(l),h=r.dict.getArray("Matrix");Array.isArray(h)&&6===h.length&&f.transform(h),q();var p={enqueueInvoked:!1,enqueue:function(e,t){this.enqueueInvoked=!0,m.enqueue(e,t)},get desiredSize(){return m.desiredSize},get ready(){return m.ready}};O.getTextContent({stream:r,task:n,resources:r.dict.get("Resources")||a,stateManager:f,normalizeWhitespace:u,combineTextItems:d,includeMarkedContent:g,sink:p,seenStyles:b}).then((function(){p.enqueueInvoked||I.set(Y,r.dict.objId,!0),e()}),t)})).catch((function(e){if(!(e instanceof i.AbortException)){if(!O.options.ignoreErrors)throw e;(0,i.warn)('getTextContent - ignoring XObject: "'.concat(e,'".'))}})));case i.OPS.setGState:if(V=h[0]instanceof s.Name,Y=h[0].name,V&&P.getByName(Y))break;return void o(new Promise((function(e,t){if(!V)throw new i.FormatError("GState must be referred to by name.");var r=a.get("ExtGState");if(!(r instanceof s.Dict))throw new i.FormatError("ExtGState should be a dictionary.");var n=r.get(Y);if(!(n instanceof s.Dict))throw new i.FormatError("GState should be a dictionary.");var o=n.get("Font");if(!o)return P.set(Y,n.objId,!0),void e();U(),k.fontName=null,k.fontSize=o[1],R(null,o[0]).then(e,t)})).catch((function(e){if(!(e instanceof i.AbortException)){if(!O.options.ignoreErrors)throw e;(0,i.warn)('getTextContent - ignoring ExtGState: "'.concat(e,'".'))}})));case i.OPS.beginMarkedContent:g&&x.items.push({type:"beginMarkedContent",tag:(0,s.isName)(h[0])?h[0].name:null});break;case i.OPS.beginMarkedContentProps:if(g){U();var K=null;(0,s.isDict)(h[1])&&(K=h[1].get("MCID")),x.items.push({type:"beginMarkedContentProps",id:Number.isInteger(K)?"".concat(O.idFactory.getPageObjId(),"_mcid").concat(K):null,tag:(0,s.isName)(h[0])?h[0].name:null})}break;case i.OPS.endMarkedContent:g&&(U(),x.items.push({type:"endMarkedContent"}))}if(x.items.length>=m.desiredSize){l=!0;break}}l?o(L):(U(),q(),t())})).catch((function(e){if(!(e instanceof i.AbortException)){if(t.options.ignoreErrors)return(0,i.warn)('getTextContent - ignoring errors during "'.concat(n.name,'" ')+'task: "'.concat(e,'".')),U(),void q();throw e}}))}},{key:"extractDataStructures",value:function(e,t,r){var n,a=this,o=this.xref,c=this.readToUnicode(r.toUnicode||e.get("ToUnicode")||t.get("ToUnicode"));if(r.composite){var f=e.get("CIDSystemInfo");(0,s.isDict)(f)&&(r.cidSystemInfo={registry:(0,i.stringToPDFString)(f.get("Registry")),ordering:(0,i.stringToPDFString)(f.get("Ordering")),supplement:f.get("Supplement")});var h=e.get("CIDToGIDMap");(0,s.isStream)(h)&&(n=h.getBytes())}var d,p=[],g=null;if(e.has("Encoding")){if(d=e.get("Encoding"),(0,s.isDict)(d)){if(g=d.get("BaseEncoding"),g=(0,s.isName)(g)?g.name:null,d.has("Differences"))for(var m=d.get("Differences"),v=0,y=0,b=m.length;y<b;y++){var w=o.fetchIfRef(m[y]);if((0,i.isNum)(w))v=w;else{if(!(0,s.isName)(w))throw new i.FormatError("Invalid entry in 'Differences' array: ".concat(w));p[v++]=w.name}}}else{if(!(0,s.isName)(d))throw new i.FormatError("Encoding is not a Name nor a Dict");g=d.name}"MacRomanEncoding"!==g&&"MacExpertEncoding"!==g&&"WinAnsiEncoding"!==g&&(g=null)}if(g)r.defaultEncoding=(0,u.getEncoding)(g);else{var k=!!(r.flags&l.FontFlags.Symbolic),S=!!(r.flags&l.FontFlags.Nonsymbolic);d=u.StandardEncoding,"TrueType"!==r.type||S||(d=u.WinAnsiEncoding),k&&(d=u.MacRomanEncoding,r.file&&!r.isInternalFont||(/Symbol/i.test(r.name)?d=u.SymbolSetEncoding:/Dingbats|Wingdings/i.test(r.name)&&(d=u.ZapfDingbatsEncoding))),r.defaultEncoding=d}return r.differences=p,r.baseEncodingName=g,r.hasEncoding=!!g||p.length>0,r.dict=e,c.then((function(e){return r.toUnicode=e,a.buildToUnicode(r)})).then((function(e){return r.toUnicode=e,n&&(r.cidToGidMap=a.readCidToGidMap(n,e)),r}))}},{key:"_simpleFontToUnicode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,i.assert)(!e.composite,"Must be a simple font.");var r=[],n=e.defaultEncoding.slice(),a=e.baseEncodingName,o=e.differences;for(var s in o){var c=o[s];".notdef"!==c&&(n[s]=c)}var l=(0,x.getGlyphsUnicode)();for(var f in n){var d=n[f];if(""!==d)if(void 0!==l[d])r[f]=String.fromCharCode(l[d]);else{var p=0;switch(d[0]){case"G":3===d.length&&(p=parseInt(d.substring(1),16));break;case"g":5===d.length&&(p=parseInt(d.substring(1),16));break;case"C":case"c":if(d.length>=3&&d.length<=4){var g=d.substring(1);if(t){p=parseInt(g,16);break}if(p=+g,Number.isNaN(p)&&Number.isInteger(parseInt(g,16)))return this._simpleFontToUnicode(e,!0)}break;default:var m=(0,h.getUnicodeForGlyph)(d,l);-1!==m&&(p=m)}if(p>0&&p<=1114111&&Number.isInteger(p)){if(a&&p===+f){var v=(0,u.getEncoding)(a);if(v&&(d=v[f])){r[f]=String.fromCharCode(l[d]);continue}}r[f]=String.fromCodePoint(p)}}}return r}},{key:"buildToUnicode",value:(r=_(a.default.mark((function e(t){var r,n,c,l,u,f;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.hasIncludedToUnicodeMap=!!t.toUnicode&&t.toUnicode.length>0,!t.hasIncludedToUnicodeMap){e.next=4;break}return!t.composite&&t.hasEncoding&&(t.fallbackToUnicode=this._simpleFontToUnicode(t)),e.abrupt("return",t.toUnicode);case 4:if(t.composite){e.next=6;break}return e.abrupt("return",new g.ToUnicodeMap(this._simpleFontToUnicode(t)));case 6:if(!t.composite||(!t.cMap.builtInCMap||t.cMap instanceof o.IdentityCMap)&&("Adobe"!==t.cidSystemInfo.registry||"GB1"!==t.cidSystemInfo.ordering&&"CNS1"!==t.cidSystemInfo.ordering&&"Japan1"!==t.cidSystemInfo.ordering&&"Korea1"!==t.cidSystemInfo.ordering)){e.next=15;break}return r=t.cidSystemInfo,n=r.registry,c=r.ordering,l=s.Name.get("".concat(n,"-").concat(c,"-UCS2")),e.next=11,o.CMapFactory.create({encoding:l,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 11:return u=e.sent,f=[],t.cMap.forEach((function(e,t){if(t>65535)throw new i.FormatError("Max size of CID is 65,535");var r=u.lookup(t);r&&(f[e]=String.fromCharCode((r.charCodeAt(0)<<8)+r.charCodeAt(1)))})),e.abrupt("return",new g.ToUnicodeMap(f));case 15:return e.abrupt("return",new g.IdentityToUnicodeMap(t.firstChar,t.lastChar));case 16:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"readToUnicode",value:function(e){var t=this;return e?(0,s.isName)(e)?o.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(e){return e instanceof o.IdentityCMap?new g.IdentityToUnicodeMap(0,65535):new g.ToUnicodeMap(e.getMap())})):(0,s.isStream)(e)?o.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(e){if(e instanceof o.IdentityCMap)return new g.IdentityToUnicodeMap(0,65535);var t=new Array(e.length);return e.forEach((function(e,r){if("number"!=typeof r){for(var n=[],a=0;a<r.length;a+=2){var i=r.charCodeAt(a)<<8|r.charCodeAt(a+1);if(55296==(63488&i)){a+=2;var o=r.charCodeAt(a)<<8|r.charCodeAt(a+1);n.push(((1023&i)<<10)+(1023&o)+65536)}else n.push(i)}t[e]=String.fromCodePoint.apply(String,n)}else t[e]=String.fromCodePoint(r)})),new g.ToUnicodeMap(t)}),(function(e){if(e instanceof i.AbortException)return null;if(t.options.ignoreErrors)return t.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorFontToUnicode}),(0,i.warn)('readToUnicode - ignoring ToUnicode data: "'.concat(e,'".')),null;throw e})):Promise.resolve(null):Promise.resolve(null)}},{key:"readCidToGidMap",value:function(e,t){for(var r=[],n=0,a=e.length;n<a;n++){var i=e[n++]<<8|e[n],o=n>>1;(0!==i||t.has(o))&&(r[o]=i)}return r}},{key:"extractWidths",value:function(e,t,r){var n,a,i,o,c,u,f,h,d=this.xref,p=[],g=0,m=[];if(r.composite){if(g=e.has("DW")?e.get("DW"):1e3,h=e.get("W"))for(a=0,i=h.length;a<i;a++)if(u=d.fetchIfRef(h[a++]),f=d.fetchIfRef(h[a]),Array.isArray(f))for(o=0,c=f.length;o<c;o++)p[u++]=d.fetchIfRef(f[o]);else{var v=d.fetchIfRef(h[++a]);for(o=u;o<=f;o++)p[o]=v}if(r.vertical){var y=e.getArray("DW2")||[880,-1e3];if(n=[y[1],.5*g,y[0]],y=e.get("W2"))for(a=0,i=y.length;a<i;a++)if(u=d.fetchIfRef(y[a++]),f=d.fetchIfRef(y[a]),Array.isArray(f))for(o=0,c=f.length;o<c;o++)m[u++]=[d.fetchIfRef(f[o++]),d.fetchIfRef(f[o++]),d.fetchIfRef(f[o])];else{var b=[d.fetchIfRef(y[++a]),d.fetchIfRef(y[++a]),d.fetchIfRef(y[++a])];for(o=u;o<=f;o++)m[o]=b}}}else{var w=r.firstChar;if(h=e.get("Widths")){for(o=w,a=0,i=h.length;a<i;a++)p[o++]=d.fetchIfRef(h[a]);g=parseFloat(t.get("MissingWidth"))||0}else{var k=e.get("BaseFont");if((0,s.isName)(k)){var S=this.getBaseFontMetrics(k.name);p=this.buildCharCodeToWidth(S.widths,r),g=S.defaultWidth}}}var x=!0,A=g;for(var O in p){var C=p[O];if(C)if(A){if(A!==C){x=!1;break}}else A=C}x&&(r.flags|=l.FontFlags.FixedPitch),r.defaultWidth=g,r.widths=p,r.defaultVMetrics=n,r.vmetrics=m}},{key:"isSerifFont",value:function(e){var t=e.split("-")[0];return t in(0,f.getSerifFonts)()||-1!==t.search(/serif/gi)}},{key:"getBaseFontMetrics",value:function(e){var t=0,r=Object.create(null),n=!1,a=(0,f.getStdFontMap)()[e]||e,o=(0,O.getMetrics)();a in o||(a=this.isSerifFont(e)?"Times-Roman":"Helvetica");var s=o[a];return(0,i.isNum)(s)?(t=s,n=!0):r=s(),{defaultWidth:t,monospace:n,widths:r}}},{key:"buildCharCodeToWidth",value:function(e,t){for(var r=Object.create(null),n=t.differences,a=t.defaultEncoding,i=0;i<256;i++)i in n&&e[n[i]]?r[i]=e[n[i]]:i in a&&e[a[i]]&&(r[i]=e[a[i]]);return r}},{key:"preEvaluateFont",value:function(e){var t=e,r=e.get("Subtype");if(!(0,s.isName)(r))throw new i.FormatError("invalid font Subtype");var n,a,o=!1;if("Type0"===r.name){var c=e.get("DescendantFonts");if(!c)throw new i.FormatError("Descendant fonts are not specified");if(!((e=Array.isArray(c)?this.xref.fetchIfRef(c[0]):c)instanceof s.Dict))throw new i.FormatError("Descendant font is not a dictionary.");if(r=e.get("Subtype"),!(0,s.isName)(r))throw new i.FormatError("invalid font Subtype");o=!0}var l=e.get("FirstChar")||0,u=e.get("LastChar")||(o?65535:255),f=e.get("FontDescriptor");if(f){n=new C.MurmurHash3_64;var h=t.getRaw("Encoding");if((0,s.isName)(h))n.update(h.name);else if((0,s.isRef)(h))n.update(h.toString());else if((0,s.isDict)(h)){var d,p=E(h.getRawValues());try{for(p.s();!(d=p.n()).done;){var g=d.value;if((0,s.isName)(g))n.update(g.name);else if((0,s.isRef)(g))n.update(g.toString());else if(Array.isArray(g)){for(var m=g.length,v=new Array(m),y=0;y<m;y++){var b=g[y];(0,s.isName)(b)?v[y]=b.name:((0,i.isNum)(b)||(0,s.isRef)(b))&&(v[y]=b.toString())}n.update(v.join())}}}catch(e){p.e(e)}finally{p.f()}}if(n.update("".concat(l,"-").concat(u)),a=e.get("ToUnicode")||t.get("ToUnicode"),(0,s.isStream)(a)){var w=a.str||a,k=w.buffer?new Uint8Array(w.buffer.buffer,0,w.bufferLength):new Uint8Array(w.bytes.buffer,w.start,w.end-w.start);n.update(k)}else(0,s.isName)(a)&&n.update(a.name);var S=e.get("Widths")||t.get("Widths");if(Array.isArray(S)){var x,A=[],O=E(S);try{for(O.s();!(x=O.n()).done;){var F=x.value;((0,i.isNum)(F)||(0,s.isRef)(F))&&A.push(F.toString())}}catch(e){O.e(e)}finally{O.f()}n.update(A.join())}if(o){n.update("compositeFont");var T=e.get("W")||t.get("W");if(Array.isArray(T)){var I,P=[],_=E(T);try{for(_.s();!(I=_.n()).done;){var j=I.value;if((0,i.isNum)(j)||(0,s.isRef)(j))P.push(j.toString());else if(Array.isArray(j)){var M,R=[],B=E(j);try{for(B.s();!(M=B.n()).done;){var D=M.value;((0,i.isNum)(D)||(0,s.isRef)(D))&&R.push(D.toString())}}catch(e){B.e(e)}finally{B.f()}P.push("[".concat(R.join(),"]"))}}}catch(e){_.e(e)}finally{_.f()}n.update(P.join())}}}return{descriptor:f,dict:e,baseDict:t,composite:o,type:r.name,firstChar:l,lastChar:u,toUnicode:a,hash:n?n.hexdigest():""}}},{key:"translateFont",value:(t=_(a.default.mark((function e(t){var r,n,u,h,d,g,m,v,y,w,k,S,x,A,O,C,F,T,I,P,_,E,j,M,R,B,D,N,L,U,$,q,X,H,z,W=this;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.descriptor,n=t.dict,u=t.baseDict,h=t.composite,d=t.type,g=t.firstChar,m=t.lastChar,v=t.toUnicode,y=t.cssFontInfo,w="Type3"===d,r){e.next=27;break}if(!w){e.next=9;break}(r=new s.Dict(null)).set("FontName",s.Name.get(d)),r.set("FontBBox",n.getArray("FontBBox")||[0,0,0,0]),e.next=27;break;case 9:if(S=n.get("BaseFont"),(0,s.isName)(S)){e.next=12;break}throw new i.FormatError("Base font is not specified");case 12:if(S=S.name.replace(/[,_]/g,"-"),x=this.getBaseFontMetrics(S),A=S.split("-")[0],O=(this.isSerifFont(A)?l.FontFlags.Serif:0)|(x.monospace?l.FontFlags.FixedPitch:0)|((0,f.getSymbolsFonts)()[A]?l.FontFlags.Symbolic:l.FontFlags.Nonsymbolic),k={type:d,name:S,loadedName:u.loadedName,widths:x.widths,defaultWidth:x.defaultWidth,isSimulatedFlags:!0,flags:O,firstChar:g,lastChar:m,toUnicode:v,xHeight:0,capHeight:0,italicAngle:0,isType3Font:w},C=n.get("Widths"),F=(0,f.getStandardFontName)(S),T=null,!F){e.next=26;break}return k.isStandardFont=!0,e.next=24,this.fetchStandardFontData(F);case 24:T=e.sent,k.isInternalFont=!!T;case 26:return e.abrupt("return",this.extractDataStructures(n,n,k).then((function(e){if(C){for(var t=[],r=g,n=0,a=C.length;n<a;n++)t[r++]=W.xref.fetchIfRef(C[n]);e.widths=t}else e.widths=W.buildCharCodeToWidth(x.widths,e);return new c.Font(S,T,e)})));case 27:if(I=r.get("FontName"),P=n.get("BaseFont"),(0,i.isString)(I)&&(I=s.Name.get(I)),(0,i.isString)(P)&&(P=s.Name.get(P)),w||(_=I&&I.name,E=P&&P.name,_!==E&&((0,i.info)("The FontDescriptor's FontName is \"".concat(_,'" but ')+"should be the same as the Font's BaseFont \"".concat(E,'".')),_&&E&&E.startsWith(_)&&(I=P))),I=I||P,(0,s.isName)(I)){e.next=35;break}throw new i.FormatError("invalid font name");case 35:e.prev=35,j=r.get("FontFile","FontFile2","FontFile3"),e.next=45;break;case 39:if(e.prev=39,e.t0=e.catch(35),this.options.ignoreErrors){e.next=43;break}throw e.t0;case 43:(0,i.warn)('translateFont - fetching "'.concat(I.name,'" font file: "').concat(e.t0,'".')),j=new b.NullStream;case 45:if(N=!1,L=!1,U=null,!j){e.next=52;break}j.dict&&(($=j.dict.get("Subtype"))instanceof s.Name&&(M=$.name),R=j.dict.get("Length1"),B=j.dict.get("Length2"),D=j.dict.get("Length3")),e.next=74;break;case 52:if(!y){e.next=66;break}if(!(q=(0,p.getXfaFontName)(I.name))){e.next=64;break}return y.fontFamily="".concat(y.fontFamily,"-PdfJS-XFA"),y.metrics=q.metrics||null,U=q.factors||null,e.next=60,this.fetchStandardFontData(q.name);case 60:j=e.sent,L=!!j,u=n=(0,p.getXfaFontDict)(I.name),h=!0;case 64:e.next=74;break;case 66:if(w){e.next=74;break}if(!(X=(0,f.getStandardFontName)(I.name))){e.next=74;break}return N=!0,e.next=72,this.fetchStandardFontData(X);case 72:j=e.sent,L=!!j;case 74:if(k={type:d,name:I.name,subtype:M,file:j,length1:R,length2:B,length3:D,isStandardFont:N,isInternalFont:L,loadedName:u.loadedName,composite:h,fixedPitch:!1,fontMatrix:n.getArray("FontMatrix")||i.FONT_IDENTITY_MATRIX,firstChar:g,lastChar:m,toUnicode:v,bbox:r.getArray("FontBBox")||n.getArray("FontBBox"),ascent:r.get("Ascent"),descent:r.get("Descent"),xHeight:r.get("XHeight")||0,capHeight:r.get("CapHeight")||0,flags:r.get("Flags"),italicAngle:r.get("ItalicAngle")||0,isType3Font:w,cssFontInfo:y,scaleFactors:U},!h){e.next=83;break}return H=u.get("Encoding"),(0,s.isName)(H)&&(k.cidEncoding=H.name),e.next=80,o.CMapFactory.create({encoding:H,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 80:z=e.sent,k.cMap=z,k.vertical=k.cMap.vertical;case 83:return e.abrupt("return",this.extractDataStructures(n,u,k).then((function(e){return W.extractWidths(n,r,e),new c.Font(I.name,j,e)})));case 84:case"end":return e.stop()}}),e,this,[[35,39]])}))),function(e){return t.apply(this,arguments)})}],[{key:"buildFontPaths",value:function(e,t,r,n){function a(t){var a="".concat(e.loadedName,"_path_").concat(t);try{if(e.renderer.hasBuiltPath(t))return;r.send("commonobj",[a,"FontPath",e.renderer.getPathJs(t)])}catch(e){if(n.ignoreErrors)return r.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorFontBuildPath}),void(0,i.warn)("buildFontPaths - ignoring ".concat(a,' glyph: "').concat(e,'".'));throw e}}var o,s=E(t);try{for(s.s();!(o=s.n()).done;){var c=o.value;a(c.fontChar);var l=c.accent;l&&l.fontChar&&a(l.fontChar)}}catch(e){s.e(e)}finally{s.f()}}},{key:"fallbackFontDict",get:function(){var e=new s.Dict;return e.set("BaseFont",s.Name.get("PDFJS-FallbackFont")),e.set("Type",s.Name.get("FallbackType")),e.set("Subtype",s.Name.get("FallbackType")),e.set("Encoding",s.Name.get("WinAnsiEncoding")),(0,i.shadow)(this,"fallbackFontDict",e)}}]),e}();t.PartialEvaluator=q;var X=function(){function e(t){var r=t.loadedName,n=t.font,a=t.dict,i=t.evaluatorOptions;R(this,e),this.loadedName=r,this.font=n,this.dict=a,this._evaluatorOptions=i||N,this.type3Loaded=null,this.type3Dependencies=n.isType3Font?new Set:null,this.sent=!1}return D(e,[{key:"send",value:function(e){this.sent||(this.sent=!0,e.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)]))}},{key:"fallback",value:function(e){this.font.data&&(this.font.disableFontFace=!0,q.buildFontPaths(this.font,this.font.glyphCacheValues,e,this._evaluatorOptions))}},{key:"loadType3Data",value:function(e,t,r){var n=this;if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");var a=e.clone({ignoreErrors:!1});a.parsingType3Font=!0;var o,s=this.font,c=this.type3Dependencies,l=Promise.resolve(),u=this.dict.get("CharProcs"),f=this.dict.get("Resources")||t,h=Object.create(null),d=!s.bbox||(0,i.isArrayEqual)(s.bbox,[0,0,0,0]),p=E(u.getKeys());try{var g=function(){var e=o.value;l=l.then((function(){var t=u.get(e),o=new F.OperatorList;return a.getOperatorList({stream:t,task:r,resources:f,operatorList:o}).then((function(){o.fnArray[0]===i.OPS.setCharWidthAndBounds&&n._removeType3ColorOperators(o,d),h[e]=o.getIR();var t,r=E(o.dependencies);try{for(r.s();!(t=r.n()).done;){var a=t.value;c.add(a)}}catch(e){r.e(e)}finally{r.f()}})).catch((function(t){(0,i.warn)('Type3 font resource "'.concat(e,'" is not available.'));var r=new F.OperatorList;h[e]=r.getIR()}))}))};for(p.s();!(o=p.n()).done;)g()}catch(e){p.e(e)}finally{p.f()}return this.type3Loaded=l.then((function(){s.charProcOperatorList=h,n._bbox&&(s.isCharBBox=!0,s.bbox=n._bbox)})),this.type3Loaded}},{key:"_removeType3ColorOperators",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t){this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]);var r=i.Util.normalizeRect(e.argsArray[0].slice(2));this._bbox[0]=Math.min(this._bbox[0],r[0]),this._bbox[1]=Math.min(this._bbox[1],r[1]),this._bbox[2]=Math.max(this._bbox[2],r[2]),this._bbox[3]=Math.max(this._bbox[3],r[3])}for(var n=1,a=e.length;n<a;){switch(e.fnArray[n]){case i.OPS.setStrokeColorSpace:case i.OPS.setFillColorSpace:case i.OPS.setStrokeColor:case i.OPS.setStrokeColorN:case i.OPS.setFillColor:case i.OPS.setFillColorN:case i.OPS.setStrokeGray:case i.OPS.setFillGray:case i.OPS.setStrokeRGBColor:case i.OPS.setFillRGBColor:case i.OPS.setStrokeCMYKColor:case i.OPS.setFillCMYKColor:case i.OPS.shadingFill:case i.OPS.setRenderingIntent:e.fnArray.splice(n,1),e.argsArray.splice(n,1),a--;continue;case i.OPS.setGState:for(var o=I(e.argsArray[n],1),s=o[0],c=0,l=s.length;c<l;){var u=I(s[c],1),f=u[0];switch(f){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":s.splice(c,1),l--;continue}c++}}n++}}}]),e}(),H=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new W;R(this,e),this.state=t,this.stateStack=[]}return D(e,[{key:"save",value:function(){var e=this.state;this.stateStack.push(this.state),this.state=e.clone()}},{key:"restore",value:function(){var e=this.stateStack.pop();e&&(this.state=e)}},{key:"transform",value:function(e){this.state.ctm=i.Util.transform(this.state.ctm,e)}}]),e}(),z=function(){function e(){R(this,e),this.ctm=new Float32Array(i.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.font=null,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.textMatrix=i.IDENTITY_MATRIX.slice(),this.textLineMatrix=i.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}return D(e,[{key:"setTextMatrix",value:function(e,t,r,n,a,i){var o=this.textMatrix;o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=a,o[5]=i}},{key:"setTextLineMatrix",value:function(e,t,r,n,a,i){var o=this.textLineMatrix;o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=a,o[5]=i}},{key:"translateTextMatrix",value:function(e,t){var r=this.textMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]}},{key:"translateTextLineMatrix",value:function(e,t){var r=this.textLineMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]}},{key:"carriageReturn",value:function(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}},{key:"clone",value:function(){var e=Object.create(this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}}]),e}(),W=function(){function e(){R(this,e),this.ctm=new Float32Array(i.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=i.TextRenderingMode.FILL,this.fillColorSpace=k.ColorSpace.singletons.gray,this.strokeColorSpace=k.ColorSpace.singletons.gray}return D(e,[{key:"clone",value:function(){return Object.create(this)}}]),e}(),G=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new H;R(this,e),this.parser=new v.Parser({lexer:new v.Lexer(t,e.opMap),xref:r}),this.stateManager=n,this.nonProcessedArgs=[],this._numInvalidPathOPS=0}return D(e,[{key:"savedStatesDepth",get:function(){return this.stateManager.stateStack.length}},{key:"read",value:function(t){for(var r=t.args;;){var n=this.parser.getObj();if(n instanceof s.Cmd){var a=n.cmd,o=e.opMap[a];if(!o){(0,i.warn)('Unknown command "'.concat(a,'".'));continue}var c=o.id,l=o.numArgs,u=null!==r?r.length:0;if(o.variableArgs)u>l&&(0,i.info)("Command ".concat(a,": expected [0, ").concat(l,"] args, ")+"but received ".concat(u," args."));else{if(u!==l){for(var f=this.nonProcessedArgs;u>l;)f.push(r.shift()),u--;for(;u<l&&0!==f.length;)null===r&&(r=[]),r.unshift(f.pop()),u++}if(u<l){var h="command ".concat(a,": expected ").concat(l," args, ")+"but received ".concat(u," args.");if(c>=i.OPS.moveTo&&c<=i.OPS.endPath&&++this._numInvalidPathOPS>e.MAX_INVALID_PATH_OPS)throw new i.FormatError("Invalid ".concat(h));(0,i.warn)("Skipping ".concat(h)),null!==r&&(r.length=0);continue}}return this.preprocessCommand(c,r),t.fn=c,t.args=r,!0}if(n===s.EOF)return!1;if(null!==n&&(null===r&&(r=[]),r.push(n),r.length>33))throw new i.FormatError("Too many arguments")}}},{key:"preprocessCommand",value:function(e,t){switch(0|e){case i.OPS.save:this.stateManager.save();break;case i.OPS.restore:this.stateManager.restore();break;case i.OPS.transform:this.stateManager.transform(t)}}}],[{key:"opMap",get:function(){var e=(0,A.getLookupTableFactory)((function(e){e.w={id:i.OPS.setLineWidth,numArgs:1,variableArgs:!1},e.J={id:i.OPS.setLineCap,numArgs:1,variableArgs:!1},e.j={id:i.OPS.setLineJoin,numArgs:1,variableArgs:!1},e.M={id:i.OPS.setMiterLimit,numArgs:1,variableArgs:!1},e.d={id:i.OPS.setDash,numArgs:2,variableArgs:!1},e.ri={id:i.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},e.i={id:i.OPS.setFlatness,numArgs:1,variableArgs:!1},e.gs={id:i.OPS.setGState,numArgs:1,variableArgs:!1},e.q={id:i.OPS.save,numArgs:0,variableArgs:!1},e.Q={id:i.OPS.restore,numArgs:0,variableArgs:!1},e.cm={id:i.OPS.transform,numArgs:6,variableArgs:!1},e.m={id:i.OPS.moveTo,numArgs:2,variableArgs:!1},e.l={id:i.OPS.lineTo,numArgs:2,variableArgs:!1},e.c={id:i.OPS.curveTo,numArgs:6,variableArgs:!1},e.v={id:i.OPS.curveTo2,numArgs:4,variableArgs:!1},e.y={id:i.OPS.curveTo3,numArgs:4,variableArgs:!1},e.h={id:i.OPS.closePath,numArgs:0,variableArgs:!1},e.re={id:i.OPS.rectangle,numArgs:4,variableArgs:!1},e.S={id:i.OPS.stroke,numArgs:0,variableArgs:!1},e.s={id:i.OPS.closeStroke,numArgs:0,variableArgs:!1},e.f={id:i.OPS.fill,numArgs:0,variableArgs:!1},e.F={id:i.OPS.fill,numArgs:0,variableArgs:!1},e["f*"]={id:i.OPS.eoFill,numArgs:0,variableArgs:!1},e.B={id:i.OPS.fillStroke,numArgs:0,variableArgs:!1},e["B*"]={id:i.OPS.eoFillStroke,numArgs:0,variableArgs:!1},e.b={id:i.OPS.closeFillStroke,numArgs:0,variableArgs:!1},e["b*"]={id:i.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},e.n={id:i.OPS.endPath,numArgs:0,variableArgs:!1},e.W={id:i.OPS.clip,numArgs:0,variableArgs:!1},e["W*"]={id:i.OPS.eoClip,numArgs:0,variableArgs:!1},e.BT={id:i.OPS.beginText,numArgs:0,variableArgs:!1},e.ET={id:i.OPS.endText,numArgs:0,variableArgs:!1},e.Tc={id:i.OPS.setCharSpacing,numArgs:1,variableArgs:!1},e.Tw={id:i.OPS.setWordSpacing,numArgs:1,variableArgs:!1},e.Tz={id:i.OPS.setHScale,numArgs:1,variableArgs:!1},e.TL={id:i.OPS.setLeading,numArgs:1,variableArgs:!1},e.Tf={id:i.OPS.setFont,numArgs:2,variableArgs:!1},e.Tr={id:i.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},e.Ts={id:i.OPS.setTextRise,numArgs:1,variableArgs:!1},e.Td={id:i.OPS.moveText,numArgs:2,variableArgs:!1},e.TD={id:i.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},e.Tm={id:i.OPS.setTextMatrix,numArgs:6,variableArgs:!1},e["T*"]={id:i.OPS.nextLine,numArgs:0,variableArgs:!1},e.Tj={id:i.OPS.showText,numArgs:1,variableArgs:!1},e.TJ={id:i.OPS.showSpacedText,numArgs:1,variableArgs:!1},e["'"]={id:i.OPS.nextLineShowText,numArgs:1,variableArgs:!1},e['"']={id:i.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},e.d0={id:i.OPS.setCharWidth,numArgs:2,variableArgs:!1},e.d1={id:i.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},e.CS={id:i.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},e.cs={id:i.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},e.SC={id:i.OPS.setStrokeColor,numArgs:4,variableArgs:!0},e.SCN={id:i.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},e.sc={id:i.OPS.setFillColor,numArgs:4,variableArgs:!0},e.scn={id:i.OPS.setFillColorN,numArgs:33,variableArgs:!0},e.G={id:i.OPS.setStrokeGray,numArgs:1,variableArgs:!1},e.g={id:i.OPS.setFillGray,numArgs:1,variableArgs:!1},e.RG={id:i.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},e.rg={id:i.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},e.K={id:i.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},e.k={id:i.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},e.sh={id:i.OPS.shadingFill,numArgs:1,variableArgs:!1},e.BI={id:i.OPS.beginInlineImage,numArgs:0,variableArgs:!1},e.ID={id:i.OPS.beginImageData,numArgs:0,variableArgs:!1},e.EI={id:i.OPS.endInlineImage,numArgs:1,variableArgs:!1},e.Do={id:i.OPS.paintXObject,numArgs:1,variableArgs:!1},e.MP={id:i.OPS.markPoint,numArgs:1,variableArgs:!1},e.DP={id:i.OPS.markPointProps,numArgs:2,variableArgs:!1},e.BMC={id:i.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},e.BDC={id:i.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},e.EMC={id:i.OPS.endMarkedContent,numArgs:0,variableArgs:!1},e.BX={id:i.OPS.beginCompat,numArgs:0,variableArgs:!1},e.EX={id:i.OPS.endCompat,numArgs:0,variableArgs:!1},e.BM=null,e.BD=null,e.true=null,e.fa=null,e.fal=null,e.fals=null,e.false=null,e.nu=null,e.nul=null,e.null=null}));return(0,i.shadow)(this,"opMap",e())}},{key:"MAX_INVALID_PATH_OPS",get:function(){return(0,i.shadow)(this,"MAX_INVALID_PATH_OPS",20)}}]),e}();t.EvaluatorPreprocessor=G},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.IdentityCMap=t.CMapFactory=t.CMap=void 0;var a,i=(a=r(2))&&a.__esModule?a:{default:a},o=r(4),s=r(118),c=r(140),l=r(122),u=r(123);function f(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){f(i,n,a,o,s,"next",e)}function s(e){f(i,n,a,o,s,"throw",e)}o(void 0)}))}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),e}var b=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"],w=Math.pow(2,24)-1,k=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];m(this,e),this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=t}return y(e,[{key:"addCodespaceRange",value:function(e,t,r){this.codespaceRanges[e-1].push(t,r),this.numCodespaceRanges++}},{key:"mapCidRange",value:function(e,t,r){if(t-e>w)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;e<=t;)this._map[e++]=r++}},{key:"mapBfRange",value:function(e,t,r){if(t-e>w)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");for(var n=r.length-1;e<=t;)this._map[e++]=r,r=r.substring(0,n)+String.fromCharCode(r.charCodeAt(n)+1)}},{key:"mapBfRangeToArray",value:function(e,t,r){if(t-e>w)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");for(var n=r.length,a=0;e<=t&&a<n;)this._map[e]=r[a++],++e}},{key:"mapOne",value:function(e,t){this._map[e]=t}},{key:"lookup",value:function(e){return this._map[e]}},{key:"contains",value:function(e){return void 0!==this._map[e]}},{key:"forEach",value:function(e){var t=this._map,r=t.length;if(r<=65536)for(var n=0;n<r;n++)void 0!==t[n]&&e(n,t[n]);else for(var a in t)e(a,t[a])}},{key:"charCodeOf",value:function(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(var r in t)if(t[r]===e)return 0|r;return-1}},{key:"getMap",value:function(){return this._map}},{key:"readCharCode",value:function(e,t,r){for(var n=0,a=this.codespaceRanges,i=0,o=a.length;i<o;i++){n=(n<<8|e.charCodeAt(t+i))>>>0;for(var s=a[i],c=0,l=s.length;c<l;){var u=s[c++],f=s[c++];if(n>=u&&n<=f)return r.charcode=n,void(r.length=i+1)}}r.charcode=0,r.length=1}},{key:"getCharCodeLength",value:function(e){for(var t=this.codespaceRanges,r=0,n=t.length;r<n;r++)for(var a=t[r],i=0,o=a.length;i<o;){var s=a[i++],c=a[i++];if(e>=s&&e<=c)return r+1}return 1}},{key:"length",get:function(){return this._map.length}},{key:"isIdentityCMap",get:function(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(var e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}]),e}();t.CMap=k;var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(a,e);var t,r,n=(t=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,n=g(t);if(r){var a=g(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return p(this,e)});function a(e,t){var r;return m(this,a),(r=n.call(this)).vertical=e,r.addCodespaceRange(t,0,65535),r}return y(a,[{key:"mapCidRange",value:function(e,t,r){(0,o.unreachable)("should not call mapCidRange")}},{key:"mapBfRange",value:function(e,t,r){(0,o.unreachable)("should not call mapBfRange")}},{key:"mapBfRangeToArray",value:function(e,t,r){(0,o.unreachable)("should not call mapBfRangeToArray")}},{key:"mapOne",value:function(e,t){(0,o.unreachable)("should not call mapCidOne")}},{key:"lookup",value:function(e){return Number.isInteger(e)&&e<=65535?e:void 0}},{key:"contains",value:function(e){return Number.isInteger(e)&&e<=65535}},{key:"forEach",value:function(e){for(var t=0;t<=65535;t++)e(t,t)}},{key:"charCodeOf",value:function(e){return Number.isInteger(e)&&e<=65535?e:-1}},{key:"getMap",value:function(){for(var e=new Array(65536),t=0;t<=65535;t++)e[t]=t;return e}},{key:"length",get:function(){return 65536}},{key:"isIdentityCMap",get:function(){(0,o.unreachable)("should not access .isIdentityCMap")}}]),a}(k);t.IdentityCMap=S;var x=function(){function e(e,t){for(var r=0,n=0;n<=t;n++)r=r<<8|e[n];return r>>>0}function t(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(null,e.subarray(0,t+1))}function r(e,t,r){for(var n=0,a=r;a>=0;a--)n+=e[a]+t[a],e[a]=255&n,n>>=8}function n(e,t){for(var r=1,n=t;n>=0&&r>0;n--)r+=e[n],e[n]=255&r,r>>=8}var a=16,s=function(){function e(t){m(this,e),this.buffer=t,this.pos=0,this.end=t.length,this.tmpBuf=new Uint8Array(19)}return y(e,[{key:"readByte",value:function(){return this.pos>=this.end?-1:this.buffer[this.pos++]}},{key:"readNumber",value:function(){var e,t=0;do{var r=this.readByte();if(r<0)throw new o.FormatError("unexpected EOF in bcmap");e=!(128&r),t=t<<7|127&r}while(!e);return t}},{key:"readSigned",value:function(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1}},{key:"readHex",value:function(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1}},{key:"readHexNumber",value:function(e,t){var r,n=this.tmpBuf,a=0;do{var i=this.readByte();if(i<0)throw new o.FormatError("unexpected EOF in bcmap");r=!(128&i),n[a++]=127&i}while(!r);for(var s=t,c=0,l=0;s>=0;){for(;l<8&&n.length>0;)c|=n[--a]<<l,l+=7;e[s]=255&c,s--,c>>=8,l-=8}}},{key:"readHexSigned",value:function(e,t){this.readHexNumber(e,t);for(var r=1&e[t]?255:0,n=0,a=0;a<=t;a++)n=(1&n)<<8|e[a],e[a]=n>>1^r}},{key:"readString",value:function(){for(var e=this.readNumber(),t="",r=0;r<e;r++)t+=String.fromCharCode(this.readNumber());return t}}]),e}(),c=function(){function o(){m(this,o)}var c;return y(o,[{key:"process",value:(c=h(i.default.mark((function o(c,l,u){var f,h,d,p,g,m,v,y,b,w,k,S,x,A,O,C,F,T,I,P,_;return i.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:f=new s(c),h=f.readByte(),l.vertical=!!(1&h),d=null,p=new Uint8Array(a),g=new Uint8Array(a),m=new Uint8Array(a),v=new Uint8Array(a),y=new Uint8Array(a);case 9:if(!((w=f.readByte())>=0)){i.next=68;break}if(7!=(k=w>>5)){i.next=20;break}i.t0=31&w,i.next=0===i.t0?15:1===i.t0?17:19;break;case 15:return f.readString(),i.abrupt("break",19);case 17:return d=f.readString(),i.abrupt("break",19);case 19:return i.abrupt("continue",9);case 20:if(S=!!(16&w),!(1+(x=15&w)>a)){i.next=24;break}throw new Error("BinaryCMapReader.process: Invalid dataSize.");case 24:A=1,O=f.readNumber(),i.t1=k,i.next=0===i.t1?29:1===i.t1?35:2===i.t1?41:3===i.t1?46:4===i.t1?53:5===i.t1?58:65;break;case 29:for(f.readHex(p,x),f.readHexNumber(g,x),r(g,p,x),l.addCodespaceRange(x+1,e(p,x),e(g,x)),C=1;C<O;C++)n(g,x),f.readHexNumber(p,x),r(p,g,x),f.readHexNumber(g,x),r(g,p,x),l.addCodespaceRange(x+1,e(p,x),e(g,x));return i.abrupt("break",66);case 35:for(f.readHex(p,x),f.readHexNumber(g,x),r(g,p,x),f.readNumber(),F=1;F<O;F++)n(g,x),f.readHexNumber(p,x),r(p,g,x),f.readHexNumber(g,x),r(g,p,x),f.readNumber();return i.abrupt("break",66);case 41:for(f.readHex(m,x),b=f.readNumber(),l.mapOne(e(m,x),b),T=1;T<O;T++)n(m,x),S||(f.readHexNumber(y,x),r(m,y,x)),b=f.readSigned()+(b+1),l.mapOne(e(m,x),b);return i.abrupt("break",66);case 46:for(f.readHex(p,x),f.readHexNumber(g,x),r(g,p,x),b=f.readNumber(),l.mapCidRange(e(p,x),e(g,x),b),I=1;I<O;I++)n(g,x),S?p.set(g):(f.readHexNumber(p,x),r(p,g,x)),f.readHexNumber(g,x),r(g,p,x),b=f.readNumber(),l.mapCidRange(e(p,x),e(g,x),b);return i.abrupt("break",66);case 53:for(f.readHex(m,A),f.readHex(v,x),l.mapOne(e(m,A),t(v,x)),P=1;P<O;P++)n(m,A),S||(f.readHexNumber(y,A),r(m,y,A)),n(v,x),f.readHexSigned(y,x),r(v,y,x),l.mapOne(e(m,A),t(v,x));return i.abrupt("break",66);case 58:for(f.readHex(p,A),f.readHexNumber(g,A),r(g,p,A),f.readHex(v,x),l.mapBfRange(e(p,A),e(g,A),t(v,x)),_=1;_<O;_++)n(g,A),S?p.set(g):(f.readHexNumber(p,A),r(p,g,A)),f.readHexNumber(g,A),r(g,p,A),f.readHex(v,x),l.mapBfRange(e(p,A),e(g,A),t(v,x));return i.abrupt("break",66);case 65:throw new Error("BinaryCMapReader.process - unknown type: ".concat(k));case 66:i.next=9;break;case 68:if(!d){i.next=70;break}return i.abrupt("return",u(d));case 70:return i.abrupt("return",l);case 71:case"end":return i.stop()}}),o)}))),function(e,t,r){return c.apply(this,arguments)})}]),o}();return c}(),A=function(){function e(e){for(var t=0,r=0;r<e.length;r++)t=t<<8|e.charCodeAt(r);return t>>>0}function t(e){if(!(0,o.isString)(e))throw new o.FormatError("Malformed CMap: expected string.")}function r(e){if(!Number.isInteger(e))throw new o.FormatError("Malformed CMap: expected int.")}function n(r,n){for(;;){var a=n.getObj();if(a===s.EOF)break;if((0,s.isCmd)(a,"endbfchar"))return;t(a);var i=e(a);t(a=n.getObj());var o=a;r.mapOne(i,o)}}function a(r,n){for(;;){var a=n.getObj();if(a===s.EOF)break;if((0,s.isCmd)(a,"endbfrange"))return;t(a);var i=e(a);t(a=n.getObj());var c=e(a);if(a=n.getObj(),Number.isInteger(a)||(0,o.isString)(a)){var l=Number.isInteger(a)?String.fromCharCode(a):a;r.mapBfRange(i,c,l)}else{if(!(0,s.isCmd)(a,"["))break;a=n.getObj();for(var u=[];!(0,s.isCmd)(a,"]")&&a!==s.EOF;)u.push(a),a=n.getObj();r.mapBfRangeToArray(i,c,u)}}throw new o.FormatError("Invalid bf range.")}function f(n,a){for(;;){var i=a.getObj();if(i===s.EOF)break;if((0,s.isCmd)(i,"endcidchar"))return;t(i);var o=e(i);r(i=a.getObj());var c=i;n.mapOne(o,c)}}function d(n,a){for(;;){var i=a.getObj();if(i===s.EOF)break;if((0,s.isCmd)(i,"endcidrange"))return;t(i);var o=e(i);t(i=a.getObj());var c=e(i);r(i=a.getObj());var l=i;n.mapCidRange(o,c,l)}}function p(t,r){for(;;){var n=r.getObj();if(n===s.EOF)break;if((0,s.isCmd)(n,"endcodespacerange"))return;if(!(0,o.isString)(n))break;var a=e(n);if(n=r.getObj(),!(0,o.isString)(n))break;var i=e(n);t.addCodespaceRange(n.length,a,i)}throw new o.FormatError("Invalid codespace range.")}function g(e,t){var r=t.getObj();Number.isInteger(r)&&(e.vertical=!!r)}function m(e,t){var r=t.getObj();(0,s.isName)(r)&&(0,o.isString)(r.name)&&(e.name=r.name)}function v(e,t,r,n){return y.apply(this,arguments)}function y(){return y=h(i.default.mark((function e(t,r,c,u){var h,v,y;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=1,(y=r.getObj())!==s.EOF){e.next=7;break}return e.abrupt("break",39);case 7:if(!(0,s.isName)(y)){e.next=12;break}"WMode"===y.name?g(t,r):"CMapName"===y.name&&m(t,r),h=y,e.next=29;break;case 12:if(!(0,s.isCmd)(y)){e.next=29;break}e.t0=y.cmd,e.next="endcmap"===e.t0?16:"usecmap"===e.t0?17:"begincodespacerange"===e.t0?19:"beginbfchar"===e.t0?21:"begincidchar"===e.t0?23:"beginbfrange"===e.t0?25:"begincidrange"===e.t0?27:29;break;case 16:return e.abrupt("break",39);case 17:return(0,s.isName)(h)&&(v=h.name),e.abrupt("break",29);case 19:return p(t,r),e.abrupt("break",29);case 21:return n(t,r),e.abrupt("break",29);case 23:return f(t,r),e.abrupt("break",29);case 25:return a(t,r),e.abrupt("break",29);case 27:return d(t,r),e.abrupt("break",29);case 29:e.next=37;break;case 31:if(e.prev=31,e.t1=e.catch(1),!(e.t1 instanceof l.MissingDataException)){e.next=35;break}throw e.t1;case 35:return(0,o.warn)("Invalid cMap data: "+e.t1),e.abrupt("continue",0);case 37:e.next=0;break;case 39:if(!u&&v&&(u=v),!u){e.next=42;break}return e.abrupt("return",w(t,c,u));case 42:return e.abrupt("return",t);case 43:case"end":return e.stop()}}),e,null,[[1,31]])}))),y.apply(this,arguments)}function w(e,t,r){return A.apply(this,arguments)}function A(){return(A=h(i.default.mark((function e(t,r,n){var a,o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O(n,r);case 2:if(t.useCMap=e.sent,0===t.numCodespaceRanges){for(a=t.useCMap.codespaceRanges,o=0;o<a.length;o++)t.codespaceRanges[o]=a[o].slice();t.numCodespaceRanges=t.useCMap.numCodespaceRanges}return t.useCMap.forEach((function(e,r){t.contains(e)||t.mapOne(e,t.useCMap.lookup(e))})),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e,t){return C.apply(this,arguments)}function C(){return(C=h(i.default.mark((function e(t,r){var n,a,s,l,f;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("Identity-H"!==t){e.next=4;break}return e.abrupt("return",new S(!1,2));case 4:if("Identity-V"!==t){e.next=6;break}return e.abrupt("return",new S(!0,2));case 6:if(b.includes(t)){e.next=8;break}throw new Error("Unknown CMap name: "+t);case 8:if(r){e.next=10;break}throw new Error("Built-in CMap parameters are not provided.");case 10:return e.next=12,r(t);case 12:if(n=e.sent,a=n.cMapData,s=n.compressionType,l=new k(!0),s!==o.CMapCompressionType.BINARY){e.next=18;break}return e.abrupt("return",(new x).process(a,l,(function(e){return w(l,r,e)})));case 18:if(s!==o.CMapCompressionType.NONE){e.next=21;break}return f=new c.Lexer(new u.Stream(a)),e.abrupt("return",v(l,f,r,null));case 21:throw new Error("TODO: Only BINARY/NONE CMap compression is currently supported.");case 22:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return{create:function(e){return h(i.default.mark((function t(){var r,n,a,o;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.encoding,n=e.fetchBuiltInCMap,a=e.useCMap,!(0,s.isName)(r)){t.next=7;break}return t.abrupt("return",O(r.name,n));case 7:if(!(0,s.isStream)(r)){t.next=14;break}return t.next=10,v(new k,new c.Lexer(r),n,a);case 10:if(!(o=t.sent).isIdentityCMap){t.next=13;break}return t.abrupt("return",O(o.name,n));case 13:return t.abrupt("return",o);case 14:throw new Error("Encoding required.");case 15:case"end":return t.stop()}}),t)})))()}}}();t.CMapFactory=A},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.Linearization=t.Lexer=void 0;var n=r(4),a=r(118),i=r(122),o=r(141),s=r(143),c=r(144),l=r(146),u=r(147),f=r(150),h=r(152),d=r(154),p=r(123),g=r(155),m=r(156);function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),e}function w(e){for(var t=e.length,r=1,n=0,a=0;a<t;++a)n+=r+=255&e[a];return n%65521<<16|r%65521}var k=function(){function e(t){var r=t.lexer,n=t.xref,a=t.allowStreams,i=void 0!==a&&a,o=t.recoveryMode,s=void 0!==o&&o;v(this,e),this.lexer=r,this.xref=n,this.allowStreams=i,this.recoveryMode=s,this.imageCache=Object.create(null),this.refill()}return b(e,[{key:"refill",value:function(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}},{key:"shift",value:function(){this.buf2 instanceof a.Cmd&&"ID"===this.buf2.cmd?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}},{key:"tryShift",value:function(){try{return this.shift(),!0}catch(e){if(e instanceof i.MissingDataException)throw e;return!1}}},{key:"getObj",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.buf1;if(this.shift(),t instanceof a.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":for(var r=[];!(0,a.isCmd)(this.buf1,"]")&&this.buf1!==a.EOF;)r.push(this.getObj(e));if(this.buf1===a.EOF){if(this.recoveryMode)return r;throw new i.ParserEOFException("End of file inside array.")}return this.shift(),r;case"<<":for(var o=new a.Dict(this.xref);!(0,a.isCmd)(this.buf1,">>")&&this.buf1!==a.EOF;)if((0,a.isName)(this.buf1)){var s=this.buf1.name;if(this.shift(),this.buf1===a.EOF)break;o.set(s,this.getObj(e))}else(0,n.info)("Malformed dictionary: key must be a name object"),this.shift();if(this.buf1===a.EOF){if(this.recoveryMode)return o;throw new i.ParserEOFException("End of file inside dictionary.")}return(0,a.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(o,e):o:(this.shift(),o);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,a.isCmd)(this.buf2,"R")){var c=a.Ref.get(t,this.buf1);return this.shift(),this.shift(),c}return t}return"string"==typeof t&&e?e.decryptString(t):t}},{key:"findDefaultInlineStreamEnd",value:function(e){for(var t,r,o=this.lexer,s=e.pos,c=0;-1!==(t=e.getByte());)if(0===c)c=69===t?1:0;else if(1===c)c=73===t?2:0;else if((0,n.assert)(2===c,"findDefaultInlineStreamEnd - invalid state."),32===t||10===t||13===t){r=e.pos;for(var l=e.peekBytes(10),u=0,f=l.length;u<f;u++)if((0!==(t=l[u])||0===l[u+1])&&10!==t&&13!==t&&(t<32||t>127)){c=0;break}if(2!==c)continue;if(o.knownCommands){var h=o.peekObj();h instanceof a.Cmd&&!o.knownCommands[h.cmd]&&(c=0)}else(0,n.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");if(2===c)break}else c=0;-1===t&&((0,n.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),r&&((0,n.warn)('... trying to recover by using the last "EI" occurrence.'),e.skip(-(e.pos-r))));var d=4;return e.skip(-d),t=e.peekByte(),e.skip(d),(0,i.isWhiteSpace)(t)||d--,e.pos-d-s}},{key:"findDCTDecodeInlineStreamEnd",value:function(e){for(var t,r,a=e.pos,i=!1;-1!==(t=e.getByte());)if(255===t){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:i=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:(r=e.getUint16())>2?e.skip(r-2):e.skip(-2)}if(i)break}var o=e.pos-a;return-1===t?((0,n.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-o),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),o)}},{key:"findASCII85DecodeInlineStreamEnd",value:function(e){for(var t,r=e.pos;-1!==(t=e.getByte());)if(126===t){var a=e.pos;for(t=e.peekByte();(0,i.isWhiteSpace)(t);)e.skip(),t=e.peekByte();if(62===t){e.skip();break}if(e.pos>a){var o=e.peekBytes(2);if(69===o[0]&&73===o[1])break}}var s=e.pos-r;return-1===t?((0,n.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-s),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),s)}},{key:"findASCIIHexDecodeInlineStreamEnd",value:function(e){for(var t,r=e.pos;-1!==(t=e.getByte())&&62!==t;);var a=e.pos-r;return-1===t?((0,n.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-a),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),a)}},{key:"inlineStreamSkipEI",value:function(e){for(var t,r=0;-1!==(t=e.getByte());)if(0===r)r=69===t?1:0;else if(1===r)r=73===t?2:0;else if(2===r)break}},{key:"makeInlineImage",value:function(e){for(var t,r=this.lexer,i=r.stream,o=new a.Dict(this.xref);!(0,a.isCmd)(this.buf1,"ID")&&this.buf1!==a.EOF;){if(!(0,a.isName)(this.buf1))throw new n.FormatError("Dictionary key must be a name object");var s=this.buf1.name;if(this.shift(),this.buf1===a.EOF)break;o.set(s,this.getObj(e))}-1!==r.beginInlineImagePos&&(t=i.pos-r.beginInlineImagePos);var c,l=o.get("Filter","F");if((0,a.isName)(l))c=l.name;else if(Array.isArray(l)){var u=this.xref.fetchIfRef(l[0]);(0,a.isName)(u)&&(c=u.name)}var f,h=i.pos;f="DCTDecode"===c||"DCT"===c?this.findDCTDecodeInlineStreamEnd(i):"ASCII85Decode"===c||"A85"===c?this.findASCII85DecodeInlineStreamEnd(i):"ASCIIHexDecode"===c||"AHx"===c?this.findASCIIHexDecodeInlineStreamEnd(i):this.findDefaultInlineStreamEnd(i);var d,p=i.makeSubStream(h,f,o);if(f<1e3&&t<5552){var g=p.getBytes();p.reset();var m=i.pos;i.pos=r.beginInlineImagePos;var v=i.getBytes(t);i.pos=m,d=w(g)+"_"+w(v);var y=this.imageCache[d];if(void 0!==y)return this.buf2=a.Cmd.get("EI"),this.shift(),y.reset(),y}return e&&(p=e.createStream(p,f)),(p=this.filter(p,o,f)).dict=o,void 0!==d&&(p.cacheKey="inline_".concat(f,"_").concat(d),this.imageCache[d]=p),this.buf2=a.Cmd.get("EI"),this.shift(),p}},{key:"_findStreamLength",value:function(e,t){var r=this.lexer.stream;r.pos=e;for(var n=t.length;r.pos<r.end;){var a=r.peekBytes(2048),i=a.length-n;if(i<=0)break;for(var o=0;o<i;){for(var s=0;s<n&&a[o+s]===t[s];)s++;if(s>=n)return r.pos+=o,r.pos-e;o++}r.pos+=i}return-1}},{key:"makeStream",value:function(e,t){var r=this.lexer,o=r.stream;r.skipToNextLine();var s=o.pos-1,c=e.get("Length");if(Number.isInteger(c)||((0,n.info)('Bad length "'.concat(c,'" in stream')),c=0),o.pos=s+c,r.nextChar(),this.tryShift()&&(0,a.isCmd)(this.buf2,"endstream"))this.shift();else{var l=new Uint8Array([101,110,100,115,116,114,101,97,109]),u=this._findStreamLength(s,l);if(u<0){for(var f=1;f<=1;f++){var h=l.length-f,d=l.slice(0,h),p=this._findStreamLength(s,d);if(p>=0){var g=o.peekBytes(h+1)[h];if(!(0,i.isWhiteSpace)(g))break;(0,n.info)('Found "'.concat((0,n.bytesToString)(d),'" when ')+"searching for endstream command."),u=p;break}}if(u<0)throw new n.FormatError("Missing endstream command.")}c=u,r.nextChar(),this.shift(),this.shift()}return this.shift(),o=o.makeSubStream(s,c,e),t&&(o=t.createStream(o,c)),(o=this.filter(o,e,c)).dict=e,o}},{key:"filter",value:function(e,t,r){var i=t.get("Filter","F"),o=t.get("DecodeParms","DP");if((0,a.isName)(i))return Array.isArray(o)&&(0,n.warn)("/DecodeParms should not contain an Array, when /Filter contains a Name."),this.makeFilter(e,i.name,r,o);var s=r;if(Array.isArray(i))for(var c=i,l=o,u=0,f=c.length;u<f;++u){if(i=this.xref.fetchIfRef(c[u]),!(0,a.isName)(i))throw new n.FormatError('Bad filter name "'.concat(i,'"'));o=null,Array.isArray(l)&&u in l&&(o=this.xref.fetchIfRef(l[u])),e=this.makeFilter(e,i.name,s,o),s=null}return e}},{key:"makeFilter",value:function(e,t,r,a){if(0===r)return(0,n.warn)('Empty "'.concat(t,'" stream.')),new p.NullStream;try{var v=this.xref.stats.streamTypes;if("FlateDecode"===t||"Fl"===t)return v[n.StreamType.FLATE]=!0,a?new g.PredictorStream(new l.FlateStream(e,r),r,a):new l.FlateStream(e,r);if("LZWDecode"===t||"LZW"===t){v[n.StreamType.LZW]=!0;var y=1;return a?(a.has("EarlyChange")&&(y=a.get("EarlyChange")),new g.PredictorStream(new d.LZWStream(e,r,y),r,a)):new d.LZWStream(e,r,y)}return"DCTDecode"===t||"DCT"===t?(v[n.StreamType.DCT]=!0,new f.JpegStream(e,r,a)):"JPXDecode"===t||"JPX"===t?(v[n.StreamType.JPX]=!0,new h.JpxStream(e,r,a)):"ASCII85Decode"===t||"A85"===t?(v[n.StreamType.A85]=!0,new o.Ascii85Stream(e,r)):"ASCIIHexDecode"===t||"AHx"===t?(v[n.StreamType.AHX]=!0,new s.AsciiHexStream(e,r)):"CCITTFaxDecode"===t||"CCF"===t?(v[n.StreamType.CCF]=!0,new c.CCITTFaxStream(e,r,a)):"RunLengthDecode"===t||"RL"===t?(v[n.StreamType.RLX]=!0,new m.RunLengthStream(e,r)):"JBIG2Decode"===t?(v[n.StreamType.JBIG]=!0,new u.Jbig2Stream(e,r,a)):((0,n.warn)('Filter "'.concat(t,'" is not supported.')),e)}catch(e){if(e instanceof i.MissingDataException)throw e;return(0,n.warn)('Invalid stream: "'.concat(e,'"')),new p.NullStream}}}]),e}();t.Parser=k;var S=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function x(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}var A=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;v(this,e),this.stream=t,this.nextChar(),this.strBuf=[],this.knownCommands=r,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}return b(e,[{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"peekChar",value:function(){return this.stream.peekByte()}},{key:"getNumber",value:function(){var e=this.currentChar,t=!1,r=0,a=0;if(45===e?(a=-1,45===(e=this.nextChar())&&(e=this.nextChar())):43===e&&(a=1,e=this.nextChar()),10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);if(46===e&&(r=10,e=this.nextChar()),e<48||e>57){if(10===r&&0===a&&((0,i.isWhiteSpace)(e)||-1===e))return(0,n.warn)("Lexer.getNumber - treating a single decimal point as zero."),0;throw new n.FormatError("Invalid number: ".concat(String.fromCharCode(e)," (charCode ").concat(e,")"))}a=a||1;for(var o=e-48,s=0,c=1;(e=this.nextChar())>=0;)if(e>=48&&e<=57){var l=e-48;t?s=10*s+l:(0!==r&&(r*=10),o=10*o+l)}else if(46===e){if(0!==r)break;r=1}else if(45===e)(0,n.warn)("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;if(43===(e=this.peekChar())||45===e)c=45===e?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return 0!==r&&(o/=r),t&&(o*=Math.pow(10,c*s)),a*o}},{key:"getString",value:function(){var e=1,t=!1,r=this.strBuf;r.length=0;for(var a=this.nextChar();;){var i=!1;switch(0|a){case-1:(0,n.warn)("Unterminated string"),t=!0;break;case 40:++e,r.push("(");break;case 41:0==--e?(this.nextChar(),t=!0):r.push(")");break;case 92:switch(a=this.nextChar()){case-1:(0,n.warn)("Unterminated string"),t=!0;break;case 110:r.push("\n");break;case 114:r.push("\r");break;case 116:r.push("\t");break;case 98:r.push("\b");break;case 102:r.push("\f");break;default:r.push(String.fromCharCode(a));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var o=15&a;i=!0,(a=this.nextChar())>=48&&a<=55&&(o=(o<<3)+(15&a),(a=this.nextChar())>=48&&a<=55&&(i=!1,o=(o<<3)+(15&a))),r.push(String.fromCharCode(o));break;case 13:10===this.peekChar()&&this.nextChar();case 10:}break;default:r.push(String.fromCharCode(a))}if(t)break;i||(a=this.nextChar())}return r.join("")}},{key:"getName",value:function(){var e,t,r=this.strBuf;for(r.length=0;(e=this.nextChar())>=0&&!S[e];)if(35===e){if(e=this.nextChar(),S[e]){(0,n.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),r.push("#");break}var i=x(e);if(-1!==i){t=e;var o=x(e=this.nextChar());if(-1===o){if((0,n.warn)("Lexer_getName: Illegal digit (".concat(String.fromCharCode(e),") ")+"in hexadecimal number."),r.push("#",String.fromCharCode(t)),S[e])break;r.push(String.fromCharCode(e));continue}r.push(String.fromCharCode(i<<4|o))}else r.push("#",String.fromCharCode(e))}else r.push(String.fromCharCode(e));return r.length>127?(0,n.warn)("Name token is longer than allowed by the spec: ".concat(r.length)):0===r.length&&(0,n.warn)("Name token is empty."),a.Name.get(r.join(""))}},{key:"_hexStringWarn",value:function(e){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,n.warn)("getHexString - ignoring invalid character: ".concat(e)):(0,n.warn)("getHexString - ignoring additional invalid characters.")}},{key:"getHexString",value:function(){var e=this.strBuf;e.length=0;var t,r,a=this.currentChar,i=!0;for(this._hexStringNumWarn=0;;){if(a<0){(0,n.warn)("Unterminated hex string");break}if(62===a){this.nextChar();break}if(1!==S[a]){if(i){if(-1===(t=x(a))){this._hexStringWarn(a),a=this.nextChar();continue}}else{if(-1===(r=x(a))){this._hexStringWarn(a),a=this.nextChar();continue}e.push(String.fromCharCode(t<<4|r))}i=!i,a=this.nextChar()}else a=this.nextChar()}return e.join("")}},{key:"getObj",value:function(){for(var e=!1,t=this.currentChar;;){if(t<0)return a.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==S[t])break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),a.Cmd.get("[");case 93:return this.nextChar(),a.Cmd.get("]");case 60:return 60===(t=this.nextChar())?(this.nextChar(),a.Cmd.get("<<")):this.getHexString();case 62:return 62===(t=this.nextChar())?(this.nextChar(),a.Cmd.get(">>")):a.Cmd.get(">");case 123:return this.nextChar(),a.Cmd.get("{");case 125:return this.nextChar(),a.Cmd.get("}");case 41:throw this.nextChar(),new n.FormatError("Illegal character: ".concat(t))}var r=String.fromCharCode(t);if(t<32||t>127){var i=this.peekChar();if(i>=32&&i<=127)return this.nextChar(),a.Cmd.get(r)}for(var o=this.knownCommands,s=o&&void 0!==o[r];(t=this.nextChar())>=0&&!S[t];){var c=r+String.fromCharCode(t);if(s&&void 0===o[c])break;if(128===r.length)throw new n.FormatError("Command token too long: ".concat(r.length));r=c,s=o&&void 0!==o[r]}return"true"===r||"false"!==r&&("null"===r?null:("BI"===r&&(this.beginInlineImagePos=this.stream.pos),a.Cmd.get(r)))}},{key:"peekObj",value:function(){var e,t=this.stream.pos,r=this.currentChar,a=this.beginInlineImagePos;try{e=this.getObj()}catch(e){if(e instanceof i.MissingDataException)throw e;(0,n.warn)("peekObj: ".concat(e))}return this.stream.pos=t,this.currentChar=r,this.beginInlineImagePos=a,e}},{key:"skipToNextLine",value:function(){for(var e=this.currentChar;e>=0;){if(13===e){10===(e=this.nextChar())&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}]),e}();t.Lexer=A;var O=function(){function e(){v(this,e)}return b(e,null,[{key:"create",value:function(e){function t(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.get(t);if(Number.isInteger(n)&&(r?n>=0:n>0))return n;throw new Error('The "'.concat(t,'" parameter in the linearization ')+"dictionary is invalid.")}var r,i,o=new k({lexer:new A(e),xref:null}),s=o.getObj(),c=o.getObj(),l=o.getObj(),u=o.getObj();if(!(Number.isInteger(s)&&Number.isInteger(c)&&(0,a.isCmd)(l,"obj")&&(0,a.isDict)(u)&&(0,n.isNum)(r=u.get("Linearized"))&&r>0))return null;if((i=t(u,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:i,hints:function(e){var t,r=e.get("H");if(Array.isArray(r)&&(2===(t=r.length)||4===t)){for(var n=0;n<t;n++){var a=r[n];if(!(Number.isInteger(a)&&a>0))throw new Error("Hint (".concat(n,") in the linearization dictionary is invalid."))}return r}throw new Error("Hint array in the linearization dictionary is invalid.")}(u),objectNumberFirst:t(u,"O"),endFirst:t(u,"E"),numPages:t(u,"N"),mainXRefEntriesOffset:t(u,"T"),pageFirst:u.has("P")?t(u,"P",!0):0}}}]),e}();t.Linearization=O},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Ascii85Stream=void 0;var a=r(142),i=r(122);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,r,n,a,u=(n=f,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=l(n);if(a){var r=l(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return c(this,e)});function f(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),t&&(t*=.8),(r=u.call(this,t)).str=e,r.dict=e.dict,r.input=new Uint8Array(5),r}return t=f,(r=[{key:"readBlock",value:function(){for(var e=this.str,t=e.getByte();(0,i.isWhiteSpace)(t);)t=e.getByte();if(-1!==t&&126!==t){var r,n,a=this.bufferLength;if(122===t){for(r=this.ensureBuffer(a+4),n=0;n<4;++n)r[a+n]=0;this.bufferLength+=4}else{var o=this.input;for(o[0]=t,n=1;n<5;++n){for(t=e.getByte();(0,i.isWhiteSpace)(t);)t=e.getByte();if(o[n]=t,-1===t||126===t)break}if(r=this.ensureBuffer(a+n-1),this.bufferLength+=n-1,n<5){for(;n<5;++n)o[n]=117;this.eof=!0}var s=0;for(n=0;n<5;++n)s=85*s+(o[n]-33);for(n=3;n>=0;--n)r[a+n]=255&s,s>>=8}}else this.eof=!0}}])&&o(t.prototype,r),f}(a.DecodeStream);t.Ascii85Stream=u},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.StreamsSequenceStream=t.DecodeStream=void 0;var a=r(119),i=r(123);function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw i}}}}function s(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),e}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=m(e);if(t){var a=m(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=new Uint8Array(0),y=function(e){h(r,e);var t=p(r);function r(e){var n;if(l(this,r),(n=t.call(this))._rawMinBufferLength=e||0,n.pos=0,n.bufferLength=0,n.eof=!1,n.buffer=v,n.minBufferLength=512,e)for(;n.minBufferLength<e;)n.minBufferLength*=2;return n}return f(r,[{key:"isEmpty",get:function(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength}},{key:"ensureBuffer",value:function(e){var t=this.buffer;if(e<=t.byteLength)return t;for(var r=this.minBufferLength;r<e;)r*=2;var n=new Uint8Array(r);return n.set(t),this.buffer=n}},{key:"getByte",value:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}},{key:"getBytes",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.pos;if(e){for(this.ensureBuffer(n+e),t=n+e;!this.eof&&this.bufferLength<t;)this.readBlock();var a=this.bufferLength;t>a&&(t=a)}else{for(;!this.eof;)this.readBlock();t=this.bufferLength}this.pos=t;var i=this.buffer.subarray(n,t);return!r||i instanceof Uint8ClampedArray?i:new Uint8ClampedArray(i)}},{key:"reset",value:function(){this.pos=0}},{key:"makeSubStream",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(void 0===t)for(;!this.eof;)this.readBlock();else for(var n=e+t;this.bufferLength<=n&&!this.eof;)this.readBlock();return new i.Stream(this.buffer,e,t,r)}},{key:"getBaseStreams",value:function(){return this.str?this.str.getBaseStreams():null}}]),r}(a.BaseStream);t.DecodeStream=y;var b=function(e){h(r,e);var t=p(r);function r(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;l(this,r);var i,s=0,c=o(e);try{for(c.s();!(i=c.n()).done;){var u=i.value;s+=u instanceof y?u._rawMinBufferLength:u.length}}catch(e){c.e(e)}finally{c.f()}return(n=t.call(this,s)).streams=e,n._onError=a,n}return f(r,[{key:"readBlock",value:function(){var e=this.streams;if(0!==e.length){var t,r=e.shift();try{t=r.getBytes()}catch(e){if(this._onError)return void this._onError(e,r.dict&&r.dict.objId);throw e}var n=this.bufferLength,a=n+t.length;this.ensureBuffer(a).set(t,n),this.bufferLength=a}else this.eof=!0}},{key:"getBaseStreams",value:function(){var e,t,r=[],n=o(this.streams);try{for(n.s();!(e=n.n()).done;){var a=e.value.getBaseStreams();a&&r.push.apply(r,function(e){if(Array.isArray(e))return c(e)}(t=a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}catch(e){n.e(e)}finally{n.f()}return r.length>0?r:null}}]),r}(y);t.StreamsSequenceStream=b},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function s(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.AsciiHexStream=void 0;var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(f,e);var t,r,n,l,u=(n=f,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=c(n);if(l){var r=c(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return s(this,e)});function f(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),t&&(t*=.5),(r=u.call(this,t)).str=e,r.dict=e.dict,r.firstDigit=-1,r}return t=f,(r=[{key:"readBlock",value:function(){var e=this.str.getBytes(8e3);if(e.length){var t,r=e.length+1>>1,n=this.ensureBuffer(this.bufferLength+r),i=this.bufferLength,o=this.firstDigit,s=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw o}}}}(e);try{for(s.s();!(t=s.n()).done;){var c=t.value,l=void 0;if(c>=48&&c<=57)l=15&c;else{if(!(c>=65&&c<=70||c>=97&&c<=102)){if(62===c){this.eof=!0;break}continue}l=9+(15&c)}o<0?o=l:(n[i++]=o<<4|l,o=-1)}}catch(e){s.e(e)}finally{s.f()}o>=0&&this.eof&&(n[i++]=o<<4,o=-1),this.firstDigit=o,this.bufferLength=i}else this.eof=!0}}])&&i(t.prototype,r),f}(r(142).DecodeStream);t.AsciiHexStream=l},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxStream=void 0;var a=r(118),i=r(145);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(h,e);var t,r,n,u,f=(n=h,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=l(n);if(u){var r=l(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return c(this,e)});function h(e,t,r){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(n=f.call(this,t)).str=e,n.dict=e.dict,(0,a.isDict)(r)||(r=a.Dict.empty);var o={next:function(){return e.getByte()}};return n.ccittFaxDecoder=new i.CCITTFaxDecoder(o,{K:r.get("K"),EndOfLine:r.get("EndOfLine"),EncodedByteAlign:r.get("EncodedByteAlign"),Columns:r.get("Columns"),Rows:r.get("Rows"),EndOfBlock:r.get("EndOfBlock"),BlackIs1:r.get("BlackIs1")}),n}return t=h,(r=[{key:"readBlock",value:function(){for(;!this.eof;){var e=this.ccittFaxDecoder.readNextChar();if(-1===e)return void(this.eof=!0);this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}}}])&&o(t.prototype,r),h}(r(142).DecodeStream);t.CCITTFaxStream=u},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxDecoder=void 0;var n=r(4);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=-1,s=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],c=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],l=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],u=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],f=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],h=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]],d=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a(this,e),!t||"function"!=typeof t.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=t,this.eof=!1,this.encoding=r.K||0,this.eoline=r.EndOfLine||!1,this.byteAlign=r.EncodedByteAlign||!1,this.columns=r.Columns||1728,this.rows=r.Rows||0;var n,i=r.EndOfBlock;for(null==i&&(i=!0),this.eoblock=i,this.black=r.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;0===(n=this._lookBits(12));)this._eatBits(1);1===n&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}var t,r;return t=e,(r=[{key:"readNextChar",value:function(){if(this.eof)return-1;var e,t,r,a,i,s=this.refLine,c=this.codingLine,l=this.columns;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;var u,f,h;if(this.err=!1,this.nextLine2D){for(a=0;c[a]<l;++a)s[a]=c[a];for(s[a++]=l,s[a]=l,c[0]=0,this.codingPos=0,e=0,t=0;c[this.codingPos]<l;)switch(u=this._getTwoDimCode()){case 0:this._addPixels(s[e+1],t),s[e+1]<l&&(e+=2);break;case 1:if(u=f=0,t){do{u+=h=this._getBlackCode()}while(h>=64);do{f+=h=this._getWhiteCode()}while(h>=64)}else{do{u+=h=this._getWhiteCode()}while(h>=64);do{f+=h=this._getBlackCode()}while(h>=64)}for(this._addPixels(c[this.codingPos]+u,t),c[this.codingPos]<l&&this._addPixels(c[this.codingPos]+f,1^t);s[e]<=c[this.codingPos]&&s[e]<l;)e+=2;break;case 7:if(this._addPixels(s[e]+3,t),t^=1,c[this.codingPos]<l)for(++e;s[e]<=c[this.codingPos]&&s[e]<l;)e+=2;break;case 5:if(this._addPixels(s[e]+2,t),t^=1,c[this.codingPos]<l)for(++e;s[e]<=c[this.codingPos]&&s[e]<l;)e+=2;break;case 3:if(this._addPixels(s[e]+1,t),t^=1,c[this.codingPos]<l)for(++e;s[e]<=c[this.codingPos]&&s[e]<l;)e+=2;break;case 2:if(this._addPixels(s[e],t),t^=1,c[this.codingPos]<l)for(++e;s[e]<=c[this.codingPos]&&s[e]<l;)e+=2;break;case 8:if(this._addPixelsNeg(s[e]-3,t),t^=1,c[this.codingPos]<l)for(e>0?--e:++e;s[e]<=c[this.codingPos]&&s[e]<l;)e+=2;break;case 6:if(this._addPixelsNeg(s[e]-2,t),t^=1,c[this.codingPos]<l)for(e>0?--e:++e;s[e]<=c[this.codingPos]&&s[e]<l;)e+=2;break;case 4:if(this._addPixelsNeg(s[e]-1,t),t^=1,c[this.codingPos]<l)for(e>0?--e:++e;s[e]<=c[this.codingPos]&&s[e]<l;)e+=2;break;case o:this._addPixels(l,0),this.eof=!0;break;default:(0,n.info)("bad 2d code"),this._addPixels(l,0),this.err=!0}}else for(c[0]=0,this.codingPos=0,t=0;c[this.codingPos]<l;){if(u=0,t)do{u+=h=this._getBlackCode()}while(h>=64);else do{u+=h=this._getWhiteCode()}while(h>=64);this._addPixels(c[this.codingPos]+u,t),t^=1}var d=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(u=this._lookBits(12),this.eoline)for(;u!==o&&1!==u;)this._eatBits(1),u=this._lookBits(12);else for(;0===u;)this._eatBits(1),u=this._lookBits(12);1===u?(this._eatBits(12),d=!0):u===o&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&d&&this.byteAlign){if(1===(u=this._lookBits(12))){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(a=0;a<4;++a)1!==(u=this._lookBits(12))&&(0,n.info)("bad rtc code: "+u),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if((u=this._lookBits(13))===o)return this.eof=!0,-1;if(u>>1==1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&u))}c[0]>0?this.outputBits=c[this.codingPos=0]:this.outputBits=c[this.codingPos=1],this.row++}if(this.outputBits>=8)i=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&c[this.codingPos]<l&&(this.codingPos++,this.outputBits=c[this.codingPos]-c[this.codingPos-1]);else{r=8,i=0;do{this.outputBits>r?(i<<=r,1&this.codingPos||(i|=255>>8-r),this.outputBits-=r,r=0):(i<<=this.outputBits,1&this.codingPos||(i|=255>>8-this.outputBits),r-=this.outputBits,this.outputBits=0,c[this.codingPos]<l?(this.codingPos++,this.outputBits=c[this.codingPos]-c[this.codingPos-1]):r>0&&(i<<=r,r=0))}while(r)}return this.black&&(i^=255),i}},{key:"_addPixels",value:function(e,t){var r=this.codingLine,a=this.codingPos;e>r[a]&&(e>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,e=this.columns),1&a^t&&++a,r[a]=e),this.codingPos=a}},{key:"_addPixelsNeg",value:function(e,t){var r=this.codingLine,a=this.codingPos;if(e>r[a])e>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,e=this.columns),1&a^t&&++a,r[a]=e;else if(e<r[a]){for(e<0&&((0,n.info)("invalid code"),this.err=!0,e=0);a>0&&e<r[a-1];)--a;r[a]=e}this.codingPos=a}},{key:"_findTableCode",value:function(e,t,r,n){for(var a=n||0,i=e;i<=t;++i){var s=this._lookBits(i);if(s===o)return[!0,1,!1];if(i<t&&(s<<=t-i),!a||s>=a){var c=r[s-a];if(c[0]===i)return this._eatBits(i),[!0,c[1],!0]}}return[!1,0,!1]}},{key:"_getTwoDimCode",value:function(){var e,t=0;if(this.eoblock){if(t=this._lookBits(7),(e=s[t])&&e[0]>0)return this._eatBits(e[0]),e[1]}else{var r=this._findTableCode(1,7,s);if(r[0]&&r[2])return r[1]}return(0,n.info)("Bad two dim code"),o}},{key:"_getWhiteCode",value:function(){var e,t=0;if(this.eoblock){if((t=this._lookBits(12))===o)return 1;if((e=t>>5==0?c[t]:l[t>>3])[0]>0)return this._eatBits(e[0]),e[1]}else{var r=this._findTableCode(1,9,l);if(r[0])return r[1];if((r=this._findTableCode(11,12,c))[0])return r[1]}return(0,n.info)("bad white code"),this._eatBits(1),1}},{key:"_getBlackCode",value:function(){var e,t;if(this.eoblock){if((e=this._lookBits(13))===o)return 1;if((t=e>>7==0?u[e]:e>>9==0&&e>>7!=0?f[(e>>1)-64]:h[e>>7])[0]>0)return this._eatBits(t[0]),t[1]}else{var r=this._findTableCode(2,6,h);if(r[0])return r[1];if((r=this._findTableCode(7,12,f,64))[0])return r[1];if((r=this._findTableCode(10,13,u))[0])return r[1]}return(0,n.info)("bad black code"),this._eatBits(1),1}},{key:"_lookBits",value:function(e){for(var t;this.inputBits<e;){if(-1===(t=this.source.next()))return 0===this.inputBits?o:this.inputBuf<<e-this.inputBits&65535>>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e}},{key:"_eatBits",value:function(e){(this.inputBits-=e)<0&&(this.inputBits=0)}}])&&i(t.prototype,r),e}();t.CCITTFaxDecoder=d},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.FlateStream=void 0;var a=r(142),i=r(4);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var u=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),h=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),d=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],p=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5],g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(m,e);var t,r,n,a,g=(n=m,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=l(n);if(a){var r=l(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return c(this,e)});function m(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),(r=g.call(this,t)).str=e,r.dict=e.dict;var n=e.getByte(),a=e.getByte();if(-1===n||-1===a)throw new i.FormatError("Invalid header in flate stream: ".concat(n,", ").concat(a));if(8!=(15&n))throw new i.FormatError("Unknown compression method in flate stream: ".concat(n,", ").concat(a));if(((n<<8)+a)%31!=0)throw new i.FormatError("Bad FCHECK in flate stream: ".concat(n,", ").concat(a));if(32&a)throw new i.FormatError("FDICT bit set in flate stream: ".concat(n,", ").concat(a));return r.codeSize=0,r.codeBuf=0,r}return t=m,(r=[{key:"getBits",value:function(e){for(var t,r=this.str,n=this.codeSize,a=this.codeBuf;n<e;){if(-1===(t=r.getByte()))throw new i.FormatError("Bad encoding in flate stream");a|=t<<n,n+=8}return t=a&(1<<e)-1,this.codeBuf=a>>e,this.codeSize=n-=e,t}},{key:"getCode",value:function(e){for(var t,r=this.str,n=e[0],a=e[1],o=this.codeSize,s=this.codeBuf;o<a&&-1!==(t=r.getByte());)s|=t<<o,o+=8;var c=n[s&(1<<a)-1],l=c>>16,u=65535&c;if(l<1||o<l)throw new i.FormatError("Bad encoding in flate stream");return this.codeBuf=s>>l,this.codeSize=o-l,u}},{key:"generateHuffmanTable",value:function(e){var t,r=e.length,n=0;for(t=0;t<r;++t)e[t]>n&&(n=e[t]);for(var a=1<<n,i=new Int32Array(a),o=1,s=0,c=2;o<=n;++o,s<<=1,c<<=1)for(var l=0;l<r;++l)if(e[l]===o){var u=0,f=s;for(t=0;t<o;++t)u=u<<1|1&f,f>>=1;for(t=u;t<a;t+=c)i[t]=o<<16|l;++s}return[i,n]}},{key:"readBlock",value:function(){var e,t,r=this.str,n=this.getBits(3);if(1&n&&(this.eof=!0),0!=(n>>=1)){var a,o;if(1===n)a=d,o=p;else{if(2!==n)throw new i.FormatError("Unknown block type in flate stream");var s,c=this.getBits(5)+257,l=this.getBits(5)+1,g=this.getBits(4)+4,m=new Uint8Array(u.length);for(s=0;s<g;++s)m[u[s]]=this.getBits(3);var v=this.generateHuffmanTable(m);t=0,s=0;for(var y,b,w,k=c+l,S=new Uint8Array(k);s<k;){var x=this.getCode(v);if(16===x)y=2,b=3,w=t;else if(17===x)y=3,b=3,w=t=0;else{if(18!==x){S[s++]=t=x;continue}y=7,b=11,w=t=0}for(var A=this.getBits(y)+b;A-- >0;)S[s++]=w}a=this.generateHuffmanTable(S.subarray(0,c)),o=this.generateHuffmanTable(S.subarray(c,k))}for(var O=(e=this.buffer)?e.length:0,C=this.bufferLength;;){var F=this.getCode(a);if(F<256)C+1>=O&&(O=(e=this.ensureBuffer(C+1)).length),e[C++]=F;else{if(256===F)return void(this.bufferLength=C);var T=(F=f[F-=257])>>16;T>0&&(T=this.getBits(T)),t=(65535&F)+T,F=this.getCode(o),(T=(F=h[F])>>16)>0&&(T=this.getBits(T));var I=(65535&F)+T;C+t>=O&&(O=(e=this.ensureBuffer(C+t)).length);for(var P=0;P<t;++P,++C)e[C]=e[C-I]}}}else{var _;if(-1===(_=r.getByte()))throw new i.FormatError("Bad block header in flate stream");var E=_;if(-1===(_=r.getByte()))throw new i.FormatError("Bad block header in flate stream");if(E|=_<<8,-1===(_=r.getByte()))throw new i.FormatError("Bad block header in flate stream");var j=_;if(-1===(_=r.getByte()))throw new i.FormatError("Bad block header in flate stream");if((j|=_<<8)!=(65535&~E)&&(0!==E||0!==j))throw new i.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var M=this.bufferLength,R=M+E;if(e=this.ensureBuffer(R),this.bufferLength=R,0===E)-1===r.peekByte()&&(this.eof=!0);else{var B=r.getBytes(E);e.set(B,M),B.length<E&&(this.eof=!0)}}}}])&&o(t.prototype,r),m}(a.DecodeStream);t.FlateStream=g},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Stream=void 0;var a=r(118),i=r(142),o=r(148),s=r(4);function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(d,e);var t,r,n,i,h=(n=d,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=f(n);if(i){var r=f(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function d(e,t,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(n=h.call(this,t)).stream=e,n.dict=e.dict,n.maybeLength=t,n.params=r,n}return t=d,(r=[{key:"bytes",get:function(){return(0,s.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function(e){}},{key:"readBlock",value:function(){if(!this.eof){var e=new o.Jbig2Image,t=[];if((0,a.isDict)(this.params)){var r=this.params.get("JBIG2Globals");if((0,a.isStream)(r)){var n=r.getBytes();t.push({data:n,start:0,end:n.length})}}t.push({data:this.bytes,start:0,end:this.bytes.length});for(var i=e.parseChunks(t),s=i.length,c=0;c<s;c++)i[c]^=255;this.buffer=i,this.bufferLength=s,this.eof=!0}}}])&&c(t.prototype,r),d}(i.DecodeStream);t.Jbig2Stream=h},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Image=void 0;var a=r(4),i=r(122),o=r(149),s=r(145);function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(a,e);var t,r,n=(t=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,n=d(t);if(r){var a=d(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return h(this,e)});function a(e){return u(this,a),n.call(this,"JBIG2 error: ".concat(e),"Jbig2Error")}return a}(a.BaseException),g=function(){function e(){u(this,e)}return l(e,[{key:"getContexts",value:function(e){return e in this?this[e]:this[e]=new Int8Array(65536)}}]),e}(),m=function(){function e(t,r,n){u(this,e),this.data=t,this.start=r,this.end=n}return l(e,[{key:"decoder",get:function(){var e=new o.ArithmeticDecoder(this.data,this.start,this.end);return(0,a.shadow)(this,"decoder",e)}},{key:"contextCache",get:function(){var e=new g;return(0,a.shadow)(this,"contextCache",e)}}]),e}();function v(e,t,r){var n=e.getContexts(t),a=1;function i(e){for(var t=0,i=0;i<e;i++){var o=r.readBit(n,a);a=a<256?a<<1|o:511&(a<<1|o)|256,t=t<<1|o}return t>>>0}var o=i(1),s=i(1)?i(1)?i(1)?i(1)?i(1)?i(32)+4436:i(12)+340:i(8)+84:i(6)+20:i(4)+4:i(2);return 0===o?s:s>0?-s:null}function y(e,t,r){for(var n=e.getContexts("IAID"),a=1,i=0;i<r;i++)a=a<<1|t.readBit(n,a);return r<31?a&(1<<r)-1:2147483647&a}var b=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],w=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],k=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],S=[39717,1941,229,405],x=[32,8];function A(e,t,r,n,a,i,o,s){if(e)return q(new L(s.data,s.start,s.end),t,r,!1);if(0===n&&!i&&!a&&4===o.length&&3===o[0].x&&-1===o[0].y&&-3===o[1].x&&-1===o[1].y&&2===o[2].x&&-2===o[2].y&&-2===o[3].x&&-2===o[3].y)return function(e,t,r){var n,a,i,o,s,c,l,u=r.decoder,f=r.contextCache.getContexts("GB"),h=[];for(a=0;a<t;a++)for(s=h[a]=new Uint8Array(e),c=a<1?s:h[a-1],n=(l=a<2?s:h[a-2])[0]<<13|l[1]<<12|l[2]<<11|c[0]<<7|c[1]<<6|c[2]<<5|c[3]<<4,i=0;i<e;i++)s[i]=o=u.readBit(f,n),n=(31735&n)<<1|(i+3<e?l[i+3]<<11:0)|(i+4<e?c[i+4]<<4:0)|o;return h}(t,r,s);var c=!!i,l=w[n].concat(o);l.sort((function(e,t){return e.y-t.y||e.x-t.x}));var u,f,h=l.length,d=new Int8Array(h),p=new Int8Array(h),g=[],m=0,v=0,y=0,b=0;for(f=0;f<h;f++)d[f]=l[f].x,p[f]=l[f].y,v=Math.min(v,l[f].x),y=Math.max(y,l[f].x),b=Math.min(b,l[f].y),f<h-1&&l[f].y===l[f+1].y&&l[f].x===l[f+1].x-1?m|=1<<h-1-f:g.push(f);var k=g.length,x=new Int8Array(k),A=new Int8Array(k),O=new Uint16Array(k);for(u=0;u<k;u++)f=g[u],x[u]=l[f].x,A[u]=l[f].y,O[u]=1<<h-1-f;for(var C,F,T,I,P,_=-v,E=-b,j=t-y,M=S[n],R=new Uint8Array(t),B=[],D=s.decoder,N=s.contextCache.getContexts("GB"),U=0,$=0,X=0;X<r;X++)if(a&&(U^=D.readBit(N,M)))B.push(R);else for(R=new Uint8Array(R),B.push(R),C=0;C<t;C++)if(c&&i[X][C])R[C]=0;else{if(C>=_&&C<j&&X>=E)for($=$<<1&m,f=0;f<k;f++)F=X+A[f],T=C+x[f],(I=B[F][T])&&($|=I=O[f]);else for($=0,P=h-1,f=0;f<h;f++,P--)(T=C+d[f])>=0&&T<t&&(F=X+p[f])>=0&&(I=B[F][T])&&($|=I<<P);var H=D.readBit(N,$);R[C]=H}return B}function O(e,t,r,n,a,i,o,s,c){var l=k[r].coding;0===r&&(l=l.concat([s[0]]));var u,f=l.length,h=new Int32Array(f),d=new Int32Array(f);for(u=0;u<f;u++)h[u]=l[u].x,d[u]=l[u].y;var g=k[r].reference;0===r&&(g=g.concat([s[1]]));var m=g.length,v=new Int32Array(m),y=new Int32Array(m);for(u=0;u<m;u++)v[u]=g[u].x,y[u]=g[u].y;for(var b=n[0].length,w=n.length,S=x[r],A=[],O=c.decoder,C=c.contextCache.getContexts("GR"),F=0,T=0;T<t;T++){if(o&&(F^=O.readBit(C,S)))throw new p("prediction is not supported");var I=new Uint8Array(e);A.push(I);for(var P=0;P<e;P++){var _=void 0,E=void 0,j=0;for(u=0;u<f;u++)_=T+d[u],E=P+h[u],_<0||E<0||E>=e?j<<=1:j=j<<1|A[_][E];for(u=0;u<m;u++)_=T+y[u]-i,E=P+v[u]-a,_<0||_>=w||E<0||E>=b?j<<=1:j=j<<1|n[_][E];var M=O.readBit(C,j);I[P]=M}}return A}function C(e,t,r,n,a,i,o,s,c,l,u,f,h,d,g,m,b,w,k){if(e&&t)throw new p("refinement with Huffman is not supported");var S,x,A=[];for(S=0;S<n;S++){if(x=new Uint8Array(r),a)for(var C=0;C<r;C++)x[C]=a;A.push(x)}var F=b.decoder,T=b.contextCache,I=e?-d.tableDeltaT.decode(k):-v(T,"IADT",F),P=0;for(S=0;S<i;){I+=e?d.tableDeltaT.decode(k):v(T,"IADT",F);for(var _=P+=e?d.tableFirstS.decode(k):v(T,"IAFS",F);;){var E=0;o>1&&(E=e?k.readBits(w):v(T,"IAIT",F));var j=o*I+E,M=e?d.symbolIDTable.decode(k):y(T,F,c),R=t&&(e?k.readBit():v(T,"IARI",F)),B=s[M],D=B[0].length,N=B.length;if(R){var L=v(T,"IARDW",F),U=v(T,"IARDH",F);B=O(D+=L,N+=U,g,B,(L>>1)+v(T,"IARDX",F),(U>>1)+v(T,"IARDY",F),!1,m,b)}var $=j-(1&f?0:N-1),q=_-(2&f?D-1:0),X=void 0,H=void 0,z=void 0;if(l){for(X=0;X<N;X++)if(x=A[q+X]){z=B[X];var W=Math.min(r-$,D);switch(h){case 0:for(H=0;H<W;H++)x[$+H]|=z[H];break;case 2:for(H=0;H<W;H++)x[$+H]^=z[H];break;default:throw new p("operator ".concat(h," is not supported"))}}_+=N-1}else{for(H=0;H<N;H++)if(x=A[$+H])switch(z=B[H],h){case 0:for(X=0;X<D;X++)x[q+X]|=z[X];break;case 2:for(X=0;X<D;X++)x[q+X]^=z[X];break;default:throw new p("operator ".concat(h," is not supported"))}_+=D-1}S++;var G=e?d.tableDeltaS.decode(k):v(T,"IADS",F);if(null===G)break;_+=G+u}}return A}function F(e,t){var r={};r.number=(0,i.readUint32)(e,t);var n=e[t+4],a=63&n;if(!b[a])throw new p("invalid segment type: "+a);r.type=a,r.typeName=b[a],r.deferredNonRetain=!!(128&n);var o=!!(64&n),s=e[t+5],c=s>>5&7,l=[31&s],u=t+6;if(7===s){c=536870911&(0,i.readUint32)(e,u-1),u+=3;var f=c+7>>3;for(l[0]=e[u++];--f>0;)l.push(e[u++])}else if(5===s||6===s)throw new p("invalid referred-to flags");r.retainBits=l;var h=4;r.number<=256?h=1:r.number<=65536&&(h=2);var d,g,m=[];for(d=0;d<c;d++){var v;v=1===h?e[u]:2===h?(0,i.readUint16)(e,u):(0,i.readUint32)(e,u),m.push(v),u+=h}if(r.referredTo=m,o?(r.pageAssociation=(0,i.readUint32)(e,u),u+=4):r.pageAssociation=e[u++],r.length=(0,i.readUint32)(e,u),u+=4,4294967295===r.length){if(38!==a)throw new p("invalid unknown segment length");var y=I(e,u),w=!!(1&e[u+P]),k=new Uint8Array(6);for(w||(k[0]=255,k[1]=172),k[2]=y.height>>>24&255,k[3]=y.height>>16&255,k[4]=y.height>>8&255,k[5]=255&y.height,d=u,g=e.length;d<g;d++){for(var S=0;S<6&&k[S]===e[d+S];)S++;if(6===S){r.length=d+6;break}}if(4294967295===r.length)throw new p("segment end was not found")}return r.headerEnd=u,r}function T(e,t,r,n){for(var a=[],i=r;i<n;){var o=F(t,i);i=o.headerEnd;var s={header:o,data:t};if(e.randomAccess||(s.start=i,i+=o.length,s.end=i),a.push(s),51===o.type)break}if(e.randomAccess)for(var c=0,l=a.length;c<l;c++)a[c].start=i,i+=a[c].header.length,a[c].end=i;return a}function I(e,t){return{width:(0,i.readUint32)(e,t),height:(0,i.readUint32)(e,t+4),x:(0,i.readUint32)(e,t+8),y:(0,i.readUint32)(e,t+12),combinationOperator:7&e[t+16]}}var P=17;function _(e,t){var r,n,a,o,s=e.header,c=e.data,l=e.end,u=e.start;switch(s.type){case 0:var f={},h=(0,i.readUint16)(c,u);if(f.huffman=!!(1&h),f.refinement=!!(2&h),f.huffmanDHSelector=h>>2&3,f.huffmanDWSelector=h>>4&3,f.bitmapSizeSelector=h>>6&1,f.aggregationInstancesSelector=h>>7&1,f.bitmapCodingContextUsed=!!(256&h),f.bitmapCodingContextRetained=!!(512&h),f.template=h>>10&3,f.refinementTemplate=h>>12&1,u+=2,!f.huffman){for(o=0===f.template?4:1,n=[],a=0;a<o;a++)n.push({x:(0,i.readInt8)(c,u),y:(0,i.readInt8)(c,u+1)}),u+=2;f.at=n}if(f.refinement&&!f.refinementTemplate){for(n=[],a=0;a<2;a++)n.push({x:(0,i.readInt8)(c,u),y:(0,i.readInt8)(c,u+1)}),u+=2;f.refinementAt=n}f.numberOfExportedSymbols=(0,i.readUint32)(c,u),u+=4,f.numberOfNewSymbols=(0,i.readUint32)(c,u),u+=4,r=[f,s.number,s.referredTo,c,u,l];break;case 6:case 7:var d={};d.info=I(c,u),u+=P;var g=(0,i.readUint16)(c,u);if(u+=2,d.huffman=!!(1&g),d.refinement=!!(2&g),d.logStripSize=g>>2&3,d.stripSize=1<<d.logStripSize,d.referenceCorner=g>>4&3,d.transposed=!!(64&g),d.combinationOperator=g>>7&3,d.defaultPixelValue=g>>9&1,d.dsOffset=g<<17>>27,d.refinementTemplate=g>>15&1,d.huffman){var m=(0,i.readUint16)(c,u);u+=2,d.huffmanFS=3&m,d.huffmanDS=m>>2&3,d.huffmanDT=m>>4&3,d.huffmanRefinementDW=m>>6&3,d.huffmanRefinementDH=m>>8&3,d.huffmanRefinementDX=m>>10&3,d.huffmanRefinementDY=m>>12&3,d.huffmanRefinementSizeSelector=!!(16384&m)}if(d.refinement&&!d.refinementTemplate){for(n=[],a=0;a<2;a++)n.push({x:(0,i.readInt8)(c,u),y:(0,i.readInt8)(c,u+1)}),u+=2;d.refinementAt=n}d.numberOfSymbolInstances=(0,i.readUint32)(c,u),u+=4,r=[d,s.referredTo,c,u,l];break;case 16:var v={},y=c[u++];v.mmr=!!(1&y),v.template=y>>1&3,v.patternWidth=c[u++],v.patternHeight=c[u++],v.maxPatternIndex=(0,i.readUint32)(c,u),u+=4,r=[v,s.number,c,u,l];break;case 22:case 23:var b={};b.info=I(c,u),u+=P;var w=c[u++];b.mmr=!!(1&w),b.template=w>>1&3,b.enableSkip=!!(8&w),b.combinationOperator=w>>4&7,b.defaultPixelValue=w>>7&1,b.gridWidth=(0,i.readUint32)(c,u),u+=4,b.gridHeight=(0,i.readUint32)(c,u),u+=4,b.gridOffsetX=4294967295&(0,i.readUint32)(c,u),u+=4,b.gridOffsetY=4294967295&(0,i.readUint32)(c,u),u+=4,b.gridVectorX=(0,i.readUint16)(c,u),u+=2,b.gridVectorY=(0,i.readUint16)(c,u),u+=2,r=[b,s.referredTo,c,u,l];break;case 38:case 39:var k={};k.info=I(c,u),u+=P;var S=c[u++];if(k.mmr=!!(1&S),k.template=S>>1&3,k.prediction=!!(8&S),!k.mmr){for(o=0===k.template?4:1,n=[],a=0;a<o;a++)n.push({x:(0,i.readInt8)(c,u),y:(0,i.readInt8)(c,u+1)}),u+=2;k.at=n}r=[k,c,u,l];break;case 48:var x={width:(0,i.readUint32)(c,u),height:(0,i.readUint32)(c,u+4),resolutionX:(0,i.readUint32)(c,u+8),resolutionY:(0,i.readUint32)(c,u+12)};4294967295===x.height&&delete x.height;var A=c[u+16];(0,i.readUint16)(c,u+17),x.lossless=!!(1&A),x.refinement=!!(2&A),x.defaultPixelValue=A>>2&1,x.combinationOperator=A>>3&3,x.requiresBuffer=!!(32&A),x.combinationOperatorOverride=!!(64&A),r=[x];break;case 49:case 50:case 51:case 62:break;case 53:r=[s.number,c,u,l];break;default:throw new p("segment type ".concat(s.typeName,"(").concat(s.type,")")+" is not implemented")}var O="on"+s.typeName;O in t&&t[O].apply(t,r)}function E(e,t){for(var r=0,n=e.length;r<n;r++)_(e[r],t)}var j=function(){function e(){u(this,e)}return l(e,[{key:"onPageInformation",value:function(e){this.currentPageInfo=e;var t=e.width+7>>3,r=new Uint8ClampedArray(t*e.height);if(e.defaultPixelValue)for(var n=0,a=r.length;n<a;n++)r[n]=255;this.buffer=r}},{key:"drawBitmap",value:function(e,t){var r,n,a,i,o=this.currentPageInfo,s=e.width,c=e.height,l=o.width+7>>3,u=o.combinationOperatorOverride?e.combinationOperator:o.combinationOperator,f=this.buffer,h=128>>(7&e.x),d=e.y*l+(e.x>>3);switch(u){case 0:for(r=0;r<c;r++){for(a=h,i=d,n=0;n<s;n++)t[r][n]&&(f[i]|=a),(a>>=1)||(a=128,i++);d+=l}break;case 2:for(r=0;r<c;r++){for(a=h,i=d,n=0;n<s;n++)t[r][n]&&(f[i]^=a),(a>>=1)||(a=128,i++);d+=l}break;default:throw new p("operator ".concat(u," is not supported"))}}},{key:"onImmediateGenericRegion",value:function(e,t,r,n){var a=e.info,i=new m(t,r,n),o=A(e.mmr,a.width,a.height,e.template,e.prediction,null,e.at,i);this.drawBitmap(a,o)}},{key:"onImmediateLosslessGenericRegion",value:function(){this.onImmediateGenericRegion.apply(this,arguments)}},{key:"onSymbolDictionary",value:function(e,t,r,n,a,o){var s,c;e.huffman&&(s=function(e,t,r){var n,a,i,o=0;switch(e.huffmanDHSelector){case 0:case 1:n=N(e.huffmanDHSelector+4);break;case 3:n=U(o,t,r),o++;break;default:throw new p("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:a=N(e.huffmanDWSelector+2);break;case 3:a=U(o,t,r),o++;break;default:throw new p("invalid Huffman DW selector")}return e.bitmapSizeSelector?(i=U(o,t,r),o++):i=N(1),{tableDeltaHeight:n,tableDeltaWidth:a,tableBitmapSize:i,tableAggregateInstances:e.aggregationInstancesSelector?U(o,t,r):N(1)}}(e,r,this.customTables),c=new L(n,a,o));var l=this.symbols;l||(this.symbols=l={});for(var u=[],f=0,h=r.length;f<h;f++){var d=l[r[f]];d&&(u=u.concat(d))}var g=new m(n,a,o);l[t]=function(e,t,r,n,a,o,s,c,l,u,f,h){if(e&&t)throw new p("symbol refinement with Huffman is not supported");var d,g,m=[],b=0,w=(0,i.log2)(r.length+n),k=f.decoder,S=f.contextCache;for(e&&(d=N(1),g=[],w=Math.max(w,1));m.length<n;){b+=e?o.tableDeltaHeight.decode(h):v(S,"IADH",k);for(var x=0,F=0,T=e?g.length:0;;){var I=e?o.tableDeltaWidth.decode(h):v(S,"IADW",k);if(null===I)break;F+=x+=I;var P=void 0;if(t){var _=v(S,"IAAI",k);if(_>1)P=C(e,t,x,b,0,_,1,r.concat(m),w,0,0,1,0,o,l,u,f,0,h);else{var E=y(S,k,w),j=v(S,"IARDX",k),M=v(S,"IARDY",k);P=O(x,b,l,E<r.length?r[E]:m[E-r.length],j,M,!1,u,f)}m.push(P)}else e?g.push(x):(P=A(!1,x,b,s,!1,null,c,f),m.push(P))}if(e&&!t){var R=o.tableBitmapSize.decode(h);h.byteAlign();var B=void 0;if(0===R)B=$(h,F,b);else{var D=h.end,L=h.position+R;h.end=L,B=q(h,F,b,!1),h.end=D,h.position=L}var U=g.length;if(T===U-1)m.push(B);else{var X=void 0,H=void 0,z=0,W=void 0,G=void 0;for(X=T;X<U;X++){for(W=z+g[X],G=[],H=0;H<b;H++)G.push(B[H].subarray(z,W));m.push(G),z=W}}}}for(var V,Y,K=[],J=[],Z=!1,Q=r.length+n;J.length<Q;){for(var ee=e?d.decode(h):v(S,"IAEX",k);ee--;)J.push(Z);Z=!Z}for(V=0,Y=r.length;V<Y;V++)J[V]&&K.push(r[V]);for(var te=0;te<n;V++,te++)J[V]&&K.push(m[te]);return K}(e.huffman,e.refinement,u,e.numberOfNewSymbols,e.numberOfExportedSymbols,s,e.template,e.at,e.refinementTemplate,e.refinementAt,g,c)}},{key:"onImmediateTextRegion",value:function(e,t,r,n,a){for(var o,s,c=e.info,l=this.symbols,u=[],f=0,h=t.length;f<h;f++){var d=l[t[f]];d&&(u=u.concat(d))}var g=(0,i.log2)(u.length);e.huffman&&(s=new L(r,n,a),o=function(e,t,r,n,a){for(var i=[],o=0;o<=34;o++){var s=a.readBits(4);i.push(new M([o,s,0,0]))}var c=new B(i,!1);i.length=0;for(var l=0;l<n;){var u=c.decode(a);if(u>=32){var f=void 0,h=void 0,d=void 0;switch(u){case 32:if(0===l)throw new p("no previous value in symbol ID table");h=a.readBits(2)+3,f=i[l-1].prefixLength;break;case 33:h=a.readBits(3)+3,f=0;break;case 34:h=a.readBits(7)+11,f=0;break;default:throw new p("invalid code length in symbol ID table")}for(d=0;d<h;d++)i.push(new M([l,f,0,0])),l++}else i.push(new M([l,u,0,0])),l++}a.byteAlign();var g,m,v,y=new B(i,!1),b=0;switch(e.huffmanFS){case 0:case 1:g=N(e.huffmanFS+6);break;case 3:g=U(b,t,r),b++;break;default:throw new p("invalid Huffman FS selector")}switch(e.huffmanDS){case 0:case 1:case 2:m=N(e.huffmanDS+8);break;case 3:m=U(b,t,r),b++;break;default:throw new p("invalid Huffman DS selector")}switch(e.huffmanDT){case 0:case 1:case 2:v=N(e.huffmanDT+11);break;case 3:v=U(b,t,r),b++;break;default:throw new p("invalid Huffman DT selector")}if(e.refinement)throw new p("refinement with Huffman is not supported");return{symbolIDTable:y,tableFirstS:g,tableDeltaS:m,tableDeltaT:v}}(e,t,this.customTables,u.length,s));var v=new m(r,n,a),y=C(e.huffman,e.refinement,c.width,c.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,u,g,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,o,e.refinementTemplate,e.refinementAt,v,e.logStripSize,s);this.drawBitmap(c,y)}},{key:"onImmediateLosslessTextRegion",value:function(){this.onImmediateTextRegion.apply(this,arguments)}},{key:"onPatternDictionary",value:function(e,t,r,n,a){var i=this.patterns;i||(this.patterns=i={});var o=new m(r,n,a);i[t]=function(e,t,r,n,a,i){var o=[];e||(o.push({x:-t,y:0}),0===a&&o.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));for(var s=A(e,(n+1)*t,r,a,!1,null,o,i),c=[],l=0;l<=n;l++){for(var u=[],f=t*l,h=f+t,d=0;d<r;d++)u.push(s[d].subarray(f,h));c.push(u)}return c}(e.mmr,e.patternWidth,e.patternHeight,e.maxPatternIndex,e.template,o)}},{key:"onImmediateHalftoneRegion",value:function(e,t,r,n,a){var o=this.patterns[t[0]],s=e.info,c=new m(r,n,a),l=function(e,t,r,n,a,o,s,c,l,u,f,h,d,g,m){if(s)throw new p("skip is not supported");if(0!==c)throw new p('operator "'.concat(c,'" is not supported in halftone region'));var v,y,b,w=[];for(v=0;v<a;v++){if(b=new Uint8Array(n),o)for(y=0;y<n;y++)b[y]=o;w.push(b)}var k=t.length,S=t[0],x=S[0].length,O=S.length,C=(0,i.log2)(k),F=[];e||(F.push({x:r<=1?3:2,y:-1}),0===r&&F.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));var T,I,P,_,E,j,M,R,B,D,N,U=[];for(e&&(T=new L(m.data,m.start,m.end)),v=C-1;v>=0;v--)I=e?q(T,l,u,!0):A(!1,l,u,r,!1,null,F,m),U[v]=I;for(P=0;P<u;P++)for(_=0;_<l;_++){for(E=0,j=0,y=C-1;y>=0;y--)j|=(E^=U[y][P][_])<<y;if(M=t[j],B=h+P*d-_*g>>8,(R=f+P*g+_*d>>8)>=0&&R+x<=n&&B>=0&&B+O<=a)for(v=0;v<O;v++)for(N=w[B+v],D=M[v],y=0;y<x;y++)N[R+y]|=D[y];else{var $=void 0,X=void 0;for(v=0;v<O;v++)if(!((X=B+v)<0||X>=a))for(N=w[X],D=M[v],y=0;y<x;y++)($=R+y)>=0&&$<n&&(N[$]|=D[y])}}return w}(e.mmr,o,e.template,s.width,s.height,e.defaultPixelValue,e.enableSkip,e.combinationOperator,e.gridWidth,e.gridHeight,e.gridOffsetX,e.gridOffsetY,e.gridVectorX,e.gridVectorY,c);this.drawBitmap(s,l)}},{key:"onImmediateLosslessHalftoneRegion",value:function(){this.onImmediateHalftoneRegion.apply(this,arguments)}},{key:"onTables",value:function(e,t,r,n){var a=this.customTables;a||(this.customTables=a={}),a[e]=function(e,t,r){var n,a,o=e[t],s=4294967295&(0,i.readUint32)(e,t+1),c=4294967295&(0,i.readUint32)(e,t+5),l=new L(e,t+9,r),u=1+(o>>1&7),f=1+(o>>4&7),h=[],d=s;do{n=l.readBits(u),a=l.readBits(f),h.push(new M([d,n,a,0])),d+=1<<a}while(d<c);return n=l.readBits(u),h.push(new M([s-1,n,32,0,"lower"])),n=l.readBits(u),h.push(new M([c,n,32,0])),1&o&&(n=l.readBits(u),h.push(new M([n,0]))),new B(h,!1)}(t,r,n)}}]),e}(),M=function e(t){u(this,e),2===t.length?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=t[0],this.rangeLength=0,this.prefixCode=t[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=t[0],this.prefixLength=t[1],this.rangeLength=t[2],this.prefixCode=t[3],this.isLowerRange="lower"===t[4])},R=function(){function e(t){u(this,e),this.children=[],t?(this.isLeaf=!0,this.rangeLength=t.rangeLength,this.rangeLow=t.rangeLow,this.isLowerRange=t.isLowerRange,this.isOOB=t.isOOB):this.isLeaf=!1}return l(e,[{key:"buildTree",value:function(t,r){var n=t.prefixCode>>r&1;if(r<=0)this.children[n]=new e(t);else{var a=this.children[n];a||(this.children[n]=a=new e(null)),a.buildTree(t,r-1)}}},{key:"decodeNode",value:function(e){if(this.isLeaf){if(this.isOOB)return null;var t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}var r=this.children[e.readBit()];if(!r)throw new p("invalid Huffman data");return r.decodeNode(e)}}]),e}(),B=function(){function e(t,r){u(this,e),r||this.assignPrefixCodes(t),this.rootNode=new R(null);for(var n=0,a=t.length;n<a;n++){var i=t[n];i.prefixLength>0&&this.rootNode.buildTree(i,i.prefixLength-1)}}return l(e,[{key:"decode",value:function(e){return this.rootNode.decodeNode(e)}},{key:"assignPrefixCodes",value:function(e){for(var t=e.length,r=0,n=0;n<t;n++)r=Math.max(r,e[n].prefixLength);for(var a=new Uint32Array(r+1),i=0;i<t;i++)a[e[i].prefixLength]++;var o,s,c,l=1,u=0;for(a[0]=0;l<=r;){for(o=u=u+a[l-1]<<1,s=0;s<t;)(c=e[s]).prefixLength===l&&(c.prefixCode=o,o++),s++;l++}}}]),e}(),D={};function N(e){var t,r=D[e];if(r)return r;switch(e){case 1:t=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:t=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:t=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:t=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:t=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:t=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:t=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:t=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:t=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:t=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:t=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:t=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:t=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:t=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:t=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new p("standard table B.".concat(e," does not exist"))}for(var n=0,a=t.length;n<a;n++)t[n]=new M(t[n]);return r=new B(t,!0),D[e]=r,r}var L=function(){function e(t,r,n){u(this,e),this.data=t,this.start=r,this.end=n,this.position=r,this.shift=-1,this.currentByte=0}return l(e,[{key:"readBit",value:function(){if(this.shift<0){if(this.position>=this.end)throw new p("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}var e=this.currentByte>>this.shift&1;return this.shift--,e}},{key:"readBits",value:function(e){var t,r=0;for(t=e-1;t>=0;t--)r|=this.readBit()<<t;return r}},{key:"byteAlign",value:function(){this.shift=-1}},{key:"next",value:function(){return this.position>=this.end?-1:this.data[this.position++]}}]),e}();function U(e,t,r){for(var n=0,a=0,i=t.length;a<i;a++){var o=r[t[a]];if(o){if(e===n)return o;n++}}throw new p("can't find custom Huffman table")}function $(e,t,r){for(var n=[],a=0;a<r;a++){var i=new Uint8Array(t);n.push(i);for(var o=0;o<t;o++)i[o]=e.readBit();e.byteAlign()}return n}function q(e,t,r,n){for(var a,i={K:-1,Columns:t,Rows:r,BlackIs1:!0,EndOfBlock:n},o=new s.CCITTFaxDecoder(e,i),c=[],l=!1,u=0;u<r;u++){var f=new Uint8Array(t);c.push(f);for(var h=-1,d=0;d<t;d++)h<0&&(-1===(a=o.readNextChar())&&(a=0,l=!0),h=7),f[d]=a>>h&1,h--}if(n&&!l)for(var p=0;p<5&&-1!==o.readNextChar();p++);return c}var X=function(){function e(){u(this,e)}return l(e,[{key:"parseChunks",value:function(e){return function(e){for(var t=new j,r=0,n=e.length;r<n;r++){var a=e[r];E(T({},a.data,a.start,a.end),t)}return t.buffer}(e)}},{key:"parse",value:function(e){var t=function(e){var t=e.length,r=0;if(151!==e[r]||74!==e[r+1]||66!==e[r+2]||50!==e[r+3]||13!==e[r+4]||10!==e[r+5]||26!==e[r+6]||10!==e[r+7])throw new p("parseJbig2 - invalid header.");var n=Object.create(null);r+=8;var a=e[r++];n.randomAccess=!(1&a),2&a||(n.numberOfPages=(0,i.readUint32)(e,r),r+=4);var o=T(n,e,r,t),s=new j;E(o,s);for(var c=s.currentPageInfo,l=c.width,u=c.height,f=s.buffer,h=new Uint8ClampedArray(l*u),d=0,g=0,m=0;m<u;m++)for(var v=0,y=void 0,b=0;b<l;b++)v||(v=128,y=f[g++]),h[d++]=y&v?0:255,v>>=1;return{imgData:h,width:l,height:u}}(e),r=t.imgData,n=t.width,a=t.height;return this.width=n,this.height=a,r}}]),e}();t.Jbig2Image=X},(e,t)=>{"use strict";function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.ArithmeticDecoder=void 0;var n=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}],a=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.bp=r,this.dataEnd=n,this.chigh=t[r],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}var t,a;return t=e,(a=[{key:"byteIn",value:function(){var e=this.data,t=this.bp;255===e[t]?e[t+1]>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t<this.dataEnd?e[t]<<8:65280,this.ct=8,this.bp=t),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}},{key:"readBit",value:function(e,t){var r,a=e[t]>>1,i=1&e[t],o=n[a],s=o.qe,c=this.a-s;if(this.chigh<s)c<s?(c=s,r=i,a=o.nmps):(c=s,r=1^i,1===o.switchFlag&&(i=r),a=o.nlps);else{if(this.chigh-=s,0!=(32768&c))return this.a=c,i;c<s?(r=1^i,1===o.switchFlag&&(i=r),a=o.nlps):(r=i,a=o.nmps)}do{0===this.ct&&this.byteIn(),c<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--}while(0==(32768&c));return this.a=c,e[t]=a<<1|i,r}}])&&r(t.prototype,a),e}();t.ArithmeticDecoder=a},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0;var a=r(142),i=r(118),o=r(151),s=r(4);function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(d,e);var t,r,n,a,h=(n=d,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=f(n);if(a){var r=f(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function d(e,t,r){var n,a;for(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);-1!==(a=e.getByte());)if(255===a){e.skip(-1);break}return(n=h.call(this,t)).stream=e,n.dict=e.dict,n.maybeLength=t,n.params=r,n}return t=d,(r=[{key:"bytes",get:function(){return(0,s.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function(e){}},{key:"readBlock",value:function(){if(!this.eof){var e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("Decode","D");if(this.forceRGB&&Array.isArray(t)){for(var r=this.dict.get("BitsPerComponent")||8,n=t.length,a=new Int32Array(n),s=!1,c=(1<<r)-1,l=0;l<n;l+=2)a[l]=256*(t[l+1]-t[l])|0,a[l+1]=t[l]*c|0,256===a[l]&&0===a[l+1]||(s=!0);s&&(e.decodeTransform=a)}if((0,i.isDict)(this.params)){var u=this.params.get("ColorTransform");Number.isInteger(u)&&(e.colorTransform=u)}var f=new o.JpegImage(e);f.parse(this.bytes);var h=f.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=h,this.bufferLength=h.length,this.eof=!0}}}])&&c(t.prototype,r),d}(a.DecodeStream);t.JpegStream=h},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0;var n=r(4),a=r(122);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=h(e);if(t){var a=h(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=function(e){c(r,e);var t=u(r);function r(e){return s(this,r),t.call(this,"JPEG error: ".concat(e),"JpegError")}return r}(n.BaseException),p=function(e){c(r,e);var t=u(r);function r(e,n){var a;return s(this,r),(a=t.call(this,e,"DNLMarkerError")).scanLines=n,a}return r}(n.BaseException),g=function(e){c(r,e);var t=u(r);function r(e){return s(this,r),t.call(this,e,"EOIMarkerError")}return r}(n.BaseException),m=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),v=4017,y=799,b=3406,w=2276,k=1567,S=3784,x=5793,A=2896;function O(e,t){for(var r,n,a=0,i=16;i>0&&!e[i-1];)i--;var o,s=[{children:[],index:0}],c=s[0];for(r=0;r<i;r++){for(n=0;n<e[r];n++){for((c=s.pop()).children[c.index]=t[a];c.index>0;)c=s.pop();for(c.index++,s.push(c);s.length<=r;)s.push(o={children:[],index:0}),c.children[c.index]=o.children,c=o;a++}r+1<i&&(s.push(o={children:[],index:0}),c.children[c.index]=o.children,c=o)}return s[0].children}function C(e,t,r){return 64*((e.blocksPerLine+1)*t+r)}function F(e,t,r,i,s,c,l,u,f){var h=arguments.length>9&&void 0!==arguments[9]&&arguments[9],v=r.mcusPerLine,y=r.progressive,b=t,w=0,k=0;function S(){if(k>0)return k--,w>>k&1;if(255===(w=e[t++])){var n=e[t++];if(n){if(220===n&&h){t+=2;var i=(0,a.readUint16)(e,t);if(t+=2,i>0&&i!==r.scanLines)throw new p("Found DNL marker (0xFFDC) while parsing scan data",i)}else if(217===n){if(h){var o=B*(8===r.precision?8:0);if(o>0&&Math.round(r.scanLines/o)>=10)throw new p("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",o)}throw new g("Found EOI marker (0xFFD9) while parsing scan data")}throw new d("unexpected marker ".concat((w<<8|n).toString(16)))}}return k=7,w>>>7}function x(e){for(var t=e;;){switch(o(t=t[S()])){case"number":return t;case"object":continue}throw new d("invalid huffman sequence")}}function A(e){for(var t=0;e>0;)t=t<<1|S(),e--;return t}function O(e){if(1===e)return 1===S()?1:-1;var t=A(e);return t>=1<<e-1?t:t+(-1<<e)+1}function F(e,t){var r=x(e.huffmanTableDC),n=0===r?0:O(r);e.blockData[t]=e.pred+=n;for(var a=1;a<64;){var i=x(e.huffmanTableAC),o=15&i,s=i>>4;if(0!==o){var c=m[a+=s];e.blockData[t+c]=O(o),a++}else{if(s<15)break;a+=16}}}function T(e,t){var r=x(e.huffmanTableDC),n=0===r?0:O(r)<<f;e.blockData[t]=e.pred+=n}function I(e,t){e.blockData[t]|=S()<<f}var _=0;function E(e,t){if(_>0)_--;else for(var r=c,n=l;r<=n;){var a=x(e.huffmanTableAC),i=15&a,o=a>>4;if(0!==i){var s=m[r+=o];e.blockData[t+s]=O(i)*(1<<f),r++}else{if(o<15){_=A(o)+(1<<o)-1;break}r+=16}}}var j,M=0;function R(e,t){for(var r,n,a=c,i=l,o=0;a<=i;){var s=t+m[a],u=e.blockData[s]<0?-1:1;switch(M){case 0:if(o=(n=x(e.huffmanTableAC))>>4,0==(r=15&n))o<15?(_=A(o)+(1<<o),M=4):(o=16,M=1);else{if(1!==r)throw new d("invalid ACn encoding");j=O(r),M=o?2:3}continue;case 1:case 2:e.blockData[s]?e.blockData[s]+=u*(S()<<f):0==--o&&(M=2===M?3:0);break;case 3:e.blockData[s]?e.blockData[s]+=u*(S()<<f):(e.blockData[s]=j<<f,M=0);break;case 4:e.blockData[s]&&(e.blockData[s]+=u*(S()<<f))}a++}4===M&&0==--_&&(M=0)}var B=0;function D(e,t,r,n,a){var i=r%v;B=(r/v|0)*e.v+n;var o=i*e.h+a;t(e,C(e,B,o))}function N(e,t,r){B=r/e.blocksPerLine|0;var n=r%e.blocksPerLine;t(e,C(e,B,n))}var L,U,$,q,X,H,z=i.length;H=y?0===c?0===u?T:I:0===u?E:R:F;var W,G,V,Y,K=0;for(G=1===z?i[0].blocksPerLine*i[0].blocksPerColumn:v*r.mcusPerColumn;K<=G;){var J=s?Math.min(G-K,s):G;if(J>0){for(U=0;U<z;U++)i[U].pred=0;if(_=0,1===z)for(L=i[0],X=0;X<J;X++)N(L,H,K),K++;else for(X=0;X<J;X++){for(U=0;U<z;U++)for(V=(L=i[U]).h,Y=L.v,$=0;$<Y;$++)for(q=0;q<V;q++)D(L,H,K,$,q);K++}}if(k=0,!(W=P(e,t)))break;if(W.invalid){var Z=J>0?"unexpected":"excessive";(0,n.warn)("decodeScan - ".concat(Z," MCU data, current marker is: ").concat(W.invalid)),t=W.offset}if(!(W.marker>=65488&&W.marker<=65495))break;t+=2}return t-b}function T(e,t,r){var n,a,i,o,s,c,l,u,f,h,p,g,m,O,C,F,T,I=e.quantizationTable,P=e.blockData;if(!I)throw new d("missing required Quantization Table.");for(var _=0;_<64;_+=8)f=P[t+_],h=P[t+_+1],p=P[t+_+2],g=P[t+_+3],m=P[t+_+4],O=P[t+_+5],C=P[t+_+6],F=P[t+_+7],f*=I[_],0!=(h|p|g|m|O|C|F)?(h*=I[_+1],p*=I[_+2],g*=I[_+3],m*=I[_+4],O*=I[_+5],C*=I[_+6],F*=I[_+7],a=(n=(n=x*f+128>>8)+(a=x*m+128>>8)+1>>1)-a,T=(i=p)*S+(o=C)*k+128>>8,i=i*k-o*S+128>>8,l=(s=(s=A*(h-F)+128>>8)+(l=O<<4)+1>>1)-l,c=(u=(u=A*(h+F)+128>>8)+(c=g<<4)+1>>1)-c,o=(n=n+(o=T)+1>>1)-o,i=(a=a+i+1>>1)-i,T=s*w+u*b+2048>>12,s=s*b-u*w+2048>>12,u=T,T=c*y+l*v+2048>>12,c=c*v-l*y+2048>>12,l=T,r[_]=n+u,r[_+7]=n-u,r[_+1]=a+l,r[_+6]=a-l,r[_+2]=i+c,r[_+5]=i-c,r[_+3]=o+s,r[_+4]=o-s):(T=x*f+512>>10,r[_]=T,r[_+1]=T,r[_+2]=T,r[_+3]=T,r[_+4]=T,r[_+5]=T,r[_+6]=T,r[_+7]=T);for(var E=0;E<8;++E)f=r[E],0!=((h=r[E+8])|(p=r[E+16])|(g=r[E+24])|(m=r[E+32])|(O=r[E+40])|(C=r[E+48])|(F=r[E+56]))?(a=(n=4112+((n=x*f+2048>>12)+(a=x*m+2048>>12)+1>>1))-a,T=(i=p)*S+(o=C)*k+2048>>12,i=i*k-o*S+2048>>12,o=T,l=(s=(s=A*(h-F)+2048>>12)+(l=O)+1>>1)-l,c=(u=(u=A*(h+F)+2048>>12)+(c=g)+1>>1)-c,T=s*w+u*b+2048>>12,s=s*b-u*w+2048>>12,u=T,T=c*y+l*v+2048>>12,c=c*v-l*y+2048>>12,(f=(n=n+o+1>>1)+u)<16?f=0:f>=4080?f=255:f>>=4,(h=(a=a+i+1>>1)+(l=T))<16?h=0:h>=4080?h=255:h>>=4,(p=(i=a-i)+c)<16?p=0:p>=4080?p=255:p>>=4,(g=(o=n-o)+s)<16?g=0:g>=4080?g=255:g>>=4,(m=o-s)<16?m=0:m>=4080?m=255:m>>=4,(O=i-c)<16?O=0:O>=4080?O=255:O>>=4,(C=a-l)<16?C=0:C>=4080?C=255:C>>=4,(F=n-u)<16?F=0:F>=4080?F=255:F>>=4,P[t+E]=f,P[t+E+8]=h,P[t+E+16]=p,P[t+E+24]=g,P[t+E+32]=m,P[t+E+40]=O,P[t+E+48]=C,P[t+E+56]=F):(T=(T=x*f+8192>>14)<-2040?0:T>=2024?255:T+2056>>4,P[t+E]=T,P[t+E+8]=T,P[t+E+16]=T,P[t+E+24]=T,P[t+E+32]=T,P[t+E+40]=T,P[t+E+48]=T,P[t+E+56]=T)}function I(e,t){for(var r=t.blocksPerLine,n=t.blocksPerColumn,a=new Int16Array(64),i=0;i<n;i++)for(var o=0;o<r;o++)T(t,C(t,i,o),a);return t.blockData}function P(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,n=e.length-1,i=r<t?r:t;if(t>=n)return null;var o=(0,a.readUint16)(e,t);if(o>=65472&&o<=65534)return{invalid:null,marker:o,offset:t};for(var s=(0,a.readUint16)(e,i);!(s>=65472&&s<=65534);){if(++i>=n)return null;s=(0,a.readUint16)(e,i)}return{invalid:o.toString(16),marker:s,offset:i}}var _=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.decodeTransform,n=void 0===r?null:r,a=t.colorTransform,i=void 0===a?-1:a;s(this,e),this._decodeTransform=n,this._colorTransform=i}var t,r;return t=e,r=[{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.dnlScanLines,i=void 0===r?null:r;function o(){var t=(0,a.readUint16)(e,u),r=(u+=2)+t-2,i=P(e,r,u);i&&i.invalid&&((0,n.warn)("readDataBlock - incorrect length, current marker is: "+i.invalid),r=i.offset);var o=e.subarray(u,r);return u+=o.length,o}function s(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),r=Math.ceil(e.scanLines/8/e.maxV),n=0,a=e.components.length;n<a;n++){var i=e.components[n],o=Math.ceil(Math.ceil(e.samplesPerLine/8)*i.h/e.maxH),s=Math.ceil(Math.ceil(e.scanLines/8)*i.v/e.maxV),c=t*i.h,l=r*i.v*64*(c+1);i.blockData=new Int16Array(l),i.blocksPerLine=o,i.blocksPerColumn=s}e.mcusPerLine=t,e.mcusPerColumn=r}var c,l,u=0,f=null,h=null,v=0,y=[],b=[],w=[],k=(0,a.readUint16)(e,u);if(u+=2,65496!==k)throw new d("SOI not found");k=(0,a.readUint16)(e,u),u+=2;e:for(;65497!==k;){var S=void 0,x=void 0,A=void 0;switch(k){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var C=o();65504===k&&74===C[0]&&70===C[1]&&73===C[2]&&70===C[3]&&0===C[4]&&(f={version:{major:C[5],minor:C[6]},densityUnits:C[7],xDensity:C[8]<<8|C[9],yDensity:C[10]<<8|C[11],thumbWidth:C[12],thumbHeight:C[13],thumbData:C.subarray(14,14+3*C[12]*C[13])}),65518===k&&65===C[0]&&100===C[1]&&111===C[2]&&98===C[3]&&101===C[4]&&(h={version:C[5]<<8|C[6],flags0:C[7]<<8|C[8],flags1:C[9]<<8|C[10],transformCode:C[11]});break;case 65499:for(var T=(0,a.readUint16)(e,u),_=T+(u+=2)-2;u<_;){var E=e[u++],j=new Uint16Array(64);if(E>>4==0)for(x=0;x<64;x++)j[m[x]]=e[u++];else{if(E>>4!=1)throw new d("DQT - invalid table spec");for(x=0;x<64;x++)j[m[x]]=(0,a.readUint16)(e,u),u+=2}y[15&E]=j}break;case 65472:case 65473:case 65474:if(c)throw new d("Only single frame JPEGs supported");u+=2,(c={}).extended=65473===k,c.progressive=65474===k,c.precision=e[u++];var M=(0,a.readUint16)(e,u);u+=2,c.scanLines=i||M,c.samplesPerLine=(0,a.readUint16)(e,u),u+=2,c.components=[],c.componentIds={};var R=e[u++],B=0,D=0;for(S=0;S<R;S++){var N=e[u],L=e[u+1]>>4,U=15&e[u+1];B<L&&(B=L),D<U&&(D=U);var $=e[u+2];A=c.components.push({h:L,v:U,quantizationId:$,quantizationTable:null}),c.componentIds[N]=A-1,u+=3}c.maxH=B,c.maxV=D,s(c);break;case 65476:var q=(0,a.readUint16)(e,u);for(u+=2,S=2;S<q;){var X=e[u++],H=new Uint8Array(16),z=0;for(x=0;x<16;x++,u++)z+=H[x]=e[u];var W=new Uint8Array(z);for(x=0;x<z;x++,u++)W[x]=e[u];S+=17+z,(X>>4==0?w:b)[15&X]=O(H,W)}break;case 65501:u+=2,l=(0,a.readUint16)(e,u),u+=2;break;case 65498:var G=1==++v&&!i;u+=2;var V=e[u++],Y=[];for(S=0;S<V;S++){var K=e[u++],J=c.componentIds[K],Z=c.components[J];Z.index=K;var Q=e[u++];Z.huffmanTableDC=w[Q>>4],Z.huffmanTableAC=b[15&Q],Y.push(Z)}var ee=e[u++],te=e[u++],re=e[u++];try{var ne=F(e,u,c,Y,l,ee,te,re>>4,15&re,G);u+=ne}catch(t){if(t instanceof p)return(0,n.warn)("".concat(t.message," -- attempting to re-parse the JPEG image.")),this.parse(e,{dnlScanLines:t.scanLines});if(t instanceof g){(0,n.warn)("".concat(t.message," -- ignoring the rest of the image data."));break e}throw t}break;case 65500:u+=4;break;case 65535:255!==e[u]&&u--;break;default:var ae=P(e,u-2,u-3);if(ae&&ae.invalid){(0,n.warn)("JpegImage.parse - unexpected data, current marker is: "+ae.invalid),u=ae.offset;break}if(!ae||u>=e.length-1){(0,n.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new d("JpegImage.parse - unknown marker: "+k.toString(16))}k=(0,a.readUint16)(e,u),u+=2}this.width=c.samplesPerLine,this.height=c.scanLines,this.jfif=f,this.adobe=h,this.components=[];for(var ie=0,oe=c.components.length;ie<oe;ie++){var se=c.components[ie],ce=y[se.quantizationId];ce&&(se.quantizationTable=ce),this.components.push({index:se.index,output:I(0,se),scaleX:se.h/c.maxH,scaleY:se.v/c.maxV,blocksPerLine:se.blocksPerLine,blocksPerColumn:se.blocksPerColumn})}this.numComponents=this.components.length}},{key:"_getLinearizedBlockData",value:function(e,t){var r,n,a,i,o,s,c,l,u,f,h,d,p=arguments.length>2&&void 0!==arguments[2]&&arguments[2],g=this.width/e,m=this.height/t,v=0,y=this.components.length,b=e*t*y,w=new Uint8ClampedArray(b),k=new Uint32Array(e),S=4294967288;for(c=0;c<y;c++){if(n=(r=this.components[c]).scaleX*g,a=r.scaleY*m,v=c,h=r.output,i=r.blocksPerLine+1<<3,n!==d){for(o=0;o<e;o++)l=0|o*n,k[o]=(l&S)<<3|7&l;d=n}for(s=0;s<t;s++)for(f=i*((l=0|s*a)&S)|(7&l)<<3,o=0;o<e;o++)w[v]=h[f+k[o]],v+=y}var x=this._decodeTransform;if(p||4!==y||x||(x=new Int32Array([-256,255,-256,255,-256,255,-256,255])),x)for(c=0;c<b;)for(l=0,u=0;l<y;l++,c++,u+=2)w[c]=(w[c]*x[u]>>8)+x[u+1];return w}},{key:"_isColorConversionNeeded",get:function(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform}},{key:"_convertYccToRgb",value:function(e){for(var t,r,n,a=0,i=e.length;a<i;a+=3)t=e[a],r=e[a+1],n=e[a+2],e[a]=t-179.456+1.402*n,e[a+1]=t+135.459-.344*r-.714*n,e[a+2]=t-226.816+1.772*r;return e}},{key:"_convertYcckToRgb",value:function(e){for(var t,r,n,a,i=0,o=0,s=e.length;o<s;o+=4)t=e[o],r=e[o+1],n=e[o+2],a=e[o+3],e[i++]=r*(-660635669420364e-19*r+.000437130475926232*n-54080610064599e-18*t+.00048449797120281*a-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*t-.00477271405408747*a+1.53380253221734)+t*(.000961250184130688*t-.00266257332283933*a+.48357088451265)+a*(-.000336197177618394*a+.484791561490776),e[i++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*n+.000659397001245577*t+.000426105652938837*a-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*t+.000770482631801132*a-.151051492775562)+t*(.00126935368114843*t-.00265090189010898*a+.25802910206845)+a*(-.000318913117588328*a-.213742400323665),e[i++]=r*(-.000570115196973677*r-263409051004589e-19*n+.0020741088115012*t-.00288260236853442*a+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*t+.000560833691242812*a-.195152027534049)+t*(.00174418132927582*t-.00255243321439347*a+.116935020465145)+a*(-.000343531996510555*a+.24165260232407);return e.subarray(0,i)}},{key:"_convertYcckToCmyk",value:function(e){for(var t,r,n,a=0,i=e.length;a<i;a+=4)t=e[a],r=e[a+1],n=e[a+2],e[a]=434.456-t-1.402*n,e[a+1]=119.541-t+.344*r+.714*n,e[a+2]=481.816-t-1.772*r;return e}},{key:"_convertCmykToRgb",value:function(e){for(var t,r,n,a,i=0,o=0,s=e.length;o<s;o+=4)t=e[o],r=e[o+1],n=e[o+2],a=e[o+3],e[i++]=255+t*(-6747147073602441e-20*t+.0008379262121013727*r+.0002894718188643294*n+.003264231057537806*a-1.1185611867203937)+r*(26374107616089405e-21*r-8626949158638572e-20*n-.0002748769067499491*a-.02155688794978967)+n*(-3878099212869363e-20*n-.0003267808279485286*a+.0686742238595345)-a*(.0003361971776183937*a+.7430659151342254),e[i++]=255+t*(.00013596372813588848*t+.000924537132573585*r+.00010567359618683593*n+.0004791864687436512*a-.3109689587515875)+r*(-.00023545346108370344*r+.0002702845253534714*n+.0020200308977307156*a-.7488052167015494)+n*(6834815998235662e-20*n+.00015168452363460973*a-.09751927774728933)-a*(.0003189131175883281*a+.7364883807733168),e[i++]=255+t*(13598650411385307e-21*t+.00012423956175490851*r+.0004751985097583589*n-36729317476630422e-22*a-.05562186980264034)+r*(.00016141380598724676*r+.0009692239130725186*n+.0007782692450036253*a-.44015232367526463)+n*(5.068882914068769e-7*n+.0017778369011375071*a-.7591454649749609)-a*(.0003435319965105553*a+.7063770186160144);return e.subarray(0,i)}},{key:"getData",value:function(e){var t=e.width,r=e.height,n=e.forceRGB,a=void 0!==n&&n,i=e.isSourcePDF,o=void 0!==i&&i;if(this.numComponents>4)throw new d("Unsupported color mode");var s=this._getLinearizedBlockData(t,r,o);if(1===this.numComponents&&a){for(var c=s.length,l=new Uint8ClampedArray(3*c),u=0,f=0;f<c;f++){var h=s[f];l[u++]=h,l[u++]=h,l[u++]=h}return l}if(3===this.numComponents&&this._isColorConversionNeeded)return this._convertYccToRgb(s);if(4===this.numComponents){if(this._isColorConversionNeeded)return a?this._convertYcckToRgb(s):this._convertYcckToCmyk(s);if(a)return this._convertCmykToRgb(s)}return s}}],r&&i(t.prototype,r),e}();t.JpegImage=_},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.JpxStream=void 0;var a=r(142),i=r(153),o=r(4);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function l(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(h,e);var t,r,n,a,f=(n=h,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=u(n);if(a){var r=u(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return l(this,e)});function h(e,t,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(n=f.call(this,t)).stream=e,n.dict=e.dict,n.maybeLength=t,n.params=r,n}return t=h,(r=[{key:"bytes",get:function(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function(e){}},{key:"readBlock",value:function(){if(!this.eof){var e=new i.JpxImage;e.parse(this.bytes);var t=e.width,r=e.height,n=e.componentsCount,a=e.tiles.length;if(1===a)this.buffer=e.tiles[0].items;else{for(var o=new Uint8ClampedArray(t*r*n),s=0;s<a;s++)for(var c=e.tiles[s],l=c.width,u=c.height,f=c.left,h=c.top,d=c.items,p=0,g=(t*h+f)*n,m=t*n,v=l*n,y=0;y<u;y++){var b=d.subarray(p,p+v);o.set(b,g),p+=v,g+=m}this.buffer=o}this.bufferLength=this.buffer.length,this.eof=!0}}}])&&s(t.prototype,r),h}(a.DecodeStream);t.JpxStream=f},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.JpxImage=void 0;var a=r(4),i=r(122),o=r(149);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=p(e);if(t){var a=p(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var g=function(e){u(r,e);var t=h(r);function r(e){return l(this,r),t.call(this,"JPX error: ".concat(e),"JpxError")}return r}(a.BaseException),m={LL:0,LH:1,HL:1,HH:2},v=function(){function e(){l(this,e),this.failOnCorruptedImage=!1}return c(e,[{key:"parse",value:function(e){if(65359!==(0,i.readUint16)(e,0))for(var t=e.length,r=0;r<t;){var n=8,o=(0,i.readUint32)(e,r),s=(0,i.readUint32)(e,r+4);if(r+=n,1===o&&(o=4294967296*(0,i.readUint32)(e,r)+(0,i.readUint32)(e,r+4),r+=8,n+=8),0===o&&(o=t-r+n),o<n)throw new g("Invalid box field size");var c=o-n,l=!0;switch(s){case 1785737832:l=!1;break;case 1668246642:var u=e[r];if(1===u){var f=(0,i.readUint32)(e,r+3);switch(f){case 16:case 17:case 18:break;default:(0,a.warn)("Unknown colorspace "+f)}}else 2===u&&(0,a.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(e,r,r+c);break;case 1783636e3:218793738!==(0,i.readUint32)(e,r)&&(0,a.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var h=String.fromCharCode(s>>24&255,s>>16&255,s>>8&255,255&s);(0,a.warn)("Unsupported header type ".concat(s," (").concat(h,")."))}l&&(r+=c)}else this.parseCodestream(e,0,e.length)}},{key:"parseImageProperties",value:function(e){for(var t=e.getByte();t>=0;)if(65361==(t<<8|(t=e.getByte()))){e.skip(4);var r=e.getInt32()>>>0,n=e.getInt32()>>>0,a=e.getInt32()>>>0,i=e.getInt32()>>>0;e.skip(16);var o=e.getUint16();return this.width=r-a,this.height=n-i,this.componentsCount=o,void(this.bitsPerComponent=8)}throw new g("No size marker found in JPX stream")}},{key:"parseCodestream",value:function(e,t,r){var n={},o=!1;try{for(var s=t;s+1<r;){var c=(0,i.readUint16)(e,s);s+=2;var l=0,u=void 0,f=void 0,h=void 0,d=void 0,p=void 0,m=void 0;switch(c){case 65359:n.mainHeader=!0;break;case 65497:break;case 65361:l=(0,i.readUint16)(e,s);var v={};v.Xsiz=(0,i.readUint32)(e,s+4),v.Ysiz=(0,i.readUint32)(e,s+8),v.XOsiz=(0,i.readUint32)(e,s+12),v.YOsiz=(0,i.readUint32)(e,s+16),v.XTsiz=(0,i.readUint32)(e,s+20),v.YTsiz=(0,i.readUint32)(e,s+24),v.XTOsiz=(0,i.readUint32)(e,s+28),v.YTOsiz=(0,i.readUint32)(e,s+32);var w=(0,i.readUint16)(e,s+36);v.Csiz=w;var k=[];u=s+38;for(var S=0;S<w;S++){var x={precision:1+(127&e[u]),isSigned:!!(128&e[u]),XRsiz:e[u+1],YRsiz:e[u+2]};u+=3,y(x,v),k.push(x)}n.SIZ=v,n.components=k,b(n,k),n.QCC=[],n.COC=[];break;case 65372:l=(0,i.readUint16)(e,s);var A={};switch(u=s+2,31&(f=e[u++])){case 0:d=8,p=!0;break;case 1:d=16,p=!1;break;case 2:d=16,p=!0;break;default:throw new Error("Invalid SQcd value "+f)}for(A.noQuantization=8===d,A.scalarExpounded=p,A.guardBits=f>>5,h=[];u<l+s;){var O={};8===d?(O.epsilon=e[u++]>>3,O.mu=0):(O.epsilon=e[u]>>3,O.mu=(7&e[u])<<8|e[u+1],u+=2),h.push(O)}A.SPqcds=h,n.mainHeader?n.QCD=A:(n.currentTile.QCD=A,n.currentTile.QCC=[]);break;case 65373:l=(0,i.readUint16)(e,s);var C={};u=s+2;var F=void 0;switch(n.SIZ.Csiz<257?F=e[u++]:(F=(0,i.readUint16)(e,u),u+=2),31&(f=e[u++])){case 0:d=8,p=!0;break;case 1:d=16,p=!1;break;case 2:d=16,p=!0;break;default:throw new Error("Invalid SQcd value "+f)}for(C.noQuantization=8===d,C.scalarExpounded=p,C.guardBits=f>>5,h=[];u<l+s;){var T={};8===d?(T.epsilon=e[u++]>>3,T.mu=0):(T.epsilon=e[u]>>3,T.mu=(7&e[u])<<8|e[u+1],u+=2),h.push(T)}C.SPqcds=h,n.mainHeader?n.QCC[F]=C:n.currentTile.QCC[F]=C;break;case 65362:l=(0,i.readUint16)(e,s);var I={};u=s+2;var P=e[u++];I.entropyCoderWithCustomPrecincts=!!(1&P),I.sopMarkerUsed=!!(2&P),I.ephMarkerUsed=!!(4&P),I.progressionOrder=e[u++],I.layersCount=(0,i.readUint16)(e,u),u+=2,I.multipleComponentTransform=e[u++],I.decompositionLevelsCount=e[u++],I.xcb=2+(15&e[u++]),I.ycb=2+(15&e[u++]);var j=e[u++];if(I.selectiveArithmeticCodingBypass=!!(1&j),I.resetContextProbabilities=!!(2&j),I.terminationOnEachCodingPass=!!(4&j),I.verticallyStripe=!!(8&j),I.predictableTermination=!!(16&j),I.segmentationSymbolUsed=!!(32&j),I.reversibleTransformation=e[u++],I.entropyCoderWithCustomPrecincts){for(var B=[];u<l+s;){var D=e[u++];B.push({PPx:15&D,PPy:D>>4})}I.precinctsSizes=B}var N=[];I.selectiveArithmeticCodingBypass&&N.push("selectiveArithmeticCodingBypass"),I.resetContextProbabilities&&N.push("resetContextProbabilities"),I.terminationOnEachCodingPass&&N.push("terminationOnEachCodingPass"),I.verticallyStripe&&N.push("verticallyStripe"),I.predictableTermination&&N.push("predictableTermination"),N.length>0&&(o=!0,(0,a.warn)("JPX: Unsupported COD options (".concat(N.join(", "),")."))),n.mainHeader?n.COD=I:(n.currentTile.COD=I,n.currentTile.COC=[]);break;case 65424:l=(0,i.readUint16)(e,s),(m={}).index=(0,i.readUint16)(e,s+2),m.length=(0,i.readUint32)(e,s+4),m.dataEnd=m.length+s-2,m.partIndex=e[s+8],m.partsCount=e[s+9],n.mainHeader=!1,0===m.partIndex&&(m.COD=n.COD,m.COC=n.COC.slice(0),m.QCD=n.QCD,m.QCC=n.QCC.slice(0)),n.currentTile=m;break;case 65427:0===(m=n.currentTile).partIndex&&(R(n,m.index),_(n)),E(n,e,s,l=m.dataEnd-s);break;case 65363:(0,a.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:l=(0,i.readUint16)(e,s);break;default:throw new Error("Unknown codestream code: "+c.toString(16))}s+=l}}catch(e){if(o||this.failOnCorruptedImage)throw new g(e.message);(0,a.warn)('JPX: Trying to recover from: "'.concat(e.message,'".'))}this.tiles=function(e){for(var t=e.SIZ,r=e.components,n=t.Csiz,a=[],i=0,o=e.tiles.length;i<o;i++){for(var s=e.tiles[i],c=[],l=0;l<n;l++)c[l]=M(e,s,l);var u=c[0],f=new Uint8ClampedArray(u.items.length*n),h={left:u.left,top:u.top,width:u.width,height:u.height,items:f},d=void 0,p=void 0,g=0,m=void 0,v=void 0,y=void 0,b=void 0,w=void 0;if(s.codingStyleDefaultParameters.multipleComponentTransform){var k=4===n,S=c[0].items,x=c[1].items,A=c[2].items,O=k?c[3].items:null;p=.5+(128<<(d=r[0].precision-8));var C=s.components[0],F=n-3;if(v=S.length,C.codingStyleParameters.reversibleTransformation)for(m=0;m<v;m++,g+=F){y=S[m]+p,b=x[m];var T=y-((w=A[m])+b>>2);f[g++]=T+w>>d,f[g++]=T>>d,f[g++]=T+b>>d}else for(m=0;m<v;m++,g+=F)y=S[m]+p,b=x[m],w=A[m],f[g++]=y+1.402*w>>d,f[g++]=y-.34413*b-.71414*w>>d,f[g++]=y+1.772*b>>d;if(k)for(m=0,g=3;m<v;m++,g+=4)f[g]=O[m]+p>>d}else for(var I=0;I<n;I++){var P=c[I].items;for(p=.5+(128<<(d=r[I].precision-8)),g=I,m=0,v=P.length;m<v;m++)f[g]=P[m]+p>>d,g+=n}a.push(h)}return a}(n),this.width=n.SIZ.Xsiz-n.SIZ.XOsiz,this.height=n.SIZ.Ysiz-n.SIZ.YOsiz,this.componentsCount=n.SIZ.Csiz}}]),e}();function y(e,t){e.x0=Math.ceil(t.XOsiz/e.XRsiz),e.x1=Math.ceil(t.Xsiz/e.XRsiz),e.y0=Math.ceil(t.YOsiz/e.YRsiz),e.y1=Math.ceil(t.Ysiz/e.YRsiz),e.width=e.x1-e.x0,e.height=e.y1-e.y0}function b(e,t){for(var r,n=e.SIZ,a=[],i=Math.ceil((n.Xsiz-n.XTOsiz)/n.XTsiz),o=Math.ceil((n.Ysiz-n.YTOsiz)/n.YTsiz),s=0;s<o;s++)for(var c=0;c<i;c++)(r={}).tx0=Math.max(n.XTOsiz+c*n.XTsiz,n.XOsiz),r.ty0=Math.max(n.YTOsiz+s*n.YTsiz,n.YOsiz),r.tx1=Math.min(n.XTOsiz+(c+1)*n.XTsiz,n.Xsiz),r.ty1=Math.min(n.YTOsiz+(s+1)*n.YTsiz,n.Ysiz),r.width=r.tx1-r.tx0,r.height=r.ty1-r.ty0,r.components=[],a.push(r);e.tiles=a;for(var l=0,u=n.Csiz;l<u;l++)for(var f=t[l],h=0,d=a.length;h<d;h++){var p={};r=a[h],p.tcx0=Math.ceil(r.tx0/f.XRsiz),p.tcy0=Math.ceil(r.ty0/f.YRsiz),p.tcx1=Math.ceil(r.tx1/f.XRsiz),p.tcy1=Math.ceil(r.ty1/f.YRsiz),p.width=p.tcx1-p.tcx0,p.height=p.tcy1-p.tcy0,r.components[l]=p}}function w(e,t,r){var n=t.codingStyleParameters,a={};return n.entropyCoderWithCustomPrecincts?(a.PPx=n.precinctsSizes[r].PPx,a.PPy=n.precinctsSizes[r].PPy):(a.PPx=15,a.PPy=15),a.xcb_=r>0?Math.min(n.xcb,a.PPx-1):Math.min(n.xcb,a.PPx),a.ycb_=r>0?Math.min(n.ycb,a.PPy-1):Math.min(n.ycb,a.PPy),a}function k(e,t,r){var n=1<<r.PPx,a=1<<r.PPy,i=0===t.resLevel,o=1<<r.PPx+(i?0:-1),s=1<<r.PPy+(i?0:-1),c=t.trx1>t.trx0?Math.ceil(t.trx1/n)-Math.floor(t.trx0/n):0,l=t.try1>t.try0?Math.ceil(t.try1/a)-Math.floor(t.try0/a):0,u=c*l;t.precinctParameters={precinctWidth:n,precinctHeight:a,numprecinctswide:c,numprecinctshigh:l,numprecincts:u,precinctWidthInSubband:o,precinctHeightInSubband:s}}function S(e,t,r){var n,a,i,o,s=r.xcb_,c=r.ycb_,l=1<<s,u=1<<c,f=t.tbx0>>s,h=t.tby0>>c,d=t.tbx1+l-1>>s,p=t.tby1+u-1>>c,g=t.resolution.precinctParameters,m=[],v=[];for(a=h;a<p;a++)for(n=f;n<d;n++)if((i={cbx:n,cby:a,tbx0:l*n,tby0:u*a,tbx1:l*(n+1),tby1:u*(a+1)}).tbx0_=Math.max(t.tbx0,i.tbx0),i.tby0_=Math.max(t.tby0,i.tby0),i.tbx1_=Math.min(t.tbx1,i.tbx1),i.tby1_=Math.min(t.tby1,i.tby1),o=Math.floor((i.tbx0_-t.tbx0)/g.precinctWidthInSubband)+Math.floor((i.tby0_-t.tby0)/g.precinctHeightInSubband)*g.numprecinctswide,i.precinctNumber=o,i.subbandType=t.type,i.Lblock=3,!(i.tbx1_<=i.tbx0_||i.tby1_<=i.tby0_)){m.push(i);var y=v[o];void 0!==y?(n<y.cbxMin?y.cbxMin=n:n>y.cbxMax&&(y.cbxMax=n),a<y.cbyMin?y.cbxMin=a:a>y.cbyMax&&(y.cbyMax=a)):v[o]=y={cbxMin:n,cbyMin:a,cbxMax:n,cbyMax:a},i.precinct=y}t.codeblockParameters={codeblockWidth:s,codeblockHeight:c,numcodeblockwide:d-f+1,numcodeblockhigh:p-h+1},t.codeblocks=m,t.precincts=v}function x(e,t,r){for(var n=[],a=e.subbands,i=0,o=a.length;i<o;i++)for(var s=a[i].codeblocks,c=0,l=s.length;c<l;c++){var u=s[c];u.precinctNumber===t&&n.push(u)}return{layerNumber:r,codeblocks:n}}function A(e){for(var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],a=n.codingStyleDefaultParameters.layersCount,i=t.Csiz,o=0,s=0;s<i;s++)o=Math.max(o,n.components[s].codingStyleParameters.decompositionLevelsCount);var c=0,l=0,u=0,f=0;this.nextPacket=function(){for(;c<a;c++){for(;l<=o;l++){for(;u<i;u++){var e=n.components[u];if(!(l>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[l],r=t.precinctParameters.numprecincts;f<r;){var s=x(t,f,c);return f++,s}f=0}}u=0}l=0}throw new g("Out of packets")}}function O(e){for(var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],a=n.codingStyleDefaultParameters.layersCount,i=t.Csiz,o=0,s=0;s<i;s++)o=Math.max(o,n.components[s].codingStyleParameters.decompositionLevelsCount);var c=0,l=0,u=0,f=0;this.nextPacket=function(){for(;c<=o;c++){for(;l<a;l++){for(;u<i;u++){var e=n.components[u];if(!(c>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[c],r=t.precinctParameters.numprecincts;f<r;){var s=x(t,f,l);return f++,s}f=0}}u=0}l=0}throw new g("Out of packets")}}function C(e){var t,r,n,a,i=e.SIZ,o=e.currentTile.index,s=e.tiles[o],c=s.codingStyleDefaultParameters.layersCount,l=i.Csiz,u=0;for(n=0;n<l;n++){var f=s.components[n];u=Math.max(u,f.codingStyleParameters.decompositionLevelsCount)}var h=new Int32Array(u+1);for(r=0;r<=u;++r){var d=0;for(n=0;n<l;++n){var p=s.components[n].resolutions;r<p.length&&(d=Math.max(d,p[r].precinctParameters.numprecincts))}h[r]=d}t=0,r=0,n=0,a=0,this.nextPacket=function(){for(;r<=u;r++){for(;a<h[r];a++){for(;n<l;n++){var e=s.components[n];if(!(r>e.codingStyleParameters.decompositionLevelsCount)){var i=e.resolutions[r],o=i.precinctParameters.numprecincts;if(!(a>=o)){for(;t<c;){var f=x(i,a,t);return t++,f}t=0}}}n=0}a=0}throw new g("Out of packets")}}function F(e){var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],a=n.codingStyleDefaultParameters.layersCount,i=t.Csiz,o=P(n),s=o,c=0,l=0,u=0,f=0,h=0;this.nextPacket=function(){for(;h<s.maxNumHigh;h++){for(;f<s.maxNumWide;f++){for(;u<i;u++){for(var e=n.components[u],t=e.codingStyleParameters.decompositionLevelsCount;l<=t;l++){var r=e.resolutions[l],d=o.components[u].resolutions[l],p=I(f,h,d,s,r);if(null!==p){for(;c<a;){var m=x(r,p,c);return c++,m}c=0}}l=0}u=0}f=0}throw new g("Out of packets")}}function T(e){var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],a=n.codingStyleDefaultParameters.layersCount,i=t.Csiz,o=P(n),s=0,c=0,l=0,u=0,f=0;this.nextPacket=function(){for(;l<i;++l){for(var e=n.components[l],t=o.components[l],r=e.codingStyleParameters.decompositionLevelsCount;f<t.maxNumHigh;f++){for(;u<t.maxNumWide;u++){for(;c<=r;c++){var h=e.resolutions[c],d=t.resolutions[c],p=I(u,f,d,t,h);if(null!==p){for(;s<a;){var m=x(h,p,s);return s++,m}s=0}}c=0}u=0}f=0}throw new g("Out of packets")}}function I(e,t,r,n,a){var i=e*n.minWidth,o=t*n.minHeight;if(i%r.width!=0||o%r.height!=0)return null;var s=o/r.width*a.precinctParameters.numprecinctswide;return i/r.height+s}function P(e){for(var t=e.components.length,r=Number.MAX_VALUE,n=Number.MAX_VALUE,a=0,i=0,o=new Array(t),s=0;s<t;s++){for(var c=e.components[s],l=c.codingStyleParameters.decompositionLevelsCount,u=new Array(l+1),f=Number.MAX_VALUE,h=Number.MAX_VALUE,d=0,p=0,g=1,m=l;m>=0;--m){var v=c.resolutions[m],y=g*v.precinctParameters.precinctWidth,b=g*v.precinctParameters.precinctHeight;f=Math.min(f,y),h=Math.min(h,b),d=Math.max(d,v.precinctParameters.numprecinctswide),p=Math.max(p,v.precinctParameters.numprecinctshigh),u[m]={width:y,height:b},g<<=1}r=Math.min(r,f),n=Math.min(n,h),a=Math.max(a,d),i=Math.max(i,p),o[s]={resolutions:u,minWidth:f,minHeight:h,maxNumWide:d,maxNumHigh:p}}return{components:o,minWidth:r,minHeight:n,maxNumWide:a,maxNumHigh:i}}function _(e){for(var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],a=t.Csiz,i=0;i<a;i++){for(var o=n.components[i],s=o.codingStyleParameters.decompositionLevelsCount,c=[],l=[],u=0;u<=s;u++){var f=w(0,o,u),h={},d=1<<s-u;h.trx0=Math.ceil(o.tcx0/d),h.try0=Math.ceil(o.tcy0/d),h.trx1=Math.ceil(o.tcx1/d),h.try1=Math.ceil(o.tcy1/d),h.resLevel=u,k(0,h,f),c.push(h);var p=void 0;if(0===u)(p={}).type="LL",p.tbx0=Math.ceil(o.tcx0/d),p.tby0=Math.ceil(o.tcy0/d),p.tbx1=Math.ceil(o.tcx1/d),p.tby1=Math.ceil(o.tcy1/d),p.resolution=h,S(0,p,f),l.push(p),h.subbands=[p];else{var m=1<<s-u+1,v=[];(p={}).type="HL",p.tbx0=Math.ceil(o.tcx0/m-.5),p.tby0=Math.ceil(o.tcy0/m),p.tbx1=Math.ceil(o.tcx1/m-.5),p.tby1=Math.ceil(o.tcy1/m),p.resolution=h,S(0,p,f),l.push(p),v.push(p),(p={}).type="LH",p.tbx0=Math.ceil(o.tcx0/m),p.tby0=Math.ceil(o.tcy0/m-.5),p.tbx1=Math.ceil(o.tcx1/m),p.tby1=Math.ceil(o.tcy1/m-.5),p.resolution=h,S(0,p,f),l.push(p),v.push(p),(p={}).type="HH",p.tbx0=Math.ceil(o.tcx0/m-.5),p.tby0=Math.ceil(o.tcy0/m-.5),p.tbx1=Math.ceil(o.tcx1/m-.5),p.tby1=Math.ceil(o.tcy1/m-.5),p.resolution=h,S(0,p,f),l.push(p),v.push(p),h.subbands=v}}o.resolutions=c,o.subbands=l}var y=n.codingStyleDefaultParameters.progressionOrder;switch(y){case 0:n.packetsIterator=new A(e);break;case 1:n.packetsIterator=new O(e);break;case 2:n.packetsIterator=new C(e);break;case 3:n.packetsIterator=new F(e);break;case 4:n.packetsIterator=new T(e);break;default:throw new g("Unsupported progression order ".concat(y))}}function E(e,t,r,n){var a,o=0,s=0,c=!1;function l(e){for(;s<e;){var n=t[r+o];o++,c?(a=a<<7|n,s+=7,c=!1):(a=a<<8|n,s+=8),255===n&&(c=!0)}return a>>>(s-=e)&(1<<e)-1}function u(e){return 255===t[r+o-1]&&t[r+o]===e?(f(1),!0):255===t[r+o]&&t[r+o+1]===e&&(f(2),!0)}function f(e){o+=e}function h(){s=0,c&&(o++,c=!1)}function d(){if(0===l(1))return 1;if(0===l(1))return 2;var e=l(2);return e<3?e+3:(e=l(5))<31?e+6:(e=l(7))+37}for(var p=e.currentTile.index,m=e.tiles[p],v=e.COD.sopMarkerUsed,y=e.COD.ephMarkerUsed,b=m.packetsIterator;o<n;){h(),v&&u(145)&&f(4);var w=b.nextPacket();if(l(1)){for(var k=w.layerNumber,S=[],x=void 0,A=0,O=w.codeblocks.length;A<O;A++){var C=(x=w.codeblocks[A]).precinct,F=x.cbx-C.cbxMin,T=x.cby-C.cbyMin,I=!1,P=!1,_=void 0;if(void 0!==x.included)I=!!l(1);else{var E=void 0;if(void 0!==(C=x.precinct).inclusionTree)E=C.inclusionTree;else{var j=C.cbxMax-C.cbxMin+1,M=C.cbyMax-C.cbyMin+1;E=new $(j,M,k),_=new U(j,M),C.inclusionTree=E,C.zeroBitPlanesTree=_;for(var R=0;R<k;R++)if(0!==l(1))throw new g("Invalid tag tree")}if(E.reset(F,T,k))for(;;){if(!l(1)){E.incrementValue(k);break}if(!E.nextLevel()){x.included=!0,I=P=!0;break}}}if(I){if(P){for((_=C.zeroBitPlanesTree).reset(F,T);;)if(l(1)){if(!_.nextLevel())break}else _.incrementValue();x.zeroBitPlanes=_.value}for(var B=d();l(1);)x.Lblock++;var D=(0,i.log2)(B),N=l((B<1<<D?D-1:D)+x.Lblock);S.push({codeblock:x,codingpasses:B,dataLength:N})}}for(h(),y&&u(146);S.length>0;){var L=S.shift();void 0===(x=L.codeblock).data&&(x.data=[]),x.data.push({data:t,start:r+o,end:r+o+L.dataLength,codingpasses:L.codingpasses}),o+=L.dataLength}}}return o}function j(e,t,r,n,a,i,s,c){for(var l=n.tbx0,u=n.tby0,f=n.tbx1-n.tbx0,h=n.codeblocks,d="H"===n.type.charAt(0)?1:0,p="H"===n.type.charAt(1)?t:0,g=0,m=h.length;g<m;++g){var v=h[g],y=v.tbx1_-v.tbx0_,b=v.tby1_-v.tby0_;if(0!==y&&0!==b&&void 0!==v.data){var w=new q(y,b,v.subbandType,v.zeroBitPlanes,i),k=2,S=v.data,x=0,A=0,O=void 0,C=void 0,F=void 0;for(O=0,C=S.length;O<C;O++)x+=(F=S[O]).end-F.start,A+=F.codingpasses;var T=new Uint8Array(x),I=0;for(O=0,C=S.length;O<C;O++){var P=(F=S[O]).data.subarray(F.start,F.end);T.set(P,I),I+=P.length}var _=new o.ArithmeticDecoder(T,0,x);for(w.setDecoder(_),O=0;O<A;O++){switch(k){case 0:w.runSignificancePropagationPass();break;case 1:w.runMagnitudeRefinementPass();break;case 2:w.runCleanupPass(),c&&w.checkSegmentationSymbol()}k=(k+1)%3}var E=v.tbx0_-l+(v.tby0_-u)*f,j=w.coefficentsSign,M=w.coefficentsMagnitude,R=w.bitsDecoded,B=s?0:.5,D=void 0,N=void 0,L=void 0;I=0;var U="LL"!==n.type;for(O=0;O<b;O++){var $=2*(E/f|0)*(t-f)+d+p;for(D=0;D<y;D++){if(0!==(N=M[I]))N=(N+B)*a,0!==j[I]&&(N=-N),L=R[I],e[U?$+(E<<1):E]=s&&L>=i?N:N*(1<<i-L);E++,I++}E+=f-y}}}}function M(e,t,r){for(var n=t.components[r],a=n.codingStyleParameters,i=n.quantizationParameters,o=a.decompositionLevelsCount,s=i.SPqcds,c=i.scalarExpounded,l=i.guardBits,u=a.segmentationSymbolUsed,f=e.components[r].precision,h=a.reversibleTransformation,d=h?new z:new H,p=[],g=0,v=0;v<=o;v++){for(var y=n.resolutions[v],b=y.trx1-y.trx0,w=y.try1-y.try0,k=new Float32Array(b*w),S=0,x=y.subbands.length;S<x;S++){var A=void 0,O=void 0;c?(A=s[g].mu,O=s[g].epsilon,g++):(A=s[0].mu,O=s[0].epsilon+(v>0?1-v:0));var C=y.subbands[S],F=m[C.type];j(k,b,0,C,h?1:Math.pow(2,f+F-O)*(1+A/2048),l+O-1,h,u)}p.push({width:b,height:w,items:k})}var T=d.calculate(p,n.tcx0,n.tcy0);return{left:n.tcx0,top:n.tcy0,width:T.width,height:T.height,items:T.items}}function R(e,t){for(var r=e.SIZ.Csiz,n=e.tiles[t],a=0;a<r;a++){var i=n.components[a],o=void 0!==e.currentTile.QCC[a]?e.currentTile.QCC[a]:e.currentTile.QCD;i.quantizationParameters=o;var s=void 0!==e.currentTile.COC[a]?e.currentTile.COC[a]:e.currentTile.COD;i.codingStyleParameters=s}n.codingStyleDefaultParameters=e.currentTile.COD}t.JpxImage=v;var B,D,N,L,U=function(){function e(t,r){l(this,e);var n=(0,i.log2)(Math.max(t,r))+1;this.levels=[];for(var a=0;a<n;a++){var o={width:t,height:r,items:[]};this.levels.push(o),t=Math.ceil(t/2),r=Math.ceil(r/2)}}return c(e,[{key:"reset",value:function(e,t){for(var r,n=0,a=0;n<this.levels.length;){var i=e+t*(r=this.levels[n]).width;if(void 0!==r.items[i]){a=r.items[i];break}r.index=i,e>>=1,t>>=1,n++}n--,(r=this.levels[n]).items[r.index]=a,this.currentLevel=n,delete this.value}},{key:"incrementValue",value:function(){var e=this.levels[this.currentLevel];e.items[e.index]++}},{key:"nextLevel",value:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return--e<0?(this.value=r,!1):(this.currentLevel=e,(t=this.levels[e]).items[t.index]=r,!0)}}]),e}(),$=function(){function e(t,r,n){l(this,e);var a=(0,i.log2)(Math.max(t,r))+1;this.levels=[];for(var o=0;o<a;o++){for(var s=new Uint8Array(t*r),c=0,u=s.length;c<u;c++)s[c]=n;var f={width:t,height:r,items:s};this.levels.push(f),t=Math.ceil(t/2),r=Math.ceil(r/2)}}return c(e,[{key:"reset",value:function(e,t,r){for(var n=0;n<this.levels.length;){var a=this.levels[n],i=e+t*a.width;a.index=i;var o=a.items[i];if(255===o)break;if(o>r)return this.currentLevel=n,this.propagateValues(),!1;e>>=1,t>>=1,n++}return this.currentLevel=n-1,!0}},{key:"incrementValue",value:function(e){var t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()}},{key:"propagateValues",value:function(){for(var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];--e>=0;)(t=this.levels[e]).items[t.index]=r}},{key:"nextLevel",value:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return t.items[t.index]=255,!(--e<0||(this.currentLevel=e,(t=this.levels[e]).items[t.index]=r,0))}}]),e}(),q=(B=17,D=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]),N=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]),L=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]),function(){function e(t,r,n,a,i){var o;l(this,e),this.width=t,this.height=r,o="HH"===n?L:"HL"===n?N:D,this.contextLabelTable=o;var s,c=t*r;this.neighborsSignificance=new Uint8Array(c),this.coefficentsSign=new Uint8Array(c),s=i>14?new Uint32Array(c):i>6?new Uint16Array(c):new Uint8Array(c),this.coefficentsMagnitude=s,this.processingFlags=new Uint8Array(c);var u=new Uint8Array(c);if(0!==a)for(var f=0;f<c;f++)u[f]=a;this.bitsDecoded=u,this.reset()}return c(e,[{key:"setDecoder",value:function(e){this.decoder=e}},{key:"reset",value:function(){this.contexts=new Int8Array(19),this.contexts[0]=8,this.contexts[17]=92,this.contexts[18]=6}},{key:"setNeighborsSignificance",value:function(e,t,r){var n,a=this.neighborsSignificance,i=this.width,o=this.height,s=t>0,c=t+1<i;e>0&&(n=r-i,s&&(a[n-1]+=16),c&&(a[n+1]+=16),a[n]+=4),e+1<o&&(n=r+i,s&&(a[n-1]+=16),c&&(a[n+1]+=16),a[n]+=4),s&&(a[r-1]+=1),c&&(a[r+1]+=1),a[r]|=128}},{key:"runSignificancePropagationPass",value:function(){for(var e=this.decoder,t=this.width,r=this.height,n=this.coefficentsMagnitude,a=this.coefficentsSign,i=this.neighborsSignificance,o=this.processingFlags,s=this.contexts,c=this.contextLabelTable,l=this.bitsDecoded,u=0;u<r;u+=4)for(var f=0;f<t;f++)for(var h=u*t+f,d=0;d<4;d++,h+=t){var p=u+d;if(p>=r)break;if(o[h]&=-2,!n[h]&&i[h]){var g=c[i[h]];if(e.readBit(s,g)){var m=this.decodeSignBit(p,f,h);a[h]=m,n[h]=1,this.setNeighborsSignificance(p,f,h),o[h]|=2}l[h]++,o[h]|=1}}}},{key:"decodeSignBit",value:function(e,t,r){var n,a,i,o,s,c,l=this.width,u=this.height,f=this.coefficentsMagnitude,h=this.coefficentsSign;o=t>0&&0!==f[r-1],t+1<l&&0!==f[r+1]?(i=h[r+1],n=o?1-i-(a=h[r-1]):1-i-i):n=o?1-(a=h[r-1])-a:0;var d=3*n;return o=e>0&&0!==f[r-l],e+1<u&&0!==f[r+l]?(i=h[r+l],n=o?1-i-(a=h[r-l])+d:1-i-i+d):n=o?1-(a=h[r-l])-a+d:d,n>=0?(s=9+n,c=this.decoder.readBit(this.contexts,s)):(s=9-n,c=1^this.decoder.readBit(this.contexts,s)),c}},{key:"runMagnitudeRefinementPass",value:function(){for(var e,t=this.decoder,r=this.width,n=this.height,a=this.coefficentsMagnitude,i=this.neighborsSignificance,o=this.contexts,s=this.bitsDecoded,c=this.processingFlags,l=r*n,u=4*r,f=0;f<l;f=e){e=Math.min(l,f+u);for(var h=0;h<r;h++)for(var d=f+h;d<e;d+=r)if(a[d]&&0==(1&c[d])){var p=16;0!=(2&c[d])&&(c[d]^=2,p=0==(127&i[d])?15:14);var g=t.readBit(o,p);a[d]=a[d]<<1|g,s[d]++,c[d]|=1}}}},{key:"runCleanupPass",value:function(){for(var e,t=this.decoder,r=this.width,n=this.height,a=this.neighborsSignificance,i=this.coefficentsMagnitude,o=this.coefficentsSign,s=this.contexts,c=this.contextLabelTable,l=this.bitsDecoded,u=this.processingFlags,f=r,h=2*r,d=3*r,p=0;p<n;p=e){e=Math.min(p+4,n);for(var g=p*r,m=p+3<n,v=0;v<r;v++){var y=g+v,b=0,w=y,k=p,S=void 0;if(m&&0===u[y]&&0===u[y+f]&&0===u[y+h]&&0===u[y+d]&&0===a[y]&&0===a[y+f]&&0===a[y+h]&&0===a[y+d]){if(!t.readBit(s,18)){l[y]++,l[y+f]++,l[y+h]++,l[y+d]++;continue}0!=(b=t.readBit(s,B)<<1|t.readBit(s,B))&&(k=p+b,w+=b*r),S=this.decodeSignBit(k,v,w),o[w]=S,i[w]=1,this.setNeighborsSignificance(k,v,w),u[w]|=2,w=y;for(var x=p;x<=k;x++,w+=r)l[w]++;b++}for(k=p+b;k<e;k++,w+=r)if(!i[w]&&0==(1&u[w])){var A=c[a[w]];1===t.readBit(s,A)&&(S=this.decodeSignBit(k,v,w),o[w]=S,i[w]=1,this.setNeighborsSignificance(k,v,w),u[w]|=2),l[w]++}}}}},{key:"checkSegmentationSymbol",value:function(){var e=this.decoder,t=this.contexts;if(10!=(e.readBit(t,B)<<3|e.readBit(t,B)<<2|e.readBit(t,B)<<1|e.readBit(t,B)))throw new g("Invalid segmentation symbol")}}]),e}()),X=function(){function e(){l(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize Transform.")}return c(e,[{key:"calculate",value:function(e,t,r){for(var n=e[0],a=1,i=e.length;a<i;a++)n=this.iterate(n,e[a],t,r);return n}},{key:"extend",value:function(e,t,r){var n=t-1,a=t+1,i=t+r-2,o=t+r;e[n--]=e[a++],e[o++]=e[i--],e[n--]=e[a++],e[o++]=e[i--],e[n--]=e[a++],e[o++]=e[i--],e[n]=e[a],e[o]=e[i]}},{key:"filter",value:function(e,t,r){(0,a.unreachable)("Abstract method `filter` called")}},{key:"iterate",value:function(e,t,r,n){var a,i,o,s,c,l,u=e.width,f=e.height,h=e.items,d=t.width,p=t.height,g=t.items;for(o=0,a=0;a<f;a++)for(s=2*a*d,i=0;i<u;i++,o++,s+=2)g[s]=h[o];h=e.items=null;var m=new Float32Array(d+8);if(1===d){if(0!=(1&r))for(l=0,o=0;l<p;l++,o+=d)g[o]*=.5}else for(l=0,o=0;l<p;l++,o+=d)m.set(g.subarray(o,o+d),4),this.extend(m,4,d),this.filter(m,4,d),g.set(m.subarray(4,4+d),o);var v=16,y=[];for(a=0;a<v;a++)y.push(new Float32Array(p+8));var b,w=0;if(e=4+p,1===p){if(0!=(1&n))for(c=0;c<d;c++)g[c]*=.5}else for(c=0;c<d;c++){if(0===w){for(v=Math.min(d-c,v),o=c,s=4;s<e;o+=d,s++)for(b=0;b<v;b++)y[b][s]=g[o+b];w=v}var k=y[--w];if(this.extend(k,4,p),this.filter(k,4,p),0===w)for(o=c-v+1,s=4;s<e;o+=d,s++)for(b=0;b<v;b++)g[o+b]=y[b][s]}return{width:d,height:p,items:g}}}]),e}(),H=function(e){u(r,e);var t=h(r);function r(){return l(this,r),t.apply(this,arguments)}return c(r,[{key:"filter",value:function(e,t,r){var n,a,i,o,s=r>>1,c=-1.586134342059924,l=-.052980118572961,u=.882911075530934,f=.443506852043971,h=1.230174104914001;for(n=(t|=0)-3,a=s+4;a--;n+=2)e[n]*=.8128930661159609;for(i=f*e[(n=t-2)-1],a=s+3;a--&&(o=f*e[n+1],e[n]=h*e[n]-i-o,a--);n+=2)i=f*e[(n+=2)+1],e[n]=h*e[n]-i-o;for(i=u*e[(n=t-1)-1],a=s+2;a--&&(o=u*e[n+1],e[n]-=i+o,a--);n+=2)i=u*e[(n+=2)+1],e[n]-=i+o;for(i=l*e[(n=t)-1],a=s+1;a--&&(o=l*e[n+1],e[n]-=i+o,a--);n+=2)i=l*e[(n+=2)+1],e[n]-=i+o;if(0!==s)for(i=c*e[(n=t+1)-1],a=s;a--&&(o=c*e[n+1],e[n]-=i+o,a--);n+=2)i=c*e[(n+=2)+1],e[n]-=i+o}}]),r}(X),z=function(e){u(r,e);var t=h(r);function r(){return l(this,r),t.apply(this,arguments)}return c(r,[{key:"filter",value:function(e,t,r){var n,a,i=r>>1;for(n=t|=0,a=i+1;a--;n+=2)e[n]-=e[n-1]+e[n+1]+2>>2;for(n=t+1,a=i;a--;n+=2)e[n]+=e[n-1]+e[n+1]>>1}}]),r}(X)},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=void 0;var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(u,e);var t,r,n,c,l=(n=u,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=s(n);if(c){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return o(this,e)});function u(e,t,r){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=l.call(this,t)).str=e,n.dict=e.dict,n.cachedData=0,n.bitsCached=0;for(var a=4096,i={earlyChange:r,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(a),dictionaryLengths:new Uint16Array(a),dictionaryPrevCodes:new Uint16Array(a),currentSequence:new Uint8Array(a),currentSequenceLength:0},o=0;o<256;++o)i.dictionaryValues[o]=o,i.dictionaryLengths[o]=1;return n.lzwState=i,n}return t=u,(r=[{key:"readBits",value:function(e){for(var t=this.bitsCached,r=this.cachedData;t<e;){var n=this.str.getByte();if(-1===n)return this.eof=!0,null;r=r<<8|n,t+=8}return this.bitsCached=t-=e,this.cachedData=r,this.lastCode=null,r>>>t&(1<<e)-1}},{key:"readBlock",value:function(){var e,t,r,n=1024,a=this.lzwState;if(a){var i=a.earlyChange,o=a.nextCode,s=a.dictionaryValues,c=a.dictionaryLengths,l=a.dictionaryPrevCodes,u=a.codeLength,f=a.prevCode,h=a.currentSequence,d=a.currentSequenceLength,p=0,g=this.bufferLength,m=this.ensureBuffer(this.bufferLength+n);for(e=0;e<512;e++){var v=this.readBits(u),y=d>0;if(v<256)h[0]=v,d=1;else{if(!(v>=258)){if(256===v){u=9,o=258,d=0;continue}this.eof=!0,delete this.lzwState;break}if(v<o)for(t=(d=c[v])-1,r=v;t>=0;t--)h[t]=s[r],r=l[r];else h[d++]=h[0]}if(y&&(l[o]=f,c[o]=c[f]+1,s[o]=h[0],u=++o+i&o+i-1?u:0|Math.min(Math.log(o+i)/.6931471805599453+1,12)),f=v,n<(p+=d)){do{n+=512}while(n<p);m=this.ensureBuffer(this.bufferLength+n)}for(t=0;t<d;t++)m[g++]=h[t]}a.nextCode=o,a.codeLength=u,a.prevCode=f,a.currentSequenceLength=d,this.bufferLength=g}}}])&&a(t.prototype,r),u}(r(142).DecodeStream);t.LZWStream=c},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.PredictorStream=void 0;var a=r(142),i=r(4),o=r(118);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function l(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(d,e);var t,r,n,a,h=(n=d,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=f(n);if(a){var r=f(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return l(this,e)});function d(e,t,r){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),n=h.call(this,t),!(0,o.isDict)(r))return l(n,e);var a=n.predictor=r.get("Predictor")||1;if(a<=1)return l(n,e);if(2!==a&&(a<10||a>15))throw new i.FormatError("Unsupported predictor: ".concat(a));n.readBlock=2===a?n.readBlockTiff:n.readBlockPng,n.str=e,n.dict=e.dict;var s=n.colors=r.get("Colors")||1,c=n.bits=r.get("BitsPerComponent")||8,f=n.columns=r.get("Columns")||1;return n.pixBytes=s*c+7>>3,n.rowBytes=f*s*c+7>>3,l(n,u(n))}return t=d,(r=[{key:"readBlockTiff",value:function(){var e=this.rowBytes,t=this.bufferLength,r=this.ensureBuffer(t+e),n=this.bits,a=this.colors,i=this.str.getBytes(e);if(this.eof=!i.length,!this.eof){var o,s=0,c=0,l=0,u=0,f=t;if(1===n&&1===a)for(o=0;o<e;++o){var h=i[o]^s;h^=h>>1,h^=h>>2,s=(1&(h^=h>>4))<<7,r[f++]=h}else if(8===n){for(o=0;o<a;++o)r[f++]=i[o];for(;o<e;++o)r[f]=r[f-a]+i[o],f++}else if(16===n){var d=2*a;for(o=0;o<d;++o)r[f++]=i[o];for(;o<e;o+=2){var p=((255&i[o])<<8)+(255&i[o+1])+((255&r[f-d])<<8)+(255&r[f-d+1]);r[f++]=p>>8&255,r[f++]=255&p}}else{var g=new Uint8Array(a+1),m=(1<<n)-1,v=0,y=t,b=this.columns;for(o=0;o<b;++o)for(var w=0;w<a;++w)l<n&&(s=s<<8|255&i[v++],l+=8),g[w]=g[w]+(s>>l-n)&m,l-=n,c=c<<n|g[w],(u+=n)>=8&&(r[y++]=c>>u-8&255,u-=8);u>0&&(r[y++]=(c<<8-u)+(s&(1<<8-u)-1))}this.bufferLength+=e}}},{key:"readBlockPng",value:function(){var e=this.rowBytes,t=this.pixBytes,r=this.str.getByte(),n=this.str.getBytes(e);if(this.eof=!n.length,!this.eof){var a=this.bufferLength,o=this.ensureBuffer(a+e),s=o.subarray(a-e,a);0===s.length&&(s=new Uint8Array(e));var c,l,u,f=a;switch(r){case 0:for(c=0;c<e;++c)o[f++]=n[c];break;case 1:for(c=0;c<t;++c)o[f++]=n[c];for(;c<e;++c)o[f]=o[f-t]+n[c]&255,f++;break;case 2:for(c=0;c<e;++c)o[f++]=s[c]+n[c]&255;break;case 3:for(c=0;c<t;++c)o[f++]=(s[c]>>1)+n[c];for(;c<e;++c)o[f]=(s[c]+o[f-t]>>1)+n[c]&255,f++;break;case 4:for(c=0;c<t;++c)l=s[c],u=n[c],o[f++]=l+u;for(;c<e;++c){l=s[c];var h=s[c-t],d=o[f-t],p=d+l-h,g=p-d;g<0&&(g=-g);var m=p-l;m<0&&(m=-m);var v=p-h;v<0&&(v=-v),u=n[c],o[f++]=g<=m&&g<=v?d+u:m<=v?l+u:h+u}break;default:throw new i.FormatError("Unsupported predictor: ".concat(r))}this.bufferLength+=e}}}])&&s(t.prototype,r),d}(a.DecodeStream);t.PredictorStream=h},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.RunLengthStream=void 0;var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(u,e);var t,r,n,c,l=(n=u,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=s(n);if(c){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return o(this,e)});function u(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(r=l.call(this,t)).str=e,r.dict=e.dict,r}return t=u,(r=[{key:"readBlock",value:function(){var e=this.str.getBytes(2);if(!e||e.length<2||128===e[0])this.eof=!0;else{var t,r=this.bufferLength,n=e[0];if(n<128){if((t=this.ensureBuffer(r+n+1))[r++]=e[1],n>0){var a=this.str.getBytes(n);t.set(a,r),r+=n}}else{n=257-n;var i=e[1];t=this.ensureBuffer(r+n+1);for(var o=0;o<n;o++)t[r++]=i}this.bufferLength=r}}}])&&a(t.prototype,r),u}(r(142).DecodeStream);t.RunLengthStream=c},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Font=t.ErrorFont=void 0;var n=r(4),a=r(158),i=r(131),o=r(133),s=r(132),c=r(160),l=r(134),u=r(161),f=r(162),h=r(163),d=r(164),p=r(139),g=r(165),m=r(122),v=r(123),y=r(166);function b(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=w(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function w(e,t){if(e){if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function A(e,t,r){return t&&x(e.prototype,t),r&&x(e,r),e}var O=[[57344,63743],[1048576,1114109]],C=1e3,F=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","fontType","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],T=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function I(e){if(e.fontMatrix&&e.fontMatrix[0]!==n.FONT_IDENTITY_MATRIX[0]){var t=.001/e.fontMatrix[0],r=e.widths;for(var a in r)r[a]*=t;e.defaultWidth*=t}}function P(e){if(e.fallbackToUnicode&&!(e.toUnicode instanceof u.IdentityToUnicodeMap)){var t=[];for(var r in e.fallbackToUnicode)e.toUnicode.has(r)||(t[r]=e.fallbackToUnicode[r]);t.length>0&&e.toUnicode.amend(t)}}var _=function(){function e(t,r,n,a,i,o,s,c,l){S(this,e),this.originalCharCode=t,this.fontChar=r,this.unicode=n,this.accent=a,this.width=i,this.vmetric=o,this.operatorListId=s,this.isSpace=c,this.isInFont=l}return A(e,[{key:"matchesForCache",value:function(e,t,r,n,a,i,o,s,c){return this.originalCharCode===e&&this.fontChar===t&&this.unicode===r&&this.accent===n&&this.width===a&&this.vmetric===i&&this.operatorListId===o&&this.isSpace===s&&this.isInFont===c}}]),e}();function E(e,t){return(e<<8)+t}function j(e,t,r){e[t+1]=r,e[t]=r>>>8}function M(e,t){var r=(e<<8)+t;return 32768&r?r-65536:r}function R(e){return String.fromCharCode(e>>8&255,255&e)}function B(e){return e>32767?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function D(e){var t=e.peekBytes(4);return"ttcf"===(0,n.bytesToString)(t)}function N(e,t){for(var r in t)e[+r]=t[r]}function L(e,t,r){for(var n,a=[],i=0,o=e.length;i<o;i++)-1!==(n=(0,l.getUnicodeForGlyph)(e[i],t))&&(a[i]=n);for(var s in r)-1!==(n=(0,l.getUnicodeForGlyph)(r[s],t))&&(a[+s]=n);return a}function U(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];switch(t.length){case 1:return t.charCodeAt(0);case 2:return t.charCodeAt(0)<<8|t.charCodeAt(1)}var a="Unsupported CID string (charCode ".concat(e,'): "').concat(t,'".');if(r)throw new n.FormatError(a);return(0,n.warn)(a),t}function $(e,t,r){var a=Object.create(null),i=[],o=0,s=O[o][0],c=O[o][1];for(var l in e){var u=e[l|=0];if(t(u)){if(s>c){if(++o>=O.length){(0,n.warn)("Ran out of space in font private use area.");break}s=O[o][0],c=O[o][1]}var f=s++;0===u&&(u=r),a[f]=u,i[l]=f}}return{toFontChar:i,charCodeToGlyphId:a,nextAvailableFontCharCode:s}}function q(e,t){var r,a,i,o,s=function(e,t){var r=[];for(var n in e)e[n]>=t||r.push({fontCharCode:0|n,glyphId:e[n]});0===r.length&&r.push({fontCharCode:0,glyphId:0}),r.sort((function(e,t){return e.fontCharCode-t.fontCharCode}));for(var a=[],i=r.length,o=0;o<i;){var s=r[o].fontCharCode,c=[r[o].glyphId];++o;for(var l=s;o<i&&l+1===r[o].fontCharCode&&(c.push(r[o].glyphId),++o,65535!=++l););a.push([s,l,c])}return a}(e,t),c=s[s.length-1][1]>65535?2:1,l="\0\0"+R(c)+"\0\0"+(0,n.string32)(4+8*c);for(r=s.length-1;r>=0&&!(s[r][0]<=65535);--r);var u=r+1;s[r][0]<65535&&65535===s[r][1]&&(s[r][1]=65534);var f,h,d,p,m=s[r][1]<65535?1:0,v=u+m,y=g.OpenTypeFileBuilder.getSearchParams(v,2),b="",w="",k="",S="",x="",A=0;for(r=0,a=u;r<a;r++){h=(f=s[r])[0],d=f[1],b+=R(h),w+=R(d);var O=!0;for(i=1,o=(p=f[2]).length;i<o;++i)if(p[i]!==p[i-1]+1){O=!1;break}if(O)k+=R(p[0]-h&65535),S+=R(0);else{var C=2*(v-r)+2*A;for(A+=d-h+1,k+=R(0),S+=R(C),i=0,o=p.length;i<o;++i)x+=R(p[i])}}m>0&&(w+="ÿÿ",b+="ÿÿ",k+="\0",S+="\0\0");var F="\0\0"+R(2*v)+R(y.range)+R(y.entry)+R(y.rangeShift)+w+"\0\0"+b+k+S+x,T="",I="";if(c>1){for(l+="\0\0\n"+(0,n.string32)(4+8*c+4+F.length),T="",r=0,a=s.length;r<a;r++){h=(f=s[r])[0];var P=(p=f[2])[0];for(i=1,o=p.length;i<o;++i)p[i]!==p[i-1]+1&&(d=f[0]+i-1,T+=(0,n.string32)(h)+(0,n.string32)(d)+(0,n.string32)(P),h=d+1,P=p[i]);T+=(0,n.string32)(h)+(0,n.string32)(f[1])+(0,n.string32)(P)}I="\0\f\0\0"+(0,n.string32)(T.length+16)+"\0\0\0\0"+(0,n.string32)(T.length/12)}return l+"\0"+R(F.length+4)+F+I+T}function X(e,t,r){r=r||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var a=0,i=0,o=0,s=0,c=null,u=0;if(t){for(var f in t){(c>(f|=0)||!c)&&(c=f),u<f&&(u=f);var h=(0,l.getUnicodeRangeFor)(f);if(h<32)a|=1<<h;else if(h<64)i|=1<<h-32;else if(h<96)o|=1<<h-64;else{if(!(h<123))throw new n.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");s|=1<<h-96}}u>65535&&(u=65535)}else c=0,u=255;var d=e.bbox||[0,0,0,0],p=r.unitsPerEm||1/(e.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],g=e.ascentScaled?1:p/C,m=r.ascent||Math.round(g*(e.ascent||d[3])),v=r.descent||Math.round(g*(e.descent||d[1]));v>0&&e.descent>0&&d[1]<0&&(v=-v);var y=r.yMax||m,b=-r.yMin||-v;return"\0$ô\0\0\0Š»\0\0\0ŒŠ»\0\0ß\x001\0\0\0\0"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,n.string32)(a)+(0,n.string32)(i)+(0,n.string32)(o)+(0,n.string32)(s)+"*21*"+R(e.italicAngle?1:0)+R(c||e.firstChar)+R(u||e.lastChar)+R(m)+R(v)+"\0d"+R(y)+R(b)+"\0\0\0\0\0\0\0\0"+R(e.xHeight)+R(e.capHeight)+R(0)+R(c||e.firstChar)+"\0"}function H(e){var t=Math.floor(e.italicAngle*Math.pow(2,16));return"\0\0\0"+(0,n.string32)(t)+"\0\0\0\0"+(0,n.string32)(e.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function z(e){return e.replace(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function W(e,t){t||(t=[[],[]]);var r,n,a,i,o,s=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||z(e),t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],c=[];for(r=0,n=s.length;r<n;r++){var l=[];for(a=0,i=(o=t[1][r]||s[r]).length;a<i;a++)l.push(R(o.charCodeAt(a)));c.push(l.join(""))}var u=[s,c],f=["\0","\0"],h=["\0\0","\0"],d=["\0\0","\t"],p=s.length*f.length,g="\0\0"+R(p)+R(12*p+6),m=0;for(r=0,n=f.length;r<n;r++){var v=u[r];for(a=0,i=v.length;a<i;a++)o=v[a],g+=f[r]+h[r]+d[r]+R(a)+R(o.length)+R(m),m+=o.length}return g+(s.join("")+c.join(""))}var G=function(){function e(t,r,a){S(this,e),this.name=t,this.psName=null,this.mimetype=null,this.disableFontFace=!1,this.loadedName=a.loadedName,this.isType3Font=a.isType3Font,this.missingFile=!1,this.cssFontInfo=a.cssFontInfo,this._charsCache=Object.create(null),this._glyphCache=Object.create(null);var o=!!(a.flags&i.FontFlags.Serif);if(!o&&!a.isSimulatedFlags){var s,l=t.replace(/[,_]/g,"-").split("-")[0],u=(0,c.getSerifFonts)(),h=b(l.split("+"));try{for(h.s();!(s=h.n()).done;)if(u[s.value]){o=!0;break}}catch(e){h.e(e)}finally{h.f()}}this.isSerifFont=o,this.isSymbolicFont=!!(a.flags&i.FontFlags.Symbolic),this.isMonospace=!!(a.flags&i.FontFlags.FixedPitch);var d=a.type,p=a.subtype;this.type=d,this.subtype=p;var g,v,k="sans-serif";if(this.isMonospace?k="monospace":this.isSerifFont&&(k="serif"),this.fallbackName=k,this.differences=a.differences,this.widths=a.widths,this.defaultWidth=a.defaultWidth,this.composite=a.composite,this.cMap=a.cMap,this.capHeight=a.capHeight/C,this.ascent=a.ascent/C,this.descent=a.descent/C,this.lineHeight=this.ascent-this.descent,this.fontMatrix=a.fontMatrix,this.bbox=a.bbox,this.defaultEncoding=a.defaultEncoding,this.toUnicode=a.toUnicode,this.toFontChar=[],"Type3"!==a.type){if(this.cidEncoding=a.cidEncoding||"",this.vertical=!!a.vertical,this.vertical&&(this.vmetrics=a.vmetrics,this.defaultVMetrics=a.defaultVMetrics),!r||r.isEmpty)return r&&(0,n.warn)('Font file is empty in "'+t+'" ('+this.loadedName+")"),void this.fallbackToSystemFont(a);var x,A=(g=function(e,t){var r,a,i=t.type,o=t.subtype,s=t.composite;return function(e){var t=e.peekBytes(4);return 65536===(0,m.readUint32)(t,0)||"true"===(0,n.bytesToString)(t)}(e)||D(e)?r=s?"CIDFontType2":"TrueType":function(e){var t=e.peekBytes(4);return"OTTO"===(0,n.bytesToString)(t)}(e)?r=s?"CIDFontType2":"OpenType":function(e){var t=e.peekBytes(2);return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}(e)?r=s?"CIDFontType0":"MMType1"===i?"MMType1":"Type1":function(e){var t=e.peekBytes(4);return t[0]>=1&&t[3]>=1&&t[3]<=4}(e)?s?(r="CIDFontType0",a="CIDFontType0C"):(r="MMType1"===i?"MMType1":"Type1",a="Type1C"):((0,n.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),r=i,a=o),[r,a]}(r,a),v=2,function(e){if(Array.isArray(e))return e}(g)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(g,v)||w(g,v)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());d=A[0],p=A[1],d===this.type&&p===this.subtype||(0,n.info)("Inconsistent font file Type/SubType, expected: "+"".concat(this.type,"/").concat(this.subtype," but found: ").concat(d,"/").concat(p,"."));try{switch(d){case"MMType1":(0,n.info)("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var O="Type1C"===p||"CIDFontType0C"===p?new f.CFFFont(r,a):new y.Type1Font(t,r,a);I(a),x=this.convert(t,O,a);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",x=this.checkAndRepair(t,r,a),this.isOpenType&&(I(a),d="OpenType");break;default:throw new n.FormatError("Font ".concat(d," is not supported"))}}catch(e){return(0,n.warn)(e),void this.fallbackToSystemFont(a)}P(a),this.data=x,this.fontType=(0,i.getFontType)(d,p,a.isStandardFont),this.fontMatrix=a.fontMatrix,this.widths=a.widths,this.defaultWidth=a.defaultWidth,this.toUnicode=a.toUnicode,this.seacMap=a.seacMap}else{for(var F=0;F<256;F++)this.toFontChar[F]=this.differences[F]||a.defaultEncoding[F];this.fontType=n.FontType.TYPE3}}return A(e,[{key:"renderer",get:function(){var e=h.FontRendererFactory.create(this,i.SEAC_ANALYSIS_ENABLED);return(0,n.shadow)(this,"renderer",e)}},{key:"exportData",value:function(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=n?[].concat(F,T):F,i=Object.create(null),o=b(a);try{for(o.s();!(r=o.n()).done;)void 0!==(t=this[e=r.value])&&(i[e]=t)}catch(e){o.e(e)}finally{o.f()}return i}},{key:"fallbackToSystemFont",value:function(e){var t=this;this.missingFile=!0;var r=this.name,a=this.type,f=this.subtype,h=(0,i.normalizeFontName)(r),d=(0,c.getStdFontMap)(),p=(0,c.getNonStdFontMap)(),g=!!d[h],m=!(!p[h]||!d[p[h]]);h=d[h]||p[h]||h,this.bold=-1!==h.search(/bold/gi),this.italic=-1!==h.search(/oblique/gi)||-1!==h.search(/italic/gi),this.black=-1!==r.search(/Black/g);var v=-1!==r.search(/Narrow/g);if(this.remeasure=(!g||v)&&Object.keys(this.widths).length>0,(g||m)&&"CIDFontType2"===a&&this.cidEncoding.startsWith("Identity-")){var y=e.cidToGidMap,b=[];if(N(b,(0,c.getGlyphMapForStandardFonts)()),/Arial-?Black/i.test(r)?N(b,(0,c.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(r)&&N(b,(0,c.getSupplementalGlyphMapForCalibri)()),y){for(var w in b){var k=b[w];void 0!==y[k]&&(b[+w]=y[k])}y.length!==this.toUnicode.length&&e.hasIncludedToUnicodeMap&&this.toUnicode instanceof u.IdentityToUnicodeMap&&this.toUnicode.forEach((function(e,t){var r=b[e];void 0===y[r]&&(b[+e]=t)}))}this.toUnicode instanceof u.IdentityToUnicodeMap||this.toUnicode.forEach((function(e,t){b[+e]=t})),this.toFontChar=b,this.toUnicode=new u.ToUnicodeMap(b)}else if(/Symbol/i.test(h))this.toFontChar=L(s.SymbolSetEncoding,(0,o.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(h))/Wingdings/i.test(r)&&(0,n.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=L(s.ZapfDingbatsEncoding,(0,o.getDingbatsGlyphsUnicode)(),this.differences);else if(g){var S=L(this.defaultEncoding,(0,o.getGlyphsUnicode)(),this.differences);"CIDFontType2"!==a||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof u.IdentityToUnicodeMap||this.toUnicode.forEach((function(e,t){S[+e]=t})),this.toFontChar=S}else{var x=(0,o.getGlyphsUnicode)(),A=[];this.toUnicode.forEach((function(e,r){if(!t.composite){var n=t.differences[e]||t.defaultEncoding[e],a=(0,l.getUnicodeForGlyph)(n,x);-1!==a&&(r=a)}A[+e]=r})),this.composite&&this.toUnicode instanceof u.IdentityToUnicodeMap&&/Verdana/i.test(r)&&N(A,(0,c.getGlyphMapForStandardFonts)()),this.toFontChar=A}P(e),this.loadedName=h.split("-")[0],this.fontType=(0,i.getFontType)(a,f,e.isStandardFont)}},{key:"checkAndRepair",value:function(e,t,r){var c=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function l(e,t){var r=Object.create(null);r["OS/2"]=null,r.cmap=null,r.head=null,r.hhea=null,r.hmtx=null,r.maxp=null,r.name=null,r.post=null;for(var n=0;n<t;n++){var a=h(e);c.includes(a.tag)&&0!==a.length&&(r[a.tag]=a)}return r}function h(e){var t=e.getString(4),r=e.getInt32()>>>0,n=e.getInt32()>>>0,a=e.getInt32()>>>0,i=e.pos;e.pos=e.start?e.start:0,e.skip(n);var o=e.getBytes(a);return e.pos=i,"head"===t&&(o[8]=o[9]=o[10]=o[11]=0,o[17]|=32),{tag:t,checksum:r,length:a,offset:n,data:o}}function m(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function y(e,t,r,n,a,i){var o={length:0,sizeOfInstructions:0};if(r-t<=12)return o;var s=e.subarray(t,r),c=M(s[0],s[1]);if(c<0)return j(s,0,c=-1),n.set(s,a),o.length=s.length,o;var l,u=10,f=0;for(l=0;l<c;l++)f=1+(s[u]<<8|s[u+1]),u+=2;var h=u,d=s[u]<<8|s[u+1];o.sizeOfInstructions=d;var p=u+=2+d,g=0;for(l=0;l<f;l++){var m=s[u++];192&m&&(s[u-1]=63&m);var v=2;2&m?v=1:16&m&&(v=0);var y=2;4&m?y=1:32&m&&(y=0);var b=v+y;if(g+=b,8&m){var w=s[u++];l+=w,g+=w*b}}if(0===g)return o;var k=u+g;return k>s.length?o:!i&&d>0?(n.set(s.subarray(0,h),a),n.set([0,0],a+h),n.set(s.subarray(p,k),a+h+2),k-=d,s.length-k>3&&(k=k+3&-4),o.length=k,o):s.length-k>3?(k=k+3&-4,n.set(s.subarray(0,k),a),o.length=k,o):(n.set(s,a),o.length=s.length,o)}function w(e){var r=(t.start?t.start:0)+e.offset;t.pos=r;var n=[[],[]],a=e.length,i=r+a;if(0!==t.getUint16()||a<6)return n;var o,s,c=t.getUint16(),l=t.getUint16(),u=[];for(o=0;o<c&&t.pos+12<=i;o++){var f={platform:t.getUint16(),encoding:t.getUint16(),language:t.getUint16(),name:t.getUint16(),length:t.getUint16(),offset:t.getUint16()};(1===f.platform&&0===f.encoding&&0===f.language||3===f.platform&&1===f.encoding&&1033===f.language)&&u.push(f)}for(o=0,s=u.length;o<s;o++){var h=u[o];if(!(h.length<=0)){var d=r+l+h.offset;if(!(d+h.length>i)){t.pos=d;var p=h.name;if(h.encoding){for(var g="",m=0,v=h.length;m<v;m+=2)g+=String.fromCharCode(t.getUint16());n[1][p]=g}else n[0][p]=t.getString(h.length)}}}return n}var k,S,x,A,O=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function C(e,t){for(var r,a,i,o,s,c=e.data,l=0,u=0,f=0,h=[],d=[],p=[],g=t.tooComplexToFollowFunctions,m=!1,v=0,y=0,b=c.length;l<b;){var w=c[l++];if(64===w)if(a=c[l++],m||y)l+=a;else for(r=0;r<a;r++)h.push(c[l++]);else if(65===w)if(a=c[l++],m||y)l+=2*a;else for(r=0;r<a;r++)i=c[l++],h.push(i<<8|c[l++]);else if(176==(248&w))if(a=w-176+1,m||y)l+=a;else for(r=0;r<a;r++)h.push(c[l++]);else if(184==(248&w))if(a=w-184+1,m||y)l+=2*a;else for(r=0;r<a;r++)i=c[l++],h.push(i<<8|c[l++]);else if(43!==w||g)if(44!==w||g){if(45===w)if(m)m=!1,u=l;else{if(!(s=d.pop()))return(0,n.warn)("TT: ENDF bad stack"),void(t.hintsValid=!1);o=p.pop(),c=s.data,l=s.i,t.functionsStackDeltas[o]=h.length-s.stackTop}else if(137===w)(m||y)&&((0,n.warn)("TT: nested IDEFs not allowed"),g=!0),m=!0,f=l;else if(88===w)++v;else if(27===w)y=v;else if(89===w)y===v&&(y=0),--v;else if(28===w&&!m&&!y){var k=h[h.length-1];k>0&&(l+=k-1)}}else(m||y)&&((0,n.warn)("TT: nested FDEFs not allowed"),g=!0),m=!0,f=l,o=h.pop(),t.functionsDefined[o]={data:c,i:l};else if(!m&&!y)if(o=h[h.length-1],isNaN(o))(0,n.info)("TT: CALL empty stack (or invalid entry).");else if(t.functionsUsed[o]=!0,o in t.functionsStackDeltas){var S=h.length+t.functionsStackDeltas[o];if(S<0)return(0,n.warn)("TT: CALL invalid functions stack delta."),void(t.hintsValid=!1);h.length=S}else if(o in t.functionsDefined&&!p.includes(o)){if(d.push({data:c,i:l,stackTop:h.length-1}),p.push(o),!(s=t.functionsDefined[o]))return(0,n.warn)("TT: CALL non-existent function"),void(t.hintsValid=!1);c=s.data,l=s.i}if(!m&&!y){var x=0;for(w<=142?x=O[w]:w>=192&&w<=223?x=-1:w>=224&&(x=-2),w>=113&&w<=117&&(a=h.pop(),isNaN(a)||(x=2*-a));x<0&&h.length>0;)h.pop(),x++;for(;x>0;)h.push(NaN),x--}}t.tooComplexToFollowFunctions=g;var A=[c];l>c.length&&A.push(new Uint8Array(l-c.length)),f>u&&((0,n.warn)("TT: complementing a missing function tail"),A.push(new Uint8Array([34,45]))),function(e,t){if(t.length>1){var r,n,a=0;for(r=0,n=t.length;r<n;r++)a+=t[r].length;a=a+3&-4;var i=new Uint8Array(a),o=0;for(r=0,n=t.length;r<n;r++)i.set(t[r],o),o+=t[r].length;e.data=i,e.length=a}}(e,A)}if(D(t=new v.Stream(new Uint8Array(t.getBytes())))){var F=function(e,t){for(var r,a=function(e){var t=e.getString(4);(0,n.assert)("ttcf"===t,"Must be a TrueType Collection font.");for(var r=e.getUint16(),a=e.getUint16(),i=e.getInt32()>>>0,o=[],s=0;s<i;s++)o.push(e.getInt32()>>>0);var c={ttcTag:t,majorVersion:r,minorVersion:a,numFonts:i,offsetTable:o};switch(r){case 1:return c;case 2:return c.dsigTag=e.getInt32()>>>0,c.dsigLength=e.getInt32()>>>0,c.dsigOffset=e.getInt32()>>>0,c}throw new n.FormatError("Invalid TrueType Collection majorVersion: ".concat(r,"."))}(e),i=a.numFonts,o=a.offsetTable,s=t.split("+"),c=0;c<i;c++){e.pos=(e.start||0)+o[c];var u=m(e),f=l(e,u.numTables);if(!f.name)throw new n.FormatError('TrueType Collection font must contain a "name" table.');for(var h=w(f.name),d=0,p=h.length;d<p;d++)for(var g=0,v=h[d].length;g<v;g++){var y=h[d][g]&&h[d][g].replace(/\s/g,"");if(y){if(y===t)return{header:u,tables:f};if(!(s.length<2)){var k,S=b(s);try{for(S.s();!(k=S.n()).done;){var x=k.value;y===x&&(r={name:x,header:u,tables:f})}}catch(e){S.e(e)}finally{S.f()}}}}}if(r)return(0,n.warn)('TrueType Collection does not contain "'.concat(t,'" font, ')+'falling back to "'.concat(r.name,'" font instead.')),{header:r.header,tables:r.tables};throw new n.FormatError('TrueType Collection does not contain "'.concat(t,'" font.'))}(t,this.name);k=F.header,S=F.tables}else k=m(t),S=l(t,k.numTables);var T=!S["CFF "];if(T){if(!S.loca)throw new n.FormatError('Required "loca" table is not found');S.glyf||((0,n.warn)('Required "glyf" table is not found -- trying to recover.'),S.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{var P=r.composite&&((r.cidToGidMap||[]).length>0||!(r.cMap instanceof p.IdentityCMap));if("OTTO"===k.version&&!P||!S.head||!S.hhea||!S.maxp||!S.post)return A=new v.Stream(S["CFF "].data),x=new f.CFFFont(A,r),I(r),this.convert(e,x,r);delete S.glyf,delete S.loca,delete S.fpgm,delete S.prep,delete S["cvt "],this.isOpenType=!0}if(!S.maxp)throw new n.FormatError('Required "maxp" table is not found');t.pos=(t.start||0)+S.maxp.offset;var _=t.getInt32(),R=t.getUint16();if(r.scaleFactors&&r.scaleFactors.length===R&&T){var B=r.scaleFactors,N=E(S.head.data[50],S.head.data[51]),L=new d.GlyfTable({glyfTable:S.glyf.data,isGlyphLocationsLong:N,locaTable:S.loca.data,numGlyphs:R});L.scale(B);var z=L.write(),G=z.glyf,V=z.loca,Y=z.isLocationLong;S.glyf.data=G,S.loca.data=V,Y!==!!N&&(S.head.data[50]=0,S.head.data[51]=Y?1:0);for(var K=S.hmtx.data,J=0;J<R;J++){var Z=4*J,Q=Math.round(B[J]*E(K[Z],K[Z+1]));K[Z]=Q>>8&255,K[Z+1]=255&Q,j(K,Z+2,Math.round(B[J]*M(K[Z+2],K[Z+3])))}}var ee=R+1,te=!0;ee>65535&&(te=!1,ee=R,(0,n.warn)("Not enough space in glyfs to duplicate first glyph."));var re=0,ne=0;_>=65536&&S.maxp.length>=22&&(t.pos+=8,t.getUint16()>2&&(S.maxp.data[14]=0,S.maxp.data[15]=2),t.pos+=4,re=t.getUint16(),t.pos+=4,ne=t.getUint16()),S.maxp.data[4]=ee>>8,S.maxp.data[5]=255&ee;var ae=function(e,t,r,a){var i={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&C(e,i),t&&C(t,i),e&&function(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return(0,n.warn)("TT: more functions defined than expected"),void(e.hintsValid=!1);for(var r=0,a=e.functionsUsed.length;r<a;r++){if(r>t)return(0,n.warn)("TT: invalid function id: "+r),void(e.hintsValid=!1);if(e.functionsUsed[r]&&!e.functionsDefined[r])return(0,n.warn)("TT: undefined function: "+r),void(e.hintsValid=!1)}}}(i,a),r&&1&r.length){var o=new Uint8Array(r.length+1);o.set(r.data),r.data=o}return i.hintsValid}(S.fpgm,S.prep,S["cvt "],re);if(ae||(delete S.fpgm,delete S.prep,delete S["cvt "]),function(e,t,r,a,i,o){if(t){e.pos=(e.start?e.start:0)+t.offset,e.pos+=4,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2;var s=e.getUint16();e.pos+=8,e.pos+=2;var c=e.getUint16();0!==s&&(2&E(a.data[44],a.data[45])||(t.data[22]=0,t.data[23]=0)),c>i&&((0,n.info)("The numOfMetrics (".concat(c,") should not be ")+"greater than the numGlyphs (".concat(i,").")),c=i,t.data[34]=(65280&c)>>8,t.data[35]=255&c);var l=i-c-(r.length-4*c>>1);if(l>0){var u=new Uint8Array(r.length+2*l);u.set(r.data),o&&(u[r.length]=r.data[2],u[r.length+1]=r.data[3]),r.data=u}}else r&&(r.data=null)}(t,S.hhea,S.hmtx,S.head,ee,te),!S.head)throw new n.FormatError('Required "head" table is not found');!function(e,t,r){var a=e.data,i=(a[0]<<24)+(a[1]<<16)+(a[2]<<8)+a[3];i>>16!=1&&((0,n.info)("Attempting to fix invalid version in head table: "+i),a[0]=0,a[1]=1,a[2]=0,a[3]=0);var o=E(a[50],a[51]);if(o<0||o>1){(0,n.info)("Attempting to fix invalid indexToLocFormat in head table: "+o);var s=t+1;if(r===s<<1)a[50]=0,a[51]=0;else{if(r!==s<<2)throw new n.FormatError("Could not fix indexToLocFormat: "+o);a[50]=0,a[51]=1}}}(S.head,R,T?S.loca.length:0);var ie=Object.create(null);if(T){var oe=E(S.head.data[50],S.head.data[51]),se=function(e,t,r,n,a,i,o){var s,c,l;n?(s=4,c=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},l=function(e,t,r){e[t]=r>>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}):(s=2,c=function(e,t){return e[t]<<9|e[t+1]<<1},l=function(e,t,r){e[t]=r>>9&255,e[t+1]=r>>1&255});var u=i?r+1:r,f=s*(1+u),h=new Uint8Array(f);h.set(e.data.subarray(0,f)),e.data=h;var d,p,g=t.data,m=g.length,v=new Uint8Array(m),b=[];for(d=0,p=0;d<r+1;d++,p+=s){var w=c(h,p);w>m&&(w=m),b.push({index:d,offset:w,endOffset:0})}for(b.sort((function(e,t){return e.offset-t.offset})),d=0;d<r;d++)b[d].endOffset=b[d+1].offset;b.sort((function(e,t){return e.index-t.index}));var k=Object.create(null),S=0;for(l(h,0,S),d=0,p=s;d<r;d++,p+=s){var x=y(g,b[d].offset,b[d].endOffset,v,S,a),A=x.length;0===A&&(k[d]=!0),x.sizeOfInstructions>o&&(o=x.sizeOfInstructions),l(h,p,S+=A)}if(0===S){var O=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(d=0,p=s;d<u;d++,p+=s)l(h,p,O.length);t.data=O}else if(i){var C=c(h,s);v.length>C+S?t.data=v.subarray(0,C+S):(t.data=new Uint8Array(C+S),t.data.set(v.subarray(0,S))),t.data.set(v.subarray(0,C),S),l(e.data,h.length-s,S+C)}else t.data=v.subarray(0,S);return{missingGlyphs:k,maxSizeOfInstructions:o}}(S.loca,S.glyf,R,oe,ae,te,ne);ie=se.missingGlyphs,_>=65536&&S.maxp.length>=22&&(S.maxp.data[26]=se.maxSizeOfInstructions>>8,S.maxp.data[27]=255&se.maxSizeOfInstructions)}if(!S.hhea)throw new n.FormatError('Required "hhea" table is not found');0===S.hhea.data[10]&&0===S.hhea.data[11]&&(S.hhea.data[10]=255,S.hhea.data[11]=255);var ce={unitsPerEm:E(S.head.data[18],S.head.data[19]),yMax:E(S.head.data[42],S.head.data[43]),yMin:M(S.head.data[38],S.head.data[39]),ascent:M(S.hhea.data[4],S.hhea.data[5]),descent:M(S.hhea.data[6],S.hhea.data[7]),lineGap:M(S.hhea.data[8],S.hhea.data[9])};this.ascent=ce.ascent/ce.unitsPerEm,this.descent=ce.descent/ce.unitsPerEm,this.lineGap=ce.lineGap/ce.unitsPerEm,this.cssFontInfo&&this.cssFontInfo.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,S.post&&function(e,r,a){var o=(t.start?t.start:0)+e.offset;t.pos=o;var s,c=o+e.length,l=t.getInt32();t.skip(28);var u,f=!0;switch(l){case 65536:s=i.MacStandardGlyphOrdering;break;case 131072:var h=t.getUint16();if(h!==a){f=!1;break}var d=[];for(u=0;u<h;++u){var p=t.getUint16();if(p>=32768){f=!1;break}d.push(p)}if(!f)break;for(var g=[],m=[];t.pos<c;){var v=t.getByte();for(m.length=v,u=0;u<v;++u)m[u]=String.fromCharCode(t.getByte());g.push(m.join(""))}for(s=[],u=0;u<h;++u){var y=d[u];y<258?s.push(i.MacStandardGlyphOrdering[y]):s.push(g[y-258])}break;case 196608:break;default:(0,n.warn)("Unknown/unsupported post table version "+l),f=!1,r.defaultEncoding&&(s=r.defaultEncoding)}r.glyphNames=s}(S.post,r,R),S.post={tag:"post",data:H(r)};var le=[];function ue(e){return!ie[e]}if(r.composite){var fe=r.cidToGidMap||[],he=0===fe.length;r.cMap.forEach((function(e,t){if("string"==typeof t&&(t=U(e,t,!0)),t>65535)throw new n.FormatError("Max size of CID is 65,535");var r=-1;he?r=t:void 0!==fe[t]&&(r=fe[t]),r>=0&&r<R&&ue(r)&&(le[e]=r)}))}else{var de=function(e,t,r,a){if(!e)return(0,n.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var i,o=(t.start?t.start:0)+e.offset;t.pos=o,t.skip(2);for(var s,c=t.getUint16(),l=!1,u=0;u<c;u++){var f=t.getUint16(),h=t.getUint16(),d=t.getInt32()>>>0,p=!1;if(!s||s.platformId!==f||s.encodingId!==h){if(0!==f||0!==h&&1!==h&&3!==h)if(1===f&&0===h)p=!0;else if(3!==f||1!==h||!a&&s){if(r&&3===f&&0===h){p=!0;var g=!0;if(u<c-1){var m=t.peekBytes(2);E(m[0],m[1])<f&&(g=!1)}g&&(l=!0)}}else p=!0,r||(l=!0);else p=!0;if(p&&(s={platformId:f,encodingId:h,offset:d}),l)break}}if(s&&(t.pos=o+s.offset),!s||-1===t.peekByte())return(0,n.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var v=t.getUint16();t.skip(4);var y,b,w=!1,k=[];if(0===v){for(y=0;y<256;y++){var S=t.getByte();S&&k.push({charCode:y,glyphId:S})}w=!0}else if(4===v){var x=t.getUint16()>>1;t.skip(6);var A,O=[];for(A=0;A<x;A++)O.push({end:t.getUint16()});for(t.skip(2),A=0;A<x;A++)O[A].start=t.getUint16();for(A=0;A<x;A++)O[A].delta=t.getUint16();var C,F=0;for(A=0;A<x;A++){i=O[A];var T=t.getUint16();T?(C=(T>>1)-(x-A),i.offsetIndex=C,F=Math.max(F,C+i.end-i.start+1)):i.offsetIndex=-1}var I=[];for(y=0;y<F;y++)I.push(t.getUint16());for(A=0;A<x;A++){o=(i=O[A]).start;var P=i.end,_=i.delta;for(C=i.offsetIndex,y=o;y<=P;y++)65535!==y&&(b=(b=C<0?y:I[C+y-o])+_&65535,k.push({charCode:y,glyphId:b}))}}else{if(6!==v)return(0,n.warn)("cmap table has unsupported format: "+v),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var j=t.getUint16(),M=t.getUint16();for(y=0;y<M;y++){b=t.getUint16();var R=j+y;k.push({charCode:R,glyphId:b})}}k.sort((function(e,t){return e.charCode-t.charCode}));for(var B=1;B<k.length;B++)k[B-1].charCode===k[B].charCode&&(k.splice(B,1),B--);return{platformId:s.platformId,encodingId:s.encodingId,mappings:k,hasShortCmap:w}}(S.cmap,t,this.isSymbolicFont,r.hasEncoding),pe=de.platformId,ge=de.encodingId,me=de.mappings,ve=me.length,ye=[],be=!1;if(!r.hasEncoding||"MacRomanEncoding"!==r.baseEncodingName&&"WinAnsiEncoding"!==r.baseEncodingName||(ye=(0,s.getEncoding)(r.baseEncodingName)),r.hasEncoding&&!this.isSymbolicFont&&(3===pe&&1===ge||1===pe&&0===ge))for(var we=(0,o.getGlyphsUnicode)(),ke=0;ke<256;ke++){var Se;if(Se=void 0!==this.differences[ke]?this.differences[ke]:ye.length&&""!==ye[ke]?ye[ke]:s.StandardEncoding[ke]){var xe=(0,i.recoverGlyphName)(Se,we),Ae=void 0;if(3===pe&&1===ge?Ae=we[xe]:1===pe&&0===ge&&(Ae=s.MacRomanEncoding.indexOf(xe)),void 0===Ae){if(!r.glyphNames&&r.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof u.IdentityToUnicodeMap)){var Oe=this.toUnicode.get(ke);Oe&&(Ae=Oe.codePointAt(0))}if(void 0===Ae)continue}for(var Ce=0;Ce<ve;++Ce)if(me[Ce].charCode===Ae){le[ke]=me[Ce].glyphId;break}}}else if(0===pe){for(var Fe=0;Fe<ve;++Fe)le[me[Fe].charCode]=me[Fe].glyphId;be=!0}else for(var Te=0;Te<ve;++Te){var Ie=me[Te].charCode;3===pe&&Ie>=61440&&Ie<=61695&&(Ie&=255),le[Ie]=me[Te].glyphId}if(r.glyphNames&&(ye.length||this.differences.length))for(var Pe=0;Pe<256;++Pe)if(be||void 0===le[Pe]){var _e=this.differences[Pe]||ye[Pe];if(_e){var Ee=r.glyphNames.indexOf(_e);Ee>0&&ue(Ee)&&(le[Pe]=Ee)}}}0===le.length&&(le[0]=0);var je=ee-1;if(te||(je=0),!r.cssFontInfo){var Me=$(le,ue,je);this.toFontChar=Me.toFontChar,S.cmap={tag:"cmap",data:q(Me.charCodeToGlyphId,ee)},S["OS/2"]&&function(e,t){t.pos=(t.start||0)+e.offset;var r=t.getUint16();t.skip(60);var n=t.getUint16();return!(r<4&&768&n||t.getUint16()>t.getUint16()||(t.skip(6),0===t.getUint16()||(e.data[8]=e.data[9]=0,0)))}(S["OS/2"],t)||(S["OS/2"]={tag:"OS/2",data:X(r,Me.charCodeToGlyphId,ce)})}if(!T)try{A=new v.Stream(S["CFF "].data),(x=new a.CFFParser(A,r,i.SEAC_ANALYSIS_ENABLED).parse()).duplicateFirstGlyph();var Re=new a.CFFCompiler(x);S["CFF "].data=Re.compile()}catch(e){(0,n.warn)("Failed to compile font "+r.loadedName)}if(S.name){var Be=w(S.name);S.name.data=W(e,Be),this.psName=Be[0][6]||null}else S.name={tag:"name",data:W(this.name)};var De=new g.OpenTypeFileBuilder(k.version);for(var Ne in S)De.addTable(Ne,S[Ne].data);return De.toArray()}},{key:"convert",value:function(e,t,r){r.fixedPitch=!1,r.builtInEncoding&&function(e,t){if(!(e.isInternalFont||t===e.defaultEncoding||e.toUnicode instanceof u.IdentityToUnicodeMap)){var r=[],n=(0,o.getGlyphsUnicode)();for(var a in t){if(e.hasIncludedToUnicodeMap){if(e.toUnicode.has(a))continue}else if(e.hasEncoding&&(0===e.differences.length||void 0!==e.differences[a]))continue;var i=t[a],s=(0,l.getUnicodeForGlyph)(i,n);-1!==s&&(r[a]=String.fromCharCode(s))}r.length>0&&e.toUnicode.amend(r)}}(r,r.builtInEncoding);var a=1;t instanceof f.CFFFont&&(a=t.numGlyphs-1);var c=t.getGlyphMapping(r),h=null,d=c;r.cssFontInfo||(h=$(c,t.hasGlyphId.bind(t),a),this.toFontChar=h.toFontChar,d=h.charCodeToGlyphId);var p=t.numGlyphs;function m(e,t){var r=null;for(var n in e)t===e[n]&&(r||(r=[]),r.push(0|n));return r}function v(e,t){for(var r in e)if(t===e[r])return 0|r;return h.charCodeToGlyphId[h.nextAvailableFontCharCode]=t,h.nextAvailableFontCharCode++}var y=t.seacs;if(h&&i.SEAC_ANALYSIS_ENABLED&&y&&y.length){var b=r.fontMatrix||n.FONT_IDENTITY_MATRIX,w=t.getCharset(),k=Object.create(null);for(var S in y){var x=y[S|=0],A=s.StandardEncoding[x[2]],O=s.StandardEncoding[x[3]],C=w.indexOf(A),F=w.indexOf(O);if(!(C<0||F<0)){var T={x:x[0]*b[0]+x[1]*b[2]+b[4],y:x[0]*b[1]+x[1]*b[3]+b[5]},I=m(c,S);if(I)for(var P=0,_=I.length;P<_;P++){var E=I[P],j=h.charCodeToGlyphId,M=v(j,C),D=v(j,F);k[E]={baseFontCharCode:M,accentFontCharCode:D,accentOffset:T}}}}r.seacMap=k}var N=1/(r.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],L=new g.OpenTypeFileBuilder("OTTO");return L.addTable("CFF ",t.data),L.addTable("OS/2",X(r,d)),L.addTable("cmap",q(d,p)),L.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+B(N)+"\0\0\0\0ž\v~'\0\0\0\0ž\v~'\0\0"+B(r.descent)+"ÿ"+B(r.ascent)+R(r.italicAngle?2:0)+"\0\0\0\0\0\0\0"),L.addTable("hhea","\0\0\0"+B(r.ascent)+B(r.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+B(r.capHeight)+B(Math.tan(r.italicAngle)*r.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+R(p)),L.addTable("hmtx",function(){for(var e=t.charstrings,r=t.cff?t.cff.widths:null,n="\0\0\0\0",a=1,i=p;a<i;a++){var o=0;if(e){var s=e[a-1];o="width"in s?s.width:0}else r&&(o=Math.ceil(r[a]||0));n+=R(o)+R(0)}return n}()),L.addTable("maxp","\0\0P\0"+R(p)),L.addTable("name",W(e)),L.addTable("post",H(r)),L.toArray()}},{key:"spaceWidth",get:function(){for(var e,t=["space","minus","one","i","I"],r=0,a=t.length;r<a;r++){var i=t[r];if(i in this.widths){e=this.widths[i];break}var s=(0,o.getGlyphsUnicode)()[i],c=0;if(this.composite&&this.cMap.contains(s)&&"string"==typeof(c=this.cMap.lookup(s))&&(c=U(s,c)),!c&&this.toUnicode&&(c=this.toUnicode.charCodeOf(s)),c<=0&&(c=s),e=this.widths[c])break}return e=e||this.defaultWidth,(0,n.shadow)(this,"spaceWidth",e)}},{key:"_charToGlyph",value:function(e){var t,r,a,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=e;this.cMap&&this.cMap.contains(e)&&"string"==typeof(o=this.cMap.lookup(e))&&(o=U(e,o)),r=this.widths[o],r=(0,n.isNum)(r)?r:this.defaultWidth;var s=this.vmetrics&&this.vmetrics[o],c=this.toUnicode.get(e)||e;"number"==typeof c&&(c=String.fromCharCode(c));var u=void 0!==this.toFontChar[e];if(t=this.toFontChar[e]||e,this.missingFile){var f=this.differences[e]||this.defaultEncoding[e];".notdef"!==f&&""!==f||"Type1"!==this.type||(t=32),t=(0,l.mapSpecialUnicodeValues)(t)}this.isType3Font&&(a=t);var h=null;if(this.seacMap&&this.seacMap[e]){u=!0;var d=this.seacMap[e];t=d.baseFontCharCode,h={fontChar:String.fromCodePoint(d.accentFontCharCode),offset:d.accentOffset}}var p="";"number"==typeof t&&(t<=1114111?p=String.fromCodePoint(t):(0,n.warn)("charToGlyph - invalid fontCharCode: ".concat(t)));var g=this._glyphCache[e];return g&&g.matchesForCache(e,p,c,h,r,s,a,i,u)||(g=new _(e,p,c,h,r,s,a,i,u),this._glyphCache[e]=g),g}},{key:"charsToGlyphs",value:function(e){var t=this._charsCache[e];if(t)return t;if(t=[],this.cMap)for(var r=Object.create(null),n=e.length,a=0;a<n;){this.cMap.readCharCode(e,a,r);var i=r.charcode,o=r.length;a+=o;var s=this._charToGlyph(i,1===o&&32===e.charCodeAt(a-1));t.push(s)}else for(var c=0,l=e.length;c<l;++c){var u=e.charCodeAt(c),f=this._charToGlyph(u,32===u);t.push(f)}return this._charsCache[e]=t}},{key:"getCharPositions",value:function(e){var t=[];if(this.cMap)for(var r=Object.create(null),n=0;n<e.length;){this.cMap.readCharCode(e,n,r);var a=r.length;t.push([n,n+a]),n+=a}else for(var i=0,o=e.length;i<o;++i)t.push([i,i+1]);return t}},{key:"glyphCacheValues",get:function(){return Object.values(this._glyphCache)}},{key:"encodeString",value:function(e){for(var t=this,r=[],n=[],a=function(){return r.length%2==1},i=this.toUnicode instanceof u.IdentityToUnicodeMap?function(e){return t.toUnicode.charCodeOf(e)}:function(e){return t.toUnicode.charCodeOf(String.fromCodePoint(e))},o=0,s=e.length;o<s;o++){var c=e.codePointAt(o);if(c>55295&&(c<57344||c>65533)&&o++,this.toUnicode){var l=i(c);if(-1!==l){a()&&(r.push(n.join("")),n.length=0);for(var f=(this.cMap?this.cMap.getCharCodeLength(l):1)-1;f>=0;f--)n.push(String.fromCharCode(l>>8*f&255));continue}}a()||(r.push(n.join("")),n.length=0),n.push(String.fromCodePoint(c))}return r.push(n.join("")),r}}]),e}();t.Font=G;var V=function(){function e(t){S(this,e),this.error=t,this.loadedName="g_font_error",this.missingFile=!0}return A(e,[{key:"charsToGlyphs",value:function(){return[]}},{key:"encodeString",value:function(e){return[e]}},{key:"exportData",value:function(){return{error:this.error}}}]),e}();t.ErrorFont=V},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CFFTopDict=t.CFFStrings=t.CFFStandardStrings=t.CFFPrivateDict=t.CFFParser=t.CFFIndex=t.CFFHeader=t.CFFFDSelect=t.CFFCompiler=t.CFFCharset=t.CFF=void 0;var a=r(4),i=r(159),o=r(132);function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=f(e);if(t){var a=f(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),e}var g=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"];t.CFFStandardStrings=g;var m,v,y=(m=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],v=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn:function(e,t){e[t-1]=-e[t-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}],function(){function e(t,r,n){h(this,e),this.bytes=t.getBytes(),this.properties=r,this.seacAnalysisEnabled=!!n}return p(e,[{key:"parse",value:function(){var e=this.properties,t=new b;this.cff=t;var r=this.parseHeader(),n=this.parseIndex(r.endPos),a=this.parseIndex(n.endPos),i=this.parseIndex(a.endPos),o=this.parseIndex(i.endPos),s=this.parseDict(a.obj.get(0)),c=this.createDict(C,s,t.strings);t.header=r.obj,t.names=this.parseNameIndex(n.obj),t.strings=this.parseStringIndex(i.obj),t.topDict=c,t.globalSubrIndex=o.obj,this.parsePrivateDict(t.topDict),t.isCIDFont=c.hasName("ROS");var l=c.getByName("CharStrings"),u=this.parseIndex(l).obj,f=c.getByName("FontMatrix");f&&(e.fontMatrix=f);var h,d,p=c.getByName("FontBBox");if(p&&(e.ascent=Math.max(p[3],p[1]),e.descent=Math.min(p[1],p[3]),e.ascentScaled=!0),t.isCIDFont){for(var g=this.parseIndex(c.getByName("FDArray")).obj,m=0,v=g.count;m<v;++m){var y=g.get(m),w=this.createDict(C,this.parseDict(y),t.strings);this.parsePrivateDict(w),t.fdArray.push(w)}d=null,h=this.parseCharsets(c.getByName("charset"),u.count,t.strings,!0),t.fdSelect=this.parseFDSelect(c.getByName("FDSelect"),u.count)}else h=this.parseCharsets(c.getByName("charset"),u.count,t.strings,!1),d=this.parseEncoding(c.getByName("Encoding"),e,t.strings,h.charset);t.charset=h,t.encoding=d;var k=this.parseCharStrings({charStrings:u,localSubrIndex:c.privateDict.subrsIndex,globalSubrIndex:o.obj,fdSelect:t.fdSelect,fdArray:t.fdArray,privateDict:c.privateDict});return t.charStrings=k.charStrings,t.seacs=k.seacs,t.widths=k.widths,t}},{key:"parseHeader",value:function(){for(var e=this.bytes,t=e.length,r=0;r<t&&1!==e[r];)++r;if(r>=t)throw new a.FormatError("Invalid CFF header");0!==r&&((0,a.info)("cff data is shifted"),e=e.subarray(r),this.bytes=e);var n=e[0],i=e[1],o=e[2],s=e[3];return{obj:new w(n,i,o,s),endPos:o}}},{key:"parseDict",value:function(e){var t=0;var r,n=[],i=[];t=0;for(var o=e.length;t<o;){var s=e[t];s<=21?(12===s&&(s=s<<8|e[++t]),i.push([s,n]),n=[],++t):n.push((r=void 0,30===(r=e[t++])?function(){for(var r="",n=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],a=e.length;t<a;){var i=e[t++],o=i>>4,s=15&i;if(15===o)break;if(r+=n[o],15===s)break;r+=n[s]}return parseFloat(r)}():28===r?r=((r=e[t++])<<24|e[t++]<<16)>>16:29===r?r=(r=(r=(r=e[t++])<<8|e[t++])<<8|e[t++])<<8|e[t++]:r>=32&&r<=246?r-139:r>=247&&r<=250?256*(r-247)+e[t++]+108:r>=251&&r<=254?-256*(r-251)-e[t++]-108:((0,a.warn)('CFFParser_parseDict: "'+r+'" is a reserved command.'),NaN)))}return i}},{key:"parseIndex",value:function(e){var t,r,n=new S,a=this.bytes,i=a[e++]<<8|a[e++],o=[],s=e;if(0!==i){var c=a[e++],l=e+(i+1)*c-1;for(t=0,r=i+1;t<r;++t){for(var u=0,f=0;f<c;++f)u<<=8,u+=a[e++];o.push(l+u)}s=o[i]}for(t=0,r=o.length-1;t<r;++t){var h=o[t],d=o[t+1];n.add(a.subarray(h,d))}return{obj:n,endPos:s}}},{key:"parseNameIndex",value:function(e){for(var t=[],r=0,n=e.count;r<n;++r){var i=e.get(r);t.push((0,a.bytesToString)(i))}return t}},{key:"parseStringIndex",value:function(e){for(var t=new k,r=0,n=e.count;r<n;++r){var i=e.get(r);t.add((0,a.bytesToString)(i))}return t}},{key:"createDict",value:function(e,t,r){for(var n=new e(r),a=0,i=t.length;a<i;++a){var o=t[a],s=o[0],c=o[1];n.setByKey(s,c)}return n}},{key:"parseCharString",value:function(e,t,r,n){if(!t||e.callDepth>10)return!1;for(var i=e.stackSize,o=e.stack,s=t.length,c=0;c<s;){var l=t[c++],u=null;if(12===l){var f=t[c++];0===f?(t[c-2]=139,t[c-1]=22,i=0):u=v[f]}else if(28===l)o[i]=(t[c]<<24|t[c+1]<<16)>>16,c+=2,i++;else if(14===l){if(i>=4&&(i-=4,this.seacAnalysisEnabled))return e.seac=o.slice(i,i+4),!1;u=m[l]}else if(l>=32&&l<=246)o[i]=l-139,i++;else if(l>=247&&l<=254)o[i]=l<251?(l-247<<8)+t[c]+108:-(l-251<<8)-t[c]-108,c++,i++;else if(255===l)o[i]=(t[c]<<24|t[c+1]<<16|t[c+2]<<8|t[c+3])/65536,c+=4,i++;else if(19===l||20===l)e.hints+=i>>1,c+=e.hints+7>>3,i%=2,u=m[l];else{if(10===l||29===l){var h=void 0;if(!(h=10===l?r:n))return u=m[l],(0,a.warn)("Missing subrsIndex for "+u.id),!1;var d=32768;h.count<1240?d=107:h.count<33900&&(d=1131);var p=o[--i]+d;if(p<0||p>=h.count||isNaN(p))return u=m[l],(0,a.warn)("Out of bounds subrIndex for "+u.id),!1;if(e.stackSize=i,e.callDepth++,!this.parseCharString(e,h.get(p),r,n))return!1;e.callDepth--,i=e.stackSize;continue}if(11===l)return e.stackSize=i,!0;0===l&&c===t.length?(t[c-1]=14,u=m[14]):u=m[l]}if(u){if(u.stem&&(e.hints+=i>>1,3===l||23===l?e.hasVStems=!0:!e.hasVStems||1!==l&&18!==l||((0,a.warn)("CFF stem hints are in wrong order"),t[c-1]=1===l?3:23)),"min"in u&&!e.undefStack&&i<u.min)return(0,a.warn)("Not enough parameters for "+u.id+"; actual: "+i+", expected: "+u.min),0===i&&(t[c-1]=14,!0);e.firstStackClearing&&u.stackClearing&&(e.firstStackClearing=!1,(i-=u.min)>=2&&u.stem?i%=2:i>1&&(0,a.warn)("Found too many parameters for stack-clearing command"),i>0&&(e.width=o[i-1])),"stackDelta"in u?("stackFn"in u&&u.stackFn(o,i),i+=u.stackDelta):u.stackClearing?i=0:u.resetStack?(i=0,e.undefStack=!1):u.undefStack&&(i=0,e.undefStack=!0,e.firstStackClearing=!1)}}return e.stackSize=i,!0}},{key:"parseCharStrings",value:function(e){for(var t=e.charStrings,r=e.localSubrIndex,n=e.globalSubrIndex,i=e.fdSelect,o=e.fdArray,s=e.privateDict,c=[],l=[],u=t.count,f=0;f<u;f++){var h=t.get(f),d={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},p=!0,g=null,m=s;if(i&&o.length){var v=i.getFDIndex(f);-1===v&&((0,a.warn)("Glyph index is not in fd select."),p=!1),v>=o.length&&((0,a.warn)("Invalid fd index for glyph index."),p=!1),p&&(g=(m=o[v].privateDict).subrsIndex)}else r&&(g=r);if(p&&(p=this.parseCharString(d,h,g,n)),null!==d.width){var y=m.getByName("nominalWidthX");l[f]=y+d.width}else{var b=m.getByName("defaultWidthX");l[f]=b}null!==d.seac&&(c[f]=d.seac),p||t.set(f,new Uint8Array([14]))}return{charStrings:t,seacs:c,widths:l}}},{key:"emptyPrivateDictionary",value:function(e){var t=this.createDict(F,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t}},{key:"parsePrivateDict",value:function(e){if(e.hasName("Private")){var t=e.getByName("Private");if(Array.isArray(t)&&2===t.length){var r=t[0],n=t[1];if(0===r||n>=this.bytes.length)this.emptyPrivateDictionary(e);else{var a=n+r,i=this.bytes.subarray(n,a),o=this.parseDict(i),s=this.createDict(F,o,e.strings);if(e.privateDict=s,s.getByName("Subrs")){var c=s.getByName("Subrs"),l=n+c;if(0===c||l>=this.bytes.length)this.emptyPrivateDictionary(e);else{var u=this.parseIndex(l);s.subrsIndex=u.obj}}}}else e.removeByName("Private")}else this.emptyPrivateDictionary(e)}},{key:"parseCharsets",value:function(e,t,r,n){if(0===e)return new I(!0,T.ISO_ADOBE,i.ISOAdobeCharset);if(1===e)return new I(!0,T.EXPERT,i.ExpertCharset);if(2===e)return new I(!0,T.EXPERT_SUBSET,i.ExpertSubsetCharset);var o,s,c,l=this.bytes,u=e,f=l[e++],h=[n?0:".notdef"];switch(t-=1,f){case 0:for(c=0;c<t;c++)o=l[e++]<<8|l[e++],h.push(n?o:r.get(o));break;case 1:for(;h.length<=t;)for(o=l[e++]<<8|l[e++],s=l[e++],c=0;c<=s;c++)h.push(n?o++:r.get(o++));break;case 2:for(;h.length<=t;)for(o=l[e++]<<8|l[e++],s=l[e++]<<8|l[e++],c=0;c<=s;c++)h.push(n?o++:r.get(o++));break;default:throw new a.FormatError("Unknown charset format")}var d=e,p=l.subarray(u,d);return new I(!1,f,h,p)}},{key:"parseEncoding",value:function(e,t,r,n){var i,s,c,l=Object.create(null),u=this.bytes,f=!1,h=null;if(0===e||1===e){f=!0,i=e;var d=e?o.ExpertEncoding:o.StandardEncoding;for(s=0,c=n.length;s<c;s++){var p=d.indexOf(n[s]);-1!==p&&(l[p]=s)}}else{var g=e;switch(127&(i=u[e++])){case 0:var m=u[e++];for(s=1;s<=m;s++)l[u[e++]]=s;break;case 1:var v=u[e++],y=1;for(s=0;s<v;s++)for(var b=u[e++],w=u[e++],k=b;k<=b+w;k++)l[k]=y++;break;default:throw new a.FormatError("Unknown encoding format: ".concat(i," in CFF"))}var S=e;128&i&&(u[g]&=127,function(){var t=u[e++];for(s=0;s<t;s++){var a=u[e++],i=(u[e++]<<8)+(255&u[e++]);l[a]=n.indexOf(r.get(i))}}()),h=u.subarray(g,S)}return new P(f,i&=127,l,h)}},{key:"parseFDSelect",value:function(e,t){var r,n=this.bytes,i=n[e++],o=[];switch(i){case 0:for(r=0;r<t;++r){var s=n[e++];o.push(s)}break;case 3:var c=n[e++]<<8|n[e++];for(r=0;r<c;++r){var l=n[e++]<<8|n[e++];0===r&&0!==l&&((0,a.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),l=0);for(var u=n[e++],f=n[e]<<8|n[e+1],h=l;h<f;++h)o.push(u)}e+=2;break;default:throw new a.FormatError('parseFDSelect: Unknown format "'.concat(i,'".'))}if(o.length!==t)throw new a.FormatError("parseFDSelect: Invalid font data.");return new _(i,o)}}]),e}());t.CFFParser=y;var b=function(){function e(){h(this,e),this.header=null,this.names=[],this.topDict=null,this.strings=new k,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}return p(e,[{key:"duplicateFirstGlyph",value:function(){if(this.charStrings.count>=65535)(0,a.warn)("Not enough space in charstrings to duplicate first glyph.");else{var e=this.charStrings.get(0);this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}}},{key:"hasGlyphId",value:function(e){return!(e<0||e>=this.charStrings.count)&&this.charStrings.get(e).length>0}}]),e}();t.CFF=b;var w=function e(t,r,n,a){h(this,e),this.major=t,this.minor=r,this.hdrSize=n,this.offSize=a};t.CFFHeader=w;var k=function(){function e(){h(this,e),this.strings=[]}return p(e,[{key:"get",value:function(e){return e>=0&&e<=390?g[e]:e-391<=this.strings.length?this.strings[e-391]:g[0]}},{key:"getSID",value:function(e){var t=g.indexOf(e);return-1!==t?t:-1!==(t=this.strings.indexOf(e))?t+391:-1}},{key:"add",value:function(e){this.strings.push(e)}},{key:"count",get:function(){return this.strings.length}}]),e}();t.CFFStrings=k;var S=function(){function e(){h(this,e),this.objects=[],this.length=0}return p(e,[{key:"add",value:function(e){this.length+=e.length,this.objects.push(e)}},{key:"set",value:function(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t}},{key:"get",value:function(e){return this.objects[e]}},{key:"count",get:function(){return this.objects.length}}]),e}();t.CFFIndex=S;var x,A,O=function(){function e(t,r){h(this,e),this.keyToNameMap=t.keyToNameMap,this.nameToKeyMap=t.nameToKeyMap,this.defaults=t.defaults,this.types=t.types,this.opcodes=t.opcodes,this.order=t.order,this.strings=r,this.values=Object.create(null)}return p(e,[{key:"setByKey",value:function(e,t){if(!(e in this.keyToNameMap))return!1;var r=t.length;if(0===r)return!0;for(var n=0;n<r;n++)if(isNaN(t[n]))return(0,a.warn)('Invalid CFFDict value: "'+t+'" for key "'+e+'".'),!0;var i=this.types[e];return"num"!==i&&"sid"!==i&&"offset"!==i||(t=t[0]),this.values[e]=t,!0}},{key:"setByName",value:function(e,t){if(!(e in this.nameToKeyMap))throw new a.FormatError('Invalid dictionary name "'.concat(e,'"'));this.values[this.nameToKeyMap[e]]=t}},{key:"hasName",value:function(e){return this.nameToKeyMap[e]in this.values}},{key:"getByName",value:function(e){if(!(e in this.nameToKeyMap))throw new a.FormatError("Invalid dictionary name ".concat(e,'"'));var t=this.nameToKeyMap[e];return t in this.values?this.values[t]:this.defaults[t]}},{key:"removeByName",value:function(e){delete this.values[this.nameToKeyMap[e]]}}],[{key:"createTables",value:function(e){for(var t={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},r=0,n=e.length;r<n;++r){var a=e[r],i=Array.isArray(a[0])?(a[0][0]<<8)+a[0][1]:a[0];t.keyToNameMap[i]=a[1],t.nameToKeyMap[a[1]]=i,t.types[i]=a[2],t.defaults[i]=a[3],t.opcodes[i]=Array.isArray(a[0])?a[0]:[a[0]],t.order.push(i)}return t}}]),e}(),C=(x=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]],A=null,function(e){s(r,e);var t=l(r);function r(e){var n;return h(this,r),null===A&&(A=O.createTables(x)),(n=t.call(this,A,e)).privateDict=null,n}return r}(O));t.CFFTopDict=C;var F=function(){var e=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]],t=null;return function(r){s(a,r);var n=l(a);function a(r){var i;return h(this,a),null===t&&(t=O.createTables(e)),(i=n.call(this,t,r)).subrsIndex=null,i}return a}(O)}();t.CFFPrivateDict=F;var T={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},I=function e(t,r,n,a){h(this,e),this.predefined=t,this.format=r,this.charset=n,this.raw=a};t.CFFCharset=I;var P=function e(t,r,n,a){h(this,e),this.predefined=t,this.format=r,this.encoding=n,this.raw=a},_=function(){function e(t,r){h(this,e),this.format=t,this.fdSelect=r}return p(e,[{key:"getFDIndex",value:function(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}}]),e}();t.CFFFDSelect=_;var E=function(){function e(){h(this,e),this.offsets=Object.create(null)}return p(e,[{key:"isTracking",value:function(e){return e in this.offsets}},{key:"track",value:function(e,t){if(e in this.offsets)throw new a.FormatError("Already tracking location of ".concat(e));this.offsets[e]=t}},{key:"offset",value:function(e){for(var t in this.offsets)this.offsets[t]+=e}},{key:"setEntryLocation",value:function(e,t,r){if(!(e in this.offsets))throw new a.FormatError("Not tracking location of ".concat(e));for(var n=r.data,i=this.offsets[e],o=0,s=t.length;o<s;++o){var c=5*o+i,l=c+1,u=c+2,f=c+3,h=c+4;if(29!==n[c]||0!==n[l]||0!==n[u]||0!==n[f]||0!==n[h])throw new a.FormatError("writing to an offset that is not empty");var d=t[o];n[c]=29,n[l]=d>>24&255,n[u]=d>>16&255,n[f]=d>>8&255,n[h]=255&d}}}]),e}(),j=function(){function e(t){h(this,e),this.cff=t}return p(e,[{key:"compile",value:function(){var e=this.cff,t={data:[],length:0,add:function(e){this.data=this.data.concat(e),this.length=this.data.length}},r=this.compileHeader(e.header);t.add(r);var n=this.compileNameIndex(e.names);if(t.add(n),e.isCIDFont&&e.topDict.hasName("FontMatrix")){var i=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(var o=0,s=e.fdArray.length;o<s;o++){var c=e.fdArray[o],l=i.slice(0);c.hasName("FontMatrix")&&(l=a.Util.transform(l,c.getByName("FontMatrix"))),c.setByName("FontMatrix",l)}}var u=e.topDict.getByName("XUID");u&&u.length>16&&e.topDict.removeByName("XUID"),e.topDict.setByName("charset",0);var f=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.add(f.output);var h=f.trackers[0],d=this.compileStringIndex(e.strings.strings);t.add(d);var p=this.compileIndex(e.globalSubrIndex);if(t.add(p),e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)h.setEntryLocation("Encoding",[e.encoding.format],t);else{var g=this.compileEncoding(e.encoding);h.setEntryLocation("Encoding",[t.length],t),t.add(g)}var m=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);h.setEntryLocation("charset",[t.length],t),t.add(m);var v=this.compileCharStrings(e.charStrings);if(h.setEntryLocation("CharStrings",[t.length],t),t.add(v),e.isCIDFont){h.setEntryLocation("FDSelect",[t.length],t);var y=this.compileFDSelect(e.fdSelect);t.add(y),f=this.compileTopDicts(e.fdArray,t.length,!0),h.setEntryLocation("FDArray",[t.length],t),t.add(f.output);var b=f.trackers;this.compilePrivateDicts(e.fdArray,b,t)}return this.compilePrivateDicts([e.topDict],[h],t),t.add([0]),t.data}},{key:"encodeNumber",value:function(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}},{key:"encodeFloat",value:function(t){var r=t.toString(),n=e.EncodeFloatRegExp.exec(r);if(n){var a=parseFloat("1e"+((n[2]?+n[2]:0)+n[1].length));r=(Math.round(t*a)/a).toString()}var i,o,s="";for(i=0,o=r.length;i<o;++i){var c=r[i];s+="e"===c?"-"===r[++i]?"c":"b":"."===c?"a":"-"===c?"e":c}var l=[30];for(i=0,o=(s+=1&s.length?"f":"ff").length;i<o;i+=2)l.push(parseInt(s.substring(i,i+2),16));return l}},{key:"encodeInteger",value:function(e){return e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e]}},{key:"compileHeader",value:function(e){return[e.major,e.minor,4,e.offSize]}},{key:"compileNameIndex",value:function(e){for(var t=new S,r=0,n=e.length;r<n;++r){for(var i=e[r],o=Math.min(i.length,127),s=new Array(o),c=0;c<o;c++){var l=i[c];(l<"!"||l>"~"||"["===l||"]"===l||"("===l||")"===l||"{"===l||"}"===l||"<"===l||">"===l||"/"===l||"%"===l)&&(l="_"),s[c]=l}""===(s=s.join(""))&&(s="Bad_Font_Name"),t.add((0,a.stringToBytes)(s))}return this.compileIndex(t)}},{key:"compileTopDicts",value:function(e,t,r){for(var n=[],a=new S,i=0,o=e.length;i<o;++i){var s=e[i];r&&(s.removeByName("CIDFontVersion"),s.removeByName("CIDFontRevision"),s.removeByName("CIDFontType"),s.removeByName("CIDCount"),s.removeByName("UIDBase"));var c=new E,l=this.compileDict(s,c);n.push(c),a.add(l),c.offset(t)}return{trackers:n,output:a=this.compileIndex(a,n)}}},{key:"compilePrivateDicts",value:function(e,t,r){for(var n=0,i=e.length;n<i;++n){var o=e[n],s=o.privateDict;if(!s||!o.hasName("Private"))throw new a.FormatError("There must be a private dictionary.");var c=new E,l=this.compileDict(s,c),u=r.length;if(c.offset(u),l.length||(u=0),t[n].setEntryLocation("Private",[l.length,u],r),r.add(l),s.subrsIndex&&s.hasName("Subrs")){var f=this.compileIndex(s.subrsIndex);c.setEntryLocation("Subrs",[l.length],r),r.add(f)}}}},{key:"compileDict",value:function(e,t){for(var r=[],n=e.order,i=0;i<n.length;++i){var o=n[i];if(o in e.values){var s=e.values[o],c=e.types[o];if(Array.isArray(c)||(c=[c]),Array.isArray(s)||(s=[s]),0!==s.length){for(var l=0,u=c.length;l<u;++l){var f=c[l],h=s[l];switch(f){case"num":case"sid":r=r.concat(this.encodeNumber(h));break;case"offset":var d=e.keyToNameMap[o];t.isTracking(d)||t.track(d,r.length),r=r.concat([29,0,0,0,0]);break;case"array":case"delta":r=r.concat(this.encodeNumber(h));for(var p=1,g=s.length;p<g;++p)r=r.concat(this.encodeNumber(s[p]));break;default:throw new a.FormatError("Unknown data type of ".concat(f))}}r=r.concat(e.opcodes[o])}}}return r}},{key:"compileStringIndex",value:function(e){for(var t=new S,r=0,n=e.length;r<n;++r)t.add((0,a.stringToBytes)(e[r]));return this.compileIndex(t)}},{key:"compileGlobalSubrIndex",value:function(){var e=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(e))}},{key:"compileCharStrings",value:function(e){for(var t=new S,r=0;r<e.count;r++){var n=e.get(r);0!==n.length?t.add(n):t.add(new Uint8Array([139,14]))}return this.compileIndex(t)}},{key:"compileCharset",value:function(e,t,r,n){var i,o=t-1;if(n)i=new Uint8Array([2,0,0,o>>8&255,255&o]);else{(i=new Uint8Array(1+2*o))[0]=0;for(var s=0,c=e.charset.length,l=!1,u=1;u<i.length;u+=2){var f=0;if(s<c){var h=e.charset[s++];-1===(f=r.getSID(h))&&(f=0,l||(l=!0,(0,a.warn)("Couldn't find ".concat(h," in CFF strings"))))}i[u]=f>>8&255,i[u+1]=255&f}}return this.compileTypedArray(i)}},{key:"compileEncoding",value:function(e){return this.compileTypedArray(e.raw)}},{key:"compileFDSelect",value:function(e){var t,r,n=e.format;switch(n){case 0:for((t=new Uint8Array(1+e.fdSelect.length))[0]=n,r=0;r<e.fdSelect.length;r++)t[r+1]=e.fdSelect[r];break;case 3:var a=e.fdSelect[0],i=[n,0,0,0,0,a];for(r=1;r<e.fdSelect.length;r++){var o=e.fdSelect[r];o!==a&&(i.push(r>>8&255,255&r,o),a=o)}var s=(i.length-3)/3;i[1]=s>>8&255,i[2]=255&s,i.push(r>>8&255,255&r),t=new Uint8Array(i)}return this.compileTypedArray(t)}},{key:"compileTypedArray",value:function(e){for(var t=[],r=0,n=e.length;r<n;++r)t[r]=e[r];return t}},{key:"compileIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e.objects,n=r.length;if(0===n)return[0,0,0];var a,i,o=[n>>8&255,255&n],s=1;for(a=0;a<n;++a)s+=r[a].length;i=s<256?1:s<65536?2:s<16777216?3:4,o.push(i);var c=1;for(a=0;a<n+1;a++)1===i?o.push(255&c):2===i?o.push(c>>8&255,255&c):3===i?o.push(c>>16&255,c>>8&255,255&c):o.push(c>>>24&255,c>>16&255,c>>8&255,255&c),r[a]&&(c+=r[a].length);for(a=0;a<n;a++){t[a]&&t[a].offset(o.length);for(var l=0,u=r[a].length;l<u;l++)o.push(r[a][l])}return o}}],[{key:"EncodeFloatRegExp",get:function(){return(0,a.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}}]),e}();t.CFFCompiler=j},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ISOAdobeCharset=t.ExpertSubsetCharset=t.ExpertCharset=void 0,t.ISOAdobeCharset=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],t.ExpertCharset=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],t.ExpertSubsetCharset=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"]},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStandardFontName=function(e){var t=(0,a.normalizeFontName)(e);return i()[t]},t.getSymbolsFonts=t.getSupplementalGlyphMapForCalibri=t.getSupplementalGlyphMapForArialBlack=t.getStdFontMap=t.getSerifFonts=t.getNonStdFontMap=t.getGlyphMapForStandardFonts=t.getFontNameToFileMap=void 0;var n=r(122),a=r(131),i=(0,n.getLookupTableFactory)((function(e){e["Times-Roman"]="Times-Roman",e.Helvetica="Helvetica",e.Courier="Courier",e.Symbol="Symbol",e["Times-Bold"]="Times-Bold",e["Helvetica-Bold"]="Helvetica-Bold",e["Courier-Bold"]="Courier-Bold",e.ZapfDingbats="ZapfDingbats",e["Times-Italic"]="Times-Italic",e["Helvetica-Oblique"]="Helvetica-Oblique",e["Courier-Oblique"]="Courier-Oblique",e["Times-BoldItalic"]="Times-BoldItalic",e["Helvetica-BoldOblique"]="Helvetica-BoldOblique",e["Courier-BoldOblique"]="Courier-BoldOblique",e.ArialNarrow="Helvetica",e["ArialNarrow-Bold"]="Helvetica-Bold",e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",e["ArialNarrow-Italic"]="Helvetica-Oblique",e.ArialBlack="Helvetica",e["ArialBlack-Bold"]="Helvetica-Bold",e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",e["ArialBlack-Italic"]="Helvetica-Oblique",e["Arial-Black"]="Helvetica",e["Arial-Black-Bold"]="Helvetica-Bold",e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Black-Italic"]="Helvetica-Oblique",e.Arial="Helvetica",e["Arial-Bold"]="Helvetica-Bold",e["Arial-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Italic"]="Helvetica-Oblique",e["Arial-BoldItalicMT"]="Helvetica-BoldOblique",e["Arial-BoldMT"]="Helvetica-Bold",e["Arial-ItalicMT"]="Helvetica-Oblique",e.ArialMT="Helvetica",e["Courier-BoldItalic"]="Courier-BoldOblique",e["Courier-Italic"]="Courier-Oblique",e.CourierNew="Courier",e["CourierNew-Bold"]="Courier-Bold",e["CourierNew-BoldItalic"]="Courier-BoldOblique",e["CourierNew-Italic"]="Courier-Oblique",e["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",e["CourierNewPS-BoldMT"]="Courier-Bold",e["CourierNewPS-ItalicMT"]="Courier-Oblique",e.CourierNewPSMT="Courier",e["Helvetica-BoldItalic"]="Helvetica-BoldOblique",e["Helvetica-Italic"]="Helvetica-Oblique",e["Symbol-Bold"]="Symbol",e["Symbol-BoldItalic"]="Symbol",e["Symbol-Italic"]="Symbol",e.TimesNewRoman="Times-Roman",e["TimesNewRoman-Bold"]="Times-Bold",e["TimesNewRoman-BoldItalic"]="Times-BoldItalic",e["TimesNewRoman-Italic"]="Times-Italic",e.TimesNewRomanPS="Times-Roman",e["TimesNewRomanPS-Bold"]="Times-Bold",e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",e["TimesNewRomanPS-BoldMT"]="Times-Bold",e["TimesNewRomanPS-Italic"]="Times-Italic",e["TimesNewRomanPS-ItalicMT"]="Times-Italic",e.TimesNewRomanPSMT="Times-Roman",e["TimesNewRomanPSMT-Bold"]="Times-Bold",e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPSMT-Italic"]="Times-Italic"}));t.getStdFontMap=i;var o=(0,n.getLookupTableFactory)((function(e){e.Courier="FoxitFixed.pfb",e["Courier-Bold"]="FoxitFixedBold.pfb",e["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",e["Courier-Oblique"]="FoxitFixedItalic.pfb",e.Helvetica="FoxitSans.pfb",e["Helvetica-Bold"]="FoxitSansBold.pfb",e["Helvetica-BoldOblique"]="FoxitSansBoldItalic.pfb",e["Helvetica-Oblique"]="FoxitSansItalic.pfb",e["Times-Roman"]="FoxitSerif.pfb",e["Times-Bold"]="FoxitSerifBold.pfb",e["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",e["Times-Italic"]="FoxitSerifItalic.pfb",e.Symbol="FoxitSymbol.pfb",e.ZapfDingbats="FoxitDingbats.pfb",e["LiberationSans-Regular"]="LiberationSans-Regular.ttf",e["LiberationSans-Bold"]="LiberationSans-Bold.ttf",e["LiberationSans-Italic"]="LiberationSans-Italic.ttf",e["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"}));t.getFontNameToFileMap=o;var s=(0,n.getLookupTableFactory)((function(e){e.Calibri="Helvetica",e["Calibri-Bold"]="Helvetica-Bold",e["Calibri-BoldItalic"]="Helvetica-BoldOblique",e["Calibri-Italic"]="Helvetica-Oblique",e.CenturyGothic="Helvetica",e["CenturyGothic-Bold"]="Helvetica-Bold",e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",e["CenturyGothic-Italic"]="Helvetica-Oblique",e.ComicSansMS="Comic Sans MS",e["ComicSansMS-Bold"]="Comic Sans MS-Bold",e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",e["ComicSansMS-Italic"]="Comic Sans MS-Italic",e["ItcSymbol-Bold"]="Helvetica-Bold",e["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",e["ItcSymbol-Book"]="Helvetica",e["ItcSymbol-BookItalic"]="Helvetica-Oblique",e["ItcSymbol-Medium"]="Helvetica",e["ItcSymbol-MediumItalic"]="Helvetica-Oblique",e.LucidaConsole="Courier",e["LucidaConsole-Bold"]="Courier-Bold",e["LucidaConsole-BoldItalic"]="Courier-BoldOblique",e["LucidaConsole-Italic"]="Courier-Oblique",e["LucidaSans-Demi"]="Helvetica-Bold",e["MS-Gothic"]="MS Gothic",e["MS-Gothic-Bold"]="MS Gothic-Bold",e["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",e["MS-Gothic-Italic"]="MS Gothic-Italic",e["MS-Mincho"]="MS Mincho",e["MS-Mincho-Bold"]="MS Mincho-Bold",e["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",e["MS-Mincho-Italic"]="MS Mincho-Italic",e["MS-PGothic"]="MS PGothic",e["MS-PGothic-Bold"]="MS PGothic-Bold",e["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",e["MS-PGothic-Italic"]="MS PGothic-Italic",e["MS-PMincho"]="MS PMincho",e["MS-PMincho-Bold"]="MS PMincho-Bold",e["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",e["MS-PMincho-Italic"]="MS PMincho-Italic",e.NuptialScript="Times-Italic",e.SegoeUISymbol="Helvetica",e.Wingdings="ZapfDingbats",e["Wingdings-Regular"]="ZapfDingbats"}));t.getNonStdFontMap=s;var c=(0,n.getLookupTableFactory)((function(e){e["Adobe Jenson"]=!0,e["Adobe Text"]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e["American Typewriter"]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e["Bembo Schoolbook"]=!0,e.Benguiat=!0,e["Berkeley Old Style"]=!0,e["Bernhard Modern"]=!0,e["Berthold City"]=!0,e.Bodoni=!0,e["Bauer Bodoni"]=!0,e["Book Antiqua"]=!0,e.Bookman=!0,e["Bordeaux Roman"]=!0,e["Californian FB"]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0,e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e["Century Old Style"]=!0,e["Century Schoolbook"]=!0,e.Chaparral=!0,e["Charis SIL"]=!0,e.Cheltenham=!0,e["Cholla Slab"]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e["Computer Modern"]=!0,e["Concrete Roman"]=!0,e.Constantia=!0,e["Cooper Black"]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e["FF Scala"]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e["Friz Quadrata"]=!0,e.Garamond=!0,e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e["Goudy Old Style"]=!0,e["Goudy Schoolbook"]=!0,e["Goudy Pro Font"]=!0,e.Granjon=!0,e["Guardian Egyptian"]=!0,e.Heather=!0,e.Hercules=!0,e["High Tower Text"]=!0,e.Hiroshige=!0,e["Hoefler Text"]=!0,e["Humana Serif"]=!0,e.Imprint=!0,e["Ionic No. 5"]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e.LiberationSerif=!0,e["Liberation Serif"]=!0,e["Linux Libertine"]=!0,e.Literaturnaya=!0,e.Lucida=!0,e["Lucida Bright"]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0,e.Modern=!0,e["Mona Lisa"]=!0,e["Mrs Eaves"]=!0,e["MS Serif"]=!0,e["Museo Slab"]=!0,e["New York"]=!0,e["Nimbus Roman"]=!0,e["NPS Rawlinson Roadway"]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e["Plantin Schoolbook"]=!0,e.Playbill=!0,e["Poor Richard"]=!0,e["Rawlinson Roadway"]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e["Rotis Serif"]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e["Stone Informal"]=!0,e["Stone Serif"]=!0,e.Sylfaen=!0,e.Times=!0,e.Trajan=!0,e["Trinité"]=!0,e["Trump Mediaeval"]=!0,e.Utopia=!0,e["Vale Type"]=!0,e["Bitstream Vera"]=!0,e["Vera Serif"]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e["Wide Latin"]=!0,e.Windsor=!0,e.XITS=!0}));t.getSerifFonts=c;var l=(0,n.getLookupTableFactory)((function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0}));t.getSymbolsFonts=l;var u=(0,n.getLookupTableFactory)((function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60,e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90,e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120,e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243,e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181,e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[200]=193,e[203]=205,e[210]=218,e[223]=711,e[224]=321,e[225]=322,e[226]=352,e[227]=353,e[228]=381,e[229]=382,e[233]=221,e[234]=253,e[252]=263,e[253]=268,e[254]=269,e[258]=258,e[260]=260,e[261]=261,e[265]=280,e[266]=281,e[267]=282,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[283]=344,e[284]=345,e[285]=346,e[286]=347,e[292]=367,e[295]=377,e[296]=378,e[298]=380,e[305]=963,e[306]=964,e[307]=966,e[308]=8215,e[309]=8252,e[310]=8319,e[311]=8359,e[312]=8592,e[313]=8593,e[337]=9552,e[493]=1039,e[494]=1040,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342,e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861,e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498,e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554,e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611,e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891,e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377}));t.getGlyphMapForStandardFonts=u;var f=(0,n.getLookupTableFactory)((function(e){e[227]=322,e[264]=261,e[291]=346}));t.getSupplementalGlyphMapForArialBlack=f;var h=(0,n.getLookupTableFactory)((function(e){e[1]=32,e[4]=65,e[6]=193,e[17]=66,e[18]=67,e[21]=268,e[24]=68,e[28]=69,e[30]=201,e[32]=282,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[49]=205,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[87]=80,e[89]=81,e[90]=82,e[92]=344,e[94]=83,e[97]=352,e[100]=84,e[104]=85,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[124]=221,e[127]=90,e[129]=381,e[258]=97,e[260]=225,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[275]=269,e[282]=100,e[286]=101,e[288]=233,e[290]=283,e[295]=281,e[296]=102,e[336]=103,e[346]=104,e[349]=105,e[351]=237,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[383]=243,e[393]=112,e[395]=113,e[396]=114,e[398]=345,e[400]=115,e[401]=347,e[403]=353,e[410]=116,e[437]=117,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[457]=253,e[460]=122,e[462]=382,e[463]=380,e[853]=44,e[855]=58,e[856]=46,e[876]=47,e[878]=45,e[882]=45,e[894]=40,e[895]=41,e[896]=91,e[897]=93,e[923]=64,e[1004]=48,e[1005]=49,e[1006]=50,e[1007]=51,e[1008]=52,e[1009]=53,e[1010]=54,e[1011]=55,e[1012]=56,e[1013]=57,e[1081]=37,e[1085]=43,e[1086]=45}));t.getSupplementalGlyphMapForCalibri=h},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToUnicodeMap=t.IdentityToUnicodeMap=void 0;var n=r(4);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a(this,e),this._map=t}return o(e,[{key:"length",get:function(){return this._map.length}},{key:"forEach",value:function(e){for(var t in this._map)e(t,this._map[t].charCodeAt(0))}},{key:"has",value:function(e){return void 0!==this._map[e]}},{key:"get",value:function(e){return this._map[e]}},{key:"charCodeOf",value:function(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(var r in t)if(t[r]===e)return 0|r;return-1}},{key:"amend",value:function(e){for(var t in e)this._map[t]=e[t]}}]),e}();t.ToUnicodeMap=s;var c=function(){function e(t,r){a(this,e),this.firstChar=t,this.lastChar=r}return o(e,[{key:"length",get:function(){return this.lastChar+1-this.firstChar}},{key:"forEach",value:function(e){for(var t=this.firstChar,r=this.lastChar;t<=r;t++)e(t,t)}},{key:"has",value:function(e){return this.firstChar<=e&&e<=this.lastChar}},{key:"get",value:function(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}},{key:"charCodeOf",value:function(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}},{key:"amend",value:function(e){(0,n.unreachable)("Should not call amend()")}}]),e}();t.IdentityToUnicodeMap=c},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CFFFont=void 0;var n=r(158),a=r(131),i=r(4);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.properties=r;var o=new n.CFFParser(t,r,a.SEAC_ANALYSIS_ENABLED);this.cff=o.parse(),this.cff.duplicateFirstGlyph();var s=new n.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=s.compile()}catch(e){(0,i.warn)("Failed to compile font "+r.loadedName),this.data=t}this._createBuiltInEncoding()}var t,r;return t=e,(r=[{key:"numGlyphs",get:function(){return this.cff.charStrings.count}},{key:"getCharset",value:function(){return this.cff.charset.charset}},{key:"getGlyphMapping",value:function(){var e,t,r=this.cff,n=this.properties,i=r.charset.charset;if(n.composite){if(e=Object.create(null),r.isCIDFont)for(t=0;t<i.length;t++){var o=i[t];e[n.cMap.charCodeOf(o)]=t}else for(t=0;t<r.charStrings.count;t++)e[n.cMap.charCodeOf(t)]=t;return e}var s=r.encoding?r.encoding.encoding:null;return n.isInternalFont&&(s=n.defaultEncoding),(0,a.type1FontGlyphMapping)(n,s,i)}},{key:"hasGlyphId",value:function(e){return this.cff.hasGlyphId(e)}},{key:"_createBuiltInEncoding",value:function(){var e=this.cff,t=e.charset,r=e.encoding;if(t&&r){var n=t.charset,a=r.encoding,i=[];for(var o in a){var s=a[o];if(s>=0){var c=n[s];c&&(i[o]=c)}}i.length>0&&(this.properties.builtInEncoding=i)}}}])&&o(t.prototype,r),e}();t.CFFFont=s},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0;var a=r(4),i=r(158),o=r(133),s=r(132),c=r(123);function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=d(e);if(t){var a=d(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}function v(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function y(e,t){return e[t]<<8|e[t+1]}function b(e){var t=e.length,r=32768;return t<1240?r=107:t<33900&&(r=1131),r}function w(e,t,r){var n,i,o,s=1===y(e,t+2)?v(e,t+8):v(e,t+16),c=y(e,t+s);if(4===c){y(e,t+s+2);var l=y(e,t+s+6)>>1;for(i=t+s+14,n=[],o=0;o<l;o++,i+=2)n[o]={end:y(e,i)};for(i+=2,o=0;o<l;o++,i+=2)n[o].start=y(e,i);for(o=0;o<l;o++,i+=2)n[o].idDelta=y(e,i);for(o=0;o<l;o++,i+=2){var u=y(e,i);if(0!==u){n[o].ids=[];for(var f=0,h=n[o].end-n[o].start+1;f<h;f++)n[o].ids[f]=y(e,i+u),u+=2}}return n}if(12===c){v(e,t+s+4);var d=v(e,t+s+12);for(i=t+s+16,n=[],o=0;o<d;o++)n.push({start:v(e,i),end:v(e,i+4),idDelta:v(e,i+8)-v(e,i)}),i+=12;return n}throw new a.FormatError("unsupported cmap: ".concat(c))}function k(e,t,r,n){var a=new i.CFFParser(new c.Stream(e,t,r-t),{},n).parse();return{glyphs:a.charStrings.objects,subrs:a.topDict.privateDict&&a.topDict.privateDict.subrsIndex&&a.topDict.privateDict.subrsIndex.objects,gsubrs:a.globalSubrIndex&&a.globalSubrIndex.objects,isCFFCIDFont:a.isCIDFont,fdSelect:a.fdSelect,fdArray:a.fdArray}}function S(e,t){for(var r=t.codePointAt(0),n=0,a=0,i=e.length-1;a<i;){var o=a+i+1>>1;r<e[o].start?i=o-1:a=o}return e[a].start<=r&&r<=e[a].end&&(n=e[a].idDelta+(e[a].ids?e[a].ids[r-e[a].start]:r)&65535),{charCode:r,glyphId:n}}function x(e,t,r){function n(e,r){t.push({cmd:"moveTo",args:[e,r]})}function a(e,r){t.push({cmd:"lineTo",args:[e,r]})}function i(e,r,n,a){t.push({cmd:"quadraticCurveTo",args:[e,r,n,a]})}var o,s=0,c=(e[s]<<24|e[s+1]<<16)>>16,l=0,u=0;if(s+=10,c<0)do{o=e[s]<<8|e[s+1];var f=e[s+2]<<8|e[s+3];s+=4;var h=void 0,d=void 0;1&o?(h=(e[s]<<24|e[s+1]<<16)>>16,d=(e[s+2]<<24|e[s+3]<<16)>>16,s+=4):(h=e[s++],d=e[s++]),2&o?(l=h,u=d):(l=0,u=0);var p=1,g=1,m=0,v=0;8&o?(p=g=(e[s]<<24|e[s+1]<<16)/1073741824,s+=2):64&o?(p=(e[s]<<24|e[s+1]<<16)/1073741824,g=(e[s+2]<<24|e[s+3]<<16)/1073741824,s+=4):128&o&&(p=(e[s]<<24|e[s+1]<<16)/1073741824,m=(e[s+2]<<24|e[s+3]<<16)/1073741824,v=(e[s+4]<<24|e[s+5]<<16)/1073741824,g=(e[s+6]<<24|e[s+7]<<16)/1073741824,s+=8);var y=r.glyphs[f];y&&(t.push({cmd:"save"},{cmd:"transform",args:[p,m,v,g,l,u]}),x(y,t,r),t.push({cmd:"restore"}))}while(32&o);else{var b,w,k=[];for(b=0;b<c;b++)k.push(e[s]<<8|e[s+1]),s+=2;s+=2+(e[s]<<8|e[s+1]);for(var S=k[k.length-1]+1,A=[];A.length<S;){var O=1;for(8&(o=e[s++])&&(O+=e[s++]);O-- >0;)A.push({flags:o})}for(b=0;b<S;b++){switch(18&A[b].flags){case 0:l+=(e[s]<<24|e[s+1]<<16)>>16,s+=2;break;case 2:l-=e[s++];break;case 18:l+=e[s++]}A[b].x=l}for(b=0;b<S;b++){switch(36&A[b].flags){case 0:u+=(e[s]<<24|e[s+1]<<16)>>16,s+=2;break;case 4:u-=e[s++];break;case 36:u+=e[s++]}A[b].y=u}var C=0;for(s=0;s<c;s++){var F=k[s],T=A.slice(C,F+1);if(1&T[0].flags)T.push(T[0]);else if(1&T[T.length-1].flags)T.unshift(T[T.length-1]);else{var I={flags:1,x:(T[0].x+T[T.length-1].x)/2,y:(T[0].y+T[T.length-1].y)/2};T.unshift(I),T.push(I)}for(n(T[0].x,T[0].y),b=1,w=T.length;b<w;b++)1&T[b].flags?a(T[b].x,T[b].y):1&T[b+1].flags?(i(T[b].x,T[b].y,T[b+1].x,T[b+1].y),b++):i(T[b].x,T[b].y,(T[b].x+T[b+1].x)/2,(T[b].y+T[b+1].y)/2);C=F+1}}}function A(e,t,r,n){function i(e,r){t.push({cmd:"moveTo",args:[e,r]})}function o(e,r){t.push({cmd:"lineTo",args:[e,r]})}function c(e,r,n,a,i,o){t.push({cmd:"bezierCurveTo",args:[e,r,n,a,i,o]})}var l=[],u=0,f=0,h=0;!function e(d){for(var p=0;p<d.length;){var g=!1,m=d[p++],v=void 0,y=void 0,w=void 0,k=void 0,x=void 0,O=void 0,C=void 0,F=void 0;switch(m){case 1:case 3:case 18:case 23:h+=l.length>>1,g=!0;break;case 4:f+=l.pop(),i(u,f),g=!0;break;case 5:for(;l.length>0;)u+=l.shift(),f+=l.shift(),o(u,f);break;case 6:for(;l.length>0&&(o(u+=l.shift(),f),0!==l.length);)f+=l.shift(),o(u,f);break;case 7:for(;l.length>0&&(f+=l.shift(),o(u,f),0!==l.length);)o(u+=l.shift(),f);break;case 8:for(;l.length>0;)v=u+l.shift(),w=f+l.shift(),y=v+l.shift(),k=w+l.shift(),u=y+l.shift(),f=k+l.shift(),c(v,w,y,k,u,f);break;case 10:if(C=l.pop(),F=null,r.isCFFCIDFont){var T=r.fdSelect.getFDIndex(n);if(T>=0&&T<r.fdArray.length){var I=r.fdArray[T],P=void 0;I.privateDict&&I.privateDict.subrsIndex&&(P=I.privateDict.subrsIndex.objects),P&&(F=P[C+=b(P)])}else(0,a.warn)("Invalid fd index for glyph index.")}else F=r.subrs[C+r.subrsBias];F&&e(F);break;case 11:return;case 12:switch(m=d[p++]){case 34:y=(v=u+l.shift())+l.shift(),x=f+l.shift(),u=y+l.shift(),c(v,f,y,x,u,x),y=(v=u+l.shift())+l.shift(),u=y+l.shift(),c(v,x,y,f,u,f);break;case 35:v=u+l.shift(),w=f+l.shift(),y=v+l.shift(),k=w+l.shift(),u=y+l.shift(),f=k+l.shift(),c(v,w,y,k,u,f),v=u+l.shift(),w=f+l.shift(),y=v+l.shift(),k=w+l.shift(),u=y+l.shift(),f=k+l.shift(),c(v,w,y,k,u,f),l.pop();break;case 36:c(v=u+l.shift(),x=f+l.shift(),y=v+l.shift(),O=x+l.shift(),u=y+l.shift(),O),c(v=u+l.shift(),O,y=v+l.shift(),O+l.shift(),u=y+l.shift(),f);break;case 37:var _=u,E=f;v=u+l.shift(),w=f+l.shift(),y=v+l.shift(),k=w+l.shift(),u=y+l.shift(),f=k+l.shift(),c(v,w,y,k,u,f),v=u+l.shift(),w=f+l.shift(),y=v+l.shift(),k=w+l.shift(),u=y,f=k,Math.abs(u-_)>Math.abs(f-E)?u+=l.shift():f+=l.shift(),c(v,w,y,k,u,f);break;default:throw new a.FormatError("unknown operator: 12 ".concat(m))}break;case 14:if(l.length>=4){var j=l.pop(),M=l.pop();f=l.pop(),u=l.pop(),t.push({cmd:"save"},{cmd:"translate",args:[u,f]});var R=S(r.cmap,String.fromCharCode(r.glyphNameMap[s.StandardEncoding[j]]));A(r.glyphs[R.glyphId],t,r,R.glyphId),t.push({cmd:"restore"}),R=S(r.cmap,String.fromCharCode(r.glyphNameMap[s.StandardEncoding[M]])),A(r.glyphs[R.glyphId],t,r,R.glyphId)}return;case 19:case 20:p+=(h+=l.length>>1)+7>>3,g=!0;break;case 21:f+=l.pop(),i(u+=l.pop(),f),g=!0;break;case 22:i(u+=l.pop(),f),g=!0;break;case 24:for(;l.length>2;)v=u+l.shift(),w=f+l.shift(),y=v+l.shift(),k=w+l.shift(),u=y+l.shift(),f=k+l.shift(),c(v,w,y,k,u,f);u+=l.shift(),f+=l.shift(),o(u,f);break;case 25:for(;l.length>6;)u+=l.shift(),f+=l.shift(),o(u,f);v=u+l.shift(),w=f+l.shift(),y=v+l.shift(),k=w+l.shift(),u=y+l.shift(),f=k+l.shift(),c(v,w,y,k,u,f);break;case 26:for(l.length%2&&(u+=l.shift());l.length>0;)v=u,w=f+l.shift(),y=v+l.shift(),k=w+l.shift(),u=y,f=k+l.shift(),c(v,w,y,k,u,f);break;case 27:for(l.length%2&&(f+=l.shift());l.length>0;)c(v=u+l.shift(),w=f,y=v+l.shift(),k=w+l.shift(),u=y+l.shift(),f=k);break;case 28:l.push((d[p]<<24|d[p+1]<<16)>>16),p+=2;break;case 29:C=l.pop()+r.gsubrsBias,(F=r.gsubrs[C])&&e(F);break;case 30:for(;l.length>0&&(v=u,w=f+l.shift(),y=v+l.shift(),k=w+l.shift(),u=y+l.shift(),f=k+(1===l.length?l.shift():0),c(v,w,y,k,u,f),0!==l.length);)v=u+l.shift(),w=f,y=v+l.shift(),k=w+l.shift(),f=k+l.shift(),c(v,w,y,k,u=y+(1===l.length?l.shift():0),f);break;case 31:for(;l.length>0&&(v=u+l.shift(),w=f,y=v+l.shift(),k=w+l.shift(),f=k+l.shift(),c(v,w,y,k,u=y+(1===l.length?l.shift():0),f),0!==l.length);)v=u,w=f+l.shift(),y=v+l.shift(),k=w+l.shift(),u=y+l.shift(),f=k+(1===l.length?l.shift():0),c(v,w,y,k,u,f);break;default:if(m<32)throw new a.FormatError("unknown operator: ".concat(m));m<247?l.push(m-139):m<251?l.push(256*(m-247)+d[p++]+108):m<255?l.push(256*-(m-251)-d[p++]-108):(l.push((d[p]<<24|d[p+1]<<16|d[p+2]<<8|d[p+3])/65536),p+=4)}g&&(l.length=0)}}(e)}var O=[],C=function(){function e(t){p(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=t,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}return m(e,[{key:"getPathJs",value:function(e){var t=S(this.cmap,e),r=t.charCode,n=t.glyphId,a=this.compiledGlyphs[n];if(!a)try{a=this.compileGlyph(this.glyphs[n],n),this.compiledGlyphs[n]=a}catch(e){throw this.compiledGlyphs[n]=O,void 0===this.compiledCharCodeToGlyphId[r]&&(this.compiledCharCodeToGlyphId[r]=n),e}return void 0===this.compiledCharCodeToGlyphId[r]&&(this.compiledCharCodeToGlyphId[r]=n),a}},{key:"compileGlyph",value:function(e,t){if(!e||0===e.length||14===e[0])return O;var r=this.fontMatrix;if(this.isCFFCIDFont){var n=this.fdSelect.getFDIndex(t);n>=0&&n<this.fdArray.length?r=this.fdArray[n].getByName("FontMatrix")||a.FONT_IDENTITY_MATRIX:(0,a.warn)("Invalid fd index for glyph index.")}var i=[{cmd:"save"},{cmd:"transform",args:r.slice()},{cmd:"scale",args:["size","-size"]}];return this.compileGlyphImpl(e,i,t),i.push({cmd:"restore"}),i}},{key:"compileGlyphImpl",value:function(){(0,a.unreachable)("Children classes should implement this.")}},{key:"hasBuiltPath",value:function(e){var t=S(this.cmap,e),r=t.charCode,n=t.glyphId;return void 0!==this.compiledGlyphs[n]&&void 0!==this.compiledCharCodeToGlyphId[r]}}]),e}(),F=function(e){l(r,e);var t=f(r);function r(e,n,a){var i;return p(this,r),(i=t.call(this,a||[488e-6,0,0,488e-6,0,0])).glyphs=e,i.cmap=n,i}return m(r,[{key:"compileGlyphImpl",value:function(e,t){x(e,t,this)}}]),r}(C),T=function(e){l(r,e);var t=f(r);function r(e,n,a,i){var s;return p(this,r),(s=t.call(this,a||[.001,0,0,.001,0,0])).glyphs=e.glyphs,s.gsubrs=e.gsubrs||[],s.subrs=e.subrs||[],s.cmap=n,s.glyphNameMap=i||(0,o.getGlyphsUnicode)(),s.gsubrsBias=b(s.gsubrs),s.subrsBias=b(s.subrs),s.isCFFCIDFont=e.isCFFCIDFont,s.fdSelect=e.fdSelect,s.fdArray=e.fdArray,s}return m(r,[{key:"compileGlyphImpl",value:function(e,t,r){A(e,t,this,r)}}]),r}(C),I=function(){function e(){p(this,e)}return m(e,null,[{key:"create",value:function(e,t){for(var r,n,i,o,s,c,l=new Uint8Array(e.data),u=y(l,4),f=0,h=12;f<u;f++,h+=16){var d=(0,a.bytesToString)(l.subarray(h,h+4)),p=v(l,h+8),g=v(l,h+12);switch(d){case"cmap":r=w(l,p);break;case"glyf":n=l.subarray(p,p+g);break;case"loca":i=l.subarray(p,p+g);break;case"head":c=y(l,p+18),s=y(l,p+50);break;case"CFF ":o=k(l,p,p+g,t)}}if(n){var m=c?[1/c,0,0,1/c,0,0]:e.fontMatrix;return new F(function(e,t,r){var n,a;r?(n=4,a=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}):(n=2,a=function(e,t){return e[t]<<9|e[t+1]<<1});for(var i=[],o=a(t,0),s=n;s<t.length;s+=n){var c=a(t,s);i.push(e.subarray(o,c)),o=c}return i}(n,i,s),r,m)}return new T(o,r,e.fontMatrix,e.glyphNameMap)}}]),e}();t.FontRendererFactory=I},(e,t)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw o}}}}function a(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.GlyfTable=void 0;var l=function(){function e(t){var r=t.glyfTable,n=t.isGlyphLocationsLong,a=t.locaTable,i=t.numGlyphs;o(this,e),this.glyphs=[];for(var s=new DataView(a.buffer,a.byteOffset,a.byteLength),c=new DataView(r.buffer,r.byteOffset,r.byteLength),l=n?4:2,f=n?s.getUint32(0):2*s.getUint16(0),h=0,d=0;d<i;d++){h+=l;var p=n?s.getUint32(h):2*s.getUint16(h);if(p!==f){var g=u.parse(f,c);this.glyphs.push(g),f=p}else this.glyphs.push(new u({}))}}return c(e,[{key:"getSize",value:function(){return this.glyphs.reduce((function(e,t){return e+(t.getSize()+3&-4)}),0)}},{key:"write",value:function(){var e=this.getSize(),t=new DataView(new ArrayBuffer(e)),r=e>131070,a=r?4:2,i=new DataView(new ArrayBuffer((this.glyphs.length+1)*a));r?i.setUint32(0,0):i.setUint16(0,0);var o,s=0,c=0,l=n(this.glyphs);try{for(l.s();!(o=l.n()).done;)s=(s+=o.value.write(s,t))+3&-4,c+=a,r?i.setUint32(c,s):i.setUint16(c,s>>1)}catch(e){l.e(e)}finally{l.f()}return{isLocationLong:r,loca:new Uint8Array(i.buffer),glyf:new Uint8Array(t.buffer)}}},{key:"scale",value:function(e){for(var t=0,r=this.glyphs.length;t<r;t++)this.glyphs[t].scale(e[t])}}]),e}();t.GlyfTable=l;var u=function(){function e(t){var r=t.header,n=void 0===r?null:r,a=t.simple,i=void 0===a?null:a,s=t.composites,c=void 0===s?null:s;o(this,e),this.header=n,this.simple=i,this.composites=c}return c(e,[{key:"getSize",value:function(){if(!this.header)return 0;var e=this.simple?this.simple.getSize():this.composites.reduce((function(e,t){return e+t.getSize()}),0);return this.header.getSize()+e}},{key:"write",value:function(e,t){if(!this.header)return 0;var r=e;if(e+=this.header.write(e,t),this.simple)e+=this.simple.write(e,t);else{var a,i=n(this.composites);try{for(i.s();!(a=i.n()).done;)e+=a.value.write(e,t)}catch(e){i.e(e)}finally{i.f()}}return e-r}},{key:"scale",value:function(e){if(this.header){var t=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(t,e),this.simple)this.simple.scale(t,e);else{var r,a=n(this.composites);try{for(a.s();!(r=a.n()).done;)r.value.scale(t,e)}catch(e){a.e(e)}finally{a.f()}}}}}],[{key:"parse",value:function(t,n){var a=r(f.parse(t,n),2),i=a[0],o=a[1];if(t+=i,o.numberOfContours<0){for(var s=[];;){var c=r(p.parse(t,n),2),l=c[0],u=c[1];if(t+=l,s.push(u),!(32&u.flags))break}return new e({header:o,composites:s})}return new e({header:o,simple:d.parse(t,n,o.numberOfContours)})}}]),e}(),f=function(){function e(t){var r=t.numberOfContours,n=t.xMin,a=t.yMin,i=t.xMax,s=t.yMax;o(this,e),this.numberOfContours=r,this.xMin=n,this.yMin=a,this.xMax=i,this.yMax=s}return c(e,[{key:"getSize",value:function(){return 10}},{key:"write",value:function(e,t){return t.setInt16(e,this.numberOfContours),t.setInt16(e+2,this.xMin),t.setInt16(e+4,this.yMin),t.setInt16(e+6,this.xMax),t.setInt16(e+8,this.yMax),10}},{key:"scale",value:function(e,t){this.xMin=Math.round(e+(this.xMin-e)*t),this.xMax=Math.round(e+(this.xMax-e)*t)}}],[{key:"parse",value:function(t,r){return[10,new e({numberOfContours:r.getInt16(t),xMin:r.getInt16(t+2),yMin:r.getInt16(t+4),xMax:r.getInt16(t+6),yMax:r.getInt16(t+8)})]}}]),e}(),h=function e(t){var r=t.flags,n=t.xCoordinates,a=t.yCoordinates;o(this,e),this.xCoordinates=n,this.yCoordinates=a,this.flags=r},d=function(){function e(t){var r=t.contours,n=t.instructions;o(this,e),this.contours=r,this.instructions=n}return c(e,[{key:"getSize",value:function(){var e,t=2*this.contours.length+2+this.instructions.length,r=0,a=0,i=n(this.contours);try{for(i.s();!(e=i.n()).done;){var o=e.value;t+=o.flags.length;for(var s=0,c=o.xCoordinates.length;s<c;s++){var l=o.xCoordinates[s],u=o.yCoordinates[s],f=Math.abs(l-r);f>255?t+=2:f>0&&(t+=1),r=l,(f=Math.abs(u-a))>255?t+=2:f>0&&(t+=1),a=u}}}catch(e){i.e(e)}finally{i.f()}return t}},{key:"write",value:function(e,t){var r,a=e,i=[],o=[],s=[],c=0,l=0,u=n(this.contours);try{for(u.s();!(r=u.n()).done;){for(var f=r.value,h=0,d=f.xCoordinates.length;h<d;h++){var p=f.flags[h],g=f.xCoordinates[h],m=g-c;if(0===m)p|=16,i.push(0);else{var v=Math.abs(m);v<=255?(p|=m>=0?18:2,i.push(v)):i.push(m)}c=g;var y=f.yCoordinates[h];if(0==(m=y-l))p|=32,o.push(0);else{var b=Math.abs(m);b<=255?(p|=m>=0?36:4,o.push(b)):o.push(m)}l=y,s.push(p)}t.setUint16(e,i.length-1),e+=2}}catch(e){u.e(e)}finally{u.f()}t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length);for(var w=0,k=s;w<k.length;w++){var S=k[w];t.setUint8(e++,S)}for(var x=0,A=i.length;x<A;x++){var O=i[x],C=s[x];2&C?t.setUint8(e++,O):16&C||(t.setInt16(e,O),e+=2)}for(var F=0,T=o.length;F<T;F++){var I=o[F],P=s[F];4&P?t.setUint8(e++,I):32&P||(t.setInt16(e,I),e+=2)}return e-a}},{key:"scale",value:function(e,t){var r,a=n(this.contours);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(0!==i.xCoordinates.length)for(var o=0,s=i.xCoordinates.length;o<s;o++)i.xCoordinates[o]=Math.round(e+(i.xCoordinates[o]-e)*t)}}catch(e){a.e(e)}finally{a.f()}}}],[{key:"parse",value:function(t,r,n){for(var a=[],i=0;i<n;i++){var o=r.getUint16(t);t+=2,a.push(o)}var s=a[n-1]+1,c=r.getUint16(t);t+=2;var l=new Uint8Array(r).slice(t,t+c);t+=c;for(var u=[],f=0;f<s;t++,f++){var d=r.getUint8(t);if(u.push(d),8&d){var p=r.getUint8(++t);d^=8;for(var g=0;g<p;g++)u.push(d);f+=p}}for(var m=[],v=[],y=[],b=[],w=[],k=0,S=0,x=0;x<s;x++){var A=u[x];if(2&A){var O=r.getUint8(t++);S+=16&A?O:-O,v.push(S)}else 16&A||(S+=r.getInt16(t),t+=2),v.push(S);a[k]===x&&(k++,m.push(v),v=[])}S=0,k=0;for(var C=0;C<s;C++){var F=u[C];if(4&F){var T=r.getUint8(t++);S+=32&F?T:-T,y.push(S)}else 32&F||(S+=r.getInt16(t),t+=2),y.push(S);b.push(1&F|64&F),a[k]===C&&(v=m[k],k++,w.push(new h({flags:b,xCoordinates:v,yCoordinates:y})),y=[],b=[])}return new e({contours:w,instructions:l})}}]),e}(),p=function(){function e(t){var r=t.flags,n=t.glyphIndex,a=t.argument1,i=t.argument2,s=t.transf,c=t.instructions;o(this,e),this.flags=r,this.glyphIndex=n,this.argument1=a,this.argument2=i,this.transf=s,this.instructions=c}return c(e,[{key:"getSize",value:function(){var e=4+2*this.transf.length;return 256&this.flags&&(e+=2+this.instructions.length),e+=2,2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(e+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(e+=2),e}},{key:"write",value:function(e,t){var r=e;return 2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=1):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=1),t.setUint16(e,this.flags),t.setUint16(e+2,this.glyphIndex),e+=4,1&this.flags?(2&this.flags?(t.setInt16(e,this.argument1),t.setInt16(e+2,this.argument2)):(t.setUint16(e,this.argument1),t.setUint16(e+2,this.argument2)),e+=4):(t.setUint8(e,this.argument1),t.setUint8(e+1,this.argument2),e+=2),256&this.flags&&(t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length)),e-r}},{key:"scale",value:function(e,t){}}],[{key:"parse",value:function(t,r){var n,a,i=t,o=[],s=r.getUint16(t),c=r.getUint16(t+2);if(t+=4,1&s)2&s?(n=r.getInt16(t),a=r.getInt16(t+2)):(n=r.getUint16(t),a=r.getUint16(t+2)),t+=4,s^=1;else{if(n=r.getUint8(t),a=r.getUint8(t+1),2&s){var l=127&n;n=128&n?-l:l;var u=127&a;a=128&a?-u:u}t+=2}8&s?(o.push(r.getUint16(t)),t+=2):64&s?(o.push(r.getUint16(t),r.getUint16(t+2)),t+=4):128&s&&(o.push(r.getUint16(t),r.getUint16(t+2),r.getUint16(t+4),r.getUint16(t+6)),t+=8);var f=null;if(256&s){var h=r.getUint16(t);t+=2,f=new Uint8Array(r).slice(t,t+h),t+=h}return[t-i,new e({flags:s,glyphIndex:c,argument1:n,argument2:a,transf:o,instructions:f})]}}]),e}()},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OpenTypeFileBuilder=void 0;var n=r(122),a=r(4);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){e[t]=r>>8&255,e[t+1]=255&r}function s(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}function c(e,t,r){if(r instanceof Uint8Array)e.set(r,t);else if("string"==typeof r)for(var n=0,a=r.length;n<a;n++)e[t++]=255&r.charCodeAt(n);else for(var i=0,o=r.length;i<o;i++)e[t++]=255&r[i]}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sfnt=t,this.tables=Object.create(null)}var t,r,l;return t=e,l=[{key:"getSearchParams",value:function(e,t){for(var r=1,n=0;(r^e)>r;)r<<=1,n++;var a=r*t;return{range:a,entry:n,rangeShift:t*e-a}}}],(r=[{key:"toArray",value:function(){var t=this.sfnt,r=this.tables,i=Object.keys(r);i.sort();var l,u,f,h,d,p=i.length,g=12+16*p,m=[g];for(l=0;l<p;l++)g+=((h=r[i[l]]).length+3&-4)>>>0,m.push(g);var v=new Uint8Array(g);for(l=0;l<p;l++)h=r[i[l]],c(v,m[l],h);"true"===t&&(t=(0,a.string32)(65536)),v[0]=255&t.charCodeAt(0),v[1]=255&t.charCodeAt(1),v[2]=255&t.charCodeAt(2),v[3]=255&t.charCodeAt(3),o(v,4,p);var y=e.getSearchParams(p,16);for(o(v,6,y.range),o(v,8,y.entry),o(v,10,y.rangeShift),g=12,l=0;l<p;l++){d=i[l],v[g]=255&d.charCodeAt(0),v[g+1]=255&d.charCodeAt(1),v[g+2]=255&d.charCodeAt(2),v[g+3]=255&d.charCodeAt(3);var b=0;for(u=m[l],f=m[l+1];u<f;u+=4)b=b+(0,n.readUint32)(v,u)>>>0;s(v,g+4,b),s(v,g+8,m[l]),s(v,g+12,r[d].length),g+=16}return v}},{key:"addTable",value:function(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}}])&&i(t.prototype,r),l&&i(t,l),e}();t.OpenTypeFileBuilder=l},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Font=void 0;var n=r(158),a=r(131),i=r(122),o=r(123),s=r(167),c=r(4);function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){for(var n=e.length,a=t.length,o=n-a,s=r,c=!1;s<o;){for(var l=0;l<a&&e[s+l]===t[l];)l++;if(l>=a){for(s+=l;s<n&&(0,i.isWhiteSpace)(e[s]);)s++;c=!0;break}s++}return{found:c,length:s}}var f=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=n.length1,l=(n.length2,r.peekBytes(6)),f=128===l[0]&&1===l[1];f&&(r.skip(6),i=l[5]<<24|l[4]<<16|l[3]<<8|l[2]);var h=function(e,t){var r,n,a,i,s=[101,101,120,101,99],l=e.pos;try{n=(r=e.getBytes(t)).length}catch(e){}if(n===t&&(a=u(r,s,t-2*s.length)).found&&a.length===t)return{stream:new o.Stream(r),length:t};for((0,c.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),e.pos=l;0!==(a=u(e.peekBytes(2048),s,0)).length;)if(e.pos+=a.length,a.found){i=e.pos-l;break}return e.pos=l,i?{stream:new o.Stream(e.getBytes(i)),length:i}:((0,c.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new o.Stream(e.getBytes(t)),length:t})}(r,i);new s.Type1Parser(h.stream,!1,a.SEAC_ANALYSIS_ENABLED).extractFontHeader(n),f&&((l=r.getBytes(6))[5],l[4],l[3],l[2]);var d,p=(d=r.getBytes(),{stream:new o.Stream(d),length:d.length}),g=new s.Type1Parser(p.stream,!0,a.SEAC_ANALYSIS_ENABLED).extractFontProgram(n);for(var m in g.properties)n[m]=g.properties[m];var v=g.charstrings,y=this.getType2Charstrings(v),b=this.getType2Subrs(g.subrs);this.charstrings=v,this.data=this.wrap(t,y,this.charstrings,b,n),this.seacs=this.getSeacs(g.charstrings)}var t,r;return t=e,(r=[{key:"numGlyphs",get:function(){return this.charstrings.length+1}},{key:"getCharset",value:function(){for(var e=[".notdef"],t=this.charstrings,r=0;r<t.length;r++)e.push(t[r].glyphName);return e}},{key:"getGlyphMapping",value:function(e){var t=this.charstrings;if(e.composite){for(var r=Object.create(null),n=0,i=t.length;n<i;n++)r[e.cMap.charCodeOf(n)]=n+1;return r}var o,s,c=[".notdef"];for(s=0;s<t.length;s++)c.push(t[s].glyphName);var l=e.builtInEncoding;if(l)for(var u in o=Object.create(null),l)(s=c.indexOf(l[u]))>=0&&(o[u]=s);return(0,a.type1FontGlyphMapping)(e,o,c)}},{key:"hasGlyphId",value:function(e){return!(e<0||e>=this.numGlyphs)&&(0===e||this.charstrings[e-1].charstring.length>0)}},{key:"getSeacs",value:function(e){for(var t=[],r=0,n=e.length;r<n;r++){var a=e[r];a.seac&&(t[r+1]=a.seac)}return t}},{key:"getType2Charstrings",value:function(e){for(var t=[],r=0,n=e.length;r<n;r++)t.push(e[r].charstring);return t}},{key:"getType2Subrs",value:function(e){var t,r=e.length;t=r<1133?107:r<33769?1131:32768;var n,a=[];for(n=0;n<t;n++)a.push([11]);for(n=0;n<r;n++)a.push(e[n]);return a}},{key:"wrap",value:function(e,t,r,a,i){var o=new n.CFF;o.header=new n.CFFHeader(1,0,4,4),o.names=[e];var s=new n.CFFTopDict;s.setByName("version",391),s.setByName("Notice",392),s.setByName("FullName",393),s.setByName("FamilyName",394),s.setByName("Weight",395),s.setByName("Encoding",null),s.setByName("FontMatrix",i.fontMatrix),s.setByName("FontBBox",i.bbox),s.setByName("charset",null),s.setByName("CharStrings",null),s.setByName("Private",null),o.topDict=s;var c=new n.CFFStrings;c.add("Version 0.11"),c.add("See original notice"),c.add(e),c.add(e),c.add("Medium"),o.strings=c,o.globalSubrIndex=new n.CFFIndex;var l,u,f=t.length,h=[".notdef"];for(l=0;l<f;l++){var d=r[l].glyphName;-1===n.CFFStandardStrings.indexOf(d)&&c.add(d),h.push(d)}o.charset=new n.CFFCharset(!1,0,h);var p=new n.CFFIndex;for(p.add([139,14]),l=0;l<f;l++)p.add(t[l]);o.charStrings=p;var g=new n.CFFPrivateDict;g.setByName("Subrs",null);var m=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(l=0,u=m.length;l<u;l++){var v=m[l];if(v in i.privateData){var y=i.privateData[v];if(Array.isArray(y))for(var b=y.length-1;b>0;b--)y[b]-=y[b-1];g.setByName(v,y)}}o.topDict.privateDict=g;var w=new n.CFFIndex;for(l=0,u=a.length;l<u;l++)w.add(a[l]);return g.subrsIndex=w,new n.CFFCompiler(o).compile()}}])&&l(t.prototype,r),e}();t.Type1Font=f},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Parser=void 0;var n=r(132),a=r(122),i=r(123),o=r(4);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),e}var u,f,h,d,p,g,m,v,y,b,w,k=(u=[4],f=[5],h=[6],d=[7],p=[8],g=[12,35],m=[14],v=[21],y=[22],b=[30],w=[31],function(){function e(){s(this,e),this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}return l(e,[{key:"convert",value:function(e,t,r){for(var n,a,i,s=e.length,c=!1,l=0;l<s;l++){var k=e[l];if(k<32){switch(12===k&&(k=(k<<8)+e[++l]),k){case 1:case 3:case 9:case 3072:case 3073:case 3074:case 3105:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){c=!0;break}var S=this.stack.pop();this.stack.push(0,S);break}c=this.executeCommand(1,u);break;case 5:c=this.executeCommand(2,f);break;case 6:c=this.executeCommand(1,h);break;case 7:c=this.executeCommand(1,d);break;case 8:c=this.executeCommand(6,p);break;case 10:if(this.stack.length<1){c=!0;break}if(!t[i=this.stack.pop()]){c=!0;break}c=this.convert(t[i],t,r);break;case 11:return c;case 13:if(this.stack.length<2){c=!0;break}n=this.stack.pop(),a=this.stack.pop(),this.lsb=a,this.width=n,this.stack.push(n,a),c=this.executeCommand(2,y);break;case 14:this.output.push(m[0]);break;case 21:if(this.flexing)break;c=this.executeCommand(2,v);break;case 22:if(this.flexing){this.stack.push(0);break}c=this.executeCommand(1,y);break;case 30:c=this.executeCommand(4,b);break;case 31:c=this.executeCommand(4,w);break;case 3078:if(r){var x=this.stack[this.stack.length-5];this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-x,c=this.executeCommand(0,m)}else c=this.executeCommand(4,m);break;case 3079:if(this.stack.length<4){c=!0;break}this.stack.pop(),n=this.stack.pop();var A=this.stack.pop();a=this.stack.pop(),this.lsb=a,this.width=n,this.stack.push(n,a,A),c=this.executeCommand(3,v);break;case 3084:if(this.stack.length<2){c=!0;break}var O=this.stack.pop(),C=this.stack.pop();this.stack.push(C/O);break;case 3088:if(this.stack.length<2){c=!0;break}i=this.stack.pop();var F=this.stack.pop();if(0===i&&3===F){var T=this.stack.splice(this.stack.length-17,17);this.stack.push(T[2]+T[0],T[3]+T[1],T[4],T[5],T[6],T[7],T[8],T[9],T[10],T[11],T[12],T[13],T[14]),c=this.executeCommand(13,g,!0),this.flexing=!1,this.stack.push(T[15],T[16])}else 1===i&&0===F&&(this.flexing=!0);break;case 3089:break;default:(0,o.warn)('Unknown type 1 charstring command of "'+k+'"')}if(c)break}else k<=246?k-=139:k=k<=250?256*(k-247)+e[++l]+108:k<=254?-256*(k-251)-e[++l]-108:(255&e[++l])<<24|(255&e[++l])<<16|(255&e[++l])<<8|(255&e[++l])<<0,this.stack.push(k)}return c}},{key:"executeCommand",value:function(e,t,r){var n=this.stack.length;if(e>n)return!0;for(var a=n-e,i=a;i<n;i++){var o=this.stack[i];Number.isInteger(o)?this.output.push(28,o>>8&255,255&o):(o=65536*o|0,this.output.push(255,o>>24&255,o>>16&255,o>>8&255,255&o))}return this.output.push.apply(this.output,t),r?this.stack.splice(a,e):this.stack.length=0,!1}}]),e}()),S=function(){function e(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function t(e,t,r){if(r>=e.length)return new Uint8Array(0);var n,a,i=0|t;for(n=0;n<r;n++)i=52845*(e[n]+i)+22719&65535;var o=e.length-r,s=new Uint8Array(o);for(n=r,a=0;a<o;n++,a++){var c=e[n];s[a]=c^i>>8,i=52845*(c+i)+22719&65535}return s}function r(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}return function(){function o(r,n,c){if(s(this,o),n){var l=r.getBytes(),u=!((e(l[0])||(0,a.isWhiteSpace)(l[0]))&&e(l[1])&&e(l[2])&&e(l[3])&&e(l[4])&&e(l[5])&&e(l[6])&&e(l[7]));r=new i.Stream(u?t(l,55665,4):function(t,r,n){var a,i,o=55665,s=t.length,c=new Uint8Array(s>>>1);for(a=0,i=0;a<s;a++){var l=t[a];if(e(l)){a++;for(var u=void 0;a<s&&!e(u=t[a]);)a++;if(a<s){var f=parseInt(String.fromCharCode(l,u),16);c[i++]=f^o>>8,o=52845*(f+o)+22719&65535}}}return c.slice(4,i)}(l))}this.seacAnalysisEnabled=!!c,this.stream=r,this.nextChar()}return l(o,[{key:"readNumberArray",value:function(){this.getToken();for(var e=[];;){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e}},{key:"readNumber",value:function(){var e=this.getToken();return parseFloat(e||0)}},{key:"readInt",value:function(){var e=this.getToken();return 0|parseInt(e||0,10)}},{key:"readBoolean",value:function(){return"true"===this.getToken()?1:0}},{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"getToken",value:function(){for(var e=!1,t=this.currentChar;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,a.isWhiteSpace)(t))break;t=this.nextChar()}if(r(t))return this.nextChar(),String.fromCharCode(t);var n="";do{n+=String.fromCharCode(t),t=this.nextChar()}while(t>=0&&!(0,a.isWhiteSpace)(t)&&!r(t));return n}},{key:"readCharStrings",value:function(e,r){return-1===r?e:t(e,4330,r)}},{key:"extractFontProgram",value:function(e){var t=this.stream,r=[],n=[],a=Object.create(null);a.lenIV=4;for(var i,o,s,c,l,u={subrs:[],charstrings:[],properties:{privateData:a}};null!==(i=this.getToken());)if("/"===i)switch(i=this.getToken()){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();null!==(i=this.getToken())&&"end"!==i;)if("/"===i){var f=this.getToken();o=this.readInt(),this.getToken(),s=o>0?t.getBytes(o):new Uint8Array(0),c=u.properties.privateData.lenIV,l=this.readCharStrings(s,c),this.nextChar(),"noaccess"===(i=this.getToken())&&this.getToken(),n.push({glyph:f,encoded:l})}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){var h=this.readInt();o=this.readInt(),this.getToken(),s=o>0?t.getBytes(o):new Uint8Array(0),c=u.properties.privateData.lenIV,l=this.readCharStrings(s,c),this.nextChar(),"noaccess"===(i=this.getToken())&&this.getToken(),r[h]=l}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var d=this.readNumberArray();d.length>0&&d.length;break;case"StemSnapH":case"StemSnapV":u.properties.privateData[i]=this.readNumberArray();break;case"StdHW":case"StdVW":u.properties.privateData[i]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":u.properties.privateData[i]=this.readNumber();break;case"ForceBold":u.properties.privateData[i]=this.readBoolean()}for(var p=0;p<n.length;p++){var g=n[p].glyph;l=n[p].encoded;var m=new k,v=m.convert(l,r,this.seacAnalysisEnabled),y=m.output;v&&(y=[14]);var b={glyphName:g,charstring:y,width:m.width,lsb:m.lsb,seac:m.seac};if(".notdef"===g?u.charstrings.unshift(b):u.charstrings.push(b),e.builtInEncoding){var w=e.builtInEncoding.indexOf(g);w>-1&&void 0===e.widths[w]&&w>=e.firstChar&&w<=e.lastChar&&(e.widths[w]=m.width)}}return u}},{key:"extractFontHeader",value:function(e){for(var t;null!==(t=this.getToken());)if("/"===t)switch(t=this.getToken()){case"FontMatrix":var r=this.readNumberArray();e.fontMatrix=r;break;case"Encoding":var a=this.getToken(),i=void 0;if(/^\d+$/.test(a)){i=[];var o=0|parseInt(a,10);this.getToken();for(var s=0;s<o;s++){for(t=this.getToken();"dup"!==t&&"def"!==t;)if(null===(t=this.getToken()))return;if("def"===t)break;var c=this.readInt();this.getToken();var l=this.getToken();i[c]=l,this.getToken()}}else i=(0,n.getEncoding)(a);e.builtInEncoding=i;break;case"FontBBox":var u=this.readNumberArray();e.ascent=Math.max(u[3],u[1]),e.descent=Math.min(u[1],u[3]),e.ascentScaled=!0}}}]),o}()}();t.Type1Parser=S},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getTilingPatternIR=function(e,t,r){var n=t.getArray("Matrix"),i=a.Util.normalizeRect(t.getArray("BBox")),o=t.get("XStep"),s=t.get("YStep"),c=t.get("PaintType"),l=t.get("TilingType");if(i[2]-i[0]==0||i[3]-i[1]==0)throw new a.FormatError("Invalid getTilingPatternIR /BBox array: [".concat(i,"]."));return["TilingPattern",r,e,n,i,o,s,c,l]},t.Pattern=void 0;var a=r(4),i=r(137),o=r(118),s=r(122);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=d(e);if(t){var a=d(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}var v=function(){function e(){p(this,e),(0,a.unreachable)("Cannot initialize Pattern.")}return m(e,null,[{key:"parseShading",value:function(e,t,r,n,i,c){var l=(0,o.isStream)(e)?e.dict:e,u=l.get("ShadingType");try{switch(u){case 2:case 3:return new w(l,t,r,i,c);case 4:case 5:case 6:case 7:return new x(e,t,r,i,c);default:throw new a.FormatError("Unsupported ShadingType: "+u)}}catch(e){if(e instanceof s.MissingDataException)throw e;return n.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.shadingPattern}),(0,a.warn)(e),new A}}}]),e}();t.Pattern=v;var y,b=function(){function e(){p(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BaseShading.")}return m(e,[{key:"getIR",value:function(){(0,a.unreachable)("Abstract method `getIR` called.")}}],[{key:"SMALL_NUMBER",get:function(){return(0,a.shadow)(this,"SMALL_NUMBER",1e-6)}}]),e}(),w=function(e){l(r,e);var t=f(r);function r(e,n,o,s,l){var u;p(this,r),(u=t.call(this)).coordsArr=e.getArray("Coords"),u.shadingType=e.get("ShadingType");var f=i.ColorSpace.parse({cs:e.getRaw("ColorSpace")||e.getRaw("CS"),xref:n,resources:o,pdfFunctionFactory:s,localColorSpaceCache:l}),d=e.getArray("BBox");Array.isArray(d)&&4===d.length?u.bbox=a.Util.normalizeRect(d):u.bbox=null;var g=0,m=1;if(e.has("Domain")){var v=e.getArray("Domain");g=v[0],m=v[1]}var y=!1,w=!1;if(e.has("Extend")){var k=e.getArray("Extend");y=k[0],w=k[1]}if(!(3!==u.shadingType||y&&w)){var S=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(u.coordsArr,6),x=S[0],A=S[1],O=S[2],C=S[3],F=S[4],T=S[5],I=Math.hypot(x-C,A-F);O<=T+I&&T<=O+I&&(0,a.warn)("Unsupported radial gradient.")}u.extendStart=y,u.extendEnd=w;var P=e.getRaw("Function"),_=s.createFromArray(P),E=(m-g)/10,j=u.colorStops=[];if(g>=m||E<=0)return(0,a.info)("Bad shading domain."),h(u);for(var M,R=new Float32Array(f.numComps),B=new Float32Array(1),D=0;D<=10;D++){B[0]=g+D*E,_(B,0,R,0),M=f.getRgb(R,0);var N=a.Util.makeHexColor(M[0],M[1],M[2]);j.push([D/10,N])}var L="transparent";return e.has("Background")&&(M=f.getRgb(e.get("Background"),0),L=a.Util.makeHexColor(M[0],M[1],M[2])),y||(j.unshift([0,L]),j[1][0]+=b.SMALL_NUMBER),w||(j[j.length-1][0]-=b.SMALL_NUMBER,j.push([1,L])),u.colorStops=j,u}return m(r,[{key:"getIR",value:function(){var e,t,r,n,i,o=this.coordsArr,s=this.shadingType;return 2===s?(t=[o[0],o[1]],r=[o[2],o[3]],n=null,i=null,e="axial"):3===s?(t=[o[0],o[1]],r=[o[3],o[4]],n=o[2],i=o[5],e="radial"):(0,a.unreachable)("getPattern type unknown: ".concat(s)),["RadialAxial",e,this.bbox,this.colorStops,t,r,n,i]}}]),r}(b),k=function(){function e(t,r){p(this,e),this.stream=t,this.context=r,this.buffer=0,this.bufferLength=0;var n=r.numComps;this.tmpCompsBuf=new Float32Array(n);var a=r.colorSpace.numComps;this.tmpCsCompsBuf=r.colorFn?new Float32Array(a):this.tmpCompsBuf}return m(e,[{key:"hasData",get:function(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;var e=this.stream.getByte();return!(e<0||(this.buffer=e,this.bufferLength=8,0))}},{key:"readBits",value:function(e){var t=this.buffer,r=this.bufferLength;if(32===e){if(0===r)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var n=this.stream.getByte();return this.buffer=n&(1<<r)-1,(t<<8-r|(255&n)>>r)>>>0}if(8===e&&0===r)return this.stream.getByte();for(;r<e;)t=t<<8|this.stream.getByte(),r+=8;return r-=e,this.bufferLength=r,this.buffer=t&(1<<r)-1,t>>r}},{key:"align",value:function(){this.buffer=0,this.bufferLength=0}},{key:"readFlag",value:function(){return this.readBits(this.context.bitsPerFlag)}},{key:"readCoordinate",value:function(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),r=this.readBits(e),n=this.context.decode,a=e<32?1/((1<<e)-1):2.3283064365386963e-10;return[t*a*(n[1]-n[0])+n[0],r*a*(n[3]-n[2])+n[2]]}},{key:"readComponents",value:function(){for(var e=this.context.numComps,t=this.context.bitsPerComponent,r=t<32?1/((1<<t)-1):2.3283064365386963e-10,n=this.context.decode,a=this.tmpCompsBuf,i=0,o=4;i<e;i++,o+=2){var s=this.readBits(t);a[i]=s*r*(n[o+1]-n[o])+n[o]}var c=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(a,0,c,0),this.context.colorSpace.getRgb(c,0)}}]),e}(),S=(y=[],function(e){return y[e]||(y[e]=function(e){for(var t=[],r=0;r<=e;r++){var n=r/e,a=1-n;t.push(new Float32Array([a*a*a,3*n*a*a,3*n*n*a,n*n*n]))}return t}(e)),y[e]}),x=function(e){l(r,e);var t=f(r);function r(e,n,s,c,l){var u;if(p(this,r),u=t.call(this),!(0,o.isStream)(e))throw new a.FormatError("Mesh data is not a stream");var f=e.dict;u.shadingType=f.get("ShadingType");var h=f.getArray("BBox");Array.isArray(h)&&4===h.length?u.bbox=a.Util.normalizeRect(h):u.bbox=null;var d=i.ColorSpace.parse({cs:f.getRaw("ColorSpace")||f.getRaw("CS"),xref:n,resources:s,pdfFunctionFactory:c,localColorSpaceCache:l});u.background=f.has("Background")?d.getRgb(f.get("Background"),0):null;var g=f.getRaw("Function"),m=g?c.createFromArray(g):null;u.coords=[],u.colors=[],u.figures=[];var v={bitsPerCoordinate:f.get("BitsPerCoordinate"),bitsPerComponent:f.get("BitsPerComponent"),bitsPerFlag:f.get("BitsPerFlag"),decode:f.getArray("Decode"),colorFn:m,colorSpace:d,numComps:m?1:d.numComps},y=new k(e,v),b=!1;switch(u.shadingType){case 4:u._decodeType4Shading(y);break;case 5:var w=0|f.get("VerticesPerRow");if(w<2)throw new a.FormatError("Invalid VerticesPerRow");u._decodeType5Shading(y,w);break;case 6:u._decodeType6Shading(y),b=!0;break;case 7:u._decodeType7Shading(y),b=!0;break;default:(0,a.unreachable)("Unsupported mesh type.")}if(b){u._updateBounds();for(var S=0,x=u.figures.length;S<x;S++)u._buildFigureFromPatch(S)}return u._updateBounds(),u._packData(),u}return m(r,[{key:"_decodeType4Shading",value:function(e){for(var t=this.coords,r=this.colors,n=[],i=[],o=0;e.hasData;){var s=e.readFlag(),c=e.readCoordinate(),l=e.readComponents();if(0===o){if(!(0<=s&&s<=2))throw new a.FormatError("Unknown type4 flag");switch(s){case 0:o=3;break;case 1:i.push(i[i.length-2],i[i.length-1]),o=1;break;case 2:i.push(i[i.length-3],i[i.length-1]),o=1}n.push(s)}i.push(t.length),t.push(c),r.push(l),o--,e.align()}this.figures.push({type:"triangles",coords:new Int32Array(i),colors:new Int32Array(i)})}},{key:"_decodeType5Shading",value:function(e,t){for(var r=this.coords,n=this.colors,a=[];e.hasData;){var i=e.readCoordinate(),o=e.readComponents();a.push(r.length),r.push(i),n.push(o)}this.figures.push({type:"lattice",coords:new Int32Array(a),colors:new Int32Array(a),verticesPerRow:t})}},{key:"_decodeType6Shading",value:function(e){for(var t=this.coords,r=this.colors,n=new Int32Array(16),i=new Int32Array(4);e.hasData;){var o=e.readFlag();if(!(0<=o&&o<=3))throw new a.FormatError("Unknown type6 flag");for(var s=t.length,c=0,l=0!==o?8:12;c<l;c++)t.push(e.readCoordinate());for(var u=r.length,f=0,h=0!==o?2:4;f<h;f++)r.push(e.readComponents());var d=void 0,p=void 0,g=void 0,m=void 0;switch(o){case 0:n[12]=s+3,n[13]=s+4,n[14]=s+5,n[15]=s+6,n[8]=s+2,n[11]=s+7,n[4]=s+1,n[7]=s+8,n[0]=s,n[1]=s+11,n[2]=s+10,n[3]=s+9,i[2]=u+1,i[3]=u+2,i[0]=u,i[1]=u+3;break;case 1:d=n[12],p=n[13],g=n[14],m=n[15],n[12]=m,n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=g,n[11]=s+3,n[4]=p,n[7]=s+4,n[0]=d,n[1]=s+7,n[2]=s+6,n[3]=s+5,d=i[2],p=i[3],i[2]=p,i[3]=u,i[0]=d,i[1]=u+1;break;case 2:d=n[15],p=n[11],n[12]=n[3],n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=n[7],n[11]=s+3,n[4]=p,n[7]=s+4,n[0]=d,n[1]=s+7,n[2]=s+6,n[3]=s+5,d=i[3],i[2]=i[1],i[3]=u,i[0]=d,i[1]=u+1;break;case 3:n[12]=n[0],n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=n[1],n[11]=s+3,n[4]=n[2],n[7]=s+4,n[0]=n[3],n[1]=s+7,n[2]=s+6,n[3]=s+5,i[2]=i[0],i[3]=u,i[0]=i[1],i[1]=u+1}n[5]=t.length,t.push([(-4*t[n[0]][0]-t[n[15]][0]+6*(t[n[4]][0]+t[n[1]][0])-2*(t[n[12]][0]+t[n[3]][0])+3*(t[n[13]][0]+t[n[7]][0]))/9,(-4*t[n[0]][1]-t[n[15]][1]+6*(t[n[4]][1]+t[n[1]][1])-2*(t[n[12]][1]+t[n[3]][1])+3*(t[n[13]][1]+t[n[7]][1]))/9]),n[6]=t.length,t.push([(-4*t[n[3]][0]-t[n[12]][0]+6*(t[n[2]][0]+t[n[7]][0])-2*(t[n[0]][0]+t[n[15]][0])+3*(t[n[4]][0]+t[n[14]][0]))/9,(-4*t[n[3]][1]-t[n[12]][1]+6*(t[n[2]][1]+t[n[7]][1])-2*(t[n[0]][1]+t[n[15]][1])+3*(t[n[4]][1]+t[n[14]][1]))/9]),n[9]=t.length,t.push([(-4*t[n[12]][0]-t[n[3]][0]+6*(t[n[8]][0]+t[n[13]][0])-2*(t[n[0]][0]+t[n[15]][0])+3*(t[n[11]][0]+t[n[1]][0]))/9,(-4*t[n[12]][1]-t[n[3]][1]+6*(t[n[8]][1]+t[n[13]][1])-2*(t[n[0]][1]+t[n[15]][1])+3*(t[n[11]][1]+t[n[1]][1]))/9]),n[10]=t.length,t.push([(-4*t[n[15]][0]-t[n[0]][0]+6*(t[n[11]][0]+t[n[14]][0])-2*(t[n[12]][0]+t[n[3]][0])+3*(t[n[2]][0]+t[n[8]][0]))/9,(-4*t[n[15]][1]-t[n[0]][1]+6*(t[n[11]][1]+t[n[14]][1])-2*(t[n[12]][1]+t[n[3]][1])+3*(t[n[2]][1]+t[n[8]][1]))/9]),this.figures.push({type:"patch",coords:new Int32Array(n),colors:new Int32Array(i)})}}},{key:"_decodeType7Shading",value:function(e){for(var t=this.coords,r=this.colors,n=new Int32Array(16),i=new Int32Array(4);e.hasData;){var o=e.readFlag();if(!(0<=o&&o<=3))throw new a.FormatError("Unknown type7 flag");for(var s=t.length,c=0,l=0!==o?12:16;c<l;c++)t.push(e.readCoordinate());for(var u=r.length,f=0,h=0!==o?2:4;f<h;f++)r.push(e.readComponents());var d=void 0,p=void 0,g=void 0,m=void 0;switch(o){case 0:n[12]=s+3,n[13]=s+4,n[14]=s+5,n[15]=s+6,n[8]=s+2,n[9]=s+13,n[10]=s+14,n[11]=s+7,n[4]=s+1,n[5]=s+12,n[6]=s+15,n[7]=s+8,n[0]=s,n[1]=s+11,n[2]=s+10,n[3]=s+9,i[2]=u+1,i[3]=u+2,i[0]=u,i[1]=u+3;break;case 1:d=n[12],p=n[13],g=n[14],m=n[15],n[12]=m,n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=g,n[9]=s+9,n[10]=s+10,n[11]=s+3,n[4]=p,n[5]=s+8,n[6]=s+11,n[7]=s+4,n[0]=d,n[1]=s+7,n[2]=s+6,n[3]=s+5,d=i[2],p=i[3],i[2]=p,i[3]=u,i[0]=d,i[1]=u+1;break;case 2:d=n[15],p=n[11],n[12]=n[3],n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=n[7],n[9]=s+9,n[10]=s+10,n[11]=s+3,n[4]=p,n[5]=s+8,n[6]=s+11,n[7]=s+4,n[0]=d,n[1]=s+7,n[2]=s+6,n[3]=s+5,d=i[3],i[2]=i[1],i[3]=u,i[0]=d,i[1]=u+1;break;case 3:n[12]=n[0],n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=n[1],n[9]=s+9,n[10]=s+10,n[11]=s+3,n[4]=n[2],n[5]=s+8,n[6]=s+11,n[7]=s+4,n[0]=n[3],n[1]=s+7,n[2]=s+6,n[3]=s+5,i[2]=i[0],i[3]=u,i[0]=i[1],i[1]=u+1}this.figures.push({type:"patch",coords:new Int32Array(n),colors:new Int32Array(i)})}}},{key:"_buildFigureFromPatch",value:function(e){var t=this.figures[e];(0,a.assert)("patch"===t.type,"Unexpected patch mesh figure");var n=this.coords,i=this.colors,o=t.coords,s=t.colors,c=Math.min(n[o[0]][0],n[o[3]][0],n[o[12]][0],n[o[15]][0]),l=Math.min(n[o[0]][1],n[o[3]][1],n[o[12]][1],n[o[15]][1]),u=Math.max(n[o[0]][0],n[o[3]][0],n[o[12]][0],n[o[15]][0]),f=Math.max(n[o[0]][1],n[o[3]][1],n[o[12]][1],n[o[15]][1]),h=Math.ceil((u-c)*r.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));h=Math.max(r.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(r.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,h));var d=Math.ceil((f-l)*r.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));d=Math.max(r.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(r.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,d));for(var p=h+1,g=new Int32Array((d+1)*p),m=new Int32Array((d+1)*p),v=0,y=new Uint8Array(3),b=new Uint8Array(3),w=i[s[0]],k=i[s[1]],x=i[s[2]],A=i[s[3]],O=S(d),C=S(h),F=0;F<=d;F++){y[0]=(w[0]*(d-F)+x[0]*F)/d|0,y[1]=(w[1]*(d-F)+x[1]*F)/d|0,y[2]=(w[2]*(d-F)+x[2]*F)/d|0,b[0]=(k[0]*(d-F)+A[0]*F)/d|0,b[1]=(k[1]*(d-F)+A[1]*F)/d|0,b[2]=(k[2]*(d-F)+A[2]*F)/d|0;for(var T=0;T<=h;T++,v++)if(0!==F&&F!==d||0!==T&&T!==h){for(var I=0,P=0,_=0,E=0;E<=3;E++)for(var j=0;j<=3;j++,_++){var M=O[F][E]*C[T][j];I+=n[o[_]][0]*M,P+=n[o[_]][1]*M}g[v]=n.length,n.push([I,P]),m[v]=i.length;var R=new Uint8Array(3);R[0]=(y[0]*(h-T)+b[0]*T)/h|0,R[1]=(y[1]*(h-T)+b[1]*T)/h|0,R[2]=(y[2]*(h-T)+b[2]*T)/h|0,i.push(R)}}g[0]=o[0],m[0]=s[0],g[h]=o[3],m[h]=s[1],g[p*d]=o[12],m[p*d]=s[2],g[p*d+h]=o[15],m[p*d+h]=s[3],this.figures[e]={type:"lattice",coords:g,colors:m,verticesPerRow:p}}},{key:"_updateBounds",value:function(){for(var e=this.coords[0][0],t=this.coords[0][1],r=e,n=t,a=1,i=this.coords.length;a<i;a++){var o=this.coords[a][0],s=this.coords[a][1];e=e>o?o:e,t=t>s?s:t,r=r<o?o:r,n=n<s?s:n}this.bounds=[e,t,r,n]}},{key:"_packData",value:function(){var e,t,r,n,a=this.coords,i=new Float32Array(2*a.length);for(e=0,r=0,t=a.length;e<t;e++){var o=a[e];i[r++]=o[0],i[r++]=o[1]}this.coords=i;var s=this.colors,c=new Uint8Array(3*s.length);for(e=0,r=0,t=s.length;e<t;e++){var l=s[e];c[r++]=l[0],c[r++]=l[1],c[r++]=l[2]}this.colors=c;var u=this.figures;for(e=0,t=u.length;e<t;e++){var f=u[e],h=f.coords,d=f.colors;for(r=0,n=h.length;r<n;r++)h[r]*=2,d[r]*=3}}},{key:"getIR",value:function(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.bbox,this.background]}}],[{key:"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",get:function(){return(0,a.shadow)(this,"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",3)}},{key:"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",get:function(){return(0,a.shadow)(this,"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",20)}},{key:"TRIANGLE_DENSITY",get:function(){return(0,a.shadow)(this,"TRIANGLE_DENSITY",20)}}]),r}(b),A=function(e){l(r,e);var t=f(r);function r(){return p(this,r),t.apply(this,arguments)}return m(r,[{key:"getIR",value:function(){return["Dummy"]}}]),r}(b)},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPDFFunction=function(e){var t;if("object"!==h(e))return!1;if((0,n.isDict)(e))t=e;else{if(!(0,n.isStream)(e))return!1;t=e.dict}return t.has("FunctionType")},t.PostScriptEvaluator=t.PostScriptCompiler=t.PDFFunctionFactory=void 0;var n=r(118),a=r(4),i=r(170),o=r(171);function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=f(e);if(t){var a=f(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),e}var m=function(){function e(t){var r=t.xref,n=t.isEvalSupported,a=void 0===n||n;d(this,e),this.xref=r,this.isEvalSupported=!1!==a}return g(e,[{key:"create",value:function(e){var t=this.getCached(e);if(t)return t;var r=y.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:e instanceof n.Ref?this.xref.fetch(e):e});return this._cache(e,r),r}},{key:"createFromArray",value:function(e){var t=this.getCached(e);if(t)return t;var r=y.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:e instanceof n.Ref?this.xref.fetch(e):e});return this._cache(e,r),r}},{key:"getCached",value:function(e){var t;if(e instanceof n.Ref?t=e:e instanceof n.Dict?t=e.objId:(0,n.isStream)(e)&&(t=e.dict&&e.dict.objId),t){var r=this._localFunctionCache.getByRef(t);if(r)return r}return null}},{key:"_cache",value:function(e,t){if(!t)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');var r;e instanceof n.Ref?r=e:e instanceof n.Dict?r=e.objId:(0,n.isStream)(e)&&(r=e.dict&&e.dict.objId),r&&this._localFunctionCache.set(null,r,t)}},{key:"_localFunctionCache",get:function(){return(0,a.shadow)(this,"_localFunctionCache",new o.LocalFunctionCache)}}]),e}();function v(e){if(!Array.isArray(e))return null;for(var t=e.length,r=0;r<t;r++)if("number"!=typeof e[r]){for(var n=new Array(t),a=0;a<t;a++)n[a]=+e[a];return n}return e}t.PDFFunctionFactory=m;var y=function(){function e(){d(this,e)}return g(e,null,[{key:"getSampleArray",value:function(e,t,r,n){var a,i,o=1;for(a=0,i=e.length;a<i;a++)o*=e[a];o*=t;var s=new Array(o),c=0,l=0,u=1/(Math.pow(2,r)-1),f=n.getBytes((o*r+7)/8),h=0;for(a=0;a<o;a++){for(;c<r;)l<<=8,l|=f[h++],c+=8;c-=r,s[a]=(l>>c)*u,l&=(1<<c)-1}return s}},{key:"parse",value:function(e){var t=e.xref,r=e.isEvalSupported,n=e.fn,i=n.dict||n;switch(i.get("FunctionType")){case 0:return this.constructSampled({xref:t,isEvalSupported:r,fn:n,dict:i});case 1:break;case 2:return this.constructInterpolated({xref:t,isEvalSupported:r,dict:i});case 3:return this.constructStiched({xref:t,isEvalSupported:r,dict:i});case 4:return this.constructPostScript({xref:t,isEvalSupported:r,fn:n,dict:i})}throw new a.FormatError("Unknown type of function")}},{key:"parseArray",value:function(e){var t=e.xref,r=e.isEvalSupported,n=e.fnObj;if(!Array.isArray(n))return this.parse({xref:t,isEvalSupported:r,fn:n});for(var a=[],i=0,o=n.length;i<o;i++)a.push(this.parse({xref:t,isEvalSupported:r,fn:t.fetchIfRef(n[i])}));return function(e,t,r,n){for(var i=0,o=a.length;i<o;i++)a[i](e,t,r,n+i)}}},{key:"constructSampled",value:function(e){e.xref,e.isEvalSupported;var t=e.fn,r=e.dict;function n(e){for(var t=e.length,r=[],n=0,a=0;a<t;a+=2)r[n++]=[e[a],e[a+1]];return r}function i(e,t,r,n,a){return n+(a-n)/(r-t)*(e-t)}var o=v(r.getArray("Domain")),s=v(r.getArray("Range"));if(!o||!s)throw new a.FormatError("No domain or range");var c=o.length/2,l=s.length/2;o=n(o),s=n(s);var u=v(r.getArray("Size")),f=r.get("BitsPerSample"),h=r.get("Order")||1;1!==h&&(0,a.info)("No support for cubic spline interpolation: "+h);var d=v(r.getArray("Encode"));if(d)d=n(d);else{d=[];for(var p=0;p<c;++p)d.push([0,u[p]-1])}var g=v(r.getArray("Decode"));g=g?n(g):s;var m=this.getSampleArray(u,l,f,t);return function(e,t,r,n){var a,f,h=1<<c,p=new Float64Array(h),v=new Uint32Array(h);for(f=0;f<h;f++)p[f]=1;var y=l,b=1;for(a=0;a<c;++a){var w=o[a][0],k=o[a][1],S=i(Math.min(Math.max(e[t+a],w),k),w,k,d[a][0],d[a][1]),x=u[a],A=(S=Math.min(Math.max(S,0),x-1))<x-1?Math.floor(S):S-1,O=A+1-S,C=S-A,F=A*y,T=F+y;for(f=0;f<h;f++)f&b?(p[f]*=C,v[f]+=T):(p[f]*=O,v[f]+=F);y*=x,b<<=1}for(f=0;f<l;++f){var I=0;for(a=0;a<h;a++)I+=m[v[a]+f]*p[a];I=i(I,0,1,g[f][0],g[f][1]),r[n+f]=Math.min(Math.max(I,s[f][0]),s[f][1])}}}},{key:"constructInterpolated",value:function(e){e.xref,e.isEvalSupported;for(var t=e.dict,r=v(t.getArray("C0"))||[0],n=v(t.getArray("C1"))||[1],a=t.get("N"),i=[],o=0,s=r.length;o<s;++o)i.push(n[o]-r[o]);var c=i.length;return function(e,t,n,o){for(var s=1===a?e[t]:Math.pow(e[t],a),l=0;l<c;++l)n[o+l]=r[l]+s*i[l]}}},{key:"constructStiched",value:function(e){var t=e.xref,r=e.isEvalSupported,n=e.dict,i=v(n.getArray("Domain"));if(!i)throw new a.FormatError("No domain");if(1!=i.length/2)throw new a.FormatError("Bad domain for stiched function");for(var o=n.get("Functions"),s=[],c=0,l=o.length;c<l;++c)s.push(this.parse({xref:t,isEvalSupported:r,fn:t.fetchIfRef(o[c])}));var u=v(n.getArray("Bounds")),f=v(n.getArray("Encode")),h=new Float32Array(1);return function(e,t,r,n){var a,o=function(e,t,r){return e>r?e=r:e<t&&(e=t),e}(e[t],i[0],i[1]),c=u.length;for(a=0;a<c&&!(o<u[a]);++a);var l=i[0];a>0&&(l=u[a-1]);var d=i[1];a<u.length&&(d=u[a]);var p=f[2*a],g=f[2*a+1];h[0]=l===d?p:p+(o-l)*(g-p)/(d-l),s[a](h,0,r,n)}}},{key:"constructPostScript",value:function(e){e.xref;var t=e.isEvalSupported,r=e.fn,n=e.dict,o=v(n.getArray("Domain")),s=v(n.getArray("Range"));if(!o)throw new a.FormatError("No domain.");if(!s)throw new a.FormatError("No range.");var c=new i.PostScriptLexer(r),l=new i.PostScriptParser(c).parse();if(t&&a.IsEvalSupportedCached.value){var u=(new k).compile(l,o,s);if(u)return new Function("src","srcOffset","dest","destOffset",u)}(0,a.info)("Unable to compile PS function");var f=s.length>>1,h=o.length>>1,d=new w(l),p=Object.create(null),g=8192,m=new Float32Array(h);return function(e,t,r,n){var a,i,o="",c=m;for(a=0;a<h;a++)i=e[t+a],c[a]=i,o+=i+"_";var l=p[o];if(void 0===l){var u=new Float32Array(f),v=d.execute(c),y=v.length-f;for(a=0;a<f;a++){i=v[y+a];var b=s[2*a];(i<b||i>(b=s[2*a+1]))&&(i=b),u[a]=i}g>0&&(g--,p[o]=u),r.set(u,n)}else r.set(l,n)}}}]),e}(),b=function(){function e(t){d(this,e),this.stack=t?Array.prototype.slice.call(t,0):[]}return g(e,[{key:"push",value:function(t){if(this.stack.length>=e.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(t)}},{key:"pop",value:function(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}},{key:"copy",value:function(t){if(this.stack.length+t>=e.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");for(var r=this.stack,n=r.length-t,a=t-1;a>=0;a--,n++)r.push(r[n])}},{key:"index",value:function(e){this.push(this.stack[this.stack.length-e-1])}},{key:"roll",value:function(e,t){for(var r=this.stack,n=r.length-e,a=r.length-1,i=n+(t-Math.floor(t/e)*e),o=n,s=a;o<s;o++,s--){var c=r[o];r[o]=r[s],r[s]=c}for(var l=n,u=i-1;l<u;l++,u--){var f=r[l];r[l]=r[u],r[u]=f}for(var h=i,d=a;h<d;h++,d--){var p=r[h];r[h]=r[d],r[d]=p}}}],[{key:"MAX_STACK_SIZE",get:function(){return(0,a.shadow)(this,"MAX_STACK_SIZE",100)}}]),e}(),w=function(){function e(t){d(this,e),this.operators=t}return g(e,[{key:"execute",value:function(e){for(var t,r,n,i=new b(e),o=0,s=this.operators,c=s.length;o<c;)if("number"!=typeof(t=s[o++]))switch(t){case"jz":n=i.pop(),(r=i.pop())||(o=n);break;case"j":o=r=i.pop();break;case"abs":r=i.pop(),i.push(Math.abs(r));break;case"add":n=i.pop(),r=i.pop(),i.push(r+n);break;case"and":n=i.pop(),r=i.pop(),(0,a.isBool)(r)&&(0,a.isBool)(n)?i.push(r&&n):i.push(r&n);break;case"atan":r=i.pop(),i.push(Math.atan(r));break;case"bitshift":n=i.pop(),(r=i.pop())>0?i.push(r<<n):i.push(r>>n);break;case"ceiling":r=i.pop(),i.push(Math.ceil(r));break;case"copy":r=i.pop(),i.copy(r);break;case"cos":r=i.pop(),i.push(Math.cos(r));break;case"cvi":r=0|i.pop(),i.push(r);break;case"cvr":break;case"div":n=i.pop(),r=i.pop(),i.push(r/n);break;case"dup":i.copy(1);break;case"eq":n=i.pop(),r=i.pop(),i.push(r===n);break;case"exch":i.roll(2,1);break;case"exp":n=i.pop(),r=i.pop(),i.push(Math.pow(r,n));break;case"false":i.push(!1);break;case"floor":r=i.pop(),i.push(Math.floor(r));break;case"ge":n=i.pop(),r=i.pop(),i.push(r>=n);break;case"gt":n=i.pop(),r=i.pop(),i.push(r>n);break;case"idiv":n=i.pop(),r=i.pop(),i.push(r/n|0);break;case"index":r=i.pop(),i.index(r);break;case"le":n=i.pop(),r=i.pop(),i.push(r<=n);break;case"ln":r=i.pop(),i.push(Math.log(r));break;case"log":r=i.pop(),i.push(Math.log(r)/Math.LN10);break;case"lt":n=i.pop(),r=i.pop(),i.push(r<n);break;case"mod":n=i.pop(),r=i.pop(),i.push(r%n);break;case"mul":n=i.pop(),r=i.pop(),i.push(r*n);break;case"ne":n=i.pop(),r=i.pop(),i.push(r!==n);break;case"neg":r=i.pop(),i.push(-r);break;case"not":r=i.pop(),(0,a.isBool)(r)?i.push(!r):i.push(~r);break;case"or":n=i.pop(),r=i.pop(),(0,a.isBool)(r)&&(0,a.isBool)(n)?i.push(r||n):i.push(r|n);break;case"pop":i.pop();break;case"roll":n=i.pop(),r=i.pop(),i.roll(r,n);break;case"round":r=i.pop(),i.push(Math.round(r));break;case"sin":r=i.pop(),i.push(Math.sin(r));break;case"sqrt":r=i.pop(),i.push(Math.sqrt(r));break;case"sub":n=i.pop(),r=i.pop(),i.push(r-n);break;case"true":i.push(!0);break;case"truncate":r=(r=i.pop())<0?Math.ceil(r):Math.floor(r),i.push(r);break;case"xor":n=i.pop(),r=i.pop(),(0,a.isBool)(r)&&(0,a.isBool)(n)?i.push(r!==n):i.push(r^n);break;default:throw new a.FormatError("Unknown operator ".concat(t))}else i.push(t);return i.stack}}]),e}();t.PostScriptEvaluator=w;var k=function(){var e=function(){function e(t){d(this,e),this.type=t}return g(e,[{key:"visit",value:function(e){(0,a.unreachable)("abstract method")}}]),e}(),t=function(e){s(r,e);var t=l(r);function r(e,n,a){var i;return d(this,r),(i=t.call(this,"args")).index=e,i.min=n,i.max=a,i}return g(r,[{key:"visit",value:function(e){e.visitArgument(this)}}]),r}(e),r=function(e){s(r,e);var t=l(r);function r(e){var n;return d(this,r),(n=t.call(this,"literal")).number=e,n.min=e,n.max=e,n}return g(r,[{key:"visit",value:function(e){e.visitLiteral(this)}}]),r}(e),n=function(e){s(r,e);var t=l(r);function r(e,n,a,i,o){var s;return d(this,r),(s=t.call(this,"binary")).op=e,s.arg1=n,s.arg2=a,s.min=i,s.max=o,s}return g(r,[{key:"visit",value:function(e){e.visitBinaryOperation(this)}}]),r}(e),i=function(e){s(r,e);var t=l(r);function r(e,n){var a;return d(this,r),(a=t.call(this,"max")).arg=e,a.min=e.min,a.max=n,a}return g(r,[{key:"visit",value:function(e){e.visitMin(this)}}]),r}(e),o=function(e){s(r,e);var t=l(r);function r(e,n,a){var i;return d(this,r),(i=t.call(this,"var")).index=e,i.min=n,i.max=a,i}return g(r,[{key:"visit",value:function(e){e.visitVariable(this)}}]),r}(e),c=function(e){s(r,e);var t=l(r);function r(e,n){var a;return d(this,r),(a=t.call(this,"definition")).variable=e,a.arg=n,a}return g(r,[{key:"visit",value:function(e){e.visitVariableDefinition(this)}}]),r}(e),u=function(){function e(){d(this,e),this.parts=[]}return g(e,[{key:"visitArgument",value:function(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")}},{key:"visitVariable",value:function(e){this.parts.push("v",e.index)}},{key:"visitLiteral",value:function(e){this.parts.push(e.number)}},{key:"visitBinaryOperation",value:function(e){this.parts.push("("),e.arg1.visit(this),this.parts.push(" ",e.op," "),e.arg2.visit(this),this.parts.push(")")}},{key:"visitVariableDefinition",value:function(e){this.parts.push("var "),e.variable.visit(this),this.parts.push(" = "),e.arg.visit(this),this.parts.push(";")}},{key:"visitMin",value:function(e){this.parts.push("Math.min("),e.arg.visit(this),this.parts.push(", ",e.max,")")}},{key:"toString",value:function(){return this.parts.join("")}}]),e}();function f(e,t){return"literal"===t.type&&0===t.number?e:"literal"===e.type&&0===e.number?t:"literal"===t.type&&"literal"===e.type?new r(e.number+t.number):new n("+",e,t,e.min+t.min,e.max+t.max)}function h(e,t){if("literal"===t.type){if(0===t.number)return new r(0);if(1===t.number)return e;if("literal"===e.type)return new r(e.number*t.number)}if("literal"===e.type){if(0===e.number)return new r(0);if(1===e.number)return t}var a=Math.min(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max),i=Math.max(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max);return new n("*",e,t,a,i)}function p(e,t){if("literal"===t.type){if(0===t.number)return e;if("literal"===e.type)return new r(e.number-t.number)}return"binary"===t.type&&"-"===t.op&&"literal"===e.type&&1===e.number&&"literal"===t.arg1.type&&1===t.arg1.number?t.arg2:new n("-",e,t,e.min-t.max,e.max-t.min)}function m(e,t){return e.min>=t?new r(t):e.max<=t?e:new i(e,t)}return function(){function e(){d(this,e)}return g(e,[{key:"compile",value:function(e,n,a){for(var i,s,l,d,g,v,y,b,w=[],k=[],S=n.length>>1,x=a.length>>1,A=0,O=0;O<S;O++)w.push(new t(O,n[2*O],n[2*O+1]));for(var C=0,F=e.length;C<F;C++)if("number"!=typeof(b=e[C]))switch(b){case"add":if(w.length<2)return null;d=w.pop(),l=w.pop(),w.push(f(l,d));break;case"cvr":if(w.length<1)return null;break;case"mul":if(w.length<2)return null;d=w.pop(),l=w.pop(),w.push(h(l,d));break;case"sub":if(w.length<2)return null;d=w.pop(),l=w.pop(),w.push(p(l,d));break;case"exch":if(w.length<2)return null;g=w.pop(),v=w.pop(),w.push(g,v);break;case"pop":if(w.length<1)return null;w.pop();break;case"index":if(w.length<1)return null;if("literal"!==(l=w.pop()).type)return null;if((i=l.number)<0||!Number.isInteger(i)||w.length<i)return null;if("literal"===(g=w[w.length-i-1]).type||"var"===g.type){w.push(g);break}y=new o(A++,g.min,g.max),w[w.length-i-1]=y,w.push(y),k.push(new c(y,g));break;case"dup":if(w.length<1)return null;if("number"==typeof e[C+1]&&"gt"===e[C+2]&&e[C+3]===C+7&&"jz"===e[C+4]&&"pop"===e[C+5]&&e[C+6]===e[C+1]){l=w.pop(),w.push(m(l,e[C+1])),C+=6;break}if("literal"===(g=w[w.length-1]).type||"var"===g.type){w.push(g);break}y=new o(A++,g.min,g.max),w[w.length-1]=y,w.push(y),k.push(new c(y,g));break;case"roll":if(w.length<2)return null;if(d=w.pop(),l=w.pop(),"literal"!==d.type||"literal"!==l.type)return null;if(s=d.number,(i=l.number)<=0||!Number.isInteger(i)||!Number.isInteger(s)||w.length<i)return null;if(0==(s=(s%i+i)%i))break;Array.prototype.push.apply(w,w.splice(w.length-i,i-s));break;default:return null}else w.push(new r(b));if(w.length!==x)return null;for(var T=[],I=0,P=k;I<P.length;I++){var _=P[I],E=new u;_.visit(E),T.push(E.toString())}for(var j=0,M=w.length;j<M;j++){var R=w[j],B=new u;R.visit(B);var D=a[2*j],N=a[2*j+1],L=[B.toString()];D>R.min&&(L.unshift("Math.max(",D,", "),L.push(")")),N<R.max&&(L.unshift("Math.min(",N,", "),L.push(")")),L.unshift("dest[destOffset + ",j,"] = "),L.push(";"),T.push(L.join(""))}return T.join("\n")}}]),e}()}();t.PostScriptCompiler=k},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptParser=t.PostScriptLexer=void 0;var n=r(4),a=r(118),i=r(122);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var l=function(){function e(t){o(this,e),this.lexer=t,this.operators=[],this.token=null,this.prev=null}return c(e,[{key:"nextToken",value:function(){this.prev=this.token,this.token=this.lexer.getToken()}},{key:"accept",value:function(e){return this.token.type===e&&(this.nextToken(),!0)}},{key:"expect",value:function(e){if(this.accept(e))return!0;throw new n.FormatError("Unexpected symbol: found ".concat(this.token.type," expected ").concat(e,"."))}},{key:"parse",value:function(){return this.nextToken(),this.expect(u.LBRACE),this.parseBlock(),this.expect(u.RBRACE),this.operators}},{key:"parseBlock",value:function(){for(;;)if(this.accept(u.NUMBER))this.operators.push(this.prev.value);else if(this.accept(u.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(u.LBRACE))return;this.parseCondition()}}},{key:"parseCondition",value:function(){var e=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(u.RBRACE),this.accept(u.IF))this.operators[e]=this.operators.length,this.operators[e+1]="jz";else{if(!this.accept(u.LBRACE))throw new n.FormatError("PS Function: error parsing conditional.");var t=this.operators.length;this.operators.push(null,null);var r=this.operators.length;this.parseBlock(),this.expect(u.RBRACE),this.expect(u.IFELSE),this.operators[t]=this.operators.length,this.operators[t+1]="j",this.operators[e]=r,this.operators[e+1]="jz"}}}]),e}();t.PostScriptParser=l;var u={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5},f=function(){function e(t,r){o(this,e),this.type=t,this.value=r}return c(e,null,[{key:"opCache",get:function(){return(0,n.shadow)(this,"opCache",Object.create(null))}},{key:"getOperator",value:function(t){return e.opCache[t]||(e.opCache[t]=new e(u.OPERATOR,t))}},{key:"LBRACE",get:function(){return(0,n.shadow)(this,"LBRACE",new e(u.LBRACE,"{"))}},{key:"RBRACE",get:function(){return(0,n.shadow)(this,"RBRACE",new e(u.RBRACE,"}"))}},{key:"IF",get:function(){return(0,n.shadow)(this,"IF",new e(u.IF,"IF"))}},{key:"IFELSE",get:function(){return(0,n.shadow)(this,"IFELSE",new e(u.IFELSE,"IFELSE"))}}]),e}(),h=function(){function e(t){o(this,e),this.stream=t,this.nextChar(),this.strBuf=[]}return c(e,[{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"getToken",value:function(){for(var e=!1,t=this.currentChar;;){if(t<0)return a.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,i.isWhiteSpace)(t))break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new f(u.NUMBER,this.getNumber());case 123:return this.nextChar(),f.LBRACE;case 125:return this.nextChar(),f.RBRACE}var r=this.strBuf;for(r.length=0,r[0]=String.fromCharCode(t);(t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122);)r.push(String.fromCharCode(t));var n=r.join("");switch(n.toLowerCase()){case"if":return f.IF;case"ifelse":return f.IFELSE;default:return f.getOperator(n)}}},{key:"getNumber",value:function(){var e=this.currentChar,t=this.strBuf;for(t.length=0,t[0]=String.fromCharCode(e);(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));var r=parseFloat(t.join(""));if(isNaN(r))throw new n.FormatError("Invalid floating point number: ".concat(r));return r}}]),e}();t.PostScriptLexer=h},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.LocalTilingPatternCache=t.LocalImageCache=t.LocalGStateCache=t.LocalFunctionCache=t.LocalColorSpaceCache=t.GlobalImageCache=void 0;var a=r(4),i=r(118);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=u(e);if(t){var a=u(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),e}var p=function(){function e(t){f(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BaseLocalCache."),this._onlyRefs=!0===(t&&t.onlyRefs),this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new i.RefSetCache}return d(e,[{key:"getByName",value:function(e){this._onlyRefs&&(0,a.unreachable)("Should not call `getByName` method.");var t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null}},{key:"getByRef",value:function(e){return this._imageCache.get(e)||null}},{key:"set",value:function(e,t,r){(0,a.unreachable)("Abstract method `set` called.")}}]),e}(),g=function(e){o(r,e);var t=c(r);function r(){return f(this,r),t.apply(this,arguments)}return d(r,[{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if("string"!=typeof e)throw new Error('LocalImageCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}]),r}(p);t.LocalImageCache=g;var m=function(e){o(r,e);var t=c(r);function r(){return f(this,r),t.apply(this,arguments)}return d(r,[{key:"set",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if("string"!=typeof e&&!t)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(t){if(this._imageCache.has(t))return;return null!==e&&this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}]),r}(p);t.LocalColorSpaceCache=m;var v=function(e){o(r,e);var t=c(r);function r(e){return f(this,r),t.call(this,{onlyRefs:!0})}return d(r,[{key:"set",value:function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}}]),r}(p);t.LocalFunctionCache=v;var y=function(e){o(r,e);var t=c(r);function r(){return f(this,r),t.apply(this,arguments)}return d(r,[{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if("string"!=typeof e)throw new Error('LocalGStateCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}]),r}(p);t.LocalGStateCache=y;var b=function(e){o(r,e);var t=c(r);function r(e){return f(this,r),t.call(this,{onlyRefs:!0})}return d(r,[{key:"set",value:function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}}]),r}(p);t.LocalTilingPatternCache=b;var w=function(){function e(){f(this,e),this._refCache=new i.RefSetCache,this._imageCache=new i.RefSetCache}return d(e,[{key:"_byteSize",get:function(){var e=0;return this._imageCache.forEach((function(t){e+=t.byteSize})),e}},{key:"_cacheLimitReached",get:function(){return!(this._imageCache.size<e.MIN_IMAGES_TO_CACHE||this._byteSize<e.MAX_BYTE_SIZE)}},{key:"shouldCache",value:function(t,r){var n=this._refCache.get(t);return!((n?n.size+(n.has(r)?0:1):1)<e.NUM_PAGES_THRESHOLD||!this._imageCache.has(t)&&this._cacheLimitReached)}},{key:"addPageIndex",value:function(e,t){var r=this._refCache.get(e);r||(r=new Set,this._refCache.put(e,r)),r.add(t)}},{key:"addByteSize",value:function(e,t){var r=this._imageCache.get(e);r&&(r.byteSize||(r.byteSize=t))}},{key:"getData",value:function(t,r){var n=this._refCache.get(t);if(!n)return null;if(n.size<e.NUM_PAGES_THRESHOLD)return null;var a=this._imageCache.get(t);return a?(n.add(r),a):null}},{key:"setData",value:function(e,t){if(!this._refCache.has(e))throw new Error('GlobalImageCache.setData - expected "addPageIndex" to have been called.');this._imageCache.has(e)||(this._cacheLimitReached?(0,a.warn)("GlobalImageCache.setData - cache limit reached."):this._imageCache.put(e,t))}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e||this._refCache.clear(),this._imageCache.clear()}}],[{key:"NUM_PAGES_THRESHOLD",get:function(){return(0,a.shadow)(this,"NUM_PAGES_THRESHOLD",2)}},{key:"MIN_IMAGES_TO_CACHE",get:function(){return(0,a.shadow)(this,"MIN_IMAGES_TO_CACHE",10)}},{key:"MAX_BYTE_SIZE",get:function(){return(0,a.shadow)(this,"MAX_BYTE_SIZE",4e7)}}]),e}();t.GlobalImageCache=w},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bidi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],p=!0,g=e.length;if(0===g||r)return f(e,p,r);h.length=g,d.length=g;var m,v,y=0;for(m=0;m<g;++m){h[m]=e.charAt(m);var b=e.charCodeAt(m),w="L";b<=255?w=a[b]:1424<=b&&b<=1524?w="R":1536<=b&&b<=1791?(w=i[255&b])||(0,n.warn)("Bidi: invalid Unicode character "+b.toString(16)):1792<=b&&b<=2220&&(w="AL"),"R"!==w&&"AL"!==w&&"AN"!==w||y++,d[m]=w}if(0===y)return f(e,p=!0);-1===t&&(y/g<.3?(p=!0,t=0):(p=!1,t=1));var k=[];for(m=0;m<g;++m)k[m]=t;var S,x=o(t)?"R":"L",A=x,O=A,C=A;for(m=0;m<g;++m)"NSM"===d[m]?d[m]=C:C=d[m];for(C=A,m=0;m<g;++m)"EN"===(S=d[m])?d[m]="AL"===C?"AN":"EN":"R"!==S&&"L"!==S&&"AL"!==S||(C=S);for(m=0;m<g;++m)"AL"===(S=d[m])&&(d[m]="R");for(m=1;m<g-1;++m)"ES"===d[m]&&"EN"===d[m-1]&&"EN"===d[m+1]&&(d[m]="EN"),"CS"!==d[m]||"EN"!==d[m-1]&&"AN"!==d[m-1]||d[m+1]!==d[m-1]||(d[m]=d[m-1]);for(m=0;m<g;++m)if("EN"===d[m]){for(var F=m-1;F>=0&&"ET"===d[F];--F)d[F]="EN";for(var T=m+1;T<g&&"ET"===d[T];++T)d[T]="EN"}for(m=0;m<g;++m)"WS"!==(S=d[m])&&"ES"!==S&&"ET"!==S&&"CS"!==S||(d[m]="ON");for(C=A,m=0;m<g;++m)"EN"===(S=d[m])?d[m]="L"===C?"L":"EN":"R"!==S&&"L"!==S||(C=S);for(m=0;m<g;++m)if("ON"===d[m]){var I=c(d,m+1,"ON"),P=A;m>0&&(P=d[m-1]);var _=O;I+1<g&&(_=d[I+1]),"L"!==P&&(P="R"),"L"!==_&&(_="R"),P===_&&l(d,m,I,P),m=I-1}for(m=0;m<g;++m)"ON"===d[m]&&(d[m]=x);for(m=0;m<g;++m)S=d[m],s(k[m])?"R"===S?k[m]+=1:"AN"!==S&&"EN"!==S||(k[m]+=2):"L"!==S&&"AN"!==S&&"EN"!==S||(k[m]+=1);var E,j=-1,M=99;for(m=0,v=k.length;m<v;++m)j<(E=k[m])&&(j=E),M>E&&o(E)&&(M=E);for(E=j;E>=M;--E){var R=-1;for(m=0,v=k.length;m<v;++m)k[m]<E?R>=0&&(u(h,R,m),R=-1):R<0&&(R=m);R>=0&&u(h,R,k.length)}for(m=0,v=h.length;m<v;++m){var B=h[m];"<"!==B&&">"!==B||(h[m]="")}return f(h.join(""),p)};var n=r(4),a=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],i=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function o(e){return 0!=(1&e)}function s(e){return 0==(1&e)}function c(e,t,r){var n,a;for(n=t,a=e.length;n<a;++n)if(e[n]!==r)return n;return n}function l(e,t,r,n){for(var a=t;a<r;++a)e[a]=n}function u(e,t,r){for(var n=t,a=r-1;n<a;++n,--a){var i=e[n];e[n]=e[a],e[a]=i}}function f(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n="ltr";return r?n="ttb":t||(n="rtl"),{str:e,dir:n}}var h=[],d=[]},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=void 0;var n=r(122),a=(0,n.getLookupTableFactory)((function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=(0,n.getLookupTableFactory)((function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-Bold"]=(0,n.getLookupTableFactory)((function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-BoldOblique"]=(0,n.getLookupTableFactory)((function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-Oblique"]=(0,n.getLookupTableFactory)((function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556})),e.Symbol=(0,n.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790})),e["Times-Roman"]=(0,n.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-Bold"]=(0,n.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-BoldItalic"]=(0,n.getLookupTableFactory)((function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-Italic"]=(0,n.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500})),e.ZapfDingbats=(0,n.getLookupTableFactory)((function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918}))}));t.getMetrics=a},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var n=r(4);function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=3285377520,o=4294901760,s=65535,c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.h1=t?4294967295&t:i,this.h2=t?4294967295&t:i}var t,r;return t=e,(r=[{key:"update",value:function(e){var t,r;if((0,n.isString)(e)){t=new Uint8Array(2*e.length),r=0;for(var a=0,i=e.length;a<i;a++){var c=e.charCodeAt(a);c<=255?t[r++]=c:(t[r++]=c>>>8,t[r++]=255&c)}}else{if(!(0,n.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");r=(t=e.slice()).byteLength}for(var l=r>>2,u=r-4*l,f=new Uint32Array(t.buffer,0,l),h=0,d=0,p=this.h1,g=this.h2,m=3432918353,v=461845907,y=11601,b=13715,w=0;w<l;w++)1&w?p=5*(p=(p^=h=(h=(h=(h=f[w])*m&o|h*y&s)<<15|h>>>17)*v&o|h*b&s)<<13|p>>>19)+3864292196:g=5*(g=(g^=d=(d=(d=(d=f[w])*m&o|d*y&s)<<15|d>>>17)*v&o|d*b&s)<<13|g>>>19)+3864292196;switch(h=0,u){case 3:h^=t[4*l+2]<<16;case 2:h^=t[4*l+1]<<8;case 1:h=(h=(h=(h^=t[4*l])*m&o|h*y&s)<<15|h>>>17)*v&o|h*b&s,1&l?p^=h:g^=h}this.h1=p,this.h2=g}},{key:"hexdigest",value:function(){var e=this.h1,t=this.h2;e=3981806797*(e^=t>>>1)&o|36045*e&s,e=444984403*(e^=(t=4283543511*t&o|(2950163797*(t<<16|e>>>16)&o)>>>16)>>>1)&o|60499*e&s;var r=((e^=(t=3301882366*t&o|(3120437893*(t<<16|e>>>16)&o)>>>16)>>>1)>>>0).toString(16),n=(t>>>0).toString(16);return r.padStart(8,"0")+n.padStart(8,"0")}}])&&a(t.prototype,r),e}();t.MurmurHash3_64=c},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorList=void 0;var a=r(4);function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),e}function d(e,t,r,n,a){for(var i=e,o=0,s=t.length-1;o<s;o++){var c=t[o];i=i[c]||(i[c]=[])}i[t[t.length-1]]={checkFn:r,iterateFn:n,processFn:a}}var p=[];d(p,[a.OPS.save,a.OPS.transform,a.OPS.paintInlineImageXObject,a.OPS.restore],null,(function(e,t){var r=e.fnArray,n=(t-(e.iCurr-3))%4;switch(n){case 0:return r[t]===a.OPS.save;case 1:return r[t]===a.OPS.transform;case 2:return r[t]===a.OPS.paintInlineImageXObject;case 3:return r[t]===a.OPS.restore}throw new Error("iterateInlineImageGroup - invalid pos: ".concat(n))}),(function(e,t){var r=e.fnArray,n=e.argsArray,i=e.iCurr,o=i-3,s=i-2,c=i-1,l=Math.min(Math.floor((t-o)/4),200);if(l<10)return t-(t-o)%4;for(var u=0,f=[],h=0,d=1,p=1,g=0;g<l;g++){var m=n[s+(g<<2)],v=n[c+(g<<2)][0];d+v.width>1e3&&(u=Math.max(u,d),p+=h+2,d=0,h=0),f.push({transform:m,x:d,y:p,w:v.width,h:v.height}),d+=v.width+2,h=Math.max(h,v.height)}for(var y=Math.max(u,d)+1,b=p+h+1,w=new Uint8ClampedArray(y*b*4),k=y<<2,S=0;S<l;S++){var x=n[c+(S<<2)][0].data,A=f[S].w<<2,O=0,C=f[S].x+f[S].y*y<<2;w.set(x.subarray(0,A),C-k);for(var F=0,T=f[S].h;F<T;F++)w.set(x.subarray(O,O+A),C),O+=A,C+=k;for(w.set(x.subarray(O-A,O),C);C>=0;)x[C-4]=x[C],x[C-3]=x[C+1],x[C-2]=x[C+2],x[C-1]=x[C+3],x[C+A]=x[C+A-4],x[C+A+1]=x[C+A-3],x[C+A+2]=x[C+A-2],x[C+A+3]=x[C+A-1],C-=k}return r.splice(o,4*l,a.OPS.paintInlineImageXObjectGroup),n.splice(o,4*l,[{width:y,height:b,kind:a.ImageKind.RGBA_32BPP,data:w},f]),o+1})),d(p,[a.OPS.save,a.OPS.transform,a.OPS.paintImageMaskXObject,a.OPS.restore],null,(function(e,t){var r=e.fnArray,n=(t-(e.iCurr-3))%4;switch(n){case 0:return r[t]===a.OPS.save;case 1:return r[t]===a.OPS.transform;case 2:return r[t]===a.OPS.paintImageMaskXObject;case 3:return r[t]===a.OPS.restore}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(n))}),(function(e,t){var r=e.fnArray,n=e.argsArray,i=e.iCurr,o=i-3,s=i-2,c=i-1,l=Math.floor((t-o)/4);if(l=function(e,t,r,n){var i,o=e+2;for(i=0;i<t;i++){var s=n[o+4*i],c=1===s.length&&s[0];if(!c||1!==c.width||1!==c.height||c.data.length&&(1!==c.data.length||0!==c.data[0]))break;r[o+4*i]=a.OPS.paintSolidColorImageMask}return t-i}(o,l,r,n),l<10)return t-(t-o)%4;var u,f,h=!1,d=n[c][0],p=n[s][0],g=n[s][1],m=n[s][2],v=n[s][3];if(g===m){h=!0,u=s+4;for(var y=c+4,b=1;b<l;b++,u+=4,y+=4)if(f=n[u],n[y][0]!==d||f[0]!==p||f[1]!==g||f[2]!==m||f[3]!==v){b<10?h=!1:l=b;break}}if(h){l=Math.min(l,1e3);var w=new Float32Array(2*l);u=s;for(var k=0;k<l;k++,u+=4)f=n[u],w[k<<1]=f[4],w[1+(k<<1)]=f[5];r.splice(o,4*l,a.OPS.paintImageMaskXObjectRepeat),n.splice(o,4*l,[d,p,g,m,v,w])}else{l=Math.min(l,100);for(var S=[],x=0;x<l;x++){f=n[s+(x<<2)];var A=n[c+(x<<2)][0];S.push({data:A.data,width:A.width,height:A.height,transform:f})}r.splice(o,4*l,a.OPS.paintImageMaskXObjectGroup),n.splice(o,4*l,[S])}return o+1})),d(p,[a.OPS.save,a.OPS.transform,a.OPS.paintImageXObject,a.OPS.restore],(function(e){var t=e.argsArray,r=e.iCurr-2;return 0===t[r][1]&&0===t[r][2]}),(function(e,t){var r=e.fnArray,n=e.argsArray,i=(t-(e.iCurr-3))%4;switch(i){case 0:return r[t]===a.OPS.save;case 1:if(r[t]!==a.OPS.transform)return!1;var o=e.iCurr-2,s=n[o][0],c=n[o][3];return n[t][0]===s&&0===n[t][1]&&0===n[t][2]&&n[t][3]===c;case 2:if(r[t]!==a.OPS.paintImageXObject)return!1;var l=n[e.iCurr-1][0];return n[t][0]===l;case 3:return r[t]===a.OPS.restore}throw new Error("iterateImageGroup - invalid pos: ".concat(i))}),(function(e,t){var r=e.fnArray,n=e.argsArray,i=e.iCurr,o=i-3,s=i-2,c=n[i-1][0],l=n[s][0],u=n[s][3],f=Math.min(Math.floor((t-o)/4),1e3);if(f<3)return t-(t-o)%4;for(var h=new Float32Array(2*f),d=s,p=0;p<f;p++,d+=4){var g=n[d];h[p<<1]=g[4],h[1+(p<<1)]=g[5]}var m=[c,l,u,h];return r.splice(o,4*f,a.OPS.paintImageXObjectRepeat),n.splice(o,4*f,m),o+1})),d(p,[a.OPS.beginText,a.OPS.setFont,a.OPS.setTextMatrix,a.OPS.showText,a.OPS.endText],null,(function(e,t){var r=e.fnArray,n=e.argsArray,i=(t-(e.iCurr-4))%5;switch(i){case 0:return r[t]===a.OPS.beginText;case 1:return r[t]===a.OPS.setFont;case 2:return r[t]===a.OPS.setTextMatrix;case 3:if(r[t]!==a.OPS.showText)return!1;var o=e.iCurr-3,s=n[o][0],c=n[o][1];return n[t][0]===s&&n[t][1]===c;case 4:return r[t]===a.OPS.endText}throw new Error("iterateShowTextGroup - invalid pos: ".concat(i))}),(function(e,t){var r=e.fnArray,n=e.argsArray,a=e.iCurr,i=a-4,o=a-3,s=a-2,c=a-1,l=a,u=n[o][0],f=n[o][1],h=Math.min(Math.floor((t-i)/5),1e3);if(h<3)return t-(t-i)%5;var d=i;i>=4&&r[i-4]===r[o]&&r[i-3]===r[s]&&r[i-2]===r[c]&&r[i-1]===r[l]&&n[i-4][0]===u&&n[i-4][1]===f&&(h++,d-=5);for(var p=d+4,g=1;g<h;g++)r.splice(p,3),n.splice(p,3),p+=2;return p+1}));var g=function(){function e(t){u(this,e),this.queue=t}return h(e,[{key:"_optimize",value:function(){}},{key:"push",value:function(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()}},{key:"flush",value:function(){}},{key:"reset",value:function(){}}]),e}(),m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(a,e);var t,r,n=(t=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,n=l(t);if(r){var a=l(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return c(this,e)});function a(e){var t;return u(this,a),(t=n.call(this,e)).state=null,t.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray},t.match=null,t.lastProcessed=0,t}return h(a,[{key:"_optimize",value:function(){var e=this.queue.fnArray,t=this.lastProcessed,r=e.length,n=this.state,a=this.match;if(n||a||t+1!==r||p[e[t]]){for(var i=this.context;t<r;){if(a){if((0,a.iterateFn)(i,t)){t++;continue}if(t=(0,a.processFn)(i,t+1),a=null,n=null,t>=(r=e.length))break}(n=(n||p)[e[t]])&&!Array.isArray(n)?(i.iCurr=t,t++,!n.checkFn||(0,n.checkFn)(i)?(a=n,n=null):n=null):t++}this.state=n,this.match=a,this.lastProcessed=t}else this.lastProcessed=r}},{key:"flush",value:function(){for(;this.match;){var e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}}},{key:"reset",value:function(){this.state=null,this.match=null,this.lastProcessed=0}}]),a}(g),v=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0;u(this,e),this._streamSink=r,this.fnArray=[],this.argsArray=[],!r||t&a.RenderingIntentFlag.OPLIST?this.optimizer=new g(this):this.optimizer=new m(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=r?null:Promise.resolve()}return h(e,[{key:"length",get:function(){return this.argsArray.length}},{key:"ready",get:function(){return this._resolved||this._streamSink.ready}},{key:"totalLength",get:function(){return this._totalLength+this.length}},{key:"addOp",value:function(t,r){this.optimizer.push(t,r),this.weight++,this._streamSink&&(this.weight>=e.CHUNK_SIZE||this.weight>=e.CHUNK_SIZE_ABOUT&&(t===a.OPS.restore||t===a.OPS.endText))&&this.flush()}},{key:"addDependency",value:function(e){this.dependencies.has(e)||(this.dependencies.add(e),this.addOp(a.OPS.dependency,[e]))}},{key:"addDependencies",value:function(e){var t,r=i(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;this.addDependency(n)}}catch(e){r.e(e)}finally{r.f()}}},{key:"addOpList",value:function(t){if(t instanceof e){var r,n=i(t.dependencies);try{for(n.s();!(r=n.n()).done;){var o=r.value;this.dependencies.add(o)}}catch(e){n.e(e)}finally{n.f()}for(var s=0,c=t.length;s<c;s++)this.addOp(t.fnArray[s],t.argsArray[s])}else(0,a.warn)('addOpList - ignoring invalid "opList" parameter.')}},{key:"getIR",value:function(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}},{key:"_transfers",get:function(){for(var e=[],t=this.fnArray,r=this.argsArray,n=this.length,i=0;i<n;i++)switch(t[i]){case a.OPS.paintInlineImageXObject:case a.OPS.paintInlineImageXObjectGroup:case a.OPS.paintImageMaskXObject:var o=r[i][0];o.cached||e.push(o.data.buffer)}return e}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.optimizer.flush();var t=this.length;this._totalLength+=t,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,length:t},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}}],[{key:"CHUNK_SIZE",get:function(){return(0,a.shadow)(this,"CHUNK_SIZE",1e3)}},{key:"CHUNK_SIZE_ABOUT",get:function(){return(0,a.shadow)(this,"CHUNK_SIZE_ABOUT",this.CHUNK_SIZE-5)}}]),e}();t.OperatorList=v},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(4),o=r(118),s=r(137),c=r(142),l=r(150),u=r(153);function f(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t,r,n){return(e=t+e*r)<0?e=0:e>n&&(e=n),e}function p(e,t,r,n,a,i){var o,s=a*i;o=t<=8?new Uint8Array(s):t<=16?new Uint16Array(s):new Uint32Array(s);var c,l,u,f,h=r/a,d=n/i,p=0,g=new Uint16Array(a),m=r;for(c=0;c<a;c++)g[c]=Math.floor(c*h);for(c=0;c<i;c++)for(u=Math.floor(c*d)*m,l=0;l<a;l++)f=u+g[l],o[p++]=e[f];return o}var g=function(){function e(t){var r=t.xref,n=t.res,a=t.image,c=t.isInline,l=void 0!==c&&c,f=t.smask,h=void 0===f?null:f,d=t.mask,p=void 0===d?null:d,g=t.isMask,m=void 0!==g&&g,v=t.pdfFunctionFactory,y=t.localColorSpaceCache;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.image=a;var b=a.dict,w=b.get("Filter");if((0,o.isName)(w))switch(w.name){case"JPXDecode":var k=new u.JpxImage;k.parseImageProperties(a.stream),a.stream.reset(),a.width=k.width,a.height=k.height,a.bitsPerComponent=k.bitsPerComponent,a.numComps=k.componentsCount;break;case"JBIG2Decode":a.bitsPerComponent=1,a.numComps=1}var S=b.get("Width","W"),x=b.get("Height","H");if(Number.isInteger(a.width)&&a.width>0&&Number.isInteger(a.height)&&a.height>0&&(a.width!==S||a.height!==x)&&((0,i.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),S=a.width,x=a.height),S<1||x<1)throw new i.FormatError("Invalid image width: ".concat(S," or height: ").concat(x));this.width=S,this.height=x,this.interpolate=b.get("Interpolate","I"),this.imageMask=b.get("ImageMask","IM")||!1,this.matte=b.get("Matte")||!1;var A=a.bitsPerComponent;if(!A&&!(A=b.get("BitsPerComponent","BPC"))){if(!this.imageMask)throw new i.FormatError("Bits per component missing in image: ".concat(this.imageMask));A=1}if(this.bpc=A,!this.imageMask){var O=b.getRaw("ColorSpace")||b.getRaw("CS");if(!O)switch((0,i.info)("JPX images (which do not require color spaces)"),a.numComps){case 1:O=o.Name.get("DeviceGray");break;case 3:O=o.Name.get("DeviceRGB");break;case 4:O=o.Name.get("DeviceCMYK");break;default:throw new Error("JPX images with ".concat(a.numComps," ")+"color components not supported.")}this.colorSpace=s.ColorSpace.parse({cs:O,xref:r,resources:l?n:null,pdfFunctionFactory:v,localColorSpaceCache:y}),this.numComps=this.colorSpace.numComps}if(this.decode=b.getArray("Decode","D"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,A)||m&&!s.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var C=(1<<A)-1;this.decodeCoefficients=[],this.decodeAddends=[];for(var F=this.colorSpace&&"Indexed"===this.colorSpace.name,T=0,I=0;T<this.decode.length;T+=2,++I){var P=this.decode[T],_=this.decode[T+1];this.decodeCoefficients[I]=F?(_-P)/C:_-P,this.decodeAddends[I]=F?P:C*P}}h?this.smask=new e({xref:r,res:n,image:h,isInline:l,pdfFunctionFactory:v,localColorSpaceCache:y}):p&&((0,o.isStream)(p)?p.dict.get("ImageMask","IM")?this.mask=new e({xref:r,res:n,image:p,isInline:l,isMask:!0,pdfFunctionFactory:v,localColorSpaceCache:y}):(0,i.warn)("Ignoring /Mask in image without /ImageMask."):this.mask=p)}var t,r,n,g,m;return t=e,r=[{key:"drawWidth",get:function(){return Math.max(this.width,this.smask&&this.smask.width||0,this.mask&&this.mask.width||0)}},{key:"drawHeight",get:function(){return Math.max(this.height,this.smask&&this.smask.height||0,this.mask&&this.mask.height||0)}},{key:"decodeBuffer",value:function(e){var t,r,n=this.bpc,a=this.numComps,i=this.decodeAddends,o=this.decodeCoefficients,s=(1<<n)-1;if(1!==n){var c=0;for(t=0,r=this.width*this.height;t<r;t++)for(var l=0;l<a;l++)e[c]=d(e[c],i[l],o[l],s),c++}else for(t=0,r=e.length;t<r;t++)e[t]=+!e[t]}},{key:"getComponents",value:function(e){var t=this.bpc;if(8===t)return e;var r,n=this.width,a=this.height,i=this.numComps,o=n*a*i,s=0;r=t<=8?new Uint8Array(o):t<=16?new Uint16Array(o):new Uint32Array(o);var c,l,u=n*i,f=(1<<t)-1,h=0;if(1===t)for(var d,p,g,m=0;m<a;m++){for(p=h+(-8&u),g=h+u;h<p;)l=e[s++],r[h]=l>>7&1,r[h+1]=l>>6&1,r[h+2]=l>>5&1,r[h+3]=l>>4&1,r[h+4]=l>>3&1,r[h+5]=l>>2&1,r[h+6]=l>>1&1,r[h+7]=1&l,h+=8;if(h<g)for(l=e[s++],d=128;h<g;)r[h++]=+!!(l&d),d>>=1}else{var v=0;for(l=0,h=0,c=o;h<c;++h){for(h%u==0&&(l=0,v=0);v<t;)l=l<<8|e[s++],v+=8;var y=v-t,b=l>>y;b<0?b=0:b>f&&(b=f),r[h]=b,l&=(1<<y)-1,v=y}}return r}},{key:"fillOpacity",value:function(t,r,n,a,o){var s,c,l,u,f,h,d=this.smask,g=this.mask;if(d)c=d.width,l=d.height,s=new Uint8ClampedArray(c*l),d.fillGrayBuffer(s),c===r&&l===n||(s=p(s,d.bpc,c,l,r,n));else if(g)if(g instanceof e){for(c=g.width,l=g.height,s=new Uint8ClampedArray(c*l),g.numComps=1,g.fillGrayBuffer(s),u=0,f=c*l;u<f;++u)s[u]=255-s[u];c===r&&l===n||(s=p(s,g.bpc,c,l,r,n))}else{if(!Array.isArray(g))throw new i.FormatError("Unknown mask format.");s=new Uint8ClampedArray(r*n);var m=this.numComps;for(u=0,f=r*n;u<f;++u){var v=0,y=u*m;for(h=0;h<m;++h){var b=o[y+h],w=2*h;if(b<g[w]||b>g[w+1]){v=255;break}}s[u]=v}}if(s)for(u=0,h=3,f=r*a;u<f;++u,h+=4)t[h]=s[u];else for(u=0,h=3,f=r*a;u<f;++u,h+=4)t[h]=255}},{key:"undoPreblend",value:function(e,t,r){var n=this.smask&&this.smask.matte;if(n)for(var a=this.colorSpace.getRgb(n,0),i=a[0],o=a[1],s=a[2],c=t*r*4,l=0;l<c;l+=4){var u=e[l+3];if(0!==u){var f=255/u;e[l]=(e[l]-i)*f+i,e[l+1]=(e[l+1]-o)*f+o,e[l+2]=(e[l+2]-s)*f+s}else e[l]=255,e[l+1]=255,e[l+2]=255}}},{key:"createImageData",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.drawWidth,n=this.drawHeight,a={width:r,height:n,interpolate:this.interpolate,kind:0,data:null},o=this.numComps,s=this.width,u=this.height,f=this.bpc,h=s*o*f+7>>3;if(!t){var d;if("DeviceGray"===this.colorSpace.name&&1===f?d=i.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==f||this.needsDecode||(d=i.ImageKind.RGB_24BPP),d&&!this.smask&&!this.mask&&r===s&&n===u){if(a.kind=d,e=this.getImageBytes(u*h),this.image instanceof c.DecodeStream)a.data=e;else{var p=new Uint8ClampedArray(e.length);p.set(e),a.data=p}if(this.needsDecode){(0,i.assert)(d===i.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var g=a.data,m=0,v=g.length;m<v;m++)g[m]^=255}return a}if(this.image instanceof l.JpegStream&&!this.smask&&!this.mask){var y=u*h;switch(this.colorSpace.name){case"DeviceGray":y*=3;case"DeviceRGB":case"DeviceCMYK":return a.kind=i.ImageKind.RGB_24BPP,a.data=this.getImageBytes(y,r,n,!0),a}}}var b,w,k=0|(e=this.getImageBytes(u*h)).length/h*n/u,S=this.getComponents(e);return t||this.smask||this.mask?(a.kind=i.ImageKind.RGBA_32BPP,a.data=new Uint8ClampedArray(r*n*4),b=1,w=!0,this.fillOpacity(a.data,r,n,k,S)):(a.kind=i.ImageKind.RGB_24BPP,a.data=new Uint8ClampedArray(r*n*3),b=0,w=!1),this.needsDecode&&this.decodeBuffer(S),this.colorSpace.fillRgb(a.data,s,u,r,n,k,f,S,b),w&&this.undoPreblend(a.data,r,k),a}},{key:"fillGrayBuffer",value:function(e){var t=this.numComps;if(1!==t)throw new i.FormatError("Reading gray scale from a color image: ".concat(t));var r,n,a=this.width,o=this.height,s=this.bpc,c=a*t*s+7>>3,l=this.getImageBytes(o*c),u=this.getComponents(l);if(1!==s){this.needsDecode&&this.decodeBuffer(u),n=a*o;var f=255/((1<<s)-1);for(r=0;r<n;++r)e[r]=f*u[r]}else if(n=a*o,this.needsDecode)for(r=0;r<n;++r)e[r]=u[r]-1&255;else for(r=0;r<n;++r)e[r]=255&-u[r]}},{key:"getImageBytes",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.image.reset(),this.image.drawWidth=t||this.width,this.image.drawHeight=r||this.height,this.image.forceRGB=!!n,this.image.getBytes(e,!0)}}],n=[{key:"buildImage",value:(g=a.default.mark((function t(r){var n,s,c,l,u,f,h,d,p,g,m,v;return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.xref,s=r.res,c=r.image,l=r.isInline,u=void 0!==l&&l,f=r.pdfFunctionFactory,h=r.localColorSpaceCache,d=c,p=null,g=null,m=c.dict.get("SMask"),v=c.dict.get("Mask"),m?p=m:v&&((0,o.isStream)(v)||Array.isArray(v)?g=v:(0,i.warn)("Unsupported mask format.")),t.abrupt("return",new e({xref:n,res:s,image:d,isInline:u,smask:p,mask:g,pdfFunctionFactory:f,localColorSpaceCache:h}));case 8:case"end":return t.stop()}}),t)})),m=function(){var e=this,t=arguments;return new Promise((function(r,n){var a=g.apply(e,t);function i(e){f(a,r,n,i,o,"next",e)}function o(e){f(a,r,n,i,o,"throw",e)}i(void 0)}))},function(e){return m.apply(this,arguments)})},{key:"createMask",value:function(e){var t,r,n=e.imgArray,a=e.width,i=e.height,o=e.imageIsFromDecodeStream,s=e.inverseDecode,c=e.interpolate,l=(a+7>>3)*i,u=n.byteLength;if(!o||s&&l!==u)if(s)for((t=new Uint8ClampedArray(l)).set(n),r=u;r<l;r++)t[r]=255;else(t=new Uint8ClampedArray(u)).set(n);else t=n;if(s)for(r=0;r<u;r++)t[r]^=255;return{data:t,width:a,height:i,interpolate:c}}}],r&&h(t.prototype,r),n&&h(t,n),e}();t.PDFImage=g},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Catalog=void 0;var n=r(118),a=r(122),i=r(4),o=r(178),s=r(137),c=r(179),l=r(171),u=r(180),f=r(182);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=g(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function g(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e){return e instanceof n.Dict&&(e=e.get("D")),Array.isArray(e)?e:null}var b=function(){function e(t,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pdfManager=t,this.xref=r,this._catDict=r.getCatalogObj(),!(0,n.isDict)(this._catDict))throw new i.FormatError("Catalog object is not a dictionary.");this.fontCache=new n.RefSetCache,this.builtInCMapCache=new Map,this.standardFontDataCache=new Map,this.globalImageCache=new l.GlobalImageCache,this.pageKidsCountCache=new n.RefSetCache,this.pageIndexCache=new n.RefSetCache,this.nonBlendModesSet=new n.RefSet}var t,r,b;return t=e,r=[{key:"version",get:function(){var e=this._catDict.get("Version");return(0,n.isName)(e)?(0,i.shadow)(this,"version",e.name):(0,i.shadow)(this,"version",null)}},{key:"needsRendering",get:function(){var e=this._catDict.get("NeedsRendering");return(0,i.isBool)(e)?(0,i.shadow)(this,"needsRendering",e):(0,i.shadow)(this,"needsRendering",!1)}},{key:"collection",get:function(){var e=null;try{var t=this._catDict.get("Collection");(0,n.isDict)(t)&&t.size>0&&(e=t)}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,i.shadow)(this,"collection",e)}},{key:"acroForm",get:function(){var e=null;try{var t=this._catDict.get("AcroForm");(0,n.isDict)(t)&&t.size>0&&(e=t)}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,i.shadow)(this,"acroForm",e)}},{key:"acroFormRef",get:function(){var e=this._catDict.getRaw("AcroForm");return(0,i.shadow)(this,"acroFormRef",(0,n.isRef)(e)?e:null)}},{key:"metadata",get:function(){var e=this._catDict.getRaw("Metadata");if(!(0,n.isRef)(e))return(0,i.shadow)(this,"metadata",null);var t=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),r=this.xref.fetch(e,t),o=null;if((0,n.isStream)(r)&&(0,n.isDict)(r.dict)){var s=r.dict.get("Type"),c=r.dict.get("Subtype");if((0,n.isName)(s,"Metadata")&&(0,n.isName)(c,"XML"))try{var l=(0,i.stringToUTF8String)(r.getString());l&&(o=new u.MetadataParser(l).serializable)}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.info)("Skipping invalid metadata.")}}return(0,i.shadow)(this,"metadata",o)}},{key:"markInfo",get:function(){var e=null;try{e=this._readMarkInfo()}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.warn)("Unable to read mark info.")}return(0,i.shadow)(this,"markInfo",e)}},{key:"_readMarkInfo",value:function(){var e=this._catDict.get("MarkInfo");if(!(0,n.isDict)(e))return null;var t=Object.assign(Object.create(null),{Marked:!1,UserProperties:!1,Suspects:!1});for(var r in t)if(e.has(r)){var a=e.get(r);(0,i.isBool)(a)&&(t[r]=a)}return t}},{key:"structTreeRoot",get:function(){var e=null;try{e=this._readStructTreeRoot()}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.warn)("Unable read to structTreeRoot info.")}return(0,i.shadow)(this,"structTreeRoot",e)}},{key:"_readStructTreeRoot",value:function(){var e=this._catDict.get("StructTreeRoot");if(!(0,n.isDict)(e))return null;var t=new f.StructTreeRoot(e);return t.init(),t}},{key:"toplevelPagesDict",get:function(){var e=this._catDict.get("Pages");if(!(0,n.isDict)(e))throw new i.FormatError("Invalid top-level pages dictionary.");return(0,i.shadow)(this,"toplevelPagesDict",e)}},{key:"documentOutline",get:function(){var e=null;try{e=this._readDocumentOutline()}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.warn)("Unable to read document outline.")}return(0,i.shadow)(this,"documentOutline",e)}},{key:"_readDocumentOutline",value:function(){var t=this._catDict.get("Outlines");if(!(0,n.isDict)(t))return null;if(t=t.getRaw("First"),!(0,n.isRef)(t))return null;var r={items:[]},a=[{obj:t,parent:r}],o=new n.RefSet;o.put(t);for(var c=this.xref,l=new Uint8ClampedArray(3);a.length>0;){var u=a.shift(),f=c.fetchIfRef(u.obj);if(null!==f){if(!f.has("Title"))throw new i.FormatError("Invalid outline item encountered.");var h={url:null,dest:null};e.parseDestDictionary({destDict:f,resultObj:h,docBaseUrl:this.pdfManager.docBaseUrl});var d=f.get("Title"),p=f.get("F")||0,g=f.getArray("C"),m=f.get("Count"),v=l;!Array.isArray(g)||3!==g.length||0===g[0]&&0===g[1]&&0===g[2]||(v=s.ColorSpace.singletons.rgb.getRgb(g,0));var y={dest:h.dest,url:h.url,unsafeUrl:h.unsafeUrl,newWindow:h.newWindow,title:(0,i.stringToPDFString)(d),color:v,count:Number.isInteger(m)?m:void 0,bold:!!(2&p),italic:!!(1&p),items:[]};u.parent.items.push(y),t=f.getRaw("First"),(0,n.isRef)(t)&&!o.has(t)&&(a.push({obj:t,parent:y}),o.put(t)),t=f.getRaw("Next"),(0,n.isRef)(t)&&!o.has(t)&&(a.push({obj:t,parent:u.parent}),o.put(t))}}return r.items.length>0?r.items:null}},{key:"permissions",get:function(){var e=null;try{e=this._readPermissions()}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.warn)("Unable to read permissions.")}return(0,i.shadow)(this,"permissions",e)}},{key:"_readPermissions",value:function(){var e=this.xref.trailer.get("Encrypt");if(!(0,n.isDict)(e))return null;var t=e.get("P");if(!(0,i.isNum)(t))return null;t+=Math.pow(2,32);var r=[];for(var a in i.PermissionFlag){var o=i.PermissionFlag[a];t&o&&r.push(o)}return r}},{key:"optionalContentConfig",get:function(){var e=null;try{var t=this._catDict.get("OCProperties");if(!t)return(0,i.shadow)(this,"optionalContentConfig",null);var r=t.get("D");if(!r)return(0,i.shadow)(this,"optionalContentConfig",null);var o=t.get("OCGs");if(!Array.isArray(o))return(0,i.shadow)(this,"optionalContentConfig",null);var s,c=[],l=[],u=p(o);try{for(u.s();!(s=u.n()).done;){var f=s.value;if((0,n.isRef)(f)){l.push(f);var h=this.xref.fetchIfRef(f);c.push({id:f.toString(),name:(0,i.isString)(h.get("Name"))?(0,i.stringToPDFString)(h.get("Name")):null,intent:(0,i.isString)(h.get("Intent"))?(0,i.stringToPDFString)(h.get("Intent")):null})}}}catch(e){u.e(e)}finally{u.f()}(e=this._readOptionalContentConfig(r,l)).groups=c}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.warn)("Unable to read optional content config: ".concat(e))}return(0,i.shadow)(this,"optionalContentConfig",e)}},{key:"_readOptionalContentConfig",value:function(e,t){function r(e){var r=[];if(Array.isArray(e)){var a,i=p(e);try{for(i.s();!(a=i.n()).done;){var o=a.value;(0,n.isRef)(o)&&t.includes(o)&&r.push(o.toString())}}catch(e){i.e(e)}finally{i.f()}}return r}function a(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Array.isArray(e))return null;var a,i=[],s=p(e);try{for(s.s();!(a=s.n()).done;){var l=a.value;if((0,n.isRef)(l)&&t.includes(l))c.put(l),i.push(l.toString());else{var u=o(l,r);u&&i.push(u)}}}catch(e){s.e(e)}finally{s.f()}if(r>0)return i;var f,h=[],d=p(t);try{for(d.s();!(f=d.n()).done;){var g=f.value;c.has(g)||h.push(g.toString())}}catch(e){d.e(e)}finally{d.f()}return h.length&&i.push({name:null,order:h}),i}function o(e,t){if(++t>l)return(0,i.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;var r=s.fetchIfRef(e);if(!Array.isArray(r))return null;var n=s.fetchIfRef(r[0]);if("string"!=typeof n)return null;var o=a(r.slice(1),t);return o&&o.length?{name:(0,i.stringToPDFString)(n),order:o}:null}var s=this.xref,c=new n.RefSet,l=10;return{name:(0,i.isString)(e.get("Name"))?(0,i.stringToPDFString)(e.get("Name")):null,creator:(0,i.isString)(e.get("Creator"))?(0,i.stringToPDFString)(e.get("Creator")):null,baseState:(0,n.isName)(e.get("BaseState"))?e.get("BaseState").name:null,on:r(e.get("ON")),off:r(e.get("OFF")),order:a(e.get("Order")),groups:null}}},{key:"numPages",get:function(){var e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new i.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,i.shadow)(this,"numPages",e)}},{key:"destinations",get:function(){var e=this._readDests(),t=Object.create(null);if(e instanceof o.NameTree){var r,a=p(e.getAll());try{for(a.s();!(r=a.n()).done;){var s=d(r.value,2),c=s[0],l=y(s[1]);l&&(t[c]=l)}}catch(e){a.e(e)}finally{a.f()}}else e instanceof n.Dict&&e.forEach((function(e,r){var n=y(r);n&&(t[e]=n)}));return(0,i.shadow)(this,"destinations",t)}},{key:"getDestination",value:function(e){var t=this._readDests();if(t instanceof o.NameTree){var r=y(t.get(e));if(r)return r;var a=this.destinations[e];if(a)return(0,i.warn)('Found "'.concat(e,'" at an incorrect position in the NameTree.')),a}else if(t instanceof n.Dict){var s=y(t.get(e));if(s)return s}return null}},{key:"_readDests",value:function(){var e=this._catDict.get("Names");return e&&e.has("Dests")?new o.NameTree(e.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}},{key:"pageLabels",get:function(){var e=null;try{e=this._readPageLabels()}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.warn)("Unable to read page labels.")}return(0,i.shadow)(this,"pageLabels",e)}},{key:"_readPageLabels",value:function(){var e=this._catDict.getRaw("PageLabels");if(!e)return null;for(var t=new Array(this.numPages),r=null,s="",c=new o.NumberTree(e,this.xref).getAll(),l="",u=1,f=0,h=this.numPages;f<h;f++){var d=c.get(f);if(void 0!==d){if(!(0,n.isDict)(d))throw new i.FormatError("PageLabel is not a dictionary.");if(d.has("Type")&&!(0,n.isName)(d.get("Type"),"PageLabel"))throw new i.FormatError("Invalid type in PageLabel dictionary.");if(d.has("S")){var p=d.get("S");if(!(0,n.isName)(p))throw new i.FormatError("Invalid style in PageLabel dictionary.");r=p.name}else r=null;if(d.has("P")){var g=d.get("P");if(!(0,i.isString)(g))throw new i.FormatError("Invalid prefix in PageLabel dictionary.");s=(0,i.stringToPDFString)(g)}else s="";if(d.has("St")){var m=d.get("St");if(!(Number.isInteger(m)&&m>=1))throw new i.FormatError("Invalid start in PageLabel dictionary.");u=m}else u=1}switch(r){case"D":l=u;break;case"R":case"r":l=(0,a.toRomanNumerals)(u,"r"===r);break;case"A":case"a":for(var v="a"===r?97:65,y=u-1,b=String.fromCharCode(v+y%26),w=[],k=0,S=y/26|0;k<=S;k++)w.push(b);l=w.join("");break;default:if(r)throw new i.FormatError('Invalid style "'.concat(r,'" in PageLabel dictionary.'));l=""}t[f]=s+l,u++}return t}},{key:"pageLayout",get:function(){var e=this._catDict.get("PageLayout"),t="";if((0,n.isName)(e))switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return(0,i.shadow)(this,"pageLayout",t)}},{key:"pageMode",get:function(){var e=this._catDict.get("PageMode"),t="UseNone";if((0,n.isName)(e))switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,i.shadow)(this,"pageMode",t)}},{key:"viewerPreferences",get:function(){var e=this,t={HideToolbar:i.isBool,HideMenubar:i.isBool,HideWindowUI:i.isBool,FitWindow:i.isBool,CenterWindow:i.isBool,DisplayDocTitle:i.isBool,NonFullScreenPageMode:n.isName,Direction:n.isName,ViewArea:n.isName,ViewClip:n.isName,PrintArea:n.isName,PrintClip:n.isName,PrintScaling:n.isName,Duplex:n.isName,PickTrayByPDFSize:i.isBool,PrintPageRange:Array.isArray,NumCopies:Number.isInteger},r=this._catDict.get("ViewerPreferences"),a=null;if((0,n.isDict)(r))for(var o in t)if(r.has(o)){var s=r.get(o);if(t[o](s)){var c=void 0;switch(o){case"NonFullScreenPageMode":switch(s.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":c=s.name;break;default:c="UseNone"}break;case"Direction":switch(s.name){case"L2R":case"R2L":c=s.name;break;default:c="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":switch(s.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":c=s.name;break;default:c="CropBox"}break;case"PrintScaling":switch(s.name){case"None":case"AppDefault":c=s.name;break;default:c="AppDefault"}break;case"Duplex":switch(s.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":c=s.name;break;default:c="None"}break;case"PrintPageRange":if(s.length%2!=0)break;s.every((function(t,r,n){return Number.isInteger(t)&&t>0&&(0===r||t>=n[r-1])&&t<=e.numPages}))&&(c=s);break;case"NumCopies":s>0&&(c=s);break;default:if("boolean"!=typeof s)throw new i.FormatError("viewerPreferences - expected a boolean value for: ".concat(o));c=s}void 0!==c?(a||(a=Object.create(null)),a[o]=c):(0,i.info)('Bad value in ViewerPreferences for "'.concat(o,'".'))}else(0,i.info)('Bad value in ViewerPreferences for "'.concat(o,'".'))}return(0,i.shadow)(this,"viewerPreferences",a)}},{key:"openAction",get:function(){var t=this._catDict.get("OpenAction"),r=Object.create(null);if((0,n.isDict)(t)){var a=new n.Dict(this.xref);a.set("A",t);var o={url:null,dest:null,action:null};e.parseDestDictionary({destDict:a,resultObj:o}),Array.isArray(o.dest)?r.dest=o.dest:o.action&&(r.action=o.action)}else Array.isArray(t)&&(r.dest=t);return(0,i.shadow)(this,"openAction",(0,i.objectSize)(r)>0?r:null)}},{key:"attachments",get:function(){var e=this._catDict.get("Names"),t=null;if(e instanceof n.Dict&&e.has("EmbeddedFiles")){var r,a=p(new o.NameTree(e.getRaw("EmbeddedFiles"),this.xref).getAll());try{for(a.s();!(r=a.n()).done;){var s=d(r.value,2),l=s[0],u=s[1],f=new c.FileSpec(u,this.xref);t||(t=Object.create(null)),t[(0,i.stringToPDFString)(l)]=f.serializable}}catch(e){a.e(e)}finally{a.f()}}return(0,i.shadow)(this,"attachments",t)}},{key:"xfaImages",get:function(){var e=this._catDict.get("Names"),t=null;if(e instanceof n.Dict&&e.has("XFAImages")){var r,a=p(new o.NameTree(e.getRaw("XFAImages"),this.xref).getAll());try{for(a.s();!(r=a.n()).done;){var s=d(r.value,2),c=s[0],l=s[1];t||(t=new n.Dict(this.xref)),t.set(c,l)}}catch(e){a.e(e)}finally{a.f()}}return(0,i.shadow)(this,"xfaImages",t)}},{key:"_collectJavaScript",value:function(){var e=this._catDict.get("Names"),t=null;function r(e,r){if(r instanceof n.Dict&&(0,n.isName)(r.get("S"),"JavaScript")){var a=r.get("JS");if((0,n.isStream)(a))a=a.getString();else if("string"!=typeof a)return;null===t&&(t=new Map),t.set(e,(0,i.stringToPDFString)(a))}}if(e instanceof n.Dict&&e.has("JavaScript")){var a,s=p(new o.NameTree(e.getRaw("JavaScript"),this.xref).getAll());try{for(s.s();!(a=s.n()).done;){var c=d(a.value,2);r(c[0],c[1])}}catch(e){s.e(e)}finally{s.f()}}var l=this._catDict.get("OpenAction");return l&&r("OpenAction",l),t}},{key:"javaScript",get:function(){var e,t=this._collectJavaScript();return(0,i.shadow)(this,"javaScript",t?function(e){if(Array.isArray(e))return m(e)}(e=t.values())||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():null)}},{key:"jsActions",get:function(){var e=this._collectJavaScript(),t=(0,a.collectActions)(this.xref,this._catDict,i.DocumentActionEventType);if(e){t||(t=Object.create(null));var r,n=p(e);try{for(n.s();!(r=n.n()).done;){var o=d(r.value,2),s=o[0],c=o[1];s in t?t[s].push(c):t[s]=[c]}}catch(e){n.e(e)}finally{n.f()}}return(0,i.shadow)(this,"jsActions",t)}},{key:"fontFallback",value:function(e,t){var r=[];return this.fontCache.forEach((function(e){r.push(e)})),Promise.all(r).then((function(r){var n,a=p(r);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(i.loadedName===e)return void i.fallback(t)}}catch(e){a.e(e)}finally{a.f()}}))}},{key:"cleanup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,n.clearPrimitiveCaches)(),this.globalImageCache.clear(t),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.nonBlendModesSet.clear();var r=[];return this.fontCache.forEach((function(e){r.push(e)})),Promise.all(r).then((function(t){var r,n=p(t);try{for(n.s();!(r=n.n()).done;)delete r.value.dict.cacheKey}catch(e){n.e(e)}finally{n.f()}e.fontCache.clear(),e.builtInCMapCache.clear(),e.standardFontDataCache.clear()}))}},{key:"getPageDict",value:function(e){var t,r=(0,i.createPromiseCapability)(),a=[this._catDict.getRaw("Pages")],o=new n.RefSet,s=this.xref,c=this.pageKidsCountCache,l=0;return function u(){for(var f=function(){var f=a.pop();if((0,n.isRef)(f))return(t=c.get(f))>0&&l+t<e?(l+=t,"continue"):o.has(f)?(r.reject(new i.FormatError("Pages tree contains circular reference.")),{v:void 0}):(o.put(f),s.fetchAsync(f).then((function(t){(0,n.isDict)(t,"Page")||(0,n.isDict)(t)&&!t.has("Kids")?e===l?(f&&!c.has(f)&&c.put(f,1),r.resolve([t,f])):(l++,u()):(a.push(t),u())}),r.reject),{v:void 0});if(!(0,n.isDict)(f))return r.reject(new i.FormatError("Page dictionary kid reference points to wrong type of object.")),{v:void 0};if(t=f.get("Count"),Number.isInteger(t)&&t>=0){var h=f.objId;if(h&&!c.has(h)&&c.put(h,t),l+t<=e)return l+=t,"continue"}var d=f.get("Kids");if(!Array.isArray(d))return(0,n.isName)(f.get("Type"),"Page")||!f.has("Type")&&f.has("Contents")?l===e?(r.resolve([f,null]),{v:void 0}):(l++,"continue"):(r.reject(new i.FormatError("Page dictionary kids object is not an array.")),{v:void 0});for(var p=d.length-1;p>=0;p--)a.push(d[p])};a.length;){var d=f();if("continue"!==d&&"object"===h(d))return d.v}r.reject(new Error("Page index ".concat(e," not found.")))}(),r.promise}},{key:"getPageIndex",value:function(e){var t=this,r=this.pageIndexCache.get(e);if(void 0!==r)return Promise.resolve(r);var a=this.xref,o=0;return function r(s){return function(t){var r,o=0;return a.fetchAsync(t).then((function(a){if((0,n.isRefsEqual)(t,e)&&!(0,n.isDict)(a,"Page")&&(!(0,n.isDict)(a)||a.has("Type")||!a.has("Contents")))throw new i.FormatError("The reference does not point to a /Page dictionary.");if(!a)return null;if(!(0,n.isDict)(a))throw new i.FormatError("Node must be a dictionary.");return r=a.getRaw("Parent"),a.getAsync("Parent")})).then((function(e){if(!e)return null;if(!(0,n.isDict)(e))throw new i.FormatError("Parent must be a dictionary.");return e.getAsync("Kids")})).then((function(e){if(!e)return null;for(var s=[],c=!1,l=0,u=e.length;l<u;l++){var f=e[l];if(!(0,n.isRef)(f))throw new i.FormatError("Kid must be a reference.");if((0,n.isRefsEqual)(f,t)){c=!0;break}s.push(a.fetchAsync(f).then((function(e){if(!(0,n.isDict)(e))throw new i.FormatError("Kid node must be a dictionary.");e.has("Count")?o+=e.get("Count"):o++})))}if(!c)throw new i.FormatError("Kid reference not found in parent's kids.");return Promise.all(s).then((function(){return[o,r]}))}))}(s).then((function(n){if(!n)return t.pageIndexCache.put(e,o),o;var a=d(n,2),i=a[0],s=a[1];return o+=i,r(s)}))}(e)}}],b=[{key:"parseDestDictionary",value:function(e){var t=e.destDict;if((0,n.isDict)(t)){var r=e.resultObj;if("object"===h(r)){var o,s,c=e.docBaseUrl||null,l=t.get("A");if((0,n.isDict)(l)||(t.has("Dest")?l=t.get("Dest"):(l=t.get("AA"),(0,n.isDict)(l)&&(l.has("D")?l=l.get("D"):l.has("U")&&(l=l.get("U"))))),(0,n.isDict)(l)){var u=l.get("S");if(!(0,n.isName)(u))return void(0,i.warn)("parseDestDictionary: Invalid type in Action dictionary.");var f=u.name;switch(f){case"ResetForm":var d,g=l.get("Flags"),m=0==(1&((0,i.isNum)(g)?g:0)),v=[],y=[],b=p(l.get("Fields")||[]);try{for(b.s();!(d=b.n()).done;){var w=d.value;(0,n.isRef)(w)?y.push(w.toString()):(0,i.isString)(w)&&v.push((0,i.stringToPDFString)(w))}}catch(e){b.e(e)}finally{b.f()}r.resetForm={fields:v,refs:y,include:m};break;case"URI":(o=l.get("URI"))instanceof n.Name&&(o="/"+o.name);break;case"GoTo":s=l.get("D");break;case"Launch":case"GoToR":var k=l.get("F");(0,n.isDict)(k)?o=k.get("F")||null:(0,i.isString)(k)&&(o=k);var S=l.get("D");if(S&&((0,n.isName)(S)&&(S=S.name),(0,i.isString)(o))){var x=o.split("#")[0];(0,i.isString)(S)?o=x+"#"+S:Array.isArray(S)&&(o=x+"#"+JSON.stringify(S))}var A=l.get("NewWindow");(0,i.isBool)(A)&&(r.newWindow=A);break;case"Named":var O=l.get("N");(0,n.isName)(O)&&(r.action=O.name);break;case"JavaScript":var C,F=l.get("JS");(0,n.isStream)(F)?C=F.getString():(0,i.isString)(F)&&(C=F);var T=C&&(0,a.recoverJsURL)((0,i.stringToPDFString)(C));if(T){o=T.url,r.newWindow=T.newWindow;break}default:if("JavaScript"===f||"SubmitForm"===f)break;(0,i.warn)('parseDestDictionary - unsupported action: "'.concat(f,'".'))}}else t.has("Dest")&&(s=t.get("Dest"));if((0,i.isString)(o)){var I=(0,i.createValidAbsoluteUrl)(o,c,{addDefaultProtocol:!0,tryConvertEncoding:!0});I&&(r.url=I.href),r.unsafeUrl=o}s&&((0,n.isName)(s)&&(s=s.name),((0,i.isString)(s)||Array.isArray(s))&&(r.dest=s))}else(0,i.warn)("parseDestDictionary: `resultObj` must be an object.")}else(0,i.warn)("parseDestDictionary: `destDict` must be a dictionary.")}}],r&&v(t.prototype,r),b&&v(t,b),e}();t.Catalog=b},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.NumberTree=t.NameTree=void 0;var a=r(4),i=r(118);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=u(e);if(t){var a=u(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var d=function(){function e(t,r,n){f(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize NameOrNumberTree."),this.root=t,this.xref=r,this._type=n}var t,r;return t=e,(r=[{key:"getAll",value:function(){var e=new Map;if(!this.root)return e;var t=this.xref,r=new i.RefSet;r.put(this.root);for(var n=[this.root];n.length>0;){var o=t.fetchIfRef(n.shift());if((0,i.isDict)(o))if(o.has("Kids"))for(var s=o.get("Kids"),c=0,l=s.length;c<l;c++){var u=s[c];if(r.has(u))throw new a.FormatError('Duplicate entry in "'.concat(this._type,'" tree.'));n.push(u),r.put(u)}else{var f=o.get(this._type);if(Array.isArray(f))for(var h=0,d=f.length;h<d;h+=2)e.set(t.fetchIfRef(f[h]),t.fetchIfRef(f[h+1]))}}return e}},{key:"get",value:function(e){if(!this.root)return null;for(var t=this.xref,r=t.fetchIfRef(this.root),n=0;r.has("Kids");){if(++n>10)return(0,a.warn)('Search depth limit reached for "'.concat(this._type,'" tree.')),null;var i=r.get("Kids");if(!Array.isArray(i))return null;for(var o=0,s=i.length-1;o<=s;){var c=o+s>>1,l=t.fetchIfRef(i[c]).get("Limits");if(e<t.fetchIfRef(l[0]))s=c-1;else{if(!(e>t.fetchIfRef(l[1]))){r=t.fetchIfRef(i[c]);break}o=c+1}}if(o>s)return null}var u=r.get(this._type);if(Array.isArray(u))for(var f=0,h=u.length-2;f<=h;){var d=f+h>>1,p=d+(1&d),g=t.fetchIfRef(u[p]);if(e<g)h=p-2;else{if(!(e>g))return t.fetchIfRef(u[p+1]);f=p+2}}return null}}])&&h(t.prototype,r),e}(),p=function(e){o(r,e);var t=c(r);function r(e,n){return f(this,r),t.call(this,e,n,"Names")}return r}(d);t.NameTree=p;var g=function(e){o(r,e);var t=c(r);function r(e,n){return f(this,r),t.call(this,e,n,"Nums")}return r}(d);t.NumberTree=g},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileSpec=void 0;var n=r(118),a=r(4);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e){return e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null}var s=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(0,n.isDict)(t)&&(this.xref=r,this.root=t,t.has("FS")&&(this.fs=t.get("FS")),this.description=t.has("Desc")?(0,a.stringToPDFString)(t.get("Desc")):"",t.has("RF")&&(0,a.warn)("Related file specifications are not supported"),this.contentAvailable=!0,t.has("EF")||(this.contentAvailable=!1,(0,a.warn)("Non-embedded file specifications are not supported")))}var t,r;return t=e,(r=[{key:"filename",get:function(){if(!this._filename&&this.root){var e=o(this.root)||"unnamed";this._filename=(0,a.stringToPDFString)(e).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename}},{key:"content",get:function(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=o(this.root.get("EF")));var e=null;if(this.contentRef){var t=this.xref.fetchIfRef(this.contentRef);t&&(0,n.isStream)(t)?e=t.getBytes():(0,a.warn)("Embedded file specification points to non-existing/invalid content")}else(0,a.warn)("Embedded file specification does not have a content");return e}},{key:"serializable",get:function(){return{filename:this.filename,content:this.content}}}])&&i(t.prototype,r),e}();t.FileSpec=s},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataParser=void 0;var n=r(181);function a(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw o}}}}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this._repair(t);var r=new n.SimpleXMLParser({lowerCaseName:!0}).parseFromString(t);this._metadataMap=new Map,this._data=t,r&&this._parse(r)}var t,r;return t=e,(r=[{key:"_repair",value:function(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(e,t){for(var r=t.replace(/\\([0-3])([0-7])([0-7])/g,(function(e,t,r,n){return String.fromCharCode(64*t+8*r+1*n)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(t," isn't defined."))})),n=[],a=0,i=r.length;a<i;a+=2){var o=256*r.charCodeAt(a)+r.charCodeAt(a+1);o>=32&&o<127&&60!==o&&62!==o&&38!==o?n.push(String.fromCharCode(o)):n.push("&#x"+(65536+o).toString(16).substring(1)+";")}return">"+n.join("")}))}},{key:"_getSequence",value:function(e){var t=e.nodeName;return"rdf:bag"!==t&&"rdf:seq"!==t&&"rdf:alt"!==t?null:e.childNodes.filter((function(e){return"rdf:li"===e.nodeName}))}},{key:"_parseArray",value:function(e){if(e.hasChildNodes()){var t=(n=e.childNodes,a=1,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(n,a)||i(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],r=this._getSequence(t)||[];this._metadataMap.set(e.nodeName,r.map((function(e){return e.textContent.trim()})))}var n,a}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName)for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName;)t=t.nextSibling;if(t&&"rdf:rdf"===t.nodeName&&t.hasChildNodes()){var r,n=a(t.childNodes);try{for(n.s();!(r=n.n()).done;){var i=r.value;if("rdf:description"===i.nodeName){var o,s=a(i.childNodes);try{for(s.s();!(o=s.n()).done;){var c=o.value,l=c.nodeName;switch(l){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(c);continue}this._metadataMap.set(l,c.textContent.trim())}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){n.e(e)}finally{n.f()}}}},{key:"serializable",get:function(){return{parsedData:this._metadataMap,rawData:this._data}}}])&&s(t.prototype,r),e}();t.MetadataParser=c},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.XMLParserErrorCode=t.XMLParserBase=t.SimpleXMLParser=t.SimpleDOMNode=void 0;var a=r(122);function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),e}var g={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function m(e,t){var r=e[t];return" "===r||"\n"===r||"\r"===r||"\t"===r}t.XMLParserErrorCode=g;var v=function(){function e(){h(this,e)}return p(e,[{key:"_resolveEntities",value:function(e){var t=this;return e.replace(/&([^;]+);/g,(function(e,r){if("#x"===r.substring(0,2))return String.fromCodePoint(parseInt(r.substring(2),16));if("#"===r.substring(0,1))return String.fromCodePoint(parseInt(r.substring(1),10));switch(r){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return t.onResolveEntity(r)}))}},{key:"_parseContent",value:function(e,t){var r=[],n=t;function a(){for(;n<e.length&&m(e,n);)++n}for(;n<e.length&&!m(e,n)&&">"!==e[n]&&"/"!==e[n];)++n;var i=e.substring(t,n);for(a();n<e.length&&">"!==e[n]&&"/"!==e[n]&&"?"!==e[n];){a();for(var o,s="";n<e.length&&!m(e,n)&&"="!==e[n];)s+=e[n],++n;if(a(),"="!==e[n])return null;++n,a();var c=e[n];if('"'!==c&&"'"!==c)return null;var l=e.indexOf(c,++n);if(l<0)return null;o=e.substring(n,l),r.push({name:s,value:this._resolveEntities(o)}),n=l+1,a()}return{name:i,attributes:r,parsed:n-t}}},{key:"_parseProcessingInstruction",value:function(e,t){for(var r=t;r<e.length&&!m(e,r)&&">"!==e[r]&&"?"!==e[r]&&"/"!==e[r];)++r;var n=e.substring(t,r);!function(){for(;r<e.length&&m(e,r);)++r}();for(var a=r;r<e.length&&("?"!==e[r]||">"!==e[r+1]);)++r;return{name:n,value:e.substring(a,r),parsed:r-t}}},{key:"parseXml",value:function(e){for(var t=0;t<e.length;){var r=t;if("<"===e[t]){var n=void 0;switch(e[++r]){case"/":if(++r,(n=e.indexOf(">",r))<0)return void this.onError(g.UnterminatedElement);this.onEndElement(e.substring(r,n)),r=n+1;break;case"?":++r;var a=this._parseProcessingInstruction(e,r);if("?>"!==e.substring(r+a.parsed,r+a.parsed+2))return void this.onError(g.UnterminatedXmlDeclaration);this.onPi(a.name,a.value),r+=a.parsed+2;break;case"!":if("--"===e.substring(r+1,r+3)){if((n=e.indexOf("--\x3e",r+3))<0)return void this.onError(g.UnterminatedComment);this.onComment(e.substring(r+3,n)),r=n+3}else if("[CDATA["===e.substring(r+1,r+8)){if((n=e.indexOf("]]>",r+8))<0)return void this.onError(g.UnterminatedCdat);this.onCdata(e.substring(r+8,n)),r=n+3}else{if("DOCTYPE"!==e.substring(r+1,r+8))return void this.onError(g.MalformedElement);var i=e.indexOf("[",r+8),o=!1;if((n=e.indexOf(">",r+8))<0)return void this.onError(g.UnterminatedDoctypeDeclaration);if(i>0&&n>i){if((n=e.indexOf("]>",r+8))<0)return void this.onError(g.UnterminatedDoctypeDeclaration);o=!0}var s=e.substring(r+8,n+(o?1:0));this.onDoctype(s),r=n+(o?2:1)}break;default:var c=this._parseContent(e,r);if(null===c)return void this.onError(g.MalformedElement);var l=!1;if("/>"===e.substring(r+c.parsed,r+c.parsed+2))l=!0;else if(">"!==e.substring(r+c.parsed,r+c.parsed+1))return void this.onError(g.UnterminatedElement);this.onBeginElement(c.name,c.attributes,l),r+=c.parsed+(l?2:1)}}else{for(;r<e.length&&"<"!==e[r];)r++;var u=e.substring(t,r);this.onText(this._resolveEntities(u))}t=r}}},{key:"onResolveEntity",value:function(e){return"&".concat(e,";")}},{key:"onPi",value:function(e,t){}},{key:"onComment",value:function(e){}},{key:"onCdata",value:function(e){}},{key:"onDoctype",value:function(e){}},{key:"onText",value:function(e){}},{key:"onBeginElement",value:function(e,t,r){}},{key:"onEndElement",value:function(e){}},{key:"onError",value:function(e){}}]),e}();t.XMLParserBase=v;var y=function(){function e(t,r){h(this,e),this.nodeName=t,this.nodeValue=r,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return p(e,[{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var e=this.parentNode.childNodes;if(e){var t=e.indexOf(this);if(-1!==t)return e[t+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map((function(e){return e.textContent})).join(""):this.nodeValue||""}},{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"searchNode",value:function(e,t){if(t>=e.length)return this;for(var r=e[t],n=[],a=this;;){if(r.name===a.nodeName){if(0!==r.pos){if(0===n.length)return null;var i,o=0,s=c(l(n.pop(),1)[0].childNodes);try{for(s.s();!(i=s.n()).done;){var u=i.value;if(r.name===u.nodeName){if(o===r.pos)return u.searchNode(e,t+1);o++}}}catch(e){s.e(e)}finally{s.f()}return a.searchNode(e,t+1)}var f=a.searchNode(e,t+1);if(null!==f)return f}if(a.childNodes&&0!==a.childNodes.length)n.push([a,0]),a=a.childNodes[0];else{if(0===n.length)return null;for(;0!==n.length;){var h=l(n.pop(),2),d=h[0],p=h[1]+1;if(p<d.childNodes.length){n.push([d,p]),a=d.childNodes[p];break}}if(0===n.length)return null}}}},{key:"dump",value:function(e){if("#text"!==this.nodeName){if(e.push("<".concat(this.nodeName)),this.attributes){var t,r=c(this.attributes);try{for(r.s();!(t=r.n()).done;){var n=t.value;e.push(" ".concat(n.name,'="').concat((0,a.encodeToXmlString)(n.value),'"'))}}catch(e){r.e(e)}finally{r.f()}}if(this.hasChildNodes()){e.push(">");var i,o=c(this.childNodes);try{for(o.s();!(i=o.n()).done;)i.value.dump(e)}catch(e){o.e(e)}finally{o.f()}e.push("</".concat(this.nodeName,">"))}else this.nodeValue?e.push(">".concat((0,a.encodeToXmlString)(this.nodeValue),"</").concat(this.nodeName,">")):e.push("/>")}else e.push((0,a.encodeToXmlString)(this.nodeValue))}}]),e}();t.SimpleDOMNode=y;var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(a,e);var t,r,n=(t=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,n=s(t);if(r){var a=s(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return o(this,e)});function a(e){var t,r=e.hasAttributes,i=void 0!==r&&r,o=e.lowerCaseName,s=void 0!==o&&o;return h(this,a),(t=n.call(this))._currentFragment=null,t._stack=null,t._errorCode=g.NoError,t._hasAttributes=i,t._lowerCaseName=s,t}return p(a,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=g.NoError,this.parseXml(e),this._errorCode===g.NoError){var t=l(this._currentFragment,1)[0];if(t)return{documentElement:t}}}},{key:"onText",value:function(e){if(!function(e){for(var t=0,r=e.length;t<r;t++)if(!m(e,t))return!1;return!0}(e)){var t=new y("#text",e);this._currentFragment.push(t)}}},{key:"onCdata",value:function(e){var t=new y("#text",e);this._currentFragment.push(t)}},{key:"onBeginElement",value:function(e,t,r){this._lowerCaseName&&(e=e.toLowerCase());var n=new y(e);n.childNodes=[],this._hasAttributes&&(n.attributes=t),this._currentFragment.push(n),r||(this._stack.push(this._currentFragment),this._currentFragment=n.childNodes)}},{key:"onEndElement",value:function(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment[this._currentFragment.length-1];if(t)for(var r=0,n=t.childNodes.length;r<n;r++)t.childNodes[r].parentNode=t}},{key:"onError",value:function(e){this._errorCode=e}}]),a}(v);t.SimpleXMLParser=b},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StructTreeRoot=t.StructTreePage=void 0;var n=r(118),a=r(4),i=r(178);function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e}var f="PAGE_CONTENT",h="STREAM_CONTENT",d="OBJECT",p="ELEMENT",g=function(){function e(t){c(this,e),this.dict=t,this.roleMap=new Map}return u(e,[{key:"init",value:function(){this.readRoleMap()}},{key:"readRoleMap",value:function(){var e=this,t=this.dict.get("RoleMap");(0,n.isDict)(t)&&t.forEach((function(t,r){(0,n.isName)(r)&&e.roleMap.set(t,r.name)}))}}]),e}();t.StructTreeRoot=g;var m=function(){function e(t,r){c(this,e),this.tree=t,this.dict=r,this.kids=[],this.parseKids()}return u(e,[{key:"role",get:function(){var e=this.dict.get("S"),t=(0,n.isName)(e)?e.name:"",r=this.tree.root;return r.roleMap.has(t)?r.roleMap.get(t):t}},{key:"parseKids",value:function(){var e=null,t=this.dict.getRaw("Pg");(0,n.isRef)(t)&&(e=t.toString());var r=this.dict.get("K");if(Array.isArray(r)){var a,i=o(r);try{for(i.s();!(a=i.n()).done;){var s=a.value,c=this.parseKid(e,s);c&&this.kids.push(c)}}catch(e){i.e(e)}finally{i.f()}}else{var l=this.parseKid(e,r);l&&this.kids.push(l)}}},{key:"parseKid",value:function(e,t){if(Number.isInteger(t))return this.tree.pageDict.objId!==e?null:new v({type:f,mcid:t,pageObjId:e});var r=null;if((0,n.isRef)(t)?r=this.dict.xref.fetch(t):(0,n.isDict)(t)&&(r=t),!r)return null;var a=r.getRaw("Pg");(0,n.isRef)(a)&&(e=a.toString());var i=(0,n.isName)(r.get("Type"))?r.get("Type").name:null;return"MCR"===i?this.tree.pageDict.objId!==e?null:new v({type:h,refObjId:(0,n.isRef)(r.getRaw("Stm"))?r.getRaw("Stm").toString():null,pageObjId:e,mcid:r.get("MCID")}):"OBJR"===i?this.tree.pageDict.objId!==e?null:new v({type:d,refObjId:(0,n.isRef)(r.getRaw("Obj"))?r.getRaw("Obj").toString():null,pageObjId:e}):new v({type:p,dict:r})}}]),e}(),v=function e(t){var r=t.type,n=t.dict,a=void 0===n?null:n,i=t.mcid,o=void 0===i?null:i,s=t.pageObjId,l=void 0===s?null:s,u=t.refObjId,f=void 0===u?null:u;c(this,e),this.type=r,this.dict=a,this.mcid=o,this.pageObjId=l,this.refObjId=f,this.parentNode=null},y=function(){function e(t,r){c(this,e),this.root=t,this.rootDict=t?t.dict:null,this.pageDict=r,this.nodes=[]}return u(e,[{key:"parse",value:function(){if(this.root&&this.rootDict){var e=this.rootDict.get("ParentTree");if(e){var t=this.pageDict.get("StructParents");if(Number.isInteger(t)){var r=new i.NumberTree(e,this.rootDict.xref).get(t);if(Array.isArray(r)){var a,s=new Map,c=o(r);try{for(c.s();!(a=c.n()).done;){var l=a.value;(0,n.isRef)(l)&&this.addNode(this.rootDict.xref.fetch(l),s)}}catch(e){c.e(e)}finally{c.f()}}}}}}},{key:"addNode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r>40)return(0,a.warn)("StructTree MAX_DEPTH reached."),null;if(t.has(e))return t.get(e);var i=new m(this,e);t.set(e,i);var s=e.get("P");if(!s||(0,n.isName)(s.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(e,i)||t.delete(e),i;var c=this.addNode(s,t,r+1);if(!c)return i;var l,u=!1,f=o(c.kids);try{for(f.s();!(l=f.n()).done;){var h=l.value;h.type===p&&h.dict===e&&(h.parentNode=i,u=!0)}}catch(e){f.e(e)}finally{f.f()}return u||t.delete(e),i}},{key:"addTopLevelNode",value:function(e,t){var r=this.rootDict.get("K");if(!r)return!1;if((0,n.isDict)(r))return r.objId===e.objId&&(this.nodes[0]=t,!0);if(!Array.isArray(r))return!0;for(var a=!1,i=0;i<r.length;i++){var o=r[i];o&&o.toString()===e.objId&&(this.nodes[i]=t,a=!0)}return a}},{key:"serializable",get:function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n>40)(0,a.warn)("StructTree too deep to be fully serialized.");else{var i=Object.create(null);i.role=t.role,i.children=[],r.children.push(i);var s=t.dict.get("Alt");(0,a.isString)(s)&&(i.alt=(0,a.stringToPDFString)(s));var c,l=o(t.kids);try{for(l.s();!(c=l.n()).done;){var u=c.value,g=u.type===p?u.parentNode:null;g?e(g,i,n+1):u.type===f||u.type===h?i.children.push({type:"content",id:"page".concat(u.pageObjId,"_mcid").concat(u.mcid)}):u.type===d&&i.children.push({type:"object",id:u.refObjId})}}catch(e){l.e(e)}finally{l.f()}}}var t=Object.create(null);t.children=[],t.role="Root";var r,n=o(this.nodes);try{for(n.s();!(r=n.n()).done;){var i=r.value;i&&e(i,t)}}catch(e){n.e(e)}finally{n.f()}return t}}]),e}();t.StructTreePage=y},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectLoader=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(118),o=r(122),s=r(4);function c(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){c(i,n,a,o,s,"next",e)}function s(e){c(i,n,a,o,s,"throw",e)}o(void 0)}))}}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t){if(e instanceof i.Dict)e=e.getRawValues();else if((0,i.isStream)(e))e=e.dict.getRawValues();else if(!Array.isArray(e))return;var r,n,a=f(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;((n=o)instanceof i.Ref||n instanceof i.Dict||Array.isArray(n)||(0,i.isStream)(n))&&t.push(o)}}catch(e){a.e(e)}finally{a.f()}}var p=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dict=t,this.keys=r,this.xref=n,this.refSet=null}var t,r,n,c;return t=e,r=[{key:"load",value:(c=l(a.default.mark((function e(){var t,r,n,o,s,c;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.xref.stream.isDataLoaded){e.next=2;break}return e.abrupt("return",void 0);case 2:for(t=this.keys,r=this.dict,this.refSet=new i.RefSet,n=[],o=0,s=t.length;o<s;o++)void 0!==(c=r.getRaw(t[o]))&&n.push(c);return e.abrupt("return",this._walk(n));case 7:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"_walk",value:(n=l(a.default.mark((function e(t){var r,n,c,l,u,h,p,g,m,v,y,b;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],n=[];case 2:if(!t.length){e.next=48;break}if(!((c=t.pop())instanceof i.Ref)){e.next=21;break}if(!this.refSet.has(c)){e.next=7;break}return e.abrupt("continue",2);case 7:e.prev=7,this.refSet.put(c),c=this.xref.fetch(c),e.next=21;break;case 12:if(e.prev=12,e.t0=e.catch(7),e.t0 instanceof o.MissingDataException){e.next=19;break}return(0,s.warn)('ObjectLoader._walk - requesting all data: "'.concat(e.t0,'".')),this.refSet=null,l=this.xref.stream.manager,e.abrupt("return",l.requestAllChunks());case 19:r.push(c),n.push({begin:e.t0.begin,end:e.t0.end});case 21:if(!(0,i.isStream)(c)){e.next=45;break}if(!(u=c.getBaseStreams())){e.next=45;break}h=!1,p=f(u),e.prev=26,p.s();case 28:if((g=p.n()).done){e.next=36;break}if(!(m=g.value).isDataLoaded){e.next=32;break}return e.abrupt("continue",34);case 32:h=!0,n.push({begin:m.start,end:m.end});case 34:e.next=28;break;case 36:e.next=41;break;case 38:e.prev=38,e.t1=e.catch(26),p.e(e.t1);case 41:return e.prev=41,p.f(),e.finish(41);case 44:h&&r.push(c);case 45:d(c,t),e.next=2;break;case 48:if(!n.length){e.next=54;break}return e.next=51,this.xref.stream.manager.requestRanges(n);case 51:v=f(r);try{for(v.s();!(y=v.n()).done;)(b=y.value)instanceof i.Ref&&this.refSet.remove(b)}catch(e){v.e(e)}finally{v.f()}return e.abrupt("return",this._walk(r));case 54:return this.refSet=null,e.abrupt("return",void 0);case 56:case"end":return e.stop()}}),e,this,[[7,12],[26,38,41,44]])}))),function(e){return n.apply(this,arguments)})}],r&&u(t.prototype,r),e}();t.ObjectLoader=p},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.incrementalUpdate=function(e){var t=e.originalData,r=e.xrefInfo,c=e.newRefs,f=e.xref,d=void 0===f?null:f,m=e.hasXfa,v=void 0!==m&&m,y=e.xfaDatasetsRef,b=void 0===y?null:y,w=e.hasXfaDatasetsEntry,k=void 0!==w&&w,S=e.acroFormRef,x=void 0===S?null:S,A=e.acroForm,O=void 0===A?null:A,C=e.xfaData;v&&function(e){var t=e.xfaData,r=e.xfaDatasetsRef,a=e.acroFormRef,s=e.acroForm,c=e.newRefs,u=e.xref;if(null!==u){if(!e.hasXfaDatasetsEntry){if(!a)return void(0,n.warn)("XFA - Cannot save it");var f=s.get("XFA"),d=f.slice();d.splice(2,0,"datasets"),d.splice(3,0,r),s.set("XFA",d);var p=u.encrypt,g=null;p&&(g=p.createCipherTransform(a.num,a.gen));var m=["".concat(a.num," ").concat(a.gen," obj\n")];h(s,m,g),m.push("\n"),s.set("XFA",f),c.push({ref:a,data:m.join("")})}null===t&&(t=function(e,t){var r,a=new o.SimpleXMLParser({hasAttributes:!0}).parseFromString(e),s=l(t);try{for(s.s();!(r=s.n()).done;){var c=r.value.xfa;if(c){var u=c.path,f=c.value;if(u){var h=a.documentElement.searchNode((0,i.parseXFAPath)(u),0);h?h.childNodes=[new o.SimpleDOMNode("#text",f)]:(0,n.warn)("Node not found for path: ".concat(u))}}}}catch(e){s.e(e)}finally{s.f()}var d=[];return a.documentElement.dump(d),d.join("")}(u.fetchIfRef(r).getString(),c));var v=u.encrypt;v&&(t=v.createCipherTransform(r.num,r.gen).encryptString(t));var y="".concat(r.num," ").concat(r.gen," obj\n")+"<< /Type /EmbeddedFile /Length ".concat(t.length,">>\nstream\n")+t+"\nendstream\nendobj\n";c.push({ref:r,data:y})}}({xfaData:void 0===C?null:C,xfaDatasetsRef:b,hasXfaDatasetsEntry:k,acroFormRef:x,acroForm:O,newRefs:c,xref:d,xrefInfo:r});var F,T,I=new a.Dict(null),P=r.newRef,_=t[t.length-1];10===_||13===_?(F=[],T=t.length):(F=["\n"],T=t.length+1),I.set("Size",P.num+1),I.set("Prev",r.startXRef),I.set("Type",a.Name.get("XRef")),null!==r.rootRef&&I.set("Root",r.rootRef),null!==r.infoRef&&I.set("Info",r.infoRef),null!==r.encryptRef&&I.set("Encrypt",r.encryptRef),c.push({ref:P,data:""});var E,j=[[0,1,65535]],M=[0,1],R=0,B=l(c=c.sort((function(e,t){return e.ref.num-t.ref.num})));try{for(B.s();!(E=B.n()).done;){var D=E.value,N=D.ref,L=D.data;R=Math.max(R,T),j.push([1,T,Math.min(N.gen,65535)]),T+=L.length,M.push(N.num,1),F.push(L)}}catch(e){B.e(e)}finally{B.f()}if(I.set("Index",M),Array.isArray(r.fileIds)&&r.fileIds.length>0){var U=function(e,t){for(var r=Math.floor(Date.now()/1e3),a=t.filename||"",i=[r.toString(),a,e.toString()],o=i.reduce((function(e,t){return e+t.length}),0),c=0,l=Object.values(t.info);c<l.length;c++){var u=l[c];i.push(u),o+=u.length}for(var f=new Uint8Array(o),h=0,d=0,p=i;d<p.length;d++){var m=p[d];g(m,h,f),h+=m.length}return(0,n.bytesToString)((0,s.calculateMD5)(f))}(T,r);I.set("ID",[r.fileIds[0],U])}var $=[1,Math.ceil(Math.log2(R)/8),2],q=($[0]+$[1]+$[2])*j.length;I.set("W",$),I.set("Length",q),F.push("".concat(P.num," ").concat(P.gen," obj\n")),h(I,F,null),F.push(" stream\n");var X=F.reduce((function(e,t){return e+t.length}),0),H="\nendstream\nendobj\nstartxref\n".concat(T,"\n%%EOF\n"),z=new Uint8Array(t.length+X+q+H.length);z.set(t);var W,G,V=t.length,Y=l(F);try{for(Y.s();!(W=Y.n()).done;){var K=W.value;g(K,V,z),V+=K.length}}catch(e){Y.e(e)}finally{Y.f()}for(var J=0,Z=j;J<Z.length;J++){var Q=(3,function(e){if(Array.isArray(e))return e}(G=Z[J])||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),3!==i.length);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(G)||u(G,3)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),ee=Q[0],te=Q[1],re=Q[2];V=p(ee,$[0],V,z),V=p(te,$[1],V,z),V=p(re,$[2],V,z)}return g(H,V,z),z},t.writeDict=h;var n=r(4),a=r(118),i=r(122),o=r(181),s=r(185);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function u(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t,r){t.push("<<");var n,a=l(e.getKeys());try{for(a.s();!(n=a.n()).done;){var o=n.value;t.push(" /".concat((0,i.escapePDFName)(o)," ")),d(e.getRaw(o),t,r)}}catch(e){a.e(e)}finally{a.f()}t.push(">>")}function d(e,t,r){(0,a.isName)(e)?t.push("/".concat((0,i.escapePDFName)(e.name))):(0,a.isRef)(e)?t.push("".concat(e.num," ").concat(e.gen," R")):Array.isArray(e)?function(e,t,r){t.push("[");var n,a=!0,i=l(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;a?a=!1:t.push(" "),d(o,t,r)}}catch(e){i.e(e)}finally{i.f()}t.push("]")}(e,t,r):"string"==typeof e?(null!==r&&(e=r.encryptString(e)),t.push("(".concat((0,n.escapeString)(e),")"))):"number"==typeof e?t.push(function(e){if(Number.isInteger(e))return e.toString();var t=Math.round(100*e);return t%100==0?(t/100).toString():t%10==0?e.toFixed(1):e.toFixed(2)}(e)):"boolean"==typeof e?t.push(e.toString()):(0,a.isDict)(e)?h(e,t,r):(0,a.isStream)(e)?function(e,t,r){h(e.dict,t,r),t.push(" stream\n");var n=e.getString();null!==r&&(n=r.encryptString(n)),t.push(n,"\nendstream\n")}(e,t,r):null===e?t.push("null"):(0,n.warn)("Unhandled value in writer: ".concat(c(e),", please file a bug."))}function p(e,t,r,n){for(var a=t+r-1;a>r-1;a--)n[a]=255&e,e>>=8;return r+t}function g(e,t,r){for(var n=0,a=e.length;n<a;n++)r[t+n]=255&e.charCodeAt(n)}},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA384=S,t.PDF20=t.PDF17=t.CipherTransformFactory=t.calculateSHA512=t.calculateSHA256=t.calculateMD5=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0;var a=r(4),i=r(118),o=r(186);function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=f(e);if(t){var a=f(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),e}var g=function(){function e(t){h(this,e),this.a=0,this.b=0;for(var r=new Uint8Array(256),n=t.length,a=0;a<256;++a)r[a]=a;for(var i=0,o=0;i<256;++i){var s=r[i];o=o+s+t[i%n]&255,r[i]=r[o],r[o]=s}this.s=r}return p(e,[{key:"encryptBlock",value:function(e){for(var t=this.a,r=this.b,n=this.s,a=e.length,i=new Uint8Array(a),o=0;o<a;++o){var s=n[t=t+1&255],c=n[r=r+s&255];n[t]=c,n[r]=s,i[o]=e[o]^n[s+c&255]}return this.a=t,this.b=r,i}},{key:"decryptBlock",value:function(e){return this.encryptBlock(e)}},{key:"encrypt",value:function(e){return this.encryptBlock(e)}}]),e}();t.ARCFourCipher=g;var m,v,y=(m=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),v=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]),function(e,t,r){var n,a,i=1732584193,o=-271733879,s=-1732584194,c=271733878,l=r+72&-64,u=new Uint8Array(l);for(n=0;n<r;++n)u[n]=e[t++];u[n++]=128;for(var f=l-8;n<f;)u[n++]=0;u[n++]=r<<3&255,u[n++]=r>>5&255,u[n++]=r>>13&255,u[n++]=r>>21&255,u[n++]=r>>>29&255,u[n++]=0,u[n++]=0,u[n++]=0;var h=new Int32Array(16);for(n=0;n<l;){for(a=0;a<16;++a,n+=4)h[a]=u[n]|u[n+1]<<8|u[n+2]<<16|u[n+3]<<24;var d=i,p=o,g=s,y=c,b=void 0,w=void 0;for(a=0;a<64;++a){a<16?(b=p&g|~p&y,w=a):a<32?(b=y&p|~y&g,w=5*a+1&15):a<48?(b=p^g^y,w=3*a+5&15):(b=g^(p|~y),w=7*a&15);var k=y,S=d+b+v[a]+h[w]|0,x=m[a];y=g,g=p,p=p+(S<<x|S>>>32-x)|0,d=k}i=i+d|0,o=o+p|0,s=s+g|0,c=c+y|0}return new Uint8Array([255&i,i>>8&255,i>>16&255,i>>>24&255,255&o,o>>8&255,o>>16&255,o>>>24&255,255&s,s>>8&255,s>>16&255,s>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255])});t.calculateMD5=y;var b=function(){function e(t,r){h(this,e),this.high=0|t,this.low=0|r}return p(e,[{key:"and",value:function(e){this.high&=e.high,this.low&=e.low}},{key:"xor",value:function(e){this.high^=e.high,this.low^=e.low}},{key:"or",value:function(e){this.high|=e.high,this.low|=e.low}},{key:"shiftRight",value:function(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)}},{key:"shiftLeft",value:function(e){e>=32?(this.high=this.low<<e-32,this.low=0):(this.high=this.high<<e|this.low>>>32-e,this.low<<=e)}},{key:"rotateRight",value:function(e){var t,r;32&e?(r=this.low,t=this.high):(t=this.low,r=this.high),e&=31,this.low=t>>>e|r<<32-e,this.high=r>>>e|t<<32-e}},{key:"not",value:function(){this.high=~this.high,this.low=~this.low}},{key:"add",value:function(e){var t=(this.low>>>0)+(e.low>>>0),r=(this.high>>>0)+(e.high>>>0);t>4294967295&&(r+=1),this.low=0|t,this.high=0|r}},{key:"copyTo",value:function(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low}},{key:"assign",value:function(e){this.high=e.high,this.low=e.low}}]),e}(),w=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,r){return e&t^~e&r}function r(e,t,r){return e&t^e&r^t&r}function n(t){return e(t,2)^e(t,13)^e(t,22)}function a(t){return e(t,6)^e(t,11)^e(t,25)}function i(t){return e(t,7)^e(t,18)^t>>>3}var o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function(s,c,l){var u,f,h=1779033703,d=3144134277,p=1013904242,g=2773480762,m=1359893119,v=2600822924,y=528734635,b=1541459225,w=64*Math.ceil((l+9)/64),k=new Uint8Array(w);for(u=0;u<l;++u)k[u]=s[c++];k[u++]=128;for(var S=w-8;u<S;)k[u++]=0;k[u++]=0,k[u++]=0,k[u++]=0,k[u++]=l>>>29&255,k[u++]=l>>21&255,k[u++]=l>>13&255,k[u++]=l>>5&255,k[u++]=l<<3&255;var x,A=new Uint32Array(64);for(u=0;u<w;){for(f=0;f<16;++f)A[f]=k[u]<<24|k[u+1]<<16|k[u+2]<<8|k[u+3],u+=4;for(f=16;f<64;++f)A[f]=0|(e(x=A[f-2],17)^e(x,19)^x>>>10)+A[f-7]+i(A[f-15])+A[f-16];var O=h,C=d,F=p,T=g,I=m,P=v,_=y,E=b,j=void 0,M=void 0;for(f=0;f<64;++f)j=E+a(I)+t(I,P,_)+o[f]+A[f],M=n(O)+r(O,C,F),E=_,_=P,P=I,I=T+j|0,T=F,F=C,C=O,O=j+M|0;h=h+O|0,d=d+C|0,p=p+F|0,g=g+T|0,m=m+I|0,v=v+P|0,y=y+_|0,b=b+E|0}return new Uint8Array([h>>24&255,h>>16&255,h>>8&255,255&h,d>>24&255,d>>16&255,d>>8&255,255&d,p>>24&255,p>>16&255,p>>8&255,255&p,g>>24&255,g>>16&255,g>>8&255,255&g,m>>24&255,m>>16&255,m>>8&255,255&m,v>>24&255,v>>16&255,v>>8&255,255&v,y>>24&255,y>>16&255,y>>8&255,255&y,b>>24&255,b>>16&255,b>>8&255,255&b])}}();t.calculateSHA256=w;var k=function(){function e(e,t,r,n,a){e.assign(t),e.and(r),a.assign(t),a.not(),a.and(n),e.xor(a)}function t(e,t,r,n,a){e.assign(t),e.and(r),a.assign(t),a.and(n),e.xor(a),a.assign(r),a.and(n),e.xor(a)}function r(e,t,r){e.assign(t),e.rotateRight(28),r.assign(t),r.rotateRight(34),e.xor(r),r.assign(t),r.rotateRight(39),e.xor(r)}function n(e,t,r){e.assign(t),e.rotateRight(14),r.assign(t),r.rotateRight(18),e.xor(r),r.assign(t),r.rotateRight(41),e.xor(r)}function a(e,t,r){e.assign(t),e.rotateRight(1),r.assign(t),r.rotateRight(8),e.xor(r),r.assign(t),r.shiftRight(7),e.xor(r)}function i(e,t,r){e.assign(t),e.rotateRight(19),r.assign(t),r.rotateRight(61),e.xor(r),r.assign(t),r.shiftRight(6),e.xor(r)}var o=[new b(1116352408,3609767458),new b(1899447441,602891725),new b(3049323471,3964484399),new b(3921009573,2173295548),new b(961987163,4081628472),new b(1508970993,3053834265),new b(2453635748,2937671579),new b(2870763221,3664609560),new b(3624381080,2734883394),new b(310598401,1164996542),new b(607225278,1323610764),new b(1426881987,3590304994),new b(1925078388,4068182383),new b(2162078206,991336113),new b(2614888103,633803317),new b(3248222580,3479774868),new b(3835390401,2666613458),new b(4022224774,944711139),new b(264347078,2341262773),new b(604807628,2007800933),new b(770255983,1495990901),new b(1249150122,1856431235),new b(1555081692,3175218132),new b(1996064986,2198950837),new b(2554220882,3999719339),new b(2821834349,766784016),new b(2952996808,2566594879),new b(3210313671,3203337956),new b(3336571891,1034457026),new b(3584528711,2466948901),new b(113926993,3758326383),new b(338241895,168717936),new b(666307205,1188179964),new b(773529912,1546045734),new b(1294757372,1522805485),new b(1396182291,2643833823),new b(1695183700,2343527390),new b(1986661051,1014477480),new b(2177026350,1206759142),new b(2456956037,344077627),new b(2730485921,1290863460),new b(2820302411,3158454273),new b(3259730800,3505952657),new b(3345764771,106217008),new b(3516065817,3606008344),new b(3600352804,1432725776),new b(4094571909,1467031594),new b(275423344,851169720),new b(430227734,3100823752),new b(506948616,1363258195),new b(659060556,3750685593),new b(883997877,3785050280),new b(958139571,3318307427),new b(1322822218,3812723403),new b(1537002063,2003034995),new b(1747873779,3602036899),new b(1955562222,1575990012),new b(2024104815,1125592928),new b(2227730452,2716904306),new b(2361852424,442776044),new b(2428436474,593698344),new b(2756734187,3733110249),new b(3204031479,2999351573),new b(3329325298,3815920427),new b(3391569614,3928383900),new b(3515267271,566280711),new b(3940187606,3454069534),new b(4118630271,4000239992),new b(116418474,1914138554),new b(174292421,2731055270),new b(289380356,3203993006),new b(460393269,320620315),new b(685471733,587496836),new b(852142971,1086792851),new b(1017036298,365543100),new b(1126000580,2618297676),new b(1288033470,3409855158),new b(1501505948,4234509866),new b(1607167915,987167468),new b(1816402316,1246189591)];return function(s,c,l){var u,f,h,d,p,g,m,v,y=arguments.length>3&&void 0!==arguments[3]&&arguments[3];y?(u=new b(3418070365,3238371032),f=new b(1654270250,914150663),h=new b(2438529370,812702999),d=new b(355462360,4144912697),p=new b(1731405415,4290775857),g=new b(2394180231,1750603025),m=new b(3675008525,1694076839),v=new b(1203062813,3204075428)):(u=new b(1779033703,4089235720),f=new b(3144134277,2227873595),h=new b(1013904242,4271175723),d=new b(2773480762,1595750129),p=new b(1359893119,2917565137),g=new b(2600822924,725511199),m=new b(528734635,4215389547),v=new b(1541459225,327033209));var w,k,S=128*Math.ceil((l+17)/128),x=new Uint8Array(S);for(w=0;w<l;++w)x[w]=s[c++];x[w++]=128;for(var A=S-16;w<A;)x[w++]=0;x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=l>>>29&255,x[w++]=l>>21&255,x[w++]=l>>13&255,x[w++]=l>>5&255,x[w++]=l<<3&255;var O=new Array(80);for(w=0;w<80;w++)O[w]=new b(0,0);var C,F,T=new b(0,0),I=new b(0,0),P=new b(0,0),_=new b(0,0),E=new b(0,0),j=new b(0,0),M=new b(0,0),R=new b(0,0),B=new b(0,0),D=new b(0,0),N=new b(0,0),L=new b(0,0);for(w=0;w<S;){for(k=0;k<16;++k)O[k].high=x[w]<<24|x[w+1]<<16|x[w+2]<<8|x[w+3],O[k].low=x[w+4]<<24|x[w+5]<<16|x[w+6]<<8|x[w+7],w+=8;for(k=16;k<80;++k)i(C=O[k],O[k-2],L),C.add(O[k-7]),a(N,O[k-15],L),C.add(N),C.add(O[k-16]);for(T.assign(u),I.assign(f),P.assign(h),_.assign(d),E.assign(p),j.assign(g),M.assign(m),R.assign(v),k=0;k<80;++k)B.assign(R),n(N,E,L),B.add(N),e(N,E,j,M,L),B.add(N),B.add(o[k]),B.add(O[k]),r(D,T,L),t(N,T,I,P,L),D.add(N),C=R,R=M,M=j,j=E,_.add(B),E=_,_=P,P=I,I=T,C.assign(B),C.add(D),T=C;u.add(T),f.add(I),h.add(P),d.add(_),p.add(E),g.add(j),m.add(M),v.add(R)}return y?(F=new Uint8Array(48),u.copyTo(F,0),f.copyTo(F,8),h.copyTo(F,16),d.copyTo(F,24),p.copyTo(F,32),g.copyTo(F,40)):(F=new Uint8Array(64),u.copyTo(F,0),f.copyTo(F,8),h.copyTo(F,16),d.copyTo(F,24),p.copyTo(F,32),g.copyTo(F,40),m.copyTo(F,48),v.copyTo(F,56)),F}}();function S(e,t,r){return k(e,t,r,!0)}t.calculateSHA512=k;var x=function(){function e(){h(this,e)}return p(e,[{key:"decryptBlock",value:function(e){return e}},{key:"encrypt",value:function(e){return e}}]),e}(),A=function(){function e(){h(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize AESBaseCipher."),this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256);for(var t=0;t<256;t++)this._mixCol[t]=t<128?t<<1:t<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}return p(e,[{key:"_expandKey",value:function(e){(0,a.unreachable)("Cannot call `_expandKey` on the base class")}},{key:"_decrypt",value:function(e,t){var r,n,a,i=new Uint8Array(16);i.set(e);for(var o=0,s=this._keySize;o<16;++o,++s)i[o]^=t[s];for(var c=this._cyclesOfRepetition-1;c>=1;--c){r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],n=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=n,r=i[15],n=i[11],a=i[7],i[15]=i[3],i[11]=r,i[7]=n,i[3]=a;for(var l=0;l<16;++l)i[l]=this._inv_s[i[l]];for(var u=0,f=16*c;u<16;++u,++f)i[u]^=t[f];for(var h=0;h<16;h+=4){var d=this._mix[i[h]],p=this._mix[i[h+1]],g=this._mix[i[h+2]],m=this._mix[i[h+3]];r=d^p>>>8^p<<24^g>>>16^g<<16^m>>>24^m<<8,i[h]=r>>>24&255,i[h+1]=r>>16&255,i[h+2]=r>>8&255,i[h+3]=255&r}}r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],n=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=n,r=i[15],n=i[11],a=i[7],i[15]=i[3],i[11]=r,i[7]=n,i[3]=a;for(var v=0;v<16;++v)i[v]=this._inv_s[i[v]],i[v]^=t[v];return i}},{key:"_encrypt",value:function(e,t){var r,n,a,i=this._s,o=new Uint8Array(16);o.set(e);for(var s=0;s<16;++s)o[s]^=t[s];for(var c=1;c<this._cyclesOfRepetition;c++){for(var l=0;l<16;++l)o[l]=i[o[l]];a=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=a,a=o[2],n=o[6],o[2]=o[10],o[6]=o[14],o[10]=a,o[14]=n,a=o[3],n=o[7],r=o[11],o[3]=o[15],o[7]=a,o[11]=n,o[15]=r;for(var u=0;u<16;u+=4){var f=o[u+0],h=o[u+1],d=o[u+2],p=o[u+3];r=f^h^d^p,o[u+0]^=r^this._mixCol[f^h],o[u+1]^=r^this._mixCol[h^d],o[u+2]^=r^this._mixCol[d^p],o[u+3]^=r^this._mixCol[p^f]}for(var g=0,m=16*c;g<16;++g,++m)o[g]^=t[m]}for(var v=0;v<16;++v)o[v]=i[o[v]];a=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=a,a=o[2],n=o[6],o[2]=o[10],o[6]=o[14],o[10]=a,o[14]=n,a=o[3],n=o[7],r=o[11],o[3]=o[15],o[7]=a,o[11]=n,o[15]=r;for(var y=0,b=this._keySize;y<16;++y,++b)o[y]^=t[b];return o}},{key:"_decryptBlock2",value:function(e,t){for(var r=e.length,n=this.buffer,a=this.bufferPosition,i=[],o=this.iv,s=0;s<r;++s)if(n[a]=e[s],!(++a<16)){for(var c=this._decrypt(n,this._key),l=0;l<16;++l)c[l]^=o[l];o=n,i.push(c),n=new Uint8Array(16),a=0}if(this.buffer=n,this.bufferLength=a,this.iv=o,0===i.length)return new Uint8Array(0);var u=16*i.length;if(t){var f=i[i.length-1],h=f[15];if(h<=16){for(var d=15,p=16-h;d>=p;--d)if(f[d]!==h){h=0;break}u-=h,i[i.length-1]=f.subarray(0,16-h)}}for(var g=new Uint8Array(u),m=0,v=0,y=i.length;m<y;++m,v+=16)g.set(i[m],v);return g}},{key:"decryptBlock",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=e.length,a=this.buffer,i=this.bufferPosition;if(r)this.iv=r;else{for(var o=0;i<16&&o<n;++o,++i)a[i]=e[o];if(i<16)return this.bufferLength=i,new Uint8Array(0);this.iv=a,e=e.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(e,t)}},{key:"encrypt",value:function(e,t){var r=e.length,n=this.buffer,a=this.bufferPosition,i=[];t||(t=new Uint8Array(16));for(var o=0;o<r;++o)if(n[a]=e[o],!(++a<16)){for(var s=0;s<16;++s)n[s]^=t[s];var c=this._encrypt(n,this._key);t=c,i.push(c),n=new Uint8Array(16),a=0}if(this.buffer=n,this.bufferLength=a,this.iv=t,0===i.length)return new Uint8Array(0);for(var l=16*i.length,u=new Uint8Array(l),f=0,h=0,d=i.length;f<d;++f,h+=16)u.set(i[f],h);return u}}]),e}(),O=function(e){s(r,e);var t=l(r);function r(e){var n;return h(this,r),(n=t.call(this))._cyclesOfRepetition=10,n._keySize=160,n._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),n._key=n._expandKey(e),n}return p(r,[{key:"_expandKey",value:function(e){var t=this._s,r=this._rcon,n=new Uint8Array(176);n.set(e);for(var a=16,i=1;a<176;++i){var o=n[a-3],s=n[a-2],c=n[a-1],l=n[a-4];o=t[o],s=t[s],c=t[c],l=t[l],o^=r[i];for(var u=0;u<4;++u)n[a]=o^=n[a-16],n[++a]=s^=n[a-16],n[++a]=c^=n[a-16],n[++a]=l^=n[a-16],a++}return n}}]),r}(A);t.AES128Cipher=O;var C=function(e){s(r,e);var t=l(r);function r(e){var n;return h(this,r),(n=t.call(this))._cyclesOfRepetition=14,n._keySize=224,n._key=n._expandKey(e),n}return p(r,[{key:"_expandKey",value:function(e){var t=this._s,r=new Uint8Array(240);r.set(e);for(var n,a,i,o,s=1,c=32,l=1;c<240;++l){c%32==16?(n=t[n],a=t[a],i=t[i],o=t[o]):c%32==0&&(n=r[c-3],a=r[c-2],i=r[c-1],o=r[c-4],n=t[n],a=t[a],i=t[i],o=t[o],n^=s,(s<<=1)>=256&&(s=255&(27^s)));for(var u=0;u<4;++u)r[c]=n^=r[c-32],r[++c]=a^=r[c-32],r[++c]=i^=r[c-32],r[++c]=o^=r[c-32],c++}return r}}]),r}(A);t.AES256Cipher=C;var F=function(){function e(){h(this,e)}return p(e,[{key:"checkOwnerPassword",value:function(e,t,r,n){var i=new Uint8Array(e.length+56);i.set(e,0),i.set(t,e.length),i.set(r,e.length+t.length);var o=w(i,0,i.length);return(0,a.isArrayEqual)(o,n)}},{key:"checkUserPassword",value:function(e,t,r){var n=new Uint8Array(e.length+8);n.set(e,0),n.set(t,e.length);var i=w(n,0,n.length);return(0,a.isArrayEqual)(i,r)}},{key:"getOwnerKey",value:function(e,t,r,n){var a=new Uint8Array(e.length+56);a.set(e,0),a.set(t,e.length),a.set(r,e.length+t.length);var i=w(a,0,a.length);return new C(i).decryptBlock(n,!1,new Uint8Array(16))}},{key:"getUserKey",value:function(e,t,r){var n=new Uint8Array(e.length+8);n.set(e,0),n.set(t,e.length);var a=w(n,0,n.length);return new C(a).decryptBlock(r,!1,new Uint8Array(16))}}]),e}();t.PDF17=F;var T=function(){function e(e,t,r){for(var n=w(t,0,t.length).subarray(0,32),a=[0],i=0;i<64||a[a.length-1]>i-32;){var o=e.length+n.length+r.length,s=new Uint8Array(o),c=0;s.set(e,c),c+=e.length,s.set(n,c),c+=n.length,s.set(r,c);for(var l=new Uint8Array(64*o),u=0,f=0;u<64;u++,f+=o)l.set(s,f);a=new O(n.subarray(0,16)).encrypt(l,n.subarray(16,32));for(var h=0,d=0;d<16;d++)h*=1,h%=3,h+=(a[d]>>>0)%3,h%=3;0===h?n=w(a,0,a.length):1===h?n=S(a,0,a.length):2===h&&(n=k(a,0,a.length)),i++}return n.subarray(0,32)}return function(){function t(){h(this,t)}return p(t,[{key:"hash",value:function(t,r,n){return e(t,r,n)}},{key:"checkOwnerPassword",value:function(t,r,n,i){var o=new Uint8Array(t.length+56);o.set(t,0),o.set(r,t.length),o.set(n,t.length+r.length);var s=e(t,o,n);return(0,a.isArrayEqual)(s,i)}},{key:"checkUserPassword",value:function(t,r,n){var i=new Uint8Array(t.length+8);i.set(t,0),i.set(r,t.length);var o=e(t,i,[]);return(0,a.isArrayEqual)(o,n)}},{key:"getOwnerKey",value:function(t,r,n,a){var i=new Uint8Array(t.length+56);i.set(t,0),i.set(r,t.length),i.set(n,t.length+r.length);var o=e(t,i,n);return new C(o).decryptBlock(a,!1,new Uint8Array(16))}},{key:"getUserKey",value:function(t,r,n){var a=new Uint8Array(t.length+8);a.set(t,0),a.set(r,t.length);var i=e(t,a,[]);return new C(i).decryptBlock(n,!1,new Uint8Array(16))}}]),t}()}();t.PDF20=T;var I=function(){function e(t,r){h(this,e),this.StringCipherConstructor=t,this.StreamCipherConstructor=r}return p(e,[{key:"createStream",value:function(e,t){var r=new this.StreamCipherConstructor;return new o.DecryptStream(e,t,(function(e,t){return r.decryptBlock(e,t)}))}},{key:"decryptString",value:function(e){var t=new this.StringCipherConstructor,r=(0,a.stringToBytes)(e);return r=t.decryptBlock(r,!0),(0,a.bytesToString)(r)}},{key:"encryptString",value:function(e){var t=new this.StringCipherConstructor;if(t instanceof A){var r=16-e.length%16;e+=String.fromCharCode(r).repeat(r);var n=new Uint8Array(16);if("undefined"!=typeof crypto)crypto.getRandomValues(n);else for(var i=0;i<16;i++)n[i]=Math.floor(256*Math.random());var o=(0,a.stringToBytes)(e);o=t.encrypt(o,n);var s=new Uint8Array(16+o.length);return s.set(n),s.set(o,16),(0,a.bytesToString)(s)}var c=(0,a.stringToBytes)(e);return c=t.encrypt(c),(0,a.bytesToString)(c)}}]),e}(),P=function(){var e=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]);function t(t,r,n,a,i,o,s,c){var l,u,f=40+n.length+t.length,h=new Uint8Array(f),d=0;if(r)for(u=Math.min(32,r.length);d<u;++d)h[d]=r[d];for(l=0;d<32;)h[d++]=e[l++];for(l=0,u=n.length;l<u;++l)h[d++]=n[l];for(h[d++]=255&i,h[d++]=i>>8&255,h[d++]=i>>16&255,h[d++]=i>>>24&255,l=0,u=t.length;l<u;++l)h[d++]=t[l];o>=4&&!c&&(h[d++]=255,h[d++]=255,h[d++]=255,h[d++]=255);var p=y(h,0,d),m=s>>3;if(o>=3)for(l=0;l<50;++l)p=y(p,0,m);var v,b=p.subarray(0,m);if(o>=3){for(d=0;d<32;++d)h[d]=e[d];for(l=0,u=t.length;l<u;++l)h[d++]=t[l];v=new g(b).encryptBlock(y(h,0,d)),u=b.length;var w=new Uint8Array(u);for(l=1;l<=19;++l){for(var k=0;k<u;++k)w[k]=b[k]^l;v=new g(w).encryptBlock(v)}for(l=0,u=v.length;l<u;++l)if(a[l]!==v[l])return null}else for(l=0,u=(v=new g(b).encryptBlock(e)).length;l<u;++l)if(a[l]!==v[l])return null;return b}var r=i.Name.get("Identity");function n(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=new Uint8Array(r.length+9),o=r.length;for(n=0;n<o;++n)i[n]=r[n];i[n++]=255&e,i[n++]=e>>8&255,i[n++]=e>>16&255,i[n++]=255&t,i[n++]=t>>8&255,a&&(i[n++]=115,i[n++]=65,i[n++]=108,i[n++]=84);var s=y(i,0,n);return s.subarray(0,Math.min(r.length+5,16))}function o(e,t,r,o,s){if(!(0,i.isName)(t))throw new a.FormatError("Invalid crypt filter name.");var c,l=e.get(t.name);if(null!=l&&(c=l.get("CFM")),!c||"None"===c.name)return function(){return new x};if("V2"===c.name)return function(){return new g(n(r,o,s,!1))};if("AESV2"===c.name)return function(){return new O(n(r,o,s,!0))};if("AESV3"===c.name)return function(){return new C(s)};throw new a.FormatError("Unknown crypto method")}var s=function(){function s(n,o,c){h(this,s);var l=n.get("Filter");if(!(0,i.isName)(l,"Standard"))throw new a.FormatError("unknown encryption method");this.dict=n;var u=n.get("V");if(!Number.isInteger(u)||1!==u&&2!==u&&4!==u&&5!==u)throw new a.FormatError("unsupported encryption algorithm");this.algorithm=u;var f=n.get("Length");if(!f)if(u<=3)f=40;else{var d=n.get("CF"),p=n.get("StmF");if((0,i.isDict)(d)&&(0,i.isName)(p)){d.suppressEncryption=!0;var m=d.get(p.name);(f=m&&m.get("Length")||128)<40&&(f<<=3)}}if(!Number.isInteger(f)||f<40||f%8!=0)throw new a.FormatError("invalid key length");var v=(0,a.stringToBytes)(n.get("O")).subarray(0,32),b=(0,a.stringToBytes)(n.get("U")).subarray(0,32),w=n.get("P"),k=n.get("R"),S=(4===u||5===u)&&!1!==n.get("EncryptMetadata");this.encryptMetadata=S;var x,A,O=(0,a.stringToBytes)(o);if(c){if(6===k)try{c=(0,a.utf8StringToString)(c)}catch(e){(0,a.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}x=(0,a.stringToBytes)(c)}if(5!==u)A=t(O,x,v,b,w,k,f,S);else{var C=(0,a.stringToBytes)(n.get("O")).subarray(32,40),I=(0,a.stringToBytes)(n.get("O")).subarray(40,48),P=(0,a.stringToBytes)(n.get("U")).subarray(0,48),_=(0,a.stringToBytes)(n.get("U")).subarray(32,40),E=(0,a.stringToBytes)(n.get("U")).subarray(40,48),j=(0,a.stringToBytes)(n.get("OE")),M=(0,a.stringToBytes)(n.get("UE"));(0,a.stringToBytes)(n.get("Perms")),A=function(e,t,r,n,a,i,o,s,c,l,u,f){if(t){var h=Math.min(127,t.length);t=t.subarray(0,h)}else t=[];var d;return(d=6===e?new T:new F).checkUserPassword(t,s,o)?d.getUserKey(t,c,u):t.length&&d.checkOwnerPassword(t,n,i,r)?d.getOwnerKey(t,a,i,l):null}(k,x,v,C,I,P,b,_,E,j,M)}if(!A&&!c)throw new a.PasswordException("No password given",a.PasswordResponses.NEED_PASSWORD);if(!A&&c){var R=function(t,r,n,a){for(var i=new Uint8Array(32),o=0,s=Math.min(32,t.length);o<s;++o)i[o]=t[o];for(var c=0;o<32;)i[o++]=e[c++];var l,u=y(i,0,o),f=a>>3;if(n>=3)for(c=0;c<50;++c)u=y(u,0,u.length);if(n>=3){l=r;var h=new Uint8Array(f);for(c=19;c>=0;c--){for(var d=0;d<f;++d)h[d]=u[d]^c;l=new g(h).encryptBlock(l)}}else l=new g(u.subarray(0,f)).encryptBlock(r);return l}(x,v,k,f);A=t(O,R,v,b,w,k,f,S)}if(!A)throw new a.PasswordException("Incorrect Password",a.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=A,u>=4){var B=n.get("CF");(0,i.isDict)(B)&&(B.suppressEncryption=!0),this.cf=B,this.stmf=n.get("StmF")||r,this.strf=n.get("StrF")||r,this.eff=n.get("EFF")||this.stmf}}return p(s,[{key:"createCipherTransform",value:function(e,t){if(4===this.algorithm||5===this.algorithm)return new I(o(this.cf,this.stmf,e,t,this.encryptionKey),o(this.cf,this.strf,e,t,this.encryptionKey));var r=n(e,t,this.encryptionKey,!1),a=function(){return new g(r)};return new I(a,a)}}]),s}();return s}();t.CipherTransformFactory=P},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function o(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.DecryptStream=void 0;var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(u,e);var t,r,n,c,l=(n=u,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=s(n);if(c){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return o(this,e)});function u(e,t,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=l.call(this,t)).str=e,n.dict=e.dict,n.decrypt=r,n.nextChunk=null,n.initialized=!1,n}return t=u,(r=[{key:"readBlock",value:function(){var e;if(this.initialized?e=this.nextChunk:(e=this.str.getBytes(512),this.initialized=!0),e&&0!==e.length){this.nextChunk=this.str.getBytes(512);var t=this.nextChunk&&this.nextChunk.length>0;e=(0,this.decrypt)(e,!t);for(var r=this.bufferLength,n=e.length,a=this.ensureBuffer(r+n),i=0;i<n;i++)a[r++]=e[i];this.bufferLength=r}else this.eof=!0}}])&&a(t.prototype,r),u}(r(142).DecodeStream);t.DecryptStream=c},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XFAFactory=void 0;var n=r(188),a=r(192),i=r(198),o=r(196),s=r(189),c=r(4),l=r(199);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var h=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.root=(new l.XFAParser).parse(e._createDocument(t));var r=new a.Binder(this.root);this.form=r.bind(),this.dataHandler=new i.DataHandler(this.root,r.getData()),this.form[n.$globalData].template=this.form}catch(e){(0,c.warn)("XFA - an error occurred during parsing and binding: ".concat(e))}}var t,r,h;return t=e,h=[{key:"_createDocument",value:function(e){return e["/xdp:xdp"]?Object.values(e).join(""):e["xdp:xdp"]}}],(r=[{key:"isValid",value:function(){return this.root&&this.form}},{key:"_createPages",value:function(){try{this.pages=this.form[n.$toHTML](),this.dims=this.pages.children.map((function(e){var t=e.attributes.style,r=t.width,n=t.height;return[0,0,parseInt(r),parseInt(n)]}))}catch(e){(0,c.warn)("XFA - an error occurred during layout: ".concat(e))}}},{key:"getBoundingBox",value:function(e){return this.dims[e]}},{key:"numberPages",get:function(){return this.pages||this._createPages(),this.dims.length}},{key:"setImages",value:function(e){this.form[n.$globalData].images=e}},{key:"setFonts",value:function(e){this.form[n.$globalData].fontFinder=new o.FontFinder(e);var t,r=[],a=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}(this.form[n.$globalData].usedTypefaces);try{for(a.s();!(t=a.n()).done;){var i=t.value;i=(0,s.stripQuotes)(i),this.form[n.$globalData].fontFinder.find(i)||r.push(i)}}catch(e){a.e(e)}finally{a.f()}return r.length>0?r:null}},{key:"appendFonts",value:function(e,t){this.form[n.$globalData].fontFinder.add(e,t)}},{key:"getPages",value:function(){this.pages||this._createPages();var e=this.pages;return this.pages=null,e}},{key:"serializeData",value:function(e){return this.dataHandler.serialize(e)}}])&&f(t.prototype,r),h&&f(t,h),e}();t.XFAFactory=h},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XmlObject=t.XFAObjectArray=t.XFAObject=t.XFAAttribute=t.StringObject=t.OptionObject=t.Option10=t.Option01=t.IntegerObject=t.ContentObject=t.$uid=t.$toStyle=t.$toString=t.$toHTML=t.$text=t.$tabIndex=t.$setValue=t.$setSetAttributes=t.$setId=t.$searchNode=t.$root=t.$resolvePrototypes=t.$removeChild=t.$pushPara=t.$pushGlyphs=t.$popPara=t.$onText=t.$onChildCheck=t.$onChild=t.$nsAttributes=t.$nodeName=t.$namespaceId=t.$isUsable=t.$isTransparent=t.$isThereMoreWidth=t.$isSplittable=t.$isNsAgnostic=t.$isDescendent=t.$isDataValue=t.$isCDATAXml=t.$isBindable=t.$insertAt=t.$indexOf=t.$ids=t.$hasSettableValue=t.$globalData=t.$getTemplateRoot=t.$getSubformParent=t.$getRealChildrenByNameIt=t.$getParent=t.$getNextPage=t.$getExtra=t.$getDataValue=t.$getContainedChildren=t.$getChildrenByNameIt=t.$getChildrenByName=t.$getChildrenByClass=t.$getChildren=t.$getAvailableSpace=t.$getAttributes=t.$getAttributeIt=t.$flushHTML=t.$finalize=t.$extra=t.$dump=t.$data=t.$content=t.$consumed=t.$clone=t.$cleanup=t.$cleanPage=t.$clean=t.$childrenToHTML=t.$appendChild=t.$addHTML=t.$acceptWhitespace=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(189),o=r(4),s=r(122),c=r(190),l=r(191);function u(e,t,r){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(r):a.value}},u(e,t,r||e)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=v(e);if(t){var a=v(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function b(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=w(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function w(e,t){if(e){if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function A(e,t,r){return t&&x(e.prototype,t),r&&x(e,r),e}var O=Symbol();t.$acceptWhitespace=O;var C=Symbol();t.$addHTML=C;var F=Symbol();t.$appendChild=F;var T=Symbol();t.$childrenToHTML=T;var I=Symbol();t.$clean=I;var P=Symbol();t.$cleanPage=P;var _=Symbol();t.$cleanup=_;var E=Symbol();t.$clone=E;var j=Symbol();t.$consumed=j;var M=Symbol("content");t.$content=M;var R=Symbol("data");t.$data=R;var B=Symbol();t.$dump=B;var D=Symbol("extra");t.$extra=D;var N=Symbol();t.$finalize=N;var L=Symbol();t.$flushHTML=L;var U=Symbol();t.$getAttributeIt=U;var $=Symbol();t.$getAttributes=$;var q=Symbol();t.$getAvailableSpace=q;var X=Symbol();t.$getChildrenByClass=X;var H=Symbol();t.$getChildrenByName=H;var z=Symbol();t.$getChildrenByNameIt=z;var W=Symbol();t.$getDataValue=W;var G=Symbol();t.$getExtra=G;var V=Symbol();t.$getRealChildrenByNameIt=V;var Y=Symbol();t.$getChildren=Y;var K=Symbol();t.$getContainedChildren=K;var J=Symbol();t.$getNextPage=J;var Z=Symbol();t.$getSubformParent=Z;var Q=Symbol();t.$getParent=Q;var ee=Symbol();t.$getTemplateRoot=ee;var te=Symbol();t.$globalData=te;var re=Symbol();t.$hasSettableValue=re;var ne=Symbol();t.$ids=ne;var ae=Symbol();t.$indexOf=ae;var ie=Symbol();t.$insertAt=ie;var oe=Symbol();t.$isCDATAXml=oe;var se=Symbol();t.$isBindable=se;var ce=Symbol();t.$isDataValue=ce;var le=Symbol();t.$isDescendent=le;var ue=Symbol();t.$isNsAgnostic=ue;var fe=Symbol();t.$isSplittable=fe;var he=Symbol();t.$isThereMoreWidth=he;var de=Symbol();t.$isTransparent=de;var pe=Symbol();t.$isUsable=pe;var ge=Symbol(),me=Symbol("namespaceId");t.$namespaceId=me;var ve=Symbol("nodeName");t.$nodeName=ve;var ye=Symbol();t.$nsAttributes=ye;var be=Symbol();t.$onChild=be;var we=Symbol();t.$onChildCheck=we;var ke=Symbol();t.$onText=ke;var Se=Symbol();t.$pushGlyphs=Se;var xe=Symbol();t.$popPara=xe;var Ae=Symbol();t.$pushPara=Ae;var Oe=Symbol();t.$removeChild=Oe;var Ce=Symbol("root");t.$root=Ce;var Fe=Symbol();t.$resolvePrototypes=Fe;var Te=Symbol();t.$searchNode=Te;var Ie=Symbol();t.$setId=Ie;var Pe=Symbol();t.$setSetAttributes=Pe;var _e=Symbol();t.$setValue=_e;var Ee=Symbol();t.$tabIndex=Ee;var je=Symbol();t.$text=je;var Me=Symbol();t.$toHTML=Me;var Re=Symbol();t.$toString=Re;var Be=Symbol();t.$toStyle=Be;var De=Symbol("uid");t.$uid=De;var Ne=Symbol(),Le=Symbol(),Ue=Symbol(),$e=Symbol("_children"),qe=Symbol(),Xe=Symbol(),He=Symbol(),ze=Symbol(),We=Symbol(),Ge=Symbol(),Ve=Symbol(),Ye=Symbol(),Ke=Symbol(),Je=Symbol("parent"),Ze=Symbol(),Qe=Symbol(),et=Symbol(),tt=0,rt=c.NamespaceIds.datasets.id,nt=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];S(this,e),this[me]=t,this[ve]=r,this[Ve]=n,this[Je]=null,this[$e]=[],this[De]="".concat(r).concat(tt++),this[te]=null}return A(e,[{key:be,value:function(e){if(!this[Ve]||!this[we](e))return!1;var t=e[ve],r=this[t];if(!(r instanceof at))return null!==r&&this[Oe](r),this[t]=e,this[F](e),!0;if(r.push(e))return this[F](e),!0;var n="";return this.id?n=" (id: ".concat(this.id,")"):this.name&&(n=" (name: ".concat(this.name," ").concat(this.h.value,")")),(0,o.warn)('XFA - node "'.concat(this[ve],'"').concat(n,' has already enough "').concat(t,'"!')),!1}},{key:we,value:function(e){return this.hasOwnProperty(e[ve])&&e[me]===this[me]}},{key:ue,value:function(){return!1}},{key:O,value:function(){return!1}},{key:oe,value:function(){return!1}},{key:se,value:function(){return!1}},{key:xe,value:function(){this.para&&this[ee]()[D].paraStack.pop()}},{key:Ae,value:function(){this[ee]()[D].paraStack.push(this.para)}},{key:Ie,value:function(e){this.id&&this[me]===c.NamespaceIds.template.id&&e.set(this.id,this)}},{key:ee,value:function(){return this[te].template}},{key:fe,value:function(){return!1}},{key:he,value:function(){return!1}},{key:F,value:function(e){e[Je]=this,this[$e].push(e),!e[te]&&this[te]&&(e[te]=this[te])}},{key:Oe,value:function(e){var t=this[$e].indexOf(e);this[$e].splice(t,1)}},{key:re,value:function(){return this.hasOwnProperty("value")}},{key:_e,value:function(e){}},{key:ke,value:function(e){}},{key:N,value:function(){}},{key:I,value:function(e){delete this[Ve],this[_]&&(e.clean(this[_]),delete this[_])}},{key:ae,value:function(e){return this[$e].indexOf(e)}},{key:ie,value:function(e,t){t[Je]=this,this[$e].splice(e,0,t),!t[te]&&this[te]&&(t[te]=this[te])}},{key:de,value:function(){return!this.name}},{key:ge,value:function(){return""}},{key:je,value:function(){return 0===this[$e].length?this[M]:this[$e].map((function(e){return e[je]()})).join("")}},{key:Ue,get:function(){var t=Object.getPrototypeOf(this);if(!t._attributes){var r,n=t._attributes=new Set,a=b(Object.getOwnPropertyNames(this));try{for(a.s();!(r=a.n()).done;){var i=r.value;if(null===this[i]||this[i]instanceof e||this[i]instanceof at)break;n.add(i)}}catch(e){a.e(e)}finally{a.f()}}return(0,o.shadow)(this,Ue,t._attributes)}},{key:le,value:function(e){for(var t=this;t;){if(t===e)return!0;t=t[Q]()}return!1}},{key:Q,value:function(){return this[Je]}},{key:Z,value:function(){return this[Q]()}},{key:Y,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[e]:this[$e]}},{key:B,value:function(){var t=Object.create(null);this[M]&&(t.$content=this[M]);var r,n=b(Object.getOwnPropertyNames(this));try{for(n.s();!(r=n.n()).done;){var a=r.value,i=this[a];null!==i&&(i instanceof e?t[a]=i[B]():i instanceof at?i.isEmpty()||(t[a]=i.dump()):t[a]=i)}}catch(e){n.e(e)}finally{n.f()}return t}},{key:Be,value:function(){return null}},{key:Me,value:function(){return i.HTMLResult.EMPTY}},{key:K,value:a.default.mark((function e(){var t,r,n;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=b(this[Y]()),e.prev=1,t.s();case 3:if((r=t.n()).done){e.next=9;break}return n=r.value,e.next=7,n;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:ze,value:a.default.mark((function e(t,r){var n,i,o,s,c;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=b(this[K]()),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=13;break}if(o=i.value,t&&r!==t.has(o[ve])){e.next=11;break}return s=this[q](),(c=o[Me](s)).success||(this[D].failingNode=o),e.next=11,c;case 11:e.next=3;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[1,15,18,21]])}))},{key:L,value:function(){return null}},{key:C,value:function(e,t){this[D].children.push(e)}},{key:q,value:function(){}},{key:T,value:function(e){var t=e.filter,r=void 0===t?null:t,n=e.include,a=void 0===n||n;if(this[D].generator){var o=this[q](),s=this[D].failingNode[Me](o);if(!s.success)return s;s.html&&this[C](s.html,s.bbox),delete this[D].failingNode}else this[D].generator=this[ze](r,a);for(;;){var c=this[D].generator.next();if(c.done)break;var l=c.value;if(!l.success)return l;l.html&&this[C](l.html,l.bbox)}return this[D].generator=null,i.HTMLResult.EMPTY}},{key:Pe,value:function(e){this[Qe]=new Set(Object.keys(e))}},{key:Ge,value:function(e){var t,r=this[Ue],n=this[Qe];return(t=e,function(e){if(Array.isArray(e))return k(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||w(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).filter((function(e){return r.has(e)&&!n.has(e)}))}},{key:Fe,value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,n=b(this[$e]);try{for(n.s();!(t=n.n()).done;){var a=t.value;a[Ze](e,r)}}catch(e){n.e(e)}finally{n.f()}}},{key:Ze,value:function(e,t){var r=this[We](e,t);r?this[Ne](r,e,t):this[Fe](e,t)}},{key:We,value:function(e,t){var r=this.use,n=this.usehref;if(!r&&!n)return null;var a=null,i=null,s=null,c=r;if(n?(c=n,n.startsWith("#som(")&&n.endsWith(")")?i=n.slice("#som(".length,n.length-1):n.startsWith(".#som(")&&n.endsWith(")")?i=n.slice(".#som(".length,n.length-1):n.startsWith("#")?s=n.slice(1):n.startsWith(".#")&&(s=n.slice(2))):r.startsWith("#")?s=r.slice(1):i=r,this.use=this.usehref="",s?a=e.get(s):(a=(0,l.searchNode)(e.get(Ce),this,i,!0,!1))&&(a=a[0]),!a)return(0,o.warn)("XFA - Invalid prototype reference: ".concat(c,".")),null;if(a[ve]!==this[ve])return(0,o.warn)("XFA - Incompatible prototype: ".concat(a[ve]," !== ").concat(this[ve],".")),null;if(t.has(a))return(0,o.warn)("XFA - Cycle detected in prototypes use."),null;t.add(a);var u=a[We](e,t);return u&&a[Ne](u,e,t),a[Fe](e,t),t.delete(a),a}},{key:Ne,value:function(e,t,r){if(r.has(e))(0,o.warn)("XFA - Cycle detected in prototypes use.");else{!this[M]&&e[M]&&(this[M]=e[M]),new Set(r).add(e);var n,a=b(this[Ge](e[Qe]));try{for(a.s();!(n=a.n()).done;){var i=n.value;this[i]=e[i],this[Qe]&&this[Qe].add(i)}}catch(e){a.e(e)}finally{a.f()}var s,c=b(Object.getOwnPropertyNames(this));try{for(c.s();!(s=c.n()).done;){var l=s.value;if(!this[Ue].has(l)){var u=this[l],f=e[l];if(u instanceof at){var h,d=b(u[$e]);try{for(d.s();!(h=d.n()).done;)h.value[Ze](t,r)}catch(e){d.e(e)}finally{d.f()}for(var p=u[$e].length,g=f[$e].length;p<g;p++){var m=e[$e][p][E]();if(!u.push(m))break;m[Je]=this,this[$e].push(m),m[Ze](t,r)}}else if(null===u){if(null!==f){var v=f[E]();v[Je]=this,this[l]=v,this[$e].push(v),v[Ze](t,r)}}else u[Fe](t,r),f&&u[Ne](f,t,r)}}}catch(e){c.e(e)}finally{c.f()}}}},{key:E,value:function(){var t,r=Object.create(Object.getPrototypeOf(this)),n=b(Object.getOwnPropertySymbols(this));try{for(n.s();!(t=n.n()).done;){var a=t.value;try{r[a]=this[a]}catch(e){(0,o.shadow)(r,a,this[a])}}}catch(e){n.e(e)}finally{n.f()}r[De]="".concat(r[ve]).concat(tt++),r[$e]=[];var i,s=b(Object.getOwnPropertyNames(this));try{for(s.s();!(i=s.n()).done;){var c=i.value;if(this[Ue].has(c))r[c]=e[qe](this[c]);else{var l=this[c];r[c]=l instanceof at?new at(l[Ye]):null}}}catch(e){s.e(e)}finally{s.f()}var u,f=b(this[$e]);try{for(f.s();!(u=f.n()).done;){var h=u.value,d=h[ve],p=h[E]();r[$e].push(p),p[Je]=r,null===r[d]?r[d]=p:r[d][$e].push(p)}}catch(e){f.e(e)}finally{f.f()}return r}},{key:Y,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[$e].filter((function(t){return t[ve]===e})):this[$e]}},{key:X,value:function(e){return this[e]}},{key:H,value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Array.from(this[z](e,t,r))}},{key:z,value:a.default.mark((function e(t,r){var n,i,o,s,c=arguments;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(c.length>2&&void 0!==c[2])||c[2],"parent"!==t){e.next=5;break}return e.next=4,this[Je];case 4:return e.abrupt("return");case 5:i=b(this[$e]),e.prev=6,i.s();case 8:if((o=i.n()).done){e.next=20;break}if((s=o.value)[ve]!==t){e.next=13;break}return e.next=13,s;case 13:if(s.name!==t){e.next=16;break}return e.next=16,s;case 16:if(!r&&!s[de]()){e.next=18;break}return e.delegateYield(s[z](t,r,!1),"t0",18);case 18:e.next=8;break;case 20:e.next=25;break;case 22:e.prev=22,e.t1=e.catch(6),i.e(e.t1);case 25:return e.prev=25,i.f(),e.finish(25);case 28:if(!n||!this[Ue].has(t)){e.next=31;break}return e.next=31,new it(this,t,this[t]);case 31:case"end":return e.stop()}}),e,this,[[6,22,25,28]])}))}],[{key:qe,value:function(t){return Array.isArray(t)?t.map((function(t){return e[qe](t)})):"object"===y(t)&&null!==t?Object.assign({},t):t}}]),e}();t.XFAObject=nt;var at=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;S(this,e),this[Ye]=t,this[$e]=[]}return A(e,[{key:"push",value:function(e){return this[$e].length<=this[Ye]?(this[$e].push(e),!0):((0,o.warn)('XFA - node "'.concat(e[ve],'" accepts no more than ').concat(this[Ye]," children")),!1)}},{key:"isEmpty",value:function(){return 0===this[$e].length}},{key:"dump",value:function(){return 1===this[$e].length?this[$e][0][B]():this[$e].map((function(e){return e[B]()}))}},{key:E,value:function(){var t=new e(this[Ye]);return t[$e]=this[$e].map((function(e){return e[E]()})),t}},{key:"children",get:function(){return this[$e]}},{key:"clear",value:function(){this[$e].length=0}}]),e}();t.XFAObjectArray=at;var it=function(){function e(t,r,n){S(this,e),this[Je]=t,this[ve]=r,this[M]=n,this[j]=!1,this[De]="attribute".concat(tt++)}return A(e,[{key:Q,value:function(){return this[Je]}},{key:ce,value:function(){return!0}},{key:W,value:function(){return this[M].trim()}},{key:_e,value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){e=e.value||"",this[M]=e.toString()}))},{key:je,value:function(){return this[M]}},{key:le,value:function(e){return this[Je]===e||this[Je][le](e)}}]),e}();t.XFAAttribute=it;var ot=function(e){h(r,e);var t=p(r);function r(e,n){var a,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(S(this,r),(a=t.call(this,e,n))[M]="",a[Xe]=null,"#text"!==n){var o=new Map;a[Le]=o;for(var s=0,c=Object.entries(i);s<c.length;s++){var l=f(c[s],2),u=l[0],h=l[1];o.set(u,new it(m(a),u,h))}if(i.hasOwnProperty(ye)){var d=i[ye].xfa.dataNode;void 0!==d&&("dataGroup"===d?a[Xe]=!1:"dataValue"===d&&(a[Xe]=!0))}}return a[j]=!1,a}return A(r,[{key:Re,value:function(e){var t=this[ve];if("#text"!==t){var r=this[me]===rt?"xfa:":"";e.push("<".concat(r).concat(t));var n,a=b(this[Le].entries());try{for(a.s();!(n=a.n()).done;){var i=f(n.value,2),o=i[0],c=i[1];e.push(" ".concat(o,'="').concat((0,s.encodeToXmlString)(c[M]),'"'))}}catch(e){a.e(e)}finally{a.f()}if(null!==this[Xe]&&(this[Xe]?e.push(' xfa:dataNode="dataValue"'):e.push(' xfa:dataNode="dataGroup"')),this[M]||0!==this[$e].length){if(e.push(">"),this[M])"string"==typeof this[M]?e.push((0,s.encodeToXmlString)(this[M])):this[M][Re](e);else{var l,u=b(this[$e]);try{for(u.s();!(l=u.n()).done;)l.value[Re](e)}catch(e){u.e(e)}finally{u.f()}}e.push("</".concat(r).concat(t,">"))}else e.push("/>")}else e.push((0,s.encodeToXmlString)(this[M]))}},{key:be,value:function(e){if(this[M]){var t=new r(this[me],"#text");this[F](t),t[M]=this[M],this[M]=""}return this[F](e),!0}},{key:ke,value:function(e){this[M]+=e}},{key:N,value:function(){if(this[M]&&this[$e].length>0){var e=new r(this[me],"#text");this[F](e),e[M]=this[M],delete this[M]}}},{key:Me,value:function(){return"#text"===this[ve]?i.HTMLResult.success({name:"#text",value:this[M]}):i.HTMLResult.EMPTY}},{key:Y,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[$e].filter((function(t){return t[ve]===e})):this[$e]}},{key:$,value:function(){return this[Le]}},{key:X,value:function(e){var t=this[Le].get(e);return void 0!==t?t:this[Y](e)}},{key:z,value:a.default.mark((function(e,t){var r,n,i,o;return a.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!(r=this[Le].get(e))){a.next=4;break}return a.next=4,r;case 4:n=b(this[$e]),a.prev=5,n.s();case 7:if((i=n.n()).done){a.next=16;break}if((o=i.value)[ve]!==e){a.next=12;break}return a.next=12,o;case 12:if(!t){a.next=14;break}return a.delegateYield(o[z](e,t),"t0",14);case 14:a.next=7;break;case 16:a.next=21;break;case 18:a.prev=18,a.t1=a.catch(5),n.e(a.t1);case 21:return a.prev=21,n.f(),a.finish(21);case 24:case"end":return a.stop()}}),r,this,[[5,18,21,24]])}))},{key:U,value:a.default.mark((function(e,t){var r,n,i,o;return a.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!(r=this[Le].get(e))||t&&r[j]){a.next=4;break}return a.next=4,r;case 4:n=b(this[$e]),a.prev=5,n.s();case 7:if((i=n.n()).done){a.next=12;break}return o=i.value,a.delegateYield(o[U](e,t),"t0",10);case 10:a.next=7;break;case 12:a.next=17;break;case 14:a.prev=14,a.t1=a.catch(5),n.e(a.t1);case 17:return a.prev=17,n.f(),a.finish(17);case 20:case"end":return a.stop()}}),r,this,[[5,14,17,20]])}))},{key:V,value:a.default.mark((function e(t,r,n){var i,o,s;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=b(this[$e]),e.prev=1,i.s();case 3:if((o=i.n()).done){e.next=12;break}if((s=o.value)[ve]!==t||n&&s[j]){e.next=8;break}return e.next=8,s;case 8:if(!r){e.next=10;break}return e.delegateYield(s[V](t,r,n),"t0",10);case 10:e.next=3;break;case 12:e.next=17;break;case 14:e.prev=14,e.t1=e.catch(1),i.e(e.t1);case 17:return e.prev=17,i.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[1,14,17,20]])}))},{key:ce,value:function(){return null===this[Xe]?0===this[$e].length||this[$e][0][me]===c.NamespaceIds.xhtml.id:this[Xe]}},{key:W,value:function(){return null===this[Xe]?0===this[$e].length?this[M].trim():this[$e][0][me]===c.NamespaceIds.xhtml.id?this[$e][0][je]().trim():null:this[M].trim()}},{key:_e,value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){e=e.value||"",this[M]=e.toString()}))},{key:B,value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Object.create(null);e&&(t.$ns=this[me]),this[M]&&(t.$content=this[M]),t.$name=this[ve],t.children=[];var r,n=b(this[$e]);try{for(n.s();!(r=n.n()).done;){var a=r.value;t.children.push(a[B](e))}}catch(e){n.e(e)}finally{n.f()}t.attributes=Object.create(null);var i,o=b(this[Le]);try{for(o.s();!(i=o.n()).done;){var s=f(i.value,2),c=s[0],l=s[1];t.attributes[c]=l[M]}}catch(e){o.e(e)}finally{o.f()}return t}}]),r}(nt);t.XmlObject=ot;var st=function(e){h(r,e);var t=p(r);function r(e,n){var a;return S(this,r),(a=t.call(this,e,n))[M]="",a}return A(r,[{key:ke,value:function(e){this[M]+=e}},{key:N,value:function(){}}]),r}(nt);t.ContentObject=st;var ct=function(e){h(r,e);var t=p(r);function r(e,n,a){var i;return S(this,r),(i=t.call(this,e,n))[Ke]=a,i}return A(r,[{key:N,value:function(){var e=this;this[M]=(0,i.getKeyword)({data:this[M],defaultValue:this[Ke][0],validate:function(t){return e[Ke].includes(t)}})}},{key:I,value:function(e){u(v(r.prototype),I,this).call(this,e),delete this[Ke]}}]),r}(st);t.OptionObject=ct;var lt=function(e){h(r,e);var t=p(r);function r(){return S(this,r),t.apply(this,arguments)}return A(r,[{key:N,value:function(){this[M]=this[M].trim()}}]),r}(st);t.StringObject=lt;var ut=function(e){h(r,e);var t=p(r);function r(e,n,a,i){var o;return S(this,r),(o=t.call(this,e,n))[He]=a,o[et]=i,o}return A(r,[{key:N,value:function(){this[M]=(0,i.getInteger)({data:this[M],defaultValue:this[He],validate:this[et]})}},{key:I,value:function(e){u(v(r.prototype),I,this).call(this,e),delete this[He],delete this[et]}}]),r}(st);t.IntegerObject=ut;var ft=function(e){h(r,e);var t=p(r);function r(e,n){return S(this,r),t.call(this,e,n,0,(function(e){return 1===e}))}return r}(ut);t.Option01=ft;var ht=function(e){h(r,e);var t=p(r);function r(e,n){return S(this,r),t.call(this,e,n,1,(function(e){return 0===e}))}return r}(ut);t.Option10=ht},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBBox=function(e){var t=-1;if(!e)return{x:t,y:t,width:t,height:t};var r=e.trim().split(/\s*,\s*/).map((function(e){return u(e,"-1")}));if(r.length<4||r[2]<0||r[3]<0)return{x:t,y:t,width:t,height:t};var n=i(r,4);return{x:n[0],y:n[1],width:n[2],height:n[3]}},t.getColor=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],r=i(t,3),n=r[0],a=r[1],o=r[2];if(!e)return{r:n,g:a,b:o};var s=e.trim().split(/\s*,\s*/).map((function(e){return Math.min(Math.max(0,parseInt(e.trim(),10)),255)})).map((function(e){return isNaN(e)?0:e}));if(s.length<3)return{r:n,g:a,b:o};var c=i(s,3);return{r:n=c[0],g:a=c[1],b:o=c[2]}},t.getFloat=function(e){var t=e.data,r=e.defaultValue,n=e.validate;if(!t)return r;t=t.trim();var a=parseFloat(t);return!isNaN(a)&&n(a)?a:r},t.getInteger=function(e){var t=e.data,r=e.defaultValue,n=e.validate;if(!t)return r;t=t.trim();var a=parseInt(t,10);return!isNaN(a)&&n(a)?a:r},t.getKeyword=l,t.getMeasurement=u,t.getRatio=function(e){if(!e)return{num:1,den:1};var t=e.trim().split(/\s*:\s*/).map((function(e){return parseFloat(e)})).filter((function(e){return!isNaN(e)}));if(1===t.length&&t.push(1),0===t.length)return{num:1,den:1};var r=i(t,2);return{num:r[0],den:r[1]}},t.getRelevant=function(e){return e?e.trim().split(/\s+/).map((function(e){return{excluded:"-"===e[0],viewname:e.substring(1)}})):[]},t.getStringOption=function(e,t){return l({data:e,defaultValue:t[0],validate:function(e){return t.includes(e)}})},t.stripQuotes=function(e){return e.startsWith("'")||e.startsWith('"')?e.slice(1,e.length-1):e},t.HTMLResult=void 0;var n=r(4);function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s={pt:function(e){return e},cm:function(e){return e/2.54*72},mm:function(e){return e/25.4*72},in:function(e){return 72*e},px:function(e){return e}},c=/([+-]?\d+\.?\d*)(.*)/;function l(e){var t=e.data,r=e.defaultValue,n=e.validate;return t&&n(t=t.trim())?t:r}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";if(t=t||"0",!e)return u(t);var r=e.trim().match(c);if(!r)return u(t);var n=i(r,3),a=n[1],o=n[2],l=parseFloat(a);if(isNaN(l))return u(t);if(0===l)return 0;var f=s[o];return f?f(l):l}var f=function(){function e(t,r,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.success=t,this.html=r,this.bbox=n,this.breakNode=a}var t,r,i;return t=e,i=[{key:"FAILURE",get:function(){return(0,n.shadow)(this,"FAILURE",new e(!1,null,null,null))}},{key:"EMPTY",get:function(){return(0,n.shadow)(this,"EMPTY",new e(!0,null,null,null))}},{key:"breakNode",value:function(t){return new e(!1,null,null,t)}},{key:"success",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new e(!0,t,r,null)}}],(r=[{key:"isBreak",value:function(){return!!this.breakNode}}])&&a(t.prototype,r),i&&a(t,i),e}();t.HTMLResult=f},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceIds=t.$buildXFAObject=void 0;var r=Symbol();t.$buildXFAObject=r,t.NamespaceIds={config:{id:0,check:function(e){return e.startsWith("http://www.xfa.org/schema/xci/")}},connectionSet:{id:1,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-connection-set/")}},datasets:{id:2,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-data/")}},form:{id:3,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-form/")}},localeSet:{id:4,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-locale-set/")}},pdf:{id:5,check:function(e){return"http://ns.adobe.com/xdp/pdf/"===e}},signature:{id:6,check:function(e){return"http://www.w3.org/2000/09/xmldsig#"===e}},sourceSet:{id:7,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-source-set/")}},stylesheet:{id:8,check:function(e){return"http://www.w3.org/1999/XSL/Transform"===e}},template:{id:9,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-template/")}},xdc:{id:10,check:function(e){return e.startsWith("http://www.xfa.org/schema/xdc/")}},xdp:{id:11,check:function(e){return"http://ns.adobe.com/xdp/"===e}},xfdf:{id:12,check:function(e){return"http://ns.adobe.com/xfdf/"===e}},xhtml:{id:13,check:function(e){return"http://www.w3.org/1999/xhtml"===e}},xmpmeta:{id:14,check:function(e){return"http://ns.adobe.com/xmpmeta/"===e}}}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDataNode=function(e,t,r){var a=w(r);if(!a)return null;if(a.some((function(e){return e.operator===p})))return null;var o=m.get(a[0].name),s=0;o?(e=o(e,t),s=1):e=t||e;for(var c=a.length;s<c;s++){var l=a[s],u=l.name,f=l.operator,h=l.index;if(!isFinite(h))return a[s].index=0,k(e,a.slice(s));var v=void 0;switch(f){case d:v=e[n.$getChildrenByName](u,!1);break;case p:v=e[n.$getChildrenByName](u,!0);break;case g:v=(v=e[n.$getChildrenByClass](u))instanceof n.XFAObjectArray?v.children:[v]}if(0===v.length)return k(e,a.slice(s));if(!(h<v.length))return a[s].index=h-v.length,k(e,a.slice(s));var y=v[h];if(!(y instanceof n.XFAObject))return(0,i.warn)("XFA - Cannot create a node."),null;e=y}return null},t.searchNode=function(e,t,r){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],c=w(r,a);if(!c)return null;var l,u=m.get(c[0].name),f=0;u?(l=!0,e=[u(e,t)],f=1):(l=null===t,e=[t||e]);for(var h=function(r){var a,s=c[f],u=s.name,h=s.cacheName,m=s.operator,y=s.index,b=[],w=o(e);try{for(w.s();!(a=w.n()).done;){var k=a.value;if(k instanceof n.XFAObject){var S=void 0,x=void 0;if(i&&((x=v.get(k))||(x=new Map,v.set(k,x)),S=x.get(h)),!S){switch(m){case d:S=k[n.$getChildrenByName](u,!1);break;case p:S=k[n.$getChildrenByName](u,!0);break;case g:S=(S=k[n.$getChildrenByClass](u))instanceof n.XFAObjectArray?S.children:[S]}i&&x.set(h,S)}S.length>0&&b.push(S)}}}catch(e){w.e(e)}finally{w.f()}if(0===b.length&&!l&&0===f){var A=t[n.$getParent]();return(t=A)?(f=-1,e=[t],"continue"):{v:null}}e=isFinite(y)?b.filter((function(e){return y<e.length})).map((function(e){return e[y]})):b.reduce((function(e,t){return e.concat(t)}),[])},y=c.length;f<y;f++){var b=h(y);if("continue"!==b&&"object"===s(b))return b.v}return 0===e.length?null:e};var n=r(188),a=r(190),i=r(4);function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=l(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var f=/^[^.[]+/,h=/^[^\]]+/,d=0,p=1,g=2,m=new Map([["$data",function(e,t){return e.datasets?e.datasets.data:e}],["$record",function(e,t){return(e.datasets?e.datasets.data:e)[n.$getChildren]()[0]}],["$template",function(e,t){return e.template}],["$connectionSet",function(e,t){return e.connectionSet}],["$form",function(e,t){return e.form}],["$layout",function(e,t){return e.layout}],["$host",function(e,t){return e.host}],["$dataWindow",function(e,t){return e.dataWindow}],["$event",function(e,t){return e.event}],["!",function(e,t){return e.datasets}],["$xfa",function(e,t){return e}],["xfa",function(e,t){return e}],["$",function(e,t){return t}]]),v=new WeakMap,y=a.NamespaceIds.datasets.id;function b(e){return"*"===(e=e.trim())?1/0:parseInt(e,10)||0}function w(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=e.match(f);if(!n)return null;for(var a=n,o=c(a,1),s=o[0],l=[{name:s,cacheName:"."+s,index:0,js:null,formCalc:null,operator:d}],u=s.length;u<e.length;){var m=u,v=e.charAt(u++);if("["!==v){var y=void 0;switch(e.charAt(u)){case".":if(!t)return null;u++,y=p;break;case"#":u++,y=g;break;case"[":if(r)return(0,i.warn)("XFA - SOM expression contains a FormCalc subexpression which is not supported for now."),null;y=3;break;case"(":if(r)return(0,i.warn)("XFA - SOM expression contains a JavaScript subexpression which is not supported for now."),null;y=4;break;default:y=d}if(!(n=e.slice(u).match(f)))break;var w=n,k=c(w,1);u+=(s=k[0]).length,l.push({name:s,cacheName:e.slice(m,u),operator:y,index:0,js:null,formCalc:null})}else{if(!(n=e.slice(u).match(h)))return(0,i.warn)("XFA - Invalid index in SOM expression"),null;l[l.length-1].index=b(n[0]),u+=n[0].length+1}}return l}function k(e,t){var r,a=null,i=o(t);try{for(i.s();!(r=i.n()).done;){for(var s=r.value,c=s.name,l=s.index,u=0,f=isFinite(l)?l:0;u<=f;u++){var h=e[n.$namespaceId]===y?-1:e[n.$namespaceId];a=new n.XmlObject(h,c),e[n.$appendChild](a)}e=a}}catch(e){i.e(e)}finally{i.f()}return a}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Binder=void 0;var n=r(188),a=r(193),i=r(191),o=r(190),s=r(4);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function u(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var d=o.NamespaceIds.datasets.id;function p(e){var t=new a.Text({});return t[n.$content]=e,t}var g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.root=t,this.datasets=t.datasets,t.datasets&&t.datasets.data?this.data=t.datasets.data:this.data=new n.XmlObject(o.NamespaceIds.datasets.id,"data"),this.emptyMerge=0===this.data[n.$getChildren]().length,this.root.form=this.form=t.template[n.$clone]()}var t,r;return t=e,(r=[{key:"_isConsumeData",value:function(){return!this.emptyMerge&&this._mergeMode}},{key:"_isMatchTemplate",value:function(){return!this._isConsumeData()}},{key:"bind",value:function(){return this._bindElement(this.form,this.data),this.form}},{key:"getData",value:function(){return this.data}},{key:"_bindValue",value:function(e,t,r){if(e[n.$data]=t,e[n.$hasSettableValue]())if(t[n.$isDataValue]()){var i=t[n.$getDataValue]();e[n.$setValue](p(i))}else if(e instanceof a.Field&&e.ui&&e.ui.choiceList&&"multiSelect"===e.ui.choiceList.open){var o=t[n.$getChildren]().map((function(e){return e[n.$content].trim()})).join("\n");e[n.$setValue](p(o))}else this._isConsumeData()&&(0,s.warn)("XFA - Nodes haven't the same type.");else!t[n.$isDataValue]()||this._isMatchTemplate()?this._bindElement(e,t):(0,s.warn)("XFA - Nodes haven't the same type.")}},{key:"_findDataByNameToConsume",value:function(e,t,r,a){if(!e)return null;for(var i,s,c=0;c<3;c++){for(i=r[n.$getRealChildrenByNameIt](e,!1,!0);s=i.next().value;)if(t===s[n.$isDataValue]())return s;if(r[n.$namespaceId]===o.NamespaceIds.datasets.id&&"data"===r[n.$nodeName])break;r=r[n.$getParent]()}return a&&((s=(i=this.data[n.$getRealChildrenByNameIt](e,!0,!1)).next().value)||(s=(i=this.data[n.$getAttributeIt](e,!0)).next().value)&&s[n.$isDataValue]())?s:null}},{key:"_setProperties",value:function(e,t){if(e.hasOwnProperty("setProperty")){var r,o=l(e.setProperty.children);try{for(o.s();!(r=o.n()).done;){var u=r.value,f=u.ref,h=u.target;if(!u.connection&&f){var d=(0,i.searchNode)(this.root,t,f,!1,!1);if(d){var p=c(d,1)[0];if(p[n.$isDescendent](this.data)){var g=(0,i.searchNode)(this.root,e,h,!1,!1);if(g){var m=c(g,1)[0];if(m[n.$isDescendent](e)){var v=m[n.$getParent]();if(m instanceof a.SetProperty||v instanceof a.SetProperty)(0,s.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");else if(m instanceof a.BindItems||v instanceof a.BindItems)(0,s.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");else{var y=p[n.$text](),b=m[n.$nodeName];if(m instanceof n.XFAAttribute){var w=Object.create(null);w[b]=y;var k=Reflect.construct(Object.getPrototypeOf(v).constructor,[w]);v[b]=k[b]}else m.hasOwnProperty(n.$content)?(m[n.$data]=p,m[n.$content]=y,m[n.$finalize]()):(0,s.warn)("XFA - Invalid node to use in setProperty")}}else(0,s.warn)("XFA - Invalid target: must be a property or subproperty.")}else(0,s.warn)("XFA - Invalid target: ".concat(h,"."))}else(0,s.warn)("XFA - Invalid node: must be a data node.")}else(0,s.warn)("XFA - Invalid reference: ".concat(f,"."))}}}catch(e){o.e(e)}finally{o.f()}}}},{key:"_bindItems",value:function(e,t){if(e.hasOwnProperty("items")&&e.hasOwnProperty("bindItems")&&!e.bindItems.isEmpty()){var r,o=l(e.items.children);try{for(o.s();!(r=o.n()).done;){var u=r.value;e[n.$removeChild](u)}}catch(e){o.e(e)}finally{o.f()}e.items.clear();var f=new a.Items({}),h=new a.Items({});e[n.$appendChild](f),e.items.push(f),e[n.$appendChild](h),e.items.push(h);var d,g=l(e.bindItems.children);try{for(g.s();!(d=g.n()).done;){var m=d.value,v=m.ref,y=m.labelRef,b=m.valueRef;if(!m.connection&&v){var w=(0,i.searchNode)(this.root,t,v,!1,!1);if(w){var k,S=l(w);try{for(S.s();!(k=S.n()).done;){var x=k.value;if(x[n.$isDescendent](this.datasets)){var A=(0,i.searchNode)(this.root,x,y,!0,!1);if(A){var O=c(A,1)[0];if(O[n.$isDescendent](this.datasets)){var C=(0,i.searchNode)(this.root,x,b,!0,!1);if(C){var F=c(C,1)[0];if(F[n.$isDescendent](this.datasets)){var T=p(O[n.$text]()),I=p(F[n.$text]());f[n.$appendChild](T),f.text.push(T),h[n.$appendChild](I),h.text.push(I)}else(0,s.warn)("XFA - Invalid value: must be a datasets child.")}else(0,s.warn)("XFA - Invalid value: ".concat(b,"."))}else(0,s.warn)("XFA - Invalid label: must be a datasets child.")}else(0,s.warn)("XFA - Invalid label: ".concat(y,"."))}else(0,s.warn)("XFA - Invalid ref (".concat(v,"): must be a datasets child."))}}catch(e){S.e(e)}finally{S.f()}}else(0,s.warn)("XFA - Invalid reference: ".concat(v,"."))}}}catch(e){g.e(e)}finally{g.f()}}}},{key:"_bindOccurrences",value:function(e,t,r){var a;if(t.length>1&&((a=e[n.$clone]())[n.$removeChild](a.occur),a.occur=null),this._bindValue(e,t[0],r),this._setProperties(e,t[0]),this._bindItems(e,t[0]),1!==t.length)for(var i=e[n.$getParent](),o=e[n.$nodeName],s=i[n.$indexOf](e),c=1,l=t.length;c<l;c++){var u=t[c],f=a[n.$clone]();i[o].push(f),i[n.$insertAt](s+c,f),this._bindValue(f,u,r),this._setProperties(f,u),this._bindItems(f,u)}}},{key:"_createOccurrences",value:function(e){if(this.emptyMerge){var t=e.occur;if(t&&!(t.initial<=1)){var r=e[n.$getParent](),a=e[n.$nodeName];if(r[a]instanceof n.XFAObjectArray){var i;i=e.name?r[a].children.filter((function(t){return t.name===e.name})).length:r[a].children.length;var o=r[n.$indexOf](e)+1,s=t.initial-i;if(s){var c=e[n.$clone]();c[n.$removeChild](c.occur),c.occur=null,r[a].push(c),r[n.$insertAt](o,c);for(var l=1;l<s;l++){var u=c[n.$clone]();r[a].push(u),r[n.$insertAt](o+l,u)}}}}}}},{key:"_getOccurInfo",value:function(e){var t=e.name,r=e.occur;if(!r||!t)return[1,1];var n=-1===r.max?1/0:r.max;return[r.min,n]}},{key:"_setAndBind",value:function(e,t){this._setProperties(e,t),this._bindItems(e,t),this._bindElement(e,t)}},{key:"_bindElement",value:function(e,t){var r=[];this._createOccurrences(e);var a,o=l(e[n.$getChildren]());try{for(o.s();!(a=o.n()).done;){var u=a.value;if(!u[n.$data])if(void 0!==this._mergeMode||"subform"!==u[n.$nodeName]){if(u[n.$isBindable]()){var f=!1,h=null,p=null,g=null;if(u.bind){switch(u.bind.match){case"none":this._setAndBind(u,t);continue;case"global":f=!0;break;case"dataRef":if(!u.bind.ref){(0,s.warn)("XFA - ref is empty in node ".concat(u[n.$nodeName],".")),this._setAndBind(u,t);continue}p=u.bind.ref}u.bind.picture&&(h=u.bind.picture[n.$content])}var m=c(this._getOccurInfo(u),2),v=m[0],y=m[1];if(p){if(null===(g=(0,i.searchNode)(this.root,t,p,!0,!1))){if(!(g=(0,i.createDataNode)(this.data,t,p)))continue;this._isConsumeData()&&(g[n.$consumed]=!0),this._setAndBind(u,g);continue}this._isConsumeData()&&(g=g.filter((function(e){return!e[n.$consumed]}))),g.length>y?g=g.slice(0,y):0===g.length&&(g=null),g&&this._isConsumeData()&&g.forEach((function(e){e[n.$consumed]=!0}))}else{if(!u.name){this._setAndBind(u,t);continue}if(this._isConsumeData()){for(var b=[];b.length<y;){var w=this._findDataByNameToConsume(u.name,u[n.$hasSettableValue](),t,f);if(!w)break;w[n.$consumed]=!0,b.push(w)}g=b.length>0?b:null}else{if(!(g=t[n.$getRealChildrenByNameIt](u.name,!1,this.emptyMerge).next().value)){var k=t[n.$namespaceId]===d?-1:t[n.$namespaceId];g=u[n.$data]=new n.XmlObject(k,u.name),this.emptyMerge&&(g[n.$consumed]=!0),t[n.$appendChild](g),this._setAndBind(u,g);continue}this.emptyMerge&&(g[n.$consumed]=!0),g=[g]}}g?this._bindOccurrences(u,g,h):v>0?this._setAndBind(u,t):r.push(u)}}else{this._mergeMode="consumeData"===u.mergeMode;var S=t[n.$getChildren]();if(S.length>0)this._bindOccurrences(u,[S[0]],null);else if(this.emptyMerge){var x=t[n.$namespaceId]===d?-1:t[n.$namespaceId],A=u[n.$data]=new n.XmlObject(x,u.name||"root");t[n.$appendChild](A),this._bindElement(u,A)}}}}catch(e){o.e(e)}finally{o.f()}r.forEach((function(e){return e[n.$getParent]()[n.$removeChild](e)}))}}])&&h(t.prototype,r),e}();t.Binder=g},(e,t,r)=>{"use strict";var n=r(2);Object.defineProperty(t,"__esModule",{value:!0}),t.Value=t.Text=t.TemplateNamespace=t.Template=t.SetProperty=t.Items=t.Field=t.BindItems=void 0;var a,i=(a=r(2))&&a.__esModule?a:{default:a},o=r(188),s=r(190),c=r(194),l=r(195),u=r(189),f=r(4),h=r(196),d=r(122),p=r(191);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e,t,r){return m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=O(e)););return e}(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(r):a.value}},m(e,t,r||e)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||T(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),e}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=O(e);if(t){var a=O(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return A(this,r)}}function A(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var C=n.mark(N);function F(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=T(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function T(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var P=s.NamespaceIds.template.id,_="http://www.w3.org/2000/svg",E=/^H(\d+)$/,j=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif"]),M=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]];function R(e){if(!e||!e.border)return{w:0,h:0};var t=e.border[o.$getExtra]();return t?{w:t.widths[0]+t.widths[2]+t.insets[0]+t.insets[2],h:t.widths[1]+t.widths[3]+t.insets[1]+t.insets[3]}:{w:0,h:0}}function B(e){return e.margin&&(e.margin.topInset||e.margin.rightInset||e.margin.bottomInset||e.margin.leftInset)}function D(e,t){if(!e.value){var r=new Kt({});e[o.$appendChild](r),e.value=r}e.value[o.$setValue](t)}function N(e){var t,r,n;return i.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:t=F(e[o.$getChildren]()),a.prev=1,t.s();case 3:if((r=t.n()).done){a.next=12;break}if(!((n=r.value)instanceof Bt)){a.next=8;break}return a.delegateYield(n[o.$getContainedChildren](),"t0",7);case 7:return a.abrupt("continue",10);case 8:return a.next=10,n;case 10:a.next=3;break;case 12:a.next=17;break;case 14:a.prev=14,a.t1=a.catch(1),t.e(a.t1);case 17:return a.prev=17,t.f(),a.finish(17);case 20:case"end":return a.stop()}}),C,null,[[1,14,17,20]])}function L(e){for(;e;){if(!e.traversal)return void(e[o.$tabIndex]=e[o.$getParent]()[o.$tabIndex]);if(e[o.$tabIndex])return;var t,r=null,n=F(e.traversal[o.$getChildren]());try{for(n.s();!(t=n.n()).done;){var a=t.value;if("next"===a.operation){r=a;break}}}catch(e){n.e(e)}finally{n.f()}if(!r||!r.ref)return void(e[o.$tabIndex]=e[o.$getParent]()[o.$tabIndex]);var i=e[o.$getTemplateRoot]();e[o.$tabIndex]=++i[o.$tabIndex];var s=i[o.$searchNode](r.ref,e);if(!s)return;e=s[0]}}function U(e,t){var r=e.assist;if(r){var n=r[o.$toHTML]();n&&(t.title=n);var a=r.role.match(E);if(a){var i=a[1];t.role="heading",t["aria-level"]=i}}if("table"===e.layout)t.role="table";else if("row"===e.layout)t.role="row";else{var s=e[o.$getParent]();"row"===s.layout&&(s.assist&&"TH"===s.assist.role?t.role="columnheader":t.role="cell")}}function $(e){if(!e.assist)return null;var t=e.assist;return t.speak&&""!==t.speak[o.$content]?t.speak[o.$content]:t.toolTip?t.toolTip[o.$content]:null}function q(e){return u.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:e}]})}function X(e){var t=e[o.$getTemplateRoot]();null===t[o.$extra].firstUnsplittable&&(t[o.$extra].firstUnsplittable=e,t[o.$extra].noLayoutFailure=!0)}function H(e){var t=e[o.$getTemplateRoot]();t[o.$extra].firstUnsplittable===e&&(t[o.$extra].noLayoutFailure=!1)}function z(e){if(e[o.$extra])return!1;if(e[o.$extra]=Object.create(null),"auto"===e.targetType)return!1;var t=e[o.$getTemplateRoot](),r=null;if(e.target){if(!(r=t[o.$searchNode](e.target,e[o.$getParent]())))return!1;r=r[0]}var n=t[o.$extra],a=n.currentPageArea,i=n.currentContentArea;if("pageArea"===e.targetType)return r instanceof gt||(r=null),e.startNew?(e[o.$extra].target=r||a,!0):!(!r||r===a||(e[o.$extra].target=r,0));r instanceof me||(r=null);var s,c=r&&r[o.$getParent]();if(e.startNew)s=r?c.contentArea.children.findIndex((function(e){return e===r}))-1:a.contentArea.children.findIndex((function(e){return e===i}));else{if(!r||r===i)return!1;s=c.contentArea.children.findIndex((function(e){return e===r}))-1}return e[o.$extra].target=c===a?null:c,e[o.$extra].index=s,!0}function W(e,t,r){var n=e[o.$getTemplateRoot](),a=n[o.$extra].noLayoutFailure,i=t[o.$getSubformParent];t[o.$getSubformParent]=function(){return e},n[o.$extra].noLayoutFailure=!0;var s=t[o.$toHTML](r);e[o.$addHTML](s.html,s.bbox),n[o.$extra].noLayoutFailure=a,t[o.$getSubformParent]=i}var G=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"appearanceFilter")).id=e.id||"",n.type=(0,u.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.StringObject),V=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"arc",!0)).circular=(0,u.getInteger)({data:e.circular,defaultValue:0,validate:function(e){return 1===e}}),n.hand=(0,u.getStringOption)(e.hand,["even","left","right"]),n.id=e.id||"",n.startAngle=(0,u.getFloat)({data:e.startAngle,defaultValue:0,validate:function(e){return!0}}),n.sweepAngle=(0,u.getFloat)({data:e.sweepAngle,defaultValue:360,validate:function(e){return!0}}),n.use=e.use||"",n.usehref=e.usehref||"",n.edge=null,n.fill=null,n}return b(r,[{key:o.$toHTML,value:function(){var e,t=this.edge?this.edge:new Fe({}),r=t[o.$toStyle](),n=Object.create(null);this.fill&&"visible"===this.fill.presence?Object.assign(n,this.fill[o.$toStyle]()):n.fill="transparent",n.strokeWidth=(0,l.measureToString)("visible"===t.presence?t.thickness:0),n.stroke=r.color;var a={xmlns:_,style:{width:"100%",height:"100%",overflow:"visible"}};if(0===this.startAngle&&360===this.sweepAngle)e={name:"ellipse",attributes:{xmlns:_,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:n}};else{var i=this.startAngle*Math.PI/180,s=this.sweepAngle*Math.PI/180,c=this.sweepAngle-this.startAngle>180?1:0,f=50*(1+Math.cos(i)),h=50*(1-Math.sin(i)),d=50*(1+Math.cos(s)),p=50*(1-Math.sin(s));e={name:"path",attributes:{xmlns:_,d:"M ".concat(f," ").concat(h," A 50 50 0 ").concat(c," 0 ").concat(d," ").concat(p),vectorEffect:"non-scaling-stroke",style:n}},Object.assign(a,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}var g={name:"svg",children:[e],attributes:a};return B(this[o.$getParent]()[o.$getParent]())?u.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[g]}):(g.attributes.style.position="absolute",u.HTMLResult.success(g))}}]),r}(o.XFAObject),Y=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"area",!0)).colSpan=(0,u.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),n.id=e.id||"",n.name=e.name||"",n.relevant=(0,u.getRelevant)(e.relevant),n.use=e.use||"",n.usehref=e.usehref||"",n.x=(0,u.getMeasurement)(e.x,"0pt"),n.y=(0,u.getMeasurement)(e.y,"0pt"),n.desc=null,n.extras=null,n.area=new o.XFAObjectArray,n.draw=new o.XFAObjectArray,n.exObject=new o.XFAObjectArray,n.exclGroup=new o.XFAObjectArray,n.field=new o.XFAObjectArray,n.subform=new o.XFAObjectArray,n.subformSet=new o.XFAObjectArray,n}return b(r,[{key:o.$getContainedChildren,value:i.default.mark((function e(){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(N(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:o.$isTransparent,value:function(){return!0}},{key:o.$isBindable,value:function(){return!0}},{key:o.$addHTML,value:function(e,t){var r=v(t,4),n=r[0],a=r[1],i=r[2],s=r[3];this[o.$extra].width=Math.max(this[o.$extra].width,n+i),this[o.$extra].height=Math.max(this[o.$extra].height,a+s),this[o.$extra].children.push(e)}},{key:o.$getAvailableSpace,value:function(){return this[o.$extra].availableSpace}},{key:o.$toHTML,value:function(e){var t=(0,l.toStyle)(this,"position"),r={style:t,id:this[o.$uid],class:["xfaArea"]};(0,l.isPrintOnly)(this)&&r.class.push("xfaPrintOnly"),this.name&&(r.xfaName=this.name);var n=[];this[o.$extra]={children:n,width:0,height:0,availableSpace:e};var a=this[o.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!a.success)return a.isBreak()?a:(delete this[o.$extra],u.HTMLResult.FAILURE);t.width=(0,l.measureToString)(this[o.$extra].width),t.height=(0,l.measureToString)(this[o.$extra].height);var i={name:"div",attributes:r,children:n},s=[this.x,this.y,this[o.$extra].width,this[o.$extra].height];return delete this[o.$extra],u.HTMLResult.success(i,s)}}]),r}(o.XFAObject),K=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"assist",!0)).id=e.id||"",n.role=e.role||"",n.use=e.use||"",n.usehref=e.usehref||"",n.speak=null,n.toolTip=null,n}return b(r,[{key:o.$toHTML,value:function(){return this.toolTip&&this.toolTip[o.$content]?this.toolTip[o.$content]:null}}]),r}(o.XFAObject),J=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"barcode",!0)).charEncoding=(0,u.getKeyword)({data:e.charEncoding?e.charEncoding.toLowerCase():"",defaultValue:"",validate:function(e){return["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)}}),n.checksum=(0,u.getStringOption)(e.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),n.dataColumnCount=(0,u.getInteger)({data:e.dataColumnCount,defaultValue:-1,validate:function(e){return e>=0}}),n.dataLength=(0,u.getInteger)({data:e.dataLength,defaultValue:-1,validate:function(e){return e>=0}}),n.dataPrep=(0,u.getStringOption)(e.dataPrep,["none","flateCompress"]),n.dataRowCount=(0,u.getInteger)({data:e.dataRowCount,defaultValue:-1,validate:function(e){return e>=0}}),n.endChar=e.endChar||"",n.errorCorrectionLevel=(0,u.getInteger)({data:e.errorCorrectionLevel,defaultValue:-1,validate:function(e){return e>=0&&e<=8}}),n.id=e.id||"",n.moduleHeight=(0,u.getMeasurement)(e.moduleHeight,"5mm"),n.moduleWidth=(0,u.getMeasurement)(e.moduleWidth,"0.25mm"),n.printCheckDigit=(0,u.getInteger)({data:e.printCheckDigit,defaultValue:0,validate:function(e){return 1===e}}),n.rowColumnRatio=(0,u.getRatio)(e.rowColumnRatio),n.startChar=e.startChar||"",n.textLocation=(0,u.getStringOption)(e.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),n.truncate=(0,u.getInteger)({data:e.truncate,defaultValue:0,validate:function(e){return 1===e}}),n.type=(0,u.getStringOption)(e.type?e.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]),n.upsMode=(0,u.getStringOption)(e.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),n.use=e.use||"",n.usehref=e.usehref||"",n.wideNarrowRatio=(0,u.getRatio)(e.wideNarrowRatio),n.encrypt=null,n.extras=null,n}return r}(o.XFAObject),Z=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"bind",!0)).match=(0,u.getStringOption)(e.match,["once","dataRef","global","none"]),n.ref=e.ref||"",n.picture=null,n}return r}(o.XFAObject),Q=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"bindItems")).connection=e.connection||"",n.labelRef=e.labelRef||"",n.ref=e.ref||"",n.valueRef=e.valueRef||"",n}return r}(o.XFAObject);t.BindItems=Q;var ee=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"bookend")).id=e.id||"",n.leader=e.leader||"",n.trailer=e.trailer||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.XFAObject),te=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"boolean")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return b(r,[{key:o.$toHTML,value:function(e){return q(1===this[o.$content]?"1":"0")}}]),r}(o.Option01),re=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"border",!0)).break=(0,u.getStringOption)(e.break,["close","open"]),n.hand=(0,u.getStringOption)(e.hand,["even","left","right"]),n.id=e.id||"",n.presence=(0,u.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.relevant=(0,u.getRelevant)(e.relevant),n.use=e.use||"",n.usehref=e.usehref||"",n.corner=new o.XFAObjectArray(4),n.edge=new o.XFAObjectArray(4),n.extras=null,n.fill=null,n.margin=null,n}return b(r,[{key:o.$getExtra,value:function(){if(!this[o.$extra]){var e=this.edge.children.slice();if(e.length<4)for(var t=e[e.length-1]||new Fe({}),r=e.length;r<4;r++)e.push(t);var n=e.map((function(e){return e.thickness})),a=[0,0,0,0];this.margin&&(a[0]=this.margin.topInset,a[1]=this.margin.rightInset,a[2]=this.margin.bottomInset,a[3]=this.margin.leftInset),this[o.$extra]={widths:n,insets:a,edges:e}}return this[o.$extra]}},{key:o.$toStyle,value:function(){var e=this[o.$getExtra]().edges.map((function(e){var t=e[o.$toStyle]();return t.color=t.color||"#000000",t})),t=Object.create(null);if(this.margin&&Object.assign(t,this.margin[o.$toStyle]()),this.fill&&"visible"===this.fill.presence&&Object.assign(t,this.fill[o.$toStyle]()),this.corner.children.some((function(e){return 0!==e.radius}))){var r=this.corner.children.map((function(e){return e[o.$toStyle]()}));if(2===r.length||3===r.length)for(var n=r[r.length-1],a=r.length;a<4;a++)r.push(n);t.borderRadius=r.map((function(e){return e.radius})).join(" ")}switch(this.presence){case"invisible":case"hidden":t.borderStyle="";break;case"inactive":t.borderStyle="none";break;default:t.borderStyle=e.map((function(e){return e.style})).join(" ")}return t.borderWidth=e.map((function(e){return e.width})).join(" "),t.borderColor=e.map((function(e){return e.color})).join(" "),t}}]),r}(o.XFAObject),ne=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"break",!0)).after=(0,u.getStringOption)(e.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),n.afterTarget=e.afterTarget||"",n.before=(0,u.getStringOption)(e.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),n.beforeTarget=e.beforeTarget||"",n.bookendLeader=e.bookendLeader||"",n.bookendTrailer=e.bookendTrailer||"",n.id=e.id||"",n.overflowLeader=e.overflowLeader||"",n.overflowTarget=e.overflowTarget||"",n.overflowTrailer=e.overflowTrailer||"",n.startNew=(0,u.getInteger)({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n}return r}(o.XFAObject),ae=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"breakAfter",!0)).id=e.id||"",n.leader=e.leader||"",n.startNew=(0,u.getInteger)({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),n.target=e.target||"",n.targetType=(0,u.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),n.trailer=e.trailer||"",n.use=e.use||"",n.usehref=e.usehref||"",n.script=null,n}return r}(o.XFAObject),ie=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"breakBefore",!0)).id=e.id||"",n.leader=e.leader||"",n.startNew=(0,u.getInteger)({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),n.target=e.target||"",n.targetType=(0,u.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),n.trailer=e.trailer||"",n.use=e.use||"",n.usehref=e.usehref||"",n.script=null,n}return b(r,[{key:o.$toHTML,value:function(e){return this[o.$extra]={},u.HTMLResult.FAILURE}}]),r}(o.XFAObject),oe=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"button",!0)).highlight=(0,u.getStringOption)(e.highlight,["inverted","none","outline","push"]),n.id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n}return b(r,[{key:o.$toHTML,value:function(e){var t,r=this[o.$getParent]()[o.$getParent](),n={name:"button",attributes:{id:this[o.$uid],class:["xfaButton"],style:{}},children:[]},a=F(r.event.children);try{for(a.s();!(t=a.n()).done;){var i=t.value;if("click"===i.activity&&i.script){var s=(0,d.recoverJsURL)(i.script[o.$content]);if(s){var c=(0,l.fixURL)(s.url);c&&n.children.push({name:"a",attributes:{id:"link"+this[o.$uid],href:c,newWindow:s.newWindow,class:["xfaLink"],style:{}},children:[]})}}}}catch(e){a.e(e)}finally{a.f()}return u.HTMLResult.success(n)}}]),r}(o.XFAObject),se=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"calculate",!0)).id=e.id||"",n.override=(0,u.getStringOption)(e.override,["disabled","error","ignore","warning"]),n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.message=null,n.script=null,n}return r}(o.XFAObject),ce=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"caption",!0)).id=e.id||"",n.placement=(0,u.getStringOption)(e.placement,["left","bottom","inline","right","top"]),n.presence=(0,u.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.reserve=Math.ceil((0,u.getMeasurement)(e.reserve)),n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.font=null,n.margin=null,n.para=null,n.value=null,n}return b(r,[{key:o.$setValue,value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){D(this,e)}))},{key:o.$getExtra,value:function(e){if(!this[o.$extra]){var t=e.width,r=e.height;switch(this.placement){case"left":case"right":case"inline":t=this.reserve<=0?t:this.reserve;break;case"top":case"bottom":r=this.reserve<=0?r:this.reserve}this[o.$extra]=(0,l.layoutNode)(this,{width:t,height:r})}return this[o.$extra]}},{key:o.$toHTML,value:function(e){if(!this.value)return u.HTMLResult.EMPTY;this[o.$pushPara]();var t=this.value[o.$toHTML](e).html;if(!t)return this[o.$popPara](),u.HTMLResult.EMPTY;var r=this.reserve;if(this.reserve<=0){var n=this[o.$getExtra](e),a=n.w,i=n.h;switch(this.placement){case"left":case"right":case"inline":this.reserve=a;break;case"top":case"bottom":this.reserve=i}}var s=[];"string"==typeof t?s.push({name:"#text",value:t}):s.push(t);var c=(0,l.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(c.width=(0,l.measureToString)(this.reserve));break;case"top":case"bottom":this.reserve>0&&(c.height=(0,l.measureToString)(this.reserve))}return(0,l.setPara)(this,null,t),this[o.$popPara](),this.reserve=r,u.HTMLResult.success({name:"div",attributes:{style:c,class:["xfaCaption"]},children:s})}}]),r}(o.XFAObject),le=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"certificate")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.StringObject),ue=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"certificates",!0)).credentialServerPolicy=(0,u.getStringOption)(e.credentialServerPolicy,["optional","required"]),n.id=e.id||"",n.url=e.url||"",n.urlPolicy=e.urlPolicy||"",n.use=e.use||"",n.usehref=e.usehref||"",n.encryption=null,n.issuers=null,n.keyUsage=null,n.oids=null,n.signing=null,n.subjectDNs=null,n}return r}(o.XFAObject),fe=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"checkButton",!0)).id=e.id||"",n.mark=(0,u.getStringOption)(e.mark,["default","check","circle","cross","diamond","square","star"]),n.shape=(0,u.getStringOption)(e.shape,["square","round"]),n.size=(0,u.getMeasurement)(e.size,"10pt"),n.use=e.use||"",n.usehref=e.usehref||"",n.border=null,n.extras=null,n.margin=null,n}return b(r,[{key:o.$toHTML,value:function(e){var t,r,n,a=(0,l.toStyle)("margin"),i=(0,l.measureToString)(this.size);a.width=a.height=i;var s,c=this[o.$getParent]()[o.$getParent](),f=c.items.children.length&&c.items.children[0][o.$toHTML]().html||[],h={on:(void 0!==f[0]?f[0]:"on").toString(),off:(void 0!==f[1]?f[1]:"off").toString()},d=(c.value&&c.value[o.$text]()||"off")===h.on||void 0,p=c[o.$getSubformParent](),g=c[o.$uid];p instanceof Ne?(n=p[o.$uid],t="radio",r="xfaRadio",s=p[o.$data]&&p[o.$data][o.$uid]||p[o.$uid]):(t="checkbox",r="xfaCheckbox",s=c[o.$data]&&c[o.$data][o.$uid]||c[o.$uid]);var m={name:"input",attributes:{class:[r],style:a,fieldId:g,dataId:s,type:t,checked:d,xfaOn:h.on,xfaOff:h.off,"aria-label":$(c)}};return n&&(m.attributes.name=n),u.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[m]})}}]),r}(o.XFAObject),he=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"choiceList",!0)).commitOn=(0,u.getStringOption)(e.commitOn,["select","exit"]),n.id=e.id||"",n.open=(0,u.getStringOption)(e.open,["userControl","always","multiSelect","onEntry"]),n.textEntry=(0,u.getInteger)({data:e.textEntry,defaultValue:0,validate:function(e){return 1===e}}),n.use=e.use||"",n.usehref=e.usehref||"",n.border=null,n.extras=null,n.margin=null,n}return b(r,[{key:o.$toHTML,value:function(e){var t=(0,l.toStyle)(this,"border","margin"),r=this[o.$getParent]()[o.$getParent](),n=r.font&&r.font.size||10,a={fontSize:"calc(".concat(n,"px * var(--zoom-factor))")},i=[];if(r.items.children.length>0){var s=r.items,c=0,f=0;2===s.children.length&&(f=1-(c=s.children[0].save));for(var h=s.children[c][o.$toHTML]().html,d=s.children[f][o.$toHTML]().html,p=!1,g=r.value&&r.value[o.$text]()||"",m=0,v=h.length;m<v;m++){var y={name:"option",attributes:{value:d[m]||h[m],style:a},value:h[m]};d[m]===g&&(y.attributes.selected=p=!0),i.push(y)}p||i.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}var b={class:["xfaSelect"],fieldId:r[o.$uid],dataId:r[o.$data]&&r[o.$data][o.$uid]||r[o.$uid],style:t,"aria-label":$(r)};return"multiSelect"===this.open&&(b.multiple=!0),u.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:i,attributes:b}]})}}]),r}(o.XFAObject),de=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"color",!0)).cSpace=(0,u.getStringOption)(e.cSpace,["SRGB"]),n.id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.value=e.value?(0,u.getColor)(e.value):"",n.extras=null,n}return b(r,[{key:o.$hasSettableValue,value:function(){return!1}},{key:o.$toStyle,value:function(){return this.value?f.Util.makeHexColor(this.value.r,this.value.g,this.value.b):null}}]),r}(o.XFAObject),pe=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"comb")).id=e.id||"",n.numberOfCells=(0,u.getInteger)({data:e.numberOfCells,defaultValue:0,validate:function(e){return e>=0}}),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.XFAObject),ge=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"connect",!0)).connection=e.connection||"",n.id=e.id||"",n.ref=e.ref||"",n.usage=(0,u.getStringOption)(e.usage,["exportAndImport","exportOnly","importOnly"]),n.use=e.use||"",n.usehref=e.usehref||"",n.picture=null,n}return r}(o.XFAObject),me=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"contentArea",!0)).h=(0,u.getMeasurement)(e.h),n.id=e.id||"",n.name=e.name||"",n.relevant=(0,u.getRelevant)(e.relevant),n.use=e.use||"",n.usehref=e.usehref||"",n.w=(0,u.getMeasurement)(e.w),n.x=(0,u.getMeasurement)(e.x,"0pt"),n.y=(0,u.getMeasurement)(e.y,"0pt"),n.desc=null,n.extras=null,n}return b(r,[{key:o.$toHTML,value:function(e){var t={left:(0,l.measureToString)(this.x),top:(0,l.measureToString)(this.y),width:(0,l.measureToString)(this.w),height:(0,l.measureToString)(this.h)},r=["xfaContentarea"];return(0,l.isPrintOnly)(this)&&r.push("xfaPrintOnly"),u.HTMLResult.success({name:"div",children:[],attributes:{style:t,class:r,id:this[o.$uid]}})}}]),r}(o.XFAObject),ve=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"corner",!0)).id=e.id||"",n.inverted=(0,u.getInteger)({data:e.inverted,defaultValue:0,validate:function(e){return 1===e}}),n.join=(0,u.getStringOption)(e.join,["square","round"]),n.presence=(0,u.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.radius=(0,u.getMeasurement)(e.radius),n.stroke=(0,u.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),n.thickness=(0,u.getMeasurement)(e.thickness,"0.5pt"),n.use=e.use||"",n.usehref=e.usehref||"",n.color=null,n.extras=null,n}return b(r,[{key:o.$toStyle,value:function(){var e=(0,l.toStyle)(this,"visibility");return e.radius=(0,l.measureToString)("square"===this.join?0:this.radius),e}}]),r}(o.XFAObject),ye=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"date")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return b(r,[{key:o.$finalize,value:function(){var e=this[o.$content].trim();this[o.$content]=e?new Date(e):null}},{key:o.$toHTML,value:function(e){return q(this[o.$content]?this[o.$content].toString():"")}}]),r}(o.ContentObject),be=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"dateTime")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return b(r,[{key:o.$finalize,value:function(){var e=this[o.$content].trim();this[o.$content]=e?new Date(e):null}},{key:o.$toHTML,value:function(e){return q(this[o.$content]?this[o.$content].toString():"")}}]),r}(o.ContentObject),we=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"dateTimeEdit",!0)).hScrollPolicy=(0,u.getStringOption)(e.hScrollPolicy,["auto","off","on"]),n.id=e.id||"",n.picker=(0,u.getStringOption)(e.picker,["host","none"]),n.use=e.use||"",n.usehref=e.usehref||"",n.border=null,n.comb=null,n.extras=null,n.margin=null,n}return b(r,[{key:o.$toHTML,value:function(e){var t=(0,l.toStyle)(this,"border","font","margin"),r=this[o.$getParent]()[o.$getParent](),n={name:"input",attributes:{type:"text",fieldId:r[o.$uid],dataId:r[o.$data]&&r[o.$data][o.$uid]||r[o.$uid],class:["xfaTextfield"],style:t,"aria-label":$(r)}};return u.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[n]})}}]),r}(o.XFAObject),ke=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"decimal")).fracDigits=(0,u.getInteger)({data:e.fracDigits,defaultValue:2,validate:function(e){return!0}}),n.id=e.id||"",n.leadDigits=(0,u.getInteger)({data:e.leadDigits,defaultValue:-1,validate:function(e){return!0}}),n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return b(r,[{key:o.$finalize,value:function(){var e=parseFloat(this[o.$content].trim());this[o.$content]=isNaN(e)?null:e}},{key:o.$toHTML,value:function(e){return q(null!==this[o.$content]?this[o.$content].toString():"")}}]),r}(o.ContentObject),Se=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"defaultUi",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n}return r}(o.XFAObject),xe=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"desc",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.boolean=new o.XFAObjectArray,n.date=new o.XFAObjectArray,n.dateTime=new o.XFAObjectArray,n.decimal=new o.XFAObjectArray,n.exData=new o.XFAObjectArray,n.float=new o.XFAObjectArray,n.image=new o.XFAObjectArray,n.integer=new o.XFAObjectArray,n.text=new o.XFAObjectArray,n.time=new o.XFAObjectArray,n}return r}(o.XFAObject),Ae=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"])).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.OptionObject),Oe=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"digestMethods",!0)).id=e.id||"",n.type=(0,u.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.digestMethod=new o.XFAObjectArray,n}return r}(o.XFAObject),Ce=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"draw",!0)).anchorType=(0,u.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),n.colSpan=(0,u.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),n.h=e.h?(0,u.getMeasurement)(e.h):"",n.hAlign=(0,u.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),n.id=e.id||"",n.locale=e.locale||"",n.maxH=(0,u.getMeasurement)(e.maxH,"0pt"),n.maxW=(0,u.getMeasurement)(e.maxW,"0pt"),n.minH=(0,u.getMeasurement)(e.minH,"0pt"),n.minW=(0,u.getMeasurement)(e.minW,"0pt"),n.name=e.name||"",n.presence=(0,u.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.relevant=(0,u.getRelevant)(e.relevant),n.rotate=(0,u.getInteger)({data:e.rotate,defaultValue:0,validate:function(e){return e%90==0}}),n.use=e.use||"",n.usehref=e.usehref||"",n.w=e.w?(0,u.getMeasurement)(e.w):"",n.x=(0,u.getMeasurement)(e.x,"0pt"),n.y=(0,u.getMeasurement)(e.y,"0pt"),n.assist=null,n.border=null,n.caption=null,n.desc=null,n.extras=null,n.font=null,n.keep=null,n.margin=null,n.para=null,n.traversal=null,n.ui=null,n.value=null,n.setProperty=new o.XFAObjectArray,n}return b(r,[{key:o.$setValue,value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){D(this,e)}))},{key:o.$toHTML,value:function(e){if(L(this),"hidden"===this.presence||"inactive"===this.presence)return u.HTMLResult.EMPTY;(0,l.fixDimensions)(this),this[o.$pushPara]();var t=this.w,r=this.h,n=(0,l.layoutNode)(this,e),a=n.w,i=n.h,s=n.isBroken;if(a&&""===this.w){if(s&&this[o.$getSubformParent]()[o.$isThereMoreWidth]())return this[o.$popPara](),u.HTMLResult.FAILURE;this.w=a}if(i&&""===this.h&&(this.h=i),X(this),!(0,c.checkDimensions)(this,e))return this.w=t,this.h=r,this[o.$popPara](),u.HTMLResult.FAILURE;H(this);var f=(0,l.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,l.setMinMaxDimensions)(this,f),f.margin&&(f.padding=f.margin,delete f.margin);var h=["xfaDraw"];this.font&&h.push("xfaFont"),(0,l.isPrintOnly)(this)&&h.push("xfaPrintOnly");var d={style:f,id:this[o.$uid],class:h};this.name&&(d.xfaName=this.name);var p={name:"div",attributes:d,children:[]};U(this,d);var g=(0,l.computeBbox)(this,p,e),m=this.value?this.value[o.$toHTML](e).html:null;return null===m?(this.w=t,this.h=r,this[o.$popPara](),u.HTMLResult.success((0,l.createWrapper)(this,p),g)):(p.children.push(m),(0,l.setPara)(this,f,m),this.w=t,this.h=r,this[o.$popPara](),u.HTMLResult.success((0,l.createWrapper)(this,p),g))}}]),r}(o.XFAObject),Fe=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"edge",!0)).cap=(0,u.getStringOption)(e.cap,["square","butt","round"]),n.id=e.id||"",n.presence=(0,u.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.stroke=(0,u.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),n.thickness=(0,u.getMeasurement)(e.thickness,"0.5pt"),n.use=e.use||"",n.usehref=e.usehref||"",n.color=null,n.extras=null,n}return b(r,[{key:o.$toStyle,value:function(){var e=(0,l.toStyle)(this,"visibility");if(Object.assign(e,{linecap:this.cap,width:(0,l.measureToString)(this.thickness),color:this.color?this.color[o.$toStyle]():"#000000",style:""}),"visible"!==this.presence)e.style="none";else switch(this.stroke){case"solid":e.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":e.style="dashed";break;case"dotted":e.style="dotted";break;case"embossed":e.style="ridge";break;case"etched":e.style="groove";break;case"lowered":e.style="inset";break;case"raised":e.style="outset"}return e}}]),r}(o.XFAObject),Te=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"])).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.OptionObject),Ie=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"encodings",!0)).id=e.id||"",n.type=(0,u.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.encoding=new o.XFAObjectArray,n}return r}(o.XFAObject),Pe=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"encrypt",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.certificate=null,n}return r}(o.XFAObject),_e=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"encryptData",!0)).id=e.id||"",n.operation=(0,u.getStringOption)(e.operation,["encrypt","decrypt"]),n.target=e.target||"",n.use=e.use||"",n.usehref=e.usehref||"",n.filter=null,n.manifest=null,n}return r}(o.XFAObject),Ee=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"encryption",!0)).id=e.id||"",n.type=(0,u.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.certificate=new o.XFAObjectArray,n}return r}(o.XFAObject),je=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"])).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.OptionObject),Me=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"encryptionMethods",!0)).id=e.id||"",n.type=(0,u.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.encryptionMethod=new o.XFAObjectArray,n}return r}(o.XFAObject),Re=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"event",!0)).activity=(0,u.getStringOption)(e.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]),n.id=e.id||"",n.listen=(0,u.getStringOption)(e.listen,["refOnly","refAndDescendents"]),n.name=e.name||"",n.ref=e.ref||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.encryptData=null,n.execute=null,n.script=null,n.signData=null,n.submit=null,n}return r}(o.XFAObject),Be=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"exData")).contentType=e.contentType||"",n.href=e.href||"",n.id=e.id||"",n.maxLength=(0,u.getInteger)({data:e.maxLength,defaultValue:-1,validate:function(e){return e>=-1}}),n.name=e.name||"",n.rid=e.rid||"",n.transferEncoding=(0,u.getStringOption)(e.transferEncoding,["none","base64","package"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return b(r,[{key:o.$isCDATAXml,value:function(){return"text/html"===this.contentType}},{key:o.$onChild,value:function(e){return("text/html"===this.contentType&&e[o.$namespaceId]===s.NamespaceIds.xhtml.id||"text/xml"===this.contentType)&&(this[o.$content]=e,!0)}},{key:o.$toHTML,value:function(e){return"text/html"===this.contentType&&this[o.$content]?this[o.$content][o.$toHTML](e):u.HTMLResult.EMPTY}}]),r}(o.ContentObject),De=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"exObject",!0)).archive=e.archive||"",n.classId=e.classId||"",n.codeBase=e.codeBase||"",n.codeType=e.codeType||"",n.id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.boolean=new o.XFAObjectArray,n.date=new o.XFAObjectArray,n.dateTime=new o.XFAObjectArray,n.decimal=new o.XFAObjectArray,n.exData=new o.XFAObjectArray,n.exObject=new o.XFAObjectArray,n.float=new o.XFAObjectArray,n.image=new o.XFAObjectArray,n.integer=new o.XFAObjectArray,n.text=new o.XFAObjectArray,n.time=new o.XFAObjectArray,n}return r}(o.XFAObject),Ne=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"exclGroup",!0)).access=(0,u.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),n.accessKey=e.accessKey||"",n.anchorType=(0,u.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),n.colSpan=(0,u.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),n.h=e.h?(0,u.getMeasurement)(e.h):"",n.hAlign=(0,u.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),n.id=e.id||"",n.layout=(0,u.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),n.maxH=(0,u.getMeasurement)(e.maxH,"0pt"),n.maxW=(0,u.getMeasurement)(e.maxW,"0pt"),n.minH=(0,u.getMeasurement)(e.minH,"0pt"),n.minW=(0,u.getMeasurement)(e.minW,"0pt"),n.name=e.name||"",n.presence=(0,u.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.relevant=(0,u.getRelevant)(e.relevant),n.use=e.use||"",n.usehref=e.usehref||"",n.w=e.w?(0,u.getMeasurement)(e.w):"",n.x=(0,u.getMeasurement)(e.x,"0pt"),n.y=(0,u.getMeasurement)(e.y,"0pt"),n.assist=null,n.bind=null,n.border=null,n.calculate=null,n.caption=null,n.desc=null,n.extras=null,n.margin=null,n.para=null,n.traversal=null,n.validate=null,n.connect=new o.XFAObjectArray,n.event=new o.XFAObjectArray,n.field=new o.XFAObjectArray,n.setProperty=new o.XFAObjectArray,n}return b(r,[{key:o.$isBindable,value:function(){return!0}},{key:o.$hasSettableValue,value:function(){return!0}},{key:o.$setValue,value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var t,r=F(this.field.children);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(!n.value){var a=new Kt({});n[o.$appendChild](a),n.value=a}n.value[o.$setValue](e)}}catch(e){r.e(e)}finally{r.f()}}))},{key:o.$isThereMoreWidth,value:function(){return this.layout.endsWith("-tb")&&0===this[o.$extra].attempt&&this[o.$extra].numberInLine>0||this[o.$getParent]()[o.$isThereMoreWidth]()}},{key:o.$isSplittable,value:function(){var e=this[o.$getSubformParent]();return!!e[o.$isSplittable]()&&(void 0!==this[o.$extra]._isSplittable?this[o.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")?(this[o.$extra]._isSplittable=!1,!1):!(e.layout&&e.layout.endsWith("-tb")&&0!==e[o.$extra].numberInLine||(this[o.$extra]._isSplittable=!0,0)))}},{key:o.$flushHTML,value:function(){return(0,c.flushHTML)(this)}},{key:o.$addHTML,value:function(e,t){(0,c.addHTML)(this,e,t)}},{key:o.$getAvailableSpace,value:function(){return(0,c.getAvailableSpace)(this)}},{key:o.$toHTML,value:function(e){if(L(this),"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return u.HTMLResult.EMPTY;(0,l.fixDimensions)(this);var t=[],r={id:this[o.$uid],class:[]};(0,l.setAccess)(this,r.class),this[o.$extra]||(this[o.$extra]=Object.create(null)),Object.assign(this[o.$extra],{children:t,attributes:r,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});var n=this[o.$isSplittable]();if(n||X(this),!(0,c.checkDimensions)(this,e))return u.HTMLResult.FAILURE;var a=new Set(["field"]);if(this.layout.includes("row")){var i=this[o.$getSubformParent]().columnWidths;Array.isArray(i)&&i.length>0&&(this[o.$extra].columnWidths=i,this[o.$extra].currentColumn=0)}var s=(0,l.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),f=["xfaExclgroup"],h=(0,l.layoutClass)(this);h&&f.push(h),(0,l.isPrintOnly)(this)&&f.push("xfaPrintOnly"),r.style=s,r.class=f,this.name&&(r.xfaName=this.name),this[o.$pushPara]();for(var d="lr-tb"===this.layout||"rl-tb"===this.layout,p=d?2:1;this[o.$extra].attempt<p;this[o.$extra].attempt++){d&&1===this[o.$extra].attempt&&(this[o.$extra].numberInLine=0);var g=this[o.$childrenToHTML]({filter:a,include:!0});if(g.success)break;if(g.isBreak())return this[o.$popPara](),g;if(d&&0===this[o.$extra].attempt&&0===this[o.$extra].numberInLine&&!this[o.$getTemplateRoot]()[o.$extra].noLayoutFailure){this[o.$extra].attempt=p;break}}if(this[o.$popPara](),n||H(this),this[o.$extra].attempt===p)return n||delete this[o.$extra],u.HTMLResult.FAILURE;var m=0,v=0;this.margin&&(m=this.margin.leftInset+this.margin.rightInset,v=this.margin.topInset+this.margin.bottomInset);var y=Math.max(this[o.$extra].width+m,this.w||0),b=Math.max(this[o.$extra].height+v,this.h||0),w=[this.x,this.y,y,b];""===this.w&&(s.width=(0,l.measureToString)(y)),""===this.h&&(s.height=(0,l.measureToString)(b));var k={name:"div",attributes:r,children:t};return U(this,r),delete this[o.$extra],u.HTMLResult.success((0,l.createWrapper)(this,k),w)}}]),r}(o.XFAObject),Le=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"execute")).connection=e.connection||"",n.executeType=(0,u.getStringOption)(e.executeType,["import","remerge"]),n.id=e.id||"",n.runAt=(0,u.getStringOption)(e.runAt,["client","both","server"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.XFAObject),Ue=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"extras",!0)).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n.boolean=new o.XFAObjectArray,n.date=new o.XFAObjectArray,n.dateTime=new o.XFAObjectArray,n.decimal=new o.XFAObjectArray,n.exData=new o.XFAObjectArray,n.extras=new o.XFAObjectArray,n.float=new o.XFAObjectArray,n.image=new o.XFAObjectArray,n.integer=new o.XFAObjectArray,n.text=new o.XFAObjectArray,n.time=new o.XFAObjectArray,n}return r}(o.XFAObject),$e=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"field",!0)).access=(0,u.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),n.accessKey=e.accessKey||"",n.anchorType=(0,u.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),n.colSpan=(0,u.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),n.h=e.h?(0,u.getMeasurement)(e.h):"",n.hAlign=(0,u.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),n.id=e.id||"",n.locale=e.locale||"",n.maxH=(0,u.getMeasurement)(e.maxH,"0pt"),n.maxW=(0,u.getMeasurement)(e.maxW,"0pt"),n.minH=(0,u.getMeasurement)(e.minH,"0pt"),n.minW=(0,u.getMeasurement)(e.minW,"0pt"),n.name=e.name||"",n.presence=(0,u.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.relevant=(0,u.getRelevant)(e.relevant),n.rotate=(0,u.getInteger)({data:e.rotate,defaultValue:0,validate:function(e){return e%90==0}}),n.use=e.use||"",n.usehref=e.usehref||"",n.w=e.w?(0,u.getMeasurement)(e.w):"",n.x=(0,u.getMeasurement)(e.x,"0pt"),n.y=(0,u.getMeasurement)(e.y,"0pt"),n.assist=null,n.bind=null,n.border=null,n.calculate=null,n.caption=null,n.desc=null,n.extras=null,n.font=null,n.format=null,n.items=new o.XFAObjectArray(2),n.keep=null,n.margin=null,n.para=null,n.traversal=null,n.ui=null,n.validate=null,n.value=null,n.bindItems=new o.XFAObjectArray,n.connect=new o.XFAObjectArray,n.event=new o.XFAObjectArray,n.setProperty=new o.XFAObjectArray,n}return b(r,[{key:o.$isBindable,value:function(){return!0}},{key:o.$setValue,value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){D(this,e)}))},{key:o.$toHTML,value:function(e){if(L(this),!this.ui){var t;switch(this.ui=new Vt({}),this.ui[o.$globalData]=this[o.$globalData],this[o.$appendChild](this.ui),this.items.children.length){case 0:t=new qt({}),this.ui.textEdit=t;break;case 1:t=new fe({}),this.ui.checkButton=t;break;case 2:t=new he({}),this.ui.choiceList=t}this.ui[o.$appendChild](t)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return u.HTMLResult.EMPTY;this.caption&&delete this.caption[o.$extra],this[o.$pushPara]();var r=this.caption?this.caption[o.$toHTML](e).html:null,n=this.w,a=this.h,i=0,s=0;this.margin&&(i=this.margin.leftInset+this.margin.rightInset,s=this.margin.topInset+this.margin.bottomInset);var f=null;if(""===this.w||""===this.h){var d=null,p=null,g=0,m=0;if(this.ui.checkButton)g=m=this.ui.checkButton.size;else{var y=(0,l.layoutNode)(this,e),b=y.w,w=y.h;null!==b?(g=b,m=w):m=(0,h.getMetrics)(this.font,!0).lineNoGap}if(g+=(f=R(this.ui[o.$getExtra]())).w,m+=f.h,this.caption){var k=this.caption[o.$getExtra](e),S=k.w,x=k.h;if(k.isBroken&&this[o.$getSubformParent]()[o.$isThereMoreWidth]())return this[o.$popPara](),u.HTMLResult.FAILURE;switch(d=S,p=x,this.caption.placement){case"left":case"right":case"inline":d+=g;break;case"top":case"bottom":p+=m}}else d=g,p=m;d&&""===this.w&&(d+=i,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<d?d:this.minW)),p&&""===this.h&&(p+=s,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<p?p:this.minH))}if(this[o.$popPara](),(0,l.fixDimensions)(this),X(this),!(0,c.checkDimensions)(this,e))return this.w=n,this.h=a,this[o.$popPara](),u.HTMLResult.FAILURE;H(this);var A=(0,l.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");(0,l.setMinMaxDimensions)(this,A);var O=["xfaField"];this.font&&O.push("xfaFont"),(0,l.isPrintOnly)(this)&&O.push("xfaPrintOnly");var C={style:A,id:this[o.$uid],class:O};A.margin&&(A.padding=A.margin,delete A.margin),(0,l.setAccess)(this,O),this.name&&(C.xfaName=this.name);var F=[],T={name:"div",attributes:C,children:F};U(this,C);var I=this.border?this.border[o.$toStyle]():null,P=(0,l.computeBbox)(this,T,e),_=this.ui[o.$toHTML]().html;if(!_)return Object.assign(A,I),u.HTMLResult.success((0,l.createWrapper)(this,T),P);this[o.$tabIndex]&&(_.children&&_.children[0]?_.children[0].attributes.tabindex=this[o.$tabIndex]:_.attributes.tabindex=this[o.$tabIndex]),_.attributes.style||(_.attributes.style=Object.create(null));var E=null;if(this.ui.button?(1===_.children.length&&(E=v(_.children.splice(0,1),1)[0]),Object.assign(_.attributes.style,I)):Object.assign(A,I),F.push(_),this.value)if(this.ui.imageEdit)_.children.push(this.value[o.$toHTML]().html);else if(!this.ui.button){var j="";if(this.value.exData)j=this.value.exData[o.$text]();else if(this.value.text)j=this.value.text[o.$getExtra]();else{var M=this.value[o.$toHTML]().html;null!==M&&(j=M.children[0].value)}this.ui.textEdit&&this.value.text&&this.value.text.maxChars&&(_.children[0].attributes.maxLength=this.value.text.maxChars),j&&(this.ui.numericEdit&&(j=parseFloat(j),j=isNaN(j)?"":j.toString()),"textarea"===_.children[0].name?_.children[0].attributes.textContent=j:_.children[0].attributes.value=j)}if(!this.ui.imageEdit&&_.children&&_.children[0]&&this.h){f=f||R(this.ui[o.$getExtra]());var B=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){(B=this.caption.reserve)<=0&&(B=this.caption[o.$getExtra](e).h);var D=this.h-B-s-f.h;_.children[0].attributes.style.height=(0,l.measureToString)(D)}else _.children[0].attributes.style.height="100%"}if(E&&_.children.push(E),!r)return _.attributes.class&&_.attributes.class.push("xfaLeft"),this.w=n,this.h=a,u.HTMLResult.success((0,l.createWrapper)(this,T),P);if(this.ui.button)return A.padding&&delete A.padding,"div"===r.name&&(r.name="span"),_.children.push(r),u.HTMLResult.success(T,P);switch(this.ui.checkButton&&(r.attributes.class[0]="xfaCaptionForCheckButton"),_.attributes.class||(_.attributes.class=[]),_.children.splice(0,0,r),this.caption.placement){case"left":case"inline":_.attributes.class.push("xfaLeft");break;case"right":_.attributes.class.push("xfaRight");break;case"top":_.attributes.class.push("xfaTop");break;case"bottom":_.attributes.class.push("xfaBottom")}return this.w=n,this.h=a,u.HTMLResult.success((0,l.createWrapper)(this,T),P)}}]),r}(o.XFAObject);t.Field=$e;var qe=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"fill",!0)).id=e.id||"",n.presence=(0,u.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.use=e.use||"",n.usehref=e.usehref||"",n.color=null,n.extras=null,n.linear=null,n.pattern=null,n.radial=null,n.solid=null,n.stipple=null,n}return b(r,[{key:o.$toStyle,value:function(){var e=this[o.$getParent](),t=e[o.$getParent]()[o.$getParent](),r=Object.create(null),n="color",a=n;e instanceof re&&(n="background-color",a="background",t instanceof Vt&&(r.backgroundColor="white")),(e instanceof Ot||e instanceof V)&&(n=a="fill",r.fill="white");var i,s=F(Object.getOwnPropertyNames(this));try{for(s.s();!(i=s.n()).done;){var c=i.value;if("extras"!==c&&"color"!==c){var l=this[c];if(l instanceof o.XFAObject){var u=l[o.$toStyle](this.color);return u&&(r[u.startsWith("#")?n:a]=u),r}}}}catch(e){s.e(e)}finally{s.f()}if(this.color&&this.color.value){var f=this.color[o.$toStyle]();r[f.startsWith("#")?n:a]=f}return r}}]),r}(o.XFAObject),Xe=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"filter",!0)).addRevocationInfo=(0,u.getStringOption)(e.addRevocationInfo,["","required","optional","none"]),n.id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n.version=(0,u.getInteger)({data:n.version,defaultValue:5,validate:function(e){return e>=1&&e<=5}}),n.appearanceFilter=null,n.certificates=null,n.digestMethods=null,n.encodings=null,n.encryptionMethods=null,n.handler=null,n.lockDocument=null,n.mdp=null,n.reasons=null,n.timeStamp=null,n}return r}(o.XFAObject),He=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"float")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return b(r,[{key:o.$finalize,value:function(){var e=parseFloat(this[o.$content].trim());this[o.$content]=isNaN(e)?null:e}},{key:o.$toHTML,value:function(e){return q(null!==this[o.$content]?this[o.$content].toString():"")}}]),r}(o.ContentObject),ze=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"font",!0)).baselineShift=(0,u.getMeasurement)(e.baselineShift),n.fontHorizontalScale=(0,u.getFloat)({data:e.fontHorizontalScale,defaultValue:100,validate:function(e){return e>=0}}),n.fontVerticalScale=(0,u.getFloat)({data:e.fontVerticalScale,defaultValue:100,validate:function(e){return e>=0}}),n.id=e.id||"",n.kerningMode=(0,u.getStringOption)(e.kerningMode,["none","pair"]),n.letterSpacing=(0,u.getMeasurement)(e.letterSpacing,"0"),n.lineThrough=(0,u.getInteger)({data:e.lineThrough,defaultValue:0,validate:function(e){return 1===e||2===e}}),n.lineThroughPeriod=(0,u.getStringOption)(e.lineThroughPeriod,["all","word"]),n.overline=(0,u.getInteger)({data:e.overline,defaultValue:0,validate:function(e){return 1===e||2===e}}),n.overlinePeriod=(0,u.getStringOption)(e.overlinePeriod,["all","word"]),n.posture=(0,u.getStringOption)(e.posture,["normal","italic"]),n.size=(0,u.getMeasurement)(e.size,"10pt"),n.typeface=e.typeface||"Courier",n.underline=(0,u.getInteger)({data:e.underline,defaultValue:0,validate:function(e){return 1===e||2===e}}),n.underlinePeriod=(0,u.getStringOption)(e.underlinePeriod,["all","word"]),n.use=e.use||"",n.usehref=e.usehref||"",n.weight=(0,u.getStringOption)(e.weight,["normal","bold"]),n.extras=null,n.fill=null,n}return b(r,[{key:o.$clean,value:function(e){m(O(r.prototype),o.$clean,this).call(this,e),this[o.$globalData].usedTypefaces.add(this.typeface)}},{key:o.$toStyle,value:function(){var e=(0,l.toStyle)(this,"fill"),t=e.color;return t&&("#000000"===t?delete e.color:t.startsWith("#")||(e.background=t,e.backgroundClip="text",e.color="transparent")),this.baselineShift&&(e.verticalAlign=(0,l.measureToString)(this.baselineShift)),e.fontKerning="none"===this.kerningMode?"none":"normal",e.letterSpacing=(0,l.measureToString)(this.letterSpacing),0!==this.lineThrough&&(e.textDecoration="line-through",2===this.lineThrough&&(e.textDecorationStyle="double")),0!==this.overline&&(e.textDecoration="overline",2===this.overline&&(e.textDecorationStyle="double")),e.fontStyle=this.posture,e.fontSize=(0,l.measureToString)(.99*this.size),(0,l.setFontFamily)(this,this,this[o.$globalData].fontFinder,e),0!==this.underline&&(e.textDecoration="underline",2===this.underline&&(e.textDecorationStyle="double")),e.fontWeight=this.weight,e}}]),r}(o.XFAObject),We=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"format",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.picture=null,n}return r}(o.XFAObject),Ge=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"handler")).id=e.id||"",n.type=(0,u.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.StringObject),Ve=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"hyphenation")).excludeAllCaps=(0,u.getInteger)({data:e.excludeAllCaps,defaultValue:0,validate:function(e){return 1===e}}),n.excludeInitialCap=(0,u.getInteger)({data:e.excludeInitialCap,defaultValue:0,validate:function(e){return 1===e}}),n.hyphenate=(0,u.getInteger)({data:e.hyphenate,defaultValue:0,validate:function(e){return 1===e}}),n.id=e.id||"",n.pushCharacterCount=(0,u.getInteger)({data:e.pushCharacterCount,defaultValue:3,validate:function(e){return e>=0}}),n.remainCharacterCount=(0,u.getInteger)({data:e.remainCharacterCount,defaultValue:3,validate:function(e){return e>=0}}),n.use=e.use||"",n.usehref=e.usehref||"",n.wordCharacterCount=(0,u.getInteger)({data:e.wordCharacterCount,defaultValue:7,validate:function(e){return e>=0}}),n}return r}(o.XFAObject),Ye=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"image")).aspect=(0,u.getStringOption)(e.aspect,["fit","actual","height","none","width"]),n.contentType=e.contentType||"",n.href=e.href||"",n.id=e.id||"",n.name=e.name||"",n.transferEncoding=(0,u.getStringOption)(e.transferEncoding,["base64","none","package"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return b(r,[{key:o.$toHTML,value:function(){if(this.contentType&&!j.has(this.contentType.toLowerCase()))return u.HTMLResult.EMPTY;var e=this[o.$globalData].images&&this[o.$globalData].images.get(this.href);if(!e&&(this.href||!this[o.$content]))return u.HTMLResult.EMPTY;if(e||"base64"!==this.transferEncoding||(e=(0,f.stringToBytes)(atob(this[o.$content]))),!e)return u.HTMLResult.EMPTY;if(!this.contentType){var t,r=F(M);try{for(r.s();!(t=r.n()).done;){var n=v(t.value,2),a=n[0],i=n[1];if(e.length>a.length&&a.every((function(t,r){return t===e[r]}))){this.contentType=i;break}}}catch(e){r.e(e)}finally{r.f()}if(!this.contentType)return u.HTMLResult.EMPTY}var s,c=new Blob([e],{type:this.contentType});switch(this.aspect){case"fit":case"actual":break;case"height":s={height:"100%",objectFit:"fill"};break;case"none":s={width:"100%",height:"100%",objectFit:"fill"};break;case"width":s={width:"100%",objectFit:"fill"}}var l=this[o.$getParent]();return u.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:s,src:URL.createObjectURL(c),alt:l?$(l[o.$getParent]()):null}})}}]),r}(o.StringObject),Ke=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"imageEdit",!0)).data=(0,u.getStringOption)(e.data,["link","embed"]),n.id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.border=null,n.extras=null,n.margin=null,n}return b(r,[{key:o.$toHTML,value:function(e){return"embed"===this.data?u.HTMLResult.success({name:"div",children:[],attributes:{}}):u.HTMLResult.EMPTY}}]),r}(o.XFAObject),Je=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"integer")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return b(r,[{key:o.$finalize,value:function(){var e=parseInt(this[o.$content].trim(),10);this[o.$content]=isNaN(e)?null:e}},{key:o.$toHTML,value:function(e){return q(null!==this[o.$content]?this[o.$content].toString():"")}}]),r}(o.ContentObject),Ze=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"issuers",!0)).id=e.id||"",n.type=(0,u.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.certificate=new o.XFAObjectArray,n}return r}(o.XFAObject),Qe=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"items",!0)).id=e.id||"",n.name=e.name||"",n.presence=(0,u.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.ref=e.ref||"",n.save=(0,u.getInteger)({data:e.save,defaultValue:0,validate:function(e){return 1===e}}),n.use=e.use||"",n.usehref=e.usehref||"",n.boolean=new o.XFAObjectArray,n.date=new o.XFAObjectArray,n.dateTime=new o.XFAObjectArray,n.decimal=new o.XFAObjectArray,n.exData=new o.XFAObjectArray,n.float=new o.XFAObjectArray,n.image=new o.XFAObjectArray,n.integer=new o.XFAObjectArray,n.text=new o.XFAObjectArray,n.time=new o.XFAObjectArray,n}return b(r,[{key:o.$toHTML,value:function(){var e,t=[],r=F(this[o.$getChildren]());try{for(r.s();!(e=r.n()).done;){var n=e.value;t.push(n[o.$text]())}}catch(e){r.e(e)}finally{r.f()}return u.HTMLResult.success(t)}}]),r}(o.XFAObject);t.Items=Qe;var et=function(e){k(r,e);var t=x(r);function r(e){var n;w(this,r),(n=t.call(this,P,"keep",!0)).id=e.id||"";var a=["none","contentArea","pageArea"];return n.intact=(0,u.getStringOption)(e.intact,a),n.next=(0,u.getStringOption)(e.next,a),n.previous=(0,u.getStringOption)(e.previous,a),n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n}return r}(o.XFAObject),tt=function(e){k(r,e);var t=x(r);function r(e){var n;w(this,r);var a=["","yes","no"];return(n=t.call(this,P,"keyUsage")).crlSign=(0,u.getStringOption)(e.crlSign,a),n.dataEncipherment=(0,u.getStringOption)(e.dataEncipherment,a),n.decipherOnly=(0,u.getStringOption)(e.decipherOnly,a),n.digitalSignature=(0,u.getStringOption)(e.digitalSignature,a),n.encipherOnly=(0,u.getStringOption)(e.encipherOnly,a),n.id=e.id||"",n.keyAgreement=(0,u.getStringOption)(e.keyAgreement,a),n.keyCertSign=(0,u.getStringOption)(e.keyCertSign,a),n.keyEncipherment=(0,u.getStringOption)(e.keyEncipherment,a),n.nonRepudiation=(0,u.getStringOption)(e.nonRepudiation,a),n.type=(0,u.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.XFAObject),rt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"line",!0)).hand=(0,u.getStringOption)(e.hand,["even","left","right"]),n.id=e.id||"",n.slope=(0,u.getStringOption)(e.slope,["\\","/"]),n.use=e.use||"",n.usehref=e.usehref||"",n.edge=null,n}return b(r,[{key:o.$toHTML,value:function(){var e,t,r,n,a=this[o.$getParent]()[o.$getParent](),i=this.edge?this.edge:new Fe({}),s=i[o.$toStyle](),c=Object.create(null),f="visible"===i.presence?i.thickness:0;c.strokeWidth=(0,l.measureToString)(f),c.stroke=s.color;var h="100%",d="100%";a.w<=f?(e="50%",t=0,r="50%",n="100%",h=c.strokeWidth):a.h<=f?(e=0,t="50%",r="100%",n="50%",d=c.strokeWidth):"\\"===this.slope?(e=0,t=0,r="100%",n="100%"):(e=0,t="100%",r="100%",n=0);var p={name:"svg",children:[{name:"line",attributes:{xmlns:_,x1:e,y1:t,x2:r,y2:n,style:c}}],attributes:{xmlns:_,width:h,height:d,style:{overflow:"visible"}}};return B(a)?u.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[p]}):(p.attributes.style.position="absolute",u.HTMLResult.success(p))}}]),r}(o.XFAObject),nt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"linear",!0)).id=e.id||"",n.type=(0,u.getStringOption)(e.type,["toRight","toBottom","toLeft","toTop"]),n.use=e.use||"",n.usehref=e.usehref||"",n.color=null,n.extras=null,n}return b(r,[{key:o.$toStyle,value:function(e){e=e?e[o.$toStyle]():"#FFFFFF";var t=this.type.replace(/([RBLT])/," $1").toLowerCase(),r=this.color?this.color[o.$toStyle]():"#000000";return"linear-gradient(".concat(t,", ").concat(e,", ").concat(r,")")}}]),r}(o.XFAObject),at=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"lockDocument")).id=e.id||"",n.type=(0,u.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return b(r,[{key:o.$finalize,value:function(){this[o.$content]=(0,u.getStringOption)(this[o.$content],["auto","0","1"])}}]),r}(o.ContentObject),it=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"manifest",!0)).action=(0,u.getStringOption)(e.action,["include","all","exclude"]),n.id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.ref=new o.XFAObjectArray,n}return r}(o.XFAObject),ot=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"margin",!0)).bottomInset=(0,u.getMeasurement)(e.bottomInset,"0"),n.id=e.id||"",n.leftInset=(0,u.getMeasurement)(e.leftInset,"0"),n.rightInset=(0,u.getMeasurement)(e.rightInset,"0"),n.topInset=(0,u.getMeasurement)(e.topInset,"0"),n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n}return b(r,[{key:o.$toStyle,value:function(){return{margin:(0,l.measureToString)(this.topInset)+" "+(0,l.measureToString)(this.rightInset)+" "+(0,l.measureToString)(this.bottomInset)+" "+(0,l.measureToString)(this.leftInset)}}}]),r}(o.XFAObject),st=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"mdp")).id=e.id||"",n.permissions=(0,u.getInteger)({data:e.permissions,defaultValue:2,validate:function(e){return 1===e||3===e}}),n.signatureType=(0,u.getStringOption)(e.signatureType,["filler","author"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.XFAObject),ct=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"medium")).id=e.id||"",n.imagingBBox=(0,u.getBBox)(e.imagingBBox),n.long=(0,u.getMeasurement)(e.long),n.orientation=(0,u.getStringOption)(e.orientation,["portrait","landscape"]),n.short=(0,u.getMeasurement)(e.short),n.stock=e.stock||"",n.trayIn=(0,u.getStringOption)(e.trayIn,["auto","delegate","pageFront"]),n.trayOut=(0,u.getStringOption)(e.trayOut,["auto","delegate"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.XFAObject),lt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"message",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.text=new o.XFAObjectArray,n}return r}(o.XFAObject),ut=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"numericEdit",!0)).hScrollPolicy=(0,u.getStringOption)(e.hScrollPolicy,["auto","off","on"]),n.id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.border=null,n.comb=null,n.extras=null,n.margin=null,n}return b(r,[{key:o.$toHTML,value:function(e){var t=(0,l.toStyle)(this,"border","font","margin"),r=this[o.$getParent]()[o.$getParent](),n={name:"input",attributes:{type:"text",fieldId:r[o.$uid],dataId:r[o.$data]&&r[o.$data][o.$uid]||r[o.$uid],class:["xfaTextfield"],style:t,"aria-label":$(r)}};return u.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[n]})}}]),r}(o.XFAObject),ft=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"occur",!0)).id=e.id||"",n.initial=""!==e.initial?(0,u.getInteger)({data:e.initial,defaultValue:"",validate:function(e){return!0}}):"",n.max=""!==e.max?(0,u.getInteger)({data:e.max,defaultValue:1,validate:function(e){return!0}}):"",n.min=""!==e.min?(0,u.getInteger)({data:e.min,defaultValue:1,validate:function(e){return!0}}):"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n}return b(r,[{key:o.$clean,value:function(){var e=this[o.$getParent](),t=this.min;""===this.min&&(this.min=e instanceof gt||e instanceof mt?0:1),""===this.max&&(this.max=""===t?e instanceof gt||e instanceof mt?-1:1:this.min),-1!==this.max&&this.max<this.min&&(this.max=this.min),""===this.initial&&(this.initial=e instanceof Ut?1:this.min)}}]),r}(o.XFAObject),ht=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"oid")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.StringObject),dt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"oids",!0)).id=e.id||"",n.type=(0,u.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.oid=new o.XFAObjectArray,n}return r}(o.XFAObject),pt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"overflow")).id=e.id||"",n.leader=e.leader||"",n.target=e.target||"",n.trailer=e.trailer||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return b(r,[{key:o.$getExtra,value:function(){if(!this[o.$extra]){var e=this[o.$getParent](),t=this[o.$getTemplateRoot](),r=t[o.$searchNode](this.target,e),n=t[o.$searchNode](this.leader,e),a=t[o.$searchNode](this.trailer,e);this[o.$extra]={target:r&&r[0]||null,leader:n&&n[0]||null,trailer:a&&a[0]||null,addLeader:!1,addTrailer:!1}}return this[o.$extra]}}]),r}(o.XFAObject),gt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"pageArea",!0)).blankOrNotBlank=(0,u.getStringOption)(e.blankOrNotBlank,["any","blank","notBlank"]),n.id=e.id||"",n.initialNumber=(0,u.getInteger)({data:e.initialNumber,defaultValue:1,validate:function(e){return!0}}),n.name=e.name||"",n.numbered=(0,u.getInteger)({data:e.numbered,defaultValue:1,validate:function(e){return!0}}),n.oddOrEven=(0,u.getStringOption)(e.oddOrEven,["any","even","odd"]),n.pagePosition=(0,u.getStringOption)(e.pagePosition,["any","first","last","only","rest"]),n.relevant=(0,u.getRelevant)(e.relevant),n.use=e.use||"",n.usehref=e.usehref||"",n.desc=null,n.extras=null,n.medium=null,n.occur=null,n.area=new o.XFAObjectArray,n.contentArea=new o.XFAObjectArray,n.draw=new o.XFAObjectArray,n.exclGroup=new o.XFAObjectArray,n.field=new o.XFAObjectArray,n.subform=new o.XFAObjectArray,n}return b(r,[{key:o.$isUsable,value:function(){return this[o.$extra]?!this.occur||-1===this.occur.max||this[o.$extra].numberOfUse<this.occur.max:(this[o.$extra]={numberOfUse:0},!0)}},{key:o.$cleanPage,value:function(){delete this[o.$extra]}},{key:o.$getNextPage,value:function(){this[o.$extra]||(this[o.$extra]={numberOfUse:0});var e=this[o.$getParent]();return"orderedOccurrence"===e.relation&&this[o.$isUsable]()?(this[o.$extra].numberOfUse+=1,this):e[o.$getNextPage]()}},{key:o.$getAvailableSpace,value:function(){return this[o.$extra].space||{width:0,height:0}}},{key:o.$toHTML,value:function(){this[o.$extra]||(this[o.$extra]={numberOfUse:1});var e=[];this[o.$extra].children=e;var t=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){if(t.width=(0,l.measureToString)(this.medium.short),t.height=(0,l.measureToString)(this.medium.long),this[o.$extra].space={width:this.medium.short,height:this.medium.long},"landscape"===this.medium.orientation){var r=t.width;t.width=t.height,t.height=r,this[o.$extra].space={width:this.medium.long,height:this.medium.short}}}else(0,f.warn)("XFA - No medium specified in pageArea: please file a bug.");return this[o.$childrenToHTML]({filter:new Set(["area","draw","field","subform"]),include:!0}),this[o.$childrenToHTML]({filter:new Set(["contentArea"]),include:!0}),u.HTMLResult.success({name:"div",children:e,attributes:{class:["xfaPage"],id:this[o.$uid],style:t,xfaName:this.name}})}}]),r}(o.XFAObject),mt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"pageSet",!0)).duplexImposition=(0,u.getStringOption)(e.duplexImposition,["longEdge","shortEdge"]),n.id=e.id||"",n.name=e.name||"",n.relation=(0,u.getStringOption)(e.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]),n.relevant=(0,u.getRelevant)(e.relevant),n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.occur=null,n.pageArea=new o.XFAObjectArray,n.pageSet=new o.XFAObjectArray,n}return b(r,[{key:o.$cleanPage,value:function(){var e,t=F(this.pageArea.children);try{for(t.s();!(e=t.n()).done;)e.value[o.$cleanPage]()}catch(e){t.e(e)}finally{t.f()}var r,n=F(this.pageSet.children);try{for(n.s();!(r=n.n()).done;)r.value[o.$cleanPage]()}catch(e){n.e(e)}finally{n.f()}}},{key:o.$isUsable,value:function(){return!this.occur||-1===this.occur.max||this[o.$extra].numberOfUse<this.occur.max}},{key:o.$getNextPage,value:function(){if(this[o.$extra]||(this[o.$extra]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1}),"orderedOccurrence"===this.relation){if(this[o.$extra].pageIndex+1<this.pageArea.children.length)return this[o.$extra].pageIndex+=1,this.pageArea.children[this[o.$extra].pageIndex][o.$getNextPage]();if(this[o.$extra].pageSetIndex+1<this.pageSet.children.length)return this[o.$extra].pageSetIndex+=1,this.pageSet.children[this[o.$extra].pageSetIndex][o.$getNextPage]();if(this[o.$isUsable]())return this[o.$extra].numberOfUse+=1,this[o.$extra].pageIndex=-1,this[o.$extra].pageSetIndex=-1,this[o.$getNextPage]();var e=this[o.$getParent]();return e instanceof r?e[o.$getNextPage]():(this[o.$cleanPage](),this[o.$getNextPage]())}var t=this[o.$getTemplateRoot]()[o.$extra].pageNumber,n=t%2==0?"even":"odd",a=0===t?"first":"rest",i=this.pageArea.children.find((function(e){return e.oddOrEven===n&&e.pagePosition===a}));return i||((i=this.pageArea.children.find((function(e){return"any"===e.oddOrEven&&e.pagePosition===a})))?i:(i=this.pageArea.children.find((function(e){return"any"===e.oddOrEven&&"any"===e.pagePosition})))||this.pageArea.children[0])}}]),r}(o.XFAObject),vt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"para",!0)).hAlign=(0,u.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),n.id=e.id||"",n.lineHeight=e.lineHeight?(0,u.getMeasurement)(e.lineHeight,"0pt"):"",n.marginLeft=e.marginLeft?(0,u.getMeasurement)(e.marginLeft,"0pt"):"",n.marginRight=e.marginRight?(0,u.getMeasurement)(e.marginRight,"0pt"):"",n.orphans=(0,u.getInteger)({data:e.orphans,defaultValue:0,validate:function(e){return e>=0}}),n.preserve=e.preserve||"",n.radixOffset=e.radixOffset?(0,u.getMeasurement)(e.radixOffset,"0pt"):"",n.spaceAbove=e.spaceAbove?(0,u.getMeasurement)(e.spaceAbove,"0pt"):"",n.spaceBelow=e.spaceBelow?(0,u.getMeasurement)(e.spaceBelow,"0pt"):"",n.tabDefault=e.tabDefault?(0,u.getMeasurement)(n.tabDefault):"",n.tabStops=(e.tabStops||"").trim().split(/\s+/).map((function(e,t){return t%2==1?(0,u.getMeasurement)(e):e})),n.textIndent=e.textIndent?(0,u.getMeasurement)(e.textIndent,"0pt"):"",n.use=e.use||"",n.usehref=e.usehref||"",n.vAlign=(0,u.getStringOption)(e.vAlign,["top","bottom","middle"]),n.widows=(0,u.getInteger)({data:e.widows,defaultValue:0,validate:function(e){return e>=0}}),n.hyphenation=null,n}return b(r,[{key:o.$toStyle,value:function(){var e=(0,l.toStyle)(this,"hAlign");return""!==this.marginLeft&&(e.paddingLeft=(0,l.measureToString)(this.marginLeft)),""!==this.marginRight&&(e.paddingight=(0,l.measureToString)(this.marginRight)),""!==this.spaceAbove&&(e.paddingTop=(0,l.measureToString)(this.spaceAbove)),""!==this.spaceBelow&&(e.paddingBottom=(0,l.measureToString)(this.spaceBelow)),""!==this.textIndent&&(e.textIndent=(0,l.measureToString)(this.textIndent),(0,l.fixTextIndent)(e)),this.lineHeight>0&&(e.lineHeight=(0,l.measureToString)(this.lineHeight)),""!==this.tabDefault&&(e.tabSize=(0,l.measureToString)(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(e,this.hyphenatation[o.$toStyle]()),e}}]),r}(o.XFAObject),yt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"passwordEdit",!0)).hScrollPolicy=(0,u.getStringOption)(e.hScrollPolicy,["auto","off","on"]),n.id=e.id||"",n.passwordChar=e.passwordChar||"*",n.use=e.use||"",n.usehref=e.usehref||"",n.border=null,n.extras=null,n.margin=null,n}return r}(o.XFAObject),bt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"pattern",!0)).id=e.id||"",n.type=(0,u.getStringOption)(e.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),n.use=e.use||"",n.usehref=e.usehref||"",n.color=null,n.extras=null,n}return b(r,[{key:o.$toStyle,value:function(e){e=e?e[o.$toStyle]():"#FFFFFF";var t=this.color?this.color[o.$toStyle]():"#000000",r="repeating-linear-gradient",n="".concat(e,",").concat(e," ").concat(5,"px,").concat(t," ").concat(5,"px,").concat(t," ").concat(10,"px");switch(this.type){case"crossHatch":return"".concat(r,"(to top,").concat(n,") ").concat(r,"(to right,").concat(n,")");case"crossDiagonal":return"".concat(r,"(45deg,").concat(n,") ").concat(r,"(-45deg,").concat(n,")");case"diagonalLeft":return"".concat(r,"(45deg,").concat(n,")");case"diagonalRight":return"".concat(r,"(-45deg,").concat(n,")");case"horizontal":return"".concat(r,"(to top,").concat(n,")");case"vertical":return"".concat(r,"(to right,").concat(n,")")}return""}}]),r}(o.XFAObject),wt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"picture")).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.StringObject),kt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"proto",!0)).appearanceFilter=new o.XFAObjectArray,n.arc=new o.XFAObjectArray,n.area=new o.XFAObjectArray,n.assist=new o.XFAObjectArray,n.barcode=new o.XFAObjectArray,n.bindItems=new o.XFAObjectArray,n.bookend=new o.XFAObjectArray,n.boolean=new o.XFAObjectArray,n.border=new o.XFAObjectArray,n.break=new o.XFAObjectArray,n.breakAfter=new o.XFAObjectArray,n.breakBefore=new o.XFAObjectArray,n.button=new o.XFAObjectArray,n.calculate=new o.XFAObjectArray,n.caption=new o.XFAObjectArray,n.certificate=new o.XFAObjectArray,n.certificates=new o.XFAObjectArray,n.checkButton=new o.XFAObjectArray,n.choiceList=new o.XFAObjectArray,n.color=new o.XFAObjectArray,n.comb=new o.XFAObjectArray,n.connect=new o.XFAObjectArray,n.contentArea=new o.XFAObjectArray,n.corner=new o.XFAObjectArray,n.date=new o.XFAObjectArray,n.dateTime=new o.XFAObjectArray,n.dateTimeEdit=new o.XFAObjectArray,n.decimal=new o.XFAObjectArray,n.defaultUi=new o.XFAObjectArray,n.desc=new o.XFAObjectArray,n.digestMethod=new o.XFAObjectArray,n.digestMethods=new o.XFAObjectArray,n.draw=new o.XFAObjectArray,n.edge=new o.XFAObjectArray,n.encoding=new o.XFAObjectArray,n.encodings=new o.XFAObjectArray,n.encrypt=new o.XFAObjectArray,n.encryptData=new o.XFAObjectArray,n.encryption=new o.XFAObjectArray,n.encryptionMethod=new o.XFAObjectArray,n.encryptionMethods=new o.XFAObjectArray,n.event=new o.XFAObjectArray,n.exData=new o.XFAObjectArray,n.exObject=new o.XFAObjectArray,n.exclGroup=new o.XFAObjectArray,n.execute=new o.XFAObjectArray,n.extras=new o.XFAObjectArray,n.field=new o.XFAObjectArray,n.fill=new o.XFAObjectArray,n.filter=new o.XFAObjectArray,n.float=new o.XFAObjectArray,n.font=new o.XFAObjectArray,n.format=new o.XFAObjectArray,n.handler=new o.XFAObjectArray,n.hyphenation=new o.XFAObjectArray,n.image=new o.XFAObjectArray,n.imageEdit=new o.XFAObjectArray,n.integer=new o.XFAObjectArray,n.issuers=new o.XFAObjectArray,n.items=new o.XFAObjectArray,n.keep=new o.XFAObjectArray,n.keyUsage=new o.XFAObjectArray,n.line=new o.XFAObjectArray,n.linear=new o.XFAObjectArray,n.lockDocument=new o.XFAObjectArray,n.manifest=new o.XFAObjectArray,n.margin=new o.XFAObjectArray,n.mdp=new o.XFAObjectArray,n.medium=new o.XFAObjectArray,n.message=new o.XFAObjectArray,n.numericEdit=new o.XFAObjectArray,n.occur=new o.XFAObjectArray,n.oid=new o.XFAObjectArray,n.oids=new o.XFAObjectArray,n.overflow=new o.XFAObjectArray,n.pageArea=new o.XFAObjectArray,n.pageSet=new o.XFAObjectArray,n.para=new o.XFAObjectArray,n.passwordEdit=new o.XFAObjectArray,n.pattern=new o.XFAObjectArray,n.picture=new o.XFAObjectArray,n.radial=new o.XFAObjectArray,n.reason=new o.XFAObjectArray,n.reasons=new o.XFAObjectArray,n.rectangle=new o.XFAObjectArray,n.ref=new o.XFAObjectArray,n.script=new o.XFAObjectArray,n.setProperty=new o.XFAObjectArray,n.signData=new o.XFAObjectArray,n.signature=new o.XFAObjectArray,n.signing=new o.XFAObjectArray,n.solid=new o.XFAObjectArray,n.speak=new o.XFAObjectArray,n.stipple=new o.XFAObjectArray,n.subform=new o.XFAObjectArray,n.subformSet=new o.XFAObjectArray,n.subjectDN=new o.XFAObjectArray,n.subjectDNs=new o.XFAObjectArray,n.submit=new o.XFAObjectArray,n.text=new o.XFAObjectArray,n.textEdit=new o.XFAObjectArray,n.time=new o.XFAObjectArray,n.timeStamp=new o.XFAObjectArray,n.toolTip=new o.XFAObjectArray,n.traversal=new o.XFAObjectArray,n.traverse=new o.XFAObjectArray,n.ui=new o.XFAObjectArray,n.validate=new o.XFAObjectArray,n.value=new o.XFAObjectArray,n.variables=new o.XFAObjectArray,n}return r}(o.XFAObject),St=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"radial",!0)).id=e.id||"",n.type=(0,u.getStringOption)(e.type,["toEdge","toCenter"]),n.use=e.use||"",n.usehref=e.usehref||"",n.color=null,n.extras=null,n}return b(r,[{key:o.$toStyle,value:function(e){e=e?e[o.$toStyle]():"#FFFFFF";var t=this.color?this.color[o.$toStyle]():"#000000",r="toEdge"===this.type?"".concat(e,",").concat(t):"".concat(t,",").concat(e);return"radial-gradient(circle at center, ".concat(r,")")}}]),r}(o.XFAObject),xt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"reason")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.StringObject),At=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"reasons",!0)).id=e.id||"",n.type=(0,u.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.reason=new o.XFAObjectArray,n}return r}(o.XFAObject),Ot=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"rectangle",!0)).hand=(0,u.getStringOption)(e.hand,["even","left","right"]),n.id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.corner=new o.XFAObjectArray(4),n.edge=new o.XFAObjectArray(4),n.fill=null,n}return b(r,[{key:o.$toHTML,value:function(){var e=this.edge.children.length?this.edge.children[0]:new Fe({}),t=e[o.$toStyle](),r=Object.create(null);this.fill&&"visible"===this.fill.presence?Object.assign(r,this.fill[o.$toStyle]()):r.fill="transparent",r.strokeWidth=(0,l.measureToString)("visible"===e.presence?e.thickness:0),r.stroke=t.color;var n=(this.corner.children.length?this.corner.children[0]:new ve({}))[o.$toStyle](),a={name:"svg",children:[{name:"rect",attributes:{xmlns:_,width:"100%",height:"100%",x:0,y:0,rx:n.radius,ry:n.radius,style:r}}],attributes:{xmlns:_,style:{overflow:"visible"},width:"100%",height:"100%"}};return B(this[o.$getParent]()[o.$getParent]())?u.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[a]}):(a.attributes.style.position="absolute",u.HTMLResult.success(a))}}]),r}(o.XFAObject),Ct=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"ref")).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.StringObject),Ft=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"script")).binding=e.binding||"",n.contentType=e.contentType||"",n.id=e.id||"",n.name=e.name||"",n.runAt=(0,u.getStringOption)(e.runAt,["client","both","server"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.StringObject),Tt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"setProperty")).connection=e.connection||"",n.ref=e.ref||"",n.target=e.target||"",n}return r}(o.XFAObject);t.SetProperty=Tt;var It=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"signData",!0)).id=e.id||"",n.operation=(0,u.getStringOption)(e.operation,["sign","clear","verify"]),n.ref=e.ref||"",n.target=e.target||"",n.use=e.use||"",n.usehref=e.usehref||"",n.filter=null,n.manifest=null,n}return r}(o.XFAObject),Pt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"signature",!0)).id=e.id||"",n.type=(0,u.getStringOption)(e.type,["PDF1.3","PDF1.6"]),n.use=e.use||"",n.usehref=e.usehref||"",n.border=null,n.extras=null,n.filter=null,n.manifest=null,n.margin=null,n}return r}(o.XFAObject),_t=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"signing",!0)).id=e.id||"",n.type=(0,u.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.certificate=new o.XFAObjectArray,n}return r}(o.XFAObject),Et=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"solid",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n}return b(r,[{key:o.$toStyle,value:function(e){return e?e[o.$toStyle]():"#FFFFFF"}}]),r}(o.XFAObject),jt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"speak")).disable=(0,u.getInteger)({data:e.disable,defaultValue:0,validate:function(e){return 1===e}}),n.id=e.id||"",n.priority=(0,u.getStringOption)(e.priority,["custom","caption","name","toolTip"]),n.rid=e.rid||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.StringObject),Mt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"stipple",!0)).id=e.id||"",n.rate=(0,u.getInteger)({data:e.rate,defaultValue:50,validate:function(e){return e>=0&&e<=100}}),n.use=e.use||"",n.usehref=e.usehref||"",n.color=null,n.extras=null,n}return b(r,[{key:o.$toStyle,value:function(e){var t=this.rate/100;return f.Util.makeHexColor(Math.round(e.value.r*(1-t)+this.value.r*t),Math.round(e.value.g*(1-t)+this.value.g*t),Math.round(e.value.b*(1-t)+this.value.b*t))}}]),r}(o.XFAObject),Rt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"subform",!0)).access=(0,u.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),n.allowMacro=(0,u.getInteger)({data:e.allowMacro,defaultValue:0,validate:function(e){return 1===e}}),n.anchorType=(0,u.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),n.colSpan=(0,u.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),n.columnWidths=(e.columnWidths||"").trim().split(/\s+/).map((function(e){return"-1"===e?-1:(0,u.getMeasurement)(e)})),n.h=e.h?(0,u.getMeasurement)(e.h):"",n.hAlign=(0,u.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),n.id=e.id||"",n.layout=(0,u.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),n.locale=e.locale||"",n.maxH=(0,u.getMeasurement)(e.maxH,"0pt"),n.maxW=(0,u.getMeasurement)(e.maxW,"0pt"),n.mergeMode=(0,u.getStringOption)(e.mergeMode,["consumeData","matchTemplate"]),n.minH=(0,u.getMeasurement)(e.minH,"0pt"),n.minW=(0,u.getMeasurement)(e.minW,"0pt"),n.name=e.name||"",n.presence=(0,u.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.relevant=(0,u.getRelevant)(e.relevant),n.restoreState=(0,u.getStringOption)(e.restoreState,["manual","auto"]),n.scope=(0,u.getStringOption)(e.scope,["name","none"]),n.use=e.use||"",n.usehref=e.usehref||"",n.w=e.w?(0,u.getMeasurement)(e.w):"",n.x=(0,u.getMeasurement)(e.x,"0pt"),n.y=(0,u.getMeasurement)(e.y,"0pt"),n.assist=null,n.bind=null,n.bookend=null,n.border=null,n.break=null,n.calculate=null,n.desc=null,n.extras=null,n.keep=null,n.margin=null,n.occur=null,n.overflow=null,n.pageSet=null,n.para=null,n.traversal=null,n.validate=null,n.variables=null,n.area=new o.XFAObjectArray,n.breakAfter=new o.XFAObjectArray,n.breakBefore=new o.XFAObjectArray,n.connect=new o.XFAObjectArray,n.draw=new o.XFAObjectArray,n.event=new o.XFAObjectArray,n.exObject=new o.XFAObjectArray,n.exclGroup=new o.XFAObjectArray,n.field=new o.XFAObjectArray,n.proto=new o.XFAObjectArray,n.setProperty=new o.XFAObjectArray,n.subform=new o.XFAObjectArray,n.subformSet=new o.XFAObjectArray,n}return b(r,[{key:o.$getSubformParent,value:function(){var e=this[o.$getParent]();return e instanceof Bt?e[o.$getSubformParent]():e}},{key:o.$isBindable,value:function(){return!0}},{key:o.$isThereMoreWidth,value:function(){return this.layout.endsWith("-tb")&&0===this[o.$extra].attempt&&this[o.$extra].numberInLine>0||this[o.$getParent]()[o.$isThereMoreWidth]()}},{key:o.$getContainedChildren,value:i.default.mark((function e(){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(N(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:o.$flushHTML,value:function(){return(0,c.flushHTML)(this)}},{key:o.$addHTML,value:function(e,t){(0,c.addHTML)(this,e,t)}},{key:o.$getAvailableSpace,value:function(){return(0,c.getAvailableSpace)(this)}},{key:o.$isSplittable,value:function(){var e=this[o.$getSubformParent]();return!!e[o.$isSplittable]()&&(void 0!==this[o.$extra]._isSplittable?this[o.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")||this.keep&&"none"!==this.keep.intact?(this[o.$extra]._isSplittable=!1,!1):!(e.layout&&e.layout.endsWith("-tb")&&0!==e[o.$extra].numberInLine||(this[o.$extra]._isSplittable=!0,0)))}},{key:o.$toHTML,value:function(e){if(L(this),this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){var t=new ae({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});t[o.$globalData]=this[o.$globalData],this[o.$appendChild](t),this.breakAfter.push(t)}if("auto"!==this.break.before||""!==this.break.beforeTarget){var r=new ie({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});r[o.$globalData]=this[o.$globalData],this[o.$appendChild](r),this.breakBefore.push(r)}if(""!==this.break.overflowTarget){var n=new pt({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});n[o.$globalData]=this[o.$globalData],this[o.$appendChild](n),this.overflow.push(n)}this[o.$removeChild](this.break),this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return u.HTMLResult.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,f.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){var a=this.breakBefore.children[0];if(z(a))return u.HTMLResult.breakNode(a)}if(this[o.$extra]&&this[o.$extra].afterBreakAfter)return u.HTMLResult.EMPTY;(0,l.fixDimensions)(this);var i=[],s={id:this[o.$uid],class:[]};(0,l.setAccess)(this,s.class),this[o.$extra]||(this[o.$extra]=Object.create(null)),Object.assign(this[o.$extra],{children:i,line:null,attributes:s,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});var h=this[o.$getTemplateRoot](),d=h[o.$extra].noLayoutFailure,p=this[o.$isSplittable]();if(p||X(this),!(0,c.checkDimensions)(this,e))return u.HTMLResult.FAILURE;var g=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){var m=this[o.$getSubformParent]().columnWidths;Array.isArray(m)&&m.length>0&&(this[o.$extra].columnWidths=m,this[o.$extra].currentColumn=0)}var v=(0,l.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),y=["xfaSubform"],b=(0,l.layoutClass)(this);if(b&&y.push(b),s.style=v,s.class=y,this.name&&(s.xfaName=this.name),this.overflow){var w=this.overflow[o.$getExtra]();w.addLeader&&(w.addLeader=!1,W(this,w.leader,e))}this[o.$pushPara]();for(var k="lr-tb"===this.layout||"rl-tb"===this.layout,S=k?2:1;this[o.$extra].attempt<S;this[o.$extra].attempt++){k&&1===this[o.$extra].attempt&&(this[o.$extra].numberInLine=0);var x=this[o.$childrenToHTML]({filter:g,include:!0});if(x.success)break;if(x.isBreak())return this[o.$popPara](),x;if(k&&0===this[o.$extra].attempt&&0===this[o.$extra].numberInLine&&!h[o.$extra].noLayoutFailure){this[o.$extra].attempt=S;break}}if(this[o.$popPara](),p||H(this),h[o.$extra].noLayoutFailure=d,this[o.$extra].attempt===S)return this.overflow&&(this[o.$getTemplateRoot]()[o.$extra].overflowNode=this.overflow),p||delete this[o.$extra],u.HTMLResult.FAILURE;if(this.overflow){var A=this.overflow[o.$getExtra]();A.addTrailer&&(A.addTrailer=!1,W(this,A.trailer,e))}var O=0,C=0;this.margin&&(O=this.margin.leftInset+this.margin.rightInset,C=this.margin.topInset+this.margin.bottomInset);var F=Math.max(this[o.$extra].width+O,this.w||0),T=Math.max(this[o.$extra].height+C,this.h||0),I=[this.x,this.y,F,T];""===this.w&&(v.width=(0,l.measureToString)(F)),""===this.h&&(v.height=(0,l.measureToString)(T));var P={name:"div",attributes:s,children:i};U(this,s);var _=u.HTMLResult.success((0,l.createWrapper)(this,P),I);if(this.breakAfter.children.length>=1){var E=this.breakAfter.children[0];if(z(E))return this[o.$extra].afterBreakAfter=_,u.HTMLResult.breakNode(E)}return delete this[o.$extra],_}}]),r}(o.XFAObject),Bt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"subformSet",!0)).id=e.id||"",n.name=e.name||"",n.relation=(0,u.getStringOption)(e.relation,["ordered","choice","unordered"]),n.relevant=(0,u.getRelevant)(e.relevant),n.use=e.use||"",n.usehref=e.usehref||"",n.bookend=null,n.break=null,n.desc=null,n.extras=null,n.occur=null,n.overflow=null,n.breakAfter=new o.XFAObjectArray,n.breakBefore=new o.XFAObjectArray,n.subform=new o.XFAObjectArray,n.subformSet=new o.XFAObjectArray,n}return b(r,[{key:o.$getContainedChildren,value:i.default.mark((function e(){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(N(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:o.$getSubformParent,value:function(){for(var e=this[o.$getParent]();!(e instanceof Rt);)e=e[o.$getParent]();return e}},{key:o.$isBindable,value:function(){return!0}}]),r}(o.XFAObject),Dt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"subjectDN")).delimiter=e.delimiter||",",n.id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return b(r,[{key:o.$finalize,value:function(){this[o.$content]=new Map(this[o.$content].split(this.delimiter).map((function(e){return(e=e.split("=",2))[0]=e[0].trim(),e})))}}]),r}(o.ContentObject),Nt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"subjectDNs",!0)).id=e.id||"",n.type=(0,u.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.subjectDN=new o.XFAObjectArray,n}return r}(o.XFAObject),Lt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"submit",!0)).embedPDF=(0,u.getInteger)({data:e.embedPDF,defaultValue:0,validate:function(e){return 1===e}}),n.format=(0,u.getStringOption)(e.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),n.id=e.id||"",n.target=e.target||"",n.textEncoding=(0,u.getKeyword)({data:e.textEncoding?e.textEncoding.toLowerCase():"",defaultValue:"",validate:function(e){return["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)}}),n.use=e.use||"",n.usehref=e.usehref||"",n.xdpContent=e.xdpContent||"",n.encrypt=null,n.encryptData=new o.XFAObjectArray,n.signData=new o.XFAObjectArray,n}return r}(o.XFAObject),Ut=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"template",!0)).baseProfile=(0,u.getStringOption)(e.baseProfile,["full","interactiveForms"]),n.extras=null,n.subform=new o.XFAObjectArray,n}return b(r,[{key:o.$finalize,value:function(){0===this.subform.children.length&&(0,f.warn)("XFA - No subforms in template node."),this.subform.children.length>=2&&(0,f.warn)("XFA - Several subforms in template node: please file a bug."),this[o.$tabIndex]=5e3}},{key:o.$isSplittable,value:function(){return!0}},{key:o.$searchNode,value:function(e,t){return e.startsWith("#")?[this[o.$ids].get(e.slice(1))]:(0,p.searchNode)(this,t,e,!0,!0)}},{key:o.$toHTML,value:function(){var e=this;if(!this.subform.children.length)return u.HTMLResult.success({name:"div",children:[]});this[o.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};var t=this.subform.children[0];t.pageSet[o.$cleanPage]();var r=t.pageSet.pageArea.children,n={name:"div",children:[]},a=null,i=null,s=null;if(t.breakBefore.children.length>=1?s=(i=t.breakBefore.children[0]).target:t.subform.children.length>=1&&t.subform.children[0].breakBefore.children.length>=1?s=(i=t.subform.children[0].breakBefore.children[0]).target:t.break&&t.break.beforeTarget?s=(i=t.break).beforeTarget:t.subform.children.length>=1&&t.subform.children[0].break&&t.subform.children[0].break.beforeTarget&&(s=(i=t.subform.children[0].break).beforeTarget),i){var c=this[o.$searchNode](s,i[o.$getParent]());c instanceof gt&&(a=c,i[o.$extra]={})}a||(a=r[0]),a[o.$extra]={numberOfUse:1};var l,h=a[o.$getParent]();h[o.$extra]={numberOfUse:1,pageIndex:h.pageArea.children.indexOf(a),pageSetIndex:0};for(var d=null,p=null,m=!0,v=0,y=0,b=function(){if(m)v=0;else if(n.children.pop(),3==++v)return(0,f.warn)("XFA - Something goes wrong: please file a bug."),{v:n};l=null,e[o.$extra].currentPageArea=a;var r=a[o.$toHTML]().html;n.children.push(r),d&&(e[o.$extra].noLayoutFailure=!0,r.children.push(d[o.$toHTML](a[o.$extra].space).html),d=null),p&&(e[o.$extra].noLayoutFailure=!0,r.children.push(p[o.$toHTML](a[o.$extra].space).html),p=null);var i=a.contentArea.children,s=r.children.filter((function(e){return e.attributes.class.includes("xfaContentarea")}));m=!1,e[o.$extra].firstUnsplittable=null,e[o.$extra].noLayoutFailure=!1;for(var c=function(e){var r=t[o.$flushHTML]();r&&(m=m||r.children&&0!==r.children.length,s[e].children.push(r))},u=y,h=i.length;u<h;u++){var g=e[o.$extra].currentContentArea=i[u],b={width:g.w,height:g.h};y=0,d&&(s[u].children.push(d[o.$toHTML](b).html),d=null),p&&(s[u].children.push(p[o.$toHTML](b).html),p=null);var w=t[o.$toHTML](b);if(w.success)return w.html?(m=m||w.html.children&&0!==w.html.children.length,s[u].children.push(w.html)):m||n.children.pop(),{v:n};if(w.isBreak()){var k=w.breakNode;if(c(u),"auto"===k.targetType)continue;k.leader&&(d=(d=e[o.$searchNode](k.leader,k[o.$getParent]()))?d[0]:null),k.trailer&&(p=(p=e[o.$searchNode](k.trailer,k[o.$getParent]()))?p[0]:null),"pageArea"===k.targetType?(l=k[o.$extra].target,u=1/0):k[o.$extra].target?(l=k[o.$extra].target,y=k[o.$extra].index+1,u=1/0):u=k[o.$extra].index}else{if(e[o.$extra].overflowNode){var S=function(){var t=e[o.$extra].overflowNode;e[o.$extra].overflowNode=null;var r=t[o.$getExtra](),n=r.target;r.addLeader=null!==r.leader,r.addTrailer=null!==r.trailer,c(u);var a=u;if(u=1/0,n instanceof gt)l=n;else if(n instanceof me){var s=i.findIndex((function(e){return e===n}));-1!==s?s>a?u=s-1:y=s:(l=n[o.$getParent](),y=l.contentArea.children.findIndex((function(e){return e===n})))}return"continue"}();if("continue"===S)continue}c(u)}}e[o.$extra].pageNumber+=1,l&&(l[o.$isUsable]()?l[o.$extra].numberOfUse+=1:l=null),a=l||a[o.$getNextPage]()};;){var w=b();if("object"===g(w))return w.v}}}]),r}(o.XFAObject);t.Template=Ut;var $t=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"text")).id=e.id||"",n.maxChars=(0,u.getInteger)({data:e.maxChars,defaultValue:0,validate:function(e){return e>=0}}),n.name=e.name||"",n.rid=e.rid||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return b(r,[{key:o.$acceptWhitespace,value:function(){return!0}},{key:o.$onChild,value:function(e){return e[o.$namespaceId]===s.NamespaceIds.xhtml.id?(this[o.$content]=e,!0):((0,f.warn)("XFA - Invalid content in Text: ".concat(e[o.$nodeName],".")),!1)}},{key:o.$onText,value:function(e){this[o.$content]instanceof o.XFAObject||m(O(r.prototype),o.$onText,this).call(this,e)}},{key:o.$finalize,value:function(){"string"==typeof this[o.$content]&&(this[o.$content]=this[o.$content].replace(/\r\n/g,"\n"))}},{key:o.$getExtra,value:function(){return"string"==typeof this[o.$content]?this[o.$content].split(/[\u2029\u2028\n]/).reduce((function(e,t){return t&&e.push(t),e}),[]).join("\n"):this[o.$content][o.$text]()}},{key:o.$toHTML,value:function(e){if("string"==typeof this[o.$content]){var t=q(this[o.$content]).html;return this[o.$content].includes("\u2029")?(t.name="div",t.children=[],this[o.$content].split("\u2029").map((function(e){return e.split(/[\u2028\n]/).reduce((function(e,t){return e.push({name:"span",value:t},{name:"br"}),e}),[])})).forEach((function(e){t.children.push({name:"p",children:e})}))):/[\u2028\n]/.test(this[o.$content])&&(t.name="div",t.children=[],this[o.$content].split(/[\u2028\n]/).forEach((function(e){t.children.push({name:"span",value:e},{name:"br"})}))),u.HTMLResult.success(t)}return this[o.$content][o.$toHTML](e)}}]),r}(o.ContentObject);t.Text=$t;var qt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"textEdit",!0)).allowRichText=(0,u.getInteger)({data:e.allowRichText,defaultValue:0,validate:function(e){return 1===e}}),n.hScrollPolicy=(0,u.getStringOption)(e.hScrollPolicy,["auto","off","on"]),n.id=e.id||"",n.multiLine=(0,u.getInteger)({data:e.multiLine,defaultValue:"",validate:function(e){return 0===e||1===e}}),n.use=e.use||"",n.usehref=e.usehref||"",n.vScrollPolicy=(0,u.getStringOption)(e.vScrollPolicy,["auto","off","on"]),n.border=null,n.comb=null,n.extras=null,n.margin=null,n}return b(r,[{key:o.$toHTML,value:function(e){var t,r=(0,l.toStyle)(this,"border","font","margin"),n=this[o.$getParent]()[o.$getParent]();return""===this.multiLine&&(this.multiLine=n instanceof Ce?1:0),t=1===this.multiLine?{name:"textarea",attributes:{dataId:n[o.$data]&&n[o.$data][o.$uid]||n[o.$uid],fieldId:n[o.$uid],class:["xfaTextfield"],style:r,"aria-label":$(n)}}:{name:"input",attributes:{type:"text",dataId:n[o.$data]&&n[o.$data][o.$uid]||n[o.$uid],fieldId:n[o.$uid],class:["xfaTextfield"],style:r,"aria-label":$(n)}},u.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[t]})}}]),r}(o.XFAObject),Xt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"time")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return b(r,[{key:o.$finalize,value:function(){var e=this[o.$content].trim();this[o.$content]=e?new Date(e):null}},{key:o.$toHTML,value:function(e){return q(this[o.$content]?this[o.$content].toString():"")}}]),r}(o.StringObject),Ht=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"timeStamp")).id=e.id||"",n.server=e.server||"",n.type=(0,u.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.XFAObject),zt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"toolTip")).id=e.id||"",n.rid=e.rid||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(o.StringObject),Wt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"traversal",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.traverse=new o.XFAObjectArray,n}return r}(o.XFAObject),Gt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"traverse",!0)).id=e.id||"",n.operation=(0,u.getStringOption)(e.operation,["next","back","down","first","left","right","up"]),n.ref=e.ref||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.script=null,n}return b(r,[{key:"name",get:function(){return this.operation}},{key:o.$isTransparent,value:function(){return!1}}]),r}(o.XFAObject),Vt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"ui",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.picture=null,n.barcode=null,n.button=null,n.checkButton=null,n.choiceList=null,n.dateTimeEdit=null,n.defaultUi=null,n.imageEdit=null,n.numericEdit=null,n.passwordEdit=null,n.signature=null,n.textEdit=null,n}return b(r,[{key:o.$getExtra,value:function(){if(void 0===this[o.$extra]){var e,t=F(Object.getOwnPropertyNames(this));try{for(t.s();!(e=t.n()).done;){var r=e.value;if("extras"!==r&&"picture"!==r){var n=this[r];if(n instanceof o.XFAObject)return this[o.$extra]=n,n}}}catch(e){t.e(e)}finally{t.f()}this[o.$extra]=null}return this[o.$extra]}},{key:o.$toHTML,value:function(e){var t=this[o.$getExtra]();return t?t[o.$toHTML](e):u.HTMLResult.EMPTY}}]),r}(o.XFAObject),Yt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"validate",!0)).formatTest=(0,u.getStringOption)(e.formatTest,["warning","disabled","error"]),n.id=e.id||"",n.nullTest=(0,u.getStringOption)(e.nullTest,["disabled","error","warning"]),n.scriptTest=(0,u.getStringOption)(e.scriptTest,["error","disabled","warning"]),n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.message=null,n.picture=null,n.script=null,n}return r}(o.XFAObject),Kt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"value",!0)).id=e.id||"",n.override=(0,u.getInteger)({data:e.override,defaultValue:0,validate:function(e){return 1===e}}),n.relevant=(0,u.getRelevant)(e.relevant),n.use=e.use||"",n.usehref=e.usehref||"",n.arc=null,n.boolean=null,n.date=null,n.dateTime=null,n.decimal=null,n.exData=null,n.float=null,n.image=null,n.integer=null,n.line=null,n.rectangle=null,n.text=null,n.time=null,n}return b(r,[{key:o.$setValue,value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var t=this[o.$getParent]();if(t instanceof $e&&t.ui&&t.ui.imageEdit)return this.image||(this.image=new Ye({}),this[o.$appendChild](this.image)),void(this.image[o.$content]=e[o.$content]);var r=e[o.$nodeName];if(null===this[r]){var n,a=F(Object.getOwnPropertyNames(this));try{for(a.s();!(n=a.n()).done;){var i=n.value,s=this[i];s instanceof o.XFAObject&&(this[i]=null,this[o.$removeChild](s))}}catch(e){a.e(e)}finally{a.f()}this[e[o.$nodeName]]=e,this[o.$appendChild](e)}else this[r][o.$content]=e[o.$content]}))},{key:o.$text,value:function(){if(this.exData)return"string"==typeof this.exData[o.$content]?this.exData[o.$content].trim():this.exData[o.$content][o.$text]().trim();var e,t=F(Object.getOwnPropertyNames(this));try{for(t.s();!(e=t.n()).done;){var r=e.value;if("image"!==r){var n=this[r];if(n instanceof o.XFAObject)return(n[o.$content]||"").toString().trim()}}}catch(e){t.e(e)}finally{t.f()}return null}},{key:o.$toHTML,value:function(e){var t,r=F(Object.getOwnPropertyNames(this));try{for(r.s();!(t=r.n()).done;){var n=this[t.value];if(n instanceof o.XFAObject)return n[o.$toHTML](e)}}catch(e){r.e(e)}finally{r.f()}return u.HTMLResult.EMPTY}}]),r}(o.XFAObject);t.Value=Kt;var Jt=function(e){k(r,e);var t=x(r);function r(e){var n;return w(this,r),(n=t.call(this,P,"variables",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.boolean=new o.XFAObjectArray,n.date=new o.XFAObjectArray,n.dateTime=new o.XFAObjectArray,n.decimal=new o.XFAObjectArray,n.exData=new o.XFAObjectArray,n.float=new o.XFAObjectArray,n.image=new o.XFAObjectArray,n.integer=new o.XFAObjectArray,n.manifest=new o.XFAObjectArray,n.script=new o.XFAObjectArray,n.text=new o.XFAObjectArray,n.time=new o.XFAObjectArray,n}return b(r,[{key:o.$isTransparent,value:function(){return!0}}]),r}(o.XFAObject),Zt=function(){function e(){w(this,e)}return b(e,null,[{key:s.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t)){var n=e[t](r);return n[o.$setSetAttributes](r),n}}},{key:"appearanceFilter",value:function(e){return new G(e)}},{key:"arc",value:function(e){return new V(e)}},{key:"area",value:function(e){return new Y(e)}},{key:"assist",value:function(e){return new K(e)}},{key:"barcode",value:function(e){return new J(e)}},{key:"bind",value:function(e){return new Z(e)}},{key:"bindItems",value:function(e){return new Q(e)}},{key:"bookend",value:function(e){return new ee(e)}},{key:"boolean",value:function(e){return new te(e)}},{key:"border",value:function(e){return new re(e)}},{key:"break",value:function(e){return new ne(e)}},{key:"breakAfter",value:function(e){return new ae(e)}},{key:"breakBefore",value:function(e){return new ie(e)}},{key:"button",value:function(e){return new oe(e)}},{key:"calculate",value:function(e){return new se(e)}},{key:"caption",value:function(e){return new ce(e)}},{key:"certificate",value:function(e){return new le(e)}},{key:"certificates",value:function(e){return new ue(e)}},{key:"checkButton",value:function(e){return new fe(e)}},{key:"choiceList",value:function(e){return new he(e)}},{key:"color",value:function(e){return new de(e)}},{key:"comb",value:function(e){return new pe(e)}},{key:"connect",value:function(e){return new ge(e)}},{key:"contentArea",value:function(e){return new me(e)}},{key:"corner",value:function(e){return new ve(e)}},{key:"date",value:function(e){return new ye(e)}},{key:"dateTime",value:function(e){return new be(e)}},{key:"dateTimeEdit",value:function(e){return new we(e)}},{key:"decimal",value:function(e){return new ke(e)}},{key:"defaultUi",value:function(e){return new Se(e)}},{key:"desc",value:function(e){return new xe(e)}},{key:"digestMethod",value:function(e){return new Ae(e)}},{key:"digestMethods",value:function(e){return new Oe(e)}},{key:"draw",value:function(e){return new Ce(e)}},{key:"edge",value:function(e){return new Fe(e)}},{key:"encoding",value:function(e){return new Te(e)}},{key:"encodings",value:function(e){return new Ie(e)}},{key:"encrypt",value:function(e){return new Pe(e)}},{key:"encryptData",value:function(e){return new _e(e)}},{key:"encryption",value:function(e){return new Ee(e)}},{key:"encryptionMethod",value:function(e){return new je(e)}},{key:"encryptionMethods",value:function(e){return new Me(e)}},{key:"event",value:function(e){return new Re(e)}},{key:"exData",value:function(e){return new Be(e)}},{key:"exObject",value:function(e){return new De(e)}},{key:"exclGroup",value:function(e){return new Ne(e)}},{key:"execute",value:function(e){return new Le(e)}},{key:"extras",value:function(e){return new Ue(e)}},{key:"field",value:function(e){return new $e(e)}},{key:"fill",value:function(e){return new qe(e)}},{key:"filter",value:function(e){return new Xe(e)}},{key:"float",value:function(e){return new He(e)}},{key:"font",value:function(e){return new ze(e)}},{key:"format",value:function(e){return new We(e)}},{key:"handler",value:function(e){return new Ge(e)}},{key:"hyphenation",value:function(e){return new Ve(e)}},{key:"image",value:function(e){return new Ye(e)}},{key:"imageEdit",value:function(e){return new Ke(e)}},{key:"integer",value:function(e){return new Je(e)}},{key:"issuers",value:function(e){return new Ze(e)}},{key:"items",value:function(e){return new Qe(e)}},{key:"keep",value:function(e){return new et(e)}},{key:"keyUsage",value:function(e){return new tt(e)}},{key:"line",value:function(e){return new rt(e)}},{key:"linear",value:function(e){return new nt(e)}},{key:"lockDocument",value:function(e){return new at(e)}},{key:"manifest",value:function(e){return new it(e)}},{key:"margin",value:function(e){return new ot(e)}},{key:"mdp",value:function(e){return new st(e)}},{key:"medium",value:function(e){return new ct(e)}},{key:"message",value:function(e){return new lt(e)}},{key:"numericEdit",value:function(e){return new ut(e)}},{key:"occur",value:function(e){return new ft(e)}},{key:"oid",value:function(e){return new ht(e)}},{key:"oids",value:function(e){return new dt(e)}},{key:"overflow",value:function(e){return new pt(e)}},{key:"pageArea",value:function(e){return new gt(e)}},{key:"pageSet",value:function(e){return new mt(e)}},{key:"para",value:function(e){return new vt(e)}},{key:"passwordEdit",value:function(e){return new yt(e)}},{key:"pattern",value:function(e){return new bt(e)}},{key:"picture",value:function(e){return new wt(e)}},{key:"proto",value:function(e){return new kt(e)}},{key:"radial",value:function(e){return new St(e)}},{key:"reason",value:function(e){return new xt(e)}},{key:"reasons",value:function(e){return new At(e)}},{key:"rectangle",value:function(e){return new Ot(e)}},{key:"ref",value:function(e){return new Ct(e)}},{key:"script",value:function(e){return new Ft(e)}},{key:"setProperty",value:function(e){return new Tt(e)}},{key:"signData",value:function(e){return new It(e)}},{key:"signature",value:function(e){return new Pt(e)}},{key:"signing",value:function(e){return new _t(e)}},{key:"solid",value:function(e){return new Et(e)}},{key:"speak",value:function(e){return new jt(e)}},{key:"stipple",value:function(e){return new Mt(e)}},{key:"subform",value:function(e){return new Rt(e)}},{key:"subformSet",value:function(e){return new Bt(e)}},{key:"subjectDN",value:function(e){return new Dt(e)}},{key:"subjectDNs",value:function(e){return new Nt(e)}},{key:"submit",value:function(e){return new Lt(e)}},{key:"template",value:function(e){return new Ut(e)}},{key:"text",value:function(e){return new $t(e)}},{key:"textEdit",value:function(e){return new qt(e)}},{key:"time",value:function(e){return new Xt(e)}},{key:"timeStamp",value:function(e){return new Ht(e)}},{key:"toolTip",value:function(e){return new zt(e)}},{key:"traversal",value:function(e){return new Wt(e)}},{key:"traverse",value:function(e){return new Gt(e)}},{key:"ui",value:function(e){return new Vt(e)}},{key:"validate",value:function(e){return new Yt(e)}},{key:"value",value:function(e){return new Kt(e)}},{key:"variables",value:function(e){return new Jt(e)}}]),e}();t.TemplateNamespace=Zt},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addHTML=function(e,t,r){var s=e[n.$extra],l=s.availableSpace,u=i(r,4),f=u[0],h=u[1],d=u[2],p=u[3];switch(e.layout){case"position":s.width=Math.max(s.width,f+d),s.height=Math.max(s.height,h+p),s.children.push(t);break;case"lr-tb":case"rl-tb":s.line&&1!==s.attempt||(s.line=c(e,[]),s.children.push(s.line),s.numberInLine=0),s.numberInLine+=1,s.line.children.push(t),0===s.attempt?(s.currentWidth+=d,s.height=Math.max(s.height,s.prevHeight+p)):(s.currentWidth=d,s.prevHeight=s.height,s.height+=p,s.attempt=0),s.width=Math.max(s.width,s.currentWidth);break;case"rl-row":case"row":s.children.push(t),s.width+=d,s.height=Math.max(s.height,p);var g,m=(0,a.measureToString)(s.height),v=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw i}}}}(s.children);try{for(v.s();!(g=v.n()).done;)g.value.attributes.style.height=m}catch(e){v.e(e)}finally{v.f()}break;case"table":s.width=Math.min(l.width,Math.max(s.width,d)),s.height+=p,s.children.push(t);break;case"tb":s.width=l.width,s.height+=p,s.children.push(t)}},t.checkDimensions=function(e,t){if(null===e[n.$getTemplateRoot]()[n.$extra].firstUnsplittable)return!0;if(0===e.w||0===e.h)return!0;var r=e[n.$getSubformParent](),a=r[n.$extra]&&r[n.$extra].attempt||0,o=i(function(e){var t,r,n=""===e.w?NaN:e.w,a=""===e.h?NaN:e.h,i=0,o=0;switch(e.anchorType||""){case"bottomCenter":i=n/2,o=a;break;case"bottomLeft":i=0,o=a;break;case"bottomRight":i=n,o=a;break;case"middleCenter":i=n/2,o=a/2;break;case"middleLeft":i=0,o=a/2;break;case"middleRight":i=n,o=a/2;break;case"topCenter":i=n/2,o=0;break;case"topRight":i=n,o=0}switch(e.rotate||0){case 0:t=-i,r=-o;break;case 90:t=-o,r=i;var s=[a,-n];n=s[0],a=s[1];break;case 180:t=i,r=o;var c=[-n,-a];n=c[0],a=c[1];break;case 270:t=o,r=-i;var l=[-a,n];n=l[0],a=l[1]}return[e.x+t+Math.min(0,n),e.y+r+Math.min(0,a),Math.abs(n),Math.abs(a)]}(e),4),s=o[1],c=o[2],l=o[3];switch(r.layout){case"lr-tb":case"rl-tb":return 0===a?e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure?""!==e.w?Math.round(c-t.width)<=2:t.width>2:!(""!==e.h&&Math.round(l-t.height)>2)&&(""!==e.w?Math.round(c-t.width)<=2||0===r[n.$extra].numberInLine&&t.height>2:t.width>2):!!e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||!(""!==e.h&&Math.round(l-t.height)>2)&&(""===e.w||Math.round(c-t.width)<=2||!r[n.$isThereMoreWidth]())&&t.height>2;case"table":case"tb":return!!e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||(""===e.h||e[n.$isSplittable]()?(""===e.w||Math.round(c-t.width)<=2||!r[n.$isThereMoreWidth]())&&t.height>2:Math.round(l-t.height)<=2);case"position":return!!e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||(""===e.h||Math.round(l+s-t.height)<=2||l+s>e[n.$getTemplateRoot]()[n.$extra].currentContentArea.h);case"rl-row":case"row":return!!e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||""===e.h||Math.round(l-t.height)<=2;default:return!0}},t.flushHTML=function(e){if(!e[n.$extra])return null;var t={name:"div",attributes:e[n.$extra].attributes,children:e[n.$extra].children};if(e[n.$extra].failingNode){var r=e[n.$extra].failingNode[n.$flushHTML]();r&&(e.layout.endsWith("-tb")?t.children.push(c(e,[r])):t.children.push(r))}return 0===t.children.length?null:t},t.getAvailableSpace=function(e){var t=e[n.$extra].availableSpace,r=e.margin?e.margin.topInset+e.margin.bottomInset:0,a=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case"lr-tb":case"rl-tb":return 0===e[n.$extra].attempt?{width:t.width-a-e[n.$extra].currentWidth,height:t.height-r-e[n.$extra].prevHeight}:{width:t.width-a,height:t.height-r-e[n.$extra].height};case"rl-row":case"row":return{width:e[n.$extra].columnWidths.slice(e[n.$extra].currentColumn).reduce((function(e,t){return e+t})),height:t.height-a};case"table":case"tb":return{width:t.width-a,height:t.height-r-e[n.$extra].height};default:return t}};var n=r(188),a=r(195);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){return{name:"div",attributes:{class:["lr-tb"===e.layout?"xfaLr":"xfaRl"]},children:t}}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeBbox=function(e,t,r){var a;if(""!==e.w&&""!==e.h)a=[e.x,e.y,e.w,e.h];else{if(!r)return null;var i=e.w;if(""===i){if(0===e.maxW){var o=e[n.$getSubformParent]();i="position"===o.layout&&""!==o.w?0:e.minW}else i=Math.min(e.maxW,r.width);t.attributes.style.width=l(i)}var s=e.h;if(""===s){if(0===e.maxH){var c=e[n.$getSubformParent]();s="position"===c.layout&&""!==c.h?0:e.minH}else s=Math.min(e.maxH,r.height);t.attributes.style.height=l(s)}a=[e.x,e.y,i,s]}return a},t.createWrapper=function(e,t){var r=t.attributes,a=r.style,i={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(r.class.push("xfaWrapped"),e.border){var o,s,c=e.border[n.$extra],l=c.widths,u=c.insets,f=u[0],d=u[3],p=u[0]+u[2],g=u[1]+u[3];switch(e.border.hand){case"even":f-=l[0]/2,d-=l[3]/2,o="calc(100% + ".concat((l[1]+l[3])/2-g,"px)"),s="calc(100% + ".concat((l[0]+l[2])/2-p,"px)");break;case"left":f-=l[0],d-=l[3],o="calc(100% + ".concat(l[1]+l[3]-g,"px)"),s="calc(100% + ".concat(l[0]+l[2]-p,"px)");break;case"right":o=g?"calc(100% - ".concat(g,"px)"):"100%",s=p?"calc(100% - ".concat(p,"px)"):"100%"}var m=["xfaBorder"];h(e.border)&&m.push("xfaPrintOnly");for(var v={name:"div",attributes:{class:m,style:{top:"".concat(f,"px"),left:"".concat(d,"px"),width:o,height:s}},children:[]},y=0,b=["border","borderWidth","borderColor","borderRadius","borderStyle"];y<b.length;y++){var w=b[y];void 0!==a[w]&&(v.attributes.style[w]=a[w],delete a[w])}i.children.push(v,t)}else i.children.push(t);for(var k=0,S=["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"];k<S.length;k++){var x=S[k];void 0!==a[x]&&(i.attributes.style[x]=a[x],delete a[x])}return"absolute"===a.position?i.attributes.style.position="absolute":i.attributes.style.position="relative",delete a.position,a.alignSelf&&(i.attributes.style.alignSelf=a.alignSelf,delete a.alignSelf),i},t.fixDimensions=function(e){var t=e[n.$getSubformParent]();if(t.layout&&t.layout.includes("row")){var r,a=t[n.$extra],i=e.colSpan;r=-1===i?a.columnWidths.slice(a.currentColumn).reduce((function(e,t){return e+t}),0):a.columnWidths.slice(a.currentColumn,a.currentColumn+i).reduce((function(e,t){return e+t}),0),isNaN(r)||(e.w=r)}t.layout&&"position"!==t.layout&&(e.x=e.y=0),"table"===e.layout&&""===e.w&&Array.isArray(e.columnWidths)&&(e.w=e.columnWidths.reduce((function(e,t){return e+t}),0))},t.fixTextIndent=function(e){var t=(0,i.getMeasurement)(e.textIndent,"0px");if(!(t>=0)){var r="padding"+("left"==("right"===e.textAlign?"right":"left")?"Left":"Right"),n=(0,i.getMeasurement)(e[r],"0px");e[r]="".concat(n-t,"px")}},t.fixURL=function(e){var t=(0,a.createValidAbsoluteUrl)(e,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return t?t.href:null},t.isPrintOnly=h,t.layoutClass=function(e){switch(e.layout){default:return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb"}},t.layoutNode=function(e,t){var r=null,a=null,i=!1;if((!e.w||!e.h)&&e.value){var o=0,s=0;e.margin&&(o=e.margin.leftInset+e.margin.rightInset,s=e.margin.topInset+e.margin.bottomInset);var c=null,l=null;e.para&&(l=Object.create(null),c=""===e.para.lineHeight?null:e.para.lineHeight,l.top=""===e.para.spaceAbove?0:e.para.spaceAbove,l.bottom=""===e.para.spaceBelow?0:e.para.spaceBelow,l.left=""===e.para.marginLeft?0:e.para.marginLeft,l.right=""===e.para.marginRight?0:e.para.marginRight);var u=e.font;if(!u)for(var h=e[n.$getTemplateRoot](),d=e[n.$getParent]();d!==h;){if(d.font){u=d.font;break}d=d[n.$getParent]()}var p=(e.w?e.w:t.width)-o,g=e[n.$globalData].fontFinder;if(e.value.exData&&e.value.exData[n.$content]&&"text/html"===e.value.exData.contentType){var m=f(e.value.exData[n.$content],u,l,c,g,p);a=m.width,r=m.height,i=m.isBroken}else{var v=e.value[n.$text]();if(v){var y=f(v,u,l,c,g,p);a=y.width,r=y.height,i=y.isBroken}}null===a||e.w||(a+=o),null===r||e.h||(r+=s)}return{w:a,h:r,isBroken:i}},t.measureToString=l,t.setAccess=function(e,t){switch(e.access){case"nonInteractive":t.push("xfaNonInteractive");break;case"readOnly":t.push("xfaReadOnly");break;case"protected":t.push("xfaDisabled")}},t.setFontFamily=function(e,t,r,n){var a=(0,i.stripQuotes)(e.typeface),s=r.find(a);if(n.fontFamily='"'.concat(a,'"'),s){var c=s.regular.cssFontInfo.fontFamily;c!==a&&(n.fontFamily='"'.concat(c,'"'));var l=d(t);if(l&&""!==l.lineHeight)return;if(n.lineHeight)return;var u=(0,o.selectFont)(e,s);u&&(n.lineHeight=Math.max(1.2,u.lineHeight))}},t.setMinMaxDimensions=function(e,t){"position"===e[n.$getSubformParent]().layout&&(e.minW>0&&(t.minWidth=l(e.minW)),e.maxW>0&&(t.maxWidth=l(e.maxW)),e.minH>0&&(t.minHeight=l(e.minH)),e.maxH>0&&(t.maxHeight=l(e.maxH)))},t.setPara=function(e,t,r){if(r.attributes.class&&r.attributes.class.includes("xfaRich")){t&&(""===e.h&&(t.height="auto"),""===e.w&&(t.width="auto"));var a=d(e);if(a){var i=r.attributes.style;switch(i.display="flex",i.flexDirection="column",a.vAlign){case"top":i.justifyContent="start";break;case"bottom":i.justifyContent="end";break;case"middle":i.justifyContent="center"}for(var o=a[n.$toStyle](),s=0,l=Object.entries(o);s<l.length;s++){var u=(2,function(e){if(Array.isArray(e))return e}(p=l[s])||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),2!==i.length);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(p)||function(e,t){if(e){if("string"==typeof e)return c(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,2):void 0}}(p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=u[0],h=u[1];f in i||(i[f]=h)}}}var p},t.toStyle=function(e){for(var t=Object.create(null),r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];for(var s=0,c=i;s<c.length;s++){var l=c[s],f=e[l];if(null!==f)if(u.hasOwnProperty(l))u[l](e,t);else if(f instanceof n.XFAObject){var h=f[n.$toStyle]();h?Object.assign(t,h):(0,a.warn)("(DEBUG) - XFA - style for ".concat(l," not implemented yet"))}}return t};var n=r(188),a=r(4),i=r(189),o=r(196),s=r(197);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return"string"==typeof e?"0px":Number.isInteger(e)?"".concat(e,"px"):"".concat(e.toFixed(2),"px")}var u={anchorType:function(e,t){var r=e[n.$getSubformParent]();if(r&&(!r.layout||"position"===r.layout))switch("transform"in t||(t.transform=""),e.anchorType){case"bottomCenter":t.transform+="translate(-50%, -100%)";break;case"bottomLeft":t.transform+="translate(0,-100%)";break;case"bottomRight":t.transform+="translate(-100%,-100%)";break;case"middleCenter":t.transform+="translate(-50%,-50%)";break;case"middleLeft":t.transform+="translate(0,-50%)";break;case"middleRight":t.transform+="translate(-100%,-50%)";break;case"topCenter":t.transform+="translate(-50%,0)";break;case"topRight":t.transform+="translate(-100%,0)"}},dimensions:function(e,t){var r=e[n.$getSubformParent](),a=e.w,i=e.h;if(r.layout&&r.layout.includes("row")){var o,s=r[n.$extra],c=e.colSpan;-1===c?(o=s.columnWidths.slice(s.currentColumn).reduce((function(e,t){return e+t}),0),s.currentColumn=0):(o=s.columnWidths.slice(s.currentColumn,s.currentColumn+c).reduce((function(e,t){return e+t}),0),s.currentColumn=(s.currentColumn+e.colSpan)%s.columnWidths.length),isNaN(o)||(a=e.w=o)}t.width=""!==a?l(a):"auto",t.height=""!==i?l(i):"auto"},position:function(e,t){var r=e[n.$getSubformParent]();r&&r.layout&&"position"!==r.layout||(t.position="absolute",t.left=l(e.x),t.top=l(e.y))},rotate:function(e,t){e.rotate&&("transform"in t||(t.transform=""),t.transform+="rotate(-".concat(e.rotate,"deg)"),t.transformOrigin="top left")},presence:function(e,t){switch(e.presence){case"invisible":t.visibility="hidden";break;case"hidden":case"inactive":t.display="none"}},hAlign:function(e,t){if("para"===e[n.$nodeName])switch(e.hAlign){case"justifyAll":t.textAlign="justify-all";break;case"radix":t.textAlign="left";break;default:t.textAlign=e.hAlign}else switch(e.hAlign){case"left":t.alignSelf="start";break;case"center":t.alignSelf="center";break;case"right":t.alignSelf="end"}},margin:function(e,t){e.margin&&(t.margin=e.margin[n.$toStyle]().margin)}};function f(e,t,r,a,i,o){var c=new s.TextMeasure(t,r,a,i);return"string"==typeof e?c.addString(e):e[n.$pushGlyphs](c),c.compute(o)}function h(e){return e.relevant.length>0&&!e.relevant[0].excluded&&"print"===e.relevant[0].viewname}function d(e){var t=e[n.$getTemplateRoot]()[n.$extra].paraStack;return t.length?t[t.length-1]:null}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;if(e){var i=(0,a.stripQuotes)(e.typeface),o=e[n.$globalData].fontFinder.find(i);r=h(e,o)}if(!r)return{lineHeight:12,lineGap:2,lineNoGap:10};var s=e.size||10,c=r.lineHeight?Math.max(t?0:1.2,r.lineHeight):1.2,l=void 0===r.lineGap?.2:r.lineGap;return{lineHeight:c*s,lineGap:l*s,lineNoGap:Math.max(1,c-l)*s}},t.selectFont=h,t.FontFinder=void 0;var n=r(188),a=r(189),i=r(4);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=c(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function c(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(t)}var t,r;return t=e,r=[{key:"add",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=s(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;this.addPdfFont(a)}}catch(e){n.e(e)}finally{n.f()}var i,o=s(this.fonts.values());try{for(o.s();!(i=o.n()).done;){var c=i.value;c.regular||(c.regular=c.italic||c.bold||c.bolditalic)}}catch(e){o.e(e)}finally{o.f()}if(r&&0!==r.size){var l,u=this.fonts.get("PdfJS-Fallback-PdfJS-XFA"),f=s(r);try{for(f.s();!(l=f.n()).done;){var h=l.value;this.fonts.set(h,u)}}catch(e){f.e(e)}finally{f.f()}}}},{key:"addPdfFont",value:function(e){var t=e.cssFontInfo,r=t.fontFamily,n=this.fonts.get(r);n||(n=Object.create(null),this.fonts.set(r,n),this.defaultFont||(this.defaultFont=n));var a="",i=parseFloat(t.fontWeight);0!==parseFloat(t.italicAngle)?a=i>=700?"bolditalic":"italic":i>=700&&(a="bold"),a||((e.name.includes("Bold")||e.psName&&e.psName.includes("Bold"))&&(a="bold"),(e.name.includes("Italic")||e.name.endsWith("It")||e.psName&&(e.psName.includes("Italic")||e.psName.endsWith("It")))&&(a+="italic")),a||(a="regular"),n[a]=e}},{key:"getDefault",value:function(){return this.defaultFont}},{key:"find",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.fonts.get(e)||this.cache.get(e);if(r)return r;var n=/,|-|_| |bolditalic|bold|italic|regular|it/gi,a=e.replace(n,"");if(r=this.fonts.get(a))return this.cache.set(e,r),r;a=a.toLowerCase();var c,l=[],u=s(this.fonts.entries());try{for(u.s();!(c=u.n()).done;){var f=o(c.value,2),h=f[0],d=f[1];h.replace(n,"").toLowerCase().startsWith(a)&&l.push(d)}}catch(e){u.e(e)}finally{u.f()}if(0===l.length){var p,g=s(this.fonts.entries());try{for(g.s();!(p=g.n()).done;){var m=o(p.value,2),v=m[1];v.regular.name&&v.regular.name.replace(n,"").toLowerCase().startsWith(a)&&l.push(v)}}catch(e){g.e(e)}finally{g.f()}}if(0===l.length){a=a.replace(/psmt|mt/gi,"");var y,b=s(this.fonts.entries());try{for(b.s();!(y=b.n()).done;){var w=o(y.value,2),k=w[0],S=w[1];k.replace(n,"").toLowerCase().startsWith(a)&&l.push(S)}}catch(e){b.e(e)}finally{b.f()}}if(0===l.length){var x,A=s(this.fonts.values());try{for(A.s();!(x=A.n()).done;){var O=x.value;O.regular.name&&O.regular.name.replace(n,"").toLowerCase().startsWith(a)&&l.push(O)}}catch(e){A.e(e)}finally{A.f()}}return l.length>=1?(1!==l.length&&t&&(0,i.warn)("XFA - Too many choices to guess the correct font: ".concat(e)),this.cache.set(e,l[0]),l[0]):(t&&!this.warned.has(e)&&(this.warned.add(e),(0,i.warn)("XFA - Cannot find the font: ".concat(e))),null)}}],r&&u(t.prototype,r),e}();function h(e,t){return"italic"===e.posture?"bold"===e.weight?t.bolditalic:t.italic:"bold"===e.weight?t.bold:t.regular}t.FontFinder=f},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextMeasure=void 0;var n=r(196);function a(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw i}}}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e}var f=function(){function e(t,r,a,o){if(c(this,e),this.lineHeight=a,this.paraMargin=r||{top:0,bottom:0,left:0,right:0},!t){var s=i(this.defaultFont(o),2);return this.pdfFont=s[0],void(this.xfaFont=s[1])}this.xfaFont={typeface:t.typeface,posture:t.posture,weight:t.weight,size:t.size,letterSpacing:t.letterSpacing};var l=o.find(t.typeface);if(!l){var u=i(this.defaultFont(o),2);return this.pdfFont=u[0],void(this.xfaFont=u[1])}if(this.pdfFont=(0,n.selectFont)(t,l),!this.pdfFont){var f=i(this.defaultFont(o),2);this.pdfFont=f[0],this.xfaFont=f[1]}}return u(e,[{key:"defaultFont",value:function(e){var t=e.find("Helvetica",!1)||e.find("Myriad Pro",!1)||e.find("Arial",!1)||e.getDefault();if(t&&t.regular){var r=t.regular;return[r,{typeface:r.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0}]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}]),e}(),h=function(){function e(t,r,n,a){c(this,e),this.fontFinder=a,this.stack=[new f(t,r,n,a)]}return u(e,[{key:"pushData",value:function(e,t,r){for(var n=this.stack[this.stack.length-1],a=0,i=["typeface","posture","weight","size","letterSpacing"];a<i.length;a++){var o=i[a];e[o]||(e[o]=n.xfaFont[o])}for(var s=0,c=["top","bottom","left","right"];s<c.length;s++){var l=c[s];isNaN(t[l])&&(t[l]=n.paraMargin[l])}var u=new f(e,t,r||n.lineHeight,this.fontFinder);u.pdfFont||(u.pdfFont=n.pdfFont),this.stack.push(u)}},{key:"popFont",value:function(){this.stack.pop()}},{key:"topFont",value:function(){return this.stack[this.stack.length-1]}}]),e}(),d=function(){function e(t,r,n,a){c(this,e),this.glyphs=[],this.fontSelector=new h(t,r,n,a),this.extraHeight=0}return u(e,[{key:"pushData",value:function(e,t,r){this.fontSelector.pushData(e,t,r)}},{key:"popFont",value:function(e){return this.fontSelector.popFont()}},{key:"addPara",value:function(){var e=this.fontSelector.topFont();this.extraHeight+=e.paraMargin.top+e.paraMargin.bottom}},{key:"addString",value:function(e){if(e){var t=this.fontSelector.topFont(),r=t.xfaFont.size;if(t.pdfFont){var n,i=t.xfaFont.letterSpacing,o=t.pdfFont,s=o.lineHeight||1.2,c=t.lineHeight||Math.max(1.2,s)*r,l=s-(void 0===o.lineGap?.2:o.lineGap),u=Math.max(1,l)*r,f=r/1e3,h=o.defaultWidth||o.charsToGlyphs(" ")[0].width,d=a(e.split(/[\u2029\n]/));try{for(d.s();!(n=d.n()).done;){var p,g=n.value,m=o.encodeString(g).join(""),v=a(o.charsToGlyphs(m));try{for(v.s();!(p=v.n()).done;){var y=p.value,b=y.width||h;this.glyphs.push([b*f+i,c,u,y.unicode,!1])}}catch(e){v.e(e)}finally{v.f()}this.glyphs.push([0,0,0,"\n",!0])}}catch(e){d.e(e)}finally{d.f()}this.glyphs.pop()}else{var w,k=a(e.split(/[\u2029\n]/));try{for(k.s();!(w=k.n()).done;){var S,x=a(w.value.split(""));try{for(x.s();!(S=x.n()).done;){var A=S.value;this.glyphs.push([r,1.2*r,r,A,!1])}}catch(e){x.e(e)}finally{x.f()}this.glyphs.push([0,0,0,"\n",!0])}}catch(e){k.e(e)}finally{k.f()}this.glyphs.pop()}}}},{key:"compute",value:function(e){for(var t=-1,r=0,n=0,a=0,o=0,s=0,c=!1,l=!0,u=0,f=this.glyphs.length;u<f;u++){var h=i(this.glyphs[u],5),d=h[0],p=h[1],g=h[2],m=" "===h[3],v=l?g:p;h[4]?(n=Math.max(n,o),o=0,a+=s,s=v,t=-1,r=0,l=!1):m?o+d>e?(n=Math.max(n,o),o=0,a+=s,s=v,t=-1,r=0,c=!0,l=!1):(s=Math.max(v,s),r=o,o+=d,t=u):o+d>e?(a+=s,s=v,-1!==t?(u=t,n=Math.max(n,r),o=0,t=-1,r=0):(n=Math.max(n,o),o=d),c=!0,l=!1):(o+=d,s=Math.max(v,s))}return{width:1.02*(n=Math.max(n,o)),height:a+=s+this.extraHeight,isBroken:c}}}]),e}();t.TextMeasure=d},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataHandler=void 0;var n=r(188);function a(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw i}}}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=r,this.dataset=t.datasets||null}var t,r;return t=e,(r=[{key:"serialize",value:function(e){for(var t=[[-1,this.data[n.$getChildren]()]];t.length>0;){var r=t[t.length-1],o=i(r,2),s=o[0],c=o[1];if(s+1!==c.length){var l=c[++r[0]],u=e.get(l[n.$uid]);if(u)l[n.$setValue](u);else{var f,h=a(l[n.$getAttributes]().values());try{for(h.s();!(f=h.n()).done;){var d=f.value,p=e.get(d[n.$uid]);if(p){d[n.$setValue](p);break}}}catch(e){h.e(e)}finally{h.f()}}var g=l[n.$getChildren]();g.length>0&&t.push([-1,g])}else t.pop()}var m=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">'];if(this.dataset){var v,y=a(this.dataset[n.$getChildren]());try{for(y.s();!(v=y.n()).done;){var b=v.value;"data"!==b[n.$nodeName]&&b[n.$toString](m)}}catch(e){y.e(e)}finally{y.f()}}return this.data[n.$toString](m),m.push("</xfa:datasets>"),m.join("")}}])&&c(t.prototype,r),e}();t.DataHandler=l},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.XFAParser=void 0;var a=r(188),i=r(181),o=r(200),s=r(4);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function d(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(m,e);var t,r,n,u,g=(n=m,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=p(n);if(u){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return d(this,e)});function m(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),(e=g.call(this))._builder=new o.Builder,e._stack=[],e._globalData={usedTypefaces:new Set},e._ids=new Map,e._current=e._builder.buildRoot(e._ids),e._errorCode=i.XMLParserErrorCode.NoError,e._whiteRegex=/^\s+$/,e._nbsps=/\xa0+/g,e}return t=m,(r=[{key:"parse",value:function(e){if(this.parseXml(e),this._errorCode===i.XMLParserErrorCode.NoError)return this._current[a.$finalize](),this._current.element}},{key:"onText",value:function(e){e=e.replace(this._nbsps,(function(e){return e.slice(1)+" "})),this._current[a.$acceptWhitespace]()?this._current[a.$onText](e):this._whiteRegex.test(e)||this._current[a.$onText](e.trim())}},{key:"onCdata",value:function(e){this._current[a.$onText](e)}},{key:"_mkAttributes",value:function(e,t){var r,n=null,i=null,o=Object.create({}),c=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=l(e))){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}(e);try{for(c.s();!(r=c.n()).done;){var u=r.value,f=u.name,h=u.value;if("xmlns"===f)n?(0,s.warn)("XFA - multiple namespace definition in <".concat(t,">")):n=h;else if(f.startsWith("xmlns:")){var d=f.substring("xmlns:".length);i||(i=[]),i.push({prefix:d,value:h})}else{var p=f.indexOf(":");if(-1===p)o[f]=h;else{var g=o[a.$nsAttributes];g||(g=o[a.$nsAttributes]=Object.create(null));var m=[f.slice(0,p),f.slice(p+1)],v=m[0],y=m[1],b=g[v];b||(b=g[v]=Object.create(null)),b[y]=h}}}}catch(e){c.e(e)}finally{c.f()}return[n,i,o]}},{key:"_getNameAndPrefix",value:function(e,t){var r=e.indexOf(":");return-1===r?[e,null]:[e.substring(r+1),t?"":e.substring(0,r)]}},{key:"onBeginElement",value:function(e,t,r){var n=c(this._mkAttributes(t,e),3),i=n[0],o=n[1],s=n[2],l=c(this._getNameAndPrefix(e,this._builder.isNsAgnostic()),2),u=l[0],f=l[1],h=this._builder.build({nsPrefix:f,name:u,attributes:s,namespace:i,prefixes:o});if(h[a.$globalData]=this._globalData,r)return h[a.$finalize](),this._current[a.$onChild](h)&&h[a.$setId](this._ids),void h[a.$clean](this._builder);this._stack.push(this._current),this._current=h}},{key:"onEndElement",value:function(e){var t=this._current;if(t[a.$isCDATAXml]()&&"string"==typeof t[a.$content]){var r=new m;r._globalData=this._globalData;var n=r.parse(t[a.$content]);t[a.$content]=null,t[a.$onChild](n)}t[a.$finalize](),this._current=this._stack.pop(),this._current[a.$onChild](t)&&t[a.$setId](this._ids),t[a.$clean](this._builder)}},{key:"onError",value:function(e){this._errorCode=e}}])&&f(t.prototype,r),m}(i.XMLParserBase);t.XFAParser=g},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Builder=void 0;var a=r(190),i=r(188),o=r(201),s=r(193),c=r(210),l=r(4);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),e}function m(e,t,r){return m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=k(e)););return e}(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(r):a.value}},m(e,t,r||e)}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=k(e);if(t){var a=k(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return w(this,r)}}function w(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var S=function(e){v(r,e);var t=b(r);function r(e){var n;return d(this,r),(n=t.call(this,-1,"root",Object.create(null))).element=null,n[i.$ids]=e,n}return g(r,[{key:i.$onChild,value:function(e){return this.element=e,!0}},{key:i.$finalize,value:function(){m(k(r.prototype),i.$finalize,this).call(this),this.element.template instanceof s.Template&&(this[i.$ids].set(i.$root,this.element),this.element.template[i.$resolvePrototypes](this[i.$ids]),this.element.template[i.$ids]=this[i.$ids])}}]),r}(i.XFAObject),x=function(e){v(r,e);var t=b(r);function r(){return d(this,r),t.call(this,-1,"",Object.create(null))}return g(r,[{key:i.$onChild,value:function(e){return!1}}]),r}(i.XFAObject),A=function(){function e(){var t;d(this,e),this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max.apply(Math,function(e){if(Array.isArray(e))return h(e)}(t=Object.values(a.NamespaceIds).map((function(e){return e.id})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),this._currentNamespace=new c.UnknownNamespace(++this._nextNsId)}return g(e,[{key:"buildRoot",value:function(e){return new S(e)}},{key:"build",value:function(e){var t=e.nsPrefix,r=e.name,n=e.attributes,s=e.namespace,c=e.prefixes,l=null!==s;if(l&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(s)),c&&this._addNamespacePrefix(c),n.hasOwnProperty(i.$nsAttributes)){for(var f=o.NamespaceSetUp.datasets,h=n[i.$nsAttributes],d=null,p=0,g=Object.entries(h);p<g.length;p++){var m=u(g[p],2),v=m[0],y=m[1];if(this._getNamespaceToUse(v)===f){d={xfa:y};break}}d?n[i.$nsAttributes]=d:delete n[i.$nsAttributes]}var b=this._getNamespaceToUse(t),w=b&&b[a.$buildXFAObject](r,n)||new x;return w[i.$isNsAgnostic]()&&this._nsAgnosticLevel++,(l||c||w[i.$isNsAgnostic]())&&(w[i.$cleanup]={hasNamespace:l,prefixes:c,nsAgnostic:w[i.$isNsAgnostic]()}),w}},{key:"isNsAgnostic",value:function(){return this._nsAgnosticLevel>0}},{key:"_searchNamespace",value:function(e){var t=this._namespaces.get(e);if(t)return t;for(var r=0,n=Object.entries(a.NamespaceIds);r<n.length;r++){var i=u(n[r],2),s=i[0];if((0,i[1].check)(e)){if(t=o.NamespaceSetUp[s])return this._namespaces.set(e,t),t;break}}return t=new c.UnknownNamespace(++this._nextNsId),this._namespaces.set(e,t),t}},{key:"_addNamespacePrefix",value:function(e){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=f(e))){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}(e);try{for(r.s();!(t=r.n()).done;){var n=t.value,a=n.prefix,i=n.value,o=this._searchNamespace(i),s=this._namespacePrefixes.get(a);s||(s=[],this._namespacePrefixes.set(a,s)),s.push(o)}}catch(e){r.e(e)}finally{r.f()}}},{key:"_getNamespaceToUse",value:function(e){if(!e)return this._currentNamespace;var t=this._namespacePrefixes.get(e);return t&&t.length>0?t[t.length-1]:((0,l.warn)("Unknown namespace prefix: ".concat(e,".")),null)}},{key:"clean",value:function(e){var t=this,r=e.hasNamespace,n=e.prefixes,a=e.nsAgnostic;r&&(this._currentNamespace=this._namespaceStack.pop()),n&&n.forEach((function(e){var r=e.prefix;t._namespacePrefixes.get(r).pop()})),a&&this._nsAgnosticLevel--}}]),e}();t.Builder=A},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceSetUp=void 0;var n=r(202),a=r(203),i=r(204),o=r(205),s=r(206),c=r(207),l=r(193),u=r(208),f=r(209),h={config:n.ConfigNamespace,connection:a.ConnectionSetNamespace,datasets:i.DatasetsNamespace,localeSet:o.LocaleSetNamespace,signature:s.SignatureNamespace,stylesheet:c.StylesheetNamespace,template:l.TemplateNamespace,xdp:u.XdpNamespace,xhtml:f.XhtmlNamespace};t.NamespaceSetUp=h},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigNamespace=void 0;var a=r(190),i=r(188),o=r(189),s=r(4);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=m(e);if(t){var a=m(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=a.NamespaceIds.config.id,y=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"acrobat",!0)).acrobat7=null,n.autoSave=null,n.common=null,n.validate=null,n.validateApprovalSignatures=null,n.submitUrl=new i.XFAObjectArray,n}return r}(i.XFAObject),b=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"acrobat7",!0)).dynamicRender=null,n}return r}(i.XFAObject),w=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"ADBE_JSConsole",["delegate","Enable","Disable"])}return r}(i.OptionObject),k=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"ADBE_JSDebugger",["delegate","Enable","Disable"])}return r}(i.OptionObject),S=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"addSilentPrint")}return r}(i.Option01),x=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"addViewerPreferences")}return r}(i.Option01),A=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"adjustData")}return r}(i.Option10),O=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"adobeExtensionLevel",0,(function(e){return e>=1&&e<=8}))}return r}(i.IntegerObject),C=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"agent",!0)).name=e.name?e.name.trim():"",n.common=new i.XFAObjectArray,n}return r}(i.XFAObject),F=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"alwaysEmbed")}return r}(i.ContentObject),T=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"amd")}return r}(i.StringObject),I=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"area")).level=(0,o.getInteger)({data:e.level,defaultValue:0,validate:function(e){return e>=1&&e<=3}}),n.name=(0,o.getStringOption)(e.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"]),n}return r}(i.XFAObject),P=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"attributes",["preserve","delegate","ignore"])}return r}(i.OptionObject),_=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"autoSave",["disabled","enabled"])}return r}(i.OptionObject),E=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"base")}return r}(i.StringObject),j=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"batchOutput")).format=(0,o.getStringOption)(e.format,["none","concat","zip","zipCompress"]),n}return r}(i.XFAObject),M=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"behaviorOverride")}return u(r,[{key:i.$finalize,value:function(){this[i.$content]=new Map(this[i.$content].trim().split(/\s+/).filter((function(e){return e.includes(":")})).map((function(e){return e.split(":",2)})))}}]),r}(i.ContentObject),R=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"cache",!0)).templateCache=null,n}return r}(i.XFAObject),B=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"change")}return r}(i.Option01),D=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"common",!0)).data=null,n.locale=null,n.localeSet=null,n.messaging=null,n.suppressBanner=null,n.template=null,n.validationMessaging=null,n.versionControl=null,n.log=new i.XFAObjectArray,n}return r}(i.XFAObject),N=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"compress")).scope=(0,o.getStringOption)(e.scope,["imageOnly","document"]),n}return r}(i.XFAObject),L=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"compressLogicalStructure")}return r}(i.Option01),U=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"compressObjectStream")}return r}(i.Option10),$=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"compression",!0)).compressLogicalStructure=null,n.compressObjectStream=null,n.level=null,n.type=null,n}return r}(i.XFAObject),q=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"config",!0)).acrobat=null,n.present=null,n.trace=null,n.agent=new i.XFAObjectArray,n}return r}(i.XFAObject),X=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"conformance",["A","B"])}return r}(i.OptionObject),H=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"contentCopy")}return r}(i.Option01),z=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"copies",1,(function(e){return e>=1}))}return r}(i.IntegerObject),W=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"creator")}return r}(i.StringObject),G=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"currentPage",0,(function(e){return e>=0}))}return r}(i.IntegerObject),V=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"data",!0)).adjustData=null,n.attributes=null,n.incrementalLoad=null,n.outputXSL=null,n.range=null,n.record=null,n.startNode=null,n.uri=null,n.window=null,n.xsl=null,n.excludeNS=new i.XFAObjectArray,n.transform=new i.XFAObjectArray,n}return r}(i.XFAObject),Y=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"debug",!0)).uri=null,n}return r}(i.XFAObject),K=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"defaultTypeface")).writingScript=(0,o.getStringOption)(e.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"]),n}return r}(i.ContentObject),J=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"destination",["pdf","pcl","ps","webClient","zpl"])}return r}(i.OptionObject),Z=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"documentAssembly")}return r}(i.Option01),Q=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"driver",!0)).name=e.name?e.name.trim():"",n.fontInfo=null,n.xdc=null,n}return r}(i.XFAObject),ee=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}return r}(i.OptionObject),te=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"dynamicRender",["forbidden","required"])}return r}(i.OptionObject),re=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"embed")}return r}(i.Option01),ne=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"encrypt")}return r}(i.Option01),ae=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"encryption",!0)).encrypt=null,n.encryptionLevel=null,n.permissions=null,n}return r}(i.XFAObject),ie=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"encryptionLevel",["40bit","128bit"])}return r}(i.OptionObject),oe=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"enforce")}return r}(i.StringObject),se=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"equate")).force=(0,o.getInteger)({data:e.force,defaultValue:1,validate:function(e){return 0===e}}),n.from=e.from||"",n.to=e.to||"",n}return r}(i.XFAObject),ce=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"equateRange")).from=e.from||"",n.to=e.to||"",n._unicodeRange=e.unicodeRange||"",n}return u(r,[{key:"unicodeRange",get:function(){var e,t=[],r=/U\+([0-9a-fA-F]+)/,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}(this._unicodeRange.split(",").map((function(e){return e.trim()})).filter((function(e){return!!e})));try{for(n.s();!(e=n.n()).done;){var a=e.value;1===(a=a.split("-",2).map((function(e){var t=e.match(r);return t?parseInt(t[1],16):0}))).length&&a.push(a[0]),t.push(a)}}catch(e){n.e(e)}finally{n.f()}return(0,s.shadow)(this,"unicodeRange",t)}}]),r}(i.XFAObject),le=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"exclude")}return u(r,[{key:i.$finalize,value:function(){this[i.$content]=this[i.$content].trim().split(/\s+/).filter((function(e){return e&&["calculate","close","enter","exit","initialize","ready","validate"].includes(e)}))}}]),r}(i.ContentObject),ue=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"excludeNS")}return r}(i.StringObject),fe=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"flipLabel",["usePrinterSetting","on","off"])}return r}(i.OptionObject),he=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"fontInfo",!0)).embed=null,n.map=null,n.subsetBelow=null,n.alwaysEmbed=new i.XFAObjectArray,n.defaultTypeface=new i.XFAObjectArray,n.neverEmbed=new i.XFAObjectArray,n}return r}(i.XFAObject),de=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"formFieldFilling")}return r}(i.Option01),pe=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"groupParent")}return r}(i.StringObject),ge=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}return r}(i.OptionObject),me=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"includeXDPContent")}return r}(i.StringObject),ve=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"incrementalLoad",["none","forwardOnly"])}return r}(i.OptionObject),ye=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"incrementalMerge")}return r}(i.Option01),be=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"interactive")}return r}(i.Option01),we=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"jog",["usePrinterSetting","none","pageSet"])}return r}(i.OptionObject),ke=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"labelPrinter",!0)).name=(0,o.getStringOption)(e.name,["zpl","dpl","ipl","tcpl"]),n.batchOutput=null,n.flipLabel=null,n.fontInfo=null,n.xdc=null,n}return r}(i.XFAObject),Se=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"layout",["paginate","panel"])}return r}(i.OptionObject),xe=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"level",0,(function(e){return e>0}))}return r}(i.IntegerObject),Ae=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"linearized")}return r}(i.Option01),Oe=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"locale")}return r}(i.StringObject),Ce=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"localeSet")}return r}(i.StringObject),Fe=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"log",!0)).mode=null,n.threshold=null,n.to=null,n.uri=null,n}return r}(i.XFAObject),Te=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"map",!0)).equate=new i.XFAObjectArray,n.equateRange=new i.XFAObjectArray,n}return r}(i.XFAObject),Ie=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"mediumInfo",!0)).map=null,n}return r}(i.XFAObject),Pe=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"message",!0)).msgId=null,n.severity=null,n}return r}(i.XFAObject),_e=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"messaging",!0)).message=new i.XFAObjectArray,n}return r}(i.XFAObject),Ee=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"mode",["append","overwrite"])}return r}(i.OptionObject),je=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"modifyAnnots")}return r}(i.Option01),Me=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"msgId",1,(function(e){return e>=1}))}return r}(i.IntegerObject),Re=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"nameAttr")}return r}(i.StringObject),Be=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"neverEmbed")}return r}(i.ContentObject),De=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"numberOfCopies",null,(function(e){return e>=2&&e<=5}))}return r}(i.IntegerObject),Ne=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"openAction",!0)).destination=null,n}return r}(i.XFAObject),Le=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"output",!0)).to=null,n.type=null,n.uri=null,n}return r}(i.XFAObject),Ue=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"outputBin")}return r}(i.StringObject),$e=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"outputXSL",!0)).uri=null,n}return r}(i.XFAObject),qe=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"overprint",["none","both","draw","field"])}return r}(i.OptionObject),Xe=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"packets")}return u(r,[{key:i.$finalize,value:function(){"*"!==this[i.$content]&&(this[i.$content]=this[i.$content].trim().split(/\s+/).filter((function(e){return["config","datasets","template","xfdf","xslt"].includes(e)})))}}]),r}(i.StringObject),He=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"pageOffset")).x=(0,o.getInteger)({data:e.x,defaultValue:"useXDCSetting",validate:function(e){return!0}}),n.y=(0,o.getInteger)({data:e.y,defaultValue:"useXDCSetting",validate:function(e){return!0}}),n}return r}(i.XFAObject),ze=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"pageRange")}return u(r,[{key:i.$finalize,value:function(){for(var e=this[i.$content].trim().split(/\s+/).map((function(e){return parseInt(e,10)})),t=[],r=0,n=e.length;r<n;r+=2)t.push(e.slice(r,r+2));this[i.$content]=t}}]),r}(i.StringObject),We=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}return r}(i.OptionObject),Ge=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}return r}(i.OptionObject),Ve=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"part",1,(function(e){return!1}))}return r}(i.IntegerObject),Ye=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"pcl",!0)).name=e.name||"",n.batchOutput=null,n.fontInfo=null,n.jog=null,n.mediumInfo=null,n.outputBin=null,n.pageOffset=null,n.staple=null,n.xdc=null,n}return r}(i.XFAObject),Ke=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"pdf",!0)).name=e.name||"",n.adobeExtensionLevel=null,n.batchOutput=null,n.compression=null,n.creator=null,n.encryption=null,n.fontInfo=null,n.interactive=null,n.linearized=null,n.openAction=null,n.pdfa=null,n.producer=null,n.renderPolicy=null,n.scriptModel=null,n.silentPrint=null,n.submitFormat=null,n.tagged=null,n.version=null,n.viewerPreferences=null,n.xdc=null,n}return r}(i.XFAObject),Je=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"pdfa",!0)).amd=null,n.conformance=null,n.includeXDPContent=null,n.part=null,n}return r}(i.XFAObject),Ze=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"permissions",!0)).accessibleContent=null,n.change=null,n.contentCopy=null,n.documentAssembly=null,n.formFieldFilling=null,n.modifyAnnots=null,n.plaintextMetadata=null,n.print=null,n.printHighQuality=null,n}return r}(i.XFAObject),Qe=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"pickTrayByPDFSize")}return r}(i.Option01),et=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"picture")}return r}(i.StringObject),tt=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"plaintextMetadata")}return r}(i.Option01),rt=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}return r}(i.OptionObject),nt=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"present",!0)).behaviorOverride=null,n.cache=null,n.common=null,n.copies=null,n.destination=null,n.incrementalMerge=null,n.layout=null,n.output=null,n.overprint=null,n.pagination=null,n.paginationOverride=null,n.script=null,n.validate=null,n.xdp=null,n.driver=new i.XFAObjectArray,n.labelPrinter=new i.XFAObjectArray,n.pcl=new i.XFAObjectArray,n.pdf=new i.XFAObjectArray,n.ps=new i.XFAObjectArray,n.submitUrl=new i.XFAObjectArray,n.webClient=new i.XFAObjectArray,n.zpl=new i.XFAObjectArray,n}return r}(i.XFAObject),at=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"print")}return r}(i.Option01),it=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"printHighQuality")}return r}(i.Option01),ot=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"printScaling",["appdefault","noScaling"])}return r}(i.OptionObject),st=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"printerName")}return r}(i.StringObject),ct=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"producer")}return r}(i.StringObject),lt=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"ps",!0)).name=e.name||"",n.batchOutput=null,n.fontInfo=null,n.jog=null,n.mediumInfo=null,n.outputBin=null,n.staple=null,n.xdc=null,n}return r}(i.XFAObject),ut=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"range")}return u(r,[{key:i.$finalize,value:function(){this[i.$content]=this[i.$content].trim().split(/\s*,\s*/,2).map((function(e){return e.split("-").map((function(e){return parseInt(e.trim(),10)}))})).filter((function(e){return e.every((function(e){return!isNaN(e)}))})).map((function(e){return 1===e.length&&e.push(e[0]),e}))}}]),r}(i.ContentObject),ft=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"record")}return u(r,[{key:i.$finalize,value:function(){this[i.$content]=this[i.$content].trim();var e=parseInt(this[i.$content],10);!isNaN(e)&&e>=0&&(this[i.$content]=e)}}]),r}(i.ContentObject),ht=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"relevant")}return u(r,[{key:i.$finalize,value:function(){this[i.$content]=this[i.$content].trim().split(/\s+/)}}]),r}(i.ContentObject),dt=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"rename")}return u(r,[{key:i.$finalize,value:function(){this[i.$content]=this[i.$content].trim(),(this[i.$content].toLowerCase().startsWith("xml")||this[i.$content].match(new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u")))&&(0,s.warn)("XFA - Rename: invalid XFA name")}}]),r}(i.ContentObject),pt=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"renderPolicy",["server","client"])}return r}(i.OptionObject),gt=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"runScripts",["both","client","none","server"])}return r}(i.OptionObject),mt=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"script",!0)).currentPage=null,n.exclude=null,n.runScripts=null,n}return r}(i.XFAObject),vt=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"scriptModel",["XFA","none"])}return r}(i.OptionObject),yt=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"severity",["ignore","error","information","trace","warning"])}return r}(i.OptionObject),bt=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"silentPrint",!0)).addSilentPrint=null,n.printerName=null,n}return r}(i.XFAObject),wt=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"staple")).mode=(0,o.getStringOption)(e.mode,["usePrinterSetting","on","off"]),n}return r}(i.XFAObject),kt=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"startNode")}return r}(i.StringObject),St=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"startPage",0,(function(e){return!0}))}return r}(i.IntegerObject),xt=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"submitFormat",["html","delegate","fdf","xml","pdf"])}return r}(i.OptionObject),At=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"submitUrl")}return r}(i.StringObject),Ot=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"subsetBelow",100,(function(e){return e>=0&&e<=100}))}return r}(i.IntegerObject),Ct=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"suppressBanner")}return r}(i.Option01),Ft=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"tagged")}return r}(i.Option01),Tt=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"template",!0)).base=null,n.relevant=null,n.startPage=null,n.uri=null,n.xsl=null,n}return r}(i.XFAObject),It=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"threshold",["trace","error","information","warning"])}return r}(i.OptionObject),Pt=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"to",["null","memory","stderr","stdout","system","uri"])}return r}(i.OptionObject),_t=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"templateCache")).maxEntries=(0,o.getInteger)({data:e.maxEntries,defaultValue:5,validate:function(e){return e>=0}}),n}return r}(i.XFAObject),Et=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"trace",!0)).area=new i.XFAObjectArray,n}return r}(i.XFAObject),jt=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"transform",!0)).groupParent=null,n.ifEmpty=null,n.nameAttr=null,n.picture=null,n.presence=null,n.rename=null,n.whitespace=null,n}return r}(i.XFAObject),Mt=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}return r}(i.OptionObject),Rt=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"uri")}return r}(i.StringObject),Bt=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"validate",["preSubmit","prePrint","preExecute","preSave"])}return r}(i.OptionObject),Dt=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"validateApprovalSignatures")}return u(r,[{key:i.$finalize,value:function(){this[i.$content]=this[i.$content].trim().split(/\s+/).filter((function(e){return["docReady","postSign"].includes(e)}))}}]),r}(i.ContentObject),Nt=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}return r}(i.OptionObject),Lt=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}return r}(i.OptionObject),Ut=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"VersionControl")).outputBelow=(0,o.getStringOption)(e.outputBelow,["warn","error","update"]),n.sourceAbove=(0,o.getStringOption)(e.sourceAbove,["warn","error"]),n.sourceBelow=(0,o.getStringOption)(e.sourceBelow,["update","maintain"]),n}return r}(i.XFAObject),$t=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"viewerPreferences",!0)).ADBE_JSConsole=null,n.ADBE_JSDebugger=null,n.addViewerPreferences=null,n.duplexOption=null,n.enforce=null,n.numberOfCopies=null,n.pageRange=null,n.pickTrayByPDFSize=null,n.printScaling=null,n}return r}(i.XFAObject),qt=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"webClient",!0)).name=e.name?e.name.trim():"",n.fontInfo=null,n.xdc=null,n}return r}(i.XFAObject),Xt=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}return r}(i.OptionObject),Ht=function(e){h(r,e);var t=p(r);function r(e){return f(this,r),t.call(this,v,"window")}return u(r,[{key:i.$finalize,value:function(){var e=this[i.$content].trim().split(/\s*,\s*/,2).map((function(e){return parseInt(e,10)}));e.some((function(e){return isNaN(e)}))?this[i.$content]=[0,0]:(1===e.length&&e.push(e[0]),this[i.$content]=e)}}]),r}(i.ContentObject),zt=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"xdc",!0)).uri=new i.XFAObjectArray,n.xsl=new i.XFAObjectArray,n}return r}(i.XFAObject),Wt=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"xdp",!0)).packets=null,n}return r}(i.XFAObject),Gt=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"xsl",!0)).debug=null,n.uri=null,n}return r}(i.XFAObject),Vt=function(e){h(r,e);var t=p(r);function r(e){var n;return f(this,r),(n=t.call(this,v,"zpl",!0)).name=e.name?e.name.trim():"",n.batchOutput=null,n.flipLabel=null,n.fontInfo=null,n.xdc=null,n}return r}(i.XFAObject),Yt=function(){function e(){f(this,e)}return u(e,null,[{key:a.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"acrobat",value:function(e){return new y(e)}},{key:"acrobat7",value:function(e){return new b(e)}},{key:"ADBE_JSConsole",value:function(e){return new w(e)}},{key:"ADBE_JSDebugger",value:function(e){return new k(e)}},{key:"addSilentPrint",value:function(e){return new S(e)}},{key:"addViewerPreferences",value:function(e){return new x(e)}},{key:"adjustData",value:function(e){return new A(e)}},{key:"adobeExtensionLevel",value:function(e){return new O(e)}},{key:"agent",value:function(e){return new C(e)}},{key:"alwaysEmbed",value:function(e){return new F(e)}},{key:"amd",value:function(e){return new T(e)}},{key:"area",value:function(e){return new I(e)}},{key:"attributes",value:function(e){return new P(e)}},{key:"autoSave",value:function(e){return new _(e)}},{key:"base",value:function(e){return new E(e)}},{key:"batchOutput",value:function(e){return new j(e)}},{key:"behaviorOverride",value:function(e){return new M(e)}},{key:"cache",value:function(e){return new R(e)}},{key:"change",value:function(e){return new B(e)}},{key:"common",value:function(e){return new D(e)}},{key:"compress",value:function(e){return new N(e)}},{key:"compressLogicalStructure",value:function(e){return new L(e)}},{key:"compressObjectStream",value:function(e){return new U(e)}},{key:"compression",value:function(e){return new $(e)}},{key:"config",value:function(e){return new q(e)}},{key:"conformance",value:function(e){return new X(e)}},{key:"contentCopy",value:function(e){return new H(e)}},{key:"copies",value:function(e){return new z(e)}},{key:"creator",value:function(e){return new W(e)}},{key:"currentPage",value:function(e){return new G(e)}},{key:"data",value:function(e){return new V(e)}},{key:"debug",value:function(e){return new Y(e)}},{key:"defaultTypeface",value:function(e){return new K(e)}},{key:"destination",value:function(e){return new J(e)}},{key:"documentAssembly",value:function(e){return new Z(e)}},{key:"driver",value:function(e){return new Q(e)}},{key:"duplexOption",value:function(e){return new ee(e)}},{key:"dynamicRender",value:function(e){return new te(e)}},{key:"embed",value:function(e){return new re(e)}},{key:"encrypt",value:function(e){return new ne(e)}},{key:"encryption",value:function(e){return new ae(e)}},{key:"encryptionLevel",value:function(e){return new ie(e)}},{key:"enforce",value:function(e){return new oe(e)}},{key:"equate",value:function(e){return new se(e)}},{key:"equateRange",value:function(e){return new ce(e)}},{key:"exclude",value:function(e){return new le(e)}},{key:"excludeNS",value:function(e){return new ue(e)}},{key:"flipLabel",value:function(e){return new fe(e)}},{key:"fontInfo",value:function(e){return new he(e)}},{key:"formFieldFilling",value:function(e){return new de(e)}},{key:"groupParent",value:function(e){return new pe(e)}},{key:"ifEmpty",value:function(e){return new ge(e)}},{key:"includeXDPContent",value:function(e){return new me(e)}},{key:"incrementalLoad",value:function(e){return new ve(e)}},{key:"incrementalMerge",value:function(e){return new ye(e)}},{key:"interactive",value:function(e){return new be(e)}},{key:"jog",value:function(e){return new we(e)}},{key:"labelPrinter",value:function(e){return new ke(e)}},{key:"layout",value:function(e){return new Se(e)}},{key:"level",value:function(e){return new xe(e)}},{key:"linearized",value:function(e){return new Ae(e)}},{key:"locale",value:function(e){return new Oe(e)}},{key:"localeSet",value:function(e){return new Ce(e)}},{key:"log",value:function(e){return new Fe(e)}},{key:"map",value:function(e){return new Te(e)}},{key:"mediumInfo",value:function(e){return new Ie(e)}},{key:"message",value:function(e){return new Pe(e)}},{key:"messaging",value:function(e){return new _e(e)}},{key:"mode",value:function(e){return new Ee(e)}},{key:"modifyAnnots",value:function(e){return new je(e)}},{key:"msgId",value:function(e){return new Me(e)}},{key:"nameAttr",value:function(e){return new Re(e)}},{key:"neverEmbed",value:function(e){return new Be(e)}},{key:"numberOfCopies",value:function(e){return new De(e)}},{key:"openAction",value:function(e){return new Ne(e)}},{key:"output",value:function(e){return new Le(e)}},{key:"outputBin",value:function(e){return new Ue(e)}},{key:"outputXSL",value:function(e){return new $e(e)}},{key:"overprint",value:function(e){return new qe(e)}},{key:"packets",value:function(e){return new Xe(e)}},{key:"pageOffset",value:function(e){return new He(e)}},{key:"pageRange",value:function(e){return new ze(e)}},{key:"pagination",value:function(e){return new We(e)}},{key:"paginationOverride",value:function(e){return new Ge(e)}},{key:"part",value:function(e){return new Ve(e)}},{key:"pcl",value:function(e){return new Ye(e)}},{key:"pdf",value:function(e){return new Ke(e)}},{key:"pdfa",value:function(e){return new Je(e)}},{key:"permissions",value:function(e){return new Ze(e)}},{key:"pickTrayByPDFSize",value:function(e){return new Qe(e)}},{key:"picture",value:function(e){return new et(e)}},{key:"plaintextMetadata",value:function(e){return new tt(e)}},{key:"presence",value:function(e){return new rt(e)}},{key:"present",value:function(e){return new nt(e)}},{key:"print",value:function(e){return new at(e)}},{key:"printHighQuality",value:function(e){return new it(e)}},{key:"printScaling",value:function(e){return new ot(e)}},{key:"printerName",value:function(e){return new st(e)}},{key:"producer",value:function(e){return new ct(e)}},{key:"ps",value:function(e){return new lt(e)}},{key:"range",value:function(e){return new ut(e)}},{key:"record",value:function(e){return new ft(e)}},{key:"relevant",value:function(e){return new ht(e)}},{key:"rename",value:function(e){return new dt(e)}},{key:"renderPolicy",value:function(e){return new pt(e)}},{key:"runScripts",value:function(e){return new gt(e)}},{key:"script",value:function(e){return new mt(e)}},{key:"scriptModel",value:function(e){return new vt(e)}},{key:"severity",value:function(e){return new yt(e)}},{key:"silentPrint",value:function(e){return new bt(e)}},{key:"staple",value:function(e){return new wt(e)}},{key:"startNode",value:function(e){return new kt(e)}},{key:"startPage",value:function(e){return new St(e)}},{key:"submitFormat",value:function(e){return new xt(e)}},{key:"submitUrl",value:function(e){return new At(e)}},{key:"subsetBelow",value:function(e){return new Ot(e)}},{key:"suppressBanner",value:function(e){return new Ct(e)}},{key:"tagged",value:function(e){return new Ft(e)}},{key:"template",value:function(e){return new Tt(e)}},{key:"templateCache",value:function(e){return new _t(e)}},{key:"threshold",value:function(e){return new It(e)}},{key:"to",value:function(e){return new Pt(e)}},{key:"trace",value:function(e){return new Et(e)}},{key:"transform",value:function(e){return new jt(e)}},{key:"type",value:function(e){return new Mt(e)}},{key:"uri",value:function(e){return new Rt(e)}},{key:"validate",value:function(e){return new Bt(e)}},{key:"validateApprovalSignatures",value:function(e){return new Dt(e)}},{key:"validationMessaging",value:function(e){return new Nt(e)}},{key:"version",value:function(e){return new Lt(e)}},{key:"versionControl",value:function(e){return new Ut(e)}},{key:"viewerPreferences",value:function(e){return new $t(e)}},{key:"webClient",value:function(e){return new qt(e)}},{key:"whitespace",value:function(e){return new Xt(e)}},{key:"window",value:function(e){return new Ht(e)}},{key:"xdc",value:function(e){return new zt(e)}},{key:"xdp",value:function(e){return new Wt(e)}},{key:"xsl",value:function(e){return new Gt(e)}},{key:"zpl",value:function(e){return new Vt(e)}}]),e}();t.ConfigNamespace=Yt},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionSetNamespace=void 0;var a=r(190),i=r(188);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=h(e);if(t){var a=h(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=a.NamespaceIds.connectionSet.id,p=function(e){c(r,e);var t=u(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"connectionSet",!0)).wsdlConnection=new i.XFAObjectArray,n.xmlConnection=new i.XFAObjectArray,n.xsdConnection=new i.XFAObjectArray,n}return r}(i.XFAObject),g=function(e){c(r,e);var t=u(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"effectiveInputPolicy")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(i.XFAObject),m=function(e){c(r,e);var t=u(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"effectiveOutputPolicy")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(i.XFAObject),v=function(e){c(r,e);var t=u(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"operation")).id=e.id||"",n.input=e.input||"",n.name=e.name||"",n.output=e.output||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(i.StringObject),y=function(e){c(r,e);var t=u(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"rootElement")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(i.StringObject),b=function(e){c(r,e);var t=u(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"soapAction")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(i.StringObject),w=function(e){c(r,e);var t=u(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"soapAddress")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(i.StringObject),k=function(e){c(r,e);var t=u(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"uri")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(i.StringObject),S=function(e){c(r,e);var t=u(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"wsdlAddress")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(i.StringObject),x=function(e){c(r,e);var t=u(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"wsdlConnection",!0)).dataDescription=e.dataDescription||"",n.name=e.name||"",n.effectiveInputPolicy=null,n.effectiveOutputPolicy=null,n.operation=null,n.soapAction=null,n.soapAddress=null,n.wsdlAddress=null,n}return r}(i.XFAObject),A=function(e){c(r,e);var t=u(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"xmlConnection",!0)).dataDescription=e.dataDescription||"",n.name=e.name||"",n.uri=null,n}return r}(i.XFAObject),O=function(e){c(r,e);var t=u(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"xsdConnection",!0)).dataDescription=e.dataDescription||"",n.name=e.name||"",n.rootElement=null,n.uri=null,n}return r}(i.XFAObject),C=function(){function e(){s(this,e)}var t,r;return t=e,null,(r=[{key:a.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"connectionSet",value:function(e){return new p(e)}},{key:"effectiveInputPolicy",value:function(e){return new g(e)}},{key:"effectiveOutputPolicy",value:function(e){return new m(e)}},{key:"operation",value:function(e){return new v(e)}},{key:"rootElement",value:function(e){return new y(e)}},{key:"soapAction",value:function(e){return new b(e)}},{key:"soapAddress",value:function(e){return new w(e)}},{key:"uri",value:function(e){return new k(e)}},{key:"wsdlAddress",value:function(e){return new S(e)}},{key:"wsdlConnection",value:function(e){return new x(e)}},{key:"xmlConnection",value:function(e){return new A(e)}},{key:"xsdConnection",value:function(e){return new O(e)}}])&&o(t,r),e}();t.ConnectionSetNamespace=C},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetsNamespace=void 0;var a=r(188),i=r(190);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=d(e);if(t){var a=d(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=i.NamespaceIds.datasets.id,g=function(e){l(r,e);var t=f(r);function r(e){return o(this,r),t.call(this,p,"data",e)}return c(r,[{key:a.$isNsAgnostic,value:function(){return!0}}]),r}(a.XmlObject),m=function(e){l(r,e);var t=f(r);function r(e){var n;return o(this,r),(n=t.call(this,p,"datasets",!0)).data=null,n.Signature=null,n}return c(r,[{key:a.$onChild,value:function(e){var t=e[a.$nodeName];("data"===t&&e[a.$namespaceId]===p||"Signature"===t&&e[a.$namespaceId]===i.NamespaceIds.signature.id)&&(this[t]=e),this[a.$appendChild](e)}}]),r}(a.XFAObject),v=function(){function e(){o(this,e)}return c(e,null,[{key:i.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"datasets",value:function(e){return new m(e)}},{key:"data",value:function(e){return new g(e)}}]),e}();t.DatasetsNamespace=v},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.LocaleSetNamespace=void 0;var a=r(190),i=r(188),o=r(189);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=d(e);if(t){var a=d(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=a.NamespaceIds.localeSet.id,g=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"calendarSymbols",!0)).name="gregorian",n.dayNames=new i.XFAObjectArray(2),n.eraNames=null,n.meridiemNames=null,n.monthNames=new i.XFAObjectArray(2),n}return r}(i.XFAObject),m=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"currencySymbol")).name=(0,o.getStringOption)(e.name,["symbol","isoname","decimal"]),n}return r}(i.StringObject),v=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"currencySymbols",!0)).currencySymbol=new i.XFAObjectArray(3),n}return r}(i.XFAObject),y=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"datePattern")).name=(0,o.getStringOption)(e.name,["full","long","med","short"]),n}return r}(i.StringObject),b=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"datePatterns",!0)).datePattern=new i.XFAObjectArray(4),n}return r}(i.XFAObject),w=function(e){l(r,e);var t=f(r);function r(e){return c(this,r),t.call(this,p,"dateTimeSymbols")}return r}(i.ContentObject),k=function(e){l(r,e);var t=f(r);function r(e){return c(this,r),t.call(this,p,"day")}return r}(i.StringObject),S=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"dayNames",!0)).abbr=(0,o.getInteger)({data:e.abbr,defaultValue:0,validate:function(e){return 1===e}}),n.day=new i.XFAObjectArray(7),n}return r}(i.XFAObject),x=function(e){l(r,e);var t=f(r);function r(e){return c(this,r),t.call(this,p,"era")}return r}(i.StringObject),A=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"eraNames",!0)).era=new i.XFAObjectArray(2),n}return r}(i.XFAObject),O=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"locale",!0)).desc=e.desc||"",n.name="isoname",n.calendarSymbols=null,n.currencySymbols=null,n.datePatterns=null,n.dateTimeSymbols=null,n.numberPatterns=null,n.numberSymbols=null,n.timePatterns=null,n.typeFaces=null,n}return r}(i.XFAObject),C=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"localeSet",!0)).locale=new i.XFAObjectArray,n}return r}(i.XFAObject),F=function(e){l(r,e);var t=f(r);function r(e){return c(this,r),t.call(this,p,"meridiem")}return r}(i.StringObject),T=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"meridiemNames",!0)).meridiem=new i.XFAObjectArray(2),n}return r}(i.XFAObject),I=function(e){l(r,e);var t=f(r);function r(e){return c(this,r),t.call(this,p,"month")}return r}(i.StringObject),P=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"monthNames",!0)).abbr=(0,o.getInteger)({data:e.abbr,defaultValue:0,validate:function(e){return 1===e}}),n.month=new i.XFAObjectArray(12),n}return r}(i.XFAObject),_=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"numberPattern")).name=(0,o.getStringOption)(e.name,["full","long","med","short"]),n}return r}(i.StringObject),E=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"numberPatterns",!0)).numberPattern=new i.XFAObjectArray(4),n}return r}(i.XFAObject),j=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"numberSymbol")).name=(0,o.getStringOption)(e.name,["decimal","grouping","percent","minus","zero"]),n}return r}(i.StringObject),M=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"numberSymbols",!0)).numberSymbol=new i.XFAObjectArray(5),n}return r}(i.XFAObject),R=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"timePattern")).name=(0,o.getStringOption)(e.name,["full","long","med","short"]),n}return r}(i.StringObject),B=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"timePatterns",!0)).timePattern=new i.XFAObjectArray(4),n}return r}(i.XFAObject),D=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"typeFace",!0)).name=""|e.name,n}return r}(i.XFAObject),N=function(e){l(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"typeFaces",!0)).typeFace=new i.XFAObjectArray,n}return r}(i.XFAObject),L=function(){function e(){c(this,e)}var t,r;return t=e,null,(r=[{key:a.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"calendarSymbols",value:function(e){return new g(e)}},{key:"currencySymbol",value:function(e){return new m(e)}},{key:"currencySymbols",value:function(e){return new v(e)}},{key:"datePattern",value:function(e){return new y(e)}},{key:"datePatterns",value:function(e){return new b(e)}},{key:"dateTimeSymbols",value:function(e){return new w(e)}},{key:"day",value:function(e){return new k(e)}},{key:"dayNames",value:function(e){return new S(e)}},{key:"era",value:function(e){return new x(e)}},{key:"eraNames",value:function(e){return new A(e)}},{key:"locale",value:function(e){return new O(e)}},{key:"localeSet",value:function(e){return new C(e)}},{key:"meridiem",value:function(e){return new F(e)}},{key:"meridiemNames",value:function(e){return new T(e)}},{key:"month",value:function(e){return new I(e)}},{key:"monthNames",value:function(e){return new P(e)}},{key:"numberPattern",value:function(e){return new _(e)}},{key:"numberPatterns",value:function(e){return new E(e)}},{key:"numberSymbol",value:function(e){return new j(e)}},{key:"numberSymbols",value:function(e){return new M(e)}},{key:"timePattern",value:function(e){return new R(e)}},{key:"timePatterns",value:function(e){return new B(e)}},{key:"typeFace",value:function(e){return new D(e)}},{key:"typeFaces",value:function(e){return new N(e)}}])&&s(t,r),e}();t.LocaleSetNamespace=L},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureNamespace=void 0;var a=r(190),i=r(188);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function l(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var f=a.NamespaceIds.signature.id,h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(a,e);var t,r,n=(t=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,n=u(t);if(r){var a=u(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return l(this,e)});function a(e){return s(this,a),n.call(this,f,"signature",!0)}return a}(i.XFAObject),d=function(){function e(){s(this,e)}var t,r;return t=e,null,(r=[{key:a.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"signature",value:function(e){return new h(e)}}])&&o(t,r),e}();t.SignatureNamespace=d},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.StylesheetNamespace=void 0;var a=r(190),i=r(188);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function l(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var f=a.NamespaceIds.stylesheet.id,h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(a,e);var t,r,n=(t=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,n=u(t);if(r){var a=u(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return l(this,e)});function a(e){return s(this,a),n.call(this,f,"stylesheet",!0)}return a}(i.XFAObject),d=function(){function e(){s(this,e)}var t,r;return t=e,null,(r=[{key:a.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"stylesheet",value:function(e){return new h(e)}}])&&o(t,r),e}();t.StylesheetNamespace=d},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.XdpNamespace=void 0;var a=r(190),i=r(188);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var h=a.NamespaceIds.xdp.id,d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,n=f(t);if(r){var a=f(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return u(this,e)});function s(e){var t;return o(this,s),(t=n.call(this,h,"xdp",!0)).uuid=e.uuid||"",t.timeStamp=e.timeStamp||"",t.config=null,t.connectionSet=null,t.datasets=null,t.localeSet=null,t.stylesheet=new i.XFAObjectArray,t.template=null,t}return c(s,[{key:i.$onChildCheck,value:function(e){var t=a.NamespaceIds[e[i.$nodeName]];return t&&e[i.$namespaceId]===t.id}}]),s}(i.XFAObject),p=function(){function e(){o(this,e)}return c(e,null,[{key:a.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"xdp",value:function(e){return new d(e)}}]),e}();t.XdpNamespace=p},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.XhtmlNamespace=void 0;var a=r(188),i=r(190),o=r(195),s=r(189);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e}function f(e,t,r){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(r):a.value}},f(e,t,r||e)}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var r,n=m(e);if(t){var a=m(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=b(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function b(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var k=i.NamespaceIds.xhtml.id,S=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-align","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-spacerun","xfa-tab-stops"]),x=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",function(e){return"none"===e?"none":"normal"}],["xfa-font-horizontal-scale",function(e){return"scaleX(".concat(Math.max(0,Math.min(parseInt(e)/100)).toFixed(2),")")}],["xfa-font-vertical-scale",function(e){return"scaleY(".concat(Math.max(0,Math.min(parseInt(e)/100)).toFixed(2),")")}],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",function(e,t){return e=t.fontSize=(0,s.getMeasurement)(e),(0,o.measureToString)(.99*e)}],["letter-spacing",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["line-height",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["margin",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["margin-bottom",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["margin-left",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["margin-right",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["margin-top",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["text-indent",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["font-family",function(e){return e}]]),A=/\s+/g,O=/[\r\n]+/g;function C(e,t){var r=Object.create(null);if(!e)return r;var n,i=Object.create(null),s=y(e.split(";").map((function(e){return e.split(":",2)})));try{for(s.s();!(n=s.n()).done;){var c=v(n.value,2),l=c[0],u=c[1],f=x.get(l);if(""!==f){var h=u;f&&(h="string"==typeof f?f:f(u,i)),l.endsWith("scale")?r.transform?r.transform="".concat(r[l]," ").concat(h):r.transform=h:r[l.replaceAll(/-([a-zA-Z])/g,(function(e,t){return t.toUpperCase()}))]=h}}}catch(e){s.e(e)}finally{s.f()}return r.fontFamily&&(0,o.setFontFamily)({typeface:r.fontFamily,weight:r.fontWeight||"normal",posture:r.fontStyle||"normal",size:i.fontSize||0},t,t[a.$globalData].fontFinder,r),(0,o.fixTextIndent)(r),r}var F=new Set(["body","html"]),T=function(e){h(r,e);var t=p(r);function r(e,n){var a;return c(this,r),(a=t.call(this,k,n)).style=e.style||"",a}return u(r,[{key:a.$clean,value:function(e){var t;f(m(r.prototype),a.$clean,this).call(this,e),this.style=(t=this).style?t.style.trim().split(/\s*;\s*/).filter((function(e){return!!e})).map((function(e){return e.split(/\s*:\s*/,2)})).filter((function(e){var r=v(e,2),n=r[0],i=r[1];return"font-family"===n&&t[a.$globalData].usedTypefaces.add(i),S.has(n)})).map((function(e){return e.join(":")})).join(";"):""}},{key:a.$acceptWhitespace,value:function(){return!F.has(this[a.$nodeName])}},{key:a.$onText,value:function(e){e=e.replace(O,""),this.style.includes("xfa-spacerun:yes")||(e=e.replace(A," ")),e&&(this[a.$content]+=e)}},{key:a.$pushGlyphs,value:function(e){var t,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Object.create(null),i={top:NaN,bottom:NaN,left:NaN,right:NaN},o=null,c=y(this.style.split(";").map((function(e){return e.split(":",2)})));try{for(c.s();!(t=c.n()).done;){var l=v(t.value,2),u=l[0],f=l[1];switch(u){case"font-family":n.typeface=(0,s.stripQuotes)(f);break;case"font-size":n.size=(0,s.getMeasurement)(f);break;case"font-weight":n.weight=f;break;case"font-style":n.posture=f;break;case"letter-spacing":n.letterSpacing=(0,s.getMeasurement)(f);break;case"margin":var h=f.split(/ \t/).map((function(e){return(0,s.getMeasurement)(e)}));switch(h.length){case 1:i.top=i.bottom=i.left=i.right=h[0];break;case 2:i.top=i.bottom=h[0],i.left=i.right=h[1];break;case 3:i.top=h[0],i.bottom=h[2],i.left=i.right=h[1];break;case 4:i.top=h[0],i.left=h[1],i.bottom=h[2],i.right=h[3]}break;case"margin-top":i.top=(0,s.getMeasurement)(f);break;case"margin-bottom":i.bottom=(0,s.getMeasurement)(f);break;case"margin-left":i.left=(0,s.getMeasurement)(f);break;case"margin-right":i.right=(0,s.getMeasurement)(f);break;case"line-height":o=(0,s.getMeasurement)(f)}}}catch(e){c.e(e)}finally{c.f()}if(e.pushData(n,i,o),this[a.$content])e.addString(this[a.$content]);else{var d,p=y(this[a.$getChildren]());try{for(p.s();!(d=p.n()).done;){var g=d.value;"#text"!==g[a.$nodeName]?g[a.$pushGlyphs](e):e.addString(g[a.$content])}}catch(e){p.e(e)}finally{p.f()}}r&&e.popFont()}},{key:a.$toHTML,value:function(e){var t=[];return this[a.$extra]={children:t},this[a.$childrenToHTML]({}),0!==t.length||this[a.$content]?s.HTMLResult.success({name:this[a.$nodeName],attributes:{href:this.href,style:C(this.style,this)},children:t,value:this[a.$content]||""}):s.HTMLResult.EMPTY}}]),r}(a.XmlObject),I=function(e){h(r,e);var t=p(r);function r(e){var n;return c(this,r),(n=t.call(this,e,"a")).href=(0,o.fixURL)(e.href)||"",n}return r}(T),P=function(e){h(r,e);var t=p(r);function r(e){return c(this,r),t.call(this,e,"b")}return u(r,[{key:a.$pushGlyphs,value:function(e){e.pushFont({weight:"bold"}),f(m(r.prototype),a.$pushGlyphs,this).call(this,e),e.popFont()}}]),r}(T),_=function(e){h(r,e);var t=p(r);function r(e){return c(this,r),t.call(this,e,"body")}return u(r,[{key:a.$toHTML,value:function(e){var t=f(m(r.prototype),a.$toHTML,this).call(this,e),n=t.html;return n?(n.name="div",n.attributes.class=["xfaRich"],t):s.HTMLResult.EMPTY}}]),r}(T),E=function(e){h(r,e);var t=p(r);function r(e){return c(this,r),t.call(this,e,"br")}return u(r,[{key:a.$text,value:function(){return"\n"}},{key:a.$pushGlyphs,value:function(e){e.addString("\n")}},{key:a.$toHTML,value:function(e){return s.HTMLResult.success({name:"br"})}}]),r}(T),j=function(e){h(r,e);var t=p(r);function r(e){return c(this,r),t.call(this,e,"html")}return u(r,[{key:a.$toHTML,value:function(e){var t=[];if(this[a.$extra]={children:t},this[a.$childrenToHTML]({}),0===t.length)return s.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[a.$content]||""});if(1===t.length){var r=t[0];if(r.attributes&&r.attributes.class.includes("xfaRich"))return s.HTMLResult.success(r)}return s.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:t})}}]),r}(T),M=function(e){h(r,e);var t=p(r);function r(e){return c(this,r),t.call(this,e,"i")}return u(r,[{key:a.$pushGlyphs,value:function(e){e.pushFont({posture:"italic"}),f(m(r.prototype),a.$pushGlyphs,this).call(this,e),e.popFont()}}]),r}(T),R=function(e){h(r,e);var t=p(r);function r(e){return c(this,r),t.call(this,e,"li")}return r}(T),B=function(e){h(r,e);var t=p(r);function r(e){return c(this,r),t.call(this,e,"ol")}return r}(T),D=function(e){h(r,e);var t=p(r);function r(e){return c(this,r),t.call(this,e,"p")}return u(r,[{key:a.$pushGlyphs,value:function(e){f(m(r.prototype),a.$pushGlyphs,this).call(this,e,!1),e.addString("\n"),e.addPara(),e.popFont()}},{key:a.$text,value:function(){return f(m(r.prototype),a.$text,this).call(this)+"\n"}}]),r}(T),N=function(e){h(r,e);var t=p(r);function r(e){return c(this,r),t.call(this,e,"span")}return r}(T),L=function(e){h(r,e);var t=p(r);function r(e){return c(this,r),t.call(this,e,"sub")}return r}(T),U=function(e){h(r,e);var t=p(r);function r(e){return c(this,r),t.call(this,e,"sup")}return r}(T),$=function(e){h(r,e);var t=p(r);function r(e){return c(this,r),t.call(this,e,"ul")}return r}(T),q=function(){function e(){c(this,e)}return u(e,null,[{key:i.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"a",value:function(e){return new I(e)}},{key:"b",value:function(e){return new P(e)}},{key:"body",value:function(e){return new _(e)}},{key:"br",value:function(e){return new E(e)}},{key:"html",value:function(e){return new j(e)}},{key:"i",value:function(e){return new M(e)}},{key:"li",value:function(e){return new R(e)}},{key:"ol",value:function(e){return new B(e)}},{key:"p",value:function(e){return new D(e)}},{key:"span",value:function(e){return new N(e)}},{key:"sub",value:function(e){return new L(e)}},{key:"sup",value:function(e){return new U(e)}},{key:"ul",value:function(e){return new $(e)}}]),e}();t.XhtmlNamespace=q},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNamespace=void 0;var n=r(190),a=r(188);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.namespaceId=t}var t,r;return t=e,(r=[{key:n.$buildXFAObject,value:function(e,t){return new a.XmlObject(this.namespaceId,e,t)}}])&&i(t.prototype,r),e}();t.UnknownNamespace=o},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XRef=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(4),o=r(118),s=r(140),c=r(122),l=r(185);function u(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){u(i,n,a,o,s,"next",e)}function s(e){u(i,n,a,o,s,"throw",e)}o(void 0)}))}}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var d=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stream=t,this.pdfManager=r,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this.stats={streamTypes:Object.create(null),fontTypes:Object.create(null)},this._newRefNum=null}var t,r,n,u;return t=e,r=[{key:"getNewRef",value:function(){return null===this._newRefNum&&(this._newRefNum=this.entries.length),o.Ref.get(this._newRefNum++,0)}},{key:"resetNewRef",value:function(){this._newRefNum=null}},{key:"setStartXRef",value:function(e){this.startXRefQueue=[e]}},{key:"parse",value:function(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n?((0,i.warn)("Indexing all PDF objects"),e=this.indexObjects()):e=this.readXRef(),e.assignXref(this),this.trailer=e;try{t=e.get("Encrypt")}catch(e){if(e instanceof c.MissingDataException)throw e;(0,i.warn)('XRef.parse - Invalid "Encrypt" reference: "'.concat(e,'".'))}if((0,o.isDict)(t)){var a=e.get("ID"),s=a&&a.length?a[0]:"";t.suppressEncryption=!0,this.encrypt=new l.CipherTransformFactory(t,s,this.pdfManager.password)}try{r=e.get("Root")}catch(e){if(e instanceof c.MissingDataException)throw e;(0,i.warn)('XRef.parse - Invalid "Root" reference: "'.concat(e,'".'))}if(!(0,o.isDict)(r)||!r.has("Pages")){if(!n)throw new c.XRefParseException;throw new i.FormatError("Invalid root reference")}this.root=r}},{key:"processXRefTable",value:function(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});var t=this.readXRefTable(e);if(!(0,o.isCmd)(t,"trailer"))throw new i.FormatError("Invalid XRef table: could not find trailer dictionary");var r=e.getObj();if(!(0,o.isDict)(r)&&r.dict&&(r=r.dict),!(0,o.isDict)(r))throw new i.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,r}},{key:"readXRefTable",value:function(e){var t,r=e.lexer.stream,n=this.tableState;for(r.pos=n.streamPos,e.buf1=n.parserBuf1,e.buf2=n.parserBuf2;;){if(!("firstEntryNum"in n)||!("entryCount"in n)){if((0,o.isCmd)(t=e.getObj(),"trailer"))break;n.firstEntryNum=t,n.entryCount=e.getObj()}var a=n.firstEntryNum,s=n.entryCount;if(!Number.isInteger(a)||!Number.isInteger(s))throw new i.FormatError("Invalid XRef table: wrong types in subsection header");for(var c=n.entryNum;c<s;c++){n.streamPos=r.pos,n.entryNum=c,n.parserBuf1=e.buf1,n.parserBuf2=e.buf2;var l={};l.offset=e.getObj(),l.gen=e.getObj();var u=e.getObj();if(u instanceof o.Cmd)switch(u.cmd){case"f":l.free=!0;break;case"n":l.uncompressed=!0}if(!Number.isInteger(l.offset)||!Number.isInteger(l.gen)||!l.free&&!l.uncompressed)throw new i.FormatError("Invalid entry in XRef subsection: ".concat(a,", ").concat(s));0===c&&l.free&&1===a&&(a=0),this.entries[c+a]||(this.entries[c+a]=l)}n.entryNum=0,n.streamPos=r.pos,n.parserBuf1=e.buf1,n.parserBuf2=e.buf2,delete n.firstEntryNum,delete n.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new i.FormatError("Invalid XRef table: unexpected first object");return t}},{key:"processXRefStream",value:function(e){if(!("streamState"in this)){var t=e.dict,r=t.get("W"),n=t.get("Index");n||(n=[0,t.get("Size")]),this.streamState={entryRanges:n,byteWidths:r,entryNum:0,streamPos:e.pos}}return this.readXRefStream(e),delete this.streamState,e.dict}},{key:"readXRefStream",value:function(e){var t,r,n=this.streamState;e.pos=n.streamPos;for(var a=n.byteWidths,o=a[0],s=a[1],c=a[2],l=n.entryRanges;l.length>0;){var u=l[0],f=l[1];if(!Number.isInteger(u)||!Number.isInteger(f))throw new i.FormatError("Invalid XRef range fields: ".concat(u,", ").concat(f));if(!Number.isInteger(o)||!Number.isInteger(s)||!Number.isInteger(c))throw new i.FormatError("Invalid XRef entry fields length: ".concat(u,", ").concat(f));for(t=n.entryNum;t<f;++t){n.entryNum=t,n.streamPos=e.pos;var h=0,d=0,p=0;for(r=0;r<o;++r)h=h<<8|e.getByte();for(0===o&&(h=1),r=0;r<s;++r)d=d<<8|e.getByte();for(r=0;r<c;++r)p=p<<8|e.getByte();var g={};switch(g.offset=d,g.gen=p,h){case 0:g.free=!0;break;case 1:g.uncompressed=!0;break;case 2:break;default:throw new i.FormatError("Invalid XRef entry type: ".concat(h))}this.entries[u+t]||(this.entries[u+t]=g)}n.entryNum=0,n.streamPos=e.pos,l.splice(0,2)}}},{key:"indexObjects",value:function(){function e(e,t){for(var r="",n=e[t];10!==n&&13!==n&&60!==n&&!(++t>=e.length);)r+=String.fromCharCode(n),n=e[t];return r}function t(e,t,r){for(var n=r.length,a=e.length,i=0;t<a;){for(var o=0;o<n&&e[t+o]===r[o];)++o;if(o>=n)break;t++,i++}return i}var r=/^(\d+)\s+(\d+)\s+obj\b/,n=/\bendobj[\b\s]$/,a=/\s+(\d+\s+\d+\s+obj[\b\s<])$/,l=new Uint8Array([116,114,97,105,108,101,114]),u=new Uint8Array([115,116,97,114,116,120,114,101,102]),f=new Uint8Array([111,98,106]),h=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var d=this.stream;d.pos=0;for(var p,g=d.getBytes(),m=g.length,v=d.start,y=[],b=[];v<m;){var w=g[v];if(9!==w&&10!==w&&13!==w&&32!==w)if(37!==w){var k=e(g,v),S=void 0;if(k.startsWith("xref")&&(4===k.length||/\s/.test(k[4])))v+=t(g,v,l),y.push(v),v+=t(g,v,u);else if(S=r.exec(k)){var x=0|S[1],A=0|S[2],O=void 0,C=v+k.length,F=!1;if(this.entries[x]){if(this.entries[x].gen===A)try{new s.Parser({lexer:new s.Lexer(d.makeSubStream(C))}).getObj(),F=!0}catch(e){e instanceof c.ParserEOFException?(0,i.warn)("indexObjects -- checking object (".concat(k,'): "').concat(e,'".')):F=!0}}else F=!0;for(F&&(this.entries[x]={offset:v-d.start,gen:A,uncompressed:!0});C<g.length;){var T=C+t(g,C,f)+4;O=T-v;var I=Math.max(T-25,C),P=(0,i.bytesToString)(g.subarray(I,T));if(n.test(P))break;var _=a.exec(P);if(_&&_[1]){(0,i.warn)('indexObjects: Found new "obj" inside of another "obj", caused by missing "endobj" -- trying to recover.'),O-=_[1].length;break}C=T}var E=g.subarray(v,v+O),j=t(E,0,h);j<O&&E[j+5]<64&&(b.push(v-d.start),this.xrefstms[v-d.start]=1),v+=O}else k.startsWith("trailer")&&(7===k.length||/\s/.test(k[7]))?(y.push(v),v+=t(g,v,u)):v+=k.length+1}else do{if(++v>=m)break;w=g[v]}while(10!==w&&13!==w);else++v}for(var M=0,R=b.length;M<R;++M)this.startXRefQueue.push(b[M]),this.readXRef(!0);for(var B=0,D=y.length;B<D;++B){d.pos=y[B];var N=new s.Parser({lexer:new s.Lexer(d),xref:this,allowStreams:!0,recoveryMode:!0}),L=N.getObj();if((0,o.isCmd)(L,"trailer")){var U=N.getObj();if((0,o.isDict)(U)){try{var $=U.get("Root");if(!($ instanceof o.Dict))continue;var q=$.get("Pages");if(!(q instanceof o.Dict))continue;var X=q.get("Count");if(!Number.isInteger(X))continue}catch(e){continue}if(U.has("ID"))return U;p=U}}}if(p)return p;throw new i.InvalidPDFException("Invalid PDF structure.")}},{key:"readXRef",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.stream,r=new Set;try{for(;this.startXRefQueue.length;){var n=this.startXRefQueue[0];if(r.has(n))(0,i.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();else{r.add(n),t.pos=n+t.start;var a=new s.Parser({lexer:new s.Lexer(t),xref:this,allowStreams:!0}),l=a.getObj(),u=void 0;if((0,o.isCmd)(l,"xref")){if(u=this.processXRefTable(a),this.topDict||(this.topDict=u),l=u.get("XRefStm"),Number.isInteger(l)){var f=l;f in this.xrefstms||(this.xrefstms[f]=1,this.startXRefQueue.push(f))}}else{if(!Number.isInteger(l))throw new i.FormatError("Invalid XRef stream header");if(!Number.isInteger(a.getObj())||!(0,o.isCmd)(a.getObj(),"obj")||!(0,o.isStream)(l=a.getObj()))throw new i.FormatError("Invalid XRef stream");if(u=this.processXRefStream(l),this.topDict||(this.topDict=u),!u)throw new i.FormatError("Failed to read XRef stream")}l=u.get("Prev"),Number.isInteger(l)?this.startXRefQueue.push(l):(0,o.isRef)(l)&&this.startXRefQueue.push(l.num),this.startXRefQueue.shift()}}return this.topDict}catch(e){if(e instanceof c.MissingDataException)throw e;(0,i.info)("(while reading XRef): "+e)}if(!e)throw new c.XRefParseException}},{key:"getEntry",value:function(e){var t=this.entries[e];return t&&!t.free&&t.offset?t:null}},{key:"fetchIfRef",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e instanceof o.Ref?this.fetch(e,t):e}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof o.Ref))throw new Error("ref object is not a reference");var r=e.num,n=this._cacheMap.get(r);if(void 0!==n)return n instanceof o.Dict&&!n.objId&&(n.objId=e.toString()),n;var a=this.getEntry(r);return null===a?(this._cacheMap.set(r,a),a):(a=a.uncompressed?this.fetchUncompressed(e,a,t):this.fetchCompressed(e,a,t),(0,o.isDict)(a)?a.objId=e.toString():(0,o.isStream)(a)&&(a.dict.objId=e.toString()),a)}},{key:"fetchUncompressed",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.gen,a=e.num;if(t.gen!==n)throw new c.XRefEntryException("Inconsistent generation in XRef: ".concat(e));var i=this.stream.makeSubStream(t.offset+this.stream.start),l=new s.Parser({lexer:new s.Lexer(i),xref:this,allowStreams:!0}),u=l.getObj(),f=l.getObj(),h=l.getObj();if(u!==a||f!==n||!(h instanceof o.Cmd))throw new c.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e));if("obj"!==h.cmd){if(h.cmd.startsWith("obj")&&(a=parseInt(h.cmd.substring(3),10),!Number.isNaN(a)))return a;throw new c.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e))}return t=this.encrypt&&!r?l.getObj(this.encrypt.createCipherTransform(a,n)):l.getObj(),(0,o.isStream)(t)||this._cacheMap.set(a,t),t}},{key:"fetchCompressed",value:function(e,t){var r=t.offset,n=this.fetch(o.Ref.get(r,0));if(!(0,o.isStream)(n))throw new i.FormatError("bad ObjStm stream");var a=n.dict.get("First"),l=n.dict.get("N");if(!Number.isInteger(a)||!Number.isInteger(l))throw new i.FormatError("invalid first and n parameters for ObjStm stream");for(var u=new s.Parser({lexer:new s.Lexer(n),xref:this,allowStreams:!0}),f=new Array(l),h=new Array(l),d=0;d<l;++d){var p=u.getObj();if(!Number.isInteger(p))throw new i.FormatError("invalid object number in the ObjStm stream: ".concat(p));var g=u.getObj();if(!Number.isInteger(g))throw new i.FormatError("invalid object offset in the ObjStm stream: ".concat(g));f[d]=p,h[d]=g}for(var m=(n.start||0)+a,v=new Array(l),y=0;y<l;++y){var b=y<l-1?h[y+1]-h[y]:void 0;if(b<0)throw new i.FormatError("Invalid offset in the ObjStm stream.");var w=(u=new s.Parser({lexer:new s.Lexer(n.makeSubStream(m+h[y],b,n.dict)),xref:this,allowStreams:!0})).getObj();if(v[y]=w,!(0,o.isStream)(w)){var k=f[y],S=this.entries[k];S&&S.offset===r&&S.gen===y&&this._cacheMap.set(k,w)}}if(void 0===(t=v[t.gen]))throw new c.XRefEntryException("Bad (compressed) XRef entry: ".concat(e));return t}},{key:"fetchIfRefAsync",value:(u=f(a.default.mark((function e(t,r){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t instanceof o.Ref)){e.next=2;break}return e.abrupt("return",this.fetchAsync(t,r));case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"fetchAsync",value:(n=f(a.default.mark((function e(t,r){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",this.fetch(t,r));case 4:if(e.prev=4,e.t0=e.catch(0),e.t0 instanceof c.MissingDataException){e.next=8;break}throw e.t0;case 8:return e.next=10,this.pdfManager.requestRange(e.t0.begin,e.t0.end);case 10:return e.abrupt("return",this.fetchAsync(t,r));case 11:case"end":return e.stop()}}),e,this,[[0,4]])}))),function(e,t){return n.apply(this,arguments)})},{key:"getCatalogObj",value:function(){return this.root}}],r&&h(t.prototype,r),e}();t.XRef=d},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(4);function o(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e){if(!(e instanceof Error||"object"===c(e)&&null!==e))return(0,i.warn)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e;switch(e.name){case"AbortException":return new i.AbortException(e.message);case"MissingPDFException":return new i.MissingPDFException(e.message);case"PasswordException":return new i.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new i.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new i.UnknownErrorException(e.message,e.details);default:return new i.UnknownErrorException(e.message,e.toString())}}var u=function(){function e(t,r,n){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceName=t,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===a.sourceName)if(t.stream)a._processStreamMessage(t);else if(t.callback){var r=t.callbackId,i=a.callbackCapabilities[r];if(!i)throw new Error("Cannot resolve callback ".concat(r));if(delete a.callbackCapabilities[r],1===t.callback)i.resolve(t.data);else{if(2!==t.callback)throw new Error("Unexpected callback case");i.reject(l(t.reason))}}else{var o=a.actionHandler[t.action];if(!o)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var s=a.sourceName,c=t.sourceName;new Promise((function(e){e(o(t.data))})).then((function(e){n.postMessage({sourceName:s,targetName:c,callback:1,callbackId:t.callbackId,data:e})}),(function(e){n.postMessage({sourceName:s,targetName:c,callback:2,callbackId:t.callbackId,reason:l(e)})}))}else t.streamId?a._createStreamSink(t):o(t.data)}},n.addEventListener("message",this._onComObjOnMessage)}var t,r,n,c;return t=e,r=[{key:"on",value:function(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t}},{key:"send",value:function(e,t,r){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}},{key:"sendWithPromise",value:function(e,t,r){var n=this.callbackId++,a=(0,i.createPromiseCapability)();this.callbackCapabilities[n]=a;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:n,data:t},r)}catch(e){a.reject(e)}return a.promise}},{key:"sendWithStream",value:function(e,t,r,n){var a=this,o=this.streamId++,s=this.sourceName,c=this.targetName,u=this.comObj;return new ReadableStream({start:function(r){var l=(0,i.createPromiseCapability)();return a.streamControllers[o]={controller:r,startCall:l,pullCall:null,cancelCall:null,isClosed:!1},a._postMessage({sourceName:s,targetName:c,action:e,streamId:o,data:t,desiredSize:r.desiredSize},n),l.promise},pull:function(e){var t=(0,i.createPromiseCapability)();return a.streamControllers[o].pullCall=t,u.postMessage({sourceName:s,targetName:c,stream:6,streamId:o,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,i.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,i.createPromiseCapability)();return a.streamControllers[o].cancelCall=t,a.streamControllers[o].isClosed=!0,u.postMessage({sourceName:s,targetName:c,stream:1,streamId:o,reason:l(e)}),t.promise}},r)}},{key:"_createStreamSink",value:function(e){var t=e.streamId,r=this.sourceName,n=e.sourceName,a=this.comObj,o=this,s=this.actionHandler[e.action],c={enqueue:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var c=this.desiredSize;this.desiredSize-=a,c>0&&this.desiredSize<=0&&(this.sinkCapability=(0,i.createPromiseCapability)(),this.ready=this.sinkCapability.promise),o._postMessage({sourceName:r,targetName:n,stream:4,streamId:t,chunk:e},s)}},close:function(){this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:r,targetName:n,stream:3,streamId:t}),delete o.streamSinks[t])},error:function(e){(0,i.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:r,targetName:n,stream:5,streamId:t,reason:l(e)}))},sinkCapability:(0,i.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};c.sinkCapability.resolve(),c.ready=c.sinkCapability.promise,this.streamSinks[t]=c,new Promise((function(t){t(s(e.data,c))})).then((function(){a.postMessage({sourceName:r,targetName:n,stream:8,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:r,targetName:n,stream:8,streamId:t,reason:l(e)})}))}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,r=this.sourceName,n=e.sourceName,a=this.comObj,o=this.streamControllers[t],s=this.streamSinks[t];switch(e.stream){case 8:e.success?o.startCall.resolve():o.startCall.reject(l(e.reason));break;case 7:e.success?o.pullCall.resolve():o.pullCall.reject(l(e.reason));break;case 6:if(!s){a.postMessage({sourceName:r,targetName:n,stream:7,streamId:t,success:!0});break}s.desiredSize<=0&&e.desiredSize>0&&s.sinkCapability.resolve(),s.desiredSize=e.desiredSize,new Promise((function(e){e(s.onPull&&s.onPull())})).then((function(){a.postMessage({sourceName:r,targetName:n,stream:7,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:r,targetName:n,stream:7,streamId:t,reason:l(e)})}));break;case 4:if((0,i.assert)(o,"enqueue should have stream controller"),o.isClosed)break;o.controller.enqueue(e.chunk);break;case 3:if((0,i.assert)(o,"close should have stream controller"),o.isClosed)break;o.isClosed=!0,o.controller.close(),this._deleteStreamController(o,t);break;case 5:(0,i.assert)(o,"error should have stream controller"),o.controller.error(l(e.reason)),this._deleteStreamController(o,t);break;case 2:e.success?o.cancelCall.resolve():o.cancelCall.reject(l(e.reason)),this._deleteStreamController(o,t);break;case 1:if(!s)break;new Promise((function(t){t(s.onCancel&&s.onCancel(l(e.reason)))})).then((function(){a.postMessage({sourceName:r,targetName:n,stream:2,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:r,targetName:n,stream:2,streamId:t,reason:l(e)})})),s.sinkCapability.reject(l(e.reason)),s.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:(n=a.default.mark((function e(t,r){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([t.startCall&&t.startCall.promise,t.pullCall&&t.pullCall.promise,t.cancelCall&&t.cancelCall.promise]);case 2:delete this.streamControllers[r];case 3:case"end":return e.stop()}}),e,this)})),c=function(){var e=this,t=arguments;return new Promise((function(r,a){var i=n.apply(e,t);function s(e){o(i,r,a,s,c,"next",e)}function c(e){o(i,r,a,s,c,"throw",e)}s(void 0)}))},function(e,t){return c.apply(this,arguments)})},{key:"_postMessage",value:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}],r&&s(t.prototype,r),e}();t.MessageHandler=u},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFWorkerStream=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(4);function o(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function s(e){o(i,n,a,s,c,"next",e)}function c(e){o(i,n,a,s,c,"throw",e)}s(void 0)}))}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),e}var h=function(){function e(t){l(this,e),this._msgHandler=t,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}return f(e,[{key:"getFullReader",value:function(){return(0,i.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new d(this._msgHandler),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var r=new p(e,t,this._msgHandler);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}(this._rangeRequestReaders.slice(0));try{for(r.s();!(t=r.n()).done;)t.value.cancel(e)}catch(e){r.e(e)}finally{r.f()}}}]),e}();t.PDFWorkerStream=h;var d=function(){function e(t){var r=this;l(this,e),this._msgHandler=t,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;var n=this._msgHandler.sendWithStream("GetReader");this._reader=n.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((function(e){r._isStreamingSupported=e.isStreamingSupported,r._isRangeSupported=e.isRangeSupported,r._contentLength=e.contentLength}))}var t;return f(e,[{key:"headersReady",get:function(){return this._headersReady}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"read",value:(t=s(a.default.mark((function e(){var t,r;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,r=t.value,!t.done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return e.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(e){this._reader.cancel(e)}}]),e}(),p=function(){function e(t,r,n){l(this,e),this._msgHandler=n,this.onProgress=null;var a=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:r});this._reader=a.getReader()}var t;return f(e,[{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(t=s(a.default.mark((function e(){var t,r;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,r=t.value,!t.done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return e.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(e){this._reader.cancel(e)}}]),e}()}],t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";var e=n;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WorkerMessageHandler",{enumerable:!0,get:function(){return t.WorkerMessageHandler}});var t=r(1)})(),n})()}));