@oscharko-dev/keiko 1.2.6 → 1.2.7

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 (172) hide show
  1. package/dist/ui/csp-hashes.json +8 -8
  2. package/dist/ui/static/404.html +1 -1
  3. package/dist/ui/static/__next.__PAGE__.txt +5 -5
  4. package/dist/ui/static/__next._full.txt +5 -5
  5. package/dist/ui/static/__next._tree.txt +1 -1
  6. package/dist/ui/static/_next/static/chunks/06hwq8_gunvuo.js +29 -0
  7. package/dist/ui/static/_next/static/chunks/0891-mvb901op.js +1 -1
  8. package/dist/ui/static/_next/static/chunks/{30-f39wg2ukb0.js → 09v8w4wuj4m1_.js} +2 -2
  9. package/dist/ui/static/_next/static/chunks/0alcm0tnx-n8-.js +1 -1
  10. package/dist/ui/static/_next/static/chunks/0c_k9ehs17w4l.js +1 -1
  11. package/dist/ui/static/_next/static/chunks/0kjv5jpoy_3wx.js +1 -1
  12. package/dist/ui/static/_next/static/chunks/0ob6quzp23sqe.js +1 -1
  13. package/dist/ui/static/_next/static/chunks/0squn2lq5smnf.js +1 -1
  14. package/dist/ui/static/_next/static/chunks/{3ks40owmq5dke.css → 0vqzhbpt7iewb.css} +10 -9
  15. package/dist/ui/static/_next/static/chunks/0xbqv2_0xajgv.js +1 -1
  16. package/dist/ui/static/_next/static/chunks/11186fkh5coce.js +2 -0
  17. package/dist/ui/static/_next/static/chunks/12ncxpwq54-k2.js +1 -1
  18. package/dist/ui/static/_next/static/chunks/14tr5ujuc_u34.js +1 -1
  19. package/dist/ui/static/_next/static/chunks/1daa_1zod-ndb.js +1 -1
  20. package/dist/ui/static/_next/static/chunks/{10-ixote6buhh.js → 1layk925byvud.js} +1 -1
  21. package/dist/ui/static/_next/static/chunks/1mxu3l7fz5yz1.js +1 -1
  22. package/dist/ui/static/_next/static/chunks/1nqe0rzxqwjkw.js +732 -0
  23. package/dist/ui/static/_next/static/chunks/1p6h98yn2nqtv.js +1 -1
  24. package/dist/ui/static/_next/static/chunks/{2bc_13-_upoqj.js → 1wsoxouji7eb9.js} +1 -1
  25. package/dist/ui/static/_next/static/chunks/20ij-phmydgc3.js +1 -1
  26. package/dist/ui/static/_next/static/chunks/{1xivtevfo8yzl.js → 2206mw-z43vyo.js} +1 -1
  27. package/dist/ui/static/_next/static/chunks/{3j_pd5g21st5o.js → 22pvivewswjat.js} +1 -1
  28. package/dist/ui/static/_next/static/chunks/{1293esxg_t46n.css → 272m__6w4ehe1.css} +6 -4
  29. package/dist/ui/static/_next/static/chunks/2az51zfcfe4w7.js +1 -1
  30. package/dist/ui/static/_next/static/chunks/2fr8bahvq9eg9.js +1 -1
  31. package/dist/ui/static/_next/static/chunks/{209aaqjv6z8gh.js → 2gvu8dyrhibpa.js} +1 -1
  32. package/dist/ui/static/_next/static/chunks/2na7t_nmk3z_c.js +1 -1
  33. package/dist/ui/static/_next/static/chunks/2nxhnrgae6nij.js +1 -1
  34. package/dist/ui/static/_next/static/chunks/{1t276xv4ec2k7.js → 2ql8dczlqzd4u.js} +1 -1
  35. package/dist/ui/static/_next/static/chunks/{33po7i9f3y-hi.js → 2ty81249w2gdw.js} +1 -1
  36. package/dist/ui/static/_next/static/chunks/2vmw7uw9qfxtm.js +2 -0
  37. package/dist/ui/static/_next/static/chunks/37kujq-6rc3ey.js +1 -1
  38. package/dist/ui/static/_next/static/chunks/3i3kblvx52ywv.js +1 -1
  39. package/dist/ui/static/_next/static/chunks/3j8fuk7gt_nsd.js +1 -1
  40. package/dist/ui/static/_next/static/chunks/3n0xbx7qq5429.js +1 -1
  41. package/dist/ui/static/_next/static/chunks/3n16srxs2afdp.js +1 -1
  42. package/dist/ui/static/_next/static/chunks/3rg7mh8olm1dj.js +1 -0
  43. package/dist/ui/static/_next/static/chunks/3s1wb0rz0bdep.js +1 -1
  44. package/dist/ui/static/_next/static/chunks/{turbopack-17n7tuo0-0vcg.js → turbopack-3-2dc0s_e9msx.js} +1 -1
  45. package/dist/ui/static/_next/static/media/{codicon.2b_iqd4rvjgu4.ttf → codicon.42hqluqtoi4oe.ttf} +0 -0
  46. package/dist/ui/static/_not-found/__next._full.txt +1 -1
  47. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +1 -1
  48. package/dist/ui/static/_not-found/__next._tree.txt +1 -1
  49. package/dist/ui/static/_not-found.html +1 -1
  50. package/dist/ui/static/_not-found.txt +1 -1
  51. package/dist/ui/static/atlassian-connectors/__next._full.txt +1 -1
  52. package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
  53. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +1 -1
  54. package/dist/ui/static/atlassian-connectors.html +1 -1
  55. package/dist/ui/static/atlassian-connectors.txt +1 -1
  56. package/dist/ui/static/index.html +1 -1
  57. package/dist/ui/static/index.txt +5 -5
  58. package/dist/ui/static/launch/__next._full.txt +5 -5
  59. package/dist/ui/static/launch/__next._tree.txt +1 -1
  60. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +5 -5
  61. package/dist/ui/static/launch.html +1 -1
  62. package/dist/ui/static/launch.txt +5 -5
  63. package/dist/ui/static/local-knowledge/__next._full.txt +5 -5
  64. package/dist/ui/static/local-knowledge/__next._tree.txt +1 -1
  65. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +5 -5
  66. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +1 -1
  67. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
  68. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +1 -1
  69. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  70. package/dist/ui/static/local-knowledge/capsule.txt +1 -1
  71. package/dist/ui/static/local-knowledge.html +1 -1
  72. package/dist/ui/static/local-knowledge.txt +5 -5
  73. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +5 -0
  74. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts.map +1 -1
  75. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.js +6 -0
  76. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts +7 -0
  77. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts.map +1 -1
  78. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.js +9 -1
  79. package/node_modules/@oscharko-dev/keiko-activity-log/package.json +3 -3
  80. package/node_modules/@oscharko-dev/keiko-cli/package.json +15 -15
  81. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
  82. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
  83. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  84. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
  85. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +2 -2
  86. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  87. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  88. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  89. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
  90. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  91. package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
  92. package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
  93. package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
  94. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
  95. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  96. package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
  97. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  98. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  99. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +6 -6
  100. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  101. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  102. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  103. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  104. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  105. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  106. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  107. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  108. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  109. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  110. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  111. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  112. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  113. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  114. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  115. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  116. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  117. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
  118. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  119. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  120. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  121. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  122. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  123. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  124. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
  125. package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +6 -5
  126. package/node_modules/@oscharko-dev/keiko-server/package.json +24 -24
  127. package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
  128. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  129. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  130. package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
  131. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  132. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  133. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  134. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  135. package/node_modules/@oscharko-dev/keiko-workspace/package.json +4 -4
  136. package/package.json +38 -38
  137. package/release-impact.catalog.json +73 -0
  138. package/vendor/oscharko-dev-keiko-activity-log-1.2.7.tgz +0 -0
  139. package/vendor/{oscharko-dev-keiko-cli-1.2.6.tgz → oscharko-dev-keiko-cli-1.2.7.tgz} +0 -0
  140. package/vendor/{oscharko-dev-keiko-connectors-1.2.6.tgz → oscharko-dev-keiko-connectors-1.2.7.tgz} +0 -0
  141. package/vendor/{oscharko-dev-keiko-contracts-1.2.6.tgz → oscharko-dev-keiko-contracts-1.2.7.tgz} +0 -0
  142. package/vendor/{oscharko-dev-keiko-evaluations-1.2.6.tgz → oscharko-dev-keiko-evaluations-1.2.7.tgz} +0 -0
  143. package/vendor/{oscharko-dev-keiko-evidence-1.2.6.tgz → oscharko-dev-keiko-evidence-1.2.7.tgz} +0 -0
  144. package/vendor/{oscharko-dev-keiko-git-1.2.6.tgz → oscharko-dev-keiko-git-1.2.7.tgz} +0 -0
  145. package/vendor/{oscharko-dev-keiko-harness-1.2.6.tgz → oscharko-dev-keiko-harness-1.2.7.tgz} +0 -0
  146. package/vendor/{oscharko-dev-keiko-local-knowledge-1.2.6.tgz → oscharko-dev-keiko-local-knowledge-1.2.7.tgz} +0 -0
  147. package/vendor/{oscharko-dev-keiko-memory-capture-1.2.6.tgz → oscharko-dev-keiko-memory-capture-1.2.7.tgz} +0 -0
  148. package/vendor/{oscharko-dev-keiko-memory-consolidation-1.2.6.tgz → oscharko-dev-keiko-memory-consolidation-1.2.7.tgz} +0 -0
  149. package/vendor/{oscharko-dev-keiko-memory-governance-1.2.6.tgz → oscharko-dev-keiko-memory-governance-1.2.7.tgz} +0 -0
  150. package/vendor/{oscharko-dev-keiko-memory-retrieval-1.2.6.tgz → oscharko-dev-keiko-memory-retrieval-1.2.7.tgz} +0 -0
  151. package/vendor/{oscharko-dev-keiko-memory-vault-1.2.6.tgz → oscharko-dev-keiko-memory-vault-1.2.7.tgz} +0 -0
  152. package/vendor/{oscharko-dev-keiko-model-gateway-1.2.6.tgz → oscharko-dev-keiko-model-gateway-1.2.7.tgz} +0 -0
  153. package/vendor/{oscharko-dev-keiko-quality-intelligence-1.2.6.tgz → oscharko-dev-keiko-quality-intelligence-1.2.7.tgz} +0 -0
  154. package/vendor/{oscharko-dev-keiko-sandbox-1.2.6.tgz → oscharko-dev-keiko-sandbox-1.2.7.tgz} +0 -0
  155. package/vendor/{oscharko-dev-keiko-sdk-1.2.6.tgz → oscharko-dev-keiko-sdk-1.2.7.tgz} +0 -0
  156. package/vendor/{oscharko-dev-keiko-security-1.2.6.tgz → oscharko-dev-keiko-security-1.2.7.tgz} +0 -0
  157. package/vendor/oscharko-dev-keiko-server-1.2.7.tgz +0 -0
  158. package/vendor/{oscharko-dev-keiko-tool-catalog-1.2.6.tgz → oscharko-dev-keiko-tool-catalog-1.2.7.tgz} +0 -0
  159. package/vendor/{oscharko-dev-keiko-tools-1.2.6.tgz → oscharko-dev-keiko-tools-1.2.7.tgz} +0 -0
  160. package/vendor/{oscharko-dev-keiko-verification-1.2.6.tgz → oscharko-dev-keiko-verification-1.2.7.tgz} +0 -0
  161. package/vendor/{oscharko-dev-keiko-workflows-1.2.6.tgz → oscharko-dev-keiko-workflows-1.2.7.tgz} +0 -0
  162. package/vendor/{oscharko-dev-keiko-workspace-1.2.6.tgz → oscharko-dev-keiko-workspace-1.2.7.tgz} +0 -0
  163. package/dist/ui/static/_next/static/chunks/0f-ub6bs0i1sj.js +0 -2
  164. package/dist/ui/static/_next/static/chunks/18voy19pok4ko.js +0 -671
  165. package/dist/ui/static/_next/static/chunks/2eif0mrb2ok4e.js +0 -1
  166. package/dist/ui/static/_next/static/chunks/3ggg2nmiwuz90.js +0 -27
  167. package/dist/ui/static/_next/static/chunks/3qhgsd4mwnt9v.js +0 -2
  168. package/vendor/oscharko-dev-keiko-activity-log-1.2.6.tgz +0 -0
  169. package/vendor/oscharko-dev-keiko-server-1.2.6.tgz +0 -0
  170. /package/dist/ui/static/_next/static/{dHwBvAPZHCBS19_AHKzGd → H3xxDPi4xvbxoz-xJSbax}/_buildManifest.js +0 -0
  171. /package/dist/ui/static/_next/static/{dHwBvAPZHCBS19_AHKzGd → H3xxDPi4xvbxoz-xJSbax}/_clientMiddlewareManifest.js +0 -0
  172. /package/dist/ui/static/_next/static/{dHwBvAPZHCBS19_AHKzGd → H3xxDPi4xvbxoz-xJSbax}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o,t.apply(n,e);}});}function _classPrivateMethodInitSpec(e,a){_checkPrivateRedeclaration(e,a),a.add(e);}function _classPrivateGetter(s,r,a){return a(_assertClassBrand(s,r));}function _classPrivateFieldSet(s,a,r){return s.set(_assertClassBrand(s,a),r),r;}function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a);}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object");}function _classPrivateFieldGet(s,a){return s.get(_assertClassBrand(s,a));}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==typeof i?i:i+"";}function _toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _assertClassBrand(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object");}(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,66667,t=>{"use strict";var _G,_ti,_tN,_tz,_tX2,_eg2,_rC,_rE,_r_,_rT,_Class_brand,_iz2,_ij$ro,_ij$ro2,_iW2,_iQ5,_rk2,_rP2,_rj2,_rX2,_r30;var e=t.i(47167),i=t.i(67034),r={get url(){return t.F("node_modules/pdfjs-dist/legacy/build/pdf.mjs");},env:{DEV:!1,PROD:!0,MODE:"production",BASE_URL:"/",SSR:!1}},s={9306(t,e,i){var r=i(4901),s=i(6823),n=TypeError;t.exports=function(t){if(r(t))return t;throw new n(s(t)+" is not a function");};},3506(t,e,i){var r=i(3925),s=String,n=TypeError;t.exports=function(t){if(r(t))return t;throw new n("Can't set "+s(t)+" as a prototype");};},7080(t,e,i){var r=i(4402).has;t.exports=function(t){return r(t),t;};},3463(t){var e=TypeError;t.exports=function(t){if("string"==typeof t)return t;throw new e("Argument is not a string");};},4328(t,e,i){var r=i(4995),s=new r.WeakMap(),n=r.set,a=r.remove;t.exports=function(t){return n(s,t,1),a(s,t),t;};},6557(t,e,i){var r=i(4995).has;t.exports=function(t){return r(t),t;};},6469(t,e,i){var r=i(8227),s=i(2360),n=i(4913).f,a=r("unscopables"),o=Array.prototype;void 0===o[a]&&n(o,a,{configurable:!0,value:s(null)}),t.exports=function(t){o[a][t]=!0;};},679(t,e,i){var r=i(1625),s=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new s("Incorrect invocation");};},3972(t,e,i){var r=i(34),s=String,n=TypeError;t.exports=function(t){if(void 0===t||r(t))return t;throw new n(s(t)+" is not an object or undefined");};},8551(t,e,i){var r=i(34),s=String,n=TypeError;t.exports=function(t){if(r(t))return t;throw new n(s(t)+" is not an object");};},4154(t,e,i){var r=i(6955),s=TypeError;t.exports=function(t){if("Uint8Array"===r(t))return t;throw new s("Argument is not an Uint8Array");};},7811(t){t.exports="u">typeof ArrayBuffer&&"u">typeof DataView;},7394(t,e,i){var r=i(4576),s=i(6706),n=i(2195),a=r.ArrayBuffer,o=r.TypeError;t.exports=a&&s(a.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==n(t))throw new o("ArrayBuffer expected");return t.byteLength;};},3238(t,e,i){var r=i(4576),s=i(7811),n=i(7394),a=r.DataView;t.exports=function(t){if(!s||0!==n(t))return!1;try{return new a(t),!1;}catch(t){return!0;}};},5169(t,e,i){var r=i(3238),s=TypeError;t.exports=function(t){if(r(t))throw new s("ArrayBuffer is detached");return t;};},4644(t,e,i){var r,s,n,a=i(7811),o=i(3724),l=i(4576),h=i(4901),d=i(34),c=i(9297),u=i(6955),p=i(6823),g=i(6699),m=i(6840),f=i(2106),b=i(1625),v=i(2787),y=i(2967),A=i(8227),x=i(3392),w=i(1181),S=w.enforce,C=w.get,E=l.Int8Array,_=E&&E.prototype,T=l.Uint8ClampedArray,k=T&&T.prototype,M=E&&v(E),P=_&&v(_),D=Object.prototype,I=l.TypeError,R=A("toStringTag"),F=x("TYPED_ARRAY_TAG"),O="TypedArrayConstructor",B=a&&!!y&&"Opera"!==u(l.opera),L=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},z=function(t){var e=v(t);if(d(e)){var i=C(e);return i&&c(i,O)?i[O]:z(e);}},G=function(t){if(!d(t))return!1;var e=u(t);return c(N,e)||c(U,e);};for(r in N)(n=(s=l[r])&&s.prototype)?S(n)[O]=s:B=!1;for(r in U)(n=(s=l[r])&&s.prototype)&&(S(n)[O]=s);if((!B||!h(M)||M===Function.prototype)&&(M=function(){throw new I("Incorrect invocation");},B))for(r in N)l[r]&&y(l[r],M);if((!B||!P||P===D)&&(P=M.prototype,B))for(r in N)l[r]&&y(l[r].prototype,P);if(B&&v(k)!==P&&y(k,P),o&&!c(P,R))for(r in L=!0,f(P,R,{configurable:!0,get:function(){return d(this)?this[F]:void 0;}}),N)l[r]&&g(l[r].prototype,F,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:B,TYPED_ARRAY_TAG:L&&F,aTypedArray:function(t){if(G(t))return t;throw new I("Target is not a typed array");},aTypedArrayConstructor:function(t){if(h(t)&&(!y||b(M,t)))return t;throw new I(p(t)+" is not a typed array constructor");},exportTypedArrayMethod:function(t,e,i,r){if(o){if(i)for(var s in N){var n=l[s];if(n&&c(n.prototype,t))try{delete n.prototype[t];}catch(i){try{n.prototype[t]=e;}catch(t){}}}(!P[t]||i)&&m(P,t,i?e:B&&_[t]||e,r);}},exportTypedArrayStaticMethod:function(t,e,i){var r,s;if(o){if(y){if(i){for(r in N)if((s=l[r])&&c(s,t))try{delete s[t];}catch(t){}}if(M[t]&&!i)return;try{return m(M,t,i?e:B&&M[t]||e);}catch(t){}}for(r in N)(s=l[r])&&(!s[t]||i)&&m(s,t,e);}},getTypedArrayConstructor:z,isView:function(t){if(!d(t))return!1;var e=u(t);return"DataView"===e||c(N,e)||c(U,e);},isTypedArray:G,TypedArray:M,TypedArrayPrototype:P};},5370(t,e,i){var r=i(6198);t.exports=function(t,e,i){for(var s=0,n=arguments.length>2?i:r(e),a=new t(n);n>s;)a[s]=e[s++];return a;};},9617(t,e,i){var r=i(5397),s=i(5610),n=i(6198),a=function(t){return function(e,i,a){var o,l=r(e),h=n(l);if(0===h)return!t&&-1;var d=s(a,h);if(t&&i!=i){for(;h>d;)if((o=l[d++])!=o)return!0;}else for(;h>d;d++)if((t||d in l)&&l[d]===i)return t||d||0;return!t&&-1;};};t.exports={includes:a(!0),indexOf:a(!1)};},4527(t,e,i){var r=i(3724),s=i(4376),n=TypeError,a=Object.getOwnPropertyDescriptor;t.exports=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1;}catch(t){return t instanceof TypeError;}}()?function(t,e){if(s(t)&&!a(t,"length").writable)throw new n("Cannot set read only .length");return t.length=e;}:function(t,e){return t.length=e;};},7680(t,e,i){t.exports=i(9504)([].slice);},2804(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=e+"+/",r=e+"-_",s=function(t){for(var e={},i=0;i<64;i++)e[t.charAt(i)]=i;return e;};t.exports={i2c:i,c2i:s(i),i2cUrl:r,c2iUrl:s(r)};},6319(t,e,i){var r=i(8551),s=i(9539);t.exports=function(t,e,i,n){try{return n?e(r(i)[0],i[1]):e(i);}catch(e){s(t,"throw",e);}};},2195(t,e,i){var r=i(9504),s=r({}.toString),n=r("".slice);t.exports=function(t){return n(s(t),8,-1);};},6955(t,e,i){var r=i(2140),s=i(4901),n=i(2195),a=i(8227)("toStringTag"),o=Object,l="Arguments"===n(function(){return arguments;}()),h=function(t,e){try{return t[e];}catch(t){}};t.exports=r?n:function(t){var e,i,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=h(e=o(t),a))?i:l?n(e):"Object"===(r=n(e))&&s(e.callee)?"Arguments":r;};},7740(t,e,i){var r=i(9297),s=i(5031),n=i(7347),a=i(4913);t.exports=function(t,e,i){for(var o=s(e),l=a.f,h=n.f,d=0;d<o.length;d++){var c=o[d];r(t,c)||i&&r(i,c)||l(t,c,h(e,c));}};},2211(t,e,i){t.exports=!i(9039)(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t())!==t.prototype;});},2529(t){t.exports=function(t,e){return{value:t,done:e};};},6699(t,e,i){var r=i(3724),s=i(4913),n=i(6980);t.exports=r?function(t,e,i){return s.f(t,e,n(1,i));}:function(t,e,i){return t[e]=i,t;};},6980(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e};};},4659(t,e,i){var r=i(3724),s=i(4913),n=i(6980);t.exports=function(t,e,i){r?s.f(t,e,n(0,i)):t[e]=i;};},2106(t,e,i){var r=i(283),s=i(4913);t.exports=function(t,e,i){return i.get&&r(i.get,e,{getter:!0}),i.set&&r(i.set,e,{setter:!0}),s.f(t,e,i);};},6840(t,e,i){var r=i(4901),s=i(4913),n=i(283),a=i(9433);t.exports=function(t,e,i,o){o||(o={});var l=o.enumerable,h=void 0!==o.name?o.name:e;if(r(i)&&n(i,h,o),o.global)l?t[e]=i:a(e,i);else{try{o.unsafe?t[e]&&(l=!0):delete t[e];}catch(t){}l?t[e]=i:s.f(t,e,{value:i,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable});}return t;};},6279(t,e,i){var r=i(6840);t.exports=function(t,e,i){for(var s in e)r(t,s,e[s],i);return t;};},9433(t,e,i){var r=i(4576),s=Object.defineProperty;t.exports=function(t,e){try{s(r,t,{value:e,configurable:!0,writable:!0});}catch(i){r[t]=e;}return e;};},3724(t,e,i){t.exports=!i(9039)(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7;}})[1];});},4055(t,e,i){var r=i(4576),s=i(34),n=r.document,a=s(n)&&s(n.createElement);t.exports=function(t){return a?n.createElement(t):{};};},6837(t){var e=TypeError;t.exports=function(t){if(t>0x1fffffffffffff)throw new e("Maximum allowed index exceeded");return t;};},5002(t){t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}};},8727(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];},2839(t,e,i){var r=i(4576).navigator,s=r&&r.userAgent;t.exports=s?String(s):"";},9519(t,e,i){var r,s,n=i(4576),a=i(2839),o=n.process,l=n.Deno,h=o&&o.versions||l&&l.version,d=h&&h.v8;d&&(s=(r=d.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(s=+r[1]),t.exports=s;},6193(t,e,i){var r=i(9504),s=Error,n=r("".replace),a=String(new s("zxcasd").stack),o=/\n\s*at [^:]*:[^\n]*/,l=o.test(a);t.exports=function(t,e){if(l&&"string"==typeof t&&!s.prepareStackTrace)for(;e--;)t=n(t,o,"");return t;};},6518(t,e,i){var r=i(4576),s=i(7347).f,n=i(6699),a=i(6840),o=i(9433),l=i(7740),h=i(2796);t.exports=function(t,e){var i,d,c,u,p,g=t.target,m=t.global,f=t.stat;if(i=m?r:f?r[g]||o(g,{}):r[g]&&r[g].prototype)for(d in e){if(u=e[d],c=t.dontCallGetSet?(p=s(i,d))&&p.value:i[d],!h(m?d:g+(f?".":"#")+d,t.forced)&&void 0!==c){if(typeof u==typeof c)continue;l(u,c);}(t.sham||c&&c.sham)&&n(u,"sham",!0),a(i,d,u,t);}};},9039(t){t.exports=function(t){try{return!!t();}catch(t){return!0;}};},8745(t,e,i){var r=i(616),s=Function.prototype,n=s.apply,a=s.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(n):function(){return a.apply(n,arguments);});},6080(t,e,i){var r=i(7476),s=i(9306),n=i(616),a=r(r.bind);t.exports=function(t,e){return s(t),void 0===e?t:n?a(t,e):function(){return t.apply(e,arguments);};};},616(t,e,i){t.exports=!i(9039)(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype");});},9565(t,e,i){var r=i(616),s=Function.prototype.call;t.exports=r?s.bind(s):function(){return s.apply(s,arguments);};},350(t,e,i){var r=i(3724),s=i(9297),n=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,o=s(n,"name"),l=o&&(!r||r&&a(n,"name").configurable);t.exports={EXISTS:o,PROPER:o&&"something"===function(){}.name,CONFIGURABLE:l};},6706(t,e,i){var r=i(9504),s=i(9306);t.exports=function(t,e,i){try{return r(s(Object.getOwnPropertyDescriptor(t,e)[i]));}catch(t){}};},7476(t,e,i){var r=i(2195),s=i(9504);t.exports=function(t){if("Function"===r(t))return s(t);};},9504(t,e,i){var r=i(616),s=Function.prototype,n=s.call,a=r&&s.bind.bind(n,n);t.exports=r?a:function(t){return function(){return n.apply(t,arguments);};};},944(t){var e=TypeError;t.exports=function(t){var i=t&&t.alphabet;if(void 0===i||"base64"===i||"base64url"===i)return i||"base64";throw new e("Incorrect `alphabet` option");};},7751(t,e,i){var r=i(4576),s=i(4901);t.exports=function(t,e){var i;return arguments.length<2?s(i=r[t])?i:void 0:r[t]&&r[t][e];};},1767(t){t.exports=function(t){return{iterator:t,next:t.next,done:!1};};},8646(t,e,i){var r=i(9565),s=i(8551),n=i(1767),a=i(3085);t.exports=function(t,e){e&&"string"==typeof t||s(t);var i=a(t);return n(s(void 0!==i?r(i,t):t));};},8563(t,e,i){var r=i(9565),s=i(4901),n=i(8551),a=i(6823),o=i(3085),l=TypeError;t.exports=function(t,e){var i=arguments.length<2?o(t):e;if(s(i))return n(r(i,t));throw new l(a(t)+" is not iterable");};},3085(t,e,i){var r=i(2195),s=i(4117),n=i(5966),a=i(8227)("iterator"),o=Array.prototype;t.exports=function(t){if(!s(t))return n(t,a)||n(t,"@@iterator")||("Arguments"===r(t)?o[a]:void 0);};},5966(t,e,i){var r=i(9306),s=i(4117);t.exports=function(t,e){var i=t[e];return s(i)?void 0:r(i);};},3789(t,e,i){var r=i(9306),s=i(8551),n=i(9565),a=i(1291),o=i(1767),l="Invalid size",h=RangeError,d=TypeError,c=Math.max,u=function(t,e){this.set=t,this.size=c(e,0),this.has=r(t.has),this.keys=r(t.keys);};u.prototype={getIterator:function(){return o(s(n(this.keys,this.set)));},includes:function(t){return n(this.has,this.set,t);}},t.exports=function(t){s(t);var e=+t.size;if(e!=e)throw new d(l);var i=a(e);if(i<0)throw new h(l);return new u(t,i);};},4576(e){var i=function(t){return t&&t.Math===Math&&t;};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i(t.g)||i("object"==typeof this&&this)||function(){return this;}()||Function("return this")();},9297(t,e,i){var r=i(9504),s=i(8981),n=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return n(s(t),e);};},421(t){t.exports={};},397(t,e,i){t.exports=i(7751)("document","documentElement");},5917(t,e,i){var r=i(3724),s=i(9039),n=i(4055);t.exports=!r&&!s(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7;}}).a;});},7055(t,e,i){var r=i(9504),s=i(9039),n=i(2195),a=Object,o=r("".split);t.exports=s(function(){return!a("z").propertyIsEnumerable(0);})?function(t){return"String"===n(t)?o(t,""):a(t);}:a;},3167(t,e,i){var r=i(4901),s=i(34),n=i(2967);t.exports=function(t,e,i){var a,o;return n&&r(a=e.constructor)&&a!==i&&s(o=a.prototype)&&o!==i.prototype&&n(t,o),t;};},3706(t,e,i){var r=i(9504),s=i(4901),n=i(7629),a=r(Function.toString);s(n.inspectSource)||(n.inspectSource=function(t){return a(t);}),t.exports=n.inspectSource;},1181(t,e,i){var r,s,n,a=i(8622),o=i(4576),l=i(34),h=i(6699),d=i(9297),c=i(7629),u=i(6119),p=i(421),g="Object already initialized",m=o.TypeError,f=o.WeakMap;if(a||c.state){var b=c.state||(c.state=new f());b.get=b.get,b.has=b.has,b.set=b.set,r=function(t,e){if(b.has(t))throw new m(g);return e.facade=t,b.set(t,e),e;},s=function(t){return b.get(t)||{};},n=function(t){return b.has(t);};}else{var v=u("state");p[v]=!0,r=function(t,e){if(d(t,v))throw new m(g);return e.facade=t,h(t,v,e),e;},s=function(t){return d(t,v)?t[v]:{};},n=function(t){return d(t,v);};}t.exports={set:r,get:s,has:n,enforce:function(t){return n(t)?s(t):r(t,{});},getterFor:function(t){return function(e){var i;if(!l(e)||(i=s(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return i;};}};},4209(t,e,i){var r=i(8227),s=i(6269),n=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||a[n]===t);};},4376(t,e,i){var r=i(2195);t.exports=Array.isArray||function(t){return"Array"===r(t);};},1108(t,e,i){var r=i(6955);t.exports=function(t){var e=r(t);return"BigInt64Array"===e||"BigUint64Array"===e;};},4901(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e;}:function(t){return"function"==typeof t;};},2796(t,e,i){var r=i(9039),s=i(4901),n=/#|\.prototype\./,a=function(t,e){var i=l[o(t)];return i===d||i!==h&&(s(e)?r(e):!!e);},o=a.normalize=function(t){return String(t).replace(n,".").toLowerCase();},l=a.data={},h=a.NATIVE="N",d=a.POLYFILL="P";t.exports=a;},4117(t){t.exports=function(t){return null==t;};},34(t,e,i){var r=i(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t);};},3925(t,e,i){var r=i(34);t.exports=function(t){return r(t)||null===t;};},6395(t){t.exports=!1;},5810(t,e,i){var r=i(34),s=i(1181).get;t.exports=function(t){if(!r(t))return!1;var e=s(t);return!!e&&"RawJSON"===e.type;};},757(t,e,i){var r=i(7751),s=i(4901),n=i(1625),a=i(7040),o=Object;t.exports=a?function(t){return"symbol"==typeof t;}:function(t){var e=r("Symbol");return s(e)&&n(e.prototype,o(t));};},507(t,e,i){var r=i(9565);t.exports=function(t,e,i){for(var s,n,a=i?t:t.iterator,o=t.next;!(s=r(o,a)).done;)if(void 0!==(n=e(s.value)))return n;};},2652(t,e,i){var r=i(6080),s=i(9565),n=i(8551),a=i(6823),o=i(4209),l=i(6198),h=i(1625),d=i(8563),c=i(3085),u=i(9539),p=TypeError,g=function(t,e){this.stopped=t,this.result=e;},m=g.prototype;t.exports=function(t,e,i){var f,b,v,y,A,x,w,S=i&&i.that,C=!!(i&&i.AS_ENTRIES),E=!!(i&&i.IS_RECORD),_=!!(i&&i.IS_ITERATOR),T=!!(i&&i.INTERRUPTED),k=r(e,S),M=function(t){var e=f;return f=void 0,e&&u(e,"normal"),new g(!0,t);},P=function(t){return C?(n(t),T?k(t[0],t[1],M):k(t[0],t[1])):T?k(t,M):k(t);};if(E)f=t.iterator;else if(_)f=t;else{if(!(b=c(t)))throw new p(a(t)+" is not iterable");if(o(b)){for(v=0,y=l(t);y>v;v++)if((A=P(t[v]))&&h(m,A))return A;return new g(!1);}f=d(t,b);}for(x=E?t.next:f.next;!(w=s(x,f)).done;){var D=w.value;try{A=P(D);}catch(t){if(f)u(f,"throw",t);else throw t;}if("object"==typeof A&&A&&h(m,A))return A;}return new g(!1);};},6859(t){t.exports=function(t){t.iterator=t.next=t.nextHandler=t.mapper=t.predicate=t.inner=t.iterables=t.iters=t.openIters=t.padding=t.finishResults=t.buffer=null;};},1385(t,e,i){var r=i(9539);t.exports=function(t,e,i){for(var s=t.length-1;s>=0;s--)if(void 0!==t[s])try{i=r(t[s].iterator,e,i);}catch(t){e="throw",i=t;}if("throw"===e)throw i;return i;};},9539(t,e,i){var r=i(9565),s=i(8551),n=i(5966);t.exports=function(t,e,i){var a,o;s(t);try{if(!(a=n(t,"return"))){if("throw"===e)throw i;return i;}a=r(a,t);}catch(t){o=!0,a=t;}if("throw"===e)throw i;if(o)throw a;return s(a),i;};},9462(t,e,i){var r=i(9565),s=i(2360),n=i(6699),a=i(6279),o=i(8227),l=i(1181),h=i(5966),d=i(7657).IteratorPrototype,c=i(2529),u=i(9539),p=i(1385),g=i(6859),m=o("toStringTag"),f="IteratorHelper",b="WrapForValidIterator",v="normal",y="throw",A=l.set,x=function(t){var e=l.getterFor(t?b:f);return a(s(d),{next:function(){var i=e(this);if(t)return i.nextHandler();if(i.done)return c(void 0,!0);try{var r=i.nextHandler();return i.done&&g(i),i.returnHandlerResult?r:c(r,i.done);}catch(t){throw i.done=!0,g(i),t;}},return:function(){var i=e(this),s=i.iterator,n=i.inner,a=i.openIters,o=i.done;if(i.done=!0,t){var l=h(s,"return");return l?r(l,s):c(void 0,!0);}if(g(i),o)return c(void 0,!0);if(n)try{u(n.iterator,v);}catch(t){return u(s,y,t);}if(a)try{p(a,v);}catch(t){if(s)return u(s,y,t);throw t;}return s&&u(s,v),c(void 0,!0);}});},w=x(!0),S=x(!1);n(S,m,"Iterator Helper"),t.exports=function(t,e,i){var r=function(r,s){s?(s.iterator=r.iterator,s.next=r.next):s=r,s.type=e?b:f,s.returnHandlerResult=!!i,s.nextHandler=t,s.counter=0,s.done=!1,A(this,s);};return r.prototype=e?w:S,r;};},684(t){t.exports=function(t,e){var i="function"==typeof Iterator&&Iterator.prototype[t];if(i)try{i.call({next:null},e).next();}catch(t){return!0;}};},4549(t,e,i){var r=i(4576);t.exports=function(t,e){var i=r.Iterator,s=i&&i.prototype,n=s&&s[t],a=!1;if(n)try{n.call({next:function(){return{done:!0};},return:function(){a=!0;}},-1);}catch(t){t instanceof e||(a=!1);}if(!a)return n;};},7657(t,e,i){var r,s,n,a=i(9039),o=i(4901),l=i(34),h=i(2360),d=i(2787),c=i(6840),u=i(8227),p=i(6395),g=u("iterator"),m=!1;[].keys&&("next"in(n=[].keys())?(s=d(d(n)))!==Object.prototype&&(r=s):m=!0),!l(r)||a(function(){var t={};return r[g].call(t)!==t;})?r={}:p&&(r=h(r)),o(r[g])||c(r,g,function(){return this;}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m};},6269(t){t.exports=Object.create?Object.create(null):{};},6198(t,e,i){var r=i(8014);t.exports=function(t){return r(t.length);};},283(t,e,i){var r=i(9504),s=i(9039),n=i(4901),a=i(9297),o=i(3724),l=i(350).CONFIGURABLE,h=i(3706),d=i(1181),c=d.enforce,u=d.get,p=String,g=Object.defineProperty,m=r("".slice),f=r("".replace),b=r([].join),v=o&&!s(function(){return 8!==g(function(){},"length",{value:8}).length;}),y=String(String).split("String"),A=t.exports=function(t,e,i){"Symbol("===m(p(e),0,7)&&(e="["+f(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(o?g(t,"name",{value:e,configurable:!0}):t.name=e),v&&i&&a(i,"arity")&&t.length!==i.arity&&g(t,"length",{value:i.arity});try{i&&a(i,"constructor")&&i.constructor?o&&g(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var r=c(t);return a(r,"source")||(r.source=b(y,"string"==typeof e?e:"")),t;};Function.prototype.toString=A(function(){return n(this)&&u(this).source||h(this);},"toString");},2248(t,e,i){var r=i(9504),s=Map.prototype;t.exports={Map:Map,set:r(s.set),get:r(s.get),has:r(s.has),remove:r(s.delete),proto:s};},741(t){var e=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?i:e)(r);};},7819(t,e,i){t.exports=!i(9039)(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t;});},6043(t,e,i){var r=i(9306),s=TypeError,n=function(t){var e,i;this.promise=new t(function(t,r){if(void 0!==e||void 0!==i)throw new s("Bad Promise constructor");e=t,i=r;}),this.resolve=r(e),this.reject=r(i);};t.exports.f=function(t){return new n(t);};},2603(t,e,i){var r=i(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t);};},4149(t){var e=RangeError;t.exports=function(t){if(t==t)return t;throw new e("NaN is not allowed");};},2360(t,e,i){var r,s=i(8551),n=i(6801),a=i(8727),o=i(421),l=i(397),h=i(4055),d=i(6119),c="prototype",u="script",p=d("IE_PROTO"),g=function(){},m=function(t){return"<"+u+">"+t+"</"+u+">";},f=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e;},b=function(){var t,e=h("iframe");return e.style.display="none",l.appendChild(e),e.src=String("java"+u+":"),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F;},v=function(){try{r=new ActiveXObject("htmlfile");}catch(t){}v="u">typeof document?document.domain&&r?f(r):b():f(r);for(var t=a.length;t--;)delete v[c][a[t]];return v();};o[p]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(g[c]=s(t),i=new g(),g[c]=null,i[p]=t):i=v(),void 0===e?i:n.f(i,e);};},6801(t,e,i){var r=i(3724),s=i(8686),n=i(4913),a=i(8551),o=i(5397),l=i(1072);e.f=r&&!s?Object.defineProperties:function(t,e){a(t);for(var i,r=o(e),s=l(e),h=s.length,d=0;h>d;)n.f(t,i=s[d++],r[i]);return t;};},4913(t,e,i){var r=i(3724),s=i(5917),n=i(8686),a=i(8551),o=i(6969),l=TypeError,h=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c="enumerable",u="configurable",p="writable";e.f=r?n?function(t,e,i){if(a(t),e=o(e),a(i),"function"==typeof t&&"prototype"===e&&"value"in i&&p in i&&!i[p]){var r=d(t,e);r&&r[p]&&(t[e]=i.value,i={configurable:u in i?i[u]:r[u],enumerable:c in i?i[c]:r[c],writable:!1});}return h(t,e,i);}:h:function(t,e,i){if(a(t),e=o(e),a(i),s)try{return h(t,e,i);}catch(t){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(t[e]=i.value),t;};},7347(t,e,i){var r=i(3724),s=i(9565),n=i(8773),a=i(6980),o=i(5397),l=i(6969),h=i(9297),d=i(5917),c=Object.getOwnPropertyDescriptor;e.f=r?c:function(t,e){if(t=o(t),e=l(e),d)try{return c(t,e);}catch(t){}if(h(t,e))return a(!s(n.f,t,e),t[e]);};},8480(t,e,i){var r=i(1828),s=i(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,s);};},3717(t,e){e.f=Object.getOwnPropertySymbols;},2787(t,e,i){var r=i(9297),s=i(4901),n=i(8981),a=i(6119),o=i(2211),l=a("IE_PROTO"),h=Object,d=h.prototype;t.exports=o?h.getPrototypeOf:function(t){var e=n(t);if(r(e,l))return e[l];var i=e.constructor;return s(i)&&e instanceof i?i.prototype:e instanceof h?d:null;};},1625(t,e,i){t.exports=i(9504)({}.isPrototypeOf);},1828(t,e,i){var r=i(9504),s=i(9297),n=i(5397),a=i(9617).indexOf,o=i(421),l=r([].push);t.exports=function(t,e){var i,r=n(t),h=0,d=[];for(i in r)!s(o,i)&&s(r,i)&&l(d,i);for(;e.length>h;)s(r,i=e[h++])&&(~a(d,i)||l(d,i));return d;};},1072(t,e,i){var r=i(1828),s=i(8727);t.exports=Object.keys||function(t){return r(t,s);};},8773(t,e){var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor;e.f=r&&!i.call({1:2},1)?function(t){var e=r(this,t);return!!e&&e.enumerable;}:i;},2967(t,e,i){var r=i(6706),s=i(34),n=i(7750),a=i(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=r(Object.prototype,"__proto__","set"))(i,[]),e=i instanceof Array;}catch(t){}return function(i,r){return n(i),a(r),s(i)&&(e?t(i,r):i.__proto__=r),i;};}():void 0);},4270(t,e,i){var r=i(9565),s=i(4901),n=i(34),a=TypeError;t.exports=function(t,e){var i,o;if("string"===e&&s(i=t.toString)&&!n(o=r(i,t))||s(i=t.valueOf)&&!n(o=r(i,t))||"string"!==e&&s(i=t.toString)&&!n(o=r(i,t)))return o;throw new a("Can't convert object to primitive value");};},5031(t,e,i){var r=i(7751),s=i(9504),n=i(8480),a=i(3717),o=i(8551),l=s([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=n.f(o(t)),i=a.f;return i?l(e,i(t)):e;};},8235(t,e,i){var r=i(9504),s=i(9297),n=SyntaxError,a=parseInt,o=String.fromCharCode,l=r("".charAt),h=r("".slice),d=r(/./.exec),c={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":" "},u=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;t.exports=function(t,e){for(var i=!0,r="";e<t.length;){var g=l(t,e);if("\\"===g){var m=h(t,e,e+2);if(s(c,m))r+=c[m],e+=2;else if("\\u"===m){var f=h(t,e+=2,e+4);if(!d(u,f))throw new n("Bad Unicode escape at: "+e);r+=o(a(f,16)),e+=4;}else throw new n('Unknown escape sequence: "'+m+'"');}else if('"'===g){i=!1,e++;break;}else{if(d(p,g))throw new n("Bad control character in string literal at: "+e);r+=g,e++;}}if(i)throw new n("Unterminated string at: "+e);return{value:r,end:e};};},1103(t){t.exports=function(t){try{return{error:!1,value:t()};}catch(t){return{error:!0,value:t};}};},3438(t,e,i){var r=i(8551),s=i(34),n=i(6043);t.exports=function(t,e){if(r(t),s(e)&&e.constructor===t)return e;var i=n.f(t);return(0,i.resolve)(e),i.promise;};},7750(t,e,i){var r=i(4117),s=TypeError;t.exports=function(t){if(r(t))throw new s("Can't call method on "+t);return t;};},9286(t,e,i){var r=i(4402),s=i(8469),n=r.Set,a=r.add;t.exports=function(t){var e=new n();return s(t,function(t){a(e,t);}),e;};},3440(t,e,i){var r=i(7080),s=i(4402),n=i(9286),a=i(5170),o=i(3789),l=i(8469),h=i(507),d=s.has,c=s.remove;t.exports=function(t){var e=r(this),i=o(t),s=n(e);return a(s)<=i.size?l(s,function(t){i.includes(t)&&c(s,t);}):h(i.getIterator(),function(t){d(s,t)&&c(s,t);}),s;};},4402(t,e,i){var r=i(9504),s=Set.prototype;t.exports={Set:Set,add:r(s.add),has:r(s.has),remove:r(s.delete),proto:s};},8750(t,e,i){var r=i(7080),s=i(4402),n=i(5170),a=i(3789),o=i(8469),l=i(507),h=s.Set,d=s.add,c=s.has;t.exports=function(t){var e=r(this),i=a(t),s=new h();return n(e)>i.size?l(i.getIterator(),function(t){c(e,t)&&d(s,t);}):o(e,function(t){i.includes(t)&&d(s,t);}),s;};},4449(t,e,i){var r=i(7080),s=i(4402).has,n=i(5170),a=i(3789),o=i(8469),l=i(507),h=i(9539);t.exports=function(t){var e=r(this),i=a(t);if(n(e)<=i.size)return!1!==o(e,function(t){if(i.includes(t))return!1;},!0);var d=i.getIterator();return!1!==l(d,function(t){if(s(e,t))return h(d.iterator,"normal",!1);});};},3838(t,e,i){var r=i(7080),s=i(5170),n=i(8469),a=i(3789);t.exports=function(t){var e=r(this),i=a(t);return!(s(e)>i.size)&&!1!==n(e,function(t){if(!i.includes(t))return!1;},!0);};},8527(t,e,i){var r=i(7080),s=i(4402).has,n=i(5170),a=i(3789),o=i(507),l=i(9539);t.exports=function(t){var e=r(this),i=a(t);if(n(e)<i.size)return!1;var h=i.getIterator();return!1!==o(h,function(t){if(!s(e,t))return l(h.iterator,"normal",!1);});};},8469(t,e,i){var r=i(9504),s=i(507),n=i(4402),a=n.Set,o=n.proto,l=r(o.forEach),h=r(o.keys),d=h(new a()).next;t.exports=function(t,e,i){return i?s({iterator:h(t),next:d},e):l(t,e);};},4916(t,e,i){var r=i(7751),s=function(t){return{size:t,has:function(){return!1;},keys:function(){return{next:function(){return{done:!0};}};}};},n=function(t){return{size:t,has:function(){return!0;},keys:function(){throw Error("e");}};};t.exports=function(t,e){var i=r("Set");try{new i()[t](s(0));try{return new i()[t](s(-1)),!1;}catch(r){if(!e)return!0;try{return new i()[t](n(-1/0)),!1;}catch(r){var a=new i([1,2]);return e(a[t](n(1/0)));}}}catch(t){return!1;}};},9835(t){t.exports=function(t){try{var e=new Set(),i=e[t]({size:0,has:function(){return!0;},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0};};}});}});return 1===i.size&&4===i.values().next().value;}catch(t){return!1;}};},5170(t,e,i){t.exports=i(6706)(i(4402).proto,"size","get")||function(t){return t.size;};},3650(t,e,i){var r=i(7080),s=i(4402),n=i(9286),a=i(3789),o=i(507),l=s.add,h=s.has,d=s.remove;t.exports=function(t){var e=r(this),i=a(t).getIterator(),s=n(e);return o(i,function(t){h(e,t)?d(s,t):l(s,t);}),s;};},4204(t,e,i){var r=i(7080),s=i(4402).add,n=i(9286),a=i(3789),o=i(507);t.exports=function(t){var e=r(this),i=a(t).getIterator(),l=n(e);return o(i,function(t){s(l,t);}),l;};},6119(t,e,i){var r=i(5745),s=i(3392),n=r("keys");t.exports=function(t){return n[t]||(n[t]=s(t));};},7629(t,e,i){var r=i(6395),s=i(4576),n=i(9433),a="__core-js_shared__",o=t.exports=s[a]||n(a,{});(o.versions||(o.versions=[])).push({version:"3.50.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"});},5745(t,e,i){var r=i(7629),s=Object.create||Object;t.exports=function(t,e){return r[t]||(r[t]=e||s(null));};},4495(t,e,i){var r=i(9519),s=i(9039),n=i(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!s(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41;});},1240(t,e,i){t.exports=i(9504)(1.1.valueOf);},5610(t,e,i){var r=i(1291),s=Math.max,n=Math.min;t.exports=function(t,e){var i=r(t);return i<0?s(i+e,0):n(i,e);};},5854(t,e,i){var r=i(2777),s=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw new s("Can't convert number to bigint");return BigInt(e);};},5397(t,e,i){var r=i(7055),s=i(7750);t.exports=function(t){return r(s(t));};},1291(t,e,i){var r=i(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e);};},8014(t,e,i){var r=i(1291),s=Math.min;t.exports=function(t){var e=r(t);return e>0?s(e,0x1fffffffffffff):0;};},8981(t,e,i){var r=i(7750),s=Object;t.exports=function(t){return s(r(t));};},9590(t,e,i){var r=i(1291),s=RangeError;t.exports=function(t){var e=r(t);if(e<0)throw new s("The argument can't be less than 0");return e;};},2777(t,e,i){var r=i(9565),s=i(34),n=i(757),a=i(5966),o=i(4270),l=i(8227),h=TypeError,d=l("toPrimitive");t.exports=function(t,e){if(!s(t)||n(t))return t;var i,l=a(t,d);if(l){if(void 0===e&&(e="default"),!s(i=r(l,t,e))||n(i))return i;throw new h("Can't convert object to primitive value");}return void 0===e&&(e="number"),o(t,e);};},6969(t,e,i){var r=i(2777),s=i(757);t.exports=function(t){var e=r(t,"string");return s(e)?e:e+"";};},2140(t,e,i){var r=i(8227)("toStringTag"),s={};s[r]="z",t.exports="[object z]"===String(s);},655(t,e,i){var r=i(6955),s=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return s(t);};},6823(t){var e=String;t.exports=function(t){try{return e(t);}catch(t){return"Object";}};},3392(t,e,i){var r=i(9504),s=0,n=Math.random(),a=r(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++s+n,36);};},9143(t,e,i){var r=i(4576),s=i(9504),n=i(3972),a=i(3463),o=i(9297),l=i(2804),h=i(944),d=i(5169),c=l.c2i,u=l.c2iUrl,p=r.SyntaxError,g=r.TypeError,m=r.Array,f=s("".charAt),b=Math.floor,v=function(t,e){for(var i=t.length;e<i;e++){var r=f(t,e);if(" "!==r&&" "!==r&&"\n"!==r&&"\f"!==r&&"\r"!==r)break;}return e;},y=function(t,e,i){var r=t.length;r<4&&(t+=2===r?"AA":"A");var s=(e[f(t,0)]<<18)+(e[f(t,1)]<<12)+(e[f(t,2)]<<6)+e[f(t,3)],n=[s>>16&255,s>>8&255,255&s];if(2===r){if(i&&0!==n[1])throw new p("Extra bits");return[n[0]];}if(3===r){if(i&&0!==n[2])throw new p("Extra bits");return[n[0],n[1]];}return n;},A=function(t,e,i){for(var r=e.length,s=0;s<r;s++)t[i+s]=e[s];return i+r;};t.exports=function(t,e,i,r){a(t),n(e);var s="base64"===h(e)?c:u,l=e?e.lastChunkHandling:void 0;if(void 0===l&&(l="loose"),"loose"!==l&&"strict"!==l&&"stop-before-partial"!==l)throw new g("Incorrect `lastChunkHandling` option");i&&d(i.buffer);var x=t.length,w=i||m(b(3*x/4)),S=0,C=0,E="",_=0;if(r)for(;;){if((_=v(t,_))===x){if(E.length>0){if("stop-before-partial"===l)break;if("loose"===l){if(1===E.length)throw new p("Malformed padding: exactly one additional character");S=A(w,y(E,s,!1),S);}else throw new p("Missing padding");}C=x;break;}var T=f(t,_);if(++_,"="===T){if(E.length<2)throw new p("Padding is too early");if(_=v(t,_),2===E.length){if(_===x){if("stop-before-partial"===l)break;throw new p("Malformed padding: only one =");}"="===f(t,_)&&(_=v(t,++_));}if(_<x)throw new p("Unexpected character after padding");S=A(w,y(E,s,"strict"===l),S),C=x;break;}if(!o(s,T))throw new p("Unexpected character");var k=r-S;if(1===k&&2===E.length||2===k&&3===E.length||4===(E+=T).length&&(S=A(w,y(E,s,!1),S),E="",C=_,S===r))break;}return i||(w.length=S),{bytes:w,read:C,written:S};};},2303(t,e,i){var r=i(4576),s=i(9504),n=r.Uint8Array,a=r.SyntaxError,o=Math.min,l=s("".match);t.exports=function(t,e){var i=t.length;if(i%2!=0)throw new a("String should be an even number of characters");for(var r=e?o(e.length,i/2):i/2,s=e||new n(r),h=l(t,/[\S\s]{2}/g),d=0;d<r;d++){var c=+("0x"+h[d]+"0");if(c!=c)throw new a("String should only contain hex characters");s[d]=c>>4;}return{bytes:s,read:d<<1};};},7416(t,e,i){var r=i(9039),s=i(8227),n=i(3724),a=i(6395),o=s("iterator");t.exports=!r(function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,i=new URLSearchParams("a=1&a=2&b=3"),r="";return t.pathname="c%20d",e.forEach(function(t,i){e.delete("b"),r+=i+t;}),i.delete("a",2),i.delete("b",void 0),a&&(!t.toJSON||!i.has("a",1)||i.has("a",2)||!i.has("a",void 0)||i.has("b"))||!e.size&&(a||!n)||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host;});},7040(t,e,i){t.exports=i(4495)&&!Symbol.sham&&"symbol"==typeof Symbol.iterator;},8686(t,e,i){var r=i(3724),s=i(9039);t.exports=r&&s(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype;});},2812(t){var e=TypeError;t.exports=function(t,i){if(t<i)throw new e("Not enough arguments");return t;};},8622(t,e,i){var r=i(4576),s=i(4901),n=r.WeakMap;t.exports=s(n)&&/native code/.test(String(n));},4995(t,e,i){var r=i(9504),s=WeakMap.prototype;t.exports={WeakMap:WeakMap,set:r(s.set),get:r(s.get),has:r(s.has),remove:r(s.delete)};},8227(t,e,i){var r=i(4576),s=i(5745),n=i(9297),a=i(3392),o=i(4495),l=i(7040),h=r.Symbol,d=s("wks"),c=l?h.for||h:h&&h.withoutSetter||a;t.exports=function(t){return n(d,t)||(d[t]=o&&n(h,t)?h[t]:c("Symbol."+t)),d[t];};},4423(t,e,i){var r=i(6518),s=i(9617).includes,n=i(9039),a=i(6469),o=n(function(){return![,].includes();}),l=n(function(){return[,1].includes(void 0,1);});r({target:"Array",proto:!0,forced:o||l},{includes:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0);}}),a("includes");},4114(t,e,i){var r=i(6518),s=i(8981),n=i(6198),a=i(4527),o=i(6837);r({target:"Array",proto:!0,arity:1,forced:i(9039)(function(){return 0x100000001!==[].push.call({length:0x100000000},1);})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push();}catch(t){return t instanceof TypeError;}}()},{push:function(t){var e=s(this),i=n(e),r=arguments.length;o(i+r);for(var l=0;l<r;l++)e[i]=arguments[l],i++;return a(e,i),i;}});},8111(t,e,i){var r=i(6518),s=i(4576),n=i(679),a=i(8551),o=i(4901),l=i(2787),h=i(2106),d=i(4659),c=i(9039),u=i(9297),p=i(8227),g=i(7657).IteratorPrototype,m=i(3724),f=i(6395),b="constructor",v="Iterator",y=p("toStringTag"),A=TypeError,x=s[v],w=f||!o(x)||x.prototype!==g||!c(function(){x({});}),S=function(){if(n(this,g),l(this)===g)throw new A("Abstract class Iterator not directly constructable");},C=function(t,e){m?h(g,t,{configurable:!0,get:function(){return e;},set:function(e){if(a(this),this===g)throw new A("You can't redefine this property");u(this,t)?this[t]=e:d(this,t,e);}}):g[t]=e;};u(g,y)||C(y,v),(w||!u(g,b)||g[b]===Object)&&C(b,S),S.prototype=g,r({global:!0,constructor:!0,forced:w},{Iterator:S});},9314(t,e,i){var r=i(6518),s=i(9565),n=i(8551),a=i(1767),o=i(4149),l=i(9590),h=i(9539),d=i(9462),c=i(684),u=i(4549),p=i(6395),g=RangeError,m=!p&&!c("drop",0),f=!p&&!m&&u("drop",RangeError),b=p||m||f||!function(){try{Iterator.prototype.drop.call({next:function(){return{done:!0};}},0x20000000000000);}catch(t){return t instanceof g;}}(),v=d(function(){for(var t,e,i=this.iterator,r=this.next;this.remaining;)if(this.remaining--,t=n(s(r,i)),this.done=!!t.done)return;if(t=n(s(r,i)),!(this.done=!!t.done))return t.value;});r({target:"Iterator",proto:!0,real:!0,forced:b},{drop:function(t){var e;n(this);try{if((e=l(o(+t)))>0x1fffffffffffff&&1/0!==e)throw new g("The argument should be a safe integer");}catch(t){h(this,"throw",t);}return f?s(f,this,e):new v(a(this),{remaining:e});}});},1148(t,e,i){var r=i(6518),s=i(9565),n=i(2652),a=i(9306),o=i(8551),l=i(1767),h=i(9539),d=i(4549)("every",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{every:function(t){o(this);try{a(t);}catch(t){h(this,"throw",t);}if(d)return s(d,this,t);var e=l(this),i=0;return!n(e,function(e,r){if(!t(e,i++))return r();},{IS_RECORD:!0,INTERRUPTED:!0}).stopped;}});},2489(t,e,i){var r=i(6518),s=i(9565),n=i(9306),a=i(8551),o=i(1767),l=i(9462),h=i(6319),d=i(6395),c=i(9539),u=i(684),p=i(4549),g=!d&&!u("filter",function(){}),m=!d&&!g&&p("filter",TypeError),f=d||g||m,b=l(function(){for(var t,e,i=this.iterator,r=this.predicate,n=this.next;;){if(t=a(s(n,i)),this.done=!!t.done)return;if(h(i,r,[e=t.value,this.counter++],!0))return e;}});r({target:"Iterator",proto:!0,real:!0,forced:f},{filter:function(t){a(this);try{n(t);}catch(t){c(this,"throw",t);}return m?s(m,this,t):new b(o(this),{predicate:t});}});},116(t,e,i){var r=i(6518),s=i(9565),n=i(2652),a=i(9306),o=i(8551),l=i(1767),h=i(9539),d=i(4549)("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{find:function(t){o(this);try{a(t);}catch(t){h(this,"throw",t);}if(d)return s(d,this,t);var e=l(this),i=0;return n(e,function(e,r){if(t(e,i++))return r(e);},{IS_RECORD:!0,INTERRUPTED:!0}).result;}});},531(t,e,i){var r=i(6518),s=i(9565),n=i(9306),a=i(8551),o=i(1767),l=i(8646),h=i(9462),d=i(9539),c=i(9039),u=i(6395),p=i(684),g=i(4549),m=!u&&c(function(){return 1!==[1].values().flatMap(function(){return[1];}).find(function(){return!0;});}),f=!u&&!m&&!p("flatMap",function(){}),b=!u&&!m&&!f&&g("flatMap",TypeError),v=u||m||f||b,y=h(function(){for(var t,e,i=this.iterator,r=this.mapper;;){if(e=this.inner)try{if(!(t=a(s(e.next,e.iterator))).done)return t.value;this.inner=null;}catch(t){d(i,"throw",t);}if(t=a(s(this.next,i)),this.done=!!t.done)return;try{this.inner=l(r(t.value,this.counter++),!1);}catch(t){d(i,"throw",t);}}});r({target:"Iterator",proto:!0,real:!0,forced:v},{flatMap:function(t){a(this);try{n(t);}catch(t){d(this,"throw",t);}return b?s(b,this,t):new y(o(this),{mapper:t,inner:null});}});},7588(t,e,i){var r=i(6518),s=i(9565),n=i(2652),a=i(9306),o=i(8551),l=i(1767),h=i(9539),d=i(4549)("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{forEach:function(t){o(this);try{a(t);}catch(t){h(this,"throw",t);}if(d)return s(d,this,t);var e=l(this),i=0;n(e,function(e){t(e,i++);},{IS_RECORD:!0});}});},1701(t,e,i){var r=i(6518),s=i(9565),n=i(9306),a=i(8551),o=i(1767),l=i(9462),h=i(6319),d=i(9539),c=i(684),u=i(4549),p=i(6395),g=!p&&!c("map",function(){}),m=!p&&!g&&u("map",TypeError),f=p||g||m,b=l(function(){var t=this.iterator,e=a(s(this.next,t));if(!(this.done=!!e.done))return h(t,this.mapper,[e.value,this.counter++],!0);});r({target:"Iterator",proto:!0,real:!0,forced:f},{map:function(t){a(this);try{n(t);}catch(t){d(this,"throw",t);}return m?s(m,this,t):new b(o(this),{mapper:t});}});},3579(t,e,i){var r=i(6518),s=i(9565),n=i(2652),a=i(9306),o=i(8551),l=i(1767),h=i(9539),d=i(4549)("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{some:function(t){o(this);try{a(t);}catch(t){h(this,"throw",t);}if(d)return s(d,this,t);var e=l(this),i=0;return n(e,function(e,r){if(t(e,i++))return r();},{IS_RECORD:!0,INTERRUPTED:!0}).stopped;}});},4972(t,e,i){var r=i(6518),s=i(9565),n=i(8551),a=i(1767),o=i(4149),l=i(9590),h=i(9462),d=i(9539),c=i(684),u=i(4549),p=i(6395),g=RangeError,m=!p&&!c("take",1),f=!p&&!m&&u("take",RangeError),b=p||m||f||!function(){try{Iterator.prototype.take.call({next:function(){return{done:!0};}},0x20000000000000);}catch(t){return t instanceof g;}}(),v=h(function(){var t=this.iterator;if(!this.remaining--)return this.done=!0,d(t,"normal",void 0);var e=n(s(this.next,t));if(!(this.done=!!e.done))return e.value;});r({target:"Iterator",proto:!0,real:!0,forced:b},{take:function(t){var e;n(this);try{if((e=l(o(+t)))>0x1fffffffffffff&&1/0!==e)throw new g("The argument should be a safe integer");}catch(t){d(this,"throw",t);}return f?s(f,this,e):new v(a(this),{remaining:e});}});},1806(t,e,i){var r=i(6518),s=i(8551),n=i(4659),a=i(2652),o=i(1767);r({target:"Iterator",proto:!0,real:!0},{toArray:function(){var t=[],e=0;return a(o(s(this)),function(i){n(t,e++,i);},{IS_RECORD:!0}),t;}});},9112(t,e,i){var r=i(6518),s=i(3724),n=i(4576),a=i(7751),o=i(9504),l=i(9565),h=i(4901),d=i(34),c=i(4376),u=i(9297),p=i(655),g=i(6198),m=i(4659),f=i(9039),b=i(8235),v=i(4495),y=n.JSON,A=n.Number,x=n.SyntaxError,w=y&&y.parse,S=a("Object","keys"),C=Object.getOwnPropertyDescriptor,E=o("".charAt),_=o("".slice),T=o(/./.exec),k=o([].push),M=/^\d$/,P=/^[1-9]$/,D=/^[\d-]$/,I=/^[\t\n\r ]$/,R=function(t,e){var i=new L(t=p(t),0),r=i.parse(),s=r.value,n=i.skip(I,r.end);if(n<t.length)throw new x('Unexpected extra character: "'+E(t,n)+'" after the parsed data at: '+n);return h(e)?F({"":s},"",e,r):s;},F=function(t,e,i,r){var s,n,a,o,h,p=t[e],m=r&&p===r.value,f=m&&"string"==typeof r.source?{source:r.source}:{};if(d(p)){var b=c(p),v=m?r.nodes:b?[]:{};if(b)for(s=v.length,a=g(p),o=0;o<a;o++)O(p,o,F(p,""+o,i,o<s?v[o]:void 0));else for(a=g(n=S(p)),o=0;o<a;o++)O(p,h=n[o],F(p,h,i,u(v,h)?v[h]:void 0));}return l(i,t,e,p,f);},O=function(t,e,i){if(s){var r=C(t,e);if(r&&!r.configurable)return;}void 0===i?delete t[e]:m(t,e,i);},B=function(t,e,i,r){this.value=t,this.end=e,this.source=i,this.nodes=r;},L=function(t,e){this.source=t,this.index=e;};L.prototype={fork:function(t){return new L(this.source,t);},parse:function(){var t=this.source,e=this.skip(I,this.index),i=this.fork(e),r=E(t,e);if(T(D,r))return i.number();switch(r){case"{":return i.object();case"[":return i.array();case'"':return i.string();case"t":return i.keyword(!0);case"f":return i.keyword(!1);case"n":return i.keyword(null);}throw new x('Unexpected character: "'+r+'" at: '+e);},node:function(t,e,i,r,s){return new B(e,r,t?null:_(this.source,i,r),s);},object:function(){for(var t=this.source,e=this.index+1,i=!1,r={},s={},n=!1;e<t.length;){if("}"===E(t,e=this.until(['"',"}"],e))&&!i){e++,n=!0;break;}var a=this.fork(e).string(),o=a.value;e=a.end,e=this.until([":"],e)+1,e=this.skip(I,e),m(s,o,a=this.fork(e).parse()),m(r,o,a.value);var l=E(t,e=this.until([",","}"],a.end));if(","===l)i=!0,e++;else if("}"===l){e++,n=!0;break;}}if(!n)throw new x("Unterminated object at: "+e);return this.node(1,r,this.index,e,s);},array:function(){for(var t=this.source,e=this.index+1,i=!1,r=[],s=[],n=!1;e<t.length;){if("]"===E(t,e=this.skip(I,e))&&!i){e++,n=!0;break;}var a=this.fork(e).parse();if(k(s,a),k(r,a.value),","===E(t,e=this.until([",","]"],a.end)))i=!0,e++;else if("]"===E(t,e)){e++,n=!0;break;}}if(!n)throw new x("Unterminated array at: "+e);return this.node(1,r,this.index,e,s);},string:function(){var t=this.index,e=b(this.source,this.index+1);return this.node(0,e.value,t,e.end);},number:function(){var t=this.source,e=this.index,i=e;if("-"===E(t,i)&&i++,"0"===E(t,i))i++;else if(T(P,E(t,i)))i=this.skip(M,i+1);else throw new x("Failed to parse number at: "+i);if("."===E(t,i)){var r=i+1;if(i=this.skip(M,r),r===i)throw new x("Failed to parse number's fraction at: "+i);}if(("e"===E(t,i)||"E"===E(t,i))&&(("+"===E(t,++i)||"-"===E(t,i))&&i++,i===(i=this.skip(M,i))))throw new x("Failed to parse number's exponent value at: "+i);return this.node(0,A(_(t,e,i)),e,i);},keyword:function(t){var e=""+t,i=this.index,r=i+e.length;if(_(this.source,i,r)!==e)throw new x("Failed to parse value at: "+i);return this.node(0,t,i,r);},skip:function(t,e){for(var i=this.source;e<i.length&&T(t,E(i,e));e++);return e;},until:function(t,e){e=this.skip(I,e);for(var i=E(this.source,e),r=0;r<t.length;r++)if(t[r]===i)return e;throw new x('Unexpected character: "'+i+'" at: '+e);}};var N=f(function(){var t,e="9007199254740993";return w(e,function(e,i,r){t=r.source;}),t!==e;}),U=v&&!f(function(){return 1/w("-0 ")!=-1/0;});r({target:"JSON",stat:!0,forced:N},{parse:function(t,e){return U&&!h(e)?w(t):R(t,e);}});},3110(t,e,i){var r=i(6518),s=i(7751),n=i(9565),a=i(9504),o=i(9039),l=i(4376),h=i(4901),d=i(34),c=i(2360),u=i(5810),p=i(757),g=i(2195),m=i(1240),f=i(9617).includes,b=i(9297),v=i(655),y=i(8235),A=i(3392),x=i(4495),w=i(7819),S=String,C=TypeError,E=s("JSON","stringify"),_=s("BigInt"),T=a("".valueOf),k=a((!0).valueOf),M=_&&a(_.prototype.valueOf),P=a(/./.exec),D=a("".charAt),I=a("".charCodeAt),R=a("".replace),F=a("".slice),O=a([].push),B=a([].pop),L=a(1.1.toString),N=/[\uD800-\uDFFF]/g,U=/^[\uD800-\uDBFF]$/,z=/^[\uDC00-\uDFFF]$/,G=/^\d+$/,j=A(),H=A(),$=A(),V=j.length,W=H.length,K=!x||o(function(){var t=s("Symbol")("stringify detection");return"[null]"!==E([t])||"{}"!==E({a:t})||"{}"!==E(Object(t));}),X=o(function(){return'"\\udf06\\ud834"'!==E("\uDF06\uD834")||'"\\udead"'!==E("\uDEAD");}),Y=w?s("JSON","isRawJSON"):u,q=K?function(t,e,i){return E(t,function(t,i){var r=n(e,this,t,i);if(!p(r))return r;},i);}:E,J=function(t,e,i){var r=D(i,e-1),s=D(i,e+1);return P(U,t)&&!P(z,s)||P(z,t)&&!P(U,r)?"\\u"+L(I(t,0),16):t;},Q=function(t){if(l(t)){for(var e=t.length,i=[],r=c(null),s=0;s<e;s++){var n,a=t[s];if("string"==typeof a)n=a;else{if("number"!=typeof a&&"Number"!==g(a)&&"String"!==g(a))continue;n=v(a);}b(r,n)||(r[n]=!0,O(i,n));}return i;}},Z=function(t,e){try{return t(e),!0;}catch(t){return!1;}},tt=function(t){var e=g(t);return"Number"===e&&Z(m,t)||"String"===e&&Z(T,t)||"Boolean"===e&&Z(k,t)||!!M&&"BigInt"===e&&Z(M,t);},te=function(t){if(!d(t)||h(t)||l(t))return!1;try{return!tt(t);}catch(t){return!0;}},ti=function(t,e){return{toJSON:function(){var i=t[e];if(d(i)||"bigint"==typeof i){var r=i.toJSON;h(r)&&(i=n(r,i,e));}return i;}};},tr=function(t){for(var e=0,i=t.length;e<i;e++)if(P(G,t[e]))return H;return"";},ts=function(t,e,i){for(var r=c(null),s=0,n=e.length;s<n;s++){var a=e[s];r[i+a]=ti(t,a);}return r[$]=null,r;};E&&r({target:"JSON",stat:!0,arity:3,forced:K||X||!w},{stringify:function(t,e,i){var r,s=h(e)?e:void 0,a=s?void 0:Q(e),o=a&&tr(a),d=[],c=[],u=[],p=!1,g=!0,m=q(t,function(t,e){if(t=S(t),a){if(t===$){B(c),r=B(u);return;}if(g)g=!1;else if(this!==r&&!l(this)&&!f(a,t))return;}else s&&(e=n(s,this,t,e));if(Y(e))return w?e:(p=!0,j+(O(d,e.rawJSON)-1));if(a&&te(e)){if(f(c,e))throw new C("Converting circular structure to JSON");var i=ts(e,a,o);return O(c,e),O(u,r),r=i,o&&(p=!0),i;}return e;},i);if("string"!=typeof m||(X&&(m=R(m,N,J)),!p))return m;for(var b="",v=m.length,A=0;A<v;A++){var x=D(m,A);if('"'===x){var E=y(m,++A).end-1,_=F(m,A,E);F(_,0,V)===j?b+=d[F(_,V)]:F(_,0,W)===H?b+='"'+F(_,W)+'"':b+='"'+_+'"',A=E;}else b+=x;}return b;}});},2731(t,e,i){var r=i(6518),s=i(9306),n=i(2248),a=i(6395),o=n.get,l=n.has,h=n.set;r({target:"Map",proto:!0,real:!0,forced:a},{getOrInsertComputed:function(t,e){var i=l(this,t);if(s(e),i)return o(this,t);0===t&&1/t==-1/0&&(t=0);var r=e(t);return h(this,t,r),r;}});},5367(t,e,i){var r=i(6518),s=i(2248),n=i(6395),a=s.get,o=s.has,l=s.set;r({target:"Map",proto:!0,real:!0,forced:n},{getOrInsert:function(t,e){return o(this,t)?a(this,t):(l(this,t,e),e);}});},3068(t,e,i){var r=i(6518),s=i(9504),n=i(2652),a=RangeError,o=TypeError,l=Math.abs,h=Math.pow,d=s([].push),c=h(2,1023),u=h(2,53)-1,p=Number.MAX_VALUE,g=h(2,971),m={},f={},b={},v={},y={},A=function(t,e){var i=t+e;return{hi:i,lo:e-(i-t)};};r({target:"Math",stat:!0},{sumPrecise:function(t){var e,i,r,s,h,x,w=[],S=0,C=v;switch(n(t,function(t){if(++S>u)throw new a("Maximum allowed index exceeded");if("number"!=typeof t)throw new o("Value is not a number");C!==m&&(t!=t?C=m:1/0===t?C=C===f?m:b:-1/0===t?C=C===b?m:f:(0!==t||1/t==1/0)&&(C===v||C===y)&&(C=y,d(w,t)));}),C){case m:return 0/0;case f:return-1/0;case b:return 1/0;case v:return-0;}for(var E=[],_=0,T=0;T<w.length;T++){e=w[T];for(var k=0,M=0;M<E.length;M++){if(i=E[M],l(e)<l(i)&&(x=e,e=i,i=x),s=(r=A(e,i)).hi,h=r.lo,1/0===l(s)){var P=1/0===s?1:-1;_+=P,l(e=e-P*c-P*c)<l(i)&&(x=e,e=i,i=x),s=(r=A(e,i)).hi,h=r.lo;}0!==h&&(E[k++]=h),e=s;}E.length=k,0!==e&&d(E,e);}var D=E.length-1;if(s=0,h=0,0!==_){var I=D>=0?E[D]:0;if(D--,l(_)>1||_>0&&I>0||_<0&&I<0)return _>0?1/0:-1/0;if(s=(r=A(_*c,I/2)).hi,h=2*r.lo,1/0===l(2*s))return s>0?s===c&&h===-(g/2)&&D>=0&&E[D]<0?p:1/0:s===-c&&h===g/2&&D>=0&&E[D]>0?-p:-1/0;0!==h&&(E[++D]=h,h=0),s*=2;}for(;D>=0&&(s=(r=A(s,E[D--])).hi,0===(h=r.lo)););return D>=0&&(h<0&&E[D]<0||h>0&&E[D]>0)&&(e=s+(i=2*h),i===e-s&&(s=e)),s;}});},1689(t,e,i){var r=i(6518),s=i(4576),n=i(8745),a=i(7680),o=i(3438),l=i(6043),h=i(9306),d=i(1103),c=i(9039),u=s.Promise,p=!1;r({target:"Promise",stat:!0,forced:!u||!u.try||c(function(){var t=u.resolve();return u.try(function(e){return p=8===e,t;},8)!==t;})||!p},{try:function(t){var e=arguments.length>1?a(arguments,1):[],i=d(function(){return n(h(t),void 0,e);});if(!i.error)return o(this,i.value);var r=l.f(this);return(0,r.reject)(i.value),r.promise;}});},7642(t,e,i){var r=i(6518),s=i(3440),n=i(9039);r({target:"Set",proto:!0,real:!0,forced:!i(4916)("difference",function(t){return 0===t.size;})||n(function(){var t=new Set([1,2,3,4]);return 3!==t.difference({size:1,has:function(){return!0;},keys:function(){var e=0;return{next:function(){var i=e++>1;return t.has(1)&&t.clear(),{done:i,value:2};}};}}).size;})},{difference:s});},8004(t,e,i){var r=i(6518),s=i(9039),n=i(8750);r({target:"Set",proto:!0,real:!0,forced:!i(4916)("intersection",function(t){return 2===t.size&&t.has(1)&&t.has(2);})||s(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))));})},{intersection:n});},3853(t,e,i){var r=i(6518),s=i(4449);r({target:"Set",proto:!0,real:!0,forced:!i(4916)("isDisjointFrom",function(t){return!t;})},{isDisjointFrom:s});},5876(t,e,i){var r=i(6518),s=i(3838);r({target:"Set",proto:!0,real:!0,forced:!i(4916)("isSubsetOf",function(t){return t;})},{isSubsetOf:s});},2475(t,e,i){var r=i(6518),s=i(8527);r({target:"Set",proto:!0,real:!0,forced:!i(4916)("isSupersetOf",function(t){return!t;})},{isSupersetOf:s});},5024(t,e,i){var r=i(6518),s=i(3650),n=i(9835);r({target:"Set",proto:!0,real:!0,forced:!i(4916)("symmetricDifference")||!n("symmetricDifference")},{symmetricDifference:s});},1698(t,e,i){var r=i(6518),s=i(4204),n=i(9835);r({target:"Set",proto:!0,real:!0,forced:!i(4916)("union")||!n("union")},{union:s});},9577(t,e,i){var r=i(4644),s=i(1108),n=i(6198),a=i(1291),o=i(5854),l=r.aTypedArray,h=r.getTypedArrayConstructor,d=r.exportTypedArrayMethod,c=RangeError,u=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8;}});}catch(t){return 8===t;}}(),p=u&&function(){try{new Int8Array(1).with(-.5,1);}catch(t){return!0;}}();d("with",{with:function(t,e){var i=l(this),r=n(i),d=a(t),u=d<0?r+d:d,p=s(i)?o(e):+e;if(u>=r||u<0)throw new c("Incorrect index");for(var g=new(h(i))(r),m=0;m<r;m++)g[m]=m===u?p:i[m];return g;}}.with,!u||p);},5213(t,e,i){var r=i(6518),s=i(4576),n=i(5370),a=i(9143),o=s.Uint8Array,l=!o||!o.fromBase64||!function(){try{o.fromBase64("a");return;}catch(t){}try{o.fromBase64("",null);}catch(t){return!0;}}();o&&r({target:"Uint8Array",stat:!0,forced:l},{fromBase64:function(t){var e=a(t,arguments.length>1?arguments[1]:void 0,null,0x1fffffffffffff);return n(o,e.bytes);}});},6632(t,e,i){var r=i(6518),s=i(4576),n=i(9143),a=i(4154),o=s.Uint8Array,l=!o||!o.prototype.setFromBase64||!function(){var t=new o([255,255,255,255,255]);try{t.setFromBase64("",null);return;}catch(t){}try{t.setFromBase64("a");return;}catch(t){}try{t.setFromBase64("MjYyZg===");}catch(e){return 50===t[0]&&54===t[1]&&50===t[2]&&255===t[3]&&255===t[4];}}();o&&r({target:"Uint8Array",proto:!0,forced:l},{setFromBase64:function(t){a(this);var e=n(t,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:e.read,written:e.written};}});},4226(t,e,i){var r=i(6518),s=i(4576),n=i(3463),a=i(4154),o=i(5169),l=i(2303);s.Uint8Array&&r({target:"Uint8Array",proto:!0,forced:function(){try{var t=new ArrayBuffer(16,{maxByteLength:1024});new Uint8Array(t).setFromHex("cafed00d");}catch(t){return!0;}}()},{setFromHex:function(t){a(this),n(t),o(this.buffer);var e=l(t,this).read;return{read:e,written:e/2};}});},9486(t,e,i){var r=i(6518),s=i(4576),n=i(9504),a=i(3972),o=i(4154),l=i(5169),h=i(2804),d=i(944),c=h.i2c,u=h.i2cUrl,p=Math.floor,g=Math.ceil,m=n("".charAt),f=s.Uint8Array,b=s.Array,v=n([].join),y=!f||!f.prototype.toBase64||!function(){try{new f().toBase64(null);}catch(t){return!0;}}();f&&r({target:"Uint8Array",proto:!0,forced:y},{toBase64:function(){var t,e=o(this),i=arguments.length?a(arguments[0]):void 0,r="base64"===d(i)?c:u,s=!!i&&!!i.omitPadding;l(this.buffer);for(var n=0,h=e.length,f=b(s?4*p(h/3)+(h%3?h%3+1:0):4*g(h/3)),y=0,A=function(e){return m(r,t>>6*e&63);};n+2<h;n+=3)t=(e[n]<<16)+(e[n+1]<<8)+e[n+2],f[y++]=A(3),f[y++]=A(2),f[y++]=A(1),f[y++]=A(0);return n+2===h?(t=(e[n]<<16)+(e[n+1]<<8),f[y++]=A(3),f[y++]=A(2),f[y++]=A(1),s||(f[y++]="=")):n+1===h&&(t=e[n]<<16,f[y++]=A(3),f[y++]=A(2),s||(f[y++]="=",f[y++]="=")),v(f,"");}});},456(t,e,i){var r=i(6518),s=i(4576),n=i(9504),a=i(4154),o=i(5169),l=n(1.1.toString),h=n([].join),d=Array,c=s.Uint8Array,u=!c||!c.prototype.toHex||!function(){try{var t=new c([255,255,255,255,255,255,255,255]);return"ffffffffffffffff"===t.toHex();}catch(t){return!1;}}();c&&r({target:"Uint8Array",proto:!0,forced:u},{toHex:function(){a(this),o(this.buffer);for(var t=d(this.length),e=0,i=this.length;e<i;e++){var r=l(this[e],16);t[e]=1===r.length?"0"+r:r;}return h(t,"");}});},9452(t,e,i){var r=i(6518),s=i(9306),n=i(6557),a=i(4328),o=i(4995),l=i(6395),h=o.get,d=o.has,c=o.set;r({target:"WeakMap",proto:!0,real:!0,forced:l||!function(){try{WeakMap.prototype.getOrInsertComputed&&new WeakMap().getOrInsertComputed(1,function(){throw 1;});}catch(t){return t instanceof TypeError;}}()},{getOrInsertComputed:function(t,e){if(l||n(this),a(t),s(e),d(this,t))return h(this,t);var i=e(t);return c(this,t,i),i;}});},8454(t,e,i){var r=i(6518),s=i(4995),n=i(6395),a=s.get,o=s.has,l=s.set;r({target:"WeakMap",proto:!0,real:!0,forced:n},{getOrInsert:function(t,e){return o(this,t)?a(this,t):(l(this,t,e),e);}});},4979(t,e,i){var r=i(6518),s=i(4576),n=i(7751),a=i(6980),o=i(4913).f,l=i(9297),h=i(679),d=i(3167),c=i(2603),u=i(5002),p=i(6193),g=i(3724),m=i(6395),f="DOMException",b=n("Error"),v=n(f),y=function(){h(this,A);var t=arguments.length,e=c(t<1?void 0:arguments[0]),i=c(t<2?void 0:arguments[1],"Error"),r=new v(e,i),s=new b(e);return s.name=f,o(r,"stack",a(1,p(s.stack,1))),d(r,this,y),r;},A=y.prototype=v.prototype,x="stack"in new b(f),w="stack"in new v(1,2),S=v&&g&&Object.getOwnPropertyDescriptor(s,f),C=!!S&&!(S.writable&&S.configurable),E=x&&!C&&!w;r({global:!0,constructor:!0,forced:m||E},{DOMException:E?y:v});var _=n(f),T=_.prototype;if(T.constructor!==_){for(var k in m||o(T,"constructor",a(1,_)),u)if(l(u,k)){var M=u[k],P=M.s;l(_,P)||o(_,P,a(6,M.c));}}},5781(t,e,i){var r=i(6518),s=i(7751),n=i(2812),a=i(655),o=i(7416),l=s("URL");r({target:"URL",stat:!0,forced:!o},{parse:function(t){var e=n(arguments.length,1),i=a(t),r=e<2||void 0===arguments[1]?void 0:a(arguments[1]);try{return new l(i,r);}catch(t){return null;}}});}};let n={};function a(t){let e=n[t];if(void 0!==e)return e.exports;let i=n[t]={exports:{}};return s[t].call(i.exports,i,i.exports,a),i.exports;}a.d=(t,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var r=e[i++],s=e[i++];a.o(t,r)?0===s&&i++:0===s?Object.defineProperty(t,r,{enumerable:!0,value:e[i++]}):Object.defineProperty(t,r,{enumerable:!0,get:s});}else for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]});},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a(4423),a(4114),a(8111),a(2489),a(5367),a(2731),a(7642),a(8004),a(3853),a(5876),a(2475),a(5024),a(1698),a(9577),a(6632),a(4226),a(9486),a(456),a(5781);let o="object"==typeof e.default&&e.default+""=="[object process]"&&!e.default.versions.nw&&!(e.default.versions.electron&&e.default.type&&"browser"!==e.default.type),l=[1/0,1/0,-1/0,-1/0],h=new Float32Array(l),d=[.001,0,0,.001,0,0],c="http://www.w3.org/2000/svg",u={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},p="pdfjs_internal_id_",g="pdfjs_internal_editor_",m={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,POPUP:16,SIGNATURE:101,COMMENT:102},f={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,INK_COLOR_AND_OPACITY:24,HIGHLIGHT_COLOR:31,HIGHLIGHT_THICKNESS:32,HIGHLIGHT_FREE:33,HIGHLIGHT_SHOW_ALL:34,DRAW_STEP:41},b={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},v={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},y={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26,RICHMEDIA:27},A={ERRORS:0,WARNINGS:1,INFOS:5},x={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93,rawFillPath:94},w={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},S=A.WARNINGS;function C(t){S>=A.INFOS&&console.info(`Info: ${t}`);}function E(t){S>=A.WARNINGS&&console.warn(`Warning: ${t}`);}function _(t){throw Error(t);}function T(t,e){t||_(e);}function k(t,e=null,i=null){if(!t)return null;if(i&&"string"==typeof t){if(i.addDefaultProtocol&&t.startsWith("www.")){let e=t.match(/\./g);(e===null||e===void 0?void 0:e.length)>=2&&(t=`http://${t}`);}if(i.tryConvertEncoding)try{var r;r=t,t=decodeURIComponent(escape(r));}catch{}}let s=e?URL.parse(t,e):URL.parse(t);return!function(t){switch(t===null||t===void 0?void 0:t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1;}}(s)?null:s;}function M(t,e,i=!1){let r=URL.parse(t);return r?(r.hash=e,r.href):i&&k(t,"http://example.com")?t.split("#",1)[0]+`${e?`#${e}`:""}`:"";}function P(t){return t.substring(t.lastIndexOf("/")+1);}function D(t,e,i,r=!1){return Object.defineProperty(t,e,{value:i,enumerable:!r,configurable:!0,writable:!1}),i;}let I=function(){function t(t,e){this.message=t,this.name=e;}return t.prototype=Error(),t.constructor=t,t;}();class R extends I{constructor(t,e){super(t,"PasswordException"),this.code=e;}}class F extends I{constructor(t,e){super(t,"UnknownErrorException"),this.details=e;}}class O extends I{constructor(t){super(t,"InvalidPDFException");}}class B extends I{constructor(t,e,i){super(t,"ResponseException"),this.status=e,this.missing=i;}}class L extends I{constructor(t){super(t,"FormatError");}}class N extends I{constructor(t){super(t,"AbortException");}}function U(t){"string"!=typeof t&&_("Invalid argument for stringToBytes");let e=t.length,i=new Uint8Array(e);for(let r=0;r<e;++r)i[r]=255&t.charCodeAt(r);return i;}class z{static get isLittleEndian(){let t=new Uint8Array(4);return t[0]=1,D(this,"isLittleEndian",1===new Uint32Array(t.buffer,0,1)[0]);}static get isOffscreenCanvasSupported(){return D(this,"isOffscreenCanvasSupported","u">typeof OffscreenCanvas);}static get isImageDecoderSupported(){return D(this,"isImageDecoderSupported","u">typeof ImageDecoder);}static get isFloat16ArraySupported(){return D(this,"isFloat16ArraySupported","u">typeof Float16Array);}static get isSanitizerSupported(){return D(this,"isSanitizerSupported","u">typeof Sanitizer);}static get platform(){let{platform:t,userAgent:e}=navigator;return D(this,"platform",{isAndroid:e.includes("Android"),isLinux:t.includes("Linux"),isMac:t.includes("Mac"),isWindows:t.includes("Win"),isFirefox:e.includes("Firefox")});}static get isCanvasFilterSupported(){var _t;let t;return this.isOffscreenCanvasSupported?t=new OffscreenCanvas(1,1).getContext("2d"):"u">typeof document&&(t=document.createElement("canvas").getContext("2d")),D(this,"isCanvasFilterSupported",((_t=t)===null||_t===void 0?void 0:_t.filter)!==void 0);}static get isAlphaColorInputSupported(){if("u"<typeof document)return D(this,"isAlphaColorInputSupported",!1);let t=document.createElement("input");return t.type="color",t.setAttribute("alpha",""),t.value="#ff000080",D(this,"isAlphaColorInputSupported","#ff0000"!==t.value);}static get isBackdropFilterSupported(){return D(this,"isBackdropFilterSupported","u">typeof CSS&&CSS.supports("backdrop-filter","blur(1px)"));}}class G{static get hexNums(){return D(this,"hexNums",Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0")));}static makeHexColor(t,e,i){return`#${this.hexNums[t]}${this.hexNums[e]}${this.hexNums[i]}`;}static transform(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]];}static multiplyByDOMMatrix(t,e){return[t[0]*e.a+t[2]*e.b,t[1]*e.a+t[3]*e.b,t[0]*e.c+t[2]*e.d,t[1]*e.c+t[3]*e.d,t[0]*e.e+t[2]*e.f+t[4],t[1]*e.e+t[3]*e.f+t[5]];}static applyTransform(t,e,i=0){let r=t[i],s=t[i+1];t[i]=r*e[0]+s*e[2]+e[4],t[i+1]=r*e[1]+s*e[3]+e[5];}static applyTransformToBezier(t,e,i=0){let r=e[0],s=e[1],n=e[2],a=e[3],o=e[4],l=e[5];for(let e=0;e<6;e+=2){let h=t[i+e],d=t[i+e+1];t[i+e]=h*r+d*n+o,t[i+e+1]=h*s+d*a+l;}}static applyInverseTransform(t,e){let i=t[0],r=t[1],s=e[0]*e[3]-e[1]*e[2];t[0]=(i*e[3]-r*e[2]+e[2]*e[5]-e[4]*e[3])/s,t[1]=(-i*e[1]+r*e[0]+e[4]*e[1]-e[5]*e[0])/s;}static axialAlignedBoundingBox(t,e,i){let r=e[0],s=e[1],n=e[2],a=e[3],o=e[4],l=e[5],h=t[0],d=t[1],c=t[2],u=t[3],p=r*h+o,g=p,m=r*c+o,f=m,b=a*d+l,v=b,y=a*u+l,A=y;if(0!==s||0!==n){let t=s*h,e=s*c,i=n*d,r=n*u;p+=i,f+=i,m+=r,g+=r,b+=t,A+=t,y+=e,v+=e;}i[0]=Math.min(i[0],p,m,g,f),i[1]=Math.min(i[1],b,y,v,A),i[2]=Math.max(i[2],p,m,g,f),i[3]=Math.max(i[3],b,y,v,A);}static inverseTransform(t){let e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e];}static singularValueDecompose2dScale(t,e){let i=t[0],r=t[1],s=t[2],n=t[3],a=i**2+r**2,o=s**2+n**2,l=(a+o)/2,h=Math.sqrt(l**2-(a*o-(i*s+r*n)**2));e[0]=Math.sqrt(l+h||1),e[1]=Math.sqrt(l-h||1);}static normalizeRect(t){let e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e;}static intersect(t,e){let i=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2])),r=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(i>r)return null;let s=Math.max(Math.min(t[1],t[3]),Math.min(e[1],e[3])),n=Math.min(Math.max(t[1],t[3]),Math.max(e[1],e[3]));return s>n?null:[i,s,r,n];}static pointBoundingBox(t,e,i){i[0]=Math.min(i[0],t),i[1]=Math.min(i[1],e),i[2]=Math.max(i[2],t),i[3]=Math.max(i[3],e);}static rectBoundingBox(t,e,i,r,s){s[0]=Math.min(s[0],t,i),s[1]=Math.min(s[1],e,r),s[2]=Math.max(s[2],t,i),s[3]=Math.max(s[3],e,r);}static bezierBoundingBox(t,e,i,r,s,n,a,o,l){l[0]=Math.min(l[0],t,a),l[1]=Math.min(l[1],e,o),l[2]=Math.max(l[2],t,a),l[3]=Math.max(l[3],e,o),_assertClassBrand(G,this,_e).call(this,t,i,s,a,e,r,n,o,3*(-t+3*(i-s)+a),6*(t-2*i+s),3*(i-t),l),_assertClassBrand(G,this,_e).call(this,t,i,s,a,e,r,n,o,3*(-e+3*(r-n)+o),6*(e-2*r+n),3*(r-e),l);}}_G=G;function _t2(t,e,i,r,s,n,a,o,l,h){if(l<=0||l>=1)return;let d=1-l,c=l*l,u=c*l,p=d*(d*(d*t+3*l*e)+3*c*i)+u*r,g=d*(d*(d*s+3*l*n)+3*c*a)+u*o;h[0]=Math.min(h[0],p),h[1]=Math.min(h[1],g),h[2]=Math.max(h[2],p),h[3]=Math.max(h[3],g);}function _e(t,e,i,r,s,n,a,o,l,h,d,c){if(1e-12>Math.abs(l)){Math.abs(h)>=1e-12&&_assertClassBrand(_G,this,_t2).call(this,t,e,i,r,s,n,a,o,-d/h,c);return;}let u=h**2-4*d*l;if(u<0)return;let p=Math.sqrt(u),g=2*l;_assertClassBrand(_G,this,_t2).call(this,t,e,i,r,s,n,a,o,(-h+p)/g,c),_assertClassBrand(_G,this,_t2).call(this,t,e,i,r,s,n,a,o,(-h-p)/g,c);}let j=null,H=null;function $(t){return j||(j=/([\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,H=new Map([["ſt","ſt"]])),t.replaceAll(j,(t,e,i)=>e?e.normalize("NFKC"):H.get(i));}function V(){if("function"==typeof crypto.randomUUID)return crypto.randomUUID();let t=new Uint8Array(32);return crypto.getRandomValues(t),function(t){("object"!=typeof t||(t===null||t===void 0?void 0:t.length)===void 0)&&_("Invalid argument for bytesToString");let e=t.length;if(e<8192)return String.fromCharCode.apply(null,t);let i=[];for(let r=0;r<e;r+=8192){let s=Math.min(r+8192,e),n=t.subarray(r,s);i.push(String.fromCharCode.apply(null,n));}return i.join("");}(t);}let W=()=>[],K=()=>new Map(),X=()=>Object.create(null),Y=()=>new Set();function q(t,e,i){return Math.min(Math.max(t,e),i);}"function"!=typeof Blob.prototype.bytes&&(Blob.prototype.bytes=async function(){return new Uint8Array(await this.arrayBuffer());}),"function"!=typeof Response.prototype.bytes&&(Response.prototype.bytes=async function(){return new Uint8Array(await this.arrayBuffer());}),"function"!=typeof Iterator.prototype.join&&(Iterator.prototype.join=function(t){return[...this].join(t);}),a(1701);class J{constructor({viewBox:t,userUnit:e,scale:i,rotation:r,offsetX:s=0,offsetY:n=0,dontFlip:a=!1}){let o,l,h,d,c,u,p,g;this.viewBox=t,this.userUnit=e,this.scale=i,this.rotation=r,this.offsetX=s,this.offsetY=n,i*=e;let m=(t[2]+t[0])/2,f=(t[3]+t[1])/2;switch((r%=360)<0&&(r+=360),r){case 180:o=-1,l=0,h=0,d=1;break;case 90:o=0,l=1,h=1,d=0;break;case 270:o=0,l=-1,h=-1,d=0;break;case 0:o=1,l=0,h=0,d=-1;break;default:throw Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.");}a&&(h=-h,d=-d),0===o?(c=Math.abs(f-t[1])*i+s,u=Math.abs(m-t[0])*i+n,p=(t[3]-t[1])*i,g=(t[2]-t[0])*i):(c=Math.abs(m-t[0])*i+s,u=Math.abs(f-t[1])*i+n,p=(t[2]-t[0])*i,g=(t[3]-t[1])*i),this.transform=[o*i,l*i,h*i,d*i,c-o*i*m-h*i*f,u-l*i*m-d*i*f],this.width=p,this.height=g;}get rawDims(){let t=this.viewBox;return D(this,"rawDims",{pageWidth:t[2]-t[0],pageHeight:t[3]-t[1],pageX:t[0],pageY:t[1]});}clone({scale:t=this.scale,rotation:e=this.rotation,offsetX:i=this.offsetX,offsetY:r=this.offsetY,dontFlip:s=!1}={}){return new J({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:t,rotation:e,offsetX:i,offsetY:r,dontFlip:s});}convertToViewportPoint(t,e){let i=[t,e];return G.applyTransform(i,this.transform),i;}convertToPdfPoint(t,e){let i=[t,e];return G.applyInverseTransform(i,this.transform),i;}}class Q{static textContent(t){let e=[],i={items:e,styles:Object.create(null)};return!function t(i){if(!i)return;let r=null,s=i.name;if("#text"===s)r=i.value;else{var _i$attributes;if(!Q.shouldBuildText(s))return;i!==null&&i!==void 0&&(_i$attributes=i.attributes)!==null&&_i$attributes!==void 0&&_i$attributes.textContent?r=i.attributes.textContent:i.value&&(r=i.value);}if(null!==r&&e.push({str:r}),i.children)for(let e of i.children)t(e);}(t),i;}static shouldBuildText(t){return"textarea"!==t&&"input"!==t&&"option"!==t&&"select"!==t;}}let Z=/url\(|image-set\(/i,tt=/^on/i;class te{static get _allowedHtmlElements(){return D(this,"_allowedHtmlElements",new Set(["a","b","br","button","div","i","img","input","label","li","ol","option","p","select","span","sub","sup","textarea","ul"]));}static get _allowedSvgElements(){return D(this,"_allowedSvgElements",new Set(["ellipse","line","path","rect","svg"]));}static get _allowedRichTextElements(){return D(this,"_allowedRichTextElements",new Set(["a","b","br","div","i","li","ol","p","span","sub","sup","ul"]));}static get _allowedRichTextAttributes(){return D(this,"_allowedRichTextAttributes",new Set(["class","dir","style"]));}static get _allowedRichTextStyles(){return D(this,"_allowedRichTextStyles",new Set(["color","font","fontFamily","fontSize","fontStretch","fontStyle","fontWeight","kerningMode","letterSpacing","lineHeight","margin","marginBottom","marginLeft","marginRight","marginTop","orphans","paddingLeft","paddingRight","breakAfter","breakBefore","breakInside","tabInterval","tabStop","textAlign","textDecoration","textIndent","transform","verticalAlign","widows"]));}static setupStorage(t,e,i,r,s){let n=r.getValue(e,{value:null});switch(i.name){case"textarea":if(null!==n.value&&(t.textContent=n.value),"print"===s)break;t.addEventListener("input",t=>{r.setValue(e,{value:t.target.value});});break;case"input":if("radio"===i.attributes.type||"checkbox"===i.attributes.type){if(n.value===i.attributes.xfaOn?t.setAttribute("checked",!0):n.value===i.attributes.xfaOff&&t.removeAttribute("checked"),"print"===s)break;t.addEventListener("change",t=>{r.setValue(e,{value:t.target.checked?t.target.getAttribute("xfaOn"):t.target.getAttribute("xfaOff")});});}else{if(null!==n.value&&t.setAttribute("value",n.value),"print"===s)break;t.addEventListener("input",t=>{r.setValue(e,{value:t.target.value});});}break;case"select":if(null!==n.value)for(let e of(t.setAttribute("value",n.value),i.children))e.attributes.value===n.value?e.attributes.selected=!0:Object.hasOwn(e.attributes,"selected")&&delete e.attributes.selected;t.addEventListener("input",t=>{let i=t.target.options,s=-1===i.selectedIndex?"":i[i.selectedIndex].value;r.setValue(e,{value:s});});}}static setAttributes({html:t,element:e,storage:i=null,intent:r,linkService:s}){let{attributes:n}=e,a=t instanceof HTMLAnchorElement;for(let[e,i]of("radio"===n.type&&(n.name=`${n.name}-${r}`),Object.entries(n)))if(!(null==i||tt.test(e))&&("richText"!==r||this._allowedRichTextAttributes.has(e)))switch(e){case"class":i.length&&t.setAttribute(e,i.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",i);break;case"style":if("richText"===r){let e=this._allowedRichTextStyles;for(let[r,s]of Object.entries(i))e.has(r)&&!Z.test(s)&&(t.style[r]=s);}else Object.assign(t.style,i);break;case"textContent":t.textContent=i;break;default:a&&("href"===e||"newWindow"===e)||t.setAttribute(e,i);}a&&s!==null&&s!==void 0&&s.addLinkAttributes(t,n.href,n.newWindow),i&&n.dataId&&this.setupStorage(t,n.dataId,e,i);}static render(t){var _assertClassBrand$cal,_r$attributes;let e=t.annotationStorage,i=t.linkService,r=t.xfaHtml,s=t.intent||"display",n=(_assertClassBrand$cal=_assertClassBrand(te,this,_i).call(this,r.name,(_r$attributes=r.attributes)===null||_r$attributes===void 0?void 0:_r$attributes.xmlns,s))!==null&&_assertClassBrand$cal!==void 0?_assertClassBrand$cal:document.createElement("div");r.attributes&&this.setAttributes({html:n,element:r,intent:s,linkService:i});let a="richText"!==s,o=t.div;if(o.append(n),t.viewport){let e=`matrix(${t.viewport.transform.join(",")})`;o.style.transform=e;}a&&o.setAttribute("class","xfaLayer xfaFont");let l=[];if(0===r.children.length){if(r.value){let t=document.createTextNode(r.value);n.append(t),a&&Q.shouldBuildText(r.name)&&l.push(t);}return{textDivs:l};}let h=[[r,-1,n]];for(;h.length>0;){var _o$attributes;let[t,r,n]=h.at(-1);if(r+1===t.children.length){h.pop();continue;}let o=t.children[++h.at(-1)[1]];if(null===o)continue;let{name:d}=o;if("#text"===d){let t=document.createTextNode(o.value);l.push(t),n.append(t);continue;}let c=_assertClassBrand(te,this,_i).call(this,d,(_o$attributes=o.attributes)===null||_o$attributes===void 0?void 0:_o$attributes.xmlns,s);if(c){var _o$children;if(n.append(c),o.attributes&&this.setAttributes({html:c,element:o,storage:e,intent:s,linkService:i}),((_o$children=o.children)===null||_o$children===void 0?void 0:_o$children.length)>0)h.push([o,-1,c]);else if(o.value){let t=document.createTextNode(o.value);a&&Q.shouldBuildText(d)&&l.push(t),c.append(t);}}}for(let t of o.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))t.setAttribute("readOnly",!0);return{textDivs:l};}static update(t){let e=`matrix(${t.viewport.transform.join(",")})`;t.div.style.transform=e,t.div.hidden=!1;}static getPageViewport(t,{scale:e=1,rotation:i=0}){let{width:r,height:s}=t.attributes.style;return new J({viewBox:[0,0,parseInt(r,10),parseInt(s,10)],userUnit:1,scale:e,rotation:i});}}function _i(t,e,i){return"richText"===i?!e&&this._allowedRichTextElements.has(t)?document.createElement(t):null:e?e===c&&this._allowedSvgElements.has(t)?document.createElementNS(c,t):null:this._allowedHtmlElements.has(t)?document.createElement(t):null;}class ti{}_ti=ti;_defineProperty(ti,"CSS",96);_defineProperty(ti,"PDF",72);_defineProperty(ti,"PDF_TO_CSS_UNITS",_ti.CSS/_ti.PDF);async function tr(t,e="text"){if(td(t,document.baseURI)){let i=await fetch(t);if(!i.ok)throw Error(i.statusText);switch(e){case"blob":return i.blob();case"bytes":return i.bytes();case"json":return i.json();}return i.text();}return new Promise((i,r)=>{let s=new XMLHttpRequest();s.open("GET",t,!0),s.responseType="bytes"===e?"arraybuffer":e,s.onreadystatechange=()=>{if(s.readyState===XMLHttpRequest.DONE){if(200===s.status||0===s.status){switch(e){case"bytes":i(new Uint8Array(s.response));return;case"blob":case"json":i(s.response);return;}i(s.responseText);return;}r(Error(s.statusText));}},s.send(null);});}class ts extends I{constructor(t,e=0){super(t,"RenderingCancelledException"),this.extraDelay=e;}}function tn(t){let e=t.length,i=0;for(;i<e&&""===t[i].trim();)i++;return"data:"===t.substring(i,i+5).toLowerCase();}function ta(t){return"string"==typeof t&&/\.pdf$/i.test(t);}function to(t){return[t]=t.split(/[#?]/,1),P(t);}function tl(t,e="document.pdf"){if("string"!=typeof t)return e;if(tn(t))return E('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),e;let i=(t=>{try{return new URL(t);}catch{}try{return new URL(decodeURIComponent(t));}catch{}try{return new URL(t,"https://foo.bar");}catch{}try{return new URL(decodeURIComponent(t),"https://foo.bar");}catch{}return null;})(t);if(!i)return e;let r=t=>{try{let e=decodeURIComponent(t);if(e.includes("/")&&(e=P(e),4===e.length&&s.test(e)))return t;return e;}catch{return t;}},s=/\.pdf$/i,n=P(i.pathname);if(s.test(n))return r(n);if(i.searchParams.size>0){var _t4;let t=t=>[...t].findLast(t=>s.test(t)),e=(_t4=t(i.searchParams.values()))!==null&&_t4!==void 0?_t4:t(i.searchParams.keys());if(e)return r(e);}if(i.hash){let{hash:t}=i,e=-1;for(let{index:i}of t.matchAll(/\.pdf\b/gi))e=i;if(e>0){let i=e;for(;i>0&&!"/?#=".includes(t[i-1]);)i--;if(i<e)return r(t.slice(i,e+4));}}return e;}var _r=new WeakMap();class th{constructor(){_classPrivateFieldInitSpec(this,_r,new Map());_defineProperty(this,"times",[]);}time(t){_classPrivateFieldGet(_r,this).has(t)&&E(`Timer is already running for ${t}`),_classPrivateFieldGet(_r,this).set(t,Date.now());}timeEnd(t){_classPrivateFieldGet(_r,this).has(t)||E(`Timer has not been started for ${t}`),this.times.push({name:t,start:_classPrivateFieldGet(_r,this).get(t),end:Date.now()}),_classPrivateFieldGet(_r,this).delete(t);}toString(){let t=Math.max(...this.times.map(t=>t.name.length));return this.times.map(e=>`${e.name.padEnd(t)} ${e.end-e.start}ms
1
+ function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o,t.apply(n,e);}});}function _classPrivateMethodInitSpec(e,a){_checkPrivateRedeclaration(e,a),a.add(e);}function _classPrivateGetter(s,r,a){return a(_assertClassBrand(s,r));}function _classPrivateFieldSet(s,a,r){return s.set(_assertClassBrand(s,a),r),r;}function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a);}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object");}function _classPrivateFieldGet(s,a){return s.get(_assertClassBrand(s,a));}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==typeof i?i:i+"";}function _toPrimitive(t,e){if("object"!=typeof t||!t)return t;var r;if("undefined"!=typeof Symbol&&void 0!==(r=t[Symbol.toPrimitive])){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===e?String:Number)(t);}function _assertClassBrand(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object");}(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,66667,t=>{"use strict";var _G,_ti,_tN,_tz,_tX2,_eg2,_rC,_rE,_r_,_rT,_Class_brand,_iz2,_ij$ro,_ij$ro2,_iW2,_iQ5,_rk2,_rP2,_rj2,_rX2,_r30;var e=t.i(47167),i=t.i(67034),r={get url(){return t.F("node_modules/pdfjs-dist/legacy/build/pdf.mjs");},env:{DEV:!1,PROD:!0,MODE:"production",BASE_URL:"/",SSR:!1}},s={9306(t,e,i){var r=i(4901),s=i(6823),n=TypeError;t.exports=function(t){if(r(t))return t;throw new n(s(t)+" is not a function");};},3506(t,e,i){var r=i(3925),s=String,n=TypeError;t.exports=function(t){if(r(t))return t;throw new n("Can't set "+s(t)+" as a prototype");};},7080(t,e,i){var r=i(4402).has;t.exports=function(t){return r(t),t;};},3463(t){var e=TypeError;t.exports=function(t){if("string"==typeof t)return t;throw new e("Argument is not a string");};},4328(t,e,i){var r=i(4995),s=new r.WeakMap(),n=r.set,a=r.remove;t.exports=function(t){return n(s,t,1),a(s,t),t;};},6557(t,e,i){var r=i(4995).has;t.exports=function(t){return r(t),t;};},6469(t,e,i){var r=i(8227),s=i(2360),n=i(4913).f,a=r("unscopables"),o=Array.prototype;void 0===o[a]&&n(o,a,{configurable:!0,value:s(null)}),t.exports=function(t){o[a][t]=!0;};},679(t,e,i){var r=i(1625),s=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new s("Incorrect invocation");};},3972(t,e,i){var r=i(34),s=String,n=TypeError;t.exports=function(t){if(void 0===t||r(t))return t;throw new n(s(t)+" is not an object or undefined");};},8551(t,e,i){var r=i(34),s=String,n=TypeError;t.exports=function(t){if(r(t))return t;throw new n(s(t)+" is not an object");};},4154(t,e,i){var r=i(6955),s=TypeError;t.exports=function(t){if("Uint8Array"===r(t))return t;throw new s("Argument is not an Uint8Array");};},7811(t){t.exports="u">typeof ArrayBuffer&&"u">typeof DataView;},7394(t,e,i){var r=i(4576),s=i(6706),n=i(2195),a=r.ArrayBuffer,o=r.TypeError;t.exports=a&&s(a.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==n(t))throw new o("ArrayBuffer expected");return t.byteLength;};},3238(t,e,i){var r=i(4576),s=i(7811),n=i(7394),a=r.DataView;t.exports=function(t){if(!s||0!==n(t))return!1;try{return new a(t),!1;}catch(t){return!0;}};},5169(t,e,i){var r=i(3238),s=TypeError;t.exports=function(t){if(r(t))throw new s("ArrayBuffer is detached");return t;};},4644(t,e,i){var r,s,n,a=i(7811),o=i(3724),l=i(4576),h=i(4901),d=i(34),c=i(9297),u=i(6955),p=i(6823),g=i(6699),m=i(6840),f=i(2106),b=i(1625),v=i(2787),y=i(2967),A=i(8227),x=i(3392),w=i(1181),S=w.enforce,C=w.get,E=l.Int8Array,_=E&&E.prototype,T=l.Uint8ClampedArray,k=T&&T.prototype,M=E&&v(E),P=_&&v(_),D=Object.prototype,I=l.TypeError,R=A("toStringTag"),F=x("TYPED_ARRAY_TAG"),O="TypedArrayConstructor",B=a&&!!y&&"Opera"!==u(l.opera),L=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},z=function(t){var e=v(t);if(d(e)){var i=C(e);return i&&c(i,O)?i[O]:z(e);}},G=function(t){if(!d(t))return!1;var e=u(t);return c(N,e)||c(U,e);};for(r in N)(n=(s=l[r])&&s.prototype)?S(n)[O]=s:B=!1;for(r in U)(n=(s=l[r])&&s.prototype)&&(S(n)[O]=s);if((!B||!h(M)||M===Function.prototype)&&(M=function(){throw new I("Incorrect invocation");},B))for(r in N)l[r]&&y(l[r],M);if((!B||!P||P===D)&&(P=M.prototype,B))for(r in N)l[r]&&y(l[r].prototype,P);if(B&&v(k)!==P&&y(k,P),o&&!c(P,R))for(r in L=!0,f(P,R,{configurable:!0,get:function(){return d(this)?this[F]:void 0;}}),N)l[r]&&g(l[r].prototype,F,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:B,TYPED_ARRAY_TAG:L&&F,aTypedArray:function(t){if(G(t))return t;throw new I("Target is not a typed array");},aTypedArrayConstructor:function(t){if(h(t)&&(!y||b(M,t)))return t;throw new I(p(t)+" is not a typed array constructor");},exportTypedArrayMethod:function(t,e,i,r){if(o){if(i)for(var s in N){var n=l[s];if(n&&c(n.prototype,t))try{delete n.prototype[t];}catch(i){try{n.prototype[t]=e;}catch(t){}}}(!P[t]||i)&&m(P,t,i?e:B&&_[t]||e,r);}},exportTypedArrayStaticMethod:function(t,e,i){var r,s;if(o){if(y){if(i){for(r in N)if((s=l[r])&&c(s,t))try{delete s[t];}catch(t){}}if(M[t]&&!i)return;try{return m(M,t,i?e:B&&M[t]||e);}catch(t){}}for(r in N)(s=l[r])&&(!s[t]||i)&&m(s,t,e);}},getTypedArrayConstructor:z,isView:function(t){if(!d(t))return!1;var e=u(t);return"DataView"===e||c(N,e)||c(U,e);},isTypedArray:G,TypedArray:M,TypedArrayPrototype:P};},5370(t,e,i){var r=i(6198);t.exports=function(t,e,i){for(var s=0,n=arguments.length>2?i:r(e),a=new t(n);n>s;)a[s]=e[s++];return a;};},9617(t,e,i){var r=i(5397),s=i(5610),n=i(6198),a=function(t){return function(e,i,a){var o,l=r(e),h=n(l);if(0===h)return!t&&-1;var d=s(a,h);if(t&&i!=i){for(;h>d;)if((o=l[d++])!=o)return!0;}else for(;h>d;d++)if((t||d in l)&&l[d]===i)return t||d||0;return!t&&-1;};};t.exports={includes:a(!0),indexOf:a(!1)};},4527(t,e,i){var r=i(3724),s=i(4376),n=TypeError,a=Object.getOwnPropertyDescriptor;t.exports=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1;}catch(t){return t instanceof TypeError;}}()?function(t,e){if(s(t)&&!a(t,"length").writable)throw new n("Cannot set read only .length");return t.length=e;}:function(t,e){return t.length=e;};},7680(t,e,i){t.exports=i(9504)([].slice);},2804(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=e+"+/",r=e+"-_",s=function(t){for(var e={},i=0;i<64;i++)e[t.charAt(i)]=i;return e;};t.exports={i2c:i,c2i:s(i),i2cUrl:r,c2iUrl:s(r)};},6319(t,e,i){var r=i(8551),s=i(9539);t.exports=function(t,e,i,n){try{return n?e(r(i)[0],i[1]):e(i);}catch(e){s(t,"throw",e);}};},2195(t,e,i){var r=i(9504),s=r({}.toString),n=r("".slice);t.exports=function(t){return n(s(t),8,-1);};},6955(t,e,i){var r=i(2140),s=i(4901),n=i(2195),a=i(8227)("toStringTag"),o=Object,l="Arguments"===n(function(){return arguments;}()),h=function(t,e){try{return t[e];}catch(t){}};t.exports=r?n:function(t){var e,i,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=h(e=o(t),a))?i:l?n(e):"Object"===(r=n(e))&&s(e.callee)?"Arguments":r;};},7740(t,e,i){var r=i(9297),s=i(5031),n=i(7347),a=i(4913);t.exports=function(t,e,i){for(var o=s(e),l=a.f,h=n.f,d=0;d<o.length;d++){var c=o[d];r(t,c)||i&&r(i,c)||l(t,c,h(e,c));}};},2211(t,e,i){t.exports=!i(9039)(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t())!==t.prototype;});},2529(t){t.exports=function(t,e){return{value:t,done:e};};},6699(t,e,i){var r=i(3724),s=i(4913),n=i(6980);t.exports=r?function(t,e,i){return s.f(t,e,n(1,i));}:function(t,e,i){return t[e]=i,t;};},6980(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e};};},4659(t,e,i){var r=i(3724),s=i(4913),n=i(6980);t.exports=function(t,e,i){r?s.f(t,e,n(0,i)):t[e]=i;};},2106(t,e,i){var r=i(283),s=i(4913);t.exports=function(t,e,i){return i.get&&r(i.get,e,{getter:!0}),i.set&&r(i.set,e,{setter:!0}),s.f(t,e,i);};},6840(t,e,i){var r=i(4901),s=i(4913),n=i(283),a=i(9433);t.exports=function(t,e,i,o){o||(o={});var l=o.enumerable,h=void 0!==o.name?o.name:e;if(r(i)&&n(i,h,o),o.global)l?t[e]=i:a(e,i);else{try{o.unsafe?t[e]&&(l=!0):delete t[e];}catch(t){}l?t[e]=i:s.f(t,e,{value:i,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable});}return t;};},6279(t,e,i){var r=i(6840);t.exports=function(t,e,i){for(var s in e)r(t,s,e[s],i);return t;};},9433(t,e,i){var r=i(4576),s=Object.defineProperty;t.exports=function(t,e){try{s(r,t,{value:e,configurable:!0,writable:!0});}catch(i){r[t]=e;}return e;};},3724(t,e,i){t.exports=!i(9039)(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7;}})[1];});},4055(t,e,i){var r=i(4576),s=i(34),n=r.document,a=s(n)&&s(n.createElement);t.exports=function(t){return a?n.createElement(t):{};};},6837(t){var e=TypeError;t.exports=function(t){if(t>0x1fffffffffffff)throw new e("Maximum allowed index exceeded");return t;};},5002(t){t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}};},8727(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];},2839(t,e,i){var r=i(4576).navigator,s=r&&r.userAgent;t.exports=s?String(s):"";},9519(t,e,i){var r,s,n=i(4576),a=i(2839),o=n.process,l=n.Deno,h=o&&o.versions||l&&l.version,d=h&&h.v8;d&&(s=(r=d.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(s=+r[1]),t.exports=s;},6193(t,e,i){var r=i(9504),s=Error,n=r("".replace),a=String(new s("zxcasd").stack),o=/\n\s*at [^:]*:[^\n]*/,l=o.test(a);t.exports=function(t,e){if(l&&"string"==typeof t&&!s.prepareStackTrace)for(;e--;)t=n(t,o,"");return t;};},6518(t,e,i){var r=i(4576),s=i(7347).f,n=i(6699),a=i(6840),o=i(9433),l=i(7740),h=i(2796);t.exports=function(t,e){var i,d,c,u,p,g=t.target,m=t.global,f=t.stat;if(i=m?r:f?r[g]||o(g,{}):r[g]&&r[g].prototype)for(d in e){if(u=e[d],c=t.dontCallGetSet?(p=s(i,d))&&p.value:i[d],!h(m?d:g+(f?".":"#")+d,t.forced)&&void 0!==c){if(typeof u==typeof c)continue;l(u,c);}(t.sham||c&&c.sham)&&n(u,"sham",!0),a(i,d,u,t);}};},9039(t){t.exports=function(t){try{return!!t();}catch(t){return!0;}};},8745(t,e,i){var r=i(616),s=Function.prototype,n=s.apply,a=s.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(n):function(){return a.apply(n,arguments);});},6080(t,e,i){var r=i(7476),s=i(9306),n=i(616),a=r(r.bind);t.exports=function(t,e){return s(t),void 0===e?t:n?a(t,e):function(){return t.apply(e,arguments);};};},616(t,e,i){t.exports=!i(9039)(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype");});},9565(t,e,i){var r=i(616),s=Function.prototype.call;t.exports=r?s.bind(s):function(){return s.apply(s,arguments);};},350(t,e,i){var r=i(3724),s=i(9297),n=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,o=s(n,"name"),l=o&&(!r||r&&a(n,"name").configurable);t.exports={EXISTS:o,PROPER:o&&"something"===function(){}.name,CONFIGURABLE:l};},6706(t,e,i){var r=i(9504),s=i(9306);t.exports=function(t,e,i){try{return r(s(Object.getOwnPropertyDescriptor(t,e)[i]));}catch(t){}};},7476(t,e,i){var r=i(2195),s=i(9504);t.exports=function(t){if("Function"===r(t))return s(t);};},9504(t,e,i){var r=i(616),s=Function.prototype,n=s.call,a=r&&s.bind.bind(n,n);t.exports=r?a:function(t){return function(){return n.apply(t,arguments);};};},944(t){var e=TypeError;t.exports=function(t){var i=t&&t.alphabet;if(void 0===i||"base64"===i||"base64url"===i)return i||"base64";throw new e("Incorrect `alphabet` option");};},7751(t,e,i){var r=i(4576),s=i(4901);t.exports=function(t,e){var i;return arguments.length<2?s(i=r[t])?i:void 0:r[t]&&r[t][e];};},1767(t){t.exports=function(t){return{iterator:t,next:t.next,done:!1};};},8646(t,e,i){var r=i(9565),s=i(8551),n=i(1767),a=i(3085);t.exports=function(t,e){e&&"string"==typeof t||s(t);var i=a(t);return n(s(void 0!==i?r(i,t):t));};},8563(t,e,i){var r=i(9565),s=i(4901),n=i(8551),a=i(6823),o=i(3085),l=TypeError;t.exports=function(t,e){var i=arguments.length<2?o(t):e;if(s(i))return n(r(i,t));throw new l(a(t)+" is not iterable");};},3085(t,e,i){var r=i(2195),s=i(4117),n=i(5966),a=i(8227)("iterator"),o=Array.prototype;t.exports=function(t){if(!s(t))return n(t,a)||n(t,"@@iterator")||("Arguments"===r(t)?o[a]:void 0);};},5966(t,e,i){var r=i(9306),s=i(4117);t.exports=function(t,e){var i=t[e];return s(i)?void 0:r(i);};},3789(t,e,i){var r=i(9306),s=i(8551),n=i(9565),a=i(1291),o=i(1767),l="Invalid size",h=RangeError,d=TypeError,c=Math.max,u=function(t,e){this.set=t,this.size=c(e,0),this.has=r(t.has),this.keys=r(t.keys);};u.prototype={getIterator:function(){return o(s(n(this.keys,this.set)));},includes:function(t){return n(this.has,this.set,t);}},t.exports=function(t){s(t);var e=+t.size;if(e!=e)throw new d(l);var i=a(e);if(i<0)throw new h(l);return new u(t,i);};},4576(e){var i=function(t){return t&&t.Math===Math&&t;};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i(t.g)||i("object"==typeof this&&this)||function(){return this;}()||Function("return this")();},9297(t,e,i){var r=i(9504),s=i(8981),n=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return n(s(t),e);};},421(t){t.exports={};},397(t,e,i){t.exports=i(7751)("document","documentElement");},5917(t,e,i){var r=i(3724),s=i(9039),n=i(4055);t.exports=!r&&!s(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7;}}).a;});},7055(t,e,i){var r=i(9504),s=i(9039),n=i(2195),a=Object,o=r("".split);t.exports=s(function(){return!a("z").propertyIsEnumerable(0);})?function(t){return"String"===n(t)?o(t,""):a(t);}:a;},3167(t,e,i){var r=i(4901),s=i(34),n=i(2967);t.exports=function(t,e,i){var a,o;return n&&r(a=e.constructor)&&a!==i&&s(o=a.prototype)&&o!==i.prototype&&n(t,o),t;};},3706(t,e,i){var r=i(9504),s=i(4901),n=i(7629),a=r(Function.toString);s(n.inspectSource)||(n.inspectSource=function(t){return a(t);}),t.exports=n.inspectSource;},1181(t,e,i){var r,s,n,a=i(8622),o=i(4576),l=i(34),h=i(6699),d=i(9297),c=i(7629),u=i(6119),p=i(421),g="Object already initialized",m=o.TypeError,f=o.WeakMap;if(a||c.state){var b=c.state||(c.state=new f());b.get=b.get,b.has=b.has,b.set=b.set,r=function(t,e){if(b.has(t))throw new m(g);return e.facade=t,b.set(t,e),e;},s=function(t){return b.get(t)||{};},n=function(t){return b.has(t);};}else{var v=u("state");p[v]=!0,r=function(t,e){if(d(t,v))throw new m(g);return e.facade=t,h(t,v,e),e;},s=function(t){return d(t,v)?t[v]:{};},n=function(t){return d(t,v);};}t.exports={set:r,get:s,has:n,enforce:function(t){return n(t)?s(t):r(t,{});},getterFor:function(t){return function(e){var i;if(!l(e)||(i=s(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return i;};}};},4209(t,e,i){var r=i(8227),s=i(6269),n=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||a[n]===t);};},4376(t,e,i){var r=i(2195);t.exports=Array.isArray||function(t){return"Array"===r(t);};},1108(t,e,i){var r=i(6955);t.exports=function(t){var e=r(t);return"BigInt64Array"===e||"BigUint64Array"===e;};},4901(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e;}:function(t){return"function"==typeof t;};},2796(t,e,i){var r=i(9039),s=i(4901),n=/#|\.prototype\./,a=function(t,e){var i=l[o(t)];return i===d||i!==h&&(s(e)?r(e):!!e);},o=a.normalize=function(t){return String(t).replace(n,".").toLowerCase();},l=a.data={},h=a.NATIVE="N",d=a.POLYFILL="P";t.exports=a;},4117(t){t.exports=function(t){return null==t;};},34(t,e,i){var r=i(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t);};},3925(t,e,i){var r=i(34);t.exports=function(t){return r(t)||null===t;};},6395(t){t.exports=!1;},5810(t,e,i){var r=i(34),s=i(1181).get;t.exports=function(t){if(!r(t))return!1;var e=s(t);return!!e&&"RawJSON"===e.type;};},757(t,e,i){var r=i(7751),s=i(4901),n=i(1625),a=i(7040),o=Object;t.exports=a?function(t){return"symbol"==typeof t;}:function(t){var e=r("Symbol");return s(e)&&n(e.prototype,o(t));};},507(t,e,i){var r=i(9565);t.exports=function(t,e,i){for(var s,n,a=i?t:t.iterator,o=t.next;!(s=r(o,a)).done;)if(void 0!==(n=e(s.value)))return n;};},2652(t,e,i){var r=i(6080),s=i(9565),n=i(8551),a=i(6823),o=i(4209),l=i(6198),h=i(1625),d=i(8563),c=i(3085),u=i(9539),p=TypeError,g=function(t,e){this.stopped=t,this.result=e;},m=g.prototype;t.exports=function(t,e,i){var f,b,v,y,A,x,w,S=i&&i.that,C=!!(i&&i.AS_ENTRIES),E=!!(i&&i.IS_RECORD),_=!!(i&&i.IS_ITERATOR),T=!!(i&&i.INTERRUPTED),k=r(e,S),M=function(t){var e=f;return f=void 0,e&&u(e,"normal"),new g(!0,t);},P=function(t){return C?(n(t),T?k(t[0],t[1],M):k(t[0],t[1])):T?k(t,M):k(t);};if(E)f=t.iterator;else if(_)f=t;else{if(!(b=c(t)))throw new p(a(t)+" is not iterable");if(o(b)){for(v=0,y=l(t);y>v;v++)if((A=P(t[v]))&&h(m,A))return A;return new g(!1);}f=d(t,b);}for(x=E?t.next:f.next;!(w=s(x,f)).done;){var D=w.value;try{A=P(D);}catch(t){if(f)u(f,"throw",t);else throw t;}if("object"==typeof A&&A&&h(m,A))return A;}return new g(!1);};},6859(t){t.exports=function(t){t.iterator=t.next=t.nextHandler=t.mapper=t.predicate=t.inner=t.iterables=t.iters=t.openIters=t.padding=t.finishResults=t.buffer=null;};},1385(t,e,i){var r=i(9539);t.exports=function(t,e,i){for(var s=t.length-1;s>=0;s--)if(void 0!==t[s])try{i=r(t[s].iterator,e,i);}catch(t){e="throw",i=t;}if("throw"===e)throw i;return i;};},9539(t,e,i){var r=i(9565),s=i(8551),n=i(5966);t.exports=function(t,e,i){var a,o;s(t);try{if(!(a=n(t,"return"))){if("throw"===e)throw i;return i;}a=r(a,t);}catch(t){o=!0,a=t;}if("throw"===e)throw i;if(o)throw a;return s(a),i;};},9462(t,e,i){var r=i(9565),s=i(2360),n=i(6699),a=i(6279),o=i(8227),l=i(1181),h=i(5966),d=i(7657).IteratorPrototype,c=i(2529),u=i(9539),p=i(1385),g=i(6859),m=o("toStringTag"),f="IteratorHelper",b="WrapForValidIterator",v="normal",y="throw",A=l.set,x=function(t){var e=l.getterFor(t?b:f);return a(s(d),{next:function(){var i=e(this);if(t)return i.nextHandler();if(i.done)return c(void 0,!0);try{var r=i.nextHandler();return i.done&&g(i),i.returnHandlerResult?r:c(r,i.done);}catch(t){throw i.done=!0,g(i),t;}},return:function(){var i=e(this),s=i.iterator,n=i.inner,a=i.openIters,o=i.done;if(i.done=!0,t){var l=h(s,"return");return l?r(l,s):c(void 0,!0);}if(g(i),o)return c(void 0,!0);if(n)try{u(n.iterator,v);}catch(t){return u(s,y,t);}if(a)try{p(a,v);}catch(t){if(s)return u(s,y,t);throw t;}return s&&u(s,v),c(void 0,!0);}});},w=x(!0),S=x(!1);n(S,m,"Iterator Helper"),t.exports=function(t,e,i){var r=function(r,s){s?(s.iterator=r.iterator,s.next=r.next):s=r,s.type=e?b:f,s.returnHandlerResult=!!i,s.nextHandler=t,s.counter=0,s.done=!1,A(this,s);};return r.prototype=e?w:S,r;};},684(t){t.exports=function(t,e){var i="function"==typeof Iterator&&Iterator.prototype[t];if(i)try{i.call({next:null},e).next();}catch(t){return!0;}};},4549(t,e,i){var r=i(4576);t.exports=function(t,e){var i=r.Iterator,s=i&&i.prototype,n=s&&s[t],a=!1;if(n)try{n.call({next:function(){return{done:!0};},return:function(){a=!0;}},-1);}catch(t){t instanceof e||(a=!1);}if(!a)return n;};},7657(t,e,i){var r,s,n,a=i(9039),o=i(4901),l=i(34),h=i(2360),d=i(2787),c=i(6840),u=i(8227),p=i(6395),g=u("iterator"),m=!1;[].keys&&("next"in(n=[].keys())?(s=d(d(n)))!==Object.prototype&&(r=s):m=!0),!l(r)||a(function(){var t={};return r[g].call(t)!==t;})?r={}:p&&(r=h(r)),o(r[g])||c(r,g,function(){return this;}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m};},6269(t){t.exports=Object.create?Object.create(null):{};},6198(t,e,i){var r=i(8014);t.exports=function(t){return r(t.length);};},283(t,e,i){var r=i(9504),s=i(9039),n=i(4901),a=i(9297),o=i(3724),l=i(350).CONFIGURABLE,h=i(3706),d=i(1181),c=d.enforce,u=d.get,p=String,g=Object.defineProperty,m=r("".slice),f=r("".replace),b=r([].join),v=o&&!s(function(){return 8!==g(function(){},"length",{value:8}).length;}),y=String(String).split("String"),A=t.exports=function(t,e,i){"Symbol("===m(p(e),0,7)&&(e="["+f(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(o?g(t,"name",{value:e,configurable:!0}):t.name=e),v&&i&&a(i,"arity")&&t.length!==i.arity&&g(t,"length",{value:i.arity});try{i&&a(i,"constructor")&&i.constructor?o&&g(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var r=c(t);return a(r,"source")||(r.source=b(y,"string"==typeof e?e:"")),t;};Function.prototype.toString=A(function(){return n(this)&&u(this).source||h(this);},"toString");},2248(t,e,i){var r=i(9504),s=Map.prototype;t.exports={Map:Map,set:r(s.set),get:r(s.get),has:r(s.has),remove:r(s.delete),proto:s};},741(t){var e=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?i:e)(r);};},7819(t,e,i){t.exports=!i(9039)(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t;});},6043(t,e,i){var r=i(9306),s=TypeError,n=function(t){var e,i;this.promise=new t(function(t,r){if(void 0!==e||void 0!==i)throw new s("Bad Promise constructor");e=t,i=r;}),this.resolve=r(e),this.reject=r(i);};t.exports.f=function(t){return new n(t);};},2603(t,e,i){var r=i(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t);};},4149(t){var e=RangeError;t.exports=function(t){if(t==t)return t;throw new e("NaN is not allowed");};},2360(t,e,i){var r,s=i(8551),n=i(6801),a=i(8727),o=i(421),l=i(397),h=i(4055),d=i(6119),c="prototype",u="script",p=d("IE_PROTO"),g=function(){},m=function(t){return"<"+u+">"+t+"</"+u+">";},f=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e;},b=function(){var t,e=h("iframe");return e.style.display="none",l.appendChild(e),e.src=String("java"+u+":"),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F;},v=function(){try{r=new ActiveXObject("htmlfile");}catch(t){}v="u">typeof document?document.domain&&r?f(r):b():f(r);for(var t=a.length;t--;)delete v[c][a[t]];return v();};o[p]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(g[c]=s(t),i=new g(),g[c]=null,i[p]=t):i=v(),void 0===e?i:n.f(i,e);};},6801(t,e,i){var r=i(3724),s=i(8686),n=i(4913),a=i(8551),o=i(5397),l=i(1072);e.f=r&&!s?Object.defineProperties:function(t,e){a(t);for(var i,r=o(e),s=l(e),h=s.length,d=0;h>d;)n.f(t,i=s[d++],r[i]);return t;};},4913(t,e,i){var r=i(3724),s=i(5917),n=i(8686),a=i(8551),o=i(6969),l=TypeError,h=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c="enumerable",u="configurable",p="writable";e.f=r?n?function(t,e,i){if(a(t),e=o(e),a(i),"function"==typeof t&&"prototype"===e&&"value"in i&&p in i&&!i[p]){var r=d(t,e);r&&r[p]&&(t[e]=i.value,i={configurable:u in i?i[u]:r[u],enumerable:c in i?i[c]:r[c],writable:!1});}return h(t,e,i);}:h:function(t,e,i){if(a(t),e=o(e),a(i),s)try{return h(t,e,i);}catch(t){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(t[e]=i.value),t;};},7347(t,e,i){var r=i(3724),s=i(9565),n=i(8773),a=i(6980),o=i(5397),l=i(6969),h=i(9297),d=i(5917),c=Object.getOwnPropertyDescriptor;e.f=r?c:function(t,e){if(t=o(t),e=l(e),d)try{return c(t,e);}catch(t){}if(h(t,e))return a(!s(n.f,t,e),t[e]);};},8480(t,e,i){var r=i(1828),s=i(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,s);};},3717(t,e){e.f=Object.getOwnPropertySymbols;},2787(t,e,i){var r=i(9297),s=i(4901),n=i(8981),a=i(6119),o=i(2211),l=a("IE_PROTO"),h=Object,d=h.prototype;t.exports=o?h.getPrototypeOf:function(t){var e=n(t);if(r(e,l))return e[l];var i=e.constructor;return s(i)&&e instanceof i?i.prototype:e instanceof h?d:null;};},1625(t,e,i){t.exports=i(9504)({}.isPrototypeOf);},1828(t,e,i){var r=i(9504),s=i(9297),n=i(5397),a=i(9617).indexOf,o=i(421),l=r([].push);t.exports=function(t,e){var i,r=n(t),h=0,d=[];for(i in r)!s(o,i)&&s(r,i)&&l(d,i);for(;e.length>h;)s(r,i=e[h++])&&(~a(d,i)||l(d,i));return d;};},1072(t,e,i){var r=i(1828),s=i(8727);t.exports=Object.keys||function(t){return r(t,s);};},8773(t,e){var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor;e.f=r&&!i.call({1:2},1)?function(t){var e=r(this,t);return!!e&&e.enumerable;}:i;},2967(t,e,i){var r=i(6706),s=i(34),n=i(7750),a=i(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=r(Object.prototype,"__proto__","set"))(i,[]),e=i instanceof Array;}catch(t){}return function(i,r){return n(i),a(r),s(i)&&(e?t(i,r):i.__proto__=r),i;};}():void 0);},4270(t,e,i){var r=i(9565),s=i(4901),n=i(34),a=TypeError;t.exports=function(t,e){var i,o;if("string"===e&&s(i=t.toString)&&!n(o=r(i,t))||s(i=t.valueOf)&&!n(o=r(i,t))||"string"!==e&&s(i=t.toString)&&!n(o=r(i,t)))return o;throw new a("Can't convert object to primitive value");};},5031(t,e,i){var r=i(7751),s=i(9504),n=i(8480),a=i(3717),o=i(8551),l=s([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=n.f(o(t)),i=a.f;return i?l(e,i(t)):e;};},8235(t,e,i){var r=i(9504),s=i(9297),n=SyntaxError,a=parseInt,o=String.fromCharCode,l=r("".charAt),h=r("".slice),d=r(/./.exec),c={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":" "},u=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;t.exports=function(t,e){for(var i=!0,r="";e<t.length;){var g=l(t,e);if("\\"===g){var m=h(t,e,e+2);if(s(c,m))r+=c[m],e+=2;else if("\\u"===m){var f=h(t,e+=2,e+4);if(!d(u,f))throw new n("Bad Unicode escape at: "+e);r+=o(a(f,16)),e+=4;}else throw new n('Unknown escape sequence: "'+m+'"');}else if('"'===g){i=!1,e++;break;}else{if(d(p,g))throw new n("Bad control character in string literal at: "+e);r+=g,e++;}}if(i)throw new n("Unterminated string at: "+e);return{value:r,end:e};};},1103(t){t.exports=function(t){try{return{error:!1,value:t()};}catch(t){return{error:!0,value:t};}};},3438(t,e,i){var r=i(8551),s=i(34),n=i(6043);t.exports=function(t,e){if(r(t),s(e)&&e.constructor===t)return e;var i=n.f(t);return(0,i.resolve)(e),i.promise;};},7750(t,e,i){var r=i(4117),s=TypeError;t.exports=function(t){if(r(t))throw new s("Can't call method on "+t);return t;};},9286(t,e,i){var r=i(4402),s=i(8469),n=r.Set,a=r.add;t.exports=function(t){var e=new n();return s(t,function(t){a(e,t);}),e;};},3440(t,e,i){var r=i(7080),s=i(4402),n=i(9286),a=i(5170),o=i(3789),l=i(8469),h=i(507),d=s.has,c=s.remove;t.exports=function(t){var e=r(this),i=o(t),s=n(e);return a(s)<=i.size?l(s,function(t){i.includes(t)&&c(s,t);}):h(i.getIterator(),function(t){d(s,t)&&c(s,t);}),s;};},4402(t,e,i){var r=i(9504),s=Set.prototype;t.exports={Set:Set,add:r(s.add),has:r(s.has),remove:r(s.delete),proto:s};},8750(t,e,i){var r=i(7080),s=i(4402),n=i(5170),a=i(3789),o=i(8469),l=i(507),h=s.Set,d=s.add,c=s.has;t.exports=function(t){var e=r(this),i=a(t),s=new h();return n(e)>i.size?l(i.getIterator(),function(t){c(e,t)&&d(s,t);}):o(e,function(t){i.includes(t)&&d(s,t);}),s;};},4449(t,e,i){var r=i(7080),s=i(4402).has,n=i(5170),a=i(3789),o=i(8469),l=i(507),h=i(9539);t.exports=function(t){var e=r(this),i=a(t);if(n(e)<=i.size)return!1!==o(e,function(t){if(i.includes(t))return!1;},!0);var d=i.getIterator();return!1!==l(d,function(t){if(s(e,t))return h(d.iterator,"normal",!1);});};},3838(t,e,i){var r=i(7080),s=i(5170),n=i(8469),a=i(3789);t.exports=function(t){var e=r(this),i=a(t);return!(s(e)>i.size)&&!1!==n(e,function(t){if(!i.includes(t))return!1;},!0);};},8527(t,e,i){var r=i(7080),s=i(4402).has,n=i(5170),a=i(3789),o=i(507),l=i(9539);t.exports=function(t){var e=r(this),i=a(t);if(n(e)<i.size)return!1;var h=i.getIterator();return!1!==o(h,function(t){if(!s(e,t))return l(h.iterator,"normal",!1);});};},8469(t,e,i){var r=i(9504),s=i(507),n=i(4402),a=n.Set,o=n.proto,l=r(o.forEach),h=r(o.keys),d=h(new a()).next;t.exports=function(t,e,i){return i?s({iterator:h(t),next:d},e):l(t,e);};},4916(t,e,i){var r=i(7751),s=function(t){return{size:t,has:function(){return!1;},keys:function(){return{next:function(){return{done:!0};}};}};},n=function(t){return{size:t,has:function(){return!0;},keys:function(){throw Error("e");}};};t.exports=function(t,e){var i=r("Set");try{new i()[t](s(0));try{return new i()[t](s(-1)),!1;}catch(r){if(!e)return!0;try{return new i()[t](n(-1/0)),!1;}catch(r){var a=new i([1,2]);return e(a[t](n(1/0)));}}}catch(t){return!1;}};},9835(t){t.exports=function(t){try{var e=new Set(),i=e[t]({size:0,has:function(){return!0;},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0};};}});}});return 1===i.size&&4===i.values().next().value;}catch(t){return!1;}};},5170(t,e,i){t.exports=i(6706)(i(4402).proto,"size","get")||function(t){return t.size;};},3650(t,e,i){var r=i(7080),s=i(4402),n=i(9286),a=i(3789),o=i(507),l=s.add,h=s.has,d=s.remove;t.exports=function(t){var e=r(this),i=a(t).getIterator(),s=n(e);return o(i,function(t){h(e,t)?d(s,t):l(s,t);}),s;};},4204(t,e,i){var r=i(7080),s=i(4402).add,n=i(9286),a=i(3789),o=i(507);t.exports=function(t){var e=r(this),i=a(t).getIterator(),l=n(e);return o(i,function(t){s(l,t);}),l;};},6119(t,e,i){var r=i(5745),s=i(3392),n=r("keys");t.exports=function(t){return n[t]||(n[t]=s(t));};},7629(t,e,i){var r=i(6395),s=i(4576),n=i(9433),a="__core-js_shared__",o=t.exports=s[a]||n(a,{});(o.versions||(o.versions=[])).push({version:"3.50.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"});},5745(t,e,i){var r=i(7629),s=Object.create||Object;t.exports=function(t,e){return r[t]||(r[t]=e||s(null));};},4495(t,e,i){var r=i(9519),s=i(9039),n=i(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!s(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41;});},1240(t,e,i){t.exports=i(9504)(1.1.valueOf);},5610(t,e,i){var r=i(1291),s=Math.max,n=Math.min;t.exports=function(t,e){var i=r(t);return i<0?s(i+e,0):n(i,e);};},5854(t,e,i){var r=i(2777),s=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw new s("Can't convert number to bigint");return BigInt(e);};},5397(t,e,i){var r=i(7055),s=i(7750);t.exports=function(t){return r(s(t));};},1291(t,e,i){var r=i(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e);};},8014(t,e,i){var r=i(1291),s=Math.min;t.exports=function(t){var e=r(t);return e>0?s(e,0x1fffffffffffff):0;};},8981(t,e,i){var r=i(7750),s=Object;t.exports=function(t){return s(r(t));};},9590(t,e,i){var r=i(1291),s=RangeError;t.exports=function(t){var e=r(t);if(e<0)throw new s("The argument can't be less than 0");return e;};},2777(t,e,i){var r=i(9565),s=i(34),n=i(757),a=i(5966),o=i(4270),l=i(8227),h=TypeError,d=l("toPrimitive");t.exports=function(t,e){if(!s(t)||n(t))return t;var i,l=a(t,d);if(l){if(void 0===e&&(e="default"),!s(i=r(l,t,e))||n(i))return i;throw new h("Can't convert object to primitive value");}return void 0===e&&(e="number"),o(t,e);};},6969(t,e,i){var r=i(2777),s=i(757);t.exports=function(t){var e=r(t,"string");return s(e)?e:e+"";};},2140(t,e,i){var r=i(8227)("toStringTag"),s={};s[r]="z",t.exports="[object z]"===String(s);},655(t,e,i){var r=i(6955),s=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return s(t);};},6823(t){var e=String;t.exports=function(t){try{return e(t);}catch(t){return"Object";}};},3392(t,e,i){var r=i(9504),s=0,n=Math.random(),a=r(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++s+n,36);};},9143(t,e,i){var r=i(4576),s=i(9504),n=i(3972),a=i(3463),o=i(9297),l=i(2804),h=i(944),d=i(5169),c=l.c2i,u=l.c2iUrl,p=r.SyntaxError,g=r.TypeError,m=r.Array,f=s("".charAt),b=Math.floor,v=function(t,e){for(var i=t.length;e<i;e++){var r=f(t,e);if(" "!==r&&" "!==r&&"\n"!==r&&"\f"!==r&&"\r"!==r)break;}return e;},y=function(t,e,i){var r=t.length;r<4&&(t+=2===r?"AA":"A");var s=(e[f(t,0)]<<18)+(e[f(t,1)]<<12)+(e[f(t,2)]<<6)+e[f(t,3)],n=[s>>16&255,s>>8&255,255&s];if(2===r){if(i&&0!==n[1])throw new p("Extra bits");return[n[0]];}if(3===r){if(i&&0!==n[2])throw new p("Extra bits");return[n[0],n[1]];}return n;},A=function(t,e,i){for(var r=e.length,s=0;s<r;s++)t[i+s]=e[s];return i+r;};t.exports=function(t,e,i,r){a(t),n(e);var s="base64"===h(e)?c:u,l=e?e.lastChunkHandling:void 0;if(void 0===l&&(l="loose"),"loose"!==l&&"strict"!==l&&"stop-before-partial"!==l)throw new g("Incorrect `lastChunkHandling` option");i&&d(i.buffer);var x=t.length,w=i||m(b(3*x/4)),S=0,C=0,E="",_=0;if(r)for(;;){if((_=v(t,_))===x){if(E.length>0){if("stop-before-partial"===l)break;if("loose"===l){if(1===E.length)throw new p("Malformed padding: exactly one additional character");S=A(w,y(E,s,!1),S);}else throw new p("Missing padding");}C=x;break;}var T=f(t,_);if(++_,"="===T){if(E.length<2)throw new p("Padding is too early");if(_=v(t,_),2===E.length){if(_===x){if("stop-before-partial"===l)break;throw new p("Malformed padding: only one =");}"="===f(t,_)&&(_=v(t,++_));}if(_<x)throw new p("Unexpected character after padding");S=A(w,y(E,s,"strict"===l),S),C=x;break;}if(!o(s,T))throw new p("Unexpected character");var k=r-S;if(1===k&&2===E.length||2===k&&3===E.length||4===(E+=T).length&&(S=A(w,y(E,s,!1),S),E="",C=_,S===r))break;}return i||(w.length=S),{bytes:w,read:C,written:S};};},2303(t,e,i){var r=i(4576),s=i(9504),n=r.Uint8Array,a=r.SyntaxError,o=Math.min,l=s("".match);t.exports=function(t,e){var i=t.length;if(i%2!=0)throw new a("String should be an even number of characters");for(var r=e?o(e.length,i/2):i/2,s=e||new n(r),h=l(t,/[\S\s]{2}/g),d=0;d<r;d++){var c=+("0x"+h[d]+"0");if(c!=c)throw new a("String should only contain hex characters");s[d]=c>>4;}return{bytes:s,read:d<<1};};},7416(t,e,i){var r=i(9039),s=i(8227),n=i(3724),a=i(6395),o=s("iterator");t.exports=!r(function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,i=new URLSearchParams("a=1&a=2&b=3"),r="";return t.pathname="c%20d",e.forEach(function(t,i){e.delete("b"),r+=i+t;}),i.delete("a",2),i.delete("b",void 0),a&&(!t.toJSON||!i.has("a",1)||i.has("a",2)||!i.has("a",void 0)||i.has("b"))||!e.size&&(a||!n)||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host;});},7040(t,e,i){t.exports=i(4495)&&!Symbol.sham&&"symbol"==typeof Symbol.iterator;},8686(t,e,i){var r=i(3724),s=i(9039);t.exports=r&&s(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype;});},2812(t){var e=TypeError;t.exports=function(t,i){if(t<i)throw new e("Not enough arguments");return t;};},8622(t,e,i){var r=i(4576),s=i(4901),n=r.WeakMap;t.exports=s(n)&&/native code/.test(String(n));},4995(t,e,i){var r=i(9504),s=WeakMap.prototype;t.exports={WeakMap:WeakMap,set:r(s.set),get:r(s.get),has:r(s.has),remove:r(s.delete)};},8227(t,e,i){var r=i(4576),s=i(5745),n=i(9297),a=i(3392),o=i(4495),l=i(7040),h=r.Symbol,d=s("wks"),c=l?h.for||h:h&&h.withoutSetter||a;t.exports=function(t){return n(d,t)||(d[t]=o&&n(h,t)?h[t]:c("Symbol."+t)),d[t];};},4423(t,e,i){var r=i(6518),s=i(9617).includes,n=i(9039),a=i(6469),o=n(function(){return![,].includes();}),l=n(function(){return[,1].includes(void 0,1);});r({target:"Array",proto:!0,forced:o||l},{includes:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0);}}),a("includes");},4114(t,e,i){var r=i(6518),s=i(8981),n=i(6198),a=i(4527),o=i(6837);r({target:"Array",proto:!0,arity:1,forced:i(9039)(function(){return 0x100000001!==[].push.call({length:0x100000000},1);})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push();}catch(t){return t instanceof TypeError;}}()},{push:function(t){var e=s(this),i=n(e),r=arguments.length;o(i+r);for(var l=0;l<r;l++)e[i]=arguments[l],i++;return a(e,i),i;}});},8111(t,e,i){var r=i(6518),s=i(4576),n=i(679),a=i(8551),o=i(4901),l=i(2787),h=i(2106),d=i(4659),c=i(9039),u=i(9297),p=i(8227),g=i(7657).IteratorPrototype,m=i(3724),f=i(6395),b="constructor",v="Iterator",y=p("toStringTag"),A=TypeError,x=s[v],w=f||!o(x)||x.prototype!==g||!c(function(){x({});}),S=function(){if(n(this,g),l(this)===g)throw new A("Abstract class Iterator not directly constructable");},C=function(t,e){m?h(g,t,{configurable:!0,get:function(){return e;},set:function(e){if(a(this),this===g)throw new A("You can't redefine this property");u(this,t)?this[t]=e:d(this,t,e);}}):g[t]=e;};u(g,y)||C(y,v),(w||!u(g,b)||g[b]===Object)&&C(b,S),S.prototype=g,r({global:!0,constructor:!0,forced:w},{Iterator:S});},9314(t,e,i){var r=i(6518),s=i(9565),n=i(8551),a=i(1767),o=i(4149),l=i(9590),h=i(9539),d=i(9462),c=i(684),u=i(4549),p=i(6395),g=RangeError,m=!p&&!c("drop",0),f=!p&&!m&&u("drop",RangeError),b=p||m||f||!function(){try{Iterator.prototype.drop.call({next:function(){return{done:!0};}},0x20000000000000);}catch(t){return t instanceof g;}}(),v=d(function(){for(var t,e,i=this.iterator,r=this.next;this.remaining;)if(this.remaining--,t=n(s(r,i)),this.done=!!t.done)return;if(t=n(s(r,i)),!(this.done=!!t.done))return t.value;});r({target:"Iterator",proto:!0,real:!0,forced:b},{drop:function(t){var e;n(this);try{if((e=l(o(+t)))>0x1fffffffffffff&&1/0!==e)throw new g("The argument should be a safe integer");}catch(t){h(this,"throw",t);}return f?s(f,this,e):new v(a(this),{remaining:e});}});},1148(t,e,i){var r=i(6518),s=i(9565),n=i(2652),a=i(9306),o=i(8551),l=i(1767),h=i(9539),d=i(4549)("every",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{every:function(t){o(this);try{a(t);}catch(t){h(this,"throw",t);}if(d)return s(d,this,t);var e=l(this),i=0;return!n(e,function(e,r){if(!t(e,i++))return r();},{IS_RECORD:!0,INTERRUPTED:!0}).stopped;}});},2489(t,e,i){var r=i(6518),s=i(9565),n=i(9306),a=i(8551),o=i(1767),l=i(9462),h=i(6319),d=i(6395),c=i(9539),u=i(684),p=i(4549),g=!d&&!u("filter",function(){}),m=!d&&!g&&p("filter",TypeError),f=d||g||m,b=l(function(){for(var t,e,i=this.iterator,r=this.predicate,n=this.next;;){if(t=a(s(n,i)),this.done=!!t.done)return;if(h(i,r,[e=t.value,this.counter++],!0))return e;}});r({target:"Iterator",proto:!0,real:!0,forced:f},{filter:function(t){a(this);try{n(t);}catch(t){c(this,"throw",t);}return m?s(m,this,t):new b(o(this),{predicate:t});}});},116(t,e,i){var r=i(6518),s=i(9565),n=i(2652),a=i(9306),o=i(8551),l=i(1767),h=i(9539),d=i(4549)("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{find:function(t){o(this);try{a(t);}catch(t){h(this,"throw",t);}if(d)return s(d,this,t);var e=l(this),i=0;return n(e,function(e,r){if(t(e,i++))return r(e);},{IS_RECORD:!0,INTERRUPTED:!0}).result;}});},531(t,e,i){var r=i(6518),s=i(9565),n=i(9306),a=i(8551),o=i(1767),l=i(8646),h=i(9462),d=i(9539),c=i(9039),u=i(6395),p=i(684),g=i(4549),m=!u&&c(function(){return 1!==[1].values().flatMap(function(){return[1];}).find(function(){return!0;});}),f=!u&&!m&&!p("flatMap",function(){}),b=!u&&!m&&!f&&g("flatMap",TypeError),v=u||m||f||b,y=h(function(){for(var t,e,i=this.iterator,r=this.mapper;;){if(e=this.inner)try{if(!(t=a(s(e.next,e.iterator))).done)return t.value;this.inner=null;}catch(t){d(i,"throw",t);}if(t=a(s(this.next,i)),this.done=!!t.done)return;try{this.inner=l(r(t.value,this.counter++),!1);}catch(t){d(i,"throw",t);}}});r({target:"Iterator",proto:!0,real:!0,forced:v},{flatMap:function(t){a(this);try{n(t);}catch(t){d(this,"throw",t);}return b?s(b,this,t):new y(o(this),{mapper:t,inner:null});}});},7588(t,e,i){var r=i(6518),s=i(9565),n=i(2652),a=i(9306),o=i(8551),l=i(1767),h=i(9539),d=i(4549)("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{forEach:function(t){o(this);try{a(t);}catch(t){h(this,"throw",t);}if(d)return s(d,this,t);var e=l(this),i=0;n(e,function(e){t(e,i++);},{IS_RECORD:!0});}});},1701(t,e,i){var r=i(6518),s=i(9565),n=i(9306),a=i(8551),o=i(1767),l=i(9462),h=i(6319),d=i(9539),c=i(684),u=i(4549),p=i(6395),g=!p&&!c("map",function(){}),m=!p&&!g&&u("map",TypeError),f=p||g||m,b=l(function(){var t=this.iterator,e=a(s(this.next,t));if(!(this.done=!!e.done))return h(t,this.mapper,[e.value,this.counter++],!0);});r({target:"Iterator",proto:!0,real:!0,forced:f},{map:function(t){a(this);try{n(t);}catch(t){d(this,"throw",t);}return m?s(m,this,t):new b(o(this),{mapper:t});}});},3579(t,e,i){var r=i(6518),s=i(9565),n=i(2652),a=i(9306),o=i(8551),l=i(1767),h=i(9539),d=i(4549)("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{some:function(t){o(this);try{a(t);}catch(t){h(this,"throw",t);}if(d)return s(d,this,t);var e=l(this),i=0;return n(e,function(e,r){if(t(e,i++))return r();},{IS_RECORD:!0,INTERRUPTED:!0}).stopped;}});},4972(t,e,i){var r=i(6518),s=i(9565),n=i(8551),a=i(1767),o=i(4149),l=i(9590),h=i(9462),d=i(9539),c=i(684),u=i(4549),p=i(6395),g=RangeError,m=!p&&!c("take",1),f=!p&&!m&&u("take",RangeError),b=p||m||f||!function(){try{Iterator.prototype.take.call({next:function(){return{done:!0};}},0x20000000000000);}catch(t){return t instanceof g;}}(),v=h(function(){var t=this.iterator;if(!this.remaining--)return this.done=!0,d(t,"normal",void 0);var e=n(s(this.next,t));if(!(this.done=!!e.done))return e.value;});r({target:"Iterator",proto:!0,real:!0,forced:b},{take:function(t){var e;n(this);try{if((e=l(o(+t)))>0x1fffffffffffff&&1/0!==e)throw new g("The argument should be a safe integer");}catch(t){d(this,"throw",t);}return f?s(f,this,e):new v(a(this),{remaining:e});}});},1806(t,e,i){var r=i(6518),s=i(8551),n=i(4659),a=i(2652),o=i(1767);r({target:"Iterator",proto:!0,real:!0},{toArray:function(){var t=[],e=0;return a(o(s(this)),function(i){n(t,e++,i);},{IS_RECORD:!0}),t;}});},9112(t,e,i){var r=i(6518),s=i(3724),n=i(4576),a=i(7751),o=i(9504),l=i(9565),h=i(4901),d=i(34),c=i(4376),u=i(9297),p=i(655),g=i(6198),m=i(4659),f=i(9039),b=i(8235),v=i(4495),y=n.JSON,A=n.Number,x=n.SyntaxError,w=y&&y.parse,S=a("Object","keys"),C=Object.getOwnPropertyDescriptor,E=o("".charAt),_=o("".slice),T=o(/./.exec),k=o([].push),M=/^\d$/,P=/^[1-9]$/,D=/^[\d-]$/,I=/^[\t\n\r ]$/,R=function(t,e){var i=new L(t=p(t),0),r=i.parse(),s=r.value,n=i.skip(I,r.end);if(n<t.length)throw new x('Unexpected extra character: "'+E(t,n)+'" after the parsed data at: '+n);return h(e)?F({"":s},"",e,r):s;},F=function(t,e,i,r){var s,n,a,o,h,p=t[e],m=r&&p===r.value,f=m&&"string"==typeof r.source?{source:r.source}:{};if(d(p)){var b=c(p),v=m?r.nodes:b?[]:{};if(b)for(s=v.length,a=g(p),o=0;o<a;o++)O(p,o,F(p,""+o,i,o<s?v[o]:void 0));else for(a=g(n=S(p)),o=0;o<a;o++)O(p,h=n[o],F(p,h,i,u(v,h)?v[h]:void 0));}return l(i,t,e,p,f);},O=function(t,e,i){if(s){var r=C(t,e);if(r&&!r.configurable)return;}void 0===i?delete t[e]:m(t,e,i);},B=function(t,e,i,r){this.value=t,this.end=e,this.source=i,this.nodes=r;},L=function(t,e){this.source=t,this.index=e;};L.prototype={fork:function(t){return new L(this.source,t);},parse:function(){var t=this.source,e=this.skip(I,this.index),i=this.fork(e),r=E(t,e);if(T(D,r))return i.number();switch(r){case"{":return i.object();case"[":return i.array();case'"':return i.string();case"t":return i.keyword(!0);case"f":return i.keyword(!1);case"n":return i.keyword(null);}throw new x('Unexpected character: "'+r+'" at: '+e);},node:function(t,e,i,r,s){return new B(e,r,t?null:_(this.source,i,r),s);},object:function(){for(var t=this.source,e=this.index+1,i=!1,r={},s={},n=!1;e<t.length;){if("}"===E(t,e=this.until(['"',"}"],e))&&!i){e++,n=!0;break;}var a=this.fork(e).string(),o=a.value;e=a.end,e=this.until([":"],e)+1,e=this.skip(I,e),m(s,o,a=this.fork(e).parse()),m(r,o,a.value);var l=E(t,e=this.until([",","}"],a.end));if(","===l)i=!0,e++;else if("}"===l){e++,n=!0;break;}}if(!n)throw new x("Unterminated object at: "+e);return this.node(1,r,this.index,e,s);},array:function(){for(var t=this.source,e=this.index+1,i=!1,r=[],s=[],n=!1;e<t.length;){if("]"===E(t,e=this.skip(I,e))&&!i){e++,n=!0;break;}var a=this.fork(e).parse();if(k(s,a),k(r,a.value),","===E(t,e=this.until([",","]"],a.end)))i=!0,e++;else if("]"===E(t,e)){e++,n=!0;break;}}if(!n)throw new x("Unterminated array at: "+e);return this.node(1,r,this.index,e,s);},string:function(){var t=this.index,e=b(this.source,this.index+1);return this.node(0,e.value,t,e.end);},number:function(){var t=this.source,e=this.index,i=e;if("-"===E(t,i)&&i++,"0"===E(t,i))i++;else if(T(P,E(t,i)))i=this.skip(M,i+1);else throw new x("Failed to parse number at: "+i);if("."===E(t,i)){var r=i+1;if(i=this.skip(M,r),r===i)throw new x("Failed to parse number's fraction at: "+i);}if(("e"===E(t,i)||"E"===E(t,i))&&(("+"===E(t,++i)||"-"===E(t,i))&&i++,i===(i=this.skip(M,i))))throw new x("Failed to parse number's exponent value at: "+i);return this.node(0,A(_(t,e,i)),e,i);},keyword:function(t){var e=""+t,i=this.index,r=i+e.length;if(_(this.source,i,r)!==e)throw new x("Failed to parse value at: "+i);return this.node(0,t,i,r);},skip:function(t,e){for(var i=this.source;e<i.length&&T(t,E(i,e));e++);return e;},until:function(t,e){e=this.skip(I,e);for(var i=E(this.source,e),r=0;r<t.length;r++)if(t[r]===i)return e;throw new x('Unexpected character: "'+i+'" at: '+e);}};var N=f(function(){var t,e="9007199254740993";return w(e,function(e,i,r){t=r.source;}),t!==e;}),U=v&&!f(function(){return 1/w("-0 ")!=-1/0;});r({target:"JSON",stat:!0,forced:N},{parse:function(t,e){return U&&!h(e)?w(t):R(t,e);}});},3110(t,e,i){var r=i(6518),s=i(7751),n=i(9565),a=i(9504),o=i(9039),l=i(4376),h=i(4901),d=i(34),c=i(2360),u=i(5810),p=i(757),g=i(2195),m=i(1240),f=i(9617).includes,b=i(9297),v=i(655),y=i(8235),A=i(3392),x=i(4495),w=i(7819),S=String,C=TypeError,E=s("JSON","stringify"),_=s("BigInt"),T=a("".valueOf),k=a((!0).valueOf),M=_&&a(_.prototype.valueOf),P=a(/./.exec),D=a("".charAt),I=a("".charCodeAt),R=a("".replace),F=a("".slice),O=a([].push),B=a([].pop),L=a(1.1.toString),N=/[\uD800-\uDFFF]/g,U=/^[\uD800-\uDBFF]$/,z=/^[\uDC00-\uDFFF]$/,G=/^\d+$/,j=A(),H=A(),$=A(),V=j.length,W=H.length,K=!x||o(function(){var t=s("Symbol")("stringify detection");return"[null]"!==E([t])||"{}"!==E({a:t})||"{}"!==E(Object(t));}),X=o(function(){return'"\\udf06\\ud834"'!==E("\uDF06\uD834")||'"\\udead"'!==E("\uDEAD");}),Y=w?s("JSON","isRawJSON"):u,q=K?function(t,e,i){return E(t,function(t,i){var r=n(e,this,t,i);if(!p(r))return r;},i);}:E,J=function(t,e,i){var r=D(i,e-1),s=D(i,e+1);return P(U,t)&&!P(z,s)||P(z,t)&&!P(U,r)?"\\u"+L(I(t,0),16):t;},Q=function(t){if(l(t)){for(var e=t.length,i=[],r=c(null),s=0;s<e;s++){var n,a=t[s];if("string"==typeof a)n=a;else{if("number"!=typeof a&&"Number"!==g(a)&&"String"!==g(a))continue;n=v(a);}b(r,n)||(r[n]=!0,O(i,n));}return i;}},Z=function(t,e){try{return t(e),!0;}catch(t){return!1;}},tt=function(t){var e=g(t);return"Number"===e&&Z(m,t)||"String"===e&&Z(T,t)||"Boolean"===e&&Z(k,t)||!!M&&"BigInt"===e&&Z(M,t);},te=function(t){if(!d(t)||h(t)||l(t))return!1;try{return!tt(t);}catch(t){return!0;}},ti=function(t,e){return{toJSON:function(){var i=t[e];if(d(i)||"bigint"==typeof i){var r=i.toJSON;h(r)&&(i=n(r,i,e));}return i;}};},tr=function(t){for(var e=0,i=t.length;e<i;e++)if(P(G,t[e]))return H;return"";},ts=function(t,e,i){for(var r=c(null),s=0,n=e.length;s<n;s++){var a=e[s];r[i+a]=ti(t,a);}return r[$]=null,r;};E&&r({target:"JSON",stat:!0,arity:3,forced:K||X||!w},{stringify:function(t,e,i){var r,s=h(e)?e:void 0,a=s?void 0:Q(e),o=a&&tr(a),d=[],c=[],u=[],p=!1,g=!0,m=q(t,function(t,e){if(t=S(t),a){if(t===$){B(c),r=B(u);return;}if(g)g=!1;else if(this!==r&&!l(this)&&!f(a,t))return;}else s&&(e=n(s,this,t,e));if(Y(e))return w?e:(p=!0,j+(O(d,e.rawJSON)-1));if(a&&te(e)){if(f(c,e))throw new C("Converting circular structure to JSON");var i=ts(e,a,o);return O(c,e),O(u,r),r=i,o&&(p=!0),i;}return e;},i);if("string"!=typeof m||(X&&(m=R(m,N,J)),!p))return m;for(var b="",v=m.length,A=0;A<v;A++){var x=D(m,A);if('"'===x){var E=y(m,++A).end-1,_=F(m,A,E);F(_,0,V)===j?b+=d[F(_,V)]:F(_,0,W)===H?b+='"'+F(_,W)+'"':b+='"'+_+'"',A=E;}else b+=x;}return b;}});},2731(t,e,i){var r=i(6518),s=i(9306),n=i(2248),a=i(6395),o=n.get,l=n.has,h=n.set;r({target:"Map",proto:!0,real:!0,forced:a},{getOrInsertComputed:function(t,e){var i=l(this,t);if(s(e),i)return o(this,t);0===t&&1/t==-1/0&&(t=0);var r=e(t);return h(this,t,r),r;}});},5367(t,e,i){var r=i(6518),s=i(2248),n=i(6395),a=s.get,o=s.has,l=s.set;r({target:"Map",proto:!0,real:!0,forced:n},{getOrInsert:function(t,e){return o(this,t)?a(this,t):(l(this,t,e),e);}});},3068(t,e,i){var r=i(6518),s=i(9504),n=i(2652),a=RangeError,o=TypeError,l=Math.abs,h=Math.pow,d=s([].push),c=h(2,1023),u=h(2,53)-1,p=Number.MAX_VALUE,g=h(2,971),m={},f={},b={},v={},y={},A=function(t,e){var i=t+e;return{hi:i,lo:e-(i-t)};};r({target:"Math",stat:!0},{sumPrecise:function(t){var e,i,r,s,h,x,w=[],S=0,C=v;switch(n(t,function(t){if(++S>u)throw new a("Maximum allowed index exceeded");if("number"!=typeof t)throw new o("Value is not a number");C!==m&&(t!=t?C=m:1/0===t?C=C===f?m:b:-1/0===t?C=C===b?m:f:(0!==t||1/t==1/0)&&(C===v||C===y)&&(C=y,d(w,t)));}),C){case m:return 0/0;case f:return-1/0;case b:return 1/0;case v:return-0;}for(var E=[],_=0,T=0;T<w.length;T++){e=w[T];for(var k=0,M=0;M<E.length;M++){if(i=E[M],l(e)<l(i)&&(x=e,e=i,i=x),s=(r=A(e,i)).hi,h=r.lo,1/0===l(s)){var P=1/0===s?1:-1;_+=P,l(e=e-P*c-P*c)<l(i)&&(x=e,e=i,i=x),s=(r=A(e,i)).hi,h=r.lo;}0!==h&&(E[k++]=h),e=s;}E.length=k,0!==e&&d(E,e);}var D=E.length-1;if(s=0,h=0,0!==_){var I=D>=0?E[D]:0;if(D--,l(_)>1||_>0&&I>0||_<0&&I<0)return _>0?1/0:-1/0;if(s=(r=A(_*c,I/2)).hi,h=2*r.lo,1/0===l(2*s))return s>0?s===c&&h===-(g/2)&&D>=0&&E[D]<0?p:1/0:s===-c&&h===g/2&&D>=0&&E[D]>0?-p:-1/0;0!==h&&(E[++D]=h,h=0),s*=2;}for(;D>=0&&(s=(r=A(s,E[D--])).hi,0===(h=r.lo)););return D>=0&&(h<0&&E[D]<0||h>0&&E[D]>0)&&(e=s+(i=2*h),i===e-s&&(s=e)),s;}});},1689(t,e,i){var r=i(6518),s=i(4576),n=i(8745),a=i(7680),o=i(3438),l=i(6043),h=i(9306),d=i(1103),c=i(9039),u=s.Promise,p=!1;r({target:"Promise",stat:!0,forced:!u||!u.try||c(function(){var t=u.resolve();return u.try(function(e){return p=8===e,t;},8)!==t;})||!p},{try:function(t){var e=arguments.length>1?a(arguments,1):[],i=d(function(){return n(h(t),void 0,e);});if(!i.error)return o(this,i.value);var r=l.f(this);return(0,r.reject)(i.value),r.promise;}});},7642(t,e,i){var r=i(6518),s=i(3440),n=i(9039);r({target:"Set",proto:!0,real:!0,forced:!i(4916)("difference",function(t){return 0===t.size;})||n(function(){var t=new Set([1,2,3,4]);return 3!==t.difference({size:1,has:function(){return!0;},keys:function(){var e=0;return{next:function(){var i=e++>1;return t.has(1)&&t.clear(),{done:i,value:2};}};}}).size;})},{difference:s});},8004(t,e,i){var r=i(6518),s=i(9039),n=i(8750);r({target:"Set",proto:!0,real:!0,forced:!i(4916)("intersection",function(t){return 2===t.size&&t.has(1)&&t.has(2);})||s(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))));})},{intersection:n});},3853(t,e,i){var r=i(6518),s=i(4449);r({target:"Set",proto:!0,real:!0,forced:!i(4916)("isDisjointFrom",function(t){return!t;})},{isDisjointFrom:s});},5876(t,e,i){var r=i(6518),s=i(3838);r({target:"Set",proto:!0,real:!0,forced:!i(4916)("isSubsetOf",function(t){return t;})},{isSubsetOf:s});},2475(t,e,i){var r=i(6518),s=i(8527);r({target:"Set",proto:!0,real:!0,forced:!i(4916)("isSupersetOf",function(t){return!t;})},{isSupersetOf:s});},5024(t,e,i){var r=i(6518),s=i(3650),n=i(9835);r({target:"Set",proto:!0,real:!0,forced:!i(4916)("symmetricDifference")||!n("symmetricDifference")},{symmetricDifference:s});},1698(t,e,i){var r=i(6518),s=i(4204),n=i(9835);r({target:"Set",proto:!0,real:!0,forced:!i(4916)("union")||!n("union")},{union:s});},9577(t,e,i){var r=i(4644),s=i(1108),n=i(6198),a=i(1291),o=i(5854),l=r.aTypedArray,h=r.getTypedArrayConstructor,d=r.exportTypedArrayMethod,c=RangeError,u=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8;}});}catch(t){return 8===t;}}(),p=u&&function(){try{new Int8Array(1).with(-.5,1);}catch(t){return!0;}}();d("with",{with:function(t,e){var i=l(this),r=n(i),d=a(t),u=d<0?r+d:d,p=s(i)?o(e):+e;if(u>=r||u<0)throw new c("Incorrect index");for(var g=new(h(i))(r),m=0;m<r;m++)g[m]=m===u?p:i[m];return g;}}.with,!u||p);},5213(t,e,i){var r=i(6518),s=i(4576),n=i(5370),a=i(9143),o=s.Uint8Array,l=!o||!o.fromBase64||!function(){try{o.fromBase64("a");return;}catch(t){}try{o.fromBase64("",null);}catch(t){return!0;}}();o&&r({target:"Uint8Array",stat:!0,forced:l},{fromBase64:function(t){var e=a(t,arguments.length>1?arguments[1]:void 0,null,0x1fffffffffffff);return n(o,e.bytes);}});},6632(t,e,i){var r=i(6518),s=i(4576),n=i(9143),a=i(4154),o=s.Uint8Array,l=!o||!o.prototype.setFromBase64||!function(){var t=new o([255,255,255,255,255]);try{t.setFromBase64("",null);return;}catch(t){}try{t.setFromBase64("a");return;}catch(t){}try{t.setFromBase64("MjYyZg===");}catch(e){return 50===t[0]&&54===t[1]&&50===t[2]&&255===t[3]&&255===t[4];}}();o&&r({target:"Uint8Array",proto:!0,forced:l},{setFromBase64:function(t){a(this);var e=n(t,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:e.read,written:e.written};}});},4226(t,e,i){var r=i(6518),s=i(4576),n=i(3463),a=i(4154),o=i(5169),l=i(2303);s.Uint8Array&&r({target:"Uint8Array",proto:!0,forced:function(){try{var t=new ArrayBuffer(16,{maxByteLength:1024});new Uint8Array(t).setFromHex("cafed00d");}catch(t){return!0;}}()},{setFromHex:function(t){a(this),n(t),o(this.buffer);var e=l(t,this).read;return{read:e,written:e/2};}});},9486(t,e,i){var r=i(6518),s=i(4576),n=i(9504),a=i(3972),o=i(4154),l=i(5169),h=i(2804),d=i(944),c=h.i2c,u=h.i2cUrl,p=Math.floor,g=Math.ceil,m=n("".charAt),f=s.Uint8Array,b=s.Array,v=n([].join),y=!f||!f.prototype.toBase64||!function(){try{new f().toBase64(null);}catch(t){return!0;}}();f&&r({target:"Uint8Array",proto:!0,forced:y},{toBase64:function(){var t,e=o(this),i=arguments.length?a(arguments[0]):void 0,r="base64"===d(i)?c:u,s=!!i&&!!i.omitPadding;l(this.buffer);for(var n=0,h=e.length,f=b(s?4*p(h/3)+(h%3?h%3+1:0):4*g(h/3)),y=0,A=function(e){return m(r,t>>6*e&63);};n+2<h;n+=3)t=(e[n]<<16)+(e[n+1]<<8)+e[n+2],f[y++]=A(3),f[y++]=A(2),f[y++]=A(1),f[y++]=A(0);return n+2===h?(t=(e[n]<<16)+(e[n+1]<<8),f[y++]=A(3),f[y++]=A(2),f[y++]=A(1),s||(f[y++]="=")):n+1===h&&(t=e[n]<<16,f[y++]=A(3),f[y++]=A(2),s||(f[y++]="=",f[y++]="=")),v(f,"");}});},456(t,e,i){var r=i(6518),s=i(4576),n=i(9504),a=i(4154),o=i(5169),l=n(1.1.toString),h=n([].join),d=Array,c=s.Uint8Array,u=!c||!c.prototype.toHex||!function(){try{var t=new c([255,255,255,255,255,255,255,255]);return"ffffffffffffffff"===t.toHex();}catch(t){return!1;}}();c&&r({target:"Uint8Array",proto:!0,forced:u},{toHex:function(){a(this),o(this.buffer);for(var t=d(this.length),e=0,i=this.length;e<i;e++){var r=l(this[e],16);t[e]=1===r.length?"0"+r:r;}return h(t,"");}});},9452(t,e,i){var r=i(6518),s=i(9306),n=i(6557),a=i(4328),o=i(4995),l=i(6395),h=o.get,d=o.has,c=o.set;r({target:"WeakMap",proto:!0,real:!0,forced:l||!function(){try{WeakMap.prototype.getOrInsertComputed&&new WeakMap().getOrInsertComputed(1,function(){throw 1;});}catch(t){return t instanceof TypeError;}}()},{getOrInsertComputed:function(t,e){if(l||n(this),a(t),s(e),d(this,t))return h(this,t);var i=e(t);return c(this,t,i),i;}});},8454(t,e,i){var r=i(6518),s=i(4995),n=i(6395),a=s.get,o=s.has,l=s.set;r({target:"WeakMap",proto:!0,real:!0,forced:n},{getOrInsert:function(t,e){return o(this,t)?a(this,t):(l(this,t,e),e);}});},4979(t,e,i){var r=i(6518),s=i(4576),n=i(7751),a=i(6980),o=i(4913).f,l=i(9297),h=i(679),d=i(3167),c=i(2603),u=i(5002),p=i(6193),g=i(3724),m=i(6395),f="DOMException",b=n("Error"),v=n(f),y=function(){h(this,A);var t=arguments.length,e=c(t<1?void 0:arguments[0]),i=c(t<2?void 0:arguments[1],"Error"),r=new v(e,i),s=new b(e);return s.name=f,o(r,"stack",a(1,p(s.stack,1))),d(r,this,y),r;},A=y.prototype=v.prototype,x="stack"in new b(f),w="stack"in new v(1,2),S=v&&g&&Object.getOwnPropertyDescriptor(s,f),C=!!S&&!(S.writable&&S.configurable),E=x&&!C&&!w;r({global:!0,constructor:!0,forced:m||E},{DOMException:E?y:v});var _=n(f),T=_.prototype;if(T.constructor!==_){for(var k in m||o(T,"constructor",a(1,_)),u)if(l(u,k)){var M=u[k],P=M.s;l(_,P)||o(_,P,a(6,M.c));}}},5781(t,e,i){var r=i(6518),s=i(7751),n=i(2812),a=i(655),o=i(7416),l=s("URL");r({target:"URL",stat:!0,forced:!o},{parse:function(t){var e=n(arguments.length,1),i=a(t),r=e<2||void 0===arguments[1]?void 0:a(arguments[1]);try{return new l(i,r);}catch(t){return null;}}});}};let n={};function a(t){let e=n[t];if(void 0!==e)return e.exports;let i=n[t]={exports:{}};return s[t].call(i.exports,i,i.exports,a),i.exports;}a.d=(t,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var r=e[i++],s=e[i++];a.o(t,r)?0===s&&i++:0===s?Object.defineProperty(t,r,{enumerable:!0,value:e[i++]}):Object.defineProperty(t,r,{enumerable:!0,get:s});}else for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]});},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a(4423),a(4114),a(8111),a(2489),a(5367),a(2731),a(7642),a(8004),a(3853),a(5876),a(2475),a(5024),a(1698),a(9577),a(6632),a(4226),a(9486),a(456),a(5781);let o="object"==typeof e.default&&e.default+""=="[object process]"&&!e.default.versions.nw&&!(e.default.versions.electron&&e.default.type&&"browser"!==e.default.type),l=[1/0,1/0,-1/0,-1/0],h=new Float32Array(l),d=[.001,0,0,.001,0,0],c="http://www.w3.org/2000/svg",u={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},p="pdfjs_internal_id_",g="pdfjs_internal_editor_",m={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,POPUP:16,SIGNATURE:101,COMMENT:102},f={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,INK_COLOR_AND_OPACITY:24,HIGHLIGHT_COLOR:31,HIGHLIGHT_THICKNESS:32,HIGHLIGHT_FREE:33,HIGHLIGHT_SHOW_ALL:34,DRAW_STEP:41},b={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},v={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},y={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26,RICHMEDIA:27},A={ERRORS:0,WARNINGS:1,INFOS:5},x={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93,rawFillPath:94},w={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},S=A.WARNINGS;function C(t){S>=A.INFOS&&console.info(`Info: ${t}`);}function E(t){S>=A.WARNINGS&&console.warn(`Warning: ${t}`);}function _(t){throw Error(t);}function T(t,e){t||_(e);}function k(t,e=null,i=null){if(!t)return null;if(i&&"string"==typeof t){if(i.addDefaultProtocol&&t.startsWith("www.")){let e=t.match(/\./g);(e===null||e===void 0?void 0:e.length)>=2&&(t=`http://${t}`);}if(i.tryConvertEncoding)try{var r;r=t,t=decodeURIComponent(escape(r));}catch{}}let s=e?URL.parse(t,e):URL.parse(t);return!function(t){switch(t===null||t===void 0?void 0:t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1;}}(s)?null:s;}function M(t,e,i=!1){let r=URL.parse(t);return r?(r.hash=e,r.href):i&&k(t,"http://example.com")?t.split("#",1)[0]+`${e?`#${e}`:""}`:"";}function P(t){return t.substring(t.lastIndexOf("/")+1);}function D(t,e,i,r=!1){return Object.defineProperty(t,e,{value:i,enumerable:!r,configurable:!0,writable:!1}),i;}let I=function(){function t(t,e){this.message=t,this.name=e;}return t.prototype=Error(),t.constructor=t,t;}();class R extends I{constructor(t,e){super(t,"PasswordException"),this.code=e;}}class F extends I{constructor(t,e){super(t,"UnknownErrorException"),this.details=e;}}class O extends I{constructor(t){super(t,"InvalidPDFException");}}class B extends I{constructor(t,e,i){super(t,"ResponseException"),this.status=e,this.missing=i;}}class L extends I{constructor(t){super(t,"FormatError");}}class N extends I{constructor(t){super(t,"AbortException");}}function U(t){"string"!=typeof t&&_("Invalid argument for stringToBytes");let e=t.length,i=new Uint8Array(e);for(let r=0;r<e;++r)i[r]=255&t.charCodeAt(r);return i;}class z{static get isLittleEndian(){let t=new Uint8Array(4);return t[0]=1,D(this,"isLittleEndian",1===new Uint32Array(t.buffer,0,1)[0]);}static get isOffscreenCanvasSupported(){return D(this,"isOffscreenCanvasSupported","u">typeof OffscreenCanvas);}static get isImageDecoderSupported(){return D(this,"isImageDecoderSupported","u">typeof ImageDecoder);}static get isFloat16ArraySupported(){return D(this,"isFloat16ArraySupported","u">typeof Float16Array);}static get isSanitizerSupported(){return D(this,"isSanitizerSupported","u">typeof Sanitizer);}static get platform(){let{platform:t,userAgent:e}=navigator;return D(this,"platform",{isAndroid:e.includes("Android"),isLinux:t.includes("Linux"),isMac:t.includes("Mac"),isWindows:t.includes("Win"),isFirefox:e.includes("Firefox")});}static get isCanvasFilterSupported(){var _t;let t;return this.isOffscreenCanvasSupported?t=new OffscreenCanvas(1,1).getContext("2d"):"u">typeof document&&(t=document.createElement("canvas").getContext("2d")),D(this,"isCanvasFilterSupported",((_t=t)===null||_t===void 0?void 0:_t.filter)!==void 0);}static get isAlphaColorInputSupported(){if("u"<typeof document)return D(this,"isAlphaColorInputSupported",!1);let t=document.createElement("input");return t.type="color",t.setAttribute("alpha",""),t.value="#ff000080",D(this,"isAlphaColorInputSupported","#ff0000"!==t.value);}static get isBackdropFilterSupported(){return D(this,"isBackdropFilterSupported","u">typeof CSS&&CSS.supports("backdrop-filter","blur(1px)"));}}class G{static get hexNums(){return D(this,"hexNums",Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0")));}static makeHexColor(t,e,i){return`#${this.hexNums[t]}${this.hexNums[e]}${this.hexNums[i]}`;}static transform(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]];}static multiplyByDOMMatrix(t,e){return[t[0]*e.a+t[2]*e.b,t[1]*e.a+t[3]*e.b,t[0]*e.c+t[2]*e.d,t[1]*e.c+t[3]*e.d,t[0]*e.e+t[2]*e.f+t[4],t[1]*e.e+t[3]*e.f+t[5]];}static applyTransform(t,e,i=0){let r=t[i],s=t[i+1];t[i]=r*e[0]+s*e[2]+e[4],t[i+1]=r*e[1]+s*e[3]+e[5];}static applyTransformToBezier(t,e,i=0){let r=e[0],s=e[1],n=e[2],a=e[3],o=e[4],l=e[5];for(let e=0;e<6;e+=2){let h=t[i+e],d=t[i+e+1];t[i+e]=h*r+d*n+o,t[i+e+1]=h*s+d*a+l;}}static applyInverseTransform(t,e){let i=t[0],r=t[1],s=e[0]*e[3]-e[1]*e[2];t[0]=(i*e[3]-r*e[2]+e[2]*e[5]-e[4]*e[3])/s,t[1]=(-i*e[1]+r*e[0]+e[4]*e[1]-e[5]*e[0])/s;}static axialAlignedBoundingBox(t,e,i){let r=e[0],s=e[1],n=e[2],a=e[3],o=e[4],l=e[5],h=t[0],d=t[1],c=t[2],u=t[3],p=r*h+o,g=p,m=r*c+o,f=m,b=a*d+l,v=b,y=a*u+l,A=y;if(0!==s||0!==n){let t=s*h,e=s*c,i=n*d,r=n*u;p+=i,f+=i,m+=r,g+=r,b+=t,A+=t,y+=e,v+=e;}i[0]=Math.min(i[0],p,m,g,f),i[1]=Math.min(i[1],b,y,v,A),i[2]=Math.max(i[2],p,m,g,f),i[3]=Math.max(i[3],b,y,v,A);}static inverseTransform(t){let e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e];}static singularValueDecompose2dScale(t,e){let i=t[0],r=t[1],s=t[2],n=t[3],a=i**2+r**2,o=s**2+n**2,l=(a+o)/2,h=Math.sqrt(l**2-(a*o-(i*s+r*n)**2));e[0]=Math.sqrt(l+h||1),e[1]=Math.sqrt(l-h||1);}static normalizeRect(t){let e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e;}static intersect(t,e){let i=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2])),r=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(i>r)return null;let s=Math.max(Math.min(t[1],t[3]),Math.min(e[1],e[3])),n=Math.min(Math.max(t[1],t[3]),Math.max(e[1],e[3]));return s>n?null:[i,s,r,n];}static pointBoundingBox(t,e,i){i[0]=Math.min(i[0],t),i[1]=Math.min(i[1],e),i[2]=Math.max(i[2],t),i[3]=Math.max(i[3],e);}static rectBoundingBox(t,e,i,r,s){s[0]=Math.min(s[0],t,i),s[1]=Math.min(s[1],e,r),s[2]=Math.max(s[2],t,i),s[3]=Math.max(s[3],e,r);}static bezierBoundingBox(t,e,i,r,s,n,a,o,l){l[0]=Math.min(l[0],t,a),l[1]=Math.min(l[1],e,o),l[2]=Math.max(l[2],t,a),l[3]=Math.max(l[3],e,o),_assertClassBrand(G,this,_e).call(this,t,i,s,a,e,r,n,o,3*(-t+3*(i-s)+a),6*(t-2*i+s),3*(i-t),l),_assertClassBrand(G,this,_e).call(this,t,i,s,a,e,r,n,o,3*(-e+3*(r-n)+o),6*(e-2*r+n),3*(r-e),l);}}_G=G;function _t2(t,e,i,r,s,n,a,o,l,h){if(l<=0||l>=1)return;let d=1-l,c=l*l,u=c*l,p=d*(d*(d*t+3*l*e)+3*c*i)+u*r,g=d*(d*(d*s+3*l*n)+3*c*a)+u*o;h[0]=Math.min(h[0],p),h[1]=Math.min(h[1],g),h[2]=Math.max(h[2],p),h[3]=Math.max(h[3],g);}function _e(t,e,i,r,s,n,a,o,l,h,d,c){if(1e-12>Math.abs(l)){Math.abs(h)>=1e-12&&_assertClassBrand(_G,this,_t2).call(this,t,e,i,r,s,n,a,o,-d/h,c);return;}let u=h**2-4*d*l;if(u<0)return;let p=Math.sqrt(u),g=2*l;_assertClassBrand(_G,this,_t2).call(this,t,e,i,r,s,n,a,o,(-h+p)/g,c),_assertClassBrand(_G,this,_t2).call(this,t,e,i,r,s,n,a,o,(-h-p)/g,c);}let j=null,H=null;function $(t){return j||(j=/([\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,H=new Map([["ſt","ſt"]])),t.replaceAll(j,(t,e,i)=>e?e.normalize("NFKC"):H.get(i));}function V(){if("function"==typeof crypto.randomUUID)return crypto.randomUUID();let t=new Uint8Array(32);return crypto.getRandomValues(t),function(t){("object"!=typeof t||(t===null||t===void 0?void 0:t.length)===void 0)&&_("Invalid argument for bytesToString");let e=t.length;if(e<8192)return String.fromCharCode.apply(null,t);let i=[];for(let r=0;r<e;r+=8192){let s=Math.min(r+8192,e),n=t.subarray(r,s);i.push(String.fromCharCode.apply(null,n));}return i.join("");}(t);}let W=()=>[],K=()=>new Map(),X=()=>Object.create(null),Y=()=>new Set();function q(t,e,i){return Math.min(Math.max(t,e),i);}"function"!=typeof Blob.prototype.bytes&&(Blob.prototype.bytes=async function(){return new Uint8Array(await this.arrayBuffer());}),"function"!=typeof Response.prototype.bytes&&(Response.prototype.bytes=async function(){return new Uint8Array(await this.arrayBuffer());}),"function"!=typeof Iterator.prototype.join&&(Iterator.prototype.join=function(t){return[...this].join(t);}),a(1701);class J{constructor({viewBox:t,userUnit:e,scale:i,rotation:r,offsetX:s=0,offsetY:n=0,dontFlip:a=!1}){let o,l,h,d,c,u,p,g;this.viewBox=t,this.userUnit=e,this.scale=i,this.rotation=r,this.offsetX=s,this.offsetY=n,i*=e;let m=(t[2]+t[0])/2,f=(t[3]+t[1])/2;switch((r%=360)<0&&(r+=360),r){case 180:o=-1,l=0,h=0,d=1;break;case 90:o=0,l=1,h=1,d=0;break;case 270:o=0,l=-1,h=-1,d=0;break;case 0:o=1,l=0,h=0,d=-1;break;default:throw Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.");}a&&(h=-h,d=-d),0===o?(c=Math.abs(f-t[1])*i+s,u=Math.abs(m-t[0])*i+n,p=(t[3]-t[1])*i,g=(t[2]-t[0])*i):(c=Math.abs(m-t[0])*i+s,u=Math.abs(f-t[1])*i+n,p=(t[2]-t[0])*i,g=(t[3]-t[1])*i),this.transform=[o*i,l*i,h*i,d*i,c-o*i*m-h*i*f,u-l*i*m-d*i*f],this.width=p,this.height=g;}get rawDims(){let t=this.viewBox;return D(this,"rawDims",{pageWidth:t[2]-t[0],pageHeight:t[3]-t[1],pageX:t[0],pageY:t[1]});}clone({scale:t=this.scale,rotation:e=this.rotation,offsetX:i=this.offsetX,offsetY:r=this.offsetY,dontFlip:s=!1}={}){return new J({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:t,rotation:e,offsetX:i,offsetY:r,dontFlip:s});}convertToViewportPoint(t,e){let i=[t,e];return G.applyTransform(i,this.transform),i;}convertToPdfPoint(t,e){let i=[t,e];return G.applyInverseTransform(i,this.transform),i;}}class Q{static textContent(t){let e=[],i={items:e,styles:Object.create(null)};return!function t(i){if(!i)return;let r=null,s=i.name;if("#text"===s)r=i.value;else{var _i$attributes;if(!Q.shouldBuildText(s))return;i!==null&&i!==void 0&&(_i$attributes=i.attributes)!==null&&_i$attributes!==void 0&&_i$attributes.textContent?r=i.attributes.textContent:i.value&&(r=i.value);}if(null!==r&&e.push({str:r}),i.children)for(let e of i.children)t(e);}(t),i;}static shouldBuildText(t){return"textarea"!==t&&"input"!==t&&"option"!==t&&"select"!==t;}}let Z=/url\(|image-set\(/i,tt=/^on/i;class te{static get _allowedHtmlElements(){return D(this,"_allowedHtmlElements",new Set(["a","b","br","button","div","i","img","input","label","li","ol","option","p","select","span","sub","sup","textarea","ul"]));}static get _allowedSvgElements(){return D(this,"_allowedSvgElements",new Set(["ellipse","line","path","rect","svg"]));}static get _allowedRichTextElements(){return D(this,"_allowedRichTextElements",new Set(["a","b","br","div","i","li","ol","p","span","sub","sup","ul"]));}static get _allowedRichTextAttributes(){return D(this,"_allowedRichTextAttributes",new Set(["class","dir","style"]));}static get _allowedRichTextStyles(){return D(this,"_allowedRichTextStyles",new Set(["color","font","fontFamily","fontSize","fontStretch","fontStyle","fontWeight","kerningMode","letterSpacing","lineHeight","margin","marginBottom","marginLeft","marginRight","marginTop","orphans","paddingLeft","paddingRight","breakAfter","breakBefore","breakInside","tabInterval","tabStop","textAlign","textDecoration","textIndent","transform","verticalAlign","widows"]));}static setupStorage(t,e,i,r,s){let n=r.getValue(e,{value:null});switch(i.name){case"textarea":if(null!==n.value&&(t.textContent=n.value),"print"===s)break;t.addEventListener("input",t=>{r.setValue(e,{value:t.target.value});});break;case"input":if("radio"===i.attributes.type||"checkbox"===i.attributes.type){if(n.value===i.attributes.xfaOn?t.setAttribute("checked",!0):n.value===i.attributes.xfaOff&&t.removeAttribute("checked"),"print"===s)break;t.addEventListener("change",t=>{r.setValue(e,{value:t.target.checked?t.target.getAttribute("xfaOn"):t.target.getAttribute("xfaOff")});});}else{if(null!==n.value&&t.setAttribute("value",n.value),"print"===s)break;t.addEventListener("input",t=>{r.setValue(e,{value:t.target.value});});}break;case"select":if(null!==n.value)for(let e of(t.setAttribute("value",n.value),i.children))e.attributes.value===n.value?e.attributes.selected=!0:Object.hasOwn(e.attributes,"selected")&&delete e.attributes.selected;t.addEventListener("input",t=>{let i=t.target.options,s=-1===i.selectedIndex?"":i[i.selectedIndex].value;r.setValue(e,{value:s});});}}static setAttributes({html:t,element:e,storage:i=null,intent:r,linkService:s}){let{attributes:n}=e,a=t instanceof HTMLAnchorElement;for(let[e,i]of("radio"===n.type&&(n.name=`${n.name}-${r}`),Object.entries(n)))if(!(null==i||tt.test(e))&&("richText"!==r||this._allowedRichTextAttributes.has(e)))switch(e){case"class":i.length&&t.setAttribute(e,i.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",i);break;case"style":if("richText"===r){let e=this._allowedRichTextStyles;for(let[r,s]of Object.entries(i))e.has(r)&&!Z.test(s)&&(t.style[r]=s);}else Object.assign(t.style,i);break;case"textContent":t.textContent=i;break;default:a&&("href"===e||"newWindow"===e)||t.setAttribute(e,i);}a&&s!==null&&s!==void 0&&s.addLinkAttributes(t,n.href,n.newWindow),i&&n.dataId&&this.setupStorage(t,n.dataId,e,i);}static render(t){var _assertClassBrand$cal,_r$attributes;let e=t.annotationStorage,i=t.linkService,r=t.xfaHtml,s=t.intent||"display",n=(_assertClassBrand$cal=_assertClassBrand(te,this,_i).call(this,r.name,(_r$attributes=r.attributes)===null||_r$attributes===void 0?void 0:_r$attributes.xmlns,s))!==null&&_assertClassBrand$cal!==void 0?_assertClassBrand$cal:document.createElement("div");r.attributes&&this.setAttributes({html:n,element:r,intent:s,linkService:i});let a="richText"!==s,o=t.div;if(o.append(n),t.viewport){let e=`matrix(${t.viewport.transform.join(",")})`;o.style.transform=e;}a&&o.setAttribute("class","xfaLayer xfaFont");let l=[];if(0===r.children.length){if(r.value){let t=document.createTextNode(r.value);n.append(t),a&&Q.shouldBuildText(r.name)&&l.push(t);}return{textDivs:l};}let h=[[r,-1,n]];for(;h.length>0;){var _o$attributes;let[t,r,n]=h.at(-1);if(r+1===t.children.length){h.pop();continue;}let o=t.children[++h.at(-1)[1]];if(null===o)continue;let{name:d}=o;if("#text"===d){let t=document.createTextNode(o.value);l.push(t),n.append(t);continue;}let c=_assertClassBrand(te,this,_i).call(this,d,(_o$attributes=o.attributes)===null||_o$attributes===void 0?void 0:_o$attributes.xmlns,s);if(c){var _o$children;if(n.append(c),o.attributes&&this.setAttributes({html:c,element:o,storage:e,intent:s,linkService:i}),((_o$children=o.children)===null||_o$children===void 0?void 0:_o$children.length)>0)h.push([o,-1,c]);else if(o.value){let t=document.createTextNode(o.value);a&&Q.shouldBuildText(d)&&l.push(t),c.append(t);}}}for(let t of o.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))t.setAttribute("readOnly",!0);return{textDivs:l};}static update(t){let e=`matrix(${t.viewport.transform.join(",")})`;t.div.style.transform=e,t.div.hidden=!1;}static getPageViewport(t,{scale:e=1,rotation:i=0}){let{width:r,height:s}=t.attributes.style;return new J({viewBox:[0,0,parseInt(r,10),parseInt(s,10)],userUnit:1,scale:e,rotation:i});}}function _i(t,e,i){return"richText"===i?!e&&this._allowedRichTextElements.has(t)?document.createElement(t):null:e?e===c&&this._allowedSvgElements.has(t)?document.createElementNS(c,t):null:this._allowedHtmlElements.has(t)?document.createElement(t):null;}class ti{}_ti=ti;_defineProperty(ti,"CSS",96);_defineProperty(ti,"PDF",72);_defineProperty(ti,"PDF_TO_CSS_UNITS",_ti.CSS/_ti.PDF);async function tr(t,e="text"){if(td(t,document.baseURI)){let i=await fetch(t);if(!i.ok)throw Error(i.statusText);switch(e){case"blob":return i.blob();case"bytes":return i.bytes();case"json":return i.json();}return i.text();}return new Promise((i,r)=>{let s=new XMLHttpRequest();s.open("GET",t,!0),s.responseType="bytes"===e?"arraybuffer":e,s.onreadystatechange=()=>{if(s.readyState===XMLHttpRequest.DONE){if(200===s.status||0===s.status){switch(e){case"bytes":i(new Uint8Array(s.response));return;case"blob":case"json":i(s.response);return;}i(s.responseText);return;}r(Error(s.statusText));}},s.send(null);});}class ts extends I{constructor(t,e=0){super(t,"RenderingCancelledException"),this.extraDelay=e;}}function tn(t){let e=t.length,i=0;for(;i<e&&""===t[i].trim();)i++;return"data:"===t.substring(i,i+5).toLowerCase();}function ta(t){return"string"==typeof t&&/\.pdf$/i.test(t);}function to(t){return[t]=t.split(/[#?]/,1),P(t);}function tl(t,e="document.pdf"){if("string"!=typeof t)return e;if(tn(t))return E('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),e;let i=(t=>{try{return new URL(t);}catch{}try{return new URL(decodeURIComponent(t));}catch{}try{return new URL(t,"https://foo.bar");}catch{}try{return new URL(decodeURIComponent(t),"https://foo.bar");}catch{}return null;})(t);if(!i)return e;let r=t=>{try{let e=decodeURIComponent(t);if(e.includes("/")&&(e=P(e),4===e.length&&s.test(e)))return t;return e;}catch{return t;}},s=/\.pdf$/i,n=P(i.pathname);if(s.test(n))return r(n);if(i.searchParams.size>0){var _t4;let t=t=>[...t].findLast(t=>s.test(t)),e=(_t4=t(i.searchParams.values()))!==null&&_t4!==void 0?_t4:t(i.searchParams.keys());if(e)return r(e);}if(i.hash){let{hash:t}=i,e=-1;for(let{index:i}of t.matchAll(/\.pdf\b/gi))e=i;if(e>0){let i=e;for(;i>0&&!"/?#=".includes(t[i-1]);)i--;if(i<e)return r(t.slice(i,e+4));}}return e;}var _r=new WeakMap();class th{constructor(){_classPrivateFieldInitSpec(this,_r,new Map());_defineProperty(this,"times",[]);}time(t){_classPrivateFieldGet(_r,this).has(t)&&E(`Timer is already running for ${t}`),_classPrivateFieldGet(_r,this).set(t,Date.now());}timeEnd(t){_classPrivateFieldGet(_r,this).has(t)||E(`Timer has not been started for ${t}`),this.times.push({name:t,start:_classPrivateFieldGet(_r,this).get(t),end:Date.now()}),_classPrivateFieldGet(_r,this).delete(t);}toString(){let t=Math.max(...this.times.map(t=>t.name.length));return this.times.map(e=>`${e.name.padEnd(t)} ${e.end-e.start}ms
2
2
  `).join("");}}function td(t,e){var _i$protocol;let i=e?URL.parse(t,e):URL.parse(t);return /https?:/.test((_i$protocol=i===null||i===void 0?void 0:i.protocol)!==null&&_i$protocol!==void 0?_i$protocol:"");}function tc(t){t.preventDefault();}function tu(t){t.preventDefault(),t.stopPropagation();}class tp{static toDateObject(t){if(t instanceof Date)return t;if(!t||"string"!=typeof t)return null;_assertClassBrand(tp,this,_s)._||(_s._=_assertClassBrand(tp,this,RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+\\-])?(\\d{2})?'?(\\d{2})?'?")));let e=_assertClassBrand(tp,this,_s)._.exec(t);if(!e)return null;let i=parseInt(e[1],10),r=parseInt(e[2],10);r=r>=1&&r<=12?r-1:0;let s=parseInt(e[3],10);s=s>=1&&s<=31?s:1;let n=parseInt(e[4],10);n=n>=0&&n<=23?n:0;let a=parseInt(e[5],10);a=a>=0&&a<=59?a:0;let o=parseInt(e[6],10);o=o>=0&&o<=59?o:0;let l=e[7]||"Z",h=parseInt(e[8],10);h=h>=0&&h<=23?h:0;let d=parseInt(e[9],10)||0;return d=d>=0&&d<=59?d:0,"-"===l?(n+=h,a+=d):"+"===l&&(n-=h,a-=d),new Date(Date.UTC(i,r,s,n,a,o));}}var _s={_:void 0};function tg(t){if(t.startsWith("#")){let e=t.slice(1);return[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16),e.length>=8?parseInt(e.slice(6,8),16)/255:1];}if(t.startsWith("rgb(")){let[e,i,r]=t.slice(4,-1).split(",").map(t=>parseInt(t,10));return[e,i,r,1];}if(t.startsWith("rgba(")){let e=t.slice(5,-1).split(",");return[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10),parseFloat(e[3])];}let e=t.match(/^color\(srgb\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)(?:\s*\/\s*([\d.]+|none))?\)$/);return e?[Math.round(255*parseFloat(e[1])),Math.round(255*parseFloat(e[2])),Math.round(255*parseFloat(e[3])),void 0!==e[4]&&"none"!==e[4]?parseFloat(e[4]):1]:null;}function tm(t){let e=tg(t);return e?e.slice(0,3):(E(`Not a valid color format: "${t}"`),[0,0,0]);}function tf(t){let{a:e,b:i,c:r,d:s,e:n,f:a}=t.getTransform();return[e,i,r,s,n,a];}function tb(t){let{a:e,b:i,c:r,d:s,e:n,f:a}=t.getTransform().invertSelf();return[e,i,r,s,n,a];}function tv(t,e,i=!1,r=!0){if(e instanceof J){let{pageWidth:r,pageHeight:s}=e.rawDims,{style:n}=t,a=`round(down, var(--total-scale-factor) * ${r}px, var(--scale-round-x))`,o=`round(down, var(--total-scale-factor) * ${s}px, var(--scale-round-y))`;i&&e.rotation%180!=0?(n.width=o,n.height=a):(n.width=a,n.height=o);}r&&t.setAttribute("data-main-rotation",e.rotation);}class ty{constructor(){let{pixelRatio:t}=ty;this.sx=t,this.sy=t;}get scaled(){return 1!==this.sx||1!==this.sy;}get symmetric(){return this.sx===this.sy;}limitCanvas(t,e,i,r,s=-1){let n=1/0,a=1/0,o=1/0;(i=ty.capPixels(i,s))>0&&(n=Math.sqrt(i/(t*e))),-1!==r&&(a=r/t,o=r/e);let l=Math.min(n,a,o);return(this.sx>l||this.sy>l)&&(this.sx=l,this.sy=l,!0);}static get pixelRatio(){return globalThis.devicePixelRatio||1;}static capPixels(t,e){if(e>=0){let i=Math.ceil(window.screen.availWidth*window.screen.availHeight*this.pixelRatio**2*(1+e/100));return t>0?Math.min(t,i):i;}return t;}}let tA=["image/apng","image/avif","image/bmp","image/gif","image/jpeg","image/png","image/svg+xml","image/webp","image/x-icon"];class tx{static get isDarkMode(){var _window,_window$matchMedia;return D(this,"isDarkMode",!!((_window=window)!==null&&_window!==void 0&&(_window$matchMedia=_window.matchMedia)!==null&&_window$matchMedia!==void 0&&_window$matchMedia.call(_window,"(prefers-color-scheme: dark)").matches));}}class tw{static get commentForegroundColor(){let t=document.createElement("span");t.classList.add("comment","sidebar");let{style:e}=t;e.width=e.height="0",e.display="none",e.color="var(--comment-fg-color)",document.body.append(t);let{color:i}=window.getComputedStyle(t);return t.remove(),D(this,"commentForegroundColor",tm(i));}}function tS(t,e){let i=255*(1-(e=q(e!==null&&e!==void 0?e:1,0,1)));return t.map(t=>Math.round(t*e+i));}function tC(t,e){let i=t[0]/255,r=t[1]/255,s=t[2]/255,n=Math.max(i,r,s),a=Math.min(i,r,s),o=(n+a)/2;if(n===a)e[0]=e[1]=0;else{let t=n-a;switch(e[1]=o<.5?t/(n+a):t/(2-n-a),n){case i:e[0]=((r-s)/t+6*(r<s))*60;break;case r:e[0]=((s-i)/t+2)*60;break;case s:e[0]=((i-r)/t+4)*60;}}e[2]=o;}function tE(t,e){let i=t[0],r=t[1],s=t[2],n=(1-Math.abs(2*s-1))*r,a=n*(1-Math.abs(i/60%2-1)),o=s-n/2;switch(Math.floor(i/60)){case 0:e[0]=n+o,e[1]=a+o,e[2]=o;break;case 1:e[0]=a+o,e[1]=n+o,e[2]=o;break;case 2:e[0]=o,e[1]=n+o,e[2]=a+o;break;case 3:e[0]=o,e[1]=a+o,e[2]=n+o;break;case 4:e[0]=a+o,e[1]=o,e[2]=n+o;break;case 5:case 6:e[0]=n+o,e[1]=o,e[2]=a+o;}}function t_(t){return t<=.03928?t/12.92:((t+.055)/1.055)**2.4;}function tT(t,e,i){tE(t,i),i.map(t_);let r=.2126*i[0]+.7152*i[1]+.0722*i[2];tE(e,i),i.map(t_);let s=.2126*i[0]+.7152*i[1]+.0722*i[2];return r>s?(r+.05)/(s+.05):(s+.05)/(r+.05);}let tk=new Map();function tM(t,e){let i=t[0]+256*t[1]+65536*t[2]+0x1000000*e[0]+0x100000000*e[1]+0x10000000000*e[2],r=tk.get(i);if(r)return r;let s=new Float32Array(9),n=s.subarray(0,3),a=s.subarray(3,6);tC(t,a);let o=s.subarray(6,9);tC(e,o);let l=o[2]<.5,h=l?12:4.5;if(a[2]=l?Math.sqrt(a[2]):1-Math.sqrt(1-a[2]),tT(a,o,n)<h){let t,e;for(l?(t=a[2],e=1):(t=0,e=a[2]);e-t>.005;){let i=a[2]=(t+e)/2;l===tT(a,o,n)<h?t=i:e=i;}a[2]=l?e:t;}return tE(a,n),r=G.makeHexColor(Math.round(255*n[0]),Math.round(255*n[1]),Math.round(255*n[2])),tk.set(i,r),r;}function tP({html:t,dir:e,className:i},r){let s=document.createDocumentFragment();if("string"==typeof t){let i=document.createElement("p");i.dir=e||"auto";let r=t.split(/\r\n?|\n/);for(let t=0,e=r.length;t<e;++t){let s=r[t];i.append(document.createTextNode(s)),t<e-1&&i.append(document.createElement("br"));}s.append(i);}else te.render({xfaHtml:t,div:s,intent:"richText"});s.firstElementChild.classList.add("richText",i),r.append(s);}function tD(t){let e=new Path2D();if(!t)return e;for(let i=0,r=t.length;i<r;)switch(t[i++]){case 0:e.moveTo(t[i++],t[i++]);break;case 1:e.lineTo(t[i++],t[i++]);break;case 2:e.bezierCurveTo(t[i++],t[i++],t[i++],t[i++],t[i++],t[i++]);break;case 3:e.quadraticCurveTo(t[i++],t[i++],t[i++],t[i++]);break;case 4:e.closePath();break;default:E(`Unrecognized drawing path operator: ${t[i-1]}`);}return e;}a(4972),a(8454),a(9452),a(4979),a(3579),a(3110),a(9314),a(1148),a(116),a(9112);var _n=new WeakMap();var _a=new WeakMap();var _o=new WeakMap();var _l=new WeakMap();var _h=new WeakMap();var _d=new WeakMap();var _c=new WeakMap();var _u=new WeakMap();var _tI_brand=new WeakSet();class tI{constructor(_t5){_classPrivateMethodInitSpec(this,_tI_brand);_classPrivateFieldInitSpec(this,_n,null);_classPrivateFieldInitSpec(this,_a,null);_classPrivateFieldInitSpec(this,_o,void 0);_classPrivateFieldInitSpec(this,_l,null);_classPrivateFieldInitSpec(this,_h,null);_classPrivateFieldInitSpec(this,_d,null);_classPrivateFieldInitSpec(this,_c,null);_classPrivateFieldInitSpec(this,_u,null);_classPrivateFieldSet(_o,this,_t5),_p._||(_p._=Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button",signature:"pdfjs-editor-remove-signature-button"}));}render(){let t=_classPrivateFieldSet(_n,this,document.createElement("div"));t.classList.add("editToolbar","hidden"),t.setAttribute("role","toolbar");let e=_classPrivateFieldGet(_o,this)._uiManager._signal;e instanceof AbortSignal&&!e.aborted&&(t.addEventListener("contextmenu",tc,{signal:e}),t.addEventListener("pointerdown",_g,{signal:e}));let i=_classPrivateFieldSet(_l,this,document.createElement("div"));i.className="buttons",t.append(i);let r=_classPrivateFieldGet(_o,this).toolbarPosition;if(r){let{style:e}=t,i="ltr"===_classPrivateFieldGet(_o,this)._uiManager.direction?1-r[0]:r[0];e.insetInlineEnd=`${100*i}%`,e.top=`calc(${100*r[1]}% + var(--editor-toolbar-vert-offset))`;}return t;}get div(){return _classPrivateFieldGet(_n,this);}hide(){var _classPrivateFieldGet2;_classPrivateFieldGet(_n,this).classList.add("hidden"),(_classPrivateFieldGet2=_classPrivateFieldGet(_a,this))===null||_classPrivateFieldGet2===void 0?void 0:_classPrivateFieldGet2.hideDropdown();}show(){var _classPrivateFieldGet3,_classPrivateFieldGet4;_classPrivateFieldGet(_n,this).classList.remove("hidden"),(_classPrivateFieldGet3=_classPrivateFieldGet(_h,this))!==null&&_classPrivateFieldGet3!==void 0&&_classPrivateFieldGet3.shown(),(_classPrivateFieldGet4=_classPrivateFieldGet(_d,this))===null||_classPrivateFieldGet4===void 0?void 0:_classPrivateFieldGet4.shown();}addDeleteButton(){let{editorType:t,_uiManager:e}=_classPrivateFieldGet(_o,this),i=document.createElement("button");i.classList.add("basic","deleteButton"),i.tabIndex=0,i.setAttribute("data-l10n-id",_p._[t]),_assertClassBrand(_tI_brand,this,_b).call(this,i)&&i.addEventListener("click",t=>{e.delete();},{signal:e._signal}),_classPrivateFieldGet(_l,this).append(i);}async addAltText(t){let e=await t.render();_assertClassBrand(_tI_brand,this,_b).call(this,e),_classPrivateFieldGet(_l,this).append(e,_classPrivateGetter(_tI_brand,this,_get_v)),_classPrivateFieldSet(_h,this,t);}addComment(t,e=null){if(_classPrivateFieldGet(_d,this))return;let i=t.renderForToolbar();if(!i)return;_assertClassBrand(_tI_brand,this,_b).call(this,i);let r=_classPrivateFieldSet(_c,this,_classPrivateGetter(_tI_brand,this,_get_v));e?(_classPrivateFieldGet(_l,this).insertBefore(i,e),_classPrivateFieldGet(_l,this).insertBefore(r,e)):_classPrivateFieldGet(_l,this).append(i,r),_classPrivateFieldSet(_d,this,t),t.toolbar=this;}addColorPicker(t){if(_classPrivateFieldGet(_a,this))return;_classPrivateFieldSet(_a,this,t);let e=t.renderButton();_assertClassBrand(_tI_brand,this,_b).call(this,e),_classPrivateFieldGet(_l,this).append(e,_classPrivateGetter(_tI_brand,this,_get_v));}async addEditSignatureButton(t){let e=_classPrivateFieldSet(_u,this,await t.renderEditButton(_classPrivateFieldGet(_o,this)));_assertClassBrand(_tI_brand,this,_b).call(this,e),_classPrivateFieldGet(_l,this).append(e,_classPrivateGetter(_tI_brand,this,_get_v));}removeButton(t){var _classPrivateFieldGet5,_classPrivateFieldGet6;"comment"===t&&((_classPrivateFieldGet5=_classPrivateFieldGet(_d,this))!==null&&_classPrivateFieldGet5!==void 0&&_classPrivateFieldGet5.removeToolbarCommentButton(),_classPrivateFieldSet(_d,this,null),(_classPrivateFieldGet6=_classPrivateFieldGet(_c,this))!==null&&_classPrivateFieldGet6!==void 0&&_classPrivateFieldGet6.remove(),_classPrivateFieldSet(_c,this,null));}async addButton(t,e){switch(t){case"colorPicker":e&&this.addColorPicker(e);break;case"altText":e&&(await this.addAltText(e));break;case"editSignature":e&&(await this.addEditSignatureButton(e));break;case"delete":this.addDeleteButton();break;case"comment":e&&this.addComment(e);}}async addButtonBefore(t,e,i){if(!e&&"comment"===t)return;let r=_classPrivateFieldGet(_l,this).querySelector(i);r&&"comment"===t&&this.addComment(e,r);}updateEditSignatureButton(t){_classPrivateFieldGet(_u,this)&&(_classPrivateFieldGet(_u,this).title=t);}remove(){var _classPrivateFieldGet7;_classPrivateFieldGet(_n,this).remove(),(_classPrivateFieldGet7=_classPrivateFieldGet(_a,this))!==null&&_classPrivateFieldGet7!==void 0&&_classPrivateFieldGet7.destroy(),_classPrivateFieldSet(_a,this,null);}}function _g(t){t.stopPropagation();}function _m(t){_classPrivateFieldGet(_o,this)._focusEventsAllowed=!1,tu(t);}function _f(t){_classPrivateFieldGet(_o,this)._focusEventsAllowed=!0,tu(t);}function _b(t){let e=_classPrivateFieldGet(_o,this)._uiManager._signal;return e instanceof AbortSignal&&!e.aborted&&(t.addEventListener("focusin",_assertClassBrand(_tI_brand,this,_m).bind(this),{capture:!0,signal:e}),t.addEventListener("focusout",_assertClassBrand(_tI_brand,this,_f).bind(this),{capture:!0,signal:e}),t.addEventListener("contextmenu",tc,{signal:e}),!0);}function _get_v(_this){let t=document.createElement("div");return t.className="divider",t;}var _p={_:null};var _l2=new WeakMap();var _n2=new WeakMap();var _y=new WeakMap();var _tR_brand=new WeakSet();class tR{constructor(_t6){_classPrivateMethodInitSpec(this,_tR_brand);_classPrivateFieldInitSpec(this,_l2,null);_classPrivateFieldInitSpec(this,_n2,null);_classPrivateFieldInitSpec(this,_y,void 0);_classPrivateFieldSet(_y,this,_t6);}show(t,e,i){let[r,s]=_assertClassBrand(_tR_brand,this,_w).call(this,e,i),{style:n}=_classPrivateFieldGet(_n2,this)||_classPrivateFieldSet(_n2,this,_assertClassBrand(_tR_brand,this,_A).call(this));t.append(_classPrivateFieldGet(_n2,this)),n.insetInlineEnd=`${100*r}%`,n.top=`calc(${100*s}% + var(--editor-toolbar-vert-offset))`;}hide(){_classPrivateFieldGet(_n2,this).remove();}}function _A(){let t=_classPrivateFieldSet(_n2,this,document.createElement("div"));t.className="editToolbar",t.setAttribute("role","toolbar"),t.dir=_classPrivateFieldGet(_y,this).direction;let e=_classPrivateFieldGet(_y,this)._signal;e instanceof AbortSignal&&!e.aborted&&t.addEventListener("contextmenu",tc,{signal:e});let i=_classPrivateFieldSet(_l2,this,document.createElement("div"));return i.className="buttons",t.append(i),_classPrivateFieldGet(_y,this).hasCommentManager()&&_assertClassBrand(_tR_brand,this,_x).call(this,"commentButton","pdfjs-comment-floating-button","pdfjs-comment-floating-button-label",()=>{_classPrivateFieldGet(_y,this).commentSelection("floating_button");}),_assertClassBrand(_tR_brand,this,_x).call(this,"highlightButton","pdfjs-highlight-floating-button1","pdfjs-highlight-floating-button-label",()=>{_classPrivateFieldGet(_y,this).highlightSelection("floating_button");}),t;}function _w(t,e){let i=0,r=0;for(let s of t){let t=s.y+s.height;if(t<i)continue;let n=s.x+(e?s.width:0);if(t>i){r=n,i=t;continue;}e?n>r&&(r=n):n<r&&(r=n);}return[e?1-r:r,i];}function _x(t,e,i,r){let s=document.createElement("button");s.classList.add("basic",t),s.tabIndex=0,s.setAttribute("data-l10n-id",e);let n=document.createElement("span");s.append(n),n.className="visuallyHidden",n.setAttribute("data-l10n-id",i);let a=_classPrivateFieldGet(_y,this)._signal;a instanceof AbortSignal&&!a.aborted&&(s.addEventListener("contextmenu",tc,{signal:a}),s.addEventListener("click",r,{signal:a})),_classPrivateFieldGet(_l2,this).append(s);}let tF=Object.freeze({internal:"59968104-cc61-4cf9-b570-014b35b3709c"});function tO(t,e,i){for(let r of i)e.addEventListener(r,t[r].bind(t));}class tB{static initializeAndAddPointerId(t){(_C._||(_C._=new Set())).add(t);}static setPointer(t,e){var _$_;_S._||(_S._=e),(_$_=_2._)!==null&&_$_!==void 0?_$_:_2._=t;}static setTimeStamp(t){_E._=t;}static isSamePointerId(t){return _S._===t;}static isSamePointerIdOrRemove(t){var _C$_;return _S._===t||((_C$_=_C._)!==null&&_C$_!==void 0&&_C$_.delete(t),!1);}static isSamePointerType(t){return _2._===t;}static isInitializedAndDifferentPointerType(t){return null!==_2._&&!tB.isSamePointerType(t);}static isSameTimeStamp(t){return _E._===t;}static isUsingMultiplePointers(){var _C$_2;return((_C$_2=_C._)===null||_C$_2===void 0?void 0:_C$_2.size)>=1;}static clearPointerType(){_2._=null;}static clearPointerIds(){_S._=0/0,_C._=null;}static clearTimeStamp(){_E._=0/0;}}var _S={_:0/0};var _C={_:null};var _E={_:0/0};var _2={_:null};var _T=new WeakMap();class tL{constructor(){_classPrivateFieldInitSpec(this,_T,0);}get id(){var _this$T,_this$T2;return`${g}${_classPrivateFieldSet(_T,this,(_this$T=_classPrivateFieldGet(_T,this),_this$T2=_this$T++,_this$T)),_this$T2}`;}}var _k=new WeakMap();var _T2=new WeakMap();var _M=new WeakMap();var _tN_brand=new WeakSet();class tN{constructor(){_classPrivateMethodInitSpec(this,_tN_brand);_classPrivateFieldInitSpec(this,_k,V());_classPrivateFieldInitSpec(this,_T2,0);_classPrivateFieldInitSpec(this,_M,null);}static get _isSVGFittingCanvas(){let t=`data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="${c}"><rect width="1" height="1" style="fill:red;"/></svg>`,e=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),i=new Image();return i.src=t,D(this,"_isSVGFittingCanvas",i.decode().then(()=>(e.drawImage(i,0,0,1,1,0,0,1,3),0===new Uint32Array(e.getImageData(0,0,1,1).data.buffer)[0])));}async getFromFile(t){let{lastModified:e,name:i,size:r,type:s}=t;return _assertClassBrand(_tN_brand,this,_P).call(this,`${e}_${i}_${r}_${s}`,t);}async getFromUrl(t){return _assertClassBrand(_tN_brand,this,_P).call(this,t,t);}async getFromBlob(t,e){let i=await e;return _assertClassBrand(_tN_brand,this,_P).call(this,t,i);}async getFromId(t){_classPrivateFieldGet(_M,this)||_classPrivateFieldSet(_M,this,new Map());let e=_classPrivateFieldGet(_M,this).get(t);if(!e)return null;if(e.bitmap)return e.refCounter+=1,e;if(e.file)return this.getFromFile(e.file);if(e.blobPromise){let{blobPromise:t}=e;return delete e.blobPromise,this.getFromBlob(e.id,t);}return this.getFromUrl(e.url);}getFromCanvas(t,e){var _this$T5,_this$T6,_i3;_classPrivateFieldGet(_M,this)||_classPrivateFieldSet(_M,this,new Map());let i=_classPrivateFieldGet(_M,this).get(t);if((_i3=i)!==null&&_i3!==void 0&&_i3.bitmap)return i.refCounter+=1,i;let r=new OffscreenCanvas(e.width,e.height);return r.getContext("2d").drawImage(e,0,0),i={bitmap:r.transferToImageBitmap(),id:`image_${_classPrivateFieldGet(_k,this)}_${_classPrivateFieldSet(_T2,this,(_this$T5=_classPrivateFieldGet(_T2,this),_this$T6=_this$T5++,_this$T5)),_this$T6}`,refCounter:1,isSvg:!1},_classPrivateFieldGet(_M,this).set(t,i),_classPrivateFieldGet(_M,this).set(i.id,i),i;}getSvgUrl(t){let e=_classPrivateFieldGet(_M,this).get(t);return e!==null&&e!==void 0&&e.isSvg?e.svgUrl:null;}deleteId(t){var _i$close;_classPrivateFieldGet(_M,this)||_classPrivateFieldSet(_M,this,new Map());let e=_classPrivateFieldGet(_M,this).get(t);if(!e||(e.refCounter-=1,0!==e.refCounter))return;let{bitmap:i}=e;if(!e.url&&!e.file){let t=new OffscreenCanvas(i.width,i.height);t.getContext("bitmaprenderer").transferFromImageBitmap(i),e.blobPromise=t.convertToBlob();}(_i$close=i.close)!==null&&_i$close!==void 0&&_i$close.call(i),e.bitmap=null;}isValidId(t){return t.startsWith(`image_${_classPrivateFieldGet(_k,this)}_`);}}_tN=tN;async function _P(t,e){var _i37;_classPrivateFieldGet(_M,this)||_classPrivateFieldSet(_M,this,new Map());let i=_classPrivateFieldGet(_M,this).get(t);if(null===i)return null;if((_i37=i)!==null&&_i37!==void 0&&_i37.bitmap)return i.refCounter+=1,i;try{var _this$T3,_this$T4;let t;if(i||(i={bitmap:null,id:`image_${_classPrivateFieldGet(_k,this)}_${_classPrivateFieldSet(_T2,this,(_this$T3=_classPrivateFieldGet(_T2,this),_this$T4=_this$T3++,_this$T3)),_this$T4}`,refCounter:0,isSvg:!1}),"string"==typeof e?(i.url=e,t=await tr(e,"blob")):e instanceof File?t=i.file=e:e instanceof Blob&&(t=e),"image/svg+xml"===t.type){let e=_tN._isSVGFittingCanvas,r=new FileReader(),s=new Image(),n=new Promise((t,n)=>{s.onload=()=>{i.bitmap=s,i.isSvg=!0,t();},r.onload=async()=>{let t=i.svgUrl=r.result;s.src=(await e)?`${t}#svgView(preserveAspectRatio(none))`:t;},s.onerror=r.onerror=n;});r.readAsDataURL(t),await n;}else i.bitmap=await createImageBitmap(t);i.refCounter=1;}catch(t){E(t),i=null;}return _classPrivateFieldGet(_M,this).set(t,i),i&&_classPrivateFieldGet(_M,this).set(i.id,i),i;}var _D=new WeakMap();var _I=new WeakMap();var _R=new WeakMap();var _F=new WeakMap();class tU{constructor(t=128){_classPrivateFieldInitSpec(this,_D,[]);_classPrivateFieldInitSpec(this,_I,!1);_classPrivateFieldInitSpec(this,_R,void 0);_classPrivateFieldInitSpec(this,_F,-1);_classPrivateFieldSet(_R,this,t);}add({cmd:t,undo:e,post:i,mustExec:r,type:s=0/0,overwriteIfSameType:n=!1,keepUndo:a=!1}){if(r&&t(),_classPrivateFieldGet(_I,this))return;let o={cmd:t,undo:e,post:i,type:s};if(-1===_classPrivateFieldGet(_F,this)){_classPrivateFieldGet(_D,this).length>0&&(_classPrivateFieldGet(_D,this).length=0),_classPrivateFieldSet(_F,this,0),_classPrivateFieldGet(_D,this).push(o);return;}if(n&&_classPrivateFieldGet(_D,this)[_classPrivateFieldGet(_F,this)].type===s){a&&(o.undo=_classPrivateFieldGet(_D,this)[_classPrivateFieldGet(_F,this)].undo),_classPrivateFieldGet(_D,this)[_classPrivateFieldGet(_F,this)]=o;return;}let l=_classPrivateFieldGet(_F,this)+1;l===_classPrivateFieldGet(_R,this)?_classPrivateFieldGet(_D,this).splice(0,1):(_classPrivateFieldSet(_F,this,l),l<_classPrivateFieldGet(_D,this).length&&_classPrivateFieldGet(_D,this).splice(l)),_classPrivateFieldGet(_D,this).push(o);}undo(){if(-1===_classPrivateFieldGet(_F,this))return;_classPrivateFieldSet(_I,this,!0);let{undo:t,post:e}=_classPrivateFieldGet(_D,this)[_classPrivateFieldGet(_F,this)];t(),e!==null&&e!==void 0&&e(),_classPrivateFieldSet(_I,this,!1),_classPrivateFieldSet(_F,this,_classPrivateFieldGet(_F,this)-1);}redo(){if(_classPrivateFieldGet(_F,this)<_classPrivateFieldGet(_D,this).length-1){_classPrivateFieldSet(_F,this,_classPrivateFieldGet(_F,this)+1),_classPrivateFieldSet(_I,this,!0);let{cmd:t,post:e}=_classPrivateFieldGet(_D,this)[_classPrivateFieldGet(_F,this)];t(),e!==null&&e!==void 0&&e(),_classPrivateFieldSet(_I,this,!1);}}hasSomethingToUndo(){return-1!==_classPrivateFieldGet(_F,this);}hasSomethingToRedo(){return _classPrivateFieldGet(_F,this)<_classPrivateFieldGet(_D,this).length-1;}cleanType(t){if(-1!==_classPrivateFieldGet(_F,this)){for(let e=_classPrivateFieldGet(_F,this);e>=0;e--)if(_classPrivateFieldGet(_D,this)[e].type!==t){_classPrivateFieldGet(_D,this).splice(e+1,_classPrivateFieldGet(_F,this)-e),_classPrivateFieldSet(_F,this,e);return;}_classPrivateFieldGet(_D,this).length=0,_classPrivateFieldSet(_F,this,-1);}}destroy(){_classPrivateFieldSet(_D,this,null);}}class tz{constructor(t){this.callbacks=new Map();let{isMac:e}=z.platform;for(let[i,r,s={}]of t){let t=i.some(t=>t.startsWith("mac+"));for(let n of i){let i=n;if(t){let t=n.startsWith("mac+");if(e!==t)continue;t&&(i=n.slice(4));}let[a,o]=_O.call(tz,i);null!==a&&this.callbacks.getOrInsertComputed(a,W).push({callback:r,options:s,modifiers:o});}}}exec(t,e){let i=this.callbacks.get(e.key);if(!i){if(/^[a-z]$/i.test(e.key))return;let t=_B.call(tz,e.code);if(null===t||t===e.key||!(i=this.callbacks.get(t)))return;}let r=(e.altKey?tz.ALT:0)|(e.ctrlKey?tz.CTRL:0)|(e.metaKey?tz.META:0)|(e.shiftKey?tz.SHIFT:0),s=i.find(t=>t.modifiers===r);if(!s)return;let{callback:n,options:{bubbles:a=!1,args:o=[],checker:l=null}}=s;(!l||l(t,e))&&(n.bind(t,...o,e)(),a||tu(e));}}_tz=tz;function _O(t){let e=null,i=0;for(let r of t.split("+")){if(!(r=r.trim()))continue;let s=r.toUpperCase(),n=_tz[s];if(n){i|=n;continue;}if(null!==e){E(`KeyboardManager: multiple keys in shortcut "${t}"`);break;}e="SPACE"===s?" ":r;}return null===e&&E(`KeyboardManager: no key found in shortcut "${t}"`),[e,i];}function _B(t){var _e$1$toLowerCase,_e$2;let e=/^(?:Key([A-Z])|(?:Digit|Numpad)(\d))$/.exec(t);return e?(_e$1$toLowerCase=(_e$2=e[1])===null||_e$2===void 0?void 0:_e$2.toLowerCase())!==null&&_e$1$toLowerCase!==void 0?_e$1$toLowerCase:e[2]:null;}_defineProperty(tz,"ALT",1);_defineProperty(tz,"CTRL",2);_defineProperty(tz,"META",4);_defineProperty(tz,"SHIFT",8);class tG{get _colors(){let t=new Map([["CanvasText",null],["Canvas",null]]),e=document.createElement("span");for(let i of(e.style.visibility="hidden",e.style.colorScheme="only light",document.body.append(e),t.keys())){e.style.color=i;let r=window.getComputedStyle(e).color;t.set(i,tm(r));}return e.remove(),D(this,"_colors",t);}convert(t){let e=tm(t);if(!window.matchMedia("(forced-colors: active)").matches)return e;for(let[t,i]of this._colors)if(i.every((t,i)=>t===e[i]))return tG._colorsMapping.get(t);return e;}getHexCode(t){let e=this._colors.get(t);return e?G.makeHexColor(...e):t;}}_defineProperty(tG,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));var _L=new WeakMap();var _N=new WeakMap();var _U=new WeakMap();var _z=new WeakMap();var _G2=new WeakMap();var _j=new WeakMap();var _H=new WeakMap();var _$=new WeakMap();var _V=new WeakMap();var _W=new WeakMap();var _K=new WeakMap();var _X=new WeakMap();var _Y=new WeakMap();var _q=new WeakMap();var _J=new WeakMap();var _Q=new WeakMap();var _Z=new WeakMap();var _tt=new WeakMap();var _te2=new WeakMap();var _ti2=new WeakMap();var _tr=new WeakMap();var _ts=new WeakMap();var _tn=new WeakMap();var _ta=new WeakMap();var _to=new WeakMap();var _tl=new WeakMap();var _th2=new WeakMap();var _td=new WeakMap();var _tc=new WeakMap();var _tu=new WeakMap();var _tp2=new WeakMap();var _tg=new WeakMap();var _tm=new WeakMap();var _tf=new WeakMap();var _tb=new WeakMap();var _tv=new WeakMap();var _ty=new WeakMap();var _tA=new WeakMap();var _tx=new WeakMap();var _tw=new WeakMap();var _tS=new WeakMap();var _tC=new WeakMap();var _tE=new WeakMap();var _t_=new WeakMap();var _tT=new WeakMap();var _tk=new WeakMap();var _tM=new WeakMap();var _tP=new WeakMap();var _tD=new WeakMap();var _tI2=new WeakMap();var _tR2=new WeakMap();var _tj_brand=new WeakSet();class tj{static get _keyboardManager(){let t=tj.prototype,e=t=>_classPrivateFieldGet(_tP,t).contains(document.activeElement)&&"BUTTON"!==document.activeElement.tagName&&t.hasSomethingToControl(),i=(t,{target:e})=>{if(e instanceof HTMLInputElement){let{type:t}=e;return"text"!==t&&"number"!==t;}return!0;},r=this.TRANSLATE_SMALL,s=this.TRANSLATE_BIG;return D(this,"_keyboardManager",new tz([[["ctrl+a","mac+meta+a"],t.selectAll,{checker:i}],[["ctrl+z","mac+meta+z"],t.undo,{checker:i}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],t.redo,{checker:i}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],t.delete,{checker:i}],[["Enter"],t.addNewEditorFromKeyboard,{checker:(t,{target:e})=>!(e instanceof HTMLButtonElement)&&_classPrivateFieldGet(_tP,t).contains(e)&&!t.isEnterHandled}],[["Space"],t.addNewEditorFromKeyboard,{checker:(t,{target:e})=>!(e instanceof HTMLButtonElement)&&_classPrivateFieldGet(_tP,t).contains(document.activeElement)}],[["Escape"],t.unselectAll],[["ArrowLeft"],t.translateSelectedEditors,{args:[-r,0],checker:e}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-s,0],checker:e}],[["ArrowRight"],t.translateSelectedEditors,{args:[r,0],checker:e}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[s,0],checker:e}],[["ArrowUp"],t.translateSelectedEditors,{args:[0,-r],checker:e}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-s],checker:e}],[["ArrowDown"],t.translateSelectedEditors,{args:[0,r],checker:e}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,s],checker:e}]]));}constructor(_t7,_e3,_i4,_r2,s,n,a,o,l,h,d,c,u,p,g,_m2){_classPrivateMethodInitSpec(this,_tj_brand);_classPrivateFieldInitSpec(this,_L,new AbortController());_classPrivateFieldInitSpec(this,_N,null);_classPrivateFieldInitSpec(this,_U,null);_classPrivateFieldInitSpec(this,_z,new Map());_classPrivateFieldInitSpec(this,_G2,new Map());_classPrivateFieldInitSpec(this,_j,null);_classPrivateFieldInitSpec(this,_H,null);_classPrivateFieldInitSpec(this,_$,null);_classPrivateFieldInitSpec(this,_V,null);_classPrivateFieldInitSpec(this,_W,null);_classPrivateFieldInitSpec(this,_K,new tU());_classPrivateFieldInitSpec(this,_X,null);_classPrivateFieldInitSpec(this,_Y,null);_classPrivateFieldInitSpec(this,_q,null);_classPrivateFieldInitSpec(this,_J,0);_classPrivateFieldInitSpec(this,_Q,new Set());_classPrivateFieldInitSpec(this,_Z,null);_classPrivateFieldInitSpec(this,_tt,null);_classPrivateFieldInitSpec(this,_te2,new Set());_defineProperty(this,"_editorUndoBar",null);_classPrivateFieldInitSpec(this,_ti2,!1);_classPrivateFieldInitSpec(this,_tr,!1);_classPrivateFieldInitSpec(this,_ts,!1);_classPrivateFieldInitSpec(this,_tn,null);_classPrivateFieldInitSpec(this,_ta,null);_classPrivateFieldInitSpec(this,_to,null);_classPrivateFieldInitSpec(this,_tl,null);_classPrivateFieldInitSpec(this,_th2,!1);_classPrivateFieldInitSpec(this,_td,null);_classPrivateFieldInitSpec(this,_tc,new tL());_classPrivateFieldInitSpec(this,_tu,!1);_classPrivateFieldInitSpec(this,_tp2,!1);_classPrivateFieldInitSpec(this,_tg,!1);_classPrivateFieldInitSpec(this,_tm,null);_classPrivateFieldInitSpec(this,_tf,null);_classPrivateFieldInitSpec(this,_tb,null);_classPrivateFieldInitSpec(this,_tv,null);_classPrivateFieldInitSpec(this,_ty,null);_classPrivateFieldInitSpec(this,_tA,m.NONE);_classPrivateFieldInitSpec(this,_tx,new Set());_classPrivateFieldInitSpec(this,_tw,null);_classPrivateFieldInitSpec(this,_tS,null);_classPrivateFieldInitSpec(this,_tC,null);_classPrivateFieldInitSpec(this,_tE,null);_classPrivateFieldInitSpec(this,_t_,null);_classPrivateFieldInitSpec(this,_tT,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1});_classPrivateFieldInitSpec(this,_tk,[0,0]);_classPrivateFieldInitSpec(this,_tM,null);_classPrivateFieldInitSpec(this,_tP,null);_classPrivateFieldInitSpec(this,_tD,null);_classPrivateFieldInitSpec(this,_tI2,null);_classPrivateFieldInitSpec(this,_tR2,null);let _f2=this._signal=_classPrivateFieldGet(_L,this).signal;_classPrivateFieldSet(_tP,this,_t7),_classPrivateFieldSet(_tD,this,_e3),_classPrivateFieldSet(_tI2,this,_i4),_classPrivateFieldSet(_$,this,_r2),_classPrivateFieldSet(_X,this,s),_classPrivateFieldSet(_tS,this,n),_classPrivateFieldSet(_t_,this,o),this._eventBus=a;let b={signal:_f2,...tF};a.on("editingaction",this.onEditingAction.bind(this),b),a.on("pagechanging",this.onPageChanging.bind(this),b),a.on("scalechanging",this.onScaleChanging.bind(this),b),a.on("rotationchanging",this.onRotationChanging.bind(this),b),a.on("setpreference",this.onSetPreference.bind(this),b),a.on("switchannotationeditorparams",t=>this.updateParams(t.type,t.value),b),window.addEventListener("pointerdown",()=>{_classPrivateFieldSet(_tp2,this,!0);},{capture:!0,signal:_f2}),window.addEventListener("pointerup",()=>{_classPrivateFieldSet(_tp2,this,!1);},{capture:!0,signal:_f2}),window.addEventListener("beforeunload",this.endCurrentEditing.bind(this),{capture:!0,signal:_f2}),_assertClassBrand(_tj_brand,this,_tF).call(this),_assertClassBrand(_tj_brand,this,_tO).call(this),_assertClassBrand(_tj_brand,this,_tB2).call(this),_classPrivateFieldSet(_V,this,o.annotationStorage),_classPrivateFieldSet(_tn,this,o.filterFactory),_classPrivateFieldSet(_tC,this,l),_classPrivateFieldSet(_tl,this,h||null),_classPrivateFieldSet(_ti2,this,d),_classPrivateFieldSet(_tr,this,c),_classPrivateFieldSet(_ts,this,u),_classPrivateFieldSet(_ty,this,p||null),this.viewParameters={realScale:ti.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=g||null,this._supportsPinchToZoom=!1!==_m2,s===null||s===void 0?void 0:s.setSidebarUiManager(this);}destroy(){var _classPrivateFieldGet0,_classPrivateFieldGet1,_classPrivateFieldGet10,_classPrivateFieldGet11,_classPrivateFieldGet12,_classPrivateFieldGet13,_this$_editorUndoBar;for(let t of((_classPrivateFieldGet8=_classPrivateFieldGet(_tR2,this))!==null&&_classPrivateFieldGet8!==void 0&&_classPrivateFieldGet8.resolve(),_classPrivateFieldSet(_tR2,this,null),(_classPrivateFieldGet9=_classPrivateFieldGet(_L,this))!==null&&_classPrivateFieldGet9!==void 0&&_classPrivateFieldGet9.abort(),_classPrivateFieldSet(_L,this,null),this._signal=null,_classPrivateFieldGet(_G2,this).values())){var _classPrivateFieldGet8,_classPrivateFieldGet9;t.destroy();}_classPrivateFieldGet(_G2,this).clear(),_classPrivateFieldGet(_z,this).clear(),_classPrivateFieldGet(_te2,this).clear(),(_classPrivateFieldGet0=_classPrivateFieldGet(_tv,this))!==null&&_classPrivateFieldGet0!==void 0&&_classPrivateFieldGet0.clear(),_classPrivateFieldSet(_N,this,null),_classPrivateFieldGet(_tx,this).clear(),_classPrivateFieldGet(_K,this).destroy(),(_classPrivateFieldGet1=_classPrivateFieldGet(_$,this))!==null&&_classPrivateFieldGet1!==void 0&&_classPrivateFieldGet1.destroy(),(_classPrivateFieldGet10=_classPrivateFieldGet(_X,this))!==null&&_classPrivateFieldGet10!==void 0&&_classPrivateFieldGet10.destroy(),(_classPrivateFieldGet11=_classPrivateFieldGet(_tS,this))!==null&&_classPrivateFieldGet11!==void 0&&_classPrivateFieldGet11.destroy(),(_classPrivateFieldGet12=_classPrivateFieldGet(_td,this))!==null&&_classPrivateFieldGet12!==void 0&&_classPrivateFieldGet12.hide(),_classPrivateFieldSet(_td,this,null),(_classPrivateFieldGet13=_classPrivateFieldGet(_tb,this))!==null&&_classPrivateFieldGet13!==void 0&&_classPrivateFieldGet13.destroy(),_classPrivateFieldSet(_tb,this,null),_classPrivateFieldSet(_U,this,null),_classPrivateFieldGet(_ta,this)&&(clearTimeout(_classPrivateFieldGet(_ta,this)),_classPrivateFieldSet(_ta,this,null)),_classPrivateFieldGet(_tM,this)&&(clearTimeout(_classPrivateFieldGet(_tM,this)),_classPrivateFieldSet(_tM,this,null)),(_this$_editorUndoBar=this._editorUndoBar)!==null&&_this$_editorUndoBar!==void 0&&_this$_editorUndoBar.destroy(),_classPrivateFieldSet(_t_,this,null);}combinedSignal(t){return AbortSignal.any([this._signal,t.signal]);}get mlManager(){return _classPrivateFieldGet(_ty,this);}get useNewAltTextFlow(){return _classPrivateFieldGet(_tr,this);}get useNewAltTextWhenAddingImage(){return _classPrivateFieldGet(_ts,this);}get hcmFilter(){return D(this,"hcmFilter",_classPrivateFieldGet(_tC,this)?_classPrivateFieldGet(_tn,this).addHCMFilter(_classPrivateFieldGet(_tC,this).foreground,_classPrivateFieldGet(_tC,this).background):"none");}get direction(){return D(this,"direction",getComputedStyle(_classPrivateFieldGet(_tP,this)).direction);}get _highlightColors(){return D(this,"_highlightColors",_classPrivateFieldGet(_tl,this)?new Map(_classPrivateFieldGet(_tl,this).split(",").map(t=>((t=t.split("=").map(t=>t.trim()))[1]=t[1].toUpperCase(),t))):null);}get highlightColors(){let{_highlightColors:t}=this;if(!t)return D(this,"highlightColors",null);let e=new Map(),i=!!_classPrivateFieldGet(_tC,this);for(let[r,s]of t){let t=r.endsWith("_HCM");if(i&&t){e.set(r.replace("_HCM",""),s);continue;}i||t||e.set(r,s);}return D(this,"highlightColors",e);}get highlightColorNames(){return D(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,t=>t.reverse())):null);}getNonHCMColor(t){if(!this._highlightColors)return t;let e=this.highlightColorNames.get(t);return this._highlightColors.get(e)||t;}getNonHCMColorName(t){return this.highlightColorNames.get(t)||t;}setCurrentDrawingSession(t){t?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),_classPrivateFieldSet(_q,this,t);}setMainHighlightColorPicker(t){_classPrivateFieldSet(_tb,this,t);}editAltText(t,e=!1){var _classPrivateFieldGet14;(_classPrivateFieldGet14=_classPrivateFieldGet(_$,this))===null||_classPrivateFieldGet14===void 0||_classPrivateFieldGet14.editAltText(this,t,e);}hasCommentManager(){return!!_classPrivateFieldGet(_X,this);}editComment(t,e,i,r){var _classPrivateFieldGet15;(_classPrivateFieldGet15=_classPrivateFieldGet(_X,this))===null||_classPrivateFieldGet15===void 0||_classPrivateFieldGet15.showDialog(this,t,e,i,r);}selectComment(t,e){let i=_classPrivateFieldGet(_G2,this).get(t),r=i===null||i===void 0?void 0:i.getEditorByUID(e);r===null||r===void 0||r.toggleComment(!0,!0);}updateComment(t){var _classPrivateFieldGet16;(_classPrivateFieldGet16=_classPrivateFieldGet(_X,this))===null||_classPrivateFieldGet16===void 0||_classPrivateFieldGet16.updateComment(t.getData());}updatePopupColor(t){var _classPrivateFieldGet17;(_classPrivateFieldGet17=_classPrivateFieldGet(_X,this))===null||_classPrivateFieldGet17===void 0||_classPrivateFieldGet17.updatePopupColor(t);}removeComment(t){var _classPrivateFieldGet18;(_classPrivateFieldGet18=_classPrivateFieldGet(_X,this))===null||_classPrivateFieldGet18===void 0||_classPrivateFieldGet18.removeComments([t.uid]);}deleteComment(t,e){let i=()=>{t.comment=e;},r=()=>{var _this$_editorUndoBar2;(_this$_editorUndoBar2=this._editorUndoBar)!==null&&_this$_editorUndoBar2!==void 0&&_this$_editorUndoBar2.show(i,"comment"),this.toggleComment(null),t.comment=null;};this.addCommands({cmd:r,undo:i,mustExec:!0});}toggleComment(t,e,i){var _classPrivateFieldGet19;(_classPrivateFieldGet19=_classPrivateFieldGet(_X,this))===null||_classPrivateFieldGet19===void 0||_classPrivateFieldGet19.toggleCommentPopup(t,e,i);}makeCommentColor(t,e){var _classPrivateFieldGet20;return t&&((_classPrivateFieldGet20=_classPrivateFieldGet(_X,this))===null||_classPrivateFieldGet20===void 0?void 0:_classPrivateFieldGet20.makeCommentColor(t,e))||null;}getCommentDialogElement(){var _classPrivateFieldGet21;return((_classPrivateFieldGet21=_classPrivateFieldGet(_X,this))===null||_classPrivateFieldGet21===void 0?void 0:_classPrivateFieldGet21.dialogElement)||null;}async waitForEditorsRendered(t){if(_classPrivateFieldGet(_G2,this).has(t-1))return;let{resolve:e,promise:i}=Promise.withResolvers(),r=i=>{i.pageNumber===t&&(this._eventBus.off("editorsrendered",r),e());};this._eventBus.on("editorsrendered",r,tF),await i;}getSignature(t){var _classPrivateFieldGet22;(_classPrivateFieldGet22=_classPrivateFieldGet(_tS,this))===null||_classPrivateFieldGet22===void 0||_classPrivateFieldGet22.getSignature({uiManager:this,editor:t});}get signatureManager(){return _classPrivateFieldGet(_tS,this);}switchToMode(t,e){this._eventBus.on("annotationeditormodechanged",e,{once:!0,signal:this._signal,...tF}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:t});}setPreference(t,e){this._eventBus.dispatch("setpreference",{source:this,name:t,value:e});}onSetPreference({name:t,value:e}){"enableNewAltTextWhenAddingImage"===t&&_classPrivateFieldSet(_ts,this,e);}onPageChanging({pageNumber:t}){_classPrivateFieldSet(_J,this,t-1);}deletePage(t){for(let e of this.getEditors(t))e.remove();_classPrivateFieldGet(_G2,this).delete(t),_classPrivateFieldGet(_J,this)===t&&_classPrivateFieldSet(_J,this,0);}focusMainContainer(){_classPrivateFieldGet(_tP,this).focus();}findParent(t,e){for(let i of _classPrivateFieldGet(_G2,this).values()){let{x:r,y:s,width:n,height:a}=i.div.getBoundingClientRect();if(t>=r&&t<=r+n&&e>=s&&e<=s+a)return i;}return null;}disableUserSelect(t=!1){_classPrivateFieldGet(_tD,this).classList.toggle("noUserSelect",t);}addShouldRescale(t){_classPrivateFieldGet(_te2,this).add(t);}removeShouldRescale(t){_classPrivateFieldGet(_te2,this).delete(t);}onScaleChanging({scale:t}){var _classPrivateFieldGet23;for(let e of(this.commitOrRemove(),this.viewParameters.realScale=t*ti.PDF_TO_CSS_UNITS,_classPrivateFieldGet(_te2,this)))e.onScaleChanging();(_classPrivateFieldGet23=_classPrivateFieldGet(_q,this))===null||_classPrivateFieldGet23===void 0||_classPrivateFieldGet23.onScaleChanging();}onRotationChanging({pagesRotation:t}){this.commitOrRemove(),this.viewParameters.rotation=t;}highlightSelection(t="",e=!1){let i=document.getSelection();if(!i||i.isCollapsed)return;let{anchorNode:r,anchorOffset:s,focusNode:n,focusOffset:a}=i,o=i.toString(),l=_assertClassBrand(_tj_brand,this,_tL2).call(this,i).closest(".textLayer"),h=this.getSelectionBoxes(l);if(!h)return;i.empty();let d=_assertClassBrand(_tj_brand,this,_tN2).call(this,l),c=_classPrivateFieldGet(_tA,this)===m.NONE,u=()=>{let i=d===null||d===void 0?void 0:d.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:t,boxes:h,anchorNode:r,anchorOffset:s,focusNode:n,focusOffset:a,text:o});c&&this.showAllEditors("highlight",!0,!0),e&&(i===null||i===void 0?void 0:i.editComment());};c?this.switchToMode(m.HIGHLIGHT,u):u();}commentSelection(t=""){this.highlightSelection(t,!0);}endCurrentEditing(){var _this$currentLayer;this.commitOrRemove(),(_this$currentLayer=this.currentLayer)===null||_this$currentLayer===void 0?void 0:_this$currentLayer.endDrawingSession(!1);}getAndRemoveDataFromAnnotationStorage(t){if(!_classPrivateFieldGet(_V,this))return null;let e=`${g}${t}`,i=_classPrivateFieldGet(_V,this).getRawValue(e);return i&&_classPrivateFieldGet(_V,this).remove(e),i;}addToAnnotationStorage(t){t.isEmpty()||!_classPrivateFieldGet(_V,this)||_classPrivateFieldGet(_V,this).has(t.id)||_classPrivateFieldGet(_V,this).setValue(t.id,t);}a11yAlert(t,e=null){let i=_classPrivateFieldGet(_tI2,this);i&&(i.setAttribute("data-l10n-id",t),e?i.setAttribute("data-l10n-args",JSON.stringify(e)):i.removeAttribute("data-l10n-args"));}blur(){if(this.isShiftKeyDown=!1,_classPrivateFieldGet(_th2,this)&&(_classPrivateFieldSet(_th2,this,!1),_assertClassBrand(_tj_brand,this,_tj).call(this,"main_toolbar")),!this.hasSelection)return;let{activeElement:t}=document;for(let e of _classPrivateFieldGet(_tx,this))if(e.div.contains(t)){_classPrivateFieldSet(_tf,this,[e,t]),e._focusEventsAllowed=!1;break;}}focus(){if(!_classPrivateFieldGet(_tf,this))return;let[t,e]=_classPrivateFieldGet(_tf,this);_classPrivateFieldSet(_tf,this,null),e.addEventListener("focusin",()=>{t._focusEventsAllowed=!0;},{once:!0,signal:this._signal}),e.focus();}addEditListeners(){_assertClassBrand(_tj_brand,this,_tB2).call(this),this.setEditingState(!0);}removeEditListeners(){_assertClassBrand(_tj_brand,this,_tV).call(this),this.setEditingState(!1);}dragOver(t){for(let{type:e}of t.dataTransfer.items)for(let i of _classPrivateFieldGet(_tt,this))if(i.isHandlingMimeForPasting(e)){t.dataTransfer.dropEffect="copy",t.preventDefault();return;}}drop(t){for(let e of t.dataTransfer.items)for(let i of _classPrivateFieldGet(_tt,this))if(i.isHandlingMimeForPasting(e.type)){i.paste(e,this.currentLayer),t.preventDefault();return;}}copy(t){var _classPrivateFieldGet24;if(t.preventDefault(),(_classPrivateFieldGet24=_classPrivateFieldGet(_N,this))!==null&&_classPrivateFieldGet24!==void 0&&_classPrivateFieldGet24.commitOrRemove(),!this.hasSelection)return;let e=[];for(let t of _classPrivateFieldGet(_tx,this)){let i=t.serialize(!0);i&&e.push(i);}0!==e.length&&t.clipboardData.setData("application/pdfjs",JSON.stringify(e));}cut(t){this.copy(t),this.delete();}async paste(t){t.preventDefault();let{clipboardData:e}=t;for(let t of e.items)for(let e of _classPrivateFieldGet(_tt,this))if(e.isHandlingMimeForPasting(t.type))return void e.paste(t,this.currentLayer);let i=e.getData("application/pdfjs");if(!i)return;try{i=JSON.parse(i);}catch(t){E(`paste: "${t.message}".`);return;}if(!Array.isArray(i))return;this.unselectAll();let r=this.currentLayer;try{let t=[];for(let e of i){let i=await r.deserialize(e);if(!i)return;t.push(i);}let e=()=>{for(let e of t)_assertClassBrand(_tj_brand,this,_tX).call(this,e);_assertClassBrand(_tj_brand,this,_tY).call(this,t);};this.addCommands({cmd:e,undo:()=>{for(let e of t)e.remove();},mustExec:!0});}catch(t){E(`paste: "${t.message}".`);}}keydown(t){this.isShiftKeyDown||"Shift"!==t.key||(this.isShiftKeyDown=!0),_classPrivateFieldGet(_tA,this)===m.NONE||this.isEditorHandlingKeyboard||tj._keyboardManager.exec(this,t);}keyup(t){this.isShiftKeyDown&&"Shift"===t.key&&(this.isShiftKeyDown=!1,_classPrivateFieldGet(_th2,this)&&(_classPrivateFieldSet(_th2,this,!1),_assertClassBrand(_tj_brand,this,_tj).call(this,"main_toolbar")));}onEditingAction({name:t}){switch(t){case"undo":case"redo":case"delete":case"selectAll":this[t]();break;case"highlightSelection":this.highlightSelection("context_menu");break;case"commentSelection":this.commentSelection("context_menu");}}updatePageIndex(t,e){for(let i of _classPrivateFieldGet(_H,this).get(t)||[])i.pageIndex=e;let i=_classPrivateFieldGet(_j,this).get(t);i&&(i.pageIndex=e,_classPrivateFieldGet(_G2,this).set(e,i),_classPrivateFieldGet(_tu,this)?i.enable():i.disable());}startUpdatePages(){_classPrivateFieldSet(_j,this,new Map(_classPrivateFieldGet(_G2,this))),_classPrivateFieldGet(_G2,this).clear();let t=_classPrivateFieldSet(_H,this,new Map()),e=e=>{t.getOrInsertComputed(e.pageIndex,W).push(e);};for(let t of _classPrivateFieldGet(_z,this).values())e(t);for(let[t,i]of _classPrivateFieldGet(_V,this))t.startsWith(g)&&!_classPrivateFieldGet(_z,this).has(t)&&Number.isInteger(i===null||i===void 0?void 0:i.pageIndex)&&e(i);}endUpdatePages(){_classPrivateFieldSet(_j,this,null),_classPrivateFieldSet(_H,this,null);}clonePage(t,e){for(let i of this.getEditors(t)){let t=i.serialize(i.mode!==m.HIGHLIGHT);t&&(t.pageIndex=e,t.id=this.getId(),t.isClone=!0,delete t.popupRef,_classPrivateFieldGet(_V,this).setValue(t.id,t));}}findClonesForPage(t){let e=[],{pageIndex:i}=t;for(let[r,s]of _classPrivateFieldGet(_V,this))s.pageIndex===i&&s.isClone&&(_classPrivateFieldGet(_V,this).remove(r),e.push(t.deserialize(s).then(e=>{e&&(e.isClone=!0,t.addOrRebuild(e));})));return Promise.all(e);}setEditingState(t){t?(_assertClassBrand(_tj_brand,this,_tH).call(this),_assertClassBrand(_tj_brand,this,_tW).call(this),_assertClassBrand(_tj_brand,this,_tG2).call(this,{isEditing:_classPrivateFieldGet(_tA,this)!==m.NONE,isEmpty:_assertClassBrand(_tj_brand,this,_tJ).call(this),hasSomethingToUndo:_classPrivateFieldGet(_K,this).hasSomethingToUndo(),hasSomethingToRedo:_classPrivateFieldGet(_K,this).hasSomethingToRedo(),hasSelectedEditor:!1})):(_assertClassBrand(_tj_brand,this,_t$).call(this),_assertClassBrand(_tj_brand,this,_tK).call(this),_assertClassBrand(_tj_brand,this,_tG2).call(this,{isEditing:!1}),this.disableUserSelect(!1));}registerEditorTypes(t){if(!_classPrivateFieldGet(_tt,this))for(let e of(_classPrivateFieldSet(_tt,this,t),_classPrivateFieldGet(_tt,this)))_assertClassBrand(_tj_brand,this,_tq).call(this,e.defaultPropertiesToUpdate);}getId(){return _classPrivateFieldGet(_tc,this).id;}get currentLayer(){return _classPrivateFieldGet(_G2,this).get(_classPrivateFieldGet(_J,this));}getLayer(t){return _classPrivateFieldGet(_G2,this).get(t);}get currentPageIndex(){return _classPrivateFieldGet(_J,this);}addLayer(t){_classPrivateFieldGet(_G2,this).set(t.pageIndex,t),_classPrivateFieldGet(_tu,this)?t.enable():t.disable();}removeLayer(t){_classPrivateFieldGet(_G2,this).delete(t.pageIndex);}async updateMode(t,e=null,i=!1,r=!1,s=!1,n=!1){if(_classPrivateFieldGet(_tA,this)!==t&&(!_classPrivateFieldGet(_tR2,this)||(await _classPrivateFieldGet(_tR2,this).promise,_classPrivateFieldGet(_tR2,this)))){var _classPrivateFieldGet25,_classPrivateFieldGet26,_classPrivateFieldGet27;if(_classPrivateFieldSet(_tR2,this,Promise.withResolvers()),(_classPrivateFieldGet25=_classPrivateFieldGet(_q,this))!==null&&_classPrivateFieldGet25!==void 0&&_classPrivateFieldGet25.commitOrRemove(),_classPrivateFieldGet(_tA,this)===m.POPUP&&(_classPrivateFieldGet26=_classPrivateFieldGet(_X,this))!==null&&_classPrivateFieldGet26!==void 0&&_classPrivateFieldGet26.hideSidebar(),(_classPrivateFieldGet27=_classPrivateFieldGet(_X,this))!==null&&_classPrivateFieldGet27!==void 0&&_classPrivateFieldGet27.destroyPopup(),_classPrivateFieldSet(_tA,this,t),t===m.NONE){var _this$_editorUndoBar3;for(let t of(this.setEditingState(!1),_assertClassBrand(_tj_brand,this,_tQ).call(this),_classPrivateFieldGet(_z,this).values()))t.hideStandaloneCommentButton();(_this$_editorUndoBar3=this._editorUndoBar)!==null&&_this$_editorUndoBar3!==void 0&&_this$_editorUndoBar3.hide(),this.toggleComment(null),_classPrivateFieldGet(_tR2,this).resolve();return;}for(let t of _classPrivateFieldGet(_z,this).values())t.addStandaloneCommentButton();for(let e of(t===m.SIGNATURE&&(await((_classPrivateFieldGet28=_classPrivateFieldGet(_tS,this))===null||_classPrivateFieldGet28===void 0?void 0:_classPrivateFieldGet28.loadSignatures())),i&&tB.clearPointerType(),this.setEditingState(!0),await _assertClassBrand(_tj_brand,this,_tZ).call(this),this.unselectAll(),_classPrivateFieldGet(_G2,this).values())){var _classPrivateFieldGet28;e.updateMode(t);}if(t===m.POPUP){var _classPrivateFieldGet29;_classPrivateFieldGet(_U,this)||_classPrivateFieldSet(_U,this,await _classPrivateFieldGet(_t_,this).getAnnotationsByType(new Set(_classPrivateFieldGet(_tt,this).map(t=>t._editorType))));let t=new Set(),e=[];for(let i of _classPrivateFieldGet(_z,this).values()){let{annotationElementId:r,hasComment:s,deleted:n}=i;r&&t.add(r),s&&!n&&e.push(i.getData());}for(let i of _classPrivateFieldGet(_U,this)){let{id:r,popupRef:s,contentsObj:n}=i;s&&(n===null||n===void 0?void 0:n.str)&&!t.has(r)&&!_classPrivateFieldGet(_Q,this).has(r)&&e.push(i);}(_classPrivateFieldGet29=_classPrivateFieldGet(_X,this))===null||_classPrivateFieldGet29===void 0||_classPrivateFieldGet29.showSidebar(e);}if(!e){r&&this.addNewEditorFromKeyboard(),_classPrivateFieldGet(_tR2,this).resolve();return;}for(let t of _classPrivateFieldGet(_z,this).values())t.uid===e?(this.setSelected(t),n?t.editComment():s?t.enterInEditMode():t.focus()):t.unselect();_classPrivateFieldGet(_tR2,this).resolve();}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor();}updateToolbar(t){t.mode!==_classPrivateFieldGet(_tA,this)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,...t});}updateParams(t,e){if(_classPrivateFieldGet(_tt,this)){switch(t){case f.CREATE:this.currentLayer.addNewEditor(e);return;case f.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(_classPrivateFieldGet(_tE,this)||_classPrivateFieldSet(_tE,this,new Map())).set(t,e),this.showAllEditors("highlight",e);}if(this.hasSelection)for(let i of _classPrivateFieldGet(_tx,this))i.updateParams(t,e);else for(let i of _classPrivateFieldGet(_tt,this))i.updateDefaultParams(t,e);}}showAllEditors(t,e,i=!1){var _classPrivateFieldGet30,_classPrivateFieldGet31;for(let i of _classPrivateFieldGet(_z,this).values())i.editorType===t&&i.show(e);((_classPrivateFieldGet30=(_classPrivateFieldGet31=_classPrivateFieldGet(_tE,this))===null||_classPrivateFieldGet31===void 0?void 0:_classPrivateFieldGet31.get(f.HIGHLIGHT_SHOW_ALL))!==null&&_classPrivateFieldGet30!==void 0?_classPrivateFieldGet30:!0)!==e&&_assertClassBrand(_tj_brand,this,_tq).call(this,[[f.HIGHLIGHT_SHOW_ALL,e]]);}enableWaiting(t=!1){if(_classPrivateFieldGet(_tg,this)!==t)for(let e of(_classPrivateFieldSet(_tg,this,t),_classPrivateFieldGet(_G2,this).values()))t?e.disableClick():e.enableClick(),e.div.classList.toggle("waiting",t);}*getEditors(t){for(let e of _classPrivateFieldGet(_z,this).values())e.pageIndex===t&&(yield e);}getEditor(t){return _classPrivateFieldGet(_z,this).get(t);}addEditor(t){_classPrivateFieldGet(_z,this).set(t.id,t);}removeEditor(t){var _classPrivateFieldGet32,_classPrivateFieldGet33;t.div.contains(document.activeElement)&&(_classPrivateFieldGet(_ta,this)&&clearTimeout(_classPrivateFieldGet(_ta,this)),_classPrivateFieldSet(_ta,this,setTimeout(()=>{this.focusMainContainer(),_classPrivateFieldSet(_ta,this,null);},0))),_classPrivateFieldGet(_z,this).delete(t.id),t.annotationElementId&&(_classPrivateFieldGet32=_classPrivateFieldGet(_tv,this))!==null&&_classPrivateFieldGet32!==void 0&&_classPrivateFieldGet32.delete(t.annotationElementId),this.unselect(t),t.annotationElementId&&_classPrivateFieldGet(_Q,this).has(t.annotationElementId)||((_classPrivateFieldGet33=_classPrivateFieldGet(_V,this))===null||_classPrivateFieldGet33===void 0?void 0:_classPrivateFieldGet33.remove(t.id));}addDeletedAnnotationElement(t){_classPrivateFieldGet(_Q,this).add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0;}isDeletedAnnotationElement(t){return _classPrivateFieldGet(_Q,this).has(t);}removeDeletedAnnotationElement(t){_classPrivateFieldGet(_Q,this).delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1;}setActiveEditor(t){_classPrivateFieldGet(_N,this)!==t&&(_classPrivateFieldSet(_N,this,t),t&&_assertClassBrand(_tj_brand,this,_tq).call(this,t.propertiesToUpdate));}updateUI(t){_classPrivateGetter(_tj_brand,this,_get_t)===t&&_assertClassBrand(_tj_brand,this,_tq).call(this,t.propertiesToUpdate);}updateUIForDefaultProperties(t){_assertClassBrand(_tj_brand,this,_tq).call(this,t.defaultPropertiesToUpdate);}toggleSelected(t){if(_classPrivateFieldGet(_tx,this).has(t)){_classPrivateFieldGet(_tx,this).delete(t),t.unselect(),_assertClassBrand(_tj_brand,this,_tG2).call(this,{hasSelectedEditor:this.hasSelection});return;}_classPrivateFieldGet(_tx,this).add(t),t.select(),_assertClassBrand(_tj_brand,this,_tq).call(this,t.propertiesToUpdate),_assertClassBrand(_tj_brand,this,_tG2).call(this,{hasSelectedEditor:!0});}setSelected(t){var _classPrivateFieldGet35;for(let e of(this.updateToolbar({mode:t.mode,editId:t.uid}),(_classPrivateFieldGet34=_classPrivateFieldGet(_q,this))!==null&&_classPrivateFieldGet34!==void 0&&_classPrivateFieldGet34.commitOrRemove(),_classPrivateFieldGet(_tx,this))){var _classPrivateFieldGet34;e!==t&&e.unselect();}(_classPrivateFieldGet35=_classPrivateFieldGet(_X,this))!==null&&_classPrivateFieldGet35!==void 0&&_classPrivateFieldGet35.destroyPopup(),_classPrivateFieldGet(_tx,this).clear(),_classPrivateFieldGet(_tx,this).add(t),t.select(),_assertClassBrand(_tj_brand,this,_tq).call(this,t.propertiesToUpdate),_assertClassBrand(_tj_brand,this,_tG2).call(this,{hasSelectedEditor:!0});}get firstSelectedEditor(){return _classPrivateFieldGet(_tx,this).values().next().value;}unselect(t){t.unselect(),_classPrivateFieldGet(_tx,this).delete(t),_assertClassBrand(_tj_brand,this,_tG2).call(this,{hasSelectedEditor:this.hasSelection});}get hasSelection(){return 0!==_classPrivateFieldGet(_tx,this).size;}get isEnterHandled(){return 1===_classPrivateFieldGet(_tx,this).size&&this.firstSelectedEditor.isEnterHandled;}undo(){var _this$_editorUndoBar4;_classPrivateFieldGet(_K,this).undo(),_assertClassBrand(_tj_brand,this,_tG2).call(this,{hasSomethingToUndo:_classPrivateFieldGet(_K,this).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:_assertClassBrand(_tj_brand,this,_tJ).call(this)}),(_this$_editorUndoBar4=this._editorUndoBar)===null||_this$_editorUndoBar4===void 0?void 0:_this$_editorUndoBar4.hide();}redo(){_classPrivateFieldGet(_K,this).redo(),_assertClassBrand(_tj_brand,this,_tG2).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:_classPrivateFieldGet(_K,this).hasSomethingToRedo(),isEmpty:_assertClassBrand(_tj_brand,this,_tJ).call(this)});}addCommands(t){_classPrivateFieldGet(_K,this).add(t),_assertClassBrand(_tj_brand,this,_tG2).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:_assertClassBrand(_tj_brand,this,_tJ).call(this)});}cleanUndoStack(t){_classPrivateFieldGet(_K,this).cleanType(t);}delete(){var _this$currentLayer2;this.commitOrRemove();let t=(_this$currentLayer2=this.currentLayer)===null||_this$currentLayer2===void 0?void 0:_this$currentLayer2.endDrawingSession(!0);if(!this.hasSelection&&!t)return;let e=t?[t]:[..._classPrivateFieldGet(_tx,this)],i=()=>{for(let t of((_this$_editorUndoBar5=this._editorUndoBar)!==null&&_this$_editorUndoBar5!==void 0&&_this$_editorUndoBar5.show(r,1===e.length?e[0].editorType:e.length),e)){var _this$_editorUndoBar5;t.remove();}},r=()=>{for(let t of e)_assertClassBrand(_tj_brand,this,_tX).call(this,t);};this.addCommands({cmd:i,undo:r,mustExec:!0});}commitOrRemove(){var _classPrivateFieldGet36;(_classPrivateFieldGet36=_classPrivateFieldGet(_N,this))===null||_classPrivateFieldGet36===void 0||_classPrivateFieldGet36.commitOrRemove();}hasSomethingToControl(){return _classPrivateFieldGet(_N,this)||this.hasSelection;}selectAll(){for(let t of _classPrivateFieldGet(_tx,this))t.commit();_assertClassBrand(_tj_brand,this,_tY).call(this,_classPrivateFieldGet(_z,this).values());}unselectAll(){if(!_classPrivateFieldGet(_N,this)||(_classPrivateFieldGet(_N,this).commitOrRemove(),_classPrivateFieldGet(_tA,this)===m.NONE)){var _classPrivateFieldGet37,_classPrivateFieldGet38;if(!((_classPrivateFieldGet37=_classPrivateFieldGet(_q,this))!==null&&_classPrivateFieldGet37!==void 0&&_classPrivateFieldGet37.commitOrRemove())&&((_classPrivateFieldGet38=_classPrivateFieldGet(_X,this))!==null&&_classPrivateFieldGet38!==void 0&&_classPrivateFieldGet38.destroyPopup(),this.hasSelection)){for(let t of _classPrivateFieldGet(_tx,this))t.unselect();_classPrivateFieldGet(_tx,this).clear(),_assertClassBrand(_tj_brand,this,_tG2).call(this,{hasSelectedEditor:!1});}}}translateSelectedEditors(t,e,i=!1){if(i||this.commitOrRemove(),!this.hasSelection)return;_classPrivateFieldGet(_tk,this)[0]+=t,_classPrivateFieldGet(_tk,this)[1]+=e;let[r,s]=_classPrivateFieldGet(_tk,this),n=[..._classPrivateFieldGet(_tx,this)];for(let i of(_classPrivateFieldGet(_tM,this)&&clearTimeout(_classPrivateFieldGet(_tM,this)),_classPrivateFieldSet(_tM,this,setTimeout(()=>{_classPrivateFieldSet(_tM,this,null),_classPrivateFieldGet(_tk,this)[0]=_classPrivateFieldGet(_tk,this)[1]=0,this.addCommands({cmd:()=>{for(let t of n)_classPrivateFieldGet(_z,this).has(t.id)&&(t.translateInPage(r,s),t.translationDone());},undo:()=>{for(let t of n)_classPrivateFieldGet(_z,this).has(t.id)&&(t.translateInPage(-r,-s),t.translationDone());},mustExec:!1});},1e3)),n))i.translateInPage(t,e),i.translationDone();}setUpDragSession(){if(this.hasSelection)for(let t of(this.disableUserSelect(!0),_classPrivateFieldSet(_Z,this,new Map()),_classPrivateFieldGet(_tx,this)))_classPrivateFieldGet(_Z,this).set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1});}endDragSession(){if(!_classPrivateFieldGet(_Z,this))return!1;this.disableUserSelect(!1);let t=_classPrivateFieldGet(_Z,this);_classPrivateFieldSet(_Z,this,null);let e=!1;for(let[{x:i,y:r,pageIndex:s},n]of t)n.newX=i,n.newY=r,n.newPageIndex=s,e||(e=i!==n.savedX||r!==n.savedY||s!==n.savedPageIndex);if(!e)return!1;let i=(t,e,i,r)=>{if(_classPrivateFieldGet(_z,this).has(t.id)){let s=_classPrivateFieldGet(_G2,this).get(r);s?t._setParentAndPosition(s,e,i):(t.pageIndex=r,t.x=e,t.y=i);}};return this.addCommands({cmd:()=>{for(let[e,{newX:r,newY:s,newPageIndex:n}]of t)i(e,r,s,n);},undo:()=>{for(let[e,{savedX:r,savedY:s,savedPageIndex:n}]of t)i(e,r,s,n);},mustExec:!0}),!0;}dragSelectedEditors(t,e){if(_classPrivateFieldGet(_Z,this))for(let i of _classPrivateFieldGet(_Z,this).keys())i.drag(t,e);}rebuild(t){if(null===t.parent){let e=this.getLayer(t.pageIndex);e?(e.changeParent(t),e.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild());}else t.parent.addOrRebuild(t);}get isEditorHandlingKeyboard(){var _this$getActive;return((_this$getActive=this.getActive())===null||_this$getActive===void 0?void 0:_this$getActive.shouldGetKeyboardEvents())||1===_classPrivateFieldGet(_tx,this).size&&this.firstSelectedEditor.shouldGetKeyboardEvents();}isActive(t){return _classPrivateFieldGet(_N,this)===t;}getActive(){return _classPrivateFieldGet(_N,this);}getMode(){return _classPrivateFieldGet(_tA,this);}isEditingMode(){return _classPrivateFieldGet(_tA,this)!==m.NONE;}get imageManager(){return D(this,"imageManager",new tN());}getSelectionBoxes(t){let e;if(!t)return null;let i=document.getSelection();for(let e=0,r=i.rangeCount;e<r;e++)if(!t.contains(i.getRangeAt(e).commonAncestorContainer))return null;let{x:r,y:s,width:n,height:a}=t.getBoundingClientRect();switch(t.getAttribute("data-main-rotation")){case"90":e=(t,e,i,o)=>({x:(e-s)/a,y:1-(t+i-r)/n,width:o/a,height:i/n});break;case"180":e=(t,e,i,o)=>({x:1-(t+i-r)/n,y:1-(e+o-s)/a,width:i/n,height:o/a});break;case"270":e=(t,e,i,o)=>({x:1-(e+o-s)/a,y:(t-r)/n,width:o/a,height:i/n});break;default:e=(t,e,i,o)=>({x:(t-r)/n,y:(e-s)/a,width:i/n,height:o/a});}let o=[];for(let t=0,r=i.rangeCount;t<r;t++){let r=i.getRangeAt(t);if(!r.collapsed)for(let{x:t,y:i,width:s,height:n}of r.getClientRects())0!==s&&0!==n&&o.push(e(t,i,s,n));}return 0===o.length?null:o;}addChangedExistingAnnotation({annotationElementId:t,id:e}){(_classPrivateFieldGet(_W,this)||_classPrivateFieldSet(_W,this,new Map())).set(t,e);}removeChangedExistingAnnotation({annotationElementId:t}){var _classPrivateFieldGet39;(_classPrivateFieldGet39=_classPrivateFieldGet(_W,this))===null||_classPrivateFieldGet39===void 0||_classPrivateFieldGet39.delete(t);}renderAnnotationElement(t){var _classPrivateFieldGet40;let e=(_classPrivateFieldGet40=_classPrivateFieldGet(_W,this))===null||_classPrivateFieldGet40===void 0?void 0:_classPrivateFieldGet40.get(t.data.id);if(!e)return;let i=_classPrivateFieldGet(_V,this).getRawValue(e);!i||(_classPrivateFieldGet(_tA,this)!==m.NONE||i.hasBeenModified)&&i.renderAnnotationElement(t);}setMissingCanvas(t,e,i){var _classPrivateFieldGet41;let r=(_classPrivateFieldGet41=_classPrivateFieldGet(_tv,this))===null||_classPrivateFieldGet41===void 0?void 0:_classPrivateFieldGet41.get(t);r&&(r.setCanvas(e,i),_classPrivateFieldGet(_tv,this).delete(t));}addMissingCanvas(t,e){(_classPrivateFieldGet(_tv,this)||_classPrivateFieldSet(_tv,this,new Map())).set(t,e);}}function _tL2({anchorNode:t}){return t.nodeType===Node.TEXT_NODE?t.parentElement:t;}function _tN2(t){let{currentLayer:e}=this;if(e.hasTextLayer(t))return e;for(let e of _classPrivateFieldGet(_G2,this).values())if(e.hasTextLayer(t))return e;return null;}function _tU2(){let t=document.getSelection();if(!t||t.isCollapsed)return;let e=_assertClassBrand(_tj_brand,this,_tL2).call(this,t).closest(".textLayer"),i=this.getSelectionBoxes(e);i&&(_classPrivateFieldGet(_td,this)||_classPrivateFieldSet(_td,this,new tR(this)),_classPrivateFieldGet(_td,this).show(e,i,"ltr"===this.direction));}function _tz2(){var _classPrivateFieldGet150;let t=document.getSelection();if(!t||t.isCollapsed){var _classPrivateFieldGet148;_classPrivateFieldGet(_tw,this)&&((_classPrivateFieldGet148=_classPrivateFieldGet(_td,this))!==null&&_classPrivateFieldGet148!==void 0&&_classPrivateFieldGet148.hide(),_classPrivateFieldSet(_tw,this,null),_assertClassBrand(_tj_brand,this,_tG2).call(this,{hasSelectedText:!1}));return;}let{anchorNode:e}=t;if(e===_classPrivateFieldGet(_tw,this))return;let i=_assertClassBrand(_tj_brand,this,_tL2).call(this,t).closest(".textLayer");if(!i){var _classPrivateFieldGet149;_classPrivateFieldGet(_tw,this)&&((_classPrivateFieldGet149=_classPrivateFieldGet(_td,this))!==null&&_classPrivateFieldGet149!==void 0&&_classPrivateFieldGet149.hide(),_classPrivateFieldSet(_tw,this,null),_assertClassBrand(_tj_brand,this,_tG2).call(this,{hasSelectedText:!1}));return;}if((_classPrivateFieldGet150=_classPrivateFieldGet(_td,this))!==null&&_classPrivateFieldGet150!==void 0&&_classPrivateFieldGet150.hide(),_classPrivateFieldSet(_tw,this,e),_assertClassBrand(_tj_brand,this,_tG2).call(this,{hasSelectedText:!0}),(_classPrivateFieldGet(_tA,this)===m.HIGHLIGHT||_classPrivateFieldGet(_tA,this)===m.NONE)&&(_classPrivateFieldGet(_tA,this)===m.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),_classPrivateFieldSet(_th2,this,this.isShiftKeyDown),!this.isShiftKeyDown)){let t=_classPrivateFieldGet(_tA,this)===m.HIGHLIGHT?_assertClassBrand(_tj_brand,this,_tN2).call(this,i):null;if(t!==null&&t!==void 0&&t.toggleDrawing(),_classPrivateFieldGet(_tp2,this)){let e=new AbortController(),i=this.combinedSignal(e),r=i=>{("pointerup"!==i.type||0===i.button)&&(e.abort(),t!==null&&t!==void 0&&t.toggleDrawing(!0),"pointerup"===i.type&&_assertClassBrand(_tj_brand,this,_tj).call(this,"main_toolbar"));};window.addEventListener("pointerup",r,{signal:i}),window.addEventListener("blur",r,{signal:i});}else t!==null&&t!==void 0&&t.toggleDrawing(!0),_assertClassBrand(_tj_brand,this,_tj).call(this,"main_toolbar");}}function _tj(t=""){_classPrivateFieldGet(_tA,this)===m.HIGHLIGHT?this.highlightSelection(t):_classPrivateFieldGet(_ti2,this)&&_assertClassBrand(_tj_brand,this,_tU2).call(this);}function _tF(){document.addEventListener("selectionchange",_assertClassBrand(_tj_brand,this,_tz2).bind(this),{signal:this._signal});}function _tH(){if(_classPrivateFieldGet(_to,this))return;_classPrivateFieldSet(_to,this,new AbortController());let t=this.combinedSignal(_classPrivateFieldGet(_to,this));window.addEventListener("focus",this.focus.bind(this),{signal:t}),window.addEventListener("blur",this.blur.bind(this),{signal:t});}function _t$(){var _classPrivateFieldGet151;(_classPrivateFieldGet151=_classPrivateFieldGet(_to,this))!==null&&_classPrivateFieldGet151!==void 0&&_classPrivateFieldGet151.abort(),_classPrivateFieldSet(_to,this,null);}function _tB2(){if(_classPrivateFieldGet(_tm,this))return;_classPrivateFieldSet(_tm,this,new AbortController());let t=this.combinedSignal(_classPrivateFieldGet(_tm,this));window.addEventListener("keydown",this.keydown.bind(this),{signal:t}),window.addEventListener("keyup",this.keyup.bind(this),{signal:t});}function _tV(){var _classPrivateFieldGet152;(_classPrivateFieldGet152=_classPrivateFieldGet(_tm,this))!==null&&_classPrivateFieldGet152!==void 0&&_classPrivateFieldGet152.abort(),_classPrivateFieldSet(_tm,this,null);}function _tW(){if(_classPrivateFieldGet(_Y,this))return;_classPrivateFieldSet(_Y,this,new AbortController());let t=this.combinedSignal(_classPrivateFieldGet(_Y,this));document.addEventListener("copy",this.copy.bind(this),{signal:t}),document.addEventListener("cut",this.cut.bind(this),{signal:t}),document.addEventListener("paste",this.paste.bind(this),{signal:t});}function _tK(){var _classPrivateFieldGet153;(_classPrivateFieldGet153=_classPrivateFieldGet(_Y,this))!==null&&_classPrivateFieldGet153!==void 0&&_classPrivateFieldGet153.abort(),_classPrivateFieldSet(_Y,this,null);}function _tO(){let t=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:t}),document.addEventListener("drop",this.drop.bind(this),{signal:t});}function _tG2(t){Object.entries(t).some(([t,e])=>_classPrivateFieldGet(_tT,this)[t]!==e)&&(this._eventBus.dispatch("editingstateschanged",{source:this,details:Object.assign(_classPrivateFieldGet(_tT,this),t)}),_classPrivateFieldGet(_tA,this)===m.HIGHLIGHT&&!1===t.hasSelectedEditor&&_assertClassBrand(_tj_brand,this,_tq).call(this,[[f.HIGHLIGHT_FREE,!0]]));}function _tq(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t});}async function _tZ(){if(!_classPrivateFieldGet(_tu,this)){_classPrivateFieldSet(_tu,this,!0);let t=[];for(let e of _classPrivateFieldGet(_G2,this).values())t.push(e.enable());for(let e of(await Promise.all(t),_classPrivateFieldGet(_z,this).values()))e.enable();}}function _tQ(){if(this.unselectAll(),_classPrivateFieldGet(_tu,this)){for(let t of(_classPrivateFieldSet(_tu,this,!1),_classPrivateFieldGet(_G2,this).values()))t.disable();for(let t of _classPrivateFieldGet(_z,this).values())t.disable();}}function _tX(t){let e=_classPrivateFieldGet(_G2,this).get(t.pageIndex);e?e.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t));}function _get_t(_this2){let t=null;for(t of _classPrivateFieldGet(_tx,_this2));return t;}function _tJ(){if(0===_classPrivateFieldGet(_z,this).size)return!0;if(1===_classPrivateFieldGet(_z,this).size)for(let t of _classPrivateFieldGet(_z,this).values())return t.isEmpty();return!1;}function _tY(t){for(let t of _classPrivateFieldGet(_tx,this))t.unselect();for(let e of(_classPrivateFieldGet(_tx,this).clear(),t))e.isEmpty()||(_classPrivateFieldGet(_tx,this).add(e),e.select());_assertClassBrand(_tj_brand,this,_tG2).call(this,{hasSelectedEditor:this.hasSelection});}_defineProperty(tj,"TRANSLATE_SMALL",1);_defineProperty(tj,"TRANSLATE_BIG",10);var _h2=new WeakMap();var _t8=new WeakMap();var _t9=new WeakMap();var _t0=new WeakMap();var _t1=new WeakMap();var _t10=new WeakMap();var _t11=new WeakMap();var _t12=new WeakMap();var _o2=new WeakMap();var _t13=new WeakMap();var _t14=new WeakMap();var _et=new WeakMap();var _tH_brand=new WeakSet();class tH{constructor(_t15){_classPrivateMethodInitSpec(this,_tH_brand);_classPrivateFieldInitSpec(this,_h2,null);_classPrivateFieldInitSpec(this,_t8,!1);_classPrivateFieldInitSpec(this,_t9,null);_classPrivateFieldInitSpec(this,_t0,null);_classPrivateFieldInitSpec(this,_t1,null);_classPrivateFieldInitSpec(this,_t10,null);_classPrivateFieldInitSpec(this,_t11,!1);_classPrivateFieldInitSpec(this,_t12,null);_classPrivateFieldInitSpec(this,_o2,null);_classPrivateFieldInitSpec(this,_t13,null);_classPrivateFieldInitSpec(this,_t14,null);_classPrivateFieldInitSpec(this,_et,!1);_classPrivateFieldSet(_o2,this,_t15),_classPrivateFieldSet(_et,this,_t15._uiManager.useNewAltTextFlow),_ee._||(_ee._=Object.freeze({added:"pdfjs-editor-new-alt-text-added-button","added-label":"pdfjs-editor-new-alt-text-added-button-label",missing:"pdfjs-editor-new-alt-text-missing-button","missing-label":"pdfjs-editor-new-alt-text-missing-button-label",review:"pdfjs-editor-new-alt-text-to-review-button","review-label":"pdfjs-editor-new-alt-text-to-review-button-label"}));}static initialize(t){var _tH$_l10n;(_tH$_l10n=tH._l10n)!==null&&_tH$_l10n!==void 0?_tH$_l10n:tH._l10n=t;}async render(){let t=_classPrivateFieldSet(_t9,this,document.createElement("button"));t.className="altText",t.tabIndex="0";let e=_classPrivateFieldSet(_t0,this,document.createElement("span"));t.append(e),_classPrivateFieldGet(_et,this)?(t.classList.add("new"),t.setAttribute("data-l10n-id",_ee._.missing),e.setAttribute("data-l10n-id",_ee._["missing-label"])):(t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button"),e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button-label"));let i=_classPrivateFieldGet(_o2,this)._uiManager._signal;t.addEventListener("contextmenu",tc,{signal:i}),t.addEventListener("pointerdown",t=>t.stopPropagation(),{signal:i});let r=t=>{t.preventDefault(),_classPrivateFieldGet(_o2,this)._uiManager.editAltText(_classPrivateFieldGet(_o2,this)),_classPrivateFieldGet(_et,this)&&_classPrivateFieldGet(_o2,this)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:_classPrivateGetter(_tH_brand,this,_get_ei)}});};return t.addEventListener("click",r,{capture:!0,signal:i}),t.addEventListener("keydown",e=>{e.target===t&&"Enter"===e.key&&(_classPrivateFieldSet(_t11,this,!0),r(e));},{signal:i}),await _assertClassBrand(_tH_brand,this,_er).call(this),t;}finish(){_classPrivateFieldGet(_t9,this)&&(_classPrivateFieldGet(_t9,this).focus({focusVisible:_classPrivateFieldGet(_t11,this)}),_classPrivateFieldSet(_t11,this,!1));}isEmpty(){return _classPrivateFieldGet(_et,this)?null===_classPrivateFieldGet(_h2,this):!_classPrivateFieldGet(_h2,this)&&!_classPrivateFieldGet(_t8,this);}hasData(){return _classPrivateFieldGet(_et,this)?null!==_classPrivateFieldGet(_h2,this)||!!_classPrivateFieldGet(_t13,this):this.isEmpty();}get guessedText(){return _classPrivateFieldGet(_t13,this);}async setGuessedText(t){null===_classPrivateFieldGet(_h2,this)&&(_classPrivateFieldSet(_t13,this,t),_classPrivateFieldSet(_t14,this,await tH._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:t})),_assertClassBrand(_tH_brand,this,_er).call(this));}toggleAltTextBadge(t=!1){if(!_classPrivateFieldGet(_et,this)||_classPrivateFieldGet(_h2,this)){var _classPrivateFieldGet42;(_classPrivateFieldGet42=_classPrivateFieldGet(_t12,this))!==null&&_classPrivateFieldGet42!==void 0&&_classPrivateFieldGet42.remove(),_classPrivateFieldSet(_t12,this,null);return;}if(!_classPrivateFieldGet(_t12,this)){let t=_classPrivateFieldSet(_t12,this,document.createElement("div"));t.className="noAltTextBadge",_classPrivateFieldGet(_o2,this).div.append(t);}_classPrivateFieldGet(_t12,this).classList.toggle("hidden",!t);}serialize(t){let e=_classPrivateFieldGet(_h2,this);return t||_classPrivateFieldGet(_t13,this)!==e||(e=_classPrivateFieldGet(_t14,this)),{altText:e,decorative:_classPrivateFieldGet(_t8,this),guessedText:_classPrivateFieldGet(_t13,this),textWithDisclaimer:_classPrivateFieldGet(_t14,this)};}get data(){return{altText:_classPrivateFieldGet(_h2,this),decorative:_classPrivateFieldGet(_t8,this)};}set data({altText:t,decorative:e,guessedText:i,textWithDisclaimer:r,cancel:s=!1}){i&&(_classPrivateFieldSet(_t13,this,i),_classPrivateFieldSet(_t14,this,r)),(_classPrivateFieldGet(_h2,this)!==t||_classPrivateFieldGet(_t8,this)!==e)&&(s||(_classPrivateFieldSet(_h2,this,t),_classPrivateFieldSet(_t8,this,e)),_assertClassBrand(_tH_brand,this,_er).call(this));}toggle(t=!1){_classPrivateFieldGet(_t9,this)&&(!t&&_classPrivateFieldGet(_t10,this)&&(clearTimeout(_classPrivateFieldGet(_t10,this)),_classPrivateFieldSet(_t10,this,null)),_classPrivateFieldGet(_t9,this).disabled=!t);}shown(){_classPrivateFieldGet(_o2,this)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:_classPrivateGetter(_tH_brand,this,_get_ei)}});}destroy(){var _classPrivateFieldGet43,_classPrivateFieldGet44;(_classPrivateFieldGet43=_classPrivateFieldGet(_t9,this))!==null&&_classPrivateFieldGet43!==void 0&&_classPrivateFieldGet43.remove(),_classPrivateFieldSet(_t9,this,null),_classPrivateFieldSet(_t0,this,null),_classPrivateFieldSet(_t1,this,null),(_classPrivateFieldGet44=_classPrivateFieldGet(_t12,this))!==null&&_classPrivateFieldGet44!==void 0&&_classPrivateFieldGet44.remove(),_classPrivateFieldSet(_t12,this,null);}}function _get_ei(_this3){return _classPrivateFieldGet(_h2,_this3)&&"added"||null===_classPrivateFieldGet(_h2,_this3)&&_this3.guessedText&&"review"||"missing";}async function _er(){let t=_classPrivateFieldGet(_t9,this);if(!t)return;if(_classPrivateFieldGet(_et,this)){var _classPrivateFieldGet154,_classPrivateFieldGet155;if(t.classList.toggle("done",!!_classPrivateFieldGet(_h2,this)),t.setAttribute("data-l10n-id",_ee._[_classPrivateGetter(_tH_brand,this,_get_ei)]),(_classPrivateFieldGet154=_classPrivateFieldGet(_t0,this))!==null&&_classPrivateFieldGet154!==void 0&&_classPrivateFieldGet154.setAttribute("data-l10n-id",_ee._[`${_classPrivateGetter(_tH_brand,this,_get_ei)}-label`]),!_classPrivateFieldGet(_h2,this))return void((_classPrivateFieldGet155=_classPrivateFieldGet(_t1,this))===null||_classPrivateFieldGet155===void 0?void 0:_classPrivateFieldGet155.remove());}else{if(!_classPrivateFieldGet(_h2,this)&&!_classPrivateFieldGet(_t8,this)){var _classPrivateFieldGet156;t.classList.remove("done"),(_classPrivateFieldGet156=_classPrivateFieldGet(_t1,this))===null||_classPrivateFieldGet156===void 0?void 0:_classPrivateFieldGet156.remove();return;}t.classList.add("done"),t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button");}let e=_classPrivateFieldGet(_t1,this);if(!e){_classPrivateFieldSet(_t1,this,e=document.createElement("span")),e.className="tooltip",e.setAttribute("role","tooltip"),e.id=`alt-text-tooltip-${_classPrivateFieldGet(_o2,this).id}`;let i=_classPrivateFieldGet(_o2,this)._uiManager._signal;i.addEventListener("abort",()=>{clearTimeout(_classPrivateFieldGet(_t10,this)),_classPrivateFieldSet(_t10,this,null);},{once:!0}),t.addEventListener("mouseenter",()=>{_classPrivateFieldSet(_t10,this,setTimeout(()=>{_classPrivateFieldSet(_t10,this,null),_classPrivateFieldGet(_t1,this).classList.add("show"),_classPrivateFieldGet(_o2,this)._reportTelemetry({action:"alt_text_tooltip"});},100));},{signal:i}),t.addEventListener("mouseleave",()=>{var _classPrivateFieldGet157;_classPrivateFieldGet(_t10,this)&&(clearTimeout(_classPrivateFieldGet(_t10,this)),_classPrivateFieldSet(_t10,this,null)),(_classPrivateFieldGet157=_classPrivateFieldGet(_t1,this))===null||_classPrivateFieldGet157===void 0?void 0:_classPrivateFieldGet157.classList.remove("show");},{signal:i});}_classPrivateFieldGet(_t8,this)?e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(e.removeAttribute("data-l10n-id"),e.textContent=_classPrivateFieldGet(_h2,this)),e.parentNode||t.append(e);let i=_classPrivateFieldGet(_o2,this).getElementForAltText();i===null||i===void 0||i.setAttribute("aria-describedby",e.id);}var _ee={_:null};_defineProperty(tH,"_l10n",null);var _es=new WeakMap();var _en=new WeakMap();var _ea=new WeakMap();var _o3=new WeakMap();var _eo=new WeakMap();var _el=new WeakMap();var _eh=new WeakMap();var _ed=new WeakMap();var _ec=new WeakMap();var _eu=new WeakMap();var _t$_brand=new WeakSet();class t${constructor(_t16){_classPrivateMethodInitSpec(this,_t$_brand);_classPrivateFieldInitSpec(this,_es,null);_classPrivateFieldInitSpec(this,_en,null);_classPrivateFieldInitSpec(this,_ea,!1);_classPrivateFieldInitSpec(this,_o3,null);_classPrivateFieldInitSpec(this,_eo,null);_classPrivateFieldInitSpec(this,_el,null);_classPrivateFieldInitSpec(this,_eh,null);_classPrivateFieldInitSpec(this,_ed,null);_classPrivateFieldInitSpec(this,_ec,!1);_classPrivateFieldInitSpec(this,_eu,null);_classPrivateFieldSet(_o3,this,_t16);}renderForToolbar(){let t=_classPrivateFieldSet(_en,this,document.createElement("button"));return t.className="comment",_assertClassBrand(_t$_brand,this,_A2).call(this,t,!1);}renderForStandalone(){let t=_classPrivateFieldSet(_es,this,document.createElement("button"));t.className="annotationCommentButton";let e=_classPrivateFieldGet(_o3,this).commentButtonPosition;if(e){let{style:i}=t;i.insetInlineEnd=`calc(${100*("ltr"===_classPrivateFieldGet(_o3,this)._uiManager.direction?1-e[0]:e[0])}% - var(--comment-button-dim))`,i.top=`calc(${100*e[1]}% - var(--comment-button-dim))`;let r=_classPrivateFieldGet(_o3,this).commentButtonColor;r&&(i.backgroundColor=r);}return _assertClassBrand(_t$_brand,this,_A2).call(this,t,!0);}focusButton(){setTimeout(()=>{var _ref,_classPrivateFieldGet45;(_ref=(_classPrivateFieldGet45=_classPrivateFieldGet(_es,this))!==null&&_classPrivateFieldGet45!==void 0?_classPrivateFieldGet45:_classPrivateFieldGet(_en,this))===null||_ref===void 0||_ref.focus();},0);}onUpdatedColor(){if(!_classPrivateFieldGet(_es,this))return;let t=_classPrivateFieldGet(_o3,this).commentButtonColor;t&&(_classPrivateFieldGet(_es,this).style.backgroundColor=t),_classPrivateFieldGet(_o3,this)._uiManager.updatePopupColor(_classPrivateFieldGet(_o3,this));}get commentButtonWidth(){var _classPrivateFieldGet46,_classPrivateFieldGet47;return((_classPrivateFieldGet46=(_classPrivateFieldGet47=_classPrivateFieldGet(_es,this))===null||_classPrivateFieldGet47===void 0?void 0:_classPrivateFieldGet47.getBoundingClientRect().width)!==null&&_classPrivateFieldGet46!==void 0?_classPrivateFieldGet46:0)/_classPrivateFieldGet(_o3,this).parent.boundingClientRect.width;}get commentPopupPositionInLayer(){if(_classPrivateFieldGet(_eu,this))return _classPrivateFieldGet(_eu,this);if(!_classPrivateFieldGet(_es,this))return null;let{x:t,y:e,height:i}=_classPrivateFieldGet(_es,this).getBoundingClientRect(),{x:r,y:s,width:n,height:a}=_classPrivateFieldGet(_o3,this).parent.boundingClientRect;return[(t-r)/n,(e+i-s)/a];}set commentPopupPositionInLayer(t){_classPrivateFieldSet(_eu,this,t);}hasDefaultPopupPosition(){return null===_classPrivateFieldGet(_eu,this);}removeStandaloneCommentButton(){var _classPrivateFieldGet48;(_classPrivateFieldGet48=_classPrivateFieldGet(_es,this))!==null&&_classPrivateFieldGet48!==void 0&&_classPrivateFieldGet48.remove(),_classPrivateFieldSet(_es,this,null);}removeToolbarCommentButton(){var _classPrivateFieldGet49;(_classPrivateFieldGet49=_classPrivateFieldGet(_en,this))!==null&&_classPrivateFieldGet49!==void 0&&_classPrivateFieldGet49.remove(),_classPrivateFieldSet(_en,this,null);}setCommentButtonStates({selected:t,hasPopup:e}){_classPrivateFieldGet(_es,this)&&(_classPrivateFieldGet(_es,this).classList.toggle("selected",t),_classPrivateFieldGet(_es,this).ariaExpanded=e);}edit(t){let e,i,r=this.commentPopupPositionInLayer;if(r)[e,i]=r;else{[e,i]=_classPrivateFieldGet(_o3,this).commentButtonPosition;let{width:t,height:r,x:s,y:n}=_classPrivateFieldGet(_o3,this);e=s+e*t,i=n+i*r;}let s=_classPrivateFieldGet(_o3,this).parent.boundingClientRect,{x:n,y:a,width:o,height:l}=s;_classPrivateFieldGet(_o3,this)._uiManager.editComment(_classPrivateFieldGet(_o3,this),n+e*o,a+i*l,{...t,parentDimensions:s});}finish(){_classPrivateFieldGet(_en,this)&&(_classPrivateFieldGet(_en,this).focus({focusVisible:_classPrivateFieldGet(_ea,this)}),_classPrivateFieldSet(_ea,this,!1));}isDeleted(){return _classPrivateFieldGet(_ec,this)||""===_classPrivateFieldGet(_eh,this);}isEmpty(){return null===_classPrivateFieldGet(_eh,this);}hasBeenEdited(){return this.isDeleted()||_classPrivateFieldGet(_eh,this)!==_classPrivateFieldGet(_eo,this);}serialize(){return this.data;}get data(){return{text:_classPrivateFieldGet(_eh,this),richText:_classPrivateFieldGet(_el,this),date:_classPrivateFieldGet(_ed,this),deleted:this.isDeleted()};}set data(t){if(t!==_classPrivateFieldGet(_eh,this)&&_classPrivateFieldSet(_el,this,null),null===t){_classPrivateFieldSet(_eh,this,""),_classPrivateFieldSet(_ec,this,!0);return;}_classPrivateFieldSet(_eh,this,t),_classPrivateFieldSet(_ed,this,new Date()),_classPrivateFieldSet(_ec,this,!1);}restoreData({text:t,richText:e,date:i}){_classPrivateFieldSet(_eh,this,t),_classPrivateFieldSet(_el,this,e),_classPrivateFieldSet(_ed,this,i),_classPrivateFieldSet(_ec,this,!1);}setInitialText(t,e=null){_classPrivateFieldSet(_eo,this,t),this.data=t,_classPrivateFieldSet(_ed,this,null),_classPrivateFieldSet(_el,this,e);}shown(){}destroy(){var _classPrivateFieldGet50,_classPrivateFieldGet51;(_classPrivateFieldGet50=_classPrivateFieldGet(_en,this))!==null&&_classPrivateFieldGet50!==void 0&&_classPrivateFieldGet50.remove(),_classPrivateFieldSet(_en,this,null),(_classPrivateFieldGet51=_classPrivateFieldGet(_es,this))!==null&&_classPrivateFieldGet51!==void 0&&_classPrivateFieldGet51.remove(),_classPrivateFieldSet(_es,this,null),_classPrivateFieldSet(_eh,this,""),_classPrivateFieldSet(_el,this,null),_classPrivateFieldSet(_ed,this,null),_classPrivateFieldSet(_o3,this,null),_classPrivateFieldSet(_ea,this,!1),_classPrivateFieldSet(_ec,this,!1);}}function _A2(t,e){if(!_classPrivateFieldGet(_o3,this)._uiManager.hasCommentManager())return null;t.tabIndex="0",t.ariaHasPopup="dialog",e?(t.ariaControls="commentPopup",t.setAttribute("data-l10n-id","pdfjs-show-comment-button")):(t.ariaControlsElements=[_classPrivateFieldGet(_o3,this)._uiManager.getCommentDialogElement()],t.setAttribute("data-l10n-id","pdfjs-editor-add-comment-button"));let i=_classPrivateFieldGet(_o3,this)._uiManager._signal;if(!(i instanceof AbortSignal)||i.aborted)return t;t.addEventListener("contextmenu",tc,{signal:i}),e&&(t.addEventListener("focusin",t=>{_classPrivateFieldGet(_o3,this)._focusEventsAllowed=!1,tu(t);},{capture:!0,signal:i}),t.addEventListener("focusout",t=>{_classPrivateFieldGet(_o3,this)._focusEventsAllowed=!0,tu(t);},{capture:!0,signal:i})),t.addEventListener("pointerdown",t=>t.stopPropagation(),{signal:i});let r=e=>{e.preventDefault(),t===_classPrivateFieldGet(_en,this)?this.edit():_classPrivateFieldGet(_o3,this).toggleComment(!0);};return t.addEventListener("click",r,{capture:!0,signal:i}),t.addEventListener("keydown",e=>{e.target===t&&"Enter"===e.key&&(_classPrivateFieldSet(_ea,this,!0),r(e));},{signal:i}),t.addEventListener("pointerenter",()=>{_classPrivateFieldGet(_o3,this).toggleComment(!1,!0);},{signal:i}),t.addEventListener("pointerleave",()=>{_classPrivateFieldGet(_o3,this).toggleComment(!1,!1);},{signal:i}),t;}function tV(t){t.preventDefault();}function tW(t){return t.cancelable?(tu(t),!0):(t.stopPropagation(),!1);}var _tP2=new WeakMap();var _ep=new WeakMap();var _eg=new WeakMap();var _em=new WeakMap();var _ef=new WeakMap();var _eb=new WeakMap();var _ev=new WeakMap();var _ey=new WeakMap();var _eA=new WeakMap();var _ex=new WeakMap();var _ew=new WeakMap();var _eS=new WeakMap();var _eC=new WeakMap();var _eE=new WeakMap();var _e_=new WeakMap();var _eT=new WeakMap();var _tK_brand=new WeakSet();class tK{constructor({container:_t17,isPinchingDisabled:_e4=null,isPinchingStopped:_i5=null,onPinchStart:_r3=null,onPinching:_s2=null,onPinchEnd:_n3=null,onPanning:_a2=null,signal:_o4}){_classPrivateMethodInitSpec(this,_tK_brand);_classPrivateFieldInitSpec(this,_tP2,void 0);_classPrivateFieldInitSpec(this,_ep,!1);_classPrivateFieldInitSpec(this,_eg,null);_classPrivateFieldInitSpec(this,_em,void 0);_classPrivateFieldInitSpec(this,_ef,void 0);_classPrivateFieldInitSpec(this,_eb,void 0);_classPrivateFieldInitSpec(this,_ev,void 0);_classPrivateFieldInitSpec(this,_ey,void 0);_classPrivateFieldInitSpec(this,_eA,!1);_classPrivateFieldInitSpec(this,_ex,null);_classPrivateFieldInitSpec(this,_ew,void 0);_classPrivateFieldInitSpec(this,_eS,new Set());_classPrivateFieldInitSpec(this,_eC,null);_classPrivateFieldInitSpec(this,_eE,void 0);_classPrivateFieldInitSpec(this,_e_,null);_classPrivateFieldInitSpec(this,_eT,0);_classPrivateFieldSet(_tP2,this,_t17),_classPrivateFieldSet(_eg,this,_i5),_classPrivateFieldSet(_em,this,_e4),_classPrivateFieldSet(_ef,this,_r3),_classPrivateFieldSet(_eb,this,_s2),_classPrivateFieldSet(_ev,this,_n3),_classPrivateFieldSet(_ey,this,_a2),_classPrivateFieldSet(_eE,this,new AbortController()),_classPrivateFieldSet(_ew,this,AbortSignal.any([_o4,_classPrivateFieldGet(_eE,this).signal])),_t17.addEventListener("touchstart",_assertClassBrand(_tK_brand,this,_ek).bind(this),{passive:!1,signal:_classPrivateFieldGet(_ew,this)});}get MIN_TOUCH_DISTANCE_TO_PINCH(){return 35/ty.pixelRatio;}get MIN_TOUCH_DISTANCE_TO_SCALE(){return 4/ty.pixelRatio;}destroy(){var _classPrivateFieldGet52,_classPrivateFieldGet53;_assertClassBrand(_tK_brand,this,_eO).call(this),_classPrivateFieldGet(_eS,this).clear(),(_classPrivateFieldGet52=_classPrivateFieldGet(_eE,this))!==null&&_classPrivateFieldGet52!==void 0&&_classPrivateFieldGet52.abort(),_classPrivateFieldSet(_eE,this,null),(_classPrivateFieldGet53=_classPrivateFieldGet(_ex,this))!==null&&_classPrivateFieldGet53!==void 0&&_classPrivateFieldGet53.abort(),_classPrivateFieldSet(_ex,this,null);}}function _ek(t){var _classPrivateFieldGet158;if((_classPrivateFieldGet158=_classPrivateFieldGet(_em,this))!==null&&_classPrivateFieldGet158!==void 0&&_classPrivateFieldGet158.call(this))return;_assertClassBrand(_tK_brand,this,_eM).call(this,t);let e=_classPrivateFieldGet(_eS,this);for(let{identifier:i}of t.changedTouches)e.add(i);if(1===e.size)return void _assertClassBrand(_tK_brand,this,_eP).call(this);if(!_classPrivateFieldGet(_e_,this)){var _classPrivateFieldGet159;_classPrivateFieldSet(_e_,this,new AbortController());let t=AbortSignal.any([_classPrivateFieldGet(_ew,this),_classPrivateFieldGet(_e_,this).signal]),e=_classPrivateFieldGet(_tP2,this),i={signal:t,capture:!1,passive:!1};e.addEventListener("touchmove",_assertClassBrand(_tK_brand,this,_eD).bind(this),i);let r=_assertClassBrand(_tK_brand,this,_eI).bind(this);e.addEventListener("touchend",r,i),e.addEventListener("touchcancel",r,i),i.capture=!0,e.addEventListener("pointerdown",tu,i),e.addEventListener("pointermove",tu,i),e.addEventListener("pointercancel",tV,i),e.addEventListener("pointerup",tV,i),(_classPrivateFieldGet159=_classPrivateFieldGet(_ef,this))===null||_classPrivateFieldGet159===void 0?void 0:_classPrivateFieldGet159.call(this);}_classPrivateFieldSet(_eA,this,tW(t)),_assertClassBrand(_tK_brand,this,_eR).call(this,t);}function _eP(){if(_classPrivateFieldGet(_ex,this))return;let t=_classPrivateFieldSet(_ex,this,new AbortController()),e=AbortSignal.any([_classPrivateFieldGet(_ew,this),t.signal]),i=_classPrivateFieldGet(_tP2,this),r={capture:!0,signal:e,passive:!1},s=t=>{var _classPrivateFieldGet160;"touch"===t.pointerType&&((_classPrivateFieldGet160=_classPrivateFieldGet(_ex,this))!==null&&_classPrivateFieldGet160!==void 0&&_classPrivateFieldGet160.abort(),_classPrivateFieldSet(_ex,this,null));};i.addEventListener("pointerdown",t=>{"touch"===t.pointerType&&(tu(t),s(t));},r),i.addEventListener("pointerup",s,r),i.addEventListener("pointercancel",s,r);}function _eM(t){let e=_classPrivateFieldGet(_eS,this);if(0===e.size)return;let i=_classPrivateFieldSet(_eS,this,new Set());for(let{identifier:r}of t.touches)e.has(r)&&i.add(r);}function _eF(t){let e=_classPrivateFieldGet(_eS,this),i=[];for(let r of t.touches)e.has(r.identifier)&&i.push(r);return i;}function _eR(t){var _classPrivateFieldGet161;let e=_assertClassBrand(_tK_brand,this,_eF).call(this,t);if(2!==e.length||(_classPrivateFieldGet161=_classPrivateFieldGet(_eg,this))!==null&&_classPrivateFieldGet161!==void 0&&_classPrivateFieldGet161.call(this)){_classPrivateFieldSet(_eC,this,null);return;}let[i,r]=e;_classPrivateFieldSet(_eC,this,{touch0X:i.screenX,touch0Y:i.screenY,touch1X:r.screenX,touch1Y:r.screenY,panX:(i.clientX+r.clientX)/2,panY:(i.clientY+r.clientY)/2,screenPanX:(i.screenX+r.screenX)/2,screenPanY:(i.screenY+r.screenY)/2});}function _eD(t){var _classPrivateFieldGet165;if(!_classPrivateFieldGet(_eC,this))return;let e=_assertClassBrand(_tK_brand,this,_eF).call(this,t);if(2!==e.length)return;let i=_classPrivateFieldGet(_eA,this);if(_classPrivateFieldSet(_eA,this,tW(t)),!_classPrivateFieldGet(_eA,this))return;if(!i)return void _assertClassBrand(_tK_brand,this,_eR).call(this,t);let[r,s]=e,{screenX:n,screenY:a}=r,{screenX:o,screenY:l}=s,h=_classPrivateFieldGet(_eC,this),{touch0X:d,touch0Y:c,touch1X:u,touch1Y:p,panX:g,panY:m}=h,f=o-n,b=l-a,v=(r.clientX+s.clientX)/2,y=(r.clientY+s.clientY)/2;h.panX=v,h.panY=y;let A=v-g,x=y-m,w=(n+o)/2,S=(a+l)/2,C=Math.hypot(w-h.screenPanX,S-h.screenPanY);h.screenPanX=w,h.screenPanY=S;let E=Math.hypot(f,b),_=Math.hypot(u-d,p-c),T=_classPrivateFieldGet(_ep,this)?this.MIN_TOUCH_DISTANCE_TO_SCALE:this.MIN_TOUCH_DISTANCE_TO_PINCH+2*C;if(E<1e-4||_<1e-4||Math.abs(_-E)<=T){var _classPrivateFieldGet162;(A||x)&&((_classPrivateFieldGet162=_classPrivateFieldGet(_ey,this))===null||_classPrivateFieldGet162===void 0?void 0:_classPrivateFieldGet162.call(this,A,x));return;}h.touch0X=n,h.touch0Y=a,h.touch1X=o,h.touch1Y=l;let k=Math.sign(E-_);if(!_classPrivateFieldGet(_ep,this)){var _classPrivateFieldGet163;_classPrivateFieldSet(_ep,this,!0),_classPrivateFieldSet(_eT,this,k),(A||x)&&((_classPrivateFieldGet163=_classPrivateFieldGet(_ey,this))===null||_classPrivateFieldGet163===void 0?void 0:_classPrivateFieldGet163.call(this,A,x));return;}if(_classPrivateFieldGet(_eT,this)){let t=_classPrivateFieldGet(_eT,this);if(_classPrivateFieldSet(_eT,this,0),k!==t&&Math.abs(E-_)<=2*C){var _classPrivateFieldGet164;_classPrivateFieldSet(_ep,this,!1),(A||x)&&((_classPrivateFieldGet164=_classPrivateFieldGet(_ey,this))===null||_classPrivateFieldGet164===void 0?void 0:_classPrivateFieldGet164.call(this,A,x));return;}}(_classPrivateFieldGet165=_classPrivateFieldGet(_eb,this))===null||_classPrivateFieldGet165===void 0||_classPrivateFieldGet165.call(this,[g,m],_,E,A,x);}function _eI(t){if(_assertClassBrand(_tK_brand,this,_eM).call(this,t),_classPrivateFieldGet(_eS,this).size>=2)return void _assertClassBrand(_tK_brand,this,_eR).call(this,t);let e=!!_classPrivateFieldGet(_eC,this);_assertClassBrand(_tK_brand,this,_eO).call(this),1===_classPrivateFieldGet(_eS,this).size&&_assertClassBrand(_tK_brand,this,_eP).call(this),e&&tW(t);}function _eO(){var _classPrivateFieldGet166;_classPrivateFieldSet(_eC,this,null),_classPrivateFieldSet(_ep,this,!1),_classPrivateFieldSet(_eT,this,0),_classPrivateFieldSet(_eA,this,!1),_classPrivateFieldGet(_e_,this)&&(_classPrivateFieldGet(_e_,this).abort(),_classPrivateFieldSet(_e_,this,null),(_classPrivateFieldGet166=_classPrivateFieldGet(_ev,this))===null||_classPrivateFieldGet166===void 0?void 0:_classPrivateFieldGet166.call(this));}var _eB=new WeakMap();var _eL=new WeakMap();var _h3=new WeakMap();var _d2=new WeakMap();var _es2=new WeakMap();var _eN=new WeakMap();var _eU=new WeakMap();var _ez=new WeakMap();var _eG=new WeakMap();var _ej=new WeakMap();var _eH=new WeakMap();var _e$=new WeakMap();var _eV=new WeakMap();var _eW=new WeakMap();var _eK=new WeakMap();var _eX=new WeakMap();var _eY=new WeakMap();var _eq=new WeakMap();var _eJ=new WeakMap();var _eQ=new WeakMap();var _eZ=new WeakMap();var _e5=new WeakMap();var _e6=new WeakMap();var _e7=new WeakMap();var _e8=new WeakMap();var _e9=new WeakMap();var _tX_brand=new WeakSet();class tX{static get _resizerKeyboardManager(){let t=tX.prototype._resizeWithKeyboard,e=tj.TRANSLATE_SMALL,i=tj.TRANSLATE_BIG;return D(this,"_resizerKeyboardManager",new tz([[["ArrowLeft"],t,{args:[-e,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t,{args:[-i,0]}],[["ArrowRight"],t,{args:[e,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t,{args:[i,0]}],[["ArrowUp"],t,{args:[0,-e]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t,{args:[0,-i]}],[["ArrowDown"],t,{args:[0,e]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t,{args:[0,i]}],[["Escape"],tX.prototype._stopResizingWithKeyboard]]));}constructor(_t18){_classPrivateMethodInitSpec(this,_tX_brand);_classPrivateFieldInitSpec(this,_eB,null);_classPrivateFieldInitSpec(this,_eL,null);_classPrivateFieldInitSpec(this,_h3,null);_classPrivateFieldInitSpec(this,_d2,null);_classPrivateFieldInitSpec(this,_es2,null);_classPrivateFieldInitSpec(this,_eN,!1);_classPrivateFieldInitSpec(this,_eU,null);_classPrivateFieldInitSpec(this,_ez,"");_classPrivateFieldInitSpec(this,_eG,null);_classPrivateFieldInitSpec(this,_ej,null);_classPrivateFieldInitSpec(this,_eH,null);_classPrivateFieldInitSpec(this,_e$,null);_classPrivateFieldInitSpec(this,_eV,null);_classPrivateFieldInitSpec(this,_eW,"");_classPrivateFieldInitSpec(this,_eK,!1);_classPrivateFieldInitSpec(this,_eX,null);_classPrivateFieldInitSpec(this,_eY,!1);_classPrivateFieldInitSpec(this,_eq,!1);_classPrivateFieldInitSpec(this,_eJ,!1);_classPrivateFieldInitSpec(this,_eQ,null);_classPrivateFieldInitSpec(this,_eZ,0);_classPrivateFieldInitSpec(this,_e5,0);_classPrivateFieldInitSpec(this,_e6,null);_classPrivateFieldInitSpec(this,_e7,null);_defineProperty(this,"isSelected",!1);_defineProperty(this,"_isCopy",!1);_defineProperty(this,"_editToolbar",null);_defineProperty(this,"_initialOptions",Object.create(null));_defineProperty(this,"_initialData",null);_defineProperty(this,"_isVisible",!0);_defineProperty(this,"_uiManager",null);_defineProperty(this,"_focusEventsAllowed",!0);_classPrivateFieldInitSpec(this,_e8,!1);_classPrivateFieldInitSpec(this,_e9,tX._zIndex++);this.parent=_t18.parent,this.id=_t18.id,this.width=this.height=null,this.pageIndex=_t18.parent.pageIndex,this.name=_t18.name,this.div=null,this._uiManager=_t18.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=_t18.isCentered,this._structTreeParentId=null,this.annotationElementId=_t18.annotationElementId||null,this.creationDate=_t18.creationDate||new Date(),this.modificationDate=_t18.modificationDate||null,this.canAddComment=!0;let{rotation:_e14,rawDims:{pageWidth:_i6,pageHeight:_r4,pageX:_s3,pageY:_n4}}=this.parent.viewport;this.rotation=_e14,this.pageRotation=(360+_e14-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[_i6,_r4],this.pageTranslation=[_s3,_n4];let[_a3,_o5]=this.parentDimensions;this.x=_t18.x/_a3,this.y=_t18.y/_o5,this.isAttachedToDOM=!1,this.deleted=!1;}updatePageIndex(t){this.pageIndex=t;}get editorType(){return Object.getPrototypeOf(this).constructor._type;}get mode(){return Object.getPrototypeOf(this).constructor._editorType;}static get isDrawer(){return!1;}static get _defaultLineColor(){return D(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"));}static deleteAnnotationElement(t){let e=new tY({id:t._uiManager.getId(),parent:t.parent,uiManager:t._uiManager});e.annotationElementId=t.annotationElementId,e.deleted=!0,e._uiManager.addToAnnotationStorage(e);}static initialize(t,e){var _tX$_l10n,_tX$_l10nAlert,_tX$_l10nResizer;if((_tX$_l10n=tX._l10n)!==null&&_tX$_l10n!==void 0?_tX$_l10n:tX._l10n=t,(_tX$_l10nAlert=tX._l10nAlert)!==null&&_tX$_l10nAlert!==void 0?_tX$_l10nAlert:tX._l10nAlert=Object.freeze({highlight:"pdfjs-editor-highlight-added-alert",freetext:"pdfjs-editor-freetext-added-alert",ink:"pdfjs-editor-ink-added-alert",stamp:"pdfjs-editor-stamp-added-alert",signature:"pdfjs-editor-signature-added-alert"}),(_tX$_l10nResizer=tX._l10nResizer)!==null&&_tX$_l10nResizer!==void 0?_tX$_l10nResizer:tX._l10nResizer=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"}),-1!==tX._borderLineWidth)return;let i=getComputedStyle(document.documentElement);tX._borderLineWidth=parseFloat(i.getPropertyValue("--outline-width"))||0;}static updateDefaultParams(t,e){}static get defaultPropertiesToUpdate(){return[];}static isHandlingMimeForPasting(t){return!1;}static paste(t,e){_("Not implemented");}get propertiesToUpdate(){return[];}get _isDraggable(){return _classPrivateFieldGet(_e8,this);}set _isDraggable(t){var _this$div;_classPrivateFieldSet(_e8,this,t),(_this$div=this.div)===null||_this$div===void 0?void 0:_this$div.classList.toggle("draggable",t);}get uid(){return this.annotationElementId||this.id;}get isEnterHandled(){return!0;}center(){let[t,e]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*e/(2*t),this.y+=this.width*t/(2*e);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*e/(2*t),this.y-=this.width*t/(2*e);break;default:this.x-=this.width/2,this.y-=this.height/2;}this.fixAndSetPosition();}addCommands(t){this._uiManager.addCommands(t);}get currentLayer(){return this._uiManager.currentLayer;}setInBackground(){this.div.style.zIndex=0;}setInForeground(){this.div.style.zIndex=_classPrivateFieldGet(_e9,this);}setParent(t){var _classPrivateFieldGet54;null!==t?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):(_assertClassBrand(_tX_brand,this,_e13).call(this),(_classPrivateFieldGet54=_classPrivateFieldGet(_e$,this))!==null&&_classPrivateFieldGet54!==void 0&&_classPrivateFieldGet54.remove(),_classPrivateFieldSet(_e$,this,null)),this.parent=t;}focusin(t){this._focusEventsAllowed&&(_classPrivateFieldGet(_eK,this)?_classPrivateFieldSet(_eK,this,!1):this.parent.setSelected(this));}focusout(t){var _this$parent;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;let e=t.relatedTarget;!(e!==null&&e!==void 0&&e.closest(`#${this.id}`))&&(t.preventDefault(),((_this$parent=this.parent)===null||_this$parent===void 0?void 0:_this$parent.isMultipleSelection)||this.commitOrRemove());}commitOrRemove(){this.isEmpty()?this.remove():this.commit();}commit(){this.isInEditMode()&&this.addToAnnotationStorage();}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this);}setAt(t,e,i,r){let[s,n]=this.parentDimensions;[i,r]=this.screenToPageTranslation(i,r),this.x=(t+i)/s,this.y=(e+r)/n,this.fixAndSetPosition();}_moveAfterPaste(t,e){if(this.isClone)return void delete this.isClone;let[i,r]=this.parentDimensions;this.setAt(t*i,e*r,this.width*i,this.height*r),this._onTranslated();}translate(t,e){_assertClassBrand(_tX_brand,this,_e0).call(this,this.parentDimensions,t,e);}translateInPage(t,e){_classPrivateFieldGet(_eX,this)||_classPrivateFieldSet(_eX,this,[this.x,this.y,this.width,this.height]),_assertClassBrand(_tX_brand,this,_e0).call(this,this.pageDimensions,t,e),this.div.scrollIntoView({block:"nearest"});}translationDone(){this._onTranslated(this.x,this.y);}drag(t,e){_classPrivateFieldGet(_eX,this)||_classPrivateFieldSet(_eX,this,[this.x,this.y,this.width,this.height]);let{div:i,parentDimensions:[r,s]}=this;if(this.x+=t/r,this.y+=e/s,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){let{x:t,y:e}=this.div.getBoundingClientRect();this.parent.findNewParent(this,t,e)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y));}let{x:n,y:a}=this,[o,l]=this.getBaseTranslation();n+=o,a+=l;let{style:h}=i;h.left=`${(100*n).toFixed(2)}%`,h.top=`${(100*a).toFixed(2)}%`,this._onTranslating(n,a);}_onTranslating(t,e){}_onTranslated(t,e){}get _hasBeenMoved(){return!!_classPrivateFieldGet(_eX,this)&&(_classPrivateFieldGet(_eX,this)[0]!==this.x||_classPrivateFieldGet(_eX,this)[1]!==this.y);}get _hasBeenResized(){return!!_classPrivateFieldGet(_eX,this)&&(_classPrivateFieldGet(_eX,this)[2]!==this.width||_classPrivateFieldGet(_eX,this)[3]!==this.height);}getBaseTranslation(){let[t,e]=this.parentDimensions,{_borderLineWidth:i}=tX,r=i/t,s=i/e;switch(this.rotation){case 90:return[-r,s];case 180:return[r,s];case 270:return[r,-s];default:return[-r,-s];}}get _mustFixPosition(){return!0;}fixAndSetPosition(t=this.rotation){let{div:{style:e},pageDimensions:[i,r]}=this,{x:s,y:n,width:a,height:o}=this;if(a*=i,o*=r,s*=i,n*=r,this._mustFixPosition)switch(t){case 0:s=q(s,0,i-a),n=q(n,0,r-o);break;case 90:s=q(s,0,i-o),n=q(n,a,r);break;case 180:s=q(s,a,i),n=q(n,o,r);break;case 270:s=q(s,o,i),n=q(n,0,r-a);}this.x=s/=i,this.y=n/=r;let[l,h]=this.getBaseTranslation();s+=l,n+=h,e.left=`${(100*s).toFixed(2)}%`,e.top=`${(100*n).toFixed(2)}%`,this.moveInDOM();}screenToPageTranslation(t,e){return _e1.call(tX,t,e,this.parentRotation);}pageTranslationToScreen(t,e){return _e1.call(tX,t,e,360-this.parentRotation);}get parentScale(){return this._uiManager.viewParameters.realScale;}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360;}get parentDimensions(){let{parentScale:t,pageDimensions:[e,i]}=this;return[e*t,i*t];}setDims(){let{div:{style:t},width:e,height:i}=this;t.width=`${(100*e).toFixed(2)}%`,t.height=`${(100*i).toFixed(2)}%`;}getInitialTranslation(){return[0,0];}_onResized(){}static _round(t){return Math.round(1e4*t)/1e4;}_onResizing(){}altTextFinish(){var _classPrivateFieldGet55;(_classPrivateFieldGet55=_classPrivateFieldGet(_h3,this))===null||_classPrivateFieldGet55===void 0||_classPrivateFieldGet55.finish();}get toolbarButtons(){return null;}async addEditToolbar(){if(this._editToolbar||_classPrivateFieldGet(_eq,this))return this._editToolbar;this._editToolbar=new tI(this),this.div.append(this._editToolbar.render());let{toolbarButtons:t}=this;if(t)for(let[e,i]of t)await this._editToolbar.addButton(e,i);return this.hasComment||this._editToolbar.addButton("comment",this.addCommentButton()),this._editToolbar.addButton("delete"),this._editToolbar;}addCommentButtonInToolbar(){var _this$_editToolbar;(_this$_editToolbar=this._editToolbar)===null||_this$_editToolbar===void 0||_this$_editToolbar.addButtonBefore("comment",this.addCommentButton(),".deleteButton");}removeCommentButtonFromToolbar(){var _this$_editToolbar2;(_this$_editToolbar2=this._editToolbar)===null||_this$_editToolbar2===void 0||_this$_editToolbar2.removeButton("comment");}removeEditToolbar(){var _this$_editToolbar3,_classPrivateFieldGet56;(_this$_editToolbar3=this._editToolbar)!==null&&_this$_editToolbar3!==void 0&&_this$_editToolbar3.remove(),this._editToolbar=null,(_classPrivateFieldGet56=_classPrivateFieldGet(_h3,this))===null||_classPrivateFieldGet56===void 0?void 0:_classPrivateFieldGet56.destroy();}addContainer(t){var _this$_editToolbar4;let e=(_this$_editToolbar4=this._editToolbar)===null||_this$_editToolbar4===void 0?void 0:_this$_editToolbar4.div;e?e.before(t):this.div.append(t);}getClientDimensions(){return this.div.getBoundingClientRect();}createAltText(){return!_classPrivateFieldGet(_h3,this)&&(tH.initialize(tX._l10n),_classPrivateFieldSet(_h3,this,new tH(this)),_classPrivateFieldGet(_eB,this)&&(_classPrivateFieldGet(_h3,this).data=_classPrivateFieldGet(_eB,this),_classPrivateFieldSet(_eB,this,null))),_classPrivateFieldGet(_h3,this);}get altTextData(){var _classPrivateFieldGet57;return(_classPrivateFieldGet57=_classPrivateFieldGet(_h3,this))===null||_classPrivateFieldGet57===void 0?void 0:_classPrivateFieldGet57.data;}set altTextData(t){_classPrivateFieldGet(_h3,this)&&(_classPrivateFieldGet(_h3,this).data=t);}get guessedAltText(){var _classPrivateFieldGet58;return(_classPrivateFieldGet58=_classPrivateFieldGet(_h3,this))===null||_classPrivateFieldGet58===void 0?void 0:_classPrivateFieldGet58.guessedText;}async setGuessedAltText(t){var _classPrivateFieldGet59;await((_classPrivateFieldGet59=_classPrivateFieldGet(_h3,this))===null||_classPrivateFieldGet59===void 0?void 0:_classPrivateFieldGet59.setGuessedText(t));}serializeAltText(t){var _classPrivateFieldGet60;return(_classPrivateFieldGet60=_classPrivateFieldGet(_h3,this))===null||_classPrivateFieldGet60===void 0?void 0:_classPrivateFieldGet60.serialize(t);}hasAltText(){return!!_classPrivateFieldGet(_h3,this)&&!_classPrivateFieldGet(_h3,this).isEmpty();}hasAltTextData(){var _classPrivateFieldGet61,_classPrivateFieldGet62;return(_classPrivateFieldGet61=(_classPrivateFieldGet62=_classPrivateFieldGet(_h3,this))===null||_classPrivateFieldGet62===void 0?void 0:_classPrivateFieldGet62.hasData())!==null&&_classPrivateFieldGet61!==void 0?_classPrivateFieldGet61:!1;}focusCommentButton(){var _classPrivateFieldGet63;(_classPrivateFieldGet63=_classPrivateFieldGet(_d2,this))===null||_classPrivateFieldGet63===void 0||_classPrivateFieldGet63.focusButton();}addCommentButton(){return this.canAddComment?_classPrivateFieldGet(_d2,this)||_classPrivateFieldSet(_d2,this,new t$(this)):null;}addStandaloneCommentButton(){if(this._uiManager.hasCommentManager()){if(_classPrivateFieldGet(_es2,this)){this._uiManager.isEditingMode()&&_classPrivateFieldGet(_es2,this).classList.remove("hidden");return;}this.hasComment&&(_classPrivateFieldSet(_es2,this,_classPrivateFieldGet(_d2,this).renderForStandalone()),this.div.append(_classPrivateFieldGet(_es2,this)));}}removeStandaloneCommentButton(){_classPrivateFieldGet(_d2,this).removeStandaloneCommentButton(),_classPrivateFieldSet(_es2,this,null);}hideStandaloneCommentButton(){var _classPrivateFieldGet64;(_classPrivateFieldGet64=_classPrivateFieldGet(_es2,this))===null||_classPrivateFieldGet64===void 0||_classPrivateFieldGet64.classList.add("hidden");}get comment(){var _this$opacity;if(!_classPrivateFieldGet(_d2,this))return null;let{data:{richText:t,text:e,date:i,deleted:r}}=_classPrivateFieldGet(_d2,this);return{text:e,richText:t,date:i,deleted:r,color:this.getNonHCMColor(),opacity:(_this$opacity=this.opacity)!==null&&_this$opacity!==void 0?_this$opacity:1};}set comment(t){_classPrivateFieldGet(_d2,this)||_classPrivateFieldSet(_d2,this,new t$(this)),"object"==typeof t&&null!==t?_classPrivateFieldGet(_d2,this).restoreData(t):_classPrivateFieldGet(_d2,this).data=t,this.hasComment?(this.removeCommentButtonFromToolbar(),this.addStandaloneCommentButton(),this._uiManager.updateComment(this)):(this.addCommentButtonInToolbar(),this.removeStandaloneCommentButton(),this._uiManager.removeComment(this));}setCommentData({comment:t,popupRef:e,richText:i}){if(!e||(_classPrivateFieldGet(_d2,this)||_classPrivateFieldSet(_d2,this,new t$(this)),_classPrivateFieldGet(_d2,this).setInitialText(t,i),!this.annotationElementId))return;let r=this._uiManager.getAndRemoveDataFromAnnotationStorage(this.annotationElementId);r&&this.updateFromAnnotationLayer(r);}get hasEditedComment(){var _classPrivateFieldGet65;return(_classPrivateFieldGet65=_classPrivateFieldGet(_d2,this))===null||_classPrivateFieldGet65===void 0?void 0:_classPrivateFieldGet65.hasBeenEdited();}get hasDeletedComment(){var _classPrivateFieldGet66;return(_classPrivateFieldGet66=_classPrivateFieldGet(_d2,this))===null||_classPrivateFieldGet66===void 0?void 0:_classPrivateFieldGet66.isDeleted();}get hasComment(){return!!_classPrivateFieldGet(_d2,this)&&!_classPrivateFieldGet(_d2,this).isEmpty()&&!_classPrivateFieldGet(_d2,this).isDeleted();}async editComment(t){_classPrivateFieldGet(_d2,this)||_classPrivateFieldSet(_d2,this,new t$(this)),_classPrivateFieldGet(_d2,this).edit(t);}toggleComment(t,e){this.hasComment&&this._uiManager.toggleComment(this,t,e);}setSelectedCommentButton(t){_classPrivateFieldGet(_d2,this).setSelectedButton(t);}addComment(t){if(this.hasEditedComment){let[,,,e]=t.rect,[i]=this.pageDimensions,[r]=this.pageTranslation,s=r+i+1;t.popup={contents:this.comment.text,deleted:this.comment.deleted,rect:[s,e-100,s+180,e]};}}updateFromAnnotationLayer({popup:{contents:t,deleted:e}}){_classPrivateFieldGet(_d2,this).data=e?null:t;}get parentBoundingClientRect(){return this.parent.boundingClientRect;}render(){var _this$_uiManager$_edi;let t=this.div=document.createElement("div");t.setAttribute("data-editor-rotation",(360-this.rotation)%360),t.className=this.name,t.setAttribute("id",this.id),t.tabIndex=_classPrivateFieldGet(_eN,this)?-1:0,t.setAttribute("role","application"),this.defaultL10nId&&t.setAttribute("data-l10n-id",this.defaultL10nId),this._isVisible||t.classList.add("hidden"),this.setInForeground(),_assertClassBrand(_tX_brand,this,_is).call(this);let[e,i]=this.parentDimensions;this.parentRotation%180!=0&&(t.style.maxWidth=`${(100*i/e).toFixed(2)}%`,t.style.maxHeight=`${(100*e/i).toFixed(2)}%`);let[r,s]=this.getInitialTranslation();return this.translate(r,s),tO(this,t,["keydown","pointerdown","dblclick"]),_assertClassBrand(_tX_brand,this,_ia).call(this),this.addStandaloneCommentButton(),(_this$_uiManager$_edi=this._uiManager._editorUndoBar)!==null&&_this$_uiManager$_edi!==void 0&&_this$_uiManager$_edi.hide(),t;}pointerdown(t){let{isMac:e}=z.platform;0!==t.button||t.ctrlKey&&e?t.preventDefault():(_classPrivateFieldSet(_eK,this,!0),this._isDraggable)?_assertClassBrand(_tX_brand,this,_id).call(this,t):_assertClassBrand(_tX_brand,this,_ic).call(this,t);}_onStartDragging(){}_onStopDragging(){}moveInDOM(){_classPrivateFieldGet(_eQ,this)&&clearTimeout(_classPrivateFieldGet(_eQ,this)),_classPrivateFieldSet(_eQ,this,setTimeout(()=>{var _this$parent2;_classPrivateFieldSet(_eQ,this,null),(_this$parent2=this.parent)===null||_this$parent2===void 0?void 0:_this$parent2.moveEditorInDOM(this);},0));}_setParentAndPosition(t,e,i){t.changeParent(this),this.x=e,this.y=i,this.fixAndSetPosition(),this._onTranslated();}getRect(t,e,i=this.rotation){let r=this.parentScale,[s,n]=this.pageDimensions,[a,o]=this.pageTranslation,l=t/r,h=e/r,d=this.x*s,c=this.y*n,u=this.width*s,p=this.height*n;switch(i){case 0:return[d+l+a,n-c-h-p+o,d+l+u+a,n-c-h+o];case 90:return[d+h+a,n-c+l+o,d+h+p+a,n-c+l+u+o];case 180:return[d-l-u+a,n-c+h+o,d-l+a,n-c+h+p+o];case 270:return[d-h-p+a,n-c-l-u+o,d-h+a,n-c-l+o];default:throw Error("Invalid rotation");}}getRectInCurrentCoords(t,e){let[i,r,s,n]=t,a=s-i,o=n-r;switch(this.rotation){case 0:return[i,e-n,a,o];case 90:return[i,e-r,o,a];case 180:return[s,e-r,a,o];case 270:return[s,e-n,o,a];default:throw Error("Invalid rotation");}}getPDFRect(){return this.getRect(0,0);}getNonHCMColor(){return this.color&&tX._colorManager.convert(this._uiManager.getNonHCMColor(this.color));}onUpdatedColor(){var _classPrivateFieldGet67;(_classPrivateFieldGet67=_classPrivateFieldGet(_d2,this))===null||_classPrivateFieldGet67===void 0||_classPrivateFieldGet67.onUpdatedColor();}getData(){let{comment:{text:t,color:e,date:i,opacity:r,deleted:s,richText:n},uid:a,pageIndex:o,creationDate:l,modificationDate:h}=this;return{id:a,pageIndex:o,rect:this.getPDFRect(),richText:n,contentsObj:{str:t},creationDate:l,modificationDate:i||h,popupRef:!s,color:e,opacity:r};}onceAdded(t){}isEmpty(){return!1;}enableEditMode(){return!this.isInEditMode()&&(this.parent.setEditingState(!1),_classPrivateFieldSet(_eq,this,!0),!0);}disableEditMode(){return!!this.isInEditMode()&&(this.parent.setEditingState(!0),_classPrivateFieldSet(_eq,this,!1),!0);}isInEditMode(){return _classPrivateFieldGet(_eq,this);}shouldGetKeyboardEvents(){return _classPrivateFieldGet(_eJ,this);}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM;}get isOnScreen(){let{top:t,left:e,bottom:i,right:r}=this.getClientDimensions(),{innerHeight:s,innerWidth:n}=window;return e<n&&r>0&&t<s&&i>0;}rebuild(){_assertClassBrand(_tX_brand,this,_is).call(this),_assertClassBrand(_tX_brand,this,_ia).call(this);}rotate(t){}resize(){}serializeDeleted(){var _this$_initialData;return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:((_this$_initialData=this._initialData)===null||_this$_initialData===void 0?void 0:_this$_initialData.popupRef)||""};}serialize(t=!1,e=null){var _this$_initialData2;return{annotationType:this.mode,pageIndex:this.pageIndex,rect:this.getPDFRect(),rotation:this.rotation,structTreeParentId:this._structTreeParentId,popupRef:((_this$_initialData2=this._initialData)===null||_this$_initialData2===void 0?void 0:_this$_initialData2.popupRef)||""};}static async deserialize(t,e,i){let r=new this.prototype.constructor({parent:e,id:i.getId(),uiManager:i,annotationElementId:t.annotationElementId,creationDate:t.creationDate,modificationDate:t.modificationDate});r.rotation=t.rotation,_classPrivateFieldSet(_eB,r,t.accessibilityData),r._isCopy=t.isCopy||!1;let[s,n]=r.pageDimensions,[a,o,l,h]=r.getRectInCurrentCoords(t.rect,n);return r.x=a/s,r.y=o/n,r.width=l/s,r.height=h/n,r;}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||null!==this.serialize());}remove(){var _classPrivateFieldGet68,_classPrivateFieldGet69,_classPrivateFieldGet70;if((_classPrivateFieldGet68=_classPrivateFieldGet(_eV,this))!==null&&_classPrivateFieldGet68!==void 0&&_classPrivateFieldGet68.abort(),_classPrivateFieldSet(_eV,this,null),this.isEmpty()||this.commit(),(_classPrivateFieldGet69=_classPrivateFieldGet(_e7,this))!==null&&_classPrivateFieldGet69!==void 0&&_classPrivateFieldGet69.destroy(),_classPrivateFieldSet(_e7,this,null),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.hideCommentPopup(),_classPrivateFieldGet(_eQ,this)&&(clearTimeout(_classPrivateFieldGet(_eQ,this)),_classPrivateFieldSet(_eQ,this,null)),_assertClassBrand(_tX_brand,this,_e13).call(this),this.removeEditToolbar(),_classPrivateFieldGet(_e6,this)){for(let t of _classPrivateFieldGet(_e6,this).values())clearTimeout(t);_classPrivateFieldSet(_e6,this,null);}this.parent=null,(_classPrivateFieldGet70=_classPrivateFieldGet(_e$,this))!==null&&_classPrivateFieldGet70!==void 0&&_classPrivateFieldGet70.remove(),_classPrivateFieldSet(_e$,this,null);}get isResizable(){return!1;}makeResizable(){this.isResizable&&(_assertClassBrand(_tX_brand,this,_e12).call(this),_classPrivateFieldGet(_eG,this).classList.remove("hidden"));}get toolbarPosition(){return null;}get commentButtonPosition(){return"ltr"===this._uiManager.direction?[1,0]:[0,0];}get commentButtonPositionInPage(){let{commentButtonPosition:[t,e]}=this,[i,r,s,n]=this.getPDFRect();return[tX._round(i+(s-i)*t),tX._round(r+(n-r)*(1-e))];}get commentButtonColor(){return this._uiManager.makeCommentColor(this.getNonHCMColor(),this.opacity);}get commentPopupPosition(){return _classPrivateFieldGet(_d2,this).commentPopupPositionInLayer;}set commentPopupPosition(t){_classPrivateFieldGet(_d2,this).commentPopupPositionInLayer=t;}hasDefaultPopupPosition(){return _classPrivateFieldGet(_d2,this).hasDefaultPopupPosition();}get commentButtonWidth(){return _classPrivateFieldGet(_d2,this).commentButtonWidth;}get elementBeforePopup(){return this.div;}setCommentButtonStates(t){var _classPrivateFieldGet71;(_classPrivateFieldGet71=_classPrivateFieldGet(_d2,this))===null||_classPrivateFieldGet71===void 0||_classPrivateFieldGet71.setCommentButtonStates(t);}keydown(t){if(!this.isResizable||t.target!==this.div||"Enter"!==t.key)return;this._uiManager.setSelected(this),_classPrivateFieldSet(_eH,this,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});let e=_classPrivateFieldGet(_eG,this).children;if(!_classPrivateFieldGet(_eL,this)){_classPrivateFieldSet(_eL,this,Array.from(e));let t=_assertClassBrand(_tX_brand,this,_iu).bind(this),i=_assertClassBrand(_tX_brand,this,_ip).bind(this),r=this._uiManager._signal;for(let e of _classPrivateFieldGet(_eL,this)){let s=e.getAttribute("data-resizer-name");e.setAttribute("role","spinbutton"),e.addEventListener("keydown",t,{signal:r}),e.addEventListener("blur",i,{signal:r}),e.addEventListener("focus",_assertClassBrand(_tX_brand,this,_ig).bind(this,s),{signal:r}),e.setAttribute("data-l10n-id",tX._l10nResizer[s]);}}let i=_classPrivateFieldGet(_eL,this)[0],r=0;for(let t of e){if(t===i)break;r++;}let s=(360-this.rotation+this.parentRotation)%360/90*(_classPrivateFieldGet(_eL,this).length/4);if(s!==r){if(s<r)for(let t=0;t<r-s;t++)_classPrivateFieldGet(_eG,this).append(_classPrivateFieldGet(_eG,this).firstElementChild);else if(s>r)for(let t=0;t<s-r;t++)_classPrivateFieldGet(_eG,this).firstElementChild.before(_classPrivateFieldGet(_eG,this).lastElementChild);let t=0;for(let i of e){let e=_classPrivateFieldGet(_eL,this)[t++].getAttribute("data-resizer-name");i.setAttribute("data-l10n-id",tX._l10nResizer[e]);}}_assertClassBrand(_tX_brand,this,_im).call(this,0),_classPrivateFieldSet(_eJ,this,!0),_classPrivateFieldGet(_eG,this).firstElementChild.focus({focusVisible:!0}),t.preventDefault(),t.stopImmediatePropagation();}_resizeWithKeyboard(t,e){_classPrivateFieldGet(_eJ,this)&&_assertClassBrand(_tX_brand,this,_ie).call(this,_classPrivateFieldGet(_eW,this),{deltaX:t,deltaY:e,fromKeyboard:!0});}_stopResizingWithKeyboard(){_assertClassBrand(_tX_brand,this,_e13).call(this),this.div.focus();}select(){var _this$div2,_this$_editToolbar5,_classPrivateFieldGet72;this.isSelected&&this._editToolbar?this._editToolbar.show():(this.isSelected=!0,this.makeResizable(),(_this$div2=this.div)!==null&&_this$div2!==void 0&&_this$div2.classList.add("selectedEditor"),this._editToolbar)?((_this$_editToolbar5=this._editToolbar)!==null&&_this$_editToolbar5!==void 0&&_this$_editToolbar5.show(),(_classPrivateFieldGet72=_classPrivateFieldGet(_h3,this))===null||_classPrivateFieldGet72===void 0?void 0:_classPrivateFieldGet72.toggleAltTextBadge(!1)):this.addEditToolbar().then(()=>{var _this$div3,_this$_editToolbar6;((_this$div3=this.div)===null||_this$div3===void 0?void 0:_this$div3.classList.contains("selectedEditor"))&&((_this$_editToolbar6=this._editToolbar)===null||_this$_editToolbar6===void 0?void 0:_this$_editToolbar6.show());});}focus(){this.div&&!this.div.contains(document.activeElement)&&setTimeout(()=>{var _this$div4;return(_this$div4=this.div)===null||_this$div4===void 0?void 0:_this$div4.focus({preventScroll:!0});},0);}unselect(){var _classPrivateFieldGet73,_this$div5,_this$div6,_this$_editToolbar7,_classPrivateFieldGet74;this.isSelected&&(this.isSelected=!1,(_classPrivateFieldGet73=_classPrivateFieldGet(_eG,this))!==null&&_classPrivateFieldGet73!==void 0&&_classPrivateFieldGet73.classList.add("hidden"),(_this$div5=this.div)!==null&&_this$div5!==void 0&&_this$div5.classList.remove("selectedEditor"),(_this$div6=this.div)!==null&&_this$div6!==void 0&&_this$div6.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),(_this$_editToolbar7=this._editToolbar)!==null&&_this$_editToolbar7!==void 0&&_this$_editToolbar7.hide(),(_classPrivateFieldGet74=_classPrivateFieldGet(_h3,this))!==null&&_classPrivateFieldGet74!==void 0&&_classPrivateFieldGet74.toggleAltTextBadge(!0),this.hideCommentPopup());}hideCommentPopup(){this.hasComment&&this._uiManager.toggleComment(null);}updateParams(t,e){}disableEditing(){}enableEditing(){}get canChangeContent(){return!1;}enterInEditMode(){this.canChangeContent&&(this.enableEditMode(),this.div.focus());}dblclick(t){"BUTTON"!==t.target.nodeName&&(this.enterInEditMode(),this.parent.updateToolbar({mode:this.constructor._editorType,editId:this.uid}));}getElementForAltText(){return this.div;}get contentDiv(){return this.div;}get isEditing(){return _classPrivateFieldGet(_eY,this);}set isEditing(t){_classPrivateFieldSet(_eY,this,t),this.parent&&(t?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null));}static get MIN_SIZE(){return 16;}static canCreateNewEmptyEditor(){return!0;}get telemetryInitialData(){return{action:"added"};}get telemetryFinalData(){return null;}_reportTelemetry(t,e=!1){if(e){_classPrivateFieldGet(_e6,this)||_classPrivateFieldSet(_e6,this,new Map());let{action:e}=t,i=_classPrivateFieldGet(_e6,this).get(e);i&&clearTimeout(i),i=setTimeout(()=>{this._reportTelemetry(t),_classPrivateFieldGet(_e6,this).delete(e),0===_classPrivateFieldGet(_e6,this).size&&_classPrivateFieldSet(_e6,this,null);},tX._telemetryTimeout),_classPrivateFieldGet(_e6,this).set(e,i);return;}t.type||(t.type=this.editorType),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:t}});}show(t=this._isVisible){this.div.classList.toggle("hidden",!t),this._isVisible=t;}enable(){this.div&&(this.div.tabIndex=0),_classPrivateFieldSet(_eN,this,!1);}disable(){this.div&&(this.div.tabIndex=-1),_classPrivateFieldSet(_eN,this,!0);}updateFakeAnnotationElement(t){if(!_classPrivateFieldGet(_e$,this)&&!this.deleted){_classPrivateFieldSet(_e$,this,t.addFakeAnnotation(this));return;}if(this.deleted){_classPrivateFieldGet(_e$,this).remove(),_classPrivateFieldSet(_e$,this,null);return;}(this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized)&&_classPrivateFieldGet(_e$,this).updateEdited({rect:this.getPDFRect(),popup:this.comment});}renderAnnotationElement(t){if(this.deleted)return t.hide(),null;let e=t.container.querySelector(".annotationContent");if(e){if("CANVAS"===e.nodeName){let t=e;(e=document.createElement("div")).classList.add("annotationContent",this.editorType),t.before(e);}}else(e=document.createElement("div")).classList.add("annotationContent",this.editorType),t.container.prepend(e);return e;}resetAnnotationElement(t){let{firstElementChild:e}=t.container;(e===null||e===void 0?void 0:e.nodeName)==="DIV"&&e.classList.contains("annotationContent")&&e.remove();}}_tX2=tX;function _e0([t,e],i,r){[i,r]=this.screenToPageTranslation(i,r),this.x+=i/t,this.y+=r/e,this._onTranslating(this.x,this.y),this.fixAndSetPosition();}function _e1(t,e,i){switch(i){case 90:return[e,-t];case 180:return[-t,-e];case 270:return[-e,t];default:return[t,e];}}function _e11(t){switch(t){case 90:{let[t,e]=this.pageDimensions;return[0,-t/e,e/t,0];}case 180:return[-1,0,0,-1];case 270:{let[t,e]=this.pageDimensions;return[0,t/e,-e/t,0];}default:return[1,0,0,1];}}function _e12(){if(_classPrivateFieldGet(_eG,this))return;_classPrivateFieldSet(_eG,this,document.createElement("div")),_classPrivateFieldGet(_eG,this).classList.add("resizers");let t=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],e=this._uiManager._signal;for(let i of t){let t=document.createElement("div");_classPrivateFieldGet(_eG,this).append(t),t.classList.add("resizer",i),t.setAttribute("data-resizer-name",i),t.addEventListener("pointerdown",_assertClassBrand(_tX_brand,this,_it).bind(this,i),{signal:e}),t.addEventListener("contextmenu",tc,{signal:e}),t.tabIndex=-1;}this.div.prepend(_classPrivateFieldGet(_eG,this));}function _it(t,e){var _classPrivateFieldGet167;e.preventDefault();let{isMac:i}=z.platform;if(0!==e.button||e.ctrlKey&&i)return;(_classPrivateFieldGet167=_classPrivateFieldGet(_h3,this))===null||_classPrivateFieldGet167===void 0||_classPrivateFieldGet167.toggle(!1);let r=this._isDraggable;this._isDraggable=!1,_classPrivateFieldSet(_ej,this,[e.screenX,e.screenY]);let s=new AbortController(),n=this._uiManager.combinedSignal(s);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",_assertClassBrand(_tX_brand,this,_ie).bind(this,t),{passive:!0,capture:!0,signal:n}),window.addEventListener("touchmove",tu,{passive:!1,signal:n}),window.addEventListener("contextmenu",tc,{signal:n}),_classPrivateFieldSet(_eH,this,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});let a=this.parent.div.style.cursor,o=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(e.target).cursor;let l=()=>{var _classPrivateFieldGet168;s.abort(),this.parent.togglePointerEvents(!0),(_classPrivateFieldGet168=_classPrivateFieldGet(_h3,this))!==null&&_classPrivateFieldGet168!==void 0&&_classPrivateFieldGet168.toggle(!0),this._isDraggable=r,this.parent.div.style.cursor=a,this.div.style.cursor=o,_assertClassBrand(_tX_brand,this,_ii).call(this);};window.addEventListener("pointerup",l,{signal:n}),window.addEventListener("blur",l,{signal:n});}function _ir(t,e,i,r){this.width=i,this.height=r,this.x=t,this.y=e,this.setDims(),this.fixAndSetPosition(),this._onResized();}function _ii(){if(!_classPrivateFieldGet(_eH,this))return;let{savedX:t,savedY:e,savedWidth:i,savedHeight:r}=_classPrivateFieldGet(_eH,this);_classPrivateFieldSet(_eH,this,null);let s=this.x,n=this.y,a=this.width,o=this.height;(s!==t||n!==e||a!==i||o!==r)&&this.addCommands({cmd:_assertClassBrand(_tX_brand,this,_ir).bind(this,s,n,a,o),undo:_assertClassBrand(_tX_brand,this,_ir).bind(this,t,e,i,r),mustExec:!0});}function _ie(t,e){let i,r,s,n,a,o,[l,h]=this.parentDimensions,d=this.x,c=this.y,u=this.width,p=this.height,g=_tX2.MIN_SIZE/l,m=_tX2.MIN_SIZE/h,f=_assertClassBrand(_tX_brand,this,_e11).call(this,this.rotation),b=(t,e)=>[f[0]*t+f[2]*e,f[1]*t+f[3]*e],v=_assertClassBrand(_tX_brand,this,_e11).call(this,360-this.rotation),y=!1,A=!1;switch(t){case"topLeft":y=!0,i=(t,e)=>[0,0],r=(t,e)=>[t,e];break;case"topMiddle":i=(t,e)=>[t/2,0],r=(t,e)=>[t/2,e];break;case"topRight":y=!0,i=(t,e)=>[t,0],r=(t,e)=>[0,e];break;case"middleRight":A=!0,i=(t,e)=>[t,e/2],r=(t,e)=>[0,e/2];break;case"bottomRight":y=!0,i=(t,e)=>[t,e],r=(t,e)=>[0,0];break;case"bottomMiddle":i=(t,e)=>[t/2,e],r=(t,e)=>[t/2,0];break;case"bottomLeft":y=!0,i=(t,e)=>[0,e],r=(t,e)=>[t,0];break;case"middleLeft":A=!0,i=(t,e)=>[0,e/2],r=(t,e)=>[t,e/2];}let x=i(u,p),w=r(u,p),S=b(...w),C=_tX2._round(d+S[0]),E=_tX2._round(c+S[1]),_=1,T=1;if(e.fromKeyboard)({deltaX:s,deltaY:n}=e);else{let{screenX:t,screenY:i}=e,[r,a]=_classPrivateFieldGet(_ej,this);[s,n]=this.screenToPageTranslation(t-r,i-a),_classPrivateFieldGet(_ej,this)[0]=t,_classPrivateFieldGet(_ej,this)[1]=i;}if([s,n]=(a=s/l,o=n/h,[v[0]*a+v[2]*o,v[1]*a+v[3]*o]),y){let t=Math.hypot(u,p);_=T=Math.max(Math.min(Math.hypot(w[0]-x[0]-s,w[1]-x[1]-n)/t,1/u,1/p),g/u,m/p);}else A?_=q(Math.abs(w[0]-x[0]-s),g,1)/u:T=q(Math.abs(w[1]-x[1]-n),m,1)/p;let k=_tX2._round(u*_),M=_tX2._round(p*T),P=C-(S=b(...r(k,M)))[0],D=E-S[1];_classPrivateFieldGet(_eX,this)||_classPrivateFieldSet(_eX,this,[this.x,this.y,this.width,this.height]),this.width=k,this.height=M,this.x=P,this.y=D,this.setDims(),this.fixAndSetPosition(),this._onResizing();}function _io(){var _classPrivateFieldGet169;_classPrivateFieldSet(_eH,this,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height}),(_classPrivateFieldGet169=_classPrivateFieldGet(_h3,this))!==null&&_classPrivateFieldGet169!==void 0&&_classPrivateFieldGet169.toggle(!1),this.parent.togglePointerEvents(!1);}function _il(t,e,i){let r=i/e*.7+1-.7;if(1===r)return;let s=_assertClassBrand(_tX_brand,this,_e11).call(this,this.rotation),n=(t,e)=>[s[0]*t+s[2]*e,s[1]*t+s[3]*e],[a,o]=this.parentDimensions,l=this.x,h=this.y,d=this.width,c=this.height;r=Math.max(Math.min(r,1/d,1/c),_tX2.MIN_SIZE/a/d,_tX2.MIN_SIZE/o/c);let u=_tX2._round(d*r),p=_tX2._round(c*r);if(u===d&&p===c)return;_classPrivateFieldGet(_eX,this)||_classPrivateFieldSet(_eX,this,[l,h,d,c]);let g=n(d/2,c/2),m=_tX2._round(l+g[0]),f=_tX2._round(h+g[1]),b=n(u/2,p/2);this.x=m-b[0],this.y=f-b[1],this.width=u,this.height=p,this.setDims(),this.fixAndSetPosition(),this._onResizing();}function _ih(){var _classPrivateFieldGet170;(_classPrivateFieldGet170=_classPrivateFieldGet(_h3,this))!==null&&_classPrivateFieldGet170!==void 0&&_classPrivateFieldGet170.toggle(!0),this.parent.togglePointerEvents(!0),_assertClassBrand(_tX_brand,this,_ii).call(this);}function _ic(t){let{isMac:e}=z.platform;t.ctrlKey&&!e||t.shiftKey||t.metaKey&&e?this.parent.toggleSelected(this):this.parent.setSelected(this);}function _id(t){let{isSelected:e}=this;this._uiManager.setUpDragSession();let i=!1,r=new AbortController(),s=this._uiManager.combinedSignal(r),n={capture:!0,passive:!1,signal:s},a=t=>{r.abort(),_classPrivateFieldSet(_eU,this,null),_classPrivateFieldSet(_eK,this,!1),this._uiManager.endDragSession()||_assertClassBrand(_tX_brand,this,_ic).call(this,t),i&&this._onStopDragging();};e&&(_classPrivateFieldSet(_eZ,this,t.clientX),_classPrivateFieldSet(_e5,this,t.clientY),_classPrivateFieldSet(_eU,this,t.pointerId),_classPrivateFieldSet(_ez,this,t.pointerType),window.addEventListener("pointermove",t=>{i||(i=!0,this._uiManager.toggleComment(this,!0,!1),this._onStartDragging());let{clientX:e,clientY:r,pointerId:s}=t;if(s!==_classPrivateFieldGet(_eU,this))return void tu(t);let[n,a]=this.screenToPageTranslation(e-_classPrivateFieldGet(_eZ,this),r-_classPrivateFieldGet(_e5,this));_classPrivateFieldSet(_eZ,this,e),_classPrivateFieldSet(_e5,this,r),this._uiManager.dragSelectedEditors(n,a),this.div.scrollIntoView({block:"nearest"});},n),window.addEventListener("touchmove",tu,n),window.addEventListener("pointerdown",t=>{t.pointerType===_classPrivateFieldGet(_ez,this)&&(_classPrivateFieldGet(_e7,this)||t.isPrimary)&&a(t),tu(t);},n));let o=t=>{_classPrivateFieldGet(_eU,this)&&_classPrivateFieldGet(_eU,this)!==t.pointerId?tu(t):a(t);};window.addEventListener("pointerup",o,{signal:s}),window.addEventListener("blur",o,{signal:s});}function _is(){if(_classPrivateFieldGet(_eV,this)||!this.div)return;_classPrivateFieldSet(_eV,this,new AbortController());let t=this._uiManager.combinedSignal(_classPrivateFieldGet(_eV,this));this.div.addEventListener("focusin",this.focusin.bind(this),{signal:t}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:t});}function _ia(){!_classPrivateFieldGet(_e7,this)&&this.div&&this.isResizable&&this._uiManager._supportsPinchToZoom&&_classPrivateFieldSet(_e7,this,new tK({container:this.div,isPinchingDisabled:()=>!this.isSelected,onPinchStart:_assertClassBrand(_tX_brand,this,_io).bind(this),onPinching:_assertClassBrand(_tX_brand,this,_il).bind(this),onPinchEnd:_assertClassBrand(_tX_brand,this,_ih).bind(this),signal:this._uiManager._signal}));}function _iu(t){_tX2._resizerKeyboardManager.exec(this,t);}function _ip(t){var _t$relatedTarget;_classPrivateFieldGet(_eJ,this)&&((_t$relatedTarget=t.relatedTarget)===null||_t$relatedTarget===void 0?void 0:_t$relatedTarget.parentNode)!==_classPrivateFieldGet(_eG,this)&&_assertClassBrand(_tX_brand,this,_e13).call(this);}function _ig(t){_classPrivateFieldSet(_eW,this,_classPrivateFieldGet(_eJ,this)?t:"");}function _im(t){if(_classPrivateFieldGet(_eL,this))for(let e of _classPrivateFieldGet(_eL,this))e.tabIndex=t;}function _e13(){_classPrivateFieldSet(_eJ,this,!1),_assertClassBrand(_tX_brand,this,_im).call(this,-1),_assertClassBrand(_tX_brand,this,_ii).call(this);}_defineProperty(tX,"_l10n",null);_defineProperty(tX,"_l10nAlert",null);_defineProperty(tX,"_l10nResizer",null);_defineProperty(tX,"_borderLineWidth",-1);_defineProperty(tX,"_colorManager",new tG());_defineProperty(tX,"_zIndex",1);_defineProperty(tX,"_telemetryTimeout",1e3);class tY extends tX{constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0;}serialize(){return this.serializeDeleted();}}class tq{constructor(t){this.h1=t?0|t:0xc3d2e1f0,this.h2=t?0|t:0xc3d2e1f0;}update(t){let e,i;if("string"==typeof t){e=new Uint8Array(2*t.length),i=0;for(let r=0,s=t.length;r<s;r++){let s=t.charCodeAt(r);s<=255?e[i++]=s:(e[i++]=s>>>8,e[i++]=255&s);}}else if(ArrayBuffer.isView(t))i=(e=t.slice()).byteLength;else throw Error("Invalid data format, must be a string or TypedArray.");let r=i>>2,s=i-4*r,n=new Uint32Array(e.buffer,0,r),a=0,o=0,l=this.h1,h=this.h2;for(let t=0;t<r;t++)1&t?(l^=a=0x1b873593*(a=(a=0xcc9e2d51*(a=n[t])&0xffff0000|11601*a&65535)<<15|a>>>17)&0xffff0000|13715*a&65535,l=5*(l=l<<13|l>>>19)+0xe6546b64):(h^=o=0x1b873593*(o=(o=0xcc9e2d51*(o=n[t])&0xffff0000|11601*o&65535)<<15|o>>>17)&0xffff0000|13715*o&65535,h=5*(h=h<<13|h>>>19)+0xe6546b64);switch(a=0,s){case 3:a^=e[4*r+2]<<16;case 2:a^=e[4*r+1]<<8;case 1:a^=e[4*r],a=0x1b873593*(a=(a=0xcc9e2d51*a&0xffff0000|11601*a&65535)<<15|a>>>17)&0xffff0000|13715*a&65535,1&r?l^=a:h^=a;}this.h1=l,this.h2=h;}hexdigest(){let t=this.h1,e=this.h2;return t^=e>>>1,e=0xff51afd7*e&0xffff0000|((e<<16|(t=0xed558ccd*t&0xffff0000|36045*t&65535)>>>16)*0xafd7ed55&0xffff0000)>>>16,t^=e>>>1,e=0xc4ceb9fe*e&0xffff0000|((e<<16|(t=0x1a85ec53*t&0xffff0000|60499*t&65535)>>>16)*0xb9fe1a85&0xffff0000)>>>16,((t^=e>>>1)>>>0).toString(16).padStart(8,"0")+(e>>>0).toString(16).padStart(8,"0");}}let tJ=Object.freeze({map:null,hash:"",transfer:void 0});var _ib=new WeakMap();var _iv=new WeakMap();var _iy=new WeakMap();var _iA=new WeakMap();var _tQ_brand=new WeakSet();class tQ{constructor(){_classPrivateMethodInitSpec(this,_tQ_brand);_classPrivateFieldInitSpec(this,_ib,!1);_classPrivateFieldInitSpec(this,_iv,null);_classPrivateFieldInitSpec(this,_iy,null);_classPrivateFieldInitSpec(this,_iA,new Map());_defineProperty(this,"onSetModified",null);_defineProperty(this,"onResetModified",null);_defineProperty(this,"onAnnotationEditor",null);}getValue(t,e){let i=_classPrivateFieldGet(_iA,this).get(t);return void 0===i?e:Object.assign(e,i);}getRawValue(t){return _classPrivateFieldGet(_iA,this).get(t);}remove(t){var _this$onAnnotationEdi;let e=_classPrivateFieldGet(_iA,this).get(t);void 0===e||(e instanceof tX&&_classPrivateFieldGet(_iy,this).delete(e.annotationElementId),_classPrivateFieldGet(_iA,this).delete(t),0===_classPrivateFieldGet(_iA,this).size&&this.resetModified(),_classPrivateFieldGet(_iA,this).values().some(t=>t instanceof tX)||((_this$onAnnotationEdi=this.onAnnotationEditor)===null||_this$onAnnotationEdi===void 0?void 0:_this$onAnnotationEdi.call(this,null)));}setValue(t,e){var _this$onAnnotationEdi2;let i=_classPrivateFieldGet(_iA,this).get(t),r=!1;if(void 0!==i)for(let[t,s]of Object.entries(e))i[t]!==s&&(r=!0,i[t]=s);else r=!0,_classPrivateFieldGet(_iA,this).set(t,e);r&&_assertClassBrand(_tQ_brand,this,_ix).call(this),e instanceof tX&&((_classPrivateFieldGet(_iy,this)||_classPrivateFieldSet(_iy,this,new Map())).set(e.annotationElementId,e),(_this$onAnnotationEdi2=this.onAnnotationEditor)===null||_this$onAnnotationEdi2===void 0?void 0:_this$onAnnotationEdi2.call(this,e.constructor._type));}has(t){return _classPrivateFieldGet(_iA,this).has(t);}get size(){return _classPrivateFieldGet(_iA,this).size;}resetModified(){var _this$onResetModified;_classPrivateFieldGet(_ib,this)&&(_classPrivateFieldSet(_ib,this,!1),(_this$onResetModified=this.onResetModified)===null||_this$onResetModified===void 0?void 0:_this$onResetModified.call(this));}get print(){return new tZ(this);}get serializable(){if(0===_classPrivateFieldGet(_iA,this).size)return tJ;let t=new Map(),e=new tq(),i=[],r=Object.create(null),s=!1;for(let[i,n]of _classPrivateFieldGet(_iA,this)){let a=n instanceof tX?n.serialize(!1,r):n;n.page&&(n.pageIndex=n.page._pageIndex,delete n.page),a&&(t.set(i,a),e.update(`${i}:${JSON.stringify(a)}`),s||(s=!!a.bitmap));}if(s)for(let e of t.values())e.bitmap&&i.push(e.bitmap);return t.size>0?{map:t,hash:e.hexdigest(),transfer:i}:tJ;}get editorStats(){let t=null,e=new Map(),i=0,r=0;for(let s of _classPrivateFieldGet(_iA,this).values()){var _t19;if(!(s instanceof tX)){s.popup&&(s.popup.deleted?r+=1:i+=1);continue;}s.isCommentDeleted?r+=1:s.hasEditedComment&&(i+=1);let n=s.telemetryFinalData;if(!n)continue;let{type:a}=n;e.getOrInsertComputed(a,()=>Object.getPrototypeOf(s).constructor),t||(t=Object.create(null));let o=(_t19=t)[a]||(_t19[a]=new Map());for(let[t,e]of Object.entries(n)){var _i$get;if("type"===t)continue;let i=o.getOrInsertComputed(t,K);i.set(e,((_i$get=i.get(e))!==null&&_i$get!==void 0?_i$get:0)+1);}}if((r>0||i>0)&&((t||(t=Object.create(null))).comments={deleted:r,edited:i}),!t)return null;for(let[i,r]of e)t[i]=r.computeTelemetryFinalData(t[i]);return t;}resetModifiedIds(){_classPrivateFieldSet(_iv,this,null);}updateEditor(t,e){var _classPrivateFieldGet75;let i=(_classPrivateFieldGet75=_classPrivateFieldGet(_iy,this))===null||_classPrivateFieldGet75===void 0?void 0:_classPrivateFieldGet75.get(t);return!!i&&(i.updateFromAnnotationLayer(e),!0);}getEditor(t){var _classPrivateFieldGet76;return((_classPrivateFieldGet76=_classPrivateFieldGet(_iy,this))===null||_classPrivateFieldGet76===void 0?void 0:_classPrivateFieldGet76.get(t))||null;}get modifiedIds(){if(_classPrivateFieldGet(_iv,this))return _classPrivateFieldGet(_iv,this);let t=[];if(_classPrivateFieldGet(_iy,this))for(let e of _classPrivateFieldGet(_iy,this).values())e.serialize()&&t.push(e.annotationElementId);let e="";if(t.length){let i=new tq();i.update(t.join(",")),e=i.hexdigest();}return _classPrivateFieldSet(_iv,this,{ids:new Set(t),hash:e});}[Symbol.iterator](){return _classPrivateFieldGet(_iA,this).entries();}}function _ix(){var _this$onSetModified;_classPrivateFieldGet(_ib,this)||(_classPrivateFieldSet(_ib,this,!0),(_this$onSetModified=this.onSetModified)===null||_this$onSetModified===void 0?void 0:_this$onSetModified.call(this));}var _iw=new WeakMap();class tZ extends tQ{constructor(t){super();_classPrivateFieldInitSpec(this,_iw,tJ);let{serializable:e}=t;if(e===tJ)return;let{map:i,hash:r,transfer:s}=e,n=structuredClone(i,s?{transfer:s}:null);_classPrivateFieldSet(_iw,this,{map:n,hash:r,transfer:[]});}get print(){_("Should not call PrintAnnotationStorage.print");}get serializable(){return _classPrivateFieldGet(_iw,this);}get modifiedIds(){return D(this,"modifiedIds",{ids:new Set(),hash:""});}}a(7588);let t0="__forcedDependency",{floor:t1,ceil:t2}=Math;function t5(t,e,i,r,s,n){t[4*e+0]=Math.min(t[4*e+0],i),t[4*e+1]=Math.min(t[4*e+1],r),t[4*e+2]=Math.max(t[4*e+2],s),t[4*e+3]=Math.max(t[4*e+3],n);}let t3=new Uint32Array(new Uint8Array([255,255,0,0]).buffer)[0];var _iS=new WeakMap();var _iC=new WeakMap();class t6{constructor(t,e){_classPrivateFieldInitSpec(this,_iS,void 0);_classPrivateFieldInitSpec(this,_iC,void 0);_classPrivateFieldSet(_iS,this,t),_classPrivateFieldSet(_iC,this,e);}get length(){return _classPrivateFieldGet(_iS,this).length;}isEmpty(t){return _classPrivateFieldGet(_iS,this)[t]===t3;}minX(t){return _classPrivateFieldGet(_iC,this)[4*t+0]/256;}minY(t){return _classPrivateFieldGet(_iC,this)[4*t+1]/256;}maxX(t){return(_classPrivateFieldGet(_iC,this)[4*t+2]+1)/256;}maxY(t){return(_classPrivateFieldGet(_iC,this)[4*t+3]+1)/256;}}let t4=(t,e)=>t===null||t===void 0?void 0:t.getOrInsertComputed(e,()=>({dependencies:new Set(),isRenderingOperation:!1}));var _iE=new WeakMap();var _i_=new WeakMap();var _iT=new WeakMap();var _ik=new WeakMap();var _iM=new WeakMap();var _iP=new WeakMap();var _iS2=new WeakMap();var _t9_brand=new WeakSet();class t9{constructor(_t22,_e15){_classPrivateMethodInitSpec(this,_t9_brand);_classPrivateFieldInitSpec(this,_iE,[[1,0,0,1,0,0]]);_classPrivateFieldInitSpec(this,_i_,[-1/0,-1/0,1/0,1/0]);_classPrivateFieldInitSpec(this,_iT,new Float64Array(l));_defineProperty(this,"_pendingBBoxIdx",-1);_classPrivateFieldInitSpec(this,_ik,void 0);_classPrivateFieldInitSpec(this,_iM,void 0);_classPrivateFieldInitSpec(this,_iP,void 0);_classPrivateFieldInitSpec(this,_iS2,void 0);_defineProperty(this,"_savesStack",[]);_defineProperty(this,"_markedContentStack",[]);_classPrivateFieldSet(_ik,this,_t22.width),_classPrivateFieldSet(_iM,this,_t22.height),_assertClassBrand(_t9_brand,this,_iD).call(this,_e15);}growOperationsCount(t){t>=_classPrivateFieldGet(_iS2,this).length&&_assertClassBrand(_t9_brand,this,_iD).call(this,t,_classPrivateFieldGet(_iS2,this));}get clipBox(){return _classPrivateFieldGet(_i_,this);}save(t){return _classPrivateFieldSet(_i_,this,{__proto__:_classPrivateFieldGet(_i_,this)}),this._savesStack.push(t),this;}restore(t,e){let i=Object.getPrototypeOf(_classPrivateFieldGet(_i_,this));if(null===i)return this;_classPrivateFieldSet(_i_,this,i);let r=this._savesStack.pop();return void 0!==r&&(e!==null&&e!==void 0&&e(r,t),_classPrivateFieldGet(_iS2,this)[t]=_classPrivateFieldGet(_iS2,this)[r]),this;}recordOpenMarker(t){return this._savesStack.push(t),this;}getOpenMarker(){return 0===this._savesStack.length?null:this._savesStack.at(-1);}recordCloseMarker(t,e){let i=this._savesStack.pop();return void 0!==i&&(e!==null&&e!==void 0&&e(i,t),_classPrivateFieldGet(_iS2,this)[t]=_classPrivateFieldGet(_iS2,this)[i]),this;}beginMarkedContent(t){return this._markedContentStack.push(t),this;}endMarkedContent(t,e){let i=this._markedContentStack.pop();return void 0!==i&&(e!==null&&e!==void 0&&e(i,t),_classPrivateFieldGet(_iS2,this)[t]=_classPrivateFieldGet(_iS2,this)[i]),this;}pushBaseTransform(t){return _classPrivateFieldGet(_iE,this).push(G.multiplyByDOMMatrix(_classPrivateFieldGet(_iE,this).at(-1),t.getTransform())),this;}popBaseTransform(){return _classPrivateFieldGet(_iE,this).length>1&&_classPrivateFieldGet(_iE,this).pop(),this;}resetBBox(t){return this._pendingBBoxIdx!==t&&(this._pendingBBoxIdx=t,_classPrivateFieldGet(_iT,this).set(l,0)),this;}recordClipBox(t,e,i,r,s,n){let a=G.multiplyByDOMMatrix(_classPrivateFieldGet(_iE,this).at(-1),e.getTransform()),o=l.slice();G.axialAlignedBoundingBox([i,s,r,n],a,o);let h=G.intersect(_classPrivateFieldGet(_i_,this),o);return h?(_classPrivateFieldGet(_i_,this)[0]=h[0],_classPrivateFieldGet(_i_,this)[1]=h[1],_classPrivateFieldGet(_i_,this)[2]=h[2],_classPrivateFieldGet(_i_,this)[3]=h[3]):(_classPrivateFieldGet(_i_,this)[0]=_classPrivateFieldGet(_i_,this)[1]=1/0,_classPrivateFieldGet(_i_,this)[2]=_classPrivateFieldGet(_i_,this)[3]=-1/0),this;}recordBBox(t,e,i,r,s,n){let a=_classPrivateFieldGet(_i_,this);if(1/0===a[0])return this;let o=G.multiplyByDOMMatrix(_classPrivateFieldGet(_iE,this).at(-1),e.getTransform());if(-1/0===a[0])return G.axialAlignedBoundingBox([i,s,r,n],o,_classPrivateFieldGet(_iT,this)),this;let h=l.slice();return G.axialAlignedBoundingBox([i,s,r,n],o,h),_classPrivateFieldGet(_iT,this)[0]=q(h[0],a[0],_classPrivateFieldGet(_iT,this)[0]),_classPrivateFieldGet(_iT,this)[1]=q(h[1],a[1],_classPrivateFieldGet(_iT,this)[1]),_classPrivateFieldGet(_iT,this)[2]=q(h[2],_classPrivateFieldGet(_iT,this)[2],a[2]),_classPrivateFieldGet(_iT,this)[3]=q(h[3],_classPrivateFieldGet(_iT,this)[3],a[3]),this;}recordFullPageBBox(t){return _classPrivateFieldGet(_iT,this)[0]=Math.max(0,_classPrivateFieldGet(_i_,this)[0]),_classPrivateFieldGet(_iT,this)[1]=Math.max(0,_classPrivateFieldGet(_i_,this)[1]),_classPrivateFieldGet(_iT,this)[2]=Math.min(_classPrivateFieldGet(_ik,this),_classPrivateFieldGet(_i_,this)[2]),_classPrivateFieldGet(_iT,this)[3]=Math.min(_classPrivateFieldGet(_iM,this),_classPrivateFieldGet(_i_,this)[3]),this;}recordOperation(t,e=!1,i){if(this._pendingBBoxIdx!==t)return this;let r=t1(256*_classPrivateFieldGet(_iT,this)[0]/_classPrivateFieldGet(_ik,this)),s=t1(256*_classPrivateFieldGet(_iT,this)[1]/_classPrivateFieldGet(_iM,this)),n=t2(256*_classPrivateFieldGet(_iT,this)[2]/_classPrivateFieldGet(_ik,this)),a=t2(256*_classPrivateFieldGet(_iT,this)[3]/_classPrivateFieldGet(_iM,this));if(t5(_classPrivateFieldGet(_iP,this),t,r,s,n,a),i)for(let e of i)for(let i of e)i!==t&&t5(_classPrivateFieldGet(_iP,this),i,r,s,n,a);return e||(this._pendingBBoxIdx=-1),this;}bboxToClipBoxDropOperation(t){return this._pendingBBoxIdx===t&&(this._pendingBBoxIdx=-1,_classPrivateFieldGet(_i_,this)[0]=Math.max(_classPrivateFieldGet(_i_,this)[0],_classPrivateFieldGet(_iT,this)[0]),_classPrivateFieldGet(_i_,this)[1]=Math.max(_classPrivateFieldGet(_i_,this)[1],_classPrivateFieldGet(_iT,this)[1]),_classPrivateFieldGet(_i_,this)[2]=Math.min(_classPrivateFieldGet(_i_,this)[2],_classPrivateFieldGet(_iT,this)[2]),_classPrivateFieldGet(_i_,this)[3]=Math.min(_classPrivateFieldGet(_i_,this)[3],_classPrivateFieldGet(_iT,this)[3])),this;}take(){return new t6(_classPrivateFieldGet(_iS2,this),_classPrivateFieldGet(_iP,this));}takeDebugMetadata(){throw Error("Unreachable");}recordSimpleData(t,e){return this;}recordIncrementalData(t,e){return this;}resetIncrementalData(t,e){return this;}recordNamedData(t,e){return this;}recordSimpleDataFromNamed(t,e,i){return this;}recordFutureForcedDependency(t,e){return this;}inheritSimpleDataAsFutureForcedDependencies(t){return this;}inheritPendingDependenciesAsFutureForcedDependencies(){return this;}recordCharacterBBox(t,e,i,r=1,s=0,n=0,a){return this;}getSimpleIndex(t){}recordDependencies(t,e){return this;}recordNamedDependency(t,e){return this;}recordShowTextOperation(t,e=!1){return this;}}function _iD(t,e){let i=new ArrayBuffer(4*t);_classPrivateFieldSet(_iP,this,new Uint8ClampedArray(i)),_classPrivateFieldSet(_iS2,this,new Uint32Array(i)),e&&e.length>0?(_classPrivateFieldGet(_iS2,this).set(e),_classPrivateFieldGet(_iS2,this).fill(t3,e.length)):_classPrivateFieldGet(_iS2,this).fill(t3);}var _iI=new WeakMap();var _iR=new WeakMap();var _iF=new WeakMap();var _iO=new WeakMap();var _iB=new WeakMap();var _iL=new WeakMap();var _iN=new WeakMap();var _iU=new WeakMap();class t8{constructor(t,e=!1){_classPrivateFieldInitSpec(this,_iI,{__proto__:null});_classPrivateFieldInitSpec(this,_iR,{__proto__:null,transform:[],moveText:[],sameLineText:[],[t0]:[]});_classPrivateFieldInitSpec(this,_iF,new Map());_classPrivateFieldInitSpec(this,_iO,new Set());_classPrivateFieldInitSpec(this,_iB,new Map());_classPrivateFieldInitSpec(this,_iL,void 0);_classPrivateFieldInitSpec(this,_iN,void 0);_classPrivateFieldInitSpec(this,_iU,void 0);_classPrivateFieldSet(_iU,this,t),e&&(_classPrivateFieldSet(_iL,this,new Map()),_classPrivateFieldSet(_iN,this,(t,e)=>{t4(_classPrivateFieldGet(_iL,this),e).dependencies.add(t);}));}get clipBox(){return _classPrivateFieldGet(_iU,this).clipBox;}growOperationsCount(t){_classPrivateFieldGet(_iU,this).growOperationsCount(t);}save(t){return _classPrivateFieldSet(_iI,this,{__proto__:_classPrivateFieldGet(_iI,this)}),_classPrivateFieldSet(_iR,this,{__proto__:_classPrivateFieldGet(_iR,this),transform:{__proto__:_classPrivateFieldGet(_iR,this).transform},moveText:{__proto__:_classPrivateFieldGet(_iR,this).moveText},sameLineText:{__proto__:_classPrivateFieldGet(_iR,this).sameLineText},[t0]:{__proto__:_classPrivateFieldGet(_iR,this)[t0]}}),_classPrivateFieldGet(_iU,this).save(t),this;}restore(t){_classPrivateFieldGet(_iU,this).restore(t,_classPrivateFieldGet(_iN,this));let e=Object.getPrototypeOf(_classPrivateFieldGet(_iI,this));return null===e||(_classPrivateFieldSet(_iI,this,e),_classPrivateFieldSet(_iR,this,Object.getPrototypeOf(_classPrivateFieldGet(_iR,this)))),this;}recordOpenMarker(t){return _classPrivateFieldGet(_iU,this).recordOpenMarker(t,_classPrivateFieldGet(_iN,this)),this;}getOpenMarker(){return _classPrivateFieldGet(_iU,this).getOpenMarker();}recordCloseMarker(t){return _classPrivateFieldGet(_iU,this).recordCloseMarker(t,_classPrivateFieldGet(_iN,this)),this;}beginMarkedContent(t){return _classPrivateFieldGet(_iU,this).beginMarkedContent(t),this;}endMarkedContent(t){return _classPrivateFieldGet(_iU,this).endMarkedContent(t,_classPrivateFieldGet(_iN,this)),this;}pushBaseTransform(t){return _classPrivateFieldGet(_iU,this).pushBaseTransform(t),this;}popBaseTransform(){return _classPrivateFieldGet(_iU,this).popBaseTransform(),this;}recordSimpleData(t,e){return _classPrivateFieldGet(_iI,this)[t]=e,this;}recordIncrementalData(t,e){return _classPrivateFieldGet(_iR,this)[t].push(e),this;}resetIncrementalData(t,e){return _classPrivateFieldGet(_iR,this)[t].length=0,this;}recordNamedData(t,e){return _classPrivateFieldGet(_iF,this).set(t,e),this;}recordSimpleDataFromNamed(t,e,i){var _classPrivateFieldGet77;_classPrivateFieldGet(_iI,this)[t]=(_classPrivateFieldGet77=_classPrivateFieldGet(_iF,this).get(e))!==null&&_classPrivateFieldGet77!==void 0?_classPrivateFieldGet77:i;}recordFutureForcedDependency(t,e){return this.recordIncrementalData(t0,e),this;}inheritSimpleDataAsFutureForcedDependencies(t){for(let e of t)e in _classPrivateFieldGet(_iI,this)&&this.recordFutureForcedDependency(e,_classPrivateFieldGet(_iI,this)[e]);return this;}inheritPendingDependenciesAsFutureForcedDependencies(){for(let t of _classPrivateFieldGet(_iO,this))this.recordFutureForcedDependency(t0,t);return this;}resetBBox(t){return _classPrivateFieldGet(_iU,this).resetBBox(t),this;}recordClipBox(t,e,i,r,s,n){return _classPrivateFieldGet(_iU,this).recordClipBox(t,e,i,r,s,n),this;}recordBBox(t,e,i,r,s,n){return _classPrivateFieldGet(_iU,this).recordBBox(t,e,i,r,s,n),this;}recordCharacterBBox(t,e,i,r=1,s=0,n=0,a){let o,l,h=i.bbox;if(h&&!1!==(o=h[2]!==h[0]&&h[3]!==h[1]&&_classPrivateFieldGet(_iB,this).get(i))){var d,c;let a;if(l=[0,0,0,0],G.axialAlignedBoundingBox(h,i.fontMatrix,l),(1!==r||0!==s||0!==n)&&(d=-r,c=l,r?(r<0&&(a=c[0],c[0]=c[2],c[2]=a),c[0]*=r,c[2]*=r,d<0&&(a=c[1],c[1]=c[3],c[3]=a),c[1]*=d,c[3]*=d):c.fill(0),c[0]+=s,c[1]+=n,c[2]+=s,c[3]+=n),o)return this.recordBBox(t,e,l[0],l[2],l[1],l[3]);}if(!a)return this.recordFullPageBBox(t);let u=a();return h&&l&&void 0===o&&(o=l[0]<=s-u.actualBoundingBoxLeft&&l[2]>=s+u.actualBoundingBoxRight&&l[1]<=n-u.actualBoundingBoxAscent&&l[3]>=n+u.actualBoundingBoxDescent,_classPrivateFieldGet(_iB,this).set(i,o),o)?this.recordBBox(t,e,l[0],l[2],l[1],l[3]):this.recordBBox(t,e,s-u.actualBoundingBoxLeft,s+u.actualBoundingBoxRight,n-u.actualBoundingBoxAscent,n+u.actualBoundingBoxDescent);}recordFullPageBBox(t){return _classPrivateFieldGet(_iU,this).recordFullPageBBox(t),this;}getSimpleIndex(t){return _classPrivateFieldGet(_iI,this)[t];}recordDependencies(t,e){let i=_classPrivateFieldGet(_iO,this),r=_classPrivateFieldGet(_iI,this),s=_classPrivateFieldGet(_iR,this);for(let t of e)t in _classPrivateFieldGet(_iI,this)?i.add(r[t]):t in s&&s[t].forEach(i.add,i);return this;}recordNamedDependency(t,e){return _classPrivateFieldGet(_iF,this).has(e)&&_classPrivateFieldGet(_iO,this).add(_classPrivateFieldGet(_iF,this).get(e)),this;}recordOperation(t,e=!1){if(this.recordDependencies(t,[t0]),_classPrivateFieldGet(_iL,this)){let e=t4(_classPrivateFieldGet(_iL,this),t),{dependencies:i}=e;_classPrivateFieldGet(_iO,this).forEach(i.add,i),_classPrivateFieldGet(_iU,this)._savesStack.forEach(i.add,i),_classPrivateFieldGet(_iU,this)._markedContentStack.forEach(i.add,i),i.delete(t),e.isRenderingOperation=!0;}let i=!e&&t===_classPrivateFieldGet(_iU,this)._pendingBBoxIdx;return _classPrivateFieldGet(_iU,this).recordOperation(t,e,[_classPrivateFieldGet(_iO,this),_classPrivateFieldGet(_iU,this)._savesStack,_classPrivateFieldGet(_iU,this)._markedContentStack]),i&&_classPrivateFieldGet(_iO,this).clear(),this;}recordShowTextOperation(t,e=!1){let i=Array.from(_classPrivateFieldGet(_iO,this));for(let r of(this.recordOperation(t,e),this.recordIncrementalData("sameLineText",t),i))this.recordIncrementalData("sameLineText",r);return this;}bboxToClipBoxDropOperation(t,e=!1){let i=!e&&t===_classPrivateFieldGet(_iU,this)._pendingBBoxIdx;return _classPrivateFieldGet(_iU,this).bboxToClipBoxDropOperation(t),i&&_classPrivateFieldGet(_iO,this).clear(),this;}take(){return _classPrivateFieldGet(_iB,this).clear(),_classPrivateFieldGet(_iU,this).take();}takeDebugMetadata(){return _classPrivateFieldGet(_iL,this);}}var _iz=new WeakMap();var _iG=new WeakMap();var _ij=new WeakMap();var _iH=new WeakMap();var _i$=new WeakMap();class t7{constructor(t,e,i){_classPrivateFieldInitSpec(this,_iz,void 0);_classPrivateFieldInitSpec(this,_iG,void 0);_classPrivateFieldInitSpec(this,_ij,void 0);_classPrivateFieldInitSpec(this,_iH,0);_classPrivateFieldInitSpec(this,_i$,0);if(t instanceof t7&&!!i===_classPrivateFieldGet(_ij,t))return t;_classPrivateFieldSet(_iz,this,t),_classPrivateFieldSet(_iG,this,e),_classPrivateFieldSet(_ij,this,!!i);}get clipBox(){return _classPrivateFieldGet(_iz,this).clipBox;}growOperationsCount(){throw Error("Unreachable");}save(t){var _this$i$,_this$i$2;return _classPrivateFieldSet(_i$,this,(_this$i$=_classPrivateFieldGet(_i$,this),_this$i$2=_this$i$++,_this$i$)),_this$i$2,_classPrivateFieldGet(_iz,this).save(_classPrivateFieldGet(_iG,this)),this;}restore(t){var _this$i$3,_this$i$4;return _classPrivateFieldGet(_i$,this)>0&&(_classPrivateFieldGet(_iz,this).restore(_classPrivateFieldGet(_iG,this)),_classPrivateFieldSet(_i$,this,(_this$i$3=_classPrivateFieldGet(_i$,this),_this$i$4=_this$i$3--,_this$i$3)),_this$i$4),this;}recordOpenMarker(t){var _this$iH,_this$iH2;return _classPrivateFieldSet(_iH,this,(_this$iH=_classPrivateFieldGet(_iH,this),_this$iH2=_this$iH++,_this$iH)),_this$iH2,this;}getOpenMarker(){return _classPrivateFieldGet(_iH,this)>0?_classPrivateFieldGet(_iG,this):_classPrivateFieldGet(_iz,this).getOpenMarker();}recordCloseMarker(t){var _this$iH3,_this$iH4;return _classPrivateFieldSet(_iH,this,(_this$iH3=_classPrivateFieldGet(_iH,this),_this$iH4=_this$iH3--,_this$iH3)),_this$iH4,this;}beginMarkedContent(t){return this;}endMarkedContent(t){return this;}pushBaseTransform(t){return _classPrivateFieldGet(_iz,this).pushBaseTransform(t),this;}popBaseTransform(){return _classPrivateFieldGet(_iz,this).popBaseTransform(),this;}recordSimpleData(t,e){return _classPrivateFieldGet(_iz,this).recordSimpleData(t,_classPrivateFieldGet(_iG,this)),this;}recordIncrementalData(t,e){return _classPrivateFieldGet(_iz,this).recordIncrementalData(t,_classPrivateFieldGet(_iG,this)),this;}resetIncrementalData(t,e){return _classPrivateFieldGet(_iz,this).resetIncrementalData(t,_classPrivateFieldGet(_iG,this)),this;}recordNamedData(t,e){return this;}recordSimpleDataFromNamed(t,e,i){return _classPrivateFieldGet(_iz,this).recordSimpleDataFromNamed(t,e,_classPrivateFieldGet(_iG,this)),this;}recordFutureForcedDependency(t,e){return _classPrivateFieldGet(_iz,this).recordFutureForcedDependency(t,_classPrivateFieldGet(_iG,this)),this;}inheritSimpleDataAsFutureForcedDependencies(t){return _classPrivateFieldGet(_iz,this).inheritSimpleDataAsFutureForcedDependencies(t),this;}inheritPendingDependenciesAsFutureForcedDependencies(){return _classPrivateFieldGet(_iz,this).inheritPendingDependenciesAsFutureForcedDependencies(),this;}resetBBox(t){return _classPrivateFieldGet(_ij,this)||_classPrivateFieldGet(_iz,this).resetBBox(_classPrivateFieldGet(_iG,this)),this;}recordClipBox(t,e,i,r,s,n){return _classPrivateFieldGet(_ij,this)||_classPrivateFieldGet(_iz,this).recordClipBox(_classPrivateFieldGet(_iG,this),e,i,r,s,n),this;}recordBBox(t,e,i,r,s,n){return _classPrivateFieldGet(_ij,this)||_classPrivateFieldGet(_iz,this).recordBBox(_classPrivateFieldGet(_iG,this),e,i,r,s,n),this;}recordCharacterBBox(t,e,i,r,s,n,a){return _classPrivateFieldGet(_ij,this)||_classPrivateFieldGet(_iz,this).recordCharacterBBox(_classPrivateFieldGet(_iG,this),e,i,r,s,n,a),this;}recordFullPageBBox(t){return _classPrivateFieldGet(_ij,this)||_classPrivateFieldGet(_iz,this).recordFullPageBBox(_classPrivateFieldGet(_iG,this)),this;}getSimpleIndex(t){return _classPrivateFieldGet(_iz,this).getSimpleIndex(t);}recordDependencies(t,e){return _classPrivateFieldGet(_iz,this).recordDependencies(_classPrivateFieldGet(_iG,this),e),this;}recordNamedDependency(t,e){return _classPrivateFieldGet(_iz,this).recordNamedDependency(_classPrivateFieldGet(_iG,this),e),this;}recordOperation(t){return _classPrivateFieldGet(_iz,this).recordOperation(_classPrivateFieldGet(_iG,this),!0),this;}recordShowTextOperation(t){return _classPrivateFieldGet(_iz,this).recordShowTextOperation(_classPrivateFieldGet(_iG,this),!0),this;}bboxToClipBoxDropOperation(t){return _classPrivateFieldGet(_ij,this)||_classPrivateFieldGet(_iz,this).bboxToClipBoxDropOperation(_classPrivateFieldGet(_iG,this),!0),this;}take(){throw Error("Unreachable");}takeDebugMetadata(){throw Error("Unreachable");}}let et=["path","transform","filter","strokeColor","strokeAlpha","lineWidth","lineCap","lineJoin","miterLimit","dash"],ee=["path","transform","filter","fillColor","fillAlpha","globalCompositeOperation","SMask"],ei=["transform","SMask","filter","fillAlpha","strokeAlpha","globalCompositeOperation"],er=["filter","fillColor","fillAlpha"],es=["transform","leading","charSpacing","wordSpacing","hScale","textRise","moveText","textMatrix","font","fontObj","filter","fillColor","textRenderingMode","SMask","fillAlpha","strokeAlpha","globalCompositeOperation","sameLineText"],en=["transform"],ea=["transform","fillColor"];var _ik2=new WeakMap();var _iM2=new WeakMap();var _iV=new WeakMap();var _iW=new WeakMap();var _iC2=new WeakMap();class eo{constructor(t){_classPrivateFieldInitSpec(this,_ik2,void 0);_classPrivateFieldInitSpec(this,_iM2,void 0);_classPrivateFieldInitSpec(this,_iV,4);_classPrivateFieldInitSpec(this,_iW,0);_classPrivateFieldInitSpec(this,_iC2,new _iK._(6*_classPrivateFieldGet(_iV,this)));_classPrivateFieldSet(_ik2,this,t.width),_classPrivateFieldSet(_iM2,this,t.height);}record(t,e,i,r){var _this$iW,_this$iW2;let s;if(_classPrivateFieldGet(_iW,this)===_classPrivateFieldGet(_iV,this)){_classPrivateFieldSet(_iV,this,_classPrivateFieldGet(_iV,this)*2);let t=new _iK._(6*_classPrivateFieldGet(_iV,this));t.set(_classPrivateFieldGet(_iC2,this)),_classPrivateFieldSet(_iC2,this,t);}let n=tf(t);if(1/0!==r[0]){let t=l.slice();G.axialAlignedBoundingBox([0,-i,e,0],n,t);let a=G.intersect(r,t);if(!a)return;let[o,h,d,c]=a;if(o!==t[0]||h!==t[1]||d!==t[2]||c!==t[3]){let t=Math.atan2(n[1],n[0]),e=Math.abs(Math.sin(t)),i=Math.abs(Math.cos(t));if(e<1e-6||i<1e-6||1e-6>Math.abs(e-i))s=[o,h,o,c,d,h];else{let t=d-o,r=c-h,n=e*e,a=i*i,l=i*e,u=a-n,p=(r*a-t*l)/u;s=[o+(r*l-t*n)/u,h,o,h+p,d,c-p];}}}s||(s=[0,-i,0,0,e,-i],G.applyTransform(s,n,0),G.applyTransform(s,n,2),G.applyTransform(s,n,4)),s[0]/=_classPrivateFieldGet(_ik2,this),s[1]/=_classPrivateFieldGet(_iM2,this),s[2]/=_classPrivateFieldGet(_ik2,this),s[3]/=_classPrivateFieldGet(_iM2,this),s[4]/=_classPrivateFieldGet(_ik2,this),s[5]/=_classPrivateFieldGet(_iM2,this),_classPrivateFieldGet(_iC2,this).set(s,6*_classPrivateFieldGet(_iW,this)),_classPrivateFieldSet(_iW,this,(_this$iW=_classPrivateFieldGet(_iW,this),_this$iW2=_this$iW++,_this$iW)),_this$iW2;}take(){return _classPrivateFieldGet(_iC2,this).subarray(0,6*_classPrivateFieldGet(_iW,this));}}var _iK={_:z.isFloat16ArraySupported?Float16Array:Float32Array};let el=/[\0-\x1F\x7F-\x9F]/u;function eh(t){if(function(t){let e=t[0];if(t.length<2||'"'!==e&&"'"!==e||t.at(-1)!==e)return!1;let i=t.length-1;for(let r=1;r<i;r++){let s=t[r];if(s===e||el.test(s)||"\\"===s&&(++r>=i||el.test(t[r])))return!1;}return!0;}(t))return t;let e=t.replaceAll(/[\0-\x1F"\\\x7F-\x9F]/gu,t=>'"'===t||"\\"===t?`\\${t}`:`\\${t.codePointAt(0).toString(16)} `);return`"${e}"`;}var _iX=new WeakMap();var _iY=new WeakMap();var _ed_brand=new WeakSet();class ed{constructor({ownerDocument:_t25=globalThis.document,styleElement:_e16=null}){_classPrivateMethodInitSpec(this,_ed_brand);_classPrivateFieldInitSpec(this,_iX,new Set());_classPrivateFieldInitSpec(this,_iY,null);this._document=_t25,this.nativeFontFaces=new Set(),this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0;}addNativeFontFace(t){this.nativeFontFaces.add(t),this._document.fonts.add(t);}removeNativeFontFace(t){this.nativeFontFaces.delete(t),this._document.fonts.delete(t);}insertRule(t){let e=_assertClassBrand(_ed_brand,this,_iq).call(this);e.insertRule(t,e.cssRules.length);}clear(){for(let t of this.nativeFontFaces)this._document.fonts.delete(t);if(this.nativeFontFaces.clear(),_classPrivateFieldGet(_iX,this).clear(),_classPrivateFieldGet(_iY,this)){let{adoptedStyleSheets:t}=this._document;t!==null&&t!==void 0&&t.includes(_classPrivateFieldGet(_iY,this))&&(this._document.adoptedStyleSheets=t.filter(t=>t!==_classPrivateFieldGet(_iY,this))),_classPrivateFieldSet(_iY,this,null);}this.styleElement&&(this.styleElement.remove(),this.styleElement=null);}async loadSystemFont({systemFontInfo:t,disableFontFace:e,_inspectFont:i}){if(!(!t||_classPrivateFieldGet(_iX,this).has(t.loadedName))){if(T(!e,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){let{loadedName:e,src:r,style:s}=t,n=new FontFace(e,r,s);this.addNativeFontFace(n);try{await n.load(),_classPrivateFieldGet(_iX,this).add(e),i===null||i===void 0?void 0:i(t);}catch{E(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(n);}return;}_("Not implemented: loadSystemFont without the Font Loading API.");}}async bind(t){if(t.attached||t.missingFile&&!t.systemFontInfo)return;if(t.attached=!0,t.systemFontInfo)return void(await this.loadSystemFont(t));if(this.isFontLoadingAPISupported){let e=t.createNativeFontFace();if(e){this.addNativeFontFace(e);try{await e.loaded;}catch(i){throw E(`Failed to load font '${e.family}': '${i}'.`),t.disableFontFace=!0,i;}}return;}let e=t.createFontFaceRule();if(e){if(this.insertRule(e),this.isSyncFontLoadingSupported)return;await new Promise(e=>{let i=this._queueLoadingCallback(e);this._prepareFontLoadEvent(t,i);});}}get isFontLoadingAPISupported(){var _this$_document;return D(this,"isFontLoadingAPISupported",!!((_this$_document=this._document)!==null&&_this$_document!==void 0&&_this$_document.fonts));}get isSyncFontLoadingSupported(){return D(this,"isSyncFontLoadingSupported",o||z.platform.isFirefox);}_queueLoadingCallback(t){let{loadingRequests:e}=this,i={done:!1,complete:function(){for(T(!i.done,"completeRequest() cannot be called twice."),i.done=!0;e.length>0&&e[0].done;)setTimeout(e.shift().callback,0);},callback:t};return e.push(i),i;}get _loadTestFont(){return D(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="));}_prepareFontLoadEvent(t,e){var i;let r,s;function n(t,e){return t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|255&t.charCodeAt(e+3);}function a(t,e,i,r){return t.substring(0,e)+r+t.substring(e+i);}let o=this._document.createElement("canvas");o.width=1,o.height=1;let l=o.getContext("2d"),h=0,d=`lt${Date.now()}${this.loadTestFontId++}`,c=this._loadTestFont,u=n(c=a(c,976,d.length,d),16);for(r=0,s=d.length-3;r<s;r+=4)u=u-0x58585858+n(d,r)|0;r<d.length&&(u=u-0x58585858+n(d+"XXX",r)|0),c=a(c,16,4,String.fromCharCode((i=u)>>24&255,i>>16&255,i>>8&255,255&i));let p=`url(data:font/opentype;base64,${btoa(c)});`,g=`@font-face {font-family:"${d}";src:${p}}`;this.insertRule(g);let m=this._document.createElement("div");for(let e of(m.style.visibility="hidden",m.style.width=m.style.height="10px",m.style.position="absolute",m.style.top=m.style.left="0px",[t.loadedName,d])){let t=this._document.createElement("span");t.textContent="Hi",t.style.fontFamily=e,m.append(t);}this._document.body.append(m),function t(e,i){if(++h>30){E("Load test font never loaded."),i();return;}(l.font="30px "+e,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0)?i():setTimeout(t.bind(null,e,i));}(d,()=>{m.remove(),e.complete();});}}function _iq(){var _this$_document$defau;if(_classPrivateFieldGet(_iY,this))return _classPrivateFieldGet(_iY,this);let t=((_this$_document$defau=this._document.defaultView)===null||_this$_document$defau===void 0?void 0:_this$_document$defau.CSSStyleSheet)||globalThis.CSSStyleSheet;if(!this.styleElement&&t){let{adoptedStyleSheets:e}=this._document;if(e){let i=new t();return e.push(i),_classPrivateFieldSet(_iY,this,i);}}return this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement)),_classPrivateFieldSet(_iY,this,this.styleElement.sheet);}var _iJ=new WeakMap();class ec{constructor(t,e=null,i,r){_defineProperty(this,"compiledGlyphs",Object.create(null));_classPrivateFieldInitSpec(this,_iJ,void 0);_classPrivateFieldSet(_iJ,this,t),this._inspectFont=e,i&&(this.charProcOperatorList=i),r&&Object.assign(this,r);}createNativeFontFace(){var _this$_inspectFont;let t;if(!this.data||this.disableFontFace)return null;if(this.cssFontInfo){let e={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(e.style=`oblique ${this.cssFontInfo.italicAngle}deg`),t=new FontFace(eh(this.cssFontInfo.fontFamily),this.data,e);}else t=new FontFace(this.loadedName,this.data,{});return(_this$_inspectFont=this._inspectFont)!==null&&_this$_inspectFont!==void 0&&_this$_inspectFont.call(this,this),t;}createFontFaceRule(){var _this$_inspectFont2;let t;if(!this.data||this.disableFontFace)return null;let e=`url(data:${this.mimetype};base64,${this.data.toBase64()});`;if(this.cssFontInfo){let i=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(i+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`);let r=eh(this.cssFontInfo.fontFamily);t=`@font-face {font-family:${r};${i}src:${e}}`;}else t=`@font-face {font-family:"${this.loadedName}";src:${e}}`;return(_this$_inspectFont2=this._inspectFont)!==null&&_this$_inspectFont2!==void 0&&_this$_inspectFont2.call(this,this,e),t;}getPathGenerator(t,e){var _i7;let i;if(void 0!==this.compiledGlyphs[e])return this.compiledGlyphs[e];let r=this.loadedName+"_path_"+e;try{i=t.get(r);}catch(t){E(`getPathGenerator - ignoring character: "${t}".`);}let s=tD((_i7=i)===null||_i7===void 0?void 0:_i7.path);return this.fontExtraProperties||t.delete(r),this.compiledGlyphs[e]=s;}get black(){return _classPrivateFieldGet(_iJ,this).black;}get bold(){return _classPrivateFieldGet(_iJ,this).bold;}get disableFontFace(){return _classPrivateFieldGet(_iJ,this).disableFontFace;}set disableFontFace(t){D(this,"disableFontFace",!!t);}get fontExtraProperties(){return _classPrivateFieldGet(_iJ,this).fontExtraProperties;}get isInvalidPDFjsFont(){return _classPrivateFieldGet(_iJ,this).isInvalidPDFjsFont;}get isType3Font(){return _classPrivateFieldGet(_iJ,this).isType3Font;}get italic(){return _classPrivateFieldGet(_iJ,this).italic;}get missingFile(){return _classPrivateFieldGet(_iJ,this).missingFile;}get remeasure(){return _classPrivateFieldGet(_iJ,this).remeasure;}get vertical(){return _classPrivateFieldGet(_iJ,this).vertical;}get ascent(){return _classPrivateFieldGet(_iJ,this).ascent;}get defaultWidth(){return _classPrivateFieldGet(_iJ,this).defaultWidth;}get descent(){return _classPrivateFieldGet(_iJ,this).descent;}get bbox(){return _classPrivateFieldGet(_iJ,this).bbox;}get fontMatrix(){return _classPrivateFieldGet(_iJ,this).fontMatrix;}get fallbackName(){return _classPrivateFieldGet(_iJ,this).fallbackName;}get loadedName(){return _classPrivateFieldGet(_iJ,this).loadedName;}get mimetype(){return _classPrivateFieldGet(_iJ,this).mimetype;}get name(){return _classPrivateFieldGet(_iJ,this).name;}get data(){return _classPrivateFieldGet(_iJ,this).data;}clearData(){_classPrivateFieldGet(_iJ,this).clearData();}get cssFontInfo(){return _classPrivateFieldGet(_iJ,this).cssFontInfo;}get systemFontInfo(){return _classPrivateFieldGet(_iJ,this).systemFontInfo;}get defaultVMetrics(){return _classPrivateFieldGet(_iJ,this).defaultVMetrics;}}class eu{}_defineProperty(eu,"strings",["fontFamily","fontWeight","italicAngle"]);class ep{}_defineProperty(ep,"strings",["css","loadedName","baseFontName","src"]);class eg{}_eg2=eg;_defineProperty(eg,"bools",["black","bold","disableFontFace","fontExtraProperties","isInvalidPDFjsFont","isType3Font","italic","missingFile","remeasure","vertical"]);_defineProperty(eg,"numbers",["ascent","defaultWidth","descent"]);_defineProperty(eg,"strings",["fallbackName","loadedName","mimetype","name"]);_defineProperty(eg,"OFFSET_NUMBERS",Math.ceil(2*_eg2.bools.length/8));_defineProperty(eg,"OFFSET_BBOX",_eg2.OFFSET_NUMBERS+8*_eg2.numbers.length);_defineProperty(eg,"OFFSET_FONT_MATRIX",_eg2.OFFSET_BBOX+1+8);_defineProperty(eg,"OFFSET_DEFAULT_VMETRICS",_eg2.OFFSET_FONT_MATRIX+1+48);_defineProperty(eg,"OFFSET_STRINGS",_eg2.OFFSET_DEFAULT_VMETRICS+1+6);class em{}_defineProperty(em,"KIND",0);_defineProperty(em,"HAS_BBOX",1);_defineProperty(em,"HAS_BACKGROUND",2);_defineProperty(em,"SHADING_TYPE",3);_defineProperty(em,"N_COORD",4);_defineProperty(em,"N_COLOR",8);_defineProperty(em,"N_STOP",12);_defineProperty(em,"N_FIGURES",16);class ef{static get decoder(){return D(this,"decoder",new TextDecoder());}static get encoder(){return D(this,"encoder",new TextEncoder());}}var _iQ=new WeakMap();var _iZ=new WeakMap();var _eb_brand=new WeakSet();class eb{constructor(_t26){_classPrivateMethodInitSpec(this,_eb_brand);_classPrivateFieldInitSpec(this,_iQ,void 0);_classPrivateFieldInitSpec(this,_iZ,void 0);_classPrivateFieldSet(_iQ,this,_t26),_classPrivateFieldSet(_iZ,this,new DataView(_t26));}get fontFamily(){return _assertClassBrand(_eb_brand,this,_i8).call(this,0);}get fontWeight(){return _assertClassBrand(_eb_brand,this,_i8).call(this,1);}get italicAngle(){return _assertClassBrand(_eb_brand,this,_i8).call(this,2);}}function _i8(t){T(t<eu.strings.length,"Invalid string index");let{decoder:e}=ef,i=0;for(let e=0;e<t;e++)i+=_classPrivateFieldGet(_iZ,this).getUint32(i)+4;let r=_classPrivateFieldGet(_iZ,this).getUint32(i);return e.decode(new Uint8Array(_classPrivateFieldGet(_iQ,this),i+4,r));}var _iQ2=new WeakMap();var _iZ2=new WeakMap();var _ev_brand=new WeakSet();class ev{constructor(_t27){_classPrivateMethodInitSpec(this,_ev_brand);_classPrivateFieldInitSpec(this,_iQ2,void 0);_classPrivateFieldInitSpec(this,_iZ2,void 0);_classPrivateFieldSet(_iQ2,this,_t27),_classPrivateFieldSet(_iZ2,this,new DataView(_t27));}get guessFallback(){return 0!==_classPrivateFieldGet(_iZ2,this).getUint8(0);}get css(){return _assertClassBrand(_ev_brand,this,_i9).call(this,0);}get loadedName(){return _assertClassBrand(_ev_brand,this,_i9).call(this,1);}get baseFontName(){return _assertClassBrand(_ev_brand,this,_i9).call(this,2);}get src(){return _assertClassBrand(_ev_brand,this,_i9).call(this,3);}get style(){let{decoder:t}=ef,e=1;e+=4+_classPrivateFieldGet(_iZ2,this).getUint32(e);let i=_classPrivateFieldGet(_iZ2,this).getUint32(e),r=t.decode(new Uint8Array(_classPrivateFieldGet(_iQ2,this),e+4,i));e+=4+i;let s=_classPrivateFieldGet(_iZ2,this).getUint32(e),n=t.decode(new Uint8Array(_classPrivateFieldGet(_iQ2,this),e+4,s));return{style:r,weight:n};}}function _i9(t){T(t<ep.strings.length,"Invalid string index");let{decoder:e}=ef,i=5;for(let e=0;e<t;e++)i+=_classPrivateFieldGet(_iZ2,this).getUint32(i)+4;let r=_classPrivateFieldGet(_iZ2,this).getUint32(i);return e.decode(new Uint8Array(_classPrivateFieldGet(_iQ2,this),i+4,r));}var _iQ3=new WeakMap();var _iZ3=new WeakMap();var _ey_brand=new WeakSet();class ey{constructor({buffer:_t28,extra:_e17}){_classPrivateMethodInitSpec(this,_ey_brand);_classPrivateFieldInitSpec(this,_iQ3,void 0);_classPrivateFieldInitSpec(this,_iZ3,void 0);_classPrivateFieldSet(_iQ3,this,_t28),_classPrivateFieldSet(_iZ3,this,new DataView(_t28)),_e17&&Object.assign(this,_e17);}get black(){return _assertClassBrand(_ey_brand,this,_i0).call(this,0);}get bold(){return _assertClassBrand(_ey_brand,this,_i0).call(this,1);}get disableFontFace(){return _assertClassBrand(_ey_brand,this,_i0).call(this,2);}get fontExtraProperties(){return _assertClassBrand(_ey_brand,this,_i0).call(this,3);}get isInvalidPDFjsFont(){return _assertClassBrand(_ey_brand,this,_i0).call(this,4);}get isType3Font(){return _assertClassBrand(_ey_brand,this,_i0).call(this,5);}get italic(){return _assertClassBrand(_ey_brand,this,_i0).call(this,6);}get missingFile(){return _assertClassBrand(_ey_brand,this,_i0).call(this,7);}get remeasure(){return _assertClassBrand(_ey_brand,this,_i0).call(this,8);}get vertical(){return _assertClassBrand(_ey_brand,this,_i0).call(this,9);}get ascent(){return _assertClassBrand(_ey_brand,this,_i1).call(this,0);}get defaultWidth(){return _assertClassBrand(_ey_brand,this,_i1).call(this,1);}get descent(){return _assertClassBrand(_ey_brand,this,_i1).call(this,2);}get bbox(){return _assertClassBrand(_ey_brand,this,_i10).call(this,eg.OFFSET_BBOX,4,"getInt16",2);}get fontMatrix(){return _assertClassBrand(_ey_brand,this,_i10).call(this,eg.OFFSET_FONT_MATRIX,6,"getFloat64",8);}get defaultVMetrics(){return _assertClassBrand(_ey_brand,this,_i10).call(this,eg.OFFSET_DEFAULT_VMETRICS,3,"getInt16",2);}get fallbackName(){return _assertClassBrand(_ey_brand,this,_i11).call(this,0);}get loadedName(){return _assertClassBrand(_ey_brand,this,_i11).call(this,1);}get mimetype(){return _assertClassBrand(_ey_brand,this,_i11).call(this,2);}get name(){return _assertClassBrand(_ey_brand,this,_i11).call(this,3);}get data(){let{offset:t,length:e}=_assertClassBrand(_ey_brand,this,_i12).call(this);return 0===e?void 0:new Uint8Array(_classPrivateFieldGet(_iQ3,this),t+4,e);}clearData(){let{offset:t,length:e}=_assertClassBrand(_ey_brand,this,_i12).call(this);0!==e&&(_classPrivateFieldGet(_iZ3,this).setUint32(t,0),_classPrivateFieldSet(_iQ3,this,new Uint8Array(_classPrivateFieldGet(_iQ3,this),0,t+4).slice().buffer),_classPrivateFieldSet(_iZ3,this,new DataView(_classPrivateFieldGet(_iQ3,this))));}get cssFontInfo(){let t=eg.OFFSET_STRINGS,e=_classPrivateFieldGet(_iZ3,this).getUint32(t);t+=4+e;let i=_classPrivateFieldGet(_iZ3,this).getUint32(t);t+=4+i;let r=_classPrivateFieldGet(_iZ3,this).getUint32(t);if(0===r)return null;let s=new Uint8Array(r);return s.set(new Uint8Array(_classPrivateFieldGet(_iQ3,this),t+4,r)),new eb(s.buffer);}get systemFontInfo(){let t=eg.OFFSET_STRINGS,e=_classPrivateFieldGet(_iZ3,this).getUint32(t);t+=4+e;let i=_classPrivateFieldGet(_iZ3,this).getUint32(t);if(0===i)return null;let r=new Uint8Array(i);return r.set(new Uint8Array(_classPrivateFieldGet(_iQ3,this),t+4,i)),new ev(r.buffer);}}function _i0(t){T(t<eg.bools.length,"Invalid boolean index");let e=Math.floor(t/4),i=_classPrivateFieldGet(_iZ3,this).getUint8(e)>>2*t%8&3;return 0===i?void 0:2===i;}function _i1(t){return T(t<eg.numbers.length,"Invalid number index"),_classPrivateFieldGet(_iZ3,this).getFloat64(eg.OFFSET_NUMBERS+8*t);}function _i10(t,e,i,r){let s=_classPrivateFieldGet(_iZ3,this).getUint8(t);if(0===s)return;T(s===e,"Invalid array length."),t+=1;let n=Array(s);for(let e=0;e<s;e++)n[e]=_classPrivateFieldGet(_iZ3,this)[i](t,!0),t+=r;return n;}function _i11(t){T(t<eg.strings.length,"Invalid string index");let{decoder:e}=ef,i=eg.OFFSET_STRINGS+4;for(let e=0;e<t;e++)i+=_classPrivateFieldGet(_iZ3,this).getUint32(i)+4;let r=_classPrivateFieldGet(_iZ3,this).getUint32(i);return e.decode(new Uint8Array(_classPrivateFieldGet(_iQ3,this),i+4,r));}function _i12(){let t=eg.OFFSET_STRINGS,e=_classPrivateFieldGet(_iZ3,this).getUint32(t);t+=4+e;let i=_classPrivateFieldGet(_iZ3,this).getUint32(t);t+=4+i;let r=_classPrivateFieldGet(_iZ3,this).getUint32(t);t+=4+r;let s=_classPrivateFieldGet(_iZ3,this).getUint32(t);return{offset:t,length:s};}class eA{constructor(t){this.buffer=t,this.view=new DataView(t),this.data=new Uint8Array(t);}getIR(){let t=this.view,e=this.data[em.KIND],i=!!this.data[em.HAS_BBOX],r=!!this.data[em.HAS_BACKGROUND],s=t.getUint32(em.N_COORD,!0),n=t.getUint32(em.N_COLOR,!0),a=t.getUint32(em.N_STOP,!0),o=20,h=new Float32Array(this.buffer,o,2*s);o+=8*s;let d=new Uint8Array(this.buffer,o,4*n);o+=4*n;let c=[];for(let e=0;e<a;++e){let e=t.getFloat32(o,!0);o+=4;let i=t.getUint32(o,!0);o+=4,c.push([e,`#${i.toString(16).padStart(6,"0")}`]);}let u=null;if(i){u=[];for(let e=0;e<4;++e)u.push(t.getFloat32(o,!0)),o+=4;}let p=null;if(r&&(p=new Uint8Array(this.buffer,o,3),o+=3),1===e)return["RadialAxial","axial",u,c,Array.from(h.slice(0,2)),Array.from(h.slice(2,4)),null,null];if(2===e)return["RadialAxial","radial",u,c,[h[0],h[1]],[h[3],h[4]],h[2],h[5]];if(3===e){let t=this.data[em.SHADING_TYPE],e=null;if(h.length>0){e=l.slice();for(let t=0,i=h.length;t<i;t+=2)G.pointBoundingBox(h[t],h[t+1],e);}return["Mesh",t,h,d,s,e,u,p];}throw Error(`Unsupported pattern kind: ${e}`);}}var _iQ4=new WeakMap();class ex{constructor(t){_classPrivateFieldInitSpec(this,_iQ4,void 0);_classPrivateFieldSet(_iQ4,this,t);}get path(){return z.isFloat16ArraySupported?new Float16Array(_classPrivateFieldGet(_iQ4,this)):new Float32Array(_classPrivateFieldGet(_iQ4,this));}}function ew(t){if("string"!=typeof t)return null;if(t.endsWith("/"))return t;throw Error(`Invalid factory url: "${t}" must include trailing slash.`);}let eS=t=>"object"==typeof t&&Number.isInteger(t===null||t===void 0?void 0:t.num)&&t.num>=0&&Number.isInteger(t===null||t===void 0?void 0:t.gen)&&t.gen>=0,eC=function(t,e,i){if(!Array.isArray(i)||i.length<2)return!1;let[r,s,...n]=i;if(!t(r)&&!Number.isInteger(r)||!e(s))return!1;let a=n.length,o=!0;switch(s.name){case"XYZ":if(a<2||a>3)return!1;break;case"Fit":case"FitB":return 0===a;case"FitH":case"FitBH":case"FitV":case"FitBV":if(a>1)return!1;break;case"FitR":if(4!==a)return!1;o=!1;break;default:return!1;}for(let t of n)if("number"!=typeof t&&(!o||null!==t))return!1;return!0;}.bind(null,eS,t=>"object"==typeof t&&"string"==typeof(t===null||t===void 0?void 0:t.name));var _i13=new WeakMap();var _i14=new WeakMap();class eE{constructor(){_classPrivateFieldInitSpec(this,_i13,new Map());_classPrivateFieldInitSpec(this,_i14,Promise.resolve());}postMessage(t,e){let i={data:structuredClone(t,e?{transfer:e}:null)};_classPrivateFieldGet(_i14,this).then(()=>{for(let[t]of _classPrivateFieldGet(_i13,this))t.call(this,i);});}addEventListener(t,e,i=null){let r=null;if((i===null||i===void 0?void 0:i.signal)instanceof AbortSignal){let{signal:s}=i;if(s.aborted)return void E("LoopbackPort - cannot use an `aborted` signal.");let n=()=>this.removeEventListener(t,e);r=()=>s.removeEventListener("abort",n),s.addEventListener("abort",n);}_classPrivateFieldGet(_i13,this).set(e,r);}removeEventListener(t,e){let i=_classPrivateFieldGet(_i13,this).get(e);i!==null&&i!==void 0&&i(),_classPrivateFieldGet(_i13,this).delete(e);}terminate(){for(let[,t]of _classPrivateFieldGet(_i13,this))t===null||t===void 0||t();_classPrivateFieldGet(_i13,this).clear();}}a(1689);function e_(){}function eT(t){if(t instanceof N||t instanceof O||t instanceof R||t instanceof B||t instanceof F)return t;switch(!(t instanceof Error||"object"==typeof t&&null!==t)&&_('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),t.name){case"AbortException":return new N(t.message);case"InvalidPDFException":return new O(t.message);case"PasswordException":return new R(t.message,t.code);case"ResponseException":return new B(t.message,t.status,t.missing);case"UnknownErrorException":return new F(t.message,t.details);}return new F(t.message,t.toString());}var _i15=new WeakMap();var _ek_brand=new WeakSet();class ek{constructor(_t29,_e18,_i18){_classPrivateMethodInitSpec(this,_ek_brand);_classPrivateFieldInitSpec(this,_i15,new AbortController());this.sourceName=_t29,this.targetName=_e18,this.comObj=_i18,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),_i18.addEventListener("message",_assertClassBrand(_ek_brand,this,_i16).bind(this),{signal:_classPrivateFieldGet(_i15,this).signal});}on(t,e){let i=this.actionHandler;if(i[t])throw Error(`There is already an actionName called "${t}"`);i[t]=e;}send(t,e,i){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:e},i);}sendWithPromise(t,e,i){let r=this.callbackId++,s=Promise.withResolvers();this.callbackCapabilities[r]=s;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:r,data:e},i);}catch(t){s.reject(t);}return s.promise;}sendWithStream(t,e,i,r){let s=this.streamId++,n=this.sourceName,a=this.targetName,o=this.comObj;return new ReadableStream({start:i=>{let l=Promise.withResolvers();return this.streamControllers[s]={controller:i,startCall:l,pullCall:null,cancelCall:null,isClosed:!1},o.postMessage({sourceName:n,targetName:a,action:t,streamId:s,data:e,desiredSize:i.desiredSize},r),l.promise;},pull:t=>{let e=Promise.withResolvers();return this.streamControllers[s].pullCall=e,o.postMessage({sourceName:n,targetName:a,stream:6,streamId:s,desiredSize:t.desiredSize}),e.promise;},cancel:t=>{T(t instanceof Error,"cancel must have a valid reason");let e=Promise.withResolvers();return this.streamControllers[s].cancelCall=e,this.streamControllers[s].isClosed=!0,o.postMessage({sourceName:n,targetName:a,stream:1,streamId:s,reason:eT(t)}),e.promise;}},i);}destroy(){var _classPrivateFieldGet78;(_classPrivateFieldGet78=_classPrivateFieldGet(_i15,this))!==null&&_classPrivateFieldGet78!==void 0&&_classPrivateFieldGet78.abort(),_classPrivateFieldSet(_i15,this,null);}}function _i16({data:t}){if(t.targetName!==this.sourceName)return;if(t.stream)return void _assertClassBrand(_ek_brand,this,_i17).call(this,t);if(t.callback){let e=t.callbackId,i=this.callbackCapabilities[e];if(!i)throw Error(`Cannot resolve callback ${e}`);if(delete this.callbackCapabilities[e],1===t.callback)i.resolve(t.data);else if(2===t.callback)i.reject(eT(t.reason));else throw Error("Unexpected callback case");return;}let e=this.actionHandler[t.action];if(!e)throw Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){let i=this.sourceName,r=t.sourceName,s=this.comObj;Promise.try(e,t.data).then(function(e){s.postMessage({sourceName:i,targetName:r,callback:1,callbackId:t.callbackId,data:e});},function(e){s.postMessage({sourceName:i,targetName:r,callback:2,callbackId:t.callbackId,reason:eT(e)});});return;}t.streamId?_assertClassBrand(_ek_brand,this,_rt).call(this,t):e(t.data);}function _rt(t){let e=t.streamId,i=this.sourceName,r=t.sourceName,s=this.comObj,n=this,a=this.actionHandler[t.action],o={enqueue(t,n=1,a){if(this.isCancelled)return;let o=this.desiredSize;this.desiredSize-=n,o>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),s.postMessage({sourceName:i,targetName:r,stream:4,streamId:e,chunk:t},a);},close(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:r,stream:3,streamId:e}),delete n.streamSinks[e]);},error(t){T(t instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:r,stream:5,streamId:e,reason:eT(t)}));},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};o.sinkCapability.resolve(),o.ready=o.sinkCapability.promise,this.streamSinks[e]=o,Promise.try(a,t.data,o).then(function(){s.postMessage({sourceName:i,targetName:r,stream:8,streamId:e,success:!0});},function(t){s.postMessage({sourceName:i,targetName:r,stream:8,streamId:e,reason:eT(t)});});}function _i17(t){let e=t.streamId,i=this.sourceName,r=t.sourceName,s=this.comObj,n=this.streamControllers[e],a=this.streamSinks[e];switch(t.stream){case 8:t.success?n.startCall.resolve():n.startCall.reject(eT(t.reason));break;case 7:t.success?n.pullCall.resolve():n.pullCall.reject(eT(t.reason));break;case 6:if(!a){s.postMessage({sourceName:i,targetName:r,stream:7,streamId:e,success:!0});break;}a.desiredSize<=0&&t.desiredSize>0&&a.sinkCapability.resolve(),a.desiredSize=t.desiredSize,Promise.try(a.onPull||e_).then(function(){s.postMessage({sourceName:i,targetName:r,stream:7,streamId:e,success:!0});},function(t){s.postMessage({sourceName:i,targetName:r,stream:7,streamId:e,reason:eT(t)});});break;case 4:if(T(n,"enqueue should have stream controller"),n.isClosed)break;n.controller.enqueue(t.chunk);break;case 3:if(T(n,"close should have stream controller"),n.isClosed)break;n.isClosed=!0,n.controller.close(),_assertClassBrand(_ek_brand,this,_re).call(this,n,e);break;case 5:T(n,"error should have stream controller"),n.controller.error(eT(t.reason)),_assertClassBrand(_ek_brand,this,_re).call(this,n,e);break;case 2:t.success?n.cancelCall.resolve():n.cancelCall.reject(eT(t.reason)),_assertClassBrand(_ek_brand,this,_re).call(this,n,e);break;case 1:if(!a)break;let o=eT(t.reason);Promise.try(a.onCancel||e_,o).then(function(){s.postMessage({sourceName:i,targetName:r,stream:2,streamId:e,success:!0});},function(t){s.postMessage({sourceName:i,targetName:r,stream:2,streamId:e,reason:eT(t)});}),a.sinkCapability.reject(o),a.isCancelled=!0,delete this.streamSinks[e];break;default:throw Error("Unexpected stream case");}}async function _re(t,e){var _t$startCall,_t$pullCall,_t$cancelCall;await Promise.allSettled([(_t$startCall=t.startCall)===null||_t$startCall===void 0?void 0:_t$startCall.promise,(_t$pullCall=t.pullCall)===null||_t$pullCall===void 0?void 0:_t$pullCall.promise,(_t$cancelCall=t.cancelCall)===null||_t$cancelCall===void 0?void 0:_t$cancelCall.promise]),delete this.streamControllers[e];}var _ri=new WeakMap();class eM{constructor({cMapUrl:t=null,standardFontDataUrl:e=null,wasmUrl:i=null}){_classPrivateFieldInitSpec(this,_ri,Object.freeze({cMapUrl:"CMap",standardFontDataUrl:"font",wasmUrl:"wasm"}));this.cMapUrl=t,this.standardFontDataUrl=e,this.wasmUrl=i;}async fetch({kind:t,filename:e}){switch(t){case"cMapUrl":case"standardFontDataUrl":case"wasmUrl":break;default:_(`Not implemented: ${t}`);}let i=this[t];if(!i)throw Error(`Ensure that the \`${t}\` API parameter is provided.`);let r=`${i}${e}`;return this._fetch(r,t).catch(e=>{throw Error(`Unable to load ${_classPrivateFieldGet(_ri,this)[t]} data at: ${r}`);});}async _fetch(t,e){_("Abstract method `_fetch` called.");}}class eP extends eM{async _fetch(t,e){let i="cMapUrl"!==e||t.endsWith(".bcmap")?"bytes":"text",r=await tr(t,i);return r instanceof Uint8Array?r:U(r);}}var _rr=new WeakMap();class eD{constructor({enableHWA:t=!1}){_classPrivateFieldInitSpec(this,_rr,!1);_classPrivateFieldSet(_rr,this,t);}create(t,e){if(t<=0||e<=0)throw Error("Invalid canvas size");let i=this._createCanvas(t,e);return{canvas:i,context:i.getContext("2d",{willReadFrequently:!_classPrivateFieldGet(_rr,this)})};}reset({canvas:t},e,i){if(!t)throw Error("Canvas is not specified");if(e<=0||i<=0)throw Error("Invalid canvas size");t.width=e,t.height=i;}destroy(t){let{canvas:e}=t;if(!e)throw Error("Canvas is not specified");e.width=e.height=0,t.canvas=null,t.context=null;}_createCanvas(t,e){_("Abstract method `_createCanvas` called.");}}class eI extends eD{constructor({ownerDocument:t=globalThis.document,enableHWA:e=!1}){super({enableHWA:e}),this._document=t;}_createCanvas(t,e){let i=this._document.createElement("canvas");return i.width=t,i.height=e,i;}}class eR{addFilter(t){return"none";}addHCMFilter(t,e){return"none";}addAlphaFilter(t){return"none";}addLuminosityFilter(t){return"none";}addKnockoutFilter(t=0){return"none";}addHighlightHCMFilter(t,e,i,r,s){return"none";}addSelectionHCMFilter(t,e){return"none";}addSelectionFilter(){return"none";}createSelectionStyle(t=null){return null;}destroy(t=!1){}}var _rs=new WeakMap();var _rn=new WeakMap();var _ra=new WeakMap();var _ro=new WeakMap();var _rl=new WeakMap();var _rh=new WeakMap();var _T3=new WeakMap();var _eF_brand=new WeakSet();class eF extends eR{constructor({docId:_t30,ownerDocument:_e19=globalThis.document}){super(),_classPrivateMethodInitSpec(this,_eF_brand),_classPrivateFieldInitSpec(this,_rs,void 0),_classPrivateFieldInitSpec(this,_rn,void 0),_classPrivateFieldInitSpec(this,_ra,void 0),_classPrivateFieldInitSpec(this,_ro,void 0),_classPrivateFieldInitSpec(this,_rl,void 0),_classPrivateFieldInitSpec(this,_rh,void 0),_classPrivateFieldInitSpec(this,_T3,0),this,_classPrivateFieldSet(_ro,this,_t30),_classPrivateFieldSet(_rl,this,_e19);}addFilter(t){var _this$T7,_this$T8;if(!t)return"none";let e=_classPrivateGetter(_eF_brand,this,_get_M).get(t);if(e)return e;let[i,r,s]=_assertClassBrand(_eF_brand,this,_ru).call(this,t),n=1===t.length?i:`${i}${r}${s}`;if(e=_classPrivateGetter(_eF_brand,this,_get_M).get(n))return _classPrivateGetter(_eF_brand,this,_get_M).set(t,e),e;let a=`g_${_classPrivateFieldGet(_ro,this)}_transfer_map_${_classPrivateFieldSet(_T3,this,(_this$T7=_classPrivateFieldGet(_T3,this),_this$T8=_this$T7++,_this$T7)),_this$T8}`,o=_assertClassBrand(_eF_brand,this,_rp).call(this,a);_classPrivateGetter(_eF_brand,this,_get_M).set(t,o),_classPrivateGetter(_eF_brand,this,_get_M).set(n,o);let l=_assertClassBrand(_eF_brand,this,_rg).call(this,a);return _assertClassBrand(_eF_brand,this,_rm).call(this,i,r,s,l),o;}addHCMFilter(t,e){var _s4,_s$filter;let i=`${t}-${e}`,r="base",s=_classPrivateGetter(_eF_brand,this,_get_rd).get(r);if(((_s4=s)===null||_s4===void 0?void 0:_s4.key)===i||(s?((_s$filter=s.filter)!==null&&_s$filter!==void 0&&_s$filter.remove(),s.key=i,s.url="none",s.filter=null):(s={key:i,url:"none",filter:null},_classPrivateGetter(_eF_brand,this,_get_rd).set(r,s)),!t||!e))return s.url;let n=_assertClassBrand(_eF_brand,this,_rf).call(this,t);t=G.makeHexColor(...n);let a=_assertClassBrand(_eF_brand,this,_rf).call(this,e);if(e=G.makeHexColor(...a),_assertClassBrand(_eF_brand,this,_rb).call(this),"#000000"===t&&"#ffffff"===e||t===e)return s.url;let o=Array.from({length:256},(t,e)=>t_(e/255)).join(","),l=`g_${_classPrivateFieldGet(_ro,this)}_hcm_filter`,h=s.filter=_assertClassBrand(_eF_brand,this,_rg).call(this,l);_assertClassBrand(_eF_brand,this,_rm).call(this,o,o,o,h),_assertClassBrand(_eF_brand,this,_rv).call(this,h);let d=(t,e)=>{let i=n[t]/255,r=a[t]/255,s=Array(e+1);for(let t=0;t<=e;t++)s[t]=i+t/e*(r-i);return s.join(",");};return _assertClassBrand(_eF_brand,this,_rm).call(this,d(0,5),d(1,5),d(2,5),h),s.url=_assertClassBrand(_eF_brand,this,_rp).call(this,l),s.url;}addSelectionHCMFilter(t,e){return this.addHighlightHCMFilter("selection",t,e,"HighlightText","Highlight");}addSelectionFilter(){return this.addHighlightHCMFilter("selection_default","black","white","HighlightText","Highlight");}createSelectionStyle(t=null){let e=t?this.addSelectionHCMFilter(t.foreground,t.background):this.addSelectionFilter();return"none"!==e&&z.platform.isFirefox?{"backdrop-filter":e,"background-color":"transparent"}:null;}addAlphaFilter(t){var _this$T9,_this$T0;let e=_classPrivateGetter(_eF_brand,this,_get_M).get(t);if(e)return e;let[i]=_assertClassBrand(_eF_brand,this,_ru).call(this,[t]),r=`alpha_${i}`;if(e=_classPrivateGetter(_eF_brand,this,_get_M).get(r))return _classPrivateGetter(_eF_brand,this,_get_M).set(t,e),e;let s=`g_${_classPrivateFieldGet(_ro,this)}_alpha_map_${_classPrivateFieldSet(_T3,this,(_this$T9=_classPrivateFieldGet(_T3,this),_this$T0=_this$T9++,_this$T9)),_this$T0}`,n=_assertClassBrand(_eF_brand,this,_rp).call(this,s);_classPrivateGetter(_eF_brand,this,_get_M).set(t,n),_classPrivateGetter(_eF_brand,this,_get_M).set(r,n);let a=_assertClassBrand(_eF_brand,this,_rg).call(this,s);return _assertClassBrand(_eF_brand,this,_ry).call(this,i,a),n;}addLuminosityFilter(t){var _this$T1,_this$T10;let e,i,r=_classPrivateGetter(_eF_brand,this,_get_M).get(t||"luminosity");if(r)return r;if(t?([e]=_assertClassBrand(_eF_brand,this,_ru).call(this,[t]),i=`luminosity_${e}`):i="luminosity",r=_classPrivateGetter(_eF_brand,this,_get_M).get(i))return _classPrivateGetter(_eF_brand,this,_get_M).set(t,r),r;let s=`g_${_classPrivateFieldGet(_ro,this)}_luminosity_map_${_classPrivateFieldSet(_T3,this,(_this$T1=_classPrivateFieldGet(_T3,this),_this$T10=_this$T1++,_this$T1)),_this$T10}`,n=_assertClassBrand(_eF_brand,this,_rp).call(this,s);_classPrivateGetter(_eF_brand,this,_get_M).set(t,n),_classPrivateGetter(_eF_brand,this,_get_M).set(i,n);let a=_assertClassBrand(_eF_brand,this,_rg).call(this,s);return _assertClassBrand(_eF_brand,this,_rA).call(this,a),t&&_assertClassBrand(_eF_brand,this,_ry).call(this,e,a),n;}addKnockoutFilter(t=0){var _this$T11,_this$T12;let e=t>0?Math.min(1/t,1e6):1e6,i=`knockout_${e}`,r=_classPrivateGetter(_eF_brand,this,_get_M).get(i);if(r)return r;let s=`g_${_classPrivateFieldGet(_ro,this)}_knockout_filter_${_classPrivateFieldSet(_T3,this,(_this$T11=_classPrivateFieldGet(_T3,this),_this$T12=_this$T11++,_this$T11)),_this$T12}`,n=_assertClassBrand(_eF_brand,this,_rp).call(this,s);_classPrivateGetter(_eF_brand,this,_get_M).set(i,n);let a=_assertClassBrand(_eF_brand,this,_rg).call(this,s),o=_classPrivateFieldGet(_rl,this).createElementNS(c,"feComponentTransfer");a.append(o);let l=_classPrivateFieldGet(_rl,this).createElementNS(c,"feFuncA");return l.setAttribute("type","linear"),l.setAttribute("slope",`${e}`),l.setAttribute("intercept","0"),o.append(l),n;}addHighlightHCMFilter(t,e,i,r,s){var _a4,_a$filter;let n=`${e}-${i}-${r}-${s}`,a=_classPrivateGetter(_eF_brand,this,_get_rd).get(t);if(((_a4=a)===null||_a4===void 0?void 0:_a4.key)===n||(a?((_a$filter=a.filter)!==null&&_a$filter!==void 0&&_a$filter.remove(),a.key=n,a.url="none",a.filter=null):(a={key:n,url:"none",filter:null},_classPrivateGetter(_eF_brand,this,_get_rd).set(t,a)),!e||!i))return a.url;let[o,l]=[e,i].map(_assertClassBrand(_eF_brand,this,_rf).bind(this)),h=Math.round(.2126*o[0]+.7152*o[1]+.0722*o[2]),d=Math.round(.2126*l[0]+.7152*l[1]+.0722*l[2]),[c,u]=[r,s].map(_assertClassBrand(_eF_brand,this,_rx).bind(this));d<h&&([h,d,c,u]=[d,h,u,c]),_assertClassBrand(_eF_brand,this,_rb).call(this);let p=(t,e,i)=>{let r=Array(256),s=(d-h)/i,n=t/255,a=(e-t)/(255*i),o=0;for(let t=0;t<=i;t++){let e=Math.round(h+t*s),i=n+t*a;for(let t=o;t<=e;t++)r[t]=i;o=e+1;}for(let t=o;t<256;t++)r[t]=r[o-1];return r.join(",");},g=`g_${_classPrivateFieldGet(_ro,this)}_hcm_${t}_filter`,m=a.filter=_assertClassBrand(_eF_brand,this,_rg).call(this,g);return _assertClassBrand(_eF_brand,this,_rv).call(this,m),_assertClassBrand(_eF_brand,this,_rm).call(this,p(c[0],u[0],5),p(c[1],u[1],5),p(c[2],u[2],5),m),a.url=_assertClassBrand(_eF_brand,this,_rp).call(this,g),a.url;}destroy(t=!1){var _classPrivateFieldGet79,_classPrivateFieldGet80,_classPrivateFieldGet81,_classPrivateFieldGet82;t&&((_classPrivateFieldGet79=_classPrivateFieldGet(_rh,this))===null||_classPrivateFieldGet79===void 0?void 0:_classPrivateFieldGet79.size)||((_classPrivateFieldGet80=_classPrivateFieldGet(_ra,this))!==null&&_classPrivateFieldGet80!==void 0&&_classPrivateFieldGet80.parentNode.parentNode.remove(),_classPrivateFieldSet(_ra,this,null),(_classPrivateFieldGet81=_classPrivateFieldGet(_rn,this))!==null&&_classPrivateFieldGet81!==void 0&&_classPrivateFieldGet81.clear(),_classPrivateFieldSet(_rn,this,null),(_classPrivateFieldGet82=_classPrivateFieldGet(_rh,this))!==null&&_classPrivateFieldGet82!==void 0&&_classPrivateFieldGet82.clear(),_classPrivateFieldSet(_rh,this,null),_classPrivateFieldSet(_T3,this,0));}}function _get_M(_this4){return _classPrivateFieldGet(_rn,_this4)||_classPrivateFieldSet(_rn,_this4,new Map());}function _get_rd(_this5){return _classPrivateFieldGet(_rh,_this5)||_classPrivateFieldSet(_rh,_this5,new Map());}function _get_rc(_this6){if(!_classPrivateFieldGet(_ra,_this6)){let t=_classPrivateFieldGet(_rl,_this6).createElement("div"),{style:e}=t;e.colorScheme="only light",e.visibility="hidden",e.contain="strict",e.width=e.height=0,e.position="absolute",e.top=e.left=0,e.zIndex=-1;let i=_classPrivateFieldGet(_rl,_this6).createElementNS(c,"svg");i.setAttribute("width",0),i.setAttribute("height",0),_classPrivateFieldSet(_ra,_this6,_classPrivateFieldGet(_rl,_this6).createElementNS(c,"defs")),t.append(i),i.append(_classPrivateFieldGet(_ra,_this6)),_classPrivateFieldGet(_rl,_this6).body.append(t);}return _classPrivateFieldGet(_ra,_this6);}function _ru(t){if(1===t.length){let e=t[0],i=Array(256);for(let t=0;t<256;t++)i[t]=e[t]/255;let r=i.join(",");return[r,r,r];}let[e,i,r]=t,s=Array(256),n=Array(256),a=Array(256);for(let t=0;t<256;t++)s[t]=e[t]/255,n[t]=i[t]/255,a[t]=r[t]/255;return[s.join(","),n.join(","),a.join(",")];}function _rp(t){if(void 0===_classPrivateFieldGet(_rs,this)){_classPrivateFieldSet(_rs,this,"");let t=_classPrivateFieldGet(_rl,this).URL;t!==_classPrivateFieldGet(_rl,this).baseURI&&(tn(t)?E('#createUrl: ignore "data:"-URL for performance reasons.'):_classPrivateFieldSet(_rs,this,M(t,"")));}return`url(${_classPrivateFieldGet(_rs,this)}#${t})`;}function _rA(t){let e=_classPrivateFieldGet(_rl,this).createElementNS(c,"feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),t.append(e);}function _rv(t){let e=_classPrivateFieldGet(_rl,this).createElementNS(c,"feColorMatrix");e.setAttribute("type","matrix"),e.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"),t.append(e);}function _rg(t){let e=_classPrivateFieldGet(_rl,this).createElementNS(c,"filter");return e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("id",t),_classPrivateGetter(_eF_brand,this,_get_rc).append(e),e;}function _rw(t,e,i){let r=_classPrivateFieldGet(_rl,this).createElementNS(c,e);r.setAttribute("type","discrete"),r.setAttribute("tableValues",i),t.append(r);}function _rm(t,e,i,r){let s=_classPrivateFieldGet(_rl,this).createElementNS(c,"feComponentTransfer");r.append(s),_assertClassBrand(_eF_brand,this,_rw).call(this,s,"feFuncR",t),_assertClassBrand(_eF_brand,this,_rw).call(this,s,"feFuncG",e),_assertClassBrand(_eF_brand,this,_rw).call(this,s,"feFuncB",i);}function _ry(t,e){let i=_classPrivateFieldGet(_rl,this).createElementNS(c,"feComponentTransfer");e.append(i),_assertClassBrand(_eF_brand,this,_rw).call(this,i,"feFuncA",t);}function _rf(t){return _classPrivateGetter(_eF_brand,this,_get_rc).style.color="CanvasText",_classPrivateGetter(_eF_brand,this,_get_rc).style.backgroundColor=t,tm(getComputedStyle(_classPrivateGetter(_eF_brand,this,_get_rc)).getPropertyValue("background-color"));}function _rS(t){return _classPrivateGetter(_eF_brand,this,_get_rc).style.color="CanvasText",_classPrivateGetter(_eF_brand,this,_get_rc).style.backgroundColor=t,tg(getComputedStyle(_classPrivateGetter(_eF_brand,this,_get_rc)).getPropertyValue("background-color"));}function _rb(){_classPrivateGetter(_eF_brand,this,_get_rc).style.color="",_classPrivateGetter(_eF_brand,this,_get_rc).style.backgroundColor="";}function _rx(t){let[e,i,r,s]=_assertClassBrand(_eF_brand,this,_rS).call(this,t);if(1===s)return[e,i,r];let[n,a,o]=_assertClassBrand(_eF_brand,this,_rf).call(this,"Canvas");return[eO(e,n,s),eO(i,a,s),eO(r,o,s)];}function eO(t,e,i){return Math.round(i*t+(1-i)*e);}if(o){var _t31,_t32,_globalThis$navigator;let t;try{let i=e.default.getBuiltinModule("module").createRequire(r.url);try{t=i("@napi-rs/canvas");}catch(t){E(`Cannot load "@napi-rs/canvas" package: "${t}".`);}}catch(t){E(`Cannot access the \`require\` function: "${t}".`);}globalThis.DOMMatrix||((_t31=t)!==null&&_t31!==void 0&&_t31.DOMMatrix?globalThis.DOMMatrix=t.DOMMatrix:E("Cannot polyfill `DOMMatrix`, rendering may be broken.")),globalThis.Path2D||((_t32=t)!==null&&_t32!==void 0&&_t32.Path2D?globalThis.Path2D=t.Path2D:E("Cannot polyfill `Path2D`, rendering may be broken.")),((_globalThis$navigator=globalThis.navigator)===null||_globalThis$navigator===void 0?void 0:_globalThis$navigator.language)||(globalThis.navigator={language:"en-US",platform:"",userAgent:""});}async function eB(t){let i=e.default.getBuiltinModule("fs/promises");return new Uint8Array(await i.readFile(t));}class eL extends eR{}class eN extends eD{_createCanvas(t,i){return e.default.getBuiltinModule("module").createRequire(r.url)("@napi-rs/canvas").createCanvas(t,i);}}class eU extends eM{async _fetch(t,e){return eB(t);}}function ez({src:t,srcPos:e=0,dest:i,width:r,height:s,nonBlackColor:n=0xffffffff,inverseDecode:a=!1}){let o=z.isLittleEndian?0xff000000:255,[l,h]=a?[n,o]:[o,n],d=r>>3,c=7&r,u=l^h,p=t.length;i=new Uint32Array(i.buffer);let g=0;for(let r=0;r<s;++r){for(let r=e+d;e<r;++e,g+=8){let r=t[e];i[g]=l^-(r>>7&1)&u,i[g+1]=l^-(r>>6&1)&u,i[g+2]=l^-(r>>5&1)&u,i[g+3]=l^-(r>>4&1)&u,i[g+4]=l^-(r>>3&1)&u,i[g+5]=l^-(r>>2&1)&u,i[g+6]=l^-(r>>1&1)&u,i[g+7]=l^-(1&r)&u;}if(0===c)continue;let r=e<p?t[e++]:255;for(let t=0;t<c;++t,++g)i[g]=l^-(r>>7-t&1)&u;}return{srcPos:e,destPos:g};}let eG=`
3
3
  struct Uniforms {
4
4
  offsetX : f32,