@nocobase/plugin-file-manager 2.1.0-beta.35 → 2.1.0-beta.37

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 (470) hide show
  1. package/dist/client/764.96d72bc6fd4adb28.js +15 -0
  2. package/dist/client/876.ca16d7a6e6387862.js +11 -0
  3. package/dist/client/index.js +1 -1
  4. package/dist/client-v2/764.d5a27ea47a2d3239.js +15 -0
  5. package/dist/client-v2/876.22cd8e41ac8631ed.js +11 -0
  6. package/dist/client-v2/942.9dc2d49980a4dd9e.js +10 -0
  7. package/dist/client-v2/index.js +1 -1
  8. package/dist/externalVersion.js +9 -9
  9. package/dist/node_modules/@aws-sdk/client-s3/package.json +1 -1
  10. package/dist/node_modules/@aws-sdk/lib-storage/package.json +1 -1
  11. package/dist/node_modules/ali-oss/package.json +1 -1
  12. package/dist/node_modules/cos-nodejs-sdk-v5/package.json +1 -1
  13. package/dist/node_modules/mime-match/package.json +1 -1
  14. package/dist/node_modules/mime-types/package.json +1 -1
  15. package/dist/node_modules/mkdirp/package.json +1 -1
  16. package/dist/node_modules/pdfjs-dist/LICENSE +177 -0
  17. package/dist/node_modules/pdfjs-dist/build/pdf.mjs +26514 -0
  18. package/dist/node_modules/pdfjs-dist/cmaps/78-EUC-H.bcmap +0 -0
  19. package/dist/node_modules/pdfjs-dist/cmaps/78-EUC-V.bcmap +0 -0
  20. package/dist/node_modules/pdfjs-dist/cmaps/78-H.bcmap +0 -0
  21. package/dist/node_modules/pdfjs-dist/cmaps/78-RKSJ-H.bcmap +0 -0
  22. package/dist/node_modules/pdfjs-dist/cmaps/78-RKSJ-V.bcmap +0 -0
  23. package/dist/node_modules/pdfjs-dist/cmaps/78-V.bcmap +0 -0
  24. package/dist/node_modules/pdfjs-dist/cmaps/78ms-RKSJ-H.bcmap +0 -0
  25. package/dist/node_modules/pdfjs-dist/cmaps/78ms-RKSJ-V.bcmap +0 -0
  26. package/dist/node_modules/pdfjs-dist/cmaps/83pv-RKSJ-H.bcmap +0 -0
  27. package/dist/node_modules/pdfjs-dist/cmaps/90ms-RKSJ-H.bcmap +0 -0
  28. package/dist/node_modules/pdfjs-dist/cmaps/90ms-RKSJ-V.bcmap +0 -0
  29. package/dist/node_modules/pdfjs-dist/cmaps/90msp-RKSJ-H.bcmap +0 -0
  30. package/dist/node_modules/pdfjs-dist/cmaps/90msp-RKSJ-V.bcmap +0 -0
  31. package/dist/node_modules/pdfjs-dist/cmaps/90pv-RKSJ-H.bcmap +0 -0
  32. package/dist/node_modules/pdfjs-dist/cmaps/90pv-RKSJ-V.bcmap +0 -0
  33. package/dist/node_modules/pdfjs-dist/cmaps/Add-H.bcmap +0 -0
  34. package/dist/node_modules/pdfjs-dist/cmaps/Add-RKSJ-H.bcmap +0 -0
  35. package/dist/node_modules/pdfjs-dist/cmaps/Add-RKSJ-V.bcmap +0 -0
  36. package/dist/node_modules/pdfjs-dist/cmaps/Add-V.bcmap +0 -0
  37. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-CNS1-0.bcmap +0 -0
  38. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-CNS1-1.bcmap +0 -0
  39. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-CNS1-2.bcmap +0 -0
  40. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-CNS1-3.bcmap +0 -0
  41. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-CNS1-4.bcmap +0 -0
  42. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-CNS1-5.bcmap +0 -0
  43. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-CNS1-6.bcmap +0 -0
  44. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  45. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-GB1-0.bcmap +0 -0
  46. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-GB1-1.bcmap +0 -0
  47. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-GB1-2.bcmap +0 -0
  48. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-GB1-3.bcmap +0 -0
  49. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-GB1-4.bcmap +0 -0
  50. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-GB1-5.bcmap +0 -0
  51. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  52. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Japan1-0.bcmap +0 -0
  53. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Japan1-1.bcmap +0 -0
  54. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Japan1-2.bcmap +0 -0
  55. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Japan1-3.bcmap +0 -0
  56. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Japan1-4.bcmap +0 -0
  57. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Japan1-5.bcmap +0 -0
  58. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Japan1-6.bcmap +0 -0
  59. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  60. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Korea1-0.bcmap +0 -0
  61. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Korea1-1.bcmap +0 -0
  62. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Korea1-2.bcmap +0 -0
  63. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  64. package/dist/node_modules/pdfjs-dist/cmaps/B5-H.bcmap +0 -0
  65. package/dist/node_modules/pdfjs-dist/cmaps/B5-V.bcmap +0 -0
  66. package/dist/node_modules/pdfjs-dist/cmaps/B5pc-H.bcmap +0 -0
  67. package/dist/node_modules/pdfjs-dist/cmaps/B5pc-V.bcmap +0 -0
  68. package/dist/node_modules/pdfjs-dist/cmaps/CNS-EUC-H.bcmap +0 -0
  69. package/dist/node_modules/pdfjs-dist/cmaps/CNS-EUC-V.bcmap +0 -0
  70. package/dist/node_modules/pdfjs-dist/cmaps/CNS1-H.bcmap +0 -0
  71. package/dist/node_modules/pdfjs-dist/cmaps/CNS1-V.bcmap +0 -0
  72. package/dist/node_modules/pdfjs-dist/cmaps/CNS2-H.bcmap +0 -0
  73. package/dist/node_modules/pdfjs-dist/cmaps/CNS2-V.bcmap +3 -0
  74. package/dist/node_modules/pdfjs-dist/cmaps/ETHK-B5-H.bcmap +0 -0
  75. package/dist/node_modules/pdfjs-dist/cmaps/ETHK-B5-V.bcmap +0 -0
  76. package/dist/node_modules/pdfjs-dist/cmaps/ETen-B5-H.bcmap +0 -0
  77. package/dist/node_modules/pdfjs-dist/cmaps/ETen-B5-V.bcmap +0 -0
  78. package/dist/node_modules/pdfjs-dist/cmaps/ETenms-B5-H.bcmap +3 -0
  79. package/dist/node_modules/pdfjs-dist/cmaps/ETenms-B5-V.bcmap +0 -0
  80. package/dist/node_modules/pdfjs-dist/cmaps/EUC-H.bcmap +0 -0
  81. package/dist/node_modules/pdfjs-dist/cmaps/EUC-V.bcmap +0 -0
  82. package/dist/node_modules/pdfjs-dist/cmaps/Ext-H.bcmap +0 -0
  83. package/dist/node_modules/pdfjs-dist/cmaps/Ext-RKSJ-H.bcmap +0 -0
  84. package/dist/node_modules/pdfjs-dist/cmaps/Ext-RKSJ-V.bcmap +0 -0
  85. package/dist/node_modules/pdfjs-dist/cmaps/Ext-V.bcmap +0 -0
  86. package/dist/node_modules/pdfjs-dist/cmaps/GB-EUC-H.bcmap +0 -0
  87. package/dist/node_modules/pdfjs-dist/cmaps/GB-EUC-V.bcmap +0 -0
  88. package/dist/node_modules/pdfjs-dist/cmaps/GB-H.bcmap +4 -0
  89. package/dist/node_modules/pdfjs-dist/cmaps/GB-V.bcmap +0 -0
  90. package/dist/node_modules/pdfjs-dist/cmaps/GBK-EUC-H.bcmap +0 -0
  91. package/dist/node_modules/pdfjs-dist/cmaps/GBK-EUC-V.bcmap +0 -0
  92. package/dist/node_modules/pdfjs-dist/cmaps/GBK2K-H.bcmap +0 -0
  93. package/dist/node_modules/pdfjs-dist/cmaps/GBK2K-V.bcmap +0 -0
  94. package/dist/node_modules/pdfjs-dist/cmaps/GBKp-EUC-H.bcmap +0 -0
  95. package/dist/node_modules/pdfjs-dist/cmaps/GBKp-EUC-V.bcmap +0 -0
  96. package/dist/node_modules/pdfjs-dist/cmaps/GBT-EUC-H.bcmap +0 -0
  97. package/dist/node_modules/pdfjs-dist/cmaps/GBT-EUC-V.bcmap +0 -0
  98. package/dist/node_modules/pdfjs-dist/cmaps/GBT-H.bcmap +0 -0
  99. package/dist/node_modules/pdfjs-dist/cmaps/GBT-V.bcmap +0 -0
  100. package/dist/node_modules/pdfjs-dist/cmaps/GBTpc-EUC-H.bcmap +0 -0
  101. package/dist/node_modules/pdfjs-dist/cmaps/GBTpc-EUC-V.bcmap +0 -0
  102. package/dist/node_modules/pdfjs-dist/cmaps/GBpc-EUC-H.bcmap +0 -0
  103. package/dist/node_modules/pdfjs-dist/cmaps/GBpc-EUC-V.bcmap +0 -0
  104. package/dist/node_modules/pdfjs-dist/cmaps/H.bcmap +0 -0
  105. package/dist/node_modules/pdfjs-dist/cmaps/HKdla-B5-H.bcmap +0 -0
  106. package/dist/node_modules/pdfjs-dist/cmaps/HKdla-B5-V.bcmap +0 -0
  107. package/dist/node_modules/pdfjs-dist/cmaps/HKdlb-B5-H.bcmap +0 -0
  108. package/dist/node_modules/pdfjs-dist/cmaps/HKdlb-B5-V.bcmap +0 -0
  109. package/dist/node_modules/pdfjs-dist/cmaps/HKgccs-B5-H.bcmap +0 -0
  110. package/dist/node_modules/pdfjs-dist/cmaps/HKgccs-B5-V.bcmap +0 -0
  111. package/dist/node_modules/pdfjs-dist/cmaps/HKm314-B5-H.bcmap +0 -0
  112. package/dist/node_modules/pdfjs-dist/cmaps/HKm314-B5-V.bcmap +0 -0
  113. package/dist/node_modules/pdfjs-dist/cmaps/HKm471-B5-H.bcmap +0 -0
  114. package/dist/node_modules/pdfjs-dist/cmaps/HKm471-B5-V.bcmap +0 -0
  115. package/dist/node_modules/pdfjs-dist/cmaps/HKscs-B5-H.bcmap +0 -0
  116. package/dist/node_modules/pdfjs-dist/cmaps/HKscs-B5-V.bcmap +0 -0
  117. package/dist/node_modules/pdfjs-dist/cmaps/Hankaku.bcmap +0 -0
  118. package/dist/node_modules/pdfjs-dist/cmaps/Hiragana.bcmap +0 -0
  119. package/dist/node_modules/pdfjs-dist/cmaps/KSC-EUC-H.bcmap +0 -0
  120. package/dist/node_modules/pdfjs-dist/cmaps/KSC-EUC-V.bcmap +0 -0
  121. package/dist/node_modules/pdfjs-dist/cmaps/KSC-H.bcmap +0 -0
  122. package/dist/node_modules/pdfjs-dist/cmaps/KSC-Johab-H.bcmap +0 -0
  123. package/dist/node_modules/pdfjs-dist/cmaps/KSC-Johab-V.bcmap +0 -0
  124. package/dist/node_modules/pdfjs-dist/cmaps/KSC-V.bcmap +0 -0
  125. package/dist/node_modules/pdfjs-dist/cmaps/KSCms-UHC-H.bcmap +0 -0
  126. package/dist/node_modules/pdfjs-dist/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  127. package/dist/node_modules/pdfjs-dist/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  128. package/dist/node_modules/pdfjs-dist/cmaps/KSCms-UHC-V.bcmap +0 -0
  129. package/dist/node_modules/pdfjs-dist/cmaps/KSCpc-EUC-H.bcmap +0 -0
  130. package/dist/node_modules/pdfjs-dist/cmaps/KSCpc-EUC-V.bcmap +0 -0
  131. package/dist/node_modules/pdfjs-dist/cmaps/Katakana.bcmap +0 -0
  132. package/dist/node_modules/pdfjs-dist/cmaps/NWP-H.bcmap +0 -0
  133. package/dist/node_modules/pdfjs-dist/cmaps/NWP-V.bcmap +0 -0
  134. package/dist/node_modules/pdfjs-dist/cmaps/RKSJ-H.bcmap +0 -0
  135. package/dist/node_modules/pdfjs-dist/cmaps/RKSJ-V.bcmap +0 -0
  136. package/dist/node_modules/pdfjs-dist/cmaps/Roman.bcmap +0 -0
  137. package/dist/node_modules/pdfjs-dist/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  138. package/dist/node_modules/pdfjs-dist/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  139. package/dist/node_modules/pdfjs-dist/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  140. package/dist/node_modules/pdfjs-dist/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  141. package/dist/node_modules/pdfjs-dist/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  142. package/dist/node_modules/pdfjs-dist/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  143. package/dist/node_modules/pdfjs-dist/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  144. package/dist/node_modules/pdfjs-dist/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  145. package/dist/node_modules/pdfjs-dist/cmaps/UniGB-UCS2-H.bcmap +0 -0
  146. package/dist/node_modules/pdfjs-dist/cmaps/UniGB-UCS2-V.bcmap +0 -0
  147. package/dist/node_modules/pdfjs-dist/cmaps/UniGB-UTF16-H.bcmap +0 -0
  148. package/dist/node_modules/pdfjs-dist/cmaps/UniGB-UTF16-V.bcmap +0 -0
  149. package/dist/node_modules/pdfjs-dist/cmaps/UniGB-UTF32-H.bcmap +0 -0
  150. package/dist/node_modules/pdfjs-dist/cmaps/UniGB-UTF32-V.bcmap +0 -0
  151. package/dist/node_modules/pdfjs-dist/cmaps/UniGB-UTF8-H.bcmap +0 -0
  152. package/dist/node_modules/pdfjs-dist/cmaps/UniGB-UTF8-V.bcmap +0 -0
  153. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  154. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  155. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  156. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  157. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  158. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  159. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  160. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  161. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  162. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  163. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  164. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  165. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  166. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  167. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  168. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  169. package/dist/node_modules/pdfjs-dist/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  170. package/dist/node_modules/pdfjs-dist/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  171. package/dist/node_modules/pdfjs-dist/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  172. package/dist/node_modules/pdfjs-dist/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  173. package/dist/node_modules/pdfjs-dist/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  174. package/dist/node_modules/pdfjs-dist/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  175. package/dist/node_modules/pdfjs-dist/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  176. package/dist/node_modules/pdfjs-dist/cmaps/UniKS-UCS2-H.bcmap +0 -0
  177. package/dist/node_modules/pdfjs-dist/cmaps/UniKS-UCS2-V.bcmap +0 -0
  178. package/dist/node_modules/pdfjs-dist/cmaps/UniKS-UTF16-H.bcmap +0 -0
  179. package/dist/node_modules/pdfjs-dist/cmaps/UniKS-UTF16-V.bcmap +0 -0
  180. package/dist/node_modules/pdfjs-dist/cmaps/UniKS-UTF32-H.bcmap +0 -0
  181. package/dist/node_modules/pdfjs-dist/cmaps/UniKS-UTF32-V.bcmap +0 -0
  182. package/dist/node_modules/pdfjs-dist/cmaps/UniKS-UTF8-H.bcmap +0 -0
  183. package/dist/node_modules/pdfjs-dist/cmaps/UniKS-UTF8-V.bcmap +0 -0
  184. package/dist/node_modules/pdfjs-dist/cmaps/V.bcmap +0 -0
  185. package/dist/node_modules/pdfjs-dist/cmaps/WP-Symbol.bcmap +0 -0
  186. package/dist/node_modules/pdfjs-dist/iccs/CGATS001Compat-v2-micro.icc +0 -0
  187. package/dist/node_modules/pdfjs-dist/legacy/build/pdf.d.mts +1 -0
  188. package/dist/node_modules/pdfjs-dist/legacy/web/images/altText_add.svg +3 -0
  189. package/dist/node_modules/pdfjs-dist/legacy/web/images/altText_disclaimer.svg +3 -0
  190. package/dist/node_modules/pdfjs-dist/legacy/web/images/altText_done.svg +3 -0
  191. package/dist/node_modules/pdfjs-dist/legacy/web/images/altText_spinner.svg +30 -0
  192. package/dist/node_modules/pdfjs-dist/legacy/web/images/altText_warning.svg +3 -0
  193. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-check.svg +11 -0
  194. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-comment.svg +16 -0
  195. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-help.svg +26 -0
  196. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-insert.svg +10 -0
  197. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-key.svg +11 -0
  198. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-newparagraph.svg +11 -0
  199. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-noicon.svg +7 -0
  200. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-note.svg +42 -0
  201. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-paperclip.svg +6 -0
  202. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-paragraph.svg +16 -0
  203. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-pushpin.svg +7 -0
  204. package/dist/node_modules/pdfjs-dist/legacy/web/images/checkmark.svg +5 -0
  205. package/dist/node_modules/pdfjs-dist/legacy/web/images/comment-actionsButton.svg +3 -0
  206. package/dist/node_modules/pdfjs-dist/legacy/web/images/comment-closeButton.svg +3 -0
  207. package/dist/node_modules/pdfjs-dist/legacy/web/images/comment-editButton.svg +8 -0
  208. package/dist/node_modules/pdfjs-dist/legacy/web/images/comment-popup-editButton.svg +5 -0
  209. package/dist/node_modules/pdfjs-dist/legacy/web/images/cursor-editorFreeHighlight.svg +6 -0
  210. package/dist/node_modules/pdfjs-dist/legacy/web/images/cursor-editorFreeText.svg +3 -0
  211. package/dist/node_modules/pdfjs-dist/legacy/web/images/cursor-editorInk.svg +4 -0
  212. package/dist/node_modules/pdfjs-dist/legacy/web/images/cursor-editorTextHighlight.svg +8 -0
  213. package/dist/node_modules/pdfjs-dist/legacy/web/images/editor-toolbar-delete.svg +5 -0
  214. package/dist/node_modules/pdfjs-dist/legacy/web/images/editor-toolbar-edit.svg +3 -0
  215. package/dist/node_modules/pdfjs-dist/legacy/web/images/findbarButton-next.svg +3 -0
  216. package/dist/node_modules/pdfjs-dist/legacy/web/images/findbarButton-previous.svg +3 -0
  217. package/dist/node_modules/pdfjs-dist/legacy/web/images/gv-toolbarButton-download.svg +3 -0
  218. package/dist/node_modules/pdfjs-dist/legacy/web/images/loading.svg +1 -0
  219. package/dist/node_modules/pdfjs-dist/legacy/web/images/messageBar_closingButton.svg +3 -0
  220. package/dist/node_modules/pdfjs-dist/legacy/web/images/messageBar_info.svg +3 -0
  221. package/dist/node_modules/pdfjs-dist/legacy/web/images/messageBar_warning.svg +3 -0
  222. package/dist/node_modules/pdfjs-dist/legacy/web/images/pages_closeButton.svg +3 -0
  223. package/dist/node_modules/pdfjs-dist/legacy/web/images/pages_selected.svg +7 -0
  224. package/dist/node_modules/pdfjs-dist/legacy/web/images/pages_viewArrow.svg +3 -0
  225. package/dist/node_modules/pdfjs-dist/legacy/web/images/pages_viewButton.svg +3 -0
  226. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-documentProperties.svg +3 -0
  227. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-firstPage.svg +3 -0
  228. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-handTool.svg +3 -0
  229. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-lastPage.svg +3 -0
  230. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-rotateCcw.svg +3 -0
  231. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-rotateCw.svg +3 -0
  232. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-scrollHorizontal.svg +3 -0
  233. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-scrollPage.svg +3 -0
  234. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-scrollVertical.svg +3 -0
  235. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-scrollWrapped.svg +3 -0
  236. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-selectTool.svg +3 -0
  237. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-spreadEven.svg +3 -0
  238. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-spreadNone.svg +3 -0
  239. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-spreadOdd.svg +3 -0
  240. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-bookmark.svg +3 -0
  241. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-currentOutlineItem.svg +3 -0
  242. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-download.svg +4 -0
  243. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-editorFreeText.svg +5 -0
  244. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-editorHighlight.svg +6 -0
  245. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-editorInk.svg +4 -0
  246. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-editorSignature.svg +6 -0
  247. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-editorStamp.svg +8 -0
  248. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-menuArrow.svg +3 -0
  249. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-openFile.svg +3 -0
  250. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-pageDown.svg +3 -0
  251. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-pageUp.svg +3 -0
  252. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-presentationMode.svg +3 -0
  253. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-print.svg +3 -0
  254. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-search.svg +3 -0
  255. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-secondaryToolbarToggle.svg +3 -0
  256. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-viewAttachments.svg +3 -0
  257. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-viewLayers.svg +3 -0
  258. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-viewOutline.svg +3 -0
  259. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-viewThumbnail.svg +3 -0
  260. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-viewsManagerToggle.svg +3 -0
  261. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-zoomIn.svg +3 -0
  262. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-zoomOut.svg +3 -0
  263. package/dist/node_modules/pdfjs-dist/legacy/web/images/treeitem-collapsed.svg +1 -0
  264. package/dist/node_modules/pdfjs-dist/legacy/web/images/treeitem-expanded.svg +1 -0
  265. package/dist/node_modules/pdfjs-dist/legacy/web/pdf_viewer.css +6989 -0
  266. package/dist/node_modules/pdfjs-dist/legacy/web/pdf_viewer.d.mts +1 -0
  267. package/dist/node_modules/pdfjs-dist/package.json +1 -0
  268. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitDingbats.pfb +0 -0
  269. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitFixed.pfb +0 -0
  270. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitFixedBold.pfb +0 -0
  271. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  272. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitFixedItalic.pfb +0 -0
  273. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitSerif.pfb +0 -0
  274. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitSerifBold.pfb +0 -0
  275. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  276. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitSerifItalic.pfb +0 -0
  277. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitSymbol.pfb +0 -0
  278. package/dist/node_modules/pdfjs-dist/standard_fonts/LICENSE_FOXIT +27 -0
  279. package/dist/node_modules/pdfjs-dist/standard_fonts/LICENSE_LIBERATION +102 -0
  280. package/dist/node_modules/pdfjs-dist/standard_fonts/LiberationSans-Bold.ttf +0 -0
  281. package/dist/node_modules/pdfjs-dist/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  282. package/dist/node_modules/pdfjs-dist/standard_fonts/LiberationSans-Italic.ttf +0 -0
  283. package/dist/node_modules/pdfjs-dist/standard_fonts/LiberationSans-Regular.ttf +0 -0
  284. package/dist/node_modules/pdfjs-dist/types/src/display/annotation_layer.d.ts +276 -0
  285. package/dist/node_modules/pdfjs-dist/types/src/display/annotation_storage.d.ts +94 -0
  286. package/dist/node_modules/pdfjs-dist/types/src/display/api.d.ts +1630 -0
  287. package/dist/node_modules/pdfjs-dist/types/src/display/api_utils.d.ts +13 -0
  288. package/dist/node_modules/pdfjs-dist/types/src/display/canvas.d.ts +207 -0
  289. package/dist/node_modules/pdfjs-dist/types/src/display/canvas_dependency_tracker.d.ts +160 -0
  290. package/dist/node_modules/pdfjs-dist/types/src/display/canvas_factory.d.ts +27 -0
  291. package/dist/node_modules/pdfjs-dist/types/src/display/cmap_reader_factory.d.ts +25 -0
  292. package/dist/node_modules/pdfjs-dist/types/src/display/content_disposition.d.ts +7 -0
  293. package/dist/node_modules/pdfjs-dist/types/src/display/display_utils.d.ts +366 -0
  294. package/dist/node_modules/pdfjs-dist/types/src/display/draw_layer.d.ts +22 -0
  295. package/dist/node_modules/pdfjs-dist/types/src/display/editor/alt_text.d.ts +34 -0
  296. package/dist/node_modules/pdfjs-dist/types/src/display/editor/annotation_editor_layer.d.ts +233 -0
  297. package/dist/node_modules/pdfjs-dist/types/src/display/editor/color_picker.d.ts +39 -0
  298. package/dist/node_modules/pdfjs-dist/types/src/display/editor/comment.d.ts +59 -0
  299. package/dist/node_modules/pdfjs-dist/types/src/display/editor/draw.d.ts +117 -0
  300. package/dist/node_modules/pdfjs-dist/types/src/display/editor/drawers/contour.d.ts +3 -0
  301. package/dist/node_modules/pdfjs-dist/types/src/display/editor/drawers/freedraw.d.ts +32 -0
  302. package/dist/node_modules/pdfjs-dist/types/src/display/editor/drawers/highlight.d.ts +37 -0
  303. package/dist/node_modules/pdfjs-dist/types/src/display/editor/drawers/inkdraw.d.ts +129 -0
  304. package/dist/node_modules/pdfjs-dist/types/src/display/editor/drawers/outline.d.ts +19 -0
  305. package/dist/node_modules/pdfjs-dist/types/src/display/editor/drawers/signaturedraw.d.ts +79 -0
  306. package/dist/node_modules/pdfjs-dist/types/src/display/editor/editor.d.ts +578 -0
  307. package/dist/node_modules/pdfjs-dist/types/src/display/editor/freetext.d.ts +63 -0
  308. package/dist/node_modules/pdfjs-dist/types/src/display/editor/highlight.d.ts +76 -0
  309. package/dist/node_modules/pdfjs-dist/types/src/display/editor/ink.d.ts +42 -0
  310. package/dist/node_modules/pdfjs-dist/types/src/display/editor/signature.d.ts +77 -0
  311. package/dist/node_modules/pdfjs-dist/types/src/display/editor/stamp.d.ts +49 -0
  312. package/dist/node_modules/pdfjs-dist/types/src/display/editor/toolbar.d.ts +26 -0
  313. package/dist/node_modules/pdfjs-dist/types/src/display/editor/tools.d.ts +481 -0
  314. package/dist/node_modules/pdfjs-dist/types/src/display/fetch_stream.d.ts +7 -0
  315. package/dist/node_modules/pdfjs-dist/types/src/display/filter_factory.d.ts +29 -0
  316. package/dist/node_modules/pdfjs-dist/types/src/display/font_loader.d.ts +67 -0
  317. package/dist/node_modules/pdfjs-dist/types/src/display/metadata.d.ts +10 -0
  318. package/dist/node_modules/pdfjs-dist/types/src/display/network.d.ts +20 -0
  319. package/dist/node_modules/pdfjs-dist/types/src/display/network_utils.d.ts +15 -0
  320. package/dist/node_modules/pdfjs-dist/types/src/display/node_stream.d.ts +5 -0
  321. package/dist/node_modules/pdfjs-dist/types/src/display/node_utils.d.ts +32 -0
  322. package/dist/node_modules/pdfjs-dist/types/src/display/optional_content_config.d.ts +18 -0
  323. package/dist/node_modules/pdfjs-dist/types/src/display/pattern_helper.d.ts +77 -0
  324. package/dist/node_modules/pdfjs-dist/types/src/display/pdf_objects.d.ts +40 -0
  325. package/dist/node_modules/pdfjs-dist/types/src/display/standard_fontdata_factory.d.ts +20 -0
  326. package/dist/node_modules/pdfjs-dist/types/src/display/svg_factory.d.ts +14 -0
  327. package/dist/node_modules/pdfjs-dist/types/src/display/text_layer.d.ts +85 -0
  328. package/dist/node_modules/pdfjs-dist/types/src/display/touch_manager.d.ts +18 -0
  329. package/dist/node_modules/pdfjs-dist/types/src/display/transport_stream.d.ts +10 -0
  330. package/dist/node_modules/pdfjs-dist/types/src/display/wasm_factory.d.ts +20 -0
  331. package/dist/node_modules/pdfjs-dist/types/src/display/worker_options.d.ts +25 -0
  332. package/dist/node_modules/pdfjs-dist/types/src/display/xfa_layer.d.ts +47 -0
  333. package/dist/node_modules/pdfjs-dist/types/src/display/xfa_text.d.ts +21 -0
  334. package/dist/node_modules/pdfjs-dist/types/src/pdf.d.ts +64 -0
  335. package/dist/node_modules/pdfjs-dist/types/src/shared/base_pdf_stream.d.ts +120 -0
  336. package/dist/node_modules/pdfjs-dist/types/src/shared/image_utils.d.ts +17 -0
  337. package/dist/node_modules/pdfjs-dist/types/src/shared/message_handler.d.ts +48 -0
  338. package/dist/node_modules/pdfjs-dist/types/src/shared/murmurhash3.d.ts +7 -0
  339. package/dist/node_modules/pdfjs-dist/types/src/shared/obj-bin-transform.d.ts +90 -0
  340. package/dist/node_modules/pdfjs-dist/types/src/shared/scripting_utils.d.ts +18 -0
  341. package/dist/node_modules/pdfjs-dist/types/src/shared/util.d.ts +420 -0
  342. package/dist/node_modules/pdfjs-dist/types/web/annotation_editor_layer_builder.d.ts +65 -0
  343. package/dist/node_modules/pdfjs-dist/types/web/annotation_layer_builder.d.ts +108 -0
  344. package/dist/node_modules/pdfjs-dist/types/web/app_options.d.ts +16 -0
  345. package/dist/node_modules/pdfjs-dist/types/web/autolinker.d.ts +29 -0
  346. package/dist/node_modules/pdfjs-dist/types/web/base_pdf_page_view.d.ts +28 -0
  347. package/dist/node_modules/pdfjs-dist/types/web/comment_manager.d.ts +20 -0
  348. package/dist/node_modules/pdfjs-dist/types/web/download_manager.d.ts +13 -0
  349. package/dist/node_modules/pdfjs-dist/types/web/draw_layer_builder.d.ts +22 -0
  350. package/dist/node_modules/pdfjs-dist/types/web/event_utils.d.ts +77 -0
  351. package/dist/node_modules/pdfjs-dist/types/web/generic_scripting.d.ts +8 -0
  352. package/dist/node_modules/pdfjs-dist/types/web/genericl10n.d.ts +22 -0
  353. package/dist/node_modules/pdfjs-dist/types/web/interfaces.d.ts +174 -0
  354. package/dist/node_modules/pdfjs-dist/types/web/l10n.d.ts +34 -0
  355. package/dist/node_modules/pdfjs-dist/types/web/menu.d.ts +11 -0
  356. package/dist/node_modules/pdfjs-dist/types/web/pdf_find_controller.d.ts +134 -0
  357. package/dist/node_modules/pdfjs-dist/types/web/pdf_find_utils.d.ts +16 -0
  358. package/dist/node_modules/pdfjs-dist/types/web/pdf_history.d.ts +116 -0
  359. package/dist/node_modules/pdfjs-dist/types/web/pdf_link_service.d.ts +147 -0
  360. package/dist/node_modules/pdfjs-dist/types/web/pdf_page_detail_view.d.ts +33 -0
  361. package/dist/node_modules/pdfjs-dist/types/web/pdf_page_view.d.ts +244 -0
  362. package/dist/node_modules/pdfjs-dist/types/web/pdf_rendering_queue.d.ts +54 -0
  363. package/dist/node_modules/pdfjs-dist/types/web/pdf_scripting_manager.component.d.ts +5 -0
  364. package/dist/node_modules/pdfjs-dist/types/web/pdf_scripting_manager.d.ts +57 -0
  365. package/dist/node_modules/pdfjs-dist/types/web/pdf_single_page_viewer.d.ts +7 -0
  366. package/dist/node_modules/pdfjs-dist/types/web/pdf_thumbnail_view.d.ts +108 -0
  367. package/dist/node_modules/pdfjs-dist/types/web/pdf_thumbnail_viewer.d.ts +136 -0
  368. package/dist/node_modules/pdfjs-dist/types/web/pdf_viewer.component.d.ts +23 -0
  369. package/dist/node_modules/pdfjs-dist/types/web/pdf_viewer.d.ts +625 -0
  370. package/dist/node_modules/pdfjs-dist/types/web/sidebar.d.ts +65 -0
  371. package/dist/node_modules/pdfjs-dist/types/web/struct_tree_layer_builder.d.ts +25 -0
  372. package/dist/node_modules/pdfjs-dist/types/web/text_accessibility.d.ts +44 -0
  373. package/dist/node_modules/pdfjs-dist/types/web/text_highlighter.d.ts +63 -0
  374. package/dist/node_modules/pdfjs-dist/types/web/text_layer_builder.d.ts +65 -0
  375. package/dist/node_modules/pdfjs-dist/types/web/ui_utils.d.ts +274 -0
  376. package/dist/node_modules/pdfjs-dist/types/web/xfa_layer_builder.d.ts +50 -0
  377. package/dist/node_modules/pdfjs-dist/wasm/LICENSE_JBIG2 +196 -0
  378. package/dist/node_modules/pdfjs-dist/wasm/LICENSE_OPENJPEG +39 -0
  379. package/dist/node_modules/pdfjs-dist/wasm/LICENSE_PDFJS_JBIG2 +13 -0
  380. package/dist/node_modules/pdfjs-dist/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
  381. package/dist/node_modules/pdfjs-dist/wasm/LICENSE_PDFJS_QCMS +22 -0
  382. package/dist/node_modules/pdfjs-dist/wasm/LICENSE_QCMS +21 -0
  383. package/dist/node_modules/pdfjs-dist/wasm/jbig2.wasm +0 -0
  384. package/dist/node_modules/pdfjs-dist/wasm/openjpeg.wasm +0 -0
  385. package/dist/node_modules/pdfjs-dist/wasm/openjpeg_nowasm_fallback.js +17 -0
  386. package/dist/node_modules/pdfjs-dist/wasm/qcms_bg.wasm +0 -0
  387. package/dist/node_modules/pdfjs-dist/web/images/altText_add.svg +3 -0
  388. package/dist/node_modules/pdfjs-dist/web/images/altText_disclaimer.svg +3 -0
  389. package/dist/node_modules/pdfjs-dist/web/images/altText_done.svg +3 -0
  390. package/dist/node_modules/pdfjs-dist/web/images/altText_spinner.svg +30 -0
  391. package/dist/node_modules/pdfjs-dist/web/images/altText_warning.svg +3 -0
  392. package/dist/node_modules/pdfjs-dist/web/images/annotation-check.svg +11 -0
  393. package/dist/node_modules/pdfjs-dist/web/images/annotation-comment.svg +16 -0
  394. package/dist/node_modules/pdfjs-dist/web/images/annotation-help.svg +26 -0
  395. package/dist/node_modules/pdfjs-dist/web/images/annotation-insert.svg +10 -0
  396. package/dist/node_modules/pdfjs-dist/web/images/annotation-key.svg +11 -0
  397. package/dist/node_modules/pdfjs-dist/web/images/annotation-newparagraph.svg +11 -0
  398. package/dist/node_modules/pdfjs-dist/web/images/annotation-noicon.svg +7 -0
  399. package/dist/node_modules/pdfjs-dist/web/images/annotation-note.svg +42 -0
  400. package/dist/node_modules/pdfjs-dist/web/images/annotation-paperclip.svg +6 -0
  401. package/dist/node_modules/pdfjs-dist/web/images/annotation-paragraph.svg +16 -0
  402. package/dist/node_modules/pdfjs-dist/web/images/annotation-pushpin.svg +7 -0
  403. package/dist/node_modules/pdfjs-dist/web/images/checkmark.svg +5 -0
  404. package/dist/node_modules/pdfjs-dist/web/images/comment-actionsButton.svg +3 -0
  405. package/dist/node_modules/pdfjs-dist/web/images/comment-closeButton.svg +3 -0
  406. package/dist/node_modules/pdfjs-dist/web/images/comment-editButton.svg +8 -0
  407. package/dist/node_modules/pdfjs-dist/web/images/comment-popup-editButton.svg +5 -0
  408. package/dist/node_modules/pdfjs-dist/web/images/cursor-editorFreeHighlight.svg +6 -0
  409. package/dist/node_modules/pdfjs-dist/web/images/cursor-editorFreeText.svg +3 -0
  410. package/dist/node_modules/pdfjs-dist/web/images/cursor-editorInk.svg +4 -0
  411. package/dist/node_modules/pdfjs-dist/web/images/cursor-editorTextHighlight.svg +8 -0
  412. package/dist/node_modules/pdfjs-dist/web/images/editor-toolbar-delete.svg +5 -0
  413. package/dist/node_modules/pdfjs-dist/web/images/editor-toolbar-edit.svg +3 -0
  414. package/dist/node_modules/pdfjs-dist/web/images/findbarButton-next.svg +3 -0
  415. package/dist/node_modules/pdfjs-dist/web/images/findbarButton-previous.svg +3 -0
  416. package/dist/node_modules/pdfjs-dist/web/images/gv-toolbarButton-download.svg +3 -0
  417. package/dist/node_modules/pdfjs-dist/web/images/loading.svg +1 -0
  418. package/dist/node_modules/pdfjs-dist/web/images/messageBar_closingButton.svg +3 -0
  419. package/dist/node_modules/pdfjs-dist/web/images/messageBar_info.svg +3 -0
  420. package/dist/node_modules/pdfjs-dist/web/images/messageBar_warning.svg +3 -0
  421. package/dist/node_modules/pdfjs-dist/web/images/pages_closeButton.svg +3 -0
  422. package/dist/node_modules/pdfjs-dist/web/images/pages_selected.svg +7 -0
  423. package/dist/node_modules/pdfjs-dist/web/images/pages_viewArrow.svg +3 -0
  424. package/dist/node_modules/pdfjs-dist/web/images/pages_viewButton.svg +3 -0
  425. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-documentProperties.svg +3 -0
  426. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-firstPage.svg +3 -0
  427. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-handTool.svg +3 -0
  428. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-lastPage.svg +3 -0
  429. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-rotateCcw.svg +3 -0
  430. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-rotateCw.svg +3 -0
  431. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-scrollHorizontal.svg +3 -0
  432. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-scrollPage.svg +3 -0
  433. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-scrollVertical.svg +3 -0
  434. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-scrollWrapped.svg +3 -0
  435. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-selectTool.svg +3 -0
  436. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-spreadEven.svg +3 -0
  437. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-spreadNone.svg +3 -0
  438. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-spreadOdd.svg +3 -0
  439. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-bookmark.svg +3 -0
  440. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-currentOutlineItem.svg +3 -0
  441. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-download.svg +4 -0
  442. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-editorFreeText.svg +5 -0
  443. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-editorHighlight.svg +6 -0
  444. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-editorInk.svg +4 -0
  445. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-editorSignature.svg +6 -0
  446. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-editorStamp.svg +8 -0
  447. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-menuArrow.svg +3 -0
  448. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-openFile.svg +3 -0
  449. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-pageDown.svg +3 -0
  450. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-pageUp.svg +3 -0
  451. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-presentationMode.svg +3 -0
  452. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-print.svg +3 -0
  453. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-search.svg +3 -0
  454. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-secondaryToolbarToggle.svg +3 -0
  455. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-viewAttachments.svg +3 -0
  456. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-viewLayers.svg +3 -0
  457. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-viewOutline.svg +3 -0
  458. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-viewThumbnail.svg +3 -0
  459. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-viewsManagerToggle.svg +3 -0
  460. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-zoomIn.svg +3 -0
  461. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-zoomOut.svg +3 -0
  462. package/dist/node_modules/pdfjs-dist/web/images/treeitem-collapsed.svg +1 -0
  463. package/dist/node_modules/pdfjs-dist/web/images/treeitem-expanded.svg +1 -0
  464. package/dist/node_modules/pdfjs-dist/web/pdf_viewer.css +6989 -0
  465. package/dist/node_modules/pdfjs-dist/web/pdf_viewer.d.mts +1 -0
  466. package/dist/node_modules/url-join/package.json +1 -1
  467. package/dist/shared/previewer/filePreviewTypes.d.ts +1 -0
  468. package/dist/shared/previewer/filePreviewTypes.js +238 -6
  469. package/package.json +4 -5
  470. package/dist/client-v2/942.2afbcac7b1a3c330.js +0 -10
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ !function(t,a){"object"==typeof exports&&"object"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define("@nocobase/plugin-file-manager/client-v2",[],a):"object"==typeof exports?exports["@nocobase/plugin-file-manager/client-v2"]=a():t["@nocobase/plugin-file-manager/client-v2"]=a()}(self,function(){return function(){"use strict";let t,a=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type),i=[.001,0,0,.001,0,0],r="pdfjs_internal_editor_",s={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},n={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},l="Group",o={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"},c={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},h={O:"PageOpen",C:"PageClose"},u=1;function d(t){u>=5&&console.info(`Info: ${t}`)}function f(t){u>=1&&console.warn(`Warning: ${t}`)}function g(t){throw Error(t)}function p(t,a){t||g(a)}function m(t,a=null,i=null){if(!t)return null;if(i&&"string"==typeof t){if(i.addDefaultProtocol&&t.startsWith("www.")){let a=t.match(/\./g);a?.length>=2&&(t=`http://${t}`)}if(i.tryConvertEncoding)try{t=O(t)}catch{}}let r=a?URL.parse(t,a):URL.parse(t);return!function(t){switch(t?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r)?null:r}function b(t,a,i,r=!1){return Object.defineProperty(t,a,{value:i,enumerable:!r,configurable:!0,writable:!1}),i}let y=function(){function t(t,a){this.message=t,this.name=a}return t.prototype=Error(),t.constructor=t,t}();class w extends y{constructor(t,a){super(t,"PasswordException"),this.code=a}}class x extends y{constructor(t,a){super(t,"UnknownErrorException"),this.details=a}}class k extends y{constructor(t){super(t,"InvalidPDFException")}}class v extends y{constructor(t,a,i){super(t,"ResponseException"),this.status=a,this.missing=i}}class A extends y{constructor(t){super(t,"FormatError")}}class C extends y{constructor(t){super(t,"AbortException")}}function S(t){"object"==typeof t&&void 0!==t?.length||g("Invalid argument for bytesToString");let a=t.length;if(a<8192)return String.fromCharCode.apply(null,t);let i=[];for(let r=0;r<a;r+=8192){let s=Math.min(r+8192,a),n=t.subarray(r,s);i.push(String.fromCharCode.apply(null,n))}return i.join("")}function I(t){"string"!=typeof t&&g("Invalid argument for stringToBytes");let a=t.length,i=new Uint8Array(a);for(let r=0;r<a;++r)i[r]=255&t.charCodeAt(r);return i}function B(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)}function F(t){return Object.keys(t).length}class M{static get isLittleEndian(){let t;return b(this,"isLittleEndian",((t=new Uint8Array(4))[0]=1,1===new Uint32Array(t.buffer,0,1)[0]))}static get isEvalSupported(){return b(this,"isEvalSupported",function(){try{return Function(""),!0}catch{return!1}}())}static get isOffscreenCanvasSupported(){return b(this,"isOffscreenCanvasSupported","u">typeof OffscreenCanvas)}static get isImageDecoderSupported(){return b(this,"isImageDecoderSupported","u">typeof ImageDecoder)}static get isFloat16ArraySupported(){return b(this,"isFloat16ArraySupported","u">typeof Float16Array)}static get isSanitizerSupported(){return b(this,"isSanitizerSupported","u">typeof Sanitizer)}static get platform(){let{platform:t,userAgent:a}=navigator;return b(this,"platform",{isAndroid:a.includes("Android"),isLinux:t.includes("Linux"),isMac:t.includes("Mac"),isWindows:t.includes("Win"),isFirefox:a.includes("Firefox")})}static get isCSSRoundSupported(){return b(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}}let T=Array.from(Array(256).keys(),t=>t.toString(16).padStart(2,"0"));class R{static makeHexColor(t,a,i){return`#${T[t]}${T[a]}${T[i]}`}static domMatrixToTransform(t){return[t.a,t.b,t.c,t.d,t.e,t.f]}static scaleMinMax(t,a){let i;t[0]?(t[0]<0&&(i=a[0],a[0]=a[2],a[2]=i),a[0]*=t[0],a[2]*=t[0],t[3]<0&&(i=a[1],a[1]=a[3],a[3]=i),a[1]*=t[3],a[3]*=t[3]):(i=a[0],a[0]=a[1],a[1]=i,i=a[2],a[2]=a[3],a[3]=i,t[1]<0&&(i=a[1],a[1]=a[3],a[3]=i),a[1]*=t[1],a[3]*=t[1],t[2]<0&&(i=a[0],a[0]=a[2],a[2]=i),a[0]*=t[2],a[2]*=t[2]),a[0]+=t[4],a[1]+=t[5],a[2]+=t[4],a[3]+=t[5]}static transform(t,a){return[t[0]*a[0]+t[2]*a[1],t[1]*a[0]+t[3]*a[1],t[0]*a[2]+t[2]*a[3],t[1]*a[2]+t[3]*a[3],t[0]*a[4]+t[2]*a[5]+t[4],t[1]*a[4]+t[3]*a[5]+t[5]]}static multiplyByDOMMatrix(t,a){return[t[0]*a.a+t[2]*a.b,t[1]*a.a+t[3]*a.b,t[0]*a.c+t[2]*a.d,t[1]*a.c+t[3]*a.d,t[0]*a.e+t[2]*a.f+t[4],t[1]*a.e+t[3]*a.f+t[5]]}static applyTransform(t,a,i=0){let r=t[i],s=t[i+1];t[i]=r*a[0]+s*a[2]+a[4],t[i+1]=r*a[1]+s*a[3]+a[5]}static applyTransformToBezier(t,a,i=0){let r=a[0],s=a[1],n=a[2],l=a[3],o=a[4],c=a[5];for(let a=0;a<6;a+=2){let h=t[i+a],u=t[i+a+1];t[i+a]=h*r+u*n+o,t[i+a+1]=h*s+u*l+c}}static applyInverseTransform(t,a){let i=t[0],r=t[1],s=a[0]*a[3]-a[1]*a[2];t[0]=(i*a[3]-r*a[2]+a[2]*a[5]-a[4]*a[3])/s,t[1]=(-i*a[1]+r*a[0]+a[4]*a[1]-a[5]*a[0])/s}static axialAlignedBoundingBox(t,a,i){let r=a[0],s=a[1],n=a[2],l=a[3],o=a[4],c=a[5],h=t[0],u=t[1],d=t[2],f=t[3],g=r*h+o,p=g,m=r*d+o,b=m,y=l*u+c,w=y,x=l*f+c,k=x;if(0!==s||0!==n){let t=s*h,a=s*d,i=n*u,r=n*f;g+=i,b+=i,m+=r,p+=r,y+=t,k+=t,x+=a,w+=a}i[0]=Math.min(i[0],g,m,p,b),i[1]=Math.min(i[1],y,x,w,k),i[2]=Math.max(i[2],g,m,p,b),i[3]=Math.max(i[3],y,x,w,k)}static inverseTransform(t){let a=t[0]*t[3]-t[1]*t[2];return[t[3]/a,-t[1]/a,-t[2]/a,t[0]/a,(t[2]*t[5]-t[4]*t[3])/a,(t[4]*t[1]-t[5]*t[0])/a]}static singularValueDecompose2dScale(t,a){let i=t[0],r=t[1],s=t[2],n=t[3],l=i**2+r**2,o=s**2+n**2,c=(l+o)/2,h=Math.sqrt(c**2-(l*o-(i*s+r*n)**2));a[0]=Math.sqrt(c+h||1),a[1]=Math.sqrt(c-h||1)}static normalizeRect(t){let a=t.slice(0);return t[0]>t[2]&&(a[0]=t[2],a[2]=t[0]),t[1]>t[3]&&(a[1]=t[3],a[3]=t[1]),a}static intersect(t,a){let i=Math.max(Math.min(t[0],t[2]),Math.min(a[0],a[2])),r=Math.min(Math.max(t[0],t[2]),Math.max(a[0],a[2]));if(i>r)return null;let s=Math.max(Math.min(t[1],t[3]),Math.min(a[1],a[3])),n=Math.min(Math.max(t[1],t[3]),Math.max(a[1],a[3]));return s>n?null:[i,s,r,n]}static pointBoundingBox(t,a,i){i[0]=Math.min(i[0],t),i[1]=Math.min(i[1],a),i[2]=Math.max(i[2],t),i[3]=Math.max(i[3],a)}static rectBoundingBox(t,a,i,r,s){s[0]=Math.min(s[0],t,i),s[1]=Math.min(s[1],a,r),s[2]=Math.max(s[2],t,i),s[3]=Math.max(s[3],a,r)}static #e(t,a,i,r,s,n,l,o,c,h){if(c<=0||c>=1)return;let u=1-c,d=c*c,f=d*c,g=u*(u*(u*t+3*c*a)+3*d*i)+f*r,p=u*(u*(u*s+3*c*n)+3*d*l)+f*o;h[0]=Math.min(h[0],g),h[1]=Math.min(h[1],p),h[2]=Math.max(h[2],g),h[3]=Math.max(h[3],p)}static #t(t,a,i,r,s,n,l,o,c,h,u,d){if(1e-12>Math.abs(c)){Math.abs(h)>=1e-12&&this.#e(t,a,i,r,s,n,l,o,-u/h,d);return}let f=h**2-4*u*c;if(f<0)return;let g=Math.sqrt(f),p=2*c;this.#e(t,a,i,r,s,n,l,o,(-h+g)/p,d),this.#e(t,a,i,r,s,n,l,o,(-h-g)/p,d)}static bezierBoundingBox(t,a,i,r,s,n,l,o,c){c[0]=Math.min(c[0],t,l),c[1]=Math.min(c[1],a,o),c[2]=Math.max(c[2],t,l),c[3]=Math.max(c[3],a,o),this.#t(t,i,s,l,a,r,n,o,3*(3*(i-s)-t+l),6*(t-2*i+s),3*(i-t),c),this.#t(t,i,s,l,a,r,n,o,3*(3*(r-n)-a+o),6*(a-2*r+n),3*(r-a),c)}}let N=[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(t,a=!1){if(t[0]>="\xef"){let i;if("\xfe"===t[0]&&"\xff"===t[1]?(i="utf-16be",t.length%2==1&&(t=t.slice(0,-1))):"\xff"===t[0]&&"\xfe"===t[1]?(i="utf-16le",t.length%2==1&&(t=t.slice(0,-1))):"\xef"===t[0]&&"\xbb"===t[1]&&"\xbf"===t[2]&&(i="utf-8"),i)try{let r=new TextDecoder(i,{fatal:!0}),s=I(t),n=r.decode(s);return a||!n.includes("\x1b")?n:n.replaceAll(/\x1b[^\x1b]*(?:\x1b|$)/g,"")}catch(t){f(`stringToPDFString: "${t}".`)}}let i=[];for(let r=0,s=t.length;r<s;r++){let n=t.charCodeAt(r);if(!a&&27===n){for(;++r<s&&27!==t.charCodeAt(r););continue}let l=N[n];i.push(l?String.fromCharCode(l):t.charAt(r))}return i.join("")}function O(t){return decodeURIComponent(escape(t))}function P(t){return unescape(encodeURIComponent(t))}function E(t,a){if(t.length!==a.length)return!1;for(let i=0,r=t.length;i<r;i++)if(t[i]!==a[i])return!1;return!0}function _(t=new Date){return t instanceof Date||(t=new Date(t)),[t.getUTCFullYear().toString(),(t.getUTCMonth()+1).toString().padStart(2,"0"),t.getUTCDate().toString().padStart(2,"0"),t.getUTCHours().toString().padStart(2,"0"),t.getUTCMinutes().toString().padStart(2,"0"),t.getUTCSeconds().toString().padStart(2,"0")].join("")}let L=null,U=null;function q(t,a,i){return Math.min(Math.max(t,a),i)}"function"!=typeof Math.sumPrecise&&(Math.sumPrecise=function(t){return t.reduce((t,a)=>t+a,0)});let j=Symbol("CIRCULAR_REF"),$=Symbol("EOF"),H=Object.create(null),z=Object.create(null),G=Object.create(null);class W{constructor(t){this.name=t}static get(t){return z[t]||=new W(t)}}class V{constructor(t){this.cmd=t}static get(t){return H[t]||=new V(t)}}let X=function(){return X};class K{constructor(t=null){this._map=new Map,this.xref=t,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=X}assignXref(t){this.xref=t}get size(){return this._map.size}get(t,a,i){let r=this._map.get(t);return void 0===r&&void 0!==a&&void 0===(r=this._map.get(a))&&void 0!==i&&(r=this._map.get(i)),r instanceof Y&&this.xref?this.xref.fetch(r,this.suppressEncryption):r}async getAsync(t,a,i){let r=this._map.get(t);return void 0===r&&void 0!==a&&void 0===(r=this._map.get(a))&&void 0!==i&&(r=this._map.get(i)),r instanceof Y&&this.xref?this.xref.fetchAsync(r,this.suppressEncryption):r}getArray(t,a,i){let r=this._map.get(t);if(void 0===r&&void 0!==a&&void 0===(r=this._map.get(a))&&void 0!==i&&(r=this._map.get(i)),r instanceof Y&&this.xref&&(r=this.xref.fetch(r,this.suppressEncryption)),Array.isArray(r)){r=r.slice();for(let t=0,a=r.length;t<a;t++)r[t]instanceof Y&&this.xref&&(r[t]=this.xref.fetch(r[t],this.suppressEncryption))}return r}getRaw(t){return this._map.get(t)}getKeys(){return[...this._map.keys()]}getRawValues(){return[...this._map.values()]}getRawEntries(){return this._map.entries()}set(t,a){this._map.set(t,a)}setIfNotExists(t,a){this.has(t)||this.set(t,a)}setIfNumber(t,a){"number"==typeof a&&this.set(t,a)}setIfArray(t,a){(Array.isArray(a)||ArrayBuffer.isView(a))&&this.set(t,a)}setIfDefined(t,a){null!=a&&this.set(t,a)}setIfName(t,a){"string"==typeof a?this.set(t,W.get(a)):a instanceof W&&this.set(t,a)}setIfDict(t,a){a instanceof K&&this.set(t,a)}has(t){return this._map.has(t)}*[Symbol.iterator](){for(let[t,a]of this._map)yield[t,a instanceof Y&&this.xref?this.xref.fetch(a,this.suppressEncryption):a]}static get empty(){let t=new K(null);return t.set=(t,a)=>{g("Should not call `set` on the empty dictionary.")},b(this,"empty",t)}static merge({xref:t,dictArray:a,mergeSubDicts:i=!1}){let r=new K(t),s=new Map;for(let t of a)if(t instanceof K)for(let[a,r]of t._map){let t=s.get(a);if(void 0===t)t=[],s.set(a,t);else if(!(i&&r instanceof K))continue;t.push(r)}for(let[a,i]of s){if(1===i.length||!(i[0]instanceof K)){r._map.set(a,i[0]);continue}let s=new K(t);for(let t of i)for(let[a,i]of t._map)s._map.has(a)||s._map.set(a,i);s.size>0&&r._map.set(a,s)}return s.clear(),r.size>0?r:K.empty}clone(){let t=new K(this.xref);for(let a of this.getKeys())t.set(a,this.getRaw(a));return t}delete(t){this._map.delete(t)}}class Y{constructor(t,a){this.num=t,this.gen=a}toString(){return 0===this.gen?`${this.num}R`:`${this.num}R${this.gen}`}static fromString(t){let a=G[t];if(a)return a;let i=/^(\d+)R(\d*)$/.exec(t);return i&&"0"!==i[1]?G[t]=new Y(parseInt(i[1]),i[2]?parseInt(i[2]):0):null}static get(t,a){let i=0===a?`${t}R`:`${t}R${a}`;return G[i]||=new Y(t,a)}}class J{constructor(t=null){this._set=new Set(t?._set)}has(t){return this._set.has(t.toString())}put(t){this._set.add(t.toString())}remove(t){this._set.delete(t.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}class Z{constructor(){this._map=new Map}get size(){return this._map.size}get(t){return this._map.get(t.toString())}has(t){return this._map.has(t.toString())}put(t,a){this._map.set(t.toString(),a)}putAlias(t,a){this._map.set(t.toString(),this.get(a))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}*values(){yield*this._map.values()}*items(){for(let[t,a]of this._map)yield[Y.fromString(t),a]}*keys(){for(let t of this._map.keys())yield Y.fromString(t)}}function Q(t,a){return t instanceof W&&(void 0===a||t.name===a)}function ee(t,a){return t instanceof V&&(void 0===a||t.cmd===a)}function et(t,a){return t instanceof K&&(void 0===a||Q(t.get("Type"),a))}function ea(t,a){return t.num===a.num&&t.gen===a.gen}class ei{get length(){g("Abstract getter `length` accessed")}get isEmpty(){g("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return b(this,"isDataLoaded",!0)}getByte(){g("Abstract method `getByte` called")}getBytes(t){g("Abstract method `getBytes` called")}async getImageData(t,a){return this.getBytes(t,a)}async asyncGetBytes(){g("Abstract method `asyncGetBytes` called")}get isAsync(){return!1}get isAsyncDecoder(){return!1}get isImageStream(){return!1}get canAsyncDecodeImageFromBuffer(){return!1}async getTransferableImage(){return null}peekByte(){let t=this.getByte();return -1!==t&&this.pos--,t}peekBytes(t){let a=this.getBytes(t);return this.pos-=a.length,a}getUint16(){let t=this.getByte(),a=this.getByte();return -1===t||-1===a?-1:(t<<8)+a}getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}getByteRange(t,a){g("Abstract method `getByteRange` called")}getString(t){return S(this.getBytes(t))}skip(t){this.pos+=t||1}reset(){g("Abstract method `reset` called")}moveStart(){g("Abstract method `moveStart` called")}makeSubStream(t,a,i=null){g("Abstract method `makeSubStream` called")}getBaseStreams(){return null}getOriginalStream(){return this.stream?.getOriginalStream()||this}}let er=/^[1-9]\.\d$/,es=0x80000000-1,en=[1,0,0,1,0,0],el=["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"],eo=["ExtGState","Font","Properties","XObject"];function ec(t){let a;return function(){return t&&(a=Object.create(null),t(a),t=null),a}}class eh extends y{constructor(t,a){super(`Missing data [${t}, ${a})`,"MissingDataException"),this.begin=t,this.end=a}}class eu extends y{constructor(t){super(t,"ParserEOFException")}}class ed extends y{constructor(t){super(t,"XRefEntryException")}}class ef extends y{constructor(t){super(t,"XRefParseException")}}function eg(t){let a=t.length;if(0===a)return new Uint8Array(0);if(1===a)return new Uint8Array(t[0]);let i=0;for(let r=0;r<a;r++)i+=t[r].byteLength;let r=new Uint8Array(i),s=0;for(let i=0;i<a;i++){let a=new Uint8Array(t[i]);r.set(a,s),s+=a.byteLength}return r}async function ep(t){let a=await fetch(t);if(!a.ok)throw Error(`Failed to fetch file "${t}" with "${a.statusText}".`);return new Uint8Array(await a.arrayBuffer())}function em({dict:t,key:a,getArray:i=!1,stopWhenFound:r=!0}){let s,n=new J;for(;t instanceof K&&(!t.objId||!n.has(t.objId));){t.objId&&n.put(t.objId);let l=i?t.getArray(a):t.get(a);if(void 0!==l){if(r)return l;(s||=[]).push(l)}t=t.get("Parent")}return s}let eb=["","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 ey(t){return t>0?Math.ceil(Math.log2(t)):0}function ew(t,a){return t[a]<<24>>24}function ex(t,a){return(t[a]<<24|t[a+1]<<16)>>16}function ek(t,a){return t[a]<<8|t[a+1]}function ev(t,a){return(t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3])>>>0}function eA(t){return 32===t||9===t||13===t||10===t}function eC(t,a){return Array.isArray(t)?(null===a||t.length===a)&&t.every(t=>"number"==typeof t):ArrayBuffer.isView(t)&&!(t instanceof BigInt64Array||t instanceof BigUint64Array)&&(null===a||t.length===a)}function eS(t,a){return eC(t,6)?t:a}function eI(t,a){return eC(t,4)?t:a}function eB(t,a){return eC(t,4)?R.normalizeRect(t):a}function eF(t){let a=/(.+)\[(\d+)\]$/;return t.split(".").map(t=>{let i=t.match(a);return i?{name:i[1],pos:parseInt(i[2],10)}:{name:t,pos:0}})}function eM(t){let a=[],i=0;for(let r=0,s=t.length;r<s;r++){let s=t.charCodeAt(r);(s<33||s>126||35===s||40===s||41===s||60===s||62===s||91===s||93===s||123===s||125===s||47===s||37===s)&&(i<r&&a.push(t.substring(i,r)),a.push(`#${s.toString(16)}`),i=r+1)}return 0===a.length?t:(i<t.length&&a.push(t.substring(i,t.length)),a.join(""))}function eT(t){return t.replaceAll(/([()\\\n\r])/g,t=>"\n"===t?"\\n":"\r"===t?"\\r":`\\${t}`)}function eR(t,a,i,r){if(!t)return;let s=null;if(t instanceof Y){if(r.has(t))return;s=t,r.put(s),t=a.fetch(t)}if(Array.isArray(t))for(let s of t)eR(s,a,i,r);else if(t instanceof K){if(Q(t.get("S"),"JavaScript")){let a,r=t.get("JS");r instanceof ei?a=r.getString():"string"==typeof r&&(a=r),(a&&=D(a,!0).replaceAll("\0",""))&&i.push(a.trim())}eR(t.getRaw("Next"),a,i,r)}s&&r.remove(s)}function eN(t,a,i){let r=Object.create(null),s=em({dict:a,key:"AA",stopWhenFound:!1});if(s)for(let a=s.length-1;a>=0;a--){let n=s[a];if(n instanceof K)for(let a of n.getKeys()){let s=i[a];if(!s)continue;let l=[];eR(n.getRaw(a),t,l,new J),l.length>0&&(r[s]=l)}}if(a.has("A")){let i=[];eR(a.get("A"),t,i,new J),i.length>0&&(r.Action=i)}return F(r)>0?r:null}let eD={60:"&lt;",62:"&gt;",38:"&amp;",34:"&quot;",39:"&apos;"};function eO(t){let a=[],i=0;for(let r=0,s=t.length;r<s;r++){let s=t.codePointAt(r);if(32<=s&&s<=126){let n=eD[s];n&&(i<r&&a.push(t.substring(i,r)),a.push(n),i=r+1)}else i<r&&a.push(t.substring(i,r)),a.push(`&#x${s.toString(16).toUpperCase()};`),s>55295&&(s<57344||s>65533)&&r++,i=r+1}return 0===a.length?t:(i<t.length&&a.push(t.substring(i,t.length)),a.join(""))}function eP(t,a=!1){let i=/^("|').*("|')$/.exec(t);if(i&&i[1]===i[2]){if(RegExp(`[^\\\\]${i[1]}`).test(t.slice(1,-1)))return a&&f(`FontFamily contains unescaped ${i[1]}: ${t}.`),!1}else for(let i of t.split(/[ \t]+/))if(/^(\d|(-(\d|-)))/.test(i)||!/^[\w-\\]+$/.test(i))return a&&f(`FontFamily contains invalid <custom-ident>: ${t}.`),!1;return!0}function eE(t){let a=RegExp("^\\s*("+"app.launchURL|window.open|xfa.host.gotoURL".replaceAll(".","\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec(t);return a?.[2]?{url:a[2],newWindow:"app.launchURL"===a[1]&&"true"===a[3]}:null}function e_(t){if(Number.isInteger(t))return t.toString();let a=Math.round(100*t);return a%100==0?(a/100).toString():a%10==0?t.toFixed(1):t.toFixed(2)}function eL(t){if(!t)return null;let a=new Map;for(let[i,s]of t){if(!i.startsWith(r))continue;let t=a.get(s.pageIndex);t||(t=[],a.set(s.pageIndex,t)),t.push(s)}return a.size>0?a:null}function eU(t){return null==t||"string"==typeof t&&(!t||/^[\x00-\x7F]*$/.test(t))?t:eq(t,!0)}function eq(t,a=!1){let i=[];a&&i.push("\xfe\xff");for(let a=0,r=t.length;a<r;a++){let r=t.charCodeAt(a);i.push(String.fromCharCode(r>>8&255),String.fromCharCode(255&r))}return i.join("")}function ej(t,a,i){switch(t){case 90:return[0,1,-1,0,a,0];case 180:return[-1,0,0,-1,a,i];case 270:return[0,-1,1,0,0,i];default:throw Error("Invalid rotation")}}function e$(t){return Math.ceil(Math.ceil(Math.log2(1+t))/8)}class eH{static #a=null;static _memory=null;static _mustAddAlpha=!1;static _destBuffer=null;static _destOffset=0;static _destLength=0;static _cssColor="";static _makeHexColor=null;static get _memoryArray(){let t=this.#a;return t?.byteLength?t:this.#a=new Uint8Array(this._memory.buffer)}}let ez="u">typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"u">typeof TextDecoder&&ez.decode();let eG=null;function eW(){return null!==eG&&0!==eG.byteLength||(eG=new Uint8Array(t.memory.buffer)),eG}let eV=0;function eX(t,a){let i=a(+t.length,1)>>>0;return eW().set(t,i/1),eV=t.length,i}let eK=Object.freeze({RGB8:0,0:"RGB8",RGBA8:1,1:"RGBA8",BGRA8:2,2:"BGRA8",Gray8:3,3:"Gray8",GrayA8:4,4:"GrayA8",CMYK:5,5:"CMYK"}),eY=Object.freeze({Perceptual:0,0:"Perceptual",RelativeColorimetric:1,1:"RelativeColorimetric",Saturation:2,2:"Saturation",AbsoluteColorimetric:3,3:"AbsoluteColorimetric"});function eJ(){let a={wbg:{}};return a.wbg.__wbg_copyresult_b08ee7d273f295dd=function(t,a){!function(t,a){let{_mustAddAlpha:i,_destBuffer:r,_destOffset:s,_destLength:n,_memoryArray:l}=eH;if(a!==n)if(i)for(let i=t,n=t+a,o=s;i<n;i+=3,o+=4)r[o]=l[i],r[o+1]=l[i+1],r[o+2]=l[i+2],r[o+3]=255;else for(let i=t,n=t+a,o=s;i<n;i+=3,o+=4)r[o]=l[i],r[o+1]=l[i+1],r[o+2]=l[i+2];else r.set(l.subarray(t,t+a),s)}(t>>>0,a>>>0)},a.wbg.__wbg_copyrgb_d60ce17bb05d9b67=function(t){!function(t){let{_destBuffer:a,_destOffset:i,_memoryArray:r}=eH;a[i]=r[t],a[i+1]=r[t+1],a[i+2]=r[t+2]}(t>>>0)},a.wbg.__wbg_makecssRGB_893bf0cd9fdb302d=function(t){!function(t){let{_memoryArray:a}=eH;eH._cssColor=eH._makeHexColor(a[t],a[t+1],a[t+2])}(t>>>0)},a.wbg.__wbindgen_init_externref_table=function(){let a=t.__wbindgen_export_0,i=a.grow(4);a.set(0,void 0),a.set(i+0,void 0),a.set(i+1,null),a.set(i+2,!0),a.set(i+3,!1)},a.wbg.__wbindgen_throw=function(t,a){var i;throw Error((i=t>>>0,ez.decode(eW().subarray(i,i+a))))},a}function eZ(a,i){return t=a.exports,eQ.__wbindgen_wasm_module=i,eG=null,t.__wbindgen_start(),t}async function eQ(a){if(void 0!==t)return t;void 0!==a&&(Object.getPrototypeOf(a)===Object.prototype?{module_or_path:a}=a:console.warn("using deprecated parameters for the initialization function; pass a single object instead"));let i=eJ();("string"==typeof a||"function"==typeof Request&&a instanceof Request||"function"==typeof URL&&a instanceof URL)&&(a=fetch(a));let{instance:r,module:s}=await async function(t,a){if("function"==typeof Response&&t instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(t,a)}catch(a){if("application/wasm"==t.headers.get("Content-Type"))throw a;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",a)}let i=await t.arrayBuffer();return await WebAssembly.instantiate(i,a)}{let i=await WebAssembly.instantiate(t,a);return i instanceof WebAssembly.Instance?{instance:i,module:t}:i}}(await a,i);return eZ(r,s)}class e1{static #i=new Uint8ClampedArray(3);constructor(t,a){this.name=t,this.numComps=a}getRgb(t,a,i=new Uint8ClampedArray(3)){return this.getRgbItem(t,a,i,0),i}getRgbHex(t,a){let i=this.getRgb(t,a,e1.#i);return R.makeHexColor(i[0],i[1],i[2])}getRgbItem(t,a,i,r){g("Should not call ColorSpace.getRgbItem")}getRgbBuffer(t,a,i,r,s,n,l){g("Should not call ColorSpace.getRgbBuffer")}getOutputLength(t,a){g("Should not call ColorSpace.getOutputLength")}isPassthrough(t){return!1}isDefaultDecode(t,a){return e1.isDefaultDecode(t,this.numComps)}fillRgb(t,a,i,r,s,n,l,o,c){let h=a*i,u=null,d=1<<l,f=i!==s||a!==r;if(this.isPassthrough(l))u=o;else if(1===this.numComps&&h>d&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){let a=l<=8?new Uint8Array(d):new Uint16Array(d);for(let t=0;t<d;t++)a[t]=t;let i=new Uint8ClampedArray(3*d);if(this.getRgbBuffer(a,0,d,i,0,l,0),f){u=new Uint8Array(3*h);let t=0;for(let a=0;a<h;++a){let r=3*o[a];u[t++]=i[r],u[t++]=i[r+1],u[t++]=i[r+2]}}else{let a=0;for(let r=0;r<h;++r){let s=3*o[r];t[a++]=i[s],t[a++]=i[s+1],t[a++]=i[s+2],a+=c}}}else f?(u=new Uint8ClampedArray(3*h),this.getRgbBuffer(o,0,h,u,0,l,0)):this.getRgbBuffer(o,0,r*n,t,0,l,c);if(u)if(f)!function(t,a,i,r,s,n,l){l=1!==l?0:l;let o=i/s,c=r/n,h,u=0,d=new Uint16Array(s),f=3*i;for(let t=0;t<s;t++)d[t]=3*Math.floor(t*o);for(let i=0;i<n;i++){let r=Math.floor(i*c)*f;for(let i=0;i<s;i++)h=r+d[i],a[u++]=t[h++],a[u++]=t[h++],a[u++]=t[h++],u+=l}}(u,t,a,i,r,s,c);else{let a=0,i=0;for(let s=0,l=r*n;s<l;s++)t[a++]=u[i++],t[a++]=u[i++],t[a++]=u[i++],a+=c}}get usesZeroToOneRange(){return b(this,"usesZeroToOneRange",!0)}static isDefaultDecode(t,a){if(!Array.isArray(t))return!0;if(2*a!==t.length)return f("The decode map is not the correct length"),!0;for(let a=0,i=t.length;a<i;a+=2)if(0!==t[a]||1!==t[a+1])return!1;return!0}}class e0 extends e1{constructor(t,a,i){super("Alternate",t),this.base=a,this.tintFn=i,this.tmpBuf=new Float32Array(a.numComps)}getRgbItem(t,a,i,r){let s=this.tmpBuf;this.tintFn(t,a,s,0),this.base.getRgbItem(s,0,i,r)}getRgbBuffer(t,a,i,r,s,n,l){let o,c,h=this.tintFn,u=this.base,d=1/((1<<n)-1),f=u.numComps,g=u.usesZeroToOneRange,p=(u.isPassthrough(8)||!g)&&0===l,m=p?s:0,b=p?r:new Uint8ClampedArray(f*i),y=this.numComps,w=new Float32Array(y),x=new Float32Array(f);for(o=0;o<i;o++){for(c=0;c<y;c++)w[c]=t[a++]*d;if(h(w,0,x,0),g)for(c=0;c<f;c++)b[m++]=255*x[c];else u.getRgbItem(x,0,b,m),m+=f}p||u.getRgbBuffer(b,0,i,r,s,8,l)}getOutputLength(t,a){return this.base.getOutputLength(t*this.base.numComps/this.numComps,a)}}class e2 extends e1{constructor(t){super("Pattern",null),this.base=t}isDefaultDecode(t,a){g("Should not call PatternCS.isDefaultDecode")}}class e9 extends e1{constructor(t,a,i){super("Indexed",1),this.base=t,this.highVal=a;const r=t.numComps*(a+1);if(this.lookup=new Uint8Array(r),i instanceof ei){const t=i.getBytes(r);this.lookup.set(t)}else{if("string"!=typeof i)throw new A(`IndexedCS - unrecognized lookup table: ${i}`);for(let t=0;t<r;++t)this.lookup[t]=255&i.charCodeAt(t)}}getRgbItem(t,a,i,r){let{base:s,highVal:n,lookup:l}=this,o=q(Math.round(t[a]),0,n)*s.numComps;s.getRgbBuffer(l,o,1,i,r,8,0)}getRgbBuffer(t,a,i,r,s,n,l){let{base:o,highVal:c,lookup:h}=this,{numComps:u}=o,d=o.getOutputLength(u,l);for(let n=0;n<i;++n){let i=q(Math.round(t[a++]),0,c)*u;o.getRgbBuffer(h,i,1,r,s,8,l),s+=d}}getOutputLength(t,a){return this.base.getOutputLength(t*this.base.numComps,a)}isDefaultDecode(t,a){return!Array.isArray(t)||(2!==t.length?(f("Decode map length is not correct"),!0):!Number.isInteger(a)||a<1?(f("Bits per component is not correct"),!0):0===t[0]&&t[1]===(1<<a)-1)}}class e5 extends e1{constructor(){super("DeviceGray",1)}getRgbItem(t,a,i,r){let s=255*t[a];i[r]=i[r+1]=i[r+2]=s}getRgbBuffer(t,a,i,r,s,n,l){let o=255/((1<<n)-1),c=a,h=s;for(let a=0;a<i;++a){let a=o*t[c++];r[h++]=a,r[h++]=a,r[h++]=a,h+=l}}getOutputLength(t,a){return t*(3+a)}}class e3 extends e1{constructor(){super("DeviceRGB",3)}getRgbItem(t,a,i,r){i[r]=255*t[a],i[r+1]=255*t[a+1],i[r+2]=255*t[a+2]}getRgbBuffer(t,a,i,r,s,n,l){if(8===n&&0===l)return void r.set(t.subarray(a,a+3*i),s);let o=255/((1<<n)-1),c=a,h=s;for(let a=0;a<i;++a)r[h++]=o*t[c++],r[h++]=o*t[c++],r[h++]=o*t[c++],h+=l}getOutputLength(t,a){return t*(3+a)/3|0}isPassthrough(t){return 8===t}}class e6 extends e1{constructor(){super("DeviceRGBA",4)}getOutputLength(t,a){return 4*t}isPassthrough(t){return 8===t}fillRgb(t,a,i,r,s,n,l,o,c){i!==s||a!==r?function(t,a,i,r,s,n,l){let o=i/s,c=r/n,h=0,u=new Uint16Array(s);if(1===l){for(let t=0;t<s;t++)u[t]=Math.floor(t*o);let r=new Uint32Array(t.buffer),l=new Uint32Array(a.buffer),d=M.isLittleEndian?0xffffff:0xffffff00;for(let t=0;t<n;t++){let a=r.subarray(Math.floor(t*c)*i);for(let t=0;t<s;t++)l[h++]|=a[u[t]]&d}}else{let r=4*i;for(let t=0;t<s;t++)u[t]=4*Math.floor(t*o);for(let i=0;i<n;i++){let n=t.subarray(Math.floor(i*c)*r);for(let t=0;t<s;t++){let i=u[t];a[h++]=n[i],a[h++]=n[i+1],a[h++]=n[i+2]}}}}(o,t,a,i,r,s,c):function(t,a,i){if(1===i){let i=new Uint32Array(t.buffer),r=new Uint32Array(a.buffer),s=M.isLittleEndian?0xffffff:0xffffff00;for(let t=0,a=i.length;t<a;t++)r[t]|=i[t]&s}else{let i=0;for(let r=0,s=t.length;r<s;r+=4)a[i++]=t[r],a[i++]=t[r+1],a[i++]=t[r+2]}}(o,t,c)}}class e7 extends e1{constructor(){super("DeviceCMYK",4)}#r(t,a,i,r,s){let n=t[a]*i,l=t[a+1]*i,o=t[a+2]*i,c=t[a+3]*i;r[s]=255+n*(-4.387332384609988*n+54.48615194189176*l+18.82290502165302*o+212.25662451639585*c-285.2331026137004)+l*(1.7149763477362134*l-5.6096736904047315*o+-17.873870861415444*c-5.497006427196366)+o*(-2.5217340131683033*o-21.248923337353073*c+17.5119270841813)+c*(-21.86122147463605*c-189.48180835922747),r[s+1]=255+n*(8.841041422036149*n+60.118027045597366*l+6.871425592049007*o+31.159100130055922*c-79.2970844816548)+l*(-15.310361306967817*l+17.575251261109482*o+131.35250912493976*c-190.9453302588951)+o*(4.444339102852739*o+9.8632861493405*c-24.86741582555878)+c*(-20.737325471181034*c-187.80453709719578),r[s+2]=255+n*(.8842522430003296*n+8.078677503112928*l+30.89978309703729*o-.23883238689178934*c-14.183576799673286)+l*(10.49593273432072*l+63.02378494754052*o+50.606957656360734*c-112.23884253719248)+o*(.03296041114873217*o+115.60384449646641*c-193.58209356861505)+c*(-22.33816807309886*c-180.12613974708367)}getRgbItem(t,a,i,r){this.#r(t,a,1,i,r)}getRgbBuffer(t,a,i,r,s,n,l){let o=1/((1<<n)-1);for(let n=0;n<i;n++)this.#r(t,a,o,r,s),a+=4,s+=3+l}getOutputLength(t,a){return t/4*(3+a)|0}}class e8 extends e1{constructor(t,a,i){if(super("CalGray",1),!t)throw new A("WhitePoint missing - required for color space CalGray");if([this.XW,this.YW,this.ZW]=t,[this.XB,this.YB,this.ZB]=a||[0,0,0],this.G=i||1,this.XW<0||this.ZW<0||1!==this.YW)throw new A(`Invalid WhitePoint components for ${this.name}, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&(d(`Invalid BlackPoint for ${this.name}, falling back to default.`),this.XB=this.YB=this.ZB=0),0===this.XB&&0===this.YB&&0===this.ZB||f(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`),this.G<1&&(d(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`),this.G=1)}#r(t,a,i,r,s){let n=(t[a]*s)**this.G,l=Math.max(295.8*(this.YW*n)**.3333333333333333-40.8,0);i[r]=l,i[r+1]=l,i[r+2]=l}getRgbItem(t,a,i,r){this.#r(t,a,i,r,1)}getRgbBuffer(t,a,i,r,s,n,l){let o=1/((1<<n)-1);for(let n=0;n<i;++n)this.#r(t,a,r,s,o),a+=1,s+=3+l}getOutputLength(t,a){return t*(3+a)}}class e4 extends e1{static #s=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]);static #n=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]);static #l=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]);static #o=new Float32Array([1,1,1]);static #c=new Float32Array(3);static #h=new Float32Array(3);static #u=new Float32Array(3);static #d=(24/116)**3/8;constructor(t,a,i,r){if(super("CalRGB",3),!t)throw new A("WhitePoint missing - required for color space CalRGB");const[s,n,l]=this.whitePoint=t,[o,c,h]=this.blackPoint=a||new Float32Array(3);if([this.GR,this.GG,this.GB]=i||new Float32Array([1,1,1]),[this.MXA,this.MYA,this.MZA,this.MXB,this.MYB,this.MZB,this.MXC,this.MYC,this.MZC]=r||new Float32Array([1,0,0,0,1,0,0,0,1]),s<0||l<0||1!==n)throw new A(`Invalid WhitePoint components for ${this.name}, no fallback available`);(o<0||c<0||h<0)&&(d(`Invalid BlackPoint for ${this.name} [${o}, ${c}, ${h}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&(d(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}#f(t,a,i){i[0]=t[0]*a[0]+t[1]*a[1]+t[2]*a[2],i[1]=t[3]*a[0]+t[4]*a[1]+t[5]*a[2],i[2]=t[6]*a[0]+t[7]*a[1]+t[8]*a[2]}#g(t,a,i){i[0]=a[0]/t[0],i[1]=a[1]/t[1],i[2]=a[2]/t[2]}#p(t,a,i){i[0]=.95047*a[0]/t[0],i[1]=a[1]/t[1],i[2]=1.08883*a[2]/t[2]}#m(t){return t<=.0031308?q(12.92*t,0,1):t>=.99554525?1:q(1.055*t**(1/2.4)-.055,0,1)}#b(t){return t<0?-this.#b(-t):t>8?((t+16)/116)**3:t*e4.#d}#y(t,a,i){if(0===t[0]&&0===t[1]&&0===t[2]){i[0]=a[0],i[1]=a[1],i[2]=a[2];return}let r=this.#b(0),s=(1-r)/(1-this.#b(t[0])),n=(1-r)/(1-this.#b(t[1])),l=(1-r)/(1-this.#b(t[2]));i[0]=a[0]*s+(1-s),i[1]=a[1]*n+(1-n),i[2]=a[2]*l+(1-l)}#w(t,a,i){if(1===t[0]&&1===t[2]){i[0]=a[0],i[1]=a[1],i[2]=a[2];return}this.#f(e4.#s,a,i);let r=e4.#c;this.#g(t,i,r),this.#f(e4.#n,r,i)}#x(t,a,i){this.#f(e4.#s,a,i);let r=e4.#c;this.#p(t,i,r),this.#f(e4.#n,r,i)}#r(t,a,i,r,s){let n=q(t[a]*s,0,1),l=q(t[a+1]*s,0,1),o=q(t[a+2]*s,0,1),c=1===n?1:n**this.GR,h=1===l?1:l**this.GG,u=1===o?1:o**this.GB,d=this.MXA*c+this.MXB*h+this.MXC*u,f=this.MYA*c+this.MYB*h+this.MYC*u,g=this.MZA*c+this.MZB*h+this.MZC*u,p=e4.#h;p[0]=d,p[1]=f,p[2]=g;let m=e4.#u;this.#w(this.whitePoint,p,m);let b=e4.#h;this.#y(this.blackPoint,m,b);let y=e4.#u;this.#x(e4.#o,b,y);let w=e4.#h;this.#f(e4.#l,y,w),i[r]=255*this.#m(w[0]),i[r+1]=255*this.#m(w[1]),i[r+2]=255*this.#m(w[2])}getRgbItem(t,a,i,r){this.#r(t,a,i,r,1)}getRgbBuffer(t,a,i,r,s,n,l){let o=1/((1<<n)-1);for(let n=0;n<i;++n)this.#r(t,a,r,s,o),a+=3,s+=3+l}getOutputLength(t,a){return t*(3+a)/3|0}}class te extends e1{constructor(t,a,i){if(super("Lab",3),!t)throw new A("WhitePoint missing - required for color space Lab");if([this.XW,this.YW,this.ZW]=t,[this.amin,this.amax,this.bmin,this.bmax]=i||[-100,100,-100,100],[this.XB,this.YB,this.ZB]=a||[0,0,0],this.XW<0||this.ZW<0||1!==this.YW)throw new A("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&(d("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&(d("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}#k(t){return t>=6/29?t**3:108/841*(t-4/29)}#v(t,a,i,r){return i+t*(r-i)/a}#r(t,a,i,r,s){let n,l,o,c=t[a],h=t[a+1],u=t[a+2];!1!==i&&(c=this.#v(c,i,0,100),h=this.#v(h,i,this.amin,this.amax),u=this.#v(u,i,this.bmin,this.bmax)),h>this.amax?h=this.amax:h<this.amin&&(h=this.amin),u>this.bmax?u=this.bmax:u<this.bmin&&(u=this.bmin);let d=(c+16)/116,f=d+h/500,g=d-u/200,p=this.XW*this.#k(f),m=this.YW*this.#k(d),b=this.ZW*this.#k(g);this.ZW<1?(n=3.1339*p+-1.617*m+-.4906*b,l=-.9785*p+1.916*m+.0333*b,o=.072*p+-.229*m+1.4057*b):(n=3.2406*p+-1.5372*m+-.4986*b,l=-.9689*p+1.8758*m+.0415*b,o=.0557*p+-.204*m+1.057*b),r[s]=255*Math.sqrt(n),r[s+1]=255*Math.sqrt(l),r[s+2]=255*Math.sqrt(o)}getRgbItem(t,a,i,r){this.#r(t,a,!1,i,r)}getRgbBuffer(t,a,i,r,s,n,l){let o=(1<<n)-1;for(let n=0;n<i;n++)this.#r(t,a,o,r,s),a+=3,s+=3+l}getOutputLength(t,a){return t*(3+a)/3|0}isDefaultDecode(t,a){return!0}get usesZeroToOneRange(){return b(this,"usesZeroToOneRange",!1)}}function tt(t){let a=new XMLHttpRequest;return a.open("GET",t,!1),a.responseType="arraybuffer",a.send(null),a.response}class ta extends e1{#A;#C;static #S=!0;static #I=null;static #B=null;constructor(a,i,r){let s;if(!ta.isUsable)throw Error("No ICC color space support");switch(super(i,r),r){case 1:s=eK.Gray8,this.#C=(a,i,r)=>{var s,n;return s=this.#A,n=255*a[i],void t.qcms_convert_one(s,n,r)};break;case 3:s=eK.RGB8,this.#C=(a,i,r)=>{var s,n,l,o;return s=this.#A,n=255*a[i],l=255*a[i+1],o=255*a[i+2],void t.qcms_convert_three(s,n,l,o,r)};break;case 4:s=eK.CMYK,this.#C=(a,i,r)=>{var s,n,l,o,c;return s=this.#A,n=255*a[i],l=255*a[i+1],o=255*a[i+2],c=255*a[i+3],void t.qcms_convert_four(s,n,l,o,c,r)};break;default:throw Error(`Unsupported number of components: ${r}`)}if(this.#A=function(a,i,r){let s=eX(a,t.__wbindgen_malloc),n=eV;return t.qcms_transformer_from_memory(s,n,i,r)>>>0}(a,s,eY.Perceptual),!this.#A)throw Error("Failed to create ICC color space");ta.#B||=new FinalizationRegistry(a=>{t.qcms_drop_transformer(a)}),ta.#B.register(this,this.#A)}getRgbHex(t,a){return this.#C(t,a,!0),eH._cssColor}getRgbItem(t,a,i,r){eH._destBuffer=i,eH._destOffset=r,eH._destLength=3,this.#C(t,a,!1),eH._destBuffer=null}getRgbBuffer(a,i,r,s,n,l,o){var c;let h,u;if(a=a.subarray(i,i+r*this.numComps),8!==l){let t=255/((1<<l)-1);for(let i=0,r=a.length;i<r;i++)a[i]*=t}eH._mustAddAlpha=o&&s.buffer===a.buffer,eH._destBuffer=s,eH._destOffset=n,eH._destLength=r*(3+o),c=this.#A,h=eX(a,t.__wbindgen_malloc),u=eV,t.qcms_convert_array(c,h,u),eH._mustAddAlpha=!1,eH._destBuffer=null}getOutputLength(t,a){return t/this.numComps*(3+a)|0}static setOptions({useWasm:t,useWorkerFetch:a,wasmUrl:i}){a?(this.#S=t,this.#I=i):this.#S=!1}static get isUsable(){let a=!1;if(this.#S)if(this.#I)try{this._module=function(a){if(void 0!==t)return t;void 0!==a&&(Object.getPrototypeOf(a)===Object.prototype?{module:a}=a:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let i=eJ();return a instanceof WebAssembly.Module||(a=new WebAssembly.Module(a)),eZ(new WebAssembly.Instance(a,i),a)}({module:tt(`${this.#I}qcms_bg.wasm`)}),a=!!this._module,eH._memory=this._module.memory,eH._makeHexColor=R.makeHexColor}catch(t){f(`ICCBased color space: "${t}".`)}else f("No ICC color space support due to missing `wasmUrl` API option");return b(this,"isUsable",a)}}class ti extends ta{static #F;constructor(){super(new Uint8Array(tt(`${ti.#F}CGATS001Compat-v2-micro.icc`)),"DeviceCMYK",4)}static setOptions({iccUrl:t}){this.#F=t}static get isUsable(){let t=!1;return ta.isUsable&&(this.#F?t=!0:f("No CMYK ICC profile support due to missing `iccUrl` API option")),b(this,"isUsable",t)}}class tr extends ei{constructor(t,a,i,r){super(),this.bytes=t instanceof Uint8Array?t:new Uint8Array(t),this.start=a||0,this.pos=this.start,this.end=a+i||this.bytes.length,this.dict=r}get length(){return this.end-this.start}get isEmpty(){return 0===this.length}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getBytes(t){let a=this.bytes,i=this.pos,r=this.end;if(!t)return this.pos=r,a.subarray(i,r);let s=i+t;return s>r&&(s=r),this.pos=s,a.subarray(i,s)}getByteRange(t,a){return t<0&&(t=0),a>this.end&&(a=this.end),this.bytes.subarray(t,a)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(t,a,i=null){return new tr(this.bytes.buffer,t,a,i)}clone(){return new tr(this.bytes.buffer,this.start,this.end-this.start,this.dict.clone())}}class ts extends tr{constructor(t){super(I(t))}}class tn extends tr{constructor(){super(new Uint8Array(0))}}class tl extends tr{progressiveDataLength=0;_lastSuccessfulEnsureByteChunk=-1;_loadedChunks=new Set;constructor(t,a,i){super(new Uint8Array(t),0,t,null),this.chunkSize=a,this.numChunks=Math.ceil(t/a),this.manager=i}getMissingChunks(){let t=[];for(let a=0,i=this.numChunks;a<i;++a)this._loadedChunks.has(a)||t.push(a);return t}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(t,a){let i=this.chunkSize;if(t%i!=0)throw Error(`Bad begin offset: ${t}`);let r=t+a.byteLength;if(r%i!=0&&r!==this.bytes.length)throw Error(`Bad end offset: ${r}`);this.bytes.set(new Uint8Array(a),t);let s=Math.floor(t/i),n=Math.floor((r-1)/i)+1;for(let t=s;t<n;++t)this._loadedChunks.add(t)}onReceiveProgressiveData(t){let a=this.progressiveDataLength,i=Math.floor(a/this.chunkSize);this.bytes.set(new Uint8Array(t),a),a+=t.byteLength,this.progressiveDataLength=a;let r=a>=this.end?this.numChunks:Math.floor(a/this.chunkSize);for(let t=i;t<r;++t)this._loadedChunks.add(t)}ensureByte(t){if(t<this.progressiveDataLength)return;let a=Math.floor(t/this.chunkSize);if(!(a>this.numChunks)&&a!==this._lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(a))throw new eh(t,t+1);this._lastSuccessfulEnsureByteChunk=a}}ensureRange(t,a){if(t>=a||a<=this.progressiveDataLength)return;let i=Math.floor(t/this.chunkSize);if(i>this.numChunks)return;let r=Math.min(Math.floor((a-1)/this.chunkSize)+1,this.numChunks);for(let s=i;s<r;++s)if(!this._loadedChunks.has(s))throw new eh(t,a)}nextEmptyChunk(t){let a=this.numChunks;for(let i=0;i<a;++i){let r=(t+i)%a;if(!this._loadedChunks.has(r))return r}return null}hasChunk(t){return this._loadedChunks.has(t)}getByte(){let t=this.pos;return t>=this.end?-1:(t>=this.progressiveDataLength&&this.ensureByte(t),this.bytes[this.pos++])}getBytes(t){let a=this.bytes,i=this.pos,r=this.end;if(!t)return r>this.progressiveDataLength&&this.ensureRange(i,r),a.subarray(i,r);let s=i+t;return s>r&&(s=r),s>this.progressiveDataLength&&this.ensureRange(i,s),this.pos=s,a.subarray(i,s)}getByteRange(t,a){return t<0&&(t=0),a>this.end&&(a=this.end),a>this.progressiveDataLength&&this.ensureRange(t,a),this.bytes.subarray(t,a)}makeSubStream(t,a,i=null){function r(){}a?t+a>this.progressiveDataLength&&this.ensureRange(t,t+a):t>=this.progressiveDataLength&&this.ensureByte(t),r.prototype=Object.create(this),r.prototype.getMissingChunks=function(){let t=this.chunkSize,a=Math.floor(this.start/t),i=Math.floor((this.end-1)/t)+1,r=[];for(let t=a;t<i;++t)this._loadedChunks.has(t)||r.push(t);return r},Object.defineProperty(r.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length},configurable:!0});let s=new r;return s.pos=s.start=t,s.end=t+a||this.end,s.dict=i,s}getBaseStreams(){return[this]}}class to{aborted=!1;currRequestId=0;_chunksNeededByRequest=new Map;_loadedStreamCapability=Promise.withResolvers();_promisesByRequest=new Map;_requestsByChunk=new Map;constructor(t,a){this.length=a.length,this.chunkSize=a.rangeChunkSize,this.stream=new tl(this.length,this.chunkSize,this),this.pdfStream=t,this.disableAutoFetch=a.disableAutoFetch,this.msgHandler=a.msgHandler}sendRequest(t,a){let i=this.pdfStream.getRangeReader(t,a),r=[];return new Promise((t,a)=>{let s=({value:n,done:l})=>{try{if(l){t(eg(r)),r=null;return}r.push(n),i.read().then(s,a)}catch(t){a(t)}};i.read().then(s,a)}).then(a=>{this.aborted||this.onReceiveData({chunk:a,begin:t})})}requestAllChunks(t=!1){if(!t){let t=this.stream.getMissingChunks();this._requestChunks(t)}return this._loadedStreamCapability.promise}_requestChunks(t){let a=this.currRequestId++,i=new Set;for(let r of(this._chunksNeededByRequest.set(a,i),t))this.stream.hasChunk(r)||i.add(r);if(0===i.size)return Promise.resolve();let r=Promise.withResolvers();this._promisesByRequest.set(a,r);let s=[];for(let t of i){let i=this._requestsByChunk.get(t);i||(i=[],this._requestsByChunk.set(t,i),s.push(t)),i.push(a)}if(s.length>0)for(let t of this.groupChunks(s)){let a=t.beginChunk*this.chunkSize,i=Math.min(t.endChunk*this.chunkSize,this.length);this.sendRequest(a,i).catch(r.reject)}return r.promise.catch(t=>{if(!this.aborted)throw t})}getStream(){return this.stream}requestRange(t,a){a=Math.min(a,this.length);let i=this.getBeginChunk(t),r=this.getEndChunk(a),s=[];for(let t=i;t<r;++t)s.push(t);return this._requestChunks(s)}requestRanges(t=[]){let a=[];for(let i of t){let t=this.getBeginChunk(i.begin),r=this.getEndChunk(i.end);for(let i=t;i<r;++i)a.includes(i)||a.push(i)}return a.sort((t,a)=>t-a),this._requestChunks(a)}groupChunks(t){let a=[],i=-1,r=-1;for(let s=0,n=t.length;s<n;++s){let n=t[s];i<0&&(i=n),r>=0&&r+1!==n&&(a.push({beginChunk:i,endChunk:r+1}),i=n),s+1===t.length&&a.push({beginChunk:i,endChunk:n+1}),r=n}return a}onReceiveData(t){let{chunkSize:a,length:i,stream:r}=this,s=t.chunk,n=void 0===t.begin,l=n?r.progressiveDataLength:t.begin,o=l+s.byteLength,c=Math.floor(l/a),h=o<i?Math.floor(o/a):Math.ceil(o/a);n?r.onReceiveProgressiveData(s):r.onReceiveData(l,s),r.isDataLoaded&&this._loadedStreamCapability.resolve(r);let u=[];for(let t=c;t<h;++t){let a=this._requestsByChunk.get(t);if(a)for(let i of(this._requestsByChunk.delete(t),a)){let a=this._chunksNeededByRequest.get(i);a.has(t)&&a.delete(t),a.size>0||u.push(i)}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){let t;if(1===r.numChunksLoaded){let a=r.numChunks-1;r.hasChunk(a)||(t=a)}else t=r.nextEmptyChunk(h);Number.isInteger(t)&&this._requestChunks([t])}for(let t of u){let a=this._promisesByRequest.get(t);this._promisesByRequest.delete(t),a.resolve()}this.msgHandler.send("DocProgress",{loaded:r.numChunksLoaded*a,total:i})}onError(t){this._loadedStreamCapability.reject(t)}getBeginChunk(t){return Math.floor(t/this.chunkSize)}getEndChunk(t){return Math.floor((t-1)/this.chunkSize)+1}abort(t){for(let a of(this.aborted=!0,this.pdfStream?.cancelAllRequests(t),this._promisesByRequest.values()))a.reject(t)}}function tc(t){switch(t.kind){case 1:return th(t);case 2:return function({src:t,srcPos:a=0,dest:i,destPos:r=0,width:s,height:n}){let l=0,o=s*n*3,c=o>>2,h=new Uint32Array(t.buffer,a,c);if(M.isLittleEndian){for(;l<c-2;l+=3,r+=4){let t=h[l],a=h[l+1],s=h[l+2];i[r]=0xff000000|t,i[r+1]=t>>>24|a<<8|0xff000000,i[r+2]=a>>>16|s<<16|0xff000000,i[r+3]=s>>>8|0xff000000}for(let s=4*l,n=a+o;s<n;s+=3)i[r++]=t[s]|t[s+1]<<8|t[s+2]<<16|0xff000000}else{for(;l<c-2;l+=3,r+=4){let t=h[l],a=h[l+1],s=h[l+2];i[r]=255|t,i[r+1]=t<<24|a>>>8|255,i[r+2]=a<<16|s>>>16|255,i[r+3]=s<<8|255}for(let s=4*l,n=a+o;s<n;s+=3)i[r++]=t[s]<<24|t[s+1]<<16|t[s+2]<<8|255}return{srcPos:a+o,destPos:r}}(t)}return null}function th({src:t,srcPos:a=0,dest:i,width:r,height:s,nonBlackColor:n=0xffffffff,inverseDecode:l=!1}){let o=M.isLittleEndian?0xff000000:255,[c,h]=l?[n,o]:[o,n],u=r>>3,d=7&r,f=t.length;i=new Uint32Array(i.buffer);let g=0;for(let r=0;r<s;r++){for(let r=a+u;a<r;a++){let r=a<f?t[a]:255;i[g++]=128&r?h:c,i[g++]=64&r?h:c,i[g++]=32&r?h:c,i[g++]=16&r?h:c,i[g++]=8&r?h:c,i[g++]=4&r?h:c,i[g++]=2&r?h:c,i[g++]=1&r?h:c}if(0===d)continue;let r=a<f?t[a++]:255;for(let t=0;t<d;t++)i[g++]=r&1<<7-t?h:c}return{srcPos:a,destPos:g}}class tu{static #M=2048;static #T=M.isImageDecoderSupported;constructor(t,a){this._imgData=t,this._isMask=a}static get canUseImageDecoder(){return b(this,"canUseImageDecoder",this.#T?ImageDecoder.isTypeSupported("image/bmp"):Promise.resolve(!1))}static needsToBeResized(t,a){if(t<=this.#M&&a<=this.#M)return!1;let{MAX_DIM:i}=this;if(t>i||a>i)return!0;let r=t*a;return this._hasMaxArea?r>this.MAX_AREA:!(r<this.#M**2)&&(this._areGoodDims(t,a)?(this.#M=Math.max(this.#M,Math.floor(Math.sqrt(t*a))),!1):(this.#M=this._guessMax(this.#M,i,128,0),r>(this.MAX_AREA=this.#M**2)))}static getReducePowerForJPX(t,a,i){let r=t*a,s=0x40000000/(4*i);if(!this.needsToBeResized(t,a))return r>s?Math.ceil(Math.log2(r/s)):0;let{MAX_DIM:n,MAX_AREA:l}=this;return Math.ceil(Math.log2(Math.max(t/n,a/n,Math.sqrt(r/Math.min(s,l)))))}static get MAX_DIM(){return b(this,"MAX_DIM",this._guessMax(2048,65537,0,1))}static get MAX_AREA(){return this._hasMaxArea=!0,b(this,"MAX_AREA",this._guessMax(this.#M,this.MAX_DIM,128,0)**2)}static set MAX_AREA(t){t>=0&&(this._hasMaxArea=!0,b(this,"MAX_AREA",t))}static setOptions({canvasMaxAreaInBytes:t=-1,isImageDecoderSupported:a=!1}){this._hasMaxArea||(this.MAX_AREA=t>>2),this.#T=a}static _areGoodDims(t,a){try{let i=new OffscreenCanvas(t,a),r=i.getContext("2d");r.fillRect(0,0,1,1);let s=r.getImageData(0,0,1,1).data[3];return i.width=i.height=1,0!==s}catch{return!1}}static _guessMax(t,a,i,r){for(;t+i+1<a;){let i=Math.floor((t+a)/2),s=r||i;this._areGoodDims(i,s)?t=i:a=i}return t}static async createImage(t,a=!1){return new tu(t,a)._createImage()}async _createImage(){let t,a,{_imgData:i}=this,{width:r,height:s}=i;if(r*s*4>es){let t=this.#R();if(t)return t}let n=this._encodeBMP();a=await tu.canUseImageDecoder?(t=new ImageDecoder({data:n,type:"image/bmp",preferAnimation:!1,transfer:[n.buffer]})).decode().catch(t=>(f(`BMP image decoding failed: ${t}`),createImageBitmap(new Blob([this._encodeBMP().buffer],{type:"image/bmp"})))).finally(()=>{t.close()}):createImageBitmap(new Blob([n.buffer],{type:"image/bmp"}));let{MAX_AREA:l,MAX_DIM:o}=tu,c=Math.max(r/o,s/o,Math.sqrt(r*s/l)),h=Math.max(c,2),u=Math.round(10*(c+1.25))/10/h,d=Math.floor(Math.log2(u)),g=Array(d+2).fill(2);g[0]=h,g.splice(-1,1,u/(1<<d));let p=r,m=s,b=await a,y=b.image||b;for(let t of g){let a=p,i=m,r=new OffscreenCanvas(p=Math.floor(p/t)-1,m=Math.floor(m/t)-1);r.getContext("2d").drawImage(y,0,0,a,i,0,0,p,m),y.close(),y=r.transferToImageBitmap()}return i.data=null,i.bitmap=y,i.width=p,i.height=m,i}#R(){let{_imgData:t}=this,{data:a,width:i,height:r,kind:s}=t,n=i*r*4,l=Math.ceil(Math.log2(n/es)),o=i>>l,c=r>>l,h,u=r;try{h=new Uint8Array(n)}catch{let t=Math.floor(Math.log2(n+1));for(;;)try{h=new Uint8Array(2**t-1);break}catch{t-=1}u=Math.floor((2**t-1)/(4*i));let a=i*u*4;a<h.length&&(h=new Uint8Array(a))}let d=new Uint32Array(h.buffer),f=new Uint32Array(o*c),g=0,p=0,m=Math.ceil(r/u),b=r%u==0?r:r%u;for(let t=0;t<m;t++){let r=t<m-1?u:b;({srcPos:g}=tc({kind:s,src:a,dest:d,width:i,height:r,inverseDecode:this._isMask,srcPos:g}));for(let t=0,a=r>>l;t<a;t++){let a=d.subarray((t<<l)*i);for(let t=0;t<o;t++)f[p++]=a[t<<l]}}if(tu.needsToBeResized(o,c))return t.data=f,t.width=o,t.height=c,t.kind=3,null;let y=new OffscreenCanvas(o,c);return y.getContext("2d",{willReadFrequently:!0}).putImageData(new ImageData(new Uint8ClampedArray(f.buffer),o,c),0,0),t.data=null,t.bitmap=y.transferToImageBitmap(),t.width=o,t.height=c,t}_encodeBMP(){let{width:t,height:a,kind:i}=this._imgData,r,s=this._imgData.data,n=new Uint8Array(0),l=n,o=0;switch(i){case 1:{r=1,n=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255]);let i=t+7>>3,l=i+3&-4;if(i!==l){let t=new Uint8Array(l*a),r=0;for(let n=0,o=a*i;n<o;n+=i,r+=l)t.set(s.subarray(n,n+i),r);s=t}break}case 2:if(r=24,3&t){let i=3*t,r=i+3&-4,n=r-i,l=new Uint8Array(r*a),o=0;for(let t=0,r=a*i;t<r;t+=i){let a=s.subarray(t,t+i);for(let t=0;t<i;t+=3)l[o++]=a[t+2],l[o++]=a[t+1],l[o++]=a[t];o+=n}s=l}else for(let t=0,a=s.length;t<a;t+=3){let a=s[t];s[t]=s[t+2],s[t+2]=a}break;case 3:r=32,o=3;let c=new DataView((l=new Uint8Array(68)).buffer);M.isLittleEndian?(c.setUint32(0,255,!0),c.setUint32(4,65280,!0),c.setUint32(8,0xff0000,!0),c.setUint32(12,0xff000000,!0)):(c.setUint32(0,0xff000000,!0),c.setUint32(4,0xff0000,!0),c.setUint32(8,65280,!0),c.setUint32(12,255,!0));break;default:throw Error("invalid format")}let h=0,u=40+l.length,d=14+u+n.length+s.length,f=new Uint8Array(d),g=new DataView(f.buffer);return g.setUint16(h,19778,!0),h+=2,g.setUint32(h,d,!0),h+=4,g.setUint32(h,0,!0),h+=4,g.setUint32(h,14+u+n.length,!0),h+=4,g.setUint32(h,u,!0),h+=4,g.setInt32(h,t,!0),h+=4,g.setInt32(h,-a,!0),h+=4,g.setUint16(h,1,!0),h+=2,g.setUint16(h,r,!0),h+=2,g.setUint32(h,o,!0),h+=4,g.setUint32(h,0,!0),h+=4,g.setInt32(h,0,!0),h+=4,g.setInt32(h,0,!0),h+=4,g.setUint32(h,n.length/4,!0),h+=4,g.setUint32(h,0,!0),h+=4,f.set(l,h),h+=l.length,f.set(n,h),h+=n.length,f.set(s,h),f}}let td=async function(t={}){var a=(t,a)=>{throw a};try{new URL(".","file:///home/runner/work/nocobase/nocobase/node_modules/pdfjs-dist/build/pdf.worker.min.mjs").href}catch{}console.log.bind(console);var i,r,s,n,l,o=console.error.bind(console),c=!1,h=!1;function u(){var t=g.buffer;n=new Int8Array(t),new Int16Array(t),l=new Uint8Array(t),new Uint16Array(t),new Int32Array(t),new Uint32Array(t),new Float32Array(t),new Float64Array(t),new BigInt64Array(t),new BigUint64Array(t)}class d{name="ExitStatus";constructor(t){this.message=`Program terminated with exit(${t})`,this.status=t}}var f,g,p=a=>{for(;a.length>0;)a.shift()(t)},m=[],b=t=>m.push(t),y=[],w=t=>y.push(t),x=!0,k=0,v={},A=t=>{if(t instanceof d||"unwind"==t)return i;a(0,t)},C=r=>{i=r,x||k>0||(t.onExit?.(r),c=!0),a(0,new d(r))},S=(t,a)=>Math.ceil(t/a)*a,I=t=>{var a=(t-g.buffer.byteLength+65535)/65536|0;try{return g.grow(a),u(),1}catch(t){}};if(t.noExitRuntime&&(x=t.noExitRuntime),t.print&&t.print,t.printErr&&(o=t.printErr),t.wasmBinary&&t.wasmBinary,t.arguments&&t.arguments,t.thisProgram&&t.thisProgram,t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.shift()();t.writeArrayToMemory=(t,a)=>{n.set(t,a)};var B,F={e:()=>(function(a){t.onAbort?.(a),o(a="Aborted("+a+")"),c=!0,a+=". Build with -sASSERTIONS for more info.";var i=new WebAssembly.RuntimeError(a);throw s?.(i),i})(""),b:()=>{x=!1,k=0},c:(t,a)=>{if(v[t]&&(clearTimeout(v[t].id),delete v[t]),!a)return 0;var r=setTimeout(()=>{if(delete v[t],!c)try{if(f(t,performance.now()),!(x||k>0))try{var a;i=a=i,C(a)}catch(t){A(t)}}catch(t){A(t)}},a);return v[t]={id:r,timeout_ms:a},0},d:t=>{var a=l.length;if((t>>>=0)>0x80000000)return!1;for(var i=1;i<=4;i*=2){var r=a*(1+.2/i);if(r=Math.min(r,t+0x6000000),I(Math.min(0x80000000,S(Math.max(t,r),65536))))return!0}return!1},a:C,f:function(a,i,r,s){if(r===i){t.imageData=new Uint8ClampedArray(l.subarray(a,a+r*s));return}let n=i*s,o=t.imageData=new Uint8ClampedArray(n);for(let t=a,s=0;s<n;t+=r,s+=i)o.set(l.subarray(t,t+i),s)}};if(B=await async function(){var a={a:F};return new Promise((i,r)=>{t.instantiateWasm(a,(a,r)=>{var s;i((t._malloc=(s=B=a.exports).i,t._free=s.j,t._jbig2_decode=s.k,f=s.l,g=s.g,s.__indirect_function_table,u(),B))})})}(),t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)w(t.preRun.shift());function M(){if(t.calledRun=!0,!c){if(h=!0,B.h(),r?.(t),t.onRuntimeInitialized?.(),t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;)b(t.postRun.shift());p(m)}}return p(y),t.setStatus?(t.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>t.setStatus(""),1),M()},1)):M(),h?t:new Promise((t,a)=>{r=t,s=a})};class tf extends y{constructor(t){super(t,"Jbig2Error")}}class tg{static #N=null;static #D=null;static #O=null;static #S=!0;static #P=!0;static #I=null;static setOptions({handler:t,useWasm:a,useWorkerFetch:i,wasmUrl:r}){this.#S=a,this.#P=i,this.#I=r,i||(this.#D=t)}static async #E(t,a,i){let r="jbig2.wasm";try{return this.#N||(this.#P?this.#N=await ep(`${this.#I}${r}`):this.#N=await this.#D.sendWithPromise("FetchBinaryData",{type:"wasmFactory",filename:r})),i((await WebAssembly.instantiate(this.#N,a)).instance)}catch(a){return f(`JBig2Image#instantiateWasm: ${a}`),t(null)}finally{this.#D=null}}static async decode(t,a,i,r){let s,n;if(!this.#O){let{promise:t,resolve:a}=Promise.withResolvers(),i=[t];this.#S?i.push(td({warn:f,instantiateWasm:this.#E.bind(this,a)})):a(null),this.#O=Promise.race(i)}let l=await this.#O;if(!l)throw new tf("JBig2 failed to initialize");try{let o=t.length;s=l._malloc(o),l.writeArrayToMemory(t,s);let c=r?r.length:0;if(c>0&&(n=l._malloc(c),l.writeArrayToMemory(r,n)),l._jbig2_decode(s,o,a,i,n,c),!l.imageData)throw new tf("Unknown error");let{imageData:h}=l;return l.imageData=null,h}finally{s&&l._free(s),n&&l._free(n)}}static cleanup(){this.#O=null}}let tp=new Uint8Array(0);class tm extends ei{constructor(t){if(super(),this._rawMinBufferLength=t||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=tp,this.minBufferLength=512,t)for(;this.minBufferLength<t;)this.minBufferLength*=2}get isEmpty(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength}ensureBuffer(t){let a=this.buffer;if(t<=a.byteLength)return a;let i=this.minBufferLength;for(;i<t;)i*=2;let r=new Uint8Array(i);return r.set(a),this.buffer=r}getByte(){let t=this.pos;for(;this.bufferLength<=t;){if(this.eof)return -1;this.readBlock()}return this.buffer[this.pos++]}getBytes(t,a=null){let i,r=this.pos;if(t){for(this.ensureBuffer(r+t),i=r+t;!this.eof&&this.bufferLength<i;)this.readBlock(a);let s=this.bufferLength;i>s&&(i=s)}else{for(;!this.eof;)this.readBlock(a);i=this.bufferLength}return this.pos=i,this.buffer.subarray(r,i)}async getImageData(t,a){if(!this.canAsyncDecodeImageFromBuffer)return this.isAsyncDecoder?this.decodeImage(null,a):this.getBytes(t,a);let i=await this.stream.asyncGetBytes();return this.decodeImage(i,a)}reset(){this.pos=0}makeSubStream(t,a,i=null){if(void 0===a)for(;!this.eof;)this.readBlock();else{let i=t+a;for(;this.bufferLength<=i&&!this.eof;)this.readBlock()}return new tr(this.buffer,t,a,i)}getBaseStreams(){return this.stream?this.stream.getBaseStreams():null}clone(){for(;!this.eof;)this.readBlock();return new tr(this.buffer,this.start,this.end-this.start,this.dict.clone())}}class tb extends tm{constructor(t,a=null){t=t.filter(t=>t instanceof ei&&!t.isImageStream);let i=0;for(const a of t)i+=a instanceof tm?a._rawMinBufferLength:a.length;super(i),this.streams=t,this._onError=a}readBlock(){let t,a=this.streams;if(0===a.length){this.eof=!0;return}let i=a.shift();try{t=i.getBytes()}catch(t){if(this._onError)return void this._onError(t,i.dict?.objId);throw t}let r=this.bufferLength,s=r+t.length;this.ensureBuffer(s).set(t,r),this.bufferLength=s}getBaseStreams(){let t=[];for(let a of this.streams){let i=a.getBaseStreams();i&&t.push(...i)}return t.length>0?t:null}}class ty{static parse({cs:t,xref:a,resources:i=null,pdfFunctionFactory:r,globalColorSpaceCache:s,localColorSpaceCache:n,asyncIfNotCached:l=!1}){let o,c,h;if(t instanceof Y){c=t;let i=s.getByRef(c)||n.getByRef(c);if(i)return i;t=a.fetch(t)}if(t instanceof W){o=t.name;let a=n.getByName(o);if(a)return a}try{h=this.#_(t,{xref:a,resources:i,pdfFunctionFactory:r,globalColorSpaceCache:s,localColorSpaceCache:n})}catch(t){if(l&&!(t instanceof eh))return Promise.reject(t);throw t}return(o||c)&&(n.set(o,c,h),c&&s.set(null,c,h)),l?Promise.resolve(h):h}static #L(t,a){let i,{globalColorSpaceCache:r}=a;if(t instanceof Y){i=t;let a=r.getByRef(i);if(a)return a}let s=this.#_(t,a);return i&&r.set(null,i,s),s}static #_(t,a){let{xref:i,resources:r,pdfFunctionFactory:s,globalColorSpaceCache:n}=a;if((t=i.fetchIfRef(t))instanceof W)switch(t.name){case"G":case"DeviceGray":return this.gray;case"RGB":case"DeviceRGB":return this.rgb;case"DeviceRGBA":return this.rgba;case"CMYK":case"DeviceCMYK":return this.cmyk;case"Pattern":return new e2(null);default:if(r instanceof K){let i=r.get("ColorSpace");if(i instanceof K){let r=i.get(t.name);if(r){if(r instanceof W)return this.#_(r,a);t=r;break}}}return f(`Unrecognized ColorSpace: ${t.name}`),this.gray}if(Array.isArray(t)){let r,l,o,c,h,u,d=i.fetchIfRef(t[0]).name;switch(d){case"G":case"DeviceGray":return this.gray;case"RGB":case"DeviceRGB":return this.rgb;case"CMYK":case"DeviceCMYK":return this.cmyk;case"CalGray":return c=(r=i.fetchIfRef(t[1])).getArray("WhitePoint"),new e8(c,h=r.getArray("BlackPoint"),u=r.get("Gamma"));case"CalRGB":return c=(r=i.fetchIfRef(t[1])).getArray("WhitePoint"),h=r.getArray("BlackPoint"),new e4(c,h,u=r.getArray("Gamma"),r.getArray("Matrix"));case"ICCBased":let g=t[1]instanceof Y;if(g){let a=n.getByRef(t[1]);if(a)return a}let p=i.fetchIfRef(t[1]),m=p.dict;if(l=m.get("N"),ta.isUsable)try{let a=new ta(p.getBytes(),"ICCBased",l);return g&&n.set(null,t[1],a),a}catch(a){if(a instanceof eh)throw a;f(`ICCBased color space (${t[1]}): "${a}".`)}let b=m.getRaw("Alternate");if(b){let t=this.#L(b,a);if(t.numComps===l)return t;f("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===l)return this.gray;if(3===l)return this.rgb;if(4===l)return this.cmyk;break;case"Pattern":return(o=t[1]||null)&&(o=this.#L(o,a)),new e2(o);case"I":case"Indexed":return new e9(o=this.#L(t[1],a),q(i.fetchIfRef(t[2]),0,255),i.fetchIfRef(t[3]));case"Separation":case"DeviceN":let y=i.fetchIfRef(t[1]);return l=Array.isArray(y)?y.length:1,new e0(l,o=this.#L(t[2],a),s.create(t[3]));case"Lab":return c=(r=i.fetchIfRef(t[1])).getArray("WhitePoint"),new te(c,h=r.getArray("BlackPoint"),r.getArray("Range"));default:return f(`Unimplemented ColorSpace object: ${d}`),this.gray}}return f(`Unrecognized ColorSpace object: ${t}`),this.gray}static get gray(){return b(this,"gray",new e5)}static get rgb(){return b(this,"rgb",new e3)}static get rgba(){return b(this,"rgba",new e6)}static get cmyk(){if(ti.isUsable)try{return b(this,"cmyk",new ti)}catch{f("CMYK fallback: DeviceCMYK")}return b(this,"cmyk",new e7)}}class tw extends y{constructor(t){super(t,"JpegError")}}class tx extends y{constructor(t,a){super(t,"DNLMarkerError"),this.scanLines=a}}class tk extends y{constructor(t){super(t,"EOIMarkerError")}}let tv=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]);function tA(t,a,i){return 64*((t.blocksPerLine+1)*a+i)}function tC(t,a,i=a){let r=t.length-1,s=i<a?i:a;if(a>=r)return null;let n=ek(t,a);if(n>=65472&&n<=65534)return{invalid:null,marker:n,offset:a};let l=ek(t,s);for(;!(l>=65472&&l<=65534);){if(++s>=r)return null;l=ek(t,s)}return{invalid:n.toString(16),marker:l,offset:s}}function tS(t,a){let i=ek(t,a),r=(a+=2)+i-2,s=tC(t,r,a);s?.invalid&&(f("readDataBlock - incorrect length, current marker is: "+s.invalid),r=s.offset);let n=t.subarray(a,r);return{appData:n,oldOffset:a,newOffset:a+n.length}}class tI{constructor({decodeTransform:t=null,colorTransform:a=-1}={}){this._decodeTransform=t,this._colorTransform=a}static canUseImageDecoder(t,a=-1){let i=null,r=0,s=null,n=ek(t,0);if(r+=2,65496!==n)throw new tw("SOI not found");n=ek(t,r),r+=2;e:for(;65497!==n;){switch(n){case 65505:let{appData:a,oldOffset:l,newOffset:o}=tS(t,r);if(r=o,69===a[0]&&120===a[1]&&105===a[2]&&102===a[3]&&0===a[4]&&0===a[5]){if(i)throw new tw("Duplicate EXIF-blocks found.");i={exifStart:l+6,exifEnd:o}}n=ek(t,r),r+=2;continue;case 65472:case 65473:case 65474:s=t[r+7];break e;case 65535:255!==t[r]&&r--}r=function(t,a){let i=ek(t,a),r=(a+=2)+i-2,s=tC(t,r,a);return s?.invalid?s.offset:r}(t,r),n=ek(t,r),r+=2}return 4===s||3===s&&0===a?null:i||{}}parse(t,{dnlScanLines:a=null}={}){let i,r,s=0,n=null,l=null,o=0,c=[],h=[],u=[],d=ek(t,0);if(s+=2,65496!==d)throw new tw("SOI not found");d=ek(t,s),s+=2;e:for(;65497!==d;){let g,p,m;switch(d){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:let{appData:b,newOffset:y}=tS(t,s);s=y,65504===d&&74===b[0]&&70===b[1]&&73===b[2]&&70===b[3]&&0===b[4]&&(n={version:{major:b[5],minor:b[6]},densityUnits:b[7],xDensity:b[8]<<8|b[9],yDensity:b[10]<<8|b[11],thumbWidth:b[12],thumbHeight:b[13],thumbData:b.subarray(14,14+3*b[12]*b[13])}),65518===d&&65===b[0]&&100===b[1]&&111===b[2]&&98===b[3]&&101===b[4]&&(l={version:b[5]<<8|b[6],flags0:b[7]<<8|b[8],flags1:b[9]<<8|b[10],transformCode:b[11]});break;case 65499:let w=ek(t,s)+(s+=2)-2;for(;s<w;){let a=t[s++],i=new Uint16Array(64);if(a>>4){if(a>>4!=1)throw new tw("DQT - invalid table spec");for(p=0;p<64;p++)i[tv[p]]=ek(t,s),s+=2}else for(p=0;p<64;p++)i[tv[p]]=t[s++];c[15&a]=i}break;case 65472:case 65473:case 65474:if(i)throw new tw("Only single frame JPEGs supported");s+=2,(i={}).extended=65473===d,i.progressive=65474===d,i.precision=t[s++];let x=ek(t,s);s+=2,i.scanLines=a||x,i.samplesPerLine=ek(t,s),s+=2,i.components=[],i.componentIds={};let k=t[s++],v=0,A=0;for(g=0;g<k;g++){let a=t[s],r=t[s+1]>>4,n=15&t[s+1];v<r&&(v=r),A<n&&(A=n);let l=t[s+2];m=i.components.push({h:r,v:n,quantizationId:l,quantizationTable:null}),i.componentIds[a]=m-1,s+=3}i.maxH=v,i.maxV=A,function(t){let a=Math.ceil(t.samplesPerLine/8/t.maxH),i=Math.ceil(t.scanLines/8/t.maxV);for(let r of t.components){let s=Math.ceil(Math.ceil(t.samplesPerLine/8)*r.h/t.maxH),n=Math.ceil(Math.ceil(t.scanLines/8)*r.v/t.maxV),l=a*r.h,o=64*(i*r.v)*(l+1);r.blockData=new Int16Array(o),r.blocksPerLine=s,r.blocksPerColumn=n}t.mcusPerLine=a,t.mcusPerColumn=i}(i);break;case 65476:let C=ek(t,s);for(s+=2,g=2;g<C;){let a=t[s++],i=new Uint8Array(16),r=0;for(p=0;p<16;p++,s++)r+=i[p]=t[s];let n=new Uint8Array(r);for(p=0;p<r;p++,s++)n[p]=t[s];g+=17+r,(a>>4?h:u)[15&a]=function(t,a){let i,r,s=0,n=16;for(;n>0&&!t[n-1];)n--;let l=[{children:[],index:0}],o,c=l[0];for(i=0;i<n;i++){for(r=0;r<t[i];r++){for((c=l.pop()).children[c.index]=a[s];c.index>0;)c=l.pop();for(c.index++,l.push(c);l.length<=i;)l.push(o={children:[],index:0}),c.children[c.index]=o.children,c=o;s++}i+1<n&&(l.push(o={children:[],index:0}),c.children[c.index]=o.children,c=o)}return l[0].children}(i,n)}break;case 65501:s+=2,r=ek(t,s),s+=2;break;case 65498:let S=1==++o&&!a;s+=2;let I=t[s++],B=[];for(g=0;g<I;g++){let a=t[s++],r=i.componentIds[a],n=i.components[r];n.index=a;let l=t[s++];n.huffmanTableDC=u[l>>4],n.huffmanTableAC=h[15&l],B.push(n)}let F=t[s++],M=t[s++],T=t[s++];try{s+=function(t,a,i,r,s,n,l,o,c,h=!1){let u,d,g,p,m,b,y,w,x=i.mcusPerLine,k=i.progressive,v=a,A=0,C=0;function S(){if(C>0)return C--,A>>C&1;if(255===(A=t[a++])){let r=t[a++];if(r){if(220===r&&h){let r=ek(t,a+=2);if(a+=2,r>0&&r!==i.scanLines)throw new tx("Found DNL marker (0xFFDC) while parsing scan data",r)}else if(217===r){if(h){let t=N*(8*(8===i.precision));if(t>0&&Math.round(i.scanLines/t)>=5)throw new tx("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",t)}throw new tk("Found EOI marker (0xFFD9) while parsing scan data")}throw new tw(`unexpected marker ${(A<<8|r).toString(16)}`)}}return C=7,A>>>7}function I(t){let a=t;for(;;){switch(typeof(a=a[S()])){case"number":return a;case"object":continue}throw new tw("invalid huffman sequence")}}function B(t){let a=0;for(;t>0;)a=a<<1|S(),t--;return a}function F(t){if(1===t)return 1===S()?1:-1;let a=B(t);return a>=1<<t-1?a:a+(-1<<t)+1}let M=0,T,R=0,N=0,D=r.length;b=k?0===n?0===o?function(t,a){let i=I(t.huffmanTableDC),r=0===i?0:F(i)<<c;t.blockData[a]=t.pred+=r}:function(t,a){t.blockData[a]|=S()<<c}:0===o?function(t,a){if(M>0)return void M--;let i=n;for(;i<=l;){let r=I(t.huffmanTableAC),s=15&r,n=r>>4;if(0===s){if(n<15){M=B(n)+(1<<n)-1;break}i+=16;continue}let l=tv[i+=n];t.blockData[a+l]=F(s)*(1<<c),i++}}:function(t,a){let i=n,r,s,o=0;for(;i<=l;){let n=a+tv[i],l=t.blockData[n]<0?-1:1;switch(R){case 0:if(r=15&(s=I(t.huffmanTableAC)),o=s>>4,0===r)o<15?(M=B(o)+(1<<o),R=4):(o=16,R=1);else{if(1!==r)throw new tw("invalid ACn encoding");T=F(r),R=o?2:3}continue;case 1:case 2:t.blockData[n]?t.blockData[n]+=l*(S()<<c):0==--o&&(R=3*(2===R));break;case 3:t.blockData[n]?t.blockData[n]+=l*(S()<<c):(t.blockData[n]=T<<c,R=0);break;case 4:t.blockData[n]&&(t.blockData[n]+=l*(S()<<c))}i++}4===R&&0==--M&&(R=0)}:function(t,a){let i=I(t.huffmanTableDC),r=0===i?0:F(i);t.blockData[a]=t.pred+=r;let s=1;for(;s<64;){let i=I(t.huffmanTableAC),r=15&i,n=i>>4;if(0===r){if(n<15)break;s+=16;continue}let l=tv[s+=n];t.blockData[a+l]=F(r),s++}};let O,P=0,E=1===D?r[0].blocksPerLine*r[0].blocksPerColumn:x*i.mcusPerColumn;for(;P<=E;){let i=s?Math.min(E-P,s):E;if(i>0){for(d=0;d<D;d++)r[d].pred=0;if(M=0,1===D)for(m=0,u=r[0];m<i;m++)!function(t,a,i){N=i/t.blocksPerLine|0;let r=i%t.blocksPerLine;a(t,tA(t,N,r))}(u,b,P),P++;else for(m=0;m<i;m++){for(d=0;d<D;d++)for(g=0,y=(u=r[d]).h,w=u.v;g<w;g++)for(p=0;p<y;p++)!function(t,a,i,r,s){N=(i/x|0)*t.v+r;let n=i%x*t.h+s;a(t,tA(t,N,n))}(u,b,P,g,p);P++}}if(C=0,!(O=tC(t,a))||(O.invalid&&(f(`decodeScan - ${i>0?"unexpected":"excessive"} MCU data, current marker is: ${O.invalid}`),a=O.offset),!(O.marker>=65488&&O.marker<=65495)))break;a+=2}return a-v}(t,s,i,B,r,F,M,T>>4,15&T,S)}catch(a){if(a instanceof tx)return f(`${a.message} -- attempting to re-parse the JPEG image.`),this.parse(t,{dnlScanLines:a.scanLines});if(a instanceof tk){f(`${a.message} -- ignoring the rest of the image data.`);break e}throw a}break;case 65500:s+=4;break;case 65535:255!==t[s]&&s--;break;default:let R=tC(t,s-2,s-3);if(R?.invalid){f("JpegImage.parse - unexpected data, current marker is: "+R.invalid),s=R.offset;break}if(!R||s>=t.length-1){f("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new tw("JpegImage.parse - unknown marker: "+d.toString(16))}d=ek(t,s),s+=2}if(!i)throw new tw("JpegImage.parse - no frame data found.");for(let t of(this.width=i.samplesPerLine,this.height=i.scanLines,this.jfif=n,this.adobe=l,this.components=[],i.components)){let a=c[t.quantizationId];a&&(t.quantizationTable=a),this.components.push({index:t.index,output:function(t){let a=t.blocksPerLine,i=t.blocksPerColumn,r=new Int16Array(64);for(let s=0;s<i;s++)for(let i=0;i<a;i++)!function(t,a,i){let r,s,n,l,o,c,h,u,d,f,g,p,m,b,y,w,x,k=t.quantizationTable,v=t.blockData;if(!k)throw new tw("missing required Quantization Table.");for(let t=0;t<64;t+=8)d=v[a+t],f=v[a+t+1],g=v[a+t+2],p=v[a+t+3],m=v[a+t+4],b=v[a+t+5],y=v[a+t+6],w=v[a+t+7],d*=k[t],0!=(f|g|p|m|b|y|w)?(f*=k[t+1],g*=k[t+2],p*=k[t+3],m*=k[t+4],b*=k[t+5],y*=k[t+6],w*=k[t+7],r=5793*d+128>>8,s=5793*m+128>>8,n=g,l=y,o=2896*(f-w)+128>>8,u=2896*(f+w)+128>>8,c=p<<4,h=b<<4,s=(r=r+s+1>>1)-s,x=3784*n+1567*l+128>>8,n=1567*n-3784*l+128>>8,l=x,h=(o=o+h+1>>1)-h,c=(u=u+c+1>>1)-c,l=(r=r+l+1>>1)-l,n=(s=s+n+1>>1)-n,x=2276*o+3406*u+2048>>12,o=3406*o-2276*u+2048>>12,u=x,x=799*c+4017*h+2048>>12,c=4017*c-799*h+2048>>12,h=x,i[t]=r+u,i[t+7]=r-u,i[t+1]=s+h,i[t+6]=s-h,i[t+2]=n+c,i[t+5]=n-c,i[t+3]=l+o,i[t+4]=l-o):(x=5793*d+512>>10,i[t]=x,i[t+1]=x,i[t+2]=x,i[t+3]=x,i[t+4]=x,i[t+5]=x,i[t+6]=x,i[t+7]=x);for(let t=0;t<8;++t)d=i[t],f=i[t+8],g=i[t+16],p=i[t+24],m=i[t+32],b=i[t+40],0!=(f|g|p|m|b|(y=i[t+48])|(w=i[t+56]))?(r=5793*d+2048>>12,s=5793*m+2048>>12,n=g,l=y,o=2896*(f-w)+2048>>12,u=2896*(f+w)+2048>>12,c=p,h=b,s=(r=4112+(r+s+1>>1))-s,x=3784*n+1567*l+2048>>12,n=1567*n-3784*l+2048>>12,l=x,h=(o=o+h+1>>1)-h,c=(u=u+c+1>>1)-c,l=(r=r+l+1>>1)-l,n=(s=s+n+1>>1)-n,x=2276*o+3406*u+2048>>12,o=3406*o-2276*u+2048>>12,u=x,x=799*c+4017*h+2048>>12,c=4017*c-799*h+2048>>12,h=x,d=r+u,w=r-u,f=s+h,y=s-h,g=n+c,b=n-c,d<16?d=0:d>=4080?d=255:d>>=4,f<16?f=0:f>=4080?f=255:f>>=4,g<16?g=0:g>=4080?g=255:g>>=4,(p=l+o)<16?p=0:p>=4080?p=255:p>>=4,(m=l-o)<16?m=0:m>=4080?m=255:m>>=4,b<16?b=0:b>=4080?b=255:b>>=4,y<16?y=0:y>=4080?y=255:y>>=4,w<16?w=0:w>=4080?w=255:w>>=4,v[a+t]=d,v[a+t+8]=f,v[a+t+16]=g,v[a+t+24]=p,v[a+t+32]=m,v[a+t+40]=b,v[a+t+48]=y,v[a+t+56]=w):(x=(x=5793*d+8192>>14)<-2040?0:x>=2024?255:x+2056>>4,v[a+t]=x,v[a+t+8]=x,v[a+t+16]=x,v[a+t+24]=x,v[a+t+32]=x,v[a+t+40]=x,v[a+t+48]=x,v[a+t+56]=x)}(t,tA(t,s,i),r);return t.blockData}(t),scaleX:t.h/i.maxH,scaleY:t.v/i.maxV,blocksPerLine:t.blocksPerLine,blocksPerColumn:t.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(t,a,i=!1){let r,s=this.width/t,n=this.height/a,l,o,c,h,u,d,f,g,p,m,b,y=0,w=this.components.length,x=t*a*w,k=new Uint8ClampedArray(x),v=new Uint32Array(t);for(f=0;f<w;f++){if(o=(l=this.components[f]).scaleX*s,c=l.scaleY*n,y=f,b=l.output,h=l.blocksPerLine+1<<3,o!==r){for(u=0;u<t;u++)g=0|u*o,v[u]=(0xfffffff8&g)<<3|7&g;r=o}for(d=0;d<a;d++)for(u=0,m=h*(0xfffffff8&(g=0|d*c))|(7&g)<<3;u<t;u++)k[y]=b[m+v[u]],y+=w}let A=this._decodeTransform;if(i||4!==w||A||(A=new Int32Array([-256,255,-256,255,-256,255,-256,255])),A)for(f=0;f<x;)for(g=0,p=0;g<w;g++,f++,p+=2)k[f]=(k[f]*A[p]>>8)+A[p+1];return k}get _isColorConversionNeeded(){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}_convertYccToRgb(t){let a,i,r;for(let s=0,n=t.length;s<n;s+=3)a=t[s],i=t[s+1],r=t[s+2],t[s]=a-179.456+1.402*r,t[s+1]=a+135.459-.344*i-.714*r,t[s+2]=a-226.816+1.772*i;return t}_convertYccToRgba(t,a){for(let i=0,r=0,s=t.length;i<s;i+=3,r+=4){let s=t[i],n=t[i+1],l=t[i+2];a[r]=s-179.456+1.402*l,a[r+1]=s+135.459-.344*n-.714*l,a[r+2]=s-226.816+1.772*n,a[r+3]=255}return a}_convertYcckToRgb(t){return this._convertYcckToCmyk(t),this._convertCmykToRgb(t)}_convertYcckToRgba(t){return this._convertYcckToCmyk(t),this._convertCmykToRgba(t)}_convertYcckToCmyk(t){let a,i,r;for(let s=0,n=t.length;s<n;s+=4)a=t[s],i=t[s+1],r=t[s+2],t[s]=434.456-a-1.402*r,t[s+1]=119.541-a+.344*i+.714*r,t[s+2]=481.816-a-1.772*i;return t}_convertCmykToRgb(t){let a=t.length/4;return ty.cmyk.getRgbBuffer(t,0,a,t,0,8,0),t.subarray(0,3*a)}_convertCmykToRgba(t){if(ty.cmyk.getRgbBuffer(t,0,t.length/4,t,0,8,1),ty.cmyk instanceof e7)for(let a=3,i=t.length;a<i;a+=4)t[a]=255;return t}getData({width:t,height:a,forceRGBA:i=!1,forceRGB:r=!1,isSourcePDF:s=!1}){if(this.numComponents>4)throw new tw("Unsupported color mode");let n=this._getLinearizedBlockData(t,a,s);if(1===this.numComponents&&(i||r)){let t=new Uint8ClampedArray(n.length*(i?4:3)),a=0;if(i)!function(t,a){if(M.isLittleEndian)for(let i=0,r=t.length;i<r;i++)a[i]=65793*t[i]|0xff000000;else for(let i=0,r=t.length;i<r;i++)a[i]=0x1010100*t[i]|255}(n,new Uint32Array(t.buffer));else for(let i of n)t[a++]=i,t[a++]=i,t[a++]=i;return t}if(3===this.numComponents&&this._isColorConversionNeeded){if(i){let t=new Uint8ClampedArray(n.length/3*4);return this._convertYccToRgba(n,t)}return this._convertYccToRgb(n)}if(4===this.numComponents){if(this._isColorConversionNeeded)return i?this._convertYcckToRgba(n):r?this._convertYcckToRgb(n):this._convertYcckToCmyk(n);if(i)return this._convertCmykToRgba(n);if(r)return this._convertCmykToRgb(n)}return n}}class tB extends tm{static #T=M.isImageDecoderSupported;constructor(t,a,i){super(a),this.stream=t,this.dict=t.dict,this.maybeLength=a,this.params=i}static get canUseImageDecoder(){return b(this,"canUseImageDecoder",this.#T?ImageDecoder.isTypeSupported("image/jpeg"):Promise.resolve(!1))}static setOptions({isImageDecoderSupported:t=!1}){this.#T=t}get bytes(){return b(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}readBlock(){this.decodeImage()}get jpegOptions(){let t={decodeTransform:void 0,colorTransform:void 0},a=this.dict.getArray("D","Decode");if((this.forceRGBA||this.forceRGB)&&Array.isArray(a)){let i=this.dict.get("BPC","BitsPerComponent")||8,r=a.length,s=new Int32Array(r),n=!1,l=(1<<i)-1;for(let t=0;t<r;t+=2)s[t]=256*(a[t+1]-a[t])|0,s[t+1]=a[t]*l|0,256===s[t]&&0===s[t+1]||(n=!0);n&&(t.decodeTransform=s)}if(this.params instanceof K){let a=this.params.get("ColorTransform");Number.isInteger(a)&&(t.colorTransform=a)}return b(this,"jpegOptions",t)}#U(t){for(let a=0,i=t.length-1;a<i;a++)if(255===t[a]&&216===t[a+1]){a>0&&(t=t.subarray(a));break}return t}decodeImage(t){if(this.eof)return this.buffer;t=this.#U(t||this.bytes);let a=new tI(this.jpegOptions);a.parse(t);let i=a.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB,isSourcePDF:!0});return this.buffer=i,this.bufferLength=i.length,this.eof=!0,this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}async getTransferableImage(){let t;if(!await tB.canUseImageDecoder)return null;let a=this.jpegOptions;if(a.decodeTransform)return null;try{let i=this.canAsyncDecodeImageFromBuffer&&await this.stream.asyncGetBytes()||this.bytes;if(!i)return null;let r=this.#U(i),s=tI.canUseImageDecoder(r,a.colorTransform);if(!s)return null;return s.exifStart&&(r=r.slice()).fill(0,s.exifStart,s.exifEnd),t=new ImageDecoder({data:r,type:"image/jpeg",preferAnimation:!1}),(await t.decode()).image}catch(t){return f(`getTransferableImage - failed: "${t}".`),null}finally{t?.close()}}get isImageStream(){return!0}}let tF=async function(t={}){var a="./this.program",i=(t,a)=>{throw a};try{new URL(".","file:///home/runner/work/nocobase/nocobase/node_modules/pdfjs-dist/build/pdf.worker.min.mjs").href}catch{}var r,s,n,l,o,c,h,u,d=console.log.bind(console),f=console.error.bind(console),g=!1,p=!1;function m(){var t=l.buffer;o=new Int8Array(t),new Int16Array(t),c=new Uint8Array(t),new Uint16Array(t),h=new Int32Array(t),u=new Uint32Array(t),new Float32Array(t),new Float64Array(t),new BigInt64Array(t),new BigUint64Array(t)}class b{name="ExitStatus";constructor(t){this.message=`Program terminated with exit(${t})`,this.status=t}}var y,w=a=>{for(;a.length>0;)a.shift()(t)},x=[],k=t=>x.push(t),v=[],A=t=>v.push(t),C=!0,S=0,I={},B=t=>{if(t instanceof b||"unwind"==t)return r;i(0,t)},F=a=>{r=a,C||S>0||(t.onExit?.(a),g=!0),i(0,new b(a))},M=(t,a)=>Math.ceil(t/a)*a,T=t=>{var a=(t-l.buffer.byteLength+65535)/65536|0;try{return l.grow(a),m(),1}catch(t){}},R={},N=()=>{if(!N.strings){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:a||"./this.program"};for(var i in R)void 0===R[i]?delete t[i]:t[i]=R[i];var r=[];for(var i in t)r.push(`${i}=${t[i]}`);N.strings=r}return N.strings},D=(t,a,i)=>((t,a,i,r)=>{if(!(r>0))return 0;for(var s=i,n=i+r-1,l=0;l<t.length;++l){var o=t.codePointAt(l);if(o<=127){if(i>=n)break;a[i++]=o}else if(o<=2047){if(i+1>=n)break;a[i++]=192|o>>6,a[i++]=128|63&o}else if(o<=65535){if(i+2>=n)break;a[i++]=224|o>>12,a[i++]=128|o>>6&63,a[i++]=128|63&o}else{if(i+3>=n)break;a[i++]=240|o>>18,a[i++]=128|o>>12&63,a[i++]=128|o>>6&63,a[i++]=128|63&o,l++}}return a[i]=0,i-s})(t,c,a,i),O=t=>{for(var a=0,i=0;i<t.length;++i){var r=t.charCodeAt(i);r<=127?a++:r<=2047?a+=2:r>=55296&&r<=57343?(a+=4,++i):a+=3}return a},P=[null,[],[]],E="u">typeof TextDecoder?new TextDecoder:void 0,_=(t,a=0,i,r)=>{var s=((t,a,i,r)=>{var s=a+i;if(r)return s;for(;t[a]&&!(a>=s);)++a;return a})(t,a,i,r);if(s-a>16&&t.buffer&&E)return E.decode(t.subarray(a,s));for(var n="";a<s;){var l=t[a++];if(128&l){var o=63&t[a++];if(192!=(224&l)){var c=63&t[a++];if((l=224==(240&l)?(15&l)<<12|o<<6|c:(7&l)<<18|o<<12|c<<6|63&t[a++])<65536)n+=String.fromCharCode(l);else{var h=l-65536;n+=String.fromCharCode(55296|h>>10,56320|1023&h)}}else n+=String.fromCharCode((31&l)<<6|o)}else n+=String.fromCharCode(l)}return n},L=(t,a)=>{var i=P[t];0===a||10===a?((1===t?d:f)(_(i)),i.length=0):i.push(a)},U=(t,a,i)=>t?_(c,t,a,i):"";if(t.noExitRuntime&&(C=t.noExitRuntime),t.print&&(d=t.print),t.printErr&&(f=t.printErr),t.wasmBinary&&t.wasmBinary,t.arguments&&t.arguments,t.thisProgram&&(a=t.thisProgram),t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.shift()();t.writeArrayToMemory=(t,a)=>{o.set(t,a)};var q,j={k:()=>(function(a){t.onAbort?.(a),f(a="Aborted("+a+")"),g=!0,a+=". Build with -sASSERTIONS for more info.";var i=new WebAssembly.RuntimeError(a);throw n?.(i),i})(""),j:()=>{C=!1,S=0},l:(t,a)=>{if(I[t]&&(clearTimeout(I[t].id),delete I[t]),!a)return 0;var i=setTimeout(()=>{if(delete I[t],!g)try{if(y(t,performance.now()),!(C||S>0))try{var a;r=a=r,F(a)}catch(t){B(t)}}catch(t){B(t)}},a);return I[t]={id:i,timeout_ms:a},0},f:function(a,i){a>>=2;let r=t.imageData=new Uint8ClampedArray(i),s=h.subarray(a,a+i);r.set(s)},e:function(a,i,r,s){a>>=2,i>>=2,r>>=2;let n=t.imageData=new Uint8ClampedArray(3*s),l=h.subarray(a,a+s),o=h.subarray(i,i+s),c=h.subarray(r,r+s);for(let t=0;t<s;t++)n[3*t]=l[t],n[3*t+1]=o[t],n[3*t+2]=c[t]},d:function(a,i,r,s,n){a>>=2,i>>=2,r>>=2,s>>=2;let l=t.imageData=new Uint8ClampedArray(4*n),o=h.subarray(a,a+n),c=h.subarray(i,i+n),u=h.subarray(r,r+n),d=h.subarray(s,s+n);for(let t=0;t<n;t++)l[4*t]=o[t],l[4*t+1]=c[t],l[4*t+2]=u[t],l[4*t+3]=d[t]},m:t=>{var a=c.length;if((t>>>=0)>0x80000000)return!1;for(var i=1;i<=4;i*=2){var r=a*(1+.2/i);if(r=Math.min(r,t+0x6000000),T(Math.min(0x80000000,M(Math.max(t,r),65536))))return!0}return!1},o:(t,a)=>{var i=0,r=0;for(var s of N()){var n=a+i;u[t+r>>2]=n,i+=D(s,n,1/0)+1,r+=4}return 0},p:(t,a)=>{var i=N();u[t>>2]=i.length;var r=0;for(var s of i)r+=O(s)+1;return u[a>>2]=r,0},n:function(t,a,i,r){var s;return a=(s=a)<-0x20000000000000||s>0x20000000000000?NaN:Number(s),70},b:(t,a,i,r)=>{for(var s=0,n=0;n<i;n++){var l=u[a>>2],o=u[a+4>>2];a+=8;for(var h=0;h<o;h++)L(t,c[l+h]);s+=o}return u[r>>2]=s,0},q:function(a,i){a>>=2;let r=t.imageData=new Uint8ClampedArray(4*i),s=h.subarray(a,a+i);for(let t=0;t<i;t++)r[4*t]=r[4*t+1]=r[4*t+2]=s[t],r[4*t+3]=255},h:function(a,i,r){a>>=2,i>>=2;let s=t.imageData=new Uint8ClampedArray(4*r),n=h.subarray(a,a+r),l=h.subarray(i,i+r);for(let t=0;t<r;t++)s[4*t]=s[4*t+1]=s[4*t+2]=n[t],s[4*t+3]=l[t]},c:function(a){let i=U(a);(t.warn||console.warn)(`OpenJPEG: ${i}`)},i:F,g:function(a,i,r,s){a>>=2,i>>=2,r>>=2;let n=t.imageData=new Uint8ClampedArray(4*s),l=h.subarray(a,a+s),o=h.subarray(i,i+s),c=h.subarray(r,r+s);for(let t=0;t<s;t++)n[4*t]=l[t],n[4*t+1]=o[t],n[4*t+2]=c[t],n[4*t+3]=255},a:function(a){let i=U(a);t.errorMessages?t.errorMessages+="\n"+i:t.errorMessages=i}};if(q=await async function(){var a={a:j};return new Promise((i,r)=>{t.instantiateWasm(a,(a,r)=>{var s;i((l=(q=a.exports).r,m(),t._malloc=(s=q).t,t._free=s.u,t._jp2_decode=s.v,y=s.w,q))})})}(),t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)A(t.preRun.shift());function $(){if(t.calledRun=!0,!g){if(p=!0,q.s(),s?.(t),t.onRuntimeInitialized?.(),t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;)k(t.postRun.shift());w(x)}}return w(v),t.setStatus?(t.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>t.setStatus(""),1),$()},1)):$(),p?t:new Promise((t,a)=>{s=t,n=a})};class tM extends y{constructor(t){super(t,"JpxError")}}class tT{static #N=null;static #D=null;static #O=null;static #S=!0;static #P=!0;static #I=null;static setOptions({handler:t,useWasm:a,useWorkerFetch:i,wasmUrl:r}){this.#S=a,this.#P=i,this.#I=r,i||(this.#D=t)}static async #q(t){let a=`${this.#I}openjpeg_nowasm_fallback.js`,i=null;try{i=(await import(a)).default()}catch(t){f(`JpxImage#getJsModule: ${t}`)}t(i)}static async #E(t,a,i){let r="openjpeg.wasm";try{return this.#N||(this.#P?this.#N=await ep(`${this.#I}${r}`):this.#N=await this.#D.sendWithPromise("FetchBinaryData",{type:"wasmFactory",filename:r})),i((await WebAssembly.instantiate(this.#N,a)).instance)}catch(a){return f(`JpxImage#instantiateWasm: ${a}`),this.#q(t),null}finally{this.#D=null}}static async decode(t,{numComponents:a=4,isIndexedColormap:i=!1,smaskInData:r=!1,reducePower:s=0}={}){let n;if(!this.#O){let{promise:t,resolve:a}=Promise.withResolvers(),i=[t];this.#S?i.push(tF({warn:f,instantiateWasm:this.#E.bind(this,a)})):this.#q(a),this.#O=Promise.race(i)}let l=await this.#O;if(!l)throw new tM("OpenJPEG failed to initialize");try{let o=t.length;if(n=l._malloc(o),l.writeArrayToMemory(t,n),l._jp2_decode(n,o,a>0?a:0,!!i,!!r,s)){let{errorMessages:t}=l;if(t)throw delete l.errorMessages,new tM(t);throw new tM("Unknown error")}let{imageData:c}=l;return l.imageData=null,c}finally{n&&l._free(n)}}static cleanup(){this.#O=null}static parseImageProperties(t){let a=t.getByte();for(;a>=0;)if(65361==(a<<8|(a=t.getByte()))){t.skip(4);let a=t.getInt32()>>>0,i=t.getInt32()>>>0,r=t.getInt32()>>>0,s=t.getInt32()>>>0;return t.skip(16),{width:a-r,height:i-s,bitsPerComponent:8,componentsCount:t.getUint16()}}throw new tM("No size marker found in JPX stream")}}function tR(t,a,i,r,s){let n=t;for(let t=0,i=a.length-1;t<i;t++){let i=a[t];n=n[i]||=[]}n[a.at(-1)]={checkFn:i,iterateFn:r,processFn:s}}let tN=[];tR(tN,[10,12,86,11],null,function(t,a){let i=t.fnArray,r=(a-(t.iCurr-3))%4;switch(r){case 0:return 10===i[a];case 1:return 12===i[a];case 2:return 86===i[a];case 3:return 11===i[a]}throw Error(`iterateInlineImageGroup - invalid pos: ${r}`)},function(t,a){let i=t.fnArray,r=t.argsArray,s=t.iCurr,n=s-3,l=s-2,o=s-1,c=Math.min(Math.floor((a-n)/4),200);if(c<10)return a-(a-n)%4;let h=0,u=[],d=0,f=1,g=1;for(let t=0;t<c;t++){let a=r[l+(t<<2)],i=r[o+(t<<2)][0];f+i.width>1e3&&(h=Math.max(h,f),g+=d+2,f=0,d=0),u.push({transform:a,x:f,y:g,w:i.width,h:i.height}),f+=i.width+2,d=Math.max(d,i.height)}let p=Math.max(h,f)+1,m=g+d+1,b=new Uint8Array(p*m*4),y=p<<2;for(let t=0;t<c;t++){let a=r[o+(t<<2)][0].data,i=u[t].w<<2,s=0,n=u[t].x+u[t].y*p<<2;b.set(a.subarray(0,i),n-y);for(let r=0,l=u[t].h;r<l;r++)b.set(a.subarray(s,s+i),n),s+=i,n+=y;for(b.set(a.subarray(s-i,s),n);n>=0;)a[n-4]=a[n],a[n-3]=a[n+1],a[n-2]=a[n+2],a[n-1]=a[n+3],a[n+i]=a[n+i-4],a[n+i+1]=a[n+i-3],a[n+i+2]=a[n+i-2],a[n+i+3]=a[n+i-1],n-=y}let w={width:p,height:m};if(t.isOffscreenCanvasSupported){let t=new OffscreenCanvas(p,m);t.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(b.buffer),p,m),0,0),w.bitmap=t.transferToImageBitmap(),w.data=null}else w.kind=3,w.data=b;return i.splice(n,4*c,87),r.splice(n,4*c,[w,u]),n+1}),tR(tN,[10,12,83,11],null,function(t,a){let i=t.fnArray,r=(a-(t.iCurr-3))%4;switch(r){case 0:return 10===i[a];case 1:return 12===i[a];case 2:return 83===i[a];case 3:return 11===i[a]}throw Error(`iterateImageMaskGroup - invalid pos: ${r}`)},function(t,a){let i=t.fnArray,r=t.argsArray,s=t.iCurr,n=s-3,l=s-2,o=s-1,c=Math.floor((a-n)/4);if(c<10)return a-(a-n)%4;let h,u,d=!1,f=r[o][0],g=r[l][0],p=r[l][1],m=r[l][2],b=r[l][3];if(p===m){d=!0,h=l+4;let t=o+4;for(let a=1;a<c;a++,h+=4,t+=4)if(u=r[h],r[t][0]!==f||u[0]!==g||u[1]!==p||u[2]!==m||u[3]!==b){a<10?d=!1:c=a;break}}if(d){let t=new Float32Array(2*(c=Math.min(c,1e3)));h=l;for(let a=0;a<c;a++,h+=4)u=r[h],t[a<<1]=u[4],t[1+(a<<1)]=u[5];i.splice(n,4*c,89),r.splice(n,4*c,[f,g,p,m,b,t])}else{c=Math.min(c,100);let t=[];for(let a=0;a<c;a++){u=r[l+(a<<2)];let i=r[o+(a<<2)][0];t.push({data:i.data,width:i.width,height:i.height,interpolate:i.interpolate,count:i.count,transform:u})}i.splice(n,4*c,84),r.splice(n,4*c,[t])}return n+1}),tR(tN,[10,12,85,11],function(t){let a=t.argsArray,i=t.iCurr-2;return 0===a[i][1]&&0===a[i][2]},function(t,a){let i=t.fnArray,r=t.argsArray,s=(a-(t.iCurr-3))%4;switch(s){case 0:return 10===i[a];case 1:if(12!==i[a])return!1;let n=t.iCurr-2,l=r[n][0],o=r[n][3];return r[a][0]===l&&0===r[a][1]&&0===r[a][2]&&r[a][3]===o;case 2:if(85!==i[a])return!1;let c=r[t.iCurr-1][0];return r[a][0]===c;case 3:return 11===i[a]}throw Error(`iterateImageGroup - invalid pos: ${s}`)},function(t,a){let i=t.fnArray,r=t.argsArray,s=t.iCurr,n=s-3,l=s-2,o=r[s-1][0],c=r[l][0],h=r[l][3],u=Math.min(Math.floor((a-n)/4),1e3);if(u<3)return a-(a-n)%4;let d=new Float32Array(2*u),f=l;for(let t=0;t<u;t++,f+=4){let a=r[f];d[t<<1]=a[4],d[1+(t<<1)]=a[5]}let g=[o,c,h,d];return i.splice(n,4*u,88),r.splice(n,4*u,g),n+1}),tR(tN,[31,37,42,44,32],null,function(t,a){let i=t.fnArray,r=t.argsArray,s=(a-(t.iCurr-4))%5;switch(s){case 0:return 31===i[a];case 1:return 37===i[a];case 2:return 42===i[a];case 3:if(44!==i[a])return!1;let n=t.iCurr-3,l=r[n][0],o=r[n][1];return r[a][0]===l&&r[a][1]===o;case 4:return 32===i[a]}throw Error(`iterateShowTextGroup - invalid pos: ${s}`)},function(t,a){let i=t.fnArray,r=t.argsArray,s=t.iCurr,n=s-4,l=s-3,o=r[l][0],c=r[l][1],h=Math.min(Math.floor((a-n)/5),1e3);if(h<3)return a-(a-n)%5;let u=n;n>=4&&i[n-4]===i[l]&&i[n-3]===i[s-2]&&i[n-2]===i[s-1]&&i[n-1]===i[s]&&r[n-4][0]===o&&r[n-4][1]===c&&(h++,u-=5);let d=u+4;for(let t=1;t<h;t++)i.splice(d,3),r.splice(d,3),d+=2;return d+1}),tR(tN,[10,12,91,11],t=>{let a=t.argsArray,i=a[t.iCurr-1][0];if(20!==i&&21!==i&&24!==i&&25!==i&&26!==i&&27!==i)return!0;let r=a[t.iCurr-2];return 1===r[0]&&0===r[1]&&0===r[2]&&1===r[3]},()=>!1,(t,a)=>{let{fnArray:i,argsArray:r}=t,s=t.iCurr,n=s-3,l=r[s-1],o=r[s-2],[,[c],h]=l;if(h){R.scaleMinMax(o,h);for(let t=0,a=c.length;t<a;)switch(c[t++]){case 0:case 1:R.applyTransform(c,o,t),t+=2;break;case 2:R.applyTransformToBezier(c,o,t),t+=6}}return i.splice(n,4,91),r.splice(n,4,l),n+1});class tD{constructor(t){this.queue=t}_optimize(){}push(t,a){this.queue.fnArray.push(t),this.queue.argsArray.push(a),this._optimize()}flush(){}reset(){}}class tO extends tD{constructor(t){super(t),this.state=null,this.context={iCurr:0,fnArray:t.fnArray,argsArray:t.argsArray,isOffscreenCanvasSupported:tP.isOffscreenCanvasSupported},this.match=null,this.lastProcessed=0}_optimize(){let t=this.queue.fnArray,a=this.lastProcessed,i=t.length,r=this.state,s=this.match;if(!r&&!s&&a+1===i&&!tN[t[a]]){this.lastProcessed=i;return}let n=this.context;for(;a<i;){if(s){if((0,s.iterateFn)(n,a)){a++;continue}if(a=(0,s.processFn)(n,a+1),i=t.length,s=null,r=null,a>=i)break}(r=(r||tN)[t[a]])&&!Array.isArray(r)?(n.iCurr=a,a++,(!r.checkFn||(0,r.checkFn)(n))&&(s=r),r=null):a++}this.state=r,this.match=s,this.lastProcessed=a}flush(){for(;this.match;){let t=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,t),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}}class tP{static CHUNK_SIZE=1e3;static CHUNK_SIZE_ABOUT=this.CHUNK_SIZE-5;static isOffscreenCanvasSupported=!1;constructor(t=0,a){this._streamSink=a,this.fnArray=[],this.argsArray=[],this.optimizer=!a||256&t?new tD(this):new tO(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=a?null:Promise.resolve()}static setOptions({isOffscreenCanvasSupported:t}){this.isOffscreenCanvasSupported=t}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(t,a){this.optimizer.push(t,a),this.weight++,this._streamSink&&(this.weight>=tP.CHUNK_SIZE||this.weight>=tP.CHUNK_SIZE_ABOUT&&(11===t||32===t))&&this.flush()}addImageOps(t,a,i,r=!1){r&&(this.addOp(10),this.addOp(9,[[["SMask",!1]]])),void 0!==i&&this.addOp(70,["OC",i]),this.addOp(t,a),void 0!==i&&this.addOp(71,[]),r&&this.addOp(11)}addDependency(t){this.dependencies.has(t)||(this.dependencies.add(t),this.addOp(1,[t]))}addDependencies(t){for(let a of t)this.addDependency(a)}addOpList(t){if(t instanceof tP){for(let a of t.dependencies)this.dependencies.add(a);for(let a=0,i=t.length;a<i;a++)this.addOp(t.fnArray[a],t.argsArray[a])}else f('addOpList - ignoring invalid "opList" parameter.')}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){let t=[],{fnArray:a,argsArray:i,length:r}=this;for(let s=0;s<r;s++)switch(a[s]){case 86:case 87:case 83:{let{bitmap:a,data:r}=i[s][0];(a||r?.buffer)&&t.push(a||r.buffer);break}case 91:{let[,[a],r]=i[s];a&&t.push(a.buffer,r.buffer);break}case 74:let[r,n]=i[s];r&&t.push(r.buffer),n&&t.push(n.buffer);break;case 42:t.push(i[s][0].buffer)}return t}flush(t=!1,a=null){this.optimizer.flush();let i=this.length;this._totalLength+=i,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:t,separateAnnots:a,length:i},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}}function tE(t,a){let i=0;for(let r=0;r<=a;r++)i=i<<8|t[r];return i>>>0}function t_(t,a){return 1===a?String.fromCharCode(t[0],t[1]):3===a?String.fromCharCode(t[0],t[1],t[2],t[3]):String.fromCharCode(...t.subarray(0,a+1))}function tL(t,a,i){let r=0;for(let s=i;s>=0;s--)r+=t[s]+a[s],t[s]=255&r,r>>=8}function tU(t,a){let i=1;for(let r=a;r>=0&&i>0;r--)i+=t[r],t[r]=255&i,i>>=8}class tq{constructor(t){this.buffer=t,this.pos=0,this.end=t.length,this.tmpBuf=new Uint8Array(19)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let t,a=0;do{let i=this.readByte();if(i<0)throw new A("unexpected EOF in bcmap");t=!(128&i),a=a<<7|127&i}while(!t);return a}readSigned(){let t=this.readNumber();return 1&t?~(t>>>1):t>>>1}readHex(t,a){t.set(this.buffer.subarray(this.pos,this.pos+a+1)),this.pos+=a+1}readHexNumber(t,a){let i,r=this.tmpBuf,s=0;do{let t=this.readByte();if(t<0)throw new A("unexpected EOF in bcmap");i=!(128&t),r[s++]=127&t}while(!i);let n=a,l=0,o=0;for(;n>=0;){for(;o<8&&r.length>0;)l|=r[--s]<<o,o+=7;t[n]=255&l,n--,l>>=8,o-=8}}readHexSigned(t,a){this.readHexNumber(t,a);let i=1&t[a]?255:0,r=0;for(let s=0;s<=a;s++)r=(1&r)<<8|t[s],t[s]=r>>1^i}readString(){let t=this.readNumber(),a=Array(t);for(let i=0;i<t;i++)a[i]=this.readNumber();return String.fromCharCode(...a)}}class tj{async process(t,a,i){let r,s,n=new tq(t);a.vertical=!!(1&n.readByte());let l=null,o=new Uint8Array(16),c=new Uint8Array(16),h=new Uint8Array(16),u=new Uint8Array(16),d=new Uint8Array(16);for(;(s=n.readByte())>=0;){let t=s>>5;if(7===t){switch(31&s){case 0:n.readString();break;case 1:l=n.readString()}continue}let i=!!(16&s),f=15&s;if(f+1>16)throw Error("BinaryCMapReader.process: Invalid dataSize.");let g=n.readNumber();switch(t){case 0:n.readHex(o,f),n.readHexNumber(c,f),tL(c,o,f),a.addCodespaceRange(f+1,tE(o,f),tE(c,f));for(let t=1;t<g;t++)tU(c,f),n.readHexNumber(o,f),tL(o,c,f),n.readHexNumber(c,f),tL(c,o,f),a.addCodespaceRange(f+1,tE(o,f),tE(c,f));break;case 1:n.readHex(o,f),n.readHexNumber(c,f),tL(c,o,f),n.readNumber();for(let t=1;t<g;t++)tU(c,f),n.readHexNumber(o,f),tL(o,c,f),n.readHexNumber(c,f),tL(c,o,f),n.readNumber();break;case 2:n.readHex(h,f),r=n.readNumber(),a.mapOne(tE(h,f),r);for(let t=1;t<g;t++)tU(h,f),i||(n.readHexNumber(d,f),tL(h,d,f)),r=n.readSigned()+(r+1),a.mapOne(tE(h,f),r);break;case 3:n.readHex(o,f),n.readHexNumber(c,f),tL(c,o,f),r=n.readNumber(),a.mapCidRange(tE(o,f),tE(c,f),r);for(let t=1;t<g;t++)tU(c,f),i?o.set(c):(n.readHexNumber(o,f),tL(o,c,f)),n.readHexNumber(c,f),tL(c,o,f),r=n.readNumber(),a.mapCidRange(tE(o,f),tE(c,f),r);break;case 4:n.readHex(h,1),n.readHex(u,f),a.mapOne(tE(h,1),t_(u,f));for(let t=1;t<g;t++)tU(h,1),i||(n.readHexNumber(d,1),tL(h,d,1)),tU(u,f),n.readHexSigned(d,f),tL(u,d,f),a.mapOne(tE(h,1),t_(u,f));break;case 5:n.readHex(o,1),n.readHexNumber(c,1),tL(c,o,1),n.readHex(u,f),a.mapBfRange(tE(o,1),tE(c,1),t_(u,f));for(let t=1;t<g;t++)tU(c,1),i?o.set(c):(n.readHexNumber(o,1),tL(o,c,1)),n.readHexNumber(c,1),tL(c,o,1),n.readHex(u,f),a.mapBfRange(tE(o,1),tE(c,1),t_(u,f));break;default:throw Error(`BinaryCMapReader.process - unknown type: ${t}`)}}return l?i(l):a}}class t$ extends tm{constructor(t,a){a&&(a*=.8),super(a),this.stream=t,this.dict=t.dict,this.input=new Uint8Array(5)}readBlock(){let t,a,i=this.stream,r=i.getByte();for(;eA(r);)r=i.getByte();if(-1===r||126===r){this.eof=!0;return}let s=this.bufferLength;if(122===r){for(a=0,t=this.ensureBuffer(s+4);a<4;++a)t[s+a]=0;this.bufferLength+=4}else{let n=this.input;for(a=1,n[0]=r;a<5;++a){for(r=i.getByte();eA(r);)r=i.getByte();if(n[a]=r,-1===r||126===r)break}if(t=this.ensureBuffer(s+a-1),this.bufferLength+=a-1,a<5){for(;a<5;++a)n[a]=117;this.eof=!0}let l=0;for(a=0;a<5;++a)l=85*l+(n[a]-33);for(a=3;a>=0;--a)t[s+a]=255&l,l>>=8}}}class tH extends tm{constructor(t,a){a&&(a*=.5),super(a),this.stream=t,this.dict=t.dict,this.firstDigit=-1}readBlock(){let t=this.stream.getBytes(8e3);if(!t.length){this.eof=!0;return}let a=t.length+1>>1,i=this.ensureBuffer(this.bufferLength+a),r=this.bufferLength,s=this.firstDigit;for(let a of t){let t;if(a>=48&&a<=57)t=15&a;else{if(!(a>=65&&a<=70||a>=97&&a<=102)){if(62===a){this.eof=!0;break}continue}t=9+(15&a)}s<0?s=t:(i[r++]=s<<4|t,s=-1)}s>=0&&this.eof&&(i[r++]=s<<4,s=-1),this.firstDigit=s,this.bufferLength=r}}let tz=[[-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]],tG=[[-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]],tW=[[-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]],tV=[[-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]],tX=[[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]],tK=[[-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]];class tY{constructor(t,a={}){let i;if("function"!=typeof t?.next)throw Error('CCITTFaxDecoder - invalid "source" parameter.');for(this.source=t,this.eof=!1,this.encoding=a.K||0,this.eoline=a.EndOfLine||!1,this.byteAlign=a.EncodedByteAlign||!1,this.columns=a.Columns||1728,this.rows=a.Rows||0,this.eoblock=a.EndOfBlock??!0,this.black=a.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===(i=this._lookBits(12));)this._eatBits(1);1===i&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}readNextChar(){let t,a,i,r,s;if(this.eof)return -1;let n=this.refLine,l=this.codingLine,o=this.columns;if(0===this.outputBits){let i,s,c;if(this.rowsDone&&(this.eof=!0),this.eof)return -1;if(this.err=!1,this.nextLine2D){for(r=0;l[r]<o;++r)n[r]=l[r];for(n[r++]=o,n[r]=o,l[0]=0,this.codingPos=0,t=0,a=0;l[this.codingPos]<o;)switch(i=this._getTwoDimCode()){case 0:this._addPixels(n[t+1],a),n[t+1]<o&&(t+=2);break;case 1:if(i=s=0,a){do i+=c=this._getBlackCode();while(c>=64);do s+=c=this._getWhiteCode();while(c>=64)}else{do i+=c=this._getWhiteCode();while(c>=64);do s+=c=this._getBlackCode();while(c>=64)}for(this._addPixels(l[this.codingPos]+i,a),l[this.codingPos]<o&&this._addPixels(l[this.codingPos]+s,1^a);n[t]<=l[this.codingPos]&&n[t]<o;)t+=2;break;case 7:if(this._addPixels(n[t]+3,a),a^=1,l[this.codingPos]<o)for(++t;n[t]<=l[this.codingPos]&&n[t]<o;)t+=2;break;case 5:if(this._addPixels(n[t]+2,a),a^=1,l[this.codingPos]<o)for(++t;n[t]<=l[this.codingPos]&&n[t]<o;)t+=2;break;case 3:if(this._addPixels(n[t]+1,a),a^=1,l[this.codingPos]<o)for(++t;n[t]<=l[this.codingPos]&&n[t]<o;)t+=2;break;case 2:if(this._addPixels(n[t],a),a^=1,l[this.codingPos]<o)for(++t;n[t]<=l[this.codingPos]&&n[t]<o;)t+=2;break;case 8:if(this._addPixelsNeg(n[t]-3,a),a^=1,l[this.codingPos]<o)for(t>0?--t:++t;n[t]<=l[this.codingPos]&&n[t]<o;)t+=2;break;case 6:if(this._addPixelsNeg(n[t]-2,a),a^=1,l[this.codingPos]<o)for(t>0?--t:++t;n[t]<=l[this.codingPos]&&n[t]<o;)t+=2;break;case 4:if(this._addPixelsNeg(n[t]-1,a),a^=1,l[this.codingPos]<o)for(t>0?--t:++t;n[t]<=l[this.codingPos]&&n[t]<o;)t+=2;break;case -1:this._addPixels(o,0),this.eof=!0;break;default:d("bad 2d code"),this._addPixels(o,0),this.err=!0}}else for(l[0]=0,this.codingPos=0,a=0;l[this.codingPos]<o;){if(i=0,a)do i+=c=this._getBlackCode();while(c>=64);else do i+=c=this._getWhiteCode();while(c>=64);this._addPixels(l[this.codingPos]+i,a),a^=1}let h=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(i=this._lookBits(12),this.eoline)for(;-1!==i&&1!==i;)this._eatBits(1),i=this._lookBits(12);else for(;0===i;)this._eatBits(1),i=this._lookBits(12);1===i?(this._eatBits(12),h=!0):-1===i&&(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&&h&&this.byteAlign){if(1===(i=this._lookBits(12))){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(r=0;r<4;++r)1!==(i=this._lookBits(12))&&d("bad rtc code: "+i),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(-1===(i=this._lookBits(13)))return this.eof=!0,-1;if(i>>1==1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&i))}this.outputBits=l[0]>0?l[this.codingPos=0]:l[this.codingPos=1],this.row++}if(this.outputBits>=8)s=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&l[this.codingPos]<o&&(this.codingPos++,this.outputBits=l[this.codingPos]-l[this.codingPos-1]);else{i=8,s=0;do{if("number"!=typeof this.outputBits)throw new A('Invalid /CCITTFaxDecode data, "outputBits" must be a number.');this.outputBits>i?(s<<=i,1&this.codingPos||(s|=255>>8-i),this.outputBits-=i,i=0):(s<<=this.outputBits,1&this.codingPos||(s|=255>>8-this.outputBits),i-=this.outputBits,this.outputBits=0,l[this.codingPos]<o?(this.codingPos++,this.outputBits=l[this.codingPos]-l[this.codingPos-1]):i>0&&(s<<=i,i=0))}while(i)}return this.black&&(s^=255),s}_addPixels(t,a){let i=this.codingLine,r=this.codingPos;t>i[r]&&(t>this.columns&&(d("row is wrong length"),this.err=!0,t=this.columns),1&r^a&&++r,i[r]=t),this.codingPos=r}_addPixelsNeg(t,a){let i=this.codingLine,r=this.codingPos;if(t>i[r])t>this.columns&&(d("row is wrong length"),this.err=!0,t=this.columns),1&r^a&&++r,i[r]=t;else if(t<i[r]){for(t<0&&(d("invalid code"),this.err=!0,t=0);r>0&&t<i[r-1];)--r;i[r]=t}this.codingPos=r}_findTableCode(t,a,i,r){let s=r||0;for(let r=t;r<=a;++r){let t=this._lookBits(r);if(-1===t)return[!0,1,!1];if(r<a&&(t<<=a-r),!s||t>=s){let a=i[t-s];if(a[0]===r)return this._eatBits(r),[!0,a[1],!0]}}return[!1,0,!1]}_getTwoDimCode(){let t;if(this.eoblock){if(t=tz[this._lookBits(7)],t?.[0]>0)return this._eatBits(t[0]),t[1]}else{let t=this._findTableCode(1,7,tz);if(t[0]&&t[2])return t[1]}return d("Bad two dim code"),-1}_getWhiteCode(){let t,a=0;if(this.eoblock){if(-1===(a=this._lookBits(12)))return 1;if((t=a>>5?tW[a>>3]:tG[a])[0]>0)return this._eatBits(t[0]),t[1]}else{let t=this._findTableCode(1,9,tW);if(t[0]||(t=this._findTableCode(11,12,tG))[0])return t[1]}return d("bad white code"),this._eatBits(1),1}_getBlackCode(){let t,a;if(this.eoblock){if(-1===(t=this._lookBits(13)))return 1;if((a=t>>7?!(t>>9)&&t>>7?tX[(t>>1)-64]:tK[t>>7]:tV[t])[0]>0)return this._eatBits(a[0]),a[1]}else{let t=this._findTableCode(2,6,tK);if(t[0]||(t=this._findTableCode(7,12,tX,64))[0]||(t=this._findTableCode(10,13,tV))[0])return t[1]}return d("bad black code"),this._eatBits(1),1}_lookBits(t){let a;for(;this.inputBits<t;){if(-1===(a=this.source.next()))return 0===this.inputBits?-1:this.inputBuf<<t-this.inputBits&65535>>16-t;this.inputBuf=this.inputBuf<<8|a,this.inputBits+=8}return this.inputBuf>>this.inputBits-t&65535>>16-t}_eatBits(t){(this.inputBits-=t)<0&&(this.inputBits=0)}}class tJ extends tm{constructor(t,a,i){super(a),this.stream=t,this.dict=t.dict,i instanceof K||(i=K.empty),this.ccittFaxDecoder=new tY({next:()=>t.getByte()},{K:i.get("K"),EndOfLine:i.get("EndOfLine"),EncodedByteAlign:i.get("EncodedByteAlign"),Columns:i.get("Columns"),Rows:i.get("Rows"),EndOfBlock:i.get("EndOfBlock"),BlackIs1:i.get("BlackIs1")})}readBlock(){for(;!this.eof;){let t=this.ccittFaxDecoder.readNextChar();if(-1===t){this.eof=!0;return}this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=t}}get isImageStream(){return!0}}let tZ=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),tQ=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]),t1=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]),t0=[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],t2=[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];class t9 extends tm{#j=!0;constructor(t,a){super(a),this.stream=t,this.dict=t.dict;const i=t.getByte(),r=t.getByte();if(-1===i||-1===r)throw new A(`Invalid header in flate stream: ${i}, ${r}`);if(8!=(15&i))throw new A(`Unknown compression method in flate stream: ${i}, ${r}`);if(((i<<8)+r)%31!=0)throw new A(`Bad FCHECK in flate stream: ${i}, ${r}`);if(32&r)throw new A(`FDICT bit set in flate stream: ${i}, ${r}`);this.codeSize=0,this.codeBuf=0}async getImageData(t,a){let i=await this.asyncGetBytes();return i?i.length<=t?i:i.subarray(0,t):this.getBytes(t)}async asyncGetBytes(){this.stream.reset();let t=this.stream.isAsync?await this.stream.asyncGetBytes():this.stream.getBytes();try{let{readable:a,writable:i}=new DecompressionStream("deflate"),r=i.getWriter();await r.ready,r.write(t).then(async()=>{await r.ready,await r.close()}).catch(()=>{});let s=[],n=0;for await(let t of a)s.push(t),n+=t.byteLength;let l=new Uint8Array(n),o=0;for(let t of s)l.set(t,o),o+=t.byteLength;return l}catch{return this.#j=!1,this.stream=new tr(t,2,t.length,this.stream.dict),this.reset(),null}}get isAsync(){return this.#j}getBits(t){let a=this.stream,i,r=this.codeSize,s=this.codeBuf;for(;r<t;){if(-1===(i=a.getByte()))throw new A("Bad encoding in flate stream");s|=i<<r,r+=8}return i=s&(1<<t)-1,this.codeBuf=s>>t,this.codeSize=r-=t,i}getCode(t){let a=this.stream,i=t[0],r=t[1],s,n=this.codeSize,l=this.codeBuf;for(;n<r&&-1!==(s=a.getByte());)l|=s<<n,n+=8;let o=i[l&(1<<r)-1],c=o>>16;if(c<1||n<c)throw new A("Bad encoding in flate stream");return this.codeBuf=l>>c,this.codeSize=n-c,65535&o}generateHuffmanTable(t){let a=t.length,i,r=0;for(i=0;i<a;++i)t[i]>r&&(r=t[i]);let s=1<<r,n=new Int32Array(s);for(let l=1,o=0,c=2;l<=r;++l,o<<=1,c<<=1)for(let r=0;r<a;++r)if(t[r]===l){let t=0,a=o;for(i=0;i<l;++i)t=t<<1|1&a,a>>=1;for(i=t;i<s;i+=c)n[i]=l<<16|r;++o}return[n,r]}#$(t){d(t),this.eof=!0}readBlock(){let t,a,i,r,s,n=this.stream;try{a=this.getBits(3)}catch(t){this.#$(t.message);return}if(1&a&&(this.eof=!0),0==(a>>=1)){let a;if(-1===(a=n.getByte()))return void this.#$("Bad block header in flate stream");let i=a;if(-1===(a=n.getByte())||(i|=a<<8,-1===(a=n.getByte())))return void this.#$("Bad block header in flate stream");let r=a;if(-1===(a=n.getByte()))return void this.#$("Bad block header in flate stream");if((r|=a<<8)!=(65535&~i)&&(0!==i||0!==r))throw new A("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;let s=this.bufferLength,l=s+i;if(t=this.ensureBuffer(l),this.bufferLength=l,0===i)-1===n.peekByte()&&(this.eof=!0);else{let a=n.getBytes(i);t.set(a,s),a.length<i&&(this.eof=!0)}return}if(1===a)r=t0,s=t2;else{if(2!==a)throw new A("Unknown block type in flate stream");{let t,a,n,l,o=this.getBits(5)+257,c=this.getBits(5)+1,h=this.getBits(4)+4,u=new Uint8Array(tZ.length);for(t=0;t<h;++t)u[tZ[t]]=this.getBits(3);let d=this.generateHuffmanTable(u);i=0,t=0;let f=o+c,g=new Uint8Array(f);for(;t<f;){let r=this.getCode(d);if(16===r)a=2,n=3,l=i;else if(17===r)a=3,n=3,l=i=0;else{if(18!==r){g[t++]=i=r;continue}a=7,n=11,l=i=0}let s=this.getBits(a)+n;for(;s-- >0;)g[t++]=l}r=this.generateHuffmanTable(g.subarray(0,o)),s=this.generateHuffmanTable(g.subarray(o,f))}}let l=(t=this.buffer)?t.length:0,o=this.bufferLength;for(;;){let a=this.getCode(r);if(a<256){o+1>=l&&(l=(t=this.ensureBuffer(o+1)).length),t[o++]=a;continue}if(256===a){this.bufferLength=o;return}a-=257;let n=(a=tQ[a])>>16;n>0&&(n=this.getBits(n)),i=(65535&a)+n,(n=(a=t1[a=this.getCode(s)])>>16)>0&&(n=this.getBits(n));let c=(65535&a)+n;o+i>=l&&(l=(t=this.ensureBuffer(o+i)).length);for(let a=0;a<i;++a,++o)t[o]=t[o-c]}}}let t5=[{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}];class t3{constructor(t,a,i){this.data=t,this.bp=a,this.dataEnd=i,this.chigh=t[a],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}byteIn(){let t=this.data,a=this.bp;255===t[a]?t[a+1]>143?(this.clow+=65280,this.ct=8):(a++,this.clow+=t[a]<<9,this.ct=7,this.bp=a):(a++,this.clow+=a<this.dataEnd?t[a]<<8:65280,this.ct=8,this.bp=a),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(t,a){let i=t[a]>>1,r=1&t[a],s=t5[i],n=s.qe,l,o=this.a-n;if(this.chigh<n)o<n?(o=n,l=r,i=s.nmps):(o=n,l=1^r,1===s.switchFlag&&(r=l),i=s.nlps);else{if(this.chigh-=n,32768&o)return this.a=o,r;o<n?(l=1^r,1===s.switchFlag&&(r=l),i=s.nlps):(l=r,i=s.nmps)}do 0===this.ct&&this.byteIn(),o<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--;while(!(32768&o));return this.a=o,t[a]=i<<1|r,l}}class t6 extends y{constructor(t){super(t,"Jbig2Error")}}class t7{getContexts(t){return t in this?this[t]:this[t]=new Int8Array(65536)}}class t8{constructor(t,a,i){this.data=t,this.start=a,this.end=i}get decoder(){return b(this,"decoder",new t3(this.data,this.start,this.end))}get contextCache(){return b(this,"contextCache",new t7)}}function t4(t,a,i){let r,s=t.getContexts(a),n=1;function l(t){let a=0;for(let r=0;r<t;r++){let t=i.readBit(s,n);n=n<256?n<<1|t:511&(n<<1|t)|256,a=a<<1|t}return a>>>0}let o=l(1),c=l(1)?l(1)?l(1)?l(1)?l(1)?l(32)+4436:l(12)+340:l(8)+84:l(6)+20:l(4)+4:l(2);return 0===o?r=c:c>0&&(r=-c),r>=-0x80000000&&r<=es?r:null}function ae(t,a,i){let r=t.getContexts("IAID"),s=1;for(let t=0;t<i;t++)s=s<<1|a.readBit(r,s);return i<31?s&(1<<i)-1:0x7fffffff&s}let at=["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"],aa=[[{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}]],ai=[{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}]}],ar=[39717,1941,229,405],as=[32,8];function an(t,a,i,r,s,n,l,o){if(t)return ay(new am(o.data,o.start,o.end),a,i,!1);if(0===r&&!n&&!s&&4===l.length&&3===l[0].x&&-1===l[0].y&&-3===l[1].x&&-1===l[1].y&&2===l[2].x&&-2===l[2].y&&-2===l[3].x&&-2===l[3].y)return function(t,a,i){let r,s,n,l,o,c,h,u=i.decoder,d=i.contextCache.getContexts("GB"),f=[];for(s=0;s<a;s++)for(n=0,o=f[s]=new Uint8Array(t),c=s<1?o:f[s-1],r=(h=s<2?o:f[s-2])[0]<<13|h[1]<<12|h[2]<<11|c[0]<<7|c[1]<<6|c[2]<<5|c[3]<<4;n<t;n++)o[n]=l=u.readBit(d,r),r=(31735&r)<<1|(n+3<t?h[n+3]<<11:0)|(n+4<t?c[n+4]<<4:0)|l;return f}(a,i,o);let c=!!n,h=aa[r].concat(l);h.sort((t,a)=>t.y-a.y||t.x-a.x);let u=h.length,d=new Int8Array(u),f=new Int8Array(u),g=[],p,m,b=0,y=0,w=0,x=0;for(m=0;m<u;m++)d[m]=h[m].x,f[m]=h[m].y,y=Math.min(y,h[m].x),w=Math.max(w,h[m].x),x=Math.min(x,h[m].y),m<u-1&&h[m].y===h[m+1].y&&h[m].x===h[m+1].x-1?b|=1<<u-1-m:g.push(m);let k=g.length,v=new Int8Array(k),A=new Int8Array(k),C=new Uint16Array(k);for(p=0;p<k;p++)m=g[p],v[p]=h[m].x,A[p]=h[m].y,C[p]=1<<u-1-m;let S=-y,I=-x,B=a-w,F=ar[r],M=new Uint8Array(a),T=[],R=o.decoder,N=o.contextCache.getContexts("GB"),D,O,P,E,_,L=0,U=0;for(let t=0;t<i;t++){if(s&&(L^=R.readBit(N,F))){T.push(M);continue}for(M=new Uint8Array(M),T.push(M),D=0;D<a;D++){if(c&&n[t][D]){M[D]=0;continue}if(D>=S&&D<B&&t>=I)for(m=0,U=U<<1&b;m<k;m++)O=t+A[m],P=D+v[m],(E=T[O][P])&&(U|=E=C[m]);else for(m=0,U=0,_=u-1;m<u;m++,_--)(P=D+d[m])>=0&&P<a&&(O=t+f[m])>=0&&(E=T[O][P])&&(U|=E<<_);let i=R.readBit(N,U);M[D]=i}}return T}function al(t,a,i,r,s,n,l,o,c){let h,u=ai[i].coding;0===i&&(u=u.concat([o[0]]));let d=u.length,f=new Int32Array(d),g=new Int32Array(d);for(h=0;h<d;h++)f[h]=u[h].x,g[h]=u[h].y;let p=ai[i].reference;0===i&&(p=p.concat([o[1]]));let m=p.length,b=new Int32Array(m),y=new Int32Array(m);for(h=0;h<m;h++)b[h]=p[h].x,y[h]=p[h].y;let w=r[0].length,x=r.length,k=as[i],v=[],A=c.decoder,C=c.contextCache.getContexts("GR"),S=0;for(let i=0;i<a;i++){if(l&&(S^=A.readBit(C,k)))throw new t6("prediction is not supported");let a=new Uint8Array(t);v.push(a);for(let l=0;l<t;l++){let o,c,u=0;for(h=0;h<d;h++)o=i+g[h],c=l+f[h],o<0||c<0||c>=t?u<<=1:u=u<<1|v[o][c];for(h=0;h<m;h++)o=i+y[h]-n,c=l+b[h]-s,o<0||o>=x||c<0||c>=w?u<<=1:u=u<<1|r[o][c];let p=A.readBit(C,u);a[l]=p}}return v}function ao(t,a,i,r,s,n,l,o,c,h,u,d,f,g,p,m,b,y,w){let x,k;if(t&&a)throw new t6("refinement with Huffman is not supported");let v=[];for(x=0;x<r;x++)k=new Uint8Array(i),s&&k.fill(s),v.push(k);let A=b.decoder,C=b.contextCache,S=t?-g.tableDeltaT.decode(w):-t4(C,"IADT",A),I=0;for(x=0;x<n;){S+=t?g.tableDeltaT.decode(w):t4(C,"IADT",A);let r=I+=t?g.tableFirstS.decode(w):t4(C,"IAFS",A);for(;;){let s,n,I,B=0;l>1&&(B=t?w.readBits(y):t4(C,"IAIT",A));let F=l*S+B,M=t?g.symbolIDTable.decode(w):ae(C,A,c),T=a&&(t?w.readBit():t4(C,"IARI",A)),R=o[M],N=R[0].length,D=R.length;if(T){let t=t4(C,"IARDW",A),a=t4(C,"IARDH",A);N+=t,D+=a,R=al(N,D,p,R,(t>>1)+t4(C,"IARDX",A),(a>>1)+t4(C,"IARDY",A),!1,m,b)}let O=0;h?1&d?O=D-1:r+=D-1:d>1?r+=N-1:O=N-1;let P=F-(1&d?0:D-1),E=r-(2&d?N-1:0);if(h)for(s=0;s<D;s++){if(!(k=v[E+s]))continue;I=R[s];let t=Math.min(i-P,N);switch(f){case 0:for(n=0;n<t;n++)k[P+n]|=I[n];break;case 2:for(n=0;n<t;n++)k[P+n]^=I[n];break;default:throw new t6(`operator ${f} is not supported`)}}else for(n=0;n<D;n++)if(k=v[P+n])switch(I=R[n],f){case 0:for(s=0;s<N;s++)k[E+s]|=I[s];break;case 2:for(s=0;s<N;s++)k[E+s]^=I[s];break;default:throw new t6(`operator ${f} is not supported`)}x++;let _=t?g.tableDeltaS.decode(w):t4(C,"IADS",A);if(null===_)break;r+=O+_+u}}return v}function ac(t,a){return{width:ev(t,a),height:ev(t,a+4),x:ev(t,a+8),y:ev(t,a+12),combinationOperator:7&t[a+16]}}class ah{onPageInformation(t){this.currentPageInfo=t;let a=new Uint8ClampedArray((t.width+7>>3)*t.height);t.defaultPixelValue&&a.fill(255),this.buffer=a}drawBitmap(t,a){let i=this.currentPageInfo,r=t.width,s=t.height,n=i.width+7>>3,l=i.combinationOperatorOverride?t.combinationOperator:i.combinationOperator,o=this.buffer,c=128>>(7&t.x),h,u,d,f,g=t.y*n+(t.x>>3);switch(l){case 0:for(h=0;h<s;h++){for(u=0,d=c,f=g;u<r;u++)a[h][u]&&(o[f]|=d),!(d>>=1)&&(d=128,f++);g+=n}break;case 2:for(h=0;h<s;h++){for(u=0,d=c,f=g;u<r;u++)a[h][u]&&(o[f]^=d),!(d>>=1)&&(d=128,f++);g+=n}break;default:throw new t6(`operator ${l} is not supported`)}}onImmediateGenericRegion(t,a,i,r){let s=t.info,n=new t8(a,i,r),l=an(t.mmr,s.width,s.height,t.template,t.prediction,null,t.at,n);this.drawBitmap(s,l)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(t,a,i,r,s,n){let l,o;t.huffman&&(l=function(t,a,i){let r,s,n,l=0;switch(t.huffmanDHSelector){case 0:case 1:r=ap(t.huffmanDHSelector+4);break;case 3:r=ab(l,a,i),l++;break;default:throw new t6("invalid Huffman DH selector")}switch(t.huffmanDWSelector){case 0:case 1:s=ap(t.huffmanDWSelector+2);break;case 3:s=ab(l,a,i),l++;break;default:throw new t6("invalid Huffman DW selector")}return t.bitmapSizeSelector?(n=ab(l,a,i),l++):n=ap(1),{tableDeltaHeight:r,tableDeltaWidth:s,tableBitmapSize:n,tableAggregateInstances:t.aggregationInstancesSelector?ab(l,a,i):ap(1)}}(t,i,this.customTables),o=new am(r,s,n));let c=this.symbols;c||(this.symbols=c={});let h=[];for(let t of i){let a=c[t];a&&h.push(...a)}let u=new t8(r,s,n);c[a]=function(t,a,i,r,s,n,l,o,c,h,u,d){let f,g;if(t&&a)throw new t6("symbol refinement with Huffman is not supported");let p=[],m=0,b=ey(i.length+r),y=u.decoder,w=u.contextCache;for(t&&(f=ap(1),g=[],b=Math.max(b,1));p.length<r;){m+=t?n.tableDeltaHeight.decode(d):t4(w,"IADH",y);let r=0,s=0,f=t?g.length:0;for(;;){let f,x=t?n.tableDeltaWidth.decode(d):t4(w,"IADW",y);if(null===x)break;if(r+=x,s+=r,a){let s=t4(w,"IAAI",y);if(s>1)f=ao(t,a,r,m,0,s,1,i.concat(p),b,0,0,1,0,n,c,h,u,0,d);else{let t=ae(w,y,b),a=t4(w,"IARDX",y),s=t4(w,"IARDY",y);f=al(r,m,c,t<i.length?i[t]:p[t-i.length],a,s,!1,h,u)}p.push(f)}else t?g.push(r):(f=an(!1,r,m,l,!1,null,o,u),p.push(f))}if(t&&!a){let t,a=n.tableBitmapSize.decode(d);if(d.byteAlign(),0===a)t=function(t,a,i){let r=[];for(let s=0;s<i;s++){let i=new Uint8Array(a);r.push(i);for(let r=0;r<a;r++)i[r]=t.readBit();t.byteAlign()}return r}(d,s,m);else{let i=d.end,r=d.position+a;d.end=r,t=ay(d,s,m,!1),d.end=i,d.position=r}let i=g.length;if(f===i-1)p.push(t);else{let a,r,s,n,l=0;for(a=f;a<i;a++){for(r=0,s=l+g[a],n=[];r<m;r++)n.push(t[r].subarray(l,s));p.push(n),l=s}}}}let x=[],k=[],v,A,C=!1,S=i.length+r;for(;k.length<S;){let a=t?f.decode(d):t4(w,"IAEX",y);for(;a--;)k.push(C);C=!C}for(v=0,A=i.length;v<A;v++)k[v]&&x.push(i[v]);for(let t=0;t<r;v++,t++)k[v]&&x.push(p[t]);return x}(t.huffman,t.refinement,h,t.numberOfNewSymbols,t.numberOfExportedSymbols,l,t.template,t.at,t.refinementTemplate,t.refinementAt,u,o)}onImmediateTextRegion(t,a,i,r,s){let n,l,o=t.info,c=this.symbols,h=[];for(let t of a){let a=c[t];a&&h.push(...a)}let u=ey(h.length);t.huffman&&(l=new am(i,r,s),n=function(t,a,i,r,s){let n=[];for(let t=0;t<=34;t++){let a=s.readBits(4);n.push(new au([t,a,0,0]))}let l=new af(n,!1);n.length=0;for(let t=0;t<r;){let a=l.decode(s);if(a>=32){let i,r,l;switch(a){case 32:if(0===t)throw new t6("no previous value in symbol ID table");r=s.readBits(2)+3,i=n[t-1].prefixLength;break;case 33:r=s.readBits(3)+3,i=0;break;case 34:r=s.readBits(7)+11,i=0;break;default:throw new t6("invalid code length in symbol ID table")}for(l=0;l<r;l++)n.push(new au([t,i,0,0])),t++}else n.push(new au([t,a,0,0])),t++}s.byteAlign();let o=new af(n,!1),c,h,u,d=0;switch(t.huffmanFS){case 0:case 1:c=ap(t.huffmanFS+6);break;case 3:c=ab(d,a,i),d++;break;default:throw new t6("invalid Huffman FS selector")}switch(t.huffmanDS){case 0:case 1:case 2:h=ap(t.huffmanDS+8);break;case 3:h=ab(d,a,i),d++;break;default:throw new t6("invalid Huffman DS selector")}switch(t.huffmanDT){case 0:case 1:case 2:u=ap(t.huffmanDT+11);break;case 3:u=ab(d,a,i),d++;break;default:throw new t6("invalid Huffman DT selector")}if(t.refinement)throw new t6("refinement with Huffman is not supported");return{symbolIDTable:o,tableFirstS:c,tableDeltaS:h,tableDeltaT:u}}(t,a,this.customTables,h.length,l));let d=new t8(i,r,s),f=ao(t.huffman,t.refinement,o.width,o.height,t.defaultPixelValue,t.numberOfSymbolInstances,t.stripSize,h,u,t.transposed,t.dsOffset,t.referenceCorner,t.combinationOperator,n,t.refinementTemplate,t.refinementAt,d,t.logStripSize,l);this.drawBitmap(o,f)}onImmediateLosslessTextRegion(){this.onImmediateTextRegion(...arguments)}onPatternDictionary(t,a,i,r,s){let n=this.patterns;n||(this.patterns=n={});let l=new t8(i,r,s);n[a]=function(t,a,i,r,s,n){let l=[];t||(l.push({x:-a,y:0}),0===s&&l.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));let o=an(t,(r+1)*a,i,s,!1,null,l,n),c=[];for(let t=0;t<=r;t++){let r=[],s=a*t,n=s+a;for(let t=0;t<i;t++)r.push(o[t].subarray(s,n));c.push(r)}return c}(t.mmr,t.patternWidth,t.patternHeight,t.maxPatternIndex,t.template,l)}onImmediateHalftoneRegion(t,a,i,r,s){let n=this.patterns[a[0]],l=t.info,o=new t8(i,r,s),c=function(t,a,i,r,s,n,l,o,c,h,u,d,f,g,p){let m,b,y,w,x,k,v,A,C,S,I,B,F,M;if(l)throw new t6("skip is not supported");if(0!==o)throw new t6(`operator "${o}" is not supported in halftone region`);let T=[];for(m=0;m<s;m++)y=new Uint8Array(r),n&&y.fill(n),T.push(y);let R=a.length,N=a[0],D=N[0].length,O=N.length,P=ey(R),E=[];t||(E.push({x:i<=1?3:2,y:-1}),0===i&&E.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));let _=[];for(t&&(w=new am(p.data,p.start,p.end)),m=P-1;m>=0;m--)x=t?ay(w,c,h,!0):an(!1,c,h,i,!1,null,E,p),_[m]=x;for(k=0;k<h;k++)for(v=0;v<c;v++){for(A=0,C=0,b=P-1;b>=0;b--)A^=_[b][k][v],C|=A<<b;if(S=a[C],I=u+k*g+v*f>>8,B=d+k*f-v*g>>8,I>=0&&I+D<=r&&B>=0&&B+O<=s)for(m=0;m<O;m++)for(b=0,M=T[B+m],F=S[m];b<D;b++)M[I+b]|=F[b];else{let t,a;for(m=0;m<O;m++)if(!((a=B+m)<0||a>=s))for(b=0,M=T[a],F=S[m];b<D;b++)(t=I+b)>=0&&t<r&&(M[t]|=F[b])}}return T}(t.mmr,n,t.template,l.width,l.height,t.defaultPixelValue,t.enableSkip,t.combinationOperator,t.gridWidth,t.gridHeight,t.gridOffsetX,t.gridOffsetY,t.gridVectorX,t.gridVectorY,o);this.drawBitmap(l,c)}onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion(...arguments)}onTables(t,a,i,r){let s=this.customTables;s||(this.customTables=s={}),s[t]=function(t,a,i){let r=t[a],s=0|ev(t,a+1),n=0|ev(t,a+5),l=new am(t,a+9,i),o=1+(r>>1&7),c=1+(r>>4&7),h=[],u,d,f=s;do u=l.readBits(o),d=l.readBits(c),h.push(new au([f,u,d,0])),f+=1<<d;while(f<n);return u=l.readBits(o),h.push(new au([s-1,u,32,0,"lower"])),u=l.readBits(o),h.push(new au([n,u,32,0])),1&r&&(u=l.readBits(o),h.push(new au([u,0]))),new af(h,!1)}(a,i,r)}}class au{constructor(t){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])}}class ad{constructor(t){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}buildTree(t,a){let i=t.prefixCode>>a&1;if(a<=0)this.children[i]=new ad(t);else{let r=this.children[i];r||(this.children[i]=r=new ad(null)),r.buildTree(t,a-1)}}decodeNode(t){if(this.isLeaf){if(this.isOOB)return null;let a=t.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-a:a)}let a=this.children[t.readBit()];if(!a)throw new t6("invalid Huffman data");return a.decodeNode(t)}}class af{constructor(t,a){a||this.assignPrefixCodes(t),this.rootNode=new ad(null);for(let a=0,i=t.length;a<i;a++){const i=t[a];i.prefixLength>0&&this.rootNode.buildTree(i,i.prefixLength-1)}}decode(t){return this.rootNode.decodeNode(t)}assignPrefixCodes(t){let a=t.length,i=0;for(let r=0;r<a;r++)i=Math.max(i,t[r].prefixLength);let r=new Uint32Array(i+1);for(let i=0;i<a;i++)r[t[i].prefixLength]++;let s,n,l,o=1,c=0;for(r[0]=0;o<=i;){for(s=c=c+r[o-1]<<1,n=0;n<a;)(l=t[n]).prefixLength===o&&(l.prefixCode=s,s++),n++;o++}}}let ag={};function ap(t){let a,i=ag[t];if(i)return i;switch(t){case 1:a=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:a=[[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:a=[[-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:a=[[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:a=[[-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:a=[[-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:a=[[-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:a=[[-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:a=[[-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:a=[[-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:a=[[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:a=[[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:a=[[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:a=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:a=[[-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 t6(`standard table B.${t} does not exist`)}for(let t=0,i=a.length;t<i;t++)a[t]=new au(a[t]);return i=new af(a,!0),ag[t]=i,i}class am{constructor(t,a,i){this.data=t,this.start=a,this.end=i,this.position=a,this.shift=-1,this.currentByte=0}readBit(){if(this.shift<0){if(this.position>=this.end)throw new t6("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}let t=this.currentByte>>this.shift&1;return this.shift--,t}readBits(t){let a,i=0;for(a=t-1;a>=0;a--)i|=this.readBit()<<a;return i}byteAlign(){this.shift=-1}next(){return this.position>=this.end?-1:this.data[this.position++]}}function ab(t,a,i){let r=0;for(let s=0,n=a.length;s<n;s++){let n=i[a[s]];if(n){if(t===r)return n;r++}}throw new t6("can't find custom Huffman table")}function ay(t,a,i,r){let s=new tY(t,{K:-1,Columns:a,Rows:i,BlackIs1:!0,EndOfBlock:r}),n=[],l,o=!1;for(let t=0;t<i;t++){let t=new Uint8Array(a);n.push(t);let i=-1;for(let r=0;r<a;r++)i<0&&(-1===(l=s.readNextChar())&&(l=0,o=!0),i=7),t[r]=l>>i&1,i--}if(r&&!o)for(let t=0;t<5&&-1!==s.readNextChar();t++);return n}class aw{parseChunks(t){return function(t){let a=new ah;for(let r=0,s=t.length;r<s;r++){let s=t[r];var i=function(t,a,i,r){let s=[],n=i;for(;n<r;){let i=function(t,a){let i,r,s={};s.number=ev(t,a);let n=t[a+4],l=63&n;if(!at[l])throw new t6("invalid segment type: "+l);s.type=l,s.typeName=at[l],s.deferredNonRetain=!!(128&n);let o=t[a+5],c=o>>5&7,h=[31&o],u=a+6;if(7===c){c=0x1fffffff&ev(t,u-1),u+=3;let a=c+8>>3;for(h[0]=t[u++];--a>0;)h.push(t[u++])}else if(5===c||6===c)throw new t6("invalid referred-to flags");s.retainBits=h;let d=4;s.number<=256?d=1:s.number<=65536&&(d=2);let f=[];for(i=0;i<c;i++){let a;a=1===d?t[u]:2===d?ek(t,u):ev(t,u),f.push(a),u+=d}if(s.referredTo=f,64&n?(s.pageAssociation=ev(t,u),u+=4):s.pageAssociation=t[u++],s.length=ev(t,u),u+=4,0xffffffff===s.length){if(38!==l)throw new t6("invalid unknown segment length");{let a=ac(t,u),n=!!(1&t[u+17]),l=new Uint8Array(6);for(n||(l[0]=255,l[1]=172),l[2]=a.height>>>24&255,l[3]=a.height>>16&255,l[4]=a.height>>8&255,l[5]=255&a.height,i=u,r=t.length;i<r;i++){let a=0;for(;a<6&&l[a]===t[i+a];)a++;if(6===a){s.length=i+6;break}}if(0xffffffff===s.length)throw new t6("segment end was not found")}}return s.headerEnd=u,s}(a,n);n=i.headerEnd;let r={header:i,data:a};if(t.randomAccess||(r.start=n,r.end=n+=i.length),s.push(r),51===i.type)break}if(t.randomAccess)for(let t=0,a=s.length;t<a;t++)s[t].start=n,n+=s[t].header.length,s[t].end=n;return s}({},s.data,s.start,s.end);for(let t=0,r=i.length;t<r;t++)!function(t,a){let i=t.header,r=t.data,s=t.end,n,l,o,c,h=t.start;switch(i.type){case 0:let u={},d=ek(r,h);if(u.huffman=!!(1&d),u.refinement=!!(2&d),u.huffmanDHSelector=d>>2&3,u.huffmanDWSelector=d>>4&3,u.bitmapSizeSelector=d>>6&1,u.aggregationInstancesSelector=d>>7&1,u.bitmapCodingContextUsed=!!(256&d),u.bitmapCodingContextRetained=!!(512&d),u.template=d>>10&3,u.refinementTemplate=d>>12&1,h+=2,!u.huffman){for(o=0,c=0===u.template?4:1,l=[];o<c;o++)l.push({x:ew(r,h),y:ew(r,h+1)}),h+=2;u.at=l}if(u.refinement&&!u.refinementTemplate){for(o=0,l=[];o<2;o++)l.push({x:ew(r,h),y:ew(r,h+1)}),h+=2;u.refinementAt=l}u.numberOfExportedSymbols=ev(r,h),u.numberOfNewSymbols=ev(r,h+=4),h+=4,n=[u,i.number,i.referredTo,r,h,s];break;case 6:case 7:let f={};f.info=ac(r,h);let g=ek(r,h+=17);if(h+=2,f.huffman=!!(1&g),f.refinement=!!(2&g),f.logStripSize=g>>2&3,f.stripSize=1<<f.logStripSize,f.referenceCorner=g>>4&3,f.transposed=!!(64&g),f.combinationOperator=g>>7&3,f.defaultPixelValue=g>>9&1,f.dsOffset=g<<17>>27,f.refinementTemplate=g>>15&1,f.huffman){let t=ek(r,h);h+=2,f.huffmanFS=3&t,f.huffmanDS=t>>2&3,f.huffmanDT=t>>4&3,f.huffmanRefinementDW=t>>6&3,f.huffmanRefinementDH=t>>8&3,f.huffmanRefinementDX=t>>10&3,f.huffmanRefinementDY=t>>12&3,f.huffmanRefinementSizeSelector=!!(16384&t)}if(f.refinement&&!f.refinementTemplate){for(o=0,l=[];o<2;o++)l.push({x:ew(r,h),y:ew(r,h+1)}),h+=2;f.refinementAt=l}f.numberOfSymbolInstances=ev(r,h),h+=4,n=[f,i.referredTo,r,h,s];break;case 16:let p={},m=r[h++];p.mmr=!!(1&m),p.template=m>>1&3,p.patternWidth=r[h++],p.patternHeight=r[h++],p.maxPatternIndex=ev(r,h),h+=4,n=[p,i.number,r,h,s];break;case 22:case 23:let b={};b.info=ac(r,h),h+=17;let y=r[h++];b.mmr=!!(1&y),b.template=y>>1&3,b.enableSkip=!!(8&y),b.combinationOperator=y>>4&7,b.defaultPixelValue=y>>7&1,b.gridWidth=ev(r,h),b.gridHeight=ev(r,h+=4),b.gridOffsetX=0|ev(r,h+=4),b.gridOffsetY=0|ev(r,h+=4),b.gridVectorX=ek(r,h+=4),b.gridVectorY=ek(r,h+=2),h+=2,n=[b,i.referredTo,r,h,s];break;case 38:case 39:let w={};w.info=ac(r,h),h+=17;let x=r[h++];if(w.mmr=!!(1&x),w.template=x>>1&3,w.prediction=!!(8&x),!w.mmr){for(o=0,c=0===w.template?4:1,l=[];o<c;o++)l.push({x:ew(r,h),y:ew(r,h+1)}),h+=2;w.at=l}n=[w,r,h,s];break;case 48:let k={width:ev(r,h),height:ev(r,h+4),resolutionX:ev(r,h+8),resolutionY:ev(r,h+12)};0xffffffff===k.height&&delete k.height;let v=r[h+16];ek(r,h+17),k.lossless=!!(1&v),k.refinement=!!(2&v),k.defaultPixelValue=v>>2&1,k.combinationOperator=v>>3&3,k.requiresBuffer=!!(32&v),k.combinationOperatorOverride=!!(64&v),n=[k];break;case 49:case 50:case 51:case 62:break;case 53:n=[i.number,r,h,s];break;default:throw new t6(`segment type ${i.typeName}(${i.type}) is not implemented`)}let A="on"+i.typeName;A in a&&a[A].apply(a,n)}(i[t],a)}return a.buffer}(t)}parse(t){throw Error("Not implemented: Jbig2Image.parse")}}class ax extends tm{constructor(t,a,i){super(a),this.stream=t,this.dict=t.dict,this.maybeLength=a,this.params=i}get bytes(){return b(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}readBlock(){this.decodeImage()}get isAsyncDecoder(){return!0}get isImageStream(){return!0}async decodeImage(t,a){if(this.eof)return this.buffer;t||=this.bytes;try{let a=null;if(this.params instanceof K){let t=this.params.get("JBIG2Globals");t instanceof ei&&(a=t.getBytes())}this.buffer=await tg.decode(t,this.dict.get("Width"),this.dict.get("Height"),a)}catch{return f("Jbig2Stream: Falling back to JS JBIG2 decoder."),this.decodeImageFallback(t)}return this.bufferLength=this.buffer.length,this.eof=!0,this.buffer}async decodeImageFallback(t){if(this.eof)return this.buffer;t||=this.bytes;let a=new aw,i=[];if(this.params instanceof K){let t=this.params.get("JBIG2Globals");if(t instanceof ei){let a=t.getBytes();i.push({data:a,start:0,end:a.length})}}i.push({data:t,start:0,end:t.length});let r=a.parseChunks(i),s=r.length;for(let t=0;t<s;t++)r[t]^=255;return this.buffer=r,this.bufferLength=s,this.eof=!0,this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}}class ak extends tm{constructor(t,a,i){super(a),this.stream=t,this.dict=t.dict,this.maybeLength=a,this.params=i}get bytes(){return b(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}readBlock(t){g("JpxStream.readBlock")}get isAsyncDecoder(){return!0}async decodeImage(t,a){return this.eof||(t||=this.bytes,this.buffer=await tT.decode(t,a),this.bufferLength=this.buffer.length,this.eof=!0),this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}get isImageStream(){return!0}}class av extends tm{constructor(t,a,i){super(a),this.stream=t,this.dict=t.dict,this.cachedData=0,this.bitsCached=0;const r={earlyChange:i,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(4096),dictionaryLengths:new Uint16Array(4096),dictionaryPrevCodes:new Uint16Array(4096),currentSequence:new Uint8Array(4096),currentSequenceLength:0};for(let t=0;t<256;++t)r.dictionaryValues[t]=t,r.dictionaryLengths[t]=1;this.lzwState=r}readBits(t){let a=this.bitsCached,i=this.cachedData;for(;a<t;){let t=this.stream.getByte();if(-1===t)return this.eof=!0,null;i=i<<8|t,a+=8}return this.bitsCached=a-=t,this.cachedData=i,this.lastCode=null,i>>>a&(1<<t)-1}readBlock(){let t,a,i,r=1024,s=this.lzwState;if(!s)return;let n=s.earlyChange,l=s.nextCode,o=s.dictionaryValues,c=s.dictionaryLengths,h=s.dictionaryPrevCodes,u=s.codeLength,d=s.prevCode,f=s.currentSequence,g=s.currentSequenceLength,p=0,m=this.bufferLength,b=this.ensureBuffer(this.bufferLength+r);for(t=0;t<512;t++){let t=this.readBits(u),s=g>0;if(t<256)f[0]=t,g=1;else{if(!(t>=258)){if(256===t){u=9,l=258,g=0;continue}this.eof=!0,delete this.lzwState;break}if(t<l)for(a=(g=c[t])-1,i=t;a>=0;a--)f[a]=o[i],i=h[i];else f[g++]=f[0]}if(s&&(h[l]=d,c[l]=c[d]+1,o[l]=f[0],u=++l+n&l+n-1?u:0|Math.min(Math.log(l+n)/.6931471805599453+1,12)),d=t,r<(p+=g)){do r+=512;while(r<p);b=this.ensureBuffer(this.bufferLength+r)}for(a=0;a<g;a++)b[m++]=f[a]}s.nextCode=l,s.codeLength=u,s.prevCode=d,s.currentSequenceLength=g,this.bufferLength=m}}class aA extends tm{constructor(t,a,i){if(super(a),!(i instanceof K))return t;const r=this.predictor=i.get("Predictor")||1;if(r<=1)return t;if(2!==r&&(r<10||r>15))throw new A(`Unsupported predictor: ${r}`);this.readBlock=2===r?this.readBlockTiff:this.readBlockPng,this.stream=t,this.dict=t.dict;const s=this.colors=i.get("Colors")||1,n=this.bits=i.get("BPC","BitsPerComponent")||8,l=this.columns=i.get("Columns")||1;return this.pixBytes=s*n+7>>3,this.rowBytes=l*s*n+7>>3,this}readBlockTiff(){let t=this.rowBytes,a=this.bufferLength,i=this.ensureBuffer(a+t),r=this.bits,s=this.colors,n=this.stream.getBytes(t);if(this.eof=!n.length,this.eof)return;let l,o=0,c=0,h=0,u=0,d=a;if(1===r&&1===s)for(l=0;l<t;++l){let t=n[l]^o;t^=t>>1,t^=t>>2,t^=t>>4,o=(1&t)<<7,i[d++]=t}else if(8===r){for(l=0;l<s;++l)i[d++]=n[l];for(;l<t;++l)i[d]=i[d-s]+n[l],d++}else if(16===r){let a=2*s;for(l=0;l<a;++l)i[d++]=n[l];for(;l<t;l+=2){let t=((255&n[l])<<8)+(255&n[l+1])+((255&i[d-a])<<8)+(255&i[d-a+1]);i[d++]=t>>8&255,i[d++]=255&t}}else{let t=new Uint8Array(s+1),d=(1<<r)-1,f=0,g=a,p=this.columns;for(l=0;l<p;++l)for(let a=0;a<s;++a)h<r&&(o=o<<8|255&n[f++],h+=8),t[a]=t[a]+(o>>h-r)&d,h-=r,c=c<<r|t[a],(u+=r)>=8&&(i[g++]=c>>u-8&255,u-=8);u>0&&(i[g++]=(c<<8-u)+(o&(1<<8-u)-1))}this.bufferLength+=t}readBlockPng(){let t=this.rowBytes,a=this.pixBytes,i=this.stream.getByte(),r=this.stream.getBytes(t);if(this.eof=!r.length,this.eof)return;let s=this.bufferLength,n=this.ensureBuffer(s+t),l=n.subarray(s-t,s);0===l.length&&(l=new Uint8Array(t));let o,c,h,u=s;switch(i){case 0:for(o=0;o<t;++o)n[u++]=r[o];break;case 1:for(o=0;o<a;++o)n[u++]=r[o];for(;o<t;++o)n[u]=n[u-a]+r[o]&255,u++;break;case 2:for(o=0;o<t;++o)n[u++]=l[o]+r[o]&255;break;case 3:for(o=0;o<a;++o)n[u++]=(l[o]>>1)+r[o];for(;o<t;++o)n[u]=(l[o]+n[u-a]>>1)+r[o]&255,u++;break;case 4:for(o=0;o<a;++o)c=l[o],h=r[o],n[u++]=c+h;for(;o<t;++o){c=l[o];let t=l[o-a],i=n[u-a],s=i+c-t,d=s-i;d<0&&(d=-d);let f=s-c;f<0&&(f=-f);let g=s-t;g<0&&(g=-g),h=r[o],n[u++]=d<=f&&d<=g?i+h:f<=g?c+h:t+h}break;default:throw new A(`Unsupported predictor: ${i}`)}this.bufferLength+=t}}class aC extends tm{constructor(t,a){super(a),this.stream=t,this.dict=t.dict}readBlock(){let t=this.stream.getBytes(2);if(!t||t.length<2||128===t[0]){this.eof=!0;return}let a,i=this.bufferLength,r=t[0];if(r<128){if((a=this.ensureBuffer(i+r+1))[i++]=t[1],r>0){let t=this.stream.getBytes(r);a.set(t,i),i+=r}}else r=257-r,(a=this.ensureBuffer(i+r+1)).fill(t[1],i,i+r),i+=r;this.bufferLength=i}}class aS{constructor({lexer:t,xref:a,allowStreams:i=!1,recoveryMode:r=!1}){this.lexer=t,this.xref=a,this.allowStreams=i,this.recoveryMode=r,this.imageCache=Object.create(null),this._imageId=0,this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof V&&"ID"===this.buf2.cmd?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}tryShift(){try{return this.shift(),!0}catch(t){if(t instanceof eh)throw t;return!1}}getObj(t=null){let a=this.buf1;if(this.shift(),a instanceof V)switch(a.cmd){case"BI":return this.makeInlineImage(t);case"[":let i=[];for(;!ee(this.buf1,"]")&&this.buf1!==$;)i.push(this.getObj(t));if(this.buf1===$){if(this.recoveryMode)return i;throw new eu("End of file inside array.")}return this.shift(),i;case"<<":let r=new K(this.xref);for(;!ee(this.buf1,">>")&&this.buf1!==$;){if(!(this.buf1 instanceof W)){d("Malformed dictionary: key must be a name object"),this.shift();continue}let a=this.buf1.name;if(this.shift(),this.buf1===$)break;r.set(a,this.getObj(t))}if(this.buf1===$){if(this.recoveryMode)return r;throw new eu("End of file inside dictionary.")}if(ee(this.buf2,"stream"))return this.allowStreams?this.makeStream(r,t):r;return this.shift(),r;default:return a}if(Number.isInteger(a)){if(Number.isInteger(this.buf1)&&ee(this.buf2,"R")){let t=Y.get(a,this.buf1);return this.shift(),this.shift(),t}return a}return"string"==typeof a&&t?t.decryptString(a):a}findDefaultInlineStreamEnd(t){let{knownCommands:a}=this.lexer,i=t.pos,r,s,n=0;for(;-1!==(r=t.getByte());)if(0===n)n=+(69===r);else if(1===n)n=2*(73===r);else if(32===r||10===r||13===r){s=t.pos;let i=t.peekBytes(15),l=i.length;if(0===l)break;for(let t=0;t<l;t++)if((0!==(r=i[t])||0===i[t+1])&&10!==r&&13!==r&&(r<32||r>127)){n=0;break}if(2!==n)continue;if(!a){f("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}let o=new aF(new tr(t.peekBytes(75)),a);o._hexStringWarn=()=>{};let c=0;for(;;){let t=o.getObj();if(t===$){n=0;break}if(t instanceof V){let i=a[t.cmd];if(!i){n=0;break}if(i.variableArgs?c<=i.numArgs:c===i.numArgs)break;c=0;continue}c++}if(2===n)break}else n=0;-1===r&&(f("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),s&&(f('... trying to recover by using the last "EI" occurrence.'),t.skip(-(t.pos-s))));let l=4;return t.skip(-l),r=t.peekByte(),t.skip(l),eA(r)||l--,t.pos-l-i}findDCTDecodeInlineStreamEnd(t){let a=t.pos,i,r,s=!1;for(;-1!==(i=t.getByte());)if(255===i){switch(t.getByte()){case 0:break;case 255:t.skip(-1);break;case 217:s=!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=t.getUint16())>2?t.skip(r-2):t.skip(-2)}if(s)break}let n=t.pos-a;return -1===i?(f("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),t.skip(-n),this.findDefaultInlineStreamEnd(t)):(this.inlineStreamSkipEI(t),n)}findASCII85DecodeInlineStreamEnd(t){let a,i=t.pos;for(;-1!==(a=t.getByte());)if(126===a){let i=t.pos;for(a=t.peekByte();eA(a);)t.skip(),a=t.peekByte();if(62===a){t.skip();break}if(t.pos>i){let a=t.peekBytes(2);if(69===a[0]&&73===a[1])break}}let r=t.pos-i;return -1===a?(f("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),t.skip(-r),this.findDefaultInlineStreamEnd(t)):(this.inlineStreamSkipEI(t),r)}findASCIIHexDecodeInlineStreamEnd(t){let a,i=t.pos;for(;-1!==(a=t.getByte())&&62!==a;);let r=t.pos-i;return -1===a?(f("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),t.skip(-r),this.findDefaultInlineStreamEnd(t)):(this.inlineStreamSkipEI(t),r)}inlineStreamSkipEI(t){let a,i=0;for(;-1!==(a=t.getByte());)if(0===i)i=+(69===a);else if(1===i)i=2*(73===a);else if(2===i)break}makeInlineImage(t){let a,i,r,s,n=this.lexer,l=n.stream,o=Object.create(null);for(;!ee(this.buf1,"ID")&&this.buf1!==$;){if(!(this.buf1 instanceof W))throw new A("Dictionary key must be a name object");let a=this.buf1.name;if(this.shift(),this.buf1===$)break;o[a]=this.getObj(t)}-1!==n.beginInlineImagePos&&(a=l.pos-n.beginInlineImagePos);let c=this.xref.fetchIfRef(o.F||o.Filter);if(c instanceof W)i=c.name;else if(Array.isArray(c)){let t=this.xref.fetchIfRef(c[0]);t instanceof W&&(i=t.name)}let h=l.pos;switch(i){case"DCT":case"DCTDecode":r=this.findDCTDecodeInlineStreamEnd(l);break;case"A85":case"ASCII85Decode":r=this.findASCII85DecodeInlineStreamEnd(l);break;case"AHx":case"ASCIIHexDecode":r=this.findASCIIHexDecodeInlineStreamEnd(l);break;default:r=this.findDefaultInlineStreamEnd(l)}if(r<1e3&&a>0){let t=l.pos;l.pos=n.beginInlineImagePos,s=function(t){let a=[],i=t.length,r=0;for(;r<i-1;)a.push(t[r++]<<8|t[r++]);return r<i&&a.push(t[r]),i+"_"+String.fromCharCode.apply(null,a)}(l.getBytes(a+r)),l.pos=t;let i=this.imageCache[s];if(void 0!==i)return this.buf2=V.get("EI"),this.shift(),i.reset(),i}let u=new K(this.xref);for(let t in o)u.set(t,o[t]);let d=l.makeSubStream(h,r,u);return t&&(d=t.createStream(d,r)),(d=this.filter(d,u,r)).dict=u,void 0!==s&&(d.cacheKey="inline_img_"+ ++this._imageId,this.imageCache[s]=d),this.buf2=V.get("EI"),this.shift(),d}#H(t){let{stream:a}=this.lexer;a.pos=t;let i=new Uint8Array([101,110,100]),r=i.length,s=[new Uint8Array([115,116,114,101,97,109]),new Uint8Array([115,116,101,97,109]),new Uint8Array([115,116,114,101,97])],n=9-r;for(;a.pos<a.end;){let l=a.peekBytes(2048),o=l.length-9;if(o<=0)break;let c=0;for(;c<o;){let o=0;for(;o<r&&l[c+o]===i[o];)o++;if(o>=r){let r=!1;for(let t of s){let a=t.length,s=0;for(;s<a&&l[c+o+s]===t[s];)s++;if(s>=n){r=!0;break}if(s>=a){eA(l[c+o+s])&&(d(`Found "${S([...i,...t])}" when searching for endstream command.`),r=!0);break}}if(r)return a.pos+=c,a.pos-t}c++}a.pos+=o}return -1}makeStream(t,a){let i=this.lexer,r=i.stream;i.skipToNextLine();let s=r.pos-1,n=t.get("Length");if(Number.isInteger(n)||(d(`Bad length "${n&&n.toString()}" in stream.`),n=0),r.pos=s+n,i.nextChar(),this.tryShift()&&ee(this.buf2,"endstream"))this.shift();else{if((n=this.#H(s))<0)throw new A("Missing endstream command.");i.nextChar(),this.shift(),this.shift()}return this.shift(),r=r.makeSubStream(s,n,t),a&&(r=a.createStream(r,n)),(r=this.filter(r,t,n)).dict=t,r}filter(t,a,i){let r=a.get("F","Filter"),s=a.get("DP","DecodeParms");if(r instanceof W)return Array.isArray(s)&&f("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(t,r.name,i,s);let n=i;if(Array.isArray(r)){let a=r,i=s;for(let l=0,o=a.length;l<o;++l){if(!((r=this.xref.fetchIfRef(a[l]))instanceof W))throw new A(`Bad filter name "${r}"`);s=null,Array.isArray(i)&&l in i&&(s=this.xref.fetchIfRef(i[l])),t=this.makeFilter(t,r.name,n,s),n=null}}return t}makeFilter(t,a,i,r){if(0===i)return f(`Empty "${a}" stream.`),new tn;try{switch(a){case"Fl":case"FlateDecode":return r?new aA(new t9(t,i),i,r):new t9(t,i);case"LZW":case"LZWDecode":let s=1;if(r)return r.has("EarlyChange")&&(s=r.get("EarlyChange")),new aA(new av(t,i,s),i,r);return new av(t,i,s);case"DCT":case"DCTDecode":return new tB(t,i,r);case"JPX":case"JPXDecode":return new ak(t,i,r);case"A85":case"ASCII85Decode":return new t$(t,i);case"AHx":case"ASCIIHexDecode":return new tH(t,i);case"CCF":case"CCITTFaxDecode":return new tJ(t,i,r);case"RL":case"RunLengthDecode":return new aC(t,i);case"JBIG2Decode":return new ax(t,i,r)}return f(`Filter "${a}" is not supported.`),t}catch(t){if(t instanceof eh)throw t;return f(`Invalid stream: "${t}"`),new tn}}}let aI=[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 aB(t){return t>=48&&t<=57?15&t:t>=65&&t<=70||t>=97&&t<=102?9+(15&t):-1}class aF{constructor(t,a=null){this.stream=t,this.nextChar(),this.strBuf=[],this.knownCommands=a,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let t=this.currentChar,a=!1,i=0,r=1;if(45===t?(r=-1,45===(t=this.nextChar())&&(t=this.nextChar())):43===t&&(t=this.nextChar()),10===t||13===t)do t=this.nextChar();while(10===t||13===t);if(46===t&&(i=10,t=this.nextChar()),t<48||t>57){let a=`Invalid number: ${String.fromCharCode(t)} (charCode ${t})`;if(eA(t)||40===t||60===t||-1===t)return d(`Lexer.getNumber - "${a}".`),0;throw new A(a)}let s=t-48,n=0,l=1;for(;(t=this.nextChar())>=0;)if(t>=48&&t<=57){let r=t-48;a?n=10*n+r:(0!==i&&(i*=10),s=10*s+r)}else if(46===t){if(0!==i)break;i=1}else if(45===t)f("Badly formatted number: minus sign in the middle");else{if(69!==t&&101!==t)break;if(43===(t=this.peekChar())||45===t)l=45===t?-1:1,this.nextChar();else if(t<48||t>57)break;a=!0}return 0!==i&&(s/=i),a&&(s*=10**(l*n)),r*s}getString(){let t=1,a=!1,i=this.strBuf;i.length=0;let r=this.nextChar();for(;;){let s=!1;switch(0|r){case -1:f("Unterminated string"),a=!0;break;case 40:++t,i.push("(");break;case 41:0==--t?(this.nextChar(),a=!0):i.push(")");break;case 92:switch(r=this.nextChar()){case -1:f("Unterminated string"),a=!0;break;case 110:i.push("\n");break;case 114:i.push("\r");break;case 116:i.push(" ");break;case 98:i.push("\b");break;case 102:i.push("\f");break;case 92:case 40:case 41:default:i.push(String.fromCharCode(r));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let n=15&r;r=this.nextChar(),s=!0,r>=48&&r<=55&&(n=(n<<3)+(15&r),(r=this.nextChar())>=48&&r<=55&&(s=!1,n=(n<<3)+(15&r))),i.push(String.fromCharCode(n));break;case 13:10===this.peekChar()&&this.nextChar();case 10:}break;default:i.push(String.fromCharCode(r))}if(a)break;s||(r=this.nextChar())}return i.join("")}getName(){let t,a,i=this.strBuf;for(i.length=0;(t=this.nextChar())>=0&&!aI[t];)if(35===t){if(aI[t=this.nextChar()]){f("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),i.push("#");break}let r=aB(t);if(-1!==r){a=t;let s=aB(t=this.nextChar());if(-1===s){if(f(`Lexer_getName: Illegal digit (${String.fromCharCode(t)}) in hexadecimal number.`),i.push("#",String.fromCharCode(a)),aI[t])break;i.push(String.fromCharCode(t));continue}i.push(String.fromCharCode(r<<4|s))}else i.push("#",String.fromCharCode(t))}else i.push(String.fromCharCode(t));return i.length>127&&f(`Name token is longer than allowed by the spec: ${i.length}`),W.get(i.join(""))}_hexStringWarn(t){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||f(`getHexString - ignoring invalid character: ${t}`):f("getHexString - ignoring additional invalid characters.")}getHexString(){let t=this.strBuf;t.length=0;let a=this.currentChar,i=-1,r=-1;for(this._hexStringNumWarn=0;;){if(a<0){f("Unterminated hex string");break}if(62===a){this.nextChar();break}1!==aI[a]&&(-1===(r=aB(a))?this._hexStringWarn(a):-1===i?i=r:(t.push(String.fromCharCode(i<<4|r)),i=-1)),a=this.nextChar()}return -1!==i&&t.push(String.fromCharCode(i<<4)),t.join("")}getObj(){let t=!1,a=this.currentChar;for(;;){if(a<0)return $;if(t)10!==a&&13!==a||(t=!1);else if(37===a)t=!0;else if(1!==aI[a])break;a=this.nextChar()}switch(0|a){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(),V.get("[");case 93:return this.nextChar(),V.get("]");case 60:if(60===(a=this.nextChar()))return this.nextChar(),V.get("<<");return this.getHexString();case 62:if(62===(a=this.nextChar()))return this.nextChar(),V.get(">>");return V.get(">");case 123:return this.nextChar(),V.get("{");case 125:return this.nextChar(),V.get("}");case 41:throw this.nextChar(),new A(`Illegal character: ${a}`)}let i=String.fromCharCode(a);if(a<32||a>127){let t=this.peekChar();if(t>=32&&t<=127)return this.nextChar(),V.get(i)}let r=this.knownCommands,s=void 0!==r?.[i];for(;(a=this.nextChar())>=0&&!aI[a];){let t=i+String.fromCharCode(a);if(s&&void 0===r[t])break;if(128===i.length)throw new A(`Command token too long: ${i.length}`);i=t,s=void 0!==r?.[i]}return"true"===i||"false"!==i&&("null"===i?null:("BI"===i&&(this.beginInlineImagePos=this.stream.pos),V.get(i)))}skipToNextLine(){let t=this.currentChar;for(;t>=0;){if(13===t){10===(t=this.nextChar())&&this.nextChar();break}if(10===t){this.nextChar();break}t=this.nextChar()}}}class aM{static create(t){let a,i;function r(t,a,i=!1){let s=t.get(a);if(Number.isInteger(s)&&(i?s>=0:s>0))return s;throw Error(`The "${a}" parameter in the linearization dictionary is invalid.`)}let s=new aS({lexer:new aF(t),xref:null}),n=s.getObj(),l=s.getObj(),o=s.getObj(),c=s.getObj();if(!(Number.isInteger(n)&&Number.isInteger(l)&&ee(o,"obj")&&c instanceof K&&"number"==typeof(a=c.get("Linearized"))&&a>0))return null;if((i=r(c,"L"))!==t.length)throw Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:i,hints:function(t){let a,i=t.get("H");if(Array.isArray(i)&&(2===(a=i.length)||4===a)){for(let t=0;t<a;t++){let a=i[t];if(!(Number.isInteger(a)&&a>0))throw Error(`Hint (${t}) in the linearization dictionary is invalid.`)}return i}throw Error("Hint array in the linearization dictionary is invalid.")}(c),objectNumberFirst:r(c,"O"),endFirst:r(c,"E"),numPages:r(c,"N"),mainXRefEntriesOffset:r(c,"T"),pageFirst:c.has("P")?r(c,"P",!0):0}}}let aT=["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"],aR=0x1000000-1;class aN{constructor(t=!1){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=t}addCodespaceRange(t,a,i){this.codespaceRanges[t-1].push(a,i),this.numCodespaceRanges++}mapCidRange(t,a,i){if(a-t>aR)throw Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;t<=a;)this._map[t++]=i++}mapBfRange(t,a,i){if(a-t>aR)throw Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");let r=i.length-1;for(;t<=a;){this._map[t++]=i;let a=i.charCodeAt(r)+1;i=a>255?i.substring(0,r-1)+String.fromCharCode(i.charCodeAt(r-1)+1)+"\0":i.substring(0,r)+String.fromCharCode(a)}}mapBfRangeToArray(t,a,i){if(a-t>aR)throw Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");let r=i.length,s=0;for(;t<=a&&s<r;)this._map[t]=i[s++],++t}mapOne(t,a){this._map[t]=a}lookup(t){return this._map[t]}contains(t){return void 0!==this._map[t]}forEach(t){let a=this._map,i=a.length;if(i<=65536)for(let r=0;r<i;r++)void 0!==a[r]&&t(r,a[r]);else for(let i in a)t(i,a[i])}charCodeOf(t){let a=this._map;if(a.length<=65536)return a.indexOf(t);for(let i in a)if(a[i]===t)return 0|i;return -1}getMap(){return this._map}readCharCode(t,a,i){let r=0,s=this.codespaceRanges;for(let n=0,l=s.length;n<l;n++){r=(r<<8|t.charCodeAt(a+n))>>>0;let l=s[n];for(let t=0,a=l.length;t<a;){let a=l[t++],s=l[t++];if(r>=a&&r<=s){i.charcode=r,i.length=n+1;return}}}i.charcode=0,i.length=1}getCharCodeLength(t){let a=this.codespaceRanges;for(let i=0,r=a.length;i<r;i++){let r=a[i];for(let a=0,s=r.length;a<s;){let s=r[a++],n=r[a++];if(t>=s&&t<=n)return i+1}}return 1}get length(){return this._map.length}get isIdentityCMap(){if("Identity-H"!==this.name&&"Identity-V"!==this.name||65536!==this._map.length)return!1;for(let t=0;t<65536;t++)if(this._map[t]!==t)return!1;return!0}}class aD extends aN{constructor(t,a){super(),this.vertical=t,this.addCodespaceRange(a,0,65535)}mapCidRange(t,a,i){g("should not call mapCidRange")}mapBfRange(t,a,i){g("should not call mapBfRange")}mapBfRangeToArray(t,a,i){g("should not call mapBfRangeToArray")}mapOne(t,a){g("should not call mapCidOne")}lookup(t){return Number.isInteger(t)&&t<=65535?t:void 0}contains(t){return Number.isInteger(t)&&t<=65535}forEach(t){for(let a=0;a<=65535;a++)t(a,a)}charCodeOf(t){return Number.isInteger(t)&&t<=65535?t:-1}getMap(){let t=Array(65536);for(let a=0;a<=65535;a++)t[a]=a;return t}get length(){return 65536}get isIdentityCMap(){g("should not access .isIdentityCMap")}}function aO(t){let a=0;for(let i=0;i<t.length;i++)a=a<<8|t.charCodeAt(i);return a>>>0}function aP(t){if("string"!=typeof t)throw new A("Malformed CMap: expected string.")}function aE(t){if(!Number.isInteger(t))throw new A("Malformed CMap: expected int.")}async function a_(t,a,i,r){let s,n;e:for(;;)try{let i=a.getObj();if(i===$)break;if(i instanceof W)"WMode"===i.name?function(t,a){let i=a.getObj();Number.isInteger(i)&&(t.vertical=!!i)}(t,a):"CMapName"===i.name&&function(t,a){let i=a.getObj();i instanceof W&&(t.name=i.name)}(t,a),s=i;else if(i instanceof V)switch(i.cmd){case"endcmap":break e;case"usecmap":s instanceof W&&(n=s.name);break;case"begincodespacerange":!function(t,a){for(;;){let i=a.getObj();if(i===$)break;if(ee(i,"endcodespacerange"))return;if("string"!=typeof i)break;let r=aO(i);if("string"!=typeof(i=a.getObj()))break;let s=aO(i);t.addCodespaceRange(i.length,r,s)}throw new A("Invalid codespace range.")}(t,a);break;case"beginbfchar":!function(t,a){for(;;){let i=a.getObj();if(i===$)break;if(ee(i,"endbfchar"))return;aP(i);let r=aO(i);aP(i=a.getObj());let s=i;t.mapOne(r,s)}}(t,a);break;case"begincidchar":!function(t,a){for(;;){let i=a.getObj();if(i===$)break;if(ee(i,"endcidchar"))return;aP(i);let r=aO(i);aE(i=a.getObj());let s=i;t.mapOne(r,s)}}(t,a);break;case"beginbfrange":!function(t,a){for(;;){let i=a.getObj();if(i===$)break;if(ee(i,"endbfrange"))return;aP(i);let r=aO(i);aP(i=a.getObj());let s=aO(i);if(Number.isInteger(i=a.getObj())||"string"==typeof i){let a=Number.isInteger(i)?String.fromCharCode(i):i;t.mapBfRange(r,s,a)}else{if(!ee(i,"["))break;{i=a.getObj();let n=[];for(;!ee(i,"]")&&i!==$;)n.push(i),i=a.getObj();t.mapBfRangeToArray(r,s,n)}}}throw new A("Invalid bf range.")}(t,a);break;case"begincidrange":!function(t,a){for(;;){let i=a.getObj();if(i===$)break;if(ee(i,"endcidrange"))return;aP(i);let r=aO(i);aP(i=a.getObj());let s=aO(i);aE(i=a.getObj());let n=i;t.mapCidRange(r,s,n)}}(t,a)}}catch(t){if(t instanceof eh)throw t;f("Invalid cMap data: "+t);continue}return!r&&n&&(r=n),r?aL(t,i,r):t}async function aL(t,a,i){if(t.useCMap=await aU(i,a),0===t.numCodespaceRanges){let a=t.useCMap.codespaceRanges;for(let i=0;i<a.length;i++)t.codespaceRanges[i]=a[i].slice();t.numCodespaceRanges=t.useCMap.numCodespaceRanges}return t.useCMap.forEach(function(a,i){t.contains(a)||t.mapOne(a,i)}),t}async function aU(t,a){if("Identity-H"===t)return new aD(!1,2);if("Identity-V"===t)return new aD(!0,2);if(!aT.includes(t))throw Error("Unknown CMap name: "+t);if(!a)throw Error("Built-in CMap parameters are not provided.");let{cMapData:i,isCompressed:r}=await a(t),s=new aN(!0);return r?(new tj).process(i,s,t=>aL(s,a,t)):a_(s,new aF(new tr(i)),a,null)}class aq{static async create({encoding:t,fetchBuiltInCMap:a,useCMap:i}){if(t instanceof W)return aU(t.name,a);if(t instanceof ei){if(t.isAsync){let a=await t.asyncGetBytes();a&&(t=new tr(a,0,a.length,t.dict))}let r=await a_(new aN,new aF(t),a,i);return r.isIdentityCMap?aU(r.name,a):r}throw Error("Encoding required.")}}let aj=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],a$=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],aH=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],az=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""],aG=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],aW=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""],aV=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];function aX(t){switch(t){case"WinAnsiEncoding":return aG;case"StandardEncoding":return az;case"MacRomanEncoding":return aH;case"SymbolSetEncoding":return aW;case"ZapfDingbatsEncoding":return aV;case"ExpertEncoding":return aj;case"MacExpertEncoding":return a$;default:return null}}let aK=ec(function(t){t.A=65,t.AE=198,t.AEacute=508,t.AEmacron=482,t.AEsmall=63462,t.Aacute=193,t.Aacutesmall=63457,t.Abreve=258,t.Abreveacute=7854,t.Abrevecyrillic=1232,t.Abrevedotbelow=7862,t.Abrevegrave=7856,t.Abrevehookabove=7858,t.Abrevetilde=7860,t.Acaron=461,t.Acircle=9398,t.Acircumflex=194,t.Acircumflexacute=7844,t.Acircumflexdotbelow=7852,t.Acircumflexgrave=7846,t.Acircumflexhookabove=7848,t.Acircumflexsmall=63458,t.Acircumflextilde=7850,t.Acute=63177,t.Acutesmall=63412,t.Acyrillic=1040,t.Adblgrave=512,t.Adieresis=196,t.Adieresiscyrillic=1234,t.Adieresismacron=478,t.Adieresissmall=63460,t.Adotbelow=7840,t.Adotmacron=480,t.Agrave=192,t.Agravesmall=63456,t.Ahookabove=7842,t.Aiecyrillic=1236,t.Ainvertedbreve=514,t.Alpha=913,t.Alphatonos=902,t.Amacron=256,t.Amonospace=65313,t.Aogonek=260,t.Aring=197,t.Aringacute=506,t.Aringbelow=7680,t.Aringsmall=63461,t.Asmall=63329,t.Atilde=195,t.Atildesmall=63459,t.Aybarmenian=1329,t.B=66,t.Bcircle=9399,t.Bdotaccent=7682,t.Bdotbelow=7684,t.Becyrillic=1041,t.Benarmenian=1330,t.Beta=914,t.Bhook=385,t.Blinebelow=7686,t.Bmonospace=65314,t.Brevesmall=63220,t.Bsmall=63330,t.Btopbar=386,t.C=67,t.Caarmenian=1342,t.Cacute=262,t.Caron=63178,t.Caronsmall=63221,t.Ccaron=268,t.Ccedilla=199,t.Ccedillaacute=7688,t.Ccedillasmall=63463,t.Ccircle=9400,t.Ccircumflex=264,t.Cdot=266,t.Cdotaccent=266,t.Cedillasmall=63416,t.Chaarmenian=1353,t.Cheabkhasiancyrillic=1212,t.Checyrillic=1063,t.Chedescenderabkhasiancyrillic=1214,t.Chedescendercyrillic=1206,t.Chedieresiscyrillic=1268,t.Cheharmenian=1347,t.Chekhakassiancyrillic=1227,t.Cheverticalstrokecyrillic=1208,t.Chi=935,t.Chook=391,t.Circumflexsmall=63222,t.Cmonospace=65315,t.Coarmenian=1361,t.Csmall=63331,t.D=68,t.DZ=497,t.DZcaron=452,t.Daarmenian=1332,t.Dafrican=393,t.Dcaron=270,t.Dcedilla=7696,t.Dcircle=9401,t.Dcircumflexbelow=7698,t.Dcroat=272,t.Ddotaccent=7690,t.Ddotbelow=7692,t.Decyrillic=1044,t.Deicoptic=1006,t.Delta=8710,t.Deltagreek=916,t.Dhook=394,t.Dieresis=63179,t.DieresisAcute=63180,t.DieresisGrave=63181,t.Dieresissmall=63400,t.Digammagreek=988,t.Djecyrillic=1026,t.Dlinebelow=7694,t.Dmonospace=65316,t.Dotaccentsmall=63223,t.Dslash=272,t.Dsmall=63332,t.Dtopbar=395,t.Dz=498,t.Dzcaron=453,t.Dzeabkhasiancyrillic=1248,t.Dzecyrillic=1029,t.Dzhecyrillic=1039,t.E=69,t.Eacute=201,t.Eacutesmall=63465,t.Ebreve=276,t.Ecaron=282,t.Ecedillabreve=7708,t.Echarmenian=1333,t.Ecircle=9402,t.Ecircumflex=202,t.Ecircumflexacute=7870,t.Ecircumflexbelow=7704,t.Ecircumflexdotbelow=7878,t.Ecircumflexgrave=7872,t.Ecircumflexhookabove=7874,t.Ecircumflexsmall=63466,t.Ecircumflextilde=7876,t.Ecyrillic=1028,t.Edblgrave=516,t.Edieresis=203,t.Edieresissmall=63467,t.Edot=278,t.Edotaccent=278,t.Edotbelow=7864,t.Efcyrillic=1060,t.Egrave=200,t.Egravesmall=63464,t.Eharmenian=1335,t.Ehookabove=7866,t.Eightroman=8551,t.Einvertedbreve=518,t.Eiotifiedcyrillic=1124,t.Elcyrillic=1051,t.Elevenroman=8554,t.Emacron=274,t.Emacronacute=7702,t.Emacrongrave=7700,t.Emcyrillic=1052,t.Emonospace=65317,t.Encyrillic=1053,t.Endescendercyrillic=1186,t.Eng=330,t.Enghecyrillic=1188,t.Enhookcyrillic=1223,t.Eogonek=280,t.Eopen=400,t.Epsilon=917,t.Epsilontonos=904,t.Ercyrillic=1056,t.Ereversed=398,t.Ereversedcyrillic=1069,t.Escyrillic=1057,t.Esdescendercyrillic=1194,t.Esh=425,t.Esmall=63333,t.Eta=919,t.Etarmenian=1336,t.Etatonos=905,t.Eth=208,t.Ethsmall=63472,t.Etilde=7868,t.Etildebelow=7706,t.Euro=8364,t.Ezh=439,t.Ezhcaron=494,t.Ezhreversed=440,t.F=70,t.Fcircle=9403,t.Fdotaccent=7710,t.Feharmenian=1366,t.Feicoptic=996,t.Fhook=401,t.Fitacyrillic=1138,t.Fiveroman=8548,t.Fmonospace=65318,t.Fourroman=8547,t.Fsmall=63334,t.G=71,t.GBsquare=13191,t.Gacute=500,t.Gamma=915,t.Gammaafrican=404,t.Gangiacoptic=1002,t.Gbreve=286,t.Gcaron=486,t.Gcedilla=290,t.Gcircle=9404,t.Gcircumflex=284,t.Gcommaaccent=290,t.Gdot=288,t.Gdotaccent=288,t.Gecyrillic=1043,t.Ghadarmenian=1346,t.Ghemiddlehookcyrillic=1172,t.Ghestrokecyrillic=1170,t.Gheupturncyrillic=1168,t.Ghook=403,t.Gimarmenian=1331,t.Gjecyrillic=1027,t.Gmacron=7712,t.Gmonospace=65319,t.Grave=63182,t.Gravesmall=63328,t.Gsmall=63335,t.Gsmallhook=667,t.Gstroke=484,t.H=72,t.H18533=9679,t.H18543=9642,t.H18551=9643,t.H22073=9633,t.HPsquare=13259,t.Haabkhasiancyrillic=1192,t.Hadescendercyrillic=1202,t.Hardsigncyrillic=1066,t.Hbar=294,t.Hbrevebelow=7722,t.Hcedilla=7720,t.Hcircle=9405,t.Hcircumflex=292,t.Hdieresis=7718,t.Hdotaccent=7714,t.Hdotbelow=7716,t.Hmonospace=65320,t.Hoarmenian=1344,t.Horicoptic=1e3,t.Hsmall=63336,t.Hungarumlaut=63183,t.Hungarumlautsmall=63224,t.Hzsquare=13200,t.I=73,t.IAcyrillic=1071,t.IJ=306,t.IUcyrillic=1070,t.Iacute=205,t.Iacutesmall=63469,t.Ibreve=300,t.Icaron=463,t.Icircle=9406,t.Icircumflex=206,t.Icircumflexsmall=63470,t.Icyrillic=1030,t.Idblgrave=520,t.Idieresis=207,t.Idieresisacute=7726,t.Idieresiscyrillic=1252,t.Idieresissmall=63471,t.Idot=304,t.Idotaccent=304,t.Idotbelow=7882,t.Iebrevecyrillic=1238,t.Iecyrillic=1045,t.Ifraktur=8465,t.Igrave=204,t.Igravesmall=63468,t.Ihookabove=7880,t.Iicyrillic=1048,t.Iinvertedbreve=522,t.Iishortcyrillic=1049,t.Imacron=298,t.Imacroncyrillic=1250,t.Imonospace=65321,t.Iniarmenian=1339,t.Iocyrillic=1025,t.Iogonek=302,t.Iota=921,t.Iotaafrican=406,t.Iotadieresis=938,t.Iotatonos=906,t.Ismall=63337,t.Istroke=407,t.Itilde=296,t.Itildebelow=7724,t.Izhitsacyrillic=1140,t.Izhitsadblgravecyrillic=1142,t.J=74,t.Jaarmenian=1345,t.Jcircle=9407,t.Jcircumflex=308,t.Jecyrillic=1032,t.Jheharmenian=1355,t.Jmonospace=65322,t.Jsmall=63338,t.K=75,t.KBsquare=13189,t.KKsquare=13261,t.Kabashkircyrillic=1184,t.Kacute=7728,t.Kacyrillic=1050,t.Kadescendercyrillic=1178,t.Kahookcyrillic=1219,t.Kappa=922,t.Kastrokecyrillic=1182,t.Kaverticalstrokecyrillic=1180,t.Kcaron=488,t.Kcedilla=310,t.Kcircle=9408,t.Kcommaaccent=310,t.Kdotbelow=7730,t.Keharmenian=1364,t.Kenarmenian=1343,t.Khacyrillic=1061,t.Kheicoptic=998,t.Khook=408,t.Kjecyrillic=1036,t.Klinebelow=7732,t.Kmonospace=65323,t.Koppacyrillic=1152,t.Koppagreek=990,t.Ksicyrillic=1134,t.Ksmall=63339,t.L=76,t.LJ=455,t.LL=63167,t.Lacute=313,t.Lambda=923,t.Lcaron=317,t.Lcedilla=315,t.Lcircle=9409,t.Lcircumflexbelow=7740,t.Lcommaaccent=315,t.Ldot=319,t.Ldotaccent=319,t.Ldotbelow=7734,t.Ldotbelowmacron=7736,t.Liwnarmenian=1340,t.Lj=456,t.Ljecyrillic=1033,t.Llinebelow=7738,t.Lmonospace=65324,t.Lslash=321,t.Lslashsmall=63225,t.Lsmall=63340,t.M=77,t.MBsquare=13190,t.Macron=63184,t.Macronsmall=63407,t.Macute=7742,t.Mcircle=9410,t.Mdotaccent=7744,t.Mdotbelow=7746,t.Menarmenian=1348,t.Mmonospace=65325,t.Msmall=63341,t.Mturned=412,t.Mu=924,t.N=78,t.NJ=458,t.Nacute=323,t.Ncaron=327,t.Ncedilla=325,t.Ncircle=9411,t.Ncircumflexbelow=7754,t.Ncommaaccent=325,t.Ndotaccent=7748,t.Ndotbelow=7750,t.Nhookleft=413,t.Nineroman=8552,t.Nj=459,t.Njecyrillic=1034,t.Nlinebelow=7752,t.Nmonospace=65326,t.Nowarmenian=1350,t.Nsmall=63342,t.Ntilde=209,t.Ntildesmall=63473,t.Nu=925,t.O=79,t.OE=338,t.OEsmall=63226,t.Oacute=211,t.Oacutesmall=63475,t.Obarredcyrillic=1256,t.Obarreddieresiscyrillic=1258,t.Obreve=334,t.Ocaron=465,t.Ocenteredtilde=415,t.Ocircle=9412,t.Ocircumflex=212,t.Ocircumflexacute=7888,t.Ocircumflexdotbelow=7896,t.Ocircumflexgrave=7890,t.Ocircumflexhookabove=7892,t.Ocircumflexsmall=63476,t.Ocircumflextilde=7894,t.Ocyrillic=1054,t.Odblacute=336,t.Odblgrave=524,t.Odieresis=214,t.Odieresiscyrillic=1254,t.Odieresissmall=63478,t.Odotbelow=7884,t.Ogoneksmall=63227,t.Ograve=210,t.Ogravesmall=63474,t.Oharmenian=1365,t.Ohm=8486,t.Ohookabove=7886,t.Ohorn=416,t.Ohornacute=7898,t.Ohorndotbelow=7906,t.Ohorngrave=7900,t.Ohornhookabove=7902,t.Ohorntilde=7904,t.Ohungarumlaut=336,t.Oi=418,t.Oinvertedbreve=526,t.Omacron=332,t.Omacronacute=7762,t.Omacrongrave=7760,t.Omega=8486,t.Omegacyrillic=1120,t.Omegagreek=937,t.Omegaroundcyrillic=1146,t.Omegatitlocyrillic=1148,t.Omegatonos=911,t.Omicron=927,t.Omicrontonos=908,t.Omonospace=65327,t.Oneroman=8544,t.Oogonek=490,t.Oogonekmacron=492,t.Oopen=390,t.Oslash=216,t.Oslashacute=510,t.Oslashsmall=63480,t.Osmall=63343,t.Ostrokeacute=510,t.Otcyrillic=1150,t.Otilde=213,t.Otildeacute=7756,t.Otildedieresis=7758,t.Otildesmall=63477,t.P=80,t.Pacute=7764,t.Pcircle=9413,t.Pdotaccent=7766,t.Pecyrillic=1055,t.Peharmenian=1354,t.Pemiddlehookcyrillic=1190,t.Phi=934,t.Phook=420,t.Pi=928,t.Piwrarmenian=1363,t.Pmonospace=65328,t.Psi=936,t.Psicyrillic=1136,t.Psmall=63344,t.Q=81,t.Qcircle=9414,t.Qmonospace=65329,t.Qsmall=63345,t.R=82,t.Raarmenian=1356,t.Racute=340,t.Rcaron=344,t.Rcedilla=342,t.Rcircle=9415,t.Rcommaaccent=342,t.Rdblgrave=528,t.Rdotaccent=7768,t.Rdotbelow=7770,t.Rdotbelowmacron=7772,t.Reharmenian=1360,t.Rfraktur=8476,t.Rho=929,t.Ringsmall=63228,t.Rinvertedbreve=530,t.Rlinebelow=7774,t.Rmonospace=65330,t.Rsmall=63346,t.Rsmallinverted=641,t.Rsmallinvertedsuperior=694,t.S=83,t.SF010000=9484,t.SF020000=9492,t.SF030000=9488,t.SF040000=9496,t.SF050000=9532,t.SF060000=9516,t.SF070000=9524,t.SF080000=9500,t.SF090000=9508,t.SF100000=9472,t.SF110000=9474,t.SF190000=9569,t.SF200000=9570,t.SF210000=9558,t.SF220000=9557,t.SF230000=9571,t.SF240000=9553,t.SF250000=9559,t.SF260000=9565,t.SF270000=9564,t.SF280000=9563,t.SF360000=9566,t.SF370000=9567,t.SF380000=9562,t.SF390000=9556,t.SF400000=9577,t.SF410000=9574,t.SF420000=9568,t.SF430000=9552,t.SF440000=9580,t.SF450000=9575,t.SF460000=9576,t.SF470000=9572,t.SF480000=9573,t.SF490000=9561,t.SF500000=9560,t.SF510000=9554,t.SF520000=9555,t.SF530000=9579,t.SF540000=9578,t.Sacute=346,t.Sacutedotaccent=7780,t.Sampigreek=992,t.Scaron=352,t.Scarondotaccent=7782,t.Scaronsmall=63229,t.Scedilla=350,t.Schwa=399,t.Schwacyrillic=1240,t.Schwadieresiscyrillic=1242,t.Scircle=9416,t.Scircumflex=348,t.Scommaaccent=536,t.Sdotaccent=7776,t.Sdotbelow=7778,t.Sdotbelowdotaccent=7784,t.Seharmenian=1357,t.Sevenroman=8550,t.Shaarmenian=1351,t.Shacyrillic=1064,t.Shchacyrillic=1065,t.Sheicoptic=994,t.Shhacyrillic=1210,t.Shimacoptic=1004,t.Sigma=931,t.Sixroman=8549,t.Smonospace=65331,t.Softsigncyrillic=1068,t.Ssmall=63347,t.Stigmagreek=986,t.T=84,t.Tau=932,t.Tbar=358,t.Tcaron=356,t.Tcedilla=354,t.Tcircle=9417,t.Tcircumflexbelow=7792,t.Tcommaaccent=354,t.Tdotaccent=7786,t.Tdotbelow=7788,t.Tecyrillic=1058,t.Tedescendercyrillic=1196,t.Tenroman=8553,t.Tetsecyrillic=1204,t.Theta=920,t.Thook=428,t.Thorn=222,t.Thornsmall=63486,t.Threeroman=8546,t.Tildesmall=63230,t.Tiwnarmenian=1359,t.Tlinebelow=7790,t.Tmonospace=65332,t.Toarmenian=1337,t.Tonefive=444,t.Tonesix=388,t.Tonetwo=423,t.Tretroflexhook=430,t.Tsecyrillic=1062,t.Tshecyrillic=1035,t.Tsmall=63348,t.Twelveroman=8555,t.Tworoman=8545,t.U=85,t.Uacute=218,t.Uacutesmall=63482,t.Ubreve=364,t.Ucaron=467,t.Ucircle=9418,t.Ucircumflex=219,t.Ucircumflexbelow=7798,t.Ucircumflexsmall=63483,t.Ucyrillic=1059,t.Udblacute=368,t.Udblgrave=532,t.Udieresis=220,t.Udieresisacute=471,t.Udieresisbelow=7794,t.Udieresiscaron=473,t.Udieresiscyrillic=1264,t.Udieresisgrave=475,t.Udieresismacron=469,t.Udieresissmall=63484,t.Udotbelow=7908,t.Ugrave=217,t.Ugravesmall=63481,t.Uhookabove=7910,t.Uhorn=431,t.Uhornacute=7912,t.Uhorndotbelow=7920,t.Uhorngrave=7914,t.Uhornhookabove=7916,t.Uhorntilde=7918,t.Uhungarumlaut=368,t.Uhungarumlautcyrillic=1266,t.Uinvertedbreve=534,t.Ukcyrillic=1144,t.Umacron=362,t.Umacroncyrillic=1262,t.Umacrondieresis=7802,t.Umonospace=65333,t.Uogonek=370,t.Upsilon=933,t.Upsilon1=978,t.Upsilonacutehooksymbolgreek=979,t.Upsilonafrican=433,t.Upsilondieresis=939,t.Upsilondieresishooksymbolgreek=980,t.Upsilonhooksymbol=978,t.Upsilontonos=910,t.Uring=366,t.Ushortcyrillic=1038,t.Usmall=63349,t.Ustraightcyrillic=1198,t.Ustraightstrokecyrillic=1200,t.Utilde=360,t.Utildeacute=7800,t.Utildebelow=7796,t.V=86,t.Vcircle=9419,t.Vdotbelow=7806,t.Vecyrillic=1042,t.Vewarmenian=1358,t.Vhook=434,t.Vmonospace=65334,t.Voarmenian=1352,t.Vsmall=63350,t.Vtilde=7804,t.W=87,t.Wacute=7810,t.Wcircle=9420,t.Wcircumflex=372,t.Wdieresis=7812,t.Wdotaccent=7814,t.Wdotbelow=7816,t.Wgrave=7808,t.Wmonospace=65335,t.Wsmall=63351,t.X=88,t.Xcircle=9421,t.Xdieresis=7820,t.Xdotaccent=7818,t.Xeharmenian=1341,t.Xi=926,t.Xmonospace=65336,t.Xsmall=63352,t.Y=89,t.Yacute=221,t.Yacutesmall=63485,t.Yatcyrillic=1122,t.Ycircle=9422,t.Ycircumflex=374,t.Ydieresis=376,t.Ydieresissmall=63487,t.Ydotaccent=7822,t.Ydotbelow=7924,t.Yericyrillic=1067,t.Yerudieresiscyrillic=1272,t.Ygrave=7922,t.Yhook=435,t.Yhookabove=7926,t.Yiarmenian=1349,t.Yicyrillic=1031,t.Yiwnarmenian=1362,t.Ymonospace=65337,t.Ysmall=63353,t.Ytilde=7928,t.Yusbigcyrillic=1130,t.Yusbigiotifiedcyrillic=1132,t.Yuslittlecyrillic=1126,t.Yuslittleiotifiedcyrillic=1128,t.Z=90,t.Zaarmenian=1334,t.Zacute=377,t.Zcaron=381,t.Zcaronsmall=63231,t.Zcircle=9423,t.Zcircumflex=7824,t.Zdot=379,t.Zdotaccent=379,t.Zdotbelow=7826,t.Zecyrillic=1047,t.Zedescendercyrillic=1176,t.Zedieresiscyrillic=1246,t.Zeta=918,t.Zhearmenian=1338,t.Zhebrevecyrillic=1217,t.Zhecyrillic=1046,t.Zhedescendercyrillic=1174,t.Zhedieresiscyrillic=1244,t.Zlinebelow=7828,t.Zmonospace=65338,t.Zsmall=63354,t.Zstroke=437,t.a=97,t.aabengali=2438,t.aacute=225,t.aadeva=2310,t.aagujarati=2694,t.aagurmukhi=2566,t.aamatragurmukhi=2622,t.aarusquare=13059,t.aavowelsignbengali=2494,t.aavowelsigndeva=2366,t.aavowelsigngujarati=2750,t.abbreviationmarkarmenian=1375,t.abbreviationsigndeva=2416,t.abengali=2437,t.abopomofo=12570,t.abreve=259,t.abreveacute=7855,t.abrevecyrillic=1233,t.abrevedotbelow=7863,t.abrevegrave=7857,t.abrevehookabove=7859,t.abrevetilde=7861,t.acaron=462,t.acircle=9424,t.acircumflex=226,t.acircumflexacute=7845,t.acircumflexdotbelow=7853,t.acircumflexgrave=7847,t.acircumflexhookabove=7849,t.acircumflextilde=7851,t.acute=180,t.acutebelowcmb=791,t.acutecmb=769,t.acutecomb=769,t.acutedeva=2388,t.acutelowmod=719,t.acutetonecmb=833,t.acyrillic=1072,t.adblgrave=513,t.addakgurmukhi=2673,t.adeva=2309,t.adieresis=228,t.adieresiscyrillic=1235,t.adieresismacron=479,t.adotbelow=7841,t.adotmacron=481,t.ae=230,t.aeacute=509,t.aekorean=12624,t.aemacron=483,t.afii00208=8213,t.afii08941=8356,t.afii10017=1040,t.afii10018=1041,t.afii10019=1042,t.afii10020=1043,t.afii10021=1044,t.afii10022=1045,t.afii10023=1025,t.afii10024=1046,t.afii10025=1047,t.afii10026=1048,t.afii10027=1049,t.afii10028=1050,t.afii10029=1051,t.afii10030=1052,t.afii10031=1053,t.afii10032=1054,t.afii10033=1055,t.afii10034=1056,t.afii10035=1057,t.afii10036=1058,t.afii10037=1059,t.afii10038=1060,t.afii10039=1061,t.afii10040=1062,t.afii10041=1063,t.afii10042=1064,t.afii10043=1065,t.afii10044=1066,t.afii10045=1067,t.afii10046=1068,t.afii10047=1069,t.afii10048=1070,t.afii10049=1071,t.afii10050=1168,t.afii10051=1026,t.afii10052=1027,t.afii10053=1028,t.afii10054=1029,t.afii10055=1030,t.afii10056=1031,t.afii10057=1032,t.afii10058=1033,t.afii10059=1034,t.afii10060=1035,t.afii10061=1036,t.afii10062=1038,t.afii10063=63172,t.afii10064=63173,t.afii10065=1072,t.afii10066=1073,t.afii10067=1074,t.afii10068=1075,t.afii10069=1076,t.afii10070=1077,t.afii10071=1105,t.afii10072=1078,t.afii10073=1079,t.afii10074=1080,t.afii10075=1081,t.afii10076=1082,t.afii10077=1083,t.afii10078=1084,t.afii10079=1085,t.afii10080=1086,t.afii10081=1087,t.afii10082=1088,t.afii10083=1089,t.afii10084=1090,t.afii10085=1091,t.afii10086=1092,t.afii10087=1093,t.afii10088=1094,t.afii10089=1095,t.afii10090=1096,t.afii10091=1097,t.afii10092=1098,t.afii10093=1099,t.afii10094=1100,t.afii10095=1101,t.afii10096=1102,t.afii10097=1103,t.afii10098=1169,t.afii10099=1106,t.afii10100=1107,t.afii10101=1108,t.afii10102=1109,t.afii10103=1110,t.afii10104=1111,t.afii10105=1112,t.afii10106=1113,t.afii10107=1114,t.afii10108=1115,t.afii10109=1116,t.afii10110=1118,t.afii10145=1039,t.afii10146=1122,t.afii10147=1138,t.afii10148=1140,t.afii10192=63174,t.afii10193=1119,t.afii10194=1123,t.afii10195=1139,t.afii10196=1141,t.afii10831=63175,t.afii10832=63176,t.afii10846=1241,t.afii299=8206,t.afii300=8207,t.afii301=8205,t.afii57381=1642,t.afii57388=1548,t.afii57392=1632,t.afii57393=1633,t.afii57394=1634,t.afii57395=1635,t.afii57396=1636,t.afii57397=1637,t.afii57398=1638,t.afii57399=1639,t.afii57400=1640,t.afii57401=1641,t.afii57403=1563,t.afii57407=1567,t.afii57409=1569,t.afii57410=1570,t.afii57411=1571,t.afii57412=1572,t.afii57413=1573,t.afii57414=1574,t.afii57415=1575,t.afii57416=1576,t.afii57417=1577,t.afii57418=1578,t.afii57419=1579,t.afii57420=1580,t.afii57421=1581,t.afii57422=1582,t.afii57423=1583,t.afii57424=1584,t.afii57425=1585,t.afii57426=1586,t.afii57427=1587,t.afii57428=1588,t.afii57429=1589,t.afii57430=1590,t.afii57431=1591,t.afii57432=1592,t.afii57433=1593,t.afii57434=1594,t.afii57440=1600,t.afii57441=1601,t.afii57442=1602,t.afii57443=1603,t.afii57444=1604,t.afii57445=1605,t.afii57446=1606,t.afii57448=1608,t.afii57449=1609,t.afii57450=1610,t.afii57451=1611,t.afii57452=1612,t.afii57453=1613,t.afii57454=1614,t.afii57455=1615,t.afii57456=1616,t.afii57457=1617,t.afii57458=1618,t.afii57470=1607,t.afii57505=1700,t.afii57506=1662,t.afii57507=1670,t.afii57508=1688,t.afii57509=1711,t.afii57511=1657,t.afii57512=1672,t.afii57513=1681,t.afii57514=1722,t.afii57519=1746,t.afii57534=1749,t.afii57636=8362,t.afii57645=1470,t.afii57658=1475,t.afii57664=1488,t.afii57665=1489,t.afii57666=1490,t.afii57667=1491,t.afii57668=1492,t.afii57669=1493,t.afii57670=1494,t.afii57671=1495,t.afii57672=1496,t.afii57673=1497,t.afii57674=1498,t.afii57675=1499,t.afii57676=1500,t.afii57677=1501,t.afii57678=1502,t.afii57679=1503,t.afii57680=1504,t.afii57681=1505,t.afii57682=1506,t.afii57683=1507,t.afii57684=1508,t.afii57685=1509,t.afii57686=1510,t.afii57687=1511,t.afii57688=1512,t.afii57689=1513,t.afii57690=1514,t.afii57694=64298,t.afii57695=64299,t.afii57700=64331,t.afii57705=64287,t.afii57716=1520,t.afii57717=1521,t.afii57718=1522,t.afii57723=64309,t.afii57793=1460,t.afii57794=1461,t.afii57795=1462,t.afii57796=1467,t.afii57797=1464,t.afii57798=1463,t.afii57799=1456,t.afii57800=1458,t.afii57801=1457,t.afii57802=1459,t.afii57803=1474,t.afii57804=1473,t.afii57806=1465,t.afii57807=1468,t.afii57839=1469,t.afii57841=1471,t.afii57842=1472,t.afii57929=700,t.afii61248=8453,t.afii61289=8467,t.afii61352=8470,t.afii61573=8236,t.afii61574=8237,t.afii61575=8238,t.afii61664=8204,t.afii63167=1645,t.afii64937=701,t.agrave=224,t.agujarati=2693,t.agurmukhi=2565,t.ahiragana=12354,t.ahookabove=7843,t.aibengali=2448,t.aibopomofo=12574,t.aideva=2320,t.aiecyrillic=1237,t.aigujarati=2704,t.aigurmukhi=2576,t.aimatragurmukhi=2632,t.ainarabic=1593,t.ainfinalarabic=65226,t.aininitialarabic=65227,t.ainmedialarabic=65228,t.ainvertedbreve=515,t.aivowelsignbengali=2504,t.aivowelsigndeva=2376,t.aivowelsigngujarati=2760,t.akatakana=12450,t.akatakanahalfwidth=65393,t.akorean=12623,t.alef=1488,t.alefarabic=1575,t.alefdageshhebrew=64304,t.aleffinalarabic=65166,t.alefhamzaabovearabic=1571,t.alefhamzaabovefinalarabic=65156,t.alefhamzabelowarabic=1573,t.alefhamzabelowfinalarabic=65160,t.alefhebrew=1488,t.aleflamedhebrew=64335,t.alefmaddaabovearabic=1570,t.alefmaddaabovefinalarabic=65154,t.alefmaksuraarabic=1609,t.alefmaksurafinalarabic=65264,t.alefmaksurainitialarabic=65267,t.alefmaksuramedialarabic=65268,t.alefpatahhebrew=64302,t.alefqamatshebrew=64303,t.aleph=8501,t.allequal=8780,t.alpha=945,t.alphatonos=940,t.amacron=257,t.amonospace=65345,t.ampersand=38,t.ampersandmonospace=65286,t.ampersandsmall=63270,t.amsquare=13250,t.anbopomofo=12578,t.angbopomofo=12580,t.angbracketleft=12296,t.angbracketright=12297,t.angkhankhuthai=3674,t.angle=8736,t.anglebracketleft=12296,t.anglebracketleftvertical=65087,t.anglebracketright=12297,t.anglebracketrightvertical=65088,t.angleleft=9001,t.angleright=9002,t.angstrom=8491,t.anoteleia=903,t.anudattadeva=2386,t.anusvarabengali=2434,t.anusvaradeva=2306,t.anusvaragujarati=2690,t.aogonek=261,t.apaatosquare=13056,t.aparen=9372,t.apostrophearmenian=1370,t.apostrophemod=700,t.apple=63743,t.approaches=8784,t.approxequal=8776,t.approxequalorimage=8786,t.approximatelyequal=8773,t.araeaekorean=12686,t.araeakorean=12685,t.arc=8978,t.arighthalfring=7834,t.aring=229,t.aringacute=507,t.aringbelow=7681,t.arrowboth=8596,t.arrowdashdown=8675,t.arrowdashleft=8672,t.arrowdashright=8674,t.arrowdashup=8673,t.arrowdblboth=8660,t.arrowdbldown=8659,t.arrowdblleft=8656,t.arrowdblright=8658,t.arrowdblup=8657,t.arrowdown=8595,t.arrowdownleft=8601,t.arrowdownright=8600,t.arrowdownwhite=8681,t.arrowheaddownmod=709,t.arrowheadleftmod=706,t.arrowheadrightmod=707,t.arrowheadupmod=708,t.arrowhorizex=63719,t.arrowleft=8592,t.arrowleftdbl=8656,t.arrowleftdblstroke=8653,t.arrowleftoverright=8646,t.arrowleftwhite=8678,t.arrowright=8594,t.arrowrightdblstroke=8655,t.arrowrightheavy=10142,t.arrowrightoverleft=8644,t.arrowrightwhite=8680,t.arrowtableft=8676,t.arrowtabright=8677,t.arrowup=8593,t.arrowupdn=8597,t.arrowupdnbse=8616,t.arrowupdownbase=8616,t.arrowupleft=8598,t.arrowupleftofdown=8645,t.arrowupright=8599,t.arrowupwhite=8679,t.arrowvertex=63718,t.asciicircum=94,t.asciicircummonospace=65342,t.asciitilde=126,t.asciitildemonospace=65374,t.ascript=593,t.ascriptturned=594,t.asmallhiragana=12353,t.asmallkatakana=12449,t.asmallkatakanahalfwidth=65383,t.asterisk=42,t.asteriskaltonearabic=1645,t.asteriskarabic=1645,t.asteriskmath=8727,t.asteriskmonospace=65290,t.asterisksmall=65121,t.asterism=8258,t.asuperior=63209,t.asymptoticallyequal=8771,t.at=64,t.atilde=227,t.atmonospace=65312,t.atsmall=65131,t.aturned=592,t.aubengali=2452,t.aubopomofo=12576,t.audeva=2324,t.augujarati=2708,t.augurmukhi=2580,t.aulengthmarkbengali=2519,t.aumatragurmukhi=2636,t.auvowelsignbengali=2508,t.auvowelsigndeva=2380,t.auvowelsigngujarati=2764,t.avagrahadeva=2365,t.aybarmenian=1377,t.ayin=1506,t.ayinaltonehebrew=64288,t.ayinhebrew=1506,t.b=98,t.babengali=2476,t.backslash=92,t.backslashmonospace=65340,t.badeva=2348,t.bagujarati=2732,t.bagurmukhi=2604,t.bahiragana=12400,t.bahtthai=3647,t.bakatakana=12496,t.bar=124,t.barmonospace=65372,t.bbopomofo=12549,t.bcircle=9425,t.bdotaccent=7683,t.bdotbelow=7685,t.beamedsixteenthnotes=9836,t.because=8757,t.becyrillic=1073,t.beharabic=1576,t.behfinalarabic=65168,t.behinitialarabic=65169,t.behiragana=12409,t.behmedialarabic=65170,t.behmeeminitialarabic=64671,t.behmeemisolatedarabic=64520,t.behnoonfinalarabic=64621,t.bekatakana=12505,t.benarmenian=1378,t.bet=1489,t.beta=946,t.betasymbolgreek=976,t.betdagesh=64305,t.betdageshhebrew=64305,t.bethebrew=1489,t.betrafehebrew=64332,t.bhabengali=2477,t.bhadeva=2349,t.bhagujarati=2733,t.bhagurmukhi=2605,t.bhook=595,t.bihiragana=12403,t.bikatakana=12499,t.bilabialclick=664,t.bindigurmukhi=2562,t.birusquare=13105,t.blackcircle=9679,t.blackdiamond=9670,t.blackdownpointingtriangle=9660,t.blackleftpointingpointer=9668,t.blackleftpointingtriangle=9664,t.blacklenticularbracketleft=12304,t.blacklenticularbracketleftvertical=65083,t.blacklenticularbracketright=12305,t.blacklenticularbracketrightvertical=65084,t.blacklowerlefttriangle=9699,t.blacklowerrighttriangle=9698,t.blackrectangle=9644,t.blackrightpointingpointer=9658,t.blackrightpointingtriangle=9654,t.blacksmallsquare=9642,t.blacksmilingface=9787,t.blacksquare=9632,t.blackstar=9733,t.blackupperlefttriangle=9700,t.blackupperrighttriangle=9701,t.blackuppointingsmalltriangle=9652,t.blackuppointingtriangle=9650,t.blank=9251,t.blinebelow=7687,t.block=9608,t.bmonospace=65346,t.bobaimaithai=3610,t.bohiragana=12412,t.bokatakana=12508,t.bparen=9373,t.bqsquare=13251,t.braceex=63732,t.braceleft=123,t.braceleftbt=63731,t.braceleftmid=63730,t.braceleftmonospace=65371,t.braceleftsmall=65115,t.bracelefttp=63729,t.braceleftvertical=65079,t.braceright=125,t.bracerightbt=63742,t.bracerightmid=63741,t.bracerightmonospace=65373,t.bracerightsmall=65116,t.bracerighttp=63740,t.bracerightvertical=65080,t.bracketleft=91,t.bracketleftbt=63728,t.bracketleftex=63727,t.bracketleftmonospace=65339,t.bracketlefttp=63726,t.bracketright=93,t.bracketrightbt=63739,t.bracketrightex=63738,t.bracketrightmonospace=65341,t.bracketrighttp=63737,t.breve=728,t.brevebelowcmb=814,t.brevecmb=774,t.breveinvertedbelowcmb=815,t.breveinvertedcmb=785,t.breveinverteddoublecmb=865,t.bridgebelowcmb=810,t.bridgeinvertedbelowcmb=826,t.brokenbar=166,t.bstroke=384,t.bsuperior=63210,t.btopbar=387,t.buhiragana=12406,t.bukatakana=12502,t.bullet=8226,t.bulletinverse=9688,t.bulletoperator=8729,t.bullseye=9678,t.c=99,t.caarmenian=1390,t.cabengali=2458,t.cacute=263,t.cadeva=2330,t.cagujarati=2714,t.cagurmukhi=2586,t.calsquare=13192,t.candrabindubengali=2433,t.candrabinducmb=784,t.candrabindudeva=2305,t.candrabindugujarati=2689,t.capslock=8682,t.careof=8453,t.caron=711,t.caronbelowcmb=812,t.caroncmb=780,t.carriagereturn=8629,t.cbopomofo=12568,t.ccaron=269,t.ccedilla=231,t.ccedillaacute=7689,t.ccircle=9426,t.ccircumflex=265,t.ccurl=597,t.cdot=267,t.cdotaccent=267,t.cdsquare=13253,t.cedilla=184,t.cedillacmb=807,t.cent=162,t.centigrade=8451,t.centinferior=63199,t.centmonospace=65504,t.centoldstyle=63394,t.centsuperior=63200,t.chaarmenian=1401,t.chabengali=2459,t.chadeva=2331,t.chagujarati=2715,t.chagurmukhi=2587,t.chbopomofo=12564,t.cheabkhasiancyrillic=1213,t.checkmark=10003,t.checyrillic=1095,t.chedescenderabkhasiancyrillic=1215,t.chedescendercyrillic=1207,t.chedieresiscyrillic=1269,t.cheharmenian=1395,t.chekhakassiancyrillic=1228,t.cheverticalstrokecyrillic=1209,t.chi=967,t.chieuchacirclekorean=12919,t.chieuchaparenkorean=12823,t.chieuchcirclekorean=12905,t.chieuchkorean=12618,t.chieuchparenkorean=12809,t.chochangthai=3594,t.chochanthai=3592,t.chochingthai=3593,t.chochoethai=3596,t.chook=392,t.cieucacirclekorean=12918,t.cieucaparenkorean=12822,t.cieuccirclekorean=12904,t.cieuckorean=12616,t.cieucparenkorean=12808,t.cieucuparenkorean=12828,t.circle=9675,t.circlecopyrt=169,t.circlemultiply=8855,t.circleot=8857,t.circleplus=8853,t.circlepostalmark=12342,t.circlewithlefthalfblack=9680,t.circlewithrighthalfblack=9681,t.circumflex=710,t.circumflexbelowcmb=813,t.circumflexcmb=770,t.clear=8999,t.clickalveolar=450,t.clickdental=448,t.clicklateral=449,t.clickretroflex=451,t.club=9827,t.clubsuitblack=9827,t.clubsuitwhite=9831,t.cmcubedsquare=13220,t.cmonospace=65347,t.cmsquaredsquare=13216,t.coarmenian=1409,t.colon=58,t.colonmonetary=8353,t.colonmonospace=65306,t.colonsign=8353,t.colonsmall=65109,t.colontriangularhalfmod=721,t.colontriangularmod=720,t.comma=44,t.commaabovecmb=787,t.commaaboverightcmb=789,t.commaaccent=63171,t.commaarabic=1548,t.commaarmenian=1373,t.commainferior=63201,t.commamonospace=65292,t.commareversedabovecmb=788,t.commareversedmod=701,t.commasmall=65104,t.commasuperior=63202,t.commaturnedabovecmb=786,t.commaturnedmod=699,t.compass=9788,t.congruent=8773,t.contourintegral=8750,t.control=8963,t.controlACK=6,t.controlBEL=7,t.controlBS=8,t.controlCAN=24,t.controlCR=13,t.controlDC1=17,t.controlDC2=18,t.controlDC3=19,t.controlDC4=20,t.controlDEL=127,t.controlDLE=16,t.controlEM=25,t.controlENQ=5,t.controlEOT=4,t.controlESC=27,t.controlETB=23,t.controlETX=3,t.controlFF=12,t.controlFS=28,t.controlGS=29,t.controlHT=9,t.controlLF=10,t.controlNAK=21,t.controlNULL=0,t.controlRS=30,t.controlSI=15,t.controlSO=14,t.controlSOT=2,t.controlSTX=1,t.controlSUB=26,t.controlSYN=22,t.controlUS=31,t.controlVT=11,t.copyright=169,t.copyrightsans=63721,t.copyrightserif=63193,t.cornerbracketleft=12300,t.cornerbracketlefthalfwidth=65378,t.cornerbracketleftvertical=65089,t.cornerbracketright=12301,t.cornerbracketrighthalfwidth=65379,t.cornerbracketrightvertical=65090,t.corporationsquare=13183,t.cosquare=13255,t.coverkgsquare=13254,t.cparen=9374,t.cruzeiro=8354,t.cstretched=663,t.curlyand=8911,t.curlyor=8910,t.currency=164,t.cyrBreve=63185,t.cyrFlex=63186,t.cyrbreve=63188,t.cyrflex=63189,t.d=100,t.daarmenian=1380,t.dabengali=2470,t.dadarabic=1590,t.dadeva=2342,t.dadfinalarabic=65214,t.dadinitialarabic=65215,t.dadmedialarabic=65216,t.dagesh=1468,t.dageshhebrew=1468,t.dagger=8224,t.daggerdbl=8225,t.dagujarati=2726,t.dagurmukhi=2598,t.dahiragana=12384,t.dakatakana=12480,t.dalarabic=1583,t.dalet=1491,t.daletdagesh=64307,t.daletdageshhebrew=64307,t.dalethebrew=1491,t.dalfinalarabic=65194,t.dammaarabic=1615,t.dammalowarabic=1615,t.dammatanaltonearabic=1612,t.dammatanarabic=1612,t.danda=2404,t.dargahebrew=1447,t.dargalefthebrew=1447,t.dasiapneumatacyrilliccmb=1157,t.dblGrave=63187,t.dblanglebracketleft=12298,t.dblanglebracketleftvertical=65085,t.dblanglebracketright=12299,t.dblanglebracketrightvertical=65086,t.dblarchinvertedbelowcmb=811,t.dblarrowleft=8660,t.dblarrowright=8658,t.dbldanda=2405,t.dblgrave=63190,t.dblgravecmb=783,t.dblintegral=8748,t.dbllowline=8215,t.dbllowlinecmb=819,t.dbloverlinecmb=831,t.dblprimemod=698,t.dblverticalbar=8214,t.dblverticallineabovecmb=782,t.dbopomofo=12553,t.dbsquare=13256,t.dcaron=271,t.dcedilla=7697,t.dcircle=9427,t.dcircumflexbelow=7699,t.dcroat=273,t.ddabengali=2465,t.ddadeva=2337,t.ddagujarati=2721,t.ddagurmukhi=2593,t.ddalarabic=1672,t.ddalfinalarabic=64393,t.dddhadeva=2396,t.ddhabengali=2466,t.ddhadeva=2338,t.ddhagujarati=2722,t.ddhagurmukhi=2594,t.ddotaccent=7691,t.ddotbelow=7693,t.decimalseparatorarabic=1643,t.decimalseparatorpersian=1643,t.decyrillic=1076,t.degree=176,t.dehihebrew=1453,t.dehiragana=12391,t.deicoptic=1007,t.dekatakana=12487,t.deleteleft=9003,t.deleteright=8998,t.delta=948,t.deltaturned=397,t.denominatorminusonenumeratorbengali=2552,t.dezh=676,t.dhabengali=2471,t.dhadeva=2343,t.dhagujarati=2727,t.dhagurmukhi=2599,t.dhook=599,t.dialytikatonos=901,t.dialytikatonoscmb=836,t.diamond=9830,t.diamondsuitwhite=9826,t.dieresis=168,t.dieresisacute=63191,t.dieresisbelowcmb=804,t.dieresiscmb=776,t.dieresisgrave=63192,t.dieresistonos=901,t.dihiragana=12386,t.dikatakana=12482,t.dittomark=12291,t.divide=247,t.divides=8739,t.divisionslash=8725,t.djecyrillic=1106,t.dkshade=9619,t.dlinebelow=7695,t.dlsquare=13207,t.dmacron=273,t.dmonospace=65348,t.dnblock=9604,t.dochadathai=3598,t.dodekthai=3604,t.dohiragana=12393,t.dokatakana=12489,t.dollar=36,t.dollarinferior=63203,t.dollarmonospace=65284,t.dollaroldstyle=63268,t.dollarsmall=65129,t.dollarsuperior=63204,t.dong=8363,t.dorusquare=13094,t.dotaccent=729,t.dotaccentcmb=775,t.dotbelowcmb=803,t.dotbelowcomb=803,t.dotkatakana=12539,t.dotlessi=305,t.dotlessj=63166,t.dotlessjstrokehook=644,t.dotmath=8901,t.dottedcircle=9676,t.doubleyodpatah=64287,t.doubleyodpatahhebrew=64287,t.downtackbelowcmb=798,t.downtackmod=725,t.dparen=9375,t.dsuperior=63211,t.dtail=598,t.dtopbar=396,t.duhiragana=12389,t.dukatakana=12485,t.dz=499,t.dzaltone=675,t.dzcaron=454,t.dzcurl=677,t.dzeabkhasiancyrillic=1249,t.dzecyrillic=1109,t.dzhecyrillic=1119,t.e=101,t.eacute=233,t.earth=9793,t.ebengali=2447,t.ebopomofo=12572,t.ebreve=277,t.ecandradeva=2317,t.ecandragujarati=2701,t.ecandravowelsigndeva=2373,t.ecandravowelsigngujarati=2757,t.ecaron=283,t.ecedillabreve=7709,t.echarmenian=1381,t.echyiwnarmenian=1415,t.ecircle=9428,t.ecircumflex=234,t.ecircumflexacute=7871,t.ecircumflexbelow=7705,t.ecircumflexdotbelow=7879,t.ecircumflexgrave=7873,t.ecircumflexhookabove=7875,t.ecircumflextilde=7877,t.ecyrillic=1108,t.edblgrave=517,t.edeva=2319,t.edieresis=235,t.edot=279,t.edotaccent=279,t.edotbelow=7865,t.eegurmukhi=2575,t.eematragurmukhi=2631,t.efcyrillic=1092,t.egrave=232,t.egujarati=2703,t.eharmenian=1383,t.ehbopomofo=12573,t.ehiragana=12360,t.ehookabove=7867,t.eibopomofo=12575,t.eight=56,t.eightarabic=1640,t.eightbengali=2542,t.eightcircle=9319,t.eightcircleinversesansserif=10129,t.eightdeva=2414,t.eighteencircle=9329,t.eighteenparen=9349,t.eighteenperiod=9369,t.eightgujarati=2798,t.eightgurmukhi=2670,t.eighthackarabic=1640,t.eighthangzhou=12328,t.eighthnotebeamed=9835,t.eightideographicparen=12839,t.eightinferior=8328,t.eightmonospace=65304,t.eightoldstyle=63288,t.eightparen=9339,t.eightperiod=9359,t.eightpersian=1784,t.eightroman=8567,t.eightsuperior=8312,t.eightthai=3672,t.einvertedbreve=519,t.eiotifiedcyrillic=1125,t.ekatakana=12456,t.ekatakanahalfwidth=65396,t.ekonkargurmukhi=2676,t.ekorean=12628,t.elcyrillic=1083,t.element=8712,t.elevencircle=9322,t.elevenparen=9342,t.elevenperiod=9362,t.elevenroman=8570,t.ellipsis=8230,t.ellipsisvertical=8942,t.emacron=275,t.emacronacute=7703,t.emacrongrave=7701,t.emcyrillic=1084,t.emdash=8212,t.emdashvertical=65073,t.emonospace=65349,t.emphasismarkarmenian=1371,t.emptyset=8709,t.enbopomofo=12579,t.encyrillic=1085,t.endash=8211,t.endashvertical=65074,t.endescendercyrillic=1187,t.eng=331,t.engbopomofo=12581,t.enghecyrillic=1189,t.enhookcyrillic=1224,t.enspace=8194,t.eogonek=281,t.eokorean=12627,t.eopen=603,t.eopenclosed=666,t.eopenreversed=604,t.eopenreversedclosed=606,t.eopenreversedhook=605,t.eparen=9376,t.epsilon=949,t.epsilontonos=941,t.equal=61,t.equalmonospace=65309,t.equalsmall=65126,t.equalsuperior=8316,t.equivalence=8801,t.erbopomofo=12582,t.ercyrillic=1088,t.ereversed=600,t.ereversedcyrillic=1101,t.escyrillic=1089,t.esdescendercyrillic=1195,t.esh=643,t.eshcurl=646,t.eshortdeva=2318,t.eshortvowelsigndeva=2374,t.eshreversedloop=426,t.eshsquatreversed=645,t.esmallhiragana=12359,t.esmallkatakana=12455,t.esmallkatakanahalfwidth=65386,t.estimated=8494,t.esuperior=63212,t.eta=951,t.etarmenian=1384,t.etatonos=942,t.eth=240,t.etilde=7869,t.etildebelow=7707,t.etnahtafoukhhebrew=1425,t.etnahtafoukhlefthebrew=1425,t.etnahtahebrew=1425,t.etnahtalefthebrew=1425,t.eturned=477,t.eukorean=12641,t.euro=8364,t.evowelsignbengali=2503,t.evowelsigndeva=2375,t.evowelsigngujarati=2759,t.exclam=33,t.exclamarmenian=1372,t.exclamdbl=8252,t.exclamdown=161,t.exclamdownsmall=63393,t.exclammonospace=65281,t.exclamsmall=63265,t.existential=8707,t.ezh=658,t.ezhcaron=495,t.ezhcurl=659,t.ezhreversed=441,t.ezhtail=442,t.f=102,t.fadeva=2398,t.fagurmukhi=2654,t.fahrenheit=8457,t.fathaarabic=1614,t.fathalowarabic=1614,t.fathatanarabic=1611,t.fbopomofo=12552,t.fcircle=9429,t.fdotaccent=7711,t.feharabic=1601,t.feharmenian=1414,t.fehfinalarabic=65234,t.fehinitialarabic=65235,t.fehmedialarabic=65236,t.feicoptic=997,t.female=9792,t.ff=64256,t.f_f=64256,t.ffi=64259,t.f_f_i=64259,t.ffl=64260,t.f_f_l=64260,t.fi=64257,t.f_i=64257,t.fifteencircle=9326,t.fifteenparen=9346,t.fifteenperiod=9366,t.figuredash=8210,t.filledbox=9632,t.filledrect=9644,t.finalkaf=1498,t.finalkafdagesh=64314,t.finalkafdageshhebrew=64314,t.finalkafhebrew=1498,t.finalmem=1501,t.finalmemhebrew=1501,t.finalnun=1503,t.finalnunhebrew=1503,t.finalpe=1507,t.finalpehebrew=1507,t.finaltsadi=1509,t.finaltsadihebrew=1509,t.firsttonechinese=713,t.fisheye=9673,t.fitacyrillic=1139,t.five=53,t.fivearabic=1637,t.fivebengali=2539,t.fivecircle=9316,t.fivecircleinversesansserif=10126,t.fivedeva=2411,t.fiveeighths=8541,t.fivegujarati=2795,t.fivegurmukhi=2667,t.fivehackarabic=1637,t.fivehangzhou=12325,t.fiveideographicparen=12836,t.fiveinferior=8325,t.fivemonospace=65301,t.fiveoldstyle=63285,t.fiveparen=9336,t.fiveperiod=9356,t.fivepersian=1781,t.fiveroman=8564,t.fivesuperior=8309,t.fivethai=3669,t.fl=64258,t.f_l=64258,t.florin=402,t.fmonospace=65350,t.fmsquare=13209,t.fofanthai=3615,t.fofathai=3613,t.fongmanthai=3663,t.forall=8704,t.four=52,t.fourarabic=1636,t.fourbengali=2538,t.fourcircle=9315,t.fourcircleinversesansserif=10125,t.fourdeva=2410,t.fourgujarati=2794,t.fourgurmukhi=2666,t.fourhackarabic=1636,t.fourhangzhou=12324,t.fourideographicparen=12835,t.fourinferior=8324,t.fourmonospace=65300,t.fournumeratorbengali=2551,t.fouroldstyle=63284,t.fourparen=9335,t.fourperiod=9355,t.fourpersian=1780,t.fourroman=8563,t.foursuperior=8308,t.fourteencircle=9325,t.fourteenparen=9345,t.fourteenperiod=9365,t.fourthai=3668,t.fourthtonechinese=715,t.fparen=9377,t.fraction=8260,t.franc=8355,t.g=103,t.gabengali=2455,t.gacute=501,t.gadeva=2327,t.gafarabic=1711,t.gaffinalarabic=64403,t.gafinitialarabic=64404,t.gafmedialarabic=64405,t.gagujarati=2711,t.gagurmukhi=2583,t.gahiragana=12364,t.gakatakana=12460,t.gamma=947,t.gammalatinsmall=611,t.gammasuperior=736,t.gangiacoptic=1003,t.gbopomofo=12557,t.gbreve=287,t.gcaron=487,t.gcedilla=291,t.gcircle=9430,t.gcircumflex=285,t.gcommaaccent=291,t.gdot=289,t.gdotaccent=289,t.gecyrillic=1075,t.gehiragana=12370,t.gekatakana=12466,t.geometricallyequal=8785,t.gereshaccenthebrew=1436,t.gereshhebrew=1523,t.gereshmuqdamhebrew=1437,t.germandbls=223,t.gershayimaccenthebrew=1438,t.gershayimhebrew=1524,t.getamark=12307,t.ghabengali=2456,t.ghadarmenian=1394,t.ghadeva=2328,t.ghagujarati=2712,t.ghagurmukhi=2584,t.ghainarabic=1594,t.ghainfinalarabic=65230,t.ghaininitialarabic=65231,t.ghainmedialarabic=65232,t.ghemiddlehookcyrillic=1173,t.ghestrokecyrillic=1171,t.gheupturncyrillic=1169,t.ghhadeva=2394,t.ghhagurmukhi=2650,t.ghook=608,t.ghzsquare=13203,t.gihiragana=12366,t.gikatakana=12462,t.gimarmenian=1379,t.gimel=1490,t.gimeldagesh=64306,t.gimeldageshhebrew=64306,t.gimelhebrew=1490,t.gjecyrillic=1107,t.glottalinvertedstroke=446,t.glottalstop=660,t.glottalstopinverted=662,t.glottalstopmod=704,t.glottalstopreversed=661,t.glottalstopreversedmod=705,t.glottalstopreversedsuperior=740,t.glottalstopstroke=673,t.glottalstopstrokereversed=674,t.gmacron=7713,t.gmonospace=65351,t.gohiragana=12372,t.gokatakana=12468,t.gparen=9378,t.gpasquare=13228,t.gradient=8711,t.grave=96,t.gravebelowcmb=790,t.gravecmb=768,t.gravecomb=768,t.gravedeva=2387,t.gravelowmod=718,t.gravemonospace=65344,t.gravetonecmb=832,t.greater=62,t.greaterequal=8805,t.greaterequalorless=8923,t.greatermonospace=65310,t.greaterorequivalent=8819,t.greaterorless=8823,t.greateroverequal=8807,t.greatersmall=65125,t.gscript=609,t.gstroke=485,t.guhiragana=12368,t.guillemotleft=171,t.guillemotright=187,t.guilsinglleft=8249,t.guilsinglright=8250,t.gukatakana=12464,t.guramusquare=13080,t.gysquare=13257,t.h=104,t.haabkhasiancyrillic=1193,t.haaltonearabic=1729,t.habengali=2489,t.hadescendercyrillic=1203,t.hadeva=2361,t.hagujarati=2745,t.hagurmukhi=2617,t.haharabic=1581,t.hahfinalarabic=65186,t.hahinitialarabic=65187,t.hahiragana=12399,t.hahmedialarabic=65188,t.haitusquare=13098,t.hakatakana=12495,t.hakatakanahalfwidth=65418,t.halantgurmukhi=2637,t.hamzaarabic=1569,t.hamzalowarabic=1569,t.hangulfiller=12644,t.hardsigncyrillic=1098,t.harpoonleftbarbup=8636,t.harpoonrightbarbup=8640,t.hasquare=13258,t.hatafpatah=1458,t.hatafpatah16=1458,t.hatafpatah23=1458,t.hatafpatah2f=1458,t.hatafpatahhebrew=1458,t.hatafpatahnarrowhebrew=1458,t.hatafpatahquarterhebrew=1458,t.hatafpatahwidehebrew=1458,t.hatafqamats=1459,t.hatafqamats1b=1459,t.hatafqamats28=1459,t.hatafqamats34=1459,t.hatafqamatshebrew=1459,t.hatafqamatsnarrowhebrew=1459,t.hatafqamatsquarterhebrew=1459,t.hatafqamatswidehebrew=1459,t.hatafsegol=1457,t.hatafsegol17=1457,t.hatafsegol24=1457,t.hatafsegol30=1457,t.hatafsegolhebrew=1457,t.hatafsegolnarrowhebrew=1457,t.hatafsegolquarterhebrew=1457,t.hatafsegolwidehebrew=1457,t.hbar=295,t.hbopomofo=12559,t.hbrevebelow=7723,t.hcedilla=7721,t.hcircle=9431,t.hcircumflex=293,t.hdieresis=7719,t.hdotaccent=7715,t.hdotbelow=7717,t.he=1492,t.heart=9829,t.heartsuitblack=9829,t.heartsuitwhite=9825,t.hedagesh=64308,t.hedageshhebrew=64308,t.hehaltonearabic=1729,t.heharabic=1607,t.hehebrew=1492,t.hehfinalaltonearabic=64423,t.hehfinalalttwoarabic=65258,t.hehfinalarabic=65258,t.hehhamzaabovefinalarabic=64421,t.hehhamzaaboveisolatedarabic=64420,t.hehinitialaltonearabic=64424,t.hehinitialarabic=65259,t.hehiragana=12408,t.hehmedialaltonearabic=64425,t.hehmedialarabic=65260,t.heiseierasquare=13179,t.hekatakana=12504,t.hekatakanahalfwidth=65421,t.hekutaarusquare=13110,t.henghook=615,t.herutusquare=13113,t.het=1495,t.hethebrew=1495,t.hhook=614,t.hhooksuperior=689,t.hieuhacirclekorean=12923,t.hieuhaparenkorean=12827,t.hieuhcirclekorean=12909,t.hieuhkorean=12622,t.hieuhparenkorean=12813,t.hihiragana=12402,t.hikatakana=12498,t.hikatakanahalfwidth=65419,t.hiriq=1460,t.hiriq14=1460,t.hiriq21=1460,t.hiriq2d=1460,t.hiriqhebrew=1460,t.hiriqnarrowhebrew=1460,t.hiriqquarterhebrew=1460,t.hiriqwidehebrew=1460,t.hlinebelow=7830,t.hmonospace=65352,t.hoarmenian=1392,t.hohipthai=3627,t.hohiragana=12411,t.hokatakana=12507,t.hokatakanahalfwidth=65422,t.holam=1465,t.holam19=1465,t.holam26=1465,t.holam32=1465,t.holamhebrew=1465,t.holamnarrowhebrew=1465,t.holamquarterhebrew=1465,t.holamwidehebrew=1465,t.honokhukthai=3630,t.hookabovecomb=777,t.hookcmb=777,t.hookpalatalizedbelowcmb=801,t.hookretroflexbelowcmb=802,t.hoonsquare=13122,t.horicoptic=1001,t.horizontalbar=8213,t.horncmb=795,t.hotsprings=9832,t.house=8962,t.hparen=9379,t.hsuperior=688,t.hturned=613,t.huhiragana=12405,t.huiitosquare=13107,t.hukatakana=12501,t.hukatakanahalfwidth=65420,t.hungarumlaut=733,t.hungarumlautcmb=779,t.hv=405,t.hyphen=45,t.hypheninferior=63205,t.hyphenmonospace=65293,t.hyphensmall=65123,t.hyphensuperior=63206,t.hyphentwo=8208,t.i=105,t.iacute=237,t.iacyrillic=1103,t.ibengali=2439,t.ibopomofo=12583,t.ibreve=301,t.icaron=464,t.icircle=9432,t.icircumflex=238,t.icyrillic=1110,t.idblgrave=521,t.ideographearthcircle=12943,t.ideographfirecircle=12939,t.ideographicallianceparen=12863,t.ideographiccallparen=12858,t.ideographiccentrecircle=12965,t.ideographicclose=12294,t.ideographiccomma=12289,t.ideographiccommaleft=65380,t.ideographiccongratulationparen=12855,t.ideographiccorrectcircle=12963,t.ideographicearthparen=12847,t.ideographicenterpriseparen=12861,t.ideographicexcellentcircle=12957,t.ideographicfestivalparen=12864,t.ideographicfinancialcircle=12950,t.ideographicfinancialparen=12854,t.ideographicfireparen=12843,t.ideographichaveparen=12850,t.ideographichighcircle=12964,t.ideographiciterationmark=12293,t.ideographiclaborcircle=12952,t.ideographiclaborparen=12856,t.ideographicleftcircle=12967,t.ideographiclowcircle=12966,t.ideographicmedicinecircle=12969,t.ideographicmetalparen=12846,t.ideographicmoonparen=12842,t.ideographicnameparen=12852,t.ideographicperiod=12290,t.ideographicprintcircle=12958,t.ideographicreachparen=12867,t.ideographicrepresentparen=12857,t.ideographicresourceparen=12862,t.ideographicrightcircle=12968,t.ideographicsecretcircle=12953,t.ideographicselfparen=12866,t.ideographicsocietyparen=12851,t.ideographicspace=12288,t.ideographicspecialparen=12853,t.ideographicstockparen=12849,t.ideographicstudyparen=12859,t.ideographicsunparen=12848,t.ideographicsuperviseparen=12860,t.ideographicwaterparen=12844,t.ideographicwoodparen=12845,t.ideographiczero=12295,t.ideographmetalcircle=12942,t.ideographmooncircle=12938,t.ideographnamecircle=12948,t.ideographsuncircle=12944,t.ideographwatercircle=12940,t.ideographwoodcircle=12941,t.ideva=2311,t.idieresis=239,t.idieresisacute=7727,t.idieresiscyrillic=1253,t.idotbelow=7883,t.iebrevecyrillic=1239,t.iecyrillic=1077,t.ieungacirclekorean=12917,t.ieungaparenkorean=12821,t.ieungcirclekorean=12903,t.ieungkorean=12615,t.ieungparenkorean=12807,t.igrave=236,t.igujarati=2695,t.igurmukhi=2567,t.ihiragana=12356,t.ihookabove=7881,t.iibengali=2440,t.iicyrillic=1080,t.iideva=2312,t.iigujarati=2696,t.iigurmukhi=2568,t.iimatragurmukhi=2624,t.iinvertedbreve=523,t.iishortcyrillic=1081,t.iivowelsignbengali=2496,t.iivowelsigndeva=2368,t.iivowelsigngujarati=2752,t.ij=307,t.ikatakana=12452,t.ikatakanahalfwidth=65394,t.ikorean=12643,t.ilde=732,t.iluyhebrew=1452,t.imacron=299,t.imacroncyrillic=1251,t.imageorapproximatelyequal=8787,t.imatragurmukhi=2623,t.imonospace=65353,t.increment=8710,t.infinity=8734,t.iniarmenian=1387,t.integral=8747,t.integralbottom=8993,t.integralbt=8993,t.integralex=63733,t.integraltop=8992,t.integraltp=8992,t.intersection=8745,t.intisquare=13061,t.invbullet=9688,t.invcircle=9689,t.invsmileface=9787,t.iocyrillic=1105,t.iogonek=303,t.iota=953,t.iotadieresis=970,t.iotadieresistonos=912,t.iotalatin=617,t.iotatonos=943,t.iparen=9380,t.irigurmukhi=2674,t.ismallhiragana=12355,t.ismallkatakana=12451,t.ismallkatakanahalfwidth=65384,t.issharbengali=2554,t.istroke=616,t.isuperior=63213,t.iterationhiragana=12445,t.iterationkatakana=12541,t.itilde=297,t.itildebelow=7725,t.iubopomofo=12585,t.iucyrillic=1102,t.ivowelsignbengali=2495,t.ivowelsigndeva=2367,t.ivowelsigngujarati=2751,t.izhitsacyrillic=1141,t.izhitsadblgravecyrillic=1143,t.j=106,t.jaarmenian=1393,t.jabengali=2460,t.jadeva=2332,t.jagujarati=2716,t.jagurmukhi=2588,t.jbopomofo=12560,t.jcaron=496,t.jcircle=9433,t.jcircumflex=309,t.jcrossedtail=669,t.jdotlessstroke=607,t.jecyrillic=1112,t.jeemarabic=1580,t.jeemfinalarabic=65182,t.jeeminitialarabic=65183,t.jeemmedialarabic=65184,t.jeharabic=1688,t.jehfinalarabic=64395,t.jhabengali=2461,t.jhadeva=2333,t.jhagujarati=2717,t.jhagurmukhi=2589,t.jheharmenian=1403,t.jis=12292,t.jmonospace=65354,t.jparen=9381,t.jsuperior=690,t.k=107,t.kabashkircyrillic=1185,t.kabengali=2453,t.kacute=7729,t.kacyrillic=1082,t.kadescendercyrillic=1179,t.kadeva=2325,t.kaf=1499,t.kafarabic=1603,t.kafdagesh=64315,t.kafdageshhebrew=64315,t.kaffinalarabic=65242,t.kafhebrew=1499,t.kafinitialarabic=65243,t.kafmedialarabic=65244,t.kafrafehebrew=64333,t.kagujarati=2709,t.kagurmukhi=2581,t.kahiragana=12363,t.kahookcyrillic=1220,t.kakatakana=12459,t.kakatakanahalfwidth=65398,t.kappa=954,t.kappasymbolgreek=1008,t.kapyeounmieumkorean=12657,t.kapyeounphieuphkorean=12676,t.kapyeounpieupkorean=12664,t.kapyeounssangpieupkorean=12665,t.karoriisquare=13069,t.kashidaautoarabic=1600,t.kashidaautonosidebearingarabic=1600,t.kasmallkatakana=12533,t.kasquare=13188,t.kasraarabic=1616,t.kasratanarabic=1613,t.kastrokecyrillic=1183,t.katahiraprolongmarkhalfwidth=65392,t.kaverticalstrokecyrillic=1181,t.kbopomofo=12558,t.kcalsquare=13193,t.kcaron=489,t.kcedilla=311,t.kcircle=9434,t.kcommaaccent=311,t.kdotbelow=7731,t.keharmenian=1412,t.kehiragana=12369,t.kekatakana=12465,t.kekatakanahalfwidth=65401,t.kenarmenian=1391,t.kesmallkatakana=12534,t.kgreenlandic=312,t.khabengali=2454,t.khacyrillic=1093,t.khadeva=2326,t.khagujarati=2710,t.khagurmukhi=2582,t.khaharabic=1582,t.khahfinalarabic=65190,t.khahinitialarabic=65191,t.khahmedialarabic=65192,t.kheicoptic=999,t.khhadeva=2393,t.khhagurmukhi=2649,t.khieukhacirclekorean=12920,t.khieukhaparenkorean=12824,t.khieukhcirclekorean=12906,t.khieukhkorean=12619,t.khieukhparenkorean=12810,t.khokhaithai=3586,t.khokhonthai=3589,t.khokhuatthai=3587,t.khokhwaithai=3588,t.khomutthai=3675,t.khook=409,t.khorakhangthai=3590,t.khzsquare=13201,t.kihiragana=12365,t.kikatakana=12461,t.kikatakanahalfwidth=65399,t.kiroguramusquare=13077,t.kiromeetorusquare=13078,t.kirosquare=13076,t.kiyeokacirclekorean=12910,t.kiyeokaparenkorean=12814,t.kiyeokcirclekorean=12896,t.kiyeokkorean=12593,t.kiyeokparenkorean=12800,t.kiyeoksioskorean=12595,t.kjecyrillic=1116,t.klinebelow=7733,t.klsquare=13208,t.kmcubedsquare=13222,t.kmonospace=65355,t.kmsquaredsquare=13218,t.kohiragana=12371,t.kohmsquare=13248,t.kokaithai=3585,t.kokatakana=12467,t.kokatakanahalfwidth=65402,t.kooposquare=13086,t.koppacyrillic=1153,t.koreanstandardsymbol=12927,t.koroniscmb=835,t.kparen=9382,t.kpasquare=13226,t.ksicyrillic=1135,t.ktsquare=13263,t.kturned=670,t.kuhiragana=12367,t.kukatakana=12463,t.kukatakanahalfwidth=65400,t.kvsquare=13240,t.kwsquare=13246,t.l=108,t.labengali=2482,t.lacute=314,t.ladeva=2354,t.lagujarati=2738,t.lagurmukhi=2610,t.lakkhangyaothai=3653,t.lamaleffinalarabic=65276,t.lamalefhamzaabovefinalarabic=65272,t.lamalefhamzaaboveisolatedarabic=65271,t.lamalefhamzabelowfinalarabic=65274,t.lamalefhamzabelowisolatedarabic=65273,t.lamalefisolatedarabic=65275,t.lamalefmaddaabovefinalarabic=65270,t.lamalefmaddaaboveisolatedarabic=65269,t.lamarabic=1604,t.lambda=955,t.lambdastroke=411,t.lamed=1500,t.lameddagesh=64316,t.lameddageshhebrew=64316,t.lamedhebrew=1500,t.lamfinalarabic=65246,t.lamhahinitialarabic=64714,t.laminitialarabic=65247,t.lamjeeminitialarabic=64713,t.lamkhahinitialarabic=64715,t.lamlamhehisolatedarabic=65010,t.lammedialarabic=65248,t.lammeemhahinitialarabic=64904,t.lammeeminitialarabic=64716,t.largecircle=9711,t.lbar=410,t.lbelt=620,t.lbopomofo=12556,t.lcaron=318,t.lcedilla=316,t.lcircle=9435,t.lcircumflexbelow=7741,t.lcommaaccent=316,t.ldot=320,t.ldotaccent=320,t.ldotbelow=7735,t.ldotbelowmacron=7737,t.leftangleabovecmb=794,t.lefttackbelowcmb=792,t.less=60,t.lessequal=8804,t.lessequalorgreater=8922,t.lessmonospace=65308,t.lessorequivalent=8818,t.lessorgreater=8822,t.lessoverequal=8806,t.lesssmall=65124,t.lezh=622,t.lfblock=9612,t.lhookretroflex=621,t.lira=8356,t.liwnarmenian=1388,t.lj=457,t.ljecyrillic=1113,t.ll=63168,t.lladeva=2355,t.llagujarati=2739,t.llinebelow=7739,t.llladeva=2356,t.llvocalicbengali=2529,t.llvocalicdeva=2401,t.llvocalicvowelsignbengali=2531,t.llvocalicvowelsigndeva=2403,t.lmiddletilde=619,t.lmonospace=65356,t.lmsquare=13264,t.lochulathai=3628,t.logicaland=8743,t.logicalnot=172,t.logicalnotreversed=8976,t.logicalor=8744,t.lolingthai=3621,t.longs=383,t.lowlinecenterline=65102,t.lowlinecmb=818,t.lowlinedashed=65101,t.lozenge=9674,t.lparen=9383,t.lslash=322,t.lsquare=8467,t.lsuperior=63214,t.ltshade=9617,t.luthai=3622,t.lvocalicbengali=2444,t.lvocalicdeva=2316,t.lvocalicvowelsignbengali=2530,t.lvocalicvowelsigndeva=2402,t.lxsquare=13267,t.m=109,t.mabengali=2478,t.macron=175,t.macronbelowcmb=817,t.macroncmb=772,t.macronlowmod=717,t.macronmonospace=65507,t.macute=7743,t.madeva=2350,t.magujarati=2734,t.magurmukhi=2606,t.mahapakhhebrew=1444,t.mahapakhlefthebrew=1444,t.mahiragana=12414,t.maichattawalowleftthai=63637,t.maichattawalowrightthai=63636,t.maichattawathai=3659,t.maichattawaupperleftthai=63635,t.maieklowleftthai=63628,t.maieklowrightthai=63627,t.maiekthai=3656,t.maiekupperleftthai=63626,t.maihanakatleftthai=63620,t.maihanakatthai=3633,t.maitaikhuleftthai=63625,t.maitaikhuthai=3655,t.maitholowleftthai=63631,t.maitholowrightthai=63630,t.maithothai=3657,t.maithoupperleftthai=63629,t.maitrilowleftthai=63634,t.maitrilowrightthai=63633,t.maitrithai=3658,t.maitriupperleftthai=63632,t.maiyamokthai=3654,t.makatakana=12510,t.makatakanahalfwidth=65423,t.male=9794,t.mansyonsquare=13127,t.maqafhebrew=1470,t.mars=9794,t.masoracirclehebrew=1455,t.masquare=13187,t.mbopomofo=12551,t.mbsquare=13268,t.mcircle=9436,t.mcubedsquare=13221,t.mdotaccent=7745,t.mdotbelow=7747,t.meemarabic=1605,t.meemfinalarabic=65250,t.meeminitialarabic=65251,t.meemmedialarabic=65252,t.meemmeeminitialarabic=64721,t.meemmeemisolatedarabic=64584,t.meetorusquare=13133,t.mehiragana=12417,t.meizierasquare=13182,t.mekatakana=12513,t.mekatakanahalfwidth=65426,t.mem=1502,t.memdagesh=64318,t.memdageshhebrew=64318,t.memhebrew=1502,t.menarmenian=1396,t.merkhahebrew=1445,t.merkhakefulahebrew=1446,t.merkhakefulalefthebrew=1446,t.merkhalefthebrew=1445,t.mhook=625,t.mhzsquare=13202,t.middledotkatakanahalfwidth=65381,t.middot=183,t.mieumacirclekorean=12914,t.mieumaparenkorean=12818,t.mieumcirclekorean=12900,t.mieumkorean=12609,t.mieumpansioskorean=12656,t.mieumparenkorean=12804,t.mieumpieupkorean=12654,t.mieumsioskorean=12655,t.mihiragana=12415,t.mikatakana=12511,t.mikatakanahalfwidth=65424,t.minus=8722,t.minusbelowcmb=800,t.minuscircle=8854,t.minusmod=727,t.minusplus=8723,t.minute=8242,t.miribaarusquare=13130,t.mirisquare=13129,t.mlonglegturned=624,t.mlsquare=13206,t.mmcubedsquare=13219,t.mmonospace=65357,t.mmsquaredsquare=13215,t.mohiragana=12418,t.mohmsquare=13249,t.mokatakana=12514,t.mokatakanahalfwidth=65427,t.molsquare=13270,t.momathai=3617,t.moverssquare=13223,t.moverssquaredsquare=13224,t.mparen=9384,t.mpasquare=13227,t.mssquare=13235,t.msuperior=63215,t.mturned=623,t.mu=181,t.mu1=181,t.muasquare=13186,t.muchgreater=8811,t.muchless=8810,t.mufsquare=13196,t.mugreek=956,t.mugsquare=13197,t.muhiragana=12416,t.mukatakana=12512,t.mukatakanahalfwidth=65425,t.mulsquare=13205,t.multiply=215,t.mumsquare=13211,t.munahhebrew=1443,t.munahlefthebrew=1443,t.musicalnote=9834,t.musicalnotedbl=9835,t.musicflatsign=9837,t.musicsharpsign=9839,t.mussquare=13234,t.muvsquare=13238,t.muwsquare=13244,t.mvmegasquare=13241,t.mvsquare=13239,t.mwmegasquare=13247,t.mwsquare=13245,t.n=110,t.nabengali=2472,t.nabla=8711,t.nacute=324,t.nadeva=2344,t.nagujarati=2728,t.nagurmukhi=2600,t.nahiragana=12394,t.nakatakana=12490,t.nakatakanahalfwidth=65413,t.napostrophe=329,t.nasquare=13185,t.nbopomofo=12555,t.nbspace=160,t.ncaron=328,t.ncedilla=326,t.ncircle=9437,t.ncircumflexbelow=7755,t.ncommaaccent=326,t.ndotaccent=7749,t.ndotbelow=7751,t.nehiragana=12397,t.nekatakana=12493,t.nekatakanahalfwidth=65416,t.newsheqelsign=8362,t.nfsquare=13195,t.ngabengali=2457,t.ngadeva=2329,t.ngagujarati=2713,t.ngagurmukhi=2585,t.ngonguthai=3591,t.nhiragana=12435,t.nhookleft=626,t.nhookretroflex=627,t.nieunacirclekorean=12911,t.nieunaparenkorean=12815,t.nieuncieuckorean=12597,t.nieuncirclekorean=12897,t.nieunhieuhkorean=12598,t.nieunkorean=12596,t.nieunpansioskorean=12648,t.nieunparenkorean=12801,t.nieunsioskorean=12647,t.nieuntikeutkorean=12646,t.nihiragana=12395,t.nikatakana=12491,t.nikatakanahalfwidth=65414,t.nikhahitleftthai=63641,t.nikhahitthai=3661,t.nine=57,t.ninearabic=1641,t.ninebengali=2543,t.ninecircle=9320,t.ninecircleinversesansserif=10130,t.ninedeva=2415,t.ninegujarati=2799,t.ninegurmukhi=2671,t.ninehackarabic=1641,t.ninehangzhou=12329,t.nineideographicparen=12840,t.nineinferior=8329,t.ninemonospace=65305,t.nineoldstyle=63289,t.nineparen=9340,t.nineperiod=9360,t.ninepersian=1785,t.nineroman=8568,t.ninesuperior=8313,t.nineteencircle=9330,t.nineteenparen=9350,t.nineteenperiod=9370,t.ninethai=3673,t.nj=460,t.njecyrillic=1114,t.nkatakana=12531,t.nkatakanahalfwidth=65437,t.nlegrightlong=414,t.nlinebelow=7753,t.nmonospace=65358,t.nmsquare=13210,t.nnabengali=2467,t.nnadeva=2339,t.nnagujarati=2723,t.nnagurmukhi=2595,t.nnnadeva=2345,t.nohiragana=12398,t.nokatakana=12494,t.nokatakanahalfwidth=65417,t.nonbreakingspace=160,t.nonenthai=3603,t.nonuthai=3609,t.noonarabic=1606,t.noonfinalarabic=65254,t.noonghunnaarabic=1722,t.noonghunnafinalarabic=64415,t.nooninitialarabic=65255,t.noonjeeminitialarabic=64722,t.noonjeemisolatedarabic=64587,t.noonmedialarabic=65256,t.noonmeeminitialarabic=64725,t.noonmeemisolatedarabic=64590,t.noonnoonfinalarabic=64653,t.notcontains=8716,t.notelement=8713,t.notelementof=8713,t.notequal=8800,t.notgreater=8815,t.notgreaternorequal=8817,t.notgreaternorless=8825,t.notidentical=8802,t.notless=8814,t.notlessnorequal=8816,t.notparallel=8742,t.notprecedes=8832,t.notsubset=8836,t.notsucceeds=8833,t.notsuperset=8837,t.nowarmenian=1398,t.nparen=9385,t.nssquare=13233,t.nsuperior=8319,t.ntilde=241,t.nu=957,t.nuhiragana=12396,t.nukatakana=12492,t.nukatakanahalfwidth=65415,t.nuktabengali=2492,t.nuktadeva=2364,t.nuktagujarati=2748,t.nuktagurmukhi=2620,t.numbersign=35,t.numbersignmonospace=65283,t.numbersignsmall=65119,t.numeralsigngreek=884,t.numeralsignlowergreek=885,t.numero=8470,t.nun=1504,t.nundagesh=64320,t.nundageshhebrew=64320,t.nunhebrew=1504,t.nvsquare=13237,t.nwsquare=13243,t.nyabengali=2462,t.nyadeva=2334,t.nyagujarati=2718,t.nyagurmukhi=2590,t.o=111,t.oacute=243,t.oangthai=3629,t.obarred=629,t.obarredcyrillic=1257,t.obarreddieresiscyrillic=1259,t.obengali=2451,t.obopomofo=12571,t.obreve=335,t.ocandradeva=2321,t.ocandragujarati=2705,t.ocandravowelsigndeva=2377,t.ocandravowelsigngujarati=2761,t.ocaron=466,t.ocircle=9438,t.ocircumflex=244,t.ocircumflexacute=7889,t.ocircumflexdotbelow=7897,t.ocircumflexgrave=7891,t.ocircumflexhookabove=7893,t.ocircumflextilde=7895,t.ocyrillic=1086,t.odblacute=337,t.odblgrave=525,t.odeva=2323,t.odieresis=246,t.odieresiscyrillic=1255,t.odotbelow=7885,t.oe=339,t.oekorean=12634,t.ogonek=731,t.ogonekcmb=808,t.ograve=242,t.ogujarati=2707,t.oharmenian=1413,t.ohiragana=12362,t.ohookabove=7887,t.ohorn=417,t.ohornacute=7899,t.ohorndotbelow=7907,t.ohorngrave=7901,t.ohornhookabove=7903,t.ohorntilde=7905,t.ohungarumlaut=337,t.oi=419,t.oinvertedbreve=527,t.okatakana=12458,t.okatakanahalfwidth=65397,t.okorean=12631,t.olehebrew=1451,t.omacron=333,t.omacronacute=7763,t.omacrongrave=7761,t.omdeva=2384,t.omega=969,t.omega1=982,t.omegacyrillic=1121,t.omegalatinclosed=631,t.omegaroundcyrillic=1147,t.omegatitlocyrillic=1149,t.omegatonos=974,t.omgujarati=2768,t.omicron=959,t.omicrontonos=972,t.omonospace=65359,t.one=49,t.onearabic=1633,t.onebengali=2535,t.onecircle=9312,t.onecircleinversesansserif=10122,t.onedeva=2407,t.onedotenleader=8228,t.oneeighth=8539,t.onefitted=63196,t.onegujarati=2791,t.onegurmukhi=2663,t.onehackarabic=1633,t.onehalf=189,t.onehangzhou=12321,t.oneideographicparen=12832,t.oneinferior=8321,t.onemonospace=65297,t.onenumeratorbengali=2548,t.oneoldstyle=63281,t.oneparen=9332,t.oneperiod=9352,t.onepersian=1777,t.onequarter=188,t.oneroman=8560,t.onesuperior=185,t.onethai=3665,t.onethird=8531,t.oogonek=491,t.oogonekmacron=493,t.oogurmukhi=2579,t.oomatragurmukhi=2635,t.oopen=596,t.oparen=9386,t.openbullet=9702,t.option=8997,t.ordfeminine=170,t.ordmasculine=186,t.orthogonal=8735,t.oshortdeva=2322,t.oshortvowelsigndeva=2378,t.oslash=248,t.oslashacute=511,t.osmallhiragana=12361,t.osmallkatakana=12457,t.osmallkatakanahalfwidth=65387,t.ostrokeacute=511,t.osuperior=63216,t.otcyrillic=1151,t.otilde=245,t.otildeacute=7757,t.otildedieresis=7759,t.oubopomofo=12577,t.overline=8254,t.overlinecenterline=65098,t.overlinecmb=773,t.overlinedashed=65097,t.overlinedblwavy=65100,t.overlinewavy=65099,t.overscore=175,t.ovowelsignbengali=2507,t.ovowelsigndeva=2379,t.ovowelsigngujarati=2763,t.p=112,t.paampssquare=13184,t.paasentosquare=13099,t.pabengali=2474,t.pacute=7765,t.padeva=2346,t.pagedown=8671,t.pageup=8670,t.pagujarati=2730,t.pagurmukhi=2602,t.pahiragana=12401,t.paiyannoithai=3631,t.pakatakana=12497,t.palatalizationcyrilliccmb=1156,t.palochkacyrillic=1216,t.pansioskorean=12671,t.paragraph=182,t.parallel=8741,t.parenleft=40,t.parenleftaltonearabic=64830,t.parenleftbt=63725,t.parenleftex=63724,t.parenleftinferior=8333,t.parenleftmonospace=65288,t.parenleftsmall=65113,t.parenleftsuperior=8317,t.parenlefttp=63723,t.parenleftvertical=65077,t.parenright=41,t.parenrightaltonearabic=64831,t.parenrightbt=63736,t.parenrightex=63735,t.parenrightinferior=8334,t.parenrightmonospace=65289,t.parenrightsmall=65114,t.parenrightsuperior=8318,t.parenrighttp=63734,t.parenrightvertical=65078,t.partialdiff=8706,t.paseqhebrew=1472,t.pashtahebrew=1433,t.pasquare=13225,t.patah=1463,t.patah11=1463,t.patah1d=1463,t.patah2a=1463,t.patahhebrew=1463,t.patahnarrowhebrew=1463,t.patahquarterhebrew=1463,t.patahwidehebrew=1463,t.pazerhebrew=1441,t.pbopomofo=12550,t.pcircle=9439,t.pdotaccent=7767,t.pe=1508,t.pecyrillic=1087,t.pedagesh=64324,t.pedageshhebrew=64324,t.peezisquare=13115,t.pefinaldageshhebrew=64323,t.peharabic=1662,t.peharmenian=1402,t.pehebrew=1508,t.pehfinalarabic=64343,t.pehinitialarabic=64344,t.pehiragana=12410,t.pehmedialarabic=64345,t.pekatakana=12506,t.pemiddlehookcyrillic=1191,t.perafehebrew=64334,t.percent=37,t.percentarabic=1642,t.percentmonospace=65285,t.percentsmall=65130,t.period=46,t.periodarmenian=1417,t.periodcentered=183,t.periodhalfwidth=65377,t.periodinferior=63207,t.periodmonospace=65294,t.periodsmall=65106,t.periodsuperior=63208,t.perispomenigreekcmb=834,t.perpendicular=8869,t.perthousand=8240,t.peseta=8359,t.pfsquare=13194,t.phabengali=2475,t.phadeva=2347,t.phagujarati=2731,t.phagurmukhi=2603,t.phi=966,t.phi1=981,t.phieuphacirclekorean=12922,t.phieuphaparenkorean=12826,t.phieuphcirclekorean=12908,t.phieuphkorean=12621,t.phieuphparenkorean=12812,t.philatin=632,t.phinthuthai=3642,t.phisymbolgreek=981,t.phook=421,t.phophanthai=3614,t.phophungthai=3612,t.phosamphaothai=3616,t.pi=960,t.pieupacirclekorean=12915,t.pieupaparenkorean=12819,t.pieupcieuckorean=12662,t.pieupcirclekorean=12901,t.pieupkiyeokkorean=12658,t.pieupkorean=12610,t.pieupparenkorean=12805,t.pieupsioskiyeokkorean=12660,t.pieupsioskorean=12612,t.pieupsiostikeutkorean=12661,t.pieupthieuthkorean=12663,t.pieuptikeutkorean=12659,t.pihiragana=12404,t.pikatakana=12500,t.pisymbolgreek=982,t.piwrarmenian=1411,t.planckover2pi=8463,t.planckover2pi1=8463,t.plus=43,t.plusbelowcmb=799,t.pluscircle=8853,t.plusminus=177,t.plusmod=726,t.plusmonospace=65291,t.plussmall=65122,t.plussuperior=8314,t.pmonospace=65360,t.pmsquare=13272,t.pohiragana=12413,t.pointingindexdownwhite=9759,t.pointingindexleftwhite=9756,t.pointingindexrightwhite=9758,t.pointingindexupwhite=9757,t.pokatakana=12509,t.poplathai=3611,t.postalmark=12306,t.postalmarkface=12320,t.pparen=9387,t.precedes=8826,t.prescription=8478,t.primemod=697,t.primereversed=8245,t.product=8719,t.projective=8965,t.prolongedkana=12540,t.propellor=8984,t.propersubset=8834,t.propersuperset=8835,t.proportion=8759,t.proportional=8733,t.psi=968,t.psicyrillic=1137,t.psilipneumatacyrilliccmb=1158,t.pssquare=13232,t.puhiragana=12407,t.pukatakana=12503,t.pvsquare=13236,t.pwsquare=13242,t.q=113,t.qadeva=2392,t.qadmahebrew=1448,t.qafarabic=1602,t.qaffinalarabic=65238,t.qafinitialarabic=65239,t.qafmedialarabic=65240,t.qamats=1464,t.qamats10=1464,t.qamats1a=1464,t.qamats1c=1464,t.qamats27=1464,t.qamats29=1464,t.qamats33=1464,t.qamatsde=1464,t.qamatshebrew=1464,t.qamatsnarrowhebrew=1464,t.qamatsqatanhebrew=1464,t.qamatsqatannarrowhebrew=1464,t.qamatsqatanquarterhebrew=1464,t.qamatsqatanwidehebrew=1464,t.qamatsquarterhebrew=1464,t.qamatswidehebrew=1464,t.qarneyparahebrew=1439,t.qbopomofo=12561,t.qcircle=9440,t.qhook=672,t.qmonospace=65361,t.qof=1511,t.qofdagesh=64327,t.qofdageshhebrew=64327,t.qofhebrew=1511,t.qparen=9388,t.quarternote=9833,t.qubuts=1467,t.qubuts18=1467,t.qubuts25=1467,t.qubuts31=1467,t.qubutshebrew=1467,t.qubutsnarrowhebrew=1467,t.qubutsquarterhebrew=1467,t.qubutswidehebrew=1467,t.question=63,t.questionarabic=1567,t.questionarmenian=1374,t.questiondown=191,t.questiondownsmall=63423,t.questiongreek=894,t.questionmonospace=65311,t.questionsmall=63295,t.quotedbl=34,t.quotedblbase=8222,t.quotedblleft=8220,t.quotedblmonospace=65282,t.quotedblprime=12318,t.quotedblprimereversed=12317,t.quotedblright=8221,t.quoteleft=8216,t.quoteleftreversed=8219,t.quotereversed=8219,t.quoteright=8217,t.quoterightn=329,t.quotesinglbase=8218,t.quotesingle=39,t.quotesinglemonospace=65287,t.r=114,t.raarmenian=1404,t.rabengali=2480,t.racute=341,t.radeva=2352,t.radical=8730,t.radicalex=63717,t.radoverssquare=13230,t.radoverssquaredsquare=13231,t.radsquare=13229,t.rafe=1471,t.rafehebrew=1471,t.ragujarati=2736,t.ragurmukhi=2608,t.rahiragana=12425,t.rakatakana=12521,t.rakatakanahalfwidth=65431,t.ralowerdiagonalbengali=2545,t.ramiddlediagonalbengali=2544,t.ramshorn=612,t.ratio=8758,t.rbopomofo=12566,t.rcaron=345,t.rcedilla=343,t.rcircle=9441,t.rcommaaccent=343,t.rdblgrave=529,t.rdotaccent=7769,t.rdotbelow=7771,t.rdotbelowmacron=7773,t.referencemark=8251,t.reflexsubset=8838,t.reflexsuperset=8839,t.registered=174,t.registersans=63720,t.registerserif=63194,t.reharabic=1585,t.reharmenian=1408,t.rehfinalarabic=65198,t.rehiragana=12428,t.rekatakana=12524,t.rekatakanahalfwidth=65434,t.resh=1512,t.reshdageshhebrew=64328,t.reshhebrew=1512,t.reversedtilde=8765,t.reviahebrew=1431,t.reviamugrashhebrew=1431,t.revlogicalnot=8976,t.rfishhook=638,t.rfishhookreversed=639,t.rhabengali=2525,t.rhadeva=2397,t.rho=961,t.rhook=637,t.rhookturned=635,t.rhookturnedsuperior=693,t.rhosymbolgreek=1009,t.rhotichookmod=734,t.rieulacirclekorean=12913,t.rieulaparenkorean=12817,t.rieulcirclekorean=12899,t.rieulhieuhkorean=12608,t.rieulkiyeokkorean=12602,t.rieulkiyeoksioskorean=12649,t.rieulkorean=12601,t.rieulmieumkorean=12603,t.rieulpansioskorean=12652,t.rieulparenkorean=12803,t.rieulphieuphkorean=12607,t.rieulpieupkorean=12604,t.rieulpieupsioskorean=12651,t.rieulsioskorean=12605,t.rieulthieuthkorean=12606,t.rieultikeutkorean=12650,t.rieulyeorinhieuhkorean=12653,t.rightangle=8735,t.righttackbelowcmb=793,t.righttriangle=8895,t.rihiragana=12426,t.rikatakana=12522,t.rikatakanahalfwidth=65432,t.ring=730,t.ringbelowcmb=805,t.ringcmb=778,t.ringhalfleft=703,t.ringhalfleftarmenian=1369,t.ringhalfleftbelowcmb=796,t.ringhalfleftcentered=723,t.ringhalfright=702,t.ringhalfrightbelowcmb=825,t.ringhalfrightcentered=722,t.rinvertedbreve=531,t.rittorusquare=13137,t.rlinebelow=7775,t.rlongleg=636,t.rlonglegturned=634,t.rmonospace=65362,t.rohiragana=12429,t.rokatakana=12525,t.rokatakanahalfwidth=65435,t.roruathai=3619,t.rparen=9389,t.rrabengali=2524,t.rradeva=2353,t.rragurmukhi=2652,t.rreharabic=1681,t.rrehfinalarabic=64397,t.rrvocalicbengali=2528,t.rrvocalicdeva=2400,t.rrvocalicgujarati=2784,t.rrvocalicvowelsignbengali=2500,t.rrvocalicvowelsigndeva=2372,t.rrvocalicvowelsigngujarati=2756,t.rsuperior=63217,t.rtblock=9616,t.rturned=633,t.rturnedsuperior=692,t.ruhiragana=12427,t.rukatakana=12523,t.rukatakanahalfwidth=65433,t.rupeemarkbengali=2546,t.rupeesignbengali=2547,t.rupiah=63197,t.ruthai=3620,t.rvocalicbengali=2443,t.rvocalicdeva=2315,t.rvocalicgujarati=2699,t.rvocalicvowelsignbengali=2499,t.rvocalicvowelsigndeva=2371,t.rvocalicvowelsigngujarati=2755,t.s=115,t.sabengali=2488,t.sacute=347,t.sacutedotaccent=7781,t.sadarabic=1589,t.sadeva=2360,t.sadfinalarabic=65210,t.sadinitialarabic=65211,t.sadmedialarabic=65212,t.sagujarati=2744,t.sagurmukhi=2616,t.sahiragana=12373,t.sakatakana=12469,t.sakatakanahalfwidth=65403,t.sallallahoualayhewasallamarabic=65018,t.samekh=1505,t.samekhdagesh=64321,t.samekhdageshhebrew=64321,t.samekhhebrew=1505,t.saraaathai=3634,t.saraaethai=3649,t.saraaimaimalaithai=3652,t.saraaimaimuanthai=3651,t.saraamthai=3635,t.saraathai=3632,t.saraethai=3648,t.saraiileftthai=63622,t.saraiithai=3637,t.saraileftthai=63621,t.saraithai=3636,t.saraothai=3650,t.saraueeleftthai=63624,t.saraueethai=3639,t.saraueleftthai=63623,t.sarauethai=3638,t.sarauthai=3640,t.sarauuthai=3641,t.sbopomofo=12569,t.scaron=353,t.scarondotaccent=7783,t.scedilla=351,t.schwa=601,t.schwacyrillic=1241,t.schwadieresiscyrillic=1243,t.schwahook=602,t.scircle=9442,t.scircumflex=349,t.scommaaccent=537,t.sdotaccent=7777,t.sdotbelow=7779,t.sdotbelowdotaccent=7785,t.seagullbelowcmb=828,t.second=8243,t.secondtonechinese=714,t.section=167,t.seenarabic=1587,t.seenfinalarabic=65202,t.seeninitialarabic=65203,t.seenmedialarabic=65204,t.segol=1462,t.segol13=1462,t.segol1f=1462,t.segol2c=1462,t.segolhebrew=1462,t.segolnarrowhebrew=1462,t.segolquarterhebrew=1462,t.segoltahebrew=1426,t.segolwidehebrew=1462,t.seharmenian=1405,t.sehiragana=12379,t.sekatakana=12475,t.sekatakanahalfwidth=65406,t.semicolon=59,t.semicolonarabic=1563,t.semicolonmonospace=65307,t.semicolonsmall=65108,t.semivoicedmarkkana=12444,t.semivoicedmarkkanahalfwidth=65439,t.sentisquare=13090,t.sentosquare=13091,t.seven=55,t.sevenarabic=1639,t.sevenbengali=2541,t.sevencircle=9318,t.sevencircleinversesansserif=10128,t.sevendeva=2413,t.seveneighths=8542,t.sevengujarati=2797,t.sevengurmukhi=2669,t.sevenhackarabic=1639,t.sevenhangzhou=12327,t.sevenideographicparen=12838,t.seveninferior=8327,t.sevenmonospace=65303,t.sevenoldstyle=63287,t.sevenparen=9338,t.sevenperiod=9358,t.sevenpersian=1783,t.sevenroman=8566,t.sevensuperior=8311,t.seventeencircle=9328,t.seventeenparen=9348,t.seventeenperiod=9368,t.seventhai=3671,t.sfthyphen=173,t.shaarmenian=1399,t.shabengali=2486,t.shacyrillic=1096,t.shaddaarabic=1617,t.shaddadammaarabic=64609,t.shaddadammatanarabic=64606,t.shaddafathaarabic=64608,t.shaddakasraarabic=64610,t.shaddakasratanarabic=64607,t.shade=9618,t.shadedark=9619,t.shadelight=9617,t.shademedium=9618,t.shadeva=2358,t.shagujarati=2742,t.shagurmukhi=2614,t.shalshelethebrew=1427,t.shbopomofo=12565,t.shchacyrillic=1097,t.sheenarabic=1588,t.sheenfinalarabic=65206,t.sheeninitialarabic=65207,t.sheenmedialarabic=65208,t.sheicoptic=995,t.sheqel=8362,t.sheqelhebrew=8362,t.sheva=1456,t.sheva115=1456,t.sheva15=1456,t.sheva22=1456,t.sheva2e=1456,t.shevahebrew=1456,t.shevanarrowhebrew=1456,t.shevaquarterhebrew=1456,t.shevawidehebrew=1456,t.shhacyrillic=1211,t.shimacoptic=1005,t.shin=1513,t.shindagesh=64329,t.shindageshhebrew=64329,t.shindageshshindot=64300,t.shindageshshindothebrew=64300,t.shindageshsindot=64301,t.shindageshsindothebrew=64301,t.shindothebrew=1473,t.shinhebrew=1513,t.shinshindot=64298,t.shinshindothebrew=64298,t.shinsindot=64299,t.shinsindothebrew=64299,t.shook=642,t.sigma=963,t.sigma1=962,t.sigmafinal=962,t.sigmalunatesymbolgreek=1010,t.sihiragana=12375,t.sikatakana=12471,t.sikatakanahalfwidth=65404,t.siluqhebrew=1469,t.siluqlefthebrew=1469,t.similar=8764,t.sindothebrew=1474,t.siosacirclekorean=12916,t.siosaparenkorean=12820,t.sioscieuckorean=12670,t.sioscirclekorean=12902,t.sioskiyeokkorean=12666,t.sioskorean=12613,t.siosnieunkorean=12667,t.siosparenkorean=12806,t.siospieupkorean=12669,t.siostikeutkorean=12668,t.six=54,t.sixarabic=1638,t.sixbengali=2540,t.sixcircle=9317,t.sixcircleinversesansserif=10127,t.sixdeva=2412,t.sixgujarati=2796,t.sixgurmukhi=2668,t.sixhackarabic=1638,t.sixhangzhou=12326,t.sixideographicparen=12837,t.sixinferior=8326,t.sixmonospace=65302,t.sixoldstyle=63286,t.sixparen=9337,t.sixperiod=9357,t.sixpersian=1782,t.sixroman=8565,t.sixsuperior=8310,t.sixteencircle=9327,t.sixteencurrencydenominatorbengali=2553,t.sixteenparen=9347,t.sixteenperiod=9367,t.sixthai=3670,t.slash=47,t.slashmonospace=65295,t.slong=383,t.slongdotaccent=7835,t.smileface=9786,t.smonospace=65363,t.sofpasuqhebrew=1475,t.softhyphen=173,t.softsigncyrillic=1100,t.sohiragana=12381,t.sokatakana=12477,t.sokatakanahalfwidth=65407,t.soliduslongoverlaycmb=824,t.solidusshortoverlaycmb=823,t.sorusithai=3625,t.sosalathai=3624,t.sosothai=3595,t.sosuathai=3626,t.space=32,t.spacehackarabic=32,t.spade=9824,t.spadesuitblack=9824,t.spadesuitwhite=9828,t.sparen=9390,t.squarebelowcmb=827,t.squarecc=13252,t.squarecm=13213,t.squarediagonalcrosshatchfill=9641,t.squarehorizontalfill=9636,t.squarekg=13199,t.squarekm=13214,t.squarekmcapital=13262,t.squareln=13265,t.squarelog=13266,t.squaremg=13198,t.squaremil=13269,t.squaremm=13212,t.squaremsquared=13217,t.squareorthogonalcrosshatchfill=9638,t.squareupperlefttolowerrightfill=9639,t.squareupperrighttolowerleftfill=9640,t.squareverticalfill=9637,t.squarewhitewithsmallblack=9635,t.srsquare=13275,t.ssabengali=2487,t.ssadeva=2359,t.ssagujarati=2743,t.ssangcieuckorean=12617,t.ssanghieuhkorean=12677,t.ssangieungkorean=12672,t.ssangkiyeokkorean=12594,t.ssangnieunkorean=12645,t.ssangpieupkorean=12611,t.ssangsioskorean=12614,t.ssangtikeutkorean=12600,t.ssuperior=63218,t.sterling=163,t.sterlingmonospace=65505,t.strokelongoverlaycmb=822,t.strokeshortoverlaycmb=821,t.subset=8834,t.subsetnotequal=8842,t.subsetorequal=8838,t.succeeds=8827,t.suchthat=8715,t.suhiragana=12377,t.sukatakana=12473,t.sukatakanahalfwidth=65405,t.sukunarabic=1618,t.summation=8721,t.sun=9788,t.superset=8835,t.supersetnotequal=8843,t.supersetorequal=8839,t.svsquare=13276,t.syouwaerasquare=13180,t.t=116,t.tabengali=2468,t.tackdown=8868,t.tackleft=8867,t.tadeva=2340,t.tagujarati=2724,t.tagurmukhi=2596,t.taharabic=1591,t.tahfinalarabic=65218,t.tahinitialarabic=65219,t.tahiragana=12383,t.tahmedialarabic=65220,t.taisyouerasquare=13181,t.takatakana=12479,t.takatakanahalfwidth=65408,t.tatweelarabic=1600,t.tau=964,t.tav=1514,t.tavdages=64330,t.tavdagesh=64330,t.tavdageshhebrew=64330,t.tavhebrew=1514,t.tbar=359,t.tbopomofo=12554,t.tcaron=357,t.tccurl=680,t.tcedilla=355,t.tcheharabic=1670,t.tchehfinalarabic=64379,t.tchehinitialarabic=64380,t.tchehmedialarabic=64381,t.tcircle=9443,t.tcircumflexbelow=7793,t.tcommaaccent=355,t.tdieresis=7831,t.tdotaccent=7787,t.tdotbelow=7789,t.tecyrillic=1090,t.tedescendercyrillic=1197,t.teharabic=1578,t.tehfinalarabic=65174,t.tehhahinitialarabic=64674,t.tehhahisolatedarabic=64524,t.tehinitialarabic=65175,t.tehiragana=12390,t.tehjeeminitialarabic=64673,t.tehjeemisolatedarabic=64523,t.tehmarbutaarabic=1577,t.tehmarbutafinalarabic=65172,t.tehmedialarabic=65176,t.tehmeeminitialarabic=64676,t.tehmeemisolatedarabic=64526,t.tehnoonfinalarabic=64627,t.tekatakana=12486,t.tekatakanahalfwidth=65411,t.telephone=8481,t.telephoneblack=9742,t.telishagedolahebrew=1440,t.telishaqetanahebrew=1449,t.tencircle=9321,t.tenideographicparen=12841,t.tenparen=9341,t.tenperiod=9361,t.tenroman=8569,t.tesh=679,t.tet=1496,t.tetdagesh=64312,t.tetdageshhebrew=64312,t.tethebrew=1496,t.tetsecyrillic=1205,t.tevirhebrew=1435,t.tevirlefthebrew=1435,t.thabengali=2469,t.thadeva=2341,t.thagujarati=2725,t.thagurmukhi=2597,t.thalarabic=1584,t.thalfinalarabic=65196,t.thanthakhatlowleftthai=63640,t.thanthakhatlowrightthai=63639,t.thanthakhatthai=3660,t.thanthakhatupperleftthai=63638,t.theharabic=1579,t.thehfinalarabic=65178,t.thehinitialarabic=65179,t.thehmedialarabic=65180,t.thereexists=8707,t.therefore=8756,t.theta=952,t.theta1=977,t.thetasymbolgreek=977,t.thieuthacirclekorean=12921,t.thieuthaparenkorean=12825,t.thieuthcirclekorean=12907,t.thieuthkorean=12620,t.thieuthparenkorean=12811,t.thirteencircle=9324,t.thirteenparen=9344,t.thirteenperiod=9364,t.thonangmonthothai=3601,t.thook=429,t.thophuthaothai=3602,t.thorn=254,t.thothahanthai=3607,t.thothanthai=3600,t.thothongthai=3608,t.thothungthai=3606,t.thousandcyrillic=1154,t.thousandsseparatorarabic=1644,t.thousandsseparatorpersian=1644,t.three=51,t.threearabic=1635,t.threebengali=2537,t.threecircle=9314,t.threecircleinversesansserif=10124,t.threedeva=2409,t.threeeighths=8540,t.threegujarati=2793,t.threegurmukhi=2665,t.threehackarabic=1635,t.threehangzhou=12323,t.threeideographicparen=12834,t.threeinferior=8323,t.threemonospace=65299,t.threenumeratorbengali=2550,t.threeoldstyle=63283,t.threeparen=9334,t.threeperiod=9354,t.threepersian=1779,t.threequarters=190,t.threequartersemdash=63198,t.threeroman=8562,t.threesuperior=179,t.threethai=3667,t.thzsquare=13204,t.tihiragana=12385,t.tikatakana=12481,t.tikatakanahalfwidth=65409,t.tikeutacirclekorean=12912,t.tikeutaparenkorean=12816,t.tikeutcirclekorean=12898,t.tikeutkorean=12599,t.tikeutparenkorean=12802,t.tilde=732,t.tildebelowcmb=816,t.tildecmb=771,t.tildecomb=771,t.tildedoublecmb=864,t.tildeoperator=8764,t.tildeoverlaycmb=820,t.tildeverticalcmb=830,t.timescircle=8855,t.tipehahebrew=1430,t.tipehalefthebrew=1430,t.tippigurmukhi=2672,t.titlocyrilliccmb=1155,t.tiwnarmenian=1407,t.tlinebelow=7791,t.tmonospace=65364,t.toarmenian=1385,t.tohiragana=12392,t.tokatakana=12488,t.tokatakanahalfwidth=65412,t.tonebarextrahighmod=741,t.tonebarextralowmod=745,t.tonebarhighmod=742,t.tonebarlowmod=744,t.tonebarmidmod=743,t.tonefive=445,t.tonesix=389,t.tonetwo=424,t.tonos=900,t.tonsquare=13095,t.topatakthai=3599,t.tortoiseshellbracketleft=12308,t.tortoiseshellbracketleftsmall=65117,t.tortoiseshellbracketleftvertical=65081,t.tortoiseshellbracketright=12309,t.tortoiseshellbracketrightsmall=65118,t.tortoiseshellbracketrightvertical=65082,t.totaothai=3605,t.tpalatalhook=427,t.tparen=9391,t.trademark=8482,t.trademarksans=63722,t.trademarkserif=63195,t.tretroflexhook=648,t.triagdn=9660,t.triaglf=9668,t.triagrt=9658,t.triagup=9650,t.ts=678,t.tsadi=1510,t.tsadidagesh=64326,t.tsadidageshhebrew=64326,t.tsadihebrew=1510,t.tsecyrillic=1094,t.tsere=1461,t.tsere12=1461,t.tsere1e=1461,t.tsere2b=1461,t.tserehebrew=1461,t.tserenarrowhebrew=1461,t.tserequarterhebrew=1461,t.tserewidehebrew=1461,t.tshecyrillic=1115,t.tsuperior=63219,t.ttabengali=2463,t.ttadeva=2335,t.ttagujarati=2719,t.ttagurmukhi=2591,t.tteharabic=1657,t.ttehfinalarabic=64359,t.ttehinitialarabic=64360,t.ttehmedialarabic=64361,t.tthabengali=2464,t.tthadeva=2336,t.tthagujarati=2720,t.tthagurmukhi=2592,t.tturned=647,t.tuhiragana=12388,t.tukatakana=12484,t.tukatakanahalfwidth=65410,t.tusmallhiragana=12387,t.tusmallkatakana=12483,t.tusmallkatakanahalfwidth=65391,t.twelvecircle=9323,t.twelveparen=9343,t.twelveperiod=9363,t.twelveroman=8571,t.twentycircle=9331,t.twentyhangzhou=21316,t.twentyparen=9351,t.twentyperiod=9371,t.two=50,t.twoarabic=1634,t.twobengali=2536,t.twocircle=9313,t.twocircleinversesansserif=10123,t.twodeva=2408,t.twodotenleader=8229,t.twodotleader=8229,t.twodotleadervertical=65072,t.twogujarati=2792,t.twogurmukhi=2664,t.twohackarabic=1634,t.twohangzhou=12322,t.twoideographicparen=12833,t.twoinferior=8322,t.twomonospace=65298,t.twonumeratorbengali=2549,t.twooldstyle=63282,t.twoparen=9333,t.twoperiod=9353,t.twopersian=1778,t.tworoman=8561,t.twostroke=443,t.twosuperior=178,t.twothai=3666,t.twothirds=8532,t.u=117,t.uacute=250,t.ubar=649,t.ubengali=2441,t.ubopomofo=12584,t.ubreve=365,t.ucaron=468,t.ucircle=9444,t.ucircumflex=251,t.ucircumflexbelow=7799,t.ucyrillic=1091,t.udattadeva=2385,t.udblacute=369,t.udblgrave=533,t.udeva=2313,t.udieresis=252,t.udieresisacute=472,t.udieresisbelow=7795,t.udieresiscaron=474,t.udieresiscyrillic=1265,t.udieresisgrave=476,t.udieresismacron=470,t.udotbelow=7909,t.ugrave=249,t.ugujarati=2697,t.ugurmukhi=2569,t.uhiragana=12358,t.uhookabove=7911,t.uhorn=432,t.uhornacute=7913,t.uhorndotbelow=7921,t.uhorngrave=7915,t.uhornhookabove=7917,t.uhorntilde=7919,t.uhungarumlaut=369,t.uhungarumlautcyrillic=1267,t.uinvertedbreve=535,t.ukatakana=12454,t.ukatakanahalfwidth=65395,t.ukcyrillic=1145,t.ukorean=12636,t.umacron=363,t.umacroncyrillic=1263,t.umacrondieresis=7803,t.umatragurmukhi=2625,t.umonospace=65365,t.underscore=95,t.underscoredbl=8215,t.underscoremonospace=65343,t.underscorevertical=65075,t.underscorewavy=65103,t.union=8746,t.universal=8704,t.uogonek=371,t.uparen=9392,t.upblock=9600,t.upperdothebrew=1476,t.upsilon=965,t.upsilondieresis=971,t.upsilondieresistonos=944,t.upsilonlatin=650,t.upsilontonos=973,t.uptackbelowcmb=797,t.uptackmod=724,t.uragurmukhi=2675,t.uring=367,t.ushortcyrillic=1118,t.usmallhiragana=12357,t.usmallkatakana=12453,t.usmallkatakanahalfwidth=65385,t.ustraightcyrillic=1199,t.ustraightstrokecyrillic=1201,t.utilde=361,t.utildeacute=7801,t.utildebelow=7797,t.uubengali=2442,t.uudeva=2314,t.uugujarati=2698,t.uugurmukhi=2570,t.uumatragurmukhi=2626,t.uuvowelsignbengali=2498,t.uuvowelsigndeva=2370,t.uuvowelsigngujarati=2754,t.uvowelsignbengali=2497,t.uvowelsigndeva=2369,t.uvowelsigngujarati=2753,t.v=118,t.vadeva=2357,t.vagujarati=2741,t.vagurmukhi=2613,t.vakatakana=12535,t.vav=1493,t.vavdagesh=64309,t.vavdagesh65=64309,t.vavdageshhebrew=64309,t.vavhebrew=1493,t.vavholam=64331,t.vavholamhebrew=64331,t.vavvavhebrew=1520,t.vavyodhebrew=1521,t.vcircle=9445,t.vdotbelow=7807,t.vecyrillic=1074,t.veharabic=1700,t.vehfinalarabic=64363,t.vehinitialarabic=64364,t.vehmedialarabic=64365,t.vekatakana=12537,t.venus=9792,t.verticalbar=124,t.verticallineabovecmb=781,t.verticallinebelowcmb=809,t.verticallinelowmod=716,t.verticallinemod=712,t.vewarmenian=1406,t.vhook=651,t.vikatakana=12536,t.viramabengali=2509,t.viramadeva=2381,t.viramagujarati=2765,t.visargabengali=2435,t.visargadeva=2307,t.visargagujarati=2691,t.vmonospace=65366,t.voarmenian=1400,t.voicediterationhiragana=12446,t.voicediterationkatakana=12542,t.voicedmarkkana=12443,t.voicedmarkkanahalfwidth=65438,t.vokatakana=12538,t.vparen=9393,t.vtilde=7805,t.vturned=652,t.vuhiragana=12436,t.vukatakana=12532,t.w=119,t.wacute=7811,t.waekorean=12633,t.wahiragana=12431,t.wakatakana=12527,t.wakatakanahalfwidth=65436,t.wakorean=12632,t.wasmallhiragana=12430,t.wasmallkatakana=12526,t.wattosquare=13143,t.wavedash=12316,t.wavyunderscorevertical=65076,t.wawarabic=1608,t.wawfinalarabic=65262,t.wawhamzaabovearabic=1572,t.wawhamzaabovefinalarabic=65158,t.wbsquare=13277,t.wcircle=9446,t.wcircumflex=373,t.wdieresis=7813,t.wdotaccent=7815,t.wdotbelow=7817,t.wehiragana=12433,t.weierstrass=8472,t.wekatakana=12529,t.wekorean=12638,t.weokorean=12637,t.wgrave=7809,t.whitebullet=9702,t.whitecircle=9675,t.whitecircleinverse=9689,t.whitecornerbracketleft=12302,t.whitecornerbracketleftvertical=65091,t.whitecornerbracketright=12303,t.whitecornerbracketrightvertical=65092,t.whitediamond=9671,t.whitediamondcontainingblacksmalldiamond=9672,t.whitedownpointingsmalltriangle=9663,t.whitedownpointingtriangle=9661,t.whiteleftpointingsmalltriangle=9667,t.whiteleftpointingtriangle=9665,t.whitelenticularbracketleft=12310,t.whitelenticularbracketright=12311,t.whiterightpointingsmalltriangle=9657,t.whiterightpointingtriangle=9655,t.whitesmallsquare=9643,t.whitesmilingface=9786,t.whitesquare=9633,t.whitestar=9734,t.whitetelephone=9743,t.whitetortoiseshellbracketleft=12312,t.whitetortoiseshellbracketright=12313,t.whiteuppointingsmalltriangle=9653,t.whiteuppointingtriangle=9651,t.wihiragana=12432,t.wikatakana=12528,t.wikorean=12639,t.wmonospace=65367,t.wohiragana=12434,t.wokatakana=12530,t.wokatakanahalfwidth=65382,t.won=8361,t.wonmonospace=65510,t.wowaenthai=3623,t.wparen=9394,t.wring=7832,t.wsuperior=695,t.wturned=653,t.wynn=447,t.x=120,t.xabovecmb=829,t.xbopomofo=12562,t.xcircle=9447,t.xdieresis=7821,t.xdotaccent=7819,t.xeharmenian=1389,t.xi=958,t.xmonospace=65368,t.xparen=9395,t.xsuperior=739,t.y=121,t.yaadosquare=13134,t.yabengali=2479,t.yacute=253,t.yadeva=2351,t.yaekorean=12626,t.yagujarati=2735,t.yagurmukhi=2607,t.yahiragana=12420,t.yakatakana=12516,t.yakatakanahalfwidth=65428,t.yakorean=12625,t.yamakkanthai=3662,t.yasmallhiragana=12419,t.yasmallkatakana=12515,t.yasmallkatakanahalfwidth=65388,t.yatcyrillic=1123,t.ycircle=9448,t.ycircumflex=375,t.ydieresis=255,t.ydotaccent=7823,t.ydotbelow=7925,t.yeharabic=1610,t.yehbarreearabic=1746,t.yehbarreefinalarabic=64431,t.yehfinalarabic=65266,t.yehhamzaabovearabic=1574,t.yehhamzaabovefinalarabic=65162,t.yehhamzaaboveinitialarabic=65163,t.yehhamzaabovemedialarabic=65164,t.yehinitialarabic=65267,t.yehmedialarabic=65268,t.yehmeeminitialarabic=64733,t.yehmeemisolatedarabic=64600,t.yehnoonfinalarabic=64660,t.yehthreedotsbelowarabic=1745,t.yekorean=12630,t.yen=165,t.yenmonospace=65509,t.yeokorean=12629,t.yeorinhieuhkorean=12678,t.yerahbenyomohebrew=1450,t.yerahbenyomolefthebrew=1450,t.yericyrillic=1099,t.yerudieresiscyrillic=1273,t.yesieungkorean=12673,t.yesieungpansioskorean=12675,t.yesieungsioskorean=12674,t.yetivhebrew=1434,t.ygrave=7923,t.yhook=436,t.yhookabove=7927,t.yiarmenian=1397,t.yicyrillic=1111,t.yikorean=12642,t.yinyang=9775,t.yiwnarmenian=1410,t.ymonospace=65369,t.yod=1497,t.yoddagesh=64313,t.yoddageshhebrew=64313,t.yodhebrew=1497,t.yodyodhebrew=1522,t.yodyodpatahhebrew=64287,t.yohiragana=12424,t.yoikorean=12681,t.yokatakana=12520,t.yokatakanahalfwidth=65430,t.yokorean=12635,t.yosmallhiragana=12423,t.yosmallkatakana=12519,t.yosmallkatakanahalfwidth=65390,t.yotgreek=1011,t.yoyaekorean=12680,t.yoyakorean=12679,t.yoyakthai=3618,t.yoyingthai=3597,t.yparen=9396,t.ypogegrammeni=890,t.ypogegrammenigreekcmb=837,t.yr=422,t.yring=7833,t.ysuperior=696,t.ytilde=7929,t.yturned=654,t.yuhiragana=12422,t.yuikorean=12684,t.yukatakana=12518,t.yukatakanahalfwidth=65429,t.yukorean=12640,t.yusbigcyrillic=1131,t.yusbigiotifiedcyrillic=1133,t.yuslittlecyrillic=1127,t.yuslittleiotifiedcyrillic=1129,t.yusmallhiragana=12421,t.yusmallkatakana=12517,t.yusmallkatakanahalfwidth=65389,t.yuyekorean=12683,t.yuyeokorean=12682,t.yyabengali=2527,t.yyadeva=2399,t.z=122,t.zaarmenian=1382,t.zacute=378,t.zadeva=2395,t.zagurmukhi=2651,t.zaharabic=1592,t.zahfinalarabic=65222,t.zahinitialarabic=65223,t.zahiragana=12374,t.zahmedialarabic=65224,t.zainarabic=1586,t.zainfinalarabic=65200,t.zakatakana=12470,t.zaqefgadolhebrew=1429,t.zaqefqatanhebrew=1428,t.zarqahebrew=1432,t.zayin=1494,t.zayindagesh=64310,t.zayindageshhebrew=64310,t.zayinhebrew=1494,t.zbopomofo=12567,t.zcaron=382,t.zcircle=9449,t.zcircumflex=7825,t.zcurl=657,t.zdot=380,t.zdotaccent=380,t.zdotbelow=7827,t.zecyrillic=1079,t.zedescendercyrillic=1177,t.zedieresiscyrillic=1247,t.zehiragana=12380,t.zekatakana=12476,t.zero=48,t.zeroarabic=1632,t.zerobengali=2534,t.zerodeva=2406,t.zerogujarati=2790,t.zerogurmukhi=2662,t.zerohackarabic=1632,t.zeroinferior=8320,t.zeromonospace=65296,t.zerooldstyle=63280,t.zeropersian=1776,t.zerosuperior=8304,t.zerothai=3664,t.zerowidthjoiner=65279,t.zerowidthnonjoiner=8204,t.zerowidthspace=8203,t.zeta=950,t.zhbopomofo=12563,t.zhearmenian=1386,t.zhebrevecyrillic=1218,t.zhecyrillic=1078,t.zhedescendercyrillic=1175,t.zhedieresiscyrillic=1245,t.zihiragana=12376,t.zikatakana=12472,t.zinorhebrew=1454,t.zlinebelow=7829,t.zmonospace=65370,t.zohiragana=12382,t.zokatakana=12478,t.zparen=9397,t.zretroflexhook=656,t.zstroke=438,t.zuhiragana=12378,t.zukatakana=12474,t[".notdef"]=0,t.angbracketleftbig=9001,t.angbracketleftBig=9001,t.angbracketleftbigg=9001,t.angbracketleftBigg=9001,t.angbracketrightBig=9002,t.angbracketrightbig=9002,t.angbracketrightBigg=9002,t.angbracketrightbigg=9002,t.arrowhookleft=8618,t.arrowhookright=8617,t.arrowlefttophalf=8636,t.arrowleftbothalf=8637,t.arrownortheast=8599,t.arrownorthwest=8598,t.arrowrighttophalf=8640,t.arrowrightbothalf=8641,t.arrowsoutheast=8600,t.arrowsouthwest=8601,t.backslashbig=8726,t.backslashBig=8726,t.backslashBigg=8726,t.backslashbigg=8726,t.bardbl=8214,t.bracehtipdownleft=65079,t.bracehtipdownright=65079,t.bracehtipupleft=65080,t.bracehtipupright=65080,t.braceleftBig=123,t.braceleftbig=123,t.braceleftbigg=123,t.braceleftBigg=123,t.bracerightBig=125,t.bracerightbig=125,t.bracerightbigg=125,t.bracerightBigg=125,t.bracketleftbig=91,t.bracketleftBig=91,t.bracketleftbigg=91,t.bracketleftBigg=91,t.bracketrightBig=93,t.bracketrightbig=93,t.bracketrightbigg=93,t.bracketrightBigg=93,t.ceilingleftbig=8968,t.ceilingleftBig=8968,t.ceilingleftBigg=8968,t.ceilingleftbigg=8968,t.ceilingrightbig=8969,t.ceilingrightBig=8969,t.ceilingrightbigg=8969,t.ceilingrightBigg=8969,t.circledotdisplay=8857,t.circledottext=8857,t.circlemultiplydisplay=8855,t.circlemultiplytext=8855,t.circleplusdisplay=8853,t.circleplustext=8853,t.contintegraldisplay=8750,t.contintegraltext=8750,t.coproductdisplay=8720,t.coproducttext=8720,t.floorleftBig=8970,t.floorleftbig=8970,t.floorleftbigg=8970,t.floorleftBigg=8970,t.floorrightbig=8971,t.floorrightBig=8971,t.floorrightBigg=8971,t.floorrightbigg=8971,t.hatwide=770,t.hatwider=770,t.hatwidest=770,t.intercal=7488,t.integraldisplay=8747,t.integraltext=8747,t.intersectiondisplay=8898,t.intersectiontext=8898,t.logicalanddisplay=8743,t.logicalandtext=8743,t.logicalordisplay=8744,t.logicalortext=8744,t.parenleftBig=40,t.parenleftbig=40,t.parenleftBigg=40,t.parenleftbigg=40,t.parenrightBig=41,t.parenrightbig=41,t.parenrightBigg=41,t.parenrightbigg=41,t.prime=8242,t.productdisplay=8719,t.producttext=8719,t.radicalbig=8730,t.radicalBig=8730,t.radicalBigg=8730,t.radicalbigg=8730,t.radicalbt=8730,t.radicaltp=8730,t.radicalvertex=8730,t.slashbig=47,t.slashBig=47,t.slashBigg=47,t.slashbigg=47,t.summationdisplay=8721,t.summationtext=8721,t.tildewide=732,t.tildewider=732,t.tildewidest=732,t.uniondisplay=8899,t.unionmultidisplay=8846,t.unionmultitext=8846,t.unionsqdisplay=8852,t.unionsqtext=8852,t.uniontext=8899,t.vextenddouble=8741,t.vextendsingle=8739}),aY=ec(function(t){t.space=32,t.a1=9985,t.a2=9986,t.a202=9987,t.a3=9988,t.a4=9742,t.a5=9990,t.a119=9991,t.a118=9992,t.a117=9993,t.a11=9755,t.a12=9758,t.a13=9996,t.a14=9997,t.a15=9998,t.a16=9999,t.a105=1e4,t.a17=10001,t.a18=10002,t.a19=10003,t.a20=10004,t.a21=10005,t.a22=10006,t.a23=10007,t.a24=10008,t.a25=10009,t.a26=10010,t.a27=10011,t.a28=10012,t.a6=10013,t.a7=10014,t.a8=10015,t.a9=10016,t.a10=10017,t.a29=10018,t.a30=10019,t.a31=10020,t.a32=10021,t.a33=10022,t.a34=10023,t.a35=9733,t.a36=10025,t.a37=10026,t.a38=10027,t.a39=10028,t.a40=10029,t.a41=10030,t.a42=10031,t.a43=10032,t.a44=10033,t.a45=10034,t.a46=10035,t.a47=10036,t.a48=10037,t.a49=10038,t.a50=10039,t.a51=10040,t.a52=10041,t.a53=10042,t.a54=10043,t.a55=10044,t.a56=10045,t.a57=10046,t.a58=10047,t.a59=10048,t.a60=10049,t.a61=10050,t.a62=10051,t.a63=10052,t.a64=10053,t.a65=10054,t.a66=10055,t.a67=10056,t.a68=10057,t.a69=10058,t.a70=10059,t.a71=9679,t.a72=10061,t.a73=9632,t.a74=10063,t.a203=10064,t.a75=10065,t.a204=10066,t.a76=9650,t.a77=9660,t.a78=9670,t.a79=10070,t.a81=9687,t.a82=10072,t.a83=10073,t.a84=10074,t.a97=10075,t.a98=10076,t.a99=10077,t.a100=10078,t.a101=10081,t.a102=10082,t.a103=10083,t.a104=10084,t.a106=10085,t.a107=10086,t.a108=10087,t.a112=9827,t.a111=9830,t.a110=9829,t.a109=9824,t.a120=9312,t.a121=9313,t.a122=9314,t.a123=9315,t.a124=9316,t.a125=9317,t.a126=9318,t.a127=9319,t.a128=9320,t.a129=9321,t.a130=10102,t.a131=10103,t.a132=10104,t.a133=10105,t.a134=10106,t.a135=10107,t.a136=10108,t.a137=10109,t.a138=10110,t.a139=10111,t.a140=10112,t.a141=10113,t.a142=10114,t.a143=10115,t.a144=10116,t.a145=10117,t.a146=10118,t.a147=10119,t.a148=10120,t.a149=10121,t.a150=10122,t.a151=10123,t.a152=10124,t.a153=10125,t.a154=10126,t.a155=10127,t.a156=10128,t.a157=10129,t.a158=10130,t.a159=10131,t.a160=10132,t.a161=8594,t.a163=8596,t.a164=8597,t.a196=10136,t.a165=10137,t.a192=10138,t.a166=10139,t.a167=10140,t.a168=10141,t.a169=10142,t.a170=10143,t.a171=10144,t.a172=10145,t.a173=10146,t.a162=10147,t.a174=10148,t.a175=10149,t.a176=10150,t.a177=10151,t.a178=10152,t.a179=10153,t.a193=10154,t.a180=10155,t.a199=10156,t.a181=10157,t.a200=10158,t.a182=10159,t.a201=10161,t.a183=10162,t.a184=10163,t.a197=10164,t.a185=10165,t.a194=10166,t.a198=10167,t.a186=10168,t.a195=10169,t.a187=10170,t.a188=10171,t.a189=10172,t.a190=10173,t.a191=10174,t.a89=10088,t.a90=10089,t.a93=10090,t.a94=10091,t.a91=10092,t.a92=10093,t.a205=10094,t.a85=10095,t.a206=10096,t.a86=10097,t.a87=10098,t.a88=10099,t.a95=10100,t.a96=10101,t[".notdef"]=0}),aJ=ec(function(t){t[63721]=169,t[63193]=169,t[63720]=174,t[63194]=174,t[63722]=8482,t[63195]=8482,t[63729]=9127,t[63730]=9128,t[63731]=9129,t[63740]=9131,t[63741]=9132,t[63742]=9133,t[63726]=9121,t[63727]=9122,t[63728]=9123,t[63737]=9124,t[63738]=9125,t[63739]=9126,t[63723]=9115,t[63724]=9116,t[63725]=9117,t[63734]=9118,t[63735]=9119,t[63736]=9120});function aZ(t,a){let i=a[t];if(void 0!==i)return i;if(!t)return -1;if("u"===t[0]){let a,r=t.length;if(7===r&&"n"===t[1]&&"i"===t[2])a=t.substring(3);else{if(!(r>=5&&r<=7))return -1;a=t.substring(1)}if(a===a.toUpperCase()&&(i=parseInt(a,16))>=0)return i}return -1}let aQ=[[0,127],[128,255],[256,383],[384,591],[592,687,7424,7551,7552,7615],[688,767,42752,42783],[768,879,7616,7679],[880,1023],[11392,11519],[1024,1279,1280,1327,11744,11775,42560,42655],[1328,1423],[1424,1535],[42240,42559],[1536,1791,1872,1919],[1984,2047],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3584,3711],[3712,3839],[4256,4351,11520,11567],[6912,7039],[4352,4607],[7680,7935,11360,11391,42784,43007],[7936,8191],[8192,8303,11776,11903],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703,10224,10239,10496,10623,11008,11263],[8704,8959,10752,11007,10176,10223,10624,10751],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[12288,12351],[12352,12447],[12448,12543,12784,12799],[12544,12591,12704,12735],[12592,12687],[43072,43135],[12800,13055],[13056,13311],[44032,55215],[55296,57343],[67840,67871],[19968,40959,11904,12031,12032,12255,12272,12287,13312,19903,131072,173791,12688,12703],[57344,63743],[12736,12783,63744,64255,194560,195103],[64256,64335],[64336,65023],[65056,65071],[65040,65055],[65104,65135],[65136,65279],[65280,65519],[65520,65535],[3840,4095],[1792,1871],[1920,1983],[3456,3583],[4096,4255],[4608,4991,4992,5023,11648,11743],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[10240,10495],[40960,42127],[5888,5919,5920,5951,5952,5983,5984,6015],[66304,66351],[66352,66383],[66560,66639],[118784,119039,119040,119295,119296,119375],[119808,120831],[1044480,1048573],[65024,65039,917760,917999],[917504,917631],[6400,6479],[6480,6527],[6528,6623],[6656,6687],[11264,11359],[11568,11647],[19904,19967],[43008,43055],[65536,65663,65664,65791,65792,65855],[65856,65935],[66432,66463],[66464,66527],[66640,66687],[66688,66735],[67584,67647],[68096,68191],[119552,119647],[73728,74751,74752,74879],[119648,119679],[7040,7103],[7168,7247],[7248,7295],[43136,43231],[43264,43311],[43312,43359],[43520,43615],[65936,65999],[66e3,66047],[66208,66271,66176,66207,67872,67903],[127024,127135,126976,127023]],a1=RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),a0=new Map,a2=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function a9(t,a){if(void 0!==a[t])return t;let i=aZ(t,a);if(-1!==i){for(let t in a)if(a[t]===i)return t}return d("Unable to recover a standard glyph name for: "+t),t}function a5(t,a,i){let r,s,n,l,o=Object.create(null),c=!!(4&t.flags);if(t.isInternalFont)for(s=0,n=a;s<n.length;s++)r=i.indexOf(n[s]),o[s]=r>=0?r:0;else if(t.baseEncodingName)for(s=0,n=aX(t.baseEncodingName);s<n.length;s++)r=i.indexOf(n[s]),o[s]=r>=0?r:0;else if(c)for(s in a)o[s]=a[s];else for(s=0,n=az;s<n.length;s++)r=i.indexOf(n[s]),o[s]=r>=0?r:0;let h=t.differences;if(h)for(s in h){let t=h[s];if(-1===(r=i.indexOf(t))){l||(l=aK());let a=a9(t,l);a!==t&&(r=i.indexOf(a))}o[s]=r>=0?r:0}return o}function a3(t){return t.replaceAll(/[,_]/g,"-").replaceAll(/\s/g,"")}let a6=ec(t=>{t[8211]=65074,t[8212]=65073,t[8229]=65072,t[8230]=65049,t[12289]=65041,t[12290]=65042,t[12296]=65087,t[12297]=65088,t[12298]=65085,t[12299]=65086,t[12300]=65089,t[12301]=65090,t[12302]=65091,t[12303]=65092,t[12304]=65083,t[12305]=65084,t[12308]=65081,t[12309]=65082,t[12310]=65047,t[12311]=65048,t[65103]=65076,t[65281]=65045,t[65288]=65077,t[65289]=65078,t[65292]=65040,t[65306]=65043,t[65307]=65044,t[65311]=65046,t[65339]=65095,t[65341]=65096,t[65343]=65075,t[65371]=65079,t[65373]=65080}),a7=[".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"],a8=[".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"],a4=[".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"],ie=[".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"],it=[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},{id:"return",min: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},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],ia=[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(t,a){t[a-2]=t[a-2]+t[a-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(t,a){t[a-2]=t[a-2]-t[a-1]}},{id:"div",min:2,stackDelta:-1,stackFn(t,a){t[a-2]=t[a-2]/t[a-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(t,a){t[a-1]=-t[a-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(t,a){t[a-2]=t[a-2]*t[a-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}];class ii{constructor(t,a,i){this.bytes=t.getBytes(),this.properties=a,this.seacAnalysisEnabled=!!i}parse(){let t,a,i=this.properties,r=new ir;this.cff=r;let s=this.parseHeader(),n=this.parseIndex(s.endPos),l=this.parseIndex(n.endPos),o=this.parseIndex(l.endPos),c=this.parseIndex(o.endPos),h=this.parseDict(l.obj.get(0)),u=this.createDict(iu,h,r.strings);r.header=s.obj,r.names=this.parseNameIndex(n.obj),r.strings=this.parseStringIndex(o.obj),r.topDict=u,r.globalSubrIndex=c.obj,this.parsePrivateDict(r.topDict),r.isCIDFont=u.hasName("ROS");let d=u.getByName("CharStrings"),f=this.parseIndex(d).obj;r.charStringCount=f.count;let g=u.getByName("FontMatrix");g&&(i.fontMatrix=g);let p=u.getByName("FontBBox");if(p&&(i.ascent=Math.max(p[3],p[1]),i.descent=Math.min(p[1],p[3]),i.ascentScaled=!0),r.isCIDFont){let i=this.parseIndex(u.getByName("FDArray")).obj;for(let t=0,a=i.count;t<a;++t){let a=i.get(t),s=this.createDict(iu,this.parseDict(a),r.strings);this.parsePrivateDict(s),r.fdArray.push(s)}a=null,t=this.parseCharsets(u.getByName("charset"),f.count,r.strings,!0),r.fdSelect=this.parseFDSelect(u.getByName("FDSelect"),f.count)}else t=this.parseCharsets(u.getByName("charset"),f.count,r.strings,!1),a=this.parseEncoding(u.getByName("Encoding"),i,r.strings,t.charset);r.charset=t,r.encoding=a;let m=this.parseCharStrings({charStrings:f,localSubrIndex:u.privateDict.subrsIndex,globalSubrIndex:c.obj,fdSelect:r.fdSelect,fdArray:r.fdArray,privateDict:u.privateDict});return r.charStrings=m.charStrings,r.seacs=m.seacs,r.widths=m.widths,r}parseHeader(){let t=this.bytes,a=t.length,i=0;for(;i<a&&1!==t[i];)++i;if(i>=a)throw new A("Invalid CFF header");0!==i&&(d("cff data is shifted"),t=t.subarray(i),this.bytes=t);let r=t[0],s=t[1],n=t[2];return{obj:new is(r,s,n,t[3]),endPos:n}}parseDict(t){let a=0,i=[],r=[];a=0;let s=t.length;for(;a<s;){let s=t[a];s<=21?(12===s&&(s=s<<8|t[++a]),r.push([s,i]),i=[],++a):i.push(function(){let i=t[a++];return 30===i?function(){let i="",r=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],s=t.length;for(;a<s;){let s=t[a++],n=s>>4,l=15&s;if(15===n||(i+=r[n],15===l))break;i+=r[l]}return parseFloat(i)}():28===i?(i=ex(t,a),a+=2,i):29===i?i=(i=(i=(i=t[a++])<<8|t[a++])<<8|t[a++])<<8|t[a++]:i>=32&&i<=246?i-139:i>=247&&i<=250?256*(i-247)+t[a++]+108:i>=251&&i<=254?-256*(i-251)-t[a++]-108:(f('CFFParser_parseDict: "'+i+'" is a reserved command.'),NaN)}())}return r}parseIndex(t){let a=new io,i=this.bytes,r=i[t++]<<8|i[t++],s=[],n,l,o=t;if(0!==r){let a=i[t++],c=t+(r+1)*a-1;for(n=0,l=r+1;n<l;++n){let r=0;for(let s=0;s<a;++s)r<<=8,r+=i[t++];s.push(c+r)}o=s[r]}for(n=0,l=s.length-1;n<l;++n){let t=s[n],r=s[n+1];a.add(i.subarray(t,r))}return{obj:a,endPos:o}}parseNameIndex(t){let a=[];for(let i=0,r=t.count;i<r;++i){let r=t.get(i);a.push(S(r))}return a}parseStringIndex(t){let a=new il;for(let i=0,r=t.count;i<r;++i){let r=t.get(i);a.add(S(r))}return a}createDict(t,a,i){let r=new t(i);for(let[t,i]of a)r.setByKey(t,i);return r}parseCharString(t,a,i,r){if(!a||t.callDepth>10)return!1;let s=t.stackSize,n=t.stack,l=a.length;for(let o=0;o<l;){let c=a[o++],h=null;if(12===c){let t=a[o++];0===t?(a[o-2]=139,a[o-1]=22,s=0):h=ia[t]}else if(28===c)n[s]=ex(a,o),o+=2,s++;else if(14===c){if(s>=4&&(s-=4,this.seacAnalysisEnabled))return t.seac=n.slice(s,s+4),!1;h=it[c]}else if(c>=32&&c<=246)n[s]=c-139,s++;else if(c>=247&&c<=254)n[s]=c<251?(c-247<<8)+a[o]+108:-(c-251<<8)-a[o]-108,o++,s++;else if(255===c)n[s]=(a[o]<<24|a[o+1]<<16|a[o+2]<<8|a[o+3])/65536,o+=4,s++;else if(19===c||20===c){if(t.hints+=s>>1,0===t.hints){a.copyWithin(o-1,o,-1),o-=1,l-=1;continue}o+=t.hints+7>>3,s%=2,h=it[c]}else{if(10===c||29===c){let a=10===c?i:r;if(!a)return f("Missing subrsIndex for "+(h=it[c]).id),!1;let l=32768;a.count<1240?l=107:a.count<33900&&(l=1131);let o=n[--s]+l;if(o<0||o>=a.count||isNaN(o))return f("Out of bounds subrIndex for "+(h=it[c]).id),!1;if(t.stackSize=s,t.callDepth++,!this.parseCharString(t,a.get(o),i,r))return!1;t.callDepth--,s=t.stackSize;continue}if(11===c)return t.stackSize=s,!0;if(0===c&&o===a.length)a[o-1]=14,h=it[14];else{if(9===c){a.copyWithin(o-1,o,-1),o-=1,l-=1;continue}h=it[c]}}if(h){if(h.stem&&(t.hints+=s>>1,3===c||23===c?t.hasVStems=!0:t.hasVStems&&(1===c||18===c)&&(f("CFF stem hints are in wrong order"),a[o-1]=1===c?3:23)),s<h.min){if(f("Not enough parameters for "+h.id+"; actual: "+s+", expected: "+h.min),0===s)return a[o-1]=14,!0;return!1}t.firstStackClearing&&h.stackClearing&&(t.firstStackClearing=!1,(s-=h.min)>=2&&h.stem?s%=2:s>1&&f("Found too many parameters for stack-clearing command"),s>0&&(t.width=n[s-1])),"stackDelta"in h?("stackFn"in h&&h.stackFn(n,s),s+=h.stackDelta):(h.stackClearing||h.resetStack)&&(s=0)}}return l<a.length&&a.fill(14,l),t.stackSize=s,!0}parseCharStrings({charStrings:t,localSubrIndex:a,globalSubrIndex:i,fdSelect:r,fdArray:s,privateDict:n}){let l=[],o=[],c=t.count;for(let h=0;h<c;h++){let c=t.get(h),u={callDepth:0,stackSize:0,stack:[],hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},d=!0,g=null,p=n;if(r&&s.length){let t=r.getFDIndex(h);-1===t&&(f("Glyph index is not in fd select."),d=!1),t>=s.length&&(f("Invalid fd index for glyph index."),d=!1),d&&(g=(p=s[t].privateDict).subrsIndex)}else a&&(g=a);if(d&&(d=this.parseCharString(u,c,g,i)),null!==u.width){let t=p.getByName("nominalWidthX");o[h]=t+u.width}else{let t=p.getByName("defaultWidthX");o[h]=t}null!==u.seac&&(l[h]=u.seac),d||t.set(h,new Uint8Array([14]))}return{charStrings:t,seacs:l,widths:o}}emptyPrivateDictionary(t){let a=this.createDict(ig,[],t.strings);t.setByKey(18,[0,0]),t.privateDict=a}parsePrivateDict(t){if(!t.hasName("Private"))return void this.emptyPrivateDictionary(t);let a=t.getByName("Private");if(!Array.isArray(a)||2!==a.length)return void t.removeByName("Private");let i=a[0],r=a[1];if(0===i||r>=this.bytes.length)return void this.emptyPrivateDictionary(t);let s=this.bytes.subarray(r,r+i),n=this.parseDict(s),l=this.createDict(ig,n,t.strings);if(t.privateDict=l,0===l.getByName("ExpansionFactor")&&l.setByName("ExpansionFactor",.06),!l.getByName("Subrs"))return;let o=l.getByName("Subrs"),c=r+o;0===o||c>=this.bytes.length?this.emptyPrivateDictionary(t):l.subrsIndex=this.parseIndex(c).obj}parseCharsets(t,a,i,r){let s,n,l;if(0===t)return new im(!0,ip.ISO_ADOBE,a7);if(1===t)return new im(!0,ip.EXPERT,a8);if(2===t)return new im(!0,ip.EXPERT_SUBSET,a4);let o=this.bytes,c=t,h=o[t++],u=[r?0:".notdef"];switch(a-=1,h){case 0:for(l=0;l<a;l++)s=o[t++]<<8|o[t++],u.push(r?s:i.get(s));break;case 1:for(;u.length<=a;)for(l=0,s=o[t++]<<8|o[t++],n=o[t++];l<=n;l++)u.push(r?s++:i.get(s++));break;case 2:for(;u.length<=a;)for(l=0,s=o[t++]<<8|o[t++],n=o[t++]<<8|o[t++];l<=n;l++)u.push(r?s++:i.get(s++));break;default:throw new A("Unknown charset format")}let d=t;return new im(!1,h,u,o.subarray(c,d))}parseEncoding(t,a,i,r){let s=Object.create(null),n=this.bytes,l,o,c,h=!1,u=null;if(0===t||1===t){h=!0,l=t;let a=t?aj:az;for(o=0,c=r.length;o<c;o++){let t=a.indexOf(r[o]);-1!==t&&(s[t]=o)}}else{let a=t;switch(127&(l=n[t++])){case 0:let c=n[t++];for(o=1;o<=c;o++)s[n[t++]]=o;break;case 1:let h=n[t++],d=1;for(o=0;o<h;o++){let a=n[t++],i=n[t++];for(let t=a;t<=a+i;t++)s[t]=d++}break;default:throw new A(`Unknown encoding format: ${l} in CFF`)}let f=t;if(128&l){n[a]&=127;let l=n[t++];for(o=0;o<l;o++){let a=n[t++],l=(n[t++]<<8)+(255&n[t++]);s[a]=r.indexOf(i.get(l))}}u=n.subarray(a,f)}return new ib(h,l&=127,s,u)}parseFDSelect(t,a){let i,r=this.bytes,s=r[t++],n=[];switch(s){case 0:for(i=0;i<a;++i){let a=r[t++];n.push(a)}break;case 3:let l=r[t++]<<8|r[t++];for(i=0;i<l;++i){let a=r[t++]<<8|r[t++];0===i&&0!==a&&(f("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),a=0);let s=r[t++],l=r[t]<<8|r[t+1];for(let t=a;t<l;++t)n.push(s)}t+=2;break;default:throw new A(`parseFDSelect: Unknown format "${s}".`)}if(n.length!==a)throw new A("parseFDSelect: Invalid font data.");return new iy(s,n)}}class ir{constructor(){this.header=null,this.names=[],this.topDict=null,this.strings=new il,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1,this.charStringCount=0}duplicateFirstGlyph(){if(this.charStrings.count>=65535)return void f("Not enough space in charstrings to duplicate first glyph.");let t=this.charStrings.get(0);this.charStrings.add(t),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(t){return!(t<0)&&!(t>=this.charStrings.count)&&this.charStrings.get(t).length>0}}class is{constructor(t,a,i,r){this.major=t,this.minor=a,this.hdrSize=i,this.offSize=r}}class il{constructor(){this.strings=[]}get(t){return t>=0&&t<=390?ie[t]:t-391<=this.strings.length?this.strings[t-391]:ie[0]}getSID(t){let a=ie.indexOf(t);return -1!==a?a:-1!==(a=this.strings.indexOf(t))?a+391:-1}add(t){this.strings.push(t)}get count(){return this.strings.length}}class io{constructor(){this.objects=[],this.length=0}add(t){this.length+=t.length,this.objects.push(t)}set(t,a){this.length+=a.length-this.objects[t].length,this.objects[t]=a}get(t){return this.objects[t]}get count(){return this.objects.length}}class ic{constructor(t,a){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=a,this.values=Object.create(null)}setByKey(t,a){if(!(t in this.keyToNameMap))return!1;if(0===a.length)return!0;for(let i of a)if(isNaN(i))return f(`Invalid CFFDict value: "${a}" for key "${t}".`),!0;let i=this.types[t];return"num"!==i&&"sid"!==i&&"offset"!==i||(a=a[0]),this.values[t]=a,!0}setByName(t,a){if(!(t in this.nameToKeyMap))throw new A(`Invalid dictionary name "${t}"`);this.values[this.nameToKeyMap[t]]=a}hasName(t){return this.nameToKeyMap[t]in this.values}getByName(t){if(!(t in this.nameToKeyMap))throw new A(`Invalid dictionary name ${t}"`);let a=this.nameToKeyMap[t];return a in this.values?this.values[a]:this.defaults[a]}removeByName(t){delete this.values[this.nameToKeyMap[t]]}static createTables(t){let a={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(let i of t){let t=Array.isArray(i[0])?(i[0][0]<<8)+i[0][1]:i[0];a.keyToNameMap[t]=i[1],a.nameToKeyMap[i[1]]=t,a.types[t]=i[2],a.defaults[t]=i[3],a.opcodes[t]=Array.isArray(i[0])?i[0]:[i[0]],a.order.push(t)}return a}}let ih=[[[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]];class iu extends ic{static get tables(){return b(this,"tables",this.createTables(ih))}constructor(t){super(iu.tables,t),this.privateDict=null}}let id=[[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]];class ig extends ic{static get tables(){return b(this,"tables",this.createTables(id))}constructor(t){super(ig.tables,t),this.subrsIndex=null}}let ip={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};class im{constructor(t,a,i,r){this.predefined=t,this.format=a,this.charset=i,this.raw=r}}class ib{constructor(t,a,i,r){this.predefined=t,this.format=a,this.encoding=i,this.raw=r}}class iy{constructor(t,a){this.format=t,this.fdSelect=a}getFDIndex(t){return t<0||t>=this.fdSelect.length?-1:this.fdSelect[t]}}class iw{constructor(){this.offsets=Object.create(null)}isTracking(t){return t in this.offsets}track(t,a){if(t in this.offsets)throw new A(`Already tracking location of ${t}`);this.offsets[t]=a}offset(t){for(let a in this.offsets)this.offsets[a]+=t}setEntryLocation(t,a,i){if(!(t in this.offsets))throw new A(`Not tracking location of ${t}`);let r=i.data,s=this.offsets[t];for(let t=0,i=a.length;t<i;++t){let i=5*t+s,n=i+1,l=i+2,o=i+3,c=i+4;if(29!==r[i]||0!==r[n]||0!==r[l]||0!==r[o]||0!==r[c])throw new A("writing to an offset that is not empty");let h=a[t];r[i]=29,r[n]=h>>24&255,r[l]=h>>16&255,r[o]=h>>8&255,r[c]=255&h}}}class ix{constructor(t){this.cff=t}compile(){let t=this.cff,a={data:[],length:0,add(t){try{this.data.push(...t)}catch{this.data=this.data.concat(t)}this.length=this.data.length}},i=this.compileHeader(t.header);a.add(i);let r=this.compileNameIndex(t.names);if(a.add(r),t.isCIDFont&&t.topDict.hasName("FontMatrix")){let a=t.topDict.getByName("FontMatrix");for(let i of(t.topDict.removeByName("FontMatrix"),t.fdArray)){let t=a.slice(0);i.hasName("FontMatrix")&&(t=R.transform(t,i.getByName("FontMatrix"))),i.setByName("FontMatrix",t)}}let s=t.topDict.getByName("XUID");s?.length>16&&t.topDict.removeByName("XUID"),t.topDict.setByName("charset",0);let n=this.compileTopDicts([t.topDict],a.length,t.isCIDFont);a.add(n.output);let l=n.trackers[0],o=this.compileStringIndex(t.strings.strings);a.add(o);let c=this.compileIndex(t.globalSubrIndex);if(a.add(c),t.encoding&&t.topDict.hasName("Encoding"))if(t.encoding.predefined)l.setEntryLocation("Encoding",[t.encoding.format],a);else{let i=this.compileEncoding(t.encoding);l.setEntryLocation("Encoding",[a.length],a),a.add(i)}let h=this.compileCharset(t.charset,t.charStrings.count,t.strings,t.isCIDFont);l.setEntryLocation("charset",[a.length],a),a.add(h);let u=this.compileCharStrings(t.charStrings);if(l.setEntryLocation("CharStrings",[a.length],a),a.add(u),t.isCIDFont){l.setEntryLocation("FDSelect",[a.length],a);let i=this.compileFDSelect(t.fdSelect);a.add(i),n=this.compileTopDicts(t.fdArray,a.length,!0),l.setEntryLocation("FDArray",[a.length],a),a.add(n.output);let r=n.trackers;this.compilePrivateDicts(t.fdArray,r,a)}return this.compilePrivateDicts([t.topDict],[l],a),a.add([0]),a.data}encodeNumber(t){return Number.isInteger(t)?this.encodeInteger(t):this.encodeFloat(t)}static get EncodeFloatRegExp(){return b(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(t){let a=t.toString(),i=ix.EncodeFloatRegExp.exec(a);if(i){let r=parseFloat("1e"+((i[2]?+i[2]:0)+i[1].length));a=(Math.round(t*r)/r).toString()}let r,s,n="";for(r=0,s=a.length;r<s;++r){let t=a[r];n+="e"===t?"-"===a[++r]?"c":"b":"."===t?"a":"-"===t?"e":t}n+=1&n.length?"f":"ff";let l=[30];for(r=0,s=n.length;r<s;r+=2)l.push(parseInt(n.substring(r,r+2),16));return l}encodeInteger(t){return t>=-107&&t<=107?[t+139]:t>=108&&t<=1131?[247+((t-=108)>>8),255&t]:t>=-1131&&t<=-108?[251+((t=-t-108)>>8),255&t]:t>=-32768&&t<=32767?[28,t>>8&255,255&t]:[29,t>>24&255,t>>16&255,t>>8&255,255&t]}compileHeader(t){return[t.major,t.minor,4,t.offSize]}compileNameIndex(t){let a=new io;for(let i of t){let t=Math.min(i.length,127),r=Array(t);for(let a=0;a<t;a++){let t=i[a];(t<"!"||t>"~"||"["===t||"]"===t||"("===t||")"===t||"{"===t||"}"===t||"<"===t||">"===t||"/"===t||"%"===t)&&(t="_"),r[a]=t}""===(r=r.join(""))&&(r="Bad_Font_Name"),a.add(I(r))}return this.compileIndex(a)}compileTopDicts(t,a,i){let r=[],s=new io;for(let n of t){i&&(n.removeByName("CIDFontVersion"),n.removeByName("CIDFontRevision"),n.removeByName("CIDFontType"),n.removeByName("CIDCount"),n.removeByName("UIDBase"));let t=new iw,l=this.compileDict(n,t);r.push(t),s.add(l),t.offset(a)}return s=this.compileIndex(s,r),{trackers:r,output:s}}compilePrivateDicts(t,a,i){for(let r=0,s=t.length;r<s;++r){let s=t[r],n=s.privateDict;if(!n||!s.hasName("Private"))throw new A("There must be a private dictionary.");let l=new iw,o=this.compileDict(n,l),c=i.length;if(l.offset(c),o.length||(c=0),a[r].setEntryLocation("Private",[o.length,c],i),i.add(o),n.subrsIndex&&n.hasName("Subrs")){let t=this.compileIndex(n.subrsIndex);l.setEntryLocation("Subrs",[o.length],i),i.add(t)}}}compileDict(t,a){let i=[];for(let r of t.order){if(!(r in t.values))continue;let s=t.values[r],n=t.types[r];if(Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]),0!==s.length){for(let l=0,o=n.length;l<o;++l){let o=n[l],c=s[l];switch(o){case"num":case"sid":i.push(...this.encodeNumber(c));break;case"offset":let h=t.keyToNameMap[r];a.isTracking(h)||a.track(h,i.length),i.push(29,0,0,0,0);break;case"array":case"delta":i.push(...this.encodeNumber(c));for(let t=1,a=s.length;t<a;++t)i.push(...this.encodeNumber(s[t]));break;default:throw new A(`Unknown data type of ${o}`)}}i.push(...t.opcodes[r])}}return i}compileStringIndex(t){let a=new io;for(let i of t)a.add(I(i));return this.compileIndex(a)}compileCharStrings(t){let a=new io;for(let i=0;i<t.count;i++){let r=t.get(i);0!==r.length?a.add(r):a.add(new Uint8Array([139,14]))}return this.compileIndex(a)}compileCharset(t,a,i,r){let s,n=a-1;if(r){let t=n-1;s=new Uint8Array([2,0,1,t>>8&255,255&t])}else{(s=new Uint8Array(1+2*n))[0]=0;let a=0,r=t.charset.length,l=!1;for(let n=1;n<s.length;n+=2){let o=0;if(a<r){let r=t.charset[a++];-1===(o=i.getSID(r))&&(o=0,l||(l=!0,f(`Couldn't find ${r} in CFF strings`)))}s[n]=o>>8&255,s[n+1]=255&o}}return this.compileTypedArray(s)}compileEncoding(t){return this.compileTypedArray(t.raw)}compileFDSelect(t){let a,i,r=t.format;switch(r){case 0:for(i=0,(a=new Uint8Array(1+t.fdSelect.length))[0]=r;i<t.fdSelect.length;i++)a[i+1]=t.fdSelect[i];break;case 3:let s=t.fdSelect[0],n=[r,0,0,0,0,s];for(i=1;i<t.fdSelect.length;i++){let a=t.fdSelect[i];a!==s&&(n.push(i>>8&255,255&i,a),s=a)}let l=(n.length-3)/3;n[1]=l>>8&255,n[2]=255&l,n.push(i>>8&255,255&i),a=new Uint8Array(n)}return this.compileTypedArray(a)}compileTypedArray(t){return Array.from(t)}compileIndex(t,a=[]){let i=t.objects,r=i.length;if(0===r)return[0,0];let s=[r>>8&255,255&r],n,l,o=1;for(n=0;n<r;++n)o+=i[n].length;s.push(l=o<256?1:o<65536?2:o<0x1000000?3:4);let c=1;for(n=0;n<r+1;n++)1===l?s.push(255&c):2===l?s.push(c>>8&255,255&c):3===l?s.push(c>>16&255,c>>8&255,255&c):s.push(c>>>24&255,c>>16&255,c>>8&255,255&c),i[n]&&(c+=i[n].length);for(n=0;n<r;n++)a[n]&&a[n].offset(s.length),s.push(...i[n]);return s}}let ik=ec(function(t){t["Times-Roman"]="Times-Roman",t.Helvetica="Helvetica",t.Courier="Courier",t.Symbol="Symbol",t["Times-Bold"]="Times-Bold",t["Helvetica-Bold"]="Helvetica-Bold",t["Courier-Bold"]="Courier-Bold",t.ZapfDingbats="ZapfDingbats",t["Times-Italic"]="Times-Italic",t["Helvetica-Oblique"]="Helvetica-Oblique",t["Courier-Oblique"]="Courier-Oblique",t["Times-BoldItalic"]="Times-BoldItalic",t["Helvetica-BoldOblique"]="Helvetica-BoldOblique",t["Courier-BoldOblique"]="Courier-BoldOblique",t.ArialNarrow="Helvetica",t["ArialNarrow-Bold"]="Helvetica-Bold",t["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",t["ArialNarrow-Italic"]="Helvetica-Oblique",t.ArialBlack="Helvetica",t["ArialBlack-Bold"]="Helvetica-Bold",t["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",t["ArialBlack-Italic"]="Helvetica-Oblique",t["Arial-Black"]="Helvetica",t["Arial-Black-Bold"]="Helvetica-Bold",t["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",t["Arial-Black-Italic"]="Helvetica-Oblique",t.Arial="Helvetica",t["Arial-Bold"]="Helvetica-Bold",t["Arial-BoldItalic"]="Helvetica-BoldOblique",t["Arial-Italic"]="Helvetica-Oblique",t.ArialMT="Helvetica",t["Arial-BoldItalicMT"]="Helvetica-BoldOblique",t["Arial-BoldMT"]="Helvetica-Bold",t["Arial-ItalicMT"]="Helvetica-Oblique",t["Arial-BoldItalicMT-BoldItalic"]="Helvetica-BoldOblique",t["Arial-BoldMT-Bold"]="Helvetica-Bold",t["Arial-ItalicMT-Italic"]="Helvetica-Oblique",t.ArialUnicodeMS="Helvetica",t["ArialUnicodeMS-Bold"]="Helvetica-Bold",t["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",t["ArialUnicodeMS-Italic"]="Helvetica-Oblique",t["Courier-BoldItalic"]="Courier-BoldOblique",t["Courier-Italic"]="Courier-Oblique",t.CourierNew="Courier",t["CourierNew-Bold"]="Courier-Bold",t["CourierNew-BoldItalic"]="Courier-BoldOblique",t["CourierNew-Italic"]="Courier-Oblique",t["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",t["CourierNewPS-BoldMT"]="Courier-Bold",t["CourierNewPS-ItalicMT"]="Courier-Oblique",t.CourierNewPSMT="Courier",t["Helvetica-BoldItalic"]="Helvetica-BoldOblique",t["Helvetica-Italic"]="Helvetica-Oblique",t["HelveticaLTStd-Bold"]="Helvetica-Bold",t["Symbol-Bold"]="Symbol",t["Symbol-BoldItalic"]="Symbol",t["Symbol-Italic"]="Symbol",t.TimesNewRoman="Times-Roman",t["TimesNewRoman-Bold"]="Times-Bold",t["TimesNewRoman-BoldItalic"]="Times-BoldItalic",t["TimesNewRoman-Italic"]="Times-Italic",t.TimesNewRomanPS="Times-Roman",t["TimesNewRomanPS-Bold"]="Times-Bold",t["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",t["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",t["TimesNewRomanPS-BoldMT"]="Times-Bold",t["TimesNewRomanPS-Italic"]="Times-Italic",t["TimesNewRomanPS-ItalicMT"]="Times-Italic",t.TimesNewRomanPSMT="Times-Roman",t["TimesNewRomanPSMT-Bold"]="Times-Bold",t["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",t["TimesNewRomanPSMT-Italic"]="Times-Italic"}),iv=ec(function(t){t.Courier="FoxitFixed.pfb",t["Courier-Bold"]="FoxitFixedBold.pfb",t["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",t["Courier-Oblique"]="FoxitFixedItalic.pfb",t.Helvetica="LiberationSans-Regular.ttf",t["Helvetica-Bold"]="LiberationSans-Bold.ttf",t["Helvetica-BoldOblique"]="LiberationSans-BoldItalic.ttf",t["Helvetica-Oblique"]="LiberationSans-Italic.ttf",t["Times-Roman"]="FoxitSerif.pfb",t["Times-Bold"]="FoxitSerifBold.pfb",t["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",t["Times-Italic"]="FoxitSerifItalic.pfb",t.Symbol="FoxitSymbol.pfb",t.ZapfDingbats="FoxitDingbats.pfb",t["LiberationSans-Regular"]="LiberationSans-Regular.ttf",t["LiberationSans-Bold"]="LiberationSans-Bold.ttf",t["LiberationSans-Italic"]="LiberationSans-Italic.ttf",t["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"}),iA=ec(function(t){t.Calibri="Helvetica",t["Calibri-Bold"]="Helvetica-Bold",t["Calibri-BoldItalic"]="Helvetica-BoldOblique",t["Calibri-Italic"]="Helvetica-Oblique",t.CenturyGothic="Helvetica",t["CenturyGothic-Bold"]="Helvetica-Bold",t["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",t["CenturyGothic-Italic"]="Helvetica-Oblique",t.ComicSansMS="Comic Sans MS",t["ComicSansMS-Bold"]="Comic Sans MS-Bold",t["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",t["ComicSansMS-Italic"]="Comic Sans MS-Italic",t.GillSansMT="Helvetica",t["GillSansMT-Bold"]="Helvetica-Bold",t["GillSansMT-BoldItalic"]="Helvetica-BoldOblique",t["GillSansMT-Italic"]="Helvetica-Oblique",t.Impact="Helvetica",t["ItcSymbol-Bold"]="Helvetica-Bold",t["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",t["ItcSymbol-Book"]="Helvetica",t["ItcSymbol-BookItalic"]="Helvetica-Oblique",t["ItcSymbol-Medium"]="Helvetica",t["ItcSymbol-MediumItalic"]="Helvetica-Oblique",t.LucidaConsole="Courier",t["LucidaConsole-Bold"]="Courier-Bold",t["LucidaConsole-BoldItalic"]="Courier-BoldOblique",t["LucidaConsole-Italic"]="Courier-Oblique",t["LucidaSans-Demi"]="Helvetica-Bold",t["MS-Gothic"]="MS Gothic",t["MS-Gothic-Bold"]="MS Gothic-Bold",t["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",t["MS-Gothic-Italic"]="MS Gothic-Italic",t["MS-Mincho"]="MS Mincho",t["MS-Mincho-Bold"]="MS Mincho-Bold",t["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",t["MS-Mincho-Italic"]="MS Mincho-Italic",t["MS-PGothic"]="MS PGothic",t["MS-PGothic-Bold"]="MS PGothic-Bold",t["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",t["MS-PGothic-Italic"]="MS PGothic-Italic",t["MS-PMincho"]="MS PMincho",t["MS-PMincho-Bold"]="MS PMincho-Bold",t["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",t["MS-PMincho-Italic"]="MS PMincho-Italic",t.NuptialScript="Times-Italic",t.SegoeUISymbol="Helvetica"}),iC=ec(function(t){t["Adobe Jenson"]=!0,t["Adobe Text"]=!0,t.Albertus=!0,t.Aldus=!0,t.Alexandria=!0,t.Algerian=!0,t["American Typewriter"]=!0,t.Antiqua=!0,t.Apex=!0,t.Arno=!0,t.Aster=!0,t.Aurora=!0,t.Baskerville=!0,t.Bell=!0,t.Bembo=!0,t["Bembo Schoolbook"]=!0,t.Benguiat=!0,t["Berkeley Old Style"]=!0,t["Bernhard Modern"]=!0,t["Berthold City"]=!0,t.Bodoni=!0,t["Bauer Bodoni"]=!0,t["Book Antiqua"]=!0,t.Bookman=!0,t["Bordeaux Roman"]=!0,t["Californian FB"]=!0,t.Calisto=!0,t.Calvert=!0,t.Capitals=!0,t.Cambria=!0,t.Cartier=!0,t.Caslon=!0,t.Catull=!0,t.Centaur=!0,t["Century Old Style"]=!0,t["Century Schoolbook"]=!0,t.Chaparral=!0,t["Charis SIL"]=!0,t.Cheltenham=!0,t["Cholla Slab"]=!0,t.Clarendon=!0,t.Clearface=!0,t.Cochin=!0,t.Colonna=!0,t["Computer Modern"]=!0,t["Concrete Roman"]=!0,t.Constantia=!0,t["Cooper Black"]=!0,t.Corona=!0,t.Ecotype=!0,t.Egyptienne=!0,t.Elephant=!0,t.Excelsior=!0,t.Fairfield=!0,t["FF Scala"]=!0,t.Folkard=!0,t.Footlight=!0,t.FreeSerif=!0,t["Friz Quadrata"]=!0,t.Garamond=!0,t.Gentium=!0,t.Georgia=!0,t.Gloucester=!0,t["Goudy Old Style"]=!0,t["Goudy Schoolbook"]=!0,t["Goudy Pro Font"]=!0,t.Granjon=!0,t["Guardian Egyptian"]=!0,t.Heather=!0,t.Hercules=!0,t["High Tower Text"]=!0,t.Hiroshige=!0,t["Hoefler Text"]=!0,t["Humana Serif"]=!0,t.Imprint=!0,t["Ionic No. 5"]=!0,t.Janson=!0,t.Joanna=!0,t.Korinna=!0,t.Lexicon=!0,t.LiberationSerif=!0,t["Liberation Serif"]=!0,t["Linux Libertine"]=!0,t.Literaturnaya=!0,t.Lucida=!0,t["Lucida Bright"]=!0,t.Melior=!0,t.Memphis=!0,t.Miller=!0,t.Minion=!0,t.Modern=!0,t["Mona Lisa"]=!0,t["Mrs Eaves"]=!0,t["MS Serif"]=!0,t["Museo Slab"]=!0,t["New York"]=!0,t["Nimbus Roman"]=!0,t["NPS Rawlinson Roadway"]=!0,t.NuptialScript=!0,t.Palatino=!0,t.Perpetua=!0,t.Plantin=!0,t["Plantin Schoolbook"]=!0,t.Playbill=!0,t["Poor Richard"]=!0,t["Rawlinson Roadway"]=!0,t.Renault=!0,t.Requiem=!0,t.Rockwell=!0,t.Roman=!0,t["Rotis Serif"]=!0,t.Sabon=!0,t.Scala=!0,t.Seagull=!0,t.Sistina=!0,t.Souvenir=!0,t.STIX=!0,t["Stone Informal"]=!0,t["Stone Serif"]=!0,t.Sylfaen=!0,t.Times=!0,t.Trajan=!0,t["Trinit\xe9"]=!0,t["Trump Mediaeval"]=!0,t.Utopia=!0,t["Vale Type"]=!0,t["Bitstream Vera"]=!0,t["Vera Serif"]=!0,t.Versailles=!0,t.Wanted=!0,t.Weiss=!0,t["Wide Latin"]=!0,t.Windsor=!0,t.XITS=!0}),iS=ec(function(t){t.Dingbats=!0,t.Symbol=!0,t.ZapfDingbats=!0,t.Wingdings=!0,t["Wingdings-Bold"]=!0,t["Wingdings-Regular"]=!0}),iI=ec(function(t){t[2]=10,t[3]=32,t[4]=33,t[5]=34,t[6]=35,t[7]=36,t[8]=37,t[9]=38,t[10]=39,t[11]=40,t[12]=41,t[13]=42,t[14]=43,t[15]=44,t[16]=45,t[17]=46,t[18]=47,t[19]=48,t[20]=49,t[21]=50,t[22]=51,t[23]=52,t[24]=53,t[25]=54,t[26]=55,t[27]=56,t[28]=57,t[29]=58,t[30]=894,t[31]=60,t[32]=61,t[33]=62,t[34]=63,t[35]=64,t[36]=65,t[37]=66,t[38]=67,t[39]=68,t[40]=69,t[41]=70,t[42]=71,t[43]=72,t[44]=73,t[45]=74,t[46]=75,t[47]=76,t[48]=77,t[49]=78,t[50]=79,t[51]=80,t[52]=81,t[53]=82,t[54]=83,t[55]=84,t[56]=85,t[57]=86,t[58]=87,t[59]=88,t[60]=89,t[61]=90,t[62]=91,t[63]=92,t[64]=93,t[65]=94,t[66]=95,t[67]=96,t[68]=97,t[69]=98,t[70]=99,t[71]=100,t[72]=101,t[73]=102,t[74]=103,t[75]=104,t[76]=105,t[77]=106,t[78]=107,t[79]=108,t[80]=109,t[81]=110,t[82]=111,t[83]=112,t[84]=113,t[85]=114,t[86]=115,t[87]=116,t[88]=117,t[89]=118,t[90]=119,t[91]=120,t[92]=121,t[93]=122,t[94]=123,t[95]=124,t[96]=125,t[97]=126,t[98]=196,t[99]=197,t[100]=199,t[101]=201,t[102]=209,t[103]=214,t[104]=220,t[105]=225,t[106]=224,t[107]=226,t[108]=228,t[109]=227,t[110]=229,t[111]=231,t[112]=233,t[113]=232,t[114]=234,t[115]=235,t[116]=237,t[117]=236,t[118]=238,t[119]=239,t[120]=241,t[121]=243,t[122]=242,t[123]=244,t[124]=246,t[125]=245,t[126]=250,t[127]=249,t[128]=251,t[129]=252,t[130]=8224,t[131]=176,t[132]=162,t[133]=163,t[134]=167,t[135]=8226,t[136]=182,t[137]=223,t[138]=174,t[139]=169,t[140]=8482,t[141]=180,t[142]=168,t[143]=8800,t[144]=198,t[145]=216,t[146]=8734,t[147]=177,t[148]=8804,t[149]=8805,t[150]=165,t[151]=181,t[152]=8706,t[153]=8721,t[154]=8719,t[156]=8747,t[157]=170,t[158]=186,t[159]=8486,t[160]=230,t[161]=248,t[162]=191,t[163]=161,t[164]=172,t[165]=8730,t[166]=402,t[167]=8776,t[168]=8710,t[169]=171,t[170]=187,t[171]=8230,t[179]=8220,t[180]=8221,t[181]=8216,t[182]=8217,t[200]=193,t[203]=205,t[207]=211,t[210]=218,t[223]=711,t[224]=321,t[225]=322,t[226]=352,t[227]=353,t[228]=381,t[229]=382,t[233]=221,t[234]=253,t[252]=263,t[253]=268,t[254]=269,t[258]=258,t[260]=260,t[261]=261,t[265]=280,t[266]=281,t[267]=282,t[268]=283,t[269]=313,t[275]=323,t[276]=324,t[278]=328,t[283]=344,t[284]=345,t[285]=346,t[286]=347,t[292]=367,t[295]=377,t[296]=378,t[298]=380,t[305]=963,t[306]=964,t[307]=966,t[308]=8215,t[309]=8252,t[310]=8319,t[311]=8359,t[312]=8592,t[313]=8593,t[337]=9552,t[493]=1039,t[494]=1040,t[570]=1040,t[571]=1041,t[572]=1042,t[573]=1043,t[574]=1044,t[575]=1045,t[576]=1046,t[577]=1047,t[578]=1048,t[579]=1049,t[580]=1050,t[581]=1051,t[582]=1052,t[583]=1053,t[584]=1054,t[585]=1055,t[586]=1056,t[587]=1057,t[588]=1058,t[589]=1059,t[590]=1060,t[591]=1061,t[592]=1062,t[593]=1063,t[594]=1064,t[595]=1065,t[596]=1066,t[597]=1067,t[598]=1068,t[599]=1069,t[600]=1070,t[601]=1071,t[602]=1072,t[603]=1073,t[604]=1074,t[605]=1075,t[606]=1076,t[607]=1077,t[608]=1078,t[609]=1079,t[610]=1080,t[611]=1081,t[612]=1082,t[613]=1083,t[614]=1084,t[615]=1085,t[616]=1086,t[617]=1087,t[618]=1088,t[619]=1089,t[620]=1090,t[621]=1091,t[622]=1092,t[623]=1093,t[624]=1094,t[625]=1095,t[626]=1096,t[627]=1097,t[628]=1098,t[629]=1099,t[630]=1100,t[631]=1101,t[632]=1102,t[633]=1103,t[672]=1488,t[673]=1489,t[674]=1490,t[675]=1491,t[676]=1492,t[677]=1493,t[678]=1494,t[679]=1495,t[680]=1496,t[681]=1497,t[682]=1498,t[683]=1499,t[684]=1500,t[685]=1501,t[686]=1502,t[687]=1503,t[688]=1504,t[689]=1505,t[690]=1506,t[691]=1507,t[692]=1508,t[693]=1509,t[694]=1510,t[695]=1511,t[696]=1512,t[697]=1513,t[698]=1514,t[705]=1524,t[706]=8362,t[710]=64288,t[711]=64298,t[759]=1617,t[761]=1776,t[763]=1778,t[775]=1652,t[777]=1764,t[778]=1780,t[779]=1781,t[780]=1782,t[782]=771,t[783]=64726,t[786]=8363,t[788]=8532,t[790]=768,t[791]=769,t[792]=768,t[795]=803,t[797]=64336,t[798]=64337,t[799]=64342,t[800]=64343,t[801]=64344,t[802]=64345,t[803]=64362,t[804]=64363,t[805]=64364,t[2424]=7821,t[2425]=7822,t[2426]=7823,t[2427]=7824,t[2428]=7825,t[2429]=7826,t[2430]=7827,t[2433]=7682,t[2678]=8045,t[2679]=8046,t[2830]=1552,t[2838]=686,t[2840]=751,t[2842]=753,t[2843]=754,t[2844]=755,t[2846]=757,t[2856]=767,t[2857]=848,t[2858]=849,t[2862]=853,t[2863]=854,t[2864]=855,t[2865]=861,t[2866]=862,t[2906]=7460,t[2908]=7462,t[2909]=7463,t[2910]=7464,t[2912]=7466,t[2913]=7467,t[2914]=7468,t[2916]=7470,t[2917]=7471,t[2918]=7472,t[2920]=7474,t[2921]=7475,t[2922]=7476,t[2924]=7478,t[2925]=7479,t[2926]=7480,t[2928]=7482,t[2929]=7483,t[2930]=7484,t[2932]=7486,t[2933]=7487,t[2934]=7488,t[2936]=7490,t[2937]=7491,t[2938]=7492,t[2940]=7494,t[2941]=7495,t[2942]=7496,t[2944]=7498,t[2946]=7500,t[2948]=7502,t[2950]=7504,t[2951]=7505,t[2952]=7506,t[2954]=7508,t[2955]=7509,t[2956]=7510,t[2958]=7512,t[2959]=7513,t[2960]=7514,t[2962]=7516,t[2963]=7517,t[2964]=7518,t[2966]=7520,t[2967]=7521,t[2968]=7522,t[2970]=7524,t[2971]=7525,t[2972]=7526,t[2974]=7528,t[2975]=7529,t[2976]=7530,t[2978]=1537,t[2979]=1538,t[2980]=1539,t[2982]=1549,t[2983]=1551,t[2984]=1552,t[2986]=1554,t[2987]=1555,t[2988]=1556,t[2990]=1623,t[2991]=1624,t[2995]=1775,t[2999]=1791,t[3002]=64290,t[3003]=64291,t[3004]=64292,t[3006]=64294,t[3007]=64295,t[3008]=64296,t[3011]=1900,t[3014]=8223,t[3015]=8244,t[3017]=7532,t[3018]=7533,t[3019]=7534,t[3075]=7590,t[3076]=7591,t[3079]=7594,t[3080]=7595,t[3083]=7598,t[3084]=7599,t[3087]=7602,t[3088]=7603,t[3091]=7606,t[3092]=7607,t[3095]=7610,t[3096]=7611,t[3099]=7614,t[3100]=7615,t[3103]=7618,t[3104]=7619,t[3107]=8337,t[3108]=8338,t[3116]=1884,t[3119]=1885,t[3120]=1885,t[3123]=1886,t[3124]=1886,t[3127]=1887,t[3128]=1887,t[3131]=1888,t[3132]=1888,t[3135]=1889,t[3136]=1889,t[3139]=1890,t[3140]=1890,t[3143]=1891,t[3144]=1891,t[3147]=1892,t[3148]=1892,t[3153]=580,t[3154]=581,t[3157]=584,t[3158]=585,t[3161]=588,t[3162]=589,t[3165]=891,t[3166]=892,t[3169]=1274,t[3170]=1275,t[3173]=1278,t[3174]=1279,t[3181]=7622,t[3182]=7623,t[3282]=11799,t[3316]=578,t[3379]=42785,t[3393]=1159,t[3416]=8377}),iB=ec(function(t){t[227]=322,t[264]=261,t[291]=346}),iF=ec(function(t){t[1]=32,t[4]=65,t[5]=192,t[6]=193,t[9]=196,t[17]=66,t[18]=67,t[21]=268,t[24]=68,t[28]=69,t[29]=200,t[30]=201,t[32]=282,t[38]=70,t[39]=71,t[44]=72,t[47]=73,t[48]=204,t[49]=205,t[58]=74,t[60]=75,t[62]=76,t[68]=77,t[69]=78,t[75]=79,t[76]=210,t[80]=214,t[87]=80,t[89]=81,t[90]=82,t[92]=344,t[94]=83,t[97]=352,t[100]=84,t[104]=85,t[109]=220,t[115]=86,t[116]=87,t[121]=88,t[122]=89,t[124]=221,t[127]=90,t[129]=381,t[258]=97,t[259]=224,t[260]=225,t[263]=228,t[268]=261,t[271]=98,t[272]=99,t[273]=263,t[275]=269,t[282]=100,t[286]=101,t[287]=232,t[288]=233,t[290]=283,t[295]=281,t[296]=102,t[336]=103,t[346]=104,t[349]=105,t[350]=236,t[351]=237,t[361]=106,t[364]=107,t[367]=108,t[371]=322,t[373]=109,t[374]=110,t[381]=111,t[382]=242,t[383]=243,t[386]=246,t[393]=112,t[395]=113,t[396]=114,t[398]=345,t[400]=115,t[401]=347,t[403]=353,t[410]=116,t[437]=117,t[442]=252,t[448]=118,t[449]=119,t[454]=120,t[455]=121,t[457]=253,t[460]=122,t[462]=382,t[463]=380,t[853]=44,t[855]=58,t[856]=46,t[876]=47,t[878]=45,t[882]=45,t[894]=40,t[895]=41,t[896]=91,t[897]=93,t[923]=64,t[940]=163,t[1004]=48,t[1005]=49,t[1006]=50,t[1007]=51,t[1008]=52,t[1009]=53,t[1010]=54,t[1011]=55,t[1012]=56,t[1013]=57,t[1081]=37,t[1085]=43,t[1086]=45});function iM(t){let a=a3(t);return ik()[a]}function iT(t){let a=a3(t);return!!(ik()[a]||iA()[a]||iC()[a]||iS()[a])}class iR{constructor(t=[]){this._map=t}get length(){return this._map.length}forEach(t){for(let a in this._map)t(a,this._map[a].codePointAt(0))}has(t){return void 0!==this._map[t]}get(t){return this._map[t]}charCodeOf(t){let a=this._map;if(a.length<=65536)return a.indexOf(t);for(let i in a)if(a[i]===t)return 0|i;return -1}amend(t){for(let a in t)this._map[a]=t[a]}}class iN{constructor(t,a){this.firstChar=t,this.lastChar=a}get length(){return this.lastChar+1-this.firstChar}forEach(t){for(let a=this.firstChar,i=this.lastChar;a<=i;a++)t(a,a)}has(t){return this.firstChar<=t&&t<=this.lastChar}get(t){if(this.firstChar<=t&&t<=this.lastChar)return String.fromCharCode(t)}charCodeOf(t){return Number.isInteger(t)&&t>=this.firstChar&&t<=this.lastChar?t:-1}amend(t){g("Should not call amend()")}}class iD{constructor(t,a){this.properties=a;const i=new ii(t,a,!0);this.cff=i.parse(),this.cff.duplicateFirstGlyph();const r=new ix(this.cff);this.seacs=this.cff.seacs;try{this.data=r.compile()}catch{f("Failed to compile font "+a.loadedName),this.data=t}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){let t,a,i=this.cff,r=this.properties,{cidToGidMap:s,cMap:n}=r,l=i.charset.charset;if(r.composite){let r,o;if(s?.length>0){r=Object.create(null);for(let t=0,a=s.length;t<a;t++){let a=s[t];void 0!==a&&(r[a]=t)}}if(t=Object.create(null),i.isCIDFont)for(a=0;a<l.length;a++){let i=l[a];o=n.charCodeOf(i),void 0!==r?.[o]&&(o=r[o]),t[o]=a}else for(a=0;a<i.charStrings.count;a++)t[o=n.charCodeOf(a)]=a;return t}let o=i.encoding?i.encoding.encoding:null;return r.isInternalFont&&(o=r.defaultEncoding),t=a5(r,o,l)}hasGlyphId(t){return this.cff.hasGlyphId(t)}_createBuiltInEncoding(){let{charset:t,encoding:a}=this.cff;if(!t||!a)return;let i=t.charset,r=a.encoding,s=[];for(let t in r){let a=r[t];if(a>=0){let r=i[a];r&&(s[t]=r)}}s.length>0&&(this.properties.builtInEncoding=s)}}function iO(t,a){return ex(t,a)/16384}function iP(t){let a=t.length,i=32768;return a<1240?i=107:a<33900&&(i=1131),i}function iE(t,a){let i=a.codePointAt(0),r=0,s=0,n=t.length-1;for(;s<n;){let a=s+n+1>>1;i<t[a].start?n=a-1:s=a}return t[s].start<=i&&i<=t[s].end&&(r=t[s].idDelta+(t[s].ids?t[s].ids[i-t[s].start]:i)&65535),{charCode:i,glyphId:r}}class i_{cmds=[];transformStack=[];currentTransform=[1,0,0,1,0,0];add(t,a){if(a){let{currentTransform:i}=this;for(let t=0,r=a.length;t<r;t+=2)R.applyTransform(a,i,t);this.cmds.push(t,...a)}else this.cmds.push(t)}transform(t){this.currentTransform=R.transform(this.currentTransform,t)}translate(t,a){this.transform([1,0,0,1,t,a])}save(){this.transformStack.push(this.currentTransform.slice())}restore(){this.currentTransform=this.transformStack.pop()||[1,0,0,1,0,0]}getPath(){return new(M.isFloat16ArraySupported?Float16Array:Float32Array)(this.cmds)}}class iL{constructor(t){this.fontMatrix=t,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(t){let{charCode:a,glyphId:i}=iE(this.cmap,t),r,s=this.compiledGlyphs[i];if(void 0===s){try{s=this.compileGlyph(this.glyphs[i],i)}catch(t){s="",r=t}this.compiledGlyphs[i]=s}if(this.compiledCharCodeToGlyphId[a]??=i,r)throw r;return s}compileGlyph(t,a){if(!t?.length||14===t[0])return"";let r=this.fontMatrix;if(this.isCFFCIDFont){let t=this.fdSelect.getFDIndex(a);t>=0&&t<this.fdArray.length?r=this.fdArray[t].getByName("FontMatrix")||i:f("Invalid fd index for glyph index.")}p(eC(r,6),"Expected a valid fontMatrix.");let s=new i_;return s.transform(r.slice()),this.compileGlyphImpl(t,s,a),s.add(4),s.getPath()}compileGlyphImpl(){g("Children classes should implement this.")}hasBuiltPath(t){let{charCode:a,glyphId:i}=iE(this.cmap,t);return void 0!==this.compiledGlyphs[i]&&void 0!==this.compiledCharCodeToGlyphId[a]}}class iU extends iL{constructor(t,a,i){super(i||[488e-6,0,0,488e-6,0,0]),this.glyphs=t,this.cmap=a}compileGlyphImpl(t,a){!function t(a,i,r){function s(t,a,r,s){i.add(3,[t,a,r,s])}let n=0,l=ex(a,0),o,c=null,h=0,u=0;if(n+=10,l<0)do{let s,l;o=ek(a,n);let c=ek(a,n+2);n+=4,1&o?(2&o?(s=ex(a,n),l=ex(a,n+2)):(s=ek(a,n),l=ek(a,n+2)),n+=4):2&o?(s=ew(a,n++),l=ew(a,n++)):(s=a[n++],l=a[n++]),2&o?(h=s,u=l):(h=0,u=0);let d=1,f=1,g=0,p=0;8&o?(d=f=iO(a,n),n+=2):64&o?(d=iO(a,n),f=iO(a,n+2),n+=4):128&o&&(d=iO(a,n),g=iO(a,n+2),p=iO(a,n+4),f=iO(a,n+6),n+=8);let m=r.glyphs[c];m&&(i.save(),i.transform([d,g,p,f,h,u]),t(m,i,r),i.restore())}while(32&o);else{let t,r,m=[];for(t=0;t<l;t++)m.push(ek(a,n)),n+=2;n+=2+ek(a,n);let b=m.at(-1)+1,y=[];for(;y.length<b;){o=a[n++];let t=1;for(8&o&&(t+=a[n++]);t-- >0;)y.push({flags:o})}for(t=0;t<b;t++){switch(18&y[t].flags){case 0:h+=ex(a,n),n+=2;break;case 2:h-=a[n++];break;case 18:h+=a[n++]}y[t].x=h}for(t=0;t<b;t++){switch(36&y[t].flags){case 0:u+=ex(a,n),n+=2;break;case 4:u-=a[n++];break;case 36:u+=a[n++]}y[t].y=u}let w=0;for(n=0;n<l;n++){var d,f,g,p;let a=m[n],l=y.slice(w,a+1);if(1&l[0].flags)l.push(l[0]);else if(1&l.at(-1).flags)l.unshift(l.at(-1));else{let t={flags:1,x:(l[0].x+l.at(-1).x)/2,y:(l[0].y+l.at(-1).y)/2};l.unshift(t),l.push(t)}for(d=l[0].x,f=l[0].y,c&&i.add(1,c),c=[d,f],i.add(0,[d,f]),t=1,r=l.length;t<r;t++)1&l[t].flags?(g=l[t].x,p=l[t].y,i.add(1,[g,p])):1&l[t+1].flags?(s(l[t].x,l[t].y,l[t+1].x,l[t+1].y),t++):s(l[t].x,l[t].y,(l[t].x+l[t+1].x)/2,(l[t].y+l[t+1].y)/2);w=a+1}}}(t,a,this)}}class iq extends iL{constructor(t,a,i){super(i||[.001,0,0,.001,0,0]),this.glyphs=t.glyphs,this.gsubrs=t.gsubrs||[],this.subrs=t.subrs||[],this.cmap=a,this.glyphNameMap=aK(),this.gsubrsBias=iP(this.gsubrs),this.subrsBias=iP(this.subrs),this.isCFFCIDFont=t.isCFFCIDFont,this.fdSelect=t.fdSelect,this.fdArray=t.fdArray}compileGlyphImpl(t,a,i){!function t(a,i,r,s){function n(t,a){g&&i.add(1,g),g=[t,a],i.add(0,[t,a])}function l(t,a){i.add(1,[t,a])}function o(t,a,r,s,n,l){i.add(2,[t,a,r,s,n,l])}let c=[],h=0,u=0,d=0,g=null;!function a(g){let p=0;for(;p<g.length;){let m,b,y,w,x,k,v,C,S,I=!1,B=g[p++];switch(B){case 1:case 3:case 18:case 23:d+=c.length>>1,I=!0;break;case 4:u+=c.pop(),n(h,u),I=!0;break;case 5:for(;c.length>0;)h+=c.shift(),u+=c.shift(),l(h,u);break;case 6:for(;c.length>0&&(l(h+=c.shift(),u),0!==c.length);)u+=c.shift(),l(h,u);break;case 7:for(;c.length>0&&(u+=c.shift(),l(h,u),0!==c.length);)l(h+=c.shift(),u);break;case 8:for(;c.length>0;)m=h+c.shift(),y=u+c.shift(),b=m+c.shift(),w=y+c.shift(),h=b+c.shift(),u=w+c.shift(),o(m,y,b,w,h,u);break;case 10:if(C=c.pop(),S=null,r.isCFFCIDFont){let t=r.fdSelect.getFDIndex(s);if(t>=0&&t<r.fdArray.length){let a,i=r.fdArray[t];i.privateDict?.subrsIndex&&(a=i.privateDict.subrsIndex.objects),a&&(C+=iP(a),S=a[C])}else f("Invalid fd index for glyph index.")}else S=r.subrs[C+r.subrsBias];S&&a(S);break;case 11:return;case 12:switch(B=g[p++]){case 34:b=(m=h+c.shift())+c.shift(),x=u+c.shift(),h=b+c.shift(),o(m,u,b,x,h,x),h=(b=(m=h+c.shift())+c.shift())+c.shift(),o(m,x,b,u,h,u);break;case 35:m=h+c.shift(),y=u+c.shift(),b=m+c.shift(),w=y+c.shift(),h=b+c.shift(),u=w+c.shift(),o(m,y,b,w,h,u),m=h+c.shift(),y=u+c.shift(),b=m+c.shift(),w=y+c.shift(),h=b+c.shift(),u=w+c.shift(),o(m,y,b,w,h,u),c.pop();break;case 36:m=h+c.shift(),x=u+c.shift(),b=m+c.shift(),k=x+c.shift(),h=b+c.shift(),o(m,x,b,k,h,k),b=(m=h+c.shift())+c.shift(),v=k+c.shift(),h=b+c.shift(),o(m,k,b,v,h,u);break;case 37:let F=h,M=u;m=h+c.shift(),y=u+c.shift(),b=m+c.shift(),w=y+c.shift(),h=b+c.shift(),u=w+c.shift(),o(m,y,b,w,h,u),m=h+c.shift(),y=u+c.shift(),b=m+c.shift(),w=y+c.shift(),Math.abs((h=b)-F)>Math.abs((u=w)-M)?h+=c.shift():u+=c.shift(),o(m,y,b,w,h,u);break;default:throw new A(`unknown operator: 12 ${B}`)}break;case 14:if(c.length>=4){let a=c.pop(),s=c.pop();u=c.pop(),h=c.pop(),i.save(),i.translate(h,u);let n=iE(r.cmap,String.fromCharCode(r.glyphNameMap[az[a]]));t(r.glyphs[n.glyphId],i,r,n.glyphId),i.restore(),n=iE(r.cmap,String.fromCharCode(r.glyphNameMap[az[s]])),t(r.glyphs[n.glyphId],i,r,n.glyphId)}return;case 19:case 20:d+=c.length>>1,p+=d+7>>3,I=!0;break;case 21:u+=c.pop(),n(h+=c.pop(),u),I=!0;break;case 22:n(h+=c.pop(),u),I=!0;break;case 24:for(;c.length>2;)m=h+c.shift(),y=u+c.shift(),b=m+c.shift(),w=y+c.shift(),h=b+c.shift(),u=w+c.shift(),o(m,y,b,w,h,u);h+=c.shift(),u+=c.shift(),l(h,u);break;case 25:for(;c.length>6;)h+=c.shift(),u+=c.shift(),l(h,u);m=h+c.shift(),y=u+c.shift(),b=m+c.shift(),w=y+c.shift(),h=b+c.shift(),u=w+c.shift(),o(m,y,b,w,h,u);break;case 26:for(c.length%2&&(h+=c.shift());c.length>0;)m=h,y=u+c.shift(),b=m+c.shift(),w=y+c.shift(),h=b,u=w+c.shift(),o(m,y,b,w,h,u);break;case 27:for(c.length%2&&(u+=c.shift());c.length>0;)m=h+c.shift(),y=u,b=m+c.shift(),w=y+c.shift(),h=b+c.shift(),u=w,o(m,y,b,w,h,u);break;case 28:c.push(ex(g,p)),p+=2;break;case 29:C=c.pop()+r.gsubrsBias,(S=r.gsubrs[C])&&a(S);break;case 30:for(;c.length>0&&(m=h,y=u+c.shift(),b=m+c.shift(),w=y+c.shift(),h=b+c.shift(),u=w+(1===c.length?c.shift():0),o(m,y,b,w,h,u),0!==c.length);)m=h+c.shift(),y=u,b=m+c.shift(),u=(w=y+c.shift())+c.shift(),h=b+(1===c.length?c.shift():0),o(m,y,b,w,h,u);break;case 31:for(;c.length>0&&(m=h+c.shift(),y=u,b=m+c.shift(),u=(w=y+c.shift())+c.shift(),h=b+(1===c.length?c.shift():0),o(m,y,b,w,h,u),0!==c.length);)m=h,y=u+c.shift(),b=m+c.shift(),w=y+c.shift(),h=b+c.shift(),u=w+(1===c.length?c.shift():0),o(m,y,b,w,h,u);break;default:if(B<32)throw new A(`unknown operator: ${B}`);B<247?c.push(B-139):B<251?c.push(256*(B-247)+g[p++]+108):B<255?c.push(-(256*(B-251))-g[p++]-108):(c.push((g[p]<<24|g[p+1]<<16|g[p+2]<<8|g[p+3])/65536),p+=4)}I&&(c.length=0)}}(a)}(t,a,this,i)}}class ij{static create(t,a){let i,r,s,n,l,o,c=new Uint8Array(t.data),h=ek(c,4);for(let t=0,u=12;t<h;t++,u+=16){let t=S(c.subarray(u,u+4)),h=ev(c,u+8),d=ev(c,u+12);switch(t){case"cmap":i=function(t,a){let i,r,s,n=1===ek(t,a+2)?ev(t,a+8):ev(t,a+16),l=ek(t,a+n);if(4===l){ek(t,a+n+2);let l=ek(t,a+n+6)>>1;for(s=0,r=a+n+14,i=[];s<l;s++,r+=2)i[s]={end:ek(t,r)};for(r+=2,s=0;s<l;s++,r+=2)i[s].start=ek(t,r);for(s=0;s<l;s++,r+=2)i[s].idDelta=ek(t,r);for(s=0;s<l;s++,r+=2){let a=ek(t,r);if(0!==a){i[s].ids=[];for(let n=0,l=i[s].end-i[s].start+1;n<l;n++)i[s].ids[n]=ek(t,r+a),a+=2}}return i}if(12===l){let l=ev(t,a+n+12);for(s=0,r=a+n+16,i=[];s<l;s++)a=ev(t,r),i.push({start:a,end:ev(t,r+4),idDelta:ev(t,r+8)-a}),r+=12;return i}throw new A(`unsupported cmap: ${l}`)}(c,h);break;case"glyf":r=c.subarray(h,h+d);break;case"loca":s=c.subarray(h,h+d);break;case"head":o=ek(c,h+18),l=ek(c,h+50);break;case"CFF ":n=function(t,a,i,r){let s=new ii(new tr(t,a,i-a),{},r).parse();return{glyphs:s.charStrings.objects,subrs:s.topDict.privateDict?.subrsIndex?.objects,gsubrs:s.globalSubrIndex?.objects,isCFFCIDFont:s.isCIDFont,fdSelect:s.fdSelect,fdArray:s.fdArray}}(c,h,h+d,a)}}if(r){let a=o?[1/o,0,0,1/o,0,0]:t.fontMatrix;return new iU(function(t,a,i){let r,s;i?(r=4,s=ev):(r=2,s=(t,a)=>2*ek(t,a));let n=[],l=s(a,0);for(let i=r;i<a.length;i+=r){let r=s(a,i);n.push(t.subarray(l,r)),l=r}return n}(r,s,l),i,a)}return new iq(n,i,t.fontMatrix)}}let i$=ec(function(t){t.Courier=600,t["Courier-Bold"]=600,t["Courier-BoldOblique"]=600,t["Courier-Oblique"]=600,t.Helvetica=ec(function(t){t.space=278,t.exclam=278,t.quotedbl=355,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=667,t.quoteright=222,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=278,t.semicolon=278,t.less=584,t.equal=584,t.greater=584,t.question=556,t.at=1015,t.A=667,t.B=667,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=500,t.K=667,t.L=556,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=278,t.backslash=278,t.bracketright=278,t.asciicircum=469,t.underscore=556,t.quoteleft=222,t.a=556,t.b=556,t.c=500,t.d=556,t.e=556,t.f=278,t.g=556,t.h=556,t.i=222,t.j=222,t.k=500,t.l=222,t.m=833,t.n=556,t.o=556,t.p=556,t.q=556,t.r=333,t.s=500,t.t=278,t.u=556,t.v=500,t.w=722,t.x=500,t.y=500,t.z=500,t.braceleft=334,t.bar=260,t.braceright=334,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=191,t.quotedblleft=333,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=500,t.fl=500,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=537,t.bullet=350,t.quotesinglbase=222,t.quotedblbase=333,t.quotedblright=333,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=556,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=222,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=556,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=667,t.aacute=556,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=500,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=500,t.aring=556,t.Ncommaaccent=722,t.lacute=222,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=500,t.scedilla=500,t.iacute=278,t.lozenge=471,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=556,t.acircumflex=556,t.Amacron=667,t.rcaron=333,t.ccedilla=500,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=643,t.Umacron=722,t.uring=556,t.threesuperior=333,t.Ograve=778,t.Agrave=667,t.Abreve=667,t.multiply=584,t.uacute=556,t.Tcaron=611,t.partialdiff=476,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=500,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=260,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=333,t.omacron=556,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=222,t.tcaron=317,t.eogonek=556,t.Uogonek=722,t.Aacute=667,t.Adieresis=667,t.egrave=556,t.zacute=500,t.iogonek=222,t.Oacute=778,t.oacute=556,t.amacron=556,t.sacute=500,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=556,t.twosuperior=333,t.Odieresis=778,t.mu=556,t.igrave=278,t.ohungarumlaut=556,t.Eogonek=667,t.dcroat=556,t.threequarters=834,t.Scedilla=667,t.lcaron=299,t.Kcommaaccent=667,t.Lacute=556,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=556,t.onehalf=834,t.lessequal=549,t.ocircumflex=556,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=556,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=556,t.Ccaron=722,t.ugrave=556,t.radical=453,t.Dcaron=722,t.rcommaaccent=333,t.Ntilde=722,t.otilde=556,t.Rcommaaccent=722,t.Lcommaaccent=556,t.Atilde=667,t.Aogonek=667,t.Aring=667,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=500,t.minus=584,t.Icircumflex=278,t.ncaron=556,t.tcommaaccent=278,t.logicalnot=584,t.odieresis=556,t.udieresis=556,t.notequal=549,t.gcommaaccent=556,t.eth=556,t.zcaron=500,t.ncommaaccent=556,t.onesuperior=333,t.imacron=278,t.Euro=556}),t["Helvetica-Bold"]=ec(function(t){t.space=278,t.exclam=333,t.quotedbl=474,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=722,t.quoteright=278,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=333,t.semicolon=333,t.less=584,t.equal=584,t.greater=584,t.question=611,t.at=975,t.A=722,t.B=722,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=556,t.K=722,t.L=611,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=584,t.underscore=556,t.quoteleft=278,t.a=556,t.b=611,t.c=556,t.d=611,t.e=556,t.f=333,t.g=611,t.h=611,t.i=278,t.j=278,t.k=556,t.l=278,t.m=889,t.n=611,t.o=611,t.p=611,t.q=611,t.r=389,t.s=556,t.t=333,t.u=611,t.v=556,t.w=778,t.x=556,t.y=556,t.z=500,t.braceleft=389,t.bar=280,t.braceright=389,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=238,t.quotedblleft=500,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=611,t.fl=611,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=556,t.bullet=350,t.quotesinglbase=278,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=611,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=278,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=611,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=722,t.aacute=556,t.Ucircumflex=722,t.yacute=556,t.scommaaccent=556,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=611,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=556,t.aring=556,t.Ncommaaccent=722,t.lacute=278,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=556,t.scedilla=556,t.iacute=278,t.lozenge=494,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=611,t.acircumflex=556,t.Amacron=722,t.rcaron=389,t.ccedilla=556,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=743,t.Umacron=722,t.uring=611,t.threesuperior=333,t.Ograve=778,t.Agrave=722,t.Abreve=722,t.multiply=584,t.uacute=611,t.Tcaron=611,t.partialdiff=494,t.ydieresis=556,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=556,t.nacute=611,t.umacron=611,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=280,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=389,t.omacron=611,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=278,t.tcaron=389,t.eogonek=556,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=556,t.zacute=500,t.iogonek=278,t.Oacute=778,t.oacute=611,t.amacron=556,t.sacute=556,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=611,t.twosuperior=333,t.Odieresis=778,t.mu=611,t.igrave=278,t.ohungarumlaut=611,t.Eogonek=667,t.dcroat=611,t.threequarters=834,t.Scedilla=667,t.lcaron=400,t.Kcommaaccent=722,t.Lacute=611,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=611,t.onehalf=834,t.lessequal=549,t.ocircumflex=611,t.ntilde=611,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=611,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=611,t.Ccaron=722,t.ugrave=611,t.radical=549,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=722,t.otilde=611,t.Rcommaaccent=722,t.Lcommaaccent=611,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=556,t.minus=584,t.Icircumflex=278,t.ncaron=611,t.tcommaaccent=333,t.logicalnot=584,t.odieresis=611,t.udieresis=611,t.notequal=549,t.gcommaaccent=611,t.eth=611,t.zcaron=500,t.ncommaaccent=611,t.onesuperior=333,t.imacron=278,t.Euro=556}),t["Helvetica-BoldOblique"]=ec(function(t){t.space=278,t.exclam=333,t.quotedbl=474,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=722,t.quoteright=278,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=333,t.semicolon=333,t.less=584,t.equal=584,t.greater=584,t.question=611,t.at=975,t.A=722,t.B=722,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=556,t.K=722,t.L=611,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=584,t.underscore=556,t.quoteleft=278,t.a=556,t.b=611,t.c=556,t.d=611,t.e=556,t.f=333,t.g=611,t.h=611,t.i=278,t.j=278,t.k=556,t.l=278,t.m=889,t.n=611,t.o=611,t.p=611,t.q=611,t.r=389,t.s=556,t.t=333,t.u=611,t.v=556,t.w=778,t.x=556,t.y=556,t.z=500,t.braceleft=389,t.bar=280,t.braceright=389,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=238,t.quotedblleft=500,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=611,t.fl=611,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=556,t.bullet=350,t.quotesinglbase=278,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=611,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=278,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=611,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=722,t.aacute=556,t.Ucircumflex=722,t.yacute=556,t.scommaaccent=556,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=611,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=556,t.aring=556,t.Ncommaaccent=722,t.lacute=278,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=556,t.scedilla=556,t.iacute=278,t.lozenge=494,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=611,t.acircumflex=556,t.Amacron=722,t.rcaron=389,t.ccedilla=556,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=743,t.Umacron=722,t.uring=611,t.threesuperior=333,t.Ograve=778,t.Agrave=722,t.Abreve=722,t.multiply=584,t.uacute=611,t.Tcaron=611,t.partialdiff=494,t.ydieresis=556,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=556,t.nacute=611,t.umacron=611,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=280,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=389,t.omacron=611,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=278,t.tcaron=389,t.eogonek=556,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=556,t.zacute=500,t.iogonek=278,t.Oacute=778,t.oacute=611,t.amacron=556,t.sacute=556,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=611,t.twosuperior=333,t.Odieresis=778,t.mu=611,t.igrave=278,t.ohungarumlaut=611,t.Eogonek=667,t.dcroat=611,t.threequarters=834,t.Scedilla=667,t.lcaron=400,t.Kcommaaccent=722,t.Lacute=611,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=611,t.onehalf=834,t.lessequal=549,t.ocircumflex=611,t.ntilde=611,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=611,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=611,t.Ccaron=722,t.ugrave=611,t.radical=549,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=722,t.otilde=611,t.Rcommaaccent=722,t.Lcommaaccent=611,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=556,t.minus=584,t.Icircumflex=278,t.ncaron=611,t.tcommaaccent=333,t.logicalnot=584,t.odieresis=611,t.udieresis=611,t.notequal=549,t.gcommaaccent=611,t.eth=611,t.zcaron=500,t.ncommaaccent=611,t.onesuperior=333,t.imacron=278,t.Euro=556}),t["Helvetica-Oblique"]=ec(function(t){t.space=278,t.exclam=278,t.quotedbl=355,t.numbersign=556,t.dollar=556,t.percent=889,t.ampersand=667,t.quoteright=222,t.parenleft=333,t.parenright=333,t.asterisk=389,t.plus=584,t.comma=278,t.hyphen=333,t.period=278,t.slash=278,t.zero=556,t.one=556,t.two=556,t.three=556,t.four=556,t.five=556,t.six=556,t.seven=556,t.eight=556,t.nine=556,t.colon=278,t.semicolon=278,t.less=584,t.equal=584,t.greater=584,t.question=556,t.at=1015,t.A=667,t.B=667,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=722,t.I=278,t.J=500,t.K=667,t.L=556,t.M=833,t.N=722,t.O=778,t.P=667,t.Q=778,t.R=722,t.S=667,t.T=611,t.U=722,t.V=667,t.W=944,t.X=667,t.Y=667,t.Z=611,t.bracketleft=278,t.backslash=278,t.bracketright=278,t.asciicircum=469,t.underscore=556,t.quoteleft=222,t.a=556,t.b=556,t.c=500,t.d=556,t.e=556,t.f=278,t.g=556,t.h=556,t.i=222,t.j=222,t.k=500,t.l=222,t.m=833,t.n=556,t.o=556,t.p=556,t.q=556,t.r=333,t.s=500,t.t=278,t.u=556,t.v=500,t.w=722,t.x=500,t.y=500,t.z=500,t.braceleft=334,t.bar=260,t.braceright=334,t.asciitilde=584,t.exclamdown=333,t.cent=556,t.sterling=556,t.fraction=167,t.yen=556,t.florin=556,t.section=556,t.currency=556,t.quotesingle=191,t.quotedblleft=333,t.guillemotleft=556,t.guilsinglleft=333,t.guilsinglright=333,t.fi=500,t.fl=500,t.endash=556,t.dagger=556,t.daggerdbl=556,t.periodcentered=278,t.paragraph=537,t.bullet=350,t.quotesinglbase=222,t.quotedblbase=333,t.quotedblright=333,t.guillemotright=556,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=611,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=370,t.Lslash=556,t.Oslash=778,t.OE=1e3,t.ordmasculine=365,t.ae=889,t.dotlessi=278,t.lslash=222,t.oslash=611,t.oe=944,t.germandbls=611,t.Idieresis=278,t.eacute=556,t.abreve=556,t.uhungarumlaut=556,t.ecaron=556,t.Ydieresis=667,t.divide=584,t.Yacute=667,t.Acircumflex=667,t.aacute=556,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=500,t.ecircumflex=556,t.Uring=722,t.Udieresis=722,t.aogonek=556,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=737,t.Emacron=667,t.ccaron=500,t.aring=556,t.Ncommaaccent=722,t.lacute=222,t.agrave=556,t.Tcommaaccent=611,t.Cacute=722,t.atilde=556,t.Edotaccent=667,t.scaron=500,t.scedilla=500,t.iacute=278,t.lozenge=471,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=556,t.acircumflex=556,t.Amacron=667,t.rcaron=333,t.ccedilla=500,t.Zdotaccent=611,t.Thorn=667,t.Omacron=778,t.Racute=722,t.Sacute=667,t.dcaron=643,t.Umacron=722,t.uring=556,t.threesuperior=333,t.Ograve=778,t.Agrave=667,t.Abreve=667,t.multiply=584,t.uacute=556,t.Tcaron=611,t.partialdiff=476,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=556,t.edieresis=556,t.cacute=500,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=278,t.plusminus=584,t.brokenbar=260,t.registered=737,t.Gbreve=778,t.Idotaccent=278,t.summation=600,t.Egrave=667,t.racute=333,t.omacron=556,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=222,t.tcaron=317,t.eogonek=556,t.Uogonek=722,t.Aacute=667,t.Adieresis=667,t.egrave=556,t.zacute=500,t.iogonek=222,t.Oacute=778,t.oacute=556,t.amacron=556,t.sacute=500,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=556,t.twosuperior=333,t.Odieresis=778,t.mu=556,t.igrave=278,t.ohungarumlaut=556,t.Eogonek=667,t.dcroat=556,t.threequarters=834,t.Scedilla=667,t.lcaron=299,t.Kcommaaccent=667,t.Lacute=556,t.trademark=1e3,t.edotaccent=556,t.Igrave=278,t.Imacron=278,t.Lcaron=556,t.onehalf=834,t.lessequal=549,t.ocircumflex=556,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=556,t.gbreve=556,t.onequarter=834,t.Scaron=667,t.Scommaaccent=667,t.Ohungarumlaut=778,t.degree=400,t.ograve=556,t.Ccaron=722,t.ugrave=556,t.radical=453,t.Dcaron=722,t.rcommaaccent=333,t.Ntilde=722,t.otilde=556,t.Rcommaaccent=722,t.Lcommaaccent=556,t.Atilde=667,t.Aogonek=667,t.Aring=667,t.Otilde=778,t.zdotaccent=500,t.Ecaron=667,t.Iogonek=278,t.kcommaaccent=500,t.minus=584,t.Icircumflex=278,t.ncaron=556,t.tcommaaccent=278,t.logicalnot=584,t.odieresis=556,t.udieresis=556,t.notequal=549,t.gcommaaccent=556,t.eth=556,t.zcaron=500,t.ncommaaccent=556,t.onesuperior=333,t.imacron=278,t.Euro=556}),t.Symbol=ec(function(t){t.space=250,t.exclam=333,t.universal=713,t.numbersign=500,t.existential=549,t.percent=833,t.ampersand=778,t.suchthat=439,t.parenleft=333,t.parenright=333,t.asteriskmath=500,t.plus=549,t.comma=250,t.minus=549,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=278,t.semicolon=278,t.less=549,t.equal=549,t.greater=549,t.question=444,t.congruent=549,t.Alpha=722,t.Beta=667,t.Chi=722,t.Delta=612,t.Epsilon=611,t.Phi=763,t.Gamma=603,t.Eta=722,t.Iota=333,t.theta1=631,t.Kappa=722,t.Lambda=686,t.Mu=889,t.Nu=722,t.Omicron=722,t.Pi=768,t.Theta=741,t.Rho=556,t.Sigma=592,t.Tau=611,t.Upsilon=690,t.sigma1=439,t.Omega=768,t.Xi=645,t.Psi=795,t.Zeta=611,t.bracketleft=333,t.therefore=863,t.bracketright=333,t.perpendicular=658,t.underscore=500,t.radicalex=500,t.alpha=631,t.beta=549,t.chi=549,t.delta=494,t.epsilon=439,t.phi=521,t.gamma=411,t.eta=603,t.iota=329,t.phi1=603,t.kappa=549,t.lambda=549,t.mu=576,t.nu=521,t.omicron=549,t.pi=549,t.theta=521,t.rho=549,t.sigma=603,t.tau=439,t.upsilon=576,t.omega1=713,t.omega=686,t.xi=493,t.psi=686,t.zeta=494,t.braceleft=480,t.bar=200,t.braceright=480,t.similar=549,t.Euro=750,t.Upsilon1=620,t.minute=247,t.lessequal=549,t.fraction=167,t.infinity=713,t.florin=500,t.club=753,t.diamond=753,t.heart=753,t.spade=753,t.arrowboth=1042,t.arrowleft=987,t.arrowup=603,t.arrowright=987,t.arrowdown=603,t.degree=400,t.plusminus=549,t.second=411,t.greaterequal=549,t.multiply=549,t.proportional=713,t.partialdiff=494,t.bullet=460,t.divide=549,t.notequal=549,t.equivalence=549,t.approxequal=549,t.ellipsis=1e3,t.arrowvertex=603,t.arrowhorizex=1e3,t.carriagereturn=658,t.aleph=823,t.Ifraktur=686,t.Rfraktur=795,t.weierstrass=987,t.circlemultiply=768,t.circleplus=768,t.emptyset=823,t.intersection=768,t.union=768,t.propersuperset=713,t.reflexsuperset=713,t.notsubset=713,t.propersubset=713,t.reflexsubset=713,t.element=713,t.notelement=713,t.angle=768,t.gradient=713,t.registerserif=790,t.copyrightserif=790,t.trademarkserif=890,t.product=823,t.radical=549,t.dotmath=250,t.logicalnot=713,t.logicaland=603,t.logicalor=603,t.arrowdblboth=1042,t.arrowdblleft=987,t.arrowdblup=603,t.arrowdblright=987,t.arrowdbldown=603,t.lozenge=494,t.angleleft=329,t.registersans=790,t.copyrightsans=790,t.trademarksans=786,t.summation=713,t.parenlefttp=384,t.parenleftex=384,t.parenleftbt=384,t.bracketlefttp=384,t.bracketleftex=384,t.bracketleftbt=384,t.bracelefttp=494,t.braceleftmid=494,t.braceleftbt=494,t.braceex=494,t.angleright=329,t.integral=274,t.integraltp=686,t.integralex=686,t.integralbt=686,t.parenrighttp=384,t.parenrightex=384,t.parenrightbt=384,t.bracketrighttp=384,t.bracketrightex=384,t.bracketrightbt=384,t.bracerighttp=494,t.bracerightmid=494,t.bracerightbt=494,t.apple=790}),t["Times-Roman"]=ec(function(t){t.space=250,t.exclam=333,t.quotedbl=408,t.numbersign=500,t.dollar=500,t.percent=833,t.ampersand=778,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=564,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=278,t.semicolon=278,t.less=564,t.equal=564,t.greater=564,t.question=444,t.at=921,t.A=722,t.B=667,t.C=667,t.D=722,t.E=611,t.F=556,t.G=722,t.H=722,t.I=333,t.J=389,t.K=722,t.L=611,t.M=889,t.N=722,t.O=722,t.P=556,t.Q=722,t.R=667,t.S=556,t.T=611,t.U=722,t.V=722,t.W=944,t.X=722,t.Y=722,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=469,t.underscore=500,t.quoteleft=333,t.a=444,t.b=500,t.c=444,t.d=500,t.e=444,t.f=333,t.g=500,t.h=500,t.i=278,t.j=278,t.k=500,t.l=278,t.m=778,t.n=500,t.o=500,t.p=500,t.q=500,t.r=333,t.s=389,t.t=278,t.u=500,t.v=500,t.w=722,t.x=500,t.y=500,t.z=444,t.braceleft=480,t.bar=200,t.braceright=480,t.asciitilde=541,t.exclamdown=333,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=180,t.quotedblleft=444,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=556,t.fl=556,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodcentered=250,t.paragraph=453,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=444,t.quotedblright=444,t.guillemotright=500,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=444,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=889,t.ordfeminine=276,t.Lslash=611,t.Oslash=722,t.OE=889,t.ordmasculine=310,t.ae=667,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=722,t.germandbls=500,t.Idieresis=333,t.eacute=444,t.abreve=444,t.uhungarumlaut=500,t.ecaron=444,t.Ydieresis=722,t.divide=564,t.Yacute=722,t.Acircumflex=722,t.aacute=444,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=444,t.Uacute=722,t.uogonek=500,t.Edieresis=611,t.Dcroat=722,t.commaaccent=250,t.copyright=760,t.Emacron=611,t.ccaron=444,t.aring=444,t.Ncommaaccent=722,t.lacute=278,t.agrave=444,t.Tcommaaccent=611,t.Cacute=667,t.atilde=444,t.Edotaccent=611,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=471,t.Rcaron=667,t.Gcommaaccent=722,t.ucircumflex=500,t.acircumflex=444,t.Amacron=722,t.rcaron=333,t.ccedilla=444,t.Zdotaccent=611,t.Thorn=556,t.Omacron=722,t.Racute=667,t.Sacute=556,t.dcaron=588,t.Umacron=722,t.uring=500,t.threesuperior=300,t.Ograve=722,t.Agrave=722,t.Abreve=722,t.multiply=564,t.uacute=500,t.Tcaron=611,t.partialdiff=476,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=611,t.adieresis=444,t.edieresis=444,t.cacute=444,t.nacute=500,t.umacron=500,t.Ncaron=722,t.Iacute=333,t.plusminus=564,t.brokenbar=200,t.registered=760,t.Gbreve=722,t.Idotaccent=333,t.summation=600,t.Egrave=611,t.racute=333,t.omacron=500,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=667,t.lcommaaccent=278,t.tcaron=326,t.eogonek=444,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=444,t.zacute=444,t.iogonek=278,t.Oacute=722,t.oacute=500,t.amacron=444,t.sacute=389,t.idieresis=278,t.Ocircumflex=722,t.Ugrave=722,t.Delta=612,t.thorn=500,t.twosuperior=300,t.Odieresis=722,t.mu=500,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=611,t.dcroat=500,t.threequarters=750,t.Scedilla=556,t.lcaron=344,t.Kcommaaccent=722,t.Lacute=611,t.trademark=980,t.edotaccent=444,t.Igrave=333,t.Imacron=333,t.Lcaron=611,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=500,t.Uhungarumlaut=722,t.Eacute=611,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=556,t.Scommaaccent=556,t.Ohungarumlaut=722,t.degree=400,t.ograve=500,t.Ccaron=667,t.ugrave=500,t.radical=453,t.Dcaron=722,t.rcommaaccent=333,t.Ntilde=722,t.otilde=500,t.Rcommaaccent=667,t.Lcommaaccent=611,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=722,t.zdotaccent=444,t.Ecaron=611,t.Iogonek=333,t.kcommaaccent=500,t.minus=564,t.Icircumflex=333,t.ncaron=500,t.tcommaaccent=278,t.logicalnot=564,t.odieresis=500,t.udieresis=500,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=444,t.ncommaaccent=500,t.onesuperior=300,t.imacron=278,t.Euro=500}),t["Times-Bold"]=ec(function(t){t.space=250,t.exclam=333,t.quotedbl=555,t.numbersign=500,t.dollar=500,t.percent=1e3,t.ampersand=833,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=570,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=333,t.semicolon=333,t.less=570,t.equal=570,t.greater=570,t.question=500,t.at=930,t.A=722,t.B=667,t.C=722,t.D=722,t.E=667,t.F=611,t.G=778,t.H=778,t.I=389,t.J=500,t.K=778,t.L=667,t.M=944,t.N=722,t.O=778,t.P=611,t.Q=778,t.R=722,t.S=556,t.T=667,t.U=722,t.V=722,t.W=1e3,t.X=722,t.Y=722,t.Z=667,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=581,t.underscore=500,t.quoteleft=333,t.a=500,t.b=556,t.c=444,t.d=556,t.e=444,t.f=333,t.g=500,t.h=556,t.i=278,t.j=333,t.k=556,t.l=278,t.m=833,t.n=556,t.o=500,t.p=556,t.q=556,t.r=444,t.s=389,t.t=333,t.u=556,t.v=500,t.w=722,t.x=500,t.y=500,t.z=444,t.braceleft=394,t.bar=220,t.braceright=394,t.asciitilde=520,t.exclamdown=333,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=278,t.quotedblleft=500,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=556,t.fl=556,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodcentered=250,t.paragraph=540,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=500,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=500,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=1e3,t.ordfeminine=300,t.Lslash=667,t.Oslash=778,t.OE=1e3,t.ordmasculine=330,t.ae=722,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=722,t.germandbls=556,t.Idieresis=389,t.eacute=444,t.abreve=500,t.uhungarumlaut=556,t.ecaron=444,t.Ydieresis=722,t.divide=570,t.Yacute=722,t.Acircumflex=722,t.aacute=500,t.Ucircumflex=722,t.yacute=500,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=500,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=747,t.Emacron=667,t.ccaron=444,t.aring=500,t.Ncommaaccent=722,t.lacute=278,t.agrave=500,t.Tcommaaccent=667,t.Cacute=722,t.atilde=500,t.Edotaccent=667,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=494,t.Rcaron=722,t.Gcommaaccent=778,t.ucircumflex=556,t.acircumflex=500,t.Amacron=722,t.rcaron=444,t.ccedilla=444,t.Zdotaccent=667,t.Thorn=611,t.Omacron=778,t.Racute=722,t.Sacute=556,t.dcaron=672,t.Umacron=722,t.uring=556,t.threesuperior=300,t.Ograve=778,t.Agrave=722,t.Abreve=722,t.multiply=570,t.uacute=556,t.Tcaron=667,t.partialdiff=494,t.ydieresis=500,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=500,t.edieresis=444,t.cacute=444,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=389,t.plusminus=570,t.brokenbar=220,t.registered=747,t.Gbreve=778,t.Idotaccent=389,t.summation=600,t.Egrave=667,t.racute=444,t.omacron=500,t.Zacute=667,t.Zcaron=667,t.greaterequal=549,t.Eth=722,t.Ccedilla=722,t.lcommaaccent=278,t.tcaron=416,t.eogonek=444,t.Uogonek=722,t.Aacute=722,t.Adieresis=722,t.egrave=444,t.zacute=444,t.iogonek=278,t.Oacute=778,t.oacute=500,t.amacron=500,t.sacute=389,t.idieresis=278,t.Ocircumflex=778,t.Ugrave=722,t.Delta=612,t.thorn=556,t.twosuperior=300,t.Odieresis=778,t.mu=556,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=667,t.dcroat=556,t.threequarters=750,t.Scedilla=556,t.lcaron=394,t.Kcommaaccent=778,t.Lacute=667,t.trademark=1e3,t.edotaccent=444,t.Igrave=389,t.Imacron=389,t.Lcaron=667,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=556,t.Scommaaccent=556,t.Ohungarumlaut=778,t.degree=400,t.ograve=500,t.Ccaron=722,t.ugrave=556,t.radical=549,t.Dcaron=722,t.rcommaaccent=444,t.Ntilde=722,t.otilde=500,t.Rcommaaccent=722,t.Lcommaaccent=667,t.Atilde=722,t.Aogonek=722,t.Aring=722,t.Otilde=778,t.zdotaccent=444,t.Ecaron=667,t.Iogonek=389,t.kcommaaccent=556,t.minus=570,t.Icircumflex=389,t.ncaron=556,t.tcommaaccent=333,t.logicalnot=570,t.odieresis=500,t.udieresis=556,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=444,t.ncommaaccent=556,t.onesuperior=300,t.imacron=278,t.Euro=500}),t["Times-BoldItalic"]=ec(function(t){t.space=250,t.exclam=389,t.quotedbl=555,t.numbersign=500,t.dollar=500,t.percent=833,t.ampersand=778,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=570,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=333,t.semicolon=333,t.less=570,t.equal=570,t.greater=570,t.question=500,t.at=832,t.A=667,t.B=667,t.C=667,t.D=722,t.E=667,t.F=667,t.G=722,t.H=778,t.I=389,t.J=500,t.K=667,t.L=611,t.M=889,t.N=722,t.O=722,t.P=611,t.Q=722,t.R=667,t.S=556,t.T=611,t.U=722,t.V=667,t.W=889,t.X=667,t.Y=611,t.Z=611,t.bracketleft=333,t.backslash=278,t.bracketright=333,t.asciicircum=570,t.underscore=500,t.quoteleft=333,t.a=500,t.b=500,t.c=444,t.d=500,t.e=444,t.f=333,t.g=500,t.h=556,t.i=278,t.j=278,t.k=500,t.l=278,t.m=778,t.n=556,t.o=500,t.p=500,t.q=500,t.r=389,t.s=389,t.t=278,t.u=556,t.v=444,t.w=667,t.x=500,t.y=444,t.z=389,t.braceleft=348,t.bar=220,t.braceright=348,t.asciitilde=570,t.exclamdown=389,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=278,t.quotedblleft=500,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=556,t.fl=556,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodcentered=250,t.paragraph=500,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=500,t.quotedblright=500,t.guillemotright=500,t.ellipsis=1e3,t.perthousand=1e3,t.questiondown=500,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=1e3,t.AE=944,t.ordfeminine=266,t.Lslash=611,t.Oslash=722,t.OE=944,t.ordmasculine=300,t.ae=722,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=722,t.germandbls=500,t.Idieresis=389,t.eacute=444,t.abreve=500,t.uhungarumlaut=556,t.ecaron=444,t.Ydieresis=611,t.divide=570,t.Yacute=611,t.Acircumflex=667,t.aacute=500,t.Ucircumflex=722,t.yacute=444,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=500,t.Uacute=722,t.uogonek=556,t.Edieresis=667,t.Dcroat=722,t.commaaccent=250,t.copyright=747,t.Emacron=667,t.ccaron=444,t.aring=500,t.Ncommaaccent=722,t.lacute=278,t.agrave=500,t.Tcommaaccent=611,t.Cacute=667,t.atilde=500,t.Edotaccent=667,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=494,t.Rcaron=667,t.Gcommaaccent=722,t.ucircumflex=556,t.acircumflex=500,t.Amacron=667,t.rcaron=389,t.ccedilla=444,t.Zdotaccent=611,t.Thorn=611,t.Omacron=722,t.Racute=667,t.Sacute=556,t.dcaron=608,t.Umacron=722,t.uring=556,t.threesuperior=300,t.Ograve=722,t.Agrave=667,t.Abreve=667,t.multiply=570,t.uacute=556,t.Tcaron=611,t.partialdiff=494,t.ydieresis=444,t.Nacute=722,t.icircumflex=278,t.Ecircumflex=667,t.adieresis=500,t.edieresis=444,t.cacute=444,t.nacute=556,t.umacron=556,t.Ncaron=722,t.Iacute=389,t.plusminus=570,t.brokenbar=220,t.registered=747,t.Gbreve=722,t.Idotaccent=389,t.summation=600,t.Egrave=667,t.racute=389,t.omacron=500,t.Zacute=611,t.Zcaron=611,t.greaterequal=549,t.Eth=722,t.Ccedilla=667,t.lcommaaccent=278,t.tcaron=366,t.eogonek=444,t.Uogonek=722,t.Aacute=667,t.Adieresis=667,t.egrave=444,t.zacute=389,t.iogonek=278,t.Oacute=722,t.oacute=500,t.amacron=500,t.sacute=389,t.idieresis=278,t.Ocircumflex=722,t.Ugrave=722,t.Delta=612,t.thorn=500,t.twosuperior=300,t.Odieresis=722,t.mu=576,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=667,t.dcroat=500,t.threequarters=750,t.Scedilla=556,t.lcaron=382,t.Kcommaaccent=667,t.Lacute=611,t.trademark=1e3,t.edotaccent=444,t.Igrave=389,t.Imacron=389,t.Lcaron=611,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=556,t.Uhungarumlaut=722,t.Eacute=667,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=556,t.Scommaaccent=556,t.Ohungarumlaut=722,t.degree=400,t.ograve=500,t.Ccaron=667,t.ugrave=556,t.radical=549,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=722,t.otilde=500,t.Rcommaaccent=667,t.Lcommaaccent=611,t.Atilde=667,t.Aogonek=667,t.Aring=667,t.Otilde=722,t.zdotaccent=389,t.Ecaron=667,t.Iogonek=389,t.kcommaaccent=500,t.minus=606,t.Icircumflex=389,t.ncaron=556,t.tcommaaccent=278,t.logicalnot=606,t.odieresis=500,t.udieresis=556,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=389,t.ncommaaccent=556,t.onesuperior=300,t.imacron=278,t.Euro=500}),t["Times-Italic"]=ec(function(t){t.space=250,t.exclam=333,t.quotedbl=420,t.numbersign=500,t.dollar=500,t.percent=833,t.ampersand=778,t.quoteright=333,t.parenleft=333,t.parenright=333,t.asterisk=500,t.plus=675,t.comma=250,t.hyphen=333,t.period=250,t.slash=278,t.zero=500,t.one=500,t.two=500,t.three=500,t.four=500,t.five=500,t.six=500,t.seven=500,t.eight=500,t.nine=500,t.colon=333,t.semicolon=333,t.less=675,t.equal=675,t.greater=675,t.question=500,t.at=920,t.A=611,t.B=611,t.C=667,t.D=722,t.E=611,t.F=611,t.G=722,t.H=722,t.I=333,t.J=444,t.K=667,t.L=556,t.M=833,t.N=667,t.O=722,t.P=611,t.Q=722,t.R=611,t.S=500,t.T=556,t.U=722,t.V=611,t.W=833,t.X=611,t.Y=556,t.Z=556,t.bracketleft=389,t.backslash=278,t.bracketright=389,t.asciicircum=422,t.underscore=500,t.quoteleft=333,t.a=500,t.b=500,t.c=444,t.d=500,t.e=444,t.f=278,t.g=500,t.h=500,t.i=278,t.j=278,t.k=444,t.l=278,t.m=722,t.n=500,t.o=500,t.p=500,t.q=500,t.r=389,t.s=389,t.t=278,t.u=500,t.v=444,t.w=667,t.x=444,t.y=444,t.z=389,t.braceleft=400,t.bar=275,t.braceright=400,t.asciitilde=541,t.exclamdown=389,t.cent=500,t.sterling=500,t.fraction=167,t.yen=500,t.florin=500,t.section=500,t.currency=500,t.quotesingle=214,t.quotedblleft=556,t.guillemotleft=500,t.guilsinglleft=333,t.guilsinglright=333,t.fi=500,t.fl=500,t.endash=500,t.dagger=500,t.daggerdbl=500,t.periodcentered=250,t.paragraph=523,t.bullet=350,t.quotesinglbase=333,t.quotedblbase=556,t.quotedblright=556,t.guillemotright=500,t.ellipsis=889,t.perthousand=1e3,t.questiondown=500,t.grave=333,t.acute=333,t.circumflex=333,t.tilde=333,t.macron=333,t.breve=333,t.dotaccent=333,t.dieresis=333,t.ring=333,t.cedilla=333,t.hungarumlaut=333,t.ogonek=333,t.caron=333,t.emdash=889,t.AE=889,t.ordfeminine=276,t.Lslash=556,t.Oslash=722,t.OE=944,t.ordmasculine=310,t.ae=667,t.dotlessi=278,t.lslash=278,t.oslash=500,t.oe=667,t.germandbls=500,t.Idieresis=333,t.eacute=444,t.abreve=500,t.uhungarumlaut=500,t.ecaron=444,t.Ydieresis=556,t.divide=675,t.Yacute=556,t.Acircumflex=611,t.aacute=500,t.Ucircumflex=722,t.yacute=444,t.scommaaccent=389,t.ecircumflex=444,t.Uring=722,t.Udieresis=722,t.aogonek=500,t.Uacute=722,t.uogonek=500,t.Edieresis=611,t.Dcroat=722,t.commaaccent=250,t.copyright=760,t.Emacron=611,t.ccaron=444,t.aring=500,t.Ncommaaccent=667,t.lacute=278,t.agrave=500,t.Tcommaaccent=556,t.Cacute=667,t.atilde=500,t.Edotaccent=611,t.scaron=389,t.scedilla=389,t.iacute=278,t.lozenge=471,t.Rcaron=611,t.Gcommaaccent=722,t.ucircumflex=500,t.acircumflex=500,t.Amacron=611,t.rcaron=389,t.ccedilla=444,t.Zdotaccent=556,t.Thorn=611,t.Omacron=722,t.Racute=611,t.Sacute=500,t.dcaron=544,t.Umacron=722,t.uring=500,t.threesuperior=300,t.Ograve=722,t.Agrave=611,t.Abreve=611,t.multiply=675,t.uacute=500,t.Tcaron=556,t.partialdiff=476,t.ydieresis=444,t.Nacute=667,t.icircumflex=278,t.Ecircumflex=611,t.adieresis=500,t.edieresis=444,t.cacute=444,t.nacute=500,t.umacron=500,t.Ncaron=667,t.Iacute=333,t.plusminus=675,t.brokenbar=275,t.registered=760,t.Gbreve=722,t.Idotaccent=333,t.summation=600,t.Egrave=611,t.racute=389,t.omacron=500,t.Zacute=556,t.Zcaron=556,t.greaterequal=549,t.Eth=722,t.Ccedilla=667,t.lcommaaccent=278,t.tcaron=300,t.eogonek=444,t.Uogonek=722,t.Aacute=611,t.Adieresis=611,t.egrave=444,t.zacute=389,t.iogonek=278,t.Oacute=722,t.oacute=500,t.amacron=500,t.sacute=389,t.idieresis=278,t.Ocircumflex=722,t.Ugrave=722,t.Delta=612,t.thorn=500,t.twosuperior=300,t.Odieresis=722,t.mu=500,t.igrave=278,t.ohungarumlaut=500,t.Eogonek=611,t.dcroat=500,t.threequarters=750,t.Scedilla=500,t.lcaron=300,t.Kcommaaccent=667,t.Lacute=556,t.trademark=980,t.edotaccent=444,t.Igrave=333,t.Imacron=333,t.Lcaron=611,t.onehalf=750,t.lessequal=549,t.ocircumflex=500,t.ntilde=500,t.Uhungarumlaut=722,t.Eacute=611,t.emacron=444,t.gbreve=500,t.onequarter=750,t.Scaron=500,t.Scommaaccent=500,t.Ohungarumlaut=722,t.degree=400,t.ograve=500,t.Ccaron=667,t.ugrave=500,t.radical=453,t.Dcaron=722,t.rcommaaccent=389,t.Ntilde=667,t.otilde=500,t.Rcommaaccent=611,t.Lcommaaccent=556,t.Atilde=611,t.Aogonek=611,t.Aring=611,t.Otilde=722,t.zdotaccent=389,t.Ecaron=611,t.Iogonek=333,t.kcommaaccent=444,t.minus=675,t.Icircumflex=333,t.ncaron=500,t.tcommaaccent=278,t.logicalnot=675,t.odieresis=500,t.udieresis=500,t.notequal=549,t.gcommaaccent=500,t.eth=500,t.zcaron=389,t.ncommaaccent=500,t.onesuperior=300,t.imacron=278,t.Euro=500}),t.ZapfDingbats=ec(function(t){t.space=278,t.a1=974,t.a2=961,t.a202=974,t.a3=980,t.a4=719,t.a5=789,t.a119=790,t.a118=791,t.a117=690,t.a11=960,t.a12=939,t.a13=549,t.a14=855,t.a15=911,t.a16=933,t.a105=911,t.a17=945,t.a18=974,t.a19=755,t.a20=846,t.a21=762,t.a22=761,t.a23=571,t.a24=677,t.a25=763,t.a26=760,t.a27=759,t.a28=754,t.a6=494,t.a7=552,t.a8=537,t.a9=577,t.a10=692,t.a29=786,t.a30=788,t.a31=788,t.a32=790,t.a33=793,t.a34=794,t.a35=816,t.a36=823,t.a37=789,t.a38=841,t.a39=823,t.a40=833,t.a41=816,t.a42=831,t.a43=923,t.a44=744,t.a45=723,t.a46=749,t.a47=790,t.a48=792,t.a49=695,t.a50=776,t.a51=768,t.a52=792,t.a53=759,t.a54=707,t.a55=708,t.a56=682,t.a57=701,t.a58=826,t.a59=815,t.a60=789,t.a61=789,t.a62=707,t.a63=687,t.a64=696,t.a65=689,t.a66=786,t.a67=787,t.a68=713,t.a69=791,t.a70=785,t.a71=791,t.a72=873,t.a73=761,t.a74=762,t.a203=762,t.a75=759,t.a204=759,t.a76=892,t.a77=892,t.a78=788,t.a79=784,t.a81=438,t.a82=138,t.a83=277,t.a84=415,t.a97=392,t.a98=392,t.a99=668,t.a100=668,t.a89=390,t.a90=390,t.a93=317,t.a94=317,t.a91=276,t.a92=276,t.a205=509,t.a85=509,t.a206=410,t.a86=410,t.a87=234,t.a88=234,t.a95=334,t.a96=334,t.a101=732,t.a102=544,t.a103=544,t.a104=910,t.a106=667,t.a107=760,t.a108=760,t.a112=776,t.a111=595,t.a110=694,t.a109=626,t.a120=788,t.a121=788,t.a122=788,t.a123=788,t.a124=788,t.a125=788,t.a126=788,t.a127=788,t.a128=788,t.a129=788,t.a130=788,t.a131=788,t.a132=788,t.a133=788,t.a134=788,t.a135=788,t.a136=788,t.a137=788,t.a138=788,t.a139=788,t.a140=788,t.a141=788,t.a142=788,t.a143=788,t.a144=788,t.a145=788,t.a146=788,t.a147=788,t.a148=788,t.a149=788,t.a150=788,t.a151=788,t.a152=788,t.a153=788,t.a154=788,t.a155=788,t.a156=788,t.a157=788,t.a158=788,t.a159=788,t.a160=894,t.a161=838,t.a163=1016,t.a164=458,t.a196=748,t.a165=924,t.a192=748,t.a166=918,t.a167=927,t.a168=928,t.a169=928,t.a170=834,t.a171=873,t.a172=828,t.a173=924,t.a162=924,t.a174=917,t.a175=930,t.a176=931,t.a177=463,t.a178=883,t.a179=836,t.a193=836,t.a180=867,t.a199=867,t.a181=696,t.a200=696,t.a182=874,t.a201=874,t.a183=760,t.a184=946,t.a197=771,t.a185=865,t.a194=771,t.a198=888,t.a186=967,t.a195=888,t.a187=831,t.a188=873,t.a189=927,t.a190=970,t.a191=918})}),iH=ec(function(t){t.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},t["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439},t["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},t["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},t.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},t["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532},t["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523},t["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532},t["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450},t["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461},t["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441},t["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462},t.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},t.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}});class iz{constructor({glyfTable:t,isGlyphLocationsLong:a,locaTable:i,numGlyphs:r}){this.glyphs=[];const s=new DataView(i.buffer,i.byteOffset,i.byteLength),n=new DataView(t.buffer,t.byteOffset,t.byteLength),l=a?4:2;let o=a?s.getUint32(0):2*s.getUint16(0),c=0;for(let t=0;t<r;t++){c+=l;const t=a?s.getUint32(c):2*s.getUint16(c);if(t===o){this.glyphs.push(new iG({}));continue}const i=iG.parse(o,n);this.glyphs.push(i),o=t}}getSize(){return Math.sumPrecise(this.glyphs.map(t=>t.getSize()+3&-4))}write(){let t=this.getSize(),a=new DataView(new ArrayBuffer(t)),i=t>131070,r=i?4:2,s=new DataView(new ArrayBuffer((this.glyphs.length+1)*r));i?s.setUint32(0,0):s.setUint16(0,0);let n=0,l=0;for(let t of this.glyphs)n+=t.write(n,a),n=n+3&-4,l+=r,i?s.setUint32(l,n):s.setUint16(l,n>>1);return{isLocationLong:i,loca:new Uint8Array(s.buffer),glyf:new Uint8Array(a.buffer)}}scale(t){for(let a=0,i=this.glyphs.length;a<i;a++)this.glyphs[a].scale(t[a])}}class iG{constructor({header:t=null,simple:a=null,composites:i=null}){this.header=t,this.simple=a,this.composites=i}static parse(t,a){let[i,r]=iW.parse(t,a);if(t+=i,r.numberOfContours<0){let i=[];for(;;){let[r,s]=iK.parse(t,a);if(t+=r,i.push(s),!(32&s.flags))break}return new iG({header:r,composites:i})}let s=iX.parse(t,a,r.numberOfContours);return new iG({header:r,simple:s})}getSize(){if(!this.header)return 0;let t=this.simple?this.simple.getSize():Math.sumPrecise(this.composites.map(t=>t.getSize()));return this.header.getSize()+t}write(t,a){if(!this.header)return 0;let i=t;if(t+=this.header.write(t,a),this.simple)t+=this.simple.write(t,a);else for(let i of this.composites)t+=i.write(t,a);return t-i}scale(t){if(!this.header)return;let a=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(a,t),this.simple)this.simple.scale(a,t);else for(let i of this.composites)i.scale(a,t)}}class iW{constructor({numberOfContours:t,xMin:a,yMin:i,xMax:r,yMax:s}){this.numberOfContours=t,this.xMin=a,this.yMin=i,this.xMax=r,this.yMax=s}static parse(t,a){return[10,new iW({numberOfContours:a.getInt16(t),xMin:a.getInt16(t+2),yMin:a.getInt16(t+4),xMax:a.getInt16(t+6),yMax:a.getInt16(t+8)})]}getSize(){return 10}write(t,a){return a.setInt16(t,this.numberOfContours),a.setInt16(t+2,this.xMin),a.setInt16(t+4,this.yMin),a.setInt16(t+6,this.xMax),a.setInt16(t+8,this.yMax),10}scale(t,a){this.xMin=Math.round(t+(this.xMin-t)*a),this.xMax=Math.round(t+(this.xMax-t)*a)}}class iV{constructor({flags:t,xCoordinates:a,yCoordinates:i}){this.xCoordinates=a,this.yCoordinates=i,this.flags=t}}class iX{constructor({contours:t,instructions:a}){this.contours=t,this.instructions=a}static parse(t,a,i){let r=[];for(let s=0;s<i;s++){let i=a.getUint16(t);t+=2,r.push(i)}let s=r[i-1]+1,n=a.getUint16(t);t+=2;let l=new Uint8Array(a).slice(t,t+n);t+=n;let o=[];for(let i=0;i<s;t++,i++){let r=a.getUint8(t);if(o.push(r),8&r){let s=a.getUint8(++t);r^=8;for(let t=0;t<s;t++)o.push(r);i+=s}}let c=[],h=[],u=[],d=[],f=[],g=0,p=0;for(let i=0;i<s;i++){let s=o[i];if(2&s){let i=a.getUint8(t++);p+=16&s?i:-i,h.push(p)}else 16&s||(p+=a.getInt16(t),t+=2),h.push(p);r[g]===i&&(g++,c.push(h),h=[])}p=0,g=0;for(let i=0;i<s;i++){let s=o[i];if(4&s){let i=a.getUint8(t++);p+=32&s?i:-i,u.push(p)}else 32&s||(p+=a.getInt16(t),t+=2),u.push(p);d.push(1&s|64&s),r[g]===i&&(h=c[g],g++,f.push(new iV({flags:d,xCoordinates:h,yCoordinates:u})),u=[],d=[])}return new iX({contours:f,instructions:l})}getSize(){let t=2*this.contours.length+2+this.instructions.length,a=0,i=0;for(let r of this.contours){t+=r.flags.length;for(let s=0,n=r.xCoordinates.length;s<n;s++){let n=r.xCoordinates[s],l=r.yCoordinates[s],o=Math.abs(n-a);o>255?t+=2:o>0&&(t+=1),a=n,(o=Math.abs(l-i))>255?t+=2:o>0&&(t+=1),i=l}}return t}write(t,a){let i=t,r=[],s=[],n=[],l=0,o=0;for(let i of this.contours){for(let t=0,a=i.xCoordinates.length;t<a;t++){let a=i.flags[t],c=i.xCoordinates[t],h=c-l;if(0===h)a|=16,r.push(0);else{let t=Math.abs(h);t<=255?(a|=h>=0?18:2,r.push(t)):r.push(h)}l=c;let u=i.yCoordinates[t];if(0==(h=u-o))a|=32,s.push(0);else{let t=Math.abs(h);t<=255?(a|=h>=0?36:4,s.push(t)):s.push(h)}o=u,n.push(a)}a.setUint16(t,r.length-1),t+=2}for(let i of(a.setUint16(t,this.instructions.length),t+=2,this.instructions.length&&(new Uint8Array(a.buffer,0,a.buffer.byteLength).set(this.instructions,t),t+=this.instructions.length),n))a.setUint8(t++,i);for(let i=0,s=r.length;i<s;i++){let s=r[i],l=n[i];2&l?a.setUint8(t++,s):16&l||(a.setInt16(t,s),t+=2)}for(let i=0,r=s.length;i<r;i++){let r=s[i],l=n[i];4&l?a.setUint8(t++,r):32&l||(a.setInt16(t,r),t+=2)}return t-i}scale(t,a){for(let i of this.contours)if(0!==i.xCoordinates.length)for(let r=0,s=i.xCoordinates.length;r<s;r++)i.xCoordinates[r]=Math.round(t+(i.xCoordinates[r]-t)*a)}}class iK{constructor({flags:t,glyphIndex:a,argument1:i,argument2:r,transf:s,instructions:n}){this.flags=t,this.glyphIndex=a,this.argument1=i,this.argument2=r,this.transf=s,this.instructions=n}static parse(t,a){let i,r,s=t,n=[],l=a.getUint16(t),o=a.getUint16(t+2);t+=4,1&l?(2&l?(i=a.getInt16(t),r=a.getInt16(t+2)):(i=a.getUint16(t),r=a.getUint16(t+2)),t+=4,l^=1):(2&l?(i=a.getInt8(t),r=a.getInt8(t+1)):(i=a.getUint8(t),r=a.getUint8(t+1)),t+=2),8&l?(n.push(a.getUint16(t)),t+=2):64&l?(n.push(a.getUint16(t),a.getUint16(t+2)),t+=4):128&l&&(n.push(a.getUint16(t),a.getUint16(t+2),a.getUint16(t+4),a.getUint16(t+6)),t+=8);let c=null;if(256&l){let i=a.getUint16(t);t+=2,c=new Uint8Array(a).slice(t,t+i),t+=i}return[t-s,new iK({flags:l,glyphIndex:o,argument1:i,argument2:r,transf:n,instructions:c})]}getSize(){let t=4+2*this.transf.length;return 256&this.flags&&(t+=2+this.instructions.length),t+=2,2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(t+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(t+=2),t}write(t,a){let i=t;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),a.setUint16(t,this.flags),a.setUint16(t+2,this.glyphIndex),t+=4,1&this.flags?(2&this.flags?(a.setInt16(t,this.argument1),a.setInt16(t+2,this.argument2)):(a.setUint16(t,this.argument1),a.setUint16(t+2,this.argument2)),t+=4):(a.setUint8(t,this.argument1),a.setUint8(t+1,this.argument2),t+=2),256&this.flags&&(a.setUint16(t,this.instructions.length),t+=2,this.instructions.length&&(new Uint8Array(a.buffer,0,a.buffer.byteLength).set(this.instructions,t),t+=this.instructions.length)),t-i}scale(t,a){}}function iY(t,a,i){t[a]=i>>8&255,t[a+1]=255&i}function iJ(t,a,i){t[a]=i>>24&255,t[a+1]=i>>16&255,t[a+2]=i>>8&255,t[a+3]=255&i}class iZ{constructor(t){this.sfnt=t,this.tables=Object.create(null)}static getSearchParams(t,a){let i=1,r=0;for(;(i^t)>i;)i<<=1,r++;let s=i*a;return{range:s,entry:r,rangeShift:a*t-s}}toArray(){let t=this.sfnt,a=this.tables,i=Object.keys(a);i.sort();let r=i.length,s,n,l,o,c,h=12+16*r,u=[h];for(s=0;s<r;s++)h+=((o=a[i[s]]).length+3&-4)>>>0,u.push(h);let d=new Uint8Array(h);for(s=0;s<r;s++){o=a[i[s]];var f=u[s],g=o;if(g instanceof Uint8Array)d.set(g,f);else if("string"==typeof g)for(let t=0,a=g.length;t<a;t++)d[f++]=255&g.charCodeAt(t);else for(let t of g)d[f++]=255&t}"true"===t&&(t=B(65536)),d[0]=255&t.charCodeAt(0),d[1]=255&t.charCodeAt(1),d[2]=255&t.charCodeAt(2),d[3]=255&t.charCodeAt(3),iY(d,4,r);let p=iZ.getSearchParams(r,16);for(iY(d,6,p.range),iY(d,8,p.entry),iY(d,10,p.rangeShift),h=12,s=0;s<r;s++){c=i[s],d[h]=255&c.charCodeAt(0),d[h+1]=255&c.charCodeAt(1),d[h+2]=255&c.charCodeAt(2),d[h+3]=255&c.charCodeAt(3);let t=0;for(n=u[s],l=u[s+1];n<l;n+=4)t=t+ev(d,n)>>>0;iJ(d,h+4,t),iJ(d,h+8,u[s]),iJ(d,h+12,a[c].length),h+=16}return d}addTable(t,a){if(t in this.tables)throw Error("Table "+t+" already exists");this.tables[t]=a}}let iQ=[4],i1=[5],i0=[6],i2=[7],i9=[8],i5=[12,35],i3=[14],i6=[21],i7=[22],i8=[30],i4=[31];class re{constructor(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}convert(t,a,i){let r=t.length,s,n,l,o=!1;for(let c=0;c<r;c++){let r=t[c];if(r<32){switch(12===r&&(r=(r<<8)+t[++c]),r){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){o=!0;break}let t=this.stack.pop();this.stack.push(0,t);break}o=this.executeCommand(1,iQ);break;case 5:o=this.executeCommand(2,i1);break;case 6:o=this.executeCommand(1,i0);break;case 7:o=this.executeCommand(1,i2);break;case 8:o=this.executeCommand(6,i9);break;case 10:if(this.stack.length<1||!a[l=this.stack.pop()]){o=!0;break}o=this.convert(a[l],a,i);break;case 11:return o;case 13:if(this.stack.length<2){o=!0;break}s=this.stack.pop(),n=this.stack.pop(),this.lsb=n,this.width=s,this.stack.push(s,n),o=this.executeCommand(2,i7);break;case 14:this.output.push(i3[0]);break;case 21:if(this.flexing)break;o=this.executeCommand(2,i6);break;case 22:if(this.flexing){this.stack.push(0);break}o=this.executeCommand(1,i7);break;case 30:o=this.executeCommand(4,i8);break;case 31:o=this.executeCommand(4,i4);break;case 3078:if(i){let t=this.stack.at(-5);this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-t,o=this.executeCommand(0,i3)}else o=this.executeCommand(4,i3);break;case 3079:if(this.stack.length<4){o=!0;break}this.stack.pop(),s=this.stack.pop();let h=this.stack.pop();n=this.stack.pop(),this.lsb=n,this.width=s,this.stack.push(s,n,h),o=this.executeCommand(3,i6);break;case 3084:if(this.stack.length<2){o=!0;break}let u=this.stack.pop(),d=this.stack.pop();this.stack.push(d/u);break;case 3088:if(this.stack.length<2){o=!0;break}l=this.stack.pop();let g=this.stack.pop();if(0===l&&3===g){let t=this.stack.splice(-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]),o=this.executeCommand(13,i5,!0),this.flexing=!1,this.stack.push(t[15],t[16])}else 1===l&&0===g&&(this.flexing=!0);break;case 3089:break;default:f('Unknown type 1 charstring command of "'+r+'"')}if(o)break}else r<=246?r-=139:r=r<=250?256*(r-247)+t[++c]+108:r<=254?-256*(r-251)-t[++c]-108:(255&t[++c])<<24|(255&t[++c])<<16|(255&t[++c])<<8|255&t[++c],this.stack.push(r)}return o}executeCommand(t,a,i){let r=this.stack.length;if(t>r)return!0;let s=r-t;for(let t=s;t<r;t++){let a=this.stack[t];Number.isInteger(a)?this.output.push(28,a>>8&255,255&a):(a=65536*a|0,this.output.push(255,a>>24&255,a>>16&255,a>>8&255,255&a))}return this.output.push(...a),i?this.stack.splice(s,t):this.stack.length=0,!1}}function rt(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function ra(t,a,i){if(i>=t.length)return new Uint8Array(0);let r,s,n=0|a;for(r=0;r<i;r++)n=52845*(t[r]+n)+22719&65535;let l=t.length-i,o=new Uint8Array(l);for(r=i,s=0;s<l;r++,s++){let a=t[r];o[s]=a^n>>8,n=52845*(a+n)+22719&65535}return o}function ri(t){return 47===t||91===t||93===t||123===t||125===t||40===t||41===t}class rr{constructor(t,a,i){if(a){const a=t.getBytes();t=new tr(!((rt(a[0])||eA(a[0]))&&rt(a[1])&&rt(a[2])&&rt(a[3])&&rt(a[4])&&rt(a[5])&&rt(a[6])&&rt(a[7]))?ra(a,55665,4):function(t){let a,i,r=55665,s=t.length,n=new Uint8Array(s>>>1);for(a=0,i=0;a<s;a++){let l,o=t[a];if(rt(o)){for(a++;a<s&&!rt(l=t[a]);)a++;if(a<s){let t=parseInt(String.fromCharCode(o,l),16);n[i++]=t^r>>8,r=52845*(t+r)+22719&65535}}}return n.slice(4,i)}(a))}this.seacAnalysisEnabled=!!i,this.stream=t,this.nextChar()}readNumberArray(){this.getToken();let t=[];for(;;){let a=this.getToken();if(null===a||"]"===a||"}"===a)break;t.push(parseFloat(a||0))}return t}readNumber(){return parseFloat(this.getToken()||0)}readInt(){return 0|parseInt(this.getToken()||0,10)}readBoolean(){return+("true"===this.getToken())}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}getToken(){let t=!1,a=this.currentChar;for(;;){if(-1===a)return null;if(t)10!==a&&13!==a||(t=!1);else if(37===a)t=!0;else if(!eA(a))break;a=this.nextChar()}if(ri(a))return this.nextChar(),String.fromCharCode(a);let i="";do i+=String.fromCharCode(a),a=this.nextChar();while(a>=0&&!eA(a)&&!ri(a));return i}readCharStrings(t,a){return -1===a?t:ra(t,4330,a)}extractFontProgram(t){let a,i,r,s,n=this.stream,l=[],o=[],c=Object.create(null);c.lenIV=4;let h={subrs:[],charstrings:[],properties:{privateData:c}};for(;null!==(a=this.getToken());)if("/"===a)switch(a=this.getToken()){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();null!==(a=this.getToken())&&"end"!==a;){if("/"!==a)continue;let t=this.getToken();i=this.readInt(),this.getToken(),r=i>0?n.getBytes(i):new Uint8Array(0),s=h.properties.privateData.lenIV;let l=this.readCharStrings(r,s);this.nextChar(),"noaccess"===(a=this.getToken())?this.getToken():"/"===a&&this.prevChar(),o.push({glyph:t,encoded:l})}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){let t=this.readInt();i=this.readInt(),this.getToken(),r=i>0?n.getBytes(i):new Uint8Array(0),s=h.properties.privateData.lenIV;let o=this.readCharStrings(r,s);this.nextChar(),"noaccess"===(a=this.getToken())&&this.getToken(),l[t]=o}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":let t=this.readNumberArray();t.length>0&&t.length;break;case"StemSnapH":case"StemSnapV":h.properties.privateData[a]=this.readNumberArray();break;case"StdHW":case"StdVW":h.properties.privateData[a]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":h.properties.privateData[a]=this.readNumber();break;case"ExpansionFactor":h.properties.privateData[a]=this.readNumber()||.06;break;case"ForceBold":h.properties.privateData[a]=this.readBoolean()}for(let{encoded:a,glyph:i}of o){let r=new re,s=r.convert(a,l,this.seacAnalysisEnabled),n=r.output;s&&(n=[14]);let o={glyphName:i,charstring:n,width:r.width,lsb:r.lsb,seac:r.seac};if(".notdef"===i?h.charstrings.unshift(o):h.charstrings.push(o),t.builtInEncoding){let a=t.builtInEncoding.indexOf(i);a>-1&&void 0===t.widths[a]&&a>=t.firstChar&&a<=t.lastChar&&(t.widths[a]=r.width)}}return h}extractFontHeader(t){let a;for(;null!==(a=this.getToken());)if("/"===a)switch(a=this.getToken()){case"FontMatrix":t.fontMatrix=this.readNumberArray();break;case"Encoding":let i,r=this.getToken();if(/^\d+$/.test(r)){i=[];let t=0|parseInt(r,10);this.getToken();for(let r=0;r<t;r++){for(a=this.getToken();"dup"!==a&&"def"!==a;)if(null===(a=this.getToken()))return;if("def"===a)break;let t=this.readInt();this.getToken();let r=this.getToken();i[t]=r,this.getToken()}}else i=aX(r);t.builtInEncoding=i;break;case"FontBBox":let s=this.readNumberArray();t.ascent=Math.max(s[3],s[1]),t.descent=Math.min(s[1],s[3]),t.ascentScaled=!0}}}function rs(t,a,i){let r=t.length,s=a.length,n=r-s,l=i,o=!1;for(;l<n;){let i=0;for(;i<s&&t[l+i]===a[i];)i++;if(i>=s){for(l+=i;l<r&&eA(t[l]);)l++;o=!0;break}l++}return{found:o,length:l}}class rn{constructor(t,a,i){let r=i.length1,s=(i.length2,a.peekBytes(6));const n=128===s[0]&&1===s[1];n&&(a.skip(6),r=s[5]<<24|s[4]<<16|s[3]<<8|s[2]),new rr(function(t,a){let i,r,s,n,l=[101,101,120,101,99],o=t.pos;try{r=(i=t.getBytes(a)).length}catch{}if(r===a&&(s=rs(i,l,a-2*l.length)).found&&s.length===a)return{stream:new tr(i),length:a};for(f('Invalid "Length1" property in Type1 font -- trying to recover.'),t.pos=o;0!==(s=rs(t.peekBytes(2048),l,0)).length;)if(t.pos+=s.length,s.found){n=t.pos-o;break}return(t.pos=o,n)?{stream:new tr(t.getBytes(n)),length:n}:(f('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new tr(t.getBytes(a)),length:a})}(a,r).stream,!1,!0).extractFontHeader(i),n&&((s=a.getBytes(6))[5],s[4],s[3],s[2]);const l=new rr(function(t){let a=t.getBytes();if(0===a.length)throw new A("getEexecBlock - no font program found.");return{stream:new tr(a),length:a.length}}(a).stream,!0,!0).extractFontProgram(i);for(const t in l.properties)i[t]=l.properties[t];const o=l.charstrings,c=this.getType2Charstrings(o),h=this.getType2Subrs(l.subrs);this.charstrings=o,this.data=this.wrap(t,c,this.charstrings,h,i),this.seacs=this.getSeacs(l.charstrings)}get numGlyphs(){return this.charstrings.length+1}getCharset(){let t=[".notdef"];for(let{glyphName:a}of this.charstrings)t.push(a);return t}getGlyphMapping(t){let a,i,r=this.charstrings;if(t.composite){let a=Object.create(null);for(let i=0,s=r.length;i<s;i++)a[t.cMap.charCodeOf(i)]=i+1;return a}let s=[".notdef"];for(i=0;i<r.length;i++)s.push(r[i].glyphName);let n=t.builtInEncoding;if(n)for(let t in a=Object.create(null),n)(i=s.indexOf(n[t]))>=0&&(a[t]=i);return a5(t,a,s)}hasGlyphId(t){return!(t<0)&&!(t>=this.numGlyphs)&&(0===t||this.charstrings[t-1].charstring.length>0)}getSeacs(t){let a=[];for(let i=0,r=t.length;i<r;i++){let r=t[i];r.seac&&(a[i+1]=r.seac)}return a}getType2Charstrings(t){let a=[];for(let i of t)a.push(i.charstring);return a}getType2Subrs(t){let a,i=0,r=t.length;i=r<1133?107:r<33769?1131:32768;let s=[];for(a=0;a<i;a++)s.push([11]);for(a=0;a<r;a++)s.push(t[a]);return s}wrap(t,a,i,r,s){let n,l,o=new ir;o.header=new is(1,0,4,4),o.names=[t];let c=new iu;c.setByName("version",391),c.setByName("Notice",392),c.setByName("FullName",393),c.setByName("FamilyName",394),c.setByName("Weight",395),c.setByName("Encoding",null),c.setByName("FontMatrix",s.fontMatrix),c.setByName("FontBBox",s.bbox),c.setByName("charset",null),c.setByName("CharStrings",null),c.setByName("Private",null),o.topDict=c;let h=new il;h.add("Version 0.11"),h.add("See original notice"),h.add(t),h.add(t),h.add("Medium"),o.strings=h,o.globalSubrIndex=new io;let u=a.length,d=[".notdef"];for(n=0;n<u;n++){let t=i[n].glyphName;-1===ie.indexOf(t)&&h.add(t),d.push(t)}o.charset=new im(!1,0,d);let f=new io;for(f.add([139,14]),n=0;n<u;n++)f.add(a[n]);o.charStrings=f;let g=new ig;g.setByName("Subrs",null);let p=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(n=0,l=p.length;n<l;n++){let t=p[n];if(!(t in s.privateData))continue;let a=s.privateData[t];if(Array.isArray(a))for(let t=a.length-1;t>0;t--)a[t]-=a[t-1];g.setByName(t,a)}o.topDict.privateDict=g;let m=new io;for(n=0,l=r.length;n<l;n++)m.add(r[n]);return g.subrsIndex=m,new ix(o).compile()}}let rl=[[57344,63743],[1048576,1114109]],ro=["ascent","bbox","black","bold","charProcOperatorList","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","disableFontFace","fallbackName","fontExtraProperties","fontMatrix","isInvalidPDFjsFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","systemFontInfo","vertical"],rc=["cMap","composite","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","subtype","toFontChar","toUnicode","type","vmetrics","widths"];function rh(t){if(!t.fontMatrix||t.fontMatrix[0]===i[0])return;let a=.001/t.fontMatrix[0],r=t.widths;for(let t in r)r[t]*=a;t.defaultWidth*=a}function ru(t){if(!t.fallbackToUnicode||t.toUnicode instanceof iN)return;let a=[];for(let i in t.fallbackToUnicode)t.toUnicode.has(i)||(a[i]=t.fallbackToUnicode[i]);a.length>0&&t.toUnicode.amend(a)}class rd{constructor(t,a,i,r,s,n,l,o,c){this.originalCharCode=t,this.fontChar=a,this.unicode=i,this.accent=r,this.width=s,this.vmetric=n,this.operatorListId=l,this.isSpace=o,this.isInFont=c}get category(){return b(this,"category",function(t){let a=a0.get(t);if(a)return a;let i=t.match(a1),r={isWhitespace:!!i?.[1],isZeroWidthDiacritic:!!i?.[2],isInvisibleFormatMark:!!i?.[3]};return a0.set(t,r),r}(this.unicode),!0)}}function rf(t,a,i){t[a+1]=i,t[a]=i>>>8}function rg(t,a){let i=(t<<8)+a;return 32768&i?i-65536:i}function rp(t){return String.fromCharCode(t>>8&255,255&t)}function rm(t){return t>32767?t=32767:t<-32768&&(t=-32768),String.fromCharCode(t>>8&255,255&t)}function rb(t){return"ttcf"===S(t.peekBytes(4))}function ry(t,a){for(let i in a)t[+i]=a[i]}function rw(t,a,i){let r,s=[];for(let i=0,n=t.length;i<n;i++)-1!==(r=aZ(t[i],a))&&(s[i]=r);for(let t in i)-1!==(r=aZ(i[t],a))&&(s[+t]=r);return s}function rx(t){return 3===t.platform&&1===t.encoding&&1033===t.language}function rk(t,a,i=!1){switch(a.length){case 1:return a.charCodeAt(0);case 2:return a.charCodeAt(0)<<8|a.charCodeAt(1)}let r=`Unsupported CID string (charCode ${t}): "${a}".`;if(i)throw new A(r);return f(r),a}function rv(t,a,i,r){let s=Object.create(null),n=new Map,l=[],o=new Set,c=0,h=rl[0][0],u=rl[c][1],d=t=>rl[0][0]<=t&&t<=rl[0][1]||rl[1][0]<=t&&t<=rl[1][1],g=null;for(let p in t){let m=t[p];if(!a(m))continue;if(h>u){if(++c>=rl.length){f("Ran out of space in font private use area.");break}h=rl[c][0],u=rl[c][1]}let b=h++;0===m&&(m=i);let y=r.get(p);if("string"==typeof y)if(1===y.length)y=y.codePointAt(0);else{if(!g){g=new Map;for(let t=64256;t<=64335;t++){let a=String.fromCharCode(t).normalize("NFKD");a.length>1&&g.set(a,t)}}y=g.get(y)||y.codePointAt(0)}!y||d(y)||o.has(m)||(n.set(y,m),o.add(m)),s[b]=m,l[p]=b}return{toFontChar:l,charCodeToGlyphId:s,toUnicodeExtraMap:n,nextAvailableFontCharCode:h}}function rA(t,a,i){let r=function(t,a,i){let r=[];for(let a in t)t[a]>=i||r.push({fontCharCode:0|a,glyphId:t[a]});if(a)for(let[t,s]of a)s>=i||r.push({fontCharCode:t,glyphId:s});0===r.length&&r.push({fontCharCode:0,glyphId:0}),r.sort((t,a)=>t.fontCharCode-a.fontCharCode);let s=[],n=r.length;for(let t=0;t<n;){let a=r[t].fontCharCode,i=[r[t].glyphId];++t;let l=a;for(;t<n&&l+1===r[t].fontCharCode&&(i.push(r[t].glyphId),++l,++t,65535!==l););s.push([a,l,i])}return s}(t,a,i),s=r.at(-1)[1]>65535?2:1,n,l,o,c,h="\0\0"+rp(s)+"\0\x03\0\x01"+B(4+8*s);for(n=r.length-1;n>=0&&!(r[n][0]<=65535);--n);let u=n+1;r[n][0]<65535&&65535===r[n][1]&&(r[n][1]=65534);let d=+(r[n][1]<65535),f=u+d,g=iZ.getSearchParams(f,2),p,m,b,y,w="",x="",k="",v="",A="",C=0;for(n=0,l=u;n<l;n++){m=(p=r[n])[0],b=p[1],w+=rp(m),x+=rp(b);let t=!0;for(o=1,c=(y=p[2]).length;o<c;++o)if(y[o]!==y[o-1]+1){t=!1;break}if(t)k+=rp(y[0]-m&65535),v+=rp(0);else{let t=2*(f-n)+2*C;for(C+=b-m+1,k+=rp(0),v+=rp(t),o=0,c=y.length;o<c;++o)A+=rp(y[o])}}d>0&&(x+="\xff\xff",w+="\xff\xff",k+="\0\x01",v+="\0\0");let S="\0\0"+rp(2*f)+rp(g.range)+rp(g.entry)+rp(g.rangeShift)+x+"\0\0"+w+k+v+A,I="",F="";if(s>1){for(h+="\0\x03\0\n"+B(4+8*s+4+S.length),I="",n=0,l=r.length;n<l;n++){m=(p=r[n])[0];let t=(y=p[2])[0];for(o=1,c=y.length;o<c;++o)y[o]!==y[o-1]+1&&(b=p[0]+o-1,I+=B(m)+B(b)+B(t),m=b+1,t=y[o]);I+=B(m)+B(p[1])+B(t)}F="\0\f\0\0"+B(I.length+16)+"\0\0\0\0"+B(I.length/12)}return h+"\0\x04"+rp(S.length+4)+S+F+I}function rC(t,a,i){i||={unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};let r=0,s=0,n=0,l=0,o=null,c=0,h=-1;if(a){for(let t in a)if((o>(t|=0)||!o)&&(o=t),c<t&&(c=t),(h=function(t,a=-1){if(-1!==a){let i=aQ[a];for(let r=0,s=i.length;r<s;r+=2)if(t>=i[r]&&t<=i[r+1])return a}for(let a=0,i=aQ.length;a<i;a++){let i=aQ[a];for(let r=0,s=i.length;r<s;r+=2)if(t>=i[r]&&t<=i[r+1])return a}return -1}(t,h))<32)r|=1<<h;else if(h<64)s|=1<<h-32;else if(h<96)n|=1<<h-64;else{if(!(h<123))throw new A("Unicode ranges Bits > 123 are reserved for internal usage");l|=1<<h-96}c>65535&&(c=65535)}else o=0,c=255;let u=t.bbox||[0,0,0,0],d=i.unitsPerEm||(t.fontMatrix?1/Math.max(...t.fontMatrix.slice(0,4).map(Math.abs)):1e3),f=t.ascentScaled?1:d/1e3,g=i.ascent||Math.round(f*(t.ascent||u[3])),p=i.descent||Math.round(f*(t.descent||u[1]));p>0&&t.descent>0&&u[1]<0&&(p=-p);let m=i.yMax||g,b=-i.yMin||-p;return"\0\x03\x02$\x01\xf4\0\x05\0\0\x02\x8a\x02\xbb\0\0\0\x8c\x02\x8a\x02\xbb\0\0\x01\xdf\x001\x01\x02\0\0\0\0\x06"+String.fromCharCode(9*!!t.fixedPitch)+"\0\0\0\0\0\0"+B(r)+B(s)+B(n)+B(l)+"*21*"+rp(+!!t.italicAngle)+rp(o||t.firstChar)+rp(c||t.lastChar)+rp(g)+rp(p)+"\0d"+rp(m)+rp(b)+"\0\0\0\0\0\0\0\0"+rp(t.xHeight)+rp(t.capHeight)+rp(0)+rp(o||t.firstChar)+"\0\x03"}function rS(t){return"\0\x03\0\0"+B(Math.floor(65536*t.italicAngle))+"\0\0\0\0"+B(+!!t.fixedPitch)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function rI(t,a){let i,r,s,n,l;a||(a=[[],[]]);let o=[a[0][0]||"Original licence",a[0][1]||t,a[0][2]||"Unknown",a[0][3]||"uniqueID",a[0][4]||t,a[0][5]||"Version 0.11",a[0][6]||t.replaceAll(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63),a[0][7]||"Unknown",a[0][8]||"Unknown",a[0][9]||"Unknown"],c=[];for(i=0,r=o.length;i<r;i++){l=a[1][i]||o[i];let t=[];for(s=0,n=l.length;s<n;s++)t.push(rp(l.charCodeAt(s)));c.push(t.join(""))}let h=[o,c],u=["\0\x01","\0\x03"],d=["\0\0","\0\x01"],f=["\0\0","\x04 "],g=o.length*u.length,p="\0\0"+rp(g)+rp(12*g+6),m=0;for(i=0,r=u.length;i<r;i++){let t=h[i];for(s=0,n=t.length;s<n;s++)l=t[s],p+=u[i]+d[i]+f[i]+rp(s)+rp(l.length)+rp(m),m+=l.length}return p+(o.join("")+c.join(""))}class rB{constructor(t,a,i,r){let s;this.name=t,this.psName=null,this.mimetype=null,this.disableFontFace=r.disableFontFace,this.fontExtraProperties=r.fontExtraProperties,this.loadedName=i.loadedName,this.isType3Font=i.isType3Font,this.missingFile=!1,this.cssFontInfo=i.cssFontInfo,this._charsCache=Object.create(null),this._glyphCache=Object.create(null);let n=!!(2&i.flags);if(!n&&!i.isSimulatedFlags){const a=ik(),i=iA(),r=iC();for(const s of t.split("+")){let t=s.replaceAll(/[,_]/g,"-");if(r[t=(t=a[t]||i[t]||t).split("-",1)[0]]){n=!0;break}}}this.isSerifFont=n,this.isSymbolicFont=!!(4&i.flags),this.isMonospace=!!(1&i.flags);let{type:l,subtype:o}=i;this.type=l,this.subtype=o,this.systemFontInfo=i.systemFontInfo;const c=t.match(/^InvalidPDFjsFont_(.*)_\d+$/);if(this.isInvalidPDFjsFont=!!c,this.isInvalidPDFjsFont?this.fallbackName=c[1]:this.isMonospace?this.fallbackName="monospace":this.isSerifFont?this.fallbackName="serif":this.fallbackName="sans-serif",this.systemFontInfo?.guessFallback&&(this.systemFontInfo.guessFallback=!1,this.systemFontInfo.css+=`,${this.fallbackName}`),this.differences=i.differences,this.widths=i.widths,this.defaultWidth=i.defaultWidth,this.composite=i.composite,this.cMap=i.cMap,this.capHeight=i.capHeight/1e3,this.ascent=i.ascent/1e3,this.descent=i.descent/1e3,this.lineHeight=this.ascent-this.descent,this.fontMatrix=i.fontMatrix,this.bbox=i.bbox,this.defaultEncoding=i.defaultEncoding,this.toUnicode=i.toUnicode,this.toFontChar=[],"Type3"===i.type){for(let t=0;t<256;t++)this.toFontChar[t]=this.differences[t]||i.defaultEncoding[t];return}if(this.cidEncoding=i.cidEncoding||"",this.vertical=!!i.vertical,this.vertical&&(this.vmetrics=i.vmetrics,this.defaultVMetrics=i.defaultVMetrics),!a||a.isEmpty){a&&f('Font file is empty in "'+t+'" ('+this.loadedName+")"),this.fallbackToSystemFont(i);return}[l,o]=function(t,{type:a,subtype:i,composite:r}){let s,n,l;if(65536===ev(l=t.peekBytes(4),0)||"true"===S(l)||rb(t))s=r?"CIDFontType2":"TrueType";else if("OTTO"===S(t.peekBytes(4)))s=r?"CIDFontType2":"OpenType";else{let l;if(37===(l=t.peekBytes(2))[0]&&33===l[1]||128===l[0]&&1===l[1])s=r?"CIDFontType0":"MMType1"===a?"MMType1":"Type1";else{let l;(l=t.peekBytes(4))[0]>=1&&l[3]>=1&&l[3]<=4?r?(s="CIDFontType0",n="CIDFontType0C"):(s="MMType1"===a?"MMType1":"Type1",n="Type1C"):(f("getFontFileType: Unable to detect correct font file Type/Subtype."),s=a,n=i)}}return[s,n]}(a,i),l===this.type&&o===this.subtype||d(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${l}/${o}.`);try{switch(l){case"MMType1":d("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";const r="Type1C"===o||"CIDFontType0C"===o?new iD(a,i):new rn(t,a,i);rh(i),s=this.convert(t,r,i);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",s=this.checkAndRepair(t,a,i),rh(i),this.isOpenType&&(l="OpenType");break;default:throw new A(`Font ${l} is not supported`)}}catch(t){f(t),this.fallbackToSystemFont(i);return}ru(i),this.data=s,this.type=l,this.subtype=o,this.fontMatrix=i.fontMatrix,this.widths=i.widths,this.defaultWidth=i.defaultWidth,this.toUnicode=i.toUnicode,this.seacMap=i.seacMap}get renderer(){return b(this,"renderer",ij.create(this,!0))}exportData(){let t=Object.create(null);for(let a of ro){let i=this[a];void 0!==i&&(t[a]=i)}if(!this.fontExtraProperties)return{data:t};let a=Object.create(null);for(let t of rc){let i=this[t];void 0!==i&&(a[t]=i)}return{data:t,extra:a}}fallbackToSystemFont(t){this.missingFile=!0;let{name:a,type:i}=this,r=a3(a),s=ik(),n=iA(),l=!!s[r],o=!(!n[r]||!s[n[r]]);r=s[r]||n[r]||r;let c=iH()[r];c&&(isNaN(this.ascent)&&(this.ascent=c.ascent/1e3),isNaN(this.descent)&&(this.descent=c.descent/1e3),isNaN(this.capHeight)&&(this.capHeight=c.capHeight/1e3)),this.bold=/bold/gi.test(r),this.italic=/oblique|italic/gi.test(r),this.black=/Black/g.test(a);let h=/Narrow/g.test(a);if(this.remeasure=(!l||h)&&Object.keys(this.widths).length>0,(l||o)&&"CIDFontType2"===i&&this.cidEncoding.startsWith("Identity-")){let i=t.cidToGidMap,r=[];if(ry(r,iI()),/Arial-?Black/i.test(a)?ry(r,iB()):/Calibri/i.test(a)&&ry(r,iF()),i){for(let t in r){let a=r[t];void 0!==i[a]&&(r[+t]=i[a])}i.length!==this.toUnicode.length&&t.hasIncludedToUnicodeMap&&this.toUnicode instanceof iN&&this.toUnicode.forEach(function(t,a){void 0===i[r[t]]&&(r[+t]=a)})}this.toUnicode instanceof iN||this.toUnicode.forEach(function(t,a){r[+t]=a}),this.toFontChar=r,this.toUnicode=new iR(r)}else if(/Symbol/i.test(r))this.toFontChar=rw(aW,aK(),this.differences);else if(/Dingbats/i.test(r))this.toFontChar=rw(aV,aY(),this.differences);else if(l||o){let t=rw(this.defaultEncoding,aK(),this.differences);"CIDFontType2"!==i||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof iN||this.toUnicode.forEach(function(a,i){t[+a]=i}),this.toFontChar=t}else{let t=aK(),i=[];this.toUnicode.forEach((a,r)=>{if(!this.composite){let i=aZ(this.differences[a]||this.defaultEncoding[a],t);-1!==i&&(r=i)}i[+a]=r}),this.composite&&this.toUnicode instanceof iN&&/Tahoma|Verdana/i.test(a)&&ry(i,iI()),this.toFontChar=i}ru(t),this.loadedName=r.split("-",1)[0]}checkAndRepair(t,a,i){var r,s,n,l;let o,c,h,u=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function g(t,a){let i=Object.create(null);i["OS/2"]=null,i.cmap=null,i.head=null,i.hhea=null,i.hmtx=null,i.maxp=null,i.name=null,i.post=null;for(let r=0;r<a;r++){let a=function(t){let a=t.getString(4),i=t.getInt32()>>>0,r=t.getInt32()>>>0,s=t.getInt32()>>>0,n=t.pos;t.pos=t.start||0,t.skip(r);let l=t.getBytes(s);return t.pos=n,"head"===a&&(l[8]=l[9]=l[10]=l[11]=0,l[17]|=32),{tag:a,checksum:i,length:s,offset:r,data:l}}(t);u.includes(a.tag)&&0!==a.length&&(i[a.tag]=a)}return i}function m(t){return{version:t.getString(4),numTables:t.getUint16(),searchRange:t.getUint16(),entrySelector:t.getUint16(),rangeShift:t.getUint16()}}function b(t){let i,r,s=(a.start||0)+t.offset;a.pos=s;let n=[[],[]],l=[],o=t.length,c=s+o;if(0!==a.getUint16()||o<6)return[n,l];let h=a.getUint16(),u=a.getUint16();for(i=0;i<h&&a.pos+12<=c;i++){let t={platform:a.getUint16(),encoding:a.getUint16(),language:a.getUint16(),name:a.getUint16(),length:a.getUint16(),offset:a.getUint16()};(1===t.platform&&0===t.encoding&&0===t.language||rx(t))&&l.push(t)}for(i=0,r=l.length;i<r;i++){let t=l[i];if(t.length<=0)continue;let r=s+u+t.offset;if(r+t.length>c)continue;a.pos=r;let o=t.name;if(t.encoding){let i="";for(let r=0,s=t.length;r<s;r+=2)i+=String.fromCharCode(a.getUint16());n[1][o]=i}else n[0][o]=a.getString(t.length)}return[n,l]}let y=[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 w(t,a){let i,r,s,n,l,o=t.data,c=0,h=0,u=0,g=[],p=[],m=[],b=a.tooComplexToFollowFunctions,w=!1,x=0,k=0;for(let t=o.length;c<t;){let t=o[c++];if(64===t)if(r=o[c++],w||k)c+=r;else for(i=0;i<r;i++)g.push(o[c++]);else if(65===t)if(r=o[c++],w||k)c+=2*r;else for(i=0;i<r;i++)s=o[c++],g.push(s<<8|o[c++]);else if(176==(248&t))if(r=t-176+1,w||k)c+=r;else for(i=0;i<r;i++)g.push(o[c++]);else if(184==(248&t))if(r=t-184+1,w||k)c+=2*r;else for(i=0;i<r;i++)s=o[c++],g.push(rg(s,o[c++]));else if(43!==t||b)if(44!==t||b){if(45===t)if(w)w=!1,h=c;else{if(!(l=p.pop())){f("TT: ENDF bad stack"),a.hintsValid=!1;return}n=m.pop(),o=l.data,c=l.i,a.functionsStackDeltas[n]=g.length-l.stackTop}else if(137===t)(w||k)&&(f("TT: nested IDEFs not allowed"),b=!0),w=!0,u=c;else if(88===t)++x;else if(27===t)k=x;else if(89===t)k===x&&(k=0),--x;else if(28===t&&!w&&!k){let t=g.at(-1);t>0&&(c+=t-1)}}else(w||k)&&(f("TT: nested FDEFs not allowed"),b=!0),w=!0,u=c,n=g.pop(),a.functionsDefined[n]={data:o,i:c};else if(!w&&!k){if(isNaN(n=g.at(-1)))d("TT: CALL empty stack (or invalid entry).");else if(a.functionsUsed[n]=!0,n in a.functionsStackDeltas){let t=g.length+a.functionsStackDeltas[n];if(t<0){f("TT: CALL invalid functions stack delta."),a.hintsValid=!1;return}g.length=t}else if(n in a.functionsDefined&&!m.includes(n)){if(p.push({data:o,i:c,stackTop:g.length-1}),m.push(n),!(l=a.functionsDefined[n])){f("TT: CALL non-existent function"),a.hintsValid=!1;return}o=l.data,c=l.i}}if(!w&&!k){let a=0;for(t<=142?a=y[t]:t>=192&&t<=223?a=-1:t>=224&&(a=-2),t>=113&&t<=117&&(isNaN(r=g.pop())||(a=-(2*r)));a<0&&g.length>0;)g.pop(),a++;for(;a>0;)g.push(NaN),a--}}a.tooComplexToFollowFunctions=b;let v=[o];c>o.length&&v.push(new Uint8Array(c-o.length)),u>h&&(f("TT: complementing a missing function tail"),v.push(new Uint8Array([34,45]))),function(t,a){if(a.length>1){let i,r,s=0;for(i=0,r=a.length;i<r;i++)s+=a[i].length;let n=new Uint8Array(s=s+3&-4),l=0;for(i=0,r=a.length;i<r;i++)n.set(a[i],l),l+=a[i].length;t.data=n,t.length=s}}(t,v)}if(rb(a=new tr(new Uint8Array(a.getBytes())))){let t=function(t,a){let i,{numFonts:r,offsetTable:s}=function(t){let a=t.getString(4);p("ttcf"===a,"Must be a TrueType Collection font.");let i=t.getUint16(),r=t.getUint16(),s=t.getInt32()>>>0,n=[];for(let a=0;a<s;a++)n.push(t.getInt32()>>>0);let l={ttcTag:a,majorVersion:i,minorVersion:r,numFonts:s,offsetTable:n};switch(i){case 1:return l;case 2:return l.dsigTag=t.getInt32()>>>0,l.dsigLength=t.getInt32()>>>0,l.dsigOffset=t.getInt32()>>>0,l}throw new A(`Invalid TrueType Collection majorVersion: ${i}.`)}(t),n=a.split("+");for(let l=0;l<r;l++){t.pos=(t.start||0)+s[l];let r=m(t),o=g(t,r.numTables);if(!o.name)throw new A('TrueType Collection font must contain a "name" table.');let[c]=b(o.name);for(let t=0,s=c.length;t<s;t++)for(let s=0,l=c[t].length;s<l;s++){let l=c[t][s]?.replaceAll(/\s/g,"");if(l){if(l===a)return{header:r,tables:o};if(!(n.length<2))for(let t of n)l===t&&(i={name:t,header:r,tables:o})}}}if(i)return f(`TrueType Collection does not contain "${a}" font, falling back to "${i.name}" font instead.`),{header:i.header,tables:i.tables};throw new A(`TrueType Collection does not contain "${a}" font.`)}(a,this.name);o=t.header,c=t.tables}else o=m(a),c=g(a,o.numTables);let x=!c["CFF "];if(x){if(!c.loca)throw new A('Required "loca" table is not found');c.glyf||(f('Required "glyf" table is not found -- trying to recover.'),c.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{if("OTTO"===o.version&&!i.composite||!c.head||!c.hhea||!c.maxp||!c.post)return this.convert(t,new iD(new tr(c["CFF "].data),i),i);delete c.glyf,delete c.loca,delete c.fpgm,delete c.prep,delete c["cvt "],this.isOpenType=!0}if(!c.maxp)throw new A('Required "maxp" table is not found');if(!x)try{let t=new ii(new tr(c["CFF "].data),i,!0).parse();t.duplicateFirstGlyph();let a=new ix(t);c["CFF "].data=a.compile(),h=t.charStringCount}catch{f("Failed to compile font "+i.loadedName)}a.pos=(a.start||0)+c.maxp.offset;let k=a.getInt32(),v=h??a.getUint16();if(20480===k&&6!==c.maxp.length&&(c.maxp.data=c.maxp.data.subarray(0,6),c.maxp.length=6),65536!==k&&20480!==k){if(6===c.maxp.length)k=20480;else{if(!(c.maxp.length>=32))throw new A('"maxp" table has a wrong version number');k=65536}r=c.maxp.data,s=k,r[3]=255&s,r[2]=s>>>8,r[1]=s>>>16,r[0]=s>>>24}let C=(c.head.data[50]<<8)+c.head.data[51];if(c.loca){let t=C?4*(v+1):2*(v+1);if(c.loca.length!==t){f("Incorrect 'loca' table length -- attempting to fix it.");let i=Object.values(c).filter(Boolean).sort((t,a)=>t.offset-a.offset),r=i.indexOf(c.loca),s=i[r+1]||null;if(s&&c.loca.offset+t<s.offset){let i=a.pos;a.pos=a.start||0,a.skip(c.loca.offset),c.loca.data=a.getBytes(t),c.loca.length=t,a.pos=i}}}if(i.scaleFactors?.length===v&&x){let{scaleFactors:t}=i,a=new iz({glyfTable:c.glyf.data,isGlyphLocationsLong:C,locaTable:c.loca.data,numGlyphs:v});a.scale(t);let{glyf:r,loca:s,isLocationLong:n}=a.write();c.glyf.data=r,c.loca.data=s,!!C!==n&&(c.head.data[50]=0,C=c.head.data[51]=+!!n);let l=c.hmtx.data;for(let a=0;a<v;a++){let i=4*a,r=Math.round(t[a]*((l[i]<<8)+l[i+1]));l[i]=r>>8&255,l[i+1]=255&r,rf(l,i+2,Math.round(t[a]*rg(l[i+2],l[i+3])))}}let S=v+1,I=!0;S>65535&&(I=!1,S=v,f("Not enough space in glyfs to duplicate first glyph."));let B=0,F=0;k>=65536&&c.maxp.length>=32&&(a.pos+=8,a.getUint16()>2&&(c.maxp.data[14]=0,c.maxp.data[15]=2),a.pos+=4,B=a.getUint16(),a.pos+=4,F=a.getUint16()),c.maxp.data[4]=S>>8,c.maxp.data[5]=255&S;let M=function(t,a,i,r){let s={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(t&&w(t,s),a&&w(a,s),t&&function(t,a){if(!t.tooComplexToFollowFunctions)if(t.functionsDefined.length>a)f("TT: more functions defined than expected"),t.hintsValid=!1;else for(let i=0,r=t.functionsUsed.length;i<r;i++){if(i>a){f("TT: invalid function id: "+i),t.hintsValid=!1;return}if(t.functionsUsed[i]&&!t.functionsDefined[i]){f("TT: undefined function: "+i),t.hintsValid=!1;return}}}(s,r),i&&1&i.length){let t=new Uint8Array(i.length+1);t.set(i.data),i.data=t}return s.hintsValid}(c.fpgm,c.prep,c["cvt "],B);if(M||(delete c.fpgm,delete c.prep,delete c["cvt "]),!function(t,a,i,r,s,n){if(!a){i&&(i.data=null);return}t.pos=(t.start||0)+a.offset,t.pos+=4,t.pos+=2,t.pos+=2,t.pos+=2,t.pos+=2,t.pos+=2,t.pos+=2,t.pos+=2,t.pos+=2,t.pos+=2;let l=t.getUint16();t.pos+=8,t.pos+=2;let o=t.getUint16();0===l||2&(r.data[44]<<8)+r.data[45]||(a.data[22]=0,a.data[23]=0),o>s&&(d(`The numOfMetrics (${o}) should not be greater than the numGlyphs (${s}).`),o=s,a.data[34]=(65280&o)>>8,a.data[35]=255&o);let c=s-o-(i.length-4*o>>1);if(c>0){let t=new Uint8Array(i.length+2*c);t.set(i.data),n&&(t[i.length]=i.data[2],t[i.length+1]=i.data[3]),i.data=t}}(a,c.hhea,c.hmtx,c.head,S,I),!c.head)throw new A('Required "head" table is not found');!function(t,a,i){var r,s;let n=t.data,l=(r=n[0],s=n[1],(r<<24)+(s<<16)+(n[2]<<8)+n[3]);l>>16!=1&&(d("Attempting to fix invalid version in head table: "+l),n[0]=0,n[1]=1,n[2]=0,n[3]=0);let o=(n[50]<<8)+n[51];if(o<0||o>1){d("Attempting to fix invalid indexToLocFormat in head table: "+o);let t=a+1;if(i===t<<1)n[50]=0,n[51]=0;else{if(i!==t<<2)throw new A("Could not fix indexToLocFormat: "+o);n[50]=0,n[51]=1}}}(c.head,v,x?c.loca.length:0);let T=Object.create(null);if(x){let t=function(t,a,i,r,s,n,l){let o,c,h,u,d;r?(o=4,c=function(t,a){return t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]},h=function(t,a,i){t[a]=i>>>24&255,t[a+1]=i>>16&255,t[a+2]=i>>8&255,t[a+3]=255&i}):(o=2,c=function(t,a){return t[a]<<9|t[a+1]<<1},h=function(t,a,i){t[a]=i>>9&255,t[a+1]=i>>1&255});let f=n?i+1:i,g=o*(1+f),p=new Uint8Array(g);p.set(t.data.subarray(0,g)),t.data=p;let m=a.data,b=m.length,y=new Uint8Array(b),w=[];for(u=0,d=0;u<i+1;u++,d+=o){let t=c(p,d);t>b&&(t=b),w.push({index:u,offset:t,endOffset:0})}for(w.sort((t,a)=>t.offset-a.offset),u=0;u<i;u++)w[u].endOffset=w[u+1].offset;for(w.sort((t,a)=>t.index-a.index),u=0;u<i;u++){let{offset:t,endOffset:a}=w[u];if(0!==t||0!==a)break;let i=w[u+1].offset;if(0!==i){w[u].endOffset=i;break}}let x=w.at(-2);0!==x.offset&&0===x.endOffset&&(x.endOffset=b);let k=Object.create(null),v=0;for(h(p,0,0),u=0,d=o;u<i;u++,d+=o){let t=function(t,a,i,r,s,n){let l={length:0,sizeOfInstructions:0};if(a<0||a>=t.length||i>t.length||i-a<=12)return l;let o=t.subarray(a,i),c=rg(o[2],o[3]),h=rg(o[4],o[5]),u=rg(o[6],o[7]),d=rg(o[8],o[9]);c>u&&(rf(o,2,u),rf(o,6,c)),h>d&&(rf(o,4,d),rf(o,8,h));let f=rg(o[0],o[1]);if(f<0)return f<-1||(r.set(o,s),l.length=o.length),l;let g,p=10,m=0;for(g=0;g<f;g++)m=(o[p]<<8|o[p+1])+1,p+=2;let b=p,y=o[p]<<8|o[p+1];l.sizeOfInstructions=y;let w=p+=2+y,x=0;for(g=0;g<m;g++){let t=o[p++];192&t&&(o[p-1]=63&t);let a=2;2&t?a=1:16&t&&(a=0);let i=2;4&t?i=1:32&t&&(i=0);let r=a+i;if(x+=r,8&t){let t=o[p++];0===t&&(o[p-1]^=8),g+=t,x+=t*r}}if(0===x)return l;let k=p+x;return k>o.length||(!n&&y>0?(r.set(o.subarray(0,b),s),r.set([0,0],s+b),r.set(o.subarray(w,k),s+b+2),k-=y,o.length-k>3&&(k=k+3&-4),l.length=k):o.length-k>3?(k=k+3&-4,r.set(o.subarray(0,k),s),l.length=k):(r.set(o,s),l.length=o.length)),l}(m,w[u].offset,w[u].endOffset,y,v,s),a=t.length;0===a&&(k[u]=!0),t.sizeOfInstructions>l&&(l=t.sizeOfInstructions),h(p,d,v+=a)}if(0===v){let t=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(u=0,d=o;u<f;u++,d+=o)h(p,d,t.length);a.data=t}else if(n){let i=c(p,o);y.length>i+v?a.data=y.subarray(0,i+v):(a.data=new Uint8Array(i+v),a.data.set(y.subarray(0,v))),a.data.set(y.subarray(0,i),v),h(t.data,p.length-o,v+i)}else a.data=y.subarray(0,v);return{missingGlyphs:k,maxSizeOfInstructions:l}}(c.loca,c.glyf,v,C,M,I,F);T=t.missingGlyphs,k>=65536&&c.maxp.length>=32&&(c.maxp.data[26]=t.maxSizeOfInstructions>>8,c.maxp.data[27]=255&t.maxSizeOfInstructions)}if(!c.hhea)throw new A('Required "hhea" table is not found');0===c.hhea.data[10]&&0===c.hhea.data[11]&&(c.hhea.data[10]=255,c.hhea.data[11]=255);let R={unitsPerEm:(c.head.data[18]<<8)+c.head.data[19],yMax:rg(c.head.data[42],c.head.data[43]),yMin:rg(c.head.data[38],c.head.data[39]),ascent:rg(c.hhea.data[4],c.hhea.data[5]),descent:rg(c.hhea.data[6],c.hhea.data[7]),lineGap:rg(c.hhea.data[8],c.hhea.data[9])};this.ascent=R.ascent/R.unitsPerEm,this.descent=R.descent/R.unitsPerEm,this.lineGap=R.lineGap/R.unitsPerEm,this.cssFontInfo?.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,c.post&&function(t,i,r){let s=(a.start||0)+t.offset;a.pos=s;let n=s+t.length,l=a.getInt32();a.skip(28);let o,c,h=!0;switch(l){case 65536:o=a2;break;case 131072:let u=a.getUint16();if(u!==r){h=!1;break}let d=[];for(c=0;c<u;++c){let t=a.getUint16();if(t>=32768){h=!1;break}d.push(t)}if(!h)break;let g=[],p=[];for(;a.pos<n;){let t=a.getByte();for(c=0,p.length=t;c<t;++c)p[c]=String.fromCharCode(a.getByte());g.push(p.join(""))}for(c=0,o=[];c<u;++c){let t=d[c];t<258?o.push(a2[t]):o.push(g[t-258])}break;case 196608:break;default:f("Unknown/unsupported post table version "+l),h=!1,i.defaultEncoding&&(o=i.defaultEncoding)}i.glyphNames=o}(c.post,i,v),c.post={tag:"post",data:rS(i)};let N=Object.create(null);function D(t){return!T[t]}if(i.composite){let t=i.cidToGidMap||[],a=0===t.length;i.cMap.forEach(function(i,r){if("string"==typeof r&&(r=rk(i,r,!0)),r>65535)throw new A("Max size of CID is 65,535");let s=-1;a?s=r:void 0!==t[r]&&(s=t[r]),s>=0&&s<v&&D(s)&&(N[i]=s)})}else{let t=function(t,a,i,r){let s,n;if(!t)return f("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let l,o=(a.start||0)+t.offset;a.pos=o,a.skip(2);let c=a.getUint16(),h,u=!1;for(let t=0;t<c;t++){let s=a.getUint16(),n=a.getUint16(),l=a.getInt32()>>>0,o=!1;if(h?.platformId!==s||h?.encodingId!==n){if(0!==s||0!==n&&1!==n&&3!==n)if(1===s&&0===n)o=!0;else if(3!==s||1!==n||!r&&h){if(i&&3===s&&0===n){o=!0;let i=!0;if(t<c-1){let t=a.peekBytes(2);(t[0]<<8)+t[1]<s&&(i=!1)}i&&(u=!0)}}else o=!0,i||(u=!0);else o=!0;if(o&&(h={platformId:s,encodingId:n,offset:l}),u)break}}if(h&&(a.pos=o+h.offset),!h||-1===a.peekByte())return f("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let d=a.getUint16(),g=!1,p=[];if(0===d){for(a.skip(4),s=0;s<256;s++){let t=a.getByte();t&&p.push({charCode:s,glyphId:t})}g=!0}else if(2===d){a.skip(4);let t=[],i=0;for(let r=0;r<256;r++){let r=a.getUint16()>>3;t.push(r),i=Math.max(r,i)}let r=[];for(let t=0;t<=i;t++)r.push({firstCode:a.getUint16(),entryCount:a.getUint16(),idDelta:rg(a.getByte(),a.getByte()),idRangePos:a.pos+a.getUint16()});for(let i=0;i<256;i++)if(0===t[i])a.pos=r[0].idRangePos+2*i,n=a.getUint16(),p.push({charCode:i,glyphId:n});else{let l=r[t[i]];for(s=0;s<l.entryCount;s++){let t=(i<<8)+s+l.firstCode;a.pos=l.idRangePos+2*s,0!==(n=a.getUint16())&&(n=(n+l.idDelta)%65536),p.push({charCode:t,glyphId:n})}}}else if(4===d){let t;a.skip(4);let i=a.getUint16()>>1;a.skip(6);let r=[];for(t=0;t<i;t++)r.push({end:a.getUint16()});for(a.skip(2),t=0;t<i;t++)r[t].start=a.getUint16();for(t=0;t<i;t++)r[t].delta=a.getUint16();let c,h=0;for(t=0;t<i;t++){l=r[t];let s=a.getUint16();s?(c=(s>>1)-(i-t),l.offsetIndex=c,h=Math.max(h,c+l.end-l.start+1)):l.offsetIndex=-1}let u=[];for(s=0;s<h;s++)u.push(a.getUint16());for(t=0;t<i;t++){o=(l=r[t]).start;let a=l.end,i=l.delta;for(c=l.offsetIndex,s=o;s<=a;s++)65535!==s&&(n=(n=c<0?s:u[c+s-o])+i&65535,p.push({charCode:s,glyphId:n}))}}else if(6===d){a.skip(4);let t=a.getUint16(),i=a.getUint16();for(s=0;s<i;s++){n=a.getUint16();let i=t+s;p.push({charCode:i,glyphId:n})}}else{if(12!==d)return f("cmap table has unsupported format: "+d),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};{a.skip(10);let t=a.getInt32()>>>0;for(s=0;s<t;s++){let t=a.getInt32()>>>0,i=a.getInt32()>>>0,r=a.getInt32()>>>0;for(let a=t;a<=i;a++)p.push({charCode:a,glyphId:r++})}}}p.sort((t,a)=>t.charCode-a.charCode);let m=[],b=new Set;for(let t of p){let{charCode:a}=t;b.has(a)||(b.add(a),m.push(t))}return{platformId:h.platformId,encodingId:h.encodingId,mappings:m,hasShortCmap:g}}(c.cmap,a,this.isSymbolicFont,i.hasEncoding),r=t.platformId,s=t.encodingId,n=t.mappings,l=[],o=!1;if(i.hasEncoding&&("MacRomanEncoding"===i.baseEncodingName||"WinAnsiEncoding"===i.baseEncodingName)&&(l=aX(i.baseEncodingName)),i.hasEncoding&&!this.isSymbolicFont&&(3===r&&1===s||1===r&&0===s)){let t=aK();for(let a=0;a<256;a++){let o,c;if(!(o=void 0!==this.differences[a]?this.differences[a]:l.length&&""!==l[a]?l[a]:az[a]))continue;let h=a9(o,t);if(3===r&&1===s?c=t[h]:1===r&&0===s&&(c=aH.indexOf(h)),void 0===c){if(!i.glyphNames&&i.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof iN)){let t=this.toUnicode.get(a);t&&(c=t.codePointAt(0))}if(void 0===c)continue}for(let t of n)if(t.charCode===c){N[a]=t.glyphId;break}}}else if(0===r){for(let t of n)N[t.charCode]=t.glyphId;o=!0}else if(3===r&&0===s)for(let t of n){let a=t.charCode;a>=61440&&a<=61695&&(a&=255),N[a]=t.glyphId}else for(let t of n)N[t.charCode]=t.glyphId;if(i.glyphNames&&(l.length||this.differences.length))for(let t=0;t<256;++t){if(!o&&void 0!==N[t])continue;let a=this.differences[t]||l[t];if(!a)continue;let r=i.glyphNames.indexOf(a);r>0&&D(r)&&(N[t]=r)}}0===N.length&&(N[0]=0);let O=S-1;if(I||(O=0),!i.cssFontInfo){let t,r,s=rv(N,D,O,this.toUnicode);this.toFontChar=s.toFontChar,c.cmap={tag:"cmap",data:rA(s.charCodeToGlyphId,s.toUnicodeExtraMap,S)},c["OS/2"]&&(n=c["OS/2"],(l=a).pos=(l.start||0)+n.offset,t=l.getUint16(),l.skip(60),r=l.getUint16(),!(t<4&&768&r||l.getUint16()>l.getUint16())&&(l.skip(6),0!==l.getUint16()&&(n.data[8]=n.data[9]=0,1)))||(c["OS/2"]={tag:"OS/2",data:rC(i,s.charCodeToGlyphId,R)})}if(c.name){let[a,r]=b(c.name);c.name.data=rI(t,a),this.psName=a[0][6]||null,i.composite||function(t,a,i){if(t.isInternalFont||t.hasIncludedToUnicodeMap||t.hasEncoding||t.toUnicode instanceof iN||!a||0===i.length||t.defaultEncoding===aG)return;for(let t of i)if(!rx(t))return;let r=[],s=aK();for(let t in aG){let a=aG[t];if(""===a)continue;let i=s[a];void 0!==i&&(r[t]=String.fromCharCode(i))}r.length>0&&t.toUnicode.amend(r)}(i,this.isSymbolicFont,r)}else c.name={tag:"name",data:rI(this.name)};let P=new iZ(o.version);for(let t in c)P.addTable(t,c[t].data);return P.toArray()}convert(t,a,r){r.fixedPitch=!1,r.builtInEncoding&&function(t,a){if(t.isInternalFont||t.hasIncludedToUnicodeMap||a===t.defaultEncoding||t.toUnicode instanceof iN)return;let i=[],r=aK();for(let s in a){if(t.hasEncoding&&(t.baseEncodingName||void 0!==t.differences[s]))continue;let n=aZ(a[s],r);-1!==n&&(i[s]=String.fromCharCode(n))}i.length>0&&t.toUnicode.amend(i)}(r,r.builtInEncoding);let s=1;a instanceof iD&&(s=a.numGlyphs-1);let n=a.getGlyphMapping(r),l=null,o=n,c=null;r.cssFontInfo||(l=rv(n,a.hasGlyphId.bind(a),s,this.toUnicode),this.toFontChar=l.toFontChar,o=l.charCodeToGlyphId,c=l.toUnicodeExtraMap);let h=a.numGlyphs;function u(t,a){for(let i in t)if(a===t[i])return 0|i;return l.charCodeToGlyphId[l.nextAvailableFontCharCode]=a,l.nextAvailableFontCharCode++}let d=a.seacs;if(l&&d?.length){let t=r.fontMatrix||i,s=a.getCharset(),o=Object.create(null);for(let a in d){let i=d[a|=0],r=az[i[2]],c=az[i[3]],h=s.indexOf(r),f=s.indexOf(c);if(h<0||f<0)continue;let g={x:i[0]*t[0]+i[1]*t[2]+t[4],y:i[0]*t[1]+i[1]*t[3]+t[5]},p=function(t,a){let i=null;for(let r in t)a===t[r]&&(i||=[]).push(0|r);return i}(n,a);if(p)for(let t of p){let a=l.charCodeToGlyphId,i=u(a,h),r=u(a,f);o[t]={baseFontCharCode:i,accentFontCharCode:r,accentOffset:g}}}r.seacMap=o}let f=r.fontMatrix?1/Math.max(...r.fontMatrix.slice(0,4).map(Math.abs)):1e3,g=new iZ("OTTO");return g.addTable("CFF ",a.data),g.addTable("OS/2",rC(r,o)),g.addTable("cmap",rA(o,c,h)),g.addTable("head","\0\x01\0\0\0\0\x10\0\0\0\0\0_\x0f<\xf5\0\0"+rm(f)+"\0\0\0\0\x9e\v~'\0\0\0\0\x9e\v~'\0\0"+rm(r.descent)+"\x0f\xff"+rm(r.ascent)+rp(2*!!r.italicAngle)+"\0\x11\0\0\0\0\0\0"),g.addTable("hhea","\0\x01\0\0"+rm(r.ascent)+rm(r.descent)+"\0\0\xff\xff\0\0\0\0\0\0"+rm(r.capHeight)+rm(Math.tan(r.italicAngle)*r.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+rp(h)),g.addTable("hmtx",function(){let t=a.charstrings,i=a.cff?a.cff.widths:null,r="\0\0\0\0";for(let a=1;a<h;a++){let s=0;if(t){let i=t[a-1];s="width"in i?i.width:0}else i&&(s=Math.ceil(i[a]||0));r+=rp(s)+rp(0)}return r}()),g.addTable("maxp","\0\0P\0"+rp(h)),g.addTable("name",rI(t)),g.addTable("post",rS(r)),g.toArray()}get _spaceWidth(){let t;for(let a of["space","minus","one","i","I"]){if(a in this.widths){t=this.widths[a];break}let i=aK()[a],r=0;if(this.composite&&this.cMap.contains(i)&&"string"==typeof(r=this.cMap.lookup(i))&&(r=rk(i,r)),!r&&this.toUnicode&&(r=this.toUnicode.charCodeOf(i)),r<=0&&(r=i),t=this.widths[r])break}return b(this,"_spaceWidth",t||this.defaultWidth)}_charToGlyph(t,a=!1){let i,r,s,n=this._glyphCache[t];if(n?.isSpace===a)return n;let l=t;this.cMap?.contains(t)&&"string"==typeof(l=this.cMap.lookup(t))&&(l=rk(t,l)),"number"!=typeof(r=this.widths[l])&&(r=this.defaultWidth);let o=this.vmetrics?.[l],c=this.toUnicode.get(t)||t;"number"==typeof c&&(c=String.fromCharCode(c));let h=void 0!==this.toFontChar[t];if(i=this.toFontChar[t]||t,this.missingFile){var u;let a=this.differences[t]||this.defaultEncoding[t];(".notdef"===a||""===a)&&"Type1"===this.type&&(i=32,""===a&&(r||=this._spaceWidth,c=String.fromCharCode(i))),i=(u=i)>=65520&&u<=65535?0:u>=62976&&u<=63743?aJ()[u]||u:173===u?45:u}this.isType3Font&&(s=i);let d=null;if(this.seacMap?.[t]){h=!0;let a=this.seacMap[t];i=a.baseFontCharCode,d={fontChar:String.fromCodePoint(a.accentFontCharCode),offset:a.accentOffset}}let g="";if("number"==typeof i&&(i<=1114111?g=String.fromCodePoint(i):f(`charToGlyph - invalid fontCharCode: ${i}`)),this.missingFile&&this.vertical&&1===g.length){let t=a6()[g.charCodeAt(0)];t&&(g=c=String.fromCharCode(t))}return n=new rd(t,g,c,d,r,o,s,a,h),this._glyphCache[t]=n}charsToGlyphs(t){let a=this._charsCache[t];if(a)return a;if(a=[],this.cMap){let i=Object.create(null),r=t.length,s=0;for(;s<r;){this.cMap.readCharCode(t,s,i);let{charcode:r,length:n}=i;s+=n;let l=this._charToGlyph(r,1===n&&32===t.charCodeAt(s-1));a.push(l)}}else for(let i=0,r=t.length;i<r;++i){let r=t.charCodeAt(i),s=this._charToGlyph(r,32===r);a.push(s)}return this._charsCache[t]=a}getCharPositions(t){let a=[];if(this.cMap){let i=Object.create(null),r=0;for(;r<t.length;){this.cMap.readCharCode(t,r,i);let s=i.length;a.push([r,r+s]),r+=s}}else for(let i=0,r=t.length;i<r;++i)a.push([i,i+1]);return a}get glyphCacheValues(){return Object.values(this._glyphCache)}encodeString(t){let a=[],i=[],r=()=>a.length%2==1,s=this.toUnicode instanceof iN?t=>this.toUnicode.charCodeOf(t):t=>this.toUnicode.charCodeOf(String.fromCodePoint(t));for(let n=0,l=t.length;n<l;n++){let l=t.codePointAt(n);if(l>55295&&(l<57344||l>65533)&&n++,this.toUnicode){let t=s(l);if(-1!==t){r()&&(a.push(i.join("")),i.length=0);for(let a=(this.cMap?this.cMap.getCharCodeLength(t):1)-1;a>=0;a--)i.push(String.fromCharCode(t>>8*a&255));continue}}r()||(a.push(i.join("")),i.length=0),i.push(String.fromCodePoint(l))}return a.push(i.join("")),a}}class rF{constructor(t){this.error=t,this.loadedName="g_font_error",this.missingFile=!0}charsToGlyphs(){return[]}encodeString(t){return[t]}exportData(){return{error:this.error}}}class rM{#N;#z;#G;static strings=["fontFamily","fontWeight","italicAngle"];static write(t){let a=new TextEncoder,i={},r=0;for(let s of rM.strings){let n=a.encode(t[s]);i[s]=n,r+=4+n.length}let s=new ArrayBuffer(r),n=new Uint8Array(s),l=new DataView(s),o=0;for(let t of rM.strings){let a=i[t],r=a.length;l.setUint32(o,r),n.set(a,o+4),o+=4+r}return p(o===s.byteLength,"CssFontInfo.write: Buffer overflow"),s}constructor(t){this.#N=t,this.#z=new DataView(this.#N),this.#G=new TextDecoder}#W(t){p(t<rM.strings.length,"Invalid string index");let a=0;for(let i=0;i<t;i++)a+=this.#z.getUint32(a)+4;let i=this.#z.getUint32(a);return this.#G.decode(new Uint8Array(this.#N,a+4,i))}get fontFamily(){return this.#W(0)}get fontWeight(){return this.#W(1)}get italicAngle(){return this.#W(2)}}class rT{#N;#z;#G;static strings=["css","loadedName","baseFontName","src"];static write(t){let a=new TextEncoder,i={},r=0;for(let s of rT.strings){let n=a.encode(t[s]);i[s]=n,r+=4+n.length}let s,n,l=1+(r+=4);t.style&&(s=a.encode(t.style.style),n=a.encode(t.style.weight),l+=4+s.length+4+n.length);let o=new ArrayBuffer(l),c=new Uint8Array(o),h=new DataView(o),u=0;for(let a of(h.setUint8(u++,+!!t.guessFallback),h.setUint32(u,0),u+=4,r=0,rT.strings)){let t=i[a],s=t.length;r+=4+s,h.setUint32(u,s),c.set(t,u+4),u+=4+s}return h.setUint32(u-r-4,r),t.style&&(h.setUint32(u,s.length),c.set(s,u+4),u+=4+s.length,h.setUint32(u,n.length),c.set(n,u+4),u+=4+n.length),p(u<=o.byteLength,"SubstitionInfo.write: Buffer overflow"),o.transferToFixedLength(u)}constructor(t){this.#N=t,this.#z=new DataView(this.#N),this.#G=new TextDecoder}get guessFallback(){return 0!==this.#z.getUint8(0)}#W(t){p(t<rT.strings.length,"Invalid string index");let a=5;for(let i=0;i<t;i++)a+=this.#z.getUint32(a)+4;let i=this.#z.getUint32(a);return this.#G.decode(new Uint8Array(this.#N,a+4,i))}get css(){return this.#W(0)}get loadedName(){return this.#W(1)}get baseFontName(){return this.#W(2)}get src(){return this.#W(3)}get style(){let t=1;t+=4+this.#z.getUint32(t);let a=this.#z.getUint32(t),i=this.#G.decode(new Uint8Array(this.#N,t+4,a));t+=4+a;let r=this.#z.getUint32(t);return{style:i,weight:this.#G.decode(new Uint8Array(this.#N,t+4,r))}}}class rR{static bools=["black","bold","disableFontFace","fontExtraProperties","isInvalidPDFjsFont","isType3Font","italic","missingFile","remeasure","vertical"];static numbers=["ascent","defaultWidth","descent"];static strings=["fallbackName","loadedName","mimetype","name"];static #V=Math.ceil(2*this.bools.length/8);static #X=this.#V+8*this.numbers.length;static #K=this.#X+1+8;static #Y=this.#K+1+48;static #J=this.#Y+1+6;#N;#G;#z;constructor({data:t,extra:a}){this.#N=t,this.#G=new TextDecoder,this.#z=new DataView(this.#N),a&&Object.assign(this,a)}#Z(t){p(t<rR.bools.length,"Invalid boolean index");let a=Math.floor(t/4),i=this.#z.getUint8(a)>>2*t%8&3;return 0===i?void 0:2===i}get black(){return this.#Z(0)}get bold(){return this.#Z(1)}get disableFontFace(){return this.#Z(2)}get fontExtraProperties(){return this.#Z(3)}get isInvalidPDFjsFont(){return this.#Z(4)}get isType3Font(){return this.#Z(5)}get italic(){return this.#Z(6)}get missingFile(){return this.#Z(7)}get remeasure(){return this.#Z(8)}get vertical(){return this.#Z(9)}#Q(t){return p(t<rR.numbers.length,"Invalid number index"),this.#z.getFloat64(rR.#V+8*t)}get ascent(){return this.#Q(0)}get defaultWidth(){return this.#Q(1)}get descent(){return this.#Q(2)}get bbox(){let t=rR.#X;if(0===this.#z.getUint8(t))return;t+=1;let a=[];for(let i=0;i<4;i++)a.push(this.#z.getInt16(t,!0)),t+=2;return a}get fontMatrix(){let t=rR.#K;if(0===this.#z.getUint8(t))return;t+=1;let a=[];for(let i=0;i<6;i++)a.push(this.#z.getFloat64(t,!0)),t+=8;return a}get defaultVMetrics(){let t=rR.#Y;if(0===this.#z.getUint8(t))return;t+=1;let a=[];for(let i=0;i<3;i++)a.push(this.#z.getInt16(t,!0)),t+=2;return a}#W(t){p(t<rR.strings.length,"Invalid string index");let a=rR.#J+4;for(let i=0;i<t;i++)a+=this.#z.getUint32(a)+4;let i=this.#z.getUint32(a),r=new Uint8Array(i);return r.set(new Uint8Array(this.#N,a+4,i)),this.#G.decode(r)}get fallbackName(){return this.#W(0)}get loadedName(){return this.#W(1)}get mimetype(){return this.#W(2)}get name(){return this.#W(3)}get data(){let t=rR.#J;t+=4+this.#z.getUint32(t),t+=4+this.#z.getUint32(t),t+=4+this.#z.getUint32(t);let a=this.#z.getUint32(t);if(0!==a)return new Uint8Array(this.#N,t+4,a)}clearData(){let t=rR.#J;t+=4+this.#z.getUint32(t),t+=4+this.#z.getUint32(t),t+=4+this.#z.getUint32(t);let a=this.#z.getUint32(t);new Uint8Array(this.#N,t+4,a).fill(0),this.#z.setUint32(t,0)}get cssFontInfo(){let t=rR.#J;t+=4+this.#z.getUint32(t),t+=4+this.#z.getUint32(t);let a=this.#z.getUint32(t);if(0===a)return null;let i=new Uint8Array(a);return i.set(new Uint8Array(this.#N,t+4,a)),new rM(i.buffer)}get systemFontInfo(){let t=rR.#J;t+=4+this.#z.getUint32(t);let a=this.#z.getUint32(t);if(0===a)return null;let i=new Uint8Array(a);return i.set(new Uint8Array(this.#N,t+4,a)),new rT(i.buffer)}static write(t){let a=t.systemFontInfo?rT.write(t.systemFontInfo):null,i=t.cssFontInfo?rM.write(t.cssFontInfo):null,r=new TextEncoder,s={},n=0;for(let a of rR.strings)s[a]=r.encode(t[a]),n+=4+s[a].length;let l=new ArrayBuffer(rR.#J+4+n+4+(a?a.byteLength:0)+4+(i?i.byteLength:0)+4+(t.data?t.data.length:0)),o=new Uint8Array(l),c=new DataView(l),h=0,u=rR.bools.length,d=0,f=0;for(let a=0;a<u;a++){let i=t[rR.bools[a]];d|=(void 0===i?0:i?2:1)<<f,(8===(f+=2)||a===u-1)&&(c.setUint8(h++,d),d=0,f=0)}for(let a of(p(h===rR.#V,"FontInfo.write: Boolean properties offset mismatch"),rR.numbers))c.setFloat64(h,t[a]),h+=8;if(p(h===rR.#X,"FontInfo.write: Number properties offset mismatch"),t.bbox)for(let a of(c.setUint8(h++,4),t.bbox))c.setInt16(h,a,!0),h+=2;else c.setUint8(h++,0),h+=8;if(p(h===rR.#K,"FontInfo.write: BBox properties offset mismatch"),t.fontMatrix)for(let a of(c.setUint8(h++,6),t.fontMatrix))c.setFloat64(h,a,!0),h+=8;else c.setUint8(h++,0),h+=48;if(p(h===rR.#Y,"FontInfo.write: FontMatrix properties offset mismatch"),t.defaultVMetrics)for(let a of(c.setUint8(h++,1),t.defaultVMetrics))c.setInt16(h,a,!0),h+=2;else c.setUint8(h++,0),h+=6;for(let t of(p(h===rR.#J,"FontInfo.write: DefaultVMetrics properties offset mismatch"),c.setUint32(rR.#J,0),h+=4,rR.strings)){let a=s[t],i=a.length;c.setUint32(h,i),o.set(a,h+4),h+=4+i}if(c.setUint32(rR.#J,h-rR.#J-4),a){let t=a.byteLength;c.setUint32(h,t),p(h+4+t<=l.byteLength,"FontInfo.write: Buffer overflow at systemFontInfo"),o.set(new Uint8Array(a),h+4),h+=4+t}else c.setUint32(h,0),h+=4;if(i){let t=i.byteLength;c.setUint32(h,t),p(h+4+t<=l.byteLength,"FontInfo.write: Buffer overflow at cssFontInfo"),o.set(new Uint8Array(i),h+4),h+=4+t}else c.setUint32(h,0),h+=4;return void 0===t.data?(c.setUint32(h,0),h+=4):(c.setUint32(h,t.data.length),o.set(t.data,h+4),h+=4+t.data.length),p(h<=l.byteLength,"FontInfo.write: Buffer overflow"),l.transferToFixedLength(h)}}class rN{static #ee=0;static #et=1;static #ea=2;static #ei=3;static #er=4;static #es=8;static #en=12;static #el=16;constructor(t){this.buffer=t,this.view=new DataView(t),this.data=new Uint8Array(t)}static write(t){let a,i=null,r=[],s=[],n=[],l=[],o=null,c=null;switch(t[0]){case"RadialAxial":a="axial"===t[1]?1:2,i=t[2],n=t[3],1===a?r.push(...t[4],...t[5]):r.push(t[4][0],t[4][1],t[6],t[5][0],t[5][1],t[7]);break;case"Mesh":a=3,o=t[1],r=t[2],s=t[3],l=t[4]||[],i=t[6],c=t[7];break;default:throw Error(`Unsupported pattern type: ${t[0]}`)}let h=Math.floor(r.length/2),u=Math.floor(s.length/3),d=n.length,f=l.length,g=0;for(let t of l)g+=1,g=4*Math.ceil(g/4)+(4+4*t.coords.length)+(4+4*t.colors.length),void 0!==t.verticesPerRow&&(g+=4);let p=new ArrayBuffer(20+8*h+3*u+8*d+16*!!i+3*!!c+g),m=new DataView(p),b=new Uint8Array(p);m.setUint8(rN.#ee,a),m.setUint8(rN.#et,+!!i),m.setUint8(rN.#ea,+!!c),m.setUint8(rN.#ei,o),m.setUint32(rN.#er,h,!0),m.setUint32(rN.#es,u,!0),m.setUint32(rN.#en,d,!0),m.setUint32(rN.#el,f,!0);let y=20;for(let[t,a]of(new Float32Array(p,20,2*h).set(r),y+=8*h,b.set(s,y),y+=3*u,n))m.setFloat32(y,t,!0),y+=4,m.setUint32(y,parseInt(a.slice(1),16),!0),y+=4;if(i)for(let t of i)m.setFloat32(y,t,!0),y+=4;c&&(b.set(c,y),y+=3);for(let t=0;t<l.length;t++){let a=l[t];m.setUint8(y,a.type),y+=1,y=4*Math.ceil(y/4),m.setUint32(y,a.coords.length,!0),new Int32Array(p,y+=4,a.coords.length).set(a.coords),y+=4*a.coords.length,m.setUint32(y,a.colors.length,!0),new Int32Array(p,y+=4,a.colors.length).set(a.colors),y+=4*a.colors.length,void 0!==a.verticesPerRow&&(m.setUint32(y,a.verticesPerRow,!0),y+=4)}return p}getIR(){let t=this.view,a=this.data[rN.#ee],i=!!this.data[rN.#et],r=!!this.data[rN.#ea],s=t.getUint32(rN.#er,!0),n=t.getUint32(rN.#es,!0),l=t.getUint32(rN.#en,!0),o=t.getUint32(rN.#el,!0),c=20,h=new Float32Array(this.buffer,c,2*s);c+=8*s;let u=new Uint8Array(this.buffer,c,3*n);c+=3*n;let d=[];for(let a=0;a<l;++a){let a=t.getFloat32(c,!0);c+=4;let i=t.getUint32(c,!0);c+=4,d.push([a,`#${i.toString(16).padStart(6,"0")}`])}let f=null;if(i){f=[];for(let a=0;a<4;++a)f.push(t.getFloat32(c,!0)),c+=4}let g=null;r&&(g=new Uint8Array(this.buffer,c,3),c+=3);let p=[];for(let a=0;a<o;++a){let a=t.getUint8(c);c+=1,c=4*Math.ceil(c/4);let i=t.getUint32(c,!0);c+=4;let r=new Int32Array(this.buffer,c,i);c+=4*i;let s=t.getUint32(c,!0);c+=4;let n=new Int32Array(this.buffer,c,s);c+=4*s;let l={type:a,coords:r,colors:n};2===a&&(l.verticesPerRow=t.getUint32(c,!0),c+=4),p.push(l)}if(1===a)return["RadialAxial","axial",f,d,Array.from(h.slice(0,2)),Array.from(h.slice(2,4)),null,null];if(2===a)return["RadialAxial","radial",f,d,[h[0],h[1]],[h[3],h[4]],h[2],h[5]];if(3===a){let t=this.data[rN.#ei],a=null;if(h.length>0){let t=h[0],i=h[0],r=h[1],s=h[1];for(let a=0;a<h.length;a+=2){let n=h[a],l=h[a+1];t=t>n?n:t,r=r>l?l:r,i=i<n?n:i,s=s<l?l:s}a=[t,r,i,s]}return["Mesh",t,h,u,p,a,f,g]}throw Error(`Unsupported pattern kind: ${a}`)}}class rD{static write(t){let a;return(M.isFloat16ArraySupported?new Float16Array(a=new ArrayBuffer(2*t.length)):new Float32Array(a=new ArrayBuffer(4*t.length))).set(t),a}#N;constructor(t){this.#N=t}get path(){return M.isFloat16ArraySupported?new Float16Array(this.#N):new Float32Array(this.#N)}}class rO{constructor(){g("Cannot initialize Pattern.")}static parseShading(t,a,i,r,s,n){let l=t instanceof ei?t.dict:t,o=l.get("ShadingType");try{switch(o){case 2:case 3:return new rE(l,a,i,r,s,n);case 4:case 5:case 6:case 7:return new rq(t,a,i,r,s,n);default:throw new A("Unsupported ShadingType: "+o)}}catch(t){if(t instanceof eh)throw t;return f(t),new rj}}}class rP{static SMALL_NUMBER=1e-6;getIR(){g("Abstract method `getIR` called.")}}class rE extends rP{constructor(t,a,i,r,s,n){super(),this.shadingType=t.get("ShadingType");let l=0;if(2===this.shadingType?l=4:3===this.shadingType&&(l=6),this.coordsArr=t.getArray("Coords"),!eC(this.coordsArr,l))throw new A("RadialAxialShading: Invalid /Coords array.");const o=ty.parse({cs:t.getRaw("CS")||t.getRaw("ColorSpace"),xref:a,resources:i,pdfFunctionFactory:r,globalColorSpaceCache:s,localColorSpaceCache:n});this.bbox=eB(t.getArray("BBox"),null);let c=0,h=1;const u=t.getArray("Domain");eC(u,2)&&([c,h]=u);let g=!1,p=!1;const m=t.getArray("Extend");if(function(t){return Array.isArray(t)&&2===t.length&&t.every(t=>"boolean"==typeof t)}(m)&&([g,p]=m),!(3!==this.shadingType||g&&p)){const[t,a,i,r,s,n]=this.coordsArr,l=Math.hypot(t-r,a-s);i<=n+l&&n<=i+l&&f("Unsupported radial gradient.")}this.extendStart=g,this.extendEnd=p;const b=t.getRaw("Function"),y=r.create(b,!0),w=(h-c)/840,x=this.colorStops=[];if(c>=h||w<=0)return void d("Bad shading domain.");const k=new Float32Array(o.numComps),v=new Float32Array(1);let C=0;v[0]=c,y(v,0,k,0);const S=new Uint8ClampedArray(3);o.getRgb(k,0,S);let[I,B,F]=S;x.push([0,R.makeHexColor(I,B,F)]);let M=1;v[0]=c+w,y(v,0,k,0),o.getRgb(k,0,S);let[T,N,D]=S,O=T-I+1,P=N-B+1,E=D-F+1,_=T-I-1,L=N-B-1,U=D-F-1;for(let t=2;t<840;t++){v[0]=c+t*w,y(v,0,k,0),o.getRgb(k,0,S);const[a,i,r]=S,s=t-C;if(O=Math.min(O,(a-I+1)/s),P=Math.min(P,(i-B+1)/s),E=Math.min(E,(r-F+1)/s),_=Math.max(_,(a-I-1)/s),L=Math.max(L,(i-B-1)/s),U=Math.max(U,(r-F-1)/s),!(_<=O&&L<=P&&U<=E)){const t=R.makeHexColor(T,N,D);x.push([M/840,t]),O=a-T+1,P=i-N+1,E=r-D+1,_=a-T-1,L=i-N-1,U=r-D-1,C=M,I=T,B=N,F=D}M=t,T=a,N=i,D=r}x.push([1,R.makeHexColor(T,N,D)]);let q="transparent";t.has("Background")&&(q=o.getRgbHex(t.get("Background"),0)),g||(x.unshift([0,q]),x[1][0]+=rP.SMALL_NUMBER),p||(x.at(-1)[0]-=rP.SMALL_NUMBER,x.push([1,q])),this.colorStops=x}getIR(){let t,a,i,r,s,{coordsArr:n,shadingType:l}=this;return 2===l?(a=[n[0],n[1]],i=[n[2],n[3]],r=null,s=null,t="axial"):3===l?(a=[n[0],n[1]],i=[n[3],n[4]],r=n[2],s=n[5],t="radial"):g(`getPattern type unknown: ${l}`),["RadialAxial",t,this.bbox,this.colorStops,a,i,r,s]}}class r_{constructor(t,a){this.stream=t,this.context=a,this.buffer=0,this.bufferLength=0;const i=a.numComps;this.tmpCompsBuf=new Float32Array(i);const r=a.colorSpace.numComps;this.tmpCsCompsBuf=a.colorFn?new Float32Array(r):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;let t=this.stream.getByte();return!(t<0)&&(this.buffer=t,this.bufferLength=8,!0)}readBits(t){let{stream:a}=this,{buffer:i,bufferLength:r}=this;if(32===t){if(0===r)return a.getInt32()>>>0;i=i<<24|a.getByte()<<16|a.getByte()<<8|a.getByte();let t=a.getByte();return this.buffer=t&(1<<r)-1,(i<<8-r|(255&t)>>r)>>>0}if(8===t&&0===r)return a.getByte();for(;r<t;)i=i<<8|a.getByte(),r+=8;return r-=t,this.bufferLength=r,this.buffer=i&(1<<r)-1,i>>r}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){let{bitsPerCoordinate:t,decode:a}=this.context,i=this.readBits(t),r=this.readBits(t),s=t<32?1/((1<<t)-1):23283064365386963e-26;return[i*s*(a[1]-a[0])+a[0],r*s*(a[3]-a[2])+a[2]]}readComponents(){let{bitsPerComponent:t,colorFn:a,colorSpace:i,decode:r,numComps:s}=this.context,n=t<32?1/((1<<t)-1):23283064365386963e-26,l=this.tmpCompsBuf;for(let a=0,i=4;a<s;a++,i+=2){let s=this.readBits(t);l[a]=s*n*(r[i+1]-r[i])+r[i]}let o=this.tmpCsCompsBuf;return a?.(l,0,o,0),i.getRgb(o,0)}}let rL=Object.create(null);function rU(t){return rL[t]||=function(t){let a=[];for(let i=0;i<=t;i++){let r=i/t,s=1-r;a.push(new Float32Array([s**3,3*r*s**2,3*r**2*s,r**3]))}return a}(t)}class rq extends rP{static MIN_SPLIT_PATCH_CHUNKS_AMOUNT=3;static MAX_SPLIT_PATCH_CHUNKS_AMOUNT=20;static TRIANGLE_DENSITY=20;constructor(t,a,i,r,s,n){if(super(),!(t instanceof ei))throw new A("Mesh data is not a stream");const l=t.dict;this.shadingType=l.get("ShadingType"),this.bbox=eB(l.getArray("BBox"),null);const o=ty.parse({cs:l.getRaw("CS")||l.getRaw("ColorSpace"),xref:a,resources:i,pdfFunctionFactory:r,globalColorSpaceCache:s,localColorSpaceCache:n});this.background=l.has("Background")?o.getRgb(l.get("Background"),0):null;const c=l.getRaw("Function"),h=c?r.create(c,!0):null;this.coords=[],this.colors=[],this.figures=[];const u=new r_(t,{bitsPerCoordinate:l.get("BitsPerCoordinate"),bitsPerComponent:l.get("BitsPerComponent"),bitsPerFlag:l.get("BitsPerFlag"),decode:l.getArray("Decode"),colorFn:h,colorSpace:o,numComps:h?1:o.numComps});let d=!1;switch(this.shadingType){case 4:this._decodeType4Shading(u);break;case 5:const f=0|l.get("VerticesPerRow");if(f<2)throw new A("Invalid VerticesPerRow");this._decodeType5Shading(u,f);break;case 6:this._decodeType6Shading(u),d=!0;break;case 7:this._decodeType7Shading(u),d=!0;break;default:g("Unsupported mesh type.")}if(d){this._updateBounds();for(let t=0,a=this.figures.length;t<a;t++)this._buildFigureFromPatch(t)}this._updateBounds(),this._packData()}_decodeType4Shading(t){let a=this.coords,i=this.colors,r=[],s=[],n=0;for(;t.hasData;){let l=t.readFlag(),o=t.readCoordinate(),c=t.readComponents();if(0===n){if(!(0<=l&&l<=2))throw new A("Unknown type4 flag");switch(l){case 0:n=3;break;case 1:s.push(s.at(-2),s.at(-1)),n=1;break;case 2:s.push(s.at(-3),s.at(-1)),n=1}r.push(l)}s.push(a.length),a.push(o),i.push(c),n--,t.align()}this.figures.push({type:1,coords:new Int32Array(s),colors:new Int32Array(s)})}_decodeType5Shading(t,a){let i=this.coords,r=this.colors,s=[];for(;t.hasData;){let a=t.readCoordinate(),n=t.readComponents();s.push(i.length),i.push(a),r.push(n)}this.figures.push({type:2,coords:new Int32Array(s),colors:new Int32Array(s),verticesPerRow:a})}_decodeType6Shading(t){let a=this.coords,i=this.colors,r=new Int32Array(16),s=new Int32Array(4);for(;t.hasData;){let n,l,o,c,h=t.readFlag();if(!(0<=h&&h<=3))throw new A("Unknown type6 flag");let u=a.length;for(let i=0,r=0!==h?8:12;i<r;i++)a.push(t.readCoordinate());let d=i.length;for(let a=0,r=0!==h?2:4;a<r;a++)i.push(t.readComponents());switch(h){case 0:r[12]=u+3,r[13]=u+4,r[14]=u+5,r[15]=u+6,r[8]=u+2,r[11]=u+7,r[4]=u+1,r[7]=u+8,r[0]=u,r[1]=u+11,r[2]=u+10,r[3]=u+9,s[2]=d+1,s[3]=d+2,s[0]=d,s[1]=d+3;break;case 1:n=r[12],l=r[13],o=r[14],c=r[15],r[12]=c,r[13]=u+0,r[14]=u+1,r[15]=u+2,r[8]=o,r[11]=u+3,r[4]=l,r[7]=u+4,r[0]=n,r[1]=u+7,r[2]=u+6,r[3]=u+5,n=s[2],l=s[3],s[2]=l,s[3]=d,s[0]=n,s[1]=d+1;break;case 2:n=r[15],l=r[11],r[12]=r[3],r[13]=u+0,r[14]=u+1,r[15]=u+2,r[8]=r[7],r[11]=u+3,r[4]=l,r[7]=u+4,r[0]=n,r[1]=u+7,r[2]=u+6,r[3]=u+5,n=s[3],s[2]=s[1],s[3]=d,s[0]=n,s[1]=d+1;break;case 3:r[12]=r[0],r[13]=u+0,r[14]=u+1,r[15]=u+2,r[8]=r[1],r[11]=u+3,r[4]=r[2],r[7]=u+4,r[0]=r[3],r[1]=u+7,r[2]=u+6,r[3]=u+5,s[2]=s[0],s[3]=d,s[0]=s[1],s[1]=d+1}r[5]=a.length,a.push([(-4*a[r[0]][0]-a[r[15]][0]+6*(a[r[4]][0]+a[r[1]][0])-2*(a[r[12]][0]+a[r[3]][0])+3*(a[r[13]][0]+a[r[7]][0]))/9,(-4*a[r[0]][1]-a[r[15]][1]+6*(a[r[4]][1]+a[r[1]][1])-2*(a[r[12]][1]+a[r[3]][1])+3*(a[r[13]][1]+a[r[7]][1]))/9]),r[6]=a.length,a.push([(-4*a[r[3]][0]-a[r[12]][0]+6*(a[r[2]][0]+a[r[7]][0])-2*(a[r[0]][0]+a[r[15]][0])+3*(a[r[4]][0]+a[r[14]][0]))/9,(-4*a[r[3]][1]-a[r[12]][1]+6*(a[r[2]][1]+a[r[7]][1])-2*(a[r[0]][1]+a[r[15]][1])+3*(a[r[4]][1]+a[r[14]][1]))/9]),r[9]=a.length,a.push([(-4*a[r[12]][0]-a[r[3]][0]+6*(a[r[8]][0]+a[r[13]][0])-2*(a[r[0]][0]+a[r[15]][0])+3*(a[r[11]][0]+a[r[1]][0]))/9,(-4*a[r[12]][1]-a[r[3]][1]+6*(a[r[8]][1]+a[r[13]][1])-2*(a[r[0]][1]+a[r[15]][1])+3*(a[r[11]][1]+a[r[1]][1]))/9]),r[10]=a.length,a.push([(-4*a[r[15]][0]-a[r[0]][0]+6*(a[r[11]][0]+a[r[14]][0])-2*(a[r[12]][0]+a[r[3]][0])+3*(a[r[2]][0]+a[r[8]][0]))/9,(-4*a[r[15]][1]-a[r[0]][1]+6*(a[r[11]][1]+a[r[14]][1])-2*(a[r[12]][1]+a[r[3]][1])+3*(a[r[2]][1]+a[r[8]][1]))/9]),this.figures.push({type:3,coords:new Int32Array(r),colors:new Int32Array(s)})}}_decodeType7Shading(t){let a=this.coords,i=this.colors,r=new Int32Array(16),s=new Int32Array(4);for(;t.hasData;){let n,l,o,c,h=t.readFlag();if(!(0<=h&&h<=3))throw new A("Unknown type7 flag");let u=a.length;for(let i=0,r=0!==h?12:16;i<r;i++)a.push(t.readCoordinate());let d=i.length;for(let a=0,r=0!==h?2:4;a<r;a++)i.push(t.readComponents());switch(h){case 0:r[12]=u+3,r[13]=u+4,r[14]=u+5,r[15]=u+6,r[8]=u+2,r[9]=u+13,r[10]=u+14,r[11]=u+7,r[4]=u+1,r[5]=u+12,r[6]=u+15,r[7]=u+8,r[0]=u,r[1]=u+11,r[2]=u+10,r[3]=u+9,s[2]=d+1,s[3]=d+2,s[0]=d,s[1]=d+3;break;case 1:n=r[12],l=r[13],o=r[14],c=r[15],r[12]=c,r[13]=u+0,r[14]=u+1,r[15]=u+2,r[8]=o,r[9]=u+9,r[10]=u+10,r[11]=u+3,r[4]=l,r[5]=u+8,r[6]=u+11,r[7]=u+4,r[0]=n,r[1]=u+7,r[2]=u+6,r[3]=u+5,n=s[2],l=s[3],s[2]=l,s[3]=d,s[0]=n,s[1]=d+1;break;case 2:n=r[15],l=r[11],r[12]=r[3],r[13]=u+0,r[14]=u+1,r[15]=u+2,r[8]=r[7],r[9]=u+9,r[10]=u+10,r[11]=u+3,r[4]=l,r[5]=u+8,r[6]=u+11,r[7]=u+4,r[0]=n,r[1]=u+7,r[2]=u+6,r[3]=u+5,n=s[3],s[2]=s[1],s[3]=d,s[0]=n,s[1]=d+1;break;case 3:r[12]=r[0],r[13]=u+0,r[14]=u+1,r[15]=u+2,r[8]=r[1],r[9]=u+9,r[10]=u+10,r[11]=u+3,r[4]=r[2],r[5]=u+8,r[6]=u+11,r[7]=u+4,r[0]=r[3],r[1]=u+7,r[2]=u+6,r[3]=u+5,s[2]=s[0],s[3]=d,s[0]=s[1],s[1]=d+1}this.figures.push({type:3,coords:new Int32Array(r),colors:new Int32Array(s)})}}_buildFigureFromPatch(t){let a=this.figures[t];p(3===a.type,"Unexpected patch mesh figure");let i=this.coords,r=this.colors,s=a.coords,n=a.colors,l=Math.min(i[s[0]][0],i[s[3]][0],i[s[12]][0],i[s[15]][0]),o=Math.min(i[s[0]][1],i[s[3]][1],i[s[12]][1],i[s[15]][1]),c=Math.max(i[s[0]][0],i[s[3]][0],i[s[12]][0],i[s[15]][0]),h=Math.max(i[s[0]][1],i[s[3]][1],i[s[12]][1],i[s[15]][1]),u=Math.ceil((c-l)*rq.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));u=q(u,rq.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,rq.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);let d=Math.ceil((h-o)*rq.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));d=q(d,rq.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,rq.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);let f=u+1,g=new Int32Array((d+1)*f),m=new Int32Array((d+1)*f),b=0,y=new Uint8Array(3),w=new Uint8Array(3),x=r[n[0]],k=r[n[1]],v=r[n[2]],A=r[n[3]],C=rU(d),S=rU(u);for(let t=0;t<=d;t++){y[0]=(x[0]*(d-t)+v[0]*t)/d|0,y[1]=(x[1]*(d-t)+v[1]*t)/d|0,y[2]=(x[2]*(d-t)+v[2]*t)/d|0,w[0]=(k[0]*(d-t)+A[0]*t)/d|0,w[1]=(k[1]*(d-t)+A[1]*t)/d|0,w[2]=(k[2]*(d-t)+A[2]*t)/d|0;for(let a=0;a<=u;a++,b++){if((0===t||t===d)&&(0===a||a===u))continue;let n=0,l=0,o=0;for(let r=0;r<=3;r++)for(let c=0;c<=3;c++,o++){let h=C[t][r]*S[a][c];n+=i[s[o]][0]*h,l+=i[s[o]][1]*h}g[b]=i.length,i.push([n,l]),m[b]=r.length;let c=new Uint8Array(3);c[0]=(y[0]*(u-a)+w[0]*a)/u|0,c[1]=(y[1]*(u-a)+w[1]*a)/u|0,c[2]=(y[2]*(u-a)+w[2]*a)/u|0,r.push(c)}}g[0]=s[0],m[0]=n[0],g[u]=s[3],m[u]=n[1],g[f*d]=s[12],m[f*d]=n[2],g[f*d+u]=s[15],m[f*d+u]=n[3],this.figures[t]={type:2,coords:g,colors:m,verticesPerRow:f}}_updateBounds(){let t=this.coords[0][0],a=this.coords[0][1],i=t,r=a;for(let s=1,n=this.coords.length;s<n;s++){let n=this.coords[s][0],l=this.coords[s][1];t=t>n?n:t,a=a>l?l:a,i=i<n?n:i,r=r<l?l:r}this.bounds=[t,a,i,r]}_packData(){let t,a,i,r,s=this.coords,n=new Float32Array(2*s.length);for(t=0,i=0,a=s.length;t<a;t++){let a=s[t];n[i++]=a[0],n[i++]=a[1]}this.coords=n;let l=this.colors,o=new Uint8Array(3*l.length);for(t=0,i=0,a=l.length;t<a;t++){let a=l[t];o[i++]=a[0],o[i++]=a[1],o[i++]=a[2]}this.colors=o;let c=this.figures;for(t=0,a=c.length;t<a;t++){let a=c[t],s=a.coords,n=a.colors;for(i=0,r=s.length;i<r;i++)s[i]*=2,n[i]*=3}}getIR(){let{bounds:t}=this;if(t[2]-t[0]==0||t[3]-t[1]==0)throw new A(`Invalid MeshShading bounds: [${t}].`);return["Mesh",this.shadingType,this.coords,this.colors,this.figures,t,this.bbox,this.background]}}class rj extends rP{getIR(){return["Dummy"]}}function r$(t,a,i){let r=eS(a.getArray("Matrix"),en),s=eB(a.getArray("BBox"),null);if(!s||s[2]-s[0]==0||s[3]-s[1]==0)throw new A("Invalid getTilingPatternIR /BBox array.");let n=a.get("XStep");if("number"!=typeof n)throw new A("Invalid getTilingPatternIR /XStep value.");let l=a.get("YStep");if("number"!=typeof l)throw new A("Invalid getTilingPatternIR /YStep value.");let o=a.get("PaintType");if(!Number.isInteger(o))throw new A("Invalid getTilingPatternIR /PaintType value.");let c=a.get("TilingType");if(!Number.isInteger(c))throw new A("Invalid getTilingPatternIR /TilingType value.");return["TilingPattern",i,t,r,s,n,l,o,c]}let rH=[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],rz={lineHeight:1.2207,lineGap:.2207},rG=[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],rW={lineHeight:1.2207,lineGap:.2207},rV=[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],rX={lineHeight:1.2207,lineGap:.2207},rK=[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],rY={lineHeight:1.2207,lineGap:.2207},rJ=[.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],rZ={lineHeight:1.2,lineGap:.2},rQ=[.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],r1={lineHeight:1.35,lineGap:.2},r0=[.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],r2={lineHeight:1.35,lineGap:.2},r9=[.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],r5={lineHeight:1.2,lineGap:.2},r3=[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],r6=[-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],r7=[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],r8=[-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],r4=[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],se=[-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],st=[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],sa=[-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],si=[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],sr={lineHeight:1.2,lineGap:.2},ss=[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],sn={lineHeight:1.2,lineGap:.2},sl=[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],so={lineHeight:1.2,lineGap:.2},sc=[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],sh={lineHeight:1.2,lineGap:.2},su=[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],sd={lineHeight:1.33008,lineGap:0},sf=[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],sg={lineHeight:1.33008,lineGap:0},sp=[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],sm={lineHeight:1.33008,lineGap:0},sb=[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],sy={lineHeight:1.33008,lineGap:0},sw=ec(function(t){t["MyriadPro-Regular"]=t["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:sc,baseWidths:st,baseMapping:sa,metrics:sh},t["MyriadPro-Bold"]=t["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:si,baseWidths:r3,baseMapping:r6,metrics:sr},t["MyriadPro-It"]=t["MyriadPro-Italic"]=t["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:sl,baseWidths:r4,baseMapping:se,metrics:so},t["MyriadPro-BoldIt"]=t["MyriadPro-BoldItalic"]=t["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:ss,baseWidths:r7,baseMapping:r8,metrics:sn},t.ArialMT=t.Arial=t["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:st,baseMapping:sa},t["Arial-BoldMT"]=t["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:r3,baseMapping:r6},t["Arial-ItalicMT"]=t["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:r4,baseMapping:se},t["Arial-BoldItalicMT"]=t["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:r7,baseMapping:r8},t["Calibri-Regular"]={name:"LiberationSans-Regular",factors:rK,baseWidths:st,baseMapping:sa,metrics:rY},t["Calibri-Bold"]={name:"LiberationSans-Bold",factors:rH,baseWidths:r3,baseMapping:r6,metrics:rz},t["Calibri-Italic"]={name:"LiberationSans-Italic",factors:rV,baseWidths:r4,baseMapping:se,metrics:rX},t["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:rG,baseWidths:r7,baseMapping:r8,metrics:rW},t["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:sb,baseWidths:st,baseMapping:sa,metrics:sy},t["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:su,baseWidths:r3,baseMapping:r6,metrics:sd},t["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:sp,baseWidths:r4,baseMapping:se,metrics:sm},t["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:sf,baseWidths:r7,baseMapping:r8,metrics:sg},t["Helvetica-Regular"]=t.Helvetica={name:"LiberationSans-Regular",factors:r9,baseWidths:st,baseMapping:sa,metrics:r5},t["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:rJ,baseWidths:r3,baseMapping:r6,metrics:rZ},t["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:r0,baseWidths:r4,baseMapping:se,metrics:r2},t["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:rQ,baseWidths:r7,baseMapping:r8,metrics:r1}});function sx(t){let a=a3(t);return sw()[a]}function sk(t){let a=function(t){let a=sx(t);if(!a)return null;let{baseWidths:i,baseMapping:r,factors:s}=a,n=s?i.map((t,a)=>t*s[a]):i,l,o=-2,c=[];for(let[t,a]of r.map((t,a)=>[t,a]).sort(([t],[a])=>t-a))-1!==t&&(t===o+1?(l.push(n[a]),o+=1):(o=t,l=[n[a]],c.push(t,l)));return c}(t),i=new K(null);i.set("BaseFont",W.get(t)),i.set("Type",W.get("Font")),i.set("Subtype",W.get("CIDFontType2")),i.set("Encoding",W.get("Identity-H")),i.set("CIDToGIDMap",W.get("Identity")),i.set("W",a),i.set("FirstChar",a[0]),i.set("LastChar",a.at(-2)+a.at(-1).length-1);let r=new K(null);i.set("FontDescriptor",r);let s=new K(null);return s.set("Ordering","Identity"),s.set("Registry","Adobe"),s.set("Supplement",0),i.set("CIDSystemInfo",s),i}class sv{constructor(t){this.lexer=t,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(t){return this.token.type===t&&(this.nextToken(),!0)}expect(t){if(this.accept(t))return!0;throw new A(`Unexpected symbol: found ${this.token.type} expected ${t}.`)}parse(){return this.nextToken(),this.expect(sA.LBRACE),this.parseBlock(),this.expect(sA.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(sA.NUMBER))this.operators.push(this.prev.value);else if(this.accept(sA.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(sA.LBRACE))return;this.parseCondition()}}parseCondition(){let t=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(sA.RBRACE),this.accept(sA.IF))this.operators[t]=this.operators.length,this.operators[t+1]="jz";else{if(!this.accept(sA.LBRACE))throw new A("PS Function: error parsing conditional.");{let a=this.operators.length;this.operators.push(null,null);let i=this.operators.length;this.parseBlock(),this.expect(sA.RBRACE),this.expect(sA.IFELSE),this.operators[a]=this.operators.length,this.operators[a+1]="j",this.operators[t]=i,this.operators[t+1]="jz"}}}}let sA={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};class sC{static get opCache(){return b(this,"opCache",Object.create(null))}constructor(t,a){this.type=t,this.value=a}static getOperator(t){return sC.opCache[t]||=new sC(sA.OPERATOR,t)}static get LBRACE(){return b(this,"LBRACE",new sC(sA.LBRACE,"{"))}static get RBRACE(){return b(this,"RBRACE",new sC(sA.RBRACE,"}"))}static get IF(){return b(this,"IF",new sC(sA.IF,"IF"))}static get IFELSE(){return b(this,"IFELSE",new sC(sA.IFELSE,"IFELSE"))}}class sS{constructor(t){this.stream=t,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let t=!1,a=this.currentChar;for(;;){if(a<0)return $;if(t)10!==a&&13!==a||(t=!1);else if(37===a)t=!0;else if(!eA(a))break;a=this.nextChar()}switch(0|a){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 sC(sA.NUMBER,this.getNumber());case 123:return this.nextChar(),sC.LBRACE;case 125:return this.nextChar(),sC.RBRACE}let i=this.strBuf;for(i.length=0,i[0]=String.fromCharCode(a);(a=this.nextChar())>=0&&(a>=65&&a<=90||a>=97&&a<=122);)i.push(String.fromCharCode(a));let r=i.join("");switch(r.toLowerCase()){case"if":return sC.IF;case"ifelse":return sC.IFELSE;default:return sC.getOperator(r)}}getNumber(){let t=this.currentChar,a=this.strBuf;for(a.length=0,a[0]=String.fromCharCode(t);(t=this.nextChar())>=0&&(t>=48&&t<=57||45===t||46===t);)a.push(String.fromCharCode(t));let i=parseFloat(a.join(""));if(isNaN(i))throw new A(`Invalid floating point number: ${i}`);return i}}class sI{constructor(t){this._onlyRefs=!0===t?.onlyRefs,this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new Z}getByName(t){this._onlyRefs&&g("Should not call `getByName` method.");let a=this._nameRefMap.get(t);return a?this.getByRef(a):this._imageMap.get(t)||null}getByRef(t){return this._imageCache.get(t)||null}set(t,a,i){g("Abstract method `set` called.")}}class sB extends sI{set(t,a=null,i){if("string"!=typeof t)throw Error('LocalImageCache.set - expected "name" argument.');if(a){if(this._imageCache.has(a))return;this._nameRefMap.set(t,a),this._imageCache.put(a,i)}else this._imageMap.has(t)||this._imageMap.set(t,i)}}class sF extends sI{set(t=null,a=null,i){if("string"!=typeof t&&!a)throw Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(a){if(this._imageCache.has(a))return;null!==t&&this._nameRefMap.set(t,a),this._imageCache.put(a,i)}else this._imageMap.has(t)||this._imageMap.set(t,i)}}class sM extends sI{constructor(t){super({onlyRefs:!0})}set(t=null,a,i){if(!a)throw Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(a)||this._imageCache.put(a,i)}}class sT extends sI{set(t,a=null,i){if("string"!=typeof t)throw Error('LocalGStateCache.set - expected "name" argument.');if(a){if(this._imageCache.has(a))return;this._nameRefMap.set(t,a),this._imageCache.put(a,i)}else this._imageMap.has(t)||this._imageMap.set(t,i)}}class sR extends sI{constructor(t){super({onlyRefs:!0})}set(t=null,a,i){if(!a)throw Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(a)||this._imageCache.put(a,i)}}class sN extends sI{constructor(t){super({onlyRefs:!0})}set(t=null,a,i){if(!a)throw Error('RegionalImageCache.set - expected "ref" argument.');this._imageCache.has(a)||this._imageCache.put(a,i)}}class sD extends sI{constructor(t){super({onlyRefs:!0})}set(t=null,a,i){if(!a)throw Error('GlobalColorSpaceCache.set - expected "ref" argument.');this._imageCache.has(a)||this._imageCache.put(a,i)}clear(){this._imageCache.clear()}}class sO{static NUM_PAGES_THRESHOLD=2;static MIN_IMAGES_TO_CACHE=10;static MAX_BYTE_SIZE=5e7;#eo=new J;constructor(){this._refCache=new Z,this._imageCache=new Z}get #ec(){let t=0;for(let a of this._imageCache)t+=a.byteSize;return t}get #eh(){return!(this._imageCache.size<sO.MIN_IMAGES_TO_CACHE)&&!(this.#ec<sO.MAX_BYTE_SIZE)}shouldCache(t,a){let i=this._refCache.get(t);return i||(i=new Set,this._refCache.put(t,i)),i.add(a),!(i.size<sO.NUM_PAGES_THRESHOLD)&&!(!this._imageCache.has(t)&&this.#eh)}addDecodeFailed(t){this.#eo.put(t)}hasDecodeFailed(t){return this.#eo.has(t)}addByteSize(t,a){let i=this._imageCache.get(t);i&&(i.byteSize||(i.byteSize=a))}getData(t,a){let i=this._refCache.get(t);if(!i||i.size<sO.NUM_PAGES_THRESHOLD)return null;let r=this._imageCache.get(t);return r?(i.add(a),r):null}setData(t,a){if(!this._refCache.has(t))throw Error('GlobalImageCache.setData - expected "shouldCache" to have been called.');this._imageCache.has(t)||(this.#eh?f("GlobalImageCache.setData - cache limit reached."):this._imageCache.put(t,a))}clear(t=!1){t||(this.#eo.clear(),this._refCache.clear()),this._imageCache.clear()}}class sP{constructor({xref:t,isEvalSupported:a=!0}){this.xref=t,this.isEvalSupported=!1!==a}create(t,a=!1){let i,r;if(t instanceof Y?i=t:t instanceof K?i=t.objId:t instanceof ei&&(i=t.dict?.objId),i){let t=this._localFunctionCache.getByRef(i);if(t)return t}let s=this.xref.fetchIfRef(t);if(Array.isArray(s)){if(!a)throw Error('PDFFunctionFactory.create - expected "parseArray" argument.');r=s_.parseArray(this,s)}else r=s_.parse(this,s);return i&&this._localFunctionCache.set(null,i,r),r}get _localFunctionCache(){return b(this,"_localFunctionCache",new sM)}}function sE(t){return Array.isArray(t)?eC(t,null)?t:t.map(t=>+t):null}class s_{static getSampleArray(t,a,i,r){let s,n,l=1;for(s=0,n=t.length;s<n;s++)l*=t[s];let o=Array(l*=a),c=0,h=0,u=1/(2**i-1),d=r.getBytes((l*i+7)/8),f=0;for(s=0;s<l;s++){for(;c<i;)h<<=8,h|=d[f++],c+=8;c-=i,o[s]=(h>>c)*u,h&=(1<<c)-1}return o}static parse(t,a){let i=a.dict||a;switch(i.get("FunctionType")){case 0:return this.constructSampled(t,a,i);case 1:break;case 2:return this.constructInterpolated(t,i);case 3:return this.constructStiched(t,i);case 4:return this.constructPostScript(t,a,i)}throw new A("Unknown type of function")}static parseArray(t,a){let{xref:i}=t,r=[];for(let s of a)r.push(this.parse(t,i.fetchIfRef(s)));return function(t,a,i,s){for(let n=0,l=r.length;n<l;n++)r[n](t,a,i,s+n)}}static constructSampled(t,a,i){function r(t){let a=t.length,i=[],r=0;for(let s=0;s<a;s+=2)i[r++]=[t[s],t[s+1]];return i}let s=sE(i.getArray("Domain")),n=sE(i.getArray("Range"));if(!s||!n)throw new A("No domain or range");let l=s.length/2,o=n.length/2;s=r(s),n=r(n);let c=sE(i.getArray("Size")),h=i.get("BitsPerSample"),u=i.get("Order")||1;1!==u&&d("No support for cubic spline interpolation: "+u);let f=sE(i.getArray("Encode"));if(f)f=r(f);else{f=[];for(let t=0;t<l;++t)f.push([0,c[t]-1])}let g=sE(i.getArray("Decode"));g=g?r(g):n;let p=this.getSampleArray(c,o,h,a);return function(t,a,i,r){var h,u,d,m;let b=1<<l,y=new Float64Array(b).fill(1),w=new Uint32Array(b),x,k,v=o,A=1;for(x=0;x<l;++x){let i=s[x][0],r=s[x][1],n=(h=q(t[a+x],i,r),(u=f[x][0])+(f[x][1]-u)/(r-i)*(h-i)),l=c[x],o=(n=q(n,0,l-1))<l-1?Math.floor(n):n-1,d=o+1-n,g=n-o,p=o*v,m=p+v;for(k=0;k<b;k++)k&A?(y[k]*=g,w[k]+=m):(y[k]*=d,w[k]+=p);v*=l,A<<=1}for(k=0;k<o;++k){let t=0;for(x=0;x<b;x++)t+=p[w[x]+k]*y[x];d=t,t=(m=g[k][0])+(g[k][1]-m)/1*(d-0),i[r+k]=q(t,n[k][0],n[k][1])}}}static constructInterpolated(t,a){let i=sE(a.getArray("C0"))||[0],r=sE(a.getArray("C1"))||[1],s=a.get("N"),n=[];for(let t=0,a=i.length;t<a;++t)n.push(r[t]-i[t]);let l=n.length;return function(t,a,r,o){let c=1===s?t[a]:t[a]**s;for(let t=0;t<l;++t)r[o+t]=i[t]+c*n[t]}}static constructStiched(t,a){let i=sE(a.getArray("Domain"));if(!i)throw new A("No domain");if(1!=i.length/2)throw new A("Bad domain for stiched function");let{xref:r}=t,s=[];for(let i of a.get("Functions"))s.push(this.parse(t,r.fetchIfRef(i)));let n=sE(a.getArray("Bounds")),l=sE(a.getArray("Encode")),o=new Float32Array(1);return function(t,a,r,c){let h,u=q(t[a],i[0],i[1]),d=n.length;for(h=0;h<d&&!(u<n[h]);++h);let f=i[0];h>0&&(f=n[h-1]);let g=i[1];h<n.length&&(g=n[h]);let p=l[2*h],m=l[2*h+1];o[0]=f===g?p:p+(u-f)*(m-p)/(g-f),s[h](o,0,r,c)}}static constructPostScript(t,a,i){let r=sE(i.getArray("Domain")),s=sE(i.getArray("Range"));if(!r)throw new A("No domain.");if(!s)throw new A("No range.");let n=new sv(new sS(a)).parse();if(t.isEvalSupported&&M.isEvalSupported){let t=(new sK).compile(n,r,s);if(t)return Function("src","srcOffset","dest","destOffset",t)}d("Unable to compile PS function");let l=s.length>>1,o=r.length>>1,c=new sq(n),h=Object.create(null),u=8192,f=new Float32Array(o);return function(t,a,i,r){let n,d,g="";for(n=0;n<o;n++)d=t[a+n],f[n]=d,g+=d+"_";let p=h[g];if(void 0!==p)return void i.set(p,r);let m=new Float32Array(l),b=c.execute(f),y=b.length-l;for(n=0;n<l;n++){d=b[y+n];let t=s[2*n];d<t?d=t:d>(t=s[2*n+1])&&(d=t),m[n]=d}u>0&&(u--,h[g]=m),i.set(m,r)}}}function sL(t){let a;if(t instanceof K)a=t;else{if(!(t instanceof ei))return!1;a=t.dict}return a.has("FunctionType")}class sU{static MAX_STACK_SIZE=100;constructor(t){this.stack=t?Array.from(t):[]}push(t){if(this.stack.length>=sU.MAX_STACK_SIZE)throw Error("PostScript function stack overflow.");this.stack.push(t)}pop(){if(this.stack.length<=0)throw Error("PostScript function stack underflow.");return this.stack.pop()}copy(t){if(this.stack.length+t>=sU.MAX_STACK_SIZE)throw Error("PostScript function stack overflow.");let a=this.stack;for(let i=a.length-t,r=t-1;r>=0;r--,i++)a.push(a[i])}index(t){this.push(this.stack[this.stack.length-t-1])}roll(t,a){let i=this.stack,r=i.length-t,s=i.length-1,n=r+(a-Math.floor(a/t)*t);for(let t=r,a=s;t<a;t++,a--){let r=i[t];i[t]=i[a],i[a]=r}for(let t=r,a=n-1;t<a;t++,a--){let r=i[t];i[t]=i[a],i[a]=r}for(let t=n,a=s;t<a;t++,a--){let r=i[t];i[t]=i[a],i[a]=r}}}class sq{constructor(t){this.operators=t}execute(t){let a,i,r,s=new sU(t),n=0,l=this.operators,o=l.length;for(;n<o;)if("number"!=typeof(a=l[n++]))switch(a){case"jz":r=s.pop(),(i=s.pop())||(n=r);break;case"j":n=i=s.pop();break;case"abs":i=s.pop(),s.push(Math.abs(i));break;case"add":r=s.pop(),i=s.pop(),s.push(i+r);break;case"and":r=s.pop(),"boolean"==typeof(i=s.pop())&&"boolean"==typeof r?s.push(i&&r):s.push(i&r);break;case"atan":r=s.pop(),(i=Math.atan2(i=s.pop(),r)/Math.PI*180)<0&&(i+=360),s.push(i);break;case"bitshift":r=s.pop(),(i=s.pop())>0?s.push(i<<r):s.push(i>>r);break;case"ceiling":i=s.pop(),s.push(Math.ceil(i));break;case"copy":i=s.pop(),s.copy(i);break;case"cos":i=s.pop(),s.push(Math.cos(i%360/180*Math.PI));break;case"cvi":i=0|s.pop(),s.push(i);break;case"cvr":break;case"div":r=s.pop(),i=s.pop(),s.push(i/r);break;case"dup":s.copy(1);break;case"eq":r=s.pop(),i=s.pop(),s.push(i===r);break;case"exch":s.roll(2,1);break;case"exp":r=s.pop(),i=s.pop(),s.push(i**r);break;case"false":s.push(!1);break;case"floor":i=s.pop(),s.push(Math.floor(i));break;case"ge":r=s.pop(),i=s.pop(),s.push(i>=r);break;case"gt":r=s.pop(),i=s.pop(),s.push(i>r);break;case"idiv":r=s.pop(),i=s.pop(),s.push(i/r|0);break;case"index":i=s.pop(),s.index(i);break;case"le":r=s.pop(),i=s.pop(),s.push(i<=r);break;case"ln":i=s.pop(),s.push(Math.log(i));break;case"log":i=s.pop(),s.push(Math.log10(i));break;case"lt":r=s.pop(),i=s.pop(),s.push(i<r);break;case"mod":r=s.pop(),i=s.pop(),s.push(i%r);break;case"mul":r=s.pop(),i=s.pop(),s.push(i*r);break;case"ne":r=s.pop(),i=s.pop(),s.push(i!==r);break;case"neg":i=s.pop(),s.push(-i);break;case"not":"boolean"==typeof(i=s.pop())?s.push(!i):s.push(~i);break;case"or":r=s.pop(),"boolean"==typeof(i=s.pop())&&"boolean"==typeof r?s.push(i||r):s.push(i|r);break;case"pop":s.pop();break;case"roll":r=s.pop(),i=s.pop(),s.roll(i,r);break;case"round":i=s.pop(),s.push(Math.round(i));break;case"sin":i=s.pop(),s.push(Math.sin(i%360/180*Math.PI));break;case"sqrt":i=s.pop(),s.push(Math.sqrt(i));break;case"sub":r=s.pop(),i=s.pop(),s.push(i-r);break;case"true":s.push(!0);break;case"truncate":i=(i=s.pop())<0?Math.ceil(i):Math.floor(i),s.push(i);break;case"xor":r=s.pop(),"boolean"==typeof(i=s.pop())&&"boolean"==typeof r?s.push(i!==r):s.push(i^r);break;default:throw new A(`Unknown operator ${a}`)}else s.push(a);return s.stack}}class sj{constructor(t){this.type=t}visit(t){g("abstract method")}}class s$ extends sj{constructor(t,a,i){super("args"),this.index=t,this.min=a,this.max=i}visit(t){t.visitArgument(this)}}class sH extends sj{constructor(t){super("literal"),this.number=t,this.min=t,this.max=t}visit(t){t.visitLiteral(this)}}class sz extends sj{constructor(t,a,i,r,s){super("binary"),this.op=t,this.arg1=a,this.arg2=i,this.min=r,this.max=s}visit(t){t.visitBinaryOperation(this)}}class sG extends sj{constructor(t,a){super("max"),this.arg=t,this.min=t.min,this.max=a}visit(t){t.visitMin(this)}}class sW extends sj{constructor(t,a,i){super("var"),this.index=t,this.min=a,this.max=i}visit(t){t.visitVariable(this)}}class sV extends sj{constructor(t,a){super("definition"),this.variable=t,this.arg=a}visit(t){t.visitVariableDefinition(this)}}class sX{constructor(){this.parts=[]}visitArgument(t){this.parts.push("Math.max(",t.min,", Math.min(",t.max,", src[srcOffset + ",t.index,"]))")}visitVariable(t){this.parts.push("v",t.index)}visitLiteral(t){this.parts.push(t.number)}visitBinaryOperation(t){this.parts.push("("),t.arg1.visit(this),this.parts.push(" ",t.op," "),t.arg2.visit(this),this.parts.push(")")}visitVariableDefinition(t){this.parts.push("var "),t.variable.visit(this),this.parts.push(" = "),t.arg.visit(this),this.parts.push(";")}visitMin(t){this.parts.push("Math.min("),t.arg.visit(this),this.parts.push(", ",t.max,")")}toString(){return this.parts.join("")}}class sK{compile(t,a,i){var r,s,n,l;let o=[],c=[],h=a.length>>1,u=i.length>>1,d,f,g,p,m,b,y,w,x=0;for(let t=0;t<h;t++)o.push(new s$(t,a[2*t],a[2*t+1]));for(let a=0,i=t.length;a<i;a++)if("number"!=typeof(w=t[a]))switch(w){case"add":if(o.length<2)return null;p=o.pop(),g=o.pop(),o.push((r=g,"literal"===(s=p).type&&0===s.number?r:"literal"===r.type&&0===r.number?s:"literal"===s.type&&"literal"===r.type?new sH(r.number+s.number):new sz("+",r,s,r.min+s.min,r.max+s.max)));break;case"cvr":if(o.length<1)return null;break;case"mul":if(o.length<2)return null;p=o.pop(),g=o.pop(),o.push(function(t,a){if("literal"===a.type){if(0===a.number)return new sH(0);if(1===a.number)return t;if("literal"===t.type)return new sH(t.number*a.number)}if("literal"===t.type){if(0===t.number)return new sH(0);if(1===t.number)return a}let i=Math.min(t.min*a.min,t.min*a.max,t.max*a.min,t.max*a.max),r=Math.max(t.min*a.min,t.min*a.max,t.max*a.min,t.max*a.max);return new sz("*",t,a,i,r)}(g,p));break;case"sub":if(o.length<2)return null;p=o.pop(),g=o.pop(),o.push(function(t,a){if("literal"===a.type){if(0===a.number)return t;if("literal"===t.type)return new sH(t.number-a.number)}return"binary"===a.type&&"-"===a.op&&"literal"===t.type&&1===t.number&&"literal"===a.arg1.type&&1===a.arg1.number?a.arg2:new sz("-",t,a,t.min-a.max,t.max-a.min)}(g,p));break;case"exch":if(o.length<2)return null;m=o.pop(),b=o.pop(),o.push(m,b);break;case"pop":if(o.length<1)return null;o.pop();break;case"index":if(o.length<1||"literal"!==(g=o.pop()).type||(d=g.number)<0||!Number.isInteger(d)||o.length<d)return null;if("literal"===(m=o[o.length-d-1]).type||"var"===m.type){o.push(m);break}y=new sW(x++,m.min,m.max),o[o.length-d-1]=y,o.push(y),c.push(new sV(y,m));break;case"dup":if(o.length<1)return null;if("number"==typeof t[a+1]&&"gt"===t[a+2]&&t[a+3]===a+7&&"jz"===t[a+4]&&"pop"===t[a+5]&&t[a+6]===t[a+1]){g=o.pop(),o.push((n=g,l=t[a+1],n.min>=l?new sH(l):n.max<=l?n:new sG(n,l))),a+=6;break}if("literal"===(m=o.at(-1)).type||"var"===m.type){o.push(m);break}y=new sW(x++,m.min,m.max),o[o.length-1]=y,o.push(y),c.push(new sV(y,m));break;case"roll":if(o.length<2||(p=o.pop(),g=o.pop(),"literal"!==p.type||"literal"!==g.type)||(f=p.number,(d=g.number)<=0||!Number.isInteger(d)||!Number.isInteger(f)||o.length<d))return null;if(0==(f=(f%d+d)%d))break;o.push(...o.splice(o.length-d,d-f));break;default:return null}else o.push(new sH(w));if(o.length!==u)return null;let k=[];for(let t of c){let a=new sX;t.visit(a),k.push(a.toString())}for(let t=0,a=o.length;t<a;t++){let a=o[t],r=new sX;a.visit(r);let s=i[2*t],n=i[2*t+1],l=[r.toString()];s>a.min&&(l.unshift("Math.max(",s,", "),l.push(")")),n<a.max&&(l.unshift("Math.min(",n,", "),l.push(")")),l.unshift("dest[destOffset + ",t,"] = "),l.push(";"),k.push(l.join(""))}return k.join("\n")}}let sY=["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"],sJ=["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 sZ(t,a,i){for(let r=a,s=i-1;r<s;++r,--s){let a=t[r];t[r]=t[s],t[s]=a}}function sQ(t,a,i=!1){let r="ltr";return i?r="ttb":a||(r="rtl"),{str:t,dir:r}}let s1=[],s0=[];function s2(t,a=-1,i=!1){let r=!0,s=t.length;if(0===s||i)return sQ(t,r,i);s1.length=s,s0.length=s;let n,l,o=0;for(n=0;n<s;++n){s1[n]=t.charAt(n);let a=t.charCodeAt(n),i="L";a<=255?i=sY[a]:1424<=a&&a<=1524?i="R":1536<=a&&a<=1791?(i=sJ[255&a])||f("Bidi: invalid Unicode character "+a.toString(16)):(1792<=a&&a<=2220||64336<=a&&a<=65023||65136<=a&&a<=65279)&&(i="AL"),"R"!==i&&"AL"!==i&&"AN"!==i||o++,s0[n]=i}if(0===o)return sQ(t,r=!0);-1===a&&(o/s<.3&&s>4?(r=!0,a=0):(r=!1,a=1));let c=[];for(n=0;n<s;++n)c[n]=a;let h=1&a?"R":"L",u,d=h;for(n=0;n<s;++n)"NSM"===s0[n]?s0[n]=d:d=s0[n];for(n=0,d=h;n<s;++n)"EN"===(u=s0[n])?s0[n]="AL"===d?"AN":"EN":"R"!==u&&"L"!==u&&"AL"!==u||(d=u);for(n=0;n<s;++n)"AL"===(u=s0[n])&&(s0[n]="R");for(n=1;n<s-1;++n)"ES"===s0[n]&&"EN"===s0[n-1]&&"EN"===s0[n+1]&&(s0[n]="EN"),"CS"!==s0[n]||"EN"!==s0[n-1]&&"AN"!==s0[n-1]||s0[n+1]!==s0[n-1]||(s0[n]=s0[n-1]);for(n=0;n<s;++n)if("EN"===s0[n]){for(let t=n-1;t>=0&&"ET"===s0[t];--t)s0[t]="EN";for(let t=n+1;t<s&&"ET"===s0[t];++t)s0[t]="EN"}for(n=0;n<s;++n)"WS"!==(u=s0[n])&&"ES"!==u&&"ET"!==u&&"CS"!==u||(s0[n]="ON");for(n=0,d=h;n<s;++n)"EN"===(u=s0[n])?s0[n]="L"===d?"L":"EN":"R"!==u&&"L"!==u||(d=u);for(n=0;n<s;++n)if("ON"===s0[n]){let t=function(t,a){let i,r;for(i=a,r=t.length;i<r&&"ON"===t[i];++i);return i}(s0,n+1),a=h;n>0&&(a=s0[n-1]);let i=h;t+1<s&&(i=s0[t+1]),"L"!==a&&(a="R"),"L"!==i&&(i="R"),a===i&&s0.fill(a,n,t),n=t-1}for(n=0;n<s;++n)"ON"===s0[n]&&(s0[n]=h);for(n=0;n<s;++n)u=s0[n],1&c[n]?"L"!==u&&"AN"!==u&&"EN"!==u||(c[n]+=1):"R"===u?c[n]+=1:"AN"!==u&&"EN"!==u||(c[n]+=2);let g,p=-1,m=99;for(n=0,l=c.length;n<l;++n)p<(g=c[n])&&(p=g),m>g&&1&g&&(m=g);for(g=p;g>=m;--g){let t=-1;for(n=0,l=c.length;n<l;++n)c[n]<g?t>=0&&(sZ(s1,t,n),t=-1):t<0&&(t=n);t>=0&&sZ(s1,t,c.length)}for(n=0,l=s1.length;n<l;++n){let t=s1[n];"<"!==t&&">"!==t||(s1[n]="")}return sQ(s1.join(""),r)}let s9={style:"normal",weight:"normal"},s5={style:"normal",weight:"bold"},s3={style:"italic",weight:"normal"},s6={style:"italic",weight:"bold"},s7=new Map([["Times-Roman",{local:["Times New Roman","Times-Roman","Times","Liberation Serif","Nimbus Roman","Nimbus Roman L","Tinos","Thorndale","TeX Gyre Termes","FreeSerif","Linux Libertine O","Libertinus Serif","PT Astra Serif","DejaVu Serif","Bitstream Vera Serif","Ubuntu"],style:s9,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:s5,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:s3,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:s6,ultimate:"serif"}],["Helvetica",{local:["Helvetica","Helvetica Neue","Arial","Arial Nova","Liberation Sans","Arimo","Nimbus Sans","Nimbus Sans L","A030","TeX Gyre Heros","FreeSans","DejaVu Sans","Albany","Bitstream Vera Sans","Arial Unicode MS","Microsoft Sans Serif","Apple Symbols","Cantarell"],path:"LiberationSans-Regular.ttf",style:s9,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",path:"LiberationSans-Bold.ttf",style:s5,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",path:"LiberationSans-Italic.ttf",style:s3,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",path:"LiberationSans-BoldItalic.ttf",style:s6,ultimate:"sans-serif"}],["Courier",{local:["Courier","Courier New","Liberation Mono","Nimbus Mono","Nimbus Mono L","Cousine","Cumberland","TeX Gyre Cursor","FreeMono","Linux Libertine Mono O","Libertinus Mono"],style:s9,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:s5,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:s3,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:s6,ultimate:"monospace"}],["ArialBlack",{local:["Arial Black"],style:{style:"normal",weight:"900"},fallback:"Helvetica-Bold"}],["ArialBlack-Bold",{alias:"ArialBlack"}],["ArialBlack-Italic",{alias:"ArialBlack",style:{style:"italic",weight:"900"},fallback:"Helvetica-BoldOblique"}],["ArialBlack-BoldItalic",{alias:"ArialBlack-Italic"}],["ArialNarrow",{local:["Arial Narrow","Liberation Sans Narrow","Helvetica Condensed","Nimbus Sans Narrow","TeX Gyre Heros Cn"],style:s9,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:s5,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:s3,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:s6,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:s9,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:s5,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:s3,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:s6,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:s9}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}],["\xcb\xce\xcc\xe5",{local:["SimSun","SimSun Regular","NSimSun"],style:s9,ultimate:"serif"}],["\xba\xda\xcc\xe5",{local:["SimHei","SimHei Regular"],style:s9,ultimate:"sans-serif"}],["\xbf\xac\xcc\xe5",{local:["KaiTi","SimKai","SimKai Regular"],style:s9,ultimate:"sans-serif"}],["\xb7\xc2\xcb\xce",{local:["FangSong","SimFang","SimFang Regular"],style:s9,ultimate:"serif"}],["\xbf\xac\xcc\xe5_GB2312",{alias:"\xbf\xac\xcc\xe5"}],["\xb7\xc2\xcb\xce_GB2312",{alias:"\xb7\xc2\xcb\xce"}],["\xc1\xa5\xca\xe9",{local:["SimLi","SimLi Regular"],style:s9,ultimate:"serif"}],["\xd0\xc2\xcb\xce",{alias:"\xcb\xce\xcc\xe5"}]]),s8=new Map([["Arial-Black","ArialBlack"]]);function s4(t){let a=new Set(["thin","extralight","ultralight","demilight","semilight","light","book","regular","normal","medium","demibold","semibold","bold","extrabold","ultrabold","black","heavy","extrablack","ultrablack","roman","italic","oblique","ultracondensed","extracondensed","condensed","semicondensed","normal","semiexpanded","expanded","extraexpanded","ultraexpanded","bolditalic"]);return t.split(/[- ,+]+/g).filter(t=>!a.has(t.toLowerCase())).join(" ")}function ne(t,a,i,r,s,n){if(r.startsWith("InvalidPDFjsFont_"))return null;("TrueType"===n||"Type1"===n)&&/^[A-Z]{6}\+/.test(r)&&(r=r.slice(7));let l=r=a3(r),o=t.get(l);if(o)return o;let c=s7.get(r);if(!c){for(let[t,a]of s8)if(r.startsWith(t)){r=`${a}${r.substring(t.length)}`,c=s7.get(r);break}}let h=!1;c||(c=s7.get(s),h=!0);let u=`${a.getDocId()}_s${a.createFontId()}`;if(!c){if(!eP(r))return f(`Cannot substitute the font because of its name: ${r}`),t.set(l,null),null;let a=/bold/gi.test(r),i=/oblique|italic/gi.test(r),s=a&&i&&s6||a&&s5||i&&s3||s9;return o={css:`"${s4(r)}",${u}`,guessFallback:!0,loadedName:u,baseFontName:r,src:`local(${r})`,style:s},t.set(l,o),o}let d=[];h&&eP(r)&&d.push(`local(${r})`);let{style:g,ultimate:p}=function t({alias:a,local:i,path:r,fallback:s,style:n,ultimate:l},o,c,h=!0,u=!0,d=""){let f={style:null,ultimate:null};if(i){let t=d?` ${d}`:"";for(let a of i)o.push(`local(${a}${t})`)}if(a&&Object.assign(f,t(s7.get(a),o,c,h&&!s,u&&!r,d||function(t){switch(t){case s5:return"Bold";case s3:return"Italic";case s6:return"Bold Italic";default:if("bold"===t?.weight)return"Bold";if("italic"===t?.style)return"Italic"}return""}(n))),n&&(f.style=n),l&&(f.ultimate=l),h&&s){let{ultimate:a}=t(s7.get(s),o,c,h,u&&!r,d);f.ultimate||=a}return u&&r&&c&&o.push(`url(${c}${r})`),f}(c,d,i),m=null===p,b=m?"":`,${p}`;return o={css:`"${s4(r)}",${u}${b}`,guessFallback:m,loadedName:u,baseFontName:r,src:d.join(","),style:g},t.set(l,o),o}class nt{constructor(t){this.h1=t?0|t:0xc3d2e1f0,this.h2=t?0|t:0xc3d2e1f0}update(t){let a,i;if("string"==typeof t){a=new Uint8Array(2*t.length),i=0;for(let r=0,s=t.length;r<s;r++){let s=t.charCodeAt(r);s<=255?a[i++]=s:(a[i++]=s>>>8,a[i++]=255&s)}}else{if(!ArrayBuffer.isView(t))throw Error("Invalid data format, must be a string or TypedArray.");i=(a=t.slice()).byteLength}let r=i>>2,s=i-4*r,n=new Uint32Array(a.buffer,0,r),l=0,o=0,c=this.h1,h=this.h2;for(let t=0;t<r;t++)1&t?(c^=l=0x1b873593*(l=(l=0xcc9e2d51*(l=n[t])&0xffff0000|11601*l&65535)<<15|l>>>17)&0xffff0000|13715*l&65535,c=5*(c=c<<13|c>>>19)+0xe6546b64):(h^=o=0x1b873593*(o=(o=0xcc9e2d51*(o=n[t])&0xffff0000|11601*o&65535)<<15|o>>>17)&0xffff0000|13715*o&65535,h=5*(h=h<<13|h>>>19)+0xe6546b64);switch(l=0,s){case 3:l^=a[4*r+2]<<16;case 2:l^=a[4*r+1]<<8;case 1:l^=a[4*r],l=0x1b873593*(l=(l=0xcc9e2d51*l&0xffff0000|11601*l&65535)<<15|l>>>17)&0xffff0000|13715*l&65535,1&r?c^=l:h^=l}this.h1=c,this.h2=h}hexdigest(){let t=this.h1,a=this.h2;return t^=a>>>1,a=0xff51afd7*a&0xffff0000|(0xafd7ed55*(a<<16|(t=0xed558ccd*t&0xffff0000|36045*t&65535)>>>16)&0xffff0000)>>>16,t^=a>>>1,a=0xc4ceb9fe*a&0xffff0000|(0xb9fe1a85*(a<<16|(t=0x1a85ec53*t&0xffff0000|60499*t&65535)>>>16)&0xffff0000)>>>16,((t^=a>>>1)>>>0).toString(16).padStart(8,"0")+(a>>>0).toString(16).padStart(8,"0")}}function na(t,a,i,r,s,n){let l,o=s*n;l=a<=8?new Uint8Array(o):a<=16?new Uint16Array(o):new Uint32Array(o);let c=i/s,h=r/n,u,d,f,g,p=0,m=new Uint16Array(s);for(u=0;u<s;u++)m[u]=Math.floor(u*c);for(u=0;u<n;u++)for(d=0,f=Math.floor(u*h)*i;d<s;d++)g=f+m[d],l[p++]=t[g];return l}class ni{constructor({xref:t,res:a,image:i,isInline:r=!1,smask:s=null,mask:n=null,isMask:l=!1,pdfFunctionFactory:o,globalColorSpaceCache:c,localColorSpaceCache:h}){let u;this.image=i;const d=i.dict,g=d.get("F","Filter");if(g instanceof W)u=g.name;else if(Array.isArray(g)){const a=t.fetchIfRef(g[0]);a instanceof W&&(u=a.name)}switch(u){case"JPXDecode":({width:i.width,height:i.height,componentsCount:i.numComps,bitsPerComponent:i.bitsPerComponent}=tT.parseImageProperties(i.stream)),i.stream.reset();const p=tu.getReducePowerForJPX(i.width,i.height,i.numComps);if(this.jpxDecoderOptions={numComponents:0,isIndexedColormap:!1,smaskInData:d.has("SMaskInData"),reducePower:p},p){const t=2**p;i.width=Math.ceil(i.width/t),i.height=Math.ceil(i.height/t)}break;case"JBIG2Decode":i.bitsPerComponent=1,i.numComps=1}let m=d.get("W","Width"),b=d.get("H","Height");if(Number.isInteger(i.width)&&i.width>0&&Number.isInteger(i.height)&&i.height>0&&(i.width!==m||i.height!==b))f("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),m=i.width,b=i.height;else{const t="number"==typeof m&&m>0,a="number"==typeof b&&b>0;if(!t||!a){if(!i.fallbackDims)throw new A(`Invalid image width: ${m} or height: ${b}`);f("PDFImage - using the Width/Height of the parent image, for SMask/Mask data."),t||(m=i.fallbackDims.width),a||(b=i.fallbackDims.height)}}this.width=m,this.height=b,this.interpolate=d.get("I","Interpolate"),this.imageMask=d.get("IM","ImageMask")||!1,this.matte=d.get("Matte")||!1;let y=i.bitsPerComponent;if(!y&&!(y=d.get("BPC","BitsPerComponent"))){if(!this.imageMask)throw new A(`Bits per component missing in image: ${this.imageMask}`);y=1}if(this.bpc=y,!this.imageMask){let s=d.getRaw("CS")||d.getRaw("ColorSpace");const n=!!s;if(n)this.jpxDecoderOptions?.smaskInData&&(s=W.get("DeviceRGBA"));else if(this.jpxDecoderOptions)s=W.get("DeviceRGBA");else switch(i.numComps){case 1:s=W.get("DeviceGray");break;case 3:s=W.get("DeviceRGB");break;case 4:s=W.get("DeviceCMYK");break;default:throw Error(`Images with ${i.numComps} color components not supported.`)}this.colorSpace=ty.parse({cs:s,xref:t,resources:r?a:null,pdfFunctionFactory:o,globalColorSpaceCache:c,localColorSpaceCache:h}),this.numComps=this.colorSpace.numComps,this.jpxDecoderOptions&&(this.jpxDecoderOptions.numComponents=n?this.numComps:0,this.jpxDecoderOptions.isIndexedColormap="Indexed"===this.colorSpace.name)}if(this.decode=d.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,y)||l&&!e1.isDefaultDecode(this.decode,1))){this.needsDecode=!0;const t=(1<<y)-1;this.decodeCoefficients=[],this.decodeAddends=[];const a="Indexed"===this.colorSpace?.name;for(let i=0,r=0;i<this.decode.length;i+=2,++r){const s=this.decode[i],n=this.decode[i+1];this.decodeCoefficients[r]=a?(n-s)/t:n-s,this.decodeAddends[r]=a?s:t*s}}s?(s.fallbackDims??={width:m,height:b},this.smask=new ni({xref:t,res:a,image:s,isInline:r,pdfFunctionFactory:o,globalColorSpaceCache:c,localColorSpaceCache:h})):n&&(n instanceof ei?n.dict.get("IM","ImageMask")?(n.fallbackDims??={width:m,height:b},this.mask=new ni({xref:t,res:a,image:n,isInline:r,isMask:!0,pdfFunctionFactory:o,globalColorSpaceCache:c,localColorSpaceCache:h})):f("Ignoring /Mask in image without /ImageMask."):this.mask=n)}static async buildImage({xref:t,res:a,image:i,isInline:r=!1,pdfFunctionFactory:s,globalColorSpaceCache:n,localColorSpaceCache:l}){let o=null,c=null,h=i.dict.get("SMask"),u=i.dict.get("Mask");return h?h instanceof ei?o=h:f("Unsupported /SMask format."):u&&(u instanceof ei||Array.isArray(u)?c=u:f("Unsupported /Mask format.")),new ni({xref:t,res:a,image:i,isInline:r,smask:o,mask:c,pdfFunctionFactory:s,globalColorSpaceCache:n,localColorSpaceCache:l})}static async createMask({image:t,isOffscreenCanvasSupported:a=!1}){let i,{dict:r}=t,s=r.get("W","Width"),n=r.get("H","Height"),l=r.get("I","Interpolate"),o=r.getArray("D","Decode"),c=o?.[0]>0,h=(s+7>>3)*n,u=await t.getImageData(h),d=1===s&&1===n&&c===(0===u.length||!!(128&u[0]));if(d)return{isSingleOpaquePixel:d};if(a){if(tu.needsToBeResized(s,n)){let t=new Uint8ClampedArray(s*n*4);return th({src:u,dest:t,width:s,height:n,nonBlackColor:0,inverseDecode:c}),tu.createImage({kind:3,data:t,width:s,height:n,interpolate:l})}let t=new OffscreenCanvas(s,n),a=t.getContext("2d"),i=a.createImageData(s,n);return th({src:u,dest:i.data,width:s,height:n,nonBlackColor:0,inverseDecode:c}),a.putImageData(i,0,0),{data:null,width:s,height:n,interpolate:l,bitmap:t.transferToImageBitmap()}}let f=u.byteLength;if(t instanceof tm&&(!c||h===f)?i=u:c?((i=new Uint8Array(h)).set(u),i.fill(255,f)):i=new Uint8Array(u),c)for(let t=0;t<f;t++)i[t]^=255;return{data:i,width:s,height:n,interpolate:l}}get drawWidth(){return Math.max(this.width,this.smask?.width||0,this.mask?.width||0)}get drawHeight(){return Math.max(this.height,this.smask?.height||0,this.mask?.height||0)}decodeBuffer(t){let a,i,r=this.bpc,s=this.numComps,n=this.decodeAddends,l=this.decodeCoefficients,o=(1<<r)-1;if(1===r){for(a=0,i=t.length;a<i;a++)t[a]=+!t[a];return}let c=0;for(a=0,i=this.width*this.height;a<i;a++)for(let a=0;a<s;a++)t[c]=q(n[a]+t[c]*l[a],0,o),c++}getComponents(t){let a=this.bpc;if(8===a)return t;let i=this.width,r=this.height,s=this.numComps,n=i*r*s,l,o=0;l=a<=8?new Uint8Array(n):a<=16?new Uint16Array(n):new Uint32Array(n);let c=i*s,h=(1<<a)-1,u,d=0;if(1===a){let a,i,s;for(let n=0;n<r;n++){for(i=d+(-8&c),s=d+c;d<i;)u=t[o++],l[d]=u>>7&1,l[d+1]=u>>6&1,l[d+2]=u>>5&1,l[d+3]=u>>4&1,l[d+4]=u>>3&1,l[d+5]=u>>2&1,l[d+6]=u>>1&1,l[d+7]=1&u,d+=8;if(d<s)for(u=t[o++],a=128;d<s;)l[d++]=+!!(u&a),a>>=1}}else{let i=0;for(d=0,u=0;d<n;++d){for(d%c==0&&(u=0,i=0);i<a;)u=u<<8|t[o++],i+=8;let r=i-a,s=u>>r;s<0?s=0:s>h&&(s=h),l[d]=s,u&=(1<<r)-1,i=r}}return l}async fillOpacity(t,a,i,r,s){let n,l,o,c,h,u,d=this.smask,f=this.mask;if(d)n=new Uint8ClampedArray((l=d.width)*(o=d.height)),await d.fillGrayBuffer(n),l===a&&o===i||(n=na(n,d.bpc,l,o,a,i));else if(f)if(f instanceof ni){for(n=new Uint8ClampedArray((l=f.width)*(o=f.height)),f.numComps=1,await f.fillGrayBuffer(n),c=0,h=l*o;c<h;++c)n[c]=255-n[c];l===a&&o===i||(n=na(n,f.bpc,l,o,a,i))}else{if(!Array.isArray(f))throw new A("Unknown mask format.");{n=new Uint8ClampedArray(a*i);let t=this.numComps;for(c=0,h=a*i;c<h;++c){let a=0,i=c*t;for(u=0;u<t;++u){let t=s[i+u],r=2*u;if(t<f[r]||t>f[r+1]){a=255;break}}n[c]=a}}}if(n)for(c=0,u=3,h=a*r;c<h;++c,u+=4)t[u]=n[c];else for(c=0,u=3,h=a*r;c<h;++c,u+=4)t[u]=255}undoPreblend(t,a,i){let r=this.smask?.matte;if(!r)return;let s=this.colorSpace.getRgb(r,0),n=s[0],l=s[1],o=s[2],c=a*i*4;for(let a=0;a<c;a+=4){let i=t[a+3];if(0===i){t[a]=255,t[a+1]=255,t[a+2]=255;continue}let r=255/i;t[a]=(t[a]-n)*r+n,t[a+1]=(t[a+1]-l)*r+l,t[a+2]=(t[a+2]-o)*r+o}}async createImageData(t=!1,a=!1){let i,r,s,n,l,o,c=this.drawWidth,h=this.drawHeight,u={width:c,height:h,interpolate:this.interpolate,kind:0,data:null},d=this.numComps,f=this.width,g=this.height,m=this.bpc,b=f*d*m+7>>3,y=a&&tu.needsToBeResized(c,h);if(!this.smask&&!this.mask&&"DeviceRGBA"===this.colorSpace.name){u.kind=3;let t=u.data=await this.getImageBytes(g*f*4,{});return a?y?tu.createImage(u,!1):this.createBitmap(3,c,h,t):u}if(!t){let t;if("DeviceGray"===this.colorSpace.name&&1===m?t=1:"DeviceRGB"!==this.colorSpace.name||8!==m||this.needsDecode||(t=2),t&&!this.smask&&!this.mask&&c===f&&h===g){let i=await this.#eu(f,g);if(i)return i;let r=await this.getImageBytes(g*b,{});if(a)return y?tu.createImage({data:r,kind:t,width:c,height:h,interpolate:this.interpolate},this.needsDecode):this.createBitmap(t,f,g,r);if(u.kind=t,u.data=r,this.needsDecode){p(1===t,"PDFImage.createImageData: The image must be grayscale.");let a=u.data;for(let t=0,i=a.length;t<i;t++)a[t]^=255}return u}if(this.image instanceof tB&&!this.smask&&!this.mask&&!this.needsDecode){let t=g*b;if(a&&!y){let a=!1;switch(this.colorSpace.name){case"DeviceGray":t*=4,a=!0;break;case"DeviceRGB":t=t/3*4,a=!0;break;case"DeviceCMYK":a=!0}if(a){let a=await this.#eu(c,h);if(a)return a;let i=await this.getImageBytes(t,{drawWidth:c,drawHeight:h,forceRGBA:!0});return this.createBitmap(3,c,h,i)}}else switch(this.colorSpace.name){case"DeviceGray":t*=3;case"DeviceRGB":case"DeviceCMYK":return u.kind=2,u.data=await this.getImageBytes(t,{drawWidth:c,drawHeight:h,forceRGB:!0}),y?tu.createImage(u):u}}}let w=await this.getImageBytes(g*b,{internal:!0}),x=0|w.length/b*h/g,k=this.getComponents(w);return(a&&!y&&(o=(l=(n=(s=new OffscreenCanvas(c,h)).getContext("2d")).createImageData(c,h)).data),u.kind=3,t||this.smask||this.mask?(a&&!y||(o=new Uint8ClampedArray(c*h*4)),i=1,r=!0,await this.fillOpacity(o,c,h,x,k)):(!a||y?(u.kind=2,o=new Uint8ClampedArray(c*h*3),i=0):(new Uint32Array(o.buffer).fill(M.isLittleEndian?0xff000000:255),i=1),r=!1),this.needsDecode&&this.decodeBuffer(k),this.colorSpace.fillRgb(o,f,g,c,h,x,m,k,i),r&&this.undoPreblend(o,c,x),a&&!y)?(n.putImageData(l,0,0),{data:null,width:c,height:h,bitmap:s.transferToImageBitmap(),interpolate:this.interpolate}):(u.data=o,y?tu.createImage(u):u)}async fillGrayBuffer(t){let a,i,r=this.numComps;if(1!==r)throw new A(`Reading gray scale from a color image: ${r}`);let s=this.width,n=this.height,l=this.bpc,o=await this.getImageBytes(n*(s*r*l+7>>3),{internal:!0}),c=this.getComponents(o);if(1===l){if(i=s*n,this.needsDecode)for(a=0;a<i;++a)t[a]=c[a]-1&255;else for(a=0;a<i;++a)t[a]=255&-c[a];return}this.needsDecode&&this.decodeBuffer(c),i=s*n;let h=255/((1<<l)-1);for(a=0;a<i;++a)t[a]=h*c[a]}createBitmap(t,a,i,r){let s,n=new OffscreenCanvas(a,i),l=n.getContext("2d");return 3===t?s=new ImageData(r,a,i):tc({kind:t,src:r,dest:new Uint32Array((s=l.createImageData(a,i)).data.buffer),width:a,height:i,inverseDecode:this.needsDecode}),l.putImageData(s,0,0),{data:null,width:a,height:i,bitmap:n.transferToImageBitmap(),interpolate:this.interpolate}}async #eu(t,a){let i=await this.image.getTransferableImage();return i?{data:null,width:t,height:a,bitmap:i,interpolate:this.interpolate}:null}async getImageBytes(t,{drawWidth:a,drawHeight:i,forceRGBA:r=!1,forceRGB:s=!1,internal:n=!1}){this.image.reset(),this.image.drawWidth=a||this.width,this.image.drawHeight=i||this.height,this.image.forceRGBA=!!r,this.image.forceRGB=!!s;let l=await this.image.getImageData(t,this.jpxDecoderOptions);return n||this.image instanceof tm?l:(p(l instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.'),new Uint8Array(l))}}let nr=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!1,isImageDecoderSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,useWasm:!0,useWorkerFetch:!0,cMapUrl:null,iccUrl:null,standardFontDataUrl:null,wasmUrl:null}),ns=Promise.resolve();function nn(t,{objId:a,fn:i,args:r,optionalContent:s,hasMask:n}){a&&t.addDependency(a),t.addImageOps(i,r,s,n),83===i&&r[0]?.count>0&&r[0].count++}class nl{static TIME_SLOT_DURATION_MS=20;static CHECK_TIME_EVERY=100;constructor(){this.reset()}check(){return!(++this.checked<nl.CHECK_TIME_EVERY)&&(this.checked=0,this.endTime<=Date.now())}reset(){this.endTime=Date.now()+nl.TIME_SLOT_DURATION_MS,this.checked=0}}class no{constructor({xref:t,handler:a,pageIndex:i,idFactory:r,fontCache:s,builtInCMapCache:n,standardFontDataCache:l,globalColorSpaceCache:o,globalImageCache:c,systemFontCache:h,options:u=null}){this.xref=t,this.handler=a,this.pageIndex=i,this.idFactory=r,this.fontCache=s,this.builtInCMapCache=n,this.standardFontDataCache=l,this.globalColorSpaceCache=o,this.globalImageCache=c,this.systemFontCache=h,this.options=u||nr,this.type3FontRefs=null,this._regionalImageCache=new sN,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}get _pdfFunctionFactory(){return b(this,"_pdfFunctionFactory",new sP({xref:this.xref,isEvalSupported:this.options.isEvalSupported}))}get parsingType3Font(){return!!this.type3FontRefs}clone(t=null){let a=Object.create(this);return a.options=Object.assign(Object.create(null),this.options,t),a}hasBlendModes(t,a){if(!(t instanceof K)||t.objId&&a.has(t.objId))return!1;let i=new J(a);t.objId&&i.put(t.objId);let r=[t],s=this.xref;for(;r.length;){let t=r.shift(),a=t.get("ExtGState");if(a instanceof K)for(let t of a.getRawValues()){if(t instanceof Y){if(i.has(t))continue;try{t=s.fetch(t)}catch(a){i.put(t),d(`hasBlendModes - ignoring ExtGState: "${a}".`);continue}}if(!(t instanceof K))continue;t.objId&&i.put(t.objId);let a=t.get("BM");if(a instanceof W){if("Normal"!==a.name)return!0}else if(void 0!==a&&Array.isArray(a)){for(let t of a)if(t instanceof W&&"Normal"!==t.name)return!0}}let n=t.get("XObject");if(n instanceof K)for(let t of n.getRawValues()){if(t instanceof Y){if(i.has(t))continue;try{t=s.fetch(t)}catch(a){i.put(t),d(`hasBlendModes - ignoring XObject: "${a}".`);continue}}if(!(t instanceof ei))continue;t.dict.objId&&i.put(t.dict.objId);let a=t.dict.get("Resources");a instanceof K&&(!a.objId||!i.has(a.objId))&&(r.push(a),a.objId&&i.put(a.objId))}}for(let t of i)a.put(t);return!1}async fetchBuiltInCMap(t){let a,i=this.builtInCMapCache.get(t);return i||(a=this.options.useWorkerFetch?{cMapData:await ep(`${this.options.cMapUrl}${t}.bcmap`),isCompressed:!0}:await this.handler.sendWithPromise("FetchBinaryData",{type:"cMapReaderFactory",name:t}),this.builtInCMapCache.set(t,a),a)}async fetchStandardFontData(t){let a,i=this.standardFontDataCache.get(t);if(i)return new tr(i);if(this.options.useSystemFonts&&"Symbol"!==t&&"ZapfDingbats"!==t)return null;let r=iv()[t];try{a=this.options.useWorkerFetch?await ep(`${this.options.standardFontDataUrl}${r}`):await this.handler.sendWithPromise("FetchBinaryData",{type:"standardFontDataFactory",filename:r})}catch(t){return f(t),null}return this.standardFontDataCache.set(t,a),new tr(a)}async buildFormXObject(t,a,i,r,s,n,l,o){let c,h,{dict:u}=a,d=eS(u.getArray("Matrix"),null),f=eB(u.getArray("BBox"),null);u.has("OC")&&(c=await this.parseMarkedContentProps(u.get("OC"),t)),void 0!==c&&r.addOp(70,["OC",c]);let g=u.get("Group");if(g){h={matrix:d,bbox:f,smask:i,isolated:!1,knockout:!1};let a=null;if(Q(g.get("S"),"Transparency")&&(h.isolated=g.get("I")||!1,h.knockout=g.get("K")||!1,g.has("CS"))){let i=this._getColorSpace(g.getRaw("CS"),t,l);a=i instanceof e1?i:await this._handleColorSpace(i)}i?.backdrop&&(i.backdrop=(a||=ty.rgb).getRgbHex(i.backdrop,0)),r.addOp(76,[h])}let p=[d&&new Float32Array(d),!g&&f&&new Float32Array(f)||null];r.addOp(74,p);let m=u.get("Resources");await this.getOperatorList({stream:a,task:s,resources:m instanceof K?m:t,operatorList:r,initialState:n,prevRefs:o}),r.addOp(75,[]),g&&r.addOp(77,[h]),void 0!==c&&r.addOp(71,[])}_sendImgData(t,a,i=!1){let r=a?[a.bitmap||a.data.buffer]:null;return this.parsingType3Font||i?this.handler.send("commonobj",[t,"Image",a],r):this.handler.send("obj",[t,this.pageIndex,"Image",a],r)}async buildPaintImageXObject({resources:t,image:a,isInline:i=!1,operatorList:r,cacheKey:s,localImageCache:n,localColorSpaceCache:l}){let o,c,h,u,{maxImageSize:d,ignoreErrors:g,isOffscreenCanvasSupported:m}=this.options,{dict:b}=a,y=b.objId,w=b.get("W","Width"),x=b.get("H","Height");if(!w||"number"!=typeof w||!x||"number"!=typeof x)return void f("Image dimensions are missing, or not numbers.");if(-1!==d&&w*x>d){let t="Image exceeded maximum allowed size and was removed.";if(!g)throw Error(t);f(t);return}if(b.has("OC")&&(o=await this.parseMarkedContentProps(b.get("OC"),t)),b.get("IM","ImageMask")){if((c=await ni.createMask({image:a,isOffscreenCanvasSupported:m&&!this.parsingType3Font})).isSingleOpaquePixel){if(h=90,u=[],r.addImageOps(h,u,o),s){let t={fn:h,args:u,optionalContent:o};n.set(s,y,t),y&&this._regionalImageCache.set(null,y,t)}return}if(this.parsingType3Font)return(u=function({data:t,width:a,height:i}){let r,s,n;if(a>1e3||i>1e3)return null;let l=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),o=a+1,c=new Uint8Array(o*(i+1)),h=a+7&-8,u=new Uint8Array(h*i),d=0;for(let a of t){let t=128;for(;t>0;)u[d++]=a&t?0:255,t>>=1}let f=0;for(0!==u[d=0]&&(c[0]=1,++f),s=1;s<a;s++)u[d]!==u[d+1]&&(c[s]=u[d]?2:1,++f),d++;for(0!==u[d]&&(c[s]=2,++f),r=1;r<i;r++){d=r*h,n=r*o,u[d-h]!==u[d]&&(c[n]=u[d]?1:8,++f);let t=4*!!u[d]+8*!!u[d-h];for(s=1;s<a;s++)l[t=(t>>2)+4*!!u[d+1]+8*!!u[d-h+1]]&&(c[n+s]=l[t],++f),d++;if(u[d-h]!==u[d]&&(c[n+s]=u[d]?2:4,++f),f>1e3)return null}for(d=h*(i-1),n=r*o,0!==u[d]&&(c[n]=8,++f),s=1;s<a;s++)u[d]!==u[d+1]&&(c[n+s]=u[d]?4:8,++f),d++;if(0!==u[d]&&(c[n+s]=4,++f),f>1e3)return null;let g=new Int32Array([0,o,-1,0,-o,0,0,0,1]),p=[],{a:m,b:b,c:y,d:w,e:x,f:k}=(new DOMMatrix).scaleSelf(1/a,-1/i).translateSelf(0,-i);for(r=0;f&&r<=i;r++){let t=r*o,i=t+a;for(;t<i&&!c[t];)t++;if(t===i)continue;let s=t%o,n=r;p.push(0,m*s+y*n+x,b*s+w*n+k);let l=t,h=c[t];do{let a=g[h];do t+=a;while(!c[t]);let i=c[t];5!==i&&10!==i?(h=i,c[t]=0):(h=i&51*h>>4,c[t]&=h>>2|h<<2),s=t%o,n=t/o|0,p.push(1,m*s+y*n+x,b*s+w*n+k),c[t]||--f}while(l!==t);--r}return[94,[new Float32Array(p)],new Float32Array([0,0,a,i])]}(c))?void r.addImageOps(91,u,o):(f("Cannot compile Type3 glyph."),void r.addImageOps(83,[c],o));let t=`mask_${this.idFactory.createObjId()}`;if(r.addDependency(t),c.dataLen=c.bitmap?c.width*c.height*4:c.data.length,this._sendImgData(t,c),h=83,u=[{data:t,width:c.width,height:c.height,interpolate:c.interpolate,count:1}],r.addImageOps(h,u,o),s){let a={objId:t,fn:h,args:u,optionalContent:o};n.set(s,y,a),y&&this._regionalImageCache.set(null,y,a)}return}let k=b.has("SMask")||b.has("Mask");if(i&&w+x<200&&!k){try{let s=new ni({xref:this.xref,res:t,image:a,isInline:i,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:l});c=await s.createImageData(!0,!1),r.addImageOps(86,[c],o)}catch(a){let t=`Unable to decode inline image: "${a}".`;if(!g)throw Error(t);f(t)}return}let v=`img_${this.idFactory.createObjId()}`,A=!1,C=null;if(this.parsingType3Font?v=`${this.idFactory.getDocId()}_type3_${v}`:s&&y&&(A=this.globalImageCache.shouldCache(y,this.pageIndex))&&(p(!i,"Cannot cache an inline image globally."),v=`${this.idFactory.getDocId()}_${v}`),r.addDependency(v),h=85,u=[v,w,x],r.addImageOps(h,u,o,k),A){if(C={objId:v,fn:h,args:u,optionalContent:o,hasMask:k,byteSize:0},this.globalImageCache.hasDecodeFailed(y)){this.globalImageCache.setData(y,C),this._sendImgData(v,null,A);return}if(w*x>25e4||k){let t=await this.handler.sendWithPromise("commonobj",[v,"CopyLocalImage",{imageRef:y}]);if(t){this.globalImageCache.setData(y,C),this.globalImageCache.addByteSize(y,t);return}}}if(ni.buildImage({xref:this.xref,res:t,image:a,isInline:i,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:l}).then(async t=>((c=await t.createImageData(!1,m)).dataLen=c.bitmap?c.width*c.height*4:c.data.length,c.ref=y,A&&this.globalImageCache.addByteSize(y,c.dataLen),this._sendImgData(v,c,A))).catch(t=>(f(`Unable to decode image "${v}": "${t}".`),y&&this.globalImageCache.addDecodeFailed(y),this._sendImgData(v,null,A))),s){let t={objId:v,fn:h,args:u,optionalContent:o,hasMask:k};n.set(s,y,t),y&&(this._regionalImageCache.set(null,y,t),A&&(p(C,"The global cache-data must be available."),this.globalImageCache.setData(y,C)))}}handleSMask(t,a,i,r,s,n,l){let o=t.get("G"),c={subtype:t.get("S").name,backdrop:t.get("BC")},h=t.get("TR");if(sL(h)){let t=this._pdfFunctionFactory.create(h),a=new Uint8Array(256),i=new Float32Array(1);for(let r=0;r<256;r++)i[0]=r/255,t(i,0,i,0),a[r]=255*i[0]|0;c.transferMap=a}return this.buildFormXObject(a,o,c,i,r,s.state.clone({newPath:!0}),n,l)}handleTransferFunction(t){let a;if(Array.isArray(t))a=t;else{if(!sL(t))return null;a=[t]}let i=[],r=0,s=0;for(let t of a){let a=this.xref.fetchIfRef(t);if(r++,Q(a,"Identity")){i.push(null);continue}if(!sL(a))return null;let n=this._pdfFunctionFactory.create(a),l=new Uint8Array(256),o=new Float32Array(1);for(let t=0;t<256;t++)o[0]=t/255,n(o,0,o,0),l[t]=255*o[0]|0;i.push(l),s++}return 1!==r&&4!==r||0===s?null:i}handleTilingType(t,a,i,r,s,n,l,o){let c=new tP,h=K.merge({xref:this.xref,dictArray:[s.get("Resources"),i]});return this.getOperatorList({stream:r,task:l,resources:h,operatorList:c}).then(function(){let i=c.getIR(),r=r$(i,s,a);n.addDependencies(c.dependencies),n.addOp(t,r),s.objId&&o.set(null,s.objId,{operatorListIR:i,dict:s})}).catch(t=>{if(!(t instanceof C)){if(!this.options.ignoreErrors)throw t;f(`handleTilingType - ignoring pattern: "${t}".`)}})}async handleSetFont(t,a,i,r,s,n,l=null,o=null){let c=a?.[0]instanceof W?a[0].name:null,h=await this.loadFont(c,i,t,s,l,o);return h.font.isType3Font&&r.addDependencies(h.type3Dependencies),n.font=h.font,h.send(this.handler),h.loadedName}handleText(t,a){let i=a.font,r=i.charsToGlyphs(t);return i.data&&(4&a.textRenderingMode||"Pattern"===a.fillColorSpace.name||"Pattern"===a.strokeColorSpace.name||i.disableFontFace)&&no.buildFontPaths(i,r,this.handler,this.options),r}ensureStateFont(t){if(t.font)return;let a=new A("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw a;f(`ensureStateFont: "${a}".`)}async setGState({resources:t,gState:a,operatorList:i,cacheKey:r,task:s,stateManager:n,localGStateCache:l,localColorSpaceCache:o,seenRefs:c}){let h=a.objId,u=!0,g=[],p=Promise.resolve();for(let[r,l]of a)switch(r){case"Type":break;case"LW":if("number"!=typeof l){f(`Invalid LW (line width): ${l}`);break}g.push([r,Math.abs(l)]);break;case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":g.push([r,l]);break;case"Font":u=!1,p=p.then(()=>this.handleSetFont(t,null,l[0],i,s,n.state).then(function(t){i.addDependency(t),g.push([r,[t,l[1]]])}));break;case"BM":g.push([r,function t(a,i=!1){if(Array.isArray(a)){for(let i of a){let a=t(i,!0);if(a)return a}return f(`Unsupported blend mode Array: ${a}`),"source-over"}if(!(a instanceof W))return i?null:"source-over";switch(a.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 i?null:(f(`Unsupported blend mode: ${a.name}`),"source-over")}(l)]);break;case"SMask":if(Q(l,"None")){g.push([r,!1]);break}l instanceof K?(u=!1,p=p.then(()=>this.handleSMask(l,t,i,s,n,o,c)),g.push([r,!0])):f("Unsupported SMask type");break;case"TR":let a=this.handleTransferFunction(l);g.push([r,a]);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":d("graphic state operator "+r);break;default:d("Unknown graphic state operator "+r)}await p,g.length>0&&i.addOp(9,[g]),u&&l.set(r,h,g)}loadFont(t,a,i,r,s=null,n=null){let l,o,c,h=async()=>new nc({loadedName:"g_font_error",font:new rF(`Font "${t}" is not available.`),dict:a});if(a)a instanceof Y&&(l=a);else{let a=i.get("Font");a&&(l=a.getRaw(t))}if(l){if(this.type3FontRefs?.has(l))return h();if(this.fontCache.has(l))return this.fontCache.get(l);try{a=this.xref.fetchIfRef(l)}catch(t){f(`loadFont - lookup failed: "${t}".`)}}if(!(a instanceof K)){if(!this.options.ignoreErrors&&!this.parsingType3Font)return f(`Font "${t}" is not available.`),h();f(`Font "${t}" is not available -- attempting to fallback to a default font.`),a=s||no.fallbackFontDict}if(a.cacheKey&&this.fontCache.has(a.cacheKey))return this.fontCache.get(a.cacheKey);let{promise:u,resolve:d}=Promise.withResolvers();try{(o=this.preEvaluateFont(a)).cssFontInfo=n}catch(t){return f(`loadFont - preEvaluateFont failed: "${t}".`),h()}let{descriptor:g,hash:m}=o,b=l instanceof Y;if(m&&g instanceof K){let t=g.fontAliases||=Object.create(null);if(t[m]){let a=t[m].aliasRef;if(b&&a&&this.fontCache.has(a))return this.fontCache.putAlias(l,a),this.fontCache.get(l)}else t[m]={fontID:this.idFactory.createFontId()};b&&(t[m].aliasRef=l),c=t[m].fontID}else c=this.idFactory.createFontId();return p(c?.startsWith("f"),'The "fontID" must be (correctly) defined.'),b?this.fontCache.put(l,u):(a.cacheKey=`cacheKey_${c}`,this.fontCache.put(a.cacheKey,u)),a.loadedName=`${this.idFactory.getDocId()}_${c}`,this.translateFont(o).then(async t=>{let s=new nc({loadedName:a.loadedName,font:t,dict:a});if(t.isType3Font)try{await s.loadType3Data(this,i,r)}catch(t){throw Error(`Type3 font load error: ${t}`)}d(s)}).catch(t=>{f(`loadFont - translateFont failed: "${t}".`),d(new nc({loadedName:a.loadedName,font:new rF(t?.message),dict:a}))}),u}buildPath(t,a,i){let{pathMinMax:r,pathBuffer:s}=i;switch(0|t){case 19:{let t=i.currentPointX=a[0],n=i.currentPointY=a[1],l=a[2],o=a[3],c=t+l,h=n+o;0===l||0===o?s.push(0,t,n,1,c,h,4):s.push(0,t,n,1,c,n,1,c,h,1,t,h,4),R.rectBoundingBox(t,n,c,h,r);break}case 13:{let t=i.currentPointX=a[0],n=i.currentPointY=a[1];s.push(0,t,n),R.pointBoundingBox(t,n,r);break}case 14:{let t=i.currentPointX=a[0],n=i.currentPointY=a[1];s.push(1,t,n),R.pointBoundingBox(t,n,r);break}case 15:{let t=i.currentPointX,n=i.currentPointY,[l,o,c,h,u,d]=a;i.currentPointX=u,i.currentPointY=d,s.push(2,l,o,c,h,u,d),R.bezierBoundingBox(t,n,l,o,c,h,u,d,r);break}case 16:{let t=i.currentPointX,n=i.currentPointY,[l,o,c,h]=a;i.currentPointX=c,i.currentPointY=h,s.push(2,t,n,l,o,c,h),R.bezierBoundingBox(t,n,t,n,l,o,c,h,r);break}case 17:{let t=i.currentPointX,n=i.currentPointY,[l,o,c,h]=a;i.currentPointX=c,i.currentPointY=h,s.push(2,l,o,c,h,c,h),R.bezierBoundingBox(t,n,l,o,c,h,c,h,r);break}case 18:s.push(4)}}_getColorSpace(t,a,i){return ty.parse({cs:t,xref:this.xref,resources:a,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:i,asyncIfNotCached:!0})}async _handleColorSpace(t){try{return await t}catch(t){if(t instanceof C)return null;if(this.options.ignoreErrors)return f(`_handleColorSpace - ignoring ColorSpace: "${t}".`),null;throw t}}parseShading({shading:t,resources:a,localColorSpaceCache:i,localShadingPatternCache:r}){let s,n=r.get(t);if(n)return n;try{s=rO.parseShading(t,this.xref,a,this._pdfFunctionFactory,this.globalColorSpaceCache,i).getIR()}catch(a){if(a instanceof C)return null;if(this.options.ignoreErrors)return f(`parseShading - ignoring shading: "${a}".`),r.set(t,null),null;throw a}if(n=`pattern_${this.idFactory.createObjId()}`,this.parsingType3Font&&(n=`${this.idFactory.getDocId()}_type3_${n}`),r.set(t,n),this.parsingType3Font){let t=[],a=rN.write(s);t.push(a),this.handler.send("commonobj",[n,"Pattern",a],t)}else this.handler.send("obj",[n,this.pageIndex,"Pattern",s]);return n}handleColorN(t,a,i,r,s,n,l,o,c,h){let u=i.pop();if(u instanceof W){let d=s.getRaw(u.name),f=d instanceof Y&&c.getByRef(d);if(f)try{let s=r.base?r.base.getRgbHex(i,0):null,n=r$(f.operatorListIR,f.dict,s);t.addOp(a,n);return}catch{}let g=this.xref.fetchIfRef(d);if(g){let s=g instanceof ei?g.dict:g,u=s.get("PatternType");if(1===u){let o=r.base?r.base.getRgbHex(i,0):null;return this.handleTilingType(a,o,n,g,s,t,l,c)}if(2===u){let i=s.get("Shading"),r=this.parseShading({shading:i,resources:n,localColorSpaceCache:o,localShadingPatternCache:h});if(r){let i=eS(s.getArray("Matrix"),null);t.addOp(a,["Shading",r,i])}return}throw new A(`Unknown PatternType: ${u}`)}}throw new A(`Unknown PatternName: ${u}`)}_parseVisibilityExpression(t,a,i){if(++a>10)return void f("Visibility expression is too deeply nested");let r=t.length,s=this.xref.fetchIfRef(t[0]);if(!(r<2)&&s instanceof W){switch(s.name){case"And":case"Or":case"Not":i.push(s.name);break;default:f(`Invalid operator ${s.name} in visibility expression`);return}for(let s=1;s<r;s++){let r=t[s],n=this.xref.fetchIfRef(r);if(Array.isArray(n)){let t=[];i.push(t),this._parseVisibilityExpression(n,a,t)}else r instanceof Y&&i.push(r.toString())}}else f("Invalid visibility expression")}async parseMarkedContentProps(t,a){let i;if(t instanceof W)i=a.get("Properties").get(t.name);else{if(!(t instanceof K))throw new A("Optional content properties malformed.");i=t}let r=i.get("Type")?.name;if("OCG"===r)return{type:r,id:i.objId};if("OCMD"===r){let t=i.get("VE");if(Array.isArray(t)){let a=[];if(this._parseVisibilityExpression(t,0,a),a.length>0)return{type:"OCMD",expression:a}}let a=i.get("OCGs");if(Array.isArray(a)||a instanceof K){let t=[];if(Array.isArray(a))for(let i of a)t.push(i.toString());else t.push(a.objId);return{type:r,ids:t,policy:i.get("P")instanceof W?i.get("P").name:null,expression:null}}if(a instanceof Y)return{type:r,id:a.toString()}}return null}async getOperatorList({stream:t,task:a,resources:i,operatorList:r,initialState:s=null,fallbackFontDict:n=null,prevRefs:l=null}){if(t.isAsync){let a=await t.asyncGetBytes();a&&(t=new tr(a,0,a.length,t.dict))}let o=t.dict?.objId,c=new J(l);if(o){if(l?.has(o))throw Error(`getOperatorList - ignoring circular reference: ${o}`);c.put(o)}if(i||=K.empty,s||=new nd,!r)throw Error('getOperatorList: missing "operatorList" parameter');let h=this,u=this.xref,g=new sB,p=new sF,m=new sT,b=new sR,y=new Map,w=i.get("XObject")||K.empty,x=i.get("Pattern")||K.empty,k=new nh(s),v=new nf(t,u,k),S=new nl;function I(t){for(let t=0,a=v.savedStatesDepth;t<a;t++)r.addOp(11,[])}return new Promise(function t(s,l){let o,B,F,M,T,R,N=function(a){Promise.all([a,r.ready]).then(function(){try{t(s,l)}catch(t){l(t)}},l)};a.ensureNotTerminated(),S.reset();let D={};for(;!(o=S.check())&&(D.args=null,v.read(D));){let t=D.args,s=D.fn;switch(0|s){case 66:if(R=t[0]instanceof W,T=t[0].name,R){let a=g.getByName(T);if(a){nn(r,a),t=null;continue}}N(new Promise(function(t,s){if(!R)throw new A("XObject must be referred to by name.");let n=w.getRaw(T);if(n instanceof Y){let a=g.getByRef(n)||h._regionalImageCache.getByRef(n)||h.globalImageCache.getData(n,h.pageIndex);if(a){nn(r,a),t();return}n=u.fetch(n)}if(!(n instanceof ei))throw new A("XObject should be a stream");let l=n.dict.get("Subtype");if(!(l instanceof W))throw new A("XObject should have a Name subtype");if("Form"!==l.name)if("Image"!==l.name){if("PS"!==l.name)throw new A(`Unhandled XObject subtype ${l.name}`);d("Ignored XObject subtype PS"),t()}else h.buildPaintImageXObject({resources:i,image:n,operatorList:r,cacheKey:T,localImageCache:g,localColorSpaceCache:p}).then(t,s);else k.save(),h.buildFormXObject(i,n,null,r,a,k.state.clone({newPath:!0}),p,c).then(function(){k.restore(),t()},s)}).catch(function(t){if(!(t instanceof C)){if(!h.options.ignoreErrors)throw t;f(`getOperatorList - ignoring XObject: "${t}".`)}}));return;case 37:let l=t[1];N(h.handleSetFont(i,t,null,r,a,k.state,n).then(function(t){r.addDependency(t),r.addOp(37,[t,l])}));return;case 65:let o=t[0].cacheKey;if(o){let a=g.getByName(o);if(a){nn(r,a),t=null;continue}}N(h.buildPaintImageXObject({resources:i,image:t[0],isInline:!0,operatorList:r,cacheKey:o,localImageCache:g,localColorSpaceCache:p}));return;case 44:if(!k.state.font){h.ensureStateFont(k.state);continue}t[0]=h.handleText(t[0],k.state);break;case 45:if(!k.state.font){h.ensureStateFont(k.state);continue}let v=[],S=k.state;for(let a of t[0])"string"==typeof a?v.push(...h.handleText(a,S)):"number"==typeof a&&v.push(a);t[0]=v,s=44;break;case 46:if(!k.state.font){h.ensureStateFont(k.state);continue}r.addOp(43),t[0]=h.handleText(t[0],k.state),s=44;break;case 47:if(!k.state.font){h.ensureStateFont(k.state);continue}r.addOp(43),r.addOp(34,[t.shift()]),r.addOp(33,[t.shift()]),t[0]=h.handleText(t[0],k.state),s=44;break;case 38:k.state.textRenderingMode=t[0];break;case 51:{let a=h._getColorSpace(t[0],i,p);if(a instanceof e1){k.state.fillColorSpace=a;continue}N(h._handleColorSpace(a).then(t=>{k.state.fillColorSpace=t||ty.gray}));return}case 50:{let a=h._getColorSpace(t[0],i,p);if(a instanceof e1){k.state.strokeColorSpace=a;continue}N(h._handleColorSpace(a).then(t=>{k.state.strokeColorSpace=t||ty.gray}));return}case 54:t=[(M=k.state.fillColorSpace).getRgbHex(t,0)],s=59;break;case 52:t=[(M=k.state.strokeColorSpace).getRgbHex(t,0)],s=58;break;case 57:k.state.fillColorSpace=ty.gray,t=[ty.gray.getRgbHex(t,0)],s=59;break;case 56:k.state.strokeColorSpace=ty.gray,t=[ty.gray.getRgbHex(t,0)],s=58;break;case 61:k.state.fillColorSpace=ty.cmyk,t=[ty.cmyk.getRgbHex(t,0)],s=59;break;case 60:k.state.strokeColorSpace=ty.cmyk,t=[ty.cmyk.getRgbHex(t,0)],s=58;break;case 59:k.state.fillColorSpace=ty.rgb,t=[ty.rgb.getRgbHex(t,0)];break;case 58:k.state.strokeColorSpace=ty.rgb,t=[ty.rgb.getRgbHex(t,0)];break;case 55:if(!(M=k.state.patternFillColorSpace)){if(eC(t,null)){t=[ty.gray.getRgbHex(t,0)],s=59;break}t=[],s=93;break}if("Pattern"===M.name)return void N(h.handleColorN(r,55,t,M,x,i,a,p,b,y));t=[M.getRgbHex(t,0)],s=59;break;case 53:if(!(M=k.state.patternStrokeColorSpace)){if(eC(t,null)){t=[ty.gray.getRgbHex(t,0)],s=58;break}t=[],s=92;break}if("Pattern"===M.name)return void N(h.handleColorN(r,53,t,M,x,i,a,p,b,y));t=[M.getRgbHex(t,0)],s=58;break;case 62:let I;try{let a=i.get("Shading");if(!a)throw new A("No shading resource found");if(!(I=a.get(t[0].name)))throw new A("No shading object found")}catch(t){if(t instanceof C)continue;if(h.options.ignoreErrors){f(`getOperatorList - ignoring Shading: "${t}".`);continue}throw t}let O=h.parseShading({shading:I,resources:i,localColorSpaceCache:p,localShadingPatternCache:y});if(!O)continue;t=[O],s=62;break;case 9:if(R=t[0]instanceof W,T=t[0].name,R){let a=m.getByName(T);if(a){a.length>0&&r.addOp(9,[a]),t=null;continue}}N(new Promise(function(t,s){if(!R)throw new A("GState must be referred to by name.");let n=i.get("ExtGState");if(!(n instanceof K))throw new A("ExtGState should be a dictionary.");let l=n.get(T);if(!(l instanceof K))throw new A("GState should be a dictionary.");h.setGState({resources:i,gState:l,operatorList:r,cacheKey:T,task:a,stateManager:k,localGStateCache:m,localColorSpaceCache:p,seenRefs:c}).then(t,s)}).catch(function(t){if(!(t instanceof C)){if(!h.options.ignoreErrors)throw t;f(`getOperatorList - ignoring ExtGState: "${t}".`)}}));return;case 2:{let[a]=t;if("number"!=typeof a){f(`Invalid setLineWidth: ${a}`);continue}t[0]=Math.abs(a);break}case 6:{let a=t[1];if("number"!=typeof a){f(`Invalid setDash: ${a}`);continue}let i=t[0];if(!Array.isArray(i)){f(`Invalid setDash: ${i}`);continue}i.some(t=>"number"!=typeof t)&&(t[0]=i.filter(t=>"number"==typeof t));break}case 13:case 14:case 15:case 16:case 17:case 18:case 19:h.buildPath(s,t,k.state);continue;case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:{let{state:{pathBuffer:t,pathMinMax:a}}=k;21!==s&&26!==s&&27!==s||t.push(4),0===t.length?r.addOp(91,[s,[null],null]):(r.addOp(91,[s,[new Float32Array(t)],a.slice()]),t.length=0,a.set([1/0,1/0,-1/0,-1/0],0));continue}case 42:r.addOp(s,[new Float32Array(t)]);continue;case 67:case 68:case 72:case 73:continue;case 70:if(!(t[0]instanceof W)){f(`Expected name for beginMarkedContentProps arg0=${t[0]}`),r.addOp(70,["OC",null]);continue}if("OC"===t[0].name)return void N(h.parseMarkedContentProps(t[1],i).then(t=>{r.addOp(70,["OC",t])}).catch(t=>{if(!(t instanceof C)){if(!h.options.ignoreErrors)throw t;f(`getOperatorList - ignoring beginMarkedContentProps: "${t}".`),r.addOp(70,["OC",null])}}));t=[t[0].name,t[1]instanceof K?t[1].get("MCID"):null];break;default:if(null!==t){for(B=0,F=t.length;B<F&&!(t[B]instanceof K);B++);if(B<F){f("getOperatorList - ignoring operator: "+s);continue}}}r.addOp(s,t)}o?N(ns):(I(),s())}).catch(t=>{if(!(t instanceof C)){if(!this.options.ignoreErrors)throw t;f(`getOperatorList - ignoring errors during "${a.name}" task: "${t}".`),I()}})}async getTextContent({stream:t,task:a,resources:r,stateManager:s=null,includeMarkedContent:n=!1,sink:l,seenStyles:o=new Set,viewBox:c,lang:h=null,markedContentData:u=null,disableNormalization:d=!1,keepWhiteSpace:g=!1,prevRefs:p=null,intersector:m=null}){let b;if(t.isAsync){let a=await t.asyncGetBytes();a&&(t=new tr(a,0,a.length,t.dict))}let y=t.dict?.objId,w=new J(p);if(y){if(p?.has(y))throw Error(`getTextContent - ignoring circular reference: ${y}`);w.put(y)}r||=K.empty,s||=new nh(new nu),n&&(u||={level:0});let x={items:[],styles:Object.create(null),lang:h},k={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},v=[" "," "],S=0;function I(t){let a=(S+1)%2,i=" "!==v[S]&&" "===v[a];return v[S]=t,S=a,!g&&i}function B(){return!g&&" "!==v[S]&&" "===v[(S+1)%2]}function F(){v[0]=v[1]=" ",S=0}let M=this,T=this.xref,N=[],D=null,O=new sB,P=new sT,_=new nf(t,T,s);function q({width:t=0,height:a=0,transform:i=k.prevTransform,fontName:r=k.fontName}){m?.addExtraChar(" "),x.items.push({str:" ",dir:"ltr",width:t,height:a,transform:i,fontName:r,hasEOL:!1})}function j(){let t=b.font,a=[b.fontSize*b.textHScale,0,0,b.fontSize,0,b.textRise];if(t.isType3Font&&(b.fontSize<=1||t.isCharBBox)&&!E(b.fontMatrix,i)){let i=t.bbox[3]-t.bbox[1];i>0&&(a[3]*=i*b.fontMatrix[3])}return R.transform(b.ctm,R.transform(b.textMatrix,a))}async function $(t,s){let n=await M.loadFont(t,s,r,a);b.loadedName=n.loadedName,b.font=n.font,b.fontMatrix=n.font.fontMatrix||i}function H(t,a,i){let r=Math.hypot(i[0],i[1]);return[(i[0]*t+i[1]*a)/r,(i[2]*t+i[3]*a)/r]}function z(t){let a=j(),i=a[4],r=a[5];if(b.font?.vertical){if(i<c[0]||i>c[2]||r+t<c[1]||r>c[3])return!1}else if(i+t<c[0]||i>c[2]||r<c[1]||r>c[3])return!1;if(!b.font||!k.prevTransform)return!0;let s=k.prevTransform[4],n=k.prevTransform[5];if(s===i&&n===r)return!0;let l=-1;switch(a[0]&&0===a[1]&&0===a[2]?l=a[0]>0?0:180:a[1]&&0===a[0]&&0===a[3]&&(l=a[1]>0?90:270),l){case 0:break;case 90:[i,r]=[r,i],[s,n]=[n,s];break;case 180:[i,r,s,n]=[-i,-r,-s,-n];break;case 270:[i,r]=[-r,-i],[s,n]=[-n,-s];break;default:[i,r]=H(i,r,a),[s,n]=H(s,n,k.prevTransform)}if(b.font.vertical){let t=(n-r)/k.textAdvanceScale,a=i-s,l=Math.sign(k.height);return t<l*k.negativeSpaceMax?(Math.abs(a)>.5*k.width?V():(F(),Z()),!0):(Math.abs(a)>k.width?V():(t<=l*k.notASpace&&F(),t<=l*k.trackingSpaceMin?B()?(F(),Z(),q({height:Math.abs(t)})):k.height+=t:X(t,k.prevTransform,l)||(0===k.str.length?(F(),q({height:Math.abs(t)})):k.height+=t),Math.abs(a)>.25*k.width&&Z()),!0)}let o=(i-s)/k.textAdvanceScale,h=r-n,u=Math.sign(k.width);return o<u*k.negativeSpaceMax?(Math.abs(h)>.5*k.height?V():(F(),Z()),!0):(Math.abs(h)>k.height?V():(o<=u*k.notASpace&&F(),o<=u*k.trackingSpaceMin?B()?(F(),Z(),q({width:Math.abs(o)})):k.width+=o:X(o,k.prevTransform,u)||(0===k.str.length?(F(),q({width:Math.abs(o)})):k.width+=o),Math.abs(h)>.25*k.height&&Z()),!0)}function G({chars:t,extraSpacing:a}){let i=b.font;if(!t){let t=b.charSpacing+a;t&&(i.vertical?b.translateTextMatrix(0,-t):b.translateTextMatrix(t*b.textHScale,0)),g&&z(0);return}let r=i.charsToGlyphs(t),s=b.fontMatrix[0]*b.fontSize;for(let t=0,n=r.length;t<n;t++){let l=r[t],{category:c,originalCharCode:h}=l;if(c.isInvisibleFormatMark)continue;let u=b.charSpacing+(t+1===n?a:0),d=l.width;i.vertical&&(d=l.vmetric?l.vmetric[0]:-d);let f=d*s;if(32===h&&(u+=b.wordSpacing),!g&&c.isWhitespace){i.vertical?(u+=-f,b.translateTextMatrix(0,-u)):(u+=f,b.translateTextMatrix(u*b.textHScale,0)),I(" ");continue}if(!c.isZeroWidthDiacritic&&!z(f)){i.vertical?b.translateTextMatrix(0,f):b.translateTextMatrix(f*b.textHScale,0);continue}let p=function(){if(k.initialized)return k;let{font:t,loadedName:a}=b;if(!o.has(a)&&(o.add(a),x.styles[a]={fontFamily:t.fallbackName,ascent:t.ascent,descent:t.descent,vertical:t.vertical},M.options.fontExtraProperties&&t.systemFontInfo)){let i=x.styles[a];i.fontSubstitution=t.systemFontInfo.css,i.fontSubstitutionLoadedName=t.systemFontInfo.loadedName}k.fontName=a;let i=k.transform=j();t.vertical?(k.width=k.totalWidth=Math.hypot(i[0],i[1]),k.height=k.totalHeight=0,k.vertical=!0):(k.width=k.totalWidth=0,k.height=k.totalHeight=Math.hypot(i[2],i[3]),k.vertical=!1);let r=Math.hypot(b.textLineMatrix[0],b.textLineMatrix[1]);k.textAdvanceScale=Math.hypot(b.ctm[0],b.ctm[1])*r;let{fontSize:s}=b;return k.trackingSpaceMin=.102*s,k.notASpace=.03*s,k.negativeSpaceMax=-.2*s,k.spaceInFlowMin=.102*s,k.spaceInFlowMax=.6*s,k.hasEOL=!1,k.initialized=!0,k}();c.isZeroWidthDiacritic&&(f=0),i.vertical?(m?.addGlyph(j(),0,f,l.unicode),b.translateTextMatrix(0,f),f=Math.abs(f),p.height+=f):(f*=b.textHScale,m?.addGlyph(j(),f,0,l.unicode),b.translateTextMatrix(f,0),p.width+=f),f&&(p.prevTransform=j());let y=l.unicode;I(y)&&(p.str.push(" "),m?.addExtraChar(" ")),m||p.str.push(y),u&&(i.vertical?b.translateTextMatrix(0,-u):b.translateTextMatrix(u*b.textHScale,0))}}function V(){m?.addExtraChar("\n"),F(),k.initialized?(k.hasEOL=!0,Z()):x.items.push({str:"",dir:"ltr",width:0,height:0,transform:j(),fontName:b.loadedName,hasEOL:!0})}function X(t,a,i){if(i*k.spaceInFlowMin<=t&&t<=i*k.spaceInFlowMax)return k.initialized&&(F(),k.str.push(" "),m?.addExtraChar(" ")),!1;let r=k.fontName,s=0;return k.vertical&&(s=t,t=0),Z(),F(),q({width:Math.abs(t),height:Math.abs(s),transform:a||j(),fontName:r}),!0}function Z(){if(k.initialized&&k.str){var t;let a,i;k.vertical?k.totalHeight+=k.height*k.textAdvanceScale:k.totalWidth+=k.width*k.textAdvanceScale,x.items.push((a=k.str.join(""),d||(t=a,L||(L=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,U=new Map([["ſt","ſt"]])),a=t.replaceAll(L,(t,a,i)=>a?a.normalize("NFKC"):U.get(i))),{str:(i=s2(a,-1,k.vertical)).str,dir:i.dir,width:Math.abs(k.totalWidth),height:Math.abs(k.totalHeight),transform:k.transform,fontName:k.fontName,hasEOL:k.hasEOL})),k.initialized=!1,k.str.length=0}}function Q(t=!1){let a=x.items.length;0===a||t&&a<10||(l?.enqueue(x,a),x.items=[],x.styles=Object.create(null))}let ee=new nl;return new Promise(function t(i,p){let m=function(a){Q(!0),Promise.all([a,l?.ready]).then(function(){try{t(i,p)}catch(t){p(t)}},p)};a.ensureNotTerminated(),ee.reset();let y={},v,S,I,B=[];for(;!(v=ee.check())&&(B.length=0,y.args=B,_.read(y));){let t=b;b=s.state;let i=y.fn;switch(B=y.args,0|i){case 37:let p=B[0].name,F=B[1];if(b.font&&p===b.fontName&&F===b.fontSize)break;Z(),b.fontName=p,b.fontSize=F,m($(p,null));return;case 39:b.textRise=B[0];break;case 35:b.textHScale=B[0]/100;break;case 36:b.leading=B[0];break;case 40:b.translateTextLineMatrix(B[0],B[1]),b.textMatrix=b.textLineMatrix.slice();break;case 41:b.leading=-B[1],b.translateTextLineMatrix(B[0],B[1]),b.textMatrix=b.textLineMatrix.slice();break;case 43:b.carriageReturn();break;case 42:b.setTextMatrix(B[0],B[1],B[2],B[3],B[4],B[5]),b.setTextLineMatrix(B[0],B[1],B[2],B[3],B[4],B[5]),function(){if(!k.initialized)return;let t=Math.hypot(b.textLineMatrix[0],b.textLineMatrix[1]),a=Math.hypot(b.ctm[0],b.ctm[1])*t;a!==k.textAdvanceScale&&(k.vertical?(k.totalHeight+=k.height*k.textAdvanceScale,k.height=0):(k.totalWidth+=k.width*k.textAdvanceScale,k.width=0),k.textAdvanceScale=a)}();break;case 33:b.charSpacing=B[0];break;case 34:b.wordSpacing=B[0];break;case 31:b.textMatrix=en.slice(),b.textLineMatrix=en.slice();break;case 45:if(!s.state.font){M.ensureStateFont(s.state);continue}let R=(b.font.vertical?1:-1)*b.fontSize/1e3,E=B[0];for(let t=0,a=E.length;t<a;t++){let a=E[t];if("string"==typeof a)N.push(a);else if("number"==typeof a&&0!==a){let t=N.join("");N.length=0,G({chars:t,extraSpacing:a*R})}}if(N.length>0){let t=N.join("");N.length=0,G({chars:t,extraSpacing:0})}break;case 44:if(!s.state.font){M.ensureStateFont(s.state);continue}G({chars:B[0],extraSpacing:0});break;case 46:if(!s.state.font){M.ensureStateFont(s.state);continue}b.carriageReturn(),G({chars:B[0],extraSpacing:0});break;case 47:if(!s.state.font){M.ensureStateFont(s.state);continue}b.wordSpacing=B[0],b.charSpacing=B[1],b.carriageReturn(),G({chars:B[2],extraSpacing:0});break;case 66:if(Z(),D??=r.get("XObject")||K.empty,I=B[0]instanceof W,S=B[0].name,I&&O.getByName(S))break;m(new Promise(function(t,i){if(!I)throw new A("XObject must be referred to by name.");let f=D.getRaw(S);if(f instanceof Y){if(O.getByRef(f)||M.globalImageCache.getData(f,M.pageIndex))return void t();f=T.fetch(f)}if(!(f instanceof ei))throw new A("XObject should be a stream");let{dict:p}=f,m=p.get("Subtype");if(!(m instanceof W))throw new A("XObject should have a Name subtype");if("Form"!==m.name){O.set(S,p.objId,!0),t();return}let b=new nh(s.state.clone()),y=eS(p.getArray("Matrix"),null);y&&b.transform(y);let x=p.get("Resources");Q();let k={enqueueInvoked:!1,enqueue(t,a){this.enqueueInvoked=!0,l.enqueue(t,a)},get desiredSize(){return l.desiredSize??0},get ready(){return l.ready}};M.getTextContent({stream:f,task:a,resources:x instanceof K?x:r,stateManager:b,includeMarkedContent:n,sink:l&&k,seenStyles:o,viewBox:c,lang:h,markedContentData:u,disableNormalization:d,keepWhiteSpace:g,prevRefs:w}).then(function(){k.enqueueInvoked||O.set(S,p.objId,!0),t()},i)}).catch(function(t){if(!(t instanceof C)){if(!M.options.ignoreErrors)throw t;f(`getTextContent - ignoring XObject: "${t}".`)}}));return;case 9:if(I=B[0]instanceof W,S=B[0].name,I&&P.getByName(S))break;m(new Promise(function(t,a){if(!I)throw new A("GState must be referred to by name.");let i=r.get("ExtGState");if(!(i instanceof K))throw new A("ExtGState should be a dictionary.");let s=i.get(S);if(!(s instanceof K))throw new A("GState should be a dictionary.");let n=s.get("Font");n?(Z(),b.fontName=null,b.fontSize=n[1],$(null,n[0]).then(t,a)):(P.set(S,s.objId,!0),t())}).catch(function(t){if(!(t instanceof C)){if(!M.options.ignoreErrors)throw t;f(`getTextContent - ignoring ExtGState: "${t}".`)}}));return;case 69:Z(),n&&(u.level++,x.items.push({type:"beginMarkedContent",tag:B[0]instanceof W?B[0].name:null}));break;case 70:if(Z(),n){u.level++;let t=null;B[1]instanceof K&&(t=B[1].get("MCID")),x.items.push({type:"beginMarkedContentProps",id:Number.isInteger(t)?`${M.idFactory.getPageObjId()}_mc${t}`:null,tag:B[0]instanceof W?B[0].name:null})}break;case 71:if(Z(),n){if(0===u.level)break;u.level--,x.items.push({type:"endMarkedContent"})}break;case 11:t&&(t.font!==b.font||t.fontSize!==b.fontSize||t.fontName!==b.fontName)&&Z()}if(x.items.length>=(l?.desiredSize??1)){v=!0;break}}v?m(ns):(Z(),Q(),i())}).catch(t=>{if(!(t instanceof C)){if(!this.options.ignoreErrors)throw t;f(`getTextContent - ignoring errors during "${a.name}" task: "${t}".`),Z(),Q()}})}async extractDataStructures(t,a){let i,r=this.xref,s=this.readToUnicode(a.toUnicode);if(a.composite){let r=t.get("CIDSystemInfo");r instanceof K&&!a.cidSystemInfo&&(a.cidSystemInfo={registry:D(r.get("Registry")),ordering:D(r.get("Ordering")),supplement:r.get("Supplement")});try{let a=t.get("CIDToGIDMap");a instanceof ei&&(i=a.getBytes())}catch(t){if(!this.options.ignoreErrors)throw t;f(`extractDataStructures - ignoring CIDToGIDMap data: "${t}".`)}}let n=[],l,o=null;if(t.has("Encoding")){if((l=t.get("Encoding"))instanceof K){if(o=(o=l.get("BaseEncoding"))instanceof W?o.name:null,l.has("Differences")){let t=l.get("Differences"),a=0;for(let i of t){let t=r.fetchIfRef(i);if("number"==typeof t)a=t;else{if(!(t instanceof W))throw new A(`Invalid entry in 'Differences' array: ${t}`);n[a++]=t.name}}}}else if(l instanceof W)o=l.name;else{let t="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new A(t);f(t)}"MacRomanEncoding"!==o&&"MacExpertEncoding"!==o&&"WinAnsiEncoding"!==o&&(o=null)}let c=!a.file||a.isInternalFont,h=iS()[a.name];if(o&&c&&h&&(o=null),"WinAnsiEncoding"===o&&c&&a.name?.charCodeAt(0)>=183&&["\xcb\xce\xcc\xe5","\xba\xda\xcc\xe5","\xbf\xac\xcc\xe5","\xb7\xc2\xcb\xce","\xbf\xac\xcc\xe5_GB2312","\xb7\xc2\xcb\xce_GB2312","\xc1\xa5\xca\xe9","\xd0\xc2\xcb\xce"].includes(a.name)){o=null,a.defaultEncoding="Adobe-GB1-UCS2",a.composite=!0,a.cidEncoding=W.get("GBK-EUC-H");let t=await aq.create({encoding:a.cidEncoding,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});a.cMap=t,a.vertical=a.cMap.vertical,a.cidSystemInfo={registry:"Adobe",ordering:"GB1",supplement:0}}if(o)a.defaultEncoding=aX(o);else{let t=!!(4&a.flags),i=!!(32&a.flags);"TrueType"===a.type&&t&&i&&0!==n.length&&(a.flags&=-5,t=!1),l=az,"TrueType"!==a.type||i||(l=aG),(t||h)&&(l=aH,c&&(/Symbol/i.test(a.name)?l=aW:/Dingbats/i.test(a.name)?l=aV:/Wingdings/i.test(a.name)&&(l=aG))),a.defaultEncoding=l}a.differences=n,a.baseEncodingName=o,a.hasEncoding=!!o||n.length>0,a.dict=t,a.toUnicode=await s;let u=await this.buildToUnicode(a);return a.toUnicode=u,i&&(a.cidToGidMap=this.readCidToGidMap(i,u)),a}_simpleFontToUnicode(t,a=!1){p(!t.composite,"Must be a simple font.");let i=[],r=t.defaultEncoding.slice(),s=t.baseEncodingName,n=t.differences;for(let t in n){let a=n[t];".notdef"!==a&&(r[t]=a)}let l=aK();for(let n in r){let o=r[n];if(""===o)continue;let c=l[o];if(void 0!==c){i[n]=String.fromCharCode(c);continue}let h=0;switch(o[0]){case"G":3===o.length&&(h=parseInt(o.substring(1),16));break;case"g":5===o.length&&(h=parseInt(o.substring(1),16));break;case"C":case"c":if(o.length>=3&&o.length<=4){let i=o.substring(1);if(a){h=parseInt(i,16);break}if(Number.isNaN(h=+i)&&Number.isInteger(parseInt(i,16)))return this._simpleFontToUnicode(t,!0)}break;case"u":-1!==(c=aZ(o,l))&&(h=c);break;default:switch(o){case"f_h":case"f_t":case"T_h":i[n]=o.replaceAll("_","");continue}}if(h>0&&h<=1114111&&Number.isInteger(h)){if(s&&h===+n){let t=aX(s);if(t&&(o=t[n])){i[n]=String.fromCharCode(l[o]);continue}}i[n]=String.fromCodePoint(h)}}return i}async buildToUnicode(t){if(t.hasIncludedToUnicodeMap=t.toUnicode?.length>0,t.hasIncludedToUnicodeMap)return!t.composite&&t.hasEncoding&&(t.fallbackToUnicode=this._simpleFontToUnicode(t)),t.toUnicode;if(!t.composite)return new iR(this._simpleFontToUnicode(t));if(t.composite&&(t.cMap.builtInCMap&&!(t.cMap instanceof aD)||"Adobe"===t.cidSystemInfo?.registry&&("GB1"===t.cidSystemInfo.ordering||"CNS1"===t.cidSystemInfo.ordering||"Japan1"===t.cidSystemInfo.ordering||"Korea1"===t.cidSystemInfo.ordering))){let{registry:a,ordering:i}=t.cidSystemInfo,r=W.get(`${a}-${i}-UCS2`),s=await aq.create({encoding:r,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),n=[],l=[];return t.cMap.forEach(function(t,a){if(a>65535)throw new A("Max size of CID is 65,535");let i=s.lookup(a);if(i){l.length=0;for(let t=0,a=i.length;t<a;t+=2)l.push((i.charCodeAt(t)<<8)+i.charCodeAt(t+1));n[t]=String.fromCharCode(...l)}}),new iR(n)}return new iN(t.firstChar,t.lastChar)}async readToUnicode(t){if(!t)return null;if(t instanceof W){let a=await aq.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});return a instanceof aD?new iN(0,65535):new iR(a.getMap())}if(t instanceof ei)try{let a=await aq.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});if(a instanceof aD)return new iN(0,65535);let i=Array(a.length);return a.forEach(function(t,a){if("number"==typeof a){i[t]=String.fromCodePoint(a);return}a.length%2!=0&&(a="\0"+a);let r=[];for(let t=0;t<a.length;t+=2){let i=a.charCodeAt(t)<<8|a.charCodeAt(t+1);if(55296!=(63488&i)){r.push(i);continue}t+=2;let s=a.charCodeAt(t)<<8|a.charCodeAt(t+1);r.push(((1023&i)<<10)+(1023&s)+65536)}i[t]=String.fromCodePoint(...r)}),new iR(i)}catch(t){if(t instanceof C)return null;if(this.options.ignoreErrors)return f(`readToUnicode - ignoring ToUnicode data: "${t}".`),null;throw t}return null}readCidToGidMap(t,a){let i=[];for(let r=0,s=t.length;r<s;r++){let s=t[r++]<<8|t[r],n=r>>1;(0!==s||a.has(n))&&(i[n]=s)}return i}extractWidths(t,a,i){let r,s=this.xref,n=[],l=0,o=[];if(i.composite){let a=t.get("DW");l="number"==typeof a?Math.ceil(a):1e3;let c=t.get("W");if(Array.isArray(c))for(let t=0,a=c.length;t<a;t++){let a=s.fetchIfRef(c[t++]);if(!Number.isInteger(a))break;let i=s.fetchIfRef(c[t]);if(Array.isArray(i))for(let t of i){let i=s.fetchIfRef(t);"number"==typeof i&&(n[a]=i),a++}else{if(!Number.isInteger(i))break;{let r=s.fetchIfRef(c[++t]);if("number"!=typeof r)continue;for(let t=a;t<=i;t++)n[t]=r}}}if(i.vertical){let a=t.getArray("DW2"),i=eC(a,2)?a:[880,-1e3];if(r=[i[1],.5*l,i[0]],Array.isArray(i=t.get("W2")))for(let t=0,a=i.length;t<a;t++){let a=s.fetchIfRef(i[t++]);if(!Number.isInteger(a))break;let r=s.fetchIfRef(i[t]);if(Array.isArray(r))for(let t=0,i=r.length;t<i;t++){let i=[s.fetchIfRef(r[t++]),s.fetchIfRef(r[t++]),s.fetchIfRef(r[t])];eC(i,null)&&(o[a]=i),a++}else{if(!Number.isInteger(r))break;{let n=[s.fetchIfRef(i[++t]),s.fetchIfRef(i[++t]),s.fetchIfRef(i[++t])];if(!eC(n,null))continue;for(let t=a;t<=r;t++)o[t]=n}}}}}else{let r=t.get("Widths");if(Array.isArray(r)){let t=i.firstChar;for(let a of r){let i=s.fetchIfRef(a);"number"==typeof i&&(n[t]=i),t++}let o=a.get("MissingWidth");l="number"==typeof o?o:0}else{let a=t.get("BaseFont");if(a instanceof W){let t=this.getBaseFontMetrics(a.name);n=this.buildCharCodeToWidth(t.widths,i),l=t.defaultWidth}}}let c=!0,h=l;for(let t in n){let a=n[t];if(a)if(h){if(h!==a){c=!1;break}}else h=a}c?i.flags|=1:i.flags&=-2,i.defaultWidth=l,i.widths=n,i.defaultVMetrics=r,i.vmetrics=o}isSerifFont(t){let a=t.split("-",1)[0];return a in iC()||/serif/gi.test(a)}getBaseFontMetrics(t){let a=0,i=Object.create(null),r=!1,s=ik()[t]||t,n=i$();s in n||(s=this.isSerifFont(t)?"Times-Roman":"Helvetica");let l=n[s];return"number"==typeof l?(a=l,r=!0):i=l(),{defaultWidth:a,monospace:r,widths:i}}buildCharCodeToWidth(t,a){let i=Object.create(null),r=a.differences,s=a.defaultEncoding;for(let a=0;a<256;a++)a in r&&t[r[a]]?i[a]=t[r[a]]:a in s&&t[s[a]]&&(i[a]=t[s[a]]);return i}preEvaluateFont(t){let a=t,i=t.get("Subtype");if(!(i instanceof W))throw new A("invalid font Subtype");let r,s=!1;if("Type0"===i.name){let a=t.get("DescendantFonts");if(!a)throw new A("Descendant fonts are not specified");if(!((t=Array.isArray(a)?this.xref.fetchIfRef(a[0]):a)instanceof K))throw new A("Descendant font is not a dictionary.");if(!((i=t.get("Subtype"))instanceof W))throw new A("invalid font Subtype");s=!0}let n=t.get("FirstChar");Number.isInteger(n)||(n=0);let l=t.get("LastChar");Number.isInteger(l)||(l=s?65535:255);let o=t.get("FontDescriptor"),c=t.get("ToUnicode")||a.get("ToUnicode");if(o){r=new nt;let i=a.getRaw("Encoding");if(i instanceof W)r.update(i.name);else if(i instanceof Y)r.update(i.toString());else if(i instanceof K){for(let t of i.getRawValues())if(t instanceof W)r.update(t.name);else if(t instanceof Y)r.update(t.toString());else if(Array.isArray(t)){let a=t.length,i=Array(a);for(let r=0;r<a;r++){let a=t[r];a instanceof W?i[r]=a.name:("number"==typeof a||a instanceof Y)&&(i[r]=a.toString())}r.update(i.join())}}if(r.update(`${n}-${l}`),c instanceof ei){let t=c.stream||c,a=t.buffer?new Uint8Array(t.buffer.buffer,0,t.bufferLength):new Uint8Array(t.bytes.buffer,t.start,t.end-t.start);r.update(a)}else c instanceof W&&r.update(c.name);let o=t.get("Widths")||a.get("Widths");if(Array.isArray(o)){let t=[];for(let a of o)("number"==typeof a||a instanceof Y)&&t.push(a.toString());r.update(t.join())}if(s){r.update("compositeFont");let i=t.get("W")||a.get("W");if(Array.isArray(i)){let t=[];for(let a of i)if("number"==typeof a||a instanceof Y)t.push(a.toString());else if(Array.isArray(a)){let i=[];for(let t of a)("number"==typeof t||t instanceof Y)&&i.push(t.toString());t.push(`[${i.join()}]`)}r.update(t.join())}let s=t.getRaw("CIDToGIDMap")||a.getRaw("CIDToGIDMap");s instanceof W?r.update(s.name):s instanceof Y?r.update(s.toString()):s instanceof ei&&r.update(s.peekBytes())}}return{descriptor:o,dict:t,baseDict:a,composite:s,type:i.name,firstChar:n,lastChar:l,toUnicode:c,hash:r?r.hexdigest():""}}async translateFont({descriptor:t,dict:a,baseDict:r,composite:s,type:n,firstChar:l,lastChar:o,toUnicode:c,cssFontInfo:h}){let u,g,p,m,b,y="Type3"===n;if(!t){if(!y){let t=a.get("BaseFont");if(!(t instanceof W))throw new A("Base font is not specified");t=t.name.replaceAll(/[,_]/g,"-");let i=this.getBaseFontMetrics(t),s=t.split("-",1)[0],h=2*!!this.isSerifFont(s)|!!i.monospace|(iS()[s]?4:32),u={type:n,name:t,loadedName:r.loadedName,systemFontInfo:null,widths:i.widths,defaultWidth:i.defaultWidth,isSimulatedFlags:!0,flags:h,firstChar:l,lastChar:o,toUnicode:c,xHeight:0,capHeight:0,italicAngle:0,isType3Font:y},d=a.get("Widths"),f=iM(t),g=null;f&&(u.isInternalFont=!!(g=await this.fetchStandardFontData(f))),!u.isInternalFont&&this.options.useSystemFonts&&(u.systemFontInfo=ne(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,t,f,n));let p=await this.extractDataStructures(a,u);if(Array.isArray(d)){let t=[],a=l;for(let i of d){let r=this.xref.fetchIfRef(i);"number"==typeof r&&(t[a]=r),a++}p.widths=t}else p.widths=this.buildCharCodeToWidth(i.widths,p);return new rB(t,g,p,this.options)}t=K.empty}let w=t.get("FontName"),x=a.get("BaseFont");"string"==typeof w&&(w=W.get(w)),"string"==typeof x&&(x=W.get(x));let k=w?.name,v=x?.name;if(y?k||(w=W.get(n)):k!==v&&(d(`The FontDescriptor's FontName is "${k}" but should be the same as the Font's BaseFont "${v}".`),k&&v&&(v.startsWith(k)||!iT(k)&&iT(v))&&(w=null),w||=x),!(w instanceof W))throw new A("invalid font name");try{if(u=t.get("FontFile","FontFile2","FontFile3")){if(!(u instanceof ei))throw new A("FontFile should be a stream");if(u.isAsync){let t=await u.asyncGetBytes();t&&(u=new tr(t,0,t.length,u.dict))}if(u.isEmpty)throw new A("FontFile is empty")}}catch(t){if(!this.options.ignoreErrors)throw t;f(`translateFont - fetching "${w.name}" font file: "${t}".`),u=null}let C=!1,S=null,I=null;if(u){if(u.dict){let t=u.dict.get("Subtype");t instanceof W&&(g=t.name),p=u.dict.get("Length1"),m=u.dict.get("Length2"),b=u.dict.get("Length3")}}else if(h){let t=sx(w.name);t&&(h.fontFamily=`${h.fontFamily}-PdfJS-XFA`,h.metrics=t.metrics||null,S=t.factors||null,C=!!(u=await this.fetchStandardFontData(t.name)),r=a=sk(w.name),s=!0)}else if(!y){let t=iM(w.name);t&&(C=!!(u=await this.fetchStandardFontData(t))),!C&&this.options.useSystemFonts&&(I=ne(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,w.name,t,n))}let B=eS(a.getArray("FontMatrix"),i),F=eB(t.getArray("FontBBox")||a.getArray("FontBBox"),y?[0,0,0,0]:void 0),M=t.get("Ascent");"number"!=typeof M&&(M=void 0);let T=t.get("Descent");"number"!=typeof T&&(T=void 0);let R=t.get("XHeight");"number"!=typeof R&&(R=0);let N=t.get("CapHeight");"number"!=typeof N&&(N=0);let D=t.get("Flags");Number.isInteger(D)||(D=0);let O=t.get("ItalicAngle");"number"!=typeof O&&(O=0);let P={type:n,name:w.name,subtype:g,file:u,length1:p,length2:m,length3:b,isInternalFont:C,loadedName:r.loadedName,composite:s,fixedPitch:!1,fontMatrix:B,firstChar:l,lastChar:o,toUnicode:c,bbox:F,ascent:M,descent:T,xHeight:R,capHeight:N,flags:D,italicAngle:O,isType3Font:y,cssFontInfo:h,scaleFactors:S,systemFontInfo:I};if(s){let t=r.get("Encoding");t instanceof W&&(P.cidEncoding=t.name),P.cMap=await aq.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),P.vertical=P.cMap.vertical}let E=await this.extractDataStructures(a,P);return this.extractWidths(a,t,E),new rB(w.name,u,E,this.options)}static buildFontPaths(t,a,i,r){function s(a){let s=`${t.loadedName}_path_${a}`;try{if(t.renderer.hasBuiltPath(a))return;let r=rD.write(t.renderer.getPathJs(a));i.send("commonobj",[s,"FontPath",r],[r])}catch(t){if(r.ignoreErrors)return void f(`buildFontPaths - ignoring ${s} glyph: "${t}".`);throw t}}for(let t of a){s(t.fontChar);let a=t.accent;a?.fontChar&&s(a.fontChar)}}static get fallbackFontDict(){let t=new K;return t.set("BaseFont",W.get("Helvetica")),t.set("Type",W.get("FallbackType")),t.set("Subtype",W.get("FallbackType")),t.set("Encoding",W.get("WinAnsiEncoding")),b(this,"fallbackFontDict",t)}}class nc{#ed=!1;#ef=null;constructor({loadedName:t,font:a,dict:i}){this.loadedName=t,this.font=a,this.dict=i,this.type3Dependencies=a.isType3Font?new Set:null}send(t){if(this.#ed)return;this.#ed=!0;let a=this.font.exportData(),i=[];a.data&&(a.data.charProcOperatorList&&(a.charProcOperatorList=a.data.charProcOperatorList),a.data=rR.write(a.data),i.push(a.data)),t.send("commonobj",[this.loadedName,"Font",a],i)}fallback(t,a){this.font.data&&(this.font.disableFontFace=!0,no.buildFontPaths(this.font,this.font.glyphCacheValues,t,a))}loadType3Data(t,a,i){if(this.#ef)return this.#ef;let{font:r,type3Dependencies:s}=this;p(r.isType3Font,"Must be a Type3 font.");let n=t.clone({ignoreErrors:!1}),l=new J(t.type3FontRefs);this.dict.objId&&!l.has(this.dict.objId)&&l.put(this.dict.objId),n.type3FontRefs=l;let o=Promise.resolve(),c=this.dict.get("CharProcs"),h=this.dict.get("Resources")||a,u=Object.create(null),[d,g,m,b]=r.bbox,y=Math.hypot(m-d,b-g);for(let t of c.getKeys())o=o.then(()=>{let a=c.get(t),r=new tP;return n.getOperatorList({stream:a,task:i,resources:h,operatorList:r}).then(()=>{switch(r.fnArray[0]){case 49:this.#eg(r,y);break;case 48:y||this.#ep(r)}for(let a of(u[t]=r.getIR(),r.dependencies))s.add(a)}).catch(function(a){f(`Type3 font resource "${t}" is not available.`);let i=new tP;u[t]=i.getIR()})});return this.#ef=o.then(()=>{r.charProcOperatorList=u,this._bbox&&(r.isCharBBox=!0,r.bbox=this._bbox)}),this.#ef}#eg(t,a=NaN){let i=R.normalizeRect(t.argsArray[0].slice(2)),r=i[2]-i[0],s=i[3]-i[1],n=Math.hypot(r,s);0===r||0===s?(t.fnArray.splice(0,1),t.argsArray.splice(0,1)):(0===a||Math.round(n/a)>=10)&&(this._bbox??=[1/0,1/0,-1/0,-1/0],R.rectBoundingBox(...i,this._bbox));let l=0,o=t.length;for(;l<o;){switch(t.fnArray[l]){case 49:break;case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 7:t.fnArray.splice(l,1),t.argsArray.splice(l,1),o--;continue;case 9:let[a]=t.argsArray[l],i=0,r=a.length;for(;i<r;){let[t]=a[i];switch(t){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":a.splice(i,1),r--;continue}i++}}l++}}#ep(t){let a=1,i=t.length;for(;a<i;){if(91===t.fnArray[a]){let i=t.argsArray[a][2];this._bbox??=[1/0,1/0,-1/0,-1/0],R.rectBoundingBox(...i,this._bbox)}a++}}}class nh{constructor(t=new nd){this.state=t,this.stateStack=[]}save(){let t=this.state;this.stateStack.push(this.state),this.state=t.clone()}restore(){let t=this.stateStack.pop();t&&(this.state=t)}transform(t){this.state.ctm=R.transform(this.state.ctm,t)}}class nu{constructor(){this.ctm=new Float32Array(en),this.fontName=null,this.fontSize=0,this.loadedName=null,this.font=null,this.fontMatrix=i,this.textMatrix=en.slice(),this.textLineMatrix=en.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}setTextMatrix(t,a,i,r,s,n){let l=this.textMatrix;l[0]=t,l[1]=a,l[2]=i,l[3]=r,l[4]=s,l[5]=n}setTextLineMatrix(t,a,i,r,s,n){let l=this.textLineMatrix;l[0]=t,l[1]=a,l[2]=i,l[3]=r,l[4]=s,l[5]=n}translateTextMatrix(t,a){let i=this.textMatrix;i[4]=i[0]*t+i[2]*a+i[4],i[5]=i[1]*t+i[3]*a+i[5]}translateTextLineMatrix(t,a){let i=this.textLineMatrix;i[4]=i[0]*t+i[2]*a+i[4],i[5]=i[1]*t+i[3]*a+i[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}clone(){let t=Object.create(this);return t.textMatrix=this.textMatrix.slice(),t.textLineMatrix=this.textLineMatrix.slice(),t.fontMatrix=this.fontMatrix.slice(),t}}class nd{constructor(){this.ctm=new Float32Array(en),this.font=null,this.textRenderingMode=0,this._fillColorSpace=this._strokeColorSpace=ty.gray,this.patternFillColorSpace=null,this.patternStrokeColorSpace=null,this.currentPointX=this.currentPointY=0,this.pathMinMax=new Float32Array([1/0,1/0,-1/0,-1/0]),this.pathBuffer=[]}get fillColorSpace(){return this._fillColorSpace}set fillColorSpace(t){this._fillColorSpace=this.patternFillColorSpace=t}get strokeColorSpace(){return this._strokeColorSpace}set strokeColorSpace(t){this._strokeColorSpace=this.patternStrokeColorSpace=t}clone({newPath:t=!1}={}){let a=Object.create(this);return t&&(a.pathBuffer=[],a.pathMinMax=new Float32Array([1/0,1/0,-1/0,-1/0])),a}}class nf{static get opMap(){return b(this,"opMap",Object.assign(Object.create(null),{w:{id:2,numArgs:1,variableArgs:!1},J:{id:3,numArgs:1,variableArgs:!1},j:{id:4,numArgs:1,variableArgs:!1},M:{id:5,numArgs:1,variableArgs:!1},d:{id:6,numArgs:2,variableArgs:!1},ri:{id:7,numArgs:1,variableArgs:!1},i:{id:8,numArgs:1,variableArgs:!1},gs:{id:9,numArgs:1,variableArgs:!1},q:{id:10,numArgs:0,variableArgs:!1},Q:{id:11,numArgs:0,variableArgs:!1},cm:{id:12,numArgs:6,variableArgs:!1},m:{id:13,numArgs:2,variableArgs:!1},l:{id:14,numArgs:2,variableArgs:!1},c:{id:15,numArgs:6,variableArgs:!1},v:{id:16,numArgs:4,variableArgs:!1},y:{id:17,numArgs:4,variableArgs:!1},h:{id:18,numArgs:0,variableArgs:!1},re:{id:19,numArgs:4,variableArgs:!1},S:{id:20,numArgs:0,variableArgs:!1},s:{id:21,numArgs:0,variableArgs:!1},f:{id:22,numArgs:0,variableArgs:!1},F:{id:22,numArgs:0,variableArgs:!1},"f*":{id:23,numArgs:0,variableArgs:!1},B:{id:24,numArgs:0,variableArgs:!1},"B*":{id:25,numArgs:0,variableArgs:!1},b:{id:26,numArgs:0,variableArgs:!1},"b*":{id:27,numArgs:0,variableArgs:!1},n:{id:28,numArgs:0,variableArgs:!1},W:{id:29,numArgs:0,variableArgs:!1},"W*":{id:30,numArgs:0,variableArgs:!1},BT:{id:31,numArgs:0,variableArgs:!1},ET:{id:32,numArgs:0,variableArgs:!1},Tc:{id:33,numArgs:1,variableArgs:!1},Tw:{id:34,numArgs:1,variableArgs:!1},Tz:{id:35,numArgs:1,variableArgs:!1},TL:{id:36,numArgs:1,variableArgs:!1},Tf:{id:37,numArgs:2,variableArgs:!1},Tr:{id:38,numArgs:1,variableArgs:!1},Ts:{id:39,numArgs:1,variableArgs:!1},Td:{id:40,numArgs:2,variableArgs:!1},TD:{id:41,numArgs:2,variableArgs:!1},Tm:{id:42,numArgs:6,variableArgs:!1},"T*":{id:43,numArgs:0,variableArgs:!1},Tj:{id:44,numArgs:1,variableArgs:!1},TJ:{id:45,numArgs:1,variableArgs:!1},"'":{id:46,numArgs:1,variableArgs:!1},'"':{id:47,numArgs:3,variableArgs:!1},d0:{id:48,numArgs:2,variableArgs:!1},d1:{id:49,numArgs:6,variableArgs:!1},CS:{id:50,numArgs:1,variableArgs:!1},cs:{id:51,numArgs:1,variableArgs:!1},SC:{id:52,numArgs:4,variableArgs:!0},SCN:{id:53,numArgs:33,variableArgs:!0},sc:{id:54,numArgs:4,variableArgs:!0},scn:{id:55,numArgs:33,variableArgs:!0},G:{id:56,numArgs:1,variableArgs:!1},g:{id:57,numArgs:1,variableArgs:!1},RG:{id:58,numArgs:3,variableArgs:!1},rg:{id:59,numArgs:3,variableArgs:!1},K:{id:60,numArgs:4,variableArgs:!1},k:{id:61,numArgs:4,variableArgs:!1},sh:{id:62,numArgs:1,variableArgs:!1},BI:{id:63,numArgs:0,variableArgs:!1},ID:{id:64,numArgs:0,variableArgs:!1},EI:{id:65,numArgs:1,variableArgs:!1},Do:{id:66,numArgs:1,variableArgs:!1},MP:{id:67,numArgs:1,variableArgs:!1},DP:{id:68,numArgs:2,variableArgs:!1},BMC:{id:69,numArgs:1,variableArgs:!1},BDC:{id:70,numArgs:2,variableArgs:!1},EMC:{id:71,numArgs:0,variableArgs:!1},BX:{id:72,numArgs:0,variableArgs:!1},EX:{id:73,numArgs:0,variableArgs:!1},BM:null,BD:null,true:null,fa:null,fal:null,fals:null,false:null,nu:null,nul:null,null:null}))}static MAX_INVALID_PATH_OPS=10;constructor(t,a,i=new nh){this.parser=new aS({lexer:new aF(t,nf.opMap),xref:a}),this.stateManager=i,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(t){let a=t.args;for(;;){let i=this.parser.getObj();if(i instanceof V){let r=i.cmd,s=nf.opMap[r];if(!s){f(`Unknown command "${r}".`);continue}let n=s.id,l=s.numArgs,o=null!==a?a.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=n>=13&&n<=28,s.variableArgs)o>l&&d(`Command ${r}: expected [0, ${l}] args, but received ${o} args.`);else{if(o!==l){let t=this.nonProcessedArgs;for(;o>l;)t.push(a.shift()),o--;for(;o<l&&0!==t.length;)null===a&&(a=[]),a.unshift(t.pop()),o++}if(o<l){let t=`command ${r}: expected ${l} args, but received ${o} args.`;if(this._isPathOp&&++this._numInvalidPathOPS>nf.MAX_INVALID_PATH_OPS)throw new A(`Invalid ${t}`);f(`Skipping ${t}`),null!==a&&(a.length=0);continue}}return this.preprocessCommand(n,a),t.fn=n,t.args=a,!0}if(i===$)return!1;if(null!==i&&(null===a&&(a=[]),a.push(i),a.length>33))throw new A("Too many arguments")}}preprocessCommand(t,a){switch(0|t){case 10:this.stateManager.save();break;case 11:this.stateManager.restore();break;case 12:this.stateManager.transform(a)}}}class ng extends nf{constructor(t){super(new ts(t))}parse(){let t={fn:0,args:[]},a={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;t.args.length=0,this.read(t);){if(0!==this.savedStatesDepth)continue;let{fn:i,args:r}=t;switch(0|i){case 37:let[s,n]=r;s instanceof W&&(a.fontName=s.name),"number"==typeof n&&n>0&&(a.fontSize=n);break;case 59:ty.rgb.getRgbItem(r,0,a.fontColor,0);break;case 57:ty.gray.getRgbItem(r,0,a.fontColor,0);break;case 61:ty.cmyk.getRgbItem(r,0,a.fontColor,0)}}}catch(t){f(`parseDefaultAppearance - ignoring errors: "${t}".`)}return a}}function np(t){return new ng(t).parse()}class nm extends nf{constructor(t,a,i,r){super(t),this.stream=t,this.evaluatorOptions=a,this.xref=i,this.globalColorSpaceCache=r,this.resources=t.dict?.get("Resources")}parse(){let t={fn:0,args:[]},a={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:ty.gray},i=!1,r=[];try{for(;t.args.length=0,!i&&this.read(t);){let{fn:s,args:n}=t;switch(0|s){case 10:r.push({scaleFactor:a.scaleFactor,fontSize:a.fontSize,fontName:a.fontName,fontColor:a.fontColor.slice(),fillColorSpace:a.fillColorSpace});break;case 11:a=r.pop()||a;break;case 42:a.scaleFactor*=Math.hypot(n[0],n[1]);break;case 37:let[l,o]=n;l instanceof W&&(a.fontName=l.name),"number"==typeof o&&o>0&&(a.fontSize=o*a.scaleFactor);break;case 51:a.fillColorSpace=ty.parse({cs:n[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:this._localColorSpaceCache});break;case 54:a.fillColorSpace.getRgbItem(n,0,a.fontColor,0);break;case 59:ty.rgb.getRgbItem(n,0,a.fontColor,0);break;case 57:ty.gray.getRgbItem(n,0,a.fontColor,0);break;case 61:ty.cmyk.getRgbItem(n,0,a.fontColor,0);break;case 44:case 45:case 46:case 47:i=!0}}}catch(t){f(`parseAppearanceStream - ignoring errors: "${t}".`)}return this.stream.reset(),delete a.scaleFactor,delete a.fillColorSpace,a}get _localColorSpaceCache(){return b(this,"_localColorSpaceCache",new sF)}get _pdfFunctionFactory(){return b(this,"_pdfFunctionFactory",new sP({xref:this.xref,isEvalSupported:this.evaluatorOptions.isEvalSupported}))}}function nb(t,a){return t[0]===t[1]&&t[1]===t[2]?`${e_(t[0]/255)} ${a?"g":"G"}`:Array.from(t,t=>e_(t/255)).join(" ")+" "+(a?"rg":"RG")}class ny{constructor(t,a){this.xref=t,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=a;const i=new OffscreenCanvas(1,1);this.ctxMeasure=i.getContext("2d",{willReadFrequently:!0}),ny._fontNameId||(ny._fontNameId=1),this.fontName=W.get(`InvalidPDFjsFont_${a}_${ny._fontNameId++}`)}get fontDescriptorRef(){if(!ny._fontDescriptorRef){let t=new K(this.xref);t.setIfName("Type","FontDescriptor"),t.set("FontName",this.fontName),t.set("FontFamily","MyriadPro Regular"),t.set("FontBBox",[0,0,0,0]),t.setIfName("FontStretch","Normal"),t.set("FontWeight",400),t.set("ItalicAngle",0),ny._fontDescriptorRef=this.xref.getNewPersistentRef(t)}return ny._fontDescriptorRef}get descendantFontRef(){let t=new K(this.xref);t.set("BaseFont",this.fontName),t.setIfName("Type","Font"),t.setIfName("Subtype","CIDFontType0"),t.setIfName("CIDToGIDMap","Identity"),t.set("FirstChar",this.firstChar),t.set("LastChar",this.lastChar),t.set("FontDescriptor",this.fontDescriptorRef),t.set("DW",1e3);let a=[],i=[...this.widths.entries()].sort(),r=null,s=null;for(let[t,n]of i)r?t===r+s.length?s.push(n):(a.push(r,s),r=t,s=[n]):(r=t,s=[n]);r&&a.push(r,s),t.set("W",a);let n=new K(this.xref);return n.set("Ordering","Identity"),n.set("Registry","Adobe"),n.set("Supplement",0),t.set("CIDSystemInfo",n),this.xref.getNewPersistentRef(t)}get baseFontRef(){let t=new K(this.xref);return t.set("BaseFont",this.fontName),t.setIfName("Type","Font"),t.setIfName("Subtype","Type0"),t.setIfName("Encoding","Identity-H"),t.set("DescendantFonts",[this.descendantFontRef]),t.setIfName("ToUnicode","Identity-H"),this.xref.getNewPersistentRef(t)}get resources(){let t=new K(this.xref),a=new K(this.xref);return a.set(this.fontName.name,this.baseFontRef),t.set("Font",a),t}_createContext(){return this.widths=new Map,this.ctxMeasure.font=`1000px ${this.fontFamily}`,this.ctxMeasure}createFontResources(t){let a=this._createContext();for(let i of t.split(/\r\n?|\n/))for(let t of i.split("")){let i=t.charCodeAt(0);if(this.widths.has(i))continue;let r=Math.ceil(a.measureText(t).width);this.widths.set(i,r),this.firstChar=Math.min(i,this.firstChar),this.lastChar=Math.max(i,this.lastChar)}return this.resources}static getFirstPositionInfo(t,a,i){let[r,s,n,l]=t,o=n-r,c=l-s;a%180!=0&&([o,c]=[c,o]);let h=1.35*i;return{coords:[0,c+.35*i-h],bbox:[0,0,o,c],matrix:0!==a?ej(a,c,h):void 0}}createAppearance(t,a,i,r,s,n){let l=this._createContext(),o=[],c=-1/0;for(let a of t.split(/\r\n?|\n/)){o.push(a);for(let t of(c=Math.max(c,l.measureText(a).width),function*(t){for(let a=0,i=t.length;a<i;a++){let i=t.codePointAt(a);i>55295&&(i<57344||i>65533)&&a++,yield i}}(a))){let a=String.fromCodePoint(t),i=this.widths.get(t);void 0===i&&(i=Math.ceil(l.measureText(a).width),this.widths.set(t,i),this.firstChar=Math.min(t,this.firstChar),this.lastChar=Math.max(t,this.lastChar))}}c*=r/1e3;let[h,u,d,f]=a,g=d-h,p=f-u;i%180!=0&&([g,p]=[p,g]);let m=1;c>g&&(m=g/c);let b=1,y=1.35*r,w=y*o.length;w>p&&(b=p/w);let x=r*Math.min(m,b),k=["q",`0 0 ${e_(g)} ${e_(p)} re W n`,"BT",`1 0 0 1 0 ${e_(p+.35*r)} Tm 0 Tc ${nb(s,!0)}`,`/${this.fontName.name} ${e_(x)} Tf`],{resources:v}=this;if(1!==(n="number"==typeof n&&n>=0&&n<=1?n:1)){k.push("/R0 gs");let t=new K(this.xref),a=new K(this.xref);a.set("ca",n),a.set("CA",n),a.setIfName("Type","ExtGState"),t.set("R0",a),v.set("ExtGState",t)}let A=e_(y);for(let t of o)k.push(`0 -${A} Td <${function(t){let a=[];for(let i=0,r=t.length;i<r;i++){let r=t.charCodeAt(i);a.push(T[r>>8&255],T[255&r])}return a.join("")}(t)}> Tj`);k.push("ET","Q");let C=k.join("\n"),S=new K(this.xref);if(S.setIfName("Subtype","Form"),S.setIfName("Type","XObject"),S.set("BBox",[0,0,g,p]),S.set("Length",C.length),S.set("Resources",v),i){let t=ej(i,g,p);S.set("Matrix",t)}let I=new ts(C);return I.dict=S,I}}let nw=["m/d","m/d/yy","mm/dd/yy","mm/yy","d-mmm","d-mmm-yy","dd-mmm-yy","yy-mm-dd","mmm-yy","mmmm-yy","mmm d, yyyy","mmmm d, yyyy","m/d/yy h:MM tt","m/d/yy HH:MM"],nx=["HH:MM","h:MM tt","HH:MM:ss","h:MM:ss tt"];class nk{constructor(t,a,i){this.root=t,this.xref=a,this._type=i}getAll(t=!1){let a=new Map;if(!this.root)return a;let i=this.xref,r=new J;r.put(this.root);let s=[this.root];for(;s.length>0;){let n=i.fetchIfRef(s.shift());if(!(n instanceof K))continue;if(n.has("Kids")){let t=n.get("Kids");if(!Array.isArray(t))continue;for(let a of t){if(r.has(a))throw new A(`Duplicate entry in "${this._type}" tree.`);s.push(a),r.put(a)}continue}let l=n.get(this._type);if(Array.isArray(l))for(let r=0,s=l.length;r<s;r+=2)a.set(i.fetchIfRef(l[r]),t?l[r+1]:i.fetchIfRef(l[r+1]))}return a}getRaw(t){if(!this.root)return null;let a=this.xref,i=a.fetchIfRef(this.root),r=0;for(;i.has("Kids");){if(++r>10)return f(`Search depth limit reached for "${this._type}" tree.`),null;let s=i.get("Kids");if(!Array.isArray(s))return null;let n=0,l=s.length-1;for(;n<=l;){let r=n+l>>1,o=a.fetchIfRef(s[r]),c=o.get("Limits");if(t<a.fetchIfRef(c[0]))l=r-1;else{if(!(t>a.fetchIfRef(c[1]))){i=o;break}n=r+1}}if(n>l)return null}let s=i.get(this._type);if(Array.isArray(s)){let i=0,r=s.length-2;for(;i<=r;){let n=i+r>>1,l=n+(1&n),o=a.fetchIfRef(s[l]);if(t<o)r=l-2;else{if(!(t>o))return s[l+1];i=l+2}}}return null}get(t){return this.xref.fetchIfRef(this.getRaw(t))}}class nv extends nk{constructor(t,a){super(t,a,"Names")}}class nA extends nk{constructor(t,a){super(t,a,"Nums")}}function nC(){rL=Object.create(null),H=Object.create(null),z=Object.create(null),G=Object.create(null),a0.clear(),tT.cleanup()}function nS(t){if(t instanceof K){for(let a of["UF","F","Unix","Mac","DOS"])if(t.has(a))return t.get(a)}return null}class nI{#em=!1;constructor(t,a=!1){t instanceof K&&(this.root=t,t.has("FS")&&(this.fs=t.get("FS")),t.has("RF")&&f("Related file specifications are not supported"),a||(t.has("EF")?this.#em=!0:f("Non-embedded file specifications are not supported")))}get filename(){let t=nS(this.root);return t&&"string"==typeof t?D(t,!0).replaceAll("\\\\","\\").replaceAll("\\/","/").replaceAll("\\","/"):""}get content(){if(!this.#em)return null;let t=nS(this.root?.get("EF"));return t instanceof ei?t.getBytes():(f("Embedded file specification points to non-existing/invalid content"),null)}get description(){let t=this.root?.get("Desc");return t&&"string"==typeof t?D(t):""}get serializable(){let{filename:t,content:a,description:i}=this;return{rawFilename:t,filename:t.substring(t.lastIndexOf("/")+1)||"unnamed",content:a,description:i}}}function nB(t,a){let i=t[a];return" "===i||"\n"===i||"\r"===i||" "===i}class nF{_resolveEntities(t){return t.replaceAll(/&([^;]+);/g,(t,a)=>{if("#x"===a.substring(0,2))return String.fromCodePoint(parseInt(a.substring(2),16));if("#"===a.substring(0,1))return String.fromCodePoint(parseInt(a.substring(1),10));switch(a){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(a)})}_parseContent(t,a){let i=[],r=a;function s(){for(;r<t.length&&nB(t,r);)++r}for(;r<t.length&&!nB(t,r)&&">"!==t[r]&&"/"!==t[r];)++r;let n=t.substring(a,r);for(s();r<t.length&&">"!==t[r]&&"/"!==t[r]&&"?"!==t[r];){s();let a="",n="";for(;r<t.length&&!nB(t,r)&&"="!==t[r];)a+=t[r],++r;if(s(),"="!==t[r])return null;++r,s();let l=t[r];if('"'!==l&&"'"!==l)return null;let o=t.indexOf(l,++r);if(o<0)return null;n=t.substring(r,o),i.push({name:a,value:this._resolveEntities(n)}),r=o+1,s()}return{name:n,attributes:i,parsed:r-a}}_parseProcessingInstruction(t,a){let i=a;for(;i<t.length&&!nB(t,i)&&">"!==t[i]&&"?"!==t[i]&&"/"!==t[i];)++i;let r=t.substring(a,i);for(;i<t.length&&nB(t,i);)++i;let s=i;for(;i<t.length&&("?"!==t[i]||">"!==t[i+1]);)++i;return{name:r,value:t.substring(s,i),parsed:i-a}}parseXml(t){let a=0;for(;a<t.length;){let i=a;if("<"===t[a]){let a;switch(t[++i]){case"/":if(++i,(a=t.indexOf(">",i))<0)return void this.onError(-9);this.onEndElement(t.substring(i,a)),i=a+1;break;case"?":++i;let r=this._parseProcessingInstruction(t,i);if("?>"!==t.substring(i+r.parsed,i+r.parsed+2))return void this.onError(-3);this.onPi(r.name,r.value),i+=r.parsed+2;break;case"!":if("--"===t.substring(i+1,i+3)){if((a=t.indexOf("--\x3e",i+3))<0)return void this.onError(-5);this.onComment(t.substring(i+3,a)),i=a+3}else if("[CDATA["===t.substring(i+1,i+8)){if((a=t.indexOf("]]>",i+8))<0)return void this.onError(-2);this.onCdata(t.substring(i+8,a)),i=a+3}else{if("DOCTYPE"!==t.substring(i+1,i+8))return void this.onError(-6);{let r=t.indexOf("[",i+8),s=!1;if((a=t.indexOf(">",i+8))<0)return void this.onError(-4);if(r>0&&a>r){if((a=t.indexOf("]>",i+8))<0)return void this.onError(-4);s=!0}let n=t.substring(i+8,a+ +!!s);this.onDoctype(n),i=a+(s?2:1)}}break;default:let s=this._parseContent(t,i);if(null===s)return void this.onError(-6);let n=!1;if("/>"===t.substring(i+s.parsed,i+s.parsed+2))n=!0;else if(">"!==t.substring(i+s.parsed,i+s.parsed+1))return void this.onError(-9);this.onBeginElement(s.name,s.attributes,n),i+=s.parsed+(n?2:1)}}else{for(;i<t.length&&"<"!==t[i];)i++;let r=t.substring(a,i);this.onText(this._resolveEntities(r))}a=i}}onResolveEntity(t){return`&${t};`}onPi(t,a){}onComment(t){}onCdata(t){}onDoctype(t){}onText(t){}onBeginElement(t,a,i){}onEndElement(t){}onError(t){}}class nM{constructor(t,a){this.nodeName=t,this.nodeValue=a,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes?.[0]}get nextSibling(){let t=this.parentNode.childNodes;if(!t)return;let a=t.indexOf(this);return -1!==a?t[a+1]:void 0}get textContent(){return this.childNodes?this.childNodes.map(t=>t.textContent).join(""):this.nodeValue||""}get children(){return this.childNodes||[]}hasChildNodes(){return this.childNodes?.length>0}searchNode(t,a){if(a>=t.length)return this;let i=t[a];if(i.name.startsWith("#")&&a<t.length-1)return this.searchNode(t,a+1);let r=[],s=this;for(;;){if(i.name===s.nodeName){if(0!==i.pos){if(0===r.length)return null;{let[n]=r.pop(),l=0;for(let r of n.childNodes)if(i.name===r.nodeName){if(l===i.pos)return r.searchNode(t,a+1);l++}return s.searchNode(t,a+1)}}{let i=s.searchNode(t,a+1);if(null!==i)return i}}if(s.childNodes?.length>0)r.push([s,0]),s=s.childNodes[0];else{if(0===r.length)return null;for(;0!==r.length;){let[t,a]=r.pop(),i=a+1;if(i<t.childNodes.length){r.push([t,i]),s=t.childNodes[i];break}}if(0===r.length)return null}}}dump(t){if("#text"!==this.nodeName){if(t.push(`<${this.nodeName}`),this.attributes)for(let a of this.attributes)t.push(` ${a.name}="${eO(a.value)}"`);if(this.hasChildNodes()){for(let a of(t.push(">"),this.childNodes))a.dump(t);t.push(`</${this.nodeName}>`)}else this.nodeValue?t.push(`>${eO(this.nodeValue)}</${this.nodeName}>`):t.push("/>")}else t.push(eO(this.nodeValue))}}class nT extends nF{constructor({hasAttributes:t=!1,lowerCaseName:a=!1}){super(),this._currentFragment=null,this._stack=null,this._errorCode=0,this._hasAttributes=t,this._lowerCaseName=a}parseFromString(t){if(this._currentFragment=[],this._stack=[],this._errorCode=0,this.parseXml(t),0!==this._errorCode)return;let[a]=this._currentFragment;return a?{documentElement:a}:void 0}onText(t){if(function(t){for(let a=0,i=t.length;a<i;a++)if(!nB(t,a))return!1;return!0}(t))return;let a=new nM("#text",t);this._currentFragment.push(a)}onCdata(t){let a=new nM("#text",t);this._currentFragment.push(a)}onBeginElement(t,a,i){this._lowerCaseName&&(t=t.toLowerCase());let r=new nM(t);r.childNodes=[],this._hasAttributes&&(r.attributes=a),this._currentFragment.push(r),i||(this._stack.push(this._currentFragment),this._currentFragment=r.childNodes)}onEndElement(t){this._currentFragment=this._stack.pop()||[];let a=this._currentFragment.at(-1);if(!a)return null;for(let t of a.childNodes)t.parentNode=a;return a}onError(t){this._errorCode=t}}class nR{constructor(t){t=this._repair(t);const a=new nT({lowerCaseName:!0}).parseFromString(t);this._metadataMap=new Map,this._data=t,a&&this._parse(a)}_repair(t){return t.replace(/^[^<]+/,"").replaceAll(/>\\376\\377([^<]+)/g,function(t,a){let i=a.replaceAll(/\\([0-3])([0-7])([0-7])/g,function(t,a,i,r){return String.fromCharCode(64*a+8*i+ +r)}).replaceAll(/&(amp|apos|gt|lt|quot);/g,function(t,a){switch(a){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw Error(`_repair: ${a} isn't defined.`)}),r=[">"];for(let t=0,a=i.length;t<a;t+=2){let a=256*i.charCodeAt(t)+i.charCodeAt(t+1);a>=32&&a<127&&60!==a&&62!==a&&38!==a?r.push(String.fromCharCode(a)):r.push("&#x"+(65536+a).toString(16).substring(1)+";")}return r.join("")})}_getSequence(t){let a=t.nodeName;return"rdf:bag"!==a&&"rdf:seq"!==a&&"rdf:alt"!==a?null:t.childNodes.filter(t=>"rdf:li"===t.nodeName)}_parseArray(t){if(!t.hasChildNodes())return;let[a]=t.childNodes,i=this._getSequence(a)||[];this._metadataMap.set(t.nodeName,i.map(t=>t.textContent.trim()))}_parse(t){let a=t.documentElement;if("rdf:rdf"!==a.nodeName)for(a=a.firstChild;a&&"rdf:rdf"!==a.nodeName;)a=a.nextSibling;if(a&&"rdf:rdf"===a.nodeName&&a.hasChildNodes()){for(let t of a.childNodes)if("rdf:description"===t.nodeName)for(let a of t.childNodes){let t=a.nodeName;switch(t){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(a);continue}this._metadataMap.set(t,a.textContent.trim())}}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}class nN{constructor(t,a,i){this.xref=t,this.dict=a,this.ref=i instanceof Y?i:null,this.roleMap=new Map,this.structParentIds=null,this.kidRefToPosition=void 0,this.parentTree=null}getKidPosition(t){if(void 0===this.kidRefToPosition){let t=this.dict.get("K");if(Array.isArray(t)){let a=this.kidRefToPosition=new Map;for(let i=0,r=t.length;i<r;i++){let r=t[i];r&&a.set(r.toString(),i)}}else this.kidRefToPosition=t instanceof K?new Map([[t.objId,0]]):t?null:new Map}return this.kidRefToPosition?this.kidRefToPosition.get(t)??NaN:-1}init(){this.readRoleMap();let t=this.dict.get("ParentTree");t&&(this.parentTree=new nA(t,this.xref))}#eb(t,a,i){if(!(t instanceof Y)||a<0)return;this.structParentIds||=new Z;let r=this.structParentIds.get(t);r||(r=[],this.structParentIds.put(t,r)),r.push([a,i])}addAnnotationIdToPage(t,a){this.#eb(t,a,4)}readRoleMap(){let t=this.dict.get("RoleMap");if(t instanceof K)for(let[a,i]of t)i instanceof W&&this.roleMap.set(a,i.name)}static async canCreateStructureTree({catalogRef:t,pdfManager:a,newAnnotationsByPage:i}){if(!(t instanceof Y))return f("Cannot save the struct tree: no catalog reference."),!1;let r=0,s=!0;for(let[t,n]of i){let{ref:i}=await a.getPage(t);if(!(i instanceof Y)){f(`Cannot save the struct tree: page ${t} has no ref.`),s=!0;break}for(let t of n)t.accessibilityData?.type&&(t.parentTreeId=r++,s=!1)}if(s){for(let t of i.values())for(let a of t)delete a.parentTreeId;return!1}return!0}static async createStructureTree({newAnnotationsByPage:t,xref:a,catalogRef:i,pdfManager:r,changes:s}){let n=await r.ensureCatalog("cloneDict"),l=new Z;l.put(i,n);let o=a.getNewTemporaryRef();n.set("StructTreeRoot",o);let c=new K(a);c.set("Type",W.get("StructTreeRoot"));let h=a.getNewTemporaryRef();c.set("ParentTree",h);let u=[];c.set("K",u),l.put(o,c);let d=new K(a),f=[];d.set("Nums",f);let g=await this.#ey({newAnnotationsByPage:t,structTreeRootRef:o,structTreeRoot:null,kids:u,nums:f,xref:a,pdfManager:r,changes:s,cache:l});for(let[t,a]of(c.set("ParentTreeNextKey",g),l.put(h,d),l.items()))s.put(t,{data:a})}async canUpdateStructTree({pdfManager:t,newAnnotationsByPage:a}){if(!this.ref)return f("Cannot update the struct tree: no root reference."),!1;let i=this.dict.get("ParentTreeNextKey");if(!Number.isInteger(i)||i<0)return f("Cannot update the struct tree: invalid next key."),!1;let r=this.dict.get("ParentTree");if(!(r instanceof K))return f("Cannot update the struct tree: ParentTree isn't a dict."),!1;if(!Array.isArray(r.get("Nums")))return f("Cannot update the struct tree: nums isn't an array."),!1;let s=new nA(r,this.xref);for(let i of a.keys()){let{pageDict:a}=await t.getPage(i);if(!a.has("StructParents"))continue;let r=a.get("StructParents");if(!Number.isInteger(r)||!Array.isArray(s.get(r)))return f(`Cannot save the struct tree: page ${i} has a wrong id.`),!1}let n=!0;for(let[r,l]of a){let{pageDict:a}=await t.getPage(r);for(let t of(nN.#ew({elements:l,xref:this.xref,pageDict:a,numberTree:s}),l))t.accessibilityData?.type&&(t.accessibilityData.structParent>=0||(t.parentTreeId=i++),n=!1)}if(n){for(let t of a.values())for(let a of t)delete a.parentTreeId,delete a.structTreeParent;return!1}return!0}async updateStructureTree({newAnnotationsByPage:t,pdfManager:a,changes:i}){let{ref:r,xref:s}=this,n=this.dict.clone(),l=new Z;l.put(r,n);let o,c=n.getRaw("ParentTree");c instanceof Y?o=s.fetch(c):(o=c,c=s.getNewTemporaryRef(),n.set("ParentTree",c)),o=o.clone(),l.put(c,o);let h=o.getRaw("Nums"),u=null;h instanceof Y&&(u=h,h=s.fetch(u)),h=h.slice(),u||o.set("Nums",h);let d=await nN.#ey({newAnnotationsByPage:t,structTreeRootRef:r,structTreeRoot:this,kids:null,nums:h,xref:s,pdfManager:a,changes:i,cache:l});if(-1!==d)for(let[t,a]of(n.set("ParentTreeNextKey",d),u&&l.put(u,h),l.items()))i.put(t,{data:a})}static async #ey({newAnnotationsByPage:t,structTreeRootRef:a,structTreeRoot:i,kids:r,nums:s,xref:n,pdfManager:l,changes:o,cache:c}){let h=W.get("OBJR"),u,d=-1;for(let[f,g]of t){let t=await l.getPage(f),{ref:p}=t,m=p instanceof Y;for(let{accessibilityData:l,ref:b,parentTreeId:y,structTreeParent:w}of g){if(!l?.type)continue;let{structParent:g}=l;if(i&&Number.isInteger(g)&&g>=0){let a=(u||=new Map).get(f);void 0===a&&(a=new nP(i,t.pageDict).collectObjects(p),u.set(f,a));let r=a?.get(g);if(r){let t=n.fetch(r).clone();nN.#ex(t,l),o.put(r,{data:t});continue}}d=Math.max(d,y);let x=n.getNewTemporaryRef(),k=new K(n);nN.#ex(k,l),await this.#ek({structTreeParent:w,tagDict:k,newTagRef:x,structTreeRootRef:a,fallbackKids:r,xref:n,cache:c});let v=new K(n);k.set("K",v),v.set("Type",h),m&&v.set("Pg",p),v.set("Obj",b),c.put(x,k),s.push(y,x)}}return d+1}static #ex(t,{type:a,title:i,lang:r,alt:s,expanded:n,actualText:l}){t.set("S",W.get(a)),i&&t.set("T",eU(i)),r&&t.set("Lang",eU(r)),s&&t.set("Alt",eU(s)),n&&t.set("E",eU(n)),l&&t.set("ActualText",eU(l))}static #ew({elements:t,xref:a,pageDict:i,numberTree:r}){let s=new Map;for(let a of t)if(a.structTreeParentId){let t=parseInt(a.structTreeParentId.split("_mc")[1],10),i=s.get(t);i||(i=[],s.set(t,i)),i.push(a)}let n=i.get("StructParents");if(!Number.isInteger(n))return;let l=r.get(n),o=(t,i,r)=>{let n=s.get(t);if(n){let t=i.getRaw("P"),s=a.fetchIfRef(t);if(t instanceof Y&&s instanceof K){let t={ref:r,dict:i};for(let a of n)a.structTreeParent=t}return!0}return!1};for(let t of l){if(!(t instanceof Y))continue;let i=a.fetch(t),r=i.get("K");if(Number.isInteger(r))o(r,i,t);else if(Array.isArray(r))for(let s of r){if(Number.isInteger(s=a.fetchIfRef(s))&&o(s,i,t))break;if(!(s instanceof K))continue;if(!Q(s.get("Type"),"MCR"))break;let r=s.get("MCID");if(Number.isInteger(r)&&o(r,i,t))break}}}static async #ek({structTreeParent:t,tagDict:a,newTagRef:i,structTreeRootRef:r,fallbackKids:s,xref:n,cache:l}){let o,c=null;t?({ref:c}=t,o=t.dict.getRaw("P")||r):o=r,a.set("P",o);let h=n.fetchIfRef(o);if(!h)return void s.push(i);let u=l.get(o);u||(u=h.clone(),l.put(o,u));let d=u.getRaw("K"),f=d instanceof Y?l.get(d):null;if(!f){f=Array.isArray(f=n.fetchIfRef(d))?f.slice():[d];let t=n.getNewTemporaryRef();u.set("K",t),l.put(t,f)}let g=f.indexOf(c);f.splice(g>=0?g+1:f.length,0,i)}}class nD{constructor(t,a){this.tree=t,this.xref=t.xref,this.dict=a,this.kids=[],this.parseKids()}get role(){let t=this.dict.get("S"),a=t instanceof W?t.name:"",{root:i}=this.tree;return i.roleMap.get(a)??a}get mathML(){let t=this.dict.get("AF")||[];for(let a of(Array.isArray(t)||(t=[t]),t)){if(!((a=this.xref.fetchIfRef(a))instanceof K)||!Q(a.get("Type"),"Filespec")||!Q(a.get("AFRelationship"),"Supplement"))continue;let t=a.get("EF");if(!(t instanceof K))continue;let i=t.get("UF")||t.get("F");if(i instanceof ei&&Q(i.dict.get("Type"),"EmbeddedFile")&&Q(i.dict.get("Subtype"),"application/mathml+xml"))return O(i.getString())}let a=this.dict.get("A");if(a instanceof K&&Q(a.get("O"),"MSFT_Office")){let t=a.get("MSFT_MathML");return t?D(t):null}return null}parseKids(){let t=null,a=this.dict.getRaw("Pg");a instanceof Y&&(t=a.toString());let i=this.dict.get("K");if(Array.isArray(i))for(let a of i){let i=this.parseKid(t,this.xref.fetchIfRef(a));i&&this.kids.push(i)}else{let a=this.parseKid(t,i);a&&this.kids.push(a)}}parseKid(t,a){if(Number.isInteger(a))return this.tree.pageDict.objId!==t?null:new nO({type:1,mcid:a,pageObjId:t});if(!(a instanceof K))return null;let i=a.getRaw("Pg");i instanceof Y&&(t=i.toString());let r=a.get("Type")instanceof W?a.get("Type").name:null;if("MCR"===r){if(this.tree.pageDict.objId!==t)return null;let i=a.getRaw("Stm");return new nO({type:2,refObjId:i instanceof Y?i.toString():null,pageObjId:t,mcid:a.get("MCID")})}if("OBJR"===r){if(this.tree.pageDict.objId!==t)return null;let i=a.getRaw("Obj");return new nO({type:3,refObjId:i instanceof Y?i.toString():null,pageObjId:t})}return new nO({type:5,dict:a})}}class nO{constructor({type:t,dict:a=null,mcid:i=null,pageObjId:r=null,refObjId:s=null}){this.type=t,this.dict=a,this.mcid=i,this.pageObjId=r,this.refObjId=s,this.parentNode=null}}class nP{constructor(t,a){this.root=t,this.xref=t?.xref??null,this.rootDict=t?.dict??null,this.pageDict=a,this.nodes=[]}collectObjects(t){if(!(this.root&&this.rootDict&&t instanceof Y))return null;let a=this.rootDict.get("ParentTree");if(!a)return null;let i=this.root.structParentIds?.get(t);if(!i)return null;let r=new Map,s=new nA(a,this.xref);for(let[t]of i){let a=s.getRaw(t);a instanceof Y&&r.set(t,a)}return r}parse(t){if(!(this.root&&this.rootDict&&t instanceof Y))return;let{parentTree:a}=this.root;if(!a)return;let i=this.pageDict.get("StructParents"),r=this.root.structParentIds?.get(t);if(!Number.isInteger(i)&&!r)return;let s=new Map;if(Number.isInteger(i)){let t=a.get(i);if(Array.isArray(t))for(let a of t)a instanceof Y&&this.addNode(this.xref.fetch(a),s)}if(r)for(let[t,i]of r){let r=a.get(t);if(r){let t=this.addNode(this.xref.fetchIfRef(r),s);1===t?.kids?.length&&3===t.kids[0].type&&(t.kids[0].type=i)}}}addNode(t,a,i=0){if(i>40)return f("StructTree MAX_DEPTH reached."),null;if(!(t instanceof K))return null;if(a.has(t))return a.get(t);let r=new nD(this,t);switch(a.set(t,r),r.role){case"L":case"LBody":case"LI":case"Table":case"THead":case"TBody":case"TFoot":case"TR":for(let t of r.kids)5===t.type&&this.addNode(t.dict,a,i-1)}let s=t.get("P");if(!(s instanceof K)||Q(s.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(t,r)||a.delete(t),r;let n=this.addNode(s,a,i+1);if(!n)return r;let l=!1;for(let a of n.kids)5===a.type&&a.dict===t&&(a.parentNode=r,l=!0);return l||a.delete(t),r}addTopLevelNode(t,a){let i=this.root.getKidPosition(t.objId);return!isNaN(i)&&(-1!==i&&(this.nodes[i]=a),!0)}get serializable(){let t=Object.create(null);for(let a of(t.children=[],t.role="Root",this.nodes))a&&function t(a,i,r=0){if(r>40)return void f("StructTree too deep to be fully serialized.");let s=Object.create(null);s.role=a.role,s.children=[],i.children.push(s);let n=a.dict.get("Alt");if("string"!=typeof n&&(n=a.dict.get("ActualText")),"string"==typeof n&&(s.alt=D(n)),"Formula"===s.role){let{mathML:t}=a;t&&(s.mathML=t)}let l=a.dict.get("A");if(l instanceof K){let t=eB(l.getArray("BBox"),null);if(t)s.bbox=t;else{let t=l.get("Width"),a=l.get("Height");"number"==typeof t&&t>0&&"number"==typeof a&&a>0&&(s.bbox=[0,0,t,a])}}let o=a.dict.get("Lang");for(let i of("string"==typeof o&&(s.lang=D(o)),a.kids)){let a=5===i.type?i.parentNode:null;a?t(a,s,r+1):1===i.type||2===i.type?s.children.push({type:"content",id:`p${i.pageObjId}_mc${i.mcid}`}):3===i.type?s.children.push({type:"object",id:i.refObjId}):4===i.type&&s.children.push({type:"annotation",id:`pdfjs_internal_id_${i.refObjId}`})}}(a,t);return t}}let nE=(function(t,a,i){if(!Array.isArray(i)||i.length<2)return!1;let[r,s,...n]=i;if(!t(r)&&!Number.isInteger(r)||!a(s))return!1;let l=n.length,o=!0;switch(s.name){case"XYZ":if(l<2||l>3)return!1;break;case"Fit":case"FitB":return 0===l;case"FitH":case"FitBH":case"FitV":case"FitBV":if(l>1)return!1;break;case"FitR":if(4!==l)return!1;o=!1;break;default:return!1}for(let t of n)if(!("number"==typeof t||o&&null===t))return!1;return!0}).bind(null,t=>t instanceof Y,Q);function n_(t){return t instanceof K&&(t=t.get("D")),nE(t)?t:null}function nL(t){let a=t.get("D");if(a){if(a instanceof W&&(a=a.name),"string"==typeof a)return D(a,!0);if(nE(a))return JSON.stringify(a)}return null}class nU{#ev=null;#eA=null;builtInCMapCache=new Map;fontCache=new Z;globalColorSpaceCache=new sD;globalImageCache=new sO;nonBlendModesSet=new J;pageDictCache=new Z;pageIndexCache=new Z;pageKidsCountCache=new Z;standardFontDataCache=new Map;systemFontCache=new Map;constructor(t,a){if(this.pdfManager=t,this.xref=a,this.#eA=a.getCatalogObj(),!(this.#eA instanceof K))throw new A("Catalog object is not a dictionary.");this.toplevelPagesDict}cloneDict(){return this.#eA.clone()}get version(){let t=this.#eA.get("Version");if(t instanceof W){if(er.test(t.name))return b(this,"version",t.name);f(`Invalid PDF catalog version: ${t.name}`)}return b(this,"version",null)}get lang(){let t=this.#eA.get("Lang");return b(this,"lang",t&&"string"==typeof t?D(t):null)}get needsRendering(){let t=this.#eA.get("NeedsRendering");return b(this,"needsRendering","boolean"==typeof t&&t)}get collection(){let t=null;try{let a=this.#eA.get("Collection");a instanceof K&&a.size>0&&(t=a)}catch(t){if(t instanceof eh)throw t;d("Cannot fetch Collection entry; assuming no collection is present.")}return b(this,"collection",t)}get acroForm(){let t=null;try{let a=this.#eA.get("AcroForm");a instanceof K&&a.size>0&&(t=a)}catch(t){if(t instanceof eh)throw t;d("Cannot fetch AcroForm entry; assuming no forms are present.")}return b(this,"acroForm",t)}get acroFormRef(){let t=this.#eA.getRaw("AcroForm");return b(this,"acroFormRef",t instanceof Y?t:null)}get metadata(){let t=this.#eA.getRaw("Metadata");if(!(t instanceof Y))return b(this,"metadata",null);let a=null;try{let i=this.xref.fetch(t,!this.xref.encrypt?.encryptMetadata);if(i instanceof ei&&i.dict instanceof K){let t=i.dict.get("Type"),r=i.dict.get("Subtype");if(Q(t,"Metadata")&&Q(r,"XML")){let t=O(i.getString());t&&(a=new nR(t).serializable)}}}catch(t){if(t instanceof eh)throw t;d(`Skipping invalid Metadata: "${t}".`)}return b(this,"metadata",a)}get markInfo(){let t=null;try{t=this.#eC()}catch(t){if(t instanceof eh)throw t;f("Unable to read mark info.")}return b(this,"markInfo",t)}#eC(){let t=this.#eA.get("MarkInfo");if(!(t instanceof K))return null;let a={Marked:!1,UserProperties:!1,Suspects:!1};for(let i in a){let r=t.get(i);"boolean"==typeof r&&(a[i]=r)}return a}get hasStructTree(){return this.#eA.has("StructTreeRoot")}get structTreeRoot(){let t=null;try{t=this.#eS()}catch(t){if(t instanceof eh)throw t;f("Unable read to structTreeRoot info.")}return b(this,"structTreeRoot",t)}#eS(){let t=this.#eA.getRaw("StructTreeRoot"),a=this.xref.fetchIfRef(t);if(!(a instanceof K))return null;let i=new nN(this.xref,a,t);return i.init(),i}get toplevelPagesDict(){let t=this.#eA.get("Pages");if(!(t instanceof K))throw new A("Invalid top-level pages dictionary.");return b(this,"toplevelPagesDict",t)}get documentOutline(){let t=null;try{t=this.#eI()}catch(t){if(t instanceof eh)throw t;f("Unable to read document outline.")}return b(this,"documentOutline",t)}#eI(){let t=this.#eA.get("Outlines");if(!(t instanceof K)||!((t=t.getRaw("First"))instanceof Y))return null;let a={items:[]},i=[{obj:t,parent:a}],r=new J;r.put(t);let s=this.xref,n=new Uint8ClampedArray(3);for(;i.length>0;){let a=i.shift(),l=s.fetchIfRef(a.obj);if(null===l)continue;l.has("Title")||f("Invalid outline item encountered.");let o={url:null,dest:null,action:null};nU.parseDestDictionary({destDict:l,resultObj:o,docBaseUrl:this.baseUrl,docAttachments:this.attachments});let c=l.get("Title"),h=l.get("F")||0,u=l.getArray("C"),d=l.get("Count"),g=n;eC(u,3)&&(0!==u[0]||0!==u[1]||0!==u[2])&&(g=ty.rgb.getRgb(u,0));let p={action:o.action,attachment:o.attachment,dest:o.dest,url:o.url,unsafeUrl:o.unsafeUrl,newWindow:o.newWindow,setOCGState:o.setOCGState,title:"string"==typeof c?D(c):"",color:g,count:Number.isInteger(d)?d:void 0,bold:!!(2&h),italic:!!(1&h),items:[]};a.parent.items.push(p),(t=l.getRaw("First"))instanceof Y&&!r.has(t)&&(i.push({obj:t,parent:p}),r.put(t)),(t=l.getRaw("Next"))instanceof Y&&!r.has(t)&&(i.push({obj:t,parent:a.parent}),r.put(t))}return a.items.length>0?a.items:null}get permissions(){let t=null;try{t=this.#eB()}catch(t){if(t instanceof eh)throw t;f("Unable to read permissions.")}return b(this,"permissions",t)}#eB(){let t=this.xref.trailer.get("Encrypt");if(!(t instanceof K))return null;let a=t.get("P");if("number"!=typeof a)return null;a+=0x100000000;let i=[];for(let t in s){let r=s[t];a&r&&i.push(r)}return i}get optionalContentConfig(){let t=null;try{let a=this.#eA.get("OCProperties");if(!a)return b(this,"optionalContentConfig",null);let i=a.get("D");if(!i)return b(this,"optionalContentConfig",null);let r=a.get("OCGs");if(!Array.isArray(r))return b(this,"optionalContentConfig",null);let s=new Z;for(let t of r)t instanceof Y&&!s.has(t)&&s.put(t,this.#eF(t));t=this.#eM(i,s)}catch(t){if(t instanceof eh)throw t;f(`Unable to read optional content config: ${t}`)}return b(this,"optionalContentConfig",t)}#eF(t){let a=this.xref.fetch(t),i={id:t.toString(),name:null,intent:null,usage:{print:null,view:null},rbGroups:[]},r=a.get("Name");"string"==typeof r&&(i.name=D(r));let s=a.getArray("Intent");Array.isArray(s)||(s=[s]),s.every(t=>t instanceof W)&&(i.intent=s.map(t=>t.name));let n=a.get("Usage");if(!(n instanceof K))return i;let l=i.usage,o=n.get("Print");if(o instanceof K){let t=o.get("PrintState");if(t instanceof W)switch(t.name){case"ON":case"OFF":l.print={printState:t.name}}}let c=n.get("View");if(c instanceof K){let t=c.get("ViewState");if(t instanceof W)switch(t.name){case"ON":case"OFF":l.view={viewState:t.name}}}return i}#eM(t,a){function i(t){let i=[];if(Array.isArray(t))for(let r of t)r instanceof Y&&a.has(r)&&i.push(r.toString());return i}let r=this.xref,s=new J,n=10;var l=t.get("RBGroups");if(Array.isArray(l))for(let t of l){let i=r.fetchIfRef(t);if(!Array.isArray(i)||!i.length)continue;let s=new Set;for(let t of i)t instanceof Y&&a.has(t)&&!s.has(t.toString())&&(s.add(t.toString()),a.get(t).rbGroups.push(s))}return{name:"string"==typeof t.get("Name")?D(t.get("Name")):null,creator:"string"==typeof t.get("Creator")?D(t.get("Creator")):null,baseState:t.get("BaseState")instanceof W?t.get("BaseState").name:null,on:i(t.get("ON")),off:i(t.get("OFF")),order:function t(i,l=0){if(!Array.isArray(i))return null;let o=[];for(let c of i){if(c instanceof Y&&a.has(c)){s.put(c),o.push(c.toString());continue}let i=function(a,i){if(++i>n)return f("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;let s=r.fetchIfRef(a);if(!Array.isArray(s))return null;let l=r.fetchIfRef(s[0]);if("string"!=typeof l)return null;let o=t(s.slice(1),i);return o?.length?{name:D(l),order:o}:null}(c,l);i&&o.push(i)}if(l>0)return o;let c=[];for(let[t]of a.items())s.has(t)||c.push(t.toString());return c.length&&o.push({name:null,order:c}),o}(t.get("Order")),groups:[...a]}}setActualNumPages(t=null){this.#ev=t}get hasActualNumPages(){return null!==this.#ev}get _pagesCount(){let t=this.toplevelPagesDict.get("Count");if(!Number.isInteger(t))throw new A("Page count in top-level pages dictionary is not an integer.");return b(this,"_pagesCount",t)}get numPages(){return this.#ev??this._pagesCount}get destinations(){let t=this.#eT(),a=Object.create(null);for(let i of t)if(i instanceof nv)for(let[t,r]of i.getAll()){let i=n_(r);i&&(a[D(t,!0)]=i)}else if(i instanceof K)for(let[t,r]of i){let i=n_(r);i&&(a[D(t,!0)]||=i)}return b(this,"destinations",a)}getDestination(t){if(this.hasOwnProperty("destinations"))return this.destinations[t]??null;let a=this.#eT();for(let i of a)if(i instanceof nv||i instanceof K){let a=n_(i.get(t));if(a)return a}if(a.length){let a=this.destinations[t];if(a)return a}return null}#eT(){let t=this.#eA.get("Names"),a=[];return t?.has("Dests")&&a.push(new nv(t.getRaw("Dests"),this.xref)),this.#eA.has("Dests")&&a.push(this.#eA.get("Dests")),a}get rawPageLabels(){let t=this.#eA.getRaw("PageLabels");return t?new nA(t,this.xref).getAll():null}get pageLabels(){let t=null;try{t=this.#eR()}catch(t){if(t instanceof eh)throw t;f("Unable to read page labels.")}return b(this,"pageLabels",t)}#eR(){let t=this.rawPageLabels;if(!t)return null;let a=Array(this.numPages),i=null,r="",s="",n=1;for(let l=0,o=this.numPages;l<o;l++){let o=t.get(l);if(void 0!==o){if(!(o instanceof K))throw new A("PageLabel is not a dictionary.");if(o.has("Type")&&!Q(o.get("Type"),"PageLabel"))throw new A("Invalid type in PageLabel dictionary.");if(o.has("S")){let t=o.get("S");if(!(t instanceof W))throw new A("Invalid style in PageLabel dictionary.");i=t.name}else i=null;if(o.has("P")){let t=o.get("P");if("string"!=typeof t)throw new A("Invalid prefix in PageLabel dictionary.");r=D(t)}else r="";if(o.has("St")){let t=o.get("St");if(!(Number.isInteger(t)&&t>=1))throw new A("Invalid start in PageLabel dictionary.");n=t}else n=1}switch(i){case"D":s=n;break;case"R":case"r":s=function(t,a=!1){p(Number.isInteger(t)&&t>0,"The number should be a positive integer.");let i="M".repeat(t/1e3|0)+eb[t%1e3/100|0]+eb[10+(t%100/10|0)]+eb[20+t%10];return a?i.toLowerCase():i}(n,"r"===i);break;case"A":case"a":let c=n-1;s=String.fromCharCode(("a"===i?97:65)+c%26).repeat(Math.floor(c/26)+1);break;default:if(i)throw new A(`Invalid style "${i}" in PageLabel dictionary.`);s=""}a[l]=r+s,n++}return a}get pageLayout(){let t=this.#eA.get("PageLayout"),a="";if(t instanceof W)switch(t.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":a=t.name}return b(this,"pageLayout",a)}get pageMode(){let t=this.#eA.get("PageMode"),a="UseNone";if(t instanceof W)switch(t.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":a=t.name}return b(this,"pageMode",a)}get viewerPreferences(){let t=this.#eA.get("ViewerPreferences");if(!(t instanceof K))return b(this,"viewerPreferences",null);let a=null;for(let[i,r]of t){let t;switch(i){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"==typeof r&&(t=r);break;case"NonFullScreenPageMode":if(r instanceof W)switch(r.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":t=r.name;break;default:t="UseNone"}break;case"Direction":if(r instanceof W)switch(r.name){case"L2R":case"R2L":t=r.name;break;default:t="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(r instanceof W)switch(r.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":t=r.name;break;default:t="CropBox"}break;case"PrintScaling":if(r instanceof W)switch(r.name){case"None":case"AppDefault":t=r.name;break;default:t="AppDefault"}break;case"Duplex":if(r instanceof W)switch(r.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":t=r.name;break;default:t="None"}break;case"PrintPageRange":Array.isArray(r)&&r.length%2==0&&r.every((t,a,i)=>Number.isInteger(t)&&t>0&&(0===a||t>=i[a-1])&&t<=this.numPages)&&(t=r);break;case"NumCopies":Number.isInteger(r)&&r>0&&(t=r);break;default:f(`Ignoring non-standard key in ViewerPreferences: ${i}.`);continue}void 0!==t?(a??=Object.create(null))[i]=t:f(`Bad value, for key "${i}", in ViewerPreferences: ${r}.`)}return b(this,"viewerPreferences",a)}get openAction(){let t=this.#eA.get("OpenAction"),a=Object.create(null);if(t instanceof K){let i=new K(this.xref);i.set("A",t);let r={url:null,dest:null,action:null};nU.parseDestDictionary({destDict:i,resultObj:r}),Array.isArray(r.dest)?a.dest=r.dest:r.action&&(a.action=r.action)}else nE(t)&&(a.dest=t);return b(this,"openAction",F(a)>0?a:null)}get attachments(){let t=this.#eA.get("Names"),a=null;if(t instanceof K&&t.has("EmbeddedFiles"))for(let[i,r]of new nv(t.getRaw("EmbeddedFiles"),this.xref).getAll()){let t=new nI(r);(a??=Object.create(null))[D(i,!0)]=t.serializable}return b(this,"attachments",a)}get xfaImages(){let t=this.#eA.get("Names"),a=null;if(t instanceof K&&t.has("XFAImages"))for(let[i,r]of new nv(t.getRaw("XFAImages"),this.xref).getAll())r instanceof ei&&(a??=new Map).set(D(i,!0),r.getBytes());return b(this,"xfaImages",a)}#eN(){let t=this.#eA.get("Names"),a=null;function i(t,i){if(!(i instanceof K)||!Q(i.get("S"),"JavaScript"))return;let r=i.get("JS");if(r instanceof ei)r=r.getString();else if("string"!=typeof r)return;(r=D(r,!0).replaceAll("\0",""))&&(a||=new Map).set(t,r)}if(t instanceof K&&t.has("JavaScript"))for(let[a,r]of new nv(t.getRaw("JavaScript"),this.xref).getAll())i(D(a,!0),r);let r=this.#eA.get("OpenAction");return r&&i("OpenAction",r),a}get jsActions(){let t=this.#eN(),a=eN(this.xref,this.#eA,c);if(t)for(let[i,r]of(a||=Object.create(null),t))i in a?a[i].push(r):a[i]=[r];return b(this,"jsActions",a)}async cleanup(t=!1){for(let{dict:a}of(nC(),this.globalColorSpaceCache.clear(),this.globalImageCache.clear(t),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.pageDictCache.clear(),this.nonBlendModesSet.clear(),await Promise.all(this.fontCache)))delete a.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear(),this.systemFontCache.clear()}async getPageDict(t){let a=[this.toplevelPagesDict],i=new J,r=this.#eA.getRaw("Pages");r instanceof Y&&i.put(r);let s=this.xref,n=this.pageKidsCountCache,l=this.pageIndexCache,o=this.pageDictCache,c=0;for(;a.length;){let r=a.pop();if(r instanceof Y){let h=n.get(r);if(h>=0&&c+h<=t){c+=h;continue}if(i.has(r))throw new A("Pages tree contains circular reference.");i.put(r);let u=await (o.get(r)||s.fetchAsync(r));if(u instanceof K){let a=u.getRaw("Type");if(a instanceof Y&&(a=await s.fetchAsync(a)),Q(a,"Page")||!u.has("Kids")){if(n.has(r)||n.put(r,1),l.has(r)||l.put(r,c),c===t)return[u,r];c++;continue}}a.push(u);continue}if(!(r instanceof K))throw new A("Page dictionary kid reference points to wrong type of object.");let{objId:h}=r,u=r.getRaw("Count");if(u instanceof Y&&(u=await s.fetchAsync(u)),Number.isInteger(u)&&u>=0&&(h&&!n.has(h)&&n.put(h,u),c+u<=t)){c+=u;continue}let d=r.getRaw("Kids");if(d instanceof Y&&(d=await s.fetchAsync(d)),!Array.isArray(d)){let a=r.getRaw("Type");if(a instanceof Y&&(a=await s.fetchAsync(a)),Q(a,"Page")||!r.has("Kids")){if(c===t)return[r,null];c++;continue}throw new A("Page dictionary kids object is not an array.")}for(let t=d.length-1;t>=0;t--){let i=d[t];a.push(i),r===this.toplevelPagesDict&&i instanceof Y&&!o.has(i)&&o.put(i,s.fetchAsync(i))}}throw Error(`Page index ${t} not found.`)}async getAllPageDicts(t=!1){let{ignoreErrors:a}=this.pdfManager.evaluatorOptions,i=[{currentNode:this.toplevelPagesDict,posInKids:0}],r=new J,s=this.#eA.getRaw("Pages");s instanceof Y&&r.put(s);let n=new Map,l=this.xref,o=this.pageIndexCache,c=0;function h(i){if(i instanceof ed&&!t)throw i;t&&a&&0===c&&(f(`getAllPageDicts - Skipping invalid first page: "${i}".`),i=K.empty),n.set(c++,[i,null])}for(;i.length>0;){var u,d;let t,a=i.at(-1),{currentNode:s,posInKids:f}=a,g=s.getRaw("Kids");if(g instanceof Y)try{g=await l.fetchAsync(g)}catch(t){h(t);break}if(!Array.isArray(g)){h(new A("Page dictionary kids object is not an array."));break}if(f>=g.length){i.pop();continue}let p=g[f];if(p instanceof Y){if(r.has(p)){h(new A("Pages tree contains circular reference."));break}r.put(p);try{t=await l.fetchAsync(p)}catch(t){h(t);break}}else t=p;if(!(t instanceof K)){h(new A("Page dictionary kid reference points to wrong type of object."));break}let m=t.getRaw("Type");if(m instanceof Y)try{m=await l.fetchAsync(m)}catch(t){h(t);break}Q(m,"Page")||!t.has("Kids")?(u=t,(d=p instanceof Y?p:null)&&!o.has(d)&&o.put(d,c),n.set(c++,[u,d])):i.push({currentNode:t,posInKids:0}),a.posInKids++}return n}getPageIndex(t){let a=this.pageIndexCache.get(t);if(void 0!==a)return Promise.resolve(a);let i=this.xref,r=0,s=a=>{let n,l;return(l=0,i.fetchAsync(a).then(function(i){if(ea(a,t)&&!et(i,"Page")&&!(i instanceof K&&!i.has("Type")&&i.has("Contents")))throw new A("The reference does not point to a /Page dictionary.");if(!i)return null;if(!(i instanceof K))throw new A("Node must be a dictionary.");return n=i.getRaw("Parent"),i.getAsync("Parent")}).then(function(t){if(!t)return null;if(!(t instanceof K))throw new A("Parent must be a dictionary.");return t.getAsync("Kids")}).then(function(t){if(!t)return null;let r=[],s=!1;for(let n of t){if(!(n instanceof Y))throw new A("Kid must be a reference.");if(ea(n,a)){s=!0;break}r.push(i.fetchAsync(n).then(function(t){if(!(t instanceof K))throw new A("Kid node must be a dictionary.");t.has("Count")?l+=t.get("Count"):l++}))}if(!s)throw new A("Kid reference not found in parent's kids.");return Promise.all(r).then(()=>[l,n])})).then(a=>{if(!a)return this.pageIndexCache.put(t,r),r;let[i,n]=a;return r+=i,s(n)})};return s(t)}get baseUrl(){let t=this.#eA.get("URI");if(t instanceof K){let a=t.get("Base");if("string"==typeof a){let t=m(a,null,{tryConvertEncoding:!0});if(t)return b(this,"baseUrl",t.href)}}return b(this,"baseUrl",this.pdfManager.docBaseUrl)}static parseDestDictionary({destDict:t,resultObj:a,docBaseUrl:i=null,docAttachments:r=null}){if(!(t instanceof K))return void f("parseDestDictionary: `destDict` must be a dictionary.");let s,n,l=t.get("A");if(!(l instanceof K)&&(t.has("Dest")?l=t.get("Dest"):(l=t.get("AA"))instanceof K&&(l.has("D")?l=l.get("D"):l.has("U")&&(l=l.get("U")))),l instanceof K){let t=l.get("S");if(!(t instanceof W))return void f("parseDestDictionary: Invalid type in Action dictionary.");let i=t.name;switch(i){case"ResetForm":let o=l.get("Flags"),c=[],h=[];for(let t of l.get("Fields")||[])t instanceof Y?h.push(t.toString()):"string"==typeof t&&c.push(D(t));a.resetForm={fields:c,refs:h,include:!(1&("number"==typeof o?o:0))};break;case"URI":(s=l.get("URI"))instanceof W&&(s="/"+s.name);break;case"GoTo":n=l.get("D");break;case"Launch":case"GoToR":let u=l.get("F");if(u instanceof K){let t=new nI(u,!0);({rawFilename:s}=t.serializable)}else{if("string"!=typeof u)break;s=u}let d=nL(l);d&&(s=s.split("#",1)[0]+"#"+d);let g=l.get("NewWindow");"boolean"==typeof g&&(a.newWindow=g);break;case"GoToE":let p,m=l.get("T");if(r&&m instanceof K){let t=m.get("R"),a=m.get("N");Q(t,"C")&&"string"==typeof a&&(p=r[D(a,!0)])}if(p){a.attachment=p;let t=nL(l);t&&(a.attachmentDest=t)}else f('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":let b=l.get("N");b instanceof W&&(a.action=b.name);break;case"SetOCGState":let y=l.get("State"),w=l.get("PreserveRB");if(!Array.isArray(y)||0===y.length)break;let x=[];for(let t of y)if(t instanceof W)switch(t.name){case"ON":case"OFF":case"Toggle":x.push(t.name)}else t instanceof Y&&x.push(t.toString());if(x.length!==y.length)break;a.setOCGState={state:x,preserveRB:"boolean"!=typeof w||w};break;case"JavaScript":let k,v=l.get("JS");v instanceof ei?k=v.getString():"string"==typeof v&&(k=v);let A=k&&eE(D(k,!0));if(A){s=A.url,a.newWindow=A.newWindow;break}default:if("JavaScript"===i||"SubmitForm"===i)break;f(`parseDestDictionary - unsupported action: "${i}".`)}}else t.has("Dest")&&(n=t.get("Dest"));if("string"==typeof s){let t=m(s,i,{addDefaultProtocol:!0,tryConvertEncoding:!0});t&&(a.url=t.href),a.unsafeUrl=s}n&&(n instanceof W&&(n=n.name),"string"==typeof n?a.dest=D(n,!0):nE(n)&&(a.dest=n))}}class nq{refSet=new J;constructor(t,a,i){this.dict=t,this.keys=a,this.xref=i}async load(){let{keys:t,dict:a}=this,i=[];for(let r of t){let t=a.getRaw(r);void 0!==t&&i.push(t)}await this.#eD(i),this.refSet=null}async #eD(t){let a=[],i=[];for(;t.length;){let r=t.pop();if(r instanceof Y){if(this.refSet.has(r))continue;try{this.refSet.put(r),r=this.xref.fetch(r)}catch(t){if(!(t instanceof eh)){f(`ObjectLoader.#walk - requesting all data: "${t}".`),await this.xref.stream.manager.requestAllChunks();return}a.push(r),i.push({begin:t.begin,end:t.end})}}if(r instanceof ei){let t=r.getBaseStreams();if(t){let s=!1;for(let a of t)a.isDataLoaded||(s=!0,i.push({begin:a.start,end:a.end}));s&&a.push(r)}}!function(t,a){if(t instanceof K)t=t.getRawValues();else if(t instanceof ei)t=t.dict.getRawValues();else if(!Array.isArray(t))return;for(let i of t)(i instanceof Y||i instanceof K||i instanceof ei||Array.isArray(i))&&a.push(i)}(r,t)}if(i.length){for(let t of(await this.xref.stream.manager.requestRanges(i),a))t instanceof Y&&this.refSet.remove(t);await this.#eD(a)}}static async load(t,a,i){if(i.stream.isDataLoaded)return;let r=new nq(t,a,i);await r.load()}}let nj=Symbol(),n$=Symbol(),nH=Symbol(),nz=Symbol(),nG=Symbol(),nW=Symbol(),nV=Symbol(),nX=Symbol(),nK=Symbol(),nY=Symbol("content"),nJ=Symbol("data"),nZ=Symbol(),nQ=Symbol("extra"),n1=Symbol(),n0=Symbol(),n2=Symbol(),n9=Symbol(),n5=Symbol(),n3=Symbol(),n6=Symbol(),n7=Symbol(),n8=Symbol(),n4=Symbol(),le=Symbol(),lt=Symbol(),la=Symbol(),li=Symbol(),lr=Symbol(),ls=Symbol(),ln=Symbol(),ll=Symbol(),lo=Symbol(),lc=Symbol(),lh=Symbol(),lu=Symbol(),ld=Symbol(),lf=Symbol(),lg=Symbol(),lp=Symbol(),lm=Symbol(),lb=Symbol(),ly=Symbol(),lw=Symbol(),lx=Symbol(),lk=Symbol(),lv=Symbol("namespaceId"),lA=Symbol("nodeName"),lC=Symbol(),lS=Symbol(),lI=Symbol(),lB=Symbol(),lF=Symbol(),lM=Symbol(),lT=Symbol(),lR=Symbol(),lN=Symbol("root"),lD=Symbol(),lO=Symbol(),lP=Symbol(),lE=Symbol(),l_=Symbol(),lL=Symbol(),lU=Symbol(),lq=Symbol(),lj=Symbol(),l$=Symbol(),lH=Symbol(),lz=Symbol("uid"),lG=Symbol(),lW={config:{id:0,check:t=>t.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:t=>"http://ns.adobe.com/xdp/pdf/"===t},signature:{id:6,check:t=>"http://www.w3.org/2000/09/xmldsig#"===t},sourceSet:{id:7,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:t=>"http://www.w3.org/1999/XSL/Transform"===t},template:{id:9,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:t=>t.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:t=>"http://ns.adobe.com/xdp/"===t},xfdf:{id:12,check:t=>"http://ns.adobe.com/xfdf/"===t},xhtml:{id:13,check:t=>"http://www.w3.org/1999/xhtml"===t},xmpmeta:{id:14,check:t=>"http://ns.adobe.com/xmpmeta/"===t}},lV={pt:t=>t,cm:t=>t/2.54*72,mm:t=>t/25.4*72,in:t=>72*t,px:t=>t},lX=/([+-]?\d+\.?\d*)(.*)/;function lK(t){return t.startsWith("'")||t.startsWith('"')?t.slice(1,-1):t}function lY({data:t,defaultValue:a,validate:i}){if(!t)return a;let r=parseInt(t=t.trim(),10);return!isNaN(r)&&i(r)?r:a}function lJ({data:t,defaultValue:a,validate:i}){if(!t)return a;let r=parseFloat(t=t.trim());return!isNaN(r)&&i(r)?r:a}function lZ({data:t,defaultValue:a,validate:i}){return t&&i(t=t.trim())?t:a}function lQ(t,a){return lZ({data:t,defaultValue:a[0],validate:t=>a.includes(t)})}function l1(t,a="0"){if(a||="0",!t)return l1(a);let i=t.trim().match(lX);if(!i)return l1(a);let[,r,s]=i,n=parseFloat(r);if(isNaN(n))return l1(a);if(0===n)return 0;let l=lV[s];return l?l(n):n}function l0(t){if(!t)return{num:1,den:1};let a=t.split(":",2).map(t=>parseFloat(t.trim())).filter(t=>!isNaN(t));if(1===a.length&&a.push(1),0===a.length)return{num:1,den:1};let[i,r]=a;return{num:i,den:r}}function l2(t){return t?t.trim().split(/\s+/).map(t=>({excluded:"-"===t[0],viewname:t.substring(1)})):[]}class l9{static get FAILURE(){return b(this,"FAILURE",new l9(!1,null,null,null))}static get EMPTY(){return b(this,"EMPTY",new l9(!0,null,null,null))}constructor(t,a,i,r){this.success=t,this.html=a,this.bbox=i,this.breakNode=r}isBreak(){return!!this.breakNode}static breakNode(t){return new l9(!1,null,null,t)}static success(t,a=null){return new l9(!0,t,a,null)}}class l5{constructor(t){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(t)}add(t,a=null){for(let a of t)this.addPdfFont(a);for(let t of this.fonts.values())t.regular||(t.regular=t.italic||t.bold||t.bolditalic);if(!a||0===a.size)return;let i=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(let t of a)this.fonts.set(t,i)}addPdfFont(t){let a=t.cssFontInfo,i=a.fontFamily,r=this.fonts.get(i);!r&&(r=Object.create(null),this.fonts.set(i,r),this.defaultFont||(this.defaultFont=r));let s="",n=parseFloat(a.fontWeight);0!==parseFloat(a.italicAngle)?s=n>=700?"bolditalic":"italic":n>=700&&(s="bold"),!s&&((t.name.includes("Bold")||t.psName?.includes("Bold"))&&(s="bold"),(t.name.includes("Italic")||t.name.endsWith("It")||t.psName?.includes("Italic")||t.psName?.endsWith("It"))&&(s+="italic")),s||(s="regular"),r[s]=t}getDefault(){return this.defaultFont}find(t,a=!0){let i=this.fonts.get(t)||this.cache.get(t);if(i)return i;let r=/,|-|_| |bolditalic|bold|italic|regular|it/gi,s=t.replaceAll(r,"");if(i=this.fonts.get(s))return this.cache.set(t,i),i;s=s.toLowerCase();let n=[];for(let[t,a]of this.fonts.entries())t.replaceAll(r,"").toLowerCase().startsWith(s)&&n.push(a);if(0===n.length)for(let[,t]of this.fonts.entries())t.regular.name?.replaceAll(r,"").toLowerCase().startsWith(s)&&n.push(t);if(0===n.length)for(let[t,a]of(s=s.replaceAll(/psmt|mt/gi,""),this.fonts.entries()))t.replaceAll(r,"").toLowerCase().startsWith(s)&&n.push(a);if(0===n.length)for(let t of this.fonts.values())t.regular.name?.replaceAll(r,"").toLowerCase().startsWith(s)&&n.push(t);return n.length>=1?(1!==n.length&&a&&f(`XFA - Too many choices to guess the correct font: ${t}`),this.cache.set(t,n[0]),n[0]):(a&&!this.warned.has(t)&&(this.warned.add(t),f(`XFA - Cannot find the font: ${t}`)),null)}}function l3(t,a){return"italic"===t.posture?"bold"===t.weight?a.bolditalic:a.italic:"bold"===t.weight?a.bold:a.regular}class l6{constructor(t,a,i,r){if(this.lineHeight=i,this.paraMargin=a||{top:0,bottom:0,left:0,right:0},!t){[this.pdfFont,this.xfaFont]=this.defaultFont(r);return}this.xfaFont={typeface:t.typeface,posture:t.posture,weight:t.weight,size:t.size,letterSpacing:t.letterSpacing};const s=r.find(t.typeface);s?(this.pdfFont=l3(t,s),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(r))):[this.pdfFont,this.xfaFont]=this.defaultFont(r)}defaultFont(t){let a=t.find("Helvetica",!1)||t.find("Myriad Pro",!1)||t.find("Arial",!1)||t.getDefault();if(a?.regular){let t=a.regular;return[t,{typeface:t.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0}]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}class l7{constructor(t,a,i,r){this.fontFinder=r,this.stack=[new l6(t,a,i,r)]}pushData(t,a,i){let r=this.stack.at(-1);for(let a of["typeface","posture","weight","size","letterSpacing"])t[a]||(t[a]=r.xfaFont[a]);for(let t of["top","bottom","left","right"])isNaN(a[t])&&(a[t]=r.paraMargin[t]);let s=new l6(t,a,i||r.lineHeight,this.fontFinder);s.pdfFont||(s.pdfFont=r.pdfFont),this.stack.push(s)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}class l8{constructor(t,a,i,r){this.glyphs=[],this.fontSelector=new l7(t,a,i,r),this.extraHeight=0}pushData(t,a,i){this.fontSelector.pushData(t,a,i)}popFont(t){return this.fontSelector.popFont()}addPara(){let t=this.fontSelector.topFont();this.extraHeight+=t.paraMargin.top+t.paraMargin.bottom}addString(t){if(!t)return;let a=this.fontSelector.topFont(),i=a.xfaFont.size;if(a.pdfFont){let r=a.xfaFont.letterSpacing,s=a.pdfFont,n=s.lineHeight||1.2,l=a.lineHeight||Math.max(1.2,n)*i,o=Math.max(1,n-(void 0===s.lineGap?.2:s.lineGap))*i,c=i/1e3,h=s.defaultWidth||s.charsToGlyphs(" ")[0].width;for(let a of t.split(/[\u2029\n]/)){let t=s.encodeString(a).join("");for(let a of s.charsToGlyphs(t)){let t=a.width||h;this.glyphs.push([t*c+r,l,o,a.unicode,!1])}this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop();return}for(let a of t.split(/[\u2029\n]/)){for(let t of a.split(""))this.glyphs.push([i,1.2*i,i,t,!1]);this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop()}compute(t){let a=-1,i=0,r=0,s=0,n=0,l=0,o=!1,c=!0;for(let h=0,u=this.glyphs.length;h<u;h++){let[u,d,f,g,p]=this.glyphs[h],m=" "===g,b=c?f:d;p?(r=Math.max(r,n),n=0,s+=l,l=b,a=-1,i=0,c=!1):m?n+u>t?(r=Math.max(r,n),n=0,s+=l,l=b,a=-1,i=0,o=!0,c=!1):(l=Math.max(b,l),i=n,n+=u,a=h):n+u>t?(s+=l,l=b,-1!==a?(h=a,r=Math.max(r,i),n=0,a=-1,i=0):(r=Math.max(r,n),n=u),o=!0,c=!1):(n+=u,l=Math.max(b,l))}return{width:1.02*(r=Math.max(r,n)),height:s+=l+this.extraHeight,isBroken:o}}}let l4=/^[^.[]+/,oe=/^[^\]]+/,ot=new Map([["$data",(t,a)=>t.datasets?t.datasets.data:t],["$record",(t,a)=>(t.datasets?t.datasets.data:t)[lt]()[0]],["$template",(t,a)=>t.template],["$connectionSet",(t,a)=>t.connectionSet],["$form",(t,a)=>t.form],["$layout",(t,a)=>t.layout],["$host",(t,a)=>t.host],["$dataWindow",(t,a)=>t.dataWindow],["$event",(t,a)=>t.event],["!",(t,a)=>t.datasets],["$xfa",(t,a)=>t],["xfa",(t,a)=>t],["$",(t,a)=>a]]),oa=new WeakMap;function oi(t,a,i=!0){let r=t.match(l4);if(!r)return null;let[s]=r,n=[{name:s,cacheName:"."+s,index:0,js:null,formCalc:null,operator:0}],l=s.length;for(;l<t.length;){let c,h=l;if("["===t.charAt(l++)){var o;if(!(r=t.slice(l).match(oe)))return f("XFA - Invalid index in SOM expression"),null;n.at(-1).index="*"===(o=(o=r[0]).trim())?1/0:parseInt(o,10)||0,l+=r[0].length+1;continue}switch(t.charAt(l)){case".":if(!a)return null;l++,c=1;break;case"#":l++,c=2;break;case"[":if(i)return f("XFA - SOM expression contains a FormCalc subexpression which is not supported for now."),null;c=3;break;case"(":if(i)return f("XFA - SOM expression contains a JavaScript subexpression which is not supported for now."),null;c=4;break;default:c=0}if(!(r=t.slice(l).match(l4)))break;[s]=r,l+=s.length,n.push({name:s,cacheName:t.slice(h,l),operator:c,index:0,js:null,formCalc:null})}return n}function or(t,a,i,r=!0,s=!0){let n=oi(i,r);if(!n)return null;let l=ot.get(n[0].name),o,c=0;l?(o=!0,t=[l(t,a)],c=1):(o=null===a,t=[a||t]);for(let i=n.length;c<i;c++){let{name:i,cacheName:r,operator:l,index:h}=n[c],u=[];for(let a of t){let t,n;if(a.isXFAObject){if(s&&((n=oa.get(a))||(n=new Map,oa.set(a,n)),t=n.get(r)),!t){switch(l){case 0:t=a[n6](i,!1);break;case 1:t=a[n6](i,!0);break;case 2:t=(t=a[n3](i)).isXFAObjectArray?t.children:[t]}s&&n.set(r,t)}t.length>0&&u.push(t)}}if(0===u.length&&!o&&0===c){if(!(a=a[ls]()))return null;c=-1,t=[a];continue}t=isFinite(h)?u.filter(t=>h<t.length).map(t=>t[h]):u.flat()}return 0===t.length?null:t}let os=Symbol(),on=Symbol(),ol=Symbol(),oo=Symbol("_children"),oc=Symbol(),oh=Symbol(),ou=Symbol(),od=Symbol(),of=Symbol(),og=Symbol(),op=Symbol(),om=Symbol(),ob=Symbol(),oy=Symbol("parent"),ow=Symbol(),ox=Symbol(),ok=Symbol(),ov=0,oA=lW.datasets.id;class oC{constructor(t,a,i=!1){this[lv]=t,this[lA]=a,this[op]=i,this[oy]=null,this[oo]=[],this[lz]=`${a}${ov++}`,this[ll]=null}get isXFAObject(){return!0}get isXFAObjectArray(){return!1}createNodes(t){let a=this,i=null;for(let{name:r,index:s}of t){for(let t=0,n=isFinite(s)?s:0;t<=n;t++)i=new oB(a[lv]===oA?-1:a[lv],r),a[nH](i);a=i}return i}[lS](t){if(!this[op]||!this[lI](t))return!1;let a=t[lA],i=this[a];if(!(i instanceof oS))return null!==i&&this[lR](i),this[a]=t,this[nH](t),!0;if(i.push(t))return this[nH](t),!0;let r="";return this.id?r=` (id: ${this.id})`:this.name&&(r=` (name: ${this.name} ${this.h.value})`),f(`XFA - node "${this[lA]}"${r} has already enough "${a}"!`),!1}[lI](t){return this.hasOwnProperty(t[lA])&&t[lv]===this[lv]}[lm](){return!1}[nj](){return!1}[ld](){return!1}[lf](){return!1}[lM](){this.para&&this[ln]()[nQ].paraStack.pop()}[lT](){this[ln]()[nQ].paraStack.push(this.para)}[lP](t){this.id&&this[lv]===lW.template.id&&t.set(this.id,this)}[ln](){return this[ll].template}[lb](){return!1}[ly](){return!1}[nH](t){t[oy]=this,this[oo].push(t),!t[ll]&&this[ll]&&(t[ll]=this[ll])}[lR](t){let a=this[oo].indexOf(t);this[oo].splice(a,1)}[lo](){return this.hasOwnProperty("value")}[l_](t){}[lB](t){}[n1](){}[nG](t){delete this[op],this[nV]&&(t.clean(this[nV]),delete this[nV])}[lh](t){return this[oo].indexOf(t)}[lu](t,a){a[oy]=this,this[oo].splice(t,0,a),!a[ll]&&this[ll]&&(a[ll]=this[ll])}[lw](){return!this.name}[lk](){return""}[lU](){return 0===this[oo].length?this[nY]:this[oo].map(t=>t[lU]()).join("")}get[ol](){let t=Object.getPrototypeOf(this);if(!t._attributes){let a=t._attributes=new Set;for(let t of Object.getOwnPropertyNames(this)){if(null===this[t]||this[t]instanceof oC||this[t]instanceof oS)break;a.add(t)}}return b(this,ol,t._attributes)}[lp](t){let a=this;for(;a;){if(a===t)return!0;a=a[ls]()}return!1}[ls](){return this[oy]}[lr](){return this[ls]()}[lt](t=null){return t?this[t]:this[oo]}[nZ](){let t=Object.create(null);for(let a of(this[nY]&&(t.$content=this[nY]),Object.getOwnPropertyNames(this))){let i=this[a];null!==i&&(i instanceof oC?t[a]=i[nZ]():i instanceof oS?i.isEmpty()||(t[a]=i.dump()):t[a]=i)}return t}[lH](){return null}[lj](){return l9.EMPTY}*[la](){for(let t of this[lt]())yield t}*[od](t,a){for(let i of this[la]())if(!t||a===t.has(i[lA])){let t=this[n5](),a=i[lj](t);a.success||(this[nQ].failingNode=i),yield a}}[n0](){return null}[n$](t,a){this[nQ].children.push(t)}[n5](){}[nz]({filter:t=null,include:a=!0}){if(this[nQ].generator){let t=this[n5](),a=this[nQ].failingNode[lj](t);if(!a.success)return a;a.html&&this[n$](a.html,a.bbox),delete this[nQ].failingNode}else this[nQ].generator=this[od](t,a);for(;;){let t=this[nQ].generator.next();if(t.done)break;let a=t.value;if(!a.success)return a;a.html&&this[n$](a.html,a.bbox)}return this[nQ].generator=null,l9.EMPTY}[lE](t){this[ox]=new Set(Object.keys(t))}[og](t){let a=this[ol],i=this[ox];return[...t].filter(t=>a.has(t)&&!i.has(t))}[lD](t,a=new Set){for(let i of this[oo])i[ow](t,a)}[ow](t,a){let i=this[of](t,a);i?this[os](i,t,a):this[lD](t,a)}[of](t,a){let{use:i,usehref:r}=this;if(!i&&!r)return null;let s=null,n=null,l=null,o=i;if(r?(o=r,r.startsWith("#som(")&&r.endsWith(")")?n=r.slice(5,-1):r.startsWith(".#som(")&&r.endsWith(")")?n=r.slice(6,-1):r.startsWith("#")?l=r.slice(1):r.startsWith(".#")&&(l=r.slice(2))):i.startsWith("#")?l=i.slice(1):n=i,this.use=this.usehref="",l?s=t.get(l):(s=or(t.get(lN),this,n,!0,!1))&&(s=s[0]),!s)return f(`XFA - Invalid prototype reference: ${o}.`),null;if(s[lA]!==this[lA])return f(`XFA - Incompatible prototype: ${s[lA]} !== ${this[lA]}.`),null;if(a.has(s))return f("XFA - Cycle detected in prototypes use."),null;a.add(s);let c=s[of](t,a);return c&&s[os](c,t,a),s[lD](t,a),a.delete(s),s}[os](t,a,i){if(i.has(t))return void f("XFA - Cycle detected in prototypes use.");for(let a of(!this[nY]&&t[nY]&&(this[nY]=t[nY]),new Set(i).add(t),this[og](t[ox])))this[a]=t[a],this[ox]&&this[ox].add(a);for(let r of Object.getOwnPropertyNames(this)){if(this[ol].has(r))continue;let s=this[r],n=t[r];if(s instanceof oS){for(let t of s[oo])t[ow](a,i);for(let r=s[oo].length,l=n[oo].length;r<l;r++){let n=t[oo][r][nX]();if(!s.push(n))break;n[oy]=this,this[oo].push(n),n[ow](a,i)}}else if(null===s){if(null!==n){let t=n[nX]();t[oy]=this,this[r]=t,this[oo].push(t),t[ow](a,i)}}else s[lD](a,i),n&&s[os](n,a,i)}}static[oc](t){return Array.isArray(t)?t.map(t=>oC[oc](t)):"object"==typeof t&&null!==t?Object.assign({},t):t}[nX](){let t=Object.create(Object.getPrototypeOf(this));for(let a of Object.getOwnPropertySymbols(this))try{t[a]=this[a]}catch{b(t,a,this[a])}for(let a of(t[lz]=`${t[lA]}${ov++}`,t[oo]=[],Object.getOwnPropertyNames(this))){if(this[ol].has(a)){t[a]=oC[oc](this[a]);continue}let i=this[a];t[a]=i instanceof oS?new oS(i[om]):null}for(let a of this[oo]){let i=a[lA],r=a[nX]();t[oo].push(r),r[oy]=t,null===t[i]?t[i]=r:t[i][oo].push(r)}return t}[lt](t=null){return t?this[oo].filter(a=>a[lA]===t):this[oo]}[n3](t){return this[t]}[n6](t,a,i=!0){return Array.from(this[n7](t,a,i))}*[n7](t,a,i=!0){if("parent"!==t){for(let i of this[oo])i[lA]===t&&(yield i),i.name===t&&(yield i),(a||i[lw]())&&(yield*i[n7](t,a,!1));i&&this[ol].has(t)&&(yield new oI(this,t,this[t]))}else yield this[oy]}}class oS{constructor(t=1/0){this[om]=t,this[oo]=[]}get isXFAObject(){return!1}get isXFAObjectArray(){return!0}push(t){return this[oo].length<=this[om]?(this[oo].push(t),!0):(f(`XFA - node "${t[lA]}" accepts no more than ${this[om]} children`),!1)}isEmpty(){return 0===this[oo].length}dump(){return 1===this[oo].length?this[oo][0][nZ]():this[oo].map(t=>t[nZ]())}[nX](){let t=new oS(this[om]);return t[oo]=this[oo].map(t=>t[nX]()),t}get children(){return this[oo]}clear(){this[oo].length=0}}class oI{constructor(t,a,i){this[oy]=t,this[lA]=a,this[nY]=i,this[nK]=!1,this[lz]="attribute"+ov++}[ls](){return this[oy]}[lg](){return!0}[n8](){return this[nY].trim()}[l_](t){t=t.value||"",this[nY]=t.toString()}[lU](){return this[nY]}[lp](t){return this[oy]===t||this[oy][lp](t)}}class oB extends oC{constructor(t,a,i={}){if(super(t,a),this[nY]="",this[oh]=null,"#text"!==a){const t=new Map;for(const[a,r]of(this[on]=t,Object.entries(i)))t.set(a,new oI(this,a,r));if(i.hasOwnProperty(lC)){const t=i[lC].xfa.dataNode;void 0!==t&&("dataGroup"===t?this[oh]=!1:"dataValue"===t&&(this[oh]=!0))}}this[nK]=!1}[l$](t){let a=this[lA];if("#text"===a)return void t.push(eO(this[nY]));let i=P(a),r=this[lv]===oA?"xfa:":"";for(let[a,s]of(t.push(`<${r}${i}`),this[on].entries())){let i=P(a);t.push(` ${i}="${eO(s[nY])}"`)}if(null!==this[oh]&&(this[oh]?t.push(' xfa:dataNode="dataValue"'):t.push(' xfa:dataNode="dataGroup"')),this[nY]||0!==this[oo].length){if(t.push(">"),this[nY])"string"==typeof this[nY]?t.push(eO(this[nY])):this[nY][l$](t);else for(let a of this[oo])a[l$](t);t.push(`</${r}${i}>`)}else t.push("/>")}[lS](t){if(this[nY]){let t=new oB(this[lv],"#text");this[nH](t),t[nY]=this[nY],this[nY]=""}return this[nH](t),!0}[lB](t){this[nY]+=t}[n1](){if(this[nY]&&this[oo].length>0){let t=new oB(this[lv],"#text");this[nH](t),t[nY]=this[nY],delete this[nY]}}[lj](){return"#text"===this[lA]?l9.success({name:"#text",value:this[nY]}):l9.EMPTY}[lt](t=null){return t?this[oo].filter(a=>a[lA]===t):this[oo]}[n9](){return this[on]}[n3](t){let a=this[on].get(t);return void 0!==a?a:this[lt](t)}*[n7](t,a){let i=this[on].get(t);for(let r of(i&&(yield i),this[oo]))r[lA]===t&&(yield r),a&&(yield*r[n7](t,a))}*[n2](t,a){let i=this[on].get(t);for(let r of(!i||a&&i[nK]||(yield i),this[oo]))yield*r[n2](t,a)}*[le](t,a,i){for(let r of this[oo])r[lA]!==t||i&&r[nK]||(yield r),a&&(yield*r[le](t,a,i))}[lg](){return null===this[oh]?0===this[oo].length||this[oo][0][lv]===lW.xhtml.id:this[oh]}[n8](){return null===this[oh]?0===this[oo].length?this[nY].trim():this[oo][0][lv]===lW.xhtml.id?this[oo][0][lU]().trim():null:this[nY].trim()}[l_](t){t=t.value||"",this[nY]=t.toString()}[nZ](t=!1){let a=Object.create(null);for(let i of(t&&(a.$ns=this[lv]),this[nY]&&(a.$content=this[nY]),a.$name=this[lA],a.children=[],this[oo]))a.children.push(i[nZ](t));for(let[t,i]of(a.attributes=Object.create(null),this[on]))a.attributes[t]=i[nY];return a}}class oF extends oC{constructor(t,a){super(t,a),this[nY]=""}[lB](t){this[nY]+=t}[n1](){}}class oM extends oF{constructor(t,a,i){super(t,a),this[ob]=i}[n1](){this[nY]=lZ({data:this[nY],defaultValue:this[ob][0],validate:t=>this[ob].includes(t)})}[nG](t){super[nG](t),delete this[ob]}}class oT extends oF{[n1](){this[nY]=this[nY].trim()}}class oR extends oF{constructor(t,a,i,r){super(t,a),this[ou]=i,this[ok]=r}[n1](){this[nY]=lY({data:this[nY],defaultValue:this[ou],validate:this[ok]})}[nG](t){super[nG](t),delete this[ou],delete this[ok]}}class oN extends oR{constructor(t,a){super(t,a,0,t=>1===t)}}class oD extends oR{constructor(t,a){super(t,a,1,t=>0===t)}}function oO(t){return"string"==typeof t?"0px":Number.isInteger(t)?`${t}px`:`${t.toFixed(2)}px`}let oP={anchorType(t,a){let i=t[lr]();if(i&&(!i.layout||"position"===i.layout))switch("transform"in a||(a.transform=""),t.anchorType){case"bottomCenter":a.transform+="translate(-50%, -100%)";break;case"bottomLeft":a.transform+="translate(0,-100%)";break;case"bottomRight":a.transform+="translate(-100%,-100%)";break;case"middleCenter":a.transform+="translate(-50%,-50%)";break;case"middleLeft":a.transform+="translate(0,-50%)";break;case"middleRight":a.transform+="translate(-100%,-50%)";break;case"topCenter":a.transform+="translate(-50%,0)";break;case"topRight":a.transform+="translate(-100%,0)"}},dimensions(t,a){let i=t[lr](),r=t.w,s=t.h;if(i.layout?.includes("row")){let a,s=i[nQ],n=t.colSpan;-1===n?(a=Math.sumPrecise(s.columnWidths.slice(s.currentColumn)),s.currentColumn=0):(a=Math.sumPrecise(s.columnWidths.slice(s.currentColumn,s.currentColumn+n)),s.currentColumn=(s.currentColumn+t.colSpan)%s.columnWidths.length),isNaN(a)||(r=t.w=a)}a.width=""!==r?oO(r):"auto",a.height=""!==s?oO(s):"auto"},position(t,a){let i=t[lr]();i?.layout&&"position"!==i.layout||(a.position="absolute",a.left=oO(t.x),a.top=oO(t.y))},rotate(t,a){t.rotate&&("transform"in a||(a.transform=""),a.transform+=`rotate(-${t.rotate}deg)`,a.transformOrigin="top left")},presence(t,a){switch(t.presence){case"invisible":a.visibility="hidden";break;case"hidden":case"inactive":a.display="none"}},hAlign(t,a){if("para"===t[lA])switch(t.hAlign){case"justifyAll":a.textAlign="justify-all";break;case"radix":a.textAlign="left";break;default:a.textAlign=t.hAlign}else switch(t.hAlign){case"left":a.alignSelf="start";break;case"center":a.alignSelf="center";break;case"right":a.alignSelf="end"}},margin(t,a){t.margin&&(a.margin=t.margin[lH]().margin)}};function oE(t,a){"position"===t[lr]().layout&&(t.minW>0&&(a.minWidth=oO(t.minW)),t.maxW>0&&(a.maxWidth=oO(t.maxW)),t.minH>0&&(a.minHeight=oO(t.minH)),t.maxH>0&&(a.maxHeight=oO(t.maxH)))}function o_(t,a,i,r,s,n){let l=new l8(a,i,r,s);return"string"==typeof t?l.addString(t):t[lF](l),l.compute(n)}function oL(t,a){let i=null,r=null,s=!1;if((!t.w||!t.h)&&t.value){let n=0,l=0;t.margin&&(n=t.margin.leftInset+t.margin.rightInset,l=t.margin.topInset+t.margin.bottomInset);let o=null,c=null;t.para&&(c=Object.create(null),o=""===t.para.lineHeight?null:t.para.lineHeight,c.top=""===t.para.spaceAbove?0:t.para.spaceAbove,c.bottom=""===t.para.spaceBelow?0:t.para.spaceBelow,c.left=""===t.para.marginLeft?0:t.para.marginLeft,c.right=""===t.para.marginRight?0:t.para.marginRight);let h=t.font;if(!h){let a=t[ln](),i=t[ls]();for(;i&&i!==a;){if(i.font){h=i.font;break}i=i[ls]()}}let u=(t.w||a.width)-n,d=t[ll].fontFinder;if(t.value.exData&&t.value.exData[nY]&&"text/html"===t.value.exData.contentType){let a=o_(t.value.exData[nY],h,c,o,d,u);r=a.width,i=a.height,s=a.isBroken}else{let a=t.value[lU]();if(a){let t=o_(a,h,c,o,d,u);r=t.width,i=t.height,s=t.isBroken}}null===r||t.w||(r+=n),null===i||t.h||(i+=l)}return{w:r,h:i,isBroken:s}}function oU(t,a,i){let r;if(""!==t.w&&""!==t.h)r=[t.x,t.y,t.w,t.h];else{if(!i)return null;let s=t.w;if(""===s){if(0===t.maxW){let a=t[lr]();s="position"===a.layout&&""!==a.w?0:t.minW}else s=Math.min(t.maxW,i.width);a.attributes.style.width=oO(s)}let n=t.h;if(""===n){if(0===t.maxH){let a=t[lr]();n="position"===a.layout&&""!==a.h?0:t.minH}else n=Math.min(t.maxH,i.height);a.attributes.style.height=oO(n)}r=[t.x,t.y,s,n]}return r}function oq(t){let a=t[lr]();if(a.layout?.includes("row")){let i,r=a[nQ],s=t.colSpan;isNaN(i=-1===s?Math.sumPrecise(r.columnWidths.slice(r.currentColumn)):Math.sumPrecise(r.columnWidths.slice(r.currentColumn,r.currentColumn+s)))||(t.w=i)}a.layout&&"position"!==a.layout&&(t.x=t.y=0),"table"===t.layout&&""===t.w&&Array.isArray(t.columnWidths)&&(t.w=Math.sumPrecise(t.columnWidths))}function oj(t){switch(t.layout){case"position":default:return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb"}}function o$(t,...a){let i=Object.create(null);for(let r of a){let a=t[r];if(null!==a){if(oP.hasOwnProperty(r))oP[r](t,i);else if(a instanceof oC){let t=a[lH]();t?Object.assign(i,t):f(`(DEBUG) - XFA - style for ${r} not implemented yet`)}}}return i}function oH(t,a){let{attributes:i}=a,{style:r}=i,s={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(i.class.push("xfaWrapped"),t.border){let{widths:i,insets:n}=t.border[nQ],l,o,c=n[0],h=n[3],u=n[0]+n[2],d=n[1]+n[3];switch(t.border.hand){case"even":c-=i[0]/2,h-=i[3]/2,l=`calc(100% + ${(i[1]+i[3])/2-d}px)`,o=`calc(100% + ${(i[0]+i[2])/2-u}px)`;break;case"left":c-=i[0],h-=i[3],l=`calc(100% + ${i[1]+i[3]-d}px)`,o=`calc(100% + ${i[0]+i[2]-u}px)`;break;case"right":l=d?`calc(100% - ${d}px)`:"100%",o=u?`calc(100% - ${u}px)`:"100%"}let f=["xfaBorder"];oW(t.border)&&f.push("xfaPrintOnly");let g={name:"div",attributes:{class:f,style:{top:`${c}px`,left:`${h}px`,width:l,height:o}},children:[]};for(let t of["border","borderWidth","borderColor","borderRadius","borderStyle"])void 0!==r[t]&&(g.attributes.style[t]=r[t],delete r[t]);s.children.push(g,a)}else s.children.push(a);for(let t of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])void 0!==r[t]&&(s.attributes.style[t]=r[t],delete r[t]);return s.attributes.style.position="absolute"===r.position?"absolute":"relative",delete r.position,r.alignSelf&&(s.attributes.style.alignSelf=r.alignSelf,delete r.alignSelf),s}function oz(t){let a=l1(t.textIndent,"0px");if(a>=0)return;let i="padding"+("left"==("right"===t.textAlign?"right":"left")?"Left":"Right"),r=l1(t[i],"0px");t[i]=r-a+"px"}function oG(t,a){switch(t.access){case"nonInteractive":a.push("xfaNonInteractive");break;case"readOnly":a.push("xfaReadOnly");break;case"protected":a.push("xfaDisabled")}}function oW(t){return t.relevant.length>0&&!t.relevant[0].excluded&&"print"===t.relevant[0].viewname}function oV(t){let a=t[ln]()[nQ].paraStack;return a.length?a.at(-1):null}function oX(t,a,i){if(i.attributes.class?.includes("xfaRich")){a&&(""===t.h&&(a.height="auto"),""===t.w&&(a.width="auto"));let r=oV(t);if(r){let t=i.attributes.style;switch(t.display="flex",t.flexDirection="column",r.vAlign){case"top":t.justifyContent="start";break;case"bottom":t.justifyContent="end";break;case"middle":t.justifyContent="center"}for(let[a,i]of Object.entries(r[lH]()))a in t||(t[a]=i)}}}function oK(t,a,i,r){if(!i)return void delete r.fontFamily;let s=lK(t.typeface);r.fontFamily=`"${s}"`;let n=i.find(s);if(n){let{fontFamily:i}=n.regular.cssFontInfo;i!==s&&(r.fontFamily=`"${i}"`);let l=oV(a);if(l&&""!==l.lineHeight||r.lineHeight)return;let o=l3(t,n);o&&(r.lineHeight=Math.max(1.2,o.lineHeight))}}function oY(t){let a=m(t,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return a?a.href:null}function oJ(t,a){return{name:"div",attributes:{class:["lr-tb"===t.layout?"xfaLr":"xfaRl"]},children:a}}function oZ(t){if(!t[nQ])return null;let a={name:"div",attributes:t[nQ].attributes,children:t[nQ].children};if(t[nQ].failingNode){let i=t[nQ].failingNode[n0]();i&&(t.layout.endsWith("-tb")?a.children.push(oJ(t,[i])):a.children.push(i))}return 0===a.children.length?null:a}function oQ(t,a,i){let r=t[nQ],s=r.availableSpace,[n,l,o,c]=i;switch(t.layout){case"position":r.width=Math.max(r.width,n+o),r.height=Math.max(r.height,l+c),r.children.push(a);break;case"lr-tb":case"rl-tb":r.line&&1!==r.attempt||(r.line=oJ(t,[]),r.children.push(r.line),r.numberInLine=0),r.numberInLine+=1,r.line.children.push(a),0===r.attempt?(r.currentWidth+=o,r.height=Math.max(r.height,r.prevHeight+c)):(r.currentWidth=o,r.prevHeight=r.height,r.height+=c,r.attempt=0),r.width=Math.max(r.width,r.currentWidth);break;case"rl-row":case"row":{r.children.push(a),r.width+=o,r.height=Math.max(r.height,c);let t=oO(r.height);for(let a of r.children)a.attributes.style.height=t;break}case"table":case"tb":r.width=q(o,r.width,s.width),r.height+=c,r.children.push(a)}}function o1(t){let a=t[nQ].availableSpace,i=t.margin?t.margin.topInset+t.margin.bottomInset:0,r=t.margin?t.margin.leftInset+t.margin.rightInset:0;switch(t.layout){case"lr-tb":case"rl-tb":return 0===t[nQ].attempt?{width:a.width-r-t[nQ].currentWidth,height:a.height-i-t[nQ].prevHeight}:{width:a.width-r,height:a.height-i-t[nQ].height};case"rl-row":case"row":return{width:Math.sumPrecise(t[nQ].columnWidths.slice(t[nQ].currentColumn)),height:a.height-r};case"table":case"tb":return{width:a.width-r,height:a.height-i-t[nQ].height};default:return a}}function o0(t,a){if(null===t[ln]()[nQ].firstUnsplittable||0===t.w||0===t.h)return!0;let i=t[lr](),r=i[nQ]?.attempt||0,[,s,n,l]=function(t){let a,i,r=""===t.w?NaN:t.w,s=""===t.h?NaN:t.h,[n,l]=[0,0];switch(t.anchorType||""){case"bottomCenter":[n,l]=[r/2,s];break;case"bottomLeft":[n,l]=[0,s];break;case"bottomRight":[n,l]=[r,s];break;case"middleCenter":[n,l]=[r/2,s/2];break;case"middleLeft":[n,l]=[0,s/2];break;case"middleRight":[n,l]=[r,s/2];break;case"topCenter":[n,l]=[r/2,0];break;case"topRight":[n,l]=[r,0]}switch(t.rotate||0){case 0:[a,i]=[-n,-l];break;case 90:[a,i]=[-l,n],[r,s]=[s,-r];break;case 180:[a,i]=[n,l],[r,s]=[-r,-s];break;case 270:[a,i]=[l,-n],[r,s]=[-s,r]}return[t.x+a+Math.min(0,r),t.y+i+Math.min(0,s),Math.abs(r),Math.abs(s)]}(t);switch(i.layout){case"lr-tb":case"rl-tb":return 0===r?t[ln]()[nQ].noLayoutFailure?""!==t.w?2>=Math.round(n-a.width):a.width>2:!(""!==t.h&&Math.round(l-a.height)>2)&&(""!==t.w?2>=Math.round(n-a.width)||0===i[nQ].numberInLine&&a.height>2:a.width>2):!!t[ln]()[nQ].noLayoutFailure||!(""!==t.h&&Math.round(l-a.height)>2)&&(""===t.w||2>=Math.round(n-a.width)||!i[ly]())&&a.height>2;case"table":case"tb":return!!t[ln]()[nQ].noLayoutFailure||(""===t.h||t[lb]()?(""===t.w||2>=Math.round(n-a.width)||!i[ly]())&&a.height>2:2>=Math.round(l-a.height));case"position":if(t[ln]()[nQ].noLayoutFailure||""===t.h||2>=Math.round(l+s-a.height))return!0;return l+s>t[ln]()[nQ].currentContentArea.h;case"rl-row":case"row":return!!t[ln]()[nQ].noLayoutFailure||""===t.h||2>=Math.round(l-a.height);default:return!0}}let o2=lW.template.id,o9="http://www.w3.org/2000/svg",o5=/^H(\d+)$/,o3=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif","application/octet-stream"]),o6=[[[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 o7(t){if(!t||!t.border)return{w:0,h:0};let a=t.border[n4]();return a?{w:a.widths[0]+a.widths[2]+a.insets[0]+a.insets[2],h:a.widths[1]+a.widths[3]+a.insets[1]+a.insets[3]}:{w:0,h:0}}function o8(t){return t.margin&&(t.margin.topInset||t.margin.rightInset||t.margin.bottomInset||t.margin.leftInset)}function o4(t,a){if(!t.value){let a=new h9({});t[nH](a),t.value=a}t.value[l_](a)}function*ce(t){for(let a of t[lt]())a instanceof hH?yield*a[la]():yield a}function ct(t){return"error"===t.validate?.nullTest}function ca(t){for(;t;){if(!t.traversal){t[lL]=t[ls]()[lL];return}if(t[lL])return;let a=null;for(let i of t.traversal[lt]())if("next"===i.operation){a=i;break}if(!a||!a.ref){t[lL]=t[ls]()[lL];return}let i=t[ln]();t[lL]=++i[lL];let r=i[lO](a.ref,t);if(!r)return;t=r[0]}}function ci(t,a){let i=t.assist;if(i){let t=i[lj]();t&&(a.title=t);let r=i.role.match(o5);if(r){let t=r[1];a.role="heading",a["aria-level"]=t}}if("table"===t.layout)a.role="table";else if("row"===t.layout)a.role="row";else{let i=t[ls]();"row"===i.layout&&(a.role="TH"===i.assist?.role?"columnheader":"cell")}}function cr(t){if(!t.assist)return null;let a=t.assist;return a.speak&&""!==a.speak[nY]?a.speak[nY]:a.toolTip?a.toolTip[nY]:null}function cs(t){return l9.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:t}]})}function cn(t){let a=t[ln]();null===a[nQ].firstUnsplittable&&(a[nQ].firstUnsplittable=t,a[nQ].noLayoutFailure=!0)}function cl(t){let a=t[ln]();a[nQ].firstUnsplittable===t&&(a[nQ].noLayoutFailure=!1)}function co(t){if(t[nQ]||(t[nQ]=Object.create(null),"auto"===t.targetType))return!1;let a=t[ln](),i=null;if(t.target){if(!(i=a[lO](t.target,t[ls]())))return!1;i=i[0]}let{currentPageArea:r,currentContentArea:s}=a[nQ];if("pageArea"===t.targetType)return(i instanceof hv||(i=null),t.startNew)?(t[nQ].target=i||r,!0):!!i&&i!==r&&(t[nQ].target=i,!0);i instanceof cD||(i=null);let n=i&&i[ls](),l,o=n;if(t.startNew)if(i){let t=n.contentArea.children,a=t.indexOf(s),r=t.indexOf(i);-1!==a&&a<r&&(o=null),l=r-1}else l=r.contentArea.children.indexOf(s);else{if(!i||i===s)return!1;l=n.contentArea.children.indexOf(i)-1,o=n===r?null:n}return t[nQ].target=o,t[nQ].index=l,!0}function cc(t,a,i){let r=t[ln](),s=r[nQ].noLayoutFailure,n=a[lr];a[lr]=()=>t,r[nQ].noLayoutFailure=!0;let l=a[lj](i);t[n$](l.html,l.bbox),r[nQ].noLayoutFailure=s,a[lr]=n}class ch extends oT{constructor(t){super(o2,"appearanceFilter"),this.id=t.id||"",this.type=lQ(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}}class cu extends oC{constructor(t){super(o2,"arc",!0),this.circular=lY({data:t.circular,defaultValue:0,validate:t=>1===t}),this.hand=lQ(t.hand,["even","left","right"]),this.id=t.id||"",this.startAngle=lJ({data:t.startAngle,defaultValue:0,validate:t=>!0}),this.sweepAngle=lJ({data:t.sweepAngle,defaultValue:360,validate:t=>!0}),this.use=t.use||"",this.usehref=t.usehref||"",this.edge=null,this.fill=null}[lj](){let t,a=this.edge||new cz({}),i=a[lH](),r=Object.create(null);"visible"===this.fill?.presence?Object.assign(r,this.fill[lH]()):r.fill="transparent",r.strokeWidth=oO("visible"===a.presence?a.thickness:0),r.stroke=i.color;let s={xmlns:o9,style:{width:"100%",height:"100%",overflow:"visible"}};if(360===this.sweepAngle)t={name:"ellipse",attributes:{xmlns:o9,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:r}};else{let a=this.startAngle*Math.PI/180,i=this.sweepAngle*Math.PI/180,n=+(this.sweepAngle>180),[l,o,c,h]=[50*(1+Math.cos(a)),50*(1-Math.sin(a)),50*(1+Math.cos(a+i)),50*(1-Math.sin(a+i))];t={name:"path",attributes:{xmlns:o9,d:`M ${l} ${o} A 50 50 0 ${n} 0 ${c} ${h}`,vectorEffect:"non-scaling-stroke",style:r}},Object.assign(s,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}let n={name:"svg",children:[t],attributes:s};return o8(this[ls]()[ls]())?l9.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[n]}):(n.attributes.style.position="absolute",l9.success(n))}}class cd extends oC{constructor(t){super(o2,"area",!0),this.colSpan=lY({data:t.colSpan,defaultValue:1,validate:t=>t>=1||-1===t}),this.id=t.id||"",this.name=t.name||"",this.relevant=l2(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.x=l1(t.x,"0pt"),this.y=l1(t.y,"0pt"),this.desc=null,this.extras=null,this.area=new oS,this.draw=new oS,this.exObject=new oS,this.exclGroup=new oS,this.field=new oS,this.subform=new oS,this.subformSet=new oS}*[la](){yield*ce(this)}[lw](){return!0}[lf](){return!0}[n$](t,a){let[i,r,s,n]=a;this[nQ].width=Math.max(this[nQ].width,i+s),this[nQ].height=Math.max(this[nQ].height,r+n),this[nQ].children.push(t)}[n5](){return this[nQ].availableSpace}[lj](t){let a=o$(this,"position"),i={style:a,id:this[lz],class:["xfaArea"]};oW(this)&&i.class.push("xfaPrintOnly"),this.name&&(i.xfaName=this.name);let r=[];this[nQ]={children:r,width:0,height:0,availableSpace:t};let s=this[nz]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!s.success)return s.isBreak()?s:(delete this[nQ],l9.FAILURE);a.width=oO(this[nQ].width),a.height=oO(this[nQ].height);let n=[this.x,this.y,this[nQ].width,this[nQ].height];return delete this[nQ],l9.success({name:"div",attributes:i,children:r},n)}}class cf extends oC{constructor(t){super(o2,"assist",!0),this.id=t.id||"",this.role=t.role||"",this.use=t.use||"",this.usehref=t.usehref||"",this.speak=null,this.toolTip=null}[lj](){return this.toolTip?.[nY]||null}}class cg extends oC{constructor(t){super(o2,"barcode",!0),this.charEncoding=lZ({data:t.charEncoding?t.charEncoding.toLowerCase():"",defaultValue:"",validate:t=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(t)||t.match(/iso-8859-\d{2}/)}),this.checksum=lQ(t.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),this.dataColumnCount=lY({data:t.dataColumnCount,defaultValue:-1,validate:t=>t>=0}),this.dataLength=lY({data:t.dataLength,defaultValue:-1,validate:t=>t>=0}),this.dataPrep=lQ(t.dataPrep,["none","flateCompress"]),this.dataRowCount=lY({data:t.dataRowCount,defaultValue:-1,validate:t=>t>=0}),this.endChar=t.endChar||"",this.errorCorrectionLevel=lY({data:t.errorCorrectionLevel,defaultValue:-1,validate:t=>t>=0&&t<=8}),this.id=t.id||"",this.moduleHeight=l1(t.moduleHeight,"5mm"),this.moduleWidth=l1(t.moduleWidth,"0.25mm"),this.printCheckDigit=lY({data:t.printCheckDigit,defaultValue:0,validate:t=>1===t}),this.rowColumnRatio=l0(t.rowColumnRatio),this.startChar=t.startChar||"",this.textLocation=lQ(t.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),this.truncate=lY({data:t.truncate,defaultValue:0,validate:t=>1===t}),this.type=lQ(t.type?t.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"]),this.upsMode=lQ(t.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),this.use=t.use||"",this.usehref=t.usehref||"",this.wideNarrowRatio=l0(t.wideNarrowRatio),this.encrypt=null,this.extras=null}}class cp extends oC{constructor(t){super(o2,"bind",!0),this.match=lQ(t.match,["once","dataRef","global","none"]),this.ref=t.ref||"",this.picture=null}}class cm extends oC{constructor(t){super(o2,"bindItems"),this.connection=t.connection||"",this.labelRef=t.labelRef||"",this.ref=t.ref||"",this.valueRef=t.valueRef||""}}class cb extends oC{constructor(t){super(o2,"bookend"),this.id=t.id||"",this.leader=t.leader||"",this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||""}}class cy extends oN{constructor(t){super(o2,"boolean"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[lj](t){return cs(1===this[nY]?"1":"0")}}class cw extends oC{constructor(t){super(o2,"border",!0),this.break=lQ(t.break,["close","open"]),this.hand=lQ(t.hand,["even","left","right"]),this.id=t.id||"",this.presence=lQ(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=l2(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.corner=new oS(4),this.edge=new oS(4),this.extras=null,this.fill=null,this.margin=null}[n4](){if(!this[nQ]){let t=this.edge.children.slice();if(t.length<4){let a=t.at(-1)||new cz({});for(let i=t.length;i<4;i++)t.push(a)}let a=t.map(t=>t.thickness),i=[0,0,0,0];this.margin&&(i[0]=this.margin.topInset,i[1]=this.margin.rightInset,i[2]=this.margin.bottomInset,i[3]=this.margin.leftInset),this[nQ]={widths:a,insets:i,edges:t}}return this[nQ]}[lH](){let{edges:t}=this[n4](),a=t.map(t=>{let a=t[lH]();return a.color||="#000000",a}),i=Object.create(null);if(this.margin&&Object.assign(i,this.margin[lH]()),"visible"===this.fill?.presence&&Object.assign(i,this.fill[lH]()),this.corner.children.some(t=>0!==t.radius)){let t=this.corner.children.map(t=>t[lH]());if(2===t.length||3===t.length){let a=t.at(-1);for(let i=t.length;i<4;i++)t.push(a)}i.borderRadius=t.map(t=>t.radius).join(" ")}switch(this.presence){case"invisible":case"hidden":i.borderStyle="";break;case"inactive":i.borderStyle="none";break;default:i.borderStyle=a.map(t=>t.style).join(" ")}return i.borderWidth=a.map(t=>t.width).join(" "),i.borderColor=a.map(t=>t.color).join(" "),i}}class cx extends oC{constructor(t){super(o2,"break",!0),this.after=lQ(t.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.afterTarget=t.afterTarget||"",this.before=lQ(t.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.beforeTarget=t.beforeTarget||"",this.bookendLeader=t.bookendLeader||"",this.bookendTrailer=t.bookendTrailer||"",this.id=t.id||"",this.overflowLeader=t.overflowLeader||"",this.overflowTarget=t.overflowTarget||"",this.overflowTrailer=t.overflowTrailer||"",this.startNew=lY({data:t.startNew,defaultValue:0,validate:t=>1===t}),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}}class ck extends oC{constructor(t){super(o2,"breakAfter",!0),this.id=t.id||"",this.leader=t.leader||"",this.startNew=lY({data:t.startNew,defaultValue:0,validate:t=>1===t}),this.target=t.target||"",this.targetType=lQ(t.targetType,["auto","contentArea","pageArea"]),this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||"",this.script=null}}class cv extends oC{constructor(t){super(o2,"breakBefore",!0),this.id=t.id||"",this.leader=t.leader||"",this.startNew=lY({data:t.startNew,defaultValue:0,validate:t=>1===t}),this.target=t.target||"",this.targetType=lQ(t.targetType,["auto","contentArea","pageArea"]),this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||"",this.script=null}[lj](t){return this[nQ]={},l9.FAILURE}}class cA extends oC{constructor(t){super(o2,"button",!0),this.highlight=lQ(t.highlight,["inverted","none","outline","push"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[lj](t){let a=this[ls]()[ls](),i={name:"button",attributes:{id:this[lz],class:["xfaButton"],style:{}},children:[]};for(let t of a.event.children){if("click"!==t.activity||!t.script)continue;let a=eE(t.script[nY]);if(!a)continue;let r=oY(a.url);r&&i.children.push({name:"a",attributes:{id:"link"+this[lz],href:r,newWindow:a.newWindow,class:["xfaLink"],style:{}},children:[]})}return l9.success(i)}}class cC extends oC{constructor(t){super(o2,"calculate",!0),this.id=t.id||"",this.override=lQ(t.override,["disabled","error","ignore","warning"]),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.message=null,this.script=null}}class cS extends oC{constructor(t){super(o2,"caption",!0),this.id=t.id||"",this.placement=lQ(t.placement,["left","bottom","inline","right","top"]),this.presence=lQ(t.presence,["visible","hidden","inactive","invisible"]),this.reserve=Math.ceil(l1(t.reserve)),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[l_](t){o4(this,t)}[n4](t){if(!this[nQ]){let{width:a,height:i}=t;switch(this.placement){case"left":case"right":case"inline":a=this.reserve<=0?a:this.reserve;break;case"top":case"bottom":i=this.reserve<=0?i:this.reserve}this[nQ]=oL(this,{width:a,height:i})}return this[nQ]}[lj](t){if(!this.value)return l9.EMPTY;this[lT]();let a=this.value[lj](t).html;if(!a)return this[lM](),l9.EMPTY;let i=this.reserve;if(this.reserve<=0){let{w:a,h:i}=this[n4](t);switch(this.placement){case"left":case"right":case"inline":this.reserve=a;break;case"top":case"bottom":this.reserve=i}}let r=[];"string"==typeof a?r.push({name:"#text",value:a}):r.push(a);let s=o$(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(s.width=oO(this.reserve));break;case"top":case"bottom":this.reserve>0&&(s.height=oO(this.reserve))}return oX(this,null,a),this[lM](),this.reserve=i,l9.success({name:"div",attributes:{style:s,class:["xfaCaption"]},children:r})}}class cI extends oT{constructor(t){super(o2,"certificate"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class cB extends oC{constructor(t){super(o2,"certificates",!0),this.credentialServerPolicy=lQ(t.credentialServerPolicy,["optional","required"]),this.id=t.id||"",this.url=t.url||"",this.urlPolicy=t.urlPolicy||"",this.use=t.use||"",this.usehref=t.usehref||"",this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}}class cF extends oC{constructor(t){super(o2,"checkButton",!0),this.id=t.id||"",this.mark=lQ(t.mark,["default","check","circle","cross","diamond","square","star"]),this.shape=lQ(t.shape,["square","round"]),this.size=l1(t.size,"10pt"),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}[lj](t){let a,i,r,s,n=o$(this,"margin");n.width=n.height=oO(this.size);let l=this[ls]()[ls](),o=l.items.children.length&&l.items.children[0][lj]().html||[],c={on:(void 0!==o[0]?o[0]:"on").toString(),off:(void 0!==o[1]?o[1]:"off").toString()},h=(l.value?.[lU]()||"off")===c.on||void 0,u=l[lr](),d=l[lz];u instanceof c0?(r=u[lz],a="radio",i="xfaRadio",s=u[nJ]?.[lz]||u[lz]):(a="checkbox",i="xfaCheckbox",s=l[nJ]?.[lz]||l[lz]);let f={name:"input",attributes:{class:[i],style:n,fieldId:d,dataId:s,type:a,checked:h,xfaOn:c.on,xfaOff:c.off,"aria-label":cr(l),"aria-required":!1}};return r&&(f.attributes.name=r),ct(l)&&(f.attributes["aria-required"]=!0,f.attributes.required=!0),l9.success({name:"label",attributes:{class:["xfaLabel"]},children:[f]})}}class cM extends oC{constructor(t){super(o2,"choiceList",!0),this.commitOn=lQ(t.commitOn,["select","exit"]),this.id=t.id||"",this.open=lQ(t.open,["userControl","always","multiSelect","onEntry"]),this.textEntry=lY({data:t.textEntry,defaultValue:0,validate:t=>1===t}),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}[lj](t){let a=o$(this,"border","margin"),i=this[ls]()[ls](),r={fontSize:`calc(${i.font?.size||10}px * var(--total-scale-factor))`},s=[];if(i.items.children.length>0){let t=i.items,a=0,n=0;2===t.children.length&&(n=1-(a=t.children[0].save));let l=t.children[a][lj]().html,o=t.children[n][lj]().html,c=!1,h=i.value?.[lU]()||"";for(let t=0,a=l.length;t<a;t++){let a={name:"option",attributes:{value:o[t]||l[t],style:r},value:l[t]};o[t]===h&&(a.attributes.selected=c=!0),s.push(a)}c||s.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}let n={class:["xfaSelect"],fieldId:i[lz],dataId:i[nJ]?.[lz]||i[lz],style:a,"aria-label":cr(i),"aria-required":!1};return ct(i)&&(n["aria-required"]=!0,n.required=!0),"multiSelect"===this.open&&(n.multiple=!0),l9.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:s,attributes:n}]})}}class cT extends oC{constructor(t){super(o2,"color",!0),this.cSpace=lQ(t.cSpace,["SRGB"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.value=t.value?function(t,a=[0,0,0]){let[i,r,s]=a;if(!t)return{r:i,g:r,b:s};let n=t.split(",",3).map(t=>q(parseInt(t.trim(),10),0,255)).map(t=>isNaN(t)?0:t);return n.length<3||([i,r,s]=n),{r:i,g:r,b:s}}(t.value):"",this.extras=null}[lo](){return!1}[lH](){return this.value?R.makeHexColor(this.value.r,this.value.g,this.value.b):null}}class cR extends oC{constructor(t){super(o2,"comb"),this.id=t.id||"",this.numberOfCells=lY({data:t.numberOfCells,defaultValue:0,validate:t=>t>=0}),this.use=t.use||"",this.usehref=t.usehref||""}}class cN extends oC{constructor(t){super(o2,"connect",!0),this.connection=t.connection||"",this.id=t.id||"",this.ref=t.ref||"",this.usage=lQ(t.usage,["exportAndImport","exportOnly","importOnly"]),this.use=t.use||"",this.usehref=t.usehref||"",this.picture=null}}class cD extends oC{constructor(t){super(o2,"contentArea",!0),this.h=l1(t.h),this.id=t.id||"",this.name=t.name||"",this.relevant=l2(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.w=l1(t.w),this.x=l1(t.x,"0pt"),this.y=l1(t.y,"0pt"),this.desc=null,this.extras=null}[lj](t){let a={left:oO(this.x),top:oO(this.y),width:oO(this.w),height:oO(this.h)},i=["xfaContentarea"];return oW(this)&&i.push("xfaPrintOnly"),l9.success({name:"div",children:[],attributes:{style:a,class:i,id:this[lz]}})}}class cO extends oC{constructor(t){super(o2,"corner",!0),this.id=t.id||"",this.inverted=lY({data:t.inverted,defaultValue:0,validate:t=>1===t}),this.join=lQ(t.join,["square","round"]),this.presence=lQ(t.presence,["visible","hidden","inactive","invisible"]),this.radius=l1(t.radius),this.stroke=lQ(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=l1(t.thickness,"0.5pt"),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[lH](){let t=o$(this,"visibility");return t.radius=oO("square"===this.join?0:this.radius),t}}class cP extends oF{constructor(t){super(o2,"date"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[n1](){let t=this[nY].trim();this[nY]=t?new Date(t):null}[lj](t){return cs(this[nY]?this[nY].toString():"")}}class cE extends oF{constructor(t){super(o2,"dateTime"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[n1](){let t=this[nY].trim();this[nY]=t?new Date(t):null}[lj](t){return cs(this[nY]?this[nY].toString():"")}}class c_ extends oC{constructor(t){super(o2,"dateTimeEdit",!0),this.hScrollPolicy=lQ(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.picker=lQ(t.picker,["host","none"]),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[lj](t){let a=o$(this,"border","font","margin"),i=this[ls]()[ls](),r={name:"input",attributes:{type:"text",fieldId:i[lz],dataId:i[nJ]?.[lz]||i[lz],class:["xfaTextfield"],style:a,"aria-label":cr(i),"aria-required":!1}};return ct(i)&&(r.attributes["aria-required"]=!0,r.attributes.required=!0),l9.success({name:"label",attributes:{class:["xfaLabel"]},children:[r]})}}class cL extends oF{constructor(t){super(o2,"decimal"),this.fracDigits=lY({data:t.fracDigits,defaultValue:2,validate:t=>!0}),this.id=t.id||"",this.leadDigits=lY({data:t.leadDigits,defaultValue:-1,validate:t=>!0}),this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[n1](){let t=parseFloat(this[nY].trim());this[nY]=isNaN(t)?null:t}[lj](t){return cs(null!==this[nY]?this[nY].toString():"")}}class cU extends oC{constructor(t){super(o2,"defaultUi",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}}class cq extends oC{constructor(t){super(o2,"desc",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new oS,this.date=new oS,this.dateTime=new oS,this.decimal=new oS,this.exData=new oS,this.float=new oS,this.image=new oS,this.integer=new oS,this.text=new oS,this.time=new oS}}class cj extends oM{constructor(t){super(o2,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}}class c$ extends oC{constructor(t){super(o2,"digestMethods",!0),this.id=t.id||"",this.type=lQ(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.digestMethod=new oS}}class cH extends oC{constructor(t){super(o2,"draw",!0),this.anchorType=lQ(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=lY({data:t.colSpan,defaultValue:1,validate:t=>t>=1||-1===t}),this.h=t.h?l1(t.h):"",this.hAlign=lQ(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.locale=t.locale||"",this.maxH=l1(t.maxH,"0pt"),this.maxW=l1(t.maxW,"0pt"),this.minH=l1(t.minH,"0pt"),this.minW=l1(t.minW,"0pt"),this.name=t.name||"",this.presence=lQ(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=l2(t.relevant),this.rotate=lY({data:t.rotate,defaultValue:0,validate:t=>t%90==0}),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?l1(t.w):"",this.x=l1(t.x,"0pt"),this.y=l1(t.y,"0pt"),this.assist=null,this.border=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.value=null,this.setProperty=new oS}[l_](t){o4(this,t)}[lj](t){if(ca(this),"hidden"===this.presence||"inactive"===this.presence)return l9.EMPTY;oq(this),this[lT]();let a=this.w,i=this.h,{w:r,h:s,isBroken:n}=oL(this,t);if(r&&""===this.w){if(n&&this[lr]()[ly]())return this[lM](),l9.FAILURE;this.w=r}if(s&&""===this.h&&(this.h=s),cn(this),!o0(this,t))return this.w=a,this.h=i,this[lM](),l9.FAILURE;cl(this);let l=o$(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");oE(this,l),l.margin&&(l.padding=l.margin,delete l.margin);let o=["xfaDraw"];this.font&&o.push("xfaFont"),oW(this)&&o.push("xfaPrintOnly");let c={style:l,id:this[lz],class:o};this.name&&(c.xfaName=this.name);let h={name:"div",attributes:c,children:[]};ci(this,c);let u=oU(this,h,t),d=this.value?this.value[lj](t).html:null;return null===d||(h.children.push(d),oX(this,l,d)),this.w=a,this.h=i,this[lM](),l9.success(oH(this,h),u)}}class cz extends oC{constructor(t){super(o2,"edge",!0),this.cap=lQ(t.cap,["square","butt","round"]),this.id=t.id||"",this.presence=lQ(t.presence,["visible","hidden","inactive","invisible"]),this.stroke=lQ(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=l1(t.thickness,"0.5pt"),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[lH](){let t=o$(this,"visibility");if(Object.assign(t,{linecap:this.cap,width:oO(this.thickness),color:this.color?this.color[lH]():"#000000",style:""}),"visible"!==this.presence)t.style="none";else switch(this.stroke){case"solid":t.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":t.style="dashed";break;case"dotted":t.style="dotted";break;case"embossed":t.style="ridge";break;case"etched":t.style="groove";break;case"lowered":t.style="inset";break;case"raised":t.style="outset"}return t}}class cG extends oM{constructor(t){super(o2,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}}class cW extends oC{constructor(t){super(o2,"encodings",!0),this.id=t.id||"",this.type=lQ(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.encoding=new oS}}class cV extends oC{constructor(t){super(o2,"encrypt",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=null}}class cX extends oC{constructor(t){super(o2,"encryptData",!0),this.id=t.id||"",this.operation=lQ(t.operation,["encrypt","decrypt"]),this.target=t.target||"",this.use=t.use||"",this.usehref=t.usehref||"",this.filter=null,this.manifest=null}}class cK extends oC{constructor(t){super(o2,"encryption",!0),this.id=t.id||"",this.type=lQ(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=new oS}}class cY extends oM{constructor(t){super(o2,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}}class cJ extends oC{constructor(t){super(o2,"encryptionMethods",!0),this.id=t.id||"",this.type=lQ(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.encryptionMethod=new oS}}class cZ extends oC{constructor(t){super(o2,"event",!0),this.activity=lQ(t.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"]),this.id=t.id||"",this.listen=lQ(t.listen,["refOnly","refAndDescendents"]),this.name=t.name||"",this.ref=t.ref||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}}class cQ extends oF{constructor(t){super(o2,"exData"),this.contentType=t.contentType||"",this.href=t.href||"",this.id=t.id||"",this.maxLength=lY({data:t.maxLength,defaultValue:-1,validate:t=>t>=-1}),this.name=t.name||"",this.rid=t.rid||"",this.transferEncoding=lQ(t.transferEncoding,["none","base64","package"]),this.use=t.use||"",this.usehref=t.usehref||""}[ld](){return"text/html"===this.contentType}[lS](t){return("text/html"===this.contentType&&t[lv]===lW.xhtml.id||"text/xml"===this.contentType)&&(this[nY]=t,!0)}[lj](t){return"text/html"===this.contentType&&this[nY]?this[nY][lj](t):l9.EMPTY}}class c1 extends oC{constructor(t){super(o2,"exObject",!0),this.archive=t.archive||"",this.classId=t.classId||"",this.codeBase=t.codeBase||"",this.codeType=t.codeType||"",this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.boolean=new oS,this.date=new oS,this.dateTime=new oS,this.decimal=new oS,this.exData=new oS,this.exObject=new oS,this.float=new oS,this.image=new oS,this.integer=new oS,this.text=new oS,this.time=new oS}}class c0 extends oC{constructor(t){super(o2,"exclGroup",!0),this.access=lQ(t.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=t.accessKey||"",this.anchorType=lQ(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=lY({data:t.colSpan,defaultValue:1,validate:t=>t>=1||-1===t}),this.h=t.h?l1(t.h):"",this.hAlign=lQ(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.layout=lQ(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.maxH=l1(t.maxH,"0pt"),this.maxW=l1(t.maxW,"0pt"),this.minH=l1(t.minH,"0pt"),this.minW=l1(t.minW,"0pt"),this.name=t.name||"",this.presence=lQ(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=l2(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?l1(t.w):"",this.x=l1(t.x,"0pt"),this.y=l1(t.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.margin=null,this.para=null,this.traversal=null,this.validate=null,this.connect=new oS,this.event=new oS,this.field=new oS,this.setProperty=new oS}[lf](){return!0}[lo](){return!0}[l_](t){for(let a of this.field.children){if(!a.value){let t=new h9({});a[nH](t),a.value=t}a.value[l_](t)}}[ly](){return this.layout.endsWith("-tb")&&0===this[nQ].attempt&&this[nQ].numberInLine>0||this[ls]()[ly]()}[lb](){let t=this[lr]();return!!t[lb]()&&(void 0!==this[nQ]._isSplittable?this[nQ]._isSplittable:"position"===this.layout||this.layout.includes("row")?(this[nQ]._isSplittable=!1,!1):(!t.layout?.endsWith("-tb")||0===t[nQ].numberInLine)&&(this[nQ]._isSplittable=!0,!0))}[n0](){return oZ(this)}[n$](t,a){oQ(this,t,a)}[n5](){return o1(this)}[lj](t){if(ca(this),"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return l9.EMPTY;oq(this);let a=[],i={id:this[lz],class:[]};oG(this,i.class),this[nQ]||=Object.create(null),Object.assign(this[nQ],{children:a,attributes:i,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,t.width),height:Math.min(this.h||1/0,t.height)},width:0,height:0,prevHeight:0,currentWidth:0});let r=this[lb]();if(r||cn(this),!o0(this,t))return l9.FAILURE;let s=new Set(["field"]);if(this.layout.includes("row")){let t=this[lr]().columnWidths;Array.isArray(t)&&t.length>0&&(this[nQ].columnWidths=t,this[nQ].currentColumn=0)}let n=o$(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),l=["xfaExclgroup"],o=oj(this);o&&l.push(o),oW(this)&&l.push("xfaPrintOnly"),i.style=n,i.class=l,this.name&&(i.xfaName=this.name),this[lT]();let c="lr-tb"===this.layout||"rl-tb"===this.layout,h=c?2:1;for(;this[nQ].attempt<h;this[nQ].attempt++){c&&1===this[nQ].attempt&&(this[nQ].numberInLine=0);let t=this[nz]({filter:s,include:!0});if(t.success)break;if(t.isBreak())return this[lM](),t;if(c&&0===this[nQ].attempt&&0===this[nQ].numberInLine&&!this[ln]()[nQ].noLayoutFailure){this[nQ].attempt=h;break}}if(this[lM](),r||cl(this),this[nQ].attempt===h)return r||delete this[nQ],l9.FAILURE;let u=0,d=0;this.margin&&(u=this.margin.leftInset+this.margin.rightInset,d=this.margin.topInset+this.margin.bottomInset);let f=Math.max(this[nQ].width+u,this.w||0),g=Math.max(this[nQ].height+d,this.h||0),p=[this.x,this.y,f,g];return""===this.w&&(n.width=oO(f)),""===this.h&&(n.height=oO(g)),ci(this,i),delete this[nQ],l9.success(oH(this,{name:"div",attributes:i,children:a}),p)}}class c2 extends oC{constructor(t){super(o2,"execute"),this.connection=t.connection||"",this.executeType=lQ(t.executeType,["import","remerge"]),this.id=t.id||"",this.runAt=lQ(t.runAt,["client","both","server"]),this.use=t.use||"",this.usehref=t.usehref||""}}class c9 extends oC{constructor(t){super(o2,"extras",!0),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new oS,this.date=new oS,this.dateTime=new oS,this.decimal=new oS,this.exData=new oS,this.extras=new oS,this.float=new oS,this.image=new oS,this.integer=new oS,this.text=new oS,this.time=new oS}}class c5 extends oC{constructor(t){super(o2,"field",!0),this.access=lQ(t.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=t.accessKey||"",this.anchorType=lQ(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=lY({data:t.colSpan,defaultValue:1,validate:t=>t>=1||-1===t}),this.h=t.h?l1(t.h):"",this.hAlign=lQ(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.locale=t.locale||"",this.maxH=l1(t.maxH,"0pt"),this.maxW=l1(t.maxW,"0pt"),this.minH=l1(t.minH,"0pt"),this.minW=l1(t.minW,"0pt"),this.name=t.name||"",this.presence=lQ(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=l2(t.relevant),this.rotate=lY({data:t.rotate,defaultValue:0,validate:t=>t%90==0}),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?l1(t.w):"",this.x=l1(t.x,"0pt"),this.y=l1(t.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.format=null,this.items=new oS(2),this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.validate=null,this.value=null,this.bindItems=new oS,this.connect=new oS,this.event=new oS,this.setProperty=new oS}[lf](){return!0}[l_](t){o4(this,t)}[lj](t){if(ca(this),!this.ui){let t;switch(this.ui=new h0({}),this.ui[ll]=this[ll],this[nH](this.ui),this.items.children.length){case 0:t=new hK({}),this.ui.textEdit=t;break;case 1:t=new cF({}),this.ui.checkButton=t;break;case 2:t=new cM({}),this.ui.choiceList=t}this.ui[nH](t)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return l9.EMPTY;this.caption&&delete this.caption[nQ],this[lT]();let a=this.caption?this.caption[lj](t).html:null,i=this.w,r=this.h,s=0,n=0;this.margin&&(s=this.margin.leftInset+this.margin.rightInset,n=this.margin.topInset+this.margin.bottomInset);let l=null;if(""===this.w||""===this.h){let a=null,i=null,r=0,o=0;if(this.ui.checkButton)r=o=this.ui.checkButton.size;else{let{w:a,h:i}=oL(this,t);null!==a?(r=a,o=i):o=function(t,a=!1){let i=null;if(t){let a=lK(t.typeface),r=t[ll].fontFinder.find(a);i=l3(t,r)}if(!i)return{lineHeight:12,lineGap:2,lineNoGap:10};let r=t.size||10,s=i.lineHeight?Math.max(1.2*!a,i.lineHeight):1.2,n=void 0===i.lineGap?.2:i.lineGap;return{lineHeight:s*r,lineGap:n*r,lineNoGap:Math.max(1,s-n)*r}}(this.font,!0).lineNoGap}if(r+=(l=o7(this.ui[n4]())).w,o+=l.h,this.caption){let{w:s,h:n,isBroken:l}=this.caption[n4](t);if(l&&this[lr]()[ly]())return this[lM](),l9.FAILURE;switch(a=s,i=n,this.caption.placement){case"left":case"right":case"inline":a+=r;break;case"top":case"bottom":i+=o}}else a=r,i=o;a&&""===this.w&&(a+=s,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<a?a:this.minW)),i&&""===this.h&&(i+=n,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<i?i:this.minH))}if(this[lM](),oq(this),cn(this),!o0(this,t))return this.w=i,this.h=r,this[lM](),l9.FAILURE;cl(this);let o=o$(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");oE(this,o);let c=["xfaField"];this.font&&c.push("xfaFont"),oW(this)&&c.push("xfaPrintOnly");let h={style:o,id:this[lz],class:c};o.margin&&(o.padding=o.margin,delete o.margin),oG(this,c),this.name&&(h.xfaName=this.name);let u=[],d={name:"div",attributes:h,children:u};ci(this,h);let f=this.border?this.border[lH]():null,g=oU(this,d,t),p=this.ui[lj]().html;if(!p)return Object.assign(o,f),l9.success(oH(this,d),g);this[lL]&&(p.children?.[0]?p.children[0].attributes.tabindex=this[lL]:p.attributes.tabindex=this[lL]),p.attributes.style||=Object.create(null);let m=null;if(this.ui.button?(1===p.children.length&&([m]=p.children.splice(0,1)),Object.assign(p.attributes.style,f)):Object.assign(o,f),u.push(p),this.value){if(this.ui.imageEdit)p.children.push(this.value[lj]().html);else if(!this.ui.button){let t="";if(this.value.exData)t=this.value.exData[lU]();else if(this.value.text)t=this.value.text[n4]();else{let a=this.value[lj]().html;null!==a&&(t=a.children[0].value)}this.ui.textEdit&&this.value.text?.maxChars&&(p.children[0].attributes.maxLength=this.value.text.maxChars),t&&(this.ui.numericEdit&&(t=isNaN(t=parseFloat(t))?"":t.toString()),"textarea"===p.children[0].name?p.children[0].attributes.textContent=t:p.children[0].attributes.value=t)}}if(!this.ui.imageEdit&&p.children?.[0]&&this.h){l=l||o7(this.ui[n4]());let a=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){(a=this.caption.reserve)<=0&&(a=this.caption[n4](t).h);let i=this.h-a-n-l.h;p.children[0].attributes.style.height=oO(i)}else p.children[0].attributes.style.height="100%"}if(m&&p.children.push(m),!a)return p.attributes.class&&p.attributes.class.push("xfaLeft"),this.w=i,this.h=r,l9.success(oH(this,d),g);if(this.ui.button)return o.padding&&delete o.padding,"div"===a.name&&(a.name="span"),p.children.push(a),l9.success(d,g);switch(this.ui.checkButton&&(a.attributes.class[0]="xfaCaptionForCheckButton"),p.attributes.class||=[],p.children.splice(0,0,a),this.caption.placement){case"left":case"inline":p.attributes.class.push("xfaLeft");break;case"right":p.attributes.class.push("xfaRight");break;case"top":p.attributes.class.push("xfaTop");break;case"bottom":p.attributes.class.push("xfaBottom")}return this.w=i,this.h=r,l9.success(oH(this,d),g)}}class c3 extends oC{constructor(t){super(o2,"fill",!0),this.id=t.id||"",this.presence=lQ(t.presence,["visible","hidden","inactive","invisible"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null,this.linear=null,this.pattern=null,this.radial=null,this.solid=null,this.stipple=null}[lH](){let t=this[ls](),a=t[ls]()[ls](),i=Object.create(null),r="color",s=r;for(let n of(t instanceof cw&&(r="background-color",s="background",a instanceof h0&&(i.backgroundColor="white")),(t instanceof hN||t instanceof cu)&&(r=s="fill",i.fill="white"),Object.getOwnPropertyNames(this))){if("extras"===n||"color"===n)continue;let t=this[n];if(!(t instanceof oC))continue;let a=t[lH](this.color);return a&&(i[a.startsWith("#")?r:s]=a),i}if(this.color?.value){let t=this.color[lH]();i[t.startsWith("#")?r:s]=t}return i}}class c6 extends oC{constructor(t){super(o2,"filter",!0),this.addRevocationInfo=lQ(t.addRevocationInfo,["","required","optional","none"]),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.version=lY({data:this.version,defaultValue:5,validate:t=>t>=1&&t<=5}),this.appearanceFilter=null,this.certificates=null,this.digestMethods=null,this.encodings=null,this.encryptionMethods=null,this.handler=null,this.lockDocument=null,this.mdp=null,this.reasons=null,this.timeStamp=null}}class c7 extends oF{constructor(t){super(o2,"float"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[n1](){let t=parseFloat(this[nY].trim());this[nY]=isNaN(t)?null:t}[lj](t){return cs(null!==this[nY]?this[nY].toString():"")}}class c8 extends oC{constructor(t){super(o2,"font",!0),this.baselineShift=l1(t.baselineShift),this.fontHorizontalScale=lJ({data:t.fontHorizontalScale,defaultValue:100,validate:t=>t>=0}),this.fontVerticalScale=lJ({data:t.fontVerticalScale,defaultValue:100,validate:t=>t>=0}),this.id=t.id||"",this.kerningMode=lQ(t.kerningMode,["none","pair"]),this.letterSpacing=l1(t.letterSpacing,"0"),this.lineThrough=lY({data:t.lineThrough,defaultValue:0,validate:t=>1===t||2===t}),this.lineThroughPeriod=lQ(t.lineThroughPeriod,["all","word"]),this.overline=lY({data:t.overline,defaultValue:0,validate:t=>1===t||2===t}),this.overlinePeriod=lQ(t.overlinePeriod,["all","word"]),this.posture=lQ(t.posture,["normal","italic"]),this.size=l1(t.size,"10pt"),this.typeface=t.typeface||"Courier",this.underline=lY({data:t.underline,defaultValue:0,validate:t=>1===t||2===t}),this.underlinePeriod=lQ(t.underlinePeriod,["all","word"]),this.use=t.use||"",this.usehref=t.usehref||"",this.weight=lQ(t.weight,["normal","bold"]),this.extras=null,this.fill=null}[nG](t){super[nG](t),this[ll].usedTypefaces.add(this.typeface)}[lH](){let t=o$(this,"fill"),a=t.color;return a&&("#000000"===a?delete t.color:a.startsWith("#")||(t.background=a,t.backgroundClip="text",t.color="transparent")),this.baselineShift&&(t.verticalAlign=oO(this.baselineShift)),t.fontKerning="none"===this.kerningMode?"none":"normal",t.letterSpacing=oO(this.letterSpacing),0!==this.lineThrough&&(t.textDecoration="line-through",2===this.lineThrough&&(t.textDecorationStyle="double")),0!==this.overline&&(t.textDecoration="overline",2===this.overline&&(t.textDecorationStyle="double")),t.fontStyle=this.posture,t.fontSize=oO(.99*this.size),oK(this,this,this[ll].fontFinder,t),0!==this.underline&&(t.textDecoration="underline",2===this.underline&&(t.textDecorationStyle="double")),t.fontWeight=this.weight,t}}class c4 extends oC{constructor(t){super(o2,"format",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.picture=null}}class he extends oT{constructor(t){super(o2,"handler"),this.id=t.id||"",this.type=lQ(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}}class ht extends oC{constructor(t){super(o2,"hyphenation"),this.excludeAllCaps=lY({data:t.excludeAllCaps,defaultValue:0,validate:t=>1===t}),this.excludeInitialCap=lY({data:t.excludeInitialCap,defaultValue:0,validate:t=>1===t}),this.hyphenate=lY({data:t.hyphenate,defaultValue:0,validate:t=>1===t}),this.id=t.id||"",this.pushCharacterCount=lY({data:t.pushCharacterCount,defaultValue:3,validate:t=>t>=0}),this.remainCharacterCount=lY({data:t.remainCharacterCount,defaultValue:3,validate:t=>t>=0}),this.use=t.use||"",this.usehref=t.usehref||"",this.wordCharacterCount=lY({data:t.wordCharacterCount,defaultValue:7,validate:t=>t>=0})}}class ha extends oT{constructor(t){super(o2,"image"),this.aspect=lQ(t.aspect,["fit","actual","height","none","width"]),this.contentType=t.contentType||"",this.href=t.href||"",this.id=t.id||"",this.name=t.name||"",this.transferEncoding=lQ(t.transferEncoding,["base64","none","package"]),this.use=t.use||"",this.usehref=t.usehref||""}[lj](){let t;if(this.contentType&&!o3.has(this.contentType.toLowerCase()))return l9.EMPTY;let a=this[ll].images?.get(this.href);if(!a&&(this.href||!this[nY])||(a||"base64"!==this.transferEncoding||(a=Uint8Array.fromBase64(this[nY])),!a))return l9.EMPTY;if(!this.contentType){for(let[t,i]of o6)if(a.length>t.length&&t.every((t,i)=>t===a[i])){this.contentType=i;break}if(!this.contentType)return l9.EMPTY}let i=new Blob([a],{type:this.contentType});switch(this.aspect){case"fit":case"actual":break;case"height":t={height:"100%",objectFit:"fill"};break;case"none":t={width:"100%",height:"100%",objectFit:"fill"};break;case"width":t={width:"100%",objectFit:"fill"}}let r=this[ls]();return l9.success({name:"img",attributes:{class:["xfaImage"],style:t,src:URL.createObjectURL(i),alt:r?cr(r[ls]()):null}})}}class hi extends oC{constructor(t){super(o2,"imageEdit",!0),this.data=lQ(t.data,["link","embed"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}[lj](t){return"embed"===this.data?l9.success({name:"div",children:[],attributes:{}}):l9.EMPTY}}class hr extends oF{constructor(t){super(o2,"integer"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[n1](){let t=parseInt(this[nY].trim(),10);this[nY]=isNaN(t)?null:t}[lj](t){return cs(null!==this[nY]?this[nY].toString():"")}}class hs extends oC{constructor(t){super(o2,"issuers",!0),this.id=t.id||"",this.type=lQ(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=new oS}}class hn extends oC{constructor(t){super(o2,"items",!0),this.id=t.id||"",this.name=t.name||"",this.presence=lQ(t.presence,["visible","hidden","inactive","invisible"]),this.ref=t.ref||"",this.save=lY({data:t.save,defaultValue:0,validate:t=>1===t}),this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new oS,this.date=new oS,this.dateTime=new oS,this.decimal=new oS,this.exData=new oS,this.float=new oS,this.image=new oS,this.integer=new oS,this.text=new oS,this.time=new oS}[lj](){let t=[];for(let a of this[lt]())t.push(a[lU]());return l9.success(t)}}class hl extends oC{constructor(t){super(o2,"keep",!0),this.id=t.id||"";const a=["none","contentArea","pageArea"];this.intact=lQ(t.intact,a),this.next=lQ(t.next,a),this.previous=lQ(t.previous,a),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}}class ho extends oC{constructor(t){super(o2,"keyUsage");const a=["","yes","no"];this.crlSign=lQ(t.crlSign,a),this.dataEncipherment=lQ(t.dataEncipherment,a),this.decipherOnly=lQ(t.decipherOnly,a),this.digitalSignature=lQ(t.digitalSignature,a),this.encipherOnly=lQ(t.encipherOnly,a),this.id=t.id||"",this.keyAgreement=lQ(t.keyAgreement,a),this.keyCertSign=lQ(t.keyCertSign,a),this.keyEncipherment=lQ(t.keyEncipherment,a),this.nonRepudiation=lQ(t.nonRepudiation,a),this.type=lQ(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}}class hc extends oC{constructor(t){super(o2,"line",!0),this.hand=lQ(t.hand,["even","left","right"]),this.id=t.id||"",this.slope=lQ(t.slope,["\\","/"]),this.use=t.use||"",this.usehref=t.usehref||"",this.edge=null}[lj](){let t=this[ls]()[ls](),a=this.edge||new cz({}),i=a[lH](),r=Object.create(null),s="visible"===a.presence?a.thickness:0;r.strokeWidth=oO(s),r.stroke=i.color;let n,l,o,c,h="100%",u="100%";t.w<=s?([n,l,o,c]=["50%",0,"50%","100%"],h=r.strokeWidth):t.h<=s?([n,l,o,c]=[0,"50%","100%","50%"],u=r.strokeWidth):"\\"===this.slope?[n,l,o,c]=[0,0,"100%","100%"]:[n,l,o,c]=[0,"100%","100%",0];let d={name:"svg",children:[{name:"line",attributes:{xmlns:o9,x1:n,y1:l,x2:o,y2:c,style:r}}],attributes:{xmlns:o9,width:h,height:u,style:{overflow:"visible"}}};return o8(t)?l9.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[d]}):(d.attributes.style.position="absolute",l9.success(d))}}class hh extends oC{constructor(t){super(o2,"linear",!0),this.id=t.id||"",this.type=lQ(t.type,["toRight","toBottom","toLeft","toTop"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[lH](t){return t=t?t[lH]():"#FFFFFF",`linear-gradient(${this.type.replace(/([RBLT])/," $1").toLowerCase()}, ${t}, ${this.color?this.color[lH]():"#000000"})`}}class hu extends oF{constructor(t){super(o2,"lockDocument"),this.id=t.id||"",this.type=lQ(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}[n1](){this[nY]=lQ(this[nY],["auto","0","1"])}}class hd extends oC{constructor(t){super(o2,"manifest",!0),this.action=lQ(t.action,["include","all","exclude"]),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.ref=new oS}}class hf extends oC{constructor(t){super(o2,"margin",!0),this.bottomInset=l1(t.bottomInset,"0"),this.id=t.id||"",this.leftInset=l1(t.leftInset,"0"),this.rightInset=l1(t.rightInset,"0"),this.topInset=l1(t.topInset,"0"),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[lH](){return{margin:oO(this.topInset)+" "+oO(this.rightInset)+" "+oO(this.bottomInset)+" "+oO(this.leftInset)}}}class hg extends oC{constructor(t){super(o2,"mdp"),this.id=t.id||"",this.permissions=lY({data:t.permissions,defaultValue:2,validate:t=>1===t||3===t}),this.signatureType=lQ(t.signatureType,["filler","author"]),this.use=t.use||"",this.usehref=t.usehref||""}}class hp extends oC{constructor(t){super(o2,"medium"),this.id=t.id||"",this.imagingBBox=function(t){if(!t)return{x:-1,y:-1,width:-1,height:-1};let a=t.split(",",4).map(t=>l1(t.trim(),"-1"));if(a.length<4||a[2]<0||a[3]<0)return{x:-1,y:-1,width:-1,height:-1};let[i,r,s,n]=a;return{x:i,y:r,width:s,height:n}}(t.imagingBBox),this.long=l1(t.long),this.orientation=lQ(t.orientation,["portrait","landscape"]),this.short=l1(t.short),this.stock=t.stock||"",this.trayIn=lQ(t.trayIn,["auto","delegate","pageFront"]),this.trayOut=lQ(t.trayOut,["auto","delegate"]),this.use=t.use||"",this.usehref=t.usehref||""}}class hm extends oC{constructor(t){super(o2,"message",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.text=new oS}}class hb extends oC{constructor(t){super(o2,"numericEdit",!0),this.hScrollPolicy=lQ(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[lj](t){let a=o$(this,"border","font","margin"),i=this[ls]()[ls](),r={name:"input",attributes:{type:"text",fieldId:i[lz],dataId:i[nJ]?.[lz]||i[lz],class:["xfaTextfield"],style:a,"aria-label":cr(i),"aria-required":!1}};return ct(i)&&(r.attributes["aria-required"]=!0,r.attributes.required=!0),l9.success({name:"label",attributes:{class:["xfaLabel"]},children:[r]})}}class hy extends oC{constructor(t){super(o2,"occur",!0),this.id=t.id||"",this.initial=""!==t.initial?lY({data:t.initial,defaultValue:"",validate:t=>!0}):"",this.max=""!==t.max?lY({data:t.max,defaultValue:-1,validate:t=>!0}):"",this.min=""!==t.min?lY({data:t.min,defaultValue:1,validate:t=>!0}):"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[nG](){let t=this[ls](),a=this.min;""===this.min&&(this.min=t instanceof hv||t instanceof hA?0:1),""===this.max&&(this.max=""===a?t instanceof hv||t instanceof hA?-1:1:this.min),-1!==this.max&&this.max<this.min&&(this.max=this.min),""===this.initial&&(this.initial=t instanceof hV?1:this.min)}}class hw extends oT{constructor(t){super(o2,"oid"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class hx extends oC{constructor(t){super(o2,"oids",!0),this.id=t.id||"",this.type=lQ(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.oid=new oS}}class hk extends oC{constructor(t){super(o2,"overflow"),this.id=t.id||"",this.leader=t.leader||"",this.target=t.target||"",this.trailer=t.trailer||"",this.use=t.use||"",this.usehref=t.usehref||""}[n4](){if(!this[nQ]){let t=this[ls](),a=this[ln](),i=a[lO](this.target,t),r=a[lO](this.leader,t),s=a[lO](this.trailer,t);this[nQ]={target:i?.[0]||null,leader:r?.[0]||null,trailer:s?.[0]||null,addLeader:!1,addTrailer:!1}}return this[nQ]}}class hv extends oC{constructor(t){super(o2,"pageArea",!0),this.blankOrNotBlank=lQ(t.blankOrNotBlank,["any","blank","notBlank"]),this.id=t.id||"",this.initialNumber=lY({data:t.initialNumber,defaultValue:1,validate:t=>!0}),this.name=t.name||"",this.numbered=lY({data:t.numbered,defaultValue:1,validate:t=>!0}),this.oddOrEven=lQ(t.oddOrEven,["any","even","odd"]),this.pagePosition=lQ(t.pagePosition,["any","first","last","only","rest"]),this.relevant=l2(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.desc=null,this.extras=null,this.medium=null,this.occur=null,this.area=new oS,this.contentArea=new oS,this.draw=new oS,this.exclGroup=new oS,this.field=new oS,this.subform=new oS}[lx](){return this[nQ]?!this.occur||-1===this.occur.max||this[nQ].numberOfUse<this.occur.max:(this[nQ]={numberOfUse:0},!0)}[nW](){delete this[nQ]}[li](){this[nQ]||={numberOfUse:0};let t=this[ls]();return"orderedOccurrence"===t.relation&&this[lx]()?(this[nQ].numberOfUse+=1,this):t[li]()}[n5](){return this[nQ].space||{width:0,height:0}}[lj](){this[nQ]||={numberOfUse:1};let t=[];this[nQ].children=t;let a=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){if(a.width=oO(this.medium.short),a.height=oO(this.medium.long),this[nQ].space={width:this.medium.short,height:this.medium.long},"landscape"===this.medium.orientation){let t=a.width;a.width=a.height,a.height=t,this[nQ].space={width:this.medium.long,height:this.medium.short}}}else f("XFA - No medium specified in pageArea: please file a bug.");return this[nz]({filter:new Set(["area","draw","field","subform"]),include:!0}),this[nz]({filter:new Set(["contentArea"]),include:!0}),l9.success({name:"div",children:t,attributes:{class:["xfaPage"],id:this[lz],style:a,xfaName:this.name}})}}class hA extends oC{constructor(t){super(o2,"pageSet",!0),this.duplexImposition=lQ(t.duplexImposition,["longEdge","shortEdge"]),this.id=t.id||"",this.name=t.name||"",this.relation=lQ(t.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]),this.relevant=l2(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.occur=null,this.pageArea=new oS,this.pageSet=new oS}[nW](){for(let t of this.pageArea.children)t[nW]();for(let t of this.pageSet.children)t[nW]()}[lx](){return!this.occur||-1===this.occur.max||this[nQ].numberOfUse<this.occur.max}[li](){if(this[nQ]||={numberOfUse:1,pageIndex:-1,pageSetIndex:-1},"orderedOccurrence"===this.relation){if(this[nQ].pageIndex+1<this.pageArea.children.length)return this[nQ].pageIndex+=1,this.pageArea.children[this[nQ].pageIndex][li]();if(this[nQ].pageSetIndex+1<this.pageSet.children.length)return this[nQ].pageSetIndex+=1,this.pageSet.children[this[nQ].pageSetIndex][li]();if(this[lx]())return this[nQ].numberOfUse+=1,this[nQ].pageIndex=-1,this[nQ].pageSetIndex=-1,this[li]();let t=this[ls]();return t instanceof hA?t[li]():(this[nW](),this[li]())}let t=this[ln]()[nQ].pageNumber,a=t%2==0?"even":"odd",i=0===t?"first":"rest",r=this.pageArea.children.find(t=>t.oddOrEven===a&&t.pagePosition===i);return r||(r=this.pageArea.children.find(t=>"any"===t.oddOrEven&&t.pagePosition===i))?r:(r=this.pageArea.children.find(t=>"any"===t.oddOrEven&&"any"===t.pagePosition))||this.pageArea.children[0]}}class hC extends oC{constructor(t){super(o2,"para",!0),this.hAlign=lQ(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.lineHeight=t.lineHeight?l1(t.lineHeight,"0pt"):"",this.marginLeft=t.marginLeft?l1(t.marginLeft,"0pt"):"",this.marginRight=t.marginRight?l1(t.marginRight,"0pt"):"",this.orphans=lY({data:t.orphans,defaultValue:0,validate:t=>t>=0}),this.preserve=t.preserve||"",this.radixOffset=t.radixOffset?l1(t.radixOffset,"0pt"):"",this.spaceAbove=t.spaceAbove?l1(t.spaceAbove,"0pt"):"",this.spaceBelow=t.spaceBelow?l1(t.spaceBelow,"0pt"):"",this.tabDefault=t.tabDefault?l1(this.tabDefault):"",this.tabStops=(t.tabStops||"").trim().split(/\s+/).map((t,a)=>a%2==1?l1(t):t),this.textIndent=t.textIndent?l1(t.textIndent,"0pt"):"",this.use=t.use||"",this.usehref=t.usehref||"",this.vAlign=lQ(t.vAlign,["top","bottom","middle"]),this.widows=lY({data:t.widows,defaultValue:0,validate:t=>t>=0}),this.hyphenation=null}[lH](){let t=o$(this,"hAlign");return""!==this.marginLeft&&(t.paddingLeft=oO(this.marginLeft)),""!==this.marginRight&&(t.paddingRight=oO(this.marginRight)),""!==this.spaceAbove&&(t.paddingTop=oO(this.spaceAbove)),""!==this.spaceBelow&&(t.paddingBottom=oO(this.spaceBelow)),""!==this.textIndent&&(t.textIndent=oO(this.textIndent),oz(t)),this.lineHeight>0&&(t.lineHeight=oO(this.lineHeight)),""!==this.tabDefault&&(t.tabSize=oO(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(t,this.hyphenatation[lH]()),t}}class hS extends oC{constructor(t){super(o2,"passwordEdit",!0),this.hScrollPolicy=lQ(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.passwordChar=t.passwordChar||"*",this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.margin=null}}class hI extends oC{constructor(t){super(o2,"pattern",!0),this.id=t.id||"",this.type=lQ(t.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[lH](t){t=t?t[lH]():"#FFFFFF";let a=this.color?this.color[lH]():"#000000",i="repeating-linear-gradient",r=`${t},${t} 5px,${a} 5px,${a} 10px`;switch(this.type){case"crossHatch":return`${i}(to top,${r}) ${i}(to right,${r})`;case"crossDiagonal":return`${i}(45deg,${r}) ${i}(-45deg,${r})`;case"diagonalLeft":return`${i}(45deg,${r})`;case"diagonalRight":return`${i}(-45deg,${r})`;case"horizontal":return`${i}(to top,${r})`;case"vertical":return`${i}(to right,${r})`}return""}}class hB extends oT{constructor(t){super(o2,"picture"),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}}class hF extends oC{constructor(t){super(o2,"proto",!0),this.appearanceFilter=new oS,this.arc=new oS,this.area=new oS,this.assist=new oS,this.barcode=new oS,this.bindItems=new oS,this.bookend=new oS,this.boolean=new oS,this.border=new oS,this.break=new oS,this.breakAfter=new oS,this.breakBefore=new oS,this.button=new oS,this.calculate=new oS,this.caption=new oS,this.certificate=new oS,this.certificates=new oS,this.checkButton=new oS,this.choiceList=new oS,this.color=new oS,this.comb=new oS,this.connect=new oS,this.contentArea=new oS,this.corner=new oS,this.date=new oS,this.dateTime=new oS,this.dateTimeEdit=new oS,this.decimal=new oS,this.defaultUi=new oS,this.desc=new oS,this.digestMethod=new oS,this.digestMethods=new oS,this.draw=new oS,this.edge=new oS,this.encoding=new oS,this.encodings=new oS,this.encrypt=new oS,this.encryptData=new oS,this.encryption=new oS,this.encryptionMethod=new oS,this.encryptionMethods=new oS,this.event=new oS,this.exData=new oS,this.exObject=new oS,this.exclGroup=new oS,this.execute=new oS,this.extras=new oS,this.field=new oS,this.fill=new oS,this.filter=new oS,this.float=new oS,this.font=new oS,this.format=new oS,this.handler=new oS,this.hyphenation=new oS,this.image=new oS,this.imageEdit=new oS,this.integer=new oS,this.issuers=new oS,this.items=new oS,this.keep=new oS,this.keyUsage=new oS,this.line=new oS,this.linear=new oS,this.lockDocument=new oS,this.manifest=new oS,this.margin=new oS,this.mdp=new oS,this.medium=new oS,this.message=new oS,this.numericEdit=new oS,this.occur=new oS,this.oid=new oS,this.oids=new oS,this.overflow=new oS,this.pageArea=new oS,this.pageSet=new oS,this.para=new oS,this.passwordEdit=new oS,this.pattern=new oS,this.picture=new oS,this.radial=new oS,this.reason=new oS,this.reasons=new oS,this.rectangle=new oS,this.ref=new oS,this.script=new oS,this.setProperty=new oS,this.signData=new oS,this.signature=new oS,this.signing=new oS,this.solid=new oS,this.speak=new oS,this.stipple=new oS,this.subform=new oS,this.subformSet=new oS,this.subjectDN=new oS,this.subjectDNs=new oS,this.submit=new oS,this.text=new oS,this.textEdit=new oS,this.time=new oS,this.timeStamp=new oS,this.toolTip=new oS,this.traversal=new oS,this.traverse=new oS,this.ui=new oS,this.validate=new oS,this.value=new oS,this.variables=new oS}}class hM extends oC{constructor(t){super(o2,"radial",!0),this.id=t.id||"",this.type=lQ(t.type,["toEdge","toCenter"]),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[lH](t){t=t?t[lH]():"#FFFFFF";let a=this.color?this.color[lH]():"#000000";return`radial-gradient(circle at center, ${"toEdge"===this.type?`${t},${a}`:`${a},${t}`})`}}class hT extends oT{constructor(t){super(o2,"reason"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class hR extends oC{constructor(t){super(o2,"reasons",!0),this.id=t.id||"",this.type=lQ(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.reason=new oS}}class hN extends oC{constructor(t){super(o2,"rectangle",!0),this.hand=lQ(t.hand,["even","left","right"]),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.corner=new oS(4),this.edge=new oS(4),this.fill=null}[lj](){let t=this.edge.children.length?this.edge.children[0]:new cz({}),a=t[lH](),i=Object.create(null);"visible"===this.fill?.presence?Object.assign(i,this.fill[lH]()):i.fill="transparent",i.strokeWidth=oO("visible"===t.presence?t.thickness:0),i.stroke=a.color;let r=(this.corner.children.length?this.corner.children[0]:new cO({}))[lH](),s={name:"svg",children:[{name:"rect",attributes:{xmlns:o9,width:"100%",height:"100%",x:0,y:0,rx:r.radius,ry:r.radius,style:i}}],attributes:{xmlns:o9,style:{overflow:"visible"},width:"100%",height:"100%"}};return o8(this[ls]()[ls]())?l9.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[s]}):(s.attributes.style.position="absolute",l9.success(s))}}class hD extends oT{constructor(t){super(o2,"ref"),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||""}}class hO extends oT{constructor(t){super(o2,"script"),this.binding=t.binding||"",this.contentType=t.contentType||"",this.id=t.id||"",this.name=t.name||"",this.runAt=lQ(t.runAt,["client","both","server"]),this.use=t.use||"",this.usehref=t.usehref||""}}class hP extends oC{constructor(t){super(o2,"setProperty"),this.connection=t.connection||"",this.ref=t.ref||"",this.target=t.target||""}}class hE extends oC{constructor(t){super(o2,"signData",!0),this.id=t.id||"",this.operation=lQ(t.operation,["sign","clear","verify"]),this.ref=t.ref||"",this.target=t.target||"",this.use=t.use||"",this.usehref=t.usehref||"",this.filter=null,this.manifest=null}}class h_ extends oC{constructor(t){super(o2,"signature",!0),this.id=t.id||"",this.type=lQ(t.type,["PDF1.3","PDF1.6"]),this.use=t.use||"",this.usehref=t.usehref||"",this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}}class hL extends oC{constructor(t){super(o2,"signing",!0),this.id=t.id||"",this.type=lQ(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.certificate=new oS}}class hU extends oC{constructor(t){super(o2,"solid",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null}[lH](t){return t?t[lH]():"#FFFFFF"}}class hq extends oT{constructor(t){super(o2,"speak"),this.disable=lY({data:t.disable,defaultValue:0,validate:t=>1===t}),this.id=t.id||"",this.priority=lQ(t.priority,["custom","caption","name","toolTip"]),this.rid=t.rid||"",this.use=t.use||"",this.usehref=t.usehref||""}}class hj extends oC{constructor(t){super(o2,"stipple",!0),this.id=t.id||"",this.rate=lY({data:t.rate,defaultValue:50,validate:t=>t>=0&&t<=100}),this.use=t.use||"",this.usehref=t.usehref||"",this.color=null,this.extras=null}[lH](t){let a=this.rate/100;return R.makeHexColor(Math.round(t.value.r*(1-a)+this.value.r*a),Math.round(t.value.g*(1-a)+this.value.g*a),Math.round(t.value.b*(1-a)+this.value.b*a))}}class h$ extends oC{constructor(t){super(o2,"subform",!0),this.access=lQ(t.access,["open","nonInteractive","protected","readOnly"]),this.allowMacro=lY({data:t.allowMacro,defaultValue:0,validate:t=>1===t}),this.anchorType=lQ(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=lY({data:t.colSpan,defaultValue:1,validate:t=>t>=1||-1===t}),this.columnWidths=(t.columnWidths||"").trim().split(/\s+/).map(t=>"-1"===t?-1:l1(t)),this.h=t.h?l1(t.h):"",this.hAlign=lQ(t.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=t.id||"",this.layout=lQ(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.locale=t.locale||"",this.maxH=l1(t.maxH,"0pt"),this.maxW=l1(t.maxW,"0pt"),this.mergeMode=lQ(t.mergeMode,["consumeData","matchTemplate"]),this.minH=l1(t.minH,"0pt"),this.minW=l1(t.minW,"0pt"),this.name=t.name||"",this.presence=lQ(t.presence,["visible","hidden","inactive","invisible"]),this.relevant=l2(t.relevant),this.restoreState=lQ(t.restoreState,["manual","auto"]),this.scope=lQ(t.scope,["name","none"]),this.use=t.use||"",this.usehref=t.usehref||"",this.w=t.w?l1(t.w):"",this.x=l1(t.x,"0pt"),this.y=l1(t.y,"0pt"),this.assist=null,this.bind=null,this.bookend=null,this.border=null,this.break=null,this.calculate=null,this.desc=null,this.extras=null,this.keep=null,this.margin=null,this.occur=null,this.overflow=null,this.pageSet=null,this.para=null,this.traversal=null,this.validate=null,this.variables=null,this.area=new oS,this.breakAfter=new oS,this.breakBefore=new oS,this.connect=new oS,this.draw=new oS,this.event=new oS,this.exObject=new oS,this.exclGroup=new oS,this.field=new oS,this.proto=new oS,this.setProperty=new oS,this.subform=new oS,this.subformSet=new oS}[lr](){let t=this[ls]();return t instanceof hH?t[lr]():t}[lf](){return!0}[ly](){return this.layout.endsWith("-tb")&&0===this[nQ].attempt&&this[nQ].numberInLine>0||this[ls]()[ly]()}*[la](){yield*ce(this)}[n0](){return oZ(this)}[n$](t,a){oQ(this,t,a)}[n5](){return o1(this)}[lb](){let t=this[lr]();return!!t[lb]()&&(void 0!==this[nQ]._isSplittable?this[nQ]._isSplittable:"position"===this.layout||this.layout.includes("row")||this.keep&&"none"!==this.keep.intact?(this[nQ]._isSplittable=!1,!1):(!t.layout?.endsWith("-tb")||0===t[nQ].numberInLine)&&(this[nQ]._isSplittable=!0,!0))}[lj](t){if(ca(this),this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){let t=new ck({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});t[ll]=this[ll],this[nH](t),this.breakAfter.push(t)}if("auto"!==this.break.before||""!==this.break.beforeTarget){let t=new cv({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});t[ll]=this[ll],this[nH](t),this.breakBefore.push(t)}if(""!==this.break.overflowTarget){let t=new hk({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});t[ll]=this[ll],this[nH](t),this.overflow.push(t)}this[lR](this.break),this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return l9.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&f("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){let t=this.breakBefore.children[0];if(co(t))return l9.breakNode(t)}if(this[nQ]?.afterBreakAfter)return l9.EMPTY;oq(this);let a=[],i={id:this[lz],class:[]};oG(this,i.class),this[nQ]||=Object.create(null),Object.assign(this[nQ],{children:a,line:null,attributes:i,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,t.width),height:Math.min(this.h||1/0,t.height)},width:0,height:0,prevHeight:0,currentWidth:0});let r=this[ln](),s=r[nQ].noLayoutFailure,n=this[lb]();if(n||cn(this),!o0(this,t))return l9.FAILURE;let l=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){let t=this[lr]().columnWidths;Array.isArray(t)&&t.length>0&&(this[nQ].columnWidths=t,this[nQ].currentColumn=0)}let o=o$(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),c=["xfaSubform"],h=oj(this);if(h&&c.push(h),i.style=o,i.class=c,this.name&&(i.xfaName=this.name),this.overflow){let a=this.overflow[n4]();a.addLeader&&(a.addLeader=!1,cc(this,a.leader,t))}this[lT]();let u="lr-tb"===this.layout||"rl-tb"===this.layout,d=u?2:1;for(;this[nQ].attempt<d;this[nQ].attempt++){u&&1===this[nQ].attempt&&(this[nQ].numberInLine=0);let t=this[nz]({filter:l,include:!0});if(t.success)break;if(t.isBreak())return this[lM](),t;if(u&&0===this[nQ].attempt&&0===this[nQ].numberInLine&&!r[nQ].noLayoutFailure){this[nQ].attempt=d;break}}if(this[lM](),n||cl(this),r[nQ].noLayoutFailure=s,this[nQ].attempt===d)return this.overflow&&(this[ln]()[nQ].overflowNode=this.overflow),n||delete this[nQ],l9.FAILURE;if(this.overflow){let a=this.overflow[n4]();a.addTrailer&&(a.addTrailer=!1,cc(this,a.trailer,t))}let g=0,p=0;this.margin&&(g=this.margin.leftInset+this.margin.rightInset,p=this.margin.topInset+this.margin.bottomInset);let m=Math.max(this[nQ].width+g,this.w||0),b=Math.max(this[nQ].height+p,this.h||0),y=[this.x,this.y,m,b];if(""===this.w&&(o.width=oO(m)),""===this.h&&(o.height=oO(b)),("0px"===o.width||"0px"===o.height)&&0===a.length)return l9.EMPTY;ci(this,i);let w=l9.success(oH(this,{name:"div",attributes:i,children:a}),y);if(this.breakAfter.children.length>=1){let t=this.breakAfter.children[0];if(co(t))return this[nQ].afterBreakAfter=w,l9.breakNode(t)}return delete this[nQ],w}}class hH extends oC{constructor(t){super(o2,"subformSet",!0),this.id=t.id||"",this.name=t.name||"",this.relation=lQ(t.relation,["ordered","choice","unordered"]),this.relevant=l2(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.bookend=null,this.break=null,this.desc=null,this.extras=null,this.occur=null,this.overflow=null,this.breakAfter=new oS,this.breakBefore=new oS,this.subform=new oS,this.subformSet=new oS}*[la](){yield*ce(this)}[lr](){let t=this[ls]();for(;!(t instanceof h$);)t=t[ls]();return t}[lf](){return!0}}class hz extends oF{constructor(t){super(o2,"subjectDN"),this.delimiter=t.delimiter||",",this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[n1](){this[nY]=new Map(this[nY].split(this.delimiter).map(t=>((t=t.split("=",2))[0]=t[0].trim(),t)))}}class hG extends oC{constructor(t){super(o2,"subjectDNs",!0),this.id=t.id||"",this.type=lQ(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||"",this.subjectDN=new oS}}class hW extends oC{constructor(t){super(o2,"submit",!0),this.embedPDF=lY({data:t.embedPDF,defaultValue:0,validate:t=>1===t}),this.format=lQ(t.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),this.id=t.id||"",this.target=t.target||"",this.textEncoding=lZ({data:t.textEncoding?t.textEncoding.toLowerCase():"",defaultValue:"",validate:t=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(t)||t.match(/iso-8859-\d{2}/)}),this.use=t.use||"",this.usehref=t.usehref||"",this.xdpContent=t.xdpContent||"",this.encrypt=null,this.encryptData=new oS,this.signData=new oS}}class hV extends oC{constructor(t){super(o2,"template",!0),this.baseProfile=lQ(t.baseProfile,["full","interactiveForms"]),this.extras=null,this.subform=new oS}[n1](){0===this.subform.children.length&&f("XFA - No subforms in template node."),this.subform.children.length>=2&&f("XFA - Several subforms in template node: please file a bug."),this[lL]=5e3}[lb](){return!0}[lO](t,a){return t.startsWith("#")?[this[lc].get(t.slice(1))]:or(this,a,t,!0,!0)}*[lq](){if(!this.subform.children.length)return l9.success({name:"div",children:[]});this[nQ]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};let t=this.subform.children[0];t.pageSet[nW]();let a=t.pageSet.pageArea.children,i={name:"div",children:[]},r=null,s=null,n=null;if(t.breakBefore.children.length>=1?n=(s=t.breakBefore.children[0]).target:t.subform.children.length>=1&&t.subform.children[0].breakBefore.children.length>=1?n=(s=t.subform.children[0].breakBefore.children[0]).target:t.break?.beforeTarget?n=(s=t.break).beforeTarget:t.subform.children.length>=1&&t.subform.children[0].break?.beforeTarget&&(n=(s=t.subform.children[0].break).beforeTarget),s){let t=this[lO](n,s[ls]());t instanceof hv&&(r=t,s[nQ]={})}(r||=a[0])[nQ]={numberOfUse:1};let l=r[ls]();l[nQ]={numberOfUse:1,pageIndex:l.pageArea.children.indexOf(r),pageSetIndex:0};let o,c=null,h=null,u=!0,d=0,g=0;for(;;){if(u)d=0;else if(i.children.pop(),3==++d)return f("XFA - Something goes wrong: please file a bug."),i;o=null,this[nQ].currentPageArea=r;let a=r[lj]().html;i.children.push(a),c&&(this[nQ].noLayoutFailure=!0,a.children.push(c[lj](r[nQ].space).html),c=null),h&&(this[nQ].noLayoutFailure=!0,a.children.push(h[lj](r[nQ].space).html),h=null);let s=r.contentArea.children,n=a.children.filter(t=>t.attributes.class.includes("xfaContentarea"));u=!1,this[nQ].firstUnsplittable=null,this[nQ].noLayoutFailure=!1;let l=a=>{let i=t[n0]();i&&(u||=i.children?.length>0,n[a].children.push(i))};for(let a=g,r=s.length;a<r;a++){let r=this[nQ].currentContentArea=s[a],d={width:r.w,height:r.h};g=0,c&&(n[a].children.push(c[lj](d).html),c=null),h&&(n[a].children.push(h[lj](d).html),h=null);let f=t[lj](d);if(f.success)return f.html?(u||=f.html.children?.length>0,n[a].children.push(f.html)):!u&&i.children.length>1&&i.children.pop(),i;if(f.isBreak()){let t=f.breakNode;if(l(a),"auto"===t.targetType)continue;t.leader&&(c=(c=this[lO](t.leader,t[ls]()))?c[0]:null),t.trailer&&(h=(h=this[lO](t.trailer,t[ls]()))?h[0]:null),"pageArea"===t.targetType?(o=t[nQ].target,a=1/0):t[nQ].target?(o=t[nQ].target,g=t[nQ].index+1,a=1/0):a=t[nQ].index;continue}if(this[nQ].overflowNode){let t=this[nQ].overflowNode;this[nQ].overflowNode=null;let i=t[n4](),r=i.target;i.addLeader=null!==i.leader,i.addTrailer=null!==i.trailer,l(a);let n=a;if(a=1/0,r instanceof hv)o=r;else if(r instanceof cD){let t=s.indexOf(r);-1!==t?t>n?a=t-1:g=t:g=(o=r[ls]()).contentArea.children.indexOf(r)}continue}l(a)}this[nQ].pageNumber+=1,o&&(o[lx]()?o[nQ].numberOfUse+=1:o=null),r=o||r[li](),yield null}}}class hX extends oF{constructor(t){super(o2,"text"),this.id=t.id||"",this.maxChars=lY({data:t.maxChars,defaultValue:0,validate:t=>t>=0}),this.name=t.name||"",this.rid=t.rid||"",this.use=t.use||"",this.usehref=t.usehref||""}[nj](){return!0}[lS](t){return t[lv]===lW.xhtml.id?(this[nY]=t,!0):(f(`XFA - Invalid content in Text: ${t[lA]}.`),!1)}[lB](t){this[nY]instanceof oC||super[lB](t)}[n1](){"string"==typeof this[nY]&&(this[nY]=this[nY].replaceAll("\r\n","\n"))}[n4](){return"string"==typeof this[nY]?this[nY].split(/[\u2029\u2028\n]/).filter(t=>!!t).join("\n"):this[nY][lU]()}[lj](t){if("string"==typeof this[nY]){let t=cs(this[nY]).html;return this[nY].includes("\u2029")?(t.name="div",t.children=[],this[nY].split("\u2029").map(t=>t.split(/[\u2028\n]/).flatMap(t=>[{name:"span",value:t},{name:"br"}])).forEach(a=>{t.children.push({name:"p",children:a})})):/[\u2028\n]/.test(this[nY])&&(t.name="div",t.children=[],this[nY].split(/[\u2028\n]/).forEach(a=>{t.children.push({name:"span",value:a},{name:"br"})})),l9.success(t)}return this[nY][lj](t)}}class hK extends oC{constructor(t){super(o2,"textEdit",!0),this.allowRichText=lY({data:t.allowRichText,defaultValue:0,validate:t=>1===t}),this.hScrollPolicy=lQ(t.hScrollPolicy,["auto","off","on"]),this.id=t.id||"",this.multiLine=lY({data:t.multiLine,defaultValue:"",validate:t=>0===t||1===t}),this.use=t.use||"",this.usehref=t.usehref||"",this.vScrollPolicy=lQ(t.vScrollPolicy,["auto","off","on"]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[lj](t){let a,i=o$(this,"border","font","margin"),r=this[ls]()[ls]();return""===this.multiLine&&(this.multiLine=+(r instanceof cH)),a=1===this.multiLine?{name:"textarea",attributes:{dataId:r[nJ]?.[lz]||r[lz],fieldId:r[lz],class:["xfaTextfield"],style:i,"aria-label":cr(r),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:r[nJ]?.[lz]||r[lz],fieldId:r[lz],class:["xfaTextfield"],style:i,"aria-label":cr(r),"aria-required":!1}},ct(r)&&(a.attributes["aria-required"]=!0,a.attributes.required=!0),l9.success({name:"label",attributes:{class:["xfaLabel"]},children:[a]})}}class hY extends oT{constructor(t){super(o2,"time"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}[n1](){let t=this[nY].trim();this[nY]=t?new Date(t):null}[lj](t){return cs(this[nY]?this[nY].toString():"")}}class hJ extends oC{constructor(t){super(o2,"timeStamp"),this.id=t.id||"",this.server=t.server||"",this.type=lQ(t.type,["optional","required"]),this.use=t.use||"",this.usehref=t.usehref||""}}class hZ extends oT{constructor(t){super(o2,"toolTip"),this.id=t.id||"",this.rid=t.rid||"",this.use=t.use||"",this.usehref=t.usehref||""}}class hQ extends oC{constructor(t){super(o2,"traversal",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.traverse=new oS}}class h1 extends oC{constructor(t){super(o2,"traverse",!0),this.id=t.id||"",this.operation=lQ(t.operation,["next","back","down","first","left","right","up"]),this.ref=t.ref||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.script=null}get name(){return this.operation}[lw](){return!1}}class h0 extends oC{constructor(t){super(o2,"ui",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.picture=null,this.barcode=null,this.button=null,this.checkButton=null,this.choiceList=null,this.dateTimeEdit=null,this.defaultUi=null,this.imageEdit=null,this.numericEdit=null,this.passwordEdit=null,this.signature=null,this.textEdit=null}[n4](){if(void 0===this[nQ]){for(let t of Object.getOwnPropertyNames(this)){if("extras"===t||"picture"===t)continue;let a=this[t];if(a instanceof oC)return this[nQ]=a,a}this[nQ]=null}return this[nQ]}[lj](t){let a=this[n4]();return a?a[lj](t):l9.EMPTY}}class h2 extends oC{constructor(t){super(o2,"validate",!0),this.formatTest=lQ(t.formatTest,["warning","disabled","error"]),this.id=t.id||"",this.nullTest=lQ(t.nullTest,["disabled","error","warning"]),this.scriptTest=lQ(t.scriptTest,["error","disabled","warning"]),this.use=t.use||"",this.usehref=t.usehref||"",this.extras=null,this.message=null,this.picture=null,this.script=null}}class h9 extends oC{constructor(t){super(o2,"value",!0),this.id=t.id||"",this.override=lY({data:t.override,defaultValue:0,validate:t=>1===t}),this.relevant=l2(t.relevant),this.use=t.use||"",this.usehref=t.usehref||"",this.arc=null,this.boolean=null,this.date=null,this.dateTime=null,this.decimal=null,this.exData=null,this.float=null,this.image=null,this.integer=null,this.line=null,this.rectangle=null,this.text=null,this.time=null}[l_](t){let a=this[ls]();if(a instanceof c5&&a.ui?.imageEdit){this.image||(this.image=new ha({}),this[nH](this.image)),this.image[nY]=t[nY];return}let i=t[lA];if(null===this[i]){for(let t of Object.getOwnPropertyNames(this)){let a=this[t];a instanceof oC&&(this[t]=null,this[lR](a))}this[t[lA]]=t,this[nH](t)}else this[i][nY]=t[nY]}[lU](){if(this.exData)return"string"==typeof this.exData[nY]?this.exData[nY].trim():this.exData[nY][lU]().trim();for(let t of Object.getOwnPropertyNames(this)){if("image"===t)continue;let a=this[t];if(a instanceof oC)return(a[nY]||"").toString().trim()}return null}[lj](t){for(let a of Object.getOwnPropertyNames(this)){let i=this[a];if(i instanceof oC)return i[lj](t)}return l9.EMPTY}}class h5 extends oC{constructor(t){super(o2,"variables",!0),this.id=t.id||"",this.use=t.use||"",this.usehref=t.usehref||"",this.boolean=new oS,this.date=new oS,this.dateTime=new oS,this.decimal=new oS,this.exData=new oS,this.float=new oS,this.image=new oS,this.integer=new oS,this.manifest=new oS,this.script=new oS,this.text=new oS,this.time=new oS}[lw](){return!0}}class h3{static[lG](t,a){if(h3.hasOwnProperty(t)){let i=h3[t](a);return i[lE](a),i}}static appearanceFilter(t){return new ch(t)}static arc(t){return new cu(t)}static area(t){return new cd(t)}static assist(t){return new cf(t)}static barcode(t){return new cg(t)}static bind(t){return new cp(t)}static bindItems(t){return new cm(t)}static bookend(t){return new cb(t)}static boolean(t){return new cy(t)}static border(t){return new cw(t)}static break(t){return new cx(t)}static breakAfter(t){return new ck(t)}static breakBefore(t){return new cv(t)}static button(t){return new cA(t)}static calculate(t){return new cC(t)}static caption(t){return new cS(t)}static certificate(t){return new cI(t)}static certificates(t){return new cB(t)}static checkButton(t){return new cF(t)}static choiceList(t){return new cM(t)}static color(t){return new cT(t)}static comb(t){return new cR(t)}static connect(t){return new cN(t)}static contentArea(t){return new cD(t)}static corner(t){return new cO(t)}static date(t){return new cP(t)}static dateTime(t){return new cE(t)}static dateTimeEdit(t){return new c_(t)}static decimal(t){return new cL(t)}static defaultUi(t){return new cU(t)}static desc(t){return new cq(t)}static digestMethod(t){return new cj(t)}static digestMethods(t){return new c$(t)}static draw(t){return new cH(t)}static edge(t){return new cz(t)}static encoding(t){return new cG(t)}static encodings(t){return new cW(t)}static encrypt(t){return new cV(t)}static encryptData(t){return new cX(t)}static encryption(t){return new cK(t)}static encryptionMethod(t){return new cY(t)}static encryptionMethods(t){return new cJ(t)}static event(t){return new cZ(t)}static exData(t){return new cQ(t)}static exObject(t){return new c1(t)}static exclGroup(t){return new c0(t)}static execute(t){return new c2(t)}static extras(t){return new c9(t)}static field(t){return new c5(t)}static fill(t){return new c3(t)}static filter(t){return new c6(t)}static float(t){return new c7(t)}static font(t){return new c8(t)}static format(t){return new c4(t)}static handler(t){return new he(t)}static hyphenation(t){return new ht(t)}static image(t){return new ha(t)}static imageEdit(t){return new hi(t)}static integer(t){return new hr(t)}static issuers(t){return new hs(t)}static items(t){return new hn(t)}static keep(t){return new hl(t)}static keyUsage(t){return new ho(t)}static line(t){return new hc(t)}static linear(t){return new hh(t)}static lockDocument(t){return new hu(t)}static manifest(t){return new hd(t)}static margin(t){return new hf(t)}static mdp(t){return new hg(t)}static medium(t){return new hp(t)}static message(t){return new hm(t)}static numericEdit(t){return new hb(t)}static occur(t){return new hy(t)}static oid(t){return new hw(t)}static oids(t){return new hx(t)}static overflow(t){return new hk(t)}static pageArea(t){return new hv(t)}static pageSet(t){return new hA(t)}static para(t){return new hC(t)}static passwordEdit(t){return new hS(t)}static pattern(t){return new hI(t)}static picture(t){return new hB(t)}static proto(t){return new hF(t)}static radial(t){return new hM(t)}static reason(t){return new hT(t)}static reasons(t){return new hR(t)}static rectangle(t){return new hN(t)}static ref(t){return new hD(t)}static script(t){return new hO(t)}static setProperty(t){return new hP(t)}static signData(t){return new hE(t)}static signature(t){return new h_(t)}static signing(t){return new hL(t)}static solid(t){return new hU(t)}static speak(t){return new hq(t)}static stipple(t){return new hj(t)}static subform(t){return new h$(t)}static subformSet(t){return new hH(t)}static subjectDN(t){return new hz(t)}static subjectDNs(t){return new hG(t)}static submit(t){return new hW(t)}static template(t){return new hV(t)}static text(t){return new hX(t)}static textEdit(t){return new hK(t)}static time(t){return new hY(t)}static timeStamp(t){return new hJ(t)}static toolTip(t){return new hZ(t)}static traversal(t){return new hQ(t)}static traverse(t){return new h1(t)}static ui(t){return new h0(t)}static validate(t){return new h2(t)}static value(t){return new h9(t)}static variables(t){return new h5(t)}}let h6=lW.datasets.id;function h7(t){let a=new hX({});return a[nY]=t,a}class h8{constructor(t){this.root=t,this.datasets=t.datasets,this.data=t.datasets?.data||new oB(lW.datasets.id,"data"),this.emptyMerge=0===this.data[lt]().length,this.root.form=this.form=t.template[nX]()}_isConsumeData(){return!this.emptyMerge&&this._mergeMode}_isMatchTemplate(){return!this._isConsumeData()}bind(){return this._bindElement(this.form,this.data),this.form}getData(){return this.data}_bindValue(t,a,i){if(t[nJ]=a,t[lo]())if(a[lg]()){let i=a[n8]();t[l_](h7(i))}else if(t instanceof c5&&"multiSelect"===t.ui?.choiceList?.open){let i=a[lt]().map(t=>t[nY].trim()).join("\n");t[l_](h7(i))}else this._isConsumeData()&&f("XFA - Nodes haven't the same type.");else!a[lg]()||this._isMatchTemplate()?this._bindElement(t,a):f("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(t,a,i,r){let s,n;if(!t)return null;for(let r=0;r<3;r++){for(s=i[le](t,!1,!0);n=s.next().value;)if(a===n[lg]())return n;if(i[lv]===lW.datasets.id&&"data"===i[lA])break;i=i[ls]()}return r?(n=(s=this.data[le](t,!0,!1)).next().value)?n:(n=(s=this.data[n2](t,!0)).next().value,n?.[lg]()?n:null):null}_setProperties(t,a){if(t.hasOwnProperty("setProperty"))for(let{ref:i,target:r,connection:s}of t.setProperty.children){if(s||!i)continue;let n=or(this.root,a,i,!1,!1);if(!n){f(`XFA - Invalid reference: ${i}.`);continue}let[l]=n;if(!l[lp](this.data)){f("XFA - Invalid node: must be a data node.");continue}let o=or(this.root,t,r,!1,!1);if(!o){f(`XFA - Invalid target: ${r}.`);continue}let[c]=o;if(!c[lp](t)){f("XFA - Invalid target: must be a property or subproperty.");continue}let h=c[ls]();if(c instanceof hP||h instanceof hP){f("XFA - Invalid target: cannot be a setProperty or one of its properties.");continue}if(c instanceof cm||h instanceof cm){f("XFA - Invalid target: cannot be a bindItems or one of its properties.");continue}let u=l[lU](),d=c[lA];if(c instanceof oI){let t=Object.create(null);t[d]=u;let a=Reflect.construct(Object.getPrototypeOf(h).constructor,[t]);h[d]=a[d];continue}c.hasOwnProperty(nY)?(c[nJ]=l,c[nY]=u,c[n1]()):f("XFA - Invalid node to use in setProperty")}}_bindItems(t,a){if(!t.hasOwnProperty("items")||!t.hasOwnProperty("bindItems")||t.bindItems.isEmpty())return;for(let a of t.items.children)t[lR](a);t.items.clear();let i=new hn({}),r=new hn({});for(let{ref:s,labelRef:n,valueRef:l,connection:o}of(t[nH](i),t.items.push(i),t[nH](r),t.items.push(r),t.bindItems.children)){if(o||!s)continue;let t=or(this.root,a,s,!1,!1);if(t)for(let a of t){if(!a[lp](this.datasets)){f(`XFA - Invalid ref (${s}): must be a datasets child.`);continue}let t=or(this.root,a,n,!0,!1);if(!t){f(`XFA - Invalid label: ${n}.`);continue}let[o]=t;if(!o[lp](this.datasets)){f("XFA - Invalid label: must be a datasets child.");continue}let c=or(this.root,a,l,!0,!1);if(!c){f(`XFA - Invalid value: ${l}.`);continue}let[h]=c;if(!h[lp](this.datasets)){f("XFA - Invalid value: must be a datasets child.");continue}let u=h7(o[lU]()),d=h7(h[lU]());i[nH](u),i.text.push(u),r[nH](d),r.text.push(d)}else f(`XFA - Invalid reference: ${s}.`)}}_bindOccurrences(t,a,i){let r;if(a.length>1&&((r=t[nX]())[lR](r.occur),r.occur=null),this._bindValue(t,a[0],i),this._setProperties(t,a[0]),this._bindItems(t,a[0]),1===a.length)return;let s=t[ls](),n=t[lA],l=s[lh](t);for(let t=1,o=a.length;t<o;t++){let o=a[t],c=r[nX]();s[n].push(c),s[lu](l+t,c),this._bindValue(c,o,i),this._setProperties(c,o),this._bindItems(c,o)}}_createOccurrences(t){let a;if(!this.emptyMerge)return;let{occur:i}=t;if(!i||i.initial<=1)return;let r=t[ls](),s=t[lA];if(!(r[s]instanceof oS))return;a=t.name?r[s].children.filter(a=>a.name===t.name).length:r[s].children.length;let n=r[lh](t)+1,l=i.initial-a;if(l){let a=t[nX]();a[lR](a.occur),a.occur=null,r[s].push(a),r[lu](n,a);for(let t=1;t<l;t++){let i=a[nX]();r[s].push(i),r[lu](n+t,i)}}}_getOccurInfo(t){let{name:a,occur:i}=t;if(!i||!a)return[1,1];let r=-1===i.max?1/0:i.max;return[i.min,r]}_setAndBind(t,a){this._setProperties(t,a),this._bindItems(t,a),this._bindElement(t,a)}_bindElement(t,a){let i=[];for(let r of(this._createOccurrences(t),t[lt]())){if(r[nJ])continue;if(void 0===this._mergeMode&&"subform"===r[lA]){this._mergeMode="consumeData"===r.mergeMode;let t=a[lt]();if(t.length>0)this._bindOccurrences(r,[t[0]],null);else if(this.emptyMerge){let t=a[lv]===h6?-1:a[lv],i=r[nJ]=new oB(t,r.name||"root");a[nH](i),this._bindElement(r,i)}continue}if(!r[lf]())continue;let t=!1,s=null,n=null,l=null;if(r.bind){switch(r.bind.match){case"none":this._setAndBind(r,a);continue;case"global":t=!0;break;case"dataRef":if(!r.bind.ref){f(`XFA - ref is empty in node ${r[lA]}.`),this._setAndBind(r,a);continue}n=r.bind.ref}r.bind.picture&&(s=r.bind.picture[nY])}let[o,c]=this._getOccurInfo(r);if(n){if(null===(l=or(this.root,a,n,!0,!1))){if(!(l=function(t,a,i){let r=oi(i);if(!r||r.some(t=>1===t.operator))return null;let s=ot.get(r[0].name),n=0;s?(t=s(t,a),n=1):t=a||t;for(let a=r.length;n<a;n++){let a,{name:i,operator:s,index:l}=r[n];if(!isFinite(l))return r[n].index=0,t.createNodes(r.slice(n));switch(s){case 0:a=t[n6](i,!1);break;case 1:a=t[n6](i,!0);break;case 2:a=(a=t[n3](i)).isXFAObjectArray?a.children:[a]}if(0===a.length)return t.createNodes(r.slice(n));if(!(l<a.length))return r[n].index=l-a.length,t.createNodes(r.slice(n));{let i=a[l];if(!i.isXFAObject)return f("XFA - Cannot create a node."),null;t=i}}return null}(this.data,a,n)))continue;this._isConsumeData()&&(l[nK]=!0),this._setAndBind(r,l);continue}this._isConsumeData()&&(l=l.filter(t=>!t[nK])),l.length>c?l=l.slice(0,c):0===l.length&&(l=null),l&&this._isConsumeData()&&l.forEach(t=>{t[nK]=!0})}else{if(!r.name){this._setAndBind(r,a);continue}if(this._isConsumeData()){let i=[];for(;i.length<c;){let s=this._findDataByNameToConsume(r.name,r[lo](),a,t);if(!s)break;s[nK]=!0,i.push(s)}l=i.length>0?i:null}else{if(!(l=a[le](r.name,!1,this.emptyMerge).next().value)){if(0===o){i.push(r);continue}let t=a[lv]===h6?-1:a[lv];l=r[nJ]=new oB(t,r.name),this.emptyMerge&&(l[nK]=!0),a[nH](l),this._setAndBind(r,l);continue}this.emptyMerge&&(l[nK]=!0),l=[l]}}l?this._bindOccurrences(r,l,s):o>0?this._setAndBind(r,a):i.push(r)}i.forEach(t=>t[ls]()[lR](t))}}class h4{constructor(t,a){this.data=a,this.dataset=t.datasets||null}serialize(t){let a=[[-1,this.data[lt]()]];for(;a.length>0;){let i=a.at(-1),[r,s]=i;if(r+1===s.length){a.pop();continue}let n=s[++i[0]],l=t.get(n[lz]);if(l)n[l_](l);else for(let a of n[n9]().values()){let i=t.get(a[lz]);if(i){a[l_](i);break}}let o=n[lt]();o.length>0&&a.push([-1,o])}let i=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">'];if(this.dataset)for(let t of this.dataset[lt]())"data"!==t[lA]&&t[l$](i);return this.data[l$](i),i.push("</xfa:datasets>"),i.join("")}}let ue=lW.config.id;class ut extends oC{constructor(t){super(ue,"acrobat",!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new oS}}class ua extends oC{constructor(t){super(ue,"acrobat7",!0),this.dynamicRender=null}}class ui extends oM{constructor(t){super(ue,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class ur extends oM{constructor(t){super(ue,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class us extends oN{constructor(t){super(ue,"addSilentPrint")}}class un extends oN{constructor(t){super(ue,"addViewerPreferences")}}class ul extends oD{constructor(t){super(ue,"adjustData")}}class uo extends oR{constructor(t){super(ue,"adobeExtensionLevel",0,t=>t>=1&&t<=8)}}class uc extends oC{constructor(t){super(ue,"agent",!0),this.name=t.name?t.name.trim():"",this.common=new oS}}class uh extends oF{constructor(t){super(ue,"alwaysEmbed")}}class uu extends oT{constructor(t){super(ue,"amd")}}class ud extends oC{constructor(t){super(ue,"area"),this.level=lY({data:t.level,defaultValue:0,validate:t=>t>=1&&t<=3}),this.name=lQ(t.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class uf extends oM{constructor(t){super(ue,"attributes",["preserve","delegate","ignore"])}}class ug extends oM{constructor(t){super(ue,"autoSave",["disabled","enabled"])}}class up extends oT{constructor(t){super(ue,"base")}}class um extends oC{constructor(t){super(ue,"batchOutput"),this.format=lQ(t.format,["none","concat","zip","zipCompress"])}}class ub extends oF{constructor(t){super(ue,"behaviorOverride")}[n1](){this[nY]=new Map(this[nY].trim().split(/\s+/).filter(t=>t.includes(":")).map(t=>t.split(":",2)))}}class uy extends oC{constructor(t){super(ue,"cache",!0),this.templateCache=null}}class uw extends oN{constructor(t){super(ue,"change")}}class ux extends oC{constructor(t){super(ue,"common",!0),this.data=null,this.locale=null,this.localeSet=null,this.messaging=null,this.suppressBanner=null,this.template=null,this.validationMessaging=null,this.versionControl=null,this.log=new oS}}class uk extends oC{constructor(t){super(ue,"compress"),this.scope=lQ(t.scope,["imageOnly","document"])}}class uv extends oN{constructor(t){super(ue,"compressLogicalStructure")}}class uA extends oD{constructor(t){super(ue,"compressObjectStream")}}class uC extends oC{constructor(t){super(ue,"compression",!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}}class uS extends oC{constructor(t){super(ue,"config",!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new oS}}class uI extends oM{constructor(t){super(ue,"conformance",["A","B"])}}class uB extends oN{constructor(t){super(ue,"contentCopy")}}class uF extends oR{constructor(t){super(ue,"copies",1,t=>t>=1)}}class uM extends oT{constructor(t){super(ue,"creator")}}class uT extends oR{constructor(t){super(ue,"currentPage",0,t=>t>=0)}}class uR extends oC{constructor(t){super(ue,"data",!0),this.adjustData=null,this.attributes=null,this.incrementalLoad=null,this.outputXSL=null,this.range=null,this.record=null,this.startNode=null,this.uri=null,this.window=null,this.xsl=null,this.excludeNS=new oS,this.transform=new oS}}class uN extends oC{constructor(t){super(ue,"debug",!0),this.uri=null}}class uD extends oF{constructor(t){super(ue,"defaultTypeface"),this.writingScript=lQ(t.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class uO extends oM{constructor(t){super(ue,"destination",["pdf","pcl","ps","webClient","zpl"])}}class uP extends oN{constructor(t){super(ue,"documentAssembly")}}class uE extends oC{constructor(t){super(ue,"driver",!0),this.name=t.name?t.name.trim():"",this.fontInfo=null,this.xdc=null}}class u_ extends oM{constructor(t){super(ue,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class uL extends oM{constructor(t){super(ue,"dynamicRender",["forbidden","required"])}}class uU extends oN{constructor(t){super(ue,"embed")}}class uq extends oN{constructor(t){super(ue,"encrypt")}}class uj extends oC{constructor(t){super(ue,"encryption",!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}}class u$ extends oM{constructor(t){super(ue,"encryptionLevel",["40bit","128bit"])}}class uH extends oT{constructor(t){super(ue,"enforce")}}class uz extends oC{constructor(t){super(ue,"equate"),this.force=lY({data:t.force,defaultValue:1,validate:t=>0===t}),this.from=t.from||"",this.to=t.to||""}}class uG extends oC{constructor(t){super(ue,"equateRange"),this.from=t.from||"",this.to=t.to||"",this._unicodeRange=t.unicodeRange||""}get unicodeRange(){let t=[],a=/U\+([0-9a-fA-F]+)/;for(let i of this._unicodeRange.split(",").map(t=>t.trim()).filter(t=>!!t))1===(i=i.split("-",2).map(t=>{let i=t.match(a);return i?parseInt(i[1],16):0})).length&&i.push(i[0]),t.push(i);return b(this,"unicodeRange",t)}}class uW extends oF{constructor(t){super(ue,"exclude")}[n1](){this[nY]=this[nY].trim().split(/\s+/).filter(t=>t&&["calculate","close","enter","exit","initialize","ready","validate"].includes(t))}}class uV extends oT{constructor(t){super(ue,"excludeNS")}}class uX extends oM{constructor(t){super(ue,"flipLabel",["usePrinterSetting","on","off"])}}class uK extends oC{constructor(t){super(ue,"fontInfo",!0),this.embed=null,this.map=null,this.subsetBelow=null,this.alwaysEmbed=new oS,this.defaultTypeface=new oS,this.neverEmbed=new oS}}class uY extends oN{constructor(t){super(ue,"formFieldFilling")}}class uJ extends oT{constructor(t){super(ue,"groupParent")}}class uZ extends oM{constructor(t){super(ue,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class uQ extends oT{constructor(t){super(ue,"includeXDPContent")}}class u1 extends oM{constructor(t){super(ue,"incrementalLoad",["none","forwardOnly"])}}class u0 extends oN{constructor(t){super(ue,"incrementalMerge")}}class u2 extends oN{constructor(t){super(ue,"interactive")}}class u9 extends oM{constructor(t){super(ue,"jog",["usePrinterSetting","none","pageSet"])}}class u5 extends oC{constructor(t){super(ue,"labelPrinter",!0),this.name=lQ(t.name,["zpl","dpl","ipl","tcpl"]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class u3 extends oM{constructor(t){super(ue,"layout",["paginate","panel"])}}class u6 extends oR{constructor(t){super(ue,"level",0,t=>t>0)}}class u7 extends oN{constructor(t){super(ue,"linearized")}}class u8 extends oT{constructor(t){super(ue,"locale")}}class u4 extends oT{constructor(t){super(ue,"localeSet")}}class de extends oC{constructor(t){super(ue,"log",!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}}class dt extends oC{constructor(t){super(ue,"map",!0),this.equate=new oS,this.equateRange=new oS}}class da extends oC{constructor(t){super(ue,"mediumInfo",!0),this.map=null}}class di extends oC{constructor(t){super(ue,"message",!0),this.msgId=null,this.severity=null}}class dr extends oC{constructor(t){super(ue,"messaging",!0),this.message=new oS}}class ds extends oM{constructor(t){super(ue,"mode",["append","overwrite"])}}class dn extends oN{constructor(t){super(ue,"modifyAnnots")}}class dl extends oR{constructor(t){super(ue,"msgId",1,t=>t>=1)}}class dc extends oT{constructor(t){super(ue,"nameAttr")}}class dh extends oF{constructor(t){super(ue,"neverEmbed")}}class du extends oR{constructor(t){super(ue,"numberOfCopies",null,t=>t>=2&&t<=5)}}class dd extends oC{constructor(t){super(ue,"openAction",!0),this.destination=null}}class df extends oC{constructor(t){super(ue,"output",!0),this.to=null,this.type=null,this.uri=null}}class dg extends oT{constructor(t){super(ue,"outputBin")}}class dp extends oC{constructor(t){super(ue,"outputXSL",!0),this.uri=null}}class dm extends oM{constructor(t){super(ue,"overprint",["none","both","draw","field"])}}class db extends oT{constructor(t){super(ue,"packets")}[n1](){"*"!==this[nY]&&(this[nY]=this[nY].trim().split(/\s+/).filter(t=>["config","datasets","template","xfdf","xslt"].includes(t)))}}class dy extends oC{constructor(t){super(ue,"pageOffset"),this.x=lY({data:t.x,defaultValue:"useXDCSetting",validate:t=>!0}),this.y=lY({data:t.y,defaultValue:"useXDCSetting",validate:t=>!0})}}class dw extends oT{constructor(t){super(ue,"pageRange")}[n1](){let t=this[nY].trim().split(/\s+/).map(t=>parseInt(t,10)),a=[];for(let i=0,r=t.length;i<r;i+=2)a.push(t.slice(i,i+2));this[nY]=a}}class dx extends oM{constructor(t){super(ue,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}}class dk extends oM{constructor(t){super(ue,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}}class dv extends oR{constructor(t){super(ue,"part",1,t=>!1)}}class dA extends oC{constructor(t){super(ue,"pcl",!0),this.name=t.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.pageOffset=null,this.staple=null,this.xdc=null}}class dC extends oC{constructor(t){super(ue,"pdf",!0),this.name=t.name||"",this.adobeExtensionLevel=null,this.batchOutput=null,this.compression=null,this.creator=null,this.encryption=null,this.fontInfo=null,this.interactive=null,this.linearized=null,this.openAction=null,this.pdfa=null,this.producer=null,this.renderPolicy=null,this.scriptModel=null,this.silentPrint=null,this.submitFormat=null,this.tagged=null,this.version=null,this.viewerPreferences=null,this.xdc=null}}class dS extends oC{constructor(t){super(ue,"pdfa",!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}}class dI extends oC{constructor(t){super(ue,"permissions",!0),this.accessibleContent=null,this.change=null,this.contentCopy=null,this.documentAssembly=null,this.formFieldFilling=null,this.modifyAnnots=null,this.plaintextMetadata=null,this.print=null,this.printHighQuality=null}}class dB extends oN{constructor(t){super(ue,"pickTrayByPDFSize")}}class dF extends oT{constructor(t){super(ue,"picture")}}class dM extends oN{constructor(t){super(ue,"plaintextMetadata")}}class dT extends oM{constructor(t){super(ue,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class dR extends oC{constructor(t){super(ue,"present",!0),this.behaviorOverride=null,this.cache=null,this.common=null,this.copies=null,this.destination=null,this.incrementalMerge=null,this.layout=null,this.output=null,this.overprint=null,this.pagination=null,this.paginationOverride=null,this.script=null,this.validate=null,this.xdp=null,this.driver=new oS,this.labelPrinter=new oS,this.pcl=new oS,this.pdf=new oS,this.ps=new oS,this.submitUrl=new oS,this.webClient=new oS,this.zpl=new oS}}class dN extends oN{constructor(t){super(ue,"print")}}class dD extends oN{constructor(t){super(ue,"printHighQuality")}}class dO extends oM{constructor(t){super(ue,"printScaling",["appdefault","noScaling"])}}class dP extends oT{constructor(t){super(ue,"printerName")}}class dE extends oT{constructor(t){super(ue,"producer")}}class d_ extends oC{constructor(t){super(ue,"ps",!0),this.name=t.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.staple=null,this.xdc=null}}class dL extends oF{constructor(t){super(ue,"range")}[n1](){this[nY]=this[nY].split(",",2).map(t=>t.split("-").map(t=>parseInt(t.trim(),10))).filter(t=>t.every(t=>!isNaN(t))).map(t=>(1===t.length&&t.push(t[0]),t))}}class dU extends oF{constructor(t){super(ue,"record")}[n1](){this[nY]=this[nY].trim();let t=parseInt(this[nY],10);!isNaN(t)&&t>=0&&(this[nY]=t)}}class dq extends oF{constructor(t){super(ue,"relevant")}[n1](){this[nY]=this[nY].trim().split(/\s+/)}}class dj extends oF{constructor(t){super(ue,"rename")}[n1](){this[nY]=this[nY].trim(),(this[nY].toLowerCase().startsWith("xml")||RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[nY]))&&f("XFA - Rename: invalid XFA name")}}class d$ extends oM{constructor(t){super(ue,"renderPolicy",["server","client"])}}class dH extends oM{constructor(t){super(ue,"runScripts",["both","client","none","server"])}}class dz extends oC{constructor(t){super(ue,"script",!0),this.currentPage=null,this.exclude=null,this.runScripts=null}}class dG extends oM{constructor(t){super(ue,"scriptModel",["XFA","none"])}}class dW extends oM{constructor(t){super(ue,"severity",["ignore","error","information","trace","warning"])}}class dV extends oC{constructor(t){super(ue,"silentPrint",!0),this.addSilentPrint=null,this.printerName=null}}class dX extends oC{constructor(t){super(ue,"staple"),this.mode=lQ(t.mode,["usePrinterSetting","on","off"])}}class dK extends oT{constructor(t){super(ue,"startNode")}}class dY extends oR{constructor(t){super(ue,"startPage",0,t=>!0)}}class dJ extends oM{constructor(t){super(ue,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class dZ extends oT{constructor(t){super(ue,"submitUrl")}}class dQ extends oR{constructor(t){super(ue,"subsetBelow",100,t=>t>=0&&t<=100)}}class d1 extends oN{constructor(t){super(ue,"suppressBanner")}}class d0 extends oN{constructor(t){super(ue,"tagged")}}class d2 extends oC{constructor(t){super(ue,"template",!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}}class d9 extends oM{constructor(t){super(ue,"threshold",["trace","error","information","warning"])}}class d5 extends oM{constructor(t){super(ue,"to",["null","memory","stderr","stdout","system","uri"])}}class d3 extends oC{constructor(t){super(ue,"templateCache"),this.maxEntries=lY({data:t.maxEntries,defaultValue:5,validate:t=>t>=0})}}class d6 extends oC{constructor(t){super(ue,"trace",!0),this.area=new oS}}class d7 extends oC{constructor(t){super(ue,"transform",!0),this.groupParent=null,this.ifEmpty=null,this.nameAttr=null,this.picture=null,this.presence=null,this.rename=null,this.whitespace=null}}class d8 extends oM{constructor(t){super(ue,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class d4 extends oT{constructor(t){super(ue,"uri")}}class fe extends oM{constructor(t){super(ue,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class ft extends oF{constructor(t){super(ue,"validateApprovalSignatures")}[n1](){this[nY]=this[nY].trim().split(/\s+/).filter(t=>["docReady","postSign"].includes(t))}}class fa extends oM{constructor(t){super(ue,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class fi extends oM{constructor(t){super(ue,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class fr extends oC{constructor(t){super(ue,"VersionControl"),this.outputBelow=lQ(t.outputBelow,["warn","error","update"]),this.sourceAbove=lQ(t.sourceAbove,["warn","error"]),this.sourceBelow=lQ(t.sourceBelow,["update","maintain"])}}class fs extends oC{constructor(t){super(ue,"viewerPreferences",!0),this.ADBE_JSConsole=null,this.ADBE_JSDebugger=null,this.addViewerPreferences=null,this.duplexOption=null,this.enforce=null,this.numberOfCopies=null,this.pageRange=null,this.pickTrayByPDFSize=null,this.printScaling=null}}class fn extends oC{constructor(t){super(ue,"webClient",!0),this.name=t.name?t.name.trim():"",this.fontInfo=null,this.xdc=null}}class fl extends oM{constructor(t){super(ue,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class fo extends oF{constructor(t){super(ue,"window")}[n1](){let t=this[nY].split(",",2).map(t=>parseInt(t.trim(),10));t.some(t=>isNaN(t))?this[nY]=[0,0]:(1===t.length&&t.push(t[0]),this[nY]=t)}}class fc extends oC{constructor(t){super(ue,"xdc",!0),this.uri=new oS,this.xsl=new oS}}class fh extends oC{constructor(t){super(ue,"xdp",!0),this.packets=null}}class fu extends oC{constructor(t){super(ue,"xsl",!0),this.debug=null,this.uri=null}}class fd extends oC{constructor(t){super(ue,"zpl",!0),this.name=t.name?t.name.trim():"",this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class ff{static[lG](t,a){if(ff.hasOwnProperty(t))return ff[t](a)}static acrobat(t){return new ut(t)}static acrobat7(t){return new ua(t)}static ADBE_JSConsole(t){return new ui(t)}static ADBE_JSDebugger(t){return new ur(t)}static addSilentPrint(t){return new us(t)}static addViewerPreferences(t){return new un(t)}static adjustData(t){return new ul(t)}static adobeExtensionLevel(t){return new uo(t)}static agent(t){return new uc(t)}static alwaysEmbed(t){return new uh(t)}static amd(t){return new uu(t)}static area(t){return new ud(t)}static attributes(t){return new uf(t)}static autoSave(t){return new ug(t)}static base(t){return new up(t)}static batchOutput(t){return new um(t)}static behaviorOverride(t){return new ub(t)}static cache(t){return new uy(t)}static change(t){return new uw(t)}static common(t){return new ux(t)}static compress(t){return new uk(t)}static compressLogicalStructure(t){return new uv(t)}static compressObjectStream(t){return new uA(t)}static compression(t){return new uC(t)}static config(t){return new uS(t)}static conformance(t){return new uI(t)}static contentCopy(t){return new uB(t)}static copies(t){return new uF(t)}static creator(t){return new uM(t)}static currentPage(t){return new uT(t)}static data(t){return new uR(t)}static debug(t){return new uN(t)}static defaultTypeface(t){return new uD(t)}static destination(t){return new uO(t)}static documentAssembly(t){return new uP(t)}static driver(t){return new uE(t)}static duplexOption(t){return new u_(t)}static dynamicRender(t){return new uL(t)}static embed(t){return new uU(t)}static encrypt(t){return new uq(t)}static encryption(t){return new uj(t)}static encryptionLevel(t){return new u$(t)}static enforce(t){return new uH(t)}static equate(t){return new uz(t)}static equateRange(t){return new uG(t)}static exclude(t){return new uW(t)}static excludeNS(t){return new uV(t)}static flipLabel(t){return new uX(t)}static fontInfo(t){return new uK(t)}static formFieldFilling(t){return new uY(t)}static groupParent(t){return new uJ(t)}static ifEmpty(t){return new uZ(t)}static includeXDPContent(t){return new uQ(t)}static incrementalLoad(t){return new u1(t)}static incrementalMerge(t){return new u0(t)}static interactive(t){return new u2(t)}static jog(t){return new u9(t)}static labelPrinter(t){return new u5(t)}static layout(t){return new u3(t)}static level(t){return new u6(t)}static linearized(t){return new u7(t)}static locale(t){return new u8(t)}static localeSet(t){return new u4(t)}static log(t){return new de(t)}static map(t){return new dt(t)}static mediumInfo(t){return new da(t)}static message(t){return new di(t)}static messaging(t){return new dr(t)}static mode(t){return new ds(t)}static modifyAnnots(t){return new dn(t)}static msgId(t){return new dl(t)}static nameAttr(t){return new dc(t)}static neverEmbed(t){return new dh(t)}static numberOfCopies(t){return new du(t)}static openAction(t){return new dd(t)}static output(t){return new df(t)}static outputBin(t){return new dg(t)}static outputXSL(t){return new dp(t)}static overprint(t){return new dm(t)}static packets(t){return new db(t)}static pageOffset(t){return new dy(t)}static pageRange(t){return new dw(t)}static pagination(t){return new dx(t)}static paginationOverride(t){return new dk(t)}static part(t){return new dv(t)}static pcl(t){return new dA(t)}static pdf(t){return new dC(t)}static pdfa(t){return new dS(t)}static permissions(t){return new dI(t)}static pickTrayByPDFSize(t){return new dB(t)}static picture(t){return new dF(t)}static plaintextMetadata(t){return new dM(t)}static presence(t){return new dT(t)}static present(t){return new dR(t)}static print(t){return new dN(t)}static printHighQuality(t){return new dD(t)}static printScaling(t){return new dO(t)}static printerName(t){return new dP(t)}static producer(t){return new dE(t)}static ps(t){return new d_(t)}static range(t){return new dL(t)}static record(t){return new dU(t)}static relevant(t){return new dq(t)}static rename(t){return new dj(t)}static renderPolicy(t){return new d$(t)}static runScripts(t){return new dH(t)}static script(t){return new dz(t)}static scriptModel(t){return new dG(t)}static severity(t){return new dW(t)}static silentPrint(t){return new dV(t)}static staple(t){return new dX(t)}static startNode(t){return new dK(t)}static startPage(t){return new dY(t)}static submitFormat(t){return new dJ(t)}static submitUrl(t){return new dZ(t)}static subsetBelow(t){return new dQ(t)}static suppressBanner(t){return new d1(t)}static tagged(t){return new d0(t)}static template(t){return new d2(t)}static templateCache(t){return new d3(t)}static threshold(t){return new d9(t)}static to(t){return new d5(t)}static trace(t){return new d6(t)}static transform(t){return new d7(t)}static type(t){return new d8(t)}static uri(t){return new d4(t)}static validate(t){return new fe(t)}static validateApprovalSignatures(t){return new ft(t)}static validationMessaging(t){return new fa(t)}static version(t){return new fi(t)}static versionControl(t){return new fr(t)}static viewerPreferences(t){return new fs(t)}static webClient(t){return new fn(t)}static whitespace(t){return new fl(t)}static window(t){return new fo(t)}static xdc(t){return new fc(t)}static xdp(t){return new fh(t)}static xsl(t){return new fu(t)}static zpl(t){return new fd(t)}}let fg=lW.connectionSet.id;class fp extends oC{constructor(t){super(fg,"connectionSet",!0),this.wsdlConnection=new oS,this.xmlConnection=new oS,this.xsdConnection=new oS}}class fm extends oC{constructor(t){super(fg,"effectiveInputPolicy"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class fb extends oC{constructor(t){super(fg,"effectiveOutputPolicy"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class fy extends oT{constructor(t){super(fg,"operation"),this.id=t.id||"",this.input=t.input||"",this.name=t.name||"",this.output=t.output||"",this.use=t.use||"",this.usehref=t.usehref||""}}class fw extends oT{constructor(t){super(fg,"rootElement"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class fx extends oT{constructor(t){super(fg,"soapAction"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class fk extends oT{constructor(t){super(fg,"soapAddress"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class fv extends oT{constructor(t){super(fg,"uri"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class fA extends oT{constructor(t){super(fg,"wsdlAddress"),this.id=t.id||"",this.name=t.name||"",this.use=t.use||"",this.usehref=t.usehref||""}}class fC extends oC{constructor(t){super(fg,"wsdlConnection",!0),this.dataDescription=t.dataDescription||"",this.name=t.name||"",this.effectiveInputPolicy=null,this.effectiveOutputPolicy=null,this.operation=null,this.soapAction=null,this.soapAddress=null,this.wsdlAddress=null}}class fS extends oC{constructor(t){super(fg,"xmlConnection",!0),this.dataDescription=t.dataDescription||"",this.name=t.name||"",this.uri=null}}class fI extends oC{constructor(t){super(fg,"xsdConnection",!0),this.dataDescription=t.dataDescription||"",this.name=t.name||"",this.rootElement=null,this.uri=null}}class fB{static[lG](t,a){if(fB.hasOwnProperty(t))return fB[t](a)}static connectionSet(t){return new fp(t)}static effectiveInputPolicy(t){return new fm(t)}static effectiveOutputPolicy(t){return new fb(t)}static operation(t){return new fy(t)}static rootElement(t){return new fw(t)}static soapAction(t){return new fx(t)}static soapAddress(t){return new fk(t)}static uri(t){return new fv(t)}static wsdlAddress(t){return new fA(t)}static wsdlConnection(t){return new fC(t)}static xmlConnection(t){return new fS(t)}static xsdConnection(t){return new fI(t)}}let fF=lW.datasets.id;class fM extends oB{constructor(t){super(fF,"data",t)}[lm](){return!0}}class fT extends oC{constructor(t){super(fF,"datasets",!0),this.data=null,this.Signature=null}[lS](t){let a=t[lA];("data"===a&&t[lv]===fF||"Signature"===a&&t[lv]===lW.signature.id)&&(this[a]=t),this[nH](t)}}class fR{static[lG](t,a){if(fR.hasOwnProperty(t))return fR[t](a)}static datasets(t){return new fT(t)}static data(t){return new fM(t)}}let fN=lW.localeSet.id;class fD extends oC{constructor(t){super(fN,"calendarSymbols",!0),this.name="gregorian",this.dayNames=new oS(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new oS(2)}}class fO extends oT{constructor(t){super(fN,"currencySymbol"),this.name=lQ(t.name,["symbol","isoname","decimal"])}}class fP extends oC{constructor(t){super(fN,"currencySymbols",!0),this.currencySymbol=new oS(3)}}class fE extends oT{constructor(t){super(fN,"datePattern"),this.name=lQ(t.name,["full","long","med","short"])}}class f_ extends oC{constructor(t){super(fN,"datePatterns",!0),this.datePattern=new oS(4)}}class fL extends oF{constructor(t){super(fN,"dateTimeSymbols")}}class fU extends oT{constructor(t){super(fN,"day")}}class fq extends oC{constructor(t){super(fN,"dayNames",!0),this.abbr=lY({data:t.abbr,defaultValue:0,validate:t=>1===t}),this.day=new oS(7)}}class fj extends oT{constructor(t){super(fN,"era")}}class f$ extends oC{constructor(t){super(fN,"eraNames",!0),this.era=new oS(2)}}class fH extends oC{constructor(t){super(fN,"locale",!0),this.desc=t.desc||"",this.name="isoname",this.calendarSymbols=null,this.currencySymbols=null,this.datePatterns=null,this.dateTimeSymbols=null,this.numberPatterns=null,this.numberSymbols=null,this.timePatterns=null,this.typeFaces=null}}class fz extends oC{constructor(t){super(fN,"localeSet",!0),this.locale=new oS}}class fG extends oT{constructor(t){super(fN,"meridiem")}}class fW extends oC{constructor(t){super(fN,"meridiemNames",!0),this.meridiem=new oS(2)}}class fV extends oT{constructor(t){super(fN,"month")}}class fX extends oC{constructor(t){super(fN,"monthNames",!0),this.abbr=lY({data:t.abbr,defaultValue:0,validate:t=>1===t}),this.month=new oS(12)}}class fK extends oT{constructor(t){super(fN,"numberPattern"),this.name=lQ(t.name,["full","long","med","short"])}}class fY extends oC{constructor(t){super(fN,"numberPatterns",!0),this.numberPattern=new oS(4)}}class fJ extends oT{constructor(t){super(fN,"numberSymbol"),this.name=lQ(t.name,["decimal","grouping","percent","minus","zero"])}}class fZ extends oC{constructor(t){super(fN,"numberSymbols",!0),this.numberSymbol=new oS(5)}}class fQ extends oT{constructor(t){super(fN,"timePattern"),this.name=lQ(t.name,["full","long","med","short"])}}class f1 extends oC{constructor(t){super(fN,"timePatterns",!0),this.timePattern=new oS(4)}}class f0 extends oC{constructor(t){super(fN,"typeFace",!0),this.name=0|t.name}}class f2 extends oC{constructor(t){super(fN,"typeFaces",!0),this.typeFace=new oS}}class f9{static[lG](t,a){if(f9.hasOwnProperty(t))return f9[t](a)}static calendarSymbols(t){return new fD(t)}static currencySymbol(t){return new fO(t)}static currencySymbols(t){return new fP(t)}static datePattern(t){return new fE(t)}static datePatterns(t){return new f_(t)}static dateTimeSymbols(t){return new fL(t)}static day(t){return new fU(t)}static dayNames(t){return new fq(t)}static era(t){return new fj(t)}static eraNames(t){return new f$(t)}static locale(t){return new fH(t)}static localeSet(t){return new fz(t)}static meridiem(t){return new fG(t)}static meridiemNames(t){return new fW(t)}static month(t){return new fV(t)}static monthNames(t){return new fX(t)}static numberPattern(t){return new fK(t)}static numberPatterns(t){return new fY(t)}static numberSymbol(t){return new fJ(t)}static numberSymbols(t){return new fZ(t)}static timePattern(t){return new fQ(t)}static timePatterns(t){return new f1(t)}static typeFace(t){return new f0(t)}static typeFaces(t){return new f2(t)}}let f5=lW.signature.id;class f3 extends oC{constructor(t){super(f5,"signature",!0)}}class f6{static[lG](t,a){if(f6.hasOwnProperty(t))return f6[t](a)}static signature(t){return new f3(t)}}let f7=lW.stylesheet.id;class f8 extends oC{constructor(t){super(f7,"stylesheet",!0)}}class f4{static[lG](t,a){if(f4.hasOwnProperty(t))return f4[t](a)}static stylesheet(t){return new f8(t)}}let ge=lW.xdp.id;class gt extends oC{constructor(t){super(ge,"xdp",!0),this.uuid=t.uuid||"",this.timeStamp=t.timeStamp||"",this.config=null,this.connectionSet=null,this.datasets=null,this.localeSet=null,this.stylesheet=new oS,this.template=null}[lI](t){let a=lW[t[lA]];return a&&t[lv]===a.id}}class ga{static[lG](t,a){if(ga.hasOwnProperty(t))return ga[t](a)}static xdp(t){return new gt(t)}}let gi=lW.xhtml.id,gr=Symbol(),gs=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"]),gn=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",t=>"none"===t?"none":"normal"],["xfa-font-horizontal-scale",t=>`scaleX(${Math.max(0,parseInt(t)/100).toFixed(2)})`],["xfa-font-vertical-scale",t=>`scaleY(${Math.max(0,parseInt(t)/100).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(t,a)=>oO(.99*(t=a.fontSize=Math.abs(l1(t))))],["letter-spacing",t=>oO(l1(t))],["line-height",t=>oO(l1(t))],["margin",t=>oO(l1(t))],["margin-bottom",t=>oO(l1(t))],["margin-left",t=>oO(l1(t))],["margin-right",t=>oO(l1(t))],["margin-top",t=>oO(l1(t))],["text-indent",t=>oO(l1(t))],["font-family",t=>t],["vertical-align",t=>oO(l1(t))]]),gl=/\s+/g,go=/[\r\n]+/g,gc=/\r\n?/g,gh=new Set(["body","html"]);class gu extends oB{constructor(t,a){super(gi,a),this[gr]=!1,this.style=t.style||""}[nG](t){var a;super[nG](t),this.style=(a=this,a.style?a.style.split(";").filter(t=>!!t.trim()).map(t=>t.split(":",2).map(t=>t.trim())).filter(([t,i])=>("font-family"===t&&a[ll].usedTypefaces.add(i),gs.has(t))).map(t=>t.join(":")).join(";"):"")}[nj](){return!gh.has(this[lA])}[lB](t,a=!1){a?this[gr]=!0:(t=t.replaceAll(go,""),this.style.includes("xfa-spacerun:yes")||(t=t.replaceAll(gl," "))),t&&(this[nY]+=t)}[lF](t,a=!0){let i=Object.create(null),r={top:NaN,bottom:NaN,left:NaN,right:NaN},s=null;for(let[t,a]of this.style.split(";").map(t=>t.split(":",2)))switch(t){case"font-family":i.typeface=lK(a);break;case"font-size":i.size=l1(a);break;case"font-weight":i.weight=a;break;case"font-style":i.posture=a;break;case"letter-spacing":i.letterSpacing=l1(a);break;case"margin":let n=a.split(/ \t/).map(t=>l1(t));switch(n.length){case 1:r.top=r.bottom=r.left=r.right=n[0];break;case 2:r.top=r.bottom=n[0],r.left=r.right=n[1];break;case 3:r.top=n[0],r.bottom=n[2],r.left=r.right=n[1];break;case 4:r.top=n[0],r.left=n[1],r.bottom=n[2],r.right=n[3]}break;case"margin-top":r.top=l1(a);break;case"margin-bottom":r.bottom=l1(a);break;case"margin-left":r.left=l1(a);break;case"margin-right":r.right=l1(a);break;case"line-height":s=l1(a)}if(t.pushData(i,r,s),this[nY])t.addString(this[nY]);else for(let a of this[lt]())"#text"!==a[lA]?a[lF](t):t.addString(a[nY]);a&&t.popFont()}[lj](t){let a,i=[];return(this[nQ]={children:i},this[nz]({}),0!==i.length||this[nY])?(a=this[gr]?this[nY]?this[nY].replaceAll(gc,"\n"):void 0:this[nY]||void 0,l9.success({name:this[lA],attributes:{href:this.href,style:function(t,a,i){let r=Object.create(null);if(!t)return r;let s=Object.create(null);for(let[a,i]of t.split(";").map(t=>t.split(":",2))){let t=gn.get(a);if(""===t)continue;let n=i;t&&(n="string"==typeof t?t:t(i,s)),a.endsWith("scale")?r.transform=r.transform?`${r[a]} ${n}`:n:r[a.replaceAll(/-([a-zA-Z])/g,(t,a)=>a.toUpperCase())]=n}if(r.fontFamily&&oK({typeface:r.fontFamily,weight:r.fontWeight||"normal",posture:r.fontStyle||"normal",size:s.fontSize||0},a,a[ll].fontFinder,r),i&&r.verticalAlign&&"0px"!==r.verticalAlign&&r.fontSize){let t=l1(r.fontSize);r.fontSize=oO(.583*t),r.verticalAlign=oO(Math.sign(l1(r.verticalAlign))*t*.333)}return i&&r.fontSize&&(r.fontSize=`calc(${r.fontSize} * var(--total-scale-factor))`),oz(r),r}(this.style,this,this[gr])},children:i,value:a})):l9.EMPTY}}class gd extends gu{constructor(t){super(t,"a"),this.href=oY(t.href)||""}}class gf extends gu{constructor(t){super(t,"b")}[lF](t){t.pushFont({weight:"bold"}),super[lF](t),t.popFont()}}class gg extends gu{constructor(t){super(t,"body")}[lj](t){let a=super[lj](t),{html:i}=a;return i?(i.name="div",i.attributes.class=["xfaRich"],a):l9.EMPTY}}class gp extends gu{constructor(t){super(t,"br")}[lU](){return"\n"}[lF](t){t.addString("\n")}[lj](t){return l9.success({name:"br"})}}class gm extends gu{constructor(t){super(t,"html")}[lj](t){let a=[];if(this[nQ]={children:a},this[nz]({}),0===a.length)return l9.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[nY]||""});if(1===a.length){let t=a[0];if(t.attributes?.class.includes("xfaRich"))return l9.success(t)}return l9.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:a})}}class gb extends gu{constructor(t){super(t,"i")}[lF](t){t.pushFont({posture:"italic"}),super[lF](t),t.popFont()}}class gy extends gu{constructor(t){super(t,"li")}}class gw extends gu{constructor(t){super(t,"ol")}}class gx extends gu{constructor(t){super(t,"p")}[lF](t){super[lF](t,!1),t.addString("\n"),t.addPara(),t.popFont()}[lU](){return this[ls]()[lt]().at(-1)===this?super[lU]():super[lU]()+"\n"}}class gk extends gu{constructor(t){super(t,"span")}}class gv extends gu{constructor(t){super(t,"sub")}}class gA extends gu{constructor(t){super(t,"sup")}}class gC extends gu{constructor(t){super(t,"ul")}}class gS{static[lG](t,a){if(gS.hasOwnProperty(t))return gS[t](a)}static a(t){return new gd(t)}static b(t){return new gf(t)}static body(t){return new gg(t)}static br(t){return new gp(t)}static html(t){return new gm(t)}static i(t){return new gb(t)}static li(t){return new gy(t)}static ol(t){return new gw(t)}static p(t){return new gx(t)}static span(t){return new gk(t)}static sub(t){return new gv(t)}static sup(t){return new gA(t)}static ul(t){return new gC(t)}}let gI={config:ff,connection:fB,datasets:fR,localeSet:f9,signature:f6,stylesheet:f4,template:h3,xdp:ga,xhtml:gS};class gB{constructor(t){this.namespaceId=t}[lG](t,a){return new oB(this.namespaceId,t,a)}}class gF extends oC{constructor(t){super(-1,"root",Object.create(null)),this.element=null,this[lc]=t}[lS](t){return this.element=t,!0}[n1](){super[n1](),this.element.template instanceof hV&&(this[lc].set(lN,this.element),this.element.template[lD](this[lc]),this.element.template[lc]=this[lc])}}class gM extends oC{constructor(){super(-1,"",Object.create(null))}[lS](t){return!1}}class gT{constructor(t=null){this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max(...Object.values(lW).map(({id:t})=>t)),this._currentNamespace=t||new gB(++this._nextNsId)}buildRoot(t){return new gF(t)}build({nsPrefix:t,name:a,attributes:i,namespace:r,prefixes:s}){let n=null!==r;if(n&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(r)),s&&this._addNamespacePrefix(s),i.hasOwnProperty(lC)){let t=gI.datasets,a=i[lC],r=null;for(let[i,s]of Object.entries(a))if(this._getNamespaceToUse(i)===t){r={xfa:s};break}r?i[lC]=r:delete i[lC]}let l=this._getNamespaceToUse(t),o=l?.[lG](a,i)||new gM;return o[lm]()&&this._nsAgnosticLevel++,(n||s||o[lm]())&&(o[nV]={hasNamespace:n,prefixes:s,nsAgnostic:o[lm]()}),o}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(t){let a=this._namespaces.get(t);if(a)return a;for(let[i,{check:r}]of Object.entries(lW))if(r(t)){if(a=gI[i])return this._namespaces.set(t,a),a;break}return a=new gB(++this._nextNsId),this._namespaces.set(t,a),a}_addNamespacePrefix(t){for(let{prefix:a,value:i}of t){let t=this._searchNamespace(i),r=this._namespacePrefixes.get(a);r||(r=[],this._namespacePrefixes.set(a,r)),r.push(t)}}_getNamespaceToUse(t){if(!t)return this._currentNamespace;let a=this._namespacePrefixes.get(t);return a?.length>0?a.at(-1):(f(`Unknown namespace prefix: ${t}.`),null)}clean(t){let{hasNamespace:a,prefixes:i,nsAgnostic:r}=t;a&&(this._currentNamespace=this._namespaceStack.pop()),i&&i.forEach(({prefix:t})=>{this._namespacePrefixes.get(t).pop()}),r&&this._nsAgnosticLevel--}}class gR extends nF{constructor(t=null,a=!1){super(),this._builder=new gT(t),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=0,this._whiteRegex=/^\s+$/,this._nbsps=/\xa0+/g,this._richText=a}parse(t){if(this.parseXml(t),0===this._errorCode)return this._current[n1](),this._current.element}onText(t){t=t.replace(this._nbsps,t=>t.slice(1)+" "),this._richText||this._current[nj]()?this._current[lB](t,this._richText):this._whiteRegex.test(t)||this._current[lB](t.trim())}onCdata(t){this._current[lB](t)}_mkAttributes(t,a){let i=null,r=null,s=Object.create({});for(let{name:n,value:l}of t)if("xmlns"===n)i?f(`XFA - multiple namespace definition in <${a}>`):i=l;else if(n.startsWith("xmlns:")){let t=n.substring(6);(r??=[]).push({prefix:t,value:l})}else{let t=n.indexOf(":");if(-1===t)s[n]=l;else{let a=s[lC]??=Object.create(null),[i,r]=[n.slice(0,t),n.slice(t+1)];(a[i]||=Object.create(null))[r]=l}}return[i,r,s]}_getNameAndPrefix(t,a){let i=t.indexOf(":");return -1===i?[t,null]:[t.substring(i+1),a?"":t.substring(0,i)]}onBeginElement(t,a,i){let[r,s,n]=this._mkAttributes(a,t),[l,o]=this._getNameAndPrefix(t,this._builder.isNsAgnostic()),c=this._builder.build({nsPrefix:o,name:l,attributes:n,namespace:r,prefixes:s});c[ll]=this._globalData,i?(c[n1](),this._current[lS](c)&&c[lP](this._ids),c[nG](this._builder)):(this._stack.push(this._current),this._current=c)}onEndElement(t){let a=this._current;if(a[ld]()&&"string"==typeof a[nY]){let t=new gR;t._globalData=this._globalData;let i=t.parse(a[nY]);a[nY]=null,a[lS](i)}a[n1](),this._current=this._stack.pop(),this._current[lS](a)&&a[lP](this._ids),a[nG](this._builder)}onError(t){this._errorCode=t}}class gN{constructor(t){try{this.root=(new gR).parse(gN._createDocument(t));const a=new h8(this.root);this.form=a.bind(),this.dataHandler=new h4(this.root,a.getData()),this.form[ll].template=this.form}catch(t){f(`XFA - an error occurred during parsing and binding: ${t}`)}}isValid(){return!(!this.root||!this.form)}_createPagesHelper(){let t=this.form[lq]();return new Promise((a,i)=>{let r=()=>{try{let i=t.next();i.done?a(i.value):setTimeout(r,0)}catch(t){i(t)}};setTimeout(r,0)})}async _createPages(){try{this.pages=await this._createPagesHelper(),this.dims=this.pages.children.map(t=>{let{width:a,height:i}=t.attributes.style;return[0,0,parseInt(a),parseInt(i)]})}catch(t){f(`XFA - an error occurred during layout: ${t}`)}}getBoundingBox(t){return this.dims[t]}async getNumPages(){return this.pages||await this._createPages(),this.dims.length}setImages(t){this.form[ll].images=t}setFonts(t){this.form[ll].fontFinder=new l5(t);let a=[];for(let t of this.form[ll].usedTypefaces)t=lK(t),this.form[ll].fontFinder.find(t)||a.push(t);return a.length>0?a:null}appendFonts(t,a){this.form[ll].fontFinder.add(t,a)}async getPages(){this.pages||await this._createPages();let t=this.pages;return this.pages=null,t}serializeData(t){return this.dataHandler.serialize(t)}static _createDocument(t){return t["/xdp:xdp"]?Object.values(t).join(""):t["xdp:xdp"]}static getRichTextAsHtml(t){if(!t||"string"!=typeof t)return null;try{let a=new gR(gS,!0).parse(t);if(!["body","xhtml"].includes(a[lA])){let t=gS.body({});t[nH](a),a=t}let i=a[lj]();if(!i.success)return null;let{html:r}=i,{attributes:s}=r;return s&&(s.class&&(s.class=s.class.filter(t=>!t.startsWith("xfa"))),s.dir="auto"),{html:r,str:a[lU]()}}catch(t){f(`XFA - an error occurred during parsing of rich text: ${t}`)}return null}}class gD{static createGlobals(t){return Promise.all([t.ensureCatalog("acroForm"),t.ensureDoc("xfaDatasets"),t.ensureCatalog("structTreeRoot"),t.ensureCatalog("baseUrl"),t.ensureCatalog("attachments"),t.ensureCatalog("globalColorSpaceCache")]).then(([a,i,r,s,n,l])=>({pdfManager:t,acroForm:a instanceof K?a:K.empty,xfaDatasets:i,structTreeRoot:r,baseUrl:s,attachments:n,globalColorSpaceCache:l}),t=>(f(`createGlobals: "${t}".`),null))}static async create(t,a,i,r,s,n,l,o){let c=s?await this._getPageIndex(t,a,i.pdfManager):null;return i.pdfManager.ensure(this,"_create",[t,a,i,r,s,n,l,c,o])}static _create(t,a,i,r,s=!1,l=null,o=null,c=null,h=null){let u=t.fetchIfRef(a);if(!(u instanceof K))return;let d=u.get("Subtype");if(d=d instanceof W?d.name:null,o&&!o.has(n[d.toUpperCase()]))return null;let{acroForm:g,pdfManager:p}=i,m=a instanceof Y?a.toString():`annot_${r.createObjId()}`,b={xref:t,ref:a,dict:u,subtype:d,id:m,annotationGlobals:i,collectFields:s,orphanFields:l,needAppearances:!s&&!0===g.get("NeedAppearances"),pageIndex:c,evaluatorOptions:p.evaluatorOptions,pageRef:h};switch(d){case"Link":return new gV(b);case"Text":return new gW(b);case"Widget":let y=em({dict:u,key:"FT"});switch(y=y instanceof W?y.name:null){case"Tx":return new g$(b);case"Btn":return new gH(b);case"Ch":return new gz(b);case"Sig":return new gG(b)}return f(`Unimplemented widget field type "${y}", falling back to base field type.`),new gj(b);case"Popup":return new gX(b);case"FreeText":return new gK(b);case"Line":return new gY(b);case"Square":return new gJ(b);case"Circle":return new gZ(b);case"PolyLine":return new gQ(b);case"Polygon":return new g1(b);case"Caret":return new g0(b);case"Ink":return new g2(b);case"Highlight":return new g9(b);case"Underline":return new g5(b);case"Squiggly":return new g3(b);case"StrikeOut":return new g6(b);case"Stamp":return new g7(b);case"FileAttachment":return new g8(b);default:return s||f(d?`Unimplemented annotation type "${d}", falling back to base annotation.`:"Annotation is missing the required /Subtype."),new gL(b)}}static async _getPageIndex(t,a,i){try{let r=await t.fetchIfRefAsync(a);if(!(r instanceof K))return -1;let s=r.getRaw("P");if(s instanceof Y)try{return await i.ensureCatalog("getPageIndex",[s])}catch(t){d(`_getPageIndex -- not a valid page reference: "${t}".`)}if(r.has("Kids"))return -1;let n=await i.ensureDoc("numPages");for(let t=0;t<n;t++){let r=await i.getPage(t);for(let s of(await i.ensure(r,"annotations")))if(s instanceof Y&&ea(s,a))return t}}catch(t){f(`_getPageIndex: "${t}".`)}return -1}static generateImages(t,a,i){let r;if(!i)return f("generateImages: OffscreenCanvas is not supported, cannot save or print some annotations with images."),null;for(let{bitmapId:i,bitmap:s}of t)s&&(r||=new Map).set(i,g7.createImage(s,a));return r}static async saveNewAnnotations(t,a,i,r,s){let n,l=t.xref,o=[],{isOffscreenCanvasSupported:c}=t.options;for(let h of i)if(!h.deleted)switch(h.annotationType){case 3:if(!n){let t=new K(l);t.setIfName("BaseFont","Helvetica"),t.setIfName("Type","Font"),t.setIfName("Subtype","Type1"),t.setIfName("Encoding","WinAnsiEncoding"),n=l.getNewTemporaryRef(),s.put(n,{data:t})}o.push(gK.createNewAnnotation(l,h,s,{evaluator:t,task:a,baseFontRef:n}));break;case 9:h.quadPoints?o.push(g9.createNewAnnotation(l,h,s)):o.push(g2.createNewAnnotation(l,h,s));break;case 15:o.push(g2.createNewAnnotation(l,h,s));break;case 13:let i=c?await r?.get(h.bitmapId):null;if(i?.imageStream){let{imageStream:t,smaskStream:a}=i;if(a){let i=l.getNewTemporaryRef();s.put(i,{data:a}),t.dict.set("SMask",i)}let r=i.imageRef=l.getNewTemporaryRef();s.put(r,{data:t}),i.imageStream=i.smaskStream=null}o.push(g7.createNewAnnotation(l,h,s,{image:i}));break;case 101:o.push(g7.createNewAnnotation(l,h,s,{}))}return{annotations:(await Promise.all(o)).flat()}}static async printNewAnnotations(t,a,i,r,s){if(!r)return null;let{options:n,xref:l}=a,o=[];for(let c of r)if(!c.deleted)switch(c.annotationType){case 3:o.push(gK.createNewPrintAnnotation(t,l,c,{evaluator:a,task:i,evaluatorOptions:n}));break;case 9:c.quadPoints?o.push(g9.createNewPrintAnnotation(t,l,c,{evaluatorOptions:n})):o.push(g2.createNewPrintAnnotation(t,l,c,{evaluatorOptions:n}));break;case 15:o.push(g2.createNewPrintAnnotation(t,l,c,{evaluatorOptions:n}));break;case 13:let r=n.isOffscreenCanvasSupported?await s?.get(c.bitmapId):null;if(r?.imageStream){let{imageStream:t,smaskStream:a}=r;a&&t.dict.set("SMask",a),r.imageRef=new tB(t,t.length),r.imageStream=r.smaskStream=null}o.push(g7.createNewPrintAnnotation(t,l,c,{image:r,evaluatorOptions:n}));break;case 101:o.push(g7.createNewPrintAnnotation(t,l,c,{evaluatorOptions:n}))}return Promise.all(o)}}function gO(t,a=new Uint8ClampedArray(3)){if(!Array.isArray(t))return a;let i=a||new Uint8ClampedArray(3);switch(t.length){case 0:return null;case 1:return ty.gray.getRgbItem(t,0,i,0),i;case 3:return ty.rgb.getRgbItem(t,0,i,0),i;case 4:return ty.cmyk.getRgbItem(t,0,i,0),i;default:return a}}function gP(t,a=null){return t&&Array.from(t,t=>t/255)||a}function gE(t,a){let i=t.getArray("QuadPoints");if(!eC(i,null)||0===i.length||i.length%8>0)return null;let r=new Float32Array(i.length);for(let t=0,s=i.length;t<s;t+=8){let[s,n,l,o,c,h,u,d]=i.slice(t,t+8),f=Math.min(s,l,c,u),g=Math.max(s,l,c,u),p=Math.min(n,o,h,d),m=Math.max(n,o,h,d);if(null!==a&&(f<a[0]||g>a[2]||p<a[1]||m>a[3]))return null;r.set([f,m,g,m,f,p,g,p],t)}return r}function g_(t,a,i){let r=new Float32Array([1/0,1/0,-1/0,-1/0]);R.axialAlignedBoundingBox(a,i,r);let[s,n,l,o]=r;if(s===l||n===o)return[1,0,0,1,t[0],t[1]];let c=(t[2]-t[0])/(l-s),h=(t[3]-t[1])/(o-n);return[c,0,0,h,t[0]-s*c,t[1]-n*h]}class gL{constructor(t){const{dict:a,xref:i,annotationGlobals:r,ref:s,orphanFields:n}=t,l=n?.get(s);l&&a.set("Parent",l),this.setTitle(a.get("T")),this.setContents(a.get("Contents")),this.setModificationDate(a.get("M")),this.setFlags(a.get("F")),this.setRectangle(a.getArray("Rect")),this.setColor(a.getArray("C")),this.setBorderStyle(a),this.setAppearance(a),this.setOptionalContent(a);const c=a.get("MK");this.setBorderAndBackgroundColors(c),this.setRotation(c,a),this.ref=t.ref instanceof Y?t.ref:null,this._streams=[],this.appearance&&this._streams.push(this.appearance);const h=!!(128&this.flags),u=!!(512&this.flags);if(this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype,hasOwnCanvas:!1,noRotate:!!(16&this.flags),noHTML:h&&u,isEditable:!1,structParent:-1},r.structTreeRoot){let i=a.get("StructParent");this.data.structParent=i=Number.isInteger(i)&&i>=0?i:-1,r.structTreeRoot.addAnnotationIdToPage(t.pageRef,i)}if(t.collectFields){const r=a.get("Kids");if(Array.isArray(r)){const t=[];for(const a of r)a instanceof Y&&t.push(a.toString());0!==t.length&&(this.data.kidIds=t)}this.data.actions=eN(i,a,o),this.data.fieldName=this._constructFieldName(a),this.data.pageIndex=t.pageIndex}const d=a.get("IT");d instanceof W&&(this.data.it=d.name),this._isOffscreenCanvasSupported=t.evaluatorOptions.isOffscreenCanvasSupported,this._fallbackFontDict=null,this._needAppearances=!1}_hasFlag(t,a){return!!(t&a)}_buildFlags(t,a){let{flags:i}=this;if(void 0===t){if(void 0===a)return;return a?-5&i:-3&i|4}return t?(i|=4,a?-33&i|2:-3&i|32):(i&=-35,a?-5&i:4|i)}_isViewable(t){return!this._hasFlag(t,1)&&!this._hasFlag(t,32)}_isPrintable(t){return this._hasFlag(t,4)&&!this._hasFlag(t,2)&&!this._hasFlag(t,1)}mustBeViewed(t,a){let i=t?.get(this.data.id)?.noView;return void 0!==i?!i:this.viewable&&!this._hasFlag(this.flags,2)}mustBePrinted(t){let a=t?.get(this.data.id)?.noPrint;return void 0!==a?!a:this.printable}mustBeViewedWhenEditing(t,a=null){return t?!this.data.isEditable:!a?.has(this.data.id)}get viewable(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}get printable(){return null!==this.data.quadPoints&&0!==this.flags&&this._isPrintable(this.flags)}_parseStringHelper(t){let a="string"==typeof t?D(t):"";return{str:a,dir:a&&"rtl"===s2(a).dir?"rtl":"ltr"}}setDefaultAppearance(t){let{dict:a,annotationGlobals:i}=t,r=em({dict:a,key:"DA"})||i.acroForm.get("DA");this._defaultAppearance="string"==typeof r?r:"",this.data.defaultAppearanceData=np(this._defaultAppearance)}setTitle(t){this._title=this._parseStringHelper(t)}setContents(t){this._contents=this._parseStringHelper(t)}setModificationDate(t){this.modificationDate="string"==typeof t?t:null}setFlags(t){this.flags=Number.isInteger(t)&&t>0?t:0,1&this.flags&&"Annotation"!==this.constructor.name&&(this.flags^=1)}hasFlag(t){return this._hasFlag(this.flags,t)}setRectangle(t){this.rectangle=eB(t,[0,0,0,0])}setColor(t){this.color=gO(t)}setLineEndings(t){if(this.lineEndings=["None","None"],Array.isArray(t)&&2===t.length)for(let a=0;a<2;a++){let i=t[a];if(i instanceof W)switch(i.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[a]=i.name;continue}f(`Ignoring invalid lineEnding: ${i}`)}}setRotation(t,a){this.rotation=0;let i=t instanceof K?t.get("R")||0:a.get("Rotate")||0;Number.isInteger(i)&&0!==i&&((i%=360)<0&&(i+=360),i%90==0&&(this.rotation=i))}setBorderAndBackgroundColors(t){t instanceof K?(this.borderColor=gO(t.getArray("BC"),null),this.backgroundColor=gO(t.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(t){if(this.borderStyle=new gU,t instanceof K)if(t.has("BS")){let a=t.get("BS");if(a instanceof K){let t=a.get("Type");(!t||Q(t,"Border"))&&(this.borderStyle.setWidth(a.get("W"),this.rectangle),this.borderStyle.setStyle(a.get("S")),this.borderStyle.setDashArray(a.getArray("D")))}}else if(t.has("Border")){let a=t.getArray("Border");Array.isArray(a)&&a.length>=3&&(this.borderStyle.setHorizontalCornerRadius(a[0]),this.borderStyle.setVerticalCornerRadius(a[1]),this.borderStyle.setWidth(a[2],this.rectangle),4===a.length&&this.borderStyle.setDashArray(a[3],!0))}else this.borderStyle.setWidth(0)}setAppearance(t){this.appearance=null;let a=t.get("AP");if(!(a instanceof K))return;let i=a.get("N");if(i instanceof ei){this.appearance=i;return}if(!(i instanceof K))return;let r=t.get("AS");if(!(r instanceof W&&i.has(r.name)))return;let s=i.get(r.name);s instanceof ei&&(this.appearance=s)}setOptionalContent(t){this.oc=null;let a=t.get("OC");a instanceof W?f("setOptionalContent: Support for /Name-entry is not implemented."):a instanceof K&&(this.oc=a)}async loadResources(t,a){let i=await a.dict.getAsync("Resources");return i&&await nq.load(i,t,i.xref),i}async getOperatorList(t,a,i,r){let s,{hasOwnCanvas:n,id:l,rect:o}=this.data,c=this.appearance,h=!!(n&&2&i);if(h&&(0===this.width||0===this.height))return this.data.hasOwnCanvas=!1,{opList:new tP,separateForm:!1,separateCanvas:!1};if(!c){if(!h)return{opList:new tP,separateForm:!1,separateCanvas:!1};(c=new ts("")).dict=new K}let u=c.dict,d=await this.loadResources(el,c),f=eI(u.getArray("BBox"),[0,0,1,1]),g=eS(u.getArray("Matrix"),en),p=g_(o,f,g),m=new tP;return this.oc&&(s=await t.parseMarkedContentProps(this.oc,null)),void 0!==s&&m.addOp(70,["OC",s]),m.addOp(80,[l,o,p,g,h]),await t.getOperatorList({stream:c,task:a,resources:d,operatorList:m,fallbackFontDict:this._fallbackFontDict}),m.addOp(81,[]),void 0!==s&&m.addOp(71,[]),this.reset(),{opList:m,separateForm:!1,separateCanvas:h}}async save(t,a,i,r){return null}get overlaysTextContent(){return!1}get hasTextContent(){return!1}async extractTextContent(t,a,i){if(!this.appearance)return;let r=await this.loadResources(eo,this.appearance),s=[],n=[],l=null;if(await t.getTextContent({stream:this.appearance,task:a,resources:r,includeMarkedContent:!0,keepWhiteSpace:!0,sink:{desiredSize:Math.Infinity,ready:!0,enqueue(t,a){for(let a of t.items)void 0!==a.str&&(l||=a.transform.slice(-2),n.push(a.str),a.hasEOL&&(s.push(n.join("").trimEnd()),n.length=0))}},viewBox:i}),this.reset(),n.length&&s.push(n.join("").trimEnd()),s.length>1||s[0]){let t=this.appearance.dict,a=eI(t.getArray("BBox"),null),i=eS(t.getArray("Matrix"),null);this.data.textPosition=this._transformPoint(l,a,i),this.data.textContent=s}}_transformPoint(t,a,i){let{rect:r}=this.data;a||=[0,0,1,1],i||=[1,0,0,1,0,0];let s=g_(r,a,i);s[4]-=r[0],s[5]-=r[1];let n=t.slice();return R.applyTransform(n,s),R.applyTransform(n,i),n}getFieldObject(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null}reset(){for(let t of this._streams)t.reset()}_constructFieldName(t){if(!t.has("T")&&!t.has("Parent"))return f("Unknown field name, falling back to empty field name."),"";if(!t.has("Parent"))return D(t.get("T"));let a=[];t.has("T")&&a.unshift(D(t.get("T")));let i=t,r=new J;for(t.objId&&r.put(t.objId);i.has("Parent")&&!(!((i=i.get("Parent"))instanceof K)||i.objId&&r.has(i.objId));)i.objId&&r.put(i.objId),i.has("T")&&a.unshift(D(i.get("T")));return a.join(".")}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}}class gU{constructor(){this.width=1,this.rawWidth=1,this.style=1,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(t,a=[0,0,0,0]){if(t instanceof W)this.width=0;else if("number"==typeof t){if(t>0){this.rawWidth=t;let i=(a[2]-a[0])/2,r=(a[3]-a[1])/2;i>0&&r>0&&(t>i||t>r)&&(f(`AnnotationBorderStyle.setWidth - ignoring width: ${t}`),t=1)}this.width=t}}setStyle(t){if(t instanceof W)switch(t.name){case"S":this.style=1;break;case"D":this.style=2;break;case"B":this.style=3;break;case"I":this.style=4;break;case"U":this.style=5}}setDashArray(t,a=!1){if(Array.isArray(t)){let i=!0,r=!0;for(let a of t){if(!(+a>=0)){i=!1;break}a>0&&(r=!1)}0===t.length||i&&!r?(this.dashArray=t,a&&this.setStyle(W.get("D"))):this.width=0}else t&&(this.width=0)}setHorizontalCornerRadius(t){Number.isInteger(t)&&(this.horizontalCornerRadius=t)}setVerticalCornerRadius(t){Number.isInteger(t)&&(this.verticalCornerRadius=t)}}class gq extends gL{constructor(t){super(t);const{dict:a}=t;if(a.has("IRT")){const t=a.getRaw("IRT");this.data.inReplyTo=t instanceof Y?t.toString():null;const i=a.get("RT");this.data.replyType=i instanceof W?i.name:"R"}let i=null;if(this.data.replyType===l){const t=a.get("IRT");this.setTitle(t.get("T")),this.data.titleObj=this._title,this.setContents(t.get("Contents")),this.data.contentsObj=this._contents,t.has("CreationDate")?(this.setCreationDate(t.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,t.has("M")?(this.setModificationDate(t.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,i=t.getRaw("Popup"),t.has("C")?(this.setColor(t.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.titleObj=this._title,this.setCreationDate(a.get("CreationDate")),this.data.creationDate=this.creationDate,i=a.getRaw("Popup"),a.has("C")||(this.data.color=null);this.data.popupRef=i instanceof Y?i.toString():null,a.has("RC")&&(this.data.richText=gN.getRichTextAsHtml(a.get("RC")))}setCreationDate(t){this.creationDate="string"==typeof t?t:null}_setDefaultAppearance({xref:t,extra:a,strokeColor:i,fillColor:r,blendMode:s,strokeAlpha:n,fillAlpha:l,pointsCallback:o}){let c=this.data.rect=[1/0,1/0,-1/0,-1/0],h=["q"];a&&h.push(a),i&&h.push(`${i[0]} ${i[1]} ${i[2]} RG`),r&&h.push(`${r[0]} ${r[1]} ${r[2]} rg`);let u=this.data.quadPoints||Float32Array.from([this.rectangle[0],this.rectangle[3],this.rectangle[2],this.rectangle[3],this.rectangle[0],this.rectangle[1],this.rectangle[2],this.rectangle[1]]);for(let t=0,a=u.length;t<a;t+=8){let a=o(h,u.subarray(t,t+8));R.rectBoundingBox(...a,c)}h.push("Q");let d=new K(t),f=new K(t);f.setIfName("Subtype","Form");let g=new ts(h.join(" "));g.dict=f,d.set("Fm0",g);let p=new K(t);s&&p.setIfName("BM",s),p.setIfNumber("CA",n),p.setIfNumber("ca",l);let m=new K(t);m.set("GS0",p);let b=new K(t);b.set("ExtGState",m),b.set("XObject",d);let y=new K(t);y.set("Resources",b),y.set("BBox",c),this.appearance=new ts("/GS0 gs /Fm0 Do"),this.appearance.dict=y,this._streams.push(this.appearance,g)}static async createNewAnnotation(t,a,i,r){let s,n=a.ref||=t.getNewTemporaryRef(),l=await this.createNewAppearanceStream(a,t,r);if(l){let r=t.getNewTemporaryRef();s=this.createNewDict(a,t,{apRef:r}),i.put(r,{data:l})}else s=this.createNewDict(a,t,{});Number.isInteger(a.parentTreeId)&&s.set("StructParent",a.parentTreeId),i.put(n,{data:s});let o={ref:n},{popup:c}=a;if(c){if(c.deleted)return s.delete("Popup"),s.delete("Contents"),s.delete("RC"),o;let a=c.ref||=t.getNewTemporaryRef();c.parent=n;let r=gX.createNewDict(c,t);return i.put(a,{data:r}),s.setIfDefined("Contents",eU(c.contents)),s.set("Popup",a),[o,{ref:a}]}return o}static async createNewPrintAnnotation(t,a,i,r){let s=await this.createNewAppearanceStream(i,a,r),n=this.createNewDict(i,a,s?{ap:s}:{}),l=new this.prototype.constructor({dict:n,xref:a,annotationGlobals:t,evaluatorOptions:r.evaluatorOptions});return i.ref&&(l.ref=l.refToReplace=i.ref),l}}class gj extends gL{constructor(t){super(t);const{dict:a,xref:i,annotationGlobals:r}=t,s=this.data;this._needAppearances=t.needAppearances,s.annotationType=n.WIDGET,void 0===s.fieldName&&(s.fieldName=this._constructFieldName(a)),void 0===s.actions&&(s.actions=eN(i,a,o));let l=em({dict:a,key:"V",getArray:!0});s.fieldValue=this._decodeFormValue(l);const c=em({dict:a,key:"DV",getArray:!0});if(s.defaultFieldValue=this._decodeFormValue(c),void 0===l&&r.xfaDatasets){const t=this._title.str;t&&(this._hasValueFromXFA=!0,s.fieldValue=l=r.xfaDatasets.getValue(t))}void 0===l&&null!==s.defaultFieldValue&&(s.fieldValue=s.defaultFieldValue),s.alternativeText=D(a.get("TU")||""),this.setDefaultAppearance(t),s.hasAppearance||=this._needAppearances&&void 0!==s.fieldValue&&null!==s.fieldValue;const h=em({dict:a,key:"FT"});s.fieldType=h instanceof W?h.name:null;const u=em({dict:a,key:"DR"}),d=r.acroForm.get("DR"),f=this.appearance?.dict.get("Resources");this._fieldResources={localResources:u,acroFormResources:d,appearanceResources:f,mergedResources:K.merge({xref:i,dictArray:[u,f,d],mergeSubDicts:!0})},s.fieldFlags=em({dict:a,key:"Ff"}),(!Number.isInteger(s.fieldFlags)||s.fieldFlags<0)&&(s.fieldFlags=0),s.password=this.hasFieldFlag(8192),s.readOnly=this.hasFieldFlag(1),s.required=this.hasFieldFlag(2),s.hidden=this._hasFlag(s.annotationFlags,2)||this._hasFlag(s.annotationFlags,32)}_decodeFormValue(t){return Array.isArray(t)?t.filter(t=>"string"==typeof t).map(t=>D(t)):t instanceof W?D(t.name):"string"==typeof t?D(t):null}hasFieldFlag(t){return!!(this.data.fieldFlags&t)}_isViewable(t){return!0}mustBeViewed(t,a){return a?this.viewable:super.mustBeViewed(t,a)&&!this._hasFlag(this.flags,32)}getRotationMatrix(t){let a=t?.get(this.data.id)?.rotation;return void 0===a&&(a=this.rotation),0===a?en:ej(a,this.width,this.height)}getBorderAndBackgroundAppearances(t){let a=t?.get(this.data.id)?.rotation;if(void 0===a&&(a=this.rotation),!this.backgroundColor&&!this.borderColor)return"";let i=0===a||180===a?`0 0 ${this.width} ${this.height} re`:`0 0 ${this.height} ${this.width} re`,r="";return this.backgroundColor&&(r=`${nb(this.backgroundColor,!0)} ${i} f `),this.borderColor&&(r+=`${this.borderStyle.width||1} w ${nb(this.borderColor,!1)} ${i} S `),r}async getOperatorList(t,a,i,r){let s;if(16&i&&!(this instanceof gG)&&!this.data.noHTML&&!this.data.hasOwnCanvas)return{opList:new tP,separateForm:!0,separateCanvas:!1};if(!this._hasText)return super.getOperatorList(t,a,i,r);let n=await this._getAppearance(t,a,i,r);if(this.appearance&&null===n)return super.getOperatorList(t,a,i,r);let l=new tP;if(!this._defaultAppearance||null===n)return{opList:l,separateForm:!1,separateCanvas:!1};let o=!!(this.data.hasOwnCanvas&&2&i),c=[0,0,this.width,this.height],h=g_(this.data.rect,c,[1,0,0,1,0,0]);this.oc&&(s=await t.parseMarkedContentProps(this.oc,null)),void 0!==s&&l.addOp(70,["OC",s]),l.addOp(80,[this.data.id,this.data.rect,h,this.getRotationMatrix(r),o]);let u=new ts(n);return await t.getOperatorList({stream:u,task:a,resources:this._fieldResources.mergedResources,operatorList:l}),l.addOp(81,[]),void 0!==s&&l.addOp(71,[]),{opList:l,separateForm:!1,separateCanvas:o}}_getMKDict(t){let a=new K(null);return t&&a.set("R",t),a.setIfArray("BC",gP(this.borderColor)),a.setIfArray("BG",gP(this.backgroundColor)),a.size>0?a:null}amendSavedDict(t,a){}setValue(t,a,i,r){let{dict:s,ref:n}=function(t,a,i){let r=new J,s=t,n={dict:null,ref:null};for(;t instanceof K&&!r.has(a)&&(r.put(a),!t.has("T"));){if(!((a=t.getRaw("Parent"))instanceof Y))return n;t=i.fetch(a)}return t instanceof K&&t!==s&&(n.dict=t,n.ref=a),n}(t,this.ref,i);if(s){if(!r.has(n)){let t=s.clone();return t.set("V",a),r.put(n,{data:t}),t}}else t.set("V",a);return null}async save(t,a,i,r){let s=i?.get(this.data.id),n=this._buildFlags(s?.noView,s?.noPrint),l=s?.value,o=s?.rotation;if(l===this.data.fieldValue||void 0===l){if(!this._hasValueFromXFA&&void 0===o&&void 0===n)return;l||=this.data.fieldValue}if(void 0===o&&!this._hasValueFromXFA&&Array.isArray(l)&&Array.isArray(this.data.fieldValue)&&E(l,this.data.fieldValue)&&void 0===n)return;void 0===o&&(o=this.rotation);let c=null;if(!this._needAppearances&&null===(c=await this._getAppearance(t,a,8,i))&&void 0===n)return;let h=!1;c?.needAppearances&&(h=!0,c=null);let{xref:u}=t,d=u.fetchIfRef(this.ref);if(!(d instanceof K))return;let f=new K(u);for(let t of d.getKeys())"AP"!==t&&f.set(t,d.getRaw(t));if(void 0!==n&&(f.set("F",n),null===c&&!h)){let t=d.getRaw("AP");t&&f.set("AP",t)}let g={path:this.data.fieldName,value:l},p=this.setValue(f,Array.isArray(l)?l.map(eU):eU(l),u,r);this.amendSavedDict(i,p||f);let m=this._getMKDict(o);if(m&&f.set("MK",m),r.put(this.ref,{data:f,xfa:g,needAppearances:h}),null!==c){let t=u.getNewTemporaryRef(),a=new K(u);f.set("AP",a),a.set("N",t);let s=this._getSaveFieldResources(u),n=new ts(c),l=n.dict=new K(u);l.setIfName("Subtype","Form"),l.set("Resources",s);let h=o%180==0?[0,0,this.width,this.height]:[0,0,this.height,this.width];l.set("BBox",h);let d=this.getRotationMatrix(i);d!==en&&l.set("Matrix",d),r.put(t,{data:n,xfa:null,needAppearances:!1})}f.set("M",`D:${_()}`)}async _getAppearance(t,a,i,r){let s,n;if(this.data.password)return null;let l=r?.get(this.data.id);if(l&&(s=l.formattedValue||l.value,n=l.rotation),void 0===n&&void 0===s&&!this._needAppearances&&(!this._hasValueFromXFA||this.appearance))return null;let o=this.getBorderAndBackgroundAppearances(r);if(void 0===s&&!(s=this.data.fieldValue))return`/Tx BMC q ${o}Q EMC`;if(Array.isArray(s)&&1===s.length&&(s=s[0]),p("string"==typeof s,"Expected `value` to be a string."),s=s.trimEnd(),this.data.combo){let t=this.data.options.find(({exportValue:t})=>s===t);s=t?.displayValue||s}if(""===s)return`/Tx BMC q ${o}Q EMC`;void 0===n&&(n=this.rotation);let c,h=-1;this.data.multiLine?h=(c=s.split(/\r\n?|\n/).map(t=>t.normalize("NFC"))).length:c=[s.replace(/\r\n?|\n/,"").normalize("NFC")];let{width:u,height:d}=this;90!==n&&270!==n||([u,d]=[d,u]),this._defaultAppearance||(this.data.defaultAppearanceData=np(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let g,m,b,y=await gj._getFontData(t,a,this.data.defaultAppearanceData,this._fieldResources.mergedResources),w=[],x=!1;for(let t of c){let a=y.encodeString(t);a.length>1&&(x=!0),w.push(a.join(""))}if(x&&8&i)return{needAppearances:!0};if(x&&this._isOffscreenCanvasSupported){let i=this.data.comb?"monospace":"sans-serif",r=new ny(t.xref,i),n=r.createFontResources(c.join("")),l=n.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){let t=this._fieldResources.mergedResources.get("Font");for(let a of l.getKeys())t.set(a,l.getRaw(a))}else this._fieldResources.mergedResources.set("Font",l);let o=r.fontName.name;y=await gj._getFontData(t,a,{fontName:o,fontSize:0},n);for(let t=0,a=w.length;t<a;t++)w[t]=eq(c[t]);let f=Object.assign(Object.create(null),this.data.defaultAppearanceData);this.data.defaultAppearanceData.fontSize=0,this.data.defaultAppearanceData.fontName=o,[g,m,b]=this._computeFontSize(d-2,u-4,s,y,h),this.data.defaultAppearanceData=f}else this._isOffscreenCanvasSupported||f("_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly."),[g,m,b]=this._computeFontSize(d-2,u-4,s,y,h);let k=y.descent;k=isNaN(k)?.25925925925925924*b:Math.max(.25925925925925924*b,Math.abs(k)*m);let v=Math.min(Math.floor((d-m)/2),1),A=this.data.textAlignment;if(this.data.multiLine)return this._getMultilineAppearance(g,w,y,m,u,d,A,2,v,k,b,r);if(this.data.comb)return this._getCombAppearance(g,y,w[0],m,u,d,2,v,k,b,r);let C=v+k;return 0===A||A>2?`/Tx BMC q ${o}BT `+g+` 1 0 0 1 ${e_(2)} ${e_(C)} Tm (${eT(w[0])}) Tj ET Q EMC`:`/Tx BMC q ${o}BT `+g+` 1 0 0 1 0 0 Tm ${this._renderText(w[0],y,m,u,A,{shift:0},2,C)} ET Q EMC`}static async _getFontData(t,a,i,r){let s=new tP,n={font:null,clone(){return this}},{fontName:l,fontSize:o}=i;return await t.handleSetFont(r,[l&&W.get(l),o],null,s,a,n,null),n.font}_getTextWidth(t,a){return Math.sumPrecise(a.charsToGlyphs(t).map(t=>t.width))/1e3}_computeFontSize(t,a,i,r,s){let{fontSize:n}=this.data.defaultAppearanceData,l=1.35*(n||12),o=Math.round(t/l);if(!n){let c=t=>Math.floor(100*t)/100;if(-1===s)n=c(Math.min(t/1.35,a/this._getTextWidth(i,r))),o=1;else{let h=i.split(/\r\n?|\n/),u=[];for(let t of h){let a=r.encodeString(t).join(""),i=r.charsToGlyphs(a),s=r.getCharPositions(a);u.push({line:a,glyphs:i,positions:s})}let d=i=>{let s=0;for(let n of u)if((s+=this._splitLine(null,r,i,a,n).length*i)>t)return!0;return!1};for(o=Math.max(o,s);d(n=c((l=t/o)/1.35));)o++}let{fontName:h,fontColor:u}=this.data.defaultAppearanceData;this._defaultAppearance=function({fontSize:t,fontName:a,fontColor:i}){return`/${eM(a)} ${t} Tf ${nb(i,!0)}`}({fontSize:n,fontName:h,fontColor:u})}return[this._defaultAppearance,n,t/o]}_renderText(t,a,i,r,s,n,l,o){let c,h=e_((c=1===s?(r-this._getTextWidth(t,a)*i)/2:2===s?r-this._getTextWidth(t,a)*i-l:l)-n.shift);return n.shift=c,`${h} ${o=e_(o)} Td (${eT(t)}) Tj`}_getSaveFieldResources(t){let{localResources:a,appearanceResources:i,acroFormResources:r}=this._fieldResources,s=this.data.defaultAppearanceData?.fontName;if(!s)return a||K.empty;for(let t of[a,i])if(t instanceof K){let a=t.get("Font");if(a instanceof K&&a.has(s))return t}if(r instanceof K){let i=r.get("Font");if(i instanceof K&&i.has(s)){let r=new K(t);r.set(s,i.getRaw(s));let n=new K(t);return n.set("Font",r),K.merge({xref:t,dictArray:[n,a],mergeSubDicts:!0})}}return a||K.empty}getFieldObject(){return null}}class g$ extends gj{constructor(t){super(t);const{dict:a}=t;a.has("PMD")&&(this.flags|=2,this.data.hidden=!0,f("Barcodes are not supported")),this.data.hasOwnCanvas=this.data.readOnly&&!this.data.noHTML,this._hasText=!0,"string"!=typeof this.data.fieldValue&&(this.data.fieldValue="");let i=em({dict:a,key:"Q"});(!Number.isInteger(i)||i<0||i>2)&&(i=null),this.data.textAlignment=i;let r=em({dict:a,key:"MaxLen"});(!Number.isInteger(r)||r<0)&&(r=0),this.data.maxLen=r,this.data.multiLine=this.hasFieldFlag(4096),this.data.comb=this.hasFieldFlag(0x1000000)&&!this.data.multiLine&&!this.data.password&&!this.hasFieldFlag(1048576)&&0!==this.data.maxLen,this.data.doNotScroll=this.hasFieldFlag(8388608);const{data:{actions:s}}=this;if(!s)return;const n=/^AF(Date|Time)_(?:Keystroke|Format)(?:Ex)?\(['"]?([^'"]+)['"]?\);$/;let l=!1;(1===s.Format?.length&&1===s.Keystroke?.length&&n.test(s.Format[0])&&n.test(s.Keystroke[0])||0===s.Format?.length&&1===s.Keystroke?.length&&n.test(s.Keystroke[0])||0===s.Keystroke?.length&&1===s.Format?.length&&n.test(s.Format[0]))&&(l=!0);const o=[];for(const t of(s.Format&&o.push(...s.Format),s.Keystroke&&o.push(...s.Keystroke),l&&(delete s.Keystroke,s.Format=o),o)){const a=t.match(n);if(!a)continue;const i="Date"===a[1];let r=a[2];const s=parseInt(r,10);if(isNaN(s)||Math.floor(Math.log10(s))+1!==a[2].length||(r=(i?nw:nx)[s]??r),this.data.datetimeFormat=r,!l)break;if(i){/HH|MM|ss|h/.test(r)?(this.data.datetimeType="datetime-local",this.data.timeStep=/ss/.test(r)?1:60):this.data.datetimeType="date";break}this.data.datetimeType="time",this.data.timeStep=/ss/.test(r)?1:60;break}}get hasTextContent(){return!!this.appearance&&!this._needAppearances}_getCombAppearance(t,a,i,r,s,n,l,o,c,h,u){let d=s/this.data.maxLen,f=this.getBorderAndBackgroundAppearances(u),g=[];for(let[t,r]of a.getCharPositions(i))g.push(`(${eT(i.substring(t,r))}) Tj`);let p=g.join(` ${e_(d)} 0 Td `);return`/Tx BMC q ${f}BT `+t+` 1 0 0 1 ${e_(l)} ${e_(o+c)} Tm ${p} ET Q EMC`}_getMultilineAppearance(t,a,i,r,s,n,l,o,c,h,u,d){let f=[],g=s-2*o,p={shift:0};for(let t=0,n=a.length;t<n;t++){let n=a[t],d=this._splitLine(n,i,r,g);for(let a=0,n=d.length;a<n;a++){let n=d[a],g=0===t&&0===a?-c-(u-h):-u;f.push(this._renderText(n,i,r,s,l,p,o,g))}}let m=this.getBorderAndBackgroundAppearances(d),b=f.join("\n");return`/Tx BMC q ${m}BT `+t+` 1 0 0 1 0 ${e_(n)} Tm ${b} ET Q EMC`}_splitLine(t,a,i,r,s={}){t=s.line||t;let n=s.glyphs||a.charsToGlyphs(t);if(n.length<=1)return[t];let l=s.positions||a.getCharPositions(t),o=i/1e3,c=[],h=-1,u=-1,d=-1,f=0,g=0;for(let a=0,i=n.length;a<i;a++){let[i,s]=l[a],p=n[a],m=p.width*o;" "===p.unicode?g+m>r?(c.push(t.substring(f,i)),f=i,g=m,h=-1,d=-1):(g+=m,h=i,u=s,d=a):g+m>r?-1!==h?(c.push(t.substring(f,u)),f=u,a=d+1,h=-1,g=0):(c.push(t.substring(f,i)),f=i,g=m):g+=m}return f<t.length&&c.push(t.substring(f,t.length)),c}async extractTextContent(t,a,i){await super.extractTextContent(t,a,i);let r=this.data.textContent;if(!r)return;let s=r.join("\n");if(s===this.data.fieldValue)return;let n=s.replaceAll(/([.*+?^${}()|[\]\\])|(\s+)/g,(t,a)=>a?`\\${a}`:"\\s+");RegExp(`^\\s*${n}\\s*$`).test(this.data.fieldValue)&&(this.data.textContent=this.data.fieldValue.split("\n"))}getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.data.password,charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,datetimeFormat:this.data.datetimeFormat,hasDatetimeHTML:!!this.data.datetimeType,type:"text"}}}class gH extends gj{constructor(t){super(t),this.checkedAppearance=null,this.uncheckedAppearance=null;const a=this.hasFieldFlag(32768),i=this.hasFieldFlag(65536);this.data.checkBox=!a&&!i,this.data.radioButton=a&&!i,this.data.pushButton=i,this.data.isTooltipOnly=!1,this.data.checkBox?this._processCheckBox(t):this.data.radioButton?this._processRadioButton(t):this.data.pushButton?(this.data.hasOwnCanvas=!0,this.data.noHTML=!1,this._processPushButton(t)):f("Invalid field flags for button widget annotation")}async getOperatorList(t,a,i,r){if(this.data.pushButton)return super.getOperatorList(t,a,i,!1,r);let s=null,n=null;if(r){let t=r.get(this.data.id);s=t?t.value:null,n=t?t.rotation:null}if(null===s&&this.appearance)return super.getOperatorList(t,a,i,r);null==s&&(s=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue);let l=s?this.checkedAppearance:this.uncheckedAppearance;if(l){let s=this.appearance,o=eS(l.dict.getArray("Matrix"),en);n&&l.dict.set("Matrix",this.getRotationMatrix(r)),this.appearance=l;let c=super.getOperatorList(t,a,i,r);return this.appearance=s,l.dict.set("Matrix",o),c}return{opList:new tP,separateForm:!1,separateCanvas:!1}}async save(t,a,i,r){this.data.checkBox?this._saveCheckbox(t,a,i,r):this.data.radioButton&&this._saveRadioButton(t,a,i,r)}async _saveCheckbox(t,a,i,r){if(!i)return;let s=i.get(this.data.id),n=this._buildFlags(s?.noView,s?.noPrint),l=s?.rotation,o=s?.value;if(void 0===l&&void 0===n&&(void 0===o||this.data.fieldValue===this.data.exportValue===o))return;let c=t.xref.fetchIfRef(this.ref);if(!(c instanceof K))return;c=c.clone(),void 0===l&&(l=this.rotation),void 0===o&&(o=this.data.fieldValue===this.data.exportValue);let h={path:this.data.fieldName,value:o?this.data.exportValue:""},u=W.get(o?this.data.exportValue:"Off");this.setValue(c,u,t.xref,r),c.set("AS",u),c.set("M",`D:${_()}`),void 0!==n&&c.set("F",n);let d=this._getMKDict(l);d&&c.set("MK",d),r.put(this.ref,{data:c,xfa:h,needAppearances:!1})}async _saveRadioButton(t,a,i,r){if(!i)return;let s=i.get(this.data.id),n=this._buildFlags(s?.noView,s?.noPrint),l=s?.rotation,o=s?.value;if(void 0===l&&void 0===n&&(void 0===o||this.data.fieldValue===this.data.buttonValue===o))return;let c=t.xref.fetchIfRef(this.ref);if(!(c instanceof K))return;c=c.clone(),void 0===o&&(o=this.data.fieldValue===this.data.buttonValue),void 0===l&&(l=this.rotation);let h={path:this.data.fieldName,value:o?this.data.buttonValue:""},u=W.get(o?this.data.buttonValue:"Off");o&&this.setValue(c,u,t.xref,r),c.set("AS",u),c.set("M",`D:${_()}`),void 0!==n&&c.set("F",n);let d=this._getMKDict(l);d&&c.set("MK",d),r.put(this.ref,{data:c,xfa:h,needAppearances:!1})}_getDefaultCheckedAppearance(t,a){let i,r,{width:s,height:n}=this,l=.8*Math.min(s,n);"check"===a?(i={width:.755*l,height:.705*l},r="3"):"disc"===a?(i={width:.791*l,height:.705*l},r="l"):g(`_getDefaultCheckedAppearance - unsupported type: ${a}`);let o=`q BT /PdfJsZaDb ${l} Tf 0 g ${e_((s-i.width)/2)} ${e_((n-i.height)/2)} Td (${r}) Tj ET Q`,c=new K(t.xref);c.set("FormType",1),c.setIfName("Subtype","Form"),c.setIfName("Type","XObject"),c.set("BBox",[0,0,s,n]),c.set("Matrix",[1,0,0,1,0,0]),c.set("Length",o.length);let h=new K(t.xref),u=new K(t.xref);u.set("PdfJsZaDb",this.fallbackFontDict),h.set("Font",u),c.set("Resources",h),this.checkedAppearance=new ts(o),this.checkedAppearance.dict=c,this._streams.push(this.checkedAppearance)}_processCheckBox(t){let a=t.dict.get("AP");if(!(a instanceof K))return;let i=a.get("N");if(!(i instanceof K))return;let r=this._decodeFormValue(t.dict.get("AS"));"string"==typeof r&&(this.data.fieldValue=r);let s=null!==this.data.fieldValue&&"Off"!==this.data.fieldValue?this.data.fieldValue:"Yes",n=this._decodeFormValue(i.getKeys());if(0===n.length)n.push("Off",s);else if(1===n.length)"Off"===n[0]?n.push(s):n.unshift("Off");else if(n.includes(s))n.length=0,n.push("Off",s);else{let t=n.find(t=>"Off"!==t);n.length=0,n.push("Off",t)}n.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=n[1];let l=i.get(this.data.exportValue);this.checkedAppearance=l instanceof ei?l:null;let o=i.get("Off");this.uncheckedAppearance=o instanceof ei?o:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(t,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}_processRadioButton(t){this.data.buttonValue=null;let a=t.dict.get("Parent");if(a instanceof K){this.parent=t.dict.getRaw("Parent");let i=a.get("V");i instanceof W&&(this.data.fieldValue=this._decodeFormValue(i))}let i=t.dict.get("AP");if(!(i instanceof K))return;let r=i.get("N");if(!(r instanceof K))return;for(let t of r.getKeys())if("Off"!==t){this.data.buttonValue=this._decodeFormValue(t);break}let s=r.get(this.data.buttonValue);this.checkedAppearance=s instanceof ei?s:null;let n=r.get("Off");this.uncheckedAppearance=n instanceof ei?n:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(t,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}_processPushButton(t){let{dict:a,annotationGlobals:i}=t;a.has("A")||a.has("AA")||this.data.alternativeText?(this.data.isTooltipOnly=!a.has("A")&&!a.has("AA"),nU.parseDestDictionary({destDict:a,resultObj:this.data,docBaseUrl:i.baseUrl,docAttachments:i.attachments})):f("Push buttons without action dictionaries are not supported")}getFieldObject(){let t,a="button";return this.data.checkBox?(a="checkbox",t=this.data.exportValue):this.data.radioButton&&(a="radiobutton",t=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:t,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:a}}get fallbackFontDict(){let t=new K;return t.setIfName("BaseFont","ZapfDingbats"),t.setIfName("Type","FallbackType"),t.setIfName("Subtype","FallbackType"),t.setIfName("Encoding","ZapfDingbatsEncoding"),b(this,"fallbackFontDict",t)}}class gz extends gj{constructor(t){super(t);const{dict:a,xref:i}=t;this.indices=a.getArray("I"),this.hasIndices=Array.isArray(this.indices)&&this.indices.length>0,this.data.options=[];const r=em({dict:a,key:"Opt"});if(Array.isArray(r))for(let t=0,a=r.length;t<a;t++){const a=i.fetchIfRef(r[t]),s=Array.isArray(a);this.data.options[t]={exportValue:this._decodeFormValue(s?i.fetchIfRef(a[0]):a),displayValue:this._decodeFormValue(s?i.fetchIfRef(a[1]):a)}}if(this.hasIndices){this.data.fieldValue=[];const t=this.data.options.length;for(const a of this.indices)Number.isInteger(a)&&a>=0&&a<t&&this.data.fieldValue.push(this.data.options[a].exportValue)}else"string"==typeof this.data.fieldValue?this.data.fieldValue=[this.data.fieldValue]:this.data.fieldValue||=[];0===this.data.options.length&&this.data.fieldValue.length>0&&(this.data.options=this.data.fieldValue.map(t=>({exportValue:t,displayValue:t}))),this.data.combo=this.hasFieldFlag(131072),this.data.multiSelect=this.hasFieldFlag(2097152),this._hasText=!0}getFieldObject(){let t=this.data.combo?"combobox":"listbox",a=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:a,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t}}amendSavedDict(t,a){if(!this.hasIndices)return;let i=t?.get(this.data.id)?.value;Array.isArray(i)||(i=[i]);let r=[],{options:s}=this.data;for(let t=0,a=0,n=s.length;t<n;t++)s[t].exportValue===i[a]&&(r.push(t),a+=1);a.set("I",r)}async _getAppearance(t,a,i,r){let s,n;if(this.data.combo)return super._getAppearance(t,a,i,r);let l=r?.get(this.data.id);if(l&&(n=l.rotation,s=l.value),void 0===n&&void 0===s&&!this._needAppearances)return null;void 0===s?s=this.data.fieldValue:Array.isArray(s)||(s=[s]);let{width:o,height:c}=this;90!==n&&270!==n||([o,c]=[c,o]);let h=this.data.options.length,u=[];for(let t=0;t<h;t++){let{exportValue:a}=this.data.options[t];s.includes(a)&&u.push(t)}this._defaultAppearance||(this.data.defaultAppearanceData=np(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let d=await gj._getFontData(t,a,this.data.defaultAppearanceData,this._fieldResources.mergedResources),f,{fontSize:g}=this.data.defaultAppearanceData;if(g)f=this._defaultAppearance;else{let t=(c-1)/h,a,i=-1;for(let{displayValue:t}of this.data.options){let r=this._getTextWidth(t,d);r>i&&(i=r,a=t)}[f,g]=this._computeFontSize(t,o-4,a,d,-1)}let p=1.35*g,m=(p-g)/2,b=Math.floor(c/p),y=0;if(u.length>0){let t=Math.min(...u);(y=Math.max(0,Math.max(...u)-b+1))>t&&(y=t)}let w=Math.min(y+b+1,h),x=["/Tx BMC q",`1 1 ${o} ${c} re W n`];if(u.length)for(let t of(x.push("0.600006 0.756866 0.854904 rg"),u))y<=t&&t<w&&x.push(`1 ${c-(t-y+1)*p} ${o} ${p} re f`);x.push("BT",f,`1 0 0 1 0 ${c} Tm`);let k={shift:0};for(let t=y;t<w;t++){let{displayValue:a}=this.data.options[t],i=t===y?m:0;x.push(this._renderText(a,d,g,o,0,k,2,-p+i))}return x.push("ET Q EMC"),x.join("\n")}}class gG extends gj{constructor(t){super(t),this.data.fieldValue=null,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!this.data.hasOwnCanvas}getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}class gW extends gq{constructor(t){super(t),this.data.noRotate=!0,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;const{dict:a}=t;this.data.annotationType=n.TEXT,this.data.hasAppearance?this.data.name="NoIcon":(this.data.rect[1]=this.data.rect[3]-22,this.data.rect[2]=this.data.rect[0]+22,this.data.name=a.has("Name")?a.get("Name").name:"Note"),a.has("State")?(this.data.state=a.get("State")||null,this.data.stateModel=a.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}}class gV extends gL{constructor(t){super(t);const{dict:a,annotationGlobals:i}=t;this.data.annotationType=n.LINK,this.data.noHTML=!1;const r=gE(a,this.rectangle);r&&(this.data.quadPoints=r),this.data.borderColor||=this.data.color,nU.parseDestDictionary({destDict:a,resultObj:this.data,docBaseUrl:i.baseUrl,docAttachments:i.attachments})}get overlaysTextContent(){return!0}}class gX extends gL{constructor(t){super(t);const{dict:a}=t;this.data.annotationType=n.POPUP,this.data.noHTML=!1,0!==this.width&&0!==this.height||(this.data.rect=null);let i=a.get("Parent");if(!i)return void f("Popup annotation has a missing or invalid parent annotation.");if(this.data.parentRect=eB(i.getArray("Rect"),null),this.data.creationDate=i.get("CreationDate")||"",Q(i.get("RT"),l)&&(i=i.get("IRT")),i.has("M")?(this.setModificationDate(i.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,i.has("C")?(this.setColor(i.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){const t=i.get("F");this._isViewable(t)&&this.setFlags(t)}this.setTitle(i.get("T")),this.data.titleObj=this._title,this.setContents(i.get("Contents")),this.data.contentsObj=this._contents,i.has("RC")&&(this.data.richText=gN.getRichTextAsHtml(i.get("RC"))),this.data.open=!!a.get("Open")}static createNewDict(t,a,i){let{oldAnnotation:r,rect:s,parent:n}=t,l=r||new K(a);return l.setIfNotExists("Type",W.get("Annot")),l.setIfNotExists("Subtype",W.get("Popup")),l.setIfNotExists("Open",!1),l.setIfArray("Rect",s),l.set("Parent",n),l}static async createNewAppearanceStream(t,a,i){return null}}class gK extends gq{constructor(t){super(t),this.data.hasOwnCanvas=this.data.noRotate,this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1;const{annotationGlobals:a,evaluatorOptions:i,xref:r}=t;if(this.data.annotationType=n.FREETEXT,this.setDefaultAppearance(t),this._hasAppearance=!!this.appearance,this._hasAppearance){const{fontColor:t,fontSize:s}=function(t,a,i,r){return new nm(t,a,i,r).parse()}(this.appearance,i,r,a.globalColorSpaceCache);this.data.defaultAppearanceData.fontColor=t,this.data.defaultAppearanceData.fontSize=s||10}else{this.data.defaultAppearanceData.fontSize||=10;const{fontColor:a,fontSize:i}=this.data.defaultAppearanceData;if(this._contents.str){this.data.textContent=this._contents.str.split(/\r\n?|\n/).map(t=>t.trimEnd());const{coords:t,bbox:a,matrix:r}=ny.getFirstPositionInfo(this.rectangle,this.rotation,i);this.data.textPosition=this._transformPoint(t,a,r)}if(this._isOffscreenCanvasSupported){const s=t.dict.get("CA"),n=new ny(r,"sans-serif");this.appearance=n.createAppearance(this._contents.str,this.rectangle,this.rotation,i,a,s),this._streams.push(this.appearance)}else f("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.")}}get hasTextContent(){return this._hasAppearance}static createNewDict(t,a,{apRef:i,ap:r}){let{color:s,date:n,fontSize:l,oldAnnotation:o,rect:c,rotation:h,user:u,value:d}=t,f=o||new K(a);f.setIfNotExists("Type",W.get("Annot")),f.setIfNotExists("Subtype",W.get("FreeText")),f.set(o?"M":"CreationDate",`D:${_(n)}`),o&&f.delete("RC"),f.setIfArray("Rect",c);let g=`/Helv ${l} Tf ${nb(s,!0)}`;if(f.set("DA",g),f.setIfDefined("Contents",eU(d)),f.setIfNotExists("F",4),f.setIfNotExists("Border",[0,0,0]),f.setIfNumber("Rotate",h),f.setIfDefined("T",eU(u)),i||r){let t=new K(a);f.set("AP",t),t.set("N",i||r)}return f}static async createNewAppearanceStream(t,a,i){let r,s,n,{baseFontRef:l,evaluator:o,task:c}=i,{color:h,fontSize:u,rect:d,rotation:f,value:g}=t;if(!h)return null;let p=new K(a),m=new K(a);if(l)m.set("Helv",l);else{let t=new K(a);t.setIfName("BaseFont","Helvetica"),t.setIfName("Type","Font"),t.setIfName("Subtype","Type1"),t.setIfName("Encoding","WinAnsiEncoding"),m.set("Helv",t)}p.set("Font",m);let b=await gj._getFontData(o,c,{fontName:"Helv",fontSize:u},p),[y,w,x,k]=d,v=x-y,A=k-w;f%180!=0&&([v,A]=[A,v]);let C=g.split("\n"),S=u/1e3,I=-1/0,B=[];for(let t of C){let a=b.encodeString(t);if(a.length>1)return null;t=a.join(""),B.push(t);let i=0;for(let a of b.charsToGlyphs(t))i+=a.width*S;I=Math.max(I,i)}let F=1;I>v&&(F=v/I);let M=1,T=1.35*u,R=+u,N=T*C.length;N>A&&(M=A/N);let D=u*Math.min(F,M);switch(f){case 0:n=[1,0,0,1],s=[d[0],d[1],v,A],r=[d[0],d[3]-R];break;case 90:n=[0,1,-1,0],s=[d[1],-d[2],v,A],r=[d[1],-d[0]-R];break;case 180:n=[-1,0,0,-1],s=[-d[2],-d[3],v,A],r=[-d[2],-d[1]-R];break;case 270:n=[0,-1,1,0],s=[-d[3],d[0],v,A],r=[-d[3],d[2]-R]}let O=["q",`${n.join(" ")} 0 0 cm`,`${s.join(" ")} re W n`,"BT",`${nb(h,!0)}`,`0 Tc /Helv ${e_(D)} Tf`];O.push(`${r.join(" ")} Td (${eT(B[0])}) Tj`);let P=e_(T);for(let t=1,a=B.length;t<a;t++){let a=B[t];O.push(`0 -${P} Td (${eT(a)}) Tj`)}O.push("ET","Q");let E=O.join("\n"),_=new K(a);_.set("FormType",1),_.setIfName("Subtype","Form"),_.setIfName("Type","XObject"),_.set("BBox",d),_.set("Resources",p),_.set("Matrix",[1,0,0,1,-d[0],-d[1]]);let L=new ts(E);return L.dict=_,L}}class gY extends gq{constructor(t){super(t);const{dict:a,xref:i}=t;this.data.annotationType=n.LINE,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;const r=eI(a.getArray("L"),[0,0,0,0]);if(this.data.lineCoordinates=R.normalizeRect(r),this.setLineEndings(a.getArray("LE")),this.data.lineEndings=this.lineEndings,!this.appearance){const t=gP(this.color,[0,0,0]),s=a.get("CA"),n=gP(gO(a.getArray("IC"),null)),l=n?s:null,o=this.borderStyle.width||1,c=2*o,h=[this.data.lineCoordinates[0]-c,this.data.lineCoordinates[1]-c,this.data.lineCoordinates[2]+c,this.data.lineCoordinates[3]+c];R.intersect(this.rectangle,h)||(this.rectangle=h),this._setDefaultAppearance({xref:i,extra:`${o} w`,strokeColor:t,fillColor:n,strokeAlpha:s,fillAlpha:l,pointsCallback:(t,a)=>(t.push(`${r[0]} ${r[1]} m`,`${r[2]} ${r[3]} l`,"S"),[a[0]-o,a[7]-o,a[2]+o,a[3]+o])})}}}class gJ extends gq{constructor(t){super(t);const{dict:a,xref:i}=t;if(this.data.annotationType=n.SQUARE,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,!this.appearance){const t=gP(this.color,[0,0,0]),r=a.get("CA"),s=gP(gO(a.getArray("IC"),null)),n=s?r:null;if(0===this.borderStyle.width&&!s)return;this._setDefaultAppearance({xref:i,extra:`${this.borderStyle.width} w`,strokeColor:t,fillColor:s,strokeAlpha:r,fillAlpha:n,pointsCallback:(t,a)=>{let i=a[4]+this.borderStyle.width/2,r=a[5]+this.borderStyle.width/2,n=a[6]-a[4]-this.borderStyle.width,l=a[3]-a[7]-this.borderStyle.width;return t.push(`${i} ${r} ${n} ${l} re`),s?t.push("B"):t.push("S"),[a[0],a[7],a[2],a[3]]}})}}}class gZ extends gq{constructor(t){super(t);const{dict:a,xref:i}=t;if(this.data.annotationType=n.CIRCLE,!this.appearance){const t=gP(this.color,[0,0,0]),r=a.get("CA"),s=gP(gO(a.getArray("IC"),null)),n=s?r:null;if(0===this.borderStyle.width&&!s)return;const l=4/3*Math.tan(Math.PI/8);this._setDefaultAppearance({xref:i,extra:`${this.borderStyle.width} w`,strokeColor:t,fillColor:s,strokeAlpha:r,fillAlpha:n,pointsCallback:(t,a)=>{let i=a[0]+this.borderStyle.width/2,r=a[1]-this.borderStyle.width/2,n=a[6]-this.borderStyle.width/2,o=a[7]+this.borderStyle.width/2,c=i+(n-i)/2,h=r+(o-r)/2,u=(n-i)/2*l,d=(o-r)/2*l;return t.push(`${c} ${o} m`,`${c+u} ${o} ${n} ${h+d} ${n} ${h} c`,`${n} ${h-d} ${c+u} ${r} ${c} ${r} c`,`${c-u} ${r} ${i} ${h-d} ${i} ${h} c`,`${i} ${h+d} ${c-u} ${o} ${c} ${o} c`,"h"),s?t.push("B"):t.push("S"),[a[0],a[7],a[2],a[3]]}})}}}class gQ extends gq{constructor(t){super(t);const{dict:a,xref:i}=t;this.data.annotationType=n.POLYLINE,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,this.data.vertices=null,this instanceof g1||(this.setLineEndings(a.getArray("LE")),this.data.lineEndings=this.lineEndings);const r=a.getArray("Vertices");if(!eC(r,null))return;const s=this.data.vertices=Float32Array.from(r);if(!this.appearance){const t=gP(this.color,[0,0,0]),r=a.get("CA");let n,l=gO(a.getArray("IC"),null);l&&(l=gP(l)),n=l?this.color?l.every((a,i)=>a===t[i])?"f":"B":"f":"S";const o=this.borderStyle.width||1,c=2*o,h=[1/0,1/0,-1/0,-1/0];for(let t=0,a=s.length;t<a;t+=2)R.rectBoundingBox(s[t]-c,s[t+1]-c,s[t]+c,s[t+1]+c,h);R.intersect(this.rectangle,h)||(this.rectangle=h),this._setDefaultAppearance({xref:i,extra:`${o} w`,strokeColor:t,strokeAlpha:r,fillColor:l,fillAlpha:l?r:null,pointsCallback:(t,a)=>{for(let a=0,i=s.length;a<i;a+=2)t.push(`${s[a]} ${s[a+1]} ${0===a?"m":"l"}`);return t.push(n),[a[0],a[7],a[2],a[3]]}})}}}class g1 extends gQ{constructor(t){super(t),this.data.annotationType=n.POLYGON}}class g0 extends gq{constructor(t){super(t),this.data.annotationType=n.CARET}}class g2 extends gq{constructor(t){super(t),this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1;const{dict:a,xref:i}=t;this.data.annotationType=n.INK,this.data.inkLists=[],this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1,this.data.opacity=a.get("CA")||1;const r=a.getArray("InkList");if(Array.isArray(r)){for(let t=0,a=r.length;t<a;++t){if(!Array.isArray(r[t]))continue;const a=new Float32Array(r[t].length);this.data.inkLists.push(a);for(let s=0,n=r[t].length;s<n;s+=2){const n=i.fetchIfRef(r[t][s]),l=i.fetchIfRef(r[t][s+1]);"number"==typeof n&&"number"==typeof l&&(a[s]=n,a[s+1]=l)}}if(!this.appearance){const t=gP(this.color,[0,0,0]),r=a.get("CA"),s=this.borderStyle.width||1,n=2*s,l=[1/0,1/0,-1/0,-1/0];for(const t of this.data.inkLists)for(let a=0,i=t.length;a<i;a+=2)R.rectBoundingBox(t[a]-n,t[a+1]-n,t[a]+n,t[a+1]+n,l);R.intersect(this.rectangle,l)||(this.rectangle=l),this._setDefaultAppearance({xref:i,extra:`${s} w`,strokeColor:t,strokeAlpha:r,pointsCallback:(t,a)=>{for(let a of this.data.inkLists){for(let i=0,r=a.length;i<r;i+=2)t.push(`${a[i]} ${a[i+1]} ${0===i?"m":"l"}`);t.push("S")}return[a[0],a[7],a[2],a[3]]}})}}}static createNewDict(t,a,{apRef:i,ap:r}){let{oldAnnotation:s,color:n,date:l,opacity:o,paths:c,outlines:h,rect:u,rotation:d,thickness:f,user:g}=t,p=s||new K(a);if(p.setIfNotExists("Type",W.get("Annot")),p.setIfNotExists("Subtype",W.get("Ink")),p.set(s?"M":"CreationDate",`D:${_(l)}`),p.setIfArray("Rect",u),p.setIfArray("InkList",h?.points||c?.points),p.setIfNotExists("F",4),p.setIfNumber("Rotate",d),p.setIfDefined("T",eU(g)),h&&p.setIfName("IT","InkHighlight"),f>0){let t=new K(a);p.set("BS",t),t.set("W",f)}if(p.setIfArray("C",gP(n)),p.setIfNumber("CA",o),r||i){let t=new K(a);p.set("AP",t),t.set("N",i||r)}return p}static async createNewAppearanceStream(t,a,i){if(t.outlines)return this.createNewAppearanceStreamForHighlight(t,a,i);let{color:r,rect:s,paths:n,thickness:l,opacity:o}=t;if(!r)return null;let c=[`${l} w 1 J 1 j`,`${nb(r,!1)}`];for(let t of(1!==o&&c.push("/R0 gs"),n.lines)){c.push(`${e_(t[4])} ${e_(t[5])} m`);for(let a=6,i=t.length;a<i;a+=6)if(isNaN(t[a]))c.push(`${e_(t[a+4])} ${e_(t[a+5])} l`);else{let[i,r,s,n,l,o]=t.slice(a,a+6);c.push([i,r,s,n,l,o].map(e_).join(" ")+" c")}6===t.length&&c.push(`${e_(t[4])} ${e_(t[5])} l`)}c.push("S");let h=c.join("\n"),u=new K(a);if(u.set("FormType",1),u.setIfName("Subtype","Form"),u.setIfName("Type","XObject"),u.set("BBox",s),u.set("Length",h.length),1!==o){let t=new K(a),i=new K(a),r=new K(a);r.set("CA",o),r.setIfName("Type","ExtGState"),i.set("R0",r),t.set("ExtGState",i),u.set("Resources",t)}let d=new ts(h);return d.dict=u,d}static async createNewAppearanceStreamForHighlight(t,a,i){let{color:r,rect:s,outlines:{outline:n},opacity:l}=t;if(!r)return null;let o=[`${nb(r,!0)}`,"/R0 gs"];o.push(`${e_(n[4])} ${e_(n[5])} m`);for(let t=6,a=n.length;t<a;t+=6)if(isNaN(n[t]))o.push(`${e_(n[t+4])} ${e_(n[t+5])} l`);else{let[a,i,r,s,l,c]=n.slice(t,t+6);o.push([a,i,r,s,l,c].map(e_).join(" ")+" c")}o.push("h f");let c=o.join("\n"),h=new K(a);h.set("FormType",1),h.setIfName("Subtype","Form"),h.setIfName("Type","XObject"),h.set("BBox",s),h.set("Length",c.length);let u=new K(a),d=new K(a);u.set("ExtGState",d),h.set("Resources",u);let f=new K(a);d.set("R0",f),f.setIfName("BM","Multiply"),1!==l&&(f.set("ca",l),f.setIfName("Type","ExtGState"));let g=new ts(c);return g.dict=h,g}}class g9 extends gq{constructor(t){super(t);const{dict:a,xref:i}=t;if(this.data.annotationType=n.HIGHLIGHT,this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1,this.data.opacity=a.get("CA")||1,this.data.quadPoints=gE(a,null)){const t=this.appearance?.dict.get("Resources");if(!this.appearance||!t?.has("ExtGState")){this.appearance&&f("HighlightAnnotation - ignoring built-in appearance stream.");const t=gP(this.color,[1,1,0]),r=a.get("CA");this._setDefaultAppearance({xref:i,fillColor:t,blendMode:"Multiply",fillAlpha:r,pointsCallback:(t,a)=>(t.push(`${a[0]} ${a[1]} m`,`${a[2]} ${a[3]} l`,`${a[6]} ${a[7]} l`,`${a[4]} ${a[5]} l`,"f"),[a[0],a[7],a[2],a[3]])})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}static createNewDict(t,a,{apRef:i,ap:r}){let{color:s,date:n,oldAnnotation:l,opacity:o,rect:c,rotation:h,user:u,quadPoints:d}=t,f=l||new K(a);if(f.setIfNotExists("Type",W.get("Annot")),f.setIfNotExists("Subtype",W.get("Highlight")),f.set(l?"M":"CreationDate",`D:${_(n)}`),f.setIfArray("Rect",c),f.setIfNotExists("F",4),f.setIfNotExists("Border",[0,0,0]),f.setIfNumber("Rotate",h),f.setIfArray("QuadPoints",d),f.setIfArray("C",gP(s)),f.setIfNumber("CA",o),f.setIfDefined("T",eU(u)),i||r){let t=new K(a);f.set("AP",t),t.set("N",i||r)}return f}static async createNewAppearanceStream(t,a,i){let{color:r,rect:s,outlines:n,opacity:l}=t;if(!r)return null;let o=[`${nb(r,!0)}`,"/R0 gs"],c=[];for(let t of n){c.length=0,c.push(`${e_(t[0])} ${e_(t[1])} m`);for(let a=2,i=t.length;a<i;a+=2)c.push(`${e_(t[a])} ${e_(t[a+1])} l`);c.push("h"),o.push(c.join("\n"))}o.push("f*");let h=o.join("\n"),u=new K(a);u.set("FormType",1),u.setIfName("Subtype","Form"),u.setIfName("Type","XObject"),u.set("BBox",s),u.set("Length",h.length);let d=new K(a),f=new K(a);d.set("ExtGState",f),u.set("Resources",d);let g=new K(a);f.set("R0",g),g.setIfName("BM","Multiply"),1!==l&&(g.set("ca",l),g.setIfName("Type","ExtGState"));let p=new ts(h);return p.dict=u,p}}class g5 extends gq{constructor(t){super(t);const{dict:a,xref:i}=t;if(this.data.annotationType=n.UNDERLINE,this.data.quadPoints=gE(a,null)){if(!this.appearance){const t=gP(this.color,[0,0,0]),r=a.get("CA");this._setDefaultAppearance({xref:i,extra:"[] 0 d 0.571 w",strokeColor:t,strokeAlpha:r,pointsCallback:(t,a)=>(t.push(`${a[4]} ${a[5]+1.3} m`,`${a[6]} ${a[7]+1.3} l`,"S"),[a[0],a[7],a[2],a[3]])})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}}class g3 extends gq{constructor(t){super(t);const{dict:a,xref:i}=t;if(this.data.annotationType=n.SQUIGGLY,this.data.quadPoints=gE(a,null)){if(!this.appearance){const t=gP(this.color,[0,0,0]),r=a.get("CA");this._setDefaultAppearance({xref:i,extra:"[] 0 d 1 w",strokeColor:t,strokeAlpha:r,pointsCallback:(t,a)=>{let i=(a[1]-a[5])/6,r=i,s=a[4],n=a[5],l=a[6];t.push(`${s} ${n+r} m`);do s+=2,r=0===r?i:0,t.push(`${s} ${n+r} l`);while(s<l);return t.push("S"),[a[4],n-2*i,l,n+2*i]}})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}}class g6 extends gq{constructor(t){super(t);const{dict:a,xref:i}=t;if(this.data.annotationType=n.STRIKEOUT,this.data.quadPoints=gE(a,null)){if(!this.appearance){const t=gP(this.color,[0,0,0]),r=a.get("CA");this._setDefaultAppearance({xref:i,extra:"[] 0 d 1 w",strokeColor:t,strokeAlpha:r,pointsCallback:(t,a)=>(t.push((a[0]+a[4])/2+" "+(a[1]+a[5])/2+" m",(a[2]+a[6])/2+" "+(a[3]+a[7])/2+" l","S"),[a[0],a[7],a[2],a[3]])})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}}class g7 extends gq{#eO=null;constructor(t){super(t),this.data.annotationType=n.STAMP,this.data.hasOwnCanvas=this.data.noRotate,this.data.isEditable=!this.data.noHTML,this.data.noHTML=!1}mustBeViewedWhenEditing(t,a=null){return t?!this.data.isEditable||(this.#eO??=this.data.hasOwnCanvas,this.data.hasOwnCanvas=!0,!0):(null!==this.#eO&&(this.data.hasOwnCanvas=this.#eO,this.#eO=null),!a?.has(this.data.id))}static async createImage(t,a){let{width:i,height:r}=t,s=new OffscreenCanvas(i,r),n=s.getContext("2d",{alpha:!0});n.drawImage(t,0,0);let l=new Uint32Array(n.getImageData(0,0,i,r).data.buffer),o=l.some(M.isLittleEndian?t=>t>>>24!=255:t=>!!(255&~t));o&&(n.fillStyle="white",n.fillRect(0,0,i,r),n.drawImage(t,0,0));let c=s.convertToBlob({type:"image/jpeg",quality:1}).then(t=>t.arrayBuffer()),h=W.get("XObject"),u=W.get("Image"),d=new K(a);d.set("Type",h),d.set("Subtype",u),d.set("BitsPerComponent",8),d.setIfName("ColorSpace","DeviceRGB"),d.setIfName("Filter","DCTDecode"),d.set("BBox",[0,0,i,r]),d.set("Width",i),d.set("Height",r);let f=null;if(o){let t=new Uint8Array(l.length);if(M.isLittleEndian)for(let a=0,i=l.length;a<i;a++)t[a]=l[a]>>>24;else for(let a=0,i=l.length;a<i;a++)t[a]=255&l[a];let s=new K(a);s.set("Type",h),s.set("Subtype",u),s.set("BitsPerComponent",8),s.setIfName("ColorSpace","DeviceGray"),s.set("Width",i),s.set("Height",r),f=new tr(t,0,0,s)}return{imageStream:new tr(await c,0,0,d),smaskStream:f,width:i,height:r}}static createNewDict(t,a,{apRef:i,ap:r}){let{date:s,oldAnnotation:n,rect:l,rotation:o,user:c}=t,h=n||new K(a);if(h.setIfNotExists("Type",W.get("Annot")),h.setIfNotExists("Subtype",W.get("Stamp")),h.set(n?"M":"CreationDate",`D:${_(s)}`),h.setIfArray("Rect",l),h.setIfNotExists("F",4),h.setIfNotExists("Border",[0,0,0]),h.setIfNumber("Rotate",o),h.setIfDefined("T",eU(c)),i||r){let t=new K(a);h.set("AP",t),t.set("N",i||r)}return h}static async #eP(t,a){let{areContours:i,color:r,rect:s,lines:n,thickness:l}=t;if(!r)return null;let o=[`${l} w 1 J 1 j`,`${nb(r,i)}`];for(let t of n){o.push(`${e_(t[4])} ${e_(t[5])} m`);for(let a=6,i=t.length;a<i;a+=6)if(isNaN(t[a]))o.push(`${e_(t[a+4])} ${e_(t[a+5])} l`);else{let[i,r,s,n,l,c]=t.slice(a,a+6);o.push([i,r,s,n,l,c].map(e_).join(" ")+" c")}6===t.length&&o.push(`${e_(t[4])} ${e_(t[5])} l`)}o.push(i?"F":"S");let c=o.join("\n"),h=new K(a);h.set("FormType",1),h.setIfName("Subtype","Form"),h.setIfName("Type","XObject"),h.set("BBox",s),h.set("Length",c.length);let u=new ts(c);return u.dict=h,u}static async createNewAppearanceStream(t,a,i){if(t.oldAnnotation)return null;if(t.isSignature)return this.#eP(t,a);let{rotation:r}=t,{imageRef:s,width:n,height:l}=i.image,o=new K(a),c=new K(a);o.set("XObject",c),c.set("Im0",s);let h=`q ${n} 0 0 ${l} 0 0 cm /Im0 Do Q`,u=new K(a);if(u.set("FormType",1),u.setIfName("Subtype","Form"),u.setIfName("Type","XObject"),u.set("BBox",[0,0,n,l]),u.set("Resources",o),r){let t=ej(r,n,l);u.set("Matrix",t)}let d=new ts(h);return d.dict=u,d}}class g8 extends gq{constructor(t){super(t);const{dict:a}=t,i=new nI(a.get("FS"));this.data.annotationType=n.FILEATTACHMENT,this.data.hasOwnCanvas=this.data.noRotate,this.data.noHTML=!1,this.data.file=i.serializable;const r=a.get("Name");this.data.name=r instanceof W?D(r.name):"PushPin";const s=a.get("ca");this.data.fillAlpha="number"==typeof s&&s>=0&&s<=1?s:null}}let g4={get r(){return b(this,"r",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]))},get k(){return b(this,"k",new Int32Array([-0x28955b88,-0x173848aa,0x242070db,-0x3e423112,-0xa83f051,0x4787c62a,-0x57cfb9ed,-0x2b96aff,0x698098d8,-0x74bb0851,-42063,-0x76a32842,0x6b901122,-0x2678e6d,-0x5986bc72,0x49b40821,-0x9e1da9e,-0x3fbf4cc0,0x265e5a51,-0x16493856,-0x29d0efa3,0x2441453,-0x275e197f,-0x182c0438,0x21e1cde6,-0x3cc8f82a,-0xb2af279,0x455a14ed,-0x561c16fb,-0x3105c08,0x676f02d9,-0x72d5b376,-378558,-0x788e097f,0x6d9d6122,-0x21ac7f4,-0x5b4115bc,0x4bdecfa9,-0x944b4a0,-0x41404390,0x289b7ec6,-0x155ed806,-0x2b10cf7b,0x4881d05,-0x262b2fc7,-0x1924661b,0x1fa27cf8,-0x3b53a99b,-0xbd6ddbc,0x432aff97,-0x546bdc59,-0x36c5fc7,0x655b59c3,-0x70f3336e,-1051523,-0x7a7ba22f,0x6fa87e4f,-0x1d31920,-0x5cfebcec,0x4e0811a1,-0x8ac817e,-0x42c50dcb,0x2ad7d2bb,-0x14792c6f]))}};function pe(t,a,i){let r,s,n=0x67452301,l=-0x10325477,o=-0x67452302,c=0x10325476,h=i+72&-64,u=new Uint8Array(h);for(r=0;r<i;++r)u[r]=t[a++];u[r++]=128;let d=h-8;r<d&&(r=d),u[r++]=i<<3&255,u[r++]=i>>5&255,u[r++]=i>>13&255,u[r++]=i>>21&255,u[r++]=i>>>29&255,r+=3;let f=new Int32Array(16),{k:g,r:p}=g4;for(r=0;r<h;){for(s=0;s<16;++s,r+=4)f[s]=u[r]|u[r+1]<<8|u[r+2]<<16|u[r+3]<<24;let t,a,i=n,h=l,d=o,m=c;for(s=0;s<64;++s){s<16?(t=h&d|~h&m,a=s):s<32?(t=m&h|~m&d,a=5*s+1&15):s<48?(t=h^d^m,a=3*s+5&15):(t=d^(h|~m),a=7*s&15);let r=m,n=i+t+g[s]+f[a]|0,l=p[s];m=d,d=h,h=h+(n<<l|n>>>32-l)|0,i=r}n=n+i|0,l=l+h|0,o=o+d|0,c=c+m|0}return new Uint8Array([255&n,n>>8&255,n>>16&255,n>>>24&255,255&l,l>>8&255,l>>16&255,l>>>24&255,255&o,o>>8&255,o>>16&255,o>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255])}function pt(t){try{return O(t)}catch(a){return f(`UTF-8 decoding failed: "${a}".`),t}}class pa extends nT{constructor(t){super(t),this.node=null}onEndElement(t){let a=super.onEndElement(t);if(a&&"xfa:datasets"===t)throw this.node=a,Error("Aborting DatasetXMLParser.")}}class pi{constructor(t){if(t.datasets)this.node=new nT({hasAttributes:!0}).parseFromString(t.datasets).documentElement;else{const a=new pa({hasAttributes:!0});try{a.parseFromString(t["xdp:xdp"])}catch{}this.node=a.node}}getValue(t){if(!this.node||!t)return"";let a=this.node.searchNode(eF(t),0);if(!a)return"";let i=a.firstChild;return"value"===i?.nodeName?a.children.map(t=>pt(t.textContent)):pt(a.textContent)}}class pr{#eE;minX=1/0;minY=1/0;maxX=-1/0;maxY=-1/0;#e_=null;#eL=[];#eU=[];#eq=-1;#ej=!1;constructor(t){this.#eE=t;const a=t.data.quadPoints;if(a){for(let t=0,i=a.length;t<i;t+=8)this.minX=Math.min(this.minX,a[t]),this.maxX=Math.max(this.maxX,a[t+2]),this.minY=Math.min(this.minY,a[t+5]),this.maxY=Math.max(this.maxY,a[t+1]);a.length>8&&(this.#e_=a)}else[this.minX,this.minY,this.maxX,this.maxY]=t.data.rect}#e$(t,a){if(this.minX>=t||this.maxX<=t||this.minY>=a||this.maxY<=a)return!1;let i=this.#e_;if(!i)return!0;if(this.#eq>=0){let r=this.#eq;if(!(i[r]>=t||i[r+2]<=t||i[r+5]>=a||i[r+1]<=a))return!0;this.#eq=-1}for(let r=0,s=i.length;r<s;r+=8)if(!(i[r]>=t||i[r+2]<=t||i[r+5]>=a||i[r+1]<=a))return this.#eq=r,!0;return!1}addGlyph(t,a,i){return this.#e$(t,a)?(this.#eU.length>0&&(this.#eL.push(this.#eU.join("")),this.#eU.length=0),this.#eL.push(i),this.#ej=!0,!0):(this.disableExtraChars(),!1)}addExtraChar(t){this.#ej&&this.#eU.push(t)}disableExtraChars(){this.#ej&&(this.#ej=!1,this.#eU.length=0)}setText(){this.#eE.data.overlaidText=this.#eL.join("")}}class ps{#eH=[];#ez=[];#eG;#eW;#eV;#eX;#eK;#eY;constructor(t){let a=1/0,i=1/0,r=-1/0,s=-1/0;const n=this.#eH;for(const l of t){if(!l.data.quadPoints&&!l.data.rect)continue;const t=new pr(l);n.push(t),a=Math.min(a,t.minX),i=Math.min(i,t.minY),r=Math.max(r,t.maxX),s=Math.max(s,t.maxY)}for(const t of(this.#eG=a,this.#eV=i,this.#eW=r,this.#eX=s,this.#eK=63/(r-a),this.#eY=63/(s-i),n)){const a=this.#eJ(t.minX,t.minY),i=this.#eJ(t.maxX,t.maxY),r=(i-a)%64,s=Math.floor((i-a)/64);for(let i=a;i<=a+64*s;i+=64)for(let a=0;a<=r;a++){let r=this.#ez[i+a];r||(this.#ez[i+a]=r=[]),r.push(t)}}}#eJ(t,a){return Math.floor((t-this.#eG)*this.#eK)+64*Math.floor((a-this.#eV)*this.#eY)}addGlyph(t,a,i,r){let s=t[4]+a/2,n=t[5]+i/2;if(s<this.#eG||n<this.#eV||s>this.#eW||n>this.#eX)return;let l=this.#ez[this.#eJ(s,n)];if(l)for(let t of l)t.addGlyph(s,n,r)}addExtraChar(t){for(let a of this.#eH)a.addExtraChar(t)}setText(){for(let t of this.#eH)t.setText()}}class pn{constructor(t,a){this.high=0|t,this.low=0|a}and(t){this.high&=t.high,this.low&=t.low}xor(t){this.high^=t.high,this.low^=t.low}shiftRight(t){t>=32?(this.low=this.high>>>t-32,this.high=0):(this.low=this.low>>>t|this.high<<32-t,this.high=this.high>>>t)}rotateRight(t){let a,i;32&t?(i=this.low,a=this.high):(a=this.low,i=this.high),t&=31,this.low=a>>>t|i<<32-t,this.high=i>>>t|a<<32-t}not(){this.high=~this.high,this.low=~this.low}add(t){let a=(this.low>>>0)+(t.low>>>0),i=(this.high>>>0)+(t.high>>>0);a>0xffffffff&&(i+=1),this.low=0|a,this.high=0|i}copyTo(t,a){t[a]=this.high>>>24&255,t[a+1]=this.high>>16&255,t[a+2]=this.high>>8&255,t[a+3]=255&this.high,t[a+4]=this.low>>>24&255,t[a+5]=this.low>>16&255,t[a+6]=this.low>>8&255,t[a+7]=255&this.low}assign(t){this.high=t.high,this.low=t.low}}let pl={get k(){return b(this,"k",[new pn(0x428a2f98,0xd728ae22),new pn(0x71374491,0x23ef65cd),new pn(0xb5c0fbcf,0xec4d3b2f),new pn(0xe9b5dba5,0x8189dbbc),new pn(0x3956c25b,0xf348b538),new pn(0x59f111f1,0xb605d019),new pn(0x923f82a4,0xaf194f9b),new pn(0xab1c5ed5,0xda6d8118),new pn(0xd807aa98,0xa3030242),new pn(0x12835b01,0x45706fbe),new pn(0x243185be,0x4ee4b28c),new pn(0x550c7dc3,0xd5ffb4e2),new pn(0x72be5d74,0xf27b896f),new pn(0x80deb1fe,0x3b1696b1),new pn(0x9bdc06a7,0x25c71235),new pn(0xc19bf174,0xcf692694),new pn(0xe49b69c1,0x9ef14ad2),new pn(0xefbe4786,0x384f25e3),new pn(0xfc19dc6,0x8b8cd5b5),new pn(0x240ca1cc,0x77ac9c65),new pn(0x2de92c6f,0x592b0275),new pn(0x4a7484aa,0x6ea6e483),new pn(0x5cb0a9dc,0xbd41fbd4),new pn(0x76f988da,0x831153b5),new pn(0x983e5152,0xee66dfab),new pn(0xa831c66d,0x2db43210),new pn(0xb00327c8,0x98fb213f),new pn(0xbf597fc7,0xbeef0ee4),new pn(0xc6e00bf3,0x3da88fc2),new pn(0xd5a79147,0x930aa725),new pn(0x6ca6351,0xe003826f),new pn(0x14292967,0xa0e6e70),new pn(0x27b70a85,0x46d22ffc),new pn(0x2e1b2138,0x5c26c926),new pn(0x4d2c6dfc,0x5ac42aed),new pn(0x53380d13,0x9d95b3df),new pn(0x650a7354,0x8baf63de),new pn(0x766a0abb,0x3c77b2a8),new pn(0x81c2c92e,0x47edaee6),new pn(0x92722c85,0x1482353b),new pn(0xa2bfe8a1,0x4cf10364),new pn(0xa81a664b,0xbc423001),new pn(0xc24b8b70,0xd0f89791),new pn(0xc76c51a3,0x654be30),new pn(0xd192e819,0xd6ef5218),new pn(0xd6990624,0x5565a910),new pn(0xf40e3585,0x5771202a),new pn(0x106aa070,0x32bbd1b8),new pn(0x19a4c116,0xb8d2d0c8),new pn(0x1e376c08,0x5141ab53),new pn(0x2748774c,0xdf8eeb99),new pn(0x34b0bcb5,0xe19b48a8),new pn(0x391c0cb3,0xc5c95a63),new pn(0x4ed8aa4a,0xe3418acb),new pn(0x5b9cca4f,0x7763e373),new pn(0x682e6ff3,0xd6b2b8a3),new pn(0x748f82ee,0x5defb2fc),new pn(0x78a5636f,0x43172f60),new pn(0x84c87814,0xa1f0ab72),new pn(0x8cc70208,0x1a6439ec),new pn(0x90befffa,0x23631e28),new pn(0xa4506ceb,0xde82bde9),new pn(0xbef9a3f7,0xb2c67915),new pn(0xc67178f2,0xe372532b),new pn(0xca273ece,0xea26619c),new pn(0xd186b8c7,0x21c0c207),new pn(0xeada7dd6,0xcde0eb1e),new pn(0xf57d4f7f,0xee6ed178),new pn(0x6f067aa,0x72176fba),new pn(0xa637dc5,0xa2c898a6),new pn(0x113f9804,0xbef90dae),new pn(0x1b710b35,0x131c471b),new pn(0x28db77f5,0x23047d84),new pn(0x32caab7b,0x40c72493),new pn(0x3c9ebe0a,0x15c9bebc),new pn(0x431d67c4,0x9c100d4c),new pn(0x4cc5d4be,0xcb3e42b6),new pn(0x597f299c,0xfc657e2a),new pn(0x5fcb6fab,0x3ad6faec),new pn(0x6c44198c,0x4a475817)])}};function po(t,a,i,r=!1){let s,n,l,o,c,h,u,d,f,g,p,m;r?(s=new pn(0xcbbb9d5d,0xc1059ed8),n=new pn(0x629a292a,0x367cd507),l=new pn(0x9159015a,0x3070dd17),o=new pn(0x152fecd8,0xf70e5939),c=new pn(0x67332667,0xffc00b31),h=new pn(0x8eb44a87,0x68581511),u=new pn(0xdb0c2e0d,0x64f98fa7),d=new pn(0x47b5481d,0xbefa4fa4)):(s=new pn(0x6a09e667,0xf3bcc908),n=new pn(0xbb67ae85,0x84caa73b),l=new pn(0x3c6ef372,0xfe94f82b),o=new pn(0xa54ff53a,0x5f1d36f1),c=new pn(0x510e527f,0xade682d1),h=new pn(0x9b05688c,0x2b3e6c1f),u=new pn(0x1f83d9ab,0xfb41bd6b),d=new pn(0x5be0cd19,0x137e2179));let b=128*Math.ceil((i+17)/128),y=new Uint8Array(b);for(f=0;f<i;++f)y[f]=t[a++];y[f++]=128;let w=b-16;f<w&&(f=w),f+=11,y[f++]=i>>>29&255,y[f++]=i>>21&255,y[f++]=i>>13&255,y[f++]=i>>5&255,y[f++]=i<<3&255;let x=Array(80);for(f=0;f<80;f++)x[f]=new pn(0,0);let{k:k}=pl,v=new pn(0,0),A=new pn(0,0),C=new pn(0,0),S=new pn(0,0),I=new pn(0,0),B=new pn(0,0),F=new pn(0,0),M=new pn(0,0),T=new pn(0,0),R=new pn(0,0),N=new pn(0,0),D=new pn(0,0);for(f=0;f<b;){var O,P,E,_,L,U,q,j,$,H,z;for(g=0;g<16;++g)x[g].high=y[f]<<24|y[f+1]<<16|y[f+2]<<8|y[f+3],x[g].low=y[f+4]<<24|y[f+5]<<16|y[f+6]<<8|y[f+7],f+=8;for(g=16;g<80;++g)O=p=x[g],P=x[g-2],O.assign(P),O.rotateRight(19),D.assign(P),D.rotateRight(61),O.xor(D),D.assign(P),D.shiftRight(6),O.xor(D),p.add(x[g-7]),E=x[g-15],N.assign(E),N.rotateRight(1),D.assign(E),D.rotateRight(8),N.xor(D),D.assign(E),D.shiftRight(7),N.xor(D),p.add(N),p.add(x[g-16]);for(v.assign(s),A.assign(n),C.assign(l),S.assign(o),I.assign(c),B.assign(h),F.assign(u),M.assign(d),g=0;g<80;++g)T.assign(M),_=I,N.assign(_),N.rotateRight(14),D.assign(_),D.rotateRight(18),N.xor(D),D.assign(_),D.rotateRight(41),N.xor(D),T.add(N),L=I,U=B,q=F,N.assign(L),N.and(U),D.assign(L),D.not(),D.and(q),N.xor(D),T.add(N),T.add(k[g]),T.add(x[g]),j=v,R.assign(j),R.rotateRight(28),D.assign(j),D.rotateRight(34),R.xor(D),D.assign(j),D.rotateRight(39),R.xor(D),$=v,H=A,z=C,N.assign($),N.and(H),D.assign($),D.and(z),N.xor(D),D.assign(H),D.and(z),N.xor(D),R.add(N),p=M,M=F,F=B,B=I,S.add(T),I=S,S=C,C=A,A=v,p.assign(T),p.add(R),v=p;s.add(v),n.add(A),l.add(C),o.add(S),c.add(I),h.add(B),u.add(F),d.add(M)}return r?(m=new Uint8Array(48),s.copyTo(m,0),n.copyTo(m,8),l.copyTo(m,16),o.copyTo(m,24),c.copyTo(m,32),h.copyTo(m,40)):(m=new Uint8Array(64),s.copyTo(m,0),n.copyTo(m,8),l.copyTo(m,16),o.copyTo(m,24),c.copyTo(m,32),h.copyTo(m,40),u.copyTo(m,48),d.copyTo(m,56)),m}let pc={get k(){return b(this,"k",[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2])}};function ph(t,a){return t>>>a|t<<32-a}function pu(t,a,i){let r,s,n=0x6a09e667,l=0xbb67ae85,o=0x3c6ef372,c=0xa54ff53a,h=0x510e527f,u=0x9b05688c,d=0x1f83d9ab,f=0x5be0cd19,g=64*Math.ceil((i+9)/64),p=new Uint8Array(g);for(r=0;r<i;++r)p[r]=t[a++];p[r++]=128;let m=g-8;r<m&&(r=m),r+=3,p[r++]=i>>>29&255,p[r++]=i>>21&255,p[r++]=i>>13&255,p[r++]=i>>5&255,p[r++]=i<<3&255;let b=new Uint32Array(64),{k:y}=pc;for(r=0;r<g;){var w,x,k,v,A,C,S,I;for(s=0;s<16;++s)b[s]=p[r]<<24|p[r+1]<<16|p[r+2]<<8|p[r+3],r+=4;for(s=16;s<64;++s)b[s]=(ph(w=b[s-2],17)^ph(w,19)^w>>>10)+b[s-7]+(ph(x=b[s-15],7)^ph(x,18)^x>>>3)+b[s-16]|0;let t,a,i=n,g=l,m=o,B=c,F=h,M=u,T=d,R=f;for(s=0;s<64;++s)t=R+(ph(k=F,6)^ph(k,11)^ph(k,25))+((v=F)&M^~v&T)+y[s]+b[s],a=(ph(A=i,2)^ph(A,13)^ph(A,22))+((C=i)&(S=g)^C&(I=m)^S&I),R=T,T=M,M=F,F=B+t|0,B=m,m=g,g=i,i=t+a|0;n=n+i|0,l=l+g|0,o=o+m|0,c=c+B|0,h=h+F|0,u=u+M|0,d=d+T|0,f=f+R|0}return new Uint8Array([n>>24&255,n>>16&255,n>>8&255,255&n,l>>24&255,l>>16&255,l>>8&255,255&l,o>>24&255,o>>16&255,o>>8&255,255&o,c>>24&255,c>>16&255,c>>8&255,255&c,h>>24&255,h>>16&255,h>>8&255,255&h,u>>24&255,u>>16&255,u>>8&255,255&u,d>>24&255,d>>16&255,d>>8&255,255&d,f>>24&255,f>>16&255,f>>8&255,255&f])}class pd extends tm{constructor(t,a,i){super(a),this.stream=t,this.dict=t.dict,this.decrypt=i,this.nextChunk=null,this.initialized=!1}readBlock(){let t;if(this.initialized?t=this.nextChunk:(t=this.stream.getBytes(512),this.initialized=!0),!t?.length){this.eof=!0;return}this.nextChunk=this.stream.getBytes(512);let a=this.nextChunk?.length>0;t=(0,this.decrypt)(t,!a);let i=this.bufferLength,r=i+t.length;this.ensureBuffer(r).set(t,i),this.bufferLength=r}getOriginalStream(){return this}}class pf{constructor(t){this.a=0,this.b=0;const a=new Uint8Array(256),i=t.length;for(let t=0;t<256;++t)a[t]=t;for(let r=0,s=0;r<256;++r){const n=a[r];s=s+n+t[r%i]&255,a[r]=a[s],a[s]=n}this.s=a}encryptBlock(t){let a=this.a,i=this.b,r=this.s,s=t.length,n=new Uint8Array(s);for(let l=0;l<s;++l){let s=r[a=a+1&255],o=r[i=i+s&255];r[a]=o,r[i]=s,n[l]=t[l]^r[s+o&255]}return this.a=a,this.b=i,n}decryptBlock(t){return this.encryptBlock(t)}encrypt(t){return this.encryptBlock(t)}}class pg{decryptBlock(t){return t}encrypt(t){return t}}class pp{_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]);_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]);_mix=new Uint32Array([0,0xe090d0b,0x1c121a16,0x121b171d,0x3824342c,0x362d3927,0x24362e3a,0x2a3f2331,0x70486858,0x7e416553,0x6c5a724e,0x62537f45,0x486c5c74,0x4665517f,0x547e4662,0x5a774b69,0xe090d0b0,0xee99ddbb,0xfc82caa6,0xf28bc7ad,0xd8b4e49c,0xd6bde997,0xc4a6fe8a,0xcaaff381,0x90d8b8e8,0x9ed1b5e3,0x8ccaa2fe,0x82c3aff5,0xa8fc8cc4,0xa6f581cf,0xb4ee96d2,0xbae79bd9,0xdb3bbb7b,0xd532b670,0xc729a16d,0xc920ac66,0xe31f8f57,0xed16825c,0xff0d9541,0xf104984a,0xab73d323,0xa57ade28,0xb761c935,0xb968c43e,0x9357e70f,0x9d5eea04,0x8f45fd19,0x814cf012,0x3bab6bcb,0x35a266c0,0x27b971dd,0x29b07cd6,0x38f5fe7,0xd8652ec,0x1f9d45f1,0x119448fa,0x4be30393,0x45ea0e98,0x57f11985,0x59f8148e,0x73c737bf,0x7dce3ab4,0x6fd52da9,0x61dc20a2,0xad766df6,0xa37f60fd,0xb16477e0,0xbf6d7aeb,0x955259da,0x9b5b54d1,0x894043cc,0x87494ec7,0xdd3e05ae,0xd33708a5,0xc12c1fb8,0xcf2512b3,0xe51a3182,0xeb133c89,0xf9082b94,0xf701269f,0x4de6bd46,0x43efb04d,0x51f4a750,0x5ffdaa5b,0x75c2896a,0x7bcb8461,0x69d0937c,0x67d99e77,0x3daed51e,0x33a7d815,0x21bccf08,0x2fb5c203,0x58ae132,0xb83ec39,0x1998fb24,0x1791f62f,0x764dd68d,0x7844db86,0x6a5fcc9b,0x6456c190,0x4e69e2a1,0x4060efaa,0x527bf8b7,0x5c72f5bc,0x605bed5,0x80cb3de,0x1a17a4c3,0x141ea9c8,0x3e218af9,0x302887f2,0x223390ef,0x2c3a9de4,0x96dd063d,0x98d40b36,0x8acf1c2b,0x84c61120,0xaef93211,0xa0f03f1a,0xb2eb2807,0xbce2250c,0xe6956e65,0xe89c636e,0xfa877473,0xf48e7978,0xdeb15a49,0xd0b85742,0xc2a3405f,0xccaa4d54,0x41ecdaf7,0x4fe5d7fc,0x5dfec0e1,0x53f7cdea,0x79c8eedb,0x77c1e3d0,0x65daf4cd,0x6bd3f9c6,0x31a4b2af,0x3fadbfa4,0x2db6a8b9,0x23bfa5b2,0x9808683,0x7898b88,0x15929c95,0x1b9b919e,0xa17c0a47,0xaf75074c,0xbd6e1051,0xb3671d5a,0x99583e6b,0x97513360,0x854a247d,0x8b432976,0xd134621f,0xdf3d6f14,0xcd267809,0xc32f7502,0xe9105633,0xe7195b38,0xf5024c25,0xfb0b412e,0x9ad7618c,0x94de6c87,0x86c57b9a,0x88cc7691,0xa2f355a0,0xacfa58ab,0xbee14fb6,0xb0e842bd,0xea9f09d4,0xe49604df,0xf68d13c2,0xf8841ec9,0xd2bb3df8,0xdcb230f3,0xcea927ee,0xc0a02ae5,0x7a47b13c,0x744ebc37,0x6655ab2a,0x685ca621,0x42638510,0x4c6a881b,0x5e719f06,0x5078920d,0xa0fd964,0x406d46f,0x161dc372,0x1814ce79,0x322bed48,0x3c22e043,0x2e39f75e,0x2030fa55,0xec9ab701,0xe293ba0a,0xf088ad17,0xfe81a01c,0xd4be832d,0xdab78e26,0xc8ac993b,0xc6a59430,0x9cd2df59,0x92dbd252,0x80c0c54f,0x8ec9c844,0xa4f6eb75,0xaaffe67e,0xb8e4f163,0xb6edfc68,0xc0a67b1,0x2036aba,0x10187da7,0x1e1170ac,0x342e539d,0x3a275e96,0x283c498b,0x26354480,0x7c420fe9,0x724b02e2,0x605015ff,0x6e5918f4,0x44663bc5,0x4a6f36ce,0x587421d3,0x567d2cd8,0x37a10c7a,0x39a80171,0x2bb3166c,0x25ba1b67,0xf853856,0x18c355d,0x13972240,0x1d9e2f4b,0x47e96422,0x49e06929,0x5bfb7e34,0x55f2733f,0x7fcd500e,0x71c45d05,0x63df4a18,0x6dd64713,0xd731dcca,0xd938d1c1,0xcb23c6dc,0xc52acbd7,0xef15e8e6,0xe11ce5ed,0xf307f2f0,0xfd0efffb,0xa779b492,0xa970b999,0xbb6bae84,0xb562a38f,0x9f5d80be,0x91548db5,0x834f9aa8,0x8d4697a3]);_mixCol=new Uint8Array(256).map((t,a)=>a<128?a<<1:a<<1^27);constructor(){this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(t){g("Cannot call `_expandKey` on the base class")}_decrypt(t,a){let i,r,s,n=new Uint8Array(16);n.set(t);for(let t=0,i=this._keySize;t<16;++t,++i)n[t]^=a[i];for(let t=this._cyclesOfRepetition-1;t>=1;--t){i=n[13],n[13]=n[9],n[9]=n[5],n[5]=n[1],n[1]=i,i=n[14],r=n[10],n[14]=n[6],n[10]=n[2],n[6]=i,n[2]=r,i=n[15],r=n[11],s=n[7],n[15]=n[3],n[11]=i,n[7]=r,n[3]=s;for(let t=0;t<16;++t)n[t]=this._inv_s[n[t]];for(let i=0,r=16*t;i<16;++i,++r)n[i]^=a[r];for(let t=0;t<16;t+=4){let a=this._mix[n[t]],r=this._mix[n[t+1]],s=this._mix[n[t+2]],l=this._mix[n[t+3]];i=a^r>>>8^r<<24^s>>>16^s<<16^l>>>24^l<<8,n[t]=i>>>24&255,n[t+1]=i>>16&255,n[t+2]=i>>8&255,n[t+3]=255&i}}i=n[13],n[13]=n[9],n[9]=n[5],n[5]=n[1],n[1]=i,i=n[14],r=n[10],n[14]=n[6],n[10]=n[2],n[6]=i,n[2]=r,i=n[15],r=n[11],s=n[7],n[15]=n[3],n[11]=i,n[7]=r,n[3]=s;for(let t=0;t<16;++t)n[t]=this._inv_s[n[t]],n[t]^=a[t];return n}_encrypt(t,a){let i,r,s,n=this._s,l=new Uint8Array(16);l.set(t);for(let t=0;t<16;++t)l[t]^=a[t];for(let t=1;t<this._cyclesOfRepetition;t++){for(let t=0;t<16;++t)l[t]=n[l[t]];s=l[1],l[1]=l[5],l[5]=l[9],l[9]=l[13],l[13]=s,s=l[2],r=l[6],l[2]=l[10],l[6]=l[14],l[10]=s,l[14]=r,s=l[3],r=l[7],i=l[11],l[3]=l[15],l[7]=s,l[11]=r,l[15]=i;for(let t=0;t<16;t+=4){let a=l[t],r=l[t+1],s=l[t+2],n=l[t+3];i=a^r^s^n,l[t]^=i^this._mixCol[a^r],l[t+1]^=i^this._mixCol[r^s],l[t+2]^=i^this._mixCol[s^n],l[t+3]^=i^this._mixCol[n^a]}for(let i=0,r=16*t;i<16;++i,++r)l[i]^=a[r]}for(let t=0;t<16;++t)l[t]=n[l[t]];s=l[1],l[1]=l[5],l[5]=l[9],l[9]=l[13],l[13]=s,s=l[2],r=l[6],l[2]=l[10],l[6]=l[14],l[10]=s,l[14]=r,s=l[3],r=l[7],i=l[11],l[3]=l[15],l[7]=s,l[11]=r,l[15]=i;for(let t=0,i=this._keySize;t<16;++t,++i)l[t]^=a[i];return l}_decryptBlock2(t,a){let i=t.length,r=this.buffer,s=this.bufferPosition,n=[],l=this.iv;for(let a=0;a<i;++a){if(r[s]=t[a],++s<16)continue;let i=this._decrypt(r,this._key);for(let t=0;t<16;++t)i[t]^=l[t];l=r,n.push(i),r=new Uint8Array(16),s=0}if(this.buffer=r,this.bufferLength=s,this.iv=l,0===n.length)return new Uint8Array(0);let o=16*n.length;if(a){let t=n.at(-1),a=t[15];if(a<=16){for(let i=15,r=16-a;i>=r;--i)if(t[i]!==a){a=0;break}o-=a,n[n.length-1]=t.subarray(0,16-a)}}let c=new Uint8Array(o);for(let t=0,a=0,i=n.length;t<i;++t,a+=16)c.set(n[t],a);return c}decryptBlock(t,a,i=null){let r=t.length,s=this.buffer,n=this.bufferPosition;if(i)this.iv=i;else{for(let a=0;n<16&&a<r;++a,++n)s[n]=t[a];if(n<16)return this.bufferLength=n,new Uint8Array(0);this.iv=s,t=t.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(t,a)}encrypt(t,a){let i=t.length,r=this.buffer,s=this.bufferPosition,n=[];a||=new Uint8Array(16);for(let l=0;l<i;++l){if(r[s]=t[l],++s<16)continue;for(let t=0;t<16;++t)r[t]^=a[t];let i=this._encrypt(r,this._key);a=i,n.push(i),r=new Uint8Array(16),s=0}if(this.buffer=r,this.bufferLength=s,this.iv=a,0===n.length)return new Uint8Array(0);let l=new Uint8Array(16*n.length);for(let t=0,a=0,i=n.length;t<i;++t,a+=16)l.set(n[t],a);return l}}class pm extends pp{_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]);constructor(t){super(),this._cyclesOfRepetition=10,this._keySize=160,this._key=this._expandKey(t)}_expandKey(t){let a=this._s,i=this._rcon,r=new Uint8Array(176);r.set(t);for(let t=16,s=1;t<176;++s){let n=r[t-3],l=r[t-2],o=r[t-1],c=r[t-4];n=a[n],l=a[l],o=a[o],c=a[c],n^=i[s];for(let a=0;a<4;++a)r[t]=n^=r[t-16],r[++t]=l^=r[t-16],r[++t]=o^=r[t-16],r[++t]=c^=r[t-16],t++}return r}}class pb extends pp{constructor(t){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(t)}_expandKey(t){let a=this._s,i=new Uint8Array(240);i.set(t);let r,s,n,l,o=1;for(let t=32,c=1;t<240;++c){t%32==16?(r=a[r],s=a[s],n=a[n],l=a[l]):t%32==0&&(r=i[t-3],s=i[t-2],n=i[t-1],l=i[t-4],r=a[r],s=a[s],n=a[n],l=a[l],r^=o,(o<<=1)>=256&&(o=255&(27^o)));for(let a=0;a<4;++a)i[t]=r^=i[t-32],i[++t]=s^=i[t-32],i[++t]=n^=i[t-32],i[++t]=l^=i[t-32],t++}return i}}class py{_hash(t,a,i){g("Abstract method `_hash` called")}checkOwnerPassword(t,a,i,r){let s=new Uint8Array(t.length+56);return s.set(t,0),s.set(a,t.length),s.set(i,t.length+a.length),E(this._hash(t,s,i),r)}checkUserPassword(t,a,i){let r=new Uint8Array(t.length+8);return r.set(t,0),r.set(a,t.length),E(this._hash(t,r,[]),i)}getOwnerKey(t,a,i,r){let s=new Uint8Array(t.length+56);return s.set(t,0),s.set(a,t.length),s.set(i,t.length+a.length),new pb(this._hash(t,s,i)).decryptBlock(r,!1,new Uint8Array(16))}getUserKey(t,a,i){let r=new Uint8Array(t.length+8);return r.set(t,0),r.set(a,t.length),new pb(this._hash(t,r,[])).decryptBlock(i,!1,new Uint8Array(16))}}class pw extends py{_hash(t,a,i){return pu(a,0,a.length)}}class px extends py{_hash(t,a,i){let r=pu(a,0,a.length).subarray(0,32),s=[0],n=0;for(;n<64||s.at(-1)>n-32;){let a=t.length+r.length+i.length,l=new Uint8Array(a),o=0;l.set(t,o),o+=t.length,l.set(r,o),o+=r.length,l.set(i,o);let c=new Uint8Array(64*a);for(let t=0,i=0;t<64;t++,i+=a)c.set(l,i);let h=Math.sumPrecise((s=new pm(r.subarray(0,16)).encrypt(c,r.subarray(16,32))).slice(0,16))%3;0===h?r=pu(s,0,s.length):1===h?r=po(s,0,s.length,!0):2===h&&(r=po(s,0,s.length)),n++}return r.subarray(0,32)}}class pk{constructor(t,a){this.StringCipherConstructor=t,this.StreamCipherConstructor=a}createStream(t,a){let i=new this.StreamCipherConstructor;return new pd(t,a,function(t,a){return i.decryptBlock(t,a)})}decryptString(t){let a=new this.StringCipherConstructor,i=I(t);return S(i=a.decryptBlock(i,!0))}encryptString(t){let a=new this.StringCipherConstructor;if(a instanceof pp){let i=16-t.length%16;t+=String.fromCharCode(i).repeat(i);let r=new Uint8Array(16);crypto.getRandomValues(r);let s=I(t),n=new Uint8Array(16+(s=a.encrypt(s,r)).length);return n.set(r),n.set(s,16),S(n)}let i=I(t);return S(i=a.encrypt(i))}}class pv{static get _defaultPasswordBytes(){return b(this,"_defaultPasswordBytes",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]))}#eZ(t,a,i,r,s,n,l,o,c,h,u,d){if(a){let t=Math.min(127,a.length);a=a.subarray(0,t)}else a=[];let f=6===t?new px:new pw;return f.checkUserPassword(a,o,l)?f.getUserKey(a,c,u):a.length&&f.checkOwnerPassword(a,r,n,i)?f.getOwnerKey(a,s,n,h):null}#eQ(t,a,i,r,s,n,l,o){let c,h=new Uint8Array(40+i.length+t.length),u,d,f=0;if(a)for(d=Math.min(32,a.length);f<d;++f)h[f]=a[f];for(u=0;f<32;)h[f++]=pv._defaultPasswordBytes[u++];h.set(i,f),f+=i.length,h[f++]=255&s,h[f++]=s>>8&255,h[f++]=s>>16&255,h[f++]=s>>>24&255,h.set(t,f),f+=t.length,n>=4&&!o&&(h.fill(255,f,f+4),f+=4);let g=pe(h,0,f),p=l>>3;if(n>=3)for(u=0;u<50;++u)g=pe(g,0,p);let m=g.subarray(0,p);if(n>=3){f=0,h.set(pv._defaultPasswordBytes,f),f+=32,h.set(t,f),f+=t.length,c=new pf(m).encryptBlock(pe(h,0,f));let a=new Uint8Array(d=m.length);for(u=1;u<=19;++u){for(let t=0;t<d;++t)a[t]=m[t]^u;c=new pf(a).encryptBlock(c)}}else c=new pf(m).encryptBlock(pv._defaultPasswordBytes);return c.every((t,a)=>r[a]===t)?m:null}#e1(t,a,i,r){let s,n=new Uint8Array(32),l=0,o=Math.min(32,t.length);for(;l<o;++l)n[l]=t[l];let c=0;for(;l<32;)n[l++]=pv._defaultPasswordBytes[c++];let h=pe(n,0,l),u=r>>3;if(i>=3)for(c=0;c<50;++c)h=pe(h,0,h.length);if(i>=3){s=a;let t=new Uint8Array(u);for(c=19;c>=0;c--){for(let a=0;a<u;++a)t[a]=h[a]^c;s=new pf(t).encryptBlock(s)}}else s=new pf(h.subarray(0,u)).encryptBlock(a);return s}#e0(t,a,i,r=!1){let s=i.length,n=new Uint8Array(s+9);n.set(i);let l=s;return n[l++]=255&t,n[l++]=t>>8&255,n[l++]=t>>16&255,n[l++]=255&a,n[l++]=a>>8&255,r&&(n[l++]=115,n[l++]=65,n[l++]=108,n[l++]=84),pe(n,0,l).subarray(0,Math.min(s+5,16))}#e2(t,a,i,r,s){if(!(a instanceof W))throw new A("Invalid crypt filter name.");let n=this,l=t.get(a.name),o=l?.get("CFM");if(!o||"None"===o.name)return function(){return new pg};if("V2"===o.name)return function(){return new pf(n.#e0(i,r,s,!1))};if("AESV2"===o.name)return function(){return new pm(n.#e0(i,r,s,!0))};if("AESV3"===o.name)return function(){return new pb(s)};throw new A("Unknown crypto method")}constructor(t,a,i){let r,s;const n=t.get("Filter");if(!Q(n,"Standard"))throw new A("unknown encryption method");this.filterName=n.name,this.dict=t;const l=t.get("V");if(!Number.isInteger(l)||1!==l&&2!==l&&4!==l&&5!==l)throw new A("unsupported encryption algorithm");this.algorithm=l;let o=t.get("Length");if(!o)if(l<=3)o=40;else{const a=t.get("CF"),i=t.get("StmF");if(a instanceof K&&i instanceof W){a.suppressEncryption=!0;const t=a.get(i.name);(o=t?.get("Length")||128)<40&&(o<<=3)}}if(!Number.isInteger(o)||o<40||o%8!=0)throw new A("invalid key length");const c=I(t.get("O")),h=I(t.get("U")),u=c.subarray(0,32),d=h.subarray(0,32),g=t.get("P"),p=t.get("R"),m=(4===l||5===l)&&!1!==t.get("EncryptMetadata");this.encryptMetadata=m;const b=I(a);if(i){if(6===p)try{i=P(i)}catch{f("CipherTransformFactory: Unable to convert UTF8 encoded password.")}r=I(i)}if(5!==l)s=this.#eQ(b,r,u,d,g,p,o,m);else{const a=c.subarray(32,40),i=c.subarray(40,48),n=h.subarray(0,48),l=h.subarray(32,40),o=h.subarray(40,48),f=I(t.get("OE")),g=I(t.get("UE")),m=I(t.get("Perms"));s=this.#eZ(p,r,u,a,i,n,d,l,o,f,g,m)}if(!s){if(!i)throw new w("No password given",1);const t=this.#e1(r,u,p,o);s=this.#eQ(b,t,u,d,g,p,o,m)}if(!s)throw new w("Incorrect Password",2);if(4===l&&s.length<16?(this.encryptionKey=new Uint8Array(16),this.encryptionKey.set(s)):this.encryptionKey=s,l>=4){const a=t.get("CF");a instanceof K&&(a.suppressEncryption=!0),this.cf=a,this.stmf=t.get("StmF")||W.get("Identity"),this.strf=t.get("StrF")||W.get("Identity"),this.eff=t.get("EFF")||this.stmf}}createCipherTransform(t,a){if(4===this.algorithm||5===this.algorithm)return new pk(this.#e2(this.cf,this.strf,t,a,this.encryptionKey),this.#e2(this.cf,this.stmf,t,a,this.encryptionKey));let i=this.#e0(t,a,this.encryptionKey,!1),r=function(){return new pf(i)};return new pk(r,r)}}class pA{constructor(t,a){this.stream=t,this.pdfManager=a,this.entries=[],this._xrefStms=new Set,this._cacheMap=new Map,this._pendingRefs=new J,this._newPersistentRefNum=null,this._newTemporaryRefNum=null,this._persistentRefsCache=null}getNewPersistentRef(t){null===this._newPersistentRefNum&&(this._newPersistentRefNum=this.entries.length||1);let a=this._newPersistentRefNum++;return this._cacheMap.set(a,t),Y.get(a,0)}getNewTemporaryRef(){if(null===this._newTemporaryRefNum&&(this._newTemporaryRefNum=this.entries.length||1,this._newPersistentRefNum)){this._persistentRefsCache=new Map;for(let t=this._newTemporaryRefNum;t<this._newPersistentRefNum;t++)this._persistentRefsCache.set(t,this._cacheMap.get(t)),this._cacheMap.delete(t)}return Y.get(this._newTemporaryRefNum++,0)}resetNewTemporaryRef(){if(this._newTemporaryRefNum=null,this._persistentRefsCache)for(let[t,a]of this._persistentRefsCache)this._cacheMap.set(t,a);this._persistentRefsCache=null}setStartXRef(t){this.startXRefQueue=[t]}parse(t=!1){let a,i,r;t?(f("Indexing all PDF objects"),a=this.indexObjects()):a=this.readXRef(),a.assignXref(this),this.trailer=a;try{i=a.get("Encrypt")}catch(t){if(t instanceof eh)throw t;f(`XRef.parse - Invalid "Encrypt" reference: "${t}".`)}if(i instanceof K){let t=a.get("ID"),r=t?.length?t[0]:"";i.suppressEncryption=!0,this.encrypt=new pv(i,r,this.pdfManager.password)}try{r=a.get("Root")}catch(t){if(t instanceof eh)throw t;f(`XRef.parse - Invalid "Root" reference: "${t}".`)}if(r instanceof K)try{if(r.get("Pages")instanceof K){this.root=r;return}}catch(t){if(t instanceof eh)throw t;f(`XRef.parse - Invalid "Pages" reference: "${t}".`)}if(!t)throw new ef;throw new k("Invalid Root reference.")}processXRefTable(t){if("tableState"in this||(this.tableState={entryNum:0,streamPos:t.lexer.stream.pos,parserBuf1:t.buf1,parserBuf2:t.buf2}),!ee(this.readXRefTable(t),"trailer"))throw new A("Invalid XRef table: could not find trailer dictionary");let a=t.getObj();if(a instanceof K||!a.dict||(a=a.dict),!(a instanceof K))throw new A("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,a}readXRefTable(t){let a,i=t.lexer.stream,r=this.tableState;for(i.pos=r.streamPos,t.buf1=r.parserBuf1,t.buf2=r.parserBuf2;;){if(!("firstEntryNum"in r)||!("entryCount"in r)){if(ee(a=t.getObj(),"trailer"))break;r.firstEntryNum=a,r.entryCount=t.getObj()}let s=r.firstEntryNum,n=r.entryCount;if(!Number.isInteger(s)||!Number.isInteger(n))throw new A("Invalid XRef table: wrong types in subsection header");for(let a=r.entryNum;a<n;a++){r.streamPos=i.pos,r.entryNum=a,r.parserBuf1=t.buf1,r.parserBuf2=t.buf2;let l={};l.offset=t.getObj(),l.gen=t.getObj();let o=t.getObj();if(o instanceof V)switch(o.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 A(`Invalid entry in XRef subsection: ${s}, ${n}`);0===a&&l.free&&1===s&&(s=0),this.entries[a+s]||(this.entries[a+s]=l)}r.entryNum=0,r.streamPos=i.pos,r.parserBuf1=t.buf1,r.parserBuf2=t.buf2,delete r.firstEntryNum,delete r.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new A("Invalid XRef table: unexpected first object");return a}processXRefStream(t){if(!("streamState"in this)){let{dict:a,pos:i}=t,r=a.get("W"),s=a.get("Index")||[0,a.get("Size")];this.streamState={entryRanges:s,byteWidths:r,entryNum:0,streamPos:i}}return this.readXRefStream(t),delete this.streamState,t.dict}readXRefStream(t){let a=this.streamState;t.pos=a.streamPos;let[i,r,s]=a.byteWidths,n=a.entryRanges;for(;n.length>0;){let[l,o]=n;if(!Number.isInteger(l)||!Number.isInteger(o))throw new A(`Invalid XRef range fields: ${l}, ${o}`);if(!Number.isInteger(i)||!Number.isInteger(r)||!Number.isInteger(s))throw new A(`Invalid XRef entry fields length: ${l}, ${o}`);for(let n=a.entryNum;n<o;++n){a.entryNum=n,a.streamPos=t.pos;let o=0,c=0,h=0;for(let a=0;a<i;++a){let a=t.getByte();if(-1===a)throw new A("Invalid XRef byteWidths 'type'.");o=o<<8|a}0===i&&(o=1);for(let a=0;a<r;++a){let a=t.getByte();if(-1===a)throw new A("Invalid XRef byteWidths 'offset'.");c=c<<8|a}for(let a=0;a<s;++a){let a=t.getByte();if(-1===a)throw new A("Invalid XRef byteWidths 'generation'.");h=h<<8|a}let u={};switch(u.offset=c,u.gen=h,o){case 0:u.free=!0;break;case 1:u.uncompressed=!0;break;case 2:break;default:throw new A(`Invalid XRef entry type: ${o}`)}this.entries[l+n]||(this.entries[l+n]=u)}a.entryNum=0,a.streamPos=t.pos,n.splice(0,2)}}indexObjects(){function t(t,a,i){let r=i.length,s=t.length,n=0;for(;a<s;){let s=0;for(;s<r&&t[a+s]===i[s];)++s;if(s>=r)break;a++,n++}return n}let a=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer\s*<<)\b/g,i=/\b(startxref|\d+\s+\d+\s+obj)\b/g,r=/^(\d+)\s+(\d+)\s+obj\b/,s=new Uint8Array([116,114,97,105,108,101,114]),n=new Uint8Array([115,116,97,114,116,120,114,101,102]),l=new Uint8Array([47,88,82,101,102]);this.entries.length=0,this._cacheMap.clear();let o=this.stream;o.pos=0;let c=o.getBytes(),h=S(c),u=c.length,d=o.start,g=[],p=[];for(;d<u;){let m,b=c[d];if(9===b||10===b||13===b||32===b){++d;continue}if(37===b){do{if(++d>=u)break;b=c[d]}while(10!==b&&13!==b);continue}let y=function(t,a){let i="",r=t[a];for(;10!==r&&13!==r&&60!==r&&!(++a>=t.length);)i+=String.fromCharCode(r),r=t[a];return i}(c,d);if(y.startsWith("xref")&&(4===y.length||/\s/.test(y[4])))d+=t(c,d,s),g.push(d),d+=t(c,d,n);else if(m=r.exec(y)){let i=0|m[1],r=0|m[2],s=d+y.length,n,g=!1;if(this.entries[i]){if(this.entries[i].gen===r)try{new aS({lexer:new aF(o.makeSubStream(s))}).getObj(),g=!0}catch(t){t instanceof eu?f(`indexObjects -- checking object (${y}): "${t}".`):g=!0}}else g=!0;g&&(this.entries[i]={offset:d-o.start,gen:r,uncompressed:!0}),a.lastIndex=s;let b=a.exec(h);b?(n=a.lastIndex+1-d,"endobj"!==b[1]&&(f(`indexObjects: Found "${b[1]}" inside of another "obj", caused by missing "endobj" -- trying to recover.`),n-=b[1].length+1)):n=u-d;let w=c.subarray(d,d+n),x=t(w,0,l);x<n&&w[x+5]<64&&(p.push(d-o.start),this._xrefStms.add(d-o.start)),d+=n}else if(y.startsWith("trailer")&&(7===y.length||/\s/.test(y[7]))){let t;g.push(d),i.lastIndex=d+y.length;let a=i.exec(h);a?(t=i.lastIndex+1-d,"startxref"!==a[1]&&(f(`indexObjects: Found "${a[1]}" after "trailer", caused by missing "startxref" -- trying to recover.`),t-=a[1].length+1)):t=u-d,d+=t}else d+=y.length+1}for(let t of p)this.startXRefQueue.push(t),this.readXRef(!0);let m=[],b,y,w=!1;for(let t of g){o.pos=t;let a=new aS({lexer:new aF(o),xref:this,allowStreams:!0,recoveryMode:!0});if(!ee(a.getObj(),"trailer"))continue;let i=a.getObj();i instanceof K&&(m.push(i),i.has("Encrypt")&&(w=!0))}for(let t of[...m,"genFallback",...m]){if("genFallback"===t){if(!y)break;this._generationFallback=!0;continue}let a=!1;try{let i=t.get("Root");if(!(i instanceof K))continue;let r=i.get("Pages");if(!(r instanceof K))continue;let s=r.get("Count");Number.isInteger(s)&&(a=!0)}catch(t){y=t;continue}if(a&&(!w||t.has("Encrypt"))&&t.has("ID"))return t;b=t}if(b)return b;if(this.topDict)return this.topDict;if(!m.length)for(let t in this.entries){let a;if(!Object.hasOwn(this.entries,t))continue;let i=this.entries[t],r=Y.get(parseInt(t),i.gen);try{a=this.fetch(r)}catch{continue}if(a instanceof ei&&(a=a.dict),a instanceof K&&a.has("Root"))return a}throw new k("Invalid PDF structure.")}readXRef(t=!1){let a=this.stream,i=new Set;for(;this.startXRefQueue.length;){try{let t=this.startXRefQueue[0];if(i.has(t)){f("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}i.add(t),a.pos=t+a.start;let r=new aS({lexer:new aF(a),xref:this,allowStreams:!0}),s,n=r.getObj();if(ee(n,"xref"))s=this.processXRefTable(r),this.topDict||(this.topDict=s),n=s.get("XRefStm"),Number.isInteger(n)&&!this._xrefStms.has(n)&&(this._xrefStms.add(n),this.startXRefQueue.push(n));else{if(!Number.isInteger(n))throw new A("Invalid XRef stream header");if(!(Number.isInteger(r.getObj())&&ee(r.getObj(),"obj")&&(n=r.getObj())instanceof ei))throw new A("Invalid XRef stream");if(s=this.processXRefStream(n),this.topDict||(this.topDict=s),!s)throw new A("Failed to read XRef stream")}n=s.get("Prev"),Number.isInteger(n)?this.startXRefQueue.push(n):n instanceof Y&&this.startXRefQueue.push(n.num)}catch(t){if(t instanceof eh)throw t;d("(while reading XRef): "+t)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!t)throw new ef}getEntry(t){let a=this.entries[t];return a&&!a.free&&a.offset?a:null}fetchIfRef(t,a=!1){return t instanceof Y?this.fetch(t,a):t}fetch(t,a=!1){if(!(t instanceof Y))throw Error("ref object is not a reference");let i=t.num,r=this._cacheMap.get(i);if(void 0!==r)return r instanceof K&&!r.objId&&(r.objId=t.toString()),r;let s=this.getEntry(i);if(null===s)return s;if(this._pendingRefs.has(t))return this._pendingRefs.remove(t),f(`Ignoring circular reference: ${t}.`),j;this._pendingRefs.put(t);try{s=s.uncompressed?this.fetchUncompressed(t,s,a):this.fetchCompressed(t,s,a),this._pendingRefs.remove(t)}catch(a){throw this._pendingRefs.remove(t),a}return s instanceof K?s.objId=t.toString():s instanceof ei&&(s.dict.objId=t.toString()),s}fetchUncompressed(t,a,i=!1){let r=t.gen,s=t.num;if(a.gen!==r){let n=`Inconsistent generation in XRef: ${t}`;if(this._generationFallback&&a.gen<r)return f(n),this.fetchUncompressed(Y.get(s,a.gen),a,i);throw new ed(n)}let n=new aS({lexer:new aF(this.stream.makeSubStream(a.offset+this.stream.start)),xref:this,allowStreams:!0}),l=n.getObj(),o=n.getObj(),c=n.getObj();if(l!==s||o!==r||!(c instanceof V))throw new ed(`Bad (uncompressed) XRef entry: ${t}`);if("obj"!==c.cmd){if(c.cmd.startsWith("obj")&&!Number.isNaN(s=parseInt(c.cmd.substring(3),10)))return s;throw new ed(`Bad (uncompressed) XRef entry: ${t}`)}return(a=this.encrypt&&!i?n.getObj(this.encrypt.createCipherTransform(s,r)):n.getObj())instanceof ei||this._cacheMap.set(s,a),a}fetchCompressed(t,a,i=!1){let r=a.offset,s=this.fetch(Y.get(r,0));if(!(s instanceof ei))throw new A("bad ObjStm stream");let n=s.dict.get("First"),l=s.dict.get("N");if(!Number.isInteger(n)||!Number.isInteger(l))throw new A("invalid first and n parameters for ObjStm stream");let o=new aS({lexer:new aF(s),xref:this,allowStreams:!0}),c=Array(l),h=Array(l);for(let t=0;t<l;++t){let a=o.getObj();if(!Number.isInteger(a))throw new A(`invalid object number in the ObjStm stream: ${a}`);let i=o.getObj();if(!Number.isInteger(i))throw new A(`invalid object offset in the ObjStm stream: ${i}`);c[t]=a;let s=this.getEntry(a);s?.offset===r&&s.gen!==t&&(s.gen=t),h[t]=i}let u=(s.start||0)+n,d=Array(l);for(let t=0;t<l;++t){let a=t<l-1?h[t+1]-h[t]:void 0;if(a<0)throw new A("Invalid offset in the ObjStm stream.");let i=(o=new aS({lexer:new aF(s.makeSubStream(u+h[t],a,s.dict)),xref:this,allowStreams:!0})).getObj();if(d[t]=i,i instanceof ei)continue;let n=c[t],f=this.entries[n];f&&f.offset===r&&f.gen===t&&this._cacheMap.set(n,i)}if(void 0===(a=d[a.gen]))throw new ed(`Bad (compressed) XRef entry: ${t}`);return a}async fetchIfRefAsync(t,a){return t instanceof Y?this.fetchAsync(t,a):t}async fetchAsync(t,a){try{return this.fetch(t,a)}catch(i){if(!(i instanceof eh))throw i;return await this.pdfManager.requestRange(i.begin,i.end),this.fetchAsync(t,a)}}getCatalogObj(){return this.root}}let pC=[0,0,612,792];class pS{#e9=!1;#e5=null;constructor({pdfManager:t,xref:a,pageIndex:i,pageDict:r,ref:s,globalIdFactory:n,fontCache:l,builtInCMapCache:o,standardFontDataCache:c,globalColorSpaceCache:h,globalImageCache:u,systemFontCache:d,nonBlendModesSet:f,xfaFactory:g}){this.pdfManager=t,this.pageIndex=i,this.pageDict=r,this.xref=a,this.ref=s,this.fontCache=l,this.builtInCMapCache=o,this.standardFontDataCache=c,this.globalColorSpaceCache=h,this.globalImageCache=u,this.systemFontCache=d,this.nonBlendModesSet=f,this.evaluatorOptions=t.evaluatorOptions,this.xfaFactory=g;const p={obj:0};this._localIdFactory=class extends n{static createObjId(){return`p${i}_${++p.obj}`}static getPageObjId(){return`p${s.toString()}`}}}#e3(t){return new no({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalColorSpaceCache:this.globalColorSpaceCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions})}#e6(t,a=!1){let i=em({dict:this.pageDict,key:t,getArray:a,stopWhenFound:!1});return Array.isArray(i)?1!==i.length&&i[0]instanceof K?K.merge({xref:this.xref,dictArray:i}):i[0]:i}get content(){return this.pageDict.getArray("Contents")}get resources(){let t=this.#e6("Resources");return b(this,"resources",t instanceof K?t:K.empty)}getBoundingBox(t){if(this.xfaData)return this.xfaData.bbox;let a=eB(this.#e6(t,!0),null);if(a){if(a[2]-a[0]>0&&a[3]-a[1]>0)return a;f(`Empty, or invalid, /${t} entry.`)}return null}get mediaBox(){return b(this,"mediaBox",this.getBoundingBox("MediaBox")||pC)}get cropBox(){return b(this,"cropBox",this.getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let t=this.pageDict.get("UserUnit");return b(this,"userUnit","number"==typeof t&&t>0?t:1)}get view(){let{cropBox:t,mediaBox:a}=this;if(t!==a&&!E(t,a)){let i=R.intersect(t,a);if(i&&i[2]-i[0]>0&&i[3]-i[1]>0)return b(this,"view",i);f("Empty /CropBox and /MediaBox intersection.")}return b(this,"view",a)}get rotate(){let t=this.#e6("Rotate")||0;return t%90!=0?t=0:t>=360?t%=360:t<0&&(t=(t%360+360)%360),b(this,"rotate",t)}#e7(t,a){if(!this.evaluatorOptions.ignoreErrors)throw t;f(`getContentStream - ignoring sub-stream (${a}): "${t}".`)}async getContentStream(){let t=await this.pdfManager.ensure(this,"content");if(t instanceof ei&&!t.isImageStream){if(t.isAsync){let a=await t.asyncGetBytes();if(a)return new tr(a,0,a.length,t.dict)}return t}if(Array.isArray(t)){let a=[];for(let i=0,r=t.length;i<r;i++){let r=t[i];r instanceof ei&&r.isAsync&&a.push(r.asyncGetBytes().then(a=>{a&&(t[i]=new tr(a,0,a.length,r.dict))}))}return a.length>0&&await Promise.all(a),new tb(t,this.#e7.bind(this))}return new tn}get xfaData(){return b(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async #e8(t,a,i){let r=[];for(let s of t)if(s.id){let t=Y.fromString(s.id);if(!t){f(`A non-linked annotation cannot be modified: ${s.id}`);continue}if(s.deleted){if(a.put(t,t),s.popupRef){let t=Y.fromString(s.popupRef);t&&a.put(t,t)}continue}if(s.popup?.deleted){let t=Y.fromString(s.popupRef);t&&a.put(t,t)}i?.put(t),s.ref=t,r.push(this.xref.fetchAsync(t).then(t=>{t instanceof K&&(s.oldAnnotation=t.clone())},()=>{f(`Cannot fetch \`oldAnnotation\` for: ${t}.`)})),delete s.id}await Promise.all(r)}async saveNewAnnotations(t,a,i,r,s){if(this.xfaFactory)throw Error("XFA: Cannot save new annotations.");let n=this.#e3(t),l=new Z,o=new J;await this.#e8(i,l,o);let c=this.pageDict,h=this.annotations.filter(t=>!(t instanceof Y&&l.has(t)));for(let{ref:t}of(await gD.saveNewAnnotations(n,a,i,r,s)).annotations)t instanceof Y&&!o.has(t)&&h.push(t);let u=c.clone();for(let t of(u.set("Annots",h),s.put(this.ref,{data:u}),l))s.put(t,{data:null})}async save(t,a,i,r){let s=this.#e3(t),n=await this._parsedAnnotations,l=[];for(let t of n)l.push(t.save(s,a,i,r).catch(function(t){return f(`save - ignoring annotation data during "${a.name}" task: "${t}".`),null}));return Promise.all(l)}async loadResources(t){await (this.#e5??=this.pdfManager.ensure(this,"resources")),await nq.load(this.resources,t,this.xref)}async #e4(t,a){let i=t?.get("Resources");return i instanceof K&&i.size?(await nq.load(i,a,this.xref),K.merge({xref:this.xref,dictArray:[i,this.resources],mergeSubDicts:!0})):this.resources}async getOperatorList({handler:t,sink:a,task:i,intent:s,cacheKey:n,pageId:l=this.pageIndex,pageIndex:o=this.pageIndex,annotationStorage:c=null,modifiedIds:h=null}){let u=this.getContentStream(),d=this.loadResources(el),g=this.#e3(t),p=this.xfaFactory?null:eL(c),m=p?.get(this.pageIndex),b=Promise.resolve(null),y=null;if(m){let t,a=this.pdfManager.ensureDoc("annotationGlobals"),s=new Set;for(let{bitmapId:t,bitmap:a}of m)!t||a||s.has(t)||s.add(t);let{isOffscreenCanvasSupported:n}=this.evaluatorOptions;if(s.size>0){let a=m.slice();for(let[t,i]of c)t.startsWith(r)&&i.bitmap&&s.has(i.bitmapId)&&a.push(i);t=gD.generateImages(a,this.xref,n)}else t=gD.generateImages(m,this.xref,n);y=new J,b=Promise.all([a,this.#e8(m,y,null)]).then(([a])=>a?gD.printNewAnnotations(a,g,i,m,t):null)}let w=Promise.all([u,d]).then(async([r])=>{let l=await this.#e4(r.dict,el),c=new tP(s,a);return t.send("StartRenderPage",{transparency:g.hasBlendModes(l,this.nonBlendModesSet),pageIndex:o,cacheKey:n}),await g.getOperatorList({stream:r,task:i,resources:l,operatorList:c}),c}),[x,k,v]=await Promise.all([w,this._parsedAnnotations,b]);if(v){k=k.filter(t=>!(t.ref&&y.has(t.ref)));for(let t=0,a=v.length;t<a;t++){let i=v[t];if(i.refToReplace){let r=k.findIndex(t=>t.ref&&ea(t.ref,i.refToReplace));r>=0&&(k.splice(r,1,i),v.splice(t--,1),a--)}}k=k.concat(v)}if(0===k.length||64&s)return x.flush(!0),{length:x.totalLength};let A=!!(16&s),C=!!(128&s),S=!!(1&s),I=!!(2&s),B=!!(4&s),F=[];for(let t of k)(S||I&&t.mustBeViewed(c,A)&&t.mustBeViewedWhenEditing(C,h)||B&&t.mustBePrinted(c))&&F.push(t.getOperatorList(g,i,s,c).catch(function(t){return f(`getOperatorList - ignoring annotation data during "${i.name}" task: "${t}".`),{opList:null,separateForm:!1,separateCanvas:!1}}));let M=await Promise.all(F),T=!1,R=!1;for(let{opList:t,separateForm:a,separateCanvas:i}of M)x.addOpList(t),T||=a,R||=i;return x.flush(!0,{form:T,canvas:R}),{length:x.totalLength}}async extractTextContent({handler:t,task:a,includeMarkedContent:i,disableNormalization:r,sink:s,intersector:n=null}){let l=this.getContentStream(),o=this.loadResources(eo),c=this.pdfManager.ensureCatalog("lang"),[h,,u]=await Promise.all([l,o,c]),d=await this.#e4(h.dict,eo);return this.#e3(t).getTextContent({stream:h,task:a,resources:d,includeMarkedContent:i,disableNormalization:r,sink:s,viewBox:this.view,lang:u,intersector:n})}async getStructTree(){let t=await this.pdfManager.ensureCatalog("structTreeRoot");if(!t)return null;await this._parsedAnnotations;try{let a=await this.pdfManager.ensure(this,"_parseStructTree",[t]);return await this.pdfManager.ensure(a,"serializable")}catch(t){return f(`getStructTree: "${t}".`),null}}_parseStructTree(t){let a=new nP(t,this.pageDict);return a.parse(this.ref),a}async getAnnotationsData(t,a,i){let r,s=await this._parsedAnnotations;if(0===s.length)return s;let n=[],l=[],o=!!(1&i),c=!!(2&i),h=!!(4&i),u=[];for(let i of s){let s=o||c&&i.viewable;(s||h&&i.printable)&&n.push(i.data),i.hasTextContent&&s?(r??=this.#e3(t),l.push(i.extractTextContent(r,a,[-1/0,-1/0,1/0,1/0]).catch(function(t){f(`getAnnotationsData - ignoring textContent during "${a.name}" task: "${t}".`)}))):i.overlaysTextContent&&s&&u.push(i)}if(u.length>0){let i=new ps(u);l.push(this.extractTextContent({handler:t,task:a,includeMarkedContent:!1,disableNormalization:!1,sink:null,viewBox:this.view,lang:null,intersector:i}).then(()=>{i.setText()}))}return await Promise.all(l),n}get annotations(){let t=this.#e6("Annots");return b(this,"annotations",Array.isArray(t)?t:[])}get _parsedAnnotations(){let t=this.pdfManager.ensure(this,"annotations").then(async t=>{let a,i;if(0===t.length)return t;let[r,s]=await Promise.all([this.pdfManager.ensureDoc("annotationGlobals"),this.pdfManager.ensureDoc("fieldObjects")]);if(!r)return[];let n=s?.orphanFields,l=[];for(let a of t)l.push(gD.create(this.xref,a,r,this._localIdFactory,!1,n,null,this.ref).catch(function(t){return f(`_parsedAnnotations: "${t}".`),null}));let o=[];for(let t of(await Promise.all(l)))t&&(t instanceof gj?(i||=[]).push(t):t instanceof gX?(a||=[]).push(t):o.push(t));return i&&o.push(...i),a&&o.push(...a),o});return this.#e9=!0,b(this,"_parsedAnnotations",t)}get jsActions(){return b(this,"jsActions",eN(this.xref,this.pageDict,h))}async collectAnnotationsByType(t,a,i,r,s){let{pageIndex:n}=this;if(this.#e9){for(let{data:t}of(await this._parsedAnnotations))(!i||i.has(t.annotationType))&&(t.pageIndex=n,r.push(Promise.resolve(t)));return}for(let l of(await this.pdfManager.ensure(this,"annotations")))r.push(gD.create(this.xref,l,s,this._localIdFactory,!1,null,i,this.ref).then(async i=>{if(!i)return null;if(i.data.pageIndex=n,i.hasTextContent&&i.viewable){let r=this.#e3(t);await i.extractTextContent(r,a,[-1/0,-1/0,1/0,1/0])}return i.data}).catch(function(t){return f(`collectAnnotationsByType: "${t}".`),null}))}}let pI=new Uint8Array([37,80,68,70,45]),pB=new Uint8Array([115,116,97,114,116,120,114,101,102]),pF=new Uint8Array([101,110,100,111,98,106]);function pM(t,a,i=1024,r=!1){let s=a.length,n=t.peekBytes(i),l=n.length-s;if(l<=0)return!1;if(r){let i=s-1,r=n.length-1;for(;r>=i;){let l=0;for(;l<s&&n[r-l]===a[i-l];)l++;if(l>=s)return t.pos+=r-i,!0;r--}}else{let i=0;for(;i<=l;){let r=0;for(;r<s&&n[i+r]===a[r];)r++;if(r>=s)return t.pos+=i,!0;i++}}return!1}class pT{#te=new Map;#tt=null;constructor(t,a){if(a.length<=0)throw new k("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t,this.stream=a,this.xref=new pA(a,t);const i={font:0};this._globalIdFactory=class{static getDocId(){return`g_${t.docId}`}static createFontId(){return"f"+ ++i.font}static createObjId(){g("Abstract method `createObjId` called.")}static getPageObjId(){g("Abstract method `getPageObjId` called.")}}}parse(t){this.xref.parse(t),this.catalog=new nU(this.pdfManager,this.xref)}get linearization(){let t=null;try{t=aM.create(this.stream)}catch(t){if(t instanceof eh)throw t;d(t)}return b(this,"linearization",t)}get startXRef(){let t=this.stream,a=0;if(this.linearization){if(t.reset(),pM(t,pF)){t.skip(6);let i=t.peekByte();for(;eA(i);)t.pos++,i=t.peekByte();a=t.pos-t.start}}else{let i=pB.length,r=!1,s=t.end;for(;!r&&s>0;)(s-=1024-i)<0&&(s=0),t.pos=s,r=pM(t,pB,1024,!0);if(r){let i;t.skip(9);do i=t.getByte();while(eA(i));let r="";for(;i>=32&&i<=57;)r+=String.fromCharCode(i),i=t.getByte();isNaN(a=parseInt(r,10))&&(a=0)}}return b(this,"startXRef",a)}checkHeader(){let t=this.stream;if(t.reset(),!pM(t,pI))return;t.moveStart(),t.skip(pI.length);let a,i="";for(;(a=t.getByte())>32&&i.length<7;)i+=String.fromCharCode(a);er.test(i)?this.#tt=i:f(`Invalid PDF header version: ${i}`)}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){return b(this,"numPages",this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages)}#ta(t,a=0){return!!Array.isArray(t)&&t.every(t=>{if(!((t=this.xref.fetchIfRef(t))instanceof K))return!1;if(t.has("Kids"))return++a>10?(f("#hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):this.#ta(t.get("Kids"),a);let i=Q(t.get("FT"),"Sig"),r=t.get("Rect"),s=Array.isArray(r)&&r.every(t=>0===t);return i&&s})}get _xfaStreams(){let{acroForm:t}=this.catalog;if(!t)return null;let a=t.get("XFA"),i=new Map(["xdp:xdp","template","datasets","config","connectionSet","localeSet","stylesheet","/xdp:xdp"].map(t=>[t,null]));if(a instanceof ei&&!a.isEmpty)return i.set("xdp:xdp",a),i;if(!Array.isArray(a)||0===a.length)return null;for(let t=0,r=a.length;t<r;t+=2){let s;if(s=0===t?"xdp:xdp":t===r-2?"/xdp:xdp":a[t],!i.has(s))continue;let n=this.xref.fetchIfRef(a[t+1]);n instanceof ei&&!n.isEmpty&&i.set(s,n)}return i}get xfaDatasets(){let t=this._xfaStreams;if(!t)return b(this,"xfaDatasets",null);for(let a of["datasets","xdp:xdp"]){let i=t.get(a);if(i)try{let t=O(i.getString());return b(this,"xfaDatasets",new pi({[a]:t}))}catch{f("XFA - Invalid utf-8 string.");break}}return b(this,"xfaDatasets",null)}get xfaData(){let t=this._xfaStreams;if(!t)return null;let a=Object.create(null);for(let[i,r]of t)if(r)try{a[i]=O(r.getString())}catch{return f("XFA - Invalid utf-8 string."),null}return a}get xfaFactory(){let t;return this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(t=this.xfaData),b(this,"xfaFactory",t?new gN(t):null)}get isPureXfa(){return!!this.xfaFactory&&this.xfaFactory.isValid()}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}async #ti(){let t=await this.pdfManager.ensureCatalog("xfaImages");t&&this.xfaFactory.setImages(t)}async #tr(t,a){let i=await this.pdfManager.ensureCatalog("acroForm");if(!i)return;let r=await i.getAsync("DR");if(!(r instanceof K))return;await nq.load(r,["Font"],this.xref);let s=r.get("Font");if(!(s instanceof K))return;let n=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions,{useSystemFonts:!1}),{builtInCMapCache:l,fontCache:o,standardFontDataCache:c}=this.catalog,h=new no({xref:this.xref,handler:t,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:o,builtInCMapCache:l,standardFontDataCache:c,options:n}),u=new tP,d=[],g={get font(){return d.at(-1)},set font(e){d.push(e)},clone(){return this}},p=(t,i,s)=>h.handleSetFont(r,[W.get(t),1],null,u,a,g,i,s).catch(t=>(f(`loadXfaFonts: "${t}".`),null)),m=[];for(let[t,a]of s){let i=a.get("FontDescriptor");if(!(i instanceof K))continue;let r=i.get("FontFamily"),s={fontFamily:r=r.replaceAll(/[ ]+(\d)/g,"$1"),fontWeight:i.get("FontWeight"),italicAngle:-i.get("ItalicAngle")};(function(t){let a=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:i,fontWeight:r,italicAngle:s}=t;if(!eP(i,!0))return!1;let n=r?r.toString():"";t.fontWeight=a.has(n)?n:"400";let l=parseFloat(s);return t.italicAngle=isNaN(l)||l<-90||l>90?"14":s.toString(),!0})(s)&&m.push(p(t,null,s))}await Promise.all(m);let b=this.xfaFactory.setFonts(d);if(!b)return;n.ignoreErrors=!0,m.length=0,d.length=0;let y=new Set;for(let t of b)sx(`${t}-Regular`)||y.add(t);for(let t of(y.size&&b.push("PdfJS-Fallback"),b))if(!y.has(t))for(let a of[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}]){let i=`${t}-${a.name}`;m.push(p(i,sk(i),{fontFamily:t,fontWeight:a.fontWeight,italicAngle:a.italicAngle}))}await Promise.all(m),this.xfaFactory.appendFonts(d,y)}loadXfaResources(t,a){return Promise.all([this.#tr(t,a).catch(()=>{}),this.#ti()])}serializeXfaData(t){return this.xfaFactory?this.xfaFactory.serializeData(t):null}get version(){return this.catalog.version||this.#tt}get formInfo(){let t={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},{acroForm:a}=this.catalog;if(!a)return b(this,"formInfo",t);try{let i=a.get("Fields"),r=Array.isArray(i)&&i.length>0;t.hasFields=r;let s=a.get("XFA");t.hasXfa=Array.isArray(s)&&s.length>0||s instanceof ei&&!s.isEmpty;let n=!!(1&a.get("SigFlags")),l=n&&this.#ta(i);t.hasAcroForm=r&&!l,t.hasSignatures=n}catch(t){if(t instanceof eh)throw t;f(`Cannot fetch form information: "${t}".`)}return b(this,"formInfo",t)}get documentInfo(){let t,{catalog:a,formInfo:i,xref:r}=this,s={PDFFormatVersion:this.version,Language:a.lang,EncryptFilterName:r.encrypt?.filterName??null,IsLinearized:!!this.linearization,IsAcroFormPresent:i.hasAcroForm,IsXFAPresent:i.hasXfa,IsCollectionPresent:!!a.collection,IsSignaturesPresent:i.hasSignatures};try{t=r.trailer.get("Info")}catch(t){if(t instanceof eh)throw t;d("The document information dictionary is invalid.")}if(!(t instanceof K))return b(this,"documentInfo",s);for(let[a,i]of t){switch(a){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"==typeof i){s[a]=D(i);continue}break;case"Trapped":if(i instanceof W){s[a]=i;continue}break;default:let t;switch(typeof i){case"string":t=D(i);break;case"number":case"boolean":t=i;break;default:i instanceof W&&(t=i)}if(void 0===t){f(`Bad value, for custom key "${a}", in Info: ${i}.`);continue}s.Custom??=Object.create(null),s.Custom[a]=t;continue}f(`Bad value, for key "${a}", in Info: ${i}.`)}return b(this,"documentInfo",s)}get fingerprints(){let t,a,i="\0".repeat(16);function r(t){return"string"==typeof t&&16===t.length&&t!==i}let s=this.xref.trailer.get("ID");return Array.isArray(s)&&r(s[0])?(t=I(s[0]),s[1]!==s[0]&&r(s[1])&&(a=I(s[1]))):t=pe(this.stream.getByteRange(0,1024),0,1024),b(this,"fingerprints",[t.toHex(),a?.toHex()??null])}async #ts(t){let{catalog:a,linearization:i,xref:r}=this,s=Y.get(i.objectNumberFirst,0);try{let t=await r.fetchAsync(s);if(t instanceof K){let i=t.getRaw("Type");if(i instanceof Y&&(i=await r.fetchAsync(i)),Q(i,"Page")||!t.has("Type")&&!t.has("Kids")&&t.has("Contents"))return a.pageKidsCountCache.has(s)||a.pageKidsCountCache.put(s,1),a.pageIndexCache.has(s)||a.pageIndexCache.put(s,0),[t,s]}throw new A("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(i){return f(`_getLinearizationPage: "${i.message}".`),a.getPageDict(t)}}getPage(t){let a,i=this.#te.get(t);if(i)return i;let{catalog:r,linearization:s,xfaFactory:n}=this;return a=(a=n?Promise.resolve([K.empty,null]):s?.pageFirst===t?this.#ts(t):r.getPageDict(t)).then(([a,i])=>new pS({pdfManager:this.pdfManager,xref:this.xref,pageIndex:t,pageDict:a,ref:i,globalIdFactory:this._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalColorSpaceCache:r.globalColorSpaceCache,globalImageCache:r.globalImageCache,systemFontCache:r.systemFontCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:n})),this.#te.set(t,a),a}async checkFirstPage(t=!1){if(!t)try{await this.getPage(0)}catch(t){if(t instanceof ed)throw this.#te.delete(0),await this.cleanup(),new ef}}async checkLastPage(t=!1){let a,{catalog:i,pdfManager:r}=this;i.setActualNumPages();try{if(await Promise.all([r.ensureDoc("xfaFactory"),r.ensureDoc("linearization"),r.ensureCatalog("numPages")]),this.xfaFactory)return;if(a=this.linearization?this.linearization.numPages:i.numPages,!Number.isInteger(a))throw new A("Page count is not an integer.");if(a<=1)return;await this.getPage(a-1)}catch(n){let s;if(this.#te.delete(a-1),await this.cleanup(),n instanceof ed&&!t)throw new ef;f(`checkLastPage - invalid /Pages tree /Count: ${a}.`);try{s=await i.getAllPageDicts(t)}catch(a){if(a instanceof ed&&!t)throw new ef;i.setActualNumPages(1);return}for(let[t,[a,n]]of s){let s;a instanceof Error?(s=Promise.reject(a)).catch(()=>{}):s=Promise.resolve(new pS({pdfManager:r,xref:this.xref,pageIndex:t,pageDict:a,ref:n,globalIdFactory:this._globalIdFactory,fontCache:i.fontCache,builtInCMapCache:i.builtInCMapCache,standardFontDataCache:i.standardFontDataCache,globalColorSpaceCache:this.globalColorSpaceCache,globalImageCache:i.globalImageCache,systemFontCache:i.systemFontCache,nonBlendModesSet:i.nonBlendModesSet,xfaFactory:null})),this.#te.set(t,s)}i.setActualNumPages(s.size)}}async fontFallback(t,a){let{catalog:i,pdfManager:r}=this;for(let s of(await Promise.all(i.fontCache)))if(s.loadedName===t)return void s.fallback(a,r.evaluatorOptions)}async cleanup(t=!1){return this.catalog?this.catalog.cleanup(t):nC()}async #tn(t,a,i,r,s,n,l){let{xref:o}=this;if(!(i instanceof Y)||n.has(i))return;n.put(i);let c=await o.fetchAsync(i);if(!(c instanceof K))return;let h=await c.getAsync("Subtype");if("Link"===(h=h instanceof W?h.name:null))return;if(c.has("T")){let a=D(await c.getAsync("T"));t=""===t?a:`${t}.${a}`}else{let i=c;for(;;){if((i=i.getRaw("Parent")||a)instanceof Y){if(n.has(i))break;i=await o.fetchAsync(i)}if(!(i instanceof K))break;if(i.has("T")){let a=D(await i.getAsync("T"));t=""===t?a:`${t}.${a}`;break}}}if(a&&!c.has("Parent")&&Q(c.get("Subtype"),"Widget")&&l.put(i,a),r.has(t)||r.set(t,[]),r.get(t).push(gD.create(o,i,s,null,!0,l,null,null).then(t=>t?.getFieldObject()).catch(function(t){return f(`#collectFieldObjects: "${t}".`),null})),!c.has("Kids"))return;let u=await c.getAsync("Kids");if(Array.isArray(u))for(let a of u)await this.#tn(t,i,a,r,s,n,l)}get fieldObjects(){return b(this,"fieldObjects",this.pdfManager.ensureDoc("formInfo").then(async t=>{if(!t.hasFields)return null;let a=await this.annotationGlobals;if(!a)return null;let{acroForm:i}=a,r=new J,s=Object.create(null),n=new Map,l=new Z;for(let t of i.get("Fields"))await this.#tn("",null,t,n,a,r,l);let o=[];for(let[t,a]of n)o.push(Promise.all(a).then(a=>{(a=a.filter(t=>!!t)).length>0&&(s[t]=a)}));return await Promise.all(o),{allFields:F(s)>0?s:null,orphanFields:l}}))}get hasJSActions(){return b(this,"hasJSActions",this.pdfManager.ensureDoc("_parseHasJSActions"))}async _parseHasJSActions(){let[t,a]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);return!!t||!!a?.allFields&&Object.values(a.allFields).some(t=>t.some(t=>null!==t.actions))}get calculationOrderIds(){let t=this.catalog.acroForm?.get("CO");if(!Array.isArray(t)||0===t.length)return b(this,"calculationOrderIds",null);let a=[];for(let i of t)i instanceof Y&&a.push(i.toString());return b(this,"calculationOrderIds",a.length?a:null)}get annotationGlobals(){return b(this,"annotationGlobals",gD.createGlobals(this.pdfManager))}}class pR{constructor({docBaseUrl:t,docId:a,enableXfa:i,evaluatorOptions:r,handler:s,password:n}){this._docBaseUrl=function(t){if(t){let a=m(t);if(a)return a.href;f(`Invalid absolute docBaseUrl: "${t}".`)}return null}(t),this._docId=a,this._password=n,this.enableXfa=i,r.isOffscreenCanvasSupported&&=M.isOffscreenCanvasSupported,r.isImageDecoderSupported&&=M.isImageDecoderSupported,this.evaluatorOptions=Object.freeze(r),tu.setOptions(r),tB.setOptions(r),tP.setOptions(r);const l={...r,handler:s};tT.setOptions(l),ta.setOptions(l),ti.setOptions(l),tg.setOptions(l)}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){return this._docBaseUrl}ensureDoc(t,a){return this.ensure(this.pdfDocument,t,a)}ensureXRef(t,a){return this.ensure(this.pdfDocument.xref,t,a)}ensureCatalog(t,a){return this.ensure(this.pdfDocument.catalog,t,a)}getPage(t){return this.pdfDocument.getPage(t)}fontFallback(t,a){return this.pdfDocument.fontFallback(t,a)}cleanup(t=!1){return this.pdfDocument.cleanup(t)}async ensure(t,a,i){g("Abstract method `ensure` called")}requestRange(t,a){g("Abstract method `requestRange` called")}requestLoadedStream(t=!1){g("Abstract method `requestLoadedStream` called")}sendProgressiveData(t){g("Abstract method `sendProgressiveData` called")}updatePassword(t){this._password=t}terminate(t){g("Abstract method `terminate` called")}}class pN extends pR{constructor(t){super(t);const a=new tr(t.source);this.pdfDocument=new pT(this,a),this._loadedStreamPromise=Promise.resolve(a)}async ensure(t,a,i){let r=t[a];return"function"==typeof r?r.apply(t,i):r}requestRange(t,a){return Promise.resolve()}requestLoadedStream(t=!1){return this._loadedStreamPromise}terminate(t){}}class pD extends pR{constructor(t){super(t),this.streamManager=new to(t.source,{msgHandler:t.handler,length:t.length,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize}),this.pdfDocument=new pT(this,this.streamManager.getStream())}async ensure(t,a,i){try{let r=t[a];return"function"==typeof r?r.apply(t,i):r}catch(r){if(!(r instanceof eh))throw r;return await this.requestRange(r.begin,r.end),this.ensure(t,a,i)}}requestRange(t,a){return this.streamManager.requestRange(t,a)}requestLoadedStream(t=!1){return this.streamManager.requestAllChunks(t)}sendProgressiveData(t){this.streamManager.onReceiveData({chunk:t})}terminate(t){this.streamManager.abort(t)}}function pO(){}function pP(t){if(t instanceof C||t instanceof k||t instanceof w||t instanceof v||t instanceof x)return t;switch(t instanceof Error||"object"==typeof t&&null!==t||g('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),t.name){case"AbortException":return new C(t.message);case"InvalidPDFException":return new k(t.message);case"PasswordException":return new w(t.message,t.code);case"ResponseException":return new v(t.message,t.status,t.missing);case"UnknownErrorException":return new x(t.message,t.details)}return new x(t.message,t.toString())}class pE{#tl=new AbortController;constructor(t,a,i){this.sourceName=t,this.targetName=a,this.comObj=i,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),i.addEventListener("message",this.#to.bind(this),{signal:this.#tl.signal})}#to({data:t}){if(t.targetName!==this.sourceName)return;if(t.stream)return void this.#tc(t);if(t.callback){let a=t.callbackId,i=this.callbackCapabilities[a];if(!i)throw Error(`Cannot resolve callback ${a}`);if(delete this.callbackCapabilities[a],1===t.callback)i.resolve(t.data);else{if(2!==t.callback)throw Error("Unexpected callback case");i.reject(pP(t.reason))}return}let a=this.actionHandler[t.action];if(!a)throw Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){let i=this.sourceName,r=t.sourceName,s=this.comObj;Promise.try(a,t.data).then(function(a){s.postMessage({sourceName:i,targetName:r,callback:1,callbackId:t.callbackId,data:a})},function(a){s.postMessage({sourceName:i,targetName:r,callback:2,callbackId:t.callbackId,reason:pP(a)})});return}t.streamId?this.#th(t):a(t.data)}on(t,a){let i=this.actionHandler;if(i[t])throw Error(`There is already an actionName called "${t}"`);i[t]=a}send(t,a,i){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:a},i)}sendWithPromise(t,a,i){let r=this.callbackId++,s=Promise.withResolvers();this.callbackCapabilities[r]=s;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:r,data:a},i)}catch(t){s.reject(t)}return s.promise}sendWithStream(t,a,i,r){let s=this.streamId++,n=this.sourceName,l=this.targetName,o=this.comObj;return new ReadableStream({start:i=>{let c=Promise.withResolvers();return this.streamControllers[s]={controller:i,startCall:c,pullCall:null,cancelCall:null,isClosed:!1},o.postMessage({sourceName:n,targetName:l,action:t,streamId:s,data:a,desiredSize:i.desiredSize},r),c.promise},pull:t=>{let a=Promise.withResolvers();return this.streamControllers[s].pullCall=a,o.postMessage({sourceName:n,targetName:l,stream:6,streamId:s,desiredSize:t.desiredSize}),a.promise},cancel:t=>{p(t instanceof Error,"cancel must have a valid reason");let a=Promise.withResolvers();return this.streamControllers[s].cancelCall=a,this.streamControllers[s].isClosed=!0,o.postMessage({sourceName:n,targetName:l,stream:1,streamId:s,reason:pP(t)}),a.promise}},i)}#th(t){let a=t.streamId,i=this.sourceName,r=t.sourceName,s=this.comObj,n=this,l=this.actionHandler[t.action],o={enqueue(t,n=1,l){if(this.isCancelled)return;let o=this.desiredSize;this.desiredSize-=n,o>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),s.postMessage({sourceName:i,targetName:r,stream:4,streamId:a,chunk:t},l)},close(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:r,stream:3,streamId:a}),delete n.streamSinks[a])},error(t){p(t instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:r,stream:5,streamId:a,reason:pP(t)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};o.sinkCapability.resolve(),o.ready=o.sinkCapability.promise,this.streamSinks[a]=o,Promise.try(l,t.data,o).then(function(){s.postMessage({sourceName:i,targetName:r,stream:8,streamId:a,success:!0})},function(t){s.postMessage({sourceName:i,targetName:r,stream:8,streamId:a,reason:pP(t)})})}#tc(t){let a=t.streamId,i=this.sourceName,r=t.sourceName,s=this.comObj,n=this.streamControllers[a],l=this.streamSinks[a];switch(t.stream){case 8:t.success?n.startCall.resolve():n.startCall.reject(pP(t.reason));break;case 7:t.success?n.pullCall.resolve():n.pullCall.reject(pP(t.reason));break;case 6:if(!l){s.postMessage({sourceName:i,targetName:r,stream:7,streamId:a,success:!0});break}l.desiredSize<=0&&t.desiredSize>0&&l.sinkCapability.resolve(),l.desiredSize=t.desiredSize,Promise.try(l.onPull||pO).then(function(){s.postMessage({sourceName:i,targetName:r,stream:7,streamId:a,success:!0})},function(t){s.postMessage({sourceName:i,targetName:r,stream:7,streamId:a,reason:pP(t)})});break;case 4:if(p(n,"enqueue should have stream controller"),n.isClosed)break;n.controller.enqueue(t.chunk);break;case 3:if(p(n,"close should have stream controller"),n.isClosed)break;n.isClosed=!0,n.controller.close(),this.#tu(n,a);break;case 5:p(n,"error should have stream controller"),n.controller.error(pP(t.reason)),this.#tu(n,a);break;case 2:t.success?n.cancelCall.resolve():n.cancelCall.reject(pP(t.reason)),this.#tu(n,a);break;case 1:if(!l)break;let o=pP(t.reason);Promise.try(l.onCancel||pO,o).then(function(){s.postMessage({sourceName:i,targetName:r,stream:2,streamId:a,success:!0})},function(t){s.postMessage({sourceName:i,targetName:r,stream:2,streamId:a,reason:pP(t)})}),l.sinkCapability.reject(o),l.isCancelled=!0,delete this.streamSinks[a];break;default:throw Error("Unexpected stream case")}}async #tu(t,a){await Promise.allSettled([t.startCall?.promise,t.pullCall?.promise,t.cancelCall?.promise]),delete this.streamControllers[a]}destroy(){this.#tl?.abort(),this.#tl=null}}async function p_(t,a,i,{encrypt:r=null,encryptRef:s=null}){let n=r&&s!==t?r.createCipherTransform(t.num,t.gen):null;i.push(`${t.num} ${t.gen} obj
11
+ `),await pU(a,i,n),i.push("\nendobj\n")}async function pL(t,a,i){for(let[r,s]of(a.push("<<"),t.getRawEntries()))a.push(` /${eM(r)} `),await pU(s,a,i);a.push(">>")}async function pU(t,a,i){t instanceof W?a.push(`/${eM(t.name)}`):t instanceof Y?a.push(`${t.num} ${t.gen} R`):Array.isArray(t)||ArrayBuffer.isView(t)?await async function(t,a,i){a.push("[");for(let r=0,s=t.length;r<s;r++)await pU(t[r],a,i),r<s-1&&a.push(" ");a.push("]")}(t,a,i):"string"==typeof t?(i&&(t=i.encryptString(t)),a.push(`(${eT(t)})`)):"number"==typeof t||"boolean"==typeof t?a.push(t.toString()):t instanceof K?await pL(t,a,i):t instanceof ei?await async function(t,a,i){(t=t.getOriginalStream()).reset();let r=t.getBytes(),{dict:s}=t,[n,l]=await Promise.all([s.getAsync("Filter"),s.getAsync("DecodeParms")]),o=Q(Array.isArray(n)?await s.xref.fetchIfRefAsync(n[0]):n,"FlateDecode");if(r.length>=256&&!o)try{let t,a,i=new CompressionStream("deflate"),c=i.writable.getWriter();await c.ready,c.write(r).then(async()=>{await c.ready,await c.close()}).catch(()=>{});let h=await new Response(i.readable).arrayBuffer();r=new Uint8Array(h),n?!o&&(t=Array.isArray(n)?[W.get("FlateDecode"),...n]:[W.get("FlateDecode"),n],l&&(a=Array.isArray(l)?[null,...l]:[null,l])):t=W.get("FlateDecode"),t&&s.set("Filter",t),a&&s.set("DecodeParms",a)}catch(t){d(`writeStream - cannot compress data: "${t}".`)}let c=S(r);i&&(c=i.encryptString(c)),s.set("Length",c.length),await pL(s,a,i),a.push(" stream\n",c,"\nendstream")}(t,a,i):null===t?a.push("null"):f(`Unhandled value in writer: ${typeof t}, please file a bug.`)}function pq(t,a,i,r){for(let s=a+i-1;s>i-1;s--)r[s]=255&t,t>>=8;return i+a}function pj(t,a,i){let r=t.length;for(let s=0;s<r;s++)i[a+s]=255&t.charCodeAt(s);return a+r}function p$(t){let a=[];for(let{ref:i}of t)i.num===a.at(-2)+a.at(-1)?a[a.length-1]+=1:a.push(i.num,1);return a}function pH(t,a,i){if(Array.isArray(a.fileIds)&&a.fileIds.length>0){let r=function(t,a){let i=Math.floor(Date.now()/1e3),r=a.filename||"",s=[i.toString(),r,t.toString(),...a.infoMap.values()],n=new Uint8Array(Math.sumPrecise(s.map(t=>t.length))),l=0;for(let t of s)l=pj(t,l,n);return S(pe(n,0,n.length))}(t,a);i.set("ID",[a.fileIds[0]||r,r])}}async function pz({originalData:t,xrefInfo:a,changes:i,xref:r=null,hasXfa:s=!1,xfaDatasetsRef:n=null,hasXfaDatasetsEntry:l=!1,needAppearances:o,acroFormRef:c=null,acroForm:h=null,xfaData:u=null,useXrefStream:d=!1}){let g,p;await async function({xref:t,acroForm:a,acroFormRef:i,hasXfa:r,hasXfaDatasetsEntry:s,xfaDatasetsRef:n,needAppearances:l,changes:o}){if(!r||s||n||f("XFA - Cannot save it"),!l&&(!r||!n||s))return;let c=a.clone();if(r&&!s){let t=a.get("XFA").slice();t.splice(2,0,"datasets"),t.splice(3,0,n),c.set("XFA",t)}l&&c.set("NeedAppearances",!0),o.put(i,{data:c})}({xref:r,acroForm:h,acroFormRef:c,hasXfa:s,hasXfaDatasetsEntry:l,xfaDatasetsRef:n,needAppearances:o,changes:i}),s&&function({xfaData:t,xfaDatasetsRef:a,changes:i,xref:r}){null===t&&(t=function(t,a){let i=new nT({hasAttributes:!0}).parseFromString(t);for(let{xfa:t}of a){if(!t)continue;let{path:a,value:r}=t;if(!a)continue;let s=eF(a),n=i.documentElement.searchNode(s,0);!n&&s.length>1&&(n=i.documentElement.searchNode([s.at(-1)],0)),n?n.childNodes=Array.isArray(r)?r.map(t=>new nM("value",t)):[new nM("#text",r)]:f(`Node not found for path: ${a}`)}let r=[];return i.documentElement.dump(r),r.join("")}(r.fetchIfRef(a).getString(),i));let s=new ts(t);s.dict=new K(r),s.dict.setIfName("Type","EmbeddedFile"),i.put(a,{data:s})}({xfaData:u,xfaDatasetsRef:n,changes:i,xref:r});let m=((g=new K(null)).setIfDefined("Prev",a?.startXRef),p=a.newRef,d?(i.put(p,{data:""}),g.set("Size",p.num+1),g.setIfName("Type","XRef")):g.set("Size",p.num),g.setIfDefined("Root",a?.rootRef),g.setIfDefined("Info",a?.infoRef),g.setIfDefined("Encrypt",a?.encryptRef),g),b=[],y=await async function(t,a,i=[]){let r=[];for(let[s,{data:n,objStreamRef:l,index:o}]of t.items())l?r.push({ref:s,data:n,objStreamRef:l,index:o}):null!==n&&"string"!=typeof n?(await p_(s,n,i,a),r.push({ref:s,data:i.join("")}),i.length=0):r.push({ref:s,data:n});return r.sort((t,a)=>t.ref.num-a.ref.num)}(i,r,b),w=t.length,x=t.at(-1);for(let{data:t}of(10!==x&&13!==x&&(b.push("\n"),w+=1),y))null!==t&&b.push(t);await (d?async function(t,a,i,r,s){let n=[],l=0,o=0;for(let{ref:t,data:r,objStreamRef:s,index:c}of i){let i;l=Math.max(l,a),s?(i=c,n.push([2,s.num,i])):null!==r?(i=Math.min(t.gen,65535),n.push([1,a,i]),a+=r.length):(i=Math.min(t.gen+1,65535),n.push([0,0,i])),o=Math.max(o,i)}r.set("Index",p$(i));let c=[1,e$(l),e$(o)];r.set("W",c),pH(a,t,r);let h=new Uint8Array(Math.sumPrecise(c)*n.length),u=new tr(h);u.dict=r;let d=0;for(let[t,a,i]of n)d=pq(t,c[0],d,h),d=pq(a,c[1],d,h),d=pq(i,c[2],d,h);await p_(t.newRef,u,s,{}),s.push("startxref\n",a.toString(),"\n%%EOF\n")}(a,w,y,m,b):async function(t,a,i,r,s){s.push("xref\n");let n=p$(i),l=0;for(let{ref:t,data:r}of i)t.num===n[l]&&(s.push(`${n[l]} ${n[l+1]}
12
+ `),l+=2),null!==r?(s.push(`${a.toString().padStart(10,"0")} ${Math.min(t.gen,65535).toString().padStart(5,"0")} n\r
13
+ `),a+=r.length):s.push(`0000000000 ${Math.min(t.gen+1,65535).toString().padStart(5,"0")} f\r
14
+ `);pH(a,t,r),s.push("trailer\n"),await pL(r,s,null),s.push("\nstartxref\n",a.toString(),"\n%%EOF\n")}(a,w,y,m,b));let k=new Uint8Array(t.length+Math.sumPrecise(b.map(t=>t.length)));k.set(t);let v=t.length;for(let t of b)v=pj(t,v,k);return k}class pG{constructor(t,a){this.page=t,this.documentData=a,this.annotations=null,this.pointingNamedDestinations=null,a.pagesMap.put(t.ref,this)}}class pW{constructor(t){this.document=t,this.destinations=null,this.pageLabels=null,this.pagesMap=new Z,this.oldRefMapping=new Z,this.dedupNamedDestinations=new Map,this.usedNamedDestinations=new Set,this.postponedRefCopies=new Z,this.usedStructParents=new Set,this.oldStructParentMapping=new Map,this.structTreeRoot=null,this.parentTree=null,this.idTree=null,this.roleMap=null,this.classMap=null,this.namespaces=null,this.structTreeAF=null,this.structTreePronunciationLexicon=[]}}class pV{constructor(t){this.entries=t}fetch(t){return t instanceof Y?this.entries[t.num]:t}}class pX{constructor({useObjectStreams:t=!0,title:a="",author:i=""}={}){this.hasSingleFile=!1,this.currentDocument=null,this.oldPages=[],this.newPages=[],this.xref=[null],this.xrefWrapper=new pV(this.xref),this.newRefCount=1,[this.rootRef,this.rootDict]=this.newDict,[this.infoRef,this.infoDict]=this.newDict,[this.pagesRef,this.pagesDict]=this.newDict,this.namesDict=null,this.useObjectStreams=t,this.objStreamRefs=t?new Set:null,this.version="1.7",this.title=a,this.author=i,this.pageLabels=null,this.namedDestinations=new Map,this.parentTree=new Map,this.structTreeKids=[],this.idTree=new Map,this.classMap=new K,this.roleMap=new K,this.namespaces=new Map,this.structTreeAF=[],this.structTreePronunciationLexicon=[]}get newRef(){return Y.get(this.newRefCount++,0)}get newDict(){let t=this.newRef;return[t,this.xref[t.num]=new K]}async #td(t,a){let i=this.newRef;return this.xref[i.num]=await this.#tf(t,!0,a),i}cloneDict(t){let a=t.clone();return a.xref=this.xrefWrapper,a}async #tf(t,a,i){let r;if(t instanceof Y){let{currentDocument:{oldRefMapping:a}}=this,r=a.get(t);if(r)return r;let s=t;return"number"==typeof(t=await i.fetchAsync(s))?t:(r=this.newRef,a.put(s,r),this.xref[r.num]=await this.#tf(t,!0,i),r)}let s=[],{currentDocument:{postponedRefCopies:n}}=this;if(Array.isArray(t)){a&&(t=t.slice());for(let a=0,r=t.length;a<r;a++){let r=n.get(t[a]);r?r.push(i=>t[a]=i):s.push(this.#tf(t[a],!0,i).then(i=>t[a]=i))}return await Promise.all(s),t}if(t instanceof ei?({dict:r}=t=t.getOriginalStream().clone(),r.xref=this.xrefWrapper):t instanceof K&&(a&&((t=t.clone()).xref=this.xrefWrapper),r=t),r){for(let[t,a]of r.getRawEntries()){let l=n.get(a);l?l.push(a=>r.set(t,a)):s.push(this.#tf(a,!0,i).then(a=>r.set(t,a)))}await Promise.all(s)}return t}async #tg(t,a,i,r,s,n,l,o=new J){let c,{currentDocument:{pagesMap:h,oldRefMapping:u}}=this,d=a.getRaw("Pg");if(d instanceof Y&&!h.has(d))return null;let f=c=a.getRaw("K");if(f instanceof Y){if(o.has(f))return null;Array.isArray(c=await i.fetchAsync(f))||(c=[f])}c=Array.isArray(c)?c:[c];let g=[],p=[];for(let a of c){let c=a instanceof Y?a:null;if(c){if(o.has(c))continue;o.put(c),a=await i.fetchAsync(c)}if("number"==typeof a){g.push(a);continue}if(!(a instanceof K))continue;let d=a.getRaw("Pg");if(d instanceof Y&&!h.has(d))continue;let f=a.get("Type");if(!f||Q(f,"StructElem")){let t=!1;if(c&&r.has(c)){if(!Q(a.get("S"),"Link"))continue;t=!0}let h=await this.#tg(c,a,i,r,s,n,l,o);h&&(p.push(g.length),g.push(h),c&&u.put(c,h),t&&this.xref[h.num].setIfName("S","Span"));continue}if(Q(f,"OBJR")){if(!c)continue;let a=u.get(c);if(!a)continue;let i=this.xref[a.num].getRaw("Obj");if(i instanceof Y){let a=this.xref[i.num];if(a instanceof K&&!a.has("StructParent")&&t){let i=this.parentTree.size;this.parentTree.set(i,[u,t]),a.set("StructParent",i)}}g.push(a);continue}if(Q(f,"MCR")){let t=await this.#tf(c||a,!0,i);g.push(t);continue}if(c){let t=await this.#tf(c,!0,i);g.push(t)}}if(0!==c.length&&0===g.length)return null;let m=this.newRef,b=this.xref[m.num]=this.cloneDict(a);b.delete("ID"),b.delete("C"),b.delete("K"),b.delete("P"),b.delete("S"),await this.#tf(b,!1,i);let y=a.get("C");if(y instanceof W){let t=n.get(y.name);t?b.set("C",W.get(t)):b.set("C",y)}else if(Array.isArray(y)){let t=[];for(let a of y)if(a instanceof W){let i=n.get(a.name);i?t.push(W.get(i)):t.push(a)}b.set("C",t)}let w=a.get("S");if(w instanceof W){let t=l.get(w.name);t?b.set("S",W.get(t)):b.set("S",w)}let x=a.get("ID");if("string"==typeof x){let t=D(x,!1),a=s.get(t);a?b.set("ID",eU(a)):b.set("ID",x)}let k=b.get("A");if(k){for(let t of(Array.isArray(k)||(k=[k]),k))if(Q((t=this.xrefWrapper.fetch(t)).get("O"),"Table")&&t.has("Headers")){let a=this.xrefWrapper.fetch(t.getRaw("Headers"));if(Array.isArray(a))for(let t=0,i=a.length;t<i;t++){let i=s.get(D(a[t],!1));i&&(a[t]=i)}}}for(let t of p){let a=g[t];this.xref[a.num].set("P",m)}return 1===g.length?b.set("K",g[0]):g.length>1&&b.set("K",g),m}async extractPages(t){let a=[],i=0;this.hasSingleFile=1===t.length;let r=[];for(let{document:s,includePages:n,excludePages:l,pageIndices:o}of t){let t,c,h,u;if(!s)continue;o&&(i=-1);let d=new pW(s);for(let i of(r.push(d),a.push(this.#tp(d)),n||[]))Array.isArray(i)?(c||=[]).push(i):(t||=new Set).add(i);for(let t of l||[])Array.isArray(t)?(u||=[]).push(t):(h||=new Set).add(t);let f=0;for(let r=0,n=s.numPages;r<n;r++){if(h?.has(r))continue;if(u){let t=!1;for(let[a,i]of u)if(r>=a&&r<=i){t=!0;break}if(t)continue}let n,l=!1;if(t&&(l=t.has(r)),!l&&c){for(let[t,a]of c)if(r>=t&&r<=a){l=!0;break}}if(l||t||c||(l=!0),l){if(o&&(n=o[f++]),void 0===n)if(-1!==i)n=i++;else for(n=0;void 0===this.oldPages[n];n++);a.push(s.getPage(r).then(t=>{this.oldPages[n]=new pG(t,d)}))}}}for(let t of(await Promise.all(a),a.length=0,this.#tm(r),this.#tb(),this.oldPages))a.push(this.#ty(t));await Promise.all(a),this.#tw(),this.#tx(r);for(let t=0,a=this.oldPages.length;t<a;t++)this.newPages[t]=await this.#tk(t,null);return this.#tv(r),await this.#tA(r),this.writePDF()}async #tp(t){let{document:{pdfManager:a,xref:i}}=t;await Promise.all([a.ensureCatalog("destinations").then(a=>t.destinations=a),a.ensureCatalog("rawPageLabels").then(a=>t.pageLabels=a),a.ensureCatalog("structTreeRoot").then(a=>t.structTreeRoot=a)]);let r=t.structTreeRoot;if(r){let a=r.dict,s=a.get("ParentTree");s&&(t.parentTree=new nA(s,i).getAll(!0));let n=a.get("IDTree");n&&(t.idTree=new nv(n,i).getAll(!0)),t.roleMap=a.get("RoleMap")||null,t.classMap=a.get("ClassMap")||null;let l=a.get("Namespaces")||null;l&&!Array.isArray(l)&&(l=[l]),t.namespaces=l,t.structTreeAF=a.get("AF")||null,t.structTreePronunciationLexicon=a.get("PronunciationLexicon")||null}}async #ty(t){let{page:{xref:a,annotations:i},documentData:{pagesMap:r,destinations:s,usedNamedDestinations:n}}=t;if(!i)return;let l=[],o=[],c=0;for(let t of i){let i=c++;l.push(a.fetchIfRefAsync(t).then(async a=>{if(!Q(a.get("Subtype"),"Link")){o[i]=t;return}let l=a.get("A"),c=l instanceof K?l.get("D"):a.get("Dest");if(c&&(!Array.isArray(c)||c[0]instanceof Y&&!r.has(c[0]))){if("string"==typeof c){let a=D(c,!0);s.has(a)&&(o[i]=t,n.add(a))}}else o[i]=t}))}await Promise.all(l),t.annotations=(o=o.filter(t=>!!t)).length>0?o:null}#tx(t){for(let{postponedRefCopies:a,pagesMap:i}of t)for(let t of i.keys())a.put(t,[])}#tv(t){for(let{postponedRefCopies:a,oldRefMapping:i}of t){for(let[t,r]of a.items()){let a=i.get(t);for(let t of r)t(a)}a.clear()}}#tC(t,a,i=new J){let r;if(t instanceof Y){i.has(t)||(i.put(t),this.#tC(this.xref[t.num],a,i));return}if(Array.isArray(t)){for(let r of t)this.#tC(r,a,i);return}if(t instanceof ei?{dict:r}=t:t instanceof K&&(r=t),r)for(let t of(a(r),r.getRawValues()))this.#tC(t,a,i)}async #tA(t){let a=0,{parentTree:i}=this;for(let t=0,r=this.newPages.length;t<r;t++){let{documentData:{parentTree:r,oldRefMapping:s,oldStructParentMapping:n,usedStructParents:l,document:{xref:o}}}=this.oldPages[t];if(!r)continue;let c=this.newPages[t],h=this.xref[c.num];this.#tC(h,t=>{let c=t.get("StructParent")??t.get("StructParents");if("number"!=typeof c)return;l.add(c);let h=r.get(c),u=h instanceof Y?h:null;if(u){let t=o.fetch(u);Array.isArray(t)&&(h=t)}if(Array.isArray(h)&&h.every(t=>null===t)&&(h=null),!h)return void(t.has("StructParent")?t.delete("StructParent"):t.delete("StructParents"));let d=n.get(c);void 0===d&&(d=a++,n.set(c,d),i.set(d,[s,h])),t.has("StructParent")?t.set("StructParent",d):t.set("StructParents",d)})}let{structTreeKids:r,idTree:s,classMap:n,roleMap:l,namespaces:o,structTreeAF:c,structTreePronunciationLexicon:h}=this;for(let a of t){let{document:{xref:t},oldRefMapping:i,parentTree:u,usedStructParents:d,structTreeRoot:f,idTree:g,classMap:p,roleMap:m,namespaces:b,structTreeAF:y,structTreePronunciationLexicon:w}=a;if(!f)continue;this.currentDocument=a;let x=new J;for(let[t,a]of u||[])!d.has(t)&&a instanceof Y&&x.put(a);let k=new Map;for(let[t,a]of g||[]){let i=t;if(s.has(t))for(let a=1;;a++){let r=`${t}_${a}`;if(!s.has(r)){k.set(t,r),i=r;break}}s.set(i,a)}let v=new Map;if(p?.size>0)for(let[a,i]of p){if(i=await this.#tf(i,!0,t),n.has(a))for(let t=1;;t++){let i=`${a}_${t}`;if(!n.has(i)){v.set(a,i),a=i;break}}n.set(a,i)}let A=new Map;if(m?.size>0)for(let[t,a]of m){let i=l.get(t);if(i){if(i!==a)for(let i=1;;i++){let r=`${t}_${i}`;if(!l.has(r)){A.set(t,r),l.set(r,a);break}}}else l.set(t,a)}if(b?.length>0)for(let a of b){let i=await t.fetchIfRefAsync(a),r=i.get("NS");if(!r||o.has(r))continue;r=D(r,!1);let s=await this.#tf(i,!0,t);o.set(r,s)}if(y)for(let a of y)c.push(await this.#tf(a,!0,t));if(w)for(let a of w)h.push(await this.#tf(a,!0,t));let C=f.dict.get("K");if(C){for(let a of C=Array.isArray(C)?C:[C]){let i=a instanceof Y?a:null;if(i&&x.has(i))continue;a=await t.fetchIfRefAsync(a);let s=await this.#tg(i,a,t,x,k,v,A);s&&r.push(s)}for(let[t,a]of g||[]){let r=i.get(a),n=k.get(t)||t;r?s.set(n,r):s.delete(n)}}}for(let[t,[a,r]]of i){if(!r){i.delete(t);continue}if(!Array.isArray(r)){let s=a.get(r);void 0===s?i.delete(t):i.set(t,s);continue}let s=r.map(t=>t instanceof Y&&a.get(t)||null);0===s.length||s.every(t=>null===t)?i.delete(t):i.set(t,s)}this.currentDocument=null}#tm(t){for(let a of t){if(!a.destinations)continue;let{destinations:t,pagesMap:i}=a,r=a.destinations=new Map;for(let[a,s]of Object.entries(t)){let t=s[0],n=i.get(t);n&&((n.pointingNamedDestinations||=new Set).add(a),r.set(a,s))}}}#tw(){let{namedDestinations:t}=this;for(let a=0,i=this.oldPages.length;a<i;a++){let i=this.oldPages[a],{documentData:{destinations:r,dedupNamedDestinations:s,usedNamedDestinations:n}}=i,{pointingNamedDestinations:l}=i;if(l)for(let o of(i.pointingNamedDestinations=l=l.intersection(n),l)){if(!n.has(o))continue;let i=r.get(o).slice();if(!t.has(o)){t.set(o,i);continue}let l=`${o}_p${a+1}`;s.set(o,l),t.set(l,i)}}}#tS(t,a){if(0===a.size)return;let i=(t,i,r)=>{"string"==typeof r&&t.set(i,a.get(D(r,!0))||r)};for(let a of t){let t=this.xref[a.num];if(!Q(t.get("Subtype"),"Link"))continue;let r=t.get("A");if(r instanceof K&&r.has("D")){let t=r.get("D");i(r,"D",t);continue}let s=t.get("Dest");i(t,"Dest",s)}}async #tb(){if(!this.hasSingleFile)return;let{documentData:{document:t,pageLabels:a}}=this.oldPages[0];if(!a)return;let i=t.numPages,r=[],s=new Set(this.oldPages.map(({page:{pageIndex:t}})=>t)),n=null,l=-1;for(let t=0;t<i;t++){let i=a.get(t);if(i&&(l=(n=i).has("St")?t:-1),s.has(t)){if(-1!==l){let a=n.get("St");(n=this.cloneDict(n)).set("St",a+(t-l)),l=-1}r.push(n)}}n=r[0];let o=0,c=this.pageLabels=[[0,n]];for(let t=0,a=r.length;t<a;t++){let a=r[t];a!==n&&(o=t,n=a,c.push([o,n]))}}async #tk(t){let{page:a,documentData:i,annotations:r,pointingNamedDestinations:s}=this.oldPages[t];this.currentDocument=i;let{dedupNamedDestinations:n,oldRefMapping:l}=i,{xref:o,rotate:c,mediaBox:h,resources:u,ref:d}=a,f=this.newRef,g=this.xref[f.num]=this.cloneDict(a.pageDict);if(l.put(d,f),s)for(let t of s){let a=n.get(t)||t;this.namedDestinations.get(a)[0]=f}for(let t of["Rotate","MediaBox","CropBox","BleedBox","TrimBox","ArtBox","Resources","Annots","Parent","UserUnit"])g.delete(t);let p=this.newRefCount;for(let t of(await this.#tf(g,!1,o),g.set("Rotate",c),g.set("MediaBox",h),["CropBox","BleedBox","TrimBox","ArtBox"])){let i=a.getBoundingBox(t);i?.some((t,a)=>t!==h[a])&&g.set(t,i)}let m=a.userUnit;if(1!==m&&g.set("UserUnit",m),g.setIfDict("Resources",await this.#tf(u,!0,o)),r){let t=await this.#tf(r,!0,o);this.#tS(t,n),g.setIfArray("Annots",t)}if(this.useObjectStreams){let t=this.newRefCount,a=[];for(let i=p;i<t;i++)this.xref[i]instanceof ei||a.push(Y.get(i,0));for(let t=0;t<a.length;t+=65535){let i=this.newRef;this.objStreamRefs.add(i.num),this.xref[i.num]=a.slice(t,t+65535)}}return this.currentDocument=null,f}#tI(){let{newPages:t,rootDict:a,pagesRef:i,pagesDict:r}=this;a.set("Pages",i),r.setIfName("Type","Pages"),r.set("Count",t.length);let s=[{dict:r,kids:t,parentRef:i}];for(;s.length>0;){let{dict:t,kids:a,parentRef:i}=s.pop();if(a.length<=16){for(let r of(t.set("Kids",a),a))this.xref[r.num].set("Parent",i);continue}let r=Math.max(16,Math.ceil(a.length/16)),n=[];for(let t=0;t<a.length;t+=r)n.push(a.slice(t,t+r));let l=[];for(let a of(t.set("Kids",l),n)){let[t,r]=this.newDict;l.push(t),r.setIfName("Type","Pages"),r.set("Parent",i),r.set("Count",a.length),s.push({dict:r,kids:a,parentRef:t})}}}#tB(t,a){let i=t.sort(a?([t],[a])=>t.localeCompare(a):([t],[a])=>t-a),[r,s]=this.newDict,n=[{dict:s,entries:i}],l=a?"Names":"Nums";for(;n.length>0;){let{dict:t,entries:a}=n.pop();if(a.length<=64){t.set("Limits",[a[0][0],a.at(-1)[0]]),t.set(l,a.flat());continue}let i=[],r=Math.max(64,Math.ceil(a.length/64));for(let t=0;t<a.length;t+=r)i.push(a.slice(t,t+r));let s=[];for(let a of(t.set("Kids",s),i)){let[t,i]=this.newDict;s.push(t),i.set("Limits",[a[0][0],a.at(-1)[0]]),n.push({dict:i,entries:a})}}return r}#tF(){let{pageLabels:t}=this;if(!t||0===t.length)return;let{rootDict:a}=this,i=this.#tB(this.pageLabels,!1);a.set("PageLabels",i)}#tM(){let{namedDestinations:t}=this;0!==t.size&&(this.namesDict||([this.namesRef,this.namesDict]=this.newDict,this.rootDict.set("Names",this.namesRef)),this.namesDict.set("Dests",this.#tB(Array.from(t.entries()),!0)))}#tT(){let{structTreeKids:t}=this;if(!t||0===t.length)return;let{rootDict:a}=this,i=this.newRef,r=this.xref[i.num]=new K;for(let a of(r.setIfName("Type","StructTreeRoot"),r.setIfArray("K",t),t)){let t=this.xref[a.num],r=t.get("Type");r&&!Q(r,"StructElem")||t.set("P",i)}if(this.parentTree.size>0){let t=this.#tB(Array.from(this.parentTree.entries()),!1);this.xref[t.num].setIfName("Type","ParentTree"),r.set("ParentTree",t),r.set("ParentTreeNextKey",this.parentTree.size)}if(this.idTree.size>0){let t=this.#tB(Array.from(this.idTree.entries()),!0);this.xref[t.num].setIfName("Type","IDTree"),r.set("IDTree",t)}if(this.classMap.size>0){let t=this.newRef;this.xref[t.num]=this.classMap,r.set("ClassMap",t)}if(this.roleMap.size>0){let t=this.newRef;this.xref[t.num]=this.roleMap,r.set("RoleMap",t)}if(this.namespaces.size>0){let t=this.newRef;this.xref[t.num]=Array.from(this.namespaces.values()),r.set("Namespaces",t)}if(this.structTreeAF.length>0){let t=this.newRef;this.xref[t.num]=this.structTreeAF,r.set("AF",t)}if(this.structTreePronunciationLexicon.length>0){let t=this.newRef;this.xref[t.num]=this.structTreePronunciationLexicon,r.set("PronunciationLexicon",t)}a.set("StructTreeRoot",i)}async #tR(){let{rootDict:t}=this;t.setIfName("Type","Catalog"),t.setIfName("Version",this.version),this.#tI(),this.#tF(),this.#tM(),this.#tT()}#tN(){let t=new Map;if(this.hasSingleFile){let{xref:{trailer:a}}=this.oldPages[0].documentData.document;for(let[i,r]of a.get("Info")||[])"string"==typeof r&&t.set(i,D(r))}for(let[a,i]of(t.delete("ModDate"),t.set("CreationDate",_()),t.set("Creator","PDF.js"),t.set("Producer","Firefox"),this.author&&t.set("Author",this.author),this.title&&t.set("Title",this.title),t))this.infoDict.set(a,eU(i));return t}async #tD(){if(!this.hasSingleFile)return[null,null,null];let{documentData:t}=this.oldPages[0],{document:{xref:{trailer:a,encrypt:i}}}=t;if(!a.has("Encrypt"))return[null,null,null];let r=a.get("Encrypt");if(!(r instanceof K))return[null,null,null];this.currentDocument=t;let s=[await this.#td(r,a.xref),i,a.get("ID")];return this.currentDocument=null,s}async #tO(){let t=new Z;t.put(Y.get(0,65535),{data:null});for(let a=1,i=this.xref.length;a<i;a++)this.objStreamRefs?.has(a)?await this.#tP(Y.get(a,0),this.xref[a],t):t.put(Y.get(a,0),{data:this.xref[a]});return[t,this.newRef]}async #tP(t,a,i){let r=[""],s=[],n=0,l=[];for(let o=0,c=a.length;o<c;o++){let c=a[o];i.put(c,{data:null,objStreamRef:t,index:o}),s.push(`${c.num} ${n}`);let h=this.xref[c.num];await pU(h,l,null);let u=l.join("");l.length=0,r.push(u),n+=u.length+1}r[0]=s.join("\n");let o=new ts(r.join("\n")),c=o.dict=new K;c.setIfName("Type","ObjStm"),c.set("N",a.length),c.set("First",r[0].length+1),i.put(t,{data:o})}async writePDF(){await this.#tR();let t=this.#tN(),[a,i,r]=await this.#tD(),[s,n]=await this.#tO();return pz({originalData:new Uint8Array([...`%PDF-${this.version}
15
+ %`.split("").map(t=>t.charCodeAt(0)),250,222,250,206]),changes:s,xrefInfo:{startXRef:null,rootRef:this.rootRef,infoRef:this.infoRef,encryptRef:a,newRef:n,fileIds:r||[null,null],infoMap:t},useXrefStream:this.useObjectStreams,xref:{encrypt:i,encryptRef:a}})}}class pK{#tE=null;#t_=null;_fullReader=null;_rangeReaders=new Set;_source=null;constructor(t,a,i){this._source=t,this.#tE=a,this.#t_=i}get _progressiveDataLength(){return this._fullReader?._loaded??0}getFullReader(){return p(!this._fullReader,"BasePDFStream.getFullReader can only be called once."),this._fullReader=new this.#tE(this)}getRangeReader(t,a){if(a<=this._progressiveDataLength)return null;let i=new this.#t_(this,t,a);return this._rangeReaders.add(i),i}cancelAllRequests(t){for(let a of(this._fullReader?.cancel(t),new Set(this._rangeReaders)))a.cancel(t)}}class pY{onProgress=null;_contentLength=0;_filename=null;_headersCapability=Promise.withResolvers();_isRangeSupported=!1;_isStreamingSupported=!1;_loaded=0;_stream=null;constructor(t){this._stream=t}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){g("Abstract method `read` called")}cancel(t){g("Abstract method `cancel` called")}}class pJ{_stream=null;constructor(t,a,i){this._stream=t}async read(){g("Abstract method `read` called")}cancel(t){g("Abstract method `cancel` called")}}class pZ extends pK{constructor(t){super(t,pQ,p1)}}class pQ extends pY{_reader=null;constructor(t){super(t);const{msgHandler:a}=t._source,i=a.sendWithStream("GetReader");this._reader=i.getReader(),a.sendWithPromise("ReaderHeadersReady").then(t=>{this._contentLength=t.contentLength,this._isStreamingSupported=t.isStreamingSupported,this._isRangeSupported=t.isRangeSupported,this._headersCapability.resolve()},this._headersCapability.reject)}async read(){let{value:t,done:a}=await this._reader.read();return a?{value:void 0,done:!0}:{value:t.buffer,done:!1}}cancel(t){this._reader.cancel(t)}}class p1 extends pJ{_reader=null;constructor(t,a,i){super(t,a,i);const{msgHandler:r}=t._source,s=r.sendWithStream("GetRangeReader",{begin:a,end:i});this._reader=s.getReader()}async read(){let{value:t,done:a}=await this._reader.read();return a?{value:void 0,done:!0}:{value:t.buffer,done:!1}}cancel(t){this._reader.cancel(t)}}class p0{constructor(t){this.name=t,this.terminated=!1,this._capability=Promise.withResolvers()}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw Error("Worker task was terminated")}}class p2{static{"u"<typeof window&&!a&&"u">typeof self&&"function"==typeof self.postMessage&&"onmessage"in self&&this.initializeFromPort(self)}static setup(t,a){let i=!1;t.on("test",a=>{i||(i=!0,t.send("test",a instanceof Uint8Array))}),t.on("configure",t=>{var a;Number.isInteger(a=t.verbosity)&&(u=a)}),t.on("GetDocRequest",t=>this.createDocumentHandler(t,a))}static createDocumentHandler(t,a){let i,r=!1,s=null,n=new Set,l=u,{docId:o,apiVersion:c}=t,h="5.4.624";if(c!==h)throw Error(`The API version "${c}" does not match the Worker version "${h}".`);let g=(t,a)=>`The \`${t}.prototype\` contains unexpected enumerable property "${a}", thus breaking e.g. \`for...in\` iteration of ${t}s.`;for(let t in{})throw Error(g("Object",t));for(let t in[])throw Error(g("Array",t));let p=o+"_worker",m=new pE(p,o,a);function b(){if(r)throw Error("Worker was terminated")}function y(t){n.add(t)}function x(t){t.finish(),n.delete(t)}async function k(t){await i.ensureDoc("checkHeader"),await i.ensureDoc("parseStartXRef"),await i.ensureDoc("parse",[t]),await i.ensureDoc("checkFirstPage",[t]),await i.ensureDoc("checkLastPage",[t]);let a=await i.ensureDoc("isPureXfa");if(a){let t=new p0("loadXfaResources");y(t),await i.ensureDoc("loadXfaResources",[m,t]),x(t)}let[r,s]=await Promise.all([i.ensureDoc("numPages"),i.ensureDoc("fingerprints")]);return{numPages:r,fingerprints:s,htmlForXfa:a?await i.ensureDoc("htmlForXfa"):null}}return m.on("GetPage",function(t){return i.getPage(t.pageIndex).then(function(t){return Promise.all([i.ensure(t,"rotate"),i.ensure(t,"ref"),i.ensure(t,"userUnit"),i.ensure(t,"view")]).then(function([t,a,i,r]){return{rotate:t,ref:a,refStr:a?.toString()??null,userUnit:i,view:r}})})}),m.on("GetPageIndex",function(t){let a=Y.get(t.num,t.gen);return i.ensureCatalog("getPageIndex",[a])}),m.on("GetDestinations",function(t){return i.ensureCatalog("destinations")}),m.on("GetDestination",function(t){return i.ensureCatalog("getDestination",[t.id])}),m.on("GetPageLabels",function(t){return i.ensureCatalog("pageLabels")}),m.on("GetPageLayout",function(t){return i.ensureCatalog("pageLayout")}),m.on("GetPageMode",function(t){return i.ensureCatalog("pageMode")}),m.on("GetViewerPreferences",function(t){return i.ensureCatalog("viewerPreferences")}),m.on("GetOpenAction",function(t){return i.ensureCatalog("openAction")}),m.on("GetAttachments",function(t){return i.ensureCatalog("attachments")}),m.on("GetDocJSActions",function(t){return i.ensureCatalog("jsActions")}),m.on("GetPageJSActions",function({pageIndex:t}){return i.getPage(t).then(t=>i.ensure(t,"jsActions"))}),m.on("GetAnnotationsByType",async function({types:t,pageIndexesToSkip:a}){let[r,s]=await Promise.all([i.ensureDoc("numPages"),i.ensureDoc("annotationGlobals")]);if(!s)return null;let n=[],l=[],o=null;try{for(let c=0;c<r;c++)a?.has(c)||(o||(o=new p0("GetAnnotationsByType"),y(o)),n.push(i.getPage(c).then(async a=>a&&a.collectAnnotationsByType(m,o,t,l,s)||[])));return await Promise.all(n),(await Promise.all(l)).filter(t=>!!t)}finally{o&&x(o)}}),m.on("GetOutline",function(t){return i.ensureCatalog("documentOutline")}),m.on("GetOptionalContentConfig",function(t){return i.ensureCatalog("optionalContentConfig")}),m.on("GetPermissions",function(t){return i.ensureCatalog("permissions")}),m.on("GetMetadata",function(t){return Promise.all([i.ensureDoc("documentInfo"),i.ensureCatalog("metadata"),i.ensureCatalog("hasStructTree")])}),m.on("GetMarkInfo",function(t){return i.ensureCatalog("markInfo")}),m.on("GetData",function(t){return i.requestLoadedStream().then(t=>t.bytes)}),m.on("GetAnnotations",function({pageIndex:t,intent:a}){return i.getPage(t).then(function(i){let r=new p0(`GetAnnotations: page ${t}`);return y(r),i.getAnnotationsData(m,r,a).then(t=>(x(r),t),t=>{throw x(r),t})})}),m.on("GetFieldObjects",function(t){return i.ensureDoc("fieldObjects").then(t=>t?.allFields||null)}),m.on("HasJSActions",function(t){return i.ensureDoc("hasJSActions")}),m.on("GetCalculationOrderIds",function(t){return i.ensureDoc("calculationOrderIds")}),m.on("ExtractPages",async function({pageInfos:t}){if(!t)return f("extractPages: nothing to extract."),null;Array.isArray(t)||(t=[t]);let a=0;for(let r of t)if(null===r.document)r.document=i.pdfDocument;else if(ArrayBuffer.isView(r.document)){let t=new pN({source:r.document,docId:`${o}_extractPages_${a++}`,handler:m,password:r.password??null,evaluatorOptions:Object.assign({},i.evaluatorOptions)}),s=!1,n=!0;for(;;)try{await t.requestLoadedStream(),await t.ensureDoc("checkHeader"),await t.ensureDoc("parseStartXRef"),await t.ensureDoc("parse",[s]);break}catch(a){if(a instanceof ef){if(!1===s){s=!0;continue}n=!1,f("extractPages: XRefParseException.")}else if(a instanceof w){let i=new p0(`PasswordException: response ${a.code}`);y(i);try{let{password:i}=await m.sendWithPromise("PasswordRequest",a);t.updatePassword(i)}catch{n=!1,f("extractPages: invalid password.")}finally{x(i)}}else n=!1,f("extractPages: invalid document.");if(!n)break}n||(r.document=null),await t.ensureDoc("isPureXfa")?(r.document=null,f("extractPages does not support pure XFA documents.")):r.document=t.pdfDocument}else f("extractPages: invalid document.");try{let a=new pX;return await a.extractPages(t)}catch(t){return console.error(t),null}}),m.on("SaveDocument",async function({isPureXfa:t,numPages:a,annotationStorage:r,filename:s}){let n,l=[i.requestLoadedStream(),i.ensureCatalog("acroForm"),i.ensureCatalog("acroFormRef"),i.ensureDoc("startXRef"),i.ensureDoc("xref"),i.ensureCatalog("structTreeRoot")],o=new Z,c=[],h=t?null:eL(r),[u,d,g,p,b,w]=await Promise.all(l),k=b.trailer.getRaw("Root")||null;if(h){w?await w.canUpdateStructTree({pdfManager:i,newAnnotationsByPage:h})&&(n=w):await nN.canCreateStructureTree({catalogRef:k,pdfManager:i,newAnnotationsByPage:h})&&(n=null);let t=gD.generateImages(r.values(),b,i.evaluatorOptions.isOffscreenCanvasSupported),a=void 0===n?c:[];for(let[r,s]of h)a.push(i.getPage(r).then(a=>{let i=new p0(`Save (editor): page ${r}`);return y(i),a.saveNewAnnotations(m,i,s,t,o).finally(function(){x(i)})}));null===n?c.push(Promise.all(a).then(async()=>{await nN.createStructureTree({newAnnotationsByPage:h,xref:b,catalogRef:k,pdfManager:i,changes:o})})):n&&c.push(Promise.all(a).then(async()=>{await n.updateStructureTree({newAnnotationsByPage:h,pdfManager:i,changes:o})}))}if(t)c.push(i.ensureDoc("serializeXfaData",[r]));else for(let t=0;t<a;t++)c.push(i.getPage(t).then(function(a){let i=new p0(`Save: page ${t}`);return y(i),a.save(m,i,r,o).finally(function(){x(i)})}));let v=await Promise.all(c),A=null;if(t){if(!(A=v[0]))return u.bytes}else if(0===o.size)return u.bytes;let C=g&&d instanceof K&&o.values().some(t=>t.needAppearances),S=d instanceof K&&d.get("XFA")||null,I=null,B=!1;if(Array.isArray(S)){for(let t=0,a=S.length;t<a;t+=2)"datasets"===S[t]&&(I=S[t+1],B=!0);null===I&&(I=b.getNewTemporaryRef())}else S&&f("Unsupported XFA type.");let F=Object.create(null);if(b.trailer){let t=new Map,a=b.trailer.get("Info")||null;if(a instanceof K)for(let[i,r]of a)"string"==typeof r&&t.set(i,D(r));F={rootRef:k,encryptRef:b.trailer.getRaw("Encrypt")||null,newRef:b.getNewTemporaryRef(),infoRef:b.trailer.getRaw("Info")||null,infoMap:t,fileIds:b.trailer.get("ID")||null,startXRef:p,filename:s}}return pz({originalData:u.bytes,xrefInfo:F,changes:o,xref:b,hasXfa:!!S,xfaDatasetsRef:I,hasXfaDatasetsEntry:B,needAppearances:C,acroFormRef:g,acroForm:d,xfaData:A,useXrefStream:et(b.topDict,"XRef")}).finally(()=>{b.resetNewTemporaryRef()})}),m.on("GetOperatorList",function(t,a){let{pageId:r,pageIndex:s}=t;i.getPage(r).then(function(i){let r=new p0(`GetOperatorList: page ${s}`);y(r);let n=l>=5?Date.now():0;i.getOperatorList({handler:m,sink:a,task:r,intent:t.intent,cacheKey:t.cacheKey,annotationStorage:t.annotationStorage,modifiedIds:t.modifiedIds,pageIndex:s}).then(function(t){x(r),n&&d(`page=${s+1} - getOperatorList: time=${Date.now()-n}ms, len=${t.length}`),a.close()},function(t){x(r),r.terminated||a.error(t)})})}),m.on("GetTextContent",function(t,a){let{pageId:r,pageIndex:s,includeMarkedContent:n,disableNormalization:o}=t;i.getPage(r).then(function(t){let i=new p0("GetTextContent: page "+s);y(i);let r=l>=5?Date.now():0;t.extractTextContent({handler:m,task:i,sink:a,includeMarkedContent:n,disableNormalization:o}).then(function(){x(i),r&&d(`page=${s+1} - getTextContent: time=`+(Date.now()-r)+"ms"),a.close()},function(t){x(i),i.terminated||a.error(t)})})}),m.on("GetStructTree",function(t){return i.getPage(t.pageIndex).then(t=>i.ensure(t,"getStructTree"))}),m.on("FontFallback",function(t){return i.fontFallback(t.id,m)}),m.on("Cleanup",function(t){return i.cleanup(!0)}),m.on("Terminate",function(t){r=!0;let a=[];if(i){i.terminate(new C("Worker was terminated."));let t=i.cleanup();a.push(t),i=null}else nC();for(let t of(s?.(new C("Worker was terminated.")),n))a.push(t.finished),t.terminate();return Promise.all(a).then(function(){m.destroy(),m=null})}),m.on("Ready",function(a){var n=t;function l(t){b(),m.send("GetDoc",{pdfInfo:t})}function c(t){if(b(),t instanceof w){let a=new p0(`PasswordException: response ${t.code}`);y(a),m.sendWithPromise("PasswordRequest",t).then(function({password:t}){x(a),i.updatePassword(t),h()}).catch(function(){x(a),m.send("DocException",t)})}else m.send("DocException",pP(t))}function h(){b(),k(!1).then(l,function(t){b(),t instanceof ef?i.requestLoadedStream().then(function(){b(),k(!0).then(l,c)}):c(t)})}b(),(async function({data:t,password:a,disableAutoFetch:i,rangeChunkSize:r,length:n,docBaseUrl:l,enableXfa:c,evaluatorOptions:h}){let u={source:null,disableAutoFetch:i,docBaseUrl:l,docId:o,enableXfa:c,evaluatorOptions:h,handler:m,length:n,password:a,rangeChunkSize:r};if(t)return u.source=t,new pN(u);let d=new pZ({msgHandler:m}),g=d.getFullReader(),p=Promise.withResolvers(),y,w=[],x=0;return g.headersReady.then(function(){if(g.isRangeSupported){for(let t of(u.source=d,u.length=g.contentLength,u.disableAutoFetch||=g.isStreamingSupported,y=new pD(u),w))y.sendProgressiveData(t);w=[],p.resolve(y),s=null}}).catch(function(t){p.reject(t),s=null}),new Promise(function(t,a){let i=function({value:t,done:r}){try{if(b(),r){if(!y){let t=eg(w);w=[],n&&t.length!==n&&f("reported HTTP length is different from actual"),u.source=t,y=new pN(u),p.resolve(y)}s=null;return}x+=t.byteLength,g.isStreamingSupported||m.send("DocProgress",{loaded:x,total:Math.max(x,g.contentLength||0)}),y?y.sendProgressiveData(t):w.push(t),g.read().then(i,a)}catch(t){a(t)}};g.read().then(i,a)}).catch(function(t){p.reject(t),s=null}),s=t=>{d.cancelAllRequests(t)},p.promise})(n).then(function(t){if(r)throw t.terminate(new C("Worker was terminated.")),Error("Worker was terminated");(i=t).requestLoadedStream(!0).then(t=>{m.send("DataLoaded",{length:t.bytes.byteLength})})}).then(h,c),t=null}),p}static initializeFromPort(t){let a=new pE("worker","main",t);this.setup(a,t),a.send("ready",null)}}return globalThis.pdfjsWorker={WorkerMessageHandler:p2},{}}()});