@ebiz/designer-components 0.1.124 → 0.1.126

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 (230) hide show
  1. package/README.md +29 -29
  2. package/dist/designer-components.css +1 -1
  3. package/dist/index.mjs +35548 -33511
  4. package/dist/{pdf-C9oIcL2N.js → pdf-KomaE0u5.js} +891 -891
  5. package/package.json +1 -1
  6. package/src/App.vue +26 -26
  7. package/src/apiService/SIMPLE_DATA_SERVICE.md +284 -284
  8. package/src/apiService/mockDataService.js +115 -115
  9. package/src/apiService/simpleDataService.js +312 -312
  10. package/src/assets/base.css +86 -86
  11. package/src/assets/logo.svg +1 -1
  12. package/src/components/Button.vue +149 -149
  13. package/src/components/DataContainer.vue +40 -40
  14. package/src/components/EbizApproval.vue +366 -366
  15. package/src/components/EbizApprovalDetail.vue +169 -169
  16. package/src/components/EbizApprovalForm.vue +534 -534
  17. package/src/components/EbizApprovalV2.vue +713 -713
  18. package/src/components/EbizAutoForm.vue +596 -596
  19. package/src/components/EbizAvatar.vue +115 -115
  20. package/src/components/EbizCheckbox.vue +93 -93
  21. package/src/components/EbizCheckboxGroup.vue +69 -69
  22. package/src/components/EbizDepartmentSelector.vue +148 -148
  23. package/src/components/EbizDescriptions.vue +340 -340
  24. package/src/components/EbizDescriptionsItem.vue +47 -47
  25. package/src/components/EbizDetailBlock.vue +81 -81
  26. package/src/components/EbizDetailItem.vue +559 -559
  27. package/src/components/EbizDetailView.md +438 -438
  28. package/src/components/EbizDetailView.vue +355 -355
  29. package/src/components/EbizDialog.vue +260 -260
  30. package/src/components/EbizDictionarySelect.vue +229 -229
  31. package/src/components/EbizDiv.vue +40 -40
  32. package/src/components/EbizDivider.vue +96 -96
  33. package/src/components/EbizDormDashboard.vue +314 -314
  34. package/src/components/EbizDropdown.vue +135 -135
  35. package/src/components/EbizDropdownItem.vue +85 -85
  36. package/src/components/EbizEmployeeInfo.vue +144 -144
  37. package/src/components/EbizEmployeeSelector.vue +1160 -1160
  38. package/src/components/EbizFileList.vue +502 -502
  39. package/src/components/EbizMap.vue +541 -541
  40. package/src/components/EbizMeetingRoomSelector.vue +1149 -1149
  41. package/src/components/EbizMobileMeetingRoomSelector.vue +727 -727
  42. package/src/components/EbizOkrTree.vue +99 -99
  43. package/src/components/EbizPageHeader.vue +98 -98
  44. package/src/components/EbizPagination.vue +162 -162
  45. package/src/components/EbizParkingDashboard.vue +152 -152
  46. package/src/components/EbizPdfViewer.vue +540 -540
  47. package/src/components/EbizPopconfirm.vue +47 -47
  48. package/src/components/EbizQrCode.vue +167 -167
  49. package/src/components/EbizRadio.vue +86 -86
  50. package/src/components/EbizRadioGroup.vue +83 -83
  51. package/src/components/EbizRemoteSelect.vue +232 -232
  52. package/src/components/EbizRichTextEditor.vue +338 -338
  53. package/src/components/EbizRouteBreadcrumb.vue +46 -46
  54. package/src/components/EbizSApprovalProcess.vue +1456 -1426
  55. package/src/components/EbizSelect.vue +85 -85
  56. package/src/components/EbizSpace.vue +100 -100
  57. package/src/components/EbizStatistic.vue +149 -149
  58. package/src/components/EbizStatsCard.vue +113 -113
  59. package/src/components/EbizSwiper.vue +113 -113
  60. package/src/components/EbizSwiperItem.vue +13 -13
  61. package/src/components/EbizSwitch.vue +85 -85
  62. package/src/components/EbizTabHeader.vue +132 -132
  63. package/src/components/EbizTabPanel.vue +22 -22
  64. package/src/components/EbizTable.vue +469 -469
  65. package/src/components/EbizTableColumn.vue +116 -116
  66. package/src/components/EbizTableSort.vue +179 -179
  67. package/src/components/EbizTabs.vue +142 -142
  68. package/src/components/EbizTdesignButtonDialog.vue +332 -332
  69. package/src/components/EbizTdesignLoading.vue +107 -107
  70. package/src/components/EbizTimePicker.vue +143 -143
  71. package/src/components/EbizTitle.vue +91 -91
  72. package/src/components/EbizTree.vue +141 -141
  73. package/src/components/EbizTreeMergeTable.vue +1494 -1494
  74. package/src/components/EbizTreeSelector.vue +469 -469
  75. package/src/components/EbizVideo.vue +553 -553
  76. package/src/components/EbizVxeTable.vue +290 -290
  77. package/src/components/Form.vue +28 -28
  78. package/src/components/Home.vue +7 -7
  79. package/src/components/LaunchInterview.vue +526 -526
  80. package/src/components/MyComponent.vue +39 -39
  81. package/src/components/Table.vue +45 -45
  82. package/src/components/TdesignAlert.vue +115 -115
  83. package/src/components/TdesignButton.vue +135 -135
  84. package/src/components/TdesignCalendar/index.vue +145 -145
  85. package/src/components/TdesignCard.vue +195 -195
  86. package/src/components/TdesignCol.vue +101 -101
  87. package/src/components/TdesignCollapse.vue +142 -142
  88. package/src/components/TdesignCollapsePanel.vue +79 -79
  89. package/src/components/TdesignDatePicker.vue +124 -124
  90. package/src/components/TdesignDescriptions.vue +74 -74
  91. package/src/components/TdesignDescriptionsItem.vue +50 -50
  92. package/src/components/TdesignDialog.vue +225 -225
  93. package/src/components/TdesignForm.vue +138 -138
  94. package/src/components/TdesignFormItem.vue +105 -105
  95. package/src/components/TdesignGrid.vue +55 -55
  96. package/src/components/TdesignIcon.vue +67 -67
  97. package/src/components/TdesignImage.vue +162 -162
  98. package/src/components/TdesignImageViewer.vue +200 -200
  99. package/src/components/TdesignInput.vue +242 -242
  100. package/src/components/TdesignSelect.vue +446 -446
  101. package/src/components/TdesignTag.vue +117 -117
  102. package/src/components/TdesignTextarea.vue +142 -142
  103. package/src/components/TdesignTimeline.vue +58 -58
  104. package/src/components/TdesignTimelineItem.vue +71 -71
  105. package/src/components/TdesignUpload.vue +414 -414
  106. package/src/components/TdesignWatermark.vue +107 -107
  107. package/src/components/ebiz-form/components/cascader.vue +61 -61
  108. package/src/components/ebiz-form/components/checkbox.vue +37 -37
  109. package/src/components/ebiz-form/components/city.vue +137 -137
  110. package/src/components/ebiz-form/components/date-panel.vue +52 -52
  111. package/src/components/ebiz-form/components/date-range-panel.vue +52 -52
  112. package/src/components/ebiz-form/components/date-range.vue +56 -56
  113. package/src/components/ebiz-form/components/date.vue +52 -52
  114. package/src/components/ebiz-form/components/editor-multi-language.vue +47 -47
  115. package/src/components/ebiz-form/components/editor.vue +78 -78
  116. package/src/components/ebiz-form/components/file-multi-language.vue +52 -52
  117. package/src/components/ebiz-form/components/file.vue +149 -149
  118. package/src/components/ebiz-form/components/images-multi-language.vue +52 -52
  119. package/src/components/ebiz-form/components/images.vue +129 -129
  120. package/src/components/ebiz-form/components/img-multi-language.vue +51 -51
  121. package/src/components/ebiz-form/components/img.vue +129 -129
  122. package/src/components/ebiz-form/components/number.vue +50 -50
  123. package/src/components/ebiz-form/components/radio.vue +28 -28
  124. package/src/components/ebiz-form/components/select.vue +119 -119
  125. package/src/components/ebiz-form/components/switch.vue +23 -23
  126. package/src/components/ebiz-form/components/text-multi-language.vue +47 -47
  127. package/src/components/ebiz-form/components/text.vue +52 -52
  128. package/src/components/ebiz-form/components/textarea-multi-language.vue +48 -48
  129. package/src/components/ebiz-form/components/textarea.vue +29 -29
  130. package/src/components/ebiz-form/components/video-multi-language.vue +51 -51
  131. package/src/components/ebiz-form/components/video.vue +97 -97
  132. package/src/components/ebiz-form/index.vue +157 -157
  133. package/src/components/examples/PopconfirmExample.vue +149 -149
  134. package/src/components/icons/IconCommunity.vue +7 -7
  135. package/src/components/icons/IconDocumentation.vue +7 -7
  136. package/src/components/icons/IconEcosystem.vue +7 -7
  137. package/src/components/icons/IconSupport.vue +7 -7
  138. package/src/components/icons/IconTooling.vue +19 -19
  139. package/src/components/mItems/UserInfo.vue +349 -349
  140. package/src/components/senior/EbizApprovalList/ApprovalList.vue +127 -127
  141. package/src/components/senior/EbizSData/index.vue +280 -280
  142. package/src/components/senior/EbizSDialog/index.vue +776 -776
  143. package/src/components/senior/EbizSForm/README.md +157 -157
  144. package/src/components/senior/EbizSForm/index.vue +667 -667
  145. package/src/components/senior/EbizSForm/item.vue +1011 -1011
  146. package/src/components/senior/EbizSForm/mItems/DateTimePicker.vue +51 -51
  147. package/src/components/senior/EbizSForm/mItems/Picker.vue +63 -63
  148. package/src/index.js +327 -327
  149. package/src/main.js +55 -55
  150. package/src/router/index.js +436 -436
  151. package/src/utils/formatCode.js +24 -24
  152. package/src/utils/generateImportStatement.js +52 -52
  153. package/src/utils/hasJsx.js +25 -25
  154. package/src/utils/index.js +166 -166
  155. package/src/utils/mergeOptions.js +29 -29
  156. package/src/utils/parseRequiredBlocks.js +18 -18
  157. package/src/utils/vue-sfc-validator.js +155 -155
  158. package/src/views/Button.vue +23 -23
  159. package/src/views/CheckboxDemo.vue +104 -104
  160. package/src/views/DataContainer.vue +19 -19
  161. package/src/views/DialogDemo.vue +125 -125
  162. package/src/views/EbizApprovalDemo.vue +87 -87
  163. package/src/views/EbizApprovalFormDemo.vue +207 -207
  164. package/src/views/EbizAutoFormDemo.vue +129 -129
  165. package/src/views/EbizAvatar.vue +223 -223
  166. package/src/views/EbizDepartmentSelectorDemo.vue +169 -169
  167. package/src/views/EbizDetailBlockDemo.vue +30 -30
  168. package/src/views/EbizDetailViewDemo.vue +412 -412
  169. package/src/views/EbizDormDashboardDemo.vue +87 -87
  170. package/src/views/EbizEmployeeInfo.vue +249 -249
  171. package/src/views/EbizEmployeeSelector.vue +85 -85
  172. package/src/views/EbizFileListDemo.vue +339 -339
  173. package/src/views/EbizMap.vue +201 -201
  174. package/src/views/EbizMeetingRoomSelectorDemo.vue +293 -293
  175. package/src/views/EbizMobileMeetingRoomSelectorDemo.vue +566 -566
  176. package/src/views/EbizParkingDashboardDemo.vue +28 -28
  177. package/src/views/EbizRadioDemo.vue +151 -151
  178. package/src/views/EbizSDataDemo.vue +136 -136
  179. package/src/views/EbizSDialogDemo.vue +303 -303
  180. package/src/views/EbizSForm/index.vue +352 -352
  181. package/src/views/EbizSFormDemo.vue +420 -420
  182. package/src/views/EbizSpace.vue +185 -185
  183. package/src/views/EbizSwiper.vue +157 -157
  184. package/src/views/EbizTdesignButtonDialogExample.vue +437 -437
  185. package/src/views/Form.vue +19 -19
  186. package/src/views/GridDemo.vue +238 -238
  187. package/src/views/Home.vue +156 -156
  188. package/src/views/LaunchInterviewDemo.vue +111 -111
  189. package/src/views/Mindmap.vue +17 -17
  190. package/src/views/MyComponent.vue +19 -19
  191. package/src/views/OkrTree.vue +19 -19
  192. package/src/views/PageHeaderDemo.vue +104 -104
  193. package/src/views/PaginationDemo.vue +96 -96
  194. package/src/views/PdfViewerDemo.vue +433 -433
  195. package/src/views/PermissionBoxDemo.vue +85 -85
  196. package/src/views/PopconfirmDemo.vue +80 -80
  197. package/src/views/RemoteSelect.vue +350 -350
  198. package/src/views/StatisticDemo.vue +190 -190
  199. package/src/views/SwitchDemo.vue +79 -79
  200. package/src/views/Table.vue +19 -19
  201. package/src/views/TableDemo.vue +334 -334
  202. package/src/views/TableSortDemo.vue +143 -143
  203. package/src/views/TableView.vue +68 -68
  204. package/src/views/TabsDemo.vue +282 -282
  205. package/src/views/TagDemo.vue +101 -101
  206. package/src/views/TdesignAlert.vue +98 -98
  207. package/src/views/TdesignButton.vue +190 -190
  208. package/src/views/TdesignCalendar.vue +94 -94
  209. package/src/views/TdesignCard.vue +296 -296
  210. package/src/views/TdesignCollapse.vue +293 -293
  211. package/src/views/TdesignDatePicker.vue +187 -187
  212. package/src/views/TdesignDescriptions.vue +101 -101
  213. package/src/views/TdesignForm.vue +248 -248
  214. package/src/views/TdesignIcon.vue +203 -203
  215. package/src/views/TdesignImage.vue +215 -215
  216. package/src/views/TdesignImageViewer.vue +198 -198
  217. package/src/views/TdesignInput.vue +252 -252
  218. package/src/views/TdesignSelect.vue +473 -473
  219. package/src/views/TdesignSwiper.vue +157 -157
  220. package/src/views/TextareaDemo.vue +93 -93
  221. package/src/views/TimePickerDemo.vue +146 -146
  222. package/src/views/TimelineDemo.vue +160 -160
  223. package/src/views/Title.vue +19 -19
  224. package/src/views/TreeDemo.vue +254 -254
  225. package/src/views/TreeMergeTableDemo.vue +239 -239
  226. package/src/views/TreeSelectorDemo.vue +245 -245
  227. package/src/views/UploadDemo.vue +128 -128
  228. package/src/views/VideoDemo.vue +245 -245
  229. package/src/views/VxeTableDemo.vue +279 -279
  230. package/src/views/WatermarkDemo.vue +85 -85
@@ -1,9 +1,9 @@
1
- var Yi = Object.defineProperty;
1
+ var Ki = Object.defineProperty;
2
2
  var pi = (gt) => {
3
3
  throw TypeError(gt);
4
4
  };
5
- var Ki = (gt, h, ot) => h in gt ? Yi(gt, h, { enumerable: !0, configurable: !0, writable: !0, value: ot }) : gt[h] = ot;
6
- var Kt = (gt, h, ot) => Ki(gt, typeof h != "symbol" ? h + "" : h, ot), Re = (gt, h, ot) => h.has(gt) || pi("Cannot " + ot);
5
+ var Ji = (gt, h, ot) => h in gt ? Ki(gt, h, { enumerable: !0, configurable: !0, writable: !0, value: ot }) : gt[h] = ot;
6
+ var Jt = (gt, h, ot) => Ji(gt, typeof h != "symbol" ? h + "" : h, ot), Re = (gt, h, ot) => h.has(gt) || pi("Cannot " + ot);
7
7
  var t = (gt, h, ot) => (Re(gt, h, "read from private field"), ot ? ot.call(gt) : h.get(gt)), Q = (gt, h, ot) => h.has(gt) ? pi("Cannot add the same private member more than once") : h instanceof WeakSet ? h.add(gt) : h.set(gt, ot), et = (gt, h, ot, l) => (Re(gt, h, "write to private field"), l ? l.call(gt, ot) : h.set(gt, ot), ot), z = (gt, h, ot) => (Re(gt, h, "access private method"), ot);
8
8
  var he = (gt, h, ot, l) => ({
9
9
  set _(T) {
@@ -61,7 +61,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
61
61
  }, Symbol.toStringTag, { value: "Module" })), require$$5 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1);
62
62
  var hasRequiredPdf;
63
63
  function requirePdf() {
64
- return hasRequiredPdf || (hasRequiredPdf = 1, (function(module, exports) {
64
+ return hasRequiredPdf || (hasRequiredPdf = 1, (function(module, exports$1) {
65
65
  (function(h, ot) {
66
66
  module.exports = h.pdfjsLib = ot();
67
67
  })(globalThis, () => (
@@ -72,10 +72,10 @@ function requirePdf() {
72
72
  /* 1 */
73
73
  /***/
74
74
  ((gt, h) => {
75
- var qt;
75
+ var Yt;
76
76
  Object.defineProperty(h, "__esModule", {
77
77
  value: !0
78
- }), h.VerbosityLevel = h.Util = h.UnknownErrorException = h.UnexpectedResponseException = h.TextRenderingMode = h.RenderingIntentFlag = h.PromiseCapability = h.PermissionFlag = h.PasswordResponses = h.PasswordException = h.PageActionEventType = h.OPS = h.MissingPDFException = h.MAX_IMAGE_SIZE_TO_CACHE = h.LINE_FACTOR = h.LINE_DESCENT_FACTOR = h.InvalidPDFException = h.ImageKind = h.IDENTITY_MATRIX = h.FormatError = h.FeatureTest = h.FONT_IDENTITY_MATRIX = h.DocumentActionEventType = h.CMapCompressionType = h.BaseException = h.BASELINE_FACTOR = h.AnnotationType = h.AnnotationReplyType = h.AnnotationPrefix = h.AnnotationMode = h.AnnotationFlag = h.AnnotationFieldFlag = h.AnnotationEditorType = h.AnnotationEditorPrefix = h.AnnotationEditorParamsType = h.AnnotationBorderStyleType = h.AnnotationActionEventType = h.AbortException = void 0, h.assert = C, h.bytesToString = ht, h.createValidAbsoluteUrl = Y, h.getModificationDate = wt, h.getUuid = Nt, h.getVerbosityLevel = W, h.info = q, h.isArrayBuffer = $, h.isArrayEqual = Tt, h.isNodeJS = void 0, h.normalizeUnicode = Ft, h.objectFromMap = vt, h.objectSize = At, h.setVerbosityLevel = nt, h.shadow = S, h.string32 = pt, h.stringToBytes = dt, h.stringToPDFString = ut, h.stringToUTF8String = St, h.unreachable = rt, h.utf8StringToString = yt, h.warn = j;
78
+ }), h.VerbosityLevel = h.Util = h.UnknownErrorException = h.UnexpectedResponseException = h.TextRenderingMode = h.RenderingIntentFlag = h.PromiseCapability = h.PermissionFlag = h.PasswordResponses = h.PasswordException = h.PageActionEventType = h.OPS = h.MissingPDFException = h.MAX_IMAGE_SIZE_TO_CACHE = h.LINE_FACTOR = h.LINE_DESCENT_FACTOR = h.InvalidPDFException = h.ImageKind = h.IDENTITY_MATRIX = h.FormatError = h.FeatureTest = h.FONT_IDENTITY_MATRIX = h.DocumentActionEventType = h.CMapCompressionType = h.BaseException = h.BASELINE_FACTOR = h.AnnotationType = h.AnnotationReplyType = h.AnnotationPrefix = h.AnnotationMode = h.AnnotationFlag = h.AnnotationFieldFlag = h.AnnotationEditorType = h.AnnotationEditorPrefix = h.AnnotationEditorParamsType = h.AnnotationBorderStyleType = h.AnnotationActionEventType = h.AbortException = void 0, h.assert = C, h.bytesToString = ht, h.createValidAbsoluteUrl = K, h.getModificationDate = wt, h.getUuid = Nt, h.getVerbosityLevel = W, h.info = Y, h.isArrayBuffer = V, h.isArrayEqual = Tt, h.isNodeJS = void 0, h.normalizeUnicode = Ft, h.objectFromMap = vt, h.objectSize = At, h.setVerbosityLevel = nt, h.shadow = S, h.string32 = pt, h.stringToBytes = dt, h.stringToPDFString = ut, h.stringToUTF8String = St, h.unreachable = rt, h.utf8StringToString = yt, h.warn = j;
79
79
  const ot = typeof process == "object" && process + "" == "[object process]" && !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser");
80
80
  h.isNodeJS = ot;
81
81
  const l = [1, 0, 0, 1, 0, 0];
@@ -84,11 +84,11 @@ function requirePdf() {
84
84
  h.FONT_IDENTITY_MATRIX = T;
85
85
  const ct = 1e7;
86
86
  h.MAX_IMAGE_SIZE_TO_CACHE = ct;
87
- const V = 1.35;
88
- h.LINE_FACTOR = V;
87
+ const q = 1.35;
88
+ h.LINE_FACTOR = q;
89
89
  const bt = 0.35;
90
90
  h.LINE_DESCENT_FACTOR = bt;
91
- const B = bt / V;
91
+ const B = bt / q;
92
92
  h.BASELINE_FACTOR = B;
93
93
  const R = {
94
94
  ANY: 1,
@@ -380,7 +380,7 @@ function requirePdf() {
380
380
  function W() {
381
381
  return F;
382
382
  }
383
- function q(_t) {
383
+ function Y(_t) {
384
384
  F >= o.INFOS && console.log(`Info: ${_t}`);
385
385
  }
386
386
  function j(_t) {
@@ -404,7 +404,7 @@ function requirePdf() {
404
404
  return !1;
405
405
  }
406
406
  }
407
- function Y(_t, tt = null, st = null) {
407
+ function K(_t, tt = null, st = null) {
408
408
  if (!_t)
409
409
  return null;
410
410
  try {
@@ -514,7 +514,7 @@ function requirePdf() {
514
514
  tt[st] = kt;
515
515
  return tt;
516
516
  }
517
- function K() {
517
+ function J() {
518
518
  const _t = new Uint8Array(4);
519
519
  return _t[0] = 1, new Uint32Array(_t.buffer, 0, 1)[0] === 1;
520
520
  }
@@ -527,7 +527,7 @@ function requirePdf() {
527
527
  }
528
528
  class p {
529
529
  static get isLittleEndian() {
530
- return S(this, "isLittleEndian", K());
530
+ return S(this, "isLittleEndian", J());
531
531
  }
532
532
  static get isEvalSupported() {
533
533
  return S(this, "isEvalSupported", Z());
@@ -613,7 +613,7 @@ function requirePdf() {
613
613
  }
614
614
  }
615
615
  h.Util = X;
616
- const J = [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];
616
+ const $ = [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];
617
617
  function ut(_t) {
618
618
  if (_t[0] >= "ï") {
619
619
  let st;
@@ -629,7 +629,7 @@ function requirePdf() {
629
629
  }
630
630
  const tt = [];
631
631
  for (let st = 0, kt = _t.length; st < kt; st++) {
632
- const zt = J[_t.charCodeAt(st)];
632
+ const zt = $[_t.charCodeAt(st)];
633
633
  tt.push(zt ? String.fromCharCode(zt) : _t.charAt(st));
634
634
  }
635
635
  return tt.join("");
@@ -640,7 +640,7 @@ function requirePdf() {
640
640
  function yt(_t) {
641
641
  return unescape(encodeURIComponent(_t));
642
642
  }
643
- function $(_t) {
643
+ function V(_t) {
644
644
  return typeof _t == "object" && (_t == null ? void 0 : _t.byteLength) !== void 0;
645
645
  }
646
646
  function Tt(_t, tt) {
@@ -656,20 +656,20 @@ function requirePdf() {
656
656
  }
657
657
  class jt {
658
658
  constructor() {
659
- Q(this, qt, !1);
659
+ Q(this, Yt, !1);
660
660
  this.promise = new Promise((tt, st) => {
661
661
  this.resolve = (kt) => {
662
- et(this, qt, !0), tt(kt);
662
+ et(this, Yt, !0), tt(kt);
663
663
  }, this.reject = (kt) => {
664
- et(this, qt, !0), st(kt);
664
+ et(this, Yt, !0), st(kt);
665
665
  };
666
666
  });
667
667
  }
668
668
  get settled() {
669
- return t(this, qt);
669
+ return t(this, Yt);
670
670
  }
671
671
  }
672
- qt = new WeakMap(), h.PromiseCapability = jt;
672
+ Yt = new WeakMap(), h.PromiseCapability = jt;
673
673
  let Bt = null, Xt = null;
674
674
  function Ft(_t) {
675
675
  return Bt || (Bt = /([\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, Xt = /* @__PURE__ */ new Map([["ſt", "ſt"]])), _t.replaceAll(Bt, (tt, st, kt) => st ? st.normalize("NFKC") : Xt.get(kt));
@@ -685,30 +685,30 @@ function requirePdf() {
685
685
  _t[tt] = Math.floor(Math.random() * 255);
686
686
  return ht(_t);
687
687
  }
688
- const $t = "pdfjs_internal_id_";
689
- h.AnnotationPrefix = $t;
688
+ const Vt = "pdfjs_internal_id_";
689
+ h.AnnotationPrefix = Vt;
690
690
  }),
691
691
  /* 2 */
692
692
  /***/
693
- ((__unused_webpack_module, exports, __w_pdfjs_require__) => {
693
+ ((__unused_webpack_module, exports$1, __w_pdfjs_require__) => {
694
694
  var gt, ot, l, T, re, _e, bt, B, R, g, N, O, v, b, E, Ae, d, m, De, A, r;
695
- Object.defineProperty(exports, "__esModule", {
695
+ Object.defineProperty(exports$1, "__esModule", {
696
696
  value: !0
697
- }), exports.RenderTask = exports.PDFWorkerUtil = exports.PDFWorker = exports.PDFPageProxy = exports.PDFDocumentProxy = exports.PDFDocumentLoadingTask = exports.PDFDataRangeTransport = exports.LoopbackPort = exports.DefaultStandardFontDataFactory = exports.DefaultFilterFactory = exports.DefaultCanvasFactory = exports.DefaultCMapReaderFactory = void 0, Object.defineProperty(exports, "SVGGraphics", {
697
+ }), exports$1.RenderTask = exports$1.PDFWorkerUtil = exports$1.PDFWorker = exports$1.PDFPageProxy = exports$1.PDFDocumentProxy = exports$1.PDFDocumentLoadingTask = exports$1.PDFDataRangeTransport = exports$1.LoopbackPort = exports$1.DefaultStandardFontDataFactory = exports$1.DefaultFilterFactory = exports$1.DefaultCanvasFactory = exports$1.DefaultCMapReaderFactory = void 0, Object.defineProperty(exports$1, "SVGGraphics", {
698
698
  enumerable: !0,
699
699
  get: function() {
700
700
  return _displaySvg.SVGGraphics;
701
701
  }
702
- }), exports.build = void 0, exports.getDocument = getDocument, exports.version = void 0;
702
+ }), exports$1.build = void 0, exports$1.getDocument = getDocument, exports$1.version = void 0;
703
703
  var _util = __w_pdfjs_require__(1), _annotation_storage = __w_pdfjs_require__(3), _display_utils = __w_pdfjs_require__(6), _font_loader = __w_pdfjs_require__(9), _displayNode_utils = __w_pdfjs_require__(10), _canvas = __w_pdfjs_require__(11), _worker_options = __w_pdfjs_require__(14), _message_handler = __w_pdfjs_require__(15), _metadata = __w_pdfjs_require__(16), _optional_content_config = __w_pdfjs_require__(17), _transport_stream = __w_pdfjs_require__(18), _displayFetch_stream = __w_pdfjs_require__(19), _displayNetwork = __w_pdfjs_require__(22), _displayNode_stream = __w_pdfjs_require__(23), _displaySvg = __w_pdfjs_require__(24), _xfa_text = __w_pdfjs_require__(25);
704
704
  const DEFAULT_RANGE_CHUNK_SIZE = 65536, RENDERING_CANCELLED_TIMEOUT = 100, DELAYED_CLEANUP_TIMEOUT = 5e3, DefaultCanvasFactory = _util.isNodeJS ? _displayNode_utils.NodeCanvasFactory : _display_utils.DOMCanvasFactory;
705
- exports.DefaultCanvasFactory = DefaultCanvasFactory;
705
+ exports$1.DefaultCanvasFactory = DefaultCanvasFactory;
706
706
  const DefaultCMapReaderFactory = _util.isNodeJS ? _displayNode_utils.NodeCMapReaderFactory : _display_utils.DOMCMapReaderFactory;
707
- exports.DefaultCMapReaderFactory = DefaultCMapReaderFactory;
707
+ exports$1.DefaultCMapReaderFactory = DefaultCMapReaderFactory;
708
708
  const DefaultFilterFactory = _util.isNodeJS ? _displayNode_utils.NodeFilterFactory : _display_utils.DOMFilterFactory;
709
- exports.DefaultFilterFactory = DefaultFilterFactory;
709
+ exports$1.DefaultFilterFactory = DefaultFilterFactory;
710
710
  const DefaultStandardFontDataFactory = _util.isNodeJS ? _displayNode_utils.NodeStandardFontDataFactory : _display_utils.DOMStandardFontDataFactory;
711
- exports.DefaultStandardFontDataFactory = DefaultStandardFontDataFactory;
711
+ exports$1.DefaultStandardFontDataFactory = DefaultStandardFontDataFactory;
712
712
  function getDocument(s) {
713
713
  if (typeof s == "string" || s instanceof URL ? s = {
714
714
  url: s
@@ -720,9 +720,9 @@ function requirePdf() {
720
720
  throw new Error("Invalid parameter object: need either .data, .range or .url");
721
721
  const a = new PDFDocumentLoadingTask(), {
722
722
  docId: o
723
- } = a, L = s.url ? getUrlProp(s.url) : null, n = s.data ? getDataProp(s.data) : null, _ = s.httpHeaders || null, F = s.withCredentials === !0, nt = s.password ?? null, W = s.range instanceof PDFDataRangeTransport ? s.range : null, q = Number.isInteger(s.rangeChunkSize) && s.rangeChunkSize > 0 ? s.rangeChunkSize : DEFAULT_RANGE_CHUNK_SIZE;
723
+ } = a, L = s.url ? getUrlProp(s.url) : null, n = s.data ? getDataProp(s.data) : null, _ = s.httpHeaders || null, F = s.withCredentials === !0, nt = s.password ?? null, W = s.range instanceof PDFDataRangeTransport ? s.range : null, Y = Number.isInteger(s.rangeChunkSize) && s.rangeChunkSize > 0 ? s.rangeChunkSize : DEFAULT_RANGE_CHUNK_SIZE;
724
724
  let j = s.worker instanceof PDFWorker ? s.worker : null;
725
- const rt = s.verbosity, C = typeof s.docBaseUrl == "string" && !(0, _display_utils.isDataScheme)(s.docBaseUrl) ? s.docBaseUrl : null, U = typeof s.cMapUrl == "string" ? s.cMapUrl : null, Y = s.cMapPacked !== !1, S = s.CMapReaderFactory || DefaultCMapReaderFactory, e = typeof s.standardFontDataUrl == "string" ? s.standardFontDataUrl : null, i = s.StandardFontDataFactory || DefaultStandardFontDataFactory, u = s.stopAtErrors !== !0, P = Number.isInteger(s.maxImageSize) && s.maxImageSize > -1 ? s.maxImageSize : -1, x = s.isEvalSupported !== !1, k = typeof s.isOffscreenCanvasSupported == "boolean" ? s.isOffscreenCanvasSupported : !_util.isNodeJS, G = Number.isInteger(s.canvasMaxAreaInBytes) ? s.canvasMaxAreaInBytes : -1, it = typeof s.disableFontFace == "boolean" ? s.disableFontFace : _util.isNodeJS, ht = s.fontExtraProperties === !0, dt = s.enableXfa === !0, pt = s.ownerDocument || globalThis.document, At = s.disableRange === !0, vt = s.disableStream === !0, K = s.disableAutoFetch === !0, Z = s.pdfBug === !0, p = W ? W.length : s.length ?? NaN, M = typeof s.useSystemFonts == "boolean" ? s.useSystemFonts : !_util.isNodeJS && !it, X = typeof s.useWorkerFetch == "boolean" ? s.useWorkerFetch : S === _display_utils.DOMCMapReaderFactory && i === _display_utils.DOMStandardFontDataFactory && U && e && (0, _display_utils.isValidFetchUrl)(U, document.baseURI) && (0, _display_utils.isValidFetchUrl)(e, document.baseURI), J = s.canvasFactory || new DefaultCanvasFactory({
725
+ const rt = s.verbosity, C = typeof s.docBaseUrl == "string" && !(0, _display_utils.isDataScheme)(s.docBaseUrl) ? s.docBaseUrl : null, U = typeof s.cMapUrl == "string" ? s.cMapUrl : null, K = s.cMapPacked !== !1, S = s.CMapReaderFactory || DefaultCMapReaderFactory, e = typeof s.standardFontDataUrl == "string" ? s.standardFontDataUrl : null, i = s.StandardFontDataFactory || DefaultStandardFontDataFactory, u = s.stopAtErrors !== !0, P = Number.isInteger(s.maxImageSize) && s.maxImageSize > -1 ? s.maxImageSize : -1, x = s.isEvalSupported !== !1, k = typeof s.isOffscreenCanvasSupported == "boolean" ? s.isOffscreenCanvasSupported : !_util.isNodeJS, G = Number.isInteger(s.canvasMaxAreaInBytes) ? s.canvasMaxAreaInBytes : -1, it = typeof s.disableFontFace == "boolean" ? s.disableFontFace : _util.isNodeJS, ht = s.fontExtraProperties === !0, dt = s.enableXfa === !0, pt = s.ownerDocument || globalThis.document, At = s.disableRange === !0, vt = s.disableStream === !0, J = s.disableAutoFetch === !0, Z = s.pdfBug === !0, p = W ? W.length : s.length ?? NaN, M = typeof s.useSystemFonts == "boolean" ? s.useSystemFonts : !_util.isNodeJS && !it, X = typeof s.useWorkerFetch == "boolean" ? s.useWorkerFetch : S === _display_utils.DOMCMapReaderFactory && i === _display_utils.DOMStandardFontDataFactory && U && e && (0, _display_utils.isValidFetchUrl)(U, document.baseURI) && (0, _display_utils.isValidFetchUrl)(e, document.baseURI), $ = s.canvasFactory || new DefaultCanvasFactory({
726
726
  ownerDocument: pt
727
727
  }), ut = s.filterFactory || new DefaultFilterFactory({
728
728
  docId: o,
@@ -730,12 +730,12 @@ function requirePdf() {
730
730
  }), St = null;
731
731
  (0, _util.setVerbosityLevel)(rt);
732
732
  const yt = {
733
- canvasFactory: J,
733
+ canvasFactory: $,
734
734
  filterFactory: ut
735
735
  };
736
736
  if (X || (yt.cMapReaderFactory = new S({
737
737
  baseUrl: U,
738
- isCompressed: Y
738
+ isCompressed: K
739
739
  }), yt.standardFontDataFactory = new i({
740
740
  baseUrl: e
741
741
  })), !j) {
@@ -745,13 +745,13 @@ function requirePdf() {
745
745
  };
746
746
  j = wt.port ? PDFWorker.fromPort(wt) : new PDFWorker(wt), a._worker = j;
747
747
  }
748
- const $ = {
748
+ const V = {
749
749
  docId: o,
750
750
  apiVersion: "3.11.174",
751
751
  data: n,
752
752
  password: nt,
753
- disableAutoFetch: K,
754
- rangeChunkSize: q,
753
+ disableAutoFetch: J,
754
+ rangeChunkSize: Y,
755
755
  length: p,
756
756
  docBaseUrl: C,
757
757
  enableXfa: dt,
@@ -774,14 +774,14 @@ function requirePdf() {
774
774
  fontExtraProperties: ht,
775
775
  enableXfa: dt,
776
776
  ownerDocument: pt,
777
- disableAutoFetch: K,
777
+ disableAutoFetch: J,
778
778
  pdfBug: Z,
779
779
  styleElement: St
780
780
  };
781
781
  return j.promise.then(function() {
782
782
  if (a.destroyed)
783
783
  throw new Error("Loading aborted");
784
- const wt = _fetchDocument(j, $), jt = new Promise(function(Bt) {
784
+ const wt = _fetchDocument(j, V), jt = new Promise(function(Bt) {
785
785
  let Xt;
786
786
  W ? Xt = new _transport_stream.PDFDataTransportStream({
787
787
  length: p,
@@ -795,7 +795,7 @@ function requirePdf() {
795
795
  length: p,
796
796
  httpHeaders: _,
797
797
  withCredentials: F,
798
- rangeChunkSize: q,
798
+ rangeChunkSize: Y,
799
799
  disableRange: At,
800
800
  disableStream: vt
801
801
  })), Bt(Xt);
@@ -858,7 +858,7 @@ function requirePdf() {
858
858
  };
859
859
  gt = new WeakMap(), Q(h, gt, 0);
860
860
  let PDFDocumentLoadingTask = h;
861
- exports.PDFDocumentLoadingTask = PDFDocumentLoadingTask;
861
+ exports$1.PDFDocumentLoadingTask = PDFDocumentLoadingTask;
862
862
  class PDFDataRangeTransport {
863
863
  constructor(a, o, L = !1, n = null) {
864
864
  this.length = a, this.initialData = o, this.progressiveDone = L, this.contentDispositionFilename = n, this._rangeListeners = [], this._progressListeners = [], this._progressiveReadListeners = [], this._progressiveDoneListeners = [], this._readyCapability = new _util.PromiseCapability();
@@ -906,7 +906,7 @@ function requirePdf() {
906
906
  abort() {
907
907
  }
908
908
  }
909
- exports.PDFDataRangeTransport = PDFDataRangeTransport;
909
+ exports$1.PDFDataRangeTransport = PDFDataRangeTransport;
910
910
  class PDFDocumentProxy {
911
911
  constructor(a, o) {
912
912
  this._pdfInfo = a, this._transport = o, Object.defineProperty(this, "getJavaScript", {
@@ -1017,7 +1017,7 @@ function requirePdf() {
1017
1017
  return this._transport.getCalculationOrderIds();
1018
1018
  }
1019
1019
  }
1020
- exports.PDFDocumentProxy = PDFDocumentProxy;
1020
+ exports$1.PDFDocumentProxy = PDFDocumentProxy;
1021
1021
  class PDFPageProxy {
1022
1022
  constructor(a, o, L, n = !1) {
1023
1023
  Q(this, T);
@@ -1084,7 +1084,7 @@ function requirePdf() {
1084
1084
  background: F = null,
1085
1085
  optionalContentConfigPromise: nt = null,
1086
1086
  annotationCanvasMap: W = null,
1087
- pageColors: q = null,
1087
+ pageColors: Y = null,
1088
1088
  printAnnotationStorage: j = null
1089
1089
  }) {
1090
1090
  var i, u;
@@ -1100,14 +1100,14 @@ function requirePdf() {
1100
1100
  lastChunk: !1,
1101
1101
  separateAnnots: null
1102
1102
  }, (u = this._stats) == null || u.time("Page Request"), this._pumpOperatorList(rt));
1103
- const Y = (P) => {
1103
+ const K = (P) => {
1104
1104
  var x, k;
1105
1105
  C.renderTasks.delete(S), (this._maybeCleanupAfterRender || U) && et(this, l, !0), z(this, T, re).call(this, !U), P ? (S.capability.reject(P), this._abortOperatorList({
1106
1106
  intentState: C,
1107
1107
  reason: P instanceof Error ? P : new Error(P)
1108
1108
  })) : S.capability.resolve(), (x = this._stats) == null || x.timeEnd("Rendering"), (k = this._stats) == null || k.timeEnd("Overall");
1109
1109
  }, S = new InternalRenderTask({
1110
- callback: Y,
1110
+ callback: K,
1111
1111
  params: {
1112
1112
  canvasContext: a,
1113
1113
  viewport: o,
@@ -1123,21 +1123,21 @@ function requirePdf() {
1123
1123
  filterFactory: this._transport.filterFactory,
1124
1124
  useRequestAnimationFrame: !U,
1125
1125
  pdfBug: this._pdfBug,
1126
- pageColors: q
1126
+ pageColors: Y
1127
1127
  });
1128
1128
  (C.renderTasks || (C.renderTasks = /* @__PURE__ */ new Set())).add(S);
1129
1129
  const e = S.task;
1130
1130
  return Promise.all([C.displayReadyCapability.promise, nt]).then(([P, x]) => {
1131
1131
  var k;
1132
1132
  if (this.destroyed) {
1133
- Y();
1133
+ K();
1134
1134
  return;
1135
1135
  }
1136
1136
  (k = this._stats) == null || k.time("Rendering"), S.initializeGraphics({
1137
1137
  transparency: P,
1138
1138
  optionalContentConfig: x
1139
1139
  }), S.operatorListChanged();
1140
- }).catch(Y), e;
1140
+ }).catch(K), e;
1141
1141
  }
1142
1142
  getOperatorList({
1143
1143
  intent: a = "display",
@@ -1182,9 +1182,9 @@ function requirePdf() {
1182
1182
  function _() {
1183
1183
  F.read().then(function({
1184
1184
  value: W,
1185
- done: q
1185
+ done: Y
1186
1186
  }) {
1187
- if (q) {
1187
+ if (Y) {
1188
1188
  L(nt);
1189
1189
  return;
1190
1190
  }
@@ -1247,7 +1247,7 @@ function requirePdf() {
1247
1247
  annotationStorage: n
1248
1248
  }, _).getReader(), W = this._intentStates.get(o);
1249
1249
  W.streamReader = nt;
1250
- const q = () => {
1250
+ const Y = () => {
1251
1251
  nt.read().then(({
1252
1252
  value: j,
1253
1253
  done: rt
@@ -1256,7 +1256,7 @@ function requirePdf() {
1256
1256
  W.streamReader = null;
1257
1257
  return;
1258
1258
  }
1259
- this._transport.destroyed || (this._renderPageChunk(j, W), q());
1259
+ this._transport.destroyed || (this._renderPageChunk(j, W), Y());
1260
1260
  }, (j) => {
1261
1261
  if (W.streamReader = null, !this._transport.destroyed) {
1262
1262
  if (W.operatorList) {
@@ -1274,7 +1274,7 @@ function requirePdf() {
1274
1274
  }
1275
1275
  });
1276
1276
  };
1277
- q();
1277
+ Y();
1278
1278
  }
1279
1279
  _abortOperatorList({
1280
1280
  intentState: a,
@@ -1328,7 +1328,7 @@ function requirePdf() {
1328
1328
  return this._intentStates.clear(), this.objs.clear(), et(this, l, !1), !0;
1329
1329
  }, _e = function() {
1330
1330
  t(this, ot) && (clearTimeout(t(this, ot)), et(this, ot, null));
1331
- }, exports.PDFPageProxy = PDFPageProxy;
1331
+ }, exports$1.PDFPageProxy = PDFPageProxy;
1332
1332
  class LoopbackPort {
1333
1333
  constructor() {
1334
1334
  Q(this, bt, /* @__PURE__ */ new Set());
@@ -1355,13 +1355,13 @@ function requirePdf() {
1355
1355
  t(this, bt).clear();
1356
1356
  }
1357
1357
  }
1358
- bt = new WeakMap(), B = new WeakMap(), exports.LoopbackPort = LoopbackPort;
1358
+ bt = new WeakMap(), B = new WeakMap(), exports$1.LoopbackPort = LoopbackPort;
1359
1359
  const PDFWorkerUtil = {
1360
1360
  isWorkerDisabled: !1,
1361
1361
  fallbackWorkerSrc: null,
1362
1362
  fakeWorkerId: 0
1363
1363
  };
1364
- exports.PDFWorkerUtil = PDFWorkerUtil;
1364
+ exports$1.PDFWorkerUtil = PDFWorkerUtil;
1365
1365
  {
1366
1366
  if (_util.isNodeJS && typeof commonjsRequire == "function")
1367
1367
  PDFWorkerUtil.isWorkerDisabled = !0, PDFWorkerUtil.fallbackWorkerSrc = "./pdf.worker.js";
@@ -1522,7 +1522,7 @@ function requirePdf() {
1522
1522
  };
1523
1523
  g = new WeakMap(), Q(_PDFWorker, g);
1524
1524
  let PDFWorker = _PDFWorker;
1525
- exports.PDFWorker = PDFWorker;
1525
+ exports$1.PDFWorker = PDFWorker;
1526
1526
  class WorkerTransport {
1527
1527
  constructor(a, o, L, n, _) {
1528
1528
  Q(this, E);
@@ -1722,16 +1722,16 @@ function requirePdf() {
1722
1722
  (0, _util.warn)(`Error during font loading: ${j}`), this.commonObjs.resolve(L, j);
1723
1723
  break;
1724
1724
  }
1725
- const W = nt.pdfBug && ((F = globalThis.FontInspector) != null && F.enabled) ? (j, rt) => globalThis.FontInspector.fontAdded(j, rt) : null, q = new _font_loader.FontFaceObject(_, {
1725
+ const W = nt.pdfBug && ((F = globalThis.FontInspector) != null && F.enabled) ? (j, rt) => globalThis.FontInspector.fontAdded(j, rt) : null, Y = new _font_loader.FontFaceObject(_, {
1726
1726
  isEvalSupported: nt.isEvalSupported,
1727
1727
  disableFontFace: nt.disableFontFace,
1728
1728
  ignoreErrors: nt.ignoreErrors,
1729
1729
  inspectFont: W
1730
1730
  });
1731
- this.fontLoader.bind(q).catch((j) => a.sendWithPromise("FontFallback", {
1731
+ this.fontLoader.bind(Y).catch((j) => a.sendWithPromise("FontFallback", {
1732
1732
  id: L
1733
1733
  })).finally(() => {
1734
- !nt.fontExtraProperties && q.data && (q.data = null), this.commonObjs.resolve(L, q);
1734
+ !nt.fontExtraProperties && Y.data && (Y.data = null), this.commonObjs.resolve(L, Y);
1735
1735
  });
1736
1736
  break;
1737
1737
  case "FontPath":
@@ -1751,16 +1751,16 @@ function requirePdf() {
1751
1751
  switch (_) {
1752
1752
  case "Image":
1753
1753
  if (nt.objs.resolve(L, F), F) {
1754
- let q;
1754
+ let Y;
1755
1755
  if (F.bitmap) {
1756
1756
  const {
1757
1757
  width: j,
1758
1758
  height: rt
1759
1759
  } = F;
1760
- q = j * rt * 4;
1760
+ Y = j * rt * 4;
1761
1761
  } else
1762
- q = ((W = F.data) == null ? void 0 : W.length) || 0;
1763
- q > _util.MAX_IMAGE_SIZE_TO_CACHE && (nt._maybeCleanupAfterRender = !0);
1762
+ Y = ((W = F.data) == null ? void 0 : W.length) || 0;
1763
+ Y > _util.MAX_IMAGE_SIZE_TO_CACHE && (nt._maybeCleanupAfterRender = !0);
1764
1764
  }
1765
1765
  break;
1766
1766
  case "Pattern":
@@ -1990,7 +1990,7 @@ function requirePdf() {
1990
1990
  return a.form || a.canvas && (o == null ? void 0 : o.size) > 0;
1991
1991
  }
1992
1992
  }
1993
- A = new WeakMap(), exports.RenderTask = RenderTask;
1993
+ A = new WeakMap(), exports$1.RenderTask = RenderTask;
1994
1994
  const c = class c {
1995
1995
  constructor({
1996
1996
  callback: a,
@@ -2001,12 +2001,12 @@ function requirePdf() {
2001
2001
  operatorList: F,
2002
2002
  pageIndex: nt,
2003
2003
  canvasFactory: W,
2004
- filterFactory: q,
2004
+ filterFactory: Y,
2005
2005
  useRequestAnimationFrame: j = !1,
2006
2006
  pdfBug: rt = !1,
2007
2007
  pageColors: C = null
2008
2008
  }) {
2009
- this.callback = a, this.params = o, this.objs = L, this.commonObjs = n, this.annotationCanvasMap = _, this.operatorListIdx = null, this.operatorList = F, this._pageIndex = nt, this.canvasFactory = W, this.filterFactory = q, this._pdfBug = rt, this.pageColors = C, this.running = !1, this.graphicsReadyCallback = null, this.graphicsReady = !1, this._useRequestAnimationFrame = j === !0 && typeof window < "u", this.cancelled = !1, this.capability = new _util.PromiseCapability(), this.task = new RenderTask(this), this._cancelBound = this.cancel.bind(this), this._continueBound = this._continue.bind(this), this._scheduleNextBound = this._scheduleNext.bind(this), this._nextBound = this._next.bind(this), this._canvas = o.canvasContext.canvas;
2009
+ this.callback = a, this.params = o, this.objs = L, this.commonObjs = n, this.annotationCanvasMap = _, this.operatorListIdx = null, this.operatorList = F, this._pageIndex = nt, this.canvasFactory = W, this.filterFactory = Y, this._pdfBug = rt, this.pageColors = C, this.running = !1, this.graphicsReadyCallback = null, this.graphicsReady = !1, this._useRequestAnimationFrame = j === !0 && typeof window < "u", this.cancelled = !1, this.capability = new _util.PromiseCapability(), this.task = new RenderTask(this), this._cancelBound = this.cancel.bind(this), this._continueBound = this._continue.bind(this), this._scheduleNextBound = this._scheduleNext.bind(this), this._nextBound = this._next.bind(this), this._canvas = o.canvasContext.canvas;
2010
2010
  }
2011
2011
  get completed() {
2012
2012
  return this.capability.promise.catch(function() {
@@ -2067,9 +2067,9 @@ function requirePdf() {
2067
2067
  r = new WeakMap(), Q(c, r, /* @__PURE__ */ new WeakSet());
2068
2068
  let InternalRenderTask = c;
2069
2069
  const version = "3.11.174";
2070
- exports.version = version;
2070
+ exports$1.version = version;
2071
2071
  const build = "ce8716743";
2072
- exports.build = build;
2072
+ exports$1.build = build;
2073
2073
  }),
2074
2074
  /* 3 */
2075
2075
  /***/
@@ -2079,12 +2079,12 @@ function requirePdf() {
2079
2079
  value: !0
2080
2080
  }), h.SerializableEmpty = h.PrintAnnotationStorage = h.AnnotationStorage = void 0;
2081
2081
  var l = ot(1), T = ot(4), ct = ot(8);
2082
- const V = Object.freeze({
2082
+ const q = Object.freeze({
2083
2083
  map: null,
2084
2084
  hash: "",
2085
2085
  transfers: void 0
2086
2086
  });
2087
- h.SerializableEmpty = V;
2087
+ h.SerializableEmpty = q;
2088
2088
  class bt {
2089
2089
  constructor() {
2090
2090
  Q(this, N);
@@ -2138,7 +2138,7 @@ function requirePdf() {
2138
2138
  }
2139
2139
  get serializable() {
2140
2140
  if (t(this, g).size === 0)
2141
- return V;
2141
+ return q;
2142
2142
  const E = /* @__PURE__ */ new Map(), f = new ct.MurmurHash3_64(), d = [], m = /* @__PURE__ */ Object.create(null);
2143
2143
  let I = !1;
2144
2144
  for (const [A, r] of t(this, g)) {
@@ -2152,7 +2152,7 @@ function requirePdf() {
2152
2152
  map: E,
2153
2153
  hash: f.hexdigest(),
2154
2154
  transfers: d
2155
- } : V;
2155
+ } : q;
2156
2156
  }
2157
2157
  }
2158
2158
  R = new WeakMap(), g = new WeakMap(), N = new WeakSet(), gi = function() {
@@ -2207,23 +2207,23 @@ function requirePdf() {
2207
2207
  Q(this, d, !1);
2208
2208
  Q(this, m, !1);
2209
2209
  Q(this, I, !1);
2210
- Kt(this, "_initialOptions", /* @__PURE__ */ Object.create(null));
2211
- Kt(this, "_uiManager", null);
2212
- Kt(this, "_focusEventsAllowed", !0);
2213
- Kt(this, "_l10nPromise", null);
2210
+ Jt(this, "_initialOptions", /* @__PURE__ */ Object.create(null));
2211
+ Jt(this, "_uiManager", null);
2212
+ Jt(this, "_focusEventsAllowed", !0);
2213
+ Jt(this, "_l10nPromise", null);
2214
2214
  Q(this, A, !1);
2215
2215
  Q(this, r, j._zIndex++);
2216
2216
  this.constructor === j && (0, T.unreachable)("Cannot initialize AnnotationEditor."), this.parent = C.parent, this.id = C.id, this.width = this.height = null, this.pageIndex = C.parent.pageIndex, this.name = C.name, this.div = null, this._uiManager = C.uiManager, this.annotationElementId = null, this._willKeepAspectRatio = !1, this._initialOptions.isCentered = C.isCentered, this._structTreeParentId = null;
2217
2217
  const {
2218
2218
  rotation: U,
2219
2219
  rawDims: {
2220
- pageWidth: Y,
2220
+ pageWidth: K,
2221
2221
  pageHeight: S,
2222
2222
  pageX: e,
2223
2223
  pageY: i
2224
2224
  }
2225
2225
  } = this.parent.viewport;
2226
- this.rotation = U, this.pageRotation = (360 + U - this._uiManager.viewParameters.rotation) % 360, this.pageDimensions = [Y, S], this.pageTranslation = [e, i];
2226
+ this.rotation = U, this.pageRotation = (360 + U - this._uiManager.viewParameters.rotation) % 360, this.pageDimensions = [K, S], this.pageTranslation = [e, i];
2227
2227
  const [u, P] = this.parentDimensions;
2228
2228
  this.x = C.x / u, this.y = C.y / P, this.isAttachedToDOM = !1, this.deleted = !1;
2229
2229
  }
@@ -2247,8 +2247,8 @@ function requirePdf() {
2247
2247
  j._l10nPromise.set(S, C.get(S));
2248
2248
  if (j._borderLineWidth !== -1)
2249
2249
  return;
2250
- const Y = getComputedStyle(document.documentElement);
2251
- j._borderLineWidth = parseFloat(Y.getPropertyValue("--outline-width")) || 0;
2250
+ const K = getComputedStyle(document.documentElement);
2251
+ j._borderLineWidth = parseFloat(K.getPropertyValue("--outline-width")) || 0;
2252
2252
  }
2253
2253
  static updateDefaultParams(C, U) {
2254
2254
  }
@@ -2308,11 +2308,11 @@ function requirePdf() {
2308
2308
  this._focusEventsAllowed && (t(this, d) ? et(this, d, !1) : this.parent.setSelected(this));
2309
2309
  }
2310
2310
  focusout(C) {
2311
- var Y;
2311
+ var K;
2312
2312
  if (!this._focusEventsAllowed || !this.isAttachedToDOM)
2313
2313
  return;
2314
2314
  const U = C.relatedTarget;
2315
- U != null && U.closest(`#${this.id}`) || (C.preventDefault(), (Y = this.parent) != null && Y.isMultipleSelection || this.commitOrRemove());
2315
+ U != null && U.closest(`#${this.id}`) || (C.preventDefault(), (K = this.parent) != null && K.isMultipleSelection || this.commitOrRemove());
2316
2316
  }
2317
2317
  commitOrRemove() {
2318
2318
  this.isEmpty() ? this.remove() : this.commit();
@@ -2323,9 +2323,9 @@ function requirePdf() {
2323
2323
  addToAnnotationStorage() {
2324
2324
  this._uiManager.addToAnnotationStorage(this);
2325
2325
  }
2326
- setAt(C, U, Y, S) {
2326
+ setAt(C, U, K, S) {
2327
2327
  const [e, i] = this.parentDimensions;
2328
- [Y, S] = this.screenToPageTranslation(Y, S), this.x = (C + Y) / e, this.y = (U + S) / i, this.fixAndSetPosition();
2328
+ [K, S] = this.screenToPageTranslation(K, S), this.x = (C + K) / e, this.y = (U + S) / i, this.fixAndSetPosition();
2329
2329
  }
2330
2330
  translate(C, U) {
2331
2331
  z(this, c, Ie).call(this, this.parentDimensions, C, U);
@@ -2336,8 +2336,8 @@ function requirePdf() {
2336
2336
  });
2337
2337
  }
2338
2338
  drag(C, U) {
2339
- const [Y, S] = this.parentDimensions;
2340
- if (this.x += C / Y, this.y += U / S, this.parent && (this.x < 0 || this.x > 1 || this.y < 0 || this.y > 1)) {
2339
+ const [K, S] = this.parentDimensions;
2340
+ if (this.x += C / K, this.y += U / S, this.parent && (this.x < 0 || this.x > 1 || this.y < 0 || this.y > 1)) {
2341
2341
  const {
2342
2342
  x,
2343
2343
  y: k
@@ -2356,40 +2356,40 @@ function requirePdf() {
2356
2356
  fixAndSetPosition() {
2357
2357
  const [C, U] = this.pageDimensions;
2358
2358
  let {
2359
- x: Y,
2359
+ x: K,
2360
2360
  y: S,
2361
2361
  width: e,
2362
2362
  height: i
2363
2363
  } = this;
2364
- switch (e *= C, i *= U, Y *= C, S *= U, this.rotation) {
2364
+ switch (e *= C, i *= U, K *= C, S *= U, this.rotation) {
2365
2365
  case 0:
2366
- Y = Math.max(0, Math.min(C - e, Y)), S = Math.max(0, Math.min(U - i, S));
2366
+ K = Math.max(0, Math.min(C - e, K)), S = Math.max(0, Math.min(U - i, S));
2367
2367
  break;
2368
2368
  case 90:
2369
- Y = Math.max(0, Math.min(C - i, Y)), S = Math.min(U, Math.max(e, S));
2369
+ K = Math.max(0, Math.min(C - i, K)), S = Math.min(U, Math.max(e, S));
2370
2370
  break;
2371
2371
  case 180:
2372
- Y = Math.min(C, Math.max(e, Y)), S = Math.min(U, Math.max(i, S));
2372
+ K = Math.min(C, Math.max(e, K)), S = Math.min(U, Math.max(i, S));
2373
2373
  break;
2374
2374
  case 270:
2375
- Y = Math.min(C, Math.max(i, Y)), S = Math.max(0, Math.min(U - e, S));
2375
+ K = Math.min(C, Math.max(i, K)), S = Math.max(0, Math.min(U - e, S));
2376
2376
  break;
2377
2377
  }
2378
- this.x = Y /= C, this.y = S /= U;
2378
+ this.x = K /= C, this.y = S /= U;
2379
2379
  const [u, P] = z(this, c, Le).call(this);
2380
- Y += u, S += P;
2380
+ K += u, S += P;
2381
2381
  const {
2382
2382
  style: x
2383
2383
  } = this.div;
2384
- x.left = `${(100 * Y).toFixed(2)}%`, x.top = `${(100 * S).toFixed(2)}%`, this.moveInDOM();
2384
+ x.left = `${(100 * K).toFixed(2)}%`, x.top = `${(100 * S).toFixed(2)}%`, this.moveInDOM();
2385
2385
  }
2386
2386
  screenToPageTranslation(C, U) {
2387
- var Y;
2388
- return z(Y = j, o, Oe).call(Y, C, U, this.parentRotation);
2387
+ var K;
2388
+ return z(K = j, o, Oe).call(K, C, U, this.parentRotation);
2389
2389
  }
2390
2390
  pageTranslationToScreen(C, U) {
2391
- var Y;
2392
- return z(Y = j, o, Oe).call(Y, C, U, 360 - this.parentRotation);
2391
+ var K;
2392
+ return z(K = j, o, Oe).call(K, C, U, 360 - this.parentRotation);
2393
2393
  }
2394
2394
  get parentScale() {
2395
2395
  return this._uiManager.viewParameters.realScale;
@@ -2400,26 +2400,26 @@ function requirePdf() {
2400
2400
  get parentDimensions() {
2401
2401
  const {
2402
2402
  parentScale: C,
2403
- pageDimensions: [U, Y]
2404
- } = this, S = U * C, e = Y * C;
2403
+ pageDimensions: [U, K]
2404
+ } = this, S = U * C, e = K * C;
2405
2405
  return T.FeatureTest.isCSSRoundSupported ? [Math.round(S), Math.round(e)] : [S, e];
2406
2406
  }
2407
2407
  setDims(C, U) {
2408
2408
  var e;
2409
- const [Y, S] = this.parentDimensions;
2410
- this.div.style.width = `${(100 * C / Y).toFixed(2)}%`, t(this, v) || (this.div.style.height = `${(100 * U / S).toFixed(2)}%`), (e = t(this, g)) == null || e.classList.toggle("small", C < j.SMALL_EDITOR_SIZE || U < j.SMALL_EDITOR_SIZE);
2409
+ const [K, S] = this.parentDimensions;
2410
+ this.div.style.width = `${(100 * C / K).toFixed(2)}%`, t(this, v) || (this.div.style.height = `${(100 * U / S).toFixed(2)}%`), (e = t(this, g)) == null || e.classList.toggle("small", C < j.SMALL_EDITOR_SIZE || U < j.SMALL_EDITOR_SIZE);
2411
2411
  }
2412
2412
  fixDims() {
2413
2413
  const {
2414
2414
  style: C
2415
2415
  } = this.div, {
2416
2416
  height: U,
2417
- width: Y
2418
- } = C, S = Y.endsWith("%"), e = !t(this, v) && U.endsWith("%");
2417
+ width: K
2418
+ } = C, S = K.endsWith("%"), e = !t(this, v) && U.endsWith("%");
2419
2419
  if (S && e)
2420
2420
  return;
2421
2421
  const [i, u] = this.parentDimensions;
2422
- S || (C.width = `${(100 * parseFloat(Y) / i).toFixed(2)}%`), !t(this, v) && !e && (C.height = `${(100 * parseFloat(U) / u).toFixed(2)}%`);
2422
+ S || (C.width = `${(100 * parseFloat(K) / i).toFixed(2)}%`), !t(this, v) && !e && (C.height = `${(100 * parseFloat(U) / u).toFixed(2)}%`);
2423
2423
  }
2424
2424
  getInitialTranslation() {
2425
2425
  return [0, 0];
@@ -2430,12 +2430,12 @@ function requirePdf() {
2430
2430
  const C = et(this, g, document.createElement("button"));
2431
2431
  C.className = "altText";
2432
2432
  const U = await j._l10nPromise.get("editor_alt_text_button_label");
2433
- C.textContent = U, C.setAttribute("aria-label", U), C.tabIndex = "0", C.addEventListener("contextmenu", ct.noContextMenu), C.addEventListener("pointerdown", (Y) => Y.stopPropagation()), C.addEventListener("click", (Y) => {
2434
- Y.preventDefault(), this._uiManager.editAltText(this);
2433
+ C.textContent = U, C.setAttribute("aria-label", U), C.tabIndex = "0", C.addEventListener("contextmenu", ct.noContextMenu), C.addEventListener("pointerdown", (K) => K.stopPropagation()), C.addEventListener("click", (K) => {
2434
+ K.preventDefault(), this._uiManager.editAltText(this);
2435
2435
  }, {
2436
2436
  capture: !0
2437
- }), C.addEventListener("keydown", (Y) => {
2438
- Y.target === C && Y.key === "Enter" && (Y.preventDefault(), this._uiManager.editAltText(this));
2437
+ }), C.addEventListener("keydown", (K) => {
2438
+ K.target === C && K.key === "Enter" && (K.preventDefault(), this._uiManager.editAltText(this));
2439
2439
  }), z(this, c, Be).call(this), this.div.append(C), j.SMALL_EDITOR_SIZE || (j.SMALL_EDITOR_SIZE = Math.min(128, Math.round(C.getBoundingClientRect().width * 1.4)));
2440
2440
  }
2441
2441
  getClientDimensions() {
@@ -2457,8 +2457,8 @@ function requirePdf() {
2457
2457
  this.div = document.createElement("div"), this.div.setAttribute("data-editor-rotation", (360 - this.rotation) % 360), this.div.className = this.name, this.div.setAttribute("id", this.id), this.div.setAttribute("tabIndex", 0), this.setInForeground(), this.div.addEventListener("focusin", t(this, E)), this.div.addEventListener("focusout", t(this, f));
2458
2458
  const [C, U] = this.parentDimensions;
2459
2459
  this.parentRotation % 180 !== 0 && (this.div.style.maxWidth = `${(100 * U / C).toFixed(2)}%`, this.div.style.maxHeight = `${(100 * C / U).toFixed(2)}%`);
2460
- const [Y, S] = this.getInitialTranslation();
2461
- return this.translate(Y, S), (0, l.bindEvents)(this, this.div, ["pointerdown"]), this.div;
2460
+ const [K, S] = this.getInitialTranslation();
2461
+ return this.translate(K, S), (0, l.bindEvents)(this, this.div, ["pointerdown"]), this.div;
2462
2462
  }
2463
2463
  pointerdown(C) {
2464
2464
  const {
@@ -2474,11 +2474,11 @@ function requirePdf() {
2474
2474
  var C;
2475
2475
  (C = this.parent) == null || C.moveEditorInDOM(this);
2476
2476
  }
2477
- _setParentAndPosition(C, U, Y) {
2478
- C.changeParent(this), this.x = U, this.y = Y, this.fixAndSetPosition();
2477
+ _setParentAndPosition(C, U, K) {
2478
+ C.changeParent(this), this.x = U, this.y = K, this.fixAndSetPosition();
2479
2479
  }
2480
2480
  getRect(C, U) {
2481
- const Y = this.parentScale, [S, e] = this.pageDimensions, [i, u] = this.pageTranslation, P = C / Y, x = U / Y, k = this.x * S, G = this.y * e, it = this.width * S, ht = this.height * e;
2481
+ const K = this.parentScale, [S, e] = this.pageDimensions, [i, u] = this.pageTranslation, P = C / K, x = U / K, k = this.x * S, G = this.y * e, it = this.width * S, ht = this.height * e;
2482
2482
  switch (this.rotation) {
2483
2483
  case 0:
2484
2484
  return [k + P + i, e - G - x - ht + u, k + P + it + i, e - G - x + u];
@@ -2493,12 +2493,12 @@ function requirePdf() {
2493
2493
  }
2494
2494
  }
2495
2495
  getRectInCurrentCoords(C, U) {
2496
- const [Y, S, e, i] = C, u = e - Y, P = i - S;
2496
+ const [K, S, e, i] = C, u = e - K, P = i - S;
2497
2497
  switch (this.rotation) {
2498
2498
  case 0:
2499
- return [Y, U - i, u, P];
2499
+ return [K, U - i, u, P];
2500
2500
  case 90:
2501
- return [Y, U - S, P, u];
2501
+ return [K, U - S, P, u];
2502
2502
  case 180:
2503
2503
  return [e, U - S, u, P];
2504
2504
  case 270:
@@ -2534,11 +2534,11 @@ function requirePdf() {
2534
2534
  serialize(C = !1, U = null) {
2535
2535
  (0, T.unreachable)("An editor must be serializable");
2536
2536
  }
2537
- static deserialize(C, U, Y) {
2537
+ static deserialize(C, U, K) {
2538
2538
  const S = new this.prototype.constructor({
2539
2539
  parent: U,
2540
2540
  id: U.getNextId(),
2541
- uiManager: Y
2541
+ uiManager: K
2542
2542
  });
2543
2543
  S.rotation = C.rotation;
2544
2544
  const [e, i] = S.pageDimensions, [u, P, x, k] = S.getRectInCurrentCoords(C.rect, i);
@@ -2559,8 +2559,8 @@ function requirePdf() {
2559
2559
  this.makeResizable(), (C = this.div) == null || C.classList.add("selectedEditor");
2560
2560
  }
2561
2561
  unselect() {
2562
- var C, U, Y;
2563
- (C = t(this, b)) == null || C.classList.add("hidden"), (U = this.div) == null || U.classList.remove("selectedEditor"), (Y = this.div) != null && Y.contains(document.activeElement) && this._uiManager.currentLayer.div.focus();
2562
+ var C, U, K;
2563
+ (C = t(this, b)) == null || C.classList.add("hidden"), (U = this.div) == null || U.classList.remove("selectedEditor"), (K = this.div) != null && K.contains(document.activeElement) && this._uiManager.currentLayer.div.focus();
2564
2564
  }
2565
2565
  updateParams(C, U) {
2566
2566
  }
@@ -2583,21 +2583,21 @@ function requirePdf() {
2583
2583
  }
2584
2584
  setAspectRatio(C, U) {
2585
2585
  et(this, v, !0);
2586
- const Y = C / U, {
2586
+ const K = C / U, {
2587
2587
  style: S
2588
2588
  } = this.div;
2589
- S.aspectRatio = Y, S.height = "auto";
2589
+ S.aspectRatio = K, S.height = "auto";
2590
2590
  }
2591
2591
  static get MIN_SIZE() {
2592
2592
  return 16;
2593
2593
  }
2594
2594
  };
2595
- B = new WeakMap(), R = new WeakMap(), g = new WeakMap(), N = new WeakMap(), O = new WeakMap(), v = new WeakMap(), b = new WeakMap(), E = new WeakMap(), f = new WeakMap(), d = new WeakMap(), m = new WeakMap(), I = new WeakMap(), A = new WeakMap(), r = new WeakMap(), c = new WeakSet(), Ie = function([C, U], Y, S) {
2596
- [Y, S] = this.screenToPageTranslation(Y, S), this.x += Y / C, this.y += S / U, this.fixAndSetPosition();
2595
+ B = new WeakMap(), R = new WeakMap(), g = new WeakMap(), N = new WeakMap(), O = new WeakMap(), v = new WeakMap(), b = new WeakMap(), E = new WeakMap(), f = new WeakMap(), d = new WeakMap(), m = new WeakMap(), I = new WeakMap(), A = new WeakMap(), r = new WeakMap(), c = new WeakSet(), Ie = function([C, U], K, S) {
2596
+ [K, S] = this.screenToPageTranslation(K, S), this.x += K / C, this.y += S / U, this.fixAndSetPosition();
2597
2597
  }, Le = function() {
2598
2598
  const [C, U] = this.parentDimensions, {
2599
- _borderLineWidth: Y
2600
- } = j, S = Y / C, e = Y / U;
2599
+ _borderLineWidth: K
2600
+ } = j, S = K / C, e = K / U;
2601
2601
  switch (this.rotation) {
2602
2602
  case 90:
2603
2603
  return [-S, e];
@@ -2608,8 +2608,8 @@ function requirePdf() {
2608
2608
  default:
2609
2609
  return [-S, -e];
2610
2610
  }
2611
- }, o = new WeakSet(), Oe = function(C, U, Y) {
2612
- switch (Y) {
2611
+ }, o = new WeakSet(), Oe = function(C, U, K) {
2612
+ switch (K) {
2613
2613
  case 90:
2614
2614
  return [U, -C];
2615
2615
  case 180:
@@ -2622,14 +2622,14 @@ function requirePdf() {
2622
2622
  }, Ne = function(C) {
2623
2623
  switch (C) {
2624
2624
  case 90: {
2625
- const [U, Y] = this.pageDimensions;
2626
- return [0, -U / Y, Y / U, 0];
2625
+ const [U, K] = this.pageDimensions;
2626
+ return [0, -U / K, K / U, 0];
2627
2627
  }
2628
2628
  case 180:
2629
2629
  return [-1, 0, 0, -1];
2630
2630
  case 270: {
2631
- const [U, Y] = this.pageDimensions;
2632
- return [0, U / Y, -Y / U, 0];
2631
+ const [U, K] = this.pageDimensions;
2632
+ return [0, U / K, -K / U, 0];
2633
2633
  }
2634
2634
  default:
2635
2635
  return [1, 0, 0, 1];
@@ -2641,16 +2641,16 @@ function requirePdf() {
2641
2641
  const C = ["topLeft", "topRight", "bottomRight", "bottomLeft"];
2642
2642
  this._willKeepAspectRatio || C.push("topMiddle", "middleRight", "bottomMiddle", "middleLeft");
2643
2643
  for (const U of C) {
2644
- const Y = document.createElement("div");
2645
- t(this, b).append(Y), Y.classList.add("resizer", U), Y.addEventListener("pointerdown", z(this, c, bi).bind(this, U)), Y.addEventListener("contextmenu", ct.noContextMenu);
2644
+ const K = document.createElement("div");
2645
+ t(this, b).append(K), K.classList.add("resizer", U), K.addEventListener("pointerdown", z(this, c, bi).bind(this, U)), K.addEventListener("contextmenu", ct.noContextMenu);
2646
2646
  }
2647
2647
  this.div.prepend(t(this, b));
2648
2648
  }, bi = function(C, U) {
2649
2649
  U.preventDefault();
2650
2650
  const {
2651
- isMac: Y
2651
+ isMac: K
2652
2652
  } = T.FeatureTest.platform;
2653
- if (U.button !== 0 || U.ctrlKey && Y)
2653
+ if (U.button !== 0 || U.ctrlKey && K)
2654
2654
  return;
2655
2655
  const S = z(this, c, _i).bind(this, C), e = this._isDraggable;
2656
2656
  this._isDraggable = !1;
@@ -2667,42 +2667,42 @@ function requirePdf() {
2667
2667
  dt === u && pt === P && At === x && vt === k || this.addCommands({
2668
2668
  cmd: () => {
2669
2669
  this.width = At, this.height = vt, this.x = dt, this.y = pt;
2670
- const [K, Z] = this.parentDimensions;
2671
- this.setDims(K * At, Z * vt), this.fixAndSetPosition();
2670
+ const [J, Z] = this.parentDimensions;
2671
+ this.setDims(J * At, Z * vt), this.fixAndSetPosition();
2672
2672
  },
2673
2673
  undo: () => {
2674
2674
  this.width = x, this.height = k, this.x = u, this.y = P;
2675
- const [K, Z] = this.parentDimensions;
2676
- this.setDims(K * x, Z * k), this.fixAndSetPosition();
2675
+ const [J, Z] = this.parentDimensions;
2676
+ this.setDims(J * x, Z * k), this.fixAndSetPosition();
2677
2677
  },
2678
2678
  mustExec: !0
2679
2679
  });
2680
2680
  };
2681
2681
  window.addEventListener("pointerup", ht), window.addEventListener("blur", ht);
2682
2682
  }, _i = function(C, U) {
2683
- const [Y, S] = this.parentDimensions, e = this.x, i = this.y, u = this.width, P = this.height, x = j.MIN_SIZE / Y, k = j.MIN_SIZE / S, G = (Ft) => Math.round(Ft * 1e4) / 1e4, it = z(this, c, Ne).call(this, this.rotation), ht = (Ft, Nt) => [it[0] * Ft + it[2] * Nt, it[1] * Ft + it[3] * Nt], dt = z(this, c, Ne).call(this, 360 - this.rotation), pt = (Ft, Nt) => [dt[0] * Ft + dt[2] * Nt, dt[1] * Ft + dt[3] * Nt];
2684
- let At, vt, K = !1, Z = !1;
2683
+ const [K, S] = this.parentDimensions, e = this.x, i = this.y, u = this.width, P = this.height, x = j.MIN_SIZE / K, k = j.MIN_SIZE / S, G = (Ft) => Math.round(Ft * 1e4) / 1e4, it = z(this, c, Ne).call(this, this.rotation), ht = (Ft, Nt) => [it[0] * Ft + it[2] * Nt, it[1] * Ft + it[3] * Nt], dt = z(this, c, Ne).call(this, 360 - this.rotation), pt = (Ft, Nt) => [dt[0] * Ft + dt[2] * Nt, dt[1] * Ft + dt[3] * Nt];
2684
+ let At, vt, J = !1, Z = !1;
2685
2685
  switch (C) {
2686
2686
  case "topLeft":
2687
- K = !0, At = (Ft, Nt) => [0, 0], vt = (Ft, Nt) => [Ft, Nt];
2687
+ J = !0, At = (Ft, Nt) => [0, 0], vt = (Ft, Nt) => [Ft, Nt];
2688
2688
  break;
2689
2689
  case "topMiddle":
2690
2690
  At = (Ft, Nt) => [Ft / 2, 0], vt = (Ft, Nt) => [Ft / 2, Nt];
2691
2691
  break;
2692
2692
  case "topRight":
2693
- K = !0, At = (Ft, Nt) => [Ft, 0], vt = (Ft, Nt) => [0, Nt];
2693
+ J = !0, At = (Ft, Nt) => [Ft, 0], vt = (Ft, Nt) => [0, Nt];
2694
2694
  break;
2695
2695
  case "middleRight":
2696
2696
  Z = !0, At = (Ft, Nt) => [Ft, Nt / 2], vt = (Ft, Nt) => [0, Nt / 2];
2697
2697
  break;
2698
2698
  case "bottomRight":
2699
- K = !0, At = (Ft, Nt) => [Ft, Nt], vt = (Ft, Nt) => [0, 0];
2699
+ J = !0, At = (Ft, Nt) => [Ft, Nt], vt = (Ft, Nt) => [0, 0];
2700
2700
  break;
2701
2701
  case "bottomMiddle":
2702
2702
  At = (Ft, Nt) => [Ft / 2, Nt], vt = (Ft, Nt) => [Ft / 2, 0];
2703
2703
  break;
2704
2704
  case "bottomLeft":
2705
- K = !0, At = (Ft, Nt) => [0, Nt], vt = (Ft, Nt) => [Ft, 0];
2705
+ J = !0, At = (Ft, Nt) => [0, Nt], vt = (Ft, Nt) => [Ft, 0];
2706
2706
  break;
2707
2707
  case "middleLeft":
2708
2708
  Z = !0, At = (Ft, Nt) => [0, Nt / 2], vt = (Ft, Nt) => [Ft, Nt / 2];
@@ -2710,23 +2710,23 @@ function requirePdf() {
2710
2710
  }
2711
2711
  const p = At(u, P), M = vt(u, P);
2712
2712
  let X = ht(...M);
2713
- const J = G(e + X[0]), ut = G(i + X[1]);
2714
- let St = 1, yt = 1, [$, Tt] = this.screenToPageTranslation(U.movementX, U.movementY);
2715
- if ([$, Tt] = pt($ / Y, Tt / S), K) {
2713
+ const $ = G(e + X[0]), ut = G(i + X[1]);
2714
+ let St = 1, yt = 1, [V, Tt] = this.screenToPageTranslation(U.movementX, U.movementY);
2715
+ if ([V, Tt] = pt(V / K, Tt / S), J) {
2716
2716
  const Ft = Math.hypot(u, P);
2717
- St = yt = Math.max(Math.min(Math.hypot(M[0] - p[0] - $, M[1] - p[1] - Tt) / Ft, 1 / u, 1 / P), x / u, k / P);
2718
- } else Z ? St = Math.max(x, Math.min(1, Math.abs(M[0] - p[0] - $))) / u : yt = Math.max(k, Math.min(1, Math.abs(M[1] - p[1] - Tt))) / P;
2717
+ St = yt = Math.max(Math.min(Math.hypot(M[0] - p[0] - V, M[1] - p[1] - Tt) / Ft, 1 / u, 1 / P), x / u, k / P);
2718
+ } else Z ? St = Math.max(x, Math.min(1, Math.abs(M[0] - p[0] - V))) / u : yt = Math.max(k, Math.min(1, Math.abs(M[1] - p[1] - Tt))) / P;
2719
2719
  const wt = G(u * St), jt = G(P * yt);
2720
2720
  X = ht(...vt(wt, jt));
2721
- const Bt = J - X[0], Xt = ut - X[1];
2722
- this.width = wt, this.height = jt, this.x = Bt, this.y = Xt, this.setDims(Y * wt, S * jt), this.fixAndSetPosition();
2721
+ const Bt = $ - X[0], Xt = ut - X[1];
2722
+ this.width = wt, this.height = jt, this.x = Bt, this.y = Xt, this.setDims(K * wt, S * jt), this.fixAndSetPosition();
2723
2723
  }, Be = async function() {
2724
- var Y;
2724
+ var K;
2725
2725
  const C = t(this, g);
2726
2726
  if (!C)
2727
2727
  return;
2728
2728
  if (!t(this, B) && !t(this, R)) {
2729
- C.classList.remove("done"), (Y = t(this, N)) == null || Y.remove();
2729
+ C.classList.remove("done"), (K = t(this, N)) == null || K.remove();
2730
2730
  return;
2731
2731
  }
2732
2732
  j._l10nPromise.get("editor_alt_text_edit_button_label").then((S) => {
@@ -2762,16 +2762,16 @@ function requirePdf() {
2762
2762
  return;
2763
2763
  const U = this._uiManager.isSelected(this);
2764
2764
  this._uiManager.setUpDragSession();
2765
- let Y, S;
2766
- U && (Y = {
2765
+ let K, S;
2766
+ U && (K = {
2767
2767
  passive: !0,
2768
2768
  capture: !0
2769
2769
  }, S = (i) => {
2770
2770
  const [u, P] = this.screenToPageTranslation(i.movementX, i.movementY);
2771
2771
  this._uiManager.dragSelectedEditors(u, P);
2772
- }, window.addEventListener("pointermove", S, Y));
2772
+ }, window.addEventListener("pointermove", S, K));
2773
2773
  const e = () => {
2774
- if (window.removeEventListener("pointerup", e), window.removeEventListener("blur", e), U && window.removeEventListener("pointermove", S, Y), et(this, d, !1), !this._uiManager.endDragSession()) {
2774
+ if (window.removeEventListener("pointerup", e), window.removeEventListener("blur", e), U && window.removeEventListener("pointermove", S, K), et(this, d, !1), !this._uiManager.endDragSession()) {
2775
2775
  const {
2776
2776
  isMac: i
2777
2777
  } = T.FeatureTest.platform;
@@ -2779,10 +2779,10 @@ function requirePdf() {
2779
2779
  }
2780
2780
  };
2781
2781
  window.addEventListener("pointerup", e), window.addEventListener("blur", e);
2782
- }, Q(j, o), Kt(j, "_borderLineWidth", -1), Kt(j, "_colorManager", new l.ColorManager()), Kt(j, "_zIndex", 1), Kt(j, "SMALL_EDITOR_SIZE", 0);
2783
- let V = j;
2784
- h.AnnotationEditor = V;
2785
- class bt extends V {
2782
+ }, Q(j, o), Jt(j, "_borderLineWidth", -1), Jt(j, "_colorManager", new l.ColorManager()), Jt(j, "_zIndex", 1), Jt(j, "SMALL_EDITOR_SIZE", 0);
2783
+ let q = j;
2784
+ h.AnnotationEditor = q;
2785
+ class bt extends q {
2786
2786
  constructor(C) {
2787
2787
  super(C), this.annotationElementId = C.annotationElementId, this.deleted = !0;
2788
2788
  }
@@ -2798,16 +2798,16 @@ function requirePdf() {
2798
2798
  /* 5 */
2799
2799
  /***/
2800
2800
  ((gt, h, ot) => {
2801
- var v, b, E, f, d, Ue, A, r, c, s, a, yi, n, _, F, nt, W, q, j, rt, C, U, Y, S, e, i, u, P, x, k, G, it, ht, dt, pt, At, vt, K, Z, p, M, X, J, ut, St, yt, $, vi, je, He, ye, We, Ge, Zt, de, Si, Ei, ze, ue, Xe;
2801
+ var v, b, E, f, d, Ue, A, r, c, s, a, yi, n, _, F, nt, W, Y, j, rt, C, U, K, S, e, i, u, P, x, k, G, it, ht, dt, pt, At, vt, J, Z, p, M, X, $, ut, St, yt, V, vi, je, He, ye, We, Ge, Zt, de, Si, Ei, ze, ue, Xe;
2802
2802
  Object.defineProperty(h, "__esModule", {
2803
2803
  value: !0
2804
- }), h.KeyboardManager = h.CommandManager = h.ColorManager = h.AnnotationEditorUIManager = void 0, h.bindEvents = ct, h.opacityToHex = V;
2804
+ }), h.KeyboardManager = h.CommandManager = h.ColorManager = h.AnnotationEditorUIManager = void 0, h.bindEvents = ct, h.opacityToHex = q;
2805
2805
  var l = ot(1), T = ot(6);
2806
2806
  function ct(Gt, D, ft) {
2807
2807
  for (const Ct of ft)
2808
2808
  D.addEventListener(Ct, Gt[Ct].bind(Gt));
2809
2809
  }
2810
- function V(Gt) {
2810
+ function q(Gt) {
2811
2811
  return Math.round(Math.min(255, Math.max(1, 255 * Gt))).toString(16).padStart(2, "0");
2812
2812
  }
2813
2813
  class bt {
@@ -3015,23 +3015,23 @@ function requirePdf() {
3015
3015
  return ft ? l.Util.makeHexColor(...ft) : D;
3016
3016
  }
3017
3017
  };
3018
- Kt(L, "_colorsMapping", /* @__PURE__ */ new Map([["CanvasText", [0, 0, 0]], ["Canvas", [255, 255, 255]]]));
3018
+ Jt(L, "_colorsMapping", /* @__PURE__ */ new Map([["CanvasText", [0, 0, 0]], ["Canvas", [255, 255, 255]]]));
3019
3019
  let N = L;
3020
3020
  h.ColorManager = N;
3021
3021
  const zt = class zt {
3022
3022
  constructor(D, ft, Ct, Dt, Ot, xt) {
3023
- Q(this, $);
3023
+ Q(this, V);
3024
3024
  Q(this, n, null);
3025
3025
  Q(this, _, /* @__PURE__ */ new Map());
3026
3026
  Q(this, F, /* @__PURE__ */ new Map());
3027
3027
  Q(this, nt, null);
3028
3028
  Q(this, W, null);
3029
- Q(this, q, new R());
3029
+ Q(this, Y, new R());
3030
3030
  Q(this, j, 0);
3031
3031
  Q(this, rt, /* @__PURE__ */ new Set());
3032
3032
  Q(this, C, null);
3033
3033
  Q(this, U, null);
3034
- Q(this, Y, /* @__PURE__ */ new Set());
3034
+ Q(this, K, /* @__PURE__ */ new Set());
3035
3035
  Q(this, S, null);
3036
3036
  Q(this, e, new bt());
3037
3037
  Q(this, i, !1);
@@ -3046,7 +3046,7 @@ function requirePdf() {
3046
3046
  Q(this, pt, this.cut.bind(this));
3047
3047
  Q(this, At, this.paste.bind(this));
3048
3048
  Q(this, vt, this.keydown.bind(this));
3049
- Q(this, K, this.onEditingAction.bind(this));
3049
+ Q(this, J, this.onEditingAction.bind(this));
3050
3050
  Q(this, Z, this.onPageChanging.bind(this));
3051
3051
  Q(this, p, this.onScaleChanging.bind(this));
3052
3052
  Q(this, M, this.onRotationChanging.bind(this));
@@ -3057,11 +3057,11 @@ function requirePdf() {
3057
3057
  hasSomethingToRedo: !1,
3058
3058
  hasSelectedEditor: !1
3059
3059
  });
3060
- Q(this, J, [0, 0]);
3060
+ Q(this, $, [0, 0]);
3061
3061
  Q(this, ut, null);
3062
3062
  Q(this, St, null);
3063
3063
  Q(this, yt, null);
3064
- et(this, St, D), et(this, yt, ft), et(this, nt, Ct), this._eventBus = Dt, this._eventBus._on("editingaction", t(this, K)), this._eventBus._on("pagechanging", t(this, Z)), this._eventBus._on("scalechanging", t(this, p)), this._eventBus._on("rotationchanging", t(this, M)), et(this, W, Ot.annotationStorage), et(this, S, Ot.filterFactory), et(this, G, xt), this.viewParameters = {
3064
+ et(this, St, D), et(this, yt, ft), et(this, nt, Ct), this._eventBus = Dt, this._eventBus._on("editingaction", t(this, J)), this._eventBus._on("pagechanging", t(this, Z)), this._eventBus._on("scalechanging", t(this, p)), this._eventBus._on("rotationchanging", t(this, M)), et(this, W, Ot.annotationStorage), et(this, S, Ot.filterFactory), et(this, G, xt), this.viewParameters = {
3065
3065
  realScale: T.PixelsPerInch.PDF_TO_CSS_UNITS,
3066
3066
  rotation: 0
3067
3067
  };
@@ -3100,10 +3100,10 @@ function requirePdf() {
3100
3100
  }]]));
3101
3101
  }
3102
3102
  destroy() {
3103
- z(this, $, ye).call(this), z(this, $, je).call(this), this._eventBus._off("editingaction", t(this, K)), this._eventBus._off("pagechanging", t(this, Z)), this._eventBus._off("scalechanging", t(this, p)), this._eventBus._off("rotationchanging", t(this, M));
3103
+ z(this, V, ye).call(this), z(this, V, je).call(this), this._eventBus._off("editingaction", t(this, J)), this._eventBus._off("pagechanging", t(this, Z)), this._eventBus._off("scalechanging", t(this, p)), this._eventBus._off("rotationchanging", t(this, M));
3104
3104
  for (const D of t(this, F).values())
3105
3105
  D.destroy();
3106
- t(this, F).clear(), t(this, _).clear(), t(this, Y).clear(), et(this, n, null), t(this, k).clear(), t(this, q).destroy(), t(this, nt).destroy();
3106
+ t(this, F).clear(), t(this, _).clear(), t(this, K).clear(), et(this, n, null), t(this, k).clear(), t(this, Y).destroy(), t(this, nt).destroy();
3107
3107
  }
3108
3108
  get hcmFilter() {
3109
3109
  return (0, l.shadow)(this, "hcmFilter", t(this, G) ? t(this, S).addHCMFilter(t(this, G).foreground, t(this, G).background) : "none");
@@ -3140,16 +3140,16 @@ function requirePdf() {
3140
3140
  t(this, yt).classList.toggle("noUserSelect", D);
3141
3141
  }
3142
3142
  addShouldRescale(D) {
3143
- t(this, Y).add(D);
3143
+ t(this, K).add(D);
3144
3144
  }
3145
3145
  removeShouldRescale(D) {
3146
- t(this, Y).delete(D);
3146
+ t(this, K).delete(D);
3147
3147
  }
3148
3148
  onScaleChanging({
3149
3149
  scale: D
3150
3150
  }) {
3151
3151
  this.commitOrRemove(), this.viewParameters.realScale = D * T.PixelsPerInch.PDF_TO_CSS_UNITS;
3152
- for (const ft of t(this, Y))
3152
+ for (const ft of t(this, K))
3153
3153
  ft.onScaleChanging();
3154
3154
  }
3155
3155
  onRotationChanging({
@@ -3183,10 +3183,10 @@ function requirePdf() {
3183
3183
  }), ft.focus();
3184
3184
  }
3185
3185
  addEditListeners() {
3186
- z(this, $, He).call(this), z(this, $, We).call(this);
3186
+ z(this, V, He).call(this), z(this, V, We).call(this);
3187
3187
  }
3188
3188
  removeEditListeners() {
3189
- z(this, $, ye).call(this), z(this, $, Ge).call(this);
3189
+ z(this, V, ye).call(this), z(this, V, Ge).call(this);
3190
3190
  }
3191
3191
  copy(D) {
3192
3192
  var Ct;
@@ -3236,8 +3236,8 @@ function requirePdf() {
3236
3236
  }
3237
3237
  const xt = () => {
3238
3238
  for (const y of Ot)
3239
- z(this, $, ze).call(this, y);
3240
- z(this, $, Xe).call(this, Ot);
3239
+ z(this, V, ze).call(this, y);
3240
+ z(this, V, Xe).call(this, Ot);
3241
3241
  }, w = () => {
3242
3242
  for (const y of Ot)
3243
3243
  y.remove();
@@ -3259,13 +3259,13 @@ function requirePdf() {
3259
3259
  ["undo", "redo", "delete", "selectAll"].includes(D.name) && this[D.name]();
3260
3260
  }
3261
3261
  setEditingState(D) {
3262
- D ? (z(this, $, vi).call(this), z(this, $, He).call(this), z(this, $, We).call(this), z(this, $, Zt).call(this, {
3262
+ D ? (z(this, V, vi).call(this), z(this, V, He).call(this), z(this, V, We).call(this), z(this, V, Zt).call(this, {
3263
3263
  isEditing: t(this, x) !== l.AnnotationEditorType.NONE,
3264
- isEmpty: z(this, $, ue).call(this),
3265
- hasSomethingToUndo: t(this, q).hasSomethingToUndo(),
3266
- hasSomethingToRedo: t(this, q).hasSomethingToRedo(),
3264
+ isEmpty: z(this, V, ue).call(this),
3265
+ hasSomethingToUndo: t(this, Y).hasSomethingToUndo(),
3266
+ hasSomethingToRedo: t(this, Y).hasSomethingToRedo(),
3267
3267
  hasSelectedEditor: !1
3268
- })) : (z(this, $, je).call(this), z(this, $, ye).call(this), z(this, $, Ge).call(this), z(this, $, Zt).call(this, {
3268
+ })) : (z(this, V, je).call(this), z(this, V, ye).call(this), z(this, V, Ge).call(this), z(this, V, Zt).call(this, {
3269
3269
  isEditing: !1
3270
3270
  }), this.disableUserSelect(!1));
3271
3271
  }
@@ -3273,7 +3273,7 @@ function requirePdf() {
3273
3273
  if (!t(this, U)) {
3274
3274
  et(this, U, D);
3275
3275
  for (const ft of t(this, U))
3276
- z(this, $, de).call(this, ft.defaultPropertiesToUpdate);
3276
+ z(this, V, de).call(this, ft.defaultPropertiesToUpdate);
3277
3277
  }
3278
3278
  }
3279
3279
  getId() {
@@ -3297,10 +3297,10 @@ function requirePdf() {
3297
3297
  updateMode(D, ft = null) {
3298
3298
  if (t(this, x) !== D) {
3299
3299
  if (et(this, x, D), D === l.AnnotationEditorType.NONE) {
3300
- this.setEditingState(!1), z(this, $, Ei).call(this);
3300
+ this.setEditingState(!1), z(this, V, Ei).call(this);
3301
3301
  return;
3302
3302
  }
3303
- this.setEditingState(!0), z(this, $, Si).call(this), this.unselectAll();
3303
+ this.setEditingState(!0), z(this, V, Si).call(this), this.unselectAll();
3304
3304
  for (const Ct of t(this, F).values())
3305
3305
  Ct.updateMode(D);
3306
3306
  if (ft) {
@@ -3363,23 +3363,23 @@ function requirePdf() {
3363
3363
  t(this, rt).delete(D.annotationElementId), D.deleted = !1;
3364
3364
  }
3365
3365
  setActiveEditor(D) {
3366
- t(this, n) !== D && (et(this, n, D), D && z(this, $, de).call(this, D.propertiesToUpdate));
3366
+ t(this, n) !== D && (et(this, n, D), D && z(this, V, de).call(this, D.propertiesToUpdate));
3367
3367
  }
3368
3368
  toggleSelected(D) {
3369
3369
  if (t(this, k).has(D)) {
3370
- t(this, k).delete(D), D.unselect(), z(this, $, Zt).call(this, {
3370
+ t(this, k).delete(D), D.unselect(), z(this, V, Zt).call(this, {
3371
3371
  hasSelectedEditor: this.hasSelection
3372
3372
  });
3373
3373
  return;
3374
3374
  }
3375
- t(this, k).add(D), D.select(), z(this, $, de).call(this, D.propertiesToUpdate), z(this, $, Zt).call(this, {
3375
+ t(this, k).add(D), D.select(), z(this, V, de).call(this, D.propertiesToUpdate), z(this, V, Zt).call(this, {
3376
3376
  hasSelectedEditor: !0
3377
3377
  });
3378
3378
  }
3379
3379
  setSelected(D) {
3380
3380
  for (const ft of t(this, k))
3381
3381
  ft !== D && ft.unselect();
3382
- t(this, k).clear(), t(this, k).add(D), D.select(), z(this, $, de).call(this, D.propertiesToUpdate), z(this, $, Zt).call(this, {
3382
+ t(this, k).clear(), t(this, k).add(D), D.select(), z(this, V, de).call(this, D.propertiesToUpdate), z(this, V, Zt).call(this, {
3383
3383
  hasSelectedEditor: !0
3384
3384
  });
3385
3385
  }
@@ -3387,7 +3387,7 @@ function requirePdf() {
3387
3387
  return t(this, k).has(D);
3388
3388
  }
3389
3389
  unselect(D) {
3390
- D.unselect(), t(this, k).delete(D), z(this, $, Zt).call(this, {
3390
+ D.unselect(), t(this, k).delete(D), z(this, V, Zt).call(this, {
3391
3391
  hasSelectedEditor: this.hasSelection
3392
3392
  });
3393
3393
  }
@@ -3395,24 +3395,24 @@ function requirePdf() {
3395
3395
  return t(this, k).size !== 0;
3396
3396
  }
3397
3397
  undo() {
3398
- t(this, q).undo(), z(this, $, Zt).call(this, {
3399
- hasSomethingToUndo: t(this, q).hasSomethingToUndo(),
3398
+ t(this, Y).undo(), z(this, V, Zt).call(this, {
3399
+ hasSomethingToUndo: t(this, Y).hasSomethingToUndo(),
3400
3400
  hasSomethingToRedo: !0,
3401
- isEmpty: z(this, $, ue).call(this)
3401
+ isEmpty: z(this, V, ue).call(this)
3402
3402
  });
3403
3403
  }
3404
3404
  redo() {
3405
- t(this, q).redo(), z(this, $, Zt).call(this, {
3405
+ t(this, Y).redo(), z(this, V, Zt).call(this, {
3406
3406
  hasSomethingToUndo: !0,
3407
- hasSomethingToRedo: t(this, q).hasSomethingToRedo(),
3408
- isEmpty: z(this, $, ue).call(this)
3407
+ hasSomethingToRedo: t(this, Y).hasSomethingToRedo(),
3408
+ isEmpty: z(this, V, ue).call(this)
3409
3409
  });
3410
3410
  }
3411
3411
  addCommands(D) {
3412
- t(this, q).add(D), z(this, $, Zt).call(this, {
3412
+ t(this, Y).add(D), z(this, V, Zt).call(this, {
3413
3413
  hasSomethingToUndo: !0,
3414
3414
  hasSomethingToRedo: !1,
3415
- isEmpty: z(this, $, ue).call(this)
3415
+ isEmpty: z(this, V, ue).call(this)
3416
3416
  });
3417
3417
  }
3418
3418
  delete() {
@@ -3423,7 +3423,7 @@ function requirePdf() {
3423
3423
  Dt.remove();
3424
3424
  }, Ct = () => {
3425
3425
  for (const Dt of D)
3426
- z(this, $, ze).call(this, Dt);
3426
+ z(this, V, ze).call(this, Dt);
3427
3427
  };
3428
3428
  this.addCommands({
3429
3429
  cmd: ft,
@@ -3441,7 +3441,7 @@ function requirePdf() {
3441
3441
  selectAll() {
3442
3442
  for (const D of t(this, k))
3443
3443
  D.commit();
3444
- z(this, $, Xe).call(this, t(this, _).values());
3444
+ z(this, V, Xe).call(this, t(this, _).values());
3445
3445
  }
3446
3446
  unselectAll() {
3447
3447
  if (t(this, n)) {
@@ -3451,7 +3451,7 @@ function requirePdf() {
3451
3451
  if (this.hasSelection) {
3452
3452
  for (const D of t(this, k))
3453
3453
  D.unselect();
3454
- t(this, k).clear(), z(this, $, Zt).call(this, {
3454
+ t(this, k).clear(), z(this, V, Zt).call(this, {
3455
3455
  hasSelectedEditor: !1
3456
3456
  });
3457
3457
  }
@@ -3459,10 +3459,10 @@ function requirePdf() {
3459
3459
  translateSelectedEditors(D, ft, Ct = !1) {
3460
3460
  if (Ct || this.commitOrRemove(), !this.hasSelection)
3461
3461
  return;
3462
- t(this, J)[0] += D, t(this, J)[1] += ft;
3463
- const [Dt, Ot] = t(this, J), xt = [...t(this, k)], w = 1e3;
3462
+ t(this, $)[0] += D, t(this, $)[1] += ft;
3463
+ const [Dt, Ot] = t(this, $), xt = [...t(this, k)], w = 1e3;
3464
3464
  t(this, ut) && clearTimeout(t(this, ut)), et(this, ut, setTimeout(() => {
3465
- et(this, ut, null), t(this, J)[0] = t(this, J)[1] = 0, this.addCommands({
3465
+ et(this, ut, null), t(this, $)[0] = t(this, $)[1] = 0, this.addCommands({
3466
3466
  cmd: () => {
3467
3467
  for (const y of xt)
3468
3468
  t(this, _).has(y.id) && y.translateInPage(Dt, Ot);
@@ -3557,7 +3557,7 @@ function requirePdf() {
3557
3557
  return (0, l.shadow)(this, "imageManager", new B());
3558
3558
  }
3559
3559
  };
3560
- n = new WeakMap(), _ = new WeakMap(), F = new WeakMap(), nt = new WeakMap(), W = new WeakMap(), q = new WeakMap(), j = new WeakMap(), rt = new WeakMap(), C = new WeakMap(), U = new WeakMap(), Y = new WeakMap(), S = new WeakMap(), e = new WeakMap(), i = new WeakMap(), u = new WeakMap(), P = new WeakMap(), x = new WeakMap(), k = new WeakMap(), G = new WeakMap(), it = new WeakMap(), ht = new WeakMap(), dt = new WeakMap(), pt = new WeakMap(), At = new WeakMap(), vt = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), p = new WeakMap(), M = new WeakMap(), X = new WeakMap(), J = new WeakMap(), ut = new WeakMap(), St = new WeakMap(), yt = new WeakMap(), $ = new WeakSet(), vi = function() {
3560
+ n = new WeakMap(), _ = new WeakMap(), F = new WeakMap(), nt = new WeakMap(), W = new WeakMap(), Y = new WeakMap(), j = new WeakMap(), rt = new WeakMap(), C = new WeakMap(), U = new WeakMap(), K = new WeakMap(), S = new WeakMap(), e = new WeakMap(), i = new WeakMap(), u = new WeakMap(), P = new WeakMap(), x = new WeakMap(), k = new WeakMap(), G = new WeakMap(), it = new WeakMap(), ht = new WeakMap(), dt = new WeakMap(), pt = new WeakMap(), At = new WeakMap(), vt = new WeakMap(), J = new WeakMap(), Z = new WeakMap(), p = new WeakMap(), M = new WeakMap(), X = new WeakMap(), $ = new WeakMap(), ut = new WeakMap(), St = new WeakMap(), yt = new WeakMap(), V = new WeakSet(), vi = function() {
3561
3561
  window.addEventListener("focus", t(this, ht)), window.addEventListener("blur", t(this, it));
3562
3562
  }, je = function() {
3563
3563
  window.removeEventListener("focus", t(this, ht)), window.removeEventListener("blur", t(this, it));
@@ -3609,26 +3609,26 @@ function requirePdf() {
3609
3609
  t(this, k).clear();
3610
3610
  for (const ft of D)
3611
3611
  ft.isEmpty() || (t(this, k).add(ft), ft.select());
3612
- z(this, $, Zt).call(this, {
3612
+ z(this, V, Zt).call(this, {
3613
3613
  hasSelectedEditor: !0
3614
3614
  });
3615
- }, Kt(zt, "TRANSLATE_SMALL", 1), Kt(zt, "TRANSLATE_BIG", 10);
3615
+ }, Jt(zt, "TRANSLATE_SMALL", 1), Jt(zt, "TRANSLATE_BIG", 10);
3616
3616
  let O = zt;
3617
3617
  h.AnnotationEditorUIManager = O;
3618
3618
  }),
3619
3619
  /* 6 */
3620
3620
  /***/
3621
3621
  ((gt, h, ot) => {
3622
- var j, rt, C, U, Y, S, e, i, u, P, x, k, ae, oe, $e, ve, Se, fe, pe;
3622
+ var j, rt, C, U, K, S, e, i, u, P, x, k, ae, oe, Ve, ve, Se, fe, pe;
3623
3623
  Object.defineProperty(h, "__esModule", {
3624
3624
  value: !0
3625
3625
  }), h.StatTimer = h.RenderingCancelledException = h.PixelsPerInch = h.PageViewport = h.PDFDateString = h.DOMStandardFontDataFactory = h.DOMSVGFactory = h.DOMFilterFactory = h.DOMCanvasFactory = h.DOMCMapReaderFactory = void 0, h.deprecated = s, h.getColorValues = _, h.getCurrentTransform = F, h.getCurrentTransformInverse = nt, h.getFilenameFromUrl = d, h.getPdfFilenameFromUrl = m, h.getRGB = n, h.getXfaPageViewport = L, h.isDataScheme = E, h.isPdfFile = f, h.isValidFetchUrl = A, h.loadScript = c, h.noContextMenu = r, h.setLayerDimensions = W;
3626
3626
  var l = ot(7), T = ot(1);
3627
- const ct = "http://www.w3.org/2000/svg", q = class q {
3627
+ const ct = "http://www.w3.org/2000/svg", Y = class Y {
3628
3628
  };
3629
- Kt(q, "CSS", 96), Kt(q, "PDF", 72), Kt(q, "PDF_TO_CSS_UNITS", q.CSS / q.PDF);
3630
- let V = q;
3631
- h.PixelsPerInch = V;
3629
+ Jt(Y, "CSS", 96), Jt(Y, "PDF", 72), Jt(Y, "PDF_TO_CSS_UNITS", Y.CSS / Y.PDF);
3630
+ let q = Y;
3631
+ h.PixelsPerInch = q;
3632
3632
  class bt extends l.BaseFilterFactory {
3633
3633
  constructor({
3634
3634
  docId: p,
@@ -3640,7 +3640,7 @@ function requirePdf() {
3640
3640
  Q(this, rt);
3641
3641
  Q(this, C);
3642
3642
  Q(this, U);
3643
- Q(this, Y);
3643
+ Q(this, K);
3644
3644
  Q(this, S);
3645
3645
  Q(this, e);
3646
3646
  Q(this, i);
@@ -3655,34 +3655,34 @@ function requirePdf() {
3655
3655
  let M = t(this, k, ae).get(p);
3656
3656
  if (M)
3657
3657
  return M;
3658
- let X, J, ut, St;
3658
+ let X, $, ut, St;
3659
3659
  if (p.length === 1) {
3660
3660
  const wt = p[0], jt = new Array(256);
3661
3661
  for (let Bt = 0; Bt < 256; Bt++)
3662
3662
  jt[Bt] = wt[Bt] / 255;
3663
- St = X = J = ut = jt.join(",");
3663
+ St = X = $ = ut = jt.join(",");
3664
3664
  } else {
3665
3665
  const [wt, jt, Bt] = p, Xt = new Array(256), Ft = new Array(256), Nt = new Array(256);
3666
- for (let $t = 0; $t < 256; $t++)
3667
- Xt[$t] = wt[$t] / 255, Ft[$t] = jt[$t] / 255, Nt[$t] = Bt[$t] / 255;
3668
- X = Xt.join(","), J = Ft.join(","), ut = Nt.join(","), St = `${X}${J}${ut}`;
3666
+ for (let Vt = 0; Vt < 256; Vt++)
3667
+ Xt[Vt] = wt[Vt] / 255, Ft[Vt] = jt[Vt] / 255, Nt[Vt] = Bt[Vt] / 255;
3668
+ X = Xt.join(","), $ = Ft.join(","), ut = Nt.join(","), St = `${X}${$}${ut}`;
3669
3669
  }
3670
3670
  if (M = t(this, k, ae).get(St), M)
3671
3671
  return t(this, k, ae).set(p, M), M;
3672
- const yt = `g_${t(this, C)}_transfer_map_${he(this, x)._++}`, $ = `url(#${yt})`;
3673
- t(this, k, ae).set(p, $), t(this, k, ae).set(St, $);
3672
+ const yt = `g_${t(this, C)}_transfer_map_${he(this, x)._++}`, V = `url(#${yt})`;
3673
+ t(this, k, ae).set(p, V), t(this, k, ae).set(St, V);
3674
3674
  const Tt = z(this, k, ve).call(this, yt);
3675
- return z(this, k, fe).call(this, X, J, ut, Tt), $;
3675
+ return z(this, k, fe).call(this, X, $, ut, Tt), V;
3676
3676
  }
3677
3677
  addHCMFilter(p, M) {
3678
3678
  var jt;
3679
3679
  const X = `${p}-${M}`;
3680
3680
  if (t(this, S) === X)
3681
3681
  return t(this, e);
3682
- if (et(this, S, X), et(this, e, "none"), (jt = t(this, Y)) == null || jt.remove(), !p || !M)
3682
+ if (et(this, S, X), et(this, e, "none"), (jt = t(this, K)) == null || jt.remove(), !p || !M)
3683
3683
  return t(this, e);
3684
- const J = z(this, k, pe).call(this, p);
3685
- p = T.Util.makeHexColor(...J);
3684
+ const $ = z(this, k, pe).call(this, p);
3685
+ p = T.Util.makeHexColor(...$);
3686
3686
  const ut = z(this, k, pe).call(this, M);
3687
3687
  if (M = T.Util.makeHexColor(...ut), t(this, k, oe).style.color = "", p === "#000000" && M === "#ffffff" || p === M)
3688
3688
  return t(this, e);
@@ -3691,31 +3691,31 @@ function requirePdf() {
3691
3691
  const Xt = Bt / 255;
3692
3692
  St[Bt] = Xt <= 0.03928 ? Xt / 12.92 : ((Xt + 0.055) / 1.055) ** 2.4;
3693
3693
  }
3694
- const yt = St.join(","), $ = `g_${t(this, C)}_hcm_filter`, Tt = et(this, i, z(this, k, ve).call(this, $));
3695
- z(this, k, fe).call(this, yt, yt, yt, Tt), z(this, k, $e).call(this, Tt);
3694
+ const yt = St.join(","), V = `g_${t(this, C)}_hcm_filter`, Tt = et(this, i, z(this, k, ve).call(this, V));
3695
+ z(this, k, fe).call(this, yt, yt, yt, Tt), z(this, k, Ve).call(this, Tt);
3696
3696
  const wt = (Bt, Xt) => {
3697
- const Ft = J[Bt] / 255, Nt = ut[Bt] / 255, $t = new Array(Xt + 1);
3698
- for (let qt = 0; qt <= Xt; qt++)
3699
- $t[qt] = Ft + qt / Xt * (Nt - Ft);
3700
- return $t.join(",");
3697
+ const Ft = $[Bt] / 255, Nt = ut[Bt] / 255, Vt = new Array(Xt + 1);
3698
+ for (let Yt = 0; Yt <= Xt; Yt++)
3699
+ Vt[Yt] = Ft + Yt / Xt * (Nt - Ft);
3700
+ return Vt.join(",");
3701
3701
  };
3702
- return z(this, k, fe).call(this, wt(0, 5), wt(1, 5), wt(2, 5), Tt), et(this, e, `url(#${$})`), t(this, e);
3702
+ return z(this, k, fe).call(this, wt(0, 5), wt(1, 5), wt(2, 5), Tt), et(this, e, `url(#${V})`), t(this, e);
3703
3703
  }
3704
- addHighlightHCMFilter(p, M, X, J) {
3704
+ addHighlightHCMFilter(p, M, X, $) {
3705
3705
  var Nt;
3706
- const ut = `${p}-${M}-${X}-${J}`;
3706
+ const ut = `${p}-${M}-${X}-${$}`;
3707
3707
  if (t(this, u) === ut)
3708
3708
  return t(this, P);
3709
3709
  if (et(this, u, ut), et(this, P, "none"), (Nt = t(this, i)) == null || Nt.remove(), !p || !M)
3710
3710
  return t(this, P);
3711
3711
  const [St, yt] = [p, M].map(z(this, k, pe).bind(this));
3712
- let $ = Math.round(0.2126 * St[0] + 0.7152 * St[1] + 0.0722 * St[2]), Tt = Math.round(0.2126 * yt[0] + 0.7152 * yt[1] + 0.0722 * yt[2]), [wt, jt] = [X, J].map(z(this, k, pe).bind(this));
3713
- Tt < $ && ([$, Tt, wt, jt] = [Tt, $, jt, wt]), t(this, k, oe).style.color = "";
3714
- const Bt = ($t, qt, _t) => {
3715
- const tt = new Array(256), st = (Tt - $) / _t, kt = $t / 255, zt = (qt - $t) / (255 * _t);
3712
+ let V = Math.round(0.2126 * St[0] + 0.7152 * St[1] + 0.0722 * St[2]), Tt = Math.round(0.2126 * yt[0] + 0.7152 * yt[1] + 0.0722 * yt[2]), [wt, jt] = [X, $].map(z(this, k, pe).bind(this));
3713
+ Tt < V && ([V, Tt, wt, jt] = [Tt, V, jt, wt]), t(this, k, oe).style.color = "";
3714
+ const Bt = (Vt, Yt, _t) => {
3715
+ const tt = new Array(256), st = (Tt - V) / _t, kt = Vt / 255, zt = (Yt - Vt) / (255 * _t);
3716
3716
  let Gt = 0;
3717
3717
  for (let D = 0; D <= _t; D++) {
3718
- const ft = Math.round($ + D * st), Ct = kt + D * zt;
3718
+ const ft = Math.round(V + D * st), Ct = kt + D * zt;
3719
3719
  for (let Dt = Gt; Dt <= ft; Dt++)
3720
3720
  tt[Dt] = Ct;
3721
3721
  Gt = ft + 1;
@@ -3724,13 +3724,13 @@ function requirePdf() {
3724
3724
  tt[D] = tt[Gt - 1];
3725
3725
  return tt.join(",");
3726
3726
  }, Xt = `g_${t(this, C)}_hcm_highlight_filter`, Ft = et(this, i, z(this, k, ve).call(this, Xt));
3727
- return z(this, k, $e).call(this, Ft), z(this, k, fe).call(this, Bt(wt[0], jt[0], 5), Bt(wt[1], jt[1], 5), Bt(wt[2], jt[2], 5), Ft), et(this, P, `url(#${Xt})`), t(this, P);
3727
+ return z(this, k, Ve).call(this, Ft), z(this, k, fe).call(this, Bt(wt[0], jt[0], 5), Bt(wt[1], jt[1], 5), Bt(wt[2], jt[2], 5), Ft), et(this, P, `url(#${Xt})`), t(this, P);
3728
3728
  }
3729
3729
  destroy(p = !1) {
3730
3730
  p && (t(this, e) || t(this, P)) || (t(this, rt) && (t(this, rt).parentNode.parentNode.remove(), et(this, rt, null)), t(this, j) && (t(this, j).clear(), et(this, j, null)), et(this, x, 0));
3731
3731
  }
3732
3732
  }
3733
- j = new WeakMap(), rt = new WeakMap(), C = new WeakMap(), U = new WeakMap(), Y = new WeakMap(), S = new WeakMap(), e = new WeakMap(), i = new WeakMap(), u = new WeakMap(), P = new WeakMap(), x = new WeakMap(), k = new WeakSet(), ae = function() {
3733
+ j = new WeakMap(), rt = new WeakMap(), C = new WeakMap(), U = new WeakMap(), K = new WeakMap(), S = new WeakMap(), e = new WeakMap(), i = new WeakMap(), u = new WeakMap(), P = new WeakMap(), x = new WeakMap(), k = new WeakSet(), ae = function() {
3734
3734
  return t(this, j) || et(this, j, /* @__PURE__ */ new Map());
3735
3735
  }, oe = function() {
3736
3736
  if (!t(this, rt)) {
@@ -3742,18 +3742,18 @@ function requirePdf() {
3742
3742
  X.setAttribute("width", 0), X.setAttribute("height", 0), et(this, rt, t(this, U).createElementNS(ct, "defs")), p.append(X), X.append(t(this, rt)), t(this, U).body.append(p);
3743
3743
  }
3744
3744
  return t(this, rt);
3745
- }, $e = function(p) {
3745
+ }, Ve = function(p) {
3746
3746
  const M = t(this, U).createElementNS(ct, "feColorMatrix");
3747
3747
  M.setAttribute("type", "matrix"), M.setAttribute("values", "0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"), p.append(M);
3748
3748
  }, ve = function(p) {
3749
3749
  const M = t(this, U).createElementNS(ct, "filter");
3750
3750
  return M.setAttribute("color-interpolation-filters", "sRGB"), M.setAttribute("id", p), t(this, k, oe).append(M), M;
3751
3751
  }, Se = function(p, M, X) {
3752
- const J = t(this, U).createElementNS(ct, M);
3753
- J.setAttribute("type", "discrete"), J.setAttribute("tableValues", X), p.append(J);
3754
- }, fe = function(p, M, X, J) {
3752
+ const $ = t(this, U).createElementNS(ct, M);
3753
+ $.setAttribute("type", "discrete"), $.setAttribute("tableValues", X), p.append($);
3754
+ }, fe = function(p, M, X, $) {
3755
3755
  const ut = t(this, U).createElementNS(ct, "feComponentTransfer");
3756
- J.append(ut), z(this, k, Se).call(this, ut, "feFuncR", p), z(this, k, Se).call(this, ut, "feFuncG", M), z(this, k, Se).call(this, ut, "feFuncB", X);
3756
+ $.append(ut), z(this, k, Se).call(this, ut, "feFuncR", p), z(this, k, Se).call(this, ut, "feFuncG", M), z(this, k, Se).call(this, ut, "feFuncB", X);
3757
3757
  }, pe = function(p) {
3758
3758
  return t(this, k, oe).style.color = p, n(getComputedStyle(t(this, k, oe)).getPropertyValue("color"));
3759
3759
  }, h.DOMFilterFactory = bt;
@@ -3769,21 +3769,21 @@ function requirePdf() {
3769
3769
  }
3770
3770
  }
3771
3771
  h.DOMCanvasFactory = B;
3772
- async function R(K, Z = !1) {
3773
- if (A(K, document.baseURI)) {
3774
- const p = await fetch(K);
3772
+ async function R(J, Z = !1) {
3773
+ if (A(J, document.baseURI)) {
3774
+ const p = await fetch(J);
3775
3775
  if (!p.ok)
3776
3776
  throw new Error(p.statusText);
3777
3777
  return Z ? new Uint8Array(await p.arrayBuffer()) : (0, T.stringToBytes)(await p.text());
3778
3778
  }
3779
3779
  return new Promise((p, M) => {
3780
3780
  const X = new XMLHttpRequest();
3781
- X.open("GET", K, !0), Z && (X.responseType = "arraybuffer"), X.onreadystatechange = () => {
3781
+ X.open("GET", J, !0), Z && (X.responseType = "arraybuffer"), X.onreadystatechange = () => {
3782
3782
  if (X.readyState === XMLHttpRequest.DONE) {
3783
3783
  if (X.status === 200 || X.status === 0) {
3784
- let J;
3785
- if (Z && X.response ? J = new Uint8Array(X.response) : !Z && X.responseText && (J = (0, T.stringToBytes)(X.responseText)), J) {
3786
- p(J);
3784
+ let $;
3785
+ if (Z && X.response ? $ = new Uint8Array(X.response) : !Z && X.responseText && ($ = (0, T.stringToBytes)(X.responseText)), $) {
3786
+ p($);
3787
3787
  return;
3788
3788
  }
3789
3789
  }
@@ -3819,31 +3819,31 @@ function requirePdf() {
3819
3819
  scale: p,
3820
3820
  rotation: M,
3821
3821
  offsetX: X = 0,
3822
- offsetY: J = 0,
3822
+ offsetY: $ = 0,
3823
3823
  dontFlip: ut = !1
3824
3824
  }) {
3825
- this.viewBox = Z, this.scale = p, this.rotation = M, this.offsetX = X, this.offsetY = J;
3825
+ this.viewBox = Z, this.scale = p, this.rotation = M, this.offsetX = X, this.offsetY = $;
3826
3826
  const St = (Z[2] + Z[0]) / 2, yt = (Z[3] + Z[1]) / 2;
3827
- let $, Tt, wt, jt;
3827
+ let V, Tt, wt, jt;
3828
3828
  switch (M %= 360, M < 0 && (M += 360), M) {
3829
3829
  case 180:
3830
- $ = -1, Tt = 0, wt = 0, jt = 1;
3830
+ V = -1, Tt = 0, wt = 0, jt = 1;
3831
3831
  break;
3832
3832
  case 90:
3833
- $ = 0, Tt = 1, wt = 1, jt = 0;
3833
+ V = 0, Tt = 1, wt = 1, jt = 0;
3834
3834
  break;
3835
3835
  case 270:
3836
- $ = 0, Tt = -1, wt = -1, jt = 0;
3836
+ V = 0, Tt = -1, wt = -1, jt = 0;
3837
3837
  break;
3838
3838
  case 0:
3839
- $ = 1, Tt = 0, wt = 0, jt = -1;
3839
+ V = 1, Tt = 0, wt = 0, jt = -1;
3840
3840
  break;
3841
3841
  default:
3842
3842
  throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.");
3843
3843
  }
3844
3844
  ut && (wt = -wt, jt = -jt);
3845
3845
  let Bt, Xt, Ft, Nt;
3846
- $ === 0 ? (Bt = Math.abs(yt - Z[1]) * p + X, Xt = Math.abs(St - Z[0]) * p + J, Ft = (Z[3] - Z[1]) * p, Nt = (Z[2] - Z[0]) * p) : (Bt = Math.abs(St - Z[0]) * p + X, Xt = Math.abs(yt - Z[1]) * p + J, Ft = (Z[2] - Z[0]) * p, Nt = (Z[3] - Z[1]) * p), this.transform = [$ * p, Tt * p, wt * p, jt * p, Bt - $ * p * St - wt * p * yt, Xt - Tt * p * St - jt * p * yt], this.width = Ft, this.height = Nt;
3846
+ V === 0 ? (Bt = Math.abs(yt - Z[1]) * p + X, Xt = Math.abs(St - Z[0]) * p + $, Ft = (Z[3] - Z[1]) * p, Nt = (Z[2] - Z[0]) * p) : (Bt = Math.abs(St - Z[0]) * p + X, Xt = Math.abs(yt - Z[1]) * p + $, Ft = (Z[2] - Z[0]) * p, Nt = (Z[3] - Z[1]) * p), this.transform = [V * p, Tt * p, wt * p, jt * p, Bt - V * p * St - wt * p * yt, Xt - Tt * p * St - jt * p * yt], this.width = Ft, this.height = Nt;
3847
3847
  }
3848
3848
  get rawDims() {
3849
3849
  const {
@@ -3861,7 +3861,7 @@ function requirePdf() {
3861
3861
  rotation: p = this.rotation,
3862
3862
  offsetX: M = this.offsetX,
3863
3863
  offsetY: X = this.offsetY,
3864
- dontFlip: J = !1
3864
+ dontFlip: $ = !1
3865
3865
  } = {}) {
3866
3866
  return new v({
3867
3867
  viewBox: this.viewBox.slice(),
@@ -3869,7 +3869,7 @@ function requirePdf() {
3869
3869
  rotation: p,
3870
3870
  offsetX: M,
3871
3871
  offsetY: X,
3872
- dontFlip: J
3872
+ dontFlip: $
3873
3873
  });
3874
3874
  }
3875
3875
  convertToViewportPoint(Z, p) {
@@ -3890,37 +3890,37 @@ function requirePdf() {
3890
3890
  }
3891
3891
  }
3892
3892
  h.RenderingCancelledException = b;
3893
- function E(K) {
3894
- const Z = K.length;
3893
+ function E(J) {
3894
+ const Z = J.length;
3895
3895
  let p = 0;
3896
- for (; p < Z && K[p].trim() === ""; )
3896
+ for (; p < Z && J[p].trim() === ""; )
3897
3897
  p++;
3898
- return K.substring(p, p + 5).toLowerCase() === "data:";
3898
+ return J.substring(p, p + 5).toLowerCase() === "data:";
3899
3899
  }
3900
- function f(K) {
3901
- return typeof K == "string" && /\.pdf$/i.test(K);
3900
+ function f(J) {
3901
+ return typeof J == "string" && /\.pdf$/i.test(J);
3902
3902
  }
3903
- function d(K, Z = !1) {
3904
- return Z || ([K] = K.split(/[#?]/, 1)), K.substring(K.lastIndexOf("/") + 1);
3903
+ function d(J, Z = !1) {
3904
+ return Z || ([J] = J.split(/[#?]/, 1)), J.substring(J.lastIndexOf("/") + 1);
3905
3905
  }
3906
- function m(K, Z = "document.pdf") {
3907
- if (typeof K != "string")
3906
+ function m(J, Z = "document.pdf") {
3907
+ if (typeof J != "string")
3908
3908
  return Z;
3909
- if (E(K))
3909
+ if (E(J))
3910
3910
  return (0, T.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'), Z;
3911
- const p = /^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/, M = /[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i, X = p.exec(K);
3912
- let J = M.exec(X[1]) || M.exec(X[2]) || M.exec(X[3]);
3913
- if (J && (J = J[0], J.includes("%")))
3911
+ const p = /^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/, M = /[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i, X = p.exec(J);
3912
+ let $ = M.exec(X[1]) || M.exec(X[2]) || M.exec(X[3]);
3913
+ if ($ && ($ = $[0], $.includes("%")))
3914
3914
  try {
3915
- J = M.exec(decodeURIComponent(J))[0];
3915
+ $ = M.exec(decodeURIComponent($))[0];
3916
3916
  } catch {
3917
3917
  }
3918
- return J || Z;
3918
+ return $ || Z;
3919
3919
  }
3920
3920
  class I {
3921
3921
  constructor() {
3922
- Kt(this, "started", /* @__PURE__ */ Object.create(null));
3923
- Kt(this, "times", []);
3922
+ Jt(this, "started", /* @__PURE__ */ Object.create(null));
3923
+ Jt(this, "times", []);
3924
3924
  }
3925
3925
  time(Z) {
3926
3926
  Z in this.started && (0, T.warn)(`Timer is already running for ${Z}`), this.started[Z] = Date.now();
@@ -3942,39 +3942,39 @@ function requirePdf() {
3942
3942
  for (const {
3943
3943
  name: M,
3944
3944
  start: X,
3945
- end: J
3945
+ end: $
3946
3946
  } of this.times)
3947
- Z.push(`${M.padEnd(p)} ${J - X}ms
3947
+ Z.push(`${M.padEnd(p)} ${$ - X}ms
3948
3948
  `);
3949
3949
  return Z.join("");
3950
3950
  }
3951
3951
  }
3952
3952
  h.StatTimer = I;
3953
- function A(K, Z) {
3953
+ function A(J, Z) {
3954
3954
  try {
3955
3955
  const {
3956
3956
  protocol: p
3957
- } = Z ? new URL(K, Z) : new URL(K);
3957
+ } = Z ? new URL(J, Z) : new URL(J);
3958
3958
  return p === "http:" || p === "https:";
3959
3959
  } catch {
3960
3960
  return !1;
3961
3961
  }
3962
3962
  }
3963
- function r(K) {
3964
- K.preventDefault();
3963
+ function r(J) {
3964
+ J.preventDefault();
3965
3965
  }
3966
- function c(K, Z = !1) {
3966
+ function c(J, Z = !1) {
3967
3967
  return new Promise((p, M) => {
3968
3968
  const X = document.createElement("script");
3969
- X.src = K, X.onload = function(J) {
3970
- Z && X.remove(), p(J);
3969
+ X.src = J, X.onload = function($) {
3970
+ Z && X.remove(), p($);
3971
3971
  }, X.onerror = function() {
3972
3972
  M(new Error(`Cannot load script at: ${X.src}`));
3973
3973
  }, (document.head || document.documentElement).append(X);
3974
3974
  });
3975
3975
  }
3976
- function s(K) {
3977
- console.log("Deprecated API usage: " + K);
3976
+ function s(J) {
3977
+ console.log("Deprecated API usage: " + J);
3978
3978
  }
3979
3979
  let a;
3980
3980
  class o {
@@ -3988,86 +3988,86 @@ function requirePdf() {
3988
3988
  const M = parseInt(p[1], 10);
3989
3989
  let X = parseInt(p[2], 10);
3990
3990
  X = X >= 1 && X <= 12 ? X - 1 : 0;
3991
- let J = parseInt(p[3], 10);
3992
- J = J >= 1 && J <= 31 ? J : 1;
3991
+ let $ = parseInt(p[3], 10);
3992
+ $ = $ >= 1 && $ <= 31 ? $ : 1;
3993
3993
  let ut = parseInt(p[4], 10);
3994
3994
  ut = ut >= 0 && ut <= 23 ? ut : 0;
3995
3995
  let St = parseInt(p[5], 10);
3996
3996
  St = St >= 0 && St <= 59 ? St : 0;
3997
3997
  let yt = parseInt(p[6], 10);
3998
3998
  yt = yt >= 0 && yt <= 59 ? yt : 0;
3999
- const $ = p[7] || "Z";
3999
+ const V = p[7] || "Z";
4000
4000
  let Tt = parseInt(p[8], 10);
4001
4001
  Tt = Tt >= 0 && Tt <= 23 ? Tt : 0;
4002
4002
  let wt = parseInt(p[9], 10) || 0;
4003
- return wt = wt >= 0 && wt <= 59 ? wt : 0, $ === "-" ? (ut += Tt, St += wt) : $ === "+" && (ut -= Tt, St -= wt), new Date(Date.UTC(M, X, J, ut, St, yt));
4003
+ return wt = wt >= 0 && wt <= 59 ? wt : 0, V === "-" ? (ut += Tt, St += wt) : V === "+" && (ut -= Tt, St -= wt), new Date(Date.UTC(M, X, $, ut, St, yt));
4004
4004
  }
4005
4005
  }
4006
4006
  h.PDFDateString = o;
4007
- function L(K, {
4007
+ function L(J, {
4008
4008
  scale: Z = 1,
4009
4009
  rotation: p = 0
4010
4010
  }) {
4011
4011
  const {
4012
4012
  width: M,
4013
4013
  height: X
4014
- } = K.attributes.style, J = [0, 0, parseInt(M), parseInt(X)];
4014
+ } = J.attributes.style, $ = [0, 0, parseInt(M), parseInt(X)];
4015
4015
  return new v({
4016
- viewBox: J,
4016
+ viewBox: $,
4017
4017
  scale: Z,
4018
4018
  rotation: p
4019
4019
  });
4020
4020
  }
4021
- function n(K) {
4022
- if (K.startsWith("#")) {
4023
- const Z = parseInt(K.slice(1), 16);
4021
+ function n(J) {
4022
+ if (J.startsWith("#")) {
4023
+ const Z = parseInt(J.slice(1), 16);
4024
4024
  return [(Z & 16711680) >> 16, (Z & 65280) >> 8, Z & 255];
4025
4025
  }
4026
- return K.startsWith("rgb(") ? K.slice(4, -1).split(",").map((Z) => parseInt(Z)) : K.startsWith("rgba(") ? K.slice(5, -1).split(",").map((Z) => parseInt(Z)).slice(0, 3) : ((0, T.warn)(`Not a valid color format: "${K}"`), [0, 0, 0]);
4026
+ return J.startsWith("rgb(") ? J.slice(4, -1).split(",").map((Z) => parseInt(Z)) : J.startsWith("rgba(") ? J.slice(5, -1).split(",").map((Z) => parseInt(Z)).slice(0, 3) : ((0, T.warn)(`Not a valid color format: "${J}"`), [0, 0, 0]);
4027
4027
  }
4028
- function _(K) {
4028
+ function _(J) {
4029
4029
  const Z = document.createElement("span");
4030
4030
  Z.style.visibility = "hidden", document.body.append(Z);
4031
- for (const p of K.keys()) {
4031
+ for (const p of J.keys()) {
4032
4032
  Z.style.color = p;
4033
4033
  const M = window.getComputedStyle(Z).color;
4034
- K.set(p, n(M));
4034
+ J.set(p, n(M));
4035
4035
  }
4036
4036
  Z.remove();
4037
4037
  }
4038
- function F(K) {
4038
+ function F(J) {
4039
4039
  const {
4040
4040
  a: Z,
4041
4041
  b: p,
4042
4042
  c: M,
4043
4043
  d: X,
4044
- e: J,
4044
+ e: $,
4045
4045
  f: ut
4046
- } = K.getTransform();
4047
- return [Z, p, M, X, J, ut];
4046
+ } = J.getTransform();
4047
+ return [Z, p, M, X, $, ut];
4048
4048
  }
4049
- function nt(K) {
4049
+ function nt(J) {
4050
4050
  const {
4051
4051
  a: Z,
4052
4052
  b: p,
4053
4053
  c: M,
4054
4054
  d: X,
4055
- e: J,
4055
+ e: $,
4056
4056
  f: ut
4057
- } = K.getTransform().invertSelf();
4058
- return [Z, p, M, X, J, ut];
4057
+ } = J.getTransform().invertSelf();
4058
+ return [Z, p, M, X, $, ut];
4059
4059
  }
4060
- function W(K, Z, p = !1, M = !0) {
4060
+ function W(J, Z, p = !1, M = !0) {
4061
4061
  if (Z instanceof v) {
4062
4062
  const {
4063
4063
  pageWidth: X,
4064
- pageHeight: J
4064
+ pageHeight: $
4065
4065
  } = Z.rawDims, {
4066
4066
  style: ut
4067
- } = K, St = T.FeatureTest.isCSSRoundSupported, yt = `var(--scale-factor) * ${X}px`, $ = `var(--scale-factor) * ${J}px`, Tt = St ? `round(${yt}, 1px)` : `calc(${yt})`, wt = St ? `round(${$}, 1px)` : `calc(${$})`;
4067
+ } = J, St = T.FeatureTest.isCSSRoundSupported, yt = `var(--scale-factor) * ${X}px`, V = `var(--scale-factor) * ${$}px`, Tt = St ? `round(${yt}, 1px)` : `calc(${yt})`, wt = St ? `round(${V}, 1px)` : `calc(${V})`;
4068
4068
  !p || Z.rotation % 180 === 0 ? (ut.width = Tt, ut.height = wt) : (ut.width = wt, ut.height = Tt);
4069
4069
  }
4070
- M && K.setAttribute("data-main-rotation", Z.rotation);
4070
+ M && J.setAttribute("data-main-rotation", Z.rotation);
4071
4071
  }
4072
4072
  }),
4073
4073
  /* 7 */
@@ -4124,12 +4124,12 @@ function requirePdf() {
4124
4124
  }
4125
4125
  }
4126
4126
  h.BaseCanvasFactory = ct;
4127
- class V {
4127
+ class q {
4128
4128
  constructor({
4129
4129
  baseUrl: g = null,
4130
4130
  isCompressed: N = !0
4131
4131
  }) {
4132
- this.constructor === V && (0, l.unreachable)("Cannot initialize BaseCMapReaderFactory."), this.baseUrl = g, this.isCompressed = N;
4132
+ this.constructor === q && (0, l.unreachable)("Cannot initialize BaseCMapReaderFactory."), this.baseUrl = g, this.isCompressed = N;
4133
4133
  }
4134
4134
  async fetch({
4135
4135
  name: g
@@ -4147,7 +4147,7 @@ function requirePdf() {
4147
4147
  (0, l.unreachable)("Abstract method `_fetchData` called.");
4148
4148
  }
4149
4149
  }
4150
- h.BaseCMapReaderFactory = V;
4150
+ h.BaseCMapReaderFactory = q;
4151
4151
  class bt {
4152
4152
  constructor({
4153
4153
  baseUrl: g = null
@@ -4199,7 +4199,7 @@ function requirePdf() {
4199
4199
  value: !0
4200
4200
  }), h.MurmurHash3_64 = void 0;
4201
4201
  var l = ot(1);
4202
- const T = 3285377520, ct = 4294901760, V = 65535;
4202
+ const T = 3285377520, ct = 4294901760, q = 65535;
4203
4203
  class bt {
4204
4204
  constructor(R) {
4205
4205
  this.h1 = R ? R & 4294967295 : T, this.h2 = R ? R & 4294967295 : T;
@@ -4218,22 +4218,22 @@ function requirePdf() {
4218
4218
  throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");
4219
4219
  const O = N >> 2, v = N - O * 4, b = new Uint32Array(g.buffer, 0, O);
4220
4220
  let E = 0, f = 0, d = this.h1, m = this.h2;
4221
- const I = 3432918353, A = 461845907, r = I & V, c = A & V;
4221
+ const I = 3432918353, A = 461845907, r = I & q, c = A & q;
4222
4222
  for (let s = 0; s < O; s++)
4223
- s & 1 ? (E = b[s], E = E * I & ct | E * r & V, E = E << 15 | E >>> 17, E = E * A & ct | E * c & V, d ^= E, d = d << 13 | d >>> 19, d = d * 5 + 3864292196) : (f = b[s], f = f * I & ct | f * r & V, f = f << 15 | f >>> 17, f = f * A & ct | f * c & V, m ^= f, m = m << 13 | m >>> 19, m = m * 5 + 3864292196);
4223
+ s & 1 ? (E = b[s], E = E * I & ct | E * r & q, E = E << 15 | E >>> 17, E = E * A & ct | E * c & q, d ^= E, d = d << 13 | d >>> 19, d = d * 5 + 3864292196) : (f = b[s], f = f * I & ct | f * r & q, f = f << 15 | f >>> 17, f = f * A & ct | f * c & q, m ^= f, m = m << 13 | m >>> 19, m = m * 5 + 3864292196);
4224
4224
  switch (E = 0, v) {
4225
4225
  case 3:
4226
4226
  E ^= g[O * 4 + 2] << 16;
4227
4227
  case 2:
4228
4228
  E ^= g[O * 4 + 1] << 8;
4229
4229
  case 1:
4230
- E ^= g[O * 4], E = E * I & ct | E * r & V, E = E << 15 | E >>> 17, E = E * A & ct | E * c & V, O & 1 ? d ^= E : m ^= E;
4230
+ E ^= g[O * 4], E = E * I & ct | E * r & q, E = E << 15 | E >>> 17, E = E * A & ct | E * c & q, O & 1 ? d ^= E : m ^= E;
4231
4231
  }
4232
4232
  this.h1 = d, this.h2 = m;
4233
4233
  }
4234
4234
  hexdigest() {
4235
4235
  let R = this.h1, g = this.h2;
4236
- return R ^= g >>> 1, R = R * 3981806797 & ct | R * 36045 & V, g = g * 4283543511 & ct | ((g << 16 | R >>> 16) * 2950163797 & ct) >>> 16, R ^= g >>> 1, R = R * 444984403 & ct | R * 60499 & V, g = g * 3301882366 & ct | ((g << 16 | R >>> 16) * 3120437893 & ct) >>> 16, R ^= g >>> 1, (R >>> 0).toString(16).padStart(8, "0") + (g >>> 0).toString(16).padStart(8, "0");
4236
+ return R ^= g >>> 1, R = R * 3981806797 & ct | R * 36045 & q, g = g * 4283543511 & ct | ((g << 16 | R >>> 16) * 2950163797 & ct) >>> 16, R ^= g >>> 1, R = R * 444984403 & ct | R * 60499 & q, g = g * 3301882366 & ct | ((g << 16 | R >>> 16) * 3120437893 & ct) >>> 16, R ^= g >>> 1, (R >>> 0).toString(16).padStart(8, "0") + (g >>> 0).toString(16).padStart(8, "0");
4237
4237
  }
4238
4238
  }
4239
4239
  h.MurmurHash3_64 = bt;
@@ -4241,7 +4241,7 @@ function requirePdf() {
4241
4241
  /* 9 */
4242
4242
  /***/
4243
4243
  ((gt, h, ot) => {
4244
- var V;
4244
+ var q;
4245
4245
  Object.defineProperty(h, "__esModule", {
4246
4246
  value: !0
4247
4247
  }), h.FontLoader = h.FontFaceObject = void 0;
@@ -4251,7 +4251,7 @@ function requirePdf() {
4251
4251
  ownerDocument: B = globalThis.document,
4252
4252
  styleElement: R = null
4253
4253
  }) {
4254
- Q(this, V, /* @__PURE__ */ new Set());
4254
+ Q(this, q, /* @__PURE__ */ new Set());
4255
4255
  this._document = B, this.nativeFontFaces = /* @__PURE__ */ new Set(), this.styleElement = null, this.loadingRequests = [], this.loadTestFontId = 0;
4256
4256
  }
4257
4257
  addNativeFontFace(B) {
@@ -4268,10 +4268,10 @@ function requirePdf() {
4268
4268
  clear() {
4269
4269
  for (const B of this.nativeFontFaces)
4270
4270
  this._document.fonts.delete(B);
4271
- this.nativeFontFaces.clear(), t(this, V).clear(), this.styleElement && (this.styleElement.remove(), this.styleElement = null);
4271
+ this.nativeFontFaces.clear(), t(this, q).clear(), this.styleElement && (this.styleElement.remove(), this.styleElement = null);
4272
4272
  }
4273
4273
  async loadSystemFont(B) {
4274
- if (!(!B || t(this, V).has(B.loadedName))) {
4274
+ if (!(!B || t(this, q).has(B.loadedName))) {
4275
4275
  if ((0, l.assert)(!this.disableFontFace, "loadSystemFont shouldn't be called when `disableFontFace` is set."), this.isFontLoadingAPISupported) {
4276
4276
  const {
4277
4277
  loadedName: R,
@@ -4280,7 +4280,7 @@ function requirePdf() {
4280
4280
  } = B, O = new FontFace(R, g, N);
4281
4281
  this.addNativeFontFace(O);
4282
4282
  try {
4283
- await O.load(), t(this, V).add(R);
4283
+ await O.load(), t(this, q).add(R);
4284
4284
  } catch {
4285
4285
  (0, l.warn)(`Cannot load system font: ${B.baseFontName}, installing it could help to improve PDF rendering.`), this.removeNativeFontFace(O);
4286
4286
  }
@@ -4352,8 +4352,8 @@ function requirePdf() {
4352
4352
  return n.charCodeAt(_) << 24 | n.charCodeAt(_ + 1) << 16 | n.charCodeAt(_ + 2) << 8 | n.charCodeAt(_ + 3) & 255;
4353
4353
  }
4354
4354
  function N(n, _, F, nt) {
4355
- const W = n.substring(0, _), q = n.substring(_ + F);
4356
- return W + nt + q;
4355
+ const W = n.substring(0, _), Y = n.substring(_ + F);
4356
+ return W + nt + Y;
4357
4357
  }
4358
4358
  let O, v;
4359
4359
  const b = this._document.createElement("canvas");
@@ -4392,7 +4392,7 @@ function requirePdf() {
4392
4392
  });
4393
4393
  }
4394
4394
  }
4395
- V = new WeakMap(), h.FontLoader = T;
4395
+ q = new WeakMap(), h.FontLoader = T;
4396
4396
  class ct {
4397
4397
  constructor(B, {
4398
4398
  isEvalSupported: R = !0,
@@ -4485,12 +4485,12 @@ function requirePdf() {
4485
4485
  class ct extends l.BaseFilterFactory {
4486
4486
  }
4487
4487
  h.NodeFilterFactory = ct;
4488
- class V extends l.BaseCanvasFactory {
4488
+ class q extends l.BaseCanvasFactory {
4489
4489
  _createCanvas(g, N) {
4490
4490
  return require$$5.createCanvas(g, N);
4491
4491
  }
4492
4492
  }
4493
- h.NodeCanvasFactory = V;
4493
+ h.NodeCanvasFactory = q;
4494
4494
  class bt extends l.BaseCMapReaderFactory {
4495
4495
  _fetchData(g, N) {
4496
4496
  return T(g).then((O) => ({
@@ -4510,11 +4510,11 @@ function requirePdf() {
4510
4510
  /* 11 */
4511
4511
  /***/
4512
4512
  ((gt, h, ot) => {
4513
- var rt, Ve, qe;
4513
+ var rt, qe, Ye;
4514
4514
  Object.defineProperty(h, "__esModule", {
4515
4515
  value: !0
4516
4516
  }), h.CanvasGraphics = void 0;
4517
- var l = ot(1), T = ot(6), ct = ot(12), V = ot(13);
4517
+ var l = ot(1), T = ot(6), ct = ot(12), q = ot(13);
4518
4518
  const bt = 16, B = 100, R = 4096, g = 15, N = 10, O = 1e3, v = 16;
4519
4519
  function b(S, e) {
4520
4520
  if (S._removeMirroring)
@@ -4572,14 +4572,14 @@ function requirePdf() {
4572
4572
  }
4573
4573
  }
4574
4574
  function f(S, e, i, u, P, x, k, G, it, ht) {
4575
- const [dt, pt, At, vt, K, Z] = (0, T.getCurrentTransform)(S);
4575
+ const [dt, pt, At, vt, J, Z] = (0, T.getCurrentTransform)(S);
4576
4576
  if (pt === 0 && At === 0) {
4577
- const X = k * dt + K, J = Math.round(X), ut = G * vt + Z, St = Math.round(ut), yt = (k + it) * dt + K, $ = Math.abs(Math.round(yt) - J) || 1, Tt = (G + ht) * vt + Z, wt = Math.abs(Math.round(Tt) - St) || 1;
4578
- return S.setTransform(Math.sign(dt), 0, 0, Math.sign(vt), J, St), S.drawImage(e, i, u, P, x, 0, 0, $, wt), S.setTransform(dt, pt, At, vt, K, Z), [$, wt];
4577
+ const X = k * dt + J, $ = Math.round(X), ut = G * vt + Z, St = Math.round(ut), yt = (k + it) * dt + J, V = Math.abs(Math.round(yt) - $) || 1, Tt = (G + ht) * vt + Z, wt = Math.abs(Math.round(Tt) - St) || 1;
4578
+ return S.setTransform(Math.sign(dt), 0, 0, Math.sign(vt), $, St), S.drawImage(e, i, u, P, x, 0, 0, V, wt), S.setTransform(dt, pt, At, vt, J, Z), [V, wt];
4579
4579
  }
4580
4580
  if (dt === 0 && vt === 0) {
4581
- const X = G * At + K, J = Math.round(X), ut = k * pt + Z, St = Math.round(ut), yt = (G + ht) * At + K, $ = Math.abs(Math.round(yt) - J) || 1, Tt = (k + it) * pt + Z, wt = Math.abs(Math.round(Tt) - St) || 1;
4582
- return S.setTransform(0, Math.sign(pt), Math.sign(At), 0, J, St), S.drawImage(e, i, u, P, x, 0, 0, wt, $), S.setTransform(dt, pt, At, vt, K, Z), [wt, $];
4581
+ const X = G * At + J, $ = Math.round(X), ut = k * pt + Z, St = Math.round(ut), yt = (G + ht) * At + J, V = Math.abs(Math.round(yt) - $) || 1, Tt = (k + it) * pt + Z, wt = Math.abs(Math.round(Tt) - St) || 1;
4582
+ return S.setTransform(0, Math.sign(pt), Math.sign(At), 0, $, St), S.drawImage(e, i, u, P, x, 0, 0, wt, V), S.setTransform(dt, pt, At, vt, J, Z), [wt, V];
4583
4583
  }
4584
4584
  S.drawImage(e, i, u, P, x, k, G, it, ht);
4585
4585
  const p = Math.hypot(dt, pt), M = Math.hypot(At, vt);
@@ -4616,7 +4616,7 @@ function requirePdf() {
4616
4616
  pt[At] !== pt[At + 1] && (k[ht + it] = pt[At] ? 4 : 8, ++vt), At++;
4617
4617
  if (pt[At] !== 0 && (k[ht + it] = 4, ++vt), vt > u)
4618
4618
  return null;
4619
- const K = new Int32Array([0, x, -1, 0, -x, 0, 0, 0, 1]), Z = new Path2D();
4619
+ const J = new Int32Array([0, x, -1, 0, -x, 0, 0, 0, 1]), Z = new Path2D();
4620
4620
  for (G = 0; vt && G <= i; G++) {
4621
4621
  let M = G * x;
4622
4622
  const X = M + e;
@@ -4625,16 +4625,16 @@ function requirePdf() {
4625
4625
  if (M === X)
4626
4626
  continue;
4627
4627
  Z.moveTo(M % x, G);
4628
- const J = M;
4628
+ const $ = M;
4629
4629
  let ut = k[M];
4630
4630
  do {
4631
- const St = K[ut];
4631
+ const St = J[ut];
4632
4632
  do
4633
4633
  M += St;
4634
4634
  while (!k[M]);
4635
4635
  const yt = k[M];
4636
4636
  yt !== 5 && yt !== 10 ? (ut = yt, k[M] = 0) : (ut = yt & 51 * ut >> 4, k[M] &= ut >> 2 | ut << 2), Z.lineTo(M % x, M / x | 0), k[M] || --vt;
4637
- } while (J !== M);
4637
+ } while ($ !== M);
4638
4638
  --G;
4639
4639
  }
4640
4640
  return pt = null, k = null, function(M) {
@@ -4701,18 +4701,18 @@ function requirePdf() {
4701
4701
  const i = e.height, u = e.width, P = i % v, x = (i - P) / v, k = P === 0 ? x : x + 1, G = S.createImageData(u, v);
4702
4702
  let it = 0, ht;
4703
4703
  const dt = e.data, pt = G.data;
4704
- let At, vt, K, Z;
4704
+ let At, vt, J, Z;
4705
4705
  if (e.kind === l.ImageKind.GRAYSCALE_1BPP) {
4706
- const p = dt.byteLength, M = new Uint32Array(pt.buffer, 0, pt.byteLength >> 2), X = M.length, J = u + 7 >> 3, ut = 4294967295, St = l.FeatureTest.isLittleEndian ? 4278190080 : 255;
4706
+ const p = dt.byteLength, M = new Uint32Array(pt.buffer, 0, pt.byteLength >> 2), X = M.length, $ = u + 7 >> 3, ut = 4294967295, St = l.FeatureTest.isLittleEndian ? 4278190080 : 255;
4707
4707
  for (At = 0; At < k; At++) {
4708
- for (K = At < x ? v : P, ht = 0, vt = 0; vt < K; vt++) {
4708
+ for (J = At < x ? v : P, ht = 0, vt = 0; vt < J; vt++) {
4709
4709
  const yt = p - it;
4710
- let $ = 0;
4711
- const Tt = yt > J ? u : yt * 8 - 7, wt = Tt & -8;
4710
+ let V = 0;
4711
+ const Tt = yt > $ ? u : yt * 8 - 7, wt = Tt & -8;
4712
4712
  let jt = 0, Bt = 0;
4713
- for (; $ < wt; $ += 8)
4713
+ for (; V < wt; V += 8)
4714
4714
  Bt = dt[it++], M[ht++] = Bt & 128 ? ut : St, M[ht++] = Bt & 64 ? ut : St, M[ht++] = Bt & 32 ? ut : St, M[ht++] = Bt & 16 ? ut : St, M[ht++] = Bt & 8 ? ut : St, M[ht++] = Bt & 4 ? ut : St, M[ht++] = Bt & 2 ? ut : St, M[ht++] = Bt & 1 ? ut : St;
4715
- for (; $ < Tt; $++)
4715
+ for (; V < Tt; V++)
4716
4716
  jt === 0 && (Bt = dt[it++], jt = 128), M[ht++] = Bt & jt ? ut : St, jt >>= 1;
4717
4717
  }
4718
4718
  for (; ht < X; )
@@ -4724,8 +4724,8 @@ function requirePdf() {
4724
4724
  pt.set(dt.subarray(it, it + Z)), it += Z, S.putImageData(G, 0, vt), vt += v;
4725
4725
  At < k && (Z = u * P * 4, pt.set(dt.subarray(it, it + Z)), S.putImageData(G, 0, vt));
4726
4726
  } else if (e.kind === l.ImageKind.RGB_24BPP)
4727
- for (K = v, Z = u * K, At = 0; At < k; At++) {
4728
- for (At >= x && (K = P, Z = u * K), ht = 0, vt = Z; vt--; )
4727
+ for (J = v, Z = u * J, At = 0; At < k; At++) {
4728
+ for (At >= x && (J = P, Z = u * J), ht = 0, vt = Z; vt--; )
4729
4729
  pt[ht++] = dt[it++], pt[ht++] = dt[it++], pt[ht++] = dt[it++], pt[ht++] = 255;
4730
4730
  S.putImageData(G, 0, At * v);
4731
4731
  }
@@ -4744,7 +4744,7 @@ function requirePdf() {
4744
4744
  const At = pt < x ? v : P;
4745
4745
  ({
4746
4746
  srcPos: it
4747
- } = (0, V.convertBlackAndWhiteToRGBA)({
4747
+ } = (0, q.convertBlackAndWhiteToRGBA)({
4748
4748
  src: ht,
4749
4749
  srcPos: it,
4750
4750
  dest: dt,
@@ -4795,10 +4795,10 @@ function requirePdf() {
4795
4795
  }
4796
4796
  }
4797
4797
  function L(S, e, i, u, P, x, k, G, it, ht, dt) {
4798
- const pt = !!x, At = pt ? x[0] : 0, vt = pt ? x[1] : 0, K = pt ? x[2] : 0, Z = P === "Luminosity" ? o : a, M = Math.min(u, Math.ceil(1048576 / i));
4798
+ const pt = !!x, At = pt ? x[0] : 0, vt = pt ? x[1] : 0, J = pt ? x[2] : 0, Z = P === "Luminosity" ? o : a, M = Math.min(u, Math.ceil(1048576 / i));
4799
4799
  for (let X = 0; X < u; X += M) {
4800
- const J = Math.min(M, u - X), ut = S.getImageData(G - ht, X + (it - dt), i, J), St = e.getImageData(G, X + it, i, J);
4801
- pt && s(ut.data, At, vt, K), Z(ut.data, St.data, k), e.putImageData(St, G, X + it);
4800
+ const $ = Math.min(M, u - X), ut = S.getImageData(G - ht, X + (it - dt), i, $), St = e.getImageData(G, X + it, i, $);
4801
+ pt && s(ut.data, At, vt, J), Z(ut.data, St.data, k), e.putImageData(St, G, X + it);
4802
4802
  }
4803
4803
  }
4804
4804
  function n(S, e, i, u) {
@@ -4811,7 +4811,7 @@ function requirePdf() {
4811
4811
  const u = Math.fround((globalThis.devicePixelRatio || 1) * T.PixelsPerInch.PDF_TO_CSS_UNITS);
4812
4812
  return e !== void 0 ? e : i[0] <= u || i[1] <= u;
4813
4813
  }
4814
- const F = ["butt", "round", "square"], nt = ["miter", "round", "bevel"], W = {}, q = {}, Y = class Y {
4814
+ const F = ["butt", "round", "square"], nt = ["miter", "round", "bevel"], W = {}, Y = {}, K = class K {
4815
4815
  constructor(e, i, u, P, x, {
4816
4816
  optionalContentConfig: k,
4817
4817
  markedContentStack: G = null
@@ -4844,12 +4844,12 @@ function requirePdf() {
4844
4844
  const ht = it - G > N && typeof u == "function", dt = ht ? Date.now() + g : 0;
4845
4845
  let pt = 0;
4846
4846
  const At = this.commonObjs, vt = this.objs;
4847
- let K;
4847
+ let J;
4848
4848
  for (; ; ) {
4849
4849
  if (P !== void 0 && G === P.nextBreakPoint)
4850
4850
  return P.breakIt(G, u), G;
4851
- if (K = k[G], K !== l.OPS.dependency)
4852
- this[K].apply(this, x[G]);
4851
+ if (J = k[G], J !== l.OPS.dependency)
4852
+ this[J].apply(this, x[G]);
4853
4853
  else
4854
4854
  for (const Z of x[G]) {
4855
4855
  const p = Z.startsWith("g_") ? At : vt;
@@ -4866,13 +4866,13 @@ function requirePdf() {
4866
4866
  }
4867
4867
  }
4868
4868
  endDrawing() {
4869
- z(this, rt, Ve).call(this), this.cachedCanvases.clear(), this.cachedPatterns.clear();
4869
+ z(this, rt, qe).call(this), this.cachedCanvases.clear(), this.cachedPatterns.clear();
4870
4870
  for (const e of this._cachedBitmapsMap.values()) {
4871
4871
  for (const i of e.values())
4872
4872
  typeof HTMLCanvasElement < "u" && i instanceof HTMLCanvasElement && (i.width = i.height = 0);
4873
4873
  e.clear();
4874
4874
  }
4875
- this._cachedBitmapsMap.clear(), z(this, rt, qe).call(this);
4875
+ this._cachedBitmapsMap.clear(), z(this, rt, Ye).call(this);
4876
4876
  }
4877
4877
  _scaleImage(e, i) {
4878
4878
  const u = e.width, P = e.height;
@@ -4894,8 +4894,8 @@ function requirePdf() {
4894
4894
  } = e, x = this.current.fillColor, k = this.current.patternFill, G = (0, T.getCurrentTransform)(i);
4895
4895
  let it, ht, dt, pt;
4896
4896
  if ((e.bitmap || e.data) && e.count > 1) {
4897
- const $ = e.bitmap || e.data.buffer;
4898
- ht = JSON.stringify(k ? G : [G.slice(0, 4), x]), it = this._cachedBitmapsMap.get($), it || (it = /* @__PURE__ */ new Map(), this._cachedBitmapsMap.set($, it));
4897
+ const V = e.bitmap || e.data.buffer;
4898
+ ht = JSON.stringify(k ? G : [G.slice(0, 4), x]), it = this._cachedBitmapsMap.get(V), it || (it = /* @__PURE__ */ new Map(), this._cachedBitmapsMap.set(V, it));
4899
4899
  const Tt = it.get(ht);
4900
4900
  if (Tt && !k) {
4901
4901
  const wt = Math.round(Math.min(G[0], G[2]) + G[4]), jt = Math.round(Math.min(G[1], G[3]) + G[5]);
@@ -4910,10 +4910,10 @@ function requirePdf() {
4910
4910
  dt || (pt = this.cachedCanvases.getCanvas("maskCanvas", u, P), A(pt.context, e));
4911
4911
  let At = l.Util.transform(G, [1 / u, 0, 0, -1 / P, 0, 0]);
4912
4912
  At = l.Util.transform(At, [1, 0, 0, 1, 0, -P]);
4913
- const vt = l.Util.applyTransform([0, 0], At), K = l.Util.applyTransform([u, P], At), Z = l.Util.normalizeRect([vt[0], vt[1], K[0], K[1]]), p = Math.round(Z[2] - Z[0]) || 1, M = Math.round(Z[3] - Z[1]) || 1, X = this.cachedCanvases.getCanvas("fillCanvas", p, M), J = X.context, ut = Math.min(vt[0], K[0]), St = Math.min(vt[1], K[1]);
4914
- J.translate(-ut, -St), J.transform(...At), dt || (dt = this._scaleImage(pt.canvas, (0, T.getCurrentTransformInverse)(J)), dt = dt.img, it && k && it.set(ht, dt)), J.imageSmoothingEnabled = _((0, T.getCurrentTransform)(J), e.interpolate), f(J, dt, 0, 0, dt.width, dt.height, 0, 0, u, P), J.globalCompositeOperation = "source-in";
4915
- const yt = l.Util.transform((0, T.getCurrentTransformInverse)(J), [1, 0, 0, 1, -ut, -St]);
4916
- return J.fillStyle = k ? x.getPattern(i, this, yt, ct.PathType.FILL) : x, J.fillRect(0, 0, u, P), it && !k && (this.cachedCanvases.delete("fillCanvas"), it.set(ht, X.canvas)), {
4913
+ const vt = l.Util.applyTransform([0, 0], At), J = l.Util.applyTransform([u, P], At), Z = l.Util.normalizeRect([vt[0], vt[1], J[0], J[1]]), p = Math.round(Z[2] - Z[0]) || 1, M = Math.round(Z[3] - Z[1]) || 1, X = this.cachedCanvases.getCanvas("fillCanvas", p, M), $ = X.context, ut = Math.min(vt[0], J[0]), St = Math.min(vt[1], J[1]);
4914
+ $.translate(-ut, -St), $.transform(...At), dt || (dt = this._scaleImage(pt.canvas, (0, T.getCurrentTransformInverse)($)), dt = dt.img, it && k && it.set(ht, dt)), $.imageSmoothingEnabled = _((0, T.getCurrentTransform)($), e.interpolate), f($, dt, 0, 0, dt.width, dt.height, 0, 0, u, P), $.globalCompositeOperation = "source-in";
4915
+ const yt = l.Util.transform((0, T.getCurrentTransformInverse)($), [1, 0, 0, 1, -ut, -St]);
4916
+ return $.fillStyle = k ? x.getPattern(i, this, yt, ct.PathType.FILL) : x, $.fillRect(0, 0, u, P), it && !k && (this.cachedCanvases.delete("fillCanvas"), it.set(ht, X.canvas)), {
4917
4917
  canvas: X.canvas,
4918
4918
  offsetX: Math.round(ut),
4919
4919
  offsetY: Math.round(St)
@@ -5025,27 +5025,27 @@ function requirePdf() {
5025
5025
  const P = this.ctx, x = this.current;
5026
5026
  let k = x.x, G = x.y, it, ht;
5027
5027
  const dt = (0, T.getCurrentTransform)(P), pt = dt[0] === 0 && dt[3] === 0 || dt[1] === 0 && dt[2] === 0, At = pt ? u.slice(0) : null;
5028
- for (let vt = 0, K = 0, Z = e.length; vt < Z; vt++)
5028
+ for (let vt = 0, J = 0, Z = e.length; vt < Z; vt++)
5029
5029
  switch (e[vt] | 0) {
5030
5030
  case l.OPS.rectangle:
5031
- k = i[K++], G = i[K++];
5032
- const p = i[K++], M = i[K++], X = k + p, J = G + M;
5033
- P.moveTo(k, G), p === 0 || M === 0 ? P.lineTo(X, J) : (P.lineTo(X, G), P.lineTo(X, J), P.lineTo(k, J)), pt || x.updateRectMinMax(dt, [k, G, X, J]), P.closePath();
5031
+ k = i[J++], G = i[J++];
5032
+ const p = i[J++], M = i[J++], X = k + p, $ = G + M;
5033
+ P.moveTo(k, G), p === 0 || M === 0 ? P.lineTo(X, $) : (P.lineTo(X, G), P.lineTo(X, $), P.lineTo(k, $)), pt || x.updateRectMinMax(dt, [k, G, X, $]), P.closePath();
5034
5034
  break;
5035
5035
  case l.OPS.moveTo:
5036
- k = i[K++], G = i[K++], P.moveTo(k, G), pt || x.updatePathMinMax(dt, k, G);
5036
+ k = i[J++], G = i[J++], P.moveTo(k, G), pt || x.updatePathMinMax(dt, k, G);
5037
5037
  break;
5038
5038
  case l.OPS.lineTo:
5039
- k = i[K++], G = i[K++], P.lineTo(k, G), pt || x.updatePathMinMax(dt, k, G);
5039
+ k = i[J++], G = i[J++], P.lineTo(k, G), pt || x.updatePathMinMax(dt, k, G);
5040
5040
  break;
5041
5041
  case l.OPS.curveTo:
5042
- it = k, ht = G, k = i[K + 4], G = i[K + 5], P.bezierCurveTo(i[K], i[K + 1], i[K + 2], i[K + 3], k, G), x.updateCurvePathMinMax(dt, it, ht, i[K], i[K + 1], i[K + 2], i[K + 3], k, G, At), K += 6;
5042
+ it = k, ht = G, k = i[J + 4], G = i[J + 5], P.bezierCurveTo(i[J], i[J + 1], i[J + 2], i[J + 3], k, G), x.updateCurvePathMinMax(dt, it, ht, i[J], i[J + 1], i[J + 2], i[J + 3], k, G, At), J += 6;
5043
5043
  break;
5044
5044
  case l.OPS.curveTo2:
5045
- it = k, ht = G, P.bezierCurveTo(k, G, i[K], i[K + 1], i[K + 2], i[K + 3]), x.updateCurvePathMinMax(dt, it, ht, k, G, i[K], i[K + 1], i[K + 2], i[K + 3], At), k = i[K + 2], G = i[K + 3], K += 4;
5045
+ it = k, ht = G, P.bezierCurveTo(k, G, i[J], i[J + 1], i[J + 2], i[J + 3]), x.updateCurvePathMinMax(dt, it, ht, k, G, i[J], i[J + 1], i[J + 2], i[J + 3], At), k = i[J + 2], G = i[J + 3], J += 4;
5046
5046
  break;
5047
5047
  case l.OPS.curveTo3:
5048
- it = k, ht = G, k = i[K + 2], G = i[K + 3], P.bezierCurveTo(i[K], i[K + 1], k, G, k, G), x.updateCurvePathMinMax(dt, it, ht, i[K], i[K + 1], k, G, k, G, At), K += 4;
5048
+ it = k, ht = G, k = i[J + 2], G = i[J + 3], P.bezierCurveTo(i[J], i[J + 1], k, G, k, G), x.updateCurvePathMinMax(dt, it, ht, i[J], i[J + 1], k, G, k, G, At), J += 4;
5049
5049
  break;
5050
5050
  case l.OPS.closePath:
5051
5051
  P.closePath();
@@ -5092,7 +5092,7 @@ function requirePdf() {
5092
5092
  this.pendingClip = W;
5093
5093
  }
5094
5094
  eoClip() {
5095
- this.pendingClip = q;
5095
+ this.pendingClip = Y;
5096
5096
  }
5097
5097
  beginText() {
5098
5098
  this.current.textMatrix = l.IDENTITY_MATRIX, this.current.textMatrixScale = 1, this.current.x = this.current.lineX = 0, this.current.y = this.current.lineY = 0;
@@ -5184,7 +5184,7 @@ function requirePdf() {
5184
5184
  const P = i.fontSize;
5185
5185
  if (P === 0)
5186
5186
  return;
5187
- const x = this.ctx, k = i.fontSizeScale, G = i.charSpacing, it = i.wordSpacing, ht = i.fontDirection, dt = i.textHScale * ht, pt = e.length, At = u.vertical, vt = At ? 1 : -1, K = u.defaultVMetrics, Z = P * i.fontMatrix[0], p = i.textRenderingMode === l.TextRenderingMode.FILL && !u.disableFontFace && !i.patternFill;
5187
+ const x = this.ctx, k = i.fontSizeScale, G = i.charSpacing, it = i.wordSpacing, ht = i.fontDirection, dt = i.textHScale * ht, pt = e.length, At = u.vertical, vt = At ? 1 : -1, J = u.defaultVMetrics, Z = P * i.fontMatrix[0], p = i.textRenderingMode === l.TextRenderingMode.FILL && !u.disableFontFace && !i.patternFill;
5188
5188
  x.save(), x.transform(...i.textMatrix), x.translate(i.x, i.y + i.textRise), ht > 0 ? x.scale(dt, -1) : x.scale(dt, 1);
5189
5189
  let M;
5190
5190
  if (i.patternFill) {
@@ -5193,18 +5193,18 @@ function requirePdf() {
5193
5193
  M = (0, T.getCurrentTransform)(x), x.restore(), x.fillStyle = yt;
5194
5194
  }
5195
5195
  let X = i.lineWidth;
5196
- const J = i.textMatrixScale;
5197
- if (J === 0 || X === 0) {
5196
+ const $ = i.textMatrixScale;
5197
+ if ($ === 0 || X === 0) {
5198
5198
  const yt = i.textRenderingMode & l.TextRenderingMode.FILL_STROKE_MASK;
5199
5199
  (yt === l.TextRenderingMode.STROKE || yt === l.TextRenderingMode.FILL_STROKE) && (X = this.getSinglePixelWidth());
5200
5200
  } else
5201
- X /= J;
5201
+ X /= $;
5202
5202
  if (k !== 1 && (x.scale(k, k), X /= k), x.lineWidth = X, u.isInvalidPDFjsFont) {
5203
5203
  const yt = [];
5204
- let $ = 0;
5204
+ let V = 0;
5205
5205
  for (const Tt of e)
5206
- yt.push(Tt.unicode), $ += Tt.width;
5207
- x.fillText(yt.join(""), 0, 0), i.x += $ * Z * dt, x.restore(), this.compose();
5206
+ yt.push(Tt.unicode), V += Tt.width;
5207
+ x.fillText(yt.join(""), 0, 0), i.x += V * Z * dt, x.restore(), this.compose();
5208
5208
  return;
5209
5209
  }
5210
5210
  let ut = 0, St;
@@ -5214,49 +5214,49 @@ function requirePdf() {
5214
5214
  ut += vt * yt * P / 1e3;
5215
5215
  continue;
5216
5216
  }
5217
- let $ = !1;
5217
+ let V = !1;
5218
5218
  const Tt = (yt.isSpace ? it : 0) + G, wt = yt.fontChar, jt = yt.accent;
5219
5219
  let Bt, Xt, Ft = yt.width;
5220
5220
  if (At) {
5221
- const $t = yt.vmetric || K, qt = -(yt.vmetric ? $t[1] : Ft * 0.5) * Z, _t = $t[2] * Z;
5222
- Ft = $t ? -$t[0] : Ft, Bt = qt / k, Xt = (ut + _t) / k;
5221
+ const Vt = yt.vmetric || J, Yt = -(yt.vmetric ? Vt[1] : Ft * 0.5) * Z, _t = Vt[2] * Z;
5222
+ Ft = Vt ? -Vt[0] : Ft, Bt = Yt / k, Xt = (ut + _t) / k;
5223
5223
  } else
5224
5224
  Bt = ut / k, Xt = 0;
5225
5225
  if (u.remeasure && Ft > 0) {
5226
- const $t = x.measureText(wt).width * 1e3 / P * k;
5227
- if (Ft < $t && this.isFontSubpixelAAEnabled) {
5228
- const qt = Ft / $t;
5229
- $ = !0, x.save(), x.scale(qt, 1), Bt /= qt;
5230
- } else Ft !== $t && (Bt += (Ft - $t) / 2e3 * P / k);
5226
+ const Vt = x.measureText(wt).width * 1e3 / P * k;
5227
+ if (Ft < Vt && this.isFontSubpixelAAEnabled) {
5228
+ const Yt = Ft / Vt;
5229
+ V = !0, x.save(), x.scale(Yt, 1), Bt /= Yt;
5230
+ } else Ft !== Vt && (Bt += (Ft - Vt) / 2e3 * P / k);
5231
5231
  }
5232
5232
  if (this.contentVisible && (yt.isInFont || u.missingFile)) {
5233
5233
  if (p && !jt)
5234
5234
  x.fillText(wt, Bt, Xt);
5235
5235
  else if (this.paintChar(wt, Bt, Xt, M), jt) {
5236
- const $t = Bt + P * jt.offset.x / k, qt = Xt - P * jt.offset.y / k;
5237
- this.paintChar(jt.fontChar, $t, qt, M);
5236
+ const Vt = Bt + P * jt.offset.x / k, Yt = Xt - P * jt.offset.y / k;
5237
+ this.paintChar(jt.fontChar, Vt, Yt, M);
5238
5238
  }
5239
5239
  }
5240
5240
  const Nt = At ? Ft * Z - Tt * ht : Ft * Z + Tt * ht;
5241
- ut += Nt, $ && x.restore();
5241
+ ut += Nt, V && x.restore();
5242
5242
  }
5243
5243
  At ? i.y -= ut : i.x += ut * dt, x.restore(), this.compose();
5244
5244
  }
5245
5245
  showType3Text(e) {
5246
5246
  const i = this.ctx, u = this.current, P = u.font, x = u.fontSize, k = u.fontDirection, G = P.vertical ? 1 : -1, it = u.charSpacing, ht = u.wordSpacing, dt = u.textHScale * k, pt = u.fontMatrix || l.FONT_IDENTITY_MATRIX, At = e.length, vt = u.textRenderingMode === l.TextRenderingMode.INVISIBLE;
5247
- let K, Z, p, M;
5247
+ let J, Z, p, M;
5248
5248
  if (!(vt || x === 0)) {
5249
- for (this._cachedScaleForStroking[0] = -1, this._cachedGetSinglePixelWidth = null, i.save(), i.transform(...u.textMatrix), i.translate(u.x, u.y), i.scale(dt, k), K = 0; K < At; ++K) {
5250
- if (Z = e[K], typeof Z == "number") {
5249
+ for (this._cachedScaleForStroking[0] = -1, this._cachedGetSinglePixelWidth = null, i.save(), i.transform(...u.textMatrix), i.translate(u.x, u.y), i.scale(dt, k), J = 0; J < At; ++J) {
5250
+ if (Z = e[J], typeof Z == "number") {
5251
5251
  M = G * Z * x / 1e3, this.ctx.translate(M, 0), u.x += M * dt;
5252
5252
  continue;
5253
5253
  }
5254
- const X = (Z.isSpace ? ht : 0) + it, J = P.charProcOperatorList[Z.operatorListId];
5255
- if (!J) {
5254
+ const X = (Z.isSpace ? ht : 0) + it, $ = P.charProcOperatorList[Z.operatorListId];
5255
+ if (!$) {
5256
5256
  (0, l.warn)(`Type3 character "${Z.operatorListId}" is not available.`);
5257
5257
  continue;
5258
5258
  }
5259
- this.contentVisible && (this.processingType3 = Z, this.save(), i.scale(x, x), i.transform(...pt), this.executeOperatorList(J), this.restore()), p = l.Util.applyTransform([Z.width, 0], pt)[0] * x + X, i.translate(p, 0), u.x += p * dt;
5259
+ this.contentVisible && (this.processingType3 = Z, this.save(), i.scale(x, x), i.transform(...pt), this.executeOperatorList($), this.restore()), p = l.Util.applyTransform([Z.width, 0], pt)[0] * x + X, i.translate(p, 0), u.x += p * dt;
5260
5260
  }
5261
5261
  i.restore(), this.processingType3 = null;
5262
5262
  }
@@ -5270,7 +5270,7 @@ function requirePdf() {
5270
5270
  let i;
5271
5271
  if (e[0] === "TilingPattern") {
5272
5272
  const u = e[1], P = this.baseTransform || (0, T.getCurrentTransform)(this.ctx), x = {
5273
- createCanvasGraphics: (k) => new Y(k, this.commonObjs, this.objs, this.canvasFactory, this.filterFactory, {
5273
+ createCanvasGraphics: (k) => new K(k, this.commonObjs, this.objs, this.canvasFactory, this.filterFactory, {
5274
5274
  optionalContentConfig: this.optionalContentConfig,
5275
5275
  markedContentStack: this.markedContentStack
5276
5276
  })
@@ -5348,10 +5348,10 @@ function requirePdf() {
5348
5348
  it > R && (dt = it / R, it = R), ht > R && (pt = ht / R, ht = R), this.current.startNewPathAndClipBox([0, 0, it, ht]);
5349
5349
  let At = "groupAt" + this.groupLevel;
5350
5350
  e.smask && (At += "_smask_" + this.smaskCounter++ % 2);
5351
- const vt = this.cachedCanvases.getCanvas(At, it, ht), K = vt.context;
5352
- K.scale(1 / dt, 1 / pt), K.translate(-k, -G), K.transform(...u), e.smask ? this.smaskStack.push({
5351
+ const vt = this.cachedCanvases.getCanvas(At, it, ht), J = vt.context;
5352
+ J.scale(1 / dt, 1 / pt), J.translate(-k, -G), J.transform(...u), e.smask ? this.smaskStack.push({
5353
5353
  canvas: vt.canvas,
5354
- context: K,
5354
+ context: J,
5355
5355
  offsetX: k,
5356
5356
  offsetY: G,
5357
5357
  scaleX: dt,
@@ -5360,7 +5360,7 @@ function requirePdf() {
5360
5360
  backdrop: e.smask.backdrop,
5361
5361
  transferMap: e.smask.transferMap || null,
5362
5362
  startTransformInverse: null
5363
- }) : (i.setTransform(1, 0, 0, 1, 0, 0), i.translate(k, G), i.scale(dt, pt), i.save()), r(i, K), this.ctx = K, this.setGState([["BM", "source-over"], ["ca", 1], ["CA", 1]]), this.groupStack.push(i), this.groupLevel++;
5363
+ }) : (i.setTransform(1, 0, 0, 1, 0, 0), i.translate(k, G), i.scale(dt, pt), i.save()), r(i, J), this.ctx = J, this.setGState([["BM", "source-over"], ["ca", 1], ["CA", 1]]), this.groupStack.push(i), this.groupLevel++;
5364
5364
  }
5365
5365
  endGroup(e) {
5366
5366
  if (!this.contentVisible)
@@ -5378,7 +5378,7 @@ function requirePdf() {
5378
5378
  }
5379
5379
  }
5380
5380
  beginAnnotation(e, i, u, P, x) {
5381
- if (z(this, rt, Ve).call(this), c(this.ctx), this.ctx.save(), this.save(), this.baseTransform && this.ctx.setTransform(...this.baseTransform), Array.isArray(i) && i.length === 4) {
5381
+ if (z(this, rt, qe).call(this), c(this.ctx), this.ctx.save(), this.save(), this.baseTransform && this.ctx.setTransform(...this.baseTransform), Array.isArray(i) && i.length === 4) {
5382
5382
  const k = i[2] - i[0], G = i[3] - i[1];
5383
5383
  if (x && this.annotationCanvasMap) {
5384
5384
  u = u.slice(), u[4] -= i[0], u[5] -= i[1], i = i.slice(), i[0] = i[1] = 0, i[2] = k, i[3] = G;
@@ -5388,16 +5388,16 @@ function requirePdf() {
5388
5388
  this.annotationCanvas = this.canvasFactory.create(pt, At);
5389
5389
  const {
5390
5390
  canvas: vt,
5391
- context: K
5391
+ context: J
5392
5392
  } = this.annotationCanvas;
5393
- this.annotationCanvasMap.set(e, vt), this.annotationCanvas.savedCtx = this.ctx, this.ctx = K, this.ctx.save(), this.ctx.setTransform(it, 0, 0, -ht, 0, G * ht), c(this.ctx);
5393
+ this.annotationCanvasMap.set(e, vt), this.annotationCanvas.savedCtx = this.ctx, this.ctx = J, this.ctx.save(), this.ctx.setTransform(it, 0, 0, -ht, 0, G * ht), c(this.ctx);
5394
5394
  } else
5395
5395
  c(this.ctx), this.ctx.rect(i[0], i[1], k, G), this.ctx.clip(), this.endPath();
5396
5396
  }
5397
5397
  this.current = new m(this.ctx.canvas.width, this.ctx.canvas.height), this.transform(...u), this.transform(...P);
5398
5398
  }
5399
5399
  endAnnotation() {
5400
- this.annotationCanvas && (this.ctx.restore(), z(this, rt, qe).call(this), this.ctx = this.annotationCanvas.savedCtx, delete this.annotationCanvas.savedCtx, delete this.annotationCanvas);
5400
+ this.annotationCanvas && (this.ctx.restore(), z(this, rt, Ye).call(this), this.ctx = this.annotationCanvas.savedCtx, delete this.annotationCanvas.savedCtx, delete this.annotationCanvas);
5401
5401
  }
5402
5402
  paintImageMaskXObject(e) {
5403
5403
  if (!this.contentVisible)
@@ -5423,8 +5423,8 @@ function requirePdf() {
5423
5423
  const ht = this._createMaskCanvas(e);
5424
5424
  G.setTransform(1, 0, 0, 1, ht.offsetX - it[4], ht.offsetY - it[5]);
5425
5425
  for (let dt = 0, pt = k.length; dt < pt; dt += 2) {
5426
- const At = l.Util.transform(it, [i, u, P, x, k[dt], k[dt + 1]]), [vt, K] = l.Util.applyTransform([0, 0], At);
5427
- G.drawImage(ht.canvas, vt, K);
5426
+ const At = l.Util.transform(it, [i, u, P, x, k[dt], k[dt + 1]]), [vt, J] = l.Util.applyTransform([0, 0], At);
5427
+ G.drawImage(ht.canvas, vt, J);
5428
5428
  }
5429
5429
  G.restore(), this.compose();
5430
5430
  }
@@ -5555,7 +5555,7 @@ function requirePdf() {
5555
5555
  const i = this.current.isEmptyClip();
5556
5556
  this.pendingClip && this.current.updateClipFromPath(), this.pendingClip || this.compose(e);
5557
5557
  const u = this.ctx;
5558
- this.pendingClip && (i || (this.pendingClip === q ? u.clip("evenodd") : u.clip()), this.pendingClip = null), this.current.startNewPathAndClipBox(this.current.clipBox), u.beginPath();
5558
+ this.pendingClip && (i || (this.pendingClip === Y ? u.clip("evenodd") : u.clip()), this.pendingClip = null), this.current.startNewPathAndClipBox(this.current.clipBox), u.beginPath();
5559
5559
  }
5560
5560
  getSinglePixelWidth() {
5561
5561
  if (!this._cachedGetSinglePixelWidth) {
@@ -5632,11 +5632,11 @@ function requirePdf() {
5632
5632
  return !0;
5633
5633
  }
5634
5634
  };
5635
- rt = new WeakSet(), Ve = function() {
5635
+ rt = new WeakSet(), qe = function() {
5636
5636
  for (; this.stateStack.length || this.inSMaskMode; )
5637
5637
  this.restore();
5638
5638
  this.ctx.restore(), this.transparentCanvas && (this.ctx = this.compositeCtx, this.ctx.save(), this.ctx.setTransform(1, 0, 0, 1, 0, 0), this.ctx.drawImage(this.transparentCanvas, 0, 0), this.ctx.restore(), this.transparentCanvas = null);
5639
- }, qe = function() {
5639
+ }, Ye = function() {
5640
5640
  if (this.pageColors) {
5641
5641
  const e = this.filterFactory.addHCMFilter(this.pageColors.foreground, this.pageColors.background);
5642
5642
  if (e !== "none") {
@@ -5645,7 +5645,7 @@ function requirePdf() {
5645
5645
  }
5646
5646
  }
5647
5647
  };
5648
- let j = Y;
5648
+ let j = K;
5649
5649
  h.CanvasGraphics = j;
5650
5650
  for (const S in l.OPS)
5651
5651
  j.prototype[S] !== void 0 && (j.prototype[l.OPS[S]] = j.prototype[S]);
@@ -5663,7 +5663,7 @@ function requirePdf() {
5663
5663
  SHADING: "Shading"
5664
5664
  };
5665
5665
  h.PathType = ct;
5666
- function V(d, m) {
5666
+ function q(d, m) {
5667
5667
  if (!m)
5668
5668
  return;
5669
5669
  const I = m[2] - m[0], A = m[3] - m[1], r = new Path2D();
@@ -5692,11 +5692,11 @@ function requirePdf() {
5692
5692
  let c;
5693
5693
  if (r === ct.STROKE || r === ct.FILL) {
5694
5694
  const s = I.current.getClippedPathBoundingBox(r, (0, T.getCurrentTransform)(m)) || [0, 0, 0, 0], a = Math.ceil(s[2] - s[0]) || 1, o = Math.ceil(s[3] - s[1]) || 1, L = I.cachedCanvases.getCanvas("pattern", a, o, !0), n = L.context;
5695
- n.clearRect(0, 0, n.canvas.width, n.canvas.height), n.beginPath(), n.rect(0, 0, n.canvas.width, n.canvas.height), n.translate(-s[0], -s[1]), A = l.Util.transform(A, [1, 0, 0, 1, s[0], s[1]]), n.transform(...I.baseTransform), this.matrix && n.transform(...this.matrix), V(n, this._bbox), n.fillStyle = this._createGradient(n), n.fill(), c = m.createPattern(L.canvas, "no-repeat");
5695
+ n.clearRect(0, 0, n.canvas.width, n.canvas.height), n.beginPath(), n.rect(0, 0, n.canvas.width, n.canvas.height), n.translate(-s[0], -s[1]), A = l.Util.transform(A, [1, 0, 0, 1, s[0], s[1]]), n.transform(...I.baseTransform), this.matrix && n.transform(...this.matrix), q(n, this._bbox), n.fillStyle = this._createGradient(n), n.fill(), c = m.createPattern(L.canvas, "no-repeat");
5696
5696
  const _ = new DOMMatrix(A);
5697
5697
  c.setTransform(_);
5698
5698
  } else
5699
- V(m, this._bbox), c = this._createGradient(m);
5699
+ q(m, this._bbox), c = this._createGradient(m);
5700
5700
  return c;
5701
5701
  }
5702
5702
  }
@@ -5704,25 +5704,25 @@ function requirePdf() {
5704
5704
  const o = m.coords, L = m.colors, n = d.data, _ = d.width * 4;
5705
5705
  let F;
5706
5706
  o[I + 1] > o[A + 1] && (F = I, I = A, A = F, F = c, c = s, s = F), o[A + 1] > o[r + 1] && (F = A, A = r, r = F, F = s, s = a, a = F), o[I + 1] > o[A + 1] && (F = I, I = A, A = F, F = c, c = s, s = F);
5707
- const nt = (o[I] + m.offsetX) * m.scaleX, W = (o[I + 1] + m.offsetY) * m.scaleY, q = (o[A] + m.offsetX) * m.scaleX, j = (o[A + 1] + m.offsetY) * m.scaleY, rt = (o[r] + m.offsetX) * m.scaleX, C = (o[r + 1] + m.offsetY) * m.scaleY;
5707
+ const nt = (o[I] + m.offsetX) * m.scaleX, W = (o[I + 1] + m.offsetY) * m.scaleY, Y = (o[A] + m.offsetX) * m.scaleX, j = (o[A + 1] + m.offsetY) * m.scaleY, rt = (o[r] + m.offsetX) * m.scaleX, C = (o[r + 1] + m.offsetY) * m.scaleY;
5708
5708
  if (W >= C)
5709
5709
  return;
5710
- const U = L[c], Y = L[c + 1], S = L[c + 2], e = L[s], i = L[s + 1], u = L[s + 2], P = L[a], x = L[a + 1], k = L[a + 2], G = Math.round(W), it = Math.round(C);
5711
- let ht, dt, pt, At, vt, K, Z, p;
5710
+ const U = L[c], K = L[c + 1], S = L[c + 2], e = L[s], i = L[s + 1], u = L[s + 2], P = L[a], x = L[a + 1], k = L[a + 2], G = Math.round(W), it = Math.round(C);
5711
+ let ht, dt, pt, At, vt, J, Z, p;
5712
5712
  for (let M = G; M <= it; M++) {
5713
5713
  if (M < j) {
5714
5714
  const yt = M < W ? 0 : (W - M) / (W - j);
5715
- ht = nt - (nt - q) * yt, dt = U - (U - e) * yt, pt = Y - (Y - i) * yt, At = S - (S - u) * yt;
5715
+ ht = nt - (nt - Y) * yt, dt = U - (U - e) * yt, pt = K - (K - i) * yt, At = S - (S - u) * yt;
5716
5716
  } else {
5717
5717
  let yt;
5718
- M > C ? yt = 1 : j === C ? yt = 0 : yt = (j - M) / (j - C), ht = q - (q - rt) * yt, dt = e - (e - P) * yt, pt = i - (i - x) * yt, At = u - (u - k) * yt;
5718
+ M > C ? yt = 1 : j === C ? yt = 0 : yt = (j - M) / (j - C), ht = Y - (Y - rt) * yt, dt = e - (e - P) * yt, pt = i - (i - x) * yt, At = u - (u - k) * yt;
5719
5719
  }
5720
5720
  let X;
5721
- M < W ? X = 0 : M > C ? X = 1 : X = (W - M) / (W - C), vt = nt - (nt - rt) * X, K = U - (U - P) * X, Z = Y - (Y - x) * X, p = S - (S - k) * X;
5722
- const J = Math.round(Math.min(ht, vt)), ut = Math.round(Math.max(ht, vt));
5723
- let St = _ * M + J * 4;
5724
- for (let yt = J; yt <= ut; yt++)
5725
- X = (ht - yt) / (ht - vt), X < 0 ? X = 0 : X > 1 && (X = 1), n[St++] = dt - (dt - K) * X | 0, n[St++] = pt - (pt - Z) * X | 0, n[St++] = At - (At - p) * X | 0, n[St++] = 255;
5721
+ M < W ? X = 0 : M > C ? X = 1 : X = (W - M) / (W - C), vt = nt - (nt - rt) * X, J = U - (U - P) * X, Z = K - (K - x) * X, p = S - (S - k) * X;
5722
+ const $ = Math.round(Math.min(ht, vt)), ut = Math.round(Math.max(ht, vt));
5723
+ let St = _ * M + $ * 4;
5724
+ for (let yt = $; yt <= ut; yt++)
5725
+ X = (ht - yt) / (ht - vt), X < 0 ? X = 0 : X > 1 && (X = 1), n[St++] = dt - (dt - J) * X | 0, n[St++] = pt - (pt - Z) * X | 0, n[St++] = At - (At - p) * X | 0, n[St++] = 255;
5726
5726
  }
5727
5727
  }
5728
5728
  function g(d, m, I) {
@@ -5750,22 +5750,22 @@ function requirePdf() {
5750
5750
  super(), this._coords = m[2], this._colors = m[3], this._figures = m[4], this._bounds = m[5], this._bbox = m[7], this._background = m[8], this.matrix = null;
5751
5751
  }
5752
5752
  _createMeshCanvas(m, I, A) {
5753
- const a = Math.floor(this._bounds[0]), o = Math.floor(this._bounds[1]), L = Math.ceil(this._bounds[2]) - a, n = Math.ceil(this._bounds[3]) - o, _ = Math.min(Math.ceil(Math.abs(L * m[0] * 1.1)), 3e3), F = Math.min(Math.ceil(Math.abs(n * m[1] * 1.1)), 3e3), nt = L / _, W = n / F, q = {
5753
+ const a = Math.floor(this._bounds[0]), o = Math.floor(this._bounds[1]), L = Math.ceil(this._bounds[2]) - a, n = Math.ceil(this._bounds[3]) - o, _ = Math.min(Math.ceil(Math.abs(L * m[0] * 1.1)), 3e3), F = Math.min(Math.ceil(Math.abs(n * m[1] * 1.1)), 3e3), nt = L / _, W = n / F, Y = {
5754
5754
  coords: this._coords,
5755
5755
  colors: this._colors,
5756
5756
  offsetX: -a,
5757
5757
  offsetY: -o,
5758
5758
  scaleX: 1 / nt,
5759
5759
  scaleY: 1 / W
5760
- }, j = _ + 4, rt = F + 4, C = A.getCanvas("mesh", j, rt, !1), U = C.context, Y = U.createImageData(_, F);
5760
+ }, j = _ + 4, rt = F + 4, C = A.getCanvas("mesh", j, rt, !1), U = C.context, K = U.createImageData(_, F);
5761
5761
  if (I) {
5762
- const e = Y.data;
5762
+ const e = K.data;
5763
5763
  for (let i = 0, u = e.length; i < u; i += 4)
5764
5764
  e[i] = I[0], e[i + 1] = I[1], e[i + 2] = I[2], e[i + 3] = 255;
5765
5765
  }
5766
5766
  for (const e of this._figures)
5767
- g(Y, e, q);
5768
- return U.putImageData(Y, 2, 2), {
5767
+ g(K, e, Y);
5768
+ return U.putImageData(K, 2, 2), {
5769
5769
  canvas: C.canvas,
5770
5770
  offsetX: a - 2 * nt,
5771
5771
  offsetY: o - 2 * W,
@@ -5774,7 +5774,7 @@ function requirePdf() {
5774
5774
  };
5775
5775
  }
5776
5776
  getPattern(m, I, A, r) {
5777
- V(m, this._bbox);
5777
+ q(m, this._bbox);
5778
5778
  let c;
5779
5779
  if (r === ct.SHADING)
5780
5780
  c = l.Util.singularValueDecompose2dScale((0, T.getCurrentTransform)(m));
@@ -5812,10 +5812,10 @@ function requirePdf() {
5812
5812
  createPatternCanvas(m) {
5813
5813
  const I = this.operatorList, A = this.bbox, r = this.xstep, c = this.ystep, s = this.paintType, a = this.tilingType, o = this.color, L = this.canvasGraphicsFactory;
5814
5814
  (0, l.info)("TilingType: " + a);
5815
- const n = A[0], _ = A[1], F = A[2], nt = A[3], W = l.Util.singularValueDecompose2dScale(this.matrix), q = l.Util.singularValueDecompose2dScale(this.baseTransform), j = [W[0] * q[0], W[1] * q[1]], rt = this.getSizeAndScale(r, this.ctx.canvas.width, j[0]), C = this.getSizeAndScale(c, this.ctx.canvas.height, j[1]), U = m.cachedCanvases.getCanvas("pattern", rt.size, C.size, !0), Y = U.context, S = L.createCanvasGraphics(Y);
5815
+ const n = A[0], _ = A[1], F = A[2], nt = A[3], W = l.Util.singularValueDecompose2dScale(this.matrix), Y = l.Util.singularValueDecompose2dScale(this.baseTransform), j = [W[0] * Y[0], W[1] * Y[1]], rt = this.getSizeAndScale(r, this.ctx.canvas.width, j[0]), C = this.getSizeAndScale(c, this.ctx.canvas.height, j[1]), U = m.cachedCanvases.getCanvas("pattern", rt.size, C.size, !0), K = U.context, S = L.createCanvasGraphics(K);
5816
5816
  S.groupLevel = m.groupLevel, this.setFillAndStrokeStyleToContext(S, s, o);
5817
5817
  let e = n, i = _, u = F, P = nt;
5818
- return n < 0 && (e = 0, u += Math.abs(n)), _ < 0 && (i = 0, P += Math.abs(_)), Y.translate(-(rt.scale * e), -(C.scale * i)), S.transform(rt.scale, 0, 0, C.scale, 0, 0), Y.save(), this.clipBbox(S, e, i, u, P), S.baseTransform = (0, T.getCurrentTransform)(S.ctx), S.executeOperatorList(I), S.endDrawing(), {
5818
+ return n < 0 && (e = 0, u += Math.abs(n)), _ < 0 && (i = 0, P += Math.abs(_)), K.translate(-(rt.scale * e), -(C.scale * i)), S.transform(rt.scale, 0, 0, C.scale, 0, 0), K.save(), this.clipBbox(S, e, i, u, P), S.baseTransform = (0, T.getCurrentTransform)(S.ctx), S.executeOperatorList(I), S.endDrawing(), {
5819
5819
  canvas: U.canvas,
5820
5820
  scaleX: rt.scale,
5821
5821
  scaleY: C.scale,
@@ -5861,7 +5861,7 @@ function requirePdf() {
5861
5861
  return o.setTransform(a), o;
5862
5862
  }
5863
5863
  };
5864
- Kt(f, "MAX_PATTERN_SIZE", 3e3);
5864
+ Jt(f, "MAX_PATTERN_SIZE", 3e3);
5865
5865
  let E = f;
5866
5866
  h.TilingPattern = E;
5867
5867
  }),
@@ -5877,7 +5877,7 @@ function requirePdf() {
5877
5877
  case l.ImageKind.GRAYSCALE_1BPP:
5878
5878
  return ct(B);
5879
5879
  case l.ImageKind.RGB_24BPP:
5880
- return V(B);
5880
+ return q(B);
5881
5881
  }
5882
5882
  return null;
5883
5883
  }
@@ -5909,7 +5909,7 @@ function requirePdf() {
5909
5909
  destPos: r
5910
5910
  };
5911
5911
  }
5912
- function V({
5912
+ function q({
5913
5913
  src: B,
5914
5914
  srcPos: R = 0,
5915
5915
  dest: g,
@@ -5978,7 +5978,7 @@ function requirePdf() {
5978
5978
  PULL_COMPLETE: 7,
5979
5979
  START_COMPLETE: 8
5980
5980
  };
5981
- function V(O) {
5981
+ function q(O) {
5982
5982
  switch (O instanceof Error || typeof O == "object" && O !== null || (0, l.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'), O.name) {
5983
5983
  case "AbortException":
5984
5984
  return new l.AbortException(O.message);
@@ -6012,7 +6012,7 @@ function requirePdf() {
6012
6012
  if (delete this.callbackCapabilities[I], d.callback === T.DATA)
6013
6013
  A.resolve(d.data);
6014
6014
  else if (d.callback === T.ERROR)
6015
- A.reject(V(d.reason));
6015
+ A.reject(q(d.reason));
6016
6016
  else
6017
6017
  throw new Error("Unexpected callback case");
6018
6018
  return;
@@ -6038,7 +6038,7 @@ function requirePdf() {
6038
6038
  targetName: A,
6039
6039
  callback: T.ERROR,
6040
6040
  callbackId: d.callbackId,
6041
- reason: V(r)
6041
+ reason: q(r)
6042
6042
  });
6043
6043
  });
6044
6044
  return;
@@ -6118,7 +6118,7 @@ function requirePdf() {
6118
6118
  targetName: I,
6119
6119
  stream: ct.CANCEL,
6120
6120
  streamId: d,
6121
- reason: V(r)
6121
+ reason: q(r)
6122
6122
  }), c.promise;
6123
6123
  }
6124
6124
  }, E);
@@ -6155,7 +6155,7 @@ function requirePdf() {
6155
6155
  targetName: f,
6156
6156
  stream: ct.ERROR,
6157
6157
  streamId: b,
6158
- reason: V(r)
6158
+ reason: q(r)
6159
6159
  }));
6160
6160
  },
6161
6161
  sinkCapability: new l.PromiseCapability(),
@@ -6181,17 +6181,17 @@ function requirePdf() {
6181
6181
  targetName: f,
6182
6182
  stream: ct.START_COMPLETE,
6183
6183
  streamId: b,
6184
- reason: V(r)
6184
+ reason: q(r)
6185
6185
  });
6186
6186
  });
6187
6187
  }, Ci = function(v) {
6188
6188
  const b = v.streamId, E = this.sourceName, f = v.sourceName, d = this.comObj, m = this.streamControllers[b], I = this.streamSinks[b];
6189
6189
  switch (v.stream) {
6190
6190
  case ct.START_COMPLETE:
6191
- v.success ? m.startCall.resolve() : m.startCall.reject(V(v.reason));
6191
+ v.success ? m.startCall.resolve() : m.startCall.reject(q(v.reason));
6192
6192
  break;
6193
6193
  case ct.PULL_COMPLETE:
6194
- v.success ? m.pullCall.resolve() : m.pullCall.reject(V(v.reason));
6194
+ v.success ? m.pullCall.resolve() : m.pullCall.reject(q(v.reason));
6195
6195
  break;
6196
6196
  case ct.PULL:
6197
6197
  if (!I) {
@@ -6221,7 +6221,7 @@ function requirePdf() {
6221
6221
  targetName: f,
6222
6222
  stream: ct.PULL_COMPLETE,
6223
6223
  streamId: b,
6224
- reason: V(A)
6224
+ reason: q(A)
6225
6225
  });
6226
6226
  });
6227
6227
  break;
@@ -6236,17 +6236,17 @@ function requirePdf() {
6236
6236
  m.isClosed = !0, m.controller.close(), z(this, B, Ee).call(this, m, b);
6237
6237
  break;
6238
6238
  case ct.ERROR:
6239
- (0, l.assert)(m, "error should have stream controller"), m.controller.error(V(v.reason)), z(this, B, Ee).call(this, m, b);
6239
+ (0, l.assert)(m, "error should have stream controller"), m.controller.error(q(v.reason)), z(this, B, Ee).call(this, m, b);
6240
6240
  break;
6241
6241
  case ct.CANCEL_COMPLETE:
6242
- v.success ? m.cancelCall.resolve() : m.cancelCall.reject(V(v.reason)), z(this, B, Ee).call(this, m, b);
6242
+ v.success ? m.cancelCall.resolve() : m.cancelCall.reject(q(v.reason)), z(this, B, Ee).call(this, m, b);
6243
6243
  break;
6244
6244
  case ct.CANCEL:
6245
6245
  if (!I)
6246
6246
  break;
6247
6247
  new Promise(function(A) {
6248
6248
  var r;
6249
- A((r = I.onCancel) == null ? void 0 : r.call(I, V(v.reason)));
6249
+ A((r = I.onCancel) == null ? void 0 : r.call(I, q(v.reason)));
6250
6250
  }).then(function() {
6251
6251
  d.postMessage({
6252
6252
  sourceName: E,
@@ -6261,9 +6261,9 @@ function requirePdf() {
6261
6261
  targetName: f,
6262
6262
  stream: ct.CANCEL_COMPLETE,
6263
6263
  streamId: b,
6264
- reason: V(A)
6264
+ reason: q(A)
6265
6265
  });
6266
- }), I.sinkCapability.reject(V(v.reason)), I.isCancelled = !0, delete this.streamSinks[b];
6266
+ }), I.sinkCapability.reject(q(v.reason)), I.isCancelled = !0, delete this.streamSinks[b];
6267
6267
  break;
6268
6268
  default:
6269
6269
  throw new Error("Unexpected stream case");
@@ -6276,7 +6276,7 @@ function requirePdf() {
6276
6276
  /* 16 */
6277
6277
  /***/
6278
6278
  ((gt, h, ot) => {
6279
- var ct, V;
6279
+ var ct, q;
6280
6280
  Object.defineProperty(h, "__esModule", {
6281
6281
  value: !0
6282
6282
  }), h.Metadata = void 0;
@@ -6287,11 +6287,11 @@ function requirePdf() {
6287
6287
  rawData: R
6288
6288
  }) {
6289
6289
  Q(this, ct);
6290
- Q(this, V);
6291
- et(this, ct, B), et(this, V, R);
6290
+ Q(this, q);
6291
+ et(this, ct, B), et(this, q, R);
6292
6292
  }
6293
6293
  getRaw() {
6294
- return t(this, V);
6294
+ return t(this, q);
6295
6295
  }
6296
6296
  get(B) {
6297
6297
  return t(this, ct).get(B) ?? null;
@@ -6303,18 +6303,18 @@ function requirePdf() {
6303
6303
  return t(this, ct).has(B);
6304
6304
  }
6305
6305
  }
6306
- ct = new WeakMap(), V = new WeakMap(), h.Metadata = T;
6306
+ ct = new WeakMap(), q = new WeakMap(), h.Metadata = T;
6307
6307
  }),
6308
6308
  /* 17 */
6309
6309
  /***/
6310
6310
  ((gt, h, ot) => {
6311
- var B, R, g, N, O, v, Ye;
6311
+ var B, R, g, N, O, v, Ke;
6312
6312
  Object.defineProperty(h, "__esModule", {
6313
6313
  value: !0
6314
6314
  }), h.OptionalContentConfig = void 0;
6315
6315
  var l = ot(1), T = ot(8);
6316
6316
  const ct = Symbol("INTERNAL");
6317
- class V {
6317
+ class q {
6318
6318
  constructor(f, d) {
6319
6319
  Q(this, B, !0);
6320
6320
  this.name = f, this.intent = d;
@@ -6337,7 +6337,7 @@ function requirePdf() {
6337
6337
  if (this.name = null, this.creator = null, f !== null) {
6338
6338
  this.name = f.name, this.creator = f.creator, et(this, O, f.order);
6339
6339
  for (const d of f.groups)
6340
- t(this, g).set(d.id, new V(d.name, d.intent));
6340
+ t(this, g).set(d.id, new q(d.name, d.intent));
6341
6341
  if (f.baseState === "OFF")
6342
6342
  for (const d of t(this, g).values())
6343
6343
  d._setVisible(ct, !1);
@@ -6357,7 +6357,7 @@ function requirePdf() {
6357
6357
  return t(this, g).has(f.id) ? t(this, g).get(f.id).visible : ((0, l.warn)(`Optional content group not found: ${f.id}`), !0);
6358
6358
  if (f.type === "OCMD") {
6359
6359
  if (f.expression)
6360
- return z(this, v, Ye).call(this, f.expression);
6360
+ return z(this, v, Ke).call(this, f.expression);
6361
6361
  if (!f.policy || f.policy === "AnyOn") {
6362
6362
  for (const d of f.ids) {
6363
6363
  if (!t(this, g).has(d))
@@ -6423,7 +6423,7 @@ function requirePdf() {
6423
6423
  return et(this, R, f.hexdigest());
6424
6424
  }
6425
6425
  }
6426
- R = new WeakMap(), g = new WeakMap(), N = new WeakMap(), O = new WeakMap(), v = new WeakSet(), Ye = function(f) {
6426
+ R = new WeakMap(), g = new WeakMap(), N = new WeakMap(), O = new WeakMap(), v = new WeakSet(), Ke = function(f) {
6427
6427
  const d = f.length;
6428
6428
  if (d < 2)
6429
6429
  return !0;
@@ -6432,7 +6432,7 @@ function requirePdf() {
6432
6432
  const A = f[I];
6433
6433
  let r;
6434
6434
  if (Array.isArray(A))
6435
- r = z(this, v, Ye).call(this, A);
6435
+ r = z(this, v, Ke).call(this, A);
6436
6436
  else if (t(this, g).has(A))
6437
6437
  r = t(this, g).get(A).visible;
6438
6438
  else
@@ -6531,7 +6531,7 @@ function requirePdf() {
6531
6531
  getFullReader() {
6532
6532
  (0, l.assert)(!this._fullRequestReader, "PDFDataTransportStream.getFullReader can only be called once.");
6533
6533
  const R = this._queuedChunks;
6534
- return this._queuedChunks = null, new V(this, R, this._progressiveDone, this._contentDispositionFilename);
6534
+ return this._queuedChunks = null, new q(this, R, this._progressiveDone, this._contentDispositionFilename);
6535
6535
  }
6536
6536
  getRangeReader(R, g) {
6537
6537
  if (g <= this._progressiveDataLength)
@@ -6548,7 +6548,7 @@ function requirePdf() {
6548
6548
  }
6549
6549
  }
6550
6550
  h.PDFDataTransportStream = ct;
6551
- class V {
6551
+ class q {
6552
6552
  constructor(R, g, N = !1, O = null) {
6553
6553
  this._stream = R, this._done = N || !1, this._filename = (0, T.isPdfFile)(O) ? O : null, this._queuedChunks = g || [], this._loaded = 0;
6554
6554
  for (const v of this._queuedChunks)
@@ -6673,7 +6673,7 @@ function requirePdf() {
6673
6673
  redirect: "follow"
6674
6674
  };
6675
6675
  }
6676
- function V(N) {
6676
+ function q(N) {
6677
6677
  const O = new Headers();
6678
6678
  for (const v in N) {
6679
6679
  const b = N[v];
@@ -6713,7 +6713,7 @@ function requirePdf() {
6713
6713
  constructor(O) {
6714
6714
  this._stream = O, this._reader = null, this._loaded = 0, this._filename = null;
6715
6715
  const v = O.source;
6716
- this._withCredentials = v.withCredentials || !1, this._contentLength = v.length, this._headersCapability = new l.PromiseCapability(), this._disableRange = v.disableRange || !1, this._rangeChunkSize = v.rangeChunkSize, !this._rangeChunkSize && !this._disableRange && (this._disableRange = !0), this._abortController = new AbortController(), this._isStreamingSupported = !v.disableStream, this._isRangeSupported = !v.disableRange, this._headers = V(this._stream.httpHeaders);
6716
+ this._withCredentials = v.withCredentials || !1, this._contentLength = v.length, this._headersCapability = new l.PromiseCapability(), this._disableRange = v.disableRange || !1, this._rangeChunkSize = v.rangeChunkSize, !this._rangeChunkSize && !this._disableRange && (this._disableRange = !0), this._abortController = new AbortController(), this._isStreamingSupported = !v.disableStream, this._isRangeSupported = !v.disableRange, this._headers = q(this._stream.httpHeaders);
6717
6717
  const b = v.url;
6718
6718
  fetch(b, ct(this._headers, this._withCredentials, this._abortController)).then((E) => {
6719
6719
  if (!(0, T.validateResponseStatus)(E.status))
@@ -6773,7 +6773,7 @@ function requirePdf() {
6773
6773
  constructor(O, v, b) {
6774
6774
  this._stream = O, this._reader = null, this._loaded = 0;
6775
6775
  const E = O.source;
6776
- this._withCredentials = E.withCredentials || !1, this._readCapability = new l.PromiseCapability(), this._isStreamingSupported = !E.disableStream, this._abortController = new AbortController(), this._headers = V(this._stream.httpHeaders), this._headers.append("Range", `bytes=${v}-${b - 1}`);
6776
+ this._withCredentials = E.withCredentials || !1, this._readCapability = new l.PromiseCapability(), this._isStreamingSupported = !E.disableStream, this._abortController = new AbortController(), this._headers = q(this._stream.httpHeaders), this._headers.append("Range", `bytes=${v}-${b - 1}`);
6777
6777
  const f = E.url;
6778
6778
  fetch(f, ct(this._headers, this._withCredentials, this._abortController)).then((d) => {
6779
6779
  if (!(0, T.validateResponseStatus)(d.status))
@@ -6812,9 +6812,9 @@ function requirePdf() {
6812
6812
  ((gt, h, ot) => {
6813
6813
  Object.defineProperty(h, "__esModule", {
6814
6814
  value: !0
6815
- }), h.createResponseStatusError = B, h.extractFilenameFromHeader = bt, h.validateRangeRequestCapabilities = V, h.validateResponseStatus = R;
6815
+ }), h.createResponseStatusError = B, h.extractFilenameFromHeader = bt, h.validateRangeRequestCapabilities = q, h.validateResponseStatus = R;
6816
6816
  var l = ot(1), T = ot(21), ct = ot(6);
6817
- function V({
6817
+ function q({
6818
6818
  getResponseHeader: g,
6819
6819
  isHttp: N,
6820
6820
  rangeChunkSize: O,
@@ -6855,7 +6855,7 @@ function requirePdf() {
6855
6855
  }), h.getFilenameFromContentDispositionHeader = T;
6856
6856
  var l = ot(1);
6857
6857
  function T(ct) {
6858
- let V = !0, bt = B("filename\\*", "i").exec(ct);
6858
+ let q = !0, bt = B("filename\\*", "i").exec(ct);
6859
6859
  if (bt) {
6860
6860
  bt = bt[1];
6861
6861
  let E = O(bt);
@@ -6881,14 +6881,14 @@ function requirePdf() {
6881
6881
  const d = new TextDecoder(E, {
6882
6882
  fatal: !0
6883
6883
  }), m = (0, l.stringToBytes)(f);
6884
- f = d.decode(m), V = !1;
6884
+ f = d.decode(m), q = !1;
6885
6885
  } catch {
6886
6886
  }
6887
6887
  }
6888
6888
  return f;
6889
6889
  }
6890
6890
  function g(E) {
6891
- return V && /[\x80-\xff]/.test(E) && (E = R("utf-8", E), V && (E = R("iso-8859-1", E))), E;
6891
+ return q && /[\x80-\xff]/.test(E) && (E = R("utf-8", E), q && (E = R("iso-8859-1", E))), E;
6892
6892
  }
6893
6893
  function N(E) {
6894
6894
  const f = [];
@@ -6951,7 +6951,7 @@ function requirePdf() {
6951
6951
  value: !0
6952
6952
  }), h.PDFNetworkStream = void 0;
6953
6953
  var l = ot(1), T = ot(20);
6954
- const ct = 200, V = 206;
6954
+ const ct = 200, q = 206;
6955
6955
  function bt(O) {
6956
6956
  const v = O.response;
6957
6957
  return typeof v != "string" ? v : (0, l.stringToBytes)(v).buffer;
@@ -6981,7 +6981,7 @@ function requirePdf() {
6981
6981
  const m = this.httpHeaders[d];
6982
6982
  m !== void 0 && b.setRequestHeader(d, m);
6983
6983
  }
6984
- return this.isHttp && "begin" in v && "end" in v ? (b.setRequestHeader("Range", `bytes=${v.begin}-${v.end - 1}`), f.expectedStatus = V) : f.expectedStatus = ct, b.responseType = "arraybuffer", v.onError && (b.onerror = function(d) {
6984
+ return this.isHttp && "begin" in v && "end" in v ? (b.setRequestHeader("Range", `bytes=${v.begin}-${v.end - 1}`), f.expectedStatus = q) : f.expectedStatus = ct, b.responseType = "arraybuffer", v.onError && (b.onerror = function(d) {
6985
6985
  v.onError(b.status);
6986
6986
  }), b.onreadystatechange = this.onStateChange.bind(this, E), b.onprogress = this.onProgress.bind(this, E), f.onHeadersReceived = v.onHeadersReceived, f.onDone = v.onDone, f.onError = v.onError, f.onProgress = v.onProgress, b.send(null), E;
6987
6987
  }
@@ -7003,12 +7003,12 @@ function requirePdf() {
7003
7003
  return;
7004
7004
  }
7005
7005
  const d = f.status || ct;
7006
- if (!(d === ct && E.expectedStatus === V) && d !== E.expectedStatus) {
7006
+ if (!(d === ct && E.expectedStatus === q) && d !== E.expectedStatus) {
7007
7007
  (r = E.onError) == null || r.call(E, f.status);
7008
7008
  return;
7009
7009
  }
7010
7010
  const I = bt(f);
7011
- if (d === V) {
7011
+ if (d === q) {
7012
7012
  const s = f.getResponseHeader("Content-Range"), a = /bytes (\d+)-(\d+)\/(\d+)/.exec(s);
7013
7013
  E.onDone({
7014
7014
  begin: parseInt(a[1], 10),
@@ -7225,13 +7225,13 @@ function requirePdf() {
7225
7225
  }), h.PDFNodeStream = void 0;
7226
7226
  var l = ot(1), T = ot(20);
7227
7227
  const ct = /^file:\/\/\/[a-zA-Z]:\//;
7228
- function V(E) {
7228
+ function q(E) {
7229
7229
  const f = require$$5, d = f.parse(E);
7230
7230
  return d.protocol === "file:" || d.host ? d : /^[a-z]:[/\\]/i.test(E) ? f.parse(`file:///${E}`) : (d.host || (d.protocol = "file:"), d);
7231
7231
  }
7232
7232
  class bt {
7233
7233
  constructor(f) {
7234
- this.source = f, this.url = V(f.url), this.isHttp = this.url.protocol === "http:" || this.url.protocol === "https:", this.isFsUrl = this.url.protocol === "file:", this.httpHeaders = this.isHttp && f.httpHeaders || {}, this._fullRequestReader = null, this._rangeRequestReaders = [];
7234
+ this.source = f, this.url = q(f.url), this.isHttp = this.url.protocol === "http:" || this.url.protocol === "https:", this.isFsUrl = this.url.protocol === "file:", this.httpHeaders = this.isHttp && f.httpHeaders || {}, this._fullRequestReader = null, this._rangeRequestReaders = [];
7235
7235
  }
7236
7236
  get _progressiveDataLength() {
7237
7237
  var f;
@@ -7470,7 +7470,7 @@ function requirePdf() {
7470
7470
  fontStyle: "normal",
7471
7471
  fontWeight: "normal",
7472
7472
  fillColor: "#000000"
7473
- }, V = "http://www.w3.org/XML/1998/namespace", bt = "http://www.w3.org/1999/xlink", B = ["butt", "round", "square"], R = ["miter", "round", "bevel"], g = function(A, r = "", c = !1) {
7473
+ }, q = "http://www.w3.org/XML/1998/namespace", bt = "http://www.w3.org/1999/xlink", B = ["butt", "round", "square"], R = ["miter", "round", "bevel"], g = function(A, r = "", c = !1) {
7474
7474
  if (URL.createObjectURL && typeof Blob < "u" && !c)
7475
7475
  return URL.createObjectURL(new Blob([A], {
7476
7476
  type: r
@@ -7478,8 +7478,8 @@ function requirePdf() {
7478
7478
  const s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
7479
7479
  let a = `data:${r};base64,`;
7480
7480
  for (let o = 0, L = A.length; o < L; o += 3) {
7481
- const n = A[o] & 255, _ = A[o + 1] & 255, F = A[o + 2] & 255, nt = n >> 2, W = (n & 3) << 4 | _ >> 4, q = o + 1 < L ? (_ & 15) << 2 | F >> 6 : 64, j = o + 2 < L ? F & 63 : 64;
7482
- a += s[nt] + s[W] + s[q] + s[j];
7481
+ const n = A[o] & 255, _ = A[o + 1] & 255, F = A[o + 2] & 255, nt = n >> 2, W = (n & 3) << 4 | _ >> 4, Y = o + 1 < L ? (_ & 15) << 2 | F >> 6 : 64, j = o + 2 < L ? F & 63 : 64;
7482
+ a += s[nt] + s[W] + s[Y] + s[j];
7483
7483
  }
7484
7484
  return a;
7485
7485
  }, N = (function() {
@@ -7491,25 +7491,25 @@ function requirePdf() {
7491
7491
  c[F] = nt;
7492
7492
  }
7493
7493
  function s(F, nt, W) {
7494
- let q = -1;
7494
+ let Y = -1;
7495
7495
  for (let j = nt; j < W; j++) {
7496
- const rt = (q ^ F[j]) & 255, C = c[rt];
7497
- q = q >>> 8 ^ C;
7496
+ const rt = (Y ^ F[j]) & 255, C = c[rt];
7497
+ Y = Y >>> 8 ^ C;
7498
7498
  }
7499
- return q ^ -1;
7499
+ return Y ^ -1;
7500
7500
  }
7501
- function a(F, nt, W, q) {
7502
- let j = q;
7501
+ function a(F, nt, W, Y) {
7502
+ let j = Y;
7503
7503
  const rt = nt.length;
7504
7504
  W[j] = rt >> 24 & 255, W[j + 1] = rt >> 16 & 255, W[j + 2] = rt >> 8 & 255, W[j + 3] = rt & 255, j += 4, W[j] = F.charCodeAt(0) & 255, W[j + 1] = F.charCodeAt(1) & 255, W[j + 2] = F.charCodeAt(2) & 255, W[j + 3] = F.charCodeAt(3) & 255, j += 4, W.set(nt, j), j += nt.length;
7505
- const C = s(W, q + 4, j);
7505
+ const C = s(W, Y + 4, j);
7506
7506
  W[j] = C >> 24 & 255, W[j + 1] = C >> 16 & 255, W[j + 2] = C >> 8 & 255, W[j + 3] = C & 255;
7507
7507
  }
7508
7508
  function o(F, nt, W) {
7509
- let q = 1, j = 0;
7509
+ let Y = 1, j = 0;
7510
7510
  for (let rt = nt; rt < W; ++rt)
7511
- q = (q + (F[rt] & 255)) % 65521, j = (j + q) % 65521;
7512
- return j << 16 | q;
7511
+ Y = (Y + (F[rt] & 255)) % 65521, j = (j + Y) % 65521;
7512
+ return j << 16 | Y;
7513
7513
  }
7514
7514
  function L(F) {
7515
7515
  if (!T.isNodeJS)
@@ -7526,7 +7526,7 @@ function requirePdf() {
7526
7526
  }
7527
7527
  function n(F) {
7528
7528
  let nt = F.length;
7529
- const W = 65535, q = Math.ceil(nt / W), j = new Uint8Array(2 + nt + q * 5 + 4);
7529
+ const W = 65535, Y = Math.ceil(nt / W), j = new Uint8Array(2 + nt + Y * 5 + 4);
7530
7530
  let rt = 0;
7531
7531
  j[rt++] = 120, j[rt++] = 156;
7532
7532
  let C = 0;
@@ -7536,32 +7536,32 @@ function requirePdf() {
7536
7536
  const U = o(F, 0, F.length);
7537
7537
  return j[rt++] = U >> 24 & 255, j[rt++] = U >> 16 & 255, j[rt++] = U >> 8 & 255, j[rt++] = U & 255, j;
7538
7538
  }
7539
- function _(F, nt, W, q) {
7539
+ function _(F, nt, W, Y) {
7540
7540
  const j = F.width, rt = F.height;
7541
- let C, U, Y;
7541
+ let C, U, K;
7542
7542
  const S = F.data;
7543
7543
  switch (nt) {
7544
7544
  case T.ImageKind.GRAYSCALE_1BPP:
7545
- U = 0, C = 1, Y = j + 7 >> 3;
7545
+ U = 0, C = 1, K = j + 7 >> 3;
7546
7546
  break;
7547
7547
  case T.ImageKind.RGB_24BPP:
7548
- U = 2, C = 8, Y = j * 3;
7548
+ U = 2, C = 8, K = j * 3;
7549
7549
  break;
7550
7550
  case T.ImageKind.RGBA_32BPP:
7551
- U = 6, C = 8, Y = j * 4;
7551
+ U = 6, C = 8, K = j * 4;
7552
7552
  break;
7553
7553
  default:
7554
7554
  throw new Error("invalid format");
7555
7555
  }
7556
- const e = new Uint8Array((1 + Y) * rt);
7556
+ const e = new Uint8Array((1 + K) * rt);
7557
7557
  let i = 0, u = 0;
7558
7558
  for (let ht = 0; ht < rt; ++ht)
7559
- e[i++] = 0, e.set(S.subarray(u, u + Y), i), u += Y, i += Y;
7560
- if (nt === T.ImageKind.GRAYSCALE_1BPP && q) {
7559
+ e[i++] = 0, e.set(S.subarray(u, u + K), i), u += K, i += K;
7560
+ if (nt === T.ImageKind.GRAYSCALE_1BPP && Y) {
7561
7561
  i = 0;
7562
7562
  for (let ht = 0; ht < rt; ht++) {
7563
7563
  i++;
7564
- for (let dt = 0; dt < Y; dt++)
7564
+ for (let dt = 0; dt < K; dt++)
7565
7565
  e[i++] ^= 255;
7566
7566
  }
7567
7567
  }
@@ -7569,9 +7569,9 @@ function requirePdf() {
7569
7569
  let it = 0;
7570
7570
  return G.set(A, it), it += A.length, a("IHDR", P, G, it), it += r + P.length, a("IDATA", x, G, it), it += r + x.length, a("IEND", new Uint8Array(0), G, it), g(G, "image/png", W);
7571
7571
  }
7572
- return function(nt, W, q) {
7572
+ return function(nt, W, Y) {
7573
7573
  const j = nt.kind === void 0 ? T.ImageKind.GRAYSCALE_1BPP : nt.kind;
7574
- return _(nt, j, W, q);
7574
+ return _(nt, j, W, Y);
7575
7575
  };
7576
7576
  })();
7577
7577
  class O {
@@ -7863,38 +7863,38 @@ function requirePdf() {
7863
7863
  const c = this.current, s = c.font, a = c.fontSize;
7864
7864
  if (a === 0)
7865
7865
  return;
7866
- const o = c.fontSizeScale, L = c.charSpacing, n = c.wordSpacing, _ = c.fontDirection, F = c.textHScale * _, nt = s.vertical, W = nt ? 1 : -1, q = s.defaultVMetrics, j = a * c.fontMatrix[0];
7866
+ const o = c.fontSizeScale, L = c.charSpacing, n = c.wordSpacing, _ = c.fontDirection, F = c.textHScale * _, nt = s.vertical, W = nt ? 1 : -1, Y = s.defaultVMetrics, j = a * c.fontMatrix[0];
7867
7867
  let rt = 0;
7868
- for (const Y of r) {
7869
- if (Y === null) {
7868
+ for (const K of r) {
7869
+ if (K === null) {
7870
7870
  rt += _ * n;
7871
7871
  continue;
7872
- } else if (typeof Y == "number") {
7873
- rt += W * Y * a / 1e3;
7872
+ } else if (typeof K == "number") {
7873
+ rt += W * K * a / 1e3;
7874
7874
  continue;
7875
7875
  }
7876
- const S = (Y.isSpace ? n : 0) + L, e = Y.fontChar;
7877
- let i, u, P = Y.width;
7876
+ const S = (K.isSpace ? n : 0) + L, e = K.fontChar;
7877
+ let i, u, P = K.width;
7878
7878
  if (nt) {
7879
7879
  let k;
7880
- const G = Y.vmetric || q;
7881
- k = Y.vmetric ? G[1] : P * 0.5, k = -k * j;
7880
+ const G = K.vmetric || Y;
7881
+ k = K.vmetric ? G[1] : P * 0.5, k = -k * j;
7882
7882
  const it = G[2] * j;
7883
7883
  P = G ? -G[0] : P, i = k / o, u = (rt + it) / o;
7884
7884
  } else
7885
7885
  i = rt / o, u = 0;
7886
- (Y.isInFont || s.missingFile) && (c.xcoords.push(c.x + i), nt && c.ycoords.push(-c.y + u), c.tspan.textContent += e);
7886
+ (K.isInFont || s.missingFile) && (c.xcoords.push(c.x + i), nt && c.ycoords.push(-c.y + u), c.tspan.textContent += e);
7887
7887
  const x = nt ? P * j - S * _ : P * j + S * _;
7888
7888
  rt += x;
7889
7889
  }
7890
7890
  c.tspan.setAttributeNS(null, "x", c.xcoords.map(b).join(" ")), nt ? c.tspan.setAttributeNS(null, "y", c.ycoords.map(b).join(" ")) : c.tspan.setAttributeNS(null, "y", b(-c.y)), nt ? c.y -= rt : c.x += rt * F, c.tspan.setAttributeNS(null, "font-family", c.fontFamily), c.tspan.setAttributeNS(null, "font-size", `${b(c.fontSize)}px`), c.fontStyle !== ct.fontStyle && c.tspan.setAttributeNS(null, "font-style", c.fontStyle), c.fontWeight !== ct.fontWeight && c.tspan.setAttributeNS(null, "font-weight", c.fontWeight);
7891
7891
  const C = c.textRenderingMode & T.TextRenderingMode.FILL_STROKE_MASK;
7892
7892
  if (C === T.TextRenderingMode.FILL || C === T.TextRenderingMode.FILL_STROKE ? (c.fillColor !== ct.fillColor && c.tspan.setAttributeNS(null, "fill", c.fillColor), c.fillAlpha < 1 && c.tspan.setAttributeNS(null, "fill-opacity", c.fillAlpha)) : c.textRenderingMode === T.TextRenderingMode.ADD_TO_PATH ? c.tspan.setAttributeNS(null, "fill", "transparent") : c.tspan.setAttributeNS(null, "fill", "none"), C === T.TextRenderingMode.STROKE || C === T.TextRenderingMode.FILL_STROKE) {
7893
- const Y = 1 / (c.textMatrixScale || 1);
7894
- this._setStrokeAttributes(c.tspan, Y);
7893
+ const K = 1 / (c.textMatrixScale || 1);
7894
+ this._setStrokeAttributes(c.tspan, K);
7895
7895
  }
7896
7896
  let U = c.textMatrix;
7897
- c.textRise !== 0 && (U = U.slice(), U[5] += c.textRise), c.txtElement.setAttributeNS(null, "transform", `${E(U)} scale(${b(F)}, -1)`), c.txtElement.setAttributeNS(V, "xml:space", "preserve"), c.txtElement.append(c.tspan), c.txtgrp.append(c.txtElement), this._ensureTransformGroup().append(c.txtElement);
7897
+ c.textRise !== 0 && (U = U.slice(), U[5] += c.textRise), c.txtElement.setAttributeNS(null, "transform", `${E(U)} scale(${b(F)}, -1)`), c.txtElement.setAttributeNS(q, "xml:space", "preserve"), c.txtElement.append(c.tspan), c.txtgrp.append(c.txtElement), this._ensureTransformGroup().append(c.txtElement);
7898
7898
  }
7899
7899
  setLeadingMoveText(r, c) {
7900
7900
  this.setLeading(-c), this.moveText(r, c);
@@ -7962,14 +7962,14 @@ function requirePdf() {
7962
7962
  return r[0] === "TilingPattern" ? this._makeTilingPattern(r) : this._makeShadingPattern(r);
7963
7963
  }
7964
7964
  _makeTilingPattern(r) {
7965
- const c = r[1], s = r[2], a = r[3] || T.IDENTITY_MATRIX, [o, L, n, _] = r[4], F = r[5], nt = r[6], W = r[7], q = `shading${m++}`, [j, rt, C, U] = T.Util.normalizeRect([...T.Util.applyTransform([o, L], a), ...T.Util.applyTransform([n, _], a)]), [Y, S] = T.Util.singularValueDecompose2dScale(a), e = F * Y, i = nt * S, u = this.svgFactory.createElement("svg:pattern");
7966
- u.setAttributeNS(null, "id", q), u.setAttributeNS(null, "patternUnits", "userSpaceOnUse"), u.setAttributeNS(null, "width", e), u.setAttributeNS(null, "height", i), u.setAttributeNS(null, "x", `${j}`), u.setAttributeNS(null, "y", `${rt}`);
7965
+ const c = r[1], s = r[2], a = r[3] || T.IDENTITY_MATRIX, [o, L, n, _] = r[4], F = r[5], nt = r[6], W = r[7], Y = `shading${m++}`, [j, rt, C, U] = T.Util.normalizeRect([...T.Util.applyTransform([o, L], a), ...T.Util.applyTransform([n, _], a)]), [K, S] = T.Util.singularValueDecompose2dScale(a), e = F * K, i = nt * S, u = this.svgFactory.createElement("svg:pattern");
7966
+ u.setAttributeNS(null, "id", Y), u.setAttributeNS(null, "patternUnits", "userSpaceOnUse"), u.setAttributeNS(null, "width", e), u.setAttributeNS(null, "height", i), u.setAttributeNS(null, "x", `${j}`), u.setAttributeNS(null, "y", `${rt}`);
7967
7967
  const P = this.svg, x = this.transformMatrix, k = this.current.fillColor, G = this.current.strokeColor, it = this.svgFactory.create(C - j, U - rt);
7968
7968
  if (this.svg = it, this.transformMatrix = a, W === 2) {
7969
7969
  const ht = T.Util.makeHexColor(...c);
7970
7970
  this.current.fillColor = ht, this.current.strokeColor = ht;
7971
7971
  }
7972
- return this.executeOpTree(this.convertOpList(s)), this.svg = P, this.transformMatrix = x, this.current.fillColor = k, this.current.strokeColor = G, u.append(it.childNodes[0]), this.defs.append(u), `url(#${q})`;
7972
+ return this.executeOpTree(this.convertOpList(s)), this.svg = P, this.transformMatrix = x, this.current.fillColor = k, this.current.strokeColor = G, u.append(it.childNodes[0]), this.defs.append(u), `url(#${Y})`;
7973
7973
  }
7974
7974
  _makeShadingPattern(r) {
7975
7975
  switch (typeof r == "string" && (r = this.objs.get(r)), r[0]) {
@@ -8011,8 +8011,8 @@ function requirePdf() {
8011
8011
  switch (_ | 0) {
8012
8012
  case T.OPS.rectangle:
8013
8013
  a = c[n++], o = c[n++];
8014
- const F = c[n++], nt = c[n++], W = a + F, q = o + nt;
8015
- L.push("M", b(a), b(o), "L", b(W), b(o), "L", b(W), b(q), "L", b(a), b(q), "Z");
8014
+ const F = c[n++], nt = c[n++], W = a + F, Y = o + nt;
8015
+ L.push("M", b(a), b(o), "L", b(W), b(o), "L", b(W), b(Y), "L", b(a), b(Y), "Z");
8016
8016
  break;
8017
8017
  case T.OPS.moveTo:
8018
8018
  a = c[n++], o = c[n++], L.push("M", b(a), b(o));
@@ -8219,7 +8219,7 @@ function requirePdf() {
8219
8219
  }), h.XfaText = void 0;
8220
8220
  class ot {
8221
8221
  static textContent(T) {
8222
- const ct = [], V = {
8222
+ const ct = [], q = {
8223
8223
  items: ct,
8224
8224
  styles: /* @__PURE__ */ Object.create(null)
8225
8225
  };
@@ -8240,7 +8240,7 @@ function requirePdf() {
8240
8240
  for (const O of B.children)
8241
8241
  bt(O);
8242
8242
  }
8243
- return bt(T), V;
8243
+ return bt(T), q;
8244
8244
  }
8245
8245
  static shouldBuildText(T) {
8246
8246
  return !(T === "textarea" || T === "input" || T === "option" || T === "select");
@@ -8255,7 +8255,7 @@ function requirePdf() {
8255
8255
  value: !0
8256
8256
  }), h.TextLayerRenderTask = void 0, h.renderTextLayer = E, h.updateTextLayer = f;
8257
8257
  var l = ot(1), T = ot(6);
8258
- const ct = 1e5, V = 30, bt = 0.8, B = /* @__PURE__ */ new Map();
8258
+ const ct = 1e5, q = 30, bt = 0.8, B = /* @__PURE__ */ new Map();
8259
8259
  function R(d, m) {
8260
8260
  let I;
8261
8261
  if (m && l.FeatureTest.isOffscreenCanvasSupported)
@@ -8274,26 +8274,26 @@ function requirePdf() {
8274
8274
  const I = B.get(d);
8275
8275
  if (I)
8276
8276
  return I;
8277
- const A = R(V, m);
8278
- A.font = `${V}px ${d}`;
8277
+ const A = R(q, m);
8278
+ A.font = `${q}px ${d}`;
8279
8279
  const r = A.measureText("");
8280
8280
  let c = r.fontBoundingBoxAscent, s = Math.abs(r.fontBoundingBoxDescent);
8281
8281
  if (c) {
8282
8282
  const o = c / (c + s);
8283
8283
  return B.set(d, o), A.canvas.width = A.canvas.height = 0, o;
8284
8284
  }
8285
- A.strokeStyle = "red", A.clearRect(0, 0, V, V), A.strokeText("g", 0, 0);
8286
- let a = A.getImageData(0, 0, V, V).data;
8285
+ A.strokeStyle = "red", A.clearRect(0, 0, q, q), A.strokeText("g", 0, 0);
8286
+ let a = A.getImageData(0, 0, q, q).data;
8287
8287
  s = 0;
8288
8288
  for (let o = a.length - 1 - 3; o >= 0; o -= 4)
8289
8289
  if (a[o] > 0) {
8290
- s = Math.ceil(o / 4 / V);
8290
+ s = Math.ceil(o / 4 / q);
8291
8291
  break;
8292
8292
  }
8293
- A.clearRect(0, 0, V, V), A.strokeText("A", 0, V), a = A.getImageData(0, 0, V, V).data, c = 0;
8293
+ A.clearRect(0, 0, q, q), A.strokeText("A", 0, q), a = A.getImageData(0, 0, q, q).data, c = 0;
8294
8294
  for (let o = 0, L = a.length; o < L; o += 4)
8295
8295
  if (a[o] > 0) {
8296
- c = V - Math.floor(o / 4 / V);
8296
+ c = q - Math.floor(o / 4 / q);
8297
8297
  break;
8298
8298
  }
8299
8299
  if (A.canvas.width = A.canvas.height = 0, c) {
@@ -8324,8 +8324,8 @@ function requirePdf() {
8324
8324
  if (m.str.length > 1)
8325
8325
  W = !0;
8326
8326
  else if (m.str !== " " && m.transform[0] !== m.transform[3]) {
8327
- const q = Math.abs(m.transform[0]), j = Math.abs(m.transform[3]);
8328
- q !== j && Math.max(q, j) / Math.min(q, j) > 1.5 && (W = !0);
8327
+ const Y = Math.abs(m.transform[0]), j = Math.abs(m.transform[3]);
8328
+ Y !== j && Math.max(Y, j) / Math.min(Y, j) > 1.5 && (W = !0);
8329
8329
  }
8330
8330
  W && (r.canvasWidth = a.vertical ? m.height : m.width), d._textDivProperties.set(A, r), d._isReadableStream && d._layoutText(A);
8331
8331
  }
@@ -8494,11 +8494,11 @@ function requirePdf() {
8494
8494
  /* 27 */
8495
8495
  /***/
8496
8496
  ((gt, h, ot) => {
8497
- var g, N, O, v, b, E, f, d, m, I, A, Ke, we, Je, Qe;
8497
+ var g, N, O, v, b, E, f, d, m, I, A, Je, we, $e, Qe;
8498
8498
  Object.defineProperty(h, "__esModule", {
8499
8499
  value: !0
8500
8500
  }), h.AnnotationEditorLayer = void 0;
8501
- var l = ot(1), T = ot(4), ct = ot(28), V = ot(33), bt = ot(6), B = ot(34);
8501
+ var l = ot(1), T = ot(4), ct = ot(28), q = ot(33), bt = ot(6), B = ot(34);
8502
8502
  const o = class o {
8503
8503
  constructor({
8504
8504
  uiManager: n,
@@ -8506,7 +8506,7 @@ function requirePdf() {
8506
8506
  div: F,
8507
8507
  accessibilityManager: nt,
8508
8508
  annotationLayer: W,
8509
- viewport: q,
8509
+ viewport: Y,
8510
8510
  l10n: j
8511
8511
  }) {
8512
8512
  Q(this, A);
@@ -8520,13 +8520,13 @@ function requirePdf() {
8520
8520
  Q(this, d, !1);
8521
8521
  Q(this, m, !1);
8522
8522
  Q(this, I);
8523
- const rt = [ct.FreeTextEditor, V.InkEditor, B.StampEditor];
8523
+ const rt = [ct.FreeTextEditor, q.InkEditor, B.StampEditor];
8524
8524
  if (!o._initialized) {
8525
8525
  o._initialized = !0;
8526
8526
  for (const C of rt)
8527
8527
  C.initialize(j);
8528
8528
  }
8529
- n.registerEditorTypes(rt), et(this, I, n), this.pageIndex = _, this.div = F, et(this, g, nt), et(this, O, W), this.viewport = q, t(this, I).addLayer(this);
8529
+ n.registerEditorTypes(rt), et(this, I, n), this.pageIndex = _, this.div = F, et(this, g, nt), et(this, O, W), this.viewport = Y, t(this, I).addLayer(this);
8530
8530
  }
8531
8531
  get isEmpty() {
8532
8532
  return t(this, E).size === 0;
@@ -8671,7 +8671,7 @@ function requirePdf() {
8671
8671
  const {
8672
8672
  offsetX: F,
8673
8673
  offsetY: nt
8674
- } = z(this, A, Je).call(this), W = this.getNextId(), q = z(this, A, Ke).call(this, {
8674
+ } = z(this, A, $e).call(this), W = this.getNextId(), Y = z(this, A, Je).call(this, {
8675
8675
  parent: this,
8676
8676
  id: W,
8677
8677
  x: F,
@@ -8680,21 +8680,21 @@ function requirePdf() {
8680
8680
  isCentered: !0,
8681
8681
  ..._
8682
8682
  });
8683
- q && this.add(q);
8683
+ Y && this.add(Y);
8684
8684
  }
8685
8685
  deserialize(n) {
8686
8686
  switch (n.annotationType ?? n.annotationEditorType) {
8687
8687
  case l.AnnotationEditorType.FREETEXT:
8688
8688
  return ct.FreeTextEditor.deserialize(n, this, t(this, I));
8689
8689
  case l.AnnotationEditorType.INK:
8690
- return V.InkEditor.deserialize(n, this, t(this, I));
8690
+ return q.InkEditor.deserialize(n, this, t(this, I));
8691
8691
  case l.AnnotationEditorType.STAMP:
8692
8692
  return B.StampEditor.deserialize(n, this, t(this, I));
8693
8693
  }
8694
8694
  return null;
8695
8695
  }
8696
8696
  addNewEditor() {
8697
- z(this, A, we).call(this, z(this, A, Je).call(this), !0);
8697
+ z(this, A, we).call(this, z(this, A, $e).call(this), !0);
8698
8698
  }
8699
8699
  setSelected(n) {
8700
8700
  t(this, I).setSelected(n);
@@ -8772,18 +8772,18 @@ function requirePdf() {
8772
8772
  return [n, _];
8773
8773
  }
8774
8774
  };
8775
- g = new WeakMap(), N = new WeakMap(), O = new WeakMap(), v = new WeakMap(), b = new WeakMap(), E = new WeakMap(), f = new WeakMap(), d = new WeakMap(), m = new WeakMap(), I = new WeakMap(), A = new WeakSet(), Ke = function(n) {
8775
+ g = new WeakMap(), N = new WeakMap(), O = new WeakMap(), v = new WeakMap(), b = new WeakMap(), E = new WeakMap(), f = new WeakMap(), d = new WeakMap(), m = new WeakMap(), I = new WeakMap(), A = new WeakSet(), Je = function(n) {
8776
8776
  switch (t(this, I).getMode()) {
8777
8777
  case l.AnnotationEditorType.FREETEXT:
8778
8778
  return new ct.FreeTextEditor(n);
8779
8779
  case l.AnnotationEditorType.INK:
8780
- return new V.InkEditor(n);
8780
+ return new q.InkEditor(n);
8781
8781
  case l.AnnotationEditorType.STAMP:
8782
8782
  return new B.StampEditor(n);
8783
8783
  }
8784
8784
  return null;
8785
8785
  }, we = function(n, _) {
8786
- const F = this.getNextId(), nt = z(this, A, Ke).call(this, {
8786
+ const F = this.getNextId(), nt = z(this, A, Je).call(this, {
8787
8787
  parent: this,
8788
8788
  id: F,
8789
8789
  x: n.offsetX,
@@ -8792,15 +8792,15 @@ function requirePdf() {
8792
8792
  isCentered: _
8793
8793
  });
8794
8794
  return nt && this.add(nt), nt;
8795
- }, Je = function() {
8795
+ }, $e = function() {
8796
8796
  const {
8797
8797
  x: n,
8798
8798
  y: _,
8799
8799
  width: F,
8800
8800
  height: nt
8801
- } = this.div.getBoundingClientRect(), W = Math.max(0, n), q = Math.max(0, _), j = Math.min(window.innerWidth, n + F), rt = Math.min(window.innerHeight, _ + nt), C = (W + j) / 2 - n, U = (q + rt) / 2 - _, [Y, S] = this.viewport.rotation % 180 === 0 ? [C, U] : [U, C];
8801
+ } = this.div.getBoundingClientRect(), W = Math.max(0, n), Y = Math.max(0, _), j = Math.min(window.innerWidth, n + F), rt = Math.min(window.innerHeight, _ + nt), C = (W + j) / 2 - n, U = (Y + rt) / 2 - _, [K, S] = this.viewport.rotation % 180 === 0 ? [C, U] : [U, C];
8802
8802
  return {
8803
- offsetX: Y,
8803
+ offsetX: K,
8804
8804
  offsetY: S
8805
8805
  };
8806
8806
  }, Qe = function() {
@@ -8808,7 +8808,7 @@ function requirePdf() {
8808
8808
  for (const n of t(this, E).values())
8809
8809
  n.isEmpty() && n.remove();
8810
8810
  et(this, d, !1);
8811
- }, Kt(o, "_initialized", !1);
8811
+ }, Jt(o, "_initialized", !1);
8812
8812
  let R = o;
8813
8813
  h.AnnotationEditorLayer = R;
8814
8814
  }),
@@ -8819,7 +8819,7 @@ function requirePdf() {
8819
8819
  Object.defineProperty(h, "__esModule", {
8820
8820
  value: !0
8821
8821
  }), h.FreeTextEditor = void 0;
8822
- var l = ot(1), T = ot(5), ct = ot(4), V = ot(29);
8822
+ var l = ot(1), T = ot(5), ct = ot(4), q = ot(29);
8823
8823
  const o = class o extends ct.AnnotationEditor {
8824
8824
  constructor(_) {
8825
8825
  super({
@@ -8839,7 +8839,7 @@ function requirePdf() {
8839
8839
  et(this, O, _.color || o._defaultColor || ct.AnnotationEditor._defaultLineColor), et(this, E, _.fontSize || o._defaultFontSize);
8840
8840
  }
8841
8841
  static get _keyboardManager() {
8842
- const _ = o.prototype, F = (q) => q.isEmpty(), nt = T.AnnotationEditorUIManager.TRANSLATE_SMALL, W = T.AnnotationEditorUIManager.TRANSLATE_BIG;
8842
+ const _ = o.prototype, F = (Y) => Y.isEmpty(), nt = T.AnnotationEditorUIManager.TRANSLATE_SMALL, W = T.AnnotationEditorUIManager.TRANSLATE_BIG;
8843
8843
  return (0, l.shadow)(this, "_keyboardManager", new T.KeyboardManager([[["ctrl+s", "mac+meta+s", "ctrl+p", "mac+meta+p"], _.commitOrRemove, {
8844
8844
  bubbles: !0
8845
8845
  }], [["ctrl+Enter", "mac+meta+Enter", "Escape", "mac+Escape"], _.commitOrRemove], [["ArrowLeft", "mac+ArrowLeft"], _._translateEmpty, {
@@ -8995,42 +8995,42 @@ function requirePdf() {
8995
8995
  return this.div;
8996
8996
  let _, F;
8997
8997
  this.width && (_ = this.x, F = this.y), super.render(), this.editorDiv = document.createElement("div"), this.editorDiv.className = "internal", this.editorDiv.setAttribute("id", t(this, b)), this.enableEditing(), ct.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then((W) => {
8998
- var q;
8999
- return (q = this.editorDiv) == null ? void 0 : q.setAttribute("aria-label", W);
8998
+ var Y;
8999
+ return (Y = this.editorDiv) == null ? void 0 : Y.setAttribute("aria-label", W);
9000
9000
  }), ct.AnnotationEditor._l10nPromise.get("free_text2_default_content").then((W) => {
9001
- var q;
9002
- return (q = this.editorDiv) == null ? void 0 : q.setAttribute("default-content", W);
9001
+ var Y;
9002
+ return (Y = this.editorDiv) == null ? void 0 : Y.setAttribute("default-content", W);
9003
9003
  }), this.editorDiv.contentEditable = !0;
9004
9004
  const {
9005
9005
  style: nt
9006
9006
  } = this.editorDiv;
9007
9007
  if (nt.fontSize = `calc(${t(this, E)}px * var(--scale-factor))`, nt.color = t(this, O), this.div.append(this.editorDiv), this.overlayDiv = document.createElement("div"), this.overlayDiv.classList.add("overlay", "enabled"), this.div.append(this.overlayDiv), (0, T.bindEvents)(this, this.div, ["dblclick", "keydown"]), this.width) {
9008
- const [W, q] = this.parentDimensions;
9008
+ const [W, Y] = this.parentDimensions;
9009
9009
  if (this.annotationElementId) {
9010
9010
  const {
9011
9011
  position: j
9012
9012
  } = t(this, f);
9013
9013
  let [rt, C] = this.getInitialTranslation();
9014
9014
  [rt, C] = this.pageTranslationToScreen(rt, C);
9015
- const [U, Y] = this.pageDimensions, [S, e] = this.pageTranslation;
9015
+ const [U, K] = this.pageDimensions, [S, e] = this.pageTranslation;
9016
9016
  let i, u;
9017
9017
  switch (this.rotation) {
9018
9018
  case 0:
9019
- i = _ + (j[0] - S) / U, u = F + this.height - (j[1] - e) / Y;
9019
+ i = _ + (j[0] - S) / U, u = F + this.height - (j[1] - e) / K;
9020
9020
  break;
9021
9021
  case 90:
9022
- i = _ + (j[0] - S) / U, u = F - (j[1] - e) / Y, [rt, C] = [C, -rt];
9022
+ i = _ + (j[0] - S) / U, u = F - (j[1] - e) / K, [rt, C] = [C, -rt];
9023
9023
  break;
9024
9024
  case 180:
9025
- i = _ - this.width + (j[0] - S) / U, u = F - (j[1] - e) / Y, [rt, C] = [-rt, -C];
9025
+ i = _ - this.width + (j[0] - S) / U, u = F - (j[1] - e) / K, [rt, C] = [-rt, -C];
9026
9026
  break;
9027
9027
  case 270:
9028
- i = _ + (j[0] - S - this.height * Y) / U, u = F + (j[1] - e - this.width * U) / Y, [rt, C] = [-C, rt];
9028
+ i = _ + (j[0] - S - this.height * K) / U, u = F + (j[1] - e - this.width * U) / K, [rt, C] = [-C, rt];
9029
9029
  break;
9030
9030
  }
9031
- this.setAt(i * W, u * q, rt, C);
9031
+ this.setAt(i * W, u * Y, rt, C);
9032
9032
  } else
9033
- this.setAt(_ * W, F * q, this.width * W, this.height * q);
9033
+ this.setAt(_ * W, F * Y, this.width * W, this.height * Y);
9034
9034
  z(this, d, Ze).call(this), this._isDraggable = !0, this.editorDiv.contentEditable = !1;
9035
9035
  } else
9036
9036
  this._isDraggable = !1, this.editorDiv.contentEditable = !0;
@@ -9041,7 +9041,7 @@ function requirePdf() {
9041
9041
  }
9042
9042
  static deserialize(_, F, nt) {
9043
9043
  let W = null;
9044
- if (_ instanceof V.FreeTextAnnotationElement) {
9044
+ if (_ instanceof q.FreeTextAnnotationElement) {
9045
9045
  const {
9046
9046
  data: {
9047
9047
  defaultAppearanceData: {
@@ -9050,7 +9050,7 @@ function requirePdf() {
9050
9050
  },
9051
9051
  rect: C,
9052
9052
  rotation: U,
9053
- id: Y
9053
+ id: K
9054
9054
  },
9055
9055
  textContent: S,
9056
9056
  textPosition: e,
@@ -9072,12 +9072,12 @@ function requirePdf() {
9072
9072
  pageIndex: i - 1,
9073
9073
  rect: C,
9074
9074
  rotation: U,
9075
- id: Y,
9075
+ id: K,
9076
9076
  deleted: !1
9077
9077
  };
9078
9078
  }
9079
- const q = super.deserialize(_, F, nt);
9080
- return et(q, E, _.fontSize), et(q, O, l.Util.makeHexColor(..._.color)), et(q, v, _.value), q.annotationElementId = _.id || null, et(q, f, W), q;
9079
+ const Y = super.deserialize(_, F, nt);
9080
+ return et(Y, E, _.fontSize), et(Y, O, l.Util.makeHexColor(..._.color)), et(Y, v, _.value), Y.annotationElementId = _.id || null, et(Y, f, W), Y;
9081
9081
  }
9082
9082
  serialize(_ = !1) {
9083
9083
  if (this.isEmpty())
@@ -9088,7 +9088,7 @@ function requirePdf() {
9088
9088
  id: this.annotationElementId,
9089
9089
  deleted: !0
9090
9090
  };
9091
- const F = o._internalPadding * this.parentScale, nt = this.getRect(F, F), W = ct.AnnotationEditor._colorManager.convert(this.isAttachedToDOM ? getComputedStyle(this.editorDiv).color : t(this, O)), q = {
9091
+ const F = o._internalPadding * this.parentScale, nt = this.getRect(F, F), W = ct.AnnotationEditor._colorManager.convert(this.isAttachedToDOM ? getComputedStyle(this.editorDiv).color : t(this, O)), Y = {
9092
9092
  annotationType: l.AnnotationEditorType.FREETEXT,
9093
9093
  color: W,
9094
9094
  fontSize: t(this, E),
@@ -9098,7 +9098,7 @@ function requirePdf() {
9098
9098
  rotation: this.rotation,
9099
9099
  structTreeParentId: this._structTreeParentId
9100
9100
  };
9101
- return _ ? q : this.annotationElementId && !z(this, d, ki).call(this, q) ? null : (q.id = this.annotationElementId, q);
9101
+ return _ ? Y : this.annotationElementId && !z(this, d, ki).call(this, Y) ? null : (Y.id = this.annotationElementId, Y);
9102
9102
  }
9103
9103
  };
9104
9104
  B = new WeakMap(), R = new WeakMap(), g = new WeakMap(), N = new WeakMap(), O = new WeakMap(), v = new WeakMap(), b = new WeakMap(), E = new WeakMap(), f = new WeakMap(), d = new WeakSet(), Ti = function(_) {
@@ -9148,9 +9148,9 @@ function requirePdf() {
9148
9148
  else {
9149
9149
  const {
9150
9150
  currentLayer: W,
9151
- div: q
9152
- } = this, j = q.style.display;
9153
- q.style.display = "hidden", W.div.append(this.div), nt = q.getBoundingClientRect(), q.remove(), q.style.display = j;
9151
+ div: Y
9152
+ } = this, j = Y.style.display;
9153
+ Y.style.display = "hidden", W.div.append(this.div), nt = Y.getBoundingClientRect(), Y.remove(), Y.style.display = j;
9154
9154
  }
9155
9155
  this.rotation % 180 === this.parentRotation % 180 ? (this.width = nt.width / _, this.height = nt.height / F) : (this.width = nt.height / _, this.height = nt.width / F), this.fixAndSetPosition();
9156
9156
  }, Ze = function() {
@@ -9165,10 +9165,10 @@ function requirePdf() {
9165
9165
  value: F,
9166
9166
  fontSize: nt,
9167
9167
  color: W,
9168
- rect: q,
9168
+ rect: Y,
9169
9169
  pageIndex: j
9170
9170
  } = t(this, f);
9171
- return _.value !== F || _.fontSize !== nt || _.rect.some((rt, C) => Math.abs(rt - q[C]) >= 1) || _.color.some((rt, C) => rt !== W[C]) || _.pageIndex !== j;
9171
+ return _.value !== F || _.fontSize !== nt || _.rect.some((rt, C) => Math.abs(rt - Y[C]) >= 1) || _.color.some((rt, C) => rt !== W[C]) || _.pageIndex !== j;
9172
9172
  }, ti = function(_ = !1) {
9173
9173
  if (!this.annotationElementId)
9174
9174
  return;
@@ -9178,18 +9178,18 @@ function requirePdf() {
9178
9178
  }
9179
9179
  const F = o._internalPadding * this.parentScale;
9180
9180
  t(this, f).rect = this.getRect(F, F);
9181
- }, Kt(o, "_freeTextDefaultContent", ""), Kt(o, "_internalPadding", 0), Kt(o, "_defaultColor", null), Kt(o, "_defaultFontSize", 10), Kt(o, "_type", "freetext");
9181
+ }, Jt(o, "_freeTextDefaultContent", ""), Jt(o, "_internalPadding", 0), Jt(o, "_defaultColor", null), Jt(o, "_defaultFontSize", 10), Jt(o, "_type", "freetext");
9182
9182
  let bt = o;
9183
9183
  h.FreeTextEditor = bt;
9184
9184
  }),
9185
9185
  /* 29 */
9186
9186
  /***/
9187
9187
  ((gt, h, ot) => {
9188
- var u, x, ne, Fi, it, ht, dt, pt, At, vt, K, Z, p, M, X, J, ut, St, yt, $, Tt, wt, Mi, Ce, ei, ii, Nt, $t, qt, _t, tt, st, kt, si, Gt, D, ft, Ct, Ri, ni;
9188
+ var u, x, ne, Fi, it, ht, dt, pt, At, vt, J, Z, p, M, X, $, ut, St, yt, V, Tt, wt, Mi, Ce, ei, ii, Nt, Vt, Yt, _t, tt, st, kt, si, Gt, D, ft, Ct, Ri, ni;
9189
9189
  Object.defineProperty(h, "__esModule", {
9190
9190
  value: !0
9191
9191
  }), h.StampAnnotationElement = h.InkAnnotationElement = h.FreeTextAnnotationElement = h.AnnotationLayer = void 0;
9192
- var l = ot(1), T = ot(6), ct = ot(3), V = ot(30), bt = ot(31), B = ot(32);
9192
+ var l = ot(1), T = ot(6), ct = ot(3), q = ot(30), bt = ot(31), B = ot(32);
9193
9193
  const R = 1e3, g = 9, N = /* @__PURE__ */ new WeakSet();
9194
9194
  function O(xt) {
9195
9195
  return {
@@ -9229,7 +9229,7 @@ function requirePdf() {
9229
9229
  case l.AnnotationType.POLYLINE:
9230
9230
  return new nt(w);
9231
9231
  case l.AnnotationType.CARET:
9232
- return new q(w);
9232
+ return new Y(w);
9233
9233
  case l.AnnotationType.INK:
9234
9234
  return new j(w);
9235
9235
  case l.AnnotationType.POLYGON:
@@ -9241,7 +9241,7 @@ function requirePdf() {
9241
9241
  case l.AnnotationType.SQUIGGLY:
9242
9242
  return new U(w);
9243
9243
  case l.AnnotationType.STRIKEOUT:
9244
- return new Y(w);
9244
+ return new K(w);
9245
9245
  case l.AnnotationType.STAMP:
9246
9246
  return new S(w);
9247
9247
  case l.AnnotationType.FILEATTACHMENT:
@@ -9299,11 +9299,11 @@ function requirePdf() {
9299
9299
  lt.style.borderWidth = `${y.borderStyle.width}px`;
9300
9300
  const Ut = y.borderStyle.horizontalCornerRadius, Wt = y.borderStyle.verticalCornerRadius;
9301
9301
  if (Ut > 0 || Wt > 0) {
9302
- const Yt = `calc(${Ut}px * var(--scale-factor)) / calc(${Wt}px * var(--scale-factor))`;
9303
- lt.style.borderRadius = Yt;
9302
+ const Kt = `calc(${Ut}px * var(--scale-factor)) / calc(${Wt}px * var(--scale-factor))`;
9303
+ lt.style.borderRadius = Kt;
9304
9304
  } else if (this instanceof r) {
9305
- const Yt = `calc(${Pt}px * var(--scale-factor)) / calc(${Ht}px * var(--scale-factor))`;
9306
- lt.style.borderRadius = Yt;
9305
+ const Kt = `calc(${Pt}px * var(--scale-factor)) / calc(${Ht}px * var(--scale-factor))`;
9306
+ lt.style.borderRadius = Kt;
9307
9307
  }
9308
9308
  switch (y.borderStyle.style) {
9309
9309
  case l.AnnotationBorderStyleType.SOLID:
@@ -9322,8 +9322,8 @@ function requirePdf() {
9322
9322
  lt.style.borderBottomStyle = "solid";
9323
9323
  break;
9324
9324
  }
9325
- const Vt = y.borderColor || null;
9326
- Vt ? (et(this, u, !0), lt.style.borderColor = l.Util.makeHexColor(Vt[0] | 0, Vt[1] | 0, Vt[2] | 0)) : lt.style.borderWidth = 0;
9325
+ const qt = y.borderColor || null;
9326
+ qt ? (et(this, u, !0), lt.style.borderColor = l.Util.makeHexColor(qt[0] | 0, qt[1] | 0, qt[2] | 0)) : lt.style.borderWidth = 0;
9327
9327
  }
9328
9328
  lt.style.left = `${100 * (Rt[0] - It) / mt}%`, lt.style.top = `${100 * (Rt[1] - Mt) / Et}%`;
9329
9329
  const {
@@ -9347,8 +9347,8 @@ function requirePdf() {
9347
9347
  get _commonActions() {
9348
9348
  const w = (y, H, at) => {
9349
9349
  const lt = at.detail[y], mt = lt[0], Et = lt.slice(1);
9350
- at.target.style[H] = V.ColorConverters[`${mt}_HTML`](Et), this.annotationStorage.setValue(this.data.id, {
9351
- [H]: V.ColorConverters[`${mt}_rgb`](Et)
9350
+ at.target.style[H] = q.ColorConverters[`${mt}_HTML`](Et), this.annotationStorage.setValue(this.data.id, {
9351
+ [H]: q.ColorConverters[`${mt}_rgb`](Et)
9352
9352
  });
9353
9353
  };
9354
9354
  return (0, l.shadow)(this, "_commonActions", {
@@ -9454,12 +9454,12 @@ function requirePdf() {
9454
9454
  if (w.length === 1) {
9455
9455
  const [, {
9456
9456
  x: Wt,
9457
- y: Vt
9457
+ y: qt
9458
9458
  }, {
9459
- x: Yt,
9459
+ x: Kt,
9460
9460
  y: Qt
9461
9461
  }] = w[0];
9462
- if (at === Wt && lt === Vt && y === Yt && H === Qt)
9462
+ if (at === Wt && lt === qt && y === Kt && H === Qt)
9463
9463
  return;
9464
9464
  }
9465
9465
  const {
@@ -9469,9 +9469,9 @@ function requirePdf() {
9469
9469
  if (t(this, u)) {
9470
9470
  const {
9471
9471
  borderColor: Wt,
9472
- borderWidth: Vt
9472
+ borderWidth: qt
9473
9473
  } = mt;
9474
- mt.borderWidth = 0, Et = ["url('data:image/svg+xml;utf8,", '<svg xmlns="http://www.w3.org/2000/svg"', ' preserveAspectRatio="none" viewBox="0 0 1 1">', `<g fill="transparent" stroke="${Wt}" stroke-width="${Vt}">`], this.container.classList.add("hasBorder");
9474
+ mt.borderWidth = 0, Et = ["url('data:image/svg+xml;utf8,", '<svg xmlns="http://www.w3.org/2000/svg"', ' preserveAspectRatio="none" viewBox="0 0 1 1">', `<g fill="transparent" stroke="${Wt}" stroke-width="${qt}">`], this.container.classList.add("hasBorder");
9475
9475
  }
9476
9476
  const It = at - y, Mt = lt - H, {
9477
9477
  svgFactory: Pt
@@ -9483,13 +9483,13 @@ function requirePdf() {
9483
9483
  Lt.setAttribute("id", Ut), Lt.setAttribute("clipPathUnits", "objectBoundingBox"), Rt.append(Lt);
9484
9484
  for (const [, {
9485
9485
  x: Wt,
9486
- y: Vt
9486
+ y: qt
9487
9487
  }, {
9488
- x: Yt,
9488
+ x: Kt,
9489
9489
  y: Qt
9490
9490
  }] of w) {
9491
- const Jt = Pt.createElement("rect"), te = (Yt - y) / It, ie = (lt - Vt) / Mt, se = (Wt - Yt) / It, fi = (Vt - Qt) / Mt;
9492
- Jt.setAttribute("x", te), Jt.setAttribute("y", ie), Jt.setAttribute("width", se), Jt.setAttribute("height", fi), Lt.append(Jt), Et == null || Et.push(`<rect vector-effect="non-scaling-stroke" x="${te}" y="${ie}" width="${se}" height="${fi}"/>`);
9491
+ const $t = Pt.createElement("rect"), te = (Kt - y) / It, ie = (lt - qt) / Mt, se = (Wt - Kt) / It, fi = (qt - Qt) / Mt;
9492
+ $t.setAttribute("x", te), $t.setAttribute("y", ie), $t.setAttribute("width", se), $t.setAttribute("height", fi), Lt.append($t), Et == null || Et.push(`<rect vector-effect="non-scaling-stroke" x="${te}" y="${ie}" width="${se}" height="${fi}"/>`);
9493
9493
  }
9494
9494
  t(this, u) && (Et.push("</g></svg>')"), mt.backgroundImage = Et.join("")), this.container.append(Ht), this.container.style.clipPath = `url(#${Ut})`;
9495
9495
  }
@@ -9892,31 +9892,31 @@ function requirePdf() {
9892
9892
  },
9893
9893
  formattedValue(Wt) {
9894
9894
  const {
9895
- formattedValue: Vt
9895
+ formattedValue: qt
9896
9896
  } = Wt.detail;
9897
- Pt.formattedValue = Vt, Vt != null && Wt.target !== document.activeElement && (Wt.target.value = Vt), w.setValue(y, {
9898
- formattedValue: Vt
9897
+ Pt.formattedValue = qt, qt != null && Wt.target !== document.activeElement && (Wt.target.value = qt), w.setValue(y, {
9898
+ formattedValue: qt
9899
9899
  });
9900
9900
  },
9901
9901
  selRange(Wt) {
9902
9902
  Wt.target.setSelectionRange(...Wt.detail.selRange);
9903
9903
  },
9904
9904
  charLimit: (Wt) => {
9905
- var Jt;
9905
+ var $t;
9906
9906
  const {
9907
- charLimit: Vt
9907
+ charLimit: qt
9908
9908
  } = Wt.detail, {
9909
- target: Yt
9909
+ target: Kt
9910
9910
  } = Wt;
9911
- if (Vt === 0) {
9912
- Yt.removeAttribute("maxLength");
9911
+ if (qt === 0) {
9912
+ Kt.removeAttribute("maxLength");
9913
9913
  return;
9914
9914
  }
9915
- Yt.setAttribute("maxLength", Vt);
9915
+ Kt.setAttribute("maxLength", qt);
9916
9916
  let Qt = Pt.userValue;
9917
- !Qt || Qt.length <= Vt || (Qt = Qt.slice(0, Vt), Yt.value = Pt.userValue = Qt, w.setValue(y, {
9917
+ !Qt || Qt.length <= qt || (Qt = Qt.slice(0, qt), Kt.value = Pt.userValue = Qt, w.setValue(y, {
9918
9918
  value: Qt
9919
- }), (Jt = this.linkService.eventBus) == null || Jt.dispatch("dispatcheventinsandbox", {
9919
+ }), ($t = this.linkService.eventBus) == null || $t.dispatch("dispatcheventinsandbox", {
9920
9920
  source: this,
9921
9921
  detail: {
9922
9922
  id: y,
@@ -9924,15 +9924,15 @@ function requirePdf() {
9924
9924
  value: Qt,
9925
9925
  willCommit: !0,
9926
9926
  commitKey: 1,
9927
- selStart: Yt.selectionStart,
9928
- selEnd: Yt.selectionEnd
9927
+ selStart: Kt.selectionStart,
9928
+ selEnd: Kt.selectionEnd
9929
9929
  }
9930
9930
  }));
9931
9931
  }
9932
9932
  };
9933
9933
  this._dispatchEventFromSandbox(Ut, Lt);
9934
9934
  }), H.addEventListener("keydown", (Lt) => {
9935
- var Vt;
9935
+ var qt;
9936
9936
  Pt.commitKey = 1;
9937
9937
  let Ut = -1;
9938
9938
  if (Lt.key === "Escape" ? Ut = 0 : Lt.key === "Enter" && !this.data.multiLine ? Ut = 2 : Lt.key === "Tab" && (Pt.commitKey = 3), Ut === -1)
@@ -9940,7 +9940,7 @@ function requirePdf() {
9940
9940
  const {
9941
9941
  value: Wt
9942
9942
  } = Lt.target;
9943
- Pt.lastCommittedValue !== Wt && (Pt.lastCommittedValue = Wt, Pt.userValue = Wt, (Vt = this.linkService.eventBus) == null || Vt.dispatch("dispatcheventinsandbox", {
9943
+ Pt.lastCommittedValue !== Wt && (Pt.lastCommittedValue = Wt, Pt.userValue = Wt, (qt = this.linkService.eventBus) == null || qt.dispatch("dispatcheventinsandbox", {
9944
9944
  source: this,
9945
9945
  detail: {
9946
9946
  id: y,
@@ -9981,27 +9981,27 @@ function requirePdf() {
9981
9981
  data: Ut,
9982
9982
  target: Wt
9983
9983
  } = Lt, {
9984
- value: Vt,
9985
- selectionStart: Yt,
9984
+ value: qt,
9985
+ selectionStart: Kt,
9986
9986
  selectionEnd: Qt
9987
9987
  } = Wt;
9988
- let Jt = Yt, te = Qt;
9988
+ let $t = Kt, te = Qt;
9989
9989
  switch (Lt.inputType) {
9990
9990
  case "deleteWordBackward": {
9991
- const se = Vt.substring(0, Yt).match(/\w*[^\w]*$/);
9992
- se && (Jt -= se[0].length);
9991
+ const se = qt.substring(0, Kt).match(/\w*[^\w]*$/);
9992
+ se && ($t -= se[0].length);
9993
9993
  break;
9994
9994
  }
9995
9995
  case "deleteWordForward": {
9996
- const se = Vt.substring(Yt).match(/^[^\w]*\w*/);
9996
+ const se = qt.substring(Kt).match(/^[^\w]*\w*/);
9997
9997
  se && (te += se[0].length);
9998
9998
  break;
9999
9999
  }
10000
10000
  case "deleteContentBackward":
10001
- Yt === Qt && (Jt -= 1);
10001
+ Kt === Qt && ($t -= 1);
10002
10002
  break;
10003
10003
  case "deleteContentForward":
10004
- Yt === Qt && (te += 1);
10004
+ Kt === Qt && (te += 1);
10005
10005
  break;
10006
10006
  }
10007
10007
  Lt.preventDefault(), (ie = this.linkService.eventBus) == null || ie.dispatch("dispatcheventinsandbox", {
@@ -10009,10 +10009,10 @@ function requirePdf() {
10009
10009
  detail: {
10010
10010
  id: y,
10011
10011
  name: "Keystroke",
10012
- value: Vt,
10012
+ value: qt,
10013
10013
  change: Ut || "",
10014
10014
  willCommit: !1,
10015
- selStart: Jt,
10015
+ selStart: $t,
10016
10016
  selEnd: te
10017
10017
  }
10018
10018
  });
@@ -10204,7 +10204,7 @@ function requirePdf() {
10204
10204
  },
10205
10205
  remove(Rt) {
10206
10206
  const Lt = at.options, Ut = Rt.detail.remove;
10207
- Lt[Ut].selected = !1, at.remove(Ut), Lt.length > 0 && Array.prototype.findIndex.call(Lt, (Vt) => Vt.selected) === -1 && (Lt[0].selected = !0), w.setValue(y, {
10207
+ Lt[Ut].selected = !1, at.remove(Ut), Lt.length > 0 && Array.prototype.findIndex.call(Lt, (qt) => qt.selected) === -1 && (Lt[0].selected = !0), w.setValue(y, {
10208
10208
  value: Et(!0),
10209
10209
  items: Mt(Rt)
10210
10210
  }), It = Et(!1);
@@ -10222,8 +10222,8 @@ function requirePdf() {
10222
10222
  index: Lt,
10223
10223
  displayValue: Ut,
10224
10224
  exportValue: Wt
10225
- } = Rt.detail.insert, Vt = at.children[Lt], Yt = document.createElement("option");
10226
- Yt.textContent = Ut, Yt.value = Wt, Vt ? Vt.before(Yt) : at.append(Yt), w.setValue(y, {
10225
+ } = Rt.detail.insert, qt = at.children[Lt], Kt = document.createElement("option");
10226
+ Kt.textContent = Ut, Kt.value = Wt, qt ? qt.before(Kt) : at.append(Kt), w.setValue(y, {
10227
10227
  value: Et(!0),
10228
10228
  items: Mt(Rt)
10229
10229
  }), It = Et(!1);
@@ -10237,9 +10237,9 @@ function requirePdf() {
10237
10237
  for (const Ut of Lt) {
10238
10238
  const {
10239
10239
  displayValue: Wt,
10240
- exportValue: Vt
10241
- } = Ut, Yt = document.createElement("option");
10242
- Yt.textContent = Wt, Yt.value = Vt, at.append(Yt);
10240
+ exportValue: qt
10241
+ } = Ut, Kt = document.createElement("option");
10242
+ Kt.textContent = Wt, Kt.value = qt, at.append(Kt);
10243
10243
  }
10244
10244
  at.options.length > 0 && (at.options[0].selected = !0), w.setValue(y, {
10245
10245
  value: Et(!0),
@@ -10334,19 +10334,19 @@ function requirePdf() {
10334
10334
  Q(this, pt, z(this, wt, ei).bind(this));
10335
10335
  Q(this, At, z(this, wt, Ce).bind(this));
10336
10336
  Q(this, vt, null);
10337
- Q(this, K, null);
10337
+ Q(this, J, null);
10338
10338
  Q(this, Z, null);
10339
10339
  Q(this, p, null);
10340
10340
  Q(this, M, null);
10341
10341
  Q(this, X, null);
10342
- Q(this, J, !1);
10342
+ Q(this, $, !1);
10343
10343
  Q(this, ut, null);
10344
10344
  Q(this, St, null);
10345
10345
  Q(this, yt, null);
10346
- Q(this, $, null);
10346
+ Q(this, V, null);
10347
10347
  Q(this, Tt, !1);
10348
10348
  var Lt;
10349
- et(this, K, w), et(this, $, at), et(this, Z, mt), et(this, yt, Et), et(this, M, It), et(this, vt, y), et(this, St, Mt), et(this, X, Pt), et(this, p, H);
10349
+ et(this, J, w), et(this, V, at), et(this, Z, mt), et(this, yt, Et), et(this, M, It), et(this, vt, y), et(this, St, Mt), et(this, X, Pt), et(this, p, H);
10350
10350
  const Rt = T.PDFDateString.toDateObject(lt);
10351
10351
  Rt && et(this, it, It.l10n.get("annotation_date_string", {
10352
10352
  date: Rt.toLocaleDateString(),
@@ -10356,7 +10356,7 @@ function requirePdf() {
10356
10356
  Ut.addEventListener("click", t(this, At)), Ut.addEventListener("mouseenter", t(this, pt)), Ut.addEventListener("mouseleave", t(this, dt)), Ut.classList.add("popupTriggerArea");
10357
10357
  for (const Ut of H)
10358
10358
  (Lt = Ut.container) == null || Lt.addEventListener("keydown", t(this, ht));
10359
- t(this, K).hidden = !0, Ht && z(this, wt, Ce).call(this);
10359
+ t(this, J).hidden = !0, Ht && z(this, wt, Ce).call(this);
10360
10360
  }
10361
10361
  render() {
10362
10362
  if (t(this, ut))
@@ -10375,8 +10375,8 @@ function requirePdf() {
10375
10375
  }
10376
10376
  } = t(this, M), mt = et(this, ut, document.createElement("div"));
10377
10377
  if (mt.className = "popup", t(this, vt)) {
10378
- const Jt = mt.style.outlineColor = l.Util.makeHexColor(...t(this, vt));
10379
- CSS.supports("background-color", "color-mix(in srgb, red 30%, white)") ? mt.style.backgroundColor = `color-mix(in srgb, ${Jt} 30%, white)` : mt.style.backgroundColor = l.Util.makeHexColor(...t(this, vt).map((ie) => Math.floor(0.7 * (255 - ie) + ie)));
10378
+ const $t = mt.style.outlineColor = l.Util.makeHexColor(...t(this, vt));
10379
+ CSS.supports("background-color", "color-mix(in srgb, red 30%, white)") ? mt.style.backgroundColor = `color-mix(in srgb, ${$t} 30%, white)` : mt.style.backgroundColor = l.Util.makeHexColor(...t(this, vt).map((ie) => Math.floor(0.7 * (255 - ie) + ie)));
10380
10380
  }
10381
10381
  const Et = document.createElement("span");
10382
10382
  Et.className = "header";
@@ -10384,11 +10384,11 @@ function requirePdf() {
10384
10384
  if (Et.append(It), {
10385
10385
  dir: It.dir,
10386
10386
  str: It.textContent
10387
- } = t(this, $), mt.append(Et), t(this, it)) {
10388
- const Jt = document.createElement("span");
10389
- Jt.classList.add("popupDate"), t(this, it).then((te) => {
10390
- Jt.textContent = te;
10391
- }), Et.append(Jt);
10387
+ } = t(this, V), mt.append(Et), t(this, it)) {
10388
+ const $t = document.createElement("span");
10389
+ $t.classList.add("popupDate"), t(this, it).then((te) => {
10390
+ $t.textContent = te;
10391
+ }), Et.append($t);
10392
10392
  }
10393
10393
  const Mt = t(this, Z), Pt = t(this, yt);
10394
10394
  if (Pt != null && Pt.str && (!(Mt != null && Mt.str) || Mt.str === Pt.str))
@@ -10398,19 +10398,19 @@ function requirePdf() {
10398
10398
  div: mt
10399
10399
  }), mt.lastChild.classList.add("richText", "popupContent");
10400
10400
  else {
10401
- const Jt = this._formatContents(Mt);
10402
- mt.append(Jt);
10401
+ const $t = this._formatContents(Mt);
10402
+ mt.append($t);
10403
10403
  }
10404
10404
  let Ht = !!t(this, X), Rt = Ht ? t(this, X) : t(this, St);
10405
- for (const Jt of t(this, p))
10406
- if (!Rt || l.Util.intersect(Jt.data.rect, Rt) !== null) {
10407
- Rt = Jt.data.rect, Ht = !0;
10405
+ for (const $t of t(this, p))
10406
+ if (!Rt || l.Util.intersect($t.data.rect, Rt) !== null) {
10407
+ Rt = $t.data.rect, Ht = !0;
10408
10408
  break;
10409
10409
  }
10410
- const Lt = l.Util.normalizeRect([Rt[0], w[3] - Rt[1] + w[1], Rt[2], w[3] - Rt[3] + w[1]]), Wt = Ht ? Rt[2] - Rt[0] + 5 : 0, Vt = Lt[0] + Wt, Yt = Lt[1], {
10410
+ const Lt = l.Util.normalizeRect([Rt[0], w[3] - Rt[1] + w[1], Rt[2], w[3] - Rt[3] + w[1]]), Wt = Ht ? Rt[2] - Rt[0] + 5 : 0, qt = Lt[0] + Wt, Kt = Lt[1], {
10411
10411
  style: Qt
10412
- } = t(this, K);
10413
- Qt.left = `${100 * (Vt - at) / y}%`, Qt.top = `${100 * (Yt - lt) / H}%`, t(this, K).append(mt);
10412
+ } = t(this, J);
10413
+ Qt.left = `${100 * (qt - at) / y}%`, Qt.top = `${100 * (Kt - lt) / H}%`, t(this, J).append(mt);
10414
10414
  }
10415
10415
  _formatContents({
10416
10416
  str: w,
@@ -10426,23 +10426,23 @@ function requirePdf() {
10426
10426
  return H;
10427
10427
  }
10428
10428
  forceHide() {
10429
- et(this, Tt, this.isVisible), t(this, Tt) && (t(this, K).hidden = !0);
10429
+ et(this, Tt, this.isVisible), t(this, Tt) && (t(this, J).hidden = !0);
10430
10430
  }
10431
10431
  maybeShow() {
10432
- t(this, Tt) && (et(this, Tt, !1), t(this, K).hidden = !1);
10432
+ t(this, Tt) && (et(this, Tt, !1), t(this, J).hidden = !1);
10433
10433
  }
10434
10434
  get isVisible() {
10435
- return t(this, K).hidden === !1;
10435
+ return t(this, J).hidden === !1;
10436
10436
  }
10437
10437
  }
10438
- it = new WeakMap(), ht = new WeakMap(), dt = new WeakMap(), pt = new WeakMap(), At = new WeakMap(), vt = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), p = new WeakMap(), M = new WeakMap(), X = new WeakMap(), J = new WeakMap(), ut = new WeakMap(), St = new WeakMap(), yt = new WeakMap(), $ = new WeakMap(), Tt = new WeakMap(), wt = new WeakSet(), Mi = function(w) {
10439
- w.altKey || w.shiftKey || w.ctrlKey || w.metaKey || (w.key === "Enter" || w.key === "Escape" && t(this, J)) && z(this, wt, Ce).call(this);
10438
+ it = new WeakMap(), ht = new WeakMap(), dt = new WeakMap(), pt = new WeakMap(), At = new WeakMap(), vt = new WeakMap(), J = new WeakMap(), Z = new WeakMap(), p = new WeakMap(), M = new WeakMap(), X = new WeakMap(), $ = new WeakMap(), ut = new WeakMap(), St = new WeakMap(), yt = new WeakMap(), V = new WeakMap(), Tt = new WeakMap(), wt = new WeakSet(), Mi = function(w) {
10439
+ w.altKey || w.shiftKey || w.ctrlKey || w.metaKey || (w.key === "Enter" || w.key === "Escape" && t(this, $)) && z(this, wt, Ce).call(this);
10440
10440
  }, Ce = function() {
10441
- et(this, J, !t(this, J)), t(this, J) ? (z(this, wt, ei).call(this), t(this, K).addEventListener("click", t(this, At)), t(this, K).addEventListener("keydown", t(this, ht))) : (z(this, wt, ii).call(this), t(this, K).removeEventListener("click", t(this, At)), t(this, K).removeEventListener("keydown", t(this, ht)));
10441
+ et(this, $, !t(this, $)), t(this, $) ? (z(this, wt, ei).call(this), t(this, J).addEventListener("click", t(this, At)), t(this, J).addEventListener("keydown", t(this, ht))) : (z(this, wt, ii).call(this), t(this, J).removeEventListener("click", t(this, At)), t(this, J).removeEventListener("keydown", t(this, ht)));
10442
10442
  }, ei = function() {
10443
- t(this, ut) || this.render(), this.isVisible ? t(this, J) && t(this, K).classList.add("focused") : (t(this, K).hidden = !1, t(this, K).style.zIndex = parseInt(t(this, K).style.zIndex) + 1e3);
10443
+ t(this, ut) || this.render(), this.isVisible ? t(this, $) && t(this, J).classList.add("focused") : (t(this, J).hidden = !1, t(this, J).style.zIndex = parseInt(t(this, J).style.zIndex) + 1e3);
10444
10444
  }, ii = function() {
10445
- t(this, K).classList.remove("focused"), !(t(this, J) || !this.isVisible) && (t(this, K).hidden = !0, t(this, K).style.zIndex = parseInt(t(this, K).style.zIndex) - 1e3);
10445
+ t(this, J).classList.remove("focused"), !(t(this, $) || !this.isVisible) && (t(this, J).hidden = !0, t(this, J).style.zIndex = parseInt(t(this, J).style.zIndex) - 1e3);
10446
10446
  };
10447
10447
  class L extends b {
10448
10448
  constructor(w) {
@@ -10495,48 +10495,48 @@ function requirePdf() {
10495
10495
  isRenderable: !0,
10496
10496
  ignoreBorder: !0
10497
10497
  });
10498
- Q(this, $t, null);
10498
+ Q(this, Vt, null);
10499
10499
  }
10500
10500
  render() {
10501
10501
  this.container.classList.add("squareAnnotation");
10502
10502
  const y = this.data, {
10503
10503
  width: H,
10504
10504
  height: at
10505
- } = O(y.rect), lt = this.svgFactory.create(H, at, !0), mt = y.borderStyle.width, Et = et(this, $t, this.svgFactory.createElement("svg:rect"));
10505
+ } = O(y.rect), lt = this.svgFactory.create(H, at, !0), mt = y.borderStyle.width, Et = et(this, Vt, this.svgFactory.createElement("svg:rect"));
10506
10506
  return Et.setAttribute("x", mt / 2), Et.setAttribute("y", mt / 2), Et.setAttribute("width", H - mt), Et.setAttribute("height", at - mt), Et.setAttribute("stroke-width", mt || 1), Et.setAttribute("stroke", "transparent"), Et.setAttribute("fill", "transparent"), lt.append(Et), this.container.append(lt), !y.popupRef && this.hasPopupData && this._createPopup(), this.container;
10507
10507
  }
10508
10508
  getElementsToTriggerPopup() {
10509
- return t(this, $t);
10509
+ return t(this, Vt);
10510
10510
  }
10511
10511
  addHighlightArea() {
10512
10512
  this.container.classList.add("highlightArea");
10513
10513
  }
10514
10514
  }
10515
- $t = new WeakMap();
10515
+ Vt = new WeakMap();
10516
10516
  class F extends b {
10517
10517
  constructor(y) {
10518
10518
  super(y, {
10519
10519
  isRenderable: !0,
10520
10520
  ignoreBorder: !0
10521
10521
  });
10522
- Q(this, qt, null);
10522
+ Q(this, Yt, null);
10523
10523
  }
10524
10524
  render() {
10525
10525
  this.container.classList.add("circleAnnotation");
10526
10526
  const y = this.data, {
10527
10527
  width: H,
10528
10528
  height: at
10529
- } = O(y.rect), lt = this.svgFactory.create(H, at, !0), mt = y.borderStyle.width, Et = et(this, qt, this.svgFactory.createElement("svg:ellipse"));
10529
+ } = O(y.rect), lt = this.svgFactory.create(H, at, !0), mt = y.borderStyle.width, Et = et(this, Yt, this.svgFactory.createElement("svg:ellipse"));
10530
10530
  return Et.setAttribute("cx", H / 2), Et.setAttribute("cy", at / 2), Et.setAttribute("rx", H / 2 - mt / 2), Et.setAttribute("ry", at / 2 - mt / 2), Et.setAttribute("stroke-width", mt || 1), Et.setAttribute("stroke", "transparent"), Et.setAttribute("fill", "transparent"), lt.append(Et), this.container.append(lt), !y.popupRef && this.hasPopupData && this._createPopup(), this.container;
10531
10531
  }
10532
10532
  getElementsToTriggerPopup() {
10533
- return t(this, qt);
10533
+ return t(this, Yt);
10534
10534
  }
10535
10535
  addHighlightArea() {
10536
10536
  this.container.classList.add("highlightArea");
10537
10537
  }
10538
10538
  }
10539
- qt = new WeakMap();
10539
+ Yt = new WeakMap();
10540
10540
  class nt extends b {
10541
10541
  constructor(y) {
10542
10542
  super(y, {
@@ -10574,7 +10574,7 @@ function requirePdf() {
10574
10574
  super(w), this.containerClassName = "polygonAnnotation", this.svgElementName = "svg:polygon";
10575
10575
  }
10576
10576
  }
10577
- class q extends b {
10577
+ class Y extends b {
10578
10578
  constructor(w) {
10579
10579
  super(w, {
10580
10580
  isRenderable: !0,
@@ -10656,7 +10656,7 @@ function requirePdf() {
10656
10656
  return !this.data.popupRef && this.hasPopupData && this._createPopup(), this.container.classList.add("squigglyAnnotation"), this.container;
10657
10657
  }
10658
10658
  }
10659
- class Y extends b {
10659
+ class K extends b {
10660
10660
  constructor(w) {
10661
10661
  super(w, {
10662
10662
  isRenderable: !0,
@@ -10838,30 +10838,30 @@ function requirePdf() {
10838
10838
  return Math.max(0, Math.min(255, 255 * ct));
10839
10839
  }
10840
10840
  class T {
10841
- static CMYK_G([V, bt, B, R]) {
10842
- return ["G", 1 - Math.min(1, 0.3 * V + 0.59 * B + 0.11 * bt + R)];
10841
+ static CMYK_G([q, bt, B, R]) {
10842
+ return ["G", 1 - Math.min(1, 0.3 * q + 0.59 * B + 0.11 * bt + R)];
10843
10843
  }
10844
- static G_CMYK([V]) {
10845
- return ["CMYK", 0, 0, 0, 1 - V];
10844
+ static G_CMYK([q]) {
10845
+ return ["CMYK", 0, 0, 0, 1 - q];
10846
10846
  }
10847
- static G_RGB([V]) {
10848
- return ["RGB", V, V, V];
10847
+ static G_RGB([q]) {
10848
+ return ["RGB", q, q, q];
10849
10849
  }
10850
- static G_rgb([V]) {
10851
- return V = l(V), [V, V, V];
10850
+ static G_rgb([q]) {
10851
+ return q = l(q), [q, q, q];
10852
10852
  }
10853
- static G_HTML([V]) {
10854
- const bt = ot(V);
10853
+ static G_HTML([q]) {
10854
+ const bt = ot(q);
10855
10855
  return `#${bt}${bt}${bt}`;
10856
10856
  }
10857
- static RGB_G([V, bt, B]) {
10858
- return ["G", 0.3 * V + 0.59 * bt + 0.11 * B];
10857
+ static RGB_G([q, bt, B]) {
10858
+ return ["G", 0.3 * q + 0.59 * bt + 0.11 * B];
10859
10859
  }
10860
- static RGB_rgb(V) {
10861
- return V.map(l);
10860
+ static RGB_rgb(q) {
10861
+ return q.map(l);
10862
10862
  }
10863
- static RGB_HTML(V) {
10864
- return `#${V.map(ot).join("")}`;
10863
+ static RGB_HTML(q) {
10864
+ return `#${q.map(ot).join("")}`;
10865
10865
  }
10866
10866
  static T_HTML() {
10867
10867
  return "#00000000";
@@ -10869,18 +10869,18 @@ function requirePdf() {
10869
10869
  static T_rgb() {
10870
10870
  return [null];
10871
10871
  }
10872
- static CMYK_RGB([V, bt, B, R]) {
10873
- return ["RGB", 1 - Math.min(1, V + R), 1 - Math.min(1, B + R), 1 - Math.min(1, bt + R)];
10872
+ static CMYK_RGB([q, bt, B, R]) {
10873
+ return ["RGB", 1 - Math.min(1, q + R), 1 - Math.min(1, B + R), 1 - Math.min(1, bt + R)];
10874
10874
  }
10875
- static CMYK_rgb([V, bt, B, R]) {
10876
- return [l(1 - Math.min(1, V + R)), l(1 - Math.min(1, B + R)), l(1 - Math.min(1, bt + R))];
10875
+ static CMYK_rgb([q, bt, B, R]) {
10876
+ return [l(1 - Math.min(1, q + R)), l(1 - Math.min(1, B + R)), l(1 - Math.min(1, bt + R))];
10877
10877
  }
10878
- static CMYK_HTML(V) {
10879
- const bt = this.CMYK_RGB(V).slice(1);
10878
+ static CMYK_HTML(q) {
10879
+ const bt = this.CMYK_RGB(q).slice(1);
10880
10880
  return this.RGB_HTML(bt);
10881
10881
  }
10882
- static RGB_CMYK([V, bt, B]) {
10883
- const R = 1 - V, g = 1 - bt, N = 1 - B, O = Math.min(R, g, N);
10882
+ static RGB_CMYK([q, bt, B]) {
10883
+ const R = 1 - q, g = 1 - bt, N = 1 - B, O = Math.min(R, g, N);
10884
10884
  return ["CMYK", R, g, N, O];
10885
10885
  }
10886
10886
  }
@@ -10944,19 +10944,19 @@ function requirePdf() {
10944
10944
  editor_alt_text_decorative_tooltip: "Marked as decorative"
10945
10945
  };
10946
10946
  ot.print_progress_percent = "{{progress}}%";
10947
- function l(V, bt) {
10948
- switch (V) {
10947
+ function l(q, bt) {
10948
+ switch (q) {
10949
10949
  case "find_match_count":
10950
- V = `find_match_count[${bt.total === 1 ? "one" : "other"}]`;
10950
+ q = `find_match_count[${bt.total === 1 ? "one" : "other"}]`;
10951
10951
  break;
10952
10952
  case "find_match_count_limit":
10953
- V = `find_match_count_limit[${bt.limit === 1 ? "one" : "other"}]`;
10953
+ q = `find_match_count_limit[${bt.limit === 1 ? "one" : "other"}]`;
10954
10954
  break;
10955
10955
  }
10956
- return ot[V] || "";
10956
+ return ot[q] || "";
10957
10957
  }
10958
- function T(V, bt) {
10959
- return bt ? V.replaceAll(/\{\{\s*(\w+)\s*\}\}/g, (B, R) => R in bt ? bt[R] : "{{" + R + "}}") : V;
10958
+ function T(q, bt) {
10959
+ return bt ? q.replaceAll(/\{\{\s*(\w+)\s*\}\}/g, (B, R) => R in bt ? bt[R] : "{{" + R + "}}") : q;
10960
10960
  }
10961
10961
  const ct = {
10962
10962
  async getLanguage() {
@@ -10965,10 +10965,10 @@ function requirePdf() {
10965
10965
  async getDirection() {
10966
10966
  return "ltr";
10967
10967
  },
10968
- async get(V, bt = null, B = l(V, bt)) {
10968
+ async get(q, bt = null, B = l(q, bt)) {
10969
10969
  return T(B, bt);
10970
10970
  },
10971
- async translate(V) {
10971
+ async translate(q) {
10972
10972
  }
10973
10973
  };
10974
10974
  h.NullL10n = ct;
@@ -10981,15 +10981,15 @@ function requirePdf() {
10981
10981
  }), h.XfaLayer = void 0;
10982
10982
  var l = ot(25);
10983
10983
  class T {
10984
- static setupStorage(V, bt, B, R, g) {
10984
+ static setupStorage(q, bt, B, R, g) {
10985
10985
  const N = R.getValue(bt, {
10986
10986
  value: null
10987
10987
  });
10988
10988
  switch (B.name) {
10989
10989
  case "textarea":
10990
- if (N.value !== null && (V.textContent = N.value), g === "print")
10990
+ if (N.value !== null && (q.textContent = N.value), g === "print")
10991
10991
  break;
10992
- V.addEventListener("input", (O) => {
10992
+ q.addEventListener("input", (O) => {
10993
10993
  R.setValue(bt, {
10994
10994
  value: O.target.value
10995
10995
  });
@@ -10997,17 +10997,17 @@ function requirePdf() {
10997
10997
  break;
10998
10998
  case "input":
10999
10999
  if (B.attributes.type === "radio" || B.attributes.type === "checkbox") {
11000
- if (N.value === B.attributes.xfaOn ? V.setAttribute("checked", !0) : N.value === B.attributes.xfaOff && V.removeAttribute("checked"), g === "print")
11000
+ if (N.value === B.attributes.xfaOn ? q.setAttribute("checked", !0) : N.value === B.attributes.xfaOff && q.removeAttribute("checked"), g === "print")
11001
11001
  break;
11002
- V.addEventListener("change", (O) => {
11002
+ q.addEventListener("change", (O) => {
11003
11003
  R.setValue(bt, {
11004
11004
  value: O.target.checked ? O.target.getAttribute("xfaOn") : O.target.getAttribute("xfaOff")
11005
11005
  });
11006
11006
  });
11007
11007
  } else {
11008
- if (N.value !== null && V.setAttribute("value", N.value), g === "print")
11008
+ if (N.value !== null && q.setAttribute("value", N.value), g === "print")
11009
11009
  break;
11010
- V.addEventListener("input", (O) => {
11010
+ q.addEventListener("input", (O) => {
11011
11011
  R.setValue(bt, {
11012
11012
  value: O.target.value
11013
11013
  });
@@ -11016,11 +11016,11 @@ function requirePdf() {
11016
11016
  break;
11017
11017
  case "select":
11018
11018
  if (N.value !== null) {
11019
- V.setAttribute("value", N.value);
11019
+ q.setAttribute("value", N.value);
11020
11020
  for (const O of B.children)
11021
11021
  O.attributes.value === N.value ? O.attributes.selected = !0 : O.attributes.hasOwnProperty("selected") && delete O.attributes.selected;
11022
11022
  }
11023
- V.addEventListener("input", (O) => {
11023
+ q.addEventListener("input", (O) => {
11024
11024
  const v = O.target.options, b = v.selectedIndex === -1 ? "" : v[v.selectedIndex].value;
11025
11025
  R.setValue(bt, {
11026
11026
  value: b
@@ -11030,7 +11030,7 @@ function requirePdf() {
11030
11030
  }
11031
11031
  }
11032
11032
  static setAttributes({
11033
- html: V,
11033
+ html: q,
11034
11034
  element: bt,
11035
11035
  storage: B = null,
11036
11036
  intent: R,
@@ -11038,42 +11038,42 @@ function requirePdf() {
11038
11038
  }) {
11039
11039
  const {
11040
11040
  attributes: N
11041
- } = bt, O = V instanceof HTMLAnchorElement;
11041
+ } = bt, O = q instanceof HTMLAnchorElement;
11042
11042
  N.type === "radio" && (N.name = `${N.name}-${R}`);
11043
11043
  for (const [v, b] of Object.entries(N))
11044
11044
  if (b != null)
11045
11045
  switch (v) {
11046
11046
  case "class":
11047
- b.length && V.setAttribute(v, b.join(" "));
11047
+ b.length && q.setAttribute(v, b.join(" "));
11048
11048
  break;
11049
11049
  case "dataId":
11050
11050
  break;
11051
11051
  case "id":
11052
- V.setAttribute("data-element-id", b);
11052
+ q.setAttribute("data-element-id", b);
11053
11053
  break;
11054
11054
  case "style":
11055
- Object.assign(V.style, b);
11055
+ Object.assign(q.style, b);
11056
11056
  break;
11057
11057
  case "textContent":
11058
- V.textContent = b;
11058
+ q.textContent = b;
11059
11059
  break;
11060
11060
  default:
11061
- (!O || v !== "href" && v !== "newWindow") && V.setAttribute(v, b);
11061
+ (!O || v !== "href" && v !== "newWindow") && q.setAttribute(v, b);
11062
11062
  }
11063
- O && g.addLinkAttributes(V, N.href, N.newWindow), B && N.dataId && this.setupStorage(V, N.dataId, bt, B);
11063
+ O && g.addLinkAttributes(q, N.href, N.newWindow), B && N.dataId && this.setupStorage(q, N.dataId, bt, B);
11064
11064
  }
11065
- static render(V) {
11065
+ static render(q) {
11066
11066
  var E;
11067
- const bt = V.annotationStorage, B = V.linkService, R = V.xfaHtml, g = V.intent || "display", N = document.createElement(R.name);
11067
+ const bt = q.annotationStorage, B = q.linkService, R = q.xfaHtml, g = q.intent || "display", N = document.createElement(R.name);
11068
11068
  R.attributes && this.setAttributes({
11069
11069
  html: N,
11070
11070
  element: R,
11071
11071
  intent: g,
11072
11072
  linkService: B
11073
11073
  });
11074
- const O = [[R, -1, N]], v = V.div;
11075
- if (v.append(N), V.viewport) {
11076
- const f = `matrix(${V.viewport.transform.join(",")})`;
11074
+ const O = [[R, -1, N]], v = q.div;
11075
+ if (v.append(N), q.viewport) {
11076
+ const f = `matrix(${q.viewport.transform.join(",")})`;
11077
11077
  v.style.transform = f;
11078
11078
  }
11079
11079
  g !== "richText" && v.setAttribute("class", "xfaLayer xfaFont");
@@ -11115,9 +11115,9 @@ function requirePdf() {
11115
11115
  textDivs: b
11116
11116
  };
11117
11117
  }
11118
- static update(V) {
11119
- const bt = `matrix(${V.viewport.transform.join(",")})`;
11120
- V.div.style.transform = bt, V.div.hidden = !1;
11118
+ static update(q) {
11119
+ const bt = `matrix(${q.viewport.transform.join(",")})`;
11120
+ q.div.style.transform = bt, q.div.hidden = !1;
11121
11121
  }
11122
11122
  }
11123
11123
  h.XfaLayer = T;
@@ -11129,7 +11129,7 @@ function requirePdf() {
11129
11129
  Object.defineProperty(h, "__esModule", {
11130
11130
  value: !0
11131
11131
  }), h.InkEditor = void 0;
11132
- var l = ot(1), T = ot(4), ct = ot(29), V = ot(6), bt = ot(5);
11132
+ var l = ot(1), T = ot(4), ct = ot(29), q = ot(6), bt = ot(5);
11133
11133
  const vt = class vt extends T.AnnotationEditor {
11134
11134
  constructor(p) {
11135
11135
  super({
@@ -11200,8 +11200,8 @@ function requirePdf() {
11200
11200
  !this.parent && p ? this._uiManager.removeShouldRescale(this) : this.parent && p === null && this._uiManager.addShouldRescale(this), super.setParent(p);
11201
11201
  }
11202
11202
  onScaleChanging() {
11203
- const [p, M] = this.parentDimensions, X = this.width * p, J = this.height * M;
11204
- this.setDimensions(X, J);
11203
+ const [p, M] = this.parentDimensions, X = this.width * p, $ = this.height * M;
11204
+ this.setDimensions(X, $);
11205
11205
  }
11206
11206
  enableEditMode() {
11207
11207
  t(this, f) || this.canvas === null || (super.enableEditMode(), this._isDraggable = !1, this.canvas.addEventListener("pointerdown", t(this, b)));
@@ -11243,33 +11243,33 @@ function requirePdf() {
11243
11243
  return this.div;
11244
11244
  let p, M;
11245
11245
  this.width && (p = this.x, M = this.y), super.render(), T.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then((yt) => {
11246
- var $;
11247
- return ($ = this.div) == null ? void 0 : $.setAttribute("aria-label", yt);
11246
+ var V;
11247
+ return (V = this.div) == null ? void 0 : V.setAttribute("aria-label", yt);
11248
11248
  });
11249
- const [X, J, ut, St] = z(this, s, Oi).call(this);
11250
- if (this.setAt(X, J, 0, 0), this.setDims(ut, St), z(this, s, Te).call(this), this.width) {
11251
- const [yt, $] = this.parentDimensions;
11252
- this.setAspectRatio(this.width * yt, this.height * $), this.setAt(p * yt, M * $, this.width * yt, this.height * $), et(this, m, !0), z(this, s, le).call(this), this.setDims(this.width * yt, this.height * $), z(this, s, ee).call(this), this.div.classList.add("disabled");
11249
+ const [X, $, ut, St] = z(this, s, Oi).call(this);
11250
+ if (this.setAt(X, $, 0, 0), this.setDims(ut, St), z(this, s, Te).call(this), this.width) {
11251
+ const [yt, V] = this.parentDimensions;
11252
+ this.setAspectRatio(this.width * yt, this.height * V), this.setAt(p * yt, M * V, this.width * yt, this.height * V), et(this, m, !0), z(this, s, le).call(this), this.setDims(this.width * yt, this.height * V), z(this, s, ee).call(this), this.div.classList.add("disabled");
11253
11253
  } else
11254
11254
  this.div.classList.add("editing"), this.enableEditMode();
11255
11255
  return z(this, s, Pe).call(this), this.div;
11256
11256
  }
11257
11257
  setDimensions(p, M) {
11258
- const X = Math.round(p), J = Math.round(M);
11259
- if (t(this, A) === X && t(this, r) === J)
11258
+ const X = Math.round(p), $ = Math.round(M);
11259
+ if (t(this, A) === X && t(this, r) === $)
11260
11260
  return;
11261
- et(this, A, X), et(this, r, J), this.canvas.style.visibility = "hidden";
11261
+ et(this, A, X), et(this, r, $), this.canvas.style.visibility = "hidden";
11262
11262
  const [ut, St] = this.parentDimensions;
11263
11263
  this.width = p / ut, this.height = M / St, this.fixAndSetPosition(), t(this, f) && z(this, s, li).call(this, p, M), z(this, s, le).call(this), z(this, s, ee).call(this), this.canvas.style.visibility = "visible", this.fixDims();
11264
11264
  }
11265
11265
  static deserialize(p, M, X) {
11266
- var Nt, $t, qt;
11266
+ var Nt, Vt, Yt;
11267
11267
  if (p instanceof ct.InkAnnotationElement)
11268
11268
  return null;
11269
- const J = super.deserialize(p, M, X);
11270
- J.thickness = p.thickness, J.color = l.Util.makeHexColor(...p.color), J.opacity = p.opacity;
11271
- const [ut, St] = J.pageDimensions, yt = J.width * ut, $ = J.height * St, Tt = J.parentScale, wt = p.thickness / 2;
11272
- et(J, f, !0), et(J, A, Math.round(yt)), et(J, r, Math.round($));
11269
+ const $ = super.deserialize(p, M, X);
11270
+ $.thickness = p.thickness, $.color = l.Util.makeHexColor(...p.color), $.opacity = p.opacity;
11271
+ const [ut, St] = $.pageDimensions, yt = $.width * ut, V = $.height * St, Tt = $.parentScale, wt = p.thickness / 2;
11272
+ et($, f, !0), et($, A, Math.round(yt)), et($, r, Math.round(V));
11273
11273
  const {
11274
11274
  paths: jt,
11275
11275
  rect: Bt,
@@ -11280,17 +11280,17 @@ function requirePdf() {
11280
11280
  } of jt) {
11281
11281
  _t = z(Nt = vt, x, zi).call(Nt, _t, Bt, Xt);
11282
11282
  const tt = [];
11283
- J.paths.push(tt);
11283
+ $.paths.push(tt);
11284
11284
  let st = Tt * (_t[0] - wt), kt = Tt * (_t[1] - wt);
11285
11285
  for (let Gt = 2, D = _t.length; Gt < D; Gt += 6) {
11286
11286
  const ft = Tt * (_t[Gt] - wt), Ct = Tt * (_t[Gt + 1] - wt), Dt = Tt * (_t[Gt + 2] - wt), Ot = Tt * (_t[Gt + 3] - wt), xt = Tt * (_t[Gt + 4] - wt), w = Tt * (_t[Gt + 5] - wt);
11287
11287
  tt.push([[st, kt], [ft, Ct], [Dt, Ot], [xt, w]]), st = xt, kt = w;
11288
11288
  }
11289
11289
  const zt = z(this, x, Gi).call(this, tt);
11290
- J.bezierPath2D.push(zt);
11290
+ $.bezierPath2D.push(zt);
11291
11291
  }
11292
- const Ft = z($t = J, s, hi).call($t);
11293
- return et(J, g, Math.max(T.AnnotationEditor.MIN_SIZE, Ft[2] - Ft[0])), et(J, R, Math.max(T.AnnotationEditor.MIN_SIZE, Ft[3] - Ft[1])), z(qt = J, s, li).call(qt, yt, $), J;
11292
+ const Ft = z(Vt = $, s, hi).call(Vt);
11293
+ return et($, g, Math.max(T.AnnotationEditor.MIN_SIZE, Ft[2] - Ft[0])), et($, R, Math.max(T.AnnotationEditor.MIN_SIZE, Ft[3] - Ft[1])), z(Yt = $, s, li).call(Yt, yt, V), $;
11294
11294
  }
11295
11295
  serialize() {
11296
11296
  if (this.isEmpty())
@@ -11372,18 +11372,18 @@ function requirePdf() {
11372
11372
  ctx: p,
11373
11373
  color: M,
11374
11374
  opacity: X,
11375
- thickness: J,
11375
+ thickness: $,
11376
11376
  parentScale: ut,
11377
11377
  scaleFactor: St
11378
11378
  } = this;
11379
- p.lineWidth = J * ut / St, p.lineCap = "round", p.lineJoin = "round", p.miterLimit = 10, p.strokeStyle = `${M}${(0, bt.opacityToHex)(X)}`;
11379
+ p.lineWidth = $ * ut / St, p.lineCap = "round", p.lineJoin = "round", p.miterLimit = 10, p.strokeStyle = `${M}${(0, bt.opacityToHex)(X)}`;
11380
11380
  }, Ni = function(p, M) {
11381
- this.canvas.addEventListener("contextmenu", V.noContextMenu), this.canvas.addEventListener("pointerleave", t(this, O)), this.canvas.addEventListener("pointermove", t(this, N)), this.canvas.addEventListener("pointerup", t(this, v)), this.canvas.removeEventListener("pointerdown", t(this, b)), this.isEditing = !0, t(this, m) || (et(this, m, !0), z(this, s, le).call(this), this.thickness || (this.thickness = vt._defaultThickness), this.color || (this.color = vt._defaultColor || T.AnnotationEditor._defaultLineColor), this.opacity ?? (this.opacity = vt._defaultOpacity)), this.currentPath.push([p, M]), et(this, d, !1), z(this, s, ri).call(this), et(this, c, () => {
11381
+ this.canvas.addEventListener("contextmenu", q.noContextMenu), this.canvas.addEventListener("pointerleave", t(this, O)), this.canvas.addEventListener("pointermove", t(this, N)), this.canvas.addEventListener("pointerup", t(this, v)), this.canvas.removeEventListener("pointerdown", t(this, b)), this.isEditing = !0, t(this, m) || (et(this, m, !0), z(this, s, le).call(this), this.thickness || (this.thickness = vt._defaultThickness), this.color || (this.color = vt._defaultColor || T.AnnotationEditor._defaultLineColor), this.opacity ?? (this.opacity = vt._defaultOpacity)), this.currentPath.push([p, M]), et(this, d, !1), z(this, s, ri).call(this), et(this, c, () => {
11382
11382
  z(this, s, ji).call(this), t(this, c) && window.requestAnimationFrame(t(this, c));
11383
11383
  }), window.requestAnimationFrame(t(this, c));
11384
11384
  }, ai = function(p, M) {
11385
- const [X, J] = this.currentPath.at(-1);
11386
- if (this.currentPath.length > 1 && p === X && M === J)
11385
+ const [X, $] = this.currentPath.at(-1);
11386
+ if (this.currentPath.length > 1 && p === X && M === $)
11387
11387
  return;
11388
11388
  const ut = this.currentPath;
11389
11389
  let St = t(this, E);
@@ -11403,13 +11403,13 @@ function requirePdf() {
11403
11403
  if (this.currentPath.length !== 1)
11404
11404
  X = z(this, s, Wi).call(this);
11405
11405
  else {
11406
- const $ = [p, M];
11407
- X = [[$, $.slice(), $.slice(), $]];
11406
+ const V = [p, M];
11407
+ X = [[V, V.slice(), V.slice(), V]];
11408
11408
  }
11409
- const J = t(this, E), ut = this.currentPath;
11409
+ const $ = t(this, E), ut = this.currentPath;
11410
11410
  this.currentPath = [], et(this, E, new Path2D());
11411
11411
  const St = () => {
11412
- this.allRawPaths.push(ut), this.paths.push(X), this.bezierPath2D.push(J), this.rebuild();
11412
+ this.allRawPaths.push(ut), this.paths.push(X), this.bezierPath2D.push($), this.rebuild();
11413
11413
  }, yt = () => {
11414
11414
  this.allRawPaths.pop(), this.paths.pop(), this.bezierPath2D.pop(), this.paths.length === 0 ? this.remove() : (this.canvas || (z(this, s, Te).call(this), z(this, s, Pe).call(this)), z(this, s, ce).call(this));
11415
11415
  };
@@ -11422,8 +11422,8 @@ function requirePdf() {
11422
11422
  if (!t(this, d))
11423
11423
  return;
11424
11424
  et(this, d, !1);
11425
- const p = Math.ceil(this.thickness * this.parentScale), M = this.currentPath.slice(-3), X = M.map((St) => St[0]), J = M.map((St) => St[1]);
11426
- Math.min(...X) - p, Math.max(...X) + p, Math.min(...J) - p, Math.max(...J) + p;
11425
+ const p = Math.ceil(this.thickness * this.parentScale), M = this.currentPath.slice(-3), X = M.map((St) => St[0]), $ = M.map((St) => St[1]);
11426
+ Math.min(...X) - p, Math.max(...X) + p, Math.min(...$) - p, Math.max(...$) + p;
11427
11427
  const {
11428
11428
  ctx: ut
11429
11429
  } = this;
@@ -11431,21 +11431,21 @@ function requirePdf() {
11431
11431
  for (const St of this.bezierPath2D)
11432
11432
  ut.stroke(St);
11433
11433
  ut.stroke(t(this, E)), ut.restore();
11434
- }, Hi = function(p, M, X, J, ut, St, yt) {
11435
- const $ = (M + J) / 2, Tt = (X + ut) / 2, wt = (J + St) / 2, jt = (ut + yt) / 2;
11436
- p.bezierCurveTo($ + 2 * (J - $) / 3, Tt + 2 * (ut - Tt) / 3, wt + 2 * (J - wt) / 3, jt + 2 * (ut - jt) / 3, wt, jt);
11434
+ }, Hi = function(p, M, X, $, ut, St, yt) {
11435
+ const V = (M + $) / 2, Tt = (X + ut) / 2, wt = ($ + St) / 2, jt = (ut + yt) / 2;
11436
+ p.bezierCurveTo(V + 2 * ($ - V) / 3, Tt + 2 * (ut - Tt) / 3, wt + 2 * ($ - wt) / 3, jt + 2 * (ut - jt) / 3, wt, jt);
11437
11437
  }, Wi = function() {
11438
11438
  const p = this.currentPath;
11439
11439
  if (p.length <= 2)
11440
11440
  return [[p[0], p[0], p.at(-1), p.at(-1)]];
11441
11441
  const M = [];
11442
- let X, [J, ut] = p[0];
11442
+ let X, [$, ut] = p[0];
11443
11443
  for (X = 1; X < p.length - 2; X++) {
11444
- const [Bt, Xt] = p[X], [Ft, Nt] = p[X + 1], $t = (Bt + Ft) / 2, qt = (Xt + Nt) / 2, _t = [J + 2 * (Bt - J) / 3, ut + 2 * (Xt - ut) / 3], tt = [$t + 2 * (Bt - $t) / 3, qt + 2 * (Xt - qt) / 3];
11445
- M.push([[J, ut], _t, tt, [$t, qt]]), [J, ut] = [$t, qt];
11444
+ const [Bt, Xt] = p[X], [Ft, Nt] = p[X + 1], Vt = (Bt + Ft) / 2, Yt = (Xt + Nt) / 2, _t = [$ + 2 * (Bt - $) / 3, ut + 2 * (Xt - ut) / 3], tt = [Vt + 2 * (Bt - Vt) / 3, Yt + 2 * (Xt - Yt) / 3];
11445
+ M.push([[$, ut], _t, tt, [Vt, Yt]]), [$, ut] = [Vt, Yt];
11446
11446
  }
11447
- const [St, yt] = p[X], [$, Tt] = p[X + 1], wt = [J + 2 * (St - J) / 3, ut + 2 * (yt - ut) / 3], jt = [$ + 2 * (St - $) / 3, Tt + 2 * (yt - Tt) / 3];
11448
- return M.push([[J, ut], wt, jt, [$, Tt]]), M;
11447
+ const [St, yt] = p[X], [V, Tt] = p[X + 1], wt = [$ + 2 * (St - $) / 3, ut + 2 * (yt - ut) / 3], jt = [V + 2 * (St - V) / 3, Tt + 2 * (yt - Tt) / 3];
11448
+ return M.push([[$, ut], wt, jt, [V, Tt]]), M;
11449
11449
  }, ee = function() {
11450
11450
  if (this.isEmpty()) {
11451
11451
  z(this, s, xe).call(this);
@@ -11461,7 +11461,7 @@ function requirePdf() {
11461
11461
  M.stroke(X);
11462
11462
  }, oi = function(p) {
11463
11463
  this.canvas.removeEventListener("pointerleave", t(this, O)), this.canvas.removeEventListener("pointermove", t(this, N)), this.canvas.removeEventListener("pointerup", t(this, v)), this.canvas.addEventListener("pointerdown", t(this, b)), setTimeout(() => {
11464
- this.canvas.removeEventListener("contextmenu", V.noContextMenu);
11464
+ this.canvas.removeEventListener("contextmenu", q.noContextMenu);
11465
11465
  }, 10), z(this, s, Ui).call(this, p.offsetX, p.offsetY), this.addToAnnotationStorage(), this.setInBackground();
11466
11466
  }, Te = function() {
11467
11467
  this.canvas = document.createElement("canvas"), this.canvas.width = this.canvas.height = 0, this.canvas.className = "inkEditorCanvas", T.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then((p) => {
@@ -11479,39 +11479,39 @@ function requirePdf() {
11479
11479
  const [p, M] = this.parentDimensions;
11480
11480
  this.canvas.width = Math.ceil(this.width * p), this.canvas.height = Math.ceil(this.height * M), z(this, s, xe).call(this);
11481
11481
  }, li = function(p, M) {
11482
- const X = z(this, s, ke).call(this), J = (p - X) / t(this, g), ut = (M - X) / t(this, R);
11483
- this.scaleFactor = Math.min(J, ut);
11482
+ const X = z(this, s, ke).call(this), $ = (p - X) / t(this, g), ut = (M - X) / t(this, R);
11483
+ this.scaleFactor = Math.min($, ut);
11484
11484
  }, xe = function() {
11485
11485
  const p = z(this, s, ke).call(this) / 2;
11486
11486
  this.ctx.setTransform(this.scaleFactor, 0, 0, this.scaleFactor, this.translationX * this.scaleFactor + p, this.translationY * this.scaleFactor + p);
11487
11487
  }, x = new WeakSet(), Gi = function(p) {
11488
11488
  const M = new Path2D();
11489
- for (let X = 0, J = p.length; X < J; X++) {
11490
- const [ut, St, yt, $] = p[X];
11491
- X === 0 && M.moveTo(...ut), M.bezierCurveTo(St[0], St[1], yt[0], yt[1], $[0], $[1]);
11489
+ for (let X = 0, $ = p.length; X < $; X++) {
11490
+ const [ut, St, yt, V] = p[X];
11491
+ X === 0 && M.moveTo(...ut), M.bezierCurveTo(St[0], St[1], yt[0], yt[1], V[0], V[1]);
11492
11492
  }
11493
11493
  return M;
11494
11494
  }, ci = function(p, M, X) {
11495
- const [J, ut, St, yt] = M;
11495
+ const [$, ut, St, yt] = M;
11496
11496
  switch (X) {
11497
11497
  case 0:
11498
- for (let $ = 0, Tt = p.length; $ < Tt; $ += 2)
11499
- p[$] += J, p[$ + 1] = yt - p[$ + 1];
11498
+ for (let V = 0, Tt = p.length; V < Tt; V += 2)
11499
+ p[V] += $, p[V + 1] = yt - p[V + 1];
11500
11500
  break;
11501
11501
  case 90:
11502
- for (let $ = 0, Tt = p.length; $ < Tt; $ += 2) {
11503
- const wt = p[$];
11504
- p[$] = p[$ + 1] + J, p[$ + 1] = wt + ut;
11502
+ for (let V = 0, Tt = p.length; V < Tt; V += 2) {
11503
+ const wt = p[V];
11504
+ p[V] = p[V + 1] + $, p[V + 1] = wt + ut;
11505
11505
  }
11506
11506
  break;
11507
11507
  case 180:
11508
- for (let $ = 0, Tt = p.length; $ < Tt; $ += 2)
11509
- p[$] = St - p[$], p[$ + 1] += ut;
11508
+ for (let V = 0, Tt = p.length; V < Tt; V += 2)
11509
+ p[V] = St - p[V], p[V + 1] += ut;
11510
11510
  break;
11511
11511
  case 270:
11512
- for (let $ = 0, Tt = p.length; $ < Tt; $ += 2) {
11513
- const wt = p[$];
11514
- p[$] = St - p[$ + 1], p[$ + 1] = yt - wt;
11512
+ for (let V = 0, Tt = p.length; V < Tt; V += 2) {
11513
+ const wt = p[V];
11514
+ p[V] = St - p[V + 1], p[V + 1] = yt - wt;
11515
11515
  }
11516
11516
  break;
11517
11517
  default:
@@ -11519,55 +11519,55 @@ function requirePdf() {
11519
11519
  }
11520
11520
  return p;
11521
11521
  }, zi = function(p, M, X) {
11522
- const [J, ut, St, yt] = M;
11522
+ const [$, ut, St, yt] = M;
11523
11523
  switch (X) {
11524
11524
  case 0:
11525
- for (let $ = 0, Tt = p.length; $ < Tt; $ += 2)
11526
- p[$] -= J, p[$ + 1] = yt - p[$ + 1];
11525
+ for (let V = 0, Tt = p.length; V < Tt; V += 2)
11526
+ p[V] -= $, p[V + 1] = yt - p[V + 1];
11527
11527
  break;
11528
11528
  case 90:
11529
- for (let $ = 0, Tt = p.length; $ < Tt; $ += 2) {
11530
- const wt = p[$];
11531
- p[$] = p[$ + 1] - ut, p[$ + 1] = wt - J;
11529
+ for (let V = 0, Tt = p.length; V < Tt; V += 2) {
11530
+ const wt = p[V];
11531
+ p[V] = p[V + 1] - ut, p[V + 1] = wt - $;
11532
11532
  }
11533
11533
  break;
11534
11534
  case 180:
11535
- for (let $ = 0, Tt = p.length; $ < Tt; $ += 2)
11536
- p[$] = St - p[$], p[$ + 1] -= ut;
11535
+ for (let V = 0, Tt = p.length; V < Tt; V += 2)
11536
+ p[V] = St - p[V], p[V + 1] -= ut;
11537
11537
  break;
11538
11538
  case 270:
11539
- for (let $ = 0, Tt = p.length; $ < Tt; $ += 2) {
11540
- const wt = p[$];
11541
- p[$] = yt - p[$ + 1], p[$ + 1] = St - wt;
11539
+ for (let V = 0, Tt = p.length; V < Tt; V += 2) {
11540
+ const wt = p[V];
11541
+ p[V] = yt - p[V + 1], p[V + 1] = St - wt;
11542
11542
  }
11543
11543
  break;
11544
11544
  default:
11545
11545
  throw new Error("Invalid rotation");
11546
11546
  }
11547
11547
  return p;
11548
- }, Xi = function(p, M, X, J) {
11548
+ }, Xi = function(p, M, X, $) {
11549
11549
  var Tt, wt;
11550
- const ut = [], St = this.thickness / 2, yt = p * M + St, $ = p * X + St;
11550
+ const ut = [], St = this.thickness / 2, yt = p * M + St, V = p * X + St;
11551
11551
  for (const jt of this.paths) {
11552
11552
  const Bt = [], Xt = [];
11553
11553
  for (let Ft = 0, Nt = jt.length; Ft < Nt; Ft++) {
11554
- const [$t, qt, _t, tt] = jt[Ft], st = p * $t[0] + yt, kt = p * $t[1] + $, zt = p * qt[0] + yt, Gt = p * qt[1] + $, D = p * _t[0] + yt, ft = p * _t[1] + $, Ct = p * tt[0] + yt, Dt = p * tt[1] + $;
11554
+ const [Vt, Yt, _t, tt] = jt[Ft], st = p * Vt[0] + yt, kt = p * Vt[1] + V, zt = p * Yt[0] + yt, Gt = p * Yt[1] + V, D = p * _t[0] + yt, ft = p * _t[1] + V, Ct = p * tt[0] + yt, Dt = p * tt[1] + V;
11555
11555
  Ft === 0 && (Bt.push(st, kt), Xt.push(st, kt)), Bt.push(zt, Gt, D, ft, Ct, Dt), Xt.push(zt, Gt), Ft === Nt - 1 && Xt.push(Ct, Dt);
11556
11556
  }
11557
11557
  ut.push({
11558
- bezier: z(Tt = vt, x, ci).call(Tt, Bt, J, this.rotation),
11559
- points: z(wt = vt, x, ci).call(wt, Xt, J, this.rotation)
11558
+ bezier: z(Tt = vt, x, ci).call(Tt, Bt, $, this.rotation),
11559
+ points: z(wt = vt, x, ci).call(wt, Xt, $, this.rotation)
11560
11560
  });
11561
11561
  }
11562
11562
  return ut;
11563
11563
  }, hi = function() {
11564
- let p = 1 / 0, M = -1 / 0, X = 1 / 0, J = -1 / 0;
11564
+ let p = 1 / 0, M = -1 / 0, X = 1 / 0, $ = -1 / 0;
11565
11565
  for (const ut of this.paths)
11566
- for (const [St, yt, $, Tt] of ut) {
11567
- const wt = l.Util.bezierBoundingBox(...St, ...yt, ...$, ...Tt);
11568
- p = Math.min(p, wt[0]), X = Math.min(X, wt[1]), M = Math.max(M, wt[2]), J = Math.max(J, wt[3]);
11566
+ for (const [St, yt, V, Tt] of ut) {
11567
+ const wt = l.Util.bezierBoundingBox(...St, ...yt, ...V, ...Tt);
11568
+ p = Math.min(p, wt[0]), X = Math.min(X, wt[1]), M = Math.max(M, wt[2]), $ = Math.max($, wt[3]);
11569
11569
  }
11570
- return [p, X, M, J];
11570
+ return [p, X, M, $];
11571
11571
  }, ke = function() {
11572
11572
  return t(this, f) ? Math.ceil(this.thickness * this.parentScale) : 0;
11573
11573
  }, ce = function(p = !1) {
@@ -11579,24 +11579,24 @@ function requirePdf() {
11579
11579
  }
11580
11580
  const M = z(this, s, hi).call(this), X = z(this, s, ke).call(this);
11581
11581
  et(this, g, Math.max(T.AnnotationEditor.MIN_SIZE, M[2] - M[0])), et(this, R, Math.max(T.AnnotationEditor.MIN_SIZE, M[3] - M[1]));
11582
- const J = Math.ceil(X + t(this, g) * this.scaleFactor), ut = Math.ceil(X + t(this, R) * this.scaleFactor), [St, yt] = this.parentDimensions;
11583
- this.width = J / St, this.height = ut / yt, this.setAspectRatio(J, ut);
11584
- const $ = this.translationX, Tt = this.translationY;
11585
- this.translationX = -M[0], this.translationY = -M[1], z(this, s, le).call(this), z(this, s, ee).call(this), et(this, A, J), et(this, r, ut), this.setDims(J, ut);
11582
+ const $ = Math.ceil(X + t(this, g) * this.scaleFactor), ut = Math.ceil(X + t(this, R) * this.scaleFactor), [St, yt] = this.parentDimensions;
11583
+ this.width = $ / St, this.height = ut / yt, this.setAspectRatio($, ut);
11584
+ const V = this.translationX, Tt = this.translationY;
11585
+ this.translationX = -M[0], this.translationY = -M[1], z(this, s, le).call(this), z(this, s, ee).call(this), et(this, A, $), et(this, r, ut), this.setDims($, ut);
11586
11586
  const wt = p ? X / this.scaleFactor / 2 : 0;
11587
- this.translate($ - this.translationX - wt, Tt - this.translationY - wt);
11588
- }, Q(vt, x), Kt(vt, "_defaultColor", null), Kt(vt, "_defaultOpacity", 1), Kt(vt, "_defaultThickness", 1), Kt(vt, "_type", "ink");
11587
+ this.translate(V - this.translationX - wt, Tt - this.translationY - wt);
11588
+ }, Q(vt, x), Jt(vt, "_defaultColor", null), Jt(vt, "_defaultOpacity", 1), Jt(vt, "_defaultThickness", 1), Jt(vt, "_type", "ink");
11589
11589
  let B = vt;
11590
11590
  h.InkEditor = B;
11591
11591
  }),
11592
11592
  /* 34 */
11593
11593
  /***/
11594
11594
  ((gt, h, ot) => {
11595
- var B, R, g, N, O, v, b, E, f, d, m, me, be, Fe, di, $i, Vi, ui, Me, qi;
11595
+ var B, R, g, N, O, v, b, E, f, d, m, me, be, Fe, di, Vi, qi, ui, Me, Yi;
11596
11596
  Object.defineProperty(h, "__esModule", {
11597
11597
  value: !0
11598
11598
  }), h.StampEditor = void 0;
11599
- var l = ot(1), T = ot(4), ct = ot(6), V = ot(29);
11599
+ var l = ot(1), T = ot(4), ct = ot(6), q = ot(29);
11600
11600
  const _ = class _ extends T.AnnotationEditor {
11601
11601
  constructor(W) {
11602
11602
  super({
@@ -11621,7 +11621,7 @@ function requirePdf() {
11621
11621
  }
11622
11622
  static get supportedTypes() {
11623
11623
  const W = ["apng", "avif", "bmp", "gif", "jpeg", "png", "svg+xml", "webp", "x-icon"];
11624
- return (0, l.shadow)(this, "supportedTypes", W.map((q) => `image/${q}`));
11624
+ return (0, l.shadow)(this, "supportedTypes", W.map((Y) => `image/${Y}`));
11625
11625
  }
11626
11626
  static get supportedTypesStr() {
11627
11627
  return (0, l.shadow)(this, "supportedTypesStr", this.supportedTypes.join(","));
@@ -11629,14 +11629,14 @@ function requirePdf() {
11629
11629
  static isHandlingMimeForPasting(W) {
11630
11630
  return this.supportedTypes.includes(W);
11631
11631
  }
11632
- static paste(W, q) {
11633
- q.pasteEditor(l.AnnotationEditorType.STAMP, {
11632
+ static paste(W, Y) {
11633
+ Y.pasteEditor(l.AnnotationEditorType.STAMP, {
11634
11634
  bitmapFile: W.getAsFile()
11635
11635
  });
11636
11636
  }
11637
11637
  remove() {
11638
- var W, q;
11639
- t(this, R) && (et(this, B, null), this._uiManager.imageManager.deleteId(t(this, R)), (W = t(this, v)) == null || W.remove(), et(this, v, null), (q = t(this, b)) == null || q.disconnect(), et(this, b, null)), super.remove();
11638
+ var W, Y;
11639
+ t(this, R) && (et(this, B, null), this._uiManager.imageManager.deleteId(t(this, R)), (W = t(this, v)) == null || W.remove(), et(this, v, null), (Y = t(this, b)) == null || Y.disconnect(), et(this, b, null)), super.remove();
11640
11640
  }
11641
11641
  rebuild() {
11642
11642
  if (!this.parent) {
@@ -11657,28 +11657,28 @@ function requirePdf() {
11657
11657
  render() {
11658
11658
  if (this.div)
11659
11659
  return this.div;
11660
- let W, q;
11661
- if (this.width && (W = this.x, q = this.y), super.render(), this.div.hidden = !0, t(this, B) ? z(this, m, di).call(this) : z(this, m, Fe).call(this), this.width) {
11660
+ let W, Y;
11661
+ if (this.width && (W = this.x, Y = this.y), super.render(), this.div.hidden = !0, t(this, B) ? z(this, m, di).call(this) : z(this, m, Fe).call(this), this.width) {
11662
11662
  const [j, rt] = this.parentDimensions;
11663
- this.setAt(W * j, q * rt, this.width * j, this.height * rt);
11663
+ this.setAt(W * j, Y * rt, this.width * j, this.height * rt);
11664
11664
  }
11665
11665
  return this.div;
11666
11666
  }
11667
- static deserialize(W, q, j) {
11668
- if (W instanceof V.StampAnnotationElement)
11667
+ static deserialize(W, Y, j) {
11668
+ if (W instanceof q.StampAnnotationElement)
11669
11669
  return null;
11670
- const rt = super.deserialize(W, q, j), {
11670
+ const rt = super.deserialize(W, Y, j), {
11671
11671
  rect: C,
11672
11672
  bitmapUrl: U,
11673
- bitmapId: Y,
11673
+ bitmapId: K,
11674
11674
  isSvg: S,
11675
11675
  accessibilityData: e
11676
11676
  } = W;
11677
- Y && j.imageManager.isValidId(Y) ? et(rt, R, Y) : et(rt, N, U), et(rt, f, S);
11677
+ K && j.imageManager.isValidId(K) ? et(rt, R, K) : et(rt, N, U), et(rt, f, S);
11678
11678
  const [i, u] = rt.pageDimensions;
11679
11679
  return rt.width = (C[2] - C[0]) / i, rt.height = (C[3] - C[1]) / u, e && (rt.altTextData = e), rt;
11680
11680
  }
11681
- serialize(W = !1, q = null) {
11681
+ serialize(W = !1, Y = null) {
11682
11682
  if (this.isEmpty())
11683
11683
  return null;
11684
11684
  const j = {
@@ -11699,47 +11699,47 @@ function requirePdf() {
11699
11699
  if (!rt && C && (j.accessibilityData = {
11700
11700
  type: "Figure",
11701
11701
  alt: C
11702
- }), q === null)
11702
+ }), Y === null)
11703
11703
  return j;
11704
- q.stamps || (q.stamps = /* @__PURE__ */ new Map());
11704
+ Y.stamps || (Y.stamps = /* @__PURE__ */ new Map());
11705
11705
  const U = t(this, f) ? (j.rect[2] - j.rect[0]) * (j.rect[3] - j.rect[1]) : null;
11706
- if (!q.stamps.has(t(this, R)))
11707
- q.stamps.set(t(this, R), {
11706
+ if (!Y.stamps.has(t(this, R)))
11707
+ Y.stamps.set(t(this, R), {
11708
11708
  area: U,
11709
11709
  serialized: j
11710
11710
  }), j.bitmap = z(this, m, Me).call(this, !1);
11711
11711
  else if (t(this, f)) {
11712
- const Y = q.stamps.get(t(this, R));
11713
- U > Y.area && (Y.area = U, Y.serialized.bitmap.close(), Y.serialized.bitmap = z(this, m, Me).call(this, !1));
11712
+ const K = Y.stamps.get(t(this, R));
11713
+ U > K.area && (K.area = U, K.serialized.bitmap.close(), K.serialized.bitmap = z(this, m, Me).call(this, !1));
11714
11714
  }
11715
11715
  return j;
11716
11716
  }
11717
11717
  };
11718
- B = new WeakMap(), R = new WeakMap(), g = new WeakMap(), N = new WeakMap(), O = new WeakMap(), v = new WeakMap(), b = new WeakMap(), E = new WeakMap(), f = new WeakMap(), d = new WeakMap(), m = new WeakSet(), me = function(W, q = !1) {
11718
+ B = new WeakMap(), R = new WeakMap(), g = new WeakMap(), N = new WeakMap(), O = new WeakMap(), v = new WeakMap(), b = new WeakMap(), E = new WeakMap(), f = new WeakMap(), d = new WeakMap(), m = new WeakSet(), me = function(W, Y = !1) {
11719
11719
  if (!W) {
11720
11720
  this.remove();
11721
11721
  return;
11722
11722
  }
11723
- et(this, B, W.bitmap), q || (et(this, R, W.id), et(this, f, W.isSvg)), z(this, m, di).call(this);
11723
+ et(this, B, W.bitmap), Y || (et(this, R, W.id), et(this, f, W.isSvg)), z(this, m, di).call(this);
11724
11724
  }, be = function() {
11725
11725
  et(this, g, null), this._uiManager.enableWaiting(!1), t(this, v) && this.div.focus();
11726
11726
  }, Fe = function() {
11727
11727
  if (t(this, R)) {
11728
- this._uiManager.enableWaiting(!0), this._uiManager.imageManager.getFromId(t(this, R)).then((q) => z(this, m, me).call(this, q, !0)).finally(() => z(this, m, be).call(this));
11728
+ this._uiManager.enableWaiting(!0), this._uiManager.imageManager.getFromId(t(this, R)).then((Y) => z(this, m, me).call(this, Y, !0)).finally(() => z(this, m, be).call(this));
11729
11729
  return;
11730
11730
  }
11731
11731
  if (t(this, N)) {
11732
- const q = t(this, N);
11733
- et(this, N, null), this._uiManager.enableWaiting(!0), et(this, g, this._uiManager.imageManager.getFromUrl(q).then((j) => z(this, m, me).call(this, j)).finally(() => z(this, m, be).call(this)));
11732
+ const Y = t(this, N);
11733
+ et(this, N, null), this._uiManager.enableWaiting(!0), et(this, g, this._uiManager.imageManager.getFromUrl(Y).then((j) => z(this, m, me).call(this, j)).finally(() => z(this, m, be).call(this)));
11734
11734
  return;
11735
11735
  }
11736
11736
  if (t(this, O)) {
11737
- const q = t(this, O);
11738
- et(this, O, null), this._uiManager.enableWaiting(!0), et(this, g, this._uiManager.imageManager.getFromFile(q).then((j) => z(this, m, me).call(this, j)).finally(() => z(this, m, be).call(this)));
11737
+ const Y = t(this, O);
11738
+ et(this, O, null), this._uiManager.enableWaiting(!0), et(this, g, this._uiManager.imageManager.getFromFile(Y).then((j) => z(this, m, me).call(this, j)).finally(() => z(this, m, be).call(this)));
11739
11739
  return;
11740
11740
  }
11741
11741
  const W = document.createElement("input");
11742
- W.type = "file", W.accept = _.supportedTypesStr, et(this, g, new Promise((q) => {
11742
+ W.type = "file", W.accept = _.supportedTypesStr, et(this, g, new Promise((Y) => {
11743
11743
  W.addEventListener("change", async () => {
11744
11744
  if (!W.files || W.files.length === 0)
11745
11745
  this.remove();
@@ -11748,9 +11748,9 @@ function requirePdf() {
11748
11748
  const j = await this._uiManager.imageManager.getFromFile(W.files[0]);
11749
11749
  z(this, m, me).call(this, j);
11750
11750
  }
11751
- q();
11751
+ Y();
11752
11752
  }), W.addEventListener("cancel", () => {
11753
- this.remove(), q();
11753
+ this.remove(), Y();
11754
11754
  });
11755
11755
  }).finally(() => z(this, m, be).call(this))), W.click();
11756
11756
  }, di = function() {
@@ -11758,20 +11758,20 @@ function requirePdf() {
11758
11758
  div: W
11759
11759
  } = this;
11760
11760
  let {
11761
- width: q,
11761
+ width: Y,
11762
11762
  height: j
11763
11763
  } = t(this, B);
11764
11764
  const [rt, C] = this.pageDimensions, U = 0.75;
11765
11765
  if (this.width)
11766
- q = this.width * rt, j = this.height * C;
11767
- else if (q > U * rt || j > U * C) {
11768
- const i = Math.min(U * rt / q, U * C / j);
11769
- q *= i, j *= i;
11766
+ Y = this.width * rt, j = this.height * C;
11767
+ else if (Y > U * rt || j > U * C) {
11768
+ const i = Math.min(U * rt / Y, U * C / j);
11769
+ Y *= i, j *= i;
11770
11770
  }
11771
- const [Y, S] = this.parentDimensions;
11772
- this.setDims(q * Y / rt, j * S / C), this._uiManager.enableWaiting(!1);
11771
+ const [K, S] = this.parentDimensions;
11772
+ this.setDims(Y * K / rt, j * S / C), this._uiManager.enableWaiting(!1);
11773
11773
  const e = et(this, v, document.createElement("canvas"));
11774
- W.append(e), W.hidden = !1, z(this, m, ui).call(this, q, j), z(this, m, qi).call(this), t(this, d) || (this.parent.addUndoableEditor(this), et(this, d, !0)), this._uiManager._eventBus.dispatch("reporttelemetry", {
11774
+ W.append(e), W.hidden = !1, z(this, m, ui).call(this, Y, j), z(this, m, Yi).call(this), t(this, d) || (this.parent.addUndoableEditor(this), et(this, d, !0)), this._uiManager._eventBus.dispatch("reporttelemetry", {
11775
11775
  source: this,
11776
11776
  details: {
11777
11777
  type: "editing",
@@ -11781,33 +11781,33 @@ function requirePdf() {
11781
11781
  }
11782
11782
  }
11783
11783
  }), this.addAltTextButton();
11784
- }, $i = function(W, q) {
11784
+ }, Vi = function(W, Y) {
11785
11785
  var U;
11786
11786
  const [j, rt] = this.parentDimensions;
11787
- this.width = W / j, this.height = q / rt, this.setDims(W, q), (U = this._initialOptions) != null && U.isCentered ? this.center() : this.fixAndSetPosition(), this._initialOptions = null, t(this, E) !== null && clearTimeout(t(this, E)), et(this, E, setTimeout(() => {
11788
- et(this, E, null), z(this, m, ui).call(this, W, q);
11787
+ this.width = W / j, this.height = Y / rt, this.setDims(W, Y), (U = this._initialOptions) != null && U.isCentered ? this.center() : this.fixAndSetPosition(), this._initialOptions = null, t(this, E) !== null && clearTimeout(t(this, E)), et(this, E, setTimeout(() => {
11788
+ et(this, E, null), z(this, m, ui).call(this, W, Y);
11789
11789
  }, 200));
11790
- }, Vi = function(W, q) {
11790
+ }, qi = function(W, Y) {
11791
11791
  const {
11792
11792
  width: j,
11793
11793
  height: rt
11794
11794
  } = t(this, B);
11795
- let C = j, U = rt, Y = t(this, B);
11796
- for (; C > 2 * W || U > 2 * q; ) {
11795
+ let C = j, U = rt, K = t(this, B);
11796
+ for (; C > 2 * W || U > 2 * Y; ) {
11797
11797
  const S = C, e = U;
11798
- C > 2 * W && (C = C >= 16384 ? Math.floor(C / 2) - 1 : Math.ceil(C / 2)), U > 2 * q && (U = U >= 16384 ? Math.floor(U / 2) - 1 : Math.ceil(U / 2));
11798
+ C > 2 * W && (C = C >= 16384 ? Math.floor(C / 2) - 1 : Math.ceil(C / 2)), U > 2 * Y && (U = U >= 16384 ? Math.floor(U / 2) - 1 : Math.ceil(U / 2));
11799
11799
  const i = new OffscreenCanvas(C, U);
11800
- i.getContext("2d").drawImage(Y, 0, 0, S, e, 0, 0, C, U), Y = i.transferToImageBitmap();
11800
+ i.getContext("2d").drawImage(K, 0, 0, S, e, 0, 0, C, U), K = i.transferToImageBitmap();
11801
11801
  }
11802
- return Y;
11803
- }, ui = function(W, q) {
11804
- W = Math.ceil(W), q = Math.ceil(q);
11802
+ return K;
11803
+ }, ui = function(W, Y) {
11804
+ W = Math.ceil(W), Y = Math.ceil(Y);
11805
11805
  const j = t(this, v);
11806
- if (!j || j.width === W && j.height === q)
11806
+ if (!j || j.width === W && j.height === Y)
11807
11807
  return;
11808
- j.width = W, j.height = q;
11809
- const rt = t(this, f) ? t(this, B) : z(this, m, Vi).call(this, W, q), C = j.getContext("2d");
11810
- C.filter = this._uiManager.hcmFilter, C.drawImage(rt, 0, 0, rt.width, rt.height, 0, 0, W, q);
11808
+ j.width = W, j.height = Y;
11809
+ const rt = t(this, f) ? t(this, B) : z(this, m, qi).call(this, W, Y), C = j.getContext("2d");
11810
+ C.filter = this._uiManager.hcmFilter, C.drawImage(rt, 0, 0, rt.width, rt.height, 0, 0, W, Y);
11811
11811
  }, Me = function(W) {
11812
11812
  if (W) {
11813
11813
  if (t(this, f)) {
@@ -11815,23 +11815,23 @@ function requirePdf() {
11815
11815
  if (rt)
11816
11816
  return rt;
11817
11817
  }
11818
- const q = document.createElement("canvas");
11818
+ const Y = document.createElement("canvas");
11819
11819
  return {
11820
- width: q.width,
11821
- height: q.height
11822
- } = t(this, B), q.getContext("2d").drawImage(t(this, B), 0, 0), q.toDataURL();
11820
+ width: Y.width,
11821
+ height: Y.height
11822
+ } = t(this, B), Y.getContext("2d").drawImage(t(this, B), 0, 0), Y.toDataURL();
11823
11823
  }
11824
11824
  if (t(this, f)) {
11825
- const [q, j] = this.pageDimensions, rt = Math.round(this.width * q * ct.PixelsPerInch.PDF_TO_CSS_UNITS), C = Math.round(this.height * j * ct.PixelsPerInch.PDF_TO_CSS_UNITS), U = new OffscreenCanvas(rt, C);
11825
+ const [Y, j] = this.pageDimensions, rt = Math.round(this.width * Y * ct.PixelsPerInch.PDF_TO_CSS_UNITS), C = Math.round(this.height * j * ct.PixelsPerInch.PDF_TO_CSS_UNITS), U = new OffscreenCanvas(rt, C);
11826
11826
  return U.getContext("2d").drawImage(t(this, B), 0, 0, t(this, B).width, t(this, B).height, 0, 0, rt, C), U.transferToImageBitmap();
11827
11827
  }
11828
11828
  return structuredClone(t(this, B));
11829
- }, qi = function() {
11829
+ }, Yi = function() {
11830
11830
  et(this, b, new ResizeObserver((W) => {
11831
- const q = W[0].contentRect;
11832
- q.width && q.height && z(this, m, $i).call(this, q.width, q.height);
11831
+ const Y = W[0].contentRect;
11832
+ Y.width && Y.height && z(this, m, Vi).call(this, Y.width, Y.height);
11833
11833
  })), t(this, b).observe(this.div);
11834
- }, Kt(_, "_type", "stamp");
11834
+ }, Jt(_, "_type", "stamp");
11835
11835
  let bt = _;
11836
11836
  h.StampEditor = bt;
11837
11837
  })
@@ -11880,7 +11880,7 @@ function requirePdf() {
11880
11880
  }), Object.defineProperty(gt, "AnnotationEditorUIManager", {
11881
11881
  enumerable: !0,
11882
11882
  get: function() {
11883
- return V.AnnotationEditorUIManager;
11883
+ return q.AnnotationEditorUIManager;
11884
11884
  }
11885
11885
  }), Object.defineProperty(gt, "AnnotationLayer", {
11886
11886
  enumerable: !0,
@@ -12078,7 +12078,7 @@ function requirePdf() {
12078
12078
  return ot.version;
12079
12079
  }
12080
12080
  });
12081
- var h = __w_pdfjs_require__(1), ot = __w_pdfjs_require__(2), l = __w_pdfjs_require__(6), T = __w_pdfjs_require__(26), ct = __w_pdfjs_require__(27), V = __w_pdfjs_require__(5), bt = __w_pdfjs_require__(29), B = __w_pdfjs_require__(14), R = __w_pdfjs_require__(32);
12081
+ var h = __w_pdfjs_require__(1), ot = __w_pdfjs_require__(2), l = __w_pdfjs_require__(6), T = __w_pdfjs_require__(26), ct = __w_pdfjs_require__(27), q = __w_pdfjs_require__(5), bt = __w_pdfjs_require__(29), B = __w_pdfjs_require__(14), R = __w_pdfjs_require__(32);
12082
12082
  })(), __webpack_exports__;
12083
12083
  })()
12084
12084
  ));