@techysy/10router 1.0.3 → 1.0.5

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 (993) hide show
  1. package/README.md +9 -0
  2. package/README.zh-CN.md +2 -0
  3. package/app/.next-cli-build/BUILD_ID +1 -1
  4. package/app/.next-cli-build/app-path-routes-manifest.json +13 -10
  5. package/app/.next-cli-build/build-manifest.json +2 -2
  6. package/app/.next-cli-build/prerender-manifest.json +17 -17
  7. package/app/.next-cli-build/routes-manifest.json +18 -0
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +4 -4
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  77. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  78. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  79. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  80. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  81. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  83. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  84. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  85. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  86. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  87. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  88. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  89. package/app/.next-cli-build/server/app/_not-found.rsc +5 -5
  90. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +5 -5
  91. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -5
  92. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  93. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  94. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  95. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  96. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  97. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  98. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +2 -2
  106. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +2 -2
  108. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +2 -2
  110. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +1 -1
  116. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  118. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  122. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  124. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  128. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  130. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  132. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  136. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
  138. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
  144. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  146. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +1 -1
  150. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  152. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  154. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  156. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  160. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  164. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  166. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  176. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -0
  208. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -0
  209. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route_client-reference-manifest.js +1 -0
  210. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js +1 -0
  211. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js.nft.json +1 -0
  212. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route_client-reference-manifest.js +1 -0
  213. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/providers/[id]/json-models/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/providers/[id]/json-models/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  250. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  252. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  254. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  256. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  258. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  260. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  262. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  264. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  266. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  268. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  270. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  272. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  274. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  276. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  278. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  280. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  281. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  282. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  284. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  286. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  288. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  290. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  292. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  294. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js +1 -0
  296. package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js.nft.json +1 -0
  297. package/app/.next-cli-build/server/app/api/settings/database/import-usage/route_client-reference-manifest.js +1 -0
  298. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  301. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  302. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  303. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  305. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  307. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  308. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  309. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  310. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  311. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  313. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  314. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  315. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  316. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  317. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  319. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  320. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  321. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  322. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  323. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  324. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  325. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  326. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  327. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  328. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  329. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  330. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  331. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  332. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  333. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  334. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  335. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  336. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  337. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  338. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  339. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  340. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  341. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  342. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  343. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  344. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  345. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  346. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  347. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  348. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  349. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  350. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  351. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  352. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  353. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  354. package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  355. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  356. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  357. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  358. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  359. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  360. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  361. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  362. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  363. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  364. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  365. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  366. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  367. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  368. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
  369. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  370. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  371. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  372. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  373. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  374. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  375. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  376. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  377. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  378. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  379. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  380. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  381. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  382. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  383. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  384. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  385. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  386. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  387. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  388. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  389. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  390. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  391. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  392. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  393. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  394. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  395. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  396. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  397. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  398. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  399. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  400. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  401. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  402. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  403. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  404. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  405. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  406. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  407. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  408. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  409. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  410. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  411. package/app/.next-cli-build/server/app/callback.html +1 -1
  412. package/app/.next-cli-build/server/app/callback.rsc +5 -5
  413. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
  414. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  415. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +5 -5
  416. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  417. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +7 -7
  418. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +7 -7
  419. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +7 -7
  420. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  421. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  422. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
  423. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +7 -7
  424. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
  425. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  426. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  427. package/app/.next-cli-build/server/app/dashboard/combos.rsc +7 -7
  428. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +7 -7
  429. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +7 -7
  430. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  431. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  432. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
  433. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +7 -7
  434. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
  435. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  436. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  437. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +7 -7
  438. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +7 -7
  439. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +7 -7
  440. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  441. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  442. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +7 -7
  443. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +7 -7
  444. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +7 -7
  445. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  446. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  447. package/app/.next-cli-build/server/app/dashboard/profile.rsc +7 -7
  448. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +7 -7
  449. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +7 -7
  450. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  451. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  452. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +7 -7
  453. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +7 -7
  454. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +7 -7
  455. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  456. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  457. package/app/.next-cli-build/server/app/dashboard/providers.rsc +7 -7
  458. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +7 -7
  459. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +7 -7
  460. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  461. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  462. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +7 -7
  463. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +7 -7
  464. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +7 -7
  465. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  466. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  467. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +7 -7
  468. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +7 -7
  469. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +7 -7
  470. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  471. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  472. package/app/.next-cli-build/server/app/dashboard/quota.rsc +8 -8
  473. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +8 -8
  474. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +8 -8
  475. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  476. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  477. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  478. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  479. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  480. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
  481. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  482. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  483. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +5 -5
  484. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  485. package/app/.next-cli-build/server/app/dashboard/skills.rsc +7 -7
  486. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +7 -7
  487. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +7 -7
  488. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  489. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  490. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +7 -7
  491. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +7 -7
  492. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -7
  493. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  494. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  495. package/app/.next-cli-build/server/app/dashboard/translator.rsc +7 -7
  496. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +7 -7
  497. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +7 -7
  498. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  499. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  500. package/app/.next-cli-build/server/app/dashboard/usage.rsc +7 -7
  501. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +7 -7
  502. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +7 -7
  503. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  504. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  505. package/app/.next-cli-build/server/app/dashboard.rsc +7 -7
  506. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +7 -7
  507. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
  508. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  509. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  510. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  511. package/app/.next-cli-build/server/app/index.html +1 -1
  512. package/app/.next-cli-build/server/app/index.rsc +5 -5
  513. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +5 -5
  514. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +5 -5
  515. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  516. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  517. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  518. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  519. package/app/.next-cli-build/server/app/landing.html +1 -1
  520. package/app/.next-cli-build/server/app/landing.rsc +6 -6
  521. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
  522. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  523. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +6 -6
  524. package/app/.next-cli-build/server/app/login/page.js +1 -1
  525. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  526. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  527. package/app/.next-cli-build/server/app/login.html +1 -1
  528. package/app/.next-cli-build/server/app/login.rsc +6 -6
  529. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +6 -6
  530. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  531. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +6 -6
  532. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  533. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  534. package/app/.next-cli-build/server/app/page.js +1 -1
  535. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  536. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  537. package/app/.next-cli-build/server/app-paths-manifest.json +13 -10
  538. package/app/.next-cli-build/server/chunks/1129.js +4 -0
  539. package/app/.next-cli-build/server/chunks/{6832.js → 1332.js} +1 -1
  540. package/app/.next-cli-build/server/chunks/1377.js +1 -1
  541. package/app/.next-cli-build/server/chunks/1564.js +1 -0
  542. package/app/.next-cli-build/server/chunks/2283.js +1 -1
  543. package/app/.next-cli-build/server/chunks/318.js +3 -3
  544. package/app/.next-cli-build/server/chunks/3212.js +1 -1
  545. package/app/.next-cli-build/server/chunks/3943.js +1 -1
  546. package/app/.next-cli-build/server/chunks/4037.js +1 -1
  547. package/app/.next-cli-build/server/chunks/412.js +5 -5
  548. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  549. package/app/.next-cli-build/server/chunks/4125.js +1 -1
  550. package/app/.next-cli-build/server/chunks/4452.js +1 -0
  551. package/app/.next-cli-build/server/chunks/4665.js +2 -2
  552. package/app/.next-cli-build/server/chunks/5081.js +3 -3
  553. package/app/.next-cli-build/server/chunks/5448.js +13 -0
  554. package/app/.next-cli-build/server/chunks/5612.js +1 -1
  555. package/app/.next-cli-build/server/chunks/5615.js +1 -1
  556. package/app/.next-cli-build/server/chunks/5781.js +6 -0
  557. package/app/.next-cli-build/server/chunks/6070.js +1 -1
  558. package/app/.next-cli-build/server/chunks/615.js +1 -1
  559. package/app/.next-cli-build/server/chunks/6306.js +1 -1
  560. package/app/.next-cli-build/server/chunks/6763.js +1 -1
  561. package/app/.next-cli-build/server/chunks/7211.js +1 -1
  562. package/app/.next-cli-build/server/chunks/7247.js +1 -0
  563. package/app/.next-cli-build/server/chunks/7598.js +1 -0
  564. package/app/.next-cli-build/server/chunks/7914.js +1 -0
  565. package/app/.next-cli-build/server/chunks/8038.js +1 -1
  566. package/app/.next-cli-build/server/chunks/8185.js +1 -1
  567. package/app/.next-cli-build/server/chunks/827.js +1 -1
  568. package/app/.next-cli-build/server/chunks/8444.js +3 -0
  569. package/app/.next-cli-build/server/chunks/869.js +1 -1
  570. package/app/.next-cli-build/server/chunks/8895.js +3 -3
  571. package/app/.next-cli-build/server/chunks/8920.js +1 -1
  572. package/app/.next-cli-build/server/chunks/8936.js +1 -0
  573. package/app/.next-cli-build/server/chunks/915.js +2 -2
  574. package/app/.next-cli-build/server/chunks/{8847.js → 9381.js} +1 -1
  575. package/app/.next-cli-build/server/chunks/9463.js +1 -0
  576. package/app/.next-cli-build/server/chunks/9703.js +17 -0
  577. package/app/.next-cli-build/server/instrumentation.js +1 -1
  578. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  579. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  580. package/app/.next-cli-build/server/middleware.js +5 -5
  581. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  582. package/app/.next-cli-build/server/pages/404.html +1 -1
  583. package/app/.next-cli-build/server/pages/500.html +1 -1
  584. package/app/.next-cli-build/static/chunks/1321-f66031be5e32c2cb.js +1 -0
  585. package/app/.next-cli-build/static/chunks/{5116-bd22c80869d4be20.js → 5116-4618105f24431c4a.js} +1 -1
  586. package/app/.next-cli-build/static/chunks/5497-857449e2441f5955.js +7 -0
  587. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-1049c48c632926aa.js +1 -0
  588. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-5fa69f9a11a9abac.js +1 -0
  589. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-93a480448464bc2c.js +14 -0
  590. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-595256b6306fa952.js +1 -0
  591. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/{page-06eae6b008e60652.js → page-06dd8e4a0a6a89ac.js} +1 -1
  592. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-e16aaf24dc525a49.js +1 -0
  593. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-a52d19cb5aacd04f.js +1 -0
  594. package/app/.next-cli-build/static/chunks/app/_global-error/page-e2820b80e5f98f0b.js +1 -0
  595. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-e2820b80e5f98f0b.js +1 -0
  596. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-e2820b80e5f98f0b.js +1 -0
  597. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-e2820b80e5f98f0b.js +1 -0
  598. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-e2820b80e5f98f0b.js +1 -0
  599. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-e2820b80e5f98f0b.js +1 -0
  600. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-e2820b80e5f98f0b.js +1 -0
  601. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-e2820b80e5f98f0b.js +1 -0
  602. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-e2820b80e5f98f0b.js +1 -0
  603. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-e2820b80e5f98f0b.js +1 -0
  604. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-e2820b80e5f98f0b.js +1 -0
  605. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-e2820b80e5f98f0b.js +1 -0
  606. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-e2820b80e5f98f0b.js +1 -0
  607. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-e2820b80e5f98f0b.js +1 -0
  608. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-e2820b80e5f98f0b.js +1 -0
  609. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-e2820b80e5f98f0b.js +1 -0
  610. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-e2820b80e5f98f0b.js +1 -0
  611. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-e2820b80e5f98f0b.js +1 -0
  612. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-e2820b80e5f98f0b.js +1 -0
  613. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-e2820b80e5f98f0b.js +1 -0
  614. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-e2820b80e5f98f0b.js +1 -0
  615. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-e2820b80e5f98f0b.js +1 -0
  616. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-e2820b80e5f98f0b.js +1 -0
  617. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-e2820b80e5f98f0b.js +1 -0
  618. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-e2820b80e5f98f0b.js +1 -0
  619. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-e2820b80e5f98f0b.js +1 -0
  620. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-e2820b80e5f98f0b.js +1 -0
  621. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-e2820b80e5f98f0b.js +1 -0
  622. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-e2820b80e5f98f0b.js +1 -0
  623. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-e2820b80e5f98f0b.js +1 -0
  624. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-e2820b80e5f98f0b.js +1 -0
  625. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-e2820b80e5f98f0b.js +1 -0
  626. package/app/.next-cli-build/static/chunks/app/api/combos/route-e2820b80e5f98f0b.js +1 -0
  627. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-e2820b80e5f98f0b.js +1 -0
  628. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-e2820b80e5f98f0b.js +1 -0
  629. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-e2820b80e5f98f0b.js +1 -0
  630. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-e2820b80e5f98f0b.js +1 -0
  631. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-e2820b80e5f98f0b.js +1 -0
  632. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-e2820b80e5f98f0b.js +1 -0
  633. package/app/.next-cli-build/static/chunks/app/api/health/route-e2820b80e5f98f0b.js +1 -0
  634. package/app/.next-cli-build/static/chunks/app/api/init/route-e2820b80e5f98f0b.js +1 -0
  635. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-e2820b80e5f98f0b.js +1 -0
  636. package/app/.next-cli-build/static/chunks/app/api/keys/route-e2820b80e5f98f0b.js +1 -0
  637. package/app/.next-cli-build/static/chunks/app/api/locale/route-e2820b80e5f98f0b.js +1 -0
  638. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-e2820b80e5f98f0b.js +1 -0
  639. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-e2820b80e5f98f0b.js +1 -0
  640. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-e2820b80e5f98f0b.js +1 -0
  641. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-e2820b80e5f98f0b.js +1 -0
  642. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-e2820b80e5f98f0b.js +1 -0
  643. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-e2820b80e5f98f0b.js +1 -0
  644. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-e2820b80e5f98f0b.js +1 -0
  645. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-e2820b80e5f98f0b.js +1 -0
  646. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-e2820b80e5f98f0b.js +1 -0
  647. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-e2820b80e5f98f0b.js +1 -0
  648. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-e2820b80e5f98f0b.js +1 -0
  649. package/app/.next-cli-build/static/chunks/app/api/models/route-e2820b80e5f98f0b.js +1 -0
  650. package/app/.next-cli-build/static/chunks/app/api/models/test/route-e2820b80e5f98f0b.js +1 -0
  651. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-e2820b80e5f98f0b.js +1 -0
  652. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-e2820b80e5f98f0b.js +1 -0
  653. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/export/route-e2820b80e5f98f0b.js +1 -0
  654. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-e2820b80e5f98f0b.js +1 -0
  655. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-e2820b80e5f98f0b.js +1 -0
  656. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-e2820b80e5f98f0b.js +1 -0
  657. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-e2820b80e5f98f0b.js +1 -0
  658. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-e2820b80e5f98f0b.js +1 -0
  659. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-e2820b80e5f98f0b.js +1 -0
  660. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-e2820b80e5f98f0b.js +1 -0
  661. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-e2820b80e5f98f0b.js +1 -0
  662. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-e2820b80e5f98f0b.js +1 -0
  663. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-e2820b80e5f98f0b.js +1 -0
  664. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-e2820b80e5f98f0b.js +1 -0
  665. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-e2820b80e5f98f0b.js +1 -0
  666. package/app/.next-cli-build/static/chunks/app/api/pricing/route-e2820b80e5f98f0b.js +1 -0
  667. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-e2820b80e5f98f0b.js +1 -0
  668. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-e2820b80e5f98f0b.js +1 -0
  669. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-e2820b80e5f98f0b.js +1 -0
  670. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/json-models/route-e2820b80e5f98f0b.js +1 -0
  671. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-e2820b80e5f98f0b.js +1 -0
  672. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-e2820b80e5f98f0b.js +1 -0
  673. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-e2820b80e5f98f0b.js +1 -0
  674. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-e2820b80e5f98f0b.js +1 -0
  675. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-e2820b80e5f98f0b.js +1 -0
  676. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-e2820b80e5f98f0b.js +1 -0
  677. package/app/.next-cli-build/static/chunks/app/api/providers/route-e2820b80e5f98f0b.js +1 -0
  678. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-e2820b80e5f98f0b.js +1 -0
  679. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-e2820b80e5f98f0b.js +1 -0
  680. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-e2820b80e5f98f0b.js +1 -0
  681. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-e2820b80e5f98f0b.js +1 -0
  682. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-e2820b80e5f98f0b.js +1 -0
  683. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-e2820b80e5f98f0b.js +1 -0
  684. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-e2820b80e5f98f0b.js +1 -0
  685. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-e2820b80e5f98f0b.js +1 -0
  686. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-e2820b80e5f98f0b.js +1 -0
  687. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-e2820b80e5f98f0b.js +1 -0
  688. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-e2820b80e5f98f0b.js +1 -0
  689. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-e2820b80e5f98f0b.js +1 -0
  690. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-e2820b80e5f98f0b.js +1 -0
  691. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-e2820b80e5f98f0b.js +1 -0
  692. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-e2820b80e5f98f0b.js +1 -0
  693. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-e2820b80e5f98f0b.js +1 -0
  694. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-e2820b80e5f98f0b.js +1 -0
  695. package/app/.next-cli-build/static/chunks/app/api/settings/database/import-usage/route-e2820b80e5f98f0b.js +1 -0
  696. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-e2820b80e5f98f0b.js +1 -0
  697. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-e2820b80e5f98f0b.js +1 -0
  698. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-e2820b80e5f98f0b.js +1 -0
  699. package/app/.next-cli-build/static/chunks/app/api/settings/route-e2820b80e5f98f0b.js +1 -0
  700. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-e2820b80e5f98f0b.js +1 -0
  701. package/app/.next-cli-build/static/chunks/app/api/tags/route-e2820b80e5f98f0b.js +1 -0
  702. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-e2820b80e5f98f0b.js +1 -0
  703. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-e2820b80e5f98f0b.js +1 -0
  704. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-e2820b80e5f98f0b.js +1 -0
  705. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-e2820b80e5f98f0b.js +1 -0
  706. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-e2820b80e5f98f0b.js +1 -0
  707. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-e2820b80e5f98f0b.js +1 -0
  708. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-e2820b80e5f98f0b.js +1 -0
  709. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-e2820b80e5f98f0b.js +1 -0
  710. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-e2820b80e5f98f0b.js +1 -0
  711. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-e2820b80e5f98f0b.js +1 -0
  712. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-e2820b80e5f98f0b.js +1 -0
  713. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-e2820b80e5f98f0b.js +1 -0
  714. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-e2820b80e5f98f0b.js +1 -0
  715. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-e2820b80e5f98f0b.js +1 -0
  716. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-e2820b80e5f98f0b.js +1 -0
  717. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-e2820b80e5f98f0b.js +1 -0
  718. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-e2820b80e5f98f0b.js +1 -0
  719. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-e2820b80e5f98f0b.js +1 -0
  720. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-e2820b80e5f98f0b.js +1 -0
  721. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-e2820b80e5f98f0b.js +1 -0
  722. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-e2820b80e5f98f0b.js +1 -0
  723. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-e2820b80e5f98f0b.js +1 -0
  724. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-e2820b80e5f98f0b.js +1 -0
  725. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-e2820b80e5f98f0b.js +1 -0
  726. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-e2820b80e5f98f0b.js +1 -0
  727. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-e2820b80e5f98f0b.js +1 -0
  728. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-e2820b80e5f98f0b.js +1 -0
  729. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-e2820b80e5f98f0b.js +1 -0
  730. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-e2820b80e5f98f0b.js +1 -0
  731. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-e2820b80e5f98f0b.js +1 -0
  732. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-e2820b80e5f98f0b.js +1 -0
  733. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-e2820b80e5f98f0b.js +1 -0
  734. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-e2820b80e5f98f0b.js +1 -0
  735. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-e2820b80e5f98f0b.js +1 -0
  736. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-e2820b80e5f98f0b.js +1 -0
  737. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-e2820b80e5f98f0b.js +1 -0
  738. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-e2820b80e5f98f0b.js +1 -0
  739. package/app/.next-cli-build/static/chunks/app/api/v1/route-e2820b80e5f98f0b.js +1 -0
  740. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-e2820b80e5f98f0b.js +1 -0
  741. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-e2820b80e5f98f0b.js +1 -0
  742. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-e2820b80e5f98f0b.js +1 -0
  743. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-e2820b80e5f98f0b.js +1 -0
  744. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-e2820b80e5f98f0b.js +1 -0
  745. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-e2820b80e5f98f0b.js +1 -0
  746. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-e2820b80e5f98f0b.js +1 -0
  747. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-e2820b80e5f98f0b.js +1 -0
  748. package/app/.next-cli-build/static/chunks/app/api/version/route-e2820b80e5f98f0b.js +1 -0
  749. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-e2820b80e5f98f0b.js +1 -0
  750. package/app/.next-cli-build/static/chunks/app/api/version/update/route-e2820b80e5f98f0b.js +1 -0
  751. package/app/.next-cli-build/static/chunks/app/landing/page-abe5fbd51346146f.js +1 -0
  752. package/app/.next-cli-build/static/chunks/app/layout-034acae46f56c420.js +1 -0
  753. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-e2820b80e5f98f0b.js +1 -0
  754. package/app/.next-cli-build/static/chunks/app/page-e2820b80e5f98f0b.js +1 -0
  755. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-e2820b80e5f98f0b.js +1 -0
  756. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-e2820b80e5f98f0b.js +1 -0
  757. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-e2820b80e5f98f0b.js +1 -0
  758. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-e2820b80e5f98f0b.js +1 -0
  759. package/app/.next-cli-build/static/css/87048d3b7e880a4f.css +1 -0
  760. package/app/.next-cli-build/static/twXIb88JirT5kgPRe8HTu/_buildManifest.js +1 -0
  761. package/app/custom-server.js +28 -0
  762. package/app/package.json +66 -66
  763. package/app/public/i18n/changelog/en.md +101 -0
  764. package/app/public/i18n/changelog/zh-CN.md +100 -0
  765. package/app/public/i18n/changelog/zh-TW.md +101 -0
  766. package/app/public/i18n/literals/zh-CN.json +55 -1
  767. package/app/public/i18n/literals/zh-TW.json +103 -2
  768. package/app/public/providers/agnes-ai-cn.png +0 -0
  769. package/app/public/providers/agnes-ai.png +0 -0
  770. package/app/public/providers/apinex.png +0 -0
  771. package/app/public/providers/gorouter.svg +1 -0
  772. package/app/public/providers/tabiauto.svg +1 -0
  773. package/app/src/mitm/server.js +1 -1
  774. package/cli.js +857 -873
  775. package/package.json +52 -52
  776. package/src/cli/i18n/index.js +83 -0
  777. package/src/cli/i18n/locales/en/api-keys.json +31 -0
  778. package/src/cli/i18n/locales/en/core.json +40 -0
  779. package/src/cli/i18n/locales/en/menus-clitools.json +50 -0
  780. package/src/cli/i18n/locales/en/menus-combos.json +76 -0
  781. package/src/cli/i18n/locales/en/menus-providers.json +97 -0
  782. package/src/cli/i18n/locales/en/settings.json +35 -0
  783. package/src/cli/i18n/locales/en/terminal-ui.json +19 -0
  784. package/src/cli/i18n/locales/en/tray.json +15 -0
  785. package/src/cli/i18n/locales/en/utils.json +27 -0
  786. package/src/cli/i18n/locales/zh-CN/api-keys.json +31 -0
  787. package/src/cli/i18n/locales/zh-CN/core.json +40 -0
  788. package/src/cli/i18n/locales/zh-CN/menus-clitools.json +50 -0
  789. package/src/cli/i18n/locales/zh-CN/menus-combos.json +76 -0
  790. package/src/cli/i18n/locales/zh-CN/menus-providers.json +97 -0
  791. package/src/cli/i18n/locales/zh-CN/settings.json +35 -0
  792. package/src/cli/i18n/locales/zh-CN/terminal-ui.json +19 -0
  793. package/src/cli/i18n/locales/zh-CN/tray.json +15 -0
  794. package/src/cli/i18n/locales/zh-CN/utils.json +27 -0
  795. package/src/cli/i18n/locales/zh-TW/api-keys.json +31 -0
  796. package/src/cli/i18n/locales/zh-TW/core.json +40 -0
  797. package/src/cli/i18n/locales/zh-TW/menus-clitools.json +50 -0
  798. package/src/cli/i18n/locales/zh-TW/menus-combos.json +76 -0
  799. package/src/cli/i18n/locales/zh-TW/menus-providers.json +97 -0
  800. package/src/cli/i18n/locales/zh-TW/settings.json +35 -0
  801. package/src/cli/i18n/locales/zh-TW/terminal-ui.json +19 -0
  802. package/src/cli/i18n/locales/zh-TW/tray.json +15 -0
  803. package/src/cli/i18n/locales/zh-TW/utils.json +27 -0
  804. package/src/cli/menus/apiKeys.js +50 -49
  805. package/src/cli/menus/cliTools.js +93 -92
  806. package/src/cli/menus/combos.js +131 -130
  807. package/src/cli/menus/providers.js +142 -138
  808. package/src/cli/menus/settings.js +33 -32
  809. package/src/cli/terminalUI.js +26 -19
  810. package/src/cli/tray/tray.js +14 -13
  811. package/src/cli/utils/format.js +13 -8
  812. package/src/cli/utils/input.js +6 -5
  813. package/src/cli/utils/menuHelper.js +3 -2
  814. package/src/cli/utils/modelSelector.js +6 -5
  815. package/app/.next-cli-build/server/chunks/112.js +0 -3
  816. package/app/.next-cli-build/server/chunks/2025.js +0 -1
  817. package/app/.next-cli-build/server/chunks/4386.js +0 -1
  818. package/app/.next-cli-build/server/chunks/5247.js +0 -21
  819. package/app/.next-cli-build/server/chunks/5699.js +0 -1
  820. package/app/.next-cli-build/server/chunks/7356.js +0 -1
  821. package/app/.next-cli-build/static/chunks/1321-7ef9eda3d4dedfc6.js +0 -1
  822. package/app/.next-cli-build/static/chunks/5497-5f24f11ab3e1b1e8.js +0 -7
  823. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-4c2913c05df65ebd.js +0 -1
  824. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-2c5b3e38eb81630b.js +0 -1
  825. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-a87782e5ec684a62.js +0 -14
  826. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-e8de8502d304d4b9.js +0 -1
  827. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-96efba495d45a263.js +0 -1
  828. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-f4af951b9e6f6d37.js +0 -1
  829. package/app/.next-cli-build/static/chunks/app/_global-error/page-83c347ffe7fd763e.js +0 -1
  830. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-83c347ffe7fd763e.js +0 -1
  831. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-83c347ffe7fd763e.js +0 -1
  832. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-83c347ffe7fd763e.js +0 -1
  833. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-83c347ffe7fd763e.js +0 -1
  834. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-83c347ffe7fd763e.js +0 -1
  835. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-83c347ffe7fd763e.js +0 -1
  836. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-83c347ffe7fd763e.js +0 -1
  837. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-83c347ffe7fd763e.js +0 -1
  838. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-83c347ffe7fd763e.js +0 -1
  839. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-83c347ffe7fd763e.js +0 -1
  840. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-83c347ffe7fd763e.js +0 -1
  841. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-83c347ffe7fd763e.js +0 -1
  842. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-83c347ffe7fd763e.js +0 -1
  843. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-83c347ffe7fd763e.js +0 -1
  844. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-83c347ffe7fd763e.js +0 -1
  845. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-83c347ffe7fd763e.js +0 -1
  846. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-83c347ffe7fd763e.js +0 -1
  847. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-83c347ffe7fd763e.js +0 -1
  848. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-83c347ffe7fd763e.js +0 -1
  849. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-83c347ffe7fd763e.js +0 -1
  850. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-83c347ffe7fd763e.js +0 -1
  851. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-83c347ffe7fd763e.js +0 -1
  852. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-83c347ffe7fd763e.js +0 -1
  853. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-83c347ffe7fd763e.js +0 -1
  854. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-83c347ffe7fd763e.js +0 -1
  855. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-83c347ffe7fd763e.js +0 -1
  856. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-83c347ffe7fd763e.js +0 -1
  857. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-83c347ffe7fd763e.js +0 -1
  858. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-83c347ffe7fd763e.js +0 -1
  859. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-83c347ffe7fd763e.js +0 -1
  860. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-83c347ffe7fd763e.js +0 -1
  861. package/app/.next-cli-build/static/chunks/app/api/combos/route-83c347ffe7fd763e.js +0 -1
  862. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-83c347ffe7fd763e.js +0 -1
  863. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-83c347ffe7fd763e.js +0 -1
  864. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-83c347ffe7fd763e.js +0 -1
  865. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-83c347ffe7fd763e.js +0 -1
  866. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-83c347ffe7fd763e.js +0 -1
  867. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-83c347ffe7fd763e.js +0 -1
  868. package/app/.next-cli-build/static/chunks/app/api/health/route-83c347ffe7fd763e.js +0 -1
  869. package/app/.next-cli-build/static/chunks/app/api/init/route-83c347ffe7fd763e.js +0 -1
  870. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-83c347ffe7fd763e.js +0 -1
  871. package/app/.next-cli-build/static/chunks/app/api/keys/route-83c347ffe7fd763e.js +0 -1
  872. package/app/.next-cli-build/static/chunks/app/api/locale/route-83c347ffe7fd763e.js +0 -1
  873. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-83c347ffe7fd763e.js +0 -1
  874. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-83c347ffe7fd763e.js +0 -1
  875. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-83c347ffe7fd763e.js +0 -1
  876. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-83c347ffe7fd763e.js +0 -1
  877. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-83c347ffe7fd763e.js +0 -1
  878. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-83c347ffe7fd763e.js +0 -1
  879. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-83c347ffe7fd763e.js +0 -1
  880. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-83c347ffe7fd763e.js +0 -1
  881. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-83c347ffe7fd763e.js +0 -1
  882. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-83c347ffe7fd763e.js +0 -1
  883. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-83c347ffe7fd763e.js +0 -1
  884. package/app/.next-cli-build/static/chunks/app/api/models/route-83c347ffe7fd763e.js +0 -1
  885. package/app/.next-cli-build/static/chunks/app/api/models/test/route-83c347ffe7fd763e.js +0 -1
  886. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-83c347ffe7fd763e.js +0 -1
  887. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-83c347ffe7fd763e.js +0 -1
  888. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-83c347ffe7fd763e.js +0 -1
  889. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-83c347ffe7fd763e.js +0 -1
  890. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-83c347ffe7fd763e.js +0 -1
  891. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-83c347ffe7fd763e.js +0 -1
  892. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-83c347ffe7fd763e.js +0 -1
  893. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-83c347ffe7fd763e.js +0 -1
  894. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-83c347ffe7fd763e.js +0 -1
  895. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-83c347ffe7fd763e.js +0 -1
  896. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-83c347ffe7fd763e.js +0 -1
  897. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-83c347ffe7fd763e.js +0 -1
  898. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-83c347ffe7fd763e.js +0 -1
  899. package/app/.next-cli-build/static/chunks/app/api/pricing/route-83c347ffe7fd763e.js +0 -1
  900. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-83c347ffe7fd763e.js +0 -1
  901. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-83c347ffe7fd763e.js +0 -1
  902. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-83c347ffe7fd763e.js +0 -1
  903. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/json-models/route-83c347ffe7fd763e.js +0 -1
  904. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-83c347ffe7fd763e.js +0 -1
  905. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-83c347ffe7fd763e.js +0 -1
  906. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-83c347ffe7fd763e.js +0 -1
  907. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-83c347ffe7fd763e.js +0 -1
  908. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-83c347ffe7fd763e.js +0 -1
  909. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-83c347ffe7fd763e.js +0 -1
  910. package/app/.next-cli-build/static/chunks/app/api/providers/route-83c347ffe7fd763e.js +0 -1
  911. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-83c347ffe7fd763e.js +0 -1
  912. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-83c347ffe7fd763e.js +0 -1
  913. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-83c347ffe7fd763e.js +0 -1
  914. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-83c347ffe7fd763e.js +0 -1
  915. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-83c347ffe7fd763e.js +0 -1
  916. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-83c347ffe7fd763e.js +0 -1
  917. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-83c347ffe7fd763e.js +0 -1
  918. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-83c347ffe7fd763e.js +0 -1
  919. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-83c347ffe7fd763e.js +0 -1
  920. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-83c347ffe7fd763e.js +0 -1
  921. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-83c347ffe7fd763e.js +0 -1
  922. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-83c347ffe7fd763e.js +0 -1
  923. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-83c347ffe7fd763e.js +0 -1
  924. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-83c347ffe7fd763e.js +0 -1
  925. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-83c347ffe7fd763e.js +0 -1
  926. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-83c347ffe7fd763e.js +0 -1
  927. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-83c347ffe7fd763e.js +0 -1
  928. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-83c347ffe7fd763e.js +0 -1
  929. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-83c347ffe7fd763e.js +0 -1
  930. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-83c347ffe7fd763e.js +0 -1
  931. package/app/.next-cli-build/static/chunks/app/api/settings/route-83c347ffe7fd763e.js +0 -1
  932. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-83c347ffe7fd763e.js +0 -1
  933. package/app/.next-cli-build/static/chunks/app/api/tags/route-83c347ffe7fd763e.js +0 -1
  934. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-83c347ffe7fd763e.js +0 -1
  935. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-83c347ffe7fd763e.js +0 -1
  936. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-83c347ffe7fd763e.js +0 -1
  937. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-83c347ffe7fd763e.js +0 -1
  938. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-83c347ffe7fd763e.js +0 -1
  939. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-83c347ffe7fd763e.js +0 -1
  940. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-83c347ffe7fd763e.js +0 -1
  941. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-83c347ffe7fd763e.js +0 -1
  942. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-83c347ffe7fd763e.js +0 -1
  943. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-83c347ffe7fd763e.js +0 -1
  944. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-83c347ffe7fd763e.js +0 -1
  945. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-83c347ffe7fd763e.js +0 -1
  946. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-83c347ffe7fd763e.js +0 -1
  947. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-83c347ffe7fd763e.js +0 -1
  948. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-83c347ffe7fd763e.js +0 -1
  949. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-83c347ffe7fd763e.js +0 -1
  950. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-83c347ffe7fd763e.js +0 -1
  951. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-83c347ffe7fd763e.js +0 -1
  952. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-83c347ffe7fd763e.js +0 -1
  953. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-83c347ffe7fd763e.js +0 -1
  954. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-83c347ffe7fd763e.js +0 -1
  955. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-83c347ffe7fd763e.js +0 -1
  956. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-83c347ffe7fd763e.js +0 -1
  957. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-83c347ffe7fd763e.js +0 -1
  958. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-83c347ffe7fd763e.js +0 -1
  959. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-83c347ffe7fd763e.js +0 -1
  960. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-83c347ffe7fd763e.js +0 -1
  961. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-83c347ffe7fd763e.js +0 -1
  962. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-83c347ffe7fd763e.js +0 -1
  963. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-83c347ffe7fd763e.js +0 -1
  964. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-83c347ffe7fd763e.js +0 -1
  965. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-83c347ffe7fd763e.js +0 -1
  966. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-83c347ffe7fd763e.js +0 -1
  967. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-83c347ffe7fd763e.js +0 -1
  968. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-83c347ffe7fd763e.js +0 -1
  969. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-83c347ffe7fd763e.js +0 -1
  970. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-83c347ffe7fd763e.js +0 -1
  971. package/app/.next-cli-build/static/chunks/app/api/v1/route-83c347ffe7fd763e.js +0 -1
  972. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-83c347ffe7fd763e.js +0 -1
  973. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-83c347ffe7fd763e.js +0 -1
  974. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-83c347ffe7fd763e.js +0 -1
  975. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-83c347ffe7fd763e.js +0 -1
  976. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-83c347ffe7fd763e.js +0 -1
  977. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-83c347ffe7fd763e.js +0 -1
  978. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-83c347ffe7fd763e.js +0 -1
  979. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-83c347ffe7fd763e.js +0 -1
  980. package/app/.next-cli-build/static/chunks/app/api/version/route-83c347ffe7fd763e.js +0 -1
  981. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-83c347ffe7fd763e.js +0 -1
  982. package/app/.next-cli-build/static/chunks/app/api/version/update/route-83c347ffe7fd763e.js +0 -1
  983. package/app/.next-cli-build/static/chunks/app/landing/page-aff2214a6b8b2806.js +0 -1
  984. package/app/.next-cli-build/static/chunks/app/layout-1c3c7f60d8aa941b.js +0 -1
  985. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-83c347ffe7fd763e.js +0 -1
  986. package/app/.next-cli-build/static/chunks/app/page-83c347ffe7fd763e.js +0 -1
  987. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-83c347ffe7fd763e.js +0 -1
  988. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-83c347ffe7fd763e.js +0 -1
  989. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-83c347ffe7fd763e.js +0 -1
  990. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-83c347ffe7fd763e.js +0 -1
  991. package/app/.next-cli-build/static/css/97ee7865cf5a1a93.css +0 -1
  992. package/app/.next-cli-build/static/gWuzsY77U7qp3_zxV6Ar9/_buildManifest.js +0 -1
  993. /package/app/.next-cli-build/static/{gWuzsY77U7qp3_zxV6Ar9 → twXIb88JirT5kgPRe8HTu}/_ssgManifest.js +0 -0
@@ -1,7 +1,7 @@
1
- exports.id=5081,exports.ids=[5081],exports.modules={241:function(a){(function(){a.exports=class{handleError(a){throw Error(a)}}}).call(this)},469:function(a,b,c){(function(){var b,d;b=c(26468),d=c(73067),a.exports=class extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))}}}).call(this)},1243:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=class extends d{constructor(a,c,d){if(super(a),null==c)throw Error("Missing DTD element name. "+this.debugInfo());d||(d="(#PCDATA)"),Array.isArray(d)&&(d="("+d.join(",")+")"),this.name=this.stringify.name(c),this.type=b.ElementDeclaration,this.value=this.stringify.dtdElementValue(d)}toString(a){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(a))}}}).call(this)},2847:function(a,b){(function(){"use strict";var a;a=new RegExp(/(?!xmlns)^.*:/),b.normalize=function(a){return a.toLowerCase()},b.firstCharLowerCase=function(a){return a.charAt(0).toLowerCase()+a.slice(1)},b.stripPrefix=function(b){return b.replace(a,"")},b.parseNumbers=function(a){return isNaN(a)||(a=a%1==0?parseInt(a,10):parseFloat(a)),a},b.parseBooleans=function(a){return/^(?:true|false)$/i.test(a)&&(a="true"===a.toLowerCase()),a}}).call(this)},4107:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SignedXml=void 0;let d=c(62119),e=c(12749),f=c(28354),g=c(42429),h=c(4776),i=c(64564),j=c(18462),k=c(44558),l=c(32748),m=c(61894);class n{constructor(a={}){this.signatureAlgorithm=void 0,this.canonicalizationAlgorithm=void 0,this.inclusiveNamespacesPrefixList=[],this.namespaceResolver={lookupNamespaceURI:function(){throw Error("Not implemented")}},this.implicitTransforms=[],this.keyInfoAttributes={},this.getKeyInfoContent=n.getKeyInfoContent,this.getCertFromKeyInfo=n.getCertFromKeyInfo,this.id=0,this.signedXml="",this.signatureXml="",this.signatureNode=null,this.signatureValue="",this.originalXmlWithIds="",this.keyInfo=null,this.references=[],this.signedReferences=[],this.CanonicalizationAlgorithms={"http://www.w3.org/TR/2001/REC-xml-c14n-20010315":h.C14nCanonicalization,"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments":h.C14nCanonicalizationWithComments,"http://www.w3.org/2001/10/xml-exc-c14n#":j.ExclusiveCanonicalization,"http://www.w3.org/2001/10/xml-exc-c14n#WithComments":j.ExclusiveCanonicalizationWithComments,"http://www.w3.org/2000/09/xmldsig#enveloped-signature":i.EnvelopedSignature},this.HashAlgorithms={"http://www.w3.org/2000/09/xmldsig#sha1":k.Sha1,"http://www.w3.org/2001/04/xmlenc#sha256":k.Sha256,"http://www.w3.org/2001/04/xmlenc#sha512":k.Sha512},this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#rsa-sha1":l.RsaSha1,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256":l.RsaSha256,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512":l.RsaSha512};const{idMode:b,idAttribute:c,privateKey:d,publicCert:e,signatureAlgorithm:f,canonicalizationAlgorithm:g,inclusiveNamespacesPrefixList:o,implicitTransforms:p,keyInfoAttributes:q,getKeyInfoContent:r,getCertFromKeyInfo:s}=a;this.idMode=b,this.idAttributes=["Id","ID","id"],c&&this.idAttributes.unshift(c),this.privateKey=d,this.publicCert=e,this.signatureAlgorithm=f??this.signatureAlgorithm,this.canonicalizationAlgorithm=g,"string"==typeof o?this.inclusiveNamespacesPrefixList=o.split(" "):m.isArrayHasLength(o)&&(this.inclusiveNamespacesPrefixList=o),this.implicitTransforms=p??this.implicitTransforms,this.keyInfoAttributes=q??this.keyInfoAttributes,this.getKeyInfoContent=r??this.getKeyInfoContent,this.getCertFromKeyInfo=s??n.noop,this.CanonicalizationAlgorithms,this.HashAlgorithms,this.SignatureAlgorithms}enableHMAC(){this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#hmac-sha1":l.HmacSha1},this.getKeyInfoContent=n.noop}static getKeyInfoContent({publicCert:a,prefix:b}){if(null==a)return null;b=b?`${b}:`:"";let c="";Buffer.isBuffer(a)&&(a=a.toString("latin1"));let d=[];return"string"==typeof a&&(d=a.match(m.EXTRACT_X509_CERTS)||[]),d.length>0&&(c=d.map(a=>`<${b}X509Certificate>${m.pemToDer(a).toString("base64")}</${b}X509Certificate>`).join("")),`<${b}X509Data>${c}</${b}X509Data>`}static getCertFromKeyInfo(a){if(null!=a){let b=g.select1(".//*[local-name(.)='X509Certificate']",a);if(d.isNodeLike(b))return m.derToPem(b.textContent??"","CERTIFICATE")}return null}checkSignature(a,b){if(null!=b&&"function"!=typeof b)throw Error("Last parameter must be a callback function");this.signedXml=a;let c=new e.DOMParser().parseFromString(a);this.references=[];let d=this.getCanonSignedInfoXml(c);if(!d){if(b)return void b(Error("Canonical signed info cannot be empty"),!1);throw Error("Canonical signed info cannot be empty")}let f=new e.DOMParser().parseFromString(d,"text/xml").documentElement;if(!f){if(b)return void b(Error("Could not parse unverifiedSignedInfoCanon into a document"),!1);throw Error("Could not parse unverifiedSignedInfoCanon into a document")}let g=m.findChildren(f,"Reference");if(!m.isArrayHasLength(g)){if(b)return void b(Error("could not find any Reference elements"),!1);throw Error("could not find any Reference elements")}for(let a of g)this.loadReference(a);if(!this.getReferences().every(a=>this.validateReference(a,c)))return this.signedReferences=[],this.references.forEach(a=>{a.signedReference=void 0}),!!b&&void b(Error("Could not validate all references"),!1);let h=this.findSignatureAlgorithm(this.signatureAlgorithm),i=this.getCertFromKeyInfo(this.keyInfo)||this.publicCert||this.privateKey;if(null==i)throw Error("KeyInfo or publicCert or privateKey is required to validate signature");if(!0===h.verifySignature(d,i,this.signatureValue))if(!b)return!0;else b(null,!0);else{if(this.signedReferences=[],this.references.forEach(a=>{a.signedReference=void 0}),b)return void b(Error(`invalid signature: the signature value ${this.signatureValue} is incorrect`));throw Error(`invalid signature: the signature value ${this.signatureValue} is incorrect`)}}getCanonSignedInfoXml(a){if(null==this.signatureNode)throw Error("No signature found.");if("string"!=typeof this.canonicalizationAlgorithm)throw Error("Missing canonicalizationAlgorithm when trying to get signed info for XML");let b=m.findChildren(this.signatureNode,"SignedInfo");if(0===b.length)throw Error("could not find SignedInfo element in the message");if(b.length>1)throw Error("could not get canonicalized signed info for a signature that contains multiple SignedInfo nodes");if(("http://www.w3.org/TR/2001/REC-xml-c14n-20010315"===this.canonicalizationAlgorithm||"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"===this.canonicalizationAlgorithm)&&(!a||"object"!=typeof a))throw Error("When canonicalization method is non-exclusive, whole xml dom must be provided as an argument");let c=m.findAncestorNs(a,"//*[local-name()='SignedInfo']");return this.getCanonXml([this.canonicalizationAlgorithm],b[0],{ancestorNamespaces:c})}getCanonReferenceXml(a,b,c){Array.isArray(b.transforms)&&(b.ancestorNamespaces=m.findAncestorNs(a,b.xpath,this.namespaceResolver));let d={inclusiveNamespacesPrefixList:b.inclusiveNamespacesPrefixList,ancestorNamespaces:b.ancestorNamespaces};return this.getCanonXml(b.transforms,c,d)}calculateSignatureValue(a,b){let c=this.getCanonSignedInfoXml(a),d=this.findSignatureAlgorithm(this.signatureAlgorithm);if(null==this.privateKey)throw Error("Private key is required to compute signature");"function"==typeof b?d.getSignature(c,this.privateKey,b):this.signatureValue=d.getSignature(c,this.privateKey)}findSignatureAlgorithm(a){if(null==a)throw Error("signatureAlgorithm is required");let b=this.SignatureAlgorithms[a];if(b)return new b;throw Error(`signature algorithm '${a}' is not supported`)}findCanonicalizationAlgorithm(a){if(null!=a){let b=this.CanonicalizationAlgorithms[a];if(b)return new b}throw Error(`canonicalization algorithm '${a}' is not supported`)}findHashAlgorithm(a){let b=this.HashAlgorithms[a];if(b)return new b;throw Error(`hash algorithm '${a}' is not supported`)}validateElementAgainstReferences(a,b){let c;if("string"==typeof a){let e=g.select1(a,b);d.assertIsElementNode(e),c=e}else c=a;for(let a of this.getReferences()){let d=a.uri?.[0]==="#"?a.uri.substring(1):a.uri;for(let b of this.idAttributes)if(d===c.getAttribute(b)){a.xpath=`//*[@*[local-name(.)='${b}']='${d}']`;break}let e=this.getCanonReferenceXml(b,a,c),f=this.findHashAlgorithm(a.digestAlgorithm).getHash(e);if(m.validateDigestValue(f,a.digestValue))return a}throw Error("No references passed validation")}validateReference(a,b){let c=a.uri?.[0]==="#"?a.uri.substring(1):a.uri,e=null;if(""===c)e=g.select1("//*",b);else if(c?.indexOf("'")!==-1)throw Error("Cannot validate a uri with quotes inside it");else{let d=0;for(let f of this.idAttributes){let h=`//*[@*[local-name(.)='${f}']='${c}']`,i=g.select(h,b);if(m.isArrayHasLength(i)){if((d+=i.length)>1)throw Error("Cannot validate a document which contains multiple elements with the same value for the ID / Id / Id attributes, in order to prevent signature wrapping attack.");e=i[0],a.xpath=h}}}if(a.getValidatedNode=(0,f.deprecate)(c=>{if("string"!=typeof(c=c||a.xpath)||null!=a.validationError)return null;let e=g.select1(c,b);return d.isNodeLike(e)?e:null},"`ref.getValidatedNode()` is deprecated and insecure. Use `ref.signedReference` or `this.getSignedReferences()` instead."),!d.isNodeLike(e)){let b=Error(`invalid signature: the signature references an element with uri ${a.uri} but could not find such element in the xml`);return a.validationError=b,!1}let h=this.getCanonReferenceXml(b,a,e),i=this.findHashAlgorithm(a.digestAlgorithm).getHash(h);if(!m.validateDigestValue(i,a.digestValue)){let b=Error(`invalid signature: for uri ${a.uri} calculated digest is ${i} but the xml to validate supplies digest ${a.digestValue}`);return a.validationError=b,!1}return this.signedReferences.push(h),a.signedReference=h,!0}findSignatures(a){let b=g.select("//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",a);return d.isArrayOfNodes(b)?b:[]}loadSignature(a){"string"==typeof a?this.signatureNode=a=new e.DOMParser().parseFromString(a):this.signatureNode=a,this.signatureXml=a.toString();let b=g.select1(".//*[local-name(.)='CanonicalizationMethod']/@Algorithm",a);if(!d.isNodeLike(b))throw Error("could not find CanonicalizationMethod/@Algorithm element");d.isAttributeNode(b)&&(this.canonicalizationAlgorithm=b.value);let c=g.select1(".//*[local-name(.)='SignatureMethod']/@Algorithm",a);d.isAttributeNode(c)&&(this.signatureAlgorithm=c.value);let f=m.findChildren(this.signatureNode,"SignedInfo");if(!m.isArrayHasLength(f))throw Error("no signed info node found");if(f.length>1)throw Error("could not load signature that contains multiple SignedInfo nodes");let h=this.canonicalizationAlgorithm;h&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"!==h&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"!==h||(h="http://www.w3.org/2001/10/xml-exc-c14n#");let i=this.getCanonXml([h],f[0]),j=new e.DOMParser().parseFromString(i,"text/xml").documentElement;this.references=[];let k=m.findChildren(j,"Reference");if(!m.isArrayHasLength(k))throw Error("could not find any Reference elements");for(let a of k)this.loadReference(a);let l=g.select1(".//*[local-name(.)='SignatureValue']/text()",a);d.isTextNode(l)&&(this.signatureValue=l.data.replace(/\r?\n/g,""));let n=g.select1(".//*[local-name(.)='KeyInfo']",a);d.isNodeLike(n)&&(this.keyInfo=n)}loadReference(a){let b=m.findChildren(a,"DigestMethod");if(0===b.length)throw Error(`could not find DigestMethod in reference ${a.toString()}`);let c=b[0],e=m.findAttr(c,"Algorithm");if(!e)throw Error(`could not find Algorithm attribute in node ${c.toString()}`);let f=e.value;if(0===(b=m.findChildren(a,"DigestValue")).length)throw Error(`could not find DigestValue node in reference ${a.toString()}`);if(b.length>1)throw Error(`could not load reference for a node that contains multiple DigestValue nodes: ${a.toString()}`);let g=b[0].textContent;if(!g)throw Error(`could not find the value of DigestValue in ${a.toString()}`);let h=[],i=[];if(0!==(b=m.findChildren(a,"Transforms")).length){let a=b[0],c=m.findChildren(a,"Transform");for(let a of c){let b=m.findAttr(a,"Algorithm");b&&h.push(b.value)}let d=m.findChildren(c[c.length-1],"InclusiveNamespaces");m.isArrayHasLength(d)&&(i=d.flatMap(a=>(a.getAttribute("PrefixList")??"").split(" ")).filter(a=>a.length>0))}m.isArrayHasLength(this.implicitTransforms)&&this.implicitTransforms.forEach(function(a){h.push(a)}),(0===h.length||"http://www.w3.org/2000/09/xmldsig#enveloped-signature"===h[h.length-1])&&h.push("http://www.w3.org/TR/2001/REC-xml-c14n-20010315");let j=d.isElementNode(a)&&a.getAttribute("URI")||void 0;this.addReference({transforms:h,digestAlgorithm:f,uri:j,digestValue:g,inclusiveNamespacesPrefixList:i,isEmptyUri:!1})}addReference({xpath:a,transforms:b,digestAlgorithm:c,uri:d="",digestValue:e,inclusiveNamespacesPrefixList:f=[],isEmptyUri:g=!1}){if(null==c)throw Error("digestAlgorithm is required");if(!m.isArrayHasLength(b))throw Error("transforms must contain at least one transform algorithm");this.references.push({xpath:a,transforms:b,digestAlgorithm:c,uri:d,digestValue:e,inclusiveNamespacesPrefixList:f,isEmptyUri:g,getValidatedNode:()=>{throw Error("Reference has not been validated yet; Did you call `sig.checkSignature()`?")}})}getReferences(){return this.references}getSignedReferences(){return[...this.signedReferences]}computeSignature(a,b,c){let f,h;"function"==typeof b&&null==c?(f=b,b={}):(f=c,b=b??{});let i=new e.DOMParser().parseFromString(a),j="xmlns",k=[],l=["append","prepend","before","after"],n=b.prefix,o=b.attrs||{},p=b.location||{},q=b.existingPrefixes||{};if(this.namespaceResolver={lookupNamespaceURI:function(a){return a?q[a]:null}},p.reference=p.reference||"/*",p.action=p.action||"append",-1===l.indexOf(p.action)){let a=Error(`location.action option has an invalid action: ${p.action}, must be any of the following values: ${l.join(", ")}`);if(f)return void f(a);throw a}n?(j+=`:${n}`,h=`${n}:`):h="",Object.keys(o).forEach(function(a){"xmlns"!==a&&a!==j&&k.push(`${a}="${o[a]}"`)}),k.push(`${j}="http://www.w3.org/2000/09/xmldsig#"`);let r=`<${h}Signature ${k.join(" ")}>`;r+=this.createSignedInfo(i,n),r+=this.getKeyInfo(n),r+=`</${h}Signature>`,this.originalXmlWithIds=i.toString();let s="";Object.keys(q).forEach(function(a){s+=`xmlns:${a}="${q[a]}" `});let t=`<Dummy ${s}>${r}</Dummy>`,u=new e.DOMParser().parseFromString(t).documentElement.firstChild,v=g.select1(p.reference,i);if(!d.isNodeLike(v)){let a=Error(`the following xpath cannot be used because it was not found: ${p.reference}`);if(f)return void f(a);throw a}if("append"===p.action)v.appendChild(u);else if("prepend"===p.action)v.insertBefore(u,v.firstChild);else if("before"===p.action){if(null==v.parentNode)throw Error("`location.reference` refers to the root node (by default), so we can't insert `before`");v.parentNode.insertBefore(u,v)}else if("after"===p.action){if(null==v.parentNode)throw Error("`location.reference` refers to the root node (by default), so we can't insert `after`");v.parentNode.insertBefore(u,v.nextSibling)}this.signatureNode=u;let w=m.findChildren(this.signatureNode,"SignedInfo");if(0===w.length){let a=Error("could not find SignedInfo element in the message");if(f)return void f(a);throw a}let x=w[0];"function"==typeof f?this.calculateSignatureValue(i,(a,b)=>{a?f(a):(this.signatureValue=b||"",u.insertBefore(this.createSignature(n),x.nextSibling),this.signatureXml=u.toString(),this.signedXml=i.toString(),f(null,this))}):(this.calculateSignatureValue(i),u.insertBefore(this.createSignature(n),x.nextSibling),this.signatureXml=u.toString(),this.signedXml=i.toString())}getKeyInfo(a){let b=a?`${a}:`:"",c="";this.keyInfoAttributes&&Object.keys(this.keyInfoAttributes).forEach(a=>{c+=` ${a}="${this.keyInfoAttributes[a]}"`});let d=this.getKeyInfoContent({publicCert:this.publicCert,prefix:a});return c||d?`<${b}KeyInfo${c}>${d}</${b}KeyInfo>`:""}createReferences(a,b){let c="";for(let d of(b=(b=b||"")?`${b}:`:b,this.getReferences())){let e=g.selectWithResolver(d.xpath??"",a,this.namespaceResolver);if(!m.isArrayHasLength(e))throw Error(`the following xpath cannot be signed because it was not found: ${d.xpath}`);for(let f of e){if(d.isEmptyUri)c+=`<${b}Reference URI="">`;else{let a=this.ensureHasId(f);d.uri=a,c+=`<${b}Reference URI="#${a}">`}for(let a of(c+=`<${b}Transforms>`,d.transforms||[])){let e=this.findCanonicalizationAlgorithm(a);c+=`<${b}Transform Algorithm="${e.getAlgorithmName()}"`,m.isArrayHasLength(d.inclusiveNamespacesPrefixList)?c+=`><InclusiveNamespaces PrefixList="${d.inclusiveNamespacesPrefixList.join(" ")}" xmlns="${e.getAlgorithmName()}"/></${b}Transform>`:c+=" />"}let e=this.getCanonReferenceXml(a,d,f),g=this.findHashAlgorithm(d.digestAlgorithm);c+=`</${b}Transforms><${b}DigestMethod Algorithm="${g.getAlgorithmName()}" /><${b}DigestValue>${g.getHash(e)}</${b}DigestValue></${b}Reference>`}}return c}getCanonXml(a,b,c={}){c.defaultNsForPrefix=c.defaultNsForPrefix??n.defaultNsForPrefix,c.signatureNode=this.signatureNode;let e=b.cloneNode(!0);return a.forEach(a=>{d.isNodeLike(e)&&(e=this.findCanonicalizationAlgorithm(a).process(e,c))}),e.toString()}ensureHasId(a){let b;if("wssecurity"===this.idMode?b=m.findAttr(a,"Id","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"):this.idAttributes.some(c=>!!(b=m.findAttr(a,c))),b)return b.value;let c=`_${this.id++}`;return"wssecurity"===this.idMode?(a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:wsu","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"),a.setAttributeNS("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd","wsu:Id",c)):a.setAttribute("Id",c),c}createSignedInfo(a,b){let c;if("string"!=typeof this.canonicalizationAlgorithm)throw Error("Missing canonicalizationAlgorithm when trying to create signed info for XML");let d=this.findCanonicalizationAlgorithm(this.canonicalizationAlgorithm),e=this.findSignatureAlgorithm(this.signatureAlgorithm);c=(c=b||"")?`${c}:`:c;let f=`<${c}SignedInfo>`;return f+=`<${c}CanonicalizationMethod Algorithm="${d.getAlgorithmName()}"`,m.isArrayHasLength(this.inclusiveNamespacesPrefixList)?(f+=">",f+=`<InclusiveNamespaces PrefixList="${this.inclusiveNamespacesPrefixList.join(" ")}" xmlns="${d.getAlgorithmName()}"/>`,f+=`</${c}CanonicalizationMethod>`):f+=" />",f+=`<${c}SignatureMethod Algorithm="${e.getAlgorithmName()}" />`,f+=this.createReferences(a,b),f+=`</${c}SignedInfo>`}createSignature(a){let b="xmlns";a?(b+=`:${a}`,a+=":"):a="";let c=`<${a}SignatureValue>${this.signatureValue}</${a}SignatureValue>`,d=`<${a}Signature ${b}="http://www.w3.org/2000/09/xmldsig#">${c}</${a}Signature>`;return new e.DOMParser().parseFromString(d).documentElement.firstChild}getSignatureXml(){return this.signatureXml}getOriginalXmlWithIds(){return this.originalXmlWithIds}getSignedXml(){return this.signedXml}}b.SignedXml=n,n.defaultNsForPrefix={ds:"http://www.w3.org/2000/09/xmldsig#"},n.noop=()=>null},4505:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,e){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing DTD element name. "+this.debugInfo());e||(e="(#PCDATA)"),Array.isArray(e)&&(e="("+e.join(",")+")"),this.name=this.stringify.name(d),this.type=b.ElementDeclaration,this.value=this.stringify.dtdElementValue(e)}return e(c,a),c.prototype.toString=function(a){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},4700:function(a){(function(){var b,c,d,e=[].slice,f={}.hasOwnProperty;c=function(a){return!!a&&"[object Function]"===Object.prototype.toString.call(a)},d=function(a){var b;return!!a&&("function"==(b=typeof a)||"object"===b)},b=function(a){return c(Array.isArray)?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)},a.exports.assign=function(){var a,b,d,g,h,i;if(i=arguments[0],h=2<=arguments.length?e.call(arguments,1):[],c(Object.assign))Object.assign.apply(null,arguments);else for(a=0,d=h.length;a<d;a++)if(null!=(g=h[a]))for(b in g)f.call(g,b)&&(i[b]=g[b]);return i},a.exports.isFunction=c,a.exports.isObject=d,a.exports.isArray=b,a.exports.isEmpty=function(a){var c;if(b(a))return!a.length;for(c in a)if(f.call(a,c))return!1;return!0},a.exports.isPlainObject=function(a){var b,c;return d(a)&&(c=Object.getPrototypeOf(a))&&(b=c.constructor)&&"function"==typeof b&&b instanceof b&&Function.prototype.toString.call(b)===Function.prototype.toString.call(Object)},a.exports.getValue=function(a){return c(a.valueOf)?a.valueOf():a}}).call(this)},4776:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.C14nCanonicalizationWithComments=b.C14nCanonicalization=void 0;let d=c(61894),e=c(62119);class f{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(a,b){if(!a.namespaceURI&&b.namespaceURI)return -1;if(!b.namespaceURI&&a.namespaceURI)return 1;let c=a.namespaceURI+a.localName,d=b.namespaceURI+b.localName;return c===d?0:c<d?-1:1}nsCompare(a,b){let c=a.prefix,d=b.prefix;return c===d?0:c.localeCompare(d)}renderAttrs(a){let b,c,f=[];if(e.isCommentNode(a))return this.renderComment(a);if(a.attributes)for(b=0;b<a.attributes.length;++b)0!==(c=a.attributes[b]).name.indexOf("xmlns")&&f.push(c);return f.sort(this.attrCompare),f.map(a=>` ${a.name}="${d.encodeSpecialCharactersInAttribute(a.value)}"`).join("")}renderNs(a,b,c,e,f){let g,h,i=[],j=c,k=[],l=a.namespaceURI||"";if(a.prefix?-1===b.indexOf(a.prefix)&&(k.push({prefix:a.prefix,namespaceURI:a.namespaceURI||e[a.prefix]}),b.push(a.prefix)):c!==l&&i.push(' xmlns="',j=a.namespaceURI||"",'"'),a.attributes)for(g=0;g<a.attributes.length;++g)"xmlns"===(h=a.attributes[g]).prefix&&-1===b.indexOf(h.localName)&&(k.push({prefix:h.localName,namespaceURI:h.value}),b.push(h.localName)),h.prefix&&-1===b.indexOf(h.prefix)&&"xmlns"!==h.prefix&&"xml"!==h.prefix&&(k.push({prefix:h.prefix,namespaceURI:h.namespaceURI}),b.push(h.prefix));if(d.isArrayHasLength(f))for(let a of f){let b=!1;for(let c of k)c.prefix===a.prefix&&c.namespaceURI===a.namespaceURI&&(b=!0);b||k.push(a)}return k.sort(this.nsCompare),i.push(...k.map(a=>a.prefix?` xmlns:${a.prefix}="${a.namespaceURI}"`:` xmlns="${a.namespaceURI}"`)),{rendered:i.join(""),newDefaultNs:j}}processInner(a,b,c,f,g){if(e.isCommentNode(a))return this.renderComment(a);if(a.data)return d.encodeSpecialCharactersInText(a.data);if(e.isElementNode(a)){let d,e,h=this.renderNs(a,b,c,f,g),i=["<",a.tagName,h.rendered,this.renderAttrs(a),">"];for(d=0;d<a.childNodes.length;++d)e=b.slice(0),i.push(this.processInner(a.childNodes[d],e,h.newDefaultNs,f,[]));return i.push("</",a.tagName,">"),i.join("")}throw Error(`Unable to canonicalize node type: ${a.nodeType}`)}renderComment(a){if(!this.includeComments)return"";let b=a.ownerDocument===a.parentNode,c=!1,e=!1;if(b){let b=a,d=a;for(;null!==b;){if(b===a.ownerDocument.documentElement){c=!0;break}b=b.nextSibling}for(;null!==d;){if(d===a.ownerDocument.documentElement){e=!0;break}d=d.previousSibling}}let f=e?"\n":"",g=c?"\n":"",h=d.encodeSpecialCharactersInText(a.data);return`${f}<!--${h}-->${g}`}process(a,b){let c=(b=b||{}).defaultNs||"",d=b.defaultNsForPrefix||{},e=b.ancestorNamespaces||[],f=[];for(let a=0;a<e.length;a++)f.push(e[a].prefix);return this.processInner(a,f,c,d,e)}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"}}b.C14nCanonicalization=f;class g extends f{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"}}b.C14nCanonicalizationWithComments=g},5032:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=(function(){class a extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=b.Text,this.value=this.stringify.text(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.text(this,this.options.writer.filterOptions(a))}splitText(a){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(a){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(a.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"wholeText",{get:function(){var a,b,c;for(c="",b=this.previousSibling;b;)c=b.data+c,b=b.previousSibling;for(c+=this.data,a=this.nextSibling;a;)c+=a.data,a=a.nextSibling;return c}}),a}).call(this)}).call(this)},7216:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l;j=(l=c(4700)).assign,k=l.isFunction,e=c(35971),f=c(95280),g=c(98193),i=c(13859),h=c(92030),b=c(24706),d=c(46780),a.exports.create=function(a,b,c,d){var e,g;if(null==a)throw Error("Root element needs a name.");return g=(e=new f(d=j({},b,c,d))).element(a),d.headless||(e.declaration(d),(null!=d.pubID||null!=d.sysID)&&e.dtd(d)),g},a.exports.begin=function(a,b,c){var d;return(k(a)&&(b=(d=[a,b])[0],c=d[1],a={}),b)?new g(a,b,c):new f(a)},a.exports.stringWriter=function(a){return new i(a)},a.exports.streamWriter=function(a,b){return new h(a,b)},a.exports.implementation=new e,a.exports.nodeType=b,a.exports.writerState=d}).call(this)},7832:function(a){(function(){a.exports=function(){function a(a){this.nodes=a}return Object.defineProperty(a.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),a.prototype.clone=function(){return this.nodes=null},a.prototype.getNamedItem=function(a){return this.nodes[a]},a.prototype.setNamedItem=function(a){var b;return b=this.nodes[a.nodeName],this.nodes[a.nodeName]=a,b||null},a.prototype.removeNamedItem=function(a){var b;return b=this.nodes[a],delete this.nodes[a],b||null},a.prototype.item=function(a){return this.nodes[Object.keys(this.nodes)[a]]||null},a.prototype.getNamedItemNS=function(a,b){throw Error("This DOM method is not implemented.")},a.prototype.setNamedItemNS=function(a){throw Error("This DOM method is not implemented.")},a.prototype.removeNamedItemNS=function(a,b){throw Error("This DOM method is not implemented.")},a}()}).call(this)},8676:function(a){(function(){a.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},8859:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(d)}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))},c}(c(8957))}).call(this)},8957:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t={}.hasOwnProperty;r=(s=c(4700)).isObject,q=s.isFunction,p=s.isEmpty,o=s.getValue,j=null,e=null,f=null,g=null,h=null,m=null,n=null,l=null,i=null,d=null,k=null,b=null,a.exports=function(){function a(a){this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,j||(j=c(43849),e=c(36700),f=c(65904),g=c(84689),h=c(99379),m=c(8859),n=c(86690),l=c(58892),i=c(31777),d=c(24706),k=c(18521),c(7832),b=c(8676))}return Object.defineProperty(a.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(a.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new k(this.children)),this.childNodeList}}),Object.defineProperty(a.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(a.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(a.prototype,"previousSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a-1]||null}}),Object.defineProperty(a.prototype,"nextSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a+1]||null}}),Object.defineProperty(a.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(a.prototype,"textContent",{get:function(){var a,b,c,e,f;if(this.nodeType!==d.Element&&this.nodeType!==d.DocumentFragment)return null;for(b=0,f="",c=(e=this.children).length;b<c;b++)(a=e[b]).textContent&&(f+=a.textContent);return f},set:function(a){throw Error("This DOM method is not implemented."+this.debugInfo())}}),a.prototype.setParent=function(a){var b,c,d,e,f;for(this.parent=a,a&&(this.options=a.options,this.stringify=a.stringify),e=this.children,f=[],c=0,d=e.length;c<d;c++)b=e[c],f.push(b.setParent(this));return f},a.prototype.element=function(a,b,c){var d,e,f,g,h,i,j,k,l,m,n;if(i=null,null===b&&null==c&&(b=(l=[{},null])[0],c=l[1]),null==b&&(b={}),r(b=o(b))||(c=(m=[b,c])[0],b=m[1]),null!=a&&(a=o(a)),Array.isArray(a))for(f=0,j=a.length;f<j;f++)e=a[f],i=this.element(e);else if(q(a))i=this.element(a.apply());else if(r(a)){for(h in a)if(t.call(a,h))if(q(n=a[h])&&(n=n.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===h.indexOf(this.stringify.convertAttKey))i=this.attribute(h.substr(this.stringify.convertAttKey.length),n);else if(!this.options.separateArrayItems&&Array.isArray(n)&&p(n))i=this.dummy();else if(r(n)&&p(n))i=this.element(h);else if(this.options.keepNullNodes||null!=n)if(!this.options.separateArrayItems&&Array.isArray(n))for(g=0,k=n.length;g<k;g++)e=n[g],(d={})[h]=e,i=this.element(d);else r(n)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===h.indexOf(this.stringify.convertTextKey)?i=this.element(n):(i=this.element(h)).element(n):i=this.element(h,n);else i=this.dummy()}else i=this.options.keepNullNodes||null!==c?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?this.text(c):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===a.indexOf(this.stringify.convertCDataKey)?this.cdata(c):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===a.indexOf(this.stringify.convertCommentKey)?this.comment(c):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===a.indexOf(this.stringify.convertRawKey)?this.raw(c):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===a.indexOf(this.stringify.convertPIKey)?this.instruction(a.substr(this.stringify.convertPIKey.length),c):this.node(a,b,c):this.dummy();if(null==i)throw Error("Could not create any elements with: "+a+". "+this.debugInfo());return i},a.prototype.insertBefore=function(a,b,c){var d,e,f;if(null!=a?a.type:void 0)return a.setParent(this),b?(e=children.indexOf(b),f=children.splice(e),children.push(a),Array.prototype.push.apply(children,f)):children.push(a),a;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.insertAfter=function(a,b,c){var d,e,f;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e+1),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.remove=function(){var a;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return a=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[a,a-a+1].concat([])),this.parent},a.prototype.node=function(a,b,c){var d,e;return null!=a&&(a=o(a)),b||(b={}),r(b=o(b))||(c=(e=[b,c])[0],b=e[1]),d=new j(this,a,b),null!=c&&d.text(c),this.children.push(d),d},a.prototype.text=function(a){var b;return r(a)&&this.element(a),b=new n(this,a),this.children.push(b),this},a.prototype.cdata=function(a){var b;return b=new e(this,a),this.children.push(b),this},a.prototype.comment=function(a){var b;return b=new f(this,a),this.children.push(b),this},a.prototype.commentBefore=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.commentAfter=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b+1),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.raw=function(a){var b;return b=new m(this,a),this.children.push(b),this},a.prototype.dummy=function(){return new i(this)},a.prototype.instruction=function(a,b){var c,d,e,f,g;if(null!=a&&(a=o(a)),null!=b&&(b=o(b)),Array.isArray(a))for(f=0,g=a.length;f<g;f++)c=a[f],this.instruction(c);else if(r(a))for(c in a)t.call(a,c)&&(d=a[c],this.instruction(c,d));else q(b)&&(b=b.apply()),e=new l(this,a,b),this.children.push(e);return this},a.prototype.instructionBefore=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.instructionAfter=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c+1),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.declaration=function(a,b,c){var e,f;return e=this.document(),f=new g(e,a,b,c),0===e.children.length?e.children.unshift(f):e.children[0].type===d.Declaration?e.children[0]=f:e.children.unshift(f),e.root()||e},a.prototype.dtd=function(a,b){var c,e,f,g,i,j,k,l,m;for(c=this.document(),e=new h(c,a,b),l=c.children,f=g=0,j=l.length;g<j;f=++g)if(l[f].type===d.DocType)return c.children[f]=e,e;for(m=c.children,f=i=0,k=m.length;i<k;f=++i)if(m[f].isRoot)return c.children.splice(f,0,e),e;return c.children.push(e),e},a.prototype.up=function(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},a.prototype.root=function(){var a;for(a=this;a;)if(a.type===d.Document)return a.rootObject;else{if(a.isRoot)return a;a=a.parent}},a.prototype.document=function(){var a;for(a=this;a;)if(a.type===d.Document)return a;else a=a.parent},a.prototype.end=function(a){return this.document().end(a)},a.prototype.prev=function(){var a;if((a=this.parent.children.indexOf(this))<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[a-1]},a.prototype.next=function(){var a;if(-1===(a=this.parent.children.indexOf(this))||a===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[a+1]},a.prototype.importDocument=function(a){var b;return(b=a.root().clone()).parent=this,b.isRoot=!1,this.children.push(b),this},a.prototype.debugInfo=function(a){var b,c;return null!=(a=a||this.name)||(null!=(b=this.parent)?b.name:void 0)?null==a?"parent: <"+this.parent.name+">":(null!=(c=this.parent)?c.name:void 0)?"node: <"+a+">, parent: <"+this.parent.name+">":"node: <"+a+">":""},a.prototype.ele=function(a,b,c){return this.element(a,b,c)},a.prototype.nod=function(a,b,c){return this.node(a,b,c)},a.prototype.txt=function(a){return this.text(a)},a.prototype.dat=function(a){return this.cdata(a)},a.prototype.com=function(a){return this.comment(a)},a.prototype.ins=function(a,b){return this.instruction(a,b)},a.prototype.doc=function(){return this.document()},a.prototype.dec=function(a,b,c){return this.declaration(a,b,c)},a.prototype.e=function(a,b,c){return this.element(a,b,c)},a.prototype.n=function(a,b,c){return this.node(a,b,c)},a.prototype.t=function(a){return this.text(a)},a.prototype.d=function(a){return this.cdata(a)},a.prototype.c=function(a){return this.comment(a)},a.prototype.r=function(a){return this.raw(a)},a.prototype.i=function(a,b){return this.instruction(a,b)},a.prototype.u=function(){return this.up()},a.prototype.importXMLBuilder=function(a){return this.importDocument(a)},a.prototype.replaceChild=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeChild=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.appendChild=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.hasChildNodes=function(){return 0!==this.children.length},a.prototype.cloneNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.normalize=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isSupported=function(a,b){return!0},a.prototype.hasAttributes=function(){return 0!==this.attribs.length},a.prototype.compareDocumentPosition=function(a){var c;if(this===a)return 0;if(this.document()!==a.document())return c=b.Disconnected|b.ImplementationSpecific,.5>Math.random()?c|=b.Preceding:c|=b.Following,c;if(this.isAncestor(a))return b.Contains|b.Preceding;if(this.isDescendant(a))return b.Contains|b.Following;if(this.isPreceding(a))return b.Preceding;else return b.Following},a.prototype.isSameNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.lookupPrefix=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isDefaultNamespace=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.lookupNamespaceURI=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(a){var b,c,d;if(a.nodeType!==this.nodeType||a.children.length!==this.children.length)return!1;for(b=c=0,d=this.children.length-1;0<=d?c<=d:c>=d;b=0<=d?++c:--c)if(!this.children[b].isEqualNode(a.children[b]))return!1;return!0},a.prototype.getFeature=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setUserData=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getUserData=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.contains=function(a){return!!a&&(a===this||this.isDescendant(a))},a.prototype.isDescendant=function(a){var b,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if(a===(b=e[c])||b.isDescendant(a))return!0;return!1},a.prototype.isAncestor=function(a){return a.isDescendant(this)},a.prototype.isPreceding=function(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b<c},a.prototype.isFollowing=function(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b>c},a.prototype.treePosition=function(a){var b,c;return(c=0,b=!1,this.foreachTreeNode(this.document(),function(d){if(c++,!b&&d===a)return b=!0}),b)?c:-1},a.prototype.foreachTreeNode=function(a,b){var c,d,e,f,g;for(a||(a=this.document()),d=0,e=(f=a.children).length;d<e;d++)if((g=b(c=f[d]))||(g=this.foreachTreeNode(c,b)))return g},a}()}).call(this)},9315:(a,b,c)=>{a.exports=function(a){function b(a){let c,e,f,g=null;function h(...a){if(!h.enabled)return;let d=Number(new Date);h.diff=d-(c||d),h.prev=c,h.curr=d,c=d,a[0]=b.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");let e=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(c,d)=>{if("%%"===c)return"%";e++;let f=b.formatters[d];if("function"==typeof f){let b=a[e];c=f.call(h,b),a.splice(e,1),e--}return c}),b.formatArgs.call(h,a),(h.log||b.log).apply(h,a)}return h.namespace=a,h.useColors=b.useColors(),h.color=b.selectColor(a),h.extend=d,h.destroy=b.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==g?g:(e!==b.namespaces&&(e=b.namespaces,f=b.enabled(a)),f),set:a=>{g=a}}),"function"==typeof b.init&&b.init(h),h}function d(a,c){let d=b(this.namespace+(void 0===c?":":c)+a);return d.log=this.log,d}function e(a,b){let c=0,d=0,e=-1,f=0;for(;c<a.length;)if(d<b.length&&(b[d]===a[c]||"*"===b[d]))"*"===b[d]?(e=d,f=c):c++,d++;else{if(-1===e)return!1;d=e+1,c=++f}for(;d<b.length&&"*"===b[d];)d++;return d===b.length}return b.debug=b,b.default=b,b.coerce=function(a){return a instanceof Error?a.stack||a.message:a},b.disable=function(){let a=[...b.names,...b.skips.map(a=>"-"+a)].join(",");return b.enable(""),a},b.enable=function(a){for(let c of(b.save(a),b.namespaces=a,b.names=[],b.skips=[],("string"==typeof a?a:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===c[0]?b.skips.push(c.slice(1)):b.names.push(c)},b.enabled=function(a){for(let c of b.skips)if(e(a,c))return!1;for(let c of b.names)if(e(a,c))return!0;return!1},b.humanize=c(20890),b.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(a).forEach(c=>{b[c]=a[c]}),b.names=[],b.skips=[],b.formatters={},b.selectColor=function(a){let c=0;for(let b=0;b<a.length;b++)c=(c<<5)-c+a.charCodeAt(b)|0;return b.colors[Math.abs(c)%b.colors.length]},b.enable(b.load()),b}},12430:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=class extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))}}}).call(this)},12570:function(a,b,c){(function(){var b,d,e,f=function(a,b){for(var c in b)g.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},g={}.hasOwnProperty;e=c(4700).isObject,d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,f,g){if(c.__super__.constructor.call(this,a),null==f)throw Error("Missing DTD entity name. "+this.debugInfo(f));if(null==g)throw Error("Missing DTD entity value. "+this.debugInfo(f));if(this.pe=!!d,this.name=this.stringify.name(f),this.type=b.EntityDeclaration,e(g)){if(!g.pubID&&!g.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(f));if(g.pubID&&!g.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(f));if(this.internal=!1,null!=g.pubID&&(this.pubID=this.stringify.dtdPubID(g.pubID)),null!=g.sysID&&(this.sysID=this.stringify.dtdSysID(g.sysID)),null!=g.nData&&(this.nData=this.stringify.dtdNData(g.nData)),this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(f))}else this.value=this.stringify.dtdEntityValue(g),this.internal=!0}return f(c,a),Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(c.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return null}}),c.prototype.toString=function(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},12749:(a,b,c)=>{var d=c(81349);b.DOMImplementation=d.DOMImplementation,b.XMLSerializer=d.XMLSerializer,b.DOMParser=c(62669).DOMParser},13630:(a,b,c)=>{"use strict";var d=c(23849).freeze;b.XML_ENTITIES=d({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),b.HTML_ENTITIES=d({Aacute:"\xc1",aacute:"\xe1",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"А",acy:"а",AElig:"\xc6",aelig:"\xe6",af:"⁡",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xc0",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"\xc5",aring:"\xe5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"\xa6",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"⦲",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"\xae",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"\xa9",copy:"\xa9",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"\xb0",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xa8",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"\xc9",eacute:"\xe9",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"\xca",ecirc:"\xea",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"\xc8",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"\xbd",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"\xcd",iacute:"\xed",ic:"⁣",Icirc:"\xce",icirc:"\xee",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"\xa1",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"\xcc",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"\xbf",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"\xcf",iuml:"\xef",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"\xab",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:"\xa0",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"\xac",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"\xd3",oacute:"\xf3",oast:"⊛",ocir:"⊚",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"\xd2",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"\xd8",oslash:"\xf8",osol:"⊘",Otilde:"\xd5",otilde:"\xf5",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"\xd6",ouml:"\xf6",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"\xa3",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"\xae",reg:"\xae",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"\xad",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"\xde",thorn:"\xfe",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"\xda",uacute:"\xfa",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"\xa8",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"\xdc",uuml:"\xfc",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"\xdd",yacute:"\xfd",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"\xa5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"\xff",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"}),b.entityMap=b.HTML_ENTITIES},13859:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a){c.__super__.constructor.call(this,a)}return b(c,a),c.prototype.document=function(a,b){var c,d,e,f,g;for(b=this.filterOptions(b),f="",d=0,e=(g=a.children).length;d<e;d++)c=g[d],f+=this.writeChildNode(c,b,0);return b.pretty&&f.slice(-b.newline.length)===b.newline&&(f=f.slice(0,-b.newline.length)),f},c}(c(97871))}).call(this)},15081:(a,b,c)=>{"use strict";b.Qb=void 0;let d=c(47564);Object.defineProperty(b,"Qb",{enumerable:!0,get:function(){return d.SAML}}),c(45540),c(35312)},15890:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=class extends d{constructor(a,c,d){if(super(a),null==c)throw Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(c),this.name=this.target,d&&(this.value=this.stringify.insValue(d))}clone(){return Object.create(this)}toString(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))}isEqualNode(a){return!!super.isEqualNode(a)&&a.target===this.target}}}).call(this)},15894:(a,b,c)=>{c(33873),c(29021);var d={"encrypted-key":c(59548),keyinfo:c(67925)};a.exports={renderTemplate:function(a,b){return d[a](b)},pemToCert:function(a){var b=/-----BEGIN CERTIFICATE-----([^-]*)-----END CERTIFICATE-----/g.exec(a);return b.length>0?b[1].replace(/[\n|\r\n]/g,""):null},warnInsecureAlgorithm:function(a,b=!0){b&&console.warn(a+" is no longer recommended due to security reasons. Please deprecate its use as soon as possible.")}}},17395:function(a,b,c){(function(){var b,d;b=c(88435),d=c(46584),a.exports=function(){function a(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new b,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(a.prototype,"parameterNames",{get:function(){return new d(Object.keys(this.defaultParams))}}),a.prototype.getParameter=function(a){return this.params.hasOwnProperty(a)?this.params[a]:null},a.prototype.canSetParameter=function(a,b){return!0},a.prototype.setParameter=function(a,b){return null!=b?this.params[a]=b:delete this.params[a]},a}()}).call(this)},18462:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.ExclusiveCanonicalizationWithComments=b.ExclusiveCanonicalization=void 0;let d=c(61894),e=c(62119);function f(a,b,c){let d=!1;return a.forEach(function(a){a.prefix===b&&a.namespaceURI===c&&(d=!0)}),d}class g{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(a,b){if(!a.namespaceURI&&b.namespaceURI)return -1;if(!b.namespaceURI&&a.namespaceURI)return 1;let c=a.namespaceURI+a.localName,d=b.namespaceURI+b.localName;return c===d?0:c<d?-1:1}nsCompare(a,b){let c=a.prefix,d=b.prefix;return c===d?0:c.localeCompare(d)}renderAttrs(a){let b,c,f=[],g=[];if(e.isCommentNode(a))return this.renderComment(a);if(a.attributes)for(b=0;b<a.attributes.length;++b)0!==(c=a.attributes[b]).name.indexOf("xmlns")&&g.push(c);for(c of(g.sort(this.attrCompare),g))f.push(" ",c.name,'="',d.encodeSpecialCharactersInAttribute(c.value),'"');return f.join("")}renderNs(a,b,c,d,e){let g,h,i=[],j=c,k=[],l=a.namespaceURI||"";if(a.prefix?f(b,a.prefix,a.namespaceURI||d[a.prefix])||(k.push({prefix:a.prefix,namespaceURI:a.namespaceURI||d[a.prefix]}),b.push({prefix:a.prefix,namespaceURI:a.namespaceURI||d[a.prefix]})):c!==l&&(j=a.namespaceURI,i.push(' xmlns="',j,'"')),a.attributes)for(g=0;g<a.attributes.length;++g)(h=a.attributes[g]).prefix&&!f(b,h.localName,h.value)&&e.indexOf(h.localName)>=0&&(k.push({prefix:h.localName,namespaceURI:h.value}),b.push({prefix:h.localName,namespaceURI:h.value})),h.prefix&&!f(b,h.prefix,h.namespaceURI)&&"xmlns"!==h.prefix&&"xml"!==h.prefix&&(k.push({prefix:h.prefix,namespaceURI:h.namespaceURI}),b.push({prefix:h.prefix,namespaceURI:h.namespaceURI}));for(let a of(k.sort(this.nsCompare),k))i.push(" xmlns:",a.prefix,'="',a.namespaceURI,'"');return{rendered:i.join(""),newDefaultNs:j}}processInner(a,b,c,f,g){if(e.isCommentNode(a))return this.renderComment(a);if(a.data)return d.encodeSpecialCharactersInText(a.data);if(e.isElementNode(a)){let d,e,h=this.renderNs(a,b,c,f,g),i=["<",a.tagName,h.rendered,this.renderAttrs(a),">"];for(d=0;d<a.childNodes.length;++d)e=b.slice(0),i.push(this.processInner(a.childNodes[d],e,h.newDefaultNs,f,g));return i.push("</",a.tagName,">"),i.join("")}throw Error(`Unable to exclusive canonicalize node type: ${a.nodeType}`)}renderComment(a){if(!this.includeComments)return"";let b=a.ownerDocument===a.parentNode,c=!1,e=!1;if(b){let b=a,d=a;for(;null!=b;){if(b===a.ownerDocument.documentElement){c=!0;break}b=b.nextSibling}for(;null!=d;){if(d===a.ownerDocument.documentElement){e=!0;break}d=d.previousSibling}}let f=e?"\n":"",g=c?"\n":"",h=d.encodeSpecialCharactersInText(a.data);return`${f}<!--${h}-->${g}`}process(a,b){let c=(b=b||{}).inclusiveNamespacesPrefixList||[],e=b.defaultNs||"",f=b.defaultNsForPrefix||{},g=b.ancestorNamespaces||[];if(!d.isArrayHasLength(c)){let b=d.findChildren(a,"CanonicalizationMethod");if(0!==b.length){let a=d.findChildren(b[0],"InclusiveNamespaces");0!==a.length&&(c=(a[0].getAttribute("PrefixList")||"").split(" "))}}return d.isArrayHasLength(c)&&c.forEach(function(b){g&&g.forEach(function(c){b===c.prefix&&a.setAttributeNS("http://www.w3.org/2000/xmlns/",`xmlns:${b}`,c.namespaceURI)})}),this.processInner(a,[],e,f,c)}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#"}}b.ExclusiveCanonicalization=g;class h extends g{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#WithComments"}}b.ExclusiveCanonicalizationWithComments=h},18521:function(a){(function(){a.exports=function(){function a(a){this.nodes=a}return Object.defineProperty(a.prototype,"length",{get:function(){return this.nodes.length||0}}),a.prototype.clone=function(){return this.nodes=null},a.prototype.item=function(a){return this.nodes[a]||null},a}()}).call(this)},19691:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.dateStringToTimestamp=b.generateInstant=void 0,b.generateInstant=()=>new Date().toISOString(),b.dateStringToTimestamp=(a,b)=>{let c=Date.parse(a);if(isNaN(c))throw Error(`Error parsing ${b}: '${a}' is not a valid date`);return c}},20890:a=>{function b(a,b,c,d){return Math.round(a/c)+" "+d+(b>=1.5*c?"s":"")}a.exports=function(a,c){c=c||{};var d,e,f,g,h=typeof a;if("string"===h&&a.length>0){var i=a;if(!((i=String(i)).length>100)){var j=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(j){var k=parseFloat(j[1]);switch((j[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*k;case"weeks":case"week":case"w":return 6048e5*k;case"days":case"day":case"d":return 864e5*k;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*k;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*k;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*k;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return k;default:break}}}return}if("number"===h&&isFinite(a)){return c.long?(e=Math.abs(d=a))>=864e5?b(d,e,864e5,"day"):e>=36e5?b(d,e,36e5,"hour"):e>=6e4?b(d,e,6e4,"minute"):e>=1e3?b(d,e,1e3,"second"):d+" ms":(g=Math.abs(f=a))>=864e5?Math.round(f/864e5)+"d":g>=36e5?Math.round(f/36e5)+"h":g>=6e4?Math.round(f/6e4)+"m":g>=1e3?Math.round(f/1e3)+"s":f+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))}},21584:(a,b,c)=>{let d;b.formatArgs=function(b){if(b[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+b[0]+(this.useColors?"%c ":" ")+"+"+a.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;b.splice(1,0,c,"color: inherit");let d=0,e=0;b[0].replace(/%[a-zA-Z%]/g,a=>{"%%"!==a&&(d++,"%c"===a&&(e=d))}),b.splice(e,0,c)},b.save=function(a){try{a?b.storage.setItem("debug",a):b.storage.removeItem("debug")}catch(a){}},b.load=function(){let a;try{a=b.storage.getItem("debug")||b.storage.getItem("DEBUG")}catch(a){}return!a&&"u">typeof process&&"env"in process&&(a=process.env.DEBUG),a},b.useColors=function(){let a;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},b.storage=function(){try{return localStorage}catch(a){}}(),d=!1,b.destroy=()=>{d||(d=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},b.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],b.log=console.debug||console.log||(()=>{}),a.exports=c(9315)(b);let{formatters:e}=a.exports;e.j=function(a){try{return JSON.stringify(a)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}},22859:function(a,b,c){"use strict";var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__exportStar||function(a,b){for(var c in a)"default"===c||Object.prototype.hasOwnProperty.call(b,c)||d(b,a,c)};Object.defineProperty(b,"__esModule",{value:!0}),b.SignedXml=b.ExclusiveCanonicalizationWithComments=b.ExclusiveCanonicalization=b.C14nCanonicalizationWithComments=b.C14nCanonicalization=void 0;var f=c(4776);Object.defineProperty(b,"C14nCanonicalization",{enumerable:!0,get:function(){return f.C14nCanonicalization}}),Object.defineProperty(b,"C14nCanonicalizationWithComments",{enumerable:!0,get:function(){return f.C14nCanonicalizationWithComments}});var g=c(18462);Object.defineProperty(b,"ExclusiveCanonicalization",{enumerable:!0,get:function(){return g.ExclusiveCanonicalization}}),Object.defineProperty(b,"ExclusiveCanonicalizationWithComments",{enumerable:!0,get:function(){return g.ExclusiveCanonicalizationWithComments}});var h=c(4107);Object.defineProperty(b,"SignedXml",{enumerable:!0,get:function(){return h.SignedXml}}),e(c(75546),b),e(c(61894),b)},23849:(a,b)=>{"use strict";function c(a,b){return void 0===b&&(b=Object),b&&"function"==typeof b.freeze?b.freeze(a):a}var d=c({HTML:"text/html",isHTML:function(a){return a===d.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),e=c({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(a){return a===e.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),f=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=RegExp("[\\-\\.0-9"+f.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),h=RegExp("^"+f.source+g.source+"*(?::"+f.source+g.source+"*)?$");b.assign=function(a,b){if(null===a||"object"!=typeof a)throw TypeError("target is not an object");for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);return a},b.find=function(a,b,c){if(void 0===c&&(c=Array.prototype),a&&"function"==typeof c.find)return c.find.call(a,b);for(var d=0;d<a.length;d++)if(Object.prototype.hasOwnProperty.call(a,d)){var e=a[d];if(b.call(void 0,e,d,a))return e}},b.freeze=c,b.MIME_TYPE=d,b.NAMESPACE=e,b.nameStartChar=f,b.nameChar=g,b.tagNamePattern=h},24706:function(a){(function(){a.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},24938:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k;({assign:j,isFunction:k}=c(43594)),e=c(88909),f=c(50962),g=c(78611),i=c(44981),h=c(72616),b=c(26468),d=c(29394),a.exports.create=function(a,b,c,d){var e,g;if(null==a)throw Error("Root element needs a name.");return g=(e=new f(d=j({},b,c,d))).element(a),d.headless||(e.declaration(d),(null!=d.pubID||null!=d.sysID)&&e.dtd(d)),g},a.exports.begin=function(a,b,c){return(k(a)&&([b,c]=[a,b],a={}),b)?new g(a,b,c):new f(a)},a.exports.stringWriter=function(a){return new i(a)},a.exports.streamWriter=function(a,b){return new h(a,b)},a.exports.implementation=new e,a.exports.nodeType=b,a.exports.writerState=d}).call(this)},25141:function(a,b,c){(function(){var b,d;b=c(241),d=c(34370),a.exports=(function(){class a{constructor(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new b,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}getParameter(a){return this.params.hasOwnProperty(a)?this.params[a]:null}canSetParameter(a,b){return!0}setParameter(a,b){return null!=b?this.params[a]=b:delete this.params[a]}}return Object.defineProperty(a.prototype,"parameterNames",{get:function(){return new d(Object.keys(this.defaultParams))}}),a}).call(this)}).call(this)},26468:function(a){(function(){a.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},26884:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.stripPemHeaderAndFooter=b.generateUniqueId=b.keyInfoToPem=void 0;let d=c(55511),e=c(36481),f=/^(-----BEGIN [A-Z\x20]{1,48}-----(\r\n|\r|\n){1}.*(\r\n|\r|\n){1}-----END [A-Z\x20]{1,48}-----(\r\n|\r|\n){0,1})$/s,g=/^(?:[A-Za-z0-9\+\/]{4}\n{0,1})*(?:[A-Za-z0-9\+\/]{2}==|[A-Za-z0-9\+\/]{3}=)?$/s,h=a=>{var b;return`${(null!=(b=a.trim().replace(/(\r\n|\r)/g,"\n").match(/.{1,64}/g))?b:[]).join("\n")}
1
+ exports.id=5081,exports.ids=[5081],exports.modules={241:function(a){(function(){a.exports=class{handleError(a){throw Error(a)}}}).call(this)},469:function(a,b,c){(function(){var b,d;b=c(26468),d=c(73067),a.exports=class extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))}}}).call(this)},1243:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=class extends d{constructor(a,c,d){if(super(a),null==c)throw Error("Missing DTD element name. "+this.debugInfo());d||(d="(#PCDATA)"),Array.isArray(d)&&(d="("+d.join(",")+")"),this.name=this.stringify.name(c),this.type=b.ElementDeclaration,this.value=this.stringify.dtdElementValue(d)}toString(a){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(a))}}}).call(this)},2847:function(a,b){(function(){"use strict";var a;a=new RegExp(/(?!xmlns)^.*:/),b.normalize=function(a){return a.toLowerCase()},b.firstCharLowerCase=function(a){return a.charAt(0).toLowerCase()+a.slice(1)},b.stripPrefix=function(b){return b.replace(a,"")},b.parseNumbers=function(a){return isNaN(a)||(a=a%1==0?parseInt(a,10):parseFloat(a)),a},b.parseBooleans=function(a){return/^(?:true|false)$/i.test(a)&&(a="true"===a.toLowerCase()),a}}).call(this)},4107:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SignedXml=void 0;let d=c(62119),e=c(12749),f=c(28354),g=c(42429),h=c(4776),i=c(64564),j=c(18462),k=c(44558),l=c(32748),m=c(61894);class n{constructor(a={}){this.signatureAlgorithm=void 0,this.canonicalizationAlgorithm=void 0,this.inclusiveNamespacesPrefixList=[],this.namespaceResolver={lookupNamespaceURI:function(){throw Error("Not implemented")}},this.implicitTransforms=[],this.keyInfoAttributes={},this.getKeyInfoContent=n.getKeyInfoContent,this.getCertFromKeyInfo=n.getCertFromKeyInfo,this.id=0,this.signedXml="",this.signatureXml="",this.signatureNode=null,this.signatureValue="",this.originalXmlWithIds="",this.keyInfo=null,this.references=[],this.signedReferences=[],this.CanonicalizationAlgorithms={"http://www.w3.org/TR/2001/REC-xml-c14n-20010315":h.C14nCanonicalization,"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments":h.C14nCanonicalizationWithComments,"http://www.w3.org/2001/10/xml-exc-c14n#":j.ExclusiveCanonicalization,"http://www.w3.org/2001/10/xml-exc-c14n#WithComments":j.ExclusiveCanonicalizationWithComments,"http://www.w3.org/2000/09/xmldsig#enveloped-signature":i.EnvelopedSignature},this.HashAlgorithms={"http://www.w3.org/2000/09/xmldsig#sha1":k.Sha1,"http://www.w3.org/2001/04/xmlenc#sha256":k.Sha256,"http://www.w3.org/2001/04/xmlenc#sha512":k.Sha512},this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#rsa-sha1":l.RsaSha1,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256":l.RsaSha256,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512":l.RsaSha512};const{idMode:b,idAttribute:c,privateKey:d,publicCert:e,signatureAlgorithm:f,canonicalizationAlgorithm:g,inclusiveNamespacesPrefixList:o,implicitTransforms:p,keyInfoAttributes:q,getKeyInfoContent:r,getCertFromKeyInfo:s}=a;this.idMode=b,this.idAttributes=["Id","ID","id"],c&&this.idAttributes.unshift(c),this.privateKey=d,this.publicCert=e,this.signatureAlgorithm=f??this.signatureAlgorithm,this.canonicalizationAlgorithm=g,"string"==typeof o?this.inclusiveNamespacesPrefixList=o.split(" "):m.isArrayHasLength(o)&&(this.inclusiveNamespacesPrefixList=o),this.implicitTransforms=p??this.implicitTransforms,this.keyInfoAttributes=q??this.keyInfoAttributes,this.getKeyInfoContent=r??this.getKeyInfoContent,this.getCertFromKeyInfo=s??n.noop,this.CanonicalizationAlgorithms,this.HashAlgorithms,this.SignatureAlgorithms}enableHMAC(){this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#hmac-sha1":l.HmacSha1},this.getKeyInfoContent=n.noop}static getKeyInfoContent({publicCert:a,prefix:b}){if(null==a)return null;b=b?`${b}:`:"";let c="";Buffer.isBuffer(a)&&(a=a.toString("latin1"));let d=[];return"string"==typeof a&&(d=a.match(m.EXTRACT_X509_CERTS)||[]),d.length>0&&(c=d.map(a=>`<${b}X509Certificate>${m.pemToDer(a).toString("base64")}</${b}X509Certificate>`).join("")),`<${b}X509Data>${c}</${b}X509Data>`}static getCertFromKeyInfo(a){if(null!=a){let b=g.select1(".//*[local-name(.)='X509Certificate']",a);if(d.isNodeLike(b))return m.derToPem(b.textContent??"","CERTIFICATE")}return null}checkSignature(a,b){if(null!=b&&"function"!=typeof b)throw Error("Last parameter must be a callback function");this.signedXml=a;let c=new e.DOMParser().parseFromString(a);this.references=[];let d=this.getCanonSignedInfoXml(c);if(!d){if(b)return void b(Error("Canonical signed info cannot be empty"),!1);throw Error("Canonical signed info cannot be empty")}let f=new e.DOMParser().parseFromString(d,"text/xml").documentElement;if(!f){if(b)return void b(Error("Could not parse unverifiedSignedInfoCanon into a document"),!1);throw Error("Could not parse unverifiedSignedInfoCanon into a document")}let g=m.findChildren(f,"Reference");if(!m.isArrayHasLength(g)){if(b)return void b(Error("could not find any Reference elements"),!1);throw Error("could not find any Reference elements")}for(let a of g)this.loadReference(a);if(!this.getReferences().every(a=>this.validateReference(a,c)))return this.signedReferences=[],this.references.forEach(a=>{a.signedReference=void 0}),!!b&&void b(Error("Could not validate all references"),!1);let h=this.findSignatureAlgorithm(this.signatureAlgorithm),i=this.getCertFromKeyInfo(this.keyInfo)||this.publicCert||this.privateKey;if(null==i)throw Error("KeyInfo or publicCert or privateKey is required to validate signature");if(!0===h.verifySignature(d,i,this.signatureValue))if(!b)return!0;else b(null,!0);else{if(this.signedReferences=[],this.references.forEach(a=>{a.signedReference=void 0}),b)return void b(Error(`invalid signature: the signature value ${this.signatureValue} is incorrect`));throw Error(`invalid signature: the signature value ${this.signatureValue} is incorrect`)}}getCanonSignedInfoXml(a){if(null==this.signatureNode)throw Error("No signature found.");if("string"!=typeof this.canonicalizationAlgorithm)throw Error("Missing canonicalizationAlgorithm when trying to get signed info for XML");let b=m.findChildren(this.signatureNode,"SignedInfo");if(0===b.length)throw Error("could not find SignedInfo element in the message");if(b.length>1)throw Error("could not get canonicalized signed info for a signature that contains multiple SignedInfo nodes");if(("http://www.w3.org/TR/2001/REC-xml-c14n-20010315"===this.canonicalizationAlgorithm||"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"===this.canonicalizationAlgorithm)&&(!a||"object"!=typeof a))throw Error("When canonicalization method is non-exclusive, whole xml dom must be provided as an argument");let c=m.findAncestorNs(a,"//*[local-name()='SignedInfo']");return this.getCanonXml([this.canonicalizationAlgorithm],b[0],{ancestorNamespaces:c})}getCanonReferenceXml(a,b,c){Array.isArray(b.transforms)&&(b.ancestorNamespaces=m.findAncestorNs(a,b.xpath,this.namespaceResolver));let d={inclusiveNamespacesPrefixList:b.inclusiveNamespacesPrefixList,ancestorNamespaces:b.ancestorNamespaces};return this.getCanonXml(b.transforms,c,d)}calculateSignatureValue(a,b){let c=this.getCanonSignedInfoXml(a),d=this.findSignatureAlgorithm(this.signatureAlgorithm);if(null==this.privateKey)throw Error("Private key is required to compute signature");"function"==typeof b?d.getSignature(c,this.privateKey,b):this.signatureValue=d.getSignature(c,this.privateKey)}findSignatureAlgorithm(a){if(null==a)throw Error("signatureAlgorithm is required");let b=this.SignatureAlgorithms[a];if(b)return new b;throw Error(`signature algorithm '${a}' is not supported`)}findCanonicalizationAlgorithm(a){if(null!=a){let b=this.CanonicalizationAlgorithms[a];if(b)return new b}throw Error(`canonicalization algorithm '${a}' is not supported`)}findHashAlgorithm(a){let b=this.HashAlgorithms[a];if(b)return new b;throw Error(`hash algorithm '${a}' is not supported`)}validateElementAgainstReferences(a,b){let c;if("string"==typeof a){let e=g.select1(a,b);d.assertIsElementNode(e),c=e}else c=a;for(let a of this.getReferences()){let d=a.uri?.[0]==="#"?a.uri.substring(1):a.uri;for(let b of this.idAttributes)if(d===c.getAttribute(b)){a.xpath=`//*[@*[local-name(.)='${b}']='${d}']`;break}let e=this.getCanonReferenceXml(b,a,c),f=this.findHashAlgorithm(a.digestAlgorithm).getHash(e);if(m.validateDigestValue(f,a.digestValue))return a}throw Error("No references passed validation")}validateReference(a,b){let c=a.uri?.[0]==="#"?a.uri.substring(1):a.uri,e=null;if(""===c)e=g.select1("//*",b);else if(c?.indexOf("'")!==-1)throw Error("Cannot validate a uri with quotes inside it");else{let d=0;for(let f of this.idAttributes){let h=`//*[@*[local-name(.)='${f}']='${c}']`,i=g.select(h,b);if(m.isArrayHasLength(i)){if((d+=i.length)>1)throw Error("Cannot validate a document which contains multiple elements with the same value for the ID / Id / Id attributes, in order to prevent signature wrapping attack.");e=i[0],a.xpath=h}}}if(a.getValidatedNode=(0,f.deprecate)(c=>{if("string"!=typeof(c=c||a.xpath)||null!=a.validationError)return null;let e=g.select1(c,b);return d.isNodeLike(e)?e:null},"`ref.getValidatedNode()` is deprecated and insecure. Use `ref.signedReference` or `this.getSignedReferences()` instead."),!d.isNodeLike(e)){let b=Error(`invalid signature: the signature references an element with uri ${a.uri} but could not find such element in the xml`);return a.validationError=b,!1}let h=this.getCanonReferenceXml(b,a,e),i=this.findHashAlgorithm(a.digestAlgorithm).getHash(h);if(!m.validateDigestValue(i,a.digestValue)){let b=Error(`invalid signature: for uri ${a.uri} calculated digest is ${i} but the xml to validate supplies digest ${a.digestValue}`);return a.validationError=b,!1}return this.signedReferences.push(h),a.signedReference=h,!0}findSignatures(a){let b=g.select("//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",a);return d.isArrayOfNodes(b)?b:[]}loadSignature(a){"string"==typeof a?this.signatureNode=a=new e.DOMParser().parseFromString(a):this.signatureNode=a,this.signatureXml=a.toString();let b=g.select1(".//*[local-name(.)='CanonicalizationMethod']/@Algorithm",a);if(!d.isNodeLike(b))throw Error("could not find CanonicalizationMethod/@Algorithm element");d.isAttributeNode(b)&&(this.canonicalizationAlgorithm=b.value);let c=g.select1(".//*[local-name(.)='SignatureMethod']/@Algorithm",a);d.isAttributeNode(c)&&(this.signatureAlgorithm=c.value);let f=m.findChildren(this.signatureNode,"SignedInfo");if(!m.isArrayHasLength(f))throw Error("no signed info node found");if(f.length>1)throw Error("could not load signature that contains multiple SignedInfo nodes");let h=this.canonicalizationAlgorithm;h&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"!==h&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"!==h||(h="http://www.w3.org/2001/10/xml-exc-c14n#");let i=this.getCanonXml([h],f[0]),j=new e.DOMParser().parseFromString(i,"text/xml").documentElement;this.references=[];let k=m.findChildren(j,"Reference");if(!m.isArrayHasLength(k))throw Error("could not find any Reference elements");for(let a of k)this.loadReference(a);let l=g.select1(".//*[local-name(.)='SignatureValue']/text()",a);d.isTextNode(l)&&(this.signatureValue=l.data.replace(/\r?\n/g,""));let n=g.select1(".//*[local-name(.)='KeyInfo']",a);d.isNodeLike(n)&&(this.keyInfo=n)}loadReference(a){let b=m.findChildren(a,"DigestMethod");if(0===b.length)throw Error(`could not find DigestMethod in reference ${a.toString()}`);let c=b[0],e=m.findAttr(c,"Algorithm");if(!e)throw Error(`could not find Algorithm attribute in node ${c.toString()}`);let f=e.value;if(0===(b=m.findChildren(a,"DigestValue")).length)throw Error(`could not find DigestValue node in reference ${a.toString()}`);if(b.length>1)throw Error(`could not load reference for a node that contains multiple DigestValue nodes: ${a.toString()}`);let g=b[0].textContent;if(!g)throw Error(`could not find the value of DigestValue in ${a.toString()}`);let h=[],i=[];if(0!==(b=m.findChildren(a,"Transforms")).length){let a=b[0],c=m.findChildren(a,"Transform");for(let a of c){let b=m.findAttr(a,"Algorithm");b&&h.push(b.value)}let d=m.findChildren(c[c.length-1],"InclusiveNamespaces");m.isArrayHasLength(d)&&(i=d.flatMap(a=>(a.getAttribute("PrefixList")??"").split(" ")).filter(a=>a.length>0))}m.isArrayHasLength(this.implicitTransforms)&&this.implicitTransforms.forEach(function(a){h.push(a)}),(0===h.length||"http://www.w3.org/2000/09/xmldsig#enveloped-signature"===h[h.length-1])&&h.push("http://www.w3.org/TR/2001/REC-xml-c14n-20010315");let j=d.isElementNode(a)&&a.getAttribute("URI")||void 0;this.addReference({transforms:h,digestAlgorithm:f,uri:j,digestValue:g,inclusiveNamespacesPrefixList:i,isEmptyUri:!1})}addReference({xpath:a,transforms:b,digestAlgorithm:c,uri:d="",digestValue:e,inclusiveNamespacesPrefixList:f=[],isEmptyUri:g=!1}){if(null==c)throw Error("digestAlgorithm is required");if(!m.isArrayHasLength(b))throw Error("transforms must contain at least one transform algorithm");this.references.push({xpath:a,transforms:b,digestAlgorithm:c,uri:d,digestValue:e,inclusiveNamespacesPrefixList:f,isEmptyUri:g,getValidatedNode:()=>{throw Error("Reference has not been validated yet; Did you call `sig.checkSignature()`?")}})}getReferences(){return this.references}getSignedReferences(){return[...this.signedReferences]}computeSignature(a,b,c){let f,h;"function"==typeof b&&null==c?(f=b,b={}):(f=c,b=b??{});let i=new e.DOMParser().parseFromString(a),j="xmlns",k=[],l=["append","prepend","before","after"],n=b.prefix,o=b.attrs||{},p=b.location||{},q=b.existingPrefixes||{};if(this.namespaceResolver={lookupNamespaceURI:function(a){return a?q[a]:null}},p.reference=p.reference||"/*",p.action=p.action||"append",-1===l.indexOf(p.action)){let a=Error(`location.action option has an invalid action: ${p.action}, must be any of the following values: ${l.join(", ")}`);if(f)return void f(a);throw a}n?(j+=`:${n}`,h=`${n}:`):h="",Object.keys(o).forEach(function(a){"xmlns"!==a&&a!==j&&k.push(`${a}="${o[a]}"`)}),k.push(`${j}="http://www.w3.org/2000/09/xmldsig#"`);let r=`<${h}Signature ${k.join(" ")}>`;r+=this.createSignedInfo(i,n),r+=this.getKeyInfo(n),r+=`</${h}Signature>`,this.originalXmlWithIds=i.toString();let s="";Object.keys(q).forEach(function(a){s+=`xmlns:${a}="${q[a]}" `});let t=`<Dummy ${s}>${r}</Dummy>`,u=new e.DOMParser().parseFromString(t).documentElement.firstChild,v=g.select1(p.reference,i);if(!d.isNodeLike(v)){let a=Error(`the following xpath cannot be used because it was not found: ${p.reference}`);if(f)return void f(a);throw a}if("append"===p.action)v.appendChild(u);else if("prepend"===p.action)v.insertBefore(u,v.firstChild);else if("before"===p.action){if(null==v.parentNode)throw Error("`location.reference` refers to the root node (by default), so we can't insert `before`");v.parentNode.insertBefore(u,v)}else if("after"===p.action){if(null==v.parentNode)throw Error("`location.reference` refers to the root node (by default), so we can't insert `after`");v.parentNode.insertBefore(u,v.nextSibling)}this.signatureNode=u;let w=m.findChildren(this.signatureNode,"SignedInfo");if(0===w.length){let a=Error("could not find SignedInfo element in the message");if(f)return void f(a);throw a}let x=w[0];"function"==typeof f?this.calculateSignatureValue(i,(a,b)=>{a?f(a):(this.signatureValue=b||"",u.insertBefore(this.createSignature(n),x.nextSibling),this.signatureXml=u.toString(),this.signedXml=i.toString(),f(null,this))}):(this.calculateSignatureValue(i),u.insertBefore(this.createSignature(n),x.nextSibling),this.signatureXml=u.toString(),this.signedXml=i.toString())}getKeyInfo(a){let b=a?`${a}:`:"",c="";this.keyInfoAttributes&&Object.keys(this.keyInfoAttributes).forEach(a=>{c+=` ${a}="${this.keyInfoAttributes[a]}"`});let d=this.getKeyInfoContent({publicCert:this.publicCert,prefix:a});return c||d?`<${b}KeyInfo${c}>${d}</${b}KeyInfo>`:""}createReferences(a,b){let c="";for(let d of(b=(b=b||"")?`${b}:`:b,this.getReferences())){let e=g.selectWithResolver(d.xpath??"",a,this.namespaceResolver);if(!m.isArrayHasLength(e))throw Error(`the following xpath cannot be signed because it was not found: ${d.xpath}`);for(let f of e){if(d.isEmptyUri)c+=`<${b}Reference URI="">`;else{let a=this.ensureHasId(f);d.uri=a,c+=`<${b}Reference URI="#${a}">`}for(let a of(c+=`<${b}Transforms>`,d.transforms||[])){let e=this.findCanonicalizationAlgorithm(a);c+=`<${b}Transform Algorithm="${e.getAlgorithmName()}"`,m.isArrayHasLength(d.inclusiveNamespacesPrefixList)?c+=`><InclusiveNamespaces PrefixList="${d.inclusiveNamespacesPrefixList.join(" ")}" xmlns="${e.getAlgorithmName()}"/></${b}Transform>`:c+=" />"}let e=this.getCanonReferenceXml(a,d,f),g=this.findHashAlgorithm(d.digestAlgorithm);c+=`</${b}Transforms><${b}DigestMethod Algorithm="${g.getAlgorithmName()}" /><${b}DigestValue>${g.getHash(e)}</${b}DigestValue></${b}Reference>`}}return c}getCanonXml(a,b,c={}){c.defaultNsForPrefix=c.defaultNsForPrefix??n.defaultNsForPrefix,c.signatureNode=this.signatureNode;let e=b.cloneNode(!0);return a.forEach(a=>{d.isNodeLike(e)&&(e=this.findCanonicalizationAlgorithm(a).process(e,c))}),e.toString()}ensureHasId(a){let b;if("wssecurity"===this.idMode?b=m.findAttr(a,"Id","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"):this.idAttributes.some(c=>!!(b=m.findAttr(a,c))),b)return b.value;let c=`_${this.id++}`;return"wssecurity"===this.idMode?(a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:wsu","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"),a.setAttributeNS("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd","wsu:Id",c)):a.setAttribute("Id",c),c}createSignedInfo(a,b){let c;if("string"!=typeof this.canonicalizationAlgorithm)throw Error("Missing canonicalizationAlgorithm when trying to create signed info for XML");let d=this.findCanonicalizationAlgorithm(this.canonicalizationAlgorithm),e=this.findSignatureAlgorithm(this.signatureAlgorithm);c=(c=b||"")?`${c}:`:c;let f=`<${c}SignedInfo>`;return f+=`<${c}CanonicalizationMethod Algorithm="${d.getAlgorithmName()}"`,m.isArrayHasLength(this.inclusiveNamespacesPrefixList)?(f+=">",f+=`<InclusiveNamespaces PrefixList="${this.inclusiveNamespacesPrefixList.join(" ")}" xmlns="${d.getAlgorithmName()}"/>`,f+=`</${c}CanonicalizationMethod>`):f+=" />",f+=`<${c}SignatureMethod Algorithm="${e.getAlgorithmName()}" />`,f+=this.createReferences(a,b),f+=`</${c}SignedInfo>`}createSignature(a){let b="xmlns";a?(b+=`:${a}`,a+=":"):a="";let c=`<${a}SignatureValue>${this.signatureValue}</${a}SignatureValue>`,d=`<${a}Signature ${b}="http://www.w3.org/2000/09/xmldsig#">${c}</${a}Signature>`;return new e.DOMParser().parseFromString(d).documentElement.firstChild}getSignatureXml(){return this.signatureXml}getOriginalXmlWithIds(){return this.originalXmlWithIds}getSignedXml(){return this.signedXml}}b.SignedXml=n,n.defaultNsForPrefix={ds:"http://www.w3.org/2000/09/xmldsig#"},n.noop=()=>null},4505:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,e){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing DTD element name. "+this.debugInfo());e||(e="(#PCDATA)"),Array.isArray(e)&&(e="("+e.join(",")+")"),this.name=this.stringify.name(d),this.type=b.ElementDeclaration,this.value=this.stringify.dtdElementValue(e)}return e(c,a),c.prototype.toString=function(a){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},4700:function(a){(function(){var b,c,d,e=[].slice,f={}.hasOwnProperty;c=function(a){return!!a&&"[object Function]"===Object.prototype.toString.call(a)},d=function(a){var b;return!!a&&("function"==(b=typeof a)||"object"===b)},b=function(a){return c(Array.isArray)?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)},a.exports.assign=function(){var a,b,d,g,h,i;if(i=arguments[0],h=2<=arguments.length?e.call(arguments,1):[],c(Object.assign))Object.assign.apply(null,arguments);else for(a=0,d=h.length;a<d;a++)if(null!=(g=h[a]))for(b in g)f.call(g,b)&&(i[b]=g[b]);return i},a.exports.isFunction=c,a.exports.isObject=d,a.exports.isArray=b,a.exports.isEmpty=function(a){var c;if(b(a))return!a.length;for(c in a)if(f.call(a,c))return!1;return!0},a.exports.isPlainObject=function(a){var b,c;return d(a)&&(c=Object.getPrototypeOf(a))&&(b=c.constructor)&&"function"==typeof b&&b instanceof b&&Function.prototype.toString.call(b)===Function.prototype.toString.call(Object)},a.exports.getValue=function(a){return c(a.valueOf)?a.valueOf():a}}).call(this)},4776:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.C14nCanonicalizationWithComments=b.C14nCanonicalization=void 0;let d=c(61894),e=c(62119);class f{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(a,b){if(!a.namespaceURI&&b.namespaceURI)return -1;if(!b.namespaceURI&&a.namespaceURI)return 1;let c=a.namespaceURI+a.localName,d=b.namespaceURI+b.localName;return c===d?0:c<d?-1:1}nsCompare(a,b){let c=a.prefix,d=b.prefix;return c===d?0:c.localeCompare(d)}renderAttrs(a){let b,c,f=[];if(e.isCommentNode(a))return this.renderComment(a);if(a.attributes)for(b=0;b<a.attributes.length;++b)0!==(c=a.attributes[b]).name.indexOf("xmlns")&&f.push(c);return f.sort(this.attrCompare),f.map(a=>` ${a.name}="${d.encodeSpecialCharactersInAttribute(a.value)}"`).join("")}renderNs(a,b,c,e,f){let g,h,i=[],j=c,k=[],l=a.namespaceURI||"";if(a.prefix?-1===b.indexOf(a.prefix)&&(k.push({prefix:a.prefix,namespaceURI:a.namespaceURI||e[a.prefix]}),b.push(a.prefix)):c!==l&&i.push(' xmlns="',j=a.namespaceURI||"",'"'),a.attributes)for(g=0;g<a.attributes.length;++g)"xmlns"===(h=a.attributes[g]).prefix&&-1===b.indexOf(h.localName)&&(k.push({prefix:h.localName,namespaceURI:h.value}),b.push(h.localName)),h.prefix&&-1===b.indexOf(h.prefix)&&"xmlns"!==h.prefix&&"xml"!==h.prefix&&(k.push({prefix:h.prefix,namespaceURI:h.namespaceURI}),b.push(h.prefix));if(d.isArrayHasLength(f))for(let a of f){let b=!1;for(let c of k)c.prefix===a.prefix&&c.namespaceURI===a.namespaceURI&&(b=!0);b||k.push(a)}return k.sort(this.nsCompare),i.push(...k.map(a=>a.prefix?` xmlns:${a.prefix}="${a.namespaceURI}"`:` xmlns="${a.namespaceURI}"`)),{rendered:i.join(""),newDefaultNs:j}}processInner(a,b,c,f,g){if(e.isCommentNode(a))return this.renderComment(a);if(a.data)return d.encodeSpecialCharactersInText(a.data);if(e.isElementNode(a)){let d,e,h=this.renderNs(a,b,c,f,g),i=["<",a.tagName,h.rendered,this.renderAttrs(a),">"];for(d=0;d<a.childNodes.length;++d)e=b.slice(0),i.push(this.processInner(a.childNodes[d],e,h.newDefaultNs,f,[]));return i.push("</",a.tagName,">"),i.join("")}throw Error(`Unable to canonicalize node type: ${a.nodeType}`)}renderComment(a){if(!this.includeComments)return"";let b=a.ownerDocument===a.parentNode,c=!1,e=!1;if(b){let b=a,d=a;for(;null!==b;){if(b===a.ownerDocument.documentElement){c=!0;break}b=b.nextSibling}for(;null!==d;){if(d===a.ownerDocument.documentElement){e=!0;break}d=d.previousSibling}}let f=e?"\n":"",g=c?"\n":"",h=d.encodeSpecialCharactersInText(a.data);return`${f}<!--${h}-->${g}`}process(a,b){let c=(b=b||{}).defaultNs||"",d=b.defaultNsForPrefix||{},e=b.ancestorNamespaces||[],f=[];for(let a=0;a<e.length;a++)f.push(e[a].prefix);return this.processInner(a,f,c,d,e)}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"}}b.C14nCanonicalization=f;class g extends f{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"}}b.C14nCanonicalizationWithComments=g},5032:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=(function(){class a extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=b.Text,this.value=this.stringify.text(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.text(this,this.options.writer.filterOptions(a))}splitText(a){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(a){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(a.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"wholeText",{get:function(){var a,b,c;for(c="",b=this.previousSibling;b;)c=b.data+c,b=b.previousSibling;for(c+=this.data,a=this.nextSibling;a;)c+=a.data,a=a.nextSibling;return c}}),a}).call(this)}).call(this)},7216:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l;j=(l=c(4700)).assign,k=l.isFunction,e=c(35971),f=c(95280),g=c(98193),i=c(13859),h=c(92030),b=c(24706),d=c(24399),a.exports.create=function(a,b,c,d){var e,g;if(null==a)throw Error("Root element needs a name.");return g=(e=new f(d=j({},b,c,d))).element(a),d.headless||(e.declaration(d),(null!=d.pubID||null!=d.sysID)&&e.dtd(d)),g},a.exports.begin=function(a,b,c){var d;return(k(a)&&(b=(d=[a,b])[0],c=d[1],a={}),b)?new g(a,b,c):new f(a)},a.exports.stringWriter=function(a){return new i(a)},a.exports.streamWriter=function(a,b){return new h(a,b)},a.exports.implementation=new e,a.exports.nodeType=b,a.exports.writerState=d}).call(this)},7832:function(a){(function(){a.exports=function(){function a(a){this.nodes=a}return Object.defineProperty(a.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),a.prototype.clone=function(){return this.nodes=null},a.prototype.getNamedItem=function(a){return this.nodes[a]},a.prototype.setNamedItem=function(a){var b;return b=this.nodes[a.nodeName],this.nodes[a.nodeName]=a,b||null},a.prototype.removeNamedItem=function(a){var b;return b=this.nodes[a],delete this.nodes[a],b||null},a.prototype.item=function(a){return this.nodes[Object.keys(this.nodes)[a]]||null},a.prototype.getNamedItemNS=function(a,b){throw Error("This DOM method is not implemented.")},a.prototype.setNamedItemNS=function(a){throw Error("This DOM method is not implemented.")},a.prototype.removeNamedItemNS=function(a,b){throw Error("This DOM method is not implemented.")},a}()}).call(this)},8676:function(a){(function(){a.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},8859:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(d)}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))},c}(c(8957))}).call(this)},8957:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t={}.hasOwnProperty;r=(s=c(4700)).isObject,q=s.isFunction,p=s.isEmpty,o=s.getValue,j=null,e=null,f=null,g=null,h=null,m=null,n=null,l=null,i=null,d=null,k=null,b=null,a.exports=function(){function a(a){this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,j||(j=c(43849),e=c(36700),f=c(65904),g=c(84689),h=c(99379),m=c(8859),n=c(86690),l=c(58892),i=c(31777),d=c(24706),k=c(18521),c(7832),b=c(8676))}return Object.defineProperty(a.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(a.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new k(this.children)),this.childNodeList}}),Object.defineProperty(a.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(a.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(a.prototype,"previousSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a-1]||null}}),Object.defineProperty(a.prototype,"nextSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a+1]||null}}),Object.defineProperty(a.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(a.prototype,"textContent",{get:function(){var a,b,c,e,f;if(this.nodeType!==d.Element&&this.nodeType!==d.DocumentFragment)return null;for(b=0,f="",c=(e=this.children).length;b<c;b++)(a=e[b]).textContent&&(f+=a.textContent);return f},set:function(a){throw Error("This DOM method is not implemented."+this.debugInfo())}}),a.prototype.setParent=function(a){var b,c,d,e,f;for(this.parent=a,a&&(this.options=a.options,this.stringify=a.stringify),e=this.children,f=[],c=0,d=e.length;c<d;c++)b=e[c],f.push(b.setParent(this));return f},a.prototype.element=function(a,b,c){var d,e,f,g,h,i,j,k,l,m,n;if(i=null,null===b&&null==c&&(b=(l=[{},null])[0],c=l[1]),null==b&&(b={}),r(b=o(b))||(c=(m=[b,c])[0],b=m[1]),null!=a&&(a=o(a)),Array.isArray(a))for(f=0,j=a.length;f<j;f++)e=a[f],i=this.element(e);else if(q(a))i=this.element(a.apply());else if(r(a)){for(h in a)if(t.call(a,h))if(q(n=a[h])&&(n=n.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===h.indexOf(this.stringify.convertAttKey))i=this.attribute(h.substr(this.stringify.convertAttKey.length),n);else if(!this.options.separateArrayItems&&Array.isArray(n)&&p(n))i=this.dummy();else if(r(n)&&p(n))i=this.element(h);else if(this.options.keepNullNodes||null!=n)if(!this.options.separateArrayItems&&Array.isArray(n))for(g=0,k=n.length;g<k;g++)e=n[g],(d={})[h]=e,i=this.element(d);else r(n)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===h.indexOf(this.stringify.convertTextKey)?i=this.element(n):(i=this.element(h)).element(n):i=this.element(h,n);else i=this.dummy()}else i=this.options.keepNullNodes||null!==c?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?this.text(c):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===a.indexOf(this.stringify.convertCDataKey)?this.cdata(c):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===a.indexOf(this.stringify.convertCommentKey)?this.comment(c):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===a.indexOf(this.stringify.convertRawKey)?this.raw(c):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===a.indexOf(this.stringify.convertPIKey)?this.instruction(a.substr(this.stringify.convertPIKey.length),c):this.node(a,b,c):this.dummy();if(null==i)throw Error("Could not create any elements with: "+a+". "+this.debugInfo());return i},a.prototype.insertBefore=function(a,b,c){var d,e,f;if(null!=a?a.type:void 0)return a.setParent(this),b?(e=children.indexOf(b),f=children.splice(e),children.push(a),Array.prototype.push.apply(children,f)):children.push(a),a;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.insertAfter=function(a,b,c){var d,e,f;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e+1),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.remove=function(){var a;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return a=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[a,a-a+1].concat([])),this.parent},a.prototype.node=function(a,b,c){var d,e;return null!=a&&(a=o(a)),b||(b={}),r(b=o(b))||(c=(e=[b,c])[0],b=e[1]),d=new j(this,a,b),null!=c&&d.text(c),this.children.push(d),d},a.prototype.text=function(a){var b;return r(a)&&this.element(a),b=new n(this,a),this.children.push(b),this},a.prototype.cdata=function(a){var b;return b=new e(this,a),this.children.push(b),this},a.prototype.comment=function(a){var b;return b=new f(this,a),this.children.push(b),this},a.prototype.commentBefore=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.commentAfter=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b+1),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.raw=function(a){var b;return b=new m(this,a),this.children.push(b),this},a.prototype.dummy=function(){return new i(this)},a.prototype.instruction=function(a,b){var c,d,e,f,g;if(null!=a&&(a=o(a)),null!=b&&(b=o(b)),Array.isArray(a))for(f=0,g=a.length;f<g;f++)c=a[f],this.instruction(c);else if(r(a))for(c in a)t.call(a,c)&&(d=a[c],this.instruction(c,d));else q(b)&&(b=b.apply()),e=new l(this,a,b),this.children.push(e);return this},a.prototype.instructionBefore=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.instructionAfter=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c+1),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.declaration=function(a,b,c){var e,f;return e=this.document(),f=new g(e,a,b,c),0===e.children.length?e.children.unshift(f):e.children[0].type===d.Declaration?e.children[0]=f:e.children.unshift(f),e.root()||e},a.prototype.dtd=function(a,b){var c,e,f,g,i,j,k,l,m;for(c=this.document(),e=new h(c,a,b),l=c.children,f=g=0,j=l.length;g<j;f=++g)if(l[f].type===d.DocType)return c.children[f]=e,e;for(m=c.children,f=i=0,k=m.length;i<k;f=++i)if(m[f].isRoot)return c.children.splice(f,0,e),e;return c.children.push(e),e},a.prototype.up=function(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},a.prototype.root=function(){var a;for(a=this;a;)if(a.type===d.Document)return a.rootObject;else{if(a.isRoot)return a;a=a.parent}},a.prototype.document=function(){var a;for(a=this;a;)if(a.type===d.Document)return a;else a=a.parent},a.prototype.end=function(a){return this.document().end(a)},a.prototype.prev=function(){var a;if((a=this.parent.children.indexOf(this))<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[a-1]},a.prototype.next=function(){var a;if(-1===(a=this.parent.children.indexOf(this))||a===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[a+1]},a.prototype.importDocument=function(a){var b;return(b=a.root().clone()).parent=this,b.isRoot=!1,this.children.push(b),this},a.prototype.debugInfo=function(a){var b,c;return null!=(a=a||this.name)||(null!=(b=this.parent)?b.name:void 0)?null==a?"parent: <"+this.parent.name+">":(null!=(c=this.parent)?c.name:void 0)?"node: <"+a+">, parent: <"+this.parent.name+">":"node: <"+a+">":""},a.prototype.ele=function(a,b,c){return this.element(a,b,c)},a.prototype.nod=function(a,b,c){return this.node(a,b,c)},a.prototype.txt=function(a){return this.text(a)},a.prototype.dat=function(a){return this.cdata(a)},a.prototype.com=function(a){return this.comment(a)},a.prototype.ins=function(a,b){return this.instruction(a,b)},a.prototype.doc=function(){return this.document()},a.prototype.dec=function(a,b,c){return this.declaration(a,b,c)},a.prototype.e=function(a,b,c){return this.element(a,b,c)},a.prototype.n=function(a,b,c){return this.node(a,b,c)},a.prototype.t=function(a){return this.text(a)},a.prototype.d=function(a){return this.cdata(a)},a.prototype.c=function(a){return this.comment(a)},a.prototype.r=function(a){return this.raw(a)},a.prototype.i=function(a,b){return this.instruction(a,b)},a.prototype.u=function(){return this.up()},a.prototype.importXMLBuilder=function(a){return this.importDocument(a)},a.prototype.replaceChild=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeChild=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.appendChild=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.hasChildNodes=function(){return 0!==this.children.length},a.prototype.cloneNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.normalize=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isSupported=function(a,b){return!0},a.prototype.hasAttributes=function(){return 0!==this.attribs.length},a.prototype.compareDocumentPosition=function(a){var c;if(this===a)return 0;if(this.document()!==a.document())return c=b.Disconnected|b.ImplementationSpecific,.5>Math.random()?c|=b.Preceding:c|=b.Following,c;if(this.isAncestor(a))return b.Contains|b.Preceding;if(this.isDescendant(a))return b.Contains|b.Following;if(this.isPreceding(a))return b.Preceding;else return b.Following},a.prototype.isSameNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.lookupPrefix=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isDefaultNamespace=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.lookupNamespaceURI=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(a){var b,c,d;if(a.nodeType!==this.nodeType||a.children.length!==this.children.length)return!1;for(b=c=0,d=this.children.length-1;0<=d?c<=d:c>=d;b=0<=d?++c:--c)if(!this.children[b].isEqualNode(a.children[b]))return!1;return!0},a.prototype.getFeature=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setUserData=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getUserData=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.contains=function(a){return!!a&&(a===this||this.isDescendant(a))},a.prototype.isDescendant=function(a){var b,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if(a===(b=e[c])||b.isDescendant(a))return!0;return!1},a.prototype.isAncestor=function(a){return a.isDescendant(this)},a.prototype.isPreceding=function(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b<c},a.prototype.isFollowing=function(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b>c},a.prototype.treePosition=function(a){var b,c;return(c=0,b=!1,this.foreachTreeNode(this.document(),function(d){if(c++,!b&&d===a)return b=!0}),b)?c:-1},a.prototype.foreachTreeNode=function(a,b){var c,d,e,f,g;for(a||(a=this.document()),d=0,e=(f=a.children).length;d<e;d++)if((g=b(c=f[d]))||(g=this.foreachTreeNode(c,b)))return g},a}()}).call(this)},9315:(a,b,c)=>{a.exports=function(a){function b(a){let c,e,f,g=null;function h(...a){if(!h.enabled)return;let d=Number(new Date);h.diff=d-(c||d),h.prev=c,h.curr=d,c=d,a[0]=b.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");let e=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(c,d)=>{if("%%"===c)return"%";e++;let f=b.formatters[d];if("function"==typeof f){let b=a[e];c=f.call(h,b),a.splice(e,1),e--}return c}),b.formatArgs.call(h,a),(h.log||b.log).apply(h,a)}return h.namespace=a,h.useColors=b.useColors(),h.color=b.selectColor(a),h.extend=d,h.destroy=b.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==g?g:(e!==b.namespaces&&(e=b.namespaces,f=b.enabled(a)),f),set:a=>{g=a}}),"function"==typeof b.init&&b.init(h),h}function d(a,c){let d=b(this.namespace+(void 0===c?":":c)+a);return d.log=this.log,d}function e(a,b){let c=0,d=0,e=-1,f=0;for(;c<a.length;)if(d<b.length&&(b[d]===a[c]||"*"===b[d]))"*"===b[d]?(e=d,f=c):c++,d++;else{if(-1===e)return!1;d=e+1,c=++f}for(;d<b.length&&"*"===b[d];)d++;return d===b.length}return b.debug=b,b.default=b,b.coerce=function(a){return a instanceof Error?a.stack||a.message:a},b.disable=function(){let a=[...b.names,...b.skips.map(a=>"-"+a)].join(",");return b.enable(""),a},b.enable=function(a){for(let c of(b.save(a),b.namespaces=a,b.names=[],b.skips=[],("string"==typeof a?a:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===c[0]?b.skips.push(c.slice(1)):b.names.push(c)},b.enabled=function(a){for(let c of b.skips)if(e(a,c))return!1;for(let c of b.names)if(e(a,c))return!0;return!1},b.humanize=c(20890),b.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(a).forEach(c=>{b[c]=a[c]}),b.names=[],b.skips=[],b.formatters={},b.selectColor=function(a){let c=0;for(let b=0;b<a.length;b++)c=(c<<5)-c+a.charCodeAt(b)|0;return b.colors[Math.abs(c)%b.colors.length]},b.enable(b.load()),b}},12430:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=class extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))}}}).call(this)},12570:function(a,b,c){(function(){var b,d,e,f=function(a,b){for(var c in b)g.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},g={}.hasOwnProperty;e=c(4700).isObject,d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,f,g){if(c.__super__.constructor.call(this,a),null==f)throw Error("Missing DTD entity name. "+this.debugInfo(f));if(null==g)throw Error("Missing DTD entity value. "+this.debugInfo(f));if(this.pe=!!d,this.name=this.stringify.name(f),this.type=b.EntityDeclaration,e(g)){if(!g.pubID&&!g.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(f));if(g.pubID&&!g.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(f));if(this.internal=!1,null!=g.pubID&&(this.pubID=this.stringify.dtdPubID(g.pubID)),null!=g.sysID&&(this.sysID=this.stringify.dtdSysID(g.sysID)),null!=g.nData&&(this.nData=this.stringify.dtdNData(g.nData)),this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(f))}else this.value=this.stringify.dtdEntityValue(g),this.internal=!0}return f(c,a),Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(c.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return null}}),c.prototype.toString=function(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},12749:(a,b,c)=>{var d=c(81349);b.DOMImplementation=d.DOMImplementation,b.XMLSerializer=d.XMLSerializer,b.DOMParser=c(62669).DOMParser},13630:(a,b,c)=>{"use strict";var d=c(23849).freeze;b.XML_ENTITIES=d({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),b.HTML_ENTITIES=d({Aacute:"\xc1",aacute:"\xe1",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"А",acy:"а",AElig:"\xc6",aelig:"\xe6",af:"⁡",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xc0",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"\xc5",aring:"\xe5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"\xa6",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"⦲",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"\xae",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"\xa9",copy:"\xa9",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"\xb0",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xa8",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"\xc9",eacute:"\xe9",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"\xca",ecirc:"\xea",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"\xc8",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"\xbd",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"\xcd",iacute:"\xed",ic:"⁣",Icirc:"\xce",icirc:"\xee",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"\xa1",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"\xcc",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"\xbf",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"\xcf",iuml:"\xef",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"\xab",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:"\xa0",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"\xac",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"\xd3",oacute:"\xf3",oast:"⊛",ocir:"⊚",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"\xd2",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"\xd8",oslash:"\xf8",osol:"⊘",Otilde:"\xd5",otilde:"\xf5",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"\xd6",ouml:"\xf6",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"\xa3",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"\xae",reg:"\xae",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"\xad",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"\xde",thorn:"\xfe",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"\xda",uacute:"\xfa",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"\xa8",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"\xdc",uuml:"\xfc",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"\xdd",yacute:"\xfd",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"\xa5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"\xff",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"}),b.entityMap=b.HTML_ENTITIES},13859:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a){c.__super__.constructor.call(this,a)}return b(c,a),c.prototype.document=function(a,b){var c,d,e,f,g;for(b=this.filterOptions(b),f="",d=0,e=(g=a.children).length;d<e;d++)c=g[d],f+=this.writeChildNode(c,b,0);return b.pretty&&f.slice(-b.newline.length)===b.newline&&(f=f.slice(0,-b.newline.length)),f},c}(c(97871))}).call(this)},15081:(a,b,c)=>{"use strict";b.Qb=void 0;let d=c(47564);Object.defineProperty(b,"Qb",{enumerable:!0,get:function(){return d.SAML}}),c(45540),c(35312)},15890:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=class extends d{constructor(a,c,d){if(super(a),null==c)throw Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(c),this.name=this.target,d&&(this.value=this.stringify.insValue(d))}clone(){return Object.create(this)}toString(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))}isEqualNode(a){return!!super.isEqualNode(a)&&a.target===this.target}}}).call(this)},15894:(a,b,c)=>{c(33873),c(29021);var d={"encrypted-key":c(59548),keyinfo:c(67925)};a.exports={renderTemplate:function(a,b){return d[a](b)},pemToCert:function(a){var b=/-----BEGIN CERTIFICATE-----([^-]*)-----END CERTIFICATE-----/g.exec(a);return b.length>0?b[1].replace(/[\n|\r\n]/g,""):null},warnInsecureAlgorithm:function(a,b=!0){b&&console.warn(a+" is no longer recommended due to security reasons. Please deprecate its use as soon as possible.")}}},17395:function(a,b,c){(function(){var b,d;b=c(88435),d=c(46584),a.exports=function(){function a(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new b,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(a.prototype,"parameterNames",{get:function(){return new d(Object.keys(this.defaultParams))}}),a.prototype.getParameter=function(a){return this.params.hasOwnProperty(a)?this.params[a]:null},a.prototype.canSetParameter=function(a,b){return!0},a.prototype.setParameter=function(a,b){return null!=b?this.params[a]=b:delete this.params[a]},a}()}).call(this)},18462:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.ExclusiveCanonicalizationWithComments=b.ExclusiveCanonicalization=void 0;let d=c(61894),e=c(62119);function f(a,b,c){let d=!1;return a.forEach(function(a){a.prefix===b&&a.namespaceURI===c&&(d=!0)}),d}class g{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(a,b){if(!a.namespaceURI&&b.namespaceURI)return -1;if(!b.namespaceURI&&a.namespaceURI)return 1;let c=a.namespaceURI+a.localName,d=b.namespaceURI+b.localName;return c===d?0:c<d?-1:1}nsCompare(a,b){let c=a.prefix,d=b.prefix;return c===d?0:c.localeCompare(d)}renderAttrs(a){let b,c,f=[],g=[];if(e.isCommentNode(a))return this.renderComment(a);if(a.attributes)for(b=0;b<a.attributes.length;++b)0!==(c=a.attributes[b]).name.indexOf("xmlns")&&g.push(c);for(c of(g.sort(this.attrCompare),g))f.push(" ",c.name,'="',d.encodeSpecialCharactersInAttribute(c.value),'"');return f.join("")}renderNs(a,b,c,d,e){let g,h,i=[],j=c,k=[],l=a.namespaceURI||"";if(a.prefix?f(b,a.prefix,a.namespaceURI||d[a.prefix])||(k.push({prefix:a.prefix,namespaceURI:a.namespaceURI||d[a.prefix]}),b.push({prefix:a.prefix,namespaceURI:a.namespaceURI||d[a.prefix]})):c!==l&&(j=a.namespaceURI,i.push(' xmlns="',j,'"')),a.attributes)for(g=0;g<a.attributes.length;++g)(h=a.attributes[g]).prefix&&!f(b,h.localName,h.value)&&e.indexOf(h.localName)>=0&&(k.push({prefix:h.localName,namespaceURI:h.value}),b.push({prefix:h.localName,namespaceURI:h.value})),h.prefix&&!f(b,h.prefix,h.namespaceURI)&&"xmlns"!==h.prefix&&"xml"!==h.prefix&&(k.push({prefix:h.prefix,namespaceURI:h.namespaceURI}),b.push({prefix:h.prefix,namespaceURI:h.namespaceURI}));for(let a of(k.sort(this.nsCompare),k))i.push(" xmlns:",a.prefix,'="',a.namespaceURI,'"');return{rendered:i.join(""),newDefaultNs:j}}processInner(a,b,c,f,g){if(e.isCommentNode(a))return this.renderComment(a);if(a.data)return d.encodeSpecialCharactersInText(a.data);if(e.isElementNode(a)){let d,e,h=this.renderNs(a,b,c,f,g),i=["<",a.tagName,h.rendered,this.renderAttrs(a),">"];for(d=0;d<a.childNodes.length;++d)e=b.slice(0),i.push(this.processInner(a.childNodes[d],e,h.newDefaultNs,f,g));return i.push("</",a.tagName,">"),i.join("")}throw Error(`Unable to exclusive canonicalize node type: ${a.nodeType}`)}renderComment(a){if(!this.includeComments)return"";let b=a.ownerDocument===a.parentNode,c=!1,e=!1;if(b){let b=a,d=a;for(;null!=b;){if(b===a.ownerDocument.documentElement){c=!0;break}b=b.nextSibling}for(;null!=d;){if(d===a.ownerDocument.documentElement){e=!0;break}d=d.previousSibling}}let f=e?"\n":"",g=c?"\n":"",h=d.encodeSpecialCharactersInText(a.data);return`${f}<!--${h}-->${g}`}process(a,b){let c=(b=b||{}).inclusiveNamespacesPrefixList||[],e=b.defaultNs||"",f=b.defaultNsForPrefix||{},g=b.ancestorNamespaces||[];if(!d.isArrayHasLength(c)){let b=d.findChildren(a,"CanonicalizationMethod");if(0!==b.length){let a=d.findChildren(b[0],"InclusiveNamespaces");0!==a.length&&(c=(a[0].getAttribute("PrefixList")||"").split(" "))}}return d.isArrayHasLength(c)&&c.forEach(function(b){g&&g.forEach(function(c){b===c.prefix&&a.setAttributeNS("http://www.w3.org/2000/xmlns/",`xmlns:${b}`,c.namespaceURI)})}),this.processInner(a,[],e,f,c)}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#"}}b.ExclusiveCanonicalization=g;class h extends g{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#WithComments"}}b.ExclusiveCanonicalizationWithComments=h},18521:function(a){(function(){a.exports=function(){function a(a){this.nodes=a}return Object.defineProperty(a.prototype,"length",{get:function(){return this.nodes.length||0}}),a.prototype.clone=function(){return this.nodes=null},a.prototype.item=function(a){return this.nodes[a]||null},a}()}).call(this)},19691:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.dateStringToTimestamp=b.generateInstant=void 0,b.generateInstant=()=>new Date().toISOString(),b.dateStringToTimestamp=(a,b)=>{let c=Date.parse(a);if(isNaN(c))throw Error(`Error parsing ${b}: '${a}' is not a valid date`);return c}},20890:a=>{function b(a,b,c,d){return Math.round(a/c)+" "+d+(b>=1.5*c?"s":"")}a.exports=function(a,c){c=c||{};var d,e,f,g,h=typeof a;if("string"===h&&a.length>0){var i=a;if(!((i=String(i)).length>100)){var j=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(j){var k=parseFloat(j[1]);switch((j[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*k;case"weeks":case"week":case"w":return 6048e5*k;case"days":case"day":case"d":return 864e5*k;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*k;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*k;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*k;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return k;default:break}}}return}if("number"===h&&isFinite(a)){return c.long?(e=Math.abs(d=a))>=864e5?b(d,e,864e5,"day"):e>=36e5?b(d,e,36e5,"hour"):e>=6e4?b(d,e,6e4,"minute"):e>=1e3?b(d,e,1e3,"second"):d+" ms":(g=Math.abs(f=a))>=864e5?Math.round(f/864e5)+"d":g>=36e5?Math.round(f/36e5)+"h":g>=6e4?Math.round(f/6e4)+"m":g>=1e3?Math.round(f/1e3)+"s":f+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))}},21584:(a,b,c)=>{let d;b.formatArgs=function(b){if(b[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+b[0]+(this.useColors?"%c ":" ")+"+"+a.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;b.splice(1,0,c,"color: inherit");let d=0,e=0;b[0].replace(/%[a-zA-Z%]/g,a=>{"%%"!==a&&(d++,"%c"===a&&(e=d))}),b.splice(e,0,c)},b.save=function(a){try{a?b.storage.setItem("debug",a):b.storage.removeItem("debug")}catch(a){}},b.load=function(){let a;try{a=b.storage.getItem("debug")||b.storage.getItem("DEBUG")}catch(a){}return!a&&"u">typeof process&&"env"in process&&(a=process.env.DEBUG),a},b.useColors=function(){let a;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},b.storage=function(){try{return localStorage}catch(a){}}(),d=!1,b.destroy=()=>{d||(d=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},b.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],b.log=console.debug||console.log||(()=>{}),a.exports=c(9315)(b);let{formatters:e}=a.exports;e.j=function(a){try{return JSON.stringify(a)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}},22859:function(a,b,c){"use strict";var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__exportStar||function(a,b){for(var c in a)"default"===c||Object.prototype.hasOwnProperty.call(b,c)||d(b,a,c)};Object.defineProperty(b,"__esModule",{value:!0}),b.SignedXml=b.ExclusiveCanonicalizationWithComments=b.ExclusiveCanonicalization=b.C14nCanonicalizationWithComments=b.C14nCanonicalization=void 0;var f=c(4776);Object.defineProperty(b,"C14nCanonicalization",{enumerable:!0,get:function(){return f.C14nCanonicalization}}),Object.defineProperty(b,"C14nCanonicalizationWithComments",{enumerable:!0,get:function(){return f.C14nCanonicalizationWithComments}});var g=c(18462);Object.defineProperty(b,"ExclusiveCanonicalization",{enumerable:!0,get:function(){return g.ExclusiveCanonicalization}}),Object.defineProperty(b,"ExclusiveCanonicalizationWithComments",{enumerable:!0,get:function(){return g.ExclusiveCanonicalizationWithComments}});var h=c(4107);Object.defineProperty(b,"SignedXml",{enumerable:!0,get:function(){return h.SignedXml}}),e(c(75546),b),e(c(61894),b)},23849:(a,b)=>{"use strict";function c(a,b){return void 0===b&&(b=Object),b&&"function"==typeof b.freeze?b.freeze(a):a}var d=c({HTML:"text/html",isHTML:function(a){return a===d.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),e=c({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(a){return a===e.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),f=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=RegExp("[\\-\\.0-9"+f.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),h=RegExp("^"+f.source+g.source+"*(?::"+f.source+g.source+"*)?$");b.assign=function(a,b){if(null===a||"object"!=typeof a)throw TypeError("target is not an object");for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);return a},b.find=function(a,b,c){if(void 0===c&&(c=Array.prototype),a&&"function"==typeof c.find)return c.find.call(a,b);for(var d=0;d<a.length;d++)if(Object.prototype.hasOwnProperty.call(a,d)){var e=a[d];if(b.call(void 0,e,d,a))return e}},b.freeze=c,b.MIME_TYPE=d,b.NAMESPACE=e,b.nameStartChar=f,b.nameChar=g,b.tagNamePattern=h},24399:function(a){(function(){a.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},24706:function(a){(function(){a.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},24938:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k;({assign:j,isFunction:k}=c(43594)),e=c(88909),f=c(50962),g=c(78611),i=c(44981),h=c(72616),b=c(26468),d=c(29394),a.exports.create=function(a,b,c,d){var e,g;if(null==a)throw Error("Root element needs a name.");return g=(e=new f(d=j({},b,c,d))).element(a),d.headless||(e.declaration(d),(null!=d.pubID||null!=d.sysID)&&e.dtd(d)),g},a.exports.begin=function(a,b,c){return(k(a)&&([b,c]=[a,b],a={}),b)?new g(a,b,c):new f(a)},a.exports.stringWriter=function(a){return new i(a)},a.exports.streamWriter=function(a,b){return new h(a,b)},a.exports.implementation=new e,a.exports.nodeType=b,a.exports.writerState=d}).call(this)},25141:function(a,b,c){(function(){var b,d;b=c(241),d=c(34370),a.exports=(function(){class a{constructor(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new b,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}getParameter(a){return this.params.hasOwnProperty(a)?this.params[a]:null}canSetParameter(a,b){return!0}setParameter(a,b){return null!=b?this.params[a]=b:delete this.params[a]}}return Object.defineProperty(a.prototype,"parameterNames",{get:function(){return new d(Object.keys(this.defaultParams))}}),a}).call(this)}).call(this)},26468:function(a){(function(){a.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},26884:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.stripPemHeaderAndFooter=b.generateUniqueId=b.keyInfoToPem=void 0;let d=c(55511),e=c(36481),f=/^(-----BEGIN [A-Z\x20]{1,48}-----(\r\n|\r|\n){1}.*(\r\n|\r|\n){1}-----END [A-Z\x20]{1,48}-----(\r\n|\r|\n){0,1})$/s,g=/^(?:[A-Za-z0-9\+\/]{4}\n{0,1})*(?:[A-Za-z0-9\+\/]{2}==|[A-Za-z0-9\+\/]{3}=)?$/s,h=a=>{var b;return`${(null!=(b=a.trim().replace(/(\r\n|\r)/g,"\n").match(/.{1,64}/g))?b:[]).join("\n")}
2
2
  `};b.keyInfoToPem=(a,b,c="keyInfo")=>{let d=Buffer.isBuffer(a)?a.toString("latin1"):a;if((0,e.assertRequired)(d,`${c} is not provided`),f.test(d))return h(d);let i=g.test(d);return(0,e.assertRequired)(i||void 0,`${c} is not in PEM format or in base64 format`),h(`-----BEGIN ${b}-----
3
3
  ${a}
4
- -----END ${b}-----`)},b.generateUniqueId=()=>"_"+d.randomBytes(20).toString("hex"),b.stripPemHeaderAndFooter=a=>a.replace(/(\r\n|\r)/g,"\n").replace(/-----BEGIN [A-Z\x20]{1,48}-----\n?/,"").replace(/-----END [A-Z\x20]{1,48}-----\n?/,"")},29394:function(a){(function(){a.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},30072:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.DEFAULT_WANT_ASSERTIONS_SIGNED=b.DEFAULT_IDENTIFIER_FORMAT=void 0,b.DEFAULT_IDENTIFIER_FORMAT="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress",b.DEFAULT_WANT_ASSERTIONS_SIGNED=!0},31673:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.InMemoryCacheProvider=void 0;class c{constructor(a){var b;this.lastPrune=0,this.cacheKeys={},this.options={...a,keyExpirationPeriodMs:null!=(b=a.keyExpirationPeriodMs)?b:288e5},this.prune=()=>{let a=new Date().getTime();if(a>this.lastPrune+this.options.keyExpirationPeriodMs){let b=Object.keys(this.cacheKeys),c=[];b.forEach(b=>{a>=this.cacheKeys[b].createdAt+this.options.keyExpirationPeriodMs&&c.push(b)}),c.forEach(a=>this.removeAsync(a)),this.lastPrune=a}},this.removeKeyIfExpired=async(a,b)=>{this.cacheKeys[a]&&b>=this.cacheKeys[a].createdAt+this.options.keyExpirationPeriodMs&&await this.removeAsync(a)}}async saveAsync(a,b){this.prune();let c=new Date().getTime();return(await this.removeKeyIfExpired(a,c),this.cacheKeys[a])?null:(this.cacheKeys[a]={createdAt:c,value:b},this.cacheKeys[a])}async getAsync(a){this.prune();let b=new Date().getTime();return(await this.removeKeyIfExpired(a,b),this.cacheKeys[a])?this.cacheKeys[a].value:null}async removeAsync(a){return null!=a&&this.cacheKeys[a]?(delete this.cacheKeys[a],a):null}}b.InMemoryCacheProvider=c},31753:function(a){(function(){var b={}.hasOwnProperty;a.exports=(function(){class a{constructor(a){var c,d,e;for(c in this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),a||(a={}),this.options=a,this.options.version||(this.options.version="1.0"),d=a.stringify||{})b.call(d,c)&&(e=d[c],this[c]=e)}name(a){return this.options.noValidation?a:this.assertLegalName(""+a||"")}text(a){return this.options.noValidation?a:this.assertLegalChar(this.textEscape(""+a||""))}cdata(a){return this.options.noValidation?a:(a=(a=""+a||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(a))}comment(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/--/))throw Error("Comment text cannot contain double-hypen: "+a);return this.assertLegalChar(a)}raw(a){return this.options.noValidation?a:""+a||""}attValue(a){return this.options.noValidation?a:this.assertLegalChar(this.attEscape(a=""+a||""))}insTarget(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}insValue(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/\?>/))throw Error("Invalid processing instruction value: "+a);return this.assertLegalChar(a)}xmlVersion(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/1\.[0-9]+/))throw Error("Invalid version number: "+a);return a}xmlEncoding(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+a);return this.assertLegalChar(a)}xmlStandalone(a){return this.options.noValidation?a:a?"yes":"no"}dtdPubID(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdSysID(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdElementValue(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdAttType(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdAttDefault(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdEntityValue(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdNData(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}assertLegalChar(a){var b,c;if(this.options.noValidation)return a;if("1.0"===this.options.version){if(b=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,void 0!==this.options.invalidCharReplacement)a=a.replace(b,this.options.invalidCharReplacement);else if(c=a.match(b))throw Error(`Invalid character in string: ${a} at index ${c.index}`)}else if("1.1"===this.options.version){if(b=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,void 0!==this.options.invalidCharReplacement)a=a.replace(b,this.options.invalidCharReplacement);else if(c=a.match(b))throw Error(`Invalid character in string: ${a} at index ${c.index}`)}return a}assertLegalName(a){if(this.options.noValidation)return a;if(!(a=this.assertLegalChar(a)).match(/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/))throw Error(`Invalid character in name: ${a}`);return a}textEscape(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,a.replace(b,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))}attEscape(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,a.replace(b,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))}}return a.prototype.convertAttKey="@",a.prototype.convertPIKey="?",a.prototype.convertTextKey="#text",a.prototype.convertCDataKey="#cdata",a.prototype.convertCommentKey="#comment",a.prototype.convertRawKey="#raw",a}).call(this)}).call(this)},31777:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a){c.__super__.constructor.call(this,a),this.type=b.Dummy}return e(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return""},c}(d)}).call(this)},32046:(a,b)=>{!function(a){"use strict";var b,c,d,e,f="__namespace",g=function(a){var b;return a&&((b=a.nodeType)===f||Number.isInteger(b)&&b>=1&&b<=11)&&"string"==typeof a.nodeName},h=function(a,b){for(var c=0;c<b.length;c+=1)a(b[c],c,b)},i=function(a,b,c){var d=b;return h(function(b,c){d=a(d,b,c)},c),d},j=function(a,b){var c=Array(b.length);return h(function(b,d){c[d]=a(b)},b),c},k=function(a,b){var c=[];return h(function(b,d){a(b,d)&&c.push(b)},b),c},l=function(a,b){for(var c=0;c<a.length;c+=1)if(a[c]===b)return!0;return!1};function m(a){return a.toString()}var n=function(a,b){return b.join(a)},o=function(a,b,c){return a+c+b},p=Array.prototype.concat,q=function(a,b){var c=new ab;c.addArray(a);var d=c.toArray();return b?d.reverse():d};function r(a,b){for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(c[f]=e[f])}return c}function s(){this.init()}function t(a){this.expression=a}function u(a,b,c){b in a||(a[b]=c)}function v(){}function w(a){arguments.length>0&&this.init(a)}function x(a){arguments.length>0&&this.init(a)}function y(a,b){arguments.length>0&&this.init(a,b)}function z(a,b){arguments.length>0&&this.init(a,b)}function A(a,b){arguments.length>0&&this.init(a,b)}function B(a,b){arguments.length>0&&this.init(a,b)}function C(a,b){arguments.length>0&&this.init(a,b)}function D(a,b){arguments.length>0&&this.init(a,b)}function E(a,b){arguments.length>0&&this.init(a,b)}function F(a,b){arguments.length>0&&this.init(a,b)}function G(a,b){arguments.length>0&&this.init(a,b)}function H(a,b){arguments.length>0&&this.init(a,b)}function I(a,b){arguments.length>0&&this.init(a,b)}function J(a,b){arguments.length>0&&this.init(a,b)}function K(a,b){arguments.length>0&&this.init(a,b)}function L(a,b){arguments.length>0&&this.init(a,b)}function M(a,b){arguments.length>0&&this.init(a,b)}function N(a,b,c){arguments.length>0&&this.init(a,b,c)}s.prototype={},s.prototype.constructor=s,s.superclass=Object.prototype,s.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(a){return new z(a[0],a[2])},this.reduceActions[5]=function(a){return new A(a[0],a[2])},this.reduceActions[7]=function(a){return new B(a[0],a[2])},this.reduceActions[8]=function(a){return new C(a[0],a[2])},this.reduceActions[10]=function(a){return new D(a[0],a[2])},this.reduceActions[11]=function(a){return new E(a[0],a[2])},this.reduceActions[12]=function(a){return new F(a[0],a[2])},this.reduceActions[13]=function(a){return new G(a[0],a[2])},this.reduceActions[15]=function(a){return new H(a[0],a[2])},this.reduceActions[16]=function(a){return new I(a[0],a[2])},this.reduceActions[18]=function(a){return new J(a[0],a[2])},this.reduceActions[19]=function(a){return new K(a[0],a[2])},this.reduceActions[20]=function(a){return new L(a[0],a[2])},this.reduceActions[22]=function(a){return new x(a[1])},this.reduceActions[24]=function(a){return new M(a[0],a[2])},this.reduceActions[25]=function(a){return new N(void 0,void 0,a[0])},this.reduceActions[27]=function(a){return a[0].locationPath=a[2],a[0]},this.reduceActions[28]=function(a){return a[0].locationPath=a[2],a[0].locationPath.steps.unshift(new T(T.DESCENDANTORSELF,V.nodeTest,[])),a[0]},this.reduceActions[29]=function(a){return new N(a[0],[],void 0)},this.reduceActions[30]=function(a){return ai.instance_of(a[0],N)?(void 0==a[0].filterPredicates&&(a[0].filterPredicates=[]),a[0].filterPredicates.push(a[1]),a[0]):new N(a[0],[a[1]],void 0)},this.reduceActions[32]=function(a){return a[1]},this.reduceActions[33]=function(a){return new Z(a[0])},this.reduceActions[34]=function(a){return new $(a[0])},this.reduceActions[36]=function(a){return new X(a[0],[])},this.reduceActions[37]=function(a){return new X(a[0],a[2])},this.reduceActions[38]=function(a){return[a[0]]},this.reduceActions[39]=function(a){return a[2].unshift(a[0]),a[2]},this.reduceActions[43]=function(a){return new S(!0,[])},this.reduceActions[44]=function(a){return a[1].absolute=!0,a[1]},this.reduceActions[46]=function(a){return new S(!1,[a[0]])},this.reduceActions[47]=function(a){return a[0].steps.push(a[2]),a[0]},this.reduceActions[49]=function(a){return new T(a[0],a[1],[])},this.reduceActions[50]=function(a){return new T(T.CHILD,a[0],[])},this.reduceActions[51]=function(a){return new T(a[0],a[1],a[2])},this.reduceActions[52]=function(a){return new T(T.CHILD,a[0],a[1])},this.reduceActions[54]=function(a){return[a[0]]},this.reduceActions[55]=function(a){return a[1].unshift(a[0]),a[1]},this.reduceActions[56]=function(a){if("ancestor"==a[0])return T.ANCESTOR;if("ancestor-or-self"==a[0])return T.ANCESTORORSELF;if("attribute"==a[0])return T.ATTRIBUTE;if("child"==a[0])return T.CHILD;if("descendant"==a[0])return T.DESCENDANT;else if("descendant-or-self"==a[0])return T.DESCENDANTORSELF;else if("following"==a[0])return T.FOLLOWING;else if("following-sibling"==a[0])return T.FOLLOWINGSIBLING;else if("namespace"==a[0])return T.NAMESPACE;else if("parent"==a[0])return T.PARENT;else if("preceding"==a[0])return T.PRECEDING;else if("preceding-sibling"==a[0])return T.PRECEDINGSIBLING;else if("self"==a[0])return T.SELF;return -1},this.reduceActions[57]=function(a){return T.ATTRIBUTE},this.reduceActions[59]=function(a){return"comment"==a[0]?V.commentTest:"text"==a[0]?V.textTest:"processing-instruction"==a[0]?V.anyPiTest:"node"==a[0]?V.nodeTest:new V(-1,void 0)},this.reduceActions[60]=function(a){return new V.PITest(a[2])},this.reduceActions[61]=function(a){return a[1]},this.reduceActions[63]=function(a){return a[1].absolute=!0,a[1].steps.unshift(new T(T.DESCENDANTORSELF,V.nodeTest,[])),a[1]},this.reduceActions[64]=function(a){return a[0].steps.push(new T(T.DESCENDANTORSELF,V.nodeTest,[])),a[0].steps.push(a[2]),a[0]},this.reduceActions[65]=function(a){return new T(T.SELF,V.nodeTest,[])},this.reduceActions[66]=function(a){return new T(T.PARENT,V.nodeTest,[])},this.reduceActions[67]=function(a){return new W(a[1])},this.reduceActions[68]=function(a){return V.nameTestAny},this.reduceActions[69]=function(a){return new V.NameTestPrefixAny(a[0].split(":")[0])},this.reduceActions[70]=function(a){return new V.NameTestQName(a[0])}},s.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],s.actionTableNumber=[" 1 0 /.-,+*)(' & %$ # \"!"," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY "," 1 0 /.-,+*)(' & %$ # \"!","K1 KKKKKKKK . +*)('KKKKKK KK# K\" "," 1 0 /.-,+*)(' & %$ # \"!"," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q "," 1 . +*)(' # \" ","b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX "," 1 0 /.-,+*)(' & %$m # \"!","_ f________ ______e __ _ "," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 . +*)(' # \" "," 1 . +*)(' # \" ","> >>>>>>>>> >>>>>>> >> >> "," 1 . +*)(' # \" "," 1 . +*)(' # \" ","Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," \x87 ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," \x88 "," F\x89 ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," \x8a ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE "," 1 0 /.-,+*)(' & %$ # \"!","] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],s.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","\x80456789:;<=>?@ AB CDEFGH IJ\x81"," \x82 EFGH IJ "," \x83 EFGH IJ "," "," \x84 GH IJ "," \x85 GH IJ "," i \x86 "," i \x87 "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ AB\x8cqCDEFGH IJ "," "," "],s.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],s.DOUBLEDOT=2,s.DOUBLECOLON=3,s.DOUBLESLASH=4,s.NOTEQUAL=5,s.LESSTHANOREQUAL=6,s.GREATERTHANOREQUAL=7,s.AND=8,s.OR=9,s.MOD=10,s.DIV=11,s.MULTIPLYOPERATOR=12,s.FUNCTIONNAME=13,s.AXISNAME=14,s.LITERAL=15,s.NUMBER=16,s.ASTERISKNAMETEST=17,s.QNAME=18,s.NCNAMECOLONASTERISK=19,s.NODETYPE=20,s.PROCESSINGINSTRUCTIONWITHLITERAL=21,s.EQUALS=22,s.LESSTHAN=23,s.GREATERTHAN=24,s.PLUS=25,s.MINUS=26,s.BAR=27,s.SLASH=28,s.LEFTPARENTHESIS=29,s.RIGHTPARENTHESIS=30,s.COMMA=31,s.AT=32,s.LEFTBRACKET=33,s.RIGHTBRACKET=34,s.DOT=35,s.DOLLAR=36,s.prototype.tokenize=function(a){for(var b=[],c=[],d=a+"\0",e=0,f=d.charAt(e++);;){for(;" "==f||" "==f||"\r"==f||"\n"==f;)f=d.charAt(e++);if("\0"==f||e>=d.length)break;if("("==f){b.push(s.LEFTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if(")"==f){b.push(s.RIGHTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if("["==f){b.push(s.LEFTBRACKET),c.push(f),f=d.charAt(e++);continue}if("]"==f){b.push(s.RIGHTBRACKET),c.push(f),f=d.charAt(e++);continue}if("@"==f){b.push(s.AT),c.push(f),f=d.charAt(e++);continue}if(","==f){b.push(s.COMMA),c.push(f),f=d.charAt(e++);continue}if("|"==f){b.push(s.BAR),c.push(f),f=d.charAt(e++);continue}if("+"==f){b.push(s.PLUS),c.push(f),f=d.charAt(e++);continue}if("-"==f){b.push(s.MINUS),c.push(f),f=d.charAt(e++);continue}if("="==f){b.push(s.EQUALS),c.push(f),f=d.charAt(e++);continue}if("$"==f){b.push(s.DOLLAR),c.push(f),f=d.charAt(e++);continue}if("."==f){if("."==(f=d.charAt(e++))){b.push(s.DOUBLEDOT),c.push(".."),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g="."+f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(s.NUMBER),c.push(g);continue}b.push(s.DOT),c.push(".");continue}if("'"==f||'"'==f){for(var h=f,i="";e<d.length&&(f=d.charAt(e))!==h;)i+=f,e+=1;if(f!==h)throw ak.fromMessage("Unterminated string literal: "+h+i);e+=1,b.push(s.LITERAL),c.push(i),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g=f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);if("."==f&&d.charAt(e)>="0"&&"9">=d.charAt(e))for(g+=f,g+=d.charAt(e++),f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(s.NUMBER),c.push(g);continue}if("*"==f){if(b.length>0){var j=b[b.length-1];if(j!=s.AT&&j!=s.DOUBLECOLON&&j!=s.LEFTPARENTHESIS&&j!=s.LEFTBRACKET&&j!=s.AND&&j!=s.OR&&j!=s.MOD&&j!=s.DIV&&j!=s.MULTIPLYOPERATOR&&j!=s.SLASH&&j!=s.DOUBLESLASH&&j!=s.BAR&&j!=s.PLUS&&j!=s.MINUS&&j!=s.EQUALS&&j!=s.NOTEQUAL&&j!=s.LESSTHAN&&j!=s.LESSTHANOREQUAL&&j!=s.GREATERTHAN&&j!=s.GREATERTHANOREQUAL){b.push(s.MULTIPLYOPERATOR),c.push(f),f=d.charAt(e++);continue}}b.push(s.ASTERISKNAMETEST),c.push(f),f=d.charAt(e++);continue}if(":"==f&&":"==d.charAt(e)){b.push(s.DOUBLECOLON),c.push("::"),e++,f=d.charAt(e++);continue}if("/"==f){if("/"==(f=d.charAt(e++))){b.push(s.DOUBLESLASH),c.push("//"),f=d.charAt(e++);continue}b.push(s.SLASH),c.push("/");continue}if("!"==f&&"="==d.charAt(e)){b.push(s.NOTEQUAL),c.push("!="),e++,f=d.charAt(e++);continue}if("<"==f){if("="==d.charAt(e)){b.push(s.LESSTHANOREQUAL),c.push("<="),e++,f=d.charAt(e++);continue}b.push(s.LESSTHAN),c.push("<"),f=d.charAt(e++);continue}if(">"==f){if("="==d.charAt(e)){b.push(s.GREATERTHANOREQUAL),c.push(">="),e++,f=d.charAt(e++);continue}b.push(s.GREATERTHAN),c.push(">"),f=d.charAt(e++);continue}if("_"==f||ai.isLetter(f.charCodeAt(0))){var k=f;for(f=d.charAt(e++);ai.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if(b.length>0){var j=b[b.length-1];if(j!=s.AT&&j!=s.DOUBLECOLON&&j!=s.LEFTPARENTHESIS&&j!=s.LEFTBRACKET&&j!=s.AND&&j!=s.OR&&j!=s.MOD&&j!=s.DIV&&j!=s.MULTIPLYOPERATOR&&j!=s.SLASH&&j!=s.DOUBLESLASH&&j!=s.BAR&&j!=s.PLUS&&j!=s.MINUS&&j!=s.EQUALS&&j!=s.NOTEQUAL&&j!=s.LESSTHAN&&j!=s.LESSTHANOREQUAL&&j!=s.GREATERTHAN&&j!=s.GREATERTHANOREQUAL){if("and"==k){b.push(s.AND),c.push(k);continue}if("or"==k){b.push(s.OR),c.push(k);continue}if("mod"==k){b.push(s.MOD),c.push(k);continue}if("div"==k){b.push(s.DIV),c.push(k);continue}}}if(":"==f){if("*"==d.charAt(e)){b.push(s.NCNAMECOLONASTERISK),c.push(k+":*"),e++,f=d.charAt(e++);continue}if("_"==d.charAt(e)||ai.isLetter(d.charCodeAt(e))){for(k+=":",f=d.charAt(e++);ai.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if("("==f){b.push(s.FUNCTIONNAME),c.push(k);continue}b.push(s.QNAME),c.push(k);continue}if(":"==d.charAt(e)){b.push(s.AXISNAME),c.push(k);continue}}if("("==f){if("comment"==k||"text"==k||"node"==k){b.push(s.NODETYPE),c.push(k);continue}if("processing-instruction"==k){")"==d.charAt(e)?b.push(s.NODETYPE):b.push(s.PROCESSINGINSTRUCTIONWITHLITERAL),c.push(k);continue}b.push(s.FUNCTIONNAME),c.push(k);continue}b.push(s.QNAME),c.push(k);continue}throw Error("Unexpected character "+f)}return b.push(1),c.push("[EOF]"),[b,c]},s.SHIFT="s",s.REDUCE="r",s.ACCEPT="a",s.prototype.parse=function(a){if(!a)throw Error("XPath expression unspecified.");if("string"!=typeof a)throw Error("XPath expression must be a string.");var b,c,d,e,f=this.tokenize(a);if(void 0!=f){b=f[0],c=f[1];var g=0,h=[],i=[],j=[];for(h.push(0),i.push(1),j.push("_S"),d=b[g],e=c[g++];;)switch(a=h[h.length-1],s.actionTable[a].charAt(d-1)){case s.SHIFT:i.push(-d),j.push(e),h.push(s.actionTableNumber[a].charCodeAt(d-1)-32),d=b[g],e=c[g++];break;case s.REDUCE:for(var k=s.productions[s.actionTableNumber[a].charCodeAt(d-1)-32][1],l=[],m=0;m<k;m++)i.pop(),l.unshift(j.pop()),h.pop();var n=h[h.length-1];i.push(s.productions[s.actionTableNumber[a].charCodeAt(d-1)-32][0]),void 0==this.reduceActions[s.actionTableNumber[a].charCodeAt(d-1)-32]?j.push(l[0]):j.push(this.reduceActions[s.actionTableNumber[a].charCodeAt(d-1)-32](l)),h.push(s.gotoTable[n].charCodeAt(s.productions[s.actionTableNumber[a].charCodeAt(d-1)-32][0]-2)-33);break;case s.ACCEPT:return new t(j.pop());default:throw Error("XPath parse error")}}},t.prototype={},t.prototype.constructor=t,t.superclass=Object.prototype,t.prototype.toString=function(){return this.expression.toString()},t.prototype.evaluate=function(a){var b=a.expressionContextNode;if(!(null==b||g(b)))throw Error("Context node does not appear to be a valid DOM node.");return a.contextNode=a.expressionContextNode,a.contextSize=1,a.contextPosition=1,a.isHtml&&(u(a,"caseInsensitive",!0),u(a,"allowAnyNamespaceForNoPrefix",!0)),u(a,"caseInsensitive",!1),this.expression.evaluate(a)},t.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",t.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",v.prototype={},v.prototype.constructor=v,v.superclass=Object.prototype,v.prototype.init=function(){},v.prototype.toString=function(){return"<Expression>"},v.prototype.evaluate=function(a){throw Error("Could not evaluate expression.")},w.prototype=new v,w.prototype.constructor=w,w.superclass=v.prototype,w.prototype.init=function(a){this.rhs=a},x.prototype=new w,x.prototype.constructor=x,x.superclass=w.prototype,x.prototype.init=function(a){x.superclass.init.call(this,a)},x.prototype.evaluate=function(a){return this.rhs.evaluate(a).number().negate()},x.prototype.toString=function(){return"-"+this.rhs.toString()},y.prototype=new v,y.prototype.constructor=y,y.superclass=v.prototype,y.prototype.init=function(a,b){this.lhs=a,this.rhs=b},z.prototype=new y,z.prototype.constructor=z,z.superclass=y.prototype,z.prototype.init=function(a,b){z.superclass.init.call(this,a,b)},z.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},z.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?b:this.rhs.evaluate(a).bool()},A.prototype=new y,A.prototype.constructor=A,A.superclass=y.prototype,A.prototype.init=function(a,b){A.superclass.init.call(this,a,b)},A.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},A.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?this.rhs.evaluate(a).bool():b},B.prototype=new y,B.prototype.constructor=B,B.superclass=y.prototype,B.prototype.init=function(a,b){B.superclass.init.call(this,a,b)},B.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},B.prototype.evaluate=function(a){return this.lhs.evaluate(a).equals(this.rhs.evaluate(a))},C.prototype=new y,C.prototype.constructor=C,C.superclass=y.prototype,C.prototype.init=function(a,b){C.superclass.init.call(this,a,b)},C.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},C.prototype.evaluate=function(a){return this.lhs.evaluate(a).notequal(this.rhs.evaluate(a))},D.prototype=new y,D.prototype.constructor=D,D.superclass=y.prototype,D.prototype.init=function(a,b){D.superclass.init.call(this,a,b)},D.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthan(this.rhs.evaluate(a))},D.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},E.prototype=new y,E.prototype.constructor=E,E.superclass=y.prototype,E.prototype.init=function(a,b){E.superclass.init.call(this,a,b)},E.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthan(this.rhs.evaluate(a))},E.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},F.prototype=new y,F.prototype.constructor=F,F.superclass=y.prototype,F.prototype.init=function(a,b){F.superclass.init.call(this,a,b)},F.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthanorequal(this.rhs.evaluate(a))},F.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},G.prototype=new y,G.prototype.constructor=G,G.superclass=y.prototype,G.prototype.init=function(a,b){G.superclass.init.call(this,a,b)},G.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthanorequal(this.rhs.evaluate(a))},G.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},H.prototype=new y,H.prototype.constructor=H,H.superclass=y.prototype,H.prototype.init=function(a,b){H.superclass.init.call(this,a,b)},H.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().plus(this.rhs.evaluate(a).number())},H.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},I.prototype=new y,I.prototype.constructor=I,I.superclass=y.prototype,I.prototype.init=function(a,b){I.superclass.init.call(this,a,b)},I.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().minus(this.rhs.evaluate(a).number())},I.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},J.prototype=new y,J.prototype.constructor=J,J.superclass=y.prototype,J.prototype.init=function(a,b){J.superclass.init.call(this,a,b)},J.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().multiply(this.rhs.evaluate(a).number())},J.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},K.prototype=new y,K.prototype.constructor=K,K.superclass=y.prototype,K.prototype.init=function(a,b){K.superclass.init.call(this,a,b)},K.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().div(this.rhs.evaluate(a).number())},K.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},L.prototype=new y,L.prototype.constructor=L,L.superclass=y.prototype,L.prototype.init=function(a,b){L.superclass.init.call(this,a,b)},L.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().mod(this.rhs.evaluate(a).number())},L.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},M.prototype=new y,M.prototype.constructor=M,M.superclass=y.prototype,M.prototype.init=function(a,b){M.superclass.init.call(this,a,b)},M.prototype.evaluate=function(a){return this.lhs.evaluate(a).nodeset().union(this.rhs.evaluate(a).nodeset())},M.prototype.toString=function(){return j(m,[this.lhs,this.rhs]).join(" | ")},N.prototype=new v,N.prototype.constructor=N,N.superclass=v.prototype,N.prototype.init=function(a,b,c){N.superclass.init.call(this),this.filter=a,this.filterPredicates=b,this.locationPath=c};var O=function(a,b,c,d){if(0===a.length)return c;var e=b.extend({});return i(function(a,b){return e.contextSize=a.length,k(function(a,c){return e.contextNode=a,e.contextPosition=c+1,N.predicateMatches(b,e)},a)},q(c,d),a)};N.getRoot=function(a,b){var c=b[0];if(c&&9===c.nodeType)return c;if(a.virtualRoot)return a.virtualRoot;if(!c)throw Error("Context node not found when determining document root.");var d=c.ownerDocument;if(d)return d;for(var e=c;null!=e.parentNode;)e=e.parentNode;return e};var P=function(a){var b=String(a.name);return"xmlns"===b?"":"xmlns:"===b.substring(0,6)?b.substring(6,b.length):null};function Q(a,b,c){return O(a.predicates,b,N.applyStep(a,b,c),l(U,a.axis))}function R(a,b,c){return function(a){for(var b=[],c=0;c<a.length;c+=32767){var d=a.slice(c,c+32767);b=p.apply(b,d)}return b}(j(Q.bind(null,c,a),b))}function S(a,b){arguments.length>0&&this.init(a,b)}function T(a,b,c){arguments.length>0&&this.init(a,b,c)}N.applyStep=function(a,b,c){if(!c)throw Error("Context node not found when evaluating XPath step: "+a);var d,e,f=[];switch(b.contextNode=c,a.axis){case T.ANCESTOR:if(b.contextNode===b.virtualRoot)break;for(d=2==b.contextNode.nodeType?N.getOwnerElement(b.contextNode):b.contextNode.parentNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);)d=d.parentNode;break;case T.ANCESTORORSELF:for(var d=b.contextNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);d=2==d.nodeType?N.getOwnerElement(d):d.parentNode);break;case T.ATTRIBUTE:var g=b.contextNode.attributes;if(null!=g)for(var h=0;h<g.length;h++){var d=g.item(h);a.nodeTest.matches(d,b)&&f.push(d)}break;case T.CHILD:for(var d=b.contextNode.firstChild;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case T.DESCENDANT:for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case T.DESCENDANTORSELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode);for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case T.FOLLOWING:if(b.contextNode===b.virtualRoot)break;var e=[];null!=b.contextNode.firstChild?e.unshift(b.contextNode.firstChild):e.unshift(b.contextNode.nextSibling);for(var d=b.contextNode.parentNode;null!=d&&9!=d.nodeType&&d!==b.virtualRoot;d=d.parentNode)e.unshift(d.nextSibling);do for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;while(e.length>0);break;case T.FOLLOWINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.nextSibling;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case T.NAMESPACE:var i={};if(1==b.contextNode.nodeType){i.xml=new ac("xml",null,t.XML_NAMESPACE_URI,b.contextNode);for(var d=b.contextNode;null!=d&&1==d.nodeType;d=d.parentNode)for(var h=0;h<d.attributes.length;h++){var j=d.attributes.item(h),k=P(j);null!=k&&void 0==i[k]&&(i[k]=new ac(k,j,j.value,b.contextNode))}for(var k in i){var c=i[k];a.nodeTest.matches(c,b)&&f.push(c)}}break;case T.PARENT:d=null,b.contextNode!==b.virtualRoot&&(d=2==b.contextNode.nodeType?N.getOwnerElement(b.contextNode):b.contextNode.parentNode),null!=d&&a.nodeTest.matches(d,b)&&f.push(d);break;case T.PRECEDING:e=null!=b.virtualRoot?[b.virtualRoot]:[function(a){for(;a&&a.parentNode;)a=a.parentNode;return a}(b.contextNode)];a:for(;e.length>0;)for(var d=e.pop();null!=d;){if(d==b.contextNode)break a;a.nodeTest.matches(d,b)&&f.unshift(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling}break;case T.PRECEDINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.previousSibling;null!=d;d=d.previousSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case T.SELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode)}return f},N.applySteps=function(a,b,c){return i(R.bind(null,b),c,a)},N.prototype.applyFilter=function(a,b){if(!this.filter)return{nodes:[a.contextNode]};var c=this.filter.evaluate(a);if(!ai.instance_of(c,ab)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:c}}return{nodes:O(this.filterPredicates||[],b,c.toUnsortedArray(),!1)}},N.applyLocationPath=function(a,b,c){if(!a)return c;var d=a.absolute?[N.getRoot(b,c)]:c;return N.applySteps(a.steps,b,d)},N.prototype.evaluate=function(a){var b=r(new ad,a),c=this.applyFilter(a,b);if("nonNodes"in c)return c.nonNodes;var d=new ab;return d.addArray(N.applyLocationPath(this.locationPath,b,c.nodes)),d},N.predicateMatches=function(a,b){var c=a.evaluate(b);return ai.instance_of(c,$)?b.contextPosition===c.numberValue():c.booleanValue()},N.predicateString=function(a){return o("[","]",a.toString())},N.predicatesString=function(a){return n("",j(N.predicateString,a))},N.prototype.toString=function(){if(void 0!=this.filter){var a=m(this.filter);return ai.instance_of(this.filter,Z)?o("'","'",a):void 0!=this.filterPredicates&&this.filterPredicates.length?o("(",")",a)+N.predicatesString(this.filterPredicates):void 0!=this.locationPath?a+(this.locationPath.absolute?"":"/")+m(this.locationPath):a}return m(this.locationPath)},N.getOwnerElement=function(a){if(a.ownerElement)return a.ownerElement;try{if(a.selectSingleNode)return a.selectSingleNode("..")}catch(a){}for(var b=(9==a.nodeType?a:a.ownerDocument).getElementsByTagName("*"),c=0;c<b.length;c++)for(var d=b.item(c),e=d.attributes,f=0;f<e.length;f++)if(e.item(f)===a)return d;return null},S.prototype={},S.prototype.constructor=S,S.superclass=Object.prototype,S.prototype.init=function(a,b){this.absolute=a,this.steps=b},S.prototype.toString=function(){return(this.absolute?"/":"")+j(m,this.steps).join("/")},T.prototype={},T.prototype.constructor=T,T.superclass=Object.prototype,T.prototype.init=function(a,b,c){this.axis=a,this.nodeTest=b,this.predicates=c},T.prototype.toString=function(){return T.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+N.predicatesString(this.predicates)},T.ANCESTOR=0,T.ANCESTORORSELF=1,T.ATTRIBUTE=2,T.CHILD=3,T.DESCENDANT=4,T.DESCENDANTORSELF=5,T.FOLLOWING=6,T.FOLLOWINGSIBLING=7,T.NAMESPACE=8,T.PARENT=9,T.PRECEDING=10,T.PRECEDINGSIBLING=11,T.SELF=12,T.STEPNAMES=i(function(a,b){return a[b[0]]=b[1],a},{},[[T.ANCESTOR,"ancestor"],[T.ANCESTORORSELF,"ancestor-or-self"],[T.ATTRIBUTE,"attribute"],[T.CHILD,"child"],[T.DESCENDANT,"descendant"],[T.DESCENDANTORSELF,"descendant-or-self"],[T.FOLLOWING,"following"],[T.FOLLOWINGSIBLING,"following-sibling"],[T.NAMESPACE,"namespace"],[T.PARENT,"parent"],[T.PRECEDING,"preceding"],[T.PRECEDINGSIBLING,"preceding-sibling"],[T.SELF,"self"]]);var U=[T.ANCESTOR,T.ANCESTORORSELF,T.PARENT,T.PRECEDING,T.PRECEDINGSIBLING];function V(a,b){arguments.length>0&&this.init(a,b)}function W(a){arguments.length>0&&this.init(a)}function X(a,b){arguments.length>0&&this.init(a,b)}V.prototype={},V.prototype.constructor=V,V.superclass=Object.prototype,V.prototype.init=function(a,b){this.type=a,this.value=b},V.prototype.toString=function(){return"<unknown nodetest type>"},V.prototype.matches=function(a,b){console.warn("unknown node test type")},V.NAMETESTANY=0,V.NAMETESTPREFIXANY=1,V.NAMETESTQNAME=2,V.COMMENT=3,V.TEXT=4,V.PI=5,V.NODE=6,V.isNodeType=function(a){return function(b){return l(a,b.nodeType)}},V.makeNodeTestType=function(a,b,c){var d=c||function(){};return d.prototype=new V(a),d.prototype.constructor=d,r(d.prototype,b),d},V.makeNodeTypeTest=function(a,b,c){return new(V.makeNodeTestType(a,{matches:V.isNodeType(b),toString:function(){return c}}))},V.hasPrefix=function(a){return a.prefix||-1!==(a.nodeName||a.tagName).indexOf(":")},V.isElementOrAttribute=V.isNodeType([1,2]),V.nameSpaceMatches=function(a,b,c){var d=c.namespaceURI||"";if(!a)return!d||b.allowAnyNamespaceForNoPrefix&&!V.hasPrefix(c);var e=b.namespaceResolver.getNamespace(a,b.expressionContextNode);if(null==e)throw Error("Cannot resolve QName "+a);return e===d},V.localNameMatches=function(a,b,c){var d=c.localName||c.nodeName;return b.caseInsensitive?a.toLowerCase()===d.toLowerCase():a===d},V.NameTestPrefixAny=V.makeNodeTestType(V.NAMETESTPREFIXANY,{matches:function(a,b){return V.isElementOrAttribute(a)&&V.nameSpaceMatches(this.prefix,b,a)},toString:function(){return this.prefix+":*"}},function(a){this.prefix=a}),V.NameTestQName=V.makeNodeTestType(V.NAMETESTQNAME,{matches:function(a,b){return V.isNodeType([1,2,f])(a)&&V.nameSpaceMatches(this.prefix,b,a)&&V.localNameMatches(this.localName,b,a)},toString:function(){return this.name}},function(a){var b=a.split(":");this.name=a,this.prefix=b.length>1?b[0]:null,this.localName=b[+(b.length>1)]}),V.PITest=V.makeNodeTestType(V.PI,{matches:function(a,b){return V.isNodeType([7])(a)&&(a.target||a.nodeName)===this.name},toString:function(){return o('processing-instruction("','")',this.name)}},function(a){this.name=a}),V.nameTestAny=V.makeNodeTypeTest(V.NAMETESTANY,[1,2,f],"*"),V.textTest=V.makeNodeTypeTest(V.TEXT,[3,4],"text()"),V.commentTest=V.makeNodeTypeTest(V.COMMENT,[8],"comment()"),V.nodeTest=V.makeNodeTypeTest(V.NODE,[1,2,3,4,7,8,9],"node()"),V.anyPiTest=V.makeNodeTypeTest(V.PI,[7],"processing-instruction()"),W.prototype=new v,W.prototype.constructor=W,W.superclass=v.prototype,W.prototype.init=function(a){this.variable=a},W.prototype.toString=function(){return"$"+this.variable},W.prototype.evaluate=function(a){var b=ai.resolveQName(this.variable,a.namespaceResolver,a.contextNode,!1);if(null==b[0])throw Error("Cannot resolve QName "+fn);var c=a.variableResolver.getVariable(b[1],b[0]);if(!c)throw ak.fromMessage("Undeclared variable: "+this.toString());return c},X.prototype=new v,X.prototype.constructor=X,X.superclass=v.prototype,X.prototype.init=function(a,b){this.functionName=a,this.arguments=b},X.prototype.toString=function(){for(var a=this.functionName+"(",b=0;b<this.arguments.length;b++)b>0&&(a+=", "),a+=this.arguments[b].toString();return a+")"},X.prototype.evaluate=function(a){var b=af.getFunctionFromContext(this.functionName,a);if(!b)throw Error("Unknown function "+this.functionName);var c=[a].concat(this.arguments);return b.apply(a.functionResolver.thisArg,c)};var Y={};function Z(a){arguments.length>0&&this.init(a)}function $(a){arguments.length>0&&this.init(a)}function _(a){arguments.length>0&&this.init(a)}function aa(a){this.init(a)}function ab(){this.init()}function ac(a,b,c,d){this.isXPathNamespace=!0,this.baseNode=b,this.ownerDocument=d.ownerDocument,this.nodeName=a,this.prefix=a,this.localName=a,this.namespaceURI=null,this.nodeValue=c,this.ownerElement=d,this.nodeType=f}function ad(a,b,c){this.variableResolver=null!=a?a:new ae,this.namespaceResolver=null!=b?b:new ag,this.functionResolver=null!=c?c:new af}function ae(){}function af(a){this.thisArg=null!=a?a:ah,this.functions={},this.addStandardFunctions()}function ag(){}Y.equals=function(a,b){return a.equals(b)},Y.notequal=function(a,b){return a.notequal(b)},Y.lessthan=function(a,b){return a.lessthan(b)},Y.greaterthan=function(a,b){return a.greaterthan(b)},Y.lessthanorequal=function(a,b){return a.lessthanorequal(b)},Y.greaterthanorequal=function(a,b){return a.greaterthanorequal(b)},Z.prototype=new v,Z.prototype.constructor=Z,Z.superclass=v.prototype,Z.prototype.init=function(a){this.str=String(a)},Z.prototype.toString=function(){return this.str},Z.prototype.evaluate=function(a){return this},Z.prototype.string=function(){return this},Z.prototype.number=function(){return new $(this.str)},Z.prototype.bool=function(){return new _(this.str)},Z.prototype.nodeset=function(){throw Error("Cannot convert string to nodeset")},Z.prototype.stringValue=function(){return this.str},Z.prototype.numberValue=function(){return this.number().numberValue()},Z.prototype.booleanValue=function(){return this.bool().booleanValue()},Z.prototype.equals=function(a){return ai.instance_of(a,_)?this.bool().equals(a):ai.instance_of(a,$)?this.number().equals(a):ai.instance_of(a,ab)?a.compareWithString(this,Y.equals):new _(this.str==a.str)},Z.prototype.notequal=function(a){return ai.instance_of(a,_)?this.bool().notequal(a):ai.instance_of(a,$)?this.number().notequal(a):ai.instance_of(a,ab)?a.compareWithString(this,Y.notequal):new _(this.str!=a.str)},Z.prototype.lessthan=function(a){return this.number().lessthan(a)},Z.prototype.greaterthan=function(a){return this.number().greaterthan(a)},Z.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},Z.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},$.prototype=new v,$.prototype.constructor=$,$.superclass=v.prototype,$.prototype.init=function(a){this.num="string"==typeof a?this.parse(a):Number(a)},$.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,$.prototype.parse=function(a){return this.numberFormat.test(a)?parseFloat(a):NaN},$.prototype.toString=function(){var a=this.num.toString();if(-1!==a.indexOf("e-")){for(var b=a.split("e-"),c=b[0].replace(".",""),d=Number(b[1]),e=0;e<d-1;e+=1)c="0"+c;return"0."+c}if(-1!==a.indexOf("e")){for(var f=a.split("e"),g=f[0].replace(".",""),h=Number(f[1])+1-g.length,i=0;i<h;i+=1)g+="0";return g}return a},$.prototype.evaluate=function(a){return this},$.prototype.string=function(){return new Z(this.toString())},$.prototype.number=function(){return this},$.prototype.bool=function(){return new _(this.num)},$.prototype.nodeset=function(){throw Error("Cannot convert number to nodeset")},$.prototype.stringValue=function(){return this.string().stringValue()},$.prototype.numberValue=function(){return this.num},$.prototype.booleanValue=function(){return this.bool().booleanValue()},$.prototype.negate=function(){return new $(-this.num)},$.prototype.equals=function(a){return ai.instance_of(a,_)?this.bool().equals(a):ai.instance_of(a,Z)?this.equals(a.number()):ai.instance_of(a,ab)?a.compareWithNumber(this,Y.equals):new _(this.num==a.num)},$.prototype.notequal=function(a){return ai.instance_of(a,_)?this.bool().notequal(a):ai.instance_of(a,Z)?this.notequal(a.number()):ai.instance_of(a,ab)?a.compareWithNumber(this,Y.notequal):new _(this.num!=a.num)},$.prototype.lessthan=function(a){return ai.instance_of(a,ab)?a.compareWithNumber(this,Y.greaterthan):ai.instance_of(a,_)||ai.instance_of(a,Z)?this.lessthan(a.number()):new _(this.num<a.num)},$.prototype.greaterthan=function(a){return ai.instance_of(a,ab)?a.compareWithNumber(this,Y.lessthan):ai.instance_of(a,_)||ai.instance_of(a,Z)?this.greaterthan(a.number()):new _(this.num>a.num)},$.prototype.lessthanorequal=function(a){return ai.instance_of(a,ab)?a.compareWithNumber(this,Y.greaterthanorequal):ai.instance_of(a,_)||ai.instance_of(a,Z)?this.lessthanorequal(a.number()):new _(this.num<=a.num)},$.prototype.greaterthanorequal=function(a){return ai.instance_of(a,ab)?a.compareWithNumber(this,Y.lessthanorequal):ai.instance_of(a,_)||ai.instance_of(a,Z)?this.greaterthanorequal(a.number()):new _(this.num>=a.num)},$.prototype.plus=function(a){return new $(this.num+a.num)},$.prototype.minus=function(a){return new $(this.num-a.num)},$.prototype.multiply=function(a){return new $(this.num*a.num)},$.prototype.div=function(a){return new $(this.num/a.num)},$.prototype.mod=function(a){return new $(this.num%a.num)},_.prototype=new v,_.prototype.constructor=_,_.superclass=v.prototype,_.prototype.init=function(a){this.b=!!a},_.prototype.toString=function(){return this.b.toString()},_.prototype.evaluate=function(a){return this},_.prototype.string=function(){return new Z(this.b)},_.prototype.number=function(){return new $(this.b)},_.prototype.bool=function(){return this},_.prototype.nodeset=function(){throw Error("Cannot convert boolean to nodeset")},_.prototype.stringValue=function(){return this.string().stringValue()},_.prototype.numberValue=function(){return this.number().numberValue()},_.prototype.booleanValue=function(){return this.b},_.prototype.not=function(){return new _(!this.b)},_.prototype.equals=function(a){return ai.instance_of(a,Z)||ai.instance_of(a,$)?this.equals(a.bool()):ai.instance_of(a,ab)?a.compareWithBoolean(this,Y.equals):new _(this.b==a.b)},_.prototype.notequal=function(a){return ai.instance_of(a,Z)||ai.instance_of(a,$)?this.notequal(a.bool()):ai.instance_of(a,ab)?a.compareWithBoolean(this,Y.notequal):new _(this.b!=a.b)},_.prototype.lessthan=function(a){return this.number().lessthan(a)},_.prototype.greaterthan=function(a){return this.number().greaterthan(a)},_.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},_.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},_.true_=new _(!0),_.false_=new _(!1),aa.prototype={},aa.prototype.constructor=aa,aa.superclass=Object.prototype,aa.prototype.init=function(a){this.left=null,this.right=null,this.node=a,this.depth=1},aa.prototype.balance=function(){var a=null==this.left?0:this.left.depth,b=null==this.right?0:this.right.depth;if(a>b+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(a+1<b){var c=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>c&&this.right.rotateLL(),this.rotateRR()}},aa.prototype.rotateLL=function(){var a=this.node,b=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=b,this.right.node=a,this.right.updateInNewLocation(),this.updateInNewLocation()},aa.prototype.rotateRR=function(){var a=this.node,b=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=b,this.left.node=a,this.left.updateInNewLocation(),this.updateInNewLocation()},aa.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},aa.prototype.getDepthFromChildren=function(){this.depth=+(null!=this.node),null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},aa.prototype.add=function(a){if(a===this.node)return!1;var b=function(a,b){if(a===b)return 0;if(a.compareDocumentPosition){var c=a.compareDocumentPosition(b);return 1&c||10&c?1:20&c?-1:0}for(var d=0,e=0,f=a;null!=f;f=f.parentNode||f.ownerElement)d++;for(var g=b;null!=g;g=g.parentNode||g.ownerElement)e++;if(d>e){for(;d>e;)a=a.parentNode||a.ownerElement,d--;if(a===b)return 1}else if(e>d){for(;e>d;)b=b.parentNode||b.ownerElement,e--;if(a===b)return -1}for(var h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;h!==i;)a=h,b=i,h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;var j=aj(a),k=aj(b);if(j&&!k)return -1;if(!j&&k)return 1;if(a.isXPathNamespace){if(a.nodeValue===t.XML_NAMESPACE_URI||!b.isXPathNamespace)return -1;if(b.nodeValue===t.XML_NAMESPACE_URI)return 1}else if(b.isXPathNamespace)return 1;if(h)for(var l=j?h.attributes:h.childNodes,m=l.length,n=a.baseNode||a,o=b.baseNode||b,p=0;p<m;p+=1){var q=l[p];if(q===n)return -1;if(q===o)return 1}throw Error("Unexpected: could not determine node order")}(a,this.node),c=!1;return -1==b?null==this.left?(this.left=new aa(a),c=!0):(c=this.left.add(a))&&this.balance():1==b&&(null==this.right?(this.right=new aa(a),c=!0):(c=this.right.add(a))&&this.balance()),c&&this.getDepthFromChildren(),c},ab.prototype=new v,ab.prototype.constructor=ab,ab.superclass=v.prototype,ab.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},ab.prototype.toString=function(){var a=this.first();return null==a?"":this.stringForNode(a)},ab.prototype.evaluate=function(a){return this},ab.prototype.string=function(){return new Z(this.toString())},ab.prototype.stringValue=function(){return this.toString()},ab.prototype.number=function(){return new $(this.string())},ab.prototype.numberValue=function(){return Number(this.string())},ab.prototype.bool=function(){return new _(this.booleanValue())},ab.prototype.booleanValue=function(){return!!this.size},ab.prototype.nodeset=function(){return this},ab.prototype.stringForNode=function(a){return 9==a.nodeType||1==a.nodeType||11===a.nodeType?this.stringForContainerNode(a):2===a.nodeType?a.value||a.nodeValue:a.isNamespaceNode?a.namespace:a.nodeValue},ab.prototype.stringForContainerNode=function(a){for(var b="",c=a.firstChild;null!=c;c=c.nextSibling){var d=c.nodeType;(1===d||3===d||4===d||9===d||11===d)&&(b+=this.stringForNode(c))}return b},ab.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new aa(this.nodes[0]);for(var a=1;a<this.nodes.length;a+=1)this.tree.add(this.nodes[a])}return this.tree},ab.prototype.first=function(){var a=this.buildTree();if(null==a)return null;for(;null!=a.left;)a=a.left;return a.node},ab.prototype.add=function(a){for(var b=0;b<this.nodes.length;b+=1)if(a===this.nodes[b])return;this.tree=null,this.nodes.push(a),this.size+=1},ab.prototype.addArray=function(a){var b=this;h(function(a){b.add(a)},a)},ab.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},ab.prototype.toArrayRec=function(a,b){null!=a&&(this.toArrayRec(a.left,b),b.push(a.node),this.toArrayRec(a.right,b))},ab.prototype.toUnsortedArray=function(){return this.nodes.slice()},ab.prototype.compareWithString=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new Z(this.stringForNode(e)),a);if(f.booleanValue())return f}return new _(!1)},ab.prototype.compareWithNumber=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new $(this.stringForNode(e)),a);if(f.booleanValue())return f}return new _(!1)},ab.prototype.compareWithBoolean=function(a,b){return b(this.bool(),a)},ab.prototype.compareWithNodeSet=function(a,b){for(var c=this.toUnsortedArray(),d=function(a,c){return b(c,a)},e=0;e<c.length;e++){var f=new Z(this.stringForNode(c[e])),g=a.compareWithString(f,d);if(g.booleanValue())return g}return new _(!1)},b=function(a,b){return ai.instance_of(b,Z)?this.compareWithString(b,a):ai.instance_of(b,$)?this.compareWithNumber(b,a):ai.instance_of(b,_)?this.compareWithBoolean(b,a):this.compareWithNodeSet(b,a)},c=Array.prototype.slice,d=b.length,ab.compareWith=e=function(){var a,f=c.call(arguments);return f.length<d?(a=e,function(){return a.apply(this,f.concat(c.call(arguments)))}):b.apply(this,c.apply(arguments,[0,d]))},ab.prototype.equals=ab.compareWith(Y.equals),ab.prototype.notequal=ab.compareWith(Y.notequal),ab.prototype.lessthan=ab.compareWith(Y.lessthan),ab.prototype.greaterthan=ab.compareWith(Y.greaterthan),ab.prototype.lessthanorequal=ab.compareWith(Y.lessthanorequal),ab.prototype.greaterthanorequal=ab.compareWith(Y.greaterthanorequal),ab.prototype.union=function(a){var b=new ab;return b.addArray(this.toUnsortedArray()),b.addArray(a.toUnsortedArray()),b},ac.prototype={},ac.prototype.constructor=ac,ac.superclass=Object.prototype,ac.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},ad.prototype={},ad.prototype.constructor=ad,ad.superclass=Object.prototype,ad.prototype.extend=function(a){return r(new ad,this,a)},ae.prototype={},ae.prototype.constructor=ae,ae.superclass=Object.prototype,ae.prototype.getVariable=function(a,b){return null},af.prototype={},af.prototype.constructor=af,af.superclass=Object.prototype,af.prototype.addStandardFunctions=function(){this.functions["{}last"]=ah.last,this.functions["{}position"]=ah.position,this.functions["{}count"]=ah.count,this.functions["{}id"]=ah.id,this.functions["{}local-name"]=ah.localName,this.functions["{}namespace-uri"]=ah.namespaceURI,this.functions["{}name"]=ah.name,this.functions["{}string"]=ah.string,this.functions["{}concat"]=ah.concat,this.functions["{}starts-with"]=ah.startsWith,this.functions["{}contains"]=ah.contains,this.functions["{}substring-before"]=ah.substringBefore,this.functions["{}substring-after"]=ah.substringAfter,this.functions["{}substring"]=ah.substring,this.functions["{}string-length"]=ah.stringLength,this.functions["{}normalize-space"]=ah.normalizeSpace,this.functions["{}translate"]=ah.translate,this.functions["{}boolean"]=ah.boolean_,this.functions["{}not"]=ah.not,this.functions["{}true"]=ah.true_,this.functions["{}false"]=ah.false_,this.functions["{}lang"]=ah.lang,this.functions["{}number"]=ah.number,this.functions["{}sum"]=ah.sum,this.functions["{}floor"]=ah.floor,this.functions["{}ceiling"]=ah.ceiling,this.functions["{}round"]=ah.round},af.prototype.addFunction=function(a,b,c){this.functions["{"+a+"}"+b]=c},af.getFunctionFromContext=function(a,b){var c=ai.resolveQName(a,b.namespaceResolver,b.contextNode,!1);if(null===c[0])throw Error("Cannot resolve QName "+name);return b.functionResolver.getFunction(c[1],c[0])},af.prototype.getFunction=function(a,b){return this.functions["{"+b+"}"+a]},ag.prototype={},ag.prototype.constructor=ag,ag.superclass=Object.prototype,ag.prototype.getNamespace=function(a,b){if("xml"==a)return t.XML_NAMESPACE_URI;if("xmlns"==a)return t.XMLNS_NAMESPACE_URI;for(9==b.nodeType?b=b.documentElement:2==b.nodeType?b=N.getOwnerElement(b):1!=b.nodeType&&(b=b.parentNode);null!=b&&1==b.nodeType;){for(var c=b.attributes,d=0;d<c.length;d++){var e=c.item(d),f=e.name||e.nodeName;if("xmlns"===f&&""===a||f==="xmlns:"+a)return String(e.value||e.nodeValue)}b=b.parentNode}return null};var ah={};ah.last=function(a){if(1!=arguments.length)throw Error("Function last expects ()");return new $(a.contextSize)},ah.position=function(a){if(1!=arguments.length)throw Error("Function position expects ()");return new $(a.contextPosition)},ah.count=function(){var a,b=arguments[0];if(2!=arguments.length||!ai.instance_of(a=arguments[1].evaluate(b),ab))throw Error("Function count expects (node-set)");return new $(a.size)},ah.id=function(){var a,b,c=arguments[0];if(2!=arguments.length)throw Error("Function id expects (object)");a=arguments[1].evaluate(c);for(var d=(a=ai.instance_of(a,ab)?a.toArray().join(" "):a.stringValue()).split(/[\x0d\x0a\x09\x20]+/),e=new ab,f=9==c.contextNode.nodeType?c.contextNode:c.contextNode.ownerDocument,g=0;g<d.length;g++)null!=(b=f.getElementById?f.getElementById(d[g]):ai.getElementById(f,d[g]))&&e.add(b);return e},ah.localName=function(a,b){var c;if(1==arguments.length)c=a.contextNode;else if(2==arguments.length)c=b.evaluate(a).first();else throw Error("Function local-name expects (node-set?)");return new Z(null==c?"":c.localName||c.baseName||c.target||c.nodeName||"")},ah.namespaceURI=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function namespace-uri expects (node-set?)");return new Z(null==a?"":a.namespaceURI||"")},ah.name=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function name expects (node-set?)");return null==a?new Z(""):1==a.nodeType?new Z(a.nodeName):2==a.nodeType?new Z(a.name||a.nodeName):7===a.nodeType?new Z(a.target||a.nodeName):null==a.localName?new Z(""):new Z(a.localName)},ah.string=function(){var a=arguments[0];if(1==arguments.length)return new Z(ab.prototype.stringForNode(a.contextNode));if(2==arguments.length)return arguments[1].evaluate(a).string();throw Error("Function string expects (object?)")},ah.concat=function(a){if(arguments.length<3)throw Error("Function concat expects (string, string[, string]*)");for(var b="",c=1;c<arguments.length;c++)b+=arguments[c].evaluate(a).stringValue();return new Z(b)},ah.startsWith=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function startsWith expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new _(b.substring(0,c.length)==c)},ah.contains=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function contains expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new _(-1!==b.indexOf(c))},ah.substringBefore=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-before expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new Z(b.substring(0,b.indexOf(c)))},ah.substringAfter=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-after expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();if(0==c.length)return new Z(b);var d=b.indexOf(c);return new Z(-1==d?"":b.substring(d+c.length))},ah.substring=function(){var a=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw Error("Function substring expects (string, number, number?)");var b=arguments[1].evaluate(a).stringValue(),c=Math.round(arguments[2].evaluate(a).numberValue())-1,d=4==arguments.length?c+Math.round(arguments[3].evaluate(a).numberValue()):void 0;return new Z(b.substring(c,d))},ah.stringLength=function(){var a,b=arguments[0];if(1==arguments.length)a=ab.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function string-length expects (string?)");return new $(a.length)},ah.normalizeSpace=function(){var a,b=arguments[0];if(1==arguments.length)a=ab.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function normalize-space expects (string?)");for(var c=0,d=a.length-1;ai.isSpace(a.charCodeAt(d));)d--;for(var e="";c<=d&&ai.isSpace(a.charCodeAt(c));)c++;for(;c<=d;)if(ai.isSpace(a.charCodeAt(c)))for(e+=" ";c<=d&&ai.isSpace(a.charCodeAt(c));)c++;else e+=a.charAt(c),c++;return new Z(e)},ah.translate=function(a,b,c,d){if(4!=arguments.length)throw Error("Function translate expects (string, string, string)");var e=b.evaluate(a).stringValue(),f=c.evaluate(a).stringValue(),g=d.evaluate(a).stringValue(),h=i(function(a,b,c){return b in a||(a[b]=c>g.length?"":g[c]),a},{},f);return new Z(n("",j(function(a){return a in h?h[a]:a},e)))},ah.boolean_=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function boolean expects (object)");return arguments[1].evaluate(a).bool()},ah.not=function(a,b){if(2!=arguments.length)throw Error("Function not expects (object)");return b.evaluate(a).bool().not()},ah.true_=function(){if(1!=arguments.length)throw Error("Function true expects ()");return _.true_},ah.false_=function(){if(1!=arguments.length)throw Error("Function false expects ()");return _.false_},ah.lang=function(){var a,b=arguments[0];if(2!=arguments.length)throw Error("Function lang expects (string)");for(var c=b.contextNode;null!=c&&9!=c.nodeType;c=c.parentNode){var d=c.getAttributeNS(t.XML_NAMESPACE_URI,"lang");if(null!=d){a=String(d);break}}if(null==a)return _.false_;var e=arguments[1].evaluate(b).stringValue();return new _(a.substring(0,e.length)==e&&(a.length==e.length||"-"==a.charAt(e.length)))},ah.number=function(){var a=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw Error("Function number expects (object?)");return 1==arguments.length?new $(ab.prototype.stringForNode(a.contextNode)):arguments[1].evaluate(a).number()},ah.sum=function(){var a,b=arguments[0];if(2!=arguments.length||!ai.instance_of(a=arguments[1].evaluate(b),ab))throw Error("Function sum expects (node-set)");a=a.toUnsortedArray();for(var c=0,d=0;d<a.length;d++)c+=new $(ab.prototype.stringForNode(a[d])).numberValue();return new $(c)},ah.floor=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function floor expects (number)");return new $(Math.floor(arguments[1].evaluate(a).numberValue()))},ah.ceiling=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function ceiling expects (number)");return new $(Math.ceil(arguments[1].evaluate(a).numberValue()))},ah.round=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function round expects (number)");return new $(Math.round(arguments[1].evaluate(a).numberValue()))};var ai={},aj=function(a){return a&&(2===a.nodeType||a.ownerElement||a.isXPathNamespace)};ai.splitQName=function(a){var b=a.indexOf(":");return -1==b?[null,a]:[a.substring(0,b),a.substring(b+1)]},ai.resolveQName=function(a,b,c,d){var e=ai.splitQName(a);return null!=e[0]?e[0]=b.getNamespace(e[0],c):d?(e[0]=b.getNamespace("",c),null==e[0]&&(e[0]="")):e[0]="",e},ai.isSpace=function(a){return 9==a||13==a||10==a||32==a},ai.isLetter=function(a){return a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=255||a>=256&&a<=305||a>=308&&a<=318||a>=321&&a<=328||a>=330&&a<=382||a>=384&&a<=451||a>=461&&a<=496||a>=500&&a<=501||a>=506&&a<=535||a>=592&&a<=680||a>=699&&a<=705||902==a||a>=904&&a<=906||908==a||a>=910&&a<=929||a>=931&&a<=974||a>=976&&a<=982||986==a||988==a||990==a||992==a||a>=994&&a<=1011||a>=1025&&a<=1036||a>=1038&&a<=1103||a>=1105&&a<=1116||a>=1118&&a<=1153||a>=1168&&a<=1220||a>=1223&&a<=1224||a>=1227&&a<=1228||a>=1232&&a<=1259||a>=1262&&a<=1269||a>=1272&&a<=1273||a>=1329&&a<=1366||1369==a||a>=1377&&a<=1414||a>=1488&&a<=1514||a>=1520&&a<=1522||a>=1569&&a<=1594||a>=1601&&a<=1610||a>=1649&&a<=1719||a>=1722&&a<=1726||a>=1728&&a<=1742||a>=1744&&a<=1747||1749==a||a>=1765&&a<=1766||a>=2309&&a<=2361||2365==a||a>=2392&&a<=2401||a>=2437&&a<=2444||a>=2447&&a<=2448||a>=2451&&a<=2472||a>=2474&&a<=2480||2482==a||a>=2486&&a<=2489||a>=2524&&a<=2525||a>=2527&&a<=2529||a>=2544&&a<=2545||a>=2565&&a<=2570||a>=2575&&a<=2576||a>=2579&&a<=2600||a>=2602&&a<=2608||a>=2610&&a<=2611||a>=2613&&a<=2614||a>=2616&&a<=2617||a>=2649&&a<=2652||2654==a||a>=2674&&a<=2676||a>=2693&&a<=2699||2701==a||a>=2703&&a<=2705||a>=2707&&a<=2728||a>=2730&&a<=2736||a>=2738&&a<=2739||a>=2741&&a<=2745||2749==a||2784==a||a>=2821&&a<=2828||a>=2831&&a<=2832||a>=2835&&a<=2856||a>=2858&&a<=2864||a>=2866&&a<=2867||a>=2870&&a<=2873||2877==a||a>=2908&&a<=2909||a>=2911&&a<=2913||a>=2949&&a<=2954||a>=2958&&a<=2960||a>=2962&&a<=2965||a>=2969&&a<=2970||2972==a||a>=2974&&a<=2975||a>=2979&&a<=2980||a>=2984&&a<=2986||a>=2990&&a<=2997||a>=2999&&a<=3001||a>=3077&&a<=3084||a>=3086&&a<=3088||a>=3090&&a<=3112||a>=3114&&a<=3123||a>=3125&&a<=3129||a>=3168&&a<=3169||a>=3205&&a<=3212||a>=3214&&a<=3216||a>=3218&&a<=3240||a>=3242&&a<=3251||a>=3253&&a<=3257||3294==a||a>=3296&&a<=3297||a>=3333&&a<=3340||a>=3342&&a<=3344||a>=3346&&a<=3368||a>=3370&&a<=3385||a>=3424&&a<=3425||a>=3585&&a<=3630||3632==a||a>=3634&&a<=3635||a>=3648&&a<=3653||a>=3713&&a<=3714||3716==a||a>=3719&&a<=3720||3722==a||3725==a||a>=3732&&a<=3735||a>=3737&&a<=3743||a>=3745&&a<=3747||3749==a||3751==a||a>=3754&&a<=3755||a>=3757&&a<=3758||3760==a||a>=3762&&a<=3763||3773==a||a>=3776&&a<=3780||a>=3904&&a<=3911||a>=3913&&a<=3945||a>=4256&&a<=4293||a>=4304&&a<=4342||4352==a||a>=4354&&a<=4355||a>=4357&&a<=4359||4361==a||a>=4363&&a<=4364||a>=4366&&a<=4370||4412==a||4414==a||4416==a||4428==a||4430==a||4432==a||a>=4436&&a<=4437||4441==a||a>=4447&&a<=4449||4451==a||4453==a||4455==a||4457==a||a>=4461&&a<=4462||a>=4466&&a<=4467||4469==a||4510==a||4520==a||4523==a||a>=4526&&a<=4527||a>=4535&&a<=4536||4538==a||a>=4540&&a<=4546||4587==a||4592==a||4601==a||a>=7680&&a<=7835||a>=7840&&a<=7929||a>=7936&&a<=7957||a>=7960&&a<=7965||a>=7968&&a<=8005||a>=8008&&a<=8013||a>=8016&&a<=8023||8025==a||8027==a||8029==a||a>=8031&&a<=8061||a>=8064&&a<=8116||a>=8118&&a<=8124||8126==a||a>=8130&&a<=8132||a>=8134&&a<=8140||a>=8144&&a<=8147||a>=8150&&a<=8155||a>=8160&&a<=8172||a>=8178&&a<=8180||a>=8182&&a<=8188||8486==a||a>=8490&&a<=8491||8494==a||a>=8576&&a<=8578||a>=12353&&a<=12436||a>=12449&&a<=12538||a>=12549&&a<=12588||a>=44032&&a<=55203||a>=19968&&a<=40869||12295==a||a>=12321&&a<=12329},ai.isNCNameChar=function(a){return a>=48&&a<=57||a>=1632&&a<=1641||a>=1776&&a<=1785||a>=2406&&a<=2415||a>=2534&&a<=2543||a>=2662&&a<=2671||a>=2790&&a<=2799||a>=2918&&a<=2927||a>=3047&&a<=3055||a>=3174&&a<=3183||a>=3302&&a<=3311||a>=3430&&a<=3439||a>=3664&&a<=3673||a>=3792&&a<=3801||a>=3872&&a<=3881||46==a||45==a||95==a||ai.isLetter(a)||a>=768&&a<=837||a>=864&&a<=865||a>=1155&&a<=1158||a>=1425&&a<=1441||a>=1443&&a<=1465||a>=1467&&a<=1469||1471==a||a>=1473&&a<=1474||1476==a||a>=1611&&a<=1618||1648==a||a>=1750&&a<=1756||a>=1757&&a<=1759||a>=1760&&a<=1764||a>=1767&&a<=1768||a>=1770&&a<=1773||a>=2305&&a<=2307||2364==a||a>=2366&&a<=2380||2381==a||a>=2385&&a<=2388||a>=2402&&a<=2403||a>=2433&&a<=2435||2492==a||2494==a||2495==a||a>=2496&&a<=2500||a>=2503&&a<=2504||a>=2507&&a<=2509||2519==a||a>=2530&&a<=2531||2562==a||2620==a||2622==a||2623==a||a>=2624&&a<=2626||a>=2631&&a<=2632||a>=2635&&a<=2637||a>=2672&&a<=2673||a>=2689&&a<=2691||2748==a||a>=2750&&a<=2757||a>=2759&&a<=2761||a>=2763&&a<=2765||a>=2817&&a<=2819||2876==a||a>=2878&&a<=2883||a>=2887&&a<=2888||a>=2891&&a<=2893||a>=2902&&a<=2903||a>=2946&&a<=2947||a>=3006&&a<=3010||a>=3014&&a<=3016||a>=3018&&a<=3021||3031==a||a>=3073&&a<=3075||a>=3134&&a<=3140||a>=3142&&a<=3144||a>=3146&&a<=3149||a>=3157&&a<=3158||a>=3202&&a<=3203||a>=3262&&a<=3268||a>=3270&&a<=3272||a>=3274&&a<=3277||a>=3285&&a<=3286||a>=3330&&a<=3331||a>=3390&&a<=3395||a>=3398&&a<=3400||a>=3402&&a<=3405||3415==a||3633==a||a>=3636&&a<=3642||a>=3655&&a<=3662||3761==a||a>=3764&&a<=3769||a>=3771&&a<=3772||a>=3784&&a<=3789||a>=3864&&a<=3865||3893==a||3895==a||3897==a||3902==a||3903==a||a>=3953&&a<=3972||a>=3974&&a<=3979||a>=3984&&a<=3989||3991==a||a>=3993&&a<=4013||a>=4017&&a<=4023||4025==a||a>=8400&&a<=8412||8417==a||a>=12330&&a<=12335||12441==a||12442==a||183==a||720==a||721==a||903==a||1600==a||3654==a||3782==a||12293==a||a>=12337&&a<=12341||a>=12445&&a<=12446||a>=12540&&a<=12542},ai.coalesceText=function(a){for(var b=a.firstChild;null!=b;b=b.nextSibling)if(3==b.nodeType||4==b.nodeType){var c=b.nodeValue,d=b;for(b=b.nextSibling;null!=b&&(3==b.nodeType||4==b.nodeType);){c+=b.nodeValue;var e=b;b=b.nextSibling,e.parentNode.removeChild(e)}if(4==d.nodeType){var f=d.parentNode;if(null==d.nextSibling)f.removeChild(d),f.appendChild(f.ownerDocument.createTextNode(c));else{var g=d.nextSibling;f.removeChild(d),f.insertBefore(f.ownerDocument.createTextNode(c),g)}}else d.nodeValue=c;if(null==b)break}else 1==b.nodeType&&ai.coalesceText(b)},ai.instance_of=function(a,b){for(;null!=a;){if(a.constructor===b)return!0;if(a===Object)break;a=a.constructor.superclass}return!1},ai.getElementById=function(a,b){if(1==a.nodeType&&(a.getAttribute("id")==b||a.getAttributeNS(null,"id")==b))return a;for(var c=a.firstChild;null!=c;c=c.nextSibling){var d=ai.getElementById(c,b);if(null!=d)return d}return null};var ak=function(){function a(b,c,d){var e=Error.call(this,function(b,c){var d=c?": "+c.toString():"";switch(b){case a.INVALID_EXPRESSION_ERR:return"Invalid expression"+d;case a.TYPE_ERR:return"Type error"+d}return null}(b,c)||d);return e.code=b,e.exception=c,e}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.superclass=Error,a.prototype.toString=function(){return this.message},a.fromMessage=function(b,c){return new a(null,c,b)},a.INVALID_EXPRESSION_ERR=51,a.TYPE_ERR=52,a}();function al(a,b,c){this.xpath=c.parse(a),this.context=new ad,this.context.namespaceResolver=new am(b)}function am(a){this.xpathNSResolver=a}function an(a){this.node=a,this.namespaceResolver=new ag}function ao(a,b){switch(b==ao.ANY_TYPE&&(a.constructor===Z?b=ao.STRING_TYPE:a.constructor===$?b=ao.NUMBER_TYPE:a.constructor===_?b=ao.BOOLEAN_TYPE:a.constructor===ab&&(b=ao.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=b,b){case ao.NUMBER_TYPE:this.numberValue=a.numberValue();return;case ao.STRING_TYPE:this.stringValue=a.stringValue();return;case ao.BOOLEAN_TYPE:this.booleanValue=a.booleanValue();return;case ao.ANY_UNORDERED_NODE_TYPE:case ao.FIRST_ORDERED_NODE_TYPE:if(a.constructor===ab){this.singleNodeValue=a.first();return}break;case ao.UNORDERED_NODE_ITERATOR_TYPE:case ao.ORDERED_NODE_ITERATOR_TYPE:if(a.constructor===ab){this.invalidIteratorState=!1,this.nodes=a.toArray(),this.iteratorIndex=0;return}break;case ao.UNORDERED_NODE_SNAPSHOT_TYPE:case ao.ORDERED_NODE_SNAPSHOT_TYPE:if(a.constructor===ab){this.nodes=a.toArray(),this.snapshotLength=this.nodes.length;return}}throw new ak(ak.TYPE_ERR)}function ap(a,b){a.createExpression=function(a,c){try{return new al(a,c,b)}catch(a){throw new ak(ak.INVALID_EXPRESSION_ERR,a)}},a.createNSResolver=function(a){return new an(a)},a.evaluate=function(c,d,e,f,g){if(f<0||f>9)throw{code:0,toString:function(){return"Request type not supported"}};return a.createExpression(c,e,b).evaluate(d,f,g)}}al.prototype={},al.prototype.constructor=al,al.superclass=Object.prototype,al.getOwnerDocument=function(a){return 9===a.nodeType?a:a.ownerDocument},al.detectHtmlDom=function(a){if(!a)return!1;var b=al.getOwnerDocument(a);try{return b.implementation.hasFeature("HTML","2.0")}catch(a){return!0}},al.prototype.evaluate=function(a,b,c){return this.context.expressionContextNode=a,this.context.caseInsensitive=al.detectHtmlDom(a),new ao(this.xpath.evaluate(this.context),b)},am.prototype={},am.prototype.constructor=am,am.superclass=Object.prototype,am.prototype.getNamespace=function(a,b){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(a)},an.prototype={},an.prototype.constructor=an,an.superclass=Object.prototype,an.prototype.lookupNamespaceURI=function(a){return this.namespaceResolver.getNamespace(a,this.node)},ao.prototype={},ao.prototype.constructor=ao,ao.superclass=Object.prototype,ao.prototype.iterateNext=function(){if(this.resultType!=ao.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=ao.ORDERED_NODE_ITERATOR_TYPE)throw new ak(ak.TYPE_ERR);return this.nodes[this.iteratorIndex++]},ao.prototype.snapshotItem=function(a){if(this.resultType!=ao.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=ao.ORDERED_NODE_SNAPSHOT_TYPE)throw new ak(ak.TYPE_ERR);return this.nodes[a]},ao.ANY_TYPE=0,ao.NUMBER_TYPE=1,ao.STRING_TYPE=2,ao.BOOLEAN_TYPE=3,ao.UNORDERED_NODE_ITERATOR_TYPE=4,ao.ORDERED_NODE_ITERATOR_TYPE=5,ao.UNORDERED_NODE_SNAPSHOT_TYPE=6,ao.ORDERED_NODE_SNAPSHOT_TYPE=7,ao.ANY_UNORDERED_NODE_TYPE=8,ao.FIRST_ORDERED_NODE_TYPE=9;try{var aq=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(aq=!1)}catch(a){}aq&&ap(document,new s)}catch(a){}ap(a,new s),function(){var b=new s,c=new ag,d=new af,e=new ae;function f(a){return{getNamespace:function(b,d){return a(b,d)||c.getNamespace(b,d)}}}function g(a){if(null==a||a instanceof Z||a instanceof _||a instanceof $||a instanceof ab)return a;switch(typeof a){case"string":return new Z(a);case"boolean":return new _(a);case"number":return new $(a)}var b=new ab;return b.addArray([].concat(a)),b}function h(a){return{getFunction:function(b,c){var e=a(b,c);return e?function(a){var b=Array.prototype.slice.call(arguments,1).map(function(b){return b.evaluate(a)});return g(e.apply(this,[].concat(a,b)))}:d.getFunction(b,c)}}}function i(a){return{getVariable:function(b,c){return g(a(b,c))}}}function j(a,b,c){a in c&&(b[a]=c[a])}var k={evaluate:function(a){var b,g,k;return b=this.expression,g=new ad,a?(g.namespaceResolver=function(a){return a&&"function"==typeof a.getNamespace?f(a.getNamespace.bind(a)):"function"==typeof a?f(a):"object"==typeof a?f(function(b){return a[b]}):c}(a.namespaces),g.functionResolver=function(a){return a&&"function"==typeof a.getFunction?h(a.getFunction.bind(a)):"function"==typeof a?h(a):"object"==typeof a?h(function(b){return a[b]}):d}(a.functions),g.variableResolver=function(a){if(a){if("function"==typeof a.getVariable)return i(a.getVariable.bind(a));if("function"==typeof a)return i(a);if("object"==typeof a)return i(function(b){return a[b]})}return e}(a.variables),g.expressionContextNode=a.node,j("allowAnyNamespaceForNoPrefix",g,a),j("isHtml",g,a)):g.namespaceResolver=c,k=g,b.evaluate(k)},evaluateNumber:function(a){return this.evaluate(a).numberValue()},evaluateString:function(a){return this.evaluate(a).stringValue()},evaluateBoolean:function(a){return this.evaluate(a).booleanValue()},evaluateNodeSet:function(a){return this.evaluate(a).nodeset()},select:function(a){return this.evaluateNodeSet(a).toArray()},select1:function(a){return this.select(a)[0]}};a.parse=function(a){return Object.create(k,{expression:{value:b.parse(a)}})}}(),r(a,{XPath:t,XPathParser:s,XPathResult:ao,Step:T,PathExpr:N,NodeTest:V,LocationPath:S,OrOperation:z,AndOperation:A,BarOperation:M,EqualsOperation:B,NotEqualOperation:C,LessThanOperation:D,GreaterThanOperation:E,LessThanOrEqualOperation:F,GreaterThanOrEqualOperation:G,PlusOperation:H,MinusOperation:I,MultiplyOperation:J,DivOperation:K,ModOperation:L,UnaryMinusOperation:x,FunctionCall:X,VariableReference:W,XPathContext:ad,XNodeSet:ab,XBoolean:_,XString:Z,XNumber:$,NamespaceResolver:ag,FunctionResolver:af,VariableResolver:ae,Utilities:ai}),a.select=function(b,c,d){return a.selectWithResolver(b,c,null,d)},a.useNamespaces=function(b){var c={mappings:b||{},lookupNamespaceURI:function(a){return this.mappings[a]}};return function(b,d,e){return a.selectWithResolver(b,d,c,e)}},a.selectWithResolver=function(a,b,c,d){var e=new al(a,c,new s),f=ao.ANY_TYPE,g=e.evaluate(b,f,null);return g.resultType==ao.STRING_TYPE?g=g.stringValue:g.resultType==ao.NUMBER_TYPE?g=g.numberValue:g.resultType==ao.BOOLEAN_TYPE?g=g.booleanValue:(g=g.nodes,d&&(g=g[0])),g},a.select1=function(b,c){return a.select(b,c,!0)};var ar=function(a){return function(b){return g(b)&&b.nodeType===a}};r(a,{isNodeLike:g,isArrayOfNodes:function(a){return Array.isArray(a)&&a.every(g)},isElement:ar(1),isAttribute:ar(2),isTextNode:ar(3),isCDATASection:ar(4),isProcessingInstruction:ar(7),isComment:ar(8),isDocumentNode:ar(9),isDocumentTypeNode:ar(10),isDocumentFragment:ar(11)})}(b)},32748:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.HmacSha1=b.RsaSha512=b.RsaSha256=b.RsaSha1=void 0;let d=c(55511),e=c(75546);class f{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createSign("RSA-SHA1");return c.update(a),c.sign(b,"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createVerify("RSA-SHA1");return e.update(a),e.verify(b,c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#rsa-sha1"}}b.RsaSha1=f;class g{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createSign("RSA-SHA256");return c.update(a),c.sign(b,"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createVerify("RSA-SHA256");return e.update(a),e.verify(b,c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"}}b.RsaSha256=g;class h{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createSign("RSA-SHA512");return c.update(a),c.sign(b,"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createVerify("RSA-SHA512");return e.update(a),e.verify(b,c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"}}b.RsaSha512=h;class i{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createHmac("SHA1",b);return c.update(a),c.digest("base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createHmac("SHA1",b);return e.update(a),e.digest("base64")===c}),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#hmac-sha1"}}b.HmacSha1=i},33773:function(a,b,c){(function(){var b,d,e,f,g,h,i,j;({isObject:j}=c(43594)),i=c(73067),b=c(26468),d=c(77192),f=c(71920),e=c(1243),g=c(48813),h=c(87074),a.exports=(function(){class a extends i{constructor(a,c,d){var e,f,g,h;if(super(a),this.type=b.DocType,a.children){for(f=0,g=(h=a.children).length;f<g;f++)if((e=h[f]).type===b.Element){this.name=e.name;break}}this.documentObject=a,j(c)&&({pubID:c,sysID:d}=c),null==d&&([d,c]=[c,d]),null!=c&&(this.pubID=this.stringify.dtdPubID(c)),null!=d&&(this.sysID=this.stringify.dtdSysID(d))}element(a,b){var c;return c=new e(this,a,b),this.children.push(c),this}attList(a,b,c,e,f){var g;return g=new d(this,a,b,c,e,f),this.children.push(g),this}entity(a,b){var c;return c=new f(this,!1,a,b),this.children.push(c),this}pEntity(a,b){var c;return c=new f(this,!0,a,b),this.children.push(c),this}notation(a,b){var c;return c=new g(this,a,b),this.children.push(c),this}toString(a){return this.options.writer.docType(this,this.options.writer.filterOptions(a))}ele(a,b){return this.element(a,b)}att(a,b,c,d,e){return this.attList(a,b,c,d,e)}ent(a,b){return this.entity(a,b)}pent(a,b){return this.pEntity(a,b)}not(a,b){return this.notation(a,b)}up(){return this.root()||this.documentObject}isEqualNode(a){return!!super.isEqualNode(a)&&a.name===this.name&&a.publicId===this.publicId&&a.systemId===this.systemId}}return Object.defineProperty(a.prototype,"entities",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type!==b.EntityDeclaration||a.pe||(e[a.name]=a);return new h(e)}}),Object.defineProperty(a.prototype,"notations",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type===b.NotationDeclaration&&(e[a.name]=a);return new h(e)}}),Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(a.prototype,"internalSubset",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),a}).call(this)}).call(this)},34153:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.signSamlPost=e,b.signAuthnRequestPost=function(a,b){return e(a,'/*[local-name(.)="AuthnRequest" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:protocol"]',b)};let d=c(65756);function e(a,b,c){return(0,d.signXml)(a,b,{reference:b+'/*[local-name(.)="Issuer" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:assertion"]',action:"after"},c)}},34370:function(a){(function(){a.exports=(function(){class a{constructor(a){this.arr=a||[]}item(a){return this.arr[a]||null}contains(a){return -1!==this.arr.indexOf(a)}}return Object.defineProperty(a.prototype,"length",{get:function(){return this.arr.length}}),a}).call(this)}).call(this)},35312:(a,b)=>{"use strict";var c,d;Object.defineProperty(b,"__esModule",{value:!0}),b.SamlStatusError=b.ValidateInResponseTo=b.isValidSamlSigningOptions=void 0,b.isValidSamlSigningOptions=a=>null!=a.privateKey,(d=c||(b.ValidateInResponseTo=c={})).never="never",d.ifPresent="ifPresent",d.always="always";class e extends Error{constructor(a,b){super(a),this.xmlStatus=b}}b.SamlStatusError=e},35387:(a,b,c)=>{a.exports=c(91848)},35971:function(a){(function(){a.exports=function(){function a(){}return a.prototype.hasFeature=function(a,b){return!0},a.prototype.createDocumentType=function(a,b,c){throw Error("This DOM method is not implemented.")},a.prototype.createDocument=function(a,b,c){throw Error("This DOM method is not implemented.")},a.prototype.createHTMLDocument=function(a){throw Error("This DOM method is not implemented.")},a.prototype.getFeature=function(a,b){throw Error("This DOM method is not implemented.")},a}()}).call(this)},36481:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.assertRequired=function(a,b){if(null==a||"string"==typeof a&&0===a.length)throw TypeError(null!=b?b:"value does not exist")},b.assertBooleanIfPresent=function(a,b){if(null!=a&&"boolean"!=typeof a)throw TypeError(null!=b?b:"value is set but not boolean")},b.signXmlResponse=function(a,b){let c='//*[local-name(.)="Response" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:protocol"]';return(0,d.signXml)(a,c,{reference:c,action:"append"},b)},b.signXmlMetadata=function(a,b){let c='//*[local-name(.)="EntityDescriptor" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:metadata"]';return(0,d.signXml)(a,c,{reference:c,action:"prepend"},b)};let d=c(65756)},36700:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(d)}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))},c}(c(92478))}).call(this)},41892:(a,b,c)=>{"use strict";let d,e=c(21820),f=c(83997),g=c(92535),{env:h}=process;function i(a){return 0!==a&&{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}function j(a,b){if(0===d)return 0;if(g("color=16m")||g("color=full")||g("color=truecolor"))return 3;if(g("color=256"))return 2;if(a&&!b&&void 0===d)return 0;let c=d||0;if("dumb"===h.TERM)return c;if("win32"===process.platform){let a=e.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in h)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(a=>a in h)||"codeship"===h.CI_NAME?1:c;if("TEAMCITY_VERSION"in h)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(h.TEAMCITY_VERSION);if("truecolor"===h.COLORTERM)return 3;if("TERM_PROGRAM"in h){let a=parseInt((h.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(h.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(h.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(h.TERM)||"COLORTERM"in h?1:c}g("no-color")||g("no-colors")||g("color=false")||g("color=never")?d=0:(g("color")||g("colors")||g("color=true")||g("color=always"))&&(d=1),"FORCE_COLOR"in h&&(d="true"===h.FORCE_COLOR?1:"false"===h.FORCE_COLOR?0:0===h.FORCE_COLOR.length?1:Math.min(parseInt(h.FORCE_COLOR,10),3)),a.exports={supportsColor:function(a){return i(j(a,a&&a.isTTY))},stdout:i(j(!0,f.isatty(1))),stderr:i(j(!0,f.isatty(2)))}},42429:(a,b)=>{!function(a){"use strict";var b,c,d,e,f=function(a,b){for(var c=0;c<b.length;c+=1)a(b[c],c,b)},g=function(a,b,c){var d=b;return f(function(b,c){d=a(d,b,c)},c),d},h=function(a,b){var c=Array(b.length);return f(function(b,d){c[d]=a(b)},b),c},i=function(a,b){var c=[];return f(function(b,d){a(b,d)&&c.push(b)},b),c},j=function(a,b){for(var c=0;c<a.length;c+=1)if(a[c]===b)return!0;return!1};function k(a){return a.toString()}var l=function(a,b){return b.join(a)},m=function(a,b,c){return a+c+b},n=Array.prototype.concat;function o(a,b){for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(c[f]=e[f])}return c}function p(){this.init()}function q(a){this.expression=a}function r(a,b,c){b in a||(a[b]=c)}function s(){}function t(a){arguments.length>0&&this.init(a)}function u(a){arguments.length>0&&this.init(a)}function v(a,b){arguments.length>0&&this.init(a,b)}function w(a,b){arguments.length>0&&this.init(a,b)}function x(a,b){arguments.length>0&&this.init(a,b)}function y(a,b){arguments.length>0&&this.init(a,b)}function z(a,b){arguments.length>0&&this.init(a,b)}function A(a,b){arguments.length>0&&this.init(a,b)}function B(a,b){arguments.length>0&&this.init(a,b)}function C(a,b){arguments.length>0&&this.init(a,b)}function D(a,b){arguments.length>0&&this.init(a,b)}function E(a,b){arguments.length>0&&this.init(a,b)}function F(a,b){arguments.length>0&&this.init(a,b)}function G(a,b){arguments.length>0&&this.init(a,b)}function H(a,b){arguments.length>0&&this.init(a,b)}function I(a,b){arguments.length>0&&this.init(a,b)}function J(a,b){arguments.length>0&&this.init(a,b)}function K(a,b,c){arguments.length>0&&this.init(a,b,c)}function L(a,b,c){return K.applyPredicates(a.predicates,b,K.applyStep(a,b,c))}function M(a,b,c){return function(a){for(var b=[],c=0;c<a.length;c+=32767){var d=a.slice(c,c+32767);b=n.apply(b,d)}return b}(h(L.bind(null,c,a),b))}function N(a,b){arguments.length>0&&this.init(a,b)}function O(a,b,c){arguments.length>0&&this.init(a,b,c)}function P(a,b){arguments.length>0&&this.init(a,b)}function Q(a){arguments.length>0&&this.init(a)}function R(a,b){arguments.length>0&&this.init(a,b)}p.prototype={},p.prototype.constructor=p,p.superclass=Object.prototype,p.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(a){return new w(a[0],a[2])},this.reduceActions[5]=function(a){return new x(a[0],a[2])},this.reduceActions[7]=function(a){return new y(a[0],a[2])},this.reduceActions[8]=function(a){return new z(a[0],a[2])},this.reduceActions[10]=function(a){return new A(a[0],a[2])},this.reduceActions[11]=function(a){return new B(a[0],a[2])},this.reduceActions[12]=function(a){return new C(a[0],a[2])},this.reduceActions[13]=function(a){return new D(a[0],a[2])},this.reduceActions[15]=function(a){return new E(a[0],a[2])},this.reduceActions[16]=function(a){return new F(a[0],a[2])},this.reduceActions[18]=function(a){return new G(a[0],a[2])},this.reduceActions[19]=function(a){return new H(a[0],a[2])},this.reduceActions[20]=function(a){return new I(a[0],a[2])},this.reduceActions[22]=function(a){return new u(a[1])},this.reduceActions[24]=function(a){return new J(a[0],a[2])},this.reduceActions[25]=function(a){return new K(void 0,void 0,a[0])},this.reduceActions[27]=function(a){return a[0].locationPath=a[2],a[0]},this.reduceActions[28]=function(a){return a[0].locationPath=a[2],a[0].locationPath.steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0]},this.reduceActions[29]=function(a){return new K(a[0],[],void 0)},this.reduceActions[30]=function(a){return ac.instance_of(a[0],K)?(void 0==a[0].filterPredicates&&(a[0].filterPredicates=[]),a[0].filterPredicates.push(a[1]),a[0]):new K(a[0],[a[1]],void 0)},this.reduceActions[32]=function(a){return a[1]},this.reduceActions[33]=function(a){return new T(a[0])},this.reduceActions[34]=function(a){return new U(a[0])},this.reduceActions[36]=function(a){return new R(a[0],[])},this.reduceActions[37]=function(a){return new R(a[0],a[2])},this.reduceActions[38]=function(a){return[a[0]]},this.reduceActions[39]=function(a){return a[2].unshift(a[0]),a[2]},this.reduceActions[43]=function(a){return new N(!0,[])},this.reduceActions[44]=function(a){return a[1].absolute=!0,a[1]},this.reduceActions[46]=function(a){return new N(!1,[a[0]])},this.reduceActions[47]=function(a){return a[0].steps.push(a[2]),a[0]},this.reduceActions[49]=function(a){return new O(a[0],a[1],[])},this.reduceActions[50]=function(a){return new O(O.CHILD,a[0],[])},this.reduceActions[51]=function(a){return new O(a[0],a[1],a[2])},this.reduceActions[52]=function(a){return new O(O.CHILD,a[0],a[1])},this.reduceActions[54]=function(a){return[a[0]]},this.reduceActions[55]=function(a){return a[1].unshift(a[0]),a[1]},this.reduceActions[56]=function(a){if("ancestor"==a[0])return O.ANCESTOR;if("ancestor-or-self"==a[0])return O.ANCESTORORSELF;if("attribute"==a[0])return O.ATTRIBUTE;if("child"==a[0])return O.CHILD;if("descendant"==a[0])return O.DESCENDANT;else if("descendant-or-self"==a[0])return O.DESCENDANTORSELF;else if("following"==a[0])return O.FOLLOWING;else if("following-sibling"==a[0])return O.FOLLOWINGSIBLING;else if("namespace"==a[0])return O.NAMESPACE;else if("parent"==a[0])return O.PARENT;else if("preceding"==a[0])return O.PRECEDING;else if("preceding-sibling"==a[0])return O.PRECEDINGSIBLING;else if("self"==a[0])return O.SELF;return -1},this.reduceActions[57]=function(a){return O.ATTRIBUTE},this.reduceActions[59]=function(a){return"comment"==a[0]?P.commentTest:"text"==a[0]?P.textTest:"processing-instruction"==a[0]?P.anyPiTest:"node"==a[0]?P.nodeTest:new P(-1,void 0)},this.reduceActions[60]=function(a){return new P.PITest(a[2])},this.reduceActions[61]=function(a){return a[1]},this.reduceActions[63]=function(a){return a[1].absolute=!0,a[1].steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[1]},this.reduceActions[64]=function(a){return a[0].steps.push(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0].steps.push(a[2]),a[0]},this.reduceActions[65]=function(a){return new O(O.SELF,P.nodeTest,[])},this.reduceActions[66]=function(a){return new O(O.PARENT,P.nodeTest,[])},this.reduceActions[67]=function(a){return new Q(a[1])},this.reduceActions[68]=function(a){return P.nameTestAny},this.reduceActions[69]=function(a){return new P.NameTestPrefixAny(a[0].split(":")[0])},this.reduceActions[70]=function(a){return new P.NameTestQName(a[0])}},p.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],p.actionTableNumber=[" 1 0 /.-,+*)(' & %$ # \"!"," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY "," 1 0 /.-,+*)(' & %$ # \"!","K1 KKKKKKKK . +*)('KKKKKK KK# K\" "," 1 0 /.-,+*)(' & %$ # \"!"," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q "," 1 . +*)(' # \" ","b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX "," 1 0 /.-,+*)(' & %$m # \"!","_ f________ ______e __ _ "," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 . +*)(' # \" "," 1 . +*)(' # \" ","> >>>>>>>>> >>>>>>> >> >> "," 1 . +*)(' # \" "," 1 . +*)(' # \" ","Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," \x87 ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," \x88 "," F\x89 ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," \x8a ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE "," 1 0 /.-,+*)(' & %$ # \"!","] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],p.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","\x80456789:;<=>?@ AB CDEFGH IJ\x81"," \x82 EFGH IJ "," \x83 EFGH IJ "," "," \x84 GH IJ "," \x85 GH IJ "," i \x86 "," i \x87 "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ AB\x8cqCDEFGH IJ "," "," "],p.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],p.DOUBLEDOT=2,p.DOUBLECOLON=3,p.DOUBLESLASH=4,p.NOTEQUAL=5,p.LESSTHANOREQUAL=6,p.GREATERTHANOREQUAL=7,p.AND=8,p.OR=9,p.MOD=10,p.DIV=11,p.MULTIPLYOPERATOR=12,p.FUNCTIONNAME=13,p.AXISNAME=14,p.LITERAL=15,p.NUMBER=16,p.ASTERISKNAMETEST=17,p.QNAME=18,p.NCNAMECOLONASTERISK=19,p.NODETYPE=20,p.PROCESSINGINSTRUCTIONWITHLITERAL=21,p.EQUALS=22,p.LESSTHAN=23,p.GREATERTHAN=24,p.PLUS=25,p.MINUS=26,p.BAR=27,p.SLASH=28,p.LEFTPARENTHESIS=29,p.RIGHTPARENTHESIS=30,p.COMMA=31,p.AT=32,p.LEFTBRACKET=33,p.RIGHTBRACKET=34,p.DOT=35,p.DOLLAR=36,p.prototype.tokenize=function(a){for(var b=[],c=[],d=a+"\0",e=0,f=d.charAt(e++);;){for(;" "==f||" "==f||"\r"==f||"\n"==f;)f=d.charAt(e++);if("\0"==f||e>=d.length)break;if("("==f){b.push(p.LEFTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if(")"==f){b.push(p.RIGHTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if("["==f){b.push(p.LEFTBRACKET),c.push(f),f=d.charAt(e++);continue}if("]"==f){b.push(p.RIGHTBRACKET),c.push(f),f=d.charAt(e++);continue}if("@"==f){b.push(p.AT),c.push(f),f=d.charAt(e++);continue}if(","==f){b.push(p.COMMA),c.push(f),f=d.charAt(e++);continue}if("|"==f){b.push(p.BAR),c.push(f),f=d.charAt(e++);continue}if("+"==f){b.push(p.PLUS),c.push(f),f=d.charAt(e++);continue}if("-"==f){b.push(p.MINUS),c.push(f),f=d.charAt(e++);continue}if("="==f){b.push(p.EQUALS),c.push(f),f=d.charAt(e++);continue}if("$"==f){b.push(p.DOLLAR),c.push(f),f=d.charAt(e++);continue}if("."==f){if("."==(f=d.charAt(e++))){b.push(p.DOUBLEDOT),c.push(".."),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g="."+f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}b.push(p.DOT),c.push(".");continue}if("'"==f||'"'==f){for(var h=f,i="";e<d.length&&(f=d.charAt(e))!==h;)i+=f,e+=1;if(f!==h)throw ad.fromMessage("Unterminated string literal: "+h+i);e+=1,b.push(p.LITERAL),c.push(i),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g=f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);if("."==f&&d.charAt(e)>="0"&&"9">=d.charAt(e))for(g+=f,g+=d.charAt(e++),f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}if("*"==f){if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){b.push(p.MULTIPLYOPERATOR),c.push(f),f=d.charAt(e++);continue}}b.push(p.ASTERISKNAMETEST),c.push(f),f=d.charAt(e++);continue}if(":"==f&&":"==d.charAt(e)){b.push(p.DOUBLECOLON),c.push("::"),e++,f=d.charAt(e++);continue}if("/"==f){if("/"==(f=d.charAt(e++))){b.push(p.DOUBLESLASH),c.push("//"),f=d.charAt(e++);continue}b.push(p.SLASH),c.push("/");continue}if("!"==f&&"="==d.charAt(e)){b.push(p.NOTEQUAL),c.push("!="),e++,f=d.charAt(e++);continue}if("<"==f){if("="==d.charAt(e)){b.push(p.LESSTHANOREQUAL),c.push("<="),e++,f=d.charAt(e++);continue}b.push(p.LESSTHAN),c.push("<"),f=d.charAt(e++);continue}if(">"==f){if("="==d.charAt(e)){b.push(p.GREATERTHANOREQUAL),c.push(">="),e++,f=d.charAt(e++);continue}b.push(p.GREATERTHAN),c.push(">"),f=d.charAt(e++);continue}if("_"==f||ac.isLetter(f.charCodeAt(0))){var k=f;for(f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){if("and"==k){b.push(p.AND),c.push(k);continue}if("or"==k){b.push(p.OR),c.push(k);continue}if("mod"==k){b.push(p.MOD),c.push(k);continue}if("div"==k){b.push(p.DIV),c.push(k);continue}}}if(":"==f){if("*"==d.charAt(e)){b.push(p.NCNAMECOLONASTERISK),c.push(k+":*"),e++,f=d.charAt(e++);continue}if("_"==d.charAt(e)||ac.isLetter(d.charCodeAt(e))){for(k+=":",f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if("("==f){b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}if(":"==d.charAt(e)){b.push(p.AXISNAME),c.push(k);continue}}if("("==f){if("comment"==k||"text"==k||"node"==k){b.push(p.NODETYPE),c.push(k);continue}if("processing-instruction"==k){")"==d.charAt(e)?b.push(p.NODETYPE):b.push(p.PROCESSINGINSTRUCTIONWITHLITERAL),c.push(k);continue}b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}throw Error("Unexpected character "+f)}return b.push(1),c.push("[EOF]"),[b,c]},p.SHIFT="s",p.REDUCE="r",p.ACCEPT="a",p.prototype.parse=function(a){var b,c,d,e,f=this.tokenize(a);if(void 0!=f){b=f[0],c=f[1];var g=0,h=[],i=[],j=[];for(h.push(0),i.push(1),j.push("_S"),d=b[g],e=c[g++];;)switch(a=h[h.length-1],p.actionTable[a].charAt(d-1)){case p.SHIFT:i.push(-d),j.push(e),h.push(p.actionTableNumber[a].charCodeAt(d-1)-32),d=b[g],e=c[g++];break;case p.REDUCE:for(var k=p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][1],l=[],m=0;m<k;m++)i.pop(),l.unshift(j.pop()),h.pop();var n=h[h.length-1];i.push(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]),void 0==this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32]?j.push(l[0]):j.push(this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32](l)),h.push(p.gotoTable[n].charCodeAt(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]-2)-33);break;case p.ACCEPT:return new q(j.pop());default:throw Error("XPath parse error")}}},q.prototype={},q.prototype.constructor=q,q.superclass=Object.prototype,q.prototype.toString=function(){return this.expression.toString()},q.prototype.evaluate=function(a){return a.contextNode=a.expressionContextNode,a.contextSize=1,a.contextPosition=1,a.isHtml&&(r(a,"caseInsensitive",!0),r(a,"allowAnyNamespaceForNoPrefix",!0)),r(a,"caseInsensitive",!1),this.expression.evaluate(a)},q.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",q.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",s.prototype={},s.prototype.constructor=s,s.superclass=Object.prototype,s.prototype.init=function(){},s.prototype.toString=function(){return"<Expression>"},s.prototype.evaluate=function(a){throw Error("Could not evaluate expression.")},t.prototype=new s,t.prototype.constructor=t,t.superclass=s.prototype,t.prototype.init=function(a){this.rhs=a},u.prototype=new t,u.prototype.constructor=u,u.superclass=t.prototype,u.prototype.init=function(a){u.superclass.init.call(this,a)},u.prototype.evaluate=function(a){return this.rhs.evaluate(a).number().negate()},u.prototype.toString=function(){return"-"+this.rhs.toString()},v.prototype=new s,v.prototype.constructor=v,v.superclass=s.prototype,v.prototype.init=function(a,b){this.lhs=a,this.rhs=b},w.prototype=new v,w.prototype.constructor=w,w.superclass=v.prototype,w.prototype.init=function(a,b){w.superclass.init.call(this,a,b)},w.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},w.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?b:this.rhs.evaluate(a).bool()},x.prototype=new v,x.prototype.constructor=x,x.superclass=v.prototype,x.prototype.init=function(a,b){x.superclass.init.call(this,a,b)},x.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},x.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?this.rhs.evaluate(a).bool():b},y.prototype=new v,y.prototype.constructor=y,y.superclass=v.prototype,y.prototype.init=function(a,b){y.superclass.init.call(this,a,b)},y.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},y.prototype.evaluate=function(a){return this.lhs.evaluate(a).equals(this.rhs.evaluate(a))},z.prototype=new v,z.prototype.constructor=z,z.superclass=v.prototype,z.prototype.init=function(a,b){z.superclass.init.call(this,a,b)},z.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},z.prototype.evaluate=function(a){return this.lhs.evaluate(a).notequal(this.rhs.evaluate(a))},A.prototype=new v,A.prototype.constructor=A,A.superclass=v.prototype,A.prototype.init=function(a,b){A.superclass.init.call(this,a,b)},A.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthan(this.rhs.evaluate(a))},A.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},B.prototype=new v,B.prototype.constructor=B,B.superclass=v.prototype,B.prototype.init=function(a,b){B.superclass.init.call(this,a,b)},B.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthan(this.rhs.evaluate(a))},B.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},C.prototype=new v,C.prototype.constructor=C,C.superclass=v.prototype,C.prototype.init=function(a,b){C.superclass.init.call(this,a,b)},C.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthanorequal(this.rhs.evaluate(a))},C.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},D.prototype=new v,D.prototype.constructor=D,D.superclass=v.prototype,D.prototype.init=function(a,b){D.superclass.init.call(this,a,b)},D.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthanorequal(this.rhs.evaluate(a))},D.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},E.prototype=new v,E.prototype.constructor=E,E.superclass=v.prototype,E.prototype.init=function(a,b){E.superclass.init.call(this,a,b)},E.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().plus(this.rhs.evaluate(a).number())},E.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},F.prototype=new v,F.prototype.constructor=F,F.superclass=v.prototype,F.prototype.init=function(a,b){F.superclass.init.call(this,a,b)},F.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().minus(this.rhs.evaluate(a).number())},F.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},G.prototype=new v,G.prototype.constructor=G,G.superclass=v.prototype,G.prototype.init=function(a,b){G.superclass.init.call(this,a,b)},G.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().multiply(this.rhs.evaluate(a).number())},G.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},H.prototype=new v,H.prototype.constructor=H,H.superclass=v.prototype,H.prototype.init=function(a,b){H.superclass.init.call(this,a,b)},H.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().div(this.rhs.evaluate(a).number())},H.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},I.prototype=new v,I.prototype.constructor=I,I.superclass=v.prototype,I.prototype.init=function(a,b){I.superclass.init.call(this,a,b)},I.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().mod(this.rhs.evaluate(a).number())},I.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},J.prototype=new v,J.prototype.constructor=J,J.superclass=v.prototype,J.prototype.init=function(a,b){J.superclass.init.call(this,a,b)},J.prototype.evaluate=function(a){return this.lhs.evaluate(a).nodeset().union(this.rhs.evaluate(a).nodeset())},J.prototype.toString=function(){return h(k,[this.lhs,this.rhs]).join(" | ")},K.prototype=new s,K.prototype.constructor=K,K.superclass=s.prototype,K.prototype.init=function(a,b,c){K.superclass.init.call(this),this.filter=a,this.filterPredicates=b,this.locationPath=c},K.applyPredicates=function(a,b,c){if(0===a.length)return c;var d=b.extend({});return g(function(a,b){return d.contextSize=a.length,i(function(a,c){return d.contextNode=a,d.contextPosition=c+1,K.predicateMatches(b,d)},a)},c,a)},K.getRoot=function(a,b){var c=b[0];if(9===c.nodeType)return c;if(a.virtualRoot)return a.virtualRoot;var d=c.ownerDocument;if(d)return d;for(var e=c;null!=e.parentNode;)e=e.parentNode;return e},K.applyStep=function(a,b,c){var d,e,f=[];switch(b.contextNode=c,a.axis){case O.ANCESTOR:if(b.contextNode===b.virtualRoot)break;for(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);)d=d.parentNode;break;case O.ANCESTORORSELF:for(var d=b.contextNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);d=2==d.nodeType?K.getOwnerElement(d):d.parentNode);break;case O.ATTRIBUTE:var g=b.contextNode.attributes;if(null!=g)for(var h=0;h<g.length;h++){var d=g.item(h);a.nodeTest.matches(d,b)&&f.push(d)}break;case O.CHILD:for(var d=b.contextNode.firstChild;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.DESCENDANT:for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.DESCENDANTORSELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode);for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.FOLLOWING:if(b.contextNode===b.virtualRoot)break;var e=[];null!=b.contextNode.firstChild?e.unshift(b.contextNode.firstChild):e.unshift(b.contextNode.nextSibling);for(var d=b.contextNode.parentNode;null!=d&&9!=d.nodeType&&d!==b.virtualRoot;d=d.parentNode)e.unshift(d.nextSibling);do for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;while(e.length>0);break;case O.FOLLOWINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.nextSibling;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.NAMESPACE:var i={};if(1==b.contextNode.nodeType){i.xml=q.XML_NAMESPACE_URI,i.xmlns=q.XMLNS_NAMESPACE_URI;for(var d=b.contextNode;null!=d&&1==d.nodeType;d=d.parentNode)for(var h=0;h<d.attributes.length;h++){var j=d.attributes.item(h),k=String(j.name);if("xmlns"==k)void 0==i[""]&&(i[""]=j.value);else if(k.length>6&&"xmlns:"==k.substring(0,6)){var l=k.substring(6,k.length);void 0==i[l]&&(i[l]=j.value)}}for(var l in i){var m=new Y(l,i[l],b.contextNode);a.nodeTest.matches(m,b)&&f.push(m)}}break;case O.PARENT:d=null,b.contextNode!==b.virtualRoot&&(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode),null!=d&&a.nodeTest.matches(d,b)&&f.push(d);break;case O.PRECEDING:e=null!=b.virtualRoot?[b.virtualRoot]:[function(a){for(;a&&a.parentNode;)a=a.parentNode;return a}(b.contextNode)];a:for(;e.length>0;)for(var d=e.pop();null!=d;){if(d==b.contextNode)break a;a.nodeTest.matches(d,b)&&f.unshift(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling}break;case O.PRECEDINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.previousSibling;null!=d;d=d.previousSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.SELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode)}return f},K.applySteps=function(a,b,c){return g(M.bind(null,b),c,a)},K.prototype.applyFilter=function(a,b){if(!this.filter)return{nodes:[a.contextNode]};var c=this.filter.evaluate(a);if(!ac.instance_of(c,X)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:c}}return{nodes:K.applyPredicates(this.filterPredicates||[],b,c.toUnsortedArray())}},K.applyLocationPath=function(a,b,c){if(!a)return c;var d=a.absolute?[K.getRoot(b,c)]:c;return K.applySteps(a.steps,b,d)},K.prototype.evaluate=function(a){var b=o(new Z,a),c=this.applyFilter(a,b);if("nonNodes"in c)return c.nonNodes;var d=new X;return d.addArray(K.applyLocationPath(this.locationPath,b,c.nodes)),d},K.predicateMatches=function(a,b){var c=a.evaluate(b);return ac.instance_of(c,U)?b.contextPosition===c.numberValue():c.booleanValue()},K.predicateString=function(a){return m("[","]",a.toString())},K.predicatesString=function(a){return l("",h(K.predicateString,a))},K.prototype.toString=function(){if(void 0!=this.filter){var a=k(this.filter);return ac.instance_of(this.filter,T)?m("'","'",a):void 0!=this.filterPredicates&&this.filterPredicates.length?m("(",")",a)+K.predicatesString(this.filterPredicates):void 0!=this.locationPath?a+(this.locationPath.absolute?"":"/")+k(this.locationPath):a}return k(this.locationPath)},K.getOwnerElement=function(a){if(a.ownerElement)return a.ownerElement;try{if(a.selectSingleNode)return a.selectSingleNode("..")}catch(a){}for(var b=(9==a.nodeType?a:a.ownerDocument).getElementsByTagName("*"),c=0;c<b.length;c++)for(var d=b.item(c),e=d.attributes,f=0;f<e.length;f++)if(e.item(f)===a)return d;return null},N.prototype={},N.prototype.constructor=N,N.superclass=Object.prototype,N.prototype.init=function(a,b){this.absolute=a,this.steps=b},N.prototype.toString=function(){return(this.absolute?"/":"")+h(k,this.steps).join("/")},O.prototype={},O.prototype.constructor=O,O.superclass=Object.prototype,O.prototype.init=function(a,b,c){this.axis=a,this.nodeTest=b,this.predicates=c},O.prototype.toString=function(){return O.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+K.predicatesString(this.predicates)},O.ANCESTOR=0,O.ANCESTORORSELF=1,O.ATTRIBUTE=2,O.CHILD=3,O.DESCENDANT=4,O.DESCENDANTORSELF=5,O.FOLLOWING=6,O.FOLLOWINGSIBLING=7,O.NAMESPACE=8,O.PARENT=9,O.PRECEDING=10,O.PRECEDINGSIBLING=11,O.SELF=12,O.STEPNAMES=g(function(a,b){return a[b[0]]=b[1],a},{},[[O.ANCESTOR,"ancestor"],[O.ANCESTORORSELF,"ancestor-or-self"],[O.ATTRIBUTE,"attribute"],[O.CHILD,"child"],[O.DESCENDANT,"descendant"],[O.DESCENDANTORSELF,"descendant-or-self"],[O.FOLLOWING,"following"],[O.FOLLOWINGSIBLING,"following-sibling"],[O.NAMESPACE,"namespace"],[O.PARENT,"parent"],[O.PRECEDING,"preceding"],[O.PRECEDINGSIBLING,"preceding-sibling"],[O.SELF,"self"]]),P.prototype={},P.prototype.constructor=P,P.superclass=Object.prototype,P.prototype.init=function(a,b){this.type=a,this.value=b},P.prototype.toString=function(){return"<unknown nodetest type>"},P.prototype.matches=function(a,b){console.warn("unknown node test type")},P.NAMETESTANY=0,P.NAMETESTPREFIXANY=1,P.NAMETESTQNAME=2,P.COMMENT=3,P.TEXT=4,P.PI=5,P.NODE=6,P.isNodeType=function(a){return function(b){return j(a,b.nodeType)}},P.makeNodeTestType=function(a,b,c){var d=c||function(){};return d.prototype=new P(a),d.prototype.constructor=d,o(d.prototype,b),d},P.makeNodeTypeTest=function(a,b,c){return new(P.makeNodeTestType(a,{matches:P.isNodeType(b),toString:function(){return c}}))},P.hasPrefix=function(a){return a.prefix||-1!==(a.nodeName||a.tagName).indexOf(":")},P.isElementOrAttribute=P.isNodeType([1,2]),P.nameSpaceMatches=function(a,b,c){var d=c.namespaceURI||"";if(!a)return!d||b.allowAnyNamespaceForNoPrefix&&!P.hasPrefix(c);var e=b.namespaceResolver.getNamespace(a,b.expressionContextNode);if(null==e)throw Error("Cannot resolve QName "+a);return e===d},P.localNameMatches=function(a,b,c){var d=c.localName||c.nodeName;return b.caseInsensitive?a.toLowerCase()===d.toLowerCase():a===d},P.NameTestPrefixAny=P.makeNodeTestType(P.NAMETESTPREFIXANY,{matches:function(a,b){return P.isElementOrAttribute(a)&&P.nameSpaceMatches(this.prefix,b,a)},toString:function(){return this.prefix+":*"}},function(a){this.prefix=a}),P.NameTestQName=P.makeNodeTestType(P.NAMETESTQNAME,{matches:function(a,b){return P.isNodeType([1,2,Y.XPATH_NAMESPACE_NODE])(a)&&P.nameSpaceMatches(this.prefix,b,a)&&P.localNameMatches(this.localName,b,a)},toString:function(){return this.name}},function(a){var b=a.split(":");this.name=a,this.prefix=b.length>1?b[0]:null,this.localName=b[+(b.length>1)]}),P.PITest=P.makeNodeTestType(P.PI,{matches:function(a,b){return P.isNodeType([7])(a)&&(a.target||a.nodeName)===this.name},toString:function(){return m('processing-instruction("','")',this.name)}},function(a){this.name=a}),P.nameTestAny=P.makeNodeTypeTest(P.NAMETESTANY,[1,2,Y.XPATH_NAMESPACE_NODE],"*"),P.textTest=P.makeNodeTypeTest(P.TEXT,[3,4],"text()"),P.commentTest=P.makeNodeTypeTest(P.COMMENT,[8],"comment()"),P.nodeTest=P.makeNodeTypeTest(P.NODE,[1,2,3,4,7,8,9],"node()"),P.anyPiTest=P.makeNodeTypeTest(P.PI,[7],"processing-instruction()"),Q.prototype=new s,Q.prototype.constructor=Q,Q.superclass=s.prototype,Q.prototype.init=function(a){this.variable=a},Q.prototype.toString=function(){return"$"+this.variable},Q.prototype.evaluate=function(a){var b=ac.resolveQName(this.variable,a.namespaceResolver,a.contextNode,!1);if(null==b[0])throw Error("Cannot resolve QName "+fn);var c=a.variableResolver.getVariable(b[1],b[0]);if(!c)throw ad.fromMessage("Undeclared variable: "+this.toString());return c},R.prototype=new s,R.prototype.constructor=R,R.superclass=s.prototype,R.prototype.init=function(a,b){this.functionName=a,this.arguments=b},R.prototype.toString=function(){for(var a=this.functionName+"(",b=0;b<this.arguments.length;b++)b>0&&(a+=", "),a+=this.arguments[b].toString();return a+")"},R.prototype.evaluate=function(a){var b=_.getFunctionFromContext(this.functionName,a);if(!b)throw Error("Unknown function "+this.functionName);var c=[a].concat(this.arguments);return b.apply(a.functionResolver.thisArg,c)};var S={};function T(a){arguments.length>0&&this.init(a)}function U(a){arguments.length>0&&this.init(a)}function V(a){arguments.length>0&&this.init(a)}function W(a){this.init(a)}function X(){this.init()}function Y(a,b,c){this.isXPathNamespace=!0,this.ownerDocument=c.ownerDocument,this.nodeName="#namespace",this.prefix=a,this.localName=a,this.namespaceURI=b,this.nodeValue=b,this.ownerElement=c,this.nodeType=Y.XPATH_NAMESPACE_NODE}function Z(a,b,c){this.variableResolver=null!=a?a:new $,this.namespaceResolver=null!=b?b:new aa,this.functionResolver=null!=c?c:new _}function $(){}function _(a){this.thisArg=null!=a?a:ab,this.functions={},this.addStandardFunctions()}function aa(){}S.equals=function(a,b){return a.equals(b)},S.notequal=function(a,b){return a.notequal(b)},S.lessthan=function(a,b){return a.lessthan(b)},S.greaterthan=function(a,b){return a.greaterthan(b)},S.lessthanorequal=function(a,b){return a.lessthanorequal(b)},S.greaterthanorequal=function(a,b){return a.greaterthanorequal(b)},T.prototype=new s,T.prototype.constructor=T,T.superclass=s.prototype,T.prototype.init=function(a){this.str=String(a)},T.prototype.toString=function(){return this.str},T.prototype.evaluate=function(a){return this},T.prototype.string=function(){return this},T.prototype.number=function(){return new U(this.str)},T.prototype.bool=function(){return new V(this.str)},T.prototype.nodeset=function(){throw Error("Cannot convert string to nodeset")},T.prototype.stringValue=function(){return this.str},T.prototype.numberValue=function(){return this.number().numberValue()},T.prototype.booleanValue=function(){return this.bool().booleanValue()},T.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,U)?this.number().equals(a):ac.instance_of(a,X)?a.compareWithString(this,S.equals):new V(this.str==a.str)},T.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,U)?this.number().notequal(a):ac.instance_of(a,X)?a.compareWithString(this,S.notequal):new V(this.str!=a.str)},T.prototype.lessthan=function(a){return this.number().lessthan(a)},T.prototype.greaterthan=function(a){return this.number().greaterthan(a)},T.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},T.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},U.prototype=new s,U.prototype.constructor=U,U.superclass=s.prototype,U.prototype.init=function(a){this.num="string"==typeof a?this.parse(a):Number(a)},U.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,U.prototype.parse=function(a){return this.numberFormat.test(a)?parseFloat(a):NaN},U.prototype.toString=function(){var a=this.num.toString();if(-1!==a.indexOf("e-")){for(var b=a.split("e-"),c=b[0].replace(".",""),d=Number(b[1]),e=0;e<d-1;e+=1)c="0"+c;return"0."+c}if(-1!==a.indexOf("e")){for(var f=a.split("e"),g=f[0].replace(".",""),h=Number(f[1])+1-g.length,i=0;i<h;i+=1)g+="0";return g}return a},U.prototype.evaluate=function(a){return this},U.prototype.string=function(){return new T(this.toString())},U.prototype.number=function(){return this},U.prototype.bool=function(){return new V(this.num)},U.prototype.nodeset=function(){throw Error("Cannot convert number to nodeset")},U.prototype.stringValue=function(){return this.string().stringValue()},U.prototype.numberValue=function(){return this.num},U.prototype.booleanValue=function(){return this.bool().booleanValue()},U.prototype.negate=function(){return new U(-this.num)},U.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,T)?this.equals(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.equals):new V(this.num==a.num)},U.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,T)?this.notequal(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.notequal):new V(this.num!=a.num)},U.prototype.lessthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthan(a.number()):new V(this.num<a.num)},U.prototype.greaterthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthan(a.number()):new V(this.num>a.num)},U.prototype.lessthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthanorequal(a.number()):new V(this.num<=a.num)},U.prototype.greaterthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthanorequal(a.number()):new V(this.num>=a.num)},U.prototype.plus=function(a){return new U(this.num+a.num)},U.prototype.minus=function(a){return new U(this.num-a.num)},U.prototype.multiply=function(a){return new U(this.num*a.num)},U.prototype.div=function(a){return new U(this.num/a.num)},U.prototype.mod=function(a){return new U(this.num%a.num)},V.prototype=new s,V.prototype.constructor=V,V.superclass=s.prototype,V.prototype.init=function(a){this.b=!!a},V.prototype.toString=function(){return this.b.toString()},V.prototype.evaluate=function(a){return this},V.prototype.string=function(){return new T(this.b)},V.prototype.number=function(){return new U(this.b)},V.prototype.bool=function(){return this},V.prototype.nodeset=function(){throw Error("Cannot convert boolean to nodeset")},V.prototype.stringValue=function(){return this.string().stringValue()},V.prototype.numberValue=function(){return this.number().numberValue()},V.prototype.booleanValue=function(){return this.b},V.prototype.not=function(){return new V(!this.b)},V.prototype.equals=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.equals(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.equals):new V(this.b==a.b)},V.prototype.notequal=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.notequal(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.notequal):new V(this.b!=a.b)},V.prototype.lessthan=function(a){return this.number().lessthan(a)},V.prototype.greaterthan=function(a){return this.number().greaterthan(a)},V.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},V.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},V.true_=new V(!0),V.false_=new V(!1),W.prototype={},W.prototype.constructor=W,W.superclass=Object.prototype,W.prototype.init=function(a){this.left=null,this.right=null,this.node=a,this.depth=1},W.prototype.balance=function(){var a=null==this.left?0:this.left.depth,b=null==this.right?0:this.right.depth;if(a>b+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(a+1<b){var c=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>c&&this.right.rotateLL(),this.rotateRR()}},W.prototype.rotateLL=function(){var a=this.node,b=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=b,this.right.node=a,this.right.updateInNewLocation(),this.updateInNewLocation()},W.prototype.rotateRR=function(){var a=this.node,b=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=b,this.left.node=a,this.left.updateInNewLocation(),this.updateInNewLocation()},W.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},W.prototype.getDepthFromChildren=function(){this.depth=+(null!=this.node),null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},W.prototype.add=function(a){if(a===this.node)return!1;var b=function(a,b){if(a===b)return 0;if(a.compareDocumentPosition){var c=a.compareDocumentPosition(b);return 1&c||10&c?1:20&c?-1:0}for(var d=0,e=0,f=a;null!=f;f=f.parentNode||f.ownerElement)d++;for(var g=b;null!=g;g=g.parentNode||g.ownerElement)e++;if(d>e){for(;d>e;)a=a.parentNode||a.ownerElement,d--;if(a===b)return 1}else if(e>d){for(;e>d;)b=b.parentNode||b.ownerElement,e--;if(a===b)return -1}for(var h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;h!==i;)a=h,b=i,h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;var j=ac.isAttribute(a),k=ac.isAttribute(b);if(j&&!k)return -1;if(!j&&k)return 1;if(h)for(var l=j?h.attributes:h.childNodes,m=l.length,n=0;n<m;n+=1){var o=l[n];if(o===a)return -1;if(o===b)return 1}throw Error("Unexpected: could not determine node order")}(a,this.node),c=!1;return -1==b?null==this.left?(this.left=new W(a),c=!0):(c=this.left.add(a))&&this.balance():1==b&&(null==this.right?(this.right=new W(a),c=!0):(c=this.right.add(a))&&this.balance()),c&&this.getDepthFromChildren(),c},X.prototype=new s,X.prototype.constructor=X,X.superclass=s.prototype,X.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},X.prototype.toString=function(){var a=this.first();return null==a?"":this.stringForNode(a)},X.prototype.evaluate=function(a){return this},X.prototype.string=function(){return new T(this.toString())},X.prototype.stringValue=function(){return this.toString()},X.prototype.number=function(){return new U(this.string())},X.prototype.numberValue=function(){return Number(this.string())},X.prototype.bool=function(){return new V(this.booleanValue())},X.prototype.booleanValue=function(){return!!this.size},X.prototype.nodeset=function(){return this},X.prototype.stringForNode=function(a){return 9==a.nodeType||1==a.nodeType||11===a.nodeType?this.stringForContainerNode(a):2===a.nodeType?a.value||a.nodeValue:a.isNamespaceNode?a.namespace:a.nodeValue},X.prototype.stringForContainerNode=function(a){for(var b="",c=a.firstChild;null!=c;c=c.nextSibling){var d=c.nodeType;(1===d||3===d||4===d||9===d||11===d)&&(b+=this.stringForNode(c))}return b},X.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new W(this.nodes[0]);for(var a=1;a<this.nodes.length;a+=1)this.tree.add(this.nodes[a])}return this.tree},X.prototype.first=function(){var a=this.buildTree();if(null==a)return null;for(;null!=a.left;)a=a.left;return a.node},X.prototype.add=function(a){for(var b=0;b<this.nodes.length;b+=1)if(a===this.nodes[b])return;this.tree=null,this.nodes.push(a),this.size+=1},X.prototype.addArray=function(a){var b=this;f(function(a){b.add(a)},a)},X.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},X.prototype.toArrayRec=function(a,b){null!=a&&(this.toArrayRec(a.left,b),b.push(a.node),this.toArrayRec(a.right,b))},X.prototype.toUnsortedArray=function(){return this.nodes.slice()},X.prototype.compareWithString=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new T(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithNumber=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new U(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithBoolean=function(a,b){return b(this.bool(),a)},X.prototype.compareWithNodeSet=function(a,b){for(var c=this.toUnsortedArray(),d=function(a,c){return b(c,a)},e=0;e<c.length;e++){var f=new T(this.stringForNode(c[e])),g=a.compareWithString(f,d);if(g.booleanValue())return g}return new V(!1)},b=function(a,b){return ac.instance_of(b,T)?this.compareWithString(b,a):ac.instance_of(b,U)?this.compareWithNumber(b,a):ac.instance_of(b,V)?this.compareWithBoolean(b,a):this.compareWithNodeSet(b,a)},c=Array.prototype.slice,d=b.length,X.compareWith=e=function(){var a,f=c.call(arguments);return f.length<d?(a=e,function(){return a.apply(this,f.concat(c.call(arguments)))}):b.apply(this,c.apply(arguments,[0,d]))},X.prototype.equals=X.compareWith(S.equals),X.prototype.notequal=X.compareWith(S.notequal),X.prototype.lessthan=X.compareWith(S.lessthan),X.prototype.greaterthan=X.compareWith(S.greaterthan),X.prototype.lessthanorequal=X.compareWith(S.lessthanorequal),X.prototype.greaterthanorequal=X.compareWith(S.greaterthanorequal),X.prototype.union=function(a){var b=new X;return b.addArray(this.toUnsortedArray()),b.addArray(a.toUnsortedArray()),b},Y.prototype={},Y.prototype.constructor=Y,Y.superclass=Object.prototype,Y.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},Z.prototype={},Z.prototype.constructor=Z,Z.superclass=Object.prototype,Z.prototype.extend=function(a){return o(new Z,this,a)},$.prototype={},$.prototype.constructor=$,$.superclass=Object.prototype,$.prototype.getVariable=function(a,b){return null},_.prototype={},_.prototype.constructor=_,_.superclass=Object.prototype,_.prototype.addStandardFunctions=function(){this.functions["{}last"]=ab.last,this.functions["{}position"]=ab.position,this.functions["{}count"]=ab.count,this.functions["{}id"]=ab.id,this.functions["{}local-name"]=ab.localName,this.functions["{}namespace-uri"]=ab.namespaceURI,this.functions["{}name"]=ab.name,this.functions["{}string"]=ab.string,this.functions["{}concat"]=ab.concat,this.functions["{}starts-with"]=ab.startsWith,this.functions["{}contains"]=ab.contains,this.functions["{}substring-before"]=ab.substringBefore,this.functions["{}substring-after"]=ab.substringAfter,this.functions["{}substring"]=ab.substring,this.functions["{}string-length"]=ab.stringLength,this.functions["{}normalize-space"]=ab.normalizeSpace,this.functions["{}translate"]=ab.translate,this.functions["{}boolean"]=ab.boolean_,this.functions["{}not"]=ab.not,this.functions["{}true"]=ab.true_,this.functions["{}false"]=ab.false_,this.functions["{}lang"]=ab.lang,this.functions["{}number"]=ab.number,this.functions["{}sum"]=ab.sum,this.functions["{}floor"]=ab.floor,this.functions["{}ceiling"]=ab.ceiling,this.functions["{}round"]=ab.round},_.prototype.addFunction=function(a,b,c){this.functions["{"+a+"}"+b]=c},_.getFunctionFromContext=function(a,b){var c=ac.resolveQName(a,b.namespaceResolver,b.contextNode,!1);if(null===c[0])throw Error("Cannot resolve QName "+name);return b.functionResolver.getFunction(c[1],c[0])},_.prototype.getFunction=function(a,b){return this.functions["{"+b+"}"+a]},aa.prototype={},aa.prototype.constructor=aa,aa.superclass=Object.prototype,aa.prototype.getNamespace=function(a,b){if("xml"==a)return q.XML_NAMESPACE_URI;if("xmlns"==a)return q.XMLNS_NAMESPACE_URI;for(9==b.nodeType?b=b.documentElement:2==b.nodeType?b=K.getOwnerElement(b):1!=b.nodeType&&(b=b.parentNode);null!=b&&1==b.nodeType;){for(var c=b.attributes,d=0;d<c.length;d++){var e=c.item(d),f=e.name||e.nodeName;if("xmlns"===f&&""===a||f==="xmlns:"+a)return String(e.value||e.nodeValue)}b=b.parentNode}return null};var ab={};ab.last=function(a){if(1!=arguments.length)throw Error("Function last expects ()");return new U(a.contextSize)},ab.position=function(a){if(1!=arguments.length)throw Error("Function position expects ()");return new U(a.contextPosition)},ab.count=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function count expects (node-set)");return new U(a.size)},ab.id=function(){var a,b,c=arguments[0];if(2!=arguments.length)throw Error("Function id expects (object)");a=arguments[1].evaluate(c);for(var d=(a=ac.instance_of(a,X)?a.toArray().join(" "):a.stringValue()).split(/[\x0d\x0a\x09\x20]+/),e=new X,f=9==c.contextNode.nodeType?c.contextNode:c.contextNode.ownerDocument,g=0;g<d.length;g++)null!=(b=f.getElementById?f.getElementById(d[g]):ac.getElementById(f,d[g]))&&e.add(b);return e},ab.localName=function(a,b){var c;if(1==arguments.length)c=a.contextNode;else if(2==arguments.length)c=b.evaluate(a).first();else throw Error("Function local-name expects (node-set?)");return new T(null==c?"":c.localName||c.baseName||c.target||c.nodeName||"")},ab.namespaceURI=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function namespace-uri expects (node-set?)");return new T(null==a?"":a.namespaceURI)},ab.name=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function name expects (node-set?)");return null==a?new T(""):1==a.nodeType?new T(a.nodeName):2==a.nodeType?new T(a.name||a.nodeName):7===a.nodeType?new T(a.target||a.nodeName):null==a.localName?new T(""):new T(a.localName)},ab.string=function(){var a=arguments[0];if(1==arguments.length)return new T(X.prototype.stringForNode(a.contextNode));if(2==arguments.length)return arguments[1].evaluate(a).string();throw Error("Function string expects (object?)")},ab.concat=function(a){if(arguments.length<3)throw Error("Function concat expects (string, string[, string]*)");for(var b="",c=1;c<arguments.length;c++)b+=arguments[c].evaluate(a).stringValue();return new T(b)},ab.startsWith=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function startsWith expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(b.substring(0,c.length)==c)},ab.contains=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function contains expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(-1!==b.indexOf(c))},ab.substringBefore=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-before expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new T(b.substring(0,b.indexOf(c)))},ab.substringAfter=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-after expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();if(0==c.length)return new T(b);var d=b.indexOf(c);return new T(-1==d?"":b.substring(d+c.length))},ab.substring=function(){var a=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw Error("Function substring expects (string, number, number?)");var b=arguments[1].evaluate(a).stringValue(),c=Math.round(arguments[2].evaluate(a).numberValue())-1,d=4==arguments.length?c+Math.round(arguments[3].evaluate(a).numberValue()):void 0;return new T(b.substring(c,d))},ab.stringLength=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function string-length expects (string?)");return new U(a.length)},ab.normalizeSpace=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function normalize-space expects (string?)");for(var c=0,d=a.length-1;ac.isSpace(a.charCodeAt(d));)d--;for(var e="";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;for(;c<=d;)if(ac.isSpace(a.charCodeAt(c)))for(e+=" ";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;else e+=a.charAt(c),c++;return new T(e)},ab.translate=function(a,b,c,d){if(4!=arguments.length)throw Error("Function translate expects (string, string, string)");var e=b.evaluate(a).stringValue(),f=c.evaluate(a).stringValue(),i=d.evaluate(a).stringValue(),j=g(function(a,b,c){return b in a||(a[b]=c>i.length?"":i[c]),a},{},f);return new T(l("",h(function(a){return a in j?j[a]:a},e)))},ab.boolean_=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function boolean expects (object)");return arguments[1].evaluate(a).bool()},ab.not=function(a,b){if(2!=arguments.length)throw Error("Function not expects (object)");return b.evaluate(a).bool().not()},ab.true_=function(){if(1!=arguments.length)throw Error("Function true expects ()");return V.true_},ab.false_=function(){if(1!=arguments.length)throw Error("Function false expects ()");return V.false_},ab.lang=function(){var a,b=arguments[0];if(2!=arguments.length)throw Error("Function lang expects (string)");for(var c=b.contextNode;null!=c&&9!=c.nodeType;c=c.parentNode){var d=c.getAttributeNS(q.XML_NAMESPACE_URI,"lang");if(null!=d){a=String(d);break}}if(null==a)return V.false_;var e=arguments[1].evaluate(b).stringValue();return new V(a.substring(0,e.length)==e&&(a.length==e.length||"-"==a.charAt(e.length)))},ab.number=function(){var a=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw Error("Function number expects (object?)");return 1==arguments.length?new U(X.prototype.stringForNode(a.contextNode)):arguments[1].evaluate(a).number()},ab.sum=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function sum expects (node-set)");a=a.toUnsortedArray();for(var c=0,d=0;d<a.length;d++)c+=new U(X.prototype.stringForNode(a[d])).numberValue();return new U(c)},ab.floor=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function floor expects (number)");return new U(Math.floor(arguments[1].evaluate(a).numberValue()))},ab.ceiling=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function ceiling expects (number)");return new U(Math.ceil(arguments[1].evaluate(a).numberValue()))},ab.round=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function round expects (number)");return new U(Math.round(arguments[1].evaluate(a).numberValue()))};var ac={};ac.isAttribute=function(a){return a&&(2===a.nodeType||a.ownerElement)},ac.splitQName=function(a){var b=a.indexOf(":");return -1==b?[null,a]:[a.substring(0,b),a.substring(b+1)]},ac.resolveQName=function(a,b,c,d){var e=ac.splitQName(a);return null!=e[0]?e[0]=b.getNamespace(e[0],c):d?(e[0]=b.getNamespace("",c),null==e[0]&&(e[0]="")):e[0]="",e},ac.isSpace=function(a){return 9==a||13==a||10==a||32==a},ac.isLetter=function(a){return a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=255||a>=256&&a<=305||a>=308&&a<=318||a>=321&&a<=328||a>=330&&a<=382||a>=384&&a<=451||a>=461&&a<=496||a>=500&&a<=501||a>=506&&a<=535||a>=592&&a<=680||a>=699&&a<=705||902==a||a>=904&&a<=906||908==a||a>=910&&a<=929||a>=931&&a<=974||a>=976&&a<=982||986==a||988==a||990==a||992==a||a>=994&&a<=1011||a>=1025&&a<=1036||a>=1038&&a<=1103||a>=1105&&a<=1116||a>=1118&&a<=1153||a>=1168&&a<=1220||a>=1223&&a<=1224||a>=1227&&a<=1228||a>=1232&&a<=1259||a>=1262&&a<=1269||a>=1272&&a<=1273||a>=1329&&a<=1366||1369==a||a>=1377&&a<=1414||a>=1488&&a<=1514||a>=1520&&a<=1522||a>=1569&&a<=1594||a>=1601&&a<=1610||a>=1649&&a<=1719||a>=1722&&a<=1726||a>=1728&&a<=1742||a>=1744&&a<=1747||1749==a||a>=1765&&a<=1766||a>=2309&&a<=2361||2365==a||a>=2392&&a<=2401||a>=2437&&a<=2444||a>=2447&&a<=2448||a>=2451&&a<=2472||a>=2474&&a<=2480||2482==a||a>=2486&&a<=2489||a>=2524&&a<=2525||a>=2527&&a<=2529||a>=2544&&a<=2545||a>=2565&&a<=2570||a>=2575&&a<=2576||a>=2579&&a<=2600||a>=2602&&a<=2608||a>=2610&&a<=2611||a>=2613&&a<=2614||a>=2616&&a<=2617||a>=2649&&a<=2652||2654==a||a>=2674&&a<=2676||a>=2693&&a<=2699||2701==a||a>=2703&&a<=2705||a>=2707&&a<=2728||a>=2730&&a<=2736||a>=2738&&a<=2739||a>=2741&&a<=2745||2749==a||2784==a||a>=2821&&a<=2828||a>=2831&&a<=2832||a>=2835&&a<=2856||a>=2858&&a<=2864||a>=2866&&a<=2867||a>=2870&&a<=2873||2877==a||a>=2908&&a<=2909||a>=2911&&a<=2913||a>=2949&&a<=2954||a>=2958&&a<=2960||a>=2962&&a<=2965||a>=2969&&a<=2970||2972==a||a>=2974&&a<=2975||a>=2979&&a<=2980||a>=2984&&a<=2986||a>=2990&&a<=2997||a>=2999&&a<=3001||a>=3077&&a<=3084||a>=3086&&a<=3088||a>=3090&&a<=3112||a>=3114&&a<=3123||a>=3125&&a<=3129||a>=3168&&a<=3169||a>=3205&&a<=3212||a>=3214&&a<=3216||a>=3218&&a<=3240||a>=3242&&a<=3251||a>=3253&&a<=3257||3294==a||a>=3296&&a<=3297||a>=3333&&a<=3340||a>=3342&&a<=3344||a>=3346&&a<=3368||a>=3370&&a<=3385||a>=3424&&a<=3425||a>=3585&&a<=3630||3632==a||a>=3634&&a<=3635||a>=3648&&a<=3653||a>=3713&&a<=3714||3716==a||a>=3719&&a<=3720||3722==a||3725==a||a>=3732&&a<=3735||a>=3737&&a<=3743||a>=3745&&a<=3747||3749==a||3751==a||a>=3754&&a<=3755||a>=3757&&a<=3758||3760==a||a>=3762&&a<=3763||3773==a||a>=3776&&a<=3780||a>=3904&&a<=3911||a>=3913&&a<=3945||a>=4256&&a<=4293||a>=4304&&a<=4342||4352==a||a>=4354&&a<=4355||a>=4357&&a<=4359||4361==a||a>=4363&&a<=4364||a>=4366&&a<=4370||4412==a||4414==a||4416==a||4428==a||4430==a||4432==a||a>=4436&&a<=4437||4441==a||a>=4447&&a<=4449||4451==a||4453==a||4455==a||4457==a||a>=4461&&a<=4462||a>=4466&&a<=4467||4469==a||4510==a||4520==a||4523==a||a>=4526&&a<=4527||a>=4535&&a<=4536||4538==a||a>=4540&&a<=4546||4587==a||4592==a||4601==a||a>=7680&&a<=7835||a>=7840&&a<=7929||a>=7936&&a<=7957||a>=7960&&a<=7965||a>=7968&&a<=8005||a>=8008&&a<=8013||a>=8016&&a<=8023||8025==a||8027==a||8029==a||a>=8031&&a<=8061||a>=8064&&a<=8116||a>=8118&&a<=8124||8126==a||a>=8130&&a<=8132||a>=8134&&a<=8140||a>=8144&&a<=8147||a>=8150&&a<=8155||a>=8160&&a<=8172||a>=8178&&a<=8180||a>=8182&&a<=8188||8486==a||a>=8490&&a<=8491||8494==a||a>=8576&&a<=8578||a>=12353&&a<=12436||a>=12449&&a<=12538||a>=12549&&a<=12588||a>=44032&&a<=55203||a>=19968&&a<=40869||12295==a||a>=12321&&a<=12329},ac.isNCNameChar=function(a){return a>=48&&a<=57||a>=1632&&a<=1641||a>=1776&&a<=1785||a>=2406&&a<=2415||a>=2534&&a<=2543||a>=2662&&a<=2671||a>=2790&&a<=2799||a>=2918&&a<=2927||a>=3047&&a<=3055||a>=3174&&a<=3183||a>=3302&&a<=3311||a>=3430&&a<=3439||a>=3664&&a<=3673||a>=3792&&a<=3801||a>=3872&&a<=3881||46==a||45==a||95==a||ac.isLetter(a)||a>=768&&a<=837||a>=864&&a<=865||a>=1155&&a<=1158||a>=1425&&a<=1441||a>=1443&&a<=1465||a>=1467&&a<=1469||1471==a||a>=1473&&a<=1474||1476==a||a>=1611&&a<=1618||1648==a||a>=1750&&a<=1756||a>=1757&&a<=1759||a>=1760&&a<=1764||a>=1767&&a<=1768||a>=1770&&a<=1773||a>=2305&&a<=2307||2364==a||a>=2366&&a<=2380||2381==a||a>=2385&&a<=2388||a>=2402&&a<=2403||a>=2433&&a<=2435||2492==a||2494==a||2495==a||a>=2496&&a<=2500||a>=2503&&a<=2504||a>=2507&&a<=2509||2519==a||a>=2530&&a<=2531||2562==a||2620==a||2622==a||2623==a||a>=2624&&a<=2626||a>=2631&&a<=2632||a>=2635&&a<=2637||a>=2672&&a<=2673||a>=2689&&a<=2691||2748==a||a>=2750&&a<=2757||a>=2759&&a<=2761||a>=2763&&a<=2765||a>=2817&&a<=2819||2876==a||a>=2878&&a<=2883||a>=2887&&a<=2888||a>=2891&&a<=2893||a>=2902&&a<=2903||a>=2946&&a<=2947||a>=3006&&a<=3010||a>=3014&&a<=3016||a>=3018&&a<=3021||3031==a||a>=3073&&a<=3075||a>=3134&&a<=3140||a>=3142&&a<=3144||a>=3146&&a<=3149||a>=3157&&a<=3158||a>=3202&&a<=3203||a>=3262&&a<=3268||a>=3270&&a<=3272||a>=3274&&a<=3277||a>=3285&&a<=3286||a>=3330&&a<=3331||a>=3390&&a<=3395||a>=3398&&a<=3400||a>=3402&&a<=3405||3415==a||3633==a||a>=3636&&a<=3642||a>=3655&&a<=3662||3761==a||a>=3764&&a<=3769||a>=3771&&a<=3772||a>=3784&&a<=3789||a>=3864&&a<=3865||3893==a||3895==a||3897==a||3902==a||3903==a||a>=3953&&a<=3972||a>=3974&&a<=3979||a>=3984&&a<=3989||3991==a||a>=3993&&a<=4013||a>=4017&&a<=4023||4025==a||a>=8400&&a<=8412||8417==a||a>=12330&&a<=12335||12441==a||12442==a||183==a||720==a||721==a||903==a||1600==a||3654==a||3782==a||12293==a||a>=12337&&a<=12341||a>=12445&&a<=12446||a>=12540&&a<=12542},ac.coalesceText=function(a){for(var b=a.firstChild;null!=b;b=b.nextSibling)if(3==b.nodeType||4==b.nodeType){var c=b.nodeValue,d=b;for(b=b.nextSibling;null!=b&&(3==b.nodeType||4==b.nodeType);){c+=b.nodeValue;var e=b;b=b.nextSibling,e.parentNode.removeChild(e)}if(4==d.nodeType){var f=d.parentNode;if(null==d.nextSibling)f.removeChild(d),f.appendChild(f.ownerDocument.createTextNode(c));else{var g=d.nextSibling;f.removeChild(d),f.insertBefore(f.ownerDocument.createTextNode(c),g)}}else d.nodeValue=c;if(null==b)break}else 1==b.nodeType&&ac.coalesceText(b)},ac.instance_of=function(a,b){for(;null!=a;){if(a.constructor===b)return!0;if(a===Object)break;a=a.constructor.superclass}return!1},ac.getElementById=function(a,b){if(1==a.nodeType&&(a.getAttribute("id")==b||a.getAttributeNS(null,"id")==b))return a;for(var c=a.firstChild;null!=c;c=c.nextSibling){var d=ac.getElementById(c,b);if(null!=d)return d}return null};var ad=function(){function a(b,c,d){var e=Error.call(this,function(b,c){var d=c?": "+c.toString():"";switch(b){case a.INVALID_EXPRESSION_ERR:return"Invalid expression"+d;case a.TYPE_ERR:return"Type error"+d}return null}(b,c)||d);return e.code=b,e.exception=c,e}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.superclass=Error,a.prototype.toString=function(){return this.message},a.fromMessage=function(b,c){return new a(null,c,b)},a.INVALID_EXPRESSION_ERR=51,a.TYPE_ERR=52,a}();function ae(a,b,c){this.xpath=c.parse(a),this.context=new Z,this.context.namespaceResolver=new af(b)}function af(a){this.xpathNSResolver=a}function ag(a){this.node=a,this.namespaceResolver=new aa}function ah(a,b){switch(b==ah.ANY_TYPE&&(a.constructor===T?b=ah.STRING_TYPE:a.constructor===U?b=ah.NUMBER_TYPE:a.constructor===V?b=ah.BOOLEAN_TYPE:a.constructor===X&&(b=ah.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=b,b){case ah.NUMBER_TYPE:this.numberValue=a.numberValue();return;case ah.STRING_TYPE:this.stringValue=a.stringValue();return;case ah.BOOLEAN_TYPE:this.booleanValue=a.booleanValue();return;case ah.ANY_UNORDERED_NODE_TYPE:case ah.FIRST_ORDERED_NODE_TYPE:if(a.constructor===X){this.singleNodeValue=a.first();return}break;case ah.UNORDERED_NODE_ITERATOR_TYPE:case ah.ORDERED_NODE_ITERATOR_TYPE:if(a.constructor===X){this.invalidIteratorState=!1,this.nodes=a.toArray(),this.iteratorIndex=0;return}break;case ah.UNORDERED_NODE_SNAPSHOT_TYPE:case ah.ORDERED_NODE_SNAPSHOT_TYPE:if(a.constructor===X){this.nodes=a.toArray(),this.snapshotLength=this.nodes.length;return}}throw new ad(ad.TYPE_ERR)}function ai(a,b){a.createExpression=function(a,c){try{return new ae(a,c,b)}catch(a){throw new ad(ad.INVALID_EXPRESSION_ERR,a)}},a.createNSResolver=function(a){return new ag(a)},a.evaluate=function(c,d,e,f,g){if(f<0||f>9)throw{code:0,toString:function(){return"Request type not supported"}};return a.createExpression(c,e,b).evaluate(d,f,g)}}ae.prototype={},ae.prototype.constructor=ae,ae.superclass=Object.prototype,ae.getOwnerDocument=function(a){return 9===a.nodeType?a:a.ownerDocument},ae.detectHtmlDom=function(a){if(!a)return!1;var b=ae.getOwnerDocument(a);try{return b.implementation.hasFeature("HTML","2.0")}catch(a){return!0}},ae.prototype.evaluate=function(a,b,c){return this.context.expressionContextNode=a,this.context.caseInsensitive=ae.detectHtmlDom(a),new ah(this.xpath.evaluate(this.context),b)},af.prototype={},af.prototype.constructor=af,af.superclass=Object.prototype,af.prototype.getNamespace=function(a,b){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(a)},ag.prototype={},ag.prototype.constructor=ag,ag.superclass=Object.prototype,ag.prototype.lookupNamespaceURI=function(a){return this.namespaceResolver.getNamespace(a,this.node)},ah.prototype={},ah.prototype.constructor=ah,ah.superclass=Object.prototype,ah.prototype.iterateNext=function(){if(this.resultType!=ah.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=ah.ORDERED_NODE_ITERATOR_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[this.iteratorIndex++]},ah.prototype.snapshotItem=function(a){if(this.resultType!=ah.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=ah.ORDERED_NODE_SNAPSHOT_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[a]},ah.ANY_TYPE=0,ah.NUMBER_TYPE=1,ah.STRING_TYPE=2,ah.BOOLEAN_TYPE=3,ah.UNORDERED_NODE_ITERATOR_TYPE=4,ah.ORDERED_NODE_ITERATOR_TYPE=5,ah.UNORDERED_NODE_SNAPSHOT_TYPE=6,ah.ORDERED_NODE_SNAPSHOT_TYPE=7,ah.ANY_UNORDERED_NODE_TYPE=8,ah.FIRST_ORDERED_NODE_TYPE=9;try{var aj=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(aj=!1)}catch(a){}aj&&ai(document,new p)}catch(a){}ai(a,new p),function(){var b=new p,c=new aa,d=new _,e=new $;function f(a){return{getNamespace:function(b,d){return a(b,d)||c.getNamespace(b,d)}}}function g(a){if(null==a||a instanceof T||a instanceof V||a instanceof U||a instanceof X)return a;switch(typeof a){case"string":return new T(a);case"boolean":return new V(a);case"number":return new U(a)}var b=new X;return b.addArray([].concat(a)),b}function h(a){return{getFunction:function(b,c){var e=a(b,c);return e?function(a){var b=Array.prototype.slice.call(arguments,1).map(function(b){return b.evaluate(a)});return g(e.apply(this,[].concat(a,b)))}:d.getFunction(b,c)}}}function i(a){return{getVariable:function(b,c){return g(a(b,c))}}}function j(a,b,c){a in c&&(b[a]=c[a])}var k={evaluate:function(a){var b,g,k;return b=this.expression,g=new Z,a?(g.namespaceResolver=function(a){return a&&"function"==typeof a.getNamespace?f(a.getNamespace.bind(a)):"function"==typeof a?f(a):"object"==typeof a?f(function(b){return a[b]}):c}(a.namespaces),g.functionResolver=function(a){return a&&"function"==typeof a.getFunction?h(a.getFunction.bind(a)):"function"==typeof a?h(a):"object"==typeof a?h(function(b){return a[b]}):d}(a.functions),g.variableResolver=function(a){if(a){if("function"==typeof a.getVariable)return i(a.getVariable.bind(a));if("function"==typeof a)return i(a);if("object"==typeof a)return i(function(b){return a[b]})}return e}(a.variables),g.expressionContextNode=a.node,j("allowAnyNamespaceForNoPrefix",g,a),j("isHtml",g,a)):g.namespaceResolver=c,k=g,b.evaluate(k)},evaluateNumber:function(a){return this.evaluate(a).numberValue()},evaluateString:function(a){return this.evaluate(a).stringValue()},evaluateBoolean:function(a){return this.evaluate(a).booleanValue()},evaluateNodeSet:function(a){return this.evaluate(a).nodeset()},select:function(a){return this.evaluateNodeSet(a).toArray()},select1:function(a){return this.select(a)[0]}};a.parse=function(a){return Object.create(k,{expression:{value:b.parse(a)}})}}(),o(a,{XPath:q,XPathParser:p,XPathResult:ah,Step:O,PathExpr:K,NodeTest:P,LocationPath:N,OrOperation:w,AndOperation:x,BarOperation:J,EqualsOperation:y,NotEqualOperation:z,LessThanOperation:A,GreaterThanOperation:B,LessThanOrEqualOperation:C,GreaterThanOrEqualOperation:D,PlusOperation:E,MinusOperation:F,MultiplyOperation:G,DivOperation:H,ModOperation:I,UnaryMinusOperation:u,FunctionCall:R,VariableReference:Q,XPathContext:Z,XNodeSet:X,XBoolean:V,XString:T,XNumber:U,NamespaceResolver:aa,FunctionResolver:_,VariableResolver:$,Utilities:ac}),a.select=function(b,c,d){return a.selectWithResolver(b,c,null,d)},a.useNamespaces=function(b){var c={mappings:b||{},lookupNamespaceURI:function(a){return this.mappings[a]}};return function(b,d,e){return a.selectWithResolver(b,d,c,e)}},a.selectWithResolver=function(a,b,c,d){var e=new ae(a,c,new p),f=ah.ANY_TYPE,g=e.evaluate(b,f,null);return g.resultType==ah.STRING_TYPE?g=g.stringValue:g.resultType==ah.NUMBER_TYPE?g=g.numberValue:g.resultType==ah.BOOLEAN_TYPE?g=g.booleanValue:(g=g.nodes,d&&(g=g[0])),g},a.select1=function(b,c){return a.select(b,c,!0)};var ak=function(a){return a&&"number"==typeof a.nodeType&&Number.isInteger(a.nodeType)&&a.nodeType>=1&&a.nodeType<=11&&"string"==typeof a.nodeName},al=function(a){return function(b){return ak(b)&&b.nodeType===a}};o(a,{isNodeLike:ak,isArrayOfNodes:function(a){return Array.isArray(a)&&a.every(ak)},isElement:al(1),isAttribute:al(2),isTextNode:al(3),isCDATASection:al(4),isProcessingInstruction:al(7),isComment:al(8),isDocumentNode:al(9),isDocumentTypeNode:al(10),isDocumentFragment:al(11)})}(b)},43594:function(a){(function(){var b,c,d,e={}.hasOwnProperty;c=function(a){return!!a&&"[object Function]"===Object.prototype.toString.call(a)},d=function(a){var b;return!!a&&("function"==(b=typeof a)||"object"===b)},b=function(a){return c(Array.isArray)?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)},a.exports.assign=function(a,...b){var d,f,g,h;if(c(Object.assign))Object.assign.apply(null,arguments);else for(d=0,g=b.length;d<g;d++)if(null!=(h=b[d]))for(f in h)e.call(h,f)&&(a[f]=h[f]);return a},a.exports.isFunction=c,a.exports.isObject=d,a.exports.isArray=b,a.exports.isEmpty=function(a){var c;if(b(a))return!a.length;for(c in a)if(e.call(a,c))return!1;return!0},a.exports.isPlainObject=function(a){var b,c;return d(a)&&(c=Object.getPrototypeOf(a))&&(b=c.constructor)&&"function"==typeof b&&b instanceof b&&Function.prototype.toString.call(b)===Function.prototype.toString.call(Object)},a.exports.getValue=function(a){return c(a.valueOf)?a.valueOf():a}}).call(this)},43849:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k=function(a,b){for(var c in b)l.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},l={}.hasOwnProperty;i=(j=c(4700)).isObject,h=j.isFunction,g=j.getValue,f=c(8957),b=c(24706),d=c(94253),e=c(7832),a.exports=function(a){function c(a,d,e){var f,g,h,i;if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(d),this.type=b.Element,this.attribs={},this.schemaTypeInfo=null,null!=e&&this.attribute(e),a.type===b.Document&&(this.isRoot=!0,this.documentObject=a,a.rootObject=this,a.children)){for(g=0,h=(i=a.children).length;g<h;g++)if((f=i[g]).type===b.DocType){f.name=this.name;break}}}return k(c,a),Object.defineProperty(c.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(c.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(c.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"id",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"className",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"classList",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new e(this.attribs)),this.attributeMap}}),c.prototype.clone=function(){var a,b,c,d;for(b in(c=Object.create(this)).isRoot&&(c.documentObject=null),c.attribs={},d=this.attribs)l.call(d,b)&&(a=d[b],c.attribs[b]=a.clone());return c.children=[],this.children.forEach(function(a){var b;return(b=a.clone()).parent=c,c.children.push(b)}),c},c.prototype.attribute=function(a,b){var c,e;if(null!=a&&(a=g(a)),i(a))for(c in a)l.call(a,c)&&(e=a[c],this.attribute(c,e));else h(b)&&(b=b.apply()),this.options.keepNullAttributes&&null==b?this.attribs[a]=new d(this,a,""):null!=b&&(this.attribs[a]=new d(this,a,b));return this},c.prototype.removeAttribute=function(a){var b,c,d;if(null==a)throw Error("Missing attribute name. "+this.debugInfo());if(Array.isArray(a=g(a)))for(c=0,d=a.length;c<d;c++)b=a[c],delete this.attribs[b];else delete this.attribs[a];return this},c.prototype.toString=function(a){return this.options.writer.element(this,this.options.writer.filterOptions(a))},c.prototype.att=function(a,b){return this.attribute(a,b)},c.prototype.a=function(a,b){return this.attribute(a,b)},c.prototype.getAttribute=function(a){return this.attribs.hasOwnProperty(a)?this.attribs[a].value:null},c.prototype.setAttribute=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNode=function(a){return this.attribs.hasOwnProperty(a)?this.attribs[a]:null},c.prototype.setAttributeNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.removeAttributeNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setAttributeNS=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.removeAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNodeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setAttributeNodeNS=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.hasAttribute=function(a){return this.attribs.hasOwnProperty(a)},c.prototype.hasAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setIdAttribute=function(a,b){return this.attribs.hasOwnProperty(a)?this.attribs[a].isId:b},c.prototype.setIdAttributeNS=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setIdAttributeNode=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByClassName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.isEqualNode=function(a){var b,d,e;if(!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)||a.namespaceURI!==this.namespaceURI||a.prefix!==this.prefix||a.localName!==this.localName||a.attribs.length!==this.attribs.length)return!1;for(b=d=0,e=this.attribs.length-1;0<=e?d<=e:d>=e;b=0<=e?++d:--d)if(!this.attribs[b].isEqualNode(a.attribs[b]))return!1;return!0},c}(f)}).call(this)},44558:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.Sha512=b.Sha256=b.Sha1=void 0;let d=c(55511);class e{constructor(){this.getHash=function(a){let b=d.createHash("sha1");return b.update(a,"utf8"),b.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2000/09/xmldsig#sha1"}}}b.Sha1=e;class f{constructor(){this.getHash=function(a){let b=d.createHash("sha256");return b.update(a,"utf8"),b.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha256"}}}b.Sha256=f;class g{constructor(){this.getHash=function(a){let b=d.createHash("sha512");return b.update(a,"utf8"),b.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha512"}}}b.Sha512=g},44981:function(a,b,c){(function(){var b;b=c(67289),a.exports=class extends b{constructor(a){super(a)}document(a,b){var c,d,e,f,g;for(b=this.filterOptions(b),f="",d=0,e=(g=a.children).length;d<e;d++)c=g[d],f+=this.writeChildNode(c,b,0);return b.pretty&&f.slice(-b.newline.length)===b.newline&&(f=f.slice(0,-b.newline.length)),f}}}).call(this)},45454:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,e,f,g,h){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing DTD element name. "+this.debugInfo());if(null==e)throw Error("Missing DTD attribute name. "+this.debugInfo(d));if(!f)throw Error("Missing DTD attribute type. "+this.debugInfo(d));if(!g)throw Error("Missing DTD attribute default. "+this.debugInfo(d));if(0!==g.indexOf("#")&&(g="#"+g),!g.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(d));if(h&&!g.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(d));this.elementName=this.stringify.name(d),this.type=b.AttributeDeclaration,this.attributeName=this.stringify.name(e),this.attributeType=this.stringify.dtdAttType(f),h&&(this.defaultValue=this.stringify.dtdAttDefault(h)),this.defaultValueType=g}return e(c,a),c.prototype.toString=function(a){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},45540:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.generateServiceProviderMetadata=void 0;let d=c(26884),e=c(35312),f=c(36481),g=c(65756),h=c(26884),i=c(30072);b.generateServiceProviderMetadata=a=>{let{issuer:b,callbackUrl:c,logoutCallbackUrl:j,decryptionPvk:k,privateKey:l,metadataContactPerson:m,metadataOrganization:n,identifierFormat:o=i.DEFAULT_IDENTIFIER_FORMAT,wantAssertionsSigned:p=i.DEFAULT_WANT_ASSERTIONS_SIGNED,generateUniqueId:q=h.generateUniqueId}=a,{publicCerts:r,decryptionCert:s}=a;if(null!=k){if(!s)throw Error("Missing decryptionCert while generating metadata for decrypting service provider")}else s=null;if(null!=l){if(!r)throw Error("Missing publicCert while generating metadata for signing service provider messages");r=Array.isArray(r)?r:[r]}else r=null;let t={EntityDescriptor:{"@xmlns":"urn:oasis:names:tc:SAML:2.0:metadata","@xmlns:ds":"http://www.w3.org/2000/09/xmldsig#","@entityID":b,"@ID":q(),SPSSODescriptor:{"@protocolSupportEnumeration":"urn:oasis:names:tc:SAML:2.0:protocol","@AuthnRequestsSigned":"false"},...n?{Organization:n}:{},...m?{ContactPerson:m}:{}}};if(null!=s||null!=r){if(t.EntityDescriptor.SPSSODescriptor.KeyDescriptor=[],(0,e.isValidSamlSigningOptions)(a)){(0,f.assertRequired)(r,"Missing publicCert while generating metadata for signing service provider messages"),t.EntityDescriptor.SPSSODescriptor["@AuthnRequestsSigned"]=!0;let a=(Array.isArray(r)?r:[r]).map(a=>({"@use":"signing","ds:KeyInfo":{"ds:X509Data":{"ds:X509Certificate":{"#text":(0,d.stripPemHeaderAndFooter)(a)}}}}));t.EntityDescriptor.SPSSODescriptor.KeyDescriptor.push(a)}null!=k&&((0,f.assertRequired)(s,"Missing decryptionCert while generating metadata for decrypting service provider"),s=(0,d.stripPemHeaderAndFooter)(s),t.EntityDescriptor.SPSSODescriptor.KeyDescriptor.push({"@use":"encryption","ds:KeyInfo":{"ds:X509Data":{"ds:X509Certificate":{"#text":s}}},EncryptionMethod:[{"@Algorithm":"http://www.w3.org/2009/xmlenc11#aes256-gcm"},{"@Algorithm":"http://www.w3.org/2009/xmlenc11#aes128-gcm"},{"@Algorithm":"http://www.w3.org/2001/04/xmlenc#aes256-cbc"},{"@Algorithm":"http://www.w3.org/2001/04/xmlenc#aes128-cbc"}]}))}null!=j&&(t.EntityDescriptor.SPSSODescriptor.SingleLogoutService={"@Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@Location":j}),null!=o&&(t.EntityDescriptor.SPSSODescriptor.NameIDFormat=o),p&&(t.EntityDescriptor.SPSSODescriptor["@WantAssertionsSigned"]=!0),t.EntityDescriptor.SPSSODescriptor.AssertionConsumerService={"@index":"1","@isDefault":"true","@Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@Location":c};let u=(0,g.buildXmlBuilderObject)(t,!0);return!0===a.signMetadata&&(0,e.isValidSamlSigningOptions)(a)&&(u=(0,f.signXmlMetadata)(u,{privateKey:a.privateKey,signatureAlgorithm:a.signatureAlgorithm,xmlSignatureTransforms:a.xmlSignatureTransforms,digestAlgorithm:a.digestAlgorithm})),u}},46140:(a,b,c)=>{"u"<typeof process||"renderer"===process.type||process.__nwjs?a.exports=c(21584):a.exports=c(89830)},46584:function(a){(function(){a.exports=function(){function a(a){this.arr=a||[]}return Object.defineProperty(a.prototype,"length",{get:function(){return this.arr.length}}),a.prototype.item=function(a){return this.arr[a]||null},a.prototype.contains=function(a){return -1!==this.arr.indexOf(a)},a}()}).call(this)},46780:function(a){(function(){a.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},46898:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=class extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))}}}).call(this)},47564:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SAML=void 0;let d=c(46140),e=c(74075),f=c(55511),g=c(1932),h=c(11723),i=c(28354),j=c(31673),k=c(86175),l=c(35312),m=c(36481),n=c(65756),o=c(26884),p=c(19691),q=c(34153),r=c(45540),s=c(30072),t=(0,d.default)("node-saml"),u=i.promisify(e.inflateRaw),v=i.promisify(e.deflateRaw),w=async({idpCert:a})=>{let b="function"==typeof a?await i.promisify(a)().then(a=>((0,m.assertRequired)(a,"callback didn't return idpCert"),a)):a;return Array.isArray(b)?b.map((a,b)=>(0,o.keyInfoToPem)(a,"CERTIFICATE",`idpCert[${b}]`)):[(0,o.keyInfoToPem)(b,"CERTIFICATE","idpCert")]};class x{constructor(a){this.pemFiles=[],this.options=this.initialize(a),this.cacheProvider=this.options.cacheProvider}initialize(a){var b,c,d,e,f,g,h,i,k,n,p,q,r,t,u,v,w,x,y,z,A,B,C,D,E,F;if(!a)throw TypeError("SamlOptions required on construction");(0,m.assertRequired)(a.callbackUrl,"callbackUrl is required"),(0,m.assertRequired)(a.issuer,"issuer is required"),(0,m.assertRequired)(a.idpCert,"idpCert is required"),(0,m.assertBooleanIfPresent)(a.passive),(0,m.assertBooleanIfPresent)(a.disableRequestedAuthnContext),(0,m.assertBooleanIfPresent)(a.forceAuthn),(0,m.assertBooleanIfPresent)(a.skipRequestCompression),(0,m.assertBooleanIfPresent)(a.disableRequestAcsUrl),(0,m.assertBooleanIfPresent)(a.allowCreate),(0,m.assertBooleanIfPresent)(a.wantAssertionsSigned),(0,m.assertBooleanIfPresent)(a.wantAuthnResponseSigned),(0,m.assertBooleanIfPresent)(a.signMetadata);let G={...a,passive:null!=(b=a.passive)&&b,disableRequestedAuthnContext:null!=(c=a.disableRequestedAuthnContext)&&c,additionalParams:null!=(d=a.additionalParams)?d:{},additionalAuthorizeParams:null!=(e=a.additionalAuthorizeParams)?e:{},additionalLogoutParams:null!=(f=a.additionalLogoutParams)?f:{},forceAuthn:null!=(g=a.forceAuthn)&&g,skipRequestCompression:null!=(h=a.skipRequestCompression)&&h,disableRequestAcsUrl:null!=(i=a.disableRequestAcsUrl)&&i,acceptedClockSkewMs:null!=(k=a.acceptedClockSkewMs)?k:0,maxAssertionAgeMs:null!=(n=a.maxAssertionAgeMs)?n:0,callbackUrl:a.callbackUrl,issuer:a.issuer,audience:null!=(q=null!=(p=a.audience)?p:a.issuer)?q:"unknown_audience",identifierFormat:void 0===a.identifierFormat?s.DEFAULT_IDENTIFIER_FORMAT:a.identifierFormat,allowCreate:null==(r=a.allowCreate)||r,spNameQualifier:a.spNameQualifier,wantAssertionsSigned:null!=(t=a.wantAssertionsSigned)?t:s.DEFAULT_WANT_ASSERTIONS_SIGNED,wantAuthnResponseSigned:null==(u=a.wantAuthnResponseSigned)||u,authnContext:null!=(v=a.authnContext)?v:["urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport"],validateInResponseTo:null!=(w=a.validateInResponseTo)?w:l.ValidateInResponseTo.never,idpCert:a.idpCert,requestIdExpirationPeriodMs:null!=(x=a.requestIdExpirationPeriodMs)?x:288e5,cacheProvider:null!=(y=a.cacheProvider)?y:new j.InMemoryCacheProvider({keyExpirationPeriodMs:a.requestIdExpirationPeriodMs}),logoutUrl:null!=(A=null!=(z=a.logoutUrl)?z:a.entryPoint)?A:"",signatureAlgorithm:null!=(B=a.signatureAlgorithm)?B:"sha1",authnRequestBinding:null!=(C=a.authnRequestBinding)?C:"HTTP-Redirect",generateUniqueId:null!=(D=a.generateUniqueId)?D:o.generateUniqueId,signMetadata:null!=(E=a.signMetadata)&&E,racComparison:null!=(F=a.racComparison)?F:"exact"};if(!Object.values(l.ValidateInResponseTo).includes(G.validateInResponseTo))throw TypeError("validateInResponseTo must be one of ['never', 'ifPresent', 'always']");if(!["exact","minimum","maximum","better"].includes(G.racComparison))throw TypeError("racComparison must be one of ['exact', 'minimum', 'maximum', 'better']");return G}signRequest(a){(0,m.assertRequired)(this.options.privateKey,"privateKey is required");let b={};a.SigAlg=k.getSigningAlgorithm(this.options.signatureAlgorithm);let c=k.getSigner(this.options.signatureAlgorithm);a.SAMLRequest&&(b.SAMLRequest=a.SAMLRequest),a.SAMLResponse&&(b.SAMLResponse=a.SAMLResponse),a.RelayState&&(b.RelayState=a.RelayState),a.SigAlg&&(b.SigAlg=a.SigAlg),c.update(h.stringify(b)),a.Signature=c.sign((0,o.keyInfoToPem)(this.options.privateKey,"PRIVATE KEY","privateKey"),"base64")}async generateAuthorizeRequestAsync(a,b){(0,m.assertRequired)(this.options.entryPoint,"entryPoint is required");let c=this.options.generateUniqueId(),d=(0,p.generateInstant)();this.mustValidateInResponseTo(!0)&&await this.cacheProvider.saveAsync(c,d);let e={"samlp:AuthnRequest":{"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@ID":c,"@Version":"2.0","@IssueInstant":d,"@ProtocolBinding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@Destination":this.options.entryPoint,"saml:Issuer":{"@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","#text":this.options.issuer}}};a&&(e["samlp:AuthnRequest"]["@IsPassive"]=!0),!0===this.options.forceAuthn&&(e["samlp:AuthnRequest"]["@ForceAuthn"]=!0),this.options.disableRequestAcsUrl||(e["samlp:AuthnRequest"]["@AssertionConsumerServiceURL"]=this.options.callbackUrl);let f=this.options.samlAuthnRequestExtensions;if(null!=f){if("object"!=typeof f)throw TypeError("samlAuthnRequestExtensions should be Object");e["samlp:AuthnRequest"]["samlp:Extensions"]={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol",...f}}let g={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@AllowCreate":this.options.allowCreate};if(null!=this.options.identifierFormat&&(g["@Format"]=this.options.identifierFormat),null!=this.options.spNameQualifier&&(g["@SPNameQualifier"]=this.options.spNameQualifier),e["samlp:AuthnRequest"]["samlp:NameIDPolicy"]=g,!this.options.disableRequestedAuthnContext){let a=[];this.options.authnContext.forEach(function(b){a.push({"@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","#text":b})}),e["samlp:AuthnRequest"]["samlp:RequestedAuthnContext"]={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@Comparison":this.options.racComparison,"saml:AuthnContextClassRef":a}}if(null!=this.options.attributeConsumingServiceIndex&&(e["samlp:AuthnRequest"]["@AttributeConsumingServiceIndex"]=this.options.attributeConsumingServiceIndex),null!=this.options.providerName&&(e["samlp:AuthnRequest"]["@ProviderName"]=this.options.providerName),null!=this.options.scoping){let a={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol"};"number"==typeof this.options.scoping.proxyCount&&(a["@ProxyCount"]=this.options.scoping.proxyCount),this.options.scoping.idpList&&(a["samlp:IDPList"]=this.options.scoping.idpList.map(a=>{let b={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol"};return a.entries&&(b["samlp:IDPEntry"]=a.entries.map(a=>{let b={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol"};return b["@ProviderID"]=a.providerId,a.name&&(b["@Name"]=a.name),a.loc&&(b["@Loc"]=a.loc),b})),a.getComplete&&(b["samlp:GetComplete"]=a.getComplete),b})),this.options.scoping.requesterId&&(a["samlp:RequesterID"]=this.options.scoping.requesterId),e["samlp:AuthnRequest"]["samlp:Scoping"]=a}let h=(0,n.buildXmlBuilderObject)(e,!1);return b&&(0,l.isValidSamlSigningOptions)(this.options)&&(h=(0,q.signAuthnRequestPost)(h,this.options)),h}async _generateLogoutRequest(a){let b=this.options.generateUniqueId(),c=(0,p.generateInstant)(),d={"samlp:LogoutRequest":{"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","@ID":b,"@Version":"2.0","@IssueInstant":c,"@Destination":this.options.logoutUrl,"saml:Issuer":{"@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","#text":this.options.issuer},"samlp:Extensions":{},"saml:NameID":{"@Format":a.nameIDFormat,"#text":a.nameID}}},e=this.options.samlLogoutRequestExtensions;if(null!=e){if("object"!=typeof e)throw TypeError("samlLogoutRequestExtensions should be Object");d["samlp:LogoutRequest"]["samlp:Extensions"]={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol",...e}}else delete d["samlp:LogoutRequest"]["samlp:Extensions"];return null!=a.nameQualifier&&(d["samlp:LogoutRequest"]["saml:NameID"]["@NameQualifier"]=a.nameQualifier),null!=a.spNameQualifier&&(d["samlp:LogoutRequest"]["saml:NameID"]["@SPNameQualifier"]=a.spNameQualifier),a.sessionIndex&&(d["samlp:LogoutRequest"]["saml2p:SessionIndex"]={"@xmlns:saml2p":"urn:oasis:names:tc:SAML:2.0:protocol","#text":a.sessionIndex}),await this.cacheProvider.saveAsync(b,c),(0,n.buildXmlBuilderObject)(d,!1)}_generateLogoutResponse(a,b){let c={"samlp:LogoutResponse":{"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","@ID":this.options.generateUniqueId(),"@Version":"2.0","@IssueInstant":(0,p.generateInstant)(),"@Destination":this.options.logoutUrl,"@InResponseTo":a.ID,"saml:Issuer":{"#text":this.options.issuer},"samlp:Status":b?{"samlp:StatusCode":{"@Value":"urn:oasis:names:tc:SAML:2.0:status:Success"}}:{"samlp:StatusCode":{"@Value":"urn:oasis:names:tc:SAML:2.0:status:Requester","samlp:StatusCode":{"@Value":"urn:oasis:names:tc:SAML:2.0:status:UnknownPrincipal"}}}}};return(0,n.buildXmlBuilderObject)(c,!1)}async _requestToUrlAsync(a,b,c,d){(0,m.assertRequired)(this.options.entryPoint,"entryPoint is required");let e=a||b;(0,m.assertRequired)(e,"either request or response is required");let f=(this.options.skipRequestCompression?Buffer.from(e,"utf8"):await v(e)).toString("base64"),h=new g.URL(this.options.entryPoint);if("logout"===c)this.options.logoutUrl&&(h=new g.URL(this.options.logoutUrl));else if("authorize"!==c)throw Error("Unknown operation: "+c);let i=a?{SAMLRequest:f}:{SAMLResponse:f};if(Object.keys(d).forEach(a=>{i[a]=d[a]}),(0,l.isValidSamlSigningOptions)(this.options)){if(!this.options.entryPoint)throw Error('"entryPoint" config parameter is required for signed messages');this.signRequest(i)}return Object.keys(i).forEach(a=>{h.searchParams.set(a,i[a])}),h.toString()}_getAdditionalParams(a,b,c){let d={};return"string"==typeof a&&a.length>0&&(d.RelayState=a),Object.assign(d,this.options.additionalParams,"logout"===b?this.options.additionalLogoutParams:this.options.additionalAuthorizeParams,null!=c?c:{})}async getAuthorizeUrlAsync(a,b,c){let d=await this.generateAuthorizeRequestAsync(this.options.passive,!1),e="authorize",f=c&&c.additionalParams||{};return await this._requestToUrlAsync(d,null,e,this._getAdditionalParams(a,e,f))}async getAuthorizeMessageAsync(a,b,c){let d;(0,m.assertRequired)(this.options.entryPoint,"entryPoint is required");let e=await this.generateAuthorizeRequestAsync(this.options.passive,!0);d=this.options.skipRequestCompression?Buffer.from(e,"utf8"):await v(e);let f=c&&c.additionalParams||{},g=this._getAdditionalParams(a,"authorize",f),h={SAMLRequest:d.toString("base64")};return Object.keys(g).forEach(a=>{h[a]=g[a]||""}),h}async getAuthorizeFormAsync(a,b,c){(0,m.assertRequired)(this.options.entryPoint,"entryPoint is required");let d=function(a,b){let c=b?"&#13;":"\n";return(""+a).replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r\n/g,c).replace(/[\r\n]/g,c)},e=await this.getAuthorizeMessageAsync(a,b,c),f=Object.keys(e).map(a=>'<input type="hidden" name="'+a+'" value="'+d(e[a])+'" />').join("\r\n");return["<!DOCTYPE html>","<html>","<head>",'<meta charset="utf-8">','<meta http-equiv="x-ua-compatible" content="ie=edge">',"</head>",'<body onload="document.forms[0].submit()">',"<noscript>","<p><strong>Note:</strong> Since your browser does not support JavaScript, you must press the button below once to proceed.</p>","</noscript>",'<form method="post" action="'+encodeURI(this.options.entryPoint)+'">',f,'<input type="submit" value="Submit" />',"</form>",'<script>document.forms[0].style.display="none";<\/script>',"</body>","</html>"].join("\r\n")}async getLogoutUrlAsync(a,b,c){let d=await this._generateLogoutRequest(a),e="logout",f=c&&c.additionalParams||{};return await this._requestToUrlAsync(d,null,e,this._getAdditionalParams(b,e,f))}getLogoutResponseUrl(a,b,c,d,e){i.callbackify(()=>this.getLogoutResponseUrlAsync(a,b,c,d))(e)}async getLogoutResponseUrlAsync(a,b,c,d){let e=this._generateLogoutResponse(a,d),f="logout",g=c&&c.additionalParams||{};return await this._requestToUrlAsync(null,e,f,this._getAdditionalParams(b,f,g))}async getKeyInfosAsPem(){return"function"==typeof this.options.idpCert?await w(this.options):(this.pemFiles.length>0||(this.pemFiles=await w(this.options)),this.pemFiles)}async getSignedAssertion(a){let b=(await (0,n.parseDomFromString)(a)).documentElement;if("Response"===b.localName){let a=n.xpath.selectElements(b,"./*[local-name()='Assertion']");if(1==a.length)return a[0].toString();let c=n.xpath.selectElements(b,"./*[local-name()='EncryptedAssertion']");if(1===c.length){(0,m.assertRequired)(this.options.decryptionPvk,"No decryption key for encrypted SAML response");let a=c[0].toString(),b=await (0,n.decryptXml)(a,this.options.decryptionPvk),d=(await (0,n.parseDomFromString)(b)).documentElement;if("Assertion"!==d.localName)throw Error("Invalid EncryptedAssertion content");return d.toString()}}else if("Assertion"===b.localName)return b.toString();return null}async validatePostResponseAsync(a){var b,c,d,e;let f,g,h=null;try{f=Buffer.from(a.SAMLResponse,"base64").toString("utf8"),g=await (0,n.parseDomFromString)(f);let i=n.xpath.selectAttributes(g,"/*[local-name()='Response']/@InResponseTo");i&&(h=i.length?i[0].nodeValue:null,await this.validateInResponseTo(h));let j=await this.getKeyInfosAsPem(),k=!1,o=(0,n.getVerifiedXml)(f,g.documentElement,j),p=null,q=null;if(o&&(k=!0),!0===this.options.wantAuthnResponseSigned&&!1===k)throw Error("Invalid document signature");let r=n.xpath.selectElements(g,"/*[local-name()='Response']/*[local-name()='Assertion']"),s=n.xpath.selectElements(g,"/*[local-name()='Response']/*[local-name()='EncryptedAssertion']");if(r.length+s.length>1)throw Error("Invalid signature: multiple assertions");if(1==r.length&&(this.options.wantAssertionsSigned||!k)&&!(p=(0,n.getVerifiedXml)(f,r[0],j)))throw Error("Invalid signature");if(1==s.length){(0,m.assertRequired)(this.options.decryptionPvk,"No decryption key for encrypted SAML response");let a=s[0].toString(),b=await (0,n.decryptXml)(a,this.options.decryptionPvk),c=await (0,n.parseDomFromString)(b),d=n.xpath.selectElements(c,"/*[local-name()='Assertion']");if(1!=d.length)throw Error("Invalid EncryptedAssertion content");if((this.options.wantAssertionsSigned||!k)&&(q=(0,n.getVerifiedXml)(b,d[0],j),null==q))throw Error("Invalid signature from encrypted assertion")}let t=o||p||q;if(t&&r.length+s.length==1){let a=await this.getSignedAssertion(t);if(null==a)throw Error("Cannot obtain assertion from signed data");return await this.processValidlySignedAssertionAsync(a,f,h)}let u=await (0,n.parseXml2JsFromString)(f),v=u.Response;if(v){if(!("Assertion"in v)){let a=v.Status;if(a){let f=a[0].StatusCode;if(f&&(null==(b=f[0].$)?void 0:b.Value)==="urn:oasis:names:tc:SAML:2.0:status:Responder"){let a=f[0].StatusCode;if(a&&(null==(c=a[0].$)?void 0:c.Value)==="urn:oasis:names:tc:SAML:2.0:status:NoPassive"){if(!k)throw Error("Invalid signature: NoPassive");return{profile:null,loggedOut:!1}}}if(f&&(null==(d=f[0].$)?void 0:d.Value)){let b=f[0].$.Value.match(/[^:]*$/);if(b&&"Success"!=b[0]){let c="unspecified";if(a[0].StatusMessage)c=a[0].StatusMessage[0]._||c;else if(f[0].StatusCode){let a=null==(e=f[0].StatusCode[0].$)?void 0:e.Value.match(/[^:]*$/);c=a?a[0]:c}let d=(0,n.buildXml2JsObject)("Status",a[0]);throw new l.SamlStatusError("SAML provider returned "+b+" error: "+c,d)}}}}throw Error("Missing SAML assertion")}if(!k)throw Error("Invalid signature: No response found");if(u.LogoutResponse)return{profile:null,loggedOut:!0};throw Error("Unknown SAML response message")}catch(a){throw t("validatePostResponse resulted in an error: %s",a),this.mustValidateInResponseTo(!!h)&&await this.cacheProvider.removeAsync(h),a}}async validateInResponseTo(a){if(this.mustValidateInResponseTo(!!a))if(a){if(!await this.cacheProvider.getAsync(a))throw Error("InResponseTo is not valid");return}else throw Error("InResponseTo is missing from response")}async validateRedirectAsync(a,b){let c=a.SAMLRequest?"SAMLRequest":"SAMLResponse",d=Buffer.from(a[c],"base64"),e=await u(d),f=await (0,n.parseDomFromString)(e.toString()),g=await (0,n.parseXml2JsFromString)(e);return"SAMLResponse"===c?await this.verifyLogoutResponse(g):this.verifyLogoutRequest(g),await this.hasValidSignatureForRedirect(a,b),await this.processValidlySignedSamlLogoutAsync(g,f)}async hasValidSignatureForRedirect(a,b){let c=b.split("&"),d=a=>c.filter(b=>new RegExp(a).test(b))[0];if(!a.Signature)return!0;{let b=d("SAMLRequest")||d("SAMLResponse");if(d("RelayState")&&(b+="&"+d("RelayState")),b+="&"+d("SigAlg"),!(await this.getKeyInfosAsPem()).some(c=>this.validateSignatureForRedirect(b,a.Signature,a.SigAlg,c)))throw Error("Invalid query signature")}}validateSignatureForRedirect(a,b,c,d){let e,g=f.getHashes().findIndex(function(a){let b=c.toLowerCase().replace(/.*#(.*)$/,"$1");return a.toLowerCase()===b});if(g>-1)e=f.getHashes()[g];else throw Error(c+" is not supported");let h=f.createVerify(e);return h.update(a),h.verify(d,b,"base64")}verifyLogoutRequest(a){this.verifyIssuer(a.LogoutRequest);let b=new Date().getTime(),c=a.LogoutRequest.$,d=this.checkTimestampsValidityError(b,c.NotBefore,c.NotOnOrAfter);if(d)throw d}async verifyLogoutResponse(a){let b=a.LogoutResponse.Status[0].StatusCode[0].$.Value;if("urn:oasis:names:tc:SAML:2.0:status:Success"!==b)throw Error("Bad status code: "+b);this.verifyIssuer(a.LogoutResponse);let c=a.LogoutResponse.$.InResponseTo;if(c)return this.validateInResponseTo(c)}verifyIssuer(a){if(null!=this.options.idpIssuer){let b=a.Issuer;if(b){if(b[0]._!==this.options.idpIssuer)throw Error("Unknown SAML issuer. Expected: "+this.options.idpIssuer+" Received: "+b[0]._)}else throw Error("Missing SAML issuer")}}async processValidlySignedAssertionAsync(a,b,c){let d=new Date().getTime(),e={},f=await (0,n.parseXml2JsFromString)(a),g=f.Assertion;b:{let a,b=g.Issuer;b&&b[0]._&&(e.issuer=b[0]._),null!=c&&(e.inResponseTo=c);let f=g.AuthnStatement;f&&f[0].$&&f[0].$.SessionIndex&&(e.sessionIndex=f[0].$.SessionIndex);let h=g.Subject,i=null,j=null;if(h){let b=h[0].NameID;b&&b[0]._&&(e.nameID=b[0]._,b[0].$&&b[0].$.Format&&(e.nameIDFormat=b[0].$.Format,e.nameQualifier=b[0].$.NameQualifier,e.spNameQualifier=b[0].$.SPNameQualifier)),null!=(a=null==(j=h[0].SubjectConfirmation)?void 0:j.find(a=>{var b;let c=null==(b=a.SubjectConfirmationData)?void 0:b[0];if(null==c?void 0:c.$){let a=c.$.NotBefore,b=c.$.NotOnOrAfter,e=this.calcMaxAgeAssertionTime(this.options.maxAssertionAgeMs,b,g.$.IssueInstant);if(null===this.checkTimestampsValidityError(d,a,b,e))return!0}return!1}))&&(i=a.SubjectConfirmationData[0])}if(this.mustValidateInResponseTo(!!c))if(a){if(null==i?void 0:i.$){let a=i.$.InResponseTo;if(c&&a&&a!=c)throw await this.cacheProvider.removeAsync(c),Error("InResponseTo does not match subjectInResponseTo");if(a){let b=!1,e=await this.cacheProvider.getAsync(a);if(e&&d<new Date(e).getTime()+this.options.requestIdExpirationPeriodMs&&(b=!0),await this.cacheProvider.removeAsync(c),!b)throw Error("SubjectInResponseTo is not valid");break b}}}else if(null!=j&&null==a)throw Error("No valid subject confirmation found among those available in the SAML assertion");else{await this.cacheProvider.removeAsync(c);break b}else break b}let h=g.Conditions?g.Conditions[0]:null;if(g.Conditions&&g.Conditions.length>1)throw Error("Unable to process multiple conditions in SAML assertion");if(h&&h.$){let a=this.calcMaxAgeAssertionTime(this.options.maxAssertionAgeMs,h.$.NotOnOrAfter,g.$.IssueInstant),b=this.checkTimestampsValidityError(d,h.$.NotBefore,h.$.NotOnOrAfter,a);if(b)throw b}if(!1!==this.options.audience){let a=this.checkAudienceValidityError(this.options.audience,h.AudienceRestriction);if(a)throw a}let i=g.AttributeStatement;if(i){let a=[].concat(...i.filter(a=>Array.isArray(a.Attribute)).map(a=>a.Attribute)),b=a=>Object.keys(a).some(a=>"_"!==a&&"$"!==a)?a:a._;if(a.length>0){let c={};a.forEach(a=>{if(!Object.prototype.hasOwnProperty.call(a,"AttributeValue"))return;let d=a.$.Name,f=1===a.AttributeValue.length?b(a.AttributeValue[0]):a.AttributeValue.map(b);c[d]=f,Object.prototype.hasOwnProperty.call(e,d)||(e[d]=f)}),e.attributes=c}}return!e.mail&&e["urn:oid:0.9.2342.19200300.100.1.3"]&&(e.mail=e["urn:oid:0.9.2342.19200300.100.1.3"]),!e.email&&e.mail&&(e.email=e.mail),e.getAssertionXml=()=>a.toString(),e.getAssertion=()=>f,e.getSamlResponseXml=()=>b,{profile:e,loggedOut:!1}}checkTimestampsValidityError(a,b,c,d){if(-1==this.options.acceptedClockSkewMs)return null;if(b){let c=(0,p.dateStringToTimestamp)(b,"NotBefore");if(a+this.options.acceptedClockSkewMs<c)return Error("SAML assertion not yet valid")}if(c){let b=(0,p.dateStringToTimestamp)(c,"NotOnOrAfter");if(a-this.options.acceptedClockSkewMs>=b)return Error("SAML assertion expired: clocks skewed too much")}return d&&a-this.options.acceptedClockSkewMs>=d?Error("SAML assertion expired: assertion too old"):null}checkAudienceValidityError(a,b){if(!b||b.length<1)return Error("SAML assertion has no AudienceRestriction");let c=b.map(b=>b.Audience&&b.Audience[0]&&b.Audience[0]._?b.Audience.every(b=>b._!==a)?Error("SAML assertion audience mismatch. Expected: "+a+" Received: "+b.Audience.map(a=>a._).join(", ")):null:Error("SAML assertion AudienceRestriction has no Audience value")).filter(a=>null!==a);return c.length>0?c[0]:null}async validatePostRequestAsync(a,{_parseDomFromString:b=n.parseDomFromString,_parseXml2JsFromString:c=n.parseXml2JsFromString,_validateSignature:d=n.validateSignature}={}){let e=Buffer.from(a.SAMLRequest,"base64").toString("utf8"),f=await b(e),g=await c(e),h=await this.getKeyInfosAsPem();if(!d(e,f.documentElement,h))throw Error("Invalid signature on documentElement");return await this.processValidlySignedPostRequestAsync(g,f)}async processValidlySignedPostRequestAsync(a,b){var c;let d=a.LogoutRequest;if(this.verifyLogoutRequest(a),d){let a={};if(d.$.ID)a.ID=d.$.ID;else throw Error("Missing SAML LogoutRequest ID");let e=d.Issuer;if(e&&e[0]._)a.issuer=e[0]._;else throw Error("Missing SAML issuer");let f=await (0,n.getNameIdAsync)(b,null!=(c=this.options.decryptionPvk)?c:null);if(f.value)a.nameID=f.value,f.format&&(a.nameIDFormat=f.format);else throw Error("Missing SAML NameID");let g=d.SessionIndex;return g&&(a.sessionIndex=g[0]._),{profile:a,loggedOut:!0}}throw Error("Unknown SAML request message")}async processValidlySignedSamlLogoutAsync(a,b){let c=a.LogoutResponse,d=a.LogoutRequest;if(c)return{profile:null,loggedOut:!0};if(d)return await this.processValidlySignedPostRequestAsync(a,b);throw Error("Unknown SAML response message")}generateServiceProviderMetadata(a,b){return(0,r.generateServiceProviderMetadata)({...this.options,decryptionCert:a,publicCerts:b})}calcMaxAgeAssertionTime(a,b,c){let d=(0,p.dateStringToTimestamp)(b,"NotOnOrAfter"),e=(0,p.dateStringToTimestamp)(c,"IssueInstant");if(0===a)return d;let f=e+a;return f<d?f:d}mustValidateInResponseTo(a){return this.options.validateInResponseTo===l.ValidateInResponseTo.always||this.options.validateInResponseTo===l.ValidateInResponseTo.ifPresent&&a}}b.SAML=x},48813:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=(function(){class a extends d{constructor(a,c,d){if(super(a),null==c)throw Error("Missing DTD notation name. "+this.debugInfo(c));if(!d.pubID&&!d.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(c));this.name=this.stringify.name(c),this.type=b.NotationDeclaration,null!=d.pubID&&(this.pubID=this.stringify.dtdPubID(d.pubID)),null!=d.sysID&&(this.sysID=this.stringify.dtdSysID(d.sysID))}toString(a){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(a))}}return Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),a}).call(this)}).call(this)},50962:function(a,b,c){(function(){var b,d,e,f,g,h,i;({isPlainObject:i}=c(43594)),e=c(88909),d=c(25141),f=c(73067),b=c(26468),h=c(31753),g=c(44981),a.exports=(function(){class a extends f{constructor(a){super(null),this.name="#document",this.type=b.Document,this.documentURI=null,this.domConfig=new d,a||(a={}),a.writer||(a.writer=new g),this.options=a,this.stringify=new h(a)}end(a){var b;return b={},a?i(a)&&(b=a,a=this.options.writer):a=this.options.writer,a.document(this,a.filterOptions(b))}toString(a){return this.options.writer.document(this,this.options.writer.filterOptions(a))}createElement(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createComment(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}importNode(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementById(a){throw Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw Error("This DOM method is not implemented."+this.debugInfo())}renameNode(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createEvent(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(a.prototype,"implementation",{value:new e}),Object.defineProperty(a.prototype,"doctype",{get:function(){var a,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if((a=e[c]).type===b.DocType)return a;return null}}),Object.defineProperty(a.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(a.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(a.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].encoding:null}}),Object.defineProperty(a.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(a.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(a.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(a.prototype,"origin",{get:function(){return null}}),Object.defineProperty(a.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(a.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(a.prototype,"contentType",{get:function(){return null}}),a}).call(this)}).call(this)},55443:function(a,b,c){(function(){var b,d,e;({isObject:e}=c(43594)),d=c(73067),b=c(26468),a.exports=class extends d{constructor(a,c,d,f){super(a),e(c)&&({version:c,encoding:d,standalone:f}=c),c||(c="1.0"),this.type=b.Declaration,this.version=this.stringify.xmlVersion(c),null!=d&&(this.encoding=this.stringify.xmlEncoding(d)),null!=f&&(this.standalone=this.stringify.xmlStandalone(f))}toString(a){return this.options.writer.declaration(this,this.options.writer.filterOptions(a))}}}).call(this)},56068:function(a,b){(function(){b.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},58029:(a,b)=>{!function(a){"use strict";var b,c,d,e,f=function(a,b){for(var c=0;c<b.length;c+=1)a(b[c],c,b)},g=function(a,b,c){var d=b;return f(function(b,c){d=a(d,b,c)},c),d},h=function(a,b){var c=Array(b.length);return f(function(b,d){c[d]=a(b)},b),c},i=function(a,b){var c=[];return f(function(b,d){a(b,d)&&c.push(b)},b),c},j=function(a,b){for(var c=0;c<a.length;c+=1)if(a[c]===b)return!0;return!1};function k(a){return a.toString()}var l=function(a,b){return b.join(a)},m=function(a,b,c){return a+c+b},n=Array.prototype.concat;function o(a,b){for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(c[f]=e[f])}return c}function p(){this.init()}function q(a){this.expression=a}function r(a,b,c){b in a||(a[b]=c)}function s(){}function t(a){arguments.length>0&&this.init(a)}function u(a){arguments.length>0&&this.init(a)}function v(a,b){arguments.length>0&&this.init(a,b)}function w(a,b){arguments.length>0&&this.init(a,b)}function x(a,b){arguments.length>0&&this.init(a,b)}function y(a,b){arguments.length>0&&this.init(a,b)}function z(a,b){arguments.length>0&&this.init(a,b)}function A(a,b){arguments.length>0&&this.init(a,b)}function B(a,b){arguments.length>0&&this.init(a,b)}function C(a,b){arguments.length>0&&this.init(a,b)}function D(a,b){arguments.length>0&&this.init(a,b)}function E(a,b){arguments.length>0&&this.init(a,b)}function F(a,b){arguments.length>0&&this.init(a,b)}function G(a,b){arguments.length>0&&this.init(a,b)}function H(a,b){arguments.length>0&&this.init(a,b)}function I(a,b){arguments.length>0&&this.init(a,b)}function J(a,b){arguments.length>0&&this.init(a,b)}function K(a,b,c){arguments.length>0&&this.init(a,b,c)}function L(a,b,c){return K.applyPredicates(a.predicates,b,K.applyStep(a,b,c))}function M(a,b,c){return function(a){for(var b=[],c=0;c<a.length;c+=32767){var d=a.slice(c,c+32767);b=n.apply(b,d)}return b}(h(L.bind(null,c,a),b))}function N(a,b){arguments.length>0&&this.init(a,b)}function O(a,b,c){arguments.length>0&&this.init(a,b,c)}function P(a,b){arguments.length>0&&this.init(a,b)}function Q(a){arguments.length>0&&this.init(a)}function R(a,b){arguments.length>0&&this.init(a,b)}p.prototype={},p.prototype.constructor=p,p.superclass=Object.prototype,p.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(a){return new w(a[0],a[2])},this.reduceActions[5]=function(a){return new x(a[0],a[2])},this.reduceActions[7]=function(a){return new y(a[0],a[2])},this.reduceActions[8]=function(a){return new z(a[0],a[2])},this.reduceActions[10]=function(a){return new A(a[0],a[2])},this.reduceActions[11]=function(a){return new B(a[0],a[2])},this.reduceActions[12]=function(a){return new C(a[0],a[2])},this.reduceActions[13]=function(a){return new D(a[0],a[2])},this.reduceActions[15]=function(a){return new E(a[0],a[2])},this.reduceActions[16]=function(a){return new F(a[0],a[2])},this.reduceActions[18]=function(a){return new G(a[0],a[2])},this.reduceActions[19]=function(a){return new H(a[0],a[2])},this.reduceActions[20]=function(a){return new I(a[0],a[2])},this.reduceActions[22]=function(a){return new u(a[1])},this.reduceActions[24]=function(a){return new J(a[0],a[2])},this.reduceActions[25]=function(a){return new K(void 0,void 0,a[0])},this.reduceActions[27]=function(a){return a[0].locationPath=a[2],a[0]},this.reduceActions[28]=function(a){return a[0].locationPath=a[2],a[0].locationPath.steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0]},this.reduceActions[29]=function(a){return new K(a[0],[],void 0)},this.reduceActions[30]=function(a){return ac.instance_of(a[0],K)?(void 0==a[0].filterPredicates&&(a[0].filterPredicates=[]),a[0].filterPredicates.push(a[1]),a[0]):new K(a[0],[a[1]],void 0)},this.reduceActions[32]=function(a){return a[1]},this.reduceActions[33]=function(a){return new T(a[0])},this.reduceActions[34]=function(a){return new U(a[0])},this.reduceActions[36]=function(a){return new R(a[0],[])},this.reduceActions[37]=function(a){return new R(a[0],a[2])},this.reduceActions[38]=function(a){return[a[0]]},this.reduceActions[39]=function(a){return a[2].unshift(a[0]),a[2]},this.reduceActions[43]=function(a){return new N(!0,[])},this.reduceActions[44]=function(a){return a[1].absolute=!0,a[1]},this.reduceActions[46]=function(a){return new N(!1,[a[0]])},this.reduceActions[47]=function(a){return a[0].steps.push(a[2]),a[0]},this.reduceActions[49]=function(a){return new O(a[0],a[1],[])},this.reduceActions[50]=function(a){return new O(O.CHILD,a[0],[])},this.reduceActions[51]=function(a){return new O(a[0],a[1],a[2])},this.reduceActions[52]=function(a){return new O(O.CHILD,a[0],a[1])},this.reduceActions[54]=function(a){return[a[0]]},this.reduceActions[55]=function(a){return a[1].unshift(a[0]),a[1]},this.reduceActions[56]=function(a){if("ancestor"==a[0])return O.ANCESTOR;if("ancestor-or-self"==a[0])return O.ANCESTORORSELF;if("attribute"==a[0])return O.ATTRIBUTE;if("child"==a[0])return O.CHILD;if("descendant"==a[0])return O.DESCENDANT;else if("descendant-or-self"==a[0])return O.DESCENDANTORSELF;else if("following"==a[0])return O.FOLLOWING;else if("following-sibling"==a[0])return O.FOLLOWINGSIBLING;else if("namespace"==a[0])return O.NAMESPACE;else if("parent"==a[0])return O.PARENT;else if("preceding"==a[0])return O.PRECEDING;else if("preceding-sibling"==a[0])return O.PRECEDINGSIBLING;else if("self"==a[0])return O.SELF;return -1},this.reduceActions[57]=function(a){return O.ATTRIBUTE},this.reduceActions[59]=function(a){return"comment"==a[0]?P.commentTest:"text"==a[0]?P.textTest:"processing-instruction"==a[0]?P.anyPiTest:"node"==a[0]?P.nodeTest:new P(-1,void 0)},this.reduceActions[60]=function(a){return new P.PITest(a[2])},this.reduceActions[61]=function(a){return a[1]},this.reduceActions[63]=function(a){return a[1].absolute=!0,a[1].steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[1]},this.reduceActions[64]=function(a){return a[0].steps.push(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0].steps.push(a[2]),a[0]},this.reduceActions[65]=function(a){return new O(O.SELF,P.nodeTest,[])},this.reduceActions[66]=function(a){return new O(O.PARENT,P.nodeTest,[])},this.reduceActions[67]=function(a){return new Q(a[1])},this.reduceActions[68]=function(a){return P.nameTestAny},this.reduceActions[69]=function(a){return new P.NameTestPrefixAny(a[0].split(":")[0])},this.reduceActions[70]=function(a){return new P.NameTestQName(a[0])}},p.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],p.actionTableNumber=[" 1 0 /.-,+*)(' & %$ # \"!"," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY "," 1 0 /.-,+*)(' & %$ # \"!","K1 KKKKKKKK . +*)('KKKKKK KK# K\" "," 1 0 /.-,+*)(' & %$ # \"!"," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q "," 1 . +*)(' # \" ","b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX "," 1 0 /.-,+*)(' & %$m # \"!","_ f________ ______e __ _ "," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 . +*)(' # \" "," 1 . +*)(' # \" ","> >>>>>>>>> >>>>>>> >> >> "," 1 . +*)(' # \" "," 1 . +*)(' # \" ","Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," \x87 ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," \x88 "," F\x89 ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," \x8a ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE "," 1 0 /.-,+*)(' & %$ # \"!","] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],p.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","\x80456789:;<=>?@ AB CDEFGH IJ\x81"," \x82 EFGH IJ "," \x83 EFGH IJ "," "," \x84 GH IJ "," \x85 GH IJ "," i \x86 "," i \x87 "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ AB\x8cqCDEFGH IJ "," "," "],p.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],p.DOUBLEDOT=2,p.DOUBLECOLON=3,p.DOUBLESLASH=4,p.NOTEQUAL=5,p.LESSTHANOREQUAL=6,p.GREATERTHANOREQUAL=7,p.AND=8,p.OR=9,p.MOD=10,p.DIV=11,p.MULTIPLYOPERATOR=12,p.FUNCTIONNAME=13,p.AXISNAME=14,p.LITERAL=15,p.NUMBER=16,p.ASTERISKNAMETEST=17,p.QNAME=18,p.NCNAMECOLONASTERISK=19,p.NODETYPE=20,p.PROCESSINGINSTRUCTIONWITHLITERAL=21,p.EQUALS=22,p.LESSTHAN=23,p.GREATERTHAN=24,p.PLUS=25,p.MINUS=26,p.BAR=27,p.SLASH=28,p.LEFTPARENTHESIS=29,p.RIGHTPARENTHESIS=30,p.COMMA=31,p.AT=32,p.LEFTBRACKET=33,p.RIGHTBRACKET=34,p.DOT=35,p.DOLLAR=36,p.prototype.tokenize=function(a){for(var b=[],c=[],d=a+"\0",e=0,f=d.charAt(e++);;){for(;" "==f||" "==f||"\r"==f||"\n"==f;)f=d.charAt(e++);if("\0"==f||e>=d.length)break;if("("==f){b.push(p.LEFTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if(")"==f){b.push(p.RIGHTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if("["==f){b.push(p.LEFTBRACKET),c.push(f),f=d.charAt(e++);continue}if("]"==f){b.push(p.RIGHTBRACKET),c.push(f),f=d.charAt(e++);continue}if("@"==f){b.push(p.AT),c.push(f),f=d.charAt(e++);continue}if(","==f){b.push(p.COMMA),c.push(f),f=d.charAt(e++);continue}if("|"==f){b.push(p.BAR),c.push(f),f=d.charAt(e++);continue}if("+"==f){b.push(p.PLUS),c.push(f),f=d.charAt(e++);continue}if("-"==f){b.push(p.MINUS),c.push(f),f=d.charAt(e++);continue}if("="==f){b.push(p.EQUALS),c.push(f),f=d.charAt(e++);continue}if("$"==f){b.push(p.DOLLAR),c.push(f),f=d.charAt(e++);continue}if("."==f){if("."==(f=d.charAt(e++))){b.push(p.DOUBLEDOT),c.push(".."),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g="."+f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}b.push(p.DOT),c.push(".");continue}if("'"==f||'"'==f){for(var h=f,i="";e<d.length&&(f=d.charAt(e))!==h;)i+=f,e+=1;if(f!==h)throw ad.fromMessage("Unterminated string literal: "+h+i);e+=1,b.push(p.LITERAL),c.push(i),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g=f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);if("."==f&&d.charAt(e)>="0"&&"9">=d.charAt(e))for(g+=f,g+=d.charAt(e++),f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}if("*"==f){if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){b.push(p.MULTIPLYOPERATOR),c.push(f),f=d.charAt(e++);continue}}b.push(p.ASTERISKNAMETEST),c.push(f),f=d.charAt(e++);continue}if(":"==f&&":"==d.charAt(e)){b.push(p.DOUBLECOLON),c.push("::"),e++,f=d.charAt(e++);continue}if("/"==f){if("/"==(f=d.charAt(e++))){b.push(p.DOUBLESLASH),c.push("//"),f=d.charAt(e++);continue}b.push(p.SLASH),c.push("/");continue}if("!"==f&&"="==d.charAt(e)){b.push(p.NOTEQUAL),c.push("!="),e++,f=d.charAt(e++);continue}if("<"==f){if("="==d.charAt(e)){b.push(p.LESSTHANOREQUAL),c.push("<="),e++,f=d.charAt(e++);continue}b.push(p.LESSTHAN),c.push("<"),f=d.charAt(e++);continue}if(">"==f){if("="==d.charAt(e)){b.push(p.GREATERTHANOREQUAL),c.push(">="),e++,f=d.charAt(e++);continue}b.push(p.GREATERTHAN),c.push(">"),f=d.charAt(e++);continue}if("_"==f||ac.isLetter(f.charCodeAt(0))){var k=f;for(f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){if("and"==k){b.push(p.AND),c.push(k);continue}if("or"==k){b.push(p.OR),c.push(k);continue}if("mod"==k){b.push(p.MOD),c.push(k);continue}if("div"==k){b.push(p.DIV),c.push(k);continue}}}if(":"==f){if("*"==d.charAt(e)){b.push(p.NCNAMECOLONASTERISK),c.push(k+":*"),e++,f=d.charAt(e++);continue}if("_"==d.charAt(e)||ac.isLetter(d.charCodeAt(e))){for(k+=":",f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if("("==f){b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}if(":"==d.charAt(e)){b.push(p.AXISNAME),c.push(k);continue}}if("("==f){if("comment"==k||"text"==k||"node"==k){b.push(p.NODETYPE),c.push(k);continue}if("processing-instruction"==k){")"==d.charAt(e)?b.push(p.NODETYPE):b.push(p.PROCESSINGINSTRUCTIONWITHLITERAL),c.push(k);continue}b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}throw Error("Unexpected character "+f)}return b.push(1),c.push("[EOF]"),[b,c]},p.SHIFT="s",p.REDUCE="r",p.ACCEPT="a",p.prototype.parse=function(a){var b,c,d,e,f=this.tokenize(a);if(void 0!=f){b=f[0],c=f[1];var g=0,h=[],i=[],j=[];for(h.push(0),i.push(1),j.push("_S"),d=b[g],e=c[g++];;)switch(a=h[h.length-1],p.actionTable[a].charAt(d-1)){case p.SHIFT:i.push(-d),j.push(e),h.push(p.actionTableNumber[a].charCodeAt(d-1)-32),d=b[g],e=c[g++];break;case p.REDUCE:for(var k=p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][1],l=[],m=0;m<k;m++)i.pop(),l.unshift(j.pop()),h.pop();var n=h[h.length-1];i.push(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]),void 0==this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32]?j.push(l[0]):j.push(this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32](l)),h.push(p.gotoTable[n].charCodeAt(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]-2)-33);break;case p.ACCEPT:return new q(j.pop());default:throw Error("XPath parse error")}}},q.prototype={},q.prototype.constructor=q,q.superclass=Object.prototype,q.prototype.toString=function(){return this.expression.toString()},q.prototype.evaluate=function(a){return a.contextNode=a.expressionContextNode,a.contextSize=1,a.contextPosition=1,a.isHtml&&(r(a,"caseInsensitive",!0),r(a,"allowAnyNamespaceForNoPrefix",!0)),r(a,"caseInsensitive",!1),this.expression.evaluate(a)},q.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",q.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",s.prototype={},s.prototype.constructor=s,s.superclass=Object.prototype,s.prototype.init=function(){},s.prototype.toString=function(){return"<Expression>"},s.prototype.evaluate=function(a){throw Error("Could not evaluate expression.")},t.prototype=new s,t.prototype.constructor=t,t.superclass=s.prototype,t.prototype.init=function(a){this.rhs=a},u.prototype=new t,u.prototype.constructor=u,u.superclass=t.prototype,u.prototype.init=function(a){u.superclass.init.call(this,a)},u.prototype.evaluate=function(a){return this.rhs.evaluate(a).number().negate()},u.prototype.toString=function(){return"-"+this.rhs.toString()},v.prototype=new s,v.prototype.constructor=v,v.superclass=s.prototype,v.prototype.init=function(a,b){this.lhs=a,this.rhs=b},w.prototype=new v,w.prototype.constructor=w,w.superclass=v.prototype,w.prototype.init=function(a,b){w.superclass.init.call(this,a,b)},w.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},w.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?b:this.rhs.evaluate(a).bool()},x.prototype=new v,x.prototype.constructor=x,x.superclass=v.prototype,x.prototype.init=function(a,b){x.superclass.init.call(this,a,b)},x.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},x.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?this.rhs.evaluate(a).bool():b},y.prototype=new v,y.prototype.constructor=y,y.superclass=v.prototype,y.prototype.init=function(a,b){y.superclass.init.call(this,a,b)},y.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},y.prototype.evaluate=function(a){return this.lhs.evaluate(a).equals(this.rhs.evaluate(a))},z.prototype=new v,z.prototype.constructor=z,z.superclass=v.prototype,z.prototype.init=function(a,b){z.superclass.init.call(this,a,b)},z.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},z.prototype.evaluate=function(a){return this.lhs.evaluate(a).notequal(this.rhs.evaluate(a))},A.prototype=new v,A.prototype.constructor=A,A.superclass=v.prototype,A.prototype.init=function(a,b){A.superclass.init.call(this,a,b)},A.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthan(this.rhs.evaluate(a))},A.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},B.prototype=new v,B.prototype.constructor=B,B.superclass=v.prototype,B.prototype.init=function(a,b){B.superclass.init.call(this,a,b)},B.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthan(this.rhs.evaluate(a))},B.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},C.prototype=new v,C.prototype.constructor=C,C.superclass=v.prototype,C.prototype.init=function(a,b){C.superclass.init.call(this,a,b)},C.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthanorequal(this.rhs.evaluate(a))},C.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},D.prototype=new v,D.prototype.constructor=D,D.superclass=v.prototype,D.prototype.init=function(a,b){D.superclass.init.call(this,a,b)},D.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthanorequal(this.rhs.evaluate(a))},D.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},E.prototype=new v,E.prototype.constructor=E,E.superclass=v.prototype,E.prototype.init=function(a,b){E.superclass.init.call(this,a,b)},E.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().plus(this.rhs.evaluate(a).number())},E.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},F.prototype=new v,F.prototype.constructor=F,F.superclass=v.prototype,F.prototype.init=function(a,b){F.superclass.init.call(this,a,b)},F.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().minus(this.rhs.evaluate(a).number())},F.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},G.prototype=new v,G.prototype.constructor=G,G.superclass=v.prototype,G.prototype.init=function(a,b){G.superclass.init.call(this,a,b)},G.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().multiply(this.rhs.evaluate(a).number())},G.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},H.prototype=new v,H.prototype.constructor=H,H.superclass=v.prototype,H.prototype.init=function(a,b){H.superclass.init.call(this,a,b)},H.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().div(this.rhs.evaluate(a).number())},H.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},I.prototype=new v,I.prototype.constructor=I,I.superclass=v.prototype,I.prototype.init=function(a,b){I.superclass.init.call(this,a,b)},I.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().mod(this.rhs.evaluate(a).number())},I.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},J.prototype=new v,J.prototype.constructor=J,J.superclass=v.prototype,J.prototype.init=function(a,b){J.superclass.init.call(this,a,b)},J.prototype.evaluate=function(a){return this.lhs.evaluate(a).nodeset().union(this.rhs.evaluate(a).nodeset())},J.prototype.toString=function(){return h(k,[this.lhs,this.rhs]).join(" | ")},K.prototype=new s,K.prototype.constructor=K,K.superclass=s.prototype,K.prototype.init=function(a,b,c){K.superclass.init.call(this),this.filter=a,this.filterPredicates=b,this.locationPath=c},K.applyPredicates=function(a,b,c){if(0===a.length)return c;var d=b.extend({});return g(function(a,b){return d.contextSize=a.length,i(function(a,c){return d.contextNode=a,d.contextPosition=c+1,K.predicateMatches(b,d)},a)},c,a)},K.getRoot=function(a,b){var c=b[0];if(9===c.nodeType)return c;if(a.virtualRoot)return a.virtualRoot;var d=c.ownerDocument;if(d)return d;for(var e=c;null!=e.parentNode;)e=e.parentNode;return e},K.applyStep=function(a,b,c){var d,e,f=[];switch(b.contextNode=c,a.axis){case O.ANCESTOR:if(b.contextNode===b.virtualRoot)break;for(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);)d=d.parentNode;break;case O.ANCESTORORSELF:for(var d=b.contextNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);d=2==d.nodeType?K.getOwnerElement(d):d.parentNode);break;case O.ATTRIBUTE:var g=b.contextNode.attributes;if(null!=g)for(var h=0;h<g.length;h++){var d=g.item(h);a.nodeTest.matches(d,b)&&f.push(d)}break;case O.CHILD:for(var d=b.contextNode.firstChild;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.DESCENDANT:for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.DESCENDANTORSELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode);for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.FOLLOWING:if(b.contextNode===b.virtualRoot)break;var e=[];null!=b.contextNode.firstChild?e.unshift(b.contextNode.firstChild):e.unshift(b.contextNode.nextSibling);for(var d=b.contextNode.parentNode;null!=d&&9!=d.nodeType&&d!==b.virtualRoot;d=d.parentNode)e.unshift(d.nextSibling);do for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;while(e.length>0);break;case O.FOLLOWINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.nextSibling;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.NAMESPACE:var i={};if(1==b.contextNode.nodeType){i.xml=q.XML_NAMESPACE_URI,i.xmlns=q.XMLNS_NAMESPACE_URI;for(var d=b.contextNode;null!=d&&1==d.nodeType;d=d.parentNode)for(var h=0;h<d.attributes.length;h++){var j=d.attributes.item(h),k=String(j.name);if("xmlns"==k)void 0==i[""]&&(i[""]=j.value);else if(k.length>6&&"xmlns:"==k.substring(0,6)){var l=k.substring(6,k.length);void 0==i[l]&&(i[l]=j.value)}}for(var l in i){var m=new Y(l,i[l],b.contextNode);a.nodeTest.matches(m,b)&&f.push(m)}}break;case O.PARENT:d=null,b.contextNode!==b.virtualRoot&&(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode),null!=d&&a.nodeTest.matches(d,b)&&f.push(d);break;case O.PRECEDING:e=null!=b.virtualRoot?[b.virtualRoot]:[function(a){for(;a&&a.parentNode;)a=a.parentNode;return a}(b.contextNode)];a:for(;e.length>0;)for(var d=e.pop();null!=d;){if(d==b.contextNode)break a;a.nodeTest.matches(d,b)&&f.unshift(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling}break;case O.PRECEDINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.previousSibling;null!=d;d=d.previousSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.SELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode)}return f},K.applySteps=function(a,b,c){return g(M.bind(null,b),c,a)},K.prototype.applyFilter=function(a,b){if(!this.filter)return{nodes:[a.contextNode]};var c=this.filter.evaluate(a);if(!ac.instance_of(c,X)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:c}}return{nodes:K.applyPredicates(this.filterPredicates||[],b,c.toUnsortedArray())}},K.applyLocationPath=function(a,b,c){if(!a)return c;var d=a.absolute?[K.getRoot(b,c)]:c;return K.applySteps(a.steps,b,d)},K.prototype.evaluate=function(a){var b=o(new Z,a),c=this.applyFilter(a,b);if("nonNodes"in c)return c.nonNodes;var d=new X;return d.addArray(K.applyLocationPath(this.locationPath,b,c.nodes)),d},K.predicateMatches=function(a,b){var c=a.evaluate(b);return ac.instance_of(c,U)?b.contextPosition===c.numberValue():c.booleanValue()},K.predicateString=function(a){return m("[","]",a.toString())},K.predicatesString=function(a){return l("",h(K.predicateString,a))},K.prototype.toString=function(){if(void 0!=this.filter){var a=k(this.filter);return ac.instance_of(this.filter,T)?m("'","'",a):void 0!=this.filterPredicates&&this.filterPredicates.length?m("(",")",a)+K.predicatesString(this.filterPredicates):void 0!=this.locationPath?a+(this.locationPath.absolute?"":"/")+k(this.locationPath):a}return k(this.locationPath)},K.getOwnerElement=function(a){if(a.ownerElement)return a.ownerElement;try{if(a.selectSingleNode)return a.selectSingleNode("..")}catch(a){}for(var b=(9==a.nodeType?a:a.ownerDocument).getElementsByTagName("*"),c=0;c<b.length;c++)for(var d=b.item(c),e=d.attributes,f=0;f<e.length;f++)if(e.item(f)===a)return d;return null},N.prototype={},N.prototype.constructor=N,N.superclass=Object.prototype,N.prototype.init=function(a,b){this.absolute=a,this.steps=b},N.prototype.toString=function(){return(this.absolute?"/":"")+h(k,this.steps).join("/")},O.prototype={},O.prototype.constructor=O,O.superclass=Object.prototype,O.prototype.init=function(a,b,c){this.axis=a,this.nodeTest=b,this.predicates=c},O.prototype.toString=function(){return O.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+K.predicatesString(this.predicates)},O.ANCESTOR=0,O.ANCESTORORSELF=1,O.ATTRIBUTE=2,O.CHILD=3,O.DESCENDANT=4,O.DESCENDANTORSELF=5,O.FOLLOWING=6,O.FOLLOWINGSIBLING=7,O.NAMESPACE=8,O.PARENT=9,O.PRECEDING=10,O.PRECEDINGSIBLING=11,O.SELF=12,O.STEPNAMES=g(function(a,b){return a[b[0]]=b[1],a},{},[[O.ANCESTOR,"ancestor"],[O.ANCESTORORSELF,"ancestor-or-self"],[O.ATTRIBUTE,"attribute"],[O.CHILD,"child"],[O.DESCENDANT,"descendant"],[O.DESCENDANTORSELF,"descendant-or-self"],[O.FOLLOWING,"following"],[O.FOLLOWINGSIBLING,"following-sibling"],[O.NAMESPACE,"namespace"],[O.PARENT,"parent"],[O.PRECEDING,"preceding"],[O.PRECEDINGSIBLING,"preceding-sibling"],[O.SELF,"self"]]),P.prototype={},P.prototype.constructor=P,P.superclass=Object.prototype,P.prototype.init=function(a,b){this.type=a,this.value=b},P.prototype.toString=function(){return"<unknown nodetest type>"},P.prototype.matches=function(a,b){console.warn("unknown node test type")},P.NAMETESTANY=0,P.NAMETESTPREFIXANY=1,P.NAMETESTQNAME=2,P.COMMENT=3,P.TEXT=4,P.PI=5,P.NODE=6,P.isNodeType=function(a){return function(b){return j(a,b.nodeType)}},P.makeNodeTestType=function(a,b,c){var d=c||function(){};return d.prototype=new P(a),d.prototype.constructor=d,o(d.prototype,b),d},P.makeNodeTypeTest=function(a,b,c){return new(P.makeNodeTestType(a,{matches:P.isNodeType(b),toString:function(){return c}}))},P.hasPrefix=function(a){return a.prefix||-1!==(a.nodeName||a.tagName).indexOf(":")},P.isElementOrAttribute=P.isNodeType([1,2]),P.nameSpaceMatches=function(a,b,c){var d=c.namespaceURI||"";if(!a)return!d||b.allowAnyNamespaceForNoPrefix&&!P.hasPrefix(c);var e=b.namespaceResolver.getNamespace(a,b.expressionContextNode);if(null==e)throw Error("Cannot resolve QName "+a);return e===d},P.localNameMatches=function(a,b,c){var d=c.localName||c.nodeName;return b.caseInsensitive?a.toLowerCase()===d.toLowerCase():a===d},P.NameTestPrefixAny=P.makeNodeTestType(P.NAMETESTPREFIXANY,{matches:function(a,b){return P.isElementOrAttribute(a)&&P.nameSpaceMatches(this.prefix,b,a)},toString:function(){return this.prefix+":*"}},function(a){this.prefix=a}),P.NameTestQName=P.makeNodeTestType(P.NAMETESTQNAME,{matches:function(a,b){return P.isNodeType([1,2,Y.XPATH_NAMESPACE_NODE])(a)&&P.nameSpaceMatches(this.prefix,b,a)&&P.localNameMatches(this.localName,b,a)},toString:function(){return this.name}},function(a){var b=a.split(":");this.name=a,this.prefix=b.length>1?b[0]:null,this.localName=b[+(b.length>1)]}),P.PITest=P.makeNodeTestType(P.PI,{matches:function(a,b){return P.isNodeType([7])(a)&&(a.target||a.nodeName)===this.name},toString:function(){return m('processing-instruction("','")',this.name)}},function(a){this.name=a}),P.nameTestAny=P.makeNodeTypeTest(P.NAMETESTANY,[1,2,Y.XPATH_NAMESPACE_NODE],"*"),P.textTest=P.makeNodeTypeTest(P.TEXT,[3,4],"text()"),P.commentTest=P.makeNodeTypeTest(P.COMMENT,[8],"comment()"),P.nodeTest=P.makeNodeTypeTest(P.NODE,[1,2,3,4,7,8,9],"node()"),P.anyPiTest=P.makeNodeTypeTest(P.PI,[7],"processing-instruction()"),Q.prototype=new s,Q.prototype.constructor=Q,Q.superclass=s.prototype,Q.prototype.init=function(a){this.variable=a},Q.prototype.toString=function(){return"$"+this.variable},Q.prototype.evaluate=function(a){var b=ac.resolveQName(this.variable,a.namespaceResolver,a.contextNode,!1);if(null==b[0])throw Error("Cannot resolve QName "+fn);var c=a.variableResolver.getVariable(b[1],b[0]);if(!c)throw ad.fromMessage("Undeclared variable: "+this.toString());return c},R.prototype=new s,R.prototype.constructor=R,R.superclass=s.prototype,R.prototype.init=function(a,b){this.functionName=a,this.arguments=b},R.prototype.toString=function(){for(var a=this.functionName+"(",b=0;b<this.arguments.length;b++)b>0&&(a+=", "),a+=this.arguments[b].toString();return a+")"},R.prototype.evaluate=function(a){var b=_.getFunctionFromContext(this.functionName,a);if(!b)throw Error("Unknown function "+this.functionName);var c=[a].concat(this.arguments);return b.apply(a.functionResolver.thisArg,c)};var S={};function T(a){arguments.length>0&&this.init(a)}function U(a){arguments.length>0&&this.init(a)}function V(a){arguments.length>0&&this.init(a)}function W(a){this.init(a)}function X(){this.init()}function Y(a,b,c){this.isXPathNamespace=!0,this.ownerDocument=c.ownerDocument,this.nodeName="#namespace",this.prefix=a,this.localName=a,this.namespaceURI=b,this.nodeValue=b,this.ownerElement=c,this.nodeType=Y.XPATH_NAMESPACE_NODE}function Z(a,b,c){this.variableResolver=null!=a?a:new $,this.namespaceResolver=null!=b?b:new aa,this.functionResolver=null!=c?c:new _}function $(){}function _(a){this.thisArg=null!=a?a:ab,this.functions={},this.addStandardFunctions()}function aa(){}S.equals=function(a,b){return a.equals(b)},S.notequal=function(a,b){return a.notequal(b)},S.lessthan=function(a,b){return a.lessthan(b)},S.greaterthan=function(a,b){return a.greaterthan(b)},S.lessthanorequal=function(a,b){return a.lessthanorequal(b)},S.greaterthanorequal=function(a,b){return a.greaterthanorequal(b)},T.prototype=new s,T.prototype.constructor=T,T.superclass=s.prototype,T.prototype.init=function(a){this.str=String(a)},T.prototype.toString=function(){return this.str},T.prototype.evaluate=function(a){return this},T.prototype.string=function(){return this},T.prototype.number=function(){return new U(this.str)},T.prototype.bool=function(){return new V(this.str)},T.prototype.nodeset=function(){throw Error("Cannot convert string to nodeset")},T.prototype.stringValue=function(){return this.str},T.prototype.numberValue=function(){return this.number().numberValue()},T.prototype.booleanValue=function(){return this.bool().booleanValue()},T.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,U)?this.number().equals(a):ac.instance_of(a,X)?a.compareWithString(this,S.equals):new V(this.str==a.str)},T.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,U)?this.number().notequal(a):ac.instance_of(a,X)?a.compareWithString(this,S.notequal):new V(this.str!=a.str)},T.prototype.lessthan=function(a){return this.number().lessthan(a)},T.prototype.greaterthan=function(a){return this.number().greaterthan(a)},T.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},T.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},U.prototype=new s,U.prototype.constructor=U,U.superclass=s.prototype,U.prototype.init=function(a){this.num="string"==typeof a?this.parse(a):Number(a)},U.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,U.prototype.parse=function(a){return this.numberFormat.test(a)?parseFloat(a):NaN},U.prototype.toString=function(){var a=this.num.toString();if(-1!==a.indexOf("e-")){for(var b=a.split("e-"),c=b[0].replace(".",""),d=Number(b[1]),e=0;e<d-1;e+=1)c="0"+c;return"0."+c}if(-1!==a.indexOf("e")){for(var f=a.split("e"),g=f[0].replace(".",""),h=Number(f[1])+1-g.length,i=0;i<h;i+=1)g+="0";return g}return a},U.prototype.evaluate=function(a){return this},U.prototype.string=function(){return new T(this.toString())},U.prototype.number=function(){return this},U.prototype.bool=function(){return new V(this.num)},U.prototype.nodeset=function(){throw Error("Cannot convert number to nodeset")},U.prototype.stringValue=function(){return this.string().stringValue()},U.prototype.numberValue=function(){return this.num},U.prototype.booleanValue=function(){return this.bool().booleanValue()},U.prototype.negate=function(){return new U(-this.num)},U.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,T)?this.equals(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.equals):new V(this.num==a.num)},U.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,T)?this.notequal(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.notequal):new V(this.num!=a.num)},U.prototype.lessthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthan(a.number()):new V(this.num<a.num)},U.prototype.greaterthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthan(a.number()):new V(this.num>a.num)},U.prototype.lessthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthanorequal(a.number()):new V(this.num<=a.num)},U.prototype.greaterthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthanorequal(a.number()):new V(this.num>=a.num)},U.prototype.plus=function(a){return new U(this.num+a.num)},U.prototype.minus=function(a){return new U(this.num-a.num)},U.prototype.multiply=function(a){return new U(this.num*a.num)},U.prototype.div=function(a){return new U(this.num/a.num)},U.prototype.mod=function(a){return new U(this.num%a.num)},V.prototype=new s,V.prototype.constructor=V,V.superclass=s.prototype,V.prototype.init=function(a){this.b=!!a},V.prototype.toString=function(){return this.b.toString()},V.prototype.evaluate=function(a){return this},V.prototype.string=function(){return new T(this.b)},V.prototype.number=function(){return new U(this.b)},V.prototype.bool=function(){return this},V.prototype.nodeset=function(){throw Error("Cannot convert boolean to nodeset")},V.prototype.stringValue=function(){return this.string().stringValue()},V.prototype.numberValue=function(){return this.number().numberValue()},V.prototype.booleanValue=function(){return this.b},V.prototype.not=function(){return new V(!this.b)},V.prototype.equals=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.equals(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.equals):new V(this.b==a.b)},V.prototype.notequal=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.notequal(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.notequal):new V(this.b!=a.b)},V.prototype.lessthan=function(a){return this.number().lessthan(a)},V.prototype.greaterthan=function(a){return this.number().greaterthan(a)},V.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},V.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},V.true_=new V(!0),V.false_=new V(!1),W.prototype={},W.prototype.constructor=W,W.superclass=Object.prototype,W.prototype.init=function(a){this.left=null,this.right=null,this.node=a,this.depth=1},W.prototype.balance=function(){var a=null==this.left?0:this.left.depth,b=null==this.right?0:this.right.depth;if(a>b+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(a+1<b){var c=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>c&&this.right.rotateLL(),this.rotateRR()}},W.prototype.rotateLL=function(){var a=this.node,b=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=b,this.right.node=a,this.right.updateInNewLocation(),this.updateInNewLocation()},W.prototype.rotateRR=function(){var a=this.node,b=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=b,this.left.node=a,this.left.updateInNewLocation(),this.updateInNewLocation()},W.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},W.prototype.getDepthFromChildren=function(){this.depth=+(null!=this.node),null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},W.prototype.add=function(a){if(a===this.node)return!1;var b=function(a,b){if(a===b)return 0;if(a.compareDocumentPosition){var c=a.compareDocumentPosition(b);return 1&c||10&c?1:20&c?-1:0}for(var d=0,e=0,f=a;null!=f;f=f.parentNode||f.ownerElement)d++;for(var g=b;null!=g;g=g.parentNode||g.ownerElement)e++;if(d>e){for(;d>e;)a=a.parentNode||a.ownerElement,d--;if(a===b)return 1}else if(e>d){for(;e>d;)b=b.parentNode||b.ownerElement,e--;if(a===b)return -1}for(var h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;h!==i;)a=h,b=i,h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;var j=ac.isAttribute(a),k=ac.isAttribute(b);if(j&&!k)return -1;if(!j&&k)return 1;if(h)for(var l=j?h.attributes:h.childNodes,m=l.length,n=0;n<m;n+=1){var o=l[n];if(o===a)return -1;if(o===b)return 1}throw Error("Unexpected: could not determine node order")}(a,this.node),c=!1;return -1==b?null==this.left?(this.left=new W(a),c=!0):(c=this.left.add(a))&&this.balance():1==b&&(null==this.right?(this.right=new W(a),c=!0):(c=this.right.add(a))&&this.balance()),c&&this.getDepthFromChildren(),c},X.prototype=new s,X.prototype.constructor=X,X.superclass=s.prototype,X.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},X.prototype.toString=function(){var a=this.first();return null==a?"":this.stringForNode(a)},X.prototype.evaluate=function(a){return this},X.prototype.string=function(){return new T(this.toString())},X.prototype.stringValue=function(){return this.toString()},X.prototype.number=function(){return new U(this.string())},X.prototype.numberValue=function(){return Number(this.string())},X.prototype.bool=function(){return new V(this.booleanValue())},X.prototype.booleanValue=function(){return!!this.size},X.prototype.nodeset=function(){return this},X.prototype.stringForNode=function(a){return 9==a.nodeType||1==a.nodeType||11===a.nodeType?this.stringForContainerNode(a):2===a.nodeType?a.value||a.nodeValue:a.isNamespaceNode?a.namespace:a.nodeValue},X.prototype.stringForContainerNode=function(a){for(var b="",c=a.firstChild;null!=c;c=c.nextSibling){var d=c.nodeType;(1===d||3===d||4===d||9===d||11===d)&&(b+=this.stringForNode(c))}return b},X.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new W(this.nodes[0]);for(var a=1;a<this.nodes.length;a+=1)this.tree.add(this.nodes[a])}return this.tree},X.prototype.first=function(){var a=this.buildTree();if(null==a)return null;for(;null!=a.left;)a=a.left;return a.node},X.prototype.add=function(a){for(var b=0;b<this.nodes.length;b+=1)if(a===this.nodes[b])return;this.tree=null,this.nodes.push(a),this.size+=1},X.prototype.addArray=function(a){var b=this;f(function(a){b.add(a)},a)},X.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},X.prototype.toArrayRec=function(a,b){null!=a&&(this.toArrayRec(a.left,b),b.push(a.node),this.toArrayRec(a.right,b))},X.prototype.toUnsortedArray=function(){return this.nodes.slice()},X.prototype.compareWithString=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new T(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithNumber=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new U(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithBoolean=function(a,b){return b(this.bool(),a)},X.prototype.compareWithNodeSet=function(a,b){for(var c=this.toUnsortedArray(),d=function(a,c){return b(c,a)},e=0;e<c.length;e++){var f=new T(this.stringForNode(c[e])),g=a.compareWithString(f,d);if(g.booleanValue())return g}return new V(!1)},b=function(a,b){return ac.instance_of(b,T)?this.compareWithString(b,a):ac.instance_of(b,U)?this.compareWithNumber(b,a):ac.instance_of(b,V)?this.compareWithBoolean(b,a):this.compareWithNodeSet(b,a)},c=Array.prototype.slice,d=b.length,X.compareWith=e=function(){var a,f=c.call(arguments);return f.length<d?(a=e,function(){return a.apply(this,f.concat(c.call(arguments)))}):b.apply(this,c.apply(arguments,[0,d]))},X.prototype.equals=X.compareWith(S.equals),X.prototype.notequal=X.compareWith(S.notequal),X.prototype.lessthan=X.compareWith(S.lessthan),X.prototype.greaterthan=X.compareWith(S.greaterthan),X.prototype.lessthanorequal=X.compareWith(S.lessthanorequal),X.prototype.greaterthanorequal=X.compareWith(S.greaterthanorequal),X.prototype.union=function(a){var b=new X;return b.addArray(this.toUnsortedArray()),b.addArray(a.toUnsortedArray()),b},Y.prototype={},Y.prototype.constructor=Y,Y.superclass=Object.prototype,Y.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},Z.prototype={},Z.prototype.constructor=Z,Z.superclass=Object.prototype,Z.prototype.extend=function(a){return o(new Z,this,a)},$.prototype={},$.prototype.constructor=$,$.superclass=Object.prototype,$.prototype.getVariable=function(a,b){return null},_.prototype={},_.prototype.constructor=_,_.superclass=Object.prototype,_.prototype.addStandardFunctions=function(){this.functions["{}last"]=ab.last,this.functions["{}position"]=ab.position,this.functions["{}count"]=ab.count,this.functions["{}id"]=ab.id,this.functions["{}local-name"]=ab.localName,this.functions["{}namespace-uri"]=ab.namespaceURI,this.functions["{}name"]=ab.name,this.functions["{}string"]=ab.string,this.functions["{}concat"]=ab.concat,this.functions["{}starts-with"]=ab.startsWith,this.functions["{}contains"]=ab.contains,this.functions["{}substring-before"]=ab.substringBefore,this.functions["{}substring-after"]=ab.substringAfter,this.functions["{}substring"]=ab.substring,this.functions["{}string-length"]=ab.stringLength,this.functions["{}normalize-space"]=ab.normalizeSpace,this.functions["{}translate"]=ab.translate,this.functions["{}boolean"]=ab.boolean_,this.functions["{}not"]=ab.not,this.functions["{}true"]=ab.true_,this.functions["{}false"]=ab.false_,this.functions["{}lang"]=ab.lang,this.functions["{}number"]=ab.number,this.functions["{}sum"]=ab.sum,this.functions["{}floor"]=ab.floor,this.functions["{}ceiling"]=ab.ceiling,this.functions["{}round"]=ab.round},_.prototype.addFunction=function(a,b,c){this.functions["{"+a+"}"+b]=c},_.getFunctionFromContext=function(a,b){var c=ac.resolveQName(a,b.namespaceResolver,b.contextNode,!1);if(null===c[0])throw Error("Cannot resolve QName "+name);return b.functionResolver.getFunction(c[1],c[0])},_.prototype.getFunction=function(a,b){return this.functions["{"+b+"}"+a]},aa.prototype={},aa.prototype.constructor=aa,aa.superclass=Object.prototype,aa.prototype.getNamespace=function(a,b){if("xml"==a)return q.XML_NAMESPACE_URI;if("xmlns"==a)return q.XMLNS_NAMESPACE_URI;for(9==b.nodeType?b=b.documentElement:2==b.nodeType?b=K.getOwnerElement(b):1!=b.nodeType&&(b=b.parentNode);null!=b&&1==b.nodeType;){for(var c=b.attributes,d=0;d<c.length;d++){var e=c.item(d),f=e.name||e.nodeName;if("xmlns"===f&&""===a||f==="xmlns:"+a)return String(e.value||e.nodeValue)}b=b.parentNode}return null};var ab={};ab.last=function(a){if(1!=arguments.length)throw Error("Function last expects ()");return new U(a.contextSize)},ab.position=function(a){if(1!=arguments.length)throw Error("Function position expects ()");return new U(a.contextPosition)},ab.count=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function count expects (node-set)");return new U(a.size)},ab.id=function(){var a,b,c=arguments[0];if(2!=arguments.length)throw Error("Function id expects (object)");a=arguments[1].evaluate(c);for(var d=(a=ac.instance_of(a,X)?a.toArray().join(" "):a.stringValue()).split(/[\x0d\x0a\x09\x20]+/),e=new X,f=9==c.contextNode.nodeType?c.contextNode:c.contextNode.ownerDocument,g=0;g<d.length;g++)null!=(b=f.getElementById?f.getElementById(d[g]):ac.getElementById(f,d[g]))&&e.add(b);return e},ab.localName=function(a,b){var c;if(1==arguments.length)c=a.contextNode;else if(2==arguments.length)c=b.evaluate(a).first();else throw Error("Function local-name expects (node-set?)");return new T(null==c?"":c.localName||c.baseName||c.target||c.nodeName||"")},ab.namespaceURI=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function namespace-uri expects (node-set?)");return new T(null==a?"":a.namespaceURI)},ab.name=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function name expects (node-set?)");return null==a?new T(""):1==a.nodeType?new T(a.nodeName):2==a.nodeType?new T(a.name||a.nodeName):7===a.nodeType?new T(a.target||a.nodeName):null==a.localName?new T(""):new T(a.localName)},ab.string=function(){var a=arguments[0];if(1==arguments.length)return new T(X.prototype.stringForNode(a.contextNode));if(2==arguments.length)return arguments[1].evaluate(a).string();throw Error("Function string expects (object?)")},ab.concat=function(a){if(arguments.length<3)throw Error("Function concat expects (string, string[, string]*)");for(var b="",c=1;c<arguments.length;c++)b+=arguments[c].evaluate(a).stringValue();return new T(b)},ab.startsWith=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function startsWith expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(b.substring(0,c.length)==c)},ab.contains=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function contains expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(-1!==b.indexOf(c))},ab.substringBefore=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-before expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new T(b.substring(0,b.indexOf(c)))},ab.substringAfter=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-after expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();if(0==c.length)return new T(b);var d=b.indexOf(c);return new T(-1==d?"":b.substring(d+c.length))},ab.substring=function(){var a=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw Error("Function substring expects (string, number, number?)");var b=arguments[1].evaluate(a).stringValue(),c=Math.round(arguments[2].evaluate(a).numberValue())-1,d=4==arguments.length?c+Math.round(arguments[3].evaluate(a).numberValue()):void 0;return new T(b.substring(c,d))},ab.stringLength=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function string-length expects (string?)");return new U(a.length)},ab.normalizeSpace=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function normalize-space expects (string?)");for(var c=0,d=a.length-1;ac.isSpace(a.charCodeAt(d));)d--;for(var e="";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;for(;c<=d;)if(ac.isSpace(a.charCodeAt(c)))for(e+=" ";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;else e+=a.charAt(c),c++;return new T(e)},ab.translate=function(a,b,c,d){if(4!=arguments.length)throw Error("Function translate expects (string, string, string)");var e=b.evaluate(a).stringValue(),f=c.evaluate(a).stringValue(),i=d.evaluate(a).stringValue(),j=g(function(a,b,c){return b in a||(a[b]=c>i.length?"":i[c]),a},{},f);return new T(l("",h(function(a){return a in j?j[a]:a},e)))},ab.boolean_=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function boolean expects (object)");return arguments[1].evaluate(a).bool()},ab.not=function(a,b){if(2!=arguments.length)throw Error("Function not expects (object)");return b.evaluate(a).bool().not()},ab.true_=function(){if(1!=arguments.length)throw Error("Function true expects ()");return V.true_},ab.false_=function(){if(1!=arguments.length)throw Error("Function false expects ()");return V.false_},ab.lang=function(){var a,b=arguments[0];if(2!=arguments.length)throw Error("Function lang expects (string)");for(var c=b.contextNode;null!=c&&9!=c.nodeType;c=c.parentNode){var d=c.getAttributeNS(q.XML_NAMESPACE_URI,"lang");if(null!=d){a=String(d);break}}if(null==a)return V.false_;var e=arguments[1].evaluate(b).stringValue();return new V(a.substring(0,e.length)==e&&(a.length==e.length||"-"==a.charAt(e.length)))},ab.number=function(){var a=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw Error("Function number expects (object?)");return 1==arguments.length?new U(X.prototype.stringForNode(a.contextNode)):arguments[1].evaluate(a).number()},ab.sum=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function sum expects (node-set)");a=a.toUnsortedArray();for(var c=0,d=0;d<a.length;d++)c+=new U(X.prototype.stringForNode(a[d])).numberValue();return new U(c)},ab.floor=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function floor expects (number)");return new U(Math.floor(arguments[1].evaluate(a).numberValue()))},ab.ceiling=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function ceiling expects (number)");return new U(Math.ceil(arguments[1].evaluate(a).numberValue()))},ab.round=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function round expects (number)");return new U(Math.round(arguments[1].evaluate(a).numberValue()))};var ac={};ac.isAttribute=function(a){return a&&(2===a.nodeType||a.ownerElement)},ac.splitQName=function(a){var b=a.indexOf(":");return -1==b?[null,a]:[a.substring(0,b),a.substring(b+1)]},ac.resolveQName=function(a,b,c,d){var e=ac.splitQName(a);return null!=e[0]?e[0]=b.getNamespace(e[0],c):d?(e[0]=b.getNamespace("",c),null==e[0]&&(e[0]="")):e[0]="",e},ac.isSpace=function(a){return 9==a||13==a||10==a||32==a},ac.isLetter=function(a){return a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=255||a>=256&&a<=305||a>=308&&a<=318||a>=321&&a<=328||a>=330&&a<=382||a>=384&&a<=451||a>=461&&a<=496||a>=500&&a<=501||a>=506&&a<=535||a>=592&&a<=680||a>=699&&a<=705||902==a||a>=904&&a<=906||908==a||a>=910&&a<=929||a>=931&&a<=974||a>=976&&a<=982||986==a||988==a||990==a||992==a||a>=994&&a<=1011||a>=1025&&a<=1036||a>=1038&&a<=1103||a>=1105&&a<=1116||a>=1118&&a<=1153||a>=1168&&a<=1220||a>=1223&&a<=1224||a>=1227&&a<=1228||a>=1232&&a<=1259||a>=1262&&a<=1269||a>=1272&&a<=1273||a>=1329&&a<=1366||1369==a||a>=1377&&a<=1414||a>=1488&&a<=1514||a>=1520&&a<=1522||a>=1569&&a<=1594||a>=1601&&a<=1610||a>=1649&&a<=1719||a>=1722&&a<=1726||a>=1728&&a<=1742||a>=1744&&a<=1747||1749==a||a>=1765&&a<=1766||a>=2309&&a<=2361||2365==a||a>=2392&&a<=2401||a>=2437&&a<=2444||a>=2447&&a<=2448||a>=2451&&a<=2472||a>=2474&&a<=2480||2482==a||a>=2486&&a<=2489||a>=2524&&a<=2525||a>=2527&&a<=2529||a>=2544&&a<=2545||a>=2565&&a<=2570||a>=2575&&a<=2576||a>=2579&&a<=2600||a>=2602&&a<=2608||a>=2610&&a<=2611||a>=2613&&a<=2614||a>=2616&&a<=2617||a>=2649&&a<=2652||2654==a||a>=2674&&a<=2676||a>=2693&&a<=2699||2701==a||a>=2703&&a<=2705||a>=2707&&a<=2728||a>=2730&&a<=2736||a>=2738&&a<=2739||a>=2741&&a<=2745||2749==a||2784==a||a>=2821&&a<=2828||a>=2831&&a<=2832||a>=2835&&a<=2856||a>=2858&&a<=2864||a>=2866&&a<=2867||a>=2870&&a<=2873||2877==a||a>=2908&&a<=2909||a>=2911&&a<=2913||a>=2949&&a<=2954||a>=2958&&a<=2960||a>=2962&&a<=2965||a>=2969&&a<=2970||2972==a||a>=2974&&a<=2975||a>=2979&&a<=2980||a>=2984&&a<=2986||a>=2990&&a<=2997||a>=2999&&a<=3001||a>=3077&&a<=3084||a>=3086&&a<=3088||a>=3090&&a<=3112||a>=3114&&a<=3123||a>=3125&&a<=3129||a>=3168&&a<=3169||a>=3205&&a<=3212||a>=3214&&a<=3216||a>=3218&&a<=3240||a>=3242&&a<=3251||a>=3253&&a<=3257||3294==a||a>=3296&&a<=3297||a>=3333&&a<=3340||a>=3342&&a<=3344||a>=3346&&a<=3368||a>=3370&&a<=3385||a>=3424&&a<=3425||a>=3585&&a<=3630||3632==a||a>=3634&&a<=3635||a>=3648&&a<=3653||a>=3713&&a<=3714||3716==a||a>=3719&&a<=3720||3722==a||3725==a||a>=3732&&a<=3735||a>=3737&&a<=3743||a>=3745&&a<=3747||3749==a||3751==a||a>=3754&&a<=3755||a>=3757&&a<=3758||3760==a||a>=3762&&a<=3763||3773==a||a>=3776&&a<=3780||a>=3904&&a<=3911||a>=3913&&a<=3945||a>=4256&&a<=4293||a>=4304&&a<=4342||4352==a||a>=4354&&a<=4355||a>=4357&&a<=4359||4361==a||a>=4363&&a<=4364||a>=4366&&a<=4370||4412==a||4414==a||4416==a||4428==a||4430==a||4432==a||a>=4436&&a<=4437||4441==a||a>=4447&&a<=4449||4451==a||4453==a||4455==a||4457==a||a>=4461&&a<=4462||a>=4466&&a<=4467||4469==a||4510==a||4520==a||4523==a||a>=4526&&a<=4527||a>=4535&&a<=4536||4538==a||a>=4540&&a<=4546||4587==a||4592==a||4601==a||a>=7680&&a<=7835||a>=7840&&a<=7929||a>=7936&&a<=7957||a>=7960&&a<=7965||a>=7968&&a<=8005||a>=8008&&a<=8013||a>=8016&&a<=8023||8025==a||8027==a||8029==a||a>=8031&&a<=8061||a>=8064&&a<=8116||a>=8118&&a<=8124||8126==a||a>=8130&&a<=8132||a>=8134&&a<=8140||a>=8144&&a<=8147||a>=8150&&a<=8155||a>=8160&&a<=8172||a>=8178&&a<=8180||a>=8182&&a<=8188||8486==a||a>=8490&&a<=8491||8494==a||a>=8576&&a<=8578||a>=12353&&a<=12436||a>=12449&&a<=12538||a>=12549&&a<=12588||a>=44032&&a<=55203||a>=19968&&a<=40869||12295==a||a>=12321&&a<=12329},ac.isNCNameChar=function(a){return a>=48&&a<=57||a>=1632&&a<=1641||a>=1776&&a<=1785||a>=2406&&a<=2415||a>=2534&&a<=2543||a>=2662&&a<=2671||a>=2790&&a<=2799||a>=2918&&a<=2927||a>=3047&&a<=3055||a>=3174&&a<=3183||a>=3302&&a<=3311||a>=3430&&a<=3439||a>=3664&&a<=3673||a>=3792&&a<=3801||a>=3872&&a<=3881||46==a||45==a||95==a||ac.isLetter(a)||a>=768&&a<=837||a>=864&&a<=865||a>=1155&&a<=1158||a>=1425&&a<=1441||a>=1443&&a<=1465||a>=1467&&a<=1469||1471==a||a>=1473&&a<=1474||1476==a||a>=1611&&a<=1618||1648==a||a>=1750&&a<=1756||a>=1757&&a<=1759||a>=1760&&a<=1764||a>=1767&&a<=1768||a>=1770&&a<=1773||a>=2305&&a<=2307||2364==a||a>=2366&&a<=2380||2381==a||a>=2385&&a<=2388||a>=2402&&a<=2403||a>=2433&&a<=2435||2492==a||2494==a||2495==a||a>=2496&&a<=2500||a>=2503&&a<=2504||a>=2507&&a<=2509||2519==a||a>=2530&&a<=2531||2562==a||2620==a||2622==a||2623==a||a>=2624&&a<=2626||a>=2631&&a<=2632||a>=2635&&a<=2637||a>=2672&&a<=2673||a>=2689&&a<=2691||2748==a||a>=2750&&a<=2757||a>=2759&&a<=2761||a>=2763&&a<=2765||a>=2817&&a<=2819||2876==a||a>=2878&&a<=2883||a>=2887&&a<=2888||a>=2891&&a<=2893||a>=2902&&a<=2903||a>=2946&&a<=2947||a>=3006&&a<=3010||a>=3014&&a<=3016||a>=3018&&a<=3021||3031==a||a>=3073&&a<=3075||a>=3134&&a<=3140||a>=3142&&a<=3144||a>=3146&&a<=3149||a>=3157&&a<=3158||a>=3202&&a<=3203||a>=3262&&a<=3268||a>=3270&&a<=3272||a>=3274&&a<=3277||a>=3285&&a<=3286||a>=3330&&a<=3331||a>=3390&&a<=3395||a>=3398&&a<=3400||a>=3402&&a<=3405||3415==a||3633==a||a>=3636&&a<=3642||a>=3655&&a<=3662||3761==a||a>=3764&&a<=3769||a>=3771&&a<=3772||a>=3784&&a<=3789||a>=3864&&a<=3865||3893==a||3895==a||3897==a||3902==a||3903==a||a>=3953&&a<=3972||a>=3974&&a<=3979||a>=3984&&a<=3989||3991==a||a>=3993&&a<=4013||a>=4017&&a<=4023||4025==a||a>=8400&&a<=8412||8417==a||a>=12330&&a<=12335||12441==a||12442==a||183==a||720==a||721==a||903==a||1600==a||3654==a||3782==a||12293==a||a>=12337&&a<=12341||a>=12445&&a<=12446||a>=12540&&a<=12542},ac.coalesceText=function(a){for(var b=a.firstChild;null!=b;b=b.nextSibling)if(3==b.nodeType||4==b.nodeType){var c=b.nodeValue,d=b;for(b=b.nextSibling;null!=b&&(3==b.nodeType||4==b.nodeType);){c+=b.nodeValue;var e=b;b=b.nextSibling,e.parentNode.removeChild(e)}if(4==d.nodeType){var f=d.parentNode;if(null==d.nextSibling)f.removeChild(d),f.appendChild(f.ownerDocument.createTextNode(c));else{var g=d.nextSibling;f.removeChild(d),f.insertBefore(f.ownerDocument.createTextNode(c),g)}}else d.nodeValue=c;if(null==b)break}else 1==b.nodeType&&ac.coalesceText(b)},ac.instance_of=function(a,b){for(;null!=a;){if(a.constructor===b)return!0;if(a===Object)break;a=a.constructor.superclass}return!1},ac.getElementById=function(a,b){if(1==a.nodeType&&(a.getAttribute("id")==b||a.getAttributeNS(null,"id")==b))return a;for(var c=a.firstChild;null!=c;c=c.nextSibling){var d=ac.getElementById(c,b);if(null!=d)return d}return null};var ad=function(){function a(b,c,d){var e=Error.call(this,function(b,c){var d=c?": "+c.toString():"";switch(b){case a.INVALID_EXPRESSION_ERR:return"Invalid expression"+d;case a.TYPE_ERR:return"Type error"+d}return null}(b,c)||d);return e.code=b,e.exception=c,e}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.superclass=Error,a.prototype.toString=function(){return this.message},a.fromMessage=function(b,c){return new a(null,c,b)},a.INVALID_EXPRESSION_ERR=51,a.TYPE_ERR=52,a}();function ae(a,b,c){this.xpath=c.parse(a),this.context=new Z,this.context.namespaceResolver=new af(b)}function af(a){this.xpathNSResolver=a}function ag(a){this.node=a,this.namespaceResolver=new aa}function ah(a,b){switch(b==ah.ANY_TYPE&&(a.constructor===T?b=ah.STRING_TYPE:a.constructor===U?b=ah.NUMBER_TYPE:a.constructor===V?b=ah.BOOLEAN_TYPE:a.constructor===X&&(b=ah.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=b,b){case ah.NUMBER_TYPE:this.numberValue=a.numberValue();return;case ah.STRING_TYPE:this.stringValue=a.stringValue();return;case ah.BOOLEAN_TYPE:this.booleanValue=a.booleanValue();return;case ah.ANY_UNORDERED_NODE_TYPE:case ah.FIRST_ORDERED_NODE_TYPE:if(a.constructor===X){this.singleNodeValue=a.first();return}break;case ah.UNORDERED_NODE_ITERATOR_TYPE:case ah.ORDERED_NODE_ITERATOR_TYPE:if(a.constructor===X){this.invalidIteratorState=!1,this.nodes=a.toArray(),this.iteratorIndex=0;return}break;case ah.UNORDERED_NODE_SNAPSHOT_TYPE:case ah.ORDERED_NODE_SNAPSHOT_TYPE:if(a.constructor===X){this.nodes=a.toArray(),this.snapshotLength=this.nodes.length;return}}throw new ad(ad.TYPE_ERR)}function ai(a,b){a.createExpression=function(a,c){try{return new ae(a,c,b)}catch(a){throw new ad(ad.INVALID_EXPRESSION_ERR,a)}},a.createNSResolver=function(a){return new ag(a)},a.evaluate=function(c,d,e,f,g){if(f<0||f>9)throw{code:0,toString:function(){return"Request type not supported"}};return a.createExpression(c,e,b).evaluate(d,f,g)}}ae.prototype={},ae.prototype.constructor=ae,ae.superclass=Object.prototype,ae.getOwnerDocument=function(a){return 9===a.nodeType?a:a.ownerDocument},ae.detectHtmlDom=function(a){if(!a)return!1;var b=ae.getOwnerDocument(a);try{return b.implementation.hasFeature("HTML","2.0")}catch(a){return!0}},ae.prototype.evaluate=function(a,b,c){return this.context.expressionContextNode=a,this.context.caseInsensitive=ae.detectHtmlDom(a),new ah(this.xpath.evaluate(this.context),b)},af.prototype={},af.prototype.constructor=af,af.superclass=Object.prototype,af.prototype.getNamespace=function(a,b){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(a)},ag.prototype={},ag.prototype.constructor=ag,ag.superclass=Object.prototype,ag.prototype.lookupNamespaceURI=function(a){return this.namespaceResolver.getNamespace(a,this.node)},ah.prototype={},ah.prototype.constructor=ah,ah.superclass=Object.prototype,ah.prototype.iterateNext=function(){if(this.resultType!=ah.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=ah.ORDERED_NODE_ITERATOR_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[this.iteratorIndex++]},ah.prototype.snapshotItem=function(a){if(this.resultType!=ah.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=ah.ORDERED_NODE_SNAPSHOT_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[a]},ah.ANY_TYPE=0,ah.NUMBER_TYPE=1,ah.STRING_TYPE=2,ah.BOOLEAN_TYPE=3,ah.UNORDERED_NODE_ITERATOR_TYPE=4,ah.ORDERED_NODE_ITERATOR_TYPE=5,ah.UNORDERED_NODE_SNAPSHOT_TYPE=6,ah.ORDERED_NODE_SNAPSHOT_TYPE=7,ah.ANY_UNORDERED_NODE_TYPE=8,ah.FIRST_ORDERED_NODE_TYPE=9;try{var aj=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(aj=!1)}catch(a){}aj&&ai(document,new p)}catch(a){}ai(a,new p),function(){var b=new p,c=new aa,d=new _,e=new $;function f(a){return{getNamespace:function(b,d){return a(b,d)||c.getNamespace(b,d)}}}function g(a){if(null==a||a instanceof T||a instanceof V||a instanceof U||a instanceof X)return a;switch(typeof a){case"string":return new T(a);case"boolean":return new V(a);case"number":return new U(a)}var b=new X;return b.addArray([].concat(a)),b}function h(a){return{getFunction:function(b,c){var e=a(b,c);return e?function(a){var b=Array.prototype.slice.call(arguments,1).map(function(b){return b.evaluate(a)});return g(e.apply(this,[].concat(a,b)))}:d.getFunction(b,c)}}}function i(a){return{getVariable:function(b,c){return g(a(b,c))}}}function j(a,b,c){a in c&&(b[a]=c[a])}var k={evaluate:function(a){var b,g,k;return b=this.expression,g=new Z,a?(g.namespaceResolver=function(a){return a&&"function"==typeof a.getNamespace?f(a.getNamespace.bind(a)):"function"==typeof a?f(a):"object"==typeof a?f(function(b){return a[b]}):c}(a.namespaces),g.functionResolver=function(a){return a&&"function"==typeof a.getFunction?h(a.getFunction.bind(a)):"function"==typeof a?h(a):"object"==typeof a?h(function(b){return a[b]}):d}(a.functions),g.variableResolver=function(a){if(a){if("function"==typeof a.getVariable)return i(a.getVariable.bind(a));if("function"==typeof a)return i(a);if("object"==typeof a)return i(function(b){return a[b]})}return e}(a.variables),g.expressionContextNode=a.node,j("allowAnyNamespaceForNoPrefix",g,a),j("isHtml",g,a)):g.namespaceResolver=c,k=g,b.evaluate(k)},evaluateNumber:function(a){return this.evaluate(a).numberValue()},evaluateString:function(a){return this.evaluate(a).stringValue()},evaluateBoolean:function(a){return this.evaluate(a).booleanValue()},evaluateNodeSet:function(a){return this.evaluate(a).nodeset()},select:function(a){return this.evaluateNodeSet(a).toArray()},select1:function(a){return this.select(a)[0]}};a.parse=function(a){return Object.create(k,{expression:{value:b.parse(a)}})}}(),o(a,{XPath:q,XPathParser:p,XPathResult:ah,Step:O,PathExpr:K,NodeTest:P,LocationPath:N,OrOperation:w,AndOperation:x,BarOperation:J,EqualsOperation:y,NotEqualOperation:z,LessThanOperation:A,GreaterThanOperation:B,LessThanOrEqualOperation:C,GreaterThanOrEqualOperation:D,PlusOperation:E,MinusOperation:F,MultiplyOperation:G,DivOperation:H,ModOperation:I,UnaryMinusOperation:u,FunctionCall:R,VariableReference:Q,XPathContext:Z,XNodeSet:X,XBoolean:V,XString:T,XNumber:U,NamespaceResolver:aa,FunctionResolver:_,VariableResolver:$,Utilities:ac}),a.select=function(b,c,d){return a.selectWithResolver(b,c,null,d)},a.useNamespaces=function(b){var c={mappings:b||{},lookupNamespaceURI:function(a){return this.mappings[a]}};return function(b,d,e){return a.selectWithResolver(b,d,c,e)}},a.selectWithResolver=function(a,b,c,d){var e=new ae(a,c,new p),f=ah.ANY_TYPE,g=e.evaluate(b,f,null);return g.resultType==ah.STRING_TYPE?g=g.stringValue:g.resultType==ah.NUMBER_TYPE?g=g.numberValue:g.resultType==ah.BOOLEAN_TYPE?g=g.booleanValue:(g=g.nodes,d&&(g=g[0])),g},a.select1=function(b,c){return a.select(b,c,!0)}}(b)},58892:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d,e){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(d),this.name=this.target,e&&(this.value=this.stringify.insValue(e))}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))},c.prototype.isEqualNode=function(a){return!!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)&&a.target===this.target},c}(c(92478))}).call(this)},59548:(a,b,c)=>{var d=c(73669);a.exports=({contentEncryptionMethod:a,keyInfo:b,encryptedContent:c})=>`
4
+ -----END ${b}-----`)},b.generateUniqueId=()=>"_"+d.randomBytes(20).toString("hex"),b.stripPemHeaderAndFooter=a=>a.replace(/(\r\n|\r)/g,"\n").replace(/-----BEGIN [A-Z\x20]{1,48}-----\n?/,"").replace(/-----END [A-Z\x20]{1,48}-----\n?/,"")},29394:function(a){(function(){a.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},30072:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.DEFAULT_WANT_ASSERTIONS_SIGNED=b.DEFAULT_IDENTIFIER_FORMAT=void 0,b.DEFAULT_IDENTIFIER_FORMAT="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress",b.DEFAULT_WANT_ASSERTIONS_SIGNED=!0},31673:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.InMemoryCacheProvider=void 0;class c{constructor(a){var b;this.lastPrune=0,this.cacheKeys={},this.options={...a,keyExpirationPeriodMs:null!=(b=a.keyExpirationPeriodMs)?b:288e5},this.prune=()=>{let a=new Date().getTime();if(a>this.lastPrune+this.options.keyExpirationPeriodMs){let b=Object.keys(this.cacheKeys),c=[];b.forEach(b=>{a>=this.cacheKeys[b].createdAt+this.options.keyExpirationPeriodMs&&c.push(b)}),c.forEach(a=>this.removeAsync(a)),this.lastPrune=a}},this.removeKeyIfExpired=async(a,b)=>{this.cacheKeys[a]&&b>=this.cacheKeys[a].createdAt+this.options.keyExpirationPeriodMs&&await this.removeAsync(a)}}async saveAsync(a,b){this.prune();let c=new Date().getTime();return(await this.removeKeyIfExpired(a,c),this.cacheKeys[a])?null:(this.cacheKeys[a]={createdAt:c,value:b},this.cacheKeys[a])}async getAsync(a){this.prune();let b=new Date().getTime();return(await this.removeKeyIfExpired(a,b),this.cacheKeys[a])?this.cacheKeys[a].value:null}async removeAsync(a){return null!=a&&this.cacheKeys[a]?(delete this.cacheKeys[a],a):null}}b.InMemoryCacheProvider=c},31753:function(a){(function(){var b={}.hasOwnProperty;a.exports=(function(){class a{constructor(a){var c,d,e;for(c in this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),a||(a={}),this.options=a,this.options.version||(this.options.version="1.0"),d=a.stringify||{})b.call(d,c)&&(e=d[c],this[c]=e)}name(a){return this.options.noValidation?a:this.assertLegalName(""+a||"")}text(a){return this.options.noValidation?a:this.assertLegalChar(this.textEscape(""+a||""))}cdata(a){return this.options.noValidation?a:(a=(a=""+a||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(a))}comment(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/--/))throw Error("Comment text cannot contain double-hypen: "+a);return this.assertLegalChar(a)}raw(a){return this.options.noValidation?a:""+a||""}attValue(a){return this.options.noValidation?a:this.assertLegalChar(this.attEscape(a=""+a||""))}insTarget(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}insValue(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/\?>/))throw Error("Invalid processing instruction value: "+a);return this.assertLegalChar(a)}xmlVersion(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/1\.[0-9]+/))throw Error("Invalid version number: "+a);return a}xmlEncoding(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+a);return this.assertLegalChar(a)}xmlStandalone(a){return this.options.noValidation?a:a?"yes":"no"}dtdPubID(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdSysID(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdElementValue(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdAttType(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdAttDefault(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdEntityValue(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdNData(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}assertLegalChar(a){var b,c;if(this.options.noValidation)return a;if("1.0"===this.options.version){if(b=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,void 0!==this.options.invalidCharReplacement)a=a.replace(b,this.options.invalidCharReplacement);else if(c=a.match(b))throw Error(`Invalid character in string: ${a} at index ${c.index}`)}else if("1.1"===this.options.version){if(b=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,void 0!==this.options.invalidCharReplacement)a=a.replace(b,this.options.invalidCharReplacement);else if(c=a.match(b))throw Error(`Invalid character in string: ${a} at index ${c.index}`)}return a}assertLegalName(a){if(this.options.noValidation)return a;if(!(a=this.assertLegalChar(a)).match(/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/))throw Error(`Invalid character in name: ${a}`);return a}textEscape(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,a.replace(b,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))}attEscape(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,a.replace(b,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))}}return a.prototype.convertAttKey="@",a.prototype.convertPIKey="?",a.prototype.convertTextKey="#text",a.prototype.convertCDataKey="#cdata",a.prototype.convertCommentKey="#comment",a.prototype.convertRawKey="#raw",a}).call(this)}).call(this)},31777:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a){c.__super__.constructor.call(this,a),this.type=b.Dummy}return e(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return""},c}(d)}).call(this)},32046:(a,b)=>{!function(a){"use strict";var b,c,d,e,f="__namespace",g=function(a){var b;return a&&((b=a.nodeType)===f||Number.isInteger(b)&&b>=1&&b<=11)&&"string"==typeof a.nodeName},h=function(a,b){for(var c=0;c<b.length;c+=1)a(b[c],c,b)},i=function(a,b,c){var d=b;return h(function(b,c){d=a(d,b,c)},c),d},j=function(a,b){var c=Array(b.length);return h(function(b,d){c[d]=a(b)},b),c},k=function(a,b){var c=[];return h(function(b,d){a(b,d)&&c.push(b)},b),c},l=function(a,b){for(var c=0;c<a.length;c+=1)if(a[c]===b)return!0;return!1};function m(a){return a.toString()}var n=function(a,b){return b.join(a)},o=function(a,b,c){return a+c+b},p=Array.prototype.concat,q=function(a,b){var c=new ab;c.addArray(a);var d=c.toArray();return b?d.reverse():d};function r(a,b){for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(c[f]=e[f])}return c}function s(){this.init()}function t(a){this.expression=a}function u(a,b,c){b in a||(a[b]=c)}function v(){}function w(a){arguments.length>0&&this.init(a)}function x(a){arguments.length>0&&this.init(a)}function y(a,b){arguments.length>0&&this.init(a,b)}function z(a,b){arguments.length>0&&this.init(a,b)}function A(a,b){arguments.length>0&&this.init(a,b)}function B(a,b){arguments.length>0&&this.init(a,b)}function C(a,b){arguments.length>0&&this.init(a,b)}function D(a,b){arguments.length>0&&this.init(a,b)}function E(a,b){arguments.length>0&&this.init(a,b)}function F(a,b){arguments.length>0&&this.init(a,b)}function G(a,b){arguments.length>0&&this.init(a,b)}function H(a,b){arguments.length>0&&this.init(a,b)}function I(a,b){arguments.length>0&&this.init(a,b)}function J(a,b){arguments.length>0&&this.init(a,b)}function K(a,b){arguments.length>0&&this.init(a,b)}function L(a,b){arguments.length>0&&this.init(a,b)}function M(a,b){arguments.length>0&&this.init(a,b)}function N(a,b,c){arguments.length>0&&this.init(a,b,c)}s.prototype={},s.prototype.constructor=s,s.superclass=Object.prototype,s.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(a){return new z(a[0],a[2])},this.reduceActions[5]=function(a){return new A(a[0],a[2])},this.reduceActions[7]=function(a){return new B(a[0],a[2])},this.reduceActions[8]=function(a){return new C(a[0],a[2])},this.reduceActions[10]=function(a){return new D(a[0],a[2])},this.reduceActions[11]=function(a){return new E(a[0],a[2])},this.reduceActions[12]=function(a){return new F(a[0],a[2])},this.reduceActions[13]=function(a){return new G(a[0],a[2])},this.reduceActions[15]=function(a){return new H(a[0],a[2])},this.reduceActions[16]=function(a){return new I(a[0],a[2])},this.reduceActions[18]=function(a){return new J(a[0],a[2])},this.reduceActions[19]=function(a){return new K(a[0],a[2])},this.reduceActions[20]=function(a){return new L(a[0],a[2])},this.reduceActions[22]=function(a){return new x(a[1])},this.reduceActions[24]=function(a){return new M(a[0],a[2])},this.reduceActions[25]=function(a){return new N(void 0,void 0,a[0])},this.reduceActions[27]=function(a){return a[0].locationPath=a[2],a[0]},this.reduceActions[28]=function(a){return a[0].locationPath=a[2],a[0].locationPath.steps.unshift(new T(T.DESCENDANTORSELF,V.nodeTest,[])),a[0]},this.reduceActions[29]=function(a){return new N(a[0],[],void 0)},this.reduceActions[30]=function(a){return ai.instance_of(a[0],N)?(void 0==a[0].filterPredicates&&(a[0].filterPredicates=[]),a[0].filterPredicates.push(a[1]),a[0]):new N(a[0],[a[1]],void 0)},this.reduceActions[32]=function(a){return a[1]},this.reduceActions[33]=function(a){return new Z(a[0])},this.reduceActions[34]=function(a){return new $(a[0])},this.reduceActions[36]=function(a){return new X(a[0],[])},this.reduceActions[37]=function(a){return new X(a[0],a[2])},this.reduceActions[38]=function(a){return[a[0]]},this.reduceActions[39]=function(a){return a[2].unshift(a[0]),a[2]},this.reduceActions[43]=function(a){return new S(!0,[])},this.reduceActions[44]=function(a){return a[1].absolute=!0,a[1]},this.reduceActions[46]=function(a){return new S(!1,[a[0]])},this.reduceActions[47]=function(a){return a[0].steps.push(a[2]),a[0]},this.reduceActions[49]=function(a){return new T(a[0],a[1],[])},this.reduceActions[50]=function(a){return new T(T.CHILD,a[0],[])},this.reduceActions[51]=function(a){return new T(a[0],a[1],a[2])},this.reduceActions[52]=function(a){return new T(T.CHILD,a[0],a[1])},this.reduceActions[54]=function(a){return[a[0]]},this.reduceActions[55]=function(a){return a[1].unshift(a[0]),a[1]},this.reduceActions[56]=function(a){if("ancestor"==a[0])return T.ANCESTOR;if("ancestor-or-self"==a[0])return T.ANCESTORORSELF;if("attribute"==a[0])return T.ATTRIBUTE;if("child"==a[0])return T.CHILD;if("descendant"==a[0])return T.DESCENDANT;else if("descendant-or-self"==a[0])return T.DESCENDANTORSELF;else if("following"==a[0])return T.FOLLOWING;else if("following-sibling"==a[0])return T.FOLLOWINGSIBLING;else if("namespace"==a[0])return T.NAMESPACE;else if("parent"==a[0])return T.PARENT;else if("preceding"==a[0])return T.PRECEDING;else if("preceding-sibling"==a[0])return T.PRECEDINGSIBLING;else if("self"==a[0])return T.SELF;return -1},this.reduceActions[57]=function(a){return T.ATTRIBUTE},this.reduceActions[59]=function(a){return"comment"==a[0]?V.commentTest:"text"==a[0]?V.textTest:"processing-instruction"==a[0]?V.anyPiTest:"node"==a[0]?V.nodeTest:new V(-1,void 0)},this.reduceActions[60]=function(a){return new V.PITest(a[2])},this.reduceActions[61]=function(a){return a[1]},this.reduceActions[63]=function(a){return a[1].absolute=!0,a[1].steps.unshift(new T(T.DESCENDANTORSELF,V.nodeTest,[])),a[1]},this.reduceActions[64]=function(a){return a[0].steps.push(new T(T.DESCENDANTORSELF,V.nodeTest,[])),a[0].steps.push(a[2]),a[0]},this.reduceActions[65]=function(a){return new T(T.SELF,V.nodeTest,[])},this.reduceActions[66]=function(a){return new T(T.PARENT,V.nodeTest,[])},this.reduceActions[67]=function(a){return new W(a[1])},this.reduceActions[68]=function(a){return V.nameTestAny},this.reduceActions[69]=function(a){return new V.NameTestPrefixAny(a[0].split(":")[0])},this.reduceActions[70]=function(a){return new V.NameTestQName(a[0])}},s.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],s.actionTableNumber=[" 1 0 /.-,+*)(' & %$ # \"!"," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY "," 1 0 /.-,+*)(' & %$ # \"!","K1 KKKKKKKK . +*)('KKKKKK KK# K\" "," 1 0 /.-,+*)(' & %$ # \"!"," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q "," 1 . +*)(' # \" ","b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX "," 1 0 /.-,+*)(' & %$m # \"!","_ f________ ______e __ _ "," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 . +*)(' # \" "," 1 . +*)(' # \" ","> >>>>>>>>> >>>>>>> >> >> "," 1 . +*)(' # \" "," 1 . +*)(' # \" ","Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," \x87 ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," \x88 "," F\x89 ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," \x8a ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE "," 1 0 /.-,+*)(' & %$ # \"!","] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],s.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","\x80456789:;<=>?@ AB CDEFGH IJ\x81"," \x82 EFGH IJ "," \x83 EFGH IJ "," "," \x84 GH IJ "," \x85 GH IJ "," i \x86 "," i \x87 "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ AB\x8cqCDEFGH IJ "," "," "],s.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],s.DOUBLEDOT=2,s.DOUBLECOLON=3,s.DOUBLESLASH=4,s.NOTEQUAL=5,s.LESSTHANOREQUAL=6,s.GREATERTHANOREQUAL=7,s.AND=8,s.OR=9,s.MOD=10,s.DIV=11,s.MULTIPLYOPERATOR=12,s.FUNCTIONNAME=13,s.AXISNAME=14,s.LITERAL=15,s.NUMBER=16,s.ASTERISKNAMETEST=17,s.QNAME=18,s.NCNAMECOLONASTERISK=19,s.NODETYPE=20,s.PROCESSINGINSTRUCTIONWITHLITERAL=21,s.EQUALS=22,s.LESSTHAN=23,s.GREATERTHAN=24,s.PLUS=25,s.MINUS=26,s.BAR=27,s.SLASH=28,s.LEFTPARENTHESIS=29,s.RIGHTPARENTHESIS=30,s.COMMA=31,s.AT=32,s.LEFTBRACKET=33,s.RIGHTBRACKET=34,s.DOT=35,s.DOLLAR=36,s.prototype.tokenize=function(a){for(var b=[],c=[],d=a+"\0",e=0,f=d.charAt(e++);;){for(;" "==f||" "==f||"\r"==f||"\n"==f;)f=d.charAt(e++);if("\0"==f||e>=d.length)break;if("("==f){b.push(s.LEFTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if(")"==f){b.push(s.RIGHTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if("["==f){b.push(s.LEFTBRACKET),c.push(f),f=d.charAt(e++);continue}if("]"==f){b.push(s.RIGHTBRACKET),c.push(f),f=d.charAt(e++);continue}if("@"==f){b.push(s.AT),c.push(f),f=d.charAt(e++);continue}if(","==f){b.push(s.COMMA),c.push(f),f=d.charAt(e++);continue}if("|"==f){b.push(s.BAR),c.push(f),f=d.charAt(e++);continue}if("+"==f){b.push(s.PLUS),c.push(f),f=d.charAt(e++);continue}if("-"==f){b.push(s.MINUS),c.push(f),f=d.charAt(e++);continue}if("="==f){b.push(s.EQUALS),c.push(f),f=d.charAt(e++);continue}if("$"==f){b.push(s.DOLLAR),c.push(f),f=d.charAt(e++);continue}if("."==f){if("."==(f=d.charAt(e++))){b.push(s.DOUBLEDOT),c.push(".."),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g="."+f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(s.NUMBER),c.push(g);continue}b.push(s.DOT),c.push(".");continue}if("'"==f||'"'==f){for(var h=f,i="";e<d.length&&(f=d.charAt(e))!==h;)i+=f,e+=1;if(f!==h)throw ak.fromMessage("Unterminated string literal: "+h+i);e+=1,b.push(s.LITERAL),c.push(i),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g=f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);if("."==f&&d.charAt(e)>="0"&&"9">=d.charAt(e))for(g+=f,g+=d.charAt(e++),f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(s.NUMBER),c.push(g);continue}if("*"==f){if(b.length>0){var j=b[b.length-1];if(j!=s.AT&&j!=s.DOUBLECOLON&&j!=s.LEFTPARENTHESIS&&j!=s.LEFTBRACKET&&j!=s.AND&&j!=s.OR&&j!=s.MOD&&j!=s.DIV&&j!=s.MULTIPLYOPERATOR&&j!=s.SLASH&&j!=s.DOUBLESLASH&&j!=s.BAR&&j!=s.PLUS&&j!=s.MINUS&&j!=s.EQUALS&&j!=s.NOTEQUAL&&j!=s.LESSTHAN&&j!=s.LESSTHANOREQUAL&&j!=s.GREATERTHAN&&j!=s.GREATERTHANOREQUAL){b.push(s.MULTIPLYOPERATOR),c.push(f),f=d.charAt(e++);continue}}b.push(s.ASTERISKNAMETEST),c.push(f),f=d.charAt(e++);continue}if(":"==f&&":"==d.charAt(e)){b.push(s.DOUBLECOLON),c.push("::"),e++,f=d.charAt(e++);continue}if("/"==f){if("/"==(f=d.charAt(e++))){b.push(s.DOUBLESLASH),c.push("//"),f=d.charAt(e++);continue}b.push(s.SLASH),c.push("/");continue}if("!"==f&&"="==d.charAt(e)){b.push(s.NOTEQUAL),c.push("!="),e++,f=d.charAt(e++);continue}if("<"==f){if("="==d.charAt(e)){b.push(s.LESSTHANOREQUAL),c.push("<="),e++,f=d.charAt(e++);continue}b.push(s.LESSTHAN),c.push("<"),f=d.charAt(e++);continue}if(">"==f){if("="==d.charAt(e)){b.push(s.GREATERTHANOREQUAL),c.push(">="),e++,f=d.charAt(e++);continue}b.push(s.GREATERTHAN),c.push(">"),f=d.charAt(e++);continue}if("_"==f||ai.isLetter(f.charCodeAt(0))){var k=f;for(f=d.charAt(e++);ai.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if(b.length>0){var j=b[b.length-1];if(j!=s.AT&&j!=s.DOUBLECOLON&&j!=s.LEFTPARENTHESIS&&j!=s.LEFTBRACKET&&j!=s.AND&&j!=s.OR&&j!=s.MOD&&j!=s.DIV&&j!=s.MULTIPLYOPERATOR&&j!=s.SLASH&&j!=s.DOUBLESLASH&&j!=s.BAR&&j!=s.PLUS&&j!=s.MINUS&&j!=s.EQUALS&&j!=s.NOTEQUAL&&j!=s.LESSTHAN&&j!=s.LESSTHANOREQUAL&&j!=s.GREATERTHAN&&j!=s.GREATERTHANOREQUAL){if("and"==k){b.push(s.AND),c.push(k);continue}if("or"==k){b.push(s.OR),c.push(k);continue}if("mod"==k){b.push(s.MOD),c.push(k);continue}if("div"==k){b.push(s.DIV),c.push(k);continue}}}if(":"==f){if("*"==d.charAt(e)){b.push(s.NCNAMECOLONASTERISK),c.push(k+":*"),e++,f=d.charAt(e++);continue}if("_"==d.charAt(e)||ai.isLetter(d.charCodeAt(e))){for(k+=":",f=d.charAt(e++);ai.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if("("==f){b.push(s.FUNCTIONNAME),c.push(k);continue}b.push(s.QNAME),c.push(k);continue}if(":"==d.charAt(e)){b.push(s.AXISNAME),c.push(k);continue}}if("("==f){if("comment"==k||"text"==k||"node"==k){b.push(s.NODETYPE),c.push(k);continue}if("processing-instruction"==k){")"==d.charAt(e)?b.push(s.NODETYPE):b.push(s.PROCESSINGINSTRUCTIONWITHLITERAL),c.push(k);continue}b.push(s.FUNCTIONNAME),c.push(k);continue}b.push(s.QNAME),c.push(k);continue}throw Error("Unexpected character "+f)}return b.push(1),c.push("[EOF]"),[b,c]},s.SHIFT="s",s.REDUCE="r",s.ACCEPT="a",s.prototype.parse=function(a){if(!a)throw Error("XPath expression unspecified.");if("string"!=typeof a)throw Error("XPath expression must be a string.");var b,c,d,e,f=this.tokenize(a);if(void 0!=f){b=f[0],c=f[1];var g=0,h=[],i=[],j=[];for(h.push(0),i.push(1),j.push("_S"),d=b[g],e=c[g++];;)switch(a=h[h.length-1],s.actionTable[a].charAt(d-1)){case s.SHIFT:i.push(-d),j.push(e),h.push(s.actionTableNumber[a].charCodeAt(d-1)-32),d=b[g],e=c[g++];break;case s.REDUCE:for(var k=s.productions[s.actionTableNumber[a].charCodeAt(d-1)-32][1],l=[],m=0;m<k;m++)i.pop(),l.unshift(j.pop()),h.pop();var n=h[h.length-1];i.push(s.productions[s.actionTableNumber[a].charCodeAt(d-1)-32][0]),void 0==this.reduceActions[s.actionTableNumber[a].charCodeAt(d-1)-32]?j.push(l[0]):j.push(this.reduceActions[s.actionTableNumber[a].charCodeAt(d-1)-32](l)),h.push(s.gotoTable[n].charCodeAt(s.productions[s.actionTableNumber[a].charCodeAt(d-1)-32][0]-2)-33);break;case s.ACCEPT:return new t(j.pop());default:throw Error("XPath parse error")}}},t.prototype={},t.prototype.constructor=t,t.superclass=Object.prototype,t.prototype.toString=function(){return this.expression.toString()},t.prototype.evaluate=function(a){var b=a.expressionContextNode;if(!(null==b||g(b)))throw Error("Context node does not appear to be a valid DOM node.");return a.contextNode=a.expressionContextNode,a.contextSize=1,a.contextPosition=1,a.isHtml&&(u(a,"caseInsensitive",!0),u(a,"allowAnyNamespaceForNoPrefix",!0)),u(a,"caseInsensitive",!1),this.expression.evaluate(a)},t.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",t.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",v.prototype={},v.prototype.constructor=v,v.superclass=Object.prototype,v.prototype.init=function(){},v.prototype.toString=function(){return"<Expression>"},v.prototype.evaluate=function(a){throw Error("Could not evaluate expression.")},w.prototype=new v,w.prototype.constructor=w,w.superclass=v.prototype,w.prototype.init=function(a){this.rhs=a},x.prototype=new w,x.prototype.constructor=x,x.superclass=w.prototype,x.prototype.init=function(a){x.superclass.init.call(this,a)},x.prototype.evaluate=function(a){return this.rhs.evaluate(a).number().negate()},x.prototype.toString=function(){return"-"+this.rhs.toString()},y.prototype=new v,y.prototype.constructor=y,y.superclass=v.prototype,y.prototype.init=function(a,b){this.lhs=a,this.rhs=b},z.prototype=new y,z.prototype.constructor=z,z.superclass=y.prototype,z.prototype.init=function(a,b){z.superclass.init.call(this,a,b)},z.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},z.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?b:this.rhs.evaluate(a).bool()},A.prototype=new y,A.prototype.constructor=A,A.superclass=y.prototype,A.prototype.init=function(a,b){A.superclass.init.call(this,a,b)},A.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},A.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?this.rhs.evaluate(a).bool():b},B.prototype=new y,B.prototype.constructor=B,B.superclass=y.prototype,B.prototype.init=function(a,b){B.superclass.init.call(this,a,b)},B.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},B.prototype.evaluate=function(a){return this.lhs.evaluate(a).equals(this.rhs.evaluate(a))},C.prototype=new y,C.prototype.constructor=C,C.superclass=y.prototype,C.prototype.init=function(a,b){C.superclass.init.call(this,a,b)},C.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},C.prototype.evaluate=function(a){return this.lhs.evaluate(a).notequal(this.rhs.evaluate(a))},D.prototype=new y,D.prototype.constructor=D,D.superclass=y.prototype,D.prototype.init=function(a,b){D.superclass.init.call(this,a,b)},D.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthan(this.rhs.evaluate(a))},D.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},E.prototype=new y,E.prototype.constructor=E,E.superclass=y.prototype,E.prototype.init=function(a,b){E.superclass.init.call(this,a,b)},E.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthan(this.rhs.evaluate(a))},E.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},F.prototype=new y,F.prototype.constructor=F,F.superclass=y.prototype,F.prototype.init=function(a,b){F.superclass.init.call(this,a,b)},F.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthanorequal(this.rhs.evaluate(a))},F.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},G.prototype=new y,G.prototype.constructor=G,G.superclass=y.prototype,G.prototype.init=function(a,b){G.superclass.init.call(this,a,b)},G.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthanorequal(this.rhs.evaluate(a))},G.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},H.prototype=new y,H.prototype.constructor=H,H.superclass=y.prototype,H.prototype.init=function(a,b){H.superclass.init.call(this,a,b)},H.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().plus(this.rhs.evaluate(a).number())},H.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},I.prototype=new y,I.prototype.constructor=I,I.superclass=y.prototype,I.prototype.init=function(a,b){I.superclass.init.call(this,a,b)},I.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().minus(this.rhs.evaluate(a).number())},I.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},J.prototype=new y,J.prototype.constructor=J,J.superclass=y.prototype,J.prototype.init=function(a,b){J.superclass.init.call(this,a,b)},J.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().multiply(this.rhs.evaluate(a).number())},J.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},K.prototype=new y,K.prototype.constructor=K,K.superclass=y.prototype,K.prototype.init=function(a,b){K.superclass.init.call(this,a,b)},K.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().div(this.rhs.evaluate(a).number())},K.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},L.prototype=new y,L.prototype.constructor=L,L.superclass=y.prototype,L.prototype.init=function(a,b){L.superclass.init.call(this,a,b)},L.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().mod(this.rhs.evaluate(a).number())},L.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},M.prototype=new y,M.prototype.constructor=M,M.superclass=y.prototype,M.prototype.init=function(a,b){M.superclass.init.call(this,a,b)},M.prototype.evaluate=function(a){return this.lhs.evaluate(a).nodeset().union(this.rhs.evaluate(a).nodeset())},M.prototype.toString=function(){return j(m,[this.lhs,this.rhs]).join(" | ")},N.prototype=new v,N.prototype.constructor=N,N.superclass=v.prototype,N.prototype.init=function(a,b,c){N.superclass.init.call(this),this.filter=a,this.filterPredicates=b,this.locationPath=c};var O=function(a,b,c,d){if(0===a.length)return c;var e=b.extend({});return i(function(a,b){return e.contextSize=a.length,k(function(a,c){return e.contextNode=a,e.contextPosition=c+1,N.predicateMatches(b,e)},a)},q(c,d),a)};N.getRoot=function(a,b){var c=b[0];if(c&&9===c.nodeType)return c;if(a.virtualRoot)return a.virtualRoot;if(!c)throw Error("Context node not found when determining document root.");var d=c.ownerDocument;if(d)return d;for(var e=c;null!=e.parentNode;)e=e.parentNode;return e};var P=function(a){var b=String(a.name);return"xmlns"===b?"":"xmlns:"===b.substring(0,6)?b.substring(6,b.length):null};function Q(a,b,c){return O(a.predicates,b,N.applyStep(a,b,c),l(U,a.axis))}function R(a,b,c){return function(a){for(var b=[],c=0;c<a.length;c+=32767){var d=a.slice(c,c+32767);b=p.apply(b,d)}return b}(j(Q.bind(null,c,a),b))}function S(a,b){arguments.length>0&&this.init(a,b)}function T(a,b,c){arguments.length>0&&this.init(a,b,c)}N.applyStep=function(a,b,c){if(!c)throw Error("Context node not found when evaluating XPath step: "+a);var d,e,f=[];switch(b.contextNode=c,a.axis){case T.ANCESTOR:if(b.contextNode===b.virtualRoot)break;for(d=2==b.contextNode.nodeType?N.getOwnerElement(b.contextNode):b.contextNode.parentNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);)d=d.parentNode;break;case T.ANCESTORORSELF:for(var d=b.contextNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);d=2==d.nodeType?N.getOwnerElement(d):d.parentNode);break;case T.ATTRIBUTE:var g=b.contextNode.attributes;if(null!=g)for(var h=0;h<g.length;h++){var d=g.item(h);a.nodeTest.matches(d,b)&&f.push(d)}break;case T.CHILD:for(var d=b.contextNode.firstChild;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case T.DESCENDANT:for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case T.DESCENDANTORSELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode);for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case T.FOLLOWING:if(b.contextNode===b.virtualRoot)break;var e=[];null!=b.contextNode.firstChild?e.unshift(b.contextNode.firstChild):e.unshift(b.contextNode.nextSibling);for(var d=b.contextNode.parentNode;null!=d&&9!=d.nodeType&&d!==b.virtualRoot;d=d.parentNode)e.unshift(d.nextSibling);do for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;while(e.length>0);break;case T.FOLLOWINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.nextSibling;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case T.NAMESPACE:var i={};if(1==b.contextNode.nodeType){i.xml=new ac("xml",null,t.XML_NAMESPACE_URI,b.contextNode);for(var d=b.contextNode;null!=d&&1==d.nodeType;d=d.parentNode)for(var h=0;h<d.attributes.length;h++){var j=d.attributes.item(h),k=P(j);null!=k&&void 0==i[k]&&(i[k]=new ac(k,j,j.value,b.contextNode))}for(var k in i){var c=i[k];a.nodeTest.matches(c,b)&&f.push(c)}}break;case T.PARENT:d=null,b.contextNode!==b.virtualRoot&&(d=2==b.contextNode.nodeType?N.getOwnerElement(b.contextNode):b.contextNode.parentNode),null!=d&&a.nodeTest.matches(d,b)&&f.push(d);break;case T.PRECEDING:e=null!=b.virtualRoot?[b.virtualRoot]:[function(a){for(;a&&a.parentNode;)a=a.parentNode;return a}(b.contextNode)];a:for(;e.length>0;)for(var d=e.pop();null!=d;){if(d==b.contextNode)break a;a.nodeTest.matches(d,b)&&f.unshift(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling}break;case T.PRECEDINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.previousSibling;null!=d;d=d.previousSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case T.SELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode)}return f},N.applySteps=function(a,b,c){return i(R.bind(null,b),c,a)},N.prototype.applyFilter=function(a,b){if(!this.filter)return{nodes:[a.contextNode]};var c=this.filter.evaluate(a);if(!ai.instance_of(c,ab)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:c}}return{nodes:O(this.filterPredicates||[],b,c.toUnsortedArray(),!1)}},N.applyLocationPath=function(a,b,c){if(!a)return c;var d=a.absolute?[N.getRoot(b,c)]:c;return N.applySteps(a.steps,b,d)},N.prototype.evaluate=function(a){var b=r(new ad,a),c=this.applyFilter(a,b);if("nonNodes"in c)return c.nonNodes;var d=new ab;return d.addArray(N.applyLocationPath(this.locationPath,b,c.nodes)),d},N.predicateMatches=function(a,b){var c=a.evaluate(b);return ai.instance_of(c,$)?b.contextPosition===c.numberValue():c.booleanValue()},N.predicateString=function(a){return o("[","]",a.toString())},N.predicatesString=function(a){return n("",j(N.predicateString,a))},N.prototype.toString=function(){if(void 0!=this.filter){var a=m(this.filter);return ai.instance_of(this.filter,Z)?o("'","'",a):void 0!=this.filterPredicates&&this.filterPredicates.length?o("(",")",a)+N.predicatesString(this.filterPredicates):void 0!=this.locationPath?a+(this.locationPath.absolute?"":"/")+m(this.locationPath):a}return m(this.locationPath)},N.getOwnerElement=function(a){if(a.ownerElement)return a.ownerElement;try{if(a.selectSingleNode)return a.selectSingleNode("..")}catch(a){}for(var b=(9==a.nodeType?a:a.ownerDocument).getElementsByTagName("*"),c=0;c<b.length;c++)for(var d=b.item(c),e=d.attributes,f=0;f<e.length;f++)if(e.item(f)===a)return d;return null},S.prototype={},S.prototype.constructor=S,S.superclass=Object.prototype,S.prototype.init=function(a,b){this.absolute=a,this.steps=b},S.prototype.toString=function(){return(this.absolute?"/":"")+j(m,this.steps).join("/")},T.prototype={},T.prototype.constructor=T,T.superclass=Object.prototype,T.prototype.init=function(a,b,c){this.axis=a,this.nodeTest=b,this.predicates=c},T.prototype.toString=function(){return T.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+N.predicatesString(this.predicates)},T.ANCESTOR=0,T.ANCESTORORSELF=1,T.ATTRIBUTE=2,T.CHILD=3,T.DESCENDANT=4,T.DESCENDANTORSELF=5,T.FOLLOWING=6,T.FOLLOWINGSIBLING=7,T.NAMESPACE=8,T.PARENT=9,T.PRECEDING=10,T.PRECEDINGSIBLING=11,T.SELF=12,T.STEPNAMES=i(function(a,b){return a[b[0]]=b[1],a},{},[[T.ANCESTOR,"ancestor"],[T.ANCESTORORSELF,"ancestor-or-self"],[T.ATTRIBUTE,"attribute"],[T.CHILD,"child"],[T.DESCENDANT,"descendant"],[T.DESCENDANTORSELF,"descendant-or-self"],[T.FOLLOWING,"following"],[T.FOLLOWINGSIBLING,"following-sibling"],[T.NAMESPACE,"namespace"],[T.PARENT,"parent"],[T.PRECEDING,"preceding"],[T.PRECEDINGSIBLING,"preceding-sibling"],[T.SELF,"self"]]);var U=[T.ANCESTOR,T.ANCESTORORSELF,T.PARENT,T.PRECEDING,T.PRECEDINGSIBLING];function V(a,b){arguments.length>0&&this.init(a,b)}function W(a){arguments.length>0&&this.init(a)}function X(a,b){arguments.length>0&&this.init(a,b)}V.prototype={},V.prototype.constructor=V,V.superclass=Object.prototype,V.prototype.init=function(a,b){this.type=a,this.value=b},V.prototype.toString=function(){return"<unknown nodetest type>"},V.prototype.matches=function(a,b){console.warn("unknown node test type")},V.NAMETESTANY=0,V.NAMETESTPREFIXANY=1,V.NAMETESTQNAME=2,V.COMMENT=3,V.TEXT=4,V.PI=5,V.NODE=6,V.isNodeType=function(a){return function(b){return l(a,b.nodeType)}},V.makeNodeTestType=function(a,b,c){var d=c||function(){};return d.prototype=new V(a),d.prototype.constructor=d,r(d.prototype,b),d},V.makeNodeTypeTest=function(a,b,c){return new(V.makeNodeTestType(a,{matches:V.isNodeType(b),toString:function(){return c}}))},V.hasPrefix=function(a){return a.prefix||-1!==(a.nodeName||a.tagName).indexOf(":")},V.isElementOrAttribute=V.isNodeType([1,2]),V.nameSpaceMatches=function(a,b,c){var d=c.namespaceURI||"";if(!a)return!d||b.allowAnyNamespaceForNoPrefix&&!V.hasPrefix(c);var e=b.namespaceResolver.getNamespace(a,b.expressionContextNode);if(null==e)throw Error("Cannot resolve QName "+a);return e===d},V.localNameMatches=function(a,b,c){var d=c.localName||c.nodeName;return b.caseInsensitive?a.toLowerCase()===d.toLowerCase():a===d},V.NameTestPrefixAny=V.makeNodeTestType(V.NAMETESTPREFIXANY,{matches:function(a,b){return V.isElementOrAttribute(a)&&V.nameSpaceMatches(this.prefix,b,a)},toString:function(){return this.prefix+":*"}},function(a){this.prefix=a}),V.NameTestQName=V.makeNodeTestType(V.NAMETESTQNAME,{matches:function(a,b){return V.isNodeType([1,2,f])(a)&&V.nameSpaceMatches(this.prefix,b,a)&&V.localNameMatches(this.localName,b,a)},toString:function(){return this.name}},function(a){var b=a.split(":");this.name=a,this.prefix=b.length>1?b[0]:null,this.localName=b[+(b.length>1)]}),V.PITest=V.makeNodeTestType(V.PI,{matches:function(a,b){return V.isNodeType([7])(a)&&(a.target||a.nodeName)===this.name},toString:function(){return o('processing-instruction("','")',this.name)}},function(a){this.name=a}),V.nameTestAny=V.makeNodeTypeTest(V.NAMETESTANY,[1,2,f],"*"),V.textTest=V.makeNodeTypeTest(V.TEXT,[3,4],"text()"),V.commentTest=V.makeNodeTypeTest(V.COMMENT,[8],"comment()"),V.nodeTest=V.makeNodeTypeTest(V.NODE,[1,2,3,4,7,8,9],"node()"),V.anyPiTest=V.makeNodeTypeTest(V.PI,[7],"processing-instruction()"),W.prototype=new v,W.prototype.constructor=W,W.superclass=v.prototype,W.prototype.init=function(a){this.variable=a},W.prototype.toString=function(){return"$"+this.variable},W.prototype.evaluate=function(a){var b=ai.resolveQName(this.variable,a.namespaceResolver,a.contextNode,!1);if(null==b[0])throw Error("Cannot resolve QName "+fn);var c=a.variableResolver.getVariable(b[1],b[0]);if(!c)throw ak.fromMessage("Undeclared variable: "+this.toString());return c},X.prototype=new v,X.prototype.constructor=X,X.superclass=v.prototype,X.prototype.init=function(a,b){this.functionName=a,this.arguments=b},X.prototype.toString=function(){for(var a=this.functionName+"(",b=0;b<this.arguments.length;b++)b>0&&(a+=", "),a+=this.arguments[b].toString();return a+")"},X.prototype.evaluate=function(a){var b=af.getFunctionFromContext(this.functionName,a);if(!b)throw Error("Unknown function "+this.functionName);var c=[a].concat(this.arguments);return b.apply(a.functionResolver.thisArg,c)};var Y={};function Z(a){arguments.length>0&&this.init(a)}function $(a){arguments.length>0&&this.init(a)}function _(a){arguments.length>0&&this.init(a)}function aa(a){this.init(a)}function ab(){this.init()}function ac(a,b,c,d){this.isXPathNamespace=!0,this.baseNode=b,this.ownerDocument=d.ownerDocument,this.nodeName=a,this.prefix=a,this.localName=a,this.namespaceURI=null,this.nodeValue=c,this.ownerElement=d,this.nodeType=f}function ad(a,b,c){this.variableResolver=null!=a?a:new ae,this.namespaceResolver=null!=b?b:new ag,this.functionResolver=null!=c?c:new af}function ae(){}function af(a){this.thisArg=null!=a?a:ah,this.functions={},this.addStandardFunctions()}function ag(){}Y.equals=function(a,b){return a.equals(b)},Y.notequal=function(a,b){return a.notequal(b)},Y.lessthan=function(a,b){return a.lessthan(b)},Y.greaterthan=function(a,b){return a.greaterthan(b)},Y.lessthanorequal=function(a,b){return a.lessthanorequal(b)},Y.greaterthanorequal=function(a,b){return a.greaterthanorequal(b)},Z.prototype=new v,Z.prototype.constructor=Z,Z.superclass=v.prototype,Z.prototype.init=function(a){this.str=String(a)},Z.prototype.toString=function(){return this.str},Z.prototype.evaluate=function(a){return this},Z.prototype.string=function(){return this},Z.prototype.number=function(){return new $(this.str)},Z.prototype.bool=function(){return new _(this.str)},Z.prototype.nodeset=function(){throw Error("Cannot convert string to nodeset")},Z.prototype.stringValue=function(){return this.str},Z.prototype.numberValue=function(){return this.number().numberValue()},Z.prototype.booleanValue=function(){return this.bool().booleanValue()},Z.prototype.equals=function(a){return ai.instance_of(a,_)?this.bool().equals(a):ai.instance_of(a,$)?this.number().equals(a):ai.instance_of(a,ab)?a.compareWithString(this,Y.equals):new _(this.str==a.str)},Z.prototype.notequal=function(a){return ai.instance_of(a,_)?this.bool().notequal(a):ai.instance_of(a,$)?this.number().notequal(a):ai.instance_of(a,ab)?a.compareWithString(this,Y.notequal):new _(this.str!=a.str)},Z.prototype.lessthan=function(a){return this.number().lessthan(a)},Z.prototype.greaterthan=function(a){return this.number().greaterthan(a)},Z.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},Z.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},$.prototype=new v,$.prototype.constructor=$,$.superclass=v.prototype,$.prototype.init=function(a){this.num="string"==typeof a?this.parse(a):Number(a)},$.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,$.prototype.parse=function(a){return this.numberFormat.test(a)?parseFloat(a):NaN},$.prototype.toString=function(){var a=this.num.toString();if(-1!==a.indexOf("e-")){for(var b=a.split("e-"),c=b[0].replace(".",""),d=Number(b[1]),e=0;e<d-1;e+=1)c="0"+c;return"0."+c}if(-1!==a.indexOf("e")){for(var f=a.split("e"),g=f[0].replace(".",""),h=Number(f[1])+1-g.length,i=0;i<h;i+=1)g+="0";return g}return a},$.prototype.evaluate=function(a){return this},$.prototype.string=function(){return new Z(this.toString())},$.prototype.number=function(){return this},$.prototype.bool=function(){return new _(this.num)},$.prototype.nodeset=function(){throw Error("Cannot convert number to nodeset")},$.prototype.stringValue=function(){return this.string().stringValue()},$.prototype.numberValue=function(){return this.num},$.prototype.booleanValue=function(){return this.bool().booleanValue()},$.prototype.negate=function(){return new $(-this.num)},$.prototype.equals=function(a){return ai.instance_of(a,_)?this.bool().equals(a):ai.instance_of(a,Z)?this.equals(a.number()):ai.instance_of(a,ab)?a.compareWithNumber(this,Y.equals):new _(this.num==a.num)},$.prototype.notequal=function(a){return ai.instance_of(a,_)?this.bool().notequal(a):ai.instance_of(a,Z)?this.notequal(a.number()):ai.instance_of(a,ab)?a.compareWithNumber(this,Y.notequal):new _(this.num!=a.num)},$.prototype.lessthan=function(a){return ai.instance_of(a,ab)?a.compareWithNumber(this,Y.greaterthan):ai.instance_of(a,_)||ai.instance_of(a,Z)?this.lessthan(a.number()):new _(this.num<a.num)},$.prototype.greaterthan=function(a){return ai.instance_of(a,ab)?a.compareWithNumber(this,Y.lessthan):ai.instance_of(a,_)||ai.instance_of(a,Z)?this.greaterthan(a.number()):new _(this.num>a.num)},$.prototype.lessthanorequal=function(a){return ai.instance_of(a,ab)?a.compareWithNumber(this,Y.greaterthanorequal):ai.instance_of(a,_)||ai.instance_of(a,Z)?this.lessthanorequal(a.number()):new _(this.num<=a.num)},$.prototype.greaterthanorequal=function(a){return ai.instance_of(a,ab)?a.compareWithNumber(this,Y.lessthanorequal):ai.instance_of(a,_)||ai.instance_of(a,Z)?this.greaterthanorequal(a.number()):new _(this.num>=a.num)},$.prototype.plus=function(a){return new $(this.num+a.num)},$.prototype.minus=function(a){return new $(this.num-a.num)},$.prototype.multiply=function(a){return new $(this.num*a.num)},$.prototype.div=function(a){return new $(this.num/a.num)},$.prototype.mod=function(a){return new $(this.num%a.num)},_.prototype=new v,_.prototype.constructor=_,_.superclass=v.prototype,_.prototype.init=function(a){this.b=!!a},_.prototype.toString=function(){return this.b.toString()},_.prototype.evaluate=function(a){return this},_.prototype.string=function(){return new Z(this.b)},_.prototype.number=function(){return new $(this.b)},_.prototype.bool=function(){return this},_.prototype.nodeset=function(){throw Error("Cannot convert boolean to nodeset")},_.prototype.stringValue=function(){return this.string().stringValue()},_.prototype.numberValue=function(){return this.number().numberValue()},_.prototype.booleanValue=function(){return this.b},_.prototype.not=function(){return new _(!this.b)},_.prototype.equals=function(a){return ai.instance_of(a,Z)||ai.instance_of(a,$)?this.equals(a.bool()):ai.instance_of(a,ab)?a.compareWithBoolean(this,Y.equals):new _(this.b==a.b)},_.prototype.notequal=function(a){return ai.instance_of(a,Z)||ai.instance_of(a,$)?this.notequal(a.bool()):ai.instance_of(a,ab)?a.compareWithBoolean(this,Y.notequal):new _(this.b!=a.b)},_.prototype.lessthan=function(a){return this.number().lessthan(a)},_.prototype.greaterthan=function(a){return this.number().greaterthan(a)},_.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},_.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},_.true_=new _(!0),_.false_=new _(!1),aa.prototype={},aa.prototype.constructor=aa,aa.superclass=Object.prototype,aa.prototype.init=function(a){this.left=null,this.right=null,this.node=a,this.depth=1},aa.prototype.balance=function(){var a=null==this.left?0:this.left.depth,b=null==this.right?0:this.right.depth;if(a>b+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(a+1<b){var c=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>c&&this.right.rotateLL(),this.rotateRR()}},aa.prototype.rotateLL=function(){var a=this.node,b=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=b,this.right.node=a,this.right.updateInNewLocation(),this.updateInNewLocation()},aa.prototype.rotateRR=function(){var a=this.node,b=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=b,this.left.node=a,this.left.updateInNewLocation(),this.updateInNewLocation()},aa.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},aa.prototype.getDepthFromChildren=function(){this.depth=+(null!=this.node),null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},aa.prototype.add=function(a){if(a===this.node)return!1;var b=function(a,b){if(a===b)return 0;if(a.compareDocumentPosition){var c=a.compareDocumentPosition(b);return 1&c||10&c?1:20&c?-1:0}for(var d=0,e=0,f=a;null!=f;f=f.parentNode||f.ownerElement)d++;for(var g=b;null!=g;g=g.parentNode||g.ownerElement)e++;if(d>e){for(;d>e;)a=a.parentNode||a.ownerElement,d--;if(a===b)return 1}else if(e>d){for(;e>d;)b=b.parentNode||b.ownerElement,e--;if(a===b)return -1}for(var h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;h!==i;)a=h,b=i,h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;var j=aj(a),k=aj(b);if(j&&!k)return -1;if(!j&&k)return 1;if(a.isXPathNamespace){if(a.nodeValue===t.XML_NAMESPACE_URI||!b.isXPathNamespace)return -1;if(b.nodeValue===t.XML_NAMESPACE_URI)return 1}else if(b.isXPathNamespace)return 1;if(h)for(var l=j?h.attributes:h.childNodes,m=l.length,n=a.baseNode||a,o=b.baseNode||b,p=0;p<m;p+=1){var q=l[p];if(q===n)return -1;if(q===o)return 1}throw Error("Unexpected: could not determine node order")}(a,this.node),c=!1;return -1==b?null==this.left?(this.left=new aa(a),c=!0):(c=this.left.add(a))&&this.balance():1==b&&(null==this.right?(this.right=new aa(a),c=!0):(c=this.right.add(a))&&this.balance()),c&&this.getDepthFromChildren(),c},ab.prototype=new v,ab.prototype.constructor=ab,ab.superclass=v.prototype,ab.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},ab.prototype.toString=function(){var a=this.first();return null==a?"":this.stringForNode(a)},ab.prototype.evaluate=function(a){return this},ab.prototype.string=function(){return new Z(this.toString())},ab.prototype.stringValue=function(){return this.toString()},ab.prototype.number=function(){return new $(this.string())},ab.prototype.numberValue=function(){return Number(this.string())},ab.prototype.bool=function(){return new _(this.booleanValue())},ab.prototype.booleanValue=function(){return!!this.size},ab.prototype.nodeset=function(){return this},ab.prototype.stringForNode=function(a){return 9==a.nodeType||1==a.nodeType||11===a.nodeType?this.stringForContainerNode(a):2===a.nodeType?a.value||a.nodeValue:a.isNamespaceNode?a.namespace:a.nodeValue},ab.prototype.stringForContainerNode=function(a){for(var b="",c=a.firstChild;null!=c;c=c.nextSibling){var d=c.nodeType;(1===d||3===d||4===d||9===d||11===d)&&(b+=this.stringForNode(c))}return b},ab.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new aa(this.nodes[0]);for(var a=1;a<this.nodes.length;a+=1)this.tree.add(this.nodes[a])}return this.tree},ab.prototype.first=function(){var a=this.buildTree();if(null==a)return null;for(;null!=a.left;)a=a.left;return a.node},ab.prototype.add=function(a){for(var b=0;b<this.nodes.length;b+=1)if(a===this.nodes[b])return;this.tree=null,this.nodes.push(a),this.size+=1},ab.prototype.addArray=function(a){var b=this;h(function(a){b.add(a)},a)},ab.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},ab.prototype.toArrayRec=function(a,b){null!=a&&(this.toArrayRec(a.left,b),b.push(a.node),this.toArrayRec(a.right,b))},ab.prototype.toUnsortedArray=function(){return this.nodes.slice()},ab.prototype.compareWithString=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new Z(this.stringForNode(e)),a);if(f.booleanValue())return f}return new _(!1)},ab.prototype.compareWithNumber=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new $(this.stringForNode(e)),a);if(f.booleanValue())return f}return new _(!1)},ab.prototype.compareWithBoolean=function(a,b){return b(this.bool(),a)},ab.prototype.compareWithNodeSet=function(a,b){for(var c=this.toUnsortedArray(),d=function(a,c){return b(c,a)},e=0;e<c.length;e++){var f=new Z(this.stringForNode(c[e])),g=a.compareWithString(f,d);if(g.booleanValue())return g}return new _(!1)},b=function(a,b){return ai.instance_of(b,Z)?this.compareWithString(b,a):ai.instance_of(b,$)?this.compareWithNumber(b,a):ai.instance_of(b,_)?this.compareWithBoolean(b,a):this.compareWithNodeSet(b,a)},c=Array.prototype.slice,d=b.length,ab.compareWith=e=function(){var a,f=c.call(arguments);return f.length<d?(a=e,function(){return a.apply(this,f.concat(c.call(arguments)))}):b.apply(this,c.apply(arguments,[0,d]))},ab.prototype.equals=ab.compareWith(Y.equals),ab.prototype.notequal=ab.compareWith(Y.notequal),ab.prototype.lessthan=ab.compareWith(Y.lessthan),ab.prototype.greaterthan=ab.compareWith(Y.greaterthan),ab.prototype.lessthanorequal=ab.compareWith(Y.lessthanorequal),ab.prototype.greaterthanorequal=ab.compareWith(Y.greaterthanorequal),ab.prototype.union=function(a){var b=new ab;return b.addArray(this.toUnsortedArray()),b.addArray(a.toUnsortedArray()),b},ac.prototype={},ac.prototype.constructor=ac,ac.superclass=Object.prototype,ac.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},ad.prototype={},ad.prototype.constructor=ad,ad.superclass=Object.prototype,ad.prototype.extend=function(a){return r(new ad,this,a)},ae.prototype={},ae.prototype.constructor=ae,ae.superclass=Object.prototype,ae.prototype.getVariable=function(a,b){return null},af.prototype={},af.prototype.constructor=af,af.superclass=Object.prototype,af.prototype.addStandardFunctions=function(){this.functions["{}last"]=ah.last,this.functions["{}position"]=ah.position,this.functions["{}count"]=ah.count,this.functions["{}id"]=ah.id,this.functions["{}local-name"]=ah.localName,this.functions["{}namespace-uri"]=ah.namespaceURI,this.functions["{}name"]=ah.name,this.functions["{}string"]=ah.string,this.functions["{}concat"]=ah.concat,this.functions["{}starts-with"]=ah.startsWith,this.functions["{}contains"]=ah.contains,this.functions["{}substring-before"]=ah.substringBefore,this.functions["{}substring-after"]=ah.substringAfter,this.functions["{}substring"]=ah.substring,this.functions["{}string-length"]=ah.stringLength,this.functions["{}normalize-space"]=ah.normalizeSpace,this.functions["{}translate"]=ah.translate,this.functions["{}boolean"]=ah.boolean_,this.functions["{}not"]=ah.not,this.functions["{}true"]=ah.true_,this.functions["{}false"]=ah.false_,this.functions["{}lang"]=ah.lang,this.functions["{}number"]=ah.number,this.functions["{}sum"]=ah.sum,this.functions["{}floor"]=ah.floor,this.functions["{}ceiling"]=ah.ceiling,this.functions["{}round"]=ah.round},af.prototype.addFunction=function(a,b,c){this.functions["{"+a+"}"+b]=c},af.getFunctionFromContext=function(a,b){var c=ai.resolveQName(a,b.namespaceResolver,b.contextNode,!1);if(null===c[0])throw Error("Cannot resolve QName "+name);return b.functionResolver.getFunction(c[1],c[0])},af.prototype.getFunction=function(a,b){return this.functions["{"+b+"}"+a]},ag.prototype={},ag.prototype.constructor=ag,ag.superclass=Object.prototype,ag.prototype.getNamespace=function(a,b){if("xml"==a)return t.XML_NAMESPACE_URI;if("xmlns"==a)return t.XMLNS_NAMESPACE_URI;for(9==b.nodeType?b=b.documentElement:2==b.nodeType?b=N.getOwnerElement(b):1!=b.nodeType&&(b=b.parentNode);null!=b&&1==b.nodeType;){for(var c=b.attributes,d=0;d<c.length;d++){var e=c.item(d),f=e.name||e.nodeName;if("xmlns"===f&&""===a||f==="xmlns:"+a)return String(e.value||e.nodeValue)}b=b.parentNode}return null};var ah={};ah.last=function(a){if(1!=arguments.length)throw Error("Function last expects ()");return new $(a.contextSize)},ah.position=function(a){if(1!=arguments.length)throw Error("Function position expects ()");return new $(a.contextPosition)},ah.count=function(){var a,b=arguments[0];if(2!=arguments.length||!ai.instance_of(a=arguments[1].evaluate(b),ab))throw Error("Function count expects (node-set)");return new $(a.size)},ah.id=function(){var a,b,c=arguments[0];if(2!=arguments.length)throw Error("Function id expects (object)");a=arguments[1].evaluate(c);for(var d=(a=ai.instance_of(a,ab)?a.toArray().join(" "):a.stringValue()).split(/[\x0d\x0a\x09\x20]+/),e=new ab,f=9==c.contextNode.nodeType?c.contextNode:c.contextNode.ownerDocument,g=0;g<d.length;g++)null!=(b=f.getElementById?f.getElementById(d[g]):ai.getElementById(f,d[g]))&&e.add(b);return e},ah.localName=function(a,b){var c;if(1==arguments.length)c=a.contextNode;else if(2==arguments.length)c=b.evaluate(a).first();else throw Error("Function local-name expects (node-set?)");return new Z(null==c?"":c.localName||c.baseName||c.target||c.nodeName||"")},ah.namespaceURI=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function namespace-uri expects (node-set?)");return new Z(null==a?"":a.namespaceURI||"")},ah.name=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function name expects (node-set?)");return null==a?new Z(""):1==a.nodeType?new Z(a.nodeName):2==a.nodeType?new Z(a.name||a.nodeName):7===a.nodeType?new Z(a.target||a.nodeName):null==a.localName?new Z(""):new Z(a.localName)},ah.string=function(){var a=arguments[0];if(1==arguments.length)return new Z(ab.prototype.stringForNode(a.contextNode));if(2==arguments.length)return arguments[1].evaluate(a).string();throw Error("Function string expects (object?)")},ah.concat=function(a){if(arguments.length<3)throw Error("Function concat expects (string, string[, string]*)");for(var b="",c=1;c<arguments.length;c++)b+=arguments[c].evaluate(a).stringValue();return new Z(b)},ah.startsWith=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function startsWith expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new _(b.substring(0,c.length)==c)},ah.contains=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function contains expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new _(-1!==b.indexOf(c))},ah.substringBefore=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-before expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new Z(b.substring(0,b.indexOf(c)))},ah.substringAfter=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-after expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();if(0==c.length)return new Z(b);var d=b.indexOf(c);return new Z(-1==d?"":b.substring(d+c.length))},ah.substring=function(){var a=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw Error("Function substring expects (string, number, number?)");var b=arguments[1].evaluate(a).stringValue(),c=Math.round(arguments[2].evaluate(a).numberValue())-1,d=4==arguments.length?c+Math.round(arguments[3].evaluate(a).numberValue()):void 0;return new Z(b.substring(c,d))},ah.stringLength=function(){var a,b=arguments[0];if(1==arguments.length)a=ab.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function string-length expects (string?)");return new $(a.length)},ah.normalizeSpace=function(){var a,b=arguments[0];if(1==arguments.length)a=ab.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function normalize-space expects (string?)");for(var c=0,d=a.length-1;ai.isSpace(a.charCodeAt(d));)d--;for(var e="";c<=d&&ai.isSpace(a.charCodeAt(c));)c++;for(;c<=d;)if(ai.isSpace(a.charCodeAt(c)))for(e+=" ";c<=d&&ai.isSpace(a.charCodeAt(c));)c++;else e+=a.charAt(c),c++;return new Z(e)},ah.translate=function(a,b,c,d){if(4!=arguments.length)throw Error("Function translate expects (string, string, string)");var e=b.evaluate(a).stringValue(),f=c.evaluate(a).stringValue(),g=d.evaluate(a).stringValue(),h=i(function(a,b,c){return b in a||(a[b]=c>g.length?"":g[c]),a},{},f);return new Z(n("",j(function(a){return a in h?h[a]:a},e)))},ah.boolean_=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function boolean expects (object)");return arguments[1].evaluate(a).bool()},ah.not=function(a,b){if(2!=arguments.length)throw Error("Function not expects (object)");return b.evaluate(a).bool().not()},ah.true_=function(){if(1!=arguments.length)throw Error("Function true expects ()");return _.true_},ah.false_=function(){if(1!=arguments.length)throw Error("Function false expects ()");return _.false_},ah.lang=function(){var a,b=arguments[0];if(2!=arguments.length)throw Error("Function lang expects (string)");for(var c=b.contextNode;null!=c&&9!=c.nodeType;c=c.parentNode){var d=c.getAttributeNS(t.XML_NAMESPACE_URI,"lang");if(null!=d){a=String(d);break}}if(null==a)return _.false_;var e=arguments[1].evaluate(b).stringValue();return new _(a.substring(0,e.length)==e&&(a.length==e.length||"-"==a.charAt(e.length)))},ah.number=function(){var a=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw Error("Function number expects (object?)");return 1==arguments.length?new $(ab.prototype.stringForNode(a.contextNode)):arguments[1].evaluate(a).number()},ah.sum=function(){var a,b=arguments[0];if(2!=arguments.length||!ai.instance_of(a=arguments[1].evaluate(b),ab))throw Error("Function sum expects (node-set)");a=a.toUnsortedArray();for(var c=0,d=0;d<a.length;d++)c+=new $(ab.prototype.stringForNode(a[d])).numberValue();return new $(c)},ah.floor=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function floor expects (number)");return new $(Math.floor(arguments[1].evaluate(a).numberValue()))},ah.ceiling=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function ceiling expects (number)");return new $(Math.ceil(arguments[1].evaluate(a).numberValue()))},ah.round=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function round expects (number)");return new $(Math.round(arguments[1].evaluate(a).numberValue()))};var ai={},aj=function(a){return a&&(2===a.nodeType||a.ownerElement||a.isXPathNamespace)};ai.splitQName=function(a){var b=a.indexOf(":");return -1==b?[null,a]:[a.substring(0,b),a.substring(b+1)]},ai.resolveQName=function(a,b,c,d){var e=ai.splitQName(a);return null!=e[0]?e[0]=b.getNamespace(e[0],c):d?(e[0]=b.getNamespace("",c),null==e[0]&&(e[0]="")):e[0]="",e},ai.isSpace=function(a){return 9==a||13==a||10==a||32==a},ai.isLetter=function(a){return a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=255||a>=256&&a<=305||a>=308&&a<=318||a>=321&&a<=328||a>=330&&a<=382||a>=384&&a<=451||a>=461&&a<=496||a>=500&&a<=501||a>=506&&a<=535||a>=592&&a<=680||a>=699&&a<=705||902==a||a>=904&&a<=906||908==a||a>=910&&a<=929||a>=931&&a<=974||a>=976&&a<=982||986==a||988==a||990==a||992==a||a>=994&&a<=1011||a>=1025&&a<=1036||a>=1038&&a<=1103||a>=1105&&a<=1116||a>=1118&&a<=1153||a>=1168&&a<=1220||a>=1223&&a<=1224||a>=1227&&a<=1228||a>=1232&&a<=1259||a>=1262&&a<=1269||a>=1272&&a<=1273||a>=1329&&a<=1366||1369==a||a>=1377&&a<=1414||a>=1488&&a<=1514||a>=1520&&a<=1522||a>=1569&&a<=1594||a>=1601&&a<=1610||a>=1649&&a<=1719||a>=1722&&a<=1726||a>=1728&&a<=1742||a>=1744&&a<=1747||1749==a||a>=1765&&a<=1766||a>=2309&&a<=2361||2365==a||a>=2392&&a<=2401||a>=2437&&a<=2444||a>=2447&&a<=2448||a>=2451&&a<=2472||a>=2474&&a<=2480||2482==a||a>=2486&&a<=2489||a>=2524&&a<=2525||a>=2527&&a<=2529||a>=2544&&a<=2545||a>=2565&&a<=2570||a>=2575&&a<=2576||a>=2579&&a<=2600||a>=2602&&a<=2608||a>=2610&&a<=2611||a>=2613&&a<=2614||a>=2616&&a<=2617||a>=2649&&a<=2652||2654==a||a>=2674&&a<=2676||a>=2693&&a<=2699||2701==a||a>=2703&&a<=2705||a>=2707&&a<=2728||a>=2730&&a<=2736||a>=2738&&a<=2739||a>=2741&&a<=2745||2749==a||2784==a||a>=2821&&a<=2828||a>=2831&&a<=2832||a>=2835&&a<=2856||a>=2858&&a<=2864||a>=2866&&a<=2867||a>=2870&&a<=2873||2877==a||a>=2908&&a<=2909||a>=2911&&a<=2913||a>=2949&&a<=2954||a>=2958&&a<=2960||a>=2962&&a<=2965||a>=2969&&a<=2970||2972==a||a>=2974&&a<=2975||a>=2979&&a<=2980||a>=2984&&a<=2986||a>=2990&&a<=2997||a>=2999&&a<=3001||a>=3077&&a<=3084||a>=3086&&a<=3088||a>=3090&&a<=3112||a>=3114&&a<=3123||a>=3125&&a<=3129||a>=3168&&a<=3169||a>=3205&&a<=3212||a>=3214&&a<=3216||a>=3218&&a<=3240||a>=3242&&a<=3251||a>=3253&&a<=3257||3294==a||a>=3296&&a<=3297||a>=3333&&a<=3340||a>=3342&&a<=3344||a>=3346&&a<=3368||a>=3370&&a<=3385||a>=3424&&a<=3425||a>=3585&&a<=3630||3632==a||a>=3634&&a<=3635||a>=3648&&a<=3653||a>=3713&&a<=3714||3716==a||a>=3719&&a<=3720||3722==a||3725==a||a>=3732&&a<=3735||a>=3737&&a<=3743||a>=3745&&a<=3747||3749==a||3751==a||a>=3754&&a<=3755||a>=3757&&a<=3758||3760==a||a>=3762&&a<=3763||3773==a||a>=3776&&a<=3780||a>=3904&&a<=3911||a>=3913&&a<=3945||a>=4256&&a<=4293||a>=4304&&a<=4342||4352==a||a>=4354&&a<=4355||a>=4357&&a<=4359||4361==a||a>=4363&&a<=4364||a>=4366&&a<=4370||4412==a||4414==a||4416==a||4428==a||4430==a||4432==a||a>=4436&&a<=4437||4441==a||a>=4447&&a<=4449||4451==a||4453==a||4455==a||4457==a||a>=4461&&a<=4462||a>=4466&&a<=4467||4469==a||4510==a||4520==a||4523==a||a>=4526&&a<=4527||a>=4535&&a<=4536||4538==a||a>=4540&&a<=4546||4587==a||4592==a||4601==a||a>=7680&&a<=7835||a>=7840&&a<=7929||a>=7936&&a<=7957||a>=7960&&a<=7965||a>=7968&&a<=8005||a>=8008&&a<=8013||a>=8016&&a<=8023||8025==a||8027==a||8029==a||a>=8031&&a<=8061||a>=8064&&a<=8116||a>=8118&&a<=8124||8126==a||a>=8130&&a<=8132||a>=8134&&a<=8140||a>=8144&&a<=8147||a>=8150&&a<=8155||a>=8160&&a<=8172||a>=8178&&a<=8180||a>=8182&&a<=8188||8486==a||a>=8490&&a<=8491||8494==a||a>=8576&&a<=8578||a>=12353&&a<=12436||a>=12449&&a<=12538||a>=12549&&a<=12588||a>=44032&&a<=55203||a>=19968&&a<=40869||12295==a||a>=12321&&a<=12329},ai.isNCNameChar=function(a){return a>=48&&a<=57||a>=1632&&a<=1641||a>=1776&&a<=1785||a>=2406&&a<=2415||a>=2534&&a<=2543||a>=2662&&a<=2671||a>=2790&&a<=2799||a>=2918&&a<=2927||a>=3047&&a<=3055||a>=3174&&a<=3183||a>=3302&&a<=3311||a>=3430&&a<=3439||a>=3664&&a<=3673||a>=3792&&a<=3801||a>=3872&&a<=3881||46==a||45==a||95==a||ai.isLetter(a)||a>=768&&a<=837||a>=864&&a<=865||a>=1155&&a<=1158||a>=1425&&a<=1441||a>=1443&&a<=1465||a>=1467&&a<=1469||1471==a||a>=1473&&a<=1474||1476==a||a>=1611&&a<=1618||1648==a||a>=1750&&a<=1756||a>=1757&&a<=1759||a>=1760&&a<=1764||a>=1767&&a<=1768||a>=1770&&a<=1773||a>=2305&&a<=2307||2364==a||a>=2366&&a<=2380||2381==a||a>=2385&&a<=2388||a>=2402&&a<=2403||a>=2433&&a<=2435||2492==a||2494==a||2495==a||a>=2496&&a<=2500||a>=2503&&a<=2504||a>=2507&&a<=2509||2519==a||a>=2530&&a<=2531||2562==a||2620==a||2622==a||2623==a||a>=2624&&a<=2626||a>=2631&&a<=2632||a>=2635&&a<=2637||a>=2672&&a<=2673||a>=2689&&a<=2691||2748==a||a>=2750&&a<=2757||a>=2759&&a<=2761||a>=2763&&a<=2765||a>=2817&&a<=2819||2876==a||a>=2878&&a<=2883||a>=2887&&a<=2888||a>=2891&&a<=2893||a>=2902&&a<=2903||a>=2946&&a<=2947||a>=3006&&a<=3010||a>=3014&&a<=3016||a>=3018&&a<=3021||3031==a||a>=3073&&a<=3075||a>=3134&&a<=3140||a>=3142&&a<=3144||a>=3146&&a<=3149||a>=3157&&a<=3158||a>=3202&&a<=3203||a>=3262&&a<=3268||a>=3270&&a<=3272||a>=3274&&a<=3277||a>=3285&&a<=3286||a>=3330&&a<=3331||a>=3390&&a<=3395||a>=3398&&a<=3400||a>=3402&&a<=3405||3415==a||3633==a||a>=3636&&a<=3642||a>=3655&&a<=3662||3761==a||a>=3764&&a<=3769||a>=3771&&a<=3772||a>=3784&&a<=3789||a>=3864&&a<=3865||3893==a||3895==a||3897==a||3902==a||3903==a||a>=3953&&a<=3972||a>=3974&&a<=3979||a>=3984&&a<=3989||3991==a||a>=3993&&a<=4013||a>=4017&&a<=4023||4025==a||a>=8400&&a<=8412||8417==a||a>=12330&&a<=12335||12441==a||12442==a||183==a||720==a||721==a||903==a||1600==a||3654==a||3782==a||12293==a||a>=12337&&a<=12341||a>=12445&&a<=12446||a>=12540&&a<=12542},ai.coalesceText=function(a){for(var b=a.firstChild;null!=b;b=b.nextSibling)if(3==b.nodeType||4==b.nodeType){var c=b.nodeValue,d=b;for(b=b.nextSibling;null!=b&&(3==b.nodeType||4==b.nodeType);){c+=b.nodeValue;var e=b;b=b.nextSibling,e.parentNode.removeChild(e)}if(4==d.nodeType){var f=d.parentNode;if(null==d.nextSibling)f.removeChild(d),f.appendChild(f.ownerDocument.createTextNode(c));else{var g=d.nextSibling;f.removeChild(d),f.insertBefore(f.ownerDocument.createTextNode(c),g)}}else d.nodeValue=c;if(null==b)break}else 1==b.nodeType&&ai.coalesceText(b)},ai.instance_of=function(a,b){for(;null!=a;){if(a.constructor===b)return!0;if(a===Object)break;a=a.constructor.superclass}return!1},ai.getElementById=function(a,b){if(1==a.nodeType&&(a.getAttribute("id")==b||a.getAttributeNS(null,"id")==b))return a;for(var c=a.firstChild;null!=c;c=c.nextSibling){var d=ai.getElementById(c,b);if(null!=d)return d}return null};var ak=function(){function a(b,c,d){var e=Error.call(this,function(b,c){var d=c?": "+c.toString():"";switch(b){case a.INVALID_EXPRESSION_ERR:return"Invalid expression"+d;case a.TYPE_ERR:return"Type error"+d}return null}(b,c)||d);return e.code=b,e.exception=c,e}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.superclass=Error,a.prototype.toString=function(){return this.message},a.fromMessage=function(b,c){return new a(null,c,b)},a.INVALID_EXPRESSION_ERR=51,a.TYPE_ERR=52,a}();function al(a,b,c){this.xpath=c.parse(a),this.context=new ad,this.context.namespaceResolver=new am(b)}function am(a){this.xpathNSResolver=a}function an(a){this.node=a,this.namespaceResolver=new ag}function ao(a,b){switch(b==ao.ANY_TYPE&&(a.constructor===Z?b=ao.STRING_TYPE:a.constructor===$?b=ao.NUMBER_TYPE:a.constructor===_?b=ao.BOOLEAN_TYPE:a.constructor===ab&&(b=ao.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=b,b){case ao.NUMBER_TYPE:this.numberValue=a.numberValue();return;case ao.STRING_TYPE:this.stringValue=a.stringValue();return;case ao.BOOLEAN_TYPE:this.booleanValue=a.booleanValue();return;case ao.ANY_UNORDERED_NODE_TYPE:case ao.FIRST_ORDERED_NODE_TYPE:if(a.constructor===ab){this.singleNodeValue=a.first();return}break;case ao.UNORDERED_NODE_ITERATOR_TYPE:case ao.ORDERED_NODE_ITERATOR_TYPE:if(a.constructor===ab){this.invalidIteratorState=!1,this.nodes=a.toArray(),this.iteratorIndex=0;return}break;case ao.UNORDERED_NODE_SNAPSHOT_TYPE:case ao.ORDERED_NODE_SNAPSHOT_TYPE:if(a.constructor===ab){this.nodes=a.toArray(),this.snapshotLength=this.nodes.length;return}}throw new ak(ak.TYPE_ERR)}function ap(a,b){a.createExpression=function(a,c){try{return new al(a,c,b)}catch(a){throw new ak(ak.INVALID_EXPRESSION_ERR,a)}},a.createNSResolver=function(a){return new an(a)},a.evaluate=function(c,d,e,f,g){if(f<0||f>9)throw{code:0,toString:function(){return"Request type not supported"}};return a.createExpression(c,e,b).evaluate(d,f,g)}}al.prototype={},al.prototype.constructor=al,al.superclass=Object.prototype,al.getOwnerDocument=function(a){return 9===a.nodeType?a:a.ownerDocument},al.detectHtmlDom=function(a){if(!a)return!1;var b=al.getOwnerDocument(a);try{return b.implementation.hasFeature("HTML","2.0")}catch(a){return!0}},al.prototype.evaluate=function(a,b,c){return this.context.expressionContextNode=a,this.context.caseInsensitive=al.detectHtmlDom(a),new ao(this.xpath.evaluate(this.context),b)},am.prototype={},am.prototype.constructor=am,am.superclass=Object.prototype,am.prototype.getNamespace=function(a,b){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(a)},an.prototype={},an.prototype.constructor=an,an.superclass=Object.prototype,an.prototype.lookupNamespaceURI=function(a){return this.namespaceResolver.getNamespace(a,this.node)},ao.prototype={},ao.prototype.constructor=ao,ao.superclass=Object.prototype,ao.prototype.iterateNext=function(){if(this.resultType!=ao.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=ao.ORDERED_NODE_ITERATOR_TYPE)throw new ak(ak.TYPE_ERR);return this.nodes[this.iteratorIndex++]},ao.prototype.snapshotItem=function(a){if(this.resultType!=ao.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=ao.ORDERED_NODE_SNAPSHOT_TYPE)throw new ak(ak.TYPE_ERR);return this.nodes[a]},ao.ANY_TYPE=0,ao.NUMBER_TYPE=1,ao.STRING_TYPE=2,ao.BOOLEAN_TYPE=3,ao.UNORDERED_NODE_ITERATOR_TYPE=4,ao.ORDERED_NODE_ITERATOR_TYPE=5,ao.UNORDERED_NODE_SNAPSHOT_TYPE=6,ao.ORDERED_NODE_SNAPSHOT_TYPE=7,ao.ANY_UNORDERED_NODE_TYPE=8,ao.FIRST_ORDERED_NODE_TYPE=9;try{var aq=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(aq=!1)}catch(a){}aq&&ap(document,new s)}catch(a){}ap(a,new s),function(){var b=new s,c=new ag,d=new af,e=new ae;function f(a){return{getNamespace:function(b,d){return a(b,d)||c.getNamespace(b,d)}}}function g(a){if(null==a||a instanceof Z||a instanceof _||a instanceof $||a instanceof ab)return a;switch(typeof a){case"string":return new Z(a);case"boolean":return new _(a);case"number":return new $(a)}var b=new ab;return b.addArray([].concat(a)),b}function h(a){return{getFunction:function(b,c){var e=a(b,c);return e?function(a){var b=Array.prototype.slice.call(arguments,1).map(function(b){return b.evaluate(a)});return g(e.apply(this,[].concat(a,b)))}:d.getFunction(b,c)}}}function i(a){return{getVariable:function(b,c){return g(a(b,c))}}}function j(a,b,c){a in c&&(b[a]=c[a])}var k={evaluate:function(a){var b,g,k;return b=this.expression,g=new ad,a?(g.namespaceResolver=function(a){return a&&"function"==typeof a.getNamespace?f(a.getNamespace.bind(a)):"function"==typeof a?f(a):"object"==typeof a?f(function(b){return a[b]}):c}(a.namespaces),g.functionResolver=function(a){return a&&"function"==typeof a.getFunction?h(a.getFunction.bind(a)):"function"==typeof a?h(a):"object"==typeof a?h(function(b){return a[b]}):d}(a.functions),g.variableResolver=function(a){if(a){if("function"==typeof a.getVariable)return i(a.getVariable.bind(a));if("function"==typeof a)return i(a);if("object"==typeof a)return i(function(b){return a[b]})}return e}(a.variables),g.expressionContextNode=a.node,j("allowAnyNamespaceForNoPrefix",g,a),j("isHtml",g,a)):g.namespaceResolver=c,k=g,b.evaluate(k)},evaluateNumber:function(a){return this.evaluate(a).numberValue()},evaluateString:function(a){return this.evaluate(a).stringValue()},evaluateBoolean:function(a){return this.evaluate(a).booleanValue()},evaluateNodeSet:function(a){return this.evaluate(a).nodeset()},select:function(a){return this.evaluateNodeSet(a).toArray()},select1:function(a){return this.select(a)[0]}};a.parse=function(a){return Object.create(k,{expression:{value:b.parse(a)}})}}(),r(a,{XPath:t,XPathParser:s,XPathResult:ao,Step:T,PathExpr:N,NodeTest:V,LocationPath:S,OrOperation:z,AndOperation:A,BarOperation:M,EqualsOperation:B,NotEqualOperation:C,LessThanOperation:D,GreaterThanOperation:E,LessThanOrEqualOperation:F,GreaterThanOrEqualOperation:G,PlusOperation:H,MinusOperation:I,MultiplyOperation:J,DivOperation:K,ModOperation:L,UnaryMinusOperation:x,FunctionCall:X,VariableReference:W,XPathContext:ad,XNodeSet:ab,XBoolean:_,XString:Z,XNumber:$,NamespaceResolver:ag,FunctionResolver:af,VariableResolver:ae,Utilities:ai}),a.select=function(b,c,d){return a.selectWithResolver(b,c,null,d)},a.useNamespaces=function(b){var c={mappings:b||{},lookupNamespaceURI:function(a){return this.mappings[a]}};return function(b,d,e){return a.selectWithResolver(b,d,c,e)}},a.selectWithResolver=function(a,b,c,d){var e=new al(a,c,new s),f=ao.ANY_TYPE,g=e.evaluate(b,f,null);return g.resultType==ao.STRING_TYPE?g=g.stringValue:g.resultType==ao.NUMBER_TYPE?g=g.numberValue:g.resultType==ao.BOOLEAN_TYPE?g=g.booleanValue:(g=g.nodes,d&&(g=g[0])),g},a.select1=function(b,c){return a.select(b,c,!0)};var ar=function(a){return function(b){return g(b)&&b.nodeType===a}};r(a,{isNodeLike:g,isArrayOfNodes:function(a){return Array.isArray(a)&&a.every(g)},isElement:ar(1),isAttribute:ar(2),isTextNode:ar(3),isCDATASection:ar(4),isProcessingInstruction:ar(7),isComment:ar(8),isDocumentNode:ar(9),isDocumentTypeNode:ar(10),isDocumentFragment:ar(11)})}(b)},32748:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.HmacSha1=b.RsaSha512=b.RsaSha256=b.RsaSha1=void 0;let d=c(55511),e=c(75546);class f{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createSign("RSA-SHA1");return c.update(a),c.sign(b,"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createVerify("RSA-SHA1");return e.update(a),e.verify(b,c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#rsa-sha1"}}b.RsaSha1=f;class g{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createSign("RSA-SHA256");return c.update(a),c.sign(b,"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createVerify("RSA-SHA256");return e.update(a),e.verify(b,c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"}}b.RsaSha256=g;class h{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createSign("RSA-SHA512");return c.update(a),c.sign(b,"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createVerify("RSA-SHA512");return e.update(a),e.verify(b,c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"}}b.RsaSha512=h;class i{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createHmac("SHA1",b);return c.update(a),c.digest("base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createHmac("SHA1",b);return e.update(a),e.digest("base64")===c}),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#hmac-sha1"}}b.HmacSha1=i},33773:function(a,b,c){(function(){var b,d,e,f,g,h,i,j;({isObject:j}=c(43594)),i=c(73067),b=c(26468),d=c(77192),f=c(71920),e=c(1243),g=c(48813),h=c(87074),a.exports=(function(){class a extends i{constructor(a,c,d){var e,f,g,h;if(super(a),this.type=b.DocType,a.children){for(f=0,g=(h=a.children).length;f<g;f++)if((e=h[f]).type===b.Element){this.name=e.name;break}}this.documentObject=a,j(c)&&({pubID:c,sysID:d}=c),null==d&&([d,c]=[c,d]),null!=c&&(this.pubID=this.stringify.dtdPubID(c)),null!=d&&(this.sysID=this.stringify.dtdSysID(d))}element(a,b){var c;return c=new e(this,a,b),this.children.push(c),this}attList(a,b,c,e,f){var g;return g=new d(this,a,b,c,e,f),this.children.push(g),this}entity(a,b){var c;return c=new f(this,!1,a,b),this.children.push(c),this}pEntity(a,b){var c;return c=new f(this,!0,a,b),this.children.push(c),this}notation(a,b){var c;return c=new g(this,a,b),this.children.push(c),this}toString(a){return this.options.writer.docType(this,this.options.writer.filterOptions(a))}ele(a,b){return this.element(a,b)}att(a,b,c,d,e){return this.attList(a,b,c,d,e)}ent(a,b){return this.entity(a,b)}pent(a,b){return this.pEntity(a,b)}not(a,b){return this.notation(a,b)}up(){return this.root()||this.documentObject}isEqualNode(a){return!!super.isEqualNode(a)&&a.name===this.name&&a.publicId===this.publicId&&a.systemId===this.systemId}}return Object.defineProperty(a.prototype,"entities",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type!==b.EntityDeclaration||a.pe||(e[a.name]=a);return new h(e)}}),Object.defineProperty(a.prototype,"notations",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type===b.NotationDeclaration&&(e[a.name]=a);return new h(e)}}),Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(a.prototype,"internalSubset",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),a}).call(this)}).call(this)},34153:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.signSamlPost=e,b.signAuthnRequestPost=function(a,b){return e(a,'/*[local-name(.)="AuthnRequest" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:protocol"]',b)};let d=c(65756);function e(a,b,c){return(0,d.signXml)(a,b,{reference:b+'/*[local-name(.)="Issuer" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:assertion"]',action:"after"},c)}},34370:function(a){(function(){a.exports=(function(){class a{constructor(a){this.arr=a||[]}item(a){return this.arr[a]||null}contains(a){return -1!==this.arr.indexOf(a)}}return Object.defineProperty(a.prototype,"length",{get:function(){return this.arr.length}}),a}).call(this)}).call(this)},35312:(a,b)=>{"use strict";var c,d;Object.defineProperty(b,"__esModule",{value:!0}),b.SamlStatusError=b.ValidateInResponseTo=b.isValidSamlSigningOptions=void 0,b.isValidSamlSigningOptions=a=>null!=a.privateKey,(d=c||(b.ValidateInResponseTo=c={})).never="never",d.ifPresent="ifPresent",d.always="always";class e extends Error{constructor(a,b){super(a),this.xmlStatus=b}}b.SamlStatusError=e},35387:(a,b,c)=>{a.exports=c(91848)},35971:function(a){(function(){a.exports=function(){function a(){}return a.prototype.hasFeature=function(a,b){return!0},a.prototype.createDocumentType=function(a,b,c){throw Error("This DOM method is not implemented.")},a.prototype.createDocument=function(a,b,c){throw Error("This DOM method is not implemented.")},a.prototype.createHTMLDocument=function(a){throw Error("This DOM method is not implemented.")},a.prototype.getFeature=function(a,b){throw Error("This DOM method is not implemented.")},a}()}).call(this)},36481:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.assertRequired=function(a,b){if(null==a||"string"==typeof a&&0===a.length)throw TypeError(null!=b?b:"value does not exist")},b.assertBooleanIfPresent=function(a,b){if(null!=a&&"boolean"!=typeof a)throw TypeError(null!=b?b:"value is set but not boolean")},b.signXmlResponse=function(a,b){let c='//*[local-name(.)="Response" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:protocol"]';return(0,d.signXml)(a,c,{reference:c,action:"append"},b)},b.signXmlMetadata=function(a,b){let c='//*[local-name(.)="EntityDescriptor" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:metadata"]';return(0,d.signXml)(a,c,{reference:c,action:"prepend"},b)};let d=c(65756)},36700:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(d)}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))},c}(c(92478))}).call(this)},41892:(a,b,c)=>{"use strict";let d,e=c(21820),f=c(83997),g=c(92535),{env:h}=process;function i(a){return 0!==a&&{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}function j(a,b){if(0===d)return 0;if(g("color=16m")||g("color=full")||g("color=truecolor"))return 3;if(g("color=256"))return 2;if(a&&!b&&void 0===d)return 0;let c=d||0;if("dumb"===h.TERM)return c;if("win32"===process.platform){let a=e.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in h)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(a=>a in h)||"codeship"===h.CI_NAME?1:c;if("TEAMCITY_VERSION"in h)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(h.TEAMCITY_VERSION);if("truecolor"===h.COLORTERM)return 3;if("TERM_PROGRAM"in h){let a=parseInt((h.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(h.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(h.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(h.TERM)||"COLORTERM"in h?1:c}g("no-color")||g("no-colors")||g("color=false")||g("color=never")?d=0:(g("color")||g("colors")||g("color=true")||g("color=always"))&&(d=1),"FORCE_COLOR"in h&&(d="true"===h.FORCE_COLOR?1:"false"===h.FORCE_COLOR?0:0===h.FORCE_COLOR.length?1:Math.min(parseInt(h.FORCE_COLOR,10),3)),a.exports={supportsColor:function(a){return i(j(a,a&&a.isTTY))},stdout:i(j(!0,f.isatty(1))),stderr:i(j(!0,f.isatty(2)))}},42429:(a,b)=>{!function(a){"use strict";var b,c,d,e,f=function(a,b){for(var c=0;c<b.length;c+=1)a(b[c],c,b)},g=function(a,b,c){var d=b;return f(function(b,c){d=a(d,b,c)},c),d},h=function(a,b){var c=Array(b.length);return f(function(b,d){c[d]=a(b)},b),c},i=function(a,b){var c=[];return f(function(b,d){a(b,d)&&c.push(b)},b),c},j=function(a,b){for(var c=0;c<a.length;c+=1)if(a[c]===b)return!0;return!1};function k(a){return a.toString()}var l=function(a,b){return b.join(a)},m=function(a,b,c){return a+c+b},n=Array.prototype.concat;function o(a,b){for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(c[f]=e[f])}return c}function p(){this.init()}function q(a){this.expression=a}function r(a,b,c){b in a||(a[b]=c)}function s(){}function t(a){arguments.length>0&&this.init(a)}function u(a){arguments.length>0&&this.init(a)}function v(a,b){arguments.length>0&&this.init(a,b)}function w(a,b){arguments.length>0&&this.init(a,b)}function x(a,b){arguments.length>0&&this.init(a,b)}function y(a,b){arguments.length>0&&this.init(a,b)}function z(a,b){arguments.length>0&&this.init(a,b)}function A(a,b){arguments.length>0&&this.init(a,b)}function B(a,b){arguments.length>0&&this.init(a,b)}function C(a,b){arguments.length>0&&this.init(a,b)}function D(a,b){arguments.length>0&&this.init(a,b)}function E(a,b){arguments.length>0&&this.init(a,b)}function F(a,b){arguments.length>0&&this.init(a,b)}function G(a,b){arguments.length>0&&this.init(a,b)}function H(a,b){arguments.length>0&&this.init(a,b)}function I(a,b){arguments.length>0&&this.init(a,b)}function J(a,b){arguments.length>0&&this.init(a,b)}function K(a,b,c){arguments.length>0&&this.init(a,b,c)}function L(a,b,c){return K.applyPredicates(a.predicates,b,K.applyStep(a,b,c))}function M(a,b,c){return function(a){for(var b=[],c=0;c<a.length;c+=32767){var d=a.slice(c,c+32767);b=n.apply(b,d)}return b}(h(L.bind(null,c,a),b))}function N(a,b){arguments.length>0&&this.init(a,b)}function O(a,b,c){arguments.length>0&&this.init(a,b,c)}function P(a,b){arguments.length>0&&this.init(a,b)}function Q(a){arguments.length>0&&this.init(a)}function R(a,b){arguments.length>0&&this.init(a,b)}p.prototype={},p.prototype.constructor=p,p.superclass=Object.prototype,p.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(a){return new w(a[0],a[2])},this.reduceActions[5]=function(a){return new x(a[0],a[2])},this.reduceActions[7]=function(a){return new y(a[0],a[2])},this.reduceActions[8]=function(a){return new z(a[0],a[2])},this.reduceActions[10]=function(a){return new A(a[0],a[2])},this.reduceActions[11]=function(a){return new B(a[0],a[2])},this.reduceActions[12]=function(a){return new C(a[0],a[2])},this.reduceActions[13]=function(a){return new D(a[0],a[2])},this.reduceActions[15]=function(a){return new E(a[0],a[2])},this.reduceActions[16]=function(a){return new F(a[0],a[2])},this.reduceActions[18]=function(a){return new G(a[0],a[2])},this.reduceActions[19]=function(a){return new H(a[0],a[2])},this.reduceActions[20]=function(a){return new I(a[0],a[2])},this.reduceActions[22]=function(a){return new u(a[1])},this.reduceActions[24]=function(a){return new J(a[0],a[2])},this.reduceActions[25]=function(a){return new K(void 0,void 0,a[0])},this.reduceActions[27]=function(a){return a[0].locationPath=a[2],a[0]},this.reduceActions[28]=function(a){return a[0].locationPath=a[2],a[0].locationPath.steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0]},this.reduceActions[29]=function(a){return new K(a[0],[],void 0)},this.reduceActions[30]=function(a){return ac.instance_of(a[0],K)?(void 0==a[0].filterPredicates&&(a[0].filterPredicates=[]),a[0].filterPredicates.push(a[1]),a[0]):new K(a[0],[a[1]],void 0)},this.reduceActions[32]=function(a){return a[1]},this.reduceActions[33]=function(a){return new T(a[0])},this.reduceActions[34]=function(a){return new U(a[0])},this.reduceActions[36]=function(a){return new R(a[0],[])},this.reduceActions[37]=function(a){return new R(a[0],a[2])},this.reduceActions[38]=function(a){return[a[0]]},this.reduceActions[39]=function(a){return a[2].unshift(a[0]),a[2]},this.reduceActions[43]=function(a){return new N(!0,[])},this.reduceActions[44]=function(a){return a[1].absolute=!0,a[1]},this.reduceActions[46]=function(a){return new N(!1,[a[0]])},this.reduceActions[47]=function(a){return a[0].steps.push(a[2]),a[0]},this.reduceActions[49]=function(a){return new O(a[0],a[1],[])},this.reduceActions[50]=function(a){return new O(O.CHILD,a[0],[])},this.reduceActions[51]=function(a){return new O(a[0],a[1],a[2])},this.reduceActions[52]=function(a){return new O(O.CHILD,a[0],a[1])},this.reduceActions[54]=function(a){return[a[0]]},this.reduceActions[55]=function(a){return a[1].unshift(a[0]),a[1]},this.reduceActions[56]=function(a){if("ancestor"==a[0])return O.ANCESTOR;if("ancestor-or-self"==a[0])return O.ANCESTORORSELF;if("attribute"==a[0])return O.ATTRIBUTE;if("child"==a[0])return O.CHILD;if("descendant"==a[0])return O.DESCENDANT;else if("descendant-or-self"==a[0])return O.DESCENDANTORSELF;else if("following"==a[0])return O.FOLLOWING;else if("following-sibling"==a[0])return O.FOLLOWINGSIBLING;else if("namespace"==a[0])return O.NAMESPACE;else if("parent"==a[0])return O.PARENT;else if("preceding"==a[0])return O.PRECEDING;else if("preceding-sibling"==a[0])return O.PRECEDINGSIBLING;else if("self"==a[0])return O.SELF;return -1},this.reduceActions[57]=function(a){return O.ATTRIBUTE},this.reduceActions[59]=function(a){return"comment"==a[0]?P.commentTest:"text"==a[0]?P.textTest:"processing-instruction"==a[0]?P.anyPiTest:"node"==a[0]?P.nodeTest:new P(-1,void 0)},this.reduceActions[60]=function(a){return new P.PITest(a[2])},this.reduceActions[61]=function(a){return a[1]},this.reduceActions[63]=function(a){return a[1].absolute=!0,a[1].steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[1]},this.reduceActions[64]=function(a){return a[0].steps.push(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0].steps.push(a[2]),a[0]},this.reduceActions[65]=function(a){return new O(O.SELF,P.nodeTest,[])},this.reduceActions[66]=function(a){return new O(O.PARENT,P.nodeTest,[])},this.reduceActions[67]=function(a){return new Q(a[1])},this.reduceActions[68]=function(a){return P.nameTestAny},this.reduceActions[69]=function(a){return new P.NameTestPrefixAny(a[0].split(":")[0])},this.reduceActions[70]=function(a){return new P.NameTestQName(a[0])}},p.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],p.actionTableNumber=[" 1 0 /.-,+*)(' & %$ # \"!"," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY "," 1 0 /.-,+*)(' & %$ # \"!","K1 KKKKKKKK . +*)('KKKKKK KK# K\" "," 1 0 /.-,+*)(' & %$ # \"!"," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q "," 1 . +*)(' # \" ","b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX "," 1 0 /.-,+*)(' & %$m # \"!","_ f________ ______e __ _ "," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 . +*)(' # \" "," 1 . +*)(' # \" ","> >>>>>>>>> >>>>>>> >> >> "," 1 . +*)(' # \" "," 1 . +*)(' # \" ","Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," \x87 ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," \x88 "," F\x89 ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," \x8a ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE "," 1 0 /.-,+*)(' & %$ # \"!","] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],p.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","\x80456789:;<=>?@ AB CDEFGH IJ\x81"," \x82 EFGH IJ "," \x83 EFGH IJ "," "," \x84 GH IJ "," \x85 GH IJ "," i \x86 "," i \x87 "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ AB\x8cqCDEFGH IJ "," "," "],p.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],p.DOUBLEDOT=2,p.DOUBLECOLON=3,p.DOUBLESLASH=4,p.NOTEQUAL=5,p.LESSTHANOREQUAL=6,p.GREATERTHANOREQUAL=7,p.AND=8,p.OR=9,p.MOD=10,p.DIV=11,p.MULTIPLYOPERATOR=12,p.FUNCTIONNAME=13,p.AXISNAME=14,p.LITERAL=15,p.NUMBER=16,p.ASTERISKNAMETEST=17,p.QNAME=18,p.NCNAMECOLONASTERISK=19,p.NODETYPE=20,p.PROCESSINGINSTRUCTIONWITHLITERAL=21,p.EQUALS=22,p.LESSTHAN=23,p.GREATERTHAN=24,p.PLUS=25,p.MINUS=26,p.BAR=27,p.SLASH=28,p.LEFTPARENTHESIS=29,p.RIGHTPARENTHESIS=30,p.COMMA=31,p.AT=32,p.LEFTBRACKET=33,p.RIGHTBRACKET=34,p.DOT=35,p.DOLLAR=36,p.prototype.tokenize=function(a){for(var b=[],c=[],d=a+"\0",e=0,f=d.charAt(e++);;){for(;" "==f||" "==f||"\r"==f||"\n"==f;)f=d.charAt(e++);if("\0"==f||e>=d.length)break;if("("==f){b.push(p.LEFTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if(")"==f){b.push(p.RIGHTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if("["==f){b.push(p.LEFTBRACKET),c.push(f),f=d.charAt(e++);continue}if("]"==f){b.push(p.RIGHTBRACKET),c.push(f),f=d.charAt(e++);continue}if("@"==f){b.push(p.AT),c.push(f),f=d.charAt(e++);continue}if(","==f){b.push(p.COMMA),c.push(f),f=d.charAt(e++);continue}if("|"==f){b.push(p.BAR),c.push(f),f=d.charAt(e++);continue}if("+"==f){b.push(p.PLUS),c.push(f),f=d.charAt(e++);continue}if("-"==f){b.push(p.MINUS),c.push(f),f=d.charAt(e++);continue}if("="==f){b.push(p.EQUALS),c.push(f),f=d.charAt(e++);continue}if("$"==f){b.push(p.DOLLAR),c.push(f),f=d.charAt(e++);continue}if("."==f){if("."==(f=d.charAt(e++))){b.push(p.DOUBLEDOT),c.push(".."),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g="."+f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}b.push(p.DOT),c.push(".");continue}if("'"==f||'"'==f){for(var h=f,i="";e<d.length&&(f=d.charAt(e))!==h;)i+=f,e+=1;if(f!==h)throw ad.fromMessage("Unterminated string literal: "+h+i);e+=1,b.push(p.LITERAL),c.push(i),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g=f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);if("."==f&&d.charAt(e)>="0"&&"9">=d.charAt(e))for(g+=f,g+=d.charAt(e++),f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}if("*"==f){if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){b.push(p.MULTIPLYOPERATOR),c.push(f),f=d.charAt(e++);continue}}b.push(p.ASTERISKNAMETEST),c.push(f),f=d.charAt(e++);continue}if(":"==f&&":"==d.charAt(e)){b.push(p.DOUBLECOLON),c.push("::"),e++,f=d.charAt(e++);continue}if("/"==f){if("/"==(f=d.charAt(e++))){b.push(p.DOUBLESLASH),c.push("//"),f=d.charAt(e++);continue}b.push(p.SLASH),c.push("/");continue}if("!"==f&&"="==d.charAt(e)){b.push(p.NOTEQUAL),c.push("!="),e++,f=d.charAt(e++);continue}if("<"==f){if("="==d.charAt(e)){b.push(p.LESSTHANOREQUAL),c.push("<="),e++,f=d.charAt(e++);continue}b.push(p.LESSTHAN),c.push("<"),f=d.charAt(e++);continue}if(">"==f){if("="==d.charAt(e)){b.push(p.GREATERTHANOREQUAL),c.push(">="),e++,f=d.charAt(e++);continue}b.push(p.GREATERTHAN),c.push(">"),f=d.charAt(e++);continue}if("_"==f||ac.isLetter(f.charCodeAt(0))){var k=f;for(f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){if("and"==k){b.push(p.AND),c.push(k);continue}if("or"==k){b.push(p.OR),c.push(k);continue}if("mod"==k){b.push(p.MOD),c.push(k);continue}if("div"==k){b.push(p.DIV),c.push(k);continue}}}if(":"==f){if("*"==d.charAt(e)){b.push(p.NCNAMECOLONASTERISK),c.push(k+":*"),e++,f=d.charAt(e++);continue}if("_"==d.charAt(e)||ac.isLetter(d.charCodeAt(e))){for(k+=":",f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if("("==f){b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}if(":"==d.charAt(e)){b.push(p.AXISNAME),c.push(k);continue}}if("("==f){if("comment"==k||"text"==k||"node"==k){b.push(p.NODETYPE),c.push(k);continue}if("processing-instruction"==k){")"==d.charAt(e)?b.push(p.NODETYPE):b.push(p.PROCESSINGINSTRUCTIONWITHLITERAL),c.push(k);continue}b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}throw Error("Unexpected character "+f)}return b.push(1),c.push("[EOF]"),[b,c]},p.SHIFT="s",p.REDUCE="r",p.ACCEPT="a",p.prototype.parse=function(a){var b,c,d,e,f=this.tokenize(a);if(void 0!=f){b=f[0],c=f[1];var g=0,h=[],i=[],j=[];for(h.push(0),i.push(1),j.push("_S"),d=b[g],e=c[g++];;)switch(a=h[h.length-1],p.actionTable[a].charAt(d-1)){case p.SHIFT:i.push(-d),j.push(e),h.push(p.actionTableNumber[a].charCodeAt(d-1)-32),d=b[g],e=c[g++];break;case p.REDUCE:for(var k=p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][1],l=[],m=0;m<k;m++)i.pop(),l.unshift(j.pop()),h.pop();var n=h[h.length-1];i.push(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]),void 0==this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32]?j.push(l[0]):j.push(this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32](l)),h.push(p.gotoTable[n].charCodeAt(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]-2)-33);break;case p.ACCEPT:return new q(j.pop());default:throw Error("XPath parse error")}}},q.prototype={},q.prototype.constructor=q,q.superclass=Object.prototype,q.prototype.toString=function(){return this.expression.toString()},q.prototype.evaluate=function(a){return a.contextNode=a.expressionContextNode,a.contextSize=1,a.contextPosition=1,a.isHtml&&(r(a,"caseInsensitive",!0),r(a,"allowAnyNamespaceForNoPrefix",!0)),r(a,"caseInsensitive",!1),this.expression.evaluate(a)},q.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",q.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",s.prototype={},s.prototype.constructor=s,s.superclass=Object.prototype,s.prototype.init=function(){},s.prototype.toString=function(){return"<Expression>"},s.prototype.evaluate=function(a){throw Error("Could not evaluate expression.")},t.prototype=new s,t.prototype.constructor=t,t.superclass=s.prototype,t.prototype.init=function(a){this.rhs=a},u.prototype=new t,u.prototype.constructor=u,u.superclass=t.prototype,u.prototype.init=function(a){u.superclass.init.call(this,a)},u.prototype.evaluate=function(a){return this.rhs.evaluate(a).number().negate()},u.prototype.toString=function(){return"-"+this.rhs.toString()},v.prototype=new s,v.prototype.constructor=v,v.superclass=s.prototype,v.prototype.init=function(a,b){this.lhs=a,this.rhs=b},w.prototype=new v,w.prototype.constructor=w,w.superclass=v.prototype,w.prototype.init=function(a,b){w.superclass.init.call(this,a,b)},w.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},w.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?b:this.rhs.evaluate(a).bool()},x.prototype=new v,x.prototype.constructor=x,x.superclass=v.prototype,x.prototype.init=function(a,b){x.superclass.init.call(this,a,b)},x.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},x.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?this.rhs.evaluate(a).bool():b},y.prototype=new v,y.prototype.constructor=y,y.superclass=v.prototype,y.prototype.init=function(a,b){y.superclass.init.call(this,a,b)},y.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},y.prototype.evaluate=function(a){return this.lhs.evaluate(a).equals(this.rhs.evaluate(a))},z.prototype=new v,z.prototype.constructor=z,z.superclass=v.prototype,z.prototype.init=function(a,b){z.superclass.init.call(this,a,b)},z.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},z.prototype.evaluate=function(a){return this.lhs.evaluate(a).notequal(this.rhs.evaluate(a))},A.prototype=new v,A.prototype.constructor=A,A.superclass=v.prototype,A.prototype.init=function(a,b){A.superclass.init.call(this,a,b)},A.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthan(this.rhs.evaluate(a))},A.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},B.prototype=new v,B.prototype.constructor=B,B.superclass=v.prototype,B.prototype.init=function(a,b){B.superclass.init.call(this,a,b)},B.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthan(this.rhs.evaluate(a))},B.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},C.prototype=new v,C.prototype.constructor=C,C.superclass=v.prototype,C.prototype.init=function(a,b){C.superclass.init.call(this,a,b)},C.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthanorequal(this.rhs.evaluate(a))},C.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},D.prototype=new v,D.prototype.constructor=D,D.superclass=v.prototype,D.prototype.init=function(a,b){D.superclass.init.call(this,a,b)},D.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthanorequal(this.rhs.evaluate(a))},D.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},E.prototype=new v,E.prototype.constructor=E,E.superclass=v.prototype,E.prototype.init=function(a,b){E.superclass.init.call(this,a,b)},E.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().plus(this.rhs.evaluate(a).number())},E.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},F.prototype=new v,F.prototype.constructor=F,F.superclass=v.prototype,F.prototype.init=function(a,b){F.superclass.init.call(this,a,b)},F.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().minus(this.rhs.evaluate(a).number())},F.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},G.prototype=new v,G.prototype.constructor=G,G.superclass=v.prototype,G.prototype.init=function(a,b){G.superclass.init.call(this,a,b)},G.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().multiply(this.rhs.evaluate(a).number())},G.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},H.prototype=new v,H.prototype.constructor=H,H.superclass=v.prototype,H.prototype.init=function(a,b){H.superclass.init.call(this,a,b)},H.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().div(this.rhs.evaluate(a).number())},H.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},I.prototype=new v,I.prototype.constructor=I,I.superclass=v.prototype,I.prototype.init=function(a,b){I.superclass.init.call(this,a,b)},I.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().mod(this.rhs.evaluate(a).number())},I.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},J.prototype=new v,J.prototype.constructor=J,J.superclass=v.prototype,J.prototype.init=function(a,b){J.superclass.init.call(this,a,b)},J.prototype.evaluate=function(a){return this.lhs.evaluate(a).nodeset().union(this.rhs.evaluate(a).nodeset())},J.prototype.toString=function(){return h(k,[this.lhs,this.rhs]).join(" | ")},K.prototype=new s,K.prototype.constructor=K,K.superclass=s.prototype,K.prototype.init=function(a,b,c){K.superclass.init.call(this),this.filter=a,this.filterPredicates=b,this.locationPath=c},K.applyPredicates=function(a,b,c){if(0===a.length)return c;var d=b.extend({});return g(function(a,b){return d.contextSize=a.length,i(function(a,c){return d.contextNode=a,d.contextPosition=c+1,K.predicateMatches(b,d)},a)},c,a)},K.getRoot=function(a,b){var c=b[0];if(9===c.nodeType)return c;if(a.virtualRoot)return a.virtualRoot;var d=c.ownerDocument;if(d)return d;for(var e=c;null!=e.parentNode;)e=e.parentNode;return e},K.applyStep=function(a,b,c){var d,e,f=[];switch(b.contextNode=c,a.axis){case O.ANCESTOR:if(b.contextNode===b.virtualRoot)break;for(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);)d=d.parentNode;break;case O.ANCESTORORSELF:for(var d=b.contextNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);d=2==d.nodeType?K.getOwnerElement(d):d.parentNode);break;case O.ATTRIBUTE:var g=b.contextNode.attributes;if(null!=g)for(var h=0;h<g.length;h++){var d=g.item(h);a.nodeTest.matches(d,b)&&f.push(d)}break;case O.CHILD:for(var d=b.contextNode.firstChild;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.DESCENDANT:for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.DESCENDANTORSELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode);for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.FOLLOWING:if(b.contextNode===b.virtualRoot)break;var e=[];null!=b.contextNode.firstChild?e.unshift(b.contextNode.firstChild):e.unshift(b.contextNode.nextSibling);for(var d=b.contextNode.parentNode;null!=d&&9!=d.nodeType&&d!==b.virtualRoot;d=d.parentNode)e.unshift(d.nextSibling);do for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;while(e.length>0);break;case O.FOLLOWINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.nextSibling;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.NAMESPACE:var i={};if(1==b.contextNode.nodeType){i.xml=q.XML_NAMESPACE_URI,i.xmlns=q.XMLNS_NAMESPACE_URI;for(var d=b.contextNode;null!=d&&1==d.nodeType;d=d.parentNode)for(var h=0;h<d.attributes.length;h++){var j=d.attributes.item(h),k=String(j.name);if("xmlns"==k)void 0==i[""]&&(i[""]=j.value);else if(k.length>6&&"xmlns:"==k.substring(0,6)){var l=k.substring(6,k.length);void 0==i[l]&&(i[l]=j.value)}}for(var l in i){var m=new Y(l,i[l],b.contextNode);a.nodeTest.matches(m,b)&&f.push(m)}}break;case O.PARENT:d=null,b.contextNode!==b.virtualRoot&&(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode),null!=d&&a.nodeTest.matches(d,b)&&f.push(d);break;case O.PRECEDING:e=null!=b.virtualRoot?[b.virtualRoot]:[function(a){for(;a&&a.parentNode;)a=a.parentNode;return a}(b.contextNode)];a:for(;e.length>0;)for(var d=e.pop();null!=d;){if(d==b.contextNode)break a;a.nodeTest.matches(d,b)&&f.unshift(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling}break;case O.PRECEDINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.previousSibling;null!=d;d=d.previousSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.SELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode)}return f},K.applySteps=function(a,b,c){return g(M.bind(null,b),c,a)},K.prototype.applyFilter=function(a,b){if(!this.filter)return{nodes:[a.contextNode]};var c=this.filter.evaluate(a);if(!ac.instance_of(c,X)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:c}}return{nodes:K.applyPredicates(this.filterPredicates||[],b,c.toUnsortedArray())}},K.applyLocationPath=function(a,b,c){if(!a)return c;var d=a.absolute?[K.getRoot(b,c)]:c;return K.applySteps(a.steps,b,d)},K.prototype.evaluate=function(a){var b=o(new Z,a),c=this.applyFilter(a,b);if("nonNodes"in c)return c.nonNodes;var d=new X;return d.addArray(K.applyLocationPath(this.locationPath,b,c.nodes)),d},K.predicateMatches=function(a,b){var c=a.evaluate(b);return ac.instance_of(c,U)?b.contextPosition===c.numberValue():c.booleanValue()},K.predicateString=function(a){return m("[","]",a.toString())},K.predicatesString=function(a){return l("",h(K.predicateString,a))},K.prototype.toString=function(){if(void 0!=this.filter){var a=k(this.filter);return ac.instance_of(this.filter,T)?m("'","'",a):void 0!=this.filterPredicates&&this.filterPredicates.length?m("(",")",a)+K.predicatesString(this.filterPredicates):void 0!=this.locationPath?a+(this.locationPath.absolute?"":"/")+k(this.locationPath):a}return k(this.locationPath)},K.getOwnerElement=function(a){if(a.ownerElement)return a.ownerElement;try{if(a.selectSingleNode)return a.selectSingleNode("..")}catch(a){}for(var b=(9==a.nodeType?a:a.ownerDocument).getElementsByTagName("*"),c=0;c<b.length;c++)for(var d=b.item(c),e=d.attributes,f=0;f<e.length;f++)if(e.item(f)===a)return d;return null},N.prototype={},N.prototype.constructor=N,N.superclass=Object.prototype,N.prototype.init=function(a,b){this.absolute=a,this.steps=b},N.prototype.toString=function(){return(this.absolute?"/":"")+h(k,this.steps).join("/")},O.prototype={},O.prototype.constructor=O,O.superclass=Object.prototype,O.prototype.init=function(a,b,c){this.axis=a,this.nodeTest=b,this.predicates=c},O.prototype.toString=function(){return O.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+K.predicatesString(this.predicates)},O.ANCESTOR=0,O.ANCESTORORSELF=1,O.ATTRIBUTE=2,O.CHILD=3,O.DESCENDANT=4,O.DESCENDANTORSELF=5,O.FOLLOWING=6,O.FOLLOWINGSIBLING=7,O.NAMESPACE=8,O.PARENT=9,O.PRECEDING=10,O.PRECEDINGSIBLING=11,O.SELF=12,O.STEPNAMES=g(function(a,b){return a[b[0]]=b[1],a},{},[[O.ANCESTOR,"ancestor"],[O.ANCESTORORSELF,"ancestor-or-self"],[O.ATTRIBUTE,"attribute"],[O.CHILD,"child"],[O.DESCENDANT,"descendant"],[O.DESCENDANTORSELF,"descendant-or-self"],[O.FOLLOWING,"following"],[O.FOLLOWINGSIBLING,"following-sibling"],[O.NAMESPACE,"namespace"],[O.PARENT,"parent"],[O.PRECEDING,"preceding"],[O.PRECEDINGSIBLING,"preceding-sibling"],[O.SELF,"self"]]),P.prototype={},P.prototype.constructor=P,P.superclass=Object.prototype,P.prototype.init=function(a,b){this.type=a,this.value=b},P.prototype.toString=function(){return"<unknown nodetest type>"},P.prototype.matches=function(a,b){console.warn("unknown node test type")},P.NAMETESTANY=0,P.NAMETESTPREFIXANY=1,P.NAMETESTQNAME=2,P.COMMENT=3,P.TEXT=4,P.PI=5,P.NODE=6,P.isNodeType=function(a){return function(b){return j(a,b.nodeType)}},P.makeNodeTestType=function(a,b,c){var d=c||function(){};return d.prototype=new P(a),d.prototype.constructor=d,o(d.prototype,b),d},P.makeNodeTypeTest=function(a,b,c){return new(P.makeNodeTestType(a,{matches:P.isNodeType(b),toString:function(){return c}}))},P.hasPrefix=function(a){return a.prefix||-1!==(a.nodeName||a.tagName).indexOf(":")},P.isElementOrAttribute=P.isNodeType([1,2]),P.nameSpaceMatches=function(a,b,c){var d=c.namespaceURI||"";if(!a)return!d||b.allowAnyNamespaceForNoPrefix&&!P.hasPrefix(c);var e=b.namespaceResolver.getNamespace(a,b.expressionContextNode);if(null==e)throw Error("Cannot resolve QName "+a);return e===d},P.localNameMatches=function(a,b,c){var d=c.localName||c.nodeName;return b.caseInsensitive?a.toLowerCase()===d.toLowerCase():a===d},P.NameTestPrefixAny=P.makeNodeTestType(P.NAMETESTPREFIXANY,{matches:function(a,b){return P.isElementOrAttribute(a)&&P.nameSpaceMatches(this.prefix,b,a)},toString:function(){return this.prefix+":*"}},function(a){this.prefix=a}),P.NameTestQName=P.makeNodeTestType(P.NAMETESTQNAME,{matches:function(a,b){return P.isNodeType([1,2,Y.XPATH_NAMESPACE_NODE])(a)&&P.nameSpaceMatches(this.prefix,b,a)&&P.localNameMatches(this.localName,b,a)},toString:function(){return this.name}},function(a){var b=a.split(":");this.name=a,this.prefix=b.length>1?b[0]:null,this.localName=b[+(b.length>1)]}),P.PITest=P.makeNodeTestType(P.PI,{matches:function(a,b){return P.isNodeType([7])(a)&&(a.target||a.nodeName)===this.name},toString:function(){return m('processing-instruction("','")',this.name)}},function(a){this.name=a}),P.nameTestAny=P.makeNodeTypeTest(P.NAMETESTANY,[1,2,Y.XPATH_NAMESPACE_NODE],"*"),P.textTest=P.makeNodeTypeTest(P.TEXT,[3,4],"text()"),P.commentTest=P.makeNodeTypeTest(P.COMMENT,[8],"comment()"),P.nodeTest=P.makeNodeTypeTest(P.NODE,[1,2,3,4,7,8,9],"node()"),P.anyPiTest=P.makeNodeTypeTest(P.PI,[7],"processing-instruction()"),Q.prototype=new s,Q.prototype.constructor=Q,Q.superclass=s.prototype,Q.prototype.init=function(a){this.variable=a},Q.prototype.toString=function(){return"$"+this.variable},Q.prototype.evaluate=function(a){var b=ac.resolveQName(this.variable,a.namespaceResolver,a.contextNode,!1);if(null==b[0])throw Error("Cannot resolve QName "+fn);var c=a.variableResolver.getVariable(b[1],b[0]);if(!c)throw ad.fromMessage("Undeclared variable: "+this.toString());return c},R.prototype=new s,R.prototype.constructor=R,R.superclass=s.prototype,R.prototype.init=function(a,b){this.functionName=a,this.arguments=b},R.prototype.toString=function(){for(var a=this.functionName+"(",b=0;b<this.arguments.length;b++)b>0&&(a+=", "),a+=this.arguments[b].toString();return a+")"},R.prototype.evaluate=function(a){var b=_.getFunctionFromContext(this.functionName,a);if(!b)throw Error("Unknown function "+this.functionName);var c=[a].concat(this.arguments);return b.apply(a.functionResolver.thisArg,c)};var S={};function T(a){arguments.length>0&&this.init(a)}function U(a){arguments.length>0&&this.init(a)}function V(a){arguments.length>0&&this.init(a)}function W(a){this.init(a)}function X(){this.init()}function Y(a,b,c){this.isXPathNamespace=!0,this.ownerDocument=c.ownerDocument,this.nodeName="#namespace",this.prefix=a,this.localName=a,this.namespaceURI=b,this.nodeValue=b,this.ownerElement=c,this.nodeType=Y.XPATH_NAMESPACE_NODE}function Z(a,b,c){this.variableResolver=null!=a?a:new $,this.namespaceResolver=null!=b?b:new aa,this.functionResolver=null!=c?c:new _}function $(){}function _(a){this.thisArg=null!=a?a:ab,this.functions={},this.addStandardFunctions()}function aa(){}S.equals=function(a,b){return a.equals(b)},S.notequal=function(a,b){return a.notequal(b)},S.lessthan=function(a,b){return a.lessthan(b)},S.greaterthan=function(a,b){return a.greaterthan(b)},S.lessthanorequal=function(a,b){return a.lessthanorequal(b)},S.greaterthanorequal=function(a,b){return a.greaterthanorequal(b)},T.prototype=new s,T.prototype.constructor=T,T.superclass=s.prototype,T.prototype.init=function(a){this.str=String(a)},T.prototype.toString=function(){return this.str},T.prototype.evaluate=function(a){return this},T.prototype.string=function(){return this},T.prototype.number=function(){return new U(this.str)},T.prototype.bool=function(){return new V(this.str)},T.prototype.nodeset=function(){throw Error("Cannot convert string to nodeset")},T.prototype.stringValue=function(){return this.str},T.prototype.numberValue=function(){return this.number().numberValue()},T.prototype.booleanValue=function(){return this.bool().booleanValue()},T.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,U)?this.number().equals(a):ac.instance_of(a,X)?a.compareWithString(this,S.equals):new V(this.str==a.str)},T.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,U)?this.number().notequal(a):ac.instance_of(a,X)?a.compareWithString(this,S.notequal):new V(this.str!=a.str)},T.prototype.lessthan=function(a){return this.number().lessthan(a)},T.prototype.greaterthan=function(a){return this.number().greaterthan(a)},T.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},T.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},U.prototype=new s,U.prototype.constructor=U,U.superclass=s.prototype,U.prototype.init=function(a){this.num="string"==typeof a?this.parse(a):Number(a)},U.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,U.prototype.parse=function(a){return this.numberFormat.test(a)?parseFloat(a):NaN},U.prototype.toString=function(){var a=this.num.toString();if(-1!==a.indexOf("e-")){for(var b=a.split("e-"),c=b[0].replace(".",""),d=Number(b[1]),e=0;e<d-1;e+=1)c="0"+c;return"0."+c}if(-1!==a.indexOf("e")){for(var f=a.split("e"),g=f[0].replace(".",""),h=Number(f[1])+1-g.length,i=0;i<h;i+=1)g+="0";return g}return a},U.prototype.evaluate=function(a){return this},U.prototype.string=function(){return new T(this.toString())},U.prototype.number=function(){return this},U.prototype.bool=function(){return new V(this.num)},U.prototype.nodeset=function(){throw Error("Cannot convert number to nodeset")},U.prototype.stringValue=function(){return this.string().stringValue()},U.prototype.numberValue=function(){return this.num},U.prototype.booleanValue=function(){return this.bool().booleanValue()},U.prototype.negate=function(){return new U(-this.num)},U.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,T)?this.equals(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.equals):new V(this.num==a.num)},U.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,T)?this.notequal(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.notequal):new V(this.num!=a.num)},U.prototype.lessthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthan(a.number()):new V(this.num<a.num)},U.prototype.greaterthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthan(a.number()):new V(this.num>a.num)},U.prototype.lessthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthanorequal(a.number()):new V(this.num<=a.num)},U.prototype.greaterthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthanorequal(a.number()):new V(this.num>=a.num)},U.prototype.plus=function(a){return new U(this.num+a.num)},U.prototype.minus=function(a){return new U(this.num-a.num)},U.prototype.multiply=function(a){return new U(this.num*a.num)},U.prototype.div=function(a){return new U(this.num/a.num)},U.prototype.mod=function(a){return new U(this.num%a.num)},V.prototype=new s,V.prototype.constructor=V,V.superclass=s.prototype,V.prototype.init=function(a){this.b=!!a},V.prototype.toString=function(){return this.b.toString()},V.prototype.evaluate=function(a){return this},V.prototype.string=function(){return new T(this.b)},V.prototype.number=function(){return new U(this.b)},V.prototype.bool=function(){return this},V.prototype.nodeset=function(){throw Error("Cannot convert boolean to nodeset")},V.prototype.stringValue=function(){return this.string().stringValue()},V.prototype.numberValue=function(){return this.number().numberValue()},V.prototype.booleanValue=function(){return this.b},V.prototype.not=function(){return new V(!this.b)},V.prototype.equals=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.equals(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.equals):new V(this.b==a.b)},V.prototype.notequal=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.notequal(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.notequal):new V(this.b!=a.b)},V.prototype.lessthan=function(a){return this.number().lessthan(a)},V.prototype.greaterthan=function(a){return this.number().greaterthan(a)},V.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},V.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},V.true_=new V(!0),V.false_=new V(!1),W.prototype={},W.prototype.constructor=W,W.superclass=Object.prototype,W.prototype.init=function(a){this.left=null,this.right=null,this.node=a,this.depth=1},W.prototype.balance=function(){var a=null==this.left?0:this.left.depth,b=null==this.right?0:this.right.depth;if(a>b+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(a+1<b){var c=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>c&&this.right.rotateLL(),this.rotateRR()}},W.prototype.rotateLL=function(){var a=this.node,b=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=b,this.right.node=a,this.right.updateInNewLocation(),this.updateInNewLocation()},W.prototype.rotateRR=function(){var a=this.node,b=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=b,this.left.node=a,this.left.updateInNewLocation(),this.updateInNewLocation()},W.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},W.prototype.getDepthFromChildren=function(){this.depth=+(null!=this.node),null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},W.prototype.add=function(a){if(a===this.node)return!1;var b=function(a,b){if(a===b)return 0;if(a.compareDocumentPosition){var c=a.compareDocumentPosition(b);return 1&c||10&c?1:20&c?-1:0}for(var d=0,e=0,f=a;null!=f;f=f.parentNode||f.ownerElement)d++;for(var g=b;null!=g;g=g.parentNode||g.ownerElement)e++;if(d>e){for(;d>e;)a=a.parentNode||a.ownerElement,d--;if(a===b)return 1}else if(e>d){for(;e>d;)b=b.parentNode||b.ownerElement,e--;if(a===b)return -1}for(var h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;h!==i;)a=h,b=i,h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;var j=ac.isAttribute(a),k=ac.isAttribute(b);if(j&&!k)return -1;if(!j&&k)return 1;if(h)for(var l=j?h.attributes:h.childNodes,m=l.length,n=0;n<m;n+=1){var o=l[n];if(o===a)return -1;if(o===b)return 1}throw Error("Unexpected: could not determine node order")}(a,this.node),c=!1;return -1==b?null==this.left?(this.left=new W(a),c=!0):(c=this.left.add(a))&&this.balance():1==b&&(null==this.right?(this.right=new W(a),c=!0):(c=this.right.add(a))&&this.balance()),c&&this.getDepthFromChildren(),c},X.prototype=new s,X.prototype.constructor=X,X.superclass=s.prototype,X.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},X.prototype.toString=function(){var a=this.first();return null==a?"":this.stringForNode(a)},X.prototype.evaluate=function(a){return this},X.prototype.string=function(){return new T(this.toString())},X.prototype.stringValue=function(){return this.toString()},X.prototype.number=function(){return new U(this.string())},X.prototype.numberValue=function(){return Number(this.string())},X.prototype.bool=function(){return new V(this.booleanValue())},X.prototype.booleanValue=function(){return!!this.size},X.prototype.nodeset=function(){return this},X.prototype.stringForNode=function(a){return 9==a.nodeType||1==a.nodeType||11===a.nodeType?this.stringForContainerNode(a):2===a.nodeType?a.value||a.nodeValue:a.isNamespaceNode?a.namespace:a.nodeValue},X.prototype.stringForContainerNode=function(a){for(var b="",c=a.firstChild;null!=c;c=c.nextSibling){var d=c.nodeType;(1===d||3===d||4===d||9===d||11===d)&&(b+=this.stringForNode(c))}return b},X.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new W(this.nodes[0]);for(var a=1;a<this.nodes.length;a+=1)this.tree.add(this.nodes[a])}return this.tree},X.prototype.first=function(){var a=this.buildTree();if(null==a)return null;for(;null!=a.left;)a=a.left;return a.node},X.prototype.add=function(a){for(var b=0;b<this.nodes.length;b+=1)if(a===this.nodes[b])return;this.tree=null,this.nodes.push(a),this.size+=1},X.prototype.addArray=function(a){var b=this;f(function(a){b.add(a)},a)},X.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},X.prototype.toArrayRec=function(a,b){null!=a&&(this.toArrayRec(a.left,b),b.push(a.node),this.toArrayRec(a.right,b))},X.prototype.toUnsortedArray=function(){return this.nodes.slice()},X.prototype.compareWithString=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new T(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithNumber=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new U(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithBoolean=function(a,b){return b(this.bool(),a)},X.prototype.compareWithNodeSet=function(a,b){for(var c=this.toUnsortedArray(),d=function(a,c){return b(c,a)},e=0;e<c.length;e++){var f=new T(this.stringForNode(c[e])),g=a.compareWithString(f,d);if(g.booleanValue())return g}return new V(!1)},b=function(a,b){return ac.instance_of(b,T)?this.compareWithString(b,a):ac.instance_of(b,U)?this.compareWithNumber(b,a):ac.instance_of(b,V)?this.compareWithBoolean(b,a):this.compareWithNodeSet(b,a)},c=Array.prototype.slice,d=b.length,X.compareWith=e=function(){var a,f=c.call(arguments);return f.length<d?(a=e,function(){return a.apply(this,f.concat(c.call(arguments)))}):b.apply(this,c.apply(arguments,[0,d]))},X.prototype.equals=X.compareWith(S.equals),X.prototype.notequal=X.compareWith(S.notequal),X.prototype.lessthan=X.compareWith(S.lessthan),X.prototype.greaterthan=X.compareWith(S.greaterthan),X.prototype.lessthanorequal=X.compareWith(S.lessthanorequal),X.prototype.greaterthanorequal=X.compareWith(S.greaterthanorequal),X.prototype.union=function(a){var b=new X;return b.addArray(this.toUnsortedArray()),b.addArray(a.toUnsortedArray()),b},Y.prototype={},Y.prototype.constructor=Y,Y.superclass=Object.prototype,Y.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},Z.prototype={},Z.prototype.constructor=Z,Z.superclass=Object.prototype,Z.prototype.extend=function(a){return o(new Z,this,a)},$.prototype={},$.prototype.constructor=$,$.superclass=Object.prototype,$.prototype.getVariable=function(a,b){return null},_.prototype={},_.prototype.constructor=_,_.superclass=Object.prototype,_.prototype.addStandardFunctions=function(){this.functions["{}last"]=ab.last,this.functions["{}position"]=ab.position,this.functions["{}count"]=ab.count,this.functions["{}id"]=ab.id,this.functions["{}local-name"]=ab.localName,this.functions["{}namespace-uri"]=ab.namespaceURI,this.functions["{}name"]=ab.name,this.functions["{}string"]=ab.string,this.functions["{}concat"]=ab.concat,this.functions["{}starts-with"]=ab.startsWith,this.functions["{}contains"]=ab.contains,this.functions["{}substring-before"]=ab.substringBefore,this.functions["{}substring-after"]=ab.substringAfter,this.functions["{}substring"]=ab.substring,this.functions["{}string-length"]=ab.stringLength,this.functions["{}normalize-space"]=ab.normalizeSpace,this.functions["{}translate"]=ab.translate,this.functions["{}boolean"]=ab.boolean_,this.functions["{}not"]=ab.not,this.functions["{}true"]=ab.true_,this.functions["{}false"]=ab.false_,this.functions["{}lang"]=ab.lang,this.functions["{}number"]=ab.number,this.functions["{}sum"]=ab.sum,this.functions["{}floor"]=ab.floor,this.functions["{}ceiling"]=ab.ceiling,this.functions["{}round"]=ab.round},_.prototype.addFunction=function(a,b,c){this.functions["{"+a+"}"+b]=c},_.getFunctionFromContext=function(a,b){var c=ac.resolveQName(a,b.namespaceResolver,b.contextNode,!1);if(null===c[0])throw Error("Cannot resolve QName "+name);return b.functionResolver.getFunction(c[1],c[0])},_.prototype.getFunction=function(a,b){return this.functions["{"+b+"}"+a]},aa.prototype={},aa.prototype.constructor=aa,aa.superclass=Object.prototype,aa.prototype.getNamespace=function(a,b){if("xml"==a)return q.XML_NAMESPACE_URI;if("xmlns"==a)return q.XMLNS_NAMESPACE_URI;for(9==b.nodeType?b=b.documentElement:2==b.nodeType?b=K.getOwnerElement(b):1!=b.nodeType&&(b=b.parentNode);null!=b&&1==b.nodeType;){for(var c=b.attributes,d=0;d<c.length;d++){var e=c.item(d),f=e.name||e.nodeName;if("xmlns"===f&&""===a||f==="xmlns:"+a)return String(e.value||e.nodeValue)}b=b.parentNode}return null};var ab={};ab.last=function(a){if(1!=arguments.length)throw Error("Function last expects ()");return new U(a.contextSize)},ab.position=function(a){if(1!=arguments.length)throw Error("Function position expects ()");return new U(a.contextPosition)},ab.count=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function count expects (node-set)");return new U(a.size)},ab.id=function(){var a,b,c=arguments[0];if(2!=arguments.length)throw Error("Function id expects (object)");a=arguments[1].evaluate(c);for(var d=(a=ac.instance_of(a,X)?a.toArray().join(" "):a.stringValue()).split(/[\x0d\x0a\x09\x20]+/),e=new X,f=9==c.contextNode.nodeType?c.contextNode:c.contextNode.ownerDocument,g=0;g<d.length;g++)null!=(b=f.getElementById?f.getElementById(d[g]):ac.getElementById(f,d[g]))&&e.add(b);return e},ab.localName=function(a,b){var c;if(1==arguments.length)c=a.contextNode;else if(2==arguments.length)c=b.evaluate(a).first();else throw Error("Function local-name expects (node-set?)");return new T(null==c?"":c.localName||c.baseName||c.target||c.nodeName||"")},ab.namespaceURI=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function namespace-uri expects (node-set?)");return new T(null==a?"":a.namespaceURI)},ab.name=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function name expects (node-set?)");return null==a?new T(""):1==a.nodeType?new T(a.nodeName):2==a.nodeType?new T(a.name||a.nodeName):7===a.nodeType?new T(a.target||a.nodeName):null==a.localName?new T(""):new T(a.localName)},ab.string=function(){var a=arguments[0];if(1==arguments.length)return new T(X.prototype.stringForNode(a.contextNode));if(2==arguments.length)return arguments[1].evaluate(a).string();throw Error("Function string expects (object?)")},ab.concat=function(a){if(arguments.length<3)throw Error("Function concat expects (string, string[, string]*)");for(var b="",c=1;c<arguments.length;c++)b+=arguments[c].evaluate(a).stringValue();return new T(b)},ab.startsWith=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function startsWith expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(b.substring(0,c.length)==c)},ab.contains=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function contains expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(-1!==b.indexOf(c))},ab.substringBefore=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-before expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new T(b.substring(0,b.indexOf(c)))},ab.substringAfter=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-after expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();if(0==c.length)return new T(b);var d=b.indexOf(c);return new T(-1==d?"":b.substring(d+c.length))},ab.substring=function(){var a=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw Error("Function substring expects (string, number, number?)");var b=arguments[1].evaluate(a).stringValue(),c=Math.round(arguments[2].evaluate(a).numberValue())-1,d=4==arguments.length?c+Math.round(arguments[3].evaluate(a).numberValue()):void 0;return new T(b.substring(c,d))},ab.stringLength=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function string-length expects (string?)");return new U(a.length)},ab.normalizeSpace=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function normalize-space expects (string?)");for(var c=0,d=a.length-1;ac.isSpace(a.charCodeAt(d));)d--;for(var e="";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;for(;c<=d;)if(ac.isSpace(a.charCodeAt(c)))for(e+=" ";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;else e+=a.charAt(c),c++;return new T(e)},ab.translate=function(a,b,c,d){if(4!=arguments.length)throw Error("Function translate expects (string, string, string)");var e=b.evaluate(a).stringValue(),f=c.evaluate(a).stringValue(),i=d.evaluate(a).stringValue(),j=g(function(a,b,c){return b in a||(a[b]=c>i.length?"":i[c]),a},{},f);return new T(l("",h(function(a){return a in j?j[a]:a},e)))},ab.boolean_=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function boolean expects (object)");return arguments[1].evaluate(a).bool()},ab.not=function(a,b){if(2!=arguments.length)throw Error("Function not expects (object)");return b.evaluate(a).bool().not()},ab.true_=function(){if(1!=arguments.length)throw Error("Function true expects ()");return V.true_},ab.false_=function(){if(1!=arguments.length)throw Error("Function false expects ()");return V.false_},ab.lang=function(){var a,b=arguments[0];if(2!=arguments.length)throw Error("Function lang expects (string)");for(var c=b.contextNode;null!=c&&9!=c.nodeType;c=c.parentNode){var d=c.getAttributeNS(q.XML_NAMESPACE_URI,"lang");if(null!=d){a=String(d);break}}if(null==a)return V.false_;var e=arguments[1].evaluate(b).stringValue();return new V(a.substring(0,e.length)==e&&(a.length==e.length||"-"==a.charAt(e.length)))},ab.number=function(){var a=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw Error("Function number expects (object?)");return 1==arguments.length?new U(X.prototype.stringForNode(a.contextNode)):arguments[1].evaluate(a).number()},ab.sum=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function sum expects (node-set)");a=a.toUnsortedArray();for(var c=0,d=0;d<a.length;d++)c+=new U(X.prototype.stringForNode(a[d])).numberValue();return new U(c)},ab.floor=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function floor expects (number)");return new U(Math.floor(arguments[1].evaluate(a).numberValue()))},ab.ceiling=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function ceiling expects (number)");return new U(Math.ceil(arguments[1].evaluate(a).numberValue()))},ab.round=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function round expects (number)");return new U(Math.round(arguments[1].evaluate(a).numberValue()))};var ac={};ac.isAttribute=function(a){return a&&(2===a.nodeType||a.ownerElement)},ac.splitQName=function(a){var b=a.indexOf(":");return -1==b?[null,a]:[a.substring(0,b),a.substring(b+1)]},ac.resolveQName=function(a,b,c,d){var e=ac.splitQName(a);return null!=e[0]?e[0]=b.getNamespace(e[0],c):d?(e[0]=b.getNamespace("",c),null==e[0]&&(e[0]="")):e[0]="",e},ac.isSpace=function(a){return 9==a||13==a||10==a||32==a},ac.isLetter=function(a){return a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=255||a>=256&&a<=305||a>=308&&a<=318||a>=321&&a<=328||a>=330&&a<=382||a>=384&&a<=451||a>=461&&a<=496||a>=500&&a<=501||a>=506&&a<=535||a>=592&&a<=680||a>=699&&a<=705||902==a||a>=904&&a<=906||908==a||a>=910&&a<=929||a>=931&&a<=974||a>=976&&a<=982||986==a||988==a||990==a||992==a||a>=994&&a<=1011||a>=1025&&a<=1036||a>=1038&&a<=1103||a>=1105&&a<=1116||a>=1118&&a<=1153||a>=1168&&a<=1220||a>=1223&&a<=1224||a>=1227&&a<=1228||a>=1232&&a<=1259||a>=1262&&a<=1269||a>=1272&&a<=1273||a>=1329&&a<=1366||1369==a||a>=1377&&a<=1414||a>=1488&&a<=1514||a>=1520&&a<=1522||a>=1569&&a<=1594||a>=1601&&a<=1610||a>=1649&&a<=1719||a>=1722&&a<=1726||a>=1728&&a<=1742||a>=1744&&a<=1747||1749==a||a>=1765&&a<=1766||a>=2309&&a<=2361||2365==a||a>=2392&&a<=2401||a>=2437&&a<=2444||a>=2447&&a<=2448||a>=2451&&a<=2472||a>=2474&&a<=2480||2482==a||a>=2486&&a<=2489||a>=2524&&a<=2525||a>=2527&&a<=2529||a>=2544&&a<=2545||a>=2565&&a<=2570||a>=2575&&a<=2576||a>=2579&&a<=2600||a>=2602&&a<=2608||a>=2610&&a<=2611||a>=2613&&a<=2614||a>=2616&&a<=2617||a>=2649&&a<=2652||2654==a||a>=2674&&a<=2676||a>=2693&&a<=2699||2701==a||a>=2703&&a<=2705||a>=2707&&a<=2728||a>=2730&&a<=2736||a>=2738&&a<=2739||a>=2741&&a<=2745||2749==a||2784==a||a>=2821&&a<=2828||a>=2831&&a<=2832||a>=2835&&a<=2856||a>=2858&&a<=2864||a>=2866&&a<=2867||a>=2870&&a<=2873||2877==a||a>=2908&&a<=2909||a>=2911&&a<=2913||a>=2949&&a<=2954||a>=2958&&a<=2960||a>=2962&&a<=2965||a>=2969&&a<=2970||2972==a||a>=2974&&a<=2975||a>=2979&&a<=2980||a>=2984&&a<=2986||a>=2990&&a<=2997||a>=2999&&a<=3001||a>=3077&&a<=3084||a>=3086&&a<=3088||a>=3090&&a<=3112||a>=3114&&a<=3123||a>=3125&&a<=3129||a>=3168&&a<=3169||a>=3205&&a<=3212||a>=3214&&a<=3216||a>=3218&&a<=3240||a>=3242&&a<=3251||a>=3253&&a<=3257||3294==a||a>=3296&&a<=3297||a>=3333&&a<=3340||a>=3342&&a<=3344||a>=3346&&a<=3368||a>=3370&&a<=3385||a>=3424&&a<=3425||a>=3585&&a<=3630||3632==a||a>=3634&&a<=3635||a>=3648&&a<=3653||a>=3713&&a<=3714||3716==a||a>=3719&&a<=3720||3722==a||3725==a||a>=3732&&a<=3735||a>=3737&&a<=3743||a>=3745&&a<=3747||3749==a||3751==a||a>=3754&&a<=3755||a>=3757&&a<=3758||3760==a||a>=3762&&a<=3763||3773==a||a>=3776&&a<=3780||a>=3904&&a<=3911||a>=3913&&a<=3945||a>=4256&&a<=4293||a>=4304&&a<=4342||4352==a||a>=4354&&a<=4355||a>=4357&&a<=4359||4361==a||a>=4363&&a<=4364||a>=4366&&a<=4370||4412==a||4414==a||4416==a||4428==a||4430==a||4432==a||a>=4436&&a<=4437||4441==a||a>=4447&&a<=4449||4451==a||4453==a||4455==a||4457==a||a>=4461&&a<=4462||a>=4466&&a<=4467||4469==a||4510==a||4520==a||4523==a||a>=4526&&a<=4527||a>=4535&&a<=4536||4538==a||a>=4540&&a<=4546||4587==a||4592==a||4601==a||a>=7680&&a<=7835||a>=7840&&a<=7929||a>=7936&&a<=7957||a>=7960&&a<=7965||a>=7968&&a<=8005||a>=8008&&a<=8013||a>=8016&&a<=8023||8025==a||8027==a||8029==a||a>=8031&&a<=8061||a>=8064&&a<=8116||a>=8118&&a<=8124||8126==a||a>=8130&&a<=8132||a>=8134&&a<=8140||a>=8144&&a<=8147||a>=8150&&a<=8155||a>=8160&&a<=8172||a>=8178&&a<=8180||a>=8182&&a<=8188||8486==a||a>=8490&&a<=8491||8494==a||a>=8576&&a<=8578||a>=12353&&a<=12436||a>=12449&&a<=12538||a>=12549&&a<=12588||a>=44032&&a<=55203||a>=19968&&a<=40869||12295==a||a>=12321&&a<=12329},ac.isNCNameChar=function(a){return a>=48&&a<=57||a>=1632&&a<=1641||a>=1776&&a<=1785||a>=2406&&a<=2415||a>=2534&&a<=2543||a>=2662&&a<=2671||a>=2790&&a<=2799||a>=2918&&a<=2927||a>=3047&&a<=3055||a>=3174&&a<=3183||a>=3302&&a<=3311||a>=3430&&a<=3439||a>=3664&&a<=3673||a>=3792&&a<=3801||a>=3872&&a<=3881||46==a||45==a||95==a||ac.isLetter(a)||a>=768&&a<=837||a>=864&&a<=865||a>=1155&&a<=1158||a>=1425&&a<=1441||a>=1443&&a<=1465||a>=1467&&a<=1469||1471==a||a>=1473&&a<=1474||1476==a||a>=1611&&a<=1618||1648==a||a>=1750&&a<=1756||a>=1757&&a<=1759||a>=1760&&a<=1764||a>=1767&&a<=1768||a>=1770&&a<=1773||a>=2305&&a<=2307||2364==a||a>=2366&&a<=2380||2381==a||a>=2385&&a<=2388||a>=2402&&a<=2403||a>=2433&&a<=2435||2492==a||2494==a||2495==a||a>=2496&&a<=2500||a>=2503&&a<=2504||a>=2507&&a<=2509||2519==a||a>=2530&&a<=2531||2562==a||2620==a||2622==a||2623==a||a>=2624&&a<=2626||a>=2631&&a<=2632||a>=2635&&a<=2637||a>=2672&&a<=2673||a>=2689&&a<=2691||2748==a||a>=2750&&a<=2757||a>=2759&&a<=2761||a>=2763&&a<=2765||a>=2817&&a<=2819||2876==a||a>=2878&&a<=2883||a>=2887&&a<=2888||a>=2891&&a<=2893||a>=2902&&a<=2903||a>=2946&&a<=2947||a>=3006&&a<=3010||a>=3014&&a<=3016||a>=3018&&a<=3021||3031==a||a>=3073&&a<=3075||a>=3134&&a<=3140||a>=3142&&a<=3144||a>=3146&&a<=3149||a>=3157&&a<=3158||a>=3202&&a<=3203||a>=3262&&a<=3268||a>=3270&&a<=3272||a>=3274&&a<=3277||a>=3285&&a<=3286||a>=3330&&a<=3331||a>=3390&&a<=3395||a>=3398&&a<=3400||a>=3402&&a<=3405||3415==a||3633==a||a>=3636&&a<=3642||a>=3655&&a<=3662||3761==a||a>=3764&&a<=3769||a>=3771&&a<=3772||a>=3784&&a<=3789||a>=3864&&a<=3865||3893==a||3895==a||3897==a||3902==a||3903==a||a>=3953&&a<=3972||a>=3974&&a<=3979||a>=3984&&a<=3989||3991==a||a>=3993&&a<=4013||a>=4017&&a<=4023||4025==a||a>=8400&&a<=8412||8417==a||a>=12330&&a<=12335||12441==a||12442==a||183==a||720==a||721==a||903==a||1600==a||3654==a||3782==a||12293==a||a>=12337&&a<=12341||a>=12445&&a<=12446||a>=12540&&a<=12542},ac.coalesceText=function(a){for(var b=a.firstChild;null!=b;b=b.nextSibling)if(3==b.nodeType||4==b.nodeType){var c=b.nodeValue,d=b;for(b=b.nextSibling;null!=b&&(3==b.nodeType||4==b.nodeType);){c+=b.nodeValue;var e=b;b=b.nextSibling,e.parentNode.removeChild(e)}if(4==d.nodeType){var f=d.parentNode;if(null==d.nextSibling)f.removeChild(d),f.appendChild(f.ownerDocument.createTextNode(c));else{var g=d.nextSibling;f.removeChild(d),f.insertBefore(f.ownerDocument.createTextNode(c),g)}}else d.nodeValue=c;if(null==b)break}else 1==b.nodeType&&ac.coalesceText(b)},ac.instance_of=function(a,b){for(;null!=a;){if(a.constructor===b)return!0;if(a===Object)break;a=a.constructor.superclass}return!1},ac.getElementById=function(a,b){if(1==a.nodeType&&(a.getAttribute("id")==b||a.getAttributeNS(null,"id")==b))return a;for(var c=a.firstChild;null!=c;c=c.nextSibling){var d=ac.getElementById(c,b);if(null!=d)return d}return null};var ad=function(){function a(b,c,d){var e=Error.call(this,function(b,c){var d=c?": "+c.toString():"";switch(b){case a.INVALID_EXPRESSION_ERR:return"Invalid expression"+d;case a.TYPE_ERR:return"Type error"+d}return null}(b,c)||d);return e.code=b,e.exception=c,e}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.superclass=Error,a.prototype.toString=function(){return this.message},a.fromMessage=function(b,c){return new a(null,c,b)},a.INVALID_EXPRESSION_ERR=51,a.TYPE_ERR=52,a}();function ae(a,b,c){this.xpath=c.parse(a),this.context=new Z,this.context.namespaceResolver=new af(b)}function af(a){this.xpathNSResolver=a}function ag(a){this.node=a,this.namespaceResolver=new aa}function ah(a,b){switch(b==ah.ANY_TYPE&&(a.constructor===T?b=ah.STRING_TYPE:a.constructor===U?b=ah.NUMBER_TYPE:a.constructor===V?b=ah.BOOLEAN_TYPE:a.constructor===X&&(b=ah.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=b,b){case ah.NUMBER_TYPE:this.numberValue=a.numberValue();return;case ah.STRING_TYPE:this.stringValue=a.stringValue();return;case ah.BOOLEAN_TYPE:this.booleanValue=a.booleanValue();return;case ah.ANY_UNORDERED_NODE_TYPE:case ah.FIRST_ORDERED_NODE_TYPE:if(a.constructor===X){this.singleNodeValue=a.first();return}break;case ah.UNORDERED_NODE_ITERATOR_TYPE:case ah.ORDERED_NODE_ITERATOR_TYPE:if(a.constructor===X){this.invalidIteratorState=!1,this.nodes=a.toArray(),this.iteratorIndex=0;return}break;case ah.UNORDERED_NODE_SNAPSHOT_TYPE:case ah.ORDERED_NODE_SNAPSHOT_TYPE:if(a.constructor===X){this.nodes=a.toArray(),this.snapshotLength=this.nodes.length;return}}throw new ad(ad.TYPE_ERR)}function ai(a,b){a.createExpression=function(a,c){try{return new ae(a,c,b)}catch(a){throw new ad(ad.INVALID_EXPRESSION_ERR,a)}},a.createNSResolver=function(a){return new ag(a)},a.evaluate=function(c,d,e,f,g){if(f<0||f>9)throw{code:0,toString:function(){return"Request type not supported"}};return a.createExpression(c,e,b).evaluate(d,f,g)}}ae.prototype={},ae.prototype.constructor=ae,ae.superclass=Object.prototype,ae.getOwnerDocument=function(a){return 9===a.nodeType?a:a.ownerDocument},ae.detectHtmlDom=function(a){if(!a)return!1;var b=ae.getOwnerDocument(a);try{return b.implementation.hasFeature("HTML","2.0")}catch(a){return!0}},ae.prototype.evaluate=function(a,b,c){return this.context.expressionContextNode=a,this.context.caseInsensitive=ae.detectHtmlDom(a),new ah(this.xpath.evaluate(this.context),b)},af.prototype={},af.prototype.constructor=af,af.superclass=Object.prototype,af.prototype.getNamespace=function(a,b){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(a)},ag.prototype={},ag.prototype.constructor=ag,ag.superclass=Object.prototype,ag.prototype.lookupNamespaceURI=function(a){return this.namespaceResolver.getNamespace(a,this.node)},ah.prototype={},ah.prototype.constructor=ah,ah.superclass=Object.prototype,ah.prototype.iterateNext=function(){if(this.resultType!=ah.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=ah.ORDERED_NODE_ITERATOR_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[this.iteratorIndex++]},ah.prototype.snapshotItem=function(a){if(this.resultType!=ah.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=ah.ORDERED_NODE_SNAPSHOT_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[a]},ah.ANY_TYPE=0,ah.NUMBER_TYPE=1,ah.STRING_TYPE=2,ah.BOOLEAN_TYPE=3,ah.UNORDERED_NODE_ITERATOR_TYPE=4,ah.ORDERED_NODE_ITERATOR_TYPE=5,ah.UNORDERED_NODE_SNAPSHOT_TYPE=6,ah.ORDERED_NODE_SNAPSHOT_TYPE=7,ah.ANY_UNORDERED_NODE_TYPE=8,ah.FIRST_ORDERED_NODE_TYPE=9;try{var aj=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(aj=!1)}catch(a){}aj&&ai(document,new p)}catch(a){}ai(a,new p),function(){var b=new p,c=new aa,d=new _,e=new $;function f(a){return{getNamespace:function(b,d){return a(b,d)||c.getNamespace(b,d)}}}function g(a){if(null==a||a instanceof T||a instanceof V||a instanceof U||a instanceof X)return a;switch(typeof a){case"string":return new T(a);case"boolean":return new V(a);case"number":return new U(a)}var b=new X;return b.addArray([].concat(a)),b}function h(a){return{getFunction:function(b,c){var e=a(b,c);return e?function(a){var b=Array.prototype.slice.call(arguments,1).map(function(b){return b.evaluate(a)});return g(e.apply(this,[].concat(a,b)))}:d.getFunction(b,c)}}}function i(a){return{getVariable:function(b,c){return g(a(b,c))}}}function j(a,b,c){a in c&&(b[a]=c[a])}var k={evaluate:function(a){var b,g,k;return b=this.expression,g=new Z,a?(g.namespaceResolver=function(a){return a&&"function"==typeof a.getNamespace?f(a.getNamespace.bind(a)):"function"==typeof a?f(a):"object"==typeof a?f(function(b){return a[b]}):c}(a.namespaces),g.functionResolver=function(a){return a&&"function"==typeof a.getFunction?h(a.getFunction.bind(a)):"function"==typeof a?h(a):"object"==typeof a?h(function(b){return a[b]}):d}(a.functions),g.variableResolver=function(a){if(a){if("function"==typeof a.getVariable)return i(a.getVariable.bind(a));if("function"==typeof a)return i(a);if("object"==typeof a)return i(function(b){return a[b]})}return e}(a.variables),g.expressionContextNode=a.node,j("allowAnyNamespaceForNoPrefix",g,a),j("isHtml",g,a)):g.namespaceResolver=c,k=g,b.evaluate(k)},evaluateNumber:function(a){return this.evaluate(a).numberValue()},evaluateString:function(a){return this.evaluate(a).stringValue()},evaluateBoolean:function(a){return this.evaluate(a).booleanValue()},evaluateNodeSet:function(a){return this.evaluate(a).nodeset()},select:function(a){return this.evaluateNodeSet(a).toArray()},select1:function(a){return this.select(a)[0]}};a.parse=function(a){return Object.create(k,{expression:{value:b.parse(a)}})}}(),o(a,{XPath:q,XPathParser:p,XPathResult:ah,Step:O,PathExpr:K,NodeTest:P,LocationPath:N,OrOperation:w,AndOperation:x,BarOperation:J,EqualsOperation:y,NotEqualOperation:z,LessThanOperation:A,GreaterThanOperation:B,LessThanOrEqualOperation:C,GreaterThanOrEqualOperation:D,PlusOperation:E,MinusOperation:F,MultiplyOperation:G,DivOperation:H,ModOperation:I,UnaryMinusOperation:u,FunctionCall:R,VariableReference:Q,XPathContext:Z,XNodeSet:X,XBoolean:V,XString:T,XNumber:U,NamespaceResolver:aa,FunctionResolver:_,VariableResolver:$,Utilities:ac}),a.select=function(b,c,d){return a.selectWithResolver(b,c,null,d)},a.useNamespaces=function(b){var c={mappings:b||{},lookupNamespaceURI:function(a){return this.mappings[a]}};return function(b,d,e){return a.selectWithResolver(b,d,c,e)}},a.selectWithResolver=function(a,b,c,d){var e=new ae(a,c,new p),f=ah.ANY_TYPE,g=e.evaluate(b,f,null);return g.resultType==ah.STRING_TYPE?g=g.stringValue:g.resultType==ah.NUMBER_TYPE?g=g.numberValue:g.resultType==ah.BOOLEAN_TYPE?g=g.booleanValue:(g=g.nodes,d&&(g=g[0])),g},a.select1=function(b,c){return a.select(b,c,!0)};var ak=function(a){return a&&"number"==typeof a.nodeType&&Number.isInteger(a.nodeType)&&a.nodeType>=1&&a.nodeType<=11&&"string"==typeof a.nodeName},al=function(a){return function(b){return ak(b)&&b.nodeType===a}};o(a,{isNodeLike:ak,isArrayOfNodes:function(a){return Array.isArray(a)&&a.every(ak)},isElement:al(1),isAttribute:al(2),isTextNode:al(3),isCDATASection:al(4),isProcessingInstruction:al(7),isComment:al(8),isDocumentNode:al(9),isDocumentTypeNode:al(10),isDocumentFragment:al(11)})}(b)},43594:function(a){(function(){var b,c,d,e={}.hasOwnProperty;c=function(a){return!!a&&"[object Function]"===Object.prototype.toString.call(a)},d=function(a){var b;return!!a&&("function"==(b=typeof a)||"object"===b)},b=function(a){return c(Array.isArray)?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)},a.exports.assign=function(a,...b){var d,f,g,h;if(c(Object.assign))Object.assign.apply(null,arguments);else for(d=0,g=b.length;d<g;d++)if(null!=(h=b[d]))for(f in h)e.call(h,f)&&(a[f]=h[f]);return a},a.exports.isFunction=c,a.exports.isObject=d,a.exports.isArray=b,a.exports.isEmpty=function(a){var c;if(b(a))return!a.length;for(c in a)if(e.call(a,c))return!1;return!0},a.exports.isPlainObject=function(a){var b,c;return d(a)&&(c=Object.getPrototypeOf(a))&&(b=c.constructor)&&"function"==typeof b&&b instanceof b&&Function.prototype.toString.call(b)===Function.prototype.toString.call(Object)},a.exports.getValue=function(a){return c(a.valueOf)?a.valueOf():a}}).call(this)},43849:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k=function(a,b){for(var c in b)l.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},l={}.hasOwnProperty;i=(j=c(4700)).isObject,h=j.isFunction,g=j.getValue,f=c(8957),b=c(24706),d=c(94253),e=c(7832),a.exports=function(a){function c(a,d,e){var f,g,h,i;if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(d),this.type=b.Element,this.attribs={},this.schemaTypeInfo=null,null!=e&&this.attribute(e),a.type===b.Document&&(this.isRoot=!0,this.documentObject=a,a.rootObject=this,a.children)){for(g=0,h=(i=a.children).length;g<h;g++)if((f=i[g]).type===b.DocType){f.name=this.name;break}}}return k(c,a),Object.defineProperty(c.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(c.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(c.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"id",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"className",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"classList",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new e(this.attribs)),this.attributeMap}}),c.prototype.clone=function(){var a,b,c,d;for(b in(c=Object.create(this)).isRoot&&(c.documentObject=null),c.attribs={},d=this.attribs)l.call(d,b)&&(a=d[b],c.attribs[b]=a.clone());return c.children=[],this.children.forEach(function(a){var b;return(b=a.clone()).parent=c,c.children.push(b)}),c},c.prototype.attribute=function(a,b){var c,e;if(null!=a&&(a=g(a)),i(a))for(c in a)l.call(a,c)&&(e=a[c],this.attribute(c,e));else h(b)&&(b=b.apply()),this.options.keepNullAttributes&&null==b?this.attribs[a]=new d(this,a,""):null!=b&&(this.attribs[a]=new d(this,a,b));return this},c.prototype.removeAttribute=function(a){var b,c,d;if(null==a)throw Error("Missing attribute name. "+this.debugInfo());if(Array.isArray(a=g(a)))for(c=0,d=a.length;c<d;c++)b=a[c],delete this.attribs[b];else delete this.attribs[a];return this},c.prototype.toString=function(a){return this.options.writer.element(this,this.options.writer.filterOptions(a))},c.prototype.att=function(a,b){return this.attribute(a,b)},c.prototype.a=function(a,b){return this.attribute(a,b)},c.prototype.getAttribute=function(a){return this.attribs.hasOwnProperty(a)?this.attribs[a].value:null},c.prototype.setAttribute=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNode=function(a){return this.attribs.hasOwnProperty(a)?this.attribs[a]:null},c.prototype.setAttributeNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.removeAttributeNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setAttributeNS=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.removeAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNodeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setAttributeNodeNS=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.hasAttribute=function(a){return this.attribs.hasOwnProperty(a)},c.prototype.hasAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setIdAttribute=function(a,b){return this.attribs.hasOwnProperty(a)?this.attribs[a].isId:b},c.prototype.setIdAttributeNS=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setIdAttributeNode=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByClassName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.isEqualNode=function(a){var b,d,e;if(!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)||a.namespaceURI!==this.namespaceURI||a.prefix!==this.prefix||a.localName!==this.localName||a.attribs.length!==this.attribs.length)return!1;for(b=d=0,e=this.attribs.length-1;0<=e?d<=e:d>=e;b=0<=e?++d:--d)if(!this.attribs[b].isEqualNode(a.attribs[b]))return!1;return!0},c}(f)}).call(this)},44558:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.Sha512=b.Sha256=b.Sha1=void 0;let d=c(55511);class e{constructor(){this.getHash=function(a){let b=d.createHash("sha1");return b.update(a,"utf8"),b.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2000/09/xmldsig#sha1"}}}b.Sha1=e;class f{constructor(){this.getHash=function(a){let b=d.createHash("sha256");return b.update(a,"utf8"),b.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha256"}}}b.Sha256=f;class g{constructor(){this.getHash=function(a){let b=d.createHash("sha512");return b.update(a,"utf8"),b.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha512"}}}b.Sha512=g},44981:function(a,b,c){(function(){var b;b=c(67289),a.exports=class extends b{constructor(a){super(a)}document(a,b){var c,d,e,f,g;for(b=this.filterOptions(b),f="",d=0,e=(g=a.children).length;d<e;d++)c=g[d],f+=this.writeChildNode(c,b,0);return b.pretty&&f.slice(-b.newline.length)===b.newline&&(f=f.slice(0,-b.newline.length)),f}}}).call(this)},45454:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,e,f,g,h){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing DTD element name. "+this.debugInfo());if(null==e)throw Error("Missing DTD attribute name. "+this.debugInfo(d));if(!f)throw Error("Missing DTD attribute type. "+this.debugInfo(d));if(!g)throw Error("Missing DTD attribute default. "+this.debugInfo(d));if(0!==g.indexOf("#")&&(g="#"+g),!g.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(d));if(h&&!g.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(d));this.elementName=this.stringify.name(d),this.type=b.AttributeDeclaration,this.attributeName=this.stringify.name(e),this.attributeType=this.stringify.dtdAttType(f),h&&(this.defaultValue=this.stringify.dtdAttDefault(h)),this.defaultValueType=g}return e(c,a),c.prototype.toString=function(a){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},45540:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.generateServiceProviderMetadata=void 0;let d=c(26884),e=c(35312),f=c(36481),g=c(65756),h=c(26884),i=c(30072);b.generateServiceProviderMetadata=a=>{let{issuer:b,callbackUrl:c,logoutCallbackUrl:j,decryptionPvk:k,privateKey:l,metadataContactPerson:m,metadataOrganization:n,identifierFormat:o=i.DEFAULT_IDENTIFIER_FORMAT,wantAssertionsSigned:p=i.DEFAULT_WANT_ASSERTIONS_SIGNED,generateUniqueId:q=h.generateUniqueId}=a,{publicCerts:r,decryptionCert:s}=a;if(null!=k){if(!s)throw Error("Missing decryptionCert while generating metadata for decrypting service provider")}else s=null;if(null!=l){if(!r)throw Error("Missing publicCert while generating metadata for signing service provider messages");r=Array.isArray(r)?r:[r]}else r=null;let t={EntityDescriptor:{"@xmlns":"urn:oasis:names:tc:SAML:2.0:metadata","@xmlns:ds":"http://www.w3.org/2000/09/xmldsig#","@entityID":b,"@ID":q(),SPSSODescriptor:{"@protocolSupportEnumeration":"urn:oasis:names:tc:SAML:2.0:protocol","@AuthnRequestsSigned":"false"},...n?{Organization:n}:{},...m?{ContactPerson:m}:{}}};if(null!=s||null!=r){if(t.EntityDescriptor.SPSSODescriptor.KeyDescriptor=[],(0,e.isValidSamlSigningOptions)(a)){(0,f.assertRequired)(r,"Missing publicCert while generating metadata for signing service provider messages"),t.EntityDescriptor.SPSSODescriptor["@AuthnRequestsSigned"]=!0;let a=(Array.isArray(r)?r:[r]).map(a=>({"@use":"signing","ds:KeyInfo":{"ds:X509Data":{"ds:X509Certificate":{"#text":(0,d.stripPemHeaderAndFooter)(a)}}}}));t.EntityDescriptor.SPSSODescriptor.KeyDescriptor.push(a)}null!=k&&((0,f.assertRequired)(s,"Missing decryptionCert while generating metadata for decrypting service provider"),s=(0,d.stripPemHeaderAndFooter)(s),t.EntityDescriptor.SPSSODescriptor.KeyDescriptor.push({"@use":"encryption","ds:KeyInfo":{"ds:X509Data":{"ds:X509Certificate":{"#text":s}}},EncryptionMethod:[{"@Algorithm":"http://www.w3.org/2009/xmlenc11#aes256-gcm"},{"@Algorithm":"http://www.w3.org/2009/xmlenc11#aes128-gcm"},{"@Algorithm":"http://www.w3.org/2001/04/xmlenc#aes256-cbc"},{"@Algorithm":"http://www.w3.org/2001/04/xmlenc#aes128-cbc"}]}))}null!=j&&(t.EntityDescriptor.SPSSODescriptor.SingleLogoutService={"@Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@Location":j}),null!=o&&(t.EntityDescriptor.SPSSODescriptor.NameIDFormat=o),p&&(t.EntityDescriptor.SPSSODescriptor["@WantAssertionsSigned"]=!0),t.EntityDescriptor.SPSSODescriptor.AssertionConsumerService={"@index":"1","@isDefault":"true","@Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@Location":c};let u=(0,g.buildXmlBuilderObject)(t,!0);return!0===a.signMetadata&&(0,e.isValidSamlSigningOptions)(a)&&(u=(0,f.signXmlMetadata)(u,{privateKey:a.privateKey,signatureAlgorithm:a.signatureAlgorithm,xmlSignatureTransforms:a.xmlSignatureTransforms,digestAlgorithm:a.digestAlgorithm})),u}},46140:(a,b,c)=>{"u"<typeof process||"renderer"===process.type||process.__nwjs?a.exports=c(21584):a.exports=c(89830)},46584:function(a){(function(){a.exports=function(){function a(a){this.arr=a||[]}return Object.defineProperty(a.prototype,"length",{get:function(){return this.arr.length}}),a.prototype.item=function(a){return this.arr[a]||null},a.prototype.contains=function(a){return -1!==this.arr.indexOf(a)},a}()}).call(this)},46898:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=class extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))}}}).call(this)},47564:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SAML=void 0;let d=c(46140),e=c(74075),f=c(55511),g=c(1932),h=c(11723),i=c(28354),j=c(31673),k=c(86175),l=c(35312),m=c(36481),n=c(65756),o=c(26884),p=c(19691),q=c(34153),r=c(45540),s=c(30072),t=(0,d.default)("node-saml"),u=i.promisify(e.inflateRaw),v=i.promisify(e.deflateRaw),w=async({idpCert:a})=>{let b="function"==typeof a?await i.promisify(a)().then(a=>((0,m.assertRequired)(a,"callback didn't return idpCert"),a)):a;return Array.isArray(b)?b.map((a,b)=>(0,o.keyInfoToPem)(a,"CERTIFICATE",`idpCert[${b}]`)):[(0,o.keyInfoToPem)(b,"CERTIFICATE","idpCert")]};class x{constructor(a){this.pemFiles=[],this.options=this.initialize(a),this.cacheProvider=this.options.cacheProvider}initialize(a){var b,c,d,e,f,g,h,i,k,n,p,q,r,t,u,v,w,x,y,z,A,B,C,D,E,F;if(!a)throw TypeError("SamlOptions required on construction");(0,m.assertRequired)(a.callbackUrl,"callbackUrl is required"),(0,m.assertRequired)(a.issuer,"issuer is required"),(0,m.assertRequired)(a.idpCert,"idpCert is required"),(0,m.assertBooleanIfPresent)(a.passive),(0,m.assertBooleanIfPresent)(a.disableRequestedAuthnContext),(0,m.assertBooleanIfPresent)(a.forceAuthn),(0,m.assertBooleanIfPresent)(a.skipRequestCompression),(0,m.assertBooleanIfPresent)(a.disableRequestAcsUrl),(0,m.assertBooleanIfPresent)(a.allowCreate),(0,m.assertBooleanIfPresent)(a.wantAssertionsSigned),(0,m.assertBooleanIfPresent)(a.wantAuthnResponseSigned),(0,m.assertBooleanIfPresent)(a.signMetadata);let G={...a,passive:null!=(b=a.passive)&&b,disableRequestedAuthnContext:null!=(c=a.disableRequestedAuthnContext)&&c,additionalParams:null!=(d=a.additionalParams)?d:{},additionalAuthorizeParams:null!=(e=a.additionalAuthorizeParams)?e:{},additionalLogoutParams:null!=(f=a.additionalLogoutParams)?f:{},forceAuthn:null!=(g=a.forceAuthn)&&g,skipRequestCompression:null!=(h=a.skipRequestCompression)&&h,disableRequestAcsUrl:null!=(i=a.disableRequestAcsUrl)&&i,acceptedClockSkewMs:null!=(k=a.acceptedClockSkewMs)?k:0,maxAssertionAgeMs:null!=(n=a.maxAssertionAgeMs)?n:0,callbackUrl:a.callbackUrl,issuer:a.issuer,audience:null!=(q=null!=(p=a.audience)?p:a.issuer)?q:"unknown_audience",identifierFormat:void 0===a.identifierFormat?s.DEFAULT_IDENTIFIER_FORMAT:a.identifierFormat,allowCreate:null==(r=a.allowCreate)||r,spNameQualifier:a.spNameQualifier,wantAssertionsSigned:null!=(t=a.wantAssertionsSigned)?t:s.DEFAULT_WANT_ASSERTIONS_SIGNED,wantAuthnResponseSigned:null==(u=a.wantAuthnResponseSigned)||u,authnContext:null!=(v=a.authnContext)?v:["urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport"],validateInResponseTo:null!=(w=a.validateInResponseTo)?w:l.ValidateInResponseTo.never,idpCert:a.idpCert,requestIdExpirationPeriodMs:null!=(x=a.requestIdExpirationPeriodMs)?x:288e5,cacheProvider:null!=(y=a.cacheProvider)?y:new j.InMemoryCacheProvider({keyExpirationPeriodMs:a.requestIdExpirationPeriodMs}),logoutUrl:null!=(A=null!=(z=a.logoutUrl)?z:a.entryPoint)?A:"",signatureAlgorithm:null!=(B=a.signatureAlgorithm)?B:"sha1",authnRequestBinding:null!=(C=a.authnRequestBinding)?C:"HTTP-Redirect",generateUniqueId:null!=(D=a.generateUniqueId)?D:o.generateUniqueId,signMetadata:null!=(E=a.signMetadata)&&E,racComparison:null!=(F=a.racComparison)?F:"exact"};if(!Object.values(l.ValidateInResponseTo).includes(G.validateInResponseTo))throw TypeError("validateInResponseTo must be one of ['never', 'ifPresent', 'always']");if(!["exact","minimum","maximum","better"].includes(G.racComparison))throw TypeError("racComparison must be one of ['exact', 'minimum', 'maximum', 'better']");return G}signRequest(a){(0,m.assertRequired)(this.options.privateKey,"privateKey is required");let b={};a.SigAlg=k.getSigningAlgorithm(this.options.signatureAlgorithm);let c=k.getSigner(this.options.signatureAlgorithm);a.SAMLRequest&&(b.SAMLRequest=a.SAMLRequest),a.SAMLResponse&&(b.SAMLResponse=a.SAMLResponse),a.RelayState&&(b.RelayState=a.RelayState),a.SigAlg&&(b.SigAlg=a.SigAlg),c.update(h.stringify(b)),a.Signature=c.sign((0,o.keyInfoToPem)(this.options.privateKey,"PRIVATE KEY","privateKey"),"base64")}async generateAuthorizeRequestAsync(a,b){(0,m.assertRequired)(this.options.entryPoint,"entryPoint is required");let c=this.options.generateUniqueId(),d=(0,p.generateInstant)();this.mustValidateInResponseTo(!0)&&await this.cacheProvider.saveAsync(c,d);let e={"samlp:AuthnRequest":{"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@ID":c,"@Version":"2.0","@IssueInstant":d,"@ProtocolBinding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@Destination":this.options.entryPoint,"saml:Issuer":{"@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","#text":this.options.issuer}}};a&&(e["samlp:AuthnRequest"]["@IsPassive"]=!0),!0===this.options.forceAuthn&&(e["samlp:AuthnRequest"]["@ForceAuthn"]=!0),this.options.disableRequestAcsUrl||(e["samlp:AuthnRequest"]["@AssertionConsumerServiceURL"]=this.options.callbackUrl);let f=this.options.samlAuthnRequestExtensions;if(null!=f){if("object"!=typeof f)throw TypeError("samlAuthnRequestExtensions should be Object");e["samlp:AuthnRequest"]["samlp:Extensions"]={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol",...f}}let g={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@AllowCreate":this.options.allowCreate};if(null!=this.options.identifierFormat&&(g["@Format"]=this.options.identifierFormat),null!=this.options.spNameQualifier&&(g["@SPNameQualifier"]=this.options.spNameQualifier),e["samlp:AuthnRequest"]["samlp:NameIDPolicy"]=g,!this.options.disableRequestedAuthnContext){let a=[];this.options.authnContext.forEach(function(b){a.push({"@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","#text":b})}),e["samlp:AuthnRequest"]["samlp:RequestedAuthnContext"]={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@Comparison":this.options.racComparison,"saml:AuthnContextClassRef":a}}if(null!=this.options.attributeConsumingServiceIndex&&(e["samlp:AuthnRequest"]["@AttributeConsumingServiceIndex"]=this.options.attributeConsumingServiceIndex),null!=this.options.providerName&&(e["samlp:AuthnRequest"]["@ProviderName"]=this.options.providerName),null!=this.options.scoping){let a={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol"};"number"==typeof this.options.scoping.proxyCount&&(a["@ProxyCount"]=this.options.scoping.proxyCount),this.options.scoping.idpList&&(a["samlp:IDPList"]=this.options.scoping.idpList.map(a=>{let b={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol"};return a.entries&&(b["samlp:IDPEntry"]=a.entries.map(a=>{let b={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol"};return b["@ProviderID"]=a.providerId,a.name&&(b["@Name"]=a.name),a.loc&&(b["@Loc"]=a.loc),b})),a.getComplete&&(b["samlp:GetComplete"]=a.getComplete),b})),this.options.scoping.requesterId&&(a["samlp:RequesterID"]=this.options.scoping.requesterId),e["samlp:AuthnRequest"]["samlp:Scoping"]=a}let h=(0,n.buildXmlBuilderObject)(e,!1);return b&&(0,l.isValidSamlSigningOptions)(this.options)&&(h=(0,q.signAuthnRequestPost)(h,this.options)),h}async _generateLogoutRequest(a){let b=this.options.generateUniqueId(),c=(0,p.generateInstant)(),d={"samlp:LogoutRequest":{"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","@ID":b,"@Version":"2.0","@IssueInstant":c,"@Destination":this.options.logoutUrl,"saml:Issuer":{"@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","#text":this.options.issuer},"samlp:Extensions":{},"saml:NameID":{"@Format":a.nameIDFormat,"#text":a.nameID}}},e=this.options.samlLogoutRequestExtensions;if(null!=e){if("object"!=typeof e)throw TypeError("samlLogoutRequestExtensions should be Object");d["samlp:LogoutRequest"]["samlp:Extensions"]={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol",...e}}else delete d["samlp:LogoutRequest"]["samlp:Extensions"];return null!=a.nameQualifier&&(d["samlp:LogoutRequest"]["saml:NameID"]["@NameQualifier"]=a.nameQualifier),null!=a.spNameQualifier&&(d["samlp:LogoutRequest"]["saml:NameID"]["@SPNameQualifier"]=a.spNameQualifier),a.sessionIndex&&(d["samlp:LogoutRequest"]["saml2p:SessionIndex"]={"@xmlns:saml2p":"urn:oasis:names:tc:SAML:2.0:protocol","#text":a.sessionIndex}),await this.cacheProvider.saveAsync(b,c),(0,n.buildXmlBuilderObject)(d,!1)}_generateLogoutResponse(a,b){let c={"samlp:LogoutResponse":{"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","@ID":this.options.generateUniqueId(),"@Version":"2.0","@IssueInstant":(0,p.generateInstant)(),"@Destination":this.options.logoutUrl,"@InResponseTo":a.ID,"saml:Issuer":{"#text":this.options.issuer},"samlp:Status":b?{"samlp:StatusCode":{"@Value":"urn:oasis:names:tc:SAML:2.0:status:Success"}}:{"samlp:StatusCode":{"@Value":"urn:oasis:names:tc:SAML:2.0:status:Requester","samlp:StatusCode":{"@Value":"urn:oasis:names:tc:SAML:2.0:status:UnknownPrincipal"}}}}};return(0,n.buildXmlBuilderObject)(c,!1)}async _requestToUrlAsync(a,b,c,d){(0,m.assertRequired)(this.options.entryPoint,"entryPoint is required");let e=a||b;(0,m.assertRequired)(e,"either request or response is required");let f=(this.options.skipRequestCompression?Buffer.from(e,"utf8"):await v(e)).toString("base64"),h=new g.URL(this.options.entryPoint);if("logout"===c)this.options.logoutUrl&&(h=new g.URL(this.options.logoutUrl));else if("authorize"!==c)throw Error("Unknown operation: "+c);let i=a?{SAMLRequest:f}:{SAMLResponse:f};if(Object.keys(d).forEach(a=>{i[a]=d[a]}),(0,l.isValidSamlSigningOptions)(this.options)){if(!this.options.entryPoint)throw Error('"entryPoint" config parameter is required for signed messages');this.signRequest(i)}return Object.keys(i).forEach(a=>{h.searchParams.set(a,i[a])}),h.toString()}_getAdditionalParams(a,b,c){let d={};return"string"==typeof a&&a.length>0&&(d.RelayState=a),Object.assign(d,this.options.additionalParams,"logout"===b?this.options.additionalLogoutParams:this.options.additionalAuthorizeParams,null!=c?c:{})}async getAuthorizeUrlAsync(a,b,c){let d=await this.generateAuthorizeRequestAsync(this.options.passive,!1),e="authorize",f=c&&c.additionalParams||{};return await this._requestToUrlAsync(d,null,e,this._getAdditionalParams(a,e,f))}async getAuthorizeMessageAsync(a,b,c){let d;(0,m.assertRequired)(this.options.entryPoint,"entryPoint is required");let e=await this.generateAuthorizeRequestAsync(this.options.passive,!0);d=this.options.skipRequestCompression?Buffer.from(e,"utf8"):await v(e);let f=c&&c.additionalParams||{},g=this._getAdditionalParams(a,"authorize",f),h={SAMLRequest:d.toString("base64")};return Object.keys(g).forEach(a=>{h[a]=g[a]||""}),h}async getAuthorizeFormAsync(a,b,c){(0,m.assertRequired)(this.options.entryPoint,"entryPoint is required");let d=function(a,b){let c=b?"&#13;":"\n";return(""+a).replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r\n/g,c).replace(/[\r\n]/g,c)},e=await this.getAuthorizeMessageAsync(a,b,c),f=Object.keys(e).map(a=>'<input type="hidden" name="'+a+'" value="'+d(e[a])+'" />').join("\r\n");return["<!DOCTYPE html>","<html>","<head>",'<meta charset="utf-8">','<meta http-equiv="x-ua-compatible" content="ie=edge">',"</head>",'<body onload="document.forms[0].submit()">',"<noscript>","<p><strong>Note:</strong> Since your browser does not support JavaScript, you must press the button below once to proceed.</p>","</noscript>",'<form method="post" action="'+encodeURI(this.options.entryPoint)+'">',f,'<input type="submit" value="Submit" />',"</form>",'<script>document.forms[0].style.display="none";<\/script>',"</body>","</html>"].join("\r\n")}async getLogoutUrlAsync(a,b,c){let d=await this._generateLogoutRequest(a),e="logout",f=c&&c.additionalParams||{};return await this._requestToUrlAsync(d,null,e,this._getAdditionalParams(b,e,f))}getLogoutResponseUrl(a,b,c,d,e){i.callbackify(()=>this.getLogoutResponseUrlAsync(a,b,c,d))(e)}async getLogoutResponseUrlAsync(a,b,c,d){let e=this._generateLogoutResponse(a,d),f="logout",g=c&&c.additionalParams||{};return await this._requestToUrlAsync(null,e,f,this._getAdditionalParams(b,f,g))}async getKeyInfosAsPem(){return"function"==typeof this.options.idpCert?await w(this.options):(this.pemFiles.length>0||(this.pemFiles=await w(this.options)),this.pemFiles)}async getSignedAssertion(a){let b=(await (0,n.parseDomFromString)(a)).documentElement;if("Response"===b.localName){let a=n.xpath.selectElements(b,"./*[local-name()='Assertion']");if(1==a.length)return a[0].toString();let c=n.xpath.selectElements(b,"./*[local-name()='EncryptedAssertion']");if(1===c.length){(0,m.assertRequired)(this.options.decryptionPvk,"No decryption key for encrypted SAML response");let a=c[0].toString(),b=await (0,n.decryptXml)(a,this.options.decryptionPvk),d=(await (0,n.parseDomFromString)(b)).documentElement;if("Assertion"!==d.localName)throw Error("Invalid EncryptedAssertion content");return d.toString()}}else if("Assertion"===b.localName)return b.toString();return null}async validatePostResponseAsync(a){var b,c,d,e;let f,g,h=null;try{f=Buffer.from(a.SAMLResponse,"base64").toString("utf8"),g=await (0,n.parseDomFromString)(f);let i=n.xpath.selectAttributes(g,"/*[local-name()='Response']/@InResponseTo");i&&(h=i.length?i[0].nodeValue:null,await this.validateInResponseTo(h));let j=await this.getKeyInfosAsPem(),k=!1,o=(0,n.getVerifiedXml)(f,g.documentElement,j),p=null,q=null;if(o&&(k=!0),!0===this.options.wantAuthnResponseSigned&&!1===k)throw Error("Invalid document signature");let r=n.xpath.selectElements(g,"/*[local-name()='Response']/*[local-name()='Assertion']"),s=n.xpath.selectElements(g,"/*[local-name()='Response']/*[local-name()='EncryptedAssertion']");if(r.length+s.length>1)throw Error("Invalid signature: multiple assertions");if(1==r.length&&(this.options.wantAssertionsSigned||!k)&&!(p=(0,n.getVerifiedXml)(f,r[0],j)))throw Error("Invalid signature");if(1==s.length){(0,m.assertRequired)(this.options.decryptionPvk,"No decryption key for encrypted SAML response");let a=s[0].toString(),b=await (0,n.decryptXml)(a,this.options.decryptionPvk),c=await (0,n.parseDomFromString)(b),d=n.xpath.selectElements(c,"/*[local-name()='Assertion']");if(1!=d.length)throw Error("Invalid EncryptedAssertion content");if((this.options.wantAssertionsSigned||!k)&&(q=(0,n.getVerifiedXml)(b,d[0],j),null==q))throw Error("Invalid signature from encrypted assertion")}let t=o||p||q;if(t&&r.length+s.length==1){let a=await this.getSignedAssertion(t);if(null==a)throw Error("Cannot obtain assertion from signed data");return await this.processValidlySignedAssertionAsync(a,f,h)}let u=await (0,n.parseXml2JsFromString)(f),v=u.Response;if(v){if(!("Assertion"in v)){let a=v.Status;if(a){let f=a[0].StatusCode;if(f&&(null==(b=f[0].$)?void 0:b.Value)==="urn:oasis:names:tc:SAML:2.0:status:Responder"){let a=f[0].StatusCode;if(a&&(null==(c=a[0].$)?void 0:c.Value)==="urn:oasis:names:tc:SAML:2.0:status:NoPassive"){if(!k)throw Error("Invalid signature: NoPassive");return{profile:null,loggedOut:!1}}}if(f&&(null==(d=f[0].$)?void 0:d.Value)){let b=f[0].$.Value.match(/[^:]*$/);if(b&&"Success"!=b[0]){let c="unspecified";if(a[0].StatusMessage)c=a[0].StatusMessage[0]._||c;else if(f[0].StatusCode){let a=null==(e=f[0].StatusCode[0].$)?void 0:e.Value.match(/[^:]*$/);c=a?a[0]:c}let d=(0,n.buildXml2JsObject)("Status",a[0]);throw new l.SamlStatusError("SAML provider returned "+b+" error: "+c,d)}}}}throw Error("Missing SAML assertion")}if(!k)throw Error("Invalid signature: No response found");if(u.LogoutResponse)return{profile:null,loggedOut:!0};throw Error("Unknown SAML response message")}catch(a){throw t("validatePostResponse resulted in an error: %s",a),this.mustValidateInResponseTo(!!h)&&await this.cacheProvider.removeAsync(h),a}}async validateInResponseTo(a){if(this.mustValidateInResponseTo(!!a))if(a){if(!await this.cacheProvider.getAsync(a))throw Error("InResponseTo is not valid");return}else throw Error("InResponseTo is missing from response")}async validateRedirectAsync(a,b){let c=a.SAMLRequest?"SAMLRequest":"SAMLResponse",d=Buffer.from(a[c],"base64"),e=await u(d),f=await (0,n.parseDomFromString)(e.toString()),g=await (0,n.parseXml2JsFromString)(e);return"SAMLResponse"===c?await this.verifyLogoutResponse(g):this.verifyLogoutRequest(g),await this.hasValidSignatureForRedirect(a,b),await this.processValidlySignedSamlLogoutAsync(g,f)}async hasValidSignatureForRedirect(a,b){let c=b.split("&"),d=a=>c.filter(b=>new RegExp(a).test(b))[0];if(!a.Signature)return!0;{let b=d("SAMLRequest")||d("SAMLResponse");if(d("RelayState")&&(b+="&"+d("RelayState")),b+="&"+d("SigAlg"),!(await this.getKeyInfosAsPem()).some(c=>this.validateSignatureForRedirect(b,a.Signature,a.SigAlg,c)))throw Error("Invalid query signature")}}validateSignatureForRedirect(a,b,c,d){let e,g=f.getHashes().findIndex(function(a){let b=c.toLowerCase().replace(/.*#(.*)$/,"$1");return a.toLowerCase()===b});if(g>-1)e=f.getHashes()[g];else throw Error(c+" is not supported");let h=f.createVerify(e);return h.update(a),h.verify(d,b,"base64")}verifyLogoutRequest(a){this.verifyIssuer(a.LogoutRequest);let b=new Date().getTime(),c=a.LogoutRequest.$,d=this.checkTimestampsValidityError(b,c.NotBefore,c.NotOnOrAfter);if(d)throw d}async verifyLogoutResponse(a){let b=a.LogoutResponse.Status[0].StatusCode[0].$.Value;if("urn:oasis:names:tc:SAML:2.0:status:Success"!==b)throw Error("Bad status code: "+b);this.verifyIssuer(a.LogoutResponse);let c=a.LogoutResponse.$.InResponseTo;if(c)return this.validateInResponseTo(c)}verifyIssuer(a){if(null!=this.options.idpIssuer){let b=a.Issuer;if(b){if(b[0]._!==this.options.idpIssuer)throw Error("Unknown SAML issuer. Expected: "+this.options.idpIssuer+" Received: "+b[0]._)}else throw Error("Missing SAML issuer")}}async processValidlySignedAssertionAsync(a,b,c){let d=new Date().getTime(),e={},f=await (0,n.parseXml2JsFromString)(a),g=f.Assertion;b:{let a,b=g.Issuer;b&&b[0]._&&(e.issuer=b[0]._),null!=c&&(e.inResponseTo=c);let f=g.AuthnStatement;f&&f[0].$&&f[0].$.SessionIndex&&(e.sessionIndex=f[0].$.SessionIndex);let h=g.Subject,i=null,j=null;if(h){let b=h[0].NameID;b&&b[0]._&&(e.nameID=b[0]._,b[0].$&&b[0].$.Format&&(e.nameIDFormat=b[0].$.Format,e.nameQualifier=b[0].$.NameQualifier,e.spNameQualifier=b[0].$.SPNameQualifier)),null!=(a=null==(j=h[0].SubjectConfirmation)?void 0:j.find(a=>{var b;let c=null==(b=a.SubjectConfirmationData)?void 0:b[0];if(null==c?void 0:c.$){let a=c.$.NotBefore,b=c.$.NotOnOrAfter,e=this.calcMaxAgeAssertionTime(this.options.maxAssertionAgeMs,b,g.$.IssueInstant);if(null===this.checkTimestampsValidityError(d,a,b,e))return!0}return!1}))&&(i=a.SubjectConfirmationData[0])}if(this.mustValidateInResponseTo(!!c))if(a){if(null==i?void 0:i.$){let a=i.$.InResponseTo;if(c&&a&&a!=c)throw await this.cacheProvider.removeAsync(c),Error("InResponseTo does not match subjectInResponseTo");if(a){let b=!1,e=await this.cacheProvider.getAsync(a);if(e&&d<new Date(e).getTime()+this.options.requestIdExpirationPeriodMs&&(b=!0),await this.cacheProvider.removeAsync(c),!b)throw Error("SubjectInResponseTo is not valid");break b}}}else if(null!=j&&null==a)throw Error("No valid subject confirmation found among those available in the SAML assertion");else{await this.cacheProvider.removeAsync(c);break b}else break b}let h=g.Conditions?g.Conditions[0]:null;if(g.Conditions&&g.Conditions.length>1)throw Error("Unable to process multiple conditions in SAML assertion");if(h&&h.$){let a=this.calcMaxAgeAssertionTime(this.options.maxAssertionAgeMs,h.$.NotOnOrAfter,g.$.IssueInstant),b=this.checkTimestampsValidityError(d,h.$.NotBefore,h.$.NotOnOrAfter,a);if(b)throw b}if(!1!==this.options.audience){let a=this.checkAudienceValidityError(this.options.audience,h.AudienceRestriction);if(a)throw a}let i=g.AttributeStatement;if(i){let a=[].concat(...i.filter(a=>Array.isArray(a.Attribute)).map(a=>a.Attribute)),b=a=>Object.keys(a).some(a=>"_"!==a&&"$"!==a)?a:a._;if(a.length>0){let c={};a.forEach(a=>{if(!Object.prototype.hasOwnProperty.call(a,"AttributeValue"))return;let d=a.$.Name,f=1===a.AttributeValue.length?b(a.AttributeValue[0]):a.AttributeValue.map(b);c[d]=f,Object.prototype.hasOwnProperty.call(e,d)||(e[d]=f)}),e.attributes=c}}return!e.mail&&e["urn:oid:0.9.2342.19200300.100.1.3"]&&(e.mail=e["urn:oid:0.9.2342.19200300.100.1.3"]),!e.email&&e.mail&&(e.email=e.mail),e.getAssertionXml=()=>a.toString(),e.getAssertion=()=>f,e.getSamlResponseXml=()=>b,{profile:e,loggedOut:!1}}checkTimestampsValidityError(a,b,c,d){if(-1==this.options.acceptedClockSkewMs)return null;if(b){let c=(0,p.dateStringToTimestamp)(b,"NotBefore");if(a+this.options.acceptedClockSkewMs<c)return Error("SAML assertion not yet valid")}if(c){let b=(0,p.dateStringToTimestamp)(c,"NotOnOrAfter");if(a-this.options.acceptedClockSkewMs>=b)return Error("SAML assertion expired: clocks skewed too much")}return d&&a-this.options.acceptedClockSkewMs>=d?Error("SAML assertion expired: assertion too old"):null}checkAudienceValidityError(a,b){if(!b||b.length<1)return Error("SAML assertion has no AudienceRestriction");let c=b.map(b=>b.Audience&&b.Audience[0]&&b.Audience[0]._?b.Audience.every(b=>b._!==a)?Error("SAML assertion audience mismatch. Expected: "+a+" Received: "+b.Audience.map(a=>a._).join(", ")):null:Error("SAML assertion AudienceRestriction has no Audience value")).filter(a=>null!==a);return c.length>0?c[0]:null}async validatePostRequestAsync(a,{_parseDomFromString:b=n.parseDomFromString,_parseXml2JsFromString:c=n.parseXml2JsFromString,_validateSignature:d=n.validateSignature}={}){let e=Buffer.from(a.SAMLRequest,"base64").toString("utf8"),f=await b(e),g=await c(e),h=await this.getKeyInfosAsPem();if(!d(e,f.documentElement,h))throw Error("Invalid signature on documentElement");return await this.processValidlySignedPostRequestAsync(g,f)}async processValidlySignedPostRequestAsync(a,b){var c;let d=a.LogoutRequest;if(this.verifyLogoutRequest(a),d){let a={};if(d.$.ID)a.ID=d.$.ID;else throw Error("Missing SAML LogoutRequest ID");let e=d.Issuer;if(e&&e[0]._)a.issuer=e[0]._;else throw Error("Missing SAML issuer");let f=await (0,n.getNameIdAsync)(b,null!=(c=this.options.decryptionPvk)?c:null);if(f.value)a.nameID=f.value,f.format&&(a.nameIDFormat=f.format);else throw Error("Missing SAML NameID");let g=d.SessionIndex;return g&&(a.sessionIndex=g[0]._),{profile:a,loggedOut:!0}}throw Error("Unknown SAML request message")}async processValidlySignedSamlLogoutAsync(a,b){let c=a.LogoutResponse,d=a.LogoutRequest;if(c)return{profile:null,loggedOut:!0};if(d)return await this.processValidlySignedPostRequestAsync(a,b);throw Error("Unknown SAML response message")}generateServiceProviderMetadata(a,b){return(0,r.generateServiceProviderMetadata)({...this.options,decryptionCert:a,publicCerts:b})}calcMaxAgeAssertionTime(a,b,c){let d=(0,p.dateStringToTimestamp)(b,"NotOnOrAfter"),e=(0,p.dateStringToTimestamp)(c,"IssueInstant");if(0===a)return d;let f=e+a;return f<d?f:d}mustValidateInResponseTo(a){return this.options.validateInResponseTo===l.ValidateInResponseTo.always||this.options.validateInResponseTo===l.ValidateInResponseTo.ifPresent&&a}}b.SAML=x},48813:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=(function(){class a extends d{constructor(a,c,d){if(super(a),null==c)throw Error("Missing DTD notation name. "+this.debugInfo(c));if(!d.pubID&&!d.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(c));this.name=this.stringify.name(c),this.type=b.NotationDeclaration,null!=d.pubID&&(this.pubID=this.stringify.dtdPubID(d.pubID)),null!=d.sysID&&(this.sysID=this.stringify.dtdSysID(d.sysID))}toString(a){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(a))}}return Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),a}).call(this)}).call(this)},50962:function(a,b,c){(function(){var b,d,e,f,g,h,i;({isPlainObject:i}=c(43594)),e=c(88909),d=c(25141),f=c(73067),b=c(26468),h=c(31753),g=c(44981),a.exports=(function(){class a extends f{constructor(a){super(null),this.name="#document",this.type=b.Document,this.documentURI=null,this.domConfig=new d,a||(a={}),a.writer||(a.writer=new g),this.options=a,this.stringify=new h(a)}end(a){var b;return b={},a?i(a)&&(b=a,a=this.options.writer):a=this.options.writer,a.document(this,a.filterOptions(b))}toString(a){return this.options.writer.document(this,this.options.writer.filterOptions(a))}createElement(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createComment(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}importNode(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementById(a){throw Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw Error("This DOM method is not implemented."+this.debugInfo())}renameNode(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createEvent(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(a.prototype,"implementation",{value:new e}),Object.defineProperty(a.prototype,"doctype",{get:function(){var a,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if((a=e[c]).type===b.DocType)return a;return null}}),Object.defineProperty(a.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(a.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(a.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].encoding:null}}),Object.defineProperty(a.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(a.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(a.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(a.prototype,"origin",{get:function(){return null}}),Object.defineProperty(a.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(a.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(a.prototype,"contentType",{get:function(){return null}}),a}).call(this)}).call(this)},55443:function(a,b,c){(function(){var b,d,e;({isObject:e}=c(43594)),d=c(73067),b=c(26468),a.exports=class extends d{constructor(a,c,d,f){super(a),e(c)&&({version:c,encoding:d,standalone:f}=c),c||(c="1.0"),this.type=b.Declaration,this.version=this.stringify.xmlVersion(c),null!=d&&(this.encoding=this.stringify.xmlEncoding(d)),null!=f&&(this.standalone=this.stringify.xmlStandalone(f))}toString(a){return this.options.writer.declaration(this,this.options.writer.filterOptions(a))}}}).call(this)},56068:function(a,b){(function(){b.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},58029:(a,b)=>{!function(a){"use strict";var b,c,d,e,f=function(a,b){for(var c=0;c<b.length;c+=1)a(b[c],c,b)},g=function(a,b,c){var d=b;return f(function(b,c){d=a(d,b,c)},c),d},h=function(a,b){var c=Array(b.length);return f(function(b,d){c[d]=a(b)},b),c},i=function(a,b){var c=[];return f(function(b,d){a(b,d)&&c.push(b)},b),c},j=function(a,b){for(var c=0;c<a.length;c+=1)if(a[c]===b)return!0;return!1};function k(a){return a.toString()}var l=function(a,b){return b.join(a)},m=function(a,b,c){return a+c+b},n=Array.prototype.concat;function o(a,b){for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(c[f]=e[f])}return c}function p(){this.init()}function q(a){this.expression=a}function r(a,b,c){b in a||(a[b]=c)}function s(){}function t(a){arguments.length>0&&this.init(a)}function u(a){arguments.length>0&&this.init(a)}function v(a,b){arguments.length>0&&this.init(a,b)}function w(a,b){arguments.length>0&&this.init(a,b)}function x(a,b){arguments.length>0&&this.init(a,b)}function y(a,b){arguments.length>0&&this.init(a,b)}function z(a,b){arguments.length>0&&this.init(a,b)}function A(a,b){arguments.length>0&&this.init(a,b)}function B(a,b){arguments.length>0&&this.init(a,b)}function C(a,b){arguments.length>0&&this.init(a,b)}function D(a,b){arguments.length>0&&this.init(a,b)}function E(a,b){arguments.length>0&&this.init(a,b)}function F(a,b){arguments.length>0&&this.init(a,b)}function G(a,b){arguments.length>0&&this.init(a,b)}function H(a,b){arguments.length>0&&this.init(a,b)}function I(a,b){arguments.length>0&&this.init(a,b)}function J(a,b){arguments.length>0&&this.init(a,b)}function K(a,b,c){arguments.length>0&&this.init(a,b,c)}function L(a,b,c){return K.applyPredicates(a.predicates,b,K.applyStep(a,b,c))}function M(a,b,c){return function(a){for(var b=[],c=0;c<a.length;c+=32767){var d=a.slice(c,c+32767);b=n.apply(b,d)}return b}(h(L.bind(null,c,a),b))}function N(a,b){arguments.length>0&&this.init(a,b)}function O(a,b,c){arguments.length>0&&this.init(a,b,c)}function P(a,b){arguments.length>0&&this.init(a,b)}function Q(a){arguments.length>0&&this.init(a)}function R(a,b){arguments.length>0&&this.init(a,b)}p.prototype={},p.prototype.constructor=p,p.superclass=Object.prototype,p.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(a){return new w(a[0],a[2])},this.reduceActions[5]=function(a){return new x(a[0],a[2])},this.reduceActions[7]=function(a){return new y(a[0],a[2])},this.reduceActions[8]=function(a){return new z(a[0],a[2])},this.reduceActions[10]=function(a){return new A(a[0],a[2])},this.reduceActions[11]=function(a){return new B(a[0],a[2])},this.reduceActions[12]=function(a){return new C(a[0],a[2])},this.reduceActions[13]=function(a){return new D(a[0],a[2])},this.reduceActions[15]=function(a){return new E(a[0],a[2])},this.reduceActions[16]=function(a){return new F(a[0],a[2])},this.reduceActions[18]=function(a){return new G(a[0],a[2])},this.reduceActions[19]=function(a){return new H(a[0],a[2])},this.reduceActions[20]=function(a){return new I(a[0],a[2])},this.reduceActions[22]=function(a){return new u(a[1])},this.reduceActions[24]=function(a){return new J(a[0],a[2])},this.reduceActions[25]=function(a){return new K(void 0,void 0,a[0])},this.reduceActions[27]=function(a){return a[0].locationPath=a[2],a[0]},this.reduceActions[28]=function(a){return a[0].locationPath=a[2],a[0].locationPath.steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0]},this.reduceActions[29]=function(a){return new K(a[0],[],void 0)},this.reduceActions[30]=function(a){return ac.instance_of(a[0],K)?(void 0==a[0].filterPredicates&&(a[0].filterPredicates=[]),a[0].filterPredicates.push(a[1]),a[0]):new K(a[0],[a[1]],void 0)},this.reduceActions[32]=function(a){return a[1]},this.reduceActions[33]=function(a){return new T(a[0])},this.reduceActions[34]=function(a){return new U(a[0])},this.reduceActions[36]=function(a){return new R(a[0],[])},this.reduceActions[37]=function(a){return new R(a[0],a[2])},this.reduceActions[38]=function(a){return[a[0]]},this.reduceActions[39]=function(a){return a[2].unshift(a[0]),a[2]},this.reduceActions[43]=function(a){return new N(!0,[])},this.reduceActions[44]=function(a){return a[1].absolute=!0,a[1]},this.reduceActions[46]=function(a){return new N(!1,[a[0]])},this.reduceActions[47]=function(a){return a[0].steps.push(a[2]),a[0]},this.reduceActions[49]=function(a){return new O(a[0],a[1],[])},this.reduceActions[50]=function(a){return new O(O.CHILD,a[0],[])},this.reduceActions[51]=function(a){return new O(a[0],a[1],a[2])},this.reduceActions[52]=function(a){return new O(O.CHILD,a[0],a[1])},this.reduceActions[54]=function(a){return[a[0]]},this.reduceActions[55]=function(a){return a[1].unshift(a[0]),a[1]},this.reduceActions[56]=function(a){if("ancestor"==a[0])return O.ANCESTOR;if("ancestor-or-self"==a[0])return O.ANCESTORORSELF;if("attribute"==a[0])return O.ATTRIBUTE;if("child"==a[0])return O.CHILD;if("descendant"==a[0])return O.DESCENDANT;else if("descendant-or-self"==a[0])return O.DESCENDANTORSELF;else if("following"==a[0])return O.FOLLOWING;else if("following-sibling"==a[0])return O.FOLLOWINGSIBLING;else if("namespace"==a[0])return O.NAMESPACE;else if("parent"==a[0])return O.PARENT;else if("preceding"==a[0])return O.PRECEDING;else if("preceding-sibling"==a[0])return O.PRECEDINGSIBLING;else if("self"==a[0])return O.SELF;return -1},this.reduceActions[57]=function(a){return O.ATTRIBUTE},this.reduceActions[59]=function(a){return"comment"==a[0]?P.commentTest:"text"==a[0]?P.textTest:"processing-instruction"==a[0]?P.anyPiTest:"node"==a[0]?P.nodeTest:new P(-1,void 0)},this.reduceActions[60]=function(a){return new P.PITest(a[2])},this.reduceActions[61]=function(a){return a[1]},this.reduceActions[63]=function(a){return a[1].absolute=!0,a[1].steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[1]},this.reduceActions[64]=function(a){return a[0].steps.push(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0].steps.push(a[2]),a[0]},this.reduceActions[65]=function(a){return new O(O.SELF,P.nodeTest,[])},this.reduceActions[66]=function(a){return new O(O.PARENT,P.nodeTest,[])},this.reduceActions[67]=function(a){return new Q(a[1])},this.reduceActions[68]=function(a){return P.nameTestAny},this.reduceActions[69]=function(a){return new P.NameTestPrefixAny(a[0].split(":")[0])},this.reduceActions[70]=function(a){return new P.NameTestQName(a[0])}},p.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],p.actionTableNumber=[" 1 0 /.-,+*)(' & %$ # \"!"," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY "," 1 0 /.-,+*)(' & %$ # \"!","K1 KKKKKKKK . +*)('KKKKKK KK# K\" "," 1 0 /.-,+*)(' & %$ # \"!"," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q "," 1 . +*)(' # \" ","b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX "," 1 0 /.-,+*)(' & %$m # \"!","_ f________ ______e __ _ "," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 . +*)(' # \" "," 1 . +*)(' # \" ","> >>>>>>>>> >>>>>>> >> >> "," 1 . +*)(' # \" "," 1 . +*)(' # \" ","Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," \x87 ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," \x88 "," F\x89 ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," \x8a ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE "," 1 0 /.-,+*)(' & %$ # \"!","] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],p.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","\x80456789:;<=>?@ AB CDEFGH IJ\x81"," \x82 EFGH IJ "," \x83 EFGH IJ "," "," \x84 GH IJ "," \x85 GH IJ "," i \x86 "," i \x87 "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ AB\x8cqCDEFGH IJ "," "," "],p.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],p.DOUBLEDOT=2,p.DOUBLECOLON=3,p.DOUBLESLASH=4,p.NOTEQUAL=5,p.LESSTHANOREQUAL=6,p.GREATERTHANOREQUAL=7,p.AND=8,p.OR=9,p.MOD=10,p.DIV=11,p.MULTIPLYOPERATOR=12,p.FUNCTIONNAME=13,p.AXISNAME=14,p.LITERAL=15,p.NUMBER=16,p.ASTERISKNAMETEST=17,p.QNAME=18,p.NCNAMECOLONASTERISK=19,p.NODETYPE=20,p.PROCESSINGINSTRUCTIONWITHLITERAL=21,p.EQUALS=22,p.LESSTHAN=23,p.GREATERTHAN=24,p.PLUS=25,p.MINUS=26,p.BAR=27,p.SLASH=28,p.LEFTPARENTHESIS=29,p.RIGHTPARENTHESIS=30,p.COMMA=31,p.AT=32,p.LEFTBRACKET=33,p.RIGHTBRACKET=34,p.DOT=35,p.DOLLAR=36,p.prototype.tokenize=function(a){for(var b=[],c=[],d=a+"\0",e=0,f=d.charAt(e++);;){for(;" "==f||" "==f||"\r"==f||"\n"==f;)f=d.charAt(e++);if("\0"==f||e>=d.length)break;if("("==f){b.push(p.LEFTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if(")"==f){b.push(p.RIGHTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if("["==f){b.push(p.LEFTBRACKET),c.push(f),f=d.charAt(e++);continue}if("]"==f){b.push(p.RIGHTBRACKET),c.push(f),f=d.charAt(e++);continue}if("@"==f){b.push(p.AT),c.push(f),f=d.charAt(e++);continue}if(","==f){b.push(p.COMMA),c.push(f),f=d.charAt(e++);continue}if("|"==f){b.push(p.BAR),c.push(f),f=d.charAt(e++);continue}if("+"==f){b.push(p.PLUS),c.push(f),f=d.charAt(e++);continue}if("-"==f){b.push(p.MINUS),c.push(f),f=d.charAt(e++);continue}if("="==f){b.push(p.EQUALS),c.push(f),f=d.charAt(e++);continue}if("$"==f){b.push(p.DOLLAR),c.push(f),f=d.charAt(e++);continue}if("."==f){if("."==(f=d.charAt(e++))){b.push(p.DOUBLEDOT),c.push(".."),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g="."+f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}b.push(p.DOT),c.push(".");continue}if("'"==f||'"'==f){for(var h=f,i="";e<d.length&&(f=d.charAt(e))!==h;)i+=f,e+=1;if(f!==h)throw ad.fromMessage("Unterminated string literal: "+h+i);e+=1,b.push(p.LITERAL),c.push(i),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g=f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);if("."==f&&d.charAt(e)>="0"&&"9">=d.charAt(e))for(g+=f,g+=d.charAt(e++),f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}if("*"==f){if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){b.push(p.MULTIPLYOPERATOR),c.push(f),f=d.charAt(e++);continue}}b.push(p.ASTERISKNAMETEST),c.push(f),f=d.charAt(e++);continue}if(":"==f&&":"==d.charAt(e)){b.push(p.DOUBLECOLON),c.push("::"),e++,f=d.charAt(e++);continue}if("/"==f){if("/"==(f=d.charAt(e++))){b.push(p.DOUBLESLASH),c.push("//"),f=d.charAt(e++);continue}b.push(p.SLASH),c.push("/");continue}if("!"==f&&"="==d.charAt(e)){b.push(p.NOTEQUAL),c.push("!="),e++,f=d.charAt(e++);continue}if("<"==f){if("="==d.charAt(e)){b.push(p.LESSTHANOREQUAL),c.push("<="),e++,f=d.charAt(e++);continue}b.push(p.LESSTHAN),c.push("<"),f=d.charAt(e++);continue}if(">"==f){if("="==d.charAt(e)){b.push(p.GREATERTHANOREQUAL),c.push(">="),e++,f=d.charAt(e++);continue}b.push(p.GREATERTHAN),c.push(">"),f=d.charAt(e++);continue}if("_"==f||ac.isLetter(f.charCodeAt(0))){var k=f;for(f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){if("and"==k){b.push(p.AND),c.push(k);continue}if("or"==k){b.push(p.OR),c.push(k);continue}if("mod"==k){b.push(p.MOD),c.push(k);continue}if("div"==k){b.push(p.DIV),c.push(k);continue}}}if(":"==f){if("*"==d.charAt(e)){b.push(p.NCNAMECOLONASTERISK),c.push(k+":*"),e++,f=d.charAt(e++);continue}if("_"==d.charAt(e)||ac.isLetter(d.charCodeAt(e))){for(k+=":",f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if("("==f){b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}if(":"==d.charAt(e)){b.push(p.AXISNAME),c.push(k);continue}}if("("==f){if("comment"==k||"text"==k||"node"==k){b.push(p.NODETYPE),c.push(k);continue}if("processing-instruction"==k){")"==d.charAt(e)?b.push(p.NODETYPE):b.push(p.PROCESSINGINSTRUCTIONWITHLITERAL),c.push(k);continue}b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}throw Error("Unexpected character "+f)}return b.push(1),c.push("[EOF]"),[b,c]},p.SHIFT="s",p.REDUCE="r",p.ACCEPT="a",p.prototype.parse=function(a){var b,c,d,e,f=this.tokenize(a);if(void 0!=f){b=f[0],c=f[1];var g=0,h=[],i=[],j=[];for(h.push(0),i.push(1),j.push("_S"),d=b[g],e=c[g++];;)switch(a=h[h.length-1],p.actionTable[a].charAt(d-1)){case p.SHIFT:i.push(-d),j.push(e),h.push(p.actionTableNumber[a].charCodeAt(d-1)-32),d=b[g],e=c[g++];break;case p.REDUCE:for(var k=p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][1],l=[],m=0;m<k;m++)i.pop(),l.unshift(j.pop()),h.pop();var n=h[h.length-1];i.push(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]),void 0==this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32]?j.push(l[0]):j.push(this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32](l)),h.push(p.gotoTable[n].charCodeAt(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]-2)-33);break;case p.ACCEPT:return new q(j.pop());default:throw Error("XPath parse error")}}},q.prototype={},q.prototype.constructor=q,q.superclass=Object.prototype,q.prototype.toString=function(){return this.expression.toString()},q.prototype.evaluate=function(a){return a.contextNode=a.expressionContextNode,a.contextSize=1,a.contextPosition=1,a.isHtml&&(r(a,"caseInsensitive",!0),r(a,"allowAnyNamespaceForNoPrefix",!0)),r(a,"caseInsensitive",!1),this.expression.evaluate(a)},q.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",q.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",s.prototype={},s.prototype.constructor=s,s.superclass=Object.prototype,s.prototype.init=function(){},s.prototype.toString=function(){return"<Expression>"},s.prototype.evaluate=function(a){throw Error("Could not evaluate expression.")},t.prototype=new s,t.prototype.constructor=t,t.superclass=s.prototype,t.prototype.init=function(a){this.rhs=a},u.prototype=new t,u.prototype.constructor=u,u.superclass=t.prototype,u.prototype.init=function(a){u.superclass.init.call(this,a)},u.prototype.evaluate=function(a){return this.rhs.evaluate(a).number().negate()},u.prototype.toString=function(){return"-"+this.rhs.toString()},v.prototype=new s,v.prototype.constructor=v,v.superclass=s.prototype,v.prototype.init=function(a,b){this.lhs=a,this.rhs=b},w.prototype=new v,w.prototype.constructor=w,w.superclass=v.prototype,w.prototype.init=function(a,b){w.superclass.init.call(this,a,b)},w.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},w.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?b:this.rhs.evaluate(a).bool()},x.prototype=new v,x.prototype.constructor=x,x.superclass=v.prototype,x.prototype.init=function(a,b){x.superclass.init.call(this,a,b)},x.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},x.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?this.rhs.evaluate(a).bool():b},y.prototype=new v,y.prototype.constructor=y,y.superclass=v.prototype,y.prototype.init=function(a,b){y.superclass.init.call(this,a,b)},y.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},y.prototype.evaluate=function(a){return this.lhs.evaluate(a).equals(this.rhs.evaluate(a))},z.prototype=new v,z.prototype.constructor=z,z.superclass=v.prototype,z.prototype.init=function(a,b){z.superclass.init.call(this,a,b)},z.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},z.prototype.evaluate=function(a){return this.lhs.evaluate(a).notequal(this.rhs.evaluate(a))},A.prototype=new v,A.prototype.constructor=A,A.superclass=v.prototype,A.prototype.init=function(a,b){A.superclass.init.call(this,a,b)},A.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthan(this.rhs.evaluate(a))},A.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},B.prototype=new v,B.prototype.constructor=B,B.superclass=v.prototype,B.prototype.init=function(a,b){B.superclass.init.call(this,a,b)},B.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthan(this.rhs.evaluate(a))},B.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},C.prototype=new v,C.prototype.constructor=C,C.superclass=v.prototype,C.prototype.init=function(a,b){C.superclass.init.call(this,a,b)},C.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthanorequal(this.rhs.evaluate(a))},C.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},D.prototype=new v,D.prototype.constructor=D,D.superclass=v.prototype,D.prototype.init=function(a,b){D.superclass.init.call(this,a,b)},D.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthanorequal(this.rhs.evaluate(a))},D.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},E.prototype=new v,E.prototype.constructor=E,E.superclass=v.prototype,E.prototype.init=function(a,b){E.superclass.init.call(this,a,b)},E.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().plus(this.rhs.evaluate(a).number())},E.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},F.prototype=new v,F.prototype.constructor=F,F.superclass=v.prototype,F.prototype.init=function(a,b){F.superclass.init.call(this,a,b)},F.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().minus(this.rhs.evaluate(a).number())},F.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},G.prototype=new v,G.prototype.constructor=G,G.superclass=v.prototype,G.prototype.init=function(a,b){G.superclass.init.call(this,a,b)},G.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().multiply(this.rhs.evaluate(a).number())},G.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},H.prototype=new v,H.prototype.constructor=H,H.superclass=v.prototype,H.prototype.init=function(a,b){H.superclass.init.call(this,a,b)},H.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().div(this.rhs.evaluate(a).number())},H.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},I.prototype=new v,I.prototype.constructor=I,I.superclass=v.prototype,I.prototype.init=function(a,b){I.superclass.init.call(this,a,b)},I.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().mod(this.rhs.evaluate(a).number())},I.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},J.prototype=new v,J.prototype.constructor=J,J.superclass=v.prototype,J.prototype.init=function(a,b){J.superclass.init.call(this,a,b)},J.prototype.evaluate=function(a){return this.lhs.evaluate(a).nodeset().union(this.rhs.evaluate(a).nodeset())},J.prototype.toString=function(){return h(k,[this.lhs,this.rhs]).join(" | ")},K.prototype=new s,K.prototype.constructor=K,K.superclass=s.prototype,K.prototype.init=function(a,b,c){K.superclass.init.call(this),this.filter=a,this.filterPredicates=b,this.locationPath=c},K.applyPredicates=function(a,b,c){if(0===a.length)return c;var d=b.extend({});return g(function(a,b){return d.contextSize=a.length,i(function(a,c){return d.contextNode=a,d.contextPosition=c+1,K.predicateMatches(b,d)},a)},c,a)},K.getRoot=function(a,b){var c=b[0];if(9===c.nodeType)return c;if(a.virtualRoot)return a.virtualRoot;var d=c.ownerDocument;if(d)return d;for(var e=c;null!=e.parentNode;)e=e.parentNode;return e},K.applyStep=function(a,b,c){var d,e,f=[];switch(b.contextNode=c,a.axis){case O.ANCESTOR:if(b.contextNode===b.virtualRoot)break;for(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);)d=d.parentNode;break;case O.ANCESTORORSELF:for(var d=b.contextNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);d=2==d.nodeType?K.getOwnerElement(d):d.parentNode);break;case O.ATTRIBUTE:var g=b.contextNode.attributes;if(null!=g)for(var h=0;h<g.length;h++){var d=g.item(h);a.nodeTest.matches(d,b)&&f.push(d)}break;case O.CHILD:for(var d=b.contextNode.firstChild;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.DESCENDANT:for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.DESCENDANTORSELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode);for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.FOLLOWING:if(b.contextNode===b.virtualRoot)break;var e=[];null!=b.contextNode.firstChild?e.unshift(b.contextNode.firstChild):e.unshift(b.contextNode.nextSibling);for(var d=b.contextNode.parentNode;null!=d&&9!=d.nodeType&&d!==b.virtualRoot;d=d.parentNode)e.unshift(d.nextSibling);do for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;while(e.length>0);break;case O.FOLLOWINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.nextSibling;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.NAMESPACE:var i={};if(1==b.contextNode.nodeType){i.xml=q.XML_NAMESPACE_URI,i.xmlns=q.XMLNS_NAMESPACE_URI;for(var d=b.contextNode;null!=d&&1==d.nodeType;d=d.parentNode)for(var h=0;h<d.attributes.length;h++){var j=d.attributes.item(h),k=String(j.name);if("xmlns"==k)void 0==i[""]&&(i[""]=j.value);else if(k.length>6&&"xmlns:"==k.substring(0,6)){var l=k.substring(6,k.length);void 0==i[l]&&(i[l]=j.value)}}for(var l in i){var m=new Y(l,i[l],b.contextNode);a.nodeTest.matches(m,b)&&f.push(m)}}break;case O.PARENT:d=null,b.contextNode!==b.virtualRoot&&(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode),null!=d&&a.nodeTest.matches(d,b)&&f.push(d);break;case O.PRECEDING:e=null!=b.virtualRoot?[b.virtualRoot]:[function(a){for(;a&&a.parentNode;)a=a.parentNode;return a}(b.contextNode)];a:for(;e.length>0;)for(var d=e.pop();null!=d;){if(d==b.contextNode)break a;a.nodeTest.matches(d,b)&&f.unshift(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling}break;case O.PRECEDINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.previousSibling;null!=d;d=d.previousSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.SELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode)}return f},K.applySteps=function(a,b,c){return g(M.bind(null,b),c,a)},K.prototype.applyFilter=function(a,b){if(!this.filter)return{nodes:[a.contextNode]};var c=this.filter.evaluate(a);if(!ac.instance_of(c,X)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:c}}return{nodes:K.applyPredicates(this.filterPredicates||[],b,c.toUnsortedArray())}},K.applyLocationPath=function(a,b,c){if(!a)return c;var d=a.absolute?[K.getRoot(b,c)]:c;return K.applySteps(a.steps,b,d)},K.prototype.evaluate=function(a){var b=o(new Z,a),c=this.applyFilter(a,b);if("nonNodes"in c)return c.nonNodes;var d=new X;return d.addArray(K.applyLocationPath(this.locationPath,b,c.nodes)),d},K.predicateMatches=function(a,b){var c=a.evaluate(b);return ac.instance_of(c,U)?b.contextPosition===c.numberValue():c.booleanValue()},K.predicateString=function(a){return m("[","]",a.toString())},K.predicatesString=function(a){return l("",h(K.predicateString,a))},K.prototype.toString=function(){if(void 0!=this.filter){var a=k(this.filter);return ac.instance_of(this.filter,T)?m("'","'",a):void 0!=this.filterPredicates&&this.filterPredicates.length?m("(",")",a)+K.predicatesString(this.filterPredicates):void 0!=this.locationPath?a+(this.locationPath.absolute?"":"/")+k(this.locationPath):a}return k(this.locationPath)},K.getOwnerElement=function(a){if(a.ownerElement)return a.ownerElement;try{if(a.selectSingleNode)return a.selectSingleNode("..")}catch(a){}for(var b=(9==a.nodeType?a:a.ownerDocument).getElementsByTagName("*"),c=0;c<b.length;c++)for(var d=b.item(c),e=d.attributes,f=0;f<e.length;f++)if(e.item(f)===a)return d;return null},N.prototype={},N.prototype.constructor=N,N.superclass=Object.prototype,N.prototype.init=function(a,b){this.absolute=a,this.steps=b},N.prototype.toString=function(){return(this.absolute?"/":"")+h(k,this.steps).join("/")},O.prototype={},O.prototype.constructor=O,O.superclass=Object.prototype,O.prototype.init=function(a,b,c){this.axis=a,this.nodeTest=b,this.predicates=c},O.prototype.toString=function(){return O.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+K.predicatesString(this.predicates)},O.ANCESTOR=0,O.ANCESTORORSELF=1,O.ATTRIBUTE=2,O.CHILD=3,O.DESCENDANT=4,O.DESCENDANTORSELF=5,O.FOLLOWING=6,O.FOLLOWINGSIBLING=7,O.NAMESPACE=8,O.PARENT=9,O.PRECEDING=10,O.PRECEDINGSIBLING=11,O.SELF=12,O.STEPNAMES=g(function(a,b){return a[b[0]]=b[1],a},{},[[O.ANCESTOR,"ancestor"],[O.ANCESTORORSELF,"ancestor-or-self"],[O.ATTRIBUTE,"attribute"],[O.CHILD,"child"],[O.DESCENDANT,"descendant"],[O.DESCENDANTORSELF,"descendant-or-self"],[O.FOLLOWING,"following"],[O.FOLLOWINGSIBLING,"following-sibling"],[O.NAMESPACE,"namespace"],[O.PARENT,"parent"],[O.PRECEDING,"preceding"],[O.PRECEDINGSIBLING,"preceding-sibling"],[O.SELF,"self"]]),P.prototype={},P.prototype.constructor=P,P.superclass=Object.prototype,P.prototype.init=function(a,b){this.type=a,this.value=b},P.prototype.toString=function(){return"<unknown nodetest type>"},P.prototype.matches=function(a,b){console.warn("unknown node test type")},P.NAMETESTANY=0,P.NAMETESTPREFIXANY=1,P.NAMETESTQNAME=2,P.COMMENT=3,P.TEXT=4,P.PI=5,P.NODE=6,P.isNodeType=function(a){return function(b){return j(a,b.nodeType)}},P.makeNodeTestType=function(a,b,c){var d=c||function(){};return d.prototype=new P(a),d.prototype.constructor=d,o(d.prototype,b),d},P.makeNodeTypeTest=function(a,b,c){return new(P.makeNodeTestType(a,{matches:P.isNodeType(b),toString:function(){return c}}))},P.hasPrefix=function(a){return a.prefix||-1!==(a.nodeName||a.tagName).indexOf(":")},P.isElementOrAttribute=P.isNodeType([1,2]),P.nameSpaceMatches=function(a,b,c){var d=c.namespaceURI||"";if(!a)return!d||b.allowAnyNamespaceForNoPrefix&&!P.hasPrefix(c);var e=b.namespaceResolver.getNamespace(a,b.expressionContextNode);if(null==e)throw Error("Cannot resolve QName "+a);return e===d},P.localNameMatches=function(a,b,c){var d=c.localName||c.nodeName;return b.caseInsensitive?a.toLowerCase()===d.toLowerCase():a===d},P.NameTestPrefixAny=P.makeNodeTestType(P.NAMETESTPREFIXANY,{matches:function(a,b){return P.isElementOrAttribute(a)&&P.nameSpaceMatches(this.prefix,b,a)},toString:function(){return this.prefix+":*"}},function(a){this.prefix=a}),P.NameTestQName=P.makeNodeTestType(P.NAMETESTQNAME,{matches:function(a,b){return P.isNodeType([1,2,Y.XPATH_NAMESPACE_NODE])(a)&&P.nameSpaceMatches(this.prefix,b,a)&&P.localNameMatches(this.localName,b,a)},toString:function(){return this.name}},function(a){var b=a.split(":");this.name=a,this.prefix=b.length>1?b[0]:null,this.localName=b[+(b.length>1)]}),P.PITest=P.makeNodeTestType(P.PI,{matches:function(a,b){return P.isNodeType([7])(a)&&(a.target||a.nodeName)===this.name},toString:function(){return m('processing-instruction("','")',this.name)}},function(a){this.name=a}),P.nameTestAny=P.makeNodeTypeTest(P.NAMETESTANY,[1,2,Y.XPATH_NAMESPACE_NODE],"*"),P.textTest=P.makeNodeTypeTest(P.TEXT,[3,4],"text()"),P.commentTest=P.makeNodeTypeTest(P.COMMENT,[8],"comment()"),P.nodeTest=P.makeNodeTypeTest(P.NODE,[1,2,3,4,7,8,9],"node()"),P.anyPiTest=P.makeNodeTypeTest(P.PI,[7],"processing-instruction()"),Q.prototype=new s,Q.prototype.constructor=Q,Q.superclass=s.prototype,Q.prototype.init=function(a){this.variable=a},Q.prototype.toString=function(){return"$"+this.variable},Q.prototype.evaluate=function(a){var b=ac.resolveQName(this.variable,a.namespaceResolver,a.contextNode,!1);if(null==b[0])throw Error("Cannot resolve QName "+fn);var c=a.variableResolver.getVariable(b[1],b[0]);if(!c)throw ad.fromMessage("Undeclared variable: "+this.toString());return c},R.prototype=new s,R.prototype.constructor=R,R.superclass=s.prototype,R.prototype.init=function(a,b){this.functionName=a,this.arguments=b},R.prototype.toString=function(){for(var a=this.functionName+"(",b=0;b<this.arguments.length;b++)b>0&&(a+=", "),a+=this.arguments[b].toString();return a+")"},R.prototype.evaluate=function(a){var b=_.getFunctionFromContext(this.functionName,a);if(!b)throw Error("Unknown function "+this.functionName);var c=[a].concat(this.arguments);return b.apply(a.functionResolver.thisArg,c)};var S={};function T(a){arguments.length>0&&this.init(a)}function U(a){arguments.length>0&&this.init(a)}function V(a){arguments.length>0&&this.init(a)}function W(a){this.init(a)}function X(){this.init()}function Y(a,b,c){this.isXPathNamespace=!0,this.ownerDocument=c.ownerDocument,this.nodeName="#namespace",this.prefix=a,this.localName=a,this.namespaceURI=b,this.nodeValue=b,this.ownerElement=c,this.nodeType=Y.XPATH_NAMESPACE_NODE}function Z(a,b,c){this.variableResolver=null!=a?a:new $,this.namespaceResolver=null!=b?b:new aa,this.functionResolver=null!=c?c:new _}function $(){}function _(a){this.thisArg=null!=a?a:ab,this.functions={},this.addStandardFunctions()}function aa(){}S.equals=function(a,b){return a.equals(b)},S.notequal=function(a,b){return a.notequal(b)},S.lessthan=function(a,b){return a.lessthan(b)},S.greaterthan=function(a,b){return a.greaterthan(b)},S.lessthanorequal=function(a,b){return a.lessthanorequal(b)},S.greaterthanorequal=function(a,b){return a.greaterthanorequal(b)},T.prototype=new s,T.prototype.constructor=T,T.superclass=s.prototype,T.prototype.init=function(a){this.str=String(a)},T.prototype.toString=function(){return this.str},T.prototype.evaluate=function(a){return this},T.prototype.string=function(){return this},T.prototype.number=function(){return new U(this.str)},T.prototype.bool=function(){return new V(this.str)},T.prototype.nodeset=function(){throw Error("Cannot convert string to nodeset")},T.prototype.stringValue=function(){return this.str},T.prototype.numberValue=function(){return this.number().numberValue()},T.prototype.booleanValue=function(){return this.bool().booleanValue()},T.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,U)?this.number().equals(a):ac.instance_of(a,X)?a.compareWithString(this,S.equals):new V(this.str==a.str)},T.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,U)?this.number().notequal(a):ac.instance_of(a,X)?a.compareWithString(this,S.notequal):new V(this.str!=a.str)},T.prototype.lessthan=function(a){return this.number().lessthan(a)},T.prototype.greaterthan=function(a){return this.number().greaterthan(a)},T.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},T.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},U.prototype=new s,U.prototype.constructor=U,U.superclass=s.prototype,U.prototype.init=function(a){this.num="string"==typeof a?this.parse(a):Number(a)},U.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,U.prototype.parse=function(a){return this.numberFormat.test(a)?parseFloat(a):NaN},U.prototype.toString=function(){var a=this.num.toString();if(-1!==a.indexOf("e-")){for(var b=a.split("e-"),c=b[0].replace(".",""),d=Number(b[1]),e=0;e<d-1;e+=1)c="0"+c;return"0."+c}if(-1!==a.indexOf("e")){for(var f=a.split("e"),g=f[0].replace(".",""),h=Number(f[1])+1-g.length,i=0;i<h;i+=1)g+="0";return g}return a},U.prototype.evaluate=function(a){return this},U.prototype.string=function(){return new T(this.toString())},U.prototype.number=function(){return this},U.prototype.bool=function(){return new V(this.num)},U.prototype.nodeset=function(){throw Error("Cannot convert number to nodeset")},U.prototype.stringValue=function(){return this.string().stringValue()},U.prototype.numberValue=function(){return this.num},U.prototype.booleanValue=function(){return this.bool().booleanValue()},U.prototype.negate=function(){return new U(-this.num)},U.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,T)?this.equals(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.equals):new V(this.num==a.num)},U.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,T)?this.notequal(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.notequal):new V(this.num!=a.num)},U.prototype.lessthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthan(a.number()):new V(this.num<a.num)},U.prototype.greaterthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthan(a.number()):new V(this.num>a.num)},U.prototype.lessthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthanorequal(a.number()):new V(this.num<=a.num)},U.prototype.greaterthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthanorequal(a.number()):new V(this.num>=a.num)},U.prototype.plus=function(a){return new U(this.num+a.num)},U.prototype.minus=function(a){return new U(this.num-a.num)},U.prototype.multiply=function(a){return new U(this.num*a.num)},U.prototype.div=function(a){return new U(this.num/a.num)},U.prototype.mod=function(a){return new U(this.num%a.num)},V.prototype=new s,V.prototype.constructor=V,V.superclass=s.prototype,V.prototype.init=function(a){this.b=!!a},V.prototype.toString=function(){return this.b.toString()},V.prototype.evaluate=function(a){return this},V.prototype.string=function(){return new T(this.b)},V.prototype.number=function(){return new U(this.b)},V.prototype.bool=function(){return this},V.prototype.nodeset=function(){throw Error("Cannot convert boolean to nodeset")},V.prototype.stringValue=function(){return this.string().stringValue()},V.prototype.numberValue=function(){return this.number().numberValue()},V.prototype.booleanValue=function(){return this.b},V.prototype.not=function(){return new V(!this.b)},V.prototype.equals=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.equals(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.equals):new V(this.b==a.b)},V.prototype.notequal=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.notequal(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.notequal):new V(this.b!=a.b)},V.prototype.lessthan=function(a){return this.number().lessthan(a)},V.prototype.greaterthan=function(a){return this.number().greaterthan(a)},V.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},V.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},V.true_=new V(!0),V.false_=new V(!1),W.prototype={},W.prototype.constructor=W,W.superclass=Object.prototype,W.prototype.init=function(a){this.left=null,this.right=null,this.node=a,this.depth=1},W.prototype.balance=function(){var a=null==this.left?0:this.left.depth,b=null==this.right?0:this.right.depth;if(a>b+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(a+1<b){var c=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>c&&this.right.rotateLL(),this.rotateRR()}},W.prototype.rotateLL=function(){var a=this.node,b=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=b,this.right.node=a,this.right.updateInNewLocation(),this.updateInNewLocation()},W.prototype.rotateRR=function(){var a=this.node,b=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=b,this.left.node=a,this.left.updateInNewLocation(),this.updateInNewLocation()},W.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},W.prototype.getDepthFromChildren=function(){this.depth=+(null!=this.node),null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},W.prototype.add=function(a){if(a===this.node)return!1;var b=function(a,b){if(a===b)return 0;if(a.compareDocumentPosition){var c=a.compareDocumentPosition(b);return 1&c||10&c?1:20&c?-1:0}for(var d=0,e=0,f=a;null!=f;f=f.parentNode||f.ownerElement)d++;for(var g=b;null!=g;g=g.parentNode||g.ownerElement)e++;if(d>e){for(;d>e;)a=a.parentNode||a.ownerElement,d--;if(a===b)return 1}else if(e>d){for(;e>d;)b=b.parentNode||b.ownerElement,e--;if(a===b)return -1}for(var h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;h!==i;)a=h,b=i,h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;var j=ac.isAttribute(a),k=ac.isAttribute(b);if(j&&!k)return -1;if(!j&&k)return 1;if(h)for(var l=j?h.attributes:h.childNodes,m=l.length,n=0;n<m;n+=1){var o=l[n];if(o===a)return -1;if(o===b)return 1}throw Error("Unexpected: could not determine node order")}(a,this.node),c=!1;return -1==b?null==this.left?(this.left=new W(a),c=!0):(c=this.left.add(a))&&this.balance():1==b&&(null==this.right?(this.right=new W(a),c=!0):(c=this.right.add(a))&&this.balance()),c&&this.getDepthFromChildren(),c},X.prototype=new s,X.prototype.constructor=X,X.superclass=s.prototype,X.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},X.prototype.toString=function(){var a=this.first();return null==a?"":this.stringForNode(a)},X.prototype.evaluate=function(a){return this},X.prototype.string=function(){return new T(this.toString())},X.prototype.stringValue=function(){return this.toString()},X.prototype.number=function(){return new U(this.string())},X.prototype.numberValue=function(){return Number(this.string())},X.prototype.bool=function(){return new V(this.booleanValue())},X.prototype.booleanValue=function(){return!!this.size},X.prototype.nodeset=function(){return this},X.prototype.stringForNode=function(a){return 9==a.nodeType||1==a.nodeType||11===a.nodeType?this.stringForContainerNode(a):2===a.nodeType?a.value||a.nodeValue:a.isNamespaceNode?a.namespace:a.nodeValue},X.prototype.stringForContainerNode=function(a){for(var b="",c=a.firstChild;null!=c;c=c.nextSibling){var d=c.nodeType;(1===d||3===d||4===d||9===d||11===d)&&(b+=this.stringForNode(c))}return b},X.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new W(this.nodes[0]);for(var a=1;a<this.nodes.length;a+=1)this.tree.add(this.nodes[a])}return this.tree},X.prototype.first=function(){var a=this.buildTree();if(null==a)return null;for(;null!=a.left;)a=a.left;return a.node},X.prototype.add=function(a){for(var b=0;b<this.nodes.length;b+=1)if(a===this.nodes[b])return;this.tree=null,this.nodes.push(a),this.size+=1},X.prototype.addArray=function(a){var b=this;f(function(a){b.add(a)},a)},X.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},X.prototype.toArrayRec=function(a,b){null!=a&&(this.toArrayRec(a.left,b),b.push(a.node),this.toArrayRec(a.right,b))},X.prototype.toUnsortedArray=function(){return this.nodes.slice()},X.prototype.compareWithString=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new T(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithNumber=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new U(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithBoolean=function(a,b){return b(this.bool(),a)},X.prototype.compareWithNodeSet=function(a,b){for(var c=this.toUnsortedArray(),d=function(a,c){return b(c,a)},e=0;e<c.length;e++){var f=new T(this.stringForNode(c[e])),g=a.compareWithString(f,d);if(g.booleanValue())return g}return new V(!1)},b=function(a,b){return ac.instance_of(b,T)?this.compareWithString(b,a):ac.instance_of(b,U)?this.compareWithNumber(b,a):ac.instance_of(b,V)?this.compareWithBoolean(b,a):this.compareWithNodeSet(b,a)},c=Array.prototype.slice,d=b.length,X.compareWith=e=function(){var a,f=c.call(arguments);return f.length<d?(a=e,function(){return a.apply(this,f.concat(c.call(arguments)))}):b.apply(this,c.apply(arguments,[0,d]))},X.prototype.equals=X.compareWith(S.equals),X.prototype.notequal=X.compareWith(S.notequal),X.prototype.lessthan=X.compareWith(S.lessthan),X.prototype.greaterthan=X.compareWith(S.greaterthan),X.prototype.lessthanorequal=X.compareWith(S.lessthanorequal),X.prototype.greaterthanorequal=X.compareWith(S.greaterthanorequal),X.prototype.union=function(a){var b=new X;return b.addArray(this.toUnsortedArray()),b.addArray(a.toUnsortedArray()),b},Y.prototype={},Y.prototype.constructor=Y,Y.superclass=Object.prototype,Y.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},Z.prototype={},Z.prototype.constructor=Z,Z.superclass=Object.prototype,Z.prototype.extend=function(a){return o(new Z,this,a)},$.prototype={},$.prototype.constructor=$,$.superclass=Object.prototype,$.prototype.getVariable=function(a,b){return null},_.prototype={},_.prototype.constructor=_,_.superclass=Object.prototype,_.prototype.addStandardFunctions=function(){this.functions["{}last"]=ab.last,this.functions["{}position"]=ab.position,this.functions["{}count"]=ab.count,this.functions["{}id"]=ab.id,this.functions["{}local-name"]=ab.localName,this.functions["{}namespace-uri"]=ab.namespaceURI,this.functions["{}name"]=ab.name,this.functions["{}string"]=ab.string,this.functions["{}concat"]=ab.concat,this.functions["{}starts-with"]=ab.startsWith,this.functions["{}contains"]=ab.contains,this.functions["{}substring-before"]=ab.substringBefore,this.functions["{}substring-after"]=ab.substringAfter,this.functions["{}substring"]=ab.substring,this.functions["{}string-length"]=ab.stringLength,this.functions["{}normalize-space"]=ab.normalizeSpace,this.functions["{}translate"]=ab.translate,this.functions["{}boolean"]=ab.boolean_,this.functions["{}not"]=ab.not,this.functions["{}true"]=ab.true_,this.functions["{}false"]=ab.false_,this.functions["{}lang"]=ab.lang,this.functions["{}number"]=ab.number,this.functions["{}sum"]=ab.sum,this.functions["{}floor"]=ab.floor,this.functions["{}ceiling"]=ab.ceiling,this.functions["{}round"]=ab.round},_.prototype.addFunction=function(a,b,c){this.functions["{"+a+"}"+b]=c},_.getFunctionFromContext=function(a,b){var c=ac.resolveQName(a,b.namespaceResolver,b.contextNode,!1);if(null===c[0])throw Error("Cannot resolve QName "+name);return b.functionResolver.getFunction(c[1],c[0])},_.prototype.getFunction=function(a,b){return this.functions["{"+b+"}"+a]},aa.prototype={},aa.prototype.constructor=aa,aa.superclass=Object.prototype,aa.prototype.getNamespace=function(a,b){if("xml"==a)return q.XML_NAMESPACE_URI;if("xmlns"==a)return q.XMLNS_NAMESPACE_URI;for(9==b.nodeType?b=b.documentElement:2==b.nodeType?b=K.getOwnerElement(b):1!=b.nodeType&&(b=b.parentNode);null!=b&&1==b.nodeType;){for(var c=b.attributes,d=0;d<c.length;d++){var e=c.item(d),f=e.name||e.nodeName;if("xmlns"===f&&""===a||f==="xmlns:"+a)return String(e.value||e.nodeValue)}b=b.parentNode}return null};var ab={};ab.last=function(a){if(1!=arguments.length)throw Error("Function last expects ()");return new U(a.contextSize)},ab.position=function(a){if(1!=arguments.length)throw Error("Function position expects ()");return new U(a.contextPosition)},ab.count=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function count expects (node-set)");return new U(a.size)},ab.id=function(){var a,b,c=arguments[0];if(2!=arguments.length)throw Error("Function id expects (object)");a=arguments[1].evaluate(c);for(var d=(a=ac.instance_of(a,X)?a.toArray().join(" "):a.stringValue()).split(/[\x0d\x0a\x09\x20]+/),e=new X,f=9==c.contextNode.nodeType?c.contextNode:c.contextNode.ownerDocument,g=0;g<d.length;g++)null!=(b=f.getElementById?f.getElementById(d[g]):ac.getElementById(f,d[g]))&&e.add(b);return e},ab.localName=function(a,b){var c;if(1==arguments.length)c=a.contextNode;else if(2==arguments.length)c=b.evaluate(a).first();else throw Error("Function local-name expects (node-set?)");return new T(null==c?"":c.localName||c.baseName||c.target||c.nodeName||"")},ab.namespaceURI=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function namespace-uri expects (node-set?)");return new T(null==a?"":a.namespaceURI)},ab.name=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function name expects (node-set?)");return null==a?new T(""):1==a.nodeType?new T(a.nodeName):2==a.nodeType?new T(a.name||a.nodeName):7===a.nodeType?new T(a.target||a.nodeName):null==a.localName?new T(""):new T(a.localName)},ab.string=function(){var a=arguments[0];if(1==arguments.length)return new T(X.prototype.stringForNode(a.contextNode));if(2==arguments.length)return arguments[1].evaluate(a).string();throw Error("Function string expects (object?)")},ab.concat=function(a){if(arguments.length<3)throw Error("Function concat expects (string, string[, string]*)");for(var b="",c=1;c<arguments.length;c++)b+=arguments[c].evaluate(a).stringValue();return new T(b)},ab.startsWith=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function startsWith expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(b.substring(0,c.length)==c)},ab.contains=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function contains expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(-1!==b.indexOf(c))},ab.substringBefore=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-before expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new T(b.substring(0,b.indexOf(c)))},ab.substringAfter=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-after expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();if(0==c.length)return new T(b);var d=b.indexOf(c);return new T(-1==d?"":b.substring(d+c.length))},ab.substring=function(){var a=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw Error("Function substring expects (string, number, number?)");var b=arguments[1].evaluate(a).stringValue(),c=Math.round(arguments[2].evaluate(a).numberValue())-1,d=4==arguments.length?c+Math.round(arguments[3].evaluate(a).numberValue()):void 0;return new T(b.substring(c,d))},ab.stringLength=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function string-length expects (string?)");return new U(a.length)},ab.normalizeSpace=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function normalize-space expects (string?)");for(var c=0,d=a.length-1;ac.isSpace(a.charCodeAt(d));)d--;for(var e="";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;for(;c<=d;)if(ac.isSpace(a.charCodeAt(c)))for(e+=" ";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;else e+=a.charAt(c),c++;return new T(e)},ab.translate=function(a,b,c,d){if(4!=arguments.length)throw Error("Function translate expects (string, string, string)");var e=b.evaluate(a).stringValue(),f=c.evaluate(a).stringValue(),i=d.evaluate(a).stringValue(),j=g(function(a,b,c){return b in a||(a[b]=c>i.length?"":i[c]),a},{},f);return new T(l("",h(function(a){return a in j?j[a]:a},e)))},ab.boolean_=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function boolean expects (object)");return arguments[1].evaluate(a).bool()},ab.not=function(a,b){if(2!=arguments.length)throw Error("Function not expects (object)");return b.evaluate(a).bool().not()},ab.true_=function(){if(1!=arguments.length)throw Error("Function true expects ()");return V.true_},ab.false_=function(){if(1!=arguments.length)throw Error("Function false expects ()");return V.false_},ab.lang=function(){var a,b=arguments[0];if(2!=arguments.length)throw Error("Function lang expects (string)");for(var c=b.contextNode;null!=c&&9!=c.nodeType;c=c.parentNode){var d=c.getAttributeNS(q.XML_NAMESPACE_URI,"lang");if(null!=d){a=String(d);break}}if(null==a)return V.false_;var e=arguments[1].evaluate(b).stringValue();return new V(a.substring(0,e.length)==e&&(a.length==e.length||"-"==a.charAt(e.length)))},ab.number=function(){var a=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw Error("Function number expects (object?)");return 1==arguments.length?new U(X.prototype.stringForNode(a.contextNode)):arguments[1].evaluate(a).number()},ab.sum=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function sum expects (node-set)");a=a.toUnsortedArray();for(var c=0,d=0;d<a.length;d++)c+=new U(X.prototype.stringForNode(a[d])).numberValue();return new U(c)},ab.floor=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function floor expects (number)");return new U(Math.floor(arguments[1].evaluate(a).numberValue()))},ab.ceiling=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function ceiling expects (number)");return new U(Math.ceil(arguments[1].evaluate(a).numberValue()))},ab.round=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function round expects (number)");return new U(Math.round(arguments[1].evaluate(a).numberValue()))};var ac={};ac.isAttribute=function(a){return a&&(2===a.nodeType||a.ownerElement)},ac.splitQName=function(a){var b=a.indexOf(":");return -1==b?[null,a]:[a.substring(0,b),a.substring(b+1)]},ac.resolveQName=function(a,b,c,d){var e=ac.splitQName(a);return null!=e[0]?e[0]=b.getNamespace(e[0],c):d?(e[0]=b.getNamespace("",c),null==e[0]&&(e[0]="")):e[0]="",e},ac.isSpace=function(a){return 9==a||13==a||10==a||32==a},ac.isLetter=function(a){return a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=255||a>=256&&a<=305||a>=308&&a<=318||a>=321&&a<=328||a>=330&&a<=382||a>=384&&a<=451||a>=461&&a<=496||a>=500&&a<=501||a>=506&&a<=535||a>=592&&a<=680||a>=699&&a<=705||902==a||a>=904&&a<=906||908==a||a>=910&&a<=929||a>=931&&a<=974||a>=976&&a<=982||986==a||988==a||990==a||992==a||a>=994&&a<=1011||a>=1025&&a<=1036||a>=1038&&a<=1103||a>=1105&&a<=1116||a>=1118&&a<=1153||a>=1168&&a<=1220||a>=1223&&a<=1224||a>=1227&&a<=1228||a>=1232&&a<=1259||a>=1262&&a<=1269||a>=1272&&a<=1273||a>=1329&&a<=1366||1369==a||a>=1377&&a<=1414||a>=1488&&a<=1514||a>=1520&&a<=1522||a>=1569&&a<=1594||a>=1601&&a<=1610||a>=1649&&a<=1719||a>=1722&&a<=1726||a>=1728&&a<=1742||a>=1744&&a<=1747||1749==a||a>=1765&&a<=1766||a>=2309&&a<=2361||2365==a||a>=2392&&a<=2401||a>=2437&&a<=2444||a>=2447&&a<=2448||a>=2451&&a<=2472||a>=2474&&a<=2480||2482==a||a>=2486&&a<=2489||a>=2524&&a<=2525||a>=2527&&a<=2529||a>=2544&&a<=2545||a>=2565&&a<=2570||a>=2575&&a<=2576||a>=2579&&a<=2600||a>=2602&&a<=2608||a>=2610&&a<=2611||a>=2613&&a<=2614||a>=2616&&a<=2617||a>=2649&&a<=2652||2654==a||a>=2674&&a<=2676||a>=2693&&a<=2699||2701==a||a>=2703&&a<=2705||a>=2707&&a<=2728||a>=2730&&a<=2736||a>=2738&&a<=2739||a>=2741&&a<=2745||2749==a||2784==a||a>=2821&&a<=2828||a>=2831&&a<=2832||a>=2835&&a<=2856||a>=2858&&a<=2864||a>=2866&&a<=2867||a>=2870&&a<=2873||2877==a||a>=2908&&a<=2909||a>=2911&&a<=2913||a>=2949&&a<=2954||a>=2958&&a<=2960||a>=2962&&a<=2965||a>=2969&&a<=2970||2972==a||a>=2974&&a<=2975||a>=2979&&a<=2980||a>=2984&&a<=2986||a>=2990&&a<=2997||a>=2999&&a<=3001||a>=3077&&a<=3084||a>=3086&&a<=3088||a>=3090&&a<=3112||a>=3114&&a<=3123||a>=3125&&a<=3129||a>=3168&&a<=3169||a>=3205&&a<=3212||a>=3214&&a<=3216||a>=3218&&a<=3240||a>=3242&&a<=3251||a>=3253&&a<=3257||3294==a||a>=3296&&a<=3297||a>=3333&&a<=3340||a>=3342&&a<=3344||a>=3346&&a<=3368||a>=3370&&a<=3385||a>=3424&&a<=3425||a>=3585&&a<=3630||3632==a||a>=3634&&a<=3635||a>=3648&&a<=3653||a>=3713&&a<=3714||3716==a||a>=3719&&a<=3720||3722==a||3725==a||a>=3732&&a<=3735||a>=3737&&a<=3743||a>=3745&&a<=3747||3749==a||3751==a||a>=3754&&a<=3755||a>=3757&&a<=3758||3760==a||a>=3762&&a<=3763||3773==a||a>=3776&&a<=3780||a>=3904&&a<=3911||a>=3913&&a<=3945||a>=4256&&a<=4293||a>=4304&&a<=4342||4352==a||a>=4354&&a<=4355||a>=4357&&a<=4359||4361==a||a>=4363&&a<=4364||a>=4366&&a<=4370||4412==a||4414==a||4416==a||4428==a||4430==a||4432==a||a>=4436&&a<=4437||4441==a||a>=4447&&a<=4449||4451==a||4453==a||4455==a||4457==a||a>=4461&&a<=4462||a>=4466&&a<=4467||4469==a||4510==a||4520==a||4523==a||a>=4526&&a<=4527||a>=4535&&a<=4536||4538==a||a>=4540&&a<=4546||4587==a||4592==a||4601==a||a>=7680&&a<=7835||a>=7840&&a<=7929||a>=7936&&a<=7957||a>=7960&&a<=7965||a>=7968&&a<=8005||a>=8008&&a<=8013||a>=8016&&a<=8023||8025==a||8027==a||8029==a||a>=8031&&a<=8061||a>=8064&&a<=8116||a>=8118&&a<=8124||8126==a||a>=8130&&a<=8132||a>=8134&&a<=8140||a>=8144&&a<=8147||a>=8150&&a<=8155||a>=8160&&a<=8172||a>=8178&&a<=8180||a>=8182&&a<=8188||8486==a||a>=8490&&a<=8491||8494==a||a>=8576&&a<=8578||a>=12353&&a<=12436||a>=12449&&a<=12538||a>=12549&&a<=12588||a>=44032&&a<=55203||a>=19968&&a<=40869||12295==a||a>=12321&&a<=12329},ac.isNCNameChar=function(a){return a>=48&&a<=57||a>=1632&&a<=1641||a>=1776&&a<=1785||a>=2406&&a<=2415||a>=2534&&a<=2543||a>=2662&&a<=2671||a>=2790&&a<=2799||a>=2918&&a<=2927||a>=3047&&a<=3055||a>=3174&&a<=3183||a>=3302&&a<=3311||a>=3430&&a<=3439||a>=3664&&a<=3673||a>=3792&&a<=3801||a>=3872&&a<=3881||46==a||45==a||95==a||ac.isLetter(a)||a>=768&&a<=837||a>=864&&a<=865||a>=1155&&a<=1158||a>=1425&&a<=1441||a>=1443&&a<=1465||a>=1467&&a<=1469||1471==a||a>=1473&&a<=1474||1476==a||a>=1611&&a<=1618||1648==a||a>=1750&&a<=1756||a>=1757&&a<=1759||a>=1760&&a<=1764||a>=1767&&a<=1768||a>=1770&&a<=1773||a>=2305&&a<=2307||2364==a||a>=2366&&a<=2380||2381==a||a>=2385&&a<=2388||a>=2402&&a<=2403||a>=2433&&a<=2435||2492==a||2494==a||2495==a||a>=2496&&a<=2500||a>=2503&&a<=2504||a>=2507&&a<=2509||2519==a||a>=2530&&a<=2531||2562==a||2620==a||2622==a||2623==a||a>=2624&&a<=2626||a>=2631&&a<=2632||a>=2635&&a<=2637||a>=2672&&a<=2673||a>=2689&&a<=2691||2748==a||a>=2750&&a<=2757||a>=2759&&a<=2761||a>=2763&&a<=2765||a>=2817&&a<=2819||2876==a||a>=2878&&a<=2883||a>=2887&&a<=2888||a>=2891&&a<=2893||a>=2902&&a<=2903||a>=2946&&a<=2947||a>=3006&&a<=3010||a>=3014&&a<=3016||a>=3018&&a<=3021||3031==a||a>=3073&&a<=3075||a>=3134&&a<=3140||a>=3142&&a<=3144||a>=3146&&a<=3149||a>=3157&&a<=3158||a>=3202&&a<=3203||a>=3262&&a<=3268||a>=3270&&a<=3272||a>=3274&&a<=3277||a>=3285&&a<=3286||a>=3330&&a<=3331||a>=3390&&a<=3395||a>=3398&&a<=3400||a>=3402&&a<=3405||3415==a||3633==a||a>=3636&&a<=3642||a>=3655&&a<=3662||3761==a||a>=3764&&a<=3769||a>=3771&&a<=3772||a>=3784&&a<=3789||a>=3864&&a<=3865||3893==a||3895==a||3897==a||3902==a||3903==a||a>=3953&&a<=3972||a>=3974&&a<=3979||a>=3984&&a<=3989||3991==a||a>=3993&&a<=4013||a>=4017&&a<=4023||4025==a||a>=8400&&a<=8412||8417==a||a>=12330&&a<=12335||12441==a||12442==a||183==a||720==a||721==a||903==a||1600==a||3654==a||3782==a||12293==a||a>=12337&&a<=12341||a>=12445&&a<=12446||a>=12540&&a<=12542},ac.coalesceText=function(a){for(var b=a.firstChild;null!=b;b=b.nextSibling)if(3==b.nodeType||4==b.nodeType){var c=b.nodeValue,d=b;for(b=b.nextSibling;null!=b&&(3==b.nodeType||4==b.nodeType);){c+=b.nodeValue;var e=b;b=b.nextSibling,e.parentNode.removeChild(e)}if(4==d.nodeType){var f=d.parentNode;if(null==d.nextSibling)f.removeChild(d),f.appendChild(f.ownerDocument.createTextNode(c));else{var g=d.nextSibling;f.removeChild(d),f.insertBefore(f.ownerDocument.createTextNode(c),g)}}else d.nodeValue=c;if(null==b)break}else 1==b.nodeType&&ac.coalesceText(b)},ac.instance_of=function(a,b){for(;null!=a;){if(a.constructor===b)return!0;if(a===Object)break;a=a.constructor.superclass}return!1},ac.getElementById=function(a,b){if(1==a.nodeType&&(a.getAttribute("id")==b||a.getAttributeNS(null,"id")==b))return a;for(var c=a.firstChild;null!=c;c=c.nextSibling){var d=ac.getElementById(c,b);if(null!=d)return d}return null};var ad=function(){function a(b,c,d){var e=Error.call(this,function(b,c){var d=c?": "+c.toString():"";switch(b){case a.INVALID_EXPRESSION_ERR:return"Invalid expression"+d;case a.TYPE_ERR:return"Type error"+d}return null}(b,c)||d);return e.code=b,e.exception=c,e}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.superclass=Error,a.prototype.toString=function(){return this.message},a.fromMessage=function(b,c){return new a(null,c,b)},a.INVALID_EXPRESSION_ERR=51,a.TYPE_ERR=52,a}();function ae(a,b,c){this.xpath=c.parse(a),this.context=new Z,this.context.namespaceResolver=new af(b)}function af(a){this.xpathNSResolver=a}function ag(a){this.node=a,this.namespaceResolver=new aa}function ah(a,b){switch(b==ah.ANY_TYPE&&(a.constructor===T?b=ah.STRING_TYPE:a.constructor===U?b=ah.NUMBER_TYPE:a.constructor===V?b=ah.BOOLEAN_TYPE:a.constructor===X&&(b=ah.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=b,b){case ah.NUMBER_TYPE:this.numberValue=a.numberValue();return;case ah.STRING_TYPE:this.stringValue=a.stringValue();return;case ah.BOOLEAN_TYPE:this.booleanValue=a.booleanValue();return;case ah.ANY_UNORDERED_NODE_TYPE:case ah.FIRST_ORDERED_NODE_TYPE:if(a.constructor===X){this.singleNodeValue=a.first();return}break;case ah.UNORDERED_NODE_ITERATOR_TYPE:case ah.ORDERED_NODE_ITERATOR_TYPE:if(a.constructor===X){this.invalidIteratorState=!1,this.nodes=a.toArray(),this.iteratorIndex=0;return}break;case ah.UNORDERED_NODE_SNAPSHOT_TYPE:case ah.ORDERED_NODE_SNAPSHOT_TYPE:if(a.constructor===X){this.nodes=a.toArray(),this.snapshotLength=this.nodes.length;return}}throw new ad(ad.TYPE_ERR)}function ai(a,b){a.createExpression=function(a,c){try{return new ae(a,c,b)}catch(a){throw new ad(ad.INVALID_EXPRESSION_ERR,a)}},a.createNSResolver=function(a){return new ag(a)},a.evaluate=function(c,d,e,f,g){if(f<0||f>9)throw{code:0,toString:function(){return"Request type not supported"}};return a.createExpression(c,e,b).evaluate(d,f,g)}}ae.prototype={},ae.prototype.constructor=ae,ae.superclass=Object.prototype,ae.getOwnerDocument=function(a){return 9===a.nodeType?a:a.ownerDocument},ae.detectHtmlDom=function(a){if(!a)return!1;var b=ae.getOwnerDocument(a);try{return b.implementation.hasFeature("HTML","2.0")}catch(a){return!0}},ae.prototype.evaluate=function(a,b,c){return this.context.expressionContextNode=a,this.context.caseInsensitive=ae.detectHtmlDom(a),new ah(this.xpath.evaluate(this.context),b)},af.prototype={},af.prototype.constructor=af,af.superclass=Object.prototype,af.prototype.getNamespace=function(a,b){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(a)},ag.prototype={},ag.prototype.constructor=ag,ag.superclass=Object.prototype,ag.prototype.lookupNamespaceURI=function(a){return this.namespaceResolver.getNamespace(a,this.node)},ah.prototype={},ah.prototype.constructor=ah,ah.superclass=Object.prototype,ah.prototype.iterateNext=function(){if(this.resultType!=ah.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=ah.ORDERED_NODE_ITERATOR_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[this.iteratorIndex++]},ah.prototype.snapshotItem=function(a){if(this.resultType!=ah.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=ah.ORDERED_NODE_SNAPSHOT_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[a]},ah.ANY_TYPE=0,ah.NUMBER_TYPE=1,ah.STRING_TYPE=2,ah.BOOLEAN_TYPE=3,ah.UNORDERED_NODE_ITERATOR_TYPE=4,ah.ORDERED_NODE_ITERATOR_TYPE=5,ah.UNORDERED_NODE_SNAPSHOT_TYPE=6,ah.ORDERED_NODE_SNAPSHOT_TYPE=7,ah.ANY_UNORDERED_NODE_TYPE=8,ah.FIRST_ORDERED_NODE_TYPE=9;try{var aj=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(aj=!1)}catch(a){}aj&&ai(document,new p)}catch(a){}ai(a,new p),function(){var b=new p,c=new aa,d=new _,e=new $;function f(a){return{getNamespace:function(b,d){return a(b,d)||c.getNamespace(b,d)}}}function g(a){if(null==a||a instanceof T||a instanceof V||a instanceof U||a instanceof X)return a;switch(typeof a){case"string":return new T(a);case"boolean":return new V(a);case"number":return new U(a)}var b=new X;return b.addArray([].concat(a)),b}function h(a){return{getFunction:function(b,c){var e=a(b,c);return e?function(a){var b=Array.prototype.slice.call(arguments,1).map(function(b){return b.evaluate(a)});return g(e.apply(this,[].concat(a,b)))}:d.getFunction(b,c)}}}function i(a){return{getVariable:function(b,c){return g(a(b,c))}}}function j(a,b,c){a in c&&(b[a]=c[a])}var k={evaluate:function(a){var b,g,k;return b=this.expression,g=new Z,a?(g.namespaceResolver=function(a){return a&&"function"==typeof a.getNamespace?f(a.getNamespace.bind(a)):"function"==typeof a?f(a):"object"==typeof a?f(function(b){return a[b]}):c}(a.namespaces),g.functionResolver=function(a){return a&&"function"==typeof a.getFunction?h(a.getFunction.bind(a)):"function"==typeof a?h(a):"object"==typeof a?h(function(b){return a[b]}):d}(a.functions),g.variableResolver=function(a){if(a){if("function"==typeof a.getVariable)return i(a.getVariable.bind(a));if("function"==typeof a)return i(a);if("object"==typeof a)return i(function(b){return a[b]})}return e}(a.variables),g.expressionContextNode=a.node,j("allowAnyNamespaceForNoPrefix",g,a),j("isHtml",g,a)):g.namespaceResolver=c,k=g,b.evaluate(k)},evaluateNumber:function(a){return this.evaluate(a).numberValue()},evaluateString:function(a){return this.evaluate(a).stringValue()},evaluateBoolean:function(a){return this.evaluate(a).booleanValue()},evaluateNodeSet:function(a){return this.evaluate(a).nodeset()},select:function(a){return this.evaluateNodeSet(a).toArray()},select1:function(a){return this.select(a)[0]}};a.parse=function(a){return Object.create(k,{expression:{value:b.parse(a)}})}}(),o(a,{XPath:q,XPathParser:p,XPathResult:ah,Step:O,PathExpr:K,NodeTest:P,LocationPath:N,OrOperation:w,AndOperation:x,BarOperation:J,EqualsOperation:y,NotEqualOperation:z,LessThanOperation:A,GreaterThanOperation:B,LessThanOrEqualOperation:C,GreaterThanOrEqualOperation:D,PlusOperation:E,MinusOperation:F,MultiplyOperation:G,DivOperation:H,ModOperation:I,UnaryMinusOperation:u,FunctionCall:R,VariableReference:Q,XPathContext:Z,XNodeSet:X,XBoolean:V,XString:T,XNumber:U,NamespaceResolver:aa,FunctionResolver:_,VariableResolver:$,Utilities:ac}),a.select=function(b,c,d){return a.selectWithResolver(b,c,null,d)},a.useNamespaces=function(b){var c={mappings:b||{},lookupNamespaceURI:function(a){return this.mappings[a]}};return function(b,d,e){return a.selectWithResolver(b,d,c,e)}},a.selectWithResolver=function(a,b,c,d){var e=new ae(a,c,new p),f=ah.ANY_TYPE,g=e.evaluate(b,f,null);return g.resultType==ah.STRING_TYPE?g=g.stringValue:g.resultType==ah.NUMBER_TYPE?g=g.numberValue:g.resultType==ah.BOOLEAN_TYPE?g=g.booleanValue:(g=g.nodes,d&&(g=g[0])),g},a.select1=function(b,c){return a.select(b,c,!0)}}(b)},58892:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d,e){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(d),this.name=this.target,e&&(this.value=this.stringify.insValue(e))}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))},c.prototype.isEqualNode=function(a){return!!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)&&a.target===this.target},c}(c(92478))}).call(this)},59548:(a,b,c)=>{var d=c(73669);a.exports=({contentEncryptionMethod:a,keyInfo:b,encryptedContent:c})=>`
5
5
  <xenc:EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
6
6
  <xenc:EncryptionMethod Algorithm="${d(a)}" />
7
7
  ${b}
@@ -26,4 +26,4 @@ ${d.replace(/ /g,"")}
26
26
  </e:CipherData>
27
27
  </e:EncryptedKey>
28
28
  </KeyInfo>
29
- `},71920:function(a,b,c){(function(){var b,d,e;({isObject:e}=c(43594)),d=c(73067),b=c(26468),a.exports=(function(){class a extends d{constructor(a,c,d,f){if(super(a),null==d)throw Error("Missing DTD entity name. "+this.debugInfo(d));if(null==f)throw Error("Missing DTD entity value. "+this.debugInfo(d));if(this.pe=!!c,this.name=this.stringify.name(d),this.type=b.EntityDeclaration,e(f)){if(!f.pubID&&!f.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(d));if(f.pubID&&!f.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(d));if(this.internal=!1,null!=f.pubID&&(this.pubID=this.stringify.dtdPubID(f.pubID)),null!=f.sysID&&(this.sysID=this.stringify.dtdSysID(f.sysID)),null!=f.nData&&(this.nData=this.stringify.dtdNData(f.nData)),this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(d))}else this.value=this.stringify.dtdEntityValue(f),this.internal=!0}toString(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))}}return Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(a.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(a.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"xmlVersion",{get:function(){return null}}),a}).call(this)}).call(this)},72616:function(a,b,c){(function(){var b,d,e,f={}.hasOwnProperty;b=c(26468),e=c(67289),d=c(29394),a.exports=class extends e{constructor(a,b){super(b),this.stream=a}endline(a,b,c){return a.isLastRootNode&&b.state===d.CloseTag?"":super.endline(a,b,c)}document(a,b){var c,d,e,f,g,h,i,j,k;for(i=a.children,d=e=0,g=i.length;e<g;d=++e)(c=i[d]).isLastRootNode=d===a.children.length-1;for(b=this.filterOptions(b),j=a.children,k=[],f=0,h=j.length;f<h;f++)c=j[f],k.push(this.writeChildNode(c,b,0));return k}cdata(a,b,c){return this.stream.write(super.cdata(a,b,c))}comment(a,b,c){return this.stream.write(super.comment(a,b,c))}declaration(a,b,c){return this.stream.write(super.declaration(a,b,c))}docType(a,b,c){var e,f,g,h;if(c||(c=0),this.openNode(a,b,c),b.state=d.OpenTag,this.stream.write(this.indent(a,b,c)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a,b,c)),b.state=d.InsideTag,f=0,g=(h=a.children).length;f<g;f++)e=h[f],this.writeChildNode(e,b,c+1);b.state=d.CloseTag,this.stream.write("]")}return b.state=d.CloseTag,this.stream.write(b.spaceBeforeSlash+">"),this.stream.write(this.endline(a,b,c)),b.state=d.None,this.closeNode(a,b,c)}element(a,c,e){var g,h,i,j,k,l,m,n,o,p,q,r,s,t;if(e||(e=0),this.openNode(a,c,e),c.state=d.OpenTag,o=this.indent(a,c,e)+"<"+a.name,c.pretty&&c.width>0)for(n in l=o.length,q=a.attribs)f.call(q,n)&&(g=q[n],l+(p=this.attribute(g,c,e)).length>c.width?(t=this.indent(a,c,e+1)+p,o+=this.endline(a,c,e)+t,l=t.length):(o+=t=" "+p,l+=t.length));else for(n in r=a.attribs)f.call(r,n)&&(g=r[n],o+=this.attribute(g,c,e));if(this.stream.write(o),j=0===(i=a.children.length)?null:a.children[0],0===i||a.children.every(function(a){return(a.type===b.Text||a.type===b.Raw||a.type===b.CData)&&""===a.value}))c.allowEmpty?(this.stream.write(">"),c.state=d.CloseTag,this.stream.write("</"+a.name+">")):(c.state=d.CloseTag,this.stream.write(c.spaceBeforeSlash+"/>"));else if(c.pretty&&1===i&&(j.type===b.Text||j.type===b.Raw||j.type===b.CData)&&null!=j.value)this.stream.write(">"),c.state=d.InsideTag,c.suppressPrettyCount++,this.writeChildNode(j,c,e+1),c.suppressPrettyCount--,c.state=d.CloseTag,this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.endline(a,c,e)),c.state=d.InsideTag,k=0,m=(s=a.children).length;k<m;k++)h=s[k],this.writeChildNode(h,c,e+1);c.state=d.CloseTag,this.stream.write(this.indent(a,c,e)+"</"+a.name+">")}return this.stream.write(this.endline(a,c,e)),c.state=d.None,this.closeNode(a,c,e)}processingInstruction(a,b,c){return this.stream.write(super.processingInstruction(a,b,c))}raw(a,b,c){return this.stream.write(super.raw(a,b,c))}text(a,b,c){return this.stream.write(super.text(a,b,c))}dtdAttList(a,b,c){return this.stream.write(super.dtdAttList(a,b,c))}dtdElement(a,b,c){return this.stream.write(super.dtdElement(a,b,c))}dtdEntity(a,b,c){return this.stream.write(super.dtdEntity(a,b,c))}dtdNotation(a,b,c){return this.stream.write(super.dtdNotation(a,b,c))}}}).call(this)},72707:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,e){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing DTD notation name. "+this.debugInfo(d));if(!e.pubID&&!e.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(d));this.name=this.stringify.name(d),this.type=b.NotationDeclaration,null!=e.pubID&&(this.pubID=this.stringify.dtdPubID(e.pubID)),null!=e.sysID&&(this.sysID=this.stringify.dtdSysID(e.sysID))}return e(c,a),Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),c.prototype.toString=function(a){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},73067:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s={}.hasOwnProperty,t=[].splice;({isObject:r,isFunction:q,isEmpty:p,getValue:o}=c(43594)),j=null,e=null,f=null,g=null,h=null,m=null,n=null,l=null,i=null,d=null,k=null,b=null,a.exports=(function(){class a{constructor(a){this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,j||(j=c(84519),e=c(46898),f=c(12430),g=c(55443),h=c(33773),m=c(469),n=c(5032),l=c(15890),i=c(76491),d=c(26468),k=c(82307),c(87074),b=c(97410))}setParent(a){var b,c,d,e,f;for(this.parent=a,a&&(this.options=a.options,this.stringify=a.stringify),e=this.children,f=[],c=0,d=e.length;c<d;c++)b=e[c],f.push(b.setParent(this));return f}element(a,b,c){var d,e,f,g,h,i,j,k,l;if(i=null,null===b&&null==c&&([b,c]=[{},null]),null==b&&(b={}),r(b=o(b))||([c,b]=[b,c]),null!=a&&(a=o(a)),Array.isArray(a))for(f=0,j=a.length;f<j;f++)e=a[f],i=this.element(e);else if(q(a))i=this.element(a.apply());else if(r(a)){for(h in a)if(s.call(a,h))if(q(l=a[h])&&(l=l.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===h.indexOf(this.stringify.convertAttKey))i=this.attribute(h.substr(this.stringify.convertAttKey.length),l);else if(!this.options.separateArrayItems&&Array.isArray(l)&&p(l))i=this.dummy();else if(r(l)&&p(l))i=this.element(h);else if(this.options.keepNullNodes||null!=l)if(!this.options.separateArrayItems&&Array.isArray(l))for(g=0,k=l.length;g<k;g++)e=l[g],(d={})[h]=e,i=this.element(d);else r(l)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===h.indexOf(this.stringify.convertTextKey)?i=this.element(l):(i=this.element(h)).element(l):i=this.element(h,l);else i=this.dummy()}else i=this.options.keepNullNodes||null!==c?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?this.text(c):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===a.indexOf(this.stringify.convertCDataKey)?this.cdata(c):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===a.indexOf(this.stringify.convertCommentKey)?this.comment(c):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===a.indexOf(this.stringify.convertRawKey)?this.raw(c):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===a.indexOf(this.stringify.convertPIKey)?this.instruction(a.substr(this.stringify.convertPIKey.length),c):this.node(a,b,c):this.dummy();if(null==i)throw Error("Could not create any elements with: "+a+". "+this.debugInfo());return i}insertBefore(a,b,c){var d,e,f;if(null!=a?a.type:void 0)return a.setParent(this),b?(e=children.indexOf(b),f=children.splice(e),children.push(a),Array.prototype.push.apply(children,f)):children.push(a),a;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d}insertAfter(a,b,c){var d,e,f;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e+1),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d}remove(){var a;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return a=this.parent.children.indexOf(this),t.apply(this.parent.children,[a,a-a+1].concat([])),this.parent}node(a,b,c){var d;return null!=a&&(a=o(a)),b||(b={}),r(b=o(b))||([c,b]=[b,c]),d=new j(this,a,b),null!=c&&d.text(c),this.children.push(d),d}text(a){var b;return r(a)&&this.element(a),b=new n(this,a),this.children.push(b),this}cdata(a){var b;return b=new e(this,a),this.children.push(b),this}comment(a){var b;return b=new f(this,a),this.children.push(b),this}commentBefore(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this}commentAfter(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b+1),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this}raw(a){var b;return b=new m(this,a),this.children.push(b),this}dummy(){return new i(this)}instruction(a,b){var c,d,e,f,g;if(null!=a&&(a=o(a)),null!=b&&(b=o(b)),Array.isArray(a))for(f=0,g=a.length;f<g;f++)c=a[f],this.instruction(c);else if(r(a))for(c in a)s.call(a,c)&&(d=a[c],this.instruction(c,d));else q(b)&&(b=b.apply()),e=new l(this,a,b),this.children.push(e);return this}instructionBefore(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this}instructionAfter(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c+1),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this}declaration(a,b,c){var e,f;return e=this.document(),f=new g(e,a,b,c),0===e.children.length?e.children.unshift(f):e.children[0].type===d.Declaration?e.children[0]=f:e.children.unshift(f),e.root()||e}dtd(a,b){var c,e,f,g,i,j,k,l,m;for(c=this.document(),e=new h(c,a,b),l=c.children,f=g=0,j=l.length;g<j;f=++g)if(l[f].type===d.DocType)return c.children[f]=e,e;for(m=c.children,f=i=0,k=m.length;i<k;f=++i)if(m[f].isRoot)return c.children.splice(f,0,e),e;return c.children.push(e),e}up(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent}root(){var a;for(a=this;a;)if(a.type===d.Document)return a.rootObject;else{if(a.isRoot)return a;a=a.parent}}document(){var a;for(a=this;a;)if(a.type===d.Document)return a;else a=a.parent}end(a){return this.document().end(a)}prev(){var a;if((a=this.parent.children.indexOf(this))<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[a-1]}next(){var a;if(-1===(a=this.parent.children.indexOf(this))||a===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[a+1]}importDocument(a){var b,c,e,f,g;if((c=a.root().clone()).parent=this,c.isRoot=!1,this.children.push(c),this.type===d.Document&&(c.isRoot=!0,c.documentObject=this,this.rootObject=c,this.children)){for(e=0,f=(g=this.children).length;e<f;e++)if((b=g[e]).type===d.DocType){b.name=c.name;break}}return this}debugInfo(a){var b,c;return null!=(a=a||this.name)||(null!=(b=this.parent)?b.name:void 0)?null==a?"parent: <"+this.parent.name+">":(null!=(c=this.parent)?c.name:void 0)?"node: <"+a+">, parent: <"+this.parent.name+">":"node: <"+a+">":""}ele(a,b,c){return this.element(a,b,c)}nod(a,b,c){return this.node(a,b,c)}txt(a){return this.text(a)}dat(a){return this.cdata(a)}com(a){return this.comment(a)}ins(a,b){return this.instruction(a,b)}doc(){return this.document()}dec(a,b,c){return this.declaration(a,b,c)}e(a,b,c){return this.element(a,b,c)}n(a,b,c){return this.node(a,b,c)}t(a){return this.text(a)}d(a){return this.cdata(a)}c(a){return this.comment(a)}r(a){return this.raw(a)}i(a,b){return this.instruction(a,b)}u(){return this.up()}importXMLBuilder(a){return this.importDocument(a)}attribute(a,b){throw Error("attribute() applies to element nodes only.")}att(a,b){return this.attribute(a,b)}a(a,b){return this.attribute(a,b)}removeAttribute(a){throw Error("attribute() applies to element nodes only.")}replaceChild(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}removeChild(a){throw Error("This DOM method is not implemented."+this.debugInfo())}appendChild(a){throw Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return 0!==this.children.length}cloneNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw Error("This DOM method is not implemented."+this.debugInfo())}isSupported(a,b){return!0}hasAttributes(){return 0!==this.attribs.length}compareDocumentPosition(a){var c;if(this===a)return 0;if(this.document()!==a.document())return c=b.Disconnected|b.ImplementationSpecific,.5>Math.random()?c|=b.Preceding:c|=b.Following,c;if(this.isAncestor(a))return b.Contains|b.Preceding;if(this.isDescendant(a))return b.Contains|b.Following;if(this.isPreceding(a))return b.Preceding;else return b.Following}isSameNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(a){throw Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(a){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(a){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(a){var b,c,d;if(a.nodeType!==this.nodeType||a.children.length!==this.children.length)return!1;for(b=c=0,d=this.children.length-1;0<=d?c<=d:c>=d;b=0<=d?++c:--c)if(!this.children[b].isEqualNode(a.children[b]))return!1;return!0}getFeature(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}setUserData(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}getUserData(a){throw Error("This DOM method is not implemented."+this.debugInfo())}contains(a){return!!a&&(a===this||this.isDescendant(a))}isDescendant(a){var b,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if(a===(b=e[c])||b.isDescendant(a))return!0;return!1}isAncestor(a){return a.isDescendant(this)}isPreceding(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b<c}isFollowing(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b>c}treePosition(a){var b,c;return(c=0,b=!1,this.foreachTreeNode(this.document(),function(d){if(c++,!b&&d===a)return b=!0}),b)?c:-1}foreachTreeNode(a,b){var c,d,e,f,g;for(a||(a=this.document()),d=0,e=(f=a.children).length;d<e;d++)if((g=b(c=f[d]))||(g=this.foreachTreeNode(c,b)))return g}}return Object.defineProperty(a.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(a.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new k(this.children)),this.childNodeList}}),Object.defineProperty(a.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(a.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(a.prototype,"previousSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a-1]||null}}),Object.defineProperty(a.prototype,"nextSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a+1]||null}}),Object.defineProperty(a.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(a.prototype,"textContent",{get:function(){var a,b,c,e,f;if(this.nodeType!==d.Element&&this.nodeType!==d.DocumentFragment)return null;for(b=0,f="",c=(e=this.children).length;b<c;b++)(a=e[b]).textContent&&(f+=a.textContent);return f},set:function(a){throw Error("This DOM method is not implemented."+this.debugInfo())}}),a}).call(this)}).call(this)},73669:a=>{"use strict";var b=/["'&<>]/;a.exports=function(a){var c,d=""+a,e=b.exec(d);if(!e)return d;var f="",g=0,h=0;for(g=e.index;g<d.length;g++){switch(d.charCodeAt(g)){case 34:c="&quot;";break;case 38:c="&amp;";break;case 39:c="&#39;";break;case 60:c="&lt;";break;case 62:c="&gt;";break;default:continue}h!==g&&(f+=d.substring(h,g)),h=g+1,f+=c}return h!==g?f+d.substring(h,g):f}},74519:function(a){(function(){var b=function(a,b){return function(){return a.apply(b,arguments)}},c={}.hasOwnProperty;a.exports=function(){function a(a){var d,e,f;for(d in this.assertLegalName=b(this.assertLegalName,this),this.assertLegalChar=b(this.assertLegalChar,this),a||(a={}),this.options=a,this.options.version||(this.options.version="1.0"),e=a.stringify||{})c.call(e,d)&&(f=e[d],this[d]=f)}return a.prototype.name=function(a){return this.options.noValidation?a:this.assertLegalName(""+a||"")},a.prototype.text=function(a){return this.options.noValidation?a:this.assertLegalChar(this.textEscape(""+a||""))},a.prototype.cdata=function(a){return this.options.noValidation?a:(a=(a=""+a||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(a))},a.prototype.comment=function(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/--/))throw Error("Comment text cannot contain double-hypen: "+a);return this.assertLegalChar(a)},a.prototype.raw=function(a){return this.options.noValidation?a:""+a||""},a.prototype.attValue=function(a){return this.options.noValidation?a:this.assertLegalChar(this.attEscape(a=""+a||""))},a.prototype.insTarget=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.insValue=function(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/\?>/))throw Error("Invalid processing instruction value: "+a);return this.assertLegalChar(a)},a.prototype.xmlVersion=function(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/1\.[0-9]+/))throw Error("Invalid version number: "+a);return a},a.prototype.xmlEncoding=function(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+a);return this.assertLegalChar(a)},a.prototype.xmlStandalone=function(a){return this.options.noValidation?a:a?"yes":"no"},a.prototype.dtdPubID=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdSysID=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdElementValue=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdAttType=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdAttDefault=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdEntityValue=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdNData=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.convertAttKey="@",a.prototype.convertPIKey="?",a.prototype.convertTextKey="#text",a.prototype.convertCDataKey="#cdata",a.prototype.convertCommentKey="#comment",a.prototype.convertRawKey="#raw",a.prototype.assertLegalChar=function(a){var b,c;if(this.options.noValidation)return a;if(b="","1.0"===this.options.version){if(b=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=a.match(b))throw Error("Invalid character in string: "+a+" at index "+c.index)}else if("1.1"===this.options.version&&(b=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=a.match(b)))throw Error("Invalid character in string: "+a+" at index "+c.index);return a},a.prototype.assertLegalName=function(a){if(this.options.noValidation)return a;if(this.assertLegalChar(a),!a.match(/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/))throw Error("Invalid character in name");return a},a.prototype.textEscape=function(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,a.replace(b,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},a.prototype.attEscape=function(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,a.replace(b,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},a}()}).call(this)},74832:function(a,b,c){(function(){"use strict";var a,d,e,f,g=function(a,b){for(var c in b)h.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},h={}.hasOwnProperty;d=c(56068),a=c(86115),e=c(93005),f=c(2847),b.defaults=d.defaults,b.processors=f,b.ValidationError=function(a){function b(a){this.message=a}return g(b,a),b}(Error),b.Builder=a.Builder,b.Parser=e.Parser,b.parseString=e.parseString,b.parseStringPromise=e.parseStringPromise}).call(this)},75546:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.createOptionalCallbackFunction=void 0,b.createOptionalCallbackFunction=function(a){return(...b)=>{let c=b[b.length-1];if("function"!=typeof c)return a(...b);try{let d=a(...b.slice(0,-1));c(null,d)}catch(a){c(a instanceof Error?a:Error("Unknown error"))}}}},76326:function(a,b){(function(){"use strict";b.stripBOM=function(a){return"\uFEFF"===a[0]?a.substring(1):a}}).call(this)},76491:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=class extends d{constructor(a){super(a),this.type=b.Dummy}clone(){return Object.create(this)}toString(a){return""}}}).call(this)},77192:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=class extends d{constructor(a,c,d,e,f,g){if(super(a),null==c)throw Error("Missing DTD element name. "+this.debugInfo());if(null==d)throw Error("Missing DTD attribute name. "+this.debugInfo(c));if(!e)throw Error("Missing DTD attribute type. "+this.debugInfo(c));if(!f)throw Error("Missing DTD attribute default. "+this.debugInfo(c));if(0!==f.indexOf("#")&&(f="#"+f),!f.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(c));if(g&&!f.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(c));this.elementName=this.stringify.name(c),this.type=b.AttributeDeclaration,this.attributeName=this.stringify.name(d),this.attributeType=this.stringify.dtdAttType(e),g&&(this.defaultValue=this.stringify.dtdAttDefault(g)),this.defaultValueType=f}toString(a){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(a))}}}).call(this)},78611:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y={}.hasOwnProperty;({isObject:w,isFunction:v,isPlainObject:x,getValue:u}=c(43594)),b=c(26468),n=c(50962),o=c(84519),f=c(46898),g=c(12430),q=c(469),t=c(5032),p=c(15890),l=c(55443),m=c(33773),h=c(77192),j=c(71920),i=c(1243),k=c(48813),e=c(95759),s=c(31753),r=c(44981),d=c(29394),a.exports=class{constructor(a,c,d){var e;this.name="?xml",this.type=b.Document,a||(a={}),e={},a.writer?x(a.writer)&&(e=a.writer,a.writer=new r):a.writer=new r,this.options=a,this.writer=a.writer,this.writerOptions=this.writer.filterOptions(e),this.stringify=new s(a),this.onDataCallback=c||function(){},this.onEndCallback=d||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(a){var c,d,e,f,g,h,i,j;switch(a.type){case b.CData:this.cdata(a.value);break;case b.Comment:this.comment(a.value);break;case b.Element:for(d in e={},i=a.attribs)y.call(i,d)&&(c=i[d],e[d]=c.value);this.node(a.name,e);break;case b.Dummy:this.dummy();break;case b.Raw:this.raw(a.value);break;case b.Text:this.text(a.value);break;case b.ProcessingInstruction:this.instruction(a.target,a.value);break;default:throw Error("This XML node type is not supported in a JS object: "+a.constructor.name)}for(g=0,h=(j=a.children).length;g<h;g++)f=j[g],this.createChildNode(f),f.type===b.Element&&this.up();return this}dummy(){return this}node(a,b,c){if(null==a)throw Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw Error("Document can only have one root node. "+this.debugInfo(a));return this.openCurrent(),a=u(a),null==b&&(b={}),w(b=u(b))||([c,b]=[b,c]),this.currentNode=new o(this,a,b),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=c&&this.text(c),this}element(a,c,d){var e,f,g,h,i,j;if(this.currentNode&&this.currentNode.type===b.DocType)this.dtdElement(...arguments);else if(Array.isArray(a)||w(a)||v(a))for(h=this.options.noValidation,this.options.noValidation=!0,(j=new n(this.options).element("TEMP_ROOT")).element(a),this.options.noValidation=h,f=0,g=(i=j.children).length;f<g;f++)e=i[f],this.createChildNode(e),e.type===b.Element&&this.up();else this.node(a,c,d);return this}attribute(a,b){var c,d;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(a));if(null!=a&&(a=u(a)),w(a))for(c in a)y.call(a,c)&&(d=a[c],this.attribute(c,d));else v(b)&&(b=b.apply()),this.options.keepNullAttributes&&null==b?this.currentNode.attribs[a]=new e(this,a,""):null!=b&&(this.currentNode.attribs[a]=new e(this,a,b));return this}text(a){var b;return this.openCurrent(),b=new t(this,a),this.onData(this.writer.text(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}cdata(a){var b;return this.openCurrent(),b=new f(this,a),this.onData(this.writer.cdata(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}comment(a){var b;return this.openCurrent(),b=new g(this,a),this.onData(this.writer.comment(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}raw(a){var b;return this.openCurrent(),b=new q(this,a),this.onData(this.writer.raw(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}instruction(a,b){var c,d,e,f,g;if(this.openCurrent(),null!=a&&(a=u(a)),null!=b&&(b=u(b)),Array.isArray(a))for(c=0,f=a.length;c<f;c++)d=a[c],this.instruction(d);else if(w(a))for(d in a)y.call(a,d)&&(e=a[d],this.instruction(d,e));else v(b)&&(b=b.apply()),g=new p(this,a,b),this.onData(this.writer.processingInstruction(g,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}declaration(a,b,c){var d;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return d=new l(this,a,b,c),this.onData(this.writer.declaration(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}doctype(a,b,c){if(this.openCurrent(),null==a)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new m(this,b,c),this.currentNode.rootNodeName=a,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this}dtdElement(a,b){var c;return this.openCurrent(),c=new i(this,a,b),this.onData(this.writer.dtdElement(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}attList(a,b,c,d,e){var f;return this.openCurrent(),f=new h(this,a,b,c,d,e),this.onData(this.writer.dtdAttList(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}entity(a,b){var c;return this.openCurrent(),c=new j(this,!1,a,b),this.onData(this.writer.dtdEntity(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}pEntity(a,b){var c;return this.openCurrent(),c=new j(this,!0,a,b),this.onData(this.writer.dtdEntity(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}notation(a,b){var c;return this.openCurrent(),c=new k(this,a,b),this.onData(this.writer.dtdNotation(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}up(){if(this.currentLevel<0)throw Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this}end(){for(;this.currentLevel>=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(a){var c,e,f,g;if(!a.isOpen){if(this.root||0!==this.currentLevel||a.type!==b.Element||(this.root=a),e="",a.type===b.Element){for(f in this.writerOptions.state=d.OpenTag,e=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<"+a.name,g=a.attribs)y.call(g,f)&&(c=g[f],e+=this.writer.attribute(c,this.writerOptions,this.currentLevel));e+=(a.children?">":"/>")+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=d.InsideTag}else this.writerOptions.state=d.OpenTag,e=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+a.rootNodeName,a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),a.children?(e+=" [",this.writerOptions.state=d.InsideTag):(this.writerOptions.state=d.CloseTag,e+=">"),e+=this.writer.endline(a,this.writerOptions,this.currentLevel);return this.onData(e,this.currentLevel),a.isOpen=!0}}closeNode(a){var c;if(!a.isClosed)return c="",this.writerOptions.state=d.CloseTag,c=a.type===b.Element?this.writer.indent(a,this.writerOptions,this.currentLevel)+"</"+a.name+">"+this.writer.endline(a,this.writerOptions,this.currentLevel):this.writer.indent(a,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=d.None,this.onData(c,this.currentLevel),a.isClosed=!0}onData(a,b){return this.documentStarted=!0,this.onDataCallback(a,b+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(a){return null==a?"":"node: <"+a+">"}ele(){return this.element(...arguments)}nod(a,b,c){return this.node(a,b,c)}txt(a){return this.text(a)}dat(a){return this.cdata(a)}com(a){return this.comment(a)}ins(a,b){return this.instruction(a,b)}dec(a,b,c){return this.declaration(a,b,c)}dtd(a,b,c){return this.doctype(a,b,c)}e(a,b,c){return this.element(a,b,c)}n(a,b,c){return this.node(a,b,c)}t(a){return this.text(a)}d(a){return this.cdata(a)}c(a){return this.comment(a)}r(a){return this.raw(a)}i(a,b){return this.instruction(a,b)}att(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(a,b){return this.entity(a,b)}pent(a,b){return this.pEntity(a,b)}not(a,b){return this.notation(a,b)}}}).call(this)},81349:(a,b,c)=>{var d=c(23849),e=d.find,f=d.NAMESPACE,g=d.tagNamePattern;function h(a){return""!==a}function i(a,b){return a.hasOwnProperty(b)||(a[b]=!0),a}function j(a){return a?Object.keys((a?a.split(/[\t\n\f\r ]+/).filter(h):[]).reduce(i,{})):[]}function k(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c])}function l(a,b){var c=a.prototype;if(!(c instanceof b)){function d(){}d.prototype=b.prototype,k(c,d=new d),a.prototype=c=d}c.constructor!=a&&("function"!=typeof a&&console.error("unknown Class:"+a),c.constructor=a)}var m={},n=m.ELEMENT_NODE=1,o=m.ATTRIBUTE_NODE=2,p=m.TEXT_NODE=3,q=m.CDATA_SECTION_NODE=4,r=m.ENTITY_REFERENCE_NODE=5,s=m.ENTITY_NODE=6,t=m.PROCESSING_INSTRUCTION_NODE=7,u=m.COMMENT_NODE=8,v=m.DOCUMENT_NODE=9,w=m.DOCUMENT_TYPE_NODE=10,x=m.DOCUMENT_FRAGMENT_NODE=11,y=m.NOTATION_NODE=12,z={},A={};A[1]="Index size error",z.INDEX_SIZE_ERR=1,A[2]="DOMString size error",z.DOMSTRING_SIZE_ERR=2;var B=(A[3]="Hierarchy request error",z.HIERARCHY_REQUEST_ERR=3);A[4]="Wrong document",z.WRONG_DOCUMENT_ERR=4;var C=(A[5]="Invalid character",z.INVALID_CHARACTER_ERR=5);A[6]="No data allowed",z.NO_DATA_ALLOWED_ERR=6,A[7]="No modification allowed",z.NO_MODIFICATION_ALLOWED_ERR=7;var D=(A[8]="Not found",z.NOT_FOUND_ERR=8);A[9]="Not supported",z.NOT_SUPPORTED_ERR=9;var E=(A[10]="Attribute in use",z.INUSE_ATTRIBUTE_ERR=10),F=(A[11]="Invalid state",z.INVALID_STATE_ERR=11);function G(a,b){if(b instanceof Error)var c=b;else c=this,Error.call(this,A[a]),this.message=A[a],Error.captureStackTrace&&Error.captureStackTrace(this,G);return c.code=a,b&&(this.message=this.message+": "+b),c}function H(){}function I(a,b){this._node=a,this._refresh=b,J(this)}function J(a){var b=a._node._inc||a._node.ownerDocument._inc;if(a._inc!==b){var c=a._refresh(a._node);if(av(a,"length",c.length),!a.$$length||c.length<a.$$length)for(var d=c.length;d in a;d++)Object.prototype.hasOwnProperty.call(a,d)&&delete a[d];k(c,a),a._inc=b}}function K(){this._nameIndex=Object.create(null)}function L(a,b){for(var c=a.length;c--;)if(a[c]===b)return c}function M(a,b){a._nameIndex[b.nodeName]===b&&delete a._nameIndex[b.nodeName]}function N(a,b,c,d){if(d?(b[L(b,d)]=c,M(b,d)):b[b.length++]=c,b._nameIndex[c.nodeName]=c,a){c.ownerElement=a;var e,g,h,i=a.ownerDocument;i&&(d&&V(i,a,d),e=i,g=a,h=c,e&&e._inc++,h.namespaceURI===f.XMLNS&&(g._nsMap[h.prefix?h.localName:""]=h.value))}}function O(a,b,c){var d=L(b,c);if(d>=0){for(var e=b.length-1;d<e;)b[d]=b[++d];if(b.length=e,M(b,c),a){var f=a.ownerDocument;f&&(V(f,a,c),c.ownerElement=null)}}else throw new G(D,Error(a.tagName+"@"+c))}function P(){}function Q(){}function R(a){return"<"==a&&"&lt;"||">"==a&&"&gt;"||"&"==a&&"&amp;"||'"'==a&&"&quot;"||"&#"+a.charCodeAt()+";"}function S(a,b){return T(a,null,{enter:function(a){return!b(a)||T.STOP}})===T.STOP}function T(a,b,c){for(var d=[{node:a,context:b,phase:T.ENTER}];d.length>0;){var e=d.pop();if(e.phase===T.ENTER){var f=c.enter(e.node,e.context);if(f===T.STOP)return T.STOP;if(d.push({node:e.node,context:f,phase:T.EXIT}),null==f)continue;for(var g=e.node.lastChild;g;)d.push({node:g,context:f,phase:T.ENTER}),g=g.previousSibling}else c.exit&&c.exit(e.node,e.context)}}function U(){this.ownerDocument=this}function V(a,b,c,d){a&&a._inc++,c.namespaceURI===f.XMLNS&&delete b._nsMap[c.prefix?c.localName:""]}function W(a,b,c){if(a&&a._inc){a._inc++;var d=b.childNodes;if(c)d[d.length++]=c;else{for(var e=b.firstChild,f=0;e;)d[f++]=e,e=e.nextSibling;d.length=f,delete d[d.length]}}}function X(a,b){var c=b.previousSibling,d=b.nextSibling;return c?c.nextSibling=d:a.firstChild=d,d?d.previousSibling=c:a.lastChild=c,b.parentNode=null,b.previousSibling=null,b.nextSibling=null,W(a.ownerDocument,a),b}function Y(a){return a&&a.nodeType===Q.DOCUMENT_TYPE_NODE}function Z(a){return a&&a.nodeType===Q.ELEMENT_NODE}function $(a){return a&&a.nodeType===Q.TEXT_NODE}function _(a,b){var c=a.childNodes||[];if(e(c,Z)||Y(b))return!1;var d=e(c,Y);return!(b&&d&&c.indexOf(d)>c.indexOf(b))}function aa(a,b){var c=a.childNodes||[];if(e(c,function(a){return Z(a)&&a!==b}))return!1;var d=e(c,Y);return!(b&&d&&c.indexOf(d)>c.indexOf(b))}function ab(a,b,c){var d=a.childNodes||[],f=b.childNodes||[];if(b.nodeType===Q.DOCUMENT_FRAGMENT_NODE){var g=f.filter(Z);if(g.length>1||e(f,$))throw new G(B,"More than one element or text in fragment");if(1===g.length&&!aa(a,c))throw new G(B,"Element in fragment can not be inserted before doctype")}if(Z(b)&&!aa(a,c))throw new G(B,"Only one element can be added and only after doctype");if(Y(b)){if(e(d,function(a){return Y(a)&&a!==c}))throw new G(B,"Only one doctype is allowed");var h=e(d,Z);if(c&&d.indexOf(h)<d.indexOf(c))throw new G(B,"Doctype can only be inserted before an element")}}function ac(a,b,c,d){if(!(a&&(a.nodeType===Q.DOCUMENT_NODE||a.nodeType===Q.DOCUMENT_FRAGMENT_NODE||a.nodeType===Q.ELEMENT_NODE)))throw new G(B,"Unexpected parent node type "+a.nodeType);if(c&&c.parentNode!==a)throw new G(D,"child not in parent");if(!(b&&(Z(b)||$(b)||Y(b)||b.nodeType===Q.DOCUMENT_FRAGMENT_NODE||b.nodeType===Q.COMMENT_NODE||b.nodeType===Q.PROCESSING_INSTRUCTION_NODE))||Y(b)&&a.nodeType!==Q.DOCUMENT_NODE)throw new G(B,"Unexpected node type "+b.nodeType+" for parent node type "+a.nodeType);a.nodeType===Q.DOCUMENT_NODE&&(d||function(a,b,c){var d=a.childNodes||[],f=b.childNodes||[];if(b.nodeType===Q.DOCUMENT_FRAGMENT_NODE){var g=f.filter(Z);if(g.length>1||e(f,$))throw new G(B,"More than one element or text in fragment");if(1===g.length&&!_(a,c))throw new G(B,"Element in fragment can not be inserted before doctype")}if(Z(b)&&!_(a,c))throw new G(B,"Only one element can be added and only after doctype");if(Y(b)){if(e(d,Y))throw new G(B,"Only one doctype is allowed");var h=e(d,Z);if(c&&d.indexOf(h)<d.indexOf(c))throw new G(B,"Doctype can only be inserted before an element");if(!c&&h)throw new G(B,"Doctype can not be appended since element is present")}})(a,b,c);var f=b.parentNode;if(f&&f.removeChild(b),b.nodeType===x){var g=b.firstChild;if(null==g)return b;var h=b.lastChild}else g=h=b;var i=c?c.previousSibling:a.lastChild;g.previousSibling=i,h.nextSibling=c,i?i.nextSibling=g:a.firstChild=g,null==c?a.lastChild=h:c.previousSibling=h;do g.parentNode=a,ad(g,a.ownerDocument||a);while(g!==h&&(g=g.nextSibling));return W(a.ownerDocument||a,a),b.nodeType==x&&(b.firstChild=b.lastChild=null),b}function ad(a,b){if(a.ownerDocument!==b){if(a.ownerDocument=b,a.nodeType===n&&a.attributes)for(var c=0;c<a.attributes.length;c++){var d=a.attributes.item(c);d&&(d.ownerDocument=b)}for(var e=a.firstChild;e;)ad(e,b),e=e.nextSibling}}function ae(){this._nsMap={}}function af(){}function ag(){}function ah(){}function ai(){}function aj(){}function ak(){}function al(){}function am(){}function an(){}function ao(){}function ap(){}function aq(){}function ar(a,b,c){var d=!!c&&!!c.requireWellFormed,e=[],f=9==this.nodeType&&this.documentElement||this,g=f.prefix,h=f.namespaceURI;if(h&&null==g){var g=f.lookupPrefix(h);if(null==g)var i=[{namespace:h,prefix:null}]}return au(this,e,a,b,i,d),e.join("")}function as(a,b,c){var d=a.prefix||"",e=a.namespaceURI;if(!e||"xml"===d&&e===f.XML||e===f.XMLNS)return!1;for(var g=c.length;g--;){var h=c[g];if(h.prefix===d)return h.namespace!==e}return!0}function at(a,b,c,d){if(d&&!g.test(b))throw new G(F,'The attribute name "'+b+'" is not a valid XML QName');a.push(" ",b,'="',c.replace(/[<>&"\t\n\r]/g,R),'"')}function au(a,b,c,d,e,h){e||(e=[]),T(a,{ns:e,isHTML:c},{enter:function(a,c){var e=c.ns,i=c.isHTML;if(d){if(!(a=d(a)))return null;if("string"==typeof a)return b.push(a),null}switch(a.nodeType){case n:var j,k=a.attributes,l=k.length,m=a.tagName;i=f.isHTML(a.namespaceURI)||i;var s=m;if(!i&&!a.prefix&&a.namespaceURI){for(var y=0;y<k.length;y++)if("xmlns"===k.item(y).name){j=k.item(y).value;break}if(!j)for(var z=e.length-1;z>=0;z--){var A=e[z];if(""===A.prefix&&A.namespace===a.namespaceURI){j=A.namespace;break}}if(j!==a.namespaceURI)for(var z=e.length-1;z>=0;z--){var A=e[z];if(A.namespace===a.namespaceURI){A.prefix&&(s=A.prefix+":"+m);break}}}if(h&&!g.test(s))throw new G(F,'The element name "'+s+'" is not a valid XML QName');b.push("<",s);for(var B=e.slice(),C=0;C<l;C++){var D=k.item(C);"xmlns"==D.prefix?B.push({prefix:D.localName,namespace:D.value}):"xmlns"==D.nodeName&&B.push({prefix:"",namespace:D.value})}for(var C=0;C<l;C++){var D=k.item(C);if(as(D,i,B)){var E=D.prefix||"",H=D.namespaceURI;at(b,E?"xmlns:"+E:"xmlns",H,h),B.push({prefix:E,namespace:H})}var I=d?d(D):D;I&&("string"==typeof I?b.push(I):at(b,I.name,I.value,h))}if(m===s&&as(a,i,B)){var J=a.prefix||"",H=a.namespaceURI;at(b,J?"xmlns:"+J:"xmlns",H,h),B.push({prefix:J,namespace:H})}var K=a.firstChild;if(!K&&(!i||/^(?:meta|link|img|br|hr|input)$/i.test(m)))return b.push("/>"),null;if(b.push(">"),i&&/^script$/i.test(m)){for(;K;)K.data?b.push(K.data):au(K,b,i,d,B.slice(),h),K=K.nextSibling;return b.push("</",m,">"),null}return{ns:B,isHTML:i,tag:s};case v:case x:return{ns:e.slice(),isHTML:i,tag:null};case o:return at(b,a.name,a.value,h),null;case p:return b.push(a.data.replace(/[<&>]/g,R)),null;case q:if(h&&-1!==a.data.indexOf("]]>"))throw new G(F,'The CDATASection data contains "]]>"');return b.push("<![CDATA[",a.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case u:if(h&&-1!==a.data.indexOf("--\x3e"))throw new G(F,'The comment node data contains "--\x3e"');return b.push("\x3c!--",a.data,"--\x3e"),null;case w:if(h){if(!g.test(a.name))throw new G(F,'The doctype name "'+a.name+'" is not a valid XML Name');if(a.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(a.publicId))throw new G(F,"DocumentType publicId is not a valid PubidLiteral");if(a.systemId&&!/^("[^"]*"|'[^']*')$/.test(a.systemId))throw new G(F,"DocumentType systemId is not a valid SystemLiteral");if(a.internalSubset&&-1!==a.internalSubset.indexOf("]>"))throw new G(F,'DocumentType internalSubset contains "]>"')}var L=a.publicId,M=a.systemId;if(b.push("<!DOCTYPE ",a.name),L)b.push(" PUBLIC ",L),M&&"."!=M&&b.push(" ",M),b.push(">");else if(M&&"."!=M)b.push(" SYSTEM ",M,">");else{var N=a.internalSubset;N&&b.push(" [",N,"]"),b.push(">")}return null;case t:if(h){if(!g.test(a.target)||-1!==a.target.indexOf(":")||"xml"===a.target.toLowerCase())throw new G(F,'The processing instruction target "'+a.target+'" is not a valid XML NCName or is reserved');if(-1!==a.data.indexOf("?>"))throw new G(F,'The ProcessingInstruction data contains "?>"')}return b.push("<?",a.target," ",a.data,"?>"),null;case r:if(h&&!g.test(a.nodeName))throw new G(F,'The entity reference name "'+a.nodeName+'" is not a valid XML Name');return b.push("&",a.nodeName,";"),null;default:return b.push("??",a.nodeName),null}},exit:function(a,c){c&&c.tag&&b.push("</",c.tag,">")}})}function av(a,b,c){a[b]=c}A[12]="Syntax error",z.SYNTAX_ERR=12,A[13]="Invalid modification",z.INVALID_MODIFICATION_ERR=13,A[14]="Invalid namespace",z.NAMESPACE_ERR=14,A[15]="Invalid access",z.INVALID_ACCESS_ERR=15,G.prototype=Error.prototype,k(z,G),H.prototype={length:0,item:function(a){return a>=0&&a<this.length?this[a]:null},toString:function(a,b,c){for(var d=!!c&&!!c.requireWellFormed,e=[],f=0;f<this.length;f++)au(this[f],e,a,b,null,d);return e.join("")},filter:function(a){return Array.prototype.filter.call(this,a)},indexOf:function(a){return Array.prototype.indexOf.call(this,a)}},I.prototype.item=function(a){return J(this),this[a]||null},l(I,H),K.prototype={length:0,item:H.prototype.item,getNamedItem:function(a){for(var b=this.length;b--;){var c=this[b];if(c.nodeName==a)return c}},setNamedItem:function(a){var b=a.ownerElement;if(b&&b!=this._ownerElement)throw new G(E);var c=this._nameIndex[a.nodeName];return N(this._ownerElement,this,a,c),c},setNamedItemNS:function(a){var b,c=a.ownerElement;if(c&&c!=this._ownerElement)throw new G(E);return b=this.getNamedItemNS(a.namespaceURI,a.localName),N(this._ownerElement,this,a,b),b},removeNamedItem:function(a){var b=this.getNamedItem(a);return O(this._ownerElement,this,b),b},removeNamedItemNS:function(a,b){var c=this.getNamedItemNS(a,b);return O(this._ownerElement,this,c),c},getNamedItemNS:function(a,b){for(var c=this.length;c--;){var d=this[c];if(d.localName==b&&d.namespaceURI==a)return d}return null}},P.prototype={hasFeature:function(a,b){return!0},createDocument:function(a,b,c){var d=new U;if(d.implementation=this,d.childNodes=new H,d.doctype=c||null,c&&d.appendChild(c),b){var e=d.createElementNS(a,b);d.appendChild(e)}return d},createDocumentType:function(a,b,c){var d=new ak;return d.name=a,d.nodeName=a,d.publicId=b||"",d.systemId=c||"",d}},Q.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(a,b){return ac(this,a,b)},replaceChild:function(a,b){ac(this,a,b,ab),b&&this.removeChild(b)},removeChild:function(a){return X(this,a)},appendChild:function(a){return this.insertBefore(a,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(a){return function a(b,c,d){var e;return T(c,null,{enter:function(c,f){var g=new c.constructor;for(var h in c)if(Object.prototype.hasOwnProperty.call(c,h)){var i=c[h];"object"!=typeof i&&i!=g[h]&&(g[h]=i)}c.childNodes&&(g.childNodes=new H),g.ownerDocument=b;var j=d;switch(g.nodeType){case n:var k=c.attributes,l=g.attributes=new K,m=k.length;l._ownerElement=g;for(var p=0;p<m;p++)g.setAttributeNode(a(b,k.item(p),!0));break;case o:j=!0}return null!==f?f.appendChild(g):e=g,j?g:null}}),e}(this.ownerDocument||this,this,a)},normalize:function(){T(this,null,{enter:function(a){for(var b=a.firstChild;b;){var c=b.nextSibling;if(null!==c&&c.nodeType===p&&b.nodeType===p){for(var d=[],e=c;null!==e&&e.nodeType===p;)d.push(e.data),e=e.nextSibling;for(var f=b.nextSibling;f!==e;){var g=f.nextSibling;f.parentNode=null,f.previousSibling=null,f.nextSibling=null,f=g}b.nextSibling=e,null!==e?e.previousSibling=b:a.lastChild=b,b.appendData(d.join("")),W(a.ownerDocument,a),b=e}else b=c}return!0}})},isSupported:function(a,b){return this.ownerDocument.implementation.hasFeature(a,b)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(a){for(var b=this;b;){var c=b._nsMap;if(c){for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)&&c[d]===a)return d}b=b.nodeType==o?b.ownerDocument:b.parentNode}return null},lookupNamespaceURI:function(a){for(var b=this;b;){var c=b._nsMap;if(c&&Object.prototype.hasOwnProperty.call(c,a))return c[a];b=b.nodeType==o?b.ownerDocument:b.parentNode}return null},isDefaultNamespace:function(a){return null==this.lookupPrefix(a)}},k(m,Q),k(m,Q.prototype),T.STOP=Symbol("walkDOM.STOP"),T.ENTER=0,T.EXIT=1,U.prototype={nodeName:"#document",nodeType:v,doctype:null,documentElement:null,_inc:1,insertBefore:function(a,b){if(a.nodeType==x){for(var c=a.firstChild;c;){var d=c.nextSibling;this.insertBefore(c,b),c=d}return a}return ac(this,a,b),ad(a,this),null===this.documentElement&&a.nodeType===n&&(this.documentElement=a),a},removeChild:function(a){return this.documentElement==a&&(this.documentElement=null),X(this,a)},replaceChild:function(a,b){ac(this,a,b,ab),ad(a,this),b&&this.removeChild(b),Z(a)&&(this.documentElement=a)},importNode:function(a,b){var c,d,e,f;return c=this,d=a,e=b,T(d,null,{enter:function(a,b){var d=a.cloneNode(!1);return d.ownerDocument=c,d.parentNode=null,null===b?f=d:b.appendChild(d),a.nodeType===o||e?d:null}}),f},getElementById:function(a){var b=null;return S(this.documentElement,function(c){if(c.nodeType==n&&c.getAttribute("id")==a)return b=c,!0}),b},getElementsByClassName:function(a){var b=j(a);return new I(this,function(c){var d=[];return b.length>0&&S(c.documentElement,function(e){if(e!==c&&e.nodeType===n){var f=e.getAttribute("class");if(f){var g=a===f;if(!g){var h=j(f);g=b.every(function(a){return h&&-1!==h.indexOf(a)})}g&&d.push(e)}}}),d})},createElement:function(a){var b=new ae;return b.ownerDocument=this,b.nodeName=a,b.tagName=a,b.localName=a,b.childNodes=new H,(b.attributes=new K)._ownerElement=b,b},createDocumentFragment:function(){var a=new ao;return a.ownerDocument=this,a.childNodes=new H,a},createTextNode:function(a){var b=new ah;return b.ownerDocument=this,b.appendData(a),b},createComment:function(a){var b=new ai;return b.ownerDocument=this,b.appendData(a),b},createCDATASection:function(a){if(-1!==a.indexOf("]]>"))throw new G(C,'data contains "]]>"');var b=new aj;return b.ownerDocument=this,b.appendData(a),b},createProcessingInstruction:function(a,b){var c=new ap;return c.ownerDocument=this,c.tagName=c.nodeName=c.target=a,c.nodeValue=c.data=b,c},createAttribute:function(a){var b=new af;return b.ownerDocument=this,b.name=a,b.nodeName=a,b.localName=a,b.specified=!0,b},createEntityReference:function(a){if(!g.test(a))throw new G(C,'not a valid xml name "'+a+'"');var b=new an;return b.ownerDocument=this,b.nodeName=a,b},createElementNS:function(a,b){var c=new ae,d=b.split(":"),e=c.attributes=new K;return c.childNodes=new H,c.ownerDocument=this,c.nodeName=b,c.tagName=b,c.namespaceURI=a,2==d.length?(c.prefix=d[0],c.localName=d[1]):c.localName=b,e._ownerElement=c,c},createAttributeNS:function(a,b){var c=new af,d=b.split(":");return c.ownerDocument=this,c.nodeName=b,c.name=b,c.namespaceURI=a,c.specified=!0,2==d.length?(c.prefix=d[0],c.localName=d[1]):c.localName=b,c}},l(U,Q),ae.prototype={nodeType:n,hasAttribute:function(a){return null!=this.getAttributeNode(a)},getAttribute:function(a){var b=this.getAttributeNode(a);return b&&b.value||""},getAttributeNode:function(a){return this.attributes.getNamedItem(a)},setAttribute:function(a,b){var c=this.ownerDocument.createAttribute(a);c.value=c.nodeValue=""+b,this.setAttributeNode(c)},removeAttribute:function(a){var b=this.getAttributeNode(a);b&&this.removeAttributeNode(b)},appendChild:function(a){return a.nodeType===x?this.insertBefore(a,null):(a.parentNode&&a.parentNode.removeChild(a),a.parentNode=this,a.previousSibling=this.lastChild,a.nextSibling=null,a.previousSibling?a.previousSibling.nextSibling=a:this.firstChild=a,this.lastChild=a,W(this.ownerDocument,this,a),ad(a,this.ownerDocument||this),a)},setAttributeNode:function(a){return this.attributes.setNamedItem(a)},setAttributeNodeNS:function(a){return this.attributes.setNamedItemNS(a)},removeAttributeNode:function(a){return this.attributes.removeNamedItem(a.nodeName)},removeAttributeNS:function(a,b){var c=this.getAttributeNodeNS(a,b);c&&this.removeAttributeNode(c)},hasAttributeNS:function(a,b){return null!=this.getAttributeNodeNS(a,b)},getAttributeNS:function(a,b){var c=this.getAttributeNodeNS(a,b);return c&&c.value||""},setAttributeNS:function(a,b,c){var d=this.ownerDocument.createAttributeNS(a,b);d.value=d.nodeValue=""+c,this.setAttributeNode(d)},getAttributeNodeNS:function(a,b){return this.attributes.getNamedItemNS(a,b)},getElementsByTagName:function(a){return new I(this,function(b){var c=[];return S(b,function(d){d!==b&&d.nodeType==n&&("*"===a||d.tagName==a)&&c.push(d)}),c})},getElementsByTagNameNS:function(a,b){return new I(this,function(c){var d=[];return S(c,function(e){e!==c&&e.nodeType===n&&("*"===a||e.namespaceURI===a)&&("*"===b||e.localName==b)&&d.push(e)}),d})}},U.prototype.getElementsByTagName=ae.prototype.getElementsByTagName,U.prototype.getElementsByTagNameNS=ae.prototype.getElementsByTagNameNS,l(ae,Q),af.prototype.nodeType=o,l(af,Q),ag.prototype={data:"",substringData:function(a,b){return this.data.substring(a,a+b)},appendData:function(a){a=this.data+a,this.nodeValue=this.data=a,this.length=a.length},insertData:function(a,b){this.replaceData(a,0,b)},appendChild:function(a){throw Error(A[B])},deleteData:function(a,b){this.replaceData(a,b,"")},replaceData:function(a,b,c){c=this.data.substring(0,a)+c+this.data.substring(a+b),this.nodeValue=this.data=c,this.length=c.length}},l(ag,Q),ah.prototype={nodeName:"#text",nodeType:p,splitText:function(a){var b=this.data,c=b.substring(a);b=b.substring(0,a),this.data=this.nodeValue=b,this.length=b.length;var d=this.ownerDocument.createTextNode(c);return this.parentNode&&this.parentNode.insertBefore(d,this.nextSibling),d}},l(ah,ag),ai.prototype={nodeName:"#comment",nodeType:u},l(ai,ag),aj.prototype={nodeName:"#cdata-section",nodeType:q},l(aj,ag),ak.prototype.nodeType=w,l(ak,Q),al.prototype.nodeType=y,l(al,Q),am.prototype.nodeType=s,l(am,Q),an.prototype.nodeType=r,l(an,Q),ao.prototype.nodeName="#document-fragment",ao.prototype.nodeType=x,l(ao,Q),ap.prototype.nodeType=t,l(ap,Q),aq.prototype.serializeToString=function(a,b,c,d){return ar.call(a,b,c,d)},Q.prototype.toString=ar;try{Object.defineProperty&&(Object.defineProperty(I.prototype,"length",{get:function(){return J(this),this.$$length}}),Object.defineProperty(Q.prototype,"textContent",{get:function(){if(this.nodeType===n||this.nodeType===x){var a=[];return T(this,null,{enter:function(b){return b.nodeType===n||b.nodeType===x||(b.nodeType===t||b.nodeType===u?null:void a.push(b.nodeValue))}}),a.join("")}return this.nodeValue},set:function(a){switch(this.nodeType){case n:case x:for(;this.firstChild;)this.removeChild(this.firstChild);(a||String(a))&&this.appendChild(this.ownerDocument.createTextNode(a));break;default:this.data=a,this.value=a,this.nodeValue=a}}}),av=function(a,b,c){a["$$"+b]=c})}catch(a){}b.DocumentType=ak,b.DOMException=G,b.DOMImplementation=P,b.Element=ae,b.Node=Q,b.NodeList=H,b.walkDOM=T,b.XMLSerializer=aq},81654:(a,b,c)=>{!function(a){a.parser=function(a,b){return new h(a,b)},a.SAXParser=h,a.SAXStream=j,a.createStream=function(a,b){return new j(a,b)},a.MAX_BUFFER_LENGTH=65536;var b,d,e,f,g=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function h(b,c){if(!(this instanceof h))return new h(b,c);(function(a){for(var b=0,c=g.length;b<c;b++)a[g[b]]=""})(this),this.q=this.c="",this.bufferCheckPosition=a.MAX_BUFFER_LENGTH,this.encoding=null,this.opt=c||{},this.opt.lowercase=this.opt.lowercase||this.opt.lowercasetags,this.looseCase=this.opt.lowercase?"toLowerCase":"toUpperCase",this.opt.maxEntityCount=this.opt.maxEntityCount||512,this.opt.maxEntityDepth=this.opt.maxEntityDepth||4,this.entityCount=this.entityDepth=0,this.tags=[],this.closed=this.closedRoot=this.sawRoot=!1,this.tag=this.error=null,this.strict=!!b,this.noscript=!!(b||this.opt.noscript),this.state=w.BEGIN,this.strictEntities=this.opt.strictEntities,this.ENTITIES=this.strictEntities?Object.create(a.XML_ENTITIES):Object.create(a.ENTITIES),this.attribList=[],this.opt.xmlns&&(this.ns=Object.create(o)),void 0===this.opt.unquotedAttributeValues&&(this.opt.unquotedAttributeValues=!b),this.trackPosition=!1!==this.opt.position,this.trackPosition&&(this.position=this.line=this.column=0),y(this,"onready")}a.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(a){function b(){}return b.prototype=a,new b}),Object.keys||(Object.keys=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b}),h.prototype={end:function(){E(this)},write:function(b){if(this.error)throw this.error;if(this.closed)return D(this,"Cannot write after close. Assign an onready handler.");if(null===b)return E(this);"object"==typeof b&&(b=b.toString());for(var c=0,d="";d=L(b,c++),this.c=d,d;)switch(this.trackPosition&&(this.position++,"\n"===d?(this.line++,this.column=0):this.column++),this.state){case w.BEGIN:if(this.state=w.BEGIN_WHITESPACE,"\uFEFF"===d)continue;K(this,d);continue;case w.BEGIN_WHITESPACE:K(this,d);continue;case w.TEXT:if(this.sawRoot&&!this.closedRoot){for(var e=c-1;d&&"<"!==d&&"&"!==d;)(d=L(b,c++))&&this.trackPosition&&(this.position++,"\n"===d?(this.line++,this.column=0):this.column++);this.textNode+=b.substring(e,c-1)}"<"!==d||this.sawRoot&&this.closedRoot&&!this.strict?(t(d)||this.sawRoot&&!this.closedRoot||F(this,"Text data outside of root node."),"&"===d?this.state=w.TEXT_ENTITY:this.textNode+=d):(this.state=w.OPEN_WAKA,this.startTagPosition=this.position);continue;case w.SCRIPT:"<"===d?this.state=w.SCRIPT_ENDING:this.script+=d;continue;case w.SCRIPT_ENDING:"/"===d?this.state=w.CLOSE_TAG:(this.script+="<"+d,this.state=w.SCRIPT);continue;case w.OPEN_WAKA:"!"===d?(this.state=w.SGML_DECL,this.sgmlDecl=""):t(d)||(v(p,d)?(this.state=w.OPEN_TAG,this.tagName=d):"/"===d?(this.state=w.CLOSE_TAG,this.tagName=""):"?"===d?(this.state=w.PROC_INST,this.procInstName=this.procInstBody=""):(F(this,"Unencoded <"),this.startTagPosition+1<this.position&&(d=Array(this.position-this.startTagPosition).join(" ")+d),this.textNode+="<"+d,this.state=w.TEXT));continue;case w.SGML_DECL:if(this.sgmlDecl+d==="--"){this.state=w.COMMENT,this.comment="",this.sgmlDecl="";continue}this.doctype&&!0!==this.doctype&&this.sgmlDecl?(this.state=w.DOCTYPE_DTD,this.doctype+="<!"+this.sgmlDecl+d,this.sgmlDecl=""):k.test(this.sgmlDecl+d)?(A(this,"onopencdata"),this.state=w.CDATA,this.sgmlDecl="",this.cdata=""):l.test(this.sgmlDecl+d)?(this.state=w.DOCTYPE,(this.doctype||this.sawRoot)&&F(this,"Inappropriately located doctype declaration"),this.doctype="",this.sgmlDecl=""):">"===d?(A(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=w.TEXT):(u(d)&&(this.state=w.SGML_DECL_QUOTED),this.sgmlDecl+=d);continue;case w.SGML_DECL_QUOTED:d===this.q&&(this.state=w.SGML_DECL,this.q=""),this.sgmlDecl+=d;continue;case w.DOCTYPE:">"===d?(this.state=w.TEXT,A(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=d,"["===d?this.state=w.DOCTYPE_DTD:u(d)&&(this.state=w.DOCTYPE_QUOTED,this.q=d));continue;case w.DOCTYPE_QUOTED:this.doctype+=d,d===this.q&&(this.q="",this.state=w.DOCTYPE);continue;case w.DOCTYPE_DTD:"]"===d?(this.doctype+=d,this.state=w.DOCTYPE):"<"===d?(this.state=w.OPEN_WAKA,this.startTagPosition=this.position):u(d)?(this.doctype+=d,this.state=w.DOCTYPE_DTD_QUOTED,this.q=d):this.doctype+=d;continue;case w.DOCTYPE_DTD_QUOTED:this.doctype+=d,d===this.q&&(this.state=w.DOCTYPE_DTD,this.q="");continue;case w.COMMENT:"-"===d?this.state=w.COMMENT_ENDING:this.comment+=d;continue;case w.COMMENT_ENDING:"-"===d?(this.state=w.COMMENT_ENDED,this.comment=C(this.opt,this.comment),this.comment&&A(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+d,this.state=w.COMMENT);continue;case w.COMMENT_ENDED:">"!==d?(F(this,"Malformed comment"),this.comment+="--"+d,this.state=w.COMMENT):this.doctype&&!0!==this.doctype?this.state=w.DOCTYPE_DTD:this.state=w.TEXT;continue;case w.CDATA:for(var e=c-1;d&&"]"!==d;)(d=L(b,c++))&&this.trackPosition&&(this.position++,"\n"===d?(this.line++,this.column=0):this.column++);this.cdata+=b.substring(e,c-1),"]"===d&&(this.state=w.CDATA_ENDING);continue;case w.CDATA_ENDING:"]"===d?this.state=w.CDATA_ENDING_2:(this.cdata+="]"+d,this.state=w.CDATA);continue;case w.CDATA_ENDING_2:">"===d?(this.cdata&&A(this,"oncdata",this.cdata),A(this,"onclosecdata"),this.cdata="",this.state=w.TEXT):"]"===d?this.cdata+="]":(this.cdata+="]]"+d,this.state=w.CDATA);continue;case w.PROC_INST:"?"===d?this.state=w.PROC_INST_ENDING:t(d)?this.state=w.PROC_INST_BODY:this.procInstName+=d;continue;case w.PROC_INST_BODY:!this.procInstBody&&t(d)||("?"===d?this.state=w.PROC_INST_ENDING:this.procInstBody+=d);continue;case w.PROC_INST_ENDING:if(">"===d){let a={name:this.procInstName,body:this.procInstBody};!function(a,b){if(a.strict&&a.encoding&&b&&"xml"===b.name){let g,h;var c,d,e,f=(d=(c=b.body)&&c.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i))?d[2]:null;f&&(e=a.encoding,g=z(e),h=z(f),g&&h&&("utf16"===h?"utf16le"!==g&&"utf16be"!==g:g!==h))&&F(a,"XML declaration encoding "+f+" does not match detected stream encoding "+a.encoding.toUpperCase())}}(this,a),A(this,"onprocessinginstruction",a),this.procInstName=this.procInstBody="",this.state=w.TEXT}else this.procInstBody+="?"+d,this.state=w.PROC_INST_BODY;continue;case w.OPEN_TAG:v(q,d)?this.tagName+=d:(!function(a){a.strict||(a.tagName=a.tagName[a.looseCase]());var b=a.tags[a.tags.length-1]||a,c=a.tag={name:a.tagName,attributes:{}};a.opt.xmlns&&(c.ns=b.ns),a.attribList.length=0,A(a,"onopentagstart",c)}(this),">"===d?I(this):"/"===d?this.state=w.OPEN_TAG_SLASH:(t(d)||F(this,"Invalid character in tag name"),this.state=w.ATTRIB));continue;case w.OPEN_TAG_SLASH:">"===d?(I(this,!0),J(this)):(F(this,"Forward-slash in opening tag not followed by >"),this.state=w.ATTRIB);continue;case w.ATTRIB:t(d)||(">"===d?I(this):"/"===d?this.state=w.OPEN_TAG_SLASH:v(p,d)?(this.attribName=d,this.attribValue="",this.state=w.ATTRIB_NAME):F(this,"Invalid attribute name"));continue;case w.ATTRIB_NAME:"="===d?this.state=w.ATTRIB_VALUE:">"===d?(F(this,"Attribute without value"),this.attribValue=this.attribName,H(this),I(this)):t(d)?this.state=w.ATTRIB_NAME_SAW_WHITE:v(q,d)?this.attribName+=d:F(this,"Invalid attribute name");continue;case w.ATTRIB_NAME_SAW_WHITE:if("="===d)this.state=w.ATTRIB_VALUE;else{if(t(d))continue;F(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",A(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===d?I(this):v(p,d)?(this.attribName=d,this.state=w.ATTRIB_NAME):(F(this,"Invalid attribute name"),this.state=w.ATTRIB)}continue;case w.ATTRIB_VALUE:t(d)||(u(d)?(this.q=d,this.state=w.ATTRIB_VALUE_QUOTED):(this.opt.unquotedAttributeValues||D(this,"Unquoted attribute value"),this.state=w.ATTRIB_VALUE_UNQUOTED,this.attribValue=d));continue;case w.ATTRIB_VALUE_QUOTED:if(d!==this.q){"&"===d?this.state=w.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=d;continue}H(this),this.q="",this.state=w.ATTRIB_VALUE_CLOSED;continue;case w.ATTRIB_VALUE_CLOSED:t(d)?this.state=w.ATTRIB:">"===d?I(this):"/"===d?this.state=w.OPEN_TAG_SLASH:v(p,d)?(F(this,"No whitespace between attributes"),this.attribName=d,this.attribValue="",this.state=w.ATTRIB_NAME):F(this,"Invalid attribute name");continue;case w.ATTRIB_VALUE_UNQUOTED:if(!(">"===(f=d)||t(f))){"&"===d?this.state=w.ATTRIB_VALUE_ENTITY_U:this.attribValue+=d;continue}H(this),">"===d?I(this):this.state=w.ATTRIB;continue;case w.CLOSE_TAG:this.tagName?">"===d?J(this):v(q,d)?this.tagName+=d:this.script?(this.script+="</"+this.tagName+d,this.tagName="",this.state=w.SCRIPT):(t(d)||F(this,"Invalid tagname in closing tag"),this.state=w.CLOSE_TAG_SAW_WHITE):t(d)||(v(p,d)?this.tagName=d:this.script?(this.script+="</"+d,this.state=w.SCRIPT):F(this,"Invalid tagname in closing tag."));continue;case w.CLOSE_TAG_SAW_WHITE:if(t(d))continue;">"===d?J(this):F(this,"Invalid characters in closing tag");continue;case w.TEXT_ENTITY:case w.ATTRIB_VALUE_ENTITY_Q:case w.ATTRIB_VALUE_ENTITY_U:switch(this.state){case w.TEXT_ENTITY:h=w.TEXT,i="textNode";break;case w.ATTRIB_VALUE_ENTITY_Q:h=w.ATTRIB_VALUE_QUOTED,i="attribValue";break;case w.ATTRIB_VALUE_ENTITY_U:h=w.ATTRIB_VALUE_UNQUOTED,i="attribValue"}if(";"===d){var f,h,i,j=function(a){var b,c,d=a.entity,e=d.toLowerCase(),f="";return a.ENTITIES[d]?a.ENTITIES[d]:a.ENTITIES[e]?a.ENTITIES[e]:("#"===(d=e).charAt(0)&&(f="x"===d.charAt(1)?(c=parseInt(d=d.slice(2),16)).toString(16):(c=parseInt(d=d.slice(1),10)).toString(10)),d=d.replace(/^0+/,""),isNaN(c)||f.toLowerCase()!==d||c<0||c>1114111||!(9===(b=c)||10===b||13===b||b>=32&&b<=55295||b>=57344&&b<=65533||b>=65536&&b<=1114111))?(F(a,"Invalid character entity"),"&"+a.entity+";"):String.fromCodePoint(c)}(this);this.opt.unparsedEntities&&!Object.values(a.XML_ENTITIES).includes(j)?((this.entityCount+=1)>this.opt.maxEntityCount&&D(this,"Parsed entity count exceeds max entity count"),(this.entityDepth+=1)>this.opt.maxEntityDepth&&D(this,"Parsed entity depth exceeds max entity depth"),this.entity="",this.state=h,this.write(j),this.entityDepth-=1):(this[i]+=j,this.entity="",this.state=h)}else v(this.entity.length?s:r,d)?this.entity+=d:(F(this,"Invalid character in entity name"),this[i]+="&"+this.entity+d,this.entity="",this.state=h);continue;default:throw Error(this,"Unknown state: "+this.state)}return this.position>=this.bufferCheckPosition&&function(b){for(var c=Math.max(a.MAX_BUFFER_LENGTH,10),d=0,e=0,f=g.length;e<f;e++){var h=b[g[e]].length;if(h>c)switch(g[e]){case"textNode":B(b);break;case"cdata":A(b,"oncdata",b.cdata),b.cdata="";break;case"script":A(b,"onscript",b.script),b.script="";break;default:D(b,"Max buffer length exceeded: "+g[e])}d=Math.max(d,h)}b.bufferCheckPosition=a.MAX_BUFFER_LENGTH-d+b.position}(this),this},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){B(this),""!==this.cdata&&(A(this,"oncdata",this.cdata),this.cdata=""),""!==this.script&&(A(this,"onscript",this.script),this.script="")}};try{f=c(27910).Stream}catch(a){f=function(){}}f||(f=function(){});var i=a.EVENTS.filter(function(a){return"error"!==a&&"end"!==a});function j(a,b){if(!(this instanceof j))return new j(a,b);f.apply(this),this._parser=new h(a,b),this.writable=!0,this.readable=!0;var c=this;this._parser.onend=function(){c.emit("end")},this._parser.onerror=function(a){c.emit("error",a),c._parser.error=null},this._decoder=null,this._decoderBuffer=null,i.forEach(function(a){Object.defineProperty(c,"on"+a,{get:function(){return c._parser["on"+a]},set:function(b){if(!b)return c.removeAllListeners(a),c._parser["on"+a]=b,b;c.on(a,b)},enumerable:!0,configurable:!1})})}j.prototype=Object.create(f.prototype,{constructor:{value:j}}),j.prototype._decodeBuffer=function(a,b){if(this._decoderBuffer&&(a=Buffer.concat([this._decoderBuffer,a]),this._decoderBuffer=null),!this._decoder){var c=function(a,b){if(a.length>=2){if(255===a[0]&&254===a[1])return"utf-16le";if(254===a[0]&&255===a[1])return"utf-16be"}return a.length>=3&&239===a[0]&&187===a[1]&&191===a[2]?"utf8":a.length>=4?60===a[0]&&0===a[1]&&63===a[2]&&0===a[3]?"utf-16le":0===a[0]&&60===a[1]&&0===a[2]&&63===a[3]?"utf-16be":"utf8":b?"utf8":null}(a,b);if(!c)return this._decoderBuffer=a,"";this._parser.encoding=c,this._decoder=new TextDecoder(c)}return this._decoder.decode(a,{stream:!b})},j.prototype.write=function(a){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(a))a=this._decodeBuffer(a,!1);else if(this._decoderBuffer){var b=this._decodeBuffer(Buffer.alloc(0),!0);b&&(this._parser.write(b),this.emit("data",b))}return this._parser.write(a.toString()),this.emit("data",a),!0},j.prototype.end=function(a){if(a&&a.length&&this.write(a),this._decoderBuffer){var b=this._decodeBuffer(Buffer.alloc(0),!0);b&&(this._parser.write(b),this.emit("data",b))}else if(this._decoder){var c=this._decoder.decode();c&&(this._parser.write(c),this.emit("data",c))}return this._parser.end(),!0},j.prototype.on=function(a,b){var c=this;return c._parser["on"+a]||-1===i.indexOf(a)||(c._parser["on"+a]=function(){var b=1==arguments.length?[arguments[0]]:Array.apply(null,arguments);b.splice(0,0,a),c.emit.apply(c,b)}),f.prototype.on.call(c,a,b)};var k=/^\[CDATA\[$/i,l=/^DOCTYPE$/i,m="http://www.w3.org/XML/1998/namespace",n="http://www.w3.org/2000/xmlns/",o={xml:m,xmlns:n},p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,q=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,r=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,s=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function t(a){return" "===a||"\n"===a||"\r"===a||" "===a}function u(a){return'"'===a||"'"===a}function v(a,b){return a.test(b)}var w=0;for(var x in a.STATE={BEGIN:w++,BEGIN_WHITESPACE:w++,TEXT:w++,TEXT_ENTITY:w++,OPEN_WAKA:w++,SGML_DECL:w++,SGML_DECL_QUOTED:w++,DOCTYPE:w++,DOCTYPE_QUOTED:w++,DOCTYPE_DTD:w++,DOCTYPE_DTD_QUOTED:w++,COMMENT_STARTING:w++,COMMENT:w++,COMMENT_ENDING:w++,COMMENT_ENDED:w++,CDATA:w++,CDATA_ENDING:w++,CDATA_ENDING_2:w++,PROC_INST:w++,PROC_INST_BODY:w++,PROC_INST_ENDING:w++,OPEN_TAG:w++,OPEN_TAG_SLASH:w++,ATTRIB:w++,ATTRIB_NAME:w++,ATTRIB_NAME_SAW_WHITE:w++,ATTRIB_VALUE:w++,ATTRIB_VALUE_QUOTED:w++,ATTRIB_VALUE_CLOSED:w++,ATTRIB_VALUE_UNQUOTED:w++,ATTRIB_VALUE_ENTITY_Q:w++,ATTRIB_VALUE_ENTITY_U:w++,CLOSE_TAG:w++,CLOSE_TAG_SAW_WHITE:w++,SCRIPT:w++,SCRIPT_ENDING:w++},a.XML_ENTITIES=Object.assign(Object.create(null),{amp:"&",gt:">",lt:"<",quot:'"',apos:"'"}),a.ENTITIES=Object.assign(Object.create(null),{amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}),Object.keys(a.ENTITIES).forEach(function(b){var c=a.ENTITIES[b],d="number"==typeof c?String.fromCharCode(c):c;a.ENTITIES[b]=d}),a.STATE)a.STATE[a.STATE[x]]=x;function y(a,b,c){a[b]&&a[b](c)}function z(a){return a?a.toLowerCase().replace(/[^a-z0-9]/g,""):null}function A(a,b,c){a.textNode&&B(a),y(a,b,c)}function B(a){a.textNode=C(a.opt,a.textNode),a.textNode&&y(a,"ontext",a.textNode),a.textNode=""}function C(a,b){return a.trim&&(b=b.trim()),a.normalize&&(b=b.replace(/\s+/g," ")),b}function D(a,b){return B(a),a.trackPosition&&(b+="\nLine: "+a.line+"\nColumn: "+a.column+"\nChar: "+a.c),a.error=b=Error(b),y(a,"onerror",b),a}function E(a){return a.sawRoot&&!a.closedRoot&&F(a,"Unclosed root tag"),a.state!==w.BEGIN&&a.state!==w.BEGIN_WHITESPACE&&a.state!==w.TEXT&&D(a,"Unexpected end"),B(a),a.c="",a.closed=!0,y(a,"onend"),h.call(a,a.strict,a.opt),a}function F(a,b){if("object"!=typeof a||!(a instanceof h))throw Error("bad call to strictFail");a.strict&&D(a,b)}function G(a,b){var c=0>a.indexOf(":")?["",a]:a.split(":"),d=c[0],e=c[1];return b&&"xmlns"===a&&(d="xmlns",e=""),{prefix:d,local:e}}function H(a){if(a.strict||(a.attribName=a.attribName[a.looseCase]()),-1!==a.attribList.indexOf(a.attribName)||a.tag.attributes.hasOwnProperty(a.attribName)){a.attribName=a.attribValue="";return}if(a.opt.xmlns){var b=G(a.attribName,!0),c=b.prefix,d=b.local;if("xmlns"===c)if("xml"===d&&a.attribValue!==m)F(a,"xml: prefix must be bound to "+m+"\nActual: "+a.attribValue);else if("xmlns"===d&&a.attribValue!==n)F(a,"xmlns: prefix must be bound to "+n+"\nActual: "+a.attribValue);else{var e=a.tag,f=a.tags[a.tags.length-1]||a;e.ns===f.ns&&(e.ns=Object.create(f.ns)),e.ns[d]=a.attribValue}a.attribList.push([a.attribName,a.attribValue])}else a.tag.attributes[a.attribName]=a.attribValue,A(a,"onattribute",{name:a.attribName,value:a.attribValue});a.attribName=a.attribValue=""}function I(a,b){if(a.opt.xmlns){var c=a.tag,d=G(a.tagName);c.prefix=d.prefix,c.local=d.local,c.uri=c.ns[d.prefix]||"",c.prefix&&!c.uri&&(F(a,"Unbound namespace prefix: "+JSON.stringify(a.tagName)),c.uri=d.prefix);var e=a.tags[a.tags.length-1]||a;c.ns&&e.ns!==c.ns&&Object.keys(c.ns).forEach(function(b){A(a,"onopennamespace",{prefix:b,uri:c.ns[b]})});for(var f=0,g=a.attribList.length;f<g;f++){var h=a.attribList[f],i=h[0],j=h[1],k=G(i,!0),l=k.prefix,m=k.local,n=""===l?"":c.ns[l]||"",o={name:i,value:j,prefix:l,local:m,uri:n};l&&"xmlns"!==l&&!n&&(F(a,"Unbound namespace prefix: "+JSON.stringify(l)),o.uri=l),a.tag.attributes[i]=o,A(a,"onattribute",o)}a.attribList.length=0}a.tag.isSelfClosing=!!b,a.sawRoot=!0,a.tags.push(a.tag),A(a,"onopentag",a.tag),b||(a.noscript||"script"!==a.tagName.toLowerCase()?a.state=w.TEXT:a.state=w.SCRIPT,a.tag=null,a.tagName=""),a.attribName=a.attribValue="",a.attribList.length=0}function J(a){if(!a.tagName){F(a,"Weird empty close tag."),a.textNode+="</>",a.state=w.TEXT;return}if(a.script){if("script"!==a.tagName){a.script+="</"+a.tagName+">",a.tagName="",a.state=w.SCRIPT;return}A(a,"onscript",a.script),a.script=""}var b=a.tags.length,c=a.tagName;a.strict||(c=c[a.looseCase]());for(var d=c;b--;)if(a.tags[b].name!==d)F(a,"Unexpected close tag");else break;if(b<0){F(a,"Unmatched closing tag: "+a.tagName),a.textNode+="</"+a.tagName+">",a.state=w.TEXT;return}a.tagName=c;for(var e=a.tags.length;e-- >b;){var f=a.tag=a.tags.pop();a.tagName=a.tag.name,A(a,"onclosetag",a.tagName);var g={};for(var h in f.ns)g[h]=f.ns[h];var i=a.tags[a.tags.length-1]||a;a.opt.xmlns&&f.ns!==i.ns&&Object.keys(f.ns).forEach(function(b){var c=f.ns[b];A(a,"onclosenamespace",{prefix:b,uri:c})})}0===b&&(a.closedRoot=!0),a.tagName=a.attribValue=a.attribName="",a.attribList.length=0,a.state=w.TEXT}function K(a,b){"<"===b?(a.state=w.OPEN_WAKA,a.startTagPosition=a.position):t(b)||(F(a,"Non-whitespace before first tag."),a.textNode=b,a.state=w.TEXT)}function L(a,b){var c="";return b<a.length&&(c=a.charAt(b)),c}w=a.STATE,String.fromCodePoint||(b=String.fromCharCode,d=Math.floor,e=function(){var a,c,e=[],f=-1,g=arguments.length;if(!g)return"";for(var h="";++f<g;){var i=Number(arguments[f]);if(!isFinite(i)||i<0||i>1114111||d(i)!==i)throw RangeError("Invalid code point: "+i);i<=65535?e.push(i):(i-=65536,a=(i>>10)+55296,c=i%1024+56320,e.push(a,c)),(f+1===g||e.length>16384)&&(h+=b.apply(null,e),e.length=0)}return h},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:e,configurable:!0,writable:!0}):String.fromCodePoint=e)}(b)},82307:function(a){(function(){a.exports=(function(){class a{constructor(a){this.nodes=a}clone(){return this.nodes=null}item(a){return this.nodes[a]||null}}return Object.defineProperty(a.prototype,"length",{get:function(){return this.nodes.length||0}}),a}).call(this)}).call(this)},84519:function(a,b,c){(function(){var b,d,e,f,g,h,i,j={}.hasOwnProperty;({isObject:i,isFunction:h,getValue:g}=c(43594)),f=c(73067),b=c(26468),d=c(95759),e=c(87074),a.exports=(function(){class a extends f{constructor(a,c,d){var e,f,g,h;if(super(a),null==c)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(c),this.type=b.Element,this.attribs={},this.schemaTypeInfo=null,null!=d&&this.attribute(d),a.type===b.Document&&(this.isRoot=!0,this.documentObject=a,a.rootObject=this,a.children)){for(f=0,g=(h=a.children).length;f<g;f++)if((e=h[f]).type===b.DocType){e.name=this.name;break}}}clone(){var a,b,c,d;for(b in(c=Object.create(this)).isRoot&&(c.documentObject=null),c.attribs={},d=this.attribs)j.call(d,b)&&(a=d[b],c.attribs[b]=a.clone());return c.children=[],this.children.forEach(function(a){var b;return(b=a.clone()).parent=c,c.children.push(b)}),c}attribute(a,b){var c,e;if(null!=a&&(a=g(a)),i(a))for(c in a)j.call(a,c)&&(e=a[c],this.attribute(c,e));else h(b)&&(b=b.apply()),this.options.keepNullAttributes&&null==b?this.attribs[a]=new d(this,a,""):null!=b&&(this.attribs[a]=new d(this,a,b));return this}removeAttribute(a){var b,c,d;if(null==a)throw Error("Missing attribute name. "+this.debugInfo());if(Array.isArray(a=g(a)))for(c=0,d=a.length;c<d;c++)b=a[c],delete this.attribs[b];else delete this.attribs[a];return this}toString(a){return this.options.writer.element(this,this.options.writer.filterOptions(a))}att(a,b){return this.attribute(a,b)}a(a,b){return this.attribute(a,b)}getAttribute(a){return this.attribs.hasOwnProperty(a)?this.attribs[a].value:null}setAttribute(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNode(a){return this.attribs.hasOwnProperty(a)?this.attribs[a]:null}setAttributeNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNS(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNodeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNodeNS(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}hasAttribute(a){return this.attribs.hasOwnProperty(a)}hasAttributeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}setIdAttribute(a,b){return this.attribs.hasOwnProperty(a)?this.attribs[a].isId:b}setIdAttributeNS(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}setIdAttributeNode(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(a){var b,c,d;if(!super.isEqualNode(a)||a.namespaceURI!==this.namespaceURI||a.prefix!==this.prefix||a.localName!==this.localName||a.attribs.length!==this.attribs.length)return!1;for(b=c=0,d=this.attribs.length-1;0<=d?c<=d:c>=d;b=0<=d?++c:--c)if(!this.attribs[b].isEqualNode(a.attribs[b]))return!1;return!0}}return Object.defineProperty(a.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"id",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"className",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"classList",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new e(this.attribs)),this.attributeMap}}),a}).call(this)}).call(this)},84689:function(a,b,c){(function(){var b,d,e,f=function(a,b){for(var c in b)g.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},g={}.hasOwnProperty;e=c(4700).isObject,d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,f,g){var h;c.__super__.constructor.call(this,a),e(d)&&(d=(h=d).version,f=h.encoding,g=h.standalone),d||(d="1.0"),this.type=b.Declaration,this.version=this.stringify.xmlVersion(d),null!=f&&(this.encoding=this.stringify.xmlEncoding(f)),null!=g&&(this.standalone=this.stringify.xmlStandalone(g))}return f(c,a),c.prototype.toString=function(a){return this.options.writer.declaration(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},86115:function(a,b,c){(function(){"use strict";var a,d,e,f,g,h={}.hasOwnProperty;a=c(7216),d=c(56068).defaults,f=function(a){return"string"==typeof a&&(a.indexOf("&")>=0||a.indexOf(">")>=0||a.indexOf("<")>=0)},g=function(a){return"<![CDATA["+e(a)+"]]>"},e=function(a){return a.replace("]]>","]]]]><![CDATA[>")},b.Builder=function(){function b(a){var b,c,e;for(b in this.options={},c=d["0.2"])h.call(c,b)&&(e=c[b],this.options[b]=e);for(b in a)h.call(a,b)&&(e=a[b],this.options[b]=e)}return b.prototype.buildObject=function(b){var c,e,i,j,k,l;return c=this.options.attrkey,e=this.options.charkey,1===Object.keys(b).length&&this.options.rootName===d["0.2"].rootName?(k=Object.keys(b)[0],b=b[k]):k=this.options.rootName,l=this,i=function(a,b){var d,j,k,m,n,o;if("object"!=typeof b)l.options.cdata&&f(b)?a.raw(g(b)):a.txt(b);else if(Array.isArray(b)){for(m in b)if(h.call(b,m))for(n in j=b[m])k=j[n],a=i(a.ele(n),k).up()}else for(n in b)if(h.call(b,n))if(j=b[n],n===c){if("object"==typeof j)for(d in j)o=j[d],a=a.att(d,o)}else if(n===e)a=l.options.cdata&&f(j)?a.raw(g(j)):a.txt(j);else if(Array.isArray(j))for(m in j)h.call(j,m)&&(a="string"==typeof(k=j[m])?l.options.cdata&&f(k)?a.ele(n).raw(g(k)).up():a.ele(n,k).up():i(a.ele(n),k).up());else"object"==typeof j?a=i(a.ele(n),j).up():"string"==typeof j&&l.options.cdata&&f(j)?a=a.ele(n).raw(g(j)).up():(null==j&&(j=""),a=a.ele(n,j.toString()).up());return a},j=a.create(k,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),i(j,b).end(this.options.renderOpts)},b}()}).call(this)},86175:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getSigningAlgorithm=function(a){switch(a){case"sha256":return"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";case"sha512":return"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512";default:return"http://www.w3.org/2000/09/xmldsig#rsa-sha1"}},b.getDigestAlgorithm=function(a){switch(a){case"sha256":return"http://www.w3.org/2001/04/xmlenc#sha256";case"sha512":return"http://www.w3.org/2001/04/xmlenc#sha512";default:return"http://www.w3.org/2000/09/xmldsig#sha1"}},b.getSigner=function(a){switch(a){case"sha256":return d.createSign("RSA-SHA256");case"sha512":return d.createSign("RSA-SHA512");default:return d.createSign("RSA-SHA1")}};let d=c(55511)},86690:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=b.Text,this.value=this.stringify.text(d)}return d(c,a),Object.defineProperty(c.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"wholeText",{get:function(){var a,b,c;for(c="",b=this.previousSibling;b;)c=b.data+c,b=b.previousSibling;for(c+=this.data,a=this.nextSibling;a;)c+=a.data,a=a.nextSibling;return c}}),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.text(this,this.options.writer.filterOptions(a))},c.prototype.splitText=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.replaceWholeText=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c}(c(92478))}).call(this)},87074:function(a){(function(){a.exports=(function(){class a{constructor(a){this.nodes=a}clone(){return this.nodes=null}getNamedItem(a){return this.nodes[a]}setNamedItem(a){var b;return b=this.nodes[a.nodeName],this.nodes[a.nodeName]=a,b||null}removeNamedItem(a){var b;return b=this.nodes[a],delete this.nodes[a],b||null}item(a){return this.nodes[Object.keys(this.nodes)[a]]||null}getNamedItemNS(a,b){throw Error("This DOM method is not implemented.")}setNamedItemNS(a){throw Error("This DOM method is not implemented.")}removeNamedItemNS(a,b){throw Error("This DOM method is not implemented.")}}return Object.defineProperty(a.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),a}).call(this)}).call(this)},88435:function(a){(function(){a.exports=function(){function a(){}return a.prototype.handleError=function(a){throw Error(a)},a}()}).call(this)},88909:function(a){(function(){a.exports=class{hasFeature(a,b){return!0}createDocumentType(a,b,c){throw Error("This DOM method is not implemented.")}createDocument(a,b,c){throw Error("This DOM method is not implemented.")}createHTMLDocument(a){throw Error("This DOM method is not implemented.")}getFeature(a,b){throw Error("This DOM method is not implemented.")}}}).call(this)},89830:(a,b,c)=>{let d=c(83997),e=c(28354);b.init=function(a){a.inspectOpts={};let c=Object.keys(b.inspectOpts);for(let d=0;d<c.length;d++)a.inspectOpts[c[d]]=b.inspectOpts[c[d]]},b.log=function(...a){return process.stderr.write(e.formatWithOptions(b.inspectOpts,...a)+"\n")},b.formatArgs=function(c){let{namespace:d,useColors:e}=this;if(e){let b=this.color,e="\x1b[3"+(b<8?b:"8;5;"+b),f=` ${e};1m${d} \u001B[0m`;c[0]=f+c[0].split("\n").join("\n"+f),c.push(e+"m+"+a.exports.humanize(this.diff)+"\x1b[0m")}else c[0]=(b.inspectOpts.hideDate?"":new Date().toISOString()+" ")+d+" "+c[0]},b.save=function(a){a?process.env.DEBUG=a:delete process.env.DEBUG},b.load=function(){return process.env.DEBUG},b.useColors=function(){return"colors"in b.inspectOpts?!!b.inspectOpts.colors:d.isatty(process.stderr.fd)},b.destroy=e.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),b.colors=[6,2,3,4,5,1];try{let a=c(41892);a&&(a.stderr||a).level>=2&&(b.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(a){}b.inspectOpts=Object.keys(process.env).filter(a=>/^debug_/i.test(a)).reduce((a,b)=>{let c=b.substring(6).toLowerCase().replace(/_([a-z])/g,(a,b)=>b.toUpperCase()),d=process.env[b];return d=!!/^(yes|on|true|enabled)$/i.test(d)||!/^(no|off|false|disabled)$/i.test(d)&&("null"===d?null:Number(d)),a[c]=d,a},{}),a.exports=c(9315)(b);let{formatters:f}=a.exports;f.o=function(a){return this.inspectOpts.colors=this.useColors,e.inspect(a,this.inspectOpts).split("\n").map(a=>a.trim()).join(" ")},f.O=function(a){return this.inspectOpts.colors=this.useColors,e.inspect(a,this.inspectOpts)}},91729:(a,b,c)=>{var d=c(23849).NAMESPACE,e=c(23849).tagNamePattern;function f(a,b){this.message=a,this.locator=b,Error.captureStackTrace&&Error.captureStackTrace(this,f)}function g(){}function h(a,b){return b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber,b}function i(a,b,c){for(var e=a.tagName,f=null,g=a.length;g--;){var h=a[g],i=h.qName,j=h.value,k=i.indexOf(":");if(k>0)var l=h.prefix=i.slice(0,k),m=i.slice(k+1),n="xmlns"===l&&m;else m=i,l=null,n="xmlns"===i&&"";h.localName=m,!1!==n&&(null==f&&(f={},c=Object.create(c)),c[n]=f[n]=j,h.uri=d.XMLNS,b.startPrefixMapping(n,j))}for(var g=a.length;g--;){var l=(h=a[g]).prefix;l&&("xml"===l&&(h.uri=d.XML),"xmlns"!==l&&(h.uri=c[l||""]))}var k=e.indexOf(":");k>0?(l=a.prefix=e.slice(0,k),m=a.localName=e.slice(k+1)):(l=null,m=a.localName=e);var o=a.uri=c[l||""];if(b.startElement(o,m,e,a),!a.closed)return a.currentNSMap=c,a.localNSMap=f,!0;if(b.endElement(o,m,e),f)for(l in f)Object.prototype.hasOwnProperty.call(f,l)&&b.endPrefixMapping(l)}function j(){this.attributeNames={}}f.prototype=Error(),f.prototype.name=f.name,g.prototype={parse:function(a,b,c){var g=this.domBuilder;g.startDocument(),function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c])}(b,b={}),function(a,b,c,g,k){function l(a){var b,d=a.slice(1,-1);return Object.hasOwnProperty.call(c,d)?c[d]:"#"===d.charAt(0)?(b=parseInt(d.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((b-=65536)>>10),56320+(1023&b)):String.fromCharCode(b):(k.error("entity not found:"+a),a)}function m(b){if(b>u){var c=a.substring(u,b).replace(/&#?\w+;/g,l);r&&n(u),g.characters(c,0,b-u),u=b}}function n(b,c){for(;b>=p&&(c=q.exec(a));)p=(o=c.index)+c[0].length,r.lineNumber++;r.columnNumber=b-o+1}for(var o=0,p=0,q=/.*(?:\r\n?|\n)|.*$/g,r=g.locator,s=[{currentNSMap:b}],t={},u=0;;){try{var v=a.indexOf("<",u);if(v<0){if(!a.substr(u).match(/^\s*$/)){var w=g.doc,x=w.createTextNode(a.substr(u));w.appendChild(x),g.currentElement=x}return}switch(v>u&&m(v),a.charAt(v+1)){case"/":var y=a.indexOf(">",v+3),z=a.substring(v+2,y).replace(/^([\s\S]*?[^ \t\n\r])?[ \t\n\r]*$/,"$1"),A=s.pop();y<0?(z=a.substring(v+2).replace(/[\s<].*/,""),k.error("end tag name: "+z+" is not complete:"+A.tagName),y=v+1+z.length):z.match(/\s</)?(z=z.replace(/[\s<].*/,""),k.error("end tag name: "+z+" maybe not complete"),y=v+1+z.length):/[ \t\n\r]/.test(z)&&e.test(z.split(/[ \t\n\r]/)[0])&&k.error('end tag name is followed by whitespace and trailing content: "'+z+'"');var B=A.localNSMap,C=A.tagName==z;if(C||A.tagName&&A.tagName.toLowerCase()==z.toLowerCase()){if(g.endElement(A.uri,A.localName,z),B)for(var D in B)Object.prototype.hasOwnProperty.call(B,D)&&g.endPrefixMapping(D);C||k.fatalError("end tag name: "+z+" is not match the current start tagName:"+A.tagName)}else s.push(A);y++;break;case"?":r&&n(v),y=function(a,b,c){var d=a.indexOf("?>",b);if(d){var e=a.substring(b,d).match(/^<\?(\S*)\s*([\s\S]*?)$/);if(e)return e[0].length,c.processingInstruction(e[1],e[2]),d+2}return -1}(a,v,g);break;case"!":r&&n(v),y=function(a,b,c,d){if("-"===a.charAt(b+2)){if("-"===a.charAt(b+3)){var e=a.indexOf("--\x3e",b+4);if(e>b)return c.comment(a,b+4,e-b-4),e+3;d.error("Unclosed comment")}}else{if("CDATA["==a.substr(b+3,6)){var e=a.indexOf("]]>",b+9);return c.startCDATA(),c.characters(a,b+9,e-b-9),c.endCDATA(),e+3}var f=function(a,b){var c,d=[],e=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(e.lastIndex=b,e.exec(a);c=e.exec(a);)if(d.push(c),c[1])return d}(a,b),g=f.length;if(g>1&&/!doctype/i.test(f[0][0])){var h=f[1][0],i=!1,j=!1;g>3&&(/^public$/i.test(f[2][0])?(i=f[3][0],j=g>4&&f[4][0]):/^system$/i.test(f[2][0])&&(j=f[3][0]));var k=f[g-1];return c.startDTD(h,i,j),c.endDTD(),k.index+k[0].length}}return -1}(a,v,g,k);break;default:r&&n(v);var E=new j,F=s[s.length-1].currentNSMap,y=function(a,b,c,e,f,g){function h(a,b,d){c.attributeNames.hasOwnProperty(a)&&g.fatalError("Attribute "+a+" redefined"),c.addValue(a,b.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,f),d)}for(var i,j,k=++b,l=0;;){var m=a.charAt(k);if(0===l&&"<"===m)throw Error("unexpected < in tag name: "+a.slice(b,k));switch(m){case"=":if(1===l)i=a.slice(b,k),l=3;else if(2===l)l=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===l||1===l)if(1===l&&(g.warning('attribute value must after "="'),i=a.slice(b,k)),b=k+1,(k=a.indexOf(m,b))>0)h(i,j=a.slice(b,k),b-1),l=5;else throw Error("attribute value no end '"+m+"' match");else if(4==l)h(i,j=a.slice(b,k),b),g.warning('attribute "'+i+'" missed start quot('+m+")!!"),b=k+1,l=5;else throw Error('attribute value must after "="');break;case"/":switch(l){case 0:c.setTagName(a.slice(b,k));case 5:case 6:case 7:l=7,c.closed=!0;case 4:case 1:break;case 2:c.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":return g.error("unexpected end of input"),0==l&&c.setTagName(a.slice(b,k)),k;case">":switch(l){case 0:c.setTagName(a.slice(b,k));case 5:case 6:case 7:break;case 4:case 1:"/"===(j=a.slice(b,k)).slice(-1)&&(c.closed=!0,j=j.slice(0,-1));case 2:2===l&&(j=i),4==l?(g.warning('attribute "'+j+'" missed quot(")!'),h(i,j,b)):(d.isHTML(e[""])&&j.match(/^(?:disabled|checked|selected)$/i)||g.warning('attribute "'+j+'" missed value!! "'+j+'" instead!!'),h(j,j,b));break;case 3:throw Error("attribute value missed!!")}return k;case"\x80":m=" ";default:if(m<=" ")switch(l){case 0:c.setTagName(a.slice(b,k)),l=6;break;case 1:i=a.slice(b,k),l=2;break;case 4:var j=a.slice(b,k);g.warning('attribute "'+j+'" missed quot(")!!'),h(i,j,b);case 5:l=6}else switch(l){case 2:c.tagName,d.isHTML(e[""])&&i.match(/^(?:disabled|checked|selected)$/i)||g.warning('attribute "'+i+'" missed value!! "'+i+'" instead2!!'),h(i,i,b),b=k,l=1;break;case 5:g.warning('attribute space is required"'+i+'"!!');case 6:l=1,b=k;break;case 3:l=4,b=k;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}k++}}(a,v,E,F,l,k),G=E.length;if(!E.closed&&function(a,b,c,d){var e=d[c];return null==e&&((e=a.lastIndexOf("</"+c+">"))<b&&(e=a.lastIndexOf("</"+c)),d[c]=e),e<b}(a,y,E.tagName,t)&&(E.closed=!0,c.nbsp||k.warning("unclosed xml attribute")),r&&G){for(var H=h(r,{}),I=0;I<G;I++){var J=E[I];n(J.offset),J.locator=h(r,{})}g.locator=H,i(E,g,F)&&s.push(E),g.locator=r}else i(E,g,F)&&s.push(E);d.isHTML(E.uri)&&!E.closed?y=function(a,b,c,d,e){if(/^(?:script|textarea)$/i.test(c)){var f=a.indexOf("</"+c+">",b),g=a.substring(b+1,f);if(/[&<]/.test(g))return/^script$/i.test(c)||(g=g.replace(/&#?\w+;/g,d)),e.characters(g,0,g.length),f}return b+1}(a,y,E.tagName,l,g):y++}}catch(a){if(a instanceof f)throw a;k.error("element parse error: "+a),y=-1}y>u?u=y:m(Math.max(v,u)+1)}}(a,b,c,g,this.errorHandler),g.endDocument()}},j.prototype={setTagName:function(a){if(!e.test(a))throw Error("invalid tagName:"+a);this.tagName=a},addValue:function(a,b,c){if(!e.test(a))throw Error("invalid attribute:"+a);this.attributeNames[a]=this.length,this[this.length++]={qName:a,value:b,offset:c}},length:0,getLocalName:function(a){return this[a].localName},getLocator:function(a){return this[a].locator},getQName:function(a){return this[a].qName},getURI:function(a){return this[a].uri},getValue:function(a){return this[a].value}},b.XMLReader=g,b.ParseError=f},91848:(a,b,c)=>{var d=c(55511),e=c(12749),f=c(58029),g=c(15894);let h=["http://www.w3.org/2001/04/xmlenc#rsa-1_5","http://www.w3.org/2001/04/xmlenc#tripledes-cbc"];function i(a,b,c,e){let f=Buffer.isBuffer(a)?a:Buffer.from(a,"utf-8");try{var h={encryptedKey:d.publicEncrypt({key:b.rsa_pub,oaepHash:c==d.constants.RSA_PKCS1_OAEP_PADDING?b.keyEncryptionDigest:void 0,padding:c},f).toString("base64"),encryptionPublicCert:"<X509Data><X509Certificate>"+g.pemToCert(b.pem.toString())+"</X509Certificate></X509Data>",keyEncryptionMethod:b.keyEncryptionAlgorithm,keyEncryptionDigest:b.keyEncryptionDigest},i=g.renderTemplate("keyinfo",h);e(null,i)}catch(a){e(a)}}function j(a,b,c){if(!b)return c(Error("must provide options"));if(!b.rsa_pub)return c(Error("must provide options.rsa_pub with public key RSA"));if(!b.pem)return c(Error("must provide options.pem with certificate"));if(!b.keyEncryptionAlgorithm)return c(Error("encryption without encrypted key is not supported yet"));if(b.disallowEncryptionWithInsecureAlgorithm&&h.indexOf(b.keyEncryptionAlgorithm)>=0)return c(Error("encryption algorithm "+b.keyEncryptionAlgorithm+"is not secure"));switch(b.keyEncryptionDigest=b.keyEncryptionDigest||"sha1",b.keyEncryptionAlgorithm){case"http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p":return i(a,b,d.constants.RSA_PKCS1_OAEP_PADDING,c);case"http://www.w3.org/2001/04/xmlenc#rsa-1_5":return g.warnInsecureAlgorithm(b.keyEncryptionAlgorithm,b.warnInsecureAlgorithm),i(a,b,d.constants.RSA_PKCS1_PADDING,c);default:return c(Error("encryption key algorithm not supported"))}}function k(a,b){"string"==typeof a&&(a=new e.DOMParser().parseFromString(a));var c,i=f.select("//*[local-name(.)='KeyInfo' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",a)[0];i||(i=f.select("//*[local-name(.)='EncryptedData']/*[local-name(.)='KeyInfo']",a)[0]);var j=f.select("//*[local-name(.)='KeyInfo']/*[local-name(.)='EncryptedKey']/*[local-name(.)='EncryptionMethod']",a)[0];if(!j){var k=f.select("//*[local-name(.)='EncryptedData']/*[local-name(.)='KeyInfo']/*[local-name(.)='RetrievalMethod']",a)[0];j=(c=k?k.getAttribute("URI"):null)?f.select("//*[local-name(.)='EncryptedKey' and @Id='"+c.substring(1)+"']/*[local-name(.)='EncryptionMethod']",a)[0]:null}if(!j)throw Error("cant find encryption algorithm");let m="sha1",n=f.select("//*[local-name(.)='KeyInfo']/*[local-name(.)='EncryptedKey']/*[local-name(.)='EncryptionMethod']/*[local-name(.)='DigestMethod']",a)[0];if(n)switch(n.getAttribute("Algorithm")){case"http://www.w3.org/2000/09/xmldsig#sha256":m="sha256";break;case"http://www.w3.org/2000/09/xmldsig#sha512":m="sha512"}var o=j.getAttribute("Algorithm");if(b.disallowDecryptionWithInsecureAlgorithm&&h.indexOf(o)>=0)throw Error("encryption algorithm "+o+" is not secure, fail to decrypt");var p=c?f.select("//*[local-name(.)='EncryptedKey' and @Id='"+c.substring(1)+"']/*[local-name(.)='CipherData']/*[local-name(.)='CipherValue']",i)[0]:f.select("//*[local-name(.)='CipherValue']",i)[0];switch(o){case"http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p":return l(p,b,d.constants.RSA_PKCS1_OAEP_PADDING,m);case"http://www.w3.org/2001/04/xmlenc#rsa-1_5":return g.warnInsecureAlgorithm(o,b.warnInsecureAlgorithm),l(p,b,d.constants.RSA_PKCS1_PADDING);default:throw Error("key encryption algorithm "+o+" not supported")}}function l(a,b,c,e){let f=Buffer.from(a.textContent,"base64"),g=d.privateDecrypt({key:b.key,padding:c,oaepHash:e},f);return Buffer.from(g,"binary")}function m(a,b,c,e,f,g){d.randomBytes(c,function(c,h){if(c)return g(c);var i=d.createCipheriv(a,b,h),j=i.update(e,f,"binary")+i.final("binary"),k="gcm"===a.slice(-3)?i.getAuthTag():Buffer.from("");return g(null,Buffer.concat([h,Buffer.from(j,"binary"),k]))})}function n(a,b,c,e){var f=d.createDecipheriv(a,b,e.slice(0,c));f.setAutoPadding(!1),"gcm"===a.slice(-3)&&(f.setAuthTag(e.slice(-16)),e=e.slice(0,-16));var g=f.update(e.slice(c),null,"binary")+f.final("binary");if("gcm"!==a.slice(-3)){var h=g.charCodeAt(g.length-1);if(!(1<=h)||!(h<=c))return void callback(Error("padding length invalid"));g=g.substr(0,g.length-h)}return Buffer.from(g,"binary").toString("utf8")}a.exports={decrypt:function(a,b,c){if(!b)return c(Error("must provide options"));if(!a)return c(Error("must provide XML to encrypt"));if(!b.key)return c(Error("key option is mandatory and you should provide a valid RSA private key"));try{var d="string"==typeof a?new e.DOMParser().parseFromString(a):a,i=k(d,b),j=f.select("//*[local-name(.)='EncryptedData']/*[local-name(.)='EncryptionMethod']",d)[0].getAttribute("Algorithm");if(b.disallowDecryptionWithInsecureAlgorithm&&h.indexOf(j)>=0)return c(Error("encryption algorithm "+j+" is not secure, fail to decrypt"));var l=f.select("//*[local-name(.)='EncryptedData']/*[local-name(.)='CipherData']/*[local-name(.)='CipherValue']",d)[0],m=Buffer.from(l.textContent,"base64");switch(j){case"http://www.w3.org/2001/04/xmlenc#aes128-cbc":return c(null,n("aes-128-cbc",i,16,m));case"http://www.w3.org/2001/04/xmlenc#aes256-cbc":return c(null,n("aes-256-cbc",i,16,m));case"http://www.w3.org/2001/04/xmlenc#tripledes-cbc":return g.warnInsecureAlgorithm(j,b.warnInsecureAlgorithm),c(null,n("des-ede3-cbc",i,8,m));case"http://www.w3.org/2009/xmlenc11#aes128-gcm":return c(null,n("aes-128-gcm",i,12,m));case"http://www.w3.org/2009/xmlenc11#aes256-gcm":return c(null,n("aes-256-gcm",i,12,m));default:return c(Error("encryption algorithm "+j+" not supported"))}}catch(a){return c(a)}},encrypt:function(a,b,c){if(!b)return c(Error("must provide options"));if(!a)return c(Error("must provide content to encrypt"));if(!b.rsa_pub)return c(Error("rsa_pub option is mandatory and you should provide a valid RSA public key"));if(!b.pem)return c(Error("pem option is mandatory and you should provide a valid x509 certificate encoded as PEM"));if(b.disallowEncryptionWithInsecureAlgorithm&&(h.indexOf(b.keyEncryptionAlgorithm)>=0||h.indexOf(b.encryptionAlgorithm)>=0))return c(Error("encryption algorithm "+b.keyEncryptionAlgorithm+" is not secure"));b.input_encoding=b.input_encoding||"utf8";var e=function(d,e){if(d)return c(d);var f=function(a,d){var f;if(a)return c(a);f=function(a,b){if(a)return c(a);c(null,b)},j(e,b,function(a,c){if(a)return f(a);f(null,g.renderTemplate("encrypted-key",{encryptedContent:d.toString("base64"),keyInfo:c,contentEncryptionMethod:b.encryptionAlgorithm}))})};switch(b.encryptionAlgorithm){case"http://www.w3.org/2001/04/xmlenc#aes128-cbc":m("aes-128-cbc",e,16,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;case"http://www.w3.org/2001/04/xmlenc#aes256-cbc":m("aes-256-cbc",e,16,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;case"http://www.w3.org/2009/xmlenc11#aes128-gcm":m("aes-128-gcm",e,12,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;case"http://www.w3.org/2009/xmlenc11#aes256-gcm":m("aes-256-gcm",e,12,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;case"http://www.w3.org/2001/04/xmlenc#tripledes-cbc":g.warnInsecureAlgorithm(b.encryptionAlgorithm,b.warnInsecureAlgorithm),m("des-ede3-cbc",e,8,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;default:f(Error("encryption algorithm not supported"))}};switch(b.encryptionAlgorithm){case"http://www.w3.org/2001/04/xmlenc#aes128-cbc":case"http://www.w3.org/2009/xmlenc11#aes128-gcm":d.randomBytes(16,e);break;case"http://www.w3.org/2001/04/xmlenc#aes256-cbc":case"http://www.w3.org/2009/xmlenc11#aes256-gcm":default:d.randomBytes(32,e);break;case"http://www.w3.org/2001/04/xmlenc#tripledes-cbc":g.warnInsecureAlgorithm(b.encryptionAlgorithm,b.warnInsecureAlgorithm),d.randomBytes(24,e)}},encryptKeyInfo:j,decryptKeyInfo:k}},92030:function(a,b,c){(function(){var b,d,e,f=function(a,b){for(var c in b)g.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},g={}.hasOwnProperty;b=c(24706),e=c(97871),d=c(46780),a.exports=function(a){function c(a,b){this.stream=a,c.__super__.constructor.call(this,b)}return f(c,a),c.prototype.endline=function(a,b,e){return a.isLastRootNode&&b.state===d.CloseTag?"":c.__super__.endline.call(this,a,b,e)},c.prototype.document=function(a,b){var c,d,e,f,g,h,i,j,k;for(i=a.children,d=e=0,g=i.length;e<g;d=++e)(c=i[d]).isLastRootNode=d===a.children.length-1;for(b=this.filterOptions(b),j=a.children,k=[],f=0,h=j.length;f<h;f++)c=j[f],k.push(this.writeChildNode(c,b,0));return k},c.prototype.attribute=function(a,b,d){return this.stream.write(c.__super__.attribute.call(this,a,b,d))},c.prototype.cdata=function(a,b,d){return this.stream.write(c.__super__.cdata.call(this,a,b,d))},c.prototype.comment=function(a,b,d){return this.stream.write(c.__super__.comment.call(this,a,b,d))},c.prototype.declaration=function(a,b,d){return this.stream.write(c.__super__.declaration.call(this,a,b,d))},c.prototype.docType=function(a,b,c){var e,f,g,h;if(c||(c=0),this.openNode(a,b,c),b.state=d.OpenTag,this.stream.write(this.indent(a,b,c)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a,b,c)),b.state=d.InsideTag,f=0,g=(h=a.children).length;f<g;f++)e=h[f],this.writeChildNode(e,b,c+1);b.state=d.CloseTag,this.stream.write("]")}return b.state=d.CloseTag,this.stream.write(b.spaceBeforeSlash+">"),this.stream.write(this.endline(a,b,c)),b.state=d.None,this.closeNode(a,b,c)},c.prototype.element=function(a,c,e){var f,h,i,j,k,l,m,n,o;for(m in e||(e=0),this.openNode(a,c,e),c.state=d.OpenTag,this.stream.write(this.indent(a,c,e)+"<"+a.name),n=a.attribs)g.call(n,m)&&(f=n[m],this.attribute(f,c,e));if(j=0===(i=a.children.length)?null:a.children[0],0===i||a.children.every(function(a){return(a.type===b.Text||a.type===b.Raw)&&""===a.value}))c.allowEmpty?(this.stream.write(">"),c.state=d.CloseTag,this.stream.write("</"+a.name+">")):(c.state=d.CloseTag,this.stream.write(c.spaceBeforeSlash+"/>"));else if(c.pretty&&1===i&&(j.type===b.Text||j.type===b.Raw)&&null!=j.value)this.stream.write(">"),c.state=d.InsideTag,c.suppressPrettyCount++,this.writeChildNode(j,c,e+1),c.suppressPrettyCount--,c.state=d.CloseTag,this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.endline(a,c,e)),c.state=d.InsideTag,k=0,l=(o=a.children).length;k<l;k++)h=o[k],this.writeChildNode(h,c,e+1);c.state=d.CloseTag,this.stream.write(this.indent(a,c,e)+"</"+a.name+">")}return this.stream.write(this.endline(a,c,e)),c.state=d.None,this.closeNode(a,c,e)},c.prototype.processingInstruction=function(a,b,d){return this.stream.write(c.__super__.processingInstruction.call(this,a,b,d))},c.prototype.raw=function(a,b,d){return this.stream.write(c.__super__.raw.call(this,a,b,d))},c.prototype.text=function(a,b,d){return this.stream.write(c.__super__.text.call(this,a,b,d))},c.prototype.dtdAttList=function(a,b,d){return this.stream.write(c.__super__.dtdAttList.call(this,a,b,d))},c.prototype.dtdElement=function(a,b,d){return this.stream.write(c.__super__.dtdElement.call(this,a,b,d))},c.prototype.dtdEntity=function(a,b,d){return this.stream.write(c.__super__.dtdEntity.call(this,a,b,d))},c.prototype.dtdNotation=function(a,b,d){return this.stream.write(c.__super__.dtdNotation.call(this,a,b,d))},c}(e)}).call(this)},92478:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a){c.__super__.constructor.call(this,a),this.value=""}return b(c,a),Object.defineProperty(c.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(c.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(c.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),c.prototype.clone=function(){return Object.create(this)},c.prototype.substringData=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.appendData=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.insertData=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.deleteData=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.replaceData=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.isEqualNode=function(a){return!!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)&&a.data===this.data},c}(c(8957))}).call(this)},92535:a=>{"use strict";a.exports=(a,b=process.argv)=>{let c=a.startsWith("-")?"":1===a.length?"-":"--",d=b.indexOf(c+a),e=b.indexOf("--");return -1!==d&&(-1===e||d<e)}},93005:function(a,b,c){(function(){"use strict";var a,d,e,f,g,h,i,j,k=function(a,b){return function(){return a.apply(b,arguments)}},l=function(a,b){for(var c in b)m.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},m={}.hasOwnProperty;i=c(81654),f=c(94735),a=c(76326),h=c(2847),j=c(66136).setImmediate,d=c(56068).defaults,g=function(a,b,c){var d,e;for(d=0,e=a.length;d<e;d++)b=(0,a[d])(b,c);return b},e=function(a,b,c){var d;return(d=Object.create(null)).value=c,d.writable=!0,d.enumerable=!0,d.configurable=!0,Object.defineProperty(a,b,d)},b.Parser=function(c){function f(a){var c,e,f;if(this.parseStringPromise=k(this.parseStringPromise,this),this.parseString=k(this.parseString,this),this.reset=k(this.reset,this),this.assignOrPush=k(this.assignOrPush,this),this.processAsync=k(this.processAsync,this),!(this instanceof b.Parser))return new b.Parser(a);for(c in this.options={},e=d["0.2"])m.call(e,c)&&(f=e[c],this.options[c]=f);for(c in a)m.call(a,c)&&(f=a[c],this.options[c]=f);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(h.normalize)),this.reset()}return l(f,c),f.prototype.processAsync=function(){var a;try{if(this.remaining.length<=this.options.chunkSize)return a=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(a),this.saxParser.close();return a=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(a),j(this.processAsync)}catch(a){if(!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(a)}},f.prototype.assignOrPush=function(a,b,c){return b in a?(a[b]instanceof Array||e(a,b,[a[b]]),a[b].push(c)):this.options.explicitArray?e(a,b,[c]):e(a,b,c)},f.prototype.reset=function(){var a,b,c,d,f,h,j,k,l;return this.removeAllListeners(),this.saxParser=i.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(f=this,function(a){if(f.saxParser.resume(),!f.saxParser.errThrown)return f.saxParser.errThrown=!0,f.emit("error",a)}),this.saxParser.onend=(h=this,function(){if(!h.saxParser.ended)return h.saxParser.ended=!0,h.emit("end",h.resultObject)}),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,d=[],a=this.options.attrkey,b=this.options.charkey,this.saxParser.onopentag=(j=this,function(c){var f,h,i,k,l;if((i={})[b]="",!j.options.ignoreAttrs)for(f in l=c.attributes)m.call(l,f)&&(a in i||j.options.mergeAttrs||(i[a]={}),h=j.options.attrValueProcessors?g(j.options.attrValueProcessors,c.attributes[f],f):c.attributes[f],k=j.options.attrNameProcessors?g(j.options.attrNameProcessors,f):f,j.options.mergeAttrs?j.assignOrPush(i,k,h):e(i[a],k,h));return i["#name"]=j.options.tagNameProcessors?g(j.options.tagNameProcessors,c.name):c.name,j.options.xmlns&&(i[j.options.xmlnskey]={uri:c.uri,local:c.local}),d.push(i)}),this.saxParser.onclosetag=(k=this,function(){var a,c,f,h,i,j,l,n,o,p,q;if(i=(j=d.pop())["#name"],k.options.explicitChildren&&k.options.preserveChildrenOrder||delete j["#name"],!0===j.cdata&&(a=j.cdata,delete j.cdata),o=d[d.length-1],j[b].match(/^\s*$/)&&!a?(c=j[b],delete j[b]):(k.options.trim&&(j[b]=j[b].trim()),k.options.normalize&&(j[b]=j[b].replace(/\s{2,}/g," ").trim()),j[b]=k.options.valueProcessors?g(k.options.valueProcessors,j[b],i):j[b],1===Object.keys(j).length&&b in j&&!k.EXPLICIT_CHARKEY&&(j=j[b])),"object"==typeof(q=j)&&null!=q&&0===Object.keys(q).length&&(j="function"==typeof k.options.emptyTag?k.options.emptyTag():""!==k.options.emptyTag?k.options.emptyTag:c),null!=k.options.validator&&(p="/"+(function(){var a,b,c;for(a=0,c=[],b=d.length;a<b;a++)h=d[a],c.push(h["#name"]);return c})().concat(i).join("/"),!function(){try{j=k.options.validator(p,o&&o[i],j)}catch(a){return k.emit("error",a)}}()),k.options.explicitChildren&&!k.options.mergeAttrs&&"object"==typeof j)if(k.options.preserveChildrenOrder){if(o){for(f in o[k.options.childkey]=o[k.options.childkey]||[],l={},j)m.call(j,f)&&e(l,f,j[f]);o[k.options.childkey].push(l),delete j["#name"],1===Object.keys(j).length&&b in j&&!k.EXPLICIT_CHARKEY&&(j=j[b])}}else h={},k.options.attrkey in j&&(h[k.options.attrkey]=j[k.options.attrkey],delete j[k.options.attrkey]),!k.options.charsAsChildren&&k.options.charkey in j&&(h[k.options.charkey]=j[k.options.charkey],delete j[k.options.charkey]),Object.getOwnPropertyNames(j).length>0&&(h[k.options.childkey]=j),j=h;return d.length>0?k.assignOrPush(o,i,j):(k.options.explicitRoot&&(n=j,e(j={},i,n)),k.resultObject=j,k.saxParser.ended=!0,k.emit("end",k.resultObject))}),l=this,c=function(a){var c,e;if(e=d[d.length-1])return e[b]+=a,l.options.explicitChildren&&l.options.preserveChildrenOrder&&l.options.charsAsChildren&&(l.options.includeWhiteChars||""!==a.replace(/\\n/g,"").trim())&&(e[l.options.childkey]=e[l.options.childkey]||[],(c={"#name":"__text__"})[b]=a,l.options.normalize&&(c[b]=c[b].replace(/\s{2,}/g," ").trim()),e[l.options.childkey].push(c)),e},this.saxParser.ontext=c,this.saxParser.oncdata=function(a){var b;if(b=c(a))return b.cdata=!0}},f.prototype.parseString=function(b,c){null!=c&&"function"==typeof c&&(this.on("end",function(a){return this.reset(),c(null,a)}),this.on("error",function(a){return this.reset(),c(a)}));try{if(b=b.toString(),""===b.trim())return this.emit("end",null),!0;if(b=a.stripBOM(b),this.options.async)return this.remaining=b,j(this.processAsync),this.saxParser;return this.saxParser.write(b).close()}catch(a){if(!(this.saxParser.errThrown||this.saxParser.ended))return this.emit("error",a),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw a}},f.prototype.parseStringPromise=function(a){var b;return new Promise((b=this,function(c,d){return b.parseString(a,function(a,b){return a?d(a):c(b)})}))},f}(f),b.parseString=function(a,c,d){var e,f;return null!=d?("function"==typeof d&&(e=d),"object"==typeof c&&(f=c)):("function"==typeof c&&(e=c),f={}),new b.Parser(f).parseString(a,e)},b.parseStringPromise=function(a,c){var d;return"object"==typeof c&&(d=c),new b.Parser(d).parseStringPromise(a)}}).call(this)},94253:function(a,b,c){(function(){var b;b=c(24706),c(8957),a.exports=function(){function a(a,c,d){if(this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==c)throw Error("Missing attribute name. "+this.debugInfo(c));this.name=this.stringify.name(c),this.value=this.stringify.attValue(d),this.type=b.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"specified",{get:function(){return!0}}),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(a){return this.options.writer.attribute(this,this.options.writer.filterOptions(a))},a.prototype.debugInfo=function(a){return null==(a=a||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+a+"}, parent: <"+this.parent.name+">"},a.prototype.isEqualNode=function(a){return a.namespaceURI===this.namespaceURI&&a.prefix===this.prefix&&a.localName===this.localName&&a.value===this.value},a}()}).call(this)},95280:function(a,b,c){(function(){var b,d,e,f,g,h,i,j=function(a,b){for(var c in b)k.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},k={}.hasOwnProperty;i=c(4700).isPlainObject,e=c(35971),d=c(17395),f=c(8957),b=c(24706),h=c(74519),g=c(13859),a.exports=function(a){function c(a){c.__super__.constructor.call(this,null),this.name="#document",this.type=b.Document,this.documentURI=null,this.domConfig=new d,a||(a={}),a.writer||(a.writer=new g),this.options=a,this.stringify=new h(a)}return j(c,a),Object.defineProperty(c.prototype,"implementation",{value:new e}),Object.defineProperty(c.prototype,"doctype",{get:function(){var a,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if((a=e[c]).type===b.DocType)return a;return null}}),Object.defineProperty(c.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].encoding:null}}),Object.defineProperty(c.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(c.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(c.prototype,"origin",{get:function(){return null}}),Object.defineProperty(c.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(c.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(c.prototype,"contentType",{get:function(){return null}}),c.prototype.end=function(a){var b;return b={},a?i(a)&&(b=a,a=this.options.writer):a=this.options.writer,a.document(this,a.filterOptions(b))},c.prototype.toString=function(a){return this.options.writer.document(this,this.options.writer.filterOptions(a))},c.prototype.createElement=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createDocumentFragment=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createTextNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createComment=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createCDATASection=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createProcessingInstruction=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createAttribute=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createEntityReference=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.importNode=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createElementNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementById=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.adoptNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.normalizeDocument=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.renameNode=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByClassName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createEvent=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createRange=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createNodeIterator=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createTreeWalker=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c}(f)}).call(this)},95759:function(a,b,c){(function(){var b;b=c(26468),c(73067),a.exports=(function(){class a{constructor(a,c,d){if(this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==c)throw Error("Missing attribute name. "+this.debugInfo(c));this.name=this.stringify.name(c),this.value=this.stringify.attValue(d),this.type=b.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(a){return this.options.writer.attribute(this,this.options.writer.filterOptions(a))}debugInfo(a){return null==(a=a||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+a+"}, parent: <"+this.parent.name+">"}isEqualNode(a){return a.namespaceURI===this.namespaceURI&&a.prefix===this.prefix&&a.localName===this.localName&&a.value===this.value}}return Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"specified",{get:function(){return!0}}),a}).call(this)}).call(this)},97410:function(a){(function(){a.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},97871:function(a,b,c){(function(){var b,d,e,f={}.hasOwnProperty;e=c(4700).assign,b=c(24706),c(84689),c(99379),c(36700),c(65904),c(43849),c(8859),c(86690),c(58892),c(31777),c(45454),c(4505),c(12570),c(72707),d=c(46780),a.exports=function(){function a(a){var b,c,d;for(b in a||(a={}),this.options=a,c=a.writer||{})f.call(c,b)&&(d=c[b],this["_"+b]=this[b],this[b]=d)}return a.prototype.filterOptions=function(a){var b,c,f,g,h,i,j,k;return a||(a={}),a=e({},this.options,a),(b={writer:this}).pretty=a.pretty||!1,b.allowEmpty=a.allowEmpty||!1,b.indent=null!=(c=a.indent)?c:" ",b.newline=null!=(f=a.newline)?f:"\n",b.offset=null!=(g=a.offset)?g:0,b.dontPrettyTextNodes=null!=(h=null!=(i=a.dontPrettyTextNodes)?i:a.dontprettytextnodes)?h:0,b.spaceBeforeSlash=null!=(j=null!=(k=a.spaceBeforeSlash)?k:a.spacebeforeslash)?j:"",!0===b.spaceBeforeSlash&&(b.spaceBeforeSlash=" "),b.suppressPrettyCount=0,b.user={},b.state=d.None,b},a.prototype.indent=function(a,b,c){var d;if(!b.pretty||b.suppressPrettyCount);else if(b.pretty&&(d=(c||0)+b.offset+1)>0)return Array(d).join(b.indent);return""},a.prototype.endline=function(a,b,c){return!b.pretty||b.suppressPrettyCount?"":b.newline},a.prototype.attribute=function(a,b,c){var d;return this.openAttribute(a,b,c),d=" "+a.name+'="'+a.value+'"',this.closeAttribute(a,b,c),d},a.prototype.cdata=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<![CDATA[",b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+="]]>"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.comment=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"\x3c!-- ",b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=" --\x3e"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.declaration=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<?xml",b.state=d.InsideTag,e+=' version="'+a.version+'"',null!=a.encoding&&(e+=' encoding="'+a.encoding+'"'),null!=a.standalone&&(e+=' standalone="'+a.standalone+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+"?>",e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.docType=function(a,b,c){var e,f,g,h,i;if(c||(c=0),this.openNode(a,b,c),b.state=d.OpenTag,h=this.indent(a,b,c)+"<!DOCTYPE "+a.root().name,a.pubID&&a.sysID?h+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(h+=' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(h+=" [",h+=this.endline(a,b,c),b.state=d.InsideTag,f=0,g=(i=a.children).length;f<g;f++)e=i[f],h+=this.writeChildNode(e,b,c+1);b.state=d.CloseTag,h+="]"}return b.state=d.CloseTag,h+=b.spaceBeforeSlash+">",h+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),h},a.prototype.element=function(a,c,e){var g,h,i,j,k,l,m,n,o,p,q,r,s,t;for(o in e||(e=0),p=!1,q="",this.openNode(a,c,e),c.state=d.OpenTag,q+=this.indent(a,c,e)+"<"+a.name,r=a.attribs)f.call(r,o)&&(g=r[o],q+=this.attribute(g,c,e));if(j=0===(i=a.children.length)?null:a.children[0],0===i||a.children.every(function(a){return(a.type===b.Text||a.type===b.Raw)&&""===a.value}))c.allowEmpty?(q+=">",c.state=d.CloseTag,q+="</"+a.name+">"+this.endline(a,c,e)):(c.state=d.CloseTag,q+=c.spaceBeforeSlash+"/>"+this.endline(a,c,e));else if(c.pretty&&1===i&&(j.type===b.Text||j.type===b.Raw)&&null!=j.value)q+=">",c.state=d.InsideTag,c.suppressPrettyCount++,p=!0,q+=this.writeChildNode(j,c,e+1),c.suppressPrettyCount--,p=!1,c.state=d.CloseTag,q+="</"+a.name+">"+this.endline(a,c,e);else{if(c.dontPrettyTextNodes){for(k=0,m=(s=a.children).length;k<m;k++)if(((h=s[k]).type===b.Text||h.type===b.Raw)&&null!=h.value){c.suppressPrettyCount++,p=!0;break}}for(q+=">"+this.endline(a,c,e),c.state=d.InsideTag,l=0,n=(t=a.children).length;l<n;l++)h=t[l],q+=this.writeChildNode(h,c,e+1);c.state=d.CloseTag,q+=this.indent(a,c,e)+"</"+a.name+">",p&&c.suppressPrettyCount--,q+=this.endline(a,c,e),c.state=d.None}return this.closeNode(a,c,e),q},a.prototype.writeChildNode=function(a,c,d){switch(a.type){case b.CData:return this.cdata(a,c,d);case b.Comment:return this.comment(a,c,d);case b.Element:return this.element(a,c,d);case b.Raw:return this.raw(a,c,d);case b.Text:return this.text(a,c,d);case b.ProcessingInstruction:return this.processingInstruction(a,c,d);case b.Dummy:return"";case b.Declaration:return this.declaration(a,c,d);case b.DocType:return this.docType(a,c,d);case b.AttributeDeclaration:return this.dtdAttList(a,c,d);case b.ElementDeclaration:return this.dtdElement(a,c,d);case b.EntityDeclaration:return this.dtdEntity(a,c,d);case b.NotationDeclaration:return this.dtdNotation(a,c,d);default:throw Error("Unknown XML node type: "+a.constructor.name)}},a.prototype.processingInstruction=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<?",b.state=d.InsideTag,e+=a.target,a.value&&(e+=" "+a.value),b.state=d.CloseTag,e+=b.spaceBeforeSlash+"?>",e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.raw=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c),b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.text=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c),b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.dtdAttList=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ATTLIST",b.state=d.InsideTag,e+=" "+a.elementName+" "+a.attributeName+" "+a.attributeType,"#DEFAULT"!==a.defaultValueType&&(e+=" "+a.defaultValueType),a.defaultValue&&(e+=' "'+a.defaultValue+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.dtdElement=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ELEMENT",b.state=d.InsideTag,e+=" "+a.name+" "+a.value,b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.dtdEntity=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ENTITY",b.state=d.InsideTag,a.pe&&(e+=" %"),e+=" "+a.name,a.value?e+=' "'+a.value+'"':(a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),a.nData&&(e+=" NDATA "+a.nData)),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.dtdNotation=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!NOTATION",b.state=d.InsideTag,e+=" "+a.name,a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.pubID?e+=' PUBLIC "'+a.pubID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.openNode=function(a,b,c){},a.prototype.closeNode=function(a,b,c){},a.prototype.openAttribute=function(a,b,c){},a.prototype.closeAttribute=function(a,b,c){},a}()}).call(this)},98193:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z={}.hasOwnProperty;w=(y=c(4700)).isObject,v=y.isFunction,x=y.isPlainObject,u=y.getValue,b=c(24706),n=c(95280),o=c(43849),f=c(36700),g=c(65904),q=c(8859),t=c(86690),p=c(58892),l=c(84689),m=c(99379),h=c(45454),j=c(12570),i=c(4505),k=c(72707),e=c(94253),s=c(74519),r=c(13859),d=c(46780),a.exports=function(){function a(a,c,d){var e;this.name="?xml",this.type=b.Document,a||(a={}),e={},a.writer?x(a.writer)&&(e=a.writer,a.writer=new r):a.writer=new r,this.options=a,this.writer=a.writer,this.writerOptions=this.writer.filterOptions(e),this.stringify=new s(a),this.onDataCallback=c||function(){},this.onEndCallback=d||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return a.prototype.createChildNode=function(a){var c,d,e,f,g,h,i,j;switch(a.type){case b.CData:this.cdata(a.value);break;case b.Comment:this.comment(a.value);break;case b.Element:for(d in e={},i=a.attribs)z.call(i,d)&&(c=i[d],e[d]=c.value);this.node(a.name,e);break;case b.Dummy:this.dummy();break;case b.Raw:this.raw(a.value);break;case b.Text:this.text(a.value);break;case b.ProcessingInstruction:this.instruction(a.target,a.value);break;default:throw Error("This XML node type is not supported in a JS object: "+a.constructor.name)}for(g=0,h=(j=a.children).length;g<h;g++)f=j[g],this.createChildNode(f),f.type===b.Element&&this.up();return this},a.prototype.dummy=function(){return this},a.prototype.node=function(a,b,c){var d;if(null==a)throw Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw Error("Document can only have one root node. "+this.debugInfo(a));return this.openCurrent(),a=u(a),null==b&&(b={}),w(b=u(b))||(c=(d=[b,c])[0],b=d[1]),this.currentNode=new o(this,a,b),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=c&&this.text(c),this},a.prototype.element=function(a,c,d){var e,f,g,h,i,j;if(this.currentNode&&this.currentNode.type===b.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(a)||w(a)||v(a))for(h=this.options.noValidation,this.options.noValidation=!0,(j=new n(this.options).element("TEMP_ROOT")).element(a),this.options.noValidation=h,f=0,g=(i=j.children).length;f<g;f++)e=i[f],this.createChildNode(e),e.type===b.Element&&this.up();else this.node(a,c,d);return this},a.prototype.attribute=function(a,b){var c,d;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(a));if(null!=a&&(a=u(a)),w(a))for(c in a)z.call(a,c)&&(d=a[c],this.attribute(c,d));else v(b)&&(b=b.apply()),this.options.keepNullAttributes&&null==b?this.currentNode.attribs[a]=new e(this,a,""):null!=b&&(this.currentNode.attribs[a]=new e(this,a,b));return this},a.prototype.text=function(a){var b;return this.openCurrent(),b=new t(this,a),this.onData(this.writer.text(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.cdata=function(a){var b;return this.openCurrent(),b=new f(this,a),this.onData(this.writer.cdata(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.comment=function(a){var b;return this.openCurrent(),b=new g(this,a),this.onData(this.writer.comment(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.raw=function(a){var b;return this.openCurrent(),b=new q(this,a),this.onData(this.writer.raw(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.instruction=function(a,b){var c,d,e,f,g;if(this.openCurrent(),null!=a&&(a=u(a)),null!=b&&(b=u(b)),Array.isArray(a))for(c=0,f=a.length;c<f;c++)d=a[c],this.instruction(d);else if(w(a))for(d in a)z.call(a,d)&&(e=a[d],this.instruction(d,e));else v(b)&&(b=b.apply()),g=new p(this,a,b),this.onData(this.writer.processingInstruction(g,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},a.prototype.declaration=function(a,b,c){var d;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return d=new l(this,a,b,c),this.onData(this.writer.declaration(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.doctype=function(a,b,c){if(this.openCurrent(),null==a)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new m(this,b,c),this.currentNode.rootNodeName=a,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},a.prototype.dtdElement=function(a,b){var c;return this.openCurrent(),c=new i(this,a,b),this.onData(this.writer.dtdElement(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.attList=function(a,b,c,d,e){var f;return this.openCurrent(),f=new h(this,a,b,c,d,e),this.onData(this.writer.dtdAttList(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.entity=function(a,b){var c;return this.openCurrent(),c=new j(this,!1,a,b),this.onData(this.writer.dtdEntity(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.pEntity=function(a,b){var c;return this.openCurrent(),c=new j(this,!0,a,b),this.onData(this.writer.dtdEntity(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.notation=function(a,b){var c;return this.openCurrent(),c=new k(this,a,b),this.onData(this.writer.dtdNotation(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.up=function(){if(this.currentLevel<0)throw Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},a.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},a.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},a.prototype.openNode=function(a){var c,e,f,g;if(!a.isOpen){if(this.root||0!==this.currentLevel||a.type!==b.Element||(this.root=a),e="",a.type===b.Element){for(f in this.writerOptions.state=d.OpenTag,e=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<"+a.name,g=a.attribs)z.call(g,f)&&(c=g[f],e+=this.writer.attribute(c,this.writerOptions,this.currentLevel));e+=(a.children?">":"/>")+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=d.InsideTag}else this.writerOptions.state=d.OpenTag,e=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+a.rootNodeName,a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),a.children?(e+=" [",this.writerOptions.state=d.InsideTag):(this.writerOptions.state=d.CloseTag,e+=">"),e+=this.writer.endline(a,this.writerOptions,this.currentLevel);return this.onData(e,this.currentLevel),a.isOpen=!0}},a.prototype.closeNode=function(a){var c;if(!a.isClosed)return c="",this.writerOptions.state=d.CloseTag,c=a.type===b.Element?this.writer.indent(a,this.writerOptions,this.currentLevel)+"</"+a.name+">"+this.writer.endline(a,this.writerOptions,this.currentLevel):this.writer.indent(a,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=d.None,this.onData(c,this.currentLevel),a.isClosed=!0},a.prototype.onData=function(a,b){return this.documentStarted=!0,this.onDataCallback(a,b+1)},a.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},a.prototype.debugInfo=function(a){return null==a?"":"node: <"+a+">"},a.prototype.ele=function(){return this.element.apply(this,arguments)},a.prototype.nod=function(a,b,c){return this.node(a,b,c)},a.prototype.txt=function(a){return this.text(a)},a.prototype.dat=function(a){return this.cdata(a)},a.prototype.com=function(a){return this.comment(a)},a.prototype.ins=function(a,b){return this.instruction(a,b)},a.prototype.dec=function(a,b,c){return this.declaration(a,b,c)},a.prototype.dtd=function(a,b,c){return this.doctype(a,b,c)},a.prototype.e=function(a,b,c){return this.element(a,b,c)},a.prototype.n=function(a,b,c){return this.node(a,b,c)},a.prototype.t=function(a){return this.text(a)},a.prototype.d=function(a){return this.cdata(a)},a.prototype.c=function(a){return this.comment(a)},a.prototype.r=function(a){return this.raw(a)},a.prototype.i=function(a,b){return this.instruction(a,b)},a.prototype.att=function(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},a.prototype.a=function(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},a.prototype.ent=function(a,b){return this.entity(a,b)},a.prototype.pent=function(a,b){return this.pEntity(a,b)},a.prototype.not=function(a,b){return this.notation(a,b)},a}()}).call(this)},99379:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k=function(a,b){for(var c in b)l.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},l={}.hasOwnProperty;j=c(4700).isObject,i=c(8957),b=c(24706),d=c(45454),f=c(12570),e=c(4505),g=c(72707),h=c(7832),a.exports=function(a){function c(a,d,e){var f,g,h,i,k,l;if(c.__super__.constructor.call(this,a),this.type=b.DocType,a.children){for(g=0,h=(i=a.children).length;g<h;g++)if((f=i[g]).type===b.Element){this.name=f.name;break}}this.documentObject=a,j(d)&&(d=(k=d).pubID,e=k.sysID),null==e&&(e=(l=[d,e])[0],d=l[1]),null!=d&&(this.pubID=this.stringify.dtdPubID(d)),null!=e&&(this.sysID=this.stringify.dtdSysID(e))}return k(c,a),Object.defineProperty(c.prototype,"entities",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type!==b.EntityDeclaration||a.pe||(e[a.name]=a);return new h(e)}}),Object.defineProperty(c.prototype,"notations",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type===b.NotationDeclaration&&(e[a.name]=a);return new h(e)}}),Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(c.prototype,"internalSubset",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),c.prototype.element=function(a,b){var c;return c=new e(this,a,b),this.children.push(c),this},c.prototype.attList=function(a,b,c,e,f){var g;return g=new d(this,a,b,c,e,f),this.children.push(g),this},c.prototype.entity=function(a,b){var c;return c=new f(this,!1,a,b),this.children.push(c),this},c.prototype.pEntity=function(a,b){var c;return c=new f(this,!0,a,b),this.children.push(c),this},c.prototype.notation=function(a,b){var c;return c=new g(this,a,b),this.children.push(c),this},c.prototype.toString=function(a){return this.options.writer.docType(this,this.options.writer.filterOptions(a))},c.prototype.ele=function(a,b){return this.element(a,b)},c.prototype.att=function(a,b,c,d,e){return this.attList(a,b,c,d,e)},c.prototype.ent=function(a,b){return this.entity(a,b)},c.prototype.pent=function(a,b){return this.pEntity(a,b)},c.prototype.not=function(a,b){return this.notation(a,b)},c.prototype.up=function(){return this.root()||this.documentObject},c.prototype.isEqualNode=function(a){return!!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)&&a.name===this.name&&a.publicId===this.publicId&&a.systemId===this.systemId},c}(i)}).call(this)}};
29
+ `},71920:function(a,b,c){(function(){var b,d,e;({isObject:e}=c(43594)),d=c(73067),b=c(26468),a.exports=(function(){class a extends d{constructor(a,c,d,f){if(super(a),null==d)throw Error("Missing DTD entity name. "+this.debugInfo(d));if(null==f)throw Error("Missing DTD entity value. "+this.debugInfo(d));if(this.pe=!!c,this.name=this.stringify.name(d),this.type=b.EntityDeclaration,e(f)){if(!f.pubID&&!f.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(d));if(f.pubID&&!f.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(d));if(this.internal=!1,null!=f.pubID&&(this.pubID=this.stringify.dtdPubID(f.pubID)),null!=f.sysID&&(this.sysID=this.stringify.dtdSysID(f.sysID)),null!=f.nData&&(this.nData=this.stringify.dtdNData(f.nData)),this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(d))}else this.value=this.stringify.dtdEntityValue(f),this.internal=!0}toString(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))}}return Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(a.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(a.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"xmlVersion",{get:function(){return null}}),a}).call(this)}).call(this)},72616:function(a,b,c){(function(){var b,d,e,f={}.hasOwnProperty;b=c(26468),e=c(67289),d=c(29394),a.exports=class extends e{constructor(a,b){super(b),this.stream=a}endline(a,b,c){return a.isLastRootNode&&b.state===d.CloseTag?"":super.endline(a,b,c)}document(a,b){var c,d,e,f,g,h,i,j,k;for(i=a.children,d=e=0,g=i.length;e<g;d=++e)(c=i[d]).isLastRootNode=d===a.children.length-1;for(b=this.filterOptions(b),j=a.children,k=[],f=0,h=j.length;f<h;f++)c=j[f],k.push(this.writeChildNode(c,b,0));return k}cdata(a,b,c){return this.stream.write(super.cdata(a,b,c))}comment(a,b,c){return this.stream.write(super.comment(a,b,c))}declaration(a,b,c){return this.stream.write(super.declaration(a,b,c))}docType(a,b,c){var e,f,g,h;if(c||(c=0),this.openNode(a,b,c),b.state=d.OpenTag,this.stream.write(this.indent(a,b,c)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a,b,c)),b.state=d.InsideTag,f=0,g=(h=a.children).length;f<g;f++)e=h[f],this.writeChildNode(e,b,c+1);b.state=d.CloseTag,this.stream.write("]")}return b.state=d.CloseTag,this.stream.write(b.spaceBeforeSlash+">"),this.stream.write(this.endline(a,b,c)),b.state=d.None,this.closeNode(a,b,c)}element(a,c,e){var g,h,i,j,k,l,m,n,o,p,q,r,s,t;if(e||(e=0),this.openNode(a,c,e),c.state=d.OpenTag,o=this.indent(a,c,e)+"<"+a.name,c.pretty&&c.width>0)for(n in l=o.length,q=a.attribs)f.call(q,n)&&(g=q[n],l+(p=this.attribute(g,c,e)).length>c.width?(t=this.indent(a,c,e+1)+p,o+=this.endline(a,c,e)+t,l=t.length):(o+=t=" "+p,l+=t.length));else for(n in r=a.attribs)f.call(r,n)&&(g=r[n],o+=this.attribute(g,c,e));if(this.stream.write(o),j=0===(i=a.children.length)?null:a.children[0],0===i||a.children.every(function(a){return(a.type===b.Text||a.type===b.Raw||a.type===b.CData)&&""===a.value}))c.allowEmpty?(this.stream.write(">"),c.state=d.CloseTag,this.stream.write("</"+a.name+">")):(c.state=d.CloseTag,this.stream.write(c.spaceBeforeSlash+"/>"));else if(c.pretty&&1===i&&(j.type===b.Text||j.type===b.Raw||j.type===b.CData)&&null!=j.value)this.stream.write(">"),c.state=d.InsideTag,c.suppressPrettyCount++,this.writeChildNode(j,c,e+1),c.suppressPrettyCount--,c.state=d.CloseTag,this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.endline(a,c,e)),c.state=d.InsideTag,k=0,m=(s=a.children).length;k<m;k++)h=s[k],this.writeChildNode(h,c,e+1);c.state=d.CloseTag,this.stream.write(this.indent(a,c,e)+"</"+a.name+">")}return this.stream.write(this.endline(a,c,e)),c.state=d.None,this.closeNode(a,c,e)}processingInstruction(a,b,c){return this.stream.write(super.processingInstruction(a,b,c))}raw(a,b,c){return this.stream.write(super.raw(a,b,c))}text(a,b,c){return this.stream.write(super.text(a,b,c))}dtdAttList(a,b,c){return this.stream.write(super.dtdAttList(a,b,c))}dtdElement(a,b,c){return this.stream.write(super.dtdElement(a,b,c))}dtdEntity(a,b,c){return this.stream.write(super.dtdEntity(a,b,c))}dtdNotation(a,b,c){return this.stream.write(super.dtdNotation(a,b,c))}}}).call(this)},72707:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,e){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing DTD notation name. "+this.debugInfo(d));if(!e.pubID&&!e.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(d));this.name=this.stringify.name(d),this.type=b.NotationDeclaration,null!=e.pubID&&(this.pubID=this.stringify.dtdPubID(e.pubID)),null!=e.sysID&&(this.sysID=this.stringify.dtdSysID(e.sysID))}return e(c,a),Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),c.prototype.toString=function(a){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},73067:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s={}.hasOwnProperty,t=[].splice;({isObject:r,isFunction:q,isEmpty:p,getValue:o}=c(43594)),j=null,e=null,f=null,g=null,h=null,m=null,n=null,l=null,i=null,d=null,k=null,b=null,a.exports=(function(){class a{constructor(a){this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,j||(j=c(84519),e=c(46898),f=c(12430),g=c(55443),h=c(33773),m=c(469),n=c(5032),l=c(15890),i=c(76491),d=c(26468),k=c(82307),c(87074),b=c(97410))}setParent(a){var b,c,d,e,f;for(this.parent=a,a&&(this.options=a.options,this.stringify=a.stringify),e=this.children,f=[],c=0,d=e.length;c<d;c++)b=e[c],f.push(b.setParent(this));return f}element(a,b,c){var d,e,f,g,h,i,j,k,l;if(i=null,null===b&&null==c&&([b,c]=[{},null]),null==b&&(b={}),r(b=o(b))||([c,b]=[b,c]),null!=a&&(a=o(a)),Array.isArray(a))for(f=0,j=a.length;f<j;f++)e=a[f],i=this.element(e);else if(q(a))i=this.element(a.apply());else if(r(a)){for(h in a)if(s.call(a,h))if(q(l=a[h])&&(l=l.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===h.indexOf(this.stringify.convertAttKey))i=this.attribute(h.substr(this.stringify.convertAttKey.length),l);else if(!this.options.separateArrayItems&&Array.isArray(l)&&p(l))i=this.dummy();else if(r(l)&&p(l))i=this.element(h);else if(this.options.keepNullNodes||null!=l)if(!this.options.separateArrayItems&&Array.isArray(l))for(g=0,k=l.length;g<k;g++)e=l[g],(d={})[h]=e,i=this.element(d);else r(l)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===h.indexOf(this.stringify.convertTextKey)?i=this.element(l):(i=this.element(h)).element(l):i=this.element(h,l);else i=this.dummy()}else i=this.options.keepNullNodes||null!==c?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?this.text(c):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===a.indexOf(this.stringify.convertCDataKey)?this.cdata(c):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===a.indexOf(this.stringify.convertCommentKey)?this.comment(c):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===a.indexOf(this.stringify.convertRawKey)?this.raw(c):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===a.indexOf(this.stringify.convertPIKey)?this.instruction(a.substr(this.stringify.convertPIKey.length),c):this.node(a,b,c):this.dummy();if(null==i)throw Error("Could not create any elements with: "+a+". "+this.debugInfo());return i}insertBefore(a,b,c){var d,e,f;if(null!=a?a.type:void 0)return a.setParent(this),b?(e=children.indexOf(b),f=children.splice(e),children.push(a),Array.prototype.push.apply(children,f)):children.push(a),a;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d}insertAfter(a,b,c){var d,e,f;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e+1),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d}remove(){var a;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return a=this.parent.children.indexOf(this),t.apply(this.parent.children,[a,a-a+1].concat([])),this.parent}node(a,b,c){var d;return null!=a&&(a=o(a)),b||(b={}),r(b=o(b))||([c,b]=[b,c]),d=new j(this,a,b),null!=c&&d.text(c),this.children.push(d),d}text(a){var b;return r(a)&&this.element(a),b=new n(this,a),this.children.push(b),this}cdata(a){var b;return b=new e(this,a),this.children.push(b),this}comment(a){var b;return b=new f(this,a),this.children.push(b),this}commentBefore(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this}commentAfter(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b+1),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this}raw(a){var b;return b=new m(this,a),this.children.push(b),this}dummy(){return new i(this)}instruction(a,b){var c,d,e,f,g;if(null!=a&&(a=o(a)),null!=b&&(b=o(b)),Array.isArray(a))for(f=0,g=a.length;f<g;f++)c=a[f],this.instruction(c);else if(r(a))for(c in a)s.call(a,c)&&(d=a[c],this.instruction(c,d));else q(b)&&(b=b.apply()),e=new l(this,a,b),this.children.push(e);return this}instructionBefore(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this}instructionAfter(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c+1),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this}declaration(a,b,c){var e,f;return e=this.document(),f=new g(e,a,b,c),0===e.children.length?e.children.unshift(f):e.children[0].type===d.Declaration?e.children[0]=f:e.children.unshift(f),e.root()||e}dtd(a,b){var c,e,f,g,i,j,k,l,m;for(c=this.document(),e=new h(c,a,b),l=c.children,f=g=0,j=l.length;g<j;f=++g)if(l[f].type===d.DocType)return c.children[f]=e,e;for(m=c.children,f=i=0,k=m.length;i<k;f=++i)if(m[f].isRoot)return c.children.splice(f,0,e),e;return c.children.push(e),e}up(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent}root(){var a;for(a=this;a;)if(a.type===d.Document)return a.rootObject;else{if(a.isRoot)return a;a=a.parent}}document(){var a;for(a=this;a;)if(a.type===d.Document)return a;else a=a.parent}end(a){return this.document().end(a)}prev(){var a;if((a=this.parent.children.indexOf(this))<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[a-1]}next(){var a;if(-1===(a=this.parent.children.indexOf(this))||a===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[a+1]}importDocument(a){var b,c,e,f,g;if((c=a.root().clone()).parent=this,c.isRoot=!1,this.children.push(c),this.type===d.Document&&(c.isRoot=!0,c.documentObject=this,this.rootObject=c,this.children)){for(e=0,f=(g=this.children).length;e<f;e++)if((b=g[e]).type===d.DocType){b.name=c.name;break}}return this}debugInfo(a){var b,c;return null!=(a=a||this.name)||(null!=(b=this.parent)?b.name:void 0)?null==a?"parent: <"+this.parent.name+">":(null!=(c=this.parent)?c.name:void 0)?"node: <"+a+">, parent: <"+this.parent.name+">":"node: <"+a+">":""}ele(a,b,c){return this.element(a,b,c)}nod(a,b,c){return this.node(a,b,c)}txt(a){return this.text(a)}dat(a){return this.cdata(a)}com(a){return this.comment(a)}ins(a,b){return this.instruction(a,b)}doc(){return this.document()}dec(a,b,c){return this.declaration(a,b,c)}e(a,b,c){return this.element(a,b,c)}n(a,b,c){return this.node(a,b,c)}t(a){return this.text(a)}d(a){return this.cdata(a)}c(a){return this.comment(a)}r(a){return this.raw(a)}i(a,b){return this.instruction(a,b)}u(){return this.up()}importXMLBuilder(a){return this.importDocument(a)}attribute(a,b){throw Error("attribute() applies to element nodes only.")}att(a,b){return this.attribute(a,b)}a(a,b){return this.attribute(a,b)}removeAttribute(a){throw Error("attribute() applies to element nodes only.")}replaceChild(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}removeChild(a){throw Error("This DOM method is not implemented."+this.debugInfo())}appendChild(a){throw Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return 0!==this.children.length}cloneNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw Error("This DOM method is not implemented."+this.debugInfo())}isSupported(a,b){return!0}hasAttributes(){return 0!==this.attribs.length}compareDocumentPosition(a){var c;if(this===a)return 0;if(this.document()!==a.document())return c=b.Disconnected|b.ImplementationSpecific,.5>Math.random()?c|=b.Preceding:c|=b.Following,c;if(this.isAncestor(a))return b.Contains|b.Preceding;if(this.isDescendant(a))return b.Contains|b.Following;if(this.isPreceding(a))return b.Preceding;else return b.Following}isSameNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(a){throw Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(a){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(a){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(a){var b,c,d;if(a.nodeType!==this.nodeType||a.children.length!==this.children.length)return!1;for(b=c=0,d=this.children.length-1;0<=d?c<=d:c>=d;b=0<=d?++c:--c)if(!this.children[b].isEqualNode(a.children[b]))return!1;return!0}getFeature(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}setUserData(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}getUserData(a){throw Error("This DOM method is not implemented."+this.debugInfo())}contains(a){return!!a&&(a===this||this.isDescendant(a))}isDescendant(a){var b,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if(a===(b=e[c])||b.isDescendant(a))return!0;return!1}isAncestor(a){return a.isDescendant(this)}isPreceding(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b<c}isFollowing(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b>c}treePosition(a){var b,c;return(c=0,b=!1,this.foreachTreeNode(this.document(),function(d){if(c++,!b&&d===a)return b=!0}),b)?c:-1}foreachTreeNode(a,b){var c,d,e,f,g;for(a||(a=this.document()),d=0,e=(f=a.children).length;d<e;d++)if((g=b(c=f[d]))||(g=this.foreachTreeNode(c,b)))return g}}return Object.defineProperty(a.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(a.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new k(this.children)),this.childNodeList}}),Object.defineProperty(a.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(a.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(a.prototype,"previousSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a-1]||null}}),Object.defineProperty(a.prototype,"nextSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a+1]||null}}),Object.defineProperty(a.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(a.prototype,"textContent",{get:function(){var a,b,c,e,f;if(this.nodeType!==d.Element&&this.nodeType!==d.DocumentFragment)return null;for(b=0,f="",c=(e=this.children).length;b<c;b++)(a=e[b]).textContent&&(f+=a.textContent);return f},set:function(a){throw Error("This DOM method is not implemented."+this.debugInfo())}}),a}).call(this)}).call(this)},73669:a=>{"use strict";var b=/["'&<>]/;a.exports=function(a){var c,d=""+a,e=b.exec(d);if(!e)return d;var f="",g=0,h=0;for(g=e.index;g<d.length;g++){switch(d.charCodeAt(g)){case 34:c="&quot;";break;case 38:c="&amp;";break;case 39:c="&#39;";break;case 60:c="&lt;";break;case 62:c="&gt;";break;default:continue}h!==g&&(f+=d.substring(h,g)),h=g+1,f+=c}return h!==g?f+d.substring(h,g):f}},74519:function(a){(function(){var b=function(a,b){return function(){return a.apply(b,arguments)}},c={}.hasOwnProperty;a.exports=function(){function a(a){var d,e,f;for(d in this.assertLegalName=b(this.assertLegalName,this),this.assertLegalChar=b(this.assertLegalChar,this),a||(a={}),this.options=a,this.options.version||(this.options.version="1.0"),e=a.stringify||{})c.call(e,d)&&(f=e[d],this[d]=f)}return a.prototype.name=function(a){return this.options.noValidation?a:this.assertLegalName(""+a||"")},a.prototype.text=function(a){return this.options.noValidation?a:this.assertLegalChar(this.textEscape(""+a||""))},a.prototype.cdata=function(a){return this.options.noValidation?a:(a=(a=""+a||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(a))},a.prototype.comment=function(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/--/))throw Error("Comment text cannot contain double-hypen: "+a);return this.assertLegalChar(a)},a.prototype.raw=function(a){return this.options.noValidation?a:""+a||""},a.prototype.attValue=function(a){return this.options.noValidation?a:this.assertLegalChar(this.attEscape(a=""+a||""))},a.prototype.insTarget=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.insValue=function(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/\?>/))throw Error("Invalid processing instruction value: "+a);return this.assertLegalChar(a)},a.prototype.xmlVersion=function(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/1\.[0-9]+/))throw Error("Invalid version number: "+a);return a},a.prototype.xmlEncoding=function(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+a);return this.assertLegalChar(a)},a.prototype.xmlStandalone=function(a){return this.options.noValidation?a:a?"yes":"no"},a.prototype.dtdPubID=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdSysID=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdElementValue=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdAttType=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdAttDefault=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdEntityValue=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdNData=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.convertAttKey="@",a.prototype.convertPIKey="?",a.prototype.convertTextKey="#text",a.prototype.convertCDataKey="#cdata",a.prototype.convertCommentKey="#comment",a.prototype.convertRawKey="#raw",a.prototype.assertLegalChar=function(a){var b,c;if(this.options.noValidation)return a;if(b="","1.0"===this.options.version){if(b=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=a.match(b))throw Error("Invalid character in string: "+a+" at index "+c.index)}else if("1.1"===this.options.version&&(b=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=a.match(b)))throw Error("Invalid character in string: "+a+" at index "+c.index);return a},a.prototype.assertLegalName=function(a){if(this.options.noValidation)return a;if(this.assertLegalChar(a),!a.match(/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/))throw Error("Invalid character in name");return a},a.prototype.textEscape=function(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,a.replace(b,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},a.prototype.attEscape=function(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,a.replace(b,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},a}()}).call(this)},74832:function(a,b,c){(function(){"use strict";var a,d,e,f,g=function(a,b){for(var c in b)h.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},h={}.hasOwnProperty;d=c(56068),a=c(86115),e=c(93005),f=c(2847),b.defaults=d.defaults,b.processors=f,b.ValidationError=function(a){function b(a){this.message=a}return g(b,a),b}(Error),b.Builder=a.Builder,b.Parser=e.Parser,b.parseString=e.parseString,b.parseStringPromise=e.parseStringPromise}).call(this)},75546:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.createOptionalCallbackFunction=void 0,b.createOptionalCallbackFunction=function(a){return(...b)=>{let c=b[b.length-1];if("function"!=typeof c)return a(...b);try{let d=a(...b.slice(0,-1));c(null,d)}catch(a){c(a instanceof Error?a:Error("Unknown error"))}}}},76326:function(a,b){(function(){"use strict";b.stripBOM=function(a){return"\uFEFF"===a[0]?a.substring(1):a}}).call(this)},76491:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=class extends d{constructor(a){super(a),this.type=b.Dummy}clone(){return Object.create(this)}toString(a){return""}}}).call(this)},77192:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=class extends d{constructor(a,c,d,e,f,g){if(super(a),null==c)throw Error("Missing DTD element name. "+this.debugInfo());if(null==d)throw Error("Missing DTD attribute name. "+this.debugInfo(c));if(!e)throw Error("Missing DTD attribute type. "+this.debugInfo(c));if(!f)throw Error("Missing DTD attribute default. "+this.debugInfo(c));if(0!==f.indexOf("#")&&(f="#"+f),!f.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(c));if(g&&!f.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(c));this.elementName=this.stringify.name(c),this.type=b.AttributeDeclaration,this.attributeName=this.stringify.name(d),this.attributeType=this.stringify.dtdAttType(e),g&&(this.defaultValue=this.stringify.dtdAttDefault(g)),this.defaultValueType=f}toString(a){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(a))}}}).call(this)},78611:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y={}.hasOwnProperty;({isObject:w,isFunction:v,isPlainObject:x,getValue:u}=c(43594)),b=c(26468),n=c(50962),o=c(84519),f=c(46898),g=c(12430),q=c(469),t=c(5032),p=c(15890),l=c(55443),m=c(33773),h=c(77192),j=c(71920),i=c(1243),k=c(48813),e=c(95759),s=c(31753),r=c(44981),d=c(29394),a.exports=class{constructor(a,c,d){var e;this.name="?xml",this.type=b.Document,a||(a={}),e={},a.writer?x(a.writer)&&(e=a.writer,a.writer=new r):a.writer=new r,this.options=a,this.writer=a.writer,this.writerOptions=this.writer.filterOptions(e),this.stringify=new s(a),this.onDataCallback=c||function(){},this.onEndCallback=d||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(a){var c,d,e,f,g,h,i,j;switch(a.type){case b.CData:this.cdata(a.value);break;case b.Comment:this.comment(a.value);break;case b.Element:for(d in e={},i=a.attribs)y.call(i,d)&&(c=i[d],e[d]=c.value);this.node(a.name,e);break;case b.Dummy:this.dummy();break;case b.Raw:this.raw(a.value);break;case b.Text:this.text(a.value);break;case b.ProcessingInstruction:this.instruction(a.target,a.value);break;default:throw Error("This XML node type is not supported in a JS object: "+a.constructor.name)}for(g=0,h=(j=a.children).length;g<h;g++)f=j[g],this.createChildNode(f),f.type===b.Element&&this.up();return this}dummy(){return this}node(a,b,c){if(null==a)throw Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw Error("Document can only have one root node. "+this.debugInfo(a));return this.openCurrent(),a=u(a),null==b&&(b={}),w(b=u(b))||([c,b]=[b,c]),this.currentNode=new o(this,a,b),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=c&&this.text(c),this}element(a,c,d){var e,f,g,h,i,j;if(this.currentNode&&this.currentNode.type===b.DocType)this.dtdElement(...arguments);else if(Array.isArray(a)||w(a)||v(a))for(h=this.options.noValidation,this.options.noValidation=!0,(j=new n(this.options).element("TEMP_ROOT")).element(a),this.options.noValidation=h,f=0,g=(i=j.children).length;f<g;f++)e=i[f],this.createChildNode(e),e.type===b.Element&&this.up();else this.node(a,c,d);return this}attribute(a,b){var c,d;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(a));if(null!=a&&(a=u(a)),w(a))for(c in a)y.call(a,c)&&(d=a[c],this.attribute(c,d));else v(b)&&(b=b.apply()),this.options.keepNullAttributes&&null==b?this.currentNode.attribs[a]=new e(this,a,""):null!=b&&(this.currentNode.attribs[a]=new e(this,a,b));return this}text(a){var b;return this.openCurrent(),b=new t(this,a),this.onData(this.writer.text(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}cdata(a){var b;return this.openCurrent(),b=new f(this,a),this.onData(this.writer.cdata(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}comment(a){var b;return this.openCurrent(),b=new g(this,a),this.onData(this.writer.comment(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}raw(a){var b;return this.openCurrent(),b=new q(this,a),this.onData(this.writer.raw(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}instruction(a,b){var c,d,e,f,g;if(this.openCurrent(),null!=a&&(a=u(a)),null!=b&&(b=u(b)),Array.isArray(a))for(c=0,f=a.length;c<f;c++)d=a[c],this.instruction(d);else if(w(a))for(d in a)y.call(a,d)&&(e=a[d],this.instruction(d,e));else v(b)&&(b=b.apply()),g=new p(this,a,b),this.onData(this.writer.processingInstruction(g,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}declaration(a,b,c){var d;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return d=new l(this,a,b,c),this.onData(this.writer.declaration(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}doctype(a,b,c){if(this.openCurrent(),null==a)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new m(this,b,c),this.currentNode.rootNodeName=a,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this}dtdElement(a,b){var c;return this.openCurrent(),c=new i(this,a,b),this.onData(this.writer.dtdElement(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}attList(a,b,c,d,e){var f;return this.openCurrent(),f=new h(this,a,b,c,d,e),this.onData(this.writer.dtdAttList(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}entity(a,b){var c;return this.openCurrent(),c=new j(this,!1,a,b),this.onData(this.writer.dtdEntity(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}pEntity(a,b){var c;return this.openCurrent(),c=new j(this,!0,a,b),this.onData(this.writer.dtdEntity(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}notation(a,b){var c;return this.openCurrent(),c=new k(this,a,b),this.onData(this.writer.dtdNotation(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}up(){if(this.currentLevel<0)throw Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this}end(){for(;this.currentLevel>=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(a){var c,e,f,g;if(!a.isOpen){if(this.root||0!==this.currentLevel||a.type!==b.Element||(this.root=a),e="",a.type===b.Element){for(f in this.writerOptions.state=d.OpenTag,e=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<"+a.name,g=a.attribs)y.call(g,f)&&(c=g[f],e+=this.writer.attribute(c,this.writerOptions,this.currentLevel));e+=(a.children?">":"/>")+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=d.InsideTag}else this.writerOptions.state=d.OpenTag,e=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+a.rootNodeName,a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),a.children?(e+=" [",this.writerOptions.state=d.InsideTag):(this.writerOptions.state=d.CloseTag,e+=">"),e+=this.writer.endline(a,this.writerOptions,this.currentLevel);return this.onData(e,this.currentLevel),a.isOpen=!0}}closeNode(a){var c;if(!a.isClosed)return c="",this.writerOptions.state=d.CloseTag,c=a.type===b.Element?this.writer.indent(a,this.writerOptions,this.currentLevel)+"</"+a.name+">"+this.writer.endline(a,this.writerOptions,this.currentLevel):this.writer.indent(a,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=d.None,this.onData(c,this.currentLevel),a.isClosed=!0}onData(a,b){return this.documentStarted=!0,this.onDataCallback(a,b+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(a){return null==a?"":"node: <"+a+">"}ele(){return this.element(...arguments)}nod(a,b,c){return this.node(a,b,c)}txt(a){return this.text(a)}dat(a){return this.cdata(a)}com(a){return this.comment(a)}ins(a,b){return this.instruction(a,b)}dec(a,b,c){return this.declaration(a,b,c)}dtd(a,b,c){return this.doctype(a,b,c)}e(a,b,c){return this.element(a,b,c)}n(a,b,c){return this.node(a,b,c)}t(a){return this.text(a)}d(a){return this.cdata(a)}c(a){return this.comment(a)}r(a){return this.raw(a)}i(a,b){return this.instruction(a,b)}att(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(a,b){return this.entity(a,b)}pent(a,b){return this.pEntity(a,b)}not(a,b){return this.notation(a,b)}}}).call(this)},81349:(a,b,c)=>{var d=c(23849),e=d.find,f=d.NAMESPACE,g=d.tagNamePattern;function h(a){return""!==a}function i(a,b){return a.hasOwnProperty(b)||(a[b]=!0),a}function j(a){return a?Object.keys((a?a.split(/[\t\n\f\r ]+/).filter(h):[]).reduce(i,{})):[]}function k(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c])}function l(a,b){var c=a.prototype;if(!(c instanceof b)){function d(){}d.prototype=b.prototype,k(c,d=new d),a.prototype=c=d}c.constructor!=a&&("function"!=typeof a&&console.error("unknown Class:"+a),c.constructor=a)}var m={},n=m.ELEMENT_NODE=1,o=m.ATTRIBUTE_NODE=2,p=m.TEXT_NODE=3,q=m.CDATA_SECTION_NODE=4,r=m.ENTITY_REFERENCE_NODE=5,s=m.ENTITY_NODE=6,t=m.PROCESSING_INSTRUCTION_NODE=7,u=m.COMMENT_NODE=8,v=m.DOCUMENT_NODE=9,w=m.DOCUMENT_TYPE_NODE=10,x=m.DOCUMENT_FRAGMENT_NODE=11,y=m.NOTATION_NODE=12,z={},A={};A[1]="Index size error",z.INDEX_SIZE_ERR=1,A[2]="DOMString size error",z.DOMSTRING_SIZE_ERR=2;var B=(A[3]="Hierarchy request error",z.HIERARCHY_REQUEST_ERR=3);A[4]="Wrong document",z.WRONG_DOCUMENT_ERR=4;var C=(A[5]="Invalid character",z.INVALID_CHARACTER_ERR=5);A[6]="No data allowed",z.NO_DATA_ALLOWED_ERR=6,A[7]="No modification allowed",z.NO_MODIFICATION_ALLOWED_ERR=7;var D=(A[8]="Not found",z.NOT_FOUND_ERR=8);A[9]="Not supported",z.NOT_SUPPORTED_ERR=9;var E=(A[10]="Attribute in use",z.INUSE_ATTRIBUTE_ERR=10),F=(A[11]="Invalid state",z.INVALID_STATE_ERR=11);function G(a,b){if(b instanceof Error)var c=b;else c=this,Error.call(this,A[a]),this.message=A[a],Error.captureStackTrace&&Error.captureStackTrace(this,G);return c.code=a,b&&(this.message=this.message+": "+b),c}function H(){}function I(a,b){this._node=a,this._refresh=b,J(this)}function J(a){var b=a._node._inc||a._node.ownerDocument._inc;if(a._inc!==b){var c=a._refresh(a._node);if(av(a,"length",c.length),!a.$$length||c.length<a.$$length)for(var d=c.length;d in a;d++)Object.prototype.hasOwnProperty.call(a,d)&&delete a[d];k(c,a),a._inc=b}}function K(){this._nameIndex=Object.create(null)}function L(a,b){for(var c=a.length;c--;)if(a[c]===b)return c}function M(a,b){a._nameIndex[b.nodeName]===b&&delete a._nameIndex[b.nodeName]}function N(a,b,c,d){if(d?(b[L(b,d)]=c,M(b,d)):b[b.length++]=c,b._nameIndex[c.nodeName]=c,a){c.ownerElement=a;var e,g,h,i=a.ownerDocument;i&&(d&&V(i,a,d),e=i,g=a,h=c,e&&e._inc++,h.namespaceURI===f.XMLNS&&(g._nsMap[h.prefix?h.localName:""]=h.value))}}function O(a,b,c){var d=L(b,c);if(d>=0){for(var e=b.length-1;d<e;)b[d]=b[++d];if(b.length=e,M(b,c),a){var f=a.ownerDocument;f&&(V(f,a,c),c.ownerElement=null)}}else throw new G(D,Error(a.tagName+"@"+c))}function P(){}function Q(){}function R(a){return"<"==a&&"&lt;"||">"==a&&"&gt;"||"&"==a&&"&amp;"||'"'==a&&"&quot;"||"&#"+a.charCodeAt()+";"}function S(a,b){return T(a,null,{enter:function(a){return!b(a)||T.STOP}})===T.STOP}function T(a,b,c){for(var d=[{node:a,context:b,phase:T.ENTER}];d.length>0;){var e=d.pop();if(e.phase===T.ENTER){var f=c.enter(e.node,e.context);if(f===T.STOP)return T.STOP;if(d.push({node:e.node,context:f,phase:T.EXIT}),null==f)continue;for(var g=e.node.lastChild;g;)d.push({node:g,context:f,phase:T.ENTER}),g=g.previousSibling}else c.exit&&c.exit(e.node,e.context)}}function U(){this.ownerDocument=this}function V(a,b,c,d){a&&a._inc++,c.namespaceURI===f.XMLNS&&delete b._nsMap[c.prefix?c.localName:""]}function W(a,b,c){if(a&&a._inc){a._inc++;var d=b.childNodes;if(c)d[d.length++]=c;else{for(var e=b.firstChild,f=0;e;)d[f++]=e,e=e.nextSibling;d.length=f,delete d[d.length]}}}function X(a,b){var c=b.previousSibling,d=b.nextSibling;return c?c.nextSibling=d:a.firstChild=d,d?d.previousSibling=c:a.lastChild=c,b.parentNode=null,b.previousSibling=null,b.nextSibling=null,W(a.ownerDocument,a),b}function Y(a){return a&&a.nodeType===Q.DOCUMENT_TYPE_NODE}function Z(a){return a&&a.nodeType===Q.ELEMENT_NODE}function $(a){return a&&a.nodeType===Q.TEXT_NODE}function _(a,b){var c=a.childNodes||[];if(e(c,Z)||Y(b))return!1;var d=e(c,Y);return!(b&&d&&c.indexOf(d)>c.indexOf(b))}function aa(a,b){var c=a.childNodes||[];if(e(c,function(a){return Z(a)&&a!==b}))return!1;var d=e(c,Y);return!(b&&d&&c.indexOf(d)>c.indexOf(b))}function ab(a,b,c){var d=a.childNodes||[],f=b.childNodes||[];if(b.nodeType===Q.DOCUMENT_FRAGMENT_NODE){var g=f.filter(Z);if(g.length>1||e(f,$))throw new G(B,"More than one element or text in fragment");if(1===g.length&&!aa(a,c))throw new G(B,"Element in fragment can not be inserted before doctype")}if(Z(b)&&!aa(a,c))throw new G(B,"Only one element can be added and only after doctype");if(Y(b)){if(e(d,function(a){return Y(a)&&a!==c}))throw new G(B,"Only one doctype is allowed");var h=e(d,Z);if(c&&d.indexOf(h)<d.indexOf(c))throw new G(B,"Doctype can only be inserted before an element")}}function ac(a,b,c,d){if(!(a&&(a.nodeType===Q.DOCUMENT_NODE||a.nodeType===Q.DOCUMENT_FRAGMENT_NODE||a.nodeType===Q.ELEMENT_NODE)))throw new G(B,"Unexpected parent node type "+a.nodeType);if(c&&c.parentNode!==a)throw new G(D,"child not in parent");if(!(b&&(Z(b)||$(b)||Y(b)||b.nodeType===Q.DOCUMENT_FRAGMENT_NODE||b.nodeType===Q.COMMENT_NODE||b.nodeType===Q.PROCESSING_INSTRUCTION_NODE))||Y(b)&&a.nodeType!==Q.DOCUMENT_NODE)throw new G(B,"Unexpected node type "+b.nodeType+" for parent node type "+a.nodeType);a.nodeType===Q.DOCUMENT_NODE&&(d||function(a,b,c){var d=a.childNodes||[],f=b.childNodes||[];if(b.nodeType===Q.DOCUMENT_FRAGMENT_NODE){var g=f.filter(Z);if(g.length>1||e(f,$))throw new G(B,"More than one element or text in fragment");if(1===g.length&&!_(a,c))throw new G(B,"Element in fragment can not be inserted before doctype")}if(Z(b)&&!_(a,c))throw new G(B,"Only one element can be added and only after doctype");if(Y(b)){if(e(d,Y))throw new G(B,"Only one doctype is allowed");var h=e(d,Z);if(c&&d.indexOf(h)<d.indexOf(c))throw new G(B,"Doctype can only be inserted before an element");if(!c&&h)throw new G(B,"Doctype can not be appended since element is present")}})(a,b,c);var f=b.parentNode;if(f&&f.removeChild(b),b.nodeType===x){var g=b.firstChild;if(null==g)return b;var h=b.lastChild}else g=h=b;var i=c?c.previousSibling:a.lastChild;g.previousSibling=i,h.nextSibling=c,i?i.nextSibling=g:a.firstChild=g,null==c?a.lastChild=h:c.previousSibling=h;do g.parentNode=a,ad(g,a.ownerDocument||a);while(g!==h&&(g=g.nextSibling));return W(a.ownerDocument||a,a),b.nodeType==x&&(b.firstChild=b.lastChild=null),b}function ad(a,b){if(a.ownerDocument!==b){if(a.ownerDocument=b,a.nodeType===n&&a.attributes)for(var c=0;c<a.attributes.length;c++){var d=a.attributes.item(c);d&&(d.ownerDocument=b)}for(var e=a.firstChild;e;)ad(e,b),e=e.nextSibling}}function ae(){this._nsMap={}}function af(){}function ag(){}function ah(){}function ai(){}function aj(){}function ak(){}function al(){}function am(){}function an(){}function ao(){}function ap(){}function aq(){}function ar(a,b,c){var d=!!c&&!!c.requireWellFormed,e=[],f=9==this.nodeType&&this.documentElement||this,g=f.prefix,h=f.namespaceURI;if(h&&null==g){var g=f.lookupPrefix(h);if(null==g)var i=[{namespace:h,prefix:null}]}return au(this,e,a,b,i,d),e.join("")}function as(a,b,c){var d=a.prefix||"",e=a.namespaceURI;if(!e||"xml"===d&&e===f.XML||e===f.XMLNS)return!1;for(var g=c.length;g--;){var h=c[g];if(h.prefix===d)return h.namespace!==e}return!0}function at(a,b,c,d){if(d&&!g.test(b))throw new G(F,'The attribute name "'+b+'" is not a valid XML QName');a.push(" ",b,'="',c.replace(/[<>&"\t\n\r]/g,R),'"')}function au(a,b,c,d,e,h){e||(e=[]),T(a,{ns:e,isHTML:c},{enter:function(a,c){var e=c.ns,i=c.isHTML;if(d){if(!(a=d(a)))return null;if("string"==typeof a)return b.push(a),null}switch(a.nodeType){case n:var j,k=a.attributes,l=k.length,m=a.tagName;i=f.isHTML(a.namespaceURI)||i;var s=m;if(!i&&!a.prefix&&a.namespaceURI){for(var y=0;y<k.length;y++)if("xmlns"===k.item(y).name){j=k.item(y).value;break}if(!j)for(var z=e.length-1;z>=0;z--){var A=e[z];if(""===A.prefix&&A.namespace===a.namespaceURI){j=A.namespace;break}}if(j!==a.namespaceURI)for(var z=e.length-1;z>=0;z--){var A=e[z];if(A.namespace===a.namespaceURI){A.prefix&&(s=A.prefix+":"+m);break}}}if(h&&!g.test(s))throw new G(F,'The element name "'+s+'" is not a valid XML QName');b.push("<",s);for(var B=e.slice(),C=0;C<l;C++){var D=k.item(C);"xmlns"==D.prefix?B.push({prefix:D.localName,namespace:D.value}):"xmlns"==D.nodeName&&B.push({prefix:"",namespace:D.value})}for(var C=0;C<l;C++){var D=k.item(C);if(as(D,i,B)){var E=D.prefix||"",H=D.namespaceURI;at(b,E?"xmlns:"+E:"xmlns",H,h),B.push({prefix:E,namespace:H})}var I=d?d(D):D;I&&("string"==typeof I?b.push(I):at(b,I.name,I.value,h))}if(m===s&&as(a,i,B)){var J=a.prefix||"",H=a.namespaceURI;at(b,J?"xmlns:"+J:"xmlns",H,h),B.push({prefix:J,namespace:H})}var K=a.firstChild;if(!K&&(!i||/^(?:meta|link|img|br|hr|input)$/i.test(m)))return b.push("/>"),null;if(b.push(">"),i&&/^script$/i.test(m)){for(;K;)K.data?b.push(K.data):au(K,b,i,d,B.slice(),h),K=K.nextSibling;return b.push("</",m,">"),null}return{ns:B,isHTML:i,tag:s};case v:case x:return{ns:e.slice(),isHTML:i,tag:null};case o:return at(b,a.name,a.value,h),null;case p:return b.push(a.data.replace(/[<&>]/g,R)),null;case q:if(h&&-1!==a.data.indexOf("]]>"))throw new G(F,'The CDATASection data contains "]]>"');return b.push("<![CDATA[",a.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case u:if(h&&-1!==a.data.indexOf("--\x3e"))throw new G(F,'The comment node data contains "--\x3e"');return b.push("\x3c!--",a.data,"--\x3e"),null;case w:if(h){if(!g.test(a.name))throw new G(F,'The doctype name "'+a.name+'" is not a valid XML Name');if(a.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(a.publicId))throw new G(F,"DocumentType publicId is not a valid PubidLiteral");if(a.systemId&&!/^("[^"]*"|'[^']*')$/.test(a.systemId))throw new G(F,"DocumentType systemId is not a valid SystemLiteral");if(a.internalSubset&&-1!==a.internalSubset.indexOf("]>"))throw new G(F,'DocumentType internalSubset contains "]>"')}var L=a.publicId,M=a.systemId;if(b.push("<!DOCTYPE ",a.name),L)b.push(" PUBLIC ",L),M&&"."!=M&&b.push(" ",M),b.push(">");else if(M&&"."!=M)b.push(" SYSTEM ",M,">");else{var N=a.internalSubset;N&&b.push(" [",N,"]"),b.push(">")}return null;case t:if(h){if(!g.test(a.target)||-1!==a.target.indexOf(":")||"xml"===a.target.toLowerCase())throw new G(F,'The processing instruction target "'+a.target+'" is not a valid XML NCName or is reserved');if(-1!==a.data.indexOf("?>"))throw new G(F,'The ProcessingInstruction data contains "?>"')}return b.push("<?",a.target," ",a.data,"?>"),null;case r:if(h&&!g.test(a.nodeName))throw new G(F,'The entity reference name "'+a.nodeName+'" is not a valid XML Name');return b.push("&",a.nodeName,";"),null;default:return b.push("??",a.nodeName),null}},exit:function(a,c){c&&c.tag&&b.push("</",c.tag,">")}})}function av(a,b,c){a[b]=c}A[12]="Syntax error",z.SYNTAX_ERR=12,A[13]="Invalid modification",z.INVALID_MODIFICATION_ERR=13,A[14]="Invalid namespace",z.NAMESPACE_ERR=14,A[15]="Invalid access",z.INVALID_ACCESS_ERR=15,G.prototype=Error.prototype,k(z,G),H.prototype={length:0,item:function(a){return a>=0&&a<this.length?this[a]:null},toString:function(a,b,c){for(var d=!!c&&!!c.requireWellFormed,e=[],f=0;f<this.length;f++)au(this[f],e,a,b,null,d);return e.join("")},filter:function(a){return Array.prototype.filter.call(this,a)},indexOf:function(a){return Array.prototype.indexOf.call(this,a)}},I.prototype.item=function(a){return J(this),this[a]||null},l(I,H),K.prototype={length:0,item:H.prototype.item,getNamedItem:function(a){for(var b=this.length;b--;){var c=this[b];if(c.nodeName==a)return c}},setNamedItem:function(a){var b=a.ownerElement;if(b&&b!=this._ownerElement)throw new G(E);var c=this._nameIndex[a.nodeName];return N(this._ownerElement,this,a,c),c},setNamedItemNS:function(a){var b,c=a.ownerElement;if(c&&c!=this._ownerElement)throw new G(E);return b=this.getNamedItemNS(a.namespaceURI,a.localName),N(this._ownerElement,this,a,b),b},removeNamedItem:function(a){var b=this.getNamedItem(a);return O(this._ownerElement,this,b),b},removeNamedItemNS:function(a,b){var c=this.getNamedItemNS(a,b);return O(this._ownerElement,this,c),c},getNamedItemNS:function(a,b){for(var c=this.length;c--;){var d=this[c];if(d.localName==b&&d.namespaceURI==a)return d}return null}},P.prototype={hasFeature:function(a,b){return!0},createDocument:function(a,b,c){var d=new U;if(d.implementation=this,d.childNodes=new H,d.doctype=c||null,c&&d.appendChild(c),b){var e=d.createElementNS(a,b);d.appendChild(e)}return d},createDocumentType:function(a,b,c){var d=new ak;return d.name=a,d.nodeName=a,d.publicId=b||"",d.systemId=c||"",d}},Q.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(a,b){return ac(this,a,b)},replaceChild:function(a,b){ac(this,a,b,ab),b&&this.removeChild(b)},removeChild:function(a){return X(this,a)},appendChild:function(a){return this.insertBefore(a,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(a){return function a(b,c,d){var e;return T(c,null,{enter:function(c,f){var g=new c.constructor;for(var h in c)if(Object.prototype.hasOwnProperty.call(c,h)){var i=c[h];"object"!=typeof i&&i!=g[h]&&(g[h]=i)}c.childNodes&&(g.childNodes=new H),g.ownerDocument=b;var j=d;switch(g.nodeType){case n:var k=c.attributes,l=g.attributes=new K,m=k.length;l._ownerElement=g;for(var p=0;p<m;p++)g.setAttributeNode(a(b,k.item(p),!0));break;case o:j=!0}return null!==f?f.appendChild(g):e=g,j?g:null}}),e}(this.ownerDocument||this,this,a)},normalize:function(){T(this,null,{enter:function(a){for(var b=a.firstChild;b;){var c=b.nextSibling;if(null!==c&&c.nodeType===p&&b.nodeType===p){for(var d=[],e=c;null!==e&&e.nodeType===p;)d.push(e.data),e=e.nextSibling;for(var f=b.nextSibling;f!==e;){var g=f.nextSibling;f.parentNode=null,f.previousSibling=null,f.nextSibling=null,f=g}b.nextSibling=e,null!==e?e.previousSibling=b:a.lastChild=b,b.appendData(d.join("")),W(a.ownerDocument,a),b=e}else b=c}return!0}})},isSupported:function(a,b){return this.ownerDocument.implementation.hasFeature(a,b)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(a){for(var b=this;b;){var c=b._nsMap;if(c){for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)&&c[d]===a)return d}b=b.nodeType==o?b.ownerDocument:b.parentNode}return null},lookupNamespaceURI:function(a){for(var b=this;b;){var c=b._nsMap;if(c&&Object.prototype.hasOwnProperty.call(c,a))return c[a];b=b.nodeType==o?b.ownerDocument:b.parentNode}return null},isDefaultNamespace:function(a){return null==this.lookupPrefix(a)}},k(m,Q),k(m,Q.prototype),T.STOP=Symbol("walkDOM.STOP"),T.ENTER=0,T.EXIT=1,U.prototype={nodeName:"#document",nodeType:v,doctype:null,documentElement:null,_inc:1,insertBefore:function(a,b){if(a.nodeType==x){for(var c=a.firstChild;c;){var d=c.nextSibling;this.insertBefore(c,b),c=d}return a}return ac(this,a,b),ad(a,this),null===this.documentElement&&a.nodeType===n&&(this.documentElement=a),a},removeChild:function(a){return this.documentElement==a&&(this.documentElement=null),X(this,a)},replaceChild:function(a,b){ac(this,a,b,ab),ad(a,this),b&&this.removeChild(b),Z(a)&&(this.documentElement=a)},importNode:function(a,b){var c,d,e,f;return c=this,d=a,e=b,T(d,null,{enter:function(a,b){var d=a.cloneNode(!1);return d.ownerDocument=c,d.parentNode=null,null===b?f=d:b.appendChild(d),a.nodeType===o||e?d:null}}),f},getElementById:function(a){var b=null;return S(this.documentElement,function(c){if(c.nodeType==n&&c.getAttribute("id")==a)return b=c,!0}),b},getElementsByClassName:function(a){var b=j(a);return new I(this,function(c){var d=[];return b.length>0&&S(c.documentElement,function(e){if(e!==c&&e.nodeType===n){var f=e.getAttribute("class");if(f){var g=a===f;if(!g){var h=j(f);g=b.every(function(a){return h&&-1!==h.indexOf(a)})}g&&d.push(e)}}}),d})},createElement:function(a){var b=new ae;return b.ownerDocument=this,b.nodeName=a,b.tagName=a,b.localName=a,b.childNodes=new H,(b.attributes=new K)._ownerElement=b,b},createDocumentFragment:function(){var a=new ao;return a.ownerDocument=this,a.childNodes=new H,a},createTextNode:function(a){var b=new ah;return b.ownerDocument=this,b.appendData(a),b},createComment:function(a){var b=new ai;return b.ownerDocument=this,b.appendData(a),b},createCDATASection:function(a){if(-1!==a.indexOf("]]>"))throw new G(C,'data contains "]]>"');var b=new aj;return b.ownerDocument=this,b.appendData(a),b},createProcessingInstruction:function(a,b){var c=new ap;return c.ownerDocument=this,c.tagName=c.nodeName=c.target=a,c.nodeValue=c.data=b,c},createAttribute:function(a){var b=new af;return b.ownerDocument=this,b.name=a,b.nodeName=a,b.localName=a,b.specified=!0,b},createEntityReference:function(a){if(!g.test(a))throw new G(C,'not a valid xml name "'+a+'"');var b=new an;return b.ownerDocument=this,b.nodeName=a,b},createElementNS:function(a,b){var c=new ae,d=b.split(":"),e=c.attributes=new K;return c.childNodes=new H,c.ownerDocument=this,c.nodeName=b,c.tagName=b,c.namespaceURI=a,2==d.length?(c.prefix=d[0],c.localName=d[1]):c.localName=b,e._ownerElement=c,c},createAttributeNS:function(a,b){var c=new af,d=b.split(":");return c.ownerDocument=this,c.nodeName=b,c.name=b,c.namespaceURI=a,c.specified=!0,2==d.length?(c.prefix=d[0],c.localName=d[1]):c.localName=b,c}},l(U,Q),ae.prototype={nodeType:n,hasAttribute:function(a){return null!=this.getAttributeNode(a)},getAttribute:function(a){var b=this.getAttributeNode(a);return b&&b.value||""},getAttributeNode:function(a){return this.attributes.getNamedItem(a)},setAttribute:function(a,b){var c=this.ownerDocument.createAttribute(a);c.value=c.nodeValue=""+b,this.setAttributeNode(c)},removeAttribute:function(a){var b=this.getAttributeNode(a);b&&this.removeAttributeNode(b)},appendChild:function(a){return a.nodeType===x?this.insertBefore(a,null):(a.parentNode&&a.parentNode.removeChild(a),a.parentNode=this,a.previousSibling=this.lastChild,a.nextSibling=null,a.previousSibling?a.previousSibling.nextSibling=a:this.firstChild=a,this.lastChild=a,W(this.ownerDocument,this,a),ad(a,this.ownerDocument||this),a)},setAttributeNode:function(a){return this.attributes.setNamedItem(a)},setAttributeNodeNS:function(a){return this.attributes.setNamedItemNS(a)},removeAttributeNode:function(a){return this.attributes.removeNamedItem(a.nodeName)},removeAttributeNS:function(a,b){var c=this.getAttributeNodeNS(a,b);c&&this.removeAttributeNode(c)},hasAttributeNS:function(a,b){return null!=this.getAttributeNodeNS(a,b)},getAttributeNS:function(a,b){var c=this.getAttributeNodeNS(a,b);return c&&c.value||""},setAttributeNS:function(a,b,c){var d=this.ownerDocument.createAttributeNS(a,b);d.value=d.nodeValue=""+c,this.setAttributeNode(d)},getAttributeNodeNS:function(a,b){return this.attributes.getNamedItemNS(a,b)},getElementsByTagName:function(a){return new I(this,function(b){var c=[];return S(b,function(d){d!==b&&d.nodeType==n&&("*"===a||d.tagName==a)&&c.push(d)}),c})},getElementsByTagNameNS:function(a,b){return new I(this,function(c){var d=[];return S(c,function(e){e!==c&&e.nodeType===n&&("*"===a||e.namespaceURI===a)&&("*"===b||e.localName==b)&&d.push(e)}),d})}},U.prototype.getElementsByTagName=ae.prototype.getElementsByTagName,U.prototype.getElementsByTagNameNS=ae.prototype.getElementsByTagNameNS,l(ae,Q),af.prototype.nodeType=o,l(af,Q),ag.prototype={data:"",substringData:function(a,b){return this.data.substring(a,a+b)},appendData:function(a){a=this.data+a,this.nodeValue=this.data=a,this.length=a.length},insertData:function(a,b){this.replaceData(a,0,b)},appendChild:function(a){throw Error(A[B])},deleteData:function(a,b){this.replaceData(a,b,"")},replaceData:function(a,b,c){c=this.data.substring(0,a)+c+this.data.substring(a+b),this.nodeValue=this.data=c,this.length=c.length}},l(ag,Q),ah.prototype={nodeName:"#text",nodeType:p,splitText:function(a){var b=this.data,c=b.substring(a);b=b.substring(0,a),this.data=this.nodeValue=b,this.length=b.length;var d=this.ownerDocument.createTextNode(c);return this.parentNode&&this.parentNode.insertBefore(d,this.nextSibling),d}},l(ah,ag),ai.prototype={nodeName:"#comment",nodeType:u},l(ai,ag),aj.prototype={nodeName:"#cdata-section",nodeType:q},l(aj,ag),ak.prototype.nodeType=w,l(ak,Q),al.prototype.nodeType=y,l(al,Q),am.prototype.nodeType=s,l(am,Q),an.prototype.nodeType=r,l(an,Q),ao.prototype.nodeName="#document-fragment",ao.prototype.nodeType=x,l(ao,Q),ap.prototype.nodeType=t,l(ap,Q),aq.prototype.serializeToString=function(a,b,c,d){return ar.call(a,b,c,d)},Q.prototype.toString=ar;try{Object.defineProperty&&(Object.defineProperty(I.prototype,"length",{get:function(){return J(this),this.$$length}}),Object.defineProperty(Q.prototype,"textContent",{get:function(){if(this.nodeType===n||this.nodeType===x){var a=[];return T(this,null,{enter:function(b){return b.nodeType===n||b.nodeType===x||(b.nodeType===t||b.nodeType===u?null:void a.push(b.nodeValue))}}),a.join("")}return this.nodeValue},set:function(a){switch(this.nodeType){case n:case x:for(;this.firstChild;)this.removeChild(this.firstChild);(a||String(a))&&this.appendChild(this.ownerDocument.createTextNode(a));break;default:this.data=a,this.value=a,this.nodeValue=a}}}),av=function(a,b,c){a["$$"+b]=c})}catch(a){}b.DocumentType=ak,b.DOMException=G,b.DOMImplementation=P,b.Element=ae,b.Node=Q,b.NodeList=H,b.walkDOM=T,b.XMLSerializer=aq},81654:(a,b,c)=>{!function(a){a.parser=function(a,b){return new h(a,b)},a.SAXParser=h,a.SAXStream=j,a.createStream=function(a,b){return new j(a,b)},a.MAX_BUFFER_LENGTH=65536;var b,d,e,f,g=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function h(b,c){if(!(this instanceof h))return new h(b,c);(function(a){for(var b=0,c=g.length;b<c;b++)a[g[b]]=""})(this),this.q=this.c="",this.bufferCheckPosition=a.MAX_BUFFER_LENGTH,this.encoding=null,this.opt=c||{},this.opt.lowercase=this.opt.lowercase||this.opt.lowercasetags,this.looseCase=this.opt.lowercase?"toLowerCase":"toUpperCase",this.opt.maxEntityCount=this.opt.maxEntityCount||512,this.opt.maxEntityDepth=this.opt.maxEntityDepth||4,this.entityCount=this.entityDepth=0,this.tags=[],this.closed=this.closedRoot=this.sawRoot=!1,this.tag=this.error=null,this.strict=!!b,this.noscript=!!(b||this.opt.noscript),this.state=w.BEGIN,this.strictEntities=this.opt.strictEntities,this.ENTITIES=this.strictEntities?Object.create(a.XML_ENTITIES):Object.create(a.ENTITIES),this.attribList=[],this.opt.xmlns&&(this.ns=Object.create(o)),void 0===this.opt.unquotedAttributeValues&&(this.opt.unquotedAttributeValues=!b),this.trackPosition=!1!==this.opt.position,this.trackPosition&&(this.position=this.line=this.column=0),y(this,"onready")}a.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(a){function b(){}return b.prototype=a,new b}),Object.keys||(Object.keys=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b}),h.prototype={end:function(){E(this)},write:function(b){if(this.error)throw this.error;if(this.closed)return D(this,"Cannot write after close. Assign an onready handler.");if(null===b)return E(this);"object"==typeof b&&(b=b.toString());for(var c=0,d="";d=L(b,c++),this.c=d,d;)switch(this.trackPosition&&(this.position++,"\n"===d?(this.line++,this.column=0):this.column++),this.state){case w.BEGIN:if(this.state=w.BEGIN_WHITESPACE,"\uFEFF"===d)continue;K(this,d);continue;case w.BEGIN_WHITESPACE:K(this,d);continue;case w.TEXT:if(this.sawRoot&&!this.closedRoot){for(var e=c-1;d&&"<"!==d&&"&"!==d;)(d=L(b,c++))&&this.trackPosition&&(this.position++,"\n"===d?(this.line++,this.column=0):this.column++);this.textNode+=b.substring(e,c-1)}"<"!==d||this.sawRoot&&this.closedRoot&&!this.strict?(t(d)||this.sawRoot&&!this.closedRoot||F(this,"Text data outside of root node."),"&"===d?this.state=w.TEXT_ENTITY:this.textNode+=d):(this.state=w.OPEN_WAKA,this.startTagPosition=this.position);continue;case w.SCRIPT:"<"===d?this.state=w.SCRIPT_ENDING:this.script+=d;continue;case w.SCRIPT_ENDING:"/"===d?this.state=w.CLOSE_TAG:(this.script+="<"+d,this.state=w.SCRIPT);continue;case w.OPEN_WAKA:"!"===d?(this.state=w.SGML_DECL,this.sgmlDecl=""):t(d)||(v(p,d)?(this.state=w.OPEN_TAG,this.tagName=d):"/"===d?(this.state=w.CLOSE_TAG,this.tagName=""):"?"===d?(this.state=w.PROC_INST,this.procInstName=this.procInstBody=""):(F(this,"Unencoded <"),this.startTagPosition+1<this.position&&(d=Array(this.position-this.startTagPosition).join(" ")+d),this.textNode+="<"+d,this.state=w.TEXT));continue;case w.SGML_DECL:if(this.sgmlDecl+d==="--"){this.state=w.COMMENT,this.comment="",this.sgmlDecl="";continue}this.doctype&&!0!==this.doctype&&this.sgmlDecl?(this.state=w.DOCTYPE_DTD,this.doctype+="<!"+this.sgmlDecl+d,this.sgmlDecl=""):k.test(this.sgmlDecl+d)?(A(this,"onopencdata"),this.state=w.CDATA,this.sgmlDecl="",this.cdata=""):l.test(this.sgmlDecl+d)?(this.state=w.DOCTYPE,(this.doctype||this.sawRoot)&&F(this,"Inappropriately located doctype declaration"),this.doctype="",this.sgmlDecl=""):">"===d?(A(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=w.TEXT):(u(d)&&(this.state=w.SGML_DECL_QUOTED),this.sgmlDecl+=d);continue;case w.SGML_DECL_QUOTED:d===this.q&&(this.state=w.SGML_DECL,this.q=""),this.sgmlDecl+=d;continue;case w.DOCTYPE:">"===d?(this.state=w.TEXT,A(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=d,"["===d?this.state=w.DOCTYPE_DTD:u(d)&&(this.state=w.DOCTYPE_QUOTED,this.q=d));continue;case w.DOCTYPE_QUOTED:this.doctype+=d,d===this.q&&(this.q="",this.state=w.DOCTYPE);continue;case w.DOCTYPE_DTD:"]"===d?(this.doctype+=d,this.state=w.DOCTYPE):"<"===d?(this.state=w.OPEN_WAKA,this.startTagPosition=this.position):u(d)?(this.doctype+=d,this.state=w.DOCTYPE_DTD_QUOTED,this.q=d):this.doctype+=d;continue;case w.DOCTYPE_DTD_QUOTED:this.doctype+=d,d===this.q&&(this.state=w.DOCTYPE_DTD,this.q="");continue;case w.COMMENT:"-"===d?this.state=w.COMMENT_ENDING:this.comment+=d;continue;case w.COMMENT_ENDING:"-"===d?(this.state=w.COMMENT_ENDED,this.comment=C(this.opt,this.comment),this.comment&&A(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+d,this.state=w.COMMENT);continue;case w.COMMENT_ENDED:">"!==d?(F(this,"Malformed comment"),this.comment+="--"+d,this.state=w.COMMENT):this.doctype&&!0!==this.doctype?this.state=w.DOCTYPE_DTD:this.state=w.TEXT;continue;case w.CDATA:for(var e=c-1;d&&"]"!==d;)(d=L(b,c++))&&this.trackPosition&&(this.position++,"\n"===d?(this.line++,this.column=0):this.column++);this.cdata+=b.substring(e,c-1),"]"===d&&(this.state=w.CDATA_ENDING);continue;case w.CDATA_ENDING:"]"===d?this.state=w.CDATA_ENDING_2:(this.cdata+="]"+d,this.state=w.CDATA);continue;case w.CDATA_ENDING_2:">"===d?(this.cdata&&A(this,"oncdata",this.cdata),A(this,"onclosecdata"),this.cdata="",this.state=w.TEXT):"]"===d?this.cdata+="]":(this.cdata+="]]"+d,this.state=w.CDATA);continue;case w.PROC_INST:"?"===d?this.state=w.PROC_INST_ENDING:t(d)?this.state=w.PROC_INST_BODY:this.procInstName+=d;continue;case w.PROC_INST_BODY:!this.procInstBody&&t(d)||("?"===d?this.state=w.PROC_INST_ENDING:this.procInstBody+=d);continue;case w.PROC_INST_ENDING:if(">"===d){let a={name:this.procInstName,body:this.procInstBody};!function(a,b){if(a.strict&&a.encoding&&b&&"xml"===b.name){let g,h;var c,d,e,f=(d=(c=b.body)&&c.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i))?d[2]:null;f&&(e=a.encoding,g=z(e),h=z(f),g&&h&&("utf16"===h?"utf16le"!==g&&"utf16be"!==g:g!==h))&&F(a,"XML declaration encoding "+f+" does not match detected stream encoding "+a.encoding.toUpperCase())}}(this,a),A(this,"onprocessinginstruction",a),this.procInstName=this.procInstBody="",this.state=w.TEXT}else this.procInstBody+="?"+d,this.state=w.PROC_INST_BODY;continue;case w.OPEN_TAG:v(q,d)?this.tagName+=d:(!function(a){a.strict||(a.tagName=a.tagName[a.looseCase]());var b=a.tags[a.tags.length-1]||a,c=a.tag={name:a.tagName,attributes:{}};a.opt.xmlns&&(c.ns=b.ns),a.attribList.length=0,A(a,"onopentagstart",c)}(this),">"===d?I(this):"/"===d?this.state=w.OPEN_TAG_SLASH:(t(d)||F(this,"Invalid character in tag name"),this.state=w.ATTRIB));continue;case w.OPEN_TAG_SLASH:">"===d?(I(this,!0),J(this)):(F(this,"Forward-slash in opening tag not followed by >"),this.state=w.ATTRIB);continue;case w.ATTRIB:t(d)||(">"===d?I(this):"/"===d?this.state=w.OPEN_TAG_SLASH:v(p,d)?(this.attribName=d,this.attribValue="",this.state=w.ATTRIB_NAME):F(this,"Invalid attribute name"));continue;case w.ATTRIB_NAME:"="===d?this.state=w.ATTRIB_VALUE:">"===d?(F(this,"Attribute without value"),this.attribValue=this.attribName,H(this),I(this)):t(d)?this.state=w.ATTRIB_NAME_SAW_WHITE:v(q,d)?this.attribName+=d:F(this,"Invalid attribute name");continue;case w.ATTRIB_NAME_SAW_WHITE:if("="===d)this.state=w.ATTRIB_VALUE;else{if(t(d))continue;F(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",A(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===d?I(this):v(p,d)?(this.attribName=d,this.state=w.ATTRIB_NAME):(F(this,"Invalid attribute name"),this.state=w.ATTRIB)}continue;case w.ATTRIB_VALUE:t(d)||(u(d)?(this.q=d,this.state=w.ATTRIB_VALUE_QUOTED):(this.opt.unquotedAttributeValues||D(this,"Unquoted attribute value"),this.state=w.ATTRIB_VALUE_UNQUOTED,this.attribValue=d));continue;case w.ATTRIB_VALUE_QUOTED:if(d!==this.q){"&"===d?this.state=w.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=d;continue}H(this),this.q="",this.state=w.ATTRIB_VALUE_CLOSED;continue;case w.ATTRIB_VALUE_CLOSED:t(d)?this.state=w.ATTRIB:">"===d?I(this):"/"===d?this.state=w.OPEN_TAG_SLASH:v(p,d)?(F(this,"No whitespace between attributes"),this.attribName=d,this.attribValue="",this.state=w.ATTRIB_NAME):F(this,"Invalid attribute name");continue;case w.ATTRIB_VALUE_UNQUOTED:if(!(">"===(f=d)||t(f))){"&"===d?this.state=w.ATTRIB_VALUE_ENTITY_U:this.attribValue+=d;continue}H(this),">"===d?I(this):this.state=w.ATTRIB;continue;case w.CLOSE_TAG:this.tagName?">"===d?J(this):v(q,d)?this.tagName+=d:this.script?(this.script+="</"+this.tagName+d,this.tagName="",this.state=w.SCRIPT):(t(d)||F(this,"Invalid tagname in closing tag"),this.state=w.CLOSE_TAG_SAW_WHITE):t(d)||(v(p,d)?this.tagName=d:this.script?(this.script+="</"+d,this.state=w.SCRIPT):F(this,"Invalid tagname in closing tag."));continue;case w.CLOSE_TAG_SAW_WHITE:if(t(d))continue;">"===d?J(this):F(this,"Invalid characters in closing tag");continue;case w.TEXT_ENTITY:case w.ATTRIB_VALUE_ENTITY_Q:case w.ATTRIB_VALUE_ENTITY_U:switch(this.state){case w.TEXT_ENTITY:h=w.TEXT,i="textNode";break;case w.ATTRIB_VALUE_ENTITY_Q:h=w.ATTRIB_VALUE_QUOTED,i="attribValue";break;case w.ATTRIB_VALUE_ENTITY_U:h=w.ATTRIB_VALUE_UNQUOTED,i="attribValue"}if(";"===d){var f,h,i,j=function(a){var b,c,d=a.entity,e=d.toLowerCase(),f="";return a.ENTITIES[d]?a.ENTITIES[d]:a.ENTITIES[e]?a.ENTITIES[e]:("#"===(d=e).charAt(0)&&(f="x"===d.charAt(1)?(c=parseInt(d=d.slice(2),16)).toString(16):(c=parseInt(d=d.slice(1),10)).toString(10)),d=d.replace(/^0+/,""),isNaN(c)||f.toLowerCase()!==d||c<0||c>1114111||!(9===(b=c)||10===b||13===b||b>=32&&b<=55295||b>=57344&&b<=65533||b>=65536&&b<=1114111))?(F(a,"Invalid character entity"),"&"+a.entity+";"):String.fromCodePoint(c)}(this);this.opt.unparsedEntities&&!Object.values(a.XML_ENTITIES).includes(j)?((this.entityCount+=1)>this.opt.maxEntityCount&&D(this,"Parsed entity count exceeds max entity count"),(this.entityDepth+=1)>this.opt.maxEntityDepth&&D(this,"Parsed entity depth exceeds max entity depth"),this.entity="",this.state=h,this.write(j),this.entityDepth-=1):(this[i]+=j,this.entity="",this.state=h)}else v(this.entity.length?s:r,d)?this.entity+=d:(F(this,"Invalid character in entity name"),this[i]+="&"+this.entity+d,this.entity="",this.state=h);continue;default:throw Error(this,"Unknown state: "+this.state)}return this.position>=this.bufferCheckPosition&&function(b){for(var c=Math.max(a.MAX_BUFFER_LENGTH,10),d=0,e=0,f=g.length;e<f;e++){var h=b[g[e]].length;if(h>c)switch(g[e]){case"textNode":B(b);break;case"cdata":A(b,"oncdata",b.cdata),b.cdata="";break;case"script":A(b,"onscript",b.script),b.script="";break;default:D(b,"Max buffer length exceeded: "+g[e])}d=Math.max(d,h)}b.bufferCheckPosition=a.MAX_BUFFER_LENGTH-d+b.position}(this),this},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){B(this),""!==this.cdata&&(A(this,"oncdata",this.cdata),this.cdata=""),""!==this.script&&(A(this,"onscript",this.script),this.script="")}};try{f=c(27910).Stream}catch(a){f=function(){}}f||(f=function(){});var i=a.EVENTS.filter(function(a){return"error"!==a&&"end"!==a});function j(a,b){if(!(this instanceof j))return new j(a,b);f.apply(this),this._parser=new h(a,b),this.writable=!0,this.readable=!0;var c=this;this._parser.onend=function(){c.emit("end")},this._parser.onerror=function(a){c.emit("error",a),c._parser.error=null},this._decoder=null,this._decoderBuffer=null,i.forEach(function(a){Object.defineProperty(c,"on"+a,{get:function(){return c._parser["on"+a]},set:function(b){if(!b)return c.removeAllListeners(a),c._parser["on"+a]=b,b;c.on(a,b)},enumerable:!0,configurable:!1})})}j.prototype=Object.create(f.prototype,{constructor:{value:j}}),j.prototype._decodeBuffer=function(a,b){if(this._decoderBuffer&&(a=Buffer.concat([this._decoderBuffer,a]),this._decoderBuffer=null),!this._decoder){var c=function(a,b){if(a.length>=2){if(255===a[0]&&254===a[1])return"utf-16le";if(254===a[0]&&255===a[1])return"utf-16be"}return a.length>=3&&239===a[0]&&187===a[1]&&191===a[2]?"utf8":a.length>=4?60===a[0]&&0===a[1]&&63===a[2]&&0===a[3]?"utf-16le":0===a[0]&&60===a[1]&&0===a[2]&&63===a[3]?"utf-16be":"utf8":b?"utf8":null}(a,b);if(!c)return this._decoderBuffer=a,"";this._parser.encoding=c,this._decoder=new TextDecoder(c)}return this._decoder.decode(a,{stream:!b})},j.prototype.write=function(a){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(a))a=this._decodeBuffer(a,!1);else if(this._decoderBuffer){var b=this._decodeBuffer(Buffer.alloc(0),!0);b&&(this._parser.write(b),this.emit("data",b))}return this._parser.write(a.toString()),this.emit("data",a),!0},j.prototype.end=function(a){if(a&&a.length&&this.write(a),this._decoderBuffer){var b=this._decodeBuffer(Buffer.alloc(0),!0);b&&(this._parser.write(b),this.emit("data",b))}else if(this._decoder){var c=this._decoder.decode();c&&(this._parser.write(c),this.emit("data",c))}return this._parser.end(),!0},j.prototype.on=function(a,b){var c=this;return c._parser["on"+a]||-1===i.indexOf(a)||(c._parser["on"+a]=function(){var b=1==arguments.length?[arguments[0]]:Array.apply(null,arguments);b.splice(0,0,a),c.emit.apply(c,b)}),f.prototype.on.call(c,a,b)};var k=/^\[CDATA\[$/i,l=/^DOCTYPE$/i,m="http://www.w3.org/XML/1998/namespace",n="http://www.w3.org/2000/xmlns/",o={xml:m,xmlns:n},p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,q=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,r=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,s=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function t(a){return" "===a||"\n"===a||"\r"===a||" "===a}function u(a){return'"'===a||"'"===a}function v(a,b){return a.test(b)}var w=0;for(var x in a.STATE={BEGIN:w++,BEGIN_WHITESPACE:w++,TEXT:w++,TEXT_ENTITY:w++,OPEN_WAKA:w++,SGML_DECL:w++,SGML_DECL_QUOTED:w++,DOCTYPE:w++,DOCTYPE_QUOTED:w++,DOCTYPE_DTD:w++,DOCTYPE_DTD_QUOTED:w++,COMMENT_STARTING:w++,COMMENT:w++,COMMENT_ENDING:w++,COMMENT_ENDED:w++,CDATA:w++,CDATA_ENDING:w++,CDATA_ENDING_2:w++,PROC_INST:w++,PROC_INST_BODY:w++,PROC_INST_ENDING:w++,OPEN_TAG:w++,OPEN_TAG_SLASH:w++,ATTRIB:w++,ATTRIB_NAME:w++,ATTRIB_NAME_SAW_WHITE:w++,ATTRIB_VALUE:w++,ATTRIB_VALUE_QUOTED:w++,ATTRIB_VALUE_CLOSED:w++,ATTRIB_VALUE_UNQUOTED:w++,ATTRIB_VALUE_ENTITY_Q:w++,ATTRIB_VALUE_ENTITY_U:w++,CLOSE_TAG:w++,CLOSE_TAG_SAW_WHITE:w++,SCRIPT:w++,SCRIPT_ENDING:w++},a.XML_ENTITIES=Object.assign(Object.create(null),{amp:"&",gt:">",lt:"<",quot:'"',apos:"'"}),a.ENTITIES=Object.assign(Object.create(null),{amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}),Object.keys(a.ENTITIES).forEach(function(b){var c=a.ENTITIES[b],d="number"==typeof c?String.fromCharCode(c):c;a.ENTITIES[b]=d}),a.STATE)a.STATE[a.STATE[x]]=x;function y(a,b,c){a[b]&&a[b](c)}function z(a){return a?a.toLowerCase().replace(/[^a-z0-9]/g,""):null}function A(a,b,c){a.textNode&&B(a),y(a,b,c)}function B(a){a.textNode=C(a.opt,a.textNode),a.textNode&&y(a,"ontext",a.textNode),a.textNode=""}function C(a,b){return a.trim&&(b=b.trim()),a.normalize&&(b=b.replace(/\s+/g," ")),b}function D(a,b){return B(a),a.trackPosition&&(b+="\nLine: "+a.line+"\nColumn: "+a.column+"\nChar: "+a.c),a.error=b=Error(b),y(a,"onerror",b),a}function E(a){return a.sawRoot&&!a.closedRoot&&F(a,"Unclosed root tag"),a.state!==w.BEGIN&&a.state!==w.BEGIN_WHITESPACE&&a.state!==w.TEXT&&D(a,"Unexpected end"),B(a),a.c="",a.closed=!0,y(a,"onend"),h.call(a,a.strict,a.opt),a}function F(a,b){if("object"!=typeof a||!(a instanceof h))throw Error("bad call to strictFail");a.strict&&D(a,b)}function G(a,b){var c=0>a.indexOf(":")?["",a]:a.split(":"),d=c[0],e=c[1];return b&&"xmlns"===a&&(d="xmlns",e=""),{prefix:d,local:e}}function H(a){if(a.strict||(a.attribName=a.attribName[a.looseCase]()),-1!==a.attribList.indexOf(a.attribName)||a.tag.attributes.hasOwnProperty(a.attribName)){a.attribName=a.attribValue="";return}if(a.opt.xmlns){var b=G(a.attribName,!0),c=b.prefix,d=b.local;if("xmlns"===c)if("xml"===d&&a.attribValue!==m)F(a,"xml: prefix must be bound to "+m+"\nActual: "+a.attribValue);else if("xmlns"===d&&a.attribValue!==n)F(a,"xmlns: prefix must be bound to "+n+"\nActual: "+a.attribValue);else{var e=a.tag,f=a.tags[a.tags.length-1]||a;e.ns===f.ns&&(e.ns=Object.create(f.ns)),e.ns[d]=a.attribValue}a.attribList.push([a.attribName,a.attribValue])}else a.tag.attributes[a.attribName]=a.attribValue,A(a,"onattribute",{name:a.attribName,value:a.attribValue});a.attribName=a.attribValue=""}function I(a,b){if(a.opt.xmlns){var c=a.tag,d=G(a.tagName);c.prefix=d.prefix,c.local=d.local,c.uri=c.ns[d.prefix]||"",c.prefix&&!c.uri&&(F(a,"Unbound namespace prefix: "+JSON.stringify(a.tagName)),c.uri=d.prefix);var e=a.tags[a.tags.length-1]||a;c.ns&&e.ns!==c.ns&&Object.keys(c.ns).forEach(function(b){A(a,"onopennamespace",{prefix:b,uri:c.ns[b]})});for(var f=0,g=a.attribList.length;f<g;f++){var h=a.attribList[f],i=h[0],j=h[1],k=G(i,!0),l=k.prefix,m=k.local,n=""===l?"":c.ns[l]||"",o={name:i,value:j,prefix:l,local:m,uri:n};l&&"xmlns"!==l&&!n&&(F(a,"Unbound namespace prefix: "+JSON.stringify(l)),o.uri=l),a.tag.attributes[i]=o,A(a,"onattribute",o)}a.attribList.length=0}a.tag.isSelfClosing=!!b,a.sawRoot=!0,a.tags.push(a.tag),A(a,"onopentag",a.tag),b||(a.noscript||"script"!==a.tagName.toLowerCase()?a.state=w.TEXT:a.state=w.SCRIPT,a.tag=null,a.tagName=""),a.attribName=a.attribValue="",a.attribList.length=0}function J(a){if(!a.tagName){F(a,"Weird empty close tag."),a.textNode+="</>",a.state=w.TEXT;return}if(a.script){if("script"!==a.tagName){a.script+="</"+a.tagName+">",a.tagName="",a.state=w.SCRIPT;return}A(a,"onscript",a.script),a.script=""}var b=a.tags.length,c=a.tagName;a.strict||(c=c[a.looseCase]());for(var d=c;b--;)if(a.tags[b].name!==d)F(a,"Unexpected close tag");else break;if(b<0){F(a,"Unmatched closing tag: "+a.tagName),a.textNode+="</"+a.tagName+">",a.state=w.TEXT;return}a.tagName=c;for(var e=a.tags.length;e-- >b;){var f=a.tag=a.tags.pop();a.tagName=a.tag.name,A(a,"onclosetag",a.tagName);var g={};for(var h in f.ns)g[h]=f.ns[h];var i=a.tags[a.tags.length-1]||a;a.opt.xmlns&&f.ns!==i.ns&&Object.keys(f.ns).forEach(function(b){var c=f.ns[b];A(a,"onclosenamespace",{prefix:b,uri:c})})}0===b&&(a.closedRoot=!0),a.tagName=a.attribValue=a.attribName="",a.attribList.length=0,a.state=w.TEXT}function K(a,b){"<"===b?(a.state=w.OPEN_WAKA,a.startTagPosition=a.position):t(b)||(F(a,"Non-whitespace before first tag."),a.textNode=b,a.state=w.TEXT)}function L(a,b){var c="";return b<a.length&&(c=a.charAt(b)),c}w=a.STATE,String.fromCodePoint||(b=String.fromCharCode,d=Math.floor,e=function(){var a,c,e=[],f=-1,g=arguments.length;if(!g)return"";for(var h="";++f<g;){var i=Number(arguments[f]);if(!isFinite(i)||i<0||i>1114111||d(i)!==i)throw RangeError("Invalid code point: "+i);i<=65535?e.push(i):(i-=65536,a=(i>>10)+55296,c=i%1024+56320,e.push(a,c)),(f+1===g||e.length>16384)&&(h+=b.apply(null,e),e.length=0)}return h},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:e,configurable:!0,writable:!0}):String.fromCodePoint=e)}(b)},82307:function(a){(function(){a.exports=(function(){class a{constructor(a){this.nodes=a}clone(){return this.nodes=null}item(a){return this.nodes[a]||null}}return Object.defineProperty(a.prototype,"length",{get:function(){return this.nodes.length||0}}),a}).call(this)}).call(this)},84519:function(a,b,c){(function(){var b,d,e,f,g,h,i,j={}.hasOwnProperty;({isObject:i,isFunction:h,getValue:g}=c(43594)),f=c(73067),b=c(26468),d=c(95759),e=c(87074),a.exports=(function(){class a extends f{constructor(a,c,d){var e,f,g,h;if(super(a),null==c)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(c),this.type=b.Element,this.attribs={},this.schemaTypeInfo=null,null!=d&&this.attribute(d),a.type===b.Document&&(this.isRoot=!0,this.documentObject=a,a.rootObject=this,a.children)){for(f=0,g=(h=a.children).length;f<g;f++)if((e=h[f]).type===b.DocType){e.name=this.name;break}}}clone(){var a,b,c,d;for(b in(c=Object.create(this)).isRoot&&(c.documentObject=null),c.attribs={},d=this.attribs)j.call(d,b)&&(a=d[b],c.attribs[b]=a.clone());return c.children=[],this.children.forEach(function(a){var b;return(b=a.clone()).parent=c,c.children.push(b)}),c}attribute(a,b){var c,e;if(null!=a&&(a=g(a)),i(a))for(c in a)j.call(a,c)&&(e=a[c],this.attribute(c,e));else h(b)&&(b=b.apply()),this.options.keepNullAttributes&&null==b?this.attribs[a]=new d(this,a,""):null!=b&&(this.attribs[a]=new d(this,a,b));return this}removeAttribute(a){var b,c,d;if(null==a)throw Error("Missing attribute name. "+this.debugInfo());if(Array.isArray(a=g(a)))for(c=0,d=a.length;c<d;c++)b=a[c],delete this.attribs[b];else delete this.attribs[a];return this}toString(a){return this.options.writer.element(this,this.options.writer.filterOptions(a))}att(a,b){return this.attribute(a,b)}a(a,b){return this.attribute(a,b)}getAttribute(a){return this.attribs.hasOwnProperty(a)?this.attribs[a].value:null}setAttribute(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNode(a){return this.attribs.hasOwnProperty(a)?this.attribs[a]:null}setAttributeNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNS(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNodeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNodeNS(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}hasAttribute(a){return this.attribs.hasOwnProperty(a)}hasAttributeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}setIdAttribute(a,b){return this.attribs.hasOwnProperty(a)?this.attribs[a].isId:b}setIdAttributeNS(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}setIdAttributeNode(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(a){var b,c,d;if(!super.isEqualNode(a)||a.namespaceURI!==this.namespaceURI||a.prefix!==this.prefix||a.localName!==this.localName||a.attribs.length!==this.attribs.length)return!1;for(b=c=0,d=this.attribs.length-1;0<=d?c<=d:c>=d;b=0<=d?++c:--c)if(!this.attribs[b].isEqualNode(a.attribs[b]))return!1;return!0}}return Object.defineProperty(a.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"id",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"className",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"classList",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new e(this.attribs)),this.attributeMap}}),a}).call(this)}).call(this)},84689:function(a,b,c){(function(){var b,d,e,f=function(a,b){for(var c in b)g.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},g={}.hasOwnProperty;e=c(4700).isObject,d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,f,g){var h;c.__super__.constructor.call(this,a),e(d)&&(d=(h=d).version,f=h.encoding,g=h.standalone),d||(d="1.0"),this.type=b.Declaration,this.version=this.stringify.xmlVersion(d),null!=f&&(this.encoding=this.stringify.xmlEncoding(f)),null!=g&&(this.standalone=this.stringify.xmlStandalone(g))}return f(c,a),c.prototype.toString=function(a){return this.options.writer.declaration(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},86115:function(a,b,c){(function(){"use strict";var a,d,e,f,g,h={}.hasOwnProperty;a=c(7216),d=c(56068).defaults,f=function(a){return"string"==typeof a&&(a.indexOf("&")>=0||a.indexOf(">")>=0||a.indexOf("<")>=0)},g=function(a){return"<![CDATA["+e(a)+"]]>"},e=function(a){return a.replace("]]>","]]]]><![CDATA[>")},b.Builder=function(){function b(a){var b,c,e;for(b in this.options={},c=d["0.2"])h.call(c,b)&&(e=c[b],this.options[b]=e);for(b in a)h.call(a,b)&&(e=a[b],this.options[b]=e)}return b.prototype.buildObject=function(b){var c,e,i,j,k,l;return c=this.options.attrkey,e=this.options.charkey,1===Object.keys(b).length&&this.options.rootName===d["0.2"].rootName?(k=Object.keys(b)[0],b=b[k]):k=this.options.rootName,l=this,i=function(a,b){var d,j,k,m,n,o;if("object"!=typeof b)l.options.cdata&&f(b)?a.raw(g(b)):a.txt(b);else if(Array.isArray(b)){for(m in b)if(h.call(b,m))for(n in j=b[m])k=j[n],a=i(a.ele(n),k).up()}else for(n in b)if(h.call(b,n))if(j=b[n],n===c){if("object"==typeof j)for(d in j)o=j[d],a=a.att(d,o)}else if(n===e)a=l.options.cdata&&f(j)?a.raw(g(j)):a.txt(j);else if(Array.isArray(j))for(m in j)h.call(j,m)&&(a="string"==typeof(k=j[m])?l.options.cdata&&f(k)?a.ele(n).raw(g(k)).up():a.ele(n,k).up():i(a.ele(n),k).up());else"object"==typeof j?a=i(a.ele(n),j).up():"string"==typeof j&&l.options.cdata&&f(j)?a=a.ele(n).raw(g(j)).up():(null==j&&(j=""),a=a.ele(n,j.toString()).up());return a},j=a.create(k,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),i(j,b).end(this.options.renderOpts)},b}()}).call(this)},86175:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getSigningAlgorithm=function(a){switch(a){case"sha256":return"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";case"sha512":return"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512";default:return"http://www.w3.org/2000/09/xmldsig#rsa-sha1"}},b.getDigestAlgorithm=function(a){switch(a){case"sha256":return"http://www.w3.org/2001/04/xmlenc#sha256";case"sha512":return"http://www.w3.org/2001/04/xmlenc#sha512";default:return"http://www.w3.org/2000/09/xmldsig#sha1"}},b.getSigner=function(a){switch(a){case"sha256":return d.createSign("RSA-SHA256");case"sha512":return d.createSign("RSA-SHA512");default:return d.createSign("RSA-SHA1")}};let d=c(55511)},86690:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=b.Text,this.value=this.stringify.text(d)}return d(c,a),Object.defineProperty(c.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"wholeText",{get:function(){var a,b,c;for(c="",b=this.previousSibling;b;)c=b.data+c,b=b.previousSibling;for(c+=this.data,a=this.nextSibling;a;)c+=a.data,a=a.nextSibling;return c}}),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.text(this,this.options.writer.filterOptions(a))},c.prototype.splitText=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.replaceWholeText=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c}(c(92478))}).call(this)},87074:function(a){(function(){a.exports=(function(){class a{constructor(a){this.nodes=a}clone(){return this.nodes=null}getNamedItem(a){return this.nodes[a]}setNamedItem(a){var b;return b=this.nodes[a.nodeName],this.nodes[a.nodeName]=a,b||null}removeNamedItem(a){var b;return b=this.nodes[a],delete this.nodes[a],b||null}item(a){return this.nodes[Object.keys(this.nodes)[a]]||null}getNamedItemNS(a,b){throw Error("This DOM method is not implemented.")}setNamedItemNS(a){throw Error("This DOM method is not implemented.")}removeNamedItemNS(a,b){throw Error("This DOM method is not implemented.")}}return Object.defineProperty(a.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),a}).call(this)}).call(this)},88435:function(a){(function(){a.exports=function(){function a(){}return a.prototype.handleError=function(a){throw Error(a)},a}()}).call(this)},88909:function(a){(function(){a.exports=class{hasFeature(a,b){return!0}createDocumentType(a,b,c){throw Error("This DOM method is not implemented.")}createDocument(a,b,c){throw Error("This DOM method is not implemented.")}createHTMLDocument(a){throw Error("This DOM method is not implemented.")}getFeature(a,b){throw Error("This DOM method is not implemented.")}}}).call(this)},89830:(a,b,c)=>{let d=c(83997),e=c(28354);b.init=function(a){a.inspectOpts={};let c=Object.keys(b.inspectOpts);for(let d=0;d<c.length;d++)a.inspectOpts[c[d]]=b.inspectOpts[c[d]]},b.log=function(...a){return process.stderr.write(e.formatWithOptions(b.inspectOpts,...a)+"\n")},b.formatArgs=function(c){let{namespace:d,useColors:e}=this;if(e){let b=this.color,e="\x1b[3"+(b<8?b:"8;5;"+b),f=` ${e};1m${d} \u001B[0m`;c[0]=f+c[0].split("\n").join("\n"+f),c.push(e+"m+"+a.exports.humanize(this.diff)+"\x1b[0m")}else c[0]=(b.inspectOpts.hideDate?"":new Date().toISOString()+" ")+d+" "+c[0]},b.save=function(a){a?process.env.DEBUG=a:delete process.env.DEBUG},b.load=function(){return process.env.DEBUG},b.useColors=function(){return"colors"in b.inspectOpts?!!b.inspectOpts.colors:d.isatty(process.stderr.fd)},b.destroy=e.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),b.colors=[6,2,3,4,5,1];try{let a=c(41892);a&&(a.stderr||a).level>=2&&(b.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(a){}b.inspectOpts=Object.keys(process.env).filter(a=>/^debug_/i.test(a)).reduce((a,b)=>{let c=b.substring(6).toLowerCase().replace(/_([a-z])/g,(a,b)=>b.toUpperCase()),d=process.env[b];return d=!!/^(yes|on|true|enabled)$/i.test(d)||!/^(no|off|false|disabled)$/i.test(d)&&("null"===d?null:Number(d)),a[c]=d,a},{}),a.exports=c(9315)(b);let{formatters:f}=a.exports;f.o=function(a){return this.inspectOpts.colors=this.useColors,e.inspect(a,this.inspectOpts).split("\n").map(a=>a.trim()).join(" ")},f.O=function(a){return this.inspectOpts.colors=this.useColors,e.inspect(a,this.inspectOpts)}},91729:(a,b,c)=>{var d=c(23849).NAMESPACE,e=c(23849).tagNamePattern;function f(a,b){this.message=a,this.locator=b,Error.captureStackTrace&&Error.captureStackTrace(this,f)}function g(){}function h(a,b){return b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber,b}function i(a,b,c){for(var e=a.tagName,f=null,g=a.length;g--;){var h=a[g],i=h.qName,j=h.value,k=i.indexOf(":");if(k>0)var l=h.prefix=i.slice(0,k),m=i.slice(k+1),n="xmlns"===l&&m;else m=i,l=null,n="xmlns"===i&&"";h.localName=m,!1!==n&&(null==f&&(f={},c=Object.create(c)),c[n]=f[n]=j,h.uri=d.XMLNS,b.startPrefixMapping(n,j))}for(var g=a.length;g--;){var l=(h=a[g]).prefix;l&&("xml"===l&&(h.uri=d.XML),"xmlns"!==l&&(h.uri=c[l||""]))}var k=e.indexOf(":");k>0?(l=a.prefix=e.slice(0,k),m=a.localName=e.slice(k+1)):(l=null,m=a.localName=e);var o=a.uri=c[l||""];if(b.startElement(o,m,e,a),!a.closed)return a.currentNSMap=c,a.localNSMap=f,!0;if(b.endElement(o,m,e),f)for(l in f)Object.prototype.hasOwnProperty.call(f,l)&&b.endPrefixMapping(l)}function j(){this.attributeNames={}}f.prototype=Error(),f.prototype.name=f.name,g.prototype={parse:function(a,b,c){var g=this.domBuilder;g.startDocument(),function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c])}(b,b={}),function(a,b,c,g,k){function l(a){var b,d=a.slice(1,-1);return Object.hasOwnProperty.call(c,d)?c[d]:"#"===d.charAt(0)?(b=parseInt(d.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((b-=65536)>>10),56320+(1023&b)):String.fromCharCode(b):(k.error("entity not found:"+a),a)}function m(b){if(b>u){var c=a.substring(u,b).replace(/&#?\w+;/g,l);r&&n(u),g.characters(c,0,b-u),u=b}}function n(b,c){for(;b>=p&&(c=q.exec(a));)p=(o=c.index)+c[0].length,r.lineNumber++;r.columnNumber=b-o+1}for(var o=0,p=0,q=/.*(?:\r\n?|\n)|.*$/g,r=g.locator,s=[{currentNSMap:b}],t={},u=0;;){try{var v=a.indexOf("<",u);if(v<0){if(!a.substr(u).match(/^\s*$/)){var w=g.doc,x=w.createTextNode(a.substr(u));w.appendChild(x),g.currentElement=x}return}switch(v>u&&m(v),a.charAt(v+1)){case"/":var y=a.indexOf(">",v+3),z=a.substring(v+2,y).replace(/^([\s\S]*?[^ \t\n\r])?[ \t\n\r]*$/,"$1"),A=s.pop();y<0?(z=a.substring(v+2).replace(/[\s<].*/,""),k.error("end tag name: "+z+" is not complete:"+A.tagName),y=v+1+z.length):z.match(/\s</)?(z=z.replace(/[\s<].*/,""),k.error("end tag name: "+z+" maybe not complete"),y=v+1+z.length):/[ \t\n\r]/.test(z)&&e.test(z.split(/[ \t\n\r]/)[0])&&k.error('end tag name is followed by whitespace and trailing content: "'+z+'"');var B=A.localNSMap,C=A.tagName==z;if(C||A.tagName&&A.tagName.toLowerCase()==z.toLowerCase()){if(g.endElement(A.uri,A.localName,z),B)for(var D in B)Object.prototype.hasOwnProperty.call(B,D)&&g.endPrefixMapping(D);C||k.fatalError("end tag name: "+z+" is not match the current start tagName:"+A.tagName)}else s.push(A);y++;break;case"?":r&&n(v),y=function(a,b,c){var d=a.indexOf("?>",b);if(d){var e=a.substring(b,d).match(/^<\?(\S*)\s*([\s\S]*?)$/);if(e)return e[0].length,c.processingInstruction(e[1],e[2]),d+2}return -1}(a,v,g);break;case"!":r&&n(v),y=function(a,b,c,d){if("-"===a.charAt(b+2)){if("-"===a.charAt(b+3)){var e=a.indexOf("--\x3e",b+4);if(e>b)return c.comment(a,b+4,e-b-4),e+3;d.error("Unclosed comment")}}else{if("CDATA["==a.substr(b+3,6)){var e=a.indexOf("]]>",b+9);return c.startCDATA(),c.characters(a,b+9,e-b-9),c.endCDATA(),e+3}var f=function(a,b){var c,d=[],e=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(e.lastIndex=b,e.exec(a);c=e.exec(a);)if(d.push(c),c[1])return d}(a,b),g=f.length;if(g>1&&/!doctype/i.test(f[0][0])){var h=f[1][0],i=!1,j=!1;g>3&&(/^public$/i.test(f[2][0])?(i=f[3][0],j=g>4&&f[4][0]):/^system$/i.test(f[2][0])&&(j=f[3][0]));var k=f[g-1];return c.startDTD(h,i,j),c.endDTD(),k.index+k[0].length}}return -1}(a,v,g,k);break;default:r&&n(v);var E=new j,F=s[s.length-1].currentNSMap,y=function(a,b,c,e,f,g){function h(a,b,d){c.attributeNames.hasOwnProperty(a)&&g.fatalError("Attribute "+a+" redefined"),c.addValue(a,b.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,f),d)}for(var i,j,k=++b,l=0;;){var m=a.charAt(k);if(0===l&&"<"===m)throw Error("unexpected < in tag name: "+a.slice(b,k));switch(m){case"=":if(1===l)i=a.slice(b,k),l=3;else if(2===l)l=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===l||1===l)if(1===l&&(g.warning('attribute value must after "="'),i=a.slice(b,k)),b=k+1,(k=a.indexOf(m,b))>0)h(i,j=a.slice(b,k),b-1),l=5;else throw Error("attribute value no end '"+m+"' match");else if(4==l)h(i,j=a.slice(b,k),b),g.warning('attribute "'+i+'" missed start quot('+m+")!!"),b=k+1,l=5;else throw Error('attribute value must after "="');break;case"/":switch(l){case 0:c.setTagName(a.slice(b,k));case 5:case 6:case 7:l=7,c.closed=!0;case 4:case 1:break;case 2:c.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":return g.error("unexpected end of input"),0==l&&c.setTagName(a.slice(b,k)),k;case">":switch(l){case 0:c.setTagName(a.slice(b,k));case 5:case 6:case 7:break;case 4:case 1:"/"===(j=a.slice(b,k)).slice(-1)&&(c.closed=!0,j=j.slice(0,-1));case 2:2===l&&(j=i),4==l?(g.warning('attribute "'+j+'" missed quot(")!'),h(i,j,b)):(d.isHTML(e[""])&&j.match(/^(?:disabled|checked|selected)$/i)||g.warning('attribute "'+j+'" missed value!! "'+j+'" instead!!'),h(j,j,b));break;case 3:throw Error("attribute value missed!!")}return k;case"\x80":m=" ";default:if(m<=" ")switch(l){case 0:c.setTagName(a.slice(b,k)),l=6;break;case 1:i=a.slice(b,k),l=2;break;case 4:var j=a.slice(b,k);g.warning('attribute "'+j+'" missed quot(")!!'),h(i,j,b);case 5:l=6}else switch(l){case 2:c.tagName,d.isHTML(e[""])&&i.match(/^(?:disabled|checked|selected)$/i)||g.warning('attribute "'+i+'" missed value!! "'+i+'" instead2!!'),h(i,i,b),b=k,l=1;break;case 5:g.warning('attribute space is required"'+i+'"!!');case 6:l=1,b=k;break;case 3:l=4,b=k;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}k++}}(a,v,E,F,l,k),G=E.length;if(!E.closed&&function(a,b,c,d){var e=d[c];return null==e&&((e=a.lastIndexOf("</"+c+">"))<b&&(e=a.lastIndexOf("</"+c)),d[c]=e),e<b}(a,y,E.tagName,t)&&(E.closed=!0,c.nbsp||k.warning("unclosed xml attribute")),r&&G){for(var H=h(r,{}),I=0;I<G;I++){var J=E[I];n(J.offset),J.locator=h(r,{})}g.locator=H,i(E,g,F)&&s.push(E),g.locator=r}else i(E,g,F)&&s.push(E);d.isHTML(E.uri)&&!E.closed?y=function(a,b,c,d,e){if(/^(?:script|textarea)$/i.test(c)){var f=a.indexOf("</"+c+">",b),g=a.substring(b+1,f);if(/[&<]/.test(g))return/^script$/i.test(c)||(g=g.replace(/&#?\w+;/g,d)),e.characters(g,0,g.length),f}return b+1}(a,y,E.tagName,l,g):y++}}catch(a){if(a instanceof f)throw a;k.error("element parse error: "+a),y=-1}y>u?u=y:m(Math.max(v,u)+1)}}(a,b,c,g,this.errorHandler),g.endDocument()}},j.prototype={setTagName:function(a){if(!e.test(a))throw Error("invalid tagName:"+a);this.tagName=a},addValue:function(a,b,c){if(!e.test(a))throw Error("invalid attribute:"+a);this.attributeNames[a]=this.length,this[this.length++]={qName:a,value:b,offset:c}},length:0,getLocalName:function(a){return this[a].localName},getLocator:function(a){return this[a].locator},getQName:function(a){return this[a].qName},getURI:function(a){return this[a].uri},getValue:function(a){return this[a].value}},b.XMLReader=g,b.ParseError=f},91848:(a,b,c)=>{var d=c(55511),e=c(12749),f=c(58029),g=c(15894);let h=["http://www.w3.org/2001/04/xmlenc#rsa-1_5","http://www.w3.org/2001/04/xmlenc#tripledes-cbc"];function i(a,b,c,e){let f=Buffer.isBuffer(a)?a:Buffer.from(a,"utf-8");try{var h={encryptedKey:d.publicEncrypt({key:b.rsa_pub,oaepHash:c==d.constants.RSA_PKCS1_OAEP_PADDING?b.keyEncryptionDigest:void 0,padding:c},f).toString("base64"),encryptionPublicCert:"<X509Data><X509Certificate>"+g.pemToCert(b.pem.toString())+"</X509Certificate></X509Data>",keyEncryptionMethod:b.keyEncryptionAlgorithm,keyEncryptionDigest:b.keyEncryptionDigest},i=g.renderTemplate("keyinfo",h);e(null,i)}catch(a){e(a)}}function j(a,b,c){if(!b)return c(Error("must provide options"));if(!b.rsa_pub)return c(Error("must provide options.rsa_pub with public key RSA"));if(!b.pem)return c(Error("must provide options.pem with certificate"));if(!b.keyEncryptionAlgorithm)return c(Error("encryption without encrypted key is not supported yet"));if(b.disallowEncryptionWithInsecureAlgorithm&&h.indexOf(b.keyEncryptionAlgorithm)>=0)return c(Error("encryption algorithm "+b.keyEncryptionAlgorithm+"is not secure"));switch(b.keyEncryptionDigest=b.keyEncryptionDigest||"sha1",b.keyEncryptionAlgorithm){case"http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p":return i(a,b,d.constants.RSA_PKCS1_OAEP_PADDING,c);case"http://www.w3.org/2001/04/xmlenc#rsa-1_5":return g.warnInsecureAlgorithm(b.keyEncryptionAlgorithm,b.warnInsecureAlgorithm),i(a,b,d.constants.RSA_PKCS1_PADDING,c);default:return c(Error("encryption key algorithm not supported"))}}function k(a,b){"string"==typeof a&&(a=new e.DOMParser().parseFromString(a));var c,i=f.select("//*[local-name(.)='KeyInfo' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",a)[0];i||(i=f.select("//*[local-name(.)='EncryptedData']/*[local-name(.)='KeyInfo']",a)[0]);var j=f.select("//*[local-name(.)='KeyInfo']/*[local-name(.)='EncryptedKey']/*[local-name(.)='EncryptionMethod']",a)[0];if(!j){var k=f.select("//*[local-name(.)='EncryptedData']/*[local-name(.)='KeyInfo']/*[local-name(.)='RetrievalMethod']",a)[0];j=(c=k?k.getAttribute("URI"):null)?f.select("//*[local-name(.)='EncryptedKey' and @Id='"+c.substring(1)+"']/*[local-name(.)='EncryptionMethod']",a)[0]:null}if(!j)throw Error("cant find encryption algorithm");let m="sha1",n=f.select("//*[local-name(.)='KeyInfo']/*[local-name(.)='EncryptedKey']/*[local-name(.)='EncryptionMethod']/*[local-name(.)='DigestMethod']",a)[0];if(n)switch(n.getAttribute("Algorithm")){case"http://www.w3.org/2000/09/xmldsig#sha256":m="sha256";break;case"http://www.w3.org/2000/09/xmldsig#sha512":m="sha512"}var o=j.getAttribute("Algorithm");if(b.disallowDecryptionWithInsecureAlgorithm&&h.indexOf(o)>=0)throw Error("encryption algorithm "+o+" is not secure, fail to decrypt");var p=c?f.select("//*[local-name(.)='EncryptedKey' and @Id='"+c.substring(1)+"']/*[local-name(.)='CipherData']/*[local-name(.)='CipherValue']",i)[0]:f.select("//*[local-name(.)='CipherValue']",i)[0];switch(o){case"http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p":return l(p,b,d.constants.RSA_PKCS1_OAEP_PADDING,m);case"http://www.w3.org/2001/04/xmlenc#rsa-1_5":return g.warnInsecureAlgorithm(o,b.warnInsecureAlgorithm),l(p,b,d.constants.RSA_PKCS1_PADDING);default:throw Error("key encryption algorithm "+o+" not supported")}}function l(a,b,c,e){let f=Buffer.from(a.textContent,"base64"),g=d.privateDecrypt({key:b.key,padding:c,oaepHash:e},f);return Buffer.from(g,"binary")}function m(a,b,c,e,f,g){d.randomBytes(c,function(c,h){if(c)return g(c);var i=d.createCipheriv(a,b,h),j=i.update(e,f,"binary")+i.final("binary"),k="gcm"===a.slice(-3)?i.getAuthTag():Buffer.from("");return g(null,Buffer.concat([h,Buffer.from(j,"binary"),k]))})}function n(a,b,c,e){var f=d.createDecipheriv(a,b,e.slice(0,c));f.setAutoPadding(!1),"gcm"===a.slice(-3)&&(f.setAuthTag(e.slice(-16)),e=e.slice(0,-16));var g=f.update(e.slice(c),null,"binary")+f.final("binary");if("gcm"!==a.slice(-3)){var h=g.charCodeAt(g.length-1);if(!(1<=h)||!(h<=c))return void callback(Error("padding length invalid"));g=g.substr(0,g.length-h)}return Buffer.from(g,"binary").toString("utf8")}a.exports={decrypt:function(a,b,c){if(!b)return c(Error("must provide options"));if(!a)return c(Error("must provide XML to encrypt"));if(!b.key)return c(Error("key option is mandatory and you should provide a valid RSA private key"));try{var d="string"==typeof a?new e.DOMParser().parseFromString(a):a,i=k(d,b),j=f.select("//*[local-name(.)='EncryptedData']/*[local-name(.)='EncryptionMethod']",d)[0].getAttribute("Algorithm");if(b.disallowDecryptionWithInsecureAlgorithm&&h.indexOf(j)>=0)return c(Error("encryption algorithm "+j+" is not secure, fail to decrypt"));var l=f.select("//*[local-name(.)='EncryptedData']/*[local-name(.)='CipherData']/*[local-name(.)='CipherValue']",d)[0],m=Buffer.from(l.textContent,"base64");switch(j){case"http://www.w3.org/2001/04/xmlenc#aes128-cbc":return c(null,n("aes-128-cbc",i,16,m));case"http://www.w3.org/2001/04/xmlenc#aes256-cbc":return c(null,n("aes-256-cbc",i,16,m));case"http://www.w3.org/2001/04/xmlenc#tripledes-cbc":return g.warnInsecureAlgorithm(j,b.warnInsecureAlgorithm),c(null,n("des-ede3-cbc",i,8,m));case"http://www.w3.org/2009/xmlenc11#aes128-gcm":return c(null,n("aes-128-gcm",i,12,m));case"http://www.w3.org/2009/xmlenc11#aes256-gcm":return c(null,n("aes-256-gcm",i,12,m));default:return c(Error("encryption algorithm "+j+" not supported"))}}catch(a){return c(a)}},encrypt:function(a,b,c){if(!b)return c(Error("must provide options"));if(!a)return c(Error("must provide content to encrypt"));if(!b.rsa_pub)return c(Error("rsa_pub option is mandatory and you should provide a valid RSA public key"));if(!b.pem)return c(Error("pem option is mandatory and you should provide a valid x509 certificate encoded as PEM"));if(b.disallowEncryptionWithInsecureAlgorithm&&(h.indexOf(b.keyEncryptionAlgorithm)>=0||h.indexOf(b.encryptionAlgorithm)>=0))return c(Error("encryption algorithm "+b.keyEncryptionAlgorithm+" is not secure"));b.input_encoding=b.input_encoding||"utf8";var e=function(d,e){if(d)return c(d);var f=function(a,d){var f;if(a)return c(a);f=function(a,b){if(a)return c(a);c(null,b)},j(e,b,function(a,c){if(a)return f(a);f(null,g.renderTemplate("encrypted-key",{encryptedContent:d.toString("base64"),keyInfo:c,contentEncryptionMethod:b.encryptionAlgorithm}))})};switch(b.encryptionAlgorithm){case"http://www.w3.org/2001/04/xmlenc#aes128-cbc":m("aes-128-cbc",e,16,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;case"http://www.w3.org/2001/04/xmlenc#aes256-cbc":m("aes-256-cbc",e,16,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;case"http://www.w3.org/2009/xmlenc11#aes128-gcm":m("aes-128-gcm",e,12,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;case"http://www.w3.org/2009/xmlenc11#aes256-gcm":m("aes-256-gcm",e,12,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;case"http://www.w3.org/2001/04/xmlenc#tripledes-cbc":g.warnInsecureAlgorithm(b.encryptionAlgorithm,b.warnInsecureAlgorithm),m("des-ede3-cbc",e,8,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;default:f(Error("encryption algorithm not supported"))}};switch(b.encryptionAlgorithm){case"http://www.w3.org/2001/04/xmlenc#aes128-cbc":case"http://www.w3.org/2009/xmlenc11#aes128-gcm":d.randomBytes(16,e);break;case"http://www.w3.org/2001/04/xmlenc#aes256-cbc":case"http://www.w3.org/2009/xmlenc11#aes256-gcm":default:d.randomBytes(32,e);break;case"http://www.w3.org/2001/04/xmlenc#tripledes-cbc":g.warnInsecureAlgorithm(b.encryptionAlgorithm,b.warnInsecureAlgorithm),d.randomBytes(24,e)}},encryptKeyInfo:j,decryptKeyInfo:k}},92030:function(a,b,c){(function(){var b,d,e,f=function(a,b){for(var c in b)g.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},g={}.hasOwnProperty;b=c(24706),e=c(97871),d=c(24399),a.exports=function(a){function c(a,b){this.stream=a,c.__super__.constructor.call(this,b)}return f(c,a),c.prototype.endline=function(a,b,e){return a.isLastRootNode&&b.state===d.CloseTag?"":c.__super__.endline.call(this,a,b,e)},c.prototype.document=function(a,b){var c,d,e,f,g,h,i,j,k;for(i=a.children,d=e=0,g=i.length;e<g;d=++e)(c=i[d]).isLastRootNode=d===a.children.length-1;for(b=this.filterOptions(b),j=a.children,k=[],f=0,h=j.length;f<h;f++)c=j[f],k.push(this.writeChildNode(c,b,0));return k},c.prototype.attribute=function(a,b,d){return this.stream.write(c.__super__.attribute.call(this,a,b,d))},c.prototype.cdata=function(a,b,d){return this.stream.write(c.__super__.cdata.call(this,a,b,d))},c.prototype.comment=function(a,b,d){return this.stream.write(c.__super__.comment.call(this,a,b,d))},c.prototype.declaration=function(a,b,d){return this.stream.write(c.__super__.declaration.call(this,a,b,d))},c.prototype.docType=function(a,b,c){var e,f,g,h;if(c||(c=0),this.openNode(a,b,c),b.state=d.OpenTag,this.stream.write(this.indent(a,b,c)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a,b,c)),b.state=d.InsideTag,f=0,g=(h=a.children).length;f<g;f++)e=h[f],this.writeChildNode(e,b,c+1);b.state=d.CloseTag,this.stream.write("]")}return b.state=d.CloseTag,this.stream.write(b.spaceBeforeSlash+">"),this.stream.write(this.endline(a,b,c)),b.state=d.None,this.closeNode(a,b,c)},c.prototype.element=function(a,c,e){var f,h,i,j,k,l,m,n,o;for(m in e||(e=0),this.openNode(a,c,e),c.state=d.OpenTag,this.stream.write(this.indent(a,c,e)+"<"+a.name),n=a.attribs)g.call(n,m)&&(f=n[m],this.attribute(f,c,e));if(j=0===(i=a.children.length)?null:a.children[0],0===i||a.children.every(function(a){return(a.type===b.Text||a.type===b.Raw)&&""===a.value}))c.allowEmpty?(this.stream.write(">"),c.state=d.CloseTag,this.stream.write("</"+a.name+">")):(c.state=d.CloseTag,this.stream.write(c.spaceBeforeSlash+"/>"));else if(c.pretty&&1===i&&(j.type===b.Text||j.type===b.Raw)&&null!=j.value)this.stream.write(">"),c.state=d.InsideTag,c.suppressPrettyCount++,this.writeChildNode(j,c,e+1),c.suppressPrettyCount--,c.state=d.CloseTag,this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.endline(a,c,e)),c.state=d.InsideTag,k=0,l=(o=a.children).length;k<l;k++)h=o[k],this.writeChildNode(h,c,e+1);c.state=d.CloseTag,this.stream.write(this.indent(a,c,e)+"</"+a.name+">")}return this.stream.write(this.endline(a,c,e)),c.state=d.None,this.closeNode(a,c,e)},c.prototype.processingInstruction=function(a,b,d){return this.stream.write(c.__super__.processingInstruction.call(this,a,b,d))},c.prototype.raw=function(a,b,d){return this.stream.write(c.__super__.raw.call(this,a,b,d))},c.prototype.text=function(a,b,d){return this.stream.write(c.__super__.text.call(this,a,b,d))},c.prototype.dtdAttList=function(a,b,d){return this.stream.write(c.__super__.dtdAttList.call(this,a,b,d))},c.prototype.dtdElement=function(a,b,d){return this.stream.write(c.__super__.dtdElement.call(this,a,b,d))},c.prototype.dtdEntity=function(a,b,d){return this.stream.write(c.__super__.dtdEntity.call(this,a,b,d))},c.prototype.dtdNotation=function(a,b,d){return this.stream.write(c.__super__.dtdNotation.call(this,a,b,d))},c}(e)}).call(this)},92478:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a){c.__super__.constructor.call(this,a),this.value=""}return b(c,a),Object.defineProperty(c.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(c.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(c.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),c.prototype.clone=function(){return Object.create(this)},c.prototype.substringData=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.appendData=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.insertData=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.deleteData=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.replaceData=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.isEqualNode=function(a){return!!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)&&a.data===this.data},c}(c(8957))}).call(this)},92535:a=>{"use strict";a.exports=(a,b=process.argv)=>{let c=a.startsWith("-")?"":1===a.length?"-":"--",d=b.indexOf(c+a),e=b.indexOf("--");return -1!==d&&(-1===e||d<e)}},93005:function(a,b,c){(function(){"use strict";var a,d,e,f,g,h,i,j,k=function(a,b){return function(){return a.apply(b,arguments)}},l=function(a,b){for(var c in b)m.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},m={}.hasOwnProperty;i=c(81654),f=c(94735),a=c(76326),h=c(2847),j=c(66136).setImmediate,d=c(56068).defaults,g=function(a,b,c){var d,e;for(d=0,e=a.length;d<e;d++)b=(0,a[d])(b,c);return b},e=function(a,b,c){var d;return(d=Object.create(null)).value=c,d.writable=!0,d.enumerable=!0,d.configurable=!0,Object.defineProperty(a,b,d)},b.Parser=function(c){function f(a){var c,e,f;if(this.parseStringPromise=k(this.parseStringPromise,this),this.parseString=k(this.parseString,this),this.reset=k(this.reset,this),this.assignOrPush=k(this.assignOrPush,this),this.processAsync=k(this.processAsync,this),!(this instanceof b.Parser))return new b.Parser(a);for(c in this.options={},e=d["0.2"])m.call(e,c)&&(f=e[c],this.options[c]=f);for(c in a)m.call(a,c)&&(f=a[c],this.options[c]=f);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(h.normalize)),this.reset()}return l(f,c),f.prototype.processAsync=function(){var a;try{if(this.remaining.length<=this.options.chunkSize)return a=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(a),this.saxParser.close();return a=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(a),j(this.processAsync)}catch(a){if(!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(a)}},f.prototype.assignOrPush=function(a,b,c){return b in a?(a[b]instanceof Array||e(a,b,[a[b]]),a[b].push(c)):this.options.explicitArray?e(a,b,[c]):e(a,b,c)},f.prototype.reset=function(){var a,b,c,d,f,h,j,k,l;return this.removeAllListeners(),this.saxParser=i.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(f=this,function(a){if(f.saxParser.resume(),!f.saxParser.errThrown)return f.saxParser.errThrown=!0,f.emit("error",a)}),this.saxParser.onend=(h=this,function(){if(!h.saxParser.ended)return h.saxParser.ended=!0,h.emit("end",h.resultObject)}),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,d=[],a=this.options.attrkey,b=this.options.charkey,this.saxParser.onopentag=(j=this,function(c){var f,h,i,k,l;if((i={})[b]="",!j.options.ignoreAttrs)for(f in l=c.attributes)m.call(l,f)&&(a in i||j.options.mergeAttrs||(i[a]={}),h=j.options.attrValueProcessors?g(j.options.attrValueProcessors,c.attributes[f],f):c.attributes[f],k=j.options.attrNameProcessors?g(j.options.attrNameProcessors,f):f,j.options.mergeAttrs?j.assignOrPush(i,k,h):e(i[a],k,h));return i["#name"]=j.options.tagNameProcessors?g(j.options.tagNameProcessors,c.name):c.name,j.options.xmlns&&(i[j.options.xmlnskey]={uri:c.uri,local:c.local}),d.push(i)}),this.saxParser.onclosetag=(k=this,function(){var a,c,f,h,i,j,l,n,o,p,q;if(i=(j=d.pop())["#name"],k.options.explicitChildren&&k.options.preserveChildrenOrder||delete j["#name"],!0===j.cdata&&(a=j.cdata,delete j.cdata),o=d[d.length-1],j[b].match(/^\s*$/)&&!a?(c=j[b],delete j[b]):(k.options.trim&&(j[b]=j[b].trim()),k.options.normalize&&(j[b]=j[b].replace(/\s{2,}/g," ").trim()),j[b]=k.options.valueProcessors?g(k.options.valueProcessors,j[b],i):j[b],1===Object.keys(j).length&&b in j&&!k.EXPLICIT_CHARKEY&&(j=j[b])),"object"==typeof(q=j)&&null!=q&&0===Object.keys(q).length&&(j="function"==typeof k.options.emptyTag?k.options.emptyTag():""!==k.options.emptyTag?k.options.emptyTag:c),null!=k.options.validator&&(p="/"+(function(){var a,b,c;for(a=0,c=[],b=d.length;a<b;a++)h=d[a],c.push(h["#name"]);return c})().concat(i).join("/"),!function(){try{j=k.options.validator(p,o&&o[i],j)}catch(a){return k.emit("error",a)}}()),k.options.explicitChildren&&!k.options.mergeAttrs&&"object"==typeof j)if(k.options.preserveChildrenOrder){if(o){for(f in o[k.options.childkey]=o[k.options.childkey]||[],l={},j)m.call(j,f)&&e(l,f,j[f]);o[k.options.childkey].push(l),delete j["#name"],1===Object.keys(j).length&&b in j&&!k.EXPLICIT_CHARKEY&&(j=j[b])}}else h={},k.options.attrkey in j&&(h[k.options.attrkey]=j[k.options.attrkey],delete j[k.options.attrkey]),!k.options.charsAsChildren&&k.options.charkey in j&&(h[k.options.charkey]=j[k.options.charkey],delete j[k.options.charkey]),Object.getOwnPropertyNames(j).length>0&&(h[k.options.childkey]=j),j=h;return d.length>0?k.assignOrPush(o,i,j):(k.options.explicitRoot&&(n=j,e(j={},i,n)),k.resultObject=j,k.saxParser.ended=!0,k.emit("end",k.resultObject))}),l=this,c=function(a){var c,e;if(e=d[d.length-1])return e[b]+=a,l.options.explicitChildren&&l.options.preserveChildrenOrder&&l.options.charsAsChildren&&(l.options.includeWhiteChars||""!==a.replace(/\\n/g,"").trim())&&(e[l.options.childkey]=e[l.options.childkey]||[],(c={"#name":"__text__"})[b]=a,l.options.normalize&&(c[b]=c[b].replace(/\s{2,}/g," ").trim()),e[l.options.childkey].push(c)),e},this.saxParser.ontext=c,this.saxParser.oncdata=function(a){var b;if(b=c(a))return b.cdata=!0}},f.prototype.parseString=function(b,c){null!=c&&"function"==typeof c&&(this.on("end",function(a){return this.reset(),c(null,a)}),this.on("error",function(a){return this.reset(),c(a)}));try{if(b=b.toString(),""===b.trim())return this.emit("end",null),!0;if(b=a.stripBOM(b),this.options.async)return this.remaining=b,j(this.processAsync),this.saxParser;return this.saxParser.write(b).close()}catch(a){if(!(this.saxParser.errThrown||this.saxParser.ended))return this.emit("error",a),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw a}},f.prototype.parseStringPromise=function(a){var b;return new Promise((b=this,function(c,d){return b.parseString(a,function(a,b){return a?d(a):c(b)})}))},f}(f),b.parseString=function(a,c,d){var e,f;return null!=d?("function"==typeof d&&(e=d),"object"==typeof c&&(f=c)):("function"==typeof c&&(e=c),f={}),new b.Parser(f).parseString(a,e)},b.parseStringPromise=function(a,c){var d;return"object"==typeof c&&(d=c),new b.Parser(d).parseStringPromise(a)}}).call(this)},94253:function(a,b,c){(function(){var b;b=c(24706),c(8957),a.exports=function(){function a(a,c,d){if(this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==c)throw Error("Missing attribute name. "+this.debugInfo(c));this.name=this.stringify.name(c),this.value=this.stringify.attValue(d),this.type=b.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"specified",{get:function(){return!0}}),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(a){return this.options.writer.attribute(this,this.options.writer.filterOptions(a))},a.prototype.debugInfo=function(a){return null==(a=a||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+a+"}, parent: <"+this.parent.name+">"},a.prototype.isEqualNode=function(a){return a.namespaceURI===this.namespaceURI&&a.prefix===this.prefix&&a.localName===this.localName&&a.value===this.value},a}()}).call(this)},95280:function(a,b,c){(function(){var b,d,e,f,g,h,i,j=function(a,b){for(var c in b)k.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},k={}.hasOwnProperty;i=c(4700).isPlainObject,e=c(35971),d=c(17395),f=c(8957),b=c(24706),h=c(74519),g=c(13859),a.exports=function(a){function c(a){c.__super__.constructor.call(this,null),this.name="#document",this.type=b.Document,this.documentURI=null,this.domConfig=new d,a||(a={}),a.writer||(a.writer=new g),this.options=a,this.stringify=new h(a)}return j(c,a),Object.defineProperty(c.prototype,"implementation",{value:new e}),Object.defineProperty(c.prototype,"doctype",{get:function(){var a,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if((a=e[c]).type===b.DocType)return a;return null}}),Object.defineProperty(c.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].encoding:null}}),Object.defineProperty(c.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(c.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(c.prototype,"origin",{get:function(){return null}}),Object.defineProperty(c.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(c.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(c.prototype,"contentType",{get:function(){return null}}),c.prototype.end=function(a){var b;return b={},a?i(a)&&(b=a,a=this.options.writer):a=this.options.writer,a.document(this,a.filterOptions(b))},c.prototype.toString=function(a){return this.options.writer.document(this,this.options.writer.filterOptions(a))},c.prototype.createElement=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createDocumentFragment=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createTextNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createComment=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createCDATASection=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createProcessingInstruction=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createAttribute=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createEntityReference=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.importNode=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createElementNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementById=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.adoptNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.normalizeDocument=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.renameNode=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByClassName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createEvent=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createRange=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createNodeIterator=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createTreeWalker=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c}(f)}).call(this)},95759:function(a,b,c){(function(){var b;b=c(26468),c(73067),a.exports=(function(){class a{constructor(a,c,d){if(this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==c)throw Error("Missing attribute name. "+this.debugInfo(c));this.name=this.stringify.name(c),this.value=this.stringify.attValue(d),this.type=b.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(a){return this.options.writer.attribute(this,this.options.writer.filterOptions(a))}debugInfo(a){return null==(a=a||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+a+"}, parent: <"+this.parent.name+">"}isEqualNode(a){return a.namespaceURI===this.namespaceURI&&a.prefix===this.prefix&&a.localName===this.localName&&a.value===this.value}}return Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"specified",{get:function(){return!0}}),a}).call(this)}).call(this)},97410:function(a){(function(){a.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},97871:function(a,b,c){(function(){var b,d,e,f={}.hasOwnProperty;e=c(4700).assign,b=c(24706),c(84689),c(99379),c(36700),c(65904),c(43849),c(8859),c(86690),c(58892),c(31777),c(45454),c(4505),c(12570),c(72707),d=c(24399),a.exports=function(){function a(a){var b,c,d;for(b in a||(a={}),this.options=a,c=a.writer||{})f.call(c,b)&&(d=c[b],this["_"+b]=this[b],this[b]=d)}return a.prototype.filterOptions=function(a){var b,c,f,g,h,i,j,k;return a||(a={}),a=e({},this.options,a),(b={writer:this}).pretty=a.pretty||!1,b.allowEmpty=a.allowEmpty||!1,b.indent=null!=(c=a.indent)?c:" ",b.newline=null!=(f=a.newline)?f:"\n",b.offset=null!=(g=a.offset)?g:0,b.dontPrettyTextNodes=null!=(h=null!=(i=a.dontPrettyTextNodes)?i:a.dontprettytextnodes)?h:0,b.spaceBeforeSlash=null!=(j=null!=(k=a.spaceBeforeSlash)?k:a.spacebeforeslash)?j:"",!0===b.spaceBeforeSlash&&(b.spaceBeforeSlash=" "),b.suppressPrettyCount=0,b.user={},b.state=d.None,b},a.prototype.indent=function(a,b,c){var d;if(!b.pretty||b.suppressPrettyCount);else if(b.pretty&&(d=(c||0)+b.offset+1)>0)return Array(d).join(b.indent);return""},a.prototype.endline=function(a,b,c){return!b.pretty||b.suppressPrettyCount?"":b.newline},a.prototype.attribute=function(a,b,c){var d;return this.openAttribute(a,b,c),d=" "+a.name+'="'+a.value+'"',this.closeAttribute(a,b,c),d},a.prototype.cdata=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<![CDATA[",b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+="]]>"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.comment=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"\x3c!-- ",b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=" --\x3e"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.declaration=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<?xml",b.state=d.InsideTag,e+=' version="'+a.version+'"',null!=a.encoding&&(e+=' encoding="'+a.encoding+'"'),null!=a.standalone&&(e+=' standalone="'+a.standalone+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+"?>",e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.docType=function(a,b,c){var e,f,g,h,i;if(c||(c=0),this.openNode(a,b,c),b.state=d.OpenTag,h=this.indent(a,b,c)+"<!DOCTYPE "+a.root().name,a.pubID&&a.sysID?h+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(h+=' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(h+=" [",h+=this.endline(a,b,c),b.state=d.InsideTag,f=0,g=(i=a.children).length;f<g;f++)e=i[f],h+=this.writeChildNode(e,b,c+1);b.state=d.CloseTag,h+="]"}return b.state=d.CloseTag,h+=b.spaceBeforeSlash+">",h+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),h},a.prototype.element=function(a,c,e){var g,h,i,j,k,l,m,n,o,p,q,r,s,t;for(o in e||(e=0),p=!1,q="",this.openNode(a,c,e),c.state=d.OpenTag,q+=this.indent(a,c,e)+"<"+a.name,r=a.attribs)f.call(r,o)&&(g=r[o],q+=this.attribute(g,c,e));if(j=0===(i=a.children.length)?null:a.children[0],0===i||a.children.every(function(a){return(a.type===b.Text||a.type===b.Raw)&&""===a.value}))c.allowEmpty?(q+=">",c.state=d.CloseTag,q+="</"+a.name+">"+this.endline(a,c,e)):(c.state=d.CloseTag,q+=c.spaceBeforeSlash+"/>"+this.endline(a,c,e));else if(c.pretty&&1===i&&(j.type===b.Text||j.type===b.Raw)&&null!=j.value)q+=">",c.state=d.InsideTag,c.suppressPrettyCount++,p=!0,q+=this.writeChildNode(j,c,e+1),c.suppressPrettyCount--,p=!1,c.state=d.CloseTag,q+="</"+a.name+">"+this.endline(a,c,e);else{if(c.dontPrettyTextNodes){for(k=0,m=(s=a.children).length;k<m;k++)if(((h=s[k]).type===b.Text||h.type===b.Raw)&&null!=h.value){c.suppressPrettyCount++,p=!0;break}}for(q+=">"+this.endline(a,c,e),c.state=d.InsideTag,l=0,n=(t=a.children).length;l<n;l++)h=t[l],q+=this.writeChildNode(h,c,e+1);c.state=d.CloseTag,q+=this.indent(a,c,e)+"</"+a.name+">",p&&c.suppressPrettyCount--,q+=this.endline(a,c,e),c.state=d.None}return this.closeNode(a,c,e),q},a.prototype.writeChildNode=function(a,c,d){switch(a.type){case b.CData:return this.cdata(a,c,d);case b.Comment:return this.comment(a,c,d);case b.Element:return this.element(a,c,d);case b.Raw:return this.raw(a,c,d);case b.Text:return this.text(a,c,d);case b.ProcessingInstruction:return this.processingInstruction(a,c,d);case b.Dummy:return"";case b.Declaration:return this.declaration(a,c,d);case b.DocType:return this.docType(a,c,d);case b.AttributeDeclaration:return this.dtdAttList(a,c,d);case b.ElementDeclaration:return this.dtdElement(a,c,d);case b.EntityDeclaration:return this.dtdEntity(a,c,d);case b.NotationDeclaration:return this.dtdNotation(a,c,d);default:throw Error("Unknown XML node type: "+a.constructor.name)}},a.prototype.processingInstruction=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<?",b.state=d.InsideTag,e+=a.target,a.value&&(e+=" "+a.value),b.state=d.CloseTag,e+=b.spaceBeforeSlash+"?>",e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.raw=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c),b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.text=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c),b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.dtdAttList=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ATTLIST",b.state=d.InsideTag,e+=" "+a.elementName+" "+a.attributeName+" "+a.attributeType,"#DEFAULT"!==a.defaultValueType&&(e+=" "+a.defaultValueType),a.defaultValue&&(e+=' "'+a.defaultValue+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.dtdElement=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ELEMENT",b.state=d.InsideTag,e+=" "+a.name+" "+a.value,b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.dtdEntity=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ENTITY",b.state=d.InsideTag,a.pe&&(e+=" %"),e+=" "+a.name,a.value?e+=' "'+a.value+'"':(a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),a.nData&&(e+=" NDATA "+a.nData)),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.dtdNotation=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!NOTATION",b.state=d.InsideTag,e+=" "+a.name,a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.pubID?e+=' PUBLIC "'+a.pubID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.openNode=function(a,b,c){},a.prototype.closeNode=function(a,b,c){},a.prototype.openAttribute=function(a,b,c){},a.prototype.closeAttribute=function(a,b,c){},a}()}).call(this)},98193:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z={}.hasOwnProperty;w=(y=c(4700)).isObject,v=y.isFunction,x=y.isPlainObject,u=y.getValue,b=c(24706),n=c(95280),o=c(43849),f=c(36700),g=c(65904),q=c(8859),t=c(86690),p=c(58892),l=c(84689),m=c(99379),h=c(45454),j=c(12570),i=c(4505),k=c(72707),e=c(94253),s=c(74519),r=c(13859),d=c(24399),a.exports=function(){function a(a,c,d){var e;this.name="?xml",this.type=b.Document,a||(a={}),e={},a.writer?x(a.writer)&&(e=a.writer,a.writer=new r):a.writer=new r,this.options=a,this.writer=a.writer,this.writerOptions=this.writer.filterOptions(e),this.stringify=new s(a),this.onDataCallback=c||function(){},this.onEndCallback=d||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return a.prototype.createChildNode=function(a){var c,d,e,f,g,h,i,j;switch(a.type){case b.CData:this.cdata(a.value);break;case b.Comment:this.comment(a.value);break;case b.Element:for(d in e={},i=a.attribs)z.call(i,d)&&(c=i[d],e[d]=c.value);this.node(a.name,e);break;case b.Dummy:this.dummy();break;case b.Raw:this.raw(a.value);break;case b.Text:this.text(a.value);break;case b.ProcessingInstruction:this.instruction(a.target,a.value);break;default:throw Error("This XML node type is not supported in a JS object: "+a.constructor.name)}for(g=0,h=(j=a.children).length;g<h;g++)f=j[g],this.createChildNode(f),f.type===b.Element&&this.up();return this},a.prototype.dummy=function(){return this},a.prototype.node=function(a,b,c){var d;if(null==a)throw Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw Error("Document can only have one root node. "+this.debugInfo(a));return this.openCurrent(),a=u(a),null==b&&(b={}),w(b=u(b))||(c=(d=[b,c])[0],b=d[1]),this.currentNode=new o(this,a,b),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=c&&this.text(c),this},a.prototype.element=function(a,c,d){var e,f,g,h,i,j;if(this.currentNode&&this.currentNode.type===b.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(a)||w(a)||v(a))for(h=this.options.noValidation,this.options.noValidation=!0,(j=new n(this.options).element("TEMP_ROOT")).element(a),this.options.noValidation=h,f=0,g=(i=j.children).length;f<g;f++)e=i[f],this.createChildNode(e),e.type===b.Element&&this.up();else this.node(a,c,d);return this},a.prototype.attribute=function(a,b){var c,d;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(a));if(null!=a&&(a=u(a)),w(a))for(c in a)z.call(a,c)&&(d=a[c],this.attribute(c,d));else v(b)&&(b=b.apply()),this.options.keepNullAttributes&&null==b?this.currentNode.attribs[a]=new e(this,a,""):null!=b&&(this.currentNode.attribs[a]=new e(this,a,b));return this},a.prototype.text=function(a){var b;return this.openCurrent(),b=new t(this,a),this.onData(this.writer.text(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.cdata=function(a){var b;return this.openCurrent(),b=new f(this,a),this.onData(this.writer.cdata(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.comment=function(a){var b;return this.openCurrent(),b=new g(this,a),this.onData(this.writer.comment(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.raw=function(a){var b;return this.openCurrent(),b=new q(this,a),this.onData(this.writer.raw(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.instruction=function(a,b){var c,d,e,f,g;if(this.openCurrent(),null!=a&&(a=u(a)),null!=b&&(b=u(b)),Array.isArray(a))for(c=0,f=a.length;c<f;c++)d=a[c],this.instruction(d);else if(w(a))for(d in a)z.call(a,d)&&(e=a[d],this.instruction(d,e));else v(b)&&(b=b.apply()),g=new p(this,a,b),this.onData(this.writer.processingInstruction(g,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},a.prototype.declaration=function(a,b,c){var d;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return d=new l(this,a,b,c),this.onData(this.writer.declaration(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.doctype=function(a,b,c){if(this.openCurrent(),null==a)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new m(this,b,c),this.currentNode.rootNodeName=a,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},a.prototype.dtdElement=function(a,b){var c;return this.openCurrent(),c=new i(this,a,b),this.onData(this.writer.dtdElement(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.attList=function(a,b,c,d,e){var f;return this.openCurrent(),f=new h(this,a,b,c,d,e),this.onData(this.writer.dtdAttList(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.entity=function(a,b){var c;return this.openCurrent(),c=new j(this,!1,a,b),this.onData(this.writer.dtdEntity(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.pEntity=function(a,b){var c;return this.openCurrent(),c=new j(this,!0,a,b),this.onData(this.writer.dtdEntity(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.notation=function(a,b){var c;return this.openCurrent(),c=new k(this,a,b),this.onData(this.writer.dtdNotation(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.up=function(){if(this.currentLevel<0)throw Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},a.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},a.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},a.prototype.openNode=function(a){var c,e,f,g;if(!a.isOpen){if(this.root||0!==this.currentLevel||a.type!==b.Element||(this.root=a),e="",a.type===b.Element){for(f in this.writerOptions.state=d.OpenTag,e=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<"+a.name,g=a.attribs)z.call(g,f)&&(c=g[f],e+=this.writer.attribute(c,this.writerOptions,this.currentLevel));e+=(a.children?">":"/>")+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=d.InsideTag}else this.writerOptions.state=d.OpenTag,e=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+a.rootNodeName,a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),a.children?(e+=" [",this.writerOptions.state=d.InsideTag):(this.writerOptions.state=d.CloseTag,e+=">"),e+=this.writer.endline(a,this.writerOptions,this.currentLevel);return this.onData(e,this.currentLevel),a.isOpen=!0}},a.prototype.closeNode=function(a){var c;if(!a.isClosed)return c="",this.writerOptions.state=d.CloseTag,c=a.type===b.Element?this.writer.indent(a,this.writerOptions,this.currentLevel)+"</"+a.name+">"+this.writer.endline(a,this.writerOptions,this.currentLevel):this.writer.indent(a,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=d.None,this.onData(c,this.currentLevel),a.isClosed=!0},a.prototype.onData=function(a,b){return this.documentStarted=!0,this.onDataCallback(a,b+1)},a.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},a.prototype.debugInfo=function(a){return null==a?"":"node: <"+a+">"},a.prototype.ele=function(){return this.element.apply(this,arguments)},a.prototype.nod=function(a,b,c){return this.node(a,b,c)},a.prototype.txt=function(a){return this.text(a)},a.prototype.dat=function(a){return this.cdata(a)},a.prototype.com=function(a){return this.comment(a)},a.prototype.ins=function(a,b){return this.instruction(a,b)},a.prototype.dec=function(a,b,c){return this.declaration(a,b,c)},a.prototype.dtd=function(a,b,c){return this.doctype(a,b,c)},a.prototype.e=function(a,b,c){return this.element(a,b,c)},a.prototype.n=function(a,b,c){return this.node(a,b,c)},a.prototype.t=function(a){return this.text(a)},a.prototype.d=function(a){return this.cdata(a)},a.prototype.c=function(a){return this.comment(a)},a.prototype.r=function(a){return this.raw(a)},a.prototype.i=function(a,b){return this.instruction(a,b)},a.prototype.att=function(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},a.prototype.a=function(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},a.prototype.ent=function(a,b){return this.entity(a,b)},a.prototype.pent=function(a,b){return this.pEntity(a,b)},a.prototype.not=function(a,b){return this.notation(a,b)},a}()}).call(this)},99379:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k=function(a,b){for(var c in b)l.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},l={}.hasOwnProperty;j=c(4700).isObject,i=c(8957),b=c(24706),d=c(45454),f=c(12570),e=c(4505),g=c(72707),h=c(7832),a.exports=function(a){function c(a,d,e){var f,g,h,i,k,l;if(c.__super__.constructor.call(this,a),this.type=b.DocType,a.children){for(g=0,h=(i=a.children).length;g<h;g++)if((f=i[g]).type===b.Element){this.name=f.name;break}}this.documentObject=a,j(d)&&(d=(k=d).pubID,e=k.sysID),null==e&&(e=(l=[d,e])[0],d=l[1]),null!=d&&(this.pubID=this.stringify.dtdPubID(d)),null!=e&&(this.sysID=this.stringify.dtdSysID(e))}return k(c,a),Object.defineProperty(c.prototype,"entities",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type!==b.EntityDeclaration||a.pe||(e[a.name]=a);return new h(e)}}),Object.defineProperty(c.prototype,"notations",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type===b.NotationDeclaration&&(e[a.name]=a);return new h(e)}}),Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(c.prototype,"internalSubset",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),c.prototype.element=function(a,b){var c;return c=new e(this,a,b),this.children.push(c),this},c.prototype.attList=function(a,b,c,e,f){var g;return g=new d(this,a,b,c,e,f),this.children.push(g),this},c.prototype.entity=function(a,b){var c;return c=new f(this,!1,a,b),this.children.push(c),this},c.prototype.pEntity=function(a,b){var c;return c=new f(this,!0,a,b),this.children.push(c),this},c.prototype.notation=function(a,b){var c;return c=new g(this,a,b),this.children.push(c),this},c.prototype.toString=function(a){return this.options.writer.docType(this,this.options.writer.filterOptions(a))},c.prototype.ele=function(a,b){return this.element(a,b)},c.prototype.att=function(a,b,c,d,e){return this.attList(a,b,c,d,e)},c.prototype.ent=function(a,b){return this.entity(a,b)},c.prototype.pent=function(a,b){return this.pEntity(a,b)},c.prototype.not=function(a,b){return this.notation(a,b)},c.prototype.up=function(){return this.root()||this.documentObject},c.prototype.isEqualNode=function(a){return!!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)&&a.name===this.name&&a.publicId===this.publicId&&a.systemId===this.systemId},c}(i)}).call(this)}};